@supersoniks/concorde 3.2.3 → 3.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build-infos.json CHANGED
@@ -1 +1 @@
1
- {"date":1760082833}
1
+ {"date":1760357838}
@@ -1,4 +1,4 @@
1
- (function(H){typeof define=="function"&&define.amd?define(H):H()})((function(){"use strict";var kt,L,E,Y;let H=class Ut{static getLanguage(){const t=document.documentElement.lang;return localStorage.getItem("SonicSelectedLanguage")||t}static getCookies(){return document.cookie.split(";").reduce((t,i)=>{const s=i.indexOf("=");return t[i.substring(0,s).trim()]=i.substring(s+1),t},{})}static everyAncestors(t,i){for(;t;){if(!i(t))return;t=t.parentNode||t.host}}static getScrollableAncestor(t){for(;t;){const i=t;if(i.nodeType===1){const s=window.getComputedStyle(i);if(s?.overflowY==="auto"||s?.overflowY==="scroll"||s?.overflowY==="hidden"||s?.overflowX==="auto"||s?.overflowX==="scroll"||s?.overflowX==="hidden")return t}t=t.parentNode||t.host}return null}static getAncestorAttributeValue(t,i){if(!t)return null;for(;!("hasAttribute"in t&&t.hasAttribute(i))&&(t.parentNode||t.host);)t=t.parentNode||t.host;return"hasAttribute"in t?t.getAttribute(i):null}static getApiConfiguration(t){const i=Ut.getAncestorAttributeValue(t,"token"),s=Ut.getAncestorAttributeValue(t,"addHTTPResponse")!=null,e=Ut.getAncestorAttributeValue(t,"serviceURL");let o=null,n=null;const l=Ut.getAncestorAttributeValue(t,"tokenProvider"),c=Ut.getAncestorAttributeValue(t,"eventsApiToken");i||(o=Ut.getAncestorAttributeValue(t,"userName"),n=Ut.getAncestorAttributeValue(t,"password"));const h=Ut.getAncestorAttributeValue(t,"credentials")||void 0,u=t.getAttribute("cache"),d=t.hasAttribute("blockUntilDone");return{serviceURL:e,token:i,userName:o,password:n,authToken:c,tokenProvider:l,addHTTPResponse:s,credentials:h,cache:u,blockUntilDone:d}}static getClosestElement(t,i){for(;!(t.nodeName&&t.nodeName.toLowerCase()===i)&&(t.parentNode||t.host);)t=t.parentNode||t.host;return t.nodeName?t:null}static getClosestForm(t){return Ut.getClosestElement(t,"form")}static async loadJS(t){return new Promise(async s=>{const e=document.createElement("script");e.src=t,e.onload=()=>s(!0),e.onerror=()=>s(!0),document.head.appendChild(e)})}static async loadCSS(t){return new Promise(async s=>{const e=document.createElement("link");e.type="text/css",e.rel="stylesheet",e.href=t,e.onload=()=>s(!0),e.onerror=()=>s(!0),document.head.appendChild(e)})}};const js=r=>{const t=document.documentElement,i=new MutationObserver(e=>{for(let o of e)o.type==="attributes"&&o.attributeName==="lang"&&r()}),s={attributes:!0,attributeFilter:["lang"]};i.observe(t,s)};let ls=class{static ucFirst(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.substring(1)}static minutesDuration(t,i="",s="long"){i||(i=H.getLanguage());const e=(h,u)=>[Math.floor(h/u),h%u];function o(h,u,d){return new Intl.NumberFormat(h,{style:"unit",unit:u,unitDisplay:d}).format}const[n,l]=e(t,60),c=[];return n&&c.push(o(i,"hour",s)(n)),l&&c.push(o(i,"minute",s)(l)),new Intl.ListFormat(i,{style:"long",type:"conjunction"}).format(c)}static js(t){try{return Function("return "+t)()}catch{return""}}},Rr=class{static async queueTaskPromise(){return new Promise(t=>{window.queueMicrotask(()=>t(null))})}static async delayPromise(t){return new Promise(i=>{setTimeout(i,t)})}},Ti="sonic";typeof __SONIC_PREFIX__<"u"&&(Ti=__SONIC_PREFIX__);let Mi=Ti.replace(/-([a-z])/g,r=>r[1].toUpperCase());const cs=Mi.charAt(0).toUpperCase()+Mi.slice(1);function hs(r){return Object.prototype.hasOwnProperty.call(r,"__value")}function Ie(r){return typeof r=="object"&&r!=null}let _e="sonic";typeof __SONIC_PREFIX__>"u"&&(_e="sonic");const Fs=_e=="sonic"?"publisher-proxies-data":_e+"-publisher-proxies-data";let zs=(kt=class{constructor(t,i,s){for(this._proxies_=new Map,this._is_savable_=!1,this._expiration_delay_=1e3*60*60*12,this._invalidate_on_page_show_=!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=i||null,this._parentKey_=s,this.root=this,this._instanceCounter_=0;this.root.parent;)this.root=this.root.parent}delete(){for(const t in this._proxies_.keys())t!="_parent_"&&this._proxies_.get(t)?.delete();this._invalidateListeners_.clear(),this._formInvalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear(),kt.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(i=>i()),this._is_savable_&&!T.changed){T.changed=!0,T.saveId++;const i=T.saveId;setTimeout(()=>T.getInstance().saveToLocalStorage(i),1e3)}t||this.parent&&this.parent._publishInternalMutation_()}async _publishAssignement_(t=!1){if(this._assignmentId_++,this._assignmentId_!==this._assignmentId_)return;const s=this.get();this._assignListeners_.forEach(e=>{e(s)}),this._publishInternalMutation_(t)}_publishInvalidation_(){this._invalidateListeners_.forEach(t=>t())}_publishFormInvalidation_(){this._formInvalidateListeners_.forEach(t=>t())}_publishDynamicFilling_(t,i){this._fillListeners_.forEach(s=>{s[t]!==i&&(s[t]=i)}),this._publishTemplateFilling_(t,i)}_publishTemplateFilling_(t,i){this._templateFillListeners_.forEach(s=>{const e=Object.getOwnPropertyDescriptor(s,t);e&&!e.set&&!e.writable||(s.propertyMap&&s.propertyMap[t]&&(t=s.propertyMap[t]),typeof s[t]<"u"&&s[t]!==i&&(s[t]=i))})}onAssign(t,i=!0){typeof t=="function"&&(this._assignListeners_.has(t)||(this._assignListeners_.add(t),i&&t(this.get())))}offAssign(t){this._assignListeners_.delete(t)}onInvalidate(t){typeof t=="function"&&this._invalidateListeners_.add(t)}offInvalidate(t){typeof t=="function"&&this._invalidateListeners_.delete(t)}invalidate(){this._publishInvalidation_()}onFormInvalidate(t){typeof t=="function"&&this._formInvalidateListeners_.add(t)}offFormInvalidate(t){typeof t=="function"&&this._formInvalidateListeners_.delete(t)}invalidateForm(){this._publishFormInvalidation_()}onInternalMutation(t){typeof t=="function"&&(this._mutationListeners_.add(t),t())}offInternalMutation(t){typeof t=="function"&&this._mutationListeners_.delete(t)}startTemplateFilling(t){if(this._templateFillListeners_.add(t),typeof this._value_=="object")for(const i in this._value_){let s=i;const e=this._value_[i];t.propertyMap&&t.propertyMap[i]&&(s=t.propertyMap[i]),typeof t[i]<"u"&&t[i]!==e&&(t[s]=e)}}stopTemplateFilling(t){this._templateFillListeners_.delete(t)}startDynamicFilling(t){this._fillListeners_.add(t);for(const i in this._value_){const s=this._value_[i];t[i]!==s&&(t[i]=s)}}stopDynamicFilling(t){this._fillListeners_.delete(t)}set(t,i=!1){if(this._value_===t||this._value_&&t&&hs(this._value_)&&hs(t)&&this._value_.__value===t.__value)return!0;this._value_=Ie(t)?t:{__value:t},this._cachedGet_=void 0;const s=hs(this._value_);if(this._parentKey_&&this.parent){const e=hs(this._value_)?this._value_.__value:this._value_;if(this.parent?.get()==null&&this.parent?.get()==null)if(isNaN(Number(this._parentKey_)))this.parent.set({[this._parentKey_]:e});else{const o=[];o[Number(this._parentKey_)]=e,this.parent.set(o)}else this.parent._value_[this._parentKey_]=e}if(s)return this._proxies_.forEach((e,o)=>{o!="_parent_"&&(e.set(null),this._publishDynamicFilling_(o,null))}),this._publishAssignement_(i),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_.__value),!0;for(const e in this._value_)this._value_[e]===void 0&&delete this._value_[e];if(this._proxies_.forEach((e,o)=>{const n=this._value_[o];o!="_parent_"&&n===void 0&&n!==null&&isNaN(Number(o))&&(e.set(null),this._publishDynamicFilling_(o,null))}),this._publishAssignement_(),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_),Ie(this._value_))for(const e in this._value_){const o=t[e],l=Ie(o)?o:{__value:o};if(!this._proxies_.has(e)){this._publishDynamicFilling_(e,o);continue}this._proxies_.get(e)?.set(l,!0),this._publishDynamicFilling_(e,o)}return!0}get(){if(this._cachedGet_!==void 0)return this._cachedGet_;if(T.modifiedCollectore.length>0&&T.modifiedCollectore[0].add(this),Object.prototype.hasOwnProperty.call(this._value_,"__value")){const t=this._value_.__value;return this._cachedGet_=t??null}return this._cachedGet_=this._value_!=null?this._value_:null}get $tag(){return this._instanceCounter_||(kt.instancesCounter++,this._instanceCounter_=kt.instancesCounter),kt.instances.set(this._instanceCounter_,this),"<"+_e+'-publisher-proxy publisher="'+this._instanceCounter_+'"></'+_e+"-publisher-proxy>"}},kt.instances=new Map,kt.instancesCounter=0,kt),T=(L=class{constructor(){if(this.enabledLocaStorageProxies=[],this.publishers=new Map,this.localStorageData={},this.isLocalStrorageReady=null,this.initialisedData=[],L.instance!=null)throw"Singleton / use getInstance";L.instance=this,this.isLocalStrorageReady=this.cleanStorageData()}invalidateAll(){this.publishers.forEach(t=>{t._invalidate_on_page_show_&&t.invalidate()})}async cleanStorageData(){return new Promise(t=>{(async()=>{try{let s=localStorage.getItem(Fs),e=null;if(s&&(e=await this.decompress(s,"gzip")),e)try{this.localStorageData=JSON.parse(e)}catch{this.localStorageData={}}else s=await this.compress("{}","gzip"),localStorage.setItem(Fs,s),this.localStorageData={};const o=1e3*60*60*12;for(const n in this.localStorageData){const l=this.localStorageData[n],c=new Date().getTime()-(l.expirationDelayMs||o);l.lastModifiationMS<c&&delete this.localStorageData[n]}t(!0)}catch{window.requestAnimationFrame(()=>{t(!1)}),console.warn("no publisher cache in this browser")}})()})}static getInstance(t){if(t){const i=L.instances.get(t);return i||(console.warn("No PublisherManager instance registered with id:",t,"creating new one"),new L)}return L.instance==null?new L:L.instance}static registerInstance(t,i){L.instances.has(t)&&console.warn("PublisherManager instance already registered with id: ",t),L.instances.set(t,i)}static get(t,i){return L.getInstance().get(t,i)}static collectModifiedPublisher(){L.modifiedCollectore.unshift(new Set)}static getModifiedPublishers(){return L.modifiedCollectore.shift()}static delete(t){return t?L.getInstance().delete(t):!1}async setLocalData(t,i){await this.isLocalStrorageReady,t.set(this.localStorageData[i+"¤lang_"+H.getLanguage()]?.data||t.get())}get(t,i){const s=i?.localStorageMode==="enabled",e=i?.invalidateOnPageShow===!0;if(!this.publishers.has(t)){const n={},l=new je(n);this.set(t,l)}const o=this.publishers.get(t);return s&&this.initialisedData.indexOf(t)===-1&&(i?.expirationDelayMs&&(o._expiration_delay_=i.expirationDelayMs),o._is_savable_=!0,this.initialisedData.push(t),this.setLocalData(o,t)),e&&(o._invalidate_on_page_show_=e),this.publishers.get(t)}set(t,i){this.publishers.set(t,i)}delete(t){return this.publishers.has(t)?(this.publishers.delete(t),!0):!1}async saveToLocalStorage(t=0){if(!(t!==L.saveId&&t%10!=0))try{if(!L.changed||L.saving)return;L.saving=!0,L.changed=!1;const i=Array.from(this.publishers.keys());let s=!1;for(const e of i){const o=this.publishers.get(e);if(!o?._is_savable_)continue;const n=o?.get();n&&(this.localStorageData[e+"¤lang_"+H.getLanguage()]={lastModifiationMS:new Date().getTime(),expirationDelayMs:o._expiration_delay_,data:n},s=!0)}if(s){const e=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem(Fs,e)}if(L.saving=!1,L.changed){L.saveId++;const e=L.saveId;setTimeout(()=>this.saveToLocalStorage(e),1e3)}}catch{L.saving=!1}}async compress(t,i){const s=new TextEncoder().encode(t),e=window,o=new e.CompressionStream(i),n=o.writable.getWriter();n.write(s),n.close();const l=await new Response(o.readable).arrayBuffer(),c=new Uint8Array(l);let h="";for(let u=0;u<c.length;u++)h+=String.fromCharCode(c[u]);return btoa(h)}async decompress(t,i){const s=atob(t),o=Uint8Array.from(s,u=>u.charCodeAt(0)).buffer,n=window,l=new n.DecompressionStream(i),c=l.writable.getWriter();c.write(o),c.close();const h=await new Response(l.readable).arrayBuffer();return new TextDecoder().decode(h)}},L.buildDate="Fri Oct 10 2025 09:53:53 GMT+0200 (Central European Summer Time)",L.changed=!1,L.saving=!1,L.saveId=0,L.instance=null,L.instances=new Map,L.modifiedCollectore=[],L);if(typeof window<"u"){const r=window;r[cs+"PublisherManager"]=r[cs+"PublisherManager"]||T}const Ur=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_","_expiration_delay_","_lockInternalMutationPublishing_","_instanceCounter_","_assignmentId_","_invalidate_on_page_show_"]);class je extends zs{constructor(t,i=null,s){super(t,i,s);const e=new Proxy(this,{get:function(o,n){if(Ur.has(n))return o[n];if(n==Symbol.toPrimitive)return()=>e.get();if(!o._proxies_.has(n)){const l=o._value_[n],c=new je(Ie(l)?l:{__value:l},o,n);c._proxies_.set("_parent_",e),o._proxies_.set(n,c)}return o._proxies_.get(n)},set:function(o,n,l){if(n=="_value_")return o._value_=l,!0;if(n=="_cachedGet_")return o._cachedGet_=l,!0;if(n=="_assignmentId_")return o._assignmentId_=l,!0;if(n=="_is_savable_")return o._is_savable_=l,!0;if(n=="_expiration_delay_")return o._expiration_delay_=l,!0;if(n=="_invalidate_on_page_show_")return o._invalidate_on_page_show_=l,!0;if(n=="_instanceCounter_")return o._instanceCounter_=l,!0;if(!o._proxies_.has(n)){const h=new je({},o,n);h._proxies_.set("_parent_",e),o._proxies_.set(n,h)}return o._value_[n]!==l&&(o._value_[n]=l,o._publishDynamicFilling_(n,l),o._proxies_.get(n)?.set(Ie(l)?l:{__value:l})),!0},deleteProperty:function(o,n){return o._publishDynamicFilling_(n,null),o._proxies_.get(n)?.set(null),delete o._value_[n]},has:function(o,n){return n in o._value_&&n!="_lockInternalMutationPublishing_"},defineProperty:function(o,n,l){return l&&"value"in l&&(o._value_[n]=l.value),!0},getOwnPropertyDescriptor:function(o,n){return{enumerable:!0,configurable:!0}},ownKeys:function(o){return o._value_.__value?Object.keys(o._value_.__value):Object.keys(o._value_)}});return e}getProperty(t,i){return t[i]}}class Vr extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=t=>{this.innerHTML=t.toString()}}connectedCallback(){this.publisherId=this.getAttribute("publisher")||"",this.publisher=zs.instances.get(parseInt(this.publisherId)),this.publisher?.onAssign(this.onAssign)}disconnectedCallback(){this.publisher?.offAssign(this.onAssign)}}try{customElements.define(_e+"-publisher-proxy",Vr)}catch{}window.addEventListener("pageshow",r=>{r.persisted&&T.getInstance().invalidateAll()});let ds=(E=class{static disable(){this.enabled&&(this.enabled=!1,Array.from(E.observedElements.keys()).forEach(t=>E.unObserve(t)))}static observe(t){if(!t||!E.enabled||E.observedElements.has(t))return;const i=new MutationObserver(E.onMutation),s={};s.childList=!0,s.subtree=!0,s.attributes=!0,s.attributeFilter=["data-bind"],i.observe(t,s),t.querySelectorAll("[data-bind]").forEach(e=>E.addPublisherListeners(e)),E.observedElements.set(t,i)}static unObserve(t){if(!t)return;const i=this.observedElements.get(t);i&&(i.disconnect(),t.querySelectorAll("[data-bind]").forEach(s=>E.removePublisherListeners(s)))}static onAdded(t){t.hasAttribute&&t.hasAttribute("data-bind")&&E.addPublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(i=>E.addPublisherListeners(i)):t.childNodes.forEach(i=>E.onAdded(i))}static onRemoved(t){t.hasAttribute&&t.hasAttribute("data-bind")&&E.removePublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(i=>E.removePublisherListeners(i)):t.childNodes.forEach(i=>E.onRemoved(i))}static onMutation(t){for(const i of t)switch(i.type){case"attributes":E.addPublisherListeners(i.target);break;case"childList":i.addedNodes.forEach(s=>{E.onAdded(s)}),i.removedNodes.forEach(s=>{E.onRemoved(s)});break}}static removePublisherListeners(t){const i=E.publisherListeners.get(t);i&&(E.publisherListeners.delete(t),i.forEach(s=>{s.publisher?.offAssign(s.onAssign)}))}static getVariablesDescriptor(t){let i=t.match(/(\$(?:\w+\\?\.?)+)/g);return i?i=i.map(s=>s.replace("$","")):i=[t],i=i.filter(s=>s.length>0),{expression:t.replace("\\",""),variables:i.map(s=>s.split(/\b\.\b/).map(e=>e.replace("\\","")))}}static getDataBindItems(t){return"attributes"in t?Array.from(t.attributes).filter(i=>i.name.indexOf("::")==0).map(i=>({propertyToUpdate:i.name.substring(2).replace(/-((html)|\w)/g,e=>e.substring(1).toUpperCase()),bindedVariablesDescriptor:E.getVariablesDescriptor(i.value)})):[]}static getSubPublisher(t,i){if(!i)return t;for(const s of i)if(s!="_self_"){if(!t)return null;t=t[s]}return t}static addPublisherListeners(t){E.removePublisherListeners(t);const i=H.getAncestorAttributeValue(t.parentNode||t.host||t,"dataProvider");if(!i)return;const s=T.getInstance().get(i),e=E.getDataBindItems(t),o=[];e.forEach(n=>{const l=n.bindedVariablesDescriptor,c=n.propertyToUpdate;for(const h of l.variables){const u=h;let d=s;d=E.getSubPublisher(s,u);const g=t,v={publisher:d,onAssign:()=>{const b=l.variables.map(N=>E.getSubPublisher(s,N)?.get());let x=l.expression,C=!1;if(b.length==1&&l.variables[0].join(".")==x.substring(1)){let N=b[0];N===null&&(N=""),g[c]=N;return}for(let N=0;N<b.length;N++){let p=b[N];const f=l.variables[N];p===null&&(C=!0,p=void 0),x=x.replace("$"+f.join("."),p)}if(x.indexOf("|")!=-1){const N=x.indexOf("|");if(N==0)x=ls.js(x.substring(1));else{const p=x.substring(0,N),f=x.substring(N+1),w=ls[p];x=C?"":w?w(f):x}}else x=C?"":x;g[c]=x}};d?.onAssign(v.onAssign),o.push(v)}}),E.publisherListeners.set(t,o)}},E.observedElements=new Map,E.enabled=!0,E.publisherListeners=new Map,E);ds.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=ds);let tt=class Kt{static shallowEqual(t,i,s=!0){const e=Object.keys(t),o=Object.keys(i);if(e.length!==o.length&&s)return!1;for(const n of e){const l=t[n],c=i[n];if(s?l!==c:l!=c)return!1}return!0}static deepEqual(t,i,s=!0){const e=Object.keys(t),o=Object.keys(i);if(e.length!==o.length&&s)return!1;for(const n of e){const l=t[n],c=i[n],h=Kt.isObject(l)&&Kt.isObject(c),u=s?l!==c:l!=c;if(h&&!Kt.deepEqual(l,c)||!h&&u)return!1}return!0}static isObject(t){return t!=null&&typeof t=="object"}static isUndefindOrNull(t){return t==null}static isEmpty(t){return Kt.isUndefindOrNull(t)?!0:Object.keys(t).length===0}static traverse(t,i,s=!1){for(const e of i){const o=t[e];if(o===void 0)return;s&&Kt.isObject(o)?t=Object.assign(Array.isArray(o)?[]:{},t,o):t=t[e]}return t}static traverseDotNotation(t,i,s=!1){return Kt.traverse(t,i.split("."),s)}static getURLSearchArray(t,i=""){let s=[];for(let e in t){const o=t[e];i&&(e=i+"["+e+"]"),Kt.isObject(o)?s=[...s,...this.getURLSearchArray(o,e)]:s.push(`${e}=${o}`)}return s}static getURLSearchString(t){return Kt.getURLSearchArray(t,"").join("&")}};const pt=tt.traverseDotNotation;/**
1
+ (function(H){typeof define=="function"&&define.amd?define(H):H()})((function(){"use strict";var kt,L,E,Y;let H=class Ut{static getLanguage(){const t=document.documentElement.lang;return localStorage.getItem("SonicSelectedLanguage")||t}static getCookies(){return document.cookie.split(";").reduce((t,i)=>{const s=i.indexOf("=");return t[i.substring(0,s).trim()]=i.substring(s+1),t},{})}static everyAncestors(t,i){for(;t;){if(!i(t))return;t=t.parentNode||t.host}}static getScrollableAncestor(t){for(;t;){const i=t;if(i.nodeType===1){const s=window.getComputedStyle(i);if(s?.overflowY==="auto"||s?.overflowY==="scroll"||s?.overflowY==="hidden"||s?.overflowX==="auto"||s?.overflowX==="scroll"||s?.overflowX==="hidden")return t}t=t.parentNode||t.host}return null}static getAncestorAttributeValue(t,i){if(!t)return null;for(;!("hasAttribute"in t&&t.hasAttribute(i))&&(t.parentNode||t.host);)t=t.parentNode||t.host;return"hasAttribute"in t?t.getAttribute(i):null}static getApiConfiguration(t){const i=Ut.getAncestorAttributeValue(t,"token"),s=Ut.getAncestorAttributeValue(t,"addHTTPResponse")!=null,e=Ut.getAncestorAttributeValue(t,"serviceURL");let o=null,n=null;const l=Ut.getAncestorAttributeValue(t,"tokenProvider"),c=Ut.getAncestorAttributeValue(t,"eventsApiToken");i||(o=Ut.getAncestorAttributeValue(t,"userName"),n=Ut.getAncestorAttributeValue(t,"password"));const h=Ut.getAncestorAttributeValue(t,"credentials")||void 0,u=t.getAttribute("cache"),d=t.hasAttribute("blockUntilDone");return{serviceURL:e,token:i,userName:o,password:n,authToken:c,tokenProvider:l,addHTTPResponse:s,credentials:h,cache:u,blockUntilDone:d}}static getClosestElement(t,i){for(;!(t.nodeName&&t.nodeName.toLowerCase()===i)&&(t.parentNode||t.host);)t=t.parentNode||t.host;return t.nodeName?t:null}static getClosestForm(t){return Ut.getClosestElement(t,"form")}static async loadJS(t){return new Promise(async s=>{const e=document.createElement("script");e.src=t,e.onload=()=>s(!0),e.onerror=()=>s(!0),document.head.appendChild(e)})}static async loadCSS(t){return new Promise(async s=>{const e=document.createElement("link");e.type="text/css",e.rel="stylesheet",e.href=t,e.onload=()=>s(!0),e.onerror=()=>s(!0),document.head.appendChild(e)})}};const js=r=>{const t=document.documentElement,i=new MutationObserver(e=>{for(let o of e)o.type==="attributes"&&o.attributeName==="lang"&&r()}),s={attributes:!0,attributeFilter:["lang"]};i.observe(t,s)};let ls=class{static ucFirst(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.substring(1)}static minutesDuration(t,i="",s="long"){i||(i=H.getLanguage());const e=(h,u)=>[Math.floor(h/u),h%u];function o(h,u,d){return new Intl.NumberFormat(h,{style:"unit",unit:u,unitDisplay:d}).format}const[n,l]=e(t,60),c=[];return n&&c.push(o(i,"hour",s)(n)),l&&c.push(o(i,"minute",s)(l)),new Intl.ListFormat(i,{style:"long",type:"conjunction"}).format(c)}static js(t){try{return Function("return "+t)()}catch{return""}}},Rr=class{static async queueTaskPromise(){return new Promise(t=>{window.queueMicrotask(()=>t(null))})}static async delayPromise(t){return new Promise(i=>{setTimeout(i,t)})}},Ti="sonic";typeof __SONIC_PREFIX__<"u"&&(Ti=__SONIC_PREFIX__);let Mi=Ti.replace(/-([a-z])/g,r=>r[1].toUpperCase());const cs=Mi.charAt(0).toUpperCase()+Mi.slice(1);function hs(r){return Object.prototype.hasOwnProperty.call(r,"__value")}function Ie(r){return typeof r=="object"&&r!=null}let _e="sonic";typeof __SONIC_PREFIX__>"u"&&(_e="sonic");const Fs=_e=="sonic"?"publisher-proxies-data":_e+"-publisher-proxies-data";let zs=(kt=class{constructor(t,i,s){for(this._proxies_=new Map,this._is_savable_=!1,this._expiration_delay_=1e3*60*60*12,this._invalidate_on_page_show_=!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=i||null,this._parentKey_=s,this.root=this,this._instanceCounter_=0;this.root.parent;)this.root=this.root.parent}delete(){for(const t in this._proxies_.keys())t!="_parent_"&&this._proxies_.get(t)?.delete();this._invalidateListeners_.clear(),this._formInvalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear(),kt.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(i=>i()),this._is_savable_&&!T.changed){T.changed=!0,T.saveId++;const i=T.saveId;setTimeout(()=>T.getInstance().saveToLocalStorage(i),1e3)}t||this.parent&&this.parent._publishInternalMutation_()}async _publishAssignement_(t=!1){if(this._assignmentId_++,this._assignmentId_!==this._assignmentId_)return;const s=this.get();this._assignListeners_.forEach(e=>{e(s)}),this._publishInternalMutation_(t)}_publishInvalidation_(){this._invalidateListeners_.forEach(t=>t())}_publishFormInvalidation_(){this._formInvalidateListeners_.forEach(t=>t())}_publishDynamicFilling_(t,i){this._fillListeners_.forEach(s=>{s[t]!==i&&(s[t]=i)}),this._publishTemplateFilling_(t,i)}_publishTemplateFilling_(t,i){this._templateFillListeners_.forEach(s=>{const e=Object.getOwnPropertyDescriptor(s,t);e&&!e.set&&!e.writable||(s.propertyMap&&s.propertyMap[t]&&(t=s.propertyMap[t]),typeof s[t]<"u"&&s[t]!==i&&(s[t]=i))})}onAssign(t,i=!0){typeof t=="function"&&(this._assignListeners_.has(t)||(this._assignListeners_.add(t),i&&t(this.get())))}offAssign(t){this._assignListeners_.delete(t)}onInvalidate(t){typeof t=="function"&&this._invalidateListeners_.add(t)}offInvalidate(t){typeof t=="function"&&this._invalidateListeners_.delete(t)}invalidate(){this._publishInvalidation_()}onFormInvalidate(t){typeof t=="function"&&this._formInvalidateListeners_.add(t)}offFormInvalidate(t){typeof t=="function"&&this._formInvalidateListeners_.delete(t)}invalidateForm(){this._publishFormInvalidation_()}onInternalMutation(t){typeof t=="function"&&(this._mutationListeners_.add(t),t())}offInternalMutation(t){typeof t=="function"&&this._mutationListeners_.delete(t)}startTemplateFilling(t){if(this._templateFillListeners_.add(t),typeof this._value_=="object")for(const i in this._value_){let s=i;const e=this._value_[i];t.propertyMap&&t.propertyMap[i]&&(s=t.propertyMap[i]),typeof t[i]<"u"&&t[i]!==e&&(t[s]=e)}}stopTemplateFilling(t){this._templateFillListeners_.delete(t)}startDynamicFilling(t){this._fillListeners_.add(t);for(const i in this._value_){const s=this._value_[i];t[i]!==s&&(t[i]=s)}}stopDynamicFilling(t){this._fillListeners_.delete(t)}set(t,i=!1){if(this._value_===t||this._value_&&t&&hs(this._value_)&&hs(t)&&this._value_.__value===t.__value)return!0;this._value_=Ie(t)?t:{__value:t},this._cachedGet_=void 0;const s=hs(this._value_);if(this._parentKey_&&this.parent){const e=hs(this._value_)?this._value_.__value:this._value_;if(this.parent?.get()==null&&this.parent?.get()==null)if(isNaN(Number(this._parentKey_)))this.parent.set({[this._parentKey_]:e});else{const o=[];o[Number(this._parentKey_)]=e,this.parent.set(o)}else this.parent._value_[this._parentKey_]=e}if(s)return this._proxies_.forEach((e,o)=>{o!="_parent_"&&(e.set(null),this._publishDynamicFilling_(o,null))}),this._publishAssignement_(i),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_.__value),!0;for(const e in this._value_)this._value_[e]===void 0&&delete this._value_[e];if(this._proxies_.forEach((e,o)=>{const n=this._value_[o];o!="_parent_"&&n===void 0&&n!==null&&isNaN(Number(o))&&(e.set(null),this._publishDynamicFilling_(o,null))}),this._publishAssignement_(),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_),Ie(this._value_))for(const e in this._value_){const o=t[e],l=Ie(o)?o:{__value:o};if(!this._proxies_.has(e)){this._publishDynamicFilling_(e,o);continue}this._proxies_.get(e)?.set(l,!0),this._publishDynamicFilling_(e,o)}return!0}get(){if(this._cachedGet_!==void 0)return this._cachedGet_;if(T.modifiedCollectore.length>0&&T.modifiedCollectore[0].add(this),Object.prototype.hasOwnProperty.call(this._value_,"__value")){const t=this._value_.__value;return this._cachedGet_=t??null}return this._cachedGet_=this._value_!=null?this._value_:null}get $tag(){return this._instanceCounter_||(kt.instancesCounter++,this._instanceCounter_=kt.instancesCounter),kt.instances.set(this._instanceCounter_,this),"<"+_e+'-publisher-proxy publisher="'+this._instanceCounter_+'"></'+_e+"-publisher-proxy>"}},kt.instances=new Map,kt.instancesCounter=0,kt),T=(L=class{constructor(){if(this.enabledLocaStorageProxies=[],this.publishers=new Map,this.localStorageData={},this.isLocalStrorageReady=null,this.initialisedData=[],L.instance!=null)throw"Singleton / use getInstance";L.instance=this,this.isLocalStrorageReady=this.cleanStorageData()}invalidateAll(){this.publishers.forEach(t=>{t._invalidate_on_page_show_&&t.invalidate()})}async cleanStorageData(){return new Promise(t=>{(async()=>{try{let s=localStorage.getItem(Fs),e=null;if(s&&(e=await this.decompress(s,"gzip")),e)try{this.localStorageData=JSON.parse(e)}catch{this.localStorageData={}}else s=await this.compress("{}","gzip"),localStorage.setItem(Fs,s),this.localStorageData={};const o=1e3*60*60*12;for(const n in this.localStorageData){const l=this.localStorageData[n],c=new Date().getTime()-(l.expirationDelayMs||o);l.lastModifiationMS<c&&delete this.localStorageData[n]}t(!0)}catch{window.requestAnimationFrame(()=>{t(!1)}),console.warn("no publisher cache in this browser")}})()})}static getInstance(t){if(t){const i=L.instances.get(t);return i||(console.warn("No PublisherManager instance registered with id:",t,"creating new one"),new L)}return L.instance==null?new L:L.instance}static registerInstance(t,i){L.instances.has(t)&&console.warn("PublisherManager instance already registered with id: ",t),L.instances.set(t,i)}static get(t,i){return L.getInstance().get(t,i)}static collectModifiedPublisher(){L.modifiedCollectore.unshift(new Set)}static getModifiedPublishers(){return L.modifiedCollectore.shift()}static delete(t){return t?L.getInstance().delete(t):!1}async setLocalData(t,i){await this.isLocalStrorageReady,t.set(this.localStorageData[i+"¤lang_"+H.getLanguage()]?.data||t.get())}get(t,i){const s=i?.localStorageMode==="enabled",e=i?.invalidateOnPageShow===!0;if(!this.publishers.has(t)){const n={},l=new je(n);this.set(t,l)}const o=this.publishers.get(t);return s&&this.initialisedData.indexOf(t)===-1&&(i?.expirationDelayMs&&(o._expiration_delay_=i.expirationDelayMs),o._is_savable_=!0,this.initialisedData.push(t),this.setLocalData(o,t)),e&&(o._invalidate_on_page_show_=e),this.publishers.get(t)}set(t,i){this.publishers.set(t,i)}delete(t){return this.publishers.has(t)?(this.publishers.delete(t),!0):!1}async saveToLocalStorage(t=0){if(!(t!==L.saveId&&t%10!=0))try{if(!L.changed||L.saving)return;L.saving=!0,L.changed=!1;const i=Array.from(this.publishers.keys());let s=!1;for(const e of i){const o=this.publishers.get(e);if(!o?._is_savable_)continue;const n=o?.get();n&&(this.localStorageData[e+"¤lang_"+H.getLanguage()]={lastModifiationMS:new Date().getTime(),expirationDelayMs:o._expiration_delay_,data:n},s=!0)}if(s){const e=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem(Fs,e)}if(L.saving=!1,L.changed){L.saveId++;const e=L.saveId;setTimeout(()=>this.saveToLocalStorage(e),1e3)}}catch{L.saving=!1}}async compress(t,i){const s=new TextEncoder().encode(t),e=window,o=new e.CompressionStream(i),n=o.writable.getWriter();n.write(s),n.close();const l=await new Response(o.readable).arrayBuffer(),c=new Uint8Array(l);let h="";for(let u=0;u<c.length;u++)h+=String.fromCharCode(c[u]);return btoa(h)}async decompress(t,i){const s=atob(t),o=Uint8Array.from(s,u=>u.charCodeAt(0)).buffer,n=window,l=new n.DecompressionStream(i),c=l.writable.getWriter();c.write(o),c.close();const h=await new Response(l.readable).arrayBuffer();return new TextDecoder().decode(h)}},L.buildDate="Mon Oct 13 2025 14:17:18 GMT+0200 (Central European Summer Time)",L.changed=!1,L.saving=!1,L.saveId=0,L.instance=null,L.instances=new Map,L.modifiedCollectore=[],L);if(typeof window<"u"){const r=window;r[cs+"PublisherManager"]=r[cs+"PublisherManager"]||T}const Ur=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_","_expiration_delay_","_lockInternalMutationPublishing_","_instanceCounter_","_assignmentId_","_invalidate_on_page_show_"]);class je extends zs{constructor(t,i=null,s){super(t,i,s);const e=new Proxy(this,{get:function(o,n){if(Ur.has(n))return o[n];if(n==Symbol.toPrimitive)return()=>e.get();if(!o._proxies_.has(n)){const l=o._value_[n],c=new je(Ie(l)?l:{__value:l},o,n);c._proxies_.set("_parent_",e),o._proxies_.set(n,c)}return o._proxies_.get(n)},set:function(o,n,l){if(n=="_value_")return o._value_=l,!0;if(n=="_cachedGet_")return o._cachedGet_=l,!0;if(n=="_assignmentId_")return o._assignmentId_=l,!0;if(n=="_is_savable_")return o._is_savable_=l,!0;if(n=="_expiration_delay_")return o._expiration_delay_=l,!0;if(n=="_invalidate_on_page_show_")return o._invalidate_on_page_show_=l,!0;if(n=="_instanceCounter_")return o._instanceCounter_=l,!0;if(!o._proxies_.has(n)){const h=new je({},o,n);h._proxies_.set("_parent_",e),o._proxies_.set(n,h)}return o._value_[n]!==l&&(o._value_[n]=l,o._publishDynamicFilling_(n,l),o._proxies_.get(n)?.set(Ie(l)?l:{__value:l})),!0},deleteProperty:function(o,n){return o._publishDynamicFilling_(n,null),o._proxies_.get(n)?.set(null),delete o._value_[n]},has:function(o,n){return n in o._value_&&n!="_lockInternalMutationPublishing_"},defineProperty:function(o,n,l){return l&&"value"in l&&(o._value_[n]=l.value),!0},getOwnPropertyDescriptor:function(o,n){return{enumerable:!0,configurable:!0}},ownKeys:function(o){return o._value_.__value?Object.keys(o._value_.__value):Object.keys(o._value_)}});return e}getProperty(t,i){return t[i]}}class Vr extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=t=>{this.innerHTML=t.toString()}}connectedCallback(){this.publisherId=this.getAttribute("publisher")||"",this.publisher=zs.instances.get(parseInt(this.publisherId)),this.publisher?.onAssign(this.onAssign)}disconnectedCallback(){this.publisher?.offAssign(this.onAssign)}}try{customElements.define(_e+"-publisher-proxy",Vr)}catch{}window.addEventListener("pageshow",r=>{r.persisted&&T.getInstance().invalidateAll()});let ds=(E=class{static disable(){this.enabled&&(this.enabled=!1,Array.from(E.observedElements.keys()).forEach(t=>E.unObserve(t)))}static observe(t){if(!t||!E.enabled||E.observedElements.has(t))return;const i=new MutationObserver(E.onMutation),s={};s.childList=!0,s.subtree=!0,s.attributes=!0,s.attributeFilter=["data-bind"],i.observe(t,s),t.querySelectorAll("[data-bind]").forEach(e=>E.addPublisherListeners(e)),E.observedElements.set(t,i)}static unObserve(t){if(!t)return;const i=this.observedElements.get(t);i&&(i.disconnect(),t.querySelectorAll("[data-bind]").forEach(s=>E.removePublisherListeners(s)))}static onAdded(t){t.hasAttribute&&t.hasAttribute("data-bind")&&E.addPublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(i=>E.addPublisherListeners(i)):t.childNodes.forEach(i=>E.onAdded(i))}static onRemoved(t){t.hasAttribute&&t.hasAttribute("data-bind")&&E.removePublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(i=>E.removePublisherListeners(i)):t.childNodes.forEach(i=>E.onRemoved(i))}static onMutation(t){for(const i of t)switch(i.type){case"attributes":E.addPublisherListeners(i.target);break;case"childList":i.addedNodes.forEach(s=>{E.onAdded(s)}),i.removedNodes.forEach(s=>{E.onRemoved(s)});break}}static removePublisherListeners(t){const i=E.publisherListeners.get(t);i&&(E.publisherListeners.delete(t),i.forEach(s=>{s.publisher?.offAssign(s.onAssign)}))}static getVariablesDescriptor(t){let i=t.match(/(\$(?:\w+\\?\.?)+)/g);return i?i=i.map(s=>s.replace("$","")):i=[t],i=i.filter(s=>s.length>0),{expression:t.replace("\\",""),variables:i.map(s=>s.split(/\b\.\b/).map(e=>e.replace("\\","")))}}static getDataBindItems(t){return"attributes"in t?Array.from(t.attributes).filter(i=>i.name.indexOf("::")==0).map(i=>({propertyToUpdate:i.name.substring(2).replace(/-((html)|\w)/g,e=>e.substring(1).toUpperCase()),bindedVariablesDescriptor:E.getVariablesDescriptor(i.value)})):[]}static getSubPublisher(t,i){if(!i)return t;for(const s of i)if(s!="_self_"){if(!t)return null;t=t[s]}return t}static addPublisherListeners(t){E.removePublisherListeners(t);const i=H.getAncestorAttributeValue(t.parentNode||t.host||t,"dataProvider");if(!i)return;const s=T.getInstance().get(i),e=E.getDataBindItems(t),o=[];e.forEach(n=>{const l=n.bindedVariablesDescriptor,c=n.propertyToUpdate;for(const h of l.variables){const u=h;let d=s;d=E.getSubPublisher(s,u);const g=t,v={publisher:d,onAssign:()=>{const b=l.variables.map(N=>E.getSubPublisher(s,N)?.get());let x=l.expression,C=!1;if(b.length==1&&l.variables[0].join(".")==x.substring(1)){let N=b[0];N===null&&(N=""),g[c]=N;return}for(let N=0;N<b.length;N++){let p=b[N];const f=l.variables[N];p===null&&(C=!0,p=void 0),x=x.replace("$"+f.join("."),p)}if(x.indexOf("|")!=-1){const N=x.indexOf("|");if(N==0)x=ls.js(x.substring(1));else{const p=x.substring(0,N),f=x.substring(N+1),w=ls[p];x=C?"":w?w(f):x}}else x=C?"":x;g[c]=x}};d?.onAssign(v.onAssign),o.push(v)}}),E.publisherListeners.set(t,o)}},E.observedElements=new Map,E.enabled=!0,E.publisherListeners=new Map,E);ds.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=ds);let tt=class Kt{static shallowEqual(t,i,s=!0){const e=Object.keys(t),o=Object.keys(i);if(e.length!==o.length&&s)return!1;for(const n of e){const l=t[n],c=i[n];if(s?l!==c:l!=c)return!1}return!0}static deepEqual(t,i,s=!0){const e=Object.keys(t),o=Object.keys(i);if(e.length!==o.length&&s)return!1;for(const n of e){const l=t[n],c=i[n],h=Kt.isObject(l)&&Kt.isObject(c),u=s?l!==c:l!=c;if(h&&!Kt.deepEqual(l,c)||!h&&u)return!1}return!0}static isObject(t){return t!=null&&typeof t=="object"}static isUndefindOrNull(t){return t==null}static isEmpty(t){return Kt.isUndefindOrNull(t)?!0:Object.keys(t).length===0}static traverse(t,i,s=!1){for(const e of i){const o=t[e];if(o===void 0)return;s&&Kt.isObject(o)?t=Object.assign(Array.isArray(o)?[]:{},t,o):t=t[e]}return t}static traverseDotNotation(t,i,s=!1){return Kt.traverse(t,i.split("."),s)}static getURLSearchArray(t,i=""){let s=[];for(let e in t){const o=t[e];i&&(e=i+"["+e+"]"),Kt.isObject(o)?s=[...s,...this.getURLSearchArray(o,e)]:s.push(`${e}=${o}`)}return s}static getURLSearchString(t){return Kt.getURLSearchArray(t,"").join("&")}};const pt=tt.traverseDotNotation;/**
2
2
  * @license
