"use strict";!function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){var t,e;
/**
   * @license
   * Copyright 2019 Google LLC
   * SPDX-License-Identifier: BSD-3-Clause
   */
const i=globalThis,s=i.ShadowRoot&&(void 0===i.ShadyCSS||i.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,o=Symbol(),r=new WeakMap;let n=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==o)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(s&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=r.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&r.set(e,t))}return t}toString(){return this.cssText}};const a=t=>new n("string"==typeof t?t:t+"",void 0,o),l=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,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.")})(i)+t[s+1]),t[0]);return new n(i,t,o)},c=s?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return a(e)})(t):t
/**
   * @license
   * Copyright 2017 Google LLC
   * SPDX-License-Identifier: BSD-3-Clause
   */,{is:d,defineProperty:p,getOwnPropertyDescriptor:h,getOwnPropertyNames:u,getOwnPropertySymbols:m,getPrototypeOf:g}=Object,f=globalThis,v=f.trustedTypes,y=v?v.emptyScript:"",b=f.reactiveElementPolyfillSupport,w=(t,e)=>t,x={toAttribute(t,e){switch(e){case Boolean:t=t?y:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(s){i=null}}return i}},_=(t,e)=>!d(t,e),k={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:_};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),f.litPropertyMetadata??(f.litPropertyMetadata=new WeakMap);let $=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=k){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,e);void 0!==s&&p(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){const{get:s,set:o}=h(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return null==s?void 0:s.call(this)},set(e){const r=null==s?void 0:s.call(this);o.call(this,e),this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??k}static _$Ei(){if(this.hasOwnProperty(w("elementProperties")))return;const t=g(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(w("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(w("properties"))){const t=this.properties,e=[...u(t),...m(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const t=this._$Eu(e,i);void 0!==t&&this._$Eh.set(t,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(c(t))}else void 0!==t&&e.push(c(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),null==(t=this.constructor.l)||t.forEach((t=>t(this)))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),void 0!==this.renderRoot&&this.isConnected&&(null==(e=t.hostConnected)||e.call(t))}removeController(t){var e;null==(e=this._$EO)||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(s)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const s of e){const e=document.createElement("style"),o=i.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=s.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostConnected)?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostDisconnected)?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EC(t,e){var i;const s=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,s);if(void 0!==o&&!0===s.reflect){const r=(void 0!==(null==(i=s.converter)?void 0:i.toAttribute)?s.converter:x).toAttribute(e,s.type);this._$Em=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(t,e){var i;const s=this.constructor,o=s._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=s.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null==(i=t.converter)?void 0:i.fromAttribute)?t.converter:x;this._$Em=o,this[o]=r.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,i){if(void 0!==t){if(i??(i=this.constructor.getPropertyOptions(t)),!(i.hasChanged??_)(this[t],e))return;this.P(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}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;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t)!0!==i.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],i)}let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostUpdate)?void 0:e.call(t)})),this.update(i)):this._$EU()}catch(s){throw e=!1,this._$EU(),s}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null==(e=this._$EO)||e.forEach((t=>{var e;return null==(e=t.hostUpdated)?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._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach((t=>this._$EC(t,this[t])))),this._$EU()}updated(t){}firstUpdated(t){}};$.elementStyles=[],$.shadowRootOptions={mode:"open"},$[w("elementProperties")]=new Map,$[w("finalized")]=new Map,null==b||b({ReactiveElement:$}),(f.reactiveElementVersions??(f.reactiveElementVersions=[])).push("2.0.4");
/**
   * @license
   * Copyright 2017 Google LLC
   * SPDX-License-Identifier: BSD-3-Clause
   */
const P=globalThis,S=P.trustedTypes,C=S?S.createPolicy("lit-html",{createHTML:t=>t}):void 0,A="$lit$",O=`lit$${Math.random().toFixed(9).slice(2)}$`,E="?"+O,T=`<${E}>`,M=document,D=()=>M.createComment(""),L=t=>null===t||"object"!=typeof t&&"function"!=typeof t,j=Array.isArray,I=t=>j(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),z="[ \t\n\f\r]",B=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,R=/-->/g,N=/>/g,F=RegExp(`>|${z}(?:([^\\s"'>=/]+)(${z}*=${z}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),q=/'/g,H=/"/g,U=/^(?:script|style|textarea|title)$/i,V=(K=1,(t,...e)=>({_$litType$:K,strings:t,values:e})),W=Symbol.for("lit-noChange"),Z=Symbol.for("lit-nothing"),Y=new WeakMap,G=M.createTreeWalker(M,129);var K;function Q(t,e){if(!j(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==C?C.createHTML(e):e}const X=(t,e)=>{const i=t.length-1,s=[];let o,r=2===e?"<svg>":3===e?"<math>":"",n=B;for(let a=0;a<i;a++){const e=t[a];let i,l,c=-1,d=0;for(;d<e.length&&(n.lastIndex=d,l=n.exec(e),null!==l);)d=n.lastIndex,n===B?"!--"===l[1]?n=R:void 0!==l[1]?n=N:void 0!==l[2]?(U.test(l[2])&&(o=RegExp("</"+l[2],"g")),n=F):void 0!==l[3]&&(n=F):n===F?">"===l[0]?(n=o??B,c=-1):void 0===l[1]?c=-2:(c=n.lastIndex-l[2].length,i=l[1],n=void 0===l[3]?F:'"'===l[3]?H:q):n===H||n===q?n=F:n===R||n===N?n=B:(n=F,o=void 0);const p=n===F&&t[a+1].startsWith("/>")?" ":"";r+=n===B?e+T:c>=0?(s.push(i),e.slice(0,c)+A+e.slice(c)+O+p):e+O+(-2===c?a:p)}return[Q(t,r+(t[i]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),s]};let J=class t{constructor({strings:e,_$litType$:i},s){let o;this.parts=[];let r=0,n=0;const a=e.length-1,l=this.parts,[c,d]=X(e,i);if(this.el=t.createElement(c,s),G.currentNode=this.el.content,2===i||3===i){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=G.nextNode())&&l.length<a;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(A)){const e=d[n++],i=o.getAttribute(t).split(O),s=/([.?@])?(.*)/.exec(e);l.push({type:1,index:r,name:s[2],strings:i,ctor:"."===s[1]?ot:"?"===s[1]?rt:"@"===s[1]?nt:st}),o.removeAttribute(t)}else t.startsWith(O)&&(l.push({type:6,index:r}),o.removeAttribute(t));if(U.test(o.tagName)){const t=o.textContent.split(O),e=t.length-1;if(e>0){o.textContent=S?S.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],D()),G.nextNode(),l.push({type:2,index:++r});o.append(t[e],D())}}}else if(8===o.nodeType)if(o.data===E)l.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(O,t+1));)l.push({type:7,index:r}),t+=O.length-1}r++}}static createElement(t,e){const i=M.createElement("template");return i.innerHTML=t,i}};function tt(t,e,i=t,s){var o,r;if(e===W)return e;let n=void 0!==s?null==(o=i._$Co)?void 0:o[s]:i._$Cl;const a=L(e)?void 0:e._$litDirective$;return(null==n?void 0:n.constructor)!==a&&(null==(r=null==n?void 0:n._$AO)||r.call(n,!1),void 0===a?n=void 0:(n=new a(t),n._$AT(t,i,s)),void 0!==s?(i._$Co??(i._$Co=[]))[s]=n:i._$Cl=n),void 0!==n&&(e=tt(t,n._$AS(t,e.values),n,s)),e}let et=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,s=((null==t?void 0:t.creationScope)??M).importNode(e,!0);G.currentNode=s;let o=G.nextNode(),r=0,n=0,a=i[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new it(o,o.nextSibling,this,t):1===a.type?e=new a.ctor(o,a.name,a.strings,this,t):6===a.type&&(e=new at(o,this,t)),this._$AV.push(e),a=i[++n]}r!==(null==a?void 0:a.index)&&(o=G.nextNode(),r++)}return G.currentNode=M,s}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}};class it{get _$AU(){var t;return(null==(t=this._$AM)?void 0:t._$AU)??this._$Cv}constructor(t,e,i,s){this.type=2,this._$AH=Z,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=(null==s?void 0:s.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=tt(this,t,e),L(t)?t===Z||null==t||""===t?(this._$AH!==Z&&this._$AR(),this._$AH=Z):t!==this._$AH&&t!==W&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):I(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==Z&&L(this._$AH)?this._$AA.nextSibling.data=t:this.T(M.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:s}=t,o="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=J.createElement(Q(s.h,s.h[0]),this.options)),s);if((null==(e=this._$AH)?void 0:e._$AD)===o)this._$AH.p(i);else{const t=new et(o,this),e=t.u(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=Y.get(t.strings);return void 0===e&&Y.set(t.strings,e=new J(t)),e}k(t){j(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const o of t)s===e.length?e.push(i=new it(this.O(D()),this.O(D()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for(null==(i=this._$AP)||i.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._$Cv=t,null==(e=this._$AP)||e.call(this,t))}}class st{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,o){this.type=1,this._$AH=Z,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Z}_$AI(t,e=this,i,s){const o=this.strings;let r=!1;if(void 0===o)t=tt(this,t,e,0),r=!L(t)||t!==this._$AH&&t!==W,r&&(this._$AH=t);else{const s=t;let n,a;for(t=o[0],n=0;n<o.length-1;n++)a=tt(this,s[i+n],e,n),a===W&&(a=this._$AH[n]),r||(r=!L(a)||a!==this._$AH[n]),a===Z?t=Z:t!==Z&&(t+=(a??"")+o[n+1]),this._$AH[n]=a}r&&!s&&this.j(t)}j(t){t===Z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ot extends st{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Z?void 0:t}}class rt extends st{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Z)}}class nt extends st{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){if((t=tt(this,t,e,0)??Z)===W)return;const i=this._$AH,s=t===Z&&i!==Z||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==Z&&(i===Z||s);s&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;"function"==typeof this._$AH?this._$AH.call((null==(e=this.options)?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class at{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){tt(this,t)}}const lt={M:A,P:O,A:E,C:1,L:X,R:et,D:I,V:tt,I:it,H:st,N:rt,U:nt,B:ot,F:at},ct=P.litHtmlPolyfillSupport;null==ct||ct(J,it),(P.litHtmlVersions??(P.litHtmlVersions=[])).push("3.2.1");const dt=(t,e,i)=>{const s=(null==i?void 0:i.renderBefore)??e;let o=s._$litPart$;if(void 0===o){const t=(null==i?void 0:i.renderBefore)??null;s._$litPart$=o=new it(e.insertBefore(D(),t),t,void 0,i??{})}return o._$AI(t),o};
/**
   * @license
   * Copyright 2017 Google LLC
   * SPDX-License-Identifier: BSD-3-Clause
   */let pt=class extends ${constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const e=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=e.firstChild),e}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=dt(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null==(t=this._$Do)||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null==(t=this._$Do)||t.setConnected(!1)}render(){return W}};pt._$litElement$=!0,pt.finalized=!0,null==(t=globalThis.litElementHydrateSupport)||t.call(globalThis,{LitElement:pt});const ht=globalThis.litElementPolyfillSupport;null==ht||ht({LitElement:pt}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");
/**
   * @license
   * Copyright 2017 Google LLC
   * SPDX-License-Identifier: BSD-3-Clause
   */
const ut=t=>(e,i)=>{void 0!==i?i.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)}
/**
   * @license
   * Copyright 2017 Google LLC
   * SPDX-License-Identifier: BSD-3-Clause
   */,mt={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:_},gt=(t=mt,e,i)=>{const{kind:s,metadata:o}=i;let r=globalThis.litPropertyMetadata.get(o);if(void 0===r&&globalThis.litPropertyMetadata.set(o,r=new Map),r.set(i.name,t),"accessor"===s){const{name:s}=i;return{set(i){const o=e.get.call(this);e.set.call(this,i),this.requestUpdate(s,o,t)},init(e){return void 0!==e&&this.P(s,void 0,t),e}}}if("setter"===s){const{name:s}=i;return function(i){const o=this[s];e.call(this,i),this.requestUpdate(s,o,t)}}throw Error("Unsupported decorator location: "+s)};function ft(t){return(e,i)=>"object"==typeof i?gt(t,e,i):((t,e,i)=>{const s=e.hasOwnProperty(i);return e.constructor.createProperty(i,s?{...t,wrapped:!0}:t),s?Object.getOwnPropertyDescriptor(e,i):void 0})(t,e,i)}
/**
   * @license
   * Copyright 2017 Google LLC
   * SPDX-License-Identifier: BSD-3-Clause
   */function vt(t){return ft({...t,state:!0,attribute:!1})}
/**
   * @license
   * Copyright 2017 Google LLC
   * SPDX-License-Identifier: BSD-3-Clause
   */const yt=(t,e,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,i),i)
/**
   * @license
   * Copyright 2017 Google LLC
   * SPDX-License-Identifier: BSD-3-Clause
   */;function bt(t,e){return(i,s,o)=>{const r=e=>{var i;return(null==(i=e.renderRoot)?void 0:i.querySelector(t))??null};if(e){const{get:t,set:e}="object"==typeof s?i:o??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return yt(i,s,{get(){let i=t.call(this);return void 0===i&&(i=r(this),(null!==i||this.hasUpdated)&&e.call(this,i)),i}})}return yt(i,s,{get(){return r(this)}})}}
/**
   * @license
   * Copyright 2017 Google LLC
   * SPDX-License-Identifier: BSD-3-Clause
   */let wt;
/**
   * @license
   * Copyright 2021 Google LLC
   * SPDX-License-Identifier: BSD-3-Clause
   */
function xt(t){return(e,i)=>{const{slot:s,selector:o}=t??{},r="slot"+(s?`[name=${s}]`:":not([name])");return yt(e,i,{get(){var e;const i=null==(e=this.renderRoot)?void 0:e.querySelector(r),s=(null==i?void 0:i.assignedElements(t))??[];return void 0===o?s:s.filter((t=>t.matches(o)))}})}}
/**
   * @license
   * Copyright 2017 Google LLC
   * SPDX-License-Identifier: BSD-3-Clause
   */function _t(t){return(e,i)=>{const{slot:s}=t??{},o="slot"+(s?`[name=${s}]`:":not([name])");return yt(e,i,{get(){var e;const i=null==(e=this.renderRoot)?void 0:e.querySelector(o);return(null==i?void 0:i.assignedNodes(t))??[]}})}}let kt=class t{static getLanguage(){const t=document.documentElement.lang;return localStorage.getItem("SonicSelectedLanguage")||t}static getCookies(){return document.cookie.split(";").reduce(((t,e)=>{const i=e.indexOf("=");return t[e.substring(0,i).trim()]=e.substring(i+1),t}),{})}static everyAncestors(t,e){for(;t;){if(!e(t))return;t=t.parentNode||t.host}}static getScrollableAncestor(t){for(;t;){const e=t;if(1===e.nodeType){const i=window.getComputedStyle(e);if("hidden"===(null==i?void 0:i.overflowY)||"hidden"===(null==i?void 0:i.overflowX))return t}t=t.parentNode||t.host}return null}static getAncestorAttributeValue(t,e){if(!t)return null;for(;!("hasAttribute"in t)||!t.hasAttribute(e);){if(!(t.parentNode||t.host))break;t=t.parentNode||t.host}return"hasAttribute"in t?t.getAttribute(e):null}static getApiConfiguration(e){const i=t.getAncestorAttributeValue(e,"token"),s=null!=t.getAncestorAttributeValue(e,"addHTTPResponse"),o=t.getAncestorAttributeValue(e,"serviceURL");let r=null,n=null;const a=t.getAncestorAttributeValue(e,"tokenProvider"),l=t.getAncestorAttributeValue(e,"eventsApiToken");i||(r=t.getAncestorAttributeValue(e,"userName"),n=t.getAncestorAttributeValue(e,"password"));return{serviceURL:o,token:i,userName:r,password:n,authToken:l,tokenProvider:a,addHTTPResponse:s,credentials:t.getAncestorAttributeValue(e,"credentials")||void 0,cache:e.getAttribute("cache"),blockUntilDone:e.hasAttribute("blockUntilDone")}}static getClosestElement(t,e){for(;!t.nodeName||t.nodeName.toLowerCase()!==e;){if(!(t.parentNode||t.host))break;t=t.parentNode||t.host}return t.nodeName?t:null}static getClosestForm(e){return t.getClosestElement(e,"form")}static async loadJS(t){return new Promise((async e=>{const i=document.createElement("script");i.src=t,i.onload=()=>e(!0),i.onerror=()=>e(!0),document.head.appendChild(i)}))}static async loadCSS(t){return new Promise((async e=>{const i=document.createElement("link");i.type="text/css",i.rel="stylesheet",i.href=t,i.onload=()=>e(!0),i.onerror=()=>e(!0),document.head.appendChild(i)}))}};const $t=t=>{const e=document.documentElement;new MutationObserver((e=>{for(let i of e)"attributes"===i.type&&"lang"===i.attributeName&&t()})).observe(e,{attributes:!0,attributeFilter:["lang"]})};let Pt=class t{static shallowEqual(t,e,i=!0){const s=Object.keys(t),o=Object.keys(e);if(s.length!==o.length&&i)return!1;for(const r of s){const s=t[r],o=e[r];if(i?s!==o:s!=o)return!1}return!0}static deepEqual(e,i,s=!0){const o=Object.keys(e),r=Object.keys(i);if(o.length!==r.length&&s)return!1;for(const n of o){const o=e[n],r=i[n],a=t.isObject(o)&&t.isObject(r),l=s?o!==r:o!=r;if(a&&!t.deepEqual(o,r)||!a&&l)return!1}return!0}static isObject(t){return null!=t&&"object"==typeof t}static isUndefindOrNull(t){return null==t}static isEmpty(e){return!!t.isUndefindOrNull(e)||0===Object.keys(e).length}static traverse(e,i,s=!1){for(const o of i){const i=e[o];if(void 0===i)return;e=s&&t.isObject(i)?Object.assign(Array.isArray(i)?[]:{},e,i):e[o]}return e}static traverseDotNotation(e,i,s=!1){return t.traverse(e,i.split("."),s)}static getURLSearchArray(e,i=""){let s=[];for(let o in e){const r=e[o];i&&(o=i+"["+o+"]"),t.isObject(r)?s=[...s,...this.getURLSearchArray(r,o)]:s.push(`${o}=${r}`)}return s}static getURLSearchString(e){return t.getURLSearchArray(e,"").join("&")}};const St=Pt.traverseDotNotation;let Ct="sonic";Ct="sonic";let At="sonic".replace(/-([a-z])/g,(t=>t[1].toUpperCase()));const Ot=At.charAt(0).toUpperCase()+At.slice(1);function Et(t){return Object.prototype.hasOwnProperty.call(t,"__value")}function Tt(t){return"object"==typeof t&&null!=t}let Mt="sonic";const Dt="publisher-proxies-data",Lt=class t{constructor(t,e,i){for(this._proxies_=new Map,this._is_savable_=!1,this._invalidateListeners_=new Set,this._formInvalidateListeners_=new Set,this._assignListeners_=new Set,this._mutationListeners_=new Set,this._fillListeners_=new Set,this._templateFillListeners_=new Set,this._lockInternalMutationPublishing_=!1,this._instanceCounter_=0,this._assignmentId_=0,this._value_=t,this.parent=e||null,this._parentKey_=i,this.root=this,this._instanceCounter_=0;this.root.parent;)this.root=this.root.parent}delete(){var e;for(const t in this._proxies_.keys())"_parent_"!=t&&(null==(e=this._proxies_.get(t))||e.delete());this._invalidateListeners_.clear(),this._formInvalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear(),t.instances.delete(this._instanceCounter_)}hasListener(){return this._templateFillListeners_.size>0||this._assignListeners_.size>0||this._invalidateListeners_.size>0||this._formInvalidateListeners_.size>0||this._mutationListeners_.size>0||this._fillListeners_.size>0}_publishInternalMutation_(t=!1){if(this._mutationListeners_.forEach((t=>t())),this._is_savable_&&!zt.changed){zt.changed=!0,zt.saveId++;const t=zt.saveId;setTimeout((()=>zt.getInstance().saveToLocalStorage(t)),1e3)}t||this.parent&&this.parent._publishInternalMutation_()}async _publishAssignement_(t=!1){this._assignmentId_++;if(this._assignmentId_!==this._assignmentId_)return;const e=this.get();this._assignListeners_.forEach((t=>{t(e)})),this._publishInternalMutation_(t)}_publishInvalidation_(){this._invalidateListeners_.forEach((t=>t()))}_publishFormInvalidation_(){this._formInvalidateListeners_.forEach((t=>t()))}_publishDynamicFilling_(t,e){this._fillListeners_.forEach((i=>{i[t]!==e&&(i[t]=e)})),this._publishTemplateFilling_(t,e)}_publishTemplateFilling_(t,e){this._templateFillListeners_.forEach((i=>{const s=Object.getOwnPropertyDescriptor(i,t);(!s||s.set||s.writable)&&(i.propertyMap&&i.propertyMap[t]&&(t=i.propertyMap[t]),void 0!==i[t]&&i[t]!==e&&(i[t]=e))}))}onAssign(t,e=!0){"function"==typeof t&&(this._assignListeners_.has(t)||(this._assignListeners_.add(t),e&&t(this.get())))}offAssign(t){this._assignListeners_.delete(t)}onInvalidate(t){"function"==typeof t&&this._invalidateListeners_.add(t)}offInvalidate(t){"function"==typeof t&&this._invalidateListeners_.delete(t)}invalidate(){this._publishInvalidation_()}onFormInvalidate(t){"function"==typeof t&&this._formInvalidateListeners_.add(t)}offFormInvalidate(t){"function"==typeof t&&this._formInvalidateListeners_.delete(t)}invalidateForm(){this._publishFormInvalidation_()}onInternalMutation(t){"function"==typeof t&&(this._mutationListeners_.add(t),t())}offInternalMutation(t){"function"==typeof t&&this._mutationListeners_.delete(t)}startTemplateFilling(t){if(this._templateFillListeners_.add(t),"object"==typeof this._value_)for(const e in this._value_){let i=e;const s=this._value_[e];t.propertyMap&&t.propertyMap[e]&&(i=t.propertyMap[e]),void 0!==t[e]&&t[e]!==s&&(t[i]=s)}}stopTemplateFilling(t){this._templateFillListeners_.delete(t)}startDynamicFilling(t){this._fillListeners_.add(t);for(const e in this._value_){const i=this._value_[e];t[e]!==i&&(t[e]=i)}}stopDynamicFilling(t){this._fillListeners_.delete(t)}set(t,e=!1){var i,s,o;if(this._value_===t)return!0;if(this._value_&&t&&Et(this._value_)&&Et(t)&&this._value_.__value===t.__value)return!0;this._value_=Tt(t)?t:{__value:t},this._cachedGet_=void 0;const r=Et(this._value_);if(this._parentKey_&&this.parent){const t=Et(this._value_)?this._value_.__value:this._value_;if(null==(null==(i=this.parent)?void 0:i.get())&&null==(null==(s=this.parent)?void 0:s.get()))if(isNaN(Number(this._parentKey_)))this.parent.set({[this._parentKey_]:t});else{const e=[];e[Number(this._parentKey_)]=t,this.parent.set(e)}else this.parent._value_[this._parentKey_]=t}if(r)return this._publishAssignement_(e),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_.__value),!0;for(const n in this._value_){void 0===this._value_[n]&&delete this._value_[n]}if(this._proxies_.forEach(((t,e)=>{const i=this._value_[e];"_parent_"!=e&&void 0===i&&null!==i&&isNaN(Number(e))&&(t.set(null),this._publishDynamicFilling_(e,null))})),this._publishAssignement_(),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_),Tt(this._value_))for(const n in this._value_){const e=t[n],i=Tt(e)?e:{__value:e};this._proxies_.has(n)?(null==(o=this._proxies_.get(n))||o.set(i,!0),this._publishDynamicFilling_(n,e)):this._publishDynamicFilling_(n,e)}return!0}get(){if(void 0!==this._cachedGet_)return this._cachedGet_;if(zt.modifiedCollectore.length>0&&zt.modifiedCollectore[0].add(this),Object.prototype.hasOwnProperty.call(this._value_,"__value")){const t=this._value_.__value;return this._cachedGet_=null!=t?t:null}return this._cachedGet_=null!=this._value_?this._value_:null}get $tag(){this._instanceCounter_||(t.instancesCounter++,this._instanceCounter_=t.instancesCounter),t.instances.set(this._instanceCounter_,this);return'<sonic-publisher-proxy publisher="'+this._instanceCounter_+'"></'+Mt+"-publisher-proxy>"}};Lt.instances=new Map,Lt.instancesCounter=0;let jt=Lt;const It=class t{constructor(){if(this.enabledLocaStorageProxies=[],this.publishers=new Map,this.localStorageData={},this.isLocalStrorageReady=null,this.initialisedData=[],null!=t.instance)throw"Singleton / use getInstance";t.instance=this,this.isLocalStrorageReady=this.cleanStorageData()}async cleanStorageData(){return new Promise((t=>{(async()=>{try{let i=localStorage.getItem(Dt),s=null;if(i&&(s=await this.decompress(i,"gzip")),s)try{this.localStorageData=JSON.parse(s)}catch(e){this.localStorageData={}}else i=await this.compress("{}","gzip"),localStorage.setItem(Dt,i),this.localStorageData={};const o=(new Date).getTime()-432e5;for(const t in this.localStorageData){this.localStorageData[t].lastModifiationMS<o&&delete this.localStorageData[t]}t(!0)}catch(e){window.requestAnimationFrame((()=>{t(!1)})),console.warn("no publisher cache in this browser")}})()}))}static getInstance(e){if(e){const i=t.instances.get(e);return i||(console.warn("No PublisherManager instance registered with id:",e,"creating new one"),new t)}return null==t.instance?new t:t.instance}static registerInstance(e,i){t.instances.has(e)&&console.warn("PublisherManager instance already registered with id: ",e),t.instances.set(e,i)}static get(e,i){return t.getInstance().get(e,i)}static collectModifiedPublisher(){t.modifiedCollectore.unshift(new Set)}static getModifiedPublishers(){return t.modifiedCollectore.shift()}static delete(e){return!!e&&t.getInstance().delete(e)}async setLocalData(t,e){var i;await this.isLocalStrorageReady,t.set((null==(i=this.localStorageData[e+"¤lang_"+kt.getLanguage()])?void 0:i.data)||t.get())}get(t,e){const i="enabled"===(null==e?void 0:e.localStorageMode);if(!this.publishers.has(t)){const e=new Rt({});this.set(t,e)}const s=this.publishers.get(t);return i&&-1===this.initialisedData.indexOf(t)&&(s._is_savable_=!0,this.initialisedData.push(t),this.setLocalData(s,t)),this.publishers.get(t)}set(t,e){this.publishers.set(t,e)}delete(t){return!!this.publishers.has(t)&&(this.publishers.delete(t),!0)}async saveToLocalStorage(e=0){if(e===t.saveId||e%10==0)try{if(!t.changed||t.saving)return;t.saving=!0,t.changed=!1;const e=Array.from(this.publishers.keys());let i=!1;for(const t of e){const e=this.publishers.get(t);if(!(null==e?void 0:e._is_savable_))continue;const s=null==e?void 0:e.get();s&&(this.localStorageData[t+"¤lang_"+kt.getLanguage()]={lastModifiationMS:(new Date).getTime(),data:s},i=!0)}if(i){const t=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem(Dt,t)}if(t.saving=!1,t.changed){t.saveId++;const e=t.saveId;setTimeout((()=>this.saveToLocalStorage(e)),1e3)}}catch(i){t.saving=!1}}async compress(t,e){const i=(new TextEncoder).encode(t),s=new window.CompressionStream(e),o=s.writable.getWriter();o.write(i),o.close();const r=await new Response(s.readable).arrayBuffer(),n=new Uint8Array(r);let a="";for(let l=0;l<n.length;l++)a+=String.fromCharCode(n[l]);return btoa(a)}async decompress(t,e){const i=atob(t),s=Uint8Array.from(i,(t=>t.charCodeAt(0))).buffer,o=new window.DecompressionStream(e),r=o.writable.getWriter();r.write(s),r.close();const n=await new Response(o.readable).arrayBuffer();return(new TextDecoder).decode(n)}};It.buildDate="Thu Nov 21 2024 10:35:30 GMT+0100 (Central European Standard Time)",It.changed=!1,It.saving=!1,It.saveId=0,It.instance=null,It.instances=new Map,It.modifiedCollectore=[];let zt=It;if("undefined"!=typeof window){const t=window;t[Ot+"PublisherManager"]=t[Ot+"PublisherManager"]||zt}const Bt=new Set(["invalidate","onInvalidate","offInvalidate","invalidateForm","onFormInvalidate","offFormInvalidate","onAssign","offAssign","startDynamicFilling","stopDynamicFilling","startTemplateFilling","stopTemplateFilling","onInternalMutation","offInternalMutation","set","get","$tag","_cachedGet_","_templateFillListeners_","_fillListeners_","_assignListeners_","_invalidateListeners_","_formInvalidateListeners_","_publishInternalMutation_","hasListener","delete","_mutationListeners_","_publishDynamicFilling_","_publishInvalidation_","_publishFormInvalidation_","_publishTemplateFilling_","_publishAssignement_","_proxies_","parent","_parentKey_","_value_","_is_savable_","_lockInternalMutationPublishing_","_instanceCounter_","_assignmentId_"]);class Rt extends jt{constructor(t,e=null,i){super(t,e,i);const s=new Proxy(this,{get:function(t,e){if(Bt.has(e))return t[e];if(e==Symbol.toPrimitive)return()=>s.get();if(!t._proxies_.has(e)){const i=t._value_[e],o=new Rt(Tt(i)?i:{__value:i},t,e);o._proxies_.set("_parent_",s),t._proxies_.set(e,o)}return t._proxies_.get(e)},set:function(t,e,i){var o;if("_value_"==e)return t._value_=i,!0;if("_cachedGet_"==e)return t._cachedGet_=i,!0;if("_assignmentId_"==e)return t._assignmentId_=i,!0;if("_is_savable_"==e)return t._is_savable_=i,!0;if("_instanceCounter_"==e)return t._instanceCounter_=i,!0;if(!t._proxies_.has(e)){const i=new Rt({},t,e);i._proxies_.set("_parent_",s),t._proxies_.set(e,i)}return t._value_[e]!==i&&(t._value_[e]=i,t._publishDynamicFilling_(e,i),null==(o=t._proxies_.get(e))||o.set(Tt(i)?i:{__value:i})),!0},deleteProperty:function(t,e){var i;return t._publishDynamicFilling_(e,null),null==(i=t._proxies_.get(e))||i.set(null),delete t._value_[e]},has:function(t,e){return e in t._value_&&"_lockInternalMutationPublishing_"!=e},defineProperty:function(t,e,i){return i&&"value"in i&&(t._value_[e]=i.value),!0},getOwnPropertyDescriptor:function(t,e){return{enumerable:!0,configurable:!0}},ownKeys:function(t){return t._value_.__value?Object.keys(t._value_.__value):Object.keys(t._value_)}});return s}getProperty(t,e){return t[e]}}class Nt extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=t=>{this.innerHTML=t.toString()}}connectedCallback(){var t;this.publisherId=this.getAttribute("publisher")||"",this.publisher=jt.instances.get(parseInt(this.publisherId)),null==(t=this.publisher)||t.onAssign(this.onAssign)}disconnectedCallback(){var t;null==(t=this.publisher)||t.offAssign(this.onAssign)}}try{customElements.define(Mt+"-publisher-proxy",Nt)}catch(tO){}const Ft=class t{constructor(t){this.addHTTPResponse=!1,this.cache="default",this.isServiceSimulated=!1,this.blockUntilDone=!1,this.serviceURL=t.serviceURL,this.blockUntilDone=t.blockUntilDone||!1,"publisher://"==this.serviceURL&&(this.isServiceSimulated=!0),this.serviceURL||(this.serviceURL=document.location.origin),this.userName=t.userName,this.password=t.password,t.token&&(this.token=t.token),this.tokenProvider=t.tokenProvider,this.authToken=t.authToken,this.addHTTPResponse=t.addHTTPResponse||!1,this.credentials=t.credentials,this.cache=t.cache||"default"}set token(e){this._token=e,e?t.invalidTokens.includes(e)||t.tokens.set(this.serviceURL,e):t.tokens.delete(this.serviceURL)}get token(){return t.invalidTokens.includes(this._token)?t.tokens.get(this.serviceURL):this._token}handleInvalidToken(e){e&&(t.invalidTokens.includes(e)||(t.invalidTokens.push(e),this.token=null))}async handleResult(e,i){var s;t.firstCallDoneFlags.set(this.serviceURL,"done"),this.lastResult=e;const o=null==(s=e.headers.get("content-type"))?void 0:s.toLowerCase(),r=e.status;let n={};if(o&&0!=o.indexOf("text/"))try{n=await e.json()}catch(tO){n={}}else{n={text:await e.text()}}this.addHTTPResponse&&Pt.isObject(n)&&(n._sonic_http_response_=e),498!==r||t.failledTokenUpdates.has(this.serviceURL)||(this.handleInvalidToken(this.token),n="get"===i.apiMethod?await this[i.apiMethod](i.path,i.additionalHeaders):await this[i.apiMethod](i.path,i.data,i.method,i.additionalHeaders));return zt.get("sonic-api").lastResponse={http:e,processed:n},n}async auth(){if(this.token)return;if(t.tokens.has(this.serviceURL))return void(this.token=t.tokens.get(this.serviceURL));if(!this.tokenProvider)return;let e={};this.userName&&this.password?e={Authorization:"Basic "+window.btoa(unescape(encodeURIComponent(this.userName+":"+this.password)))}:this.authToken&&(e={Authorization:"Bearer "+this.authToken});const i=new URL(this.serviceURL),s=i.protocol+"//"+i.host,o=await fetch(this.computeURL(this.tokenProvider,{serviceHost:s}),{headers:e,credentials:this.credentials});try{const e=await o.json();e.token?this.token=e.token:t.failledTokenUpdates.set(this.serviceURL,!0)}catch(tO){t.failledTokenUpdates.set(this.serviceURL,!0)}}async localGet(t,e){var i;const s=zt.get(t),o=new URLSearchParams(e.split("?")[1]||""),r=s.get();let n=[];n=Array.isArray(r)?r:[r];const a=[];let l=Number.POSITIVE_INFINITY,c=0,d=0;if(o.has("limit")&&(l=parseInt(o.get("limit")||"0"),d++),o.has("offset")&&(c=parseInt(o.get("offset")||"0"),d++),d>0&&(o.delete("limit"),o.delete("offset")),0===o.size)return n.slice(c,c+l);for(const[p,h]of o.entries()){const t=h.split(",").map((t=>t.trim()));for(const e of t)for(const t of n)if("object"!=typeof t)isNaN(+t)?t.toString().toLowerCase().includes(h.toLowerCase())&&a.push(t):t===h&&a.push(t);else{const s=t;if(!s[p])continue;isNaN(+s[p])?(null==(i=s[p])?void 0:i.toString().toLowerCase().includes(e.toLowerCase()))&&a.push(t):s[p]===e&&a.push(t)}}return a.slice(c,c+l)}firstCallDone(){return new Promise((e=>{if(t.firstCallDoneFlags.has(this.serviceURL)){const i=()=>{[void 0,"loading"].includes(t.firstCallDoneFlags.get(this.serviceURL))?window.requestAnimationFrame(i):e(!0)};i()}else t.firstCallDoneFlags.set(this.serviceURL,"loading"),e(!0)}))}async get(e,i){await this.firstCallDone(),this.blockUntilDone&&t.firstCallDoneFlags.set(this.serviceURL,"loading");const s=/dataProvider\((.*?)\)(.*?)$/;if(s.test(e)){const t=e.match(s);if(!t)throw new Error("dataProvider path is not valid");return await this.localGet(t[1],t[2])}const o={apiMethod:"get",path:e,additionalHeaders:i},r=await this.createHeaders(i),n=this.computeURL(e),a=JSON.stringify({url:n,headers:r});if(!t.loadingGetPromises.has(a)){const e=new Promise((async t=>{try{const e=await fetch(n,{headers:r,credentials:this.credentials,cache:this.cache});t(await this.handleResult(e,o))}catch(tO){t(null)}}));t.loadingGetPromises.set(a,e)}const l=await t.loadingGetPromises.get(a);return t.loadingGetPromises.delete(a),l}async createHeaders(t){await this.auth();const e={};return this.token&&(e.Authorization="Bearer "+this.token),e["Accept-Language"]=kt.getLanguage(),t&&Object.assign(e,t),e}computeURL(t,e={}){let i="";i=t.startsWith("http")?t:this.serviceURL+"/"+t,i.startsWith("http")||(i=window.location.origin+i);const s=new URL(i);for(const o in e)s.searchParams.set(o,e[o]);return s.toString().replace(/([^(https?:)])\/{2,}/g,"$1/")}async send(t,e,i="POST",s){const o={apiMethod:"send",path:t,additionalHeaders:s,method:i,data:e},r=await this.createHeaders(s);r.Accept="application/json",r["Content-Type"]="application/json";const n=await fetch(this.computeURL(t),{headers:r,credentials:this.credentials,method:i,body:JSON.stringify(e)});return await this.handleResult(n,o)}async submitFormData(t,e,i="POST",s){const o={apiMethod:"submitFormData",path:t,additionalHeaders:s,method:i,data:e},r=await this.createHeaders(s);r.Accept="application/json";const n=new FormData,a=e;for(const c in a)n.set(c,a[c]);const l=await fetch(this.computeURL(t),{headers:r,credentials:this.credentials,method:i,body:n});return await this.handleResult(l,o)}async put(t,e,i){return this.send(t,e,"PUT",i)}async post(t,e,i){return this.send(t,e,"POST",i)}async patch(t,e,i){return this.send(t,e,"PATCH",i)}async delete(t,e,i){return this.send(t,e,"delete",i)}};Ft.loadingGetPromises=new Map,Ft.tokens=new Map,Ft.invalidTokens=[],Ft.failledTokenUpdates=new Map,Ft.firstCallDoneFlags=new Map;let qt=Ft,Ht=!1,Ut="log",Vt=kt.getApiConfiguration(document.body||document.documentElement),Wt=[],Zt=0;const Yt=async(t,e)=>{if(!Ht)return;Wt.push({message:t,variables:e||{}}),Zt++;const i=Zt;window.queueMicrotask((()=>{if(i!==Zt)return;const t=[...Wt];Wt=[];return new qt(Vt).post(Ut,{logs:t})}))};let Gt=0;let Kt=class{static ucFirst(t){return"string"!=typeof t?t:t.charAt(0).toUpperCase()+t.substring(1)}static minutesDuration(t,e="",i="long"){e||(e=kt.getLanguage());function s(t,e,i){return new Intl.NumberFormat(t,{style:"unit",unit:e,unitDisplay:i}).format}const[o,r]=(n=t,a=60,[Math.floor(n/a),n%a]);var n,a;const l=[];return o&&l.push(s(e,"hour",i)(o)),r&&l.push(s(e,"minute",i)(r)),new Intl.ListFormat(e,{style:"long",type:"conjunction"}).format(l)}static js(t){try{return Function("return "+t)()}catch(tO){return""}}};const Qt=class t{static disable(){this.enabled&&(this.enabled=!1,Array.from(t.observedElements.keys()).forEach((e=>t.unObserve(e))))}static observe(e){if(!e)return;if(!t.enabled)return;if(t.observedElements.has(e))return;const i=new MutationObserver(t.onMutation),s={childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-bind"]};i.observe(e,s),e.querySelectorAll("[data-bind]").forEach((e=>t.addPublisherListeners(e))),t.observedElements.set(e,i)}static unObserve(e){if(!e)return;const i=this.observedElements.get(e);i&&(i.disconnect(),e.querySelectorAll("[data-bind]").forEach((e=>t.removePublisherListeners(e))))}static onAdded(e){e.hasAttribute&&e.hasAttribute("data-bind")&&t.addPublisherListeners(e),e.querySelectorAll?e.querySelectorAll("[data-bind]").forEach((e=>t.addPublisherListeners(e))):e.childNodes.forEach((e=>t.onAdded(e)))}static onRemoved(e){e.hasAttribute&&e.hasAttribute("data-bind")&&t.removePublisherListeners(e),e.querySelectorAll?e.querySelectorAll("[data-bind]").forEach((e=>t.removePublisherListeners(e))):e.childNodes.forEach((e=>t.onRemoved(e)))}static onMutation(e){for(const i of e)switch(i.type){case"attributes":t.addPublisherListeners(i.target);break;case"childList":i.addedNodes.forEach((e=>{t.onAdded(e)})),i.removedNodes.forEach((e=>{t.onRemoved(e)}))}}static removePublisherListeners(e){const i=t.publisherListeners.get(e);i&&(t.publisherListeners.delete(e),i.forEach((t=>{var e;null==(e=t.publisher)||e.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(e){return"attributes"in e?Array.from(e.attributes).filter((t=>0==t.name.indexOf("::"))).map((e=>({propertyToUpdate:e.name.substring(2).replace(/-((html)|\w)/g,(t=>t.substring(1).toUpperCase())),bindedVariablesDescriptor:t.getVariablesDescriptor(e.value)}))):[]}static getSubPublisher(t,e){if(!e)return t;for(const i of e)if("_self_"!=i){if(!t)return null;t=t[i]}return t}static addPublisherListeners(e){t.removePublisherListeners(e);const i=kt.getAncestorAttributeValue(e.parentNode||e.host||e,"dataProvider");if(!i)return;const s=zt.getInstance().get(i),o=t.getDataBindItems(e),r=[];o.forEach((i=>{const o=i.bindedVariablesDescriptor,n=i.propertyToUpdate;for(const a of o.variables){const i=a;let l=s;l=t.getSubPublisher(s,i);const c=e,d={publisher:l,onAssign:()=>{const e=o.variables.map((e=>{var i;return null==(i=t.getSubPublisher(s,e))?void 0:i.get()}));let i=o.expression,r=!1;if(1==e.length&&o.variables[0].join(".")==i.substring(1)){let t=e[0];return null===t&&(t=""),void(c[n]=t)}for(let t=0;t<e.length;t++){let s=e[t];const n=o.variables[t];null===s&&(r=!0,s=void 0),i=i.replace("$"+n.join("."),s)}if(-1!=i.indexOf("|")){const t=i.indexOf("|");if(0==t)i=Kt.js(i.substring(1));else{const e=i.substring(0,t),s=i.substring(t+1),o=Kt[e];i=r?"":o?o(s):i}}else i=r?"":i;c[n]=i}};null==l||l.onAssign(d.onAssign),r.push(d)}})),t.publisherListeners.set(e,r)}};Qt.observedElements=new Map,Qt.enabled=!0,Qt.publisherListeners=new Map;let Xt=Qt;Xt.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=Xt)
/**
   * @license
   * Copyright 2020 Google LLC
   * SPDX-License-Identifier: BSD-3-Clause
   */;const{I:Jt}=lt,te=(t,e)=>void 0===e?void 0!==(null==t?void 0:t._$litType$):(null==t?void 0:t._$litType$)===e,ee=()=>document.createComment(""),ie=(t,e,i)=>{var s;const o=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=o.insertBefore(ee(),r),s=o.insertBefore(ee(),r);i=new Jt(e,s,t,t.options)}else{const e=i._$AB.nextSibling,n=i._$AM,a=n!==t;if(a){let e;null==(s=i._$AQ)||s.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==n._$AU&&i._$AP(e)}if(e!==r||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;o.insertBefore(t,r),t=e}}}return i},se=(t,e,i=t)=>(t._$AI(e,i),t),oe={},re=(t,e=oe)=>t._$AH=e,ne=t=>t._$AH,ae=t=>{var e;null==(e=t._$AP)||e.call(t,!1,!0);let i=t._$AA;const s=t._$AB.nextSibling;for(;i!==s;){const t=i.nextSibling;i.remove(),i=t}},le=1,ce=2,de=t=>(...e)=>({_$litDirective$:t,values:e});
/**
   * @license
   * Copyright 2017 Google LLC
   * SPDX-License-Identifier: BSD-3-Clause
   */let pe=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
/**
   * @license
   * Copyright 2017 Google LLC
   * SPDX-License-Identifier: BSD-3-Clause
   */const he=(t,e)=>{var i;const s=t._$AN;if(void 0===s)return!1;for(const o of s)null==(i=o._$AO)||i.call(o,e,!1),he(o,e);return!0},ue=t=>{let e,i;do{if(void 0===(e=t._$AM))break;i=e._$AN,i.delete(t),t=e}while(0===(null==i?void 0:i.size))},me=t=>{for(let e;e=t._$AM;t=e){let i=e._$AN;if(void 0===i)e._$AN=i=new Set;else if(i.has(t))break;i.add(t),ve(e)}};function ge(t){void 0!==this._$AN?(ue(this),this._$AM=t,me(this)):this._$AM=t}function fe(t,e=!1,i=0){const s=this._$AH,o=this._$AN;if(void 0!==o&&0!==o.size)if(e)if(Array.isArray(s))for(let r=i;r<s.length;r++)he(s[r],!1),ue(s[r]);else null!=s&&(he(s,!1),ue(s));else he(this,t)}const ve=t=>{t.type==ce&&(t._$AP??(t._$AP=fe),t._$AQ??(t._$AQ=ge))};let ye=class extends pe{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,i){super._$AT(t,e,i),me(this),this.isConnected=t._$AU}_$AO(t,e=!0){var i,s;t!==this.isConnected&&(this.isConnected=t,t?null==(i=this.reconnected)||i.call(this):null==(s=this.disconnected)||s.call(this)),e&&(he(this,t),ue(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(){}};function be(t){if("function"==typeof t){const e=t;return zt.collectModifiedPublisher(),e(),zt.getModifiedPublishers()||new Set}if("string"==typeof t){const e=t.split("."),i=e.shift()||"";let s=zt.get(i);s=Pt.traverse(s,e);const o=new Set;return o.add(s),o}return new Set([t])}const we=(t,e)=>{const i=be(t).values().next().value;if(void 0!==e&&i){const t=i.get();Pt.isEmpty(t)&&i.set(e)}return i};
/**
   * @license
   * Copyright 2017 Google LLC
   * SPDX-License-Identifier: BSD-3-Clause
   */
let xe=class extends pe{constructor(t){if(super(t),this.it=Z,t.type!==ce)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Z||null==t)return this._t=void 0,this.it=t;if(t===W)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}};xe.directiveName="unsafeHTML",xe.resultType=1;const _e=de(xe),ke=new Map,$e=t=>{if(!t)return null;const e=kt.getApiConfiguration(t),i=kt.getAncestorAttributeValue(t,"wordingProvider"),s=kt.getAncestorAttributeValue(t,"wordingVersionProvider"),o={apiConfiguration:e,wordingProvider:i,wordingVersionProvider:s};let r=null;for(const[n,a]of ke)if(Pt.deepEqual(n,o)){r=a;break}if(!r){r={api:new qt(e),keysToTranslate:new Set,translatedKeys:new Set,wordingProvider:i,callIndex:0,wordingVersionProvider:s,apiCallKey:o},ke.set(o,r)}return r},Pe=class t extends ye{constructor(t){super(t),this.useUnsafeHTML=!1,this.onAssign=t=>{const e=this.useUnsafeHTML?_e(t):t;this.setValue(e)},this.node=t.options.host}unsubscribe(){t.publisher["wording_"+this.key].offAssign(this.onAssign)}render(t,e=!1){return this.useUnsafeHTML=e,this.key!==t&&(this.key=t,this.isConnected&&this.subscribe(t)),W}static async callApi(e,i,s=!0,o){if(await zt.getInstance().isLocalStrorageReady,t.firstCall){t.firstCall=!1,$t(t.reloadWordings);const e=Object.keys(t.publisher.get());for(const i of e)""===t.publisher.get()[i]&&delete t.publisher[i]}if(e){const i=kt.getAncestorAttributeValue(e,"wordingVersionProvider");i&&we(i).onAssign(t.handleVersionProvider(e))}let r=null!=t.publisher.get()["wording_"+i];const n=o||$e(e);if(!n)return;if(r&&""!==i)return void n.translatedKeys.add(i);n.callIndex++;const a=n.callIndex,l=n.wordingProvider??"";if(!l&&s)return void window.setTimeout((async()=>{t.callApi(null,i,!1,n)}),1e3);const c=n.api;window.queueMicrotask((async()=>{if(r=null!=t.publisher["wording_"+i].get(),r||""===i||(n.keysToTranslate.add(i),t.publisher["wording_"+i]=""),a!==n.callIndex)return;const e=Array.from(n.keysToTranslate);if(!e.length)return;const s=l.split("?"),o=s.shift()+"?"+((s.length>0?s.join("?")+"&":"")+"labels[]="+e.join("&labels[]="));n.translatedKeys=new Set([...n.translatedKeys,...n.keysToTranslate]),n.keysToTranslate.clear();const d=await c.get(o);for(const i in d)t.publisher["wording_"+i]=d[i]}))}static reloadWordings(){for(const e of ke.values())e.keysToTranslate=new Set(e.translatedKeys),e.keysToTranslate.size>0&&t.callApi(null,"",!1,e)}static handleVersionProvider(e){const i=$e(e),s=t=>{};if(!i)return s;if(t.versionProviderHandlers.has(i))return t.versionProviderHandlers.get(i)||s;const o=function(e){if(!i.wordingVersionProvider)return;const s=t.publisher.get().__wording_versions__??[];if(null==e)return;const o=s.find((t=>t.serviceURL===i.api.serviceURL))||{serviceURL:i.api.serviceURL,version:0};s.includes(o)||s.push(o),e!==o.version&&(o.version=e,t.publisher.set({__wording_versions__:s}),t.reloadWordings())};return t.versionProviderHandlers.set(i,o),o}subscribe(e){this.unsubscribe(),t.publisher["wording_"+e].onAssign(this.onAssign),t.callApi(this.node,e)}disconnected(){this.unsubscribe()}reconnected(){this.key&&this.subscribe(this.key)}};Pe.publisher=zt.get("sonic-wording",{localStorageMode:"enabled"}),Pe.firstCall=!0,Pe.versionProviderHandlers=new Map;let Se=Pe;const Ce=de(Se),Ae=Ce;var Oe=Object.defineProperty,Ee=Object.getOwnPropertyDescriptor,Te=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Ee(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Oe(e,i,r),r};let Me=!1,De=new Set;const Le=(t,e)=>{const i=class e extends t{constructor(...t){super(),this.collectDependenciesVersion=0,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.shouldRenderLazy=!0,this.defferedDebug=null,this.debug=null,this.onAssign=t=>{this.props=t}}hasAncestorAttribute(t){return null!=this.getAncestorAttributeValue(t)}getAncestorAttributeValue(t){return kt.getAncestorAttributeValue(this,t)}get props(){return null===this._props&&this.publisher?this.publisher.get():this._props}set props(t){"string"==typeof t&&["{","["].includes(t.trim().charAt(0))&&(t=JSON.parse(t)),t!=this._props&&(this._props=t,this.publisher&&this.publisher.get()!=t&&this.publisher.set(t),this.requestUpdate())}updated(t){super.updated(t);const e=[...(this.shadowRoot||this).children].filter((t=>"STYLE"!=t.tagName)),i=this.displayContents?"contents":0==e.length?"none":null;i?this.style.display=i:this.style.removeProperty("display")}connectedCallback(){if(e.instanceCounter++,this.hasAttribute("lazyRendering")){let t=!0;const e=new IntersectionObserver((i=>{for(const s of i)if(t&&s.isIntersecting){t=!1,e.disconnect(),this.initWording(),this.shouldRenderLazy=!1,this.startPublisher();break}}),{root:null,threshold:.9});e.observe(this)}else this.initWording(),this.shouldRenderLazy=!1;this.initPublisher(),this.addDebugger(),super.connectedCallback()}disconnectedCallback(){var t;this.removeDebugger(),super.disconnectedCallback(),this.publisher&&(this.publisher.stopTemplateFilling(this),this.publisher.offInternalMutation(this.requestUpdate)),Se.publisher.stopTemplateFilling(this),this.onAssign&&(null==(t=this.publisher)||t.offAssign(this.onAssign))}addDebugger(){var t;if(this.hasAttribute("debug")&&!this.defferedDebug){if(!this.debug){this.debug=document.createElement("div");const 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="min(50vw,25rem)",t.fontSize="12px",t.minWidth="300px",t.overflowWrap="break-word",t.resize="vertical"}this.addEventListener("click",(t=>{t.ctrlKey&&(t.preventDefault(),Me=!Me)})),this.dataProvider&&(window[this.dataProvider]=this.publisher),this.addEventListener("mouseover",(()=>{Me||this.removeDebugger(),document.body.appendChild(this.debug),De.add(this.debug)})),this.addEventListener("mouseout",(()=>{Me||this.removeDebugger()})),null==(t=this.publisher)||t.onInternalMutation((()=>{var t;this.debug.innerHTML=`🤖 DataProvider : "<b style="font-weight:bold;color:#fff;">${this.dataProvider}</b>"<br>\n          <div style="font-size:10px;border-top:1px dashed;margin-top:5px;padding-left:23px;opacity:.6;padding-top:5px;">\n            Variable disponible dans la console<br>\n            ctrl + Clique : épingler / désépingler\n           </div>\n          <pre style="margin-top:10px;background:transparent;padding:0;font-size:inherit;color:inherit;">${JSON.stringify(null==(t=this.publisher)?void 0:t.get(),null,"  ")}</pre>`}))}}removeDebugger(){De.forEach((t=>{document.body.contains(t)&&document.body.removeChild(t)})),De=new Set}getApiConfiguration(){return kt.getApiConfiguration(this)}async initWording(){const t=Object.getOwnPropertyNames(this.constructor.prototype);for(const e of t)0==e.indexOf("wording_")&&Se.callApi(this,e.substring(8));Se.publisher.startTemplateFilling(this)}createRenderRoot(){if(""===this.noShadowDom||""===this.getAttribute("noShadowDom"))return this;const t=super.createRenderRoot();return Xt.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=zt.getInstance();this.dataProvider||(this.dataProvider=this.getAncestorAttributeValue("dataProvider"));let i=this.dataProvider;if(!i&&this._props&&(this.dataProvider=i="__subscriber__"+e.instanceCounter),i){this.bindPublisher&&t.set(i,this.bindPublisher());let e=t.get(i,{localStorageMode:this.getAttribute("localStorage")||"disabled"});if(this.dataProvider=i,this.hasAttribute("subDataProvider")){const s=this.getAttribute("subDataProvider");this.dataProvider=i+"/"+s,e=Pt.traverse(e,s.split(".")),t.set(this.dataProvider,e),this.publisher=e}this.publisher=e}this.hasAttribute("lazyRendering")||this.startPublisher()}startPublisher(){this.publisher&&(this._props&&this.publisher.set(this._props),this.noAutoFill||this.publisher.startTemplateFilling(this),this.renderOnPropsInternalChange&&this.publisher.onInternalMutation(this.requestUpdate),this.publisher.onAssign(this.onAssign))}};return i.instanceCounter=0,Te([ft({type:Number})],i.prototype,"collectDependenciesVersion",2),Te([ft({type:Boolean})],i.prototype,"displayContents",2),Te([ft({type:Boolean})],i.prototype,"noAutoFill",2),Te([ft({type:Boolean})],i.prototype,"forceAutoFill",2),Te([ft({type:Object})],i.prototype,"propertyMap",2),Te([ft({type:String,attribute:"data-title"})],i.prototype,"title",2),Te([ft({reflect:!0})],i.prototype,"dataProvider",2),Te([ft()],i.prototype,"bindPublisher",2),Te([ft()],i.prototype,"props",1),Te([vt()],i.prototype,"shouldRenderLazy",2),i},je=(t,e,i)=>{const s=new Map;for(let o=e;o<=i;o++)s.set(t[o],o);return s},Ie=de(class extends pe{constructor(t){if(super(t),t.type!==ce)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let s;void 0===i?i=e:void 0!==e&&(s=e);const o=[],r=[];let n=0;for(const a of t)o[n]=s?s(a,n):n,r[n]=i(a,n),n++;return{values:r,keys:o}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,s]){const o=ne(t),{values:r,keys:n}=this.dt(e,i,s);if(!Array.isArray(o))return this.ut=n,r;const a=this.ut??(this.ut=[]),l=[];let c,d,p=0,h=o.length-1,u=0,m=r.length-1;for(;p<=h&&u<=m;)if(null===o[p])p++;else if(null===o[h])h--;else if(a[p]===n[u])l[u]=se(o[p],r[u]),p++,u++;else if(a[h]===n[m])l[m]=se(o[h],r[m]),h--,m--;else if(a[p]===n[m])l[m]=se(o[p],r[m]),ie(t,l[m+1],o[p]),p++,m--;else if(a[h]===n[u])l[u]=se(o[h],r[u]),ie(t,o[p],o[h]),h--,u++;else if(void 0===c&&(c=je(n,u,m),d=je(a,p,h)),c.has(a[p]))if(c.has(a[h])){const e=d.get(n[u]),i=void 0!==e?o[e]:null;if(null===i){const e=ie(t,o[p]);se(e,r[u]),l[u]=e}else l[u]=se(i,r[u]),ie(t,o[p],i),o[e]=null;u++}else ae(o[h]),h--;else ae(o[p]),p++;for(;u<=m;){const e=ie(t,l[m+1]);se(e,r[u]),l[u++]=e}for(;p<=h;){const t=o[p++];null!==t&&ae(t)}return this.ut=n,re(t,l),W}}),ze=new WeakMap;
/**
   * @license
   * Copyright 2017 Google LLC
   * SPDX-License-Identifier: BSD-3-Clause
   */let Be=0;const Re=new Map,Ne=new WeakSet,Fe=()=>new Promise((t=>requestAnimationFrame(t))),qe=[{opacity:0}],He=[{opacity:0},{opacity:1}],Ue=(t,e)=>{const i=t-e;return 0===i?void 0:i},Ve=(t,e)=>{const i=t/e;return 1===i?void 0:i},We={left:(t,e)=>{const i=Ue(t,e);return{value:i,transform:null==i||isNaN(i)?void 0:`translateX(${i}px)`}},top:(t,e)=>{const i=Ue(t,e);return{value:i,transform:null==i||isNaN(i)?void 0:`translateY(${i}px)`}},width:(t,e)=>{let i;0===e&&(e=1,i={width:"1px"});const s=Ve(t,e);return{value:s,overrideFrom:i,transform:null==s||isNaN(s)?void 0:`scaleX(${s})`}},height:(t,e)=>{let i;0===e&&(e=1,i={height:"1px"});const s=Ve(t,e);return{value:s,overrideFrom:i,transform:null==s||isNaN(s)?void 0:`scaleY(${s})`}}},Ze={duration:333,easing:"ease-in-out"},Ye=["left","top","width","height","opacity","color","background"],Ge=new WeakMap;const Ke=de(class extends ye{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===ce)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){var t;null==(t=this.resolveFinished)||t.call(this),this.finished=new Promise((t=>{this.l=t}))}async resolveFinished(){var t;null==(t=this.l)||t.call(this),this.l=void 0}render(t){return Z}getController(){return ze.get(this.u)}isDisabled(){var t;return this.options.disabled||(null==(t=this.getController())?void 0:t.disabled)}update(t,[e]){var i;const s=void 0===this.u;return s&&(this.u=null==(i=t.options)?void 0:i.host,this.u.addController(this),this.u.updateComplete.then((t=>this.t=!0)),this.element=t.element,Ge.set(this.element,this)),this.optionsOrCallback=e,(s||"function"!=typeof e)&&this.p(e),this.render(e)}p(t){t=t??{};const e=this.getController();void 0!==e&&((t={...e.defaultOptions,...t}).keyframeOptions={...e.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??(t.properties=Ye),this.options=t}m(){const t={},e=this.element.getBoundingClientRect(),i=getComputedStyle(this.element);return this.options.properties.forEach((s=>{const o=e[s]??(We[s]?void 0:i[s]),r=Number(o);t[s]=isNaN(r)?o+"":r})),t}v(){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,i)=>t===e[i])))return!1}else if(e===t)return!1;return!0})(t,this._)),this.h=this.t&&!this.isDisabled()&&!this.isAnimating()&&e&&this.element.isConnected,this.h&&(this._=Array.isArray(t)?Array.from(t):t),this.h}hostUpdate(){"function"==typeof this.optionsOrCallback&&this.p(this.optionsOrCallback()),this.v()&&(this.A=this.m(),this.i=this.i??this.element.parentNode,this.o=this.element.nextSibling)}async hostUpdated(){if(!this.h||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await Fe;const e=this.O(),i=this.j(this.options.keyframeOptions,e),s=this.m();if(void 0!==this.A){const{from:i,to:o}=this.N(this.A,s,e);this.log("measured",[this.A,s,i,o]),t=this.calculateKeyframes(i,o)}else{const i=Re.get(this.options.inId);if(i){Re.delete(this.options.inId);const{from:o,to:r}=this.N(i,s,e);t=this.calculateKeyframes(o,r),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,Be++,t.forEach((t=>t.zIndex=Be))}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,i)}resetStyles(){void 0!==this.P&&(this.element.setAttribute("style",this.P??""),this.P=void 0)}commitStyles(){var t,e;this.P=this.element.getAttribute("style"),null==(t=this.webAnimation)||t.commitStyles(),null==(e=this.webAnimation)||e.cancel()}reconnected(){}async disconnected(){var t;if(!this.h)return;if(void 0!==this.options.id&&Re.set(this.options.id,this.A),void 0===this.options.out)return;if(this.prepare(),await Fe(),null==(t=this.i)?void 0:t.isConnected){const t=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,t),this.options.stabilizeOut){const t=this.m();this.log("stabilizing out");const e=this.A.left-t.left,i=this.A.top-t.top;!("static"===getComputedStyle(this.element).position)||0===e&&0===i||(this.element.style.position="relative"),0!==e&&(this.element.style.left=e+"px"),0!==i&&(this.element.style.top=i+"px")}}const e=this.j(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)||e.call(t,this)}didFinish(t){var e,i;t&&(null==(i=(e=this.options).onComplete)||i.call(e,this)),this.A=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}O(){const t=[];for(let e=this.element.parentNode;e;e=null==e?void 0:e.parentNode){const i=Ge.get(e);i&&!i.isDisabled()&&i&&t.push(i)}return t}get isHostRendered(){const t=Ne.has(this.u);return t||this.u.updateComplete.then((()=>{Ne.add(this.u)})),t}j(t,e=this.O()){const i={...Ze};return e.forEach((t=>Object.assign(i,t.options.keyframeOptions))),Object.assign(i,t),i}N(t,e,i){t={...t},e={...e};const s=i.map((t=>t.animatingProperties)).filter((t=>void 0!==t));let o=1,r=1;return s.length>0&&(s.forEach((t=>{t.width&&(o/=t.width),t.height&&(r/=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=r*t.top,e.top=r*e.top)),{from:t,to:e}}calculateKeyframes(t,e,i=!1){const s={},o={};let r=!1;const n={};for(const a in e){const i=t[a],l=e[a];if(a in We){const t=We[a];if(void 0===i||void 0===l)continue;const e=t(i,l);void 0!==e.transform&&(n[a]=e.value,r=!0,s.transform=`${s.transform??""} ${e.transform}`,void 0!==e.overrideFrom&&Object.assign(s,e.overrideFrom))}else i!==l&&void 0!==i&&void 0!==l&&(r=!0,s[a]=i,o[a]=l)}return s.transformOrigin=o.transformOrigin=i?"center center":"top left",this.animatingProperties=n,r?[s,o]:void 0}async animate(t,e=this.options.keyframeOptions){this.start(),this.frames=t;let i=!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]),i=!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(i),i}isAnimating(){var t,e;return"running"===(null==(t=this.webAnimation)?void 0:t.playState)||(null==(e=this.webAnimation)?void 0:e.pending)}log(t,e){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,e)}}),Qe={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":'<svg width="24px" height="24px" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" ><path d="M2 12c0 5.523 4.477 10 10 10s10-4.477 10-10S17.523 2 12 2" stroke="currentColor" 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="currentColor" 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="currentColor" 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>',"minus-small":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">\n  <path stroke-linecap="round" stroke-linejoin="round" d="M18 12H6" />\n</svg>\n',"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'}},Xe=new Map,Je={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"},lucide:{url:"https://cdn.jsdelivr.net/npm/lucide-static@0.16.29/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"},custom:{url:"",defaultPrefix:""}};let ti=!1;const ei=sessionStorage.getItem("sonicIconsCache"),ii=ei?JSON.parse(ei):{icons:{},names:[]};class si{}si.default={get:async t=>{const e=t.library;if(!t.name)return"";const i=t.name,s=Qe;var o,r;if("custom"==e&&(ti||(ti=!0,Je.custom.url=(null==(o=document.querySelector("[customIconLibraryPath]"))?void 0:o.getAttribute("customIconLibraryPath"))||"",Je.custom.defaultPrefix=(null==(r=document.querySelector("[customIconDefaultPrefix]"))?void 0:r.getAttribute("customIconDefaultPrefix"))||"")),e&&e in Je){const o=Je[e],r=t.prefix||o.defaultPrefix||"",n=s[e]||{};s[e]=n;const a=r+"-"+i;if(n[a])return _e(n[a]);const l=(o.url||"").replace("$prefix",r).replace("$name",i);if(ii.icons[l])return n[a]=ii.icons[l],_e(ii.icons[l]);if(!Xe.has(l)){const t=new Promise((async t=>{const e=await fetch(l);if(e.ok)try{t(await e.text())}catch(tO){t(null)}else t(`<b title="Erreur ${e.status}">😶</b>`)}));Xe.set(l,t)}const c=await Xe.get(l);if(Xe.delete(l),n[a]=c||"",ii.icons[l]=c||"",ii.names.length>100){const t=ii.names.shift();delete ii.icons[t]}return sessionStorage.setItem("sonicIconsCache",JSON.stringify(ii)),_e(c)}return _e(s.core[t.name]||"")}};var oi=Object.defineProperty,ri=Object.getOwnPropertyDescriptor,ni=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?ri(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&oi(e,i,r),r};let ai=class extends pt{constructor(){super(...arguments),this.iconText="",this.name="",this.prefix="",this.library=""}async updateIcon(){this.iconText=await si.default.get({name:this.name,prefix:this.prefix,library:this.library})}willUpdate(t){(t.has("name")||t.has("prefix")||t.has("library"))&&this.updateIcon(),super.willUpdate(t)}render(){return this.iconText?this.iconText:Z}};ai.styles=l`
    :host {
      line-height: 0.1em;
      width: fit-content;
      height: fit-content;
      vertical-align: -0.125em;
      flex-shrink: 0;
    }
    svg {
      height: var(--sc-icon-size, 1em);
      width: 1.4em;
      overflow: visible;
    }

    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;
    }
  `,ni([vt()],ai.prototype,"iconText",2),ni([ft({type:String})],ai.prototype,"name",2),ni([ft({type:String})],ai.prototype,"prefix",2),ni([ft({type:String})],ai.prototype,"library",2),ai=ni([ut("sonic-icon")],ai);
/**
   * @license
   * Copyright 2018 Google LLC
   * SPDX-License-Identifier: BSD-3-Clause
   */
const li=t=>t??Z
/**
   * @license
   * Copyright 2018 Google LLC
   * SPDX-License-Identifier: BSD-3-Clause
   */,ci="important",di=" !"+ci,pi=de(class extends pe{constructor(t){var e;if(super(t),t.type!==le||"style"!==t.name||(null==(e=t.strings)?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,i)=>{const s=t[i];return null==s?e:e+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`}),"")}update(t,[e]){const{style:i}=t.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(e)),this.render(e);for(const s of this.ft)null==e[s]&&(this.ft.delete(s),s.includes("-")?i.removeProperty(s):i[s]=null);for(const s in e){const t=e[s];if(null!=t){this.ft.add(s);const e="string"==typeof t&&t.endsWith(di);s.includes("-")||e?i.setProperty(s,e?t.slice(0,-11):t,e?ci:""):i[s]=t}}return W}}),hi=l`
  .custom-scroll {
    overflow: auto !important;
    overflow-y: overlay !important;
  }

  @media (hover: hover) {
    .custom-scroll::-webkit-scrollbar {
      width: 0.5rem;
      height: 0.5rem;
      border: solid 0.15rem transparent;
      border-radius: var(--sc-rounded);
      background: transparent;
    }

    .custom-scroll::-webkit-scrollbar-thumb {
      box-shadow: inset 0 0 2rem 2rem
        var(--sc-scrollbar-bg, var(--sc-base-400, var(--sc-base-content, #000)));
      border-radius: var(--sc-rounded);
      border: solid 0.15rem transparent;
    }
  }
`;const ui=class t{static listen(){var e;if(!t.listening)return;const i=null==(e=document.location)?void 0:e.href.replace(document.location.origin,"");t.prevURL&&t.prevURL!=i&&(t.prevURL=i,t.listeners.forEach((t=>{t.location=i}))),window.requestAnimationFrame(t.listen)}static offChange(e){const i=t.listeners.indexOf(e);-1!=i&&(t.listeners.splice(i,1),0==t.listeners.length&&(t.listening=!1))}static onChange(e){t.listening||(t.listening=!0,t.listen()),t.listeners.push(e),e.location=this.prevURL}static changeFromComponent(t){var e;const i=t.goBack,s=document.referrer;if(null!=i){const t=document.location.origin,e=(i||t).toString(),o=!!(0==s.indexOf("http"))&&new URL(s).origin!=t,r=""==s,n=history.length<3,a=r&&n,l=e!=document.location.href;if(o&&l||a){const t=history.state||{};t.concorde=t.concorde||{},t.concorde.hasDoneHistoryBack=!0,history.pushState(t,document.title),history.back(),document.location.replace(e)}else history.back();return}let o=t.getAttribute("to")||"";if(o||(o=(null==(e=t.href)?void 0:e.toString())||""),!o)return;if(0==o.indexOf("#"))return void(document.location.hash=o.substring(1));const r=new URL(o,document.location.href),n=r.pathname.split("/"),a=[];let l="";for(const c of n)c!=l&&a.push(c),l=c;o="/"+a.join("/")+r.search+(r.hash?+r.hash:""),t.hasAttribute("pushState")?history.pushState(null,"",o):t.hasAttribute("replaceState")?history.replaceState(null,"",o):document.location.href=o}static updateComponentActiveState(t){var e;if("disabled"==t.autoActive)return;const i=(null==(e=t.href)?void 0:e.toString())||"";if(t.href&&0!=i.indexOf("http")){const e=new URL(i,document.location.href),s=new URL(t.location||"",document.location.origin);let o=!1;o="strict"==t.autoActive?e.pathname==s.pathname&&e.hash==s.hash&&e.search==s.search:0==s.href.indexOf(e.href),o?t.setAttribute("active","true"):t.removeAttribute("active")}}};ui.listeners=[],ui.listening=!1,ui.prevURL=null==(e=document.location)?void 0:e.href.replace(document.location.origin,"");let mi=ui;var gi="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function fi(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var vi,yi,bi,wi,xi={exports:{}};vi=xi,wi=[].slice,yi=gi,bi=function(){var t,e,i,s,o,r,n,a,l,c,d,p,h,u,m;return l=function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},n=function(t,e){var i,s,o;for(o=[],i=-1,s=t.length;++i<s;)o=o.concat(e(t[i]));return o},u=function(t,e){var i,s,o;for(o="",i=-1,s=t.length;++i<s;)o+=e(t[i]);return o},h=function(t){return new RegExp(t.toString()+"|").exec("").length-1},d=function(t,e){var i,s,o,r,n;for(r={},i=-1,o=t.length;++i<o;)s=t[i],null!=(n=e[i])&&(null!=r[s]?(Array.isArray(r[s])||(r[s]=[r[s]]),r[s].push(n)):r[s]=n);return r},(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,i){return function(s){var o,r;if(null!=(o=i(s)))return r=new t.Tagged(e,o.value),new t.Result(r,o.rest)}},t.regex=function(e){return function(i){var s,o;if(null!=(s=e.exec(i)))return o=s[0],new t.Result(o,i.slice(o.length))}},t.sequence=function(){var e;return e=1<=arguments.length?wi.call(arguments,0):[],function(i){var s,o,r,n,a;for(s=-1,o=e.length,a=[],r=i;++s<o;){if(null==(n=(0,e[s])(r)))return;a.push(n.value),r=n.rest}return new t.Result(a,r)}},t.pick=function(){var e,i;return e=arguments[0],i=2<=arguments.length?wi.call(arguments,1):[],function(s){var o,r;if(null!=(r=t.sequence.apply(t,i)(s)))return o=r.value,r.value=o[e],r}},t.string=function(e){var i;return i=e.length,function(s){if(s.slice(0,i)===e)return new t.Result(e,s.slice(i))}},t.lazy=function(t){var e;return e=null,function(i){return null==e&&(e=t()),e(i)}},t.baseMany=function(e,i,s,o,r){var n,a,l;for(a=r,l=s?"":[];(null==i||null==i(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(i){return t.baseMany(e,null,!1,!0,i)}},t.concatMany1Till=function(e,i){return function(s){return t.baseMany(e,i,!0,!0,s)}},t.firstChoice=function(){var t;return t=1<=arguments.length?wi.call(arguments,0):[],function(e){var i,s,o;for(i=-1,s=t.length;++i<s;)if(null!=(o=(0,t[i])(e)))return o}},p=function(e){var i;return(i={}).wildcard=t.tag("wildcard",t.string(e.wildcardChar)),i.optional=t.tag("optional",t.pick(1,t.string(e.optionalSegmentStartChar),t.lazy((function(){return i.pattern})),t.string(e.optionalSegmentEndChar))),i.name=t.regex(new RegExp("^["+e.segmentNameCharset+"]+")),i.named=t.tag("named",t.pick(1,t.string(e.segmentNameStartChar),t.lazy((function(){return i.name})))),i.escapedChar=t.pick(1,t.string(e.escapeChar),t.regex(/^./)),i.static=t.tag("static",t.concatMany1Till(t.firstChoice(t.lazy((function(){return i.escapedChar})),t.regex(/^./)),t.firstChoice(t.string(e.segmentNameStartChar),t.string(e.optionalSegmentStartChar),t.string(e.optionalSegmentEndChar),i.wildcard))),i.token=t.lazy((function(){return t.firstChoice(i.wildcard,i.optional,i.named,i.static)})),i.pattern=t.many1(t.lazy((function(){return i.token}))),i},a={escapeChar:"\\",segmentNameStartChar:":",segmentValueCharset:"a-zA-Z0-9-_~ %",segmentNameCharset:"a-zA-Z0-9",optionalSegmentStartChar:"(",optionalSegmentEndChar:")",wildcardChar:"*"},r=function(t,e){if(Array.isArray(t))return u(t,(function(t){return r(t,e)}));switch(t.tag){case"wildcard":return"(.*?)";case"named":return"(["+e+"]+)";case"static":return l(t.value);case"optional":return"(?:"+r(t.value,e)+")?"}},o=function(t,e){return null==e&&(e=a.segmentValueCharset),"^"+r(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,i,s){var o,r,n;if(null==s&&(s=!1),null!=(n=t[e])){if(!((o=i[e]||0)>(Array.isArray(n)?n.length-1:0)))return r=Array.isArray(n)?n[o]:n,s&&(i[e]=o+1),r;if(s)throw new Error("too few values provided for key `"+e+"`")}else if(s)throw new Error("no values provided for key `"+e+"`")},i=function(t,e,s){var o,r;if(Array.isArray(t)){for(o=-1,r=t.length;++o<r;)if(i(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 i(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 i(t.value,e,s)?m(t.value,e,s):""}},(e=function(t,i){var r,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!=i){if(!Array.isArray(i))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(r=h(this.regex),i.length!==r)throw new Error("regex contains "+r+" groups but array of group names contains "+i.length);this.names=i}}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!=i?i.escapeChar:void 0)||a.escapeChar,segmentNameStartChar:(null!=i?i.segmentNameStartChar:void 0)||a.segmentNameStartChar,segmentNameCharset:(null!=i?i.segmentNameCharset:void 0)||a.segmentNameCharset,segmentValueCharset:(null!=i?i.segmentValueCharset:void 0)||a.segmentValueCharset,optionalSegmentStartChar:(null!=i?i.optionalSegmentStartChar:void 0)||a.optionalSegmentStartChar,optionalSegmentEndChar:(null!=i?i.optionalSegmentEndChar:void 0)||a.optionalSegmentEndChar,wildcardChar:(null!=i?i.wildcardChar:void 0)||a.wildcardChar},null==(l=p(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,i;return null==(i=this.regex.exec(t))?null:(e=i.slice(1),this.names?d(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=h,e.keysAndValuesToObject=d,e.P=t,e.newParser=p,e.defaultOptions=a,e.astNodeToRegexString=o,e.astNodeToNames=s,e.getParam=c,e.astNodeContainsSegmentsForProvidedParams=i,e.stringify=m,e},null!==xi.exports?vi.exports=bi():yi.UrlPattern=bi();const _i=fi(xi.exports),ki=class{static async queueTaskPromise(){return new Promise((t=>{window.queueMicrotask((()=>t(null)))}))}static async delayPromise(t){return new Promise((e=>{setTimeout(e,t)}))}},$i=class t{static areEqual(t,e){return t.length===e.length&&t.every(((t,i)=>t===e[i]))}static from2d(t){return{to1D:()=>{let e=[];return t.forEach((t=>e=e.concat(t))),this.from(e)}}}static from(e){return{get:()=>e||[],everyItem:()=>({has:()=>({same:()=>({value:()=>({forKey:t=>{if(e.length<1)return!0;const i=(e[0]||{})[t];return e.every((e=>(e||{})[t]==i))}})})}),value:()=>({forKey:i=>t.from(e.map((t=>t[i])))}),copy:()=>({fromKey:t=>({toKey:i=>{e.forEach((e=>{e[i]=Array.isArray(e[t])?[...e[t]]:"object"==typeof e[t]&&null!=e[t]?{...e[t]}:e[t]}))}})})}),map:i=>t.from(e.map(i)),filter:i=>t.from(e.filter(i)),find:t=>e.find(t),some:t=>e.some(t),every:t=>e.every(t),group:()=>({byKey:i=>{const s=[],o=new Map;for(const t of e){const e=t[i];if(!o.has(e)){const t=s.length;o.set(e,t);const r={items:[]};r[i]=e,s.push(r)}s[o.get(e)].items.push(t)}return t.from(s)}}),without:()=>({duplicates:()=>({forKey:i=>{const s=[...new Set(e.map((t=>t[i])))];return t.from(s.map((t=>e.find((e=>e[i]==t)))))}}),itemsIn:i=>({havingSameValue:()=>({forKey:s=>t.from(e.filter((t=>{return i.every((e=t,o=s,t=>e[o]!=t[o]));var e,o})))})})})}}},Pi=Xt,Si=Kt,Ci=kt,Ai=mi,Oi=Pt,Ei=Rt,Ti=zt,Mi=qt,Di=_i;window["concorde-utils"]=window["concorde-utils"]||{},window["concorde-utils"]={Utils:ki,Arrays:$i,DataBindObserver:Pi,Format:Si,HTML:Ci,LocationHandler:Ai,Objects:Oi,PublisherProxy:Ei,PublisherManager:Ti,api:Mi,URLPattern:Di};var Li=Object.defineProperty,ji=Object.getOwnPropertyDescriptor,Ii=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?ji(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Li(e,i,r),r};const zi={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty"};let Bi=class extends pt{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 Z}return this.visible?V`<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&&V`<sonic-icon
          name=${zi[this.status]}
          class="sonic-toast-icon"
          size="2xl"
        ></sonic-icon>`}

        <div class="sonic-toast-text">
          ${this.title?V`<div class="sonic-toast-title">${this.title}</div>`:""}
          ${this.text?_e(this.text):""}
          <slot></slot>
        </div>

        ${this.preserve?"":this.autoHide()}
      </div>
    </div>`:Z}hide(){if(Ci.getClosestElement(this,"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()}),6e3)}};Bi.styles=[hi,l`
      * {
        box-sizing: border-box;
      }
      :host {
        display: block;
        pointer-events: auto;
        position: relative;
        --sc-toast-status-color: transparent;
        --sc-toast-color: var(--sc-base-content, #000);
        --sc-toast-bg: var(--sc-base, #fff);
        --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: 10000;
        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: 0.5rem;
        overflow: auto;
        position: relative;
      }

      .sonic-toast-text {
        align-self: center;
        margin-top: auto;
        margin-bottom: auto;
        max-width: 70ch;
        line-height: 1.2;
      }

      ::slotted(a:not(.btn)),
      .sonic-toast-text a {
        color: inherit !important;
        text-decoration: underline !important;
        text-underline-offset: 0.15rem;
      }

      ::slotted(:is(p, ul, ol, hr, h1, h2, h3, h4, h5, h6)),
      .sonic-toast-text :is(p, ul, ol, hr, h1, h2, h3, h4, h5, h6) {
        margin: 0 0 0.3em !important;
      }

      ::slotted(li),
      .sonic-toast-text li {
        margin-bottom: 0.15em !important;
      }

      ::slotted(:is(p, ul, ol, hr, h1, h2, h3, h4, h5, h6):last-child),
      .sonic-toast-text
        > :is(p, ul, ol, hr, h1, h2, h3, h4, h5, h6):last-child {
        margin-bottom: 0 !important;
      }

      /*BUTTON CLOSE*/
      .sonic-toast-close {
        all: unset;
        position: absolute;
        z-index: 4;
        pointer-events: initial;
        right: 0.5em;
        top: 0.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: 0.5;
        background: rgba(0, 0, 0, 0);
      }

      .sonic-toast-close:focus,
      .sonic-toast-close:hover {
        opacity: 1;
        background: rgba(0, 0, 0, 0.075);
      }

      .sonic-toast-close svg {
        width: 1rem;
        height: 1rem;
        object-fit: contain;
        object-position: center center;
      }

      /*Title*/
      .sonic-toast-title {
        font-weight: bold;
        font-size: 1.15rem;
        margin: 0.15em 0 0.25em;
        line-height: 1.2;
      }

      /*STATUS*/
      .success {
        --sc-toast-status-color: var(
          --sc-success,
          var(--sc-base-content, #000)
        );
      }

      .error {
        --sc-toast-status-color: var(--sc-danger, var(--sc-base-content, #000));
      }

      .warning {
        --sc-toast-status-color: var(
          --sc-warning,
          var(--sc-base-content, #000)
        );
      }

      .info {
        --sc-toast-status-color: var(--sc-info, var(--sc-base-content, #000));
      }

      .success,
      .error,
      .info,
      .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: 0.05;
        pointer-events: none;
        transition: 0.2s;
        border-radius: var(--sc-toast-rounded);
        background-color: var(--sc-toast-status-color);
      }

      .sonic-toast:hover:before {
        opacity: 0.025;
      }

      .info .sonic-toast-icon,
      .error .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: 0.85;
        pointer-events: none;
      }
    `],Ii([ft({type:String})],Bi.prototype,"title",2),Ii([ft({type:String})],Bi.prototype,"id",2),Ii([ft({type:String})],Bi.prototype,"text",2),Ii([ft({type:String})],Bi.prototype,"status",2),Ii([ft({type:Boolean})],Bi.prototype,"ghost",2),Ii([ft({type:Boolean})],Bi.prototype,"preserve",2),Ii([ft({type:Boolean})],Bi.prototype,"dismissForever",2),Ii([ft({type:String})],Bi.prototype,"maxHeight",2),Ii([vt()],Bi.prototype,"visible",2),Bi=Ii([ut("sonic-toast-item")],Bi);const Ri=l`
  :host {
    /* POLICES */
    /*
    --sc-font-family-base: "Inter var", "Inter", -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, sans-serif); 
    --sc-headings-font-style: var(--sc-font-style-base, normal); 
    --sc-headings-line-height: 1.1; 
    --sc-headings-font-weight: 700; 
    */

    /* ROUNDED*/
    --sc-rounded-sm: calc(var(--sc-rounded, 0px) * 0.5);
    --sc-rounded: 0.375rem;
    --sc-rounded-md: calc(var(--sc-rounded, 0px) * 1.8);
    --sc-rounded-lg: calc(var(--sc-rounded, 0px) * 3);
    --sc-rounded-xl: calc(var(--sc-rounded, 0px) * 7);

    /* BOUTONS */
    /*
    --sc-btn-font-family: var(--sc-font-family-base, sans-serif); *
    --sc-btn-font-weight: 500;
    */

    /* Placeholder */
    /*--sc-placeholder-bg: rgba(17, 24, 39, 0.05);  */

    /* 4 for rounded full*/
    --sc-btn-rounded-intensity: 1.4;
    --sc-rounded-size-intensity: calc((1em - 1rem) * 0.4);
    --sc-btn-rounded: calc(
      (var(--sc-rounded, 0px) + var(--sc-rounded-size-intensity)) *
        var(--sc-btn-rounded-intensity)
    );

    /* OMBRES */
    --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 0px 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);

    /* Forms */
    --sc-border-width: max(1px, 0.12rem);
    --sc-border-color: var(--sc-base-100, var(--sc-base-content, #000));
    /*--sc-form-height: 2.5em; */ /*ok*/
    --sc-form-border-width: var(--sc-border-width);
    --sc-input-bg: var(--sc-base-100, rgba(0, 0, 0, 0.07));
    --sc-input-border-color: var(--sc-input-bg);
    --sc-input-rounded-intensity: 1.4;
    --sc-input-rounded: calc(
      (var(--sc-rounded, 0px) + var(--sc-rounded-size-intensity)) *
        var(--sc-input-rounded-intensity)
    );
    /*formulaires*/
    --sc-input-color: var(--sc-base-content, #000);

    /* CONTRAST */
    /* -- ex : Text on images */
    --sc-contrast-content: #fff;
    --sc-contrast: #000000;
  }
`,Ni=l`
  :host([theme="light"]) {
    /*Boutons*/
    --sc-primary: var(--sc-base-800);
    --sc-info: #2563eb;
    --sc-danger: #f43f5e;
    --sc-warning: #f97316;
    --sc-success: #14b8a6;

    --sc-primary-content: var(--sc-base, #fff);
    --sc-info-content: var(--sc-base, #fff);
    --sc-danger-content: var(--sc-base, #fff);
    --sc-warning-content: var(--sc-base, #fff);
    --sc-success-content: var(--sc-base, #fff);

    /*Bases*/
    --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);
  }
`,Fi=l`
  --sc-primary: var(--sc-dark-primary, var(--sc-base-700));
  --sc-info: var(--sc-dark-info, #3abff8);
  --sc-danger: var(--sc-dark-danger, #f87272);
  --sc-warning: var(--sc-dark-warning, #fbbd23);
  --sc-success: var(--sc-dark-success, #36d399);

  --sc-primary-content: var(--sc-dark-primary-content, #002b3d);
  --sc-info-content: var(--sc-dark-info-content, #002b3d);
  --sc-danger-content: var(--sc-dark-danger-content, #382800);
  --sc-warning-content: var(--sc-dark-warning-content, #382800);
  --sc-success-content: var(--sc-dark-success-content, #003320);

  --sc-base: var(--sc-dark-base, #1d2634);
  --sc-base-50: var(--sc-dark-base-50, #1f2937);
  --sc-base-100: var(--sc-dark-base-100, #252c36);
  --sc-base-200: var(--sc-dark-base-200, #2c3543);
  --sc-base-300: var(--sc-dark-base-300, #38414e);
  --sc-base-400: var(--sc-dark-base-400, #515964);
  --sc-base-500: var(--sc-dark-base-500, #828891);
  --sc-base-600: var(--sc-dark-base-600, #b4b8be);
  --sc-base-700: var(--sc-dark-base-700, #cdd0d5);
  --sc-base-800: var(--sc-dark-base-800, #d9dce0);
  --sc-base-900: var(--sc-dark-base-900, #e5e7eb);
  --sc-base-content: var(--sc-dark-base-content, #e5e7eb);
`,qi=l`
  :host([theme="dark"]) {
    ${Fi}
  }

  @media (prefers-color-scheme: dark) {
    :host([theme="auto"]) {
      ${Fi}
    }
  }
`;var Hi=Object.defineProperty,Ui=Object.getOwnPropertyDescriptor,Vi=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Ui(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Hi(e,i,r),r};let Wi=class extends pt{constructor(){super(),this.background=!1,this.color=!1,this.font=!1,Wi.instance=this}static getPopContainer(){return Wi.instance||document.body}connectedCallback(){super.connectedCallback(),window.addEventListener("message",(t=>this.receiveMessage(t)),!1),window.dispatchEvent(new CustomEvent("SonicThemeReady")),this.postCSSVars()}postCSSVars(){var t;const e=document.styleSheets,i=e.length,s=[];for(let r=0;r<i;r++){const t=e[r];t.href&&(t.href.includes("googleapis")||t.href.includes("typekit.net"))&&s.push(t.href)}const o={variables:this.getCssVariables(),fonts:s};null==(t=Ti.get("sonic-theme"))||t.set(o),document.querySelectorAll("iframe").forEach((t=>{var e;return null==(e=t.contentWindow)?void 0:e.postMessage({type:"SonicTheme",...o},"*")}))}receiveMessage(t){const e=t.data;e.type&&"GetSonicTheme"==e.type&&this.postCSSVars()}getCssVariables(){const t=[],e=[...Wi.styles.map((t=>t.styleSheet)),...Array.from(document.styleSheets)];for(const o of e)try{if(!o)continue;const e=o.cssRules;for(const i of e){if(!("style"in i))continue;const e=i.style;for(const i of e)t.includes(i)||0!==i.indexOf("--sc")||t.push(i)}}catch(tO){console.warn("Erreur lors de la récupération des variables CSS")}const i=window.getComputedStyle(this),s={};return t.forEach((t=>s[t]=i.getPropertyValue(t))),s}render(){return V`<slot></slot>`}};Wi.styles=[Ni,qi,Ri,l`
      :host([color]) {
        color: var(--sc-base-content, #000);
      }

      :host([font]) {
        font-family: var(--sc-font-family-base, sans-serif);
        font-weight: var(--sc-font-weight-base, 400);
        font-style: var(--sc-font-style-base, normal);
      }
      ::slotted(.sonic-pop-content) {
        max-width: 80vw;
        background-color: var(--sc-base, #fff);
        position: fixed;
        z-index: 99999;
        display: block;
        transform: translateY(1rem) scale(0.95);
        pointer-events: none;
        transition-duration: 0.15s;
        transition-timing-function: ease;

        transition-property: scale, opacity;
        border-radius: min(calc(var(--sc-btn-rounded) * 2), 0.4em);
      }

      ::slotted(.sonic-pop-content).is-open:not(.is-empty) {
        transform: translateY(0) scale(1);
        opacity: 1;
        pointer-events: auto;
        transition-property: scale, opacity;
        transition-timing-function: cubic-bezier(0.25, 0.25, 0.42, 1.225);
      }
    `],Vi([ft({type:String,reflect:!0})],Wi.prototype,"theme",2),Vi([ft({type:Boolean,reflect:!0})],Wi.prototype,"background",2),Vi([ft({type:Boolean,reflect:!0})],Wi.prototype,"color",2),Vi([ft({type:Boolean,reflect:!0})],Wi.prototype,"font",2),Wi=Vi([ut("sonic-theme")],Wi);var Zi=Object.defineProperty,Yi=Object.getOwnPropertyDescriptor,Gi=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Yi(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Zi(e,i,r),r};let Ki=class extends pt{constructor(){super(...arguments),this.toasts=[]}createRenderRoot(){return this}render(){const t=!(window.parent==window);let e={pointerEvents:"none",gap:"1rem",display:"flex",margin:this.toasts.length?"1rem":"0"};return t||(e={...e,margin:"0",width:"calc(100% - 2.5rem)",position:"fixed",bottom:"1.25rem",right:"1.25rem",zIndex:"10000",maxWidth:"64ch",flexDirection:"column-reverse"}),Ki.handleExistingToastDelegation(),this.toasts?V`<div aria-live="polite" style=${pi(e)}>
      ${Ie(this.toasts,(t=>t.id),(e=>V`
          <sonic-toast-item
            maxHeight=${t?"none":"10rem"}
            status=${li(e.status)}
            title=${li(e.title)}
            ?ghost=${e.ghost}
            ?dismissForever=${e.dismissForever}
            ?preserve=${e.preserve}
            id=${li(e.id)}
            @hide=${()=>this.removeItem(e)}
            ${Ke({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})}
          >
            <!-- Le texte est passé dans le slot et non pas en propriété pour contrer des problèmatiques de shadow-dom et d'appel exterieur (exemple: fancybox) -->
            ${e.text?_e(e.text):""}
          </sonic-toast-item>
        `))}
    </div>`:Z}static removeAll(){if(Ki.delegateToasts)return Ki.handleExistingToastDelegation(),void window.parent.postMessage({type:"removeAllToasts"},"*");const t=Ki.getInstance();t&&(t.toasts=t.toasts.filter((t=>t.ghost)))}static getInstance(){return Ki.instance||(Ki.instance=document.createElement("sonic-toast"),Wi.getPopContainer().prepend(Ki.instance)),Ki.instance}static add(t){if(Ki.delegateToasts)return Ki.handleExistingToastDelegation(),void window.parent.postMessage({type:"addToast",toast:t},"*");const e=Ki.getInstance(),i=t.id??(new Date).valueOf(),s=new RegExp("</a>|</.*?button>|</.*?input>|</.*?textarea>|</.*?select>").test(t.text),o={id:i,text:t.text,title:t.title,status:t.status,preserve:!!s||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(null==e?void 0:e.toasts.length){const t={...o};for(const i of e.toasts){const e={...i};if(t.id=e.id=0,
/*!currentToast.preserve && */
Pt.shallowEqual(t,e))return null}}return e&&(e.toasts=[...e.toasts,o]),o}static handleExistingToastDelegation(){if(!this.delegateToasts)return;const t=Ki.getInstance();window.parent.postMessage({type:"addToasts",toasts:t.toasts},"*"),t.toasts=[]}static removeItem(t){if(Ki.delegateToasts)return Ki.handleExistingToastDelegation(),void window.parent.postMessage({type:"removeToast",toast:t},"*");const e=Ki.getInstance();e&&e.removeItem(t)}removeItem(t){t&&(this.toasts=this.toasts.filter((e=>(delete(e={...e}).id,!Pt.shallowEqual(e,t,!1)))))}};Ki.delegateToasts=!1,Gi([ft({type:Array})],Ki.prototype,"toasts",2),Ki=Gi([ut("sonic-toast")],Ki),"undefined"!=typeof window&&(window[Ot+"Toast"]=window[Ot+"Toast"]||Ki),function(){var t;const e=!(window.parent==window);if(window.addEventListener("message",(t=>{"querySonicToastAvailability"==t.data.type&&t.source.postMessage({type:"sonicToastAvailable"},"*"),"sonicToastAvailable"==t.data.type&&(Ki.delegateToasts=!0,Ki.handleExistingToastDelegation()),"addToasts"==t.data.type&&(Ki.getInstance().toasts=[...Ki.getInstance().toasts,...t.data.toasts]),"removeAllToasts"==t.data.type&&Ki.removeAll(),"removeToast"==t.data.type&&Ki.removeItem(t.data.toast),"addToast"==t.data.type&&Ki.add(t.data.toast)}),!1),e&&window.parent.postMessage({type:"querySonicToastAvailability"},"*"),!e)for(const i of document.querySelectorAll("iframe"))null==(t=i.contentWindow)||t.postMessage({type:"sonicToastAvailable"},"*")}();var Qi=Object.defineProperty,Xi=Object.getOwnPropertyDescriptor,Ji=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Xi(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Qi(e,i,r),r};let ts=class extends(Le(pt)){constructor(){super(...arguments),this._messages=[]}get messages(){return this._messages}set messages(t){this._messages=t,this.messages&&t.forEach((t=>{"public"==t.type&&Ki.add({text:t.content||"",status:t.status})}))}render(){return Z}};Ji([ft({type:Array})],ts.prototype,"messages",1),ts=Ji([ut("sonic-toast-message-subscriber")],ts);var es=Object.defineProperty,is=Object.getOwnPropertyDescriptor,ss=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?is(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&es(e,i,r),r};const os=new Map,rs=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.formDataProvider="",this._name="",this._value="",this.onValueAssign=t=>{this.setValueFromPublisher(t)},this.onFormValueAssign=async t=>{this.setFormValueFromPublisher(t)},this.onFormDataInValidate=()=>{const t=this.getFormPublisher();t&&t.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.getAttribute("name")){this.getFormPublisher()&&(this.setFormPublisherValue(this.getValueForFormPublisher()),this.setFormValueFromPublisher(this.getFormPublisherValue()))}}getFormPublisher(){return this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider")),this.formDataProvider?zt.get(this.formDataProvider):null}setFormPublisherValue(t){const e=this.getFormPublisher();e&&St(e,this.name).set(t)}getFormPublisherValue(){const t=this.getFormPublisher();return t?St(t,this.name).get():null}getValueForFormPublisher(){return this.value}setValueFromPublisher(t){this.value=t}setFormValueFromPublisher(t){this.value=t}get value(){return this._value}set value(t){null==t&&(t=""),Pt.isObject(t)&&Object.prototype.hasOwnProperty.call(t,"__value")&&null==t._value&&(t=""),this._value!=t&&(this._value=t,this.updateDataValue(),this.requestUpdate())}initPublisher(){let t=this.getFormPublisher();const e=this.hasAncestorAttribute("initFromPublisher")&&this._name&&this.getFormPublisherValue()?this.getFormPublisherValue():this.getAttribute("value");this._name&&this.publisher&&St(this.publisher,this._name).offAssign(this.onValueAssign),this._name&&t&&St(t,this._name).offAssign(this.onFormValueAssign),super.initPublisher(),this.name||(this._name=this.getAttribute("name")),this.value||(this._value=this.getAttribute("value")),this.publisher&&this._name&&St(this.publisher,this._name).onAssign(this.onValueAssign),t=this.getFormPublisher(),this._name&&t&&(St(t,this._name).onAssign(this.onFormValueAssign),t.onFormInvalidate(this.onFormDataInValidate)),this.updateDataValue(),e&&(this.value=e)}handleBlur(){this.touched=!0}handleChange(t){this.value=t.target.value;const e=new Event("change");this.dispatchEvent(e)}addKeyboardNavigation(){const t=this.getAncestorAttributeValue("data-keyboard-nav");if(!t)return;const e=t.split(" "),i=e[0];if(!i)return;for(const o of e){os.has(o)||os.set(o,[]);const t=os.get(o);-1==(null==t?void 0:t.indexOf(this))&&t.push(this)}const s=os.get(i);this.addEventListener("keydown",(t=>{var e;const i=t;if(!["ArrowDown","ArrowUp"].includes(i.key))return;const o="input:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled])",r=null==s?void 0:s.filter((t=>{var e;const i=null==(e=t.shadowRoot)?void 0:e.querySelector(o);if(!i)return!1;const s=window.getComputedStyle(i);return"none"!==s.display&&""!==s.display&&"none"!=s.pointerEvents&&"hidden"!==s.visibility&&i.getBoundingClientRect().width>0}));let n=null;if("ArrowDown"==i.key&&r){const t=r.indexOf(this);n=t==r.length-1?r[0]:r[t+1]}else if("ArrowUp"==i.key&&r){const t=r.indexOf(this);n=0==t?r[r.length-1]:r[t-1]}const a=null==(e=null==n?void 0:n.shadowRoot)?void 0:e.querySelector(o);a&&a.focus&&(a.focus(),t.preventDefault(),t.stopPropagation())}))}focus(){var t;const e=null==(t=this.shadowRoot)?void 0:t.querySelector("[data-form-element]");null==e||e.focus()}connectedCallback(){this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"),super.connectedCallback(),this.addKeyboardNavigation()}disconnectedCallback(){super.disconnectedCallback(),this._name&&this.publisher&&St(this.publisher,this._name).offAssign(this.onValueAssign);const t=this.getFormPublisher();this._name&&t&&(St(t,this._name).offAssign(this.onFormValueAssign),t.offFormInvalidate(this.onFormDataInValidate))}}return ss([ft({type:Boolean,reflect:!0})],e.prototype,"touched",2),ss([ft({type:Boolean})],e.prototype,"error",2),ss([ft({type:Boolean})],e.prototype,"autofocus",2),ss([ft({type:Boolean})],e.prototype,"required",2),ss([ft({type:Boolean})],e.prototype,"forceAutoFill",2),ss([ft({type:Boolean})],e.prototype,"disabled",2),ss([ft({type:String,attribute:"data-aria-label"})],e.prototype,"ariaLabel",2),ss([ft({type:String,attribute:"data-aria-labelledby"})],e.prototype,"ariaLabelledby",2),ss([ft()],e.prototype,"name",1),ss([ft()],e.prototype,"value",1),e};var ns=Object.defineProperty,as=Object.getOwnPropertyDescriptor,ls=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?as(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&ns(e,i,r),r};const cs=t=>{class e extends t{constructor(){super(...arguments),this._value="",this.forceAutoFill=!1,this.unique=null,this.radio=null,this.unCheckOnDisconnect=!1,this._checked=null,this.updateAllChecked=()=>{var t;const e=this.getAttribute("name"),i=this.getCheckAllPublisher(),s=this.getFormPublisher();if((null==i?void 0:i.hasCheckAll.get())&&!this.checksAll()&&i&&s&&e){if(!(null==(t=this.getFormPublisherValue())?void 0:t.length))return void(i.checkMode="noneChecked");null===this.checked?i.checkMode="someUnchecked":"noneChecked"!=i.checkMode.get()&&null!=i.checkMode.get()||(i.checkMode="someUnchecked");const e=this.getFormPublisherValue(),s=i.values.get();if(s&&s.length){let t=s.length;for(const i of s)-1==e.indexOf(i)&&(t-=1);t==s.length&&(i.checkMode="allChecked"),0==t&&(i.checkMode="noneChecked")}-1==s.indexOf(this.value)&&(this.checked=null)}},this.onChecksAllRequest=t=>{this.removeAttribute("allChecked"),this.removeAttribute("indeterminate"),"allChecked"==t&&(this.checked=!0,this.setAttribute("allChecked","")),"noneChecked"==t&&(this.checked=null),"someUnchecked"==t&&(this.checksAll()&&(this.checked="indeterminate"),this.setAttribute("indeterminate",""))}}get value(){return this._value}set value(t){if(this.value==t)return;if(this.hasAttribute("value")&&!this.forceAutoFill&&(t=this.getAttribute("value")),this._value==t)return;if(null==t)return;if(this._value=t,!this.value)return;if(this.getFormPublisher()&&this.name){let e=this.getFormPublisherValue();(this.radio||this.unique)&&(this.checked=e==t||null),Array.isArray(e)||(e=[]),-1!=e.indexOf(t)&&(this.checked=!0)}1==this.checked&&this.updateDataValue(),this.requestUpdate()}get checked(){return this._checked}set checked(t){if(this.setCheckedValue(t),this.checksAll()){const t=this.getCheckAllPublisher();if(t)if(!0===this.checked)t.checkMode="allChecked";else if(null===this.checked){t.checkMode="noneChecked";this.getFormPublisher()&&this.setFormPublisherValue([])}}this.requestUpdate()}validateFormElement(){var t;const e=null==(t=this.shadowRoot)?void 0:t.querySelector("input");if(!e||e.checkValidity())return;const i=this.getFormPublisher();if(i){const t=this.getFormPublisherValue();if((this.unique||this.radio)&&null!=t&&t.toString().length>0)return;i.isFormValid=!1,e.reportValidity()}}checksAll(){return this.hasAttribute("checksAll")}setCheckedValue(t){this._checked!=t&&(this._checked=t,this.updateDataValue(),this.requestUpdate(),setTimeout((()=>this.updateAllChecked()),1))}handleChange(){const t=!0!==this.checked||(!!this.radio||null);this.checked=t;const e=new Event("change");this.dispatchEvent(e)}getValueForFormPublisher(){let t=this.getFormPublisherValue();if(this.radio)return!0===this.checked&&null!=this.value?this.value:t;if(this.unique)return!0===this.checked&&null!=this.value?this.value:null;Array.isArray(t)||(t=[]);const e=t.slice(0),i=e.indexOf(this.value);return!0!==this.checked||-1!==i||this.checksAll()||e.push(this.value),null===this.checked&&-1!==i&&e.splice(i,1),e}setFormValueFromPublisher(t){this.unique||this.radio?this.checked=this.value==t||null:(Array.isArray(t)||(t=[]),this.checksAll()||(this.checked=-1!==t.indexOf(this.value)||null))}getCheckAllPublisher(){this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"));const t=this.formDataProvider,e=this.getAttribute("name");return t&&e?Ti.get(t+"/"+e+"/_available_values_"):null}disconnectedCallback(){super.disconnectedCallback();const t=this.getCheckAllPublisher();if(t&&(t.checkMode.offAssign(this.onChecksAllRequest),!this.checksAll())){const e=t.values.get().slice(0),i=e.indexOf(this.value);-1!=i&&(e.splice(i,1),t.values=e)}setTimeout((()=>this.updateAllChecked()),1)}connectedCallback(){super.connectedCallback();if(this.getFormPublisher()&&this.name){const t=this.getFormPublisherValue();t&&Array.isArray(t)&&-1!==t.indexOf(this.value)&&(this.checked=!0)}const t=this.getCheckAllPublisher();t&&(t.checkMode.onAssign(this.onChecksAllRequest),this.checksAll()&&(t.hasCheckAll=!0),t.values.get()||(t.values=[]),this.checksAll()||(t.values=[...t.values.get(),this.value])),this.hasAttribute("checked")&&(this.publisher&&!1===this.publisher.get().checked||setTimeout((()=>this.checked=!0),1))}}return ls([ft()],e.prototype,"value",1),ls([ft()],e.prototype,"forceAutoFill",2),ls([ft({type:Boolean})],e.prototype,"unique",2),ls([ft({type:Boolean})],e.prototype,"radio",2),ls([ft({type:Boolean})],e.prototype,"unCheckOnDisconnect",2),ls([ft()],e.prototype,"checked",1),e},ds=l`
  /*SIZES*/
  :host {
    --sc-_fs: 1rem;
    --sc-_lh: 1.15;
    font-size: var(--sc-_fs);
    line-height: var(--sc-_lh);
  }

  :host([size="2xs"]) {
    --sc-_fs: 0.625rem;
  }
  :host([size="xs"]) {
    --sc-_fs: 0.75rem;
  }
  :host([size="sm"]) {
    --sc-_fs: 0.875rem;
  }
  :host([size="md"]) {
    --sc-_fs: 1rem;
  }
  :host([size="lg"]) {
    --sc-_fs: 1.125rem;
  }
  :host([size="xl"]) {
    --sc-_fs: 1.25rem;
  }
  :host([size="2xl"]) {
    --sc-_fs: 1.5rem;
  }
  :host([size="inherit"]) {
    --sc-_fs: 1em;
  }
`;var ps=Object.defineProperty,hs=Object.getOwnPropertyDescriptor,us=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?hs(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&ps(e,i,r),r};let ms=class extends(cs(rs(Le(pt)))){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.download=null,this.autoActive="partial",this.loading=!1,this.hasPrefix=!1,this.hasSuffix=!1,this._href="",this.goBack=null,this.pushState=!1,this.active=!1,this.autoRepeat=!1,this.pointerDownTime=0,this.lastRepeatTime=0,this.isRepeating=!1,this.handleRepeatend=()=>{window.removeEventListener("pointerup",this.handleRepeatend),window.removeEventListener("blur",this.handleRepeatend),this.autoRepeat&&(this.isRepeating=!1)},this.location=""}set href(t){this._href=t;const e=this._href.toString();e&&0!=e.indexOf("http")?mi.onChange(this):mi.offChange(this),this.requestUpdate()}get href(){return this._href}handleNavigation(t){t.preventDefault(),mi.changeFromComponent(this)}handleChange(t){if(("click"!=(null==t?void 0:t.type)||!this.autoRepeat)&&(super.handleChange(),(this.pushState||null!==this.goBack)&&(null==t||t.preventDefault(),null==t||t.stopPropagation(),mi.changeFromComponent(this)),this.hasAttribute("reset"))){const t=this.getAttribute("reset"),e=t?Ti.get(t):this.getFormPublisher();e&&e.set({})}}handleRepeatStart(t){this.autoRepeat&&(this.handleChange(t),this.pointerDownTime=Date.now(),this.isRepeating=!0,this.repeat()),window.addEventListener("pointerup",this.handleRepeatend),window.addEventListener("blur",this.handleRepeatend)}repeat(){this.isRepeating&&(this.hasAttribute("disabled")?this.isRepeating=!1:(window.requestAnimationFrame(this.repeat.bind(this)),Date.now()-this.pointerDownTime<500||Date.now()-this.lastRepeatTime<100||(this.handleChange(),this.lastRepeatTime=Date.now())))}connectedCallback(){super.connectedCallback()}setCheckedValue(t){if(this.name){if(t?this.setAttribute("active","true"):this.removeAttribute("active"),t==this._checked)return;super.setCheckedValue(t)}}disconnectedCallback(){mi.offChange(this),super.disconnectedCallback()}willUpdate(t){(t.has("href")||t.has("autoActive"))&&mi.updateComponentActiveState(this),t.has("location")&&mi.updateComponentActiveState(this)}render(){const t={flexDirection:this.direction,alignItems:this.alignItems,justifyContent:this.justify,align:this.align,minWidth:this.minWidth},e=V`
      <button
        part="button"
        class=${this.hasPrefix||this.hasSuffix?"has-prefix-or-suffix":""}
        style=${pi(t)}
        aria-controls=${li(this.ariaControls)}
        aria-expanded=${li(this.sonicAriaExpanded)}
        aria-label=${li(this.ariaLabel)}
        aria-labelledby=${li(this.ariaLabelledby)}
        @click=${this.handleChange}
        @pointerdown=${this.handleRepeatStart}
      >
        <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?V`<sonic-icon name="loader" class="loader"></sonic-icon>`:""}
      </button>
    `;return this.href?V`<a
          href="${this.href}"
          download=${li(this.download)}
          target=${li(this.target)}
          aria-label=${li(this.ariaLabel)}
          aria-labelledby=${li(this.ariaLabelledby)}
          @click=${this.pushState||null!==this.goBack?this.handleNavigation:null}
          >${e}</a
        >`:V`${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)}};ms.styles=[ds,l`
      * {
        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-ff: var(--sc-btn-font-family, sans-serif);
        --sc-btn-fw: var(--sc-btn-font-weight, 500);

        --sc-btn-height: var(--sc-form-height, 2.5em);
        --btn-color: var(--sc-btn-color, var(--sc-base-content, #000));
        --btn-bg: var(--sc-btn-bg, var(--sc-base-100, rgba(0, 0, 0, 0.07)));

        --sc-btn-border-style: solid;
        --sc-btn-border-width: var(--sc-form-border-width);
        --sc-btn-border-color: transparent;

        --btn-outline-bg-hover: var(
          --sc-btn-outline-bg-hover,
          var(--sc-base-100, rgba(0, 0, 0, 0.07))
        );
        --sc-btn-ghost-bg-hover: var(--sc-base-100, rgba(0, 0, 0, 0.07));

        --sc-btn-active-color: var(--sc-base, #fff);
        --sc-btn-hover-filter: brightness(0.98);
        --sc-btn-active-filter: brightness(0.97);
        --sc-btn-active-bg: var(--sc-base-content, #000);

        /* min permet une sécurité si btn-rounded 999px par exemple */
        --sc-item-rounded-tr: min(
          calc(var(--sc-form-height, 2.5em) / 2),
          var(--sc-btn-rounded)
        );
        --sc-item-rounded-tl: min(
          calc(var(--sc-form-height, 2.5em) / 2),
          var(--sc-btn-rounded)
        );
        --sc-item-rounded-bl: min(
          calc(var(--sc-form-height, 2.5em) / 2),
          var(--sc-btn-rounded)
        );
        --sc-item-rounded-br: min(
          calc(var(--sc-form-height, 2.5em) / 2),
          var(--sc-btn-rounded)
        );

        display: inline-flex;
        vertical-align: middle;
        box-sizing: border-box;
        -webkit-print-color-adjust: exact;
      }

      :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(--btn-bg);
        color: var(--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-width) 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);
      }

      /*TYPES*/
      :host([type="default"]) button {
        --btn-color: var(--sc-base-content, #000);
        --btn-bg: var(--sc-base-100, rgba(0, 0, 0, 0.07));
      }

      :host([type="primary"]) button {
        --btn-color: var(--sc-primary-content, var(--sc-base, #fff));
        --btn-bg: var(--sc-primary, var(--sc-base-content, #000));
      }
      :host([type="warning"]) button {
        --btn-color: var(--sc-warning-content, var(--sc-base, #fff));
        --btn-bg: var(--sc-warning, var(--sc-base-content, #000));
      }
      :host([type="danger"]) button {
        --btn-color: var(--sc-danger-content, var(--sc-base, #fff));
        --btn-bg: var(--sc-danger, var(--sc-base-content, #000));
      }
      :host([type="info"]) button {
        --btn-color: var(--sc-info-content, var(--sc-base, #fff));
        --btn-bg: var(--sc-info, var(--sc-base-content, #000));
      }
      :host([type="success"]) button {
        --btn-color: var(--sc-success-content, var(--sc-base, #fff));
        --btn-bg: var(--sc-success, var(--sc-base-content, #000));
      }
      :host([type="neutral"]) button {
        --btn-color: var(--sc-base, #fff);
        --btn-bg: var(--sc-base-content, #000);
      }
      :host([type="custom"]) button {
        --btn-color: var(--sc-btn-custom-color);
        --btn-bg: var(--sc-btn-custom-bg);
      }

      /*UNSTYLED*/
      :host([variant="unstyled"]) {
        display: inline-flex;
      }

      :host([variant="unstyled"]) button {
        all: unset;
        cursor: pointer;
        width: 100%;
        flex: 1;
        box-sizing: border-box;
        --sc-btn-height: auto;
      }

      /*GESTION DU FOCUS*/
      :host(:not([disabled])) button:focus {
        box-shadow: 0 0 0 0.18rem var(--sc-base-300, rgba(0, 0, 0, 0.18));
        border-color: var(--sc-base-300, rgba(0, 0, 0, 0.18)) !important;
        outline: none;
      }

      /*GHOST*/
      :host([variant="ghost"][type]) button {
        color: var(--btn-bg);
        background: transparent;
      }

      :host([variant="ghost"][type="default"]) button {
        color: var(--btn-color);
        background: transparent;
      }

      /*:host([variant="ghost"]) button:focus,*/
      :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);
      }

      /*OUTLINE*/
      :host([variant="outline"][type]) button {
        border-color: var(--btn-bg);
        color: var(--btn-bg);
        background: transparent;
      }

      :host([variant="outline"][type="default"]) button {
        border-color: var(--sc-base-content, #000);
        color: var(--sc-base-content, #000);
        background: transparent;
      }

      /*:host([variant="outline"]) button:focus,*/
      :host([variant="outline"]) button:hover {
        background: var(--btn-outline-bg-hover);
      }

      /*OUTLINE*/
      :host([variant="link"]:not([size])) {
        vertical-align: baseline;
        margin-left: 0.25em;
        margin-right: 0.25em;
      }

      :host([variant="link"]:not([size])) {
        font-size: inherit;
      }

      :host([variant="link"]) button {
        text-decoration: underline;
        padding: 0;
        background: none;
        border: none;
        font-size: inherit;
        min-height: 0;
        color: inherit;
      }

      :host([variant="link"][type]) button {
        color: var(--btn-bg);
      }
      :host([variant="link"][type="default"]) button {
        color: inherit;
      }

      :host([variant="link"]) button:focus,
      :host([variant="link"]) button:hover {
        text-decoration: none;
      }

      /* Alignement */
      :host([align="left"]) button {
        text-align: left !important;
      }

      :host([align="right"]) button {
        text-align: right;
      }

      /*SHAPE*/
      :host([shape="circle"]) button {
        border-radius: 50%;
      }
      :host([shape="circle"]) .main-slot {
        line-height: 1;
      }

      :host([shape="circle"]) button,
      :host([shape="square"]) button {
        width: var(--sc-btn-height);
        height: var(--sc-btn-height);
        /*overflow: hidden;*/ /* fix bug #42622 */
        padding: 0;
        align-items: center;
        justify-content: 0;
        text-align: center !important;
      }

      :host([shape="block"]),
      :host([shape="block"]) button {
        width: 100%;
      }

      :host([disabled]) {
        opacity: 0.3;
        pointer-events: none;
        user-select: none;
      }

      /*ACTIVE*/

      :host([active]:not([variant="ghost"]):not([variant="unstyled"])) button {
        background: var(--sc-btn-active-bg);
        color: var(--sc-btn-active-color);
        border-color: var(--sc-btn-active-bg);
      }

      .main-slot {
        flex-grow: 1;
        min-width: 0;
        display: block;
      }

      :host([minWidth]:not([shape="block"])) .main-slot {
        flex-grow: 0;
      }

      slot[name="suffix"],
      slot[name="prefix"] {
        flex-shrink: 0;
        min-width: 0;
      }

      /*ALIGNEMENT DES ICONES
        permet de tous les avoir alignés dans un menu
      */
      ::slotted(sonic-icon) {
        min-width: 1em;
        text-align: center;
      }

      /*BOUTON Avec icone seulement*/
      :host([icon]) ::slotted(:only-child),
      :host([icon]) ::slotted(sonic-icon) {
        font-size: 1.2em;
        vertical-align: middle;
      }

      /*Tooltip ne joue pas sur le layout*/
      sonic-tooltip {
        display: contents;
      }

      /*OUTLINE*/
      :host(:not([active])) ::slotted([swap="on"]) {
        display: none !important;
      }

      :host([active]) ::slotted([swap="off"]) {
        display: none !important;
      }

      /*Loading*/
      :host([loading]) {
        pointer-events: none;
        position: relative;
      }

      :host([loading]) slot {
        opacity: 0 !important;
        pointer-events: none;
      }
      /*Loading*/
      :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(0deg);
        }
        to {
          transform-origin: 50% 50%;
          transform: translate(-50%, -50%) rotate(359deg);
        }
      }
    `],us([ft({type:String,reflect:!0})],ms.prototype,"type",2),us([ft({type:String,reflect:!0})],ms.prototype,"variant",2),us([ft({type:String,reflect:!0})],ms.prototype,"size",2),us([ft({type:String,reflect:!0})],ms.prototype,"shape",2),us([ft({type:String})],ms.prototype,"direction",2),us([ft({type:String,reflect:!0})],ms.prototype,"alignItems",2),us([ft({type:String})],ms.prototype,"justify",2),us([ft({type:String,reflect:!0})],ms.prototype,"align",2),us([ft({type:String})],ms.prototype,"minWidth",2),us([ft({type:Boolean,reflect:!0})],ms.prototype,"icon",2),us([ft({type:String})],ms.prototype,"download",2),us([ft({type:String})],ms.prototype,"autoActive",2),us([ft({type:Boolean,reflect:!0})],ms.prototype,"loading",2),us([vt()],ms.prototype,"hasPrefix",2),us([vt()],ms.prototype,"hasSuffix",2),us([xt({flatten:!0,slot:"prefix"})],ms.prototype,"prefixes",2),us([xt({flatten:!0,slot:"suffix"})],ms.prototype,"suffixes",2),us([ft({type:String})],ms.prototype,"target",2),us([ft({type:String})],ms.prototype,"href",1),us([ft({type:String})],ms.prototype,"goBack",2),us([ft({type:Boolean})],ms.prototype,"pushState",2),us([ft({type:Boolean,reflect:!0})],ms.prototype,"active",2),us([ft({type:Boolean,reflect:!0})],ms.prototype,"autoRepeat",2),us([ft({type:String,attribute:"data-aria-controls"})],ms.prototype,"ariaControls",2),us([ft({type:Boolean,attribute:"data-aria-expanded"})],ms.prototype,"sonicAriaExpanded",2),us([vt()],ms.prototype,"location",2),ms=us([ut("sonic-button")],ms);var gs=Object.defineProperty,fs=Object.getOwnPropertyDescriptor,vs=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?fs(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&gs(e,i,r),r};const ys=new Set,bs=new Set,ws=new Set;let xs=0;$t((async()=>{xs++;const t=xs,e=Array.from(ws);for(;e.length>0;){if(t!=xs)return;const i=e.splice(0,4);await Promise.all(i.map((t=>t._fetchData())))}}));const _s=(t,e)=>{class i extends t{constructor(...t){super(),this.api=null,this.key="",this.isFirstLoad=!0,this.isLoading=!1,this.iObserver=null,this.isFetchEnabled=!0,this.fetchedData=null,this._endPoint="",this.noErrorsRecordings=!1,this.requestId=0,this.refetchEveryMs=0,this.dataProvider=""}get props(){return super.props}set props(t){super.props=t}set endPoint(t){this._endPoint=t,this.isConnected&&this._fetchData()}get endPoint(){return this._endPoint}async _fetchData(){if(this.requestUpdate(),!this.isFetchEnabled)return;if(this.api=new qt(this.getApiConfiguration()),!this.api)return;if(this.dispatchEvent(new CustomEvent("loading",{detail:this})),"enabled"===this.getAttribute("localStorage")&&await Ti.getInstance().isLocalStrorageReady,!this.isConnected)return;const t=Ti.getInstance().get(this.getAncestorAttributeValue("headersDataProvider")).get();this.isLoading=!0,Pt.isObject(this.props)&&Object.keys(this.props||{}).length>0&&this.isFirstLoad&&window.requestAnimationFrame((()=>{this.dispatchEvent(new CustomEvent("load",{detail:this})),this.isFirstLoad=!1,this.isLoading=!1}));let e=await this.api.get(this.endPoint||this.dataProvider||"",t);if(this.fetchedData=e,this.api.lastResult&&!this.api.lastResult.ok&&(this.noErrorsRecordings||ys.add(this),(t=>{for(const e of bs)e(t)})(this.api.lastResult)),this.isConnected){if(!e)return this.isLoading=!1,void(this.refetchEveryMs&&this.isConnected&&(this.refetchTimeOutId=setTimeout((()=>this._fetchData()),this.refetchEveryMs)));if(e._sonic_http_response_&&!e._sonic_http_response_.ok&&1===Object.keys(e).length&&Ki.add({text:"Network Error",status:"error"}),this.key){const t=e._sonic_http_response_,i=this.key.split(".");e=Pt.traverse(e,i,this.hasAttribute("preserveOtherKeys")),e&&Pt.isObject(e)&&t&&(e._sonic_http_response_=t)}this.props=e,this.dispatchEvent(new CustomEvent("load",{detail:this})),this.isFirstLoad=!1,this.isLoading=!1,this.refetchEveryMs&&this.isConnected&&(this.refetchTimeOutId=setTimeout((()=>this._fetchData()),this.refetchEveryMs))}}disconnectedCallback(){var t;super.disconnectedCallback(),ws.delete(this),null==(t=this.publisher)||t.offInvalidate(this.onInvalidate),clearTimeout(this.refetchTimeOutId),this.isFirstLoad=!1}connectedCallback(){var t;this.lazyLoad=void 0!==this.lazyLoad?this.lazyLoad:this.hasAttribute("lazyload"),ws.add(this),super.connectedCallback(),this.isFetchEnabled&&(this.key=""!=this.key?this.key:this.getAttribute("key"),this.props&&this.publisher.set(this.props),this.onInvalidate=()=>this._fetchData(),null==(t=this.publisher)||t.onInvalidate(this.onInvalidate),this.lazyLoad?this.handleLazyLoad():this._fetchData())}handleLazyLoad(){if(!this.lazyLoad)return;const t=this.getBoundingClientRect();if(t.x<window.innerWidth&&t.right>0&&t.y<window.innerHeight&&t.right>0)return void this._fetchData();const e=parseFloat(this.getAttribute("lazyBoundsRatio")||"1"),i={root:null,rootMargin:Math.max(window.innerWidth*e,window.innerHeight*e)+"px",threshold:.9};this.iObserver=new IntersectionObserver((t=>this.onIntersection(t)),i);let s=[...(this.shadowRoot?this.shadowRoot:this).children].filter((t=>"style"!=t.nodeName.toLowerCase()))[0];if("slot"==(null==s?void 0:s.nodeName.toLocaleLowerCase())&&(s=[...s.children].filter((t=>"style"!=t.nodeName.toLowerCase()))[0]),!s||"template"==s.nodeName.toLocaleLowerCase()){s=document.createElement("span");s.style.pointerEvents="none",this.lazyLoadSpan=s,this.appendChild(s)}s?this.iObserver.observe(s):this.isFirstLoad&&this._fetchData()}onIntersection(t){var e,i;for(const s of t)if(s.isIntersecting&&this.isFirstLoad){this._fetchData(),null==(e=this.lazyLoadSpan)||e.remove(),this.lazyLoadSpan=void 0,null==(i=this.iObserver)||i.disconnect();break}}}return vs([ft()],i.prototype,"noErrorsRecordings",2),vs([ft()],i.prototype,"props",1),vs([ft({type:String})],i.prototype,"endPoint",1),vs([ft()],i.prototype,"requestId",2),vs([ft({type:Number})],i.prototype,"refetchEveryMs",2),i};var ks=Object.defineProperty,$s=Object.getOwnPropertyDescriptor,Ps=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?$s(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&ks(e,i,r),r};const Ss=t=>{class e extends t{constructor(...t){super(),this.forceAutoFill=!1,this._type="text",this.status="default"}validateFormElement(){var t;const e=null==(t=this.shadowRoot)?void 0:t.querySelector("input");if(!e||e.checkValidity())return;const i=this.getFormPublisher();i&&(i.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 Ps([ft()],e.prototype,"forceAutoFill",2),Ps([ft({type:String})],e.prototype,"type",1),Ps([ft()],e.prototype,"description",1),Ps([ft()],e.prototype,"label",1),Ps([ft({type:String,reflect:!0})],e.prototype,"status",2),Ps([ft({type:Number})],e.prototype,"tabindex",2),Ps([ft({type:String})],e.prototype,"autocomplete",2),e};var Cs=Object.defineProperty,As=Object.getOwnPropertyDescriptor;const Os=t=>{class e extends t{constructor(){super(...arguments),this.templates=null,this.templateValueAttribute="data-value",this.templateList=[],this.templateParts={},this.templatePartsList=[]}connectedCallback(){const t=this.templates||[...this.querySelectorAll("template")];for(const e of t)e.hasAttribute(this.templateValueAttribute)&&(this.templateParts[e.getAttribute(this.templateValueAttribute)]=e,this.templatePartsList.push(e)),e.hasAttribute("skeleton")&&(this.templateParts.skeleton=e),e.hasAttribute("no-result")&&(this.templateParts["no-result"]=e),e.hasAttribute("no-item")&&(this.templateParts["no-item"]=e);this.templateList=t.filter((t=>!t.getAttribute("data-value"))),0==this.templateList.length&&(this.templateList=t),super.connectedCallback()}}return((t,e,i,s)=>{for(var o,r=s>1?void 0:s?As(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);s&&r&&Cs(e,i,r)})([ft({type:Array})],e.prototype,"templates",2),e},Es=_s,Ts=cs,Ms=rs,Ds=Ss,Ls=Le,js=Os;window["concorde-mixins"]=window["concorde-mixins"]||{},window["concorde-mixins"]={Fetcher:Es,FormCheckable:Ts,FormElement:Ms,FormInput:Ds,Subscriber:Ls,TemplatesContainer:js};
/**
   * @license
   * Copyright 2020 Google LLC
   * SPDX-License-Identifier: BSD-3-Clause
   */
const Is=de(class extends pe{constructor(t){if(super(t),t.type!==ce)throw Error("templateContent can only be used in child bindings")}render(t){return this.vt===t?W:(this.vt=t,document.importNode(t.content,!0))}});var zs=Object.defineProperty,Bs=Object.getOwnPropertyDescriptor,Rs=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Bs(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&zs(e,i,r),r};let Ns=class extends(_s(Le(js(pt)))){renderLoader(){if(!this.isLoading||void 0===this.loader)return Z;const t=!0===this.loader||""===this.loader?"fixed":this.loader;return V`<sonic-loader mode=${t}></sonic-loader>`}renderSkeleton(){const t=this.templateParts.skeleton;return this.isLoading&&t?Is(t):Z}render(){return V`
      ${this.renderSkeleton()} ${this.renderLoader()}
      ${this.isLoading?Z:V`<slot></slot>`}
    `}};function Fs(t){this.__connectedCallbackCalls__||(this.__connectedCallbackCalls__=new Set),this.__connectedCallbackCalls__.add(t)}function qs(t){this.__disconnectedCallbackCalls__||(this.__disconnectedCallbackCalls__=new Set),this.__disconnectedCallbackCalls__.add(t)}function Hs(t){if(t.__is__setSubscribable__)return;t.__is__setSubscribable__=!0,t.__onConnected__=Fs,t.__onDisconnected__=qs;const e=t.connectedCallback;t.connectedCallback=function(){e.call(this),this.__connectedCallbackCalls__&&this.__connectedCallbackCalls__.forEach((t=>t(this)))};const i=t.disconnectedCallback;t.disconnectedCallback=function(){i.call(this),this.__disconnectedCallbackCalls__&&this.__disconnectedCallbackCalls__.forEach((t=>t(this)))}}function Us(t){const e=t.split(".");if(0==e.length)return function(){};const i=e.shift()||"";let s=zt.get(i);return s=Oi.traverse(s,e),function(t,e){if(!t)return;let i;Hs(t),t.__onConnected__((t=>{i=i=>{t[e]=i},s.onAssign(i)})),t.__onDisconnected__((()=>{s.offAssign(i)}))}}function Vs(...t){const e=[],i=[];for(let s=0;s<t.length;s++){const o=t[s].split(".");if(0==o.length)continue;const r=o.shift()||"";let n=zt.get(r);n=Oi.traverse(n,o);const a=new Set,l=i=>{e[s]=i,e.filter((t=>null!==t)).length==t.length&&a.forEach((t=>t(...e)))};i.push({publisher:n,onAssign:l,callbacks:a})}return function(t,e,s){let o;Hs(t),t.__onConnected__((t=>{for(const e of i)o=s.value.bind(t),e.callbacks.add(o),e.publisher.onAssign(e.onAssign)})),t.__onDisconnected__((()=>{for(const t of i)t.callbacks.delete(o),t.publisher.offAssign(t.onAssign)}))}}Ns.styles=[l`
      :host {
        display: contents;
      }
    `],Rs([ft()],Ns.prototype,"loader",2),Ns=Rs([ut("sonic-fetch")],Ns);var Ws=Object.defineProperty,Zs=Object.getOwnPropertyDescriptor,Ys=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Zs(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Ws(e,i,r),r};let Gs=class extends(Le(pt)){constructor(){super(...arguments),this.continueNavigation=!1}connectedCallback(){const t=localStorage.getItem("ignorePreferWebsiteDate");if(t){((new Date).getTime()-parseInt(t))/36e5<12&&(this.continueNavigation=!0)}super.connectedCallback()}setContinueNavigation(){this.continueNavigation=!0;const t=(new Date).getTime();localStorage.setItem("ignorePreferWebsiteDate",t.toString())}render(){return V`<sonic-modal
      align="center"
      forceAction
      @hidden=${this.setContinueNavigation}
      ?visible=${!this.continueNavigation}
      maxWidth="30rem"
    >
      <sonic-modal-content class="message-content">${Ae("message_billetterie_limitee",!0)}</sonic-modal-content>
      <sonic-modal-actions>
        <sonic-button variant="ghost" size="sm">${Ae("continue_here")}</sonic-button>
      </sonic-modal-actions>
    </sonic-modal>`}};Gs.styles=[l`
      .message-content {
        text-align: center;
        padding: 2rem 0 0;
        font-size: 1.3rem;
        width: 100%;
      }
      .message-content p {
        margin: 0.25em 0;
      }
      .message-content a {
        text-decoration: none;
        border: 2px solid;
        border-radius: var(--sc-btn-radius);
        font-weight: bold;
        padding: 0.25em 0.5em;
        margin: 0.25em auto;
        color: inherit;
        display: block;
        width: fit-content;
      }
      .message-content a:only-child {
        display: block;
      }
    `],Ys([Us("settings.prefer_website"),ft({type:Boolean})],Gs.prototype,"preferWebsite",2),Ys([vt()],Gs.prototype,"continueNavigation",2),Gs=Ys([ut("sonic-prefer-website-message")],Gs);const Ks=l`*,: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-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::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-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html,:host{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,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}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-feature-settings:normal;font-variation-settings:normal;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-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([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}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-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}[hidden]:where(:not([hidden=until-found])){display:none}:host{line-height:1.2;font-family:var(--sc-font-family-base),sans-serif}.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(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1em;margin-bottom:1em}.prose :where([class~=lead]):not(:where([class~=not-prose],[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],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;padding-inline-start:1.625em;margin-top:1em;margin-bottom:1em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;padding-inline-start:1.625em;margin-top:1em;margin-bottom:1em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[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],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[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],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[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],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[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],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[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],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),0 3px 0 rgb(var(--tw-prose-kbd-shadows) / 10%);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"\`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"\`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[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-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[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],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[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],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: var(--sc-base-content);--tw-prose-headings: var(--sc-base-900);--tw-prose-lead: var(--sc-base-content);--tw-prose-links: var(--sc-base-900);--tw-prose-bold: var(--sc-base-content);--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-content);--tw-prose-quote-borders: var(--sc-base-200);--tw-prose-captions: var(--sc-base-500);--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--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-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--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(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em;list-style-type:disc}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose{line-height:1.5}.prose :where(strong a):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:bolder}.prose :where(iframe[src*=youtu]):not(:where([class~=not-prose],[class~=not-prose] *)){border-radius:var(--sc-rounded-md)}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[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],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[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],[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],[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],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-slate{--tw-prose-body: #334155;--tw-prose-headings: #0f172a;--tw-prose-lead: #475569;--tw-prose-links: #0f172a;--tw-prose-bold: #0f172a;--tw-prose-counters: #64748b;--tw-prose-bullets: #cbd5e1;--tw-prose-hr: #e2e8f0;--tw-prose-quotes: #0f172a;--tw-prose-quote-borders: #e2e8f0;--tw-prose-captions: #64748b;--tw-prose-kbd: #0f172a;--tw-prose-kbd-shadows: 15 23 42;--tw-prose-code: #0f172a;--tw-prose-pre-code: #e2e8f0;--tw-prose-pre-bg: #1e293b;--tw-prose-th-borders: #cbd5e1;--tw-prose-td-borders: #e2e8f0;--tw-prose-invert-body: #cbd5e1;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #94a3b8;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #94a3b8;--tw-prose-invert-bullets: #475569;--tw-prose-invert-hr: #334155;--tw-prose-invert-quotes: #f1f5f9;--tw-prose-invert-quote-borders: #334155;--tw-prose-invert-captions: #94a3b8;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #cbd5e1;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #475569;--tw-prose-invert-td-borders: #334155}.prose-tight{line-height:1.25}.prose-tight :where(p,ul,ol,pre):not(:where([class~=not-prose],[class~=not-prose] *)){line-height:1.25;margin:0 0 .5em}.prose-tight :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:.5em;list-style-type:disc}.prose-tight :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){text-decoration:underline}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.-bottom-2{bottom:-.5rem}.-bottom-\\[4px\\]{bottom:-4px}.-left-2{left:-.5rem}.-right-2{right:-.5rem}.-top-1{top:-.25rem}.bottom-0{bottom:0}.left-0{left:0}.left-1{left:.25rem}.left-4{left:1rem}.left-\\[\\.3em\\]{left:.3em}.right-1{right:.25rem}.right-\\[\\.10em\\]{right:.1em}.top-0{top:0}.top-1{top:.25rem}.top-3{top:.75rem}.top-4{top:1rem}.top-5{top:1.25rem}.top-\\[-\\.3em\\]{top:-.3em}.top-\\[-1px\\]{top:-1px}.top-\\[\\.10em\\]{top:.1em}.top-\\[100\\%\\]{top:100%}.top-\\[4\\.2rem\\]{top:4.2rem}.top-\\[60px\\]{top:60px}.top-\\[70px\\]{top:70px}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-\\[980\\]{z-index:980}.order-first{order:-9999}.col-\\[1\\/-1\\]{grid-column:1/-1}.col-span-2{grid-column:span 2 / span 2}.col-span-full{grid-column:1 / -1}.col-start-1{grid-column-start:1}.col-start-2{grid-column-start:2}.row-span-2{grid-row:span 2 / span 2}.clear-both{clear:both}.m-0{margin:0}.m-1{margin:.25rem}.-mx-3{margin-left:-.75rem;margin-right:-.75rem}.-mx-cgx{margin-left:calc(var(--sc-container-gutter-x) * -1);margin-right:calc(var(--sc-container-gutter-x) * -1)}.-my-1{margin-top:-.25rem;margin-bottom:-.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-10{margin-top:2.5rem;margin-bottom:2.5rem}.my-12{margin-top:3rem;margin-bottom:3rem}.my-20{margin-top:5rem;margin-bottom:5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.my-8{margin-top:2rem;margin-bottom:2rem}.my-\\[\\.2rem\\]{margin-top:.2rem;margin-bottom:.2rem}.my-\\[\\.7rem\\]{margin-top:.7rem;margin-bottom:.7rem}.my-\\[2em\\]{margin-top:2em;margin-bottom:2em}.my-\\[2px\\]{margin-top:2px;margin-bottom:2px}.-mb-1{margin-bottom:-.25rem}.-mb-12{margin-bottom:-3rem}.-mb-\\[\\.5em\\]{margin-bottom:-.5em}.-ml-2{margin-left:-.5rem}.-ml-\\[\\.5em\\]{margin-left:-.5em}.-ml-\\[calc\\(var\\(--sc-container-gutter-x\\)\\/2\\)\\]{margin-left:calc(calc(var(--sc-container-gutter-x) / 2) * -1)}.-mr-2{margin-right:-.5rem}.-mr-\\[\\.5em\\]{margin-right:-.5em}.-mr-cgx{margin-right:calc(var(--sc-container-gutter-x) * -1)}.-mt-1{margin-top:-.25rem}.-mt-2{margin-top:-.5rem}.-mt-4{margin-top:-1rem}.-mt-5{margin-top:-1.25rem}.-mt-6{margin-top:-1.5rem}.-mt-\\[\\.15em\\]{margin-top:-.15em}.-mt-cgy{margin-top:calc(var(--sc-container-gutter-y) * -1)}.mb-0{margin-bottom:0}.mb-0\\.5{margin-bottom:.125rem}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:.5rem}.mb-20{margin-bottom:5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-7{margin-bottom:1.75rem}.mb-8{margin-bottom:2rem}.mb-\\[\\.2em\\]{margin-bottom:.2em}.mb-\\[\\.3em\\]{margin-bottom:.3em}.mb-\\[\\.5em\\]{margin-bottom:.5em}.mb-\\[2px\\]{margin-bottom:2px}.mb-\\[2rem\\]{margin-bottom:2rem}.mb-\\[4px\\]{margin-bottom:4px}.mb-auto{margin-bottom:auto}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-5{margin-left:1.25rem}.ml-6{margin-left:1.5rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mr-9{margin-right:2.25rem}.mr-\\[\\.25em\\]{margin-right:.25em}.mr-\\[\\.35em\\]{margin-right:.35em}.mr-\\[\\.85em\\]{margin-right:.85em}.mr-auto{margin-right:auto}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-7{margin-top:1.75rem}.mt-8{margin-top:2rem}.mt-9{margin-top:2.25rem}.mt-\\[\\.15em\\]{margin-top:.15em}.mt-\\[\\.1em\\]{margin-top:.1em}.mt-\\[\\.25em\\]{margin-top:.25em}.mt-\\[\\.2em\\]{margin-top:.2em}.mt-\\[\\.35rem\\]{margin-top:.35rem}.mt-\\[1\\.5rem\\]{margin-top:1.5rem}.mt-auto{margin-top:auto}.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}.aspect-\\[1\\/1\\]{aspect-ratio:1/1}.aspect-\\[3\\/2\\]{aspect-ratio:3/2}.aspect-square{aspect-ratio:1 / 1}.size-3{width:.75rem;height:.75rem}.size-\\[4\\.4rem\\]{width:4.4rem;height:4.4rem}.size-\\[8rem\\]{width:8rem;height:8rem}.h-10{height:2.5rem}.h-2{height:.5rem}.h-24{height:6rem}.h-28{height:7rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\\[--sc-header-height\\]{height:var(--sc-header-height)}.h-\\[\\.80em\\]{height:.8em}.h-\\[1em\\]{height:1em}.h-\\[2em\\]{height:2em}.h-\\[4px\\]{height:4px}.h-\\[var\\(--sc-border-width\\)\\]{height:var(--sc-border-width)}.h-full{height:100%}.max-h-60{max-height:15rem}.max-h-\\[10rem\\]{max-height:10rem}.max-h-\\[11rem\\]{max-height:11rem}.max-h-\\[30vh\\]{max-height:30vh}.max-h-\\[40vh\\]{max-height:40vh}.max-h-\\[calc\\(100vh_-_4\\.2rem\\)\\]{max-height:calc(100vh - 4.2rem)}.max-h-\\[calc\\(80vh-100px\\)\\]{max-height:calc(80vh - 100px)}.min-h-6{min-height:1.5rem}.min-h-\\[1\\.25rem\\]{min-height:1.25rem}.min-h-\\[1\\.8rem\\]{min-height:1.8rem}.min-h-\\[100vh\\]{min-height:100vh}.min-h-\\[130px\\]{min-height:130px}.min-h-\\[1em\\]{min-height:1em}.min-h-\\[40rem\\]{min-height:40rem}.min-h-\\[550px\\]{min-height:550px}.min-h-\\[6rem\\]{min-height:6rem}.w-1{width:.25rem}.w-1\\/2{width:50%}.w-1\\/3{width:33.333333%}.w-10{width:2.5rem}.w-10\\/12{width:83.333333%}.w-16{width:4rem}.w-2\\/3{width:66.666667%}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3{width:.75rem}.w-5\\/12{width:41.666667%}.w-7\\/12{width:58.333333%}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-9\\/12{width:75%}.w-\\[1\\.2em\\]{width:1.2em}.w-\\[1\\.3em\\]{width:1.3em}.w-\\[10rem\\]{width:10rem}.w-\\[14rem\\]{width:14rem}.w-\\[17rem\\]{width:17rem}.w-\\[1em\\]{width:1em}.w-\\[20rem\\]{width:20rem}.w-\\[2em\\]{width:2em}.w-\\[2rem\\]{width:2rem}.w-\\[5rem\\]{width:5rem}.w-\\[70px\\]{width:70px}.w-\\[7rem\\]{width:7rem}.w-\\[9rem\\]{width:9rem}.w-\\[max\\(60\\%\\,20rem\\)\\]{width:max(60%,20rem)}.w-\\[max\\(60\\%\\,25rem\\)\\]{width:max(60%,25rem)}.w-auto{width:auto}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-12{min-width:3rem}.min-w-\\[12rem\\]{min-width:12rem}.min-w-\\[13rem\\]{min-width:13rem}.min-w-\\[14rem\\]{min-width:14rem}.min-w-\\[15rem\\]{min-width:15rem}.min-w-\\[25ch\\]{min-width:25ch}.min-w-\\[2ch\\]{min-width:2ch}.min-w-\\[3\\.5rem\\]{min-width:3.5rem}.min-w-\\[30ch\\]{min-width:30ch}.min-w-\\[3ch\\]{min-width:3ch}.min-w-\\[5em\\]{min-width:5em}.min-w-\\[6ch\\]{min-width:6ch}.min-w-\\[7ch\\]{min-width:7ch}.min-w-\\[8\\.5ch\\]{min-width:8.5ch}.min-w-\\[min\\(7\\.8ch\\,_4\\.5em\\)\\]{min-width:min(7.8ch,4.5em)}.max-w-\\[10ch\\]{max-width:10ch}.max-w-\\[10rem\\]{max-width:10rem}.max-w-\\[12ch\\]{max-width:12ch}.max-w-\\[12rem\\]{max-width:12rem}.max-w-\\[13rem\\]{max-width:13rem}.max-w-\\[15ch\\]{max-width:15ch}.max-w-\\[16rem\\]{max-width:16rem}.max-w-\\[17rem\\]{max-width:17rem}.max-w-\\[18ch\\]{max-width:18ch}.max-w-\\[20ch\\]{max-width:20ch}.max-w-\\[20rem\\]{max-width:20rem}.max-w-\\[23ch\\]{max-width:23ch}.max-w-\\[25rem\\]{max-width:25rem}.max-w-\\[26rem\\]{max-width:26rem}.max-w-\\[28ch\\]{max-width:28ch}.max-w-\\[29ch\\]{max-width:29ch}.max-w-\\[30ch\\]{max-width:30ch}.max-w-\\[30rem\\]{max-width:30rem}.max-w-\\[32rem\\]{max-width:32rem}.max-w-\\[34ch\\]{max-width:34ch}.max-w-\\[36rem\\]{max-width:36rem}.max-w-\\[40ch\\]{max-width:40ch}.max-w-\\[40rem\\]{max-width:40rem}.max-w-\\[50ch\\]{max-width:50ch}.max-w-\\[50rem\\]{max-width:50rem}.max-w-\\[55rem\\]{max-width:55rem}.max-w-\\[60rem\\]{max-width:60rem}.max-w-\\[70ch\\]{max-width:70ch}.max-w-\\[80ch\\]{max-width:80ch}.max-w-\\[80rem\\]{max-width:80rem}.max-w-\\[80vw\\]{max-width:80vw}.max-w-\\[8rem\\]{max-width:8rem}.max-w-\\[90\\%\\]{max-width:90%}.max-w-full{max-width:100%}.max-w-none{max-width:none}.max-w-prose{max-width:65ch}.max-w-sm{max-width:24rem}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.flex-grow-0{flex-grow:0}.grow{flex-grow:1}.grow-0{flex-grow:0}.origin-center{transform-origin:center}.-translate-y-1{--tw-translate-y: -.25rem;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-4{--tw-translate-y: -1rem;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{--tw-translate-x: .25rem;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-\\[\\.1em\\]{--tw-translate-x: .1em;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))}.rotate-90{--tw-rotate: 90deg;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))}.scale-\\[50\\%\\]{--tw-scale-x: 50%;--tw-scale-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))}.scale-x-0{--tw-scale-x: 0;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))}.scale-x-100{--tw-scale-x: 1;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))}.animate-\\[pulse\\.5s_ease-in-out_infinite_\\.5s\\]{animation:pulse.5s ease-in-out infinite .5s}@keyframes heartbeat{0%{transform:scale(1)}14%{transform:scale(1.3)}28%{transform:scale(1)}42%{transform:scale(1.3)}70%{transform:scale(1)}}.animate-heartbeat{animation:heartbeat 1.15s ease-in-out infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.resize{resize:both}.break-inside-avoid{-moz-column-break-inside:avoid;break-inside:avoid}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-\\[2\\.5rem_minmax\\(0\\,1fr\\)\\]{grid-template-columns:2.5rem minmax(0,1fr)}.grid-cols-\\[3\\.2rem_minmax\\(0\\,1fr\\)\\]{grid-template-columns:3.2rem minmax(0,1fr)}.grid-cols-\\[4rem_minmax\\(0\\,1fr\\)\\]{grid-template-columns:4rem minmax(0,1fr)}.grid-cols-\\[5\\.2rem_minmax\\(0\\,1fr\\)\\]{grid-template-columns:5.2rem minmax(0,1fr)}.grid-cols-\\[5rem_auto\\]{grid-template-columns:5rem auto}.grid-cols-\\[6rem_minmax\\(0\\,1fr\\)\\]{grid-template-columns:6rem minmax(0,1fr)}.grid-cols-\\[6rem_minmax\\(0\\,2fr\\)\\]{grid-template-columns:6rem minmax(0,2fr)}.grid-cols-\\[8rem\\,1fr\\]{grid-template-columns:8rem 1fr}.grid-cols-\\[auto\\,1fr\\]{grid-template-columns:auto 1fr}.grid-cols-\\[auto\\,_minmax\\(0\\,1fr\\)\\,_auto\\]{grid-template-columns:auto minmax(0,1fr) auto}.grid-cols-\\[max\\(6rem\\,_13\\%\\)_1fr\\]{grid-template-columns:max(6rem,13%) 1fr}.grid-cols-\\[minmax\\(0\\,3fr\\)_minmax\\(0\\,1\\.5fr\\)_6rem\\]{grid-template-columns:minmax(0,3fr) minmax(0,1.5fr) 6rem}.grid-cols-\\[minmax\\(0\\,_3fr\\)_1fr\\]{grid-template-columns:minmax(0,3fr) 1fr}.grid-cols-\\[minmax\\(10rem\\,15rem\\)_minmax\\(0\\,1fr\\)\\]{grid-template-columns:minmax(10rem,15rem) minmax(0,1fr)}.grid-cols-\\[minmax\\(35\\%\\,1fr\\)_auto_minmax\\(0\\,max-content\\)\\]{grid-template-columns:minmax(35%,1fr) auto minmax(0,max-content)}.grid-cols-\\[repeat\\(auto-fit\\,minmax\\(min\\(100\\%\\,10rem\\)\\,1fr\\)\\)\\]{grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr))}.grid-cols-\\[repeat\\(auto-fit\\,minmax\\(min\\(100\\%\\,15rem\\)\\,1fr\\)\\)\\]{grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr))}.grid-rows-\\[0fr\\]{grid-template-rows:0fr}.grid-rows-\\[1fr\\]{grid-template-rows:1fr}.grid-rows-\\[max-content_1fr\\]{grid-template-rows:max-content 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-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-16{gap:4rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-\\[\\.15em\\]{gap:.15em}.gap-\\[\\.25em\\]{gap:.25em}.gap-\\[\\.2em\\]{gap:.2em}.gap-\\[\\.35em\\]{gap:.35em}.gap-\\[\\.3em\\]{gap:.3em}.gap-\\[\\.4em\\]{gap:.4em}.gap-\\[\\.5em\\]{gap:.5em}.gap-\\[\\.75em\\]{gap:.75em}.gap-\\[0\\.35em\\]{gap:.35em}.gap-\\[1\\.5em\\]{gap:1.5em}.gap-\\[2rem\\]{gap:2rem}.gap-\\[3px\\]{gap:3px}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.gap-x-10{-moz-column-gap:2.5rem;column-gap:2.5rem}.gap-x-12{-moz-column-gap:3rem;column-gap:3rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-x-5{-moz-column-gap:1.25rem;column-gap:1.25rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-x-8{-moz-column-gap:2rem;column-gap:2rem}.gap-x-\\[\\.25em\\]{-moz-column-gap:.25em;column-gap:.25em}.gap-x-\\[\\.35em\\]{-moz-column-gap:.35em;column-gap:.35em}.gap-x-\\[\\.3em\\]{-moz-column-gap:.3em;column-gap:.3em}.gap-x-\\[2\\.5rem\\]{-moz-column-gap:2.5rem;column-gap:2.5rem}.gap-x-cgx{-moz-column-gap:var(--sc-container-gutter-x);column-gap:var(--sc-container-gutter-x)}.gap-y-1{row-gap:.25rem}.gap-y-2{row-gap:.5rem}.gap-y-3{row-gap:.75rem}.gap-y-4{row-gap:1rem}.gap-y-5{row-gap:1.25rem}.gap-y-8{row-gap:2rem}.gap-y-\\[0\\.125em\\]{row-gap:.125em}.divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(var(--sc-border-width) * var(--tw-divide-x-reverse));border-left-width:calc(var(--sc-border-width) * calc(1 - var(--tw-divide-x-reverse)))}.divide-neutral-100>:not([hidden])~:not([hidden]){border-color:var(--sc-base-100)}.divide-neutral-200>:not([hidden])~:not([hidden]){border-color:var(--sc-base-200)}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-center{align-self:center}.self-stretch{align-self:stretch}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-clip{overflow:clip}.\\!overflow-y-auto{overflow-y:auto!important}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-wrap{text-wrap:wrap}.text-nowrap{text-wrap:nowrap}.text-balance{text-wrap:balance}.text-pretty{text-wrap:pretty}.break-words{overflow-wrap:break-word}.rounded{border-radius:var(--sc-rounded)}.rounded-\\[\\.3rem\\]{border-radius:.3rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--sc-rounded-lg)}.rounded-md{border-radius:var(--sc-rounded-md)}.rounded-sm{border-radius:var(--sc-rounded-sm)}.rounded-bl-lg{border-bottom-left-radius:var(--sc-rounded-lg)}.border{border-width:var(--sc-border-width)}.border-0{border-width:0px}.border-2{border-width:2px}.border-b{border-bottom-width:var(--sc-border-width)}.border-b-\\[\\.3rem\\]{border-bottom-width:.3rem}.border-b-\\[1px\\]{border-bottom-width:1px}.border-l{border-left-width:var(--sc-border-width)}.border-l-\\[1px\\]{border-left-width:1px}.border-r{border-right-width:var(--sc-border-width)}.border-t{border-top-width:var(--sc-border-width)}.border-solid{border-style:solid}.border-dashed{border-style:dashed}.border-dotted{border-style:dotted}.border-\\[\\#c77dff\\]{--tw-border-opacity: 1;border-color:rgb(199 125 255 / var(--tw-border-opacity, 1))}.border-content{border-color:var(--sc-base-content)}.border-current{border-color:currentColor}.border-neutral-0{border-color:var(--sc-base)}.border-neutral-100{border-color:var(--sc-base-100)}.border-neutral-200{border-color:var(--sc-base-200)}.border-neutral-300{border-color:var(--sc-base-300)}.border-neutral-50{border-color:var(--sc-base-50)}.border-success{border-color:var(--sc-success)}.border-transparent{border-color:transparent}.border-b-neutral-200{border-bottom-color:var(--sc-base-200)}.border-b-neutral-300{border-bottom-color:var(--sc-base-300)}.border-t-neutral-200{border-top-color:var(--sc-base-200)}.bg-\\[\\#222\\]{--tw-bg-opacity: 1;background-color:rgb(34 34 34 / var(--tw-bg-opacity, 1))}.bg-\\[yellow\\]{--tw-bg-opacity: 1;background-color:rgb(255 255 0 / var(--tw-bg-opacity, 1))}.bg-content{background-color:var(--sc-base-content)}.bg-current{background-color:currentColor}.bg-danger{background-color:var(--sc-danger)}.bg-neutral-0{background-color:var(--sc-base)}.bg-neutral-100{background-color:var(--sc-base-100)}.bg-neutral-200{background-color:var(--sc-base-200)}.bg-neutral-300{background-color:var(--sc-base-300)}.bg-neutral-50{background-color:var(--sc-base-50)}.bg-success{background-color:var(--sc-success)}.bg-warning{background-color:var(--sc-warning)}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-\\[\\#e10057\\]{--tw-gradient-from: #e10057 var(--tw-gradient-from-position);--tw-gradient-to: rgb(225 0 87 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-\\[rgba\\(0\\,0\\,0\\,\\.25\\)\\]{--tw-gradient-from: rgba(0,0,0,.25) var(--tw-gradient-from-position);--tw-gradient-to: rgba(0, 0, 0, 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-\\[\\#4f0090\\]{--tw-gradient-to: #4f0090 var(--tw-gradient-to-position)}.to-\\[rgba\\(0\\,0\\,0\\,0\\)\\]{--tw-gradient-to: rgba(0,0,0,0) var(--tw-gradient-to-position)}.fill-current{fill:currentColor}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-8{padding:2rem}.p-\\[2px\\]{padding:2px}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.px-\\[\\.35em\\]{padding-left:.35em;padding-right:.35em}.px-cgx{padding-left:var(--sc-container-gutter-x);padding-right:var(--sc-container-gutter-x)}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-\\[--sc-header-gy\\]{padding-top:var(--sc-header-gy);padding-bottom:var(--sc-header-gy)}.py-\\[1px\\]{padding-top:1px;padding-bottom:1px}.py-\\[2em\\]{padding-top:2em;padding-bottom:2em}.py-\\[4px\\]{padding-top:4px;padding-bottom:4px}.py-\\[max\\(1\\.5\\%\\,\\.5rem\\)\\]{padding-top:max(1.5%,.5rem);padding-bottom:max(1.5%,.5rem)}.py-cgy{padding-top:var(--sc-container-gutter-y);padding-bottom:var(--sc-container-gutter-y)}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-5{padding-bottom:1.25rem}.pb-6{padding-bottom:1.5rem}.pb-8{padding-bottom:2rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pl-6{padding-left:1.5rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.pt-8{padding-top:2rem}.pt-\\[\\.1em\\]{padding-top:.1em}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-headings{font-family:var(--sc-headings-font-family)}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-monospace{font-family:var(--sc-font-family-monospace, monospace)}.text-2xl{font-size:1.5rem}.text-2xs{font-size:.7rem}.text-3xl{font-size:1.875rem}.text-4xl{font-size:2.25rem}.text-\\[\\.75em\\]{font-size:.75em}.text-\\[\\.78rem\\]{font-size:.78rem}.text-\\[\\.82em\\]{font-size:.82em}.text-\\[\\.85em\\]{font-size:.85em}.text-\\[\\.85rem\\]{font-size:.85rem}.text-\\[\\.8em\\]{font-size:.8em}.text-\\[\\.8rem\\]{font-size:.8rem}.text-\\[\\.9rem\\]{font-size:.9rem}.text-\\[1\\.15em\\]{font-size:1.15em}.text-\\[1\\.1em\\]{font-size:1.1em}.text-\\[1\\.2em\\]{font-size:1.2em}.text-\\[1\\.5rem\\]{font-size:1.5rem}.text-\\[1\\.6em\\]{font-size:1.6em}.text-\\[1\\.8em\\]{font-size:1.8em}.text-\\[11px\\]{font-size:11px}.text-\\[1em\\]{font-size:1em}.text-\\[2\\.25em\\]{font-size:2.25em}.text-\\[2\\.2em\\]{font-size:2.2em}.text-\\[40cqw\\]{font-size:40cqw}.text-\\[max\\(12px\\,\\.8em\\)\\]{font-size:max(12px,.8em)}.text-base{font-size:1rem}.text-lg{font-size:1.125rem}.text-sm{font-size:.875rem}.text-xl{font-size:1.25rem}.text-xs{font-size:.75rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-headings{font-weight:var(--sc-headings-font-weight)}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.normal-case{text-transform:none}.leading-\\[1\\.05\\]{line-height:1.05}.leading-none{line-height:1}.leading-tight{line-height:1.25}.leading-tighter{line-height:1.15}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.tracking-wider{letter-spacing:.05em}.tracking-widest{letter-spacing:.1em}.text-\\[\\#222222\\]{--tw-text-opacity: 1;color:rgb(34 34 34 / var(--tw-text-opacity, 1))}.text-content{color:var(--sc-base-content)}.text-contrast-content{color:var(--sc-contrast-content)}.text-danger{color:var(--sc-danger)}.text-danger-content{color:var(--sc-danger-content)}.text-info{color:var(--sc-info)}.text-neutral-0{color:var(--sc-base)}.text-neutral-200{color:var(--sc-base-200)}.text-neutral-300{color:var(--sc-base-300)}.text-neutral-400{color:var(--sc-base-400)}.text-neutral-500{color:var(--sc-base-500)}.text-neutral-600{color:var(--sc-base-600)}.text-neutral-900{color:var(--sc-base-900)}.text-success{color:var(--sc-success)}.text-warning{color:var(--sc-warning)}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.underline-offset-2{text-underline-offset:2px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-80{opacity:.8}.mix-blend-multiply{mix-blend-mode:multiply}.shadow-\\[0_0_0_2px_var\\(--sc-base\\)\\]{--tw-shadow: 0 0 0 2px var(--sc-base);--tw-shadow-colored: 0 0 0 2px 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_40px_50px_-70px_rgb\\(0_0_0_\\/_0\\.35\\)\\]{--tw-shadow: 0 40px 50px -70px rgb(0 0 0 / .35);--tw-shadow-colored: 0 40px 50px -70px 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-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.drop-shadow-md{--tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / .07)) drop-shadow(0 2px 2px rgb(0 0 0 / .06));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,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-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-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[boxShadow_\\.2s\\]{transition-property:boxShadow .2s;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-200{transition-duration:.2s}.duration-75{transition-duration:75ms}.duration-\\[400ms\\]{transition-duration:.4s}.ease-\\[cubic-bezier\\(0\\.16\\,0\\.69\\,0\\.54\\,1\\.15\\)\\]{transition-timing-function:cubic-bezier(.16,.69,.54,1.15)}.\\@container{container-type:inline-size}.\\[display\\:none\\]{display:none}@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],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em}.lg\\:prose-lg :where([class~=lead]):not(:where([class~=not-prose],[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],[class~=not-prose] *)){margin-top:1.6666667em;margin-bottom:1.6666667em;padding-inline-start:1em}.lg\\:prose-lg :where(h1):not(:where([class~=not-prose],[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],[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],[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],[class~=not-prose] *)){margin-top:1.7777778em;margin-bottom:.4444444em;line-height:1.5555556}.lg\\:prose-lg :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7777778em;margin-bottom:1.7777778em}.lg\\:prose-lg :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7777778em;margin-bottom:1.7777778em}.lg\\:prose-lg :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.lg\\:prose-lg :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7777778em;margin-bottom:1.7777778em}.lg\\:prose-lg :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em;border-radius:.3125rem;padding-top:.2222222em;padding-inline-end:.4444444em;padding-bottom:.2222222em;padding-inline-start:.4444444em}.lg\\:prose-lg :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.lg\\:prose-lg :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8666667em}.lg\\:prose-lg :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.875em}.lg\\:prose-lg :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em;line-height:1.75;margin-top:2em;margin-bottom:2em;border-radius:.375rem;padding-top:1em;padding-inline-end:1.5em;padding-bottom:1em;padding-inline-start:1.5em}.lg\\:prose-lg :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.5555556em}.lg\\:prose-lg :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.5555556em}.lg\\:prose-lg :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.6666667em;margin-bottom:.6666667em}.lg\\:prose-lg :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4444444em}.lg\\:prose-lg :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4444444em}.lg\\:prose-lg :where(.lg\\:prose-lg>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.8888889em;margin-bottom:.8888889em}.lg\\:prose-lg :where(.lg\\:prose-lg>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em}.lg\\:prose-lg :where(.lg\\:prose-lg>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.3333333em}.lg\\:prose-lg :where(.lg\\:prose-lg>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em}.lg\\:prose-lg :where(.lg\\:prose-lg>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.3333333em}.lg\\:prose-lg :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.8888889em;margin-bottom:.8888889em}.lg\\:prose-lg :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em}.lg\\:prose-lg :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em}.lg\\:prose-lg :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.6666667em;padding-inline-start:1.5555556em}.lg\\:prose-lg :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:3.1111111em;margin-bottom:3.1111111em}.lg\\:prose-lg :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.lg\\:prose-lg :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.lg\\:prose-lg :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.lg\\:prose-lg :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.lg\\:prose-lg :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em;line-height:1.5}.lg\\:prose-lg :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:.75em;padding-bottom:.75em;padding-inline-start:.75em}.lg\\:prose-lg :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.lg\\:prose-lg :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.lg\\:prose-lg :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.75em;padding-inline-end:.75em;padding-bottom:.75em;padding-inline-start:.75em}.lg\\:prose-lg :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.lg\\:prose-lg :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.lg\\:prose-lg :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7777778em;margin-bottom:1.7777778em}.lg\\:prose-lg :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.lg\\:prose-lg :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em;line-height:1.5;margin-top:1em}.lg\\:prose-lg :where(.lg\\:prose-lg>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.lg\\:prose-lg :where(.lg\\:prose-lg>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}}.hover\\:scale-110:hover{--tw-scale-x: 1.1;--tw-scale-y: 1.1;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))}.hover\\:scale-\\[\\.95\\]:hover{--tw-scale-x: .95;--tw-scale-y: .95;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))}.hover\\:scale-\\[103\\%\\]:hover{--tw-scale-x: 103%;--tw-scale-y: 103%;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))}.hover\\:cursor-pointer:hover{cursor:pointer}.hover\\:border-neutral-200:hover{border-color:var(--sc-base-200)}.hover\\:border-neutral-600:hover{border-color:var(--sc-base-600)}.hover\\:bg-\\[rgba\\(0\\,0\\,0\\,\\.02\\)\\]:hover{background-color:#00000005}.hover\\:bg-neutral-0:hover{background-color:var(--sc-base)}.hover\\:bg-neutral-100:hover{background-color:var(--sc-base-100)}.hover\\:bg-neutral-50:hover{background-color:var(--sc-base-50)}.hover\\:text-content:hover{color:var(--sc-base-content)}.hover\\:text-neutral-400:hover{color:var(--sc-base-400)}.hover\\:text-neutral-600:hover{color:var(--sc-base-600)}.hover\\:text-neutral-800:hover{color:var(--sc-base-800)}.hover\\:text-primary:hover{color:var(--sc-primary)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:no-underline:hover{text-decoration-line:none}.hover\\:opacity-100:hover{opacity:1}.hover\\:opacity-60:hover{opacity:.6}.hover\\:shadow:hover{--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)}.hover\\:shadow-\\[0_0_0_1px_rgba\\(0\\,0\\,0\\,\\.02\\)\\]:hover{--tw-shadow: 0 0 0 1px rgba(0,0,0,.02);--tw-shadow-colored: 0 0 0 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)}.hover\\:shadow-\\[0px_0px_0_3px_\\#ffb71d\\]:hover{--tw-shadow: 0px 0px 0 3px #ffb71d;--tw-shadow-colored: 0px 0px 0 3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\\:shadow-xl:hover{--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)}.focus\\:border-neutral-300:focus{border-color:var(--sc-base-300)}.focus\\:text-content:focus{color:var(--sc-base-content)}.focus\\:opacity-100:focus{opacity:1}.group:focus-within .group-focus-within\\:scale-110{--tw-scale-x: 1.1;--tw-scale-y: 1.1;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))}.group:focus-within .group-focus-within\\:opacity-100{opacity:1}.group:hover .group-hover\\:scale-110{--tw-scale-x: 1.1;--tw-scale-y: 1.1;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))}.group:hover .group-hover\\:scale-\\[1\\.15\\]{--tw-scale-x: 1.15;--tw-scale-y: 1.15;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))}.group:hover .group-hover\\:scale-\\[1\\.1\\]{--tw-scale-x: 1.1;--tw-scale-y: 1.1;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))}.group:hover .group-hover\\:border{border-width:var(--sc-border-width)}.group:hover .group-hover\\:border-\\[\\#4f0090\\]{--tw-border-opacity: 1;border-color:rgb(79 0 144 / var(--tw-border-opacity, 1))}.group:hover .group-hover\\:border-\\[\\#ff9b85\\]{--tw-border-opacity: 1;border-color:rgb(255 155 133 / var(--tw-border-opacity, 1))}.group:hover .group-hover\\:border-neutral-200{border-color:var(--sc-base-200)}.group:hover .group-hover\\:underline{text-decoration-line:underline}.group:hover .group-hover\\:opacity-0{opacity:0}.group:hover .group-hover\\:opacity-100{opacity:1}.group:focus .group-focus\\:border-neutral-300{border-color:var(--sc-base-300)}@container (min-width: 20rem){.\\@xs\\:left-5{left:1.25rem}.\\@xs\\:top-5{top:1.25rem}.\\@xs\\:p-5{padding:1.25rem}.\\@xs\\:text-xl{font-size:1.25rem}.\\@xs\\:leading-tight{line-height:1.25}}@container (min-width: 24rem){.\\@sm\\:left-6{left:1.5rem}.\\@sm\\:top-6{top:1.5rem}.\\@sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.\\@sm\\:gap-2{gap:.5rem}.\\@sm\\:rounded-lg{border-radius:var(--sc-rounded-lg)}.\\@sm\\:rounded-xl{border-radius:var(--sc-rounded-xl)}.\\@sm\\:border{border-width:var(--sc-border-width)}.\\@sm\\:p-3{padding:.75rem}.\\@sm\\:p-4{padding:1rem}.\\@sm\\:p-5{padding:1.25rem}.\\@sm\\:p-6{padding:1.5rem}.\\@sm\\:text-2xl{font-size:1.5rem}.\\@sm\\:text-sm{font-size:.875rem}.\\@sm\\:leading-none{line-height:1}.\\@sm\\:leading-tight{line-height:1.25}.\\@sm\\:hover\\:border-neutral-300:hover{border-color:var(--sc-base-300)}.\\@sm\\:focus\\:border-neutral-300:focus{border-color:var(--sc-base-300)}}@container (min-width: 28rem){.\\@md\\:row-span-1{grid-row:span 1 / span 1}.\\@md\\:block{display:block}.\\@md\\:flex{display:flex}.\\@md\\:hidden{display:none}.\\@md\\:w-20{width:5rem}.\\@md\\:w-auto{width:auto}.\\@md\\:grid-cols-\\[6rem\\,1fr\\,2\\.5rem\\]{grid-template-columns:6rem 1fr 2.5rem}.\\@md\\:grid-cols-\\[minmax\\(0\\,_12rem\\)\\,_minmax\\(0\\,_3fr\\)\\]{grid-template-columns:minmax(0,12rem) minmax(0,3fr)}.\\@md\\:gap-4{gap:1rem}.\\@md\\:border-l{border-left-width:var(--sc-border-width)}.\\@md\\:border-l-neutral-200{border-left-color:var(--sc-base-200)}.\\@md\\:p-4{padding:1rem}.\\@md\\:p-6{padding:1.5rem}.\\@md\\:px-0{padding-left:0;padding-right:0}.\\@md\\:py-2{padding-top:.5rem;padding-bottom:.5rem}.\\@md\\:pl-3{padding-left:.75rem}.\\@md\\:text-\\[\\.9rem\\]{font-size:.9rem}.\\@md\\:text-\\[1\\.05rem\\]{font-size:1.05rem}.\\@md\\:text-base{font-size:1rem}.\\@md\\:text-sm{font-size:.875rem}.\\@md\\:leading-none{line-height:1}.\\@md\\:leading-tight{line-height:1.25}}@container (min-width: 32rem){.\\@lg\\:col-start-1{grid-column-start:1}.\\@lg\\:mt-0{margin-top:0}.\\@lg\\:flex{display:flex}.\\@lg\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.\\@lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.\\@lg\\:flex-row{flex-direction:row}.\\@lg\\:flex-col{flex-direction:column}.\\@lg\\:flex-nowrap{flex-wrap:nowrap}.\\@lg\\:justify-center{justify-content:center}.\\@lg\\:px-4{padding-left:1rem;padding-right:1rem}.\\@lg\\:text-3xl{font-size:1.875rem}.\\@lg\\:text-xl{font-size:1.25rem}.\\@lg\\:text-xs{font-size:.75rem}.\\@lg\\:leading-tight{line-height:1.25}}@container (min-width: 36rem){.\\@xl\\:col-\\[2\\/-1\\]{grid-column:2/-1}.\\@xl\\:col-auto{grid-column:auto}.\\@xl\\:col-span-1{grid-column:span 1 / span 1}.\\@xl\\:col-span-2{grid-column:span 2 / span 2}.\\@xl\\:block{display:block}.\\@xl\\:hidden{display:none}.\\@xl\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.\\@xl\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.\\@xl\\:grid-cols-\\[4rem\\,7\\.5rem\\,1fr\\,2\\.5rem\\]{grid-template-columns:4rem 7.5rem 1fr 2.5rem}.\\@xl\\:grid-cols-\\[max\\(6rem\\,_13\\%\\)_1\\.2fr_1fr\\]{grid-template-columns:max(6rem,13%) 1.2fr 1fr}.\\@xl\\:items-center{align-items:center}.\\@xl\\:gap-4{gap:1rem}.\\@xl\\:gap-6{gap:1.5rem}.\\@xl\\:border-none{border-style:none}.\\@xl\\:p-4{padding:1rem}.\\@xl\\:pr-2{padding-right:.5rem}.\\@xl\\:pt-0{padding-top:0}.\\@xl\\:text-2xl{font-size:1.5rem}.\\@xl\\:text-lg{font-size:1.125rem}.\\@xl\\:text-xl{font-size:1.25rem}.\\@xl\\:leading-tight{line-height:1.25}}@container (min-width: 42rem){.\\@2xl\\:text-xl{font-size:1.25rem}}@container (min-width: 48rem){.\\@3xl\\:mb-3{margin-bottom:.75rem}.\\@3xl\\:block{display:block}.\\@3xl\\:flex{display:flex}.\\@3xl\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.\\@3xl\\:grid-cols-\\[8rem_10rem_1fr_auto\\]{grid-template-columns:8rem 10rem 1fr auto}.\\@3xl\\:text-3xl{font-size:1.875rem}.\\@3xl\\:leading-tight{line-height:1.25}}@container (min-width: 56rem){.\\@4xl\\:block{display:block}.\\@4xl\\:hidden{display:none}.\\@4xl\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.\\@4xl\\:grid-cols-\\[minmax\\(0\\,2fr\\)_minmax\\(0\\,1\\.2fr\\)\\]{grid-template-columns:minmax(0,2fr) minmax(0,1.2fr)}.\\@4xl\\:gap-12{gap:3rem}}@container (min-width: 64rem){.\\@5xl\\:col-span-2{grid-column:span 2 / span 2}.\\@5xl\\:mt-0{margin-top:0}.\\@5xl\\:block{display:block}.\\@5xl\\:flex{display:flex}.\\@5xl\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.\\@5xl\\:grid-cols-\\[8rem_20rem_1fr_auto\\]{grid-template-columns:8rem 20rem 1fr auto}.\\@5xl\\:grid-cols-\\[minmax\\(0\\,2fr\\)_minmax\\(0\\,1fr\\)\\]{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}.\\@5xl\\:grid-cols-\\[minmax\\(0\\,_12rem\\)\\,_auto\\,_minmax\\(0\\,_1fr\\)\\]{grid-template-columns:minmax(0,12rem) auto minmax(0,1fr)}.\\@5xl\\:gap-7{gap:1.75rem}.\\@5xl\\:pl-4{padding-left:1rem}.\\@5xl\\:text-right{text-align:right}}@media (min-width: 640px){.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width: 768px){.md\\:block{display:block}.md\\:inline-block{display:inline-block}.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:w-\\[2rem\\]{width:2rem}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:grid-cols-\\[1fr_9\\.75rem\\]{grid-template-columns:1fr 9.75rem}.md\\:grid-cols-\\[6rem_minmax\\(0\\,4fr\\)\\]{grid-template-columns:6rem minmax(0,4fr)}.md\\:grid-cols-\\[minmax\\(0\\,2fr\\)\\,minmax\\(0\\,5fr\\)\\]{grid-template-columns:minmax(0,2fr) minmax(0,5fr)}.md\\:grid-cols-\\[minmax\\(0\\,3fr\\)_minmax\\(0\\,2fr\\)\\]{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}.md\\:flex-row{flex-direction:row}.md\\:px-4{padding-left:1rem;padding-right:1rem}.md\\:text-4xl{font-size:2.25rem}.md\\:text-5xl{font-size:3rem}.md\\:text-sm{font-size:.875rem}.md\\:leading-\\[1\\.1\\]{line-height:1.1}}@media (min-width: 1024px){.lg\\:sticky{position:sticky}.lg\\:col-span-4{grid-column:span 4 / span 4}.lg\\:-mr-\\[calc\\(var\\(--sc-container-gutter-x\\)_-_var\\(--sc-container-gutter-y\\)\\)\\]{margin-right:calc(calc(var(--sc-container-gutter-x) - var(--sc-container-gutter-y)) * -1)}.lg\\:mb-12{margin-bottom:3rem}.lg\\:mb-16{margin-bottom:4rem}.lg\\:mb-4{margin-bottom:1rem}.lg\\:mb-5{margin-bottom:1.25rem}.lg\\:mb-\\[2\\.5rem\\]{margin-bottom:2.5rem}.lg\\:mr-7{margin-right:1.75rem}.lg\\:mt-16{margin-top:4rem}.lg\\:mt-8{margin-top:2rem}.lg\\:block{display:block}.lg\\:flex{display:flex}.lg\\:grid{display:grid}.lg\\:contents{display:contents}.lg\\:hidden{display:none}.lg\\:aspect-\\[16\\/9\\]{aspect-ratio:16/9}.lg\\:h-\\[calc\\(100vh-4rem\\)\\]{height:calc(100vh - 4rem)}.lg\\:h-full{height:100%}.lg\\:min-w-\\[10rem\\]{min-width:10rem}.lg\\:min-w-\\[30rem\\]{min-width:30rem}.lg\\:max-w-\\[19ch\\]{max-width:19ch}.lg\\:max-w-\\[32rem\\]{max-width:32rem}.lg\\:grow-0{flex-grow:0}.lg\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\\:grid-cols-\\[1fr\\,_2fr\\]{grid-template-columns:1fr 2fr}.lg\\:grid-cols-\\[2fr_1fr\\]{grid-template-columns:2fr 1fr}.lg\\:grid-cols-\\[8rem_minmax\\(0\\,6fr\\)\\]{grid-template-columns:8rem minmax(0,6fr)}.lg\\:grid-cols-\\[minmax\\(0\\,1fr\\)_minmax\\(0\\,1\\.5fr\\)\\]{grid-template-columns:minmax(0,1fr) minmax(0,1.5fr)}.lg\\:grid-cols-\\[minmax\\(0\\,1fr\\)_minmax\\(0\\,10fr\\)\\]{grid-template-columns:minmax(0,1fr) minmax(0,10fr)}.lg\\:grid-cols-\\[minmax\\(0\\,1fr\\)_minmax\\(0\\,1fr\\)\\]{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.lg\\:grid-cols-\\[minmax\\(0\\,3fr\\)_minmax\\(0\\,1fr\\)\\]{grid-template-columns:minmax(0,3fr) minmax(0,1fr)}.lg\\:grid-cols-\\[minmax\\(0\\,4fr\\)_minmax\\(0\\,1fr\\)\\]{grid-template-columns:minmax(0,4fr) minmax(0,1fr)}.lg\\:grid-cols-\\[minmax\\(0\\,5fr\\)_minmax\\(0\\,_1\\.75fr\\)\\]{grid-template-columns:minmax(0,5fr) minmax(0,1.75fr)}.lg\\:grid-cols-\\[minmax\\(0\\,_3fr\\)_minmax\\(0\\,_2fr\\)\\]{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}.lg\\:grid-cols-\\[minmax\\(0\\,_5fr\\)_minmax\\(0\\,_3\\.5fr\\)_minmax\\(0\\,_3fr\\)_minmax\\(0\\,_1\\.8fr\\)_minmax\\(0\\,_1\\.8fr\\)\\]{grid-template-columns:minmax(0,5fr) minmax(0,3.5fr) minmax(0,3fr) minmax(0,1.8fr) minmax(0,1.8fr)}.lg\\:flex-row{flex-direction:row}.lg\\:gap-4{gap:1rem}.lg\\:gap-5{gap:1.25rem}.lg\\:gap-x-14{-moz-column-gap:3.5rem;column-gap:3.5rem}.lg\\:gap-x-5{-moz-column-gap:1.25rem;column-gap:1.25rem}.lg\\:divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(var(--sc-border-width) * var(--tw-divide-x-reverse));border-left-width:calc(var(--sc-border-width) * calc(1 - var(--tw-divide-x-reverse)))}.lg\\:divide-neutral-200>:not([hidden])~:not([hidden]){border-color:var(--sc-base-200)}.lg\\:border-l{border-left-width:var(--sc-border-width)}.lg\\:px-0{padding-left:0;padding-right:0}.lg\\:px-20{padding-left:5rem;padding-right:5rem}.lg\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.lg\\:py-2{padding-top:.5rem;padding-bottom:.5rem}.lg\\:pb-4{padding-bottom:1rem}.lg\\:pl-11{padding-left:2.75rem}.lg\\:pl-3{padding-left:.75rem}.lg\\:pl-4{padding-left:1rem}.lg\\:pl-6{padding-left:1.5rem}.lg\\:pl-7{padding-left:1.75rem}.lg\\:text-2xl{font-size:1.5rem}.lg\\:text-3xl{font-size:1.875rem}.lg\\:text-4xl{font-size:2.25rem}.lg\\:text-5xl{font-size:3rem}.lg\\:text-7xl{font-size:4.5rem}.lg\\:text-\\[1rem\\],.lg\\:text-base{font-size:1rem}.lg\\:text-sm{font-size:.875rem}.lg\\:text-xl{font-size:1.25rem}.lg\\:leading-\\[1\\.05\\]{line-height:1.05}.lg\\:leading-none{line-height:1}.lg\\:leading-tight{line-height:1.25}}@media (min-width: 1280px){.xl\\:block{display:block}.xl\\:flex{display:flex}.xl\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.xl\\:grid-cols-\\[minmax\\(0\\,3fr\\)_35rem\\]{grid-template-columns:minmax(0,3fr) 35rem}.xl\\:grid-cols-\\[minmax\\(0\\,3fr\\)_minmax\\(0\\,2fr\\)_3\\.6rem\\]{grid-template-columns:minmax(0,3fr) minmax(0,2fr) 3.6rem}.xl\\:grid-cols-\\[minmax\\(0\\,3fr\\)_minmax\\(0\\,2fr\\)_3\\.7rem\\]{grid-template-columns:minmax(0,3fr) minmax(0,2fr) 3.7rem}.xl\\:grid-cols-\\[minmax\\(0\\,_1fr\\)_minmax\\(0\\,_1\\.5fr\\)\\]{grid-template-columns:minmax(0,1fr) minmax(0,1.5fr)}.xl\\:text-2xl{font-size:1.5rem}.xl\\:text-3xl{font-size:1.875rem}.xl\\:text-8xl{font-size:6rem}.xl\\:text-xl{font-size:1.25rem}.xl\\:leading-tight{line-height:1.25}}@media (min-width: 1536px){.\\32xl\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media print{.print\\:block{display:block}.print\\:inline-block{display:inline-block}.print\\:flex{display:flex}.print\\:grid{display:grid}.print\\:hidden{display:none}.print\\:w-full{width:100%}.print\\:max-w-\\[25\\%\\]{max-width:25%}.print\\:shrink-0{flex-shrink:0}.print\\:flex-grow,.print\\:grow{flex-grow:1}.print\\:basis-3\\/12{flex-basis:25%}.print\\:basis-5\\/12{flex-basis:41.666667%}.print\\:grid-cols-\\[minmax\\(0\\,_3fr\\)_minmax\\(0\\,_2fr\\)\\]{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}.print\\:gap-\\[1rem\\]{gap:1rem}.print\\:gap-x-\\[2rem\\]{-moz-column-gap:2rem;column-gap:2rem}.print\\:self-start{align-self:flex-start}.print\\:opacity-100{opacity:1}}.\\[\\&\\:first-child\\]\\:hidden:first-child{display:none}.\\[\\&\\:not\\(\\:has\\(sonic-user-selector-item\\)\\)\\]\\:hidden:not(:has(sonic-user-selector-item)){display:none}.\\[\\&\\[active\\]\\]\\:pointer-events-none[active]{pointer-events:none}.\\[\\&\\[active\\]\\]\\:border-neutral-800[active]{border-color:var(--sc-base-800)}.\\[\\&\\[active\\]\\]\\:font-bold[active]{font-weight:700}.\\[\\&\\[active\\]\\]\\:text-content[active]{color:var(--sc-base-content)}.\\[\\&\\[active\\]\\]\\:text-primary[active]{color:var(--sc-primary)}.\\[\\&\\[active\\]\\]\\:underline[active]{text-decoration-line:underline}.\\[\\&_\\*\\]\\:fill-neutral-0 *{fill:var(--sc-base)}.\\[\\&_\\.hour\\]\\:font-normal .hour,.\\[\\&_\\.literal\\]\\:font-normal .literal,.\\[\\&_\\.minute\\]\\:font-normal .minute{font-weight:400}
`,Qs=l`
  ${a(Ks)}
`;var Xs=Object.defineProperty,Js=Object.getOwnPropertyDescriptor,to=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Js(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Xs(e,i,r),r};let eo=class extends(_s(Le(pt))){constructor(){super(...arguments),this.wording_waiting_line_allowed_text="",this.wording_waiting_line_expired_text="",this.wording_waiting_line_allowed_text_time_warning="",this.wording_waiting_line_estimated_waiting_time_long="",this.status="",this.open=!1,this.position=0,this.remaining_time_sec=0,this.message="",this.hasBeenAllowed=!1,this.allowedWording="",this.timeWarningWording="",this.showPageReloadedInfo=!1,this.remaining_time_sec_ref=0,this.remainingCounterStartTime=0,this.remainingCounterStarted=!1,this.onReload=t=>{["waiting",""].includes(this.status)&&(sessionStorage.setItem("waiting-line-F5","true"),t.preventDefault())},this._endPoint="waiting-line"}setDefaults(){this.refetchEveryMs=1e4,this.setAttribute("key","data"),this.setAttribute("dataProvider","waiting_line_infos")}handleUserReloadingPage(){sessionStorage.getItem("waiting-line-F5")&&(sessionStorage.removeItem("waiting-line-F5"),this.showPageReloadedInfo=!0),window.addEventListener("beforeunload",this.onReload)}connectedCallback(){this.handleUserReloadingPage(),this.setDefaults(),super.connectedCallback()}disconnectedCallback(){window.removeEventListener("beforeunload",this.onReload),super.disconnectedCallback()}async updateTimeWarning(t,e,i){if("waiting"!=t)return;await ki.queueTaskPromise();const s=Math.ceil((e||600)/60);this.timeWarningWording=i.replace("%s",Si.minutesDuration(s))}async onStatusUpdate(t){await ki.queueTaskPromise(),this.startCountDownIfNeeded(t),this.handleExpiredStatusOnLoad(t),"entered"==t?sessionStorage.setItem("waiting-line-previously-entered","true"):window.requestAnimationFrame((()=>sessionStorage.removeItem("waiting-line-previously-entered")))}handleExpiredStatusOnLoad(t){"expired"!=t||this.hasBeenAllowed||(this.publisher.status="waiting")}startCountDownIfNeeded(t){this.stopCountDown(),"allowed"==t&&(this.hasBeenAllowed=!0,this.startCountDown())}async udpateCountDown(){if(!this.remainingCounterStarted)return;this.remaining_time_sec=this.remaining_time_sec_ref-Math.floor((Date.now()-this.remainingCounterStartTime)/1e3);const t=Math.ceil(this.remaining_time_sec/60);this.allowedWording=this.wording_waiting_line_allowed_text.replace("%s",Si.minutesDuration(t)),this.remaining_time_sec<=0&&(this.publisher.status="expired"),await ki.delayPromise(1e3),this.udpateCountDown()}startCountDown(){this.remainingCounterStarted||(this.remainingCounterStarted=!0,this.remaining_time_sec_ref=this.remaining_time_sec,this.remainingCounterStartTime=Date.now(),this.udpateCountDown())}async stopCountDown(){this.remainingCounterStarted&&(this.remainingCounterStarted=!1,this.remaining_time_sec=0,await super._fetchData())}set endPoint(t){}get endPoint(){return"entered"==this.status?`${this._endPoint}?change_status_request=entered`:"expired"==this.status&&this.hasBeenAllowed?`${this._endPoint}?change_status_request=expired`:this._endPoint}shouldfetchData(){return["waiting",""].includes(this.status)}willBeFetchedLater(){if(!sessionStorage.getItem("waiting-line-dont-fetch-before-ms")||!this.showPageReloadedInfo)return!1;const t=parseInt(sessionStorage.getItem("waiting-line-dont-fetch-before-ms")||"0")-Date.now();return!(t<0)&&(sessionStorage.removeItem("waiting-line-dont-fetch-before-ms"),setTimeout((async()=>{this._fetchData()}),t),!0)}async _fetchData(){if(this.willBeFetchedLater())return;if(!this.shouldfetchData())return;const t=Date.now(),e=await super._fetchData(),i=Date.now()-t;return this.refetchEveryMs=Math.max(1e4+1e3*Math.random(),3*i),this.showPageReloadedInfo=!1,sessionStorage.setItem("waiting-line-dont-fetch-before-ms",(Date.now()+this.refetchEveryMs).toString()),e}async enter(){this.publisher.status="entered",await super._fetchData(),we("settings").get().is_online||!this.open?this.dispatchEvent(new CustomEvent("enter")):window.location.reload()}refreshPage(){window.location.reload()}renderWaiting(){if("waiting"!=this.status&&(!this.showPageReloadedInfo||""!=this.status))return Z;const t=this.open||""==this.status;return V` <sonic-if .condition=${t}>
        <sonic-modal-title class="mb-2">${Ae("waiting_line_title")}</sonic-modal-title>
      </sonic-if>
      <sonic-modal-content>
        <sonic-if .condition=${this.open}>
          ${Ae("waiting_line_text")}
          <div class="mt-2">${this.timeWarningWording}</div>
        </sonic-if>
        ${this.renderMessage()}

        <sonic-if .condition=${t}>
          <div class="flex gap-3 items-center mt-5">
            <div class="flex items-center shrink-0 flex-col w-[70px] pt-1">
              <sonic-icon name="hourglass-half" library="custom" size="2xl"></sonic-icon>
              <sonic-loader mode="inline" class="pointer-events-none origin-center scale-[50%]"></sonic-loader>
            </div>
            <div>
              <sonic-if .condition=${this.position>0}>
                <div class="text-xl">
                  <span class="font-bold">${this.position}</span>
                  ${Ae("waiting_line_people_before_you")}
                </div>
              </sonic-if>
              <sonic-if .condition=${this.showPageReloadedInfo}>
                <div class="text-xl">${Ae("waiting_line_page_reload_info")}</div>
              </sonic-if>
            </div>
          </div>
        </sonic-if>
      </sonic-modal-content>`}renderMessage(){return this.message?V` <div class="mt-2">${_e(this.message)}</div> `:Z}renderAllowed(){return"allowed"!=this.status?Z:V`<sonic-modal-title class="mb-2">
        <sonic-icon library="custom" name="face-laugh-beam"></sonic-icon> ${Ae("waiting_line_allowed_title")}</sonic-modal-title
      ><sonic-modal-content> ${this.allowedWording} ${this.renderMessage()} </sonic-modal-content>
      <div class="w-full mt-8">
        <sonic-button @click=${this.enter} type="success" shape="block" class="w-full">
          <sonic-icon library="custom" name="arrow-right"></sonic-icon>
          ${Ae("waiting_line_allowed_btn")}</sonic-button
        >
      </div>`}renderExpired(){return"expired"!=this.status?Z:V`<sonic-modal-title class="mb-2">
        <sonic-icon library="custom" name="face-grimace"></sonic-icon> ${Ae("waiting_line_expired_title")}</sonic-modal-title
      ><sonic-modal-content>
        ${this.wording_waiting_line_expired_text.replace("%s",Si.minutesDuration(Math.ceil(this.remaining_time_sec_ref/60)))}
        ${this.renderMessage()}
      </sonic-modal-content>
      <div class="w-full mt-8">
        <sonic-button variant="outline" type="neutral" shape="block" @click=${this.refreshPage}>
          <sonic-icon library="custom" name="rotate-right"></sonic-icon>
          ${Ae("waiting_line_expired_btn")}</sonic-button
        >
      </div>`}render(){return["entered",""].includes(this.status)&&!this.showPageReloadedInfo?Z:V`<sonic-modal forceAction visible width="30rem">
      <sonic-theme-logo noLink class="max-w-[8rem] -mt-2 mb-5"></sonic-theme-logo>
      ${this.renderWaiting()}
      <!-- -->
      ${this.renderAllowed()}
      <!-- -->
      ${this.renderExpired()}
    </sonic-modal>`}};eo.styles=[Qs],to([vt()],eo.prototype,"wording_waiting_line_allowed_text",2),to([vt()],eo.prototype,"wording_waiting_line_expired_text",2),to([vt()],eo.prototype,"wording_waiting_line_allowed_text_time_warning",2),to([vt()],eo.prototype,"wording_waiting_line_estimated_waiting_time_long",2),to([vt()],eo.prototype,"status",2),to([vt()],eo.prototype,"open",2),to([vt()],eo.prototype,"position",2),to([vt()],eo.prototype,"remaining_time_sec",2),to([vt()],eo.prototype,"message",2),to([vt()],eo.prototype,"hasBeenAllowed",2),to([vt()],eo.prototype,"allowedWording",2),to([vt()],eo.prototype,"timeWarningWording",2),to([vt()],eo.prototype,"showPageReloadedInfo",2),to([vt()],eo.prototype,"remaining_time_sec_ref",2),to([Vs("waiting_line_infos.status","waiting_line_infos.remaining_time_sec","sonic-wording.wording_waiting_line_allowed_text_time_warning")],eo.prototype,"updateTimeWarning",1),to([Vs("waiting_line_infos.status")],eo.prototype,"onStatusUpdate",1),to([ft({type:String})],eo.prototype,"endPoint",1),eo=to([ut("sonic-waiting-line")],eo);class io{constructor(t){this.route="",t&&(this.route=oo.get(t))}extract(){const t=new Di("(/)*"+this.route+"*"),e=window.location.href.replace(window.location.origin,"");return t.match(e)}matchesLocation(){return null!==this.extract()}fill(t){return this.route=new Di(this.route).stringify(t),this}query(t){const e=new URL(this.route,window.location.origin);return Object.entries(t).forEach((([t,i])=>{e.searchParams.set(t,i)})),this.route=e.href.replace(window.location.origin,""),this}hash(t){const e=new URL(this.route,window.location.origin);return e.hash=t,this.route=e.href.replace(window.location.origin,""),this}appendPath(t){if(!t)return this;const e=new URL(this.route,window.location.origin);return e.pathname=e.pathname.replace(/\/$/,""),t.startsWith("/")||(t="/"+t),e.pathname+=t,this.route=e.href.replace(window.location.origin,""),this}toString(){return this.route}valueOf(){return this.route}hasHash(){return""!==new URL(this.route,window.location.origin).hash}getHash(){return new URL(this.route,window.location.origin).hash}hasSameBaseAs(t){if(!t)return!1;const e=new URL(this.route,window.location.origin),i=new URL(t.route,window.location.origin);return e.origin+e.pathname===i.origin+i.pathname}goTo(){window.location.href=this.route}}const so=class t{static register(e,i="",s=""){const o={};Object.keys(e).forEach((t=>{const r=t;let n=e[r],a="";i&&("string"==typeof i?a=i:(a=i.baseUrl||"",s=s||i.prefix||"")),a&&!n.includes(a)&&(n=a+"/"+n,n=null==n?void 0:n.replace(/\/+/g,"/"),n=null==n?void 0:n.replace(/\/#/g,"#")),o[s+r]=n})),t.routes={...t.routes,...o}}static get(e,i){let s=t.routes[e]||"";(null==i?void 0:i.propertyMap)&&(s=new Di(s).stringify(i.propertyMap));const o=new URL(s,s.startsWith("#")?window.location.href:window.location.origin);return(null==i?void 0:i.query)&&Object.entries(i.query).forEach((([t,e])=>{o.searchParams.set(t,e)})),(null==i?void 0:i.hash)&&(o.hash=i.hash),o.href.replace(window.location.origin,"")}static fillURLPattern(t,e){return new Di(t).stringify(e)}};so.routes={};let oo=so;const ro={home:"#sonic-account/home",create:"#sonic-account/create-account",tickets:"#sonic-account/tickets",purchases:"#sonic-account/purchases",edit:"#sonic-account/edit",editPassword:"#sonic-account/edit-password",missingPassword:"#sonic-account/missing-password",trips:"#sonic-account/trips"},no={home:"/",cart:"#sonic-cart",agenda:"#sonic-agenda",giftcards:"#sonic-modal/giftcards",carpooling:"#sonic-carpooling",account:"#sonic-account",subscription:"#sonic-modal/subscription",campaign:"#sonic-campaign",checkout:"#sonic-cart/checkout","checkout.end":"#sonic-purchase-process-completion",event:"#sonic-modal/event/:slug",orderRecover:"#sonic-modal/order-recover",promo:"#sonic-modal/promo",infosPrices:"#sonic-modal/infos-prices",refund:"#sonic-modal/refund",seatmap:"#sonic-seatmap/:slug",freeup:"#sonic-modal/freeup",askProAccount:"#sonic-modal/ask-pro-account",customList:"#sonic-list/:slug",changePassword:"#sonic-modal/change-password",waitingList:"#sonic-waiting-list/:id",shop:"#sonic-modal/shop"},ao=t=>new io(t),lo=t=>{const e=ao("home");new qt(kt.getApiConfiguration(t)).get("/user/logout",{}).then((()=>window.location.replace(e.toString())))};var co=Object.defineProperty,po=Object.getOwnPropertyDescriptor,ho=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?po(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&co(e,i,r),r};let uo=class extends(Le(pt)){constructor(){super(...arguments),this.isGuichet=!1}connectedCallback(){this.isGuichet=this.hasAncestorAttribute("is_guichet"),super.connectedCallback()}render(){return!this.isAdmin||this.isGuichet?Z:V`<sonic-modal forceAction visible maxWidth="30rem">
      <sonic-icon library="custom" name="hand" size="3xl" prefix="light" class="mb-2"></sonic-icon>
      <sonic-modal-title>Vous êtes connecté en tant qu'administrateur ou au guichet</sonic-modal-title>
      <sonic-modal-content>Il est obligatoire de vous déconnecter pour continuer !</sonic-modal-content>

      <sonic-modal-actions>
        <sonic-button type="danger" @click=${()=>lo(this)}>
          <sonic-icon library="custom" name="circle-xmark"></sonic-icon>
          Se déconnecter</sonic-button
        >
      </sonic-modal-actions>
    </sonic-modal>`}};uo.styles=[Qs,l`
      .message-content {
        text-align: center;
        padding: 2rem 0 0;
        font-size: 1.3rem;
        width: 100%;
      }
      .message-content p {
        margin: 0.25em 0;
      }
      .message-content a {
        text-decoration: none;
        border: 2px solid;
        border-radius: var(--sc-btn-radius);
        font-weight: bold;
        padding: 0.25em 0.5em;
        margin: 0.25em auto;
        color: inherit;
        display: block;
        width: fit-content;
      }
      .message-content a:only-child {
        display: block;
      }
    `],ho([Us("user.data.is_admin"),ft({type:Boolean})],uo.prototype,"isAdmin",2),ho([ft({type:Boolean})],uo.prototype,"isGuichet",2),uo=ho([ut("sonic-administrator-force-logout")],uo);
/**
   * @license
   * Copyright 2020 Google LLC
   * SPDX-License-Identifier: BSD-3-Clause
   */
const mo=Symbol.for(""),go=t=>{if((null==t?void 0:t.r)===mo)return null==t?void 0:t._$litStatic$},fo=t=>({_$litStatic$:t,r:mo}),vo=(t,...e)=>({_$litStatic$:e.reduce(((e,i,s)=>e+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n            take care to ensure page security.`)})(i)+t[s+1]),t[0]),r:mo}),yo=new Map,bo=(t=>(e,...i)=>{const s=i.length;let o,r;const n=[],a=[];let l,c=0,d=!1;for(;c<s;){for(l=e[c];c<s&&void 0!==(r=i[c],o=go(r));)l+=o+e[++c],d=!0;c!==s&&a.push(r),n.push(l),c++}if(c===s&&n.push(e[s]),d){const t=n.join("$$lit$$");void 0===(e=yo.get(t))&&(n.raw=n,yo.set(t,e=n)),i=a}return t(e,...i)})(V),wo=t=>{ao(t).goTo()};var xo=Object.defineProperty,_o=Object.getOwnPropertyDescriptor,ko=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?_o(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&xo(e,i,r),r};let $o=class extends(_s(Le(pt))){constructor(){super(...arguments),this.purchase_id=0,this.pdf_url="",this.amount=0,this.forceError=!1,this.wecount_link=!1,this.status="",this.pixelAdded=!1}connectedCallback(){if(!this.purchase_id){const t=new URLSearchParams(window.location.search);this.purchase_id=parseInt(t.get("sonic_purchase_id")||"0")}this.purchase_id?(this.setAttribute("fetch",""),this.isFetchEnabled&&this.purchase_id&&(this.key="data",this.dataProvider=`orders/${this.purchase_id}`)):this.forceError=!0,super.connectedCallback()}willUpdate(t){var e;if(t.has("status")&&("pending"===this.status?(this.refetchEveryMs=3e4,this._fetchData()):this.refetchEveryMs=0,!this.pixelAdded&&"success"===this.status&&this.pixel_tracking_confirmation)){const t=this.pixel_tracking_confirmation.replace("[ORDER_ID]",this.purchase_id.toString()).replace("[REVENUE]",this.amount.toString()),i=t.includes("<script")?null==(e=t.match(/<script.*?>(.*?)<\/script>/s))?void 0:e[1]:t;if(i){const t=document.createElement("script");t.id="sonic_pixel_confirmation",t.innerHTML=i,document.body.appendChild(t)}this.pixelAdded=!0}super.willUpdate(t)}disconnectedCallback(){let t=document.getElementById("sonic_pixel_confirmation");t&&t.remove(),super.disconnectedCallback()}render(){var t,e,i,s,o,r;if(!this.props&&!this.forceError)return Z;let n,a,l=null==(t=this.props)?void 0:t.status;switch(l){case"waiting":return wo("cart"),Z;case"success":n=this.amount?Ae("purchase_completion_title"):Ae("purchase_completion_title_free"),a=this.userId?Ae("purchase_completion_message_loggedIn"):Ae("purchase_completion_message_notLoggedIn");break;case"rejected":n=Ae("paiement_en_erreur"),a=Ae("retry_order");break;case"error":n=Ae("error_occurred"),a=Ae("paiement_erreur");break;case"expired":n=Ae("LIB_panier_expire"),a=Ae("retry_order");break;case"pending":n=Ae("payment_processing"),a=Ae("payment_wait_reload_request");break;default:n=this.isLoading?V`<sonic-loader mode="inline" align="left"></sonic-loader>`:Ae("error_occurred")}return V`
      <div class="max-w-prose container">
        <sonic-page-header .label="${n}" .subtitle="${a}"> </sonic-page-header>

        <!-- SI erreur -->
        ${"error"==l?V`
              ${(null==(e=this.settingsInfos)?void 0:e.email_contact)?V`<sonic-button href="mailto:${null==(i=this.settingsInfos)?void 0:i.email_contact}">
                    <sonic-icon slot="prefix" name="envelope" library="custom"></sonic-icon>
                    ${null==(s=this.settingsInfos)?void 0:s.email_contact}</sonic-button
                  > `:Z}
            `:Z}

        <!-- SI EN COURS -->
        ${"pending"==l?V`<sonic-loader align="left" mode="inline"></sonic-loader> `:Z}

        <!-- SI success -->
        ${"success"==l?V`
              ${this.pdf_url?V` <sonic-button target="_blank" type="primary" href="${this.pdf_url}"
                    ><sonic-icon library="custom" name="file-pdf" slot="prefix"></sonic-icon>${Ae("purchase_completion_download")}</sonic-button
                  >`:Z}
              <!-- SI loggé + pas d'email envoyé -->
              ${this.userId&&!1===this.send_order_mail?V`
                    <sonic-alert
                      status="success"
                      class="mt-8"
                      background
                      label="${Ae("purchase_completion_alert_label_loggedIn")}"
                      text="${Ae("purchase_completion_alert_text_loggedIn")}"
                    >
                      <sonic-icon slot="icon" name="envelope" library="custom" size="lg"></sonic-icon>
                    </sonic-alert>
                  `:Z}

              <!-- SI on envoie les email ou utilisateur achat sans compte -->
              ${this.userId&&!0!==this.send_order_mail?Z:V`
                    <sonic-alert
                      status="info"
                      class="mt-8"
                      background
                      label="${Ae("purchase_completion_alert_label_notLoggedIn")}"
                      text="${Ae("purchase_completion_alert_text_notLoggedIn")}"
                    >
                      <sonic-icon slot="icon" name="envelope" library="custom" size="lg"></sonic-icon>
                    </sonic-alert>
                  `}
              ${this.wecount_link&&(null==(o=this.settingsInfos)?void 0:o.store_url)?V` <a
                    href="https://mep.wecount.io/campaigns/8ed50c2b-3295-445c-b5d4-56ee12b1b0c1/form"
                    target="_blank"
                    class="block mt-2 hover:shadow-[0px_0px_0_3px_#ffb71d] transition rounded-md overflow-hidden"
                    ><sonic-image
                      src="${null==(r=this.settingsInfos)?void 0:r.store_url}/sites/all/themes/superstrap/img/wecount.png"
                    ></sonic-image
                  ></a>`:Z}
            `:Z}
      </div>
    `}};$o.styles=[Qs],ko([Us("user.id"),ft({type:String})],$o.prototype,"userId",2),ko([Us("settings.send_order_mail"),ft({type:Boolean})],$o.prototype,"send_order_mail",2),ko([Us("settings.analytics.pixel_tracking_confirmation"),ft({type:String})],$o.prototype,"pixel_tracking_confirmation",2),ko([Us("settings.infos"),ft({type:Object})],$o.prototype,"settingsInfos",2),ko([ft({type:Number})],$o.prototype,"purchase_id",2),ko([ft({type:String})],$o.prototype,"pdf_url",2),ko([ft({type:Number})],$o.prototype,"amount",2),ko([ft({type:Boolean})],$o.prototype,"forceError",2),ko([Us("settings.wecount_link"),ft({type:Boolean})],$o.prototype,"wecount_link",2),ko([ft({type:String})],$o.prototype,"status",2),$o=ko([ut("sonic-checkout-process-end")],$o);var Po=Object.defineProperty,So=Object.getOwnPropertyDescriptor,Co=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?So(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Po(e,i,r),r};let Ao=class extends(Le(pt)){constructor(){super(...arguments),this.defaultRoutes=no,this.wording_my_password=""}connectedCallback(){const t=new URLSearchParams(window.location.search);this.hashFromUrl=t.get("sonic_hash"),super.connectedCallback()}render(){var t,e,i,s,o;const r=vo`${fo(this.hashFromUrl??"")}`,n=this.defaultRoutes;return bo`<sonic-router>
      <template data-route=${n.cart}>
        <sonic-cart></sonic-cart>
      </template>

      <!-- ACCOUNT conflit si dans custom routes aussi -->
      ${(null==(t=this.customRoutes)?void 0:t.account)?Z:bo`<template data-route=${n.account}>
            <sonic-account></sonic-account>
          </template>`}

      <!-- plan par défaut -->
      <template
        data-route="${null==(e=n.seatmap)?void 0:e.replace(":slug","")}(\\d+)(-.*?)?$"
        dataProviderExpression="events/$1?view=essential"
      >
        <sonic-fetch>
          <sonic-seatmap></sonic-seatmap>
        </sonic-fetch>
      </template>

      <!-- INFOS PRICES -->
      <template data-route="${n.infosPrices}$">
        <sonic-modal visible removeHashOnHide maxWidth="42rem">
          <sonic-modal-close></sonic-modal-close>
          <sonic-modal-content
            ><sonic-infos-prices displayTitle smallTitle displayText></sonic-infos-prices
          ></sonic-modal-content>
        </sonic-modal>
      </template>

      <!-- ORDER Recover -->
      <template data-route="${n.orderRecover}$">
        <sonic-modal visible removeHashOnHide maxWidth="42rem">
          <sonic-modal-close></sonic-modal-close>
          <sonic-modal-content
            ><sonic-order-recover displayTitle smallTitle displayText></sonic-order-recover
          ></sonic-modal-content>
        </sonic-modal>
      </template>

      <!-- GIFTCARDS -->
      <template data-route="${n.giftcards}$">
        <sonic-modal visible removeHashOnHide width="95vw" maxWidth="50rem">
          <sonic-modal-close></sonic-modal-close>
          <sonic-modal-content
            ><sonic-giftcards displayTitle smallTitle displayText></sonic-giftcards
          ></sonic-modal-content>
        </sonic-modal>
      </template>

      <!-- promo -->
      <template data-route="${n.promo}$">
        <sonic-modal visible removeHashOnHide width="95vw" maxWidth="30rem">
          <sonic-modal-close></sonic-modal-close>
          <sonic-modal-content><sonic-promo displayTitle smallTitle></sonic-promo></sonic-modal-content>
        </sonic-modal>
      </template>

      <!-- promo -->
      <template data-route="${n.refund}$">
        <sonic-modal visible removeHashOnHide width="95vw" maxWidth="42rem">
          <sonic-modal-close></sonic-modal-close>
          <sonic-modal-content><sonic-refund displayTitle displayText></sonic-refund></sonic-modal-content>
        </sonic-modal>
      </template>

      <!-- Subscription -->
      <template data-route="${n.subscription}$">
        <sonic-modal visible removeHashOnHide width="95vw" maxWidth="90rem">
          <sonic-modal-close></sonic-modal-close>
          <sonic-modal-content><sonic-subscription displayTitle displayText></sonic-subscription></sonic-modal-content>
        </sonic-modal>
      </template>

      <!-- Event -->
      <template
        data-route="${null==(i=n.event)?void 0:i.replace(":slug","")}(\\d+)(-.*?)?$"
        dataProviderExpression="shows/$1?clean_sessions_data=true&view=essential"
      >
        <sonic-modal visible removeHashOnHide width="95vw" maxWidth="100rem">
          <sonic-modal-close></sonic-modal-close>
          <sonic-modal-content
            ><sonic-fetch key="data"><sonic-event-page noRelated noNavigation></sonic-event-page></sonic-fetch
          ></sonic-modal-content>
        </sonic-modal>
      </template>

      <!-- Event -->
      <template data-route="${null==(s=n.waitingList)?void 0:s.replace(":id","")}(\\d+)$" dataProviderExpression="events/$1">
        <sonic-modal visible removeHashOnHide maxWidth="42rem">
          <sonic-modal-close></sonic-modal-close>
          <sonic-modal-content
            ><sonic-fetch><sonic-waiting-list-form displayTitle></sonic-waiting-list-form></sonic-fetch
          ></sonic-modal-content>
        </sonic-modal>
      </template>

      <!-- INFOS PRICES -->
      <template data-route="${n.freeup}$">
        <sonic-modal visible removeHashOnHide maxWidth="42rem">
          <sonic-modal-close></sonic-modal-close>
          <sonic-modal-content
            ><sonic-ticket-freeup displayTitle smallTitle displayText></sonic-ticket-freeup
          ></sonic-modal-content>
        </sonic-modal>
      </template>

      <!-- CAmpagne de service -->
      <template data-route="${n.campaign}">
        <sonic-campaign></sonic-campaign>
      </template>

      <!-- askProAccount -->
      <template data-route="${n.askProAccount}$">
        <sonic-modal visible removeHashOnHide maxWidth="42rem">
          <sonic-modal-close></sonic-modal-close>
          <sonic-modal-content
            ><sonic-ask-pro-account displayTitle smallTitle displayText></sonic-ask-pro-account
          ></sonic-modal-content>
        </sonic-modal>
      </template>

      <!-- CustomList -->
      <template data-route="${null==(o=n.customList)?void 0:o.replace(":slug","([^/]+)$")}" dataProviderExpression="custom-list/$1">
        <sonic-custom-list></sonic-custom-list>
      </template>

      <!-- Change password -->
      <template data-route="${n.changePassword}">
        <sonic-redirect
          to="./"
          pushState
          dataprovider="change-password-result"
          subDataProvider="_sonic_http_response_"
          ondata="ok"
        ></sonic-redirect>
        <sonic-modal addHTTPResponse visible removeHashOnHide maxWidth="42rem">
          <sonic-modal-close></sonic-modal-close>
          <sonic-modal-content
            ><div dataProvider="sonic-wording">
              <sonic-page-header data-bind ::label="$wording_my_password"></sonic-page-header>
            </div>
            <sonic-sdui
              fetch
              sduiKey="data"
              dataProvider="sdui-provider"
              submitResultDataProvider="change-password-result"
              endPoint="/user/form/change-password/${r}"
              headersDataProvider="ticketsAppHeadersProvider"
            ></sonic-sdui>
          </sonic-modal-content>
        </sonic-modal>
      </template>

      <!-- ACHAT terminé -->
      <template data-route=${n["checkout.end"]}>
        <sonic-modal visible removeHashOnHide maxWidth="42rem">
          <sonic-modal-close></sonic-modal-close>
          <sonic-modal-content>
            <sonic-checkout-process-end></sonic-checkout-process-end>
          </sonic-modal-content>
        </sonic-modal>
      </template>

      <!-- carpooling -->
      <template data-route="${n.carpooling}">
        <sonic-fullscreen-layout>
          <sonic-carpooling></sonic-carpooling>
        </sonic-fullscreen-layout>
      </template>
    </sonic-router>`}};Co([ft({type:Object})],Ao.prototype,"defaultRoutes",2),Co([ft({type:String})],Ao.prototype,"wording_my_password",2),Co([ft({type:Object})],Ao.prototype,"customRoutes",2),Ao=Co([ut("sonic-default-router")],Ao);var Oo=Object.defineProperty,Eo=Object.getOwnPropertyDescriptor,To=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Eo(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Oo(e,i,r),r};let Mo=class extends pt{constructor(){super(...arguments),this.type="default",this.variant="default",this.ellipsis=!1}render(){return V`
      <slot name="prefix"></slot>
      <slot></slot>
      <slot name="suffix"></slot>
    `}};Mo.styles=[ds,l`
      :host {
        --sc-badge-gap: 0.3em;
        --sc-badge-py: 0.35em;
        --sc-badge-px: 0.67em;

        --sc-badge-color: var(--sc-base-content, #000);
        --sc-badge-bg: var(--sc-base-100, rgba(0, 0, 0, 0.07));

        /*--sc-badge-border-width: var(--sc-form-border-width, 0.1rem);*/
        --sc-badge-border-width: 1px;
        --sc-badge-border-color: transparent;
        --sc-badge-border: var(--sc-badge-border-width) solid
          var(--sc-badge-border-color);

        --sc-badge-rounded: 0.85em;
        --sc-badge-fw: var(--sc-font-weight-base, 400);

        display: inline-flex;
        align-items: center;
        box-sizing: border-box;
        line-height: var(--sc-_lh);
        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, sans-serif));
        font-weight: var(--sc-badge-fw);
        line-height: 1;

        padding-top: var(--sc-badge-py);
        padding-bottom: var(--sc-badge-py);
        padding-left: var(--sc-badge-px);
        padding-right: var(--sc-badge-px);
        /**Round pour lissage px */
        min-height: round(calc(var(--sc-badge-px) * 2), 1px);
        min-width: round(calc(var(--sc-badge-px) * 2), 1px);
        border: var(--sc-badge-border);
        -webkit-print-color-adjust: exact;
      }

      /*TYPES*/
      :host([type="primary"]) {
        --sc-badge-color: var(--sc-primary-content, var(--sc-base, #fff));
        --sc-badge-bg: var(--sc-primary, var(--sc-base-content, #000));
      }
      :host([type="warning"]) {
        --sc-badge-color: var(--sc-warning-content, var(--sc-base, #fff));
        --sc-badge-bg: var(--sc-warning, var(--sc-base-content, #000));
      }
      :host([type="danger"]) {
        --sc-badge-color: var(--sc-danger-content, var(--sc-base, #fff));
        --sc-badge-bg: var(--sc-danger, var(--sc-base-content, #000));
      }
      :host([type="info"]) {
        --sc-badge-color: var(--sc-info-content, var(--sc-base, #fff));
        --sc-badge-bg: var(--sc-info, var(--sc-base-content, #000));
      }
      :host([type="success"]) {
        --sc-badge-color: var(--sc-success-content, var(--sc-base, #fff));
        --sc-badge-bg: var(--sc-success, var(--sc-base-content, #000));
      }
      :host([type="neutral"]) {
        --sc-badge-color: var(--sc-base, #fff);
        --sc-badge-bg: var(--sc-base-content, #000);
      }

      :host([contrast]),
      :host([type="contrast"]) {
        --sc-badge-color: var(--sc-contrast-content, #fff);
        --sc-badge-bg: var(--sc-contrast, #000);
      }

      /*SIZE*/
      :host {
        gap: var(--sc-badge-gap);
      }

      :host([size="2xs"]),
      :host([size="xs"]),
      :host([size="sm"]) {
        --sc-badge-gap: 0.35em;
      }

      :host([size="lg"]),
      :host([size="xl"]) {
        --sc-_lh: 1.2;
        --sc-badge-gap: 0.5em;
      }

      /*OUTLINE*/
      :host([variant="outline"][type]) {
        border-width: var(--sc-badge-border-width) !important;
        border-color: var(--sc-badge-bg);
        color: var(--sc-badge-bg);
        background: transparent;
      }

      :host([variant="outline"][type="default"]) {
        border-color: var(--sc-base-content, #000);
        color: var(--sc-base-content, #000);
        background: transparent;
      }

      /*GHOST*/
      :host([variant="ghost"][type]) {
        color: var(--sc-badge-bg);
        background: transparent;
        padding: 0;
      }

      @media (forced-colors: active) {
        :host([variant="ghost"][type]) {
          padding: var(--sc-badge-py) var(--sc-badge-px);
        }
      }

      :host([variant="ghost"][type="default"]) {
        color: var(--sc-badge-color);
        background: transparent;
      }

      :host([ellipsis]) {
        flex-wrap: nowrap;
        white-space: nowrap;
        max-width: 100%;
      }

      :host([ellipsis]) slot {
        overflow: hidden;
        display: block;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
      }

      slot[name="suffix"],
      slot[name="prefix"] {
        flex-shrink: 0;
      }
    `],To([ft({type:String,reflect:!0})],Mo.prototype,"type",2),To([ft({type:String,reflect:!0})],Mo.prototype,"variant",2),To([ft({type:String,reflect:!0})],Mo.prototype,"size",2),To([ft({type:Boolean,reflect:!0})],Mo.prototype,"ellipsis",2),Mo=To([ut("sonic-badge")],Mo);
/**
   * @license
   * Copyright 2017 Google LLC
   * SPDX-License-Identifier: BSD-3-Clause
   */
const Do=t=>{return null!=(null==(i=null==(e=t)?void 0:e._$litType$)?void 0:i.h)?t._$litType$.h:t.strings;var e,i},Lo=de(class extends pe{constructor(t){super(t),this.et=new WeakMap}render(t){return[t]}update(t,[e]){const i=te(this.it)?Do(this.it):null,s=te(e)?Do(e):null;if(null!==i&&(null===s||i!==s)){const e=ne(t).pop();let s=this.et.get(i);if(void 0===s){const t=document.createDocumentFragment();s=dt(Z,t),s.setConnected(!1),this.et.set(i,s)}re(s,[e]),ie(s,void 0,e)}if(null!==s){if(null===i||i!==s){const e=this.et.get(s);if(void 0!==e){const i=ne(e).pop();t._$AR(),ie(t,void 0,i),re(t,[i])}}this.it=e}else this.it=void 0;return this.render(e)}});var jo=Object.defineProperty,Io=Object.getOwnPropertyDescriptor,zo=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Io(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&jo(e,i,r),r};let Bo=class extends pt{constructor(){super(...arguments),this.icon={name:""},this.taxonomy=[],this.separator=",&nbsp;",this.key="",this.displayAll=!1,this.contrast=!1,this.type="default",this.variant="default",this.size="md",this.isScolar=!1}willUpdate(t){t.has("taxonomy")&&this.taxonomy&&"label"==this.key&&this.taxonomy.forEach((t=>{var e;"string"==typeof t.title&&(null==(e=t.title)?void 0:e.toLowerCase().includes("scolaire"))&&(this.isScolar=!0,this.icon={library:"custom",prefix:"solid",name:"child-reaching"},this.type="info")})),super.willUpdate(t)}render(){if(!Array.isArray(this.taxonomy))return Z;const t=this.key+"_display",e=this.displayAll?this.taxonomy:this.taxonomy.filter((e=>null!=e&&(!0===e[t]||"1"==e[t]||!Object.hasOwnProperty.call(e,t))));return 0===e.length?(this.style.display="none",Z):(this.style.removeProperty("display"),Lo(V`
      <sonic-badge type=${this.type} variant=${this.variant} size=${this.size} ?contrast=${this.contrast}>
        <sonic-icon
          slot="prefix"
          library=${li(this.icon.library)}
          prefix=${li(this.icon.prefix)}
          name=${li(this.icon.name)}
        ></sonic-icon>
        <span class="taxonomy-list">
          ${Ie(e,(t=>t[this.key+"_id"]),(t=>V`<span>${t[this.key+"_name"]||t.name}</span
                ><span class="sonic-taxonomy-separator">${_e(this.separator)}</span>`))}
        </span>
      </sonic-badge>
    `))}};Bo.styles=l`
    :host .sonic-taxonomy-separator:last-child {
      display: none;
    }
    :host {
      line-height: 1;
    }
    .taxonomy-list {
      display: flex;
      flex-wrap: wrap;
    }
  `,zo([ft({type:Object})],Bo.prototype,"icon",2),zo([ft({type:Array})],Bo.prototype,"taxonomy",2),zo([ft({type:String})],Bo.prototype,"separator",2),zo([ft({type:String})],Bo.prototype,"key",2),zo([ft({type:Boolean})],Bo.prototype,"displayAll",2),zo([ft({type:Boolean})],Bo.prototype,"contrast",2),zo([ft({type:String,reflect:!0})],Bo.prototype,"type",2),zo([ft({type:String,reflect:!0})],Bo.prototype,"variant",2),zo([ft({type:String,reflect:!0})],Bo.prototype,"size",2),zo([vt()],Bo.prototype,"isScolar",2),Bo=zo([ut("sonic-event-taxonomy")],Bo);var Ro=Object.defineProperty,No=Object.getOwnPropertyDescriptor,Fo=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?No(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Ro(e,i,r),r};let qo=class extends(Le(pt)){constructor(){super(...arguments),this.categories=[],this.labels=[],this.range=null,this.size="md",this.displayAll=!1}render(){return this.range&&this.range.display||this.labels&&this.labels.length>0||this.categories&&this.categories.length>0?(this.style.removeProperty("display"),V`
      <sonic-event-taxonomy
        size=${this.size}
        .taxonomy=${[this.range]}
        key="range"
        variant="outline"
      ></sonic-event-taxonomy>
      <sonic-event-taxonomy size=${this.size} .taxonomy=${this.labels} key="label" variant="default">
      </sonic-event-taxonomy>
      <sonic-event-taxonomy
        size=${this.size}
        .icon=${{library:"custom",prefix:"regular",name:"tag"}}
        .taxonomy=${this.categories}
        ?displayAll=${this.displayAll}
        variant="ghost"
        key="category"
      ></sonic-event-taxonomy>
    `):(this.style.display="none",Z)}};qo.styles=l`
    :host {
      display: flex;
      gap: 0.25em 0.35em;
      flex-wrap: wrap;
      align-items: center;
    }
  `,Fo([ft({type:Array})],qo.prototype,"categories",2),Fo([ft({type:Array})],qo.prototype,"labels",2),Fo([ft({type:Object})],qo.prototype,"range",2),Fo([ft({type:String})],qo.prototype,"size",2),Fo([ft({type:Boolean})],qo.prototype,"displayAll",2),qo=Fo([ut("sonic-event-taxonomies")],qo);var Ho=Object.defineProperty,Uo=Object.getOwnPropertyDescriptor,Vo=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Uo(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Ho(e,i,r),r};const Wo=(t,e)=>{class i extends t{constructor(...t){super(),this.multisession=null,this._isSessionsListVisible=!1,this._isEventDetail=!1,this._isGuichet=!1,this.dataProvider=""}get isSessionsListVisible(){return this._isSessionsListVisible||(this._isSessionsListVisible=this.multisession&&!this.isEventDetail)}set isSessionsListVisible(t){this._isSessionsListVisible=t}get isEventDetail(){return this._isEventDetail||(this._isEventDetail=this.hasAncestorAttribute("is_event_detail"))}set isEventDetail(t){this._isEventDetail=t}get isGuichet(){return this._isGuichet||(this._isGuichet=this.hasAncestorAttribute("is_guichet"))}set isGuichet(t){this._isGuichet=t}getTitle(){const t=this.getEditoPart("alt_title");return t||this.getEditoPart("title")}getPart(t,e){const i=this.props;return this.isSessionsListVisible&&i.multisession?i.multisession[t][e]:i[t][e]}getEditoPart(t){return this.getPart("edito",t)}}return Vo([ft({type:Object})],i.prototype,"multisession",2),Vo([ft({type:Boolean})],i.prototype,"isSessionsListVisible",1),Vo([ft({type:Boolean})],i.prototype,"isEventDetail",1),Vo([ft({type:Boolean})],i.prototype,"isGuichet",1),i};var Zo=Object.defineProperty,Yo=Object.getOwnPropertyDescriptor,Go=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Yo(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Zo(e,i,r),r};let Ko=class extends(Wo(Le(pt))){constructor(){super(...arguments),this.skeleton=!1,this.hideMiddleColumn=!1,this.skeletonRows=10,this.id="",this.slug="",this.event_id=0,this.picture={},this.activities=[],this.categories=[],this.labels=[],this.infos_status={},this.range={},this.wording_aucun_resultats="",this.isOverriden=!1}render(){var t,e,i,s;const o=!(!this.infos_status.additionnals||!(null==(e=null==(t=this.infos_status.additionnals[0])?void 0:t.libelle)?void 0:e.length)),r=this.isGuichet&&this.categories.length||this.categories.filter((t=>1==(null==t?void 0:t.display))).length>0,n=!!(this.range&&(this.range.display||this.isGuichet)&&Object.keys(this.range).length>0),a=(null==(i=this.labels)?void 0:i.length)>0||r||o||n,l=[];for(let d=0;d<this.skeletonRows;d++)l.push(V`
        <div
          class="grid grid-cols-[6rem_minmax(0,1fr)] md:grid-cols-[6rem_minmax(0,4fr)]  lg:grid-cols-[8rem_minmax(0,6fr)] pb-3 mb-3 lg:mb-4 lg:pb-4 border-b border-neutral-100"
        >
          <div>
            <div class="aspect-[1/1] rounded animate-pulse bg-neutral-100"></div>
          </div>
          <div
            class="

              grid
              md:grid-cols-[minmax(0,3fr)_minmax(0,2fr)] 
              xl:grid-cols-[minmax(0,3fr)_minmax(0,2fr)_3.7rem]
              divide-x
              divide-neutral-100"
          >
            <!-- cell titre -->
            <div class="pl-4 md:px-4 py-1 flex flex-wrap flex-col justify-center">
              <div class="rounded-sm animate-pulse bg-neutral-100 h-4 max-w-[15ch] mb-1"></div>
              <div class="rounded-sm animate-pulse bg-neutral-100 h-4 max-w-[28ch] mb-3"></div>
              <div class="rounded-sm animate-pulse bg-neutral-100 h-4 max-w-[18ch] "></div>
            </div>
            <div class="px-4 hidden md:flex"></div>
            <div class="px-4 hidden md:flex"></div>
          </div>
        </div>
      `);if(this.skeleton)return V` <div class="animate-pulse">${l}</div> `;if(!this.id)return Z;const c=`events/${this.id}/status`;return V`
      <div
        class="grid grid-cols-[6rem_minmax(0,2fr)] md:grid-cols-[6rem_minmax(0,4fr)] lg:grid-cols-[8rem_minmax(0,6fr)] pb-3 mb-3 lg:mb-4 lg:pb-4 border-b  border-neutral-100"
      >
        <sonic-app-link to="event" slug=${this.slug}>
          <sonic-image
            src=${(null==(s=this.picture)?void 0:s.ratio_1x1_360)||""}
            ratio="1/1"
            class="block rounded overflow-hidden "
          ></sonic-image>
        </sonic-app-link>

        <div
          class="grid grid-cols-1 md:grid-cols-[minmax(0,3fr)_minmax(0,2fr)]  xl:grid-cols-[minmax(0,3fr)_minmax(0,2fr)_3.6rem] divide-x divide-neutral-100"
        >
          <div class="pl-4 md:px-4 flex flex-col justify-center self-center">
            <sonic-app-link to="event" slug=${this.slug}>
              <sonic-date class="text-xs md:text-sm"></sonic-date>
              <sonic-product-title
                class="lg:text-xl  font-headings font-weight-headings font-style-headings leading-tight lg:leading-tight grow-0 mt-1 block hover:underline"
              ></sonic-product-title>
              <sonic-fetch
                lazyLoad
                dataProvider="events/${this.id}/status"
                .propertyMap=${{data:"infos_status"}}
              ></sonic-fetch>
            </sonic-app-link>
            <div class="flex flex-col md:hidden">
              <sonic-event-additional-status
                dataProvider=${c}
                size="xs"
                visibility="public"
                variant="ghost"
              ></sonic-event-additional-status>
              <sonic-event-additional-status
                dataProvider=${c}
                size="xs"
                visibility="private"
                variant="ghost"
              ></sonic-event-additional-status>
            </div>
            <sonic-event-location-hall
              class="text-neutral-400 ellipsis text-xs mt-2"
              isEvent="true"
            ></sonic-event-location-hall>
          </div>

          <div class="px-4 justify-center gap-1 flex-col md:flex hidden ${a?"":"invisible"} ">
            <!-- <sonic-event-taxonomies></sonic-event-taxonomies> -->
            <sonic-if .condition=${n}>
              <sonic-event-range></sonic-event-range>
            </sonic-if>
            <div class="flex flex-col mt-1">
              <sonic-event-additional-status
                dataProvider=${c}
                size="xs"
                visibility="public"
                variant="ghost"
              ></sonic-event-additional-status>
              <sonic-event-additional-status
                dataProvider=${c}
                size="xs"
                visibility="private"
                variant="ghost"
              ></sonic-event-additional-status>
              ${this.isGuichet?Z:V`<sonic-event-scheduled-status size="xs" variant="ghost"></sonic-event-scheduled-status> `}
            </div>

            <sonic-event-taxonomy
              .icon=${{library:"custom",prefix:"regular",name:"tag"}}
              key="category"
              .taxonomy=${this.categories}
              size="xs"
              class="block"
              variant="ghost"
            ></sonic-event-taxonomy>
            <sonic-event-taxonomy key="label" .taxonomy=${this.labels} size="xs" class="block"></sonic-event-taxonomy>
          </div>

          <div class="pl-4 text-center items-center justify-end hidden xl:flex">
            <sonic-app-link to="event" slug=${this.slug}>
              <sonic-icon
                size="2xl"
                library="heroicons"
                prefix="outline"
                name="chevron-right"
                class="text-neutral-200 hover:text-neutral-400 transition-all"
              ></sonic-icon>
            </sonic-app-link>
          </div>
        </div>
      </div>
    `}};Ko.styles=[l`
      a {
        text-decoration: none;
        display: block;
        color: inherit;
      }
    `,Qs],Go([ft({type:Boolean})],Ko.prototype,"skeleton",2),Go([ft({type:Boolean})],Ko.prototype,"hideMiddleColumn",2),Go([ft({type:Number})],Ko.prototype,"skeletonRows",2),Go([ft({type:String})],Ko.prototype,"id",2),Go([ft({type:String})],Ko.prototype,"slug",2),Go([ft({type:Number})],Ko.prototype,"event_id",2),Go([ft({type:Object})],Ko.prototype,"picture",2),Go([ft({type:Array})],Ko.prototype,"activities",2),Go([ft({type:Array})],Ko.prototype,"categories",2),Go([ft({type:Array})],Ko.prototype,"labels",2),Go([ft({type:Object})],Ko.prototype,"infos_status",2),Go([ft({type:Object})],Ko.prototype,"range",2),Go([ft({type:String})],Ko.prototype,"wording_aucun_resultats",2),Go([vt()],Ko.prototype,"isOverriden",2),Ko=Go([ut("sonic-event-condensed")],Ko);var Qo=Object.defineProperty,Xo=Object.getOwnPropertyDescriptor,Jo=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Xo(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Qo(e,i,r),r};let tr=class extends(Le(Os(pt))){constructor(){super(...arguments),this.state="",this.inverted=!1,this.statePath="",this.onStateAssign=t=>{this.state=t,this.requestUpdate()}}connectedCallback(){if(this.noShadowDom="",super.connectedCallback(),this.hasAttribute("data-path")&&(this.statePath=this.getAttribute("data-path")),this.statePath){this.statePublisher=this.publisher;const t=this.statePath.split(".");for(const e of t)this.statePublisher=this.statePublisher[e];this.statePublisher.onAssign(this.onStateAssign)}}disconnectedCallback(){var t;this.statePath&&(null==(t=this.statePublisher)||t.offAssign(this.onStateAssign)),super.disconnectedCallback()}render(){const t=[];let e=this.state;(!Array.isArray(e)&&Pt.isObject(e)||void 0===e)&&(e="");for(const i of this.templatePartsList){let s=i.getAttribute(this.templateValueAttribute),o=e;this.inverted&&(o=s,s=e),""==s&&(s=this.inverted?".*?":"^$");if(new RegExp(s).test(o+""))t.push(i),i.removeAttribute("mode");else{const e=new _i(s);e.names.length>0&&e.match(o)&&(i.setAttribute("mode","patternMatching"),t.push(i))}}return V`${Ie(t,((t,e)=>e+(new Date).getTime()),(t=>{var i;if(t.title&&(document.title=t.title),t.hasAttribute("dataProviderExpression")){const s=t.getAttribute("dataProviderExpression");let o="",r=e,n=t.getAttribute(this.templateValueAttribute);if(this.inverted&&(r=n,n=e),""==n&&(n=this.inverted?"*":"^$"),"patternMatching"==t.getAttribute("mode")){const t=new _i(n);o=new _i(s).stringify(t.match(r))}else{const t=new RegExp(n),e=(r+"").match(t);e&&(o=null==(i=e.shift())?void 0:i.replace(t,s))}return V`<div
            style="display:contents"
            dataProvider="${o}"
          >
            ${Is(t)}
          </div>`}return Is(t)}))}`}};Jo([ft()],tr.prototype,"state",2),Jo([ft({type:Boolean,reflect:!0})],tr.prototype,"inverted",2),tr=Jo([ut("sonic-states")],tr);var er=Object.defineProperty,ir=Object.getOwnPropertyDescriptor,sr=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?ir(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&er(e,i,r),r};let or=class extends(Es(Le(pt))){constructor(){super(...arguments),this.wording_LIB_code_promo="",this.wording_LIB_code_promo_toast_msg="",this.wording_LIB_code_promo_modal_subtitle="",this.updateSelectedPromoCode=t=>{if(!t)return;const e=this.data.find((e=>e.promo_code_id==parseInt(t)));e&&Ti.get("selectedPromoActiveCode").set({...e})},this.data=[]}disconnectedCallback(){Ti.get("selectedPromoActiveCode").promo_code_id.offAssign(this.updateSelectedPromoCode),Ti.get("promo").offAssign(this.updateToast),super.disconnectedCallback()}connectedCallback(){document.documentElement.matches(".iframe-context")||(this.setAttribute("dataProvider","promo-active-code"),this.setAttribute("endPoint","promotion-code?actives=true"),Ti.get("selectedPromoActiveCode").promo_code_id.onAssign(this.updateSelectedPromoCode),Ti.get("promo").onAssign(this.updateToast),super.connectedCallback())}willUpdate(t){(t.has("data")||t.has("wording_LIB_code_promo"))&&this.wording_LIB_code_promo&&this.wording_LIB_code_promo_toast_msg&&this.addToast(),super.willUpdate(t)}updateToast(){Ti.get("promo-active-code").invalidate()}addToast(){Ki.removeItem(this.previousToast);const t=this.getApiConfiguration();if(this.data.length){const e={title:this.wording_LIB_code_promo,text:`\n          ${this.wording_LIB_code_promo_toast_msg}<br>\n          <div style="display:flex; align-items:center; flex-wrap:wrap; gap:.25rem 1rem; margin-top:.2rem;" formDataProvider="selectedPromoActiveCode">\n            ${this.data.map((e=>`\n              <div style="display:flex;align-items:center;">\n                <sonic-button radio name="promo_code_id" value='${e.promo_code_id}' size="xs" variant="outline">\n                     <sonic-icon library="custom" name="arrow-right" slot="prefix">\n                      </sonic-icon> <b>${e.code}</b>\n                </sonic-button>\n                <div formDataProvider="deletePromoActiveCode" >\n                  <sonic-submit\n                    onClick\n                    serviceURL="${t.serviceURL}"\n                    endPoint="${this.endPoint}"\n                    method="delete"\n                    submitResultDataProvider="${this.dataProvider}"\n                    >\n                    <sonic-button class="ml-1" unique size="xs" variant="ghost" shape="square" name="promo_code_id" value=${e.promo_code_id}>\n                      <sonic-icon library="custom" name="trash-can">\n                      </sonic-icon>\n                    </sonic-button>\n                  </sonic-submit>\n                </div>\n              </div>\n            `)).join("")}\n          </div>`,status:"success",preserve:!0};this.previousToast=e,Ki.add(e)}}render(){return V`
      <sonic-states dataProvider="selectedPromoActiveCode" data-path="events">
        <template data-value="((\\d,?)+)" dataProviderExpression="events?ids=$1&next=1&limit=$limit&offset=$offset">
          <sonic-modal visible maxHeight="80vh" maxWidth="70rem" width="90%" resetDataProviderOnHide="selectedPromoActiveCode">
            <sonic-modal-close reset="selectedPromoActiveCode"></sonic-modal-close>
            <sonic-modal-title>
              <sonic-icon library="custom" name="gift"></sonic-icon>&nbsp;
              <sonic-value dataProvider="sonic-wording" key="wording_LIB_code_promo"></sonic-value>&nbsp;:&nbsp;
              <sonic-value dataProvider="selectedPromoActiveCode" key="code"></sonic-value>
            </sonic-modal-title>
            <sonic-modal-subtitle
              ><sonic-value dataProvider="sonic-wording" key="wording_LIB_code_promo_modal_subtitle"></sonic-value
            ></sonic-modal-subtitle>
            <sonic-modal-content style="width:100%;">
              <sonic-queue fetch>
                <template>
                  <sonic-event-condensed></sonic-event-condensed>
                </template>
              </sonic-queue>
            </sonic-modal-content>
          </sonic-modal>
        </template>
      </sonic-states>
    `}};or.styles=[Qs,l`
      sonic-state::part(modal-content) {
        width: 100%;
      }
    `],sr([ft({type:String})],or.prototype,"wording_LIB_code_promo",2),sr([ft({type:String})],or.prototype,"wording_LIB_code_promo_toast_msg",2),sr([ft({type:String})],or.prototype,"wording_LIB_code_promo_modal_subtitle",2),sr([ft({type:Array})],or.prototype,"data",2),or=sr([ut("sonic-promo-active-code")],or);var rr=Object.defineProperty,nr=Object.getOwnPropertyDescriptor,ar=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?nr(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&rr(e,i,r),r};we("waiting_line_infos").status="",we("sonicTicketApp").isWaiting=!0;let lr=class extends(Le(pt)){constructor(){super(...arguments),this.customRoutes={},this.wordingVersionProvider="settings.wording.version",this.serviceUrl="/api/v2",this.cartProvider="cart/current",this.credentials="include",this.theme="light",this.wordingProvider="translate",this.customIconLibraryPath="https://cdn.supersoniks.com/concorde/icons/fontawesome/v6/$prefix/$name.svg",this.customIconDefaultPrefix="regular",this.defaultFrontend=!1,this.noFetchSettings=!1,this.noFetchTheme=!1,this.waitingLineStatus="",this.statusResetCounter=0,this.onFetchError=t=>{if(this.statusResetCounter>5)return;const e=we("waiting_line_infos").status;403===t.status&&this.hasWaitingLine&&""!=e&&(we("waiting_line_infos").status="",this.statusResetCounter++)}}onWaitingLineStatus(t,e){we("sonicTicketApp").isWaiting="entered"!=t&&e}onLogRoute(t){!0===t&&((t,e="log")=>{Ut=e,Vt=t,Ht=!0,window.addEventListener("error",(t=>{var e;if(Gt>3)return;Gt++;let i="";try{i=window.location.href}catch(tO){i="unknown"}const s={eventType:"error",page:i,filename:t.filename||"unknown",lineno:t.lineno||null,colno:t.colno||null,stack:(null==(e=t.error)?void 0:e.stack)||"Stack not available",isCrossOrigin:"Script error."===t.message};return Yt(t.message||"Script error.",s),!1})),window.addEventListener("unhandledrejection",(t=>{var e,i,s;if(Gt>3)return;Gt++;let o="";try{o=window.location.href}catch(tO){o="unknown"}const r={eventType:"unhandledrejection",page:o,code:(null==(e=t.reason)?void 0:e.code)||"none",stack:(null==(i=t.reason)?void 0:i.stack)||"Stack not available",timestamp:(new Date).toISOString()};Yt((null==(s=t.reason)?void 0:s.message)||"Unknown rejection reason.",r)}))})(kt.getApiConfiguration(this))}connectedCallback(){var t;t=this.onFetchError,bs.add(t);const e=this.customRoutes.home||no.home;oo.register(no,e);for(const r in this.customRoutes)null===this.customRoutes[r]&&delete this.customRoutes[r];oo.register(this.customRoutes,e);const i=this.customRoutes.account,s=i!==no.account?i:no.home;if(oo.register(ro,s,"account."),this.storeUrl&&!this.getAttribute("serviceURL")){const t=this.storeUrl.replace(/\/$/,"");this.serviceUrl=t+this.serviceUrl}this.setAttribute("serviceUrl",this.serviceUrl),this.setAttribute("cartProvider",new URL(document.location.href).searchParams.get("cartProvider")||this.cartProvider),this.setAttribute("credentials",this.credentials),this.setAttribute("wordingProvider",this.wordingProvider),this.setAttribute("customIconLibraryPath",this.customIconLibraryPath),this.setAttribute("customIconDefaultPrefix",this.customIconDefaultPrefix);const o=ao("home");zt.get("ticketsAppHeadersProvider")["Sonic-Tickets-App-Home"]=o,zt.get("user").onAssign((t=>{t._sonic_http_response_&&(zt.get("carpooling_user_id").encrypted_uid=t._sonic_http_response_.headers.get("Uid"))})),(()=>{var t;const e=new URLSearchParams(window.location.search),i=e.get("sonic_to"),s=new URLSearchParams;if(e.forEach(((t,e)=>{"sonic_to"!==e&&s.append(e,t)})),i){const e=i.split("(")[0];let o=(null==(t=i.split("(")[1])?void 0:t.split(")")[0])||e;o=o.replace(/%20/g," ").replace(/ /g,"");let r=ao(e).toString();const n=new Di(r);if(r){let t;null==n||n.names.forEach((t=>{const e=o.match(new RegExp(`${t}:(.*?)(,|$)`));e&&(r=r.replace(`:${t}`,e[1]))})),r.startsWith("#")?window.location.hash=r:(t=new URL(location.protocol+"//"+location.host+r),t.search=s.toString(),window.location.href=t.toString())}}})(),super.connectedCallback()}disconnectedCallback(){var t;t=this.onFetchError,bs.delete(t),super.disconnectedCallback()}showWaitingLine(){return this.hasWaitingLine&&"entered"!=this.waitingLineStatus}showAppContent(){return!this.showWaitingLine()||"true"===sessionStorage.getItem("waiting-line-previously-entered")&&""==this.waitingLineStatus}willUpdate(t){(()=>{const t=new Set(ys);ys.clear();for(const e of t)e._fetchData()})(),super.willUpdate(t)}render(){return V` <sonic-theme part="theme" theme=${this.theme}>
      ${this.noFetchTheme?Z:V`<sonic-fetch dataprovider="theme"></sonic-fetch>`}
      ${this.noFetchSettings?Z:V`<sonic-fetch dataprovider="settings" localStorage="enabled"></sonic-fetch> `}
      ${this.preferWebsite&&this.defaultFrontend?V`<sonic-prefer-website-message></sonic-prefer-website-message>`:Z}
      ${this.showWaitingLine()?V`<sonic-waiting-line></sonic-waiting-line>`:Z}
      ${this.isWaiting?Z:V`<sonic-fetch addHTTPResponse dataprovider="user" endpoint="user/current"></sonic-fetch>`}
      ${this.isWaiting?Z:V`<sonic-fetch dataprovider="cart/current" endpoint="cart/current"></sonic-fetch>`}
      ${this.showAppContent()?V`
            <slot></slot>

            <!-- Routes auto-implémentées -->
            <sonic-default-router .customRoutes=${this.customRoutes}></sonic-default-router>

            <sonic-promo-active-code></sonic-promo-active-code>

            <!-- message subscriber -->
            <sonic-toast-message-subscriber dataProvider="cart/current"></sonic-toast-message-subscriber>
            <sonic-toast-message-subscriber dataProvider="defaultMessages"></sonic-toast-message-subscriber>
            <sonic-administrator-force-logout></sonic-administrator-force-logout>
          `:Z}
    </sonic-theme>`}};lr.styles=[l`
      :host {
        display: contents;
        --sc-container-gutter-x: 1rem;
        --sc-container-gutter-y: 2rem;
        --sc-header-baseline-height: 1rem;
        --sc-header-gy: 1rem;
        --sc-header-height: calc(4.5rem + var(--sc-header-gy) * 2 + var(--sc-header-baseline-height, 0px));
        --sc-header-mb: 2rem;
      }
      @media (min-width: 480px) {
        :host {
          --sc-container-gutter-x: clamp(1rem, 5vw, 5rem);
        }
      }

      @media (min-width: 1024px) {
        :host {
          --sc-container-gutter-x: clamp(1rem, 5vw, 5rem);
          --sc-header-gy: 2rem;
          --sc-header-mb: 0px;
        }
      }
    `],ar([ft({type:String})],lr.prototype,"token",2),ar([ft({type:Object})],lr.prototype,"customRoutes",2),ar([ft({type:String,reflect:!0})],lr.prototype,"wordingVersionProvider",2),ar([ft({type:String})],lr.prototype,"storeUrl",2),ar([ft({type:String})],lr.prototype,"serviceUrl",2),ar([ft({type:String})],lr.prototype,"cartProvider",2),ar([ft({type:String})],lr.prototype,"credentials",2),ar([ft({type:String})],lr.prototype,"theme",2),ar([ft({type:String})],lr.prototype,"wordingProvider",2),ar([ft({type:String})],lr.prototype,"customIconLibraryPath",2),ar([ft({type:String})],lr.prototype,"customIconDefaultPrefix",2),ar([ft({type:Boolean})],lr.prototype,"defaultFrontend",2),ar([ft({type:Boolean})],lr.prototype,"noFetchSettings",2),ar([ft({type:Boolean})],lr.prototype,"noFetchTheme",2),ar([Us("settings.prefer_website"),ft({type:Boolean})],lr.prototype,"preferWebsite",2),ar([Us("waiting_line_infos.status"),vt()],lr.prototype,"waitingLineStatus",2),ar([Us("settings.modules.waiting_line.enabled"),ft({type:Boolean})],lr.prototype,"hasWaitingLine",2),ar([Us("sonicTicketApp.isWaiting"),vt()],lr.prototype,"isWaiting",2),ar([Vs("waiting_line_infos.status","settings.modules.waiting_line.enabled")],lr.prototype,"onWaitingLineStatus",1),ar([Vs("settings.modules.logs_route.enabled")],lr.prototype,"onLogRoute",1),lr=ar([ut("sonic-tickets-app")],lr);var cr=Object.defineProperty,dr=Object.getOwnPropertyDescriptor,pr=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?dr(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&cr(e,i,r),r};$t((()=>hr.updateComponentsLanguage()));let hr=class extends(Le(Os(pt))){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=0,this.computedStartDate=0,this.end_date=0,this.computedEndDate=0,this.hide_hours=!1,this.era="",this.year="numeric",this.month="short",this.day="2-digit",this.weekday="short",this.hour="2-digit",this.hour12=!1,this.minute="2-digit",this.language="",this.renderIf=!0,this.now=!1,this.startDateObject=new Date,this.endDateObject=new Date}static updateComponentsLanguage(){hr.dateCompnents.forEach((t=>t.pageLanguage=kt.getLanguage()))}get wording_billet_periode_validite(){return this._wording_billet_periode_validite}set wording_billet_periode_validite(t){var e;t||(t="Du %s au %s"),this._wording_billet_periode_validite=t,this.duAu=null==(e=this.wording_billet_periode_validite)?void 0:e.split("%s").map((t=>t.trim())),this.duAu.pop(),this.requestUpdate()}connectedCallback(){this.hasAttribute("wording_billet_periode_validite")||(this.wording_billet_periode_validite="Du %s au %s"),this.pageLanguage=kt.getLanguage(),hr.dateCompnents.add(this),super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),hr.dateCompnents.delete(this)}getDatesParts(t,e,i){const s=this.startDateObject;s.setTime(1e3*t);let o=[];if(e>0){const t=this.endDateObject;t.setTime(1e3*e);const r=s.toDateString()==t.toDateString();r&&!this.hide_hours||(delete i.hour,delete i.minute);if(o=new Intl.DateTimeFormat(this.language||this.pageLanguage,i).formatRangeToParts(s,t),!r){const t=o.find((t=>"literal"==t.type&&"shared"==t.source&&t.value.trim().length>0));t&&(t.value=" "+this.duAu[1]+" ",t.type="to"),this.designMode||o.unshift({type:"from",value:this.duAu[0]+" ",source:"shared"})}}else{o=new Intl.DateTimeFormat(this.language||this.pageLanguage,i).formatToParts(s)}return this.designMode&&o.forEach((t=>t.value=t.value.replace(/,/g," "))),o[0].value=Kt.ucFirst(o[0].value),o.filter((t=>!0!==t.hidden))}dateStringToSeconds(t){return new Date(t).getTime()/1e3}willUpdate(t){if(this.computedStartDate=0,this.computedEndDate=0,this.date_string&&(this.date=this.dateStringToSeconds(this.date_string)),this.date&&(this.computedStartDate=this.date),this.start_date_string&&(this.computedStartDate=this.dateStringToSeconds(this.start_date_string)),this.end_date_string&&(this.end_date=this.dateStringToSeconds(this.end_date_string)),this.start_date&&(this.computedStartDate=this.start_date),(this.computedStartDate||this.now||this.end_date)&&(this.computedStartDate||(this.computedStartDate=Date.now()/1e3),this.end_date&&(this.computedEndDate=this.end_date),this.computedEndDate>0&&this.computedEndDate<this.computedStartDate)){const t=this.computedStartDate;this.computedStartDate=this.computedEndDate,this.computedEndDate=t}}render(){if(!this.renderIf)return Z;if(!this.computedStartDate&&!this.now&&!this.computedEndDate)return Z;const t={year:this.year||"numeric",month:this.month||"short",day:this.day||"2-digit",hour12:this.hour12||!1};"hidden"!==this.weekday&&(t.weekday=this.weekday||"short"),"hidden"!==this.hour&&(t.hour=this.hour||"2-digit"),"hidden"!==this.minute&&(t.minute=this.minute||"2-digit"),this.era&&(t.era=this.era),this.time_zone&&(t.timeZone=this.time_zone);const e=this.getDatesParts(this.computedStartDate,this.computedEndDate,t);return _e(`${e.map((t=>{const e=this.templateParts[t.type];if(e){const i=document.importNode(e.content,!0).children[0];return""==i.innerText.trim()&&(i.innerText=t.value),i.outerHTML}const i=document.createElement("span");return i.innerText=t.value,i.className=t.type,`<span class="${t.type}">${t.value}</span>`})).join("")}`)}};hr.dateCompnents=new Set,pr([ft()],hr.prototype,"wording_billet_periode_validite",1),pr([ft({type:Boolean})],hr.prototype,"designMode",2),pr([ft({type:String})],hr.prototype,"time_zone",2),pr([ft({type:Number})],hr.prototype,"date",2),pr([ft({type:String})],hr.prototype,"date_string",2),pr([ft({type:String})],hr.prototype,"start_date_string",2),pr([ft({type:String})],hr.prototype,"end_date_string",2),pr([ft({type:Number})],hr.prototype,"start_date",2),pr([ft({type:Number})],hr.prototype,"end_date",2),pr([ft({type:Boolean})],hr.prototype,"hide_hours",2),pr([ft({type:String})],hr.prototype,"era",2),pr([ft({type:String})],hr.prototype,"year",2),pr([ft({type:String})],hr.prototype,"month",2),pr([ft({type:String})],hr.prototype,"day",2),pr([ft({type:String})],hr.prototype,"weekday",2),pr([ft({type:String})],hr.prototype,"hour",2),pr([ft({type:Boolean})],hr.prototype,"hour12",2),pr([ft({type:String})],hr.prototype,"minute",2),pr([ft({type:String})],hr.prototype,"language",2),pr([ft({type:Boolean})],hr.prototype,"renderIf",2),pr([ft({type:Boolean})],hr.prototype,"now",2),hr=pr([ut("sonic-date")],hr);var ur=Object.defineProperty,mr=Object.getOwnPropertyDescriptor,gr=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?mr(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&ur(e,i,r),r};let fr=class extends pt{constructor(){super(...arguments),this.condition=!1}render(){return this.condition?V` <slot></slot> `:Z}};fr.styles=l`
    :host {
      display: contents;
    }
  `,gr([ft({type:Boolean})],fr.prototype,"condition",2),fr=gr([ut("sonic-if")],fr);const vr=l`
  :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: 24px;
    margin: auto;
    z-index: 20;
  }
  .sonic-loader--inline div {
    position: absolute;
    top: 5px;
    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 0.6s infinite;
  }
  .sonic-loader--inline div:nth-child(2) {
    left: 8px;
    animation: lds-ellipsis2 0.6s infinite;
  }
  .sonic-loader--inline div:nth-child(3) {
    left: 32px;
    animation: lds-ellipsis2 0.6s infinite;
  }
  .sonic-loader--inline div:nth-child(4) {
    left: 56px;
    animation: lds-ellipsis3 0.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);
    }
  }
`,yr=l`
  @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: -0.5s;
  }
  .sonic-loader--fixed > div:nth-child(3) {
    animation-delay: -0.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: 0px;
    opacity: 0;
    margin: 0;
    top: -2.5rem;
    left: -2.5rem;
    width: 5rem;
    height: 5rem;
    animation: sonic-loader--fixed 1s 0s linear infinite;
  }
`;var br=Object.defineProperty,wr=Object.getOwnPropertyDescriptor,xr=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?wr(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&br(e,i,r),r};let _r=class extends pt{constructor(){super(...arguments),this.mode="fixed",this.noDelay=!1}static show(t){_r.loader||(_r.loader=document.createElement("sonic-loader"));const e=_r.loader;t||(t={}),t.mode&&e.setAttribute("mode",t.mode),t.noDelay&&e.setAttribute("noDelay",""),t.container||(t.container=Wi.getPopContainer(),t.mode="fixed"),t.container.appendChild(e),_r.callCounter++}static hide(){_r.callCounter--,_r.callCounter>0||_r.loader&&_r.loader.remove()}render(){return V`<div
      class="sonic-loader sonic-loader--${this.mode} ${this.noDelay?"sonic-loader--nodelay":""} "
    >
      <div></div>
      <div></div>
      <div></div>
      <div></div>
    </div>`}};_r.styles=[vr,yr,l`
      :host {
        --sc-_loader-bg: var(--sc-primary, currentColor);
        pointer-events: none;
      }

      :host([currentColor]) {
        --sc-_loader-bg: currentColor;
      }

      .sonic-loader {
        opacity: 0;
        animation: showLoader 0.5s 0.5s forwards;
      }
      .sonic-loader--inline,
      .sonic-loader--nodelay {
        animation-delay: 0s;
      }

      @keyframes showLoader {
        0% {
          opacity: 0;
        }

        100% {
          opacity: 1;
        }
      }
    `],_r.callCounter=0,xr([ft({type:String})],_r.prototype,"mode",2),xr([ft({type:Boolean})],_r.prototype,"noDelay",2),_r=xr([ut("sonic-loader")],_r);var kr=Object.defineProperty,$r=Object.getOwnPropertyDescriptor;let Pr=class extends(Le(pt)){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 V`<slot></slot> `}};Pr=((t,e,i,s)=>{for(var o,r=s>1?void 0:s?$r(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&kr(e,i,r),r})([ut("sonic-subscriber")],Pr);var Sr=Object.defineProperty,Cr=Object.getOwnPropertyDescriptor,Ar=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Cr(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Sr(e,i,r),r};let Or=class extends(_s(Le(Os(pt)))){constructor(){super(...arguments),this.templateKey="template",this.idKey="id",this.limit=Number.POSITIVE_INFINITY,this.offset=0}connectedCallback(){this.noShadowDom="",this.defferedDebug=this.hasAttribute("debug")||null,this.isFetchEnabled=this.hasAttribute("fetch"),this.isFetchEnabled&&(this.isLoading=!0),super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}renderLoader(){if(!this.isLoading||void 0===this.loader)return Z;if(this.templateParts.skeleton)return Z;const t=!0===this.loader||""===this.loader?"fixed":this.loader;return V`<sonic-loader mode=${t}></sonic-loader>`}renderSkeleton(){const t=this.templateParts.skeleton;return this.isLoading&&t?Is(t):Z}renderLoadingState(){return V`${this.renderSkeleton()} ${this.renderLoader()}`}renderNoResultState(){return V` <div
      style="color: var(--sc-base-400);
    font-size: 1.5em;
    margin: 4rem 0;
    display: flex;
    gap: 0.5rem;"
    >
      <sonic-icon name="emoji-puzzled" size="lg"></sonic-icon
      ><span class="sonic-no-result-text"
        >${"string"==typeof this.props&&""==this.props?"Aucun résultat":this.props}</span
      >
    </div>`}formatProps(){let t=this.props;if(null==t)return null;const e=t._sonic_http_response_,i=this.hasAttribute("extractValues");return Array.isArray(t)||(t=i?Object.entries(t).map((([t,e])=>({key:t,value:e}))):Pt.isObject(t)&&Object.keys(t).length>0&&(!e||e.ok)?[t]:[]),t=t.filter((t=>null!=t)),e&&(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(!Pt.isObject(this.props))return V`<div></div>`;const t=this.formatProps();if(0==((null==t?void 0:t.length)||0)&&this.templateParts["no-item"])return Is(this.templateParts["no-item"]);const e=this.templateList.length;let i=-1;const s=this.hasAttribute("extractValues"),o=this.templateParts.separator,r=(null==t?void 0:t.length)||0,n=null==t?void 0:t.slice(this.offset,this.offset+this.limit);return V`
      ${null==n?void 0:n.map(((t,n)=>{if(null==t)return Z;let a=null,l=n;if("object"==typeof t&&!Array.isArray(t)){const e=t[this.templateKey];e&&"string"==typeof e&&(a=this.templateParts[e]),s&&(l=null==t?void 0:t.key)}if("_sonic_http_response_"==l)return Z;if("string"!=typeof l&&"number"!=typeof l)return Z;const c=n>=r-1,d=n%2,p=this.publisher[l];return p._key_=l+"",p._metadata_={...p._metadata_.get(),key:l,even:0==d,odd:1==d,onlyChild:1==r,firstChild:0==n,lastChild:c},i++,a&&(i=-1),t&&V`
            <sonic-subscriber
              ?debug=${!0===this.defferedDebug}
              .bindPublisher=${function(){return p}}
              .propertyMap?=${this.itemPropertyMap}
              dataProvider="${this.dataProvider}/list-item/${l}"
            >
              ${Is(a||this.templateList[i%e])}
            </sonic-subscriber>
            ${o&&!c?Is(o):Z}
          `}))}
    `}};
/**
   * @license
   * Copyright 2021 Google LLC
   * SPDX-License-Identifier: BSD-3-Clause
   */
function*Er(t,e){if(void 0!==t){let i=0;for(const s of t)yield e(s,i++)}}Ar([ft({type:Object})],Or.prototype,"itemPropertyMap",2),Ar([ft({type:String})],Or.prototype,"templateKey",2),Ar([ft({type:String})],Or.prototype,"idKey",2),Ar([ft()],Or.prototype,"loader",2),Ar([ft()],Or.prototype,"limit",2),Ar([ft()],Or.prototype,"offset",2),Or=Ar([ut("sonic-list")],Or);var Tr=Object.defineProperty,Mr=Object.getOwnPropertyDescriptor,Dr=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Mr(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Tr(e,i,r),r};let Lr=class extends(Le(pt)){constructor(){super(...arguments),this.templates=null,this.lastRequestTime=0,this.key="",this.itemPropertyMap=null,this.cache="default",this.targetRequestDuration=500,this.limit=5,this.lazyBoundsRatio=1,this.offset=0,this.resultCount=0,this.noLazyload=!1,this.loader="inline",this.filteredFields="",this.instanceId=0,this.localStorage="disabled",this.filterPublisher=null,this.filterTimeoutMs=400,this.searchHash="",this.requestId=0,this.isFirstRequest=!0,this.updateFilteredContent=()=>{var t;const e=this.dataProviderExpression.split("?");e.shift();const i=new URLSearchParams(e.join("?")),s=null==(t=this.filterPublisher)?void 0:t.get(),o=this.filteredFields.split(" ");for(const n in s){let t=s[n];Array.isArray(t)&&(t=t.filter((t=>null!==t))),this.filteredFields&&!o.includes(n)||null==t||""===t.toString()||i.set(n,s[n].toString())}const r=i.toString();if(r!=this.searchHash||this.isFirstRequest){this.searchHash=r;for(const t of this.listDataProviders)zt.delete(t);this.listDataProviders=[],clearTimeout(this.filterTimeoutId),this.filterTimeoutId=setTimeout((async()=>{this.storeScrollPosition();const t=this.resultCount;this.props=null,this.requestId++,this.resultCount=t,await zt.getInstance().isLocalStrorageReady,window.requestAnimationFrame((()=>this.next()))}),this.isFirstRequest?0:this.filterTimeoutMs),this.isFirstRequest=!1}},this.dataProviderExpression="",this.idKey="id",this.listDataProviders=[],this.nextHadEvent=!1,this.storedScrollY=0,this.storedScrollX=0}disconnectedCallback(){var t;for(const e of this.listDataProviders)zt.delete(e),this.listDataProviders=[];null==(t=this.filterPublisher)||t.offInternalMutation(this.updateFilteredContent),this.props=null,this.limit=5,this.offset=0,this.resultCount=0,this.searchHash="",this.requestId=0,this.isFirstRequest=!0,this.nextHadEvent=!1,this.publisher.set({}),super.disconnectedCallback()}async connectedCallback(){this.instanceId=Lr.instanceCounter++,this.localStorage=this.getAttribute("localStorage")||this.localStorage,this.filterTimeoutMs=parseInt(this.getAttribute("filterTimeoutMs")||"400"),this.removeAttribute("localStorage"),this.noShadowDom="",this.defferedDebug=this.hasAttribute("debug")||null,this.dataProvider||(this.dataProvider=this.dataProviderExpression||"sonic-queue-"+this.instanceId+"-"+Math.random().toString(36).substring(7)),this.dataProviderExpression||(this.dataProviderExpression=Ci.getAncestorAttributeValue(this.parentElement,"dataProvider")||""),this.storeScrollPosition(),super.connectedCallback(),this.publisher.set({}),this.key=this.getAttribute("key"),await zt.getInstance().isLocalStrorageReady,this.templates||(this.templates=Array.from(this.querySelectorAll("template"))),this.lastRequestTime=(new Date).getTime(),this.configFilter()}configFilter(){var t;const e=this.getAncestorAttributeValue("dataFilterProvider");e?(this.filterPublisher=zt.getInstance().get(e),null==(t=this.filterPublisher)||t.onInternalMutation(this.updateFilteredContent)):this.next()}storeScrollPosition(){this.storedScrollX=window.scrollX,this.storedScrollY=window.scrollY}updated(t){(Math.abs(this.storedScrollX-window.scrollX)>10||Math.abs(this.storedScrollY-window.scrollY)>10)&&window.scrollTo(this.storedScrollX,this.storedScrollY),window.requestAnimationFrame((()=>{(Math.abs(this.storedScrollX-window.scrollX)>10||Math.abs(this.storedScrollY-window.scrollY)>10)&&window.scrollTo(this.storedScrollX,this.storedScrollY)})),super.updated(t)}resetDuration(){this.lastRequestTime=(new Date).getTime()}next(t){var e,i,s;let o=this.offset;const r=(new Date).getTime()-this.lastRequestTime;if(!this.nextHadEvent&&t&&(this.publisher.resultCount=0,this.resultCount=0),this.nextHadEvent=!!t,t){if(this.publisher.lastFetchedData=t.detail.fetchedData,t.detail.requestId<this.requestId)return;if(this.resultCount+=(null==(e=t.detail.props)?void 0:e.length)||0,!t.detail.isFirstLoad||!(null==(i=t.detail.props)?void 0:i.length)||-1==this.dataProviderExpression.indexOf("$offset"))return void(this.publisher.resultCount=this.resultCount)}if(Array.isArray(this.props)){const t=this.props,e=t[t.length-1];o=parseInt(e.offset.toString())+parseInt(e.limit.toString())}else{const e=[];e.resultCount=this.resultCount,e.lastFetchedData=(null==t?void 0:t.detail.fetchedData)||{},this.props=e}r>0&&t&&!this.localStorage&&(this.limit=Math.round(this.limit/r*this.targetRequestDuration)),this.limit<1&&(this.limit=1),this.limit>15&&(this.limit=15);let n=this.dataProviderExpression.replace("$offset",o+"").replace("$limit",this.limit+"");const a=n.split("?");let l=a.shift();const c=new URLSearchParams(a.join("?")),d=null==(s=this.filterPublisher)?void 0:s.get(),p=this.filteredFields.split(" ");for(const u in d)this.filteredFields&&p.includes(u)||null==d[u]||""==d[u]||c.set(u,d[u]);this.searchHash||(this.searchHash=c.toString()),l=l+"?"+c.toString(),n=n+"_item_from_queue_"+this.instanceId,this.listDataProviders.push(n);const h=[...this.props,{id:c.toString()+"/"+this.props.length,dataProvider:n,endPoint:l,offset:o,limit:this.limit}];h.resultCount=this.resultCount,h.lastFetchedData=(null==t?void 0:t.detail.fetchedData)||{},this.props=h,this.lastRequestTime=(new Date).getTime()}render(){if(!Array.isArray(this.props))return Z;this.storeScrollPosition();let t=!this.noLazyload;return 1==this.props.length&&(t=!1),this.style.display="block",V`
      ${Er(this.props,((e,i)=>{var s;const o=0==i?this.templates:null==(s=this.templates)?void 0:s.filter((t=>"no-item"!=t.getAttribute("data-value")));return V`
          <sonic-list
            fetch
            loader="${this.loader}"
            cache=${this.cache}
            displayContents
            lazyBoundsRatio=${this.lazyBoundsRatio}
            ?lazyload=${t}
            localStorage=${this.localStorage}
            requestId=${this.requestId}
            .itemPropertyMap=${this.itemPropertyMap}
            ?debug=${!0===this.defferedDebug}
            @load=${this.next}
            key=${this.key}
            @loading=${this.resetDuration}
            dataProvider="${e.dataProvider}"
            endPoint="${e.endPoint}"
            idKey=${this.idKey}
            .templates=${o}
          >
          </sonic-list>
        `}))}
    `}};Lr.instanceCounter=0,Dr([ft({type:Array})],Lr.prototype,"templates",2),Dr([ft({type:Object})],Lr.prototype,"itemPropertyMap",2),Dr([ft()],Lr.prototype,"cache",2),Dr([ft()],Lr.prototype,"targetRequestDuration",2),Dr([ft()],Lr.prototype,"limit",2),Dr([ft()],Lr.prototype,"lazyBoundsRatio",2),Dr([ft()],Lr.prototype,"offset",2),Dr([ft()],Lr.prototype,"resultCount",2),Dr([ft({type:Boolean})],Lr.prototype,"noLazyload",2),Dr([ft({type:String})],Lr.prototype,"loader",2),Dr([ft()],Lr.prototype,"filteredFields",2),Dr([ft({type:String})],Lr.prototype,"dataProviderExpression",2),Dr([ft({type:String})],Lr.prototype,"idKey",2),Lr=Dr([ut("sonic-queue")],Lr);var jr=Object.defineProperty,Ir=Object.getOwnPropertyDescriptor,zr=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Ir(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&jr(e,i,r),r};let Br=class extends(Le(pt)){constructor(){super(...arguments),this.submitResultKey=null,this.disabled=!1,this.endPoint=null,this.name="",this.value="",this.api=null,this.clickTimeStamp=0,this.submit=async t=>{var e;if(this.disabled)return;if(t instanceof KeyboardEvent&&"Enter"!==t.key)return;t instanceof MouseEvent&&t.stopPropagation();const i=zt.getInstance().get(this.getAncestorAttributeValue("formDataProvider"));if(i.isFormValid=!0,i.invalidateForm(),!i.isFormValid.get())return;this.disabled=!0,i.isFormValid;if(this.hasAttribute("native"))return void this.submitNativeForm();const s=(null==(e=this.getAttribute("method"))?void 0:e.toLocaleLowerCase())||"post",o=this.hasAttribute("sendAsFormData"),r=i.get();delete r.isFormValid;const n=this.getAncestorAttributeValue("headersDataProvider"),a=n?zt.getInstance().get(n):null;let l={};a&&(l=a.get());let c=null;const d=this.getAncestorAttributeValue("dataProvider"),p=this.endPoint||d;_r.show();const h=async()=>{var t,e,i,n,a,d,h,u;if(o)c=await(null==(t=this.api)?void 0:t.submitFormData(p,r,s,l));else switch(s){case"put":c=await(null==(e=this.api)?void 0:e.put(p,r,l));break;case"patch":c=await(null==(i=this.api)?void 0:i.patch(p,r,l));break;case"delete":c=await(null==(n=this.api)?void 0:n.delete(p,r,l));break;case"get":const t=new URLSearchParams;if(r)for(const e in r)t.append(e,r[e]);const s="?"+t.toString();c=await(null==(a=this.api)?void 0:a.get(p+s,l));break;default:c=await(null==(d=this.api)?void 0:d.post(p,r,l))}_r.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"}]};const m=this.getAncestorAttributeValue("clearedDataOnSuccess");m&&m.split(" ").forEach((t=>zt.get(t).set({})));const g=this.hasAttribute("usernameKey")?this.getAttribute("usernameKey"):"username",f=this.hasAttribute("passwordKey")?this.getAttribute("passwordKey"):"password";(null==(u=null==(h=this.api)?void 0:h.lastResult)?void 0:u.ok)&&r[g]&&r[f]&&this.saveCredentials(r[g],r[f]),this.submitResultKey&&(c=Pt.traverse(c,this.submitResultKey.split("."),!0));const v=this.getAncestorAttributeValue("submitResultDataProvider");v&&zt.get(v).set(c),this.disabled=!1,this.dispatchEvent(new CustomEvent("submit",{detail:c,bubbles:!0,composed:!0}))},u=(null==a?void 0:a.needsCaptchaValidation.get())?a:i.needsCaptchaValidation.get()?i:null;if(u){u.captchaMethod=s,u.captchaAction=(null==d?void 0:d.split("?")[0])??this.getAncestorAttributeValue("formDataProvider")??"submit",u.captchaToken="request_token";const t=e=>{e&&"request_token"!=e&&(h(),u.captchaToken.offAssign(t))};u.captchaToken.onAssign(t)}else h()}}connectedCallback(){this.hasAttribute("onClick")&&this.addEventListener("click",this.submit),this.hasAttribute("onEnterKey")&&this.addEventListener("keydown",this.submit),super.connectedCallback(),this.api=new qt(this.getApiConfiguration())}submitNativeForm(){const t=Ci.getClosestForm(this);if(!t)return;const e=this.getAncestorAttributeValue("formDataProvider"),i=zt.get(e).get();for(const o in i){if("isFormValid"==o)continue;let e=t.querySelector('input[name="'+o+'"], select[name="'+o+'"], textarea[name="'+o+'"]');e||(e=document.createElement("input"),e.type="hidden",e.name=o,t.appendChild(e));let s=i[o];Array.isArray(s)&&(s=s.join(",")),"checkbox"===e.type||"radio"===e.type?s&&(e.checked=!0):e.value=s}const s=document.createElement("input");s.name=this.name,s.style.display="none",s.value=this.value,s.type="submit",t.appendChild(s),s&&s.click()}async saveCredentials(t,e){if("PasswordCredential"in window){const i=new window.PasswordCredential({id:t,password:e});await navigator.credentials.store(i)}}render(){return V`<div ?data-disabled=${this.disabled}><slot></slot></div>`}};Br.styles=l`
    [data-disabled] {
      opacity: 0.3;
      pointer-events: none;
      user-select: none;
    }
  `,zr([ft({type:String})],Br.prototype,"submitResultKey",2),zr([ft({type:Boolean})],Br.prototype,"disabled",2),zr([ft({type:String})],Br.prototype,"endPoint",2),zr([ft()],Br.prototype,"name",2),zr([ft()],Br.prototype,"value",2),Br=zr([ut("sonic-submit")],Br);var Rr=Object.defineProperty,Nr=Object.getOwnPropertyDescriptor,Fr=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Nr(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Rr(e,i,r),r};let qr=class extends(Os(pt)){constructor(){super(...arguments),this.templateValueAttribute="data-route",this._location=document.location.href.replace(document.location.origin,"")}createRenderRoot(){return this}connectedCallback(){mi.onChange(this),super.connectedCallback()}disconnectedCallback(){mi.offChange(this),super.disconnectedCallback()}set location(t){this._location=t,this.requestUpdate()}get location(){return this._location}render(){const t=[];for(const e of this.templatePartsList){const i=e.getAttribute(this.templateValueAttribute)||"";if(new RegExp(i).test(this.location))t.push(e);else try{new _i("(/)*"+i+"*").match(this.location)&&(e.setAttribute("mode","patternMatching"),t.push(e))}catch(tO){-1!=this.location.indexOf(i.replace(document.location.origin,""))&&t.push(e)}}if(0==t.length){this.fallBackRoute&&this.isConnected&&(document.location.href=this.fallBackRoute);const e=this.templatePartsList.find((t=>t.hasAttribute("data-fallback")));e&&t.push(e)}return V`${Ie(t,((t,e)=>e+(new Date).getTime()),(t=>{var e;if(t.title&&(document.title=t.title),t.hasAttribute("dataProviderExpression")){let i="";const s=t.getAttribute("dataProviderExpression")||"";if("patternMatching"==t.getAttribute("mode")){const e=new _i("(/)*"+(t.getAttribute(this.templateValueAttribute)||"")+"*");i=new _i(s).stringify(e.match(this.location))}else{const o=new RegExp(t.getAttribute(this.templateValueAttribute)||""),r=(this.location+"").match(o);r&&(i=(null==(e=r.shift())?void 0:e.replace(o,s))||"")}return V`<div
            style="display:contents"
            dataProvider="${i}"
          >
            ${Is(t)}
          </div>`}return Is(t)}))}`}};Fr([ft({type:String})],qr.prototype,"fallBackRoute",2),Fr([ft()],qr.prototype,"location",1),qr=Fr([ut("sonic-router")],qr);var Hr=Object.defineProperty,Ur=Object.getOwnPropertyDescriptor;let Vr=class extends(Le(pt)){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.hasAttribute("onAdded"))return void mi.changeFromComponent(this);if(!this.props)return;const t=this.getAttribute("onData").split("."),e=Pt.traverse(this.props,t);!e||Pt.isObject(e)&&e||mi.changeFromComponent(this)}};Vr=((t,e,i,s)=>{for(var o,r=s>1?void 0:s?Ur(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Hr(e,i,r),r})([ut("sonic-redirect")],Vr);var Wr=Object.defineProperty,Zr=Object.getOwnPropertyDescriptor;let Yr=class extends pt{createRenderRoot(){return this}render(){return V`<slot></slot>`}};Yr=((t,e,i,s)=>{for(var o,r=s>1?void 0:s?Zr(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Wr(e,i,r),r})([ut("sonic-scope")],Yr);var Gr=Object.defineProperty,Kr=Object.getOwnPropertyDescriptor,Qr=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Kr(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Gr(e,i,r),r};let Xr=class extends(Le(pt)){constructor(){super(...arguments),this.text="Example"}render(){return V`<div>${this.text}</div>`}};Qr([ft()],Xr.prototype,"text",2),Xr=Qr([ut("sonic-example")],Xr);const Jr={checkbox:{tagName:"sonic-checkbox"},date:{tagName:"sonic-input",attributes:{type:"date"}},fieldset:{tagName:"sonic-fieldset",nodes:[{libraryKey:"formLayout"}],contentElementSelector:"sonic-form-layout"},managed_file:{tagName:"sonic-input",attributes:{variant:"ghost",type:"file"}},password:{tagName:"sonic-input",attributes:{type:"password"}},radio:{tagName:"sonic-radio"},select:{tagName:"sonic-select"},textarea:{tagName:"sonic-textarea"},textfield:{tagName:"sonic-input",attributes:{type:"text"}},hidden:{tagName:"sonic-input",attributes:{type:"hidden"}},button:{tagName:"sonic-button"},form:{tagName:"sonic-submit",attributes:{onEnterKey:!0}},submit:{tagName:"sonic-submit",attributes:{onClick:!0},contentElementSelector:"sonic-button",nodes:[{libraryKey:"button",attributes:{type:"success"},nodes:[{tagName:"sonic-icon",attributes:{name:"check",slot:"prefix"}}]}]},email:{tagName:"sonic-input",attributes:{type:"email"}},formItemContainer:{tagName:"div",attributes:{class:"form-item-container"}},formLayout:{tagName:"sonic-form-layout"},formActions:{tagName:"sonic-form-actions"},passwordHelper:{tagName:"sonic-password-helper"},sameValueHelper:{tagName:"sonic-same-value-helper"},divider:{tagName:"sonic-divider"}};class tn{async transform(t,e){if(this.sduiDescriptor=t,this.sduiDescriptor.library)for(const i in e.library)this.sduiDescriptor.library[i]=e.library[i];for(const i of e.transforms)this.transformAction(i)}transformAction(t){const e=this.getNodesMatchingPatterns(t.patterns,this.sduiDescriptor);this[t.action](t,e)}getNodesMatchingPatterns(t,e){if(!t)return[];if(!e)return[];const i=e.nodes;if(!i)return[];let s=[],o=0;for(const r of t)for(const t of i)this.nodeMatchesPattern(r,t)&&s.push({parent:e,child:t,index:o}),s=s.concat(this.getNodesMatchingPatterns([r],t)),o++;return s}stringMatchesExpression(t,e){return!e||t&&t.match(e)}nodeMatchesPattern(t,e){const i=t,s=e,o=["libraryKey","innerHTML","prefix","suffix","markup"];for(const a of o)if(!this.stringMatchesExpression(s[a],i[a]))return!1;const r=t.attributes,n=e.attributes;if(r&&!n)return!1;if(r)for(const a in r)if(!n||!this.stringMatchesExpression(n[a],r[a]))return!1;return!0}unwrap(t,e){var i,s;for(const o of e)null==(i=o.parent.nodes)||i.splice(o.parent.nodes.indexOf(o.child),1),o.child.nodes&&(null==(s=o.parent.nodes)||s.splice(o.parent.nodes.indexOf(o.child),0,...o.child.nodes))}wrap(t,e){var i,s,o,r,n,a;const l={...t.ui};l.nodes||(l.nodes=[]);let c=0;for(const p of e)null==(i=l.nodes)||i.push(p.child),c>0&&(null==(s=p.parent.nodes)||s.splice(p.parent.nodes.indexOf(p.child),1)),c++;const d=null==(r=null==(o=e[0])?void 0:o.parent.nodes)?void 0:r.indexOf(e[0].child);d&&(null==(n=e[0].parent.nodes)||n.splice(d,1),null==(a=e[0].parent.nodes)||a.splice(d,0,l))}move(t,e){var i,s;for(const o of e){null==(i=o.parent.nodes)||i.splice(o.parent.nodes.indexOf(o.child),1);let e=[];t.after&&(e=this.getNodesMatchingPatterns([t.after],this.sduiDescriptor)),t.before&&(e=this.getNodesMatchingPatterns([t.before],this.sduiDescriptor));const r=e[0];r&&(null==(s=r.parent.nodes)||s.splice(r.parent.nodes.indexOf(r.child)+(t.after?1:0),0,o.child))}}remap(t,e){var i,s,o;for(const r of e){const e={...t.ui};e.attributes||(e.attributes={});const n=r.child.attributes;if(n)for(const t in n)Object.prototype.hasOwnProperty.call(e.attributes,"key")||(e.attributes[t]=n[t]);const a=["libraryKey","innerHTML","prefix","suffix","markup"],l=r.child,c=e;for(const t of a)!Object.prototype.hasOwnProperty.call(e,t)&&l[t]&&(c[t]=l[t]);e.nodes||(e.nodes=[]);const d=r.child.nodes;if(d)for(const t of d)e.nodes.push(t);const p=(null==(i=r.parent.nodes)?void 0:i.indexOf(r.child))||-1;-1!=p&&(null==(s=r.parent.nodes)||s.splice(p,1),null==(o=r.parent.nodes)||o.splice(p,0,e))}}delete(t,e){var i;for(const s of e)null==(i=s.parent.nodes)||i.splice(s.parent.nodes.indexOf(s.child),1)}insert(t,e){var i;const s=t.after?"after":t.before?"before":"in";e=[],t.after?e=this.getNodesMatchingPatterns([t.after],this.sduiDescriptor):t.before?e=this.getNodesMatchingPatterns([t.before],this.sduiDescriptor):t.in&&(e=this.getNodesMatchingPatterns([t.in],this.sduiDescriptor));const o=e[0];o&&("in"==s?(o.child.nodes||(o.child.nodes=[]),o.child.nodes.push({...t.ui})):null==(i=o.parent.nodes)||i.splice(o.parent.nodes.indexOf(o.child)+("after"==s?1:0),0,{...t.ui}))}}var en=Object.defineProperty,sn=Object.getOwnPropertyDescriptor,on=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?sn(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&en(e,i,r),r};let rn=class extends(Es(Ls(pt))){constructor(){super(...arguments),this.sduiDescriptor={}}connectedCallback(){this.noShadowDom="",this.displayContents=!0,this.isFetchEnabled=this.hasAttribute("fetch"),super.connectedCallback()}willUpdate(t){null==this.props&&(this.sduiDescriptor={});{const t=this.sduiKey?this.props[this.sduiKey]:this.props;if(this.sduiDescriptor==t)return;this.sduiDescriptor=t,this.updateContents()}super.willUpdate(t)}async updateContents(){if(!this.sduiDescriptor)return;const t={};Object.assign(t,Jr,this.sduiDescriptor.library),this.sduiDescriptor.library=t,this.loadAssets(),await this.loadLibrary(),await this.transformSDUIDescriptor(),this.parseRootNodes()}removeChildren(){for(;[...this.children].filter((t=>"SLOT"!=t.nodeName)).length>0;)this.removeChild(this.children[0])}loadAssets(){if(this.sduiDescriptor){if(this.sduiDescriptor.js)for(const t of this.sduiDescriptor.js)Ci.loadJS(t);if(this.sduiDescriptor.css)for(const t of this.sduiDescriptor.css)Ci.loadCSS(t)}}async transformSDUIDescriptor(){if(!this.hasAttribute("transformation"))return;const t=await fetch(this.getAttribute("transformation")),e=await t.json(),i=new tn;await i.transform(this.sduiDescriptor,e)}async loadLibrary(){if(!this.hasAttribute("library"))return;const t=await fetch(this.getAttribute("library")),e=await t.json();this.sduiDescriptor.library=e}parseRootNodes(){if(this.removeChildren(),!this.sduiDescriptor)return;let t=this.sduiDescriptor.nodes;t||(t=[]);const e={tagName:"sonic-toast-message-subscriber",attributes:{}};this.messagesKey&&(e.attributes={subDataProvider:this.messagesKey}),t.push(e),t.forEach((t=>this.appendChild(this.parseChild(t))))}parseChild(t){const e=t.tagName||"div";let{element:i,contentElement:s}=this.handleLibrary(t,e);if(this.handleAttributes(t,i),i=this.handleMarkup(t,i),s||(s=i),this.handleChildNodes(t,s,i),this.handleInnerHTML(t,s),t.prefix||t.suffix){return this.handlePrefixSuffix(t,i)}return i}handlePrefixSuffix(t,e){const i=document.createElement("div");return i.innerHTML=(t.prefix||"")+e.outerHTML+(t.suffix||""),i.style.display="contents",i}handleChildNodes(t,e,i){if(t.nodes){const s=t.nodes;for(const t of s){const s=this.parseChild(t);let o=e;if(t.parentElementSelector&&(o=i.querySelector(t.parentElementSelector)||e),o.shadowRoot)o.shadowRoot.appendChild(s);else if("template"==o.tagName.toLocaleLowerCase()){o.content.appendChild(s)}else o.appendChild(s)}}}handleLibrary(t,e){let i,s;if(t.libraryKey&&this.sduiDescriptor.library){i=this.parseChild(this.sduiDescriptor.library[t.libraryKey]||{tagName:"div"});const e=(this.sduiDescriptor.library[t.libraryKey]||{}).contentElementSelector;e&&(s=i.querySelector(e))}else i=document.createElement(e);return{element:i,contentElement:s}}handleAttributes(t,e){const i=t.attributes;for(const s in i){const t=i[s],o=Oi.isObject(t)?JSON.stringify(t):t;e.setAttribute(s,o)}}handleMarkup(t,e){return t.markup&&((e=document.createElement("div")).style.display="contents",e.innerHTML=t.markup),e}handleInnerHTML(t,e){var i;if(t.innerHTML)if(-1!=t.innerHTML.indexOf("wording_")){const s=this.getAncestorAttributeValue("wordingProvider");null==(i=this.api)||i.post(s,{labels:[t.innerHTML.substring(8)]}).then((t=>{e&&(e.innerHTML+=t)}))}else e&&(e.innerHTML+=t.innerHTML)}};on([ft()],rn.prototype,"sduiKey",2),on([ft()],rn.prototype,"messagesKey",2),rn=on([ut("sonic-sdui")],rn);var nn=Object.defineProperty,an=Object.getOwnPropertyDescriptor,ln=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?an(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&nn(e,i,r),r};let cn=class extends(Ls(pt)){constructor(){super(...arguments),this._composition={},this.listeners=[]}get composition(){return this._composition}set composition(t){this._composition=t,this.updateComposition()}connectedCallback(){super.connectedCallback(),this.updateComposition()}disconnectedCallback(){this.removePublisherListeners(),super.disconnectedCallback()}updateComposition(){this.removePublisherListeners(),this.publisher&&(this.publisher.set({}),this.parseComposition(this.composition,this.publisher))}removePublisherListeners(){const t=this.listeners;this.listeners=[],t.forEach((t=>{this.publisher.offAssign(t.subscriber)}))}parseComposition(t,e){if(t)for(const i in t){const s=t[i];if("string"==typeof s){const t=s.split("."),o=t.shift();if(!o)continue;let r=Ti.get(o);r=Oi.traverse(r,t);const n={publisher:r,subscriber:t=>{e[i]=t}};this.listeners.push(n),r.onAssign(n.subscriber),e._proxies_.set(i,r)}else{this.publisher[i]={};const t=new jt({},e);e._proxies_.set(i,t);const o={publisher:t,subscriber:t=>{e[i]=t}};this.listeners.push(o),t.onAssign(o.subscriber),this.parseComposition(s,t)}}}render(){return V`<slot></slot>`}};cn.styles=[l`
      :host {
        display: contents;
      }
    `],ln([ft({type:Object})],cn.prototype,"composition",1),cn=ln([ut("sonic-mix")],cn);var dn=Object.defineProperty,pn=Object.getOwnPropertyDescriptor;let hn=class extends(Ls(pt)){connectedCallback(){this.setAttribute("subDataProvider",this.getAttribute("key")),super.connectedCallback()}render(){return"object"==typeof this.props||void 0===this.props?V`<slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>`:V`${_e(this.props.toString())}<slot name="prefix"></slot><slot></slot
      ><slot name="suffix"></slot>`}};hn=((t,e,i,s)=>{for(var o,r=s>1?void 0:s?pn(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&dn(e,i,r),r})([ut("sonic-value")],hn);var un=Object.defineProperty,mn=Object.getOwnPropertyDescriptor,gn=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?mn(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&un(e,i,r),r};let fn=class extends pt{render(){return this.key?V`${Ae(this.key,this.unsafeHTML)}`:Z}};gn([ft({type:String})],fn.prototype,"key",2),gn([ft({type:Boolean})],fn.prototype,"unsafeHTML",2),fn=gn([ut("sonic-t")],fn);class vn{static fixBlankLink(t){const e="undefined"==typeof require||"object"!=typeof process?null:require("electron");"_blank"==t.target&&t.addEventListener("click",(()=>{null==e||e.shell.openExternal(t.href)}))}}var yn=Object.defineProperty,bn=Object.getOwnPropertyDescriptor,wn=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?bn(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&yn(e,i,r),r};let xn=class extends pt{constructor(){super(...arguments),this.href="",this._location="",this.ariaLabel=null,this.autoActive="partial",this._target=null,this.pushState=null}get location(){return this._location}set location(t){this._location=t,mi.updateComponentActiveState(this)}connectedCallback(){this.href&&0!=this.href.indexOf("http")&&(mi.onChange(this),this.location=document.location.href.replace(document.location.origin,"")),this.addEventListener("keypress",(t=>{var e,i;"Enter"===t.key&&(null==(i=null==(e=this.shadowRoot)?void 0:e.querySelector("a"))||i.click())})),this.setFocusable(),super.connectedCallback()}setFocusable(){this.href?this.setAttribute("tabIndex","0"):this.removeAttribute("tabIndex")}disconnectedCallback(){mi.offChange(this),super.disconnectedCallback()}set target(t){this._target=t,vn.fixBlankLink(this),this.requestUpdate()}get target(){return this._target}handlePushState(t){t.preventDefault(),mi.changeFromComponent(this)}updated(t){t.has("href")&&this.setFocusable()}render(){return this.href?V`
      <a
        href="${this.href}"
        aria-label=${this.ariaLabel||Z}
        target=${li(this.target)}
        @click=${this.pushState?this.handlePushState:null}
      >
        <slot></slot>
      </a>
    `:V`<slot></slot>`}};xn.styles=[l`
      a {
        color: inherit;
        text-decoration: none;
        display: contents;
      }
    `],wn([ft({type:String})],xn.prototype,"href",2),wn([ft({type:String,attribute:"data-aria-label"})],xn.prototype,"ariaLabel",2),wn([ft({type:String})],xn.prototype,"autoActive",2),wn([ft({type:String})],xn.prototype,"target",1),wn([ft({type:Boolean})],xn.prototype,"pushState",2),xn=wn([ut("sonic-link")],xn);var _n=Object.defineProperty,kn=Object.getOwnPropertyDescriptor,$n=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?kn(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&_n(e,i,r),r};let Pn=class extends pt{constructor(){super(...arguments),this.max=100,this.invert=!1,this.type="default"}render(){return V`
      <progress value=${li(this.value)} max=${this.max}></progress>
      <div class="slot-container">
        <slot></slot>
        <slot name="remaining"></slot>
      </div>
    `}};Pn.styles=[ds,l`
      :host {
        --sc-progress-bg: var(
          --sc-input-bg,
          var(--sc-base-100, rgba(0, 0, 0, 0.07))
        );
        --sc-progress-color: var(--sc-base-content, #000);
        --sc-progress-height: 0.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);
      }

      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);
      }

      /* Indeterminate */
      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%;
        }
      }

      /* COLOR TYPES */
      :host([type="warning"]) {
        --sc-progress-color: var(--sc-warning, var(--sc-base-content, #000));
      }
      :host([type="danger"]) {
        --sc-progress-color: var(--sc-danger, var(--sc-base-content, #000));
      }
      :host([type="info"]) {
        --sc-progress-color: var(--sc-info, var(--sc-base-content, #000));
      }
      :host([type="success"]) {
        --sc-progress-color: var(--sc-success, var(--sc-base-content, #000));
      }

      :host([type="invert"]) {
        --sc-progress-bg: rgba(190, 190, 190, 0.125);
        --sc-progress-color: var(--sc-base, #fff);
      }

      :host([invert]) {
        --sc-progress-bg: rgba(190, 190, 190, 0.125);
      }

      :host([type="default"][invert]) {
        --sc-progress-color: var(--sc-base, #fff);
      }

      slot[name="remaining"] {
        font-weight: var(--sc-font-weight-base, 400);
        font-size: 0.85em;
        margin-top: 0.5em;
      }
      slot[name="remaining"]::slotted(*) {
        margin-left: auto;
      }

      slot:not([name]) {
        color: var(--sc-progress-color);
      }

      .slot-container {
        display: flex;
        justify-content: space-between;
        gap: 0.5em;
        margin-top: 0.15em;
      }
    `],$n([ft({type:Number})],Pn.prototype,"value",2),$n([ft({type:Number})],Pn.prototype,"max",2),$n([ft({type:Boolean})],Pn.prototype,"invert",2),$n([ft({type:String,reflect:!0})],Pn.prototype,"type",2),$n([ft({type:String,reflect:!0})],Pn.prototype,"size",2),Pn=$n([ut("sonic-progress")],Pn);const Sn=l`
  .password-toggle {
    color: var(--sc-input-c);
    font-size: var(--sc-input-fs);
    cursor: pointer;
    margin-right: calc(-0.5 * var(--sc-input-px));
  }

  :host([inlineContent]) .has-suffix .password-toggle {
    margin-right: 0;
  }
`,Cn=l`
  :host {
    --sc-label-fs: var(--sc-_fs, 1rem);
    --sc-label-fw: var(--sc-label-font-weight, 500);
  }
  label {
    font-size: var(--sc-label-fs);
    font-weight: var(--sc-label-fw);
    line-height: 1.2;
  }
  .form-label {
    margin-bottom: 0.22em;
    display: block;
  }
`,An=l`
  .form-description {
    color: var(--sc-base-400, var(--sc-base-content, #000));
    font-size: 0.85em;
    margin-top: 0.2em;
    display: block;
  }
`,On=l`
  * {
    box-sizing: border-box;
  }

  :host {
    --sc-input-height: var(--sc-form-height, 2.5em);
    --sc-input-c: var(--sc-input-color, var(--sc-base-content, #000));
    --sc-input-b-width: var(--sc-form-border-width);
    --sc-input-b-color: var(
      --sc-input-border-color,
      var(--sc-base-content, #000)
    );

    --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.55em;
    --sc-input-px: clamp(0.3em, 8%, 1.1em);

    --sc-input-background: var(--sc-input-bg);
    --sc-input-addon-c: var(--sc-input-addon-color, var(--sc-base, #fff));
    --sc-input-addon-bg: var(--sc-input-c);
  }

  .form-element {
    display: block;
    flex-grow: 1;
    width: 100%;

    line-height: 1.1;
    color: var(--sc-input-c);
    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-background);
    border: var(--sc-input-b-width) solid
      var(--sc-input-b-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);

    transition: border-color 0.15s ease-in-out, color 0.15s ease-in-out,
      box-shadow 0.15s ease-in-out;
    min-height: var(--sc-input-height);
  }

  .form-control {
    display: flex;
    width: 100%;
  }

  /*Suffix*/
  :host(:not([inlineContent])) .has-suffix slot[name="suffix"],
  :host(:not([inlineContent])) .has-prefix slot[name="prefix"] {
    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;
    border: var(--sc-input-b-width) solid transparent;
    padding-left: clamp(0.25em, 3%, calc(0.33 * var(--sc-input-px)));
    padding-right: clamp(0.25em, 3%, calc(0.33 * 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-addon-bg);
    color: var(--sc-input-addon-c);
    /*margin-right: calc(-1 * var(--sc-input-b-width));
    border: none;*/
  }

  :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-addon-bg);
    color: var(--sc-input-addon-c);
    /*margin-left: calc(-1 * var(--sc-input-b-width));
    border: none;*/
  }

  :host(:not([inlineContent])[disabled]) .has-suffix slot[name="suffix"],
  :host(:not([inlineContent])[disabled]) .has-prefix slot[name="prefix"] {
    opacity: 0.43;
  }

  :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;
  }

  slot[name="suffix"]::slotted(sonic-icon),
  slot[name="prefix"]::slotted(sonic-icon) {
    font-size: 1.2em;
  }

  /*InlineCONTENT */

  .form-element > slot,
  .form-element .form-element {
    all: unset;
  }

  :host([inlineContent]) .form-element {
    display: flex;
    align-items: center;
    gap: 0.35em;
    min-height: var(--sc-form-height, 2.5em);
  }

  :host([inlineContent]) .form-element .form-element {
    appearance: none;
    background: transparent;
    border: none;
    padding: 0;
    display: block;
    width: 50%;
    min-width: 0;
    flex: 1 1 auto;
    height: auto;
    min-height: auto;
    border-radius: 0;
  }
  :host([inlineContent]) slot[name="prefix"]::slotted(*),
  :host([inlineContent]) slot[name="suffix"]::slotted(*) {
    display: block;
    flex: 0 0 auto;
    max-width: 100%;
    max-width: 100%;
    white-space: nowrap;
  }

  :host([inlineContent]) .has-suffix slot[name="suffix"] {
    margin-right: calc(-0.5 * var(--sc-input-px));
  }
  :host([inlineContent]) .has-prefix slot[name="prefix"] {
    margin-left: calc(-0.5 * var(--sc-input-px));
  }

  :host([inlineContent]) slot[name="suffix"]::slotted(*) {
    margin-left: auto;
  }

  :host([inlineContent]) .no-suffix slot[name="suffix"],
  :host([inlineContent]) .no-prefix slot[name="prefix"] {
    display: none;
  }

  /* :host([inlineContent]) .input {

  }*/
  /*Disabled */
  :host([disabled]) .form-control {
    cursor: not-allowed;
  }

  :host([variant="ghost"]) .form-element {
    --sc-input-bg: transparent;
  }

  /*Disbaled*/
  :host([disabled]) .form-element {
    pointer-events: none;
    opacity: 0.43;
    /* border-color: transparent;*/
  }
  :host([disabled]) .select-chevron {
    display: none;
    /* border-color: transparent;*/
  }

  /*PLACEHOLDER*/
  ::placeholder {
    color: inherit;
    opacity: 0.6;
  }

  :host([placehoderAsLabel]) ::placeholder {
    opacity: 1;
  }

  :focus::placeholder {
    opacity: 0 !important;
  }

  /*HOVER*/
  :host(:not([disabled])) .form-element:hover,
  .form-element:focus-visible,
  .form-element:focus {
    filter: brightness(0.97);
    outline: none;
  }

  .form-label {
    margin-bottom: 0.22em;
    display: block;
  }

  /*Utilitaires*/
  .hidden {
    display: none;
  }
  .contents {
    display: contents;
  }

  /*ERROR*/
  :host([error]) {
    --sc-input-b-color: var(--sc-danger, var(--sc-base-content, #000));
  }

  :host input:visited {
    display: none;
  }

  :host([touched][required]) :not(:focus):invalid {
    --sc-input-b-color: var(--sc-danger, var(--sc-base-content, #000));
    --sc-input-c: var(--sc-danger, var(--sc-base-content, #000));
  }

  :host([touched][required]) :not(:focus):invalid + .select-chevron {
    --sc-input-c: var(--sc-danger, var(--sc-base-content, #000));
  }

  /*VALID*/
  :host([touched][required]) :not([value=""]):not(:focus):valid {
    --sc-input-b-color: var(--sc-success, var(--sc-base-content, #000));
    --sc-input-c: var(--sc-success, var(--sc-base-content, #000));
  }

  :host([touched][required]) :not(:focus):valid + .select-chevron {
    --sc-input-c: var(--sc-success, var(--sc-base-content, #000));
  }

  /*Input COLOR*/
  :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);
  }

  /*Input Image*/
  :host([type="image"]) .form-element {
    padding: 0;
    border: none;
  }

  /*Input reset & image*/
  input[type="reset"],
  input[type="submit"] {
    cursor: pointer;
  }

  /*Input search*/
  :host([type="search"]) {
    appearance: none !important;
  }

  input[type="search"]::-webkit-search-cancel-button {
    appearance: none;
    cursor: pointer;
    height: 0.65em;
    width: 0.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;
  }

  /* Text align */
  :host([align="center"]) .form-element {
    text-align: center;
  }
  :host([align="left"]) .form-element {
    text-align: left;
  }
  :host([align="right"]) .form-element {
    text-align: right;
  }

  /* No arrows ion input Number */
  :host([noAppearance]) input[type="number"]::-webkit-outer-spin-button,
  :host([noAppearance]) input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }

  :host([noAppearance]) input[type="number"] {
    -moz-appearance: textfield !important;
  }

  /*type color "default" | "success" | "error" | "warning"  | "info" */
  :host([status="success"]) {
    --sc-input-b-color: var(--sc-success, var(--sc-base-content, #000));
    --sc-input-c: var(--sc-success, var(--sc-base-content, #000));
    --sc-input-addon-bg: var(--sc-success, var(--sc-base-content, #000));
    --sc-input-addon-color: var(--sc-success-content, var(--sc-base, #fff));
  }
  :host([status="error"]) {
    --sc-input-b-color: var(--sc-danger, var(--sc-base-content, #000));
    --sc-input-c: var(--sc-danger, var(--sc-base-content, #000));
    --sc-input-addon-bg: var(--sc-danger, var(--sc-base-content, #000));
    --sc-input-addon-color: var(--sc-danger-content, var(--sc-base, #fff));
  }
  :host([status="warning"]) {
    --sc-input-b-color: var(--sc-warning);
    --sc-input-c: var(--sc-warning, var(--sc-base-content, #000));
    --sc-input-addon-bg: var(--sc-warning, var(--sc-base-content, #000));
    --sc-input-addon-color: var(--sc-warning-content, var(--sc-base, #fff));
  }
  :host([status="info"]) {
    --sc-input-b-color: var(--sc-info, var(--sc-base-content, #000));
    --sc-input-c: var(--sc-info, var(--sc-base-content, #000));
    --sc-input-addon-bg: var(--sc-info, var(--sc-base-content, #000));
    --sc-input-addon-color: var(--sc-info-content, var(--sc-base, #fff));
  }
  :host([status="primary"]) {
    --sc-input-b-color: var(--sc-primary, var(--sc-base-content, #000));
    --sc-input-c: var(--sc-primary, var(--sc-base-content, #000));
    --sc-input-addon-bg: var(--sc-primary, var(--sc-base-content, #000));
    --sc-input-addon-color: var(--sc-primary-content, var(--sc-base, #fff));
  }
`
/**
   * @license
   * Copyright 2018 Google LLC
   * SPDX-License-Identifier: BSD-3-Clause
   */,En=de(class extends pe{constructor(t){var e;if(super(t),t.type!==le||"class"!==t.name||(null==(e=t.strings)?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 i,s;if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null==(i=this.nt)?void 0:i.has(t))&&this.st.add(t);return this.render(e)}const o=t.element.classList;for(const r of this.st)r in e||(o.remove(r),this.st.delete(r));for(const r in e){const t=!!e[r];t===this.st.has(r)||(null==(s=this.nt)?void 0:s.has(r))||(t?(o.add(r),this.st.add(r)):(o.remove(r),this.st.delete(r)))}return W}});var Tn=Object.defineProperty,Mn=Object.getOwnPropertyDescriptor,Dn=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Mn(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Tn(e,i,r),r};let Ln=class extends(Ss(rs(Le(pt)))){constructor(){super(...arguments),this.readonly=!1,this.inlineContent=!1,this.disableInlineContentFocus=!1,this.showPasswordToggle=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1,this.isPassword=!1}connectedCallback(){if(super.connectedCallback(),this.hasSlotOrProps(),this.hasAttribute("sameValueAs")){this.sameValueAsName=this.getAttribute("sameValueAs"),this.sameValueAsHandle=t=>this.pattern=this.escapeRegExp(t);const t=this.getFormPublisher();if(!t)return;t[this.sameValueAsName].onAssign(this.sameValueAsHandle)}"password"==this.type&&(this.isPassword=!0,this.showPasswordToggle=!0,this.inlineContent=!0)}disconnectedCallback(){if(super.disconnectedCallback(),this.hasAttribute("sameValueAs")&&this.sameValueAsName){const t=this.getFormPublisher();if(!t)return;t[this.sameValueAsName].offAssign(this.sameValueAsHandle)}}escapeRegExp(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}willUpdate(t){this.hasSlotOrProps(),super.willUpdate(t)}setSelectionRange(t,e){this.input.setSelectionRange(t,e)}hasSlotOrProps(){var t,e,i,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==(i=this.slotSuffixNodes)?void 0:i.length),this.hasPrefix=!!(null==(s=this.slotPrefixNodes)?void 0:s.length)}inlineContentFocus(){var t;this.inlineContent&&!this.disableInlineContentFocus&&(null==(t=this.input)||t.focus())}handleChange(t){this.hasAttribute("inputDelayMs")?(this.changeTimeoutId&&clearTimeout(this.changeTimeoutId),this.changeTimeoutId=setTimeout((()=>super.handleChange(t)),parseInt(this.getAttribute("inputDelayMs")))):super.handleChange(t)}togglePasswordVisibility(t){t.preventDefault(),t.stopPropagation(),this.isPassword=!this.isPassword,this._type=this.isPassword?"password":"text"}render(){const t={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix,"no-suffix":!this.hasSuffix,"no-prefix":!this.hasPrefix};return V`
      <label for="${this.id||"form-element"}" class="${this.hasLabel?"form-label":"hidden"}"
        >${this.label?_e(this.label):""}<slot
          name="label"
          @slotchange=${this.hasSlotOrProps}
        ></slot
      ></label>

      <div @click=${this.inlineContentFocus} class="form-control ${En(t)}">
        <div part="content" class="${this.inlineContent?"form-element form-element-wrapper":"contents"}">
            <slot name="prefix" @slotchange=${this.hasSlotOrProps}></slot>
            <input
              data-form-element
              part="input"
              id=${li(this.id||"form-element")}
              part="input"
              class="form-element input"
              @input=${this.handleChange}
              @blur=${this.handleBlur}
              type=${this.type}
              disabled=${li(this.disabled)}
              ?readonly=${this.readonly}
              ?autofocus=${this.autofocus}
              list=${li(this.list)}
              tabindex=${li(this.tabindex)}
              pattern=${li(this.pattern)}
              min=${li(this.min)}
              max=${li(this.max)}
              step=${li(this.step)}
              src=${li(this.src)}
              minlength=${li(this.minlength)}
              maxlength=${li(this.maxlength)}
              placeholder=${li(this.placeholder)}
              ?required=${this.required}
              autocomplete=${li(this.autocomplete)}
              aria-label=${li(this.ariaLabel)}
              aria-labelledby=${li(this.ariaLabelledby)}
              .name=${this.name}
              .value=${this.value}
            />
              ${this.showPasswordToggle?V`<sonic-button
                      shape="circle"
                      class="password-toggle"
                      @click=${this.togglePasswordVisibility}
                      data-aria-label="Toggle password visibility"
                      variant="unstyled"
                    >
                      <sonic-icon
                        library="heroicons"
                        name=${this.isPassword?"eye":"eye-slash"}
                      ></sonic-icon>
                    </sonic-button>`:""}
            <slot name="suffix" @slotchange=${this.hasSlotOrProps}></slot>
          </div>
        </div>

        <!-- le slot ne doit pas avoir d'espace-->
        <slot
          name="description"
          @slotchange=${this.hasSlotOrProps}
          class="${this.hasDescription?"form-description":"hidden"}"
        >${this.description?V`${_e(this.description)}`:Z}</slot>
        <slot name="list"></slot>
      </div>
    `}};Ln.styles=[ds,On,Cn,An,Sn,l`
      :host([type="hidden"]) {
        appearance: none !important;
        display: none !important;
      }
      :host > .form-control {
        position: relative;
      }
    `],Dn([ft({type:String,reflect:!0})],Ln.prototype,"size",2),Dn([ft({type:String})],Ln.prototype,"list",2),Dn([ft({type:String})],Ln.prototype,"placeholder",2),Dn([ft({type:String})],Ln.prototype,"pattern",2),Dn([ft({type:String})],Ln.prototype,"min",2),Dn([ft({type:String})],Ln.prototype,"max",2),Dn([ft({type:Boolean})],Ln.prototype,"readonly",2),Dn([ft({type:Number})],Ln.prototype,"step",2),Dn([ft({type:Number})],Ln.prototype,"minlength",2),Dn([ft({type:Number})],Ln.prototype,"maxlength",2),Dn([ft({type:String})],Ln.prototype,"src",2),Dn([ft({type:Boolean,reflect:!0})],Ln.prototype,"inlineContent",2),Dn([ft({type:Boolean})],Ln.prototype,"disableInlineContentFocus",2),Dn([ft({type:Boolean})],Ln.prototype,"showPasswordToggle",2),Dn([_t({slot:"label",flatten:!0})],Ln.prototype,"slotLabelNodes",2),Dn([_t({slot:"description",flatten:!0})],Ln.prototype,"slotDescriptionNodes",2),Dn([_t({slot:"suffix",flatten:!0})],Ln.prototype,"slotSuffixNodes",2),Dn([_t({slot:"prefix",flatten:!0})],Ln.prototype,"slotPrefixNodes",2),Dn([bt("input")],Ln.prototype,"input",2),Dn([vt()],Ln.prototype,"hasDescription",2),Dn([vt()],Ln.prototype,"hasLabel",2),Dn([vt()],Ln.prototype,"hasSuffix",2),Dn([vt()],Ln.prototype,"hasPrefix",2),Dn([vt()],Ln.prototype,"isPassword",2),Ln=Dn([ut("sonic-input")],Ln);const jn=l`
  /*OMBRE*/
  :host([shadow]) .shadowable,
  :host([shadow="md"]) .shadowable,
  :host([shadow="true"]) .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;
  }
`;var In=Object.defineProperty,zn=Object.getOwnPropertyDescriptor,Bn=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?zn(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&In(e,i,r),r};let Rn=class extends pt{constructor(){super(...arguments),this.open=!1,this.noToggle=!1,this.inline=!1,this.shadow="lg",this.placement="bottom",this.positioningRuns=!1,this.lastContentX=0,this.lastContentY=0,this.resizeObserver=new ResizeObserver((()=>this.computePosition(this.placement))),this.ancestorsHavingZIndex=new Set}runPositioningLoop(){this.positioningRuns&&(this.positioningRuns=!0,this.computePosition(this.placement),window.requestAnimationFrame((()=>this.runPositioningLoop())))}toggle(t){if(this.open&&this.noToggle)return;const e=t;("keydown"!=t.type||"ArrowDown"==e.key&&!this.open)&&(this.open=!this.open,this.open?this.show():this.hide())}show(){this.setMaxZindex(),this.popContent.style.removeProperty("display"),this.open=!0,this.popContent.setAttribute("tabindex","0"),this.popBtn&&this.popContent&&!this.positioningRuns&&(this.positioningRuns=!0,this.lastContentX=0,this.lastContentY=0,this.runPositioningLoop()),this.dispatchEvent(new CustomEvent("show"))}hide(){this.resetZindexes(),this.open=!1,this.popContent.setAttribute("tabindex","-1"),this.positioningRuns=!1,this.dispatchEvent(new CustomEvent("hide"))}setMaxZindex(){kt.everyAncestors(this,(t=>{const e=t;if(!e.className)return!0;if([...e.classList].includes("@container")){const i=e.style;i.zIndex="999999999";const s=getComputedStyle(e);return"relative"!==s.position&&"absolute"!==s.position&&(i.position="relative"),this.ancestorsHavingZIndex.add(t),!1}return!0}))}resetZindexes(){this.ancestorsHavingZIndex.forEach((t=>{t.style.removeProperty("position"),t.style.removeProperty("z-index")})),this.ancestorsHavingZIndex.clear()}_handleClosePop(t){const e=t.composedPath(),i=e[0];Rn.pops.forEach((s=>{const o=e.includes(s),r=e.includes(s.querySelector('[slot="content"]')),n="keep"===kt.getAncestorAttributeValue(i,"data-on-select");"pointerdown"==t.type&&o||"click"==t.type&&(o&&n||!r)||s.hide()}))}connectedCallback(){super.connectedCallback(),0==Rn.pops.size&&(document.addEventListener("pointerdown",this._handleClosePop),document.addEventListener("click",this._handleClosePop)),Rn.pops.add(this)}firstUpdated(t){super.firstUpdated(t),this.resizeObserver.observe(this.popContent)}disconnectedCallback(){this.popContent&&this.resizeObserver.unobserve(this.popContent),super.disconnectedCallback(),Rn.pops.delete(this),0==Rn.pops.size&&(document.removeEventListener("pointerdown",this._handleClosePop),document.removeEventListener("click",this._handleClosePop))}computePosition(t){var e,i,s,o;const r=t.split(" "),n=r[0];let a=r[1],l=null==(e=this.popContent)?void 0:e.getBoundingClientRect();const c=this.getBoundingClientRect(),d=kt.getScrollableAncestor(this.popContent),p=null==d?void 0:d.getBoundingClientRect(),h=Math.max(0,(null==p?void 0:p.left)||0)+5,u=Math.max(0,(null==p?void 0:p.top)||0)+5,m=Math.min(window.innerWidth,(null==p?void 0:p.right)||window.innerWidth)-5,g=Math.min(window.innerHeight,(null==p?void 0:p.bottom)||window.innerHeight)-5,f=c.left,v=c.top;let y=f,b=v;const w=v-l.height,x=f-l.width,_=f+c.width,k=v+c.height,$=f+.5*(c.width-l.width),P=v+.5*(c.height-l.height);switch(n){case"bottom":b=k,"center"==a&&(y=$);break;case"top":b=w,"center"==a&&(y=$);break;case"left":y=x,"center"==a&&(b=P);break;case"right":y=_,"center"==a&&(b=P)}this.lastContentX+=y-l.x,this.lastContentY+=b-l.y,Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),l=null==(i=this.popContent)?void 0:i.getBoundingClientRect(),l.x<h&&"left"==n&&(y=_),l.y<u&&"top"==n&&(b=k),l.x+l.width>m&&"right"==n&&(y=x),l.y+l.height>g&&"bottom"==n&&(b=w),this.lastContentX+=y-l.x,this.lastContentY+=b-l.y,Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),l=null==(s=this.popContent)?void 0:s.getBoundingClientRect(),l.x<h&&(this.lastContentX+=h-l.x),l.y<u&&(this.lastContentY+=u-l.y),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),l=null==(o=this.popContent)?void 0:o.getBoundingClientRect(),l.x+l.width>m&&(this.lastContentX+=m-(l.x+l.width)),l.y+l.height>g&&(this.lastContentY+=g-(l.y+l.height)),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`})}render(){return V`
      <slot
        @click=${this.toggle}
        @keydown=${this.toggle}
        class="contents"
      ></slot>
      <slot
        name="content"
        tabindex="-1"
        part="content"
        style="display: none;"
        class="shadowable
        ${this.open?"is-open":""}"
      ></slot>
    `}};Rn.pops=new Set,Rn.styles=[l`
      :host {
        display: inline-block;
        vertical-align: middle;
      }

      slot[name="content"] {
        max-width: 80vw;
        background-color: var(--sc-base, #fff);
        position: fixed;
        z-index: 99999;
        display: block;
        transform: translateY(1rem) scale(0.95);
        opacity: 0;
        pointer-events: none;
        transition-duration: 0.15s;
        transition-timing-function: ease;
        transition-property: all;
        border-radius: min(calc(var(--sc-btn-rounded) * 2), 0.4em);
      }

      slot[name="content"].is-open:not(.is-empty) {
        transform: translateY(0) scale(1);
        opacity: 1;
        pointer-events: auto;
        transition-property: scale, opacity;
        transition-timing-function: cubic-bezier(0.25, 0.25, 0.42, 1.225);
      }

      :host([inline]) {
        vertical-align: baseline;
      }
    `,jn],Bn([vt()],Rn.prototype,"open",2),Bn([bt("slot:not([name=content])")],Rn.prototype,"popBtn",2),Bn([bt("slot[name=content]")],Rn.prototype,"popContent",2),Bn([ft({type:Boolean})],Rn.prototype,"noToggle",2),Bn([ft({type:Boolean,reflect:!0})],Rn.prototype,"inline",2),Bn([ft({type:String,reflect:!0})],Rn.prototype,"shadow",2),Bn([ft({type:String})],Rn.prototype,"placement",2),Rn=Bn([ut("sonic-pop")],Rn);var Nn=Object.defineProperty,Fn=Object.getOwnPropertyDescriptor;let qn=class extends ms{constructor(){super()}connectedCallback(){this.hasAttribute("variant")||(this.variant="ghost"),this.hasAttribute("type")||(this.type="default"),this.hasAttribute("shape")||(this.shape="block");const t="square"===this.shape||"circle"===this.shape;this.hasAttribute("align")||t||(this.align="left"),super.connectedCallback()}};qn=((t,e,i,s)=>{for(var o,r=s>1?void 0:s?Fn(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Nn(e,i,r),r})([ut("sonic-menu-item")],qn);
/**
   * @license
   * Copyright 2021 Google LLC
   * SPDX-License-Identifier: BSD-3-Clause
   */
class Hn{constructor(t,{target:e,config:i,callback:s,skipInitial:o}){this.t=new Set,this.o=!1,this.i=!1,this.h=t,null!==e&&this.t.add(e??t),this.l=i,this.o=o??this.o,this.callback=s,window.ResizeObserver?(this.u=new ResizeObserver((t=>{this.handleChanges(t),this.h.requestUpdate()})),t.addController(this)):console.warn("ResizeController error: browser does not support ResizeObserver.")}handleChanges(t){var e;this.value=null==(e=this.callback)?void 0:e.call(this,t,this.u)}hostConnected(){for(const t of this.t)this.observe(t)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.o&&this.i&&this.handleChanges([]),this.i=!1}observe(t){this.t.add(t),this.u.observe(t,this.l),this.i=!0,this.h.requestUpdate()}unobserve(t){this.t.delete(t),this.u.unobserve(t)}disconnect(){this.u.disconnect()}}var Un=Object.defineProperty,Vn=Object.getOwnPropertyDescriptor,Wn=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Vn(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Un(e,i,r),r};let Zn=class extends(js(Ds(Ms(Ls(pt))))){constructor(){super(...arguments),this.size="md",this.placeholder="",this.filteredFields="",this.readonly=null,this.dataProviderExpression="",this.minSearchLength=0,this.key="",this.searchParameter="",this.propertyName="",this.hasInputPrefix=!1,this._resizeController=new Hn(this,{}),this.isPopVisible=!1,this.searchDataProvider="",this.initSearchDataProvider="",this.queueDataProvider="",this.initQueueDataProvider="",this.lastValidSearch="",this.updateSearchParameter=t=>{var e;if(""==t)return void(this.lastValidSearch="");!1!==this.queryQueueListItem(this.queueDataProvider,this.findSelection,this.setSearchFromSelection)||this.searchParameter&&this.searchParameter!==this.name||(this.lastValidSearch=t,null==(e=this.searchPublisher)||e.set(this.lastValidSearch))},this.updatePopContentVisibility=t=>{this.isPopVisible=((null==t?void 0:t.length)||0)>=this.minSearchLength},this.initSearchParameter=()=>{this.queryQueueListItem(this.initQueueDataProvider,this.findSelection,this.setSearchFromSelection)},this.selectListItem=t=>{var e;const i="_self"===this.propertyName?t:t[this.propertyName||this.name];null==(e=this.formValuePublisher)||e.set(i)},this.findSearchedItem=t=>{var e;return("_self"===this.propertyName?t:t[this.propertyName||this.searchParameter||this.name])==(null==(e=this.searchPublisher)?void 0:e.get())},this.findSelection=t=>("_self"===this.propertyName?t:t[this.propertyName||this.name])==this.value,this.setSearchFromSelection=t=>{var e;this.lastValidSearch="_self"===this.propertyName?t:t[this.searchParameter||this.propertyName||this.name],null==(e=this.searchPublisher)||e.set(this.lastValidSearch)},this.updateActiveSelection=()=>{var t,e,i;this.queryQueueListItem(this.queueDataProvider,this.findSearchedItem,this.selectListItem),!this.select&&this.lastValidSearch&&this.lastValidSearch!=(null==(t=this.searchPublisher)?void 0:t.get())&&(null==(e=this.formValuePublisher)?void 0:e.get())&&(null==(i=this.formValuePublisher)||i.set(""))}}hasSlotOrProps(){var t;this.hasInputPrefix=!!(null==(t=this.slotInputPrefixNodes)?void 0:t.length)}get value(){return super.value}set value(t){var e;null==(e=this.searchPublisher)||e.set(t),super.value=t}connectedCallback(){var t,e,i,s;super.connectedCallback();const o=this.searchParameter||this.name,r=this.getAncestorAttributeValue("formDataProvider"),n=r+"__"+this.name+"__autocomplete";this.initSearchDataProvider=`${n}_init_search__`,this.initQueueDataProvider=`${n}_init_queue__`,this.searchDataProvider=`${n}_search__`,this.queueDataProvider=`${n}_queue__`;const a=Ti.get;this.searchPublisher=a(this.searchDataProvider)[o],this.formValuePublisher=St(a(r),this.name),this.countPublisher=a(this.queueDataProvider).resultCount,this.initCountPublisher=a(this.initQueueDataProvider).resultCount,this.value&&(Ti.get(this.initSearchDataProvider)[this.name]=this.value),null==(t=this.initCountPublisher)||t.onAssign(this.initSearchParameter),null==(e=this.formValuePublisher)||e.onAssign(this.updateSearchParameter),null==(i=this.countPublisher)||i.onAssign(this.updateActiveSelection),null==(s=this.searchPublisher)||s.onAssign(this.updatePopContentVisibility)}disconnectedCallback(){var t,e,i,s;super.disconnectedCallback(),null==(t=this.initCountPublisher)||t.offAssign(this.initSearchParameter),null==(e=this.formValuePublisher)||e.offAssign(this.updateSearchParameter),null==(i=this.countPublisher)||i.offAssign(this.updateActiveSelection);const o=Ti.get;o(this.initSearchDataProvider).delete(),o(this.initQueueDataProvider).delete(),o(this.searchDataProvider).delete(),o(this.queueDataProvider).delete(),null==(s=this.searchPublisher)||s.offAssign(this.updatePopContentVisibility)}queryQueueListItem(t,e,i){let s,o=Ti.get(t).get();if(!o||!Array.isArray(o))return!1;if(!o.length)return!1;for(const r of o){let t=Ti.get(r.dataProvider).get();if(Array.isArray(t)&&(s=t.find(e),s))break}return!!s&&(i(s),!0)}setSelectionRange(t,e){var i;null==(i=this.querySelector("sonic-input"))||i.setSelectionRange(t,e)}handleHide(){var t,e,i;if(this.select)return""==(null==(t=this.searchPublisher)?void 0:t.get())?(this.lastValidSearch="",void(null==(e=this.formValuePublisher)||e.set(""))):void(null==(i=this.searchPublisher)||i.set(this.lastValidSearch))}render(){var t;return V`
      <sonic-pop noToggle style="display:block;" @hide=${this.handleHide}>
        <sonic-input
          dataProvider="${this.initSearchDataProvider+Math.random()}"
          noAutofill
          formDataProvider="${this.searchDataProvider}"
          type="search"
          data-keyboard-nav="${this.getAttribute("data-keyboard-nav")||""}"
          label="${li(this.label)}"
          description="${li(this.description)}"
          name="${li(this.searchParameter||this.name)}"
          placeholder="${li(this.placeholder)}"
          ?readonly="${this.readonly}"
          autocomplete="off"
          clearable
          inlineContent
          size=${this.size}
          value="${li((null==(t=this.searchPublisher)?void 0:t.get())||this.value)}"
        >
          <slot
            name="prefix"
            slot="prefix"
            @slotchange=${this.hasSlotOrProps}
          ></slot>

          ${this.select?V`
                <sonic-icon
                  slot="suffix"
                  class="select-chevron"
                  name="nav-arrow-down"
                  .size=${this.size}
                ></sonic-icon>
              `:Z}
        </sonic-input>
        <sonic-menu
          slot="content"
          class="custom-scroll"
          style="${this.offsetWidth?`width: ${this.offsetWidth}px`:""}; display:${this.isPopVisible?"block":"none"};"
        >
          <sonic-queue
            dataProvider="${this.queueDataProvider}"
            filteredFields=${this.filteredFields}
            dataProviderExpression="${this.dataProviderExpression}"
            dataFilterProvider="${this.searchDataProvider}"
            key="${this.key}"
            .templates=${this.templateList.concat(this.templatePartsList)}
            displayContents
          >
          </sonic-queue>
          <sonic-queue
            noLazyload
            loader="no-loader"
            dataProvider="${this.initQueueDataProvider}"
            filteredFields=${this.filteredFields}
            dataProviderExpression="${this.dataProviderExpression}"
            dataFilterProvider="${this.initSearchDataProvider}"
            key="${this.key}"
            displayContents
          >
          </sonic-queue>
        </sonic-menu>
      </sonic-pop>
    `}};Zn.styles=[hi,l`
      :host {
        display: block;
      }
      /**disable mouse if there is an attribute readonly  */
      :host([readonly]) {
        pointer-events: none;
      }
      sonic-menu {
        display: block;
        max-height: clamp(12rem, 20vh, 20rem);
        min-width: 14rem;
        width: 100%;
      }
    `],Wn([ft({type:String})],Zn.prototype,"size",2),Wn([ft({type:String})],Zn.prototype,"placeholder",2),Wn([ft()],Zn.prototype,"filteredFields",2),Wn([ft({type:Boolean})],Zn.prototype,"readonly",2),Wn([ft({type:String})],Zn.prototype,"dataProviderExpression",2),Wn([ft({type:Number})],Zn.prototype,"minSearchLength",2),Wn([ft({type:Boolean})],Zn.prototype,"select",2),Wn([ft({type:String})],Zn.prototype,"key",2),Wn([ft({type:String})],Zn.prototype,"searchParameter",2),Wn([ft({type:String})],Zn.prototype,"propertyName",2),Wn([_t({slot:"prefix",flatten:!0})],Zn.prototype,"slotInputPrefixNodes",2),Wn([vt()],Zn.prototype,"hasInputPrefix",2),Wn([vt()],Zn.prototype,"isPopVisible",2),Zn=Wn([ut("sonic-input-autocomplete")],Zn);var Yn=Object.defineProperty,Gn=Object.getOwnPropertyDescriptor,Kn=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Gn(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Yn(e,i,r),r};let Qn=class extends(Ls(pt)){constructor(){super(...arguments),this.minChars=8,this.hasNoChar=!0,this.hasEnoughChars=!1,this.hasMinuscule=!1,this.hasMajuscule=!1,this.hasNumber=!1,this.hasSpecialChar=!1,this.wording_password_helper_decription="Le mot de passe doit contenir au moins :",this.wording_password_helper_min_length="8 caractères",this.wording_password_helper_lower_case="1 minuscule",this.wording_password_helper_upper_case="1 majuscule",this.wording_password_helper_number="1 chiffre",this.wording_password_helper_special_char="1 caractère spécial"}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)},Ti.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].onAssign(this.checkValue))}disconnectedCallback(){this.checkValue&&this.name&&Ti.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].offAssign(this.checkValue),super.disconnectedCallback()}getIcon(t){return t?V`<sonic-icon library="heroicons" name="face-smile"></sonic-icon>`:V`<sonic-icon library="heroicons" name="x-mark"></sonic-icon>`}render(){return this.hasNoChar?Z:V`
      <div>${this.wording_password_helper_decription}</div>
      <div>
        ${this.getIcon(this.hasEnoughChars)}
        ${this.wording_password_helper_min_length}
      </div>
      <div>
        ${this.getIcon(this.hasMinuscule)}
        ${this.wording_password_helper_lower_case}
      </div>
      <div>
        ${this.getIcon(this.hasMajuscule)}
        ${this.wording_password_helper_upper_case}
      </div>
      <div>
        ${this.getIcon(this.hasNumber)} ${this.wording_password_helper_number}
      </div>
      <div>
        ${this.getIcon(this.hasSpecialChar)}
        ${this.wording_password_helper_special_char}
      </div>
    `}};Kn([ft()],Qn.prototype,"name",2),Kn([ft()],Qn.prototype,"minChars",2),Kn([vt()],Qn.prototype,"hasNoChar",2),Kn([vt()],Qn.prototype,"hasEnoughChars",2),Kn([vt()],Qn.prototype,"hasMinuscule",2),Kn([vt()],Qn.prototype,"hasMajuscule",2),Kn([vt()],Qn.prototype,"hasNumber",2),Kn([vt()],Qn.prototype,"hasSpecialChar",2),Kn([ft()],Qn.prototype,"wording_password_helper_decription",2),Kn([ft()],Qn.prototype,"wording_password_helper_min_length",2),Kn([ft()],Qn.prototype,"wording_password_helper_lower_case",2),Kn([ft()],Qn.prototype,"wording_password_helper_upper_case",2),Kn([ft()],Qn.prototype,"wording_password_helper_number",2),Kn([ft()],Qn.prototype,"wording_password_helper_special_char",2),Qn=Kn([ut("sonic-password-helper")],Qn);var Xn=Object.defineProperty,Jn=Object.getOwnPropertyDescriptor,ta=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Jn(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Xn(e,i,r),r};let ea=class extends(Ls(pt)){constructor(){super(...arguments),this.descriptionWhenEqual="Correspondance : oui",this.descriptionWhenNotEqual="Correspondance : non",this.areEqual=!1,this.hasNoChar=!0}connectedCallback(){super.connectedCallback();const t=Ti.get(this.getAncestorAttributeValue("formDataProvider"));this.name&&this.sameValueAs&&(this.checkValue=e=>{this.hasNoChar=!e||0==e.length,this.name&&this.sameValueAs&&(this.areEqual=St(t,this.name).get()==St(t,this.sameValueAs).get())},St(t,this.name).onAssign(this.checkValue),St(t,this.sameValueAs).onAssign(this.checkValue))}disconnectedCallback(){if(this.checkValue&&this.name&&this.sameValueAs){const t=Ti.get(this.getAncestorAttributeValue("formDataProvider"));St(t,this.name).offAssign(this.checkValue),St(t,this.sameValueAs).offAssign(this.checkValue)}super.disconnectedCallback()}render(){return this.hasNoChar?Z:V`
      <span>
        ${this.areEqual?_e(this.descriptionWhenEqual):_e(this.descriptionWhenNotEqual)}
      </span>
    `}};ta([ft()],ea.prototype,"name",2),ta([ft()],ea.prototype,"sameValueAs",2),ta([ft()],ea.prototype,"descriptionWhenEqual",2),ta([ft()],ea.prototype,"descriptionWhenNotEqual",2),ta([vt()],ea.prototype,"areEqual",2),ta([vt()],ea.prototype,"hasNoChar",2),ea=ta([ut("sonic-same-value-helper")],ea);var ia=Object.defineProperty,sa=Object.getOwnPropertyDescriptor,oa=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?sa(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&ia(e,i,r),r};let ra=class extends(cs(Ss(rs(Le(pt))))){constructor(){super(...arguments),this.touched=!1,this.iconName="check",this.indeterminateIconName="minus-small",this.showAsIndeterminate=!1,this.hasDescription=!1,this.hasLabel=!1}connectedCallback(){this.type="checkbox",this.hasSlotOrProps(),super.connectedCallback()}willUpdate(t){this.hasSlotOrProps(),super.willUpdate(t)}hasSlotOrProps(){var t,e;this.hasLabel=!(!this.label&&!(null==(t=this.slotLabelNodes)?void 0:t.length)),this.hasDescription=!(!this.description&&!(null==(e=this.slotDescriptionNodes)?void 0:e.length))}render(){return V`
      <label class="checkbox-container ${this.disabled?"disabled":""}">

        <span class="icon-container">
          <input
            type="${this.type}"
            @click=${this.handleChange}
            @blur=${this.handleBlur}
            ?required=${this.required}
            ?data-indeterminate=${this.showAsIndeterminate}
            .disabled=${li(this.disabled)}
            .checked=${li(this.checked)}
            .name=${this.name}
            .value=${this.value}
            ?autofocus=${this.autofocus}
            aria-label=${li(this.ariaLabel)}
            aria-labelledby=${li(this.ariaLabelledby)}
          />
          <sonic-icon name="${"indeterminate"==this.checked||this.showAsIndeterminate?this.indeterminateIconName:this.iconName}" class="sc-input-icon"></sonic-icon>
        </span>

        <div class="checkbox-text ${this.hasDescription||this.hasLabel?"checkbox-text":"hidden"}">
            ${this.label?_e(this.label):""}
            <slot @slotchange=${this.hasSlotOrProps}></slot>
            <slot @slotchange=${this.hasSlotOrProps} name="description" class="${this.hasDescription?"description":"hidden"} ">${this.description?V`${_e(this.description)}`:""}</slot>
          </div>
        </label>
      </label>
    `}};ra.styles=[ds,l`
      :host {
        --sc-checkbox-border-width: var(--sc-form-border-width);
        --sc-checkbox-border-color: var(
          --sc-input-border-color,
          var(--sc-base-content, #000)
        );
        --sc-checkbox-bg: var(--sc-input-bg);
        --sc-checkbox-color: transparent;
      }

      * {
        box-sizing: border-box;
      }

      .checkbox-container {
        min-height: 1.4em;
        display: flex;
        gap: 0.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: 0.25em;
        transition: 0.2s;
        outline: none;
        margin: 0;
        background-color: var(--sc-checkbox-bg);
        border: var(--sc-checkbox-border-width) solid
          var(--sc-checkbox-border-color);
      }

      input:focus,
      :host(:not([disabled])) input:active {
        box-shadow: 0 0 0 2px var(--sc-primary, var(--sc-base-content, #000));
      }

      :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 0.2s ease-in-out;
        color: var(--sc-checkbox-color);
      }

      /* .checkbox-text {
        align-self: center;
      } */

      .description {
        color: var(--sc-base-400, var(--sc-base-content, #000));
        font-size: 0.85em;
        margin-top: 0.2em;
        display: block;
      }

      /*Active */
      input:checked,
      input[data-indeterminate],
      input[checked] {
        --sc-checkbox-border-color: var(
          --sc-primary,
          var(--sc-base-content, #000)
        );
        --sc-checkbox-bg: var(--sc-primary, var(--sc-base-content, #000));
      }
      input:checked + sonic-icon,
      input[data-indeterminate] + sonic-icon,
      input[checked] + sonic-icon {
        --sc-checkbox-color: var(--sc-primary-content, var(--sc-base, #fff));
        transform: translateX(-50%) translateY(-50%) scale(1);
      }
      /*DISABLED */
      .disabled {
        cursor: not-allowed;
      }
      .disabled input {
        opacity: 0.4;
      }

      .disabled .checkbox-text {
        opacity: 0.6;
      }

      /*INPUT HOVER*/
      :host(:not([disabled])) label:hover input {
        filter: brightness(0.97);
      }

      ::slotted(a) {
        color: inherit;
        text-decoration: underline !important;
      }

      ::slotted(a:hover) {
        text-decoration: none !important;
      }
      /*Utils */
      .hidden {
        display: none;
      }
    `],oa([ft({type:Boolean,reflect:!0})],ra.prototype,"touched",2),oa([ft({type:String})],ra.prototype,"iconName",2),oa([ft({type:String})],ra.prototype,"indeterminateIconName",2),oa([ft({type:Boolean})],ra.prototype,"showAsIndeterminate",2),oa([ft({type:Boolean})],ra.prototype,"hasDescription",2),oa([ft({type:Boolean})],ra.prototype,"hasLabel",2),oa([_t({flatten:!0})],ra.prototype,"slotLabelNodes",2),oa([_t({slot:"description",flatten:!0})],ra.prototype,"slotDescriptionNodes",2),ra=oa([ut("sonic-checkbox")],ra);var na=Object.defineProperty,aa=Object.getOwnPropertyDescriptor;let la=class extends ra{constructor(){super(),this.radio=!0}connectedCallback(){super.connectedCallback(),this.type="radio"}};la.styles=[ra.styles,l`
      :host input {
        border-radius: 50%;
      }
      :host sonic-icon {
        border-radius: 50%;
        overflow: hidden;
        background-color: var(--sc-primary-content, var(--sc-base, #fff));
        line-height: 0;
        display: block;
        font-size: 1em;
        height: 0.6em;
        height: round(0.6em, 1px);
        width: 0.6em;
        width: round(0.6em, 1px);
      }
    `],la=((t,e,i,s)=>{for(var o,r=s>1?void 0:s?aa(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&na(e,i,r),r})([ut("sonic-radio")],la);var ca=Object.defineProperty,da=Object.getOwnPropertyDescriptor,pa=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?da(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&ca(e,i,r),r};let ha=class extends(rs(Le(pt))){constructor(){super(...arguments),this.valueKey="value",this.wordingKey="wording",this.multiple=!1,this.status="default",this._options=[],this.hasDoneFirstUpdate=!1,this._value="",this.updateOptions=()=>{const t=this.querySelectorAll("option");t.length>0&&(this.options=Array.from(t).map((t=>({value:t.value,wording:t.text,selected:t.hasAttribute("selected")}))))},this.forceAutoFill=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1}set options(t){this._options=t;for(const e of t)e.selected&&(this.value=e.value||"");!(this.value||this.getAttribute("value"))&&this._options.length>0&&(this.value=this._options[0][this.valueKey]),this.requestUpdate()}get options(){return this._options}firstUpdated(t){this.hasDoneFirstUpdate=!0,super.firstUpdated(t)}set value(t){(null!=t||this.hasDoneFirstUpdate)&&(t||(t=""),this._value!=t&&(this._value=t,this.updateFormPublisherValue(),this.requestUpdate()))}get value(){return this._value}updateFormPublisherValue(){this.setFormPublisherValue(this.value)}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps(),this.updateOptions()}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()}willUpdate(t){this.hasSlotOrProps(),super.willUpdate(t)}hasSlotOrProps(){var t,e,i,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==(i=this.slotSuffixNodes)?void 0:i.length),this.hasPrefix=!!(null==(s=this.slotPrefixNodes)?void 0:s.length)}validateFormElement(){var t;const e=null==(t=this.shadowRoot)?void 0:t.querySelector("select");if(!e||e.checkValidity())return;const i=this.getFormPublisher();i&&(i.isFormValid=!1),e.reportValidity()}render(){const t={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix};return V`
      <label
        for="form-element"
        class="${this.hasLabel?"form-label":"hidden"}"
        >${this.label?_e(this.label):""}<slot
          name="label"
          @slotchange=${this.hasSlotOrProps}
        ></slot
      ></label>

      <div class="form-control ${En(t)}">
        <slot name="prefix" @slotchange=${this.hasSlotOrProps}></slot>
        <div class="form-select-wrapper">
          <select
            data-form-element
            id="form-element"
            @change=${this.handleChange}
            @blur=${this.handleBlur}
            ?disabled=${this.disabled}
            ?required=${this.required}
            ?multiple=${this.multiple}
            size=${li(this.selectSize)}
            ?autofocus=${this.autofocus}
            .value="${this.value}"
            class="form-element"
            aria-label=${li(this.ariaLabel)}
            aria-labelledby=${li(this.ariaLabelledby)}
          >
            ${Ie(this.options,(t=>t[this.valueKey]),(t=>{const e=this.value==t[this.valueKey];return V`<option
                  ?selected=${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.hasSlotOrProps}></slot>
      </div>

      <slot
        name="description"
        @slotchange=${this.hasSlotOrProps}
        class="${this.hasDescription?"form-description":"hidden"}"
        >${this.description?V`${_e(this.description)}`:""}</slot
      >
    `}};ha.styles=[ds,On,Cn,An,l`
      .form-element {
        appearance: none;
      }

      :host([disabled]) sonic-icon {
        opacity: 0;
      }

      @supports selector(:has(*)) {
        :host(:not([disabled])) .form-element:not(:has(option:only-child)) {
          padding-right: max(1.275em, calc(1.5 * var(--sc-input-px)));
        }
      }
      /*Firefox etc.*/
      @supports not selector(:has(*)) {
        :host(:not([disabled])) .form-element {
          padding-right: max(1.275em, calc(1.5 * var(--sc-input-px)));
        }
      }

      .form-select-wrapper {
        position: relative;
        width: 100%;
      }

      sonic-icon {
        position: absolute;
        right: calc(0.8 * var(--sc-input-px));
        top: 50%;
        pointer-events: none;
        transform: translateY(-50%);
        color: var(--sc-input-c);
      }

      option {
        padding: 0.1rem var(--sc-input-px);
        color: var(--sc-base-content, #000);
        background: var(--sc-base, #fff);
      }

      select[multiple] option {
        background: transparent;
        padding: 0;
      }
    `],pa([ft({type:String})],ha.prototype,"valueKey",2),pa([ft({type:String})],ha.prototype,"wordingKey",2),pa([ft({type:Boolean})],ha.prototype,"multiple",2),pa([ft({type:String,reflect:!0})],ha.prototype,"size",2),pa([ft({type:Number})],ha.prototype,"selectSize",2),pa([ft({type:String,reflect:!0})],ha.prototype,"status",2),pa([ft({type:Array})],ha.prototype,"options",1),pa([ft({reflect:!0})],ha.prototype,"value",1),pa([ft({type:Boolean})],ha.prototype,"forceAutoFill",2),pa([ft()],ha.prototype,"description",1),pa([ft()],ha.prototype,"label",1),pa([_t({slot:"label",flatten:!0})],ha.prototype,"slotLabelNodes",2),pa([_t({slot:"description",flatten:!0})],ha.prototype,"slotDescriptionNodes",2),pa([_t({slot:"suffix",flatten:!0})],ha.prototype,"slotSuffixNodes",2),pa([_t({slot:"prefix",flatten:!0})],ha.prototype,"slotPrefixNodes",2),pa([vt()],ha.prototype,"hasDescription",2),pa([vt()],ha.prototype,"hasLabel",2),pa([vt()],ha.prototype,"hasSuffix",2),pa([vt()],ha.prototype,"hasPrefix",2),ha=pa([ut("sonic-select")],ha);var ua=Object.defineProperty,ma=Object.getOwnPropertyDescriptor,ga=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?ma(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&ua(e,i,r),r};let fa=class extends(Ss(rs(Le(pt)))){constructor(){super(...arguments),this.size="md",this.readonly=!1,this.resize="vertical",this.hasDescription=!1,this.hasLabel=!1}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps()}willUpdate(t){this.hasSlotOrProps(),super.willUpdate(t)}hasSlotOrProps(){var t,e;this.hasLabel=!(!this.label&&!(null==(t=this.slotLabelNodes)?void 0:t.length)),this.hasDescription=!(!this.description&&!(null==(e=this.slotDescriptionNodes)?void 0:e.length))}validateFormElement(){var t;const e=null==(t=this.shadowRoot)?void 0:t.querySelector("textarea");if(!e||e.checkValidity())return;const i=this.getFormPublisher();i&&(i.isFormValid=!1),e.reportValidity()}render(){const t={resize:this.resize};return V`
      <label
        for="${this.id||"form-element"}"
        class="${this.hasLabel?"form-label":"hidden"}"
        >${this.label?_e(this.label):""}<slot
          name="label"
          @slotchange=${this.hasSlotOrProps}
        ></slot
      ></label>

      <div class="form-control">
        <textarea
          data-form-element
          id="${this.id||"form-element"}"
          @input=${this.handleChange}
          @blur=${this.handleBlur}
          disabled=${li(this.disabled)}
          ?required=${this.required}
          ?autofocus=${this.autofocus}
          rows=${li(this.rows)}
          cols=${li(this.cols)}
          maxlength=${li(this.maxlength)}
          minlength=${li(this.minlength)}
          ?readonly=${this.readonly}
          spellcheck=${li(this.spellcheck)}
          autocomplete=${li(this.autocomplete)}
          tabindex=${li(this.tabindex)}
          wrap=${li(this.wrap)}
          placeholder="${this.placeholder}"
          class="form-element textarea custom-scroll"
          aria-label=${li(this.ariaLabel)}
          aria-labelledby=${li(this.ariaLabelledby)}
          style=${pi(t)}
        >
${this.value}</textarea
        >
      </div>

      <slot
        name="description"
        @slotchange=${this.hasSlotOrProps}
        class="${this.hasDescription?"form-description":"hidden"}"
        >${this.description?V`${_e(this.description)}`:""}</slot
      >
    `}};fa.styles=[ds,On,Cn,An,hi,l`
      textarea {
        overflow-y: auto !important;
        font-size: inherit;
      }
    `],ga([ft({type:String})],fa.prototype,"size",2),ga([ft({type:Number})],fa.prototype,"rows",2),ga([ft({type:Number})],fa.prototype,"cols",2),ga([ft({type:Number})],fa.prototype,"maxlength",2),ga([ft({type:Number})],fa.prototype,"minlength",2),ga([ft({type:String})],fa.prototype,"wrap",2),ga([ft({type:Boolean})],fa.prototype,"readonly",2),ga([ft({type:String})],fa.prototype,"placeholder",2),ga([ft({type:String})],fa.prototype,"resize",2),ga([_t({slot:"label",flatten:!0})],fa.prototype,"slotLabelNodes",2),ga([_t({slot:"description",flatten:!0})],fa.prototype,"slotDescriptionNodes",2),ga([vt()],fa.prototype,"hasDescription",2),ga([vt()],fa.prototype,"hasLabel",2),fa=ga([ut("sonic-textarea")],fa);var va=Object.defineProperty,ya=Object.getOwnPropertyDescriptor;let ba=class extends pt{render(){return V`<slot></slot>`}};ba.styles=[l`
      :host {
        font-size: 1.15rem;
        line-height: 1.2;
        display: block;
        color: var(--sc-base-500, var(--sc-base-content, #000));
        font-weight: var(--sc-font-weight-base, 400);
        font-style: var(--sc-font-style-base, normal);
        margin-top: 0.2em;
      }
    `],ba=((t,e,i,s)=>{for(var o,r=s>1?void 0:s?ya(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&va(e,i,r),r})([ut("sonic-legend-description")],ba);var wa=Object.defineProperty,xa=Object.getOwnPropertyDescriptor,_a=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?xa(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&wa(e,i,r),r};let ka=class extends pt{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 V`<legend part="legend">
      ${this.iconName?V`<div class="icon">
            <sonic-icon
              name=${this.iconName}
              prefix=${li(this.iconPrefix)}
              library=${li(this.iconLibrary)}
            ></sonic-icon>
          </div>`:""}

      <div class="legend-content">
        ${_e(this.label?this.label:"")}
        ${this.description?V`<sonic-legend-description
              >${_e(this.description)}</sonic-legend-description
            >`:""}
        <slot></slot>
      </div>
      <slot name="suffix"></slot>
    </legend>`}};ka.styles=[l`
      :host {
        --sc-legend-font-size: 1.5rem;
        --sc-legend-font-weight: var(--sc-font-weight-base, 400);
        --sc-legend-font-style: var(--sc-headings-font-style, normal);
        --sc-legend-family: var(
          --sc-headings-font-family,
          var(--sc-font-family-base, sans-serif)
        );
        --sc-legend-line-height: var(--sc-headings-line-height, 1.1);
        --sc-legend-color: var(--sc-base-content, #000);
        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);
        color: var(--sc-legend-color);
        padding: 0;
        display: flex;
        width: 100%;
        align-items: flex-start;
        gap: 0.5em;
      }

      slot[name="suffix"] {
        display: block;
        margin-left: auto;
        flex-shrink: 0;
      }

      .legend-content {
        flex-grow: 1;
      }
    `],_a([ft({type:Boolean})],ka.prototype,"forceAutoFill",2),_a([ft()],ka.prototype,"description",1),_a([ft()],ka.prototype,"label",1),_a([ft({type:String})],ka.prototype,"iconName",2),_a([ft({type:String})],ka.prototype,"iconLibrary",2),_a([ft({type:String})],ka.prototype,"iconPrefix",2),ka=_a([ut("sonic-legend")],ka);var $a=Object.defineProperty,Pa=Object.getOwnPropertyDescriptor,Sa=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Pa(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&$a(e,i,r),r};let Ca=class extends(Le(pt)){constructor(){super(...arguments),this.disabled=!1,this.variant="default"}render(){return V`<fieldset
      form="${li(this.form)}"
      ?disabled="${this.disabled}"
    >
      ${this.label?V` <sonic-legend
            label=${li(this.label)}
            description=${li(this.description)}
            iconName=${li(this.iconName)}
            iconPrefix=${li(this.iconPrefix)}
            iconLibrary=${li(this.iconLibrary)}
          ></sonic-legend>`:Z}
      <slot></slot>
    </fieldset>`}};Ca.styles=[l`
      :host {
        --sc-fieldset-mt: 0;
        --sc-fieldset-mb: 1rem;
        --sc-fieldset-border-color: var(--sc-border-color);
        --sc-fieldset-border-width: var(--sc-form-border-width);
        --sc-fieldset-px: 1.25rem;
        --sc-fieldset-py: 1.8rem;

        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: var(--sc-fieldset-py) var(--sc-fieldset-px);
        border-radius: var(--sc-rounded-lg);
      }

      fieldset {
        all: unset;
        display: contents;
      }

      :host([variant="shadow"]),
      :host([variant="ghost"]) {
        --sc-fieldset-border-color: transparent;
      }
      :host([variant="shadow"]) {
        --sc-fieldset-border-color: transparent;
        box-shadow: var(--sc-shadow-lg);
      }

      :host([tight]) {
        --sc-fieldset-px: 0;
        border-left: none !important;
        border-right: none !important;
        border-radius: 0;
      }

      sonic-legend,
      ::slotted(sonic-legend) {
        margin-bottom: 1.5rem;
        display: block;
      }

      sonic-legend:last-child,
      ::slotted(sonic-legend:last-child) {
        margin-bottom: 0;
      }
    `],Sa([ft({type:Boolean,reflect:!0})],Ca.prototype,"disabled",2),Sa([ft({type:String})],Ca.prototype,"form",2),Sa([ft({type:String})],Ca.prototype,"label",2),Sa([ft({type:String})],Ca.prototype,"description",2),Sa([ft({type:String})],Ca.prototype,"iconName",2),Sa([ft({type:String})],Ca.prototype,"iconLibrary",2),Sa([ft({type:String})],Ca.prototype,"iconPrefix",2),Sa([ft({type:Boolean,reflect:!0})],Ca.prototype,"tight",2),Sa([ft({type:String,reflect:!0})],Ca.prototype,"variant",2),Ca=Sa([ut("sonic-fieldset")],Ca);var Aa=Object.defineProperty,Oa=Object.getOwnPropertyDescriptor,Ea=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Oa(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Aa(e,i,r),r};let Ta=class extends(Le(pt)){constructor(){super(...arguments),this._resizeController=new Hn(this,{}),this.oneFormElement=!1}onSlotChange(){let t=this.slottedElements;const e=["sonic-input","sonic-select","sonic-input-autocomplete",".form-item-container"];t=t.filter((t=>e.includes(t.nodeName.toLowerCase()))),this.oneFormElement=1==t.length}render(){const t={"cq--md":this.offsetWidth>440,"one-form-element":this.oneFormElement};return V`<div class=${En(t)}>
      <slot @slotchange=${this.onSlotChange}></slot>
    </div>`}};Ta.styles=[l`
      :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));
      }
      .one-form-element {
        grid-template-columns: 1fr;
      }
      /*::slotted(sonic-radio),
      ::slotted(sonic-checkbox),
      ::slotted(sonic-form-actions),
      ::slotted(sonic-divider),
      ::slotted(sonic-textarea) {
        grid-column: 1 / -1;
      }*/
      ::slotted(sonic-submit) {
        display: contents;
      }
      ::slotted(:not(sonic-input):not(sonic-select):not(sonic-input-autocomplete):not(.form-item-container)) {
        grid-column: 1 / -1;
      }

      ::slotted(sonic-divider) {
        --sc-divider-my: 0;
      }
    `],Ea([xt({flatten:!0})],Ta.prototype,"slottedElements",2),Ea([ft({type:Boolean})],Ta.prototype,"oneFormElement",2),Ta=Ea([ut("sonic-form-layout")],Ta);var Ma=Object.defineProperty,Da=Object.getOwnPropertyDescriptor,La=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Da(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Ma(e,i,r),r};let ja=class extends pt{constructor(){super(...arguments),this.direction="row",this.justify="flex-start"}render(){const t={flexDirection:this.direction,justifyContent:this.justify};return V`<slot style=${pi(t)}></slot>`}};ja.styles=[l`
      :host {
        display: block;
      }
      slot {
        display: flex;
        flex-wrap: wrap;
        gap: 0.3rem;
      }
    `],La([ft({type:String})],ja.prototype,"direction",2),La([ft({type:String})],ja.prototype,"justify",2),ja=La([ut("sonic-form-actions")],ja);var Ia=Object.defineProperty,za=Object.getOwnPropertyDescriptor,Ba=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?za(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Ia(e,i,r),r};let Ra=class extends pt{constructor(){super(...arguments),this.alignItems="center",this.hasDescription=!1,this.hasLabel=!1}updated(){const t=this.querySelectorAll("sonic-input, sonic-button, sonic-select"),e=t.length;e>1&&t.forEach(((t,i)=>{const s=t;0===i?(s.style.setProperty("--sc-item-rounded-tr","0"),s.style.setProperty("--sc-item-rounded-br","0")):i===e-1?(s.style.setProperty("--sc-item-rounded-tl","0"),s.style.setProperty("--sc-item-rounded-bl","0")):(s.style.setProperty("--sc-item-rounded-tr","0"),s.style.setProperty("--sc-item-rounded-br","0"),s.style.setProperty("--sc-item-rounded-tl","0"),s.style.setProperty("--sc-item-rounded-bl","0"))}))}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps()}willUpdate(t){this.hasSlotOrProps(),super.willUpdate(t)}hasSlotOrProps(){var t,e;this.hasLabel=!(!this.label&&!(null==(t=this.slotLabelNodes)?void 0:t.length)),this.hasDescription=!(!this.description&&!(null==(e=this.slotDescriptionNodes)?void 0:e.length))}render(){const t={alignItems:this.alignItems};return V`<span class="${this.hasLabel?"form-label":"hidden"}"
        >${this.label?_e(this.label):""}<slot
          name="label"
          @slotchange=${this.hasSlotOrProps}
        ></slot
      ></span>
      <slot class="main-slot" style=${pi(t)}></slot>
      <slot
        name="description"
        @slotchange=${this.hasSlotOrProps}
        class="${this.hasDescription?"form-description":"hidden"}"
      >
        ${this.description?V`${_e(this.description)}`:""}
      </slot>`}};Ra.styles=[ds,Cn,An,l`
      :host {
        display: inline-block;
        vertical-align: middle;
      }

      .main-slot {
        width: 100%;
        display: flex;
        min-width: 0;
      }
      .hidden {
        display: none;
      }

      ::slotted(sonic-button),
      ::slotted(sonic-input),
      ::slotted(sonic-select) {
        flex-grow: 1;
      }
    `],Ba([ft({type:String})],Ra.prototype,"alignItems",2),Ba([ft({type:String})],Ra.prototype,"label",2),Ba([ft({type:String})],Ra.prototype,"description",2),Ba([_t({slot:"label",flatten:!0})],Ra.prototype,"slotLabelNodes",2),Ba([_t({slot:"description",flatten:!0})],Ra.prototype,"slotDescriptionNodes",2),Ba([vt()],Ra.prototype,"hasDescription",2),Ba([vt()],Ra.prototype,"hasLabel",2),Ra=Ba([ut("sonic-group")],Ra);var Na=Object.defineProperty,Fa=Object.getOwnPropertyDescriptor,qa=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Fa(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Na(e,i,r),r};let Ha=class extends pt{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}firstUpdated(t){var e;if(this.transition){const t=null==(e=this.shadowRoot)?void 0:e.querySelector("img");if(!t)return;t.onload=function(){t.classList.add("loaded")}}super.firstUpdated(t)}render(){const t={aspectRatio:this.cover?"auto":this.ratio,imageRendering:this.imageRendering,objectPosition:this.objectPosition};return V`<div part="image">
      <picture part="picture"
        ><img
          part="img"
          src="${this.src}"
          loading="${this.loading}"
          alt="${this.alt}"
          style=${pi(t)}
      /></picture>
    </div>`}};Ha.styles=[l`
      :host {
        --sc-img-radius: 0;
        --sc-img-bg: var(--sc-placeholder-bg, rgba(12, 12, 12, 0.05));
        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;
      }

      /*Rounded*/
      :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);
      }

      /*Cercle*/
      :host([rounded="full"]) {
        --sc-img-radius: 50% !important;
      }
      :host([rounded="none"]) {
        --sc-img-radius: 0 !important;
      }

      :host([cover]),
      :host([cover]) > div,
      :host([cover]) img {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        height: 100% !important;
        width: 100% !important;
      }

      :host([transition]) img {
        opacity: 0;
        transition: 0.25s;
      }

      :host([transition="fade-scale-out"]) img {
        scale: 1.08;
        transition: opacity 0.3s linear,
          scale 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      }
      :host([transition]) img.loaded {
        opacity: 1;
        scale: 1;
      }
    `],qa([ft({type:String})],Ha.prototype,"rounded",2),qa([ft({type:String})],Ha.prototype,"src",2),qa([ft({type:String})],Ha.prototype,"alt",2),qa([ft({type:String})],Ha.prototype,"loading",2),qa([ft({type:String,reflect:!0})],Ha.prototype,"transition",2),qa([ft({type:String})],Ha.prototype,"ratio",2),qa([ft({type:String})],Ha.prototype,"objectPosition",2),qa([ft({type:String})],Ha.prototype,"imageRendering",2),qa([ft({type:Boolean,reflect:!0})],Ha.prototype,"cover",2),Ha=qa([ut("sonic-image")],Ha);var Ua=Object.defineProperty,Va=Object.getOwnPropertyDescriptor,Wa=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Va(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Ua(e,i,r),r};let Za=class extends pt{constructor(){super(...arguments),this.direction="column",this.gap="var(--sc-menu-gap)",this.align="left",this.shadow=null,this.moreShape="circle",this.scrollable=!1,this.observer=null,this.minWidth="0",this.hasMoreElements=!1,this.updateIsScollable=()=>{this.scrollable&&(this.initScrollable(),this.setScrollShadow(this,this.direction))}}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),this.updateIsScollable()}connectedCallback(){this.observer=new ResizeObserver(this.updateIsScollable),this.observer.observe(this),super.connectedCallback()}disconnectedCallback(){var t;null==(t=this.observer)||t.disconnect(),super.disconnectedCallback()}initScrollable(){let t,e,i=!1;this.scrollable&&(this.addEventListener("mousedown",(s=>{i=!0,this.classList.add("active"),t=s.pageX-this.offsetLeft,e=this.scrollLeft})),this.addEventListener("mouseleave",(()=>{i=!1,this.classList.remove("active")})),this.addEventListener("mouseup",(()=>{i=!1,this.classList.remove("active")})),this.addEventListener("mousemove",(s=>{if(!i)return;s.preventDefault();const o=1.5*(s.pageX-this.offsetLeft-t);this.scrollLeft=e-o,this.setScrollShadow(this,this.direction)})),this.addEventListener("scroll",(t=>{t.preventDefault(),this.setScrollShadow(this,this.direction)})))}setScrollShadow(t,e){"row"==e?(t.scrollLeft>0?this.classList.add("shadow-left"):this.classList.remove("shadow-left"),t.scrollLeft<t.scrollWidth-t.offsetWidth?this.classList.add("shadow-right"):this.classList.remove("shadow-right")):"column"==e&&(t.scrollTop>0?this.classList.add("shadow-top"):this.classList.remove("shadow-top"),t.scrollTop<t.scrollHeight-(t.offsetHeight+1)?this.classList.add("shadow-bottom"):this.classList.remove("shadow-bottom"))}setChildrenSize(t){t.forEach((t=>{this.size&&t.setAttribute("size",this.size),this.align&&"square"!=t.getAttribute("shape")&&"circle"!=t.getAttribute("shape")&&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,i={display:"block",alignSelf:e?"center":"flex-start",justifySelf:"center",flexDirection:this.direction},s={marginLeft:e?"":".55em"};return V`<menu
      part="menu"
      class="shadowable"
      style=${pi(t)}
    >
      <slot @slotchange=${this.mainSlotChange}></slot>
      <sonic-pop
        style=${pi(i)}
        class=${this.hasMoreElements?"":"hidden"}
      >
        <sonic-menu-item
          style=${pi(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>`}};Za.styles=[l`
      :host {
        display: block;
        --sc-menu-gap: 0.15rem;
      }

      :host > menu {
        display: flex;
        border-radius: min(calc(var(--sc-btn-rounded) * 2), 0.4em);
        margin: 0;
        padding: 0.35em;
      }

      .hidden {
        display: none !important;
      }

      /* SCROLLABLE*/
      :host([scrollable]) {
        scrollbar-width: none;
        -ms-overflow-style: none;
      }
      :host([scrollable]) menu > * {
        scroll-snap-align: start;
        white-space: nowrap;
      }
      :host([scrollable][direction="row"]) {
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
      }
      :host([scrollable][direction="column"]) {
        overflow-y: scroll;
        scroll-snap-type: y mandatory;
      }
      :host([scrollable])::-webkit-scrollbar {
        display: none !important;
      }
      :host([scrollable][direction="row"].shadow-right) {
        -webkit-mask-image: linear-gradient(
          to left,
          rgba(0, 0, 0, 0),
          rgba(0, 0, 0, 1) 10%
        );
        mask-image: linear-gradient(
          to left,
          rgba(0, 0, 0, 0),
          rgba(0, 0, 0, 1) 10%
        );
      }
      :host([scrollable][direction="row"].shadow-left) {
        -webkit-mask-image: linear-gradient(
          to right,
          rgba(0, 0, 0, 0),
          rgba(0, 0, 0, 1) 10%
        );
        mask-image: linear-gradient(
          to right,
          rgba(0, 0, 0, 0),
          rgba(0, 0, 0, 1) 10%
        );
      }
      :host([scrollable][direction="row"].shadow-left.shadow-right) {
        -webkit-mask-image: linear-gradient(
          to right,
          rgba(0, 0, 0, 0) 0%,
          rgba(0, 0, 0, 1) 10%,
          rgba(0, 0, 0, 1) 90%,
          rgba(0, 0, 0, 0) 100%
        );
        mask-image: linear-gradient(
          to right,
          rgba(0, 0, 0, 0) 0%,
          rgba(0, 0, 0, 1) 10%,
          rgba(0, 0, 0, 1) 90%,
          rgba(0, 0, 0, 0) 100%
        );
      }
      :host([scrollable][direction="column"].shadow-top) {
        -webkit-mask-image: linear-gradient(
          to bottom,
          rgba(0, 0, 0, 0),
          rgba(0, 0, 0, 1) 10%
        );
        mask-image: linear-gradient(
          to bottom,
          rgba(0, 0, 0, 0),
          rgba(0, 0, 0, 1) 10%
        );
      }
      :host([scrollable][direction="column"].shadow-bottom) {
        -webkit-mask-image: linear-gradient(
          to top,
          rgba(0, 0, 0, 0),
          rgba(0, 0, 0, 1) 10%
        );
        mask-image: linear-gradient(
          to top,
          rgba(0, 0, 0, 0),
          rgba(0, 0, 0, 1) 10%
        );
      }
      :host([scrollable][direction="column"].shadow-top.shadow-bottom) {
        -webkit-mask-image: linear-gradient(
          to top,
          rgba(0, 0, 0, 0) 0%,
          rgba(0, 0, 0, 1) 10%,
          rgba(0, 0, 0, 1) 90%,
          rgba(0, 0, 0, 0) 100%
        );
        mask-image: linear-gradient(
          to bottom,
          rgba(0, 0, 0, 0) 0%,
          rgba(0, 0, 0, 1) 10%,
          rgba(0, 0, 0, 1) 90%,
          rgba(0, 0, 0, 0) 100%
        );
      }
    `,jn],Wa([ft({type:String,reflect:!0})],Za.prototype,"size",2),Wa([ft({type:String,reflect:!0})],Za.prototype,"direction",2),Wa([ft({type:String})],Za.prototype,"gap",2),Wa([ft({type:String,reflect:!0})],Za.prototype,"align",2),Wa([ft({type:String,reflect:!0})],Za.prototype,"shadow",2),Wa([ft({type:String})],Za.prototype,"moreShape",2),Wa([ft({type:Boolean})],Za.prototype,"scrollable",2),Wa([ft({type:String})],Za.prototype,"minWidth",2),Wa([bt("menu")],Za.prototype,"menu",2),Wa([xt({selector:"sonic-menu-item"})],Za.prototype,"menuChildren",2),Wa([xt({slot:"more",selector:"*"})],Za.prototype,"moreElements",2),Wa([vt()],Za.prototype,"hasMoreElements",2),Za=Wa([ut("sonic-menu")],Za);var Ya=Object.defineProperty,Ga=Object.getOwnPropertyDescriptor,Ka=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Ga(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Ya(e,i,r),r};let Qa=class extends pt{firstUpdated(t){var e;null==(e=this.buttons)||e.forEach((t=>{t.addEventListener("click",(()=>{if("false"!=t.getAttribute("hideModal")){const t=Ci.getClosestElement(this,"sonic-modal");null==t||t.hide()}}))})),super.firstUpdated(t)}render(){return V`<slot></slot>`}};Qa.styles=[l`
      :host {
        display: flex;
        gap: 0.5rem;
        margin-top: auto;
        padding-top: 1.5rem;
      }
    `],Ka([xt({selector:"sonic-button"})],Qa.prototype,"buttons",2),Qa=Ka([ut("sonic-modal-actions")],Qa);var Xa=Object.defineProperty,Ja=Object.getOwnPropertyDescriptor,tl=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Ja(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Xa(e,i,r),r};let el=class extends pt{render(){return V`<sonic-button reset=${li(this.reset)} shape="circle" @click=${this.handleClick}
      ><sonic-icon name="cancel" size="lg"></sonic-icon
    ></sonic-button>`}handleClick(){kt.getClosestElement(this,"sonic-modal").hide()}};el.styles=[l`
      :host {
        position: sticky;
        display: block;
        align-self: flex-end;
        height: 0;
        top: 0.5rem;
        right: 0.5rem;
        transform: translate3d(calc(var(--sc-modal-px)), calc(-1 * var(--sc-modal-py)), 0);
        z-index: 20;
      }
    `],tl([ft()],el.prototype,"reset",2),el=tl([ut("sonic-modal-close")],el);var il=Object.defineProperty,sl=Object.getOwnPropertyDescriptor;let ol=class extends pt{render(){return V`<slot></slot>`}};ol.styles=[l`
      :host {
        display: block;
        width: 100%;
      }
    `],ol=((t,e,i,s)=>{for(var o,r=s>1?void 0:s?sl(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&il(e,i,r),r})([ut("sonic-modal-content")],ol);var rl=Object.defineProperty,nl=Object.getOwnPropertyDescriptor;let al=class extends pt{render(){return V`<slot></slot>`}};al.styles=[l`
      :host {
        font-size: 1.1rem;
        display: block;
        line-height: 1.1rem;
        line-height: var(--sc-headings-line-height, 1.1);
        font-family: var(
          --sc-headings-font-family,
          var(--sc-font-family-base, sans-serif)
        );
        font-weight: var(--sc-headings-font-weight, 700);
        font-style: var(--sc-headings-font-style, normal);
      }
    `],al=((t,e,i,s)=>{for(var o,r=s>1?void 0:s?nl(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&rl(e,i,r),r})([ut("sonic-modal-subtitle")],al);var ll=Object.defineProperty,cl=Object.getOwnPropertyDescriptor;let dl=class extends pt{render(){return V`<slot></slot>`}};dl.styles=[l`
      :host {
        font-weight: bold;
        font-size: 1.5rem;
        display: block;
        line-height: var(--sc-headings-line-height, 1.1);
        font-family: var(
          --sc-headings-font-family,
          var(--sc-font-family-base, sans-serif)
        );
        font-weight: var(--sc-headings-font-weight, 700);
        font-style: var(--sc-headings-font-style, normal);
      }
    `],dl=((t,e,i,s)=>{for(var o,r=s>1?void 0:s?cl(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&ll(e,i,r),r})([ut("sonic-modal-title")],dl);var pl=Object.defineProperty,hl=Object.getOwnPropertyDescriptor,ul=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?hl(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&pl(e,i,r),r};const ml="sonic-modal";let gl=class extends(Le(pt)){constructor(){super(...arguments),this.forceAction=!1,this.removeOnHide=!1,this.removeHashOnHide=!1,this.align="left",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.zIndex="var(--sc-modal-z-index)",this.fullScreen=!1,this.visible=!1}static create(t){const e=document.createElement(ml);e.options=t,!0===t.removeHashOnHide&&e.setAttribute("removeHashOnHide","true"),!0===t.removeOnHide&&e.setAttribute("removeOnHide","true"),t.maxWidth&&(e.maxWidth=null==t?void 0:t.maxWidth),t.width&&(e.width=null==t?void 0:t.width),t.maxHeight&&(e.maxHeight=null==t?void 0:t.maxHeight),t.height&&(e.height=null==t?void 0:t.height),t.forceAction&&(e.forceAction=!0),t.fullScreen&&(e.fullScreen=null==t?void 0:t.fullScreen),t.effect&&(e.effect=null==t?void 0:t.effect),t.paddingX&&e.style.setProperty("--sc-modal-px",null==t?void 0:t.paddingX),t.paddingY&&e.style.setProperty("--sc-modal-py",null==t?void 0:t.paddingY),t.zIndex&&e.style.setProperty("--sc-modal-z-index",null==t?void 0:t.zIndex);return Wi.getPopContainer().appendChild(e),e.show(),e}connectedCallback(){gl.modals.push(this),super.connectedCallback(),this.handleFullsceen()}disconnectedCallback(){gl.modals.splice(gl.modals.indexOf(this),1),super.disconnectedCallback()}updated(){const t=this;document.addEventListener("keydown",this.handleEscape),t.closeBtn.forEach((e=>{e.addEventListener("click",(function(){t.hide()}),{once:!0})}))}willUpdate(t){t.has("fullScreen")&&this.handleFullsceen(),t.has("effect")&&("fade"==this.effect?this.animation={keyframeOptions:{duration:400},in:He,out:qe}:"none"==this.effect?this.animation=void 0:this.animation={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}]}),super.willUpdate(t)}render(){if(0==this.visible)return Z;const t={padding:this.padding,maxWidth:this.maxWidth,maxHeight:this.maxHeight,width:this.width,height:this.height,zIndex:this.zIndex,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 V`<div
        class="modal-wrapper"
        style=${pi(e)}
        ${Ke({out:qe})}
        tabindex="0"
      >
        <div
          part="modal"
          class="modal custom-scroll"
          style=${pi(t)}
          ${Ke(this.animation)}
        >
          <div class="modal-content">
            ${this.forceAction?Z:V`<sonic-modal-close></sonic-modal-close>`}
            ${this.modalFragment("title")} ${this.modalFragment("subtitle")}
            ${this.modalFragment("content")} ${this.modalFragment("actions")}

            <slot></slot>
          </div>
        </div>
      </div>
      <div
        class="overlay"
        @click="${this.forceAction?null:this.hide}"
        ${Ke({keyframeOptions:{duration:500},in:He,out:[{opacity:0,pointerEvents:"none"}]})}
      ></div>`}modalFragment(t){var e;const i=null==(e=this.options)?void 0:e[t];if(!i)return Z;let s;switch(s=i instanceof Object?i:_e(i),t){case"title":return V`<sonic-modal-title>${s}</sonic-modal-title>`;case"subtitle":return V`<sonic-modal-subtitle>${s}</sonic-modal-subtitle>`;case"content":return V`<sonic-modal-content>${s}</sonic-modal-content>`;case"actions":return V`<sonic-modal-actions>${s}</sonic-modal-actions>`;default:return Z}}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")),this.hasAttribute("resetDataProviderOnHide")&&Ti.get(this.getAttribute("resetDataProviderOnHide")).set({}),setTimeout((()=>{this.removeHashOnHide&&window.history.replaceState({},"",window.location.pathname),this.removeOnHide&&this.remove(),this.dispatchEvent(new CustomEvent("hidden"))}),480)}dispose(){this.hide(),this.remove()}static disposeAll(){gl.modals.forEach((t=>{t.dispose()}))}handleEscape(t){"Escape"===t.key&&gl.modals.forEach((t=>{t.forceAction||t.hide()}))}handleFullsceen(){this.fullScreen&&(this.width="100%",this.height="100%",this.maxWidth="none",this.maxHeight="none")}};gl.styles=[hi,l`
      :host {
        --sc-modal-py: 2.5rem;
        --sc-modal-px: 1.5rem;
        --sc-modal-max-w: min(100vw, 40rem);
        --sc-modal-max-h: 85vh;
        --sc-modal-rounded: var(--sc-rounded-lg);
        --sc-modal-z-index: 990;
      }

      * {
        box-sizing: border-box;
      }

      .modal-wrapper {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: calc(var(--sc-modal-z-index) + 1);
        align-items: center;
        justify-content: center;
        flex-direction: column;
        display: flex;
        pointer-events: none;
      }

      .modal-content {
        display: flex;
        flex-direction: column;
        min-height: 10rem;
        line-height: 1.25;
      }

      .modal {
        background: var(--sc-base, #fff);
        color: var(--sc-base-content, #000);
        width: 100%;
        box-shadow: var(--sc-shadow-lg);
        border-radius: var(--sc-modal-rounded) var(--sc-modal-rounded) 0 0;
        pointer-events: auto;
        /*overflow: hidden;*/
        transform: translateZ(0);
      }

      .overlay {
        background: var(
          --sc-modal-overlay-bg,
          var(--sc-base-200, rgba(0, 0, 0, 0.12))
        );
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: var(--sc-modal-z-index);
        opacity: 0.8;
        position: fixed;
      }

      ::slotted(sonic-modal-title),
      sonic-modal-title {
        margin-bottom: 1.25rem;
      }
      :host([align="left"]) ::slotted(sonic-modal-title),
      :host([align="left"]) sonic-modal-title {
        padding-right: 1em;
      }

      ::slotted(sonic-modal-subtitle),
      sonic-modal-subtitle {
        margin-top: -0.9rem;
        margin-bottom: 1.25rem;
      }

      @media (max-width: 767.5px) {
        .modal-wrapper,
        .modal {
          max-width: none !important;
          width: 100% !important;
          border-radius: var(--sc-modal-rounded) var(--sc-modal-rounded) 0 0 !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="center"]) .modal-content {
        text-align: center;
        align-items: center;
      }

      :host([align="right"]) .modal-content {
        text-align: right;
        align-items: flex-end;
      }

      /* Border radius */
      :host([rounded="none"]) modal {
        --sc-img-radius: 0 !important;
      }
    `],gl.modals=[],ul([ft({type:Boolean})],gl.prototype,"forceAction",2),ul([ft({type:Boolean})],gl.prototype,"removeOnHide",2),ul([ft({type:Boolean})],gl.prototype,"removeHashOnHide",2),ul([ft({type:String,reflect:!0})],gl.prototype,"align",2),ul([ft({type:String})],gl.prototype,"padding",2),ul([ft({type:String})],gl.prototype,"maxWidth",2),ul([ft({type:String})],gl.prototype,"maxHeight",2),ul([ft({type:String})],gl.prototype,"width",2),ul([ft({type:String})],gl.prototype,"height",2),ul([ft({type:String})],gl.prototype,"zIndex",2),ul([ft({type:String})],gl.prototype,"effect",2),ul([ft({type:Object})],gl.prototype,"options",2),ul([ft({type:Boolean,reflect:!0})],gl.prototype,"fullScreen",2),ul([ft({type:Boolean,reflect:!0})],gl.prototype,"visible",2),ul([ft({type:Object})],gl.prototype,"animation",2),ul([bt(".modal-wrapper")],gl.prototype,"modalWrapper",2),ul([bt(".modal")],gl.prototype,"modalElement",2),ul([xt({selector:"sonic-modal-close"})],gl.prototype,"closeBtn",2),gl=ul([ut(ml)],gl),"undefined"!=typeof window&&(window.SonicModal=gl);var fl=Object.defineProperty,vl=Object.getOwnPropertyDescriptor,yl=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?vl(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&fl(e,i,r),r};const bl={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty",default:"info-empty"};let wl=class extends pt{constructor(){super(...arguments),this.label="",this.noIcon=!1,this.text="",this.id=(new Date).getTime().toString(),this.dismissible=!1,this.background=!1,this.status="default",this.dismissForever=!1}render(){if(this.dismissForever){const t=localStorage.getItem("sonic-alert-dismissed")||"{}";if(JSON.parse(t)[this.id])return Z}return V`
      <slot name="icon" class="${this.noIcon?"hidden":""}"
        >${this.noIcon?Z:V`<div>
              ${this.status&&V`<sonic-icon name=${bl[this.status]}></sonic-icon>`}
            </div>`}</slot
      >
      <div class="content">
        ${this.label?V`<span class="label">${_e(this.label)}</span>`:Z}
        <div>${this.text}<slot></slot></div>
      </div>
      ${this.dismissible?V`<sonic-button
            @click=${this.close}
            class="close-btn"
            variant="unstyled"
            shape="circle"
            icon
          >
            <sonic-icon name="cancel"></sonic-icon>
          </sonic-button>`:Z}
    `}close(){if(this.remove(),this.dismissForever){const t=localStorage.getItem("sonic-alert-dismissed")||"{}",e=JSON.parse(t);e[this.id]=!0,localStorage.setItem("sonic-alert-dismissed",JSON.stringify(e))}}};wl.styles=[ds,l`
      :host {
        --sc_color: var(--sc-base-content, #000);
        --sc_rounded: var(--sc-rounded);
        --sc_fw: var(--sc-font-weight-base, 400);
        --sc_fst: var(--sc-font-style-base, normal);
        --sc_label-fw: bold;

        font-weight: var(--sc_fw);
        font-style: var(--sc_fst);
        color: var(--sc_color);
        position: relative;
        display: flex;
        gap: 0.4em;
        border-radius: var(--sc_rounded);
      }

      .label {
        font-weight: var(--sc_label-fw);
        margin-bottom: 0.15em;
        display: block;
      }

      :host([status="warning"]) {
        --sc_color: var(--sc-warning, var(--sc-base-content, #000));
      }
      :host([status="error"]) {
        --sc_color: var(--sc-danger, var(--sc-base-content, #000));
      }
      :host([status="info"]) {
        --sc_color: var(--sc-info, var(--sc-base-content, #000));
      }
      :host([status="success"]) {
        --sc_color: var(--sc-success, var(--sc-base-content, #000));
      }

      /*background*/
      :host([dismissible]),
      :host([background]) {
        background: var(--sc-base, #fff);
        padding: 0.8em 1.15em;
      }
      :host([dismissible]):before,
      :host([background]):before {
        background-color: currentColor;
        content: "";
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        opacity: 0.08;
        border-radius: var(--sc_rounded);
        pointer-events: none;
      }

      .content {
        z-index: 2;
        position: relative;
        flex: 1;
      }

      slot {
        display: block;
      }

      .hidden {
        display: none !important;
      }

      /*Rounded*/
      :host([size="2xs"]),
      :host([size="xs"]),
      :host([size="sm"]) {
        --sc_rounded: var(--sc-rounded-sm);
      }

      /*Dismissible*/
      :host([dismissible]) {
        padding-right: 3rem;
      }
      :host([dismissible]) .close-btn {
        position: absolute;
        top: 0.4rem;
        right: 0.3rem;
      }
    `],yl([ft({type:String})],wl.prototype,"label",2),yl([ft({type:Boolean,reflect:!0})],wl.prototype,"noIcon",2),yl([ft({type:String})],wl.prototype,"text",2),yl([ft({type:String})],wl.prototype,"id",2),yl([ft({type:String,reflect:!0})],wl.prototype,"size",2),yl([ft({type:Boolean,reflect:!0})],wl.prototype,"dismissible",2),yl([ft({type:Boolean,reflect:!0})],wl.prototype,"background",2),yl([ft({type:String,reflect:!0})],wl.prototype,"status",2),yl([ft({type:Boolean,reflect:!0})],wl.prototype,"dismissForever",2),wl=yl([ut("sonic-alert")],wl);var xl=Object.defineProperty,_l=Object.getOwnPropertyDescriptor,kl=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?_l(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&xl(e,i,r),r};let $l=class extends(Le(pt)){constructor(){super(...arguments),this.size="md",this.background=!1,this.noIcon=!1,this.messages=[]}render(){var t;return(null==(t=this.messages)?void 0:t.length)?V`<div class="container">
      ${Er(this.messages,(t=>"public"==t.type?V`<sonic-alert
            status=${t.status||"default"}
            text=${li(t.content)}
            size=${this.size}
            ?noIcon=${this.noIcon}
            ?background=${this.background}
          ></sonic-alert>`:Z))}
    </div>`:Z}};$l.styles=[l`
      .container {
        display: grid;
        gap: 0.5em;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
      }
    `],kl([ft({type:String})],$l.prototype,"size",2),kl([ft({type:Boolean})],$l.prototype,"background",2),kl([ft({type:Boolean})],$l.prototype,"noIcon",2),kl([ft({type:Array})],$l.prototype,"messages",2),$l=kl([ut("sonic-alert-messages")],$l);var Pl=Object.defineProperty,Sl=Object.getOwnPropertyDescriptor,Cl=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Sl(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Pl(e,i,r),r};let Al=class extends pt{constructor(){super(...arguments),this.label="",this.disabled=!1,this.focusable=!1}connectedCallback(){this.focusable&&this.setAttribute("tabindex","0"),super.connectedCallback()}render(){const t=this.disabled||""==this.label?"disabled":"";return V`<div
      data-tooltip-text="${this.label.trim().replace("&nbsp;"," ")}"
      class="tooltip ${t}"
    >
      <slot></slot>
    </div>`}};Al.styles=[l`
      :host {
        position: relative;
        display: inline-flex;
        align-items: center;
        text-align: center;
        --sc-tooltip-fw: var(--sc-font-weight-base, 400);
        --sc-tooltip-position: calc(100% + 0.25rem);
      }

      .tooltip:before {
        position: absolute;
        content: attr(data-tooltip-text);
        font-size: 0.85rem;
        display: block;
        opacity: 0;
        pointer-events: none;
        background: var(--sc-base-content, #000);
        padding: 0.32rem 0.55rem;
        border-radius: var(--sc-rounded);
        color: var(--sc-base, #fff);
        z-index: 999;
        line-height: 1.1;
        width: max-content;
        max-width: 18rem;
        white-space: pre-line;
        font-weight: var(--sc-tooltip-fw);
        transition: 0.2s;
        scale: 0.9;
        will-change: opacity, transform;
      }
      :host(:focus-within) .tooltip:not(.disabled):before,
      .tooltip:not(.disabled):hover:before {
        opacity: 1;
        scale: 1;
      }

      :host(:not([placement])) .tooltip:before,
      :host([placement="top"]) .tooltip:before {
        bottom: var(--sc-tooltip-position);
        left: 50%;
        transform: translateX(-50%);
      }

      :host([placement="top-end"]) .tooltip:before {
        bottom: var(--sc-tooltip-position);
        right: 0;
      }
      :host([placement="top-start"]) .tooltip:before {
        bottom: var(--sc-tooltip-position);
        left: 0;
      }

      :host([placement="bottom"]) .tooltip:before {
        top: var(--sc-tooltip-position);
        left: 50%;
        transform: translateX(-50%);
      }

      :host([placement="bottom-start"]) .tooltip:before {
        top: var(--sc-tooltip-position);
        left: 0;
      }
      :host([placement="bottom-end"]) .tooltip:before {
        top: var(--sc-tooltip-position);
        right: 0;
      }

      :host([placement="left"]) .tooltip:before {
        top: 50%;
        right: var(--sc-tooltip-position);
        transform: translateY(-50%);
      }

      :host([placement="left-start"]) .tooltip:before {
        top: 0;
        right: var(--sc-tooltip-position);
      }

      :host([placement="left-end"]) .tooltip:before {
        bottom: 0;
        right: var(--sc-tooltip-position);
      }

      :host([placement="right"]) .tooltip:before {
        top: 50%;
        transform: translateY(-50%);
        left: var(--sc-tooltip-position);
      }

      :host([placement="right-start"]) .tooltip:before {
        top: 0;
        left: var(--sc-tooltip-position);
      }

      :host([placement="right-end"]) .tooltip:before {
        bottom: 0;
        left: var(--sc-tooltip-position);
      }
    `],Cl([ft({type:String})],Al.prototype,"label",2),Cl([ft({type:String,reflect:!0})],Al.prototype,"placement",2),Cl([ft({type:Boolean})],Al.prototype,"disabled",2),Cl([ft({type:Boolean})],Al.prototype,"focusable",2),Al=Cl([ut("sonic-tooltip")],Al);var Ol=Object.defineProperty,El=Object.getOwnPropertyDescriptor,Tl=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?El(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Ol(e,i,r),r};let Ml=class extends pt{constructor(){super(...arguments),this.label="",this.align="center",this.vertical=!1,this.noMargin=!1,this.dashed=!1,this.dotted=!1}firstUpdated(t){var e,i;super.firstUpdated(t),(this.label||(null==(e=this.slotNodes)?void 0:e.length))&&(null==(i=this.divider)||i.classList.add("has-text"))}render(){return V`<div part="divider">
      <span class="text"
        >${_e(this.label?this.label:"")}<slot></slot
      ></span>
    </div>`}};Ml.styles=[l`
      :host {
        --sc-divider-my: 0.5rem;
        --sc-divider-mx: 0;
        --sc-divider-border-width: max(
          1px,
          var(--sc-border-width, max(1px, 0.12rem))
        );
        --sc-divider-border-color: var(--sc-border-color);
        --sc-divider-border-style: solid;
        --sc-divider-color: currentColor;
        --sc-divider-ff: var(--sc-font-family-base, sans-serif);
        --sc-divider-fs: 1rem;
        --sc-divider-fw: var(--sc-font-weight-base, 400);
        --sc-divider-fst: var(--sc-font-style-base, normal);

        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;
      }

      /*SIZE*/
      :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,
      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%;
        opacity: var(--sc-divider-opacity, 1);
      }

      /*ALIGNEMENT*/
      :host([align="left"]) div:before {
        display: none;
      }

      :host([align="right"]) div:after {
        display: none;
      }

      :host([vertical]) {
        margin: var(--sc-divider-mx) var(--sc-divider-my);
      }

      :host([vertical]) div {
        flex-direction: column;
        height: 100%;
        min-height: var(--sc-form-height, 2.5em);
      }

      :host([vertical]) .has-text {
        gap: 0.25rem;
      }

      :host([vertical]) div::before,
      :host([vertical]) div::after {
        border-top: none;
        border-left: var(--sc-divider-border-width)
          var(--sc-divider-border-style) var(--sc-divider-border-color);
        width: auto;
        height: 100%;
        opacity: var(--sc-divider-opacity, 1);
      }

      :host([noMargin]) {
        margin: 0;
      }

      /*TEXT*/
      .text {
        flex-shrink: 0;
        line-height: 1.1;
        max-width: 80%;
      }

      .no-text .text {
        display: none;
      }

      .has-text {
        gap: 0.5rem;
      }

      :host([dotted]) {
        --sc-divider-border-style: dotted;
      }
      :host([dashed]) {
        --sc-divider-border-style: dashed;
      }
    `],Tl([_t({flatten:!0})],Ml.prototype,"slotNodes",2),Tl([bt("div")],Ml.prototype,"divider",2),Tl([ft({type:String})],Ml.prototype,"label",2),Tl([ft({type:String,reflect:!0})],Ml.prototype,"size",2),Tl([ft({type:String,reflect:!0})],Ml.prototype,"align",2),Tl([ft({type:Boolean,reflect:!0})],Ml.prototype,"vertical",2),Tl([ft({type:Boolean,reflect:!0})],Ml.prototype,"noMargin",2),Tl([ft({type:Boolean,reflect:!0})],Ml.prototype,"dashed",2),Tl([ft({type:Boolean,reflect:!0})],Ml.prototype,"dotted",2),Ml=Tl([ut("sonic-divider")],Ml);var Dl=Object.defineProperty,Ll=Object.getOwnPropertyDescriptor;let jl=class extends pt{render(){return V`<slot></slot>`}};jl.styles=[l`
      :host() {
        display: block;
        font-size: 0.7em;
        line-height: 1.1;
        font-family: var(--sc-font-family-base, sans-serif);
        font-weight: var(--sc-font-style-base, normal);
      }
    `],jl=((t,e,i,s)=>{for(var o,r=s>1?void 0:s?Ll(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Dl(e,i,r),r})([ut("sonic-card-header-description")],jl);var Il=Object.defineProperty,zl=Object.getOwnPropertyDescriptor,Bl=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?zl(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Il(e,i,r),r};let Rl=class extends pt{render(){return V`
      <div class="header-content">
        ${_e(this.label)}
        ${this.description?V`<sonic-card-header-description
              >${_e(this.description)}</sonic-card-header-description
            >`:Z}
        <slot></slot>
      </div>
      <slot name="suffix"></slot>
    `}};Rl.styles=[l`
      :host {
        --sc-card-header-mb: 1.35rem;
        --sc-card-header-font-size: 1.875rem;
        --sc-card-header-font-weight: var(--sc-headings-font-weight, 700);
        --sc-card-header-font-style: var(--sc-headings-font-style, normal);
        --sc-card-header-family: var(
          --sc-headings-font-family,
          var(--sc-font-family-base, sans-serif)
        );
        --sc-card-header-line-height: var(--sc-headings-line-height, 1.1);
        display: flex;
        align-items: flex-start;
        gap: 0.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);
      }
      @media print {
        :host {
          --sc-card-header-font-size: 1.45rem;
        }
      }

      .header-content {
        flex-grow: 1;
      }

      slot[name="suffix"] {
        flex-shrink: 0;
      }

      ::slotted(sonic-card-header-description) {
        margin-top: 0.1em;
      }
    `],Bl([ft()],Rl.prototype,"label",2),Bl([ft()],Rl.prototype,"description",2),Rl=Bl([ut("sonic-card-header")],Rl);var Nl=Object.defineProperty,Fl=Object.getOwnPropertyDescriptor;let ql=class extends pt{render(){return V`<slot></slot>`}};ql.styles=[l`
      :host {
        display: block;
      }
    `],ql=((t,e,i,s)=>{for(var o,r=s>1?void 0:s?Fl(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Nl(e,i,r),r})([ut("sonic-card-main")],ql);var Hl=Object.defineProperty,Ul=Object.getOwnPropertyDescriptor;let Vl=class extends pt{render(){return V` <slot></slot> `}};Vl.styles=[l`
      :host {
        display: block;
      }
    `],Vl=((t,e,i,s)=>{for(var o,r=s>1?void 0:s?Ul(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Hl(e,i,r),r})([ut("sonic-card-footer")],Vl);const Wl=l`
  :host {
    --sc-_color: inherit;
    color: var(--sc-_color);
  }

  :host([type="primary"]) {
    --sc-_color: var(--sc-primary, var(--sc-base-content, #000));
  }
  :host([type="warning"]) {
    --sc-_color: var(--sc-warning, var(--sc-base-content, #000));
  }
  :host([type="danger"]) {
    --sc-_color: var(--sc-danger, var(--sc-base-content, #000));
  }
  :host([type="info"]) {
    --sc-_color: var(--sc-info, var(--sc-base-content, #000));
  }
  :host([type="success"]) {
    --sc-_color: var(--sc-success, var(--sc-base-content, #000));
  }

  .inherit-color {
    color: var(--sc-_color);
  }
`,Zl=l`
  :host {
    --sc-_color: inherit;
    --sc-_bg: inherit;
    color: var(--sc-_color);
    background: var(--sc-_bg);
  }

  /*TYPES*/
  :host([type="primary"]) {
    --sc-_bg: var(--sc-primary, var(--sc-base-content, #000));
    --sc-_color: var(--sc-primary-content, var(--sc-base, #fff));
  }
  :host([type="warning"]) {
    --sc-_bg: var(--sc-warning, var(--sc-base-content, #000));
    --sc-_color: var(--sc-warning-content, var(--sc-base, #fff));
  }
  :host([type="danger"]) {
    --sc-_bg: var(--sc-danger, var(--sc-base-content, #000));
    --sc-_color: var(--sc-danger-content, var(--sc-base, #fff));
  }
  :host([type="info"]) {
    --sc-_bg: var(--sc-info, var(--sc-base-content, #000));
    --sc-_color: var(--sc-info-content, var(--sc-base, #fff));
  }
  :host([type="success"]) {
    --sc-_bg: var(--sc-success, var(--sc-base-content, #000));
    --sc-_color: var(--sc-success-content, var(--sc-base, #fff));
  }

  /* dans un contexte de couleur - divider color*/
  :host([type="primary"]),
  :host([type="warning"]),
  :host([type="danger"]),
  :host([type="info"]),
  :host([type="success"]) {
    --sc-border-color: currentColor;
    --sc-divider-opacity: 0.2;
  }

  :host([type="base"]) {
    --sc-_bg: var(--sc-base, #fff);
    --sc-_color: var(--sc-base-content, #000);
  }
  :host([type="default"]),
  :host([type="light"]) {
    --sc-_bg: var(--sc-base-100, rgba(0, 0, 0, 0.07));
    --sc-_color: var(--sc-base-content, #000);
  }

  :host([type="neutral"]) {
    --sc-_bg: var(--sc-base-content, #000);
    --sc-_color: var(--sc-base, #fff);
  }

  :host([type="invert"]) {
    --sc-_bg: var(--sc-base-900, var(--sc-base-content, #000));
    --sc-_color: var(--sc-base, #fff);
  }

  .inherit-bg {
    color: inherit;
  }
`;var Yl=Object.defineProperty,Gl=Object.getOwnPropertyDescriptor,Kl=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Gl(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Yl(e,i,r),r};let Ql=class extends pt{constructor(){super(...arguments),this.type="base"}render(){return V`<slot></slot> `}};Ql.styles=[Zl,l`
      * {
        box-sizing: border-box;
      }
      :host {
        --sc-_padding: 1.5rem;
        --sc-_color: var(--sc-base-content, #000);
        --sc-_bg: var(--sc-base, #fff);
        --sc-_rounded: var(--sc-rounded-lg);
        --sc-_shadow: var(--sc-shadow-lg);
        -webkit-print-color-adjust: exact;
      }

      @media print {
        :host {
          page-break-inside: avoid;
          break-inside: avoid;
          box-shadow: none !important;
          border: 1px solid var(--sc-base-200, rgba(0, 0, 0, 0.12));
        }
      }

      :host {
        display: block;
        padding: var(--sc-_padding);
        background-color: var(--sc-_bg);
        border-radius: var(--sc-_rounded);
        box-shadow: var(--sc-_shadow);
        color: var(--sc-_color);
      }
    `],Kl([ft({type:String,reflect:!0})],Ql.prototype,"type",2),Ql=Kl([ut("sonic-card")],Ql);var Xl=Object.defineProperty,Jl=Object.getOwnPropertyDescriptor,tc=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Jl(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Xl(e,i,r),r};let ec=class extends(Le(pt)){constructor(){super(...arguments),this._metadata_={}}willUpdate(t){t.has("_metadata_")&&(this.even=!!this._metadata_.even,this.odd=!!this._metadata_.odd,this.last=!!this._metadata_.lastChild),super.willUpdate(t)}render(){return V`<slot></slot>`}};ec.styles=[Wl,l`
      :host {
        display: table-row;
      }

      :host([odd]) {
        background: var(--sc-table-accent-bg) !important;
      }
      :host([even]) {
        background: var(--sc-table-bg) !important;
      }

      :host([last]) {
        --sc-table-td-border-b: none;
      }
      :host(:hover) {
        background: var(--sc-table-hover-bg) !important;
      }
    `],tc([ft({type:Object})],ec.prototype,"_metadata_",2),tc([ft({type:Boolean,reflect:!0})],ec.prototype,"even",2),tc([ft({type:Boolean,reflect:!0})],ec.prototype,"odd",2),tc([ft({type:Boolean,reflect:!0})],ec.prototype,"last",2),ec=tc([ut("sonic-tr")],ec);var ic=Object.defineProperty,sc=Object.getOwnPropertyDescriptor,oc=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?sc(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&ic(e,i,r),r};let rc=class extends pt{render(){const t={textAlign:this.align,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return V`<th
      part="th"
      style=${pi(t)}
      colspan=${li(this.colSpan)}
      rowspan=${li(this.rowSpan)}
    >
      <slot></slot>
    </th> `}};rc.styles=[Wl,l`
      :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, max(1px, 0.12rem)) * 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);
      }

      :host([noBorder]) th {
        border-bottom: none;
      }
    `],oc([ft({type:Number})],rc.prototype,"colSpan",2),oc([ft({type:Number})],rc.prototype,"rowSpan",2),oc([ft({type:String})],rc.prototype,"align",2),oc([ft({type:String})],rc.prototype,"minWidth",2),oc([ft({type:String})],rc.prototype,"maxWidth",2),oc([ft({type:String})],rc.prototype,"width",2),rc=oc([ut("sonic-th")],rc);var nc=Object.defineProperty,ac=Object.getOwnPropertyDescriptor,lc=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?ac(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&nc(e,i,r),r};let cc=class extends pt{render(){const t={textAlign:this.align,verticalAlign:this.vAlign,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return V`<td part="td" style=${pi(t)} colspan=${li(this.colSpan)} rowspan=${li(this.rowSpan)}>
      <slot></slot>
    </td>`}};cc.styles=[Wl,l`
      :host {
        display: contents;
      }
      td {
        all: inherit;
        display: table-cell;
        padding: var(--sc-table-td-py) var(--sc-table-td-px);
        border-top: var(--sc-table-td-border-t, none);
        border-bottom: var(--sc-table-td-border-b, none);
        border-right: var(--sc-table-td-border-r, none);
        border-left: var(--sc-table-td-border-l, none);
      }
    `],lc([ft({type:Number})],cc.prototype,"colSpan",2),lc([ft({type:Number})],cc.prototype,"rowSpan",2),lc([ft({type:String})],cc.prototype,"align",2),lc([ft({type:String})],cc.prototype,"vAlign",2),lc([ft({type:String})],cc.prototype,"minWidth",2),lc([ft({type:String})],cc.prototype,"maxWidth",2),lc([ft({type:String})],cc.prototype,"width",2),cc=lc([ut("sonic-td")],cc);var dc=Object.defineProperty,pc=Object.getOwnPropertyDescriptor;let hc=class extends pt{render(){return V`<slot></slot>`}};hc.styles=[l`
      :host {
        display: table-header-group;
      }
    `],hc=((t,e,i,s)=>{for(var o,r=s>1?void 0:s?pc(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&dc(e,i,r),r})([ut("sonic-thead")],hc);var uc=Object.defineProperty,mc=Object.getOwnPropertyDescriptor;let gc=class extends pt{render(){return V`<tbody part="tbody">
      <slot></slot>
    </tbody>`}};gc.styles=[l`
      :host {
        display: table-row-group;
      }

      ::slotted(sonic-tr:nth-child(odd)) {
        background: var(--sc-table-accent-bg);
      }

      ::slotted(sonic-tr:hover) {
        background: var(--sc-table-hover-bg);
      }

      ::slotted(sonic-tr:not(:last-child)) {
        border-bottom: var(--sc-form-border-width) solid
          var(--sc-base-200, rgba(0, 0, 0, 0.12)) !important;
      }
    `],gc=((t,e,i,s)=>{for(var o,r=s>1?void 0:s?mc(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&uc(e,i,r),r})([ut("sonic-tbody")],gc);var fc=Object.defineProperty,vc=Object.getOwnPropertyDescriptor;let yc=class extends pt{render(){return V`<tfoot>
      <slot></slot>
    </tfoot>`}};yc.styles=[l`
      :host {
        display: contents;
      }
    `],yc=((t,e,i,s)=>{for(var o,r=s>1?void 0:s?vc(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&fc(e,i,r),r})([ut("sonic-tfoot")],yc);var bc=Object.defineProperty,wc=Object.getOwnPropertyDescriptor;let xc=class extends pt{render(){return V`<slot></slot>`}};xc.styles=[l`
      :host {
        display: table-caption;
        font-size: 0.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));
      }
    `],xc=((t,e,i,s)=>{for(var o,r=s>1?void 0:s?wc(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&bc(e,i,r),r})([ut("sonic-caption")],xc);var _c=Object.defineProperty,kc=Object.getOwnPropertyDescriptor,$c=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?kc(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&_c(e,i,r),r};let Pc=class extends pt{render(){const t={maxHeight:this.maxHeight};return V`
      <div
        class="table-container ${this.noCustomScroll?"":"custom-scroll"}"
        style=${pi(t)}
      >
        <div class="table">
          <slot></slot>
        </div>
      </div>
    `}};Pc.styles=[hi,ds,l`
      :host {
        --sc-table-fw: var(--sc-font-weight-base, 400);
        --sc-table-fst: var(--sc-font-style-base, normal);
        --sc-table-fs: 1rem;
        --sc-table-border-color: var(--sc-border-color);
        --sc-table-caption-color: var(
          --sc-base-500,
          var(--sc-base-content, #000)
        );
        --sc-table-bg: var(--sc-base, #fff);
        --sc-table-accent-bg: var(--sc-base-50, rgba(0, 0, 0, 0.04));
        --sc-table-hover-bg: var(--sc-base-100, rgba(0, 0, 0, 0.07));
        --sc-table-th-fs: 0.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: 0.5em;
        --sc-table-td-py: 0.5em;
        --sc-table-bw: var(--sc-border-width, max(1px, 0.12rem));
        display: block;
      }

      .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
      }

      :host([noCustomScroll]) .table-container {
        overflow: initial;
      }

      .table {
        width: 100%;
        display: table;
        box-sizing: border-box;
      }

      :host([bordered]) .table-container {
        border: var(--sc-table-bw) solid var(--sc-table-border-color);
        border-radius: var(--sc-rounded);
        --sc-table-td-border-b: var(--sc-table-bw) solid
          var(--sc-table-border-color);
      }
    `],$c([ft({type:String,reflect:!0})],Pc.prototype,"size",2),$c([ft({type:Boolean,reflect:!0})],Pc.prototype,"bordered",2),$c([ft({type:Boolean,reflect:!0})],Pc.prototype,"rounded",2),$c([ft({type:Boolean,reflect:!0})],Pc.prototype,"noCustomScroll",2),$c([ft({type:String})],Pc.prototype,"maxHeight",2),Pc=$c([ut("sonic-table")],Pc);var Sc=Object.defineProperty,Cc=Object.getOwnPropertyDescriptor,Ac=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Cc(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Sc(e,i,r),r};let Oc=class extends(Ls(pt)){constructor(){super(...arguments),this.key="",this.action=null,this.zIndex=9999,this.onCaptchaTokenChanged=t=>{"request_token"==t&&(this.formPublisher&&(this.formPublisher.captchaToken=""),this.requestToken())}}connectedCallback(){if(!document.getElementById("captcha-"+this.key)){const t=document.createElement("script");t.src="https://www.google.com/recaptcha/api.js?render="+this.key,t.id="captcha-"+this.key,document.head.appendChild(t)}if(super.connectedCallback(),this.formPublisher=Ti.get(this.getAncestorAttributeValue("headersDataProvider")??this.getAncestorAttributeValue("formDataProvider")),!document.getElementById("concorde-recaptcha-css")){const t=document.createElement("style");t.innerHTML=".grecaptcha-badge {z-index: 9999;}",t.id="concorde-recaptcha-css",document.head.appendChild(t)}this.formPublisher&&!this.formPublisher.captchaToken.get()&&(this.formPublisher.needsCaptchaValidation=!0,this.formPublisher.captchaToken.onAssign(this.onCaptchaTokenChanged))}disconnectedCallback(){this.formPublisher&&(this.formPublisher.captchaToken.offAssign(this.onCaptchaTokenChanged),this.formPublisher.captchaToken=""),super.disconnectedCallback()}requestToken(){var t,e;if(!this.formPublisher)return;const i=(this.action??(null==(t=this.formPublisher.captchaAction)?void 0:t.get())??"submit").replace(/[^\w_/]/g,"_"),s=((null==(e=this.formPublisher.captchaMethod)?void 0:e.get())??"POST").toUpperCase();delete this.formPublisher.captchaAction,delete this.formPublisher.captchaMethod,window.grecaptcha.ready((()=>{window.grecaptcha.execute(this.key,{action:s+"//"+i}).then((t=>{this.formPublisher&&(this.formPublisher.captchaToken=t)}))}))}render(){return V` <slot></slot> `}};Ac([ft()],Oc.prototype,"key",2),Ac([ft()],Oc.prototype,"action",2),Ac([ft({type:Number})],Oc.prototype,"zIndex",2),Oc=Ac([ut("sonic-captcha")],Oc),window.queueMicrotask=window.queueMicrotask||function(t){Promise.resolve().then(t).catch((t=>setTimeout((()=>{throw t}))))};var Ec=Object.defineProperty,Tc=Object.getOwnPropertyDescriptor,Mc=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Tc(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Ec(e,i,r),r};let Dc=class extends ms{constructor(){super(...arguments),this.query={}}connectedCallback(){this.hasAttribute("variant")||(this.variant="unstyled"),super.connectedCallback()}willUpdate(t){if(this.to){const t=ao(this.to);t.fill({slug:this.slug,id:this.id,hash:this.hash}),t.query(this.query),this.href=t.toString()}super.willUpdate(t)}updated(t){t.has("active")&&(this.active?this._slottedItems.forEach((t=>{t.classList.add(this.slotActiveClass||"active"),this.slotActiveAttribute&&t.setAttribute(this.slotActiveAttribute,"")})):this._slottedItems.forEach((t=>{t.classList.remove(this.slotActiveClass||"active"),this.slotActiveAttribute&&t.removeAttribute(this.slotActiveAttribute)})))}isCurrentRoute(){return window.location.pathname===this.href||window.location.hash===this.href}checkIfAccess(t){if(this.modulesSettings){const e=this.modulesSettings[t];if(e&&!1===e.access)return!1}return!0}render(){let t=!0;return this.modulesSettings&&this.to&&(t=this.checkIfAccess(this.to)),(!t||!this.href||this.hideIfCurrentRoute&&this.isCurrentRoute())&&(this.style.display="none"),super.render()}};Mc([ft({type:String})],Dc.prototype,"to",2),Mc([ft({type:String})],Dc.prototype,"slotActiveClass",2),Mc([ft({type:String})],Dc.prototype,"slotActiveAttribute",2),Mc([ft({type:String})],Dc.prototype,"slug",2),Mc([ft({type:String})],Dc.prototype,"hash",2),Mc([ft({type:Boolean})],Dc.prototype,"hideIfCurrentRoute",2),Mc([ft({type:Object})],Dc.prototype,"query",2),Mc([Us("settings.modules"),vt()],Dc.prototype,"modulesSettings",2),Mc([xt({flatten:!0})],Dc.prototype,"_slottedItems",2),Dc=Mc([ut("sonic-app-link")],Dc);var Lc=Object.defineProperty,jc=Object.getOwnPropertyDescriptor,Ic=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?jc(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Lc(e,i,r),r};let zc=class extends(Le(pt)){constructor(){super(...arguments),this.showOffCanvas=!1,this.closeOffCanvas=!1,this.enableOffCanvas=!1,this.showBaseline=!1}connectedCallback(){this.enableOffCanvas=this.hasAncestorAttribute("enableOffCanvas"),this.showBaseline=this.hasAncestorAttribute("defaultFrontend"),super.connectedCallback()}getBaseline(){const t={fr:"Billetterie",en:"Ticketing",nl:"Tickets",de:"Eintrittskarten"};return t[document.documentElement.lang.split("-")[0]]||t.fr}render(){const t=this.getBaseline();return V`<div class="h-[--sc-header-height] -mt-cgy -mx-cgx  px-cgx py-[--sc-header-gy] flex">
      <div class="flex items-center gap-4">
        ${this.enableOffCanvas&&(this.showOffCanvas||this.closeOffCanvas)&&!1!==this.isStoreOnline?V`
              <!-- Toggle menu -->
              <div class="flex items-center gap-4">
                <sonic-button
                  data-aria-label="Menu"
                  formDataProvider="offCanvas"
                  name="displayOffCanvas"
                  value="true"
                  size="lg"
                  shape="circle"
                  unique
                  icon
                  >${this.closeOffCanvas?V`<sonic-icon library="custom" prefix="regular" name="xmark"></sonic-icon>`:V`<sonic-icon library="custom" prefix="regular" name="bars"></sonic-icon>`}
                </sonic-button>
              </div>
            `:Z}

        <!-- Logo -->
        <div class="h-full max-w-[12rem] relative mr-4 lg:mr-7">
          <sonic-theme-logo></sonic-theme-logo>
          ${this.showBaseline&&!this.testMode?V`<sonic-badge type="neutral" size="xs" class="absolute top-[100%] left-0 mt-[.35rem]"
                ><span class="font-bold text-nowrap">—&nbsp;${t}</span></sonic-badge
              >`:Z}
          ${!0===this.testMode?V` <div
                class="absolute top-[100%] font-bold mt-[.35rem] inline-flex items-center transform left-0  w-20 whitespace-nowrap  py-[4px] bg-[yellow] text-[#222222] z-20 rounded-[.3rem] leading-none opacity-80 font-weight-bold text-xs pointer-events-none shadow-md"
              >
                <marquee>Mode&nbsp;test</marquee>
              </div>`:Z}
        </div>

        <!-- Outils -->
        <div class="flex items-center pl-3 lg:pl-4 gap-2 border-l border-neutral-200">
          <sonic-app-link
            data-aria-label="${li(Ae("mon_compte"))}"
            to="account"
            shape="circle"
            variant="ghost"
            size="lg"
            type=${this.userId?"primary":"default"}
            icon
          >
            ${this.userId?V`<sonic-icon
                  library="custom"
                  prefix="solid"
                  name="user-check"
                  class="translate-x-[.1em] inline-block"
                ></sonic-icon>`:V`<sonic-icon library="custom" name="user"></sonic-icon>`}
          </sonic-app-link>

          ${!1!==this.isStoreOnline?V`<sonic-app-link
                to="cart"
                shape="circle"
                variant="ghost"
                size="lg"
                icon
                data-aria-label=${Ae("Panier")}
              >
                <sonic-cart-icon dataProvider="cart/current" subDataProvider="data"></sonic-cart-icon>
              </sonic-app-link>`:Z}
        </div>
      </div>
    </div>`}};zc.styles=[Qs],Ic([ft({type:Boolean})],zc.prototype,"showOffCanvas",2),Ic([ft({type:Boolean})],zc.prototype,"closeOffCanvas",2),Ic([ft({type:Boolean})],zc.prototype,"enableOffCanvas",2),Ic([ft({type:Boolean})],zc.prototype,"showBaseline",2),Ic([Us("user.id"),ft({type:String})],zc.prototype,"userId",2),Ic([Us("settings.is_online"),ft({type:Boolean})],zc.prototype,"isStoreOnline",2),Ic([Us("settings.test_mode"),ft({type:Boolean})],zc.prototype,"testMode",2),zc=Ic([ut("sonic-header")],zc);var Bc=Object.defineProperty,Rc=Object.getOwnPropertyDescriptor,Nc=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Rc(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Bc(e,i,r),r};let Fc=class extends(Le(pt)){constructor(){super(...arguments),this.noLink=!1,this.src="",this.ratio_auto_360="",this.href="/"}async onThemeUpdate(t){t&&(sessionStorage.setItem("SonicDefaultLogoSrc",t),this.defaultLogoSrc=t)}connectedCallback(){this.href=ao("home").toString(),this.logoSrc=this.getAncestorAttributeValue("logoSrc")||"",this.logoSrc||null===sessionStorage.getItem("SonicDefaultLogoSrc")||(this.logoSrc=sessionStorage.getItem("SonicDefaultLogoSrc")||""),super.connectedCallback()}logo(t){return V`<img loading="eager" src=${li(t)} class="logo" alt="logo - ${this.editor_name}" /> `}render(){const t=this.logoSrc||this.ratio_auto_360||this.src||this.defaultLogoSrc;return t?this.noLink||!this.href?this.logo(t):V`<a href="${this.href}" class="contents">${this.logo(t)}</a> `:V`<sonic-fetch dataProvider="theme"></sonic-fetch>`}};Fc.styles=[Qs,l`
      :host() {
        display: flex;
        width: 100%;
        position: relative;
      }
      .logo {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: left center;
      }
    `],Nc([ft({type:Boolean})],Fc.prototype,"noLink",2),Nc([ft({type:String})],Fc.prototype,"src",2),Nc([ft({type:String})],Fc.prototype,"ratio_auto_360",2),Nc([ft({type:String})],Fc.prototype,"href",2),Nc([ft({type:String})],Fc.prototype,"logoSrc",2),Nc([Vs("theme.logos.logo_billetterie.ratio_auto_360")],Fc.prototype,"onThemeUpdate",1),Nc([ft({type:String})],Fc.prototype,"defaultLogoSrc",2),Nc([Us("settings.infos.editor_name"),ft({type:String})],Fc.prototype,"editor_name",2),Fc=Nc([ut("sonic-theme-logo")],Fc);var qc=Object.defineProperty,Hc=Object.getOwnPropertyDescriptor,Uc=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Hc(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&qc(e,i,r),r};let Vc=class extends(Le(pt)){constructor(){super(...arguments),this.logoFallback=!1}render(){var t,e,i,s,o,r,n,a,l,c,d,p;const h=this.props;if(!h)return Z;const u=(null==(e=null==(t=h.banners)?void 0:t.banner_desktop)?void 0:e.ratio_auto_1920)||(null==(s=null==(i=h.banners)?void 0:i.banner_desktop)?void 0:s.src),m=(null==(r=null==(o=h.banners)?void 0:o.banner_mobile)?void 0:r.ratio_auto_1000)||(null==(a=null==(n=h.banners)?void 0:n.banner_mobile)?void 0:a.src),g=(null==(c=null==(l=h.banners)?void 0:l.banner_mobile)?void 0:c.ratio_auto_640)||(null==(p=null==(d=h.logos)?void 0:d.logo_billetterie)?void 0:p.src);let f="flex";return u&&!m&&(f="flex lg:hidden"),!u&&m&&(f="hidden lg:flex"),V`
      ${u?V`
            <a href="/" class="lb_banner-desktop overflow-hidden rounded-lg w-full mb-10 [display:none] lg:block ">
              <img loading="eager" src="${u}" class="block w-full" alt="" />
            </a>
          `:""}
      ${m?V`
            <a href="/" class="lb_banner-mobile  overflow-hidden rounded-md w-full mb-7 block lg:hidden">
              <img loading="eager" src="${m}" class="block w-full" alt="" />
            </a>
          `:""}
      ${!this.logoFallback||!g||u&&m?"":V`
            <div class=" justify-center items-center my-4 lg:mt-8 lg:mb-12 ${f}">
              <a href="/" class="contents">
                <img
                  loading="eager"
                  src="${g}"
                  alt=""
                  class="block  max-w-[16rem] lg:max-w-[32rem] max-h-[10rem] object-contain w-10/12"
                />
              </a>
            </div>
          `}
    `}};Vc.styles=[Qs],Uc([ft({type:Boolean})],Vc.prototype,"logoFallback",2),Vc=Uc([ut("sonic-banner")],Vc);var Wc=Object.defineProperty,Zc=Object.getOwnPropertyDescriptor,Yc=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Zc(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Wc(e,i,r),r};let Gc=class extends(Le(pt)){constructor(){super(...arguments),this.largeAside=!1,this.forceZindex=!1,this.displayBanner=!1,this.isWaiting=!1}connectedCallback(){if(super.connectedCallback(),document.documentElement.scrollTop,document.body.style.overflow="hidden",this.forceZindex){document.querySelectorAll("*").forEach((t=>{const e=window.getComputedStyle(t,null).getPropertyValue("z-index");t instanceof HTMLElement&&e&&t!=this&&t.classList.add("sc-disable-zindex"),document.head.insertAdjacentHTML("beforeend","<style>body{height:0 !important;overflow:hidden !important;}.sc-disable-zindex{z-index: auto !important; position: initial !important;}</style>")}))}}disconnectedCallback(){this.forceZindex&&document.querySelectorAll(".sc-disable-zindex").forEach((t=>{t instanceof HTMLElement&&t!=this&&t.classList.remove("sc-disable-zindex")})),document.body.style.removeProperty("overflow"),super.disconnectedCallback()}render(){return this.isWaiting?Z:V`<div
      class="wrapper grid ${this.largeAside?"lg:grid-cols-[minmax(0,1fr)_minmax(0,1.5fr)]":"lg:grid-cols-[minmax(0,1fr)_minmax(0,1fr)]"} gap-y-8 custom-scroll h-full gap-x-cgx py-cgy px-cgx "
    >
      <div class="flex flex-col min-w-0">
        <sonic-header showOffCanvas class="mb-10 "></sonic-header>
        <slot></slot>
      </div>

      <!-- affiche la banniere (exemple campagne) -->
      ${this.displayBanner?V`<div class="">
            ${this.bannerDesktopSrc?V`<div
                  class="hidden lg:block overflow-clip rounded-bl-lg -mt-cgy -ml-[calc(var(--sc-container-gutter-x)/2)] -mr-cgx mb-8"
                >
                  <img src="${this.bannerDesktopSrc}" class="max-h-[11rem] w-full h-full object-cover" alt="" />
                </div>`:Z}
            <slot name="aside"></slot>
          </div> `:Z}

      <!-- pas de banniere -->
      ${this.displayBanner?Z:V` <div
            class="aside
                   sticky
                   top-0
                  lg:h-[calc(100vh-4rem)]
                  lg:-mr-[calc(var(--sc-container-gutter-x)_-_var(--sc-container-gutter-y))]"
          >
            <slot name="aside">
              <div class="relative h-full bg-neutral-100 rounded-lg overflow-hidden hidden lg:block">
                ${this.defaultImage?V`<sonic-image cover src="${this.defaultImage}" />`:V`
                      <sonic-fetch dataProvider="shows?featured=1&next=1&limit=1" key="data.0">
                        <sonic-product-illustration cover></sonic-product-illustration>
                      </sonic-fetch>
                    `}
              </div>
            </slot>
          </div>`}
    </div>`}};Gc.styles=[Qs,hi,l`
      :host {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background-color: var(--sc-base);
        color: var(--sc-base-content);
        z-index: 900 !important;
      }
    `],Yc([Us("theme.banners.banner_desktop.ratio_auto_1920"),ft({type:String})],Gc.prototype,"bannerDesktopSrc",2),Yc([Us("theme.banners.default_image.ratio_1x1_1000"),ft({type:String})],Gc.prototype,"defaultImage",2),Yc([ft({type:Boolean})],Gc.prototype,"largeAside",2),Yc([ft({type:Boolean})],Gc.prototype,"forceZindex",2),Yc([ft({type:Boolean})],Gc.prototype,"displayBanner",2),Yc([Us("sonicTicketApp.isWaiting"),vt()],Gc.prototype,"isWaiting",2),Gc=Yc([ut("sonic-fullscreen-layout")],Gc);var Kc=Object.defineProperty,Qc=Object.getOwnPropertyDescriptor,Xc=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Qc(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Kc(e,i,r),r};let Jc=class extends(Le(pt)){constructor(){super(...arguments),this.href="",this.title="",this.icon=""}render(){return this.href?V`<a href=${this.href} class="card h-full flex  justify-between gap-[.5em] shadow-lg hover:shadow transition-[boxShadow_.2s]">
      <div>
        <div class="flex items-center gap-[.5em] text-[1.15em] font-bold mb-[.3em] break-anywhere">
          ${this.icon?V` <sonic-icon library="custom" prefix="light" name=${li(this.icon)} class="text-[1.6em]"></sonic-icon>`:Z}
          ${this.title}
        </div>
        ${this.text?V` <div class="text-[max(12px,.8em)] px-[.35em] mb-[.5em]">${this.text}</div>`:Z}
      </div>
      <div class="self-end -mr-[.5em] -mb-[.5em]">
        <sonic-button shape="circle" data-aria-label=${li(Ae("link_title_more_about"))}>
          <sonic-icon library="custom" prefix="regular" name="arrow-right"></sonic-icon>
        </sonic-button>
      </div>
    </a>`:Z}};Jc.styles=[Qs,l`
      :host {
        --card-base: var(--sc-card-base, var(--sc-base-900));
        --card-content: var(--sc-card-content, var(--sc-base-content));
      }

      :host([type="default"]) {
        --card-base: var(--sc-base-900);
      }

      :host([type="primary"]) {
        --card-base: var(--sc-primary);
      }
      :host([type="warning"]) {
        --card-base: var(--sc-warning);
      }
      :host([type="danger"]) {
        --card-base: var(--sc-danger);
      }
      :host([type="info"]) {
        --card-base: var(--sc-info);
      }
      :host([type="success"]) {
        --card-base: var(--sc-success);
      }
      :host([type="neutral"]) {
        --card-base: var(--sc-base-600);
      }

      .card {
        position: relative;
        padding: 1rem;
        border-radius: var(--sc-rounded-md);
        overflow: hidden;
        color: var(--card-content);
      }
      .card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        opacity: 0.1;
        background-color: var(--card-base);
        transition: opacity 0.2s;
      }
      .card:hover::before {
        opacity: 0.15;
      }

      .break-anywhere {
        overflow-wrap: anywhere; /* word break flexbox*/
      }
    `],Xc([ft()],Jc.prototype,"href",2),Xc([ft()],Jc.prototype,"title",2),Xc([ft()],Jc.prototype,"text",2),Xc([ft()],Jc.prototype,"icon",2),Jc=Xc([ut("sonic-quick-access-card")],Jc);var td=Object.defineProperty,ed=Object.getOwnPropertyDescriptor,id=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?ed(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&td(e,i,r),r};let sd=class extends(Le(pt)){constructor(){super(...arguments),this.modules={}}connectedCallback(){this.dataProvider||(this.dataProvider="settings"),super.connectedCallback()}render(){var t,e,i,s;const o=null==(t=this.modules.agenda)?void 0:t.access,r=null==(e=this.modules.subscription)?void 0:e.access,n=null==(i=this.modules.carpooling)?void 0:i.access,a=null==(s=this.modules.giftcards)?void 0:s.access;return r||n||a?V`<div class="flex gap-4 flex-wrap justify-center">
      ${o?V`<sonic-quick-access-card
            class="flex-grow max-w-[17rem]"
            type="default"
            href=${ao("agenda")}
            title=${Ae("module_agenda_title")}
            text=${li(Ae("module_agenda_summary"))}
            icon="calendar-day"
          ></sonic-quick-access-card> `:Z}
      ${r?V`<sonic-quick-access-card
            class="flex-grow max-w-[17rem]"
            type="warning"
            href=${ao("subscription")}
            title=${Ae("onglet_home_abonnements")}
            text=${li(Ae("module_subscription_summary"))}
            icon="address-card"
          >
          </sonic-quick-access-card>`:Z}
      ${a?V`<sonic-quick-access-card
            class="flex-grow max-w-[17rem]"
            type="danger"
            href=${ao("giftcards")}
            title=${Ae("LIB_cartes_cadeaux")}
            text=${li(Ae("module_giftcards_summary"))}
            icon="gift-card"
          ></sonic-quick-access-card> `:Z}
      ${n?V`<sonic-quick-access-card
            class="flex-grow max-w-[17rem]"
            type="success"
            href=${ao("carpooling")}
            title=${Ae("module_carpooling_title")}
            text=${li(Ae("module_carpooling_summary"))}
            icon="car-side"
          ></sonic-quick-access-card> `:Z}
    </div>`:Z}};sd.styles=[Qs,l`
      :host {
        display: block;
      }
    `],id([ft({type:Object})],sd.prototype,"modules",2),sd=id([ut("sonic-quick-access-cards")],sd);var od=Object.defineProperty,rd=Object.getOwnPropertyDescriptor,nd=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?rd(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&od(e,i,r),r};let ad=class extends ms{constructor(){super(...arguments),this.slug="",this.hash="",this.multiple=null}connectedCallback(){this.customHref&&(this.href=this.customHref),super.connectedCallback()}willUpdate(t){const e=this.id;let i=null;if((t.has("slug")||t.has("multiple"))&&!this.customHref){i=ao(this.subPath?`event.${this.subPath}`:"event");null===this.multiple&&i.query({session:this.id}),i.fill({id:e,slug:this.slug})}this.href=(null==i?void 0:i.toString())||this.href,super.willUpdate(t)}};nd([ft({type:String})],ad.prototype,"slug",2),nd([ft({type:String})],ad.prototype,"customHref",2),nd([ft({type:String})],ad.prototype,"entity_type",2),nd([ft({type:String})],ad.prototype,"hash",2),nd([ft({type:String})],ad.prototype,"subPath",2),nd([ft({type:Boolean})],ad.prototype,"multiple",2),ad=nd([ut("sonic-event-link")],ad);var ld=Object.defineProperty,cd=Object.getOwnPropertyDescriptor,dd=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?cd(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&ld(e,i,r),r};let pd=class extends(Le(pt)){constructor(){super(...arguments),this.machineName=!1,this.title="",this.over_title="",this.sub_title="",this.alt_title="",this.noOverTitle=!1}getTitle(){const t=this.alt_title;return t||this.title}connectedCallback(){this.hasAttribute("subDataProvider")||this.setAttribute("subDataProvider","edito"),super.connectedCallback()}render(){return this.machineName?V`<div class="title">${this.title}</div> `:V`
        ${this.over_title&&!this.noOverTitle?V`<div class="surtitle">${this.over_title}</div>`:Z}
        <div class="title">${_e(this.getTitle())}</div>
        ${this.sub_title?V`<div class="subtitle">${this.sub_title}</div>`:Z}
      `}};pd.styles=[ds,l`
      :host {
        line-height: 1.15;
        display: block;
      }

      .surtitle {
        font-size: clamp(11px, 0.7em, 1rem);
        margin-bottom: 0.35em;
        line-height: 1.15;
        font-family: var(--sc-font-family-base);
        font-weight: var(--sc-font-weight-base);
      }

      .title {
        font-size: max(13px, 1em);
        font-weight: bold;
        line-height: 1.15;
        text-wrap: balance;
        /*margin-bottom: 0.15em;*/
      }

      .subtitle {
        font-size: max(11px, 0.8em);
        font-weight: bold;
        line-height: 1.15;
        text-wrap: pretty;
      }
    `],dd([ft({type:String,reflect:!0})],pd.prototype,"size",2),dd([ft({type:Boolean,reflect:!0})],pd.prototype,"machineName",2),dd([ft({type:String})],pd.prototype,"title",2),dd([ft({type:String})],pd.prototype,"over_title",2),dd([ft({type:String})],pd.prototype,"sub_title",2),dd([ft({type:String})],pd.prototype,"alt_title",2),dd([ft({type:Boolean})],pd.prototype,"noOverTitle",2),pd=dd([ut("sonic-product-title")],pd);var hd=Object.defineProperty,ud=Object.getOwnPropertyDescriptor,md=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?ud(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&hd(e,i,r),r};let gd=class extends(Le(pt)){constructor(){super(...arguments),this.externalLink=!1,this.cover=!1,this.noFallback=!1,this.ratio="1 / 1",this.transition="fade",this.ratio_1x1_120="",this.ratio_1x1_360="",this.ratio_1x1_640="",this.ratio_1x1_1000="",this.ratio_1x1_1920="",this.src="",this._resizeController=new Hn(this,{})}connectedCallback(){this.hasAttribute("subDataProvider")||this.setAttribute("subDataProvider","picture"),super.connectedCallback()}render(){let t;return t=this.forceSrcKey?this[this.forceSrcKey]||this.src:this.offsetWidth<=120?this.ratio_1x1_120||this.ratio_1x1_360||this.src:this.offsetWidth<=360?this.ratio_1x1_360||this.src:this.offsetWidth<=640?this.ratio_1x1_640||this.src:this.offsetWidth<=900?this.ratio_1x1_1000||this.src:this.ratio_1x1_1920||this.src,t||this.noFallback?V`<sonic-image
      ?cover=${this.cover}
      class="w-full"
      src=${t}
      rounded="${li(this.rounded)}"
      ratio=${this.ratio}
      transition=${li(this.transition)}
      objectPosition=${li(this.objectPosition)}
    ></sonic-image>`:this.renderFallback()}renderFallback(){var t;const e=null==(t=this.publisher.parent)?void 0:t.get().entity_type;let i="";switch(this.rounded){case"full":i="rounded-full";break;case"sm":i="rounded-sm";break;case"md":i="rounded-md";break;case"lg":i="rounded-lg";break;case"":i="rounded";break;default:i=""}return V`
      <div
        class="${i} ${e?"bg-neutral-300":"bg-neutral-100"} flex items-center justify-center  text-neutral-0 object-cover w-full aspect-square @container"
      >
        ${e?V`<sonic-icon
              class="text-[40cqw]"
              library="custom"
              prefix="light"
              name=${fd(e)}
            ></sonic-icon>`:Z}
      </div>
    `}};gd.styles=[Qs,l`
      :host {
        display: block;
      }
    `],md([ft({type:String})],gd.prototype,"forceSrcKey",2),md([ft({type:Boolean})],gd.prototype,"externalLink",2),md([ft({type:Boolean})],gd.prototype,"cover",2),md([ft({type:Boolean})],gd.prototype,"noFallback",2),md([ft({type:String})],gd.prototype,"ratio",2),md([ft({type:String})],gd.prototype,"rounded",2),md([ft({type:String})],gd.prototype,"objectPosition",2),md([ft({type:String,reflect:!0})],gd.prototype,"transition",2),md([ft({type:String})],gd.prototype,"ratio_1x1_120",2),md([ft({type:String})],gd.prototype,"ratio_1x1_360",2),md([ft({type:String})],gd.prototype,"ratio_1x1_640",2),md([ft({type:String})],gd.prototype,"ratio_1x1_1000",2),md([ft({type:String})],gd.prototype,"ratio_1x1_1920",2),md([ft({type:String})],gd.prototype,"src",2),gd=md([ut("sonic-product-illustration")],gd);const fd=t=>t?{subscribe:"address-card",giftcard:"gift",event:"ticket",additionalProduct:"circle-plus"}[t]:"ticket";var vd=Object.defineProperty,yd=Object.getOwnPropertyDescriptor,bd=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?yd(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&vd(e,i,r),r};let wd=class extends(Le(pt)){constructor(){super(...arguments),this.categories=[],this.labels=[],this.event_id="",this.slug="",this.multisession=null,this.skeleton=!1}render(){return this.skeleton?this.renderSkeleton():V`
      <sonic-app-link to="event" .slug=${this.slug} class="group contents">
        <div class="@container w-full h-full relative">
          <div
            tabindex="0"
            class="leading-tight h-full relative p-3 @sm:p-4 grid grid-cols-1 grid-rows-[max-content_1fr] gap-3 rounded-md @sm:rounded-xl shadow-lg border border-transparent group-hover:border group-hover:border-neutral-200  group-focus:border-neutral-300 transition duration-75 "
          >
            <sonic-product-illustration
              class="relative  rounded-md @sm:rounded-xl overflow-hidden"
            ></sonic-product-illustration>
            <div class="min-h-[6rem]">
              <sonic-date
                weekday="short"
                day="2-digit"
                month="short"
                class="text-xs leading-tight block mb-2  uppercase"
              ></sonic-date>
              <div class="mb-3">
                <sonic-product-title
                  class="font-headings font-weight-headings font-style-headings @xs:text-xl @sm:text-2xl  leading-tight @xs:leading-tight @sm:leading-tight @md:leading-tight"
                ></sonic-product-title>
              </div>

              <div class="flex gap-1 flex-wrap items-center gap-x-2">
                ${this.id?V` <sonic-event-additional-status
                      fetch
                      dataProvider="shows/${this.id}/status"
                      visibility="public"
                      size="xs"
                      class="flex flex-wrap gap-x-3 gap-y-1"
                    ></sonic-event-additional-status>`:Z}
                <sonic-event-scheduled-status size="xs"></sonic-event-scheduled-status>

                <sonic-event-taxonomy .taxonomy=${this.labels} ellipsis size="xs" key="label"></sonic-event-taxonomy>
                ${this.categories.length>0?V` <sonic-event-taxonomy
                      .icon=${{name:"tag",library:"custom"}}
                      .taxonomy=${this.categories}
                      variant="ghost"
                      key="category"
                      size="xs"
                    >
                    </sonic-event-taxonomy>`:Z}
              </div>
            </div>
          </div>
        </div>
      </sonic-app-link>
    `}renderSkeleton(){return V`
      <div class="@container w-full h-full ">
        <div
          class="leading-tight p-3 @sm:p-4 grid grid-cols-1 gap-3 rounded-md @sm:rounded-lg shadow-lg border border-transparent"
        >
          <div class=" relative aspect-square rounded-lg bg-neutral-200 animate-pulse "></div>
          <div class="min-h-[6rem]">
            <div class=" leading-none block mb-2 bg-neutral-50 rounded-sm h-4 w-1/2 "></div>
            <div class=" leading-none block mb-1 bg-neutral-100 rounded-sm h-5 w-2/3 "></div>
            <div class="text-xs leading-tight block bg-neutral-100 rounded-sm h-3 w-1/3"></div>
          </div>
        </div>
      </div>
    `}};wd.styles=[Qs,l`
      :host {
        display: flex;
        width: 100%;
        height: 100%;
        position: relative;
      }
    `],bd([ft({type:Array})],wd.prototype,"categories",2),bd([ft({type:Array})],wd.prototype,"labels",2),bd([ft({type:String})],wd.prototype,"event_id",2),bd([ft({type:String})],wd.prototype,"slug",2),bd([ft({type:Object})],wd.prototype,"multisession",2),bd([ft({type:Boolean})],wd.prototype,"skeleton",2),wd=bd([ut("sonic-event-card-vertical")],wd);const xd=l`
  :host {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .wording {
    display: block;
  }

  .separator:last-child {
    display: none;
  }
`;var _d=Object.defineProperty,kd=Object.getOwnPropertyDescriptor,$d=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?kd(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&_d(e,i,r),r};let Pd=class extends(Wo(_s(Le(pt)))){constructor(){super(...arguments),this.infos_status={additionnals:[],display_setting:!1},this.variant="",this.size="",this.separator="",this.forceDangerAsPill=!1,this.visibility="public",this.keepOnlyKeys=null,this.ellipsis=!1}static getDisplayConfForStatus(t){switch(t){case"soon_on_sale":return{icon:"circle-info",type:"info",visibility:"public"};case"remaining_places":return{icon:"circle-info",type:"info",visibility:"private"};case"remaining_places_warning":case"waiting":case"deferred":case"almost_full_here":case"almost_full_places":case"almost_full":return{icon:"triangle-exclamation",type:"warning",visibility:"public"};case"full":case"full_here":return{icon:"circle-minus",type:"danger",visibility:"public"};case"canceled":case"full_in_no_quota":return{icon:"ban",type:"danger",visibility:"public"};case"only_visible":return{icon:"triangle-exclamation",type:"danger",visibility:"public"};case"end_sale":return{icon:"",type:"danger",visibility:"public"};case"forced_to_full":return{icon:"circle-minus",type:"danger",visibility:"private"};default:return{icon:"",type:"danger",visibility:"private"}}}connectedCallback(){this.isFetchEnabled=this.hasAttribute("fetch"),this.lazyLoad=!0,this.isFetchEnabled&&(this.propertyMap={data:"infos_status"},this.style.removeProperty("display")),super.connectedCallback()}render(){let t=Pt.isObject(this.infos_status.additionnals)?Object.values(this.infos_status.additionnals):[];return t=t.filter((t=>t.key&&(!this.keepOnlyKeys||this.keepOnlyKeys.includes(t.key)))),this.excludeKeys&&(t=t.filter((t=>{var e;return!(null==(e=this.excludeKeys)?void 0:e.includes(t.key))}))),this.visibility&&"all"!=this.visibility&&(t=t.filter((t=>Pd.getDisplayConfForStatus(t.key).visibility==this.visibility))),0==t.length?(this.style.display="none",this.style.position="absolute",this.style.pointerEvents="none",V`<slot></slot>`):(this.style.removeProperty("display"),this.style.removeProperty("position"),this.style.removeProperty("pointer-events"),V`<slot name="prefix"></slot>
      ${Ie(t,(t=>t.key),(t=>{const e=Pd.getDisplayConfForStatus(t.key);return V`
            <sonic-badge
              ?ellipsis=${this.ellipsis}
              type=${e.type}
              .variant=${(this.forceDangerAsPill&&"danger"==e.type?"default":"")||this.variant}
              .size=${this.size}
              class=${"ghost"==this.variant?"font-bold":""}
              ${this.isFetchEnabled?Ke({in:He}):Z}
            >
              ${e.icon?V`<sonic-icon library="custom" name=${e.icon} slot="prefix"></sonic-icon>`:Z}
              ${_e(t.libelle)}</sonic-badge
            >
            ${this.separator?V`<span class="separator">${this.separator}</span>`:Z}
          `}))} `)}};Pd.styles=xd,$d([ft({type:Object})],Pd.prototype,"infos_status",2),$d([ft({type:String})],Pd.prototype,"variant",2),$d([ft({type:String})],Pd.prototype,"size",2),$d([ft({type:String})],Pd.prototype,"separator",2),$d([ft({type:Boolean})],Pd.prototype,"forceDangerAsPill",2),$d([ft({type:String})],Pd.prototype,"visibility",2),$d([ft({type:Array})],Pd.prototype,"keepOnlyKeys",2),$d([ft({type:Array})],Pd.prototype,"excludeKeys",2),$d([ft({type:Boolean,reflect:!0})],Pd.prototype,"ellipsis",2),Pd=$d([ut("sonic-event-additional-status")],Pd);const Sd=l`
  :host {
    display: flex;
    flex: 1;
  }

  sonic-button {
    display: content;
    flex: 1;
    display: flex;
    position: relative;
    --sc-btn-py: 1em;
    --sc-btn-px: 0.7em;
    --sc-btn-gap: 0;
    --sc-btn-hover-filter: none;
    --sc-btn-active-filter: none;
  }

  :host([size="sm"]) sonic-button {
    --sc-btn-py: 0.6em;
  }

  .name {
    display: block;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
  }

  sonic-pop {
    position: absolute;
    right: 0;
    top: 0;
  }

  :host svg {
    width: 0.3em;
  }
`;var Cd=(t=>(t.Event="event",t.Subscribe="subscribe",t.Giftcard="giftcard",t.AdditionalProduct="additionalProduct",t))(Cd||{}),Ad=(t=>(t.Taxonomies="taxonomies",t.Picture="picture",t.Prices="prices",t.Stock="stock",t.Quotas="quotas",t.Status="status",t.Season="season",t.Location="location",t.Multisessions="multisessions",t.Settings="settings",t.Range="range",t.ExternalsData="externals_data",t.PlacesCategories="places_categories",t))(Ad||{});class Od{static async add(t){const e=new qt(t.apiConfiguration),i=(t.endPoint||"cart/current")+"/items";_r.show();const s=await e.post(i,{items:t.items});_r.hide(),await this.handleResult(t,e,s)}static async newCart(t){const e=new qt(t.apiConfiguration),i=t.endPoint||"cart/current",s=t.buyer?{buyer:t.buyer}:{},o=await e.post(i,{items:t.items,...s});return _r.hide(),await this.handleResult(t,e,o),o}static async set(t){var e;const i=new qt(t.apiConfiguration),s=t.endPoint||"cart/current",o=t.apiConfiguration.serviceURL+s;let r,n,a=this.setRequests.get(o);if(a||this.setRequests.set(o,a={}),a.current)return a.next=t,"pending";if(a.current=t,_r.show({noDelay:!0}),t.items.length>1?(r=s+"/items",n=await i.patch(r,{items:t.items})):(r=s+"/items/"+(null==(e=t.items[0])?void 0:e.id),n=await i.patch(r,t.items[0])),delete a.current,_r.hide(),a.next){const t=a.next;return delete a.next,await this.set(t)}return await this.handleResult(t,i,n)}static async remove(t){t.items.length>1&&console.error("Cart.remove does not support multiple items");const e=new qt(t.apiConfiguration),i=(t.endPoint||"cart/current")+/items/+t.items[0];_r.show();const s=await e.delete(i,{});_r.hide(),await this.handleResult(t,e,s)}static async clear(t){const e=new qt(t.apiConfiguration),i=(t.endPoint||"cart/current")+"/items",s=t.dataProvider||t.endPoint||"cart/current";_r.show();let o=await e.delete(i,{});if(_r.hide(),!o)return o={messages:[{content:"Network Error",status:"error"}]},void zt.getInstance().get(s).set(o);_r.show(),await this.updateCart(e,s,[]),_r.hide()}static async handleResult(t,e,i){var s,o;const r=t.dataProvider||t.endPoint||"cart/current";if(!i)return i={messages:[{content:"Network Error",status:"error"}]},zt.getInstance().get(r).set(i),"error";if(i.data&&"items"in i.data){zt.getInstance().get(r).set(i),window.self!==window.top&&(null==(s=window.top)||s.postMessage({invalidate:[r]},"*"));return(null==(o=i.messages)?void 0:o.some((t=>"error"===t.status)))?(await this.updateCart(e,r,i.messages||[]),"differentFromRequest"):"asRequested"}return await this.updateCart(e,r,i.messages||[]),"differentFromRequest"}static async updateCart(t,e,i){var s;let o=await t.get(e);if(!o)return o={messages:[{content:"Network Error",status:"error"}]},void zt.getInstance().get(e).set(o);i&&(null==i?void 0:i.length)>0&&(null==(s=o.messages)||s.push(...i)),zt.getInstance().get(e).set(o)}static formatAmount(t){return Ed(t)}}Od.setRequests=new Map;const Ed=t=>new Intl.NumberFormat("fr-FR",{style:"currency",currency:"EUR",minimumFractionDigits:t%1!=0?2:0,maximumFractionDigits:t%1!=0?2:0}).format(t);function Td(t){var e,i;let s=t.quantity||0,o=(null==(e=t.price)?void 0:e.amount)?parseFloat((t.price.amount*s).toString()):0;return t.items?(null==(i=t.items)||i.forEach((t=>{var e;if(null==(e=t.price)?void 0:e.amount){const e=t.quantity||0,i=parseFloat((t.price.amount*e).toString());o+=i||0}})),o):o}const Md=t=>{const e={},i=(t=>{const e=(t=>{const e=[];return t.forEach((t=>{t.parent_id||(t.items=[],e.push(t))})),t.forEach((e=>{if(e.parent_id){const i=t.find((t=>t.id===e.parent_id));i&&(i.items||(i.items=[]),i.items.push(e))}})),e})(t),i=[];return e.forEach((t=>{var e;const s=t.entity||{},o=i.find((t=>{var e,i;return"hash"in t.entity&&s.entity_type===Cd.Subscribe?t.entity.hash===(null==s?void 0:s.hash):(null==(e=t.entity)?void 0:e.id)===(null==s?void 0:s.id)&&(null==(i=t.entity)?void 0:i.entity_type)===(null==s?void 0:s.entity_type)}));o?(o.items.push(t),o.quantity+=t.quantity||0,(null==(e=t.price)?void 0:e.amount)&&(o.total+=Td(t)),t.items&&t.items.forEach((t=>{var e;(null==(e=t.price)?void 0:e.amount)&&(o.total+=parseFloat(t.price.amount.toString()))}))):i.push({entity:s,items:[t],quantity:t.quantity||0,total:Td(t)})})),i})(t);return i.forEach((t=>{const i=(t.entity||{}).entity_type;i&&(e[i]||(e[i]=[]),e[i].push(t))})),e},Dd=t=>t.reduce(((t,e)=>{var i;return(null==(i=e.entity)?void 0:i.entity_type)===Cd.Event&&(t+=e.quantity||0),t}),0),Ld=(t,e)=>{var i;const s=zt.get(e.sourceDataProvider),o=zt.get(e.targetDataProvider),r=structuredClone(t||[]),n=o.items.get()||[],a=new Set(n.map((t=>String(t.id)))),l=r.filter((t=>!a.has(t.id))),c=[...n,...l];o.items=c,o.quantity=Dd(c);const d=null==(i=s.items)?void 0:i.get(),p=(null==d?void 0:d.filter((t=>!r.find((e=>e.id===t.id)))))||[];s.items=p,s.quantity=Dd(p)};var jd=Object.defineProperty,Id=Object.getOwnPropertyDescriptor,zd=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Id(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&jd(e,i,r),r};let Bd=class extends(Wo(Le(pt))){constructor(){super(...arguments),this.saml_auth_required=!1,this.amount=0,this.amount_display=0,this.counter=!1,this.price_online=!1,this.item_id=0,this.title="",this.need_subscription=!1,this.need_partner_subscription=!1,this.additional_products=[],this.buttonType="neutral",this.type=null,this.noPriceName=!1,this.price_available=!0,this.is_triggering_promo=!0,this.price_is_promo=!0,this.help_text="",this.size="lg",this.loading=!1,this.onFilterMutation=()=>{this.requestUpdate()}}async addToCart(){var t,e,i,s;this.loading=!0;const o=zt.get("product/"+this.item_id+"/PricesFilter").get();let r=o.selectedQuota;!r&&o.quotas&&(r=o.quotas[0]);const n=zt.get("prePurchaseData").placement.get(),a=((null==(t=null==n?void 0:n.selection)?void 0:t.places)||[]).map((t=>t.place_id)),l={type:this.type||void 0,entity_id:this.item_id,quantity:a.length||1,quota_id:r&&r.id?r.id:null,price:{id:parseInt(this.id)},places_ids:a,idx_abo:null==(i=null==(e=null==n?void 0:n.group)?void 0:e.subscribe)?void 0:i.index},c=this.getAncestorAttributeValue("cartProvider");if(await Od.add({apiConfiguration:this.getApiConfiguration(),endPoint:c,items:[l]}),a.length>0){window.placement.Front.instance.reloadOnlindeChairsData(a)}this.loading=!1,parseInt((null==(s=null==n?void 0:n.group)?void 0:s.id)+"")>0&&location.reload()}goToLogin(){const t=ao("account").toString();t&&(document.location=t)}willUpdate(t){var e,i;t.has("item_id")&&(null==(e=this.filterPublisher)||e.offInternalMutation(this.onFilterMutation),this.filterPublisher=zt.get("product/"+this.item_id+"/PricesFilter"),null==(i=this.filterPublisher)||i.onInternalMutation(this.onFilterMutation)),super.willUpdate(t)}disconnectedCallback(){var t;null==(t=this.filterPublisher)||t.offInternalMutation(this.onFilterMutation),super.disconnectedCallback()}render(){if(!this.props)return;if(!this.counter&&this.isGuichet)return;const t=zt.get("product/"+this.item_id+"/PricesFilter").get().selectedQuota,e=!this.price_available||this.loading||t&&0===t.remaining_places_nb||this.hasAttribute("disabled"),i=this.buttonType||"neutral",s=""!==this.help_text;let o=this.need_subscription||this.need_partner_subscription?"primary":i;return this.isGuichet&&(this.need_partner_subscription||this.need_subscription)&&(o="info"),(this.is_triggering_promo||this.price_is_promo)&&(o="success"),V`
      <sonic-button
        type="${o}"
        rounded="sm"
        size="${this.size}"
        align="left"
        alignItems="stretch"
        @click="${this.saml_auth_required?this.goToLogin:this.addToCart}"
        ?disabled=${e}
        class="group "
      >
        <div class="h-full flex flex-col">
          ${this.noPriceName?Z:V`<span class="name ${s?"pr-3":""}"> ${this.title} </span> ${this.additional_products.length>0?V`<div class="text-[.85em] flex gap-[.25em]  opacity-60 ">
                      ${this.additional_products.map((t=>V`<span class="inline-block"> + ${t.name} </span> `))}
                    </div>`:Z}`}

          <span
            class="${this.noPriceName?"":"pt-2"}  mt-auto leading-none font-bold  flex gap-[.4em] items-center "
          >
            <sonic-if
              .condition=${(this.need_partner_subscription||this.need_subscription)&&!(this.is_triggering_promo||this.price_is_promo)}
            >
              <sonic-icon
                library="custom"
                prefix="solid"
                name="id-card"
                size="xl"
                class="mr-[.25em]  inline-block  transition group-hover:scale-110  group-focus-within:scale-110"
              ></sonic-icon>
            </sonic-if>
            <sonic-if .condition=${this.is_triggering_promo}>
              <sonic-icon
                size="sm"
                library="custom"
                name="stars"
                class="mr-[.25em] animate-heartbeat inline-block"
              ></sonic-icon>
            </sonic-if>

            <sonic-if .condition=${this.price_is_promo}>
              <sonic-icon
                size="sm"
                library="custom"
                name="gift"
                class="mr-[.25em] animate-heartbeat inline-block"
              ></sonic-icon>
            </sonic-if>

            <sonic-if .condition=${this.saml_auth_required}>
              <sonic-icon size="sm" library="custom" prefix="solid" name="user" class="mr-[.25em]"></sonic-icon>
            </sonic-if>

            <sonic-if
              .condition=${!(this.saml_auth_required||this.price_is_promo||this.is_triggering_promo||this.need_partner_subscription||this.need_subscription)}
            >
              <sonic-icon
                size="lg"
                library="custom"
                name="circle-plus"
                prefix="light"
                class="mr-[.25em] opacity-50 group-hover:opacity-100 group-hover:scale-110 group-focus-within:opacity-100 group-focus-within:scale-110  transition-all transition-200 "
              ></sonic-icon>
            </sonic-if>
            <span class="leading-none inline-block"> ${Od.formatAmount(this.amount)} </span>
          </span>
          <sonic-if .condition=${s}>
            <sonic-pop @click=${t=>t.stopPropagation()} placement="top">
              <div class="p-1 transform translate-z-0 cursor-pointer hover:scale-110">
                <sonic-icon library="custom" name="circle-info" prefix="solid" size="md"></sonic-icon>
              </div>
              <div
                slot="content"
                class="p-3 px-2 shadow-md text-xs text-content min-w-[25ch] max-w-[40ch] rounded-md"
                placement="top"
              >
                ${_e(this.help_text)}
              </div>
            </sonic-pop>
          </sonic-if>
        </div>
      </sonic-button>
    `}};Bd.styles=[Qs,Sd],zd([ft({type:Boolean})],Bd.prototype,"saml_auth_required",2),zd([ft({type:Number})],Bd.prototype,"amount",2),zd([ft({type:Number})],Bd.prototype,"amount_display",2),zd([ft({type:Boolean})],Bd.prototype,"counter",2),zd([ft({type:Boolean})],Bd.prototype,"price_online",2),zd([ft({type:Number})],Bd.prototype,"item_id",2),zd([ft({type:String})],Bd.prototype,"title",2),zd([ft({type:Boolean})],Bd.prototype,"need_subscription",2),zd([ft({type:Boolean})],Bd.prototype,"need_partner_subscription",2),zd([ft({type:Array})],Bd.prototype,"additional_products",2),zd([ft({type:String})],Bd.prototype,"buttonType",2),zd([ft({type:String})],Bd.prototype,"type",2),zd([ft({type:Boolean})],Bd.prototype,"noPriceName",2),zd([ft({type:Boolean})],Bd.prototype,"price_available",2),zd([ft({type:Boolean})],Bd.prototype,"is_triggering_promo",2),zd([ft({type:Boolean})],Bd.prototype,"price_is_promo",2),zd([ft({type:String})],Bd.prototype,"help_text",2),zd([ft({type:String})],Bd.prototype,"size",2),zd([ft({type:Boolean})],Bd.prototype,"loading",2),Bd=zd([ut("sonic-price-button")],Bd);var Rd=Object.defineProperty,Nd=Object.getOwnPropertyDescriptor,Fd=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Nd(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Rd(e,i,r),r};let qd=class extends(Wo(Le(pt))){constructor(){super(...arguments),this.saml_auth_required=!1,this.amount=0,this.amount_display=0,this.item_id="",this.need_subscription=!1,this.need_partner_subscription=!1,this.additional_products=[],this.id="",this.type="",this.noPriceName=!1,this.price_available=!1,this.is_triggering_promo=!1,this.price_is_promo=!1,this.help_text="",this.price_min_places=0,this.price_max_places=0,this.price_places_nb=0,this.price_max=10,this.size="lg",this.wording_LIB_connexion_required="",this.onFilterMutation=()=>{this.requestUpdate()}}willUpdate(t){var e,i;t.has("item_id")&&(null==(e=this.filterPublisher)||e.offInternalMutation(this.onFilterMutation),this.filterPublisher=zt.get("product/"+this.item_id+"/PricesFilter"),null==(i=this.filterPublisher)||i.onInternalMutation(this.onFilterMutation)),t.has("price_min_places")&&this.price_min_places>this.price_max&&(this.price_max=this.price_min_places+10),(t.has("price_max_places")||t.has("price_places_nb"))&&(this.price_max_places||this.price_places_nb)&&(this.price_max_places&&this.price_places_nb?this.price_max=Math.min(this.price_max_places,this.price_places_nb,this.price_max):this.price_max=Math.min(this.price_max_places||this.price_places_nb||this.price_max,this.price_max)),super.willUpdate(t)}getOptions(){const t=[{value:"",wording:0}];for(let e=this.price_min_places;e<=this.price_max;e++)t.push({value:e.toString(),wording:e});return t}render(){if(!this.props)return;const t=zt.getInstance().get("product/"+this.item_id+"/PricesFilter").get().selectedQuota,e=!this.price_available||t&&0===t.remaining_places_nb||this.hasAttribute("disabled");let i=this.title+"Choisissez le nombre de places";e&&(i=this.title+" — épuisé");const s=V` ${!this.need_partner_subscription&&!this.need_subscription||this.is_triggering_promo&&this.price_is_promo?Z:V`<sonic-icon
          library="custom"
          prefix="regular"
          name="id-card"
          class="mr-[.25em]  inline-block"
        ></sonic-icon>`}
    ${this.is_triggering_promo?V`<sonic-icon
          size="sm"
          library="custom"
          prefix="solid"
          name="stars"
          class="mr-[.25em] animate-heartbeat inline-block"
        ></sonic-icon>`:Z}
    ${this.price_is_promo?V`<sonic-icon
          size="sm"
          library="custom"
          prefix="solid"
          name="gift"
          class="mr-[.25em] animate-heartbeat inline-block"
        ></sonic-icon>`:Z}
    ${Od.formatAmount(this.amount_display)}`;let o=this.need_subscription||this.need_partner_subscription?"primary":"default";return this.isGuichet&&(this.need_partner_subscription||this.need_subscription)&&(o="info"),(this.is_triggering_promo||this.price_is_promo)&&(o="success"),V`
      <sonic-group size="${this.size}" class="w-full">
        <div slot="label" class="text-left">
          <sonic-if .condition=${!this.noPriceName}>
            <div class="flex items-end gap-[.25em] w-full">
              <div class="min-w-0">
                <div
                  class="leading-[1.05] lg:leading-[1.05] min-w-0 break-words ${this.price_is_promo?"font-bold":""}"
                >
                  ${this.title}
                </div>
                ${this.additional_products.length>0?V`<div class="text-[.85em] leading-[1.05] flex gap-[.25em] flex-wrap ">
                      ${this.additional_products.map((t=>V`<span class="inline-block">+ ${t.name} </span> `))}
                    </div>`:Z}
              </div>

              ${this.help_text?V`<div class="ml-auto">
                    <sonic-if .condition=${""!==this.help_text}>
                      <sonic-pop @click=${t=>t.stopPropagation()} placement="top" class="inline-flex">
                        <div class=" cursor-pointer inline-flex">
                          <sonic-icon library="custom" name="circle-info" size="md"></sonic-icon>
                        </div>
                        <div
                          slot="content"
                          class="p-3 px-2  text-xs text-content min-w-[30ch] max-w-[40ch] rounded-md"
                          placement="top"
                        >
                          ${_e(this.help_text)}
                        </div>
                      </sonic-pop>
                    </sonic-if>
                  </div> `:Z}
            </div>
          </sonic-if>
        </div>

        ${this.saml_auth_required?V`
              <sonic-app-link to="account" variant="default" size="${this.size}" type="primary">
                <div class="flex items-center justify-center gap-[.75em] w-full">
                  <div class="flex">${s}</div>
                  <div class="border-l h-[1em]"></div>
                  <sonic-tooltip label="${this.wording_LIB_connexion_required}">
                    <div class="flex items-end">
                      <sonic-icon library="custom" name="user"></sonic-icon>
                      <sonic-icon library="custom" name="arrow-right" class="-ml-[.5em]" size="xs"></sonic-icon>
                    </div>
                  </sonic-tooltip>
                </div>
              </sonic-app-link>
            `:V`
              ${e?V`<sonic-tooltip
                    focusable
                    placement="bottom"
                    label="${Ae("initial_amount")} 
                    ${Od.formatAmount(this.amount_display)}"
                    class="block w-full font-bold"
                  >
                    <sonic-input
                      align="center"
                      shape="block"
                      size="${this.size}"
                      value="${Ae("sold_out")}"
                      class="pointer-events-none"
                      readonly
                      tabindex="-1"
                    ></sonic-input
                  ></sonic-tooltip>`:V`<sonic-select
                    rounded="sm"
                    size="${this.size}"
                    ?disabled=${e}
                    data-aria-label=${li(i)}
                    align="center"
                    name="${this.id}"
                    status="${o}"
                  >
                    <span class="min-w-[min(7.8ch,_4.5em)] text-center font-bold" slot="prefix" status="success">
                      ${s}
                    </span>
                    ${e?V`<option selected>—</option>`:Ie(this.getOptions(),(t=>V`<option value="${t.value}">${t.wording}</option>`))}
                  </sonic-select>`}
            `}
      </sonic-group>
    `}};qd.styles=[Qs],Fd([ft({type:Boolean})],qd.prototype,"saml_auth_required",2),Fd([ft({type:Number})],qd.prototype,"amount",2),Fd([ft({type:Number})],qd.prototype,"amount_display",2),Fd([ft({type:Number})],qd.prototype,"item_id",2),Fd([ft({type:Boolean})],qd.prototype,"need_subscription",2),Fd([ft({type:Boolean})],qd.prototype,"need_partner_subscription",2),Fd([ft({type:Array})],qd.prototype,"additional_products",2),Fd([ft({type:String})],qd.prototype,"id",2),Fd([ft({type:String})],qd.prototype,"type",2),Fd([ft({type:Boolean})],qd.prototype,"noPriceName",2),Fd([ft({type:Boolean})],qd.prototype,"price_available",2),Fd([ft({type:Boolean})],qd.prototype,"is_triggering_promo",2),Fd([ft({type:Boolean})],qd.prototype,"price_is_promo",2),Fd([ft({type:String})],qd.prototype,"help_text",2),Fd([ft({type:Number})],qd.prototype,"price_min_places",2),Fd([ft({type:Number})],qd.prototype,"price_max_places",2),Fd([ft({type:Number})],qd.prototype,"price_places_nb",2),Fd([ft({type:Number})],qd.prototype,"price_max",2),Fd([ft({type:String})],qd.prototype,"size",2),Fd([ft({type:String})],qd.prototype,"wording_LIB_connexion_required",2),qd=Fd([ut("sonic-price-select")],qd);
/**
   * @license
   * Copyright 2021 Google LLC
   * SPDX-License-Identifier: BSD-3-Clause
   */
const Hd=de(class extends pe{constructor(){super(...arguments),this.key=Z}render(t,e){return this.key=t,e}update(t,[e,i]){return e!==this.key&&(re(t),this.key=e),i}});
/**
   * @license
   * Copyright 2021 Google LLC
   * SPDX-License-Identifier: BSD-3-Clause
   */let Ud=class extends Event{constructor(t,e,i){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=e,this.subscribe=i??!1}};
/**
   * @license
   * Copyright 2021 Google LLC
   * SPDX-License-Identifier: BSD-3-Clause
   */
/**
   * @license
   * Copyright 2021 Google LLC
   * SPDX-License-Identifier: BSD-3-Clause
   */
let Vd=class{constructor(t,e,i,s){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(t,e)=>{this.unsubscribe&&(this.unsubscribe!==e&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=t,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(t,e)),this.unsubscribe=e},this.host=t,void 0!==e.context){const t=e;this.context=t.context,this.callback=t.callback,this.subscribe=t.subscribe??!1}else this.context=e,this.callback=i,this.subscribe=s??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Ud(this.context,this.t,this.subscribe))}};
/**
   * @license
   * Copyright 2021 Google LLC
   * SPDX-License-Identifier: BSD-3-Clause
   */class Wd{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){const i=e||!Object.is(t,this.o);this.o=t,i&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(const[t,{disposer:e}]of this.subscriptions)t(this.o,e)},void 0!==t&&(this.value=t)}addCallback(t,e,i){if(!i)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:e});const{disposer:s}=this.subscriptions.get(t);t(this.value,s)}clearCallbacks(){this.subscriptions.clear()}}
/**
   * @license
   * Copyright 2021 Google LLC
   * SPDX-License-Identifier: BSD-3-Clause
   */let Zd=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}};class Yd extends Wd{constructor(t,e,i){var s,o;super(void 0!==e.context?e.initialValue:i),this.onContextRequest=t=>{const e=t.composedPath()[0];t.context===this.context&&e!==this.host&&(t.stopPropagation(),this.addCallback(t.callback,e,t.subscribe))},this.onProviderRequest=t=>{const e=t.composedPath()[0];if(t.context!==this.context||e===this.host)return;const i=new Set;for(const[s,{consumerHost:o}]of this.subscriptions)i.has(s)||(i.add(s),o.dispatchEvent(new Ud(this.context,s,!0)));t.stopPropagation()},this.host=t,void 0!==e.context?this.context=e.context:this.context=e,this.attachListeners(),null==(o=(s=this.host).addController)||o.call(s,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Zd(this.context))}}
/**
   * @license
   * Copyright 2017 Google LLC
   * SPDX-License-Identifier: BSD-3-Clause
   */function Gd({context:t}){return(e,i)=>{const s=new WeakMap;if("object"==typeof i)return i.addInitializer((function(){s.set(this,new Yd(this,{context:t}))})),{get(){return e.get.call(this)},set(t){var i;return null==(i=s.get(this))||i.setValue(t),e.set.call(this,t)},init(t){var e;return null==(e=s.get(this))||e.setValue(t),t}};{e.constructor.addInitializer((e=>{s.set(e,new Yd(e,{context:t}))}));const o=Object.getOwnPropertyDescriptor(e,i);let r;if(void 0===o){const t=new WeakMap;r={get(){return t.get(this)},set(e){s.get(this).setValue(e),t.set(this,e)},configurable:!0,enumerable:!0}}else{const t=o.set;r={...o,set(e){s.get(this).setValue(e),null==t||t.call(this,e)}}}return void Object.defineProperty(e,i,r)}}}
/**
   * @license
   * Copyright 2022 Google LLC
   * SPDX-License-Identifier: BSD-3-Clause
   */function Kd({context:t,subscribe:e}){return(i,s)=>{"object"==typeof s?s.addInitializer((function(){new Vd(this,{context:t,callback:t=>{i.set.call(this,t)},subscribe:e})})):i.constructor.addInitializer((i=>{new Vd(i,{context:t,callback:t=>{i[s]=t},subscribe:e})}))}}const Qd="alignContext",Xd=t=>{let e="justify-start";return"center"===t&&(e="justify-center"),"right"===t&&(e="justify-end"),e};var Jd=Object.defineProperty,tp=Object.getOwnPropertyDescriptor,ep=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?tp(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Jd(e,i,r),r};let ip=class extends(Wo(Le(pt))){constructor(){super(...arguments),this.buttonType="",this.formType="select",this.type="",this.item_id="",this.prices=[],this.noPriceName=!1,this.disableAll=!0,this.loading=!1,this.size="lg",this.filtered_rate_ids=null,this.onFilterMutation=()=>{this.requestUpdate()}}willUpdate(t){var e,i;t.has("item_id")&&(null==(e=this.filterPublisher)||e.offInternalMutation(this.onFilterMutation),this.filterPublisher=zt.get("product/"+this.item_id+"/PricesFilter"),null==(i=this.filterPublisher)||i.onInternalMutation(this.onFilterMutation)),super.willUpdate(t)}connectedCallback(){this.disableAll=this.hasAttribute("disableAll"),super.connectedCallback()}disconnectedCallback(){var t;null==(t=this.filterPublisher)||t.offInternalMutation(this.onFilterMutation),super.disconnectedCallback()}showAll(){this.filterPublisher&&(this.filterPublisher.showAll=!0)}getFilteredPrices(){var t;if(!this.filterPublisher)return[];if(!this.prices)return[];let e=this.prices.slice(0),i=!0!==this.filterPublisher.showAll.get();const s=this.filterPublisher.selectedQuota.get();if(s&&s.id||(i=!1),i){const i=null==(t=s.prices)?void 0:t.filter((t=>t.visible));e=e.filter((t=>{const e=t.id;return!i||i.some((t=>t.price_id==e))}))}return e}getPriceItem(t){switch(this.formType){case"buttons":return Hd(t.id,V`
            <sonic-price-button
              type=${this.type}
              size=${this.size}
              buttonType=${this.buttonType}
              dataProvider=${this.dataProvider+"/price/"+t.id}
              .props=${t}
              item_id="${this.item_id}"
              ?noPriceName=${this.noPriceName}
              ?disabled=${this.disableAll}
            ></sonic-price-button>
          `);case"select":return Hd(t.id,V`
            <sonic-price-select
              type=${this.type}
              buttonType=${this.buttonType}
              dataProvider=${this.dataProvider+"/price/"+t.id}
              .props=${t}
              class=${t.price_is_promo?"order-first":""}
              size=${this.size}
              item_id="${this.item_id}"
              ?noPriceName=${this.noPriceName}
              ?disabled=${this.loading||this.disableAll}
            ></sonic-price-select>
          `)}}applyAdditionalFilter(t){return this.filtered_rate_ids?t?t.filter((t=>{var e;return null==(e=this.filtered_rate_ids)?void 0:e.includes(t.id)})):[]:t}render(){var t,e;if(0===(null==(t=this.prices)?void 0:t.length))return Z;const i=this.applyAdditionalFilter(this.getFilteredPrices()),s=this.isGuichet&&(null==(e=this.applyAdditionalFilter(this.prices))?void 0:e.length)!=(null==i?void 0:i.length);return V`
      <div class="@container">
        <div class="sonic-prices-list ${"prices-list-"+this.formType}">
          ${Ie(i,(t=>t.id),(t=>this.getPriceItem(t)))}
        </div>
      </div>

      <sonic-if .condition=${s}>
        <sonic-button @click=${this.showAll} variant="ghost" type="primary" size="sm" class="btn-show-all">
          <sonic-icon
            library="custom"
            slot="prefix"
            @click=${this.showAll}
            class="show-all-icon"
            name="plus"
          ></sonic-icon>
          Tous les tarifs
        </sonic-button>
      </sonic-if>
    `}};ip.styles=[ds,Qs,l`
      .prices-list-buttons {
        --_prices-item-mw: 8.5em;
        display: grid;
        grid-gap: 0.25em;
      }

      .prices-list-select {
        --_prices-item-mw: 9.2em;
        display: grid;
        grid-gap: 1.25rem 0.7rem;
        /*margin-bottom: 1rem;*/
        align-items: flex-end;
      }

      .sonic-prices-list {
        grid-template-columns: repeat(auto-fill, minmax(min(var(--_prices-item-mw), 100%), 1fr));
      }

      :host([align="center"]) .sonic-prices-list {
        display: flex !important;
        justify-content: center;
        flex-wrap: wrap;
        grid-gap: 1.25rem;
      }

      :host([align="center"]) sonic-price-select,
      :host([align="center"]) sonic-price-button {
        min-width: 12em;
      }

      .btn-show-all {
        margin-top: 0.5em;
      }

      :host([size="sm"]) .prices-list-buttons {
        --_prices-item-mw: 12em;
      }

      @container (min-width: 60rem) {
        .prices-list-select {
          --_prices-item-mw: 9.2em;
        }
      }

      @container (min-width: 80rem) {
        .prices-list-select {
          --_prices-item-mw: 10em;
        }
      }
    `],ep([ft({type:String})],ip.prototype,"buttonType",2),ep([ft({type:String})],ip.prototype,"formType",2),ep([ft({type:String})],ip.prototype,"type",2),ep([ft({type:String})],ip.prototype,"item_id",2),ep([ft({type:Array})],ip.prototype,"prices",2),ep([ft({type:Boolean})],ip.prototype,"noPriceName",2),ep([ft({type:Boolean})],ip.prototype,"disableAll",2),ep([ft({type:Boolean})],ip.prototype,"loading",2),ep([ft({type:String})],ip.prototype,"size",2),ep([Kd({context:Qd,subscribe:!0}),ft({type:String,reflect:!0})],ip.prototype,"align",2),ep([Us("prePurchaseData.placement.fitered_rate_ids"),ft({type:Array})],ip.prototype,"filtered_rate_ids",2),ip=ep([ut("sonic-prices-form")],ip);var sp=Object.defineProperty,op=Object.getOwnPropertyDescriptor,rp=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?op(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&sp(e,i,r),r};let np=class extends(Le(pt)){constructor(){super(...arguments),this.categories=[],this.labels=[],this.event_id="",this.slug="",this.multisession=null,this.skeleton=!1,this.link=!1,this.displayLocation=!1}render(){return this.skeleton?this.renderSkeleton():this.link?V`<sonic-app-link to="event" .slug=${this.slug} class="group contents">
        ${this.cardMarkup()}
      </sonic-app-link>`:this.cardMarkup()}cardMarkup(){return V` <div class="@container">
      <div
        class="leading-tight p-2 @sm:p-3 flex gap-3 rounded-md border border-solid border-neutral-100
       hover:border-neutral-200  focus:border-neutral-300
         transition duration-75 "
      >
        <sonic-product-illustration
          rounded="md"
          class="w-1/3 max-w-[8rem] shrink-0 relative self-start"
        ></sonic-product-illustration>
        <div class="self-center flex-grow py-1">
          <sonic-date
            weekday="short"
            day="2-digit"
            month="short"
            class="text-xs leading-tight block mb-2 uppercase"
          ></sonic-date>
          <div class="mb-3">
            <sonic-product-title class="leading-tight"></sonic-product-title>
          </div>

          <div class="flex gap-1 flex-wrap items-center gap-x-2">
            ${this.id?V`<sonic-event-additional-status
                  fetch
                  dataProvider="shows/${this.id}/status"
                  visibility="public"
                  size="xs"
                  class="flex flex-wrap gap-x-3 gap-y-1"
                ></sonic-event-additional-status>`:Z}
            <sonic-event-scheduled-status size="xs"></sonic-event-scheduled-status>
            <sonic-event-taxonomy .taxonomy=${this.labels} ellipsis size="xs" key="label"></sonic-event-taxonomy>
            ${this.categories.length>0?V` <sonic-event-taxonomy
                  .icon=${{name:"tag",library:"custom"}}
                  .taxonomy=${this.categories}
                  variant="ghost"
                  key="category"
                  size="xs"
                >
                </sonic-event-taxonomy>`:Z}
            ${this.displayLocation?V`<sonic-event-location-hall class="text-xs"></sonic-event-location-hall>`:Z}
          </div>
        </div>
      </div>
    </div>`}renderSkeleton(){return V`
      <div class="leading-tight p-2 @sm:p-3 flex gap-3 rounded-md border border-solid border-neutral-100">
        <div class="w-1/3 max-w-[8rem] shrink-0 relative aspect-square rounded-md bg-neutral-200 animate-pulse"></div>
        <div class="self-center flex-grow">
          <div class=" leading-none block mb-2 bg-neutral-50 rounded-sm h-4 w-1/2 mb-2"></div>
          <div class=" leading-none block mb-1 bg-neutral-100 rounded-sm h-5 w-2/3 mb-2"></div>
          <div class="text-xs leading-tight block bg-neutral-100 rounded-sm h-3 w-1/3"></div>
        </div>
      </div>
    `}};np.styles=[Qs],rp([ft({type:Array})],np.prototype,"categories",2),rp([ft({type:Array})],np.prototype,"labels",2),rp([ft({type:String})],np.prototype,"event_id",2),rp([ft({type:String})],np.prototype,"slug",2),rp([ft({type:Object})],np.prototype,"multisession",2),rp([ft({type:Boolean})],np.prototype,"skeleton",2),rp([ft({type:Boolean})],np.prototype,"link",2),rp([ft({type:Boolean})],np.prototype,"displayLocation",2),np=rp([ut("sonic-event-card")],np);var ap=Object.defineProperty,lp=Object.getOwnPropertyDescriptor,cp=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?lp(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&ap(e,i,r),r};let dp=class extends(Le(pt)){constructor(){super(...arguments),this.wording_link_title_events_all="",this.wording_module_store_title="",this.wording_strate_title_events_next="",this.staticProps={}}render(){if(this.isWaiting)return Z;let t=!1;return Array.isArray(this.staticProps)?t=this.staticProps.length>0:"object"==typeof this.staticProps&&(t=Object.keys(this.staticProps).length>0),V`<h2 class="font-headings font-weight-headings font-style-headings mb-4 text-2xl lg:text-3xl ">
        <sonic-icon library="custom" prefix="regular" name="forward" class="mr-[.35em]"></sonic-icon>
        ${this.wording_strate_title_events_next}
      </h2>
      <sonic-list
        ?fetch=${!t}
        key="${t?Z:"data"}"
        .props=${t?this.staticProps:Z}
        dataprovider="homeNextEvents"
        endPoint="shows?next=1&limit=6&view=essential"
        class="grid grid-cols-1 lg:grid-cols-3 gap-4 "
      >
        <template data-value="skeleton">
          <sonic-event-card skeleton></sonic-event-card>
          <sonic-event-card skeleton></sonic-event-card>
          <sonic-event-card skeleton></sonic-event-card>
        </template>
        <template>
          <sonic-event-card link></sonic-event-card>
        </template>
      </sonic-list>

      <div class="flex gap-x-2 gap-y-1 mt-4 flex-wrap">
        <sonic-app-link type="primary" to="agenda" variant="default">
          <sonic-icon slot="prefix" library="custom" prefix="regular" name="calendar-day"></sonic-icon>
          ${this.wording_link_title_events_all}
        </sonic-app-link>
        <sonic-app-link to="store" variant="ghost">
          <sonic-icon slot="prefix" library="custom" prefix="regular" name="cart-shopping-fast"></sonic-icon>
          ${this.wording_module_store_title}
        </sonic-app-link>
      </div>`}};dp.styles=[Qs],cp([ft({type:String})],dp.prototype,"wording_link_title_events_all",2),cp([ft({type:String})],dp.prototype,"wording_module_store_title",2),cp([ft({type:String})],dp.prototype,"wording_strate_title_events_next",2),cp([ft({type:Object})],dp.prototype,"staticProps",2),cp([Us("sonicTicketApp.isWaiting"),vt()],dp.prototype,"isWaiting",2),dp=cp([ut("sonic-agenda-section-next")],dp);var pp=Object.defineProperty,hp=Object.getOwnPropertyDescriptor,up=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?hp(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&pp(e,i,r),r};let mp=class extends(Le(pt)){constructor(){super(...arguments),this.staticProps={},this.displayMode="card_cover"}render(){if(this.isWaiting)return Z;let t=!1;return Array.isArray(this.staticProps)?t=this.staticProps.length>0:"object"==typeof this.staticProps&&(t=Object.keys(this.staticProps).length>0),V`<sonic-list
      ?fetch=${!t}
      loader="inline"
      key="${t?Z:"data"}"
      .props=${t?this.staticProps:Z}
      dataprovider="/shows?featured=1&next=1&limit=3&clean_sessions_data=true&view=essential"
      class="${"page"===this.displayMode?"grid grid-cols-1 gap-16 mb-20":"grid grid-cols-1 lg:grid-cols-3 gap-4"}"
    >
      ${"page"===this.displayMode?V` <template>
              <sonic-event-page noNavigation noRelated></sonic-event-page>
            </template>
            <template data-value="separator"> <sonic-divider></sonic-divider></template>`:Z}
      ${"card_cover"===this.displayMode?V`<template data-value="skeleton">
              <sonic-event-card-cover skeleton></sonic-event-card-cover>
              <sonic-event-card-cover skeleton></sonic-event-card-cover>
              <sonic-event-card-cover skeleton></sonic-event-card-cover>
            </template>
            <template>
              <sonic-event-card-cover></sonic-event-card-cover>
            </template>`:Z}
    </sonic-list>`}};mp.styles=[Qs,l`
      :host {
        display: block;
      }
    `],up([ft({type:Object})],mp.prototype,"staticProps",2),up([Us("sonicTicketApp.isWaiting"),vt()],mp.prototype,"isWaiting",2),up([Us("settings.customer_ui.home.featured"),vt()],mp.prototype,"displayMode",2),mp=up([ut("sonic-agenda-section-featured")],mp);const gp=l`
  .sonic-prose {
    --sc-prose-mb: 1em;
    max-width: 72ch;
  }
  .sonic-prose-condensed {
    --sc-prose-mb: 0.6em;
  }
  .sonic-prose a {
    text-decoration: underline;
  }
  .sonic-prose p {
    margin-bottom: var(--_sc-prose-mb, 1em);
  }
  .sonic-prose ul,
  .sonic-prose ol {
    margin-bottom: var(--_sc-prose-mb, 1em);
    padding-left: 1.75em;
  }
  .sonic-prose li {
    margin-bottom: 0.1em;
  }
  .sonic-prose ul,
  .sonic-prose li {
    list-style-type: disc;
  }
`;var fp=Object.defineProperty,vp=Object.getOwnPropertyDescriptor,yp=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?vp(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&fp(e,i,r),r};let bp=class extends pt{constructor(){super(...arguments),this.title="",this.home=!1}render(){let t,e;return this.home?(t=this.title||Ae("home_jumbotron_title"),e=Ae("home_jumbotron_text",!0)):(t=this.title,e=this.text||_e(this.text)),t||this.text?V` <div class="shadow-[0_40px_50px_-70px_rgb(0_0_0_/_0.35)] pb-8 text-left  max-w-[55rem] ">
      ${t?V` <div
            class="font-headings font-weight-headings font-style-headings text-3xl lg:text-5xl text-balance leading-tighter mb-4"
          >
            ${t}
          </div>`:Z}
      ${e?V` <div class="text-lg lg:text-xl sonic-prose sonic-prose-condensed ">
            ${this.text?_e(this.text):Ae("home_jumbotron_text",!0)}
          </div>`:Z}
    </div>`:Z}};bp.styles=[Qs,gp,l`
      :host {
        display: block;
        margin-left: calc(-1 * var(--sc-container-gutter-x));
        margin-right: calc(-1 * var(--sc-container-gutter-x));
        padding: 1rem var(--sc-container-gutter-x);
      }
    `],yp([ft({type:String})],bp.prototype,"title",2),yp([ft({type:String})],bp.prototype,"text",2),yp([ft({type:Boolean})],bp.prototype,"home",2),bp=yp([ut("sonic-jumbotron")],bp);const wp=l`
  :host {
    display: inline-flex;
    align-items: center;
    gap:.35em;
    flex-wrap:wrap;
  }
  .city-name {
    font-weight: 600;
  }
  sonic-icon{
    margin-right:.2em;
  }
`;var xp=Object.defineProperty,_p=Object.getOwnPropertyDescriptor,kp=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?_p(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&xp(e,i,r),r};let $p=class extends pt{constructor(){super(...arguments),this.displayCity=!1,this.location_city_name="",this.location_name=""}render(){const t=this.location_city_name&&this.displayCity;return V`
      <sonic-if ?condition=${!0===t}>
        <span class="city-name"> ${this.location_city_name}</span>
        <sonic-if ?condition=${!!this.location_name}> • </sonic-if>
      </sonic-if>
      <span>${this.location_name}</span>
    `}};$p.styles=[wp],kp([ft({type:Boolean})],$p.prototype,"displayCity",2),kp([ft({type:String})],$p.prototype,"location_city_name",2),kp([ft({type:String})],$p.prototype,"location_name",2),$p=kp([ut("sonic-event-location")],$p);var Pp=Object.defineProperty,Sp=Object.getOwnPropertyDescriptor,Cp=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Sp(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Pp(e,i,r),r};let Ap=class extends pt{constructor(){super(...arguments),this.room_display_name=!1,this.room_name="",this.room_placing_type_label="",this.room_free_placing_add_on_label="",this.noPlacement=!1}render(){const t=1==this.room_display_name?V`<span class="inline">${this.room_name}</span>`:"",e=this.room_name&&this.room_display_name&&this.room_placing_type_label?" – ":"",i=this.room_free_placing_add_on_label&&(this.room_name&&this.room_display_name||this.room_placing_type_label)?" – ":"",s=t?V` ${t} ${e} `:"";return this.noPlacement&&t?V`${t}`:V`${s}<span class="inline"
        >${this.room_placing_type_label} ${i} ${this.room_free_placing_add_on_label}</span
      >`}};Ap.styles=[Qs],Cp([ft({type:Boolean})],Ap.prototype,"room_display_name",2),Cp([ft({type:String})],Ap.prototype,"room_name",2),Cp([ft({type:String})],Ap.prototype,"room_placing_type_label",2),Cp([ft({type:String})],Ap.prototype,"room_free_placing_add_on_label",2),Cp([ft({type:Boolean})],Ap.prototype,"noPlacement",2),Ap=Cp([ut("sonic-event-hall")],Ap);var Op=Object.defineProperty,Ep=Object.getOwnPropertyDescriptor,Tp=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Ep(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Op(e,i,r),r};let Mp=class extends(Le(pt)){constructor(){super(...arguments),this.room=null,this.location=null,this.placing_type=null,this.placing_addon=null,this.noPlacement=!1}render(){var t,e,i,s,o,r,n,a,l,c,d,p,h,u,m,g,f,v,y,b,w,x;return this.placing_type=this.placing_type||this.room,this.placing_addon=this.placing_addon||this.room,(null==(t=this.location)?void 0:t.city)&&(null==(e=this.room)?void 0:e.room_display_city)||(null==(i=this.location)?void 0:i.title)||(null==(s=this.room)?void 0:s.room_display_name)&&(null==(o=this.room)?void 0:o.room_name)||(null==(r=this.placing_type)?void 0:r.room_placing_type_label)||(null==(n=this.placing_addon)?void 0:n.room_free_placing_add_on_label)?(this.style.removeProperty("display"),V`
      <div class="inline-flex  gap-[.35em] ">
        <div class="shrink-0">
          <sonic-icon library="custom" name="location-dot" class="w-[1em] text-center"></sonic-icon>
        </div>

        <div class="self-center">
          <sonic-if .condition=${!!this.location}>
            <sonic-event-location
              location_city_name=${(null==(a=this.location)?void 0:a.city)||""}
              location_name=${(null==(l=this.location)?void 0:l.title)||""}
              ?displayCity=${null==(c=this.room)?void 0:c.room_display_city}
            ></sonic-event-location>
          </sonic-if>
          <sonic-if
            .condition=${!!(this.room&&this.room.room_display_name||this.placing_type||(null==(d=this.placing_addon)?void 0:d.room_free_placing_add_on_label))}
          >
            <sonic-if
              .condition=${!(!((null==(p=this.location)?void 0:p.city)&&(null==(h=this.room)?void 0:h.room_display_city)||(null==(u=this.location)?void 0:u.title))||!((null==(m=this.room)?void 0:m.room_display_name)&&(null==(g=this.room)?void 0:g.room_name)||(null==(f=this.placing_type)?void 0:f.room_placing_type_label)||(null==(v=this.placing_addon)?void 0:v.room_free_placing_add_on_label)))}
              >&nbsp;/&nbsp;</sonic-if
            >
            <sonic-event-hall
              ?noPlacement=${this.noPlacement}
              .room_display_name=${null==(y=this.room)?void 0:y.room_display_name}
              room_name=${(null==(b=this.room)?void 0:b.room_name)||""}
              room_placing_type_label=${(null==(w=this.placing_type)?void 0:w.room_placing_type_label)||""}
              room_free_placing_add_on_label=${(null==(x=this.placing_addon)?void 0:x.room_free_placing_add_on_label)||""}
            ></sonic-event-hall>
          </sonic-if>
        </div>
      </div>
    `):(this.style.display="none",Z)}};Mp.styles=[Qs],Tp([ft({type:Object})],Mp.prototype,"room",2),Tp([ft({type:Object})],Mp.prototype,"location",2),Tp([ft({type:Object})],Mp.prototype,"placing_type",2),Tp([ft({type:Object})],Mp.prototype,"placing_addon",2),Tp([ft({type:Boolean})],Mp.prototype,"noPlacement",2),Mp=Tp([ut("sonic-event-location-hall")],Mp);const Dp="cartLayout",Lp="cartMode",jp="cartType",Ip="appType",zp="legacyCounterContext";var Bp=Object.defineProperty,Rp=Object.getOwnPropertyDescriptor,Np=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Rp(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Bp(e,i,r),r};let Fp=class extends(Le(pt)){constructor(){super(...arguments),this.title="",this.id="",this.display=!1,this.filter=!1,this.type="filter"}render(){return("display"!==this.type||this.display)&&("filter"!==this.type||this.filter)?V`<sonic-menu-item
      size="sm"
      type="default"
      radio
      value="${this.id}"
      id="category_${this.id}"
      name="ids_category"
    >
      ${this.title}
    </sonic-menu-item>`:Z}};Np([ft({type:String})],Fp.prototype,"title",2),Np([ft({type:String})],Fp.prototype,"id",2),Np([ft({type:Boolean})],Fp.prototype,"display",2),Np([ft({type:Boolean})],Fp.prototype,"filter",2),Np([ft({type:String})],Fp.prototype,"type",2),Fp=Np([ut("sonic-form-event-category-item")],Fp);var qp=Object.defineProperty,Hp=Object.getOwnPropertyDescriptor,Up=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Hp(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&qp(e,i,r),r};let Vp=class extends(_s(Le(pt))){constructor(){super(...arguments),this.dataProvider="category",this.hasCategory=!1,this.staticProps={},this.onlyFilterCategories=[],this.data=null}willUpdate(t){t.has("data")&&this.data?this.onlyFilterCategories=this.data.filter((t=>!0===t.filter)):this.data||(this.onlyFilterCategories=[]),super.willUpdate(t)}render(){var t;return V`
      ${(null==(t=this.onlyFilterCategories)?void 0:t.length)?V`<sonic-pop>
            <div class="relative">
              <sonic-button size="lg" data-aria-label=${li(Ae("filter"))}>
                <sonic-icon
                  class="hidden lg:block"
                  library="custom"
                  prefix="regular"
                  name="sliders"
                  slot="prefix"
                ></sonic-icon>
                <span class="hidden lg:block"> ${Ae("filter")} </span>

                <sonic-icon class="block lg:hidden" library="custom" prefix="regular" name="sliders"></sonic-icon>
              </sonic-button>
              ${this.hasCategory?V` <sonic-badge class="absolute top-[-.3em] left-[.3em]" size="xs" type="danger"></sonic-badge>`:Z}
            </div>
            <sonic-menu class="max-h-[30vh] overflow-auto" slot="content" size="sm" minWidth="15rem">
              <sonic-menu-item size="sm" type="default" name="ids_category" value="" radio
                >${Ae("all_categories")}</sonic-menu-item
              >
              <sonic-list displayContents .props=${this.onlyFilterCategories}>
                <template>
                  <sonic-form-event-category-item></sonic-form-event-category-item>
                </template>
              </sonic-list>
            </sonic-menu>
          </sonic-pop>`:Z}
    `}};Vp.styles=[Qs,l`
      :host {
        display: block;
      }
    `],Up([ft({type:Boolean})],Vp.prototype,"hasCategory",2),Up([ft({type:Object})],Vp.prototype,"staticProps",2),Up([vt()],Vp.prototype,"onlyFilterCategories",2),Up([vt()],Vp.prototype,"data",2),Vp=Up([ut("sonic-form-event-category")],Vp);var Wp=Object.defineProperty,Zp=Object.getOwnPropertyDescriptor,Yp=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Zp(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Wp(e,i,r),r};let Gp=class extends(Le(pt)){constructor(){super(...arguments),this.wording_tous="Tous"}render(){if(!this.props)return Z;const t=Object.keys(this.props);return V`
      <sonic-menu class="inline-flex max-w-full" direction="row" scrollable>
        <sonic-menu-item
          variant="unstyled"
          radio
          name="day"
          value=""
          class="py-2 px-2 text-neutral-400 [&[active]]:font-bold [&[active]]:text-content hover:bg-neutral-100 transition-all rounded font-medium "
        >
          <span swap="on" class="leading-tight">
            <sonic-icon library="iconoir" name="calendar"></sonic-icon>
            ${this.wording_tous}
          </span>
          <span swap="off" class="leading-tight">
            <sonic-icon library="iconoir" name="calendar"></sonic-icon>
            ${this.wording_tous}
          </span>
        </sonic-menu-item>

        ${t.length>0?t.map((t=>V`<sonic-form-event-days-day dataProvider="sonic-form-event-days-day/${t}" lazyRendering day=${t}></sonic-form-event-days-day>`)):Z}
      </sonic-menu>
    `}};Gp.styles=[l`
      :host {
        display: block;
      }
    `,Qs],Yp([ft({type:String})],Gp.prototype,"wording_tous",2),Gp=Yp([ut("sonic-form-event-days")],Gp);let Kp=class extends(Le(pt)){constructor(){super(...arguments),this.day=""}render(){const t=this.day;return this.shouldRenderLazy?V`<div class="w-16"></div>`:V` <sonic-menu-item
    name="day"
    value=${t}
    type="default"
    variant="unstyled"
    radio
    class="py-2 px-2  leading-tight text-neutral-400 [&[active]]:font-bold [&[active]]:text-content hover:bg-neutral-100 transition-all rounded font-medium"
  >
    <sonic-date
      swap="on"
      designMode
      noShadowDom
      .date=${parseInt(t)}
      weekday="long"
      day="2-digit"
      month="short"
      hour="hidden"
      minute="hidden"
      second="hidden"
      year="numeric"
    >
      <template data-value="weekday">
        <span></span>
      </template>
      <template data-value="day">
        <span class="uppercase font-bold"></span>
      </template>
      <template data-value="month">
        <span class="font-bold capitalize"></span>
      </template>
      <template data-value="year">
        <span class="uppercase font-bold hidden"></span>
      </template>
    </sonic-date>
    <sonic-date
      swap="off"
      designMode
      noShadowDom
      .date=${parseInt(t)}
      weekday="narrow"
      day="2-digit"
      month="short"
      hour="hidden"
      minute="hidden"
      second="hidden"
      year="2-digit"
      class="flex items-center"
    >
      <template data-value="weekday">
        <span></span>
      </template>
      <template data-value="day">
        <span class="uppercase"></span>
      </template>
      <template data-value="month">
        <span class="hidden"></span>
      </template>
      <template data-value="year">
        <span class="hidden"></span>
      </template>
    </sonic-date>
  </sonic-menu-item>`}};Kp.styles=[l`
      :host {
        display: block;
      }
    `,Qs],Yp([ft({type:String})],Kp.prototype,"day",2),Kp=Yp([ut("sonic-form-event-days-day")],Kp);var Qp=Object.defineProperty,Xp=Object.getOwnPropertyDescriptor,Jp=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Xp(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Qp(e,i,r),r};let th=class extends(Le(pt)){constructor(){super(...arguments),this._isGuichet=!1,this.storeFilterByDay=!1,this.customerFilterByDay=!1,this.filterCategory=!1,this.filterDays=!1,this.gap="var(--form-gutter)",this._selectedCategory="",this.formDataProvider="eventFrontFilters",this.resetOnSearch=t=>{t&&t.length>0&&(this.form.ids_category=[],this.form.day=[])}}get isGuichet(){return this._isGuichet||(this._isGuichet=this.hasAncestorAttribute("is_guichet"))}connectedCallback(){this.form=Ti.get(this.formDataProvider),super.connectedCallback(),this.form.onInternalMutation((()=>{const t=this.form.get();let e=t.ids_category,i=t.day;Array.isArray(e)&&(e=e.join(",")),Array.isArray(i)&&(i=i.join(",")),this._selectedCategory=e;const s=new URLSearchParams(window.location.search);e?s.set("id_categ",e):s.delete("id_categ"),i?s.set("day",i):s.delete("day");const o=window.location.hash;(e||i)&&window.history.replaceState(null,"",`${window.location.pathname}?${s.toString()}${o}`)})),this.initFromUrl(),this.form.search.onAssign(this.resetOnSearch)}disconnectedCallback(){this.form.search.offAssign(this.resetOnSearch),super.disconnectedCallback()}initFromUrl(){const t=new URLSearchParams(window.location.search),e=t.get("id_categ"),i=t.get("day");this.form.ids_category=[e],this.form.day=[i]}resetCategory(){this.form.ids_category=[]}render(){const t={gap:this.gap},e=!!this._selectedCategory,i=Math.round((new Date).getTime()/1e3);let s;s=this._isGuichet?this.storeFilterByDay:this.customerFilterByDay;const o=this.filterDays||s;return V`
      <div formDataProvider=${this.formDataProvider} class="flex min-w-0 flex-col w-full" style=${pi(t)}>
        <div class="flex items-center" style=${pi(t)}>
          <!-- Search -->
          <sonic-input
            type="search"
            name="search"
            inlineContent
            placeholder="${Ae("Search...")}"
            filteredFields="title"
            class="grow"
            autocomplete="off"
            value=""
          >
            <sonic-icon library="iconoir" slot="prefix" name="search" size="lg"></sonic-icon>
          </sonic-input>

          <!-- Categories -->
          ${this.filterCategory?V`<sonic-form-event-category ?hasCategory=${e}></sonic-form-event-category>`:Z}
        </div>

        <!-- Days -->
        ${o?V`<sonic-fetch dataProvider="events/filters/days?from=${i}" key="data">
              <sonic-form-event-days></sonic-form-event-days
            ></sonic-fetch>`:Z}
        ${e?V`<sonic-fetch dataProvider="selectedCategory" endPoint="category/${this._selectedCategory}" key="data">
              <div class="inline-flex items-center  gap-4 divide-x divide-neutral-200 pl-3">
                <div class="text-lg  font-bold   mr-2 inline-flex gap-2 items-center leading-tight">
                  <sonic-icon library="custom" name="tag"></sonic-icon>
                  <sonic-value key="title"></sonic-value>
                </div>
                <div class="px-2 py-2">
                  <sonic-button
                    @click=${this.resetCategory}
                    variant="unstyled"
                    shape="circle"
                    class="text-neutral-400 hover:text-neutral-600 flex-grow-0"
                  >
                    <sonic-icon library="custom" name="xmark"></sonic-icon>
                  </sonic-button>
                </div>
              </div>
            </sonic-fetch>`:""}
      </div>
    `}};th.styles=[l`
      :host {
        display: block;
        --form-gutter: 0.5rem;
      }
    `,Qs],Jp([ft({type:Boolean})],th.prototype,"isGuichet",1),Jp([Us("settings.store_ui.event.filter_by_day"),vt()],th.prototype,"storeFilterByDay",2),Jp([Us("settings.customer_ui.event.filter_by_day"),vt()],th.prototype,"customerFilterByDay",2),Jp([ft({type:Boolean})],th.prototype,"filterCategory",2),Jp([ft({type:Boolean})],th.prototype,"filterDays",2),Jp([ft({type:String})],th.prototype,"gap",2),Jp([ft({type:Array})],th.prototype,"_selectedCategory",2),Jp([ft({type:String})],th.prototype,"formDataProvider",2),th=Jp([ut("sonic-form-event-filter")],th);var eh=Object.defineProperty,ih=Object.getOwnPropertyDescriptor,sh=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?ih(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&eh(e,i,r),r};let oh=class extends(Le(pt)){constructor(){super(...arguments),this.site_link=""}render(){if(!this.site_link)return Z;const t=this.site_link.replace("https://","").replace("http://","").replace("www.","").split("/")[0];return V` <sonic-tooltip label=${t} placement="top-start">
      <sonic-link href=${this.site_link} target="_blank" class="group">
        <sonic-icon name="arrow-up-right" library="custom" class="mr-[.25em]"></sonic-icon>
        <span class="underline hover:no-underline font-medium"> ${this.customText||Ae("site_link_info")} </span>
      </sonic-link>
    </sonic-tooltip>`}};oh.styles=[Qs],sh([ft({type:String})],oh.prototype,"site_link",2),sh([ft({type:String})],oh.prototype,"customText",2),oh=sh([ut("sonic-event-site-link")],oh);var rh=Object.defineProperty,nh=Object.getOwnPropertyDescriptor,ah=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?nh(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&rh(e,i,r),r};let lh=class extends(Le(pt)){constructor(){super(...arguments),this.start_date=0,this.end_date=0}render(){return V`
      <sonic-date
        designMode
        noshadowdom
        year="numeric"
        month="short"
        weekday="short"
        class="block text-center leading-none ${this.end_date?"text-[.82em]":""}"
      >
        <template data-value="weekday">
          <span class="uppercase font-bold text-[1.1em]"></span>
        </template>
        <template data-value="day">
          <span class="text-[2.2em] block uppercase font-bold"></span>
        </template>
        <template data-value="month">
          <span class="text-[1.1em] block uppercase font-bold"></span>
        </template>
        <template data-value="year">
          <span class="mt-[.2em] mb-[.3em] font-bold  block uppercase text-[.82em]"></span>
        </template>
        <template data-value="to">
          <sonic-icon name="chevron-down" class="justify-center flex w-full mb-[.3em] -mt-[.15em]" library="custom"></sonic-icon>
        </template>
        <template data-value="literal">
          <span class="text-[.82em]"></span>
        </template>
        <template data-value="hour">
          <span class="text-[.82em]"></span>
        </template>
        <template data-value="minute">
          <span class="text-[.82em]"></span>
        </template>
      </sonic-date>
    `}};lh.styles=[Qs],ah([ft({type:Number})],lh.prototype,"start_date",2),ah([ft({type:Number})],lh.prototype,"end_date",2),lh=ah([ut("sonic-vertical-date")],lh);var ch=Object.defineProperty,dh=Object.getOwnPropertyDescriptor,ph=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?dh(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&ch(e,i,r),r};let hh=class extends(Le(pt)){constructor(){super(...arguments),this.wording_reelax_buy="",this.wording_reelax_resale="",this.wording_module_reelax_title="",this.wording_module_reelax_tooltip="",this.reelax_info=null,this.destination="all",this.isDuotone=!1,this.svgReelax=V`<svg
    xmlns="http://www.w3.org/2000/svg"
    xmlns:xlink="http://www.w3.org/1999/xlink"
    viewBox="0 0 37.08 39.46"
    class="fill-current"
  >
    <defs>
      <style>
        .cls-1 {
          fill: url(#GRADIENT_2);
        }
        .cls-2 {
          fill: url(#GRADIENT_2-2);
        }
      </style>
      <linearGradient id="GRADIENT_2" x1="13" y1="39.96" x2="30.82" y2="2.12" gradientUnits="userSpaceOnUse">
        <stop offset="0" stop-color="#3bceac" />
        <stop offset="0.25" stop-color="#4cc9f0" />
        <stop offset="0.5" stop-color="#c77dff" />
        <stop offset="0.75" stop-color="#ff9b85" />
        <stop offset="1" stop-color="#ffcb69" />
      </linearGradient>
      <linearGradient id="GRADIENT_2-2" x1="6.67" y1="36.98" x2="24.5" y2="-0.86" xlink:href="#GRADIENT_2" />
    </defs>
    <polygon class="cls-1" points="28.21 0 37.08 12.28 27.19 25.92 19.64 25.92 29.59 12.2 20.79 0 28.21 0" />
    <polygon class="cls-2" points="8.86 13.54 0 25.82 9.89 39.46 17.44 39.46 7.49 25.74 16.29 13.54 8.86 13.54" />
  </svg>`}willUpdate(t){t.has("reelax_info")&&(this.href=this.reelax_info?this.reelax_info[this.destination]:""),super.willUpdate(t)}firstUpdated(){this.checkIfDuotone()}checkIfDuotone(){var t;const e=null==(t=this.shadowRoot)?void 0:t.getElementById("contextDuotoneChecker");if(e){const t=window.getComputedStyle(e).backgroundColor,i=window.getComputedStyle(e).color;this.isDuotone=t===i}}render(){if(!this.href)return Z;let t="";return"all"==this.destination?t=this.wording_module_reelax_title:"buy"==this.destination?t=this.wording_reelax_buy:"resale"==this.destination&&(t=this.wording_reelax_resale),V`
      <div id="contextDuotoneChecker" class="bg-success text-danger hidden"></div>
      <sonic-tooltip label=${this.wording_module_reelax_tooltip} class="align-center"
        ><sonic-link href=${this.href} target="_blank" class="inline-flex gap-[.35em] items-center group">
          <div
            class="rounded w-[2em] h-[2em] p-2 border transition-border border-solid transition duration-100  ${this.isDuotone?"border-content bg-content [&_*]:fill-neutral-0":"bg-[#222] border-[#c77dff] group-hover:border-[#ff9b85]"}"
          >
            ${this.svgReelax}
          </div>
          <span class="font-bold ">${t}</span></sonic-link
        >
      </sonic-tooltip>
    `}};hh.styles=[Qs],ph([ft({type:String})],hh.prototype,"wording_reelax_buy",2),ph([ft({type:String})],hh.prototype,"wording_reelax_resale",2),ph([ft({type:String})],hh.prototype,"wording_module_reelax_title",2),ph([ft({type:String})],hh.prototype,"wording_module_reelax_tooltip",2),ph([ft({type:Object})],hh.prototype,"reelax_info",2),ph([ft({type:String})],hh.prototype,"destination",2),ph([ft({type:String})],hh.prototype,"href",2),ph([ft({type:String})],hh.prototype,"text",2),ph([vt()],hh.prototype,"isDuotone",2),hh=ph([ut("sonic-reelax-link")],hh);var uh=Object.defineProperty,mh=Object.getOwnPropertyDescriptor,gh=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?mh(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&uh(e,i,r),r};let fh=class extends(Le(pt)){constructor(){super(...arguments),this.refund={},this.wording_LIB_refund="",this.variant="outline",this.type="default",this.size="xs"}connectedCallback(){super.connectedCallback()}render(){if(!this.refund.display_url||!this.wording_LIB_refund)return Z;const t=ao("refund").query({event_id:this.id});return V`
      <sonic-button size="${this.size}" type="${this.type}" variant="${this.variant}" href=${t}>
        <sonic-icon library="custom" slot="prefix" name="arrow-rotate-left"></sonic-icon>
        ${this.wording_LIB_refund}
      </sonic-button>
    `}};gh([ft({type:Object})],fh.prototype,"refund",2),gh([ft({type:String})],fh.prototype,"wording_LIB_refund",2),gh([ft({type:String})],fh.prototype,"variant",2),gh([ft({type:String})],fh.prototype,"type",2),gh([ft({type:String})],fh.prototype,"size",2),fh=gh([ut("sonic-refund-link")],fh);var vh=Object.defineProperty,yh=Object.getOwnPropertyDescriptor,bh=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?yh(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&vh(e,i,r),r};let wh=class extends(Le(pt)){constructor(){super(...arguments),this.promotion_code=!1,this.event_id=null,this.has_promo=!1}handleSubmit(t){var e;const i=(null==(e=t.detail)?void 0:e.data)||null;if(!i)return;1==i.cart&&1==i.success?(zt.get("cart/current").invalidate(),ao("cart").matchesLocation()||wo("cart")):1==(null==i?void 0:i.success)&&this.publisher.invalidate()}render(){return this.promotion_code||this.event_id&&this.has_promo?V`
        <div formdataprovider="promoForm" submitresultdataprovider="promo" dataProvider="promotion-code" method="post">
          <sonic-submit onEnterKey @submit=${this.handleSubmit}>
            <sonic-input
              size=${li(this.size)}
              name="promo_code"
              placehoderAsLabel
              placeholder=${Ae("LIB_code_promo")}
              inlineContent
            >
              <sonic-icon library="custom" name="gift" slot="prefix"></sonic-icon>

              <sonic-submit onClick slot="suffix">
                <sonic-tooltip label="${Ae("submit")}">
                  <sonic-button
                    size=${li(this.size)}
                    shape="square"
                    icon
                    variant="unstyled"
                    data-aria-label=${Ae("submit")}
                  >
                    <sonic-icon
                      library="iconoir"
                      name="check"
                      class="${this.promoCodeValue?"opacity-100 animate-[pulse.5s_ease-in-out_infinite_.5s] inline-block":"opacity-30"}"
                    ></sonic-icon>
                  </sonic-button>
                </sonic-tooltip>
              </sonic-submit>
            </sonic-input>
          </sonic-submit>
        </div>
      `:Z}};wh.styles=[Qs],bh([Us("settings.promotion_code"),ft({type:Boolean})],wh.prototype,"promotion_code",2),bh([ft({type:Number})],wh.prototype,"event_id",2),bh([ft({type:Boolean})],wh.prototype,"has_promo",2),bh([ft({type:String})],wh.prototype,"size",2),bh([Us("promoForm.promo_code"),ft({type:String})],wh.prototype,"promoCodeValue",2),wh=bh([ut("sonic-promo-form")],wh);var xh=Object.defineProperty,_h=Object.getOwnPropertyDescriptor,kh=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?_h(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&xh(e,i,r),r};const $h=t=>{class e extends t{constructor(){super(...arguments),this.scriptType="front",this.scriptIsLoaded=!!document.getElementById("sonic-covoit-script")}connectedCallback(){const t=ao("account").toString();t&&(this.customRoutes={login:t}),this.addCovoitScript(),super.connectedCallback()}updated(t){t.has("carpoolingSettings")&&!this.scriptIsLoaded&&this.addCovoitScript()}addCovoitScript(){var t;if(!this.scriptIsLoaded&&(null==(t=this.carpoolingSettings)?void 0:t.url)){let t=this.carpoolingSettings.url;t.endsWith("/")&&(t=t.slice(0,-1));const e=new Date;e.setMinutes(0,0,0);t+="/dist/main.umd.js?"+Math.floor(e.getTime()/1e3);const i=document.createElement("script");i.id="sonic-covoit-script",i.src=t,i.type="module",document.head.appendChild(i),this.scriptIsLoaded=!0}}}return kh([Us("carpooling_user_id.encrypted_uid"),ft({type:String})],e.prototype,"encryptedUid",2),kh([Us("settings.modules.carpooling"),ft({type:Object})],e.prototype,"carpoolingSettings",2),kh([ft({type:Object})],e.prototype,"customRoutes",2),e};var Ph=Object.defineProperty,Sh=Object.getOwnPropertyDescriptor,Ch=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Sh(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Ph(e,i,r),r};let Ah=class extends($h(Le(pt))){constructor(){super(...arguments),this.id=""}render(){var t,e;const i=null==(t=this.carpoolingSettings)?void 0:t.url,s=(null==(e=this.carpoolingSettings)?void 0:e.token)||"";return i&&this.id?V`<covoit-event-widget
      covoitURL="${i}"
      baseURL="${li(ao("carpooling"))}"
      token="${li(s)}"
      eventId=${li(this.id)}
      customTitle="${Ae("module_carpooling_title")}"
    ></covoit-event-widget>`:Z}};Ch([ft({type:String})],Ah.prototype,"id",2),Ah=Ch([ut("sonic-carpooling-event-widget")],Ah);var Oh=Object.defineProperty,Eh=Object.getOwnPropertyDescriptor,Th=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Eh(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Oh(e,i,r),r};let Mh=class extends(Wo(Le(pt))){constructor(){super(...arguments),this.hidePromoForm=!1,this.hideReelax=!1,this.has_promo=!1,this.reelax_info=null,this.pass_culture={},this.refund={},this.carpooling=null}render(){var t,e,i;if(this._isGuichet)return Z;const s=(null==(t=this.carpoolingSettings)?void 0:t.access)&&(null==(e=this.carpooling)?void 0:e.enabled),o=this.reelax_info||(null==(i=this.pass_culture)?void 0:i.url),r=this.has_promo||this.refund.url||s;return o||r?(this.style.removeProperty("display"),V`${o?V` <div class=" flex flex-wrap gap-x-6 gap-y-2  ${Xd(this.align)}">
          <sonic-reelax-link class="text-sm lg:text-base lg:leading-tight"></sonic-reelax-link>
          <sonic-passculture-link class="text-sm lg:text-base lg:leading-tight"></sonic-passculture-link>
        </div>`:Z}
    ${o&&r?V`<sonic-divider class="my-4"></sonic-divider>`:Z}
    ${r?V`
          <div class="flex flex-wrap gap-x-5 gap-y-2 items-end ${Xd(this.align)}">
            ${s?V` <sonic-carpooling-event-widget></sonic-carpooling-event-widget>`:Z}
            <div class="flex gap-x-2 items-center">
              <sonic-refund-link size="xs"></sonic-refund-link>
              ${this.hidePromoForm?Z:V`<sonic-promo-form class="inline-block  w-[9rem]" size="xs"></sonic-promo-form>`}
            </div>
          </div>
        `:Z}`):(this.style.display="none",Z)}};Mh.styles=[Qs],Th([ft({type:Boolean})],Mh.prototype,"hidePromoForm",2),Th([ft({type:Boolean})],Mh.prototype,"hideReelax",2),Th([ft({type:Boolean})],Mh.prototype,"has_promo",2),Th([ft({type:Object})],Mh.prototype,"reelax_info",2),Th([ft({type:Object})],Mh.prototype,"pass_culture",2),Th([ft({type:Object})],Mh.prototype,"refund",2),Th([ft({type:Object})],Mh.prototype,"carpooling",2),Th([Kd({context:Qd,subscribe:!0}),ft({type:String})],Mh.prototype,"align",2),Th([Us("settings.modules.carpooling"),ft({type:Object})],Mh.prototype,"carpoolingSettings",2),Mh=Th([ut("sonic-buy-event-block-suffix")],Mh);const Dh="customListSlug";var Lh=Object.defineProperty,jh=Object.getOwnPropertyDescriptor,Ih=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?jh(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Lh(e,i,r),r};let zh=class extends(Le(pt)){constructor(){super(...arguments),this.prices=[],this.wording_pl_from_price="de",this.wording_pl_to_price="a",this.displayIcon=!1}render(){const t=this.prices.filter((t=>t.price_available));if(!t.length)return Z;const e=Math.min(...t.map((t=>t.amount||0))),i=e?Od.formatAmount(e):Ae("free"),s=Math.max(...t.map((t=>t.amount||0)));return V`<div class="flex gap-x-[.35em]">
      ${this.displayIcon?V`<div>
            <sonic-icon library="custom" name="circle-euro" class="w-[1em] text-center"></sonic-icon>
          </div>`:Z}

      <div>
        ${e!=s?V`
              ${this.wording_pl_from_price}
              <span class="price-min lowercase">${i}</span>
              ${this.wording_pl_to_price}
              <span class="price-max">${Od.formatAmount(s)}</span>
            `:V`<span class="price-min-max">${i}</span>`}
      </div>
    </div>`}};zh.styles=[Qs],Ih([ft({type:Array})],zh.prototype,"prices",2),Ih([ft({type:String})],zh.prototype,"wording_pl_from_price",2),Ih([ft({type:String})],zh.prototype,"wording_pl_to_price",2),Ih([ft({type:Boolean})],zh.prototype,"displayIcon",2),zh=Ih([ut("sonic-price-range")],zh);var Bh=Object.defineProperty,Rh=Object.getOwnPropertyDescriptor,Nh=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Rh(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Bh(e,i,r),r};let Fh=class extends(Le(pt)){constructor(){super(...arguments),this.seatmapRoute=ao(),this.wording_pl_reserver_sur_plan="",this.wording_pl_voir_sur_plan="",this.slug="",this.infos_status={},this.room={},this.contextListSpe=!1,this.prices=[]}connectedCallback(){this.seatmapRoute=ao("seatmap"),this.contextListSpe=this.hasAncestorAttribute("contextListSpe"),this._cartProvider=this.getAncestorAttributeValue("cartProvider"),super.connectedCallback()}createModalSeatMap(t){null==gl||gl.disposeAll(),gl.create({title:"Ajouter / Modifier les places",content:V`
        <sonic-event-seat-selector
          .id=${t.toString()}
          cartProvider=${li(this._cartProvider)}
          displaySummary
        ></sonic-event-seat-selector>
      `,maxWidth:"60rem",height:"80vh",removeOnHide:!0})}handleClick(t){this.id&&"cart/current"!==this._cartProvider&&(t.preventDefault(),this.createModalSeatMap(parseInt(this.id.toString())))}render(){if(0===this.prices.length)return Z;if(!(this.room&&["place","mixte"].includes(this.room.placing_type_key||"")))return Z;const t=this.infos_status.additionnals&&this.infos_status.additionnals.filter((t=>t.key&&["full","full_here","canceled"].includes(t.key))).length>0;this.seatmapRoute.fill({slug:this.slug,id:this.id});let e=this.seatmapRoute.toString();return this.customListSlug?e=this.seatmapRoute.query({sonic_custom_list_slug:this.customListSlug}).toString():this.contextListSpe&&(e=window.location.href+"/"+this.id),V`
      <sonic-button type="primary" href="${e}" @click=${this.handleClick}>
        <div class="reserver-plan-wording">
          <sonic-icon library="custom" name="location-dot"></sonic-icon>
          <div>
            ${t?this.wording_pl_voir_sur_plan:this.wording_pl_reserver_sur_plan}
            ${t?Z:V`<sonic-price-range></sonic-price-range>`}
          </div>
        </div>
      </sonic-button>
    `}};Fh.styles=l`
    sonic-button {
      --sc-btn-py: 0.8em;
    }

    sonic-icon {
      margin-right: 0.3em;
    }

    sonic-price-range {
      font-size: 0.8em;
      margin-top: 0.2em;
    }
    .reserver-plan-wording {
      display: flex;
      align-items: flex-start;
      font-weight: 600;
    }
  `,Nh([ft({type:String})],Fh.prototype,"wording_pl_reserver_sur_plan",2),Nh([ft({type:String})],Fh.prototype,"wording_pl_voir_sur_plan",2),Nh([ft({type:String})],Fh.prototype,"slug",2),Nh([ft({type:Object})],Fh.prototype,"infos_status",2),Nh([ft({type:Object})],Fh.prototype,"room",2),Nh([ft({type:Boolean})],Fh.prototype,"contextListSpe",2),Nh([ft({type:Array})],Fh.prototype,"prices",2),Nh([Kd({context:Dh,subscribe:!0}),ft({type:String})],Fh.prototype,"customListSlug",2),Fh=Nh([ut("sonic-event-map-link")],Fh);var qh=Object.defineProperty,Hh=Object.getOwnPropertyDescriptor,Uh=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Hh(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&qh(e,i,r),r};let Vh=class extends pt{constructor(){super(...arguments),this.src="",this.title="",this.urlBase="",this.lang="fr",this.loading=!0,this.error=!1,this.nbOfLoad=0,this.scollIsInitialized=!1,this.configureTheme=t=>{var e;t&&this._iframe&&(null==(e=this._iframe.contentWindow)||e.postMessage({type:"SonicTheme",...t},"*"))},this.handleIframeMessage=t=>{var e,i;if(t.data.invalidate){const e=t.data.invalidate;Array.isArray(e)?e.forEach((t=>{Ti.get(t).invalidate()})):Ti.get(e).invalidate()}if(t.data.goTo){let e="";e=t.data.goTo.startsWith("http")?decodeURIComponent(t.data.goTo):ao(t.data.goTo||"home").query(t.data.params||{}).toString(),e&&(window.location.href=e)}t.data.closeModal&&gl.disposeAll(),1==t.data.isLoaded&&(null==(i=null==(e=this._iframe)?void 0:e.contentWindow)||i.postMessage({type:"iframeContext",value:"v2"},"*"),this.nbOfLoad>0&&this.scrollTopIframe(),this.nbOfLoad+=1),(1==t.data.goToPayment||"popup"===t.data.eventType&&(null==window?void 0:window.matchMedia("(max-width: 640px)").matches))&&this.scrollTopIframe(),"SonicIframeResquestParentScrollPosition"==t.data.type&&(this.sendIframePosition(),this.scollIsInitialized||(window.addEventListener("scroll",(()=>{this.sendIframePosition()})),window.addEventListener("resize",(()=>{this.sendIframePosition()})))),"iframeBodySize"==t.data.type&&this._iframe&&(this._iframe.style.height=t.data.value.height+"px")},this.observer=new MutationObserver((t=>{t.forEach((t=>{"attributes"===t.type&&(this.lang=this.getHTMLlang())}))}))}connectedCallback(){const t=kt.getAncestorAttributeValue(this,"serviceURL")||"";this.urlBase=new URL(t,document.location.href).origin,this.lang=this.getHTMLlang(),this.observer.observe(document.documentElement,{attributes:!0}),Ti.get("sonic-theme").onAssign(this.configureTheme),window.addEventListener("message",this.handleIframeMessage,!1),super.connectedCallback()}getHTMLlang(){return document.documentElement.lang.split("-")[0]||"fr"}sendIframePosition(){var t;if(this._iframe){const e=this._iframe.getBoundingClientRect().top;null==(t=this._iframe.contentWindow)||t.postMessage({type:"SonicIframeScrollPosition",scrollY:window.scrollY,iframeWrapperTop:e,parentInnerHeight:window.innerHeight},"*")}}disconnectedCallback(){Ti.get("sonic-theme").offAssign(this.configureTheme),this.observer.disconnect(),super.disconnectedCallback()}scrollTopIframe(){if(this._iframe&&this._iframeAnchor){this._iframeAnchor.getBoundingClientRect().top<0&&this._iframeAnchor.scrollIntoView({block:"start",behavior:"smooth"})}}handleLoad(){this.loading=!1}handleError(){this.error=!0}render(){let t=this.src;const e=t.includes("/la_billetterie/"),i=`lang=${this.lang}&noredirect=1${e?"":"&iframe=true"}&iframe_v2=true`;return t=t.includes("?")?`${t}&${i}`:`${t}?${i}`,V`
      <span id="iframeAnchor" class="absolute -translate-y-4 pointer-events-none"></span>
      ${this.error?V`<sonic-alert status="error">${Ae("error_title")}</sonic-alert>`:Z}
      <iframe
        id="iframe"
        src="${this.urlBase+t}"
        title="${this.title}"
        frameborder="0"
        scrolling="no"
        allowtransparency="true"
        width="100%"
        height="500"
        class="iframe-billetterie relative z-10"
        @load="${this.handleLoad}"
        @error="${this.handleError}"
      ></iframe>

      ${this.loading?V`<sonic-loader></sonic-loader>`:Z}
    `}};Vh.styles=[Qs,l`
      iframe {
        width: 100%;
        min-width: 100%;
        border: none;
      }

      :host() {
        display: block;
        min-height: 1px;
      }

      :host([cover]) iframe {
        min-height: 100% !important;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
      }
    `],Uh([ft()],Vh.prototype,"src",2),Uh([ft()],Vh.prototype,"title",2),Uh([bt("#iframe")],Vh.prototype,"_iframe",2),Uh([bt("#iframeAnchor")],Vh.prototype,"_iframeAnchor",2),Uh([ft({type:String})],Vh.prototype,"urlBase",2),Uh([ft({type:String})],Vh.prototype,"lang",2),Uh([ft({type:Boolean})],Vh.prototype,"loading",2),Uh([ft({type:Boolean})],Vh.prototype,"error",2),Vh=Uh([ut("sonic-iframe")],Vh);var Wh=Object.defineProperty,Zh=Object.getOwnPropertyDescriptor,Yh=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Zh(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Wh(e,i,r),r};let Gh=class extends(Wo(Le(pt))){constructor(){super(...arguments),this.room={},this._quotas=[],this.selectedQuota=null,this.display="select",this.isPlacementRateSelection=!1,this.pricesTerms={fr:"Tarifs public",en:"Public prices",de:"Öffentliche Preise",nl:"Publieke prijzen"},this.firstUpdatedQuota=!1}get quotas(){return this._quotas}set quotas(t){var e;this._quotas=t,this.selectQuotaById(null==(e=this.selectedQuota)?void 0:e.id),this.requestUpdate()}selectQuotaById(t){const e=this.quotas.find((e=>e.id==parseInt(t+"")));e?this.useQuotaAtIndex(this.quotas.indexOf(e)):this.useQuotaAtIndex(0)}handleQuotaSelection(t){let e="";e=t.target instanceof HTMLSelectElement?t.target.value:t.currentTarget.value,this.selectQuotaById(parseInt(e))}onSelectedSeatsChange(t){(null==t?void 0:t.length)&&this.selectQuotaById(parseInt(t[0].contingentementInterne))}useQuotaAtIndex(t){if(!this.quotas||!this.props)return;const e=this.props.id;if(!e)return;const i=this.quotas.length>1?this.quotas[t]:null;this.selectedQuota=i||{},this.dispatchEvent(new CustomEvent("selectQuota",{detail:i}));const s=this.quotas.length<2||!this.quotas[t];zt.get("product/"+e+"/PricesFilter").set({selectedQuota:i,showAll:s,quotas:this.quotas})}editQuota(t){gl.create({content:`<sonic-iframe src="${t}?dataProvider=${this.dataProvider}"></sonic-iframe>`,width:"90%",paddingX:"1.25rem",paddingY:"1.25rem",maxWidth:"65rem",height:"90vh",maxHeight:"90vh",removeOnHide:!0})}replaceTabTitle(t){var e;const i=document.documentElement.lang,s=(null==(e=this.pricesTerms)?void 0:e[i])?this.pricesTerms[i]:"Tarifs public";return null==t?void 0:t.replace("Hors contingentement",s)}willUpdate(t){var e,i,s,o,r,n,a,l;if(t.has("selectedQuota")&&!this.firstUpdatedQuota&&0==(null==(e=this.selectedQuota)?void 0:e.remaining_places_nb)){const t=0==(null==(s=null==(i=this.selectedQuota)?void 0:i.prices)?void 0:s.length)||(null==(r=null==(o=this.selectedQuota)?void 0:o.prices)?void 0:r.every((t=>0==t.visible))),e=0==(null==(n=this.quotas)?void 0:n.indexOf(this.selectedQuota)),c=1==(null==(a=this.selectedQuota)?void 0:a.id)&&e&&t;if((null==(l=this.quotas)?void 0:l.length)>1&&c){const t=this.quotas[1];t&&(null==t?void 0:t.remaining_places_nb)&&this.useQuotaAtIndex(1)}this.firstUpdatedQuota=!0}super.willUpdate(t)}render(){var t,e,i;if(!this.quotas)return Z;const s=this.room&&["place","mixte"].includes(this.room.placing_type_key||"");if(s&&!this.isPlacementRateSelection)return Z;if(s&&this.isPlacementRateSelection&&!this.isGuichet)return Z;const o=this.quotas.map((t=>{var e;return{value:t.id,selected:(null==(e=this.selectedQuota)?void 0:e.id)==t.id,wording:`${t.title} ${null!==t.remaining_places_nb?`(Reste : ${t.remaining_places_nb}/${t.total_places_nb||0})`:""}`}})),r=o.length>1,n=null==(e=ao("event.edit.quotas"))?void 0:e.fill({id:null==(t=this.props)?void 0:t.id}).toString(),a=!(!n||this.isPlacementRateSelection);return V`
      <sonic-if .condition=${r}>
        <!--Onglets-->
        ${"tabs"===this.display?V`
              <div class="flex gap-2 w-full relative ${Xd(this.align)}">
                ${Er(this.quotas,(t=>{var e;return V`
                    <button @click=${this.handleQuotaSelection} value=${t.id} class="relative">
                      <div class="font-bold px-2 py-1">${this.replaceTabTitle(t.title)}</div>
                      <div
                        class="${(null==(e=this.selectedQuota)?void 0:e.id)==t.id?"scale-x-100":"scale-x-0"}  transition absolute h-[4px] -bottom-[4px] bg-current w-full rounded"
                      ></div>
                    </button>
                  `}))}
              </div>
              <div class="h-[4px] w-full rounded bg-neutral-100"></div>
            `:Z}

        <!--SELECT-->
        ${"select"===this.display?V`<div class="flex gap-x-2 items-center">
              <sonic-select
                @change=${this.handleQuotaSelection}
                .options=${o}
                dataProvider=${this.dataProvider+"/quota-selector"}
                class="grow max-w-[26rem]"
                size="sm"
              ></sonic-select>
              ${a?V` <sonic-button @click=${()=>this.editQuota(n)} icon shape="circle" size="sm">
                    <sonic-icon name="pen" library="custom"></sonic-icon>
                  </sonic-button>`:Z}
            </div>`:Z}
        ${(null==(i=this.selectedQuota)?void 0:i.description)?V`<div class="mt-5 prose prose-sm prose-tight">${_e(this.selectedQuota.description)}</div>`:Z}
      </sonic-if>
    `}};Gh.styles=[Qs],Yh([ft()],Gh.prototype,"room",2),Yh([ft()],Gh.prototype,"quotas",1),Yh([ft({type:Object})],Gh.prototype,"selectedQuota",2),Yh([ft({type:String})],Gh.prototype,"display",2),Yh([ft({type:Boolean})],Gh.prototype,"isPlacementRateSelection",2),Yh([Kd({context:Qd,subscribe:!0}),ft({type:String,reflect:!0})],Gh.prototype,"align",2),Yh([Vs("user_placing.selectedSeats")],Gh.prototype,"onSelectedSeatsChange",1),Gh=Yh([ut("sonic-event-quota-selector")],Gh);const Kh=l`
  .sonic-categorized-prices-form:not(:last-child) {
    margin-bottom: 1.1em;
  }
`;var Qh=Object.defineProperty,Xh=Object.getOwnPropertyDescriptor,Jh=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Xh(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Qh(e,i,r),r};let tu=class extends(Le(pt)){constructor(){super(...arguments),this.prices_in_situ=[],this.inline=!1}render(){return this.prices_in_situ?V`<div class="${this.inline?"contents":"mt-3"}">
      ${this.prices_in_situ.map((t=>{var e,i,s;return!t.amount||(null==(e=this.category)?void 0:e.id)&&(null==(i=t.place_category)?void 0:i.id)!=(null==(s=this.category)?void 0:s.id)?Z:V`<div class="mr-3 inline-block">${t.title} : ${Od.formatAmount(t.amount)}</div>`}))}
    </div> `:Z}};tu.styles=[Qs],Jh([ft()],tu.prototype,"prices_in_situ",2),Jh([ft()],tu.prototype,"category",2),Jh([ft({type:Boolean})],tu.prototype,"inline",2),tu=Jh([ut("sonic-price-in-situ")],tu);var eu=Object.defineProperty,iu=Object.getOwnPropertyDescriptor,su=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?iu(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&eu(e,i,r),r};let ou=class extends pt{constructor(){super(...arguments),this.displaySoldOut=!1,this.placeCategories=[]}render(){const t=Xd(this.align);return this.placeCategories.some((t=>{var e;return(null==(e=t.items)?void 0:e.length)||0}))?V`${this.displaySoldOut?V` <span class="font-bold uppercase mb-2 block">${Ae("prices_sold_out")}</span> `:Z}
      <div class="grid grid-cols-1 gap-y-2">
        ${Ie(this.placeCategories,(t=>t.id),(e=>V`
              <div>
                ${e.title?V`<div class="font-bold mb-1">— ${e.title}</div>`:Z}
                <div class="flex flex-wrap items-start gap-x-6 leading-tight ${t}">
                  ${Er(e.items,(t=>V`<div>
                      <span class="font-bold mr-[.85em]">${t.title}</span>${t.amount?Ed(t.amount):Ae("free")}
                    </div>`))}
                  <sonic-price-in-situ inline></sonic-price-in-situ>
                </div>
              </div>
            `))}
      </div>`:Z}};ou.styles=[Qs,ds],su([ft({type:String})],ou.prototype,"size",2),su([ft({type:Boolean})],ou.prototype,"displaySoldOut",2),su([ft({type:Array})],ou.prototype,"placeCategories",2),su([Kd({context:Qd,subscribe:!0}),ft({type:String})],ou.prototype,"align",2),ou=su([ut("sonic-price-list-info")],ou);var ru=Object.defineProperty,nu=Object.getOwnPropertyDescriptor,au=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?nu(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&ru(e,i,r),r};let lu=class extends pt{constructor(){super(...arguments),this.name="user_id",this.label="Compte client",this.description="",this.size="",this.placeholder="Nom, prénom, email..."}render(){return V`
      <sonic-input-autocomplete
        label=${this.label}
        description=${this.description}
        placeholder=${this.placeholder}
        size=${this.size}
        name=${this.name}
        propertyName="id"
        autocomplete="do-not-autofill"
        dataProviderExpression="user?limit=15"
        searchParameter="search"
        data-keyboard-nav="nav-autocomplete"
        key="data"
      >
        ${this.userId?V`
              <sonic-fetch dataProvider="userSelectionView" key="data.0" endPoint="user?limit=15&id=${this.userId}">
                <sonic-menu-item
                  radio
                  name="user_id"
                  data-bind
                  ::value="$id"
                  data-keyboard-nav="nav-autocomplete"
                  size="sm"
                >
                  <sonic-value key="firstName"></sonic-value>
                  <sonic-value key="lastName"></sonic-value>
                  <span style="font-size:11px; opacity:.6">
                    <sonic-if data-bind ::condition="$structure">
                      (<sonic-value key="structure"></sonic-value>)
                    </sonic-if>
                    — <sonic-value key="email"></sonic-value>
                  </span>
                </sonic-menu-item>
              </sonic-fetch>
            `:Z}

        <sonic-icon name="user" library="custom" slot="prefix"></sonic-icon>
        <template>
          <sonic-menu-item radio name="user_id" data-bind ::value="$id" data-keyboard-nav="nav-autocomplete" size="sm">
            <sonic-value key="firstName"></sonic-value>
            <sonic-value key="lastName"></sonic-value>
            <span style="font-size:11px; opacity:.6">
              <sonic-if data-bind ::condition="$structure"> (<sonic-value key="structure"></sonic-value>) </sonic-if>
              — <sonic-value key="email"></sonic-value>
            </span>
          </sonic-menu-item>
        </template>
      </sonic-input-autocomplete>
    `}};au([ft({type:Number})],lu.prototype,"userId",2),au([ft({type:String})],lu.prototype,"name",2),au([ft({type:String})],lu.prototype,"label",2),au([ft({type:String})],lu.prototype,"description",2),au([ft({type:String})],lu.prototype,"size",2),au([ft({type:String})],lu.prototype,"placeholder",2),lu=au([ut("sonic-user-autocomplete")],lu);var cu=Object.defineProperty,du=Object.getOwnPropertyDescriptor,pu=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?du(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&cu(e,i,r),r};let hu=class extends pt{constructor(){super(...arguments),this.hasActions=!1,this.hasMore=!1,this._resizeController=new Hn(this,{})}checkIfActions(){var t;this.hasActions=!!(null==(t=this.actionsElement)?void 0:t.length)}checkIfMore(){var t;this.hasMore=!!(null==(t=this.moreElement)?void 0:t.length)}render(){const t=this.clientWidth<500;return V`
      <div class="header">
        ${void 0!==this.goBack||this.goBackHref?V`
              <div
                class="${t?"text-3xl":"text-4xl"} leading-none flex items-center shrink-0 mr-3 pr-2 border-r"
              >
                <sonic-button
                  ?goBack=${!this.goBackHref}
                  href=${li(this.goBackHref)}
                  variant="ghost"
                  shape="square"
                  size="${t?"md":"lg"}"
                >
                  <sonic-icon library="custom" name="arrow-left" size="${t?"lg":"xl"}"></sonic-icon>
                </sonic-button>
              </div>
            `:Z}

        <div class="header-content">
          <div class="flex flex-wrap items-center pt-1">
            <div class="${this.hasActions?"mr-auto ":""}">
              <div>
                <span class="${t?"text-3xl":"text-4xl"}  leading-none font-bold mr-4 text-balance"
                  >${this.label}</span
                >
                <slot name="status"></slot>
              </div>

              <slot name="subtitle" class="mt-[.25em] w-full ${t?"text-xl":"text-2xl"} ">
                ${this.subtitle??Z}
              </slot>
            </div>
            <div class=${this.hasActions?" block self-start mt-[.15em]":"hidden"}>
              <slot
                name="actions"
                @slotchange=${this.checkIfActions}
                class=${this.hasActions?" inline-flex gap-1 items center flex-wrap":"hidden"}
              ></slot>
            </div>
          </div>

          <slot></slot>
        </div>

        <div class=${this.hasMore?"block":"hidden"}>
          <sonic-pop class="block ml-2">
            <sonic-button shape="circle" size="${t?"md":"lg"}">
              <sonic-icon library="custom" name="ellipsis-vertical" size="${t?"md":"lg"}"></sonic-icon>
            </sonic-button>
            <slot @slotchange=${this.checkIfMore} name="more" slot="content"></slot>
          </sonic-pop>
        </div>
      </div>
    `}};hu.styles=[Qs,l`
      :host {
        display: block;
        margin-bottom: 2rem;
      }

      .header {
        display: flex;
        align-items: flex-start;
      }

      .header-content {
        flex-grow: 1;
      }
    `],pu([ft({type:String})],hu.prototype,"label",2),pu([ft({type:String})],hu.prototype,"subtitle",2),pu([ft({type:String})],hu.prototype,"goBack",2),pu([ft({type:String})],hu.prototype,"goBackHref",2),pu([xt({selector:"*",slot:"actions"})],hu.prototype,"actionsElement",2),pu([vt()],hu.prototype,"hasActions",2),pu([xt({selector:"*",slot:"more"})],hu.prototype,"moreElement",2),pu([vt()],hu.prototype,"hasMore",2),hu=pu([ut("sonic-page-header")],hu);var uu=Object.defineProperty,mu=Object.getOwnPropertyDescriptor,gu=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?mu(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&uu(e,i,r),r};let fu=class extends(Wo(Le(pt))){constructor(){super(...arguments),this.displayTitle=!1,this.id=""}onAssignUserId(t){this.userId=t}async resetData(){Ti.get("waitingListForm").details="",Ti.get("waitingListResult").set({})}onAssignWaitingListResult(t){if(!0===t){this.resetData();const t=Ci.getClosestElement(this,"sonic-modal");null==t||t.hide()}}connectedCallback(){this.resetData(),this.userId=this.currentUserId,super.connectedCallback()}willUpdate(t){t.has("currentUserId")&&(this.userId=this.currentUserId),super.willUpdate(t)}render(){if(!this.id)return Z;const t=!this.currentUserId&&!this.isGuichet,e=ao("waitingList").fill({id:this.id});return V`
      ${this.displayTitle?V`<sonic-page-header .label=${Ae("waiting_list")}></sonic-page-header>`:Z}
      ${t?V` <div class="prose prose-tight mb-4 mt-2">${Ae("waiting_list_text")}</div>
            <sonic-app-link
              to="account"
              variant="default"
              type="primary"
              .query=${{sonic_login_destination:e}}
            >
              <sonic-icon library="custom" name="user"></sonic-icon>
              ${Ae("login_or_sign_up")}
            </sonic-app-link>`:Z}
      ${t?Z:V`
            <sonic-fetch dataProvider="waitingListEvent" endPoint="events/${this.id}"> </sonic-fetch>
            <form class="mt-3" formDataProvider="waitingListForm" submitResultDataProvider="waitingListResult">
              <sonic-fieldset>
                <div dataProvider="waitingListEvent" class="flex gap-3 items-center mb-6 @container">
                  <sonic-product-illustration rounded="md" class="w-24 hidden @md:block"></sonic-product-illustration>
                  <div class="py-1">
                    <sonic-date class="uppercase text-sm "></sonic-date>
                    <sonic-product-title class="text-lg"></sonic-product-title>
                    <sonic-event-location-hall class="text-sm text-neutral-600 mt-2 block"></sonic-event-location-hall>
                  </div>
                </div>
                <sonic-input type="hidden" name="event_id" value="${this.id}"></sonic-input>

                <div class="grid grid-cols-1 gap-6">
                  <sonic-divider noMargin></sonic-divider>

                  ${this.isGuichet?V`<sonic-user-autocomplete></sonic-user-autocomplete>`:Z}

                  <sonic-input
                    class="max-w-[10rem] block"
                    label=${Ae("number_of_tickets_required")}
                    inlineContent
                    type="number"
                    value="1"
                    min="1"
                    name="place_count"
                  >
                    <span slot="prefix">
                      <sonic-icon name="ticket" library="custom"></sonic-icon>
                      <sonic-icon name="xmark" size="sm" library="custom"></sonic-icon>
                    </span>
                  </sonic-input>

                  <sonic-textarea
                    class="col-span-full"
                    label=${Ae("waiting_list_details")}
                    name="details"
                    rows="4"
                    placeholder=${Ae("waiting_list_placeholder")}
                  >
                  </sonic-textarea>
                  ${this.multissessionId?V` <sonic-checkbox
                        type="checkbox"
                        value="1"
                        unique
                        name="all_sessions"
                        label="${Ae("interested_in_all_sessions")}"
                      ></sonic-checkbox>`:Z}
                </div>
              </sonic-fieldset>

              <sonic-submit endPoint="/waiting-list" method="POST" ?disabled=${!this.userId} onclick>
                <sonic-button hideModal="true" type="success" ?disabled=${!this.userId}
                  ><sonic-icon name="check" library="custom"></sonic-icon> ${Ae("confirm")}
                </sonic-button>
              </sonic-submit>
            </form>
          `}
    `}};fu.styles=[Qs],gu([Us("user.id"),ft({type:Number})],fu.prototype,"currentUserId",2),gu([Vs("waitingListForm.user_id")],fu.prototype,"onAssignUserId",1),gu([ft({type:Number})],fu.prototype,"userId",2),gu([Us("waitingListEvent.multisession.multisession_id"),ft({type:Number})],fu.prototype,"multissessionId",2),gu([ft({type:Boolean})],fu.prototype,"displayTitle",2),gu([ft({type:String})],fu.prototype,"id",2),gu([Vs("waitingListResult.success")],fu.prototype,"onAssignWaitingListResult",1),fu=gu([ut("sonic-waiting-list-form")],fu);var vu=Object.defineProperty,yu=Object.getOwnPropertyDescriptor,bu=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?yu(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&vu(e,i,r),r};let wu=class extends(Wo(Le(pt))){constructor(){super(...arguments),this.waiting_list_enabled=!1,this.id="",this.prices=[],this.quotas=null,this.displayWaitingList=!1,this.isInit=!1}willUpdate(t){if(t.has("id")&&this.id&&!this.isInit){const t=new URLSearchParams(window.location.search),e=t.get("session");t.get("show_waiting_list")&&e==this.id&&this.createModal(e),this.isInit=!0}super.willUpdate(t)}render(){return this.id&&this.waiting_list_enabled?V`<sonic-button
      type="primary"
      variant=${li(this.variant)}
      size=${li(this.size)}
      @click=${()=>this.createModal(this.id)}
    >
      <sonic-icon library="custom" name="list-ol" slot="prefix"></sonic-icon>
      <span class="font-bold">${Ae("waiting_list")}</span>
    </sonic-button>`:Z}createModal(t){this._modal=gl.create({title:Ae("waiting_list"),content:`<sonic-waiting-list-form id="${t}"></sonic-waiting-list-form>`,width:"44rem"})}};wu.styles=[Qs],bu([Us("settings.modules.waiting_list.enabled"),ft({type:Boolean})],wu.prototype,"hasWaitingList",2),bu([ft({type:Boolean})],wu.prototype,"waiting_list_enabled",2),bu([ft({type:String})],wu.prototype,"id",2),bu([ft({type:String})],wu.prototype,"size",2),bu([ft({type:String})],wu.prototype,"variant",2),bu([ft({type:Array})],wu.prototype,"prices",2),bu([ft({type:Array})],wu.prototype,"quotas",2),bu([vt()],wu.prototype,"displayWaitingList",2),wu=bu([ut("sonic-waiting-list-button")],wu);var xu=Object.defineProperty,_u=Object.getOwnPropertyDescriptor,ku=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?_u(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&xu(e,i,r),r};let $u=class extends(Wo(Le(pt))){constructor(){super(...arguments),this.isPlacementRateSelection=!1,this.categoryId=0,this.infos_status={},this.type=null,this.formType="select",this.size="lg",this.buttonType="",this.room={},this.loading=!1,this.wording_LIB_add_to_cart="",this.someItemSelected=!1,this.formItemsDataProvider="",this.updateSubmitBtnStatus=()=>{const t=Object.values(Ti.get(this.formItemsDataProvider).get());this.someItemSelected=t.some((t=>t))},this.places_categories=[]}get props(){return super.props}set props(t){super.props=t,this.addDefaultPrices(),this.requestUpdate()}connectedCallback(){super.connectedCallback(),this.formItemsDataProvider=this.dataProvider+"/price-form-items",Ti.get(this.formItemsDataProvider).onInternalMutation(this.updateSubmitBtnStatus)}disconnectedCallback(){super.disconnectedCallback(),Ti.get(this.formItemsDataProvider).offInternalMutation(this.updateSubmitBtnStatus)}willUpdate(t){t.has("places_categories")&&this.addDefaultPrices(),super.willUpdate(t)}addDefaultPrices(){this.places_categories.forEach((t=>this.injectPrices(t))),0==this.places_categories.length&&this.props&&this.places_categories.push({items:this.props.prices})}injectPrices(t){var e,i;t.items=null==(i=null==(e=this.props)?void 0:e.prices)?void 0:i.filter((e=>{var i;return!(null==(i=e.place_category)?void 0:i.id)||e.place_category.id==t.id}))}async addToCart(){var t;this.loading=!0;const e=(null==(t=this.props)?void 0:t.id)?parseInt(this.props.id.toString()):0,i=Ti.getInstance().get("product/"+e+"/PricesFilter").get();let s=i.selectedQuota;!s&&i.quotas&&(s=i.quotas[0]);const o=[],r=Object.entries(Ti.get(this.formItemsDataProvider).get());for(const[a,l]of r)if(l>0){const t={type:this.type||void 0,entity_id:e,quantity:l,quota_id:s&&s.id?s.id:null,price:{id:parseInt(a)}};o.push(t)}const n=this.getAncestorAttributeValue("cartProvider");await Od.add({apiConfiguration:this.getApiConfiguration(),endPoint:n,items:o}),Ti.get(this.dataProvider+"/price-form-items").set({}),this.loading=!1}noPriceMarkup(){return this.userIsPro?V`<sonic-alert status="error" class="py-3" size="sm" label="${Ae("no_price_available")}"></sonic-alert>`:Z}render(){var t;if(!this.props)return Z;if(this.room&&["place","mixte"].includes(this.room.placing_type_key||"")&&!this.isPlacementRateSelection)return Z;const e=this.categoryId?this.places_categories.filter((t=>t.id==this.categoryId)):this.places_categories,i=e.some((t=>{var e;return null==(e=t.items)?void 0:e.some((t=>t.price_available))})),s=!this.isGuichet&&!i,o=this.props.id,r=null==(t=this.infos_status.additionnals)?void 0:t.some((t=>"end_sale"==t.key));return V` <div>
      ${Ie(e,(t=>t.id),(t=>{var e;if(0==(null==(e=t.items)?void 0:e.length))return this.noPriceMarkup();if(s)return Z;const r=!this.isGuichet&&0===t.remaining_places_nb;return V`
            <div class="sonic-categorized-prices-form">
              ${t.title?V`
                    <div class="mt-4 mb-3 font-bold">
                      ${t.title?t.title:Z}
                      ${r?V`<sonic-badge type="danger" size="xs">${Ae("sold_out")}</sonic-badge>`:Z}

                      <sonic-if .condition=${t.total_places_nb&&this.isGuichet}>
                        <sonic-badge
                          type="${null==t.remaining_places_nb?"danger":"default"}"
                          size="sm"
                          class="ml-2 inline-block"
                          >Reste : ${t.remaining_places_nb?t.remaining_places_nb:"0"} /
                          ${t.total_places_nb}
                        </sonic-badge>
                      </sonic-if>
                    </div>
                  `:Z}
              ${this.isGuichet||i?V`<sonic-prices-form
                      formDataProvider=${this.dataProvider+"/price-form-items"}
                      dataProvider=${this.dataProvider+"/category-prices/"+t.id}
                      .props=${{quota:this.selectedQuota,prices:t.items,item_id:o,loading:this.loading}}
                      formType="${this.formType}"
                      buttonType="${this.buttonType}"
                      size="${this.size}"
                      type=${this.type}
                      ?disableAll=${this.loading||this.hasAttribute("disabled")}
                    ></sonic-prices-form>
                    <sonic-price-in-situ .category=${t}></sonic-price-in-situ>`:Z}
            </div>
          `}))}

      <!--
      Ne rend en texte que si tous les tarifs sont complets
      -->
      ${this.isGuichet||i?Z:V`<sonic-price-list-info
            size="${this.size}"
            .placeCategories=${this.places_categories}
            ?displaySoldOut=${!r}
            class="block mb-3"
          ></sonic-price-list-info>`}

      <!--Achat-->
      ${this.getExtraFormItems()}
    </div>`}getExtraFormItems(){const t=this.places_categories.every((t=>{var e;return null==(e=t.items)?void 0:e.every((t=>!t.price_available))})),e=this.loading||this.hasAttribute("disabled")||!this.someItemSelected,i=this.selectedQuota&&0===this.selectedQuota.remaining_places_nb,s=this.places_categories.some((t=>{var e;return((null==(e=t.items)?void 0:e.length)||0)>0}));console.log(this.selectedQuota);let o=!1;return o=this.isGuichet?"select"===this.formType&&s:"select"===this.formType&&s&&!i&&!t,V`${o?V`<sonic-button
          data-aria-label=${this.wording_LIB_add_to_cart}
          @click=${this.addToCart}
          minWidth="16rem"
          type="primary"
          size=${this.size}
          ?disabled=${e}
        >
          <sonic-icon name="basket-shopping" library="custom" slot="prefix"></sonic-icon>
          <span class="font-bold uppercase">${this.wording_LIB_add_to_cart}</span>
        </sonic-button>`:Z}`}};$u.styles=[Qs,Kh],ku([ft()],$u.prototype,"props",1),ku([ft({type:Boolean})],$u.prototype,"isPlacementRateSelection",2),ku([ft({type:Number})],$u.prototype,"categoryId",2),ku([ft({type:Object})],$u.prototype,"infos_status",2),ku([Us("user.is_pro"),ft({type:Boolean})],$u.prototype,"userIsPro",2),ku([ft()],$u.prototype,"type",2),ku([ft()],$u.prototype,"formType",2),ku([ft({type:String})],$u.prototype,"size",2),ku([ft()],$u.prototype,"buttonType",2),ku([ft()],$u.prototype,"room",2),ku([ft()],$u.prototype,"selectedQuota",2),ku([ft()],$u.prototype,"loading",2),ku([ft({type:String})],$u.prototype,"eventSlug",2),ku([ft({type:String})],$u.prototype,"wording_LIB_add_to_cart",2),ku([ft({type:Boolean})],$u.prototype,"someItemSelected",2),ku([ft({type:Array})],$u.prototype,"places_categories",2),$u=ku([ut("sonic-categorized-prices")],$u);var Pu=Object.defineProperty,Su=Object.getOwnPropertyDescriptor,Cu=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Su(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Pu(e,i,r),r};let Au=class extends(Le(pt)){constructor(){super(...arguments),this.templateClosed=null,this.templateOpen=null,this.is_online=null,this.maintenance=!1,this.status="error",this.isGuichet=!1}connectedCallback(){this.dataProvider||(this.dataProvider="settings"),this.isGuichet=this.hasAncestorAttribute("is_guichet"),this.templateClosed=this.querySelector("template[data-value='closed']"),this.templateOpen=this.querySelector("template[data-value='open']"),super.connectedCallback()}render(){const t=this.maintenance?Ae("LIB_maintenance_message",!0):Ae("message_billetterie_en_ligne_fermee",!0);if(!1===this.is_online&&!window.location.search.includes("sonic_campaign_hash")||this.maintenance){if(this.templateClosed)return V`<div>${Is(this.templateClosed)}</div>`;if(!this.isGuichet)return V`<sonic-alert status=${this.status} size=${li(this.size)} class="py-[2em]"
          ><div class="sonic-prose sonic-prose-condensed">${t}</div>
        </sonic-alert>`}return!0===this.is_online&&this.templateOpen?V`<div>${Is(this.templateOpen)}</div>`:Z}};Au.styles=[Qs,gp],Cu([ft()],Au.prototype,"templateClosed",2),Cu([ft()],Au.prototype,"templateOpen",2),Cu([ft({type:Boolean})],Au.prototype,"is_online",2),Cu([ft({type:Boolean})],Au.prototype,"maintenance",2),Cu([ft({type:String})],Au.prototype,"status",2),Cu([ft({type:String})],Au.prototype,"size",2),Cu([ft({type:Boolean})],Au.prototype,"isGuichet",2),Au=Cu([ut("sonic-store-status")],Au);var Ou=Object.defineProperty,Eu=Object.getOwnPropertyDescriptor,Tu=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Eu(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Ou(e,i,r),r};let Mu=class extends(Wo(Le(pt))){constructor(){super(...arguments),this.isPlacementRateSelection=!1,this.useOverride=!1,this.disabled=!1,this.noSuffix=!1,this.billetteriePurchaseLink=!1,this.quotas=[],this.display="select",this.size="md",this.slug="",this.room={},this.categoryId=0,this.isFetchEnabled=!1}connectedCallback(){if(this.isFetchEnabled=this.hasAttribute("fetch"),this.isFetchEnabled&&this.id){const t=this.customListSlug?`?list=${this.customListSlug}`:"";this.dataProvider="events/"+this.id+t}super.connectedCallback()}onSelectQuota(t){this.selectedQuota=t.detail}willUpdate(t){t.has("quotas")&&!this.selectedQuota&&(this.selectedQuota=this.quotas[0]),super.willUpdate(t)}render(){var t;const e=this.room&&["place","mixte"].includes(this.room.placing_type_key||"")&&!this.isPlacementRateSelection,i=null==(t=this.selectedQuota)?void 0:t.remaining_places_nb,s=this.selectedQuota&&0===i,o=this.quotas.every((t=>0===t.remaining_places_nb)),r=this.isGuichet||!e&&s;let n=Xd(this.align);return this.isWaiting?Z:V`
      ${this.isFetchEnabled?V`<sonic-fetch dataProvider=${this.dataProvider||""}></sonic-fetch>`:Z}
      <sonic-store-status></sonic-store-status>

      ${this.quotas.length>1?V`<sonic-event-quota-selector
            ?isPlacementRateSelection=${this.isPlacementRateSelection}
            @selectQuota="${this.onSelectQuota}"
            display="${this.isGuichet?"select":"tabs"}"
            class="block mb-5"
          ></sonic-event-quota-selector>`:Z}

      <sonic-categorized-prices
        categoryId="${this.categoryId}"
        ?isPlacementRateSelection=${this.isPlacementRateSelection}
        type="event"
        formType="${this.formType||this.display||"select"}"
        ?disabled=${this.disabled}
        size="${this.size}"
        .selectedQuota=${this.selectedQuota}
      ></sonic-categorized-prices>

      ${e?V`<div class="flex gap-x-3 gap-y-2 items-center flex-wrap ${n}">
            <sonic-event-map-link></sonic-event-map-link>

            ${o?V`<sonic-waiting-list-button variant="outline"></sonic-waiting-list-button>`:Z}
          </div>`:Z}
      ${r?V`<sonic-waiting-list-button
            class="mt-2 block"
            size="${this._isGuichet?"sm":this.size}"
            variant="${this._isGuichet?"outline":"default"}"
          ></sonic-waiting-list-button>`:Z}
      ${this.noSuffix?Z:V`<div>
            <sonic-buy-event-block-suffix class="block mt-5"></sonic-buy-event-block-suffix>
          </div>`}
    `}};Mu.styles=[l`
      :host([align="center"]) {
        text-align: center;
      }
    `,Qs],Tu([ft({type:Boolean})],Mu.prototype,"isPlacementRateSelection",2),Tu([ft({type:Boolean})],Mu.prototype,"useOverride",2),Tu([ft({type:Boolean})],Mu.prototype,"disabled",2),Tu([ft({type:Boolean})],Mu.prototype,"noSuffix",2),Tu([ft({type:Boolean})],Mu.prototype,"billetteriePurchaseLink",2),Tu([ft({type:Array})],Mu.prototype,"quotas",2),Tu([ft({type:String})],Mu.prototype,"formType",2),Tu([ft({type:String})],Mu.prototype,"display",2),Tu([ft({type:String})],Mu.prototype,"size",2),Tu([ft({type:String})],Mu.prototype,"slug",2),Tu([ft({type:Object})],Mu.prototype,"room",2),Tu([ft({type:Number})],Mu.prototype,"categoryId",2),Tu([Kd({context:Qd,subscribe:!0}),Gd({context:Qd}),ft({type:String,reflect:!0})],Mu.prototype,"align",2),Tu([Kd({context:Dh,subscribe:!0}),ft({type:String})],Mu.prototype,"customListSlug",2),Tu([Us("sonicTicketApp.isWaiting"),vt()],Mu.prototype,"isWaiting",2),Tu([vt()],Mu.prototype,"selectedQuota",2),Mu=Tu([ut("sonic-buy-event-block")],Mu);var Du=Object.defineProperty,Lu=Object.getOwnPropertyDescriptor,ju=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Lu(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Du(e,i,r),r};let Iu=class extends(Le(pt)){constructor(){super(...arguments),this.size="md",this.isPinned=!1}updatePin(t){this.handlePinnedItem(t)}willUpdate(t){t.has("props")&&this.handlePinnedItem(),super.willUpdate(t)}setPinned(t){const{productId:e,productType:i,archivingDate:s}=t,o=JSON.stringify({productId:e,productType:i,archivingDate:s});localStorage.setItem("pinnedItem",o),Ti.get("pinnedItem").entity.set(t),this.isPinned=!0,ao("pin").goTo()}removePinned(){localStorage.removeItem("pinnedItem"),Ti.get("pinnedItem").entity.set({});ao("pin").matchesLocation()&&ao("home").goTo(),this.isPinned=!1}handlePinnedItem(t){var e,i;const s=t||zu();if(s){const{productId:t,productType:o}=s,r=t===(null==(e=this.props)?void 0:e.id),n=o===(null==(i=this.props)?void 0:i.entity_type);this.isPinned=r&&n}}togglePin(){var t,e,i,s;const o=null==(t=this.props)?void 0:t.id,r=null==(e=this.props)?void 0:e.entity_type,n=null==(s=null==(i=this.props)?void 0:i.settings)?void 0:s.archiving_date;this.isPinned?this.removePinned():this.setPinned({productId:o,productType:r,archivingDate:n})}render(){return V`<sonic-button
      variant="ghost"
      shape="block"
      align="left"
      ?active=${this.isPinned}
      size=${this.size}
      @click=${this.togglePin}
    >
      <sonic-icon name="thumbtack" library="custom" slot="prefix"> </sonic-icon>
      ${this.isPinned?"Désépingler":"Épingler"}
    </sonic-button>`}};ju([ft({type:String})],Iu.prototype,"size",2),ju([ft({type:Boolean})],Iu.prototype,"isPinned",2),ju([Vs("pinnedItem.entity")],Iu.prototype,"updatePin",1),Iu=ju([ut("sonic-pin")],Iu);const zu=()=>{const t=localStorage.getItem("pinnedItem");if(t){const{productId:e,productType:i,archivingDate:s}=JSON.parse(t);return{productId:e,productType:i,archivingDate:s}}return null};var Bu=Object.defineProperty,Ru=Object.getOwnPropertyDescriptor,Nu=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Ru(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Bu(e,i,r),r};let Fu=class extends(Le(pt)){constructor(){super(...arguments),this.size="md",this.displayConfiguration=!1,this.legacyCounter=!1}render(){var t;return(null==(t=this.actions)?void 0:t.length)?V`<sonic-pop>
      <sonic-button shape="circle" variant="ghost" icon size="${this.size}">
        <sonic-icon library="custom" name="ellipsis-vertical" size="lg"></sonic-icon>
      </sonic-button>
      <sonic-menu slot="content" minWidth="11rem" size="sm">
        ${this.menuActions()}
        ${this.displayConfiguration?V`<sonic-divider>Configuration</sonic-divider>
              <sonic-event-configuration
                displaySchedule
                statusDataProvider="events/${this.id}/status"
                class="w-full text-lg"
              ></sonic-event-configuration>`:Z}</sonic-menu
      >
    </sonic-pop>`:Z}menuActions(){var t;return null==(t=this.actions)?void 0:t.map((t=>{var e,i,s;switch(t){case"view":const t=null==(e=this.props)?void 0:e.slug;return t?V`<sonic-app-link
            size=${this.size}
            to="event"
            slug=${t}
            variant="ghost"
            shape="block"
            align="left"
          >
            <sonic-icon name="store" library="custom" slot="prefix"> </sonic-icon> Voir au guichet</sonic-app-link
          >`:Z;case"edit":return V`<sonic-app-link
            size=${this.size}
            to="event.edit"
            id=${this.id}
            variant="ghost"
            shape="block"
            align="left"
          >
            <sonic-icon name="pen" library="custom" slot="prefix"> </sonic-icon> Modifier</sonic-app-link
          >`;case"stats":return V`<sonic-app-link
            size=${this.size}
            to="event.stats"
            id=${this.id}
            variant="ghost"
            shape="block"
            align="left"
          >
            <sonic-icon name="chart-pie-simple" library="custom" slot="prefix"> </sonic-icon>
            Statistiques</sonic-app-link
          >`;case"multisessions":const o=null==(s=null==(i=this.props)?void 0:i.multisession)?void 0:s.id;return o?V`<sonic-app-link
            to="event.multisessions"
            id=${o}
            variant="ghost"
            shape="block"
            align="left"
          >
            <sonic-icon name="calendar-day" library="custom" slot="prefix"> </sonic-icon>
            Multiséance</sonic-app-link
          >`:Z;case"prices":return V`<sonic-app-link
            to="prices"
            .query=${{evenement:this.id}}
            variant="ghost"
            shape="block"
            align="left"
          >
            <sonic-icon name="euro-sign" library="custom" slot="prefix"> </sonic-icon> Tarifs</sonic-app-link
          >`;case"tickets":return V`<sonic-app-link
            to="tickets"
            .query=${{evenement:this.id,date_debut:"","reset-filtres":1,season:-2}}
            variant="ghost"
            shape="block"
            align="left"
          >
            <sonic-icon name="ticket" library="custom" slot="prefix"> </sonic-icon> Billets émis</sonic-app-link
          >`;case"clone":return V`<sonic-app-link
            size=${this.size}
            to="event.clone"
            id=${this.id}
            variant="ghost"
            shape="block"
            align="left"
          >
            <sonic-icon name="copy" library="custom" slot="prefix"> </sonic-icon> Dupliquer</sonic-app-link
          >`;case"pin":return this.legacyCounter?Z:V`<sonic-pin size="sm"></sonic-pin>`;case"divider":case"----":return V`<sonic-divider></sonic-divider>`;case"delete":return V` <sonic-app-link
            to="event.delete"
            id=${this.id}
            variant="ghost"
            type="danger"
            shape="block"
            align="left"
          >
            <sonic-icon name="trash" library="custom" slot="prefix"> </sonic-icon> Supprimer</sonic-app-link
          >`;default:return Z}}))}};Fu.styles=[Qs,l`
      :host() {
        display: block;
      }

      sonic-divider:last-child {
        display: none;
      }
    `],Nu([ft()],Fu.prototype,"size",2),Nu([ft({type:Array})],Fu.prototype,"actions",2),Nu([ft({type:Boolean})],Fu.prototype,"displayConfiguration",2),Nu([Kd({context:zp,subscribe:!0}),ft({type:Boolean})],Fu.prototype,"legacyCounter",2),Fu=Nu([ut("sonic-event-actions")],Fu);var qu=Object.defineProperty,Hu=Object.getOwnPropertyDescriptor,Uu=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Hu(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&qu(e,i,r),r};let Vu=class extends pt{constructor(){super(...arguments),this.cartProvider="cart/current",this.id="",this.displaySummary=!1}disconnectedCallback(){var t;super.disconnectedCallback();const e=Ci.getAncestorAttributeValue(this,"cartProvider")||"cart/current";null==(t=we(e))||t.invalidate()}render(){return this.id?V`${this.displaySummary?V`<sonic-fetch dataProvider="sessions/${this.id}?features[]=picture" key="data">
            <sonic-product-summary></sonic-product-summary>
          </sonic-fetch>`:Z}
      <div class="min-h-[550px]  bg-neutral-50  border border-neutral-50 rounded-lg relative overflow-hidden mt-4">
        <sonic-iframe
          cover
          src="/evenement/${this.id}?fullscreen_seatmap=true&cartProvider=${this.cartProvider}&no_help=true"
        ></sonic-iframe>
      </div>`:Z}};Vu.styles=[Qs],Uu([ft({type:String})],Vu.prototype,"cartProvider",2),Uu([ft({type:String,attribute:"data-id"})],Vu.prototype,"id",2),Uu([ft({type:Boolean})],Vu.prototype,"displaySummary",2),Vu=Uu([ut("sonic-event-seat-selector")],Vu);const Wu="campaignHashContext";var Zu=Object.defineProperty,Yu=Object.getOwnPropertyDescriptor,Gu=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Yu(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Zu(e,i,r),r};let Ku=class extends(Le(pt)){constructor(){super(...arguments),this.edito={},this.site_link="",this.multisession={},this.formType="select",this.noBorder=!1,this.expanded=!1,this.alwaysExpanded=!1,this.showAllSessionsButton=!1,this.duration=0}connectedCallback(){this.alwaysExpanded&&(this.expanded=!0),this.currentFilterProvider=this.getAncestorAttributeValue("dataFilterProvider"),super.connectedCallback()}fillMultisessionSearch(t){var e,i;if(!this.currentFilterProvider)return;t.stopPropagation();const s=Ti.get(this.currentFilterProvider),o=null==(i=null==(e=this.multisession.edito)?void 0:e.title)?void 0:i.trim();s.set({search:o})}toggleExpanded(){this.alwaysExpanded||(this.expanded=!this.expanded)}willUpdate(t){var e;(null==(e=this.props)?void 0:e.entity_type)===Cd.Event&&"counter"===this.appType&&(this.actions=["edit","stats","pin"]),super.willUpdate(t)}render(){var t,e,i,s,o,r;let n="";return this.customListSlug&&(n=`?list=${this.customListSlug}`),this.campaignHash&&(n=`?campaign_hash=${this.campaignHash}`),V`
      <div class="@container">
        <div
          @click=${this.toggleExpanded}
          class="grid grid-cols-[8rem,1fr] @md:grid-cols-[6rem,1fr,2.5rem] @xl:grid-cols-[4rem,7.5rem,1fr,2.5rem] gap-y-2 gap-x-3
          @xl:gap-4 items-start @xl:items-center 
          @sm:rounded-lg
          ${this.noBorder?"":"pb-6 @sm:p-3 @xl:p-4\n                  border-b @sm:border border-neutral-100\n                  @sm:hover:border-neutral-300 @sm:focus:border-neutral-300\n                  transition-border duration-100"}
          
         ${this.alwaysExpanded?"":"overflow-hidden [&:not([alwaysExpanded])]hover:cursor-pointer  tap-highlight-none"}
            "
        >
          <sonic-vertical-date class="hidden @xl:block self-center text-sm"></sonic-vertical-date>
          <sonic-product-illustration rounded="md" class="row-span-2 @md:row-span-1 "></sonic-product-illustration>

          <div class="flex flex-col pt-1 @md:py-2">
            <div class="mb-2">
              <sonic-date class="block @xl:hidden text-[.8em] mb-[.2em] uppercase" month="2-digit"></sonic-date>
              <sonic-product-title class="text-lg leading-tight "></sonic-product-title>
            </div>

            <div class="flex flex-wrap items-center gap-x-2 gap-y-1">
              ${this.id?V`<sonic-event-additional-status
                      fetch
                      dataProvider="events/${this.id}/status${n}"
                      visibility="public"
                      size="xs"
                      class="flex flex-wrap gap-x-3"
                    ></sonic-event-additional-status>`:Z}
              <sonic-event-scheduled-status size="xs"></sonic-event-scheduled-status>
              <sonic-event-taxonomies size="xs" class="contents"></sonic-event-taxonomies>
            </div>

            <div class="flex flex-wrap items-center gap-x-4 gap-y-1 min-h-[1.8rem] mt-2 text-xs ">
              <sonic-event-location-hall class="w-full @md:w-auto"></sonic-event-location-hall>

              ${(null==(t=this.edito)?void 0:t.body)||this.site_link?V` <sonic-pop
                      class="inline-block leading-tight"
                      @click=${t=>t.stopPropagation()}
                    >
                      <sonic-button variant="unstyled" class="text-xs hover:underline">
                        <div class="text-xs hover:text-neutral-800 hover:underline flex items-center gap-[0.35em]">
                          <sonic-icon library="custom" name="circle-info"></sonic-icon>
                          ${Ae("link_title_infos")}
                        </div>
                      </sonic-button>
                      <div
                        slot="content"
                        class="bg-neutral-0 text-content p-4 rounded max-w-[80vw] w-[20rem] lg:min-w-[30rem] z-20 grid grid-cols-1 gap-2"
                      >
                        ${(null==(e=this.edito)?void 0:e.body)?V`<div class="prose-sm prose-tight leading-tight max-h-[40vh] overflow-auto">
                              ${_e(null==(i=this.edito)?void 0:i.body)}
                            </div> `:Z}
                        ${this.site_link||this.duration?V`<sonic-divider size="sm"></sonic-divider>`:Z}
                        <sonic-event-duration class="text-sm"></sonic-event-duration>

                        ${this.site_link?V`<sonic-link href=${this.site_link} class="text-info " size="sm" target="_blank">
                              <sonic-icon name="arrow-right" library="custom"></sonic-icon>
                              ${Ae("link_title_more_about")}</sonic-link
                            >`:Z}
                      </div>
                    </sonic-pop>`:Z}
              ${this.currentFilterProvider&&(null==(s=this.multisession)?void 0:s.id)&&this.showAllSessionsButton?V`<sonic-button @click=${this.fillMultisessionSearch} variant="unstyled">
                      <div class="text-xs group flex items-center gap-[0.35em]">
                        <sonic-icon name="calendar-day" library="custom"></sonic-icon
                        ><span class="group-hover:underline"> ${Ae("link_title_sessions_all")} </span>
                      </div>
                    </sonic-button>`:Z}
            </div>
            </div>
            ${(null==(o=this.actions)?void 0:o.length)?V`<sonic-event-actions class="self-start" .actions=${this.actions} @click=${t=>t.stopPropagation()} size="sm"> </sonic-event-actions>`:Z}
              ${this.alwaysExpanded||(null==(r=this.actions)?void 0:r.length)?Z:V`<div class="hidden @md:block">
                      <sonic-button ?active=${this.expanded} icon variant="ghost" shape="circle">
                        <sonic-icon name="chevron-up" swap="on" library="custom"></sonic-icon>
                        <sonic-icon name="chevron-down" swap="off" library="custom"></sonic-icon>
                      </sonic-button>
                    </div>`}

            ${this.alwaysExpanded?Z:V`<div class="col-span-full @md:hidden px-3">
                    <sonic-button
                      data-aria-label=${Ae("link_title_show_prices")}
                      shape="block"
                      size="xs"
                      class="w-full text-center text-neutral-200 ${this.expanded?"mb-3":""}"
                    >
                      ${this.expanded?V`<sonic-icon name="chevron-up" library="custom"></sonic-icon> ${Ae("link_title_hide_prices")}`:V`<sonic-icon name="chevron-down" library="custom"></sonic-icon> ${Ae("link_title_show_prices")}`}
                    </sonic-button>
                  </div>`}

            <div
              class="${this.expanded&&this.id?"block":"hidden"} col-[1/-1] @xl:col-[2/-1] px-3 @md:px-0"
              @click=${t=>t.stopPropagation()}
            >
              ${this.alwaysExpanded?this.renderBuyBlock():V`
                      <sonic-fetch lazyload loader="inline" dataProvider="events/${this.id}${n}">
                        ${this.renderBuyBlock()}
                      </sonic-fetch>
                    `}
            </div>
          </div>
        </div>
      </div>
    `}renderBuyBlock(){return V` <sonic-buy-event-block display=${this.formType} size="sm"></sonic-buy-event-block> `}};Ku.styles=[Qs,l`
      .tap-highlight-none {
        -webkit-tap-highlight-color: transparent;
      }
    `],Gu([ft({type:Object})],Ku.prototype,"edito",2),Gu([ft({type:String})],Ku.prototype,"site_link",2),Gu([ft({type:Object})],Ku.prototype,"multisession",2),Gu([ft()],Ku.prototype,"formType",2),Gu([ft({type:Boolean})],Ku.prototype,"noBorder",2),Gu([ft({type:Boolean})],Ku.prototype,"expanded",2),Gu([ft({type:Boolean})],Ku.prototype,"alwaysExpanded",2),Gu([ft({type:Boolean})],Ku.prototype,"showAllSessionsButton",2),Gu([ft({type:Number})],Ku.prototype,"duration",2),Gu([Kd({context:Dh,subscribe:!0}),ft({type:String})],Ku.prototype,"customListSlug",2),Gu([Kd({context:Wu,subscribe:!0}),ft({type:String})],Ku.prototype,"campaignHash",2),Gu([Kd({context:Ip,subscribe:!0})],Ku.prototype,"appType",2),Gu([ft({type:Array})],Ku.prototype,"actions",2),Ku=Gu([ut("sonic-event-store-item")],Ku);var Qu=Object.defineProperty,Xu=Object.getOwnPropertyDescriptor,Ju=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Xu(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Qu(e,i,r),r};let tm=class extends(Le(pt)){constructor(){super(...arguments),this.wording_aucun_resultats="",this.align="left"}render(){return V`<div class="text-neutral-400 ${"sm"==this.size?"text-lg lg:text-xl":"text-2xl lg:text-3xl "}">
      <div class="flex gap-[.3em] ${"center"==this.align?"justify-center text-center":""}">
        <sonic-icon library="custom" name="face-thinking" size="lg"></sonic-icon>
        <div>
          <div>${this.text||this.wording_aucun_resultats}</div>
          <slot></slot>
        </div>
      </div>
      <slot name="suffix"></slot>
    </div> `}};tm.styles=[Qs,l`
      :host {
        grid-column: 1 / -1;
        margin-top: 3rem;
        margin-bottom: 3rem;
      }

      :host([size="sm"]) {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
      }
    `],Ju([ft({type:String})],tm.prototype,"text",2),Ju([ft({type:String})],tm.prototype,"wording_aucun_resultats",2),Ju([ft({type:String})],tm.prototype,"size",2),Ju([ft({type:String})],tm.prototype,"align",2),tm=Ju([ut("sonic-no-result")],tm);var em=Object.defineProperty,im=Object.getOwnPropertyDescriptor,sm=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?im(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&em(e,i,r),r};let om=class extends pt{constructor(){super(...arguments),this.formDataProvider="eventSelection",this.id="",this.excludeCurrent=!1,this.searchFormDataProvider="",this.searchResultDataProvider="",this.selectedId="",this.dispatch=t=>{if(!t||t==this.selectedId)return;const e=new CustomEvent("select",{detail:{id:t}});this.dispatchEvent(e),this.selectedId=t}}connectedCallback(){Ti.get(this.formDataProvider).id.onAssign(this.dispatch),this.searchFormDataProvider=this.formDataProvider+"Filters",this.searchResultDataProvider=this.formDataProvider+"FiltersResult",super.connectedCallback()}disconnectedCallback(){Ti.get(this.formDataProvider).id.offAssign(this.dispatch),Ti.get(this.formDataProvider).set({}),Ti.get(this.searchFormDataProvider).set({}),super.disconnectedCallback()}render(){return V`
      ${this.id?V`
            <sonic-fetch
              dataProvider="sessions/${this.id}?features[]=picture&features[]=location&features[]=taxonomies"
              key="data"
            >
              <sonic-product-summary data-id=${this.id} size="lg" .display=${["status","range"]}></sonic-product-summary>
            </sonic-fetch>
            <sonic-divider class="my-3"></sonic-divider>
          `:Z}

      <div id="formContainer" class="mb-4">
        <sonic-event-selection-filters
          formDataProvider="${this.searchFormDataProvider}"
          class=" block max-w-[40rem] w-full z-10 "
          category
          activity
          range
        ></sonic-event-selection-filters>
      </div>
      <div dataProvider="${this.searchFormDataProvider}">
        <sonic-queue
          dataProviderExpression="sessions?next=1&limit=$limit&offset=$offset&features[]=picture&features[]=taxonomies${this.excludeCurrent&&this.id?`&excluded_ids[]=${this.id}`:""}"
          key="data"
          limit="5"
          targetRequestDuration="1000"
          dataProvider="${this.searchResultDataProvider}"
          dataFilterProvider="${this.searchFormDataProvider}"
          class="grid grid-cols-1 gap-2"
          formDataProvider="${this.formDataProvider}"
        >
          <template data-value="no-item">
            <sonic-no-result size="sm"></sonic-no-result>
          </template>
          <template>
            <sonic-event-selector-item></sonic-event-selector-item>
            <sonic-divider noMargin></sonic-divider>
          </template>
        </sonic-queue>
      </div>
    `}};om.styles=[Qs],sm([ft({type:String})],om.prototype,"formDataProvider",2),sm([ft({type:String,attribute:"data-id"})],om.prototype,"id",2),sm([ft({type:Boolean})],om.prototype,"excludeCurrent",2),om=sm([ut("sonic-event-selector")],om);let rm=class extends(Le(pt)){render(){var t;const e=null==(t=this.props)?void 0:t.id;if(!e)return Z;return V`
      <sonic-button
        class="block w-full rounded-md hover:bg-neutral-50"
        variant="unstyled"
        radio
        name="id"
        value=${e}
      >
        <sonic-product-summary size="sm" .display=${["status","range"]}></sonic-product-summary>
      </sonic-button>
    `}};rm.styles=[Qs],rm=sm([ut("sonic-event-selector-item")],rm);var nm=Object.defineProperty,am=Object.getOwnPropertyDescriptor,lm=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?am(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&nm(e,i,r),r};let cm=class extends pt{constructor(){super(...arguments),this.formDataProvider="sessionSelection",this.id="",this.dispatch=t=>{if(!t||t==this.id)return;const e=new CustomEvent("select",{detail:{id:t}});this.dispatchEvent(e)}}connectedCallback(){Ti.get(this.formDataProvider).id=this.id,Ti.get(this.formDataProvider).id.onAssign(this.dispatch),super.connectedCallback()}disconnectedCallback(){Ti.get(this.formDataProvider).id.offAssign(this.dispatch),Ti.get(this.formDataProvider).set({}),super.disconnectedCallback()}render(){return this.id?V`
      <sonic-fetch dataProvider="shows/${this.id}?next=1" key="data">
        <sonic-product-summary size="lg"></sonic-product-summary>
        <sonic-divider class="mt-3 mb-1"></sonic-divider>
        <sonic-list
          class="grid grid-cols-1 gap-1"
          formDataProvider="${this.formDataProvider}"
          subDataProvider="sessions"
        >
          <template>
            <sonic-session-selector-item></sonic-session-selector-item>
          </template>
          <template value="separator">
            <sonic-divider noMargin></sonic-divider>
          </template>
        </sonic-list>
      </sonic-fetch>
    `:Z}};cm.styles=[Qs],lm([ft({type:String})],cm.prototype,"formDataProvider",2),lm([ft({type:String,attribute:"data-id"})],cm.prototype,"id",2),cm=lm([ut("sonic-session-selector")],cm);let dm=class extends(Le(pt)){render(){var t,e,i,s,o,r;return(null==(t=this.props)?void 0:t.id)?V`
      <sonic-button
        class="flex items-center  w-full gap-x-4 rounded-md hover:bg-neutral-50  group @container [&[active]]:pointer-events-none"
        variant="unstyled"
        radio
        name="id"
        value=${this.props.id}
      >
        <div class="py-2 px-2 @lg:px-4   ">
          <div class="flex items-center">
            <sonic-date class="text-base @lg:text-xl font-bold" noShadowDom>
              <template data-value="from">
                <span class="font-normal"></span>
              </template>
              <template data-value="month">
                <span class="capitalize inline-block"></span>
              </template>
              <template data-value="hour">
                <span class="font-normal"></span>
              </template>

              <template data-value="to">
                <span class="font-normal"></span>
              </template>

              <template data-value="literal">
                <span class="font-normal"></span>
              </template>
              <template data-value="minute">
                <span class="font-normal"></span>
              </template>
            </sonic-date>
          </div>
          <div class="mt-1 flex items-center flex-wrap gap-x-5 gap-y-1">
            <sonic-event-location-hall noPlacement class="block text-neutral-500  "></sonic-event-location-hall>
            ${(null==(e=this.props)?void 0:e.labels)&&(null==(s=null==(i=this.props)?void 0:i.labels)?void 0:s.length)>0?V` <sonic-event-taxonomy
                  .taxonomy=${null==(o=this.props)?void 0:o.labels}
                  key="label"
                  size="sm"
                  class="inline-flex"
                ></sonic-event-taxonomy>`:Z}
            ${(null==(r=this.props)?void 0:r.id)?V`<sonic-event-additional-status
                  fetch
                  dataProvider="events/${this.id}/status"
                  visibility="all"
                  size="sm"
                  class="flex flex-wrap  gap-x-3 gap-y-1"
                  variant="ghost"
                ></sonic-event-additional-status>`:Z}
          </div>
        </div>
        <sonic-icon swap="on" name="check" library="custom" slot="suffix" class="mr-2 text-3xl"></sonic-icon>
      </sonic-button>
    `:Z}};dm.styles=[Qs],dm=lm([ut("sonic-session-selector-item")],dm);var pm=Object.defineProperty,hm=Object.getOwnPropertyDescriptor,um=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?hm(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&pm(e,i,r),r};let mm=class extends(Le(pt)){constructor(){super(...arguments),this.link=!1,this.textOnly=!1,this.size="md",this.id=""}render(){var t,e,i,s;const o=null==(t=this.props)?void 0:t.entity_type,r=null==(e=this.props)?void 0:e.id,n=null==(i=this.props)?void 0:i.slug;if(!r)return Z;if(this.link){const t=o===Cd.Event&&r,e=o===Cd.Subscribe&&r,i=o===Cd.Giftcard;if(t)return V`<sonic-app-link class="contents" to="event" .slug=${n} id=${r}
          >${this.renderContent()}</sonic-app-link
        >`;if(e){const t=null==(s=this.props)?void 0:s.hash;return V`<sonic-app-link class="contents" to="subscription" .query=${{subscription_hash:t}}
          >${this.renderContent()}</sonic-app-link
        >`}if(i)return V`<sonic-app-link class="contents" to="giftcards">${this.renderContent()}</sonic-app-link>`}return V`${this.renderContent()} `}renderContent(){if(this.textOnly)return V`<div class="@container">${this.renderText()}</div>`;let t;switch(this.size){case"xs":t="grid-cols-[3.2rem_minmax(0,1fr)] gap-3";break;case"sm":t="grid-cols-[4rem_minmax(0,1fr)] gap-3";break;case"lg":t="grid-cols-[6rem_minmax(0,1fr)] gap-3";break;default:t="grid-cols-[5.2rem_minmax(0,1fr)] gap-4"}return V`
      <div class="@container grid ${t} gap-4 items-center w-full">
        ${this.headerImage()} ${this.renderText()}
      </div>
    `}headerImage(){let t="";switch(this.size){case"xs":case"sm":t="";break;default:t="md"}return V`<sonic-product-illustration rounded="${t}" class="self-start"></sonic-product-illustration>`}renderText(){var t,e,i;let s,o;switch(this.size){case"xs":o="text-2xs",s="text-sm";break;case"sm":o="text-xs mb-1 ",s="text-base";break;case"lg":o="text-sm mb-1 ",s="text-xl";break;default:o="text-xs mb-1 ",s="text-lg"}const r=null==(t=this.display)?void 0:t.includes("status"),n=null==(e=this.display)?void 0:e.includes("location"),a=null==(i=this.display)?void 0:i.includes("range");return V`<div class="w-full items-center  gap-x-4 @lg:flex @lg:flex-row  py-1">
      <div class="flex-grow max-w-[20rem]">
        <sonic-date class="${o} block uppercase"></sonic-date>
        <sonic-product-title
          class="${s}"
          ?noOverTitle=${["xs","sm"].includes(this.size)}
        ></sonic-product-title>
      </div>

      ${this.display?V` <div
            class=" flex text-2xs @lg:text-xs flex-wrap mt-1 gap-y-1 @lg:mt-0 @lg:flex-col @lg:flex-nowrap @lg:justify-center"
          >
            ${n?V`<sonic-event-location-hall
                  noPlacement
                  class="${o} block text-neutral-500 "
                ></sonic-event-location-hall>`:Z}
            ${a?V`<sonic-event-range size="inherit"></sonic-event-range>`:Z}
            ${this.id&&r?V`<sonic-event-additional-status
                  fetch
                  dataProvider="events/${this.id}/status"
                  visibility="all"
                  size="inherit"
                  class="flex flex-wrap  gap-x-3 "
                  variant="ghost"
                ></sonic-event-additional-status>`:Z}
          </div>`:Z}
    </div>`}};mm.styles=[Qs,l`
      :host() {
        display: block;
      }
    `],um([ft({type:Boolean})],mm.prototype,"link",2),um([ft({type:Boolean})],mm.prototype,"textOnly",2),um([ft({type:String})],mm.prototype,"size",2),um([ft({type:String,attribute:"data-id"})],mm.prototype,"id",2),um([ft({type:Array})],mm.prototype,"display",2),mm=um([ut("sonic-product-summary")],mm);var gm=Object.defineProperty,fm=Object.getOwnPropertyDescriptor,vm=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?fm(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&gm(e,i,r),r};let ym=class extends(Le(pt)){constructor(){super(...arguments),this.mode="default",this.items=[],this.legacyCounter=!1}connectedCallback(){this._cartProvider=this.getAncestorAttributeValue("cartProvider"),super.connectedCallback()}render(){var t,e,i;const s="condensed"===this.layout,o=null==(t=this.props)?void 0:t.items;return"readonly"!=this.mode&&(null==(e=this.items)?void 0:e.length)?"split"==this.mode&&(null==(i=this.props)?void 0:i.items)?V`<sonic-button
        size=${s?"sm":"md"}
        shape="circle"
        variant="ghost"
        icon
        @click=${()=>Ld(o,{targetDataProvider:"splitResult",sourceDataProvider:"splitSource"})}
      >
        <sonic-icon library="custom" name="arrow-right-from-arc"></sonic-icon>
      </sonic-button>`:"splitResult"==this.mode?V`<sonic-button
        @click=${()=>Ld(o,{targetDataProvider:"splitSource",sourceDataProvider:"splitResult"})}
        size=${s?"sm":"md"}
        shape="circle"
        variant="ghost"
        icon
      >
        <sonic-icon library="custom" name="trash"></sonic-icon>
      </sonic-button>`:this.renderActionMenu():Z}removeFromSplit(){this.getAncestorAttributeValue("splitSource")}renderActionMenu(){var t;const e=null==(t=this.props)?void 0:t.entity,i=null==e?void 0:e.entity_type;let s=null==e?void 0:e.id;return e&&s?(s=parseInt(s.toString()),V`<sonic-pop placement="bottom">
      <sonic-button shape="circle" variant="ghost" icon size="${"condensed"==this.layout?"xs":"sm"}">
        <sonic-icon library="custom" name="ellipsis-vertical" size="lg"></sonic-icon>
      </sonic-button>
      <sonic-menu slot="content" minWidth="13rem" size="sm">
        ${i===Cd.Subscribe?this.renderMenuSubscription(e):Z}
        ${i===Cd.Event?this.renderMenuEvent(e):Z}

        <sonic-menu-item @click=${()=>this.removeTickets(this.items)} type="danger">
          <sonic-icon slot="prefix" library="custom" name="trash"></sonic-icon> Supprimer
        </sonic-menu-item>
      </sonic-menu></sonic-pop
    > `):Z}getSeatMapLink(t){var e,i,s;const o="cart/current"===this._cartProvider,r=o?ao("seatmap").fill({slug:null==(i=null==(e=this.props)?void 0:e.entity)?void 0:i.slug,id:null==(s=this.props)?void 0:s.entity.id}).toString():void 0;return V`
      <sonic-menu-item
        href=${li(r)}
        @click=${()=>{o||this.createModalSeatMap(t)}}
      >
        <sonic-icon slot="prefix" library="custom" name="loveseat"></sonic-icon>
        <span class="whitespace-nowrap"> ${Ae("change_seats")} </span>
      </sonic-menu-item>
    `}renderMenuSubscription(t){const e=t.hash||"";let i=ao("subscription").query({subscription_hash:e}).toString();return this.legacyCounter&&(i=ao("subscription").appendPath(e).toString()),V`
      <sonic-menu-item href=${i}>
        <sonic-icon slot="prefix" library="custom" name="address-card"></sonic-icon>
        ${Ae("bt_modifier_abo")}
      </sonic-menu-item>
      <sonic-divider></sonic-divider>
    `}renderMenuEvent(t){if(t.entity_type!==Cd.Event||!t.id)return Z;const e=parseInt(t.id.toString());let i=!1;t&&"room"in t&&(i=!!t.room&&["place","mixte"].includes((null==t?void 0:t.room.placing_type_key)||""));let s=!1;t&&"multisession"in t&&(s=!0);const o="reservation"===this.cartType;return V` ${o?V`<sonic-menu-item @click=${()=>this.createModalEvent(e)}>
              <sonic-icon slot="prefix" library="custom" name="calendars"></sonic-icon> Changer d'évènement
            </sonic-menu-item>
            ${s?V`<sonic-menu-item @click=${()=>this.createModalSession(e)}>
                  <sonic-icon slot="prefix" library="custom" name="calendar-day"></sonic-icon> Changer de séance
                </sonic-menu-item>`:Z}

            <sonic-divider></sonic-divider> `:Z}
      ${i?V`${this.getSeatMapLink(e)}`:V`<sonic-menu-item @click=${()=>this.createModalAddTickets(e)}>
            <sonic-icon slot="prefix" library="custom" name="ticket"></sonic-icon> Ajouter des tarifs
          </sonic-menu-item>`}
      <sonic-divider></sonic-divider>`}removeTickets(t){const e=t.map((t=>({id:t.id,quantity:0})));Od.set({apiConfiguration:this.getApiConfiguration(),endPoint:this._cartProvider,items:e})}createModalEvent(t){this._modal=gl.create({title:"Changer d'évènement",content:V`<sonic-event-selector
        data-id=${t}
        excludeCurrent
        @select=${t=>this.changeEvent(t.detail.id)}
      ></sonic-event-selector>`,maxWidth:"60rem",removeOnHide:!0})}createModalSession(t){this._modal=gl.create({title:"Changer de séance",content:V`<sonic-session-selector
        data-id=${t}
        @select=${t=>this.changeEvent(t.detail.id)}
      ></sonic-session-selector>`,maxWidth:"60rem",removeOnHide:!0})}createModalAddTickets(t){this._modal=gl.create({title:"Ajouter des places",content:V`<sonic-fetch dataProvider="events/${t}" cartProvider=${li(this._cartProvider)}>
        <sonic-event-store-item noBorder alwaysExpanded formType="buttons"></sonic-event-store-item>
      </sonic-fetch>`,maxWidth:"60rem",removeOnHide:!0})}createModalSeatMap(t){this._modal=gl.create({title:"Ajouter / Modifier les places",content:V`
        <sonic-event-seat-selector
          .id=${t.toString()}
          cartProvider=${li(this._cartProvider)}
          displaySummary
        ></sonic-event-seat-selector>
      `,maxWidth:"60rem",height:"80vh",removeOnHide:!0})}createModalEditPrices(){this._modal=gl.create({content:"Modifier les tarifs",removeOnHide:!0})}async changeEvent(t){var e,i;const s=null==(e=this.items)?void 0:e.map((e=>({id:e.id,entity_id:parseInt(t.toString())})));null==(i=this._modal)||i.hide(),Od.set({apiConfiguration:this.getApiConfiguration(),endPoint:this._cartProvider,items:s})}buttonIcon(t,e="solid"){return V`<div
      class="pointer-events-none bg-content text-neutral-0 p-1 text-xs rounded-full flex items-center justify-center absolute -top-1 -left-2"
    >
      <sonic-icon library="custom" prefix="${e}" name="${t}"></sonic-icon>
    </div>`}};ym.styles=[Qs],vm([Kd({context:Dp,subscribe:!0}),ft({type:String})],ym.prototype,"layout",2),vm([Kd({context:Lp,subscribe:!0}),ft({type:String})],ym.prototype,"mode",2),vm([ft({type:Array})],ym.prototype,"items",2),vm([Kd({context:zp,subscribe:!0}),ft({type:Boolean})],ym.prototype,"legacyCounter",2),vm([Kd({context:Ip,subscribe:!0})],ym.prototype,"appType",2),vm([Kd({context:jp,subscribe:!0}),ft({type:String})],ym.prototype,"cartType",2),ym=vm([ut("sonic-cart-item-header-actions")],ym);var bm=Object.defineProperty,wm=Object.getOwnPropertyDescriptor,xm=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?wm(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&bm(e,i,r),r};let _m=class extends(Le(pt)){constructor(){super(...arguments),this.textOnly=!1,this.layout="default",this.mode="default",this.type=""}willUpdate(t){t.has("layout")&&"condensed"==this.layout&&(this.textOnly=!0),super.willUpdate(t)}render(){const t="default"==this.mode,e="condensed"==this.layout;return V` <div class="flex gap-2 w-full ">
      <sonic-product-summary
        size="${e?"xs":"sm"}"
        class="block flew-grow w-full min-w-0 self-center leading-tight ${t?"hover:bg-neutral-50 rounded":""}"
        subDataProvider="entity"
        ?link=${t}
        ?textOnly=${this.textOnly}
      ></sonic-product-summary>
      <sonic-cart-item-header-actions class="ml-auto block shrink-0"></sonic-cart-item-header-actions>
    </div>`}};_m.styles=[Qs],xm([ft({type:Boolean})],_m.prototype,"textOnly",2),xm([Kd({context:Dp,subscribe:!0}),ft({type:String})],_m.prototype,"layout",2),xm([Kd({context:Lp,subscribe:!0}),ft({type:String})],_m.prototype,"mode",2),xm([ft({type:String})],_m.prototype,"type",2),_m=xm([ut("sonic-cart-item-header")],_m);var km=Object.defineProperty,$m=Object.getOwnPropertyDescriptor,Pm=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?$m(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&km(e,i,r),r};let Sm=class extends(Le(pt)){constructor(){super(...arguments),this.variant="default",this.size="sm"}async removeCartLine(){const t=this.getAncestorAttributeValue("cartProvider");this.id&&await Od.remove({apiConfiguration:this.getApiConfiguration(),endPoint:t,items:[this.id]})}render(){return this.id?V`
      <sonic-button
        noAutoFill
        shape="circle"
        size="${this.size}"
        icon
        @click="${this.removeCartLine}"
        variant="${this.variant}"
      >
        <sonic-icon library="iconoir" name="trash" size="lg"></sonic-icon>
      </sonic-button>
    `:Z}};Sm.styles=[l`
      :host {
        display: inline-block;
      }
    `],Pm([ft({type:String})],Sm.prototype,"variant",2),Pm([ft({type:String})],Sm.prototype,"size",2),Sm=Pm([ut("sonic-cart-item-trash")],Sm);var Cm=Object.defineProperty,Am=Object.getOwnPropertyDescriptor,Om=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Am(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Cm(e,i,r),r};let Em=class extends Ln{constructor(){super(...arguments),this.entity_id=0,this.quota_id=0,this.price={id:0},this.shake=!1,this.plusMinus=!1,this.product_type=null,this.cartItemQuantity=0,this._queryQuantityIncrement="",this.cartOperationId=0,this.bntPlus='\n    <sonic-button    \n      slot="suffix"\n      radio\n      name="queryQuantityIncrement"\n      autoRepeat\n      value="1"\n      shape="circle"\n      size="xs"\n      icon\n      variant="unstyled"\n    >\n      <sonic-icon library="iconoir" name="plus"></sonic-icon>\n    </sonic-button>\n  ',this.btnMinus='\n    <sonic-button\n      class="btnMinus"\n      slot="prefix"\n      name="queryQuantityIncrement"\n      autoRepeat\n      radio\n      value="-1"\n      shape="circle"\n      size="xs"\n      icon\n      variant="unstyled"\n    >\n    <sonic-icon library="iconoir" name="minus"></sonic-icon>\n    </sonic-button>\n  '}async handleChange(t){let e=this.input.value.trim();e=e.replace(/\D/g,""),this.input.value=e,""!=e&&(super.handleChange(t),await this.cartOperation())}setValueFromPublisher(t){super.setValueFromPublisher(t);const e=this.querySelector(".btnMinus");parseInt(this.value)>1?null==e||e.removeAttribute("disabled"):null==e||e.setAttribute("disabled","")}handleBlur(t){super.handleBlur(t),""==this.input.value.trim()&&(this.input.value=this.value)}get queryQuantityIncrement(){return this._queryQuantityIncrement}set queryQuantityIncrement(t){if(t==this.queryQuantityIncrement)return;this._queryQuantityIncrement=t;const e=++Em.queryIncrementId;(async()=>{if(await ki.delayPromise(1),e!==Em.queryIncrementId)return;if(window.queueMicrotask((()=>this.publisher.queryQuantityIncrement=null)),!t)return;const i=parseInt(t);if(isNaN(i))return;const s=parseInt(this.value||"0")+i;s<1||(this.input.value=s.toString(),this.input.dispatchEvent(new Event("input")))})()}async cartOperation(){const t=++this.cartOperationId;if(await ki.delayPromise(400),t!==this.cartOperationId)return;const e=parseInt(this.value);if(isNaN(e))return;const i=this.getAncestorAttributeValue("cartProvider"),s=await Od.set({apiConfiguration:this.getApiConfiguration(),endPoint:i,items:[this.getCartItem(e)]});return"differentFromRequest"===s&&(this.shake=!0,await ki.delayPromise(820),this.shake=!1),s}connectedCallback(){this.setAttribute("pattern","\\d+"),this.setAttribute("noAppearance",""),this.setAttribute("name","quantity"),this.setAttribute("inlineContent",""),this.setAttribute("type","number"),super.connectedCallback(),this.setAttribute("formDataProvider",this.dataProvider||"")}willUpdate(t){t.has("shake")&&this.shake&&(this.status="warning",setTimeout((()=>{this.shake=!1,this.status="default"}),900)),t.has("plusMinus")&&(this.plusMinus&&!this.readonly?this.innerHTML=this.btnMinus+this.bntPlus:this.innerHTML=""),super.willUpdate(t)}getCartItem(t){return{type:this.product_type||void 0,id:this.id,entity_id:this.entity_id,quantity:t,quota_id:this.quota_id||1,price:{id:this.price.id}}}};Em.styles=[...Ln.styles,l`
      :host {
        display: inline-block;
        text-align: center;
        width: max(2.5rem, 2ch);
      }
      :host([plusMinus]) {
        width: 5rem;
      }
      :host([plusMinus][size="2xs"]) {
        width: 5rem;
      }

      :host([shake]) {
        animation: shake 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
        transform: translate3d(0, 0, 0);
        backface-visibility: hidden;
        perspective: 1000px;
      }

      :host([readonly]) .form-element {
        --sc-input-border: var(--sc-base-50) !important;
        --sc-input-background: var(--sc-base-50) !important;
      }

      @keyframes shake {
        10%,
        90% {
          transform: translate3d(-1px, 0, 0);
        }

        20%,
        80% {
          transform: translate3d(2px, 0, 0);
        }

        30%,
        50%,
        70% {
          transform: translate3d(-3px, 0, 0);
        }

        40%,
        60% {
          transform: translate3d(3px, 0, 0);
        }
      }
    `],Em.queryIncrementId=0,Om([ft({type:Number})],Em.prototype,"entity_id",2),Om([ft({type:Number})],Em.prototype,"quota_id",2),Om([ft({type:Object})],Em.prototype,"price",2),Om([ft({type:Boolean,reflect:!0})],Em.prototype,"shake",2),Om([ft({type:Boolean,reflect:!0})],Em.prototype,"plusMinus",2),Om([ft({type:String})],Em.prototype,"product_type",2),Om([ft({type:Number})],Em.prototype,"cartItemQuantity",2),Om([vt()],Em.prototype,"queryQuantityIncrement",1),Em=Om([ut("sonic-cart-input")],Em);var Tm=Object.defineProperty,Mm=Object.getOwnPropertyDescriptor,Dm=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Mm(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Tm(e,i,r),r};let Lm=class extends(Le(pt)){constructor(){super(...arguments),this.messages=[]}render(){return this.messages.map((t=>"public"===t.type&&["warning","error"].includes(t.status||"")?V`<sonic-alert status="${t.status||"default"}" size="2xs"> ${_e(t.content)}</sonic-alert>`:Z))}};Dm([ft({type:Array})],Lm.prototype,"messages",2),Lm=Dm([ut("sonic-cart-item-line-messages")],Lm);var jm=Object.defineProperty,Im=Object.getOwnPropertyDescriptor,zm=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Im(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&jm(e,i,r),r};let Bm=class extends(Le(pt)){constructor(){super(...arguments),this.cartProvider="cart/current",this._entityId=0}async willUpdate(t){var e,i,s,o,r,n,a,l;if(t.has("props")&&(this._currentQuota=null==(e=this.props)?void 0:e.quota,this._currentPrice=null==(i=this.props)?void 0:i.price,null==(o=null==(s=this.props)?void 0:s.entity)?void 0:o.id)){const t=new qt(this.getApiConfiguration()),e=await t.get(`/sessions/${null==(n=null==(r=this.props)?void 0:r.entity)?void 0:n.id}?features[]=quotas&features[]=prices`);this._availableQuotas=(null==(a=e.data)?void 0:a.quotas)||void 0;const i=(null==(l=e.data)?void 0:l.prices)||void 0;this._availablePrices=i.filter((t=>null==t?void 0:t.price_available))}super.willUpdate(t)}pricesToOption(t){return t.map((t=>{var e,i,s;let o="";return 0!==(null==(e=t.place_category)?void 0:e.id)&&(o=(null==(i=t.place_category)?void 0:i.title)?t.place_category.title+" ― ":""),{value:t.id,wording:o+t.title+" ("+t.amount+"€)",selected:t.id===(null==(s=this._currentPrice)?void 0:s.id)}}))}handleSubmit(t){var e;const i=t.detail;if(null==(e=i.data)?void 0:e.items){Ti.get(this.cartProvider).data.items=i.data.items;const t=Ci.getClosestElement(this,"sonic-modal");t&&t.hide()}i.messages&&(Ti.get(this.cartProvider).messages=i.messages,Ti.get(this.cartProvider).get())}render(){var t,e,i,s,o;const r=null==(t=this.props)?void 0:t.id,n=null==(e=this._availablePrices)?void 0:e.length;return V`<div class="flex">
        <sonic-product-summary size="sm" subDataProvider="entity" class="mb-4 block grow"></sonic-product-summary>

        <div class="flex  items-center pb-2 text-xl pr-1">
          <sonic-icon name="ticket" prefix="light" library="custom" size="lg"></sonic-icon>
          <sonic-icon name="xmark" prefix="light" size="sm" library="custom"></sonic-icon>
          <span class="font-bold "> ${null==(i=this.props)?void 0:i.quantity} </span>
        </div>
      </div>

      <div class="grid grid-cols-1 gap-4" formDataProvider="cart/editPrice/${r}" dataProvider="cart/editForm">
        ${n?V`${(null==(s=this._availableQuotas)?void 0:s.length)?V`
                    <sonic-select
                      class="grow"
                      label="Contingentement"
                      name="quota.id"
                      .options=${(null==(o=this._availableQuotas)?void 0:o.map((t=>{var e;return{value:t.id,wording:t.title+" (reste : "+t.remaining_places_nb+"/"+t.total_places_nb+")",selected:t.id===(null==(e=this._currentQuota)?void 0:e.id)}})))||[]}
                    ></sonic-select>
                  `:Z}

              <sonic-select
                label="Tarif"
                name="price.id"
                .options=${this.pricesToOption(this._availablePrices||[])}
              ></sonic-select>

              <sonic-submit
                class=" w-full block"
                @submit=${this.handleSubmit}
                endpoint="${this.cartProvider}/items/${r}"
                method="PATCH"
                onClick
              >
                <sonic-button type="success" noAutoFill class="w-full">
                  <sonic-icon name="check" library="custom"></sonic-icon> Modifier</sonic-button
                >
              </sonic-submit>`:V`<sonic-loader mode="inline"></sonic-loader>`}
      </div>`}};Bm.styles=[Qs],zm([ft()],Bm.prototype,"cartProvider",2),zm([vt()],Bm.prototype,"_currentQuota",2),zm([vt()],Bm.prototype,"_currentPrice",2),zm([vt()],Bm.prototype,"_availableQuotas",2),zm([vt()],Bm.prototype,"_availablePrices",2),Bm=zm([ut("sonic-cart-item-edit-price")],Bm);var Rm=Object.defineProperty,Nm=Object.getOwnPropertyDescriptor,Fm=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Nm(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Rm(e,i,r),r};let qm=class extends(Le(pt)){constructor(){super(...arguments),this.mode="default",this.quantity=0,this.price={},this.infos=null,this.canEditQuantity=!1,this.canDelete=!1,this.isExtra=!1,this.type=null,this.total=0,this.messages=[],this.quota={id:0,name:""},this.displayLine=!0,this.canEditPrice=!1,this.wording_abonnement="",this.wording_LIB_abo_place=""}willUpdate(t){void 0!==this.price.amount&&(t.has("quantity")||t.has("price"))&&(this.publisher.total=this.quantity*this.price.amount);const e=this.getAncestorAttributeValue("cartProvider");this.canEditPrice="counter"===this.appType&&"readonly"!==this.mode&&"cart/current"!==e,super.willUpdate(t)}render(){var t,e,i,s,o;const r="condensed"==this.layout,n=(null==(t=this.quota)?void 0:t.name)||"",a=!!((null==(e=this.quota)?void 0:e.id)&&this.quota.id>1&&n),l=this.displayLine,c=this.messages.some((t=>"error"===t.status)),d=!this.isExtra||this.isExtra&&this.quantity>1,p="readonly"===this.mode,h=this.props&&0!==Object.keys(this.props).length?[this.props]:[],u=this.canEditPrice?"Modifier le tarif":"";return l?V`
      <div
        class="grid 
          grid-cols-[minmax(35%,1fr)_auto_minmax(0,max-content)] items-center  gap-3
          rounded py-[1px]
          ${p?"":"hover:bg-[rgba(0,0,0,.02)] hover:shadow-[0_0_0_1px_rgba(0,0,0,.02)]"}
          ${r?"pl-2 ":"pl-2 lg:pl-3"} "
        ${Ke({keyframeOptions:{duration:250,easing:"cubic-bezier(0.250, 0.250, 0.420, 1.225)"},in:[{transform:"translateY(-.5rem)",opacity:0}],stabilizeOut:!0})}
      >
        <div
          class="text-xs ${r||this.isExtra?"":"lg:text-sm "} leading-tight  ${this.isExtra?"text-right col-span-2":""}"
        >
          <slot name="text"
            >${this.priceIcon()}<span
              @click="${()=>this.editPrice(this.props)}"
              class="mr-2 ${c?"text-danger font-bold":""} ${this.canEditPrice?"cursor-pointer hover:underline":""}"
              title=${li(u)}
              >${this.price.label} </span
            >${this.categoryMarkup()} ${this.placementMarkup()}
            ${a?V`<div class="text-xs text-neutral-400 ">— Cont. ${n}</div>`:Z}
               <sonic-cart-item-line-messages></sonic-cart-item-line-messages>
            ${(null==(i=this.infos)?void 0:i.code)?V`<sonic-badge size="xs" class="tracking-wider">${this.infos.code}</sonic-badge>`:Z}
          </slot>
        </div>

        ${d?V` <div class="inline-flex gap-1 items-center ml-auto  text-xs text-neutral-500 ">
              <slot name="quantity">${this.defaultQuantityMarkup()}</slot>
            </div>`:Z}

        <div class="inline-flex gap-1 justify-end items-center">
          <div
            class="${r?"text-sm min-w-[3.5rem]":"min-w-[6ch]"}  ${this.isExtra?"":"hidden md:block"} text-right  ml-auto leading-none font-bold "
          >
            ${Ed(this.total)}
          </div>

          <!-- retirer bientot this.isExtra && this.props?.entity?.entity_type === EntityType.Giftcard) -->

          ${"split"==this.mode?V`
                <sonic-button
                  @click=${()=>Ld(h,{targetDataProvider:"splitResult",sourceDataProvider:"splitSource"})}
                  size=${r?"xs":"sm"}
                  shape="circle"
                  variant="ghost"
                  type="default"
                  noAutofill
                  icon
                >
                  <sonic-icon library="custom" name="arrow-right-from-arc"></sonic-icon>
                </sonic-button>
              `:Z}
          ${"splitResult"==this.mode?V`
                <sonic-button
                  @click=${()=>Ld(h,{targetDataProvider:"splitSource",sourceDataProvider:"splitResult"})}
                  size=${r?"xs":"sm"}
                  shape="circle"
                  variant="ghost"
                  type="default"
                  noAutofill
                  icon
                >
                  <sonic-icon library="custom" name="trash"></sonic-icon>
                </sonic-button>
              `:Z}
          ${"default"==this.mode||this.isExtra&&(null==(o=null==(s=this.props)?void 0:s.entity)?void 0:o.entity_type)===Cd.Giftcard?V`
                <div class="w-[2rem] md:w-[2rem] flex items-center p-x-2">
                  ${this.canDelete?V`<sonic-cart-item-trash class="ml-auto" variant="ghost" size="xs"></sonic-cart-item-trash>`:Z}
                </div>
              `:Z}
        </div>
      </div>
    `:Z}editPrice(t){var e;if(!t||!this.canEditPrice||(null==(e=t.entity)?void 0:e.entity_type)!==Cd.Event)return;const i=this.getAncestorAttributeValue("cartProvider");this._modal=gl.create({title:"Modifier le tarif",content:V`<sonic-cart-item-edit-price
        cartProvider=${i}
        dataProvider=${this.dataProvider||""}
      ></sonic-cart-item-edit-price>`,maxWidth:"32rem",removeOnHide:!0})}priceIcon(){return this.price.price_is_promo?V`<sonic-icon library="iconoir" name="gift"></sonic-icon>`:this.price.price_is_triggering_promo?V`<sonic-icon library="custom" name="star"></sonic-icon>`:Z}categoryMarkup(){var t,e;return V`${(null==(t=this.infos)?void 0:t.category_place)&&(null==(e=this.infos.category_place)?void 0:e.label)?V`<div class="text-xs text-neutral-500 md:inline-block">${_e(this.infos.category_place.label)}</div>`:Z}`}placementMarkup(){var t;return V`
      ${(null==(t=this.infos)?void 0:t.infos_numbered)?V`<div class="text-xs text-neutral-500">
            <sonic-icon library="custom" name="loveseat" class="mr-1"></sonic-icon> ${_e(this.infos.infos_numbered)}
          </div>`:Z}
    `}defaultQuantityMarkup(){var t;const e=this.messages.some((t=>"error"===t.status)),i="condensed"==this.layout,s=this.canEditQuantity&&"split"!==this.mode;return V`
      ${"readonly"==this.mode?V` <div class="inline-block font-bold min-w-[2ch] text-right">${this.quantity}</div> `:V`
            <sonic-cart-input
              name="quantity"
              status="${e?"error":"default"}"
              ?readonly=${!s}
              ?plusMinus=${s}
              formDataProvider="${this.dataProvider||""}"
              size="${i?"2xs":"xs"}"
              min=${this.price.min||0}
              max=${Math.min(this.price.max||999,(null==(t=this.infos)?void 0:t.max_places_nb)||999)}
            >
            </sonic-cart-input>
          `}

      <div class="${i?"min-w-[7ch]":"min-w-[8.5ch] lg:min-w[10ch] ml-2"}">
        × ${Ed(this.price.amount||0)}
      </div>
    `}};qm.styles=[Qs],Fm([Kd({context:Ip,subscribe:!0})],qm.prototype,"appType",2),Fm([Kd({context:Lp,subscribe:!0}),ft({type:String})],qm.prototype,"mode",2),Fm([Kd({context:Dp,subscribe:!0}),ft({type:String})],qm.prototype,"layout",2),Fm([ft({type:Number})],qm.prototype,"quantity",2),Fm([ft({type:Object})],qm.prototype,"price",2),Fm([ft({type:Object})],qm.prototype,"infos",2),Fm([ft({type:Boolean})],qm.prototype,"canEditQuantity",2),Fm([ft({type:Boolean})],qm.prototype,"canDelete",2),Fm([ft({type:Boolean})],qm.prototype,"isExtra",2),Fm([ft({type:String})],qm.prototype,"type",2),Fm([ft({type:Number})],qm.prototype,"total",2),Fm([ft({type:Array})],qm.prototype,"messages",2),Fm([ft({type:Object})],qm.prototype,"quota",2),Fm([vt()],qm.prototype,"displayLine",2),Fm([vt()],qm.prototype,"_modal",2),Fm([vt()],qm.prototype,"canEditPrice",2),Fm([ft({type:String})],qm.prototype,"wording_abonnement",2),Fm([ft({type:String})],qm.prototype,"wording_LIB_abo_place",2),qm=Fm([ut("sonic-cart-item-line")],qm);var Hm=Object.defineProperty,Um=Object.getOwnPropertyDescriptor,Vm=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Um(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Hm(e,i,r),r};let Wm=class extends(Le(pt)){constructor(){super(...arguments),this.quantity=0,this.total=0,this.items=[],this.wording_abonnement="",this.wording_LIB_abo_place=""}render(){var t,e,i;const s=(null==(t=this.wording_abonnement)?void 0:t.toLowerCase())+(this.quantity>1?"s":"");let o=0;(null==(e=this.items)?void 0:e.length)&&this.items.forEach((t=>{t.items&&(o+=Dd(t.items))}));const r=(null==(i=this.wording_LIB_abo_place)?void 0:i.toLowerCase())+(o>1?"s":""),n="condensed"==this.layout;return V`
      <sonic-cart-item-line
        .total=${this.total}
        .canDelete=${this.items.every((t=>1==t.canDelete))}
      >
        <div slot="text">
          <!-- Liste les line items pour infos de chaque abonné -->
          <sonic-list subDataProvider="items" class="grid gap-1 grid-cols-1">
            <template>
              <sonic-cart-item-line-subscribe-infos></sonic-cart-item-line-subscribe-infos>
              <sonic-cart-item-line-messages></sonic-cart-item-line-messages>
            </template>
          </sonic-list>
        </div>

        <div slot="quantity">
          ${n?V`<sonic-icon library="custom" name="id-card" class="mr-[.25em] w-[1.3em]"></sonic-icon> ${this.quantity} <br />
                ${o?V`<sonic-icon library="custom" name="ticket" class="mr-[.25em] w-[1.3em]"></sonic-icon>
                      ${o} `:Z}`:V`${this.quantity} ${s}<br />
                ${o?V`<sonic-icon library="custom" name="ticket" class="mr-[.25em]"></sonic-icon> ${o}
                      ${r}`:Z}`}
        </div>
      </sonic-cart-item-line>
    `}};Wm.styles=[Qs],Vm([ft({type:Number})],Wm.prototype,"quantity",2),Vm([ft({type:Number})],Wm.prototype,"total",2),Vm([ft({type:Array})],Wm.prototype,"items",2),Vm([ft({type:String})],Wm.prototype,"wording_abonnement",2),Vm([ft({type:String})],Wm.prototype,"wording_LIB_abo_place",2),Vm([Kd({context:Dp,subscribe:!0}),ft({type:String})],Wm.prototype,"layout",2),Wm=Vm([ut("sonic-cart-item-line-subscribe")],Wm);let Zm=class extends(Le(pt)){constructor(){super(...arguments),this.price={},this.infos={}}render(){var t,e,i;return V`<div class="leading-tight">
      <span class="mr-2 ">${null==(t=this.price)?void 0:t.label}</span>
      <span class="text-xs text-neutral-500  leading-tight inline-block"
        >${null==(e=this.infos)?void 0:e.firstName} ${null==(i=this.infos)?void 0:i.lastName}</span
      >
    </div>`}};Zm.styles=[Qs],Vm([ft({type:Object})],Zm.prototype,"price",2),Vm([ft({type:Object})],Zm.prototype,"infos",2),Zm=Vm([ut("sonic-cart-item-line-subscribe-infos")],Zm);var Ym=Object.defineProperty,Gm=Object.getOwnPropertyDescriptor,Km=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Gm(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Ym(e,i,r),r};let Qm=class extends(Le(pt)){constructor(){super(...arguments),this.hideHeader=!1,this.textOnly=!1}render(){var t,e;const i=this.hideHeader||this.textOnly||"condensed"==this.layout;return V`${this.hideHeader?Z:V`<sonic-cart-item-header ?textOnly=${this.textOnly||"condensed"==this.layout}></sonic-cart-item-header>`}
    ${(null==(e=null==(t=this.props)?void 0:t.entity)?void 0:e.entity_type)===Cd.Subscribe?V` <sonic-cart-item-line-subscribe class="mt-1"></sonic-cart-item-line-subscribe>`:V` <div class="w(full relative grid grid-cols-1 ${i?"mt-0":"mt-2 gap-1 "}">
          <sonic-list subDataProvider="items">
            <template><sonic-cart-item-line></sonic-cart-item-line> </template>
          </sonic-list>
        </div>`}`}};Qm.styles=[Qs],Km([ft({type:Boolean})],Qm.prototype,"hideHeader",2),Km([ft({type:Boolean})],Qm.prototype,"textOnly",2),Km([Kd({context:Dp,subscribe:!0}),ft({type:String})],Qm.prototype,"layout",2),Qm=Km([ut("sonic-cart-item")],Qm);var Xm=Object.defineProperty,Jm=Object.getOwnPropertyDescriptor,tg=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Jm(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Xm(e,i,r),r};let eg=class extends pt{constructor(){super(...arguments),this.layout="default"}render(){const t="condensed"==this.layout?"my-[.2rem]":"my-[.7rem]";return V`<sonic-divider class="${t}"></sonic-divider>`}};eg.styles=[Qs],tg([Kd({context:Dp,subscribe:!0}),ft({type:String})],eg.prototype,"layout",2),eg=tg([ut("sonic-cart-item-divider")],eg);var ig=Object.defineProperty,sg=Object.getOwnPropertyDescriptor,og=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?sg(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&ig(e,i,r),r};let rg=class extends pt{constructor(){super(...arguments),this.mode="default"}render(){let t=Ae("message_panier_vide"),e="";return"splitResult"===this.mode?t="Aucun élément pour l'instant":"reservation"===this.cartType?t="Réservation vide":"cart"===this.cartType&&"default"===this.mode?(t=Ae("message_panier_vide"),e=Ae("LIB_empty_cart_add_item")):t="",V`
      <div class="text-neutral-400  ${"condensed"==this.layout?"lg:text-xl":"text-lg lg:text-xl"} my-[2em] px-1">
        <div class="flex gap-2 items-center">
          <sonic-icon library="custom" name="face-thinking"></sonic-icon>
          <div>${t}</div>
        </div>
        ${""!==(null==e?void 0:e.toString())?V` <div class="text-[.75em]">${e}</div>`:Z}
      </div>
    `}};rg.styles=[Qs],og([Kd({context:jp,subscribe:!0}),ft({type:String})],rg.prototype,"cartType",2),og([Kd({context:Lp,subscribe:!0}),ft({type:String})],rg.prototype,"mode",2),og([Kd({context:Dp,subscribe:!0}),ft({type:String})],rg.prototype,"layout",2),rg=og([ut("sonic-cart-empty")],rg);var ng=Object.defineProperty,ag=Object.getOwnPropertyDescriptor,lg=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?ag(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&ng(e,i,r),r};let cg=class extends(Le(pt)){constructor(){super(...arguments),this.total=0,this.subTotal=0,this.isSubtotal=!1,this.computeId=0,this.computeTotal=async()=>{this.computeId++;const t=this.computeId;if(await ki.delayPromise(1),t!==this.computeId)return;const e=this.publisher.items.get(),i=e?e.reduce(((t,e)=>{var i,s;if(!e)return t;const o=(null==(i=e.price)?void 0:i.amount)?parseFloat(null==(s=e.price)?void 0:s.amount.toString()):0;return t+(e.quantity?o*e.quantity:0)}),0):0,s=this.publisher.extras.get(),o=s?s.reduce(((t,e)=>{var i,s;if(!e)return t;const o=(null==(i=e.price)?void 0:i.amount)?parseFloat(null==(s=e.price)?void 0:s.amount.toString()):0;return t+(e.quantity?o*e.quantity:0)}),0):0;this.publisher.subTotal=i,this.publisher.total=i+o}}connectedCallback(){super.connectedCallback(),this.publisher.items.onInternalMutation(this.computeTotal)}disconnectedCallback(){super.disconnectedCallback(),this.publisher.items.offInternalMutation(this.computeTotal)}render(){const t=this.isSubtotal?Ae("subTotal"):Ae("total"),e=this.label||t,i=this.isSubtotal?this.subTotal:this.total;return V`${e} : <span class="font-bold">${Ed(i)}</span>`}};cg.styles=[Qs],lg([ft({type:Number})],cg.prototype,"total",2),lg([ft({type:Number})],cg.prototype,"subTotal",2),lg([ft({type:Boolean})],cg.prototype,"isSubtotal",2),lg([ft({type:String})],cg.prototype,"label",2),cg=lg([ut("sonic-cart-total")],cg);var dg=Object.defineProperty,pg=Object.getOwnPropertyDescriptor,hg=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?pg(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&dg(e,i,r),r};let ug=class extends(Le(pt)){constructor(){super(...arguments),this.edito=null,this.prices=null,this.id="",this.loading=!1}async addToCart(){if(!this.prices)return;const t=this.prices[0].id,e={type:Cd.AdditionalProduct,entity_id:parseInt(this.id),quantity:1,price:{id:t||-1}},i=this.getAncestorAttributeValue("cartProvider");this.loading=!0,await Od.add({apiConfiguration:this.getApiConfiguration(),endPoint:i,items:[e]}),this.loading=!1}render(){var t;if(!this.prices||0==this.prices.length)return Z;const e=this.prices.at(0),i=(null==e?void 0:e.amount)||0;return V`
      <div
        class="flex gap-2 items-center justify-end  text-left transition  ${this.loading?"pointer-events-none opacity-40":""}"
      >
        <div class="flex flex-grow text-sm leading-tight gap-3 items-center justify-end">
          <div class="flex-grow flex justify-end text-right">${null==(t=this.edito)?void 0:t.title}</div>
          <div class="ml-auto font-medium min-w-[6ch] text-right flex items-center justify-end gap-x-2">
            <div class="border-t  border-dotted flex-grow border-neutral-300"></div>
            <span class="shrink-0"> ${Od.formatAmount(i)} </span>
          </div>
        </div>
        <sonic-button type="success" shape="circle" size="2xs" @click=${this.addToCart}>
          <sonic-icon library="custom" name="plus" size="lg"></sonic-icon>
        </sonic-button>
      </div>
    `}};ug.styles=[Qs,l`
      :host {
        direction: ltr;
      }
    `],hg([ft({type:Object})],ug.prototype,"edito",2),hg([ft({type:Array})],ug.prototype,"prices",2),hg([ft({type:String})],ug.prototype,"id",2),hg([ft({type:Boolean})],ug.prototype,"loading",2),ug=hg([ut("sonic-cart-additional-products-item")],ug);var mg=Object.defineProperty,gg=Object.getOwnPropertyDescriptor,fg=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?gg(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&mg(e,i,r),r};let vg=class extends(_s(Le(pt))){constructor(){super(...arguments),this.dataProvider="additional_products",this.condensed=!1,this.flatten=!1,this.data=[]}renderList(){return V`<sonic-list class=" grid grid-cols-1 gap-y-1" subDataProvider="data">
      <template>
        <sonic-cart-additional-products-item></sonic-cart-additional-products-item>
      </template>
    </sonic-list>`}render(){var t;const e=null==(t=this.data)?void 0:t.length;return e?e>3&&!this.flatten?V`<sonic-pop noToggle data-on-select="keep">
        <sonic-button size="${this.condensed?"xs":"sm"}" variant="outline">
          <sonic-icon name="circle-plus" library="custom"></sonic-icon>${Ae("add_product")}
        </sonic-button>
        <div class="w-80 p-3 py-4" slot="content">${this.renderList()}</div>
      </sonic-pop>`:this.renderList():Z}};vg.styles=[Qs,l`
      :host {
        display: block;
      }

      sonic-list {
        direction: rtl;
      }
    `],fg([ft()],vg.prototype,"cartProvider",2),fg([ft({type:Boolean})],vg.prototype,"condensed",2),fg([ft({type:Boolean})],vg.prototype,"flatten",2),fg([ft({type:Array})],vg.prototype,"data",2),vg=fg([ut("sonic-cart-additional-products")],vg);var yg=Object.defineProperty,bg=Object.getOwnPropertyDescriptor,wg=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?bg(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&yg(e,i,r),r};let xg=class extends(Le(pt)){connectedCallback(){this.cartProvider||(this.cartProvider=this.getAncestorAttributeValue("cartProvider")),super.connectedCallback()}render(){return V` <sonic-button
      shape="block"
      .size="${this.size}"
      @click=${()=>this.addEventModal(this.cartProvider||"cart/current")}
    >
      <sonic-icon library="custom" name="plus">4</sonic-icon> Ajouter des évènements
    </sonic-button>`}addEventModal(t){this._modal=gl.create({title:"Ajouter des évènements",content:`<sonic-counter-store cartProvider=${t} class="block w-full"></sonic-counter-store>`,width:"77rem",maxWidth:"90vw",removeOnHide:!0})}};xg.styles=[Qs],wg([ft({type:String})],xg.prototype,"cartProvider",2),wg([ft({type:String})],xg.prototype,"size",2),xg=wg([ut("sonic-cart-add-events")],xg);var _g=Object.defineProperty,kg=Object.getOwnPropertyDescriptor,$g=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?kg(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&_g(e,i,r),r};let Pg=class extends(Le(pt)){constructor(){super(...arguments),this.payments_methods=[],this.resaAndCredit=[],this.paymentsWithoutResaAndCredit=[],this.canCheckout=!1,this.quantity=0,this.align="center",this.layout="default",this.hasResa=!1,this.hasCompteCredit=!1,this.errorText=Ae("cart_payement_buttons_error"),this._resizeController=new Hn(this,{})}willUpdate(t){var e;switch(t.has("props")&&(null==(e=this.props)?void 0:e.cartType)){case"reservation":this.errorText=Ae("cart_payement_buttons_error_reservation");break;case"cart":this.errorText=Ae("cart_payement_buttons_error")}t.has("payments_methods")&&(this.hasResa=this.payments_methods.some((t=>"resa"===t.code)),this.hasCompteCredit=this.payments_methods.some((t=>"credit"===t.code)),this.resaAndCredit=this.payments_methods.filter((t=>"resa"===t.code||"credit"===t.code)),this.paymentsWithoutResaAndCredit=this.payments_methods.filter((t=>"resa"!==t.code&&"credit"!==t.code))),super.willUpdate(t)}getCheckoutPath(t){var e,i,s;return"reservation"===(null==(e=this.props)?void 0:e.cartType)&&(null==(i=this.props)?void 0:i.id)?ao("checkout").query({payment_id:t.id,cart_id:null==(s=this.props)?void 0:s.id}).fill(t):ao("checkout").query({payment_id:t.id}).fill(t)}render(){if(!this.canCheckout&&!this.quantity)return Z;if(!this.canCheckout&&this.quantity)return V`<sonic-alert status="error" background size="sm"> ${this.errorText} </sonic-alert>`;const t=this.paymentsWithoutResaAndCredit.length,e=1===t;if(!this.payments_methods.length)return Z;const i=this.clientWidth<200,s=this.resaAndCredit.length;return e&&!i?V`
        ${this.payments_methods.map((t=>V`<sonic-button
            type="success"
            href=${this.getCheckoutPath(t).toString()}
            size="lg"
            align="center"
            shape="block"
            ?disabled=${!this.canCheckout}
            autoActive="disabled"
            class=" mx-auto"
            ><sonic-icon name="arrow-right" library="custom"></sonic-icon>
            <span class="font-bold">${Ce("commander")} </span></sonic-button
          >`))}
      `:V`<div class="@container">
      <div
        class="grid grid-cols-1 gap-1  ${t>=2?" @sm:grid-cols-2":""} ${t>=3?"@xl:grid-cols-3":""}} "
      >
        ${this.paymentsWithoutResaAndCredit.map(((i,s)=>{let o="default";return t<=2?o="success":s<4&&(o="neutral"),V`<sonic-button
            type="${o}"
            href=${this.getCheckoutPath(i).toString()}
            size="${li(this.size)}"
            shape="block"
            minWidth="8rem"
            autoActive="disabled"
            align="left"
            ?disabled=${!this.canCheckout}
            >${e?V`<sonic-icon name="arrow-right" library="custom" slot="prefix"></sonic-icon> ${Ce("commander")}`:V`${Sg(i.title)}
                  <span class="${s<3?"font-bold":""} ">${i.title}</span>`}</sonic-button
          >`}))}
      </div>
      ${s?V` <div
            class="pt-3 grid grid-cols-1 gap-1  ${2==this.resaAndCredit.length?" @sm:grid-cols-2":""}   "
          >
            ${this.resaAndCredit.map((t=>{let e="default";return"resa"===t.code?e="warning":"credit"===t.code&&(e="info"),V`<sonic-button
                type="${e}"
                href=${this.getCheckoutPath(t).toString()}
                size="${li(this.size)}"
                shape="block"
                minWidth="8rem"
                autoActive="disabled"
                variant="outline"
                align="left"
                ?disabled=${!this.canCheckout}
                >${Sg(t.title)} ${t.title}</sonic-button
              >`}))}
          </div>`:Z}
    </div>`}};function Sg(t){if(!t)return;const e={"cb/":"credit-card",cb:"credit-card",cheque:"money-check-dollar",espece:"money-bill-wave",exonere:"hand-peace",differe:"clock",passculture:"graduation-cap",compteclient:"wallet",virement:"arrow-right-arrow-left",reservation:"badge-check",sepa:"pen-nib",facture:"file-lines"},i=t.normalize("NFD").replaceAll(" ","").replace(/[\u0300-\u036f]/g,"").toLowerCase();if(Object.keys(e).some((t=>i.includes(t)))){const t=Object.keys(e).find((t=>i.includes(t)));if(!t)return;return V`<sonic-icon slot="prefix" size="lg" name="${e[t]}" library="custom"></sonic-icon>`}}Pg.styles=[Qs],$g([ft({type:Array})],Pg.prototype,"payments_methods",2),$g([ft({type:Array})],Pg.prototype,"resaAndCredit",2),$g([ft({type:Array})],Pg.prototype,"paymentsWithoutResaAndCredit",2),$g([ft({type:Boolean})],Pg.prototype,"canCheckout",2),$g([ft({type:Number})],Pg.prototype,"quantity",2),$g([ft({type:String})],Pg.prototype,"size",2),$g([ft({type:String})],Pg.prototype,"align",2),$g([ft({type:String})],Pg.prototype,"layout",2),$g([vt()],Pg.prototype,"hasResa",2),$g([vt()],Pg.prototype,"hasCompteCredit",2),$g([vt()],Pg.prototype,"errorText",2),Pg=$g([ut("sonic-cart-payment-buttons")],Pg);var Cg=Object.defineProperty,Ag=Object.getOwnPropertyDescriptor,Og=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Ag(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Cg(e,i,r),r};let Eg=class extends(_s(Le(pt))){constructor(){super(...arguments),this.data=null,this.cartProvider="",this.invalidateMyGiftCards=t=>{this.dataProvider&&zt.get(this.dataProvider).invalidate(),this._fetchData()}}connectedCallback(){this.isFetchEnabled=!1,this.cartProvider||(this.cartProvider=this.getAncestorAttributeValue("cartProvider")||"cart/current"),this.dataProvider=this.cartProvider+"/cartMyGiftcards",zt.get(this.cartProvider).data.onAssign(this.invalidateMyGiftCards),super.connectedCallback()}disconnectedCallback(){zt.get(this.cartProvider).data.offAssign(this.invalidateMyGiftCards),super.disconnectedCallback()}handleSubmit(t){var e;1==(null==(e=t.detail)?void 0:e.success)&&(zt.get(this.cartProvider).invalidate(),this.dataProvider&&zt.get(this.dataProvider).invalidate())}willUpdate(t){t.has("userId")&&this.userId&&!this.isFetchEnabled&&(this.endPoint=`/user/${this.userId}/purchases/giftcard?owner=${this.userId}&available=true&inUse=false`,this.isFetchEnabled=!0,this._fetchData()),super.willUpdate(t)}render(){var t,e;const i=this.data&&this.data.length>0;if(this.style.display=i?"block":"none",!this.data||0==this.data.length||!this.userId)return Z;const s=(null==(e=null==(t=this.cartProvider)?void 0:t.split("/"))?void 0:e.pop())||"current";return V`<div class="">
      <div class="uppercase text-sm font-bold mb-1 text-center ">
        <sonic-icon name="face-awesome" library="custom"></sonic-icon> Disponible !
      </div>

      <div
        formdataprovider="cartMyGiftcardForm"
        submitresultdataprovider="cartMyGiftcardResult"
        dataProvider="giftcards"
        method="post"
        class="flex flex-wrap gap-2 justify-center"
      >
        <sonic-input type="hidden" name="cartId" value="${s}"></sonic-input>

        ${Ie(this.data,(t=>{var e;return null==(e=t.giftcard)?void 0:e.code}),(t=>{var e,i,s,o,r,n,a;return V`${(null==(e=t.giftcard)?void 0:e.code)?V`<sonic-submit onClick clearedDataOnSuccess="cartMyGiftcardForm" @submit=${this.handleSubmit}
                  ><sonic-button unique size="xs" name="code" value=${t.giftcard.code}>
                    <div class="font-bold text-xs ">
                      ${(null==(s=null==(i=t.entity)?void 0:i.edito)?void 0:s.alt_title)||(null==(r=null==(o=t.entity)?void 0:o.edito)?void 0:r.title)}
                    </div>
                    <span class="tracking-wide"> ${null==(n=t.giftcard)?void 0:n.code} </span>
                    ${(null==(a=t.giftcard)?void 0:a.remaining_amount)?V`/ ${Ed(t.giftcard.remaining_amount)}`:Z}
                  </sonic-button></sonic-submit
                >`:Z}`}))}
      </div>
    </div> `}};Eg.styles=[Qs,l`
      :host() {
        display: block;
      }
    `],Og([Us("user.id"),ft({type:String})],Eg.prototype,"userId",2),Og([ft({type:Array})],Eg.prototype,"data",2),Og([ft({type:String})],Eg.prototype,"cartProvider",2),Eg=Og([ut("sonic-use-my-giftcards")],Eg);var Tg=Object.defineProperty,Mg=Object.getOwnPropertyDescriptor,Dg=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Mg(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Tg(e,i,r),r};let Lg=class extends(Le(pt)){constructor(){super(...arguments),this.items=null,this.extras=null,this.canCheckout=!1,this.addEvents=!1,this.total=0,this.subTotal=0,this.noAdditionalProducts=!1,this.mode="default",this.layout="default",this.cartType="cart",this.maxHeight=!1,this.setMaxHeight=()=>{if(!this.maxHeight)return;const t=this.getBoundingClientRect().top;let e=0;this.actionElements&&this.actionElements.forEach((t=>{e+=t.getBoundingClientRect().height})),this.maxHeightValue=window.innerHeight-t-e-40},this._resizeController=new Hn(this,{callback:this.setMaxHeight})}connectedCallback(){this.maxHeight&&(this.setMaxHeight(),window.addEventListener("resize",this.setMaxHeight)),super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.maxHeight&&window.removeEventListener("resize",this.setMaxHeight)}willUpdate(t){t.has("items")&&(this.publisher.groupedItems=Md(this.items||[])),super.willUpdate(t)}render(){var t;const e="condensed"==this.layout,i=!this.noAdditionalProducts&&"default"==this.mode;if(!this.props)return Z;if(null===this.items||0===this.items.length)return V`<sonic-cart-empty></sonic-cart-empty>

        ${i?this.renderAdditionnalProducts(e):Z}
        ${"counter"!==this.appType||e?Z:V`<sonic-cart-add-events class="mb-3 block"></sonic-cart-add-events>`}`;let s={};this.maxHeightValue&&(s={maxHeight:`clamp(200px, ${this.maxHeightValue}px, 2000px)`});const o=null==(t=this.extras)?void 0:t.length,r="readonly"!==this.mode;return V`
      <div class="@container">
        <div
          style="${pi(s)}"
          class="cart-content pt-3 ${this.maxHeight?"!overflow-y-auto overflow-x-hidden  custom-scroll":""}"
        >
          <sonic-list subDataProvider="groupedItems.subscribe">
            <template
              ><sonic-cart-item textOnly></sonic-cart-item> <sonic-cart-item-divider></sonic-cart-item-divider>
            </template>
          </sonic-list>

          <sonic-list subDataProvider="groupedItems.event">
            <template
              ><sonic-cart-item></sonic-cart-item>
              <sonic-cart-item-divider></sonic-cart-item-divider>
            </template>
          </sonic-list>

          <sonic-list subDataProvider="groupedItems.giftcard">
            <template
              ><sonic-cart-item></sonic-cart-item>
              <sonic-cart-item-divider></sonic-cart-item-divider>
            </template>
          </sonic-list>

          <sonic-list subDataProvider="groupedItems.additionalProduct">
            <template
              ><sonic-cart-item hideHeader></sonic-cart-item>
              <sonic-cart-item-divider></sonic-cart-item-divider></template
          ></sonic-list>

          ${null!==this.subTotal&&o?V`<div class="text-right   ${e?"text-sm":"text-base"} my-1 ${r?"mr-9":""} ">
                <sonic-cart-total isSubtotal></sonic-cart-total>
              </div>`:Z}

          <sonic-list subDataProvider="extras">
            <template>
              <sonic-cart-item-line isExtra></sonic-cart-item-line>
            </template>
          </sonic-list>
        </div>

        <div
          data-action-area
          class="${r?"mr-9":""} ${e?"text-lg @xl:text-xl":"text-xl @xl:text-2xl "} py-[max(1.5%,.5rem)] text-right"
        >
          <sonic-cart-total></sonic-cart-total>
        </div>

        <!-- Liste des produits additionels pouvant être ajoutés depuis le panier -->
        ${i?this.renderAdditionnalProducts(e):Z}
      </div>
      ${"default"!=this.mode||e||"counter"!==this.appType?Z:V`<div data-action-area>
            <sonic-cart-add-events class="block w-full pt-3 mb-2"></sonic-cart-add-events>
          </div>`}
    `}renderAdditionnalProducts(t){const e="counter"===this.appType;return V`<div data-action-area class="text-right my-3 px-1">
      <sonic-cart-additional-products
        ?condensed="${t}"
        ?flatten="${!e}"
      ></sonic-cart-additional-products>
    </div>`}};var jg;Lg.styles=[Qs,hi,l`
      :host {
        text-align: left;
        display: block;
      }

      /* .cart-content {
         max-height: 60vh;
       }*/
    `],Dg([ft({type:Array})],Lg.prototype,"items",2),Dg([ft({type:Array})],Lg.prototype,"extras",2),Dg([ft({type:Boolean})],Lg.prototype,"canCheckout",2),Dg([ft({type:Boolean})],Lg.prototype,"addEvents",2),Dg([ft({type:Number})],Lg.prototype,"total",2),Dg([ft({type:Number})],Lg.prototype,"subTotal",2),Dg([ft({type:Boolean})],Lg.prototype,"noAdditionalProducts",2),Dg([Kd({context:Lp,subscribe:!0}),Gd({context:Lp}),ft({type:String})],Lg.prototype,"mode",2),Dg([Gd({context:Dp}),ft({type:String})],Lg.prototype,"layout",2),Dg([Gd({context:jp}),ft({type:String})],Lg.prototype,"cartType",2),Dg([Kd({context:Ip,subscribe:!0})],Lg.prototype,"appType",2),Dg([ft({type:Boolean})],Lg.prototype,"maxHeight",2),Dg([(jg="[data-action-area]",(t,e)=>yt(t,e,{get(){return(this.renderRoot??wt??(wt=document.createDocumentFragment())).querySelectorAll(jg)}}))],Lg.prototype,"actionElements",2),Dg([vt()],Lg.prototype,"maxHeightValue",2),Lg=Dg([ut("sonic-cart-items")],Lg);var Ig=Object.defineProperty,zg=Object.getOwnPropertyDescriptor,Bg=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?zg(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Ig(e,i,r),r};let Rg=class extends(Le(pt)){constructor(){super(...arguments),this.giftcardEnabled=!1}invalidateCart(t){t.success&&this.cartProvider&&(zt.get(this.cartProvider).invalidate(),this.giftCardCode="")}connectedCallback(){this.cartProvider||(this.cartProvider=this.getAncestorAttributeValue("cartProvider")),super.connectedCallback()}render(){var t,e;if(this.giftcardEnabled){const i=(null==(e=null==(t=this.cartProvider)?void 0:t.split("/"))?void 0:e.pop())||"current";return V`
        <div
          formdataprovider="giftcardForm"
          submitresultdataprovider="giftcardResult"
          dataProvider="giftcards"
          method="post"
        >
          <sonic-input type="hidden" name="cartId" value="${i}"></sonic-input>

          <sonic-submit onEnterKey>
            <sonic-input
              size=${li(this.size)}
              name="code"
              placehoderAsLabel
              placeholder=${Ae("LIB_cartes_cadeaux")}
              inlineContent
            >
              <sonic-icon library="custom" name="gift-card" slot="prefix"></sonic-icon>

              <sonic-submit onClick slot="suffix">
                <sonic-tooltip label="${Ae("submit")}">
                  <sonic-button
                    size=${li(this.size)}
                    shape="square"
                    icon
                    variant="unstyled"
                    data-aria-label=${Ae("submit")}
                  >
                    <sonic-icon
                      library="iconoir"
                      name="check"
                      class="${this.giftCardCode?"opacity-100 animate-[pulse.5s_ease-in-out_infinite_.5s] inline-block":"opacity-30"}"
                    ></sonic-icon>
                  </sonic-button>
                </sonic-tooltip>
              </sonic-submit>
            </sonic-input>
          </sonic-submit>
        </div>
      `}return Z}};Rg.styles=[Qs],Bg([Us("settings.modules.giftcards.enabled"),ft({type:Boolean})],Rg.prototype,"giftcardEnabled",2),Bg([ft({type:String})],Rg.prototype,"size",2),Bg([Us("giftcardForm.code"),ft({type:String})],Rg.prototype,"giftCardCode",2),Bg([ft({type:String})],Rg.prototype,"cartProvider",2),Bg([Vs("giftcardResult")],Rg.prototype,"invalidateCart",1),Rg=Bg([ut("sonic-giftcard-form")],Rg);var Ng=Object.defineProperty,Fg=Object.getOwnPropertyDescriptor,qg=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Fg(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Ng(e,i,r),r};let Hg=class extends(Le(pt)){constructor(){super(...arguments),this.quantity=null}render(){const t=this.quantity;return t?V`<span>${t}</span>`:Z}};Hg.styles=[Qs,l`
      :host {
        display: inline-flex;
        font-size: clamp(10px, 0.5em, 0.85rem);
        background-color: var(--sc-danger);
        color: var(--sc-danger-content);
        border-radius: 100px;
        padding: max(0.15em, 2.5px) 0.4em;
        font-weight: bold;
        justify-content: center;
        align-items: center;
        line-height: 1;
        white-space: nowrap; /* fix bug #42622 */
      }
      span {
        font-weight: bold;
        line-height: 1.15;
      }
    `],qg([ft({type:Number})],Hg.prototype,"quantity",2),Hg=qg([ut("sonic-cart-item-count")],Hg);var Ug=Object.defineProperty,Vg=Object.getOwnPropertyDescriptor,Wg=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Vg(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Ug(e,i,r),r};let Zg=class extends(Le(pt)){constructor(){super(...arguments),this.remaining_time=!1,this.expired=!1,this.remaining_time_string="",this.wording_expire=""}connectedCallback(){this.dataProvider=this.dataProvider||"cart/current",super.connectedCallback()}willUpdate(t){if(t.has("remaining_time"))if(this.remaining_time){const t=setInterval((()=>{this.updateCartCountdown(t)}),1e3)}else this.remaining_time_string="";super.willUpdate(t)}updateCartCountdown(t){const e=this.remaining_time;if(!e)return void clearInterval(t);const i=(new Date(1e3*e).getTime()-Date.now())/1e3,s=Math.floor(i/60);if(s<0)return clearInterval(t),void(this.expired=!0);const o=Math.floor(i-60*s),r=o<10?"0"+o:o.toString();this.remaining_time_string=s+":"+r}render(){return this.expired?V` <span onclick="window.location.reload();return false">
        <sonic-icon library="custom" name="arrow-rotate-left"></sonic-icon>
        ${this.wording_expire}
      </span>`:this.remaining_time_string?V`<span
        ><sonic-icon library="custom" name="clock" size="sm"></sonic-icon> ${this.remaining_time_string}</span
      >`:Z}};Zg.styles=[l`
      :host {
        display: inline-flex;
        align-items: center;
        min-width: 8ch;
      }

      :host([badge]) {
        display: inline-flex;
        font-size: clamp(9px, 0.45em, 0.75rem);
        background-color: var(--sc-danger);
        color: var(--sc-danger-content);
        border-radius: 100px;
        padding: calc(1px + max(0.15em, 2.5px)) 0.4em max(0.15em, 2.5px);
        font-weight: bold;
        justify-content: center;
        align-items: center;
        line-height: 1;
        min-width: 8ch;
        font-family: "Roboto Mono", "Consolas", monospace;
      }

      span {
        white-space: nowrap;
        font-weight: bold;
        display: flex;
        gap: 0.25em;
      }
    `],Wg([ft({type:Number})],Zg.prototype,"remaining_time",2),Wg([ft({type:Boolean})],Zg.prototype,"expired",2),Wg([ft({type:String})],Zg.prototype,"remaining_time_string",2),Wg([ft({type:String})],Zg.prototype,"wording_expire",2),Zg=Wg([ut("sonic-cart-remaining-time")],Zg);var Yg=Object.defineProperty,Gg=Object.getOwnPropertyDescriptor,Kg=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Gg(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Yg(e,i,r),r};let Qg=class extends(Le(pt)){constructor(){super(...arguments),this.link=null}updateBadge(){this.publisher.invalidate()}render(){return this.link?V`<span> ! </span>`:Z}};Qg.styles=[Qs,l`
      :host {
        display: inline-flex;
        font-size: clamp(10px, 0.5em, 1rem);
        background-color: var(--sc-danger);
        color: var(--sc-danger-content);
        border-radius: 100px;
        width: 1.5em;
        height: 1.5em;
        font-weight: bold;
        justify-content: center;
        align-items: center;
        line-height: 1;
        white-space: nowrap; /* fix bug #42622 */
      }
    `],Kg([ft({type:String})],Qg.prototype,"link",2),Kg([Vs("cart/current.data.quantity")],Qg.prototype,"updateBadge",1),Qg=Kg([ut("sonic-waiting-cart")],Qg);var Xg=Object.defineProperty,Jg=Object.getOwnPropertyDescriptor,tf=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Jg(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Xg(e,i,r),r};let ef=class extends(Le(pt)){constructor(){super(...arguments),this.noRemainingTime=!1,this.isWaiting=!1}connectedCallback(){"cart/current"==this.getAncestorAttributeValue("cartProvider")&&(this.setAttribute("dataProvider","cart/current"),this.setAttribute("subDataProvider","data")),super.connectedCallback()}render(){return V`<span class="sr-only">${Ae("panier")} ${this.quantity?V`${this.quantity} items`:Z}</span>

      <div class="inline-flex relative items-center justify-center align-center">
        <slot name="icon"
          ><sonic-icon library="custom" name="basket-shopping" size="${li(this.size)}"></sonic-icon
        ></slot>
        <sonic-cart-item-count class="item-count"></sonic-cart-item-count>

        ${this.isWaiting?Z:V`<sonic-fetch dataProvider="cart/payment-link" key="data">
              <sonic-waiting-cart class="item-count"></sonic-waiting-cart>
            </sonic-fetch>`}
        ${this.noRemainingTime?Z:V`<sonic-cart-remaining-time
              class="remaining-time"
              subDataProvider="data"
              badge
            ></sonic-cart-remaining-time>`}
      </div>`}};ef.styles=[Qs,l`
      /*:host {
        vertical-align: text-bottom;
        display: inline-flex;
      }*/

      :host {
        display: inline-flex;
      }

      .item-count {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) translate(-1.35em, -1.35em);
      }

      .remaining-time {
        position: absolute;
        left: 50%;
        top: 100%;
        transform: translate(-50%, 10%);
      }
    `],tf([ft({type:String})],ef.prototype,"size",2),tf([ft({type:String})],ef.prototype,"quantity",2),tf([ft({type:Boolean})],ef.prototype,"noRemainingTime",2),tf([Us("sonicTicketApp.isWaiting"),vt()],ef.prototype,"isWaiting",2),ef=tf([ut("sonic-cart-icon")],ef);var sf=Object.defineProperty,of=Object.getOwnPropertyDescriptor,rf=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?of(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&sf(e,i,r),r};let nf=class extends(Ls(pt)){constructor(){super(...arguments),this.loading=!1,this.quantity=null,this.wording_LIB_clear_cart=""}async clearCart(){this.loading=!0,await Od.clear({apiConfiguration:this.getApiConfiguration(),endPoint:this.getAncestorAttributeValue("cartProvider")}),this.loading=!1}render(){return this.quantity&&this.quantity>0?V`
        <sonic-tooltip label=${this.wording_LIB_clear_cart} placement="left">
          <sonic-button
            icon
            size="lg"
            shape="circle"
            variant="ghost"
            @click="${this.clearCart}"
            ?disabled=${this.loading}
          >
            <sonic-icon library="iconoir" name="trash"></sonic-icon>
          </sonic-button>
        </sonic-tooltip>
      `:Z}};nf.styles=[Qs],rf([ft({type:Boolean})],nf.prototype,"loading",2),rf([ft({type:Number})],nf.prototype,"quantity",2),rf([ft({type:String})],nf.prototype,"wording_LIB_clear_cart",2),nf=rf([ut("sonic-clear-cart-btn")],nf);var af=Object.defineProperty,lf=Object.getOwnPropertyDescriptor,cf=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?lf(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&af(e,i,r),r};let df=class extends(Le(pt)){constructor(){super(...arguments),this.messages=[],this.layout="default",this.cartType="cart",this.quantity=0,this.promoEnabled=!1,this.giftcardEnabled=!1,this.noSuffix=!1}connectedCallback(){this.cartProvider||(this.cartProvider=this.getAncestorAttributeValue("cartProvider")),super.connectedCallback()}render(){const t="condensed"==this.layout,e=!this.noSuffix&&this.quantity&&"counter"===this.appType&&"cart"===this.cartType,i=!this.noSuffix&&this.quantity&&(this.promoEnabled||this.giftcardEnabled);return V`<div class=" grid grid-cols-1  ${t?"gap-3":"gap-6"} ">
      ${this.quantity?V`<sonic-use-my-giftcards></sonic-use-my-giftcards>`:Z}

      <sonic-cart-payment-buttons size=${t?"sm":"md"}></sonic-cart-payment-buttons>

      ${e?V` <sonic-button
            autoActive="disabled"
            href="/la_billetterie/panier_decoupe"
            size="sm"
            shape="block"
            align="left"
            variant="outline"
          >
            <sonic-icon slot="prefix" name="table-columns" library="custom" size="lg"></sonic-icon>
            Diviser panier</sonic-button
          >`:Z}
      ${this.quantity?V` <slot name="customActions"></slot>`:Z}
      ${i?V`<sonic-divider noMargin></sonic-divider>`:Z}
      ${this.noSuffix?Z:V` <div class="flex flex-wrap gap-2 justify-center w-full">
            ${"cart/current"==this.cartProvider?V`
                  <sonic-promo-form
                    size=${t?"xs":"sm"}
                    class=" flew-grow block text-left ${t?" max-w-[10rem] ":"max-w-[13rem] "} "
                  ></sonic-promo-form>
                `:Z}
            ${this.quantity?V` <sonic-giftcard-form
                  size=${t?"xs":"sm"}
                  class=" flew-grow block text-left ${t?" max-w-[10rem] ":"max-w-[13rem] "}"
                ></sonic-giftcard-form>`:Z}
          </div>`}
    </div>`}};df.styles=[Qs],cf([ft({type:Array})],df.prototype,"messages",2),cf([Kd({context:Dp,subscribe:!0}),ft({type:String})],df.prototype,"layout",2),cf([Kd({context:jp,subscribe:!0}),ft({type:String})],df.prototype,"cartType",2),cf([ft({type:Number})],df.prototype,"quantity",2),cf([Kd({context:Ip,subscribe:!0})],df.prototype,"appType",2),cf([ft({type:String})],df.prototype,"cartProvider",2),cf([Us("settings.modules.giftcards.enabled"),ft({type:Boolean})],df.prototype,"promoEnabled",2),cf([Us("settings.promotion_code"),ft({type:Boolean})],df.prototype,"giftcardEnabled",2),cf([ft({type:Boolean})],df.prototype,"noSuffix",2),df=cf([ut("sonic-cart-actions")],df);var pf=Object.defineProperty,hf=Object.getOwnPropertyDescriptor,uf=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?hf(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&pf(e,i,r),r};let mf=class extends(Le(pt)){constructor(){super(...arguments),this.layout="default",this.mode="default",this.goBack=!1,this.waitingCart=!1,this.noCartActions=!1,this.paymentLink={},this.readOnly=!1,this.canClearCart=!0,this.maxHeight=!1,this.title="",this.summary="icon",this.cartType="cart",this.subTitle="",this.text="",this.cancelCart=()=>{new qt(this.getApiConfiguration()).delete("/cart/cancel",{}).then((()=>window.location.reload()))},this.isWaiting=!1}async setPaymentLink(t){(null==t?void 0:t.link)&&(this.waitingCart=!0,this.paymentLink=t)}willUpdate(t){t.has("readOnly")&&this.readOnly&&(this.mode="readonly"),super.willUpdate(t)}render(){var t;if(this.isWaiting)return Z;const e=ao("checkout"),i=null==(t=this.paymentLink)?void 0:t.hash,s="condensed"==this.layout;return e.hasHash()&&i?e.query({cart_id:i}):e.appendPath(i),"cart"==this.cartType&&this.waitingCart?V`
        <div class="my-12 text-center">
          <div class="mb-4 text-2xl xl:text-3xl">
            <sonic-icon library="custom" name="basket-shopping" class="mr-2"></sonic-icon>
            ${Ae("waiting_cart_message")}
          </div>
          <sonic-button href="${e}" type="success">
            <sonic-icon library="custom" name="arrow-right" slot="prefix"></sonic-icon>
            ${Ae("waiting_cart_continue")}
          </sonic-button>

          <div class="mt-6">
            <sonic-button variant="ghost" size="sm" @click="${this.cancelCart}">
              <sonic-icon library="iconoir" name="trash" slot="prefix"></sonic-icon>
              ${Ae("waiting_cart_cancel")}
            </sonic-button>
          </div>
        </div>
      `:V`
      <div class="mb-2">
        <div
          class="${s?"text-xl lg:text-2xl":"text-2xl lg:text-2xl xl:text-3xl "} flex gap-2 items-center text-left "
        >
          ${this.goBack?V`
                <sonic-button goBack=${ao("home")} icon size="xl" variant="ghost" shape="circle">
                  <sonic-icon library="custom" name="arrow-left"></sonic-icon>
                </sonic-button>
                <span class="inline-block mr-4">|</span>
              `:Z}
          <!-- Icon du panier avec pastille nombre d'éléments et compte à rebours réservation -->
          <div class="flex items-center gap-2">
            <sonic-cart-icon class="relative z-20" ?noRemainingTime=${"inline"==this.summary}></sonic-cart-icon>
            <div class="font-bold leading-none">${Ae("panier")}</div>
          </div>

          <!-- Vider le panier -->
          ${this.canClearCart?V` <sonic-clear-cart-btn class="ml-auto"></sonic-clear-cart-btn> `:Z}
        </div>

        ${"inline"==this.summary?V`<sonic-cart-summary displayRemainingTime class="text-sm"></sonic-cart-summary>`:Z}
      </div>
      ${this.text||this.subTitle?V`
            <sonic-alert status="info" class="text-left mt-6 mb-4" label="${this.subTitle}" size="sm" background>
              ${this.text?V`${_e(this.text)}`:Z}
            </sonic-alert>
          `:Z}

      <!-- Contenu du panier et bouton de soumission -->
      <sonic-cart-items
        cartType=${this.cartType}
        layout=${this.layout}
        ?readOnly=${this.readOnly}
        ?maxHeight=${this.maxHeight}
        ?noCartActions=${this.noCartActions}
        ?noAdditionalProducts=${this.readOnly}
      ></sonic-cart-items>

      ${this.noCartActions?Z:V`<sonic-cart-actions></sonic-cart-actions>`}
    `}};mf.styles=[Qs,l`
      :host {
        display: block;
        max-width: 90ch;
      }
      :host([fullWidth]) {
        max-width: none;
      }
    `],uf([Gd({context:Dp}),ft({type:String})],mf.prototype,"layout",2),uf([Gd({context:Lp}),ft({type:String})],mf.prototype,"mode",2),uf([ft({type:Boolean})],mf.prototype,"goBack",2),uf([ft({type:Boolean})],mf.prototype,"waitingCart",2),uf([ft({type:Boolean})],mf.prototype,"noCartActions",2),uf([ft({type:Object})],mf.prototype,"paymentLink",2),uf([ft({type:Boolean})],mf.prototype,"readOnly",2),uf([ft({type:Boolean})],mf.prototype,"canClearCart",2),uf([ft({type:Boolean})],mf.prototype,"maxHeight",2),uf([ft({type:String,attribute:"data-title"})],mf.prototype,"title",2),uf([ft({type:String})],mf.prototype,"summary",2),uf([Gd({context:jp}),ft({type:String})],mf.prototype,"cartType",2),uf([ft({type:String})],mf.prototype,"subTitle",2),uf([ft({type:String})],mf.prototype,"text",2),uf([Vs("cart/payment-link")],mf.prototype,"setPaymentLink",1),uf([Us("sonicTicketApp.isWaiting"),vt()],mf.prototype,"isWaiting",2),mf=uf([ut("sonic-cart-full")],mf);var gf=Object.defineProperty,ff=Object.getOwnPropertyDescriptor;let vf=class extends pt{connectedCallback(){this.setAttribute("dataProvider","cart/current"),this.urlCheckout=ao("checkout"),this.urlCart=ao("cart"),super.connectedCallback()}render(){var t,e;const i=null==(t=this.urlCart)?void 0:t.hasSameBaseAs(this.urlCheckout);return V`
      <sonic-fullscreen-layout>
        ${i&&(null==(e=this.urlCheckout)?void 0:e.hasHash())?V`
              <sonic-router class="contents">
                <template data-fallback data-route="${this.urlCart}$">
                  <sonic-cart-full subDataProvider="data" goBack></sonic-cart-full>
                </template>
                <template data-route="${this.urlCheckout.getHash()}">
                  <sonic-checkout subDataProvider="data"></sonic-checkout>
                </template>
              </sonic-router>
            `:V`<sonic-cart-full subDataProvider="data" goBack></sonic-cart-full>`}
      </sonic-fullscreen-layout>
    `}};vf.styles=[Qs],vf=((t,e,i,s)=>{for(var o,r=s>1?void 0:s?ff(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&gf(e,i,r),r})([ut("sonic-cart")],vf);var yf=Object.defineProperty,bf=Object.getOwnPropertyDescriptor,wf=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?bf(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&yf(e,i,r),r};let xf=class extends(_s(Le(pt))){constructor(){super(...arguments),this.slug="",this.places_categories=[],this.hidePromoForm=!1,this.multisession=null,this.wording_link_title_sessions_all="Toutes les séances",this.quotas=[]}connectedCallback(){this.isFetchEnabled=this.hasAttribute("fetch");const t=new URLSearchParams(window.location.search);this.customListSlug||(this.customListSlug=t.get("sonic_custom_list_slug")||""),this.isFetchEnabled&&(this.dataProvider=`events/${this.id}${this.customListSlug?`?list=${this.customListSlug}`:""}`),super.connectedCallback()}render(){const t=this.quotas.some((t=>0===t.remaining_places_nb));return V`<sonic-fullscreen-layout largeAside>
      <div>
        <div class="flex items-center flex-wrap gap-x-4 mb-3">
          <sonic-button
            data-aria-label=${li(Ae("back"))}
            goBack=${ao("agenda")}
            icon
            size="sm"
            shape="circle"
          >
            <sonic-icon library="custom" name="arrow-left"></sonic-icon>
          </sonic-button>
          <!--
          <div class="flex items-center gap-1">
            <sonic-button icon size="sm" shape="circle">
              <sonic-icon library="custom" name="chevron-left"></sonic-icon>
            </sonic-button>
            <sonic-button icon size="sm" shape="circle">
              <sonic-icon library="custom" name="chevron-right"></sonic-icon>
            </sonic-button>
          </div>
           -->
          ${this.multisession&&!this.customListSlug?V`
                <sonic-divider vertical></sonic-divider>
                <sonic-app-link to="event" .slug=${this.slug} class="hover:underline text-sm" variant="unstyled">
                  ${this.wording_link_title_sessions_all}</sonic-app-link
                >
              `:Z}
          ${this.customListSlug?V`<sonic-app-link to="customList" slug="${this.customListSlug}" class="hover:underline text-sm"
                >${Ae("tous_les_evenements")}</sonic-app-link
              >`:Z}
        </div>

        <sonic-product-title
          class="text-3xl md:text-5xl md:leading-[1.1] font-headings font-weight-headings font-style-headings block mb-3"
        ></sonic-product-title>
        <div class="flex flex-wrap items-center gap-x-2 gap-y-1">
          <sonic-event-additional-status
            fetch
            dataProvider="events/${this.id}/status${this.customListSlug?`?list=${this.customListSlug}`:""}"
            visibility="public"
            class="flex flex-wrap gap-x-3"
          ></sonic-event-additional-status>
          <sonic-event-scheduled-status></sonic-event-scheduled-status>
          <sonic-event-taxonomies class="contents"></sonic-event-taxonomies>
        </div>

        <div class="mt-[1.5rem] mb-4 grid gap-y-1">
          <sonic-date
            class="text-[1.5rem] font-bold [&_.hour]:font-normal [&_.minute]:font-normal [&_.literal]:font-normal"
            noshadowdom
          ></sonic-date>
          <sonic-event-location-hall isEvent="true" class="block w-full mt-1 text-sm"></sonic-event-location-hall>
          <sonic-price-range displayIcon class="text-sm"></sonic-price-range>
        </div>
        ${t?V`<sonic-waiting-list-button variant="outline"></sonic-waiting-list-button>`:Z}

        <!-- this.renderCategories(this.places_categories -->
        <sonic-buy-event-block-suffix class="block mt-4"></sonic-buy-event-block-suffix>
      </div>

      <div
        slot="aside"
        class="min-h-[40rem] lg:h-full bg-neutral-50  border border-neutral-50 rounded-lg relative overflow-hidden"
      >
        ${this.id?V`<sonic-iframe
              cover
              class="absolute h-full w-full"
              src="/evenement/${this.id}?fullscreen_seatmap=true${this.customListSlug?`&sonic_custom_list_slug=${this.customListSlug}`:""}"
            ></sonic-iframe>`:Z}
      </div>
    </sonic-fullscreen-layout>`}renderCategories(t){return t.length?V` <div formdataprovider="selectCategory" class="grid grid-cols-2 gap-3 max-w-[40rem]">
      <sonic-button radio shape="block" variant="outline" name="category" value="all" align="left">
        <span> Tous </span>
        <sonic-badge slot="suffix">
          <sonic-price-range></sonic-price-range>
        </sonic-badge>
      </sonic-button>
      ${t.map((t=>{var e;return V`
          <sonic-button radio shape="block" variant="outline" name="category" value=${li(t.id)} align="left">
            <span> ${t.title} </span>
            ${(null==(e=t.prices)?void 0:e.length)?V`<div slot="suffix">
                    <sonic-price-range .prices=${t.prices}></sonic-price-range>
                  </div>`:Z}
          </sonic-button>
        </div>`}))}
    </div>`:Z}};xf.styles=[Qs],wf([ft({type:String})],xf.prototype,"slug",2),wf([ft({type:Array})],xf.prototype,"places_categories",2),wf([ft({type:Boolean})],xf.prototype,"hidePromoForm",2),wf([ft({type:Object})],xf.prototype,"multisession",2),wf([ft({type:String})],xf.prototype,"wording_link_title_sessions_all",2),wf([ft({type:String})],xf.prototype,"customListSlug",2),wf([ft({type:Array})],xf.prototype,"quotas",2),xf=wf([ut("sonic-seatmap")],xf);var _f=Object.defineProperty,kf=Object.getOwnPropertyDescriptor,$f=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?kf(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&_f(e,i,r),r};let Pf=class extends(Le(pt)){constructor(){super(...arguments),this.displayTitle=!1,this.displayText=!1,this.smallTitle=!1}render(){const t=this.pageText?this.removeEmptyParagraphs(this.pageText):"",e=vo`${fo(t||"")}`;return bo`<div>
      ${(this.pageTitle||this.pageSubtitle)&&this.displayTitle?bo`<div class="mb-4">
            ${this.pageTitle&&this.displayTitle?bo`<h1
                  class="font-headings font-weight-headings font-style-headings lg:leading-none ${this.smallTitle?"text-2xl lg:text-4xl":"text-4xl lg:text-5xl max-w-[30ch]"} "
                >
                  ${this.pageTitle}
                </h1>`:Z}
            ${this.pageSubtitle&&this.displayTitle?bo`<h1
                  class="font-headings font-weight-headings font-style-headings  mt-1 ${this.smallTitle?"text-lg lg:text-xl":"text-xl lg:text-2xl max-w-[30ch]"} "
                >
                  ${this.pageSubtitle}
                </h1>`:Z}
          </div>`:Z}

      <slot name="intro"></slot>
      ${e&&this.displayText?bo`<sonic-prose class="mb-10"><template>${e}</template></sonic-prose>`:Z}
      <slot></slot>
    </div>`}removeEmptyParagraphs(t){return t.replace(/<p><\/p>/g,"").replace(/<p>&nbsp;<\/p>/g,"").replace(/<p><br><\/p>/g,"")}};Pf.styles=[Qs],$f([ft({type:String})],Pf.prototype,"pageTitle",2),$f([ft({type:String})],Pf.prototype,"pageSubtitle",2),$f([ft({type:String})],Pf.prototype,"pageText",2),$f([ft({type:Boolean})],Pf.prototype,"displayTitle",2),$f([ft({type:Boolean})],Pf.prototype,"displayText",2),$f([ft({type:Boolean})],Pf.prototype,"smallTitle",2),Pf=$f([ut("sonic-page-layout")],Pf);var Sf=Object.defineProperty,Cf=Object.getOwnPropertyDescriptor,Af=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Cf(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Sf(e,i,r),r};let Of=class extends(Le(pt)){constructor(){super(...arguments),this.displayTitle=!1,this.smallTitle=!1,this.displayText=!1,this.isWaiting=!1,this._resizeController=new Hn(this,{})}render(){return this.isWaiting?Z:V`<sonic-page-layout
      pageTitle=${Ae("module_agenda_title")}
      pageText=${Ae("info_message_interface_billets_front")}
      ?smallTitle=${this.smallTitle}
      ?displayTitle=${this.displayTitle}
      ?displayText=${this.displayText}
    >
      <div class="mb-8">
        <sonic-form-event-filter
          formDataProvider="eventFrontFilters"
          filterCategory
          class="block max-w-[36rem] w-full z-10"
        ></sonic-form-event-filter>
      </div>

      ${this.clientWidth<768?V`
            <sonic-queue
              limit="10"
              lazyBoundsRatio="4"
              targetRequestDuration="2000"
              dataProvider="searchResults"
              dataFilterProvider="eventFrontFilters"
              dataProviderExpression="/shows?offset=$offset&limit=$limit&next=1"
              key="data"
              class="grid grid-cols-1 gap-4"
            >
              <template data-value="skeleton">
                <sonic-event-card skeleton></sonic-event-card>
                <sonic-event-card skeleton></sonic-event-card>
              </template>
              <template data-value="no-item">
                <sonic-no-result></sonic-no-result>
              </template>
              <template>
                <sonic-event-card link></sonic-event-card>
              </template>
            </sonic-queue>
          `:V`<sonic-queue
            limit="10"
            lazyBoundsRatio="4"
            targetRequestDuration="2000"
            dataProvider="searchResults"
            dataFilterProvider="eventFrontFilters"
            dataProviderExpression="/shows?offset=$offset&limit=$limit&next=1"
            key="data"
            class="grid grid-cols-2 lg:grid-cols-4 xl:grid-cols-5  gap-x-3 gap-y-4 lg:gap-4"
          >
            <template data-value="skeleton">
              <sonic-event-card-vertical skeleton></sonic-event-card-vertical>
              <sonic-event-card-vertical skeleton></sonic-event-card-vertical>
              <sonic-event-card-vertical skeleton></sonic-event-card-vertical>
              <sonic-event-card-vertical skeleton></sonic-event-card-vertical>
            </template>
            <template data-value="no-item">
              <sonic-no-result></sonic-no-result>
            </template>
            <template>
              <sonic-event-card-vertical></sonic-event-card-vertical>
            </template>
          </sonic-queue>`}
    </sonic-page-layout>`}};Of.styles=[Qs,l`
      :host {
        display: block;
      }
    `],Af([ft({type:Boolean})],Of.prototype,"displayTitle",2),Af([ft({type:Boolean})],Of.prototype,"smallTitle",2),Af([ft({type:Boolean})],Of.prototype,"displayText",2),Af([Us("sonicTicketApp.isWaiting"),vt()],Of.prototype,"isWaiting",2),Of=Af([ut("sonic-agenda")],Of);var Ef=Object.defineProperty,Tf=Object.getOwnPropertyDescriptor,Mf=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Tf(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Ef(e,i,r),r};let Df=class extends(Le(pt)){constructor(){super(...arguments),this.alwaysExpanded=!1,this.formType="buttons",this.displayTitle=!1,this.smallTitle=!1,this.displayText=!1,this.dataProviderExpression="sessions?next=1&limit=$limit&offset=$offset",this.observer=new IntersectionObserver((([t])=>t.target.classList.toggle("isSticky",t.intersectionRatio<1)),{threshold:[1]})}updated(t){this.formContainer?this.observer.observe(this.formContainer):this.observer.disconnect(),super.updated(t)}disconnectedCallback(){this.observer.disconnect(),super.disconnectedCallback()}willUpdate(t){var e,i;const s=new URLSearchParams;s.set("next","1");let o=[Ad.Location,Ad.Taxonomies,Ad.Picture,Ad.Location,Ad.Settings,Ad.Multisessions];if(this.alwaysExpanded){const t=[Ad.Prices,Ad.Quotas];o=[...o,...t]}o.forEach((t=>{s.append("features[]",t)})),null==(e=this.activity)||e.forEach((t=>{s.append("ids_activity[]",t)})),null==(i=this.category)||i.forEach((t=>{s.append("ids_category[]",t)})),this.dataProviderExpression=`sessions?limit=$limit&offset=$offset&${s.toString()}`,super.willUpdate(t)}render(){var t;return this.isWaiting?Z:V`
      <sonic-page-layout
        pageTitle=${Ae("module_store_title")}
        ?smallTitle=${this.smallTitle}
        ?displayTitle=${this.displayTitle}
        ?displayText=${this.displayText}
        class="@container block"
      >
        <div
          class="grid grid-cols-1 @4xl:grid-cols-[minmax(0,2fr)_minmax(0,1.2fr)] @5xl:grid-cols-[minmax(0,2fr)_minmax(0,1fr)] gap-8"
        >
          <div>
            <div
              id="formContainer"
              class=" flex gap-x-4 sticky top-[-1px] z-20
                py-2 mb-5 
                shadow-[0_0_0_2px_var(--sc-base)]
              "
            >
              <sonic-form-event-filter
                formDataProvider="eventFrontFilters"
                ?filterCategory=${!(null==(t=this.category)?void 0:t.length)}
                class="block max-w-[40rem] w-full z-10 min-w-0"
              ></sonic-form-event-filter>
              <sonic-app-link to="cart" class="@4xl:hidden" variant="default" shape="circle" size="lg" icon>
                <sonic-cart-icon dataProvider="cart/current" subDataProvider="data"></sonic-cart-icon>
              </sonic-app-link>
            </div>
            <div dataProvider="eventFrontFilters">
              <sonic-queue
                dataProviderExpression="${this.dataProviderExpression}"
                key="data"
                limit="8"
                targetRequestDuration="1000"
                dataProvider="searchResults"
                dataFilterProvider="eventFrontFilters"
              >
                <template data-value="no-item">
                  <sonic-no-result></sonic-no-result>
                </template>
                <template>
                  <sonic-event-store-item
                    showAllSessionsButton
                    formType="buttons"
                    class="mb-4 block"
                  ></sonic-event-store-item>
                </template>
              </sonic-queue>
            </div>
          </div>
          <div class="hidden @4xl:block pt-3">
            <sonic-cart-full
              subdataprovider="data"
              dataProvider="cart/current"
              lazyrendering
              layout="condensed"
              class="sticky top-3"
              maxHeight
            ></sonic-cart-full>
          </div>
        </div>
      </sonic-page-layout>
    `}};Df.styles=[Qs,l`
      .isSticky {
        background-color: var(--sc-base);
        box-shadow: 0 1.5rem 1rem -1rem rgb(0 0 0 / 0.07);
      }
    `],Mf([ft({type:Boolean})],Df.prototype,"alwaysExpanded",2),Mf([ft({type:String})],Df.prototype,"formType",2),Mf([ft({type:Boolean})],Df.prototype,"displayTitle",2),Mf([ft({type:Boolean})],Df.prototype,"smallTitle",2),Mf([ft({type:Boolean})],Df.prototype,"displayText",2),Mf([ft({type:Array})],Df.prototype,"activity",2),Mf([ft({type:Array})],Df.prototype,"category",2),Mf([Us("sonicTicketApp.isWaiting"),vt()],Df.prototype,"isWaiting",2),Mf([bt("#formContainer")],Df.prototype,"formContainer",2),Mf([vt()],Df.prototype,"dataProviderExpression",2),Df=Mf([ut("sonic-event-store")],Df);var Lf=Object.defineProperty,jf=Object.getOwnPropertyDescriptor,If=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?jf(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Lf(e,i,r),r};let zf=class extends(Le(pt)){constructor(){super(...arguments),this.size="md"}connectedCallback(){const t=this.querySelector("template");this.htmlContent=null==t?void 0:t.innerHTML.toString(),super.connectedCallback()}render(){return V`<div class="prose ${"sm"==this.size?" prose-sm prose-tight":""} max-w-[80ch]">
      ${_e(this.htmlContent)}
      <slot></slot>
    </div>`}};zf.styles=[Qs,l`
      :host {
        display: block;
      }
    `],If([ft()],zf.prototype,"size",2),If([ft()],zf.prototype,"htmlContent",2),zf=If([ut("sonic-prose")],zf);var Bf=Object.defineProperty,Rf=Object.getOwnPropertyDescriptor,Nf=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Rf(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Bf(e,i,r),r};let Ff=class extends(Le(pt)){render(){return this.id&&this.relatedEnabled?V`<div>
      ${Ae("related")?V` <h2 class="flex items-center text-2xl lg:text-4xl font-bold mt-12 lg:mt-16 mb-5 gap-3">
            <span>${Ae("related")}</span>
            <span class="h-[var(--sc-border-width)] grow bg-content "></span>
          </h2>`:Z}

      <sonic-list
        fetch
        lazyload
        dataprovider="shows/${this.id}/related?next=1&limit=4&view=essential"
        key="data"
        class="grid grid-cols-1 lg:grid-cols-4 gap-4"
      >
        <template data-value="skeleton">
          <sonic-event-card-cover skeleton></sonic-event-card-cover>
          <sonic-event-card-cover skeleton></sonic-event-card-cover>
          <sonic-event-card-cover skeleton></sonic-event-card-cover>
          <sonic-event-card-cover skeleton></sonic-event-card-cover>
        </template>
        <template>
          <sonic-event-card-cover></sonic-event-card-cover>
        </template>
      </sonic-list>
    </div> `:Z}};Ff.styles=[Qs,l`
      :host {
        display: block;
      }
    `],Nf([Us("settings.modules.related_events.access"),vt()],Ff.prototype,"relatedEnabled",2),Ff=Nf([ut("sonic-related")],Ff);var qf=Object.defineProperty,Hf=Object.getOwnPropertyDescriptor,Uf=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Hf(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&qf(e,i,r),r};let Vf=class extends(Le(pt)){constructor(){super(...arguments),this.duration=0,this.settings={},this.durationOutput=""}willUpdate(t){var e;if(t.has("settings")||t.has("duration")){const t=(null==(e=this.settings)?void 0:e.duration)||this.duration||0;this.durationOutput=this.cleanDurationOutput(t)}super.willUpdate(t)}cleanDurationOutput(t){if(!t)return"";let e="";const i="fr"===document.documentElement.lang.split("-")[0],s=i?"h":":";if(t>=60){const i=t%60;e=`${Math.floor(t/60)}${s}${i<10?`0${i}`:i}`}else e=i?`${t<10?`0${t}`:t}min`:`0${s}${t<10?`0${t}`:t}`;return e}render(){return this.durationOutput?V`<div class="flex gap-[.35em] items-center">
      <sonic-icon name="clock" library="custom" class="  text-center"></sonic-icon>
      <span> ${Ae("duree")} : ${this.durationOutput} </span>
    </div>`:Z}};Vf.styles=[Qs],Uf([ft({type:Number})],Vf.prototype,"duration",2),Uf([ft({type:Object})],Vf.prototype,"settings",2),Uf([vt()],Vf.prototype,"durationOutput",2),Vf=Uf([ut("sonic-event-duration")],Vf);var Wf=Object.defineProperty,Zf=Object.getOwnPropertyDescriptor,Yf=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Zf(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Wf(e,i,r),r};let Gf=class extends(Le(pt)){constructor(){super(...arguments),this.pass_culture={},this.isDuotone=!1}firstUpdated(){this.checkIfDuotone()}checkIfDuotone(){var t;const e=null==(t=this.shadowRoot)?void 0:t.getElementById("contextDuotoneChecker");if(e){const t=window.getComputedStyle(e).backgroundColor,i=window.getComputedStyle(e).color;this.isDuotone=t===i}}render(){var t;return(null==(t=this.pass_culture)?void 0:t.url)?V`
      <div id="contextDuotoneChecker" class="bg-success text-danger hidden"></div>
      <sonic-link
        data-aria-label=${Ae("book_with_pass_culture")}
        href=${this.pass_culture.url}
        target="_blank"
        class="inline-flex gap-[.35em] items-center group"
      >
        <div
          class="rounded w-[2em] h-[2em] flex items-center justify-center border transition-border border-solid transition duration-100 ${this.isDuotone?"border-content bg-content [&_*]:fill-neutral-0":"bg-gradient-to-r from-[#e10057] to-[#4f0090] border-neutral-100 group-hover:border-[#4f0090] "}"
        >
          ${((t="#fff")=>V`<svg width="28" height="28" fill="none" xmlns="http://www.w3.org/2000/svg">
    <path
      d="M14 1c-.13 0-.24.1-.24.23v1.8c0 .13.1.24.23.24H14c.13 0 .24-.1.24-.24v-1.8c0-.13-.1-.23-.23-.23ZM10.9 1.9a.24.24 0 0 0-.18.3l1.92 7.45c.03.13.16.2.29.17.13-.03.2-.16.17-.28l-1.92-7.47a.24.24 0 0 0-.28-.17ZM7.61 2.37v.01a.23.23 0 0 0-.1.32l.69 1.24c.06.11.2.15.31.1l.01-.01c.12-.07.16-.2.1-.32l-.69-1.24a.23.23 0 0 0-.32-.1ZM17 2.36h-.01a.24.24 0 0 0-.29.17l-1.8 7c-.03.13.04.26.17.3.13.03.26-.05.3-.18l1.8-7a.24.24 0 0 0-.18-.3ZM20.27 2.6a.24.24 0 0 0-.33.1l-1.7 3.1a.24.24 0 1 0 .42.23l1.7-3.1a.24.24 0 0 0-.1-.32ZM23.22 4.19a.23.23 0 0 0-.34 0l-1.26 1.35c-.1.1-.09.24 0 .33h.01c.1.1.25.1.33 0l1.27-1.35a.23.23 0 0 0-.01-.33ZM8.77 4.49a.24.24 0 0 0-.1.32l1.67 3.03c.06.11.2.15.32.1v-.01c.12-.06.16-.2.1-.32L9.09 4.58a.24.24 0 0 0-.32-.1ZM14 4.46c-.13 0-.24.1-.24.23v4.9c0 .14.1.24.24.24.13 0 .24-.1.24-.23V4.7c0-.14-.1-.24-.24-.24ZM5.8 5.27c-.09.1-.1.24 0 .34l4.32 4.61c.1.1.24.1.34.01.1-.1.1-.24.01-.34L6.14 5.3a.24.24 0 0 0-.33-.02ZM21.17 6.37a.24.24 0 0 0-.34 0L18.6 8.75c-.09.1-.08.24.01.33.1.1.25.09.34 0l2.22-2.36a.24.24 0 0 0-.01-.34ZM17.95 6.83a.24.24 0 0 0-.33.09l-1.4 2.56a.24.24 0 0 0 .42.23l1.4-2.56a.24.24 0 0 0-.1-.32ZM24.27 7.2l-6.02 3.82a.24.24 0 0 0 .26.4l6.02-3.82a.24.24 0 0 0-.26-.4ZM7.84 9.8 4.03 7.4a.24.24 0 0 0-.26.4l3.82 2.42c.1.07.25.04.32-.07a.24.24 0 0 0-.07-.33ZM11 8.52h-.02a.23.23 0 0 0-.09.32l.48.87c.06.11.2.16.32.1V9.8c.12-.06.16-.2.1-.32l-.48-.87a.23.23 0 0 0-.31-.09ZM18.22 9.52V9.5a.23.23 0 0 0-.33.01l-.37.39a.23.23 0 0 0 .01.32l.02.01c.09.09.23.09.32 0l.36-.39a.23.23 0 0 0 0-.32ZM3.94 10.48l-2-.65a.23.23 0 0 0-.15.45l2 .65c.12.04.26-.03.3-.15a.23.23 0 0 0-.15-.3ZM25.6 9.98l-1.67.54a.23.23 0 0 0 .15.45l1.66-.54a.23.23 0 1 0-.15-.45ZM9.76 11.03l-1.04-.66a.23.23 0 0 0-.26.4l1.04.66c.1.07.25.03.32-.07v-.01a.23.23 0 0 0-.06-.32ZM9.67 12.34l-4.65-1.51a.24.24 0 0 0-.15.45l4.65 1.51c.13.05.26-.02.3-.15a.24.24 0 0 0-.15-.3ZM22.66 10.93l-4.33 1.41a.24.24 0 1 0 .15.45l4.33-1.4c.13-.04.2-.18.15-.3a.24.24 0 0 0-.3-.16ZM5.4 13.22l-4.15-.26a.24.24 0 0 0-.03.48l4.16.26c.13 0 .24-.1.25-.22v-.01a.24.24 0 0 0-.22-.25ZM26.75 12.96l-4.73.3a.24.24 0 0 0 .03.48l4.73-.3c.13-.01.23-.13.22-.26a.24.24 0 0 0-.25-.22ZM9.61 13.48l-3.14-.2a.23.23 0 0 0-.03.48l3.14.2c.13 0 .24-.09.25-.22a.23.23 0 0 0-.22-.26ZM20.99 13.32l-2.6.16a.23.23 0 0 0-.22.25v.01c0 .13.12.23.25.22l2.6-.16c.13-.01.22-.12.22-.25v-.01a.23.23 0 0 0-.25-.22ZM9.55 14.6l-7.14 1.37a.24.24 0 0 0 .09.47l7.14-1.37a.24.24 0 1 0-.09-.47ZM25.95 16.04l-7.5-1.43a.24.24 0 1 0-.09.47l7.5 1.42c.13.03.25-.06.28-.18a.24.24 0 0 0-.19-.28ZM9.5 15.85l-1.01.48a.23.23 0 0 0-.11.3v.02c.06.12.2.17.31.11l1.01-.48c.12-.05.17-.19.11-.3v-.02a.23.23 0 0 0-.31-.1ZM23.05 18l-4.54-2.14a.24.24 0 0 0-.32.1v.01c-.06.12 0 .26.11.32l4.54 2.13c.12.06.26 0 .32-.11a.24.24 0 0 0-.11-.32ZM7.53 16.78l-2.58 1.21a.24.24 0 1 0 .2.43l2.59-1.21c.11-.06.16-.2.1-.32a.24.24 0 0 0-.3-.11ZM9.71 17.24 4.79 21.3a.24.24 0 1 0 .3.37l4.92-4.07c.1-.09.12-.24.04-.34a.24.24 0 0 0-.34-.03ZM23.37 21.44l-5.08-4.2a.24.24 0 0 0-.3.37l5.07 4.2c.1.08.25.07.34-.04a.24.24 0 0 0-.03-.33ZM11.03 18.1v-.01a.24.24 0 0 0-.34.05l-2.56 3.53c-.08.11-.05.26.05.33.11.08.26.06.33-.05l2.57-3.53a.24.24 0 0 0-.05-.33ZM16.98 18.1h-.01a.23.23 0 0 0-.05.32l1.27 1.75c.08.1.22.13.33.05.1-.08.13-.23.05-.33l-1.27-1.75a.23.23 0 0 0-.32-.05ZM12.35 18.18h-.01a.23.23 0 0 0-.3.13l-1.02 2.57c-.05.12.01.26.13.3.13.05.26 0 .31-.13l1.02-2.56a.23.23 0 0 0-.13-.3ZM13.48 18.17a.24.24 0 0 0-.27.2l-1.06 8.36c-.02.13.08.25.2.27h.01c.13.01.25-.08.26-.2l1.06-8.37a.24.24 0 0 0-.2-.26ZM14.53 18.17a.24.24 0 0 0-.21.26l.52 4.14c.02.13.14.22.27.2a.24.24 0 0 0 .2-.26l-.52-4.14a.24.24 0 0 0-.26-.2ZM15.66 18.18h-.01a.23.23 0 0 0-.13.3l.32.8c.04.12.18.17.3.13a.23.23 0 0 0 .14-.3l-.32-.8a.23.23 0 0 0-.3-.13ZM3.98 18.45l-1.63.77a.23.23 0 0 0-.11.31v.01c.05.12.2.17.31.11l1.64-.77c.11-.06.16-.2.1-.31v-.01a.23.23 0 0 0-.3-.11ZM25.77 19.27l-1.67-.78a.23.23 0 0 0-.3.11h-.01c-.06.12 0 .26.11.32l1.66.79c.12.05.26 0 .32-.12a.23.23 0 0 0-.11-.32ZM16.4 20.08a.24.24 0 0 0-.13.3l1.28 3.21c.04.13.18.18.3.14a.24.24 0 0 0 .14-.31L16.7 20.2a.24.24 0 0 0-.3-.13ZM19.1 21h-.01a.24.24 0 0 0-.05.34l1.77 2.44c.08.1.22.12.33.05.1-.08.13-.23.05-.33l-1.77-2.44a.24.24 0 0 0-.33-.06ZM10.87 21.92a.24.24 0 0 0-.31.13l-1.48 3.73c-.05.12.01.26.13.3.13.06.26 0 .31-.13L11 22.22a.24.24 0 0 0-.13-.3ZM7.78 22.57h-.01a.23.23 0 0 0-.33.05L6.3 24.19c-.07.1-.05.25.06.32.1.09.25.06.33-.04l1.14-1.57a.23.23 0 0 0-.05-.33ZM15.2 23.44h-.01a.23.23 0 0 0-.2.26l.3 2.42c.02.13.14.22.27.2a.23.23 0 0 0 .2-.26l-.3-2.42a.23.23 0 0 0-.27-.2ZM18.16 24.49h-.01a.23.23 0 0 0-.13.3l.46 1.17c.05.12.18.18.3.13h.01a.23.23 0 0 0 .13-.3l-.46-1.17a.23.23 0 0 0-.3-.13Z"
      fill="${t}"
    />
    <path
      d="M14 1c-.13 0-.24.1-.24.23v1.8c0 .13.1.24.23.24H14c.13 0 .24-.1.24-.24v-1.8c0-.13-.1-.23-.23-.23ZM10.9 1.9a.24.24 0 0 0-.18.3l1.92 7.45c.03.13.16.2.29.17.13-.03.2-.16.17-.28l-1.92-7.47a.24.24 0 0 0-.28-.17ZM7.61 2.37v.01a.23.23 0 0 0-.1.32l.69 1.24c.06.11.2.15.31.1l.01-.01c.12-.07.16-.2.1-.32l-.69-1.24a.23.23 0 0 0-.32-.1ZM17 2.36h-.01a.24.24 0 0 0-.29.17l-1.8 7c-.03.13.04.26.17.3.13.03.26-.05.3-.18l1.8-7a.24.24 0 0 0-.18-.3ZM20.27 2.6a.24.24 0 0 0-.33.1l-1.7 3.1a.24.24 0 1 0 .42.23l1.7-3.1a.24.24 0 0 0-.1-.32ZM23.22 4.19a.23.23 0 0 0-.34 0l-1.26 1.35c-.1.1-.09.24 0 .33h.01c.1.1.25.1.33 0l1.27-1.35a.23.23 0 0 0-.01-.33ZM8.77 4.49a.24.24 0 0 0-.1.32l1.67 3.03c.06.11.2.15.32.1v-.01c.12-.06.16-.2.1-.32L9.09 4.58a.24.24 0 0 0-.32-.1ZM14 4.46c-.13 0-.24.1-.24.23v4.9c0 .14.1.24.24.24.13 0 .24-.1.24-.23V4.7c0-.14-.1-.24-.24-.24ZM5.8 5.27c-.09.1-.1.24 0 .34l4.32 4.61c.1.1.24.1.34.01.1-.1.1-.24.01-.34L6.14 5.3a.24.24 0 0 0-.33-.02ZM21.17 6.37a.24.24 0 0 0-.34 0L18.6 8.75c-.09.1-.08.24.01.33.1.1.25.09.34 0l2.22-2.36a.24.24 0 0 0-.01-.34ZM17.95 6.83a.24.24 0 0 0-.33.09l-1.4 2.56a.24.24 0 0 0 .42.23l1.4-2.56a.24.24 0 0 0-.1-.32ZM24.27 7.2l-6.02 3.82a.24.24 0 0 0 .26.4l6.02-3.82a.24.24 0 0 0-.26-.4ZM7.84 9.8 4.03 7.4a.24.24 0 0 0-.26.4l3.82 2.42c.1.07.25.04.32-.07a.24.24 0 0 0-.07-.33ZM11 8.52h-.02a.23.23 0 0 0-.09.32l.48.87c.06.11.2.16.32.1V9.8c.12-.06.16-.2.1-.32l-.48-.87a.23.23 0 0 0-.31-.09ZM18.22 9.52V9.5a.23.23 0 0 0-.33.01l-.37.39a.23.23 0 0 0 .01.32l.02.01c.09.09.23.09.32 0l.36-.39a.23.23 0 0 0 0-.32ZM3.94 10.48l-2-.65a.23.23 0 0 0-.15.45l2 .65c.12.04.26-.03.3-.15a.23.23 0 0 0-.15-.3ZM25.6 9.98l-1.67.54a.23.23 0 0 0 .15.45l1.66-.54a.23.23 0 1 0-.15-.45ZM9.76 11.03l-1.04-.66a.23.23 0 0 0-.26.4l1.04.66c.1.07.25.03.32-.07v-.01a.23.23 0 0 0-.06-.32ZM9.67 12.34l-4.65-1.51a.24.24 0 0 0-.15.45l4.65 1.51c.13.05.26-.02.3-.15a.24.24 0 0 0-.15-.3ZM22.66 10.93l-4.33 1.41a.24.24 0 1 0 .15.45l4.33-1.4c.13-.04.2-.18.15-.3a.24.24 0 0 0-.3-.16ZM5.4 13.22l-4.15-.26a.24.24 0 0 0-.03.48l4.16.26c.13 0 .24-.1.25-.22v-.01a.24.24 0 0 0-.22-.25ZM26.75 12.96l-4.73.3a.24.24 0 0 0 .03.48l4.73-.3c.13-.01.23-.13.22-.26a.24.24 0 0 0-.25-.22ZM9.61 13.48l-3.14-.2a.23.23 0 0 0-.03.48l3.14.2c.13 0 .24-.09.25-.22a.23.23 0 0 0-.22-.26ZM20.99 13.32l-2.6.16a.23.23 0 0 0-.22.25v.01c0 .13.12.23.25.22l2.6-.16c.13-.01.22-.12.22-.25v-.01a.23.23 0 0 0-.25-.22ZM9.55 14.6l-7.14 1.37a.24.24 0 0 0 .09.47l7.14-1.37a.24.24 0 1 0-.09-.47ZM25.95 16.04l-7.5-1.43a.24.24 0 1 0-.09.47l7.5 1.42c.13.03.25-.06.28-.18a.24.24 0 0 0-.19-.28ZM9.5 15.85l-1.01.48a.23.23 0 0 0-.11.3v.02c.06.12.2.17.31.11l1.01-.48c.12-.05.17-.19.11-.3v-.02a.23.23 0 0 0-.31-.1ZM23.05 18l-4.54-2.14a.24.24 0 0 0-.32.1v.01c-.06.12 0 .26.11.32l4.54 2.13c.12.06.26 0 .32-.11a.24.24 0 0 0-.11-.32ZM7.53 16.78l-2.58 1.21a.24.24 0 1 0 .2.43l2.59-1.21c.11-.06.16-.2.1-.32a.24.24 0 0 0-.3-.11ZM9.71 17.24 4.79 21.3a.24.24 0 1 0 .3.37l4.92-4.07c.1-.09.12-.24.04-.34a.24.24 0 0 0-.34-.03ZM23.37 21.44l-5.08-4.2a.24.24 0 0 0-.3.37l5.07 4.2c.1.08.25.07.34-.04a.24.24 0 0 0-.03-.33ZM11.03 18.1v-.01a.24.24 0 0 0-.34.05l-2.56 3.53c-.08.11-.05.26.05.33.11.08.26.06.33-.05l2.57-3.53a.24.24 0 0 0-.05-.33ZM16.98 18.1h-.01a.23.23 0 0 0-.05.32l1.27 1.75c.08.1.22.13.33.05.1-.08.13-.23.05-.33l-1.27-1.75a.23.23 0 0 0-.32-.05ZM12.35 18.18h-.01a.23.23 0 0 0-.3.13l-1.02 2.57c-.05.12.01.26.13.3.13.05.26 0 .31-.13l1.02-2.56a.23.23 0 0 0-.13-.3ZM13.48 18.17a.24.24 0 0 0-.27.2l-1.06 8.36c-.02.13.08.25.2.27h.01c.13.01.25-.08.26-.2l1.06-8.37a.24.24 0 0 0-.2-.26ZM14.53 18.17a.24.24 0 0 0-.21.26l.52 4.14c.02.13.14.22.27.2a.24.24 0 0 0 .2-.26l-.52-4.14a.24.24 0 0 0-.26-.2ZM15.66 18.18h-.01a.23.23 0 0 0-.13.3l.32.8c.04.12.18.17.3.13a.23.23 0 0 0 .14-.3l-.32-.8a.23.23 0 0 0-.3-.13ZM3.98 18.45l-1.63.77a.23.23 0 0 0-.11.31v.01c.05.12.2.17.31.11l1.64-.77c.11-.06.16-.2.1-.31v-.01a.23.23 0 0 0-.3-.11ZM25.77 19.27l-1.67-.78a.23.23 0 0 0-.3.11h-.01c-.06.12 0 .26.11.32l1.66.79c.12.05.26 0 .32-.12a.23.23 0 0 0-.11-.32ZM16.4 20.08a.24.24 0 0 0-.13.3l1.28 3.21c.04.13.18.18.3.14a.24.24 0 0 0 .14-.31L16.7 20.2a.24.24 0 0 0-.3-.13ZM19.1 21h-.01a.24.24 0 0 0-.05.34l1.77 2.44c.08.1.22.12.33.05.1-.08.13-.23.05-.33l-1.77-2.44a.24.24 0 0 0-.33-.06ZM10.87 21.92a.24.24 0 0 0-.31.13l-1.48 3.73c-.05.12.01.26.13.3.13.06.26 0 .31-.13L11 22.22a.24.24 0 0 0-.13-.3ZM7.78 22.57h-.01a.23.23 0 0 0-.33.05L6.3 24.19c-.07.1-.05.25.06.32.1.09.25.06.33-.04l1.14-1.57a.23.23 0 0 0-.05-.33ZM15.2 23.44h-.01a.23.23 0 0 0-.2.26l.3 2.42c.02.13.14.22.27.2a.23.23 0 0 0 .2-.26l-.3-2.42a.23.23 0 0 0-.27-.2ZM18.16 24.49h-.01a.23.23 0 0 0-.13.3l.46 1.17c.05.12.18.18.3.13h.01a.23.23 0 0 0 .13-.3l-.46-1.17a.23.23 0 0 0-.3-.13Z"
      stroke="${t}"
      stroke-width=".25"
    />
  </svg>`)()}
        </div>
        <span class="font-bold ">${Ae("book_with_pass_culture")}</span></sonic-link
      >
    `:Z}};Gf.styles=[Qs],Yf([ft({type:Object})],Gf.prototype,"pass_culture",2),Yf([vt()],Gf.prototype,"isDuotone",2),Gf=Yf([ut("sonic-passculture-link")],Gf);var Kf=Object.defineProperty,Qf=Object.getOwnPropertyDescriptor,Xf=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Qf(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Kf(e,i,r),r};let Jf=class extends(Le(pt)){constructor(){super(...arguments),this.wording_en_vente_a_partir_du="",this.size="md",this.variant="ghost",this.sale_start_date=null}render(){return this.sale_start_date?V`
      <sonic-badge type="info" size="${this.size}" variant="${this.variant}">
        <sonic-icon library="custom" name="circle-exclamation" slot="prefix"></sonic-icon>
        <div>
          <span class="mr-[.25em]">${this.wording_en_vente_a_partir_du}</span>
          <sonic-date date=${this.sale_start_date} noAutoFill weekday="hidden" day="2-digit" month="2-digit"></sonic-date>
        </div>
      </sonic-badge>
    `:Z}};Jf.styles=[Qs],Xf([ft({type:String})],Jf.prototype,"wording_en_vente_a_partir_du",2),Xf([ft({type:String})],Jf.prototype,"size",2),Xf([ft({type:String})],Jf.prototype,"variant",2),Xf([ft({type:Number})],Jf.prototype,"sale_start_date",2),Jf=Xf([ut("sonic-event-scheduled-status")],Jf);const tv="formType";var ev=Object.defineProperty,iv=Object.getOwnPropertyDescriptor,sv=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?iv(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&ev(e,i,r),r};let ov=class extends(Wo(Le(pt))){constructor(){super(...arguments),this.expanded=!1,this.alwaysExpanded=!1,this.onlyHours=!1,this.event_id=0,this._metadata_={},this.formType="select",this.formSize="sm",this.start_date="",this.edito={},this.site_link=""}connectedCallback(){this.alwaysExpanded&&(this.expanded=!0),super.connectedCallback()}willUpdate(t){var e;if(t.has("event_id")&&!this.expanded){const t=new URLSearchParams(window.location.search).get("session");if(t){const e=t.split(","),i=this.event_id.toString();e.includes(i)&&(this.expanded=!0)}}t.has("_metadata_")&&!this.alwaysExpanded&&(this.alwaysExpanded=!!(null==(e=this._metadata_)?void 0:e.onlyChild)),super.willUpdate(t)}toggleExpanded(){this.alwaysExpanded||(this.expanded=!this.expanded)}render(){var t,e,i;let s;if(this.start_date){const t=new Date(1e3*parseInt(this.start_date)),e=t.getMinutes();s=t.getHours()+":"+(e<10?"0":"")+e}return V`
      <div class="@container">
        <div
          @click="${this.toggleExpanded}"
          class="${this.alwaysExpanded?"cursor-default":"cursor-pointer"} p-5 hover:border-neutral-200  w-full rounded-lg border border-neutral-100 transition duration-100 flex flex-col   ${this.expanded?"shadow-lg":""}"
        >
          <slot name="prefix"></slot>
          <div class="flex justify-between items-center gap-2  ">
            <div class=" grid grid-cols-1 flex-grow gap-y-1  text-left">
              ${this.onlyHours&&s?V`<span class="text-lg leading-tighter lg:text-xl  font-bold">${s}</span>`:V`
                    <sonic-date noshadowdom designMode class="font-bold capitalize text-lg leading-tighter lg:text-xl ">
                      <template data-value="to">
                        <sonic-icon name="chevron-right" class="mx-2" library="custom"></sonic-icon>
                      </template>
                      <template data-value="hour">
                        <span class="font-normal text-[.8em]"></span>
                      </template>
                      <template data-value="minute">
                        <span class="font-normal text-[.8em]"></span>
                      </template>
                      <template data-value="literal">
                        <span class="font-normal text-[.8em]"></span>
                      </template>
                    </sonic-date>
                  `}
              <div class="flex flex-wrap items-center gap-x-2 gap-y-[0.125em] leading-none">
                <sonic-event-location-hall class="text-xs"></sonic-event-location-hall>
                <sonic-event-additional-status
                  fetch
                  dataProvider="events/${this.event_id}/status"
                  visibility="${this.isGuichet?"all":"public"}"
                  size="xs"
                  class="flex flex-wrap gap-x-3"
                ></sonic-event-additional-status>

                <sonic-event-scheduled-status size="xs"></sonic-event-scheduled-status>
                <sonic-event-taxonomies size="xs" class="contents"></sonic-event-taxonomies>
                <sonic-event-duration class="text-xs text-neutral-500"></sonic-event-duration>
              </div>
            </div>
            ${this.alwaysExpanded?Z:V`
                  <sonic-button
                    ?active=${this.expanded}
                    ?data-aria-expanded=${this.expanded}
                    data-aria-controls="card-session-${this.event_id}"
                    data-aria-label=${this.expanded?"Fermer":"Ouvrir"}
                    icon
                    shape="circle"
                    variant="ghost"
                    class="hidden @md:block -my-1 -mr-2"
                    noAutoFill
                  >
                    <sonic-icon name="chevron-up" swap="on" library="custom"></sonic-icon>
                    <sonic-icon name="chevron-down" swap="off" library="custom"></sonic-icon>
                  </sonic-button>
                `}
          </div>
          <div
            class="grid grid-cols-1 transition-all duration-[400ms]  ${this.expanded||this.alwaysExpanded?"grid-rows-[1fr]":"grid-rows-[0fr]"}"
            id="card-session-${this.event_id}"
          >
            <div class="${this.alwaysExpanded?"":"overflow-hidden"}">
              <div class="py-3">
                ${(null==(t=this.edito)?void 0:t.body)?V`<div class="prose-sm mb-5 prose-tight">${_e(null==(e=this.edito)?void 0:e.body)}</div>`:Z}
                ${this.site_link?V` <sonic-event-site-link
                      class="block text-sm mb-5 ${(null==(i=this.edito)?void 0:i.body)?"-mt-2":""}"
                    ></sonic-event-site-link>`:Z}
                <sonic-fetch
                  lazyload
                  loader="inline"
                  dataProvider="events/${this.id}"
                  @click=${t=>t.stopPropagation()}
                >
                  <sonic-buy-event-block
                    size=${this.formSize}
                    display=${this.formType}
                    class="cursor-default "
                  ></sonic-buy-event-block>
                </sonic-fetch>
              </div>
            </div>
          </div>

          ${this.expanded||this.alwaysExpanded?V``:Z}
        </div>
      </div>
    `}};ov.styles=[Qs],sv([ft({type:Boolean})],ov.prototype,"expanded",2),sv([ft({type:Boolean})],ov.prototype,"alwaysExpanded",2),sv([ft({type:Boolean})],ov.prototype,"onlyHours",2),sv([ft({type:Number})],ov.prototype,"event_id",2),sv([ft({type:Object})],ov.prototype,"_metadata_",2),sv([Kd({context:tv,subscribe:!0}),ft({type:String})],ov.prototype,"formType",2),sv([ft({type:String})],ov.prototype,"formSize",2),sv([ft({type:String})],ov.prototype,"start_date",2),sv([ft({type:Object})],ov.prototype,"edito",2),sv([ft({type:String})],ov.prototype,"site_link",2),ov=sv([ut("sonic-event-session-card")],ov);
/*! name: vanilla-calendar-pro | url: https://github.com/uvarov-frontend/vanilla-calendar-pro */
var rv=Object.defineProperty,nv=Object.getOwnPropertySymbols,av=Object.prototype.hasOwnProperty,lv=Object.prototype.propertyIsEnumerable,cv=(t,e,i)=>e in t?rv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,dv=(t,e)=>{for(var i in e||(e={}))av.call(e,i)&&cv(t,i,e[i]);if(nv)for(var i of nv(e))lv.call(e,i)&&cv(t,i,e[i]);return t},pv=(t,e,i)=>(cv(t,"symbol"!=typeof e?e+"":e,i),i);const hv={calendar:"vanilla-calendar",calendarDefault:"vanilla-calendar_default",calendarMultiple:"vanilla-calendar_multiple",calendarMonth:"vanilla-calendar_month",calendarYear:"vanilla-calendar_year",calendarHidden:"vanilla-calendar_hidden",calendarToInput:"vanilla-calendar_to-input",calendarToInputTop:"vanilla-calendar_to-input_top",calendarToInputBottom:"vanilla-calendar_to-input_bottom",controls:"vanilla-calendar-controls",grid:"vanilla-calendar-grid",gridDisabled:"vanilla-calendar-grid_disabled",column:"vanilla-calendar-column",columnMonth:"vanilla-calendar-column_month",columnYear:"vanilla-calendar-column_year",header:"vanilla-calendar-header",headerContent:"vanilla-calendar-header__content",month:"vanilla-calendar-month",monthDisabled:"vanilla-calendar-month_disabled",year:"vanilla-calendar-year",yearDisabled:"vanilla-calendar-year_disabled",arrow:"vanilla-calendar-arrow",arrowPrev:"vanilla-calendar-arrow_prev",arrowNext:"vanilla-calendar-arrow_next",wrapper:"vanilla-calendar-wrapper",content:"vanilla-calendar-content",week:"vanilla-calendar-week",weekDay:"vanilla-calendar-week__day",weekDayWeekend:"vanilla-calendar-week__day_weekend",days:"vanilla-calendar-days",daysSelecting:"vanilla-calendar-days_selecting",months:"vanilla-calendar-months",monthsSelecting:"vanilla-calendar-months_selecting",monthsMonth:"vanilla-calendar-months__month",monthsMonthSelected:"vanilla-calendar-months__month_selected",monthsMonthDisabled:"vanilla-calendar-months__month_disabled",years:"vanilla-calendar-years",yearsSelecting:"vanilla-calendar-years_selecting",yearsYear:"vanilla-calendar-years__year",yearsYearSelected:"vanilla-calendar-years__year_selected",yearsYearDisabled:"vanilla-calendar-years__year_disabled",time:"vanilla-calendar-time",timeContent:"vanilla-calendar-time__content",timeHours:"vanilla-calendar-time__hours",timeMinutes:"vanilla-calendar-time__minutes",timeKeeping:"vanilla-calendar-time__keeping",timeRanges:"vanilla-calendar-time__ranges",timeRange:"vanilla-calendar-time__range",day:"vanilla-calendar-day",dayHoverFirst:"vanilla-calendar-day_hover-first",dayHoverLast:"vanilla-calendar-day_hover-last",dayHoverIntermediate:"vanilla-calendar-day_hover-intermediate",daySelectedFirst:"vanilla-calendar-day_selected-first",daySelectedLast:"vanilla-calendar-day_selected-last",daySelectedIntermediate:"vanilla-calendar-day_selected-intermediate",dayPopup:"vanilla-calendar-day__popup",dayBtn:"vanilla-calendar-day__btn",dayBtnPrev:"vanilla-calendar-day__btn_prev",dayBtnNext:"vanilla-calendar-day__btn_next",dayBtnToday:"vanilla-calendar-day__btn_today",dayBtnSelected:"vanilla-calendar-day__btn_selected",dayBtnHover:"vanilla-calendar-day__btn_hover",dayBtnDisabled:"vanilla-calendar-day__btn_disabled",dayBtnWeekend:"vanilla-calendar-day__btn_weekend",dayBtnHoliday:"vanilla-calendar-day__btn_holiday",weekNumbers:"vanilla-calendar-week-numbers",weekNumbersTitle:"vanilla-calendar-week-numbers__title",weekNumbersContent:"vanilla-calendar-week-numbers__content",weekNumber:"vanilla-calendar-week-number",isFocus:"vanilla-calendar-is-focus"},uv=t=>`<div class="${t.controls}"><#ArrowPrev /><#ArrowNext /></div><div class="${t.grid}"><#Multiple><div class="${t.column}"><div class="${t.header}"><div class="${t.headerContent}"><#Month /><#Year /></div></div><div class="${t.wrapper}"><#WeekNumbers /><div class="${t.content}"><#Week /><#Days /></div></div></div><#/Multiple></div><#ControlTime />`,mv=t=>`<div class="${t.header}"><div class="${t.headerContent}"><#Month /><#Year /></div></div><div class="${t.wrapper}"><div class="${t.content}"><#Months /></div></div>`,gv=t=>`<div class="${t.header}"><#ArrowPrev /><div class="${t.headerContent}"><#Month /><#Year /></div><#ArrowNext /></div><div class="${t.wrapper}"><div class="${t.content}"><#Years /></div></div>`;class fv{constructor(){var t;pv(this,"isInit",!1),pv(this,"input",!1),pv(this,"type","default"),pv(this,"months",2),pv(this,"jumpMonths",1),pv(this,"date",{min:"1970-01-01",max:"2470-12-31",today:new Date}),pv(this,"settings",{lang:"en",iso8601:!0,range:{min:this.date.min,max:this.date.max,disablePast:!1,disableGaps:!1,disableAllDays:!1,disableWeekday:void 0,disabled:void 0,enabled:void 0},selection:{day:"single",month:!0,year:!0,time:!1,controlTime:"all",stepHours:1,stepMinutes:1,cancelableDay:!0},selected:{dates:void 0,month:void 0,year:void 0,holidays:void 0,time:void 0},visibility:{theme:"system",themeDetect:"html[data-theme]",monthShort:!0,weekNumbers:!1,weekend:!0,today:!0,disabled:!1,daysOutside:!0,positionToInput:"left"}}),pv(this,"locale",{months:[],weekday:[]}),pv(this,"actions",{clickDay:null,clickWeekNumber:null,clickMonth:null,clickYear:null,clickArrow:null,changeTime:null,changeToInput:null,getDays:null,getMonths:null,getYears:null,initCalendar:null,updateCalendar:null,destroyCalendar:null,showCalendar:null,hideCalendar:null}),pv(this,"popups",{}),pv(this,"CSSClasses",dv({},hv)),pv(this,"DOMTemplates",{default:(t=this.CSSClasses,`<div class="${t.header}"><#ArrowPrev /><div class="${t.headerContent}"><#Month /><#Year /></div><#ArrowNext /></div><div class="${t.wrapper}"><#WeekNumbers /><div class="${t.content}"><#Week /><#Days /></div></div><#ControlTime />`),multiple:uv(this.CSSClasses),month:mv(this.CSSClasses),year:gv(this.CSSClasses)}),pv(this,"HTMLElement"),pv(this,"HTMLOriginalElement"),pv(this,"HTMLInputElement"),pv(this,"rangeMin"),pv(this,"rangeMax"),pv(this,"rangeDisabled"),pv(this,"rangeEnabled"),pv(this,"selectedDates"),pv(this,"selectedHolidays"),pv(this,"selectedMonth"),pv(this,"selectedYear"),pv(this,"selectedHours"),pv(this,"selectedMinutes"),pv(this,"selectedKeeping"),pv(this,"selectedTime"),pv(this,"currentType"),pv(this,"correctMonths"),pv(this,"viewYear"),pv(this,"dateMin"),pv(this,"dateMax")}}const vv=t=>`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`,yv=t=>new Date(`${t}T00:00:00`),bv=t=>t.reduce(((t,e)=>(e.match(/^(\d{4}-\d{2}-\d{2})$/g)?t.push(e):e.replace(/(\d{4}-\d{2}-\d{2}).*?(\d{4}-\d{2}-\d{2})/g,((e,i,s)=>{const o=yv(i),r=yv(s),n=new Date(o.getTime());for(;n<=r;n.setDate(n.getDate()+1))t.push(vv(n));return e})),t)),[]),wv=t=>t?{0:"12",13:"01",14:"02",15:"03",16:"04",17:"05",18:"06",19:"07",20:"08",21:"09",22:"10",23:"11"}[Number(t)]||String(t):"",xv=t=>`${t} is not found, check the first argument passed to new VanillaCalendar.`,_v='The calendar has not been initialized, please initialize it using the "init()" method first.',kv='You specified "define" for "settings.lang" but did not provide the required values for "locale.weekday" or "locale.months".',$v='Incorrect name of theme in "settings.visibility.theme".',Pv="The value of the time property can be: false, true, 12 or 24.",Sv=t=>{t.currentType=t.type,(t=>{const e=void 0!==t.settings.selected.month&&Number(t.settings.selected.month)>=0&&Number(t.settings.selected.month)<12,i=void 0!==t.settings.selected.year&&Number(t.settings.selected.year)>=0&&Number(t.settings.selected.year)<=9999;t.selectedMonth=e?Number(t.settings.selected.month):t.date.today.getMonth(),t.selectedYear=i?Number(t.settings.selected.year):t.date.today.getFullYear(),t.viewYear=t.selectedYear})(t),(t=>{var e,i,s;t.settings.range.min=yv(t.date.min)>=yv(t.settings.range.min)?t.date.min:t.settings.range.min,t.settings.range.max=yv(t.date.max)<=yv(t.settings.range.max)?t.date.max:t.settings.range.max;const o=t.settings.range.disablePast&&!t.settings.range.disableAllDays&&yv(t.settings.range.min)<t.date.today;t.rangeMin=o||t.settings.range.disableAllDays?vv(t.date.today):t.settings.range.min,t.rangeMax=t.settings.range.disableAllDays?vv(t.date.today):t.settings.range.max,t.rangeDisabled=t.settings.range.disabled&&!t.settings.range.disableAllDays?bv(t.settings.range.disabled):t.settings.range.disableAllDays?[t.rangeMin]:[],t.rangeDisabled.length>1&&t.rangeDisabled.sort(((t,e)=>+new Date(t)-+new Date(e))),t.rangeEnabled=t.settings.range.enabled?bv(t.settings.range.enabled):[],(null==(e=t.rangeEnabled)?void 0:e[0])&&(null==(i=t.rangeDisabled)?void 0:i[0])&&(t.rangeDisabled=t.rangeDisabled.filter((e=>!t.rangeEnabled.includes(e)))),t.rangeEnabled.length>1&&t.rangeEnabled.sort(((t,e)=>+new Date(t)-+new Date(e))),(null==(s=t.rangeEnabled)?void 0:s[0])&&t.settings.range.disableAllDays&&(t.rangeMin=t.rangeEnabled[0],t.rangeMax=t.rangeEnabled[t.rangeEnabled.length-1])})(t),(t=>{var e,i;t.selectedDates=(null==(e=t.settings.selected.dates)?void 0:e[0])?bv(t.settings.selected.dates):[],t.selectedHolidays=(null==(i=t.settings.selected.holidays)?void 0:i[0])?bv(t.settings.selected.holidays):[]})(t),(t=>{t.dateMin=t.settings.visibility.disabled?yv(t.date.min):yv(t.rangeMin),t.dateMax=t.settings.visibility.disabled?yv(t.date.max):yv(t.rangeMax)})(t),(t=>{const e=!0===t.settings.selection.time||12===t.settings.selection.time;if(e||24===t.settings.selection.time){let i=!1;if("string"==typeof t.settings.selected.time){const s=e?/^([0-9]|0[1-9]|1[0-2]):([0-5][0-9])|(AM|PM)/g:/^([0-1]?[0-9]|2[0-3]):([0-5][0-9])/g;t.settings.selected.time.replace(s,((s,o,r,n)=>(o&&r&&(i=!0,t.selectedHours=o,t.selectedMinutes=r),n&&e?t.selectedKeeping=n:e&&(t.selectedKeeping="AM"),"")))}!i&&e?(t.selectedHours=wv(String(t.date.today.getHours())),t.selectedMinutes=String(t.date.today.getMinutes()),t.selectedKeeping=Number(t.date.today.getHours())>=12?"PM":"AM"):i||(t.selectedHours=String(t.date.today.getHours()),t.selectedMinutes=String(t.date.today.getMinutes())),t.selectedHours=Number(t.selectedHours)<10?`0${Number(t.selectedHours)}`:`${t.selectedHours}`,t.selectedMinutes=Number(t.selectedMinutes)<10?`0${Number(t.selectedMinutes)}`:`${t.selectedMinutes}`,t.selectedTime=`${t.selectedHours}:${t.selectedMinutes}${t.selectedKeeping?` ${t.selectedKeeping}`:""}`}else if(t.settings.selection.time)throw new Error(Pv)})(t),(t=>{t.correctMonths="multiple"===t.type?1===t.months?2:t.months>12?12:t.months:1})(t)},Cv=({arrowPrev:t,arrowNext:e,isPrevHidden:i,isNextHidden:s})=>{t.style.visibility=i?"hidden":"",e.style.visibility=s?"hidden":""},Av=t=>{var e,i;if("month"===t.currentType)return;const s=null==(e=t.HTMLElement)?void 0:e.querySelector(`.${t.CSSClasses.arrowPrev}`),o=null==(i=t.HTMLElement)?void 0:i.querySelector(`.${t.CSSClasses.arrowNext}`);s&&o&&{default:()=>{const e=yv(vv(new Date(t.selectedYear,t.selectedMonth,1))),i=new Date(e.getTime()),r=new Date(e.getTime());i.setMonth(i.getMonth()-t.jumpMonths),r.setMonth(r.getMonth()+t.jumpMonths),t.settings.selection.year||(t.dateMin.setFullYear(e.getFullYear()),t.dateMax.setFullYear(e.getFullYear()));const n=!t.settings.selection.month||i.getFullYear()<t.dateMin.getFullYear()||i.getFullYear()===t.dateMin.getFullYear()&&i.getMonth()<t.dateMin.getMonth(),a=!t.settings.selection.month||r.getFullYear()>t.dateMax.getFullYear()||r.getFullYear()===t.dateMax.getFullYear()&&r.getMonth()>t.dateMax.getMonth();Cv({arrowPrev:s,arrowNext:o,isPrevHidden:n,isNextHidden:a})},year:()=>{Cv({arrowPrev:s,arrowNext:o,isPrevHidden:t.dateMin.getFullYear()&&t.viewYear-7<=t.dateMin.getFullYear(),isNextHidden:t.dateMax.getFullYear()&&t.viewYear+7>=t.dateMax.getFullYear()})}}["multiple"===t.currentType?"default":t.currentType]()},Ov=(t,e)=>{if(!t)return null;const i=yv(t),s=e?i.getDay()||7:i.getDay();i.setDate(i.getDate()+4-s);const o=new Date(i.getFullYear(),0,1),r=Math.ceil(((+i-+o)/864e5+1)/7);return{year:i.getFullYear(),week:r}},Ev=(t,e,i,s,o)=>{const r=e[i].querySelector(`.${t.CSSClasses.dayBtn}`),n=Ov(null==r?void 0:r.dataset.calendarDay,t.settings.iso8601);if(!n)return;const a=s.cloneNode(!0);a.innerText=String(n.week),a.dataset.calendarYearWeek=String(n.year),o.append(a)},Tv=(t,e,i,s,o,r,n,a)=>{const l=document.createElement("div");l.className=t.CSSClasses.day;const c=document.createElement("button");c.className=`${t.CSSClasses.dayBtn}${a?` ${a}`:""}`,c.type="button",c.innerText=String(s),c.dataset.calendarDay=r,t.settings.visibility.weekNumbers&&(()=>{const e=Ov(r,t.settings.iso8601);e&&(c.dataset.calendarWeekNumber=String(e.week))})(),n?t.settings.visibility.daysOutside&&l.append(c):l.append(c),((t,e,i)=>{var s,o,r,n,a;const l=null==(s=t.settings.range.disableWeekday)?void 0:s.includes(i),c=t.settings.range.disableAllDays&&!!(null==(o=t.rangeEnabled)?void 0:o[0]);!l&&!c||(null==(r=t.rangeEnabled)?void 0:r.includes(e))||(null==(n=t.rangeDisabled)?void 0:n.includes(e))||(t.rangeDisabled.push(e),null==(a=t.rangeDisabled)||a.sort(((t,e)=>+new Date(t)-+new Date(e))))})(t,r,o),((t,e,i,s,o,r,n)=>{var a,l,c;(yv(t.rangeMin)>yv(r)||yv(t.rangeMax)<yv(r)||(null==(a=t.rangeDisabled)?void 0:a.includes(r))||!t.settings.selection.month&&n||!t.settings.selection.year&&yv(r).getFullYear()!==e)&&(s.classList.add(t.CSSClasses.dayBtnDisabled),s.tabIndex=-1),t.settings.visibility.today&&vv(t.date.today)===r&&s.classList.add(t.CSSClasses.dayBtnToday),!t.settings.visibility.weekend||0!==o&&6!==o||s.classList.add(t.CSSClasses.dayBtnWeekend),(null==(l=t.selectedHolidays)?void 0:l.includes(r))&&s.classList.add(t.CSSClasses.dayBtnHoliday),(null==(c=t.selectedDates)?void 0:c.includes(r))&&(s.classList.add(t.CSSClasses.dayBtnSelected),t.selectedDates.length>1&&"multiple-ranged"===t.settings.selection.day&&(t.selectedDates[0]===r&&i.classList.add(t.CSSClasses.daySelectedFirst),t.selectedDates[t.selectedDates.length-1]===r&&i.classList.add(t.CSSClasses.daySelectedLast),t.selectedDates[0]!==r&&t.selectedDates[t.selectedDates.length-1]!==r&&i.classList.add(t.CSSClasses.daySelectedIntermediate)))})(t,e,l,c,o,r,n),i.append(l),t.actions.getDays&&t.actions.getDays(s,r,l,c,t)},Mv=t=>{const e=t.HTMLElement.querySelectorAll(`.${t.CSSClasses.days}`),i=t.HTMLElement.querySelectorAll(`.${t.CSSClasses.weekNumbers}`),s=new Date(t.selectedYear,t.selectedMonth,1);e.forEach(((e,o)=>{const r=new Date(s);r.setMonth(r.getMonth()+o);const n=r.getMonth(),a=r.getFullYear(),l=new Date(a,n,1),c=new Date(a,n+1,0).getDate(),d=t.settings.iso8601?(0!==l.getDay()?l.getDay():7)-1:l.getDay();t.settings.selection.day&&e.classList.add(t.CSSClasses.daysSelecting),e.innerHTML="",((t,e,i,s,o)=>{let r=new Date(i,s,0).getDate()-(o-1);const n=0===s?i-1:i,a=0===s?12:s<10?`0${s}`:s;for(let l=o;l>0;l--,r++){const s=`${n}-${a}-${r}`,o=yv(s).getDay();Tv(t,i,e,r,o,s,!0,t.CSSClasses.dayBtnPrev)}})(t,e,a,n,d),((t,e,i,s,o)=>{for(let r=1;r<=i;r++){const i=new Date(s,o,r),n=vv(i),a=i.getDay();Tv(t,s,e,r,a,n,!1,null)}})(t,e,c,a,n),((t,e,i,s,o,r)=>{const n=r+i,a=7*Math.ceil(n/7)-n,l=o+1===12?s+1:s,c=o+1===12?"01":o+2<10?`0${o+2}`:o+2;for(let d=1;d<=a;d++){const i=`${l}-${c}-${d<10?`0${d}`:String(d)}`,o=yv(i).getDay();Tv(t,s,e,d,o,i,!0,t.CSSClasses.dayBtnNext)}})(t,e,c,a,n,d),((t,e,i,s,o)=>{if(!t.settings.visibility.weekNumbers)return;s.innerHTML="";const r=document.createElement("b");r.className=t.CSSClasses.weekNumbersTitle,r.innerText="#",s.append(r);const n=document.createElement("div");n.className=t.CSSClasses.weekNumbersContent,s.append(n);const a=document.createElement("button");a.type="button",a.className=t.CSSClasses.weekNumber;const l=o.querySelectorAll(`.${t.CSSClasses.day}`),c=Math.ceil((e+i)/7);for(let d=0;d<c;d++)Ev(t,l,0===d?6:7*d,a,n)})(t,d,c,i[o],e),((t,e)=>{var i;t.popups&&(null==(i=Object.entries(t.popups))||i.forEach((([i,s])=>((t,e,i,s)=>{const o=i.querySelector(`[data-calendar-day="${t}"]`);o&&((null==e?void 0:e.modifier)&&o.classList.add(...e.modifier.trim().split(" ")),(null==e?void 0:e.html)&&(o.parentElement.innerHTML+=`<div class="${s}">${e.html}</div>`))})(i,s,e,t.CSSClasses.dayPopup))))})(t,e)}))},Dv=t=>{var e,i;const s=null==(e=t.HTMLElement)?void 0:e.querySelectorAll("[data-calendar-selected-month]"),o=null==(i=t.HTMLElement)?void 0:i.querySelectorAll("[data-calendar-selected-year]");if(!(null==s?void 0:s[0])&&(null==o?void 0:o[0]))return;const r=new Date(t.selectedYear,t.selectedMonth,1);null==s||s.forEach(((e,i)=>((t,e,i,s)=>{const o=new Date(s.setMonth(t.selectedMonth+i)).getMonth(),r=!1===t.settings.selection.month||"only-arrows"===t.settings.selection.month;e.tabIndex=r?-1:0,e.classList.toggle(t.CSSClasses.monthDisabled,r),e.setAttribute("data-calendar-selected-month",String(o)),e.innerText=t.locale.months[o]})(t,e,i,r))),null==o||o.forEach(((e,i)=>((t,e,i,s)=>{const o=new Date(s.setFullYear(t.selectedYear,t.selectedMonth+i)).getFullYear(),r=!1===t.settings.selection.year||"only-arrows"===t.settings.selection.year;e.tabIndex=r?-1:0,e.classList.toggle(t.CSSClasses.yearDisabled,r),e.setAttribute("data-calendar-selected-year",String(o)),e.innerText=String(o)})(t,e,i,r)))},Lv=(t,e)=>{const i=yv(vv(new Date(t.selectedYear,t.selectedMonth,1)));({prev:()=>i.setMonth(i.getMonth()-t.jumpMonths),next:()=>i.setMonth(i.getMonth()+t.jumpMonths)})[e](),[t.selectedMonth,t.selectedYear]=[i.getMonth(),i.getFullYear()],Dv(t),Av(t),Mv(t)},jv=Object.freeze(Object.defineProperty({__proto__:null,ArrowNext:t=>`<button type="button"class="${t.CSSClasses.arrow} ${t.CSSClasses.arrowNext}"data-calendar-arrow="next"></button>`,ArrowPrev:t=>`<button type="button"class="${t.CSSClasses.arrow} ${t.CSSClasses.arrowPrev}"data-calendar-arrow="prev"></button>`,ControlTime:t=>t.settings.selection.time?`<div class="${t.CSSClasses.time}"></div>`:"",Days:t=>`<div class="${t.CSSClasses.days}"></div>`,Month:t=>`<button type="button"class="${t.CSSClasses.month}"data-calendar-selected-month></button>`,Months:t=>`<div class="${t.CSSClasses.months}"></div>`,Week:t=>`<div class="${t.CSSClasses.week}"></div>`,WeekNumbers:t=>t.settings.visibility.weekNumbers?`<div class="${t.CSSClasses.weekNumbers}"></div>`:"",Year:t=>`<button type="button"class="${t.CSSClasses.year}"data-calendar-selected-year></button>`,Years:t=>`<div class="${t.CSSClasses.years}"></div>`},Symbol.toStringTag,{value:"Module"})),Iv=(t,e)=>e.replace(/[\n\t]/g,"").replace(/<#(?!\/?Multiple)(.*?)>/g,((e,i)=>{const s=(o=i.replace(/[/\s\n\t]/g,""),jv[o]);var o;return s?s(t):""})).replace(/[\n\t]/g,""),zv=(t,e)=>{const{HTMLElement:i,CSSClasses:s,DOMTemplates:o,type:r,currentType:n,correctMonths:a}=t,l=(o,r)=>{if(!e)return;const n=i.querySelector(`.${s.controls}`);n&&i.removeChild(n),i.querySelector(`.${s.grid}`).classList.add(s.gridDisabled);const a=e.closest(`.${s.column}`);a.classList.add(o),a.innerHTML=Iv(t,r)},c={default:()=>{i.classList.add(s.calendarDefault),i.classList.remove(s.calendarMonth,s.calendarYear),i.innerHTML=Iv(t,o.default)},multiple:()=>{a&&(i.classList.add(s.calendarMultiple),i.classList.remove(s.calendarMonth,s.calendarYear),i.innerHTML=((t,e)=>e.replace(/<#Multiple>(.*?)<#\/Multiple>/g,((e,i)=>{let s="";for(let o=0;o<t.correctMonths;o++)s+=i;return s})).replace(/[\n\t]/g,""))(t,Iv(t,o.multiple)))},month:()=>{"multiple"!==r?(i.classList.add(s.calendarMonth),i.classList.remove(s.calendarDefault,s.calendarYear),i.innerHTML=Iv(t,o.month)):l(s.columnMonth,o.month)},year:()=>{"multiple"!==r?(i.classList.add(s.calendarYear),i.classList.remove(s.calendarDefault,s.calendarMonth),i.innerHTML=Iv(t,o.year)):l(s.columnYear,o.year)}};i.classList.add(s.calendar),c[n]()},Bv=(t,e,i,s,o)=>{const r=e.cloneNode(!1);return r.className=`${t.CSSClasses.yearsYear}${i===o?` ${t.CSSClasses.yearsYearSelected}`:s?` ${t.CSSClasses.yearsYearDisabled}`:""}`,r.dataset.calendarYear=String(o),r.title=String(o),r.innerText=String(o),s&&(r.tabIndex=-1),r},Rv=(t,e)=>{const i=(null==e?void 0:e.dataset.calendarSelectedYear)?Number(null==e?void 0:e.dataset.calendarSelectedYear):t.selectedYear;t.currentType="year",zv(t,e),Dv(t),Av(t);const s=t.HTMLElement.querySelector(`.${t.CSSClasses.years}`);if(!t.settings.selection.year||!s)return;s.classList.add(t.CSSClasses.yearsSelecting);const o="multiple"!==t.type||t.selectedYear===i?0:1,r=document.createElement("button");r.type="button";for(let n=t.viewYear-7;n<t.viewYear+8;n++){const e=n<t.dateMin.getFullYear()+o||n>t.dateMax.getFullYear(),a=Bv(t,r,i,e,n);s.append(a),t.actions.getYears&&t.actions.getYears(n,a,t)}},Nv=t=>`${t.charAt(0).toUpperCase()}${t.substring(1,t.length)}`.replace(/\./,""),Fv=(t,e)=>{const i=new Date(`1978-01-0${e+1}T00:00:00.000Z`).toLocaleString(t.settings.lang,{weekday:"short",timeZone:"UTC"});t.locale.weekday.push(Nv(i))},qv=(t,e)=>{const i=new Date(`1978-${e+1<=9?`0${e+1}`:e+1}-01T00:00:00.000Z`).toLocaleString(t.settings.lang,{month:"long",timeZone:"UTC"});t.locale.months.push(Nv(i))},Hv=t=>{if("multiple"!==t.type)return 0;const e=[...t.HTMLElement.querySelectorAll(`.${t.CSSClasses.column}`)].findIndex((e=>e.classList.contains(`${t.CSSClasses.columnMonth}`)));return e>0?e:0},Uv=(t,e,i,s,o,r)=>{const n=e.cloneNode(!1);return n.className=`${t.CSSClasses.monthsMonth}${i===r?` ${t.CSSClasses.monthsMonthSelected}`:o?` ${t.CSSClasses.monthsMonthDisabled}`:""}`,n.title=s,n.innerText=`${t.settings.visibility.monthShort?s.substring(0,3):s}`,n.dataset.calendarMonth=String(r),o&&(n.tabIndex=-1),n},Vv=(t,e)=>{var i,s;const o=(null==e?void 0:e.dataset.calendarSelectedMonth)?Number(e.dataset.calendarSelectedMonth):t.selectedMonth,r=null==(i=null==e?void 0:e.closest(`.${t.CSSClasses.column}`))?void 0:i.querySelector(`.${t.CSSClasses.year}`),n=r?Number(r.dataset.calendarSelectedYear):t.selectedYear;t.currentType="month",zv(t,e),Dv(t);const a=null==(s=t.HTMLElement)?void 0:s.querySelector(`.${t.CSSClasses.months}`);if(!t.settings.selection.month||!a)return;a.classList.add(t.CSSClasses.monthsSelecting);const l=t.jumpMonths>1?t.locale.months.map(((e,i)=>o-t.jumpMonths*i)).concat(t.locale.months.map(((e,i)=>o+t.jumpMonths*i))).filter((t=>t>=0&&t<=12)):Array.from(Array(12).keys()),c=document.createElement("button");c.type="button";for(let d=0;d<12;d++){const e=t.locale.months[d],i=d<t.dateMin.getMonth()+Hv(t)&&n<=t.dateMin.getFullYear()||d>t.dateMax.getMonth()+Hv(t)&&n>=t.dateMax.getFullYear()||d!==o&&!l.includes(d),s=Uv(t,c,o,e,i,d);a.append(s),t.actions.getMonths&&t.actions.getMonths(d,s,t)}},Wv=(t,e)=>t&&e?{0:{AM:"00",PM:"12"},1:{AM:"01",PM:"13"},2:{AM:"02",PM:"14"},3:{AM:"03",PM:"15"},4:{AM:"04",PM:"16"},5:{AM:"05",PM:"17"},6:{AM:"06",PM:"18"},7:{AM:"07",PM:"19"},8:{AM:"08",PM:"20"},9:{AM:"09",PM:"21"},10:{AM:"10",PM:"22"},11:{AM:"11",PM:"23"},12:{AM:"12",PM:"12"}}[Number(t)][e]:"",Zv=(t,e,i)=>t.querySelector(`.${e}${i?` input[name="${i}"]`:""}`),Yv=(t,e,i)=>{t.addEventListener("mouseover",(()=>e.classList.add(i))),t.addEventListener("mouseout",(()=>e.classList.remove(i)))},Gv=(t,e,i,s)=>{({hours:()=>{t.selectedHours=i},minutes:()=>{t.selectedMinutes=i}})[s](),t.selectedTime=`${t.selectedHours}:${t.selectedMinutes}${t.selectedKeeping?` ${t.selectedKeeping}`:""}`,t.actions.changeTime&&t.actions.changeTime(e,t),t.input&&t.HTMLInputElement&&t.actions.changeToInput&&t.actions.changeToInput(e,t)},Kv=(t,e,i,s,o,r)=>{e.addEventListener("input",(e=>{const n=e.target,a=Number(n.value),l=a<10?`0${a}`:`${a}`;if("hours"!==o||12!==r)return i.value=l,void Gv(t,e,l,o);a<r&&a>0?(i.value=l,t.selectedKeeping="AM",s.innerText=t.selectedKeeping,Gv(t,e,l,o)):(0===a?(t.selectedKeeping="AM",s.innerText="AM"):(t.selectedKeeping="PM",s.innerText="PM"),i.value=wv(n.value),Gv(t,e,wv(n.value),o))}))},Qv=(t,e,i,s,o,r)=>{i.addEventListener("change",(i=>{const n=i.target,a=Number(n.value),l=a<10?`0${a}`:`${a}`;"hours"===o&&12===r?n.value&&a<=r&&a>0?(n.value=l,e.value=Wv(l,t.selectedKeeping),Gv(t,i,l,o)):n.value&&a<24&&(a>r||0===a)?(0===a?(t.selectedKeeping="AM",s.innerText="AM"):(t.selectedKeeping="PM",s.innerText="PM"),n.value=wv(n.value),e.value=l,Gv(t,i,wv(n.value),o)):n.value=t.selectedHours:n.value&&a<=r&&a>=0?(n.value=l,e.value=l,Gv(t,i,l,o)):"hours"===o?n.value=t.selectedHours:"minutes"===o&&(n.value=t.selectedMinutes)}))},Xv=(t,e,i)=>{const s=24===i?23:i||12,o=Zv(e,t.CSSClasses.timeRange,"hours"),r=Zv(e,t.CSSClasses.timeRange,"minutes"),n=Zv(e,t.CSSClasses.timeHours,"hours"),a=Zv(e,t.CSSClasses.timeMinutes,"minutes"),l=e.querySelector(`.${t.CSSClasses.timeKeeping}`);Yv(o,n,t.CSSClasses.isFocus),Yv(r,a,t.CSSClasses.isFocus),Kv(t,o,n,l,"hours",s),Kv(t,r,a,l,"minutes",0),Qv(t,o,n,l,"hours",s),Qv(t,r,a,l,"minutes",59),l&&((t,e,i)=>{e.addEventListener("click",(s=>{t.selectedKeeping=e.innerText.includes("AM")?"PM":"AM",e.innerText=t.selectedKeeping,i.value=Wv(t.selectedHours,t.selectedKeeping),Gv(t,s,t.selectedHours,"hours")}))})(t,l,o)},Jv=(t,e,i,s)=>`<label class="${e}"><input type="text"name="${t}"maxlength="2"value="${i}"${s?"disabled":""}></label>`,ty=(t,e,i,s,o,r)=>`<label class="${e}"><input type="range"name="${t}"min="${i}"max="${s}"step="${o}"value="${r}"></label>`,ey=t=>{const e=[...t.locale.weekday];e[0]&&(t.settings.iso8601&&e.push(e.shift()),t.HTMLElement.querySelectorAll(`.${t.CSSClasses.week}`).forEach((i=>((t,e,i)=>{const s=document.createElement("b");e.innerHTML="";for(let o=0;o<i.length;o++){const r=i[o],n=s.cloneNode(!0);n.className=`${t.CSSClasses.weekDay}`,n.className=`${t.CSSClasses.weekDay}${t.settings.visibility.weekend&&t.settings.iso8601?5===o||6===o?` ${t.CSSClasses.weekDayWeekend}`:"":!t.settings.visibility.weekend||t.settings.iso8601||0!==o&&6!==o?"":` ${t.CSSClasses.weekDayWeekend}`}`,n.innerText=`${r}`,e.append(n)}})(t,i,e))))},iy=["light","dark","system"],sy={value:!1,set:()=>{sy.value=!0},check:()=>sy.value},oy=(t,e)=>iy.find((i=>{var s;return"system"!==i&&(null==(s=t.getAttribute(e))?void 0:s.includes(i))})),ry=(t,e)=>{t.dataset.calendarTheme=e},ny=(t,e)=>{var i;if(i=e,ry(t.HTMLElement,i.matches?"dark":"light"),"system"!==t.settings.visibility.theme||sy.check())return;const s=e=>{const i=document.querySelectorAll(`.${t.CSSClasses.calendar}`);null==i||i.forEach((t=>ry(t,e.matches?"dark":"light")))};e.addEventListener?e.addEventListener("change",s):e.addListener(s),sy.set()},ay=(t,e)=>{const i=t.settings.visibility.themeDetect?document.querySelector(t.settings.visibility.themeDetect):null;if(!i)return void ny(t,e);const s=t.settings.visibility.themeDetect.replace(/^.*\[(.+)\]/g,((t,e)=>e)),o=oy(i,s);o?(ry(t.HTMLElement,o),((t,e,i)=>{new MutationObserver((s=>{for(let o=0;o<s.length;o++)if(s[o].attributeName===i){const s=oy(e,i);s&&ry(t.HTMLElement,s);break}})).observe(e,{attributes:!0})})(t,i,s)):ny(t,e)},ly=t=>{const e={default:()=>{ey(t),Mv(t)},multiple:()=>{ey(t),Mv(t)},month:()=>Vv(t),year:()=>Rv(t)};(t=>{if(!iy.includes(t.settings.visibility.theme))throw new Error($v);"not all"!==window.matchMedia("(prefers-color-scheme)").media?{light:()=>ry(t.HTMLElement,"light"),dark:()=>ry(t.HTMLElement,"dark"),system:()=>ay(t,window.matchMedia("(prefers-color-scheme: dark)"))}[t.settings.visibility.theme]():ry(t.HTMLElement,"light")})(t),(t=>{if("define"!==t.settings.lang||!t.locale.weekday[6]||!t.locale.months[11]){if("define"===t.settings.lang)throw new Error(kv);t.locale.weekday=[],t.locale.months=[];for(let e=0;e<7;e++)Fv(t,e);for(let e=0;e<12;e++)qv(t,e)}})(t),zv(t),Dv(t),Av(t),(t=>{const e=t.HTMLElement.querySelector(`.${t.CSSClasses.time}`);if(!e)return;const i=!0===t.settings.selection.time?12:t.settings.selection.time,s="range"===t.settings.selection.controlTime,[o,r]=[0,23],[n,a]=[0,59];e.innerHTML=`<div class="${t.CSSClasses.timeContent}">${Jv("hours",t.CSSClasses.timeHours,t.selectedHours,s)}${Jv("minutes",t.CSSClasses.timeMinutes,t.selectedMinutes,s)}${12===i?`<button type="button" class="${t.CSSClasses.timeKeeping}"${s?"disabled":""}>${t.selectedKeeping}</button>`:""}</div><div class="${t.CSSClasses.timeRanges}">${ty("hours",t.CSSClasses.timeRange,o,r,t.settings.selection.stepHours,t.selectedKeeping?Wv(t.selectedHours,t.selectedKeeping):t.selectedHours)}${ty("minutes",t.CSSClasses.timeRange,n,a,t.settings.selection.stepMinutes,t.selectedMinutes)}</div>`,Xv(t,e,i)})(t),e[t.currentType]()},cy={self:null,rangeMin:void 0,rangeMax:void 0},dy=()=>{var t;if(!(null==(t=cy.self)?void 0:t.HTMLElement))return;const{CSSClasses:e}=cy.self;cy.self.HTMLElement.querySelectorAll(`.${cy.self.CSSClasses.dayBtnHover}`).forEach((t=>{var i;t.classList.remove(cy.self.CSSClasses.dayBtnHover),null==(i=t.parentElement)||i.classList.remove(e.dayHoverIntermediate,e.dayHoverFirst,e.dayHoverLast)}))},py=(t,e,i)=>{var s,o,r;if(!(null==(s=cy.self)?void 0:s.selectedDates))return;const n=vv(t),{CSSClasses:a}=cy.self;if(null==(o=cy.self.rangeDisabled)?void 0:o.includes(n))return;const l=null==(r=cy.self.HTMLElement)?void 0:r.querySelectorAll(`[data-calendar-day="${n}"]`);null==l||l.forEach((t=>{var e;t.classList.add(a.dayBtnHover),null==(e=t.parentElement)||e.classList.add(a.dayHoverIntermediate)})),null==e||e.forEach((t=>{var e;return null==(e=t.parentElement)?void 0:e.classList.add(a.dayHoverFirst)})),null==i||i.forEach((t=>{var e;return null==(e=t.parentElement)?void 0:e.classList.add(a.dayHoverLast)}))},hy=t=>{var e;if(!t.target||!(null==(e=cy.self)?void 0:e.selectedDates))return;if(!t.target.closest(`.${cy.self.CSSClasses.days}`))return void dy();const i=t.target.closest("[data-calendar-day]");if(!i)return;const s=i.dataset.calendarDay,o=yv(cy.self.selectedDates[0]),r=yv(s),n=cy.self.HTMLElement.querySelectorAll(`[data-calendar-day="${cy.self.selectedDates[0]}"]`),a=cy.self.HTMLElement.querySelectorAll(`[data-calendar-day="${s}"]`),[l,c]=o<r?[n,a]:[a,n],[d,p]=o<r?[o,r]:[r,o];dy();for(let h=new Date(d);h<=p;h.setDate(h.getDate()+1))py(h,l,c)},uy=t=>{cy.self&&"Escape"===t.key&&(cy.self.selectedDates=[],cy.self.HTMLElement.removeEventListener("mousemove",hy),document.removeEventListener("keydown",uy),ly(cy.self))},my=(t,e)=>{var i;if(e){const s=1===t.selectedDates.length&&t.selectedDates[0].includes(e);t.selectedDates=s&&!t.settings.selection.cancelableDay?[e,e]:s&&t.settings.selection.cancelableDay?[]:t.selectedDates.length>1?[e]:[...t.selectedDates,e],null==(i=t.selectedDates)||i.sort(((t,e)=>+new Date(t)-+new Date(e)))}t.settings.range.disableGaps&&(cy.rangeMin=cy.rangeMin?cy.rangeMin:t.rangeMin,cy.rangeMax=cy.rangeMax?cy.rangeMax:t.rangeMax),cy.self=t,{set:()=>{t.HTMLElement.addEventListener("mousemove",hy),document.addEventListener("keydown",uy),t.settings.range.disableGaps&&(()=>{var t,e,i;if(!(null==(e=null==(t=cy.self)?void 0:t.selectedDates)?void 0:e[0])||!cy.self.rangeDisabled||(null==(i=cy.self.rangeDisabled)?void 0:i.length)<2)return;const s=yv(cy.self.selectedDates[0]),[o,r]=cy.self.rangeDisabled.map((t=>yv(t))).reduce((([t,e],i)=>[s>=i?i:t,s<i&&null===e?i:e]),[null,null]);o&&(cy.self.rangeMin=vv(new Date(o.setDate(o.getDate()+1)))),r&&(cy.self.rangeMax=vv(new Date(r.setDate(r.getDate()-1))))})()},reset:()=>{const[e,i]=[t.selectedDates[0],t.selectedDates[t.selectedDates.length-1]];t.selectedDates=t.selectedDates[0]!==t.selectedDates[t.selectedDates.length-1]?bv([`${e}:${i}`]):[t.selectedDates[0],t.selectedDates[0]],t.HTMLElement.removeEventListener("mousemove",hy),document.removeEventListener("keydown",uy),t.settings.range.disableGaps&&cy.self&&(cy.self.rangeMin=cy.rangeMin,cy.self.rangeMax=cy.rangeMax)}}[1===t.selectedDates.length?"set":"reset"]()},gy=(t,e,i)=>{if(!e.dataset.calendarDay)return;const s=e.dataset.calendarDay,o=e.classList.contains(t.CSSClasses.dayBtnSelected);o&&!t.settings.selection.cancelableDay||(t.selectedDates=o?t.selectedDates.filter((t=>t!==s)):i?[...t.selectedDates,s]:[s])},fy=(t,e,i,s,o)=>{const r=t.HTMLElement.querySelectorAll(`.${t.CSSClasses.column}`),n=[...r].findIndex((t=>t.classList.contains(e))),a=Number(r[n].querySelector(`.${i}`).getAttribute(o));return"month"===t.currentType&&n>=0?s-n:"year"===t.currentType&&t.selectedYear!==a?s-1:s},vy=(t,e,i,s)=>{if(!t.settings.selection[i])return;const o=e.target,r=t=>o.closest(`.${t}`),n=r(s.header),a=r(s.item),l=r(t.CSSClasses.grid),c=r(t.CSSClasses.column);t.currentType!==i&&n?{year:()=>Rv(t,o),month:()=>Vv(t,o)}[i]():a?((t,e,i,s,o)=>{const r={year:()=>{var i,s;return null==(s=(i=t.actions).clickYear)?void 0:s.call(i,e,t)},month:()=>{var i,s;return null==(s=(i=t.actions).clickMonth)?void 0:s.call(i,e,t)}};({year:()=>{if("multiple"===t.type){const e=fy(t,t.CSSClasses.columnYear,t.CSSClasses.year,Number(o.dataset.calendarYear),"data-calendar-selected-year"),i=t.selectedMonth<t.dateMin.getMonth()&&e<=t.dateMin.getFullYear(),s=t.selectedMonth>t.dateMax.getMonth()&&e>=t.dateMax.getFullYear(),r=e<t.dateMin.getFullYear(),n=e>t.dateMax.getFullYear();i||r?(t.selectedYear=t.dateMin.getFullYear(),t.selectedMonth=t.dateMin.getMonth()):s||n?(t.selectedYear=t.dateMax.getFullYear(),t.selectedMonth=t.dateMax.getMonth()):t.selectedYear=e}else t.selectedYear=Number(o.dataset.calendarYear)},month:()=>{if("multiple"===t.type){const e=fy(t,t.CSSClasses.columnMonth,t.CSSClasses.month,Number(o.dataset.calendarMonth),"data-calendar-selected-month"),i=o.closest(`.${s.column}`).querySelector(`.${t.CSSClasses.year}`);t.selectedYear=Number(i.dataset.calendarSelectedYear);const r=e<t.dateMin.getMonth()&&t.selectedYear<=t.dateMin.getFullYear(),n=e>t.dateMax.getMonth()&&t.selectedYear>=t.dateMax.getFullYear();t.selectedMonth=r?t.dateMin.getMonth():n?t.dateMax.getMonth():e}else t.selectedMonth=Number(o.dataset.calendarMonth)}})[i](),r[i](),t.currentType=t.type,ly(t)})(t,e,i,s,a):(t.currentType===i&&n||"multiple"===t.type&&t.currentType===i&&l&&!c)&&(t.currentType=t.type,ly(t))},yy=t=>{const e=e=>{((t,e)=>{const i=e.target.closest(`.${t.CSSClasses.arrow}`);i&&(["default","multiple"].includes(t.currentType)?Lv(t,i.dataset.calendarArrow):"year"===t.currentType&&void 0!==t.viewYear&&(t.viewYear+={prev:-15,next:15}[i.dataset.calendarArrow],Rv(t,e.target)),t.actions.clickArrow&&t.actions.clickArrow(e,t))})(t,e),((t,e)=>{var i;if(!t.settings.visibility.weekNumbers||!t.actions.clickWeekNumber)return;const s=e.target.closest(`.${t.CSSClasses.weekNumber}`),o=null==(i=t.HTMLElement)?void 0:i.querySelectorAll("[data-calendar-week-number]");if(!s||!o)return;const r=Number(s.innerText),n=Number(s.dataset.calendarYearWeek),a=[...o].filter((t=>Number(t.dataset.calendarWeekNumber)===r));t.actions.clickWeekNumber(e,r,a,n,t)})(t,e),((t,e)=>{var i;const s=e.target,o=t=>s.closest(`.${t}`),r=o(t.CSSClasses.dayBtn);if(!t.settings.selection.day||!["single","multiple","multiple-ranged"].includes(t.settings.selection.day)||!r)return;({single:()=>gy(t,r,!1),multiple:()=>gy(t,r,!0),"multiple-ranged":()=>my(t,r.dataset.calendarDay)})[t.settings.selection.day](),null==(i=t.selectedDates)||i.sort(((t,e)=>+new Date(t)-+new Date(e))),t.actions.clickDay&&t.actions.clickDay(e,t),t.input&&t.HTMLInputElement&&t.HTMLElement&&t.actions.changeToInput&&t.actions.changeToInput(e,t);const n=o(t.CSSClasses.dayBtnPrev),a=o(t.CSSClasses.dayBtnNext);({prev:()=>Lv(t,"prev"),next:()=>Lv(t,"next"),default:()=>Mv(t)})[n?"prev":a?"next":"default"]()})(t,e),vy(t,e,"month",{header:t.CSSClasses.month,item:t.CSSClasses.monthsMonth,column:t.CSSClasses.columnMonth}),vy(t,e,"year",{header:t.CSSClasses.year,item:t.CSSClasses.yearsYear,column:t.CSSClasses.columnYear})};return t.HTMLElement.addEventListener("click",e),()=>t.HTMLElement.removeEventListener("click",e)},by=(t,{year:e,month:i,dates:s,holidays:o,time:r}={})=>{var n;const a=dv({},t.settings.selected);t.settings.selected.year=e?a.year:t.selectedYear,t.settings.selected.month=i?a.month:t.selectedMonth,t.settings.selected.holidays=o?a.holidays:t.selectedHolidays,t.settings.selected.time=r?a.time:t.selectedTime,t.settings.selected.dates="only-first"===s&&(null==(n=t.selectedDates)?void 0:n[0])?[t.selectedDates[0]]:!0===s?a.dates:t.selectedDates,Sv(t),ly(t),t.settings.selected=a,"multiple-ranged"===t.settings.selection.day&&s&&my(t)},wy=(t,e,i,s)=>{const o={top:-e.offsetHeight,bottom:t.offsetHeight,left:0,center:t.offsetWidth/2-e.offsetWidth/2,right:t.offsetWidth-e.offsetWidth},r=Array.isArray(i)?i[0]:"bottom",n=Array.isArray(i)?i[1]:i;e.classList.add("bottom"===r?s.calendarToInputBottom:s.calendarToInputTop);const a=t.getBoundingClientRect(),l=window.scrollX||document.documentElement.scrollLeft,c=window.scrollY||document.documentElement.scrollTop,d=a.top+c+o[r],p=a.left+l+o[n];Object.assign(e.style,{left:`${p}px`,top:`${d}px`})};class xy extends fv{constructor(t,e){if(super(),pv(this,"init",(()=>{return(t=this).HTMLOriginalElement=t.HTMLElement.cloneNode(!0),t.isInit=!0,t.input?(t=>{let e=!0;const i=[];t.HTMLInputElement=t.HTMLElement;const s=()=>wy(t.HTMLInputElement,t.HTMLElement,t.settings.visibility.positionToInput,t.CSSClasses),o=e=>{var i;t&&e.target!==t.HTMLInputElement&&!(null==(i=t.HTMLElement)?void 0:i.contains(e.target))&&(t.HTMLInputElement&&t.HTMLElement&&t.hide(),window.removeEventListener("resize",s),document.removeEventListener("click",o,{capture:!0}))};return t.HTMLInputElement.addEventListener("click",(()=>{e?i.push((()=>{const i=document.createElement("div");return i.className=`${t.CSSClasses.calendar} ${t.CSSClasses.calendarToInput} ${t.CSSClasses.calendarHidden}`,t.HTMLElement=i,document.body.append(t.HTMLElement),e=!1,setTimeout((()=>{wy(t.HTMLInputElement,i,t.settings.visibility.positionToInput,t.CSSClasses),t.show()}),0),by(t,{year:!0,month:!0,dates:!0,holidays:!0,time:!0}),t.actions.initCalendar&&t.actions.initCalendar(t),yy(t)})()):(wy(t.HTMLInputElement,t.HTMLElement,t.settings.visibility.positionToInput,t.CSSClasses),t.show()),window.addEventListener("resize",s),document.addEventListener("click",o,{capture:!0})})),()=>{i.forEach((t=>t()))}})(t):(Sv(t),ly(t),t.actions.initCalendar&&t.actions.initCalendar(t),yy(t));var t})),pv(this,"update",(t=>((t,{year:e,month:i,dates:s,holidays:o,time:r}={})=>{if(!t.isInit)throw new Error(_v);by(t,{year:e,month:i,dates:s,holidays:o,time:r}),t.actions.updateCalendar&&t.actions.updateCalendar(t)})(this,t))),pv(this,"destroy",(()=>(t=>{var e,i,s,o;if(!t.isInit)throw new Error(_v);t.input?(null==(i=null==(e=t.HTMLElement)?void 0:e.parentElement)||i.removeChild(t.HTMLElement),null==(s=t.HTMLInputElement)||s.replaceWith(t.HTMLOriginalElement),t.HTMLInputElement=void 0):null==(o=t.HTMLElement)||o.replaceWith(t.HTMLOriginalElement),t.HTMLElement=t.HTMLOriginalElement,t.actions.destroyCalendar&&t.actions.destroyCalendar(t)})(this))),pv(this,"show",(()=>{var t;(t=this).currentType?(t.HTMLElement.classList.remove(t.CSSClasses.calendarHidden),t.actions.showCalendar&&t.actions.showCalendar(t)):t.HTMLElement.click()})),pv(this,"hide",(()=>{var t;(t=this).currentType&&(t.HTMLElement.classList.add(t.CSSClasses.calendarHidden),t.actions.hideCalendar&&t.actions.hideCalendar(t))})),this.HTMLElement="string"==typeof t?document.querySelector(t):t,!this.HTMLElement)throw new Error(xv(t));if(!e)return;const i=(t,e)=>{Object.keys(e).forEach((s=>{"object"!=typeof t[s]||"object"!=typeof e[s]||e[s]instanceof Date?t[s]=e[s]:i(t[s],e[s])}))};i(this,e)}}const _y=l`
  .vanilla-calendar {
    position: relative;
    box-sizing: border-box;
    display: flex;
    height: -webkit-max-content;
    height: max-content;
    width: -webkit-max-content;
    width: max-content;
    min-width: 272px;
    max-width: 100%;
    flex-direction: column;
    border-radius: var(--sc-rounded-md);
    opacity: 1;
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 0.15s;
  }
  .vanilla-calendar_multiple {
    width: 550px;
  }
  .vanilla-calendar button:focus-visible {
    border-radius: var(-sc-rounded);
    outline-style: solid;
    outline-width: 1px;
  }
  .vanilla-calendar.vanilla-calendar_multiple .vanilla-calendar-days {
    flex-grow: 0;
  }
  .vanilla-calendar_hidden {
    pointer-events: none;
    opacity: 0;
  }
  .vanilla-calendar_to-input {
    position: absolute;
    left: 0;
    bottom: 0;
    margin-top: 0.25em;
  }
  .vanilla-calendar-controls {
    pointer-events: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 20;
    box-sizing: content-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 1em;
    padding-right: 1em;
    padding-top: 1.25em;
  }
  .vanilla-calendar-arrow {
    pointer-events: auto;
    position: relative;
    display: block;
    height: 1.5em;
    width: 1.5em;
    cursor: pointer;
    border-width: 0px;
    background-color: transparent;
  }
  .vanilla-calendar-arrow:before {
    position: absolute;
    inset: 0;
    background-color: currentColor;
    --tw-content: "";
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 16c-.3 0-.5-.1-.7-.3l-6-6c-.4-.4-.4-1 0-1.4s1-.4 1.4 0l5.3 5.3 5.3-5.3c.4-.4 1-.4 1.4 0s.4 1 0 1.4l-6 6c-.2.2-.4.3-.7.3z'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 16c-.3 0-.5-.1-.7-.3l-6-6c-.4-.4-.4-1 0-1.4s1-.4 1.4 0l5.3 5.3 5.3-5.3c.4-.4 1-.4 1.4 0s.4 1 0 1.4l-6 6c-.2.2-.4.3-.7.3z'/></svg>");
    -webkit-mask-position: center center;
    mask-position: center center;
    content: var(--tw-content);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }
  .vanilla-calendar-arrow.vanilla-calendar-arrow_prev:before {
    transform: rotate(90deg);
  }
  .vanilla-calendar-arrow.vanilla-calendar-arrow_next:before {
    transform: rotate(-90deg);
  }
  .vanilla-calendar-grid {
    display: grid;
    flex-grow: 1;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.75em;
  }
  .vanilla-calendar-grid.vanilla-calendar-grid_disabled .vanilla-calendar-column {
    pointer-events: none;
    opacity: 0.3;
  }
  .vanilla-calendar-grid.vanilla-calendar-grid_disabled .vanilla-calendar-column.vanilla-calendar-column_month,
  .vanilla-calendar-grid.vanilla-calendar-grid_disabled .vanilla-calendar-column.vanilla-calendar-column_year {
    pointer-events: auto;
    opacity: 1;
  }
  .vanilla-calendar-column {
    display: flex;
    min-width: -webkit-min-content;
    min-width: min-content;
    flex-direction: column;
  }
  .vanilla-calendar-header {
    position: relative;
    margin-bottom: 0.75em;
    display: flex;
    align-items: center;
  }
  .vanilla-calendar-header__content {
    display: grid;
    flex-grow: 1;
    grid-auto-columns: -webkit-max-content;
    grid-auto-columns: max-content;
    grid-auto-flow: column;
    align-items: center;
    justify-content: center;
    white-space: pre-wrap;
    padding-left: 1em;
    padding-right: 1em;
  }
  .vanilla-calendar-month,
  .vanilla-calendar-year {
    cursor: pointer;
    border-radius: var(--sc-rounded-sm);
    border-width: 0px;
    background-color: transparent;
    padding: 0.25em;
    font-size: 1em;
    line-height: 1.5em;
    font-weight: 700;
  }
  .vanilla-calendar-month.vanilla-calendar-month_disabled,
  .vanilla-calendar-year.vanilla-calendar-year_disabled {
    pointer-events: none;
  }
  .vanilla-calendar-months {
    display: grid;
    flex-grow: 1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    row-gap: 1em;
    column-gap: 0.5em;
  }
  .vanilla-calendar-years {
    display: grid;
    flex-grow: 1;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    row-gap: 1em;
    column-gap: 0.5em;
  }
  .vanilla-calendar-months_selecting .vanilla-calendar-months__month,
  .vanilla-calendar-years_selecting .vanilla-calendar-years__year {
    cursor: pointer;
  }
  .vanilla-calendar-months_selecting .vanilla-calendar-months__month .vanilla-calendar-months__month_disabled,
  .vanilla-calendar-years_selecting .vanilla-calendar-years__year .vanilla-calendar-years__year_disabled {
    cursor: default;
  }
  .vanilla-calendar-months__month,
  .vanilla-calendar-years__year {
    display: flex;
    height: 2.5em;
    align-items: center;
    justify-content: center;
    word-break: break-all;
    border-radius: var(-sc-rounded);
    border-width: 0px;
    padding: 0.25em;
    text-align: center;
    font-size: 0.75em;
    line-height: 1em;
    font-weight: 600;
  }
  .vanilla-calendar-months__month.vanilla-calendar-months__month_disabled,
  .vanilla-calendar-years__year.vanilla-calendar-years__year_disabled {
    pointer-events: none;
  }
  .vanilla-calendar-week-numbers {
    display: flex;
    flex-direction: column;
  }
  .vanilla-calendar-week-numbers__title {
    margin-bottom: 0.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75em;
    line-height: 1em;
    font-weight: 700;
  }
  .vanilla-calendar-week-numbers__content {
    display: grid;
    grid-auto-flow: row;
    align-items: center;
    justify-items: center;
    row-gap: 0.25em;
  }
  .vanilla-calendar-week-number {
    margin: 0;
    display: flex;
    height: 100%;
    min-height: 1.875em;
    width: 100%;
    min-width: 1.875em;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-style: none;
    background-color: transparent;
    padding: 0;
    font-size: 0.75em;
    line-height: 1em;
    font-weight: 600;
  }
  .vanilla-calendar-wrapper {
    display: flex;
    flex-grow: 1;
  }
  .vanilla-calendar-content {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
  }
  .vanilla-calendar-week {
    margin-bottom: 0.5em;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    justify-items: center;
  }
  .vanilla-calendar-week__day {
    display: flex;
    height: 100%;
    width: 100%;
    min-width: 1.875em;
    align-items: center;
    justify-content: center;
    font-size: 0.75em;
    line-height: 1em;
    font-weight: 700;
  }
  .vanilla-calendar-days {
    display: grid;
    flex-grow: 1;
    grid-template-columns: repeat(7, 1fr);
    align-items: center;
    justify-items: center;
    gap: 0.25em;
  }
  .vanilla-calendar-days_selecting .vanilla-calendar-day__btn {
    cursor: pointer;
  }
  .vanilla-calendar-days_selecting .vanilla-calendar-day__btn_disabled {
    cursor: default;
  }
  .vanilla-calendar-day {
    position: relative;
    display: flex;
    height: 100%;
    width: 100%;
    align-items: center;
    justify-content: center;
  }
  .vanilla-calendar-day:focus-visible .vanilla-calendar-day__popup,
  .vanilla-calendar-day:hover .vanilla-calendar-day__popup {
    pointer-events: auto;
    opacity: 1;
  }
  .vanilla-calendar-day_selected-first .vanilla-calendar-day__btn_selected {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 0.5em;
    border-bottom-left-radius: 0.5em;
  }
  .vanilla-calendar-day_selected-last .vanilla-calendar-day__btn_selected {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 0.5em;
    border-bottom-right-radius: 0.5em;
  }
  .vanilla-calendar-day_selected-intermediate .vanilla-calendar-day__btn_selected_intermediate {
    border-radius: 0;
  }
  .vanilla-calendar-day__btn {
    display: flex;
    height: 100%;
    min-height: 1.875em;
    width: 100%;
    min-width: 1.875em;
    cursor: default;
    align-items: center;
    justify-content: center;
    border-radius: var(-sc-rounded);
    border-width: 0px;
    font-size: 0.75em;
    line-height: 1em;
    font-weight: 400;
  }
  .vanilla-calendar-day__btn_today {
    font-weight: 700;
  }
  .vanilla-calendar-day__btn_disabled {
    pointer-events: none;
  }
  .vanilla-calendar-day__popup {
    transform: translate(-50%);
    pointer-events: none;
    position: absolute;
    left: 50%;
    top: 100%;
    z-index: 20;
    width: 8em;
    padding: 1em 0.75em 0.5em;
    font-size: 0.75em;
    line-height: 1em;
    font-weight: 400;
    opacity: 0;
  }
  .vanilla-calendar-day__popup:before {
    content: var(--tw-content);
    position: absolute;
  }
  .vanilla-calendar-day__popup:after {
    content: var(--tw-content);
    position: absolute;
  }
  .vanilla-calendar-day__popup:hover {
    pointer-events: auto;
    opacity: 1;
  }
  .vanilla-calendar-day__popup:before {
    content: "";
    left: 0;
    bottom: 0;
    z-index: -10;
    display: block;
    height: calc(100% - 8px);
    width: 100%;
    border-radius: var(-sc-rounded);
  }
  .vanilla-calendar-day__popup:after {
    content: "";
    transform: translate(-50%);
    left: 50%;
    top: 1px;
    z-index: -10;
    display: block;
    height: 0px;
    width: 0px;
    border-left-width: 8px;
    border-right-width: 8px;
    border-top-width: 0px;
    border-bottom-width: 8px;
    border-style: solid;
    border-left-color: transparent;
    border-right-color: transparent;
    border-top-color: transparent;
  }
  .vanilla-calendar-time {
    margin-top: 0.75em;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75em;
    border-top-width: 1px;
    border-bottom-width: 0px;
    border-left-width: 0px;
    border-right-width: 0px;
    border-style: solid;
    padding-top: 0.75em;
  }
  .vanilla-calendar-time__content {
    display: grid;
    grid-auto-flow: column;
    align-items: center;
  }
  .vanilla-calendar-time__hours {
    position: relative;
    margin-right: 0.35em;
    width: 1.75em;
  }
  .vanilla-calendar-time__hours:after {
    position: absolute;
    right: -5px;
    top: 50%;
    margin-top: calc(-50% + 1px);
    display: block;
    --tw-content: ":";
    content: var(--tw-content);
  }
  .vanilla-calendar-time__minutes {
    width: 1.75em;
  }
  .vanilla-calendar-time__hours input,
  .vanilla-calendar-time__minutes input {
    position: relative;
    margin: 0;
    box-sizing: border-box;
    display: block;
    width: 100%;
    border-radius: var(--sc-rounded-sm);
    border-width: 0px;
    padding: 0.125em;
    text-align: center;
    font-size: 1.125em;
    font-weight: 600;
    line-height: 1.125em;
  }
  .vanilla-calendar-time__hours input:focus-visible,
  .vanilla-calendar-time__minutes input:focus-visible {
    outline-style: solid;
    outline-width: 1px;
  }
  .vanilla-calendar-time__hours input:disabled,
  .vanilla-calendar-time__minutes input:disabled {
    cursor: default;
  }
  .vanilla-calendar-time__hours input:hover:disabled,
  .vanilla-calendar-time__minutes input:hover:disabled {
    background-color: transparent;
  }
  .vanilla-calendar-time__keeping {
    margin-left: 1px;
    margin-top: 0.25em;
    width: 22px;
    cursor: pointer;
    border-radius: var(--sc-rounded-sm);
    border-width: 0px;
    background-color: transparent;
    padding: 0;
    font-size: 11px;
  }
  .vanilla-calendar-time__keeping:focus-visible {
    outline-style: solid;
    outline-width: 1px;
  }
  .vanilla-calendar-time__keeping:disabled {
    cursor: default;
  }
  .vanilla-calendar-time__keeping:hover:disabled {
    background-color: transparent;
  }
  .vanilla-calendar-time__ranges {
    display: grid;
    grid-auto-flow: row;
  }
  .vanilla-calendar-time__range {
    position: relative;
    z-index: 10;
    font-size: 0;
  }
  .vanilla-calendar-time__range:before {
    content: var(--tw-content);
    left: 0;
  }
  .vanilla-calendar-time__range:after {
    content: var(--tw-content);
    right: 0;
  }
  .vanilla-calendar-time__range:before,
  .vanilla-calendar-time__range:after {
    content: "";
    transform: translateY(-50%);
    pointer-events: none;
    position: absolute;
    top: 50%;
    z-index: 10;
    height: 0.5em;
    width: 1px;
  }
  .vanilla-calendar-time__range input {
    position: relative;
    margin: 0;
    height: 1.25em;
    width: 100%;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    outline-width: 0px;
  }
  .vanilla-calendar-time__range input::-webkit-slider-thumb {
    position: relative;
    z-index: 20;
    margin-top: -0.5em;
    box-sizing: border-box;
    height: 1em;
    width: 0.75em;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    border-radius: var(--sc-rounded-sm);
    border-width: 1px;
    border-style: solid;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  }
  .vanilla-calendar-time__range input::-moz-range-thumb {
    position: relative;
    z-index: 20;
    box-sizing: border-box;
    height: 1em;
    width: 0.75em;
    cursor: pointer;
    border-radius: var(--sc-rounded-sm);
    border-width: 1px;
    border-style: solid;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  }
  .vanilla-calendar-time__range input::-webkit-slider-runnable-track {
    margin-top: 1px;
    box-sizing: border-box;
    height: 1px;
    width: 100%;
    cursor: pointer;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  }
  .vanilla-calendar-time__range input::-moz-range-track {
    margin-top: 1px;
    box-sizing: border-box;
    height: 1px;
    width: 100%;
    cursor: pointer;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  }

  .vanilla-calendar-day {
    width: 2em;
    height: 2em;
    color: var(--sc-base-content);
  }

  .vanilla-calendar-day__btn {
    border-radius: 50% !important;
    font-weight: 600;
    box-shadow: 0 0 0 0 var(--sc-base-100);
  }

  .vanilla-calendar-week__day_weekend,
  .vanilla-calendar-day__btn_weekend,
  .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_disabled {
    color: var(--sc-base-700);
  }

  .vanilla-calendar-day__btn_disabled {
    border-color: transparent;
    opacity: 0.7;
    color: var(--sc-base-content);
    background-color: transparent;
    font-weight: 400;
  }

  .vanilla-calendar-day__btn_today {
    font-weight: 600 !important;
  }
  .vanilla-calendar-day__btn:not(.vanilla-calendar-day__btn_disabled) {
    border-radius: 50% !important;
    font-weight: 600;
    color: var(--sc-base-content);
    background: var(--sc-base-100);
    box-shadow: 0 0 0 0 var(--sc-base-100);
  }

  /*  !!  SUPERSONIKS !! */
  .vanilla-calendar-day__btn:focus,
  .vanilla-calendar-day__btn:hover {
    box-shadow: 0 0 0 2px var(--sc-base-content);
  }

  .vanilla-calendar-day__btn:focus,
  .vanilla-calendar-day__btn:hover,
  .vanilla-calendar-day__btn_selected {
    transition: 0.1s;
    background-color: var(--sc-base-content) !important;
    color: var(--sc-base) !important;
  }
  /* YEAR */
  .vanilla-calendar-months__month,
  .vanilla-calendar-years__year {
    border-radius: var(--sc-rounded);
  }

  .vanilla-calendar-months__month:hover,
  .vanilla-calendar-months__month:focus,
  .vanilla-calendar-years__year:focus,
  .vanilla-calendar-years__year:hover {
    background: var(--sc-base-100);
  }
  .vanilla-calendar-months__month_disabled,
  .vanilla-calendar-years__year_disabled {
    color: var(--sc-base-400);
  }
`;var ky=Object.defineProperty,$y=Object.getOwnPropertyDescriptor,Py=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?$y(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&ky(e,i,r),r};const Sy=["almost_full_here","almost_full_places","almost_full","remaining_places_warning","deferred"],Cy=["full","full_here","full_in_no_quota","canceled","forced_to_full"];let Ay=class extends(Le(pt)){constructor(){super(...arguments),this.sessions=[],this.dates=[],this.displayInfos=!1,this.formatDateForCalendar=t=>t.toLocaleDateString("en-GB",{year:"numeric",month:"2-digit",day:"2-digit"}).split("/").reverse().join("-")}initCalendar(t=[],e){var i;const s={actions:{clickDay:(t,e)=>{e&&(this.selectedDay=e.selectedDates[0])}},settings:{lang:kt.getLanguage(),range:{disableAllDays:!0}}};(null==(i=null==s?void 0:s.settings)?void 0:i.range)&&(s.settings.range.enabled=t);const o=t[0],r=parseInt(o.split("-")[1])-1,n=parseInt(o.split("-")[0]);(null==s?void 0:s.settings)&&(s.settings.selected={month:r,year:n}),this.calendar=new xy(e,s),this.calendar.init()}async updated(t){if(t.has("sessions")&&this.sessions.length&&this.calendarContainer){const t=this.sessions.map((t=>{if(t.start_date){return new Date(1e3*t.start_date).toLocaleDateString("en-GB",{year:"numeric",month:"2-digit",day:"2-digit"}).split("/").reverse().join("-")}return""}));if(this.calendar?(this.calendar.settings.range.enabled=t,this.calendar.update()):this.initCalendar(t,this.calendarContainer),this.sessions.length&&this.calendar){const t=await this.getPopupSettings();this.calendar.popups=await this.getPopupSettings(),Object.keys(t).length?this.displayInfos=!0:this.displayInfos=!1,this.calendar.update()}}super.willUpdate(t)}async getSatusInfo(t){const e=new qt(this.getApiConfiguration()),i=t.map((t=>t.id));return(await e.get(`/sessions?ids=${i.join(",")}&features[]=status`)).data}async getPopupSettings(){const t=await this.getSatusInfo(this.sessions),e={};t.forEach((t=>{var i,s,o,r;if(!t.start_date)return;const n=new Date(1e3*t.start_date),a=this.formatDateForCalendar(n);e[a]||(e[a]=[]);const l=null==(s=null==(i=t.infos_status)?void 0:i.additionnals)?void 0:s.some((t=>!t.key||!Cy.includes(t.key))),c=null==(r=null==(o=t.infos_status)?void 0:o.additionnals)?void 0:r.some((t=>!!t.key&&Sy.includes(t.key)));e[a].push({isAvailable:l||!1,isWarning:c||!1})}));const i={};return Object.keys(e).forEach((t=>{const s=this.getModifierClass(e[t]);s&&(i[t]={modifier:s})})),i}getModifierClass(t){if(t.every((t=>!1===t.isAvailable)))return"calendar-danger-dot";return!!t.every((t=>!0===t.isWarning||!1===t.isAvailable))&&"calendar-warning-dot"}unsetSelectedDay(){var t;null==(t=this.calendar)||t.update({dates:!0}),this.selectedDay=null}render(){let t,e;if(this.selectedDay){const i=new Date(this.selectedDay);t=i.getTime()/1e3,e=new Date(i.getFullYear(),i.getMonth(),i.getDate(),23,59,59).getTime()/1e3}const i=Xd(this.align);return V`
      <div class="${t?"hidden":" @container"}">
        <div
          class="font-headings text-lg @2xl:text-xl @3xl:text-3xl @xl:leading-tight @3xl:leading-tight m-1 @3xl:mb-3 flex gap-2  items-center ${i}"
        >
          <sonic-icon library="custom" name="calendar-day"></sonic-icon> ${Ae("select_a_day")}
        </div>
        <sonic-fieldset class="@container mb-0">
          <div class="@md:flex gap-4 ${i}">
            <div id="calendarContainer" class=" @xl:text-lg @2xl:text-xl"></div>

            <div
              class=" grid-cols-1 gap-1 self-start @md:border-l @md:border-l-neutral-200 @md:pl-3 py-4 ${this.displayInfos?"grid":"hidden"}"
            >
              <div class="text-warning text-xs flex items-center font-bold gap-x-2">
                <span class="bg-warning size-3 warning-triangle"></span><span> ${Ae("sold_out_soon")}</span>
              </div>
              <div class="text-danger text-xs flex items-center font-bold gap-x-2">
                <span class="bg-danger rounded-full size-3"></span> <span> ${Ae("sold_out_or_canceled")}</span>
              </div>
            </div>
          </div>
        </sonic-fieldset>
      </div>

      ${this.selectedDay&&this.id?V`<sonic-tooltip label="${Ae("back_to_calendar")}">
              <sonic-button type="primary" size="lg" @click=${this.unsetSelectedDay} class="mb-3 cursor-pointer">
                <span class="font-bold flex gap-3">
                  <sonic-date date=${li(t)} noAutoFill hour="hidden" minute="hidden"></sonic-date>
                  <span class="border-l-[1px] border-current block self-stretch "></span>
                  <sonic-icon library="custom" name="xmark" class="self-center"></sonic-icon>
                </span>
              </sonic-button>
            </sonic-tooltip>
            <!--
                Liste des séances du
                show filtrées par date
            -->
            <sonic-list
              fetch
              loader="inline"
              dataProvider="shows/${this.id}?view=essential&from=${t}&to=${e}&clean_sessions_data=true"
              class="grid gap-3 grid-cols-1"
              key="data.sessions"
            >
              <template>
                <sonic-event-session-card onlyHours></sonic-event-session-card>
              </template>
            </sonic-list>`:Z}
    `}};Ay.styles=[_y,Qs,l`
      .calendar-danger-dot::before,
      .calendar-danger-dot::after,
      .calendar-warning-dot::before,
      .calendar-warning-dot::after {
        width: 13px;
        height: 13px;
        display: inline-flex;
        vertical-align: middle;
        border-radius: 50%;
        content: "";
        position: absolute;
        top: -1px;
        left: 1px;
        z-index: 3;
      }

      /*OMBRE*/
      .calendar-danger-dot::after,
      .calendar-warning-dot::after {
        transform: scale(1.3);
        z-index: 2;
        background-color: var(--sc-base);
      }

      .calendar-warning-dot::after,
      .calendar-warning-dot::before {
        border-radius: 0;
        clip-path: polygon(50% 0, 0 100%, 100% 100%);
      }

      .warning-triangle {
        clip-path: polygon(50% 0, 0 100%, 100% 100%);
      }

      .calendar-warning-dot::before {
        background-color: var(--sc-warning);
      }
      .calendar-danger-dot::before {
        background-color: var(--sc-danger);
      }
      .calendar-warning-dot {
        --sc-base-content: var(--sc-warning);
      }
      .calendar-warning-dot:focus,
      .calendar-warning-dot:hover {
        color: var(--sc-warning-content) !important;
      }

      .calendar-danger-dot {
        --sc-base-content: var(--sc-danger);
      }

      .calendar-danger-dot:focus,
      .calendar-danger-dot:hover {
        color: var(--sc-danger-content) !important;
      }
    `],Py([bt("#calendarContainer")],Ay.prototype,"calendarContainer",2),Py([Kd({context:tv}),ft({type:String})],Ay.prototype,"formType",2),Py([ft({type:Array})],Ay.prototype,"sessions",2),Py([ft({type:Array})],Ay.prototype,"dates",2),Py([vt()],Ay.prototype,"selectedDay",2),Py([vt()],Ay.prototype,"displayInfos",2),Py([Kd({context:Qd,subscribe:!0}),ft({type:String,reflect:!0})],Ay.prototype,"align",2),Ay=Py([ut("sonic-buy-calendar")],Ay);var Oy=Object.defineProperty,Ey=Object.getOwnPropertyDescriptor,Ty=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Ey(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Oy(e,i,r),r};let My=class extends(Le(pt)){constructor(){super(...arguments),this.sessions=[],this.selectedSession="",this.formType="select"}unsetSelectedSession(){this.selectedSession=""}setSession(t){this.selectedSession=t||""}render(){return V`
      <div class="${this.selectedSession?"hidden":" @container"}">
        <div class="@container">
          <div class="grid gap-3 grid-cols-1 @xl:grid-cols-2">
            ${Er(this.sessions,(t=>V`<sonic-event-card
                  tabindex="0"
                  class="cursor-pointer"
                  @keypress=${e=>{"Enter"===e.key&&this.setSession(t.id)}}
                  @click=${()=>this.setSession(t.id)}
                  dataProvider="eventListGroup/${t.id}"
                  noAutoFill
                  displayLocation
                  .props=${t}
                ></sonic-event-card>`))}
          </div>
        </div>
      </div>
      ${this.selectedSession?V`<sonic-fetch dataProvider="events/${this.selectedSession}?view=essential">
            <sonic-event-session-card alwaysExpanded expanded id=${this.selectedSession}>
              <div slot="prefix" class="flex">
                <sonic-product-title class="text-3xl  mb-4 text-left align-middle"></sonic-product-title>
                <sonic-tooltip label="${Ae("back_to_sessions")}" class="flex ml-auto self-start">
                  <sonic-button
                    shape="circle"
                    size="xl"
                    @click=${this.unsetSelectedSession}
                    class="translate-x-1 -translate-y-1"
                  >
                    <sonic-icon library="custom" name="xmark" class="self-center"></sonic-icon>
                  </sonic-button>
                </sonic-tooltip>
              </div>
            </sonic-event-session-card>
          </sonic-fetch>`:Z}
    `}};My.styles=[Qs],Ty([ft({type:Array})],My.prototype,"sessions",2),Ty([vt()],My.prototype,"selectedSession",2),Ty([Gd({context:tv}),ft({type:String})],My.prototype,"formType",2),My=Ty([ut("sonic-buy-list")],My);var Dy=Object.defineProperty,Ly=Object.getOwnPropertyDescriptor,jy=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Ly(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Dy(e,i,r),r};let Iy=class extends(Wo(_s(Le(pt)))){constructor(){super(...arguments),this.sessions=[],this.cleanData=!1,this.formType="select",this.formSize="sm",this.displayPast=!1,this.display="default"}connectedCallback(){this.isFetchEnabled=this.hasAttribute("fetch");const t=this.cleanData?"&clean_sessions_data=true":"",e=this.displayPast?"":"&next=true";this.isFetchEnabled&&this.id&&(this.dataProvider=`shows/${this.id}?view=essential${t+e}`,this.key="data"),super.connectedCallback()}render(){return this.props?"list"==this.display?V`<sonic-buy-list></sonic-buy-list>`:"calendar"==this.display?V`<sonic-buy-calendar></sonic-buy-calendar>`:V`<sonic-list subDataProvider="sessions" class="grid gap-3 grid-cols-1">
        <template>
          <sonic-event-session-card></sonic-event-session-card>
        </template>
      </sonic-list>`:Z}};Iy.styles=[Qs,l`
      :host {
        display: block;
      }
    `],jy([ft({type:Array})],Iy.prototype,"sessions",2),jy([ft({type:Boolean})],Iy.prototype,"cleanData",2),jy([Gd({context:tv}),ft({type:String})],Iy.prototype,"formType",2),jy([ft({type:String})],Iy.prototype,"formSize",2),jy([ft({type:Boolean})],Iy.prototype,"displayPast",2),jy([ft({type:String})],Iy.prototype,"display",2),jy([Gd({context:Qd}),ft({type:String})],Iy.prototype,"align",2),Iy=jy([ut("sonic-buy")],Iy);var zy=Object.defineProperty,By=Object.getOwnPropertyDescriptor,Ry=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?By(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&zy(e,i,r),r};let Ny=class extends(Le(pt)){constructor(){super(...arguments),this.id="",this.slug="",this.start_date="",this.illustration="",this.categories=[],this.labels=[],this.event_id="",this.multisession=null,this.skeleton=!1}render(){return this.skeleton?this.renderSkeleton():V`
      <sonic-app-link to="event" .slug=${this.slug} variant="unstyled" class="contents ">
        <div
          class="sonic-event-card no-underline relative rounded-lg overflow-hidden @container group hover:scale-[103%] transition hover:shadow-xl"
        >
          <sonic-vertical-date
            class="py-4 inline-block text-contrast-content p-4 @sm:p-5 @md:p-6 absolute top-0 left-0 z-20 text-xs @sm:text-sm @md:text-base leading-none @sm:leading-none @md:leading-none"
          ></sonic-vertical-date>
          <sonic-product-illustration transition="fade-scale-out"></sonic-product-illustration>
          <div class="absolute z-20 bottom-0 text-contrast-content p-4 @xs:p-5 @sm:p-6 flex flex-col gap-1 @sm:gap-2">
            <sonic-product-title
              class="font-headings font-weight-headings font-style-headings text-lg @xs:text-xl @sm:text-2xl @lg:text-3xl leading-tight @xs:leading-tight @sm:leading-tight @md:leading-tight @lg:leading-tight"
            ></sonic-product-title>

            <div class="text-xs @md:text-sm flex flex-wrap gap-1 gap-x-2 items-center">
              ${this.id?V`<sonic-event-additional-status
                    fetch
                    dataProvider="shows/${this.id}/status"
                    visibility="public"
                    size="inherit"
                    variant="default"
                    class="flex flex-wrap gap-x-3 gap-y-1"
                  ></sonic-event-additional-status>`:Z}
              <sonic-event-scheduled-status variant="default" size="inherit"></sonic-event-scheduled-status>
              <sonic-event-taxonomy
                .taxonomy=${this.labels}
                key="label"
                size="inherit"
                class="block"
              ></sonic-event-taxonomy>

              <sonic-event-taxonomy
                .icon=${{library:"custom",prefix:"regular",name:"tag"}}
                .taxonomy=${this.categories}
                variant="ghost"
                contrast
                key="category"
                size="inherit"
                class="block"
              >
              </sonic-event-taxonomy>
            </div>
          </div>

          <div class="absolute inset-0 z-10 bg-gradient-to-br from-[rgba(0,0,0,.25)] to-[rgba(0,0,0,0)]"></div>
          <div class="absolute inset-0 z-10 bg-gradient-to-t from-[rgba(0,0,0,.25)] to-[rgba(0,0,0,0)]"></div>
        </div>
      </sonic-app-link>
    `}renderSkeleton(){return V`<div class="aspect-square bg-neutral-50 rounded-lg relative @container ">
      <div
        class="animate-pulse z-20 absolute top-4 @xs:top-5 @sm:top-6 left-4 @xs:left-5 @sm:left-6 rounded-md h-28 w-[5rem] bg-neutral-100"
      ></div>
      <div class="absolute z-20 bottom-0 text-contrast-content p-4 @xs:p-5 @sm:p-6  w-full ">
        <div class="animate-pulse leading-none block mb-1  bg-neutral-100 rounded-sm h-10 w-2/3 mb-2"></div>
        <div class="animate-pulse text-xs leading-tight block  bg-neutral-100 rounded-sm h-7 w-1/3 mb-4"></div>
        <div class="animate-pulse leading-none block mb-2 bg-neutral-100 rounded-sm h-5 w-1/2 "></div>
      </div>
    </div> `}};Ny.styles=[Qs],Ry([ft({type:String})],Ny.prototype,"id",2),Ry([ft({type:String})],Ny.prototype,"slug",2),Ry([ft({type:String})],Ny.prototype,"start_date",2),Ry([ft({type:String})],Ny.prototype,"illustration",2),Ry([ft({type:Array})],Ny.prototype,"categories",2),Ry([ft({type:Array})],Ny.prototype,"labels",2),Ry([ft({type:String})],Ny.prototype,"event_id",2),Ry([ft({type:Object})],Ny.prototype,"multisession",2),Ry([ft({type:Boolean})],Ny.prototype,"skeleton",2),Ny=Ry([ut("sonic-event-card-cover")],Ny);var Fy=Object.defineProperty,qy=Object.getOwnPropertyDescriptor,Hy=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?qy(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Fy(e,i,r),r};let Uy=class extends(_s(Le(pt))){constructor(){super(...arguments),this.edito={},this.sessions=[],this.site_link="",this.noRelated=!1,this.noNavigation=!1}connectedCallback(){this.isFetchEnabled=this.hasAttribute("fetch"),this.isFetchEnabled&&this.id&&(this.key="data",this.dataProvider=`shows/${this.id}?clean_sessions_data=true&view=essential&next=true`),super.connectedCallback()}render(){var t,e,i;return this.isWaiting?Z:this.props?V`
      <div class="@container">
        <div class="grid grid-cols-1 @4xl:grid-cols-2 gap-5 @4xl:gap-12">
          <!-- ILLUSTRATION MOBILE -->
          <div class="overflow-hidden rounded-lg @4xl:hidden relative ">
            ${this.noNavigation?Z:V`<div class="absolute top-5 left-4 z-10">
                  <sonic-button
                    data-aria-label=${li(Ae("back"))}
                    goBack=${ao("home")}
                    shape="circle"
                    noAutoFill
                    variant="unstyled"
                    class="text-2xl text-contrast-content drop-shadow-md"
                  >
                    <sonic-icon library="custom" name="arrow-left"></sonic-icon>
                  </sonic-button>
                </div>`}

            <sonic-product-illustration
              class="illustrationMobile"
              noFallback
              objectPosition="center top"
            ></sonic-product-illustration>
          </div>

          <!-- MAIN -->
          <div>
            ${this.noNavigation?Z:V` <div class="mb-3 relative hidden @4xl:block ">
                  <sonic-button
                    data-aria-label=${li(Ae("back"))}
                    icon
                    goBack=${ao("home")}
                    shape="circle"
                    size="sm"
                    noAutoFill
                  >
                    <sonic-icon library="custom" name="arrow-left"></sonic-icon>
                  </sonic-button>
                </div>`}

            <div class="mb-3">
              <sonic-product-title
                class="text-3xl md:text-5xl md:leading-[1.1] font-headings font-weight-headings font-style-headings block"
              ></sonic-product-title>
            </div>
            <div class="text-sm lg:text-base grid grid-cols-1 gap-1 mb-7">
              <div class="flex flex-wrap items-center gap-x-3 gap-y-2 mb-3 lg:mb-5">
                <sonic-event-scheduled-status size="inherit" variant="default"></sonic-event-scheduled-status>
                <sonic-event-taxonomies size="inherit" class="contents"></sonic-event-taxonomies>
              </div>
              <sonic-event-location-hall isEvent="true" class="w-full @md:w-auto "></sonic-event-location-hall>
              <sonic-event-duration class="w-full @md:w-auto "></sonic-event-duration>
            </div>

            ${(null==(t=this.edito)?void 0:t.body)?V`<div class="block mb-8 prose">${_e(null==(e=this.edito)?void 0:e.body)}</div> `:Z}
            ${this.site_link?V` <sonic-event-site-link
                  class="block text-sm mb-8 ${(null==(i=this.edito)?void 0:i.body)?"-mt-5":"-mt-1"} "
                ></sonic-event-site-link>`:Z}

            <sonic-buy></sonic-buy>
          </div>

          <!-- ASIDE -->
          <div class="hidden @4xl:block">
            <sonic-product-illustration
              transition="fade-scale-out"
              rounded="lg"
              class="sticky top-4"
              noFallback
            ></sonic-product-illustration>
          </div>
        </div>

        ${this.noRelated?Z:V` <sonic-related id="${this.id}"></sonic-related> `}
      </div>
    `:Z}};Uy.styles=[Qs],Hy([ft({type:Object})],Uy.prototype,"edito",2),Hy([ft({type:Array})],Uy.prototype,"sessions",2),Hy([ft({type:String})],Uy.prototype,"site_link",2),Hy([ft({type:Boolean})],Uy.prototype,"noRelated",2),Hy([ft({type:Boolean})],Uy.prototype,"noNavigation",2),Hy([Us("sonicTicketApp.isWaiting"),vt()],Uy.prototype,"isWaiting",2),Uy=Hy([ut("sonic-event-page")],Uy);var Vy=Object.defineProperty,Wy=Object.getOwnPropertyDescriptor,Zy=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Wy(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Vy(e,i,r),r};let Yy=class extends(Le(pt)){constructor(){super(...arguments),this._isGuichet=!1,this.title="",this.body="",this.infos_status={publication:""},this.illustration="",this.wording_non_dispo_en_ligne="",this.routes={}}get isGuichet(){return this._isGuichet||(this._isGuichet=this.hasAncestorAttribute("is_guichet"))}set isGuichet(t){this._isGuichet=t}render(){var t,e;return this.props?V`
      <div class="@container group max-w-[80rem] ">
        <div
          class="grid grid-cols-1 @md:grid-cols-[minmax(0,_12rem),_minmax(0,_3fr)] border border-neutral-100 rounded-lg gap-5 p-5 "
        >
          <div>
            <sonic-product-illustration rounded="md"></sonic-product-illustration>
          </div>
          <div class="flex flex-col gap-2">
            <div class="flex flex-grow">
              <sonic-product-title class="text-2xl font-bold flex-grow self-end"></sonic-product-title>
              <div class="-mt-4 -mr-2">${this.renderMenu()}</div>
            </div>
            <sonic-if .condition=${!!(null==(t=this.props.edito)?void 0:t.body)}>
              <div class="prose prose-sm prose-tight block">${_e(null==(e=this.props.edito)?void 0:e.body)}</div>
            </sonic-if>
            <sonic-event-additional-status
              visibility="public"
              variant="ghost"
              size="lg"
              class="flex mt-4 flex-wrap gap-3"
            ></sonic-event-additional-status>
            <sonic-prices-form
              buttonType="primary"
              formType="buttons"
              type="giftcard"
              item_id=${this.id||""}
              noPriceName
              size="sm"
              class="flex-grow"
            ></sonic-prices-form>
          </div>
        </div>
      </div>
    `:Z}renderMenu(){return this.isGuichet?V`<sonic-pop>
      <sonic-pop placement="bottom">
        <sonic-button shape="circle" variant="ghost" icon>
          <sonic-icon library="custom" name="ellipsis-vertical"></sonic-icon>
        </sonic-button>
        <sonic-menu slot="content" minWidth="12rem">
          ${this.menuItemMarkup("edit")} ${this.menuItemMarkup("sales",{divider:"before"})}
        </sonic-menu>
      </sonic-pop>
    </sonic-pop>`:Z}menuItemMarkup(t,e={}){var i;const s=null==(i=this.routes)?void 0:i[t];return s&&s.url?V`
      ${"before"==e.divider||"both"==e.divider?V`<sonic-divider></sonic-divider>`:Z}
      <sonic-menu-item href="${s.url}" type=${li(e.type)}>
        <sonic-icon name="${li(s.icon)}" library="custom" slot="prefix"></sonic-icon>
        ${s.title}
      </sonic-menu-item>
      ${"after"==e.divider||"both"==e.divider?V`<sonic-divider></sonic-divider>`:Z}
    `:Z}};Yy.styles=[Qs],Zy([ft({type:Boolean})],Yy.prototype,"isGuichet",1),Zy([ft({type:String})],Yy.prototype,"title",2),Zy([ft({type:String})],Yy.prototype,"body",2),Zy([ft({type:Object})],Yy.prototype,"infos_status",2),Zy([ft({type:String})],Yy.prototype,"illustration",2),Zy([ft({type:String})],Yy.prototype,"wording_non_dispo_en_ligne",2),Zy([ft({type:Object})],Yy.prototype,"routes",2),Yy=Zy([ut("sonic-giftcard")],Yy);var Gy=Object.defineProperty,Ky=Object.getOwnPropertyDescriptor,Qy=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Ky(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Gy(e,i,r),r};let Xy=class extends(Le(pt)){constructor(){super(...arguments),this.displayTitle=!1,this.displayText=!1,this.smallTitle=!1}render(){return V`<sonic-page-layout
      pageTitle=${Ae("LIB_cartes_cadeaux")}
      pageText=${Ae("message_front_cartes_cadeaux")}
      ?smallTitle=${this.smallTitle}
      ?displayTitle=${this.displayTitle}
      ?displayText=${this.displayText}
      ><sonic-list loader="inline" fetch dataProvider="giftcards?next=1" class="grid grid-cols-1 gap-4">
        <template data-value="no-item">
          <sonic-no-result></sonic-no-result>
        </template>
        <template>
          <sonic-giftcard></sonic-giftcard>
        </template>
      </sonic-list>
    </sonic-page-layout>`}};Xy.styles=[Qs],Qy([ft({type:Boolean})],Xy.prototype,"displayTitle",2),Qy([ft({type:Boolean})],Xy.prototype,"displayText",2),Qy([ft({type:Boolean})],Xy.prototype,"smallTitle",2),Xy=Qy([ut("sonic-giftcards")],Xy);var Jy=Object.defineProperty,tb=Object.getOwnPropertyDescriptor,eb=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?tb(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Jy(e,i,r),r};let ib=class extends(Le(pt)){constructor(){super(...arguments),this.urlBase="",this.displayTitle=!1,this.displayText=!1,this.smallTitle=!1}connectedCallback(){const t=new URLSearchParams(window.location.search);this.hash||(this.hash=t.get("subscription_hash")||""),this.type||(this.type=t.get("subscription_type")||""),super.connectedCallback()}render(){if(this.isWaiting)return Z;const t=this.hash?"/"+this.hash:"",e=this.type?"?type="+this.type:"",i=t||e;return V`<sonic-page-layout
      ?smallTitle=${this.smallTitle}
      ?displayTitle=${this.displayTitle}
      ?displayText=${this.displayText}
      pageTitle=${Ae("onglet_home_abonnements")}
      ><sonic-iframe src="/abonnements${i}" title="${Ae("onglet_home_abonnements")}"></sonic-iframe
    ></sonic-page-layout>`}};eb([ft({type:String})],ib.prototype,"urlBase",2),eb([ft({type:String})],ib.prototype,"hash",2),eb([ft({type:String})],ib.prototype,"type",2),eb([ft({type:Boolean})],ib.prototype,"displayTitle",2),eb([ft({type:Boolean})],ib.prototype,"displayText",2),eb([ft({type:Boolean})],ib.prototype,"smallTitle",2),eb([Us("sonicTicketApp.isWaiting"),vt()],ib.prototype,"isWaiting",2),ib=eb([ut("sonic-subscription")],ib);var sb=Object.defineProperty,ob=Object.getOwnPropertyDescriptor,rb=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?ob(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&sb(e,i,r),r};let nb=class extends(Le(pt)){constructor(){super(...arguments),this.online_payment_id=0,this.cart_id="",this.quickBuy=!1,this.create_account=!1,this.wording_create_account=""}connectedCallback(){const t=new URLSearchParams(window.location.search);var e;this.online_payment_id||(this.online_payment_id=t.get("payment_id")||(null==(e=be("settings.online_payment_id").values().next().value)?void 0:e.get())),this.cart_id||(this.cart_id=t.get("cart_id")||t.get("sonic_cart_id")||""),this.create_account||(this.create_account=!!t.get("create_account")||!1),this.quickBuy||(this.quickBuy=!!t.get("quick_buy")),super.connectedCallback()}render(){const t=ao("checkout"),e=ao("cart"),i=!this.userId&&!this.quickBuy&&!this.cart_id;return!this.create_account||this.quickBuy||this.cart_id?i?V`<sonic-user-form-login
        createAccount
        checkout
        class="mt-8 mx-auto  block w-full"
      ></sonic-user-form-login>`:this.cart_id?V`<sonic-iframe src="/paiement/${this.cart_id}"></sonic-iframe>`:this.quickBuy?V`<sonic-page-header
          goBackHref="${this.hash&&e?e:t}"
          label="${Ae("link_title_quick_purchase")}"
        ></sonic-page-header
        ><sonic-iframe src="/validation/${this.online_payment_id}?no_title=true&quick_buy=true"></sonic-iframe>`:this.cart_id||this.quickBuy?Z:V` <sonic-iframe src="/validation/${this.online_payment_id}"></sonic-iframe>`:V`<sonic-page-header goBack label="${this.wording_create_account}"></sonic-page-header>
        <sonic-user-form-create paymentId=${this.online_payment_id}></sonic-user-form-create>`}};nb.styles=[Qs],rb([ft({type:Number})],nb.prototype,"online_payment_id",2),rb([ft({type:String})],nb.prototype,"cart_id",2),rb([ft({type:Boolean})],nb.prototype,"quickBuy",2),rb([ft({type:Boolean})],nb.prototype,"create_account",2),rb([ft({type:String})],nb.prototype,"wording_create_account",2),rb([Us("user.id"),ft({type:String})],nb.prototype,"userId",2),rb([Us("cart/payment-link.hash"),ft({type:String})],nb.prototype,"hash",2),nb=rb([ut("sonic-checkout")],nb);var ab=Object.defineProperty,lb=Object.getOwnPropertyDescriptor,cb=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?lb(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&ab(e,i,r),r};let db=class extends(Le(pt)){constructor(){super(...arguments),this.langs=[],this.wording_page_available_in_multiple_languages=""}willUpdate(t){if(t.has("langs")||t.has("wording_page_available_in_multiple_languages")){if(this.langs.length<2)return;const t=document.documentElement.lang.split("-")[0];if(window.navigator.language.split("-")[0]!=t&&(t=>{const e=Se.publisher["wording_"+t].get();return""!==e&&null!=e})("page_available_in_multiple_languages")&&!localStorage.getItem("SonicSelectedLanguage")){const t={text:`${this.wording_page_available_in_multiple_languages} <br />\n            <div style="margin-top:.25em">\n              ${this.langs.map((t=>`<sonic-button\n          href="?language=${t}"\n          autoActive="disabled" \n          shape="circle"\n          variant="outline"\n          size="xs"\n          onClick="localStorage.setItem('SonicSelectedLanguage', '${t}')"\n          ><span style="text-transform:uppercase">${t}</span></sonic-button\n        >`)).join(" ")}\n            </div>`,id:"language-menu-toast",status:"info",preserve:!0,dismissForever:!0};Ki.add(t)}}super.willUpdate(t)}render(){return this.langs.length>1?V`<div class="flex flex-wrap gap-1 items-center">
        <!-- <sonic-icon name="translate" library="custom"></sonic-icon> -->
        ${this.langs.map((t=>{var e;return V`<sonic-button
            href="?language=${t}"
            autoActive="disabled"
            ?active=${t.split("-")[0]==(null==(e=kt.getLanguage())?void 0:e.split("-")[0])}
            shape="circle"
            size="xs"
            @click=${()=>localStorage.setItem("SonicSelectedLanguage",t)}
            ><span class="uppercase">${t}</span></sonic-button
          > `}))}
      </div>`:Z}};db.styles=[Qs],cb([ft({type:Array})],db.prototype,"langs",2),cb([ft({type:String})],db.prototype,"wording_page_available_in_multiple_languages",2),db=cb([ut("sonic-language-menu")],db);var pb=Object.defineProperty,hb=Object.getOwnPropertyDescriptor,ub=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?hb(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&pb(e,i,r),r};let mb=class extends(Le(pt)){constructor(){super(...arguments),this.displayOffCanvas=!1,this.logoSrc="",this.modules={}}handleRoutes(){this.href_agenda||(this.href_agenda=ao("agenda").toString()),this.href_subscription||(this.href_subscription=ao("subscription").toString()),this.href_giftcards||(this.href_giftcards=ao("giftcards").toString()),this.href_carpooling||(this.href_carpooling=ao("carpooling").toString())}render(){var t,e,i,s,o,r,n,a,l,c;return this.handleRoutes(),V`<div
      class="${this.displayOffCanvas?"":"hidden"} fixed flex flex-col inset-0 px-cgx py-cgy bg-neutral-0 overflow-auto z-[980]"
    >
      <sonic-header closeOffCanvas></sonic-header>

      <div class="grow flex flex-col items-start gap-4 lg:gap-5 mt-7 lg:mt-8 mb-[2rem]">
        ${this.href_agenda&&(null==(e=null==(t=this.modules)?void 0:t.agenda)?void 0:e.access)?this.renderMenuItem(this.href_agenda,"calendar-day","module_agenda_title"):Z}
        ${this.href_subscription&&(null==(s=null==(i=this.modules)?void 0:i.subscription)?void 0:s.access)?this.renderMenuItem(this.href_subscription,"address-card","onglet_home_abonnements"):Z}
        ${this.href_giftcards&&(null==(r=null==(o=this.modules)?void 0:o.giftcards)?void 0:r.access)?this.renderMenuItem(this.href_giftcards,"gift-card","LIB_cartes_cadeaux"):Z}
        ${this.href_shop&&(null==(a=null==(n=this.modules)?void 0:n.shop)?void 0:a.access)?this.renderMenuItem(this.href_shop,"bags-shopping","module_shop_title"):Z}
        ${this.href_carpooling&&(null==(c=null==(l=this.modules)?void 0:l.carpooling)?void 0:c.access)?this.renderMenuItem(this.href_carpooling,"car-side","module_carpooling_title"):Z}
      </div>

      <sonic-language-menu dataProvider="settings" class="mb-6"></sonic-language-menu>
      <sonic-footer class="p-0" hideBottomMobile dataProvider="settings"></sonic-footer>
    </div>`}renderMenuItem(t,e,i){return V`<sonic-button variant="unstyled" class="main-menu-item" href=${t} data-aria-label=${Ae(i)}
      ><div class="items-center group inline-flex gap-x-[.3em]">
        <sonic-icon
          library="custom"
          prefix="light"
          class=" group-hover:opacity-0 transition-scale duration-200 group-hover:scale-[1.1]"
          name=${e}
        ></sonic-icon>
        <sonic-icon
          library="custom"
          prefix="thin"
          class="group-hover:opacity-100 absolute opacity-0 transition-transform  duration-100  
          ease-[cubic-bezier(0.16,0.69,0.54,1.15)] group-hover:scale-[1.15]"
          name=${e}
        ></sonic-icon
        ><span class="font-headings font-weight-headings font-style-headings">${Ae(i)}</span>
      </div></sonic-button
    >`}};mb.styles=[Qs,l`
      .main-menu-item {
        display: flex;
        align-items: center;
        gap: 0.6em;
        font-weight: bold;
        font-size: 2rem;
      }
      @media (min-width: 992px) {
        .main-menu-item {
          font-size: 2rem;
        }
      }
      @media (min-width: 1200px) {
        .main-menu-item {
          font-size: 2.5rem;
        }
      }
      .main-menu-item:focus,
      .main-menu-item:hover {
        color: var(--sc-primary);
      }
      .main-menu-item[active] {
        color: var(--sc-primary);
        text-underline-offset: 0.2em;
        text-decoration: underline;
      }
    `],ub([ft({type:Boolean})],mb.prototype,"displayOffCanvas",2),ub([ft({type:String})],mb.prototype,"logoSrc",2),ub([Us("settings.modules"),ft({type:Object})],mb.prototype,"modules",2),mb=ub([ut("sonic-off-canvas")],mb);var gb=Object.defineProperty,fb=Object.getOwnPropertyDescriptor,vb=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?fb(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&gb(e,i,r),r};let yb=class extends(Le(pt)){constructor(){super(...arguments),this.brand={},this._svgSsks='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 242.8 62.9" fill="currentColor"><path d="M65.8 53c.5.4 1 .8 1.2 1.3.3.6.5 1.2.5 2a3.5 3.5 0 0 1-1.7 3 3 3 0 0 1-1.8.5c-1 0-1.7-.3-2.2-.9v.8h-2v-9.6h2v3.4a3 3 0 0 1 2.2-.9 4 4 0 0 1 1.8.5Zm-.9 4.6c.3-.3.5-.8.5-1.4s-.2-1-.5-1.4c-.3-.3-.7-.5-1.3-.5s-1 .1-1.2.5c-.4.4-.5.8-.5 1.4s.1 1 .5 1.4c.3.4.7.6 1.2.6s1-.2 1.3-.6Zm4.1-6.2c-.3-.2-.4-.5-.4-.8s.1-.6.3-.8c.3-.2.6-.3 1-.3s.6 0 .9.3c.2.2.3.5.3.8 0 .3-.1.6-.3.8-.3.2-.6.3-1 .3s-.6 0-.9-.3Zm-.2 1.3h2v7h-2v-7Zm4-2.7h2v9.7h-2v-9.6Zm3.9 0h2v9.7h-2v-9.6Zm10.7 6.8H82c.1.4.3.8.7 1 .3.3.8.4 1.3.4.4 0 .7 0 1-.2l.8-.5 1 1.2c-.6.8-1.6 1.1-2.8 1.1-.8 0-1.5-.1-2.1-.4-.6-.3-1.1-.8-1.4-1.3a3.7 3.7 0 0 1 0-3.7c.3-.6.7-1 1.3-1.3.6-.3 1.2-.5 2-.5s1.2.2 1.8.5c.5.3 1 .7 1.3 1.2a3.7 3.7 0 0 1 .4 2.5Zm-4.8-2.3c-.3.3-.5.7-.5 1.1h3.4c0-.4-.2-.8-.6-1-.3-.3-.6-.5-1.1-.5s-.8.2-1.2.4Zm10.7 4.9a2 2 0 0 1-.7.3 4 4 0 0 1-1 .1c-.8 0-1.4-.2-1.9-.6-.5-.4-.7-1-.7-1.9v-2.9h-1V53h1v-1.7h2V53h1.8v1.5h-1.7v2.9c0 .3 0 .5.2.7l.6.2c.3 0 .6 0 .8-.2l.6 1.4Zm5.5 0a2 2 0 0 1-.7.3 4 4 0 0 1-1 .1c-.8 0-1.4-.2-1.9-.6-.5-.4-.7-1-.7-1.9v-2.9h-1V53h1v-1.7h2V53h1.8v1.5h-1.7v2.9c0 .3 0 .5.2.7l.6.2c.3 0 .6 0 .8-.2l.6 1.4Zm7.7-2.6h-5.3c.1.4.3.8.7 1 .4.3.8.4 1.3.4.4 0 .7 0 1-.2.3 0 .5-.2.8-.5l1 1.2c-.6.8-1.5 1.1-2.8 1.1-.8 0-1.5-.1-2.1-.4a3.3 3.3 0 0 1-1.9-3.2 3.5 3.5 0 0 1 1.8-3.1c.6-.3 1.2-.5 2-.5s1.2.2 1.8.5c.6.3 1 .7 1.3 1.2a3.7 3.7 0 0 1 .4 2.5Zm-4.7-2.3c-.3.3-.5.7-.6 1.1h3.5c-.1-.4-.3-.8-.6-1-.3-.3-.7-.5-1.2-.5s-.8.2-1.1.4Zm9-1.6c.4-.2 1-.3 1.5-.3v1.9h-.5c-.6 0-1 .1-1.4.5s-.5.8-.5 1.4v3.3h-2v-7h2v1c.2-.4.5-.7 1-.8Zm2.8-1.5c-.3-.2-.4-.5-.4-.8s.1-.6.4-.8c.2-.2.5-.3.9-.3s.7 0 .9.3c.2.2.3.5.3.8 0 .3 0 .6-.3.8-.2.2-.6.3-1 .3s-.6 0-.8-.3Zm-.1 1.3h2v7h-2v-7Zm10.7 4.1h-5.3c0 .4.3.8.7 1 .3.3.8.4 1.3.4.4 0 .7 0 1-.2.3 0 .5-.2.8-.5l1 1.2c-.6.8-1.6 1.1-2.8 1.1-.8 0-1.5-.1-2.1-.4a3.3 3.3 0 0 1-2-3.2 3.5 3.5 0 0 1 2-3.1c.5-.3 1.1-.5 1.8-.5s1.3.2 1.9.5c.5.3 1 .7 1.3 1.2a3.7 3.7 0 0 1 .4 2.5Zm-4.8-2.3c-.3.3-.5.7-.5 1.1h3.4c0-.4-.2-.8-.5-1-.4-.3-.7-.5-1.2-.5s-.8.2-1.1.4Zm7.6 2.2-.1-.5c0-.2 0-.4.2-.5l.5-.2a.7.7 0 0 1 .7.7c0 .2 0 .4-.2.5l-.5.2c-.2 0-.4 0-.5-.2Zm5.8 2.6c-.5-.2-1-.7-1.2-1.2-.3-.5-.5-1.1-.5-1.8a3.4 3.4 0 0 1 1.7-3 4 4 0 0 1 1.8-.5c.6 0 1.2.1 1.6.4.5.2.9.5 1.1 1l-.7.5c-.2-.4-.5-.6-.8-.8s-.8-.3-1.2-.3c-.4 0-.9.2-1.3.4s-.7.5-1 1l-.2 1.3c0 .5 0 1 .3 1.4a2.4 2.4 0 0 0 2.2 1.3c.5 0 .8-.1 1.2-.3s.6-.4.8-.7l.7.4a2 2 0 0 1-1 1 3 3 0 0 1-1.6.4c-.7 0-1.3-.2-1.9-.4Zm8.2-6.1c.4-.3 1-.4 1.6-.4v1h-.3c-.7 0-1.2.1-1.6.6-.4.4-.6 1-.6 1.8v3.5h-1V53h1v1.3c.1-.5.4-.8.9-1Zm13.8.4c.5.5.7 1.2.7 2.1v4h-1v-3.9c0-.7 0-1.2-.4-1.6-.4-.4-.8-.5-1.5-.5s-1.2.2-1.6.6-.7 1-.7 1.8v3.6h-.9v-3.9c0-.7-.1-1.2-.5-1.6a2 2 0 0 0-1.4-.5c-.7 0-1.3.2-1.7.6-.4.5-.6 1-.6 1.8v3.6h-1V53h1v1c.2-.4.5-.7 1-1a3.2 3.2 0 0 1 2.9.1c.4.2.8.6 1 1 .2-.4.6-.7 1-1 .5-.2 1-.4 1.7-.4.8 0 1.5.3 2 .8Zm4.4 3.1-.2-.5c0-.2 0-.4.2-.5l.5-.2a.7.7 0 0 1 .7.7l-.2.5-.5.2c-.2 0-.4 0-.5-.2Zm14.8-3.8-2.7 6.8h-.8l-2.2-5.6-2.1 5.6h-1l-2.5-6.8h.9l2.1 5.8 2.2-5.8h.8l2.2 5.8 2.2-5.8h.8Zm7 3.7h-5.6c0 .7.3 1.3.8 1.7s1.1.7 1.9.7a2 2 0 0 0 1.1-.3l1-.6.5.6a3.9 3.9 0 0 1-2.6 1.1c-.8 0-1.4-.2-2-.5s-.9-.7-1.2-1.2a3.5 3.5 0 0 1 0-3.6 3.2 3.2 0 0 1 2.9-1.7c.6 0 1.2.2 1.7.5s.9.7 1.2 1.2.4 1.1.4 1.8v.3Zm-4.9-2.4c-.4.5-.7 1-.7 1.7h4.8c0-.7-.3-1.2-.7-1.6-.5-.5-1-.7-1.7-.7s-1.2.2-1.7.6Zm12.2-.9c.5.3.9.7 1.2 1.2.3.5.4 1.1.4 1.8s-.1 1.3-.4 1.8c-.3.5-.7 1-1.3 1.2a3.5 3.5 0 0 1-3.2.1c-.5-.2-.9-.6-1.1-1v1.3h-1v-9.6h1v4l1.1-1 1.5-.3c.6 0 1.2.2 1.7.5Zm-.6 5.3a2.5 2.5 0 0 0 1.3-2.3c0-.5-.1-1-.3-1.4l-1-1c-.3-.1-.8-.3-1.3-.3s-.9.1-1.3.4c-.4.2-.7.5-.9 1s-.3.8-.3 1.3.1 1 .3 1.4a2.6 2.6 0 0 0 2.2 1.3c.5 0 1-.2 1.3-.4Zm5.3-1.9c-.2-.1-.2-.3-.2-.5l.2-.5.5-.2a.7.7 0 0 1 .7.7l-.2.5-.5.2c-.2 0-.4 0-.5-.2Zm9.1-3.2c.5.4.7 1.1.7 2v4.2h-.8v-1a2 2 0 0 1-1 .8c-.4.2-.8.3-1.4.3-.8 0-1.4-.2-1.8-.6-.5-.3-.7-.8-.7-1.4s.2-1 .6-1.4c.4-.4 1.1-.5 2-.5h2.2v-.5c0-.6-.2-1-.5-1.3a2 2 0 0 0-1.4-.5l-1.3.2-1 .6-.4-.7c.3-.3.7-.5 1.2-.6l1.6-.3c.8 0 1.5.2 2 .7Zm-1 5.2c.4-.2.6-.6.8-1v-1.2h-2.1c-1.2 0-1.8.5-1.8 1.3 0 .4.2.7.5.9.3.2.7.3 1.2.3s1 0 1.4-.3Zm9.5-5.4c.5.3 1 .7 1.2 1.2a3.7 3.7 0 0 1 0 3.6 3 3 0 0 1-1.2 1.3 3.5 3.5 0 0 1-3.2 0c-.5-.2-.8-.5-1.1-1v3.8h-1V53h1v1.3c.2-.4.6-.8 1-1 .5-.2 1-.4 1.6-.4.6 0 1.2.2 1.7.5Zm-.5 5.3c.4-.2.7-.5 1-1 .1-.3.3-.8.3-1.3s-.2-1-.4-1.4c-.2-.4-.5-.7-.9-1s-.8-.3-1.3-.3-1 .1-1.3.4-.7.5-1 1l-.2 1.3c0 .5 0 1 .3 1.4.2.4.5.7.9 1 .4.1.8.3 1.3.3s1-.2 1.3-.4Zm9.3-5.3c.6.3 1 .7 1.3 1.2.2.5.4 1.1.4 1.8s-.2 1.3-.4 1.8a3 3 0 0 1-1.3 1.2 3.5 3.5 0 0 1-3.2.1c-.5-.2-.8-.5-1.1-1v3.8h-1V53h1v1.3c.2-.4.6-.8 1-1 .5-.2 1-.4 1.6-.4.6 0 1.2.2 1.7.5Zm-.5 5.3a2.5 2.5 0 0 0 1.3-2.3c0-.5-.1-1-.4-1.4-.2-.4-.5-.7-.9-1s-.8-.3-1.3-.3-.9.1-1.3.4-.7.5-.9 1c-.2.3-.3.8-.3 1.3s0 1 .3 1.4a2.6 2.6 0 0 0 2.2 1.3c.5 0 1-.2 1.3-.4ZM36.3 41.3H33a7.7 7.7 0 0 1-7.1 4.2c-5 0-6.4-3-6.4-9.4v-7.2c0-3.2-3.1-3.3-3.1-3.3H23v6.8c0 7.3 0 11.4 4.6 11.4 3.4 0 5.4-2.4 5.4-7v-8c0-3-3.1-3.2-3.1-3.2h6.5v15.7ZM43 30.4a8 8 0 0 1 7.5-5.2c4.6 0 8.1 3.6 8.1 9 0 6.5-4.7 11.2-10.7 11.2-1.7 0-3.2-.3-4.7-.9v12.9h-3.4v-27H43Zm5.5 14c3.6 0 6.2-3.2 6.2-8.3 0-5.8-2.5-9-6-9-3 0-5.5 2.6-5.5 7V42a6.4 6.4 0 0 0 5.3 2.5ZM65 32.8c-1 0-1 .7-1 2.1 0 5.2 3 9 7.6 9a8 8 0 0 0 5.6-2.4l.4.6a9.8 9.8 0 0 1-8 3.6c-5.8 0-9.4-3.7-9.4-9.8s4.2-11 9.3-11c4.3 0 7.7 3.2 7.7 6.8l-.1 1h-12Zm8.5-1.8c0-2.6-2-5-4.7-5s-4.7 2.1-4.8 5.7h8.4c.8 0 1-.2 1-.7Zm10.7.9h.3c1.2-4.4 3-6.6 5.5-6.6 1.6 0 2.8 1 2.8 2.1 0 1-.6 1.6-1.6 1.9-.7-1-1.5-1.4-2.4-1.4-2.3 0-4.2 3.3-4.2 9.6V45h-3.4V28.8c0-3.2-3-3.2-3-3.2h6v6.2Zm36.2 13.7c-6.3 0-10.5-4.6-10.5-10.6s4.2-10.6 10.5-10.6 10.4 4.5 10.4 10.6-4.2 10.6-10.4 10.6Zm-5.1-10.9c0 6.4 1.8 9.6 5 9.6s5.1-3.2 5.1-9.3-1.9-9.2-5-9.2-5.1 3-5.1 9Zm18.7-5.8c0-3.2-3-3.2-3-3.2h7.1v3.2l.4.2c1.2-3 3.5-4.5 6.7-4.5 5 0 6.5 3.2 6.5 9.7v10.9h-4.8v-8.7c0-6.3-.4-9.6-3.8-9.6-3 0-4.4 2.5-4.4 7.3v11h-4.8V28.9Zm22 .1c0-3.3-3-3.3-3-3.3h7.7v19.5h-4.6V28.9Zm1.9-14c1.6 0 2.8 1.2 2.8 3s-1.2 3-2.8 3-2.8-1.3-2.8-3 1.1-3 2.8-3Zm23.4 9.5c-5.2 0-8.2 2.5-8.2 6 0 3.3 2.1 4.6 5.9 6.2 2.8 1.2 4.4 2.3 4.4 4.3 0 1.8-1.4 3-3.6 3-3.8 0-6.4-2.7-7.6-4.5l-.9-1.3-4-6.8s11-12.9 6-17.8c-1.1-1-2.7-1.2-3.5-.4-.6.6-.7 1.4-.2 2.4 1.2-.2 2 0 2.6.7 3.2 3.2-4.4 12-9.6 16.5 0 0 4.1 6.9 5.4 8.5 1.8 2 3.9 4.5 11.8 4.5 5.2 0 8.2-3 8.2-6.7s-2.6-4.8-7-6.8c-2.1-1-3.3-1.9-3.3-3.5s1.3-2.9 3.2-2.9c3.4 0 4.7 1.5 4.7 2.2v-2.9a12 12 0 0 0-4.3-.7Zm-79.4 0c-5.2 0-8.2 2.5-8.2 6 0 3.3 2.2 4.6 5.9 6.2 2.8 1.2 4.4 2.3 4.4 4.3 0 1.8-1.4 3-3.6 3-3.8 0-6.3-2.7-7.6-4.2V43c1.1.6 3.7 2.4 7.3 2.4 5.2 0 8.6-2.7 8.6-6.4s-2.7-4.9-7-6.8c-2.2-1-3.4-2-3.4-3.6s1.3-2.8 3.2-2.8c2.4 0 4.2.8 4.7 2v-2.7c-1-.5-2.5-.7-4.3-.7ZM9.4 33.4c-3.2-1.3-5-2.2-5-4.3 0-2 1.7-3.3 4.4-3.3 2 0 4.6.6 5.3 3.7v-3.4c-1-.5-2.8-1.3-5-1.3-5.2 0-8.3 2.3-8.3 5.6 0 2.8 2.2 4.2 6.3 5.8 3.3 1.3 5 2.3 5 4.7 0 2.1-2.2 3.6-5 3.6-4.2 0-6.7-4-6.7-4v3c1 .7 3.7 2 6.2 2 5.6 0 9.2-2.7 9.2-6s-2.3-4.4-6.4-6ZM194.2 20c0-9 7.2-16.4 16.2-16.6l-.4 1.9-.2 2.1V14l-.7 2.8v.2a19.1 19.1 0 0 1-3.6 8c-1.8 2.4-2 3.2-2.2 4v.8l-.1.6.6.3 3 .3v-.2h.2v.2h1.1v-.2h.2l.1.3h1c.4 0 .5.3.5.3.1 1.6.3 3.8.7 5.2-9 0-16.4-7.4-16.4-16.5Z" class="cls-2"/><path d="M210.7 38.4a18.4 18.4 0 1 1 10.8-33.2l.6-.9a19.4 19.4 0 1 0 7.8 18l-1-.1c-1 9-8.8 16.2-18.2 16.2Z" class="cls-2"/><path d="M209.4 31h-1v-.3h-.2l-.1.3h-1l-.1-.3h-.2v.1l-3-.2-.6-.3v-.6l.1-.9c.1-.6.4-1.5 2.2-4 1.7-2.5 2.3-3.4 3.6-7.9v-.2l.7-2.7V7.5l.2-2.2.4-1.8a16.5 16.5 0 0 0 .1 33 32 32 0 0 1-.6-5.1s-.1-.3-.5-.3Zm10.4-20c0-1.4.3-2.9.9-4.2a17 17 0 0 0-9.7-3.4l.4 1.9.2 2.1V14l.7 2.8v.2c1.3 4.5 1.9 5.4 3.6 8 1.8 2.4 2 3.2 2.2 4l.1.7v.7l-.6.3-3 .3v-.2h-.2v.2h-1.1v-.2h-.2v.3H212c-.4 0-.5.3-.5.3 0 1.6-.3 3.8-.6 5.2 8.5 0 15.5-6.6 16.3-14.9a11.5 11.5 0 0 1-7.4-10.6Z" class="cls-2"/><path d="M231.6.6a10.4 10.4 0 1 0 0 20.9 10.4 10.4 0 0 0 0-20.9Zm4.3 17.6h-2a2.3 2.3 0 1 0-4.6 0h-2V4h2a2.3 2.3 0 1 0 4.5 0h2v14.3Z" /></svg>',this._svgSoticket='<svg xmlns="http://www.w3.org/2000/svg"  viewBox="0 0 133 42.1" fill="currentColor"><path d="M132.8 30V.3H36.2v7.5c1.8.6 3.4 2 4.4 4 2 3.8.6 8.1-3.4 10.1l-1 .5v.3l-.2-.3c-3.6 1.2-7.2-.2-9-3.7s-.8-7.3 2.3-9.5l-3.4-6.6L1 15.3l13.5 26.5 23-11.8h95.4Zm-109-1.2c-3.2 1.6-6.1.6-7.7-1l2-2.4c1.1 1.1 2.7 1.7 4.3.9 1.2-.6 1.7-1.7 1.3-2.5-1.3-2.5-7.6 2.7-10-2.2-1.1-2-.2-4.6 2.7-6 2.5-1.3 5.3-1 6.9.5l-2.1 2.5a3 3 0 0 0-3.5-.6c-1 .5-1.5 1.3-1.2 2 1.2 2.4 7.4-3.1 10.2 2.2 1.1 2.3 0 5-3 6.6m37.8-18.4H65v14.7h-3.6V10.4ZM55 13.5V20c0 1.4.7 2.2 1.9 2.2a4 4 0 0 0 1.7-.4l.2 3.2a7 7 0 0 1-2.3.4c-3 0-5.2-1.6-5.2-5v-6.8h-2.5v-3h2.5V6h3.7v4.3h3.7v3.1H55ZM65.6 6c0 1.3-1 2.3-2.3 2.3S61 7.2 61 5.9s1-2.2 2.3-2.2c1.3 0 2.3 1 2.3 2.2m6 11.9c0 2.6 1.5 4.4 3.8 4.4 1.7 0 2.9-1 3.2-2.5l3.6.7c-.6 3-3.2 5-6.9 5-4.4 0-7.4-3.2-7.4-7.6s3-7.6 7.4-7.6c3.7 0 6.4 2 6.9 5l-3.6.8c-.3-1.6-1.5-2.6-3.2-2.6-2.2 0-3.7 1.7-3.7 4.4m21.1-1.6 6.5 8.9h-4.5l-4.5-6.5-1.7 1.7v4.8H85V4.5h3.6v11.1l5.6-5.2h4.6l-6 5.8Zm21.4 1v1.5h-11c.4 2.3 1.8 3.6 3.9 3.6 1.7 0 3-.9 3.3-2.3l3.4 1c-.8 2.7-3.3 4.3-6.8 4.3-4.8 0-7.4-3.7-7.4-7.5s2.4-7.6 7.2-7.6 7.4 3.7 7.4 7m7.3-3.7V20c0 1.4.8 2.2 1.9 2.2a4 4 0 0 0 1.7-.4l.3 3.2a7 7 0 0 1-2.4.4c-3 0-5.2-1.6-5.2-5v-6.8h-2.4v-3h2.4V6h3.7v4.3h3.7v3.1h-3.7Zm-18.1 2.6h6.9c-.2-1.8-1.3-3-3.5-3-1.8 0-3 1-3.4 3" class="cls-1"/><path d="M80.1 40c-.7 0-1.3-.3-1.6-.7v.6h-1.8v-8.5h1.8v3c.4-.5.9-.7 1.6-.7.9 0 1.6.3 2 .9s.8 1.3.8 2.2-.2 1.7-.7 2.3c-.5.6-1.2.9-2.1.9Zm-.3-1.5c.4 0 .8-.2 1-.5.3-.3.4-.7.4-1.2s-.1-.8-.4-1.1c-.2-.3-.6-.5-1-.5s-.8.2-1 .5c-.3.3-.4.7-.4 1.1s.1 1 .4 1.2c.2.3.6.5 1 .5ZM87.5 33.8h1.8L86 42.1h-1.8l1-2.5-2.4-5.8h1.9l1.3 3.5 1.4-3.5ZM95.3 40c-.9 0-1.6-.3-2.2-.8-.7-.5-1-1.1-1.1-2l1.7-.4c0 .5.2.8.5 1.1.3.3.7.5 1.1.5.4 0 .7-.1 1-.3s.3-.4.3-.6l-.3-.6-.6-.3-.8-.3a9 9 0 0 1-1-.3l-.8-.4c-.3-.1-.4-.4-.6-.8-.2-.3-.2-.6-.2-1 0-.7.3-1.3.8-1.7.6-.5 1.3-.7 2.1-.7s1.5.2 2.1.6c.6.4 1 .9 1.2 1.5l-1.7.7-.6-.9c-.2-.2-.6-.3-1-.3-.3 0-.5 0-.7.2s-.3.3-.3.5 0 .4.2.5l.6.3.9.2.9.3c.3 0 .6.2.8.4l.7.8.2 1.2c0 .8-.3 1.4-.9 1.9-.6.4-1.4.7-2.3.7ZM102.2 40c-1 0-1.7-.3-2.3-1-.6-.5-1-1.3-1-2.2s.4-1.6 1-2.2c.6-.6 1.3-.9 2.3-.9s1.6.3 2.3.9c.6.6.9 1.3.9 2.2s-.3 1.7-1 2.3-1.3.9-2.2.9Zm0-1.5c.4 0 .7-.2 1-.5.3-.3.4-.7.4-1.2s-.1-.8-.4-1.1c-.3-.3-.6-.5-1-.5s-.8.2-1 .5c-.3.3-.5.7-.5 1.1s.2 1 .4 1.2c.3.3.6.5 1 .5ZM109 40c-1 0-1.7-.3-2.3-1s-.8-1.2-.8-2.2a3 3 0 0 1 3-3c.9 0 1.5.1 2 .5.6.4 1 1 1 1.6l-1.7.3c0-.3-.2-.5-.4-.7s-.4-.3-.7-.3c-.5 0-.8.2-1 .5s-.4.7-.4 1.2.1.8.4 1.1c.2.3.5.5 1 .5.6 0 1-.3 1-1l1.8.4c-.1.7-.4 1.2-1 1.5-.5.4-1.1.6-2 .6ZM115.6 40c-1 0-1.7-.3-2.3-1-.6-.5-.9-1.3-.9-2.2s.3-1.6 1-2.2c.5-.6 1.3-.9 2.2-.9s1.7.3 2.3.9c.6.6 1 1.3 1 2.2s-.4 1.7-1 2.3-1.4.9-2.3.9Zm0-1.5c.5 0 .8-.2 1-.5.3-.3.5-.7.5-1.2s-.2-.8-.4-1.1c-.3-.3-.7-.5-1-.5s-.9.2-1.1.5c-.3.3-.4.7-.4 1.1s.1 1 .4 1.2c.2.3.6.5 1 .5ZM122.5 40c-1 0-1.7-.3-2.3-1-.6-.5-.9-1.3-.9-2.2s.3-1.6 1-2.2c.5-.6 1.3-.9 2.2-.9s1.7.3 2.3.9c.6.6 1 1.3 1 2.2s-.4 1.7-1 2.3-1.3.9-2.3.9Zm0-1.5c.5 0 .8-.2 1-.5.3-.3.5-.7.5-1.2s-.2-.8-.4-1.1c-.3-.3-.6-.5-1-.5s-.8.2-1.1.5c-.3.3-.4.7-.4 1.1s.1 1 .4 1.2c.2.3.6.5 1 .5ZM126.5 42v-8.2h1.8v.6c.4-.4 1-.7 1.7-.7.8 0 1.5.3 2 .9.5.5.8 1.3.8 2.2s-.3 1.7-.8 2.3-1.3.9-2.1.9c-.7 0-1.3-.2-1.6-.6V42h-1.8Zm2-4c.4.3.7.5 1.1.5s.8-.2 1-.5c.3-.3.4-.7.4-1.2s0-.8-.4-1.1c-.2-.3-.5-.5-1-.5s-.7.2-1 .5c-.3.3-.4.6-.4 1.1s.1 1 .4 1.2Z" /></svg>'}render(){if(!this.brand.url||!this.brand.id)return Z;let t=this._svgSsks;return"soticket"===this.brand.id&&(t=this._svgSoticket),V`<sonic-link href=${this.brand.url} data-aria-label=${li(this.brand.url)} target="_blank"
      >${_e(t)}</sonic-link
    >`}};yb.styles=[l`
      :host {
        display: block;
      }
      svg {
        display: block;
        width: 100%;
      }
    `],vb([ft({type:Object})],yb.prototype,"brand",2),yb=vb([ut("sonic-brand-logo")],yb);var bb=Object.defineProperty,wb=Object.getOwnPropertyDescriptor,xb=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?wb(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&bb(e,i,r),r};let _b=class extends(Le(pt)){constructor(){super(...arguments),this.hideBottomMobile=!1,this.modules={},this.infos={},this.is_online=!1,this.analytics={}}connectedCallback(){this.dataProvider||(this.dataProvider="settings"),super.connectedCallback()}render(){var t,e;const i=this.getAncestorAttributeValue("storeUrl")||"",s=null==(t=this.infos.address)?void 0:t.phone_number;let o;s&&(o=s.replace(/[^+\d]+/g,""));const r=Object.values(this.analytics||{}).some((t=>t));return V`<div class="text-content  overflow-hidden">
      <!-- Menu prefooter -->
      ${!1!==this.is_online?this.render_prefooter():Z}

      <!-- Footer adresse -->
      <div
        class=" flex-wrap items-center gap-y-3 gap-x-6 justify-between mb-4 font-bold text-[.9rem] ${this.hideBottomMobile?" hidden lg:flex":"flex"}"
      >
        <span class="flex flex-wrap gap-x-3">
          ${this.infos?V`<span>${this.render_address()}</span>`:Z}
          ${o?V`<span>●</span>
                <sonic-link
                  href="tel:${o}"
                  class="hover:text-primary [&[active]]:underline underline-offset-2"
                >
                  ${s}
                </sonic-link>`:Z}
          ${this.infos.website?V`<span>●</span>
                <sonic-link
                  href=${this.infos.website}
                  target="_blank"
                  class="hover:text-primary [&[active]]:underline underline-offset-2"
                >
                  ${new URL(this.infos.website).host.replace("www.","")}
                </sonic-link>`:Z}
        </span>
        <span class="h-[var(--sc-border-width)] grow bg-current"></span>

        <sonic-brand-logo class="w-[10rem] transition hover:scale-[.95]"></sonic-brand-logo>
      </div>

      <!-- Menu Footer -->
      <div
        class=" flex-wrap gap-y-3 gap-x-6  lg:gap-x-14 text-[.8rem]  ${this.hideBottomMobile?" hidden lg:flex":"flex"}"
      >
        ${r?V`
              <sonic-link href="#tarteaucitron" class="hover:text-primary [&[active]]:underline underline-offset-2">
                ${Ae("LIB_gestion_des_cookies")}
              </sonic-link>
            `:Z}
        ${(null==(e=this.infos.legal_terms)?void 0:e.url)?V`<sonic-link
              href=${this.infos.legal_terms.url}
              target="_blank"
              class="hover:text-primary [&[active]]:underline underline-offset-2"
            >
              ${Ae("mentions_legales")}
            </sonic-link>`:Z}
        ${this.infos.cgv_link?V`<sonic-link
              href=" ${this.infos.cgv_link}"
              target="_blank"
              class="hover:text-primary [&[active]]:underline underline-offset-2"
            >
              ${Ae("cgv_de_la_billetterie")}
            </sonic-link>`:Z}
        <sonic-link href="${i+"/user"}" class="hover:text-primary [&[active]]:underline underline-offset-2">
          ${Ae("administration")}
        </sonic-link>
      </div>
    </div>`}render_prefooter(){var t,e,i,s,o,r,n,a,l;return V` <div
      class="flex flex-wrap flex-col lg:flex-row gap-y-4 gap-x-6 mb-[2rem] lg:grid lg:grid-cols-4  lg:mb-[2.5rem] "
    >
      <sonic-app-link to="store" class="[&[active]]:underline [&[active]]:text-primary underline-offset-2">
        <div class="flex gap-3 uppercase font-bold hover:text-primary text-[.8rem] lg:text-[1rem] ">
          <sonic-icon library="custom" prefix="regular" name="cart-shopping-fast" size="lg"></sonic-icon>
          <span class="pt-[.1em] inline-block text-pretty">${Ae("module_store_title")}</span>
        </div>
      </sonic-app-link>
      <sonic-app-link to="infosPrices" class="[&[active]]:underline [&[active]]:text-primary underline-offset-2">
        <div class="flex gap-3 uppercase font-bold hover:text-primary text-[.8rem] lg:text-[1rem] ">
          <sonic-icon library="custom" prefix="regular" name="circle-info" size="lg"></sonic-icon>
          <span class="pt-[.1em] inline-block text-pretty">${Ae("module_infos_title")}</span>
        </div>
      </sonic-app-link>
      ${(null==(t=this.modules.reelax)?void 0:t.access)&&(null==(e=this.modules.reelax)?void 0:e.url)?V`<sonic-button
            href=${null==(i=this.modules.reelax)?void 0:i.url}
            variant="unstyled"
            class="[&[active]]:underline [&[active]]:text-primary underline-offset-2"
          >
            <div class="flex gap-3 uppercase font-bold hover:text-primary text-[.8rem] lg:text-[1rem] ">
              <sonic-icon library="custom" prefix="regular" name="ssks-reelax" size="lg"></sonic-icon>
              <span class="pt-[.1em] inline-block text-pretty">${Ae("module_reelax_title")}</span>
            </div>
          </sonic-button>`:Z}
      ${(null==(s=this.modules.cashless)?void 0:s.access)&&(null==(o=this.modules.cashless)?void 0:o.url)?V`<sonic-button
            href=${null==(r=this.modules.cashless)?void 0:r.url}
            variant="unstyled"
            class="[&[active]]:underline [&[active]]:text-primary underline-offset-2"
          >
            <div class="flex gap-3 uppercase font-bold hover:text-primary text-[.8rem] lg:text-[1rem] ">
              <sonic-icon library="custom" prefix="regular" name="mobile-signal-out" size="lg"></sonic-icon>
              <span class="pt-[.1em] inline-block text-pretty">${Ae("module_cashless_title")}</span>
            </div>
          </sonic-button>`:Z}

      <sonic-app-link to="orderRecover" class="[&[active]]:underline [&[active]]:text-primary underline-offset-2">
        <div class="flex gap-3 uppercase font-bold hover:text-primary text-[.8rem] lg:text-[1rem] ">
          <sonic-icon library="custom" prefix="regular" name="circle-question" size="lg"></sonic-icon>
          <span class="pt-[.1em] inline-block text-pretty">${Ae("module_order_recover_title")}</span>
        </div>
      </sonic-app-link>
      ${(null==(n=this.modules.promo)?void 0:n.enabled)?V`
            <sonic-app-link to="promo" class="[&[active]]:underline [&[active]]:text-primary underline-offset-2">
              <div class="flex gap-3 uppercase font-bold hover:text-primary text-[.8rem] lg:text-[1rem] ">
                <sonic-icon library="custom" prefix="regular" name="gift" size="lg"></sonic-icon>
                <span class="pt-[.1em] inline-block text-pretty">${Ae("module_promo_code_title")}</span>
              </div>
            </sonic-app-link>
          `:Z}
      ${(null==(a=this.modules.freeup_tickets)?void 0:a.enabled)?V`
            <sonic-app-link to="freeup" class="[&[active]]:underline [&[active]]:text-primary underline-offset-2">
              <div class="flex gap-3 uppercase font-bold hover:text-primary text-[.8rem] lg:text-[1rem] ">
                <sonic-icon library="custom" prefix="regular" name="hand-wave" size="lg"></sonic-icon>
                <span class="pt-[.1em] inline-block text-pretty">${Ae("free_up")}</span>
              </div>
            </sonic-app-link>
          `:Z}
      ${(null==(l=this.modules.accreditations_directory)?void 0:l.enabled)?V`
            <sonic-app-link
              to="accreditationsDirectory"
              class="[&[active]]:underline [&[active]]:text-primary underline-offset-2"
            >
              <div class="flex gap-3 uppercase font-bold hover:text-primary text-[.8rem] lg:text-[1rem] ">
                <sonic-icon library="custom" prefix="regular" name="id-card" size="lg"></sonic-icon>
                <span class="pt-[.1em] inline-block text-pretty">${Ae("accreditations_directory_title")}</span>
              </div>
            </sonic-app-link>
          `:Z}
    </div>`}render_address(){var t,e,i,s,o,r,n,a;return V`${this.infos.editor_name?V` <span>${this.infos.editor_name}</span>`:Z}
    ${(null==(t=this.infos.address)?void 0:t.street)?V`<span class="[&:first-child]:hidden"> - </span><span>${this.infos.address.street}</span>`:Z}
    ${(null==(e=this.infos.address)?void 0:e.street_2)?V`<span class="[&:first-child]:hidden"> - </span><span>${this.infos.address.street_2}</span>`:Z}
    ${(null==(i=this.infos.address)?void 0:i.zip_code)||(null==(s=this.infos.address)?void 0:s.city)||(null==(o=this.infos.address)?void 0:o.country)?V`<span class="[&:first-child]:hidden"> - </span
          ><span>${null==(r=this.infos.address)?void 0:r.zip_code}&nbsp;${null==(n=this.infos.address)?void 0:n.city} ${null==(a=this.infos.address)?void 0:a.country}</span>`:Z} `}};_b.styles=[Qs,l`
      :host {
        display: block;
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
      }
    `],xb([ft({type:Boolean})],_b.prototype,"hideBottomMobile",2),xb([ft({type:Object})],_b.prototype,"modules",2),xb([ft({type:Object})],_b.prototype,"infos",2),xb([ft({type:Boolean})],_b.prototype,"is_online",2),xb([ft({type:Object})],_b.prototype,"analytics",2),_b=xb([ut("sonic-footer")],_b);var kb=Object.defineProperty,$b=Object.getOwnPropertyDescriptor,Pb=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?$b(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&kb(e,i,r),r};let Sb=class extends(Le(pt)){constructor(){super(...arguments),this.endPoint="recover-orders",this.wording_LIB_recup_commande_front="",this.wording_LIB_recup_commande_title="",this.wording_LIB_recup_commande_aide="",this.wording_Valider="",this.displayTitle=!1,this.displayText=!0,this.smallTitle=!1}removeHtmlTags(t){return t.replace(/(<([^>]+)>)/gi,"")}render(){const t=this.removeHtmlTags(this.wording_LIB_recup_commande_front),e=this.removeHtmlTags(this.wording_LIB_recup_commande_title),i=this.removeHtmlTags(this.wording_LIB_recup_commande_aide);return V`
      <sonic-page-layout
        pageTitle=${t}
        pageText=${`<p>${e?`<b class="text-[1.2em] leading-tight">${e}</b><br>`:""}\n              ${i}</p> `}
        ?smallTitle=${this.smallTitle}
        ?displayTitle=${this.displayTitle}
        ?displayText=${this.displayText}
      >
        <div
          class="flex gap-2"
          dataProvider="recoverOrder"
          formDataProvider="order/recover/form"
          submitResultDataProvider="order/recover/result"
        >
          <sonic-submit onEnterKey endPoint=${this.endPoint}>
            <sonic-input name="email" placeholder="email@example.com" value=""></sonic-input>
          </sonic-submit>
          <sonic-submit onClick endPoint=${this.endPoint}>
            <sonic-button type="primary">
              <sonic-icon name="paper-plane" library="custom" slot="prefix"></sonic-icon>
              ${this.wording_Valider}
            </sonic-button>
          </sonic-submit>
        </div>
      </sonic-page-layout>
    `}};Sb.styles=[Qs,l`
      :host {
        display: block;
        max-width: 90ch;
      }
    `],Pb([ft()],Sb.prototype,"endPoint",2),Pb([ft({type:String})],Sb.prototype,"wording_LIB_recup_commande_front",2),Pb([ft({type:String})],Sb.prototype,"wording_LIB_recup_commande_title",2),Pb([ft({type:String})],Sb.prototype,"wording_LIB_recup_commande_aide",2),Pb([ft({type:String})],Sb.prototype,"wording_Valider",2),Pb([ft({type:Boolean})],Sb.prototype,"displayTitle",2),Pb([ft({type:Boolean})],Sb.prototype,"displayText",2),Pb([ft({type:Boolean})],Sb.prototype,"smallTitle",2),Sb=Pb([ut("sonic-order-recover")],Sb);var Cb=Object.defineProperty,Ab=Object.getOwnPropertyDescriptor,Ob=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Ab(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Cb(e,i,r),r};let Eb=class extends(Le(pt)){constructor(){super(...arguments),this.showAddress=!1,this.showInfos=!1,this.size="md"}render(){var t,e,i;const s=!(null==(t=this.props)?void 0:t.firstName)&&!(null==(e=this.props)?void 0:e.lastName)&&!(null==(i=this.props)?void 0:i.structure);if(!this.props)return Z;const o=V`<span class="font-bold">
      ${s?V`<span class="opacity-40">Anonyme</span>`:Z} ${this.props.firstName}
      ${this.props.lastName} ${this.props.firstName||this.props.lastName?V` <br />`:Z}
      ${this.props.structure} ${this.props.structure&&this.props.firstName?V`<br />`:Z}
    </span>`;return V`<div class="flex gap-2 leading-tight min-w-0 ">
      <div class="shrink-0 w-[1.2em] text-center">${this.renderIcon()}</div>
      <div class="min-w-0 grow">
        <div>${o}</div>

        ${this.props.service&&"sm"!=this.size&&"xs"!==this.size?V`<div class="text-2xs uppercase  leading-0 mt-1 text-neutral-400">Contact</div>
              ${this.props.service}`:Z}
        ${this.props.email?V`<div class="truncate block">
              <sonic-link class="hover:underline" title="${this.props.email}" href="mailto:${this.props.email}"
                >${this.props.email}</sonic-link
              >
            </div>`:Z}
        ${this.props.phoneNumber&&"xs"!==this.size?V`<a class="hover:underline" href="tel:${this.props.phoneNumber.replaceAll(" ","")}"
              >${this.props.phoneNumber}</a
            >`:Z}
        ${"xs"!==this.size?V` ${this.renderAddress()} ${this.renderInfos()}`:Z}

        <slot></slot>
      </div>
    </div>`}renderIcon(){if(!this.props)return Z;let t="user",{uid:e,isProfessional:i,firstName:s,lastName:o}=this.props;return 0!=e||s||o?0==e?t="cart-shopping-fast":i&&(t="user-tie"):t="user-secret",V`<sonic-icon library="custom" name="${t}" size="lg" prefix="light"></sonic-icon>`}renderAddress(){if(!this.props)return Z;const{address:t,address2:e,postalCode:i,city:s}=this.props,o=t||e||i||s;return this.showAddress&&o?V`
        <div class="text-xs mt-2">
          ${t?V`<div>${t}</div>`:Z} ${e?V`<div>${e}</div>`:Z}
          ${i?V`<span>${i}</span>`:Z} ${s?V`<span> – ${s}</span>`:Z}
        </div>
      `:Z}renderInfos(){if(!this.props)return Z;const{gender:t,birthdate:e}=this.props,i=t||e;return this.showInfos&&i?V`
        <div class="text-xs mt-2 text-neutral-400">
          ${t?V`<div>Genre : ${t}</div>`:Z}
          ${e?V`<div>Né·e le : ${e}</div>`:Z}
        </div>
      `:Z}};Eb.styles=[Qs,l`
      :host() {
        display: block;
        min-width: 0;
        max-width: 100%;
      }
    `],Ob([ft({type:Boolean})],Eb.prototype,"showAddress",2),Ob([ft({type:Boolean})],Eb.prototype,"showInfos",2),Ob([ft({type:String})],Eb.prototype,"size",2),Eb=Ob([ut("sonic-user-info")],Eb);var Tb=Object.defineProperty,Mb=Object.getOwnPropertyDescriptor,Db=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Mb(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Tb(e,i,r),r};let Lb=class extends(_s(Le(pt))){constructor(){super(...arguments),this.id="",this.displayRGPD=!1,this.hasMore=!1,this.variant="card",this.hasFetch=!1}connectedCallback(){this.isFetchEnabled=!1,this.hasAttribute("dataProvider")||(this.dataProvider="userInfoCard"+this.id),super.connectedCallback()}willUpdate(t){t.has("id")&&this.id&&(this.hasFetch||(this.hasFetch=!0,this.isFetchEnabled=this.hasAttribute("fetch")),this.dataProvider="userInfoCard/"+this.id,this.endPoint=`user/${this.id}`,this.hasFetch&&this._fetchData()),super.willUpdate(t)}checkIfMore(){var t;this.hasMore=!!(null==(t=this.moreElement)?void 0:t.length)}render(){return this.props?"card"===this.variant?V`<div class="@container relative">
        <sonic-card>${this.renderCardContent()}</sonic-card>
      </div>`:V`<div class="@container relative">${this.renderCardContent()}</div>`:Z}renderValue(t,e=void 0){if(t)switch(e){case"email":const e=t.split("@"),i=e[0],s=e[1];return V`<a class="text-info   min-w-0 block" href="mailto:${t}"
            >${i}<span class="inline-block  text-sm">@${s}</span></a
          >`;case"phone":return V`<a class="text-info" href="tel:${t.replace(/\s/g,"")}">${t}</a>`;default:return V`${t}`}return V`<span class="text-neutral-300">Non renseigné</span>`}renderIcon(){var t,e,i;if(!this.props)return;if(this.props.isProfessional)return V`<div class="flex items-super gap-1">
        <sonic-icon library="custom" name="user-tie" size="xl"></sonic-icon
        ><sonic-badge type="info" size="xs">PRO</sonic-badge>
      </div>`;if(this.props.uid)return V`<sonic-icon library="custom" name="user" size="xl"></sonic-icon> `;return!(null==(t=this.props)?void 0:t.firstName)&&!(null==(e=this.props)?void 0:e.lastName)&&!(null==(i=this.props)?void 0:i.structure)?V`<sonic-icon library="custom" name="user-secret" size="xl"></sonic-icon> `:V`<sonic-icon library="custom" name="cart-shopping-fast" size="xl"></sonic-icon>`}renderCardContent(){const{firstName:t,lastName:e,email:i,phoneNumber:s,gender:o,birthdate:r,address:n,address2:a,postalCode:l,city:c,service:d,country:p,iban:h,bic:u,isProfessional:m,structure:g,role:f,type_structure:v,siret:y,phoneMobileNumber:b,lastLoginDate:w,cgvAcceptanceDate:x,notes:_,crm_infos:k,uid:$}=this.props,P=!t&&!e&&!g;return V` <div
      class=" grid grid-cols-1 @5xl:grid-cols-[minmax(0,_12rem),_auto,_minmax(0,_1fr)] gap-4 @xl:gap-6 "
    >
      <div class=${this.hasMore?"block absolute top-1 right-1":"hidden"}>
        <sonic-pop class="block ">
          <sonic-button shape="circle" size="sm" icon variant="ghost" icon>
            <sonic-icon library="custom" name="ellipsis-vertical" size="lg"></sonic-icon>
          </sonic-button>
          <slot @slotchange=${this.checkIfMore} name="more" slot="content"></slot>
        </sonic-pop>
      </div>

      <div class="flex flex-col gap-2 ">
        ${this.renderIcon()}
        <div class="leading-tight">
          <div class="text-lg @xl:text-xl font-bold leading-none">
            ${P?"Anonyme":`${t} ${e}`}
          </div>
          ${m?V`
                <div>
                  <div class="font-bold text-ellipsis overflow-hidden">${g}</div>
                  ${v?V`<div class="flex gap-[.2em] text-sm mt-2">
                        <sonic-icon library="custom" name="tag" class="mt-[.1em]"></sonic-icon>
                        <div>${_e(v)}</div>
                      </div>`:Z}
                </div>
              `:Z}
          <div class="text-neutral-400 text-sm  mt-3">
            <div>${o}</div>
            <div>${r}</div>
          </div>
        </div>
      </div>
      <sonic-divider vertical class="hidden @5xl:block m-0"></sonic-divider>

      <div class="grid grid-cols-1 text-sm  @xl:grid-cols-2 @5xl:grid-cols-3  gap-y-3 gap-x-3">
        <sonic-info-line label="Email" class="break-words">
          <div slot="value">${this.renderValue(i,"email")}</div>
        </sonic-info-line>
        <sonic-info-line label="Téléphone">
          <div slot="value">${this.renderValue(s,"phone")}</div>
        </sonic-info-line>

        ${m?V` <sonic-info-line label="siret"><div slot="value">${this.renderValue(y)}</div></sonic-info-line> `:Z}

        <sonic-info-line label="Adresse" class="col-start-1 @xl:col-span-2">
          <div slot="value">
            ${n||a||l||c?V`${n} ${a} ${n||a?"—":Z} ${l} ${c}`:V`non renseigné`}
          </div>
        </sonic-info-line>
        ${p?V`
              <sonic-info-line label="Pays">
                <div slot="value">${p}</div>
              </sonic-info-line>
            `:Z}
        ${m?V`
              <sonic-divider class="col-span-full m-0"></sonic-divider>
              <sonic-info-line label="Fonction">
                <div slot="value">${this.renderValue(f)}</div>
              </sonic-info-line>
              <sonic-info-line label="service"><div slot="value">${this.renderValue(d)}</div></sonic-info-line>
              <sonic-info-line label="Téléphone mobile">
                <div slot="value">${this.renderValue(b,"phone")}</div>
              </sonic-info-line>
            `:Z}
        ${this.displayIban&&$?V`
              <sonic-divider class="col-span-full m-0"></sonic-divider>
              <sonic-info-line class="col-start-1 @5xl:col-span-2" label="Iban">
                <div slot="value">${this.renderValue(h)}</div>
              </sonic-info-line>
              <sonic-info-line label="Bic"> <div slot="value">${this.renderValue(u)}</div> </sonic-info-line>
            `:Z}
        ${_?V`
              <div class="col-span-full border-t border-dashed border-neutral-200"></div>
              <sonic-info-line class="col-span-full" label="Notes">
                <div slot="value" class="max-w-[70ch]">${_}</div>
              </sonic-info-line>
            `:Z}
        ${k?V`
              <div class="col-span-full border-t border-dashed border-neutral-200"></div>
              <sonic-info-line class="col-span-full" label="Informations complémentaires">
                <div slot="value" class="max-w-[70ch]">${k}</div>
              </sonic-info-line>
            `:Z}
        ${this.displayRGPD?V`
              <sonic-divider class="col-span-full m-0"></sonic-divider>
              <sonic-info-line label="Dernière connexion">
                <div slot="value">
                  ${w?V`<sonic-date date="${w}"></sonic-date>`:V`<span class="text-neutral-300">Jamais connecté</span>`}
                </div>
              </sonic-info-line>
              <sonic-info-line label="Date d'acceptation des CGV">
                <div slot="value">
                  ${x?V`<sonic-date date="${x}"></sonic-date>`:V`<span class="text-neutral-300">Jamais accepté</span>`}
                </div>
              </sonic-info-line>
            `:Z}
      </div>
    </div>`}};Lb.styles=[Qs],Db([ft()],Lb.prototype,"id",2),Db([ft({type:Boolean})],Lb.prototype,"displayRGPD",2),Db([Us("settings.modules.refund_request.enabled"),ft({type:Boolean})],Lb.prototype,"displayIban",2),Db([xt({selector:"*",slot:"more"})],Lb.prototype,"moreElement",2),Db([vt()],Lb.prototype,"hasMore",2),Db([ft({type:String})],Lb.prototype,"variant",2),Lb=Db([ut("sonic-user-info-card")],Lb);let jb=class extends pt{constructor(){super(...arguments),this.label=""}render(){return V` <div class="flex flex-col leading-tight">
      <span class="text-neutral-400 text-2xs uppercase font-medium tracking-wide"> ${this.label} </span>
      <slot name="value"></slot>
    </div>`}};jb.styles=[Qs],Db([ft({type:String})],jb.prototype,"label",2),jb=Db([ut("sonic-info-line")],jb);var Ib=Object.defineProperty,zb=Object.getOwnPropertyDescriptor,Bb=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?zb(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Ib(e,i,r),r};let Rb=class extends(Le(pt)){constructor(){super(...arguments),this.modules={}}connectedCallback(){super.connectedCallback()}render(){var t,e;return""===window.location.hash&&(window.location.hash=ao("account.home").toString()),V`
      <sonic-menu scrollable direction="row" gap=".5rem">
        <sonic-menu-item size="xl" variant="default" type="default" shape="circle" href=${ao("account.home")}>
          <sonic-icon library="custom" name="house"> </sonic-icon>
        </sonic-menu-item>
        <sonic-menu-item
          autoActive="strict"
          size="xl"
          variant="default"
          type="default"
          shape="circle"
          href=${ao("account.tickets")}
        >
          <sonic-icon library="custom" name="ticket"> </sonic-icon>
        </sonic-menu-item>
        <sonic-menu-item
          autoActive="strict"
          size="xl"
          variant="default"
          type="default"
          shape="circle"
          href=${ao("account.purchases")}
        >
          <sonic-icon library="custom" name="clock-rotate-left"> </sonic-icon>
        </sonic-menu-item>
        <sonic-menu-item
          autoActive="strict"
          size="xl"
          variant="default"
          type="default"
          shape="circle"
          href=${ao("account.edit")}
        >
          <sonic-icon library="custom" name="pen"> </sonic-icon>
        </sonic-menu-item>

        ${(null==(e=null==(t=this.modules)?void 0:t.carpooling)?void 0:e.access)?V`
              <sonic-menu-item
                autoActive="strict"
                size="xl"
                variant="default"
                type="default"
                shape="circle"
                href=${ao("account.trips")}
              >
                <sonic-icon library="custom" name="car-side"> </sonic-icon>
              </sonic-menu-item>
            `:Z}
        <sonic-menu-item
          autoActive="strict"
          size="xl"
          variant="default"
          type="default"
          shape="circle"
          href=${ao("account.editPassword")}
        >
          <sonic-icon library="custom" name="lock"> </sonic-icon>
        </sonic-menu-item>

        <sonic-divider vertical class="hidden md:block"></sonic-divider>
        <sonic-menu-item
          autoActive="strict"
          size="xl"
          variant="default"
          type="default"
          @click=${()=>lo(this)}
          shape="circle"
        >
          <sonic-icon library="custom" name="power-off"> </sonic-icon>
        </sonic-menu-item>
      </sonic-menu>
    `}};Rb.styles=[Qs],Bb([Us("settings.modules"),ft({type:Object})],Rb.prototype,"modules",2),Rb=Bb([ut("sonic-user-account-menu")],Rb);var Nb=Object.defineProperty,Fb=Object.getOwnPropertyDescriptor,qb=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?Fb(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&Nb(e,i,r),r};let Hb=class extends(Le(pt)){constructor(){super(...arguments),this.label="",this.content=""}render(){return V`<div>
      <div class="text-xs">${this.label}</div>
      <div class="font-bold">${_e(this.content)}<slot></slot></div>
    </div>`}};Hb.styles=[Qs],qb([ft({type:String})],Hb.prototype,"label",2),qb([ft({type:String})],Hb.prototype,"content",2),Hb=qb([ut("sonic-ticket-info")],Hb);var Ub={},Vb={},Wb={};Object.defineProperty(Wb,"__esModule",{value:!0});Wb.default=function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.data=e,this.text=i.text||e,this.options=i},Object.defineProperty(Vb,"__esModule",{value:!0}),Vb.CODE39=void 0;var Zb,Yb=function(){function t(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(e,i,s){return i&&t(e.prototype,i),s&&t(e,s),e}}();var Gb=function(t){function e(t,i){var s;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t=t.toUpperCase(),i.mod43&&(t+=(s=function(t){for(var e=0,i=0;i<t.length;i++)e+=Jb(t[i]);return e%=43}(t),Kb[s])),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),Yb(e,[{key:"encode",value:function(){for(var t=Xb("*"),e=0;e<this.data.length;e++)t+=Xb(this.data[e])+"0";return{data:t+=Xb("*"),text:this.text}}},{key:"valid",value:function(){return-1!==this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)}}]),e}(((Zb=Wb)&&Zb.__esModule?Zb:{default:Zb}).default),Kb=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","*"],Qb=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770];function Xb(t){return e=Jb(t),Qb[e].toString(2);var e}function Jb(t){return Kb.indexOf(t)}Vb.CODE39=Gb;var tw,ew={},iw={},sw={},ow={};function rw(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}Object.defineProperty(ow,"__esModule",{value:!0});var nw=ow.SET_A=0,aw=ow.SET_B=1,lw=ow.SET_C=2;ow.SHIFT=98;var cw=ow.START_A=103,dw=ow.START_B=104,pw=ow.START_C=105;ow.MODULO=103,ow.STOP=106,ow.FNC1=207,ow.SET_BY_CODE=(rw(tw={},cw,nw),rw(tw,dw,aw),rw(tw,pw,lw),tw),ow.SWAP={101:nw,100:aw,99:lw},ow.A_START_CHAR=String.fromCharCode(208),ow.B_START_CHAR=String.fromCharCode(209),ow.C_START_CHAR=String.fromCharCode(210),ow.A_CHARS="[\0-_È-Ï]",ow.B_CHARS="[ -È-Ï]",ow.C_CHARS="(Ï*[0-9]{2}Ï*)",ow.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,10011101100,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,11101011110,11110101110,11010000100,1101001e4,11010011100,1100011101011],Object.defineProperty(sw,"__esModule",{value:!0});var hw=function(){function t(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(e,i,s){return i&&t(e.prototype,i),s&&t(e,s),e}}(),uw=function(t){return t&&t.__esModule?t:{default:t}}(Wb),mw=ow;var gw=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var s=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t.substring(1),i));return s.bytes=t.split("").map((function(t){return t.charCodeAt(0)})),s}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),hw(e,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var t=this.bytes,i=t.shift()-105,s=mw.SET_BY_CODE[i];if(void 0===s)throw new RangeError("The encoding does not start with a start character.");!0===this.shouldEncodeAsEan128()&&t.unshift(mw.FNC1);var o=e.next(t,1,s);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:e.getBar(i)+o.result+e.getBar((o.checksum+i)%mw.MODULO)+e.getBar(mw.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var t=this.options.ean128||!1;return"string"==typeof t&&(t="true"===t.toLowerCase()),t}}],[{key:"getBar",value:function(t){return mw.BARS[t]?mw.BARS[t].toString():""}},{key:"correctIndex",value:function(t,e){if(e===mw.SET_A){var i=t.shift();return i<32?i+64:i-32}return e===mw.SET_B?t.shift()-32:10*(t.shift()-48)+t.shift()-48}},{key:"next",value:function(t,i,s){if(!t.length)return{result:"",checksum:0};var o=void 0,r=void 0;if(t[0]>=200){r=t.shift()-105;var n=mw.SWAP[r];void 0!==n?o=e.next(t,i+1,n):(s!==mw.SET_A&&s!==mw.SET_B||r!==mw.SHIFT||(t[0]=s===mw.SET_A?t[0]>95?t[0]-96:t[0]:t[0]<32?t[0]+96:t[0]),o=e.next(t,i+1,s))}else r=e.correctIndex(t,s),o=e.next(t,i+1,s);var a=r*i;return{result:e.getBar(r)+o.result,checksum:a+o.checksum}}}]),e}(uw.default);sw.default=gw;var fw={};Object.defineProperty(fw,"__esModule",{value:!0});var vw=ow,yw=function(t){return t.match(new RegExp("^"+vw.A_CHARS+"*"))[0].length},bw=function(t){return t.match(new RegExp("^"+vw.B_CHARS+"*"))[0].length},ww=function(t){return t.match(new RegExp("^"+vw.C_CHARS+"*"))[0]};function xw(t,e){var i=e?vw.A_CHARS:vw.B_CHARS,s=t.match(new RegExp("^("+i+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(s)return s[1]+String.fromCharCode(204)+_w(t.substring(s[1].length));var o=t.match(new RegExp("^"+i+"+"))[0];return o.length===t.length?t:o+String.fromCharCode(e?205:206)+xw(t.substring(o.length),!e)}function _w(t){var e=ww(t),i=e.length;if(i===t.length)return t;t=t.substring(i);var s=yw(t)>=bw(t);return e+String.fromCharCode(s?206:205)+xw(t,s)}fw.default=function(t){var e=void 0;if(ww(t).length>=2)e=vw.C_START_CHAR+_w(t);else{var i=yw(t)>bw(t);e=(i?vw.A_START_CHAR:vw.B_START_CHAR)+xw(t,i)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,(function(t,e){return String.fromCharCode(203)+e}))},Object.defineProperty(iw,"__esModule",{value:!0});var kw=Pw(sw),$w=Pw(fw);function Pw(t){return t&&t.__esModule?t:{default:t}}function Sw(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var Cw=function(t){function e(t,i){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),/^[\x00-\x7F\xC8-\xD3]+$/.test(t))var s=Sw(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(0,$w.default)(t),i));else s=Sw(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return Sw(s)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(kw.default);iw.default=Cw;var Aw={};Object.defineProperty(Aw,"__esModule",{value:!0});var Ow=function(){function t(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(e,i,s){return i&&t(e.prototype,i),s&&t(e,s),e}}(),Ew=function(t){return t&&t.__esModule?t:{default:t}}(sw),Tw=ow;var Mw=function(t){function e(t,i){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,Tw.A_START_CHAR+t,i))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),Ow(e,[{key:"valid",value:function(){return new RegExp("^"+Tw.A_CHARS+"+$").test(this.data)}}]),e}(Ew.default);Aw.default=Mw;var Dw={};Object.defineProperty(Dw,"__esModule",{value:!0});var Lw=function(){function t(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(e,i,s){return i&&t(e.prototype,i),s&&t(e,s),e}}(),jw=function(t){return t&&t.__esModule?t:{default:t}}(sw),Iw=ow;var zw=function(t){function e(t,i){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,Iw.B_START_CHAR+t,i))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),Lw(e,[{key:"valid",value:function(){return new RegExp("^"+Iw.B_CHARS+"+$").test(this.data)}}]),e}(jw.default);Dw.default=zw;var Bw={};Object.defineProperty(Bw,"__esModule",{value:!0});var Rw=function(){function t(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(e,i,s){return i&&t(e.prototype,i),s&&t(e,s),e}}(),Nw=function(t){return t&&t.__esModule?t:{default:t}}(sw),Fw=ow;var qw=function(t){function e(t,i){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,Fw.C_START_CHAR+t,i))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),Rw(e,[{key:"valid",value:function(){return new RegExp("^"+Fw.C_CHARS+"+$").test(this.data)}}]),e}(Nw.default);Bw.default=qw,Object.defineProperty(ew,"__esModule",{value:!0}),ew.CODE128C=ew.CODE128B=ew.CODE128A=ew.CODE128=void 0;var Hw=Zw(iw),Uw=Zw(Aw),Vw=Zw(Dw),Ww=Zw(Bw);function Zw(t){return t&&t.__esModule?t:{default:t}}ew.CODE128=Hw.default,ew.CODE128A=Uw.default,ew.CODE128B=Vw.default,ew.CODE128C=Ww.default;var Yw={},Gw={},Kw={};Object.defineProperty(Kw,"__esModule",{value:!0}),Kw.SIDE_BIN="101",Kw.MIDDLE_BIN="01010",Kw.BINARIES={L:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],O:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],E:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"]},Kw.EAN2_STRUCTURE=["LL","LG","GL","GG"],Kw.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],Kw.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"];var Qw={},Xw={};Object.defineProperty(Xw,"__esModule",{value:!0});var Jw=Kw;Xw.default=function(t,e,i){var s=t.split("").map((function(t,i){return Jw.BINARIES[e[i]]})).map((function(e,i){return e?e[t[i]]:""}));if(i){var o=t.length-1;s=s.map((function(t,e){return e<o?t+i:t}))}return s.join("")},Object.defineProperty(Qw,"__esModule",{value:!0});var tx=function(){function t(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(e,i,s){return i&&t(e.prototype,i),s&&t(e,s),e}}(),ex=Kw,ix=sx(Xw);function sx(t){return t&&t.__esModule?t:{default:t}}var ox=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var s=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return s.fontSize=!i.flat&&i.fontSize>10*i.width?10*i.width:i.fontSize,s.guardHeight=i.height+s.fontSize/2+i.textMargin,s}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),tx(e,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(t,e){return this.text.substr(t,e)}},{key:"leftEncode",value:function(t,e){return(0,ix.default)(t,e)}},{key:"rightText",value:function(t,e){return this.text.substr(t,e)}},{key:"rightEncode",value:function(t,e){return(0,ix.default)(t,e)}},{key:"encodeGuarded",value:function(){var t={fontSize:this.fontSize},e={height:this.guardHeight};return[{data:ex.SIDE_BIN,options:e},{data:this.leftEncode(),text:this.leftText(),options:t},{data:ex.MIDDLE_BIN,options:e},{data:this.rightEncode(),text:this.rightText(),options:t},{data:ex.SIDE_BIN,options:e}]}},{key:"encodeFlat",value:function(){return{data:[ex.SIDE_BIN,this.leftEncode(),ex.MIDDLE_BIN,this.rightEncode(),ex.SIDE_BIN].join(""),text:this.text}}}]),e}(sx(Wb).default);Qw.default=ox,Object.defineProperty(Gw,"__esModule",{value:!0});var rx=function(){function t(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(e,i,s){return i&&t(e.prototype,i),s&&t(e,s),e}}(),nx=function t(e,i,s){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,i);if(void 0===o){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,i,s)}if("value"in o)return o.value;var n=o.get;return void 0!==n?n.call(s):void 0},ax=Kw,lx=function(t){return t&&t.__esModule?t:{default:t}}(Qw);var cx=function(t){return(10-t.substr(0,12).split("").map((function(t){return+t})).reduce((function(t,e,i){return i%2?t+3*e:t+e}),0)%10)%10},dx=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),-1!==t.search(/^[0-9]{12}$/)&&(t+=cx(t));var s=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return s.lastChar=i.lastChar,s}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),rx(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{13}$/)&&+this.data[12]===cx(this.data)}},{key:"leftText",value:function(){return nx(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var t=this.data.substr(1,6),i=ax.EAN13_STRUCTURE[this.data[0]];return nx(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,t,i)}},{key:"rightText",value:function(){return nx(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var t=this.data.substr(7,6);return nx(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,t,"RRRRRR")}},{key:"encodeGuarded",value:function(){var t=nx(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(t.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(t.push({data:"00"}),t.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),t}}]),e}(lx.default);Gw.default=dx;var px={};Object.defineProperty(px,"__esModule",{value:!0});var hx=function(){function t(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(e,i,s){return i&&t(e.prototype,i),s&&t(e,s),e}}(),ux=function t(e,i,s){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,i);if(void 0===o){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,i,s)}if("value"in o)return o.value;var n=o.get;return void 0!==n?n.call(s):void 0},mx=function(t){return t&&t.__esModule?t:{default:t}}(Qw);var gx=function(t){return(10-t.substr(0,7).split("").map((function(t){return+t})).reduce((function(t,e,i){return i%2?t+e:t+3*e}),0)%10)%10},fx=function(t){function e(t,i){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),-1!==t.search(/^[0-9]{7}$/)&&(t+=gx(t)),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),hx(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{8}$/)&&+this.data[7]===gx(this.data)}},{key:"leftText",value:function(){return ux(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var t=this.data.substr(0,4);return ux(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,t,"LLLL")}},{key:"rightText",value:function(){return ux(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var t=this.data.substr(4,4);return ux(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,t,"RRRR")}}]),e}(mx.default);px.default=fx;var vx={};Object.defineProperty(vx,"__esModule",{value:!0});var yx=function(){function t(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(e,i,s){return i&&t(e.prototype,i),s&&t(e,s),e}}(),bx=Kw,wx=_x(Xw),xx=_x(Wb);function _x(t){return t&&t.__esModule?t:{default:t}}var kx=function(t){function e(t,i){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),yx(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{5}$/)}},{key:"encode",value:function(){var t,e=bx.EAN5_STRUCTURE[(t=this.data,t.split("").map((function(t){return+t})).reduce((function(t,e,i){return i%2?t+9*e:t+3*e}),0)%10)];return{data:"1011"+(0,wx.default)(this.data,e,"01"),text:this.text}}}]),e}(xx.default);vx.default=kx;var $x={};Object.defineProperty($x,"__esModule",{value:!0});var Px=function(){function t(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(e,i,s){return i&&t(e.prototype,i),s&&t(e,s),e}}(),Sx=Kw,Cx=Ax(Xw);function Ax(t){return t&&t.__esModule?t:{default:t}}var Ox=function(t){function e(t,i){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),Px(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{2}$/)}},{key:"encode",value:function(){var t=Sx.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,Cx.default)(this.data,t,"01"),text:this.text}}}]),e}(Ax(Wb).default);$x.default=Ox;var Ex={};Object.defineProperty(Ex,"__esModule",{value:!0});var Tx=function(){function t(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(e,i,s){return i&&t(e.prototype,i),s&&t(e,s),e}}();Ex.checksum=jx;var Mx=Dx(Xw);function Dx(t){return t&&t.__esModule?t:{default:t}}var Lx=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),-1!==t.search(/^[0-9]{11}$/)&&(t+=jx(t));var s=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return s.displayValue=i.displayValue,i.fontSize>10*i.width?s.fontSize=10*i.width:s.fontSize=i.fontSize,s.guardHeight=i.height+s.fontSize/2+i.textMargin,s}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),Tx(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{12}$/)&&this.data[11]==jx(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var t="";return t+="101",t+=(0,Mx.default)(this.data.substr(0,6),"LLLLLL"),t+="01010",t+=(0,Mx.default)(this.data.substr(6,6),"RRRRRR"),{data:t+="101",text:this.text}}},{key:"guardedEncoding",value:function(){var t=[];return this.displayValue&&t.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),t.push({data:"101"+(0,Mx.default)(this.data[0],"L"),options:{height:this.guardHeight}}),t.push({data:(0,Mx.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),t.push({data:"01010",options:{height:this.guardHeight}}),t.push({data:(0,Mx.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),t.push({data:(0,Mx.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&t.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),t}}]),e}(Dx(Wb).default);function jx(t){var e,i=0;for(e=1;e<11;e+=2)i+=parseInt(t[e]);for(e=0;e<11;e+=2)i+=3*parseInt(t[e]);return(10-i%10)%10}Ex.default=Lx;var Ix={};Object.defineProperty(Ix,"__esModule",{value:!0});var zx=function(){function t(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(e,i,s){return i&&t(e.prototype,i),s&&t(e,s),e}}(),Bx=Fx(Xw),Rx=Fx(Wb),Nx=Ex;function Fx(t){return t&&t.__esModule?t:{default:t}}function qx(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var Hx=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],Ux=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],Vx=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var s=qx(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));if(s.isValid=!1,-1!==t.search(/^[0-9]{6}$/))s.middleDigits=t,s.upcA=Wx(t,"0"),s.text=i.text||""+s.upcA[0]+t+s.upcA[s.upcA.length-1],s.isValid=!0;else{if(-1===t.search(/^[01][0-9]{7}$/))return qx(s);if(s.middleDigits=t.substring(1,t.length-1),s.upcA=Wx(s.middleDigits,t[0]),s.upcA[s.upcA.length-1]!==t[t.length-1])return qx(s);s.isValid=!0}return s.displayValue=i.displayValue,i.fontSize>10*i.width?s.fontSize=10*i.width:s.fontSize=i.fontSize,s.guardHeight=i.height+s.fontSize/2+i.textMargin,s}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),zx(e,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var t="";return t+="101",t+=this.encodeMiddleDigits(),{data:t+="010101",text:this.text}}},{key:"guardedEncoding",value:function(){var t=[];return this.displayValue&&t.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),t.push({data:"101",options:{height:this.guardHeight}}),t.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),t.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&t.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),t}},{key:"encodeMiddleDigits",value:function(){var t=this.upcA[0],e=this.upcA[this.upcA.length-1],i=Ux[parseInt(e)][parseInt(t)];return(0,Bx.default)(this.middleDigits,i)}}]),e}(Rx.default);function Wx(t,e){for(var i=parseInt(t[t.length-1]),s=Hx[i],o="",r=0,n=0;n<s.length;n++){var a=s[n];o+="X"===a?t[r++]:a}return""+(o=""+e+o)+(0,Nx.checksum)(o)}Ix.default=Vx,Object.defineProperty(Yw,"__esModule",{value:!0}),Yw.UPCE=Yw.UPC=Yw.EAN2=Yw.EAN5=Yw.EAN8=Yw.EAN13=void 0;var Zx=Jx(Gw),Yx=Jx(px),Gx=Jx(vx),Kx=Jx($x),Qx=Jx(Ex),Xx=Jx(Ix);function Jx(t){return t&&t.__esModule?t:{default:t}}Yw.EAN13=Zx.default,Yw.EAN8=Yx.default,Yw.EAN5=Gx.default,Yw.EAN2=Kx.default,Yw.UPC=Qx.default,Yw.UPCE=Xx.default;var t_={},e_={},i_={};Object.defineProperty(i_,"__esModule",{value:!0}),i_.START_BIN="1010",i_.END_BIN="11101",i_.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"],Object.defineProperty(e_,"__esModule",{value:!0});var s_=function(){function t(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(e,i,s){return i&&t(e.prototype,i),s&&t(e,s),e}}(),o_=i_,r_=function(t){return t&&t.__esModule?t:{default:t}}(Wb);var n_=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),s_(e,[{key:"valid",value:function(){return-1!==this.data.search(/^([0-9]{2})+$/)}},{key:"encode",value:function(){var t=this,e=this.data.match(/.{2}/g).map((function(e){return t.encodePair(e)})).join("");return{data:o_.START_BIN+e+o_.END_BIN,text:this.text}}},{key:"encodePair",value:function(t){var e=o_.BINARIES[t[1]];return o_.BINARIES[t[0]].split("").map((function(t,i){return("1"===t?"111":"1")+("1"===e[i]?"000":"0")})).join("")}}]),e}(r_.default);e_.default=n_;var a_={};Object.defineProperty(a_,"__esModule",{value:!0});var l_=function(){function t(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(e,i,s){return i&&t(e.prototype,i),s&&t(e,s),e}}(),c_=function(t){return t&&t.__esModule?t:{default:t}}(e_);var d_=function(t){var e=t.substr(0,13).split("").map((function(t){return parseInt(t,10)})).reduce((function(t,e,i){return t+e*(3-i%2*2)}),0);return 10*Math.ceil(e/10)-e},p_=function(t){function e(t,i){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),-1!==t.search(/^[0-9]{13}$/)&&(t+=d_(t)),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),l_(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{14}$/)&&+this.data[13]===d_(this.data)}}]),e}(c_.default);a_.default=p_,Object.defineProperty(t_,"__esModule",{value:!0}),t_.ITF14=t_.ITF=void 0;var h_=m_(e_),u_=m_(a_);function m_(t){return t&&t.__esModule?t:{default:t}}t_.ITF=h_.default,t_.ITF14=u_.default;var g_={},f_={};Object.defineProperty(f_,"__esModule",{value:!0});var v_=function(){function t(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(e,i,s){return i&&t(e.prototype,i),s&&t(e,s),e}}(),y_=function(t){return t&&t.__esModule?t:{default:t}}(Wb);var b_=function(t){function e(t,i){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),v_(e,[{key:"encode",value:function(){for(var t="110",e=0;e<this.data.length;e++){var i=parseInt(this.data[e]).toString(2);i=w_(i,4-i.length);for(var s=0;s<i.length;s++)t+="0"==i[s]?"100":"110"}return{data:t+="1001",text:this.text}}},{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]+$/)}}]),e}(y_.default);function w_(t,e){for(var i=0;i<e;i++)t="0"+t;return t}f_.default=b_;var x_={},__={};Object.defineProperty(__,"__esModule",{value:!0}),__.mod10=function(t){for(var e=0,i=0;i<t.length;i++){var s=parseInt(t[i]);(i+t.length)%2==0?e+=s:e+=2*s%10+Math.floor(2*s/10)}return(10-e%10)%10},__.mod11=function(t){for(var e=0,i=[2,3,4,5,6,7],s=0;s<t.length;s++){var o=parseInt(t[t.length-1-s]);e+=i[s%i.length]*o}return(11-e%11)%11},Object.defineProperty(x_,"__esModule",{value:!0});var k_=function(t){return t&&t.__esModule?t:{default:t}}(f_),$_=__;var P_=function(t){function e(t,i){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t+(0,$_.mod10)(t),i))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(k_.default);x_.default=P_;var S_={};Object.defineProperty(S_,"__esModule",{value:!0});var C_=function(t){return t&&t.__esModule?t:{default:t}}(f_),A_=__;var O_=function(t){function e(t,i){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t+(0,A_.mod11)(t),i))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(C_.default);S_.default=O_;var E_={};Object.defineProperty(E_,"__esModule",{value:!0});var T_=function(t){return t&&t.__esModule?t:{default:t}}(f_),M_=__;var D_=function(t){function e(t,i){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t+=(0,M_.mod10)(t),t+=(0,M_.mod10)(t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(T_.default);E_.default=D_;var L_={};Object.defineProperty(L_,"__esModule",{value:!0});var j_=function(t){return t&&t.__esModule?t:{default:t}}(f_),I_=__;var z_=function(t){function e(t,i){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t+=(0,I_.mod11)(t),t+=(0,I_.mod10)(t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(j_.default);L_.default=z_,Object.defineProperty(g_,"__esModule",{value:!0}),g_.MSI1110=g_.MSI1010=g_.MSI11=g_.MSI10=g_.MSI=void 0;var B_=H_(f_),R_=H_(x_),N_=H_(S_),F_=H_(E_),q_=H_(L_);function H_(t){return t&&t.__esModule?t:{default:t}}g_.MSI=B_.default,g_.MSI10=R_.default,g_.MSI11=N_.default,g_.MSI1010=F_.default,g_.MSI1110=q_.default;var U_={};Object.defineProperty(U_,"__esModule",{value:!0}),U_.pharmacode=void 0;var V_=function(){function t(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(e,i,s){return i&&t(e.prototype,i),s&&t(e,s),e}}(),W_=function(t){return t&&t.__esModule?t:{default:t}}(Wb);var Z_=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var s=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return s.number=parseInt(t,10),s}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),V_(e,[{key:"encode",value:function(){for(var t=this.number,e="";!isNaN(t)&&0!=t;)t%2==0?(e="11100"+e,t=(t-2)/2):(e="100"+e,t=(t-1)/2);return{data:e=e.slice(0,-2),text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),e}(W_.default);U_.pharmacode=Z_;var Y_={};Object.defineProperty(Y_,"__esModule",{value:!0}),Y_.codabar=void 0;var G_=function(){function t(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(e,i,s){return i&&t(e.prototype,i),s&&t(e,s),e}}(),K_=function(t){return t&&t.__esModule?t:{default:t}}(Wb);var Q_=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),0===t.search(/^[0-9\-\$\:\.\+\/]+$/)&&(t="A"+t+"A");var s=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t.toUpperCase(),i));return s.text=s.options.text||s.text.replace(/[A-D]/g,""),s}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),G_(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)}},{key:"encode",value:function(){for(var t=[],e=this.getEncodings(),i=0;i<this.data.length;i++)t.push(e[this.data.charAt(i)]),i!==this.data.length-1&&t.push("0");return{text:this.text,data:t.join("")}}},{key:"getEncodings",value:function(){return{0:"101010011",1:"101011001",2:"101001011",3:"110010101",4:"101101001",5:"110101001",6:"100101011",7:"100101101",8:"100110101",9:"110100101","-":"101001101",$:"101100101",":":"1101011011","/":"1101101011",".":"1101101101","+":"1011011011",A:"1011001001",B:"1001001011",C:"1010010011",D:"1010011001"}}}]),e}(K_.default);Y_.codabar=Q_;var X_={};Object.defineProperty(X_,"__esModule",{value:!0}),X_.GenericBarcode=void 0;var J_=function(){function t(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(e,i,s){return i&&t(e.prototype,i),s&&t(e,s),e}}(),tk=function(t){return t&&t.__esModule?t:{default:t}}(Wb);var ek=function(t){function e(t,i){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),J_(e,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),e}(tk.default);X_.GenericBarcode=ek,Object.defineProperty(Ub,"__esModule",{value:!0});var ik=Vb,sk=ew,ok=Yw,rk=t_,nk=g_,ak=U_,lk=Y_,ck=X_;Ub.default={CODE39:ik.CODE39,CODE128:sk.CODE128,CODE128A:sk.CODE128A,CODE128B:sk.CODE128B,CODE128C:sk.CODE128C,EAN13:ok.EAN13,EAN8:ok.EAN8,EAN5:ok.EAN5,EAN2:ok.EAN2,UPC:ok.UPC,UPCE:ok.UPCE,ITF14:rk.ITF14,ITF:rk.ITF,MSI:nk.MSI,MSI10:nk.MSI10,MSI11:nk.MSI11,MSI1010:nk.MSI1010,MSI1110:nk.MSI1110,pharmacode:ak.pharmacode,codabar:lk.codabar,GenericBarcode:ck.GenericBarcode};var dk={};Object.defineProperty(dk,"__esModule",{value:!0});var pk=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s])}return t};dk.default=function(t,e){return pk({},t,e)};var hk={};Object.defineProperty(hk,"__esModule",{value:!0}),hk.default=function(t){var e=[];return function t(i){if(Array.isArray(i))for(var s=0;s<i.length;s++)t(i[s]);else i.text=i.text||"",i.data=i.data||"",e.push(i)}(t),e};var uk={};Object.defineProperty(uk,"__esModule",{value:!0}),uk.default=function(t){return t.marginTop=t.marginTop||t.margin,t.marginBottom=t.marginBottom||t.margin,t.marginRight=t.marginRight||t.margin,t.marginLeft=t.marginLeft||t.margin,t};var mk={},gk={},fk={};Object.defineProperty(fk,"__esModule",{value:!0}),fk.default=function(t){var e=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var i in e)e.hasOwnProperty(i)&&"string"==typeof t[i=e[i]]&&(t[i]=parseInt(t[i],10));"string"==typeof t.displayValue&&(t.displayValue="false"!=t.displayValue);return t};var vk={};Object.defineProperty(vk,"__esModule",{value:!0});vk.default={width:2,height:100,format:"auto",displayValue:!0,fontOptions:"",font:"monospace",text:void 0,textAlign:"center",textPosition:"bottom",textMargin:2,fontSize:20,background:"#ffffff",lineColor:"#000000",margin:10,marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0,valid:function(){}},Object.defineProperty(gk,"__esModule",{value:!0});var yk=wk(fk),bk=wk(vk);function wk(t){return t&&t.__esModule?t:{default:t}}gk.default=function(t){var e={};for(var i in bk.default)bk.default.hasOwnProperty(i)&&(t.hasAttribute("jsbarcode-"+i.toLowerCase())&&(e[i]=t.getAttribute("jsbarcode-"+i.toLowerCase())),t.hasAttribute("data-"+i.toLowerCase())&&(e[i]=t.getAttribute("data-"+i.toLowerCase())));return e.value=t.getAttribute("jsbarcode-value")||t.getAttribute("data-value"),e=(0,yk.default)(e)};var xk={},_k={},kk={};Object.defineProperty(kk,"__esModule",{value:!0}),kk.getTotalWidthOfEncodings=kk.calculateEncodingAttributes=kk.getBarcodePadding=kk.getEncodingHeight=kk.getMaximumHeightOfEncodings=void 0;var $k=function(t){return t&&t.__esModule?t:{default:t}}(dk);function Pk(t,e){return e.height+(e.displayValue&&t.text.length>0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom}function Sk(t,e,i){if(i.displayValue&&e<t){if("center"==i.textAlign)return Math.floor((t-e)/2);if("left"==i.textAlign)return 0;if("right"==i.textAlign)return Math.floor(t-e)}return 0}function Ck(t,e,i){var s;if(i)s=i;else{if("undefined"==typeof document)return 0;s=document.createElement("canvas").getContext("2d")}s.font=e.fontOptions+" "+e.fontSize+"px "+e.font;var o=s.measureText(t);return o?o.width:0}kk.getMaximumHeightOfEncodings=function(t){for(var e=0,i=0;i<t.length;i++)t[i].height>e&&(e=t[i].height);return e},kk.getEncodingHeight=Pk,kk.getBarcodePadding=Sk,kk.calculateEncodingAttributes=function(t,e,i){for(var s=0;s<t.length;s++){var o,r=t[s],n=(0,$k.default)(e,r.options);o=n.displayValue?Ck(r.text,n,i):0;var a=r.data.length*n.width;r.width=Math.ceil(Math.max(o,a)),r.height=Pk(r,n),r.barcodePadding=Sk(o,a,n)}},kk.getTotalWidthOfEncodings=function(t){for(var e=0,i=0;i<t.length;i++)e+=t[i].width;return e},Object.defineProperty(_k,"__esModule",{value:!0});var Ak=function(){function t(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(e,i,s){return i&&t(e.prototype,i),s&&t(e,s),e}}(),Ok=function(t){return t&&t.__esModule?t:{default:t}}(dk),Ek=kk;var Tk=function(){function t(e,i,s){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.canvas=e,this.encodings=i,this.options=s}return Ak(t,[{key:"render",value:function(){if(!this.canvas.getContext)throw new Error("The browser does not support canvas.");this.prepareCanvas();for(var t=0;t<this.encodings.length;t++){var e=(0,Ok.default)(this.options,this.encodings[t].options);this.drawCanvasBarcode(e,this.encodings[t]),this.drawCanvasText(e,this.encodings[t]),this.moveCanvasDrawing(this.encodings[t])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var t=this.canvas.getContext("2d");t.save(),(0,Ek.calculateEncodingAttributes)(this.encodings,this.options,t);var e=(0,Ek.getTotalWidthOfEncodings)(this.encodings),i=(0,Ek.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=e+this.options.marginLeft+this.options.marginRight,this.canvas.height=i,t.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(t.fillStyle=this.options.background,t.fillRect(0,0,this.canvas.width,this.canvas.height)),t.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(t,e){var i,s=this.canvas.getContext("2d"),o=e.data;i="top"==t.textPosition?t.marginTop+t.fontSize+t.textMargin:t.marginTop,s.fillStyle=t.lineColor;for(var r=0;r<o.length;r++){var n=r*t.width+e.barcodePadding;"1"===o[r]?s.fillRect(n,i,t.width,t.height):o[r]&&s.fillRect(n,i,t.width,t.height*o[r])}}},{key:"drawCanvasText",value:function(t,e){var i,s,o=this.canvas.getContext("2d"),r=t.fontOptions+" "+t.fontSize+"px "+t.font;t.displayValue&&(s="top"==t.textPosition?t.marginTop+t.fontSize-t.textMargin:t.height+t.textMargin+t.marginTop+t.fontSize,o.font=r,"left"==t.textAlign||e.barcodePadding>0?(i=0,o.textAlign="left"):"right"==t.textAlign?(i=e.width-1,o.textAlign="right"):(i=e.width/2,o.textAlign="center"),o.fillText(e.text,i,s))}},{key:"moveCanvasDrawing",value:function(t){this.canvas.getContext("2d").translate(t.width,0)}},{key:"restoreCanvas",value:function(){this.canvas.getContext("2d").restore()}}]),t}();_k.default=Tk;var Mk={};Object.defineProperty(Mk,"__esModule",{value:!0});var Dk=function(){function t(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(e,i,s){return i&&t(e.prototype,i),s&&t(e,s),e}}(),Lk=function(t){return t&&t.__esModule?t:{default:t}}(dk),jk=kk;var Ik="http://www.w3.org/2000/svg",zk=function(){function t(e,i,s){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.svg=e,this.encodings=i,this.options=s,this.document=s.xmlDocument||document}return Dk(t,[{key:"render",value:function(){var t=this.options.marginLeft;this.prepareSVG();for(var e=0;e<this.encodings.length;e++){var i=this.encodings[e],s=(0,Lk.default)(this.options,i.options),o=this.createGroup(t,s.marginTop,this.svg);this.setGroupOptions(o,s),this.drawSvgBarcode(o,s,i),this.drawSVGText(o,s,i),t+=i.width}}},{key:"prepareSVG",value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,jk.calculateEncodingAttributes)(this.encodings,this.options);var t=(0,jk.getTotalWidthOfEncodings)(this.encodings),e=(0,jk.getMaximumHeightOfEncodings)(this.encodings),i=t+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(i,e),this.options.background&&this.drawRect(0,0,i,e,this.svg).setAttribute("style","fill:"+this.options.background+";")}},{key:"drawSvgBarcode",value:function(t,e,i){var s,o=i.data;s="top"==e.textPosition?e.fontSize+e.textMargin:0;for(var r=0,n=0,a=0;a<o.length;a++)n=a*e.width+i.barcodePadding,"1"===o[a]?r++:r>0&&(this.drawRect(n-e.width*r,s,e.width*r,e.height,t),r=0);r>0&&this.drawRect(n-e.width*(r-1),s,e.width*r,e.height,t)}},{key:"drawSVGText",value:function(t,e,i){var s,o,r=this.document.createElementNS(Ik,"text");e.displayValue&&(r.setAttribute("style","font:"+e.fontOptions+" "+e.fontSize+"px "+e.font),o="top"==e.textPosition?e.fontSize-e.textMargin:e.height+e.textMargin+e.fontSize,"left"==e.textAlign||i.barcodePadding>0?(s=0,r.setAttribute("text-anchor","start")):"right"==e.textAlign?(s=i.width-1,r.setAttribute("text-anchor","end")):(s=i.width/2,r.setAttribute("text-anchor","middle")),r.setAttribute("x",s),r.setAttribute("y",o),r.appendChild(this.document.createTextNode(i.text)),t.appendChild(r))}},{key:"setSvgAttributes",value:function(t,e){var i=this.svg;i.setAttribute("width",t+"px"),i.setAttribute("height",e+"px"),i.setAttribute("x","0px"),i.setAttribute("y","0px"),i.setAttribute("viewBox","0 0 "+t+" "+e),i.setAttribute("xmlns",Ik),i.setAttribute("version","1.1"),i.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(t,e,i){var s=this.document.createElementNS(Ik,"g");return s.setAttribute("transform","translate("+t+", "+e+")"),i.appendChild(s),s}},{key:"setGroupOptions",value:function(t,e){t.setAttribute("style","fill:"+e.lineColor+";")}},{key:"drawRect",value:function(t,e,i,s,o){var r=this.document.createElementNS(Ik,"rect");return r.setAttribute("x",t),r.setAttribute("y",e),r.setAttribute("width",i),r.setAttribute("height",s),o.appendChild(r),r}}]),t}();Mk.default=zk;var Bk={};Object.defineProperty(Bk,"__esModule",{value:!0});var Rk=function(){function t(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(e,i,s){return i&&t(e.prototype,i),s&&t(e,s),e}}();var Nk=function(){function t(e,i,s){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.object=e,this.encodings=i,this.options=s}return Rk(t,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),t}();Bk.default=Nk,Object.defineProperty(xk,"__esModule",{value:!0});var Fk=Uk(_k),qk=Uk(Mk),Hk=Uk(Bk);function Uk(t){return t&&t.__esModule?t:{default:t}}xk.default={CanvasRenderer:Fk.default,SVGRenderer:qk.default,ObjectRenderer:Hk.default};var Vk={};function Wk(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zk(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function Yk(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(Vk,"__esModule",{value:!0});var Gk=function(t){function e(t,i){Wk(this,e);var s=Zk(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return s.name="InvalidInputException",s.symbology=t,s.input=i,s.message='"'+s.input+'" is not a valid input for '+s.symbology,s}return Yk(e,Error),e}(),Kk=function(t){function e(){Wk(this,e);var t=Zk(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.name="InvalidElementException",t.message="Not supported type to render on",t}return Yk(e,Error),e}(),Qk=function(t){function e(){Wk(this,e);var t=Zk(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.name="NoElementException",t.message="No element to render on.",t}return Yk(e,Error),e}();Vk.InvalidInputException=Gk,Vk.InvalidElementException=Kk,Vk.NoElementException=Qk,Object.defineProperty(mk,"__esModule",{value:!0});var Xk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jk=i$(gk),t$=i$(xk),e$=Vk;function i$(t){return t&&t.__esModule?t:{default:t}}function s$(t){if("string"==typeof t)return function(t){var e=document.querySelectorAll(t);if(0===e.length)return;for(var i=[],s=0;s<e.length;s++)i.push(s$(e[s]));return i}(t);if(Array.isArray(t)){for(var e=[],i=0;i<t.length;i++)e.push(s$(t[i]));return e}if("undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLImageElement)return s=t,{element:o=document.createElement("canvas"),options:(0,Jk.default)(s),renderer:t$.default.CanvasRenderer,afterRender:function(){s.setAttribute("src",o.toDataURL())}};if(t&&t.nodeName&&"svg"===t.nodeName.toLowerCase()||"undefined"!=typeof SVGElement&&t instanceof SVGElement)return{element:t,options:(0,Jk.default)(t),renderer:t$.default.SVGRenderer};if("undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement)return{element:t,options:(0,Jk.default)(t),renderer:t$.default.CanvasRenderer};if(t&&t.getContext)return{element:t,renderer:t$.default.CanvasRenderer};if(t&&"object"===(void 0===t?"undefined":Xk(t))&&!t.nodeName)return{element:t,renderer:t$.default.ObjectRenderer};throw new e$.InvalidElementException;var s,o}mk.default=s$;var o$={};Object.defineProperty(o$,"__esModule",{value:!0});var r$=function(){function t(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(e,i,s){return i&&t(e.prototype,i),s&&t(e,s),e}}();var n$=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.api=e}return r$(t,[{key:"handleCatch",value:function(t){if("InvalidInputException"!==t.name)throw t;if(this.api._options.valid===this.api._defaults.valid)throw t.message;this.api._options.valid(!1),this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(t){try{var e=t.apply(void 0,arguments);return this.api._options.valid(!0),e}catch(tO){return this.handleCatch(tO),this.api}}}]),t}();o$.default=n$;var a$=f$(Ub),l$=f$(dk),c$=f$(hk),d$=f$(uk),p$=f$(mk),h$=f$(fk),u$=f$(o$),m$=Vk,g$=f$(vk);function f$(t){return t&&t.__esModule?t:{default:t}}var v$=function(){},y$=function(t,e,i){var s=new v$;if(void 0===t)throw Error("No element to render on was provided.");return s._renderProperties=(0,p$.default)(t),s._encodings=[],s._options=g$.default,s._errorHandler=new u$.default(s),void 0!==e&&((i=i||{}).format||(i.format=_$()),s.options(i)[i.format](e,i).render()),s};for(var b$ in y$.getModule=function(t){return a$.default[t]},a$.default)a$.default.hasOwnProperty(b$)&&w$(a$.default,b$);function w$(t,e){v$.prototype[e]=v$.prototype[e.toUpperCase()]=v$.prototype[e.toLowerCase()]=function(i,s){var o=this;return o._errorHandler.wrapBarcodeCall((function(){s.text=void 0===s.text?void 0:""+s.text;var r=(0,l$.default)(o._options,s);r=(0,h$.default)(r);var n=t[e],a=x$(i,n,r);return o._encodings.push(a),o}))}}function x$(t,e,i){var s=new e(t=""+t,i);if(!s.valid())throw new m$.InvalidInputException(s.constructor.name,t);var o=s.encode();o=(0,c$.default)(o);for(var r=0;r<o.length;r++)o[r].options=(0,l$.default)(i,o[r].options);return o}function _$(){return a$.default.CODE128?"CODE128":Object.keys(a$.default)[0]}function k$(t,e,i){e=(0,c$.default)(e);for(var s=0;s<e.length;s++)e[s].options=(0,l$.default)(i,e[s].options),(0,d$.default)(e[s].options);(0,d$.default)(i),new(0,t.renderer)(t.element,e,i).render(),t.afterRender&&t.afterRender()}v$.prototype.options=function(t){return this._options=(0,l$.default)(this._options,t),this},v$.prototype.blank=function(t){var e=new Array(t+1).join("0");return this._encodings.push({data:e}),this},v$.prototype.init=function(){var t;if(this._renderProperties)for(var e in Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]),this._renderProperties){t=this._renderProperties[e];var i=(0,l$.default)(this._options,t.options);"auto"==i.format&&(i.format=_$()),this._errorHandler.wrapBarcodeCall((function(){var e=x$(i.value,a$.default[i.format.toUpperCase()],i);k$(t,e,i)}))}},v$.prototype.render=function(){if(!this._renderProperties)throw new m$.NoElementException;if(Array.isArray(this._renderProperties))for(var t=0;t<this._renderProperties.length;t++)k$(this._renderProperties[t],this._encodings,this._options);else k$(this._renderProperties,this._encodings,this._options);return this},v$.prototype._defaults=g$.default,"undefined"!=typeof window&&(window.JsBarcode=y$),"undefined"!=typeof jQuery&&(jQuery.fn.JsBarcode=function(t,e){var i=[];return jQuery(this).each((function(){i.push(this)})),y$(i,t,e)});const $$=fi(y$);var P$=Object.defineProperty,S$=Object.getOwnPropertyDescriptor,C$=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?S$(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&P$(e,i,r),r};let A$=class extends(Le(pt)){constructor(){super(...arguments),this.barcode="",this.barWidth=2,this.barHeight=100,this.hideValue=!1,this.margin="13 15 13 15"}firstUpdated(){const t=navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&navigator.userAgent.match(/AppleWebKit/),e=navigator.userAgent.match(/Version\/(\d+)/);if(t&&e&&parseInt(e[1])<=15)this.setAttribute("blackandwhite","");else{const t=getComputedStyle(this);let e=t.getPropertyValue("background-color"),i=t.getPropertyValue("color");e.includes("rgba")&&(e=this.rgbaToRgb(e)),i.includes("rgba")&&(i=this.rgbaToRgb(i));const s=this.getLuminance(e);this.getLuminance(i)>s&&this.setAttribute("invert","")}}rgbaToRgb(t){var e;const i=null==(e=t.match(/\d+/g))?void 0:e.map(Number);if(!i||3!==i.length)throw new Error("Invalid color format");return`rgb(${i[0]}, ${i[1]}, ${i[2]})`}getLuminance(t){var e;const i=null==(e=t.match(/\d+/g))?void 0:e.map(Number);if(!i||3!==i.length)throw new Error("Invalid color format");const[s,o,r]=i.map((t=>{const e=t/255;return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}));return.2126*s+.7152*o+.0722*r}render(){return V`<svg id="barcode"></svg>`}generateBarcode(){const t=this.margin.split(" ");$$(this.$barcode,this.barcode,{format:"ean13",background:"transparent",lineColor:"currentColor",font:"var(--sc-barcode-ff)",displayValue:!this.hideValue,width:this.barWidth,height:this.barHeight,marginTop:parseInt(t[0]),marginRight:parseInt(t[1]),marginBottom:parseInt(t[2]),marginLeft:parseInt(t[3]),valid:t=>{this.$barcode.style.display=t?"block":"none"}})}updated(){this.generateBarcode()}};A$.styles=[l`
      :host {
        --sc-barcode-bg: var(--sc-base);
        --sc-barcode-color: var(--sc-base-900);
        --sc-barcode-ff: var(--sc-font-family-base);
        background-color: var(--sc-barcode-bg);
        color: var(--sc-barcode-color);
        border-radius: var(--sc-rounded-md);
        display: inline-block;
        vertical-align: middle;
      }

      :host([invert]) {
        --sc-barcode-bg: var(--sc-base-900);
        --sc-barcode-color: var(--sc-base);
      }
      :host([blackandwhite]) {
        --sc-barcode-bg: #ffffff;
        --sc-barcode-color: #000000;
      }

      svg {
        width: 100%;
        height: auto;
      }
    `],C$([bt("#barcode")],A$.prototype,"$barcode",2),C$([ft()],A$.prototype,"barcode",2),C$([ft({type:Number})],A$.prototype,"barWidth",2),C$([ft({type:Number})],A$.prototype,"barHeight",2),C$([ft({type:Boolean})],A$.prototype,"hideValue",2),C$([ft({type:String})],A$.prototype,"margin",2),A$=C$([ut("sonic-barcode")],A$);var O$={},E$={},T$={};let M$;const D$=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];T$.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},T$.getSymbolTotalCodewords=function(t){return D$[t]},T$.getBCHDigit=function(t){let e=0;for(;0!==t;)e++,t>>>=1;return e},T$.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');M$=t},T$.isKanjiModeEnabled=function(){return void 0!==M$},T$.toSJIS=function(t){return M$(t)};var L$={};function j$(){this.buffer=[],this.length=0}!function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},t.from=function(e,i){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(tO){return i}}}(L$),j$.prototype={get:function(t){const e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(let i=0;i<e;i++)this.putBit(1==(t>>>e-i-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var I$=j$;function z$(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}z$.prototype.set=function(t,e,i,s){const o=t*this.size+e;this.data[o]=i,s&&(this.reservedBit[o]=!0)},z$.prototype.get=function(t,e){return this.data[t*this.size+e]},z$.prototype.xor=function(t,e,i){this.data[t*this.size+e]^=i},z$.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};var B$=z$,R$={};!function(t){const e=T$.getSymbolSize;t.getRowColCoords=function(t){if(1===t)return[];const i=Math.floor(t/7)+2,s=e(t),o=145===s?26:2*Math.ceil((s-13)/(2*i-2)),r=[s-7];for(let e=1;e<i-1;e++)r[e]=r[e-1]-o;return r.push(6),r.reverse()},t.getPositions=function(e){const i=[],s=t.getRowColCoords(e),o=s.length;for(let t=0;t<o;t++)for(let e=0;e<o;e++)0===t&&0===e||0===t&&e===o-1||t===o-1&&0===e||i.push([s[t],s[e]]);return i}}(R$);var N$={};const F$=T$.getSymbolSize;N$.getPositions=function(t){const e=F$(t);return[[0,0],[e-7,0],[0,e-7]]};var q$={};!function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e=3,i=3,s=40,o=10;function r(e,i,s){switch(e){case t.Patterns.PATTERN000:return(i+s)%2==0;case t.Patterns.PATTERN001:return i%2==0;case t.Patterns.PATTERN010:return s%3==0;case t.Patterns.PATTERN011:return(i+s)%3==0;case t.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(s/3))%2==0;case t.Patterns.PATTERN101:return i*s%2+i*s%3==0;case t.Patterns.PATTERN110:return(i*s%2+i*s%3)%2==0;case t.Patterns.PATTERN111:return(i*s%3+(i+s)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(t){const i=t.size;let s=0,o=0,r=0,n=null,a=null;for(let l=0;l<i;l++){o=r=0,n=a=null;for(let c=0;c<i;c++){let i=t.get(l,c);i===n?o++:(o>=5&&(s+=e+(o-5)),n=i,o=1),i=t.get(c,l),i===a?r++:(r>=5&&(s+=e+(r-5)),a=i,r=1)}o>=5&&(s+=e+(o-5)),r>=5&&(s+=e+(r-5))}return s},t.getPenaltyN2=function(t){const e=t.size;let s=0;for(let i=0;i<e-1;i++)for(let o=0;o<e-1;o++){const e=t.get(i,o)+t.get(i,o+1)+t.get(i+1,o)+t.get(i+1,o+1);4!==e&&0!==e||s++}return s*i},t.getPenaltyN3=function(t){const e=t.size;let i=0,o=0,r=0;for(let s=0;s<e;s++){o=r=0;for(let n=0;n<e;n++)o=o<<1&2047|t.get(s,n),n>=10&&(1488===o||93===o)&&i++,r=r<<1&2047|t.get(n,s),n>=10&&(1488===r||93===r)&&i++}return i*s},t.getPenaltyN4=function(t){let e=0;const i=t.data.length;for(let s=0;s<i;s++)e+=t.data[s];return Math.abs(Math.ceil(100*e/i/5)-10)*o},t.applyMask=function(t,e){const i=e.size;for(let s=0;s<i;s++)for(let o=0;o<i;o++)e.isReserved(o,s)||e.xor(o,s,r(t,o,s))},t.getBestMask=function(e,i){const s=Object.keys(t.Patterns).length;let o=0,r=1/0;for(let n=0;n<s;n++){i(n),t.applyMask(n,e);const s=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(n,e),s<r&&(r=s,o=n)}return o}}(q$);var H$={};const U$=L$,V$=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],W$=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];H$.getBlocksCount=function(t,e){switch(e){case U$.L:return V$[4*(t-1)+0];case U$.M:return V$[4*(t-1)+1];case U$.Q:return V$[4*(t-1)+2];case U$.H:return V$[4*(t-1)+3];default:return}},H$.getTotalCodewordsCount=function(t,e){switch(e){case U$.L:return W$[4*(t-1)+0];case U$.M:return W$[4*(t-1)+1];case U$.Q:return W$[4*(t-1)+2];case U$.H:return W$[4*(t-1)+3];default:return}};var Z$={},Y$={};const G$=new Uint8Array(512),K$=new Uint8Array(256);!function(){let t=1;for(let e=0;e<255;e++)G$[e]=t,K$[t]=e,t<<=1,256&t&&(t^=285);for(let e=255;e<512;e++)G$[e]=G$[e-255]}(),Y$.log=function(t){if(t<1)throw new Error("log("+t+")");return K$[t]},Y$.exp=function(t){return G$[t]},Y$.mul=function(t,e){return 0===t||0===e?0:G$[K$[t]+K$[e]]},function(t){const e=Y$;t.mul=function(t,i){const s=new Uint8Array(t.length+i.length-1);for(let o=0;o<t.length;o++)for(let r=0;r<i.length;r++)s[o+r]^=e.mul(t[o],i[r]);return s},t.mod=function(t,i){let s=new Uint8Array(t);for(;s.length-i.length>=0;){const t=s[0];for(let r=0;r<i.length;r++)s[r]^=e.mul(i[r],t);let o=0;for(;o<s.length&&0===s[o];)o++;s=s.slice(o)}return s},t.generateECPolynomial=function(i){let s=new Uint8Array([1]);for(let o=0;o<i;o++)s=t.mul(s,new Uint8Array([1,e.exp(o)]));return s}}(Z$);const Q$=Z$;function X$(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}X$.prototype.initialize=function(t){this.degree=t,this.genPoly=Q$.generateECPolynomial(this.degree)},X$.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const e=new Uint8Array(t.length+this.degree);e.set(t);const i=Q$.mod(e,this.genPoly),s=this.degree-i.length;if(s>0){const t=new Uint8Array(this.degree);return t.set(i,s),t}return i};var J$=X$,tP={},eP={},iP={isValid:function(t){return!isNaN(t)&&t>=1&&t<=40}},sP={};const oP="[0-9]+";let rP="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";rP=rP.replace(/u/g,"\\u");const nP="(?:(?![A-Z0-9 $%*+\\-./:]|"+rP+")(?:.|[\r\n]))+";sP.KANJI=new RegExp(rP,"g"),sP.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),sP.BYTE=new RegExp(nP,"g"),sP.NUMERIC=new RegExp(oP,"g"),sP.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const aP=new RegExp("^"+rP+"$"),lP=new RegExp("^"+oP+"$"),cP=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");sP.testKanji=function(t){return aP.test(t)},sP.testNumeric=function(t){return lP.test(t)},sP.testAlphanumeric=function(t){return cP.test(t)},function(t){const e=iP,i=sP;t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(t,i){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!e.isValid(i))throw new Error("Invalid version: "+i);return i>=1&&i<10?t.ccBits[0]:i<27?t.ccBits[1]:t.ccBits[2]},t.getBestModeForData=function(e){return i.testNumeric(e)?t.NUMERIC:i.testAlphanumeric(e)?t.ALPHANUMERIC:i.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},t.isValid=function(t){return t&&t.bit&&t.ccBits},t.from=function(e,i){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(tO){return i}}}(eP),function(t){const e=T$,i=H$,s=L$,o=eP,r=iP,n=e.getBCHDigit(7973);function a(t,e){return o.getCharCountIndicator(t,e)+4}function l(t,e){let i=0;return t.forEach((function(t){const s=a(t.mode,e);i+=s+t.getBitsLength()})),i}t.from=function(t,e){return r.isValid(t)?parseInt(t,10):e},t.getCapacity=function(t,s,n){if(!r.isValid(t))throw new Error("Invalid QR Code version");void 0===n&&(n=o.BYTE);const l=8*(e.getSymbolTotalCodewords(t)-i.getTotalCodewordsCount(t,s));if(n===o.MIXED)return l;const c=l-a(n,t);switch(n){case o.NUMERIC:return Math.floor(c/10*3);case o.ALPHANUMERIC:return Math.floor(c/11*2);case o.KANJI:return Math.floor(c/13);case o.BYTE:default:return Math.floor(c/8)}},t.getBestVersionForData=function(e,i){let r;const n=s.from(i,s.M);if(Array.isArray(e)){if(e.length>1)return function(e,i){for(let s=1;s<=40;s++)if(l(e,s)<=t.getCapacity(s,i,o.MIXED))return s}(e,n);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,i,s){for(let o=1;o<=40;o++)if(i<=t.getCapacity(o,s,e))return o}(r.mode,r.getLength(),n)},t.getEncodedBits=function(t){if(!r.isValid(t)||t<7)throw new Error("Invalid QR Code version");let i=t<<12;for(;e.getBCHDigit(i)-n>=0;)i^=7973<<e.getBCHDigit(i)-n;return t<<12|i}}(tP);var dP={};const pP=T$,hP=pP.getBCHDigit(1335);dP.getEncodedBits=function(t,e){const i=t.bit<<3|e;let s=i<<10;for(;pP.getBCHDigit(s)-hP>=0;)s^=1335<<pP.getBCHDigit(s)-hP;return 21522^(i<<10|s)};var uP={};const mP=eP;function gP(t){this.mode=mP.NUMERIC,this.data=t.toString()}gP.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},gP.prototype.getLength=function(){return this.data.length},gP.prototype.getBitsLength=function(){return gP.getBitsLength(this.data.length)},gP.prototype.write=function(t){let e,i,s;for(e=0;e+3<=this.data.length;e+=3)i=this.data.substr(e,3),s=parseInt(i,10),t.put(s,10);const o=this.data.length-e;o>0&&(i=this.data.substr(e),s=parseInt(i,10),t.put(s,3*o+1))};var fP=gP;const vP=eP,yP=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function bP(t){this.mode=vP.ALPHANUMERIC,this.data=t}bP.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},bP.prototype.getLength=function(){return this.data.length},bP.prototype.getBitsLength=function(){return bP.getBitsLength(this.data.length)},bP.prototype.write=function(t){let e;for(e=0;e+2<=this.data.length;e+=2){let i=45*yP.indexOf(this.data[e]);i+=yP.indexOf(this.data[e+1]),t.put(i,11)}this.data.length%2&&t.put(yP.indexOf(this.data[e]),6)};var wP=bP;const xP=eP;function _P(t){this.mode=xP.BYTE,this.data="string"==typeof t?(new TextEncoder).encode(t):new Uint8Array(t)}_P.getBitsLength=function(t){return 8*t},_P.prototype.getLength=function(){return this.data.length},_P.prototype.getBitsLength=function(){return _P.getBitsLength(this.data.length)},_P.prototype.write=function(t){for(let e=0,i=this.data.length;e<i;e++)t.put(this.data[e],8)};var kP=_P;const $P=eP,PP=T$;function SP(t){this.mode=$P.KANJI,this.data=t}SP.getBitsLength=function(t){return 13*t},SP.prototype.getLength=function(){return this.data.length},SP.prototype.getBitsLength=function(){return SP.getBitsLength(this.data.length)},SP.prototype.write=function(t){let e;for(e=0;e<this.data.length;e++){let i=PP.toSJIS(this.data[e]);if(i>=33088&&i<=40956)i-=33088;else{if(!(i>=57408&&i<=60351))throw new Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");i-=49472}i=192*(i>>>8&255)+(255&i),t.put(i,13)}};var CP=SP,AP={exports:{}};!function(t){var e={single_source_shortest_paths:function(t,i,s){var o={},r={};r[i]=0;var n,a,l,c,d,p,h,u=e.PriorityQueue.make();for(u.push(i,0);!u.empty();)for(l in a=(n=u.pop()).value,c=n.cost,d=t[a]||{})d.hasOwnProperty(l)&&(p=c+d[l],h=r[l],(void 0===r[l]||h>p)&&(r[l]=p,u.push(l,p),o[l]=a));if(void 0!==s&&void 0===r[s]){var m=["Could not find a path from ",i," to ",s,"."].join("");throw new Error(m)}return o},extract_shortest_path_from_predecessor_list:function(t,e){for(var i=[],s=e;s;)i.push(s),t[s],s=t[s];return i.reverse(),i},find_path:function(t,i,s){var o=e.single_source_shortest_paths(t,i,s);return e.extract_shortest_path_from_predecessor_list(o,s)},PriorityQueue:{make:function(t){var i,s=e.PriorityQueue,o={};for(i in t=t||{},s)s.hasOwnProperty(i)&&(o[i]=s[i]);return o.queue=[],o.sorter=t.sorter||s.default_sorter,o},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var i={value:t,cost:e};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=e}(AP);var OP=AP.exports;!function(t){const e=eP,i=fP,s=wP,o=kP,r=CP,n=sP,a=T$,l=OP;function c(t){return unescape(encodeURIComponent(t)).length}function d(t,e,i){const s=[];let o;for(;null!==(o=t.exec(i));)s.push({data:o[0],index:o.index,mode:e,length:o[0].length});return s}function p(t){const i=d(n.NUMERIC,e.NUMERIC,t),s=d(n.ALPHANUMERIC,e.ALPHANUMERIC,t);let o,r;a.isKanjiModeEnabled()?(o=d(n.BYTE,e.BYTE,t),r=d(n.KANJI,e.KANJI,t)):(o=d(n.BYTE_KANJI,e.BYTE,t),r=[]);return i.concat(s,o,r).sort((function(t,e){return t.index-e.index})).map((function(t){return{data:t.data,mode:t.mode,length:t.length}}))}function h(t,n){switch(n){case e.NUMERIC:return i.getBitsLength(t);case e.ALPHANUMERIC:return s.getBitsLength(t);case e.KANJI:return r.getBitsLength(t);case e.BYTE:return o.getBitsLength(t)}}function u(t,n){let l;const c=e.getBestModeForData(t);if(l=e.from(n,c),l!==e.BYTE&&l.bit<c.bit)throw new Error('"'+t+'" cannot be encoded with mode '+e.toString(l)+".\n Suggested mode is: "+e.toString(c));switch(l!==e.KANJI||a.isKanjiModeEnabled()||(l=e.BYTE),l){case e.NUMERIC:return new i(t);case e.ALPHANUMERIC:return new s(t);case e.KANJI:return new r(t);case e.BYTE:return new o(t)}}t.fromArray=function(t){return t.reduce((function(t,e){return"string"==typeof e?t.push(u(e,null)):e.data&&t.push(u(e.data,e.mode)),t}),[])},t.fromString=function(i,s){const o=function(t){const i=[];for(let s=0;s<t.length;s++){const o=t[s];switch(o.mode){case e.NUMERIC:i.push([o,{data:o.data,mode:e.ALPHANUMERIC,length:o.length},{data:o.data,mode:e.BYTE,length:o.length}]);break;case e.ALPHANUMERIC:i.push([o,{data:o.data,mode:e.BYTE,length:o.length}]);break;case e.KANJI:i.push([o,{data:o.data,mode:e.BYTE,length:c(o.data)}]);break;case e.BYTE:i.push([{data:o.data,mode:e.BYTE,length:c(o.data)}])}}return i}(p(i,a.isKanjiModeEnabled())),r=function(t,i){const s={},o={start:{}};let r=["start"];for(let n=0;n<t.length;n++){const a=t[n],l=[];for(let t=0;t<a.length;t++){const c=a[t],d=""+n+t;l.push(d),s[d]={node:c,lastCount:0},o[d]={};for(let t=0;t<r.length;t++){const n=r[t];s[n]&&s[n].node.mode===c.mode?(o[n][d]=h(s[n].lastCount+c.length,c.mode)-h(s[n].lastCount,c.mode),s[n].lastCount+=c.length):(s[n]&&(s[n].lastCount=c.length),o[n][d]=h(c.length,c.mode)+4+e.getCharCountIndicator(c.mode,i))}}r=l}for(let e=0;e<r.length;e++)o[r[e]].end=0;return{map:o,table:s}}(o,s),n=l.find_path(r.map,"start","end"),d=[];for(let t=1;t<n.length-1;t++)d.push(r.table[n[t]].node);return t.fromArray(function(t){return t.reduce((function(t,e){const i=t.length-1>=0?t[t.length-1]:null;return i&&i.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)}),[])}(d))},t.rawSplit=function(e){return t.fromArray(p(e,a.isKanjiModeEnabled()))}}(uP);const EP=T$,TP=L$,MP=I$,DP=B$,LP=R$,jP=N$,IP=q$,zP=H$,BP=J$,RP=tP,NP=dP,FP=eP,qP=uP;function HP(t,e,i){const s=t.size,o=NP.getEncodedBits(e,i);let r,n;for(r=0;r<15;r++)n=1==(o>>r&1),r<6?t.set(r,8,n,!0):r<8?t.set(r+1,8,n,!0):t.set(s-15+r,8,n,!0),r<8?t.set(8,s-r-1,n,!0):r<9?t.set(8,15-r-1+1,n,!0):t.set(8,15-r-1,n,!0);t.set(s-8,8,1,!0)}function UP(t,e,i){const s=new MP;i.forEach((function(e){s.put(e.mode.bit,4),s.put(e.getLength(),FP.getCharCountIndicator(e.mode,t)),e.write(s)}));const o=8*(EP.getSymbolTotalCodewords(t)-zP.getTotalCodewordsCount(t,e));for(s.getLengthInBits()+4<=o&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(0);const r=(o-s.getLengthInBits())/8;for(let n=0;n<r;n++)s.put(n%2?17:236,8);return function(t,e,i){const s=EP.getSymbolTotalCodewords(e),o=zP.getTotalCodewordsCount(e,i),r=s-o,n=zP.getBlocksCount(e,i),a=s%n,l=n-a,c=Math.floor(s/n),d=Math.floor(r/n),p=d+1,h=c-d,u=new BP(h);let m=0;const g=new Array(n),f=new Array(n);let v=0;const y=new Uint8Array(t.buffer);for(let k=0;k<n;k++){const t=k<l?d:p;g[k]=y.slice(m,m+t),f[k]=u.encode(g[k]),m+=t,v=Math.max(v,t)}const b=new Uint8Array(s);let w,x,_=0;for(w=0;w<v;w++)for(x=0;x<n;x++)w<g[x].length&&(b[_++]=g[x][w]);for(w=0;w<h;w++)for(x=0;x<n;x++)b[_++]=f[x][w];return b}(s,t,e)}function VP(t,e,i,s){let o;if(Array.isArray(t))o=qP.fromArray(t);else{if("string"!=typeof t)throw new Error("Invalid data");{let s=e;if(!s){const e=qP.rawSplit(t);s=RP.getBestVersionForData(e,i)}o=qP.fromString(t,s||40)}}const r=RP.getBestVersionForData(o,i);if(!r)throw new Error("The amount of data is too big to be stored in a QR Code");if(e){if(e<r)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+r+".\n")}else e=r;const n=UP(e,i,o),a=EP.getSymbolSize(e),l=new DP(a);return function(t,e){const i=t.size,s=jP.getPositions(e);for(let o=0;o<s.length;o++){const e=s[o][0],r=s[o][1];for(let s=-1;s<=7;s++)if(!(e+s<=-1||i<=e+s))for(let o=-1;o<=7;o++)r+o<=-1||i<=r+o||(s>=0&&s<=6&&(0===o||6===o)||o>=0&&o<=6&&(0===s||6===s)||s>=2&&s<=4&&o>=2&&o<=4?t.set(e+s,r+o,!0,!0):t.set(e+s,r+o,!1,!0))}}(l,e),function(t){const e=t.size;for(let i=8;i<e-8;i++){const e=i%2==0;t.set(i,6,e,!0),t.set(6,i,e,!0)}}(l),function(t,e){const i=LP.getPositions(e);for(let s=0;s<i.length;s++){const e=i[s][0],o=i[s][1];for(let i=-2;i<=2;i++)for(let s=-2;s<=2;s++)-2===i||2===i||-2===s||2===s||0===i&&0===s?t.set(e+i,o+s,!0,!0):t.set(e+i,o+s,!1,!0)}}(l,e),HP(l,i,0),e>=7&&function(t,e){const i=t.size,s=RP.getEncodedBits(e);let o,r,n;for(let a=0;a<18;a++)o=Math.floor(a/3),r=a%3+i-8-3,n=1==(s>>a&1),t.set(o,r,n,!0),t.set(r,o,n,!0)}(l,e),function(t,e){const i=t.size;let s=-1,o=i-1,r=7,n=0;for(let a=i-1;a>0;a-=2)for(6===a&&a--;;){for(let i=0;i<2;i++)if(!t.isReserved(o,a-i)){let s=!1;n<e.length&&(s=1==(e[n]>>>r&1)),t.set(o,a-i,s),r--,-1===r&&(n++,r=7)}if(o+=s,o<0||i<=o){o-=s,s=-s;break}}}(l,n),isNaN(s)&&(s=IP.getBestMask(l,HP.bind(null,l,i))),IP.applyMask(s,l),HP(l,i,s),{modules:l,version:e,errorCorrectionLevel:i,maskPattern:s,segments:o}}E$.create=function(t,e){if(void 0===t||""===t)throw new Error("No input text");let i,s,o=TP.M;return void 0!==e&&(o=TP.from(e.errorCorrectionLevel,TP.M),i=RP.from(e.version),s=IP.from(e.maskPattern),e.toSJISFunc&&EP.setToSJISFunction(e.toSJISFunc)),VP(t,i,o,s)};var WP={},ZP={};!function(t){function e(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map((function(t){return[t,t]})))),6===e.length&&e.push("F","F");const i=parseInt(e.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:255&i,hex:"#"+e.slice(0,6).join("")}}t.getOptions=function(t){t||(t={}),t.color||(t.color={});const i=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,s=t.width&&t.width>=21?t.width:void 0,o=t.scale||4;return{width:s,scale:s?4:o,margin:i,color:{dark:e(t.color.dark||"#000000ff"),light:e(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},t.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},t.getImageWidth=function(e,i){const s=t.getScale(e,i);return Math.floor((e+2*i.margin)*s)},t.qrToImageData=function(e,i,s){const o=i.modules.size,r=i.modules.data,n=t.getScale(o,s),a=Math.floor((o+2*s.margin)*n),l=s.margin*n,c=[s.color.light,s.color.dark];for(let t=0;t<a;t++)for(let i=0;i<a;i++){let d=4*(t*a+i),p=s.color.light;if(t>=l&&i>=l&&t<a-l&&i<a-l){p=c[r[Math.floor((t-l)/n)*o+Math.floor((i-l)/n)]?1:0]}e[d++]=p.r,e[d++]=p.g,e[d++]=p.b,e[d]=p.a}}}(ZP),function(t){const e=ZP;t.render=function(t,i,s){let o=s,r=i;void 0!==o||i&&i.getContext||(o=i,i=void 0),i||(r=function(){try{return document.createElement("canvas")}catch(tO){throw new Error("You need to specify a canvas element")}}()),o=e.getOptions(o);const n=e.getImageWidth(t.modules.size,o),a=r.getContext("2d"),l=a.createImageData(n,n);return e.qrToImageData(l.data,t,o),function(t,e,i){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=i,e.width=i,e.style.height=i+"px",e.style.width=i+"px"}(a,r,n),a.putImageData(l,0,0),r},t.renderToDataURL=function(e,i,s){let o=s;void 0!==o||i&&i.getContext||(o=i,i=void 0),o||(o={});const r=t.render(e,i,o),n=o.type||"image/png",a=o.rendererOpts||{};return r.toDataURL(n,a.quality)}}(WP);var YP={};const GP=ZP;function KP(t,e){const i=t.a/255,s=e+'="'+t.hex+'"';return i<1?s+" "+e+'-opacity="'+i.toFixed(2).slice(1)+'"':s}function QP(t,e,i){let s=t+e;return void 0!==i&&(s+=" "+i),s}YP.render=function(t,e,i){const s=GP.getOptions(e),o=t.modules.size,r=t.modules.data,n=o+2*s.margin,a=s.color.light.a?"<path "+KP(s.color.light,"fill")+' d="M0 0h'+n+"v"+n+'H0z"/>':"",l="<path "+KP(s.color.dark,"stroke")+' d="'+function(t,e,i){let s="",o=0,r=!1,n=0;for(let a=0;a<t.length;a++){const l=Math.floor(a%e),c=Math.floor(a/e);l||r||(r=!0),t[a]?(n++,a>0&&l>0&&t[a-1]||(s+=r?QP("M",l+i,.5+c+i):QP("m",o,0),o=0,r=!1),l+1<e&&t[a+1]||(s+=QP("h",n),n=0)):o++}return s}(r,o,s.margin)+'"/>',c='viewBox="0 0 '+n+" "+n+'"',d='<svg xmlns="http://www.w3.org/2000/svg" '+(s.width?'width="'+s.width+'" height="'+s.width+'" ':"")+c+' shape-rendering="crispEdges">'+a+l+"</svg>\n";return"function"==typeof i&&i(null,d),d};const XP=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then},JP=E$,tS=WP,eS=YP;function iS(t,e,i,s,o){const r=[].slice.call(arguments,1),n=r.length,a="function"==typeof r[n-1];if(!a&&!XP())throw new Error("Callback required as last argument");if(!a){if(n<1)throw new Error("Too few arguments provided");return 1===n?(i=e,e=s=void 0):2!==n||e.getContext||(s=i,i=e,e=void 0),new Promise((function(o,r){try{const r=JP.create(i,s);o(t(r,e,s))}catch(tO){r(tO)}}))}if(n<2)throw new Error("Too few arguments provided");2===n?(o=i,i=e,e=s=void 0):3===n&&(e.getContext&&void 0===o?(o=s,s=void 0):(o=s,s=i,i=e,e=void 0));try{const r=JP.create(i,s);o(null,t(r,e,s))}catch(tO){o(tO)}}function sS(t){const e=oS(t),[i,s,o]=e.map((t=>{const e=t/255;return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}));return.2126*i+.7152*s+.0722*o}function oS(t){var e;const i=function(t){return t.includes("rgba")?rS(t):t.includes("#")?function(t){var e;t=t.replace(/^#/,""),3===t.length&&(t=t.split("").map((t=>t+t)).join(""));const i=null==(e=t.match(/\w\w/g))?void 0:e.map((t=>parseInt(t,16)));if(!i||3!==i.length)throw new Error("Invalid color format");return`rgb(${i[0]}, ${i[1]}, ${i[2]})`}(t):t}(t),s=null==(e=i.match(/\d+/g))?void 0:e.map(Number);if(!s||3!==s.length)throw new Error("Invalid color format");return s}function rS(t){var e;const i=null==(e=t.match(/\d+/g))?void 0:e.map(Number);if(!i||3!==i.length)throw new Error("Invalid color format");return`rgb(${i[0]}, ${i[1]}, ${i[2]})`}function nS(t){var e;const i=null==(e=t.match(/\d+/g))?void 0:e.map(Number);if(!i||3!==i.length)throw new Error("Invalid color format");return`#${i.map((t=>t.toString(16).padStart(2,"0"))).join("")}`}function aS(t){return t.includes("rgba")?nS(rS(t)):t.includes("rgb")?nS(t):t}O$.create=JP.create,O$.toCanvas=iS.bind(null,tS.render),O$.toDataURL=iS.bind(null,tS.renderToDataURL),O$.toString=iS.bind(null,(function(t,e,i){return eS.render(t,i)}));var lS=Object.defineProperty,cS=Object.getOwnPropertyDescriptor,dS=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?cS(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&lS(e,i,r),r};let pS=class extends(Le(pt)){constructor(){super(...arguments),this._resizeController=new Hn(this,{}),this.barcode="",this.margin=1,this.makeContrastReachThreshold=(t,e,i=7)=>function(t,e){const i=sS(t),s=sS(e);return(Math.max(i,s)+.05)/(Math.min(i,s)+.05)}(t,e)<i?(t=function(t,e){const i=oS(t).map((t=>Math.round(t+(255-t)*e)));return`rgb(${i[0]}, ${i[1]}, ${i[2]})`}(t,sS(t)),e=function(t,e){const i=oS(t).map((t=>Math.round(t*(1-e))));return`rgb(${i[0]}, ${i[1]}, ${i[2]})`}(e,sS(e)),this.makeContrastReachThreshold(t,e,i)):{light:t,dark:e}}updated(t){const e=getComputedStyle(this);let i=e.getPropertyValue("background-color"),s=e.getPropertyValue("color");sS(i)<sS(s)&&([i,s]=[s,i]);({light:i,dark:s}=this.makeContrastReachThreshold(i,s,7));const o=async t=>{try{await O$.toCanvas(this.qrcodeEl,t,{margin:this.margin,width:this.qrcodecontainerEl.clientWidth,color:{dark:aS(s),light:aS(i)}})}catch(e){console.error(e)}},r=this.qrCodeContent||this.barcode;r&&o(r),super.updated(t)}render(){return V`
      <div id="qrcodecontainer" class="canvas-container">
        <canvas id="qrcode"></canvas>
      </div>
    `}};pS.styles=[l`
      :host {
        display: block;
        width: 100%;
        background-color: var(--sc-base, #fff);
        color: var(--sc-base-content, #000);
      }

      .canvas-container {
        aspect-ratio: 1 / 1;
      }

      canvas {
        display: block;
        width: 100% !important;
        height: auto !important;
      }
    `],dS([ft({type:String})],pS.prototype,"barcode",2),dS([ft({type:Number})],pS.prototype,"margin",2),dS([ft({type:String})],pS.prototype,"qrCodeContent",2),dS([bt("#qrcode")],pS.prototype,"qrcodeEl",2),dS([bt("#qrcodecontainer")],pS.prototype,"qrcodecontainerEl",2),pS=dS([ut("sonic-qrcode")],pS);var hS=Object.defineProperty,uS=Object.getOwnPropertyDescriptor,mS=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?uS(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&hS(e,i,r),r};let gS=class extends(Le(pt)){constructor(){super(...arguments),this.entity={},this.created=0,this.event={},this.price={},this.owner={},this.barcode="",this.subscribe={},this.giftcard={},this.refund={},this.barcodeMode="qrcode",this.skeleton=!1}renderPlacement(){var t,e;if(!(null==(t=this.event)?void 0:t.placement))return Z;const i=(t=>{if(!t)return"";const e=[],i=t;["area","door","type_of_seat"].forEach((t=>{i[t]&&e.push(i[t])}));const s=e.join(" / "),o=[];["row","seat"].forEach((t=>{i[t]&&o.push(i[t])}));const r=o.join("-"),n=[];return s&&n.push(s),r&&n.push(r),n.join(" - ")})(null==(e=this.event)?void 0:e.placement);return i?V`<sonic-ticket-info
      class="text-sm"
      label=${Ae("ticket_placement")}
      content="${i}"
    ></sonic-ticket-info> `:Z}render(){var t,e,i,s,o,r,n,a,l,c,d,p,h,u,m,g,f;if(this.skeleton)return V`${this.render_skeleton()}`;const v=null==(t=this.props)?void 0:t.entity_type,y=v==Cd.Event?"event_purchase_"+this.id:void 0,b="pending"!=this.refund.status&&"accepted"!=this.refund.status&&!this.price.isCountermark;return V` ${y&&(null==(e=this.entity)?void 0:e.id)?V`<sonic-fetch lazyload dataProvider=${li(y)} endPoint="/events/${this.entity.id}">
          </sonic-fetch> `:Z}
      <div>
        <div class=" mb-6 pt-8 px-3 lg:px-6">
          <div class="mb-4">
            ${v==Cd.Event?V`
                  <sonic-date subDataProvider="entity" class="uppercase block mb-2"></sonic-date>
                  <sonic-product-title
                    machineName
                    subDataProvider="entity.edito"
                    class="text-3xl"
                  ></sonic-product-title>
                  <sonic-event-location-hall
                    subDataProvider="entity"
                    isEvent="true"
                    class="block mt-1 text-sm"
                  ></sonic-event-location-hall>
                `:V`<sonic-product-title subDataProvider="entity.edito" class="text-3xl"></sonic-product-title> `}

            <div class="flex gap-2 items-center flex-wrap ">
              ${"subscribe"==v&&(null==(i=this.subscribe)?void 0:i.number)?V` <sonic-badge type="info" size="sm">N° ${null==(s=this.subscribe)?void 0:s.number}</sonic-badge>`:Z}
              ${(null==(o=this.giftcard)?void 0:o.code)?V` <sonic-giftcard-code copy code="${null==(r=this.giftcard)?void 0:r.code}" size="sm"></sonic-giftcard-code>`:Z}
              ${(null==(n=this.refund)?void 0:n.status)?V` <sonic-purchase-refund-status size="xs"></sonic-purchase-refund-status> `:Z}
            </div>
          </div>

          <div class="grid grid-cols-[repeat(auto-fit,minmax(min(100%,10rem),1fr))] gap-3">
            ${(null==(a=this.giftcard)?void 0:a.remaining_amount)||0===(null==(l=this.giftcard)?void 0:l.remaining_amount)?V`
                  <sonic-ticket-info class="text-sm" label=${Ae("remaining")}>
                    ${Ed(this.giftcard.remaining_amount)}
                  </sonic-ticket-info>
                `:Z}

            <!-- Détenteur -->
            ${(null==(c=this.owner)?void 0:c.firstName)||(null==(d=this.owner)?void 0:d.lastName)?V`
                  <sonic-ticket-info
                    class="text-sm"
                    label=${Ae("LIB_detenteur")}
                    content="${null==(p=this.owner)?void 0:p.firstName} ${null==(h=this.owner)?void 0:h.lastName}"
                  ></sonic-ticket-info>
                `:Z}

            <!-- Date -->
            ${this.created?V`
                  <sonic-ticket-info class="text-sm" label=${Ae("purchase_date")}>
                    <sonic-date date=${this.created} weekday="hidden" month="2-digit"></sonic-date>
                  </sonic-ticket-info>
                `:Z}

            <!-- Placement -->
            ${this.renderPlacement()}
            <!-- Catégories -->

            <!-- Prix -->
            ${(null==(u=this.price)?void 0:u.amount)?V`
                  <sonic-ticket-info
                    class="text-sm"
                    label="${Ae("price")}"
                    content="${null==(m=this.price)?void 0:m.label} ${Ed(null==(g=this.price)?void 0:g.amount)}"
                  ></sonic-ticket-info>
                `:Z}
          </div>
          <!-- Contremarque -->
          ${(null==(f=this.price)?void 0:f.isCountermark)?V`
                <sonic-badge type="info" class="mt-4" size="sm">${Ae("contremarque_echanger_guichet")}</sonic-badge>
              `:Z}
        </div>
        ${this.barcode&&!this.price.isCountermark?V`
              <sonic-divider class="mt-6 mb-4"></sonic-divider>
              <div class="px-3 lg:px-6 pb-5 flex flex-col  items-center lowercase ">
                <div class="text-sm tracking-wider leading-none">n° ${this.barcode}</div>
                ${b?V`
                      ${"qrcode"==this.barcodeMode?V`<sonic-qrcode class="size-[8rem]" margin="2"></sonic-qrcode>`:V`<sonic-barcode
                            hideValue
                            barWidth="3"
                            barHeight="60"
                            class="w-[max(60%,20rem)] max-w-[90%] "
                          ></sonic-barcode>`}

                      <div class="flex gap-1 mt-1">
                        <sonic-button
                          variant="ghost"
                          size="2xs"
                          class="font-semibold "
                          minWidth="6rem"
                          @click=${()=>this.barcodeMode="qrcode"}
                          ?active=${"qrcode"==this.barcodeMode}
                          ><span class="lowercase">${Ae("qr code")}</span></sonic-button
                        >
                        <sonic-button
                          variant="ghost"
                          size="2xs"
                          class="font-semibold "
                          minWidth="6rem"
                          @click=${()=>this.barcodeMode="barcode"}
                          ?active=${"barcode"==this.barcodeMode}
                          ><span class="lowercase">${Ae("codebarre")}</span></sonic-button
                        >
                      </div>
                    `:Z}
              </div>
            `:Z}
        ${v==Cd.Event?V`
              <div class="aspect-[3/2] lg:aspect-[16/9] overflow-hidden ">
                <sonic-product-illustration
                  subdataProvider="entity.picture"
                  class="w-full block"
                ></sonic-product-illustration>
              </div>
            `:Z}
      </div>`}printCategories(t){const e=t.reduce(((t,e)=>(e.title&&t.push(e.title),t)),[]);return V` ${e.join(", ")} `}render_skeleton(){return V` <div>
      <div class=" pt-5 px-3 lg:px-6">
        <div class="mb-4">
          <div class="rounded-sm animate-pulse bg-neutral-300 h-4 max-w-[20ch] mb-1"></div>
          <div class="rounded-sm animate-pulse bg-neutral-300 h-7 max-w-[34ch] mb-1"></div>
          <div class="rounded-sm animate-pulse bg-neutral-300 h-2 max-w-[15ch] mb-3"></div>
        </div>

        <div class="grid grid-cols-[repeat(auto-fit,minmax(min(100%,15rem),1fr))] gap-3">
          <div>
            <div class="rounded-sm animate-pulse bg-neutral-300 h-2 max-w-[10ch] mb-1"></div>
            <div class="rounded-sm animate-pulse bg-neutral-300 h-3 max-w-[23ch] "></div>
          </div>
          <div>
            <div class="rounded-sm animate-pulse bg-neutral-300 h-2 max-w-[12ch] mb-1"></div>
            <div class="rounded-sm animate-pulse bg-neutral-300 h-3 max-w-[18ch] "></div>
          </div>
        </div>
      </div>
      <sonic-divider class="mt-6 mb-5"></sonic-divider>
      <div class="px-3 lg:px-6 pb-6 flex flex-col gap-[3px] items-center">
        <sonic-barcode
          barcode="123456789012"
          hideValue
          barWidth="3"
          barHeight="60"
          class="w-[max(60%,25rem)] max-w-[90%] animate-pulse text-neutral-300"
        ></sonic-barcode>
      </div>
      <div class="animate-pulse aspect-[3/2] lg:aspect-[16/9] overflow-hidden bg-neutral-200"></div>
    </div>`}};gS.styles=[Qs],mS([ft({type:Object})],gS.prototype,"entity",2),mS([ft({type:Number})],gS.prototype,"created",2),mS([ft({type:Object})],gS.prototype,"event",2),mS([ft({type:Object})],gS.prototype,"price",2),mS([ft({type:Object})],gS.prototype,"owner",2),mS([ft({type:String})],gS.prototype,"barcode",2),mS([ft({type:Object})],gS.prototype,"subscribe",2),mS([ft({type:Object})],gS.prototype,"giftcard",2),mS([ft({type:Object})],gS.prototype,"refund",2),mS([vt()],gS.prototype,"barcodeMode",2),mS([ft({type:Boolean})],gS.prototype,"skeleton",2),gS=mS([ut("sonic-ticket")],gS);var fS=Object.defineProperty,vS=Object.getOwnPropertyDescriptor,yS=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?vS(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&fS(e,i,r),r};let bS=class extends(Le(pt)){constructor(){super(...arguments),this.code=null,this.type="success"}copyCode(t){var e;if(t&&(null==(e=navigator.clipboard)||e.writeText(t).then((function(){const e={text:`<span class="tracking-wide font-bold">${t}</span> a été copié`,status:"success"};Ki.add(e)})),!navigator.clipboard)){const e={text:`Votre navigateur ne supporte pas la copie automatique, veuillez copier manuellement le code : <span class="tracking-wide font-bold">${t}</span>`,status:"error"};Ki.add(e)}}render(){return V`${this.code?V`
          <sonic-tooltip label="${Ae("copy")}">
            <sonic-badge
              tabindex="0"
              class="cursor-pointer"
              @click="${()=>this.copyCode(this.code)}"
              type="${li(this.type)}"
              size="${li(this.size)}"
              class="font-monospace tracking-widest"
              >${this.code}</sonic-badge
            >
          </sonic-tooltip>
        `:Z}`}};bS.styles=[Qs],yS([ft({type:String})],bS.prototype,"code",2),yS([ft({type:Boolean})],bS.prototype,"copy",2),yS([ft({type:String})],bS.prototype,"size",2),yS([ft({type:String})],bS.prototype,"type",2),bS=yS([ut("sonic-giftcard-code")],bS);var wS=Object.defineProperty,xS=Object.getOwnPropertyDescriptor,_S=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?xS(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&wS(e,i,r),r};let kS=class extends(Le(pt)){constructor(){super(...arguments),this.subscribe={},this.giftcard={},this.entity={},this.owner={}}render(){var t;return"event"===(null==(t=this.props)?void 0:t.entity_type)?V` ${this.render_event()} `:V` ${this.render_default()} `}render_event(){return this.entity?V`
      <sonic-date subDataProvider="entity" month="2-digit" class="text-xs mb-1 pt-1 block"></sonic-date>
      <sonic-product-title subDataProvider="entity.edito"></sonic-product-title>
      <sonic-event-location-hall
        subDataProvider="entity"
        isEvent="true"
        class="block mt-2 text-xs"
        noPlacement
      ></sonic-event-location-hall>
    `:Z}render_default(){var t,e,i,s,o,r,n;return V`
      <div class="font-bold mb-1 pt-1"><sonic-product-title subDataProvider="entity.edito"></sonic-product-title></div>
      <div class="text-xs">
        ${(null==(t=this.subscribe)?void 0:t.name)?V`<div class="font-bold">${null==(e=this.subscribe)?void 0:e.name}</div>`:Z}
        ${(null==(i=this.subscribe)?void 0:i.email)?V`<div>${null==(s=this.subscribe)?void 0:s.email}</div>`:Z}

        <div class="flex gap-x-2 flex-wrap items-center mt-1">
          ${(null==(o=this.subscribe)?void 0:o.number)?V` <sonic-badge type="info" size="xs">${"N°"+this.subscribe.number}</sonic-badge> `:Z}
          <sonic-purchase-expiration-date size="2xs" class="block"></sonic-purchase-expiration-date>
          ${(null==(r=this.giftcard)?void 0:r.code)?V` <sonic-giftcard-code copy code="${this.giftcard.code}" size="xs"></sonic-giftcard-code>`:Z}
          ${(null==(n=this.giftcard)?void 0:n.remaining_amount)?V`<span class="font-bold text-sm text-neutral-400 text-xs"
                >Reste : ${Ed(this.giftcard.remaining_amount)}</span
              >`:Z}
        </div>
      </div>
    `}};kS.styles=[Qs],_S([ft({type:Object})],kS.prototype,"subscribe",2),_S([ft({type:Object})],kS.prototype,"giftcard",2),_S([ft({type:Object})],kS.prototype,"entity",2),_S([ft({type:Object})],kS.prototype,"owner",2),kS=_S([ut("sonic-purchase-summary-main-info")],kS);var $S=Object.defineProperty,PS=Object.getOwnPropertyDescriptor,SS=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?PS(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&$S(e,i,r),r};let CS=class extends(Le(pt)){constructor(){super(...arguments),this.expiration_date="",this.subscribe={}}render(){var t;const e=this.expiration_date||(null==(t=this.subscribe)?void 0:t.expiration_date);return e?V` <sonic-badge variant="outline" type="danger" size=${li(this.size)} class="font-bold">
      ${Ae("expire_le")}
      <sonic-date date=${e} weekday="hidden" month="2-digit" hour="hidden" minute="hidden"></sonic-date>
    </sonic-badge>`:Z}};CS.styles=[Qs],SS([ft()],CS.prototype,"size",2),SS([ft({type:String})],CS.prototype,"expiration_date",2),SS([ft({type:Object})],CS.prototype,"subscribe",2),CS=SS([ut("sonic-purchase-expiration-date")],CS);var AS=Object.defineProperty,OS=Object.getOwnPropertyDescriptor,ES=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?OS(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&AS(e,i,r),r};let TS=class extends(Le(pt)){constructor(){super(...arguments),this.refund={},this.type="default"}willUpdate(t){var e;if(t.has("refund"))switch(null==(e=this.refund)?void 0:e.status){case"pending":this.outputText=Ae("LIB_refund_pending"),this.type="warning";break;case"accepted":this.outputText=Ae("LIB_refund_accepted"),this.type="success";break;case"canceled":this.outputText=Ae("LIB_refund_canceled"),this.type="danger";break;default:this.outputText="",this.type="default"}super.willUpdate(t)}render(){var t,e;return this.outputText?V`<sonic-badge size=${li(this.size)} type=${this.type}>${this.outputText}</sonic-badge>
      ${"pending"==(null==(t=this.refund)?void 0:t.status)?V`<sonic-badge class="ml-2" variant="ghost" size="2xs" type=${this.type}
            ><sonic-date date="${this.refund.askDate}" day="2-digit" month="2-digit" weekday="hidden"></sonic-date
          ></sonic-badge>`:Z}
      ${"accepted"==(null==(e=this.refund)?void 0:e.status)?V`<sonic-badge class="ml-2" variant="ghost" size="2xs" type=${this.type}
            ><sonic-date date="${this.refund.date}" day="2-digit" month="2-digit" weekday="hidden"></sonic-date
          ></sonic-badge>`:Z} `:Z}};TS.styles=[Qs],ES([ft()],TS.prototype,"size",2),ES([ft({type:Object})],TS.prototype,"refund",2),ES([ft({type:String})],TS.prototype,"type",2),TS=ES([ut("sonic-purchase-refund-status")],TS);var MS=Object.defineProperty,DS=Object.getOwnPropertyDescriptor,LS=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?DS(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&MS(e,i,r),r};let jS=class extends(Le(pt)){constructor(){super(...arguments),this.created=0,this.price={},this.owner={}}render(){var t,e,i,s,o,r,n,a,l;const c="subscribe"===(null==(t=this.props)?void 0:t.entity_type);return V` <div class="@container">
      <div class="grid @sm:grid-cols-2 grid-cols-1 gap-y-1">
        ${(null==(e=this.price)?void 0:e.label)||(null==(i=this.price)?void 0:i.amount)?V`<div>
              <span class="mr-1 text-2xs">${Ae("price")}</span><br />
              <strong class="inline-block">${null==(s=this.price)?void 0:s.label} ${Ed((null==(o=this.price)?void 0:o.amount)??0)}</strong>
            </div>`:Z}
        <div>
          <span class="mr-1 text-2xs"> ${Ae("purchase_date")}</span><br />
          <strong><sonic-date date=${this.created} weekday="hidden" month="2-digit"></sonic-date></strong>
        </div>
        ${c||!(null==(r=this.owner)?void 0:r.firstName)&&!(null==(n=this.owner)?void 0:n.lastName)?Z:V`<div>
              <span class="mr-1 text-2xs">${Ae("owner")} </span><br /><strong class="inline-block"
                >${null==(a=this.owner)?void 0:a.firstName} ${null==(l=this.owner)?void 0:l.lastName}</strong
              >
            </div>`}

        <sonic-purchase-refund-status size="xs" class="mt-1"></sonic-purchase-refund-status>
      </div>
    </div>`}};jS.styles=[Qs],LS([ft({type:Number})],jS.prototype,"created",2),LS([ft({type:Object})],jS.prototype,"price",2),LS([ft({type:Object})],jS.prototype,"owner",2),jS=LS([ut("sonic-purchase-summary-complementary-info")],jS);var IS=Object.defineProperty,zS=Object.getOwnPropertyDescriptor,BS=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?zS(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&IS(e,i,r),r};let RS=class extends(Le(pt)){constructor(){super(...arguments),this.print_url="",this.barcode="",this.pdf_mobile_url="",this.direction="row",this.skeleton=!1,this.entity=null,this.wording_free_up_confirm="",this.wording_free_up_action_info="",this.wording_cancel="",this.wording_confirm="",this.cancelable=!1,this.displayFreeUpModal=!1,this.refund={},this._resizeController=new Hn(this,{})}render(){return this.skeleton?V`${this.render_skeleton()}`:V`
      <div class="@container">
        <div
          class="
            grid gap-4 p-3 @xl:p-4 
            grid-cols-[max(6rem,_13%)_1fr]
            @xl:grid-cols-[max(6rem,_13%)_1.2fr_1fr]
            @xl:pr-2
            items-center bg-neutral-100 rounded-md"
        >
          <!-- illustration -->
          <div class=" rounded-md overflow-hidden self-start">
            <div class="aspect-square flex w-full">
              <sonic-product-illustration
                subDataProvider="entity.picture"
                class="block w-full"
              ></sonic-product-illustration>
            </div>
          </div>

          <!-- main -->
          <div class="self-center">
            <sonic-purchase-summary-main-info></sonic-purchase-summary-main-info>
          </div>

          <!-- aside -->
          <div
            class="flex gap-x-3 col-span-full pt-3 border-t border-neutral-200 @xl:pt-0 @xl:col-span-1 @xl:border-none @xl:items-center"
          >
            <div class="col-start-2 @xl:col-auto flex-grow cell-aside self-center text-xs">
              <sonic-purchase-summary-complementary-info></sonic-purchase-summary-complementary-info>
            </div>

            <div class="ml-auto flex">${this.render_actions()}</div>
          </div>
        </div>
      </div>

      ${this.cancelable?this.freeUpMarkup():Z}
    `}render_actions(){var t;const e=null==(t=this.refund)?void 0:t.askEnabled,i=this.pdf_mobile_url||this.print_url||this.cancelable||e,s=!("accepted"==this.refund.status);return V`
      ${s?V`
            <sonic-button noAutofill shape="circle" type="neutral" @click=${this.handleClick}>
              <sonic-icon name="chevron-right" library="custom"></sonic-icon>
            </sonic-button>
          `:Z}

      <sonic-pop placement="bottom">
        <sonic-button
          ?disabled=${!i}
          class=${i?"":"opacity-0"}
          noAutofill
          icon
          shape="circle"
          type="default"
          variant="ghost"
        >
          <sonic-icon library="custom" size="lg" name="ellipsis-vertical"></sonic-icon>
        </sonic-button>
        <sonic-menu slot="content" minWidth="15rem">
          ${this.pdf_mobile_url?V` <sonic-menu-item noAutofill href="${this.pdf_mobile_url}" target="_blank">
                <sonic-icon library="custom" prefix="regular" name="file-pdf" class="mr-2"></sonic-icon>
                ${Ae("pdf_mobile")}
              </sonic-menu-item>`:Z}
          ${this.print_url?V` <sonic-menu-item noAutofill href="${this.print_url}" target="_blank">
                <sonic-icon library="custom" prefix="regular" name="print" class="mr-2"></sonic-icon>
                ${Ae("print")}
              </sonic-menu-item>`:Z}
          ${this.print_url&&(this.cancelable||e)?V`<sonic-divider></sonic-divider>`:Z}
          ${this.cancelable?this.cancelLink():Z} ${e?this.refundLink():Z}
        </sonic-menu>
      </sonic-pop>
    `}refundLink(){var t;const e=null==(t=this.entity)?void 0:t.id,i=ao("refund").query({event_id:e,barcode:this.barcode});return V`<sonic-menu-item noAutofill href="${i}" class="whitespace-nowrap">
      <sonic-icon library="custom" name="arrow-rotate-left" class="mr-2"></sonic-icon>
      ${Ae("ask_for_refund")}
    </sonic-menu-item>`}cancelLink(){return V` <sonic-menu-item noAutofill @click="${this.showFreeUp}">
      <sonic-icon library="custom" name="hand-wave" class="mr-2"></sonic-icon>
      ${Ae("free_up")}
    </sonic-menu-item>`}showFreeUp(){this.displayFreeUpModal=!0}hideFreeUp(){this.displayFreeUpModal=!1}hideAndRefresh(){this.hideFreeUp(),Ti.get("accountHomeTickets").invalidate(),Ti.get("accountTicketsResults").invalidate(),Ti.get("accountPurchasesFilters").refreshDate=(new Date).getTime(),Ti.get("accountTicketsFilters").refreshDate=(new Date).getTime()}freeUpMarkup(){return V`
      <sonic-modal @hidden=${this.hideFreeUp} ?visible=${this.displayFreeUpModal} width="30rem">
        <sonic-modal-close></sonic-modal-close>
        <sonic-modal-title>${Ae("free_up_confirm")}</sonic-modal-title>
        <sonic-modal-subtitle>${Ae("free_up_action_info")}</sonic-modal-subtitle>

        <sonic-modal-actions
          ><sonic-button noAutoFill hideModal type="default"> ${Ae("cancel")} </sonic-button>
          <sonic-submit
            endpoint="tickets"
            formDataProvider="FreeupTicketConfirmForm"
            method="delete"
            onClick
          >
            <sonic-button radio @click=${this.hideAndRefresh} noAutoFill type="success" name="id" value="${this.id}">
              ${Ae("confirm")}
            </sonic-button>
          </sonic-submit></sonic-modal-actions
        >
      </sonic-modal>
    `}handleClick(){gl.create({content:'<sonic-ticket class="pt-3" dataProvider="'+this.dataProvider+'"></sonic-ticket>',paddingX:"0",paddingY:"0",width:"30rem",removeOnHide:!0})}render_skeleton(){return V` <div class="@container">
      <div
        class="grid gap-4 p-3 @xl:p-4
        grid-cols-[max(6rem,_13%)_1fr]
        @xl:grid-cols-[max(6rem,_13%)_1.2fr_1fr] items-center
        bg-neutral-100 rounded-md"
      >
        <!-- illustration -->
        <div class=" rounded-md overflow-hidden self-start">
          <div class="aspect-square bg-neutral-300 animate-pulse"></div>
        </div>

        <!-- main -->
        <div class=" self-center">
          <div class="rounded-sm animate-pulse bg-neutral-300 h-4 max-w-[15ch] mb-1"></div>
          <div class="rounded-sm animate-pulse bg-neutral-300 h-4 max-w-[28ch] mb-3"></div>
          <div class="rounded-sm animate-pulse bg-neutral-300 h-4 max-w-[18ch] "></div>
        </div>
      </div>
    </div>`}};RS.styles=[Qs],BS([ft({type:String})],RS.prototype,"print_url",2),BS([ft({type:String})],RS.prototype,"barcode",2),BS([ft({type:String})],RS.prototype,"pdf_mobile_url",2),BS([ft({type:String})],RS.prototype,"direction",2),BS([ft({type:Boolean})],RS.prototype,"skeleton",2),BS([ft({type:Object})],RS.prototype,"entity",2),BS([ft({type:String})],RS.prototype,"wording_free_up_confirm",2),BS([ft({type:String})],RS.prototype,"wording_free_up_action_info",2),BS([ft({type:String})],RS.prototype,"wording_cancel",2),BS([ft({type:String})],RS.prototype,"wording_confirm",2),BS([ft({type:Boolean})],RS.prototype,"cancelable",2),BS([ft({type:Boolean})],RS.prototype,"displayFreeUpModal",2),BS([ft({type:Object})],RS.prototype,"refund",2),RS=BS([ut("sonic-purchase-summary")],RS);var NS=Object.defineProperty,FS=Object.getOwnPropertyDescriptor,qS=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?FS(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&NS(e,i,r),r};let HS=class extends(Le(pt)){constructor(){super(...arguments),this.id="",this.date="",this.invoice_name="",this.amount="",this.invoice_url=""}render(){return V`
      <sonic-tr>
        <sonic-td>
          <sonic-date month="numeric" year="numeric" weekday="hidden"></sonic-date>
        </sonic-td>
        <sonic-td>${this.invoice_name}</sonic-td>
        <sonic-td class="hidden lg:contents">${this.id}</sonic-td>
        <sonic-td>${this.amount}€</sonic-td>
        <sonic-td align="center">
          <sonic-button href="${this.invoice_url}" variant="ghost" icon shape="circle" target="_blank" size="sm" aria-label="print invoice">
            <sonic-icon library="custom" name="file-pdf"></sonic-icon>
          </sonic-button>
        </sonic-td>
      </sonic-tr>
    `}};HS.styles=[Qs,l`
      :host {
        display: contents;
      }
    `],qS([ft()],HS.prototype,"id",2),qS([ft()],HS.prototype,"date",2),qS([ft()],HS.prototype,"invoice_name",2),qS([ft()],HS.prototype,"amount",2),qS([ft()],HS.prototype,"invoice_url",2),HS=qS([ut("sonic-orders-table-line")],HS);var US=Object.defineProperty,VS=Object.getOwnPropertyDescriptor,WS=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?VS(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&US(e,i,r),r};let ZS=class extends(Le(pt)){constructor(){super(...arguments),this.userId=""}render(){return this.userId?V`
      <sonic-table bordered maxHeight="50vh" size="sm">
        <sonic-thead>
          <sonic-tr class="text-neutral-400 text-normal lowercase ">
            <sonic-th>${Ae("date_buy")}</sonic-th>
            <sonic-th>${Ae("invoice_number")}</sonic-th>
            <sonic-th class="hidden lg:contents">${Ae("transaction_number")}</sonic-th>
            <sonic-th>${Ae("amount")}</sonic-th>
            <sonic-th></sonic-th>
          </sonic-tr>
        </sonic-thead>
        <sonic-tbody dataProvider="userInvoicesResults">
          <sonic-queue
            displayContents
            dataProviderExpression="/user/${this.userId}/orders?limit=$limit&offset=$offset"
            targetRequestDuration="1000"
            limit="10"
            key="data"
          >
            <template data-value="no-item">
              <sonic-tr>
                <sonic-td colspan="5">
                  <sonic-no-result></sonic-no-result>
                </sonic-td>
              </sonic-tr>
            </template>
            <template>
              <sonic-orders-table-line></sonic-orders-table-line>
            </template>
          </sonic-queue>
        </sonic-tbody>
      </sonic-table>
    `:Z}};ZS.styles=[Qs],WS([ft({type:String})],ZS.prototype,"userId",2),ZS=WS([ut("sonic-orders-table")],ZS);var YS=Object.defineProperty,GS=Object.getOwnPropertyDescriptor,KS=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?GS(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&YS(e,i,r),r};let QS=class extends(Le(pt)){constructor(){super(...arguments),this.name="season",this.onlyId=!1,this.enableAll=!1,this.enableNext=!1,this.selectCurrent=!1,this.selectNext=!1,this.size="md"}formatValue(t){return this.onlyId&&t.id?t.id.toString():t.id+"|"+t.start_date+"|"+t.end_date+(t.current?"|current":"|")}render(){if(!this.props||0==Object.entries(this.props).length)return Z;let t=this.props.reverse().map((t=>({value:this.formatValue(t),wording:t.title,selected:!!this.selectCurrent&&t.current})));return this.enableAll&&(t=[{value:"",wording:"Toutes les saisons",selected:!this.selectCurrent},...t]),this.enableNext&&(t=[{value:"next",wording:"A venir",selected:!this.selectNext},...t]),V`<sonic-select size=${this.size} name="${this.name}" .options=${t}></sonic-select>`}};QS.styles=[Qs],KS([ft({type:String})],QS.prototype,"name",2),KS([ft({type:Boolean})],QS.prototype,"onlyId",2),KS([ft({type:Boolean})],QS.prototype,"enableAll",2),KS([ft({type:Boolean})],QS.prototype,"enableNext",2),KS([ft({type:Boolean})],QS.prototype,"selectCurrent",2),KS([ft({type:Boolean})],QS.prototype,"selectNext",2),KS([ft({type:String})],QS.prototype,"size",2),QS=KS([ut("sonic-season-select")],QS);var XS=Object.defineProperty,JS=Object.getOwnPropertyDescriptor,tC=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?JS(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&XS(e,i,r),r};let eC=class extends(Le(pt)){constructor(){super(...arguments),this.id="",this.activeTab="history"}toggleTab(t){this.activeTab=t}render(){return this.id?V`
      <sonic-page-header label="${Ae("mes_achats")}"></sonic-page-header>

      <!-- Search -->
      <div class="flex gap-2 -mt-6 mb-8">
        <sonic-button ?active=${"history"==this.activeTab} @click=${()=>this.toggleTab("history")} size="md">
          <sonic-icon library="custom" name="clock-rotate-left" class="mr-1"> </sonic-icon>
          ${Ae("history")}
        </sonic-button>
        <sonic-button ?active=${"invoice"==this.activeTab} @click=${()=>this.toggleTab("invoice")} size="md">
          <sonic-icon library="custom" name="file" class="mr-1"> </sonic-icon>
          ${Ae("invoices")}
        </sonic-button>
      </div>

      <!-- HISTORY -->

      ${"history"===this.activeTab?V`
            <div
              formDataProvider="accountPurchasesFilters"
              dataProvider="accountPurchasesFilters"
              class="mb-8 flex flex-wrap gap-x-3 gap-y-2 items-center "
            >
              <sonic-input
                type="search"
                name="search"
                inlineContent
                placeholder="Rechercher..."
                filteredFields="title"
                class="grow max-w-[20rem]"
                autocomplete="off"
                value=""
              >
                <sonic-icon library="iconoir" slot="prefix" name="search"></sonic-icon>
              </sonic-input>
              <sonic-select
                name="entity_type"
                class="min-w-[13rem] "
                .options=${[{value:"",wording:Ae("all_purchases")},{value:"event",wording:Ae("tickets")},...this.hasSubscription?[{value:"subscribe",wording:Ae("onglet_home_abonnements")}]:[],...this.hasGiftcards?[{value:"giftcard",wording:Ae("LIB_cartes_cadeaux")}]:[],...this.hasAdditionalProducts?[{value:"additionalProduct",wording:Ae("LIB_produits_additionnels")}]:[]]}
              >
              </sonic-select>
              <sonic-fetch dataProvider="SeasonList" endPoint="/season" key="data">
                <sonic-season-select name="ids_season[]" enableAll onlyId class="min-w-[13rem]"></sonic-season-select>
              </sonic-fetch>
            </div>
            <div dataProvider="accountPurchasesFilters">
              <sonic-queue
                dataProviderExpression="/user/${this.id}/purchases?next=1&limit=$limit&offset=$offset&buyer=${this.id}"
                limit="8"
                lazyBoundsRatio="4"
                targetRequestDuration="1000"
                dataProvider="accountPurchasesResults"
                dataFilterProvider="accountPurchasesFilters"
                key="data"
                class="grid grid-cols-1 gap-3"
              >
                <template data-value="no-item">
                  <sonic-no-result></sonic-no-result>
                </template>
                <template data-value="skeleton">
                  <sonic-purchase-summary skeleton></sonic-purchase-summary>
                </template>
                <template>
                  <sonic-purchase-summary></sonic-purchase-summary>
                </template>
              </sonic-queue>
            </div>
          `:Z}

      <!-- INVOICES -->
      ${"invoice"===this.activeTab?V`<sonic-orders-table userId=${this.id}></sonic-orders-table>`:Z}
    `:Z}};eC.styles=[Qs],tC([ft()],eC.prototype,"id",2),tC([Us("settings.modules.subscription.enabled"),ft({type:Boolean})],eC.prototype,"hasSubscription",2),tC([Us("settings.modules.giftcards.enabled"),ft({type:Boolean})],eC.prototype,"hasGiftcards",2),tC([Us("settings.modules.additional_products.enabled"),ft({type:Boolean})],eC.prototype,"hasAdditionalProducts",2),tC([vt()],eC.prototype,"activeTab",2),eC=tC([ut("sonic-user-account-purchases")],eC);var iC=Object.defineProperty,sC=Object.getOwnPropertyDescriptor;let oC=class extends(Le(pt)){render(){return V` <div class="font-headings font-weight-headings font-style-headings mb-2 text-2xl">
        ${Ae("LIB_compte_lier_transaction")}
      </div>
      <div class="mb-4">${t="LIB_compte_lier_transaction_aide",Ce(t,!0)}</div>
      <sonic-iframe src="/mon-compte/transaction-liaison/?no_title=true"></sonic-iframe>`;var t}};oC.styles=[Qs],oC=((t,e,i,s)=>{for(var o,r=s>1?void 0:s?sC(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&iC(e,i,r),r})([ut("sonic-link-ticket")],oC);var rC=Object.defineProperty,nC=Object.getOwnPropertyDescriptor,aC=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?nC(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&rC(e,i,r),r};let lC=class extends(Le(pt)){constructor(){super(...arguments),this.id="",this.eventSelection="past"}linkTicketModal(){gl.create({content:"<sonic-link-ticket></sonic-link-ticket>",width:"40rem",removeOnHide:!0})}render(){if(!this.id)return Z;const t=new Date;t.setHours(t.getHours()-6);const e=Math.floor(t.getTime()/1e3),i="next"==this.eventSelection?`&event_from=${e}&sort=start_date:asc`:`&event_to=${e}&sort=start_date:desc`;return V`
      <!-- Search -->
      <sonic-page-header label="${Ae("mes_billets")}">
        <sonic-menu-item @click=${this.linkTicketModal} slot="more">
          <sonic-icon slot="prefix" library="custom" name="link"></sonic-icon>
          ${Ae("LIB_compte_lier_transaction")}</sonic-menu-item
        >
      </sonic-page-header>
      <div
        formDataProvider="accountTicketsFilters"
        dataProvider="accountTicketsFilters"
        class="mb-8 flex flex-wrap gap-x-3 gap-y-2 items-center "
      >
        <sonic-input
          type="search"
          name="search"
          inlineContent
          placeholder="Rechercher..."
          filteredFields="title"
          class="grow max-w-[20rem]"
          autocomplete="off"
          value=""
          class="grow lg:grow-0"
        >
          <sonic-icon library="iconoir" slot="prefix" name="search"></sonic-icon>
        </sonic-input>
        <sonic-select
          name="eventSelection"
          class="min-w-[13rem]"
          .options=${[{value:"next",wording:Ae("next_events")},{value:"past",wording:Ae("past_events")}]}
        >
        </sonic-select>
      </div>
      <div dataProvider="accountTicketsFilters">
        <sonic-queue
          dataProviderExpression="/user/${this.id}/purchases/event?limit=$limit&offset=$offset${i}&owner=${this.id}"
          limit="8"
          lazyBoundsRatio="4"
          targetRequestDuration="1000"
          dataProvider="accountTicketsResults"
          dataFilterProvider="accountTicketsFilters"
          key="data"
          class="grid grid-cols-1 gap-3"
        >
          <template data-value="no-item">
            <sonic-no-result></sonic-no-result>
          </template>
          <template data-value="skeleton">
            <sonic-purchase-summary skeleton></sonic-purchase-summary>
          </template>
          <template>
            <sonic-purchase-summary></sonic-purchase-summary>
          </template>
        </sonic-queue>
      </div>

      <!--AIDE RELIER BILLET AU COMPTE CLIENT-->
      <sonic-alert status="info" background class="my-8" dismissible dismissForever id="helpLinkTickets">
        <div class="font-bold mb-1">${Ae("help_link_tickets")}</div>
        <sonic-button @click=${this.linkTicketModal} size="xs" type="info" variant="outline">
          <sonic-icon slot="prefix" library="custom" name="link"></sonic-icon>
          ${Ae("LIB_compte_lier_transaction")}</sonic-button
        >
      </sonic-alert>
    `}};lC.styles=[Qs],aC([ft()],lC.prototype,"id",2),aC([Us("accountTicketsFilters.eventSelection"),vt()],lC.prototype,"eventSelection",2),lC=aC([ut("sonic-user-account-tickets")],lC);var cC=Object.defineProperty,dC=Object.getOwnPropertyDescriptor;let pC=class extends pt{render(){return V`
      <sonic-alert noIcon status="success" class="mb-3 relative" dismissible dismissForever id="ad-alert">
        <div class="grid grid-cols-1 gap-1 mb-4 max-w-[50ch] ">
          <div class="text-xl font-bold leading-tight">${Ae("LIB_cartes_cadeaux")}</div>
          <div>${li(Ae("module_giftcards_summary"))}</div>
        </div>
        <sonic-app-link to="giftcards" variant="outline" type="success" size="sm">
          <sonic-icon library="custom" name="arrow-right" slot="prefix"></sonic-icon>
          ${Ae("link_title_more_about")}
        </sonic-app-link>
        <div class="absolute -bottom-2 -right-2 opacity-30 ">
          <svg xmlns="http://www.w3.org/2000/svg" class="h-24 w-auto" viewBox="0 0 640 512">
            <!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. -->
            <path
              d="M200.6 32C205 19.5 198.5 5.8 186 1.4S159.8 3.5 155.4 16L144.7 46.2l-9.9-29.8C130.6 3.8 117-3 104.4 1.2S85 19 89.2 31.6l8.3 25-27.4-20c-10.7-7.8-25.7-5.4-33.5 5.3s-5.4 25.7 5.3 33.5L70.2 96H48C21.5 96 0 117.5 0 144V464c0 26.5 21.5 48 48 48H200.6c-5.4-9.4-8.6-20.3-8.6-32V256c0-29.9 20.5-55 48.2-62c1.8-31 17.1-58.2 40.1-76.1C271.7 104.7 256.9 96 240 96H217.8l28.3-20.6c10.7-7.8 13.1-22.8 5.3-33.5s-22.8-13.1-33.5-5.3L192.5 55.1 200.6 32zM363.5 185.5L393.1 224H344c-13.3 0-24-10.7-24-24c0-13.1 10.8-24 24.2-24c7.6 0 14.7 3.5 19.3 9.5zM272 200c0 8.4 1.4 16.5 4.1 24H272c-26.5 0-48 21.5-48 48v80H416V256h32v96H640V272c0-26.5-21.5-48-48-48h-4.1c2.7-7.5 4.1-15.6 4.1-24c0-39.9-32.5-72-72.2-72c-22.4 0-43.6 10.4-57.3 28.2L432 195.8l-30.5-39.6c-13.7-17.8-35-28.2-57.3-28.2c-39.7 0-72.2 32.1-72.2 72zM224 464c0 26.5 21.5 48 48 48H416V384H224v80zm224 48H592c26.5 0 48-21.5 48-48V384H448V512zm96-312c0 13.3-10.7 24-24 24H470.9l29.6-38.5c4.6-5.9 11.7-9.5 19.3-9.5c13.4 0 24.2 10.9 24.2 24z"
              fill="currentColor"
            />
          </svg>
        </div>
      </sonic-alert>
    `}};pC.styles=[Qs],pC=((t,e,i,s)=>{for(var o,r=s>1?void 0:s?dC(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&cC(e,i,r),r})([ut("sonic-giftcard-ad")],pC);var hC=Object.defineProperty,uC=Object.getOwnPropertyDescriptor,mC=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?uC(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&hC(e,i,r),r};let gC=class extends(Le(pt)){constructor(){super(...arguments),this.tight=!1}render(){return this.hasGiftcards?V` <sonic-fieldset dataProvider="giftcards/test" formDataProvider="giftcardsTest" ?tight=${this.tight}>
      <sonic-legend iconlibrary="custom" iconname="gift-card" label="${Ae("I_have_a_gift_card")}"></sonic-legend>
      <div class="mb-3 flex items-end gap-3">
        <sonic-submit method="GET" onEnterkey>
          <sonic-input name="code" label="${Ae("Enter_your_gift_card_code")}" placeholder="- - - - - -"></sonic-input>
        </sonic-submit>

        <sonic-submit method="GET" onClick>
          <sonic-button type="primary">
            <sonic-icon library="custom" name="check" slot="prefix"></sonic-icon>
            ${Ae("test_gift_card")}
          </sonic-button>
        </sonic-submit>
      </div>
    </sonic-fieldset>`:Z}};gC.styles=[Qs],mC([ft({type:Boolean})],gC.prototype,"tight",2),mC([Us("settings.modules.giftcards.enabled"),ft({type:Boolean})],gC.prototype,"hasGiftcards",2),gC=mC([ut("sonic-giftcard-test")],gC);var fC=Object.defineProperty,vC=Object.getOwnPropertyDescriptor,yC=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?vC(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&fC(e,i,r),r};let bC=class extends(_s(Le(pt))){constructor(){super(...arguments),this.tight=!1,this.id="",this.data=null}connectedCallback(){this.isFetchEnabled=!1,this.dataProvider="my-giftcards",super.connectedCallback()}willUpdate(t){t.has("id")&&this.id&&!this.isFetchEnabled&&(this.endPoint=`/user/${this.id}/purchases/giftcard?owner=${this.id}&available=true`,this.isFetchEnabled=!0,this._fetchData()),super.willUpdate(t)}render(){return this.data&&0!=this.data.length?V`<sonic-fieldset ?tight=${this.tight}>
      <sonic-legend iconlibrary="custom" iconName="gift-card" label="${Ae("LIB_cartes_cadeaux")}"></sonic-legend>
      <sonic-list subDataProvider="data" class="grid grid-cols-1 gap-y-3">
        <template>
          <sonic-purchase-summary></sonic-purchase-summary>
        </template>
      </sonic-list>
    </sonic-fieldset>`:Z}};bC.styles=[Qs],yC([ft({type:Boolean})],bC.prototype,"tight",2),yC([ft({type:String})],bC.prototype,"id",2),yC([ft({type:Array})],bC.prototype,"data",2),bC=yC([ut("sonic-account-my-giftcards")],bC);var wC=Object.defineProperty,xC=Object.getOwnPropertyDescriptor,_C=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?xC(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&wC(e,i,r),r};let kC=class extends(Le(pt)){constructor(){super(...arguments),this.accessAskProAccount=!1}render(){return V`
      <sonic-page-header label="${Ae("mes_informations")}">
        ${!0===this.isPro&&this.accessAskProAccount?V` <sonic-menu-item @click=${$C} slot="more">
              <sonic-icon slot="prefix" library="custom" name="link"></sonic-icon>
              ${Ae("LIB_formulaire_pro_actualiser")}</sonic-menu-item
            >`:Z}
      </sonic-page-header>
      <sonic-iframe src="/mon-compte/mes-informations?no_title=true&no_navigation=true"></sonic-iframe>
    `}};_C([Us("user.is_pro"),ft({type:Boolean})],kC.prototype,"isPro",2),_C([Us("settings.modules.ask_pro_account.access"),vt()],kC.prototype,"accessAskProAccount",2),kC=_C([ut("sonic-user-form-edit")],kC);const $C=()=>{gl.create({content:"<sonic-ask-pro-account updateAccount smallTitle displayTitle displayText ></sonic-ask-pro-account>",width:"45rem",removeOnHide:!0})};var PC=Object.defineProperty,SC=Object.getOwnPropertyDescriptor,CC=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?SC(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&PC(e,i,r),r};let AC=class extends(Le(pt)){constructor(){super(...arguments),this.accessAskProAccount=!1,this.balance=0,this._resizeController=new Hn(this,{})}render(){var t,e,i,s,o,r;const n=new Date;n.setHours(n.getHours()-6);const a=Math.floor(n.getTime()/1e3),l=this.clientWidth<500,c=null==(t=this.currentUser)?void 0:t.id,d=this.accessAskProAccount&&(null==(e=this.currentUser)?void 0:e.can_renew)&&(null==(i=this.currentUser)?void 0:i.is_pro);let p;return d&&"disabled"==(null==(s=this.currentUser)?void 0:s.proAccess)?p="renew":d&&"pending"==(null==(o=this.currentUser)?void 0:o.proAccess)&&(p="pending"),c?V`
      <div class="mb-6">
        <div class="text-4xl font-bold">${Ae("bonjour")}</div>
        ${0==(null==(r=this.currentUser)?void 0:r.is_pro)?V` <div class="text-lg">${Ae("ravi_de_vous_revoir")} ✌️</div>`:Z}
      </div>

      <!--Message de renouvellement d'abonnement-->
      ${"renew"==p?V` <sonic-alert background status="error" label=${Ae("LIB_pro_access_disabled")}>
            <sonic-button
              align="left"
              type="danger"
              @click=${$C}
              size="sm"
              class="mt-1"
              variant="outline"
            >
              <sonic-icon slot="prefix" library="custom" name="arrow-right"></sonic-icon>${Ae("LIB_formulaire_pro_actualiser")}</sonic-button
            ></sonic-alert
          >`:Z}
      ${"pending"==p?V` <sonic-alert background status="success" label=${Ae("LIB_pro_access_pending")}>
            <p>${Ae("LIB_pro_access_pending_text")}</p>
            <sonic-button
              align="left"
              type="success"
              @click=${$C}
              size="sm"
              class="mt-3"
              variant="outline"
            >
              <sonic-icon slot="prefix" library="custom" name="arrow-right"></sonic-icon>${Ae("LIB_pro_access_new_request")}</sonic-button
            ></sonic-alert
          >`:Z}

      <div class="mb-6 ">
        ${this.hasGiftcards?V` <sonic-giftcard-ad></sonic-giftcard-ad> `:Z}
        ${this.balance>0?V`
              <sonic-alert status="info" class="mb-3" background>
                <strong>${Ed(this.balance)} ${Ae("available_as_a_credit")}</strong><br />
                ${Ae("balance_use_info_text")}
              </sonic-alert>
            `:Z}
      </div>

      <sonic-fieldset ?tight=${l}>
        <sonic-legend iconlibrary="custom" iconName="forward" label="${Ae("coming_soon")}"></sonic-legend>
        <sonic-list
          fetch
          endpoint="/user/${this.id}/purchases/event?limit=4&next=1&sort=start_date:asc&event_from=${a}&owner=${c}"
          dataProvider="accountHomeTickets"
          key="data"
          class="grid grid-cols-1 gap-3"
        >
          <template data-value="no-item">
            <sonic-no-result size="sm" class="mb-0 mt-2 pl-2 lg:pl-11"> </sonic-no-result>
            <sonic-app-link to="agenda" variant="default" size="sm" class="mt-3 w-full">
              <sonic-icon library="custom" name="arrow-right"></sonic-icon>
              <sonic-t key="module_agenda_title"></sonic-t>
            </sonic-app-link>
          </template>
          <template>
            <sonic-purchase-summary></sonic-purchase-summary>
          </template>
          <template data-value="skeleton">
            <sonic-purchase-summary skeleton></sonic-purchase-summary>
          </template>
        </sonic-list>
      </sonic-fieldset>

      <sonic-fieldset ?tight=${l}>
        <sonic-legend iconlibrary="custom" iconName="id-card" label="${Ae("abonnements")}"></sonic-legend>
        <sonic-list
          fetch
          endpoint="/user/${c}/purchases/subscribe?owner=${c}"
          dataProvider="accountHomeSubscriptions"
          key="data"
          class="grid grid-cols-1 gap-3"
        >
          <template data-value="no-item">
            <sonic-no-result size="sm" class="mb-0 mt-2 pl-2 lg:pl-11"> </sonic-no-result>
            <sonic-app-link to="subscription" size="sm" variant="default" class="mt-3 w-full">
              <sonic-icon library="custom" name="arrow-right"></sonic-icon>
              <sonic-t key="onglet_home_abonnements"></sonic-t>
            </sonic-app-link>
          </template>
          <template>
            <sonic-purchase-summary></sonic-purchase-summary>
          </template>
          <template data-value="skeleton">
            <sonic-purchase-summary skeleton></sonic-purchase-summary>
          </template>
        </sonic-list>
      </sonic-fieldset>

      <sonic-account-my-giftcards id=${c} ?tight=${l}></sonic-account-my-giftcards>

      <sonic-giftcard-test ?tight=${l}></sonic-giftcard-test>
    `:Z}};AC.styles=[Qs],CC([Us("settings.modules.giftcards.enabled"),ft({type:Boolean})],AC.prototype,"hasGiftcards",2),CC([Us("user"),ft({type:Object})],AC.prototype,"currentUser",2),CC([Us("settings.modules.ask_pro_account.access"),vt()],AC.prototype,"accessAskProAccount",2),CC([ft({type:Number})],AC.prototype,"balance",2),AC=CC([ut("sonic-user-account-home")],AC);var OC=Object.defineProperty,EC=Object.getOwnPropertyDescriptor;let TC=class extends($h(pt)){render(){var t,e;const i=null==(t=this.carpoolingSettings)?void 0:t.url,s=(null==(e=this.carpoolingSettings)?void 0:e.token)||"";return i?V`
      <sonic-page-header label="${Ae("my_trips")}"></sonic-page-header>

      <covoit-app
        covoitURL=${i}
        baseURL=${ao("carpooling")}
        token=${li(s)}
        encryptedUid=${li(this.encryptedUid)}
        customRoutes=${JSON.stringify(this.customRoutes)}
        view="myTrips"
      ></covoit-app>
    `:Z}};TC.styles=[Qs],TC=((t,e,i,s)=>{for(var o,r=s>1?void 0:s?EC(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&OC(e,i,r),r})([ut("sonic-account-carpooling")],TC);var MC=Object.defineProperty,DC=Object.getOwnPropertyDescriptor,LC=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?DC(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&MC(e,i,r),r};let jC=class extends(Le(pt)){constructor(){super(...arguments),this.samlAccess=!1}render(){if(!this.samlAccess)return Z;const t=window.location.href,e=this.getAncestorAttributeValue("storeUrl")||"";return V`<sonic-fieldset>
      <sonic-legend iconLibrary="custom" iconName="star" label="${Ae("LIB_connexion_annuaire_SAML")}" description="${Ae("LIB_connexion_annuaire_SAML_description")}"> </sonic-legend>
      <div>
        <sonic-button
          href=${`${e}/lb-saml?sonic_saml_destination=${t}`}
          minWidth="12rem"
          type="info"
          class="w-full"
        >
          <sonic-icon library="custom" name="arrow-up-right"></sonic-icon>
          ${Ae("se_connecter")}</sonic-button
        >
      </div>
    </sonic-fieldset>`}};jC.styles=[Qs],LC([Us("settings.modules.saml.access"),ft({type:Boolean})],jC.prototype,"samlAccess",2),jC=LC([ut("sonic-login-saml")],jC);var IC=Object.defineProperty,zC=Object.getOwnPropertyDescriptor,BC=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?zC(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&IC(e,i,r),r};let RC=class extends(Le(pt)){constructor(){super(...arguments),this.createAccount=!1,this.noMissingPassword=!1,this.userId=!1,this.checkout=!1,this.online_payment_id=0,this.canCheckout=!1,this.quickBuyEnabled=!1,this.accessAskProAccount=!1,this.create_pro_account=!1,this.create_client_account=!0}handleLogin(){const t=zt.get("LoginMessage").get();if(null==t?void 0:t.success){zt.get("user").invalidate();const t=new URLSearchParams(window.location.search).get("sonic_login_destination");if(t){const e=decodeURIComponent(t);e.startsWith("#")?window.location.hash=e:window.location.href=e}}}connectedCallback(){const t=new URLSearchParams(window.location.search);this.online_payment_id||(this.online_payment_id=t.get("payment_id")||zt.get("settings").online_payment_id.get()),zt.get("LoginMessage").onInternalMutation(this.handleLogin),super.connectedCallback()}render(){const t=ao("account.create").toString(),e=ao("account.missingPassword").toString(),i=this.canCheckout&&this.quickBuyEnabled,s=this.checkout?ao("checkout").query({payment_id:this.online_payment_id,create_account:!0}):t,o=ao("checkout").query({quick_buy:!0,payment_id:this.online_payment_id}),r=Ae("LIB_connexion_description");return V`
      <sonic-login-saml></sonic-login-saml>
      <sonic-captcha formdataprovider="userLogin" key="6Leq5V0iAAAAAB-41DlWN335jDlcIuXmhNtdd00t">
        <sonic-fieldset
          endpoint="user/login"
          dataProvider="user/login"
          method="post"
          formDataProvider="userLogin"
          submitResultDataProvider="LoginMessage"
        >
          <sonic-legend
            iconLibrary="custom"
            iconName="face-smile-relaxed"
            label=${Ae("se_connecter")}
            .description=${r}
          >
          </sonic-legend>
          <sonic-submit usernameKey="email" onEnterKey>
            <div class="grid grid-cols-1 gap-4 mb-4">
              <sonic-input
                required
                autocomplete="username"
                id="username"
                label="${Ae("email")}"
                type="email"
                name="email"
              ></sonic-input>
              <sonic-input
                required
                autocomplete="current-password"
                id="current-password"
                label="${Ae("mot_de_passe")}"
                name="password"
                type="password"
              ></sonic-input>
            </div>
          </sonic-submit>

          <div class="text-center">
            <sonic-submit onClick usernameKey="email" class="w-full text-center">
              <sonic-button minWidth="12rem" type="success" class="w-full mb-3">
                <sonic-icon library="custom" name="arrow-right-to-arc" slot="prefix"></sonic-icon>
                ${Ae("connexion")}</sonic-button
              >
            </sonic-submit>
            ${this.noMissingPassword?Z:V`<sonic-button href="${e}" size="sm" variant="link">
                  ${Ae("mot_de_passe_oublie")}
                </sonic-button>`}
          </div>
        </sonic-fieldset>
      </sonic-captcha>
      ${this.createAccount&&(this.create_client_account||this.accessAskProAccount||this.create_pro_account)?V`
            <sonic-fieldset>
              <sonic-legend
                description=${this.createSubTitle}
                label="${Ae("no_account_yet")}"
                iconName="face-thinking"
                iconLibrary="custom"
              >
              </sonic-legend>
              ${s&&this.create_client_account?V`
                    <sonic-button href=${s} minWidth="12rem" type="neutral" class="w-full"
                      ><sonic-icon library="custom" name="user-plus" slot="prefix"></sonic-icon> ${Ae("create_account")}</sonic-button
                    >
                  `:Z}
              ${i&&this.checkout&&o?V`<div class="text-center mt-3">
                    <sonic-button href=${o} variant="outline" minWidth="12rem" class="w-full"
                      ><sonic-icon library="custom" name="cart-shopping-fast" slot="prefix"></sonic-icon>
                      ${Ae("link_title_quick_purchase")}
                    </sonic-button>
                  </div>`:Z}
              ${this.accessAskProAccount||this.create_pro_account?V`
                    <sonic-divider class="my-6"></sonic-divider>
                    <div class="text-center mt-2">
                      <sonic-app-link
                        to="askProAccount"
                        type="info"
                        minWidth="12rem"
                        variant="outline"
                        size="sm"
                        class="w-full"
                      >
                        <sonic-icon library="custom" name="user-tie" slot="prefix"></sonic-icon>
                        <span class="font-bold"
                          >${this.accessAskProAccount?Ae("LIB_compte_pro_demander"):Ae("LIB_compte_pro_creer")}</span
                        >
                      </sonic-app-link>
                    </div>
                  `:Z}
            </sonic-fieldset>
          `:""}
    `}};RC.styles=[Qs,l`
      :host {
        display: block;
        max-width: 25rem;
      }
    `],BC([ft({type:Boolean})],RC.prototype,"createAccount",2),BC([ft({type:Boolean})],RC.prototype,"noMissingPassword",2),BC([ft({type:Boolean})],RC.prototype,"userId",2),BC([ft({type:Boolean})],RC.prototype,"checkout",2),BC([ft({type:Number})],RC.prototype,"online_payment_id",2),BC([ft()],RC.prototype,"createSubTitle",2),BC([Us("cart/current.data.canCheckout"),vt()],RC.prototype,"canCheckout",2),BC([Us("settings.quick_purchase"),vt()],RC.prototype,"quickBuyEnabled",2),BC([Us("settings.modules.ask_pro_account.access"),vt()],RC.prototype,"accessAskProAccount",2),BC([Us("settings.modules.create_pro_account.access"),vt()],RC.prototype,"create_pro_account",2),BC([Us("settings.modules.create_client_account.access"),vt()],RC.prototype,"create_client_account",2),RC=BC([ut("sonic-user-form-login")],RC);var NC=Object.defineProperty,FC=Object.getOwnPropertyDescriptor,qC=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?FC(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&NC(e,i,r),r};let HC=class extends(Le(pt)){constructor(){super(...arguments),this.paymentId=0}connectedCallback(){const t=new URLSearchParams(window.location.search);this.mailHash=t.get("sonic_mail_hash")||void 0,super.connectedCallback()}render(){let t="/inscription?no_title=true";return this.paymentId&&(t+=`&payment_id=${this.paymentId}`),this.mailHash&&(t=`/inscription/rel:${this.mailHash}?no_title=true`),V` <div class="prose prose-sm mb-8">${Ae("info_form_inscription_acces_direct",!0)}</div>
      <sonic-iframe src="${t}"></sonic-iframe>`}};HC.styles=[Qs],qC([ft({type:Number})],HC.prototype,"paymentId",2),qC([ft({type:String})],HC.prototype,"mailHash",2),HC=qC([ut("sonic-user-form-create")],HC);var UC=Object.defineProperty,VC=Object.getOwnPropertyDescriptor,WC=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?VC(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&UC(e,i,r),r};function ZC(t){return ao(t).toString().split("#").join(".*?#")}let YC=class extends(Le(pt)){constructor(){super(...arguments),this.id="",this.wording_create_account="",this.wording_my_password="",this.wording_mot_de_passe_oublie="",this.dataProvider="user"}connectedCallback(){this.accountBaseUrl=ao("account"),super.connectedCallback()}render(){return this.props&&0==Object.keys(this.props).length?Z:V`
      <sonic-fullscreen-layout>
        ${this.id?V`
              <sonic-user-account-menu class="mb-8 block"></sonic-user-account-menu>
              <sonic-router class="contents">
                <template
                  data-fallback
                  data-route=${`((${this.accountBaseUrl})|(#sonic-account)|(${ZC("account.home")}))$`}
                >
                  <sonic-user-account-home></sonic-user-account-home>
                </template>
                <template data-route="${ZC("account.tickets")}$">
                  <sonic-user-account-tickets></sonic-user-account-tickets>
                </template>
                <template data-route="${ZC("account.purchases")}$">
                  <sonic-user-account-purchases></sonic-user-account-purchases>
                </template>
                <template data-route="${ZC("account.edit")}$">
                  <sonic-user-form-edit></sonic-user-form-edit>
                </template>
                <template data-route="${ZC("account.editPassword")}$">
                  <div dataProvider="sonic-wording">
                    <sonic-page-header data-bind ::label="$wording_my_password"></sonic-page-header>
                  </div>
                  <sonic-sdui
                    fetch
                    sduiKey="data"
                    dataProvider="sdui-provider"
                    endPoint="/user/form/change-password/"
                    headersDataProvider="ticketsAppHeadersProvider"
                  ></sonic-sdui>
                </template>
                <template data-route="${ZC("account.trips")}$">
                  <sonic-account-carpooling></sonic-account-carpooling>
                </template>
              </sonic-router>
            `:Z}
        ${this.id?Z:V`<sonic-router class="contents">
              <template data-fallback data-route=${`((${this.accountBaseUrl})|(#sonic-account)|(account.home))$`}>
                <sonic-user-form-login createAccount class="mt-8 mx-auto block w-full"></sonic-user-form-login>
              </template>
              <template data-route="${ZC("account.create")}">
                <div dataProvider="sonic-wording">
                  <sonic-page-header goBack data-bind ::label="$wording_create_account"></sonic-page-header>
                </div>
                <sonic-user-form-create></sonic-user-form-create>
              </template>

              <template data-route="${ZC("account.missingPassword")}$">
                <div class="mt-8 mx-auto max-w-[32rem] block w-full">
                  <div dataProvider="sonic-wording">
                    <sonic-page-header goBack data-bind ::label="$wording_mot_de_passe_oublie"></sonic-page-header>
                  </div>
                  <sonic-sdui
                    fetch
                    sduiKey="data"
                    dataProvider="sdui-provider"
                    endPoint="/user/form/change-password/"
                    headersDataProvider="ticketsAppHeadersProvider"
                  ></sonic-sdui>
                </div>
              </template>
            </sonic-router>`}
      </sonic-fullscreen-layout>
    `}};YC.styles=[Qs],WC([ft({type:String})],YC.prototype,"id",2),WC([ft({type:String})],YC.prototype,"wording_create_account",2),WC([ft({type:String})],YC.prototype,"wording_my_password",2),WC([ft({type:String})],YC.prototype,"wording_mot_de_passe_oublie",2),WC([ft({type:String,reflect:!0})],YC.prototype,"dataProvider",2),YC=WC([ut("sonic-account")],YC);var GC=Object.defineProperty,KC=Object.getOwnPropertyDescriptor,QC=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?KC(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&GC(e,i,r),r};let XC=class extends(Le(pt)){constructor(){super(...arguments),this.wording_LIB_code_promo="",this.displayTitle=!1,this.displayText=!1,this.smallTitle=!1}render(){return V`<sonic-page-layout
      pageTitle=${this.wording_LIB_code_promo}
      ?smallTitle=${this.smallTitle}
      ?displayTitle=${this.displayTitle}
      ?displayText=${this.displayText}
    >
      <div class="my-8 max-w-[30rem]">
        <sonic-promo-form></sonic-promo-form>
      </div>
    </sonic-page-layout>`}};XC.styles=[Qs],QC([ft()],XC.prototype,"wording_LIB_code_promo",2),QC([ft({type:Boolean})],XC.prototype,"displayTitle",2),QC([ft({type:Boolean})],XC.prototype,"displayText",2),QC([ft({type:Boolean})],XC.prototype,"smallTitle",2),XC=QC([ut("sonic-promo")],XC);var JC=Object.defineProperty,tA=Object.getOwnPropertyDescriptor,eA=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?tA(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&JC(e,i,r),r};let iA=class extends(Le(pt)){constructor(){super(...arguments),this.displayTitle=!1,this.displayText=!1,this.wording_module_infos_title="",this.wording_texte_infos_et_tarifs="",this.smallTitle=!1}render(){return V`<sonic-page-layout
      pageTitle=${this.wording_module_infos_title}
      pageText=${this.wording_texte_infos_et_tarifs}
      ?smallTitle=${this.smallTitle}
      ?displayTitle=${this.displayTitle}
      ?displayText=${this.displayText}
    >
    </sonic-page-layout>`}};iA.styles=[Qs],eA([ft({type:Boolean})],iA.prototype,"displayTitle",2),eA([ft({type:Boolean})],iA.prototype,"displayText",2),eA([ft({type:String})],iA.prototype,"wording_module_infos_title",2),eA([ft({type:String})],iA.prototype,"wording_texte_infos_et_tarifs",2),eA([ft({type:Boolean})],iA.prototype,"smallTitle",2),iA=eA([ut("sonic-infos-prices")],iA);var sA=Object.defineProperty,oA=Object.getOwnPropertyDescriptor,rA=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?oA(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&sA(e,i,r),r};let nA=class extends(_s(Le(pt))){constructor(){super(...arguments),this.customIconLibraryPath="https://cdn.supersoniks.com/concorde/icons/fontawesome/v6/$prefix/$name.svg",this.customIconDefaultPrefix="regular",this.slug="",this.prices=[],this.places_categories=[]}willUpdate(t){(t.has("places_categories")||t.has("prices"))&&this.addDefaultPrices(),super.willUpdate(t)}addDefaultPrices(){this.places_categories.forEach((t=>this.injectPrices(t))),0==this.places_categories.length&&this.props&&this.places_categories.push({items:this.prices})}injectPrices(t){var e;t.items=null==(e=this.prices)?void 0:e.filter((e=>{var i;return!(null==(i=e.place_category)?void 0:i.id)||e.place_category.id==t.id}))}connectedCallback(){if(this.storeUrl){const t=this.storeUrl.replace(/\/$/,"");this.setAttribute("serviceUrl",t+"/api/v2"),this.setAttribute("wordingProvider","translate"),this.setAttribute("customIconLibraryPath",this.customIconLibraryPath),this.setAttribute("customIconDefaultPrefix",this.customIconDefaultPrefix)}this.isFetchEnabled&&this.id&&(this.dataProvider=`events/${this.id}?cms_multi=true`),super.connectedCallback()}render(){const t=`${this.storeUrl}?sonic_to=event(slug:${this.slug})&session=${this.id}`;return V`
      <sonic-price-list-info class="mb-3 block" .placeCategories=${this.places_categories}></sonic-price-list-info>
      ${t?V`
            <sonic-button href=${t} type="primary" noAutoFill variant="default" minWidth="18rem">
              <sonic-icon library="custom" name="basket-shopping"></sonic-icon>
              Acheter en ligne
            </sonic-button>
          `:Z}
    `}};nA.styles=[Qs],rA([ft({type:String})],nA.prototype,"storeUrl",2),rA([ft({type:String})],nA.prototype,"token",2),rA([ft({type:String})],nA.prototype,"customIconLibraryPath",2),rA([ft({type:String})],nA.prototype,"customIconDefaultPrefix",2),rA([ft({type:String})],nA.prototype,"slug",2),rA([ft({type:Array})],nA.prototype,"prices",2),nA=rA([ut("sonic-link-event-block")],nA);var aA=Object.defineProperty,lA=Object.getOwnPropertyDescriptor,cA=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?lA(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&aA(e,i,r),r};let dA=class extends(Le(pt)){constructor(){super(...arguments),this.event_id="",this.barcode="",this.displayTitle=!1,this.displayText=!1,this.smallTitle=!1}connectedCallback(){const t=new URLSearchParams(window.location.search);this.event_id||(this.event_id=t.get("event_id")||""),this.barcode||(this.barcode=t.get("barcode")||""),super.connectedCallback()}render(){const t=this.event_id?this.event_id:"";return V`<sonic-page-layout
      ?smallTitle=${this.smallTitle}
      ?displayTitle=${this.displayTitle}
      ?displayText=${this.displayText}
      pageTitle=${Ae("remboursement")}
      pageText=${Ae("LIB_remboursement_texte_aide")}
    >
      <!-- intro selon évènement -->
      ${t?V`<div slot="intro">
            <sonic-fetch dataProvider="/events/${t}?view=essential">
              <div class="flex gap-3 w-full max-w-[30rem] items-center mb-6">
                <sonic-product-illustration rounded class="w-20"></sonic-product-illustration>
                <div>
                  <sonic-date></sonic-date>
                  <sonic-product-title
                    class="text-lg leading-tight lg:text-xl lg:leading-tight mt-1"
                  ></sonic-product-title>
                </div>
              </div>
            </sonic-fetch>
          </div>`:Z}

      <!-- Si Pas connecté -->
      ${this.userId?Z:V`<sonic-user-form-login
            class="mt-8"
            createSubTitle="${Ae("LIB_remboursement_pas_de_compte_2")}"
          ></sonic-user-form-login>`}
      <!-- Si connecté et un evenement passé au composant -->
      ${this.userId&&t?V` <div class="max-w-[60rem]">
            <sonic-divider class="my-10"></sonic-divider>
            <sonic-iframe
              src="/demande_remboursement/${t}?no_title=true${this.barcode?`&barcode=${this.barcode}`:""}"
            ></sonic-iframe>
          </div>`:Z}
      <!-- Si connecté pas d'évènement passé, la liste est affichée -->
      ${this.userId&&!t?V` <div class="max-w-[60rem]">
            <sonic-divider class="my-10"></sonic-divider>
            <sonic-iframe src="/demande_remboursement/liste?no_title=true"></sonic-iframe>
          </div>`:Z}
    </sonic-page-layout>`}};dA.styles=[Qs],cA([ft({type:String})],dA.prototype,"event_id",2),cA([ft({type:String})],dA.prototype,"barcode",2),cA([ft({type:Boolean})],dA.prototype,"displayTitle",2),cA([ft({type:Boolean})],dA.prototype,"displayText",2),cA([ft({type:Boolean})],dA.prototype,"smallTitle",2),cA([Us("user.id"),ft({type:String})],dA.prototype,"userId",2),dA=cA([ut("sonic-refund")],dA);var pA=Object.defineProperty,hA=Object.getOwnPropertyDescriptor,uA=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?hA(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&pA(e,i,r),r};let mA=class extends(Le(pt)){constructor(){super(...arguments),this.displayTitle=!1,this.smallTitle=!1,this.displayText=!1}render(){return V`<sonic-page-layout
      pageTitle=${Ae("free_up")}
      pageSubtitle=${Ae("free_up_action_info")}
      ?smallTitle=${this.smallTitle}
      ?displayTitle=${this.displayTitle}
      ?displayText=${this.displayText}
    >
      <div formDataProvider="FreeupTicketForm">
        <form>
          <sonic-fieldset>
            <sonic-submit onEnterKey endpoint="tickets" method="delete">
              <sonic-form-layout>
                <sonic-input type="email" label=${Ae("email")} name="email" placeholder="name@example.com"></sonic-input>
                <sonic-input
                  type="text"
                  label=${Ae("barcode_or_ticket_number")}
                  name="barcode"
                  placeholder="- - - - - - - - - - - -"
                ></sonic-input>
              </sonic-form-layout>
            </sonic-submit>
          </sonic-fieldset>
          <sonic-submit onClick endpoint="tickets" method="delete">
            <sonic-button radio noAutoFill type="success"
              ><sonic-icon slot="prefix" name="check"></sonic-icon> ${Ae("confirm")}
            </sonic-button>
          </sonic-submit>
        </form>
      </div>
    </sonic-page-layout>`}};uA([ft({type:Boolean})],mA.prototype,"displayTitle",2),uA([ft({type:Boolean})],mA.prototype,"smallTitle",2),uA([ft({type:Boolean})],mA.prototype,"displayText",2),mA=uA([ut("sonic-ticket-freeup")],mA);var gA=Object.defineProperty,fA=Object.getOwnPropertyDescriptor,vA=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?fA(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&gA(e,i,r),r};let yA=class extends(Le(pt)){constructor(){super(...arguments),this.displayTitle=!1,this.displayText=!1,this.smallTitle=!1,this.updateAccount=!1,this.accessAskProAccount=!1,this.create_pro_account=!1}render(){return V`<sonic-page-layout
      ?smallTitle=${this.smallTitle}
      ?displayTitle=${this.displayTitle}
      ?displayText=${this.displayText}
      pageTitle=${this.create_pro_account?Ae("create_account"):this.updateAccount?Ae("LIB_formulaire_pro_actualiser"):Ae("LIB_compte_pro_formulaire_demande")}
      pageText=${this.accessAskProAccount?Ae("LIB_compte_pro_formulaire_body"):""}
      ><sonic-iframe src="/ask_pro_account?no_title=true"></sonic-iframe
    ></sonic-page-layout>`}};vA([ft({type:Boolean})],yA.prototype,"displayTitle",2),vA([ft({type:Boolean})],yA.prototype,"displayText",2),vA([ft({type:Boolean})],yA.prototype,"smallTitle",2),vA([ft({type:Boolean})],yA.prototype,"updateAccount",2),vA([Us("settings.modules.ask_pro_account.access"),vt()],yA.prototype,"accessAskProAccount",2),vA([Us("settings.modules.create_pro_account.access"),vt()],yA.prototype,"create_pro_account",2),yA=vA([ut("sonic-ask-pro-account")],yA);var bA=Object.defineProperty,wA=Object.getOwnPropertyDescriptor,xA=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?wA(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&bA(e,i,r),r};let _A=class extends(Ls(pt)){constructor(){super(...arguments),this.noContactButton=!1,this.skeleton=!1}render(){return null===this.props?Z:this.skeleton?V`
        <div
          class="p-4 border-2 border-solid border-neutral-100 rounded-lg animate-pulse grid grid-cols-[auto,_minmax(0,1fr),_auto] gap-3"
        >
          <div class="w-20 aspect-square bg-neutral-100 rounded flex items-center justify-center"></div>
          <div class="mt-2">
            <div class="w-28 h-3 bg-neutral-100 rounded mb-2"></div>
            <div class="w-28 h-3 bg-neutral-100 rounded mb-2"></div>
            <div class="w-28 h-3 bg-neutral-100 rounded"></div>
          </div>
          <div class="w-8 h-8 bg-neutral-100 rounded-full"></div>
        </div>
      `:(this.accreditation=this.props,V`
      <div class="@container">
        <div class="p-3 @md:p-4 border border-solid border-neutral-200 rounded-lg">
          <div class="grid  grid-cols-[auto,_minmax(0,1fr),_auto] gap-3 @md:gap-4 mb-3 ">
            <div class="photo">
              ${this.accreditation.picture?V`<sonic-image
                    src=${this.accreditation.picture}
                    ratio="1/1"
                    class="w-16 @md:w-20 rounded overflow-hidden"
                  ></sonic-image>`:V`<div class="w-16 @md:w-20 aspect-square bg-neutral-200 rounded flex items-center justify-center">
                    <sonic-icon library="custom" name="user" size="xl" class="text-neutral-0"></sonic-icon>
                  </div>`}
            </div>
            <div class="mt-2 text-[.85rem] @md:text-[1.05rem]">
              ${this.accreditation.structureName?V`
                    <sonic-button
                      variant="unstyled"
                      radio
                      name="search"
                      value="${this.accreditation.structureName}"
                      class="font-bold text-[.75em]  mb-2"
                    >
                      ${this.accreditation.structureName}
                    </sonic-button>
                  `:Z}
              <div>${this.accreditation.firstName} ${this.accreditation.lastName}</div>
              ${this.accreditation.function?V`
                    <sonic-button
                      radio
                      variant="unstyled"
                      name="search"
                      value="${this.accreditation.function}"
                      class="text-[.75em] text-neutral-400"
                    >
                      ${this.accreditation.function}
                    </sonic-button>
                  `:Z}
            </div>
            ${!this.noContactButton&&this.accreditation.contact?V` <sonic-button shape="circle" @click="${this.setAccreditationContactModal}">
                  <sonic-icon library="heroicons" name="envelope"></sonic-icon>
                </sonic-button>`:Z}
          </div>
          <div class="flex flex-wrap gap-4 text-[.78rem] @md:text-[.9rem] ">
            <div class="flex">
              <sonic-icon library="custom" name="location-dot"></sonic-icon>
              <!-- POSTALCODE-->
              ${this.accreditation.postalCode?V`
                    <sonic-button
                      class="mr-1 text-[1em]"
                      variant="unstyled"
                      radio
                      name="search"
                      value="${this.accreditation.postalCode}"
                    >
                      ${this.accreditation.postalCode}
                    </sonic-button>
                  `:Z}
              <!-- CITY-->
              ${this.accreditation.city?V` <sonic-button
                    radio
                    variant="unstyled"
                    name="search"
                    class="text-[1em]"
                    value="${this.accreditation.city}"
                  >
                    <!-- Capitalize word -->
                    ${this.accreditation.city.split(" ").map((t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase())).join(" ")}
                  </sonic-button>`:Z}
              , ${this.accreditation.country}
            </div>
            ${this.accreditation.structureTypeId?V`
                  <sonic-button
                    radio
                    class="text-[1em]"
                    variant="unstyled"
                    name="structureTypeID"
                    value="${this.accreditation.structureTypeId}"
                  >
                    <sonic-icon library="custom" name="tags"></sonic-icon>
                    ${this.accreditation.structureType}
                  </sonic-button>
                `:Z}
          </div>
        </div>
      </div>
    `)}setAccreditationContactModal(){Ti.get("accreditationContact").set(this.accreditation)}};_A.styles=[Qs],xA([ft({type:Boolean})],_A.prototype,"noContactButton",2),xA([ft({type:Boolean})],_A.prototype,"skeleton",2),_A=xA([ut("accreditation-card")],_A);var kA=Object.defineProperty,$A=Object.getOwnPropertyDescriptor,PA=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?$A(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&kA(e,i,r),r};let SA=class extends(Le(pt)){constructor(){super(...arguments),this.displayTitle=!1,this.displayText=!1}connectedCallback(){super.connectedCallback(),zt.get("accreditationLoginResult").onAssign((()=>zt.get("currentAccreditation").invalidate()))}render(){return V` <!-- Test si l'utilisateur a accès à la liste ou s'il doit s'authentifier -->
      <sonic-fetch
        dataProvider="currentAccreditation"
        endPoint="accreditations/current"
        noErrorsRecordings
      ></sonic-fetch>

      <sonic-page-layout
        pageTitle=${Ae("accreditations_directory_title")}
        pageText=${Ae("accreditations_directory_subtitle")}
        ?displayTitle=${this.displayTitle}
        ?displayText=${this.displayText}
      >
        <!-- Pas connecté - Formulaire de login -->
        ${this.currentAccreditation?Z:this.showLoginForm()}

        <!--  Connecté - Liste des accreditations -->
        ${this.currentAccreditation?this.showAccreditationsList():Z}
      </sonic-page-layout>`}showLoginForm(){return V`
      <form formDataProvider="accreditationLogin" submitResultDataProvider="accreditationLoginResult">
        <sonic-fieldset class="max-w-[25rem]">
          <sonic-legend iconLibrary="custom" iconName="lock" label=${Ae("LIB_annuaire_access_accreditations_directory")}>
          </sonic-legend>
          <sonic-form-layout>
            <sonic-submit onEnterKey endpoint="accreditations/login" method="post">
              <sonic-form-layout>
                <sonic-input type="email" label=${Ae("email")} name="mail" placeholder="name@example.com"></sonic-input>
                <sonic-input
                  type="text"
                  label="${Ae("accreditation_number")}"
                  name="number"
                  placeholder="- - - - -"
                ></sonic-input>
              </sonic-form-layout>
            </sonic-submit>
            <sonic-form-actions>
              <sonic-submit onClick endpoint="accreditations/login" method="post">
                <sonic-button radio noAutoFill type="success">
                  <sonic-icon slot="prefix" name="check"></sonic-icon>
                  ${Ae("confirm")}
                </sonic-button>
              </sonic-submit>
            </sonic-form-actions>
          </sonic-form-layout>
        </sonic-fieldset>
      </form>
    `}showAccreditationsList(){var t;return V`
      <div
        formDataProvider="accreditationsFilters"
        dataProvider="accreditationsFilters"
        class="flex flex-wrap gap-3 mb-8 max-w-[40rem]"
      >
        <sonic-input inlineContent name="search" type="search" placeholder="${Ae("Search...")}" class="grow">
          <sonic-icon library="custom" name="magnifying-glass" slot="prefix"></sonic-icon>
        </sonic-input>

        <!-- Récupération des types de structure pour remplir le select -->
        <sonic-fetch
          endpoint="/accreditations/structures_types"
          dataProvider="optionsAccreditationsTypes"
          key="data"
        ></sonic-fetch>
        ${(null==(t=this.optionsAccreditationsTypes)?void 0:t.length)?V` <sonic-select
              name="structureTypeID"
              valueKey="id"
              wordingKey="title"
              class="min-w-[15rem]"
              .options=${[{id:"",title:Ae("accreditation_structure_types")},...this.optionsAccreditationsTypes]}
            ></sonic-select>`:Z}
        <!-- TODO ajouter un sorter -->
      </div>

      <sonic-queue
        dataProvider="accreditations"
        dataFilterProvider="accreditationsFilters"
        dataProviderExpression="/accreditations?offset=$offset&limit=$limit"
        key="data"
        class="grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 gap-4"
      >
        <template data-value="no-item">
          <sonic-no-result></sonic-no-result>
        </template>
        <template>
          <accreditation-card formDataProvider="accreditationsFilters"></accreditation-card>
        </template>
        <template data-value="skeleton">
          <accreditation-card formDataProvider="accreditationsFilters" skeleton></accreditation-card>
        </template>
      </sonic-queue>

      ${this.showContactModal()}
    `}showContactModal(){var t,e,i,s;return(null==(t=this.accreditationContact)?void 0:t.contact)?V` <sonic-modal @hidden="${this.unsetAccreditationContact}" visible width="36rem">
      <sonic-modal-close></sonic-modal-close>
      <sonic-modal-title class="flex gap-2"
        ><sonic-icon library="custom" name="envelope" size="lg"></sonic-icon> ${Ae("LIB_annuaire_contacter")}
        ${this.accreditationContact.firstName} ${this.accreditationContact.lastName}</sonic-modal-title
      >

      <accreditation-card
        dataProvider="accreditationContact"
        noContactButton
        class="pointer-events-none w-full mb-4"
      ></accreditation-card>

      <form formDataProvider="accreditationContactForm" class="w-full">
        <sonic-fieldset label="${Ae("LIB_annuaire_your_information")}">
          <sonic-form-layout>
            <sonic-input
              required
              type="email"
              name="mail"
              label="${Ae("email")}"
              value="${null==(e=this.currentAccreditation)?void 0:e.email}"
            ></sonic-input>
            <sonic-input
              required
              name="fullname"
              label="${Ae("LIB_annuaire_full_name")}"
              placeholder="${Ae("LIB_annuaire_full_name_placeholder")}"
              value="${null==(i=this.currentAccreditation)?void 0:i.firstName} ${null==(s=this.currentAccreditation)?void 0:s.lastName}"
            ></sonic-input>
            <sonic-textarea
              required
              name="message"
              label="${Ae("LIB_annuaire_your_message")}"
              resize="vertical"
            ></sonic-textarea>
            <sonic-input type="hidden" name="contact" value="${this.accreditationContact.contact}"></sonic-input>
          </sonic-form-layout>
        </sonic-fieldset>
        <sonic-form-actions>
          <sonic-submit
            endPoint="/accreditations/contact"
            method="POST"
            submitResultDataProvider="accreditationContactResult"
            onclick
          >
            <sonic-button type="neutral">
              <sonic-icon library="custom" name="paper-plane"></sonic-icon>
              ${Ae("LIB_annuaire_send")}
            </sonic-button>
          </sonic-submit>
        </sonic-form-actions>
      </form>
    </sonic-modal>`:Z}unsetAccreditationContact(){zt.get("accreditationContact").set({})}};SA.styles=[Qs],PA([ft({type:Boolean})],SA.prototype,"displayTitle",2),PA([ft({type:Boolean})],SA.prototype,"displayText",2),PA([Us("currentAccreditation.data"),vt()],SA.prototype,"currentAccreditation",2),PA([Us("accreditationContact"),vt()],SA.prototype,"accreditationContact",2),PA([Us("optionsAccreditationsTypes"),vt()],SA.prototype,"optionsAccreditationsTypes",2),SA=PA([ut("sonic-accreditations-directory")],SA);var CA=Object.defineProperty,AA=Object.getOwnPropertyDescriptor,OA=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?AA(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&CA(e,i,r),r};let EA=class extends(Le(pt)){constructor(){super(...arguments),this.customListSlug="",this.edito={},this.sessions=[]}connectedCallback(){super.connectedCallback()}render(){return!this.props&&this.customListSlug?Z:V`
      <sonic-page-header .label=${this.edito.title}></sonic-page-header>
      ${this.edito.body?V`<div class="prose mb-10">${_e(this.edito.body)}</div>`:Z}
      <sonic-list subDataProvider="sessions" class="grid gap-3 grid-cols-1">
        <template>
          <sonic-event-store-item formType="buttons" formSize="sm"></sonic-event-store-item>
        </template>
      </sonic-list>
    `}};EA.styles=[Qs],OA([Gd({context:Dh}),ft({type:String})],EA.prototype,"customListSlug",2),OA([ft({type:Object})],EA.prototype,"edito",2),OA([ft({type:Array})],EA.prototype,"sessions",2),EA=OA([ut("sonic-custom-list-content")],EA);var TA=Object.defineProperty,MA=Object.getOwnPropertyDescriptor,DA=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?MA(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&TA(e,i,r),r};let LA=class extends(Es(Le(pt))){constructor(){super(...arguments),this.success=null}connectedCallback(){const t=new URLSearchParams(window.location.search);this.slug||(this.slug=t.get("sonic_custom_list_slug")||"",this.slug||(this.slug=decodeURI(window.location.href.split("/").pop()||""))),this.noErrorsRecordings=!0,super.connectedCallback()}render(){var t,e;const i=!!(null==(e=null==(t=this.publisher.get().data)?void 0:t.picture)?void 0:e.src);return V` <sonic-fullscreen-layout>
      ${!1===this.success?V`
            <form
              formDataProvider="customListLogin"
              submitResultDataProvider="${this.dataProvider||""}"
              dataProvider="customListLogin"
            >
              <sonic-fieldset class="max-w-[25rem]">
                <sonic-legend iconLibrary="custom" iconName="lock" label=${Ae("password")}></sonic-legend>
                <sonic-form-layout>
                  <sonic-submit onEnterKey endpoint="custom-list/login" method="post">
                    <sonic-form-layout>
                      <sonic-input type="hidden" name="list" value=${this.slug}></sonic-input>
                      <sonic-input type="password" data-aria-label=${Ae("password")} name="password"></sonic-input>
                    </sonic-form-layout>
                  </sonic-submit>
                  <sonic-form-actions>
                    <sonic-submit onClick endpoint="custom-list/login" method="post">
                      <sonic-button radio noAutoFill type="success">
                        <sonic-icon slot="prefix" name="check"></sonic-icon>
                        ${Ae("confirm")}
                      </sonic-button>
                    </sonic-submit>
                  </sonic-form-actions>
                </sonic-form-layout>
              </sonic-fieldset>
            </form>
          `:Z}
      ${this.success?V`<sonic-custom-list-content
              customListSlug="${li(this.slug)}"
              subDataProvider="data"
            ></sonic-custom-list-content>
            ${i?V`<div
                  slot="aside"
                  class="relative h-full bg-neutral-100 rounded-lg overflow-hidden hidden lg:block"
                >
                  <sonic-product-illustration subDataProvider="data.picture" cover></sonic-product-illustration>
                </div> `:Z}`:Z}
    </sonic-fullscreen-layout>`}};LA.styles=[Qs],DA([ft()],LA.prototype,"slug",2),DA([vt()],LA.prototype,"success",2),LA=DA([ut("sonic-custom-list")],LA);var jA=Object.defineProperty,IA=Object.getOwnPropertyDescriptor,zA=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?IA(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&jA(e,i,r),r};let BA=class extends(Le(pt)){constructor(){super(...arguments),this.edito={}}render(){var t,e;return V` <sonic-page-layout
      pageTitle=${li(null==(t=this.edito)?void 0:t.title)}
      pageText=${li(null==(e=this.edito)?void 0:e.body)}
      displayTitle
      displayText
    >
      <sonic-form-event-filter
        formDataProvider="campaign"
        filterCategory
        class="block max-w-[40rem] w-full z-10 min-w-0 mb-6"
      ></sonic-form-event-filter>

      <div dataProvider="campaign">
        <sonic-queue
          dataProviderExpression="events?next=1&limit=$limit&offset=$offset&view=essential&campaign_hash=${this.hash}"
          limit="5"
          targetRequestDuration="1000"
          dataProvider="campainResults"
          dataFilterProvider="campaign"
        >
          <template data-value="no-item">
            <sonic-no-result></sonic-no-result>
          </template>
          <template>
            <sonic-event-store-item showAllSessionsButton formType="select" class="mb-4 block"></sonic-event-store-item>
          </template>
        </sonic-queue></div
    ></sonic-page-layout>`}};BA.styles=[Qs],zA([ft({type:Object})],BA.prototype,"edito",2),zA([ft({type:String})],BA.prototype,"hash",2),BA=zA([ut("sonic-campaign-content")],BA);var RA=Object.defineProperty,NA=Object.getOwnPropertyDescriptor,FA=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?NA(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&RA(e,i,r),r};let qA=class extends(_s(Le(pt))){constructor(){super(...arguments),this.success=!1}connectedCallback(){const t=new URLSearchParams(window.location.search);this.hash||(this.hash=t.get("sonic_campaign_hash")||""),this.hash&&this.setAttribute("dataProvider",`campaign/${this.hash}`),super.connectedCallback()}render(){return V`${this.success?V`<sonic-fullscreen-layout displayBanner>
                    <sonic-campaign-content subDataProvider="data" hash=${this.hash}></sonic-campaign-content>
                  </sonic-page-layout>
                  <sonic-cart-full dataProvider="cart/current" subDataProvider="data" layout="condensed" slot="aside" class="shadow-lg py-8 px-6 rounded-lg hidden lg:block sticky top-0"></sonic-cart-full>
              </sonic-fullscreen-layout
      >`:Z}`}};qA.styles=[Qs],FA([Gd({context:Wu}),ft({type:String})],qA.prototype,"hash",2),FA([ft({type:Boolean})],qA.prototype,"success",2),qA=FA([ut("sonic-campaign")],qA);var HA=Object.defineProperty,UA=Object.getOwnPropertyDescriptor,VA=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?UA(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&HA(e,i,r),r};let WA=class extends($h(pt)){constructor(){super(...arguments),this.displayTitle=!1,this.smallTitle=!1,this.displayText=!1}render(){var t,e;const i=null==(t=this.carpoolingSettings)?void 0:t.url,s=(null==(e=this.carpoolingSettings)?void 0:e.token)||"";return i?V`<sonic-page-layout
      pageTitle=${Ae("module_carpooling_title")}
      pageText=${Ae("module_carpooling_text")}
      ?smallTitle=${this.smallTitle}
      ?displayTitle=${this.displayTitle}
      ?displayText=${this.displayText}
    >
      <covoit-app
        covoitURL="${i}"
        baseURL=${ao("carpooling")}
        token="${li(s)}"
        encryptedUid=${li(this.encryptedUid)}
        customRoutes=${JSON.stringify(this.customRoutes)}
      ></covoit-app>
      <sonic-covoit-component></sonic-covoit-component>
    </sonic-page-layout>`:Z}};VA([ft({type:Boolean})],WA.prototype,"displayTitle",2),VA([ft({type:Boolean})],WA.prototype,"smallTitle",2),VA([ft({type:Boolean})],WA.prototype,"displayText",2),WA=VA([ut("sonic-carpooling")],WA);var ZA=Object.defineProperty,YA=Object.getOwnPropertyDescriptor;let GA=class extends pt{constructor(){super(...arguments),this.cartProvider="cart/current",this.updateSeats=t=>{const e=t.detail;zt.get("user_placing").selectedSeats=e}}connectedCallback(){var t;null==(t=this.querySelector("canvas"))||t.addEventListener("addToCartRequest",this.updateSeats),this.cartProvider=new URL(document.location.href).searchParams.get("cartProvider")||Ci.getAncestorAttributeValue(this,"cartProvider")||"cart/current";window.placement.Front.initConcorde(zt,Ci),super.connectedCallback()}disconnectedCallback(){var t;super.disconnectedCallback(),null==(t=this.querySelector("canvas"))||t.removeEventListener("addToCartRequest",this.updateSeats)}render(){return V` <sonic-fetch dataProvider=${this.cartProvider}></sonic-fetch>
      <slot></slot>`}};GA.styles=[l`
      :host {
        display: contents;
      }
    `],GA=((t,e,i,s)=>{for(var o,r=s>1?void 0:s?YA(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&ZA(e,i,r),r})([ut("sonic-placement-plan")],GA);var KA=Object.defineProperty,QA=Object.getOwnPropertyDescriptor,XA=(t,e,i,s)=>{for(var o,r=s>1?void 0:s?QA(e,i):e,n=t.length-1;n>=0;n--)(o=t[n])&&(r=(s?o(e,i,r):o(r))||r);return s&&r&&KA(e,i,r),r};let JA=class extends(Le(pt)){constructor(){super(...arguments),this.event={},this.group={},this.category={},this.alerts=[],this.selection={},this.actions=[],this.showRates=!1,this.handleActionClick=t=>{const e=t.target.getAttribute("action");e&&this[e]()}}close(t){(null==t?void 0:t.length)>0||gl.disposeAll()}connectedCallback(){const t=new URLSearchParams(window.location.search).get("cartProvider");t&&this.setAttribute("cartProvider",t),super.connectedCallback()}removeSeatFromSelection(){var t,e,i,s,o,r;window.Drupal.behaviors.la_billetterie_placement.remove_place_panier(null==(e=null==(t=this.selection)?void 0:t.places)?void 0:e.map((t=>t.place_id)),null==(i=this.group)?void 0:i.id,null==(o=null==(s=this.selection)?void 0:s.places)?void 0:o.map((t=>t.reservation_id)),null==(r=this.event)?void 0:r.id)}async neutraliser(){var t,e,i;const s=null==(e=null==(t=this.selection)?void 0:t.places)?void 0:e.map((t=>t.place_id)),o=`/la_billetterie/plan/api/neutraliser?id_evenement=${null==(i=this.event)?void 0:i.id}&id_place=${null==s?void 0:s.join(",")}`;await fetch(o);const r=window;r.placement.Front.instance.reloadOnlindeChairsData(s),r.placement.Front.instance.showSelectionPopup(s)}deNeutraliser(){var t,e,i;window.Drupal.behaviors.la_billetterie_placement.decontingenter(null==(e=null==(t=this.selection)?void 0:t.places)?void 0:e.map((t=>t.place_id)),null==(i=this.event)?void 0:i.id)}reload(){location.reload()}renderTitle(){var t,e,i,s,o,r,n;const a=null==(t=this.group)?void 0:t.subscribe;return a?V`<div class="mb-4">
      <sonic-modal-title class="mb-2">${"Sélection de la place pour :"}</sonic-modal-title>
      <sonic-modal-subtitle
        ><sonic-icon library="custom" name="user"></sonic-icon>${null==a?void 0:a.firstName}
        ${null==a?void 0:a.lastName}</sonic-modal-subtitle
      >
    </div>`:((null==(i=null==(e=this.selection)?void 0:e.places)?void 0:i.length)||0)>1||(null==(s=this.selection)?void 0:s.type)?V`<div class="mb-4 flex">
          <sonic-icon library="custom" name="loveseat" size="xl" class="mr-4"></sonic-icon>
          <div>
            <sonic-modal-title class="mb-2"> ${null==(r=null==(o=this.selection)?void 0:o.places)?void 0:r.length} places sélectionnées</sonic-modal-title>
            ${(null==(n=this.selection)?void 0:n.type)?V`<sonic-modal-subtitle>${this.selection.type}</sonic-modal-subtitle>`:Z}
          </div>
        </div>`:Z}renderAlerts(){var t;return(null==(t=this.alerts)?void 0:t.length)?this.alerts.map((t=>{var e,i;return V` <sonic-alert label=${t.label} text=${t.text} status=${t.status} background>
          ${((null==(e=t.actions)?void 0:e.length)||0)>0?V` <div class="flex gap-2 mt-2">
                ${null==(i=t.actions)?void 0:i.map((t=>V`
                    <sonic-button
                      @click=${this.handleActionClick}
                      action=${t.action}
                      type="${li(t.type)}"
                      href="${li(t.href)}"
                      variant="outline"
                      size="xs"
                    >
                      ${t.icon?V`<sonic-icon
                            library="custom"
                            prefix="solid"
                            name="${t.icon}"
                            size="sm"
                          ></sonic-icon>`:Z}
                      ${t.label}
                    </sonic-button>
                  `))}
              </div>`:Z}
        </sonic-alert>`})):Z}renderActions(){var t,e;return(null==(t=this.actions)?void 0:t.length)?V`<sonic-divider class="remove-space"></sonic-divider>
      <div class="flex gap-2">
        ${null==(e=this.actions)?void 0:e.map((t=>V`<sonic-button
              size="sm"
              @click=${this.handleActionClick}
              action=${t.action}
              type=${li(t.type)}
              href="${li(t.href)}"
            >
              ${t.icon?V`<sonic-icon prefix="solid" library="custom" name="${t.icon}" size="sm"></sonic-icon>`:Z}
              ${t.label}
            </sonic-button>`))}
      </div>`:Z}renderSelection(){var t,e;return!(null==(e=null==(t=this.selection)?void 0:t.places)?void 0:e.length)||this.selection.type?Z:V`
      <sonic-table bordered maxHeight="10rem">
        <sonic-thead>
          <sonic-tr>
            <sonic-th> ${Ae("pl_zone")} </sonic-th>
            <sonic-th> ${Ae("pl_porte")} </sonic-th>
            <sonic-th> ${Ae("pl_rang")} </sonic-th>
            <sonic-th> ${Ae("pl_numero")} </sonic-th>
            <sonic-th> ${Ae("pl_type_siege")} </sonic-th>
          </sonic-tr>
        </sonic-thead>
        <sonic-tbody>
          ${this.selection.places.map((t=>V` <sonic-tr>
                <sonic-td> ${t.zone} </sonic-td>
                <sonic-td> ${t.porte} </sonic-td>
                <sonic-td> ${t.rang} </sonic-td>
                <sonic-td> ${t.numero} </sonic-td>
                <sonic-td> ${t.type_siege} </sonic-td>
              </sonic-tr>`))}
        </sonic-tbody>
      </sonic-table>
    `}renderRates(){var t,e,i,s,o,r;return this.showRates?V` <sonic-buy-event-block
      loaderMode="inline"
      placesIds=${li(null==(e=null==(t=this.selection)?void 0:t.places)?void 0:e.map((t=>t.place_id)).join(","))}
      categoryId=${li(parseInt((null==(i=this.category)?void 0:i.id)+""))}
      serviceURL="/api/v2"
      dataProvider="events/${null==(s=this.event)?void 0:s.id}?is_subscribing=${void 0!==(null==(r=null==(o=this.group)?void 0:o.subscribe)?void 0:r.index)?1:0}"
      formType="buttons"
      size="sm"
      isPlacementRateSelection
      fetch
      noSuffix
    ></sonic-buy-event-block>`:Z}render(){return V`
      ${this.renderTitle()}
      <div class="flex gap-4 flex-col">
        ${this.renderSelection()} ${this.renderAlerts()} ${this.renderRates()} ${this.renderActions()}
      </div>
    `}};JA.styles=[Qs,l`
      :host {
        position: relative;
        z-index: 0;
      }
      .remove-space {
        margin-top: -1rem;
      }
    `],XA([ft({type:Object})],JA.prototype,"event",2),XA([ft({type:Object})],JA.prototype,"group",2),XA([ft({type:Object})],JA.prototype,"category",2),XA([ft({type:Array})],JA.prototype,"alerts",2),XA([ft({type:Object})],JA.prototype,"selection",2),XA([ft({type:Array})],JA.prototype,"actions",2),XA([ft({type:Boolean})],JA.prototype,"showRates",2),XA([Vs("user_placing.selectedSeats")],JA.prototype,"close",1),JA=XA([ut("sonic-placement-buy-block")],JA),we("sonic-api").lastResponse.processed.onAssign((t=>{return e=t,void(null==(i=be("defaultMessages").values().next().value)||i.set(e));var e,i}));window.concordeIsLoaded=!0,window.dispatchEvent(new CustomEvent("concorde-loaded"))}));