3
3
  * Copyright 2017 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
@@ -69,7 +69,7 @@
69
69
  * @license
70
70
  * Copyright 2018 Google LLC
71
71
  * SPDX-License-Identifier: BSD-3-Clause
72
- */const rr="important",Fo=" !"+rr,gt=Xt(class extends Se{constructor(r){if(super(r),r.type!==he.ATTRIBUTE||r.name!=="style"||r.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce(((t,i)=>{const s=r[i];return s==null?t:t+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`}),"")}update(r,[t]){const{style:i}=r.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const s of this.ft)t[s]==null&&(this.ft.delete(s),s.includes("-")?i.removeProperty(s):i[s]=null);for(const s in t){const e=t[s];if(e!=null){this.ft.add(s);const o=typeof e=="string"&&e.endsWith(Fo);s.includes("-")||o?i.setProperty(s,o?e.slice(0,-11):e,o?rr:""):i[s]=e}}return yt}});var zo=Object.defineProperty,Ro=Object.getOwnPropertyDescriptor,Dt=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ro(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&zo(t,i,e),e};const ws=new Map,Oe=r=>{class t extends r{constructor(...s){super(),this.touched=!1,this.error=!1,this.autofocus=!1,this.required=!1,this.forceAutoFill=!1,this.disabled=!1,this.formDataProvider="",this._name="",this._value="",this.onValueAssign=e=>{this.setValueFromPublisher(e)},this.onFormValueAssign=async e=>{this.setFormValueFromPublisher(e)},this.onFormDataInValidate=()=>{const e=this.getFormPublisher();e&&e.isFormValid.get()&&this.validateFormElement()}}get name(){return this._name}set name(s){this.hasAttribute("name")&&!this.forceAutoFill&&(s=this.getAttribute("name")),this._name=s,this.requestUpdate()}validateFormElement(){}unsetOnDisconnect(){return this.hasAttribute("unsetOnDisconnect")}updateDataValue(){this.getAttribute("name")&&this.getFormPublisher()&&(this.setFormPublisherValue(this.getValueForFormPublisher()),this.setFormValueFromPublisher(this.getFormPublisherValue()))}getFormPublisher(){return this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider")),this.formDataProvider?T.get(this.formDataProvider):null}setFormPublisherValue(s){const e=this.getFormPublisher();e&&pt(e,this.name).set(s)}getFormPublisherValue(){const s=this.getFormPublisher();return s?pt(s,this.name).get():null}getValueForFormPublisher(){return this.value}setValueFromPublisher(s){this.value=s}setFormValueFromPublisher(s){this.value=s}get value(){return this._value}set value(s){s==null&&(s=""),tt.isObject(s)&&Object.prototype.hasOwnProperty.call(s,"__value")&&s._value==null&&(s=""),this._value!=s&&(this._value=s,this.updateDataValue(),this.requestUpdate())}initPublisher(){let s=this.getFormPublisher();const e=this.hasAncestorAttribute("initFromPublisher")&&this._name&&this.getFormPublisherValue()?this.getFormPublisherValue():this.getAttribute("value");this._name&&this.publisher&&pt(this.publisher,this._name).offAssign(this.onValueAssign),this._name&&s&&pt(s,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&&pt(this.publisher,this._name).onAssign(this.onValueAssign),s=this.getFormPublisher(),this._name&&s&&(pt(s,this._name).onAssign(this.onFormValueAssign),s.onFormInvalidate(this.onFormDataInValidate)),this.updateDataValue(),e&&(this.value=e)}handleBlur(){this.touched=!0}handleChange(s){this.value=s.target.value;const e=new Event("change");this.dispatchEvent(e)}addKeyboardNavigation(){const s=this.getAncestorAttributeValue("data-keyboard-nav");if(!s)return;const e=s.split(" "),o=e[0];if(!o)return;for(const l of e){ws.has(l)||ws.set(l,[]);const c=ws.get(l);c?.indexOf(this)==-1&&c.push(this)}const n=ws.get(o);this.addEventListener("keydown",l=>{const c=l;if(!["ArrowDown","ArrowUp"].includes(c.key))return;const h="input:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled])",u=n?.filter(v=>{const b=v.shadowRoot?.querySelector(h);if(!b)return!1;const x=window.getComputedStyle(b);return x.display!=="none"&&x.display!==""&&x.pointerEvents!="none"&&x.visibility!=="hidden"&&b.getBoundingClientRect().width>0});let d=null;if(c.key=="ArrowDown"&&u){const v=u.indexOf(this);v==u.length-1?d=u[0]:d=u[v+1]}else if(c.key=="ArrowUp"&&u){const v=u.indexOf(this);v==0?d=u[u.length-1]:d=u[v-1]}const g=d?.shadowRoot?.querySelector(h);g&&g.focus&&(g.focus(),l.preventDefault(),l.stopPropagation())})}focus(){this.shadowRoot?.querySelector("[data-form-element], button")?.focus()}connectedCallback(){this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"),super.connectedCallback(),this.addKeyboardNavigation()}unset(){this.value=null}disconnectedCallback(){this.unsetOnDisconnect()&&this.unset(),super.disconnectedCallback(),this._name&&this.publisher&&pt(this.publisher,this._name).offAssign(this.onValueAssign);const s=this.getFormPublisher();this._name&&s&&(pt(s,this._name).offAssign(this.onFormValueAssign),s.offFormInvalidate(this.onFormDataInValidate))}}return Dt([a({type:Boolean,reflect:!0})],t.prototype,"touched",2),Dt([a({type:Boolean})],t.prototype,"error",2),Dt([a({type:Boolean})],t.prototype,"autofocus",2),Dt([a({type:Boolean})],t.prototype,"required",2),Dt([a({type:Boolean})],t.prototype,"forceAutoFill",2),Dt([a({type:Boolean,reflect:!0})],t.prototype,"disabled",2),Dt([a({type:String,attribute:"data-aria-label"})],t.prototype,"ariaLabel",2),Dt([a({type:String,attribute:"data-aria-labelledby"})],t.prototype,"ariaLabelledby",2),Dt([a()],t.prototype,"name",1),Dt([a()],t.prototype,"value",1),t};let Uo=class we{static areEqual(t,i){return t.length===i.length?t.every((s,e)=>s===i[e]):!1}static from2d(t){return{to1D:()=>{let i=[];return t.forEach(s=>i=i.concat(s)),this.from(i)}}}static from(t){return{get:()=>t||[],everyItem:()=>({has:()=>({same:()=>({value:()=>({forKey:i=>{if(t.length<1)return!0;const s=(t[0]||{})[i];return t.every(e=>(e||{})[i]==s)}})})}),value:()=>({forKey:i=>we.from(t.map(s=>s[i]))}),copy:()=>({fromKey:i=>({toKey:s=>{t.forEach(e=>{e[s]=Array.isArray(e[i])?[...e[i]]:typeof e[i]=="object"&&e[i]!=null?{...e[i]}:e[i]})}})})}),map:i=>we.from(t.map(i)),filter:i=>we.from(t.filter(i)),find:i=>t.find(i),some:i=>t.some(i),every:i=>t.every(i),group:()=>({byKey:i=>{const s=[],e=new Map;for(const o of t){const n=o[i];if(!e.has(n)){const l=s.length;e.set(n,l);const c={items:[]};c[i]=n,s.push(c)}s[e.get(n)].items.push(o)}return we.from(s)}}),without:()=>({duplicates:()=>({forKey:i=>{const s=[...new Set(t.map(e=>e[i]))];return we.from(s.map(e=>t.find(o=>o[i]==e)))}}),itemsIn:i=>({havingSameValue:()=>({forKey:s=>{const e=(o,n)=>l=>o[n]!=l[n];return we.from(t.filter(o=>i.every(e(o,s))))}})})})}}};function Vo(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var He={exports:{}},Bo=He.exports,or;function qo(){return or||(or=1,(function(r,t){var i=[].slice;(function(s,e){return t!==null?r.exports=e():s.UrlPattern=e()})(Bo,function(){var s,e,o,n,l,c,h,u,d,g,v,b,x,C,N;return d=function(p){return p.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},h=function(p,f){var w,A,k;for(k=[],w=-1,A=p.length;++w<A;)k=k.concat(f(p[w]));return k},C=function(p,f){var w,A,k;for(k="",w=-1,A=p.length;++w<A;)k+=f(p[w]);return k},x=function(p){return new RegExp(p.toString()+"|").exec("").length-1},v=function(p,f){var w,A,k,q,Q;for(q={},w=-1,k=p.length;++w<k;)A=p[w],Q=f[w],Q!=null&&(q[A]!=null?(Array.isArray(q[A])||(q[A]=[q[A]]),q[A].push(Q)):q[A]=Q);return q},s={},s.Result=function(p,f){this.value=p,this.rest=f},s.Tagged=function(p,f){this.tag=p,this.value=f},s.tag=function(p,f){return function(w){var A,k;if(A=f(w),A!=null)return k=new s.Tagged(p,A.value),new s.Result(k,A.rest)}},s.regex=function(p){return function(f){var w,A;if(w=p.exec(f),w!=null)return A=w[0],new s.Result(A,f.slice(A.length))}},s.sequence=function(){var p;return p=1<=arguments.length?i.call(arguments,0):[],function(f){var w,A,k,q,Q,at;for(w=-1,A=p.length,at=[],q=f;++w<A;){if(k=p[w],Q=k(q),Q==null)return;at.push(Q.value),q=Q.rest}return new s.Result(at,q)}},s.pick=function(){var p,f;return p=arguments[0],f=2<=arguments.length?i.call(arguments,1):[],function(w){var A,k;if(k=s.sequence.apply(s,f)(w),k!=null)return A=k.value,k.value=A[p],k}},s.string=function(p){var f;return f=p.length,function(w){if(w.slice(0,f)===p)return new s.Result(p,w.slice(f))}},s.lazy=function(p){var f;return f=null,function(w){return f==null&&(f=p()),f(w)}},s.baseMany=function(p,f,w,A,k){var q,Q,at,as;for(at=k,as=w?"":[];!(f!=null&&(q=f(at),q!=null)||(Q=p(at),Q==null));)w?as+=Q.value:as.push(Q.value),at=Q.rest;if(!(A&&as.length===0))return new s.Result(as,at)},s.many1=function(p){return function(f){return s.baseMany(p,null,!1,!0,f)}},s.concatMany1Till=function(p,f){return function(w){return s.baseMany(p,f,!0,!0,w)}},s.firstChoice=function(){var p;return p=1<=arguments.length?i.call(arguments,0):[],function(f){var w,A,k,q;for(w=-1,A=p.length;++w<A;)if(k=p[w],q=k(f),q!=null)return q}},b=function(p){var f;return f={},f.wildcard=s.tag("wildcard",s.string(p.wildcardChar)),f.optional=s.tag("optional",s.pick(1,s.string(p.optionalSegmentStartChar),s.lazy(function(){return f.pattern}),s.string(p.optionalSegmentEndChar))),f.name=s.regex(new RegExp("^["+p.segmentNameCharset+"]+")),f.named=s.tag("named",s.pick(1,s.string(p.segmentNameStartChar),s.lazy(function(){return f.name}))),f.escapedChar=s.pick(1,s.string(p.escapeChar),s.regex(/^./)),f.static=s.tag("static",s.concatMany1Till(s.firstChoice(s.lazy(function(){return f.escapedChar}),s.regex(/^./)),s.firstChoice(s.string(p.segmentNameStartChar),s.string(p.optionalSegmentStartChar),s.string(p.optionalSegmentEndChar),f.wildcard))),f.token=s.lazy(function(){return s.firstChoice(f.wildcard,f.optional,f.named,f.static)}),f.pattern=s.many1(s.lazy(function(){return f.token})),f},u={escapeChar:"\\",segmentNameStartChar:":",segmentValueCharset:"a-zA-Z0-9-_~ %",segmentNameCharset:"a-zA-Z0-9",optionalSegmentStartChar:"(",optionalSegmentEndChar:")",wildcardChar:"*"},c=function(p,f){if(Array.isArray(p))return C(p,function(w){return c(w,f)});switch(p.tag){case"wildcard":return"(.*?)";case"named":return"(["+f+"]+)";case"static":return d(p.value);case"optional":return"(?:"+c(p.value,f)+")?"}},l=function(p,f){return f==null&&(f=u.segmentValueCharset),"^"+c(p,f)+"$"},n=function(p){if(Array.isArray(p))return h(p,n);switch(p.tag){case"wildcard":return["_"];case"named":return[p.value];case"static":return[];case"optional":return n(p.value)}},g=function(p,f,w,A){var k,q,Q,at;if(A==null&&(A=!1),at=p[f],at==null){if(A)throw new Error("no values provided for key `"+f+"`");return}if(k=w[f]||0,q=Array.isArray(at)?at.length-1:0,k>q){if(A)throw new Error("too few values provided for key `"+f+"`");return}return Q=Array.isArray(at)?at[k]:at,A&&(w[f]=k+1),Q},o=function(p,f,w){var A,k;if(Array.isArray(p)){for(A=-1,k=p.length;++A<k;)if(o(p[A],f,w))return!0;return!1}switch(p.tag){case"wildcard":return g(f,"_",w,!1)!=null;case"named":return g(f,p.value,w,!1)!=null;case"static":return!1;case"optional":return o(p.value,f,w)}},N=function(p,f,w){if(Array.isArray(p))return C(p,function(A){return N(A,f,w)});switch(p.tag){case"wildcard":return g(f,"_",w,!0);case"named":return g(f,p.value,w,!0);case"static":return p.value;case"optional":return o(p.value,f,w)?N(p.value,f,w):""}},e=function(p,f){var w,A,k,q,Q;if(p instanceof e){this.isRegex=p.isRegex,this.regex=p.regex,this.ast=p.ast,this.names=p.names;return}if(this.isRegex=p instanceof RegExp,!(typeof p=="string"||this.isRegex))throw new TypeError("argument must be a regex or a string");if(this.isRegex){if(this.regex=p,f!=null){if(!Array.isArray(f))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(w=x(this.regex),f.length!==w)throw new Error("regex contains "+w+" groups but array of group names contains "+f.length);this.names=f}return}if(p==="")throw new Error("argument must not be the empty string");if(Q=p.replace(/\s+/g,""),Q!==p)throw new Error("argument must not contain whitespace");if(A={escapeChar:f?.escapeChar||u.escapeChar,segmentNameStartChar:f?.segmentNameStartChar||u.segmentNameStartChar,segmentNameCharset:f?.segmentNameCharset||u.segmentNameCharset,segmentValueCharset:f?.segmentValueCharset||u.segmentValueCharset,optionalSegmentStartChar:f?.optionalSegmentStartChar||u.optionalSegmentStartChar,optionalSegmentEndChar:f?.optionalSegmentEndChar||u.optionalSegmentEndChar,wildcardChar:f?.wildcardChar||u.wildcardChar},q=b(A),k=q.pattern(p),k==null)throw new Error("couldn't parse pattern");if(k.rest!=="")throw new Error("could only partially parse pattern");this.ast=k.value,this.regex=new RegExp(l(this.ast,A.segmentValueCharset)),this.names=n(this.ast)},e.prototype.match=function(p){var f,w;return w=this.regex.exec(p),w==null?null:(f=w.slice(1),this.names?v(this.names,f):f)},e.prototype.stringify=function(p){if(p==null&&(p={}),this.isRegex)throw new Error("can't stringify patterns generated from a regex");if(p!==Object(p))throw new Error("argument must be an object or undefined");return N(this.ast,p,{})},e.escapeForRegex=d,e.concatMap=h,e.stringConcatMap=C,e.regexGroupCount=x,e.keysAndValuesToObject=v,e.P=s,e.newParser=b,e.defaultOptions=u,e.astNodeToRegexString=l,e.astNodeToNames=n,e.getParam=g,e.astNodeContainsSegmentsForProvidedParams=o,e.stringify=N,e})})(He,He.exports)),He.exports}var Ho=qo();const Vt=Vo(Ho),Wo=Rr,Ko=Uo,Yo=ds,Xo=ls,Zt=H,Zo=et,We=tt,Go=je,st=T,Qo=Ae,Jo=Vt;window["concorde-utils"]=window["concorde-utils"]||{},window["concorde-utils"]={Utils:Wo,Arrays:Ko,DataBindObserver:Yo,Format:Xo,HTML:Zt,LocationHandler:Zo,Objects:We,PublisherProxy:Go,PublisherManager:st,api:Qo,URLPattern:Jo};var tn=Object.defineProperty,en=Object.getOwnPropertyDescriptor,Ke=(r,t,i,s)=>{for(var e=s>1?void 0:s?en(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&tn(t,i,e),e};const ti=r=>{class t extends r{constructor(){super(...arguments),this._value="",this.forceAutoFill=!1,this.unique=null,this.radio=null,this._checked=null,this.updateAllChecked=()=>{const s=this.getAttribute("name"),e=this.getCheckAllPublisher(),o=this.getFormPublisher();if(e?.hasCheckAll.get()&&!this.checksAll()&&e&&o&&s){if(this.getFormPublisherValue()?.length)(this.checked===null||e.checkMode.get()=="noneChecked"||e.checkMode.get()==null)&&(e.checkMode="someUnchecked");else{e.checkMode="noneChecked";return}const n=this.getFormPublisherValue(),l=e.values.get();if(l&&l.length){let c=l.length;for(const h of l)n.indexOf(h)==-1&&(c-=1);c==l.length&&(e.checkMode="allChecked"),c==0&&(e.checkMode="noneChecked")}l.indexOf(this.value)==-1&&this.unsetOnDisconnect()&&(this.checked=null)}},this.onChecksAllRequest=s=>{this.removeAttribute("allChecked"),this.removeAttribute("indeterminate"),s=="allChecked"&&(this.checked=!0,this.setAttribute("allChecked","")),s=="noneChecked"&&(this.checked=null),s=="someUnchecked"&&(this.checksAll()&&(this.checked="indeterminate"),this.setAttribute("indeterminate",""))}}get value(){return this._value}set value(s){if(this.value==s||(this.hasAttribute("value")&&!this.forceAutoFill&&(s=this.getAttribute("value")),this._value==s)||s==null||(this._value=s,!this.value))return;if(this.getFormPublisher()&&this.name){let o=this.getFormPublisherValue();(this.radio||this.unique)&&(this.checked=o==s?!0:null),Array.isArray(o)||(o=[]),o.indexOf(s)!=-1&&(this.checked=!0)}this.checked==!0&&this.updateDataValue(),this.requestUpdate()}get checked(){return this._checked}set checked(s){if(this.setCheckedValue(s),this.checksAll()){const e=this.getCheckAllPublisher();e&&(this.checked===!0?e.checkMode="allChecked":this.checked===null&&(e.checkMode="noneChecked",this.getFormPublisher()&&this.setFormPublisherValue([])))}this.requestUpdate()}validateFormElement(){const s=this.shadowRoot?.querySelector("input");if(!s||s.checkValidity())return;const e=this.getFormPublisher();if(e){const o=this.getFormPublisherValue();if((this.unique||this.radio)&&o!==null&&o!==void 0&&o.toString().length>0)return;e.isFormValid=!1,s.reportValidity()}}checksAll(){return this.hasAttribute("checksAll")}setCheckedValue(s){this._checked!=s&&(this._checked=s,this.updateDataValue(),this.requestUpdate(),setTimeout(()=>this.updateAllChecked(),1))}handleChange(){const s=this.checked===!0?this.radio?!0:null:!0;this.checked=s;const e=new Event("change");this.dispatchEvent(e)}getValueForFormPublisher(){let s=this.getFormPublisherValue();if(this.radio)return this.checked===!0&&this.value!=null?this.value:s;if(this.unique)return this.checked===!0&&this.value!=null?this.value:null;Array.isArray(s)||(s=[]);const e=s.slice(0),o=e.indexOf(this.value);return this.checked===!0&&o===-1&&!this.checksAll()&&e.push(this.value),this.checked===null&&o!==-1&&e.splice(o,1),e}setFormValueFromPublisher(s){if(this.unique||this.radio){this.checked=this.value==s?!0:null;return}Array.isArray(s)||(s=[]),!this.checksAll()&&(this.checked=s.indexOf(this.value)!==-1?!0:null)}getCheckAllPublisher(){this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"));const s=this.formDataProvider,e=this.getAttribute("name");return!s||!e?null:st.get(s+"/"+e+"/_available_values_")}unset(){this.checked=null}disconnectedCallback(){super.disconnectedCallback();const s=this.getCheckAllPublisher();if(s&&(s.checkMode.offAssign(this.onChecksAllRequest),!this.checksAll())){const e=s.values.get().slice(0),o=e.indexOf(this.value);o!=-1&&(e.splice(o,1),s.values=e)}setTimeout(()=>this.updateAllChecked(),1)}connectedCallback(){if(super.connectedCallback(),this.getFormPublisher()&&this.name){const o=this.getFormPublisherValue();o&&Array.isArray(o)&&o.indexOf(this.value)!==-1&&(this.checked=!0)}const e=this.getCheckAllPublisher();e&&(e.checkMode.onAssign(this.onChecksAllRequest),this.checksAll()&&(e.hasCheckAll=!0),e.values.get()||(e.values=[]),this.checksAll()||(e.values=[...e.values.get(),this.value])),this.hasAttribute("checked")&&(!this.publisher||this.publisher.get().checked!==!1)&&setTimeout(()=>this.checked=!0,1)}}return Ke([a()],t.prototype,"value",1),Ke([a()],t.prototype,"forceAutoFill",2),Ke([a({type:Boolean})],t.prototype,"unique",2),Ke([a({type:Boolean})],t.prototype,"radio",2),Ke([a()],t.prototype,"checked",1),t};/**
72
+ */const rr="important",Fo=" !"+rr,ut=Xt(class extends Se{constructor(r){if(super(r),r.type!==he.ATTRIBUTE||r.name!=="style"||r.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce(((t,i)=>{const s=r[i];return s==null?t:t+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`}),"")}update(r,[t]){const{style:i}=r.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const s of this.ft)t[s]==null&&(this.ft.delete(s),s.includes("-")?i.removeProperty(s):i[s]=null);for(const s in t){const e=t[s];if(e!=null){this.ft.add(s);const o=typeof e=="string"&&e.endsWith(Fo);s.includes("-")||o?i.setProperty(s,o?e.slice(0,-11):e,o?rr:""):i[s]=e}}return yt}});var zo=Object.defineProperty,Ro=Object.getOwnPropertyDescriptor,Dt=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ro(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&zo(t,i,e),e};const ws=new Map,Oe=r=>{class t extends r{constructor(...s){super(),this.touched=!1,this.error=!1,this.autofocus=!1,this.required=!1,this.forceAutoFill=!1,this.disabled=!1,this.formDataProvider="",this._name="",this._value="",this.onValueAssign=e=>{this.setValueFromPublisher(e)},this.onFormValueAssign=async e=>{this.setFormValueFromPublisher(e)},this.onFormDataInValidate=()=>{const e=this.getFormPublisher();e&&e.isFormValid.get()&&this.validateFormElement()}}get name(){return this._name}set name(s){this.hasAttribute("name")&&!this.forceAutoFill&&(s=this.getAttribute("name")),this._name=s,this.requestUpdate()}validateFormElement(){}unsetOnDisconnect(){return this.hasAttribute("unsetOnDisconnect")}updateDataValue(){this.getAttribute("name")&&this.getFormPublisher()&&(this.setFormPublisherValue(this.getValueForFormPublisher()),this.setFormValueFromPublisher(this.getFormPublisherValue()))}getFormPublisher(){return this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider")),this.formDataProvider?T.get(this.formDataProvider):null}setFormPublisherValue(s){const e=this.getFormPublisher();e&&pt(e,this.name).set(s)}getFormPublisherValue(){const s=this.getFormPublisher();return s?pt(s,this.name).get():null}getValueForFormPublisher(){return this.value}setValueFromPublisher(s){this.value=s}setFormValueFromPublisher(s){this.value=s}get value(){return this._value}set value(s){s==null&&(s=""),tt.isObject(s)&&Object.prototype.hasOwnProperty.call(s,"__value")&&s._value==null&&(s=""),this._value!=s&&(this._value=s,this.updateDataValue(),this.requestUpdate())}initPublisher(){let s=this.getFormPublisher();const e=this.hasAncestorAttribute("initFromPublisher")&&this._name&&this.getFormPublisherValue()?this.getFormPublisherValue():this.getAttribute("value");this._name&&this.publisher&&pt(this.publisher,this._name).offAssign(this.onValueAssign),this._name&&s&&pt(s,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&&pt(this.publisher,this._name).onAssign(this.onValueAssign),s=this.getFormPublisher(),this._name&&s&&(pt(s,this._name).onAssign(this.onFormValueAssign),s.onFormInvalidate(this.onFormDataInValidate)),this.updateDataValue(),e&&(this.value=e)}handleBlur(){this.touched=!0}handleChange(s){this.value=s.target.value;const e=new Event("change");this.dispatchEvent(e)}addKeyboardNavigation(){const s=this.getAncestorAttributeValue("data-keyboard-nav");if(!s)return;const e=s.split(" "),o=e[0];if(!o)return;for(const l of e){ws.has(l)||ws.set(l,[]);const c=ws.get(l);c?.indexOf(this)==-1&&c.push(this)}const n=ws.get(o);this.addEventListener("keydown",l=>{const c=l;if(!["ArrowDown","ArrowUp"].includes(c.key))return;const h="input:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled])",u=n?.filter(v=>{const b=v.shadowRoot?.querySelector(h);if(!b)return!1;const x=window.getComputedStyle(b);return x.display!=="none"&&x.display!==""&&x.pointerEvents!="none"&&x.visibility!=="hidden"&&b.getBoundingClientRect().width>0});let d=null;if(c.key=="ArrowDown"&&u){const v=u.indexOf(this);v==u.length-1?d=u[0]:d=u[v+1]}else if(c.key=="ArrowUp"&&u){const v=u.indexOf(this);v==0?d=u[u.length-1]:d=u[v-1]}const g=d?.shadowRoot?.querySelector(h);g&&g.focus&&(g.focus(),l.preventDefault(),l.stopPropagation())})}focus(){this.shadowRoot?.querySelector("[data-form-element], button")?.focus()}connectedCallback(){this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"),super.connectedCallback(),this.addKeyboardNavigation()}unset(){this.value=null}disconnectedCallback(){this.unsetOnDisconnect()&&this.unset(),super.disconnectedCallback(),this._name&&this.publisher&&pt(this.publisher,this._name).offAssign(this.onValueAssign);const s=this.getFormPublisher();this._name&&s&&(pt(s,this._name).offAssign(this.onFormValueAssign),s.offFormInvalidate(this.onFormDataInValidate))}}return Dt([a({type:Boolean,reflect:!0})],t.prototype,"touched",2),Dt([a({type:Boolean})],t.prototype,"error",2),Dt([a({type:Boolean})],t.prototype,"autofocus",2),Dt([a({type:Boolean})],t.prototype,"required",2),Dt([a({type:Boolean})],t.prototype,"forceAutoFill",2),Dt([a({type:Boolean,reflect:!0})],t.prototype,"disabled",2),Dt([a({type:String,attribute:"data-aria-label"})],t.prototype,"ariaLabel",2),Dt([a({type:String,attribute:"data-aria-labelledby"})],t.prototype,"ariaLabelledby",2),Dt([a()],t.prototype,"name",1),Dt([a()],t.prototype,"value",1),t};let Uo=class we{static areEqual(t,i){return t.length===i.length?t.every((s,e)=>s===i[e]):!1}static from2d(t){return{to1D:()=>{let i=[];return t.forEach(s=>i=i.concat(s)),this.from(i)}}}static from(t){return{get:()=>t||[],everyItem:()=>({has:()=>({same:()=>({value:()=>({forKey:i=>{if(t.length<1)return!0;const s=(t[0]||{})[i];return t.every(e=>(e||{})[i]==s)}})})}),value:()=>({forKey:i=>we.from(t.map(s=>s[i]))}),copy:()=>({fromKey:i=>({toKey:s=>{t.forEach(e=>{e[s]=Array.isArray(e[i])?[...e[i]]:typeof e[i]=="object"&&e[i]!=null?{...e[i]}:e[i]})}})})}),map:i=>we.from(t.map(i)),filter:i=>we.from(t.filter(i)),find:i=>t.find(i),some:i=>t.some(i),every:i=>t.every(i),group:()=>({byKey:i=>{const s=[],e=new Map;for(const o of t){const n=o[i];if(!e.has(n)){const l=s.length;e.set(n,l);const c={items:[]};c[i]=n,s.push(c)}s[e.get(n)].items.push(o)}return we.from(s)}}),without:()=>({duplicates:()=>({forKey:i=>{const s=[...new Set(t.map(e=>e[i]))];return we.from(s.map(e=>t.find(o=>o[i]==e)))}}),itemsIn:i=>({havingSameValue:()=>({forKey:s=>{const e=(o,n)=>l=>o[n]!=l[n];return we.from(t.filter(o=>i.every(e(o,s))))}})})})}}};function Vo(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var He={exports:{}},Bo=He.exports,or;function qo(){return or||(or=1,(function(r,t){var i=[].slice;(function(s,e){return t!==null?r.exports=e():s.UrlPattern=e()})(Bo,function(){var s,e,o,n,l,c,h,u,d,g,v,b,x,C,N;return d=function(p){return p.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},h=function(p,f){var w,A,k;for(k=[],w=-1,A=p.length;++w<A;)k=k.concat(f(p[w]));return k},C=function(p,f){var w,A,k;for(k="",w=-1,A=p.length;++w<A;)k+=f(p[w]);return k},x=function(p){return new RegExp(p.toString()+"|").exec("").length-1},v=function(p,f){var w,A,k,q,Q;for(q={},w=-1,k=p.length;++w<k;)A=p[w],Q=f[w],Q!=null&&(q[A]!=null?(Array.isArray(q[A])||(q[A]=[q[A]]),q[A].push(Q)):q[A]=Q);return q},s={},s.Result=function(p,f){this.value=p,this.rest=f},s.Tagged=function(p,f){this.tag=p,this.value=f},s.tag=function(p,f){return function(w){var A,k;if(A=f(w),A!=null)return k=new s.Tagged(p,A.value),new s.Result(k,A.rest)}},s.regex=function(p){return function(f){var w,A;if(w=p.exec(f),w!=null)return A=w[0],new s.Result(A,f.slice(A.length))}},s.sequence=function(){var p;return p=1<=arguments.length?i.call(arguments,0):[],function(f){var w,A,k,q,Q,at;for(w=-1,A=p.length,at=[],q=f;++w<A;){if(k=p[w],Q=k(q),Q==null)return;at.push(Q.value),q=Q.rest}return new s.Result(at,q)}},s.pick=function(){var p,f;return p=arguments[0],f=2<=arguments.length?i.call(arguments,1):[],function(w){var A,k;if(k=s.sequence.apply(s,f)(w),k!=null)return A=k.value,k.value=A[p],k}},s.string=function(p){var f;return f=p.length,function(w){if(w.slice(0,f)===p)return new s.Result(p,w.slice(f))}},s.lazy=function(p){var f;return f=null,function(w){return f==null&&(f=p()),f(w)}},s.baseMany=function(p,f,w,A,k){var q,Q,at,as;for(at=k,as=w?"":[];!(f!=null&&(q=f(at),q!=null)||(Q=p(at),Q==null));)w?as+=Q.value:as.push(Q.value),at=Q.rest;if(!(A&&as.length===0))return new s.Result(as,at)},s.many1=function(p){return function(f){return s.baseMany(p,null,!1,!0,f)}},s.concatMany1Till=function(p,f){return function(w){return s.baseMany(p,f,!0,!0,w)}},s.firstChoice=function(){var p;return p=1<=arguments.length?i.call(arguments,0):[],function(f){var w,A,k,q;for(w=-1,A=p.length;++w<A;)if(k=p[w],q=k(f),q!=null)return q}},b=function(p){var f;return f={},f.wildcard=s.tag("wildcard",s.string(p.wildcardChar)),f.optional=s.tag("optional",s.pick(1,s.string(p.optionalSegmentStartChar),s.lazy(function(){return f.pattern}),s.string(p.optionalSegmentEndChar))),f.name=s.regex(new RegExp("^["+p.segmentNameCharset+"]+")),f.named=s.tag("named",s.pick(1,s.string(p.segmentNameStartChar),s.lazy(function(){return f.name}))),f.escapedChar=s.pick(1,s.string(p.escapeChar),s.regex(/^./)),f.static=s.tag("static",s.concatMany1Till(s.firstChoice(s.lazy(function(){return f.escapedChar}),s.regex(/^./)),s.firstChoice(s.string(p.segmentNameStartChar),s.string(p.optionalSegmentStartChar),s.string(p.optionalSegmentEndChar),f.wildcard))),f.token=s.lazy(function(){return s.firstChoice(f.wildcard,f.optional,f.named,f.static)}),f.pattern=s.many1(s.lazy(function(){return f.token})),f},u={escapeChar:"\\",segmentNameStartChar:":",segmentValueCharset:"a-zA-Z0-9-_~ %",segmentNameCharset:"a-zA-Z0-9",optionalSegmentStartChar:"(",optionalSegmentEndChar:")",wildcardChar:"*"},c=function(p,f){if(Array.isArray(p))return C(p,function(w){return c(w,f)});switch(p.tag){case"wildcard":return"(.*?)";case"named":return"(["+f+"]+)";case"static":return d(p.value);case"optional":return"(?:"+c(p.value,f)+")?"}},l=function(p,f){return f==null&&(f=u.segmentValueCharset),"^"+c(p,f)+"$"},n=function(p){if(Array.isArray(p))return h(p,n);switch(p.tag){case"wildcard":return["_"];case"named":return[p.value];case"static":return[];case"optional":return n(p.value)}},g=function(p,f,w,A){var k,q,Q,at;if(A==null&&(A=!1),at=p[f],at==null){if(A)throw new Error("no values provided for key `"+f+"`");return}if(k=w[f]||0,q=Array.isArray(at)?at.length-1:0,k>q){if(A)throw new Error("too few values provided for key `"+f+"`");return}return Q=Array.isArray(at)?at[k]:at,A&&(w[f]=k+1),Q},o=function(p,f,w){var A,k;if(Array.isArray(p)){for(A=-1,k=p.length;++A<k;)if(o(p[A],f,w))return!0;return!1}switch(p.tag){case"wildcard":return g(f,"_",w,!1)!=null;case"named":return g(f,p.value,w,!1)!=null;case"static":return!1;case"optional":return o(p.value,f,w)}},N=function(p,f,w){if(Array.isArray(p))return C(p,function(A){return N(A,f,w)});switch(p.tag){case"wildcard":return g(f,"_",w,!0);case"named":return g(f,p.value,w,!0);case"static":return p.value;case"optional":return o(p.value,f,w)?N(p.value,f,w):""}},e=function(p,f){var w,A,k,q,Q;if(p instanceof e){this.isRegex=p.isRegex,this.regex=p.regex,this.ast=p.ast,this.names=p.names;return}if(this.isRegex=p instanceof RegExp,!(typeof p=="string"||this.isRegex))throw new TypeError("argument must be a regex or a string");if(this.isRegex){if(this.regex=p,f!=null){if(!Array.isArray(f))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(w=x(this.regex),f.length!==w)throw new Error("regex contains "+w+" groups but array of group names contains "+f.length);this.names=f}return}if(p==="")throw new Error("argument must not be the empty string");if(Q=p.replace(/\s+/g,""),Q!==p)throw new Error("argument must not contain whitespace");if(A={escapeChar:f?.escapeChar||u.escapeChar,segmentNameStartChar:f?.segmentNameStartChar||u.segmentNameStartChar,segmentNameCharset:f?.segmentNameCharset||u.segmentNameCharset,segmentValueCharset:f?.segmentValueCharset||u.segmentValueCharset,optionalSegmentStartChar:f?.optionalSegmentStartChar||u.optionalSegmentStartChar,optionalSegmentEndChar:f?.optionalSegmentEndChar||u.optionalSegmentEndChar,wildcardChar:f?.wildcardChar||u.wildcardChar},q=b(A),k=q.pattern(p),k==null)throw new Error("couldn't parse pattern");if(k.rest!=="")throw new Error("could only partially parse pattern");this.ast=k.value,this.regex=new RegExp(l(this.ast,A.segmentValueCharset)),this.names=n(this.ast)},e.prototype.match=function(p){var f,w;return w=this.regex.exec(p),w==null?null:(f=w.slice(1),this.names?v(this.names,f):f)},e.prototype.stringify=function(p){if(p==null&&(p={}),this.isRegex)throw new Error("can't stringify patterns generated from a regex");if(p!==Object(p))throw new Error("argument must be an object or undefined");return N(this.ast,p,{})},e.escapeForRegex=d,e.concatMap=h,e.stringConcatMap=C,e.regexGroupCount=x,e.keysAndValuesToObject=v,e.P=s,e.newParser=b,e.defaultOptions=u,e.astNodeToRegexString=l,e.astNodeToNames=n,e.getParam=g,e.astNodeContainsSegmentsForProvidedParams=o,e.stringify=N,e})})(He,He.exports)),He.exports}var Ho=qo();const Vt=Vo(Ho),Wo=Rr,Ko=Uo,Yo=ds,Xo=ls,Zt=H,Zo=et,We=tt,Go=je,st=T,Qo=Ae,Jo=Vt;window["concorde-utils"]=window["concorde-utils"]||{},window["concorde-utils"]={Utils:Wo,Arrays:Ko,DataBindObserver:Yo,Format:Xo,HTML:Zt,LocationHandler:Zo,Objects:We,PublisherProxy:Go,PublisherManager:st,api:Qo,URLPattern:Jo};var tn=Object.defineProperty,en=Object.getOwnPropertyDescriptor,Ke=(r,t,i,s)=>{for(var e=s>1?void 0:s?en(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&tn(t,i,e),e};const ti=r=>{class t extends r{constructor(){super(...arguments),this._value="",this.forceAutoFill=!1,this.unique=null,this.radio=null,this._checked=null,this.updateAllChecked=()=>{const s=this.getAttribute("name"),e=this.getCheckAllPublisher(),o=this.getFormPublisher();if(e?.hasCheckAll.get()&&!this.checksAll()&&e&&o&&s){if(this.getFormPublisherValue()?.length)(this.checked===null||e.checkMode.get()=="noneChecked"||e.checkMode.get()==null)&&(e.checkMode="someUnchecked");else{e.checkMode="noneChecked";return}const n=this.getFormPublisherValue(),l=e.values.get();if(l&&l.length){let c=l.length;for(const h of l)n.indexOf(h)==-1&&(c-=1);c==l.length&&(e.checkMode="allChecked"),c==0&&(e.checkMode="noneChecked")}l.indexOf(this.value)==-1&&this.unsetOnDisconnect()&&(this.checked=null)}},this.onChecksAllRequest=s=>{this.removeAttribute("allChecked"),this.removeAttribute("indeterminate"),s=="allChecked"&&(this.checked=!0,this.setAttribute("allChecked","")),s=="noneChecked"&&(this.checked=null),s=="someUnchecked"&&(this.checksAll()&&(this.checked="indeterminate"),this.setAttribute("indeterminate",""))}}get value(){return this._value}set value(s){if(this.value==s||(this.hasAttribute("value")&&!this.forceAutoFill&&(s=this.getAttribute("value")),this._value==s)||s==null||(this._value=s,!this.value))return;if(this.getFormPublisher()&&this.name){let o=this.getFormPublisherValue();(this.radio||this.unique)&&(this.checked=o==s?!0:null),Array.isArray(o)||(o=[]),o.indexOf(s)!=-1&&(this.checked=!0)}this.checked==!0&&this.updateDataValue(),this.requestUpdate()}get checked(){return this._checked}set checked(s){if(this.setCheckedValue(s),this.checksAll()){const e=this.getCheckAllPublisher();e&&(this.checked===!0?e.checkMode="allChecked":this.checked===null&&(e.checkMode="noneChecked",this.getFormPublisher()&&this.setFormPublisherValue([])))}this.requestUpdate()}validateFormElement(){const s=this.shadowRoot?.querySelector("input");if(!s||s.checkValidity())return;const e=this.getFormPublisher();if(e){const o=this.getFormPublisherValue();if((this.unique||this.radio)&&o!==null&&o!==void 0&&o.toString().length>0)return;e.isFormValid=!1,s.reportValidity()}}checksAll(){return this.hasAttribute("checksAll")}setCheckedValue(s){this._checked!=s&&(this._checked=s,this.updateDataValue(),this.requestUpdate(),setTimeout(()=>this.updateAllChecked(),1))}handleChange(){const s=this.checked===!0?this.radio?!0:null:!0;this.checked=s;const e=new Event("change");this.dispatchEvent(e)}getValueForFormPublisher(){let s=this.getFormPublisherValue();if(this.radio)return this.checked===!0&&this.value!=null?this.value:s;if(this.unique)return this.checked===!0&&this.value!=null?this.value:null;Array.isArray(s)||(s=[]);const e=s.slice(0),o=e.indexOf(this.value);return this.checked===!0&&o===-1&&!this.checksAll()&&e.push(this.value),this.checked===null&&o!==-1&&e.splice(o,1),e}setFormValueFromPublisher(s){if(this.unique||this.radio){this.checked=this.value==s?!0:null;return}Array.isArray(s)||(s=[]),!this.checksAll()&&(this.checked=s.indexOf(this.value)!==-1?!0:null)}getCheckAllPublisher(){this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"));const s=this.formDataProvider,e=this.getAttribute("name");return!s||!e?null:st.get(s+"/"+e+"/_available_values_")}unset(){this.checked=null}disconnectedCallback(){super.disconnectedCallback();const s=this.getCheckAllPublisher();if(s&&(s.checkMode.offAssign(this.onChecksAllRequest),!this.checksAll())){const e=s.values.get().slice(0),o=e.indexOf(this.value);o!=-1&&(e.splice(o,1),s.values=e)}setTimeout(()=>this.updateAllChecked(),1)}connectedCallback(){if(super.connectedCallback(),this.getFormPublisher()&&this.name){const o=this.getFormPublisherValue();o&&Array.isArray(o)&&o.indexOf(this.value)!==-1&&(this.checked=!0)}const e=this.getCheckAllPublisher();e&&(e.checkMode.onAssign(this.onChecksAllRequest),this.checksAll()&&(e.hasCheckAll=!0),e.values.get()||(e.values=[]),this.checksAll()||(e.values=[...e.values.get(),this.value])),this.hasAttribute("checked")&&(!this.publisher||this.publisher.get().checked!==!1)&&setTimeout(()=>this.checked=!0,1)}}return Ke([a()],t.prototype,"value",1),Ke([a()],t.prototype,"forceAutoFill",2),Ke([a({type:Boolean})],t.prototype,"unique",2),Ke([a({type:Boolean})],t.prototype,"radio",2),Ke([a()],t.prototype,"checked",1),t};/**
73
73
  * @license
74
74
  * Copyright 2018 Google LLC
75
75
  * SPDX-License-Identifier: BSD-3-Clause
@@ -110,7 +110,7 @@
110
110
  <button
111
111
  part="button"
112
112
  class=${this.hasPrefix||this.hasSuffix?"has-prefix-or-suffix":""}
113
- style=${gt(r)}
113
+ style=${ut(r)}
114
114
  aria-controls=${$(this.ariaControls)}
115
115
  aria-expanded=${$(this.sonicAriaExpanded)}
116
116
  aria-label=${$(this.ariaLabel)}
@@ -993,7 +993,7 @@
993
993
  transition-property: scale, opacity;
994
994
  transition-timing-function: cubic-bezier(0.25, 0.25, 0.42, 1.225);
995
995
  }
996
- `],Ze([a({type:String,reflect:!0})],wt.prototype,"theme",2),Ze([a({type:Boolean,reflect:!0})],wt.prototype,"background",2),Ze([a({type:Boolean,reflect:!0})],wt.prototype,"color",2),Ze([a({type:Boolean,reflect:!0})],wt.prototype,"font",2),wt=Ze([_(Sn)],wt);var An=Object.defineProperty,kn=Object.getOwnPropertyDescriptor,gr=(r,t,i,s)=>{for(var e=s>1?void 0:s?kn(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&An(t,i,e),e};const On="sonic-toast";let O=class extends y{constructor(){super(...arguments),this.toasts=[]}createRenderRoot(){return this}render(){const t=window.parent!=window;let i={pointerEvents:"none",gap:"1rem",display:"flex",margin:this.toasts.length?"1rem":"0"};return t||(i={...i,margin:"0",width:"calc(100% - 2.5rem)",position:"fixed",bottom:"1.25rem",right:"1.25rem",zIndex:"10000",maxWidth:"64ch",flexDirection:"column-reverse"}),O.handleExistingToastDelegation(),this.toasts?m`<div aria-live="polite" style=${gt(i)}>
996
+ `],Ze([a({type:String,reflect:!0})],wt.prototype,"theme",2),Ze([a({type:Boolean,reflect:!0})],wt.prototype,"background",2),Ze([a({type:Boolean,reflect:!0})],wt.prototype,"color",2),Ze([a({type:Boolean,reflect:!0})],wt.prototype,"font",2),wt=Ze([_(Sn)],wt);var An=Object.defineProperty,kn=Object.getOwnPropertyDescriptor,gr=(r,t,i,s)=>{for(var e=s>1?void 0:s?kn(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&An(t,i,e),e};const On="sonic-toast";let O=class extends y{constructor(){super(...arguments),this.toasts=[]}createRenderRoot(){return this}render(){const t=window.parent!=window;let i={pointerEvents:"none",gap:"1rem",display:"flex",margin:this.toasts.length?"1rem":"0"};return t||(i={...i,margin:"0",width:"calc(100% - 2.5rem)",position:"fixed",bottom:"1.25rem",right:"1.25rem",zIndex:"10000",maxWidth:"64ch",flexDirection:"column-reverse"}),O.handleExistingToastDelegation(),this.toasts?m`<div aria-live="polite" style=${ut(i)}>
997
997
  ${_s(this.toasts,s=>s.id,s=>m`
998
998
  <sonic-toast-item
999
999
  maxHeight=${t?"none":"10rem"}
@@ -2077,7 +2077,7 @@
2077
2077
  * @license
2078
2078
  * Copyright 2021 Google LLC
2079
2079
  * SPDX-License-Identifier: BSD-3-Clause
2080
- */class Lr{constructor(t,{target:i,config:s,callback:e,skipInitial:o}){this.t=new Set,this.o=!1,this.i=!1,this.h=t,i!==null&&this.t.add(i??t),this.l=s,this.o=o??this.o,this.callback=e,window.ResizeObserver?(this.u=new ResizeObserver((n=>{this.handleChanges(n),this.h.requestUpdate()})),t.addController(this)):console.warn("ResizeController error: browser does not support ResizeObserver.")}handleChanges(t){this.value=this.callback?.(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 sl=Object.defineProperty,il=Object.getOwnPropertyDescriptor,ut=(r,t,i,s)=>{for(var e=s>1?void 0:s?il(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&sl(t,i,e),e};let nt=class extends ai(yr(vr(Gt(y)))){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 Lr(this,{}),this.isPopVisible=!1,this.searchDataProvider="",this.initSearchDataProvider="",this.queueDataProvider="",this.initQueueDataProvider="",this.lastValidSearch="",this.updateSearchParameter=r=>{if(r==""&&this.isSearchParameter()){this.lastValidSearch="";return}this.queryQueueListItem(this.queueDataProvider,this.findSelection,this.setSearchFromSelection)===!1&&this.isSearchParameter()&&(this.lastValidSearch=r,this.searchPublisher?.set(this.lastValidSearch))},this.updatePopContentVisibility=r=>{this.isPopVisible=(r?.length||0)>=this.minSearchLength},this.initSearchParameter=()=>{this.queryQueueListItem(this.initQueueDataProvider,this.findSelection,this.setSearchFromSelection)},this.selectListItem=r=>{const t=this.propertyName==="_self"?r:r[this.propertyName||this.name];this.formValuePublisher?.set(t)},this.findSearchedItem=r=>(this.propertyName==="_self"?r:r[this.propertyName||this.searchParameter||this.name])==this.searchPublisher?.get(),this.findSelection=r=>(this.propertyName==="_self"?r:r[this.propertyName||this.name])==this.value,this.setSearchFromSelection=r=>{this.lastValidSearch=this.propertyName==="_self"?r:r[this.searchParameter||this.propertyName||this.name],this.isSearchParameter()&&this.searchPublisher?.set(this.lastValidSearch)},this.updateActiveSelection=()=>{this.queryQueueListItem(this.queueDataProvider,this.findSearchedItem,this.selectListItem),!this.select&&this.lastValidSearch&&this.lastValidSearch!=this.searchPublisher?.get()&&this.formValuePublisher?.get()&&this.formValuePublisher?.set("")}}hasSlotOrProps(){this.hasInputPrefix=!!this.slotInputPrefixNodes?.length}isSearchParameter(){return!this.searchParameter||this.searchParameter===this.name}connectedCallback(){super.connectedCallback();const r=this.searchParameter||this.name,t=this.getAncestorAttributeValue("formDataProvider"),i=t+"__"+this.name+"__autocomplete";this.initSearchDataProvider=`${i}_init_search__`,this.initQueueDataProvider=`${i}_init_queue__`,this.searchDataProvider=`${i}_search__`,this.queueDataProvider=`${i}_queue__`;const s=st.get;this.searchPublisher=s(this.searchDataProvider)[r],this.formValuePublisher=pt(s(t),this.name),this.countPublisher=s(this.queueDataProvider).resultCount,this.initCountPublisher=s(this.initQueueDataProvider).resultCount,this.value&&(st.get(this.initSearchDataProvider)[this.name]=this.value),this.initCountPublisher?.onAssign(this.initSearchParameter),this.formValuePublisher?.onAssign(this.updateSearchParameter),this.countPublisher?.onAssign(this.updateActiveSelection),this.searchPublisher?.onAssign(this.updatePopContentVisibility)}disconnectedCallback(){super.disconnectedCallback(),this.initCountPublisher?.offAssign(this.initSearchParameter),this.formValuePublisher?.offAssign(this.updateSearchParameter),this.countPublisher?.offAssign(this.updateActiveSelection);const r=st.get;r(this.initSearchDataProvider).delete(),r(this.initQueueDataProvider).delete(),r(this.searchDataProvider).delete(),r(this.queueDataProvider).delete(),this.searchPublisher?.offAssign(this.updatePopContentVisibility)}queryQueueListItem(r,t,i){const s=st.get(r);let e,o=s.get();if(!o||!Array.isArray(o)||!o.length)return!1;for(const n of o){let l=st.get(n.dataProvider).get();if(Array.isArray(l)&&(e=l.find(t),e))break}return e?(i(e),!0):!1}setSelectionRange(r,t){this.querySelector("sonic-input")?.setSelectionRange(r,t)}handleHide(){if(this.select){if(this.searchPublisher?.get()==""){this.lastValidSearch="",this.formValuePublisher?.set("");return}this.searchPublisher?.set(this.lastValidSearch)}}getInputValue(){return this.isSearchParameter()?this.searchPublisher?.get():this.lastValidSearch}render(){return m`
2080
+ */class Lr{constructor(t,{target:i,config:s,callback:e,skipInitial:o}){this.t=new Set,this.o=!1,this.i=!1,this.h=t,i!==null&&this.t.add(i??t),this.l=s,this.o=o??this.o,this.callback=e,window.ResizeObserver?(this.u=new ResizeObserver((n=>{this.handleChanges(n),this.h.requestUpdate()})),t.addController(this)):console.warn("ResizeController error: browser does not support ResizeObserver.")}handleChanges(t){this.value=this.callback?.(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 sl=Object.defineProperty,il=Object.getOwnPropertyDescriptor,ft=(r,t,i,s)=>{for(var e=s>1?void 0:s?il(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&sl(t,i,e),e};let nt=class extends ai(yr(vr(Gt(y)))){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 Lr(this,{}),this.isPopVisible=!1,this.searchDataProvider="",this.initSearchDataProvider="",this.queueDataProvider="",this.initQueueDataProvider="",this.lastValidSearch="",this.updateSearchParameter=r=>{if(r==""&&this.isSearchParameter()){this.lastValidSearch="";return}this.queryQueueListItem(this.queueDataProvider,this.findSelection,this.setSearchFromSelection)===!1&&this.isSearchParameter()&&(this.lastValidSearch=r,this.searchPublisher?.set(this.lastValidSearch))},this.updatePopContentVisibility=r=>{this.isPopVisible=(r?.length||0)>=this.minSearchLength},this.initSearchParameter=()=>{this.queryQueueListItem(this.initQueueDataProvider,this.findSelection,this.setSearchFromSelection)},this.selectListItem=r=>{const t=this.propertyName==="_self"?r:r[this.propertyName||this.name];this.formValuePublisher?.set(t)},this.findSearchedItem=r=>(this.propertyName==="_self"?r:r[this.propertyName||this.searchParameter||this.name])==this.searchPublisher?.get(),this.findSelection=r=>(this.propertyName==="_self"?r:r[this.propertyName||this.name])==this.value,this.setSearchFromSelection=r=>{this.lastValidSearch=this.propertyName==="_self"?r:r[this.searchParameter||this.propertyName||this.name],this.isSearchParameter()&&this.searchPublisher?.set(this.lastValidSearch)},this.updateActiveSelection=()=>{this.queryQueueListItem(this.queueDataProvider,this.findSearchedItem,this.selectListItem),!this.select&&this.lastValidSearch&&this.lastValidSearch!=this.searchPublisher?.get()&&this.formValuePublisher?.get()&&this.formValuePublisher?.set("")}}hasSlotOrProps(){this.hasInputPrefix=!!this.slotInputPrefixNodes?.length}isSearchParameter(){return!this.searchParameter||this.searchParameter===this.name}connectedCallback(){super.connectedCallback();const r=this.searchParameter||this.name,t=this.getAncestorAttributeValue("formDataProvider"),i=t+"__"+this.name+"__autocomplete";this.initSearchDataProvider=`${i}_init_search__`,this.initQueueDataProvider=`${i}_init_queue__`,this.searchDataProvider=`${i}_search__`,this.queueDataProvider=`${i}_queue__`;const s=st.get;this.searchPublisher=s(this.searchDataProvider)[r],this.formValuePublisher=pt(s(t),this.name),this.countPublisher=s(this.queueDataProvider).resultCount,this.initCountPublisher=s(this.initQueueDataProvider).resultCount,this.value&&(st.get(this.initSearchDataProvider)[this.name]=this.value),this.initCountPublisher?.onAssign(this.initSearchParameter),this.formValuePublisher?.onAssign(this.updateSearchParameter),this.countPublisher?.onAssign(this.updateActiveSelection),this.searchPublisher?.onAssign(this.updatePopContentVisibility)}disconnectedCallback(){super.disconnectedCallback(),this.initCountPublisher?.offAssign(this.initSearchParameter),this.formValuePublisher?.offAssign(this.updateSearchParameter),this.countPublisher?.offAssign(this.updateActiveSelection);const r=st.get;r(this.initSearchDataProvider).delete(),r(this.initQueueDataProvider).delete(),r(this.searchDataProvider).delete(),r(this.queueDataProvider).delete(),this.searchPublisher?.offAssign(this.updatePopContentVisibility)}queryQueueListItem(r,t,i){const s=st.get(r);let e,o=s.get();if(!o||!Array.isArray(o)||!o.length)return!1;for(const n of o){let l=st.get(n.dataProvider).get();if(Array.isArray(l)&&(e=l.find(t),e))break}return e?(i(e),!0):!1}setSelectionRange(r,t){this.querySelector("sonic-input")?.setSelectionRange(r,t)}handleHide(){if(this.select){if(this.searchPublisher?.get()==""){this.lastValidSearch="",this.formValuePublisher?.set("");return}this.searchPublisher?.set(this.lastValidSearch)}}getInputValue(){return this.isSearchParameter()?this.searchPublisher?.get():this.lastValidSearch}render(){return m`
2081
2081
  <sonic-pop noToggle style="display:block;" @hide=${this.handleHide}>
2082
2082
  <sonic-input
2083
2083
  class="form-element"
@@ -2162,7 +2162,7 @@
2162
2162
  min-width: 14rem;
2163
2163
  width: 100%;
2164
2164
  }
2165
- `],ut([a({type:String})],nt.prototype,"size",2),ut([a({type:String})],nt.prototype,"placeholder",2),ut([a()],nt.prototype,"filteredFields",2),ut([a({type:Boolean,reflect:!0})],nt.prototype,"readonly",2),ut([a({type:String})],nt.prototype,"dataProviderExpression",2),ut([a({type:Number})],nt.prototype,"minSearchLength",2),ut([a({type:Boolean})],nt.prototype,"select",2),ut([a({type:String})],nt.prototype,"key",2),ut([a({type:String})],nt.prototype,"searchParameter",2),ut([a({type:String})],nt.prototype,"propertyName",2),ut([lt({slot:"prefix",flatten:!0})],nt.prototype,"slotInputPrefixNodes",2),ut([D()],nt.prototype,"hasInputPrefix",2),ut([D()],nt.prototype,"isPopVisible",2),ut([D()],nt.prototype,"lastValidSearch",2),nt=ut([_("sonic-input-autocomplete")],nt);var rl=Object.defineProperty,ol=Object.getOwnPropertyDescriptor,ft=(r,t,i,s)=>{for(var e=s>1?void 0:s?ol(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&rl(t,i,e),e};const nl="sonic-password-helper";let ct=class extends Gt(y){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=t.length==0,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)},st.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].onAssign(this.checkValue))}disconnectedCallback(){this.checkValue&&this.name&&st.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].offAssign(this.checkValue),super.disconnectedCallback()}getIcon(t){return t?m`<sonic-icon library="heroicons" name="face-smile"></sonic-icon>`:m`<sonic-icon library="heroicons" name="x-mark"></sonic-icon>`}render(){return this.hasNoChar?S:m`
2165
+ `],ft([a({type:String})],nt.prototype,"size",2),ft([a({type:String})],nt.prototype,"placeholder",2),ft([a()],nt.prototype,"filteredFields",2),ft([a({type:Boolean,reflect:!0})],nt.prototype,"readonly",2),ft([a({type:String})],nt.prototype,"dataProviderExpression",2),ft([a({type:Number})],nt.prototype,"minSearchLength",2),ft([a({type:Boolean})],nt.prototype,"select",2),ft([a({type:String})],nt.prototype,"key",2),ft([a({type:String})],nt.prototype,"searchParameter",2),ft([a({type:String})],nt.prototype,"propertyName",2),ft([lt({slot:"prefix",flatten:!0})],nt.prototype,"slotInputPrefixNodes",2),ft([D()],nt.prototype,"hasInputPrefix",2),ft([D()],nt.prototype,"isPopVisible",2),ft([D()],nt.prototype,"lastValidSearch",2),nt=ft([_("sonic-input-autocomplete")],nt);var rl=Object.defineProperty,ol=Object.getOwnPropertyDescriptor,mt=(r,t,i,s)=>{for(var e=s>1?void 0:s?ol(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&rl(t,i,e),e};const nl="sonic-password-helper";let ct=class extends Gt(y){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=t.length==0,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)},st.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].onAssign(this.checkValue))}disconnectedCallback(){this.checkValue&&this.name&&st.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].offAssign(this.checkValue),super.disconnectedCallback()}getIcon(t){return t?m`<sonic-icon library="heroicons" name="face-smile"></sonic-icon>`:m`<sonic-icon library="heroicons" name="x-mark"></sonic-icon>`}render(){return this.hasNoChar?S:m`
2166
2166
  <div>${this.wording_password_helper_decription}</div>
2167
2167
  <div>
2168
2168
  ${this.getIcon(this.hasEnoughChars)}
@@ -2183,11 +2183,11 @@
2183
2183
  ${this.getIcon(this.hasSpecialChar)}
2184
2184
  ${this.wording_password_helper_special_char}
2185
2185
  </div>
2186
- `}};ft([a()],ct.prototype,"name",2),ft([a()],ct.prototype,"minChars",2),ft([D()],ct.prototype,"hasNoChar",2),ft([D()],ct.prototype,"hasEnoughChars",2),ft([D()],ct.prototype,"hasMinuscule",2),ft([D()],ct.prototype,"hasMajuscule",2),ft([D()],ct.prototype,"hasNumber",2),ft([D()],ct.prototype,"hasSpecialChar",2),ft([a()],ct.prototype,"wording_password_helper_decription",2),ft([a()],ct.prototype,"wording_password_helper_min_length",2),ft([a()],ct.prototype,"wording_password_helper_lower_case",2),ft([a()],ct.prototype,"wording_password_helper_upper_case",2),ft([a()],ct.prototype,"wording_password_helper_number",2),ft([a()],ct.prototype,"wording_password_helper_special_char",2),ct=ft([_(nl)],ct);var al=Object.defineProperty,ll=Object.getOwnPropertyDescriptor,fe=(r,t,i,s)=>{for(var e=s>1?void 0:s?ll(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&al(t,i,e),e};const cl="sonic-same-value-helper";let ee=class extends Gt(y){constructor(){super(...arguments),this.descriptionWhenEqual="Correspondance : oui",this.descriptionWhenNotEqual="Correspondance : non",this.areEqual=!1,this.hasNoChar=!0}connectedCallback(){super.connectedCallback();const r=st.get(this.getAncestorAttributeValue("formDataProvider"));this.name&&this.sameValueAs&&(this.checkValue=t=>{t?this.hasNoChar=t.length==0:this.hasNoChar=!0,this.name&&this.sameValueAs&&(this.areEqual=pt(r,this.name).get()==pt(r,this.sameValueAs).get())},pt(r,this.name).onAssign(this.checkValue),pt(r,this.sameValueAs).onAssign(this.checkValue))}disconnectedCallback(){if(this.checkValue&&this.name&&this.sameValueAs){const r=st.get(this.getAncestorAttributeValue("formDataProvider"));pt(r,this.name).offAssign(this.checkValue),pt(r,this.sameValueAs).offAssign(this.checkValue)}super.disconnectedCallback()}render(){return this.hasNoChar?S:m`
2186
+ `}};mt([a()],ct.prototype,"name",2),mt([a()],ct.prototype,"minChars",2),mt([D()],ct.prototype,"hasNoChar",2),mt([D()],ct.prototype,"hasEnoughChars",2),mt([D()],ct.prototype,"hasMinuscule",2),mt([D()],ct.prototype,"hasMajuscule",2),mt([D()],ct.prototype,"hasNumber",2),mt([D()],ct.prototype,"hasSpecialChar",2),mt([a()],ct.prototype,"wording_password_helper_decription",2),mt([a()],ct.prototype,"wording_password_helper_min_length",2),mt([a()],ct.prototype,"wording_password_helper_lower_case",2),mt([a()],ct.prototype,"wording_password_helper_upper_case",2),mt([a()],ct.prototype,"wording_password_helper_number",2),mt([a()],ct.prototype,"wording_password_helper_special_char",2),ct=mt([_(nl)],ct);var al=Object.defineProperty,ll=Object.getOwnPropertyDescriptor,fe=(r,t,i,s)=>{for(var e=s>1?void 0:s?ll(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&al(t,i,e),e};const cl="sonic-same-value-helper";let ee=class extends Gt(y){constructor(){super(...arguments),this.descriptionWhenEqual="Correspondance : oui",this.descriptionWhenNotEqual="Correspondance : non",this.areEqual=!1,this.hasNoChar=!0}connectedCallback(){super.connectedCallback();const r=st.get(this.getAncestorAttributeValue("formDataProvider"));this.name&&this.sameValueAs&&(this.checkValue=t=>{t?this.hasNoChar=t.length==0:this.hasNoChar=!0,this.name&&this.sameValueAs&&(this.areEqual=pt(r,this.name).get()==pt(r,this.sameValueAs).get())},pt(r,this.name).onAssign(this.checkValue),pt(r,this.sameValueAs).onAssign(this.checkValue))}disconnectedCallback(){if(this.checkValue&&this.name&&this.sameValueAs){const r=st.get(this.getAncestorAttributeValue("formDataProvider"));pt(r,this.name).offAssign(this.checkValue),pt(r,this.sameValueAs).offAssign(this.checkValue)}super.disconnectedCallback()}render(){return this.hasNoChar?S:m`
2187
2187
  <span>
2188
2188
  ${this.areEqual?F(this.descriptionWhenEqual):F(this.descriptionWhenNotEqual)}
2189
2189
  </span>
2190
- `}};fe([a()],ee.prototype,"name",2),fe([a()],ee.prototype,"sameValueAs",2),fe([a()],ee.prototype,"descriptionWhenEqual",2),fe([a()],ee.prototype,"descriptionWhenNotEqual",2),fe([D()],ee.prototype,"areEqual",2),fe([D()],ee.prototype,"hasNoChar",2),ee=fe([_(cl)],ee);var hl=Object.defineProperty,dl=Object.getOwnPropertyDescriptor,qt=(r,t,i,s)=>{for(var e=s>1?void 0:s?dl(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&hl(t,i,e),e};const pl="sonic-checkbox";let mt=class extends ti($s(Oe(X(y)))){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(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length)}render(){return m`
2190
+ `}};fe([a()],ee.prototype,"name",2),fe([a()],ee.prototype,"sameValueAs",2),fe([a()],ee.prototype,"descriptionWhenEqual",2),fe([a()],ee.prototype,"descriptionWhenNotEqual",2),fe([D()],ee.prototype,"areEqual",2),fe([D()],ee.prototype,"hasNoChar",2),ee=fe([_(cl)],ee);var hl=Object.defineProperty,dl=Object.getOwnPropertyDescriptor,qt=(r,t,i,s)=>{for(var e=s>1?void 0:s?dl(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&hl(t,i,e),e};const pl="sonic-checkbox";let gt=class extends ti($s(Oe(X(y)))){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(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length)}render(){return m`
2191
2191
  <label class="checkbox-container ${this.disabled?"disabled":""}">
2192
2192
 
2193
2193
  <span class="icon-container">
@@ -2215,7 +2215,7 @@
2215
2215
  </div>
2216
2216
  </label>
2217
2217
  </label>
2218
- `}};mt.styles=[Lt,P`
2218
+ `}};gt.styles=[Lt,P`
2219
2219
  :host {
2220
2220
  --sc-checkbox-border-width: var(--sc-form-border-width);
2221
2221
  --sc-checkbox-border-color: var(
@@ -2337,7 +2337,7 @@
2337
2337
  .hidden {
2338
2338
  display: none;
2339
2339
  }
2340
- `],qt([a({type:Boolean,reflect:!0})],mt.prototype,"touched",2),qt([a({type:String})],mt.prototype,"iconName",2),qt([a({type:String})],mt.prototype,"indeterminateIconName",2),qt([a({type:Boolean})],mt.prototype,"showAsIndeterminate",2),qt([a({type:Boolean})],mt.prototype,"hasDescription",2),qt([a({type:Boolean})],mt.prototype,"hasLabel",2),qt([lt({flatten:!0})],mt.prototype,"slotLabelNodes",2),qt([lt({slot:"description",flatten:!0})],mt.prototype,"slotDescriptionNodes",2),mt=qt([_(pl)],mt);var ul=Object.getOwnPropertyDescriptor,fl=(r,t,i,s)=>{for(var e=s>1?void 0:s?ul(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const ml="sonic-radio";let fi=class extends mt{constructor(){super(),this.radio=!0}connectedCallback(){super.connectedCallback(),this.type="radio"}};fi.styles=[mt.styles,P`
2340
+ `],qt([a({type:Boolean,reflect:!0})],gt.prototype,"touched",2),qt([a({type:String})],gt.prototype,"iconName",2),qt([a({type:String})],gt.prototype,"indeterminateIconName",2),qt([a({type:Boolean})],gt.prototype,"showAsIndeterminate",2),qt([a({type:Boolean})],gt.prototype,"hasDescription",2),qt([a({type:Boolean})],gt.prototype,"hasLabel",2),qt([lt({flatten:!0})],gt.prototype,"slotLabelNodes",2),qt([lt({slot:"description",flatten:!0})],gt.prototype,"slotDescriptionNodes",2),gt=qt([_(pl)],gt);var ul=Object.getOwnPropertyDescriptor,fl=(r,t,i,s)=>{for(var e=s>1?void 0:s?ul(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const ml="sonic-radio";let fi=class extends gt{constructor(){super(),this.radio=!0}connectedCallback(){super.connectedCallback(),this.type="radio"}};fi.styles=[gt.styles,P`
2341
2341
  :host input {
2342
2342
  border-radius: 50%;
2343
2343
  }
@@ -2353,7 +2353,7 @@
2353
2353
  width: 0.6em;
2354
2354
  width: round(0.6em, 1px);
2355
2355
  }
2356
- `],fi=fl([_(ml)],fi);var gl=Object.getOwnPropertyDescriptor,bl=(r,t,i,s)=>{for(var e=s>1?void 0:s?gl(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const vl="sonic-switch";let mi=class extends mt{constructor(){super(),this.unique=!0}};mi.styles=[mt.styles,P`
2356
+ `],fi=fl([_(ml)],fi);var gl=Object.getOwnPropertyDescriptor,bl=(r,t,i,s)=>{for(var e=s>1?void 0:s?gl(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const vl="sonic-switch";let mi=class extends gt{constructor(){super(),this.unique=!0}};mi.styles=[gt.styles,P`
2357
2357
  sonic-icon {
2358
2358
  display: none;
2359
2359
  }
@@ -2554,7 +2554,7 @@
2554
2554
  class="form-element textarea custom-scroll"
2555
2555
  aria-label=${$(this.ariaLabel)}
2556
2556
  aria-labelledby=${$(this.ariaLabelledby)}
2557
- style=${gt(r)}
2557
+ style=${ut(r)}
2558
2558
  >
2559
2559
  ${this.value}</textarea
2560
2560
  >
@@ -2747,7 +2747,7 @@ ${this.value}</textarea
2747
2747
  ::slotted(sonic-divider) {
2748
2748
  --sc-divider-my: 0;
2749
2749
  }
2750
- `],bi([Pe({flatten:!0})],es.prototype,"slottedElements",2),bi([a({type:Boolean})],es.prototype,"oneFormElement",2),es=bi([_(Ml)],es);var Il=Object.defineProperty,jl=Object.getOwnPropertyDescriptor,vi=(r,t,i,s)=>{for(var e=s>1?void 0:s?jl(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Il(t,i,e),e};const Fl="sonic-form-actions";let ss=class extends y{constructor(){super(...arguments),this.direction="row",this.justify="flex-start"}render(){const r={flexDirection:this.direction,justifyContent:this.justify};return m`<slot style=${gt(r)}></slot>`}};ss.styles=[P`
2750
+ `],bi([Pe({flatten:!0})],es.prototype,"slottedElements",2),bi([a({type:Boolean})],es.prototype,"oneFormElement",2),es=bi([_(Ml)],es);var Il=Object.defineProperty,jl=Object.getOwnPropertyDescriptor,vi=(r,t,i,s)=>{for(var e=s>1?void 0:s?jl(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Il(t,i,e),e};const Fl="sonic-form-actions";let ss=class extends y{constructor(){super(...arguments),this.direction="row",this.justify="flex-start"}render(){const r={flexDirection:this.direction,justifyContent:this.justify};return m`<slot style=${ut(r)}></slot>`}};ss.styles=[P`
2751
2751
  :host {
2752
2752
  display: block;
2753
2753
  }
@@ -2762,7 +2762,7 @@ ${this.value}</textarea
2762
2762
  @slotchange=${this.hasSlotOrProps}
2763
2763
  ></slot
2764
2764
  ></span>
2765
- <slot class="main-slot" style=${gt(r)}></slot>
2765
+ <slot class="main-slot" style=${ut(r)}></slot>
2766
2766
  <slot
2767
2767
  name="description"
2768
2768
  @slotchange=${this.hasSlotOrProps}
@@ -2796,7 +2796,7 @@ ${this.value}</textarea
2796
2796
  src="${this.src}"
2797
2797
  loading="${this.loading}"
2798
2798
  alt="${this.alt}"
2799
- style=${gt(r)}
2799
+ style=${ut(r)}
2800
2800
  /></picture>
2801
2801
  </div>`}};$t.styles=[P`
2802
2802
  :host {
@@ -2872,18 +2872,22 @@ ${this.value}</textarea
2872
2872
  opacity: 1;
2873
2873
  scale: 1;
2874
2874
  }
2875
- `],jt([a({type:String})],$t.prototype,"rounded",2),jt([a({type:String})],$t.prototype,"src",2),jt([a({type:String})],$t.prototype,"alt",2),jt([a({type:String})],$t.prototype,"loading",2),jt([a({type:String,reflect:!0})],$t.prototype,"transition",2),jt([a({type:String})],$t.prototype,"ratio",2),jt([a({type:String})],$t.prototype,"objectPosition",2),jt([a({type:String})],$t.prototype,"imageRendering",2),jt([a({type:Boolean,reflect:!0})],$t.prototype,"cover",2),$t=jt([_(ql)],$t);var Hl=Object.defineProperty,Wl=Object.getOwnPropertyDescriptor,vt=(r,t,i,s)=>{for(var e=s>1?void 0:s?Wl(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Hl(t,i,e),e};const Kl="sonic-menu";let dt=class extends y{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.attributeObserver=null,this.minWidth="0",this.hasMoreElements=!1,this.handleScrollEnd=()=>{this.setScrollShadow(this.menuContent,this.direction)},this.updateIsScollable=()=>{this.scrollable&&(this.initScrollable(),this.setScrollShadow(this.menuContent,this.direction))}}checkIfMore(){this.hasMoreElements=!!this.moreElements?.length}moreSlotChange(){this.checkIfMore(),this.updateIsScollable()}updated(r){const t=this.querySelector(".more-btn");this.size&&t&&t.setAttribute("size",this.size),this.querySelectorAll("sonic-divider").forEach(s=>{s.hasAttribute("size")||s.setAttribute("size","xs")}),super.updated(r)}mainSlotChange(){this.setChildrenSize(this.menuChildren),this.updateIsScollable(),this.updateScrollPosition(),this.observeMenuItemsAttributes()}observeMenuItemsAttributes(){this.attributeObserver?.disconnect(),this.attributeObserver=new MutationObserver(()=>{this.updateScrollPosition()}),this.menuChildren.forEach(r=>{this.attributeObserver.observe(r,{attributes:!0,attributeFilter:["active"]})})}updateScrollPosition(){if(this.scrollable){const r=this.menuChildren.filter(t=>t.hasAttribute("active")&&t.getAttribute("active")!=="false");r.length===1&&requestAnimationFrame(()=>{r[0].scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})})}}connectedCallback(){this.observer=new ResizeObserver(this.updateIsScollable),this.observer.observe(this),super.connectedCallback()}firstUpdated(r){this.menuContent.addEventListener("scrollend",this.handleScrollEnd)}disconnectedCallback(){this.observer?.disconnect(),this.attributeObserver?.disconnect(),this.menuContent.removeEventListener("scrollend",this.handleScrollEnd),super.disconnectedCallback()}initScrollable(){let r=!1,t,i;this.scrollable&&(this.addEventListener("mousedown",s=>{r=!0,this.classList.add("active"),t=s.pageX-this.menuContent.offsetLeft,i=this.menuContent.scrollLeft}),this.addEventListener("mouseleave",()=>{r=!1,this.classList.remove("active")}),this.addEventListener("mouseup",()=>{r=!1,this.classList.remove("active")}),this.addEventListener("mousemove",s=>{if(!r)return;s.preventDefault();const o=(s.pageX-this.menuContent.offsetLeft-t)*1.5;this.menuContent.scrollLeft=i-o,this.setScrollShadow(this.menuContent,this.direction)}),this.addEventListener("scroll",s=>{s.preventDefault(),this.setScrollShadow(this.menuContent,this.direction)}))}setScrollShadow(r,t){t=="row"?(r.scrollLeft>0?this.classList.add("shadow-left"):this.classList.remove("shadow-left"),r.scrollLeft<r.scrollWidth-r.offsetWidth?this.classList.add("shadow-right"):this.classList.remove("shadow-right")):t=="column"&&(r.scrollTop>0?this.classList.add("shadow-top"):this.classList.remove("shadow-top"),r.scrollTop<r.scrollHeight-(r.offsetHeight+1)?this.classList.add("shadow-bottom"):this.classList.remove("shadow-bottom"))}setChildrenSize(r){r.forEach(t=>{this.size&&t.setAttribute("size",this.size),this.align&&t.getAttribute("shape")!="square"&&t.getAttribute("shape")!="circle"&&t.setAttribute("align",this.align),this.direction=="row"&&t.getAttribute("shape")=="block"&&t.setAttribute("shape","default")})}render(){const r={minWidth:this.minWidth,flexDirection:this.direction,gap:this.gap},t=this.direction=="row",i={display:"block",alignSelf:t?"center":"flex-start",justifySelf:"center",flexDirection:this.direction},s={marginLeft:t?"":".55em"};return m`<menu
2875
+ `],jt([a({type:String})],$t.prototype,"rounded",2),jt([a({type:String})],$t.prototype,"src",2),jt([a({type:String})],$t.prototype,"alt",2),jt([a({type:String})],$t.prototype,"loading",2),jt([a({type:String,reflect:!0})],$t.prototype,"transition",2),jt([a({type:String})],$t.prototype,"ratio",2),jt([a({type:String})],$t.prototype,"objectPosition",2),jt([a({type:String})],$t.prototype,"imageRendering",2),jt([a({type:Boolean,reflect:!0})],$t.prototype,"cover",2),$t=jt([_(ql)],$t);var Hl=Object.defineProperty,Wl=Object.getOwnPropertyDescriptor,vt=(r,t,i,s)=>{for(var e=s>1?void 0:s?Wl(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Hl(t,i,e),e};const Kl="sonic-menu";let dt=class extends y{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.attributeObserver=null,this.minWidth="0",this.hasMoreElements=!1,this.handleScrollEnd=()=>{this.setScrollShadow(this.menuContent,this.direction)},this.updateIsScollable=()=>{this.scrollable&&(this.initScrollable(),this.setScrollShadow(this.menuContent,this.direction))}}checkIfMore(){this.hasMoreElements=!!this.moreElements?.length}moreSlotChange(){this.checkIfMore(),this.updateIsScollable()}updated(r){const t=this.querySelector(".more-btn");this.size&&t&&t.setAttribute("size",this.size),super.updated(r)}setDividersSize(r){r.forEach(t=>{t.setAttribute("size","sm"),this.direction=="row"?t.style.setProperty("margin","0 .1rem "):t.style.setProperty("margin"," 0.1rem 0")})}mainSlotChange(){this.setChildrenSize(this.menuChildren),this.setDividersSize(this.menuChildren),this.updateIsScollable(),this.updateScrollPosition(),this.observeMenuItemsAttributes()}observeMenuItemsAttributes(){this.attributeObserver?.disconnect(),this.attributeObserver=new MutationObserver(()=>{this.updateScrollPosition()}),this.menuChildren.forEach(r=>{this.attributeObserver.observe(r,{attributes:!0,attributeFilter:["active"]})})}updateScrollPosition(){if(this.scrollable){const r=this.menuChildren.filter(t=>t.hasAttribute("active")&&t.getAttribute("active")!=="false");r.length===1&&requestAnimationFrame(()=>{r[0].scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})})}}connectedCallback(){this.observer=new ResizeObserver(this.updateIsScollable),this.observer.observe(this),super.connectedCallback()}firstUpdated(r){this.menuContent.addEventListener("scrollend",this.handleScrollEnd)}disconnectedCallback(){this.observer?.disconnect(),this.attributeObserver?.disconnect(),this.menuContent.removeEventListener("scrollend",this.handleScrollEnd),super.disconnectedCallback()}initScrollable(){let r=!1,t,i;this.scrollable&&(this.addEventListener("mousedown",s=>{r=!0,this.classList.add("active"),t=s.pageX-this.menuContent.offsetLeft,i=this.menuContent.scrollLeft}),this.addEventListener("mouseleave",()=>{r=!1,this.classList.remove("active")}),this.addEventListener("mouseup",()=>{r=!1,this.classList.remove("active")}),this.addEventListener("mousemove",s=>{if(!r)return;s.preventDefault();const o=(s.pageX-this.menuContent.offsetLeft-t)*1.5;this.menuContent.scrollLeft=i-o,this.setScrollShadow(this.menuContent,this.direction)}),this.addEventListener("scroll",s=>{s.preventDefault(),this.setScrollShadow(this.menuContent,this.direction)}))}setScrollShadow(r,t){t=="row"?(r.scrollLeft>0?this.classList.add("shadow-left"):this.classList.remove("shadow-left"),r.scrollLeft<r.scrollWidth-r.offsetWidth?this.classList.add("shadow-right"):this.classList.remove("shadow-right")):t=="column"&&(r.scrollTop>0?this.classList.add("shadow-top"):this.classList.remove("shadow-top"),r.scrollTop<r.scrollHeight-(r.offsetHeight+1)?this.classList.add("shadow-bottom"):this.classList.remove("shadow-bottom"))}setChildrenSize(r){r.forEach(t=>{this.size&&t.setAttribute("size",this.size),this.align&&t.getAttribute("shape")!="square"&&t.getAttribute("shape")!="circle"&&t.setAttribute("align",this.align),this.direction=="row"&&t.getAttribute("shape")=="block"&&t.setAttribute("shape","default")})}render(){const r={minWidth:this.minWidth,flexDirection:this.direction},t=this.direction=="row",i={gap:this.gap,flexDirection:this.direction},s={display:"block",alignSelf:t?"center":"flex-start",justifySelf:"center",flexDirection:this.direction},e={marginLeft:t?"":".55em"};return m`<menu
2876
2876
  part="menu"
2877
2877
  class="shadowable"
2878
- style=${gt(r)}
2878
+ style=${ut(r)}
2879
2879
  >
2880
- <slot @slotchange=${this.mainSlotChange} id="menu-content"></slot>
2880
+ <slot
2881
+ @slotchange=${this.mainSlotChange}
2882
+ id="menu-content"
2883
+ style=${ut(i)}
2884
+ ></slot>
2881
2885
  <sonic-pop
2882
- style=${gt(i)}
2886
+ style=${ut(s)}
2883
2887
  class=${this.hasMoreElements?"":"hidden"}
2884
2888
  >
2885
2889
  <sonic-menu-item
2886
- style=${gt(s)}
2890
+ style=${ut(e)}
2887
2891
  class="more-btn"
2888
2892
  shape=${this.moreShape}
2889
2893
  align="center"
@@ -2916,17 +2920,19 @@ ${this.value}</textarea
2916
2920
  }
2917
2921
 
2918
2922
  /* SCROLLABLE*/
2923
+ #menu-content {
2924
+ display: flex;
2925
+ padding: 0.35em;
2926
+ margin: 0;
2927
+ }
2928
+
2919
2929
  :host([scrollable]) #menu-content {
2920
2930
  scrollbar-width: none;
2921
2931
  max-width: 100%;
2922
2932
  -ms-overflow-style: none;
2923
2933
  scroll-snap-align: start;
2924
2934
  white-space: nowrap;
2925
- display: flex;
2926
- gap: var(--sc-menu-gap);
2927
2935
  border-radius: min(calc(var(--sc-btn-rounded) * 2), 0.4em);
2928
- margin: 0;
2929
- padding: 0.35em;
2930
2936
  transition: mask-image 0.15s linear;
2931
2937
  }
2932
2938
 
@@ -3025,7 +3031,7 @@ ${this.value}</textarea
3025
3031
  rgba(0, 0, 0, 0) 100%
3026
3032
  );
3027
3033
  }
3028
- `,Or],vt([a({type:String,reflect:!0})],dt.prototype,"size",2),vt([a({type:String,reflect:!0})],dt.prototype,"direction",2),vt([a({type:String})],dt.prototype,"gap",2),vt([a({type:String,reflect:!0})],dt.prototype,"align",2),vt([a({type:String,reflect:!0})],dt.prototype,"shadow",2),vt([a({type:String})],dt.prototype,"moreShape",2),vt([a({type:Boolean})],dt.prototype,"scrollable",2),vt([a({type:String})],dt.prototype,"minWidth",2),vt([oe("menu")],dt.prototype,"menu",2),vt([oe("#menu-content")],dt.prototype,"menuContent",2),vt([Pe({selector:"sonic-menu-item"})],dt.prototype,"menuChildren",2),vt([Pe({slot:"more",selector:"*"})],dt.prototype,"moreElements",2),vt([D()],dt.prototype,"hasMoreElements",2),dt=vt([_(Kl)],dt);var Yl=Object.defineProperty,Xl=Object.getOwnPropertyDescriptor,Er=(r,t,i,s)=>{for(var e=s>1?void 0:s?Xl(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Yl(t,i,e),e};const Zl="sonic-modal-actions";let Ns=class extends y{firstUpdated(r){this.buttons?.forEach(t=>{t.hasAttribute("hideModal")&&t.addEventListener("click",()=>{Zt.getClosestElement(this,"sonic-modal")?.hide()})}),super.firstUpdated(r)}render(){return m`<slot></slot>`}};Ns.styles=[P`
3034
+ `,Or],vt([a({type:String,reflect:!0})],dt.prototype,"size",2),vt([a({type:String,reflect:!0})],dt.prototype,"direction",2),vt([a({type:String})],dt.prototype,"gap",2),vt([a({type:String,reflect:!0})],dt.prototype,"align",2),vt([a({type:String,reflect:!0})],dt.prototype,"shadow",2),vt([a({type:String})],dt.prototype,"moreShape",2),vt([a({type:Boolean})],dt.prototype,"scrollable",2),vt([a({type:String})],dt.prototype,"minWidth",2),vt([oe("menu")],dt.prototype,"menu",2),vt([oe("#menu-content")],dt.prototype,"menuContent",2),vt([Pe({selector:"*"})],dt.prototype,"menuChildren",2),vt([Pe({slot:"more",selector:"*"})],dt.prototype,"moreElements",2),vt([D()],dt.prototype,"hasMoreElements",2),dt=vt([_(Kl)],dt);var Yl=Object.defineProperty,Xl=Object.getOwnPropertyDescriptor,Er=(r,t,i,s)=>{for(var e=s>1?void 0:s?Xl(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Yl(t,i,e),e};const Zl="sonic-modal-actions";let Ns=class extends y{firstUpdated(r){this.buttons?.forEach(t=>{t.hasAttribute("hideModal")&&t.addEventListener("click",()=>{Zt.getClosestElement(this,"sonic-modal")?.hide()})}),super.firstUpdated(r)}render(){return m`<slot></slot>`}};Ns.styles=[P`
3029
3035
  :host {
3030
3036
  display: flex;
3031
3037
  gap: 0.5rem;
@@ -3072,14 +3078,14 @@ ${this.value}</textarea
3072
3078
  <div
3073
3079
  id="backdrop"
3074
3080
  @click=${this.handleOverlayClick}
3075
- style=${gt(t)}
3081
+ style=${ut(t)}
3076
3082
  ></div>
3077
3083
  <dialog
3078
3084
  id="modal"
3079
3085
  part="modal"
3080
3086
  class="custom-scroll"
3081
3087
  aria-modal="true"
3082
- style=${gt(r)}
3088
+ style=${ut(r)}
3083
3089
  >
3084
3090
  ${this._animationState!=="hidden"?m`<div id="modal-content">
3085
3091
  ${!this.forceAction&&!this.noCloseButton?m`<sonic-modal-close></sonic-modal-close>`:S}
@@ -3791,7 +3797,7 @@ ${this.value}</textarea
3791
3797
  }
3792
3798
  `],ns([a({type:Object})],ve.prototype,"_metadata_",2),ns([a({type:Boolean,reflect:!0})],ve.prototype,"even",2),ns([a({type:Boolean,reflect:!0})],ve.prototype,"odd",2),ns([a({type:Boolean,reflect:!0})],ve.prototype,"last",2),ve=ns([_(Hc)],ve);var Wc=Object.defineProperty,Kc=Object.getOwnPropertyDescriptor,ye=(r,t,i,s)=>{for(var e=s>1?void 0:s?Kc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Wc(t,i,e),e};const Yc="sonic-th";let Wt=class extends y{render(){const r={textAlign:this.align,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return m`<th
3793
3799
  part="th"
3794
- style=${gt(r)}
3800
+ style=${ut(r)}
3795
3801
  colspan=${$(this.colSpan)}
3796
3802
  rowspan=${$(this.rowSpan)}
3797
3803
  >
@@ -3819,7 +3825,7 @@ ${this.value}</textarea
3819
3825
  :host([noBorder]) th {
3820
3826
  border-bottom: none;
3821
3827
  }
3822
- `],ye([a({type:Number})],Wt.prototype,"colSpan",2),ye([a({type:Number})],Wt.prototype,"rowSpan",2),ye([a({type:String})],Wt.prototype,"align",2),ye([a({type:String})],Wt.prototype,"minWidth",2),ye([a({type:String})],Wt.prototype,"maxWidth",2),ye([a({type:String})],Wt.prototype,"width",2),Wt=ye([_(Yc)],Wt);var Xc=Object.defineProperty,Zc=Object.getOwnPropertyDescriptor,ie=(r,t,i,s)=>{for(var e=s>1?void 0:s?Zc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Xc(t,i,e),e};const Gc="sonic-td";let Rt=class extends y{render(){const r={textAlign:this.align,verticalAlign:this.vAlign,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return m`<td part="td" style=${gt(r)} colspan=${$(this.colSpan)} rowspan=${$(this.rowSpan)}>
3828
+ `],ye([a({type:Number})],Wt.prototype,"colSpan",2),ye([a({type:Number})],Wt.prototype,"rowSpan",2),ye([a({type:String})],Wt.prototype,"align",2),ye([a({type:String})],Wt.prototype,"minWidth",2),ye([a({type:String})],Wt.prototype,"maxWidth",2),ye([a({type:String})],Wt.prototype,"width",2),Wt=ye([_(Yc)],Wt);var Xc=Object.defineProperty,Zc=Object.getOwnPropertyDescriptor,ie=(r,t,i,s)=>{for(var e=s>1?void 0:s?Zc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&Xc(t,i,e),e};const Gc="sonic-td";let Rt=class extends y{render(){const r={textAlign:this.align,verticalAlign:this.vAlign,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return m`<td part="td" style=${ut(r)} colspan=${$(this.colSpan)} rowspan=${$(this.rowSpan)}>
3823
3829
  <slot></slot>
3824
3830
  </td>`}};Rt.styles=[ki,P`
3825
3831
  :host {
@@ -3873,7 +3879,7 @@ ${this.value}</textarea
3873
3879
  `],Ei=lh([_(ch)],Ei);var hh=Object.defineProperty,dh=Object.getOwnPropertyDescriptor,Te=(r,t,i,s)=>{for(var e=s>1?void 0:s?dh(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&hh(t,i,e),e};const ph="sonic-table";let re=class extends y{render(){const r={maxHeight:this.maxHeight};return m`
3874
3880
  <div
3875
3881
  class="table-container ${this.noCustomScroll?"":"custom-scroll"}"
3876
- style=${gt(r)}
3882
+ style=${ut(r)}
3877
3883
  >
3878
3884
  <div class="table">
3879
3885
  <slot></slot>