@supersoniks/concorde 3.0.7 → 3.0.8

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.
@@ -1,4 +1,4 @@
1
- (function(J){typeof define=="function"&&define.amd?define(J):J()})(function(){"use strict";var jt,j,k,Dr,t,Y;let J=class Mt{static getLanguage(){const t=document.documentElement.lang;return localStorage.getItem("SonicSelectedLanguage")||t}static getCookies(){return document.cookie.split(";").reduce((t,s)=>{const i=s.indexOf("=");return t[s.substring(0,i).trim()]=s.substring(i+1),t},{})}static everyAncestors(t,s){for(;t;){if(!s(t))return;t=t.parentNode||t.host}}static getAncestorAttributeValue(t,s){if(!t)return null;for(;!("hasAttribute"in t&&t.hasAttribute(s))&&(t.parentNode||t.host);)t=t.parentNode||t.host;return"hasAttribute"in t?t.getAttribute(s):null}static getApiConfiguration(t){const s=Mt.getAncestorAttributeValue(t,"token"),i=Mt.getAncestorAttributeValue(t,"addHTTPResponse")!=null,e=Mt.getAncestorAttributeValue(t,"serviceURL");let o=null,n=null;const a=Mt.getAncestorAttributeValue(t,"tokenProvider"),c=Mt.getAncestorAttributeValue(t,"eventsApiToken");s||(o=Mt.getAncestorAttributeValue(t,"userName"),n=Mt.getAncestorAttributeValue(t,"password"));const h=Mt.getAncestorAttributeValue(t,"credentials")||void 0,d=t.getAttribute("cache"),f=t.hasAttribute("blockUntilDone");return{serviceURL:e,token:s,userName:o,password:n,authToken:c,tokenProvider:a,addHTTPResponse:i,credentials:h,cache:d,blockUntilDone:f}}static getClosestElement(t,s){for(;!(t.nodeName&&t.nodeName.toLowerCase()===s)&&(t.parentNode||t.host);)t=t.parentNode||t.host;return t.nodeName?t:null}static getClosestForm(t){return Mt.getClosestElement(t,"form")}static async loadJS(t){return new Promise(async i=>{const e=document.createElement("script");e.src=t,e.onload=()=>i(!0),e.onerror=()=>i(!0),document.head.appendChild(e)})}static async loadCSS(t){return new Promise(async i=>{const e=document.createElement("link");e.type="text/css",e.rel="stylesheet",e.href=t,e.onload=()=>i(!0),e.onerror=()=>i(!0),document.head.appendChild(e)})}},rs=class{static ucFirst(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.substring(1)}static minutesDuration(t,s="",i="long"){s||(s=J.getLanguage());const e=(h,d)=>[Math.floor(h/d),h%d];function o(h,d,f){return new Intl.NumberFormat(h,{style:"unit",unit:d,unitDisplay:f}).format}const[n,a]=e(t,60),c=[];return n&&c.push(o(s,"hour",i)(n)),a&&c.push(o(s,"minute",i)(a)),new Intl.ListFormat(s,{style:"long",type:"conjunction"}).format(c)}static js(t){try{return Function("return "+t)()}catch{return""}}};function Ee(r){return typeof r=="object"&&r!=null}const Lr=async()=>new Promise(r=>{window.queueMicrotask(()=>r(null))});let Ls=(jt=class{constructor(t,s){for(this._proxies_=new Map,this._is_savable_=!1,this._invalidateListeners_=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=s||null,this.root=this,this._instanceCounter_=0;this.root.parent;)this.root=this.root.parent}delete(){for(const t of this._proxies_.values())t.delete();this._invalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear(),jt.instances.delete(this._instanceCounter_)}hasListener(){return this._templateFillListeners_.size>0||this._assignListeners_.size>0||this._invalidateListeners_.size>0||this._mutationListeners_.size>0||this._fillListeners_.size>0}_publishInternalMutation_(t=!1){if(this._mutationListeners_.forEach(s=>s()),this._is_savable_&&!L.changed){L.changed=!0,L.saveId++;const s=L.saveId;setTimeout(()=>L.getInstance().saveToLocalStorage(s),1e3)}t||this.parent&&this.parent._publishInternalMutation_()}async _publishAssignement_(t=!1){this._assignmentId_++;const s=this._assignmentId_;if(await Lr(),s!==this._assignmentId_)return;const i=this.get();this._assignListeners_.forEach(e=>e(i)),this._publishInternalMutation_(t)}_publishInvalidation_(){this._invalidateListeners_.forEach(t=>t())}_publishDynamicFilling_(t,s){this._fillListeners_.forEach(i=>{i[t]!==s&&(i[t]=s)}),this._publishTemplateFilling_(t,s)}_publishTemplateFilling_(t,s){this._templateFillListeners_.forEach(i=>{const e=Object.getOwnPropertyDescriptor(i,t);e&&!e.set&&!e.writable||(i.propertyMap&&i.propertyMap[t]&&(t=i.propertyMap[t]),typeof i[t]<"u"&&i[t]!==s&&(i[t]=s))})}onAssign(t,s=!0){typeof t=="function"&&(this._assignListeners_.has(t)||(this._assignListeners_.add(t),s&&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_()}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 s in this._value_){let i=s;const e=this._value_[s];t.propertyMap&&t.propertyMap[s]&&(i=t.propertyMap[s]),typeof t[s]<"u"&&t[s]!==e&&(t[i]=e)}}stopTemplateFilling(t){this._templateFillListeners_.delete(t)}startDynamicFilling(t){this._fillListeners_.add(t);for(const s in this._value_){const i=this._value_[s];t[s]!==i&&(t[s]=i)}}stopDynamicFilling(t){this._fillListeners_.delete(t)}async set(t,s=!1){var o;if(this._value_===t||this._value_&&t&&Object.prototype.hasOwnProperty.call(this._value_,"__value")&&Object.prototype.hasOwnProperty.call(t,"__value")&&this._value_.__value===t.__value)return!0;const i=this._value_;if(this._value_=Ee(t)?t:{__value:t},this._cachedGet_=void 0,Object.prototype.hasOwnProperty.call(this._value_,"__value"))return await this._publishAssignement_(s),!0;for(const n in this._value_)this._value_[n]===void 0&&delete this._value_[n];if(this._proxies_.forEach((n,a)=>{this._value_[a]===void 0&&a!="_parent_"&&i[a]&&(this._value_[a]=null)}),await this._publishAssignement_(),Ee(this._value_))for(const n in this._value_){const a=t[n],h=Ee(a)?a:{__value:a};if(!this._proxies_.has(n)){this._publishDynamicFilling_(n,a);continue}await((o=this._proxies_.get(n))==null?void 0:o.set(h,!0)),this._publishDynamicFilling_(n,a)}return!0}get(){if(this._cachedGet_!==void 0)return this._cachedGet_;if(L.modifiedCollectore.length>0&&L.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_}get $tag(){return this._instanceCounter_||(jt.instancesCounter++,this._instanceCounter_=jt.instancesCounter),jt.instances.set(this._instanceCounter_,this),'<reactive-publisher-proxy publisher="'+this._instanceCounter_+'"></reactive-publisher-proxy>'}},jt.instances=new Map,jt.instancesCounter=0,jt),L=(j=class{constructor(){if(this.enabledLocaStorageProxies=[],this.publishers=new Map,this.localStorageData={},this.isLocalStrorageReady=null,this.initialisedData=[],j.instance!=null)throw"Singleton / use getInstance";j.instance=this,this.isLocalStrorageReady=this.cleanStorageData()}async cleanStorageData(){return new Promise(t=>{(async()=>{try{let i=localStorage.getItem("publisher-proxies-data"),e=null;if(i&&(e=await this.decompress(i,"gzip")),e)try{this.localStorageData=JSON.parse(e)}catch{this.localStorageData={}}else i=await this.compress("{}","gzip"),localStorage.setItem("publisher-proxies-data",i),this.localStorageData={};const o=new Date().getTime()-1e3*60*60*12;for(const n in this.localStorageData)this.localStorageData[n].lastModifiationMS<o&&delete this.localStorageData[n];t(!0)}catch{window.requestAnimationFrame(()=>{t(!1)}),console.log("no publisher cache in this browser")}})()})}static getInstance(){return j.instance==null?new j:j.instance}static get(t,s){return j.getInstance().get(t,s)}static collectModifiedPublisher(){j.modifiedCollectore.unshift(new Set)}static getModifiedPublishers(){return j.modifiedCollectore.shift()}static delete(t){return t?j.getInstance().delete(t):!1}async setLocalData(t,s){var i;await this.isLocalStrorageReady,t.set(((i=this.localStorageData[s+"¤lang_"+J.getLanguage()])==null?void 0:i.data)||t.get())}get(t,s){const i=(s==null?void 0:s.localStorageMode)==="enabled";if(!this.publishers.has(t)){const o={},n=new Ne(o);this.set(t,n)}const e=this.publishers.get(t);return i&&this.initialisedData.indexOf(t)===-1&&(e._is_savable_=!0,this.initialisedData.push(t),this.setLocalData(e,t)),this.publishers.get(t)}set(t,s){this.publishers.set(t,s)}delete(t){return this.publishers.has(t)?(this.publishers.delete(t),!0):!1}async saveToLocalStorage(t=0){if(!(t!==j.saveId&&t%10!=0))try{if(!j.changed||j.saving)return;j.saving=!0,j.changed=!1;const s=Array.from(this.publishers.keys());let i=!1;for(const e of s){const o=this.publishers.get(e);if(!(o!=null&&o._is_savable_))continue;const n=o==null?void 0:o.get();n&&(this.localStorageData[e+"¤lang_"+J.getLanguage()]={lastModifiationMS:new Date().getTime(),data:n},i=!0)}if(i){const e=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem("publisher-proxies-data",e)}if(j.saving=!1,j.changed){j.saveId++;const e=j.saveId;setTimeout(()=>this.saveToLocalStorage(e),1e3)}}catch{j.saving=!1}}async compress(t,s){const i=new TextEncoder().encode(t),e=window,o=new e.CompressionStream(s),n=o.writable.getWriter();n.write(i),n.close();const a=await new Response(o.readable).arrayBuffer(),c=new Uint8Array(a);let h="";for(let d=0;d<c.length;d++)h+=String.fromCharCode(c[d]);return btoa(h)}async decompress(t,s){const i=atob(t),o=Uint8Array.from(i,d=>d.charCodeAt(0)).buffer,n=window,a=new n.DecompressionStream(s),c=a.writable.getWriter();c.write(o),c.close();const h=await new Response(a.readable).arrayBuffer();return new TextDecoder().decode(h)}},j.buildDate="Thu Apr 11 2024 14:38:32 GMT+0200 (Central European Summer Time)",j.changed=!1,j.saving=!1,j.saveId=0,j.instance=null,j.modifiedCollectore=[],j);const Er=new Set(["invalidate","onInvalidate","offInvalidate","onAssign","offAssign","startDynamicFilling","stopDynamicFilling","startTemplateFilling","stopTemplateFilling","onInternalMutation","offInternalMutation","set","get","$tag","_cachedGet_","_templateFillListeners_","_fillListeners_","_assignListeners_","_invalidateListeners_","_publishInternalMutation_","hasListener","delete","_mutationListeners_","_publishDynamicFilling_","_publishInvalidation_","_publishTemplateFilling_","_publishAssignement_","_proxies_","parent","_value_","_is_savable_","_lockInternalMutationPublishing_","_instanceCounter_","_assignmentId_"]);class Ne extends Ls{constructor(t,s=null){super(t,s);const i=new Proxy(this,{get:function(e,o){if(o==Symbol.toPrimitive)return()=>i.get();if(Er.has(o))return e[o];if(!e._proxies_.has(o)){const n=e._value_[o],a=new Ne(Ee(n)?n:{__value:n},e);a._proxies_.set("_parent_",i),e._proxies_.set(o,a)}return e._proxies_.get(o)},set:function(e,o,n){var c;if(o=="_value_")return e._value_=n,!0;if(o=="_cachedGet_")return e._cachedGet_=n,!0;if(o=="_assignmentId_")return e._assignmentId_=n,!0;if(o=="_is_savable_")return e._is_savable_=n,!0;if(o=="_instanceCounter_")return e._instanceCounter_=n,!0;if(!e._proxies_.has(o)){const h=new Ne({},e);h._proxies_.set("_parent_",i),e._proxies_.set(o,h)}return e._value_[o]!==n&&(e._value_[o]=n,e._publishDynamicFilling_(o,n),(c=e._proxies_.get(o))==null||c.set(Ee(n)?n:{__value:n})),!0},deleteProperty:function(e,o){var n;return e._publishDynamicFilling_(o,null),(n=e._proxies_.get(o))==null||n.set(null),delete e._value_[o]},has:function(e,o){return o in e._value_&&o!="_lockInternalMutationPublishing_"},defineProperty:function(e,o,n){return n&&"value"in n&&(e._value_[o]=n.value),!0},getOwnPropertyDescriptor:function(e,o){return{enumerable:!0,configurable:!0}},ownKeys:function(e){return e._value_.__value?Object.keys(e._value_.__value):Object.keys(e._value_)}});return i}toString(){return"hey"}valueOf(){return 2}getProperty(t,s){return t[s]}}class Nr extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=t=>{this.innerHTML=t.toString()}}connectedCallback(){var t;this.publisherId=this.getAttribute("publisher")||"",this.publisher=Ls.instances.get(parseInt(this.publisherId)),(t=this.publisher)==null||t.onAssign(this.onAssign)}disconnectedCallback(){var t;(t=this.publisher)==null||t.offAssign(this.onAssign)}}customElements.define("reactive-publisher-proxy",Nr);let Te=(k=class{static disable(){this.enabled&&(this.enabled=!1,Array.from(k.observedElements.keys()).forEach(t=>k.unObserve(t)))}static observe(t){if(!t||!k.enabled||k.observedElements.has(t))return;const s=new MutationObserver(k.onMutation),i={};i.childList=!0,i.subtree=!0,i.attributes=!0,i.attributeFilter=["data-bind"],s.observe(t,i),t.querySelectorAll("[data-bind]").forEach(e=>k.addPublisherListeners(e)),k.observedElements.set(t,s)}static unObserve(t){if(!t)return;const s=this.observedElements.get(t);s&&(s.disconnect(),t.querySelectorAll("[data-bind]").forEach(i=>k.removePublisherListeners(i)))}static onAdded(t){t.hasAttribute&&t.hasAttribute("data-bind")&&k.addPublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(s=>k.addPublisherListeners(s)):t.childNodes.forEach(s=>k.onAdded(s))}static onRemoved(t){t.hasAttribute&&t.hasAttribute("data-bind")&&k.removePublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(s=>k.removePublisherListeners(s)):t.childNodes.forEach(s=>k.onRemoved(s))}static onMutation(t){for(const s of t)switch(s.type){case"attributes":k.addPublisherListeners(s.target);break;case"childList":s.addedNodes.forEach(i=>{k.onAdded(i)}),s.removedNodes.forEach(i=>{k.onRemoved(i)});break}}static removePublisherListeners(t){const s=k.publisherListeners.get(t);s&&(k.publisherListeners.delete(t),s.forEach(i=>{var e;(e=i.publisher)==null||e.offAssign(i.onAssign)}))}static getVariablesDescriptor(t){let s=t.match(/(\$(?:\w+\\?\.?)+)/g);return s?s=s.map(i=>i.replace("$","")):s=[t],s=s.filter(i=>i.length>0),{expression:t.replace("\\",""),variables:s.map(i=>i.split(/\b\.\b/).map(e=>e.replace("\\","")))}}static getDataBindItems(t){return"attributes"in t?Array.from(t.attributes).filter(s=>s.name.indexOf("::")==0).map(s=>({propertyToUpdate:s.name.substring(2).replace(/-((html)|\w)/g,e=>e.substring(1).toUpperCase()),bindedVariablesDescriptor:k.getVariablesDescriptor(s.value)})):[]}static getSubPublisher(t,s){if(!s)return t;for(const i of s)if(i!="_self_"){if(!t)return null;t=t[i]}return t}static addPublisherListeners(t){k.removePublisherListeners(t);const s=J.getAncestorAttributeValue(t.parentNode||t.host||t,"dataProvider");if(!s)return;const i=L.getInstance().get(s),e=k.getDataBindItems(t),o=[];e.forEach(n=>{const a=n.bindedVariablesDescriptor,c=n.propertyToUpdate;for(const h of a.variables){const d=h;let f=i;f=k.getSubPublisher(i,d);const m=t,b={publisher:f,onAssign:()=>{const _=a.variables.map(D=>{var p;return(p=k.getSubPublisher(i,D))==null?void 0:p.get()});let C=a.expression,O=!1;if(_.length==1&&a.variables[0].join(".")==C.substring(1)){let D=_[0];D===null&&(D=""),m[c]=D;return}for(let D=0;D<_.length;D++){let p=_[D];const u=a.variables[D];p===null&&(O=!0,p=void 0),C=C.replace("$"+u.join("."),p)}if(C.indexOf("|")!=-1){const D=C.indexOf("|");if(D==0)C=rs.js(C.substring(1));else{const p=C.substring(0,D),u=C.substring(D+1),y=rs[p];C=O?"":y?y(u):C}}else C=O?"":C;m[c]=C}};f==null||f.onAssign(b.onAssign),o.push(b)}}),k.publisherListeners.set(t,o)}},k.observedElements=new Map,k.enabled=!0,k.publisherListeners=new Map,k);Te.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=Te);let X=class te{static shallowEqual(t,s,i=!0){const e=Object.keys(t),o=Object.keys(s);if(e.length!==o.length&&i)return!1;for(const n of e){const a=t[n],c=s[n];if(i?a!==c:a!=c)return!1}return!0}static deepEqual(t,s,i=!0){const e=Object.keys(t),o=Object.keys(s);if(e.length!==o.length&&i)return!1;for(const n of e){const a=t[n],c=s[n],h=te.isObject(a)&&te.isObject(c),d=i?a!==c:a!=c;if(h&&!te.deepEqual(a,c)||!h&&d)return!1}return!0}static isObject(t){return t!=null&&typeof t=="object"}static isUndefindOrNull(t){return t==null}static isEmpty(t){return te.isUndefindOrNull(t)?!0:Object.keys(t).length===0}static traverse(t,s,i=!1){for(const e of s){const o=t[e];if(o===void 0)return;i&&te.isObject(o)?t=Object.assign(Array.isArray(o)?[]:{},t,o):t=t[e]}return t}static getURLSearchArray(t,s=""){let i=[];for(let e in t){const o=t[e];s&&(e=s+"["+e+"]"),te.isObject(o)?i=[...i,...this.getURLSearchArray(o,e)]:i.push(`${e}=${o}`)}return i}static getURLSearchString(t){return te.getURLSearchArray(t,"").join("&")}};/**
1
+ (function(X){typeof define=="function"&&define.amd?define(X):X()})(function(){"use strict";var jt,k,L,Lr,t,Y;let X=class Mt{static getLanguage(){const t=document.documentElement.lang;return localStorage.getItem("SonicSelectedLanguage")||t}static getCookies(){return document.cookie.split(";").reduce((t,s)=>{const i=s.indexOf("=");return t[s.substring(0,i).trim()]=s.substring(i+1),t},{})}static everyAncestors(t,s){for(;t;){if(!s(t))return;t=t.parentNode||t.host}}static getAncestorAttributeValue(t,s){if(!t)return null;for(;!("hasAttribute"in t&&t.hasAttribute(s))&&(t.parentNode||t.host);)t=t.parentNode||t.host;return"hasAttribute"in t?t.getAttribute(s):null}static getApiConfiguration(t){const s=Mt.getAncestorAttributeValue(t,"token"),i=Mt.getAncestorAttributeValue(t,"addHTTPResponse")!=null,e=Mt.getAncestorAttributeValue(t,"serviceURL");let o=null,n=null;const a=Mt.getAncestorAttributeValue(t,"tokenProvider"),c=Mt.getAncestorAttributeValue(t,"eventsApiToken");s||(o=Mt.getAncestorAttributeValue(t,"userName"),n=Mt.getAncestorAttributeValue(t,"password"));const h=Mt.getAncestorAttributeValue(t,"credentials")||void 0,d=t.getAttribute("cache"),f=t.hasAttribute("blockUntilDone");return{serviceURL:e,token:s,userName:o,password:n,authToken:c,tokenProvider:a,addHTTPResponse:i,credentials:h,cache:d,blockUntilDone:f}}static getClosestElement(t,s){for(;!(t.nodeName&&t.nodeName.toLowerCase()===s)&&(t.parentNode||t.host);)t=t.parentNode||t.host;return t.nodeName?t:null}static getClosestForm(t){return Mt.getClosestElement(t,"form")}static async loadJS(t){return new Promise(async i=>{const e=document.createElement("script");e.src=t,e.onload=()=>i(!0),e.onerror=()=>i(!0),document.head.appendChild(e)})}static async loadCSS(t){return new Promise(async i=>{const e=document.createElement("link");e.type="text/css",e.rel="stylesheet",e.href=t,e.onload=()=>i(!0),e.onerror=()=>i(!0),document.head.appendChild(e)})}},rs=class{static ucFirst(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.substring(1)}static minutesDuration(t,s="",i="long"){s||(s=X.getLanguage());const e=(h,d)=>[Math.floor(h/d),h%d];function o(h,d,f){return new Intl.NumberFormat(h,{style:"unit",unit:d,unitDisplay:f}).format}const[n,a]=e(t,60),c=[];return n&&c.push(o(s,"hour",i)(n)),a&&c.push(o(s,"minute",i)(a)),new Intl.ListFormat(s,{style:"long",type:"conjunction"}).format(c)}static js(t){try{return Function("return "+t)()}catch{return""}}};function Ee(r){return typeof r=="object"&&r!=null}const Nr=async()=>new Promise(r=>{window.queueMicrotask(()=>r(null))}),Ls=__SONIC_PREFIX__=="sonic"?"publisher-proxies-data":__SONIC_PREFIX__+"-publisher-proxies-data";let Es=(jt=class{constructor(t,s){for(this._proxies_=new Map,this._is_savable_=!1,this._invalidateListeners_=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=s||null,this.root=this,this._instanceCounter_=0;this.root.parent;)this.root=this.root.parent}delete(){for(const t of this._proxies_.values())t.delete();this._invalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear(),jt.instances.delete(this._instanceCounter_)}hasListener(){return this._templateFillListeners_.size>0||this._assignListeners_.size>0||this._invalidateListeners_.size>0||this._mutationListeners_.size>0||this._fillListeners_.size>0}_publishInternalMutation_(t=!1){if(this._mutationListeners_.forEach(s=>s()),this._is_savable_&&!E.changed){E.changed=!0,E.saveId++;const s=E.saveId;setTimeout(()=>E.getInstance().saveToLocalStorage(s),1e3)}t||this.parent&&this.parent._publishInternalMutation_()}async _publishAssignement_(t=!1){this._assignmentId_++;const s=this._assignmentId_;if(await Nr(),s!==this._assignmentId_)return;const i=this.get();this._assignListeners_.forEach(e=>e(i)),this._publishInternalMutation_(t)}_publishInvalidation_(){this._invalidateListeners_.forEach(t=>t())}_publishDynamicFilling_(t,s){this._fillListeners_.forEach(i=>{i[t]!==s&&(i[t]=s)}),this._publishTemplateFilling_(t,s)}_publishTemplateFilling_(t,s){this._templateFillListeners_.forEach(i=>{const e=Object.getOwnPropertyDescriptor(i,t);e&&!e.set&&!e.writable||(i.propertyMap&&i.propertyMap[t]&&(t=i.propertyMap[t]),typeof i[t]<"u"&&i[t]!==s&&(i[t]=s))})}onAssign(t,s=!0){typeof t=="function"&&(this._assignListeners_.has(t)||(this._assignListeners_.add(t),s&&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_()}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 s in this._value_){let i=s;const e=this._value_[s];t.propertyMap&&t.propertyMap[s]&&(i=t.propertyMap[s]),typeof t[s]<"u"&&t[s]!==e&&(t[i]=e)}}stopTemplateFilling(t){this._templateFillListeners_.delete(t)}startDynamicFilling(t){this._fillListeners_.add(t);for(const s in this._value_){const i=this._value_[s];t[s]!==i&&(t[s]=i)}}stopDynamicFilling(t){this._fillListeners_.delete(t)}async set(t,s=!1){var o;if(this._value_===t||this._value_&&t&&Object.prototype.hasOwnProperty.call(this._value_,"__value")&&Object.prototype.hasOwnProperty.call(t,"__value")&&this._value_.__value===t.__value)return!0;const i=this._value_;if(this._value_=Ee(t)?t:{__value:t},this._cachedGet_=void 0,Object.prototype.hasOwnProperty.call(this._value_,"__value"))return await this._publishAssignement_(s),!0;for(const n in this._value_)this._value_[n]===void 0&&delete this._value_[n];if(this._proxies_.forEach((n,a)=>{this._value_[a]===void 0&&a!="_parent_"&&i[a]&&(this._value_[a]=null)}),await this._publishAssignement_(),Ee(this._value_))for(const n in this._value_){const a=t[n],h=Ee(a)?a:{__value:a};if(!this._proxies_.has(n)){this._publishDynamicFilling_(n,a);continue}await((o=this._proxies_.get(n))==null?void 0:o.set(h,!0)),this._publishDynamicFilling_(n,a)}return!0}get(){if(this._cachedGet_!==void 0)return this._cachedGet_;if(E.modifiedCollectore.length>0&&E.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_}get $tag(){return this._instanceCounter_||(jt.instancesCounter++,this._instanceCounter_=jt.instancesCounter),jt.instances.set(this._instanceCounter_,this),"<"+__SONIC_PREFIX__+'-publisher-proxy publisher="'+this._instanceCounter_+'"></'+__SONIC_PREFIX__+"-publisher-proxy>"}},jt.instances=new Map,jt.instancesCounter=0,jt),E=(k=class{constructor(){if(this.enabledLocaStorageProxies=[],this.publishers=new Map,this.localStorageData={},this.isLocalStrorageReady=null,this.initialisedData=[],k.instance!=null)throw"Singleton / use getInstance";k.instance=this,this.isLocalStrorageReady=this.cleanStorageData()}async cleanStorageData(){return new Promise(t=>{(async()=>{try{let i=localStorage.getItem(Ls),e=null;if(i&&(e=await this.decompress(i,"gzip")),e)try{this.localStorageData=JSON.parse(e)}catch{this.localStorageData={}}else i=await this.compress("{}","gzip"),localStorage.setItem(Ls,i),this.localStorageData={};const o=new Date().getTime()-1e3*60*60*12;for(const n in this.localStorageData)this.localStorageData[n].lastModifiationMS<o&&delete this.localStorageData[n];t(!0)}catch{window.requestAnimationFrame(()=>{t(!1)}),console.log("no publisher cache in this browser")}})()})}static getInstance(t){if(t){const s=k.instances.get(t);return s||(console.warn("No PublisherManager instance registered with id:",t,"creating new one"),new k)}return k.instance==null?new k:k.instance}static registerInstance(t,s){k.instances.has(t)&&console.warn("PublisherManager instance already registered with id: ",t),k.instances.set(t,s)}static get(t,s){return k.getInstance().get(t,s)}static collectModifiedPublisher(){k.modifiedCollectore.unshift(new Set)}static getModifiedPublishers(){return k.modifiedCollectore.shift()}static delete(t){return t?k.getInstance().delete(t):!1}async setLocalData(t,s){var i;await this.isLocalStrorageReady,t.set(((i=this.localStorageData[s+"¤lang_"+X.getLanguage()])==null?void 0:i.data)||t.get())}get(t,s){const i=(s==null?void 0:s.localStorageMode)==="enabled";if(!this.publishers.has(t)){const o={},n=new Ne(o);this.set(t,n)}const e=this.publishers.get(t);return i&&this.initialisedData.indexOf(t)===-1&&(e._is_savable_=!0,this.initialisedData.push(t),this.setLocalData(e,t)),this.publishers.get(t)}set(t,s){this.publishers.set(t,s)}delete(t){return this.publishers.has(t)?(this.publishers.delete(t),!0):!1}async saveToLocalStorage(t=0){if(!(t!==k.saveId&&t%10!=0))try{if(!k.changed||k.saving)return;k.saving=!0,k.changed=!1;const s=Array.from(this.publishers.keys());let i=!1;for(const e of s){const o=this.publishers.get(e);if(!(o!=null&&o._is_savable_))continue;const n=o==null?void 0:o.get();n&&(this.localStorageData[e+"¤lang_"+X.getLanguage()]={lastModifiationMS:new Date().getTime(),data:n},i=!0)}if(i){const e=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem(Ls,e)}if(k.saving=!1,k.changed){k.saveId++;const e=k.saveId;setTimeout(()=>this.saveToLocalStorage(e),1e3)}}catch{k.saving=!1}}async compress(t,s){const i=new TextEncoder().encode(t),e=window,o=new e.CompressionStream(s),n=o.writable.getWriter();n.write(i),n.close();const a=await new Response(o.readable).arrayBuffer(),c=new Uint8Array(a);let h="";for(let d=0;d<c.length;d++)h+=String.fromCharCode(c[d]);return btoa(h)}async decompress(t,s){const i=atob(t),o=Uint8Array.from(i,d=>d.charCodeAt(0)).buffer,n=window,a=new n.DecompressionStream(s),c=a.writable.getWriter();c.write(o),c.close();const h=await new Response(a.readable).arrayBuffer();return new TextDecoder().decode(h)}},k.buildDate="Mon Apr 22 2024 14:11:14 GMT+0200 (Central European Summer Time)",k.changed=!1,k.saving=!1,k.saveId=0,k.instance=null,k.instances=new Map,k.modifiedCollectore=[],k);const Ns=window;Ns.SonicPublisherManager||(Ns.SonicPublisherManager=E),Ns.SonicPublisherManager.registerInstance(E.getInstance());const Tr=new Set(["invalidate","onInvalidate","offInvalidate","onAssign","offAssign","startDynamicFilling","stopDynamicFilling","startTemplateFilling","stopTemplateFilling","onInternalMutation","offInternalMutation","set","get","$tag","_cachedGet_","_templateFillListeners_","_fillListeners_","_assignListeners_","_invalidateListeners_","_publishInternalMutation_","hasListener","delete","_mutationListeners_","_publishDynamicFilling_","_publishInvalidation_","_publishTemplateFilling_","_publishAssignement_","_proxies_","parent","_value_","_is_savable_","_lockInternalMutationPublishing_","_instanceCounter_","_assignmentId_"]);class Ne extends Es{constructor(t,s=null){super(t,s);const i=new Proxy(this,{get:function(e,o){if(o==Symbol.toPrimitive)return()=>i.get();if(Tr.has(o))return e[o];if(!e._proxies_.has(o)){const n=e._value_[o],a=new Ne(Ee(n)?n:{__value:n},e);a._proxies_.set("_parent_",i),e._proxies_.set(o,a)}return e._proxies_.get(o)},set:function(e,o,n){var c;if(o=="_value_")return e._value_=n,!0;if(o=="_cachedGet_")return e._cachedGet_=n,!0;if(o=="_assignmentId_")return e._assignmentId_=n,!0;if(o=="_is_savable_")return e._is_savable_=n,!0;if(o=="_instanceCounter_")return e._instanceCounter_=n,!0;if(!e._proxies_.has(o)){const h=new Ne({},e);h._proxies_.set("_parent_",i),e._proxies_.set(o,h)}return e._value_[o]!==n&&(e._value_[o]=n,e._publishDynamicFilling_(o,n),(c=e._proxies_.get(o))==null||c.set(Ee(n)?n:{__value:n})),!0},deleteProperty:function(e,o){var n;return e._publishDynamicFilling_(o,null),(n=e._proxies_.get(o))==null||n.set(null),delete e._value_[o]},has:function(e,o){return o in e._value_&&o!="_lockInternalMutationPublishing_"},defineProperty:function(e,o,n){return n&&"value"in n&&(e._value_[o]=n.value),!0},getOwnPropertyDescriptor:function(e,o){return{enumerable:!0,configurable:!0}},ownKeys:function(e){return e._value_.__value?Object.keys(e._value_.__value):Object.keys(e._value_)}});return i}toString(){return"hey"}valueOf(){return 2}getProperty(t,s){return t[s]}}class jr extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=t=>{this.innerHTML=t.toString()}}connectedCallback(){var t;this.publisherId=this.getAttribute("publisher")||"",this.publisher=Es.instances.get(parseInt(this.publisherId)),(t=this.publisher)==null||t.onAssign(this.onAssign)}disconnectedCallback(){var t;(t=this.publisher)==null||t.offAssign(this.onAssign)}}customElements.define(__SONIC_PREFIX__+"-publisher-proxy",jr);let os=(L=class{static disable(){this.enabled&&(this.enabled=!1,Array.from(L.observedElements.keys()).forEach(t=>L.unObserve(t)))}static observe(t){if(!t||!L.enabled||L.observedElements.has(t))return;const s=new MutationObserver(L.onMutation),i={};i.childList=!0,i.subtree=!0,i.attributes=!0,i.attributeFilter=["data-bind"],s.observe(t,i),t.querySelectorAll("[data-bind]").forEach(e=>L.addPublisherListeners(e)),L.observedElements.set(t,s)}static unObserve(t){if(!t)return;const s=this.observedElements.get(t);s&&(s.disconnect(),t.querySelectorAll("[data-bind]").forEach(i=>L.removePublisherListeners(i)))}static onAdded(t){t.hasAttribute&&t.hasAttribute("data-bind")&&L.addPublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(s=>L.addPublisherListeners(s)):t.childNodes.forEach(s=>L.onAdded(s))}static onRemoved(t){t.hasAttribute&&t.hasAttribute("data-bind")&&L.removePublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(s=>L.removePublisherListeners(s)):t.childNodes.forEach(s=>L.onRemoved(s))}static onMutation(t){for(const s of t)switch(s.type){case"attributes":L.addPublisherListeners(s.target);break;case"childList":s.addedNodes.forEach(i=>{L.onAdded(i)}),s.removedNodes.forEach(i=>{L.onRemoved(i)});break}}static removePublisherListeners(t){const s=L.publisherListeners.get(t);s&&(L.publisherListeners.delete(t),s.forEach(i=>{var e;(e=i.publisher)==null||e.offAssign(i.onAssign)}))}static getVariablesDescriptor(t){let s=t.match(/(\$(?:\w+\\?\.?)+)/g);return s?s=s.map(i=>i.replace("$","")):s=[t],s=s.filter(i=>i.length>0),{expression:t.replace("\\",""),variables:s.map(i=>i.split(/\b\.\b/).map(e=>e.replace("\\","")))}}static getDataBindItems(t){return"attributes"in t?Array.from(t.attributes).filter(s=>s.name.indexOf("::")==0).map(s=>({propertyToUpdate:s.name.substring(2).replace(/-((html)|\w)/g,e=>e.substring(1).toUpperCase()),bindedVariablesDescriptor:L.getVariablesDescriptor(s.value)})):[]}static getSubPublisher(t,s){if(!s)return t;for(const i of s)if(i!="_self_"){if(!t)return null;t=t[i]}return t}static addPublisherListeners(t){L.removePublisherListeners(t);const s=X.getAncestorAttributeValue(t.parentNode||t.host||t,"dataProvider");if(!s)return;const i=E.getInstance().get(s),e=L.getDataBindItems(t),o=[];e.forEach(n=>{const a=n.bindedVariablesDescriptor,c=n.propertyToUpdate;for(const h of a.variables){const d=h;let f=i;f=L.getSubPublisher(i,d);const m=t,b={publisher:f,onAssign:()=>{const _=a.variables.map(D=>{var p;return(p=L.getSubPublisher(i,D))==null?void 0:p.get()});let C=a.expression,O=!1;if(_.length==1&&a.variables[0].join(".")==C.substring(1)){let D=_[0];D===null&&(D=""),m[c]=D;return}for(let D=0;D<_.length;D++){let p=_[D];const u=a.variables[D];p===null&&(O=!0,p=void 0),C=C.replace("$"+u.join("."),p)}if(C.indexOf("|")!=-1){const D=C.indexOf("|");if(D==0)C=rs.js(C.substring(1));else{const p=C.substring(0,D),u=C.substring(D+1),y=rs[p];C=O?"":y?y(u):C}}else C=O?"":C;m[c]=C}};f==null||f.onAssign(b.onAssign),o.push(b)}}),L.publisherListeners.set(t,o)}},L.observedElements=new Map,L.enabled=!0,L.publisherListeners=new Map,L);os.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=os);let J=class te{static shallowEqual(t,s,i=!0){const e=Object.keys(t),o=Object.keys(s);if(e.length!==o.length&&i)return!1;for(const n of e){const a=t[n],c=s[n];if(i?a!==c:a!=c)return!1}return!0}static deepEqual(t,s,i=!0){const e=Object.keys(t),o=Object.keys(s);if(e.length!==o.length&&i)return!1;for(const n of e){const a=t[n],c=s[n],h=te.isObject(a)&&te.isObject(c),d=i?a!==c:a!=c;if(h&&!te.deepEqual(a,c)||!h&&d)return!1}return!0}static isObject(t){return t!=null&&typeof t=="object"}static isUndefindOrNull(t){return t==null}static isEmpty(t){return te.isUndefindOrNull(t)?!0:Object.keys(t).length===0}static traverse(t,s,i=!1){for(const e of s){const o=t[e];if(o===void 0)return;i&&te.isObject(o)?t=Object.assign(Array.isArray(o)?[]:{},t,o):t=t[e]}return t}static getURLSearchArray(t,s=""){let i=[];for(let e in t){const o=t[e];s&&(e=s+"["+e+"]"),te.isObject(o)?i=[...i,...this.getURLSearchArray(o,e)]:i.push(`${e}=${o}`)}return i}static getURLSearchString(t){return te.getURLSearchArray(t,"").join("&")}};/**
2
2
  * @license
3
3
  * Copyright 2017 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
@@ -6,45 +6,45 @@
6
6
  * @license
7
7
  * Copyright 2019 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */const os=globalThis,Es=os.ShadowRoot&&(os.ShadyCSS===void 0||os.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ns=Symbol(),xi=new WeakMap;let Pi=class{constructor(t,s,i){if(this._$cssResult$=!0,i!==Ns)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=s}get styleSheet(){let t=this.o;const s=this.t;if(Es&&t===void 0){const i=s!==void 0&&s.length===1;i&&(t=xi.get(s)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&xi.set(s,t))}return t}toString(){return this.cssText}};const Tr=r=>new Pi(typeof r=="string"?r:r+"",void 0,Ns),P=(r,...t)=>{const s=r.length===1?r[0]:t.reduce((i,e,o)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+r[o+1],r[0]);return new Pi(s,r,Ns)},jr=(r,t)=>{if(Es)r.adoptedStyleSheets=t.map(s=>s instanceof CSSStyleSheet?s:s.styleSheet);else for(const s of t){const i=document.createElement("style"),e=os.litNonce;e!==void 0&&i.setAttribute("nonce",e),i.textContent=s.cssText,r.appendChild(i)}},$i=Es?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let s="";for(const i of t.cssRules)s+=i.cssText;return Tr(s)})(r):r;/**
9
+ */const ns=globalThis,Ts=ns.ShadowRoot&&(ns.ShadyCSS===void 0||ns.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,js=Symbol(),$i=new WeakMap;let Ci=class{constructor(t,s,i){if(this._$cssResult$=!0,i!==js)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=s}get styleSheet(){let t=this.o;const s=this.t;if(Ts&&t===void 0){const i=s!==void 0&&s.length===1;i&&(t=$i.get(s)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&$i.set(s,t))}return t}toString(){return this.cssText}};const Mr=r=>new Ci(typeof r=="string"?r:r+"",void 0,js),P=(r,...t)=>{const s=r.length===1?r[0]:t.reduce((i,e,o)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+r[o+1],r[0]);return new Ci(s,r,js)},Ir=(r,t)=>{if(Ts)r.adoptedStyleSheets=t.map(s=>s instanceof CSSStyleSheet?s:s.styleSheet);else for(const s of t){const i=document.createElement("style"),e=ns.litNonce;e!==void 0&&i.setAttribute("nonce",e),i.textContent=s.cssText,r.appendChild(i)}},Ai=Ts?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let s="";for(const i of t.cssRules)s+=i.cssText;return Mr(s)})(r):r;/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const{is:Mr,defineProperty:Ir,getOwnPropertyDescriptor:zr,getOwnPropertyNames:Fr,getOwnPropertySymbols:Rr,getPrototypeOf:Ur}=Object,Vt=globalThis,Ci=Vt.trustedTypes,Vr=Ci?Ci.emptyScript:"",Ts=Vt.reactiveElementPolyfillSupport,je=(r,t)=>r,ns={toAttribute(r,t){switch(t){case Boolean:r=r?Vr:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let s=r;switch(t){case Boolean:s=r!==null;break;case Number:s=r===null?null:Number(r);break;case Object:case Array:try{s=JSON.parse(r)}catch{s=null}}return s}},js=(r,t)=>!Mr(r,t),Ai={attribute:!0,type:String,converter:ns,reflect:!1,hasChanged:js};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Vt.litPropertyMetadata??(Vt.litPropertyMetadata=new WeakMap);let xe=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=Ai){if(s.state&&(s.attribute=!1),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),e=this.getPropertyDescriptor(t,i,s);e!==void 0&&Ir(this.prototype,t,e)}}static getPropertyDescriptor(t,s,i){const{get:e,set:o}=zr(this.prototype,t)??{get(){return this[s]},set(n){this[s]=n}};return{get(){return e==null?void 0:e.call(this)},set(n){const a=e==null?void 0:e.call(this);o.call(this,n),this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ai}static _$Ei(){if(this.hasOwnProperty(je("elementProperties")))return;const t=Ur(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(je("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(je("properties"))){const s=this.properties,i=[...Fr(s),...Rr(s)];for(const e of i)this.createProperty(e,s[e])}const t=this[Symbol.metadata];if(t!==null){const s=litPropertyMetadata.get(t);if(s!==void 0)for(const[i,e]of s)this.elementProperties.set(i,e)}this._$Eh=new Map;for(const[s,i]of this.elementProperties){const e=this._$Eu(s,i);e!==void 0&&this._$Eh.set(e,s)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const s=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const e of i)s.unshift($i(e))}else t!==void 0&&s.push($i(t));return s}static _$Eu(t,s){const i=s.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(s=>this.enableUpdating=s),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(s=>s(this))}addController(t){var s;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((s=t.hostConnected)==null||s.call(t))}removeController(t){var s;(s=this._$EO)==null||s.delete(t)}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return jr(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(s=>{var i;return(i=s.hostConnected)==null?void 0:i.call(s)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(s=>{var i;return(i=s.hostDisconnected)==null?void 0:i.call(s)})}attributeChangedCallback(t,s,i){this._$AK(t,i)}_$EC(t,s){var o;const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(e!==void 0&&i.reflect===!0){const n=(((o=i.converter)==null?void 0:o.toAttribute)!==void 0?i.converter:ns).toAttribute(s,i.type);this._$Em=t,n==null?this.removeAttribute(e):this.setAttribute(e,n),this._$Em=null}}_$AK(t,s){var o;const i=this.constructor,e=i._$Eh.get(t);if(e!==void 0&&this._$Em!==e){const n=i.getPropertyOptions(e),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((o=n.converter)==null?void 0:o.fromAttribute)!==void 0?n.converter:ns;this._$Em=e,this[e]=a.fromAttribute(s,n.type),this._$Em=null}}requestUpdate(t,s,i){if(t!==void 0){if(i??(i=this.constructor.getPropertyOptions(t)),!(i.hasChanged??js)(this[t],s))return;this.P(t,s,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),i.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(s){Promise.reject(s)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,n]of this._$Ep)this[o]=n;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[o,n]of e)n.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],n)}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),(i=this._$EO)==null||i.forEach(e=>{var o;return(o=e.hostUpdate)==null?void 0:o.call(e)}),this.update(s)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(s)}willUpdate(t){}_$AE(t){var s;(s=this._$EO)==null||s.forEach(i=>{var e;return(e=i.hostUpdated)==null?void 0:e.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(s=>this._$EC(s,this[s]))),this._$EU()}updated(t){}firstUpdated(t){}};xe.elementStyles=[],xe.shadowRootOptions={mode:"open"},xe[je("elementProperties")]=new Map,xe[je("finalized")]=new Map,Ts==null||Ts({ReactiveElement:xe}),(Vt.reactiveElementVersions??(Vt.reactiveElementVersions=[])).push("2.0.4");/**
13
+ */const{is:Rr,defineProperty:Fr,getOwnPropertyDescriptor:zr,getOwnPropertyNames:Ur,getOwnPropertySymbols:Vr,getPrototypeOf:Br}=Object,Vt=globalThis,Si=Vt.trustedTypes,Hr=Si?Si.emptyScript:"",Ms=Vt.reactiveElementPolyfillSupport,Te=(r,t)=>r,as={toAttribute(r,t){switch(t){case Boolean:r=r?Hr:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let s=r;switch(t){case Boolean:s=r!==null;break;case Number:s=r===null?null:Number(r);break;case Object:case Array:try{s=JSON.parse(r)}catch{s=null}}return s}},Is=(r,t)=>!Rr(r,t),Oi={attribute:!0,type:String,converter:as,reflect:!1,hasChanged:Is};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Vt.litPropertyMetadata??(Vt.litPropertyMetadata=new WeakMap);let xe=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=Oi){if(s.state&&(s.attribute=!1),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),e=this.getPropertyDescriptor(t,i,s);e!==void 0&&Fr(this.prototype,t,e)}}static getPropertyDescriptor(t,s,i){const{get:e,set:o}=zr(this.prototype,t)??{get(){return this[s]},set(n){this[s]=n}};return{get(){return e==null?void 0:e.call(this)},set(n){const a=e==null?void 0:e.call(this);o.call(this,n),this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Oi}static _$Ei(){if(this.hasOwnProperty(Te("elementProperties")))return;const t=Br(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Te("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Te("properties"))){const s=this.properties,i=[...Ur(s),...Vr(s)];for(const e of i)this.createProperty(e,s[e])}const t=this[Symbol.metadata];if(t!==null){const s=litPropertyMetadata.get(t);if(s!==void 0)for(const[i,e]of s)this.elementProperties.set(i,e)}this._$Eh=new Map;for(const[s,i]of this.elementProperties){const e=this._$Eu(s,i);e!==void 0&&this._$Eh.set(e,s)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const s=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const e of i)s.unshift(Ai(e))}else t!==void 0&&s.push(Ai(t));return s}static _$Eu(t,s){const i=s.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(s=>this.enableUpdating=s),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(s=>s(this))}addController(t){var s;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((s=t.hostConnected)==null||s.call(t))}removeController(t){var s;(s=this._$EO)==null||s.delete(t)}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ir(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(s=>{var i;return(i=s.hostConnected)==null?void 0:i.call(s)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(s=>{var i;return(i=s.hostDisconnected)==null?void 0:i.call(s)})}attributeChangedCallback(t,s,i){this._$AK(t,i)}_$EC(t,s){var o;const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(e!==void 0&&i.reflect===!0){const n=(((o=i.converter)==null?void 0:o.toAttribute)!==void 0?i.converter:as).toAttribute(s,i.type);this._$Em=t,n==null?this.removeAttribute(e):this.setAttribute(e,n),this._$Em=null}}_$AK(t,s){var o;const i=this.constructor,e=i._$Eh.get(t);if(e!==void 0&&this._$Em!==e){const n=i.getPropertyOptions(e),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((o=n.converter)==null?void 0:o.fromAttribute)!==void 0?n.converter:as;this._$Em=e,this[e]=a.fromAttribute(s,n.type),this._$Em=null}}requestUpdate(t,s,i){if(t!==void 0){if(i??(i=this.constructor.getPropertyOptions(t)),!(i.hasChanged??Is)(this[t],s))return;this.P(t,s,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),i.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(s){Promise.reject(s)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,n]of this._$Ep)this[o]=n;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[o,n]of e)n.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],n)}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),(i=this._$EO)==null||i.forEach(e=>{var o;return(o=e.hostUpdate)==null?void 0:o.call(e)}),this.update(s)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(s)}willUpdate(t){}_$AE(t){var s;(s=this._$EO)==null||s.forEach(i=>{var e;return(e=i.hostUpdated)==null?void 0:e.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(s=>this._$EC(s,this[s]))),this._$EU()}updated(t){}firstUpdated(t){}};xe.elementStyles=[],xe.shadowRootOptions={mode:"open"},xe[Te("elementProperties")]=new Map,xe[Te("finalized")]=new Map,Ms==null||Ms({ReactiveElement:xe}),(Vt.reactiveElementVersions??(Vt.reactiveElementVersions=[])).push("2.0.4");/**
14
14
  * @license
15
15
  * Copyright 2017 Google LLC
16
16
  * SPDX-License-Identifier: BSD-3-Clause
17
- */const Br={attribute:!0,type:String,converter:ns,reflect:!1,hasChanged:js},Hr=(r=Br,t,s)=>{const{kind:i,metadata:e}=s;let o=globalThis.litPropertyMetadata.get(e);if(o===void 0&&globalThis.litPropertyMetadata.set(e,o=new Map),o.set(s.name,r),i==="accessor"){const{name:n}=s;return{set(a){const c=t.get.call(this);t.set.call(this,a),this.requestUpdate(n,c,r)},init(a){return a!==void 0&&this.P(n,void 0,r),a}}}if(i==="setter"){const{name:n}=s;return function(a){const c=this[n];t.call(this,a),this.requestUpdate(n,c,r)}}throw Error("Unsupported decorator location: "+i)};function l(r){return(t,s)=>typeof s=="object"?Hr(r,t,s):((i,e,o)=>{const n=e.hasOwnProperty(o);return e.constructor.createProperty(o,n?{...i,wrapped:!0}:i),n?Object.getOwnPropertyDescriptor(e,o):void 0})(r,t,s)}/**
17
+ */const qr={attribute:!0,type:String,converter:as,reflect:!1,hasChanged:Is},Wr=(r=qr,t,s)=>{const{kind:i,metadata:e}=s;let o=globalThis.litPropertyMetadata.get(e);if(o===void 0&&globalThis.litPropertyMetadata.set(e,o=new Map),o.set(s.name,r),i==="accessor"){const{name:n}=s;return{set(a){const c=t.get.call(this);t.set.call(this,a),this.requestUpdate(n,c,r)},init(a){return a!==void 0&&this.P(n,void 0,r),a}}}if(i==="setter"){const{name:n}=s;return function(a){const c=this[n];t.call(this,a),this.requestUpdate(n,c,r)}}throw Error("Unsupported decorator location: "+i)};function l(r){return(t,s)=>typeof s=="object"?Wr(r,t,s):((i,e,o)=>{const n=e.hasOwnProperty(o);return e.constructor.createProperty(o,n?{...i,wrapped:!0}:i),n?Object.getOwnPropertyDescriptor(e,o):void 0})(r,t,s)}/**
18
18
  * @license
19
19
  * Copyright 2017 Google LLC
20
20
  * SPDX-License-Identifier: BSD-3-Clause
21
- */function T(r){return l({...r,state:!0,attribute:!1})}/**
21
+ */function j(r){return l({...r,state:!0,attribute:!1})}/**
22
22
  * @license
23
23
  * Copyright 2017 Google LLC
24
24
  * SPDX-License-Identifier: BSD-3-Clause
25
- */const as=(r,t,s)=>(s.configurable=!0,s.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(r,t,s),s);/**
25
+ */const ls=(r,t,s)=>(s.configurable=!0,s.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(r,t,s),s);/**
26
26
  * @license
27
27
  * Copyright 2017 Google LLC
28
28
  * SPDX-License-Identifier: BSD-3-Clause
29
- */function ee(r,t){return(s,i,e)=>{const o=n=>{var a;return((a=n.renderRoot)==null?void 0:a.querySelector(r))??null};if(t){const{get:n,set:a}=typeof i=="object"?s:e??(()=>{const c=Symbol();return{get(){return this[c]},set(h){this[c]=h}}})();return as(s,i,{get(){let c=n.call(this);return c===void 0&&(c=o(this),(c!==null||this.hasUpdated)&&a.call(this,c)),c}})}return as(s,i,{get(){return o(this)}})}}/**
29
+ */function ee(r,t){return(s,i,e)=>{const o=n=>{var a;return((a=n.renderRoot)==null?void 0:a.querySelector(r))??null};if(t){const{get:n,set:a}=typeof i=="object"?s:e??(()=>{const c=Symbol();return{get(){return this[c]},set(h){this[c]=h}}})();return ls(s,i,{get(){let c=n.call(this);return c===void 0&&(c=o(this),(c!==null||this.hasUpdated)&&a.call(this,c)),c}})}return ls(s,i,{get(){return o(this)}})}}/**
30
30
  * @license
31
31
  * Copyright 2021 Google LLC
32
32
  * SPDX-License-Identifier: BSD-3-Clause
33
- */function se(r){return(t,s)=>{const{slot:i,selector:e}=r??{},o="slot"+(i?`[name=${i}]`:":not([name])");return as(t,s,{get(){var c;const n=(c=this.renderRoot)==null?void 0:c.querySelector(o),a=(n==null?void 0:n.assignedElements(r))??[];return e===void 0?a:a.filter(h=>h.matches(e))}})}}/**
33
+ */function se(r){return(t,s)=>{const{slot:i,selector:e}=r??{},o="slot"+(i?`[name=${i}]`:":not([name])");return ls(t,s,{get(){var c;const n=(c=this.renderRoot)==null?void 0:c.querySelector(o),a=(n==null?void 0:n.assignedElements(r))??[];return e===void 0?a:a.filter(h=>h.matches(e))}})}}/**
34
34
  * @license
35
35
  * Copyright 2017 Google LLC
36
36
  * SPDX-License-Identifier: BSD-3-Clause
37
- */function st(r){return(t,s)=>{const{slot:i}=r??{},e="slot"+(i?`[name=${i}]`:":not([name])");return as(t,s,{get(){var n;const o=(n=this.renderRoot)==null?void 0:n.querySelector(e);return(o==null?void 0:o.assignedNodes(r))??[]}})}}/**
37
+ */function st(r){return(t,s)=>{const{slot:i}=r??{},e="slot"+(i?`[name=${i}]`:":not([name])");return ls(t,s,{get(){var n;const o=(n=this.renderRoot)==null?void 0:n.querySelector(e);return(o==null?void 0:o.assignedNodes(r))??[]}})}}/**
38
38
  * @license
39
39
  * Copyright 2017 Google LLC
40
40
  * SPDX-License-Identifier: BSD-3-Clause
41
- */const Me=globalThis,ls=Me.trustedTypes,Si=ls?ls.createPolicy("lit-html",{createHTML:r=>r}):void 0,Ms="$lit$",It=`lit$${(Math.random()+"").slice(9)}$`,Is="?"+It,qr=`<${Is}>`,ie=document,Ie=()=>ie.createComment(""),ze=r=>r===null||typeof r!="object"&&typeof r!="function",Oi=Array.isArray,Di=r=>Oi(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",zs=`[
42
- \f\r]`,Fe=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ki=/-->/g,Li=/>/g,re=RegExp(`>|${zs}(?:([^\\s"'>=/]+)(${zs}*=${zs}*(?:[^
43
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ei=/'/g,Ni=/"/g,Ti=/^(?:script|style|textarea|title)$/i,Wr=r=>(t,...s)=>({_$litType$:r,strings:t,values:s}),g=Wr(1),ft=Symbol.for("lit-noChange"),$=Symbol.for("lit-nothing"),ji=new WeakMap,oe=ie.createTreeWalker(ie,129);function Mi(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Si!==void 0?Si.createHTML(t):t}const Ii=(r,t)=>{const s=r.length-1,i=[];let e,o=t===2?"<svg>":"",n=Fe;for(let a=0;a<s;a++){const c=r[a];let h,d,f=-1,m=0;for(;m<c.length&&(n.lastIndex=m,d=n.exec(c),d!==null);)m=n.lastIndex,n===Fe?d[1]==="!--"?n=ki:d[1]!==void 0?n=Li:d[2]!==void 0?(Ti.test(d[2])&&(e=RegExp("</"+d[2],"g")),n=re):d[3]!==void 0&&(n=re):n===re?d[0]===">"?(n=e??Fe,f=-1):d[1]===void 0?f=-2:(f=n.lastIndex-d[2].length,h=d[1],n=d[3]===void 0?re:d[3]==='"'?Ni:Ei):n===Ni||n===Ei?n=re:n===ki||n===Li?n=Fe:(n=re,e=void 0);const b=n===re&&r[a+1].startsWith("/>")?" ":"";o+=n===Fe?c+qr:f>=0?(i.push(h),c.slice(0,f)+Ms+c.slice(f)+It+b):c+It+(f===-2?a:b)}return[Mi(r,o+(r[s]||"<?>")+(t===2?"</svg>":"")),i]};class Re{constructor({strings:t,_$litType$:s},i){let e;this.parts=[];let o=0,n=0;const a=t.length-1,c=this.parts,[h,d]=Ii(t,s);if(this.el=Re.createElement(h,i),oe.currentNode=this.el.content,s===2){const f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(e=oe.nextNode())!==null&&c.length<a;){if(e.nodeType===1){if(e.hasAttributes())for(const f of e.getAttributeNames())if(f.endsWith(Ms)){const m=d[n++],b=e.getAttribute(f).split(It),_=/([.?@])?(.*)/.exec(m);c.push({type:1,index:o,name:_[2],strings:b,ctor:_[1]==="."?Fi:_[1]==="?"?Ri:_[1]==="@"?Ui:Ue}),e.removeAttribute(f)}else f.startsWith(It)&&(c.push({type:6,index:o}),e.removeAttribute(f));if(Ti.test(e.tagName)){const f=e.textContent.split(It),m=f.length-1;if(m>0){e.textContent=ls?ls.emptyScript:"";for(let b=0;b<m;b++)e.append(f[b],Ie()),oe.nextNode(),c.push({type:2,index:++o});e.append(f[m],Ie())}}}else if(e.nodeType===8)if(e.data===Is)c.push({type:2,index:o});else{let f=-1;for(;(f=e.data.indexOf(It,f+1))!==-1;)c.push({type:7,index:o}),f+=It.length-1}o++}}static createElement(t,s){const i=ie.createElement("template");return i.innerHTML=t,i}}function ne(r,t,s=r,i){var n,a;if(t===ft)return t;let e=i!==void 0?(n=s._$Co)==null?void 0:n[i]:s._$Cl;const o=ze(t)?void 0:t._$litDirective$;return(e==null?void 0:e.constructor)!==o&&((a=e==null?void 0:e._$AO)==null||a.call(e,!1),o===void 0?e=void 0:(e=new o(r),e._$AT(r,s,i)),i!==void 0?(s._$Co??(s._$Co=[]))[i]=e:s._$Cl=e),e!==void 0&&(t=ne(r,e._$AS(r,t.values),e,i)),t}class zi{constructor(t,s){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=s}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:s},parts:i}=this._$AD,e=((t==null?void 0:t.creationScope)??ie).importNode(s,!0);oe.currentNode=e;let o=oe.nextNode(),n=0,a=0,c=i[0];for(;c!==void 0;){if(n===c.index){let h;c.type===2?h=new Pe(o,o.nextSibling,this,t):c.type===1?h=new c.ctor(o,c.name,c.strings,this,t):c.type===6&&(h=new Vi(o,this,t)),this._$AV.push(h),c=i[++a]}n!==(c==null?void 0:c.index)&&(o=oe.nextNode(),n++)}return oe.currentNode=ie,e}p(t){let s=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,s),s+=i.strings.length-2):i._$AI(t[s])),s++}}class Pe{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,s,i,e){this.type=2,this._$AH=$,this._$AN=void 0,this._$AA=t,this._$AB=s,this._$AM=i,this.options=e,this._$Cv=(e==null?void 0:e.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const s=this._$AM;return s!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=s.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,s=this){t=ne(this,t,s),ze(t)?t===$||t==null||t===""?(this._$AH!==$&&this._$AR(),this._$AH=$):t!==this._$AH&&t!==ft&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Di(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==$&&ze(this._$AH)?this._$AA.nextSibling.data=t:this.T(ie.createTextNode(t)),this._$AH=t}$(t){var o;const{values:s,_$litType$:i}=t,e=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=Re.createElement(Mi(i.h,i.h[0]),this.options)),i);if(((o=this._$AH)==null?void 0:o._$AD)===e)this._$AH.p(s);else{const n=new zi(e,this),a=n.u(this.options);n.p(s),this.T(a),this._$AH=n}}_$AC(t){let s=ji.get(t.strings);return s===void 0&&ji.set(t.strings,s=new Re(t)),s}k(t){Oi(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let i,e=0;for(const o of t)e===s.length?s.push(i=new Pe(this.S(Ie()),this.S(Ie()),this,this.options)):i=s[e],i._$AI(o),e++;e<s.length&&(this._$AR(i&&i._$AB.nextSibling,e),s.length=e)}_$AR(t=this._$AA.nextSibling,s){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,s);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var s;this._$AM===void 0&&(this._$Cv=t,(s=this._$AP)==null||s.call(this,t))}}class Ue{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,s,i,e,o){this.type=1,this._$AH=$,this._$AN=void 0,this.element=t,this.name=s,this._$AM=e,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=$}_$AI(t,s=this,i,e){const o=this.strings;let n=!1;if(o===void 0)t=ne(this,t,s,0),n=!ze(t)||t!==this._$AH&&t!==ft,n&&(this._$AH=t);else{const a=t;let c,h;for(t=o[0],c=0;c<o.length-1;c++)h=ne(this,a[i+c],s,c),h===ft&&(h=this._$AH[c]),n||(n=!ze(h)||h!==this._$AH[c]),h===$?t=$:t!==$&&(t+=(h??"")+o[c+1]),this._$AH[c]=h}n&&!e&&this.j(t)}j(t){t===$?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Fi extends Ue{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===$?void 0:t}}class Ri extends Ue{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==$)}}class Ui extends Ue{constructor(t,s,i,e,o){super(t,s,i,e,o),this.type=5}_$AI(t,s=this){if((t=ne(this,t,s,0)??$)===ft)return;const i=this._$AH,e=t===$&&i!==$||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==$&&(i===$||e);e&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var s;typeof this._$AH=="function"?this._$AH.call(((s=this.options)==null?void 0:s.host)??this.element,t):this._$AH.handleEvent(t)}}class Vi{constructor(t,s,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=s,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ne(this,t)}}const Kr={P:Ms,A:It,C:Is,M:1,L:Ii,R:zi,D:Di,V:ne,I:Pe,H:Ue,N:Ri,U:Ui,B:Fi,F:Vi},Fs=Me.litHtmlPolyfillSupport;Fs==null||Fs(Re,Pe),(Me.litHtmlVersions??(Me.litHtmlVersions=[])).push("3.1.2");const Zr=(r,t,s)=>{const i=(s==null?void 0:s.renderBefore)??t;let e=i._$litPart$;if(e===void 0){const o=(s==null?void 0:s.renderBefore)??null;i._$litPart$=e=new Pe(t.insertBefore(Ie(),o),o,void 0,s??{})}return e._$AI(r),e};/**
41
+ */const je=globalThis,cs=je.trustedTypes,Di=cs?cs.createPolicy("lit-html",{createHTML:r=>r}):void 0,Rs="$lit$",It=`lit$${(Math.random()+"").slice(9)}$`,Fs="?"+It,Kr=`<${Fs}>`,ie=document,Me=()=>ie.createComment(""),Ie=r=>r===null||typeof r!="object"&&typeof r!="function",ki=Array.isArray,Li=r=>ki(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",zs=`[
42
+ \f\r]`,Re=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ei=/-->/g,Ni=/>/g,re=RegExp(`>|${zs}(?:([^\\s"'>=/]+)(${zs}*=${zs}*(?:[^
43
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ti=/'/g,ji=/"/g,Mi=/^(?:script|style|textarea|title)$/i,Zr=r=>(t,...s)=>({_$litType$:r,strings:t,values:s}),g=Zr(1),ft=Symbol.for("lit-noChange"),$=Symbol.for("lit-nothing"),Ii=new WeakMap,oe=ie.createTreeWalker(ie,129);function Ri(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Di!==void 0?Di.createHTML(t):t}const Fi=(r,t)=>{const s=r.length-1,i=[];let e,o=t===2?"<svg>":"",n=Re;for(let a=0;a<s;a++){const c=r[a];let h,d,f=-1,m=0;for(;m<c.length&&(n.lastIndex=m,d=n.exec(c),d!==null);)m=n.lastIndex,n===Re?d[1]==="!--"?n=Ei:d[1]!==void 0?n=Ni:d[2]!==void 0?(Mi.test(d[2])&&(e=RegExp("</"+d[2],"g")),n=re):d[3]!==void 0&&(n=re):n===re?d[0]===">"?(n=e??Re,f=-1):d[1]===void 0?f=-2:(f=n.lastIndex-d[2].length,h=d[1],n=d[3]===void 0?re:d[3]==='"'?ji:Ti):n===ji||n===Ti?n=re:n===Ei||n===Ni?n=Re:(n=re,e=void 0);const b=n===re&&r[a+1].startsWith("/>")?" ":"";o+=n===Re?c+Kr:f>=0?(i.push(h),c.slice(0,f)+Rs+c.slice(f)+It+b):c+It+(f===-2?a:b)}return[Ri(r,o+(r[s]||"<?>")+(t===2?"</svg>":"")),i]};class Fe{constructor({strings:t,_$litType$:s},i){let e;this.parts=[];let o=0,n=0;const a=t.length-1,c=this.parts,[h,d]=Fi(t,s);if(this.el=Fe.createElement(h,i),oe.currentNode=this.el.content,s===2){const f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(e=oe.nextNode())!==null&&c.length<a;){if(e.nodeType===1){if(e.hasAttributes())for(const f of e.getAttributeNames())if(f.endsWith(Rs)){const m=d[n++],b=e.getAttribute(f).split(It),_=/([.?@])?(.*)/.exec(m);c.push({type:1,index:o,name:_[2],strings:b,ctor:_[1]==="."?Ui:_[1]==="?"?Vi:_[1]==="@"?Bi:ze}),e.removeAttribute(f)}else f.startsWith(It)&&(c.push({type:6,index:o}),e.removeAttribute(f));if(Mi.test(e.tagName)){const f=e.textContent.split(It),m=f.length-1;if(m>0){e.textContent=cs?cs.emptyScript:"";for(let b=0;b<m;b++)e.append(f[b],Me()),oe.nextNode(),c.push({type:2,index:++o});e.append(f[m],Me())}}}else if(e.nodeType===8)if(e.data===Fs)c.push({type:2,index:o});else{let f=-1;for(;(f=e.data.indexOf(It,f+1))!==-1;)c.push({type:7,index:o}),f+=It.length-1}o++}}static createElement(t,s){const i=ie.createElement("template");return i.innerHTML=t,i}}function ne(r,t,s=r,i){var n,a;if(t===ft)return t;let e=i!==void 0?(n=s._$Co)==null?void 0:n[i]:s._$Cl;const o=Ie(t)?void 0:t._$litDirective$;return(e==null?void 0:e.constructor)!==o&&((a=e==null?void 0:e._$AO)==null||a.call(e,!1),o===void 0?e=void 0:(e=new o(r),e._$AT(r,s,i)),i!==void 0?(s._$Co??(s._$Co=[]))[i]=e:s._$Cl=e),e!==void 0&&(t=ne(r,e._$AS(r,t.values),e,i)),t}class zi{constructor(t,s){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=s}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:s},parts:i}=this._$AD,e=((t==null?void 0:t.creationScope)??ie).importNode(s,!0);oe.currentNode=e;let o=oe.nextNode(),n=0,a=0,c=i[0];for(;c!==void 0;){if(n===c.index){let h;c.type===2?h=new Pe(o,o.nextSibling,this,t):c.type===1?h=new c.ctor(o,c.name,c.strings,this,t):c.type===6&&(h=new Hi(o,this,t)),this._$AV.push(h),c=i[++a]}n!==(c==null?void 0:c.index)&&(o=oe.nextNode(),n++)}return oe.currentNode=ie,e}p(t){let s=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,s),s+=i.strings.length-2):i._$AI(t[s])),s++}}class Pe{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,s,i,e){this.type=2,this._$AH=$,this._$AN=void 0,this._$AA=t,this._$AB=s,this._$AM=i,this.options=e,this._$Cv=(e==null?void 0:e.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const s=this._$AM;return s!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=s.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,s=this){t=ne(this,t,s),Ie(t)?t===$||t==null||t===""?(this._$AH!==$&&this._$AR(),this._$AH=$):t!==this._$AH&&t!==ft&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Li(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==$&&Ie(this._$AH)?this._$AA.nextSibling.data=t:this.T(ie.createTextNode(t)),this._$AH=t}$(t){var o;const{values:s,_$litType$:i}=t,e=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=Fe.createElement(Ri(i.h,i.h[0]),this.options)),i);if(((o=this._$AH)==null?void 0:o._$AD)===e)this._$AH.p(s);else{const n=new zi(e,this),a=n.u(this.options);n.p(s),this.T(a),this._$AH=n}}_$AC(t){let s=Ii.get(t.strings);return s===void 0&&Ii.set(t.strings,s=new Fe(t)),s}k(t){ki(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let i,e=0;for(const o of t)e===s.length?s.push(i=new Pe(this.S(Me()),this.S(Me()),this,this.options)):i=s[e],i._$AI(o),e++;e<s.length&&(this._$AR(i&&i._$AB.nextSibling,e),s.length=e)}_$AR(t=this._$AA.nextSibling,s){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,s);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var s;this._$AM===void 0&&(this._$Cv=t,(s=this._$AP)==null||s.call(this,t))}}class ze{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,s,i,e,o){this.type=1,this._$AH=$,this._$AN=void 0,this.element=t,this.name=s,this._$AM=e,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=$}_$AI(t,s=this,i,e){const o=this.strings;let n=!1;if(o===void 0)t=ne(this,t,s,0),n=!Ie(t)||t!==this._$AH&&t!==ft,n&&(this._$AH=t);else{const a=t;let c,h;for(t=o[0],c=0;c<o.length-1;c++)h=ne(this,a[i+c],s,c),h===ft&&(h=this._$AH[c]),n||(n=!Ie(h)||h!==this._$AH[c]),h===$?t=$:t!==$&&(t+=(h??"")+o[c+1]),this._$AH[c]=h}n&&!e&&this.j(t)}j(t){t===$?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Ui extends ze{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===$?void 0:t}}class Vi extends ze{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==$)}}class Bi extends ze{constructor(t,s,i,e,o){super(t,s,i,e,o),this.type=5}_$AI(t,s=this){if((t=ne(this,t,s,0)??$)===ft)return;const i=this._$AH,e=t===$&&i!==$||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==$&&(i===$||e);e&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var s;typeof this._$AH=="function"?this._$AH.call(((s=this.options)==null?void 0:s.host)??this.element,t):this._$AH.handleEvent(t)}}class Hi{constructor(t,s,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=s,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ne(this,t)}}const Gr={P:Rs,A:It,C:Fs,M:1,L:Fi,R:zi,D:Li,V:ne,I:Pe,H:ze,N:Vi,U:Bi,B:Ui,F:Hi},Us=je.litHtmlPolyfillSupport;Us==null||Us(Fe,Pe),(je.litHtmlVersions??(je.litHtmlVersions=[])).push("3.1.2");const Yr=(r,t,s)=>{const i=(s==null?void 0:s.renderBefore)??t;let e=i._$litPart$;if(e===void 0){const o=(s==null?void 0:s.renderBefore)??null;i._$litPart$=e=new Pe(t.insertBefore(Me(),o),o,void 0,s??{})}return e._$AI(r),e};/**
44
44
  * @license
45
45
  * Copyright 2020 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
- */const{I:Gr}=Kr,Yr=r=>r.strings===void 0,Bi=()=>document.createComment(""),Ve=(r,t,s)=>{var o;const i=r._$AA.parentNode,e=t===void 0?r._$AB:t._$AA;if(s===void 0){const n=i.insertBefore(Bi(),e),a=i.insertBefore(Bi(),e);s=new Gr(n,a,r,r.options)}else{const n=s._$AB.nextSibling,a=s._$AM,c=a!==r;if(c){let h;(o=s._$AQ)==null||o.call(s,r),s._$AM=r,s._$AP!==void 0&&(h=r._$AU)!==a._$AU&&s._$AP(h)}if(n!==e||c){let h=s._$AA;for(;h!==n;){const d=h.nextSibling;i.insertBefore(h,e),h=d}}}return s},ae=(r,t,s=r)=>(r._$AI(t,s),r),Qr={},Jr=(r,t=Qr)=>r._$AH=t,Xr=r=>r._$AH,Rs=r=>{var i;(i=r._$AP)==null||i.call(r,!1,!0);let t=r._$AA;const s=r._$AB.nextSibling;for(;t!==s;){const e=t.nextSibling;t.remove(),t=e}};/**
47
+ */const{I:Qr}=Gr,Xr=r=>r.strings===void 0,qi=()=>document.createComment(""),Ue=(r,t,s)=>{var o;const i=r._$AA.parentNode,e=t===void 0?r._$AB:t._$AA;if(s===void 0){const n=i.insertBefore(qi(),e),a=i.insertBefore(qi(),e);s=new Qr(n,a,r,r.options)}else{const n=s._$AB.nextSibling,a=s._$AM,c=a!==r;if(c){let h;(o=s._$AQ)==null||o.call(s,r),s._$AM=r,s._$AP!==void 0&&(h=r._$AU)!==a._$AU&&s._$AP(h)}if(n!==e||c){let h=s._$AA;for(;h!==n;){const d=h.nextSibling;i.insertBefore(h,e),h=d}}}return s},ae=(r,t,s=r)=>(r._$AI(t,s),r),Jr={},to=(r,t=Jr)=>r._$AH=t,eo=r=>r._$AH,Vs=r=>{var i;(i=r._$AP)==null||i.call(r,!1,!0);let t=r._$AA;const s=r._$AB.nextSibling;for(;t!==s;){const e=t.nextSibling;t.remove(),t=e}};/**
48
48
  * @license
49
49
  * Copyright 2017 Google LLC
50
50
  * SPDX-License-Identifier: BSD-3-Clause
@@ -52,24 +52,24 @@
52
52
  * @license
53
53
  * Copyright 2017 Google LLC
54
54
  * SPDX-License-Identifier: BSD-3-Clause
55
- */const Be=(r,t)=>{var i;const s=r._$AN;if(s===void 0)return!1;for(const e of s)(i=e._$AO)==null||i.call(e,t,!1),Be(e,t);return!0},cs=r=>{let t,s;do{if((t=r._$AM)===void 0)break;s=t._$AN,s.delete(r),r=t}while((s==null?void 0:s.size)===0)},Hi=r=>{for(let t;t=r._$AM;r=t){let s=t._$AN;if(s===void 0)t._$AN=s=new Set;else if(s.has(r))break;s.add(r),so(t)}};function to(r){this._$AN!==void 0?(cs(this),this._$AM=r,Hi(this)):this._$AM=r}function eo(r,t=!1,s=0){const i=this._$AH,e=this._$AN;if(e!==void 0&&e.size!==0)if(t)if(Array.isArray(i))for(let o=s;o<i.length;o++)Be(i[o],!1),cs(i[o]);else i!=null&&(Be(i,!1),cs(i));else Be(this,r)}const so=r=>{r.type==le.CHILD&&(r._$AP??(r._$AP=eo),r._$AQ??(r._$AQ=to))};let Us=class extends $e{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,s,i){super._$AT(t,s,i),Hi(this),this.isConnected=t._$AU}_$AO(t,s=!0){var i,e;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)==null||i.call(this):(e=this.disconnected)==null||e.call(this)),s&&(Be(this,t),cs(this))}setValue(t){if(Yr(this._$Ct))this._$Ct._$AI(t,this);else{const s=[...this._$Ct._$AH];s[this._$Ci]=t,this._$Ct._$AI(s,this,0)}}disconnected(){}reconnected(){}};/**
55
+ */const Ve=(r,t)=>{var i;const s=r._$AN;if(s===void 0)return!1;for(const e of s)(i=e._$AO)==null||i.call(e,t,!1),Ve(e,t);return!0},hs=r=>{let t,s;do{if((t=r._$AM)===void 0)break;s=t._$AN,s.delete(r),r=t}while((s==null?void 0:s.size)===0)},Wi=r=>{for(let t;t=r._$AM;r=t){let s=t._$AN;if(s===void 0)t._$AN=s=new Set;else if(s.has(r))break;s.add(r),ro(t)}};function so(r){this._$AN!==void 0?(hs(this),this._$AM=r,Wi(this)):this._$AM=r}function io(r,t=!1,s=0){const i=this._$AH,e=this._$AN;if(e!==void 0&&e.size!==0)if(t)if(Array.isArray(i))for(let o=s;o<i.length;o++)Ve(i[o],!1),hs(i[o]);else i!=null&&(Ve(i,!1),hs(i));else Ve(this,r)}const ro=r=>{r.type==le.CHILD&&(r._$AP??(r._$AP=io),r._$AQ??(r._$AQ=so))};let Bs=class extends $e{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,s,i){super._$AT(t,s,i),Wi(this),this.isConnected=t._$AU}_$AO(t,s=!0){var i,e;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)==null||i.call(this):(e=this.disconnected)==null||e.call(this)),s&&(Ve(this,t),hs(this))}setValue(t){if(Xr(this._$Ct))this._$Ct._$AI(t,this);else{const s=[...this._$Ct._$AH];s[this._$Ci]=t,this._$Ct._$AI(s,this,0)}}disconnected(){}reconnected(){}};/**
56
56
  * @license
57
57
  * Copyright 2017 Google LLC
58
58
  * SPDX-License-Identifier: BSD-3-Clause
59
- */let v=class extends xe{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var s;const t=super.createRenderRoot();return(s=this.renderOptions).renderBefore??(s.renderBefore=t.firstChild),t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Zr(s,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return ft}};v._$litElement$=!0,v.finalized=!0,(Dr=globalThis.litElementHydrateSupport)==null||Dr.call(globalThis,{LitElement:v});const Vs=globalThis.litElementPolyfillSupport;Vs==null||Vs({LitElement:v}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.4");function hs(r){if(typeof r=="function"){const t=r;return L.collectModifiedPublisher(),t(),L.getModifiedPublishers()||new Set}if(typeof r=="string"){const t=r.split("."),s=t.shift()||"";let i=L.get(s);i=X.traverse(i,t);const e=new Set;return e.add(i),e}return new Set([r])}class io extends Us{constructor(t){var s;super(t),this.observables=new Set,this.onAssign=i=>{this.setValue(i)},this.node=(s=t.options)==null?void 0:s.host}unsubscribe(){this.observables.forEach(t=>t.offAssign(this.onAssign))}render(t){return this.observable!==t&&(this.observable=t,this.isConnected&&this.subscribe(t)),ft}subscribe(t){this.unsubscribe(),typeof t=="function"?this.onAssign=()=>{this.setValue(t())}:this.onAssign=s=>{this.setValue(s)},this.observables=hs(t),this.observables.forEach(s=>{s.onAssign(this.onAssign)})}disconnected(){this.unsubscribe()}reconnected(){this.observable&&this.subscribe(this.observable)}}const qi=ce(io),ro=qi,oo=qi,no=r=>hs(r).values().next().value.get(),Wi=(r,t)=>{const s=hs(r).values().next().value;if(t!==void 0){const i=s.get();X.isEmpty(i)&&s.set(t)}return s},ao=Wi,Ki=Wi,lo=(r,t)=>{hs(r).values().next().value.set(t)},z=class z{constructor(t){this.addHTTPResponse=!1,this.cache="default",this.isServiceSimulated=!1,this.blockUntilDone=!1,this.serviceURL=t.serviceURL,this.blockUntilDone=t.blockUntilDone||!1,this.serviceURL=="publisher://"&&(this.isServiceSimulated=!0),this.serviceURL||(this.serviceURL=document.location.origin),this.userName=t.userName,this.password=t.password,t.token&&(this.token=t.token),this.tokenProvider=t.tokenProvider,this.authToken=t.authToken,this.addHTTPResponse=t.addHTTPResponse||!1,this.credentials=t.credentials,this.cache=t.cache||"default"}set token(t){if(this._token=t,!t){z.tokens.delete(this.serviceURL);return}z.invalidTokens.includes(t)||z.tokens.set(this.serviceURL,t)}get token(){return z.invalidTokens.includes(this._token)?z.tokens.get(this.serviceURL):this._token}handleInvalidToken(t){t&&(z.invalidTokens.includes(t)||(z.invalidTokens.push(t),this.token=null))}async handleResult(t,s){var n;z.firstCallDoneFlags.set(this.serviceURL,"done"),this.lastResult=t;const i=(n=t.headers.get("content-type"))==null?void 0:n.toLowerCase(),e=t.status;let o={};if(!i||i.indexOf("text/")==0)o={text:await t.text()};else try{o=await t.json()}catch{o={}}return this.addHTTPResponse&&X.isObject(o)&&(o._sonic_http_response_=t),e===498&&!z.failledTokenUpdates.has(this.serviceURL)&&(this.handleInvalidToken(this.token),s.apiMethod==="get"?o=await this[s.apiMethod](s.path,s.additionalHeaders):o=await this[s.apiMethod](s.path,s.data,s.method,s.additionalHeaders)),o}async auth(){if(this.token)return;if(z.tokens.has(this.serviceURL)){this.token=z.tokens.get(this.serviceURL);return}if(!this.tokenProvider)return;let t={};this.userName&&this.password?t={Authorization:"Basic "+window.btoa(unescape(encodeURIComponent(this.userName+":"+this.password)))}:this.authToken&&(t={Authorization:"Bearer "+this.authToken});const s=new URL(this.serviceURL),i=s.protocol+"//"+s.host,e=await fetch(this.computeURL(this.tokenProvider,{serviceHost:i}),{headers:t,credentials:this.credentials});try{const o=await e.json();o.token?this.token=o.token:z.failledTokenUpdates.set(this.serviceURL,!0)}catch{z.failledTokenUpdates.set(this.serviceURL,!0)}}async localGet(t,s){var f;const i=L.get(t);console.log(i);const e=new URLSearchParams(s.split("?")[1]||""),o=i.get();let n=[];Array.isArray(o)?n=o:n=[o];const a=[];let c=Number.POSITIVE_INFINITY,h=0,d=0;if(e.has("limit")&&(c=parseInt(e.get("limit")||"0"),d++),e.has("offset")&&(h=parseInt(e.get("offset")||"0"),d++),d>0&&(e.delete("limit"),e.delete("offset")),e.size===0)return n.slice(h,h+c);for(const[m,b]of e.entries()){const _=b.split(",").map(C=>C.trim());for(const C of _)for(const O of n)if(typeof O!="object")isNaN(+b)?O.toString().includes(b)&&a.push(O):O==b&&a.push(O);else{const D=O;if(!D[m])continue;isNaN(+C)?(f=D[m])!=null&&f.toString().toLowerCase().includes(C.toLowerCase())&&a.push(O):D[m]==C&&a.push(O)}}return a.slice(h,h+c)}firstCallDone(){return new Promise(t=>{if(!z.firstCallDoneFlags.has(this.serviceURL))z.firstCallDoneFlags.set(this.serviceURL,"loading"),t(!0);else{const s=()=>{[void 0,"loading"].includes(z.firstCallDoneFlags.get(this.serviceURL))?window.requestAnimationFrame(s):t(!0)};s()}})}async get(t,s){await this.firstCallDone(),this.blockUntilDone&&z.firstCallDoneFlags.set(this.serviceURL,"loading");const i=/dataProvider\((.*?)\)(.*?)$/;if(i.test(t)){const h=t.match(i);if(!h)throw new Error("dataProvider path is not valid");return await this.localGet(h[1],h[2])}const e={apiMethod:"get",path:t,additionalHeaders:s},o=await this.createHeaders(s),n=this.computeURL(t),a=JSON.stringify({url:n,headers:o});if(!z.loadingGetPromises.has(a)){const h=new Promise(async d=>{try{const f=await fetch(n,{headers:o,credentials:this.credentials,cache:this.cache}),m=await this.handleResult(f,e);d(m)}catch{d(null)}});z.loadingGetPromises.set(a,h)}const c=await z.loadingGetPromises.get(a);return z.loadingGetPromises.delete(a),c}async createHeaders(t){await this.auth();const s={};return this.token&&(s.Authorization="Bearer "+this.token),s["Accept-Language"]=J.getLanguage(),t&&Object.assign(s,t),s}computeURL(t,s={}){let i="";t.startsWith("http")?i=t:i=this.serviceURL+"/"+t,i.startsWith("http")||(i=window.location.origin+i);const e=new URL(i);for(const o in s)e.searchParams.set(o,s[o]);return e.toString().replace(/([^(https?:)])\/{2,}/g,"$1/")}async send(t,s,i="POST",e){const o={apiMethod:"send",path:t,additionalHeaders:e,method:i,data:s},n=await this.createHeaders(e);n.Accept="application/json",n["Content-Type"]="application/json";const a=await fetch(this.computeURL(t),{headers:n,credentials:this.credentials,method:i,body:JSON.stringify(s)});return await this.handleResult(a,o)}async submitFormData(t,s,i="POST",e){const o={apiMethod:"submitFormData",path:t,additionalHeaders:e,method:i,data:s},n=await this.createHeaders(e);n.Accept="application/json";const a=new FormData,c=s;for(const d in c)a.set(d,c[d]);const h=await fetch(this.computeURL(t),{headers:n,credentials:this.credentials,method:i,body:a});return await this.handleResult(h,o)}async put(t,s,i){return this.send(t,s,"PUT",i)}async post(t,s,i){return this.send(t,s,"POST",i)}async patch(t,s,i){return this.send(t,s,"PATCH",i)}async delete(t,s,i){return this.send(t,s,"delete",i)}};z.loadingGetPromises=new Map,z.tokens=new Map,z.invalidTokens=[],z.failledTokenUpdates=new Map,z.firstCallDoneFlags=new Map;let Ce=z;/**
59
+ */let v=class extends xe{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var s;const t=super.createRenderRoot();return(s=this.renderOptions).renderBefore??(s.renderBefore=t.firstChild),t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Yr(s,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return ft}};v._$litElement$=!0,v.finalized=!0,(Lr=globalThis.litElementHydrateSupport)==null||Lr.call(globalThis,{LitElement:v});const Hs=globalThis.litElementPolyfillSupport;Hs==null||Hs({LitElement:v}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.4");function ds(r){if(typeof r=="function"){const t=r;return E.collectModifiedPublisher(),t(),E.getModifiedPublishers()||new Set}if(typeof r=="string"){const t=r.split("."),s=t.shift()||"";let i=E.get(s);i=J.traverse(i,t);const e=new Set;return e.add(i),e}return new Set([r])}class oo extends Bs{constructor(t){var s;super(t),this.observables=new Set,this.onAssign=i=>{this.setValue(i)},this.node=(s=t.options)==null?void 0:s.host}unsubscribe(){this.observables.forEach(t=>t.offAssign(this.onAssign))}render(t){return this.observable!==t&&(this.observable=t,this.isConnected&&this.subscribe(t)),ft}subscribe(t){this.unsubscribe(),typeof t=="function"?this.onAssign=()=>{this.setValue(t())}:this.onAssign=s=>{this.setValue(s)},this.observables=ds(t),this.observables.forEach(s=>{s.onAssign(this.onAssign)})}disconnected(){this.unsubscribe()}reconnected(){this.observable&&this.subscribe(this.observable)}}const Ki=ce(oo),no=Ki,ao=Ki,lo=r=>ds(r).values().next().value.get(),Zi=(r,t)=>{const s=ds(r).values().next().value;if(t!==void 0){const i=s.get();J.isEmpty(i)&&s.set(t)}return s},co=Zi,Gi=Zi,ho=(r,t)=>{ds(r).values().next().value.set(t)},R=class R{constructor(t){this.addHTTPResponse=!1,this.cache="default",this.isServiceSimulated=!1,this.blockUntilDone=!1,this.serviceURL=t.serviceURL,this.blockUntilDone=t.blockUntilDone||!1,this.serviceURL=="publisher://"&&(this.isServiceSimulated=!0),this.serviceURL||(this.serviceURL=document.location.origin),this.userName=t.userName,this.password=t.password,t.token&&(this.token=t.token),this.tokenProvider=t.tokenProvider,this.authToken=t.authToken,this.addHTTPResponse=t.addHTTPResponse||!1,this.credentials=t.credentials,this.cache=t.cache||"default"}set token(t){if(this._token=t,!t){R.tokens.delete(this.serviceURL);return}R.invalidTokens.includes(t)||R.tokens.set(this.serviceURL,t)}get token(){return R.invalidTokens.includes(this._token)?R.tokens.get(this.serviceURL):this._token}handleInvalidToken(t){t&&(R.invalidTokens.includes(t)||(R.invalidTokens.push(t),this.token=null))}async handleResult(t,s){var n;R.firstCallDoneFlags.set(this.serviceURL,"done"),this.lastResult=t;const i=(n=t.headers.get("content-type"))==null?void 0:n.toLowerCase(),e=t.status;let o={};if(!i||i.indexOf("text/")==0)o={text:await t.text()};else try{o=await t.json()}catch{o={}}return this.addHTTPResponse&&J.isObject(o)&&(o._sonic_http_response_=t),e===498&&!R.failledTokenUpdates.has(this.serviceURL)&&(this.handleInvalidToken(this.token),s.apiMethod==="get"?o=await this[s.apiMethod](s.path,s.additionalHeaders):o=await this[s.apiMethod](s.path,s.data,s.method,s.additionalHeaders)),o}async auth(){if(this.token)return;if(R.tokens.has(this.serviceURL)){this.token=R.tokens.get(this.serviceURL);return}if(!this.tokenProvider)return;let t={};this.userName&&this.password?t={Authorization:"Basic "+window.btoa(unescape(encodeURIComponent(this.userName+":"+this.password)))}:this.authToken&&(t={Authorization:"Bearer "+this.authToken});const s=new URL(this.serviceURL),i=s.protocol+"//"+s.host,e=await fetch(this.computeURL(this.tokenProvider,{serviceHost:i}),{headers:t,credentials:this.credentials});try{const o=await e.json();o.token?this.token=o.token:R.failledTokenUpdates.set(this.serviceURL,!0)}catch{R.failledTokenUpdates.set(this.serviceURL,!0)}}async localGet(t,s){var f;const i=E.get(t);console.log(i);const e=new URLSearchParams(s.split("?")[1]||""),o=i.get();let n=[];Array.isArray(o)?n=o:n=[o];const a=[];let c=Number.POSITIVE_INFINITY,h=0,d=0;if(e.has("limit")&&(c=parseInt(e.get("limit")||"0"),d++),e.has("offset")&&(h=parseInt(e.get("offset")||"0"),d++),d>0&&(e.delete("limit"),e.delete("offset")),e.size===0)return n.slice(h,h+c);for(const[m,b]of e.entries()){const _=b.split(",").map(C=>C.trim());for(const C of _)for(const O of n)if(typeof O!="object")isNaN(+b)?O.toString().includes(b)&&a.push(O):O==b&&a.push(O);else{const D=O;if(!D[m])continue;isNaN(+C)?(f=D[m])!=null&&f.toString().toLowerCase().includes(C.toLowerCase())&&a.push(O):D[m]==C&&a.push(O)}}return a.slice(h,h+c)}firstCallDone(){return new Promise(t=>{if(!R.firstCallDoneFlags.has(this.serviceURL))R.firstCallDoneFlags.set(this.serviceURL,"loading"),t(!0);else{const s=()=>{[void 0,"loading"].includes(R.firstCallDoneFlags.get(this.serviceURL))?window.requestAnimationFrame(s):t(!0)};s()}})}async get(t,s){await this.firstCallDone(),this.blockUntilDone&&R.firstCallDoneFlags.set(this.serviceURL,"loading");const i=/dataProvider\((.*?)\)(.*?)$/;if(i.test(t)){const h=t.match(i);if(!h)throw new Error("dataProvider path is not valid");return await this.localGet(h[1],h[2])}const e={apiMethod:"get",path:t,additionalHeaders:s},o=await this.createHeaders(s),n=this.computeURL(t),a=JSON.stringify({url:n,headers:o});if(!R.loadingGetPromises.has(a)){const h=new Promise(async d=>{try{const f=await fetch(n,{headers:o,credentials:this.credentials,cache:this.cache}),m=await this.handleResult(f,e);d(m)}catch{d(null)}});R.loadingGetPromises.set(a,h)}const c=await R.loadingGetPromises.get(a);return R.loadingGetPromises.delete(a),c}async createHeaders(t){await this.auth();const s={};return this.token&&(s.Authorization="Bearer "+this.token),s["Accept-Language"]=X.getLanguage(),t&&Object.assign(s,t),s}computeURL(t,s={}){let i="";t.startsWith("http")?i=t:i=this.serviceURL+"/"+t,i.startsWith("http")||(i=window.location.origin+i);const e=new URL(i);for(const o in s)e.searchParams.set(o,s[o]);return e.toString().replace(/([^(https?:)])\/{2,}/g,"$1/")}async send(t,s,i="POST",e){const o={apiMethod:"send",path:t,additionalHeaders:e,method:i,data:s},n=await this.createHeaders(e);n.Accept="application/json",n["Content-Type"]="application/json";const a=await fetch(this.computeURL(t),{headers:n,credentials:this.credentials,method:i,body:JSON.stringify(s)});return await this.handleResult(a,o)}async submitFormData(t,s,i="POST",e){const o={apiMethod:"submitFormData",path:t,additionalHeaders:e,method:i,data:s},n=await this.createHeaders(e);n.Accept="application/json";const a=new FormData,c=s;for(const d in c)a.set(d,c[d]);const h=await fetch(this.computeURL(t),{headers:n,credentials:this.credentials,method:i,body:a});return await this.handleResult(h,o)}async put(t,s,i){return this.send(t,s,"PUT",i)}async post(t,s,i){return this.send(t,s,"POST",i)}async patch(t,s,i){return this.send(t,s,"PATCH",i)}async delete(t,s,i){return this.send(t,s,"delete",i)}};R.loadingGetPromises=new Map,R.tokens=new Map,R.invalidTokens=[],R.failledTokenUpdates=new Map,R.firstCallDoneFlags=new Map;let Ce=R;/**
60
60
  * @license
61
61
  * Copyright 2017 Google LLC
62
62
  * SPDX-License-Identifier: BSD-3-Clause
63
- */let Bs=class extends $e{constructor(t){if(super(t),this.it=$,t.type!==le.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===$||t==null)return this._t=void 0,this.it=t;if(t===ft)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const s=[t];return s.raw=s,this._t={_$litType$:this.constructor.resultType,strings:s,values:[]}}};Bs.directiveName="unsafeHTML",Bs.resultType=1;const I=ce(Bs),Hs=new Map,Zi=r=>{if(!r)return null;const t=J.getApiConfiguration(r),s=J.getAncestorAttributeValue(r,"wordingProvider"),i=J.getAncestorAttributeValue(r,"wordingVersionProvider"),e={apiConfiguration:t,wordingProvider:s,wordingVersionProvider:i};let o=null;for(const[n,a]of Hs)if(X.deepEqual(n,e)){o=a;break}return o||(o={api:new Ce(t),keysToTranslate:new Set,translatedKeys:new Set,wordingProvider:s,callIndex:0,wordingVersionProvider:i,apiCallKey:e},Hs.set(e,o)),o},Gi="",B=class B extends Us{constructor(t){super(t),this.useUnsafeHTML=!1,this.onAssign=s=>{const i=this.useUnsafeHTML?I(s):s;this.setValue(i)},this.node=t.options.host}unsubscribe(){B.publisher["wording_"+this.key].offAssign(this.onAssign)}render(t,s=!1){return this.useUnsafeHTML=s,this.key!==t&&(this.key=t,this.isConnected&&this.subscribe(t)),ft}static async callApi(t,s,i=!0,e){if(await L.getInstance().isLocalStrorageReady,B.firstCall){B.firstCall=!1;const d=Object.keys(B.publisher.get());for(const f of d)B.publisher.get()[f]===Gi&&delete B.publisher[f]}if(t){const d=J.getAncestorAttributeValue(t,"wordingVersionProvider");d&&Ki(d).onAssign(B.handleVersionProvider(t))}let o=B.publisher.get()["wording_"+s]!=null;const n=e||Zi(t);if(!n)return;if(o&&s!==""){n.translatedKeys.add(s);return}n.callIndex++;const a=n.callIndex,c=n.wordingProvider??"";if(!c&&i){window.setTimeout(async()=>{B.callApi(null,s,!1,n)},1e3);return}const h=n.api;window.queueMicrotask(async()=>{if(o=B.publisher["wording_"+s].get()!=null,!o&&s!==""&&(n.keysToTranslate.add(s),B.publisher["wording_"+s]=Gi),a!==n.callIndex)return;const d=Array.from(n.keysToTranslate);if(!d.length)return;const f=c.split("?"),m=f.shift(),b=(f.length>0?f.join("?")+"&":"")+"labels[]="+d.join("&labels[]="),_=m+"?"+b;n.translatedKeys=new Set([...n.translatedKeys,...n.keysToTranslate]),n.keysToTranslate.clear();const C=await h.get(_);for(const O in C)B.publisher["wording_"+O]=C[O]})}static handleVersionProvider(t){const s=Zi(t);if(!s)return;if(B.versionProviderHandlers.has(s))return B.versionProviderHandlers.get(s);const i=function(e){if(!s.wordingVersionProvider)return;const n=B.publisher.get().__wording_versions__??[];if(e==null)return;const a=n.find(c=>c.serviceURL===s.api.serviceURL)||{serviceURL:s.api.serviceURL,version:0};if(n.includes(a)||n.push(a),e!==a.version){a.version=e,B.publisher.set({__wording_versions__:n});for(const c of Hs.values())c.keysToTranslate=new Set(c.translatedKeys),c.keysToTranslate.size>0&&B.callApi(null,"",!1,c)}};return B.versionProviderHandlers.set(s,i),i}subscribe(t){this.unsubscribe(),B.publisher["wording_"+t].onAssign(this.onAssign),B.callApi(this.node,t)}disconnected(){this.unsubscribe()}reconnected(){this.key&&this.subscribe(this.key)}};B.publisher=L.get("sonic-wording",{localStorageMode:"enabled"}),B.firstCall=!0,B.versionProviderHandlers=new Map;let He=B;var co=Object.defineProperty,ho=Object.getOwnPropertyDescriptor,zt=(r,t,s,i)=>{for(var e=i>1?void 0:i?ho(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&co(t,s,e),e};let ds=!1,qs=new Set;const G=(r,t)=>{var e;const s=(e=class extends r{constructor(...n){super(),this.collectDependenciesVersion=0,this.displayContents=!1,this.noAutoFill=!1,this.forceAutoFill=!1,this.renderOnPropsInternalChange=!1,this.noShadowDom=null,this.propertyMap=null,this.title="",this.dataProvider=null,this.bindPublisher=null,this._props=null,this.defferedDebug=null,this.debug=null,this.onAssign=a=>{this.props=a}}hasAncestorAttribute(n){return this.getAncestorAttributeValue(n)!=null}getAncestorAttributeValue(n){return J.getAncestorAttributeValue(this,n)}get props(){return this._props!==null||!this.publisher?this._props:this.publisher.get()}set props(n){typeof n=="string"&&["{","["].includes(n.trim().charAt(0))&&(n=JSON.parse(n)),n!=this._props&&(this._props=n,this.publisher&&this.publisher.get()!=n&&this.publisher.set(n),this.requestUpdate())}updated(n){super.updated(n);const c=[...(this.shadowRoot||this).children].filter(d=>d.tagName!="STYLE"),h=this.displayContents?"contents":c.length==0?"none":null;h?this.style.display=h:this.style.removeProperty("display")}connectedCallback(){if(e.instanceCounter++,this.hasAttribute("lazyRendering")){const n={root:null,threshold:.9};let a=!0;const c=new IntersectionObserver(h=>{for(const d of h)if(a&&d.isIntersecting){this.addDebugger(),a=!1,this.initWording(),this.initPublisher(),c.disconnect();break}},n);c.observe(this)}else this.initWording(),this.initPublisher(),this.addDebugger();super.connectedCallback()}disconnectedCallback(){var n;this.removeDebugger(),super.disconnectedCallback(),this.publisher&&(this.publisher.stopTemplateFilling(this),this.publisher.offInternalMutation(this.requestUpdate)),He.publisher.stopTemplateFilling(this),this.onAssign&&((n=this.publisher)==null||n.offAssign(this.onAssign))}addDebugger(){var n;if(this.hasAttribute("debug")&&!this.defferedDebug){if(!this.debug){this.debug=document.createElement("div");const a=this.debug.style;a.position="fixed",a.top="0",a.right="0",a.margin="auto",a.borderRadius=".7rem",a.backgroundColor="#0f1729",a.color="#c5d4f9",a.padding="16px 16px",a.margin="16px 16px",a.boxShadow="0 10px 30px -18px rgba(0,0,0,.3)",a.overflowY="auto",a.zIndex="99999999",a.maxHeight="calc(100vh - 32px)",a.fontFamily="Consolas, monospace",a.maxWidth="min(50vw,25rem)",a.fontSize="12px",a.minWidth="300px",a.overflowWrap="break-word",a.resize="vertical"}this.addEventListener("click",a=>{a.ctrlKey&&(a.preventDefault(),ds=!ds)}),this.dataProvider&&(window[this.dataProvider]=this.publisher),this.addEventListener("mouseover",()=>{ds||this.removeDebugger(),document.body.appendChild(this.debug),qs.add(this.debug)}),this.addEventListener("mouseout",()=>{ds||this.removeDebugger()}),(n=this.publisher)==null||n.onInternalMutation(()=>{var a;this.debug.innerHTML=`🤖 DataProvider : "<b style="font-weight:bold;color:#fff;">${this.dataProvider}</b>"<br>
63
+ */let qs=class extends $e{constructor(t){if(super(t),this.it=$,t.type!==le.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===$||t==null)return this._t=void 0,this.it=t;if(t===ft)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const s=[t];return s.raw=s,this._t={_$litType$:this.constructor.resultType,strings:s,values:[]}}};qs.directiveName="unsafeHTML",qs.resultType=1;const I=ce(qs),Ws=new Map,Yi=r=>{if(!r)return null;const t=X.getApiConfiguration(r),s=X.getAncestorAttributeValue(r,"wordingProvider"),i=X.getAncestorAttributeValue(r,"wordingVersionProvider"),e={apiConfiguration:t,wordingProvider:s,wordingVersionProvider:i};let o=null;for(const[n,a]of Ws)if(J.deepEqual(n,e)){o=a;break}return o||(o={api:new Ce(t),keysToTranslate:new Set,translatedKeys:new Set,wordingProvider:s,callIndex:0,wordingVersionProvider:i,apiCallKey:e},Ws.set(e,o)),o},Qi="",B=class B extends Bs{constructor(t){super(t),this.useUnsafeHTML=!1,this.onAssign=s=>{const i=this.useUnsafeHTML?I(s):s;this.setValue(i)},this.node=t.options.host}unsubscribe(){B.publisher["wording_"+this.key].offAssign(this.onAssign)}render(t,s=!1){return this.useUnsafeHTML=s,this.key!==t&&(this.key=t,this.isConnected&&this.subscribe(t)),ft}static async callApi(t,s,i=!0,e){if(await E.getInstance().isLocalStrorageReady,B.firstCall){B.firstCall=!1;const d=Object.keys(B.publisher.get());for(const f of d)B.publisher.get()[f]===Qi&&delete B.publisher[f]}if(t){const d=X.getAncestorAttributeValue(t,"wordingVersionProvider");d&&Gi(d).onAssign(B.handleVersionProvider(t))}let o=B.publisher.get()["wording_"+s]!=null;const n=e||Yi(t);if(!n)return;if(o&&s!==""){n.translatedKeys.add(s);return}n.callIndex++;const a=n.callIndex,c=n.wordingProvider??"";if(!c&&i){window.setTimeout(async()=>{B.callApi(null,s,!1,n)},1e3);return}const h=n.api;window.queueMicrotask(async()=>{if(o=B.publisher["wording_"+s].get()!=null,!o&&s!==""&&(n.keysToTranslate.add(s),B.publisher["wording_"+s]=Qi),a!==n.callIndex)return;const d=Array.from(n.keysToTranslate);if(!d.length)return;const f=c.split("?"),m=f.shift(),b=(f.length>0?f.join("?")+"&":"")+"labels[]="+d.join("&labels[]="),_=m+"?"+b;n.translatedKeys=new Set([...n.translatedKeys,...n.keysToTranslate]),n.keysToTranslate.clear();const C=await h.get(_);for(const O in C)B.publisher["wording_"+O]=C[O]})}static handleVersionProvider(t){const s=Yi(t);if(!s)return;if(B.versionProviderHandlers.has(s))return B.versionProviderHandlers.get(s);const i=function(e){if(!s.wordingVersionProvider)return;const n=B.publisher.get().__wording_versions__??[];if(e==null)return;const a=n.find(c=>c.serviceURL===s.api.serviceURL)||{serviceURL:s.api.serviceURL,version:0};if(n.includes(a)||n.push(a),e!==a.version){a.version=e,B.publisher.set({__wording_versions__:n});for(const c of Ws.values())c.keysToTranslate=new Set(c.translatedKeys),c.keysToTranslate.size>0&&B.callApi(null,"",!1,c)}};return B.versionProviderHandlers.set(s,i),i}subscribe(t){this.unsubscribe(),B.publisher["wording_"+t].onAssign(this.onAssign),B.callApi(this.node,t)}disconnected(){this.unsubscribe()}reconnected(){this.key&&this.subscribe(this.key)}};B.publisher=E.get("sonic-wording",{localStorageMode:"enabled"}),B.firstCall=!0,B.versionProviderHandlers=new Map;let Be=B;var po=Object.defineProperty,uo=Object.getOwnPropertyDescriptor,Rt=(r,t,s,i)=>{for(var e=i>1?void 0:i?uo(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&po(t,s,e),e};let ps=!1,Ks=new Set;const G=(r,t)=>{var e;const s=(e=class extends r{constructor(...n){super(),this.collectDependenciesVersion=0,this.displayContents=!1,this.noAutoFill=!1,this.forceAutoFill=!1,this.renderOnPropsInternalChange=!1,this.noShadowDom=null,this.propertyMap=null,this.title="",this.dataProvider=null,this.bindPublisher=null,this._props=null,this.defferedDebug=null,this.debug=null,this.onAssign=a=>{this.props=a}}hasAncestorAttribute(n){return this.getAncestorAttributeValue(n)!=null}getAncestorAttributeValue(n){return X.getAncestorAttributeValue(this,n)}get props(){return this._props!==null||!this.publisher?this._props:this.publisher.get()}set props(n){typeof n=="string"&&["{","["].includes(n.trim().charAt(0))&&(n=JSON.parse(n)),n!=this._props&&(this._props=n,this.publisher&&this.publisher.get()!=n&&this.publisher.set(n),this.requestUpdate())}updated(n){super.updated(n);const c=[...(this.shadowRoot||this).children].filter(d=>d.tagName!="STYLE"),h=this.displayContents?"contents":c.length==0?"none":null;h?this.style.display=h:this.style.removeProperty("display")}connectedCallback(){if(e.instanceCounter++,this.hasAttribute("lazyRendering")){const n={root:null,threshold:.9};let a=!0;const c=new IntersectionObserver(h=>{for(const d of h)if(a&&d.isIntersecting){this.addDebugger(),a=!1,this.initWording(),this.initPublisher(),c.disconnect();break}},n);c.observe(this)}else this.initWording(),this.initPublisher(),this.addDebugger();super.connectedCallback()}disconnectedCallback(){var n;this.removeDebugger(),super.disconnectedCallback(),this.publisher&&(this.publisher.stopTemplateFilling(this),this.publisher.offInternalMutation(this.requestUpdate)),Be.publisher.stopTemplateFilling(this),this.onAssign&&((n=this.publisher)==null||n.offAssign(this.onAssign))}addDebugger(){var n;if(this.hasAttribute("debug")&&!this.defferedDebug){if(!this.debug){this.debug=document.createElement("div");const a=this.debug.style;a.position="fixed",a.top="0",a.right="0",a.margin="auto",a.borderRadius=".7rem",a.backgroundColor="#0f1729",a.color="#c5d4f9",a.padding="16px 16px",a.margin="16px 16px",a.boxShadow="0 10px 30px -18px rgba(0,0,0,.3)",a.overflowY="auto",a.zIndex="99999999",a.maxHeight="calc(100vh - 32px)",a.fontFamily="Consolas, monospace",a.maxWidth="min(50vw,25rem)",a.fontSize="12px",a.minWidth="300px",a.overflowWrap="break-word",a.resize="vertical"}this.addEventListener("click",a=>{a.ctrlKey&&(a.preventDefault(),ps=!ps)}),this.dataProvider&&(window[this.dataProvider]=this.publisher),this.addEventListener("mouseover",()=>{ps||this.removeDebugger(),document.body.appendChild(this.debug),Ks.add(this.debug)}),this.addEventListener("mouseout",()=>{ps||this.removeDebugger()}),(n=this.publisher)==null||n.onInternalMutation(()=>{var a;this.debug.innerHTML=`🤖 DataProvider : "<b style="font-weight:bold;color:#fff;">${this.dataProvider}</b>"<br>
64
64
  <div style="font-size:10px;border-top:1px dashed;margin-top:5px;padding-left:23px;opacity:.6;padding-top:5px;">
65
65
  Variable disponible dans la console<br>
66
66
  ctrl + Clique : épingler / désépingler
67
67
  </div>
68
- <pre style="margin-top:10px;background:transparent;padding:0;font-size:inherit;color:inherit;">${JSON.stringify((a=this.publisher)==null?void 0:a.get(),null," ")}</pre>`})}}removeDebugger(){qs.forEach(n=>{document.body.contains(n)&&document.body.removeChild(n)}),qs=new Set}getApiConfiguration(){return J.getApiConfiguration(this)}async initWording(){const n=Object.getOwnPropertyNames(this.constructor.prototype);for(const a of n)a.indexOf("wording_")==0&&He.callApi(this,a.substring(8));He.publisher.startTemplateFilling(this)}createRenderRoot(){if(this.noShadowDom===""||this.getAttribute("noShadowDom")==="")return this;const n=super.createRenderRoot();return Te.observe(n),n}initPublisher(){if(!document)return;this.publisher&&(this.publisher.stopTemplateFilling(this),this.publisher.offInternalMutation(this.requestUpdate),this.onAssign&&this.publisher.offAssign(this.onAssign));const n=L.getInstance();this.dataProvider||(this.dataProvider=this.getAncestorAttributeValue("dataProvider"));let a=this.dataProvider;if(!a&&this._props&&(this.dataProvider=a="__subscriber__"+e.instanceCounter),a){this.bindPublisher&&n.set(a,this.bindPublisher());let c=n.get(a,{localStorageMode:this.getAttribute("localStorage")||"disabled"});if(this.dataProvider=a,this.hasAttribute("subDataProvider")){const h=this.getAttribute("subDataProvider");this.dataProvider=a+"/"+h,c=X.traverse(c,h.split(".")),n.set(this.dataProvider,c),this.publisher=c}this.publisher=c}this.publisher&&(this._props&&this.publisher.set(this._props),this.noAutoFill||this.publisher.startTemplateFilling(this),this.renderOnPropsInternalChange&&this.publisher.onInternalMutation(this.requestUpdate),this.publisher.onAssign(this.onAssign))}},e.instanceCounter=0,e);return zt([l({type:Number})],s.prototype,"collectDependenciesVersion",2),zt([l({type:Boolean})],s.prototype,"displayContents",2),zt([l({type:Boolean})],s.prototype,"noAutoFill",2),zt([l({type:Boolean})],s.prototype,"forceAutoFill",2),zt([l({type:Object})],s.prototype,"propertyMap",2),zt([l({type:String,attribute:"data-title"})],s.prototype,"title",2),zt([l({reflect:!0})],s.prototype,"dataProvider",2),zt([l()],s.prototype,"bindPublisher",2),zt([l()],s.prototype,"props",1),s};window.SonicPublisherManager||(window.SonicPublisherManager=L);var po=Object.defineProperty,uo=Object.getOwnPropertyDescriptor,fo=(r,t,s,i)=>{for(var e=i>1?void 0:i?uo(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&po(t,s,e),e};const qe=r=>{class t extends r{constructor(){super(...arguments),this.templates=null,this.templateValueAttribute="data-value",this.templateList=[],this.templateParts={},this.templatePartsList=[]}connectedCallback(){const i=this.templates||[...this.querySelectorAll("template")];for(const e of i)e.hasAttribute(this.templateValueAttribute)&&(this.templateParts[e.getAttribute(this.templateValueAttribute)]=e,this.templatePartsList.push(e)),e.hasAttribute("skeleton")&&(this.templateParts.skeleton=e),e.hasAttribute("no-result")&&(this.templateParts["no-result"]=e),e.hasAttribute("no-item")&&(this.templateParts["no-item"]=e);this.templateList=i.filter(e=>!e.getAttribute("data-value")),this.templateList.length==0&&(this.templateList=i),super.connectedCallback()}}return fo([l({type:Array})],t.prototype,"templates",2),t};var go=Object.defineProperty,mo=Object.getOwnPropertyDescriptor,W=(r,t,s,i)=>{for(var e=i>1?void 0:i?mo(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&go(t,s,e),e};const bo="sonic-date";let q=class extends G(qe(v)){constructor(){super(...arguments),this.pageLanguage="fr",this.duAu=[],this._wording_billet_periode_validite="",this.designMode=null,this.time_zone=null,this.date=null,this.date_string=null,this.start_date_string=null,this.end_date_string=null,this.start_date=0,this.hide_hours=!1,this.end_date=0,this.era="",this.year="numeric",this.month="short",this.day="2-digit",this.weekday="short",this.hour="2-digit",this.hour12=!1,this.minute="2-digit",this.language="",this.renderIf=!0,this.now=!1,this.startDateObject=new Date,this.endDateObject=new Date}get wording_billet_periode_validite(){return this._wording_billet_periode_validite}set wording_billet_periode_validite(r){var t;r||(r="Du %s au %s"),this._wording_billet_periode_validite=r,this.duAu=(t=this.wording_billet_periode_validite)==null?void 0:t.split("%s").map(s=>s.trim()),this.duAu.pop(),this.requestUpdate()}connectedCallback(){this.hasAttribute("wording_billet_periode_validite")||(this.wording_billet_periode_validite="Du %s au %s"),this.pageLanguage=J.getLanguage(),super.connectedCallback()}getDatesParts(r,t,s){const i=this.startDateObject;i.setTime(r*1e3);let e=[];if(t>0){const o=this.endDateObject;o.setTime(t*1e3);const n=i.toDateString()==o.toDateString();if((!n||this.hide_hours)&&(delete s.hour,delete s.minute),e=new Intl.DateTimeFormat(this.language||this.pageLanguage,s).formatRangeToParts(i,o),!n){const c=e.find(h=>h.type=="literal"&&h.source=="shared"&&h.value.trim().length>0);c&&(c.value=" "+this.duAu[1]+" ",c.type="to"),this.designMode||e.unshift({type:"from",value:this.duAu[0]+" ",source:"shared"})}}else e=new Intl.DateTimeFormat(this.language||this.pageLanguage,s).formatToParts(i);return this.designMode&&e.forEach(o=>o.value=o.value.replace(/,/g," ")),e[0].value=rs.ucFirst(e[0].value),e.filter(o=>o.hidden!==!0)}dateStringToSeconds(r){return new Date(r).getTime()/1e3}render(){if(!this.renderIf||(this.date_string&&(this.date=this.dateStringToSeconds(this.date_string)),this.date&&(this.start_date=this.date),this.start_date_string&&(this.start_date=this.dateStringToSeconds(this.start_date_string)),this.end_date_string&&(this.end_date=this.dateStringToSeconds(this.end_date_string)),!this.start_date&&!this.now&&!this.end_date))return $;if(this.start_date||(this.start_date=Date.now()/1e3),this.end_date>0&&this.end_date<this.start_date){const s=this.start_date;this.start_date=this.end_date,this.end_date=s}const r={year:this.year,month:this.month,day:this.day,hour12:this.hour12};this.weekday!=="hidden"&&(r.weekday=this.weekday),this.hour!=="hidden"&&(r.hour=this.hour),this.minute!=="hidden"&&(r.minute=this.minute),this.era&&(r.era=this.era),this.time_zone&&(r.timeZone=this.time_zone);const t=this.getDatesParts(this.start_date,this.end_date,r);return I(`${t.map(s=>{const i=this.templateParts[s.type];if(i){const n=document.importNode(i.content,!0).children[0];return n.innerText.trim()==""&&(n.innerText=s.value),n.outerHTML}const e=document.createElement("span");return e.innerText=s.value,e.className=s.type,`<span class="${s.type}">${s.value}</span>`}).join("")}`)}};W([l()],q.prototype,"wording_billet_periode_validite",1),W([l({type:Boolean})],q.prototype,"designMode",2),W([l({type:String})],q.prototype,"time_zone",2),W([l({type:Number})],q.prototype,"date",2),W([l({type:String})],q.prototype,"date_string",2),W([l({type:String})],q.prototype,"start_date_string",2),W([l({type:String})],q.prototype,"end_date_string",2),W([l({type:Number})],q.prototype,"start_date",2),W([l({type:Boolean})],q.prototype,"hide_hours",2),W([l({type:Number})],q.prototype,"end_date",2),W([l({type:String})],q.prototype,"era",2),W([l({type:String})],q.prototype,"year",2),W([l({type:String})],q.prototype,"month",2),W([l({type:String})],q.prototype,"day",2),W([l({type:String})],q.prototype,"weekday",2),W([l({type:String})],q.prototype,"hour",2),W([l({type:Boolean})],q.prototype,"hour12",2),W([l({type:String})],q.prototype,"minute",2),W([l({type:String})],q.prototype,"language",2),W([l({type:Boolean})],q.prototype,"renderIf",2),W([l({type:Boolean})],q.prototype,"now",2),q=W([w(bo)],q);let it=(Y=class{static listen(){var s;if(!Y.listening)return;const t=(s=document.location)==null?void 0:s.href.replace(document.location.origin,"");Y.prevURL&&Y.prevURL!=t&&(Y.prevURL=t,Y.listeners.forEach(i=>{i.location=t})),window.requestAnimationFrame(Y.listen)}static offChange(t){const s=Y.listeners.indexOf(t);s!=-1&&(Y.listeners.splice(s,1),Y.listeners.length==0&&(Y.listening=!1))}static onChange(t){Y.listening||(Y.listening=!0,Y.listen()),Y.listeners.push(t),t.location=this.prevURL}static changeFromComponent(t){const s=t.goBack,i=document.referrer;if(s!=null){const h=document.location.origin,d=s||h,m=i.indexOf("http")==0?new URL(i).origin!=h:!1,b=i=="",_=history.length<3,C=b&&_,O=d!=document.location.href;if(m&&O||C){const p=history.state||{};p.concorde=p.concorde||{},p.concorde.hasDoneHistoryBack=!0,history.pushState(p,document.title),history.back(),document.location.replace(d)}else history.back();return}let e=t.getAttribute("to")||"";if(e||(e=t.href||""),!e)return;if(e.indexOf("#")==0){document.location.hash=e.substring(1);return}const o=new URL(e,document.location.href),n=o.pathname.split("/"),a=[];let c="";for(const h of n)h!=c&&a.push(h),c=h;e="/"+a.join("/")+o.search+(o.hash?+o.hash:""),t.hasAttribute("pushState")?history.pushState(null,"",e):t.hasAttribute("replaceState")?history.replaceState(null,"",e):document.location.href=e}static updateComponentActiveState(t){if(t.autoActive!="disabled"&&t.href&&t.href.indexOf("http")!=0){const s=new URL(t.href,document.location.href),i=new URL(t.location||"",document.location.origin);let e=!1;t.autoActive=="strict"?e=s.pathname==i.pathname&&s.hash==i.hash&&s.search==i.search:e=i.href.indexOf(s.href)==0,e?t.setAttribute("active","true"):t.removeAttribute("active")}}},Y.listeners=[],Y.listening=!1,Y.prevURL=(t=document.location)==null?void 0:t.href.replace(document.location.origin,""),Y);/**
68
+ <pre style="margin-top:10px;background:transparent;padding:0;font-size:inherit;color:inherit;">${JSON.stringify((a=this.publisher)==null?void 0:a.get(),null," ")}</pre>`})}}removeDebugger(){Ks.forEach(n=>{document.body.contains(n)&&document.body.removeChild(n)}),Ks=new Set}getApiConfiguration(){return X.getApiConfiguration(this)}async initWording(){const n=Object.getOwnPropertyNames(this.constructor.prototype);for(const a of n)a.indexOf("wording_")==0&&Be.callApi(this,a.substring(8));Be.publisher.startTemplateFilling(this)}createRenderRoot(){if(this.noShadowDom===""||this.getAttribute("noShadowDom")==="")return this;const n=super.createRenderRoot();return os.observe(n),n}initPublisher(){if(!document)return;this.publisher&&(this.publisher.stopTemplateFilling(this),this.publisher.offInternalMutation(this.requestUpdate),this.onAssign&&this.publisher.offAssign(this.onAssign));const n=E.getInstance();this.dataProvider||(this.dataProvider=this.getAncestorAttributeValue("dataProvider"));let a=this.dataProvider;if(!a&&this._props&&(this.dataProvider=a="__subscriber__"+e.instanceCounter),a){this.bindPublisher&&n.set(a,this.bindPublisher());let c=n.get(a,{localStorageMode:this.getAttribute("localStorage")||"disabled"});if(this.dataProvider=a,this.hasAttribute("subDataProvider")){const h=this.getAttribute("subDataProvider");this.dataProvider=a+"/"+h,c=J.traverse(c,h.split(".")),n.set(this.dataProvider,c),this.publisher=c}this.publisher=c}this.publisher&&(this._props&&this.publisher.set(this._props),this.noAutoFill||this.publisher.startTemplateFilling(this),this.renderOnPropsInternalChange&&this.publisher.onInternalMutation(this.requestUpdate),this.publisher.onAssign(this.onAssign))}},e.instanceCounter=0,e);return Rt([l({type:Number})],s.prototype,"collectDependenciesVersion",2),Rt([l({type:Boolean})],s.prototype,"displayContents",2),Rt([l({type:Boolean})],s.prototype,"noAutoFill",2),Rt([l({type:Boolean})],s.prototype,"forceAutoFill",2),Rt([l({type:Object})],s.prototype,"propertyMap",2),Rt([l({type:String,attribute:"data-title"})],s.prototype,"title",2),Rt([l({reflect:!0})],s.prototype,"dataProvider",2),Rt([l()],s.prototype,"bindPublisher",2),Rt([l()],s.prototype,"props",1),s};var fo=Object.defineProperty,go=Object.getOwnPropertyDescriptor,mo=(r,t,s,i)=>{for(var e=i>1?void 0:i?go(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&fo(t,s,e),e};const He=r=>{class t extends r{constructor(){super(...arguments),this.templates=null,this.templateValueAttribute="data-value",this.templateList=[],this.templateParts={},this.templatePartsList=[]}connectedCallback(){const i=this.templates||[...this.querySelectorAll("template")];for(const e of i)e.hasAttribute(this.templateValueAttribute)&&(this.templateParts[e.getAttribute(this.templateValueAttribute)]=e,this.templatePartsList.push(e)),e.hasAttribute("skeleton")&&(this.templateParts.skeleton=e),e.hasAttribute("no-result")&&(this.templateParts["no-result"]=e),e.hasAttribute("no-item")&&(this.templateParts["no-item"]=e);this.templateList=i.filter(e=>!e.getAttribute("data-value")),this.templateList.length==0&&(this.templateList=i),super.connectedCallback()}}return mo([l({type:Array})],t.prototype,"templates",2),t};var bo=Object.defineProperty,vo=Object.getOwnPropertyDescriptor,W=(r,t,s,i)=>{for(var e=i>1?void 0:i?vo(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&bo(t,s,e),e};const yo="sonic-date";let q=class extends G(He(v)){constructor(){super(...arguments),this.pageLanguage="fr",this.duAu=[],this._wording_billet_periode_validite="",this.designMode=null,this.time_zone=null,this.date=null,this.date_string=null,this.start_date_string=null,this.end_date_string=null,this.start_date=0,this.hide_hours=!1,this.end_date=0,this.era="",this.year="numeric",this.month="short",this.day="2-digit",this.weekday="short",this.hour="2-digit",this.hour12=!1,this.minute="2-digit",this.language="",this.renderIf=!0,this.now=!1,this.startDateObject=new Date,this.endDateObject=new Date}get wording_billet_periode_validite(){return this._wording_billet_periode_validite}set wording_billet_periode_validite(r){var t;r||(r="Du %s au %s"),this._wording_billet_periode_validite=r,this.duAu=(t=this.wording_billet_periode_validite)==null?void 0:t.split("%s").map(s=>s.trim()),this.duAu.pop(),this.requestUpdate()}connectedCallback(){this.hasAttribute("wording_billet_periode_validite")||(this.wording_billet_periode_validite="Du %s au %s"),this.pageLanguage=X.getLanguage(),super.connectedCallback()}getDatesParts(r,t,s){const i=this.startDateObject;i.setTime(r*1e3);let e=[];if(t>0){const o=this.endDateObject;o.setTime(t*1e3);const n=i.toDateString()==o.toDateString();if((!n||this.hide_hours)&&(delete s.hour,delete s.minute),e=new Intl.DateTimeFormat(this.language||this.pageLanguage,s).formatRangeToParts(i,o),!n){const c=e.find(h=>h.type=="literal"&&h.source=="shared"&&h.value.trim().length>0);c&&(c.value=" "+this.duAu[1]+" ",c.type="to"),this.designMode||e.unshift({type:"from",value:this.duAu[0]+" ",source:"shared"})}}else e=new Intl.DateTimeFormat(this.language||this.pageLanguage,s).formatToParts(i);return this.designMode&&e.forEach(o=>o.value=o.value.replace(/,/g," ")),e[0].value=rs.ucFirst(e[0].value),e.filter(o=>o.hidden!==!0)}dateStringToSeconds(r){return new Date(r).getTime()/1e3}render(){if(!this.renderIf||(this.date_string&&(this.date=this.dateStringToSeconds(this.date_string)),this.date&&(this.start_date=this.date),this.start_date_string&&(this.start_date=this.dateStringToSeconds(this.start_date_string)),this.end_date_string&&(this.end_date=this.dateStringToSeconds(this.end_date_string)),!this.start_date&&!this.now&&!this.end_date))return $;if(this.start_date||(this.start_date=Date.now()/1e3),this.end_date>0&&this.end_date<this.start_date){const s=this.start_date;this.start_date=this.end_date,this.end_date=s}const r={year:this.year,month:this.month,day:this.day,hour12:this.hour12};this.weekday!=="hidden"&&(r.weekday=this.weekday),this.hour!=="hidden"&&(r.hour=this.hour),this.minute!=="hidden"&&(r.minute=this.minute),this.era&&(r.era=this.era),this.time_zone&&(r.timeZone=this.time_zone);const t=this.getDatesParts(this.start_date,this.end_date,r);return I(`${t.map(s=>{const i=this.templateParts[s.type];if(i){const n=document.importNode(i.content,!0).children[0];return n.innerText.trim()==""&&(n.innerText=s.value),n.outerHTML}const e=document.createElement("span");return e.innerText=s.value,e.className=s.type,`<span class="${s.type}">${s.value}</span>`}).join("")}`)}};W([l()],q.prototype,"wording_billet_periode_validite",1),W([l({type:Boolean})],q.prototype,"designMode",2),W([l({type:String})],q.prototype,"time_zone",2),W([l({type:Number})],q.prototype,"date",2),W([l({type:String})],q.prototype,"date_string",2),W([l({type:String})],q.prototype,"start_date_string",2),W([l({type:String})],q.prototype,"end_date_string",2),W([l({type:Number})],q.prototype,"start_date",2),W([l({type:Boolean})],q.prototype,"hide_hours",2),W([l({type:Number})],q.prototype,"end_date",2),W([l({type:String})],q.prototype,"era",2),W([l({type:String})],q.prototype,"year",2),W([l({type:String})],q.prototype,"month",2),W([l({type:String})],q.prototype,"day",2),W([l({type:String})],q.prototype,"weekday",2),W([l({type:String})],q.prototype,"hour",2),W([l({type:Boolean})],q.prototype,"hour12",2),W([l({type:String})],q.prototype,"minute",2),W([l({type:String})],q.prototype,"language",2),W([l({type:Boolean})],q.prototype,"renderIf",2),W([l({type:Boolean})],q.prototype,"now",2),q=W([w(yo)],q);let it=(Y=class{static listen(){var s;if(!Y.listening)return;const t=(s=document.location)==null?void 0:s.href.replace(document.location.origin,"");Y.prevURL&&Y.prevURL!=t&&(Y.prevURL=t,Y.listeners.forEach(i=>{i.location=t})),window.requestAnimationFrame(Y.listen)}static offChange(t){const s=Y.listeners.indexOf(t);s!=-1&&(Y.listeners.splice(s,1),Y.listeners.length==0&&(Y.listening=!1))}static onChange(t){Y.listening||(Y.listening=!0,Y.listen()),Y.listeners.push(t),t.location=this.prevURL}static changeFromComponent(t){const s=t.goBack,i=document.referrer;if(s!=null){const h=document.location.origin,d=s||h,m=i.indexOf("http")==0?new URL(i).origin!=h:!1,b=i=="",_=history.length<3,C=b&&_,O=d!=document.location.href;if(m&&O||C){const p=history.state||{};p.concorde=p.concorde||{},p.concorde.hasDoneHistoryBack=!0,history.pushState(p,document.title),history.back(),document.location.replace(d)}else history.back();return}let e=t.getAttribute("to")||"";if(e||(e=t.href||""),!e)return;if(e.indexOf("#")==0){document.location.hash=e.substring(1);return}const o=new URL(e,document.location.href),n=o.pathname.split("/"),a=[];let c="";for(const h of n)h!=c&&a.push(h),c=h;e="/"+a.join("/")+o.search+(o.hash?+o.hash:""),t.hasAttribute("pushState")?history.pushState(null,"",e):t.hasAttribute("replaceState")?history.replaceState(null,"",e):document.location.href=e}static updateComponentActiveState(t){if(t.autoActive!="disabled"&&t.href&&t.href.indexOf("http")!=0){const s=new URL(t.href,document.location.href),i=new URL(t.location||"",document.location.origin);let e=!1;t.autoActive=="strict"?e=s.pathname==i.pathname&&s.hash==i.hash&&s.search==i.search:e=i.href.indexOf(s.href)==0,e?t.setAttribute("active","true"):t.removeAttribute("active")}}},Y.listeners=[],Y.listening=!1,Y.prevURL=(t=document.location)==null?void 0:t.href.replace(document.location.origin,""),Y);/**
69
69
  * @license
70
70
  * Copyright 2018 Google LLC
71
71
  * SPDX-License-Identifier: BSD-3-Clause
72
- */const Yi="important",vo=" !"+Yi,dt=ce(class extends $e{constructor(r){var t;if(super(r),r.type!==le.ATTRIBUTE||r.name!=="style"||((t=r.strings)==null?void 0:t.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,s)=>{const i=r[s];return i==null?t:t+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(r,[t]){const{style:s}=r.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const i of this.ft)t[i]==null&&(this.ft.delete(i),i.includes("-")?s.removeProperty(i):s[i]=null);for(const i in t){const e=t[i];if(e!=null){this.ft.add(i);const o=typeof e=="string"&&e.endsWith(vo);i.includes("-")||o?s.setProperty(i,o?e.slice(0,-11):e,o?Yi:""):s[i]=e}}return ft}});var yo=Object.defineProperty,wo=Object.getOwnPropertyDescriptor,Ct=(r,t,s,i)=>{for(var e=i>1?void 0:i?wo(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&yo(t,s,e),e};const ps=new Map,Ae=r=>{class t extends r{constructor(...i){super(),this.touched=!1,this.error=!1,this.autofocus=!1,this.required=!1,this.forceAutoFill=!1,this.disabled=null,this.formDataProvider="",this._name="",this._value="",this.onValueAssign=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(i){this.hasAttribute("name")&&!this.forceAutoFill&&(i=this.getAttribute("name")),this._name=i,this.requestUpdate()}validateFormElement(){}updateDataValue(){const i=this.getAttribute("name");if(i){const e=this.getFormPublisher();e&&(e[i]=this.getValueForFormPublisher(),this.setFormValueFromPublisher(e[i].get()))}}getFormPublisher(){return this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider")),this.formDataProvider?L.get(this.formDataProvider):null}getValueForFormPublisher(){return this.value}setValueFromPublisher(i){this.value=i}setFormValueFromPublisher(i){this.value=i}get value(){return this._value}set value(i){i==null&&(i=""),X.isObject(i)&&Object.prototype.hasOwnProperty.call(i,"__value")&&i._value==null&&(i=""),this._value!=i&&(this._value=i,this.updateDataValue(),this.requestUpdate())}initPublisher(){let i=this.getFormPublisher();const e=this.hasAncestorAttribute("initFromPublisher")&&this._name&&i[this._name].get()?i[this._name].get():this.getAttribute("value");this._name&&this.publisher&&this.publisher[this._name].offAssign(this.onValueAssign),this._name&&i&&i[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&&this.publisher[this._name].onAssign(this.onValueAssign),i=this.getFormPublisher(),this._name&&i&&(i[this._name].onAssign(this.onFormValueAssign),i.onInvalidate(this.onFormDataInValidate)),this.updateDataValue(),e&&(this.value=e)}handleBlur(){this.touched=!0}handleChange(i){this.value=i.target.value;const e=new Event("change");this.dispatchEvent(e)}addKeyboardNavigation(){const i=this.getAncestorAttributeValue("data-keyboard-nav");if(!i)return;const e=i.split(" "),o=e[0];if(!o)return;for(const a of e){ps.has(a)||ps.set(a,[]);const c=ps.get(a);(c==null?void 0:c.indexOf(this))==-1&&c.push(this)}const n=ps.get(o);this.addEventListener("keydown",a=>{var b;const c=a;if(!["ArrowDown","ArrowUp"].includes(c.key))return;const h="input:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled])",d=n==null?void 0:n.filter(_=>{var D;const C=(D=_.shadowRoot)==null?void 0:D.querySelector(h);if(!C)return!1;const O=window.getComputedStyle(C);return O.display!=="none"&&O.display!==""&&O.pointerEvents!="none"&&O.visibility!=="hidden"&&C.getBoundingClientRect().width>0});let f=null;if(c.key=="ArrowDown"&&d){const _=d.indexOf(this);_==d.length-1?f=d[0]:f=d[_+1]}else if(c.key=="ArrowUp"&&d){const _=d.indexOf(this);_==0?f=d[d.length-1]:f=d[_-1]}const m=(b=f==null?void 0:f.shadowRoot)==null?void 0:b.querySelector(h);m&&m.focus&&(m.focus(),a.preventDefault(),a.stopPropagation())})}connectedCallback(){this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"),super.connectedCallback(),this.addKeyboardNavigation()}disconnectedCallback(){super.disconnectedCallback(),this._name&&this.publisher&&this.publisher[this._name].offAssign(this.onValueAssign);const i=this.getFormPublisher();this._name&&i&&(i[this._name].offAssign(this.onFormValueAssign),i.offInvalidate(this.onFormDataInValidate))}}return Ct([l({type:Boolean,reflect:!0})],t.prototype,"touched",2),Ct([l({type:Boolean})],t.prototype,"error",2),Ct([l({type:Boolean})],t.prototype,"autofocus",2),Ct([l({type:Boolean})],t.prototype,"required",2),Ct([l({type:Boolean})],t.prototype,"forceAutoFill",2),Ct([l({type:Boolean})],t.prototype,"disabled",2),Ct([l({type:String,attribute:"data-aria-label"})],t.prototype,"ariaLabel",2),Ct([l({type:String,attribute:"data-aria-labelledby"})],t.prototype,"ariaLabelledby",2),Ct([l()],t.prototype,"name",1),Ct([l()],t.prototype,"value",1),t};let _o=class{static async queueTaskPromise(){return new Promise(t=>{window.queueMicrotask(()=>t(null))})}static async delayPromise(t){return new Promise(s=>{setTimeout(s,t)})}},xo=class _e{static areEqual(t,s){return t.length===s.length?t.every((i,e)=>i===s[e]):!1}static from2d(t){return{to1D:()=>{let s=[];return t.forEach(i=>s=s.concat(i)),this.from(s)}}}static from(t){return{get:()=>t||[],everyItem:()=>({has:()=>({same:()=>({value:()=>({forKey:s=>{if(t.length<1)return!0;const i=(t[0]||{})[s];return t.every(e=>(e||{})[s]==i)}})})}),value:()=>({forKey:s=>_e.from(t.map(i=>i[s]))}),copy:()=>({fromKey:s=>({toKey:i=>{t.forEach(e=>{e[i]=Array.isArray(e[s])?[...e[s]]:typeof e[s]=="object"&&e[s]!=null?{...e[s]}:e[s]})}})})}),map:s=>_e.from(t.map(s)),filter:s=>_e.from(t.filter(s)),find:s=>t.find(s),some:s=>t.some(s),every:s=>t.every(s),group:()=>({byKey:s=>{const i=[],e=new Map;for(const o of t){const n=o[s];if(!e.has(n)){const a=i.length;e.set(n,a);const c={items:[]};c[s]=n,i.push(c)}i[e.get(n)].items.push(o)}return _e.from(i)}}),without:()=>({duplicates:()=>({forKey:s=>{const i=[...new Set(t.map(e=>e[s]))];return _e.from(i.map(e=>t.find(o=>o[s]==e)))}}),itemsIn:s=>({havingSameValue:()=>({forKey:i=>{const e=(o,n)=>a=>o[n]!=a[n];return _e.from(t.filter(o=>s.every(e(o,i))))}})})})}}};var Po=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $o(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Ws={exports:{}};(function(r,t){var s=[].slice;(function(i,e){return t!==null?r.exports=e():i.UrlPattern=e()})(Po,function(){var i,e,o,n,a,c,h,d,f,m,b,_,C,O,D;return f=function(p){return p.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},h=function(p,u){var y,A,S;for(S=[],y=-1,A=p.length;++y<A;)S=S.concat(u(p[y]));return S},O=function(p,u){var y,A,S;for(S="",y=-1,A=p.length;++y<A;)S+=u(p[y]);return S},C=function(p){return new RegExp(p.toString()+"|").exec("").length-1},b=function(p,u){var y,A,S,M,H;for(M={},y=-1,S=p.length;++y<S;)A=p[y],H=u[y],H!=null&&(M[A]!=null?(Array.isArray(M[A])||(M[A]=[M[A]]),M[A].push(H)):M[A]=H);return M},i={},i.Result=function(p,u){this.value=p,this.rest=u},i.Tagged=function(p,u){this.tag=p,this.value=u},i.tag=function(p,u){return function(y){var A,S;if(A=u(y),A!=null)return S=new i.Tagged(p,A.value),new i.Result(S,A.rest)}},i.regex=function(p){return function(u){var y,A;if(y=p.exec(u),y!=null)return A=y[0],new i.Result(A,u.slice(A.length))}},i.sequence=function(){var p;return p=1<=arguments.length?s.call(arguments,0):[],function(u){var y,A,S,M,H,Z;for(y=-1,A=p.length,Z=[],M=u;++y<A;){if(S=p[y],H=S(M),H==null)return;Z.push(H.value),M=H.rest}return new i.Result(Z,M)}},i.pick=function(){var p,u;return p=arguments[0],u=2<=arguments.length?s.call(arguments,1):[],function(y){var A,S;if(S=i.sequence.apply(i,u)(y),S!=null)return A=S.value,S.value=A[p],S}},i.string=function(p){var u;return u=p.length,function(y){if(y.slice(0,u)===p)return new i.Result(p,y.slice(u))}},i.lazy=function(p){var u;return u=null,function(y){return u==null&&(u=p()),u(y)}},i.baseMany=function(p,u,y,A,S){var M,H,Z,we;for(Z=S,we=y?"":[];!(u!=null&&(M=u(Z),M!=null)||(H=p(Z),H==null));)y?we+=H.value:we.push(H.value),Z=H.rest;if(!(A&&we.length===0))return new i.Result(we,Z)},i.many1=function(p){return function(u){return i.baseMany(p,null,!1,!0,u)}},i.concatMany1Till=function(p,u){return function(y){return i.baseMany(p,u,!0,!0,y)}},i.firstChoice=function(){var p;return p=1<=arguments.length?s.call(arguments,0):[],function(u){var y,A,S,M;for(y=-1,A=p.length;++y<A;)if(S=p[y],M=S(u),M!=null)return M}},_=function(p){var u;return u={},u.wildcard=i.tag("wildcard",i.string(p.wildcardChar)),u.optional=i.tag("optional",i.pick(1,i.string(p.optionalSegmentStartChar),i.lazy(function(){return u.pattern}),i.string(p.optionalSegmentEndChar))),u.name=i.regex(new RegExp("^["+p.segmentNameCharset+"]+")),u.named=i.tag("named",i.pick(1,i.string(p.segmentNameStartChar),i.lazy(function(){return u.name}))),u.escapedChar=i.pick(1,i.string(p.escapeChar),i.regex(/^./)),u.static=i.tag("static",i.concatMany1Till(i.firstChoice(i.lazy(function(){return u.escapedChar}),i.regex(/^./)),i.firstChoice(i.string(p.segmentNameStartChar),i.string(p.optionalSegmentStartChar),i.string(p.optionalSegmentEndChar),u.wildcard))),u.token=i.lazy(function(){return i.firstChoice(u.wildcard,u.optional,u.named,u.static)}),u.pattern=i.many1(i.lazy(function(){return u.token})),u},d={escapeChar:"\\",segmentNameStartChar:":",segmentValueCharset:"a-zA-Z0-9-_~ %",segmentNameCharset:"a-zA-Z0-9",optionalSegmentStartChar:"(",optionalSegmentEndChar:")",wildcardChar:"*"},c=function(p,u){if(Array.isArray(p))return O(p,function(y){return c(y,u)});switch(p.tag){case"wildcard":return"(.*?)";case"named":return"(["+u+"]+)";case"static":return f(p.value);case"optional":return"(?:"+c(p.value,u)+")?"}},a=function(p,u){return u==null&&(u=d.segmentValueCharset),"^"+c(p,u)+"$"},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)}},m=function(p,u,y,A){var S,M,H,Z;if(A==null&&(A=!1),Z=p[u],Z==null){if(A)throw new Error("no values provided for key `"+u+"`");return}if(S=y[u]||0,M=Array.isArray(Z)?Z.length-1:0,S>M){if(A)throw new Error("too few values provided for key `"+u+"`");return}return H=Array.isArray(Z)?Z[S]:Z,A&&(y[u]=S+1),H},o=function(p,u,y){var A,S;if(Array.isArray(p)){for(A=-1,S=p.length;++A<S;)if(o(p[A],u,y))return!0;return!1}switch(p.tag){case"wildcard":return m(u,"_",y,!1)!=null;case"named":return m(u,p.value,y,!1)!=null;case"static":return!1;case"optional":return o(p.value,u,y)}},D=function(p,u,y){if(Array.isArray(p))return O(p,function(A){return D(A,u,y)});switch(p.tag){case"wildcard":return m(u,"_",y,!0);case"named":return m(u,p.value,y,!0);case"static":return p.value;case"optional":return o(p.value,u,y)?D(p.value,u,y):""}},e=function(p,u){var y,A,S,M,H;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,u!=null){if(!Array.isArray(u))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(y=C(this.regex),u.length!==y)throw new Error("regex contains "+y+" groups but array of group names contains "+u.length);this.names=u}return}if(p==="")throw new Error("argument must not be the empty string");if(H=p.replace(/\s+/g,""),H!==p)throw new Error("argument must not contain whitespace");if(A={escapeChar:(u!=null?u.escapeChar:void 0)||d.escapeChar,segmentNameStartChar:(u!=null?u.segmentNameStartChar:void 0)||d.segmentNameStartChar,segmentNameCharset:(u!=null?u.segmentNameCharset:void 0)||d.segmentNameCharset,segmentValueCharset:(u!=null?u.segmentValueCharset:void 0)||d.segmentValueCharset,optionalSegmentStartChar:(u!=null?u.optionalSegmentStartChar:void 0)||d.optionalSegmentStartChar,optionalSegmentEndChar:(u!=null?u.optionalSegmentEndChar:void 0)||d.optionalSegmentEndChar,wildcardChar:(u!=null?u.wildcardChar:void 0)||d.wildcardChar},M=_(A),S=M.pattern(p),S==null)throw new Error("couldn't parse pattern");if(S.rest!=="")throw new Error("could only partially parse pattern");this.ast=S.value,this.regex=new RegExp(a(this.ast,A.segmentValueCharset)),this.names=n(this.ast)},e.prototype.match=function(p){var u,y;return y=this.regex.exec(p),y==null?null:(u=y.slice(1),this.names?b(this.names,u):u)},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 D(this.ast,p,{})},e.escapeForRegex=f,e.concatMap=h,e.stringConcatMap=O,e.regexGroupCount=C,e.keysAndValuesToObject=b,e.P=i,e.newParser=_,e.defaultOptions=d,e.astNodeToRegexString=a,e.astNodeToNames=n,e.getParam=m,e.astNodeContainsSegmentsForProvidedParams=o,e.stringify=D,e})})(Ws,Ws.exports);var Co=Ws.exports;const he=$o(Co),Ao=_o,So=xo,Oo=Te,Do=rs,We=J,ko=it,Ke=X,Lo=Ne,tt=L,Eo=Ce,No=he;window["concorde-utils"]=window["concorde-utils"]||{},window["concorde-utils"]={Utils:Ao,Arrays:So,DataBindObserver:Oo,Format:Do,HTML:We,LocationHandler:ko,Objects:Ke,PublisherProxy:Lo,PublisherManager:tt,api:Eo,URLPattern:No};var To=Object.defineProperty,jo=Object.getOwnPropertyDescriptor,Se=(r,t,s,i)=>{for(var e=i>1?void 0:i?jo(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&To(t,s,e),e};const Ks=r=>{class t extends r{constructor(){super(...arguments),this._value="",this.forceAutoFill=!1,this.unique=null,this.radio=null,this.unCheckOnDisconnect=!1,this._checked=null,this.updateAllChecked=()=>{const i=this.getAttribute("name"),e=this.getCheckAllPublisher(),o=this.getFormPublisher();if(e!=null&&e.hasCheckAll.get()&&!this.checksAll()&&e&&o&&i){if(o[this.name].get().length)(this.checked===null||e.checkMode.get()=="noneChecked"||e.checkMode.get()==null)&&(e.checkMode="someUnchecked");else{e.checkMode="noneChecked";return}const n=o[i].get(),a=e.values.get();if(a&&a.length){let c=a.length;for(const h of a)n.indexOf(h)==-1&&(c-=1);c==a.length&&(e.checkMode="allChecked"),c==0&&(e.checkMode="noneChecked")}a.indexOf(this.value)==-1&&(this.checked=null)}},this.onChecksAllRequest=i=>{this.removeAttribute("allChecked"),this.removeAttribute("indeterminate"),i=="allChecked"&&(this.checked=!0,this.setAttribute("allChecked","")),i=="noneChecked"&&(this.checked=null),i=="someUnchecked"&&(this.checksAll()&&(this.checked="indeterminate"),this.setAttribute("indeterminate",""))}}get value(){return this._value}set value(i){if(this.value==i||(this.hasAttribute("value")&&!this.forceAutoFill&&(i=this.getAttribute("value")),this._value==i)||i==null||(this._value=i,!this.value))return;const e=this.getFormPublisher();if(e&&this.name){let o=e[this.name].get();(this.radio||this.unique)&&(this.checked=o==i?!0:null),Array.isArray(o)||(o=[]),o.indexOf(i)!=-1&&(this.checked=!0)}this.checked==!0&&this.updateDataValue(),this.requestUpdate()}get checked(){return this._checked}set checked(i){if(this.setCheckedValue(i),this.checksAll()){const e=this.getCheckAllPublisher();if(e){if(this.checked===!0)e.checkMode="allChecked";else if(this.checked===null){e.checkMode="noneChecked";const o=this.getFormPublisher();o&&(o[this.name]=[])}}}this.requestUpdate()}validateFormElement(){var o;const i=(o=this.shadowRoot)==null?void 0:o.querySelector("input");if(!i||i.checkValidity())return;const e=this.getFormPublisher();if(e){const n=e[this.name].get();if((this.unique||this.radio)&&n!==null&&n.toString().length>0)return;e.isFormValid=!1,i.reportValidity()}}checksAll(){return this.hasAttribute("checksAll")}setCheckedValue(i){this._checked!=i&&(this._checked=i,this.updateDataValue(),this.requestUpdate(),setTimeout(()=>this.updateAllChecked(),1))}handleChange(){const i=this.checked===!0?this.radio?!0:null:!0;this.checked=i;const e=new Event("change");this.dispatchEvent(e)}getValueForFormPublisher(){const i=this.getFormPublisher();if(!i)return null;let e=i[this.name].get();if(this.radio)return this.checked===!0&&this.value!=null?this.value:e;if(this.unique)return this.checked===!0&&this.value!=null?this.value:null;Array.isArray(e)||(e=[]),e=e.slice(0);const 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(i){if(this.unique||this.radio){this.checked=this.value==i?!0:null;return}Array.isArray(i)||(i=[]),!this.checksAll()&&(this.checked=i.indexOf(this.value)!==-1?!0:null)}getCheckAllPublisher(){this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"));const i=this.formDataProvider,e=this.getAttribute("name");return!i||!e?null:tt.get(i+"/"+e+"/_available_values_")}disconnectedCallback(){super.disconnectedCallback();const i=this.getCheckAllPublisher();if(i&&(i.checkMode.offAssign(this.onChecksAllRequest),!this.checksAll())){const e=i.values.get().slice(0),o=e.indexOf(this.value);o!=-1&&(e.splice(o,1),i.values=e)}setTimeout(()=>this.updateAllChecked(),1)}connectedCallback(){super.connectedCallback();const i=this.getFormPublisher();if(i&&this.name){const o=i[this.name].get();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 Se([l()],t.prototype,"value",1),Se([l()],t.prototype,"forceAutoFill",2),Se([l({type:Boolean})],t.prototype,"unique",2),Se([l({type:Boolean})],t.prototype,"radio",2),Se([l({type:Boolean})],t.prototype,"unCheckOnDisconnect",2),Se([l()],t.prototype,"checked",1),t};/**
72
+ */const Xi="important",wo=" !"+Xi,dt=ce(class extends $e{constructor(r){var t;if(super(r),r.type!==le.ATTRIBUTE||r.name!=="style"||((t=r.strings)==null?void 0:t.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,s)=>{const i=r[s];return i==null?t:t+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(r,[t]){const{style:s}=r.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const i of this.ft)t[i]==null&&(this.ft.delete(i),i.includes("-")?s.removeProperty(i):s[i]=null);for(const i in t){const e=t[i];if(e!=null){this.ft.add(i);const o=typeof e=="string"&&e.endsWith(wo);i.includes("-")||o?s.setProperty(i,o?e.slice(0,-11):e,o?Xi:""):s[i]=e}}return ft}});var _o=Object.defineProperty,xo=Object.getOwnPropertyDescriptor,Ct=(r,t,s,i)=>{for(var e=i>1?void 0:i?xo(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&_o(t,s,e),e};const us=new Map,Ae=r=>{class t extends r{constructor(...i){super(),this.touched=!1,this.error=!1,this.autofocus=!1,this.required=!1,this.forceAutoFill=!1,this.disabled=null,this.formDataProvider="",this._name="",this._value="",this.onValueAssign=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(i){this.hasAttribute("name")&&!this.forceAutoFill&&(i=this.getAttribute("name")),this._name=i,this.requestUpdate()}validateFormElement(){}updateDataValue(){const i=this.getAttribute("name");if(i){const e=this.getFormPublisher();e&&(e[i]=this.getValueForFormPublisher(),this.setFormValueFromPublisher(e[i].get()))}}getFormPublisher(){return this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider")),this.formDataProvider?E.get(this.formDataProvider):null}getValueForFormPublisher(){return this.value}setValueFromPublisher(i){this.value=i}setFormValueFromPublisher(i){this.value=i}get value(){return this._value}set value(i){i==null&&(i=""),J.isObject(i)&&Object.prototype.hasOwnProperty.call(i,"__value")&&i._value==null&&(i=""),this._value!=i&&(this._value=i,this.updateDataValue(),this.requestUpdate())}initPublisher(){let i=this.getFormPublisher();const e=this.hasAncestorAttribute("initFromPublisher")&&this._name&&i[this._name].get()?i[this._name].get():this.getAttribute("value");this._name&&this.publisher&&this.publisher[this._name].offAssign(this.onValueAssign),this._name&&i&&i[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&&this.publisher[this._name].onAssign(this.onValueAssign),i=this.getFormPublisher(),this._name&&i&&(i[this._name].onAssign(this.onFormValueAssign),i.onInvalidate(this.onFormDataInValidate)),this.updateDataValue(),e&&(this.value=e)}handleBlur(){this.touched=!0}handleChange(i){this.value=i.target.value;const e=new Event("change");this.dispatchEvent(e)}addKeyboardNavigation(){const i=this.getAncestorAttributeValue("data-keyboard-nav");if(!i)return;const e=i.split(" "),o=e[0];if(!o)return;for(const a of e){us.has(a)||us.set(a,[]);const c=us.get(a);(c==null?void 0:c.indexOf(this))==-1&&c.push(this)}const n=us.get(o);this.addEventListener("keydown",a=>{var b;const c=a;if(!["ArrowDown","ArrowUp"].includes(c.key))return;const h="input:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled])",d=n==null?void 0:n.filter(_=>{var D;const C=(D=_.shadowRoot)==null?void 0:D.querySelector(h);if(!C)return!1;const O=window.getComputedStyle(C);return O.display!=="none"&&O.display!==""&&O.pointerEvents!="none"&&O.visibility!=="hidden"&&C.getBoundingClientRect().width>0});let f=null;if(c.key=="ArrowDown"&&d){const _=d.indexOf(this);_==d.length-1?f=d[0]:f=d[_+1]}else if(c.key=="ArrowUp"&&d){const _=d.indexOf(this);_==0?f=d[d.length-1]:f=d[_-1]}const m=(b=f==null?void 0:f.shadowRoot)==null?void 0:b.querySelector(h);m&&m.focus&&(m.focus(),a.preventDefault(),a.stopPropagation())})}connectedCallback(){this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"),super.connectedCallback(),this.addKeyboardNavigation()}disconnectedCallback(){super.disconnectedCallback(),this._name&&this.publisher&&this.publisher[this._name].offAssign(this.onValueAssign);const i=this.getFormPublisher();this._name&&i&&(i[this._name].offAssign(this.onFormValueAssign),i.offInvalidate(this.onFormDataInValidate))}}return Ct([l({type:Boolean,reflect:!0})],t.prototype,"touched",2),Ct([l({type:Boolean})],t.prototype,"error",2),Ct([l({type:Boolean})],t.prototype,"autofocus",2),Ct([l({type:Boolean})],t.prototype,"required",2),Ct([l({type:Boolean})],t.prototype,"forceAutoFill",2),Ct([l({type:Boolean})],t.prototype,"disabled",2),Ct([l({type:String,attribute:"data-aria-label"})],t.prototype,"ariaLabel",2),Ct([l({type:String,attribute:"data-aria-labelledby"})],t.prototype,"ariaLabelledby",2),Ct([l()],t.prototype,"name",1),Ct([l()],t.prototype,"value",1),t};let Po=class{static async queueTaskPromise(){return new Promise(t=>{window.queueMicrotask(()=>t(null))})}static async delayPromise(t){return new Promise(s=>{setTimeout(s,t)})}},$o=class _e{static areEqual(t,s){return t.length===s.length?t.every((i,e)=>i===s[e]):!1}static from2d(t){return{to1D:()=>{let s=[];return t.forEach(i=>s=s.concat(i)),this.from(s)}}}static from(t){return{get:()=>t||[],everyItem:()=>({has:()=>({same:()=>({value:()=>({forKey:s=>{if(t.length<1)return!0;const i=(t[0]||{})[s];return t.every(e=>(e||{})[s]==i)}})})}),value:()=>({forKey:s=>_e.from(t.map(i=>i[s]))}),copy:()=>({fromKey:s=>({toKey:i=>{t.forEach(e=>{e[i]=Array.isArray(e[s])?[...e[s]]:typeof e[s]=="object"&&e[s]!=null?{...e[s]}:e[s]})}})})}),map:s=>_e.from(t.map(s)),filter:s=>_e.from(t.filter(s)),find:s=>t.find(s),some:s=>t.some(s),every:s=>t.every(s),group:()=>({byKey:s=>{const i=[],e=new Map;for(const o of t){const n=o[s];if(!e.has(n)){const a=i.length;e.set(n,a);const c={items:[]};c[s]=n,i.push(c)}i[e.get(n)].items.push(o)}return _e.from(i)}}),without:()=>({duplicates:()=>({forKey:s=>{const i=[...new Set(t.map(e=>e[s]))];return _e.from(i.map(e=>t.find(o=>o[s]==e)))}}),itemsIn:s=>({havingSameValue:()=>({forKey:i=>{const e=(o,n)=>a=>o[n]!=a[n];return _e.from(t.filter(o=>s.every(e(o,i))))}})})})}}};var Co=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ao(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Zs={exports:{}};(function(r,t){var s=[].slice;(function(i,e){return t!==null?r.exports=e():i.UrlPattern=e()})(Co,function(){var i,e,o,n,a,c,h,d,f,m,b,_,C,O,D;return f=function(p){return p.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},h=function(p,u){var y,A,S;for(S=[],y=-1,A=p.length;++y<A;)S=S.concat(u(p[y]));return S},O=function(p,u){var y,A,S;for(S="",y=-1,A=p.length;++y<A;)S+=u(p[y]);return S},C=function(p){return new RegExp(p.toString()+"|").exec("").length-1},b=function(p,u){var y,A,S,M,H;for(M={},y=-1,S=p.length;++y<S;)A=p[y],H=u[y],H!=null&&(M[A]!=null?(Array.isArray(M[A])||(M[A]=[M[A]]),M[A].push(H)):M[A]=H);return M},i={},i.Result=function(p,u){this.value=p,this.rest=u},i.Tagged=function(p,u){this.tag=p,this.value=u},i.tag=function(p,u){return function(y){var A,S;if(A=u(y),A!=null)return S=new i.Tagged(p,A.value),new i.Result(S,A.rest)}},i.regex=function(p){return function(u){var y,A;if(y=p.exec(u),y!=null)return A=y[0],new i.Result(A,u.slice(A.length))}},i.sequence=function(){var p;return p=1<=arguments.length?s.call(arguments,0):[],function(u){var y,A,S,M,H,Z;for(y=-1,A=p.length,Z=[],M=u;++y<A;){if(S=p[y],H=S(M),H==null)return;Z.push(H.value),M=H.rest}return new i.Result(Z,M)}},i.pick=function(){var p,u;return p=arguments[0],u=2<=arguments.length?s.call(arguments,1):[],function(y){var A,S;if(S=i.sequence.apply(i,u)(y),S!=null)return A=S.value,S.value=A[p],S}},i.string=function(p){var u;return u=p.length,function(y){if(y.slice(0,u)===p)return new i.Result(p,y.slice(u))}},i.lazy=function(p){var u;return u=null,function(y){return u==null&&(u=p()),u(y)}},i.baseMany=function(p,u,y,A,S){var M,H,Z,we;for(Z=S,we=y?"":[];!(u!=null&&(M=u(Z),M!=null)||(H=p(Z),H==null));)y?we+=H.value:we.push(H.value),Z=H.rest;if(!(A&&we.length===0))return new i.Result(we,Z)},i.many1=function(p){return function(u){return i.baseMany(p,null,!1,!0,u)}},i.concatMany1Till=function(p,u){return function(y){return i.baseMany(p,u,!0,!0,y)}},i.firstChoice=function(){var p;return p=1<=arguments.length?s.call(arguments,0):[],function(u){var y,A,S,M;for(y=-1,A=p.length;++y<A;)if(S=p[y],M=S(u),M!=null)return M}},_=function(p){var u;return u={},u.wildcard=i.tag("wildcard",i.string(p.wildcardChar)),u.optional=i.tag("optional",i.pick(1,i.string(p.optionalSegmentStartChar),i.lazy(function(){return u.pattern}),i.string(p.optionalSegmentEndChar))),u.name=i.regex(new RegExp("^["+p.segmentNameCharset+"]+")),u.named=i.tag("named",i.pick(1,i.string(p.segmentNameStartChar),i.lazy(function(){return u.name}))),u.escapedChar=i.pick(1,i.string(p.escapeChar),i.regex(/^./)),u.static=i.tag("static",i.concatMany1Till(i.firstChoice(i.lazy(function(){return u.escapedChar}),i.regex(/^./)),i.firstChoice(i.string(p.segmentNameStartChar),i.string(p.optionalSegmentStartChar),i.string(p.optionalSegmentEndChar),u.wildcard))),u.token=i.lazy(function(){return i.firstChoice(u.wildcard,u.optional,u.named,u.static)}),u.pattern=i.many1(i.lazy(function(){return u.token})),u},d={escapeChar:"\\",segmentNameStartChar:":",segmentValueCharset:"a-zA-Z0-9-_~ %",segmentNameCharset:"a-zA-Z0-9",optionalSegmentStartChar:"(",optionalSegmentEndChar:")",wildcardChar:"*"},c=function(p,u){if(Array.isArray(p))return O(p,function(y){return c(y,u)});switch(p.tag){case"wildcard":return"(.*?)";case"named":return"(["+u+"]+)";case"static":return f(p.value);case"optional":return"(?:"+c(p.value,u)+")?"}},a=function(p,u){return u==null&&(u=d.segmentValueCharset),"^"+c(p,u)+"$"},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)}},m=function(p,u,y,A){var S,M,H,Z;if(A==null&&(A=!1),Z=p[u],Z==null){if(A)throw new Error("no values provided for key `"+u+"`");return}if(S=y[u]||0,M=Array.isArray(Z)?Z.length-1:0,S>M){if(A)throw new Error("too few values provided for key `"+u+"`");return}return H=Array.isArray(Z)?Z[S]:Z,A&&(y[u]=S+1),H},o=function(p,u,y){var A,S;if(Array.isArray(p)){for(A=-1,S=p.length;++A<S;)if(o(p[A],u,y))return!0;return!1}switch(p.tag){case"wildcard":return m(u,"_",y,!1)!=null;case"named":return m(u,p.value,y,!1)!=null;case"static":return!1;case"optional":return o(p.value,u,y)}},D=function(p,u,y){if(Array.isArray(p))return O(p,function(A){return D(A,u,y)});switch(p.tag){case"wildcard":return m(u,"_",y,!0);case"named":return m(u,p.value,y,!0);case"static":return p.value;case"optional":return o(p.value,u,y)?D(p.value,u,y):""}},e=function(p,u){var y,A,S,M,H;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,u!=null){if(!Array.isArray(u))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(y=C(this.regex),u.length!==y)throw new Error("regex contains "+y+" groups but array of group names contains "+u.length);this.names=u}return}if(p==="")throw new Error("argument must not be the empty string");if(H=p.replace(/\s+/g,""),H!==p)throw new Error("argument must not contain whitespace");if(A={escapeChar:(u!=null?u.escapeChar:void 0)||d.escapeChar,segmentNameStartChar:(u!=null?u.segmentNameStartChar:void 0)||d.segmentNameStartChar,segmentNameCharset:(u!=null?u.segmentNameCharset:void 0)||d.segmentNameCharset,segmentValueCharset:(u!=null?u.segmentValueCharset:void 0)||d.segmentValueCharset,optionalSegmentStartChar:(u!=null?u.optionalSegmentStartChar:void 0)||d.optionalSegmentStartChar,optionalSegmentEndChar:(u!=null?u.optionalSegmentEndChar:void 0)||d.optionalSegmentEndChar,wildcardChar:(u!=null?u.wildcardChar:void 0)||d.wildcardChar},M=_(A),S=M.pattern(p),S==null)throw new Error("couldn't parse pattern");if(S.rest!=="")throw new Error("could only partially parse pattern");this.ast=S.value,this.regex=new RegExp(a(this.ast,A.segmentValueCharset)),this.names=n(this.ast)},e.prototype.match=function(p){var u,y;return y=this.regex.exec(p),y==null?null:(u=y.slice(1),this.names?b(this.names,u):u)},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 D(this.ast,p,{})},e.escapeForRegex=f,e.concatMap=h,e.stringConcatMap=O,e.regexGroupCount=C,e.keysAndValuesToObject=b,e.P=i,e.newParser=_,e.defaultOptions=d,e.astNodeToRegexString=a,e.astNodeToNames=n,e.getParam=m,e.astNodeContainsSegmentsForProvidedParams=o,e.stringify=D,e})})(Zs,Zs.exports);var So=Zs.exports;const he=Ao(So),Oo=Po,Do=$o,ko=os,Lo=rs,qe=X,Eo=it,We=J,No=Ne,tt=E,To=Ce,jo=he;window["concorde-utils"]=window["concorde-utils"]||{},window["concorde-utils"]={Utils:Oo,Arrays:Do,DataBindObserver:ko,Format:Lo,HTML:qe,LocationHandler:Eo,Objects:We,PublisherProxy:No,PublisherManager:tt,api:To,URLPattern:jo};var Mo=Object.defineProperty,Io=Object.getOwnPropertyDescriptor,Se=(r,t,s,i)=>{for(var e=i>1?void 0:i?Io(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Mo(t,s,e),e};const Gs=r=>{class t extends r{constructor(){super(...arguments),this._value="",this.forceAutoFill=!1,this.unique=null,this.radio=null,this.unCheckOnDisconnect=!1,this._checked=null,this.updateAllChecked=()=>{const i=this.getAttribute("name"),e=this.getCheckAllPublisher(),o=this.getFormPublisher();if(e!=null&&e.hasCheckAll.get()&&!this.checksAll()&&e&&o&&i){if(o[this.name].get().length)(this.checked===null||e.checkMode.get()=="noneChecked"||e.checkMode.get()==null)&&(e.checkMode="someUnchecked");else{e.checkMode="noneChecked";return}const n=o[i].get(),a=e.values.get();if(a&&a.length){let c=a.length;for(const h of a)n.indexOf(h)==-1&&(c-=1);c==a.length&&(e.checkMode="allChecked"),c==0&&(e.checkMode="noneChecked")}a.indexOf(this.value)==-1&&(this.checked=null)}},this.onChecksAllRequest=i=>{this.removeAttribute("allChecked"),this.removeAttribute("indeterminate"),i=="allChecked"&&(this.checked=!0,this.setAttribute("allChecked","")),i=="noneChecked"&&(this.checked=null),i=="someUnchecked"&&(this.checksAll()&&(this.checked="indeterminate"),this.setAttribute("indeterminate",""))}}get value(){return this._value}set value(i){if(this.value==i||(this.hasAttribute("value")&&!this.forceAutoFill&&(i=this.getAttribute("value")),this._value==i)||i==null||(this._value=i,!this.value))return;const e=this.getFormPublisher();if(e&&this.name){let o=e[this.name].get();(this.radio||this.unique)&&(this.checked=o==i?!0:null),Array.isArray(o)||(o=[]),o.indexOf(i)!=-1&&(this.checked=!0)}this.checked==!0&&this.updateDataValue(),this.requestUpdate()}get checked(){return this._checked}set checked(i){if(this.setCheckedValue(i),this.checksAll()){const e=this.getCheckAllPublisher();if(e){if(this.checked===!0)e.checkMode="allChecked";else if(this.checked===null){e.checkMode="noneChecked";const o=this.getFormPublisher();o&&(o[this.name]=[])}}}this.requestUpdate()}validateFormElement(){var o;const i=(o=this.shadowRoot)==null?void 0:o.querySelector("input");if(!i||i.checkValidity())return;const e=this.getFormPublisher();if(e){const n=e[this.name].get();if((this.unique||this.radio)&&n!==null&&n.toString().length>0)return;e.isFormValid=!1,i.reportValidity()}}checksAll(){return this.hasAttribute("checksAll")}setCheckedValue(i){this._checked!=i&&(this._checked=i,this.updateDataValue(),this.requestUpdate(),setTimeout(()=>this.updateAllChecked(),1))}handleChange(){const i=this.checked===!0?this.radio?!0:null:!0;this.checked=i;const e=new Event("change");this.dispatchEvent(e)}getValueForFormPublisher(){const i=this.getFormPublisher();if(!i)return null;let e=i[this.name].get();if(this.radio)return this.checked===!0&&this.value!=null?this.value:e;if(this.unique)return this.checked===!0&&this.value!=null?this.value:null;Array.isArray(e)||(e=[]),e=e.slice(0);const 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(i){if(this.unique||this.radio){this.checked=this.value==i?!0:null;return}Array.isArray(i)||(i=[]),!this.checksAll()&&(this.checked=i.indexOf(this.value)!==-1?!0:null)}getCheckAllPublisher(){this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"));const i=this.formDataProvider,e=this.getAttribute("name");return!i||!e?null:tt.get(i+"/"+e+"/_available_values_")}disconnectedCallback(){super.disconnectedCallback();const i=this.getCheckAllPublisher();if(i&&(i.checkMode.offAssign(this.onChecksAllRequest),!this.checksAll())){const e=i.values.get().slice(0),o=e.indexOf(this.value);o!=-1&&(e.splice(o,1),i.values=e)}setTimeout(()=>this.updateAllChecked(),1)}connectedCallback(){super.connectedCallback();const i=this.getFormPublisher();if(i&&this.name){const o=i[this.name].get();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 Se([l()],t.prototype,"value",1),Se([l()],t.prototype,"forceAutoFill",2),Se([l({type:Boolean})],t.prototype,"unique",2),Se([l({type:Boolean})],t.prototype,"radio",2),Se([l({type:Boolean})],t.prototype,"unCheckOnDisconnect",2),Se([l()],t.prototype,"checked",1),t};/**
73
73
  * @license
74
74
  * Copyright 2018 Google LLC
75
75
  * SPDX-License-Identifier: BSD-3-Clause
@@ -99,7 +99,7 @@
99
99
  :host([size="2xl"]) {
100
100
  --sc-fs: 1.5rem;
101
101
  }
102
- `;var Mo=Object.defineProperty,Io=Object.getOwnPropertyDescriptor,F=(r,t,s,i)=>{for(var e=i>1?void 0:i?Io(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Mo(t,s,e),e};const zo="sonic-button";let N=class extends Ks(Ae(G(v))){constructor(){super(...arguments),this.type="default",this.variant="default",this.shape="default",this.direction="row",this.alignItems="center",this.justify="center",this.minWidth="0",this.icon=!1,this.download=null,this.autoActive="partial",this.loading=!1,this.hasPrefix=!1,this.hasSuffix=!1,this._href="",this.goBack=null,this.pushState=!1,this.active=!1,this.autoRepeat=!1,this.pointerDownTime=0,this.lastRepeatTime=0,this.isRepeating=!1,this.handleRepeatend=()=>{window.removeEventListener("pointerup",this.handleRepeatend),window.removeEventListener("blur",this.handleRepeatend),this.autoRepeat&&(this.isRepeating=!1)},this.location=""}set href(r){this._href=r,this.href&&this.href.indexOf("http")!=0?it.onChange(this):it.offChange(this),this.requestUpdate()}get href(){return this._href}handleNavigation(r){r.preventDefault(),it.changeFromComponent(this)}handleChange(r){if(!((r==null?void 0:r.type)=="click"&&this.autoRepeat)&&(super.handleChange(),(this.pushState||this.goBack!==null)&&(r==null||r.preventDefault(),r==null||r.stopPropagation(),it.changeFromComponent(this)),this.hasAttribute("reset"))){const t=this.getAttribute("reset"),s=t?tt.get(t):this.getFormPublisher();s&&s.set({})}}handleRepeatStart(r){this.autoRepeat&&(this.handleChange(r),this.pointerDownTime=Date.now(),this.isRepeating=!0,this.repeat()),window.addEventListener("pointerup",this.handleRepeatend),window.addEventListener("blur",this.handleRepeatend)}repeat(){if(this.isRepeating){if(this.hasAttribute("disabled")){this.isRepeating=!1;return}window.requestAnimationFrame(this.repeat.bind(this)),!(Date.now()-this.pointerDownTime<500)&&(Date.now()-this.lastRepeatTime<100||(this.handleChange(),this.lastRepeatTime=Date.now()))}}connectedCallback(){super.connectedCallback()}setCheckedValue(r){if(this.name){if(r?this.setAttribute("active","true"):this.removeAttribute("active"),r==this._checked)return;super.setCheckedValue(r)}}disconnectedCallback(){it.offChange(this),super.disconnectedCallback()}willUpdate(r){(r.has("href")||r.has("autoActive"))&&it.updateComponentActiveState(this),r.has("location")&&it.updateComponentActiveState(this)}render(){const r={flexDirection:this.direction,alignItems:this.alignItems,justifyContent:this.justify,align:this.align,minWidth:this.minWidth},t=g`
102
+ `;var Ro=Object.defineProperty,Fo=Object.getOwnPropertyDescriptor,F=(r,t,s,i)=>{for(var e=i>1?void 0:i?Fo(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ro(t,s,e),e};const zo="sonic-button";let T=class extends Gs(Ae(G(v))){constructor(){super(...arguments),this.type="default",this.variant="default",this.shape="default",this.direction="row",this.alignItems="center",this.justify="center",this.minWidth="0",this.icon=!1,this.download=null,this.autoActive="partial",this.loading=!1,this.hasPrefix=!1,this.hasSuffix=!1,this._href="",this.goBack=null,this.pushState=!1,this.active=!1,this.autoRepeat=!1,this.pointerDownTime=0,this.lastRepeatTime=0,this.isRepeating=!1,this.handleRepeatend=()=>{window.removeEventListener("pointerup",this.handleRepeatend),window.removeEventListener("blur",this.handleRepeatend),this.autoRepeat&&(this.isRepeating=!1)},this.location=""}set href(r){this._href=r,this.href&&this.href.indexOf("http")!=0?it.onChange(this):it.offChange(this),this.requestUpdate()}get href(){return this._href}handleNavigation(r){r.preventDefault(),it.changeFromComponent(this)}handleChange(r){if(!((r==null?void 0:r.type)=="click"&&this.autoRepeat)&&(super.handleChange(),(this.pushState||this.goBack!==null)&&(r==null||r.preventDefault(),r==null||r.stopPropagation(),it.changeFromComponent(this)),this.hasAttribute("reset"))){const t=this.getAttribute("reset"),s=t?tt.get(t):this.getFormPublisher();s&&s.set({})}}handleRepeatStart(r){this.autoRepeat&&(this.handleChange(r),this.pointerDownTime=Date.now(),this.isRepeating=!0,this.repeat()),window.addEventListener("pointerup",this.handleRepeatend),window.addEventListener("blur",this.handleRepeatend)}repeat(){if(this.isRepeating){if(this.hasAttribute("disabled")){this.isRepeating=!1;return}window.requestAnimationFrame(this.repeat.bind(this)),!(Date.now()-this.pointerDownTime<500)&&(Date.now()-this.lastRepeatTime<100||(this.handleChange(),this.lastRepeatTime=Date.now()))}}connectedCallback(){super.connectedCallback()}setCheckedValue(r){if(this.name){if(r?this.setAttribute("active","true"):this.removeAttribute("active"),r==this._checked)return;super.setCheckedValue(r)}}disconnectedCallback(){it.offChange(this),super.disconnectedCallback()}willUpdate(r){(r.has("href")||r.has("autoActive"))&&it.updateComponentActiveState(this),r.has("location")&&it.updateComponentActiveState(this)}render(){const r={flexDirection:this.direction,alignItems:this.alignItems,justifyContent:this.justify,align:this.align,minWidth:this.minWidth},t=g`
103
103
  <button
104
104
  part="button"
105
105
  class=${this.hasPrefix||this.hasSuffix?"has-prefix-or-suffix":""}
@@ -124,7 +124,7 @@
124
124
  aria-labelledby=${x(this.ariaLabelledby)}
125
125
  @click=${this.pushState||this.goBack!==null?this.handleNavigation:null}
126
126
  >${t}</a
127
- >`:g`${t}`}onSlotChange(){var r,t;this.hasPrefix=!!((r=this.prefixes)!=null&&r.length),this.hasSuffix=!!((t=this.suffixes)!=null&&t.length)}};N.styles=[At,P`
127
+ >`:g`${t}`}onSlotChange(){var r,t;this.hasPrefix=!!((r=this.prefixes)!=null&&r.length),this.hasSuffix=!!((t=this.suffixes)!=null&&t.length)}};T.styles=[At,P`
128
128
  * {
129
129
  box-sizing: border-box;
130
130
  }
@@ -467,11 +467,11 @@
467
467
  transform: translate(-50%, -50%) rotate(359deg);
468
468
  }
469
469
  }
470
- `],F([l({type:String,reflect:!0})],N.prototype,"type",2),F([l({type:String,reflect:!0})],N.prototype,"variant",2),F([l({type:String,reflect:!0})],N.prototype,"size",2),F([l({type:String,reflect:!0})],N.prototype,"shape",2),F([l({type:String})],N.prototype,"direction",2),F([l({type:String,reflect:!0})],N.prototype,"alignItems",2),F([l({type:String})],N.prototype,"justify",2),F([l({type:String,reflect:!0})],N.prototype,"align",2),F([l({type:String})],N.prototype,"minWidth",2),F([l({type:Boolean,reflect:!0})],N.prototype,"icon",2),F([l({type:String})],N.prototype,"download",2),F([l({type:String})],N.prototype,"autoActive",2),F([l({type:Boolean,reflect:!0})],N.prototype,"loading",2),F([T()],N.prototype,"hasPrefix",2),F([T()],N.prototype,"hasSuffix",2),F([se({flatten:!0,slot:"prefix"})],N.prototype,"prefixes",2),F([se({flatten:!0,slot:"suffix"})],N.prototype,"suffixes",2),F([l({type:String})],N.prototype,"target",2),F([l({type:String})],N.prototype,"href",1),F([l({type:String})],N.prototype,"goBack",2),F([l({type:Boolean})],N.prototype,"pushState",2),F([l({type:Boolean,reflect:!0})],N.prototype,"active",2),F([l({type:Boolean,reflect:!0})],N.prototype,"autoRepeat",2),F([l({type:String,attribute:"data-aria-controls"})],N.prototype,"ariaControls",2),F([l({type:Boolean,attribute:"data-aria-expanded"})],N.prototype,"sonicAriaExpanded",2),F([T()],N.prototype,"location",2),N=F([w(zo)],N);/**
470
+ `],F([l({type:String,reflect:!0})],T.prototype,"type",2),F([l({type:String,reflect:!0})],T.prototype,"variant",2),F([l({type:String,reflect:!0})],T.prototype,"size",2),F([l({type:String,reflect:!0})],T.prototype,"shape",2),F([l({type:String})],T.prototype,"direction",2),F([l({type:String,reflect:!0})],T.prototype,"alignItems",2),F([l({type:String})],T.prototype,"justify",2),F([l({type:String,reflect:!0})],T.prototype,"align",2),F([l({type:String})],T.prototype,"minWidth",2),F([l({type:Boolean,reflect:!0})],T.prototype,"icon",2),F([l({type:String})],T.prototype,"download",2),F([l({type:String})],T.prototype,"autoActive",2),F([l({type:Boolean,reflect:!0})],T.prototype,"loading",2),F([j()],T.prototype,"hasPrefix",2),F([j()],T.prototype,"hasSuffix",2),F([se({flatten:!0,slot:"prefix"})],T.prototype,"prefixes",2),F([se({flatten:!0,slot:"suffix"})],T.prototype,"suffixes",2),F([l({type:String})],T.prototype,"target",2),F([l({type:String})],T.prototype,"href",1),F([l({type:String})],T.prototype,"goBack",2),F([l({type:Boolean})],T.prototype,"pushState",2),F([l({type:Boolean,reflect:!0})],T.prototype,"active",2),F([l({type:Boolean,reflect:!0})],T.prototype,"autoRepeat",2),F([l({type:String,attribute:"data-aria-controls"})],T.prototype,"ariaControls",2),F([l({type:Boolean,attribute:"data-aria-expanded"})],T.prototype,"sonicAriaExpanded",2),F([j()],T.prototype,"location",2),T=F([w(zo)],T);/**
471
471
  * @license
472
472
  * Copyright 2017 Google LLC
473
473
  * SPDX-License-Identifier: BSD-3-Clause
474
- */const Qi=(r,t,s)=>{const i=new Map;for(let e=t;e<=s;e++)i.set(r[e],e);return i},us=ce(class extends $e{constructor(r){if(super(r),r.type!==le.CHILD)throw Error("repeat() can only be used in text expressions")}dt(r,t,s){let i;s===void 0?s=t:t!==void 0&&(i=t);const e=[],o=[];let n=0;for(const a of r)e[n]=i?i(a,n):n,o[n]=s(a,n),n++;return{values:o,keys:e}}render(r,t,s){return this.dt(r,t,s).values}update(r,[t,s,i]){const e=Xr(r),{values:o,keys:n}=this.dt(t,s,i);if(!Array.isArray(e))return this.ut=n,o;const a=this.ut??(this.ut=[]),c=[];let h,d,f=0,m=e.length-1,b=0,_=o.length-1;for(;f<=m&&b<=_;)if(e[f]===null)f++;else if(e[m]===null)m--;else if(a[f]===n[b])c[b]=ae(e[f],o[b]),f++,b++;else if(a[m]===n[_])c[_]=ae(e[m],o[_]),m--,_--;else if(a[f]===n[_])c[_]=ae(e[f],o[_]),Ve(r,c[_+1],e[f]),f++,_--;else if(a[m]===n[b])c[b]=ae(e[m],o[b]),Ve(r,e[f],e[m]),m--,b++;else if(h===void 0&&(h=Qi(n,b,_),d=Qi(a,f,m)),h.has(a[f]))if(h.has(a[m])){const C=d.get(n[b]),O=C!==void 0?e[C]:null;if(O===null){const D=Ve(r,e[f]);ae(D,o[b]),c[b]=D}else c[b]=ae(O,o[b]),Ve(r,e[f],O),e[C]=null;b++}else Rs(e[m]),m--;else Rs(e[f]),f++;for(;b<=_;){const C=Ve(r,c[_+1]);ae(C,o[b]),c[b++]=C}for(;f<=m;){const C=e[f++];C!==null&&Rs(C)}return this.ut=n,Jr(r,c),ft}}),Fo=new WeakMap;let Ji=0;const Zs=new Map,Xi=new WeakSet,tr=()=>new Promise(r=>requestAnimationFrame(r)),Ro=[{opacity:0}],Uo=[{opacity:0},{opacity:1}],er=(r,t)=>{const s=r-t;return s===0?void 0:s},sr=(r,t)=>{const s=r/t;return s===1?void 0:s},Gs={left:(r,t)=>{const s=er(r,t);return{value:s,transform:s==null||isNaN(s)?void 0:`translateX(${s}px)`}},top:(r,t)=>{const s=er(r,t);return{value:s,transform:s==null||isNaN(s)?void 0:`translateY(${s}px)`}},width:(r,t)=>{let s;t===0&&(t=1,s={width:"1px"});const i=sr(r,t);return{value:i,overrideFrom:s,transform:i==null||isNaN(i)?void 0:`scaleX(${i})`}},height:(r,t)=>{let s;t===0&&(t=1,s={height:"1px"});const i=sr(r,t);return{value:i,overrideFrom:s,transform:i==null||isNaN(i)?void 0:`scaleY(${i})`}}},Vo={duration:333,easing:"ease-in-out"},Bo=["left","top","width","height","opacity","color","background"],ir=new WeakMap;class Ho extends Us{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===le.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){var t;(t=this.resolveFinished)==null||t.call(this),this.finished=new Promise(s=>{this.l=s})}async resolveFinished(){var t;(t=this.l)==null||t.call(this),this.l=void 0}render(t){return $}getController(){return Fo.get(this.u)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[s]){var e;const i=this.u===void 0;return i&&(this.u=(e=t.options)==null?void 0:e.host,this.u.addController(this),this.u.updateComplete.then(o=>this.t=!0),this.element=t.element,ir.set(this.element,this)),this.optionsOrCallback=s,(i||typeof s!="function")&&this.p(s),this.render(s)}p(t){t=t??{};const s=this.getController();s!==void 0&&((t={...s.defaultOptions,...t}).keyframeOptions={...s.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??(t.properties=Bo),this.options=t}m(){const t={},s=this.element.getBoundingClientRect(),i=getComputedStyle(this.element);return this.options.properties.forEach(e=>{const o=s[e]??(Gs[e]?void 0:i[e]),n=Number(o);t[e]=isNaN(n)?o+"":n}),t}v(){let t,s=!0;return this.options.guard&&(t=this.options.guard(),s=((i,e)=>{if(Array.isArray(i)){if(Array.isArray(e)&&e.length===i.length&&i.every((o,n)=>o===e[n]))return!1}else if(e===i)return!1;return!0})(t,this._)),this.h=this.t&&!this.isDisabled()&&!this.isAnimating()&&s&&this.element.isConnected,this.h&&(this._=Array.isArray(t)?Array.from(t):t),this.h}hostUpdate(){typeof this.optionsOrCallback=="function"&&this.p(this.optionsOrCallback()),this.v()&&(this.A=this.m(),this.i=this.i??this.element.parentNode,this.o=this.element.nextSibling)}async hostUpdated(){if(!this.h||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await tr;const s=this.O(),i=this.j(this.options.keyframeOptions,s),e=this.m();if(this.A!==void 0){const{from:o,to:n}=this.N(this.A,e,s);this.log("measured",[this.A,e,o,n]),t=this.calculateKeyframes(o,n)}else{const o=Zs.get(this.options.inId);if(o){Zs.delete(this.options.inId);const{from:n,to:a}=this.N(o,e,s);t=this.calculateKeyframes(n,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,Ji++,t.forEach(c=>c.zIndex=Ji)}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,i)}resetStyles(){this.P!==void 0&&(this.element.setAttribute("style",this.P??""),this.P=void 0)}commitStyles(){var t,s;this.P=this.element.getAttribute("style"),(t=this.webAnimation)==null||t.commitStyles(),(s=this.webAnimation)==null||s.cancel()}reconnected(){}async disconnected(){var s;if(!this.h||(this.options.id!==void 0&&Zs.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await tr(),(s=this.i)==null?void 0:s.isConnected){const i=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,i),this.options.stabilizeOut){const e=this.m();this.log("stabilizing out");const o=this.A.left-e.left,n=this.A.top-e.top;getComputedStyle(this.element).position!=="static"||o===0&&n===0||(this.element.style.position="relative"),o!==0&&(this.element.style.left=o+"px"),n!==0&&(this.element.style.top=n+"px")}}const t=this.j(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){var t,s;(s=(t=this.options).onStart)==null||s.call(t,this)}didFinish(t){var s,i;t&&((i=(s=this.options).onComplete)==null||i.call(s,this)),this.A=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}O(){const t=[];for(let s=this.element.parentNode;s;s=s==null?void 0:s.parentNode){const i=ir.get(s);i&&!i.isDisabled()&&i&&t.push(i)}return t}get isHostRendered(){const t=Xi.has(this.u);return t||this.u.updateComplete.then(()=>{Xi.add(this.u)}),t}j(t,s=this.O()){const i={...Vo};return s.forEach(e=>Object.assign(i,e.options.keyframeOptions)),Object.assign(i,t),i}N(t,s,i){t={...t},s={...s};const e=i.map(a=>a.animatingProperties).filter(a=>a!==void 0);let o=1,n=1;return e.length>0&&(e.forEach(a=>{a.width&&(o/=a.width),a.height&&(n/=a.height)}),t.left!==void 0&&s.left!==void 0&&(t.left=o*t.left,s.left=o*s.left),t.top!==void 0&&s.top!==void 0&&(t.top=n*t.top,s.top=n*s.top)),{from:t,to:s}}calculateKeyframes(t,s,i=!1){const e={},o={};let n=!1;const a={};for(const c in s){const h=t[c],d=s[c];if(c in Gs){const f=Gs[c];if(h===void 0||d===void 0)continue;const m=f(h,d);m.transform!==void 0&&(a[c]=m.value,n=!0,e.transform=`${e.transform??""} ${m.transform}`,m.overrideFrom!==void 0&&Object.assign(e,m.overrideFrom))}else h!==d&&h!==void 0&&d!==void 0&&(n=!0,e[c]=h,o[c]=d)}return e.transformOrigin=o.transformOrigin=i?"center center":"top left",this.animatingProperties=a,n?[e,o]:void 0}async animate(t,s=this.options.keyframeOptions){this.start(),this.frames=t;let i=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),t!==void 0)){this.log("animate",[t,s]),i=!0,this.webAnimation=this.element.animate(t,s);const e=this.getController();e==null||e.add(this);try{await this.webAnimation.finished}catch{}e==null||e.remove(this)}return this.didFinish(i),i}isAnimating(){var t,s;return((t=this.webAnimation)==null?void 0:t.playState)==="running"||((s=this.webAnimation)==null?void 0:s.pending)}log(t,s){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,s)}}const fs=ce(Ho),qo={core:{cancel:`<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
474
+ */const Ji=(r,t,s)=>{const i=new Map;for(let e=t;e<=s;e++)i.set(r[e],e);return i},fs=ce(class extends $e{constructor(r){if(super(r),r.type!==le.CHILD)throw Error("repeat() can only be used in text expressions")}dt(r,t,s){let i;s===void 0?s=t:t!==void 0&&(i=t);const e=[],o=[];let n=0;for(const a of r)e[n]=i?i(a,n):n,o[n]=s(a,n),n++;return{values:o,keys:e}}render(r,t,s){return this.dt(r,t,s).values}update(r,[t,s,i]){const e=eo(r),{values:o,keys:n}=this.dt(t,s,i);if(!Array.isArray(e))return this.ut=n,o;const a=this.ut??(this.ut=[]),c=[];let h,d,f=0,m=e.length-1,b=0,_=o.length-1;for(;f<=m&&b<=_;)if(e[f]===null)f++;else if(e[m]===null)m--;else if(a[f]===n[b])c[b]=ae(e[f],o[b]),f++,b++;else if(a[m]===n[_])c[_]=ae(e[m],o[_]),m--,_--;else if(a[f]===n[_])c[_]=ae(e[f],o[_]),Ue(r,c[_+1],e[f]),f++,_--;else if(a[m]===n[b])c[b]=ae(e[m],o[b]),Ue(r,e[f],e[m]),m--,b++;else if(h===void 0&&(h=Ji(n,b,_),d=Ji(a,f,m)),h.has(a[f]))if(h.has(a[m])){const C=d.get(n[b]),O=C!==void 0?e[C]:null;if(O===null){const D=Ue(r,e[f]);ae(D,o[b]),c[b]=D}else c[b]=ae(O,o[b]),Ue(r,e[f],O),e[C]=null;b++}else Vs(e[m]),m--;else Vs(e[f]),f++;for(;b<=_;){const C=Ue(r,c[_+1]);ae(C,o[b]),c[b++]=C}for(;f<=m;){const C=e[f++];C!==null&&Vs(C)}return this.ut=n,to(r,c),ft}}),Uo=new WeakMap;let tr=0;const Ys=new Map,er=new WeakSet,sr=()=>new Promise(r=>requestAnimationFrame(r)),Vo=[{opacity:0}],Bo=[{opacity:0},{opacity:1}],ir=(r,t)=>{const s=r-t;return s===0?void 0:s},rr=(r,t)=>{const s=r/t;return s===1?void 0:s},Qs={left:(r,t)=>{const s=ir(r,t);return{value:s,transform:s==null||isNaN(s)?void 0:`translateX(${s}px)`}},top:(r,t)=>{const s=ir(r,t);return{value:s,transform:s==null||isNaN(s)?void 0:`translateY(${s}px)`}},width:(r,t)=>{let s;t===0&&(t=1,s={width:"1px"});const i=rr(r,t);return{value:i,overrideFrom:s,transform:i==null||isNaN(i)?void 0:`scaleX(${i})`}},height:(r,t)=>{let s;t===0&&(t=1,s={height:"1px"});const i=rr(r,t);return{value:i,overrideFrom:s,transform:i==null||isNaN(i)?void 0:`scaleY(${i})`}}},Ho={duration:333,easing:"ease-in-out"},qo=["left","top","width","height","opacity","color","background"],or=new WeakMap;class Wo extends Bs{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===le.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){var t;(t=this.resolveFinished)==null||t.call(this),this.finished=new Promise(s=>{this.l=s})}async resolveFinished(){var t;(t=this.l)==null||t.call(this),this.l=void 0}render(t){return $}getController(){return Uo.get(this.u)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[s]){var e;const i=this.u===void 0;return i&&(this.u=(e=t.options)==null?void 0:e.host,this.u.addController(this),this.u.updateComplete.then(o=>this.t=!0),this.element=t.element,or.set(this.element,this)),this.optionsOrCallback=s,(i||typeof s!="function")&&this.p(s),this.render(s)}p(t){t=t??{};const s=this.getController();s!==void 0&&((t={...s.defaultOptions,...t}).keyframeOptions={...s.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??(t.properties=qo),this.options=t}m(){const t={},s=this.element.getBoundingClientRect(),i=getComputedStyle(this.element);return this.options.properties.forEach(e=>{const o=s[e]??(Qs[e]?void 0:i[e]),n=Number(o);t[e]=isNaN(n)?o+"":n}),t}v(){let t,s=!0;return this.options.guard&&(t=this.options.guard(),s=((i,e)=>{if(Array.isArray(i)){if(Array.isArray(e)&&e.length===i.length&&i.every((o,n)=>o===e[n]))return!1}else if(e===i)return!1;return!0})(t,this._)),this.h=this.t&&!this.isDisabled()&&!this.isAnimating()&&s&&this.element.isConnected,this.h&&(this._=Array.isArray(t)?Array.from(t):t),this.h}hostUpdate(){typeof this.optionsOrCallback=="function"&&this.p(this.optionsOrCallback()),this.v()&&(this.A=this.m(),this.i=this.i??this.element.parentNode,this.o=this.element.nextSibling)}async hostUpdated(){if(!this.h||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await sr;const s=this.O(),i=this.j(this.options.keyframeOptions,s),e=this.m();if(this.A!==void 0){const{from:o,to:n}=this.N(this.A,e,s);this.log("measured",[this.A,e,o,n]),t=this.calculateKeyframes(o,n)}else{const o=Ys.get(this.options.inId);if(o){Ys.delete(this.options.inId);const{from:n,to:a}=this.N(o,e,s);t=this.calculateKeyframes(n,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,tr++,t.forEach(c=>c.zIndex=tr)}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,i)}resetStyles(){this.P!==void 0&&(this.element.setAttribute("style",this.P??""),this.P=void 0)}commitStyles(){var t,s;this.P=this.element.getAttribute("style"),(t=this.webAnimation)==null||t.commitStyles(),(s=this.webAnimation)==null||s.cancel()}reconnected(){}async disconnected(){var s;if(!this.h||(this.options.id!==void 0&&Ys.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await sr(),(s=this.i)==null?void 0:s.isConnected){const i=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,i),this.options.stabilizeOut){const e=this.m();this.log("stabilizing out");const o=this.A.left-e.left,n=this.A.top-e.top;getComputedStyle(this.element).position!=="static"||o===0&&n===0||(this.element.style.position="relative"),o!==0&&(this.element.style.left=o+"px"),n!==0&&(this.element.style.top=n+"px")}}const t=this.j(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){var t,s;(s=(t=this.options).onStart)==null||s.call(t,this)}didFinish(t){var s,i;t&&((i=(s=this.options).onComplete)==null||i.call(s,this)),this.A=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}O(){const t=[];for(let s=this.element.parentNode;s;s=s==null?void 0:s.parentNode){const i=or.get(s);i&&!i.isDisabled()&&i&&t.push(i)}return t}get isHostRendered(){const t=er.has(this.u);return t||this.u.updateComplete.then(()=>{er.add(this.u)}),t}j(t,s=this.O()){const i={...Ho};return s.forEach(e=>Object.assign(i,e.options.keyframeOptions)),Object.assign(i,t),i}N(t,s,i){t={...t},s={...s};const e=i.map(a=>a.animatingProperties).filter(a=>a!==void 0);let o=1,n=1;return e.length>0&&(e.forEach(a=>{a.width&&(o/=a.width),a.height&&(n/=a.height)}),t.left!==void 0&&s.left!==void 0&&(t.left=o*t.left,s.left=o*s.left),t.top!==void 0&&s.top!==void 0&&(t.top=n*t.top,s.top=n*s.top)),{from:t,to:s}}calculateKeyframes(t,s,i=!1){const e={},o={};let n=!1;const a={};for(const c in s){const h=t[c],d=s[c];if(c in Qs){const f=Qs[c];if(h===void 0||d===void 0)continue;const m=f(h,d);m.transform!==void 0&&(a[c]=m.value,n=!0,e.transform=`${e.transform??""} ${m.transform}`,m.overrideFrom!==void 0&&Object.assign(e,m.overrideFrom))}else h!==d&&h!==void 0&&d!==void 0&&(n=!0,e[c]=h,o[c]=d)}return e.transformOrigin=o.transformOrigin=i?"center center":"top left",this.animatingProperties=a,n?[e,o]:void 0}async animate(t,s=this.options.keyframeOptions){this.start(),this.frames=t;let i=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),t!==void 0)){this.log("animate",[t,s]),i=!0,this.webAnimation=this.element.animate(t,s);const e=this.getController();e==null||e.add(this);try{await this.webAnimation.finished}catch{}e==null||e.remove(this)}return this.didFinish(i),i}isAnimating(){var t,s;return((t=this.webAnimation)==null?void 0:t.playState)==="running"||((s=this.webAnimation)==null?void 0:s.pending)}log(t,s){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,s)}}const gs=ce(Wo),Ko={core:{cancel:`<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
475
475
  <path d="M6.75827 17.2426L12.0009 12M17.2435 6.75736L12.0009 12M12.0009 12L6.75827 6.75736M12.0009 12L17.2435 17.2426" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
476
476
  </svg>
477
477
  `,"check-circled-outline":`<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -507,7 +507,7 @@
507
507
  <path d="M12 17.01L12.01 16.9989" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
508
508
  <path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
509
509
  </svg>
510
- `}},gs=new Map,ms={heroicons:{url:"https://cdn.jsdelivr.net/npm/heroicons@2.0.4/24/$prefix/$name.svg",defaultPrefix:"outline"},iconoir:{url:"https://cdnjs.cloudflare.com/ajax/libs/iconoir/5.1.4/icons/$name.svg"},feathers:{url:"https://cdn.jsdelivr.net/npm/feather-icons@4.29.0/dist/icons/$name.svg"},lucide:{url:"https://cdn.jsdelivr.net/npm/lucide-static@0.16.29/icons/$name.svg"},material:{url:"https://cdn.jsdelivr.net/npm/@material-icons/svg@1.0.5/svg/$name/$prefix.svg",defaultPrefix:"regular"},fontAwesome:{url:"https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.1/svgs/$prefix/$name.svg",defaultPrefix:"regular"},custom:{url:"",defaultPrefix:""}};let rr=!1;function Wo(){var r,t;rr||(rr=!0,ms.custom.url=((r=document.querySelector("[customIconLibraryPath]"))==null?void 0:r.getAttribute("customIconLibraryPath"))||"",ms.custom.defaultPrefix=((t=document.querySelector("[customIconDefaultPrefix]"))==null?void 0:t.getAttribute("customIconDefaultPrefix"))||"")}const or=sessionStorage.getItem("sonicIconsCache"),Bt=or?JSON.parse(or):{icons:{},names:[]},Ko=100,_i=class _i{};_i.default={get:async t=>{const s=t.library;if(!t.name)return"";const i=t.name,e=qo;if(s=="custom"&&Wo(),s&&s in ms){const o=ms[s],n=t.prefix||o.defaultPrefix||"",a=e[s]||{};e[s]=a;const c=n+"-"+i;if(a[c])return I(a[c]);const h=(o.url||"").replace("$prefix",n).replace("$name",i);if(Bt.icons[h])return a[c]=Bt.icons[h],I(Bt.icons[h]);if(!gs.has(h)){const f=new Promise(async m=>{const b=await fetch(h);if(!b.ok){m(`<b title="Erreur ${b.status}">😶</b>`);return}try{const _=await b.text();m(_)}catch{m(null)}});gs.set(h,f)}const d=await gs.get(h);if(gs.delete(h),a[c]=d||"",Bt.icons[h]=d||"",Bt.names.length>Ko){const f=Bt.names.shift();delete Bt.icons[f]}return sessionStorage.setItem("sonicIconsCache",JSON.stringify(Bt)),I(d)}return I(e.core[t.name]||"")}};let Ys=_i;var Zo=Object.defineProperty,Go=Object.getOwnPropertyDescriptor,Ze=(r,t,s,i)=>{for(var e=i>1?void 0:i?Go(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Zo(t,s,e),e};const Yo="sonic-icon";let de=class extends v{constructor(){super(...arguments),this.iconText="",this.name="",this.prefix="",this.library=""}async updateIcon(){this.iconText=await Ys.default.get({name:this.name,prefix:this.prefix,library:this.library})}willUpdate(r){(r.has("name")||r.has("prefix")||r.has("library"))&&this.updateIcon(),super.willUpdate(r)}render(){return this.iconText?this.iconText:$}};de.styles=P`
510
+ `}},ms=new Map,bs={heroicons:{url:"https://cdn.jsdelivr.net/npm/heroicons@2.0.4/24/$prefix/$name.svg",defaultPrefix:"outline"},iconoir:{url:"https://cdnjs.cloudflare.com/ajax/libs/iconoir/5.1.4/icons/$name.svg"},feathers:{url:"https://cdn.jsdelivr.net/npm/feather-icons@4.29.0/dist/icons/$name.svg"},lucide:{url:"https://cdn.jsdelivr.net/npm/lucide-static@0.16.29/icons/$name.svg"},material:{url:"https://cdn.jsdelivr.net/npm/@material-icons/svg@1.0.5/svg/$name/$prefix.svg",defaultPrefix:"regular"},fontAwesome:{url:"https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.1/svgs/$prefix/$name.svg",defaultPrefix:"regular"},custom:{url:"",defaultPrefix:""}};let nr=!1;function Zo(){var r,t;nr||(nr=!0,bs.custom.url=((r=document.querySelector("[customIconLibraryPath]"))==null?void 0:r.getAttribute("customIconLibraryPath"))||"",bs.custom.defaultPrefix=((t=document.querySelector("[customIconDefaultPrefix]"))==null?void 0:t.getAttribute("customIconDefaultPrefix"))||"")}const ar=sessionStorage.getItem("sonicIconsCache"),Bt=ar?JSON.parse(ar):{icons:{},names:[]},Go=100,Pi=class Pi{};Pi.default={get:async t=>{const s=t.library;if(!t.name)return"";const i=t.name,e=Ko;if(s=="custom"&&Zo(),s&&s in bs){const o=bs[s],n=t.prefix||o.defaultPrefix||"",a=e[s]||{};e[s]=a;const c=n+"-"+i;if(a[c])return I(a[c]);const h=(o.url||"").replace("$prefix",n).replace("$name",i);if(Bt.icons[h])return a[c]=Bt.icons[h],I(Bt.icons[h]);if(!ms.has(h)){const f=new Promise(async m=>{const b=await fetch(h);if(!b.ok){m(`<b title="Erreur ${b.status}">😶</b>`);return}try{const _=await b.text();m(_)}catch{m(null)}});ms.set(h,f)}const d=await ms.get(h);if(ms.delete(h),a[c]=d||"",Bt.icons[h]=d||"",Bt.names.length>Go){const f=Bt.names.shift();delete Bt.icons[f]}return sessionStorage.setItem("sonicIconsCache",JSON.stringify(Bt)),I(d)}return I(e.core[t.name]||"")}};let Xs=Pi;var Yo=Object.defineProperty,Qo=Object.getOwnPropertyDescriptor,Ke=(r,t,s,i)=>{for(var e=i>1?void 0:i?Qo(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Yo(t,s,e),e};const Xo="sonic-icon";let de=class extends v{constructor(){super(...arguments),this.iconText="",this.name="",this.prefix="",this.library=""}async updateIcon(){this.iconText=await Xs.default.get({name:this.name,prefix:this.prefix,library:this.library})}willUpdate(r){(r.has("name")||r.has("prefix")||r.has("library"))&&this.updateIcon(),super.willUpdate(r)}render(){return this.iconText?this.iconText:$}};de.styles=P`
511
511
  :host {
512
512
  line-height: 0.1em;
513
513
  width: fit-content;
@@ -556,7 +556,7 @@
556
556
  :host([size="3xl"]) svg {
557
557
  --sc-icon-size: 2.8em;
558
558
  }
559
- `,Ze([T()],de.prototype,"iconText",2),Ze([l({type:String})],de.prototype,"name",2),Ze([l({type:String})],de.prototype,"prefix",2),Ze([l({type:String})],de.prototype,"library",2),de=Ze([w(Yo)],de);const Ge=P`
559
+ `,Ke([j()],de.prototype,"iconText",2),Ke([l({type:String})],de.prototype,"name",2),Ke([l({type:String})],de.prototype,"prefix",2),Ke([l({type:String})],de.prototype,"library",2),de=Ke([w(Xo)],de);const Ze=P`
560
560
  .custom-scroll {
561
561
  overflow: auto !important;
562
562
  overflow-y: overlay !important;
@@ -577,12 +577,12 @@
577
577
  border: solid 0.15rem transparent;
578
578
  }
579
579
  }
580
- `;var Qo=Object.defineProperty,Jo=Object.getOwnPropertyDescriptor,St=(r,t,s,i)=>{for(var e=i>1?void 0:i?Jo(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Qo(t,s,e),e};const Xo={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty"},tn="sonic-toast-item";let yt=class extends v{constructor(){super(...arguments),this.title="",this.id="",this.text="",this.status="",this.ghost=!1,this.preserve=!1,this.dismissForever=!1,this.maxHeight="10rem",this.visible=!0}render(){if(this.dismissForever){const r=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(r)[this.id])return $}return this.visible?g`<div class="sonic-toast ${this.status} ${this.ghost?"ghost":""}">
580
+ `;var Jo=Object.defineProperty,tn=Object.getOwnPropertyDescriptor,St=(r,t,s,i)=>{for(var e=i>1?void 0:i?tn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Jo(t,s,e),e};const en={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty"},sn="sonic-toast-item";let yt=class extends v{constructor(){super(...arguments),this.title="",this.id="",this.text="",this.status="",this.ghost=!1,this.preserve=!1,this.dismissForever=!1,this.maxHeight="10rem",this.visible=!0}render(){if(this.dismissForever){const r=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(r)[this.id])return $}return this.visible?g`<div class="sonic-toast ${this.status} ${this.ghost?"ghost":""}">
581
581
  <button aria-label="Close" class="sonic-toast-close" @click=${()=>this.hide()}>
582
582
  <sonic-icon name="cancel" size="lg"></sonic-icon>
583
583
  </button>
584
584
  <div class="sonic-toast-content custom-scroll" style="max-height: ${this.maxHeight} ;">
585
- ${this.status&&g`<sonic-icon name=${Xo[this.status]} class="sonic-toast-icon" size="2xl"></sonic-icon>`}
585
+ ${this.status&&g`<sonic-icon name=${en[this.status]} class="sonic-toast-icon" size="2xl"></sonic-icon>`}
586
586
 
587
587
  <div class="sonic-toast-text">
588
588
  ${this.title?g`<div class="sonic-toast-title">${this.title}</div>`:""} ${this.text?I(this.text):""}
@@ -591,7 +591,7 @@
591
591
 
592
592
  ${this.preserve?"":this.autoHide()}
593
593
  </div>
594
- </div>`:$}hide(){if(this.closest("sonic-toast")||(this.visible=!1),this.dismissForever){const r=localStorage.getItem("sonic-toast-dismissed")||"{}",t=JSON.parse(r);t[this.id]=!0,localStorage.setItem("sonic-toast-dismissed",JSON.stringify(t))}this.dispatchEvent(new CustomEvent("hide",{bubbles:!0}))}show(){this.visible=!0}autoHide(){setTimeout(()=>{this.hide()},6e3)}};yt.styles=[Ge,P`
594
+ </div>`:$}hide(){if(this.closest("sonic-toast")||(this.visible=!1),this.dismissForever){const r=localStorage.getItem("sonic-toast-dismissed")||"{}",t=JSON.parse(r);t[this.id]=!0,localStorage.setItem("sonic-toast-dismissed",JSON.stringify(t))}this.dispatchEvent(new CustomEvent("hide",{bubbles:!0}))}show(){this.visible=!0}autoHide(){setTimeout(()=>{this.hide()},6e3)}};yt.styles=[Ze,P`
595
595
  * {
596
596
  box-sizing: border-box;
597
597
  }
@@ -768,7 +768,7 @@
768
768
  opacity: 0.85;
769
769
  pointer-events: none;
770
770
  }
771
- `],St([l({type:String})],yt.prototype,"title",2),St([l({type:String})],yt.prototype,"id",2),St([l({type:String})],yt.prototype,"text",2),St([l({type:String})],yt.prototype,"status",2),St([l({type:Boolean})],yt.prototype,"ghost",2),St([l({type:Boolean})],yt.prototype,"preserve",2),St([l({type:Boolean})],yt.prototype,"dismissForever",2),St([l({type:String})],yt.prototype,"maxHeight",2),St([T()],yt.prototype,"visible",2),yt=St([w(tn)],yt);const en=P`
771
+ `],St([l({type:String})],yt.prototype,"title",2),St([l({type:String})],yt.prototype,"id",2),St([l({type:String})],yt.prototype,"text",2),St([l({type:String})],yt.prototype,"status",2),St([l({type:Boolean})],yt.prototype,"ghost",2),St([l({type:Boolean})],yt.prototype,"preserve",2),St([l({type:Boolean})],yt.prototype,"dismissForever",2),St([l({type:String})],yt.prototype,"maxHeight",2),St([j()],yt.prototype,"visible",2),yt=St([w(sn)],yt);const rn=P`
772
772
  :host {
773
773
  /* polices*/
774
774
  --sc-font-family-base: "Inter var", "Inter", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
@@ -831,7 +831,7 @@
831
831
  /*Body*/
832
832
  --sc-body-bg: var(--sc-base);
833
833
  }
834
- `,sn=P`
834
+ `,on=P`
835
835
  :host {
836
836
  /*Boutons*/
837
837
  --sc-primary: var(--sc-base-800);
@@ -864,7 +864,7 @@
864
864
  --sc-input-bg: var(--sc-base-100);
865
865
  --sc-input-color: var(--sc-base-content);
866
866
  }
867
- `,nr=P`
867
+ `,lr=P`
868
868
  --sc-primary: var(--sc-dark-primary, var(--sc-base-700));
869
869
  --sc-info: var(--sc-dark-info, #3abff8);
870
870
  --sc-danger: var(--sc-dark-danger, #f87272);
@@ -889,17 +889,17 @@
889
889
  --sc-base-800: var(--sc-dark-base-800, #d9dce0);
890
890
  --sc-base-900: var(--sc-dark-base-900, #e5e7eb);
891
891
  --sc-base-content: var(--sc-dark-base-content, #e5e7eb);
892
- `,rn=P`
892
+ `,nn=P`
893
893
  :host([theme="dark"]) {
894
- ${nr}
894
+ ${lr}
895
895
  }
896
896
 
897
897
  @media (prefers-color-scheme: dark) {
898
898
  :host([theme="auto"]) {
899
- ${nr}
899
+ ${lr}
900
900
  }
901
901
  }
902
- `;var on=Object.defineProperty,nn=Object.getOwnPropertyDescriptor,Ye=(r,t,s,i)=>{for(var e=i>1?void 0:i?nn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&on(t,s,e),e};const an="sonic-theme";let gt=class extends v{constructor(){super(),this.theme="light",this.background=!1,this.color=!1,this.font=!1,gt.instance=this}static getPopContainer(){return gt.instance||document.body}connectedCallback(){super.connectedCallback(),window.addEventListener("message",r=>this.receiveMessage(r),!1),window.dispatchEvent(new CustomEvent("SonicThemeReady")),this.postCSSVars()}postCSSVars(){var e;const r=document.styleSheets,t=r.length,s=[];for(let o=0;o<t;o++){const n=r[o];n.href&&(n.href.includes("googleapis")||n.href.includes("typekit.net"))&&s.push(n.href)}const i={variables:this.getCssVariables(),fonts:s};(e=tt.get("sonic-theme"))==null||e.set(i),document.querySelectorAll("iframe").forEach(o=>{var n;return(n=o.contentWindow)==null?void 0:n.postMessage({type:"SonicTheme",...i},"*")})}receiveMessage(r){const t=r.data;!t.type||t.type!="GetSonicTheme"||this.postCSSVars()}getCssVariables(){const r=[],t=[...gt.styles.map(e=>e.styleSheet),...Array.from(document.styleSheets)];for(const e of t)try{if(!e)continue;const o=e.cssRules;for(const n of o){if(!("style"in n))continue;const a=n.style;for(const c of a)r.includes(c)||c.indexOf("--sc")!==0||r.push(c)}}catch{console.log("Erreur lors de la récupération des variables CSS")}const s=window.getComputedStyle(this),i={};return r.forEach(e=>i[e]=s.getPropertyValue(e)),i}render(){return g`<slot></slot>`}};gt.styles=[sn,rn,en,P`
902
+ `;var an=Object.defineProperty,ln=Object.getOwnPropertyDescriptor,Ge=(r,t,s,i)=>{for(var e=i>1?void 0:i?ln(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&an(t,s,e),e};const cn="sonic-theme";let gt=class extends v{constructor(){super(),this.theme="light",this.background=!1,this.color=!1,this.font=!1,gt.instance=this}static getPopContainer(){return gt.instance||document.body}connectedCallback(){super.connectedCallback(),window.addEventListener("message",r=>this.receiveMessage(r),!1),window.dispatchEvent(new CustomEvent("SonicThemeReady")),this.postCSSVars()}postCSSVars(){var e;const r=document.styleSheets,t=r.length,s=[];for(let o=0;o<t;o++){const n=r[o];n.href&&(n.href.includes("googleapis")||n.href.includes("typekit.net"))&&s.push(n.href)}const i={variables:this.getCssVariables(),fonts:s};(e=tt.get("sonic-theme"))==null||e.set(i),document.querySelectorAll("iframe").forEach(o=>{var n;return(n=o.contentWindow)==null?void 0:n.postMessage({type:"SonicTheme",...i},"*")})}receiveMessage(r){const t=r.data;!t.type||t.type!="GetSonicTheme"||this.postCSSVars()}getCssVariables(){const r=[],t=[...gt.styles.map(e=>e.styleSheet),...Array.from(document.styleSheets)];for(const e of t)try{if(!e)continue;const o=e.cssRules;for(const n of o){if(!("style"in n))continue;const a=n.style;for(const c of a)r.includes(c)||c.indexOf("--sc")!==0||r.push(c)}}catch{console.log("Erreur lors de la récupération des variables CSS")}const s=window.getComputedStyle(this),i={};return r.forEach(e=>i[e]=s.getPropertyValue(e)),i}render(){return g`<slot></slot>`}};gt.styles=[on,nn,rn,P`
903
903
  :host([color]) {
904
904
  color: var(--sc-base-content);
905
905
  }
@@ -909,8 +909,8 @@
909
909
  font-weight: var(--sc-font-weight-base);
910
910
  font-style: var(--sc-font-style-base);
911
911
  }
912
- `],Ye([l({type:String,reflect:!0})],gt.prototype,"theme",2),Ye([l({type:Boolean,reflect:!0})],gt.prototype,"background",2),Ye([l({type:Boolean,reflect:!0})],gt.prototype,"color",2),Ye([l({type:Boolean,reflect:!0})],gt.prototype,"font",2),gt=Ye([w(an)],gt);var ln=Object.defineProperty,cn=Object.getOwnPropertyDescriptor,ar=(r,t,s,i)=>{for(var e=i>1?void 0:i?cn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ln(t,s,e),e};const hn="sonic-toast";let E=class extends v{constructor(){super(...arguments),this.toasts=[]}createRenderRoot(){return this}render(){const t=window.parent!=window;let s={pointerEvents:"none",gap:"1rem",display:"flex",margin:"1rem"};return t||(s={...s,margin:"0",width:"calc(100% - 2.5rem)",position:"fixed",bottom:"1.25rem",right:"1.25rem",zIndex:"10000",maxWidth:"64ch",flexDirection:"column-reverse"}),E.handleExistingToastDelegation(),this.toasts?g`<div aria-live="polite" style=${dt(s)}>
913
- ${us(this.toasts,i=>i.id,i=>g`
912
+ `],Ge([l({type:String,reflect:!0})],gt.prototype,"theme",2),Ge([l({type:Boolean,reflect:!0})],gt.prototype,"background",2),Ge([l({type:Boolean,reflect:!0})],gt.prototype,"color",2),Ge([l({type:Boolean,reflect:!0})],gt.prototype,"font",2),gt=Ge([w(cn)],gt);var hn=Object.defineProperty,dn=Object.getOwnPropertyDescriptor,cr=(r,t,s,i)=>{for(var e=i>1?void 0:i?dn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&hn(t,s,e),e};const pn="sonic-toast";let N=class extends v{constructor(){super(...arguments),this.toasts=[]}createRenderRoot(){return this}render(){const t=window.parent!=window;let s={pointerEvents:"none",gap:"1rem",display:"flex",margin:"1rem"};return t||(s={...s,margin:"0",width:"calc(100% - 2.5rem)",position:"fixed",bottom:"1.25rem",right:"1.25rem",zIndex:"10000",maxWidth:"64ch",flexDirection:"column-reverse"}),N.handleExistingToastDelegation(),this.toasts?g`<div aria-live="polite" style=${dt(s)}>
913
+ ${fs(this.toasts,i=>i.id,i=>g`
914
914
  <sonic-toast-item
915
915
  maxHeight=${t?"none":"10rem"}
916
916
  status=${x(i.status)}
@@ -920,28 +920,28 @@
920
920
  ?preserve=${i.preserve}
921
921
  id=${x(i.id)}
922
922
  @hide=${()=>this.removeItem(i)}
923
- ${fs({keyframeOptions:{duration:250,easing:"cubic-bezier(0.250, 0.250, 0.420, 1.225)"},in:[{transform:"translateY(0) scale(1.25)",boxShadow:"0 0 0 rgba(0,0,0,0)",opacity:0}],out:[{transform:"scale(.90) ",opacity:0,duration:3e3,easing:"ease-in-out"}],stabilizeOut:!0})}
923
+ ${gs({keyframeOptions:{duration:250,easing:"cubic-bezier(0.250, 0.250, 0.420, 1.225)"},in:[{transform:"translateY(0) scale(1.25)",boxShadow:"0 0 0 rgba(0,0,0,0)",opacity:0}],out:[{transform:"scale(.90) ",opacity:0,duration:3e3,easing:"ease-in-out"}],stabilizeOut:!0})}
924
924
  >
925
925
  <!-- Le texte est passé dans le slot et non pas en propriété pour contrer des problèmatiques de shadow-dom et d'appel exterieur (exemple: fancybox) -->
926
926
  ${i.text?I(i.text):""}
927
927
  </sonic-toast-item>
928
928
  `)}
929
- </div>`:$}static removeAll(){if(E.delegateToasts){E.handleExistingToastDelegation(),window.parent.postMessage({type:"removeAllToasts"},"*");return}const t=E.getInstance();t&&(t.toasts=t.toasts.filter(s=>s.ghost))}static getInstance(){return E.instance||(E.instance=document.createElement("sonic-toast"),gt.getPopContainer().prepend(E.instance)),E.instance}static add(t){if(E.delegateToasts){E.handleExistingToastDelegation(),window.parent.postMessage({type:"addToast",toast:t},"*");return}const s=E.getInstance(),i=t.id??new Date().valueOf(),o=new RegExp("</a>|</.*?button>|</.*?input>|</.*?textarea>|</.*?select>").test(t.text),n={id:i,text:t.text,title:t.title,status:t.status,preserve:o?!0:t.preserve,ghost:t.ghost,dismissForever:t.dismissForever};if(t.dismissForever&&t.id){const a=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(a)[t.id])return null}if(s!=null&&s.toasts.length){const a={...n};for(const c of s.toasts){const h={...c};if(a.id=h.id=0,X.shallowEqual(a,h))return null}}return s&&(s.toasts=[...s.toasts,n]),n}static handleExistingToastDelegation(){if(!this.delegateToasts)return;const t=E.getInstance();window.parent.postMessage({type:"addToasts",toasts:t.toasts},"*"),t.toasts=[]}static removeItem(t){if(E.delegateToasts){E.handleExistingToastDelegation(),window.parent.postMessage({type:"removeToast",toast:t},"*");return}const s=E.getInstance();s&&s.removeItem(t)}removeItem(t){t&&(this.toasts=this.toasts.filter(s=>(s={...s},delete s.id,!X.shallowEqual(s,t,!1))))}};E.delegateToasts=!1,ar([l({type:Array})],E.prototype,"toasts",2),E=ar([w(hn)],E),typeof window<"u"&&(window.SonicToast=E);function dn(){var s;const r=i=>{i.data.type=="querySonicToastAvailability"&&i.source.postMessage({type:"sonicToastAvailable"},"*"),i.data.type=="sonicToastAvailable"&&(E.delegateToasts=!0,E.handleExistingToastDelegation()),i.data.type=="addToasts"&&(E.getInstance().toasts=[...E.getInstance().toasts,...i.data.toasts]),i.data.type=="removeAllToasts"&&E.removeAll(),i.data.type=="removeToast"&&E.removeItem(i.data.toast),i.data.type=="addToast"&&E.add(i.data.toast)},t=window.parent!=window;if(window.addEventListener("message",r,!1),t&&window.parent.postMessage({type:"querySonicToastAvailability"},"*"),!t)for(const i of document.querySelectorAll("iframe"))(s=i.contentWindow)==null||s.postMessage({type:"sonicToastAvailable"},"*")}dn();var pn=Object.defineProperty,un=Object.getOwnPropertyDescriptor,bs=(r,t,s,i)=>{for(var e=i>1?void 0:i?un(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&pn(t,s,e),e};const fn=new Set,gn=new Set,mn=r=>{for(const t of gn)t(r)},Qs=(r,t)=>{class s extends r{constructor(...e){super(),this.api=null,this.key="",this.isFirstLoad=!0,this.isLoading=!1,this.iObserver=null,this.isFetchEnabled=!0,this.fetchedData=null,this._endPoint="",this.requestId=0,this.refetchEveryMs=0,this.dataProvider=""}get props(){return super.props}set props(e){super.props=e}set endPoint(e){this._endPoint=e,this.isConnected&&this._fetchData()}get endPoint(){return this._endPoint}async _fetchData(){if(this.requestUpdate(),!this.isFetchEnabled||(this.api=new Ce(this.getApiConfiguration()),!this.api)||(this.dispatchEvent(new CustomEvent("loading",{detail:this})),this.getAttribute("localStorage")==="enabled"&&await tt.getInstance().isLocalStrorageReady,!this.isConnected))return;const e=tt.getInstance().get(this.getAncestorAttributeValue("headersDataProvider")).get();this.isLoading=!0,X.isObject(this.props)&&Object.keys(this.props||{}).length>0&&this.isFirstLoad&&window.requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("load",{detail:this})),this.isFirstLoad=!1,this.isLoading=!1});let o=await this.api.get(this.endPoint||this.dataProvider||"",e);if(this.fetchedData=o,this.api.lastResult&&!this.api.lastResult.ok&&(fn.add(this),mn(this.api.lastResult)),!!this.isConnected){if(o)o._sonic_http_response_&&!o._sonic_http_response_.ok&&Object.keys(o).length===1&&E.add({text:"Network Error",status:"error"});else{this.isLoading=!1,this.refetchEveryMs&&this.isConnected&&(this.refetchTimeOutId=setTimeout(()=>this._fetchData(),this.refetchEveryMs));return}if(this.key){const n=o._sonic_http_response_,a=this.key.split(".");o=X.traverse(o,a,this.hasAttribute("preserveOtherKeys")),o&&X.isObject(o)&&n&&(o._sonic_http_response_=n)}this.props=o,this.dispatchEvent(new CustomEvent("load",{detail:this})),this.isFirstLoad=!1,this.isLoading=!1,this.refetchEveryMs&&this.isConnected&&(this.refetchTimeOutId=setTimeout(()=>this._fetchData(),this.refetchEveryMs))}}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.publisher)==null||e.offInvalidate(this.onInvalidate),clearTimeout(this.refetchTimeOutId),this.isFirstLoad=!1}connectedCallback(){var e;this.lazyLoad=this.lazyLoad!==void 0?this.lazyLoad:this.hasAttribute("lazyload"),super.connectedCallback(),this.isFetchEnabled&&(this.key=this.key!=""?this.key:this.getAttribute("key"),this.props&&this.publisher.set(this.props),this.onInvalidate=()=>this._fetchData(),(e=this.publisher)==null||e.onInvalidate(this.onInvalidate),this.lazyLoad?this.handleLazyLoad():this._fetchData())}handleLazyLoad(){if(!this.lazyLoad)return;const e=this.getBoundingClientRect();if(e.x<window.innerWidth&&e.right>0&&e.y<window.innerHeight&&e.right>0){this._fetchData();return}const o=parseFloat(this.getAttribute("lazyBoundsRatio")||"1"),n={root:null,rootMargin:Math.max(window.innerWidth*o,window.innerHeight*o)+"px",threshold:.9};this.iObserver=new IntersectionObserver(c=>this.onIntersection(c),n);let a=this.shadowRoot?this.shadowRoot.children[0]:this.children[0];if((a==null?void 0:a.nodeName.toLocaleLowerCase())=="slot"&&(a=a.children[0]),!a||a.nodeName.toLocaleLowerCase()=="template"){a=document.createElement("span");const c=a.style;c.pointerEvents="none",this.lazyLoadSpan=a,this.appendChild(a)}a?this.iObserver.observe(a):this.isFirstLoad&&this._fetchData()}onIntersection(e){var o,n;for(const a of e)if(a.isIntersecting&&this.isFirstLoad){this._fetchData(),(o=this.lazyLoadSpan)==null||o.remove(),this.lazyLoadSpan=void 0,(n=this.iObserver)==null||n.disconnect();break}}}return bs([l()],s.prototype,"props",1),bs([l({type:String})],s.prototype,"endPoint",1),bs([l()],s.prototype,"requestId",2),bs([l({type:Number})],s.prototype,"refetchEveryMs",2),s};var bn=Object.defineProperty,vn=Object.getOwnPropertyDescriptor,pe=(r,t,s,i)=>{for(var e=i>1?void 0:i?vn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&bn(t,s,e),e};const vs=r=>{class t extends r{constructor(...i){super(),this.forceAutoFill=!1,this._type="text",this.status="default"}validateFormElement(){var o;const i=(o=this.shadowRoot)==null?void 0:o.querySelector("input");if(!i||i.checkValidity())return;const e=this.getFormPublisher();e&&(e.isFormValid=!1),i.reportValidity()}set type(i){this.hasAttribute("type")&&!this.forceAutoFill&&(i=this.getAttribute("type")),this._type=i,this.requestUpdate()}get type(){return this._type}get description(){return this._description}set description(i){this.hasAttribute("description")&&!this.forceAutoFill&&(i=this.getAttribute("description")),this._description=i,this.requestUpdate()}get label(){return this._label}set label(i){this.hasAttribute("label")&&!this.forceAutoFill&&(i=this.getAttribute("label")),this._label=i,this.requestUpdate()}}return pe([l()],t.prototype,"forceAutoFill",2),pe([l({type:String})],t.prototype,"type",1),pe([l()],t.prototype,"description",1),pe([l()],t.prototype,"label",1),pe([l({type:String,reflect:!0})],t.prototype,"status",2),pe([l({type:Number})],t.prototype,"tabindex",2),pe([l({type:String})],t.prototype,"autocomplete",2),t},lr=Qs,yn=Ks,cr=Ae,hr=vs,Ht=G,Js=qe;window["concorde-mixins"]=window["concorde-mixins"]||{},window["concorde-mixins"]={Fetcher:lr,FormCheckable:yn,FormElement:cr,FormInput:hr,Subscriber:Ht,TemplatesContainer:Js};/**
929
+ </div>`:$}static removeAll(){if(N.delegateToasts){N.handleExistingToastDelegation(),window.parent.postMessage({type:"removeAllToasts"},"*");return}const t=N.getInstance();t&&(t.toasts=t.toasts.filter(s=>s.ghost))}static getInstance(){return N.instance||(N.instance=document.createElement("sonic-toast"),gt.getPopContainer().prepend(N.instance)),N.instance}static add(t){if(N.delegateToasts){N.handleExistingToastDelegation(),window.parent.postMessage({type:"addToast",toast:t},"*");return}const s=N.getInstance(),i=t.id??new Date().valueOf(),o=new RegExp("</a>|</.*?button>|</.*?input>|</.*?textarea>|</.*?select>").test(t.text),n={id:i,text:t.text,title:t.title,status:t.status,preserve:o?!0:t.preserve,ghost:t.ghost,dismissForever:t.dismissForever};if(t.dismissForever&&t.id){const a=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(a)[t.id])return null}if(s!=null&&s.toasts.length){const a={...n};for(const c of s.toasts){const h={...c};if(a.id=h.id=0,J.shallowEqual(a,h))return null}}return s&&(s.toasts=[...s.toasts,n]),n}static handleExistingToastDelegation(){if(!this.delegateToasts)return;const t=N.getInstance();window.parent.postMessage({type:"addToasts",toasts:t.toasts},"*"),t.toasts=[]}static removeItem(t){if(N.delegateToasts){N.handleExistingToastDelegation(),window.parent.postMessage({type:"removeToast",toast:t},"*");return}const s=N.getInstance();s&&s.removeItem(t)}removeItem(t){t&&(this.toasts=this.toasts.filter(s=>(s={...s},delete s.id,!J.shallowEqual(s,t,!1))))}};N.delegateToasts=!1,cr([l({type:Array})],N.prototype,"toasts",2),N=cr([w(pn)],N),typeof window<"u"&&__SONIC_PREFIX__=="sonic"&&(window.SonicToast=window.SonicToast||N);function un(){var s;const r=i=>{i.data.type=="querySonicToastAvailability"&&i.source.postMessage({type:"sonicToastAvailable"},"*"),i.data.type=="sonicToastAvailable"&&(N.delegateToasts=!0,N.handleExistingToastDelegation()),i.data.type=="addToasts"&&(N.getInstance().toasts=[...N.getInstance().toasts,...i.data.toasts]),i.data.type=="removeAllToasts"&&N.removeAll(),i.data.type=="removeToast"&&N.removeItem(i.data.toast),i.data.type=="addToast"&&N.add(i.data.toast)},t=window.parent!=window;if(window.addEventListener("message",r,!1),t&&window.parent.postMessage({type:"querySonicToastAvailability"},"*"),!t)for(const i of document.querySelectorAll("iframe"))(s=i.contentWindow)==null||s.postMessage({type:"sonicToastAvailable"},"*")}un();var fn=Object.defineProperty,gn=Object.getOwnPropertyDescriptor,Ye=(r,t,s,i)=>{for(var e=i>1?void 0:i?gn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&fn(t,s,e),e};const mn=new Set,bn=new Set,vn=r=>{for(const t of bn)t(r)},Js=(r,t)=>{class s extends r{constructor(...e){super(),this.api=null,this.key="",this.isFirstLoad=!0,this.isLoading=!1,this.iObserver=null,this.isFetchEnabled=!0,this.fetchedData=null,this._endPoint="",this.noErrorsRecordings=!1,this.requestId=0,this.refetchEveryMs=0,this.dataProvider=""}get props(){return super.props}set props(e){super.props=e}set endPoint(e){this._endPoint=e,this.isConnected&&this._fetchData()}get endPoint(){return this._endPoint}async _fetchData(){if(this.requestUpdate(),!this.isFetchEnabled||(this.api=new Ce(this.getApiConfiguration()),!this.api)||(this.dispatchEvent(new CustomEvent("loading",{detail:this})),this.getAttribute("localStorage")==="enabled"&&await tt.getInstance().isLocalStrorageReady,!this.isConnected))return;const e=tt.getInstance().get(this.getAncestorAttributeValue("headersDataProvider")).get();this.isLoading=!0,J.isObject(this.props)&&Object.keys(this.props||{}).length>0&&this.isFirstLoad&&window.requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("load",{detail:this})),this.isFirstLoad=!1,this.isLoading=!1});let o=await this.api.get(this.endPoint||this.dataProvider||"",e);if(this.fetchedData=o,this.api.lastResult&&!this.api.lastResult.ok&&(this.noErrorsRecordings||mn.add(this),vn(this.api.lastResult)),!!this.isConnected){if(o)o._sonic_http_response_&&!o._sonic_http_response_.ok&&Object.keys(o).length===1&&N.add({text:"Network Error",status:"error"});else{this.isLoading=!1,this.refetchEveryMs&&this.isConnected&&(this.refetchTimeOutId=setTimeout(()=>this._fetchData(),this.refetchEveryMs));return}if(this.key){const n=o._sonic_http_response_,a=this.key.split(".");o=J.traverse(o,a,this.hasAttribute("preserveOtherKeys")),o&&J.isObject(o)&&n&&(o._sonic_http_response_=n)}this.props=o,this.dispatchEvent(new CustomEvent("load",{detail:this})),this.isFirstLoad=!1,this.isLoading=!1,this.refetchEveryMs&&this.isConnected&&(this.refetchTimeOutId=setTimeout(()=>this._fetchData(),this.refetchEveryMs))}}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.publisher)==null||e.offInvalidate(this.onInvalidate),clearTimeout(this.refetchTimeOutId),this.isFirstLoad=!1}connectedCallback(){var e;this.lazyLoad=this.lazyLoad!==void 0?this.lazyLoad:this.hasAttribute("lazyload"),super.connectedCallback(),this.isFetchEnabled&&(this.key=this.key!=""?this.key:this.getAttribute("key"),this.props&&this.publisher.set(this.props),this.onInvalidate=()=>this._fetchData(),(e=this.publisher)==null||e.onInvalidate(this.onInvalidate),this.lazyLoad?this.handleLazyLoad():this._fetchData())}handleLazyLoad(){if(!this.lazyLoad)return;const e=this.getBoundingClientRect();if(e.x<window.innerWidth&&e.right>0&&e.y<window.innerHeight&&e.right>0){this._fetchData();return}const o=parseFloat(this.getAttribute("lazyBoundsRatio")||"1"),n={root:null,rootMargin:Math.max(window.innerWidth*o,window.innerHeight*o)+"px",threshold:.9};this.iObserver=new IntersectionObserver(c=>this.onIntersection(c),n);let a=this.shadowRoot?this.shadowRoot.children[0]:this.children[0];if((a==null?void 0:a.nodeName.toLocaleLowerCase())=="slot"&&(a=a.children[0]),!a||a.nodeName.toLocaleLowerCase()=="template"){a=document.createElement("span");const c=a.style;c.pointerEvents="none",this.lazyLoadSpan=a,this.appendChild(a)}a?this.iObserver.observe(a):this.isFirstLoad&&this._fetchData()}onIntersection(e){var o,n;for(const a of e)if(a.isIntersecting&&this.isFirstLoad){this._fetchData(),(o=this.lazyLoadSpan)==null||o.remove(),this.lazyLoadSpan=void 0,(n=this.iObserver)==null||n.disconnect();break}}}return Ye([l()],s.prototype,"noErrorsRecordings",2),Ye([l()],s.prototype,"props",1),Ye([l({type:String})],s.prototype,"endPoint",1),Ye([l()],s.prototype,"requestId",2),Ye([l({type:Number})],s.prototype,"refetchEveryMs",2),s};var yn=Object.defineProperty,wn=Object.getOwnPropertyDescriptor,pe=(r,t,s,i)=>{for(var e=i>1?void 0:i?wn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&yn(t,s,e),e};const vs=r=>{class t extends r{constructor(...i){super(),this.forceAutoFill=!1,this._type="text",this.status="default"}validateFormElement(){var o;const i=(o=this.shadowRoot)==null?void 0:o.querySelector("input");if(!i||i.checkValidity())return;const e=this.getFormPublisher();e&&(e.isFormValid=!1),i.reportValidity()}set type(i){this.hasAttribute("type")&&!this.forceAutoFill&&(i=this.getAttribute("type")),this._type=i,this.requestUpdate()}get type(){return this._type}get description(){return this._description}set description(i){this.hasAttribute("description")&&!this.forceAutoFill&&(i=this.getAttribute("description")),this._description=i,this.requestUpdate()}get label(){return this._label}set label(i){this.hasAttribute("label")&&!this.forceAutoFill&&(i=this.getAttribute("label")),this._label=i,this.requestUpdate()}}return pe([l()],t.prototype,"forceAutoFill",2),pe([l({type:String})],t.prototype,"type",1),pe([l()],t.prototype,"description",1),pe([l()],t.prototype,"label",1),pe([l({type:String,reflect:!0})],t.prototype,"status",2),pe([l({type:Number})],t.prototype,"tabindex",2),pe([l({type:String})],t.prototype,"autocomplete",2),t},hr=Js,_n=Gs,dr=Ae,pr=vs,Ht=G,ti=He;window["concorde-mixins"]=window["concorde-mixins"]||{},window["concorde-mixins"]={Fetcher:hr,FormCheckable:_n,FormElement:dr,FormInput:pr,Subscriber:Ht,TemplatesContainer:ti};/**
930
930
  * @license
931
931
  * Copyright 2020 Google LLC
932
932
  * SPDX-License-Identifier: BSD-3-Clause
933
- */const Ot=ce(class extends $e{constructor(r){if(super(r),r.type!==le.CHILD)throw Error("templateContent can only be used in child bindings")}render(r){return this.vt===r?ft:(this.vt=r,document.importNode(r.content,!0))}});var wn=Object.defineProperty,_n=Object.getOwnPropertyDescriptor,dr=(r,t,s,i)=>{for(var e=i>1?void 0:i?_n(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&wn(t,s,e),e};const xn="sonic-fetch";let ys=class extends Qs(G(Js(v))){renderLoader(){if(!(this.isLoading&&this.loader!==void 0))return $;const r=this.loader===!0||this.loader===""?"fixed":this.loader;return g`<sonic-loader mode=${r}></sonic-loader>`}renderSkeleton(){const r=this.templateParts.skeleton;return this.isLoading&&r?Ot(r):$}render(){return g`
933
+ */const Ot=ce(class extends $e{constructor(r){if(super(r),r.type!==le.CHILD)throw Error("templateContent can only be used in child bindings")}render(r){return this.vt===r?ft:(this.vt=r,document.importNode(r.content,!0))}});var xn=Object.defineProperty,Pn=Object.getOwnPropertyDescriptor,ur=(r,t,s,i)=>{for(var e=i>1?void 0:i?Pn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&xn(t,s,e),e};const $n="sonic-fetch";let ys=class extends Js(G(ti(v))){renderLoader(){if(!(this.isLoading&&this.loader!==void 0))return $;const r=this.loader===!0||this.loader===""?"fixed":this.loader;return g`<sonic-loader mode=${r}></sonic-loader>`}renderSkeleton(){const r=this.templateParts.skeleton;return this.isLoading&&r?Ot(r):$}render(){return g`
934
934
  ${this.renderSkeleton()} ${this.renderLoader()}
935
935
  ${this.isLoading?$:g`<slot></slot>`}
936
936
  `}};ys.styles=[P`
937
937
  :host {
938
938
  display: contents;
939
939
  }
940
- `],dr([l()],ys.prototype,"loader",2),ys=dr([w(xn)],ys);var Pn=Object.defineProperty,$n=Object.getOwnPropertyDescriptor,pr=(r,t,s,i)=>{for(var e=i>1?void 0:i?$n(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Pn(t,s,e),e};const Cn="sonic-if";let ws=class extends v{constructor(){super(...arguments),this.condition=!1}render(){return this.condition?g` <slot></slot> `:$}};ws.styles=P`
940
+ `],ur([l()],ys.prototype,"loader",2),ys=ur([w($n)],ys);var Cn=Object.defineProperty,An=Object.getOwnPropertyDescriptor,fr=(r,t,s,i)=>{for(var e=i>1?void 0:i?An(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Cn(t,s,e),e};const Sn="sonic-if";let ws=class extends v{constructor(){super(...arguments),this.condition=!1}render(){return this.condition?g` <slot></slot> `:$}};ws.styles=P`
941
941
  :host {
942
942
  display: contents;
943
943
  }
944
- `,pr([l({type:Boolean})],ws.prototype,"condition",2),ws=pr([w(Cn)],ws);const An=P`
944
+ `,fr([l({type:Boolean})],ws.prototype,"condition",2),ws=fr([w(Sn)],ws);const On=P`
945
945
  :host([align="left"]) .sonic-loader--inline {
946
946
  margin-left: 0;
947
947
  }
@@ -1008,7 +1008,7 @@
1008
1008
  transform: translate(24px, 0);
1009
1009
  }
1010
1010
  }
1011
- `,Sn=P`
1011
+ `,Dn=P`
1012
1012
 
1013
1013
  @keyframes sonic-loader--fixed {
1014
1014
  0% {
@@ -1063,12 +1063,12 @@
1063
1063
  animation: sonic-loader--fixed 1s 0s linear infinite;
1064
1064
  }
1065
1065
 
1066
- `;var On=Object.defineProperty,Dn=Object.getOwnPropertyDescriptor,Xs=(r,t,s,i)=>{for(var e=i>1?void 0:i?Dn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&On(t,s,e),e};const kn="sonic-loader";let rt=class extends v{constructor(){super(...arguments),this.mode="fixed",this.noDelay=!1}static show(r){rt.loader||(rt.loader=document.createElement("sonic-loader"));const t=rt.loader;r||(r={}),r.mode&&t.setAttribute("mode",r.mode),r.noDelay&&t.setAttribute("noDelay",""),r.container||(r.container=gt.getPopContainer(),r.mode="fixed"),r.container.appendChild(t),rt.callCounter++}static hide(){rt.callCounter--,!(rt.callCounter>0)&&rt.loader&&rt.loader.remove()}render(){return g`<div class="sonic-loader sonic-loader--${this.mode} ${this.noDelay?"sonic-loader--nodelay":""} ">
1066
+ `;var kn=Object.defineProperty,Ln=Object.getOwnPropertyDescriptor,ei=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ln(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&kn(t,s,e),e};const En="sonic-loader";let rt=class extends v{constructor(){super(...arguments),this.mode="fixed",this.noDelay=!1}static show(r){rt.loader||(rt.loader=document.createElement("sonic-loader"));const t=rt.loader;r||(r={}),r.mode&&t.setAttribute("mode",r.mode),r.noDelay&&t.setAttribute("noDelay",""),r.container||(r.container=gt.getPopContainer(),r.mode="fixed"),r.container.appendChild(t),rt.callCounter++}static hide(){rt.callCounter--,!(rt.callCounter>0)&&rt.loader&&rt.loader.remove()}render(){return g`<div class="sonic-loader sonic-loader--${this.mode} ${this.noDelay?"sonic-loader--nodelay":""} ">
1067
1067
  <div></div>
1068
1068
  <div></div>
1069
1069
  <div></div>
1070
1070
  <div></div>
1071
- </div>`}};rt.styles=[An,Sn,P`
1071
+ </div>`}};rt.styles=[On,Dn,P`
1072
1072
  :host {
1073
1073
  --sc-loader-bg: var(--sc-primary, currentColor);
1074
1074
  pointer-events: none;
@@ -1092,7 +1092,7 @@
1092
1092
  opacity: 1;
1093
1093
  }
1094
1094
  }
1095
- `],rt.callCounter=0,Xs([l({type:String})],rt.prototype,"mode",2),Xs([l({type:Boolean})],rt.prototype,"noDelay",2),rt=Xs([w(kn)],rt);var Ln=Object.defineProperty,En=Object.getOwnPropertyDescriptor,Nn=(r,t,s,i)=>{for(var e=i>1?void 0:i?En(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ln(t,s,e),e};const Tn="sonic-subscriber";let ur=class extends G(v){constructor(){super(...arguments),this.noAutofill=!0}connectedCallback(){this.noShadowDom="",super.connectedCallback()}updated(r){super.updated(r),this.children.length==0?this.style.display="none":this.style.display="contents"}render(){return g`<slot></slot> `}};ur=Nn([w(Tn)],ur);var jn=Object.defineProperty,Mn=Object.getOwnPropertyDescriptor,ue=(r,t,s,i)=>{for(var e=i>1?void 0:i?Mn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&jn(t,s,e),e};const In="sonic-list";let qt=class extends Qs(G(qe(v))){constructor(){super(...arguments),this.templateKey="template",this.idKey="id",this.limit=Number.POSITIVE_INFINITY,this.offset=0}connectedCallback(){this.noShadowDom="",this.defferedDebug=this.hasAttribute("debug")||null,this.isFetchEnabled=this.hasAttribute("fetch"),this.isFetchEnabled&&(this.isLoading=!0),super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}renderLoader(){if(!(this.isLoading&&this.loader!==void 0)||this.templateParts.skeleton)return $;const t=this.loader===!0||this.loader===""?"fixed":this.loader;return g`<sonic-loader mode=${t}></sonic-loader>`}renderSkeleton(){const r=this.templateParts.skeleton;return this.isLoading&&r?Ot(r):$}renderLoadingState(){return g`${this.renderSkeleton()} ${this.renderLoader()}`}renderNoResultState(){return g` <div
1095
+ `],rt.callCounter=0,ei([l({type:String})],rt.prototype,"mode",2),ei([l({type:Boolean})],rt.prototype,"noDelay",2),rt=ei([w(En)],rt);var Nn=Object.defineProperty,Tn=Object.getOwnPropertyDescriptor,jn=(r,t,s,i)=>{for(var e=i>1?void 0:i?Tn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Nn(t,s,e),e};const Mn="sonic-subscriber";let gr=class extends G(v){constructor(){super(...arguments),this.noAutofill=!0}connectedCallback(){this.noShadowDom="",super.connectedCallback()}updated(r){super.updated(r),this.children.length==0?this.style.display="none":this.style.display="contents"}render(){return g`<slot></slot> `}};gr=jn([w(Mn)],gr);var In=Object.defineProperty,Rn=Object.getOwnPropertyDescriptor,ue=(r,t,s,i)=>{for(var e=i>1?void 0:i?Rn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&In(t,s,e),e};const Fn="sonic-list";let qt=class extends Js(G(He(v))){constructor(){super(...arguments),this.templateKey="template",this.idKey="id",this.limit=Number.POSITIVE_INFINITY,this.offset=0}connectedCallback(){this.noShadowDom="",this.defferedDebug=this.hasAttribute("debug")||null,this.isFetchEnabled=this.hasAttribute("fetch"),this.isFetchEnabled&&(this.isLoading=!0),super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}renderLoader(){if(!(this.isLoading&&this.loader!==void 0)||this.templateParts.skeleton)return $;const t=this.loader===!0||this.loader===""?"fixed":this.loader;return g`<sonic-loader mode=${t}></sonic-loader>`}renderSkeleton(){const r=this.templateParts.skeleton;return this.isLoading&&r?Ot(r):$}renderLoadingState(){return g`${this.renderSkeleton()} ${this.renderLoader()}`}renderNoResultState(){return g` <div
1096
1096
  style="color: var(--sc-base-400);
1097
1097
  font-size: 1.5em;
1098
1098
  margin: 4rem 0;
@@ -1103,7 +1103,7 @@
1103
1103
  ><span class="sonic-no-result-text"
1104
1104
  >${typeof this.props=="string"&&this.props==""?"Aucun résultat":this.props}</span
1105
1105
  >
1106
- </div>`}formatProps(){let r=this.props;if(r==null)return null;const t=r._sonic_http_response_,s=this.hasAttribute("extractValues");return Array.isArray(r)||(s?r=Object.entries(r).map(([i,e])=>({key:i,value:e})):X.isObject(r)&&Object.keys(r).length>0&&(!t||t.ok)?r=[r]:r=[]),r=r.filter(i=>i!=null),t&&(r._sonic_http_response_=t),r}render(){if(this.isLoading&&!Array.isArray(this.props))return this.renderLoadingState();if(typeof this.props=="string")return this.renderNoResultState();if(!X.isObject(this.props))return g`<div></div>`;const i=this.formatProps();if(((i==null?void 0:i.length)||0)==0&&this.templateParts["no-item"])return Ot(this.templateParts["no-item"]);const e=this.templateList.length;let o=-1;const n=this.hasAttribute("extractValues"),a=this.templateParts.separator,c=(i==null?void 0:i.length)||0,h=i==null?void 0:i.slice(this.offset,this.offset+this.limit);return g`
1106
+ </div>`}formatProps(){let r=this.props;if(r==null)return null;const t=r._sonic_http_response_,s=this.hasAttribute("extractValues");return Array.isArray(r)||(s?r=Object.entries(r).map(([i,e])=>({key:i,value:e})):J.isObject(r)&&Object.keys(r).length>0&&(!t||t.ok)?r=[r]:r=[]),r=r.filter(i=>i!=null),t&&(r._sonic_http_response_=t),r}render(){if(this.isLoading&&!Array.isArray(this.props))return this.renderLoadingState();if(typeof this.props=="string")return this.renderNoResultState();if(!J.isObject(this.props))return g`<div></div>`;const i=this.formatProps();if(((i==null?void 0:i.length)||0)==0&&this.templateParts["no-item"])return Ot(this.templateParts["no-item"]);const e=this.templateList.length;let o=-1;const n=this.hasAttribute("extractValues"),a=this.templateParts.separator,c=(i==null?void 0:i.length)||0,h=i==null?void 0:i.slice(this.offset,this.offset+this.limit);return g`
1107
1107
  ${h==null?void 0:h.map((d,f)=>{if(d==null)return $;let m=null,b=f;if(typeof d=="object"&&!Array.isArray(d)){const D=d[this.templateKey];D&&typeof D=="string"&&(m=this.templateParts[D]),n&&(b=d==null?void 0:d.key)}if(b=="_sonic_http_response_"||typeof b!="string"&&typeof b!="number")return $;const _=f>=c-1,C=f%2,O=this.publisher[b];return O._key_=b+"",O._metadata_={...O._metadata_.get(),key:b,even:C==0,odd:C==1,onlyChild:c==1,firstChild:f==0,lastChild:_},o++,m&&(o=-1),d&&g`
1108
1108
  <sonic-subscriber
1109
1109
  ?debug=${this.defferedDebug===!0}
@@ -1115,11 +1115,11 @@
1115
1115
  </sonic-subscriber>
1116
1116
  ${a&&!_?Ot(a):$}
1117
1117
  `})}
1118
- `}};ue([l({type:Object})],qt.prototype,"itemPropertyMap",2),ue([l({type:String})],qt.prototype,"templateKey",2),ue([l({type:String})],qt.prototype,"idKey",2),ue([l()],qt.prototype,"loader",2),ue([l()],qt.prototype,"limit",2),ue([l()],qt.prototype,"offset",2),qt=ue([w(In)],qt);/**
1118
+ `}};ue([l({type:Object})],qt.prototype,"itemPropertyMap",2),ue([l({type:String})],qt.prototype,"templateKey",2),ue([l({type:String})],qt.prototype,"idKey",2),ue([l()],qt.prototype,"loader",2),ue([l()],qt.prototype,"limit",2),ue([l()],qt.prototype,"offset",2),qt=ue([w(Fn)],qt);/**
1119
1119
  * @license
1120
1120
  * Copyright 2021 Google LLC
1121
1121
  * SPDX-License-Identifier: BSD-3-Clause
1122
- */function*zn(r,t){if(r!==void 0){let s=0;for(const i of r)yield t(i,s++)}}var Fn=Object.defineProperty,Rn=Object.getOwnPropertyDescriptor,mt=(r,t,s,i)=>{for(var e=i>1?void 0:i?Rn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Fn(t,s,e),e};const Un="sonic-queue";let ot=class extends G(v){constructor(){super(...arguments),this.templates=null,this.lastRequestTime=0,this.key="",this.itemPropertyMap=null,this.cache="default",this.targetRequestDuration=500,this.limit=5,this.lazyBoundsRatio=1,this.offset=0,this.resultCount=0,this.noLazyload=!1,this.filteredFields="",this.instanceId=0,this.localStorage="disabled",this.filterPublisher=null,this.filterTimeoutMs=400,this.searchHash="",this.requestId=0,this.isFirstRequest=!0,this.updateFilteredContent=()=>{var n;const t=this.dataProviderExpression.split("?");t.shift();const s=new URLSearchParams(t.join("?")),i=(n=this.filterPublisher)==null?void 0:n.get(),e=this.filteredFields.split(" ");for(const a in i){let c=i[a];Array.isArray(c)&&(c=c.filter(h=>h!==null)),!(this.filteredFields&&!e.includes(a)||c==null||c.toString()==="")&&s.set(a,i[a].toString())}const o=s.toString();if(!(o==this.searchHash&&!this.isFirstRequest)){this.searchHash=o;for(const a of this.listDataProviders)L.delete(a);this.listDataProviders=[],clearTimeout(this.filterTimeoutId),this.filterTimeoutId=setTimeout(async()=>{const a=this.resultCount;this.props=null,this.requestId++,this.resultCount=a,await L.getInstance().isLocalStrorageReady,window.requestAnimationFrame(()=>this.next())},this.isFirstRequest?0:this.filterTimeoutMs),this.isFirstRequest=!1}},this.dataProviderExpression="",this.idKey="id",this.listDataProviders=[],this.nextHadEvent=!1}disconnectedCallback(){var r;for(const t of this.listDataProviders)L.delete(t),this.listDataProviders=[];(r=this.filterPublisher)==null||r.offInternalMutation(this.updateFilteredContent),this.props=null,this.limit=5,this.offset=0,this.resultCount=0,this.searchHash="",this.requestId=0,this.isFirstRequest=!0,this.nextHadEvent=!1,this.publisher.set({}),super.disconnectedCallback()}async connectedCallback(){this.instanceId=ot.instanceCounter++,this.localStorage=this.getAttribute("localStorage")||this.localStorage,this.filterTimeoutMs=parseInt(this.getAttribute("filterTimeoutMs")||"400"),this.removeAttribute("localStorage"),this.noShadowDom="",this.defferedDebug=this.hasAttribute("debug")||null,this.dataProvider||(this.dataProvider=this.dataProviderExpression||"sonic-queue-"+this.instanceId+"-"+Math.random().toString(36).substring(7)),this.dataProviderExpression||(this.dataProviderExpression=We.getAncestorAttributeValue(this.parentElement,"dataProvider")||""),super.connectedCallback(),this.publisher.set({}),this.key=this.getAttribute("key"),await L.getInstance().isLocalStrorageReady,this.templates||(this.templates=Array.from(this.querySelectorAll("template"))),this.lastRequestTime=new Date().getTime(),this.configFilter()}configFilter(){var t;const r=this.getAncestorAttributeValue("dataFilterProvider");if(!r){this.next();return}this.filterPublisher=L.getInstance().get(r),(t=this.filterPublisher)==null||t.onInternalMutation(this.updateFilteredContent)}resetDuration(){this.lastRequestTime=new Date().getTime()}next(r){var f;let t=this.offset;const i=new Date().getTime()-this.lastRequestTime;if(!this.nextHadEvent&&r&&(this.publisher.resultCount=0,this.resultCount=0),this.nextHadEvent=!!r,r){if(this.publisher.lastFetchedData=r.detail.fetchedData,r.detail.requestId<this.requestId)return;if(this.resultCount+=r.detail.props.length,!r.detail.isFirstLoad||!r.detail.props.length||this.dataProviderExpression.indexOf("$offset")==-1){this.publisher.resultCount=this.resultCount;return}}if(Array.isArray(this.props)){const m=this.props,b=m[m.length-1];t=parseInt(b.offset.toString())+parseInt(b.limit.toString())}else{const m=[];m.resultCount=this.resultCount,m.lastFetchedData=(r==null?void 0:r.detail.fetchedData)||{},this.props=m}i>0&&r&&!this.localStorage&&(this.limit=Math.round(this.limit/i*this.targetRequestDuration)),this.limit<1&&(this.limit=1),this.limit>15&&(this.limit=15);let e=this.dataProviderExpression.replace("$offset",t+"").replace("$limit",this.limit+"");const o=e.split("?");let n=o.shift();const a=new URLSearchParams(o.join("?")),c=(f=this.filterPublisher)==null?void 0:f.get(),h=this.filteredFields.split(" ");for(const m in c)this.filteredFields&&h.includes(m)||c[m]==null||c[m]==""||a.set(m,c[m]);this.searchHash||(this.searchHash=a.toString()),n=n+"?"+a.toString(),e=e+"_item_from_queue_"+this.instanceId,this.listDataProviders.push(e);const d=[...this.props,{id:a.toString()+"/"+this.props.length,dataProvider:e,endPoint:n,offset:t,limit:this.limit}];d.resultCount=this.resultCount,d.lastFetchedData=(r==null?void 0:r.detail.fetchedData)||{},this.props=d,this.lastRequestTime=new Date().getTime()}render(){if(!Array.isArray(this.props))return $;let r=!this.noLazyload;return this.props.length==1&&(r=!1),g`
1122
+ */function*zn(r,t){if(r!==void 0){let s=0;for(const i of r)yield t(i,s++)}}var Un=Object.defineProperty,Vn=Object.getOwnPropertyDescriptor,mt=(r,t,s,i)=>{for(var e=i>1?void 0:i?Vn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Un(t,s,e),e};const Bn="sonic-queue";let ot=class extends G(v){constructor(){super(...arguments),this.templates=null,this.lastRequestTime=0,this.key="",this.itemPropertyMap=null,this.cache="default",this.targetRequestDuration=500,this.limit=5,this.lazyBoundsRatio=1,this.offset=0,this.resultCount=0,this.noLazyload=!1,this.filteredFields="",this.instanceId=0,this.localStorage="disabled",this.filterPublisher=null,this.filterTimeoutMs=400,this.searchHash="",this.requestId=0,this.isFirstRequest=!0,this.updateFilteredContent=()=>{var n;const t=this.dataProviderExpression.split("?");t.shift();const s=new URLSearchParams(t.join("?")),i=(n=this.filterPublisher)==null?void 0:n.get(),e=this.filteredFields.split(" ");for(const a in i){let c=i[a];Array.isArray(c)&&(c=c.filter(h=>h!==null)),!(this.filteredFields&&!e.includes(a)||c==null||c.toString()==="")&&s.set(a,i[a].toString())}const o=s.toString();if(!(o==this.searchHash&&!this.isFirstRequest)){this.searchHash=o;for(const a of this.listDataProviders)E.delete(a);this.listDataProviders=[],clearTimeout(this.filterTimeoutId),this.filterTimeoutId=setTimeout(async()=>{const a=this.resultCount;this.props=null,this.requestId++,this.resultCount=a,await E.getInstance().isLocalStrorageReady,window.requestAnimationFrame(()=>this.next())},this.isFirstRequest?0:this.filterTimeoutMs),this.isFirstRequest=!1}},this.dataProviderExpression="",this.idKey="id",this.listDataProviders=[],this.nextHadEvent=!1}disconnectedCallback(){var r;for(const t of this.listDataProviders)E.delete(t),this.listDataProviders=[];(r=this.filterPublisher)==null||r.offInternalMutation(this.updateFilteredContent),this.props=null,this.limit=5,this.offset=0,this.resultCount=0,this.searchHash="",this.requestId=0,this.isFirstRequest=!0,this.nextHadEvent=!1,this.publisher.set({}),super.disconnectedCallback()}async connectedCallback(){this.instanceId=ot.instanceCounter++,this.localStorage=this.getAttribute("localStorage")||this.localStorage,this.filterTimeoutMs=parseInt(this.getAttribute("filterTimeoutMs")||"400"),this.removeAttribute("localStorage"),this.noShadowDom="",this.defferedDebug=this.hasAttribute("debug")||null,this.dataProvider||(this.dataProvider=this.dataProviderExpression||"sonic-queue-"+this.instanceId+"-"+Math.random().toString(36).substring(7)),this.dataProviderExpression||(this.dataProviderExpression=qe.getAncestorAttributeValue(this.parentElement,"dataProvider")||""),super.connectedCallback(),this.publisher.set({}),this.key=this.getAttribute("key"),await E.getInstance().isLocalStrorageReady,this.templates||(this.templates=Array.from(this.querySelectorAll("template"))),this.lastRequestTime=new Date().getTime(),this.configFilter()}configFilter(){var t;const r=this.getAncestorAttributeValue("dataFilterProvider");if(!r){this.next();return}this.filterPublisher=E.getInstance().get(r),(t=this.filterPublisher)==null||t.onInternalMutation(this.updateFilteredContent)}resetDuration(){this.lastRequestTime=new Date().getTime()}next(r){var f;let t=this.offset;const i=new Date().getTime()-this.lastRequestTime;if(!this.nextHadEvent&&r&&(this.publisher.resultCount=0,this.resultCount=0),this.nextHadEvent=!!r,r){if(this.publisher.lastFetchedData=r.detail.fetchedData,r.detail.requestId<this.requestId)return;if(this.resultCount+=r.detail.props.length,!r.detail.isFirstLoad||!r.detail.props.length||this.dataProviderExpression.indexOf("$offset")==-1){this.publisher.resultCount=this.resultCount;return}}if(Array.isArray(this.props)){const m=this.props,b=m[m.length-1];t=parseInt(b.offset.toString())+parseInt(b.limit.toString())}else{const m=[];m.resultCount=this.resultCount,m.lastFetchedData=(r==null?void 0:r.detail.fetchedData)||{},this.props=m}i>0&&r&&!this.localStorage&&(this.limit=Math.round(this.limit/i*this.targetRequestDuration)),this.limit<1&&(this.limit=1),this.limit>15&&(this.limit=15);let e=this.dataProviderExpression.replace("$offset",t+"").replace("$limit",this.limit+"");const o=e.split("?");let n=o.shift();const a=new URLSearchParams(o.join("?")),c=(f=this.filterPublisher)==null?void 0:f.get(),h=this.filteredFields.split(" ");for(const m in c)this.filteredFields&&h.includes(m)||c[m]==null||c[m]==""||a.set(m,c[m]);this.searchHash||(this.searchHash=a.toString()),n=n+"?"+a.toString(),e=e+"_item_from_queue_"+this.instanceId,this.listDataProviders.push(e);const d=[...this.props,{id:a.toString()+"/"+this.props.length,dataProvider:e,endPoint:n,offset:t,limit:this.limit}];d.resultCount=this.resultCount,d.lastFetchedData=(r==null?void 0:r.detail.fetchedData)||{},this.props=d,this.lastRequestTime=new Date().getTime()}render(){if(!Array.isArray(this.props))return $;let r=!this.noLazyload;return this.props.length==1&&(r=!1),g`
1123
1123
  ${zn(this.props,(t,s)=>{var e;const i=s==0?this.templates:(e=this.templates)==null?void 0:e.filter(o=>o.getAttribute("data-value")!="no-item");return g`
1124
1124
  <sonic-list
1125
1125
  fetch
@@ -1142,28 +1142,28 @@
1142
1142
  >
1143
1143
  </sonic-list>
1144
1144
  `})}
1145
- `}};ot.instanceCounter=0,mt([l({type:Array})],ot.prototype,"templates",2),mt([l({type:Object})],ot.prototype,"itemPropertyMap",2),mt([l()],ot.prototype,"cache",2),mt([l()],ot.prototype,"targetRequestDuration",2),mt([l()],ot.prototype,"limit",2),mt([l()],ot.prototype,"lazyBoundsRatio",2),mt([l()],ot.prototype,"offset",2),mt([l()],ot.prototype,"resultCount",2),mt([l({type:Boolean})],ot.prototype,"noLazyload",2),mt([l()],ot.prototype,"filteredFields",2),mt([l({type:String})],ot.prototype,"dataProviderExpression",2),mt([l({type:String})],ot.prototype,"idKey",2),ot=mt([w(Un)],ot);var Vn=Object.defineProperty,Bn=Object.getOwnPropertyDescriptor,Oe=(r,t,s,i)=>{for(var e=i>1?void 0:i?Bn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Vn(t,s,e),e};const Hn="sonic-submit";let Wt=class extends G(v){constructor(){super(...arguments),this.submitResultKey=null,this.disabled=!1,this.endPoint=null,this.name="",this.value="",this.api=null}connectedCallback(){this.hasAttribute("onClick")&&this.addEventListener("click",()=>this.submit()),this.hasAttribute("onEnterKey")&&this.addEventListener("keydown",r=>{r.key==="Enter"&&this.submit()}),super.connectedCallback(),this.api=new Ce(this.getApiConfiguration())}submitNativeForm(){const r=We.getClosestForm(this);if(!r)return;const t=this.getAncestorAttributeValue("formDataProvider"),s=L.get(t).get();for(const e in s){if(e=="isFormValid")continue;let o=r.querySelector('input[name="'+e+'"], select[name="'+e+'"], textarea[name="'+e+'"]');o||(o=document.createElement("input"),o.type="hidden",o.name=e,r.appendChild(o));let n=s[e];Array.isArray(n)&&(n=n.join(",")),o.type==="checkbox"||o.type==="radio"?n&&(o.checked=!0):o.value=n}const i=document.createElement("input");i.name=this.name,i.style.display="none",i.value=this.value,i.type="submit",r.appendChild(i),i&&i.click()}async submit(){var b;const r=L.getInstance().get(this.getAncestorAttributeValue("formDataProvider"));if(r.isFormValid=!0,r.invalidate(),!r.isFormValid.get())return;if(this.publisher&&(this.publisher.disabled=!0),r.isFormValid,this.hasAttribute("native")){this.submitNativeForm();return}const s=((b=this.getAttribute("method"))==null?void 0:b.toLocaleLowerCase())||"post",i=this.hasAttribute("sendAsFormData"),e=r.get();delete e.isFormValid;const o=this.getAncestorAttributeValue("headersDataProvider"),n=o?L.getInstance().get(o):null;let a={};n&&(a=n.get());let c=null;const h=this.getAncestorAttributeValue("dataProvider"),d=this.endPoint||h;rt.show();const f=async()=>{var p,u,y,A,S,M,H;if(i)c=await((p=this.api)==null?void 0:p.submitFormData(d,e,s,a));else switch(s){case"put":c=await((u=this.api)==null?void 0:u.put(d,e,a));break;case"delete":c=await((y=this.api)==null?void 0:y.delete(d,e,a));break;case"get":const Z=new URLSearchParams;if(e)for(const kr in e)Z.append(kr,e[kr]);const we="?"+Z.toString();c=await((A=this.api)==null?void 0:A.get(d+we,a));break;default:c=await((S=this.api)==null?void 0:S.post(d,e,a));break}rt.hide(),c?c._sonic_http_response_&&!c._sonic_http_response_.ok&&Object.keys(c).length===1&&(c.messages=[{content:"Network Error",status:"error"}]):c={messages:[{content:"Network Error",status:"error"}]};const _=this.getAncestorAttributeValue("clearedDataOnSuccess");_&&_.split(" ").forEach(Z=>L.get(Z).set({}));const C=this.hasAttribute("usernameKey")?this.getAttribute("usernameKey"):"username",O=this.hasAttribute("passwordKey")?this.getAttribute("passwordKey"):"password";(H=(M=this.api)==null?void 0:M.lastResult)!=null&&H.ok&&e[C]&&e[O]&&this.saveCredentials(e[C],e[O]),this.submitResultKey&&(c=X.traverse(c,this.submitResultKey.split("."),!0));const D=this.getAncestorAttributeValue("submitResultDataProvider");D&&L.get(D).set(c),this.publisher&&(this.publisher.disabled=null)},m=n!=null&&n.needsCaptchaValidation.get()?n:r.needsCaptchaValidation.get()?r:null;if(m){m.captchaMethod=s,m.captchaAction=(h==null?void 0:h.split("?")[0])??this.getAncestorAttributeValue("formDataProvider")??"submit",m.captchaToken="request_token";const _=C=>{C!="request_token"&&C!=""&&(f(),m.captchaToken.offAssign(_))};m.captchaToken.onAssign(_)}else f()}async saveCredentials(r,t){if("PasswordCredential"in window){const s=new window.PasswordCredential({id:r,password:t});await navigator.credentials.store(s)}}render(){return g`<div ?data-disabled=${this.disabled}><slot></slot></div>`}};Wt.styles=P`
1145
+ `}};ot.instanceCounter=0,mt([l({type:Array})],ot.prototype,"templates",2),mt([l({type:Object})],ot.prototype,"itemPropertyMap",2),mt([l()],ot.prototype,"cache",2),mt([l()],ot.prototype,"targetRequestDuration",2),mt([l()],ot.prototype,"limit",2),mt([l()],ot.prototype,"lazyBoundsRatio",2),mt([l()],ot.prototype,"offset",2),mt([l()],ot.prototype,"resultCount",2),mt([l({type:Boolean})],ot.prototype,"noLazyload",2),mt([l()],ot.prototype,"filteredFields",2),mt([l({type:String})],ot.prototype,"dataProviderExpression",2),mt([l({type:String})],ot.prototype,"idKey",2),ot=mt([w(Bn)],ot);var Hn=Object.defineProperty,qn=Object.getOwnPropertyDescriptor,Oe=(r,t,s,i)=>{for(var e=i>1?void 0:i?qn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Hn(t,s,e),e};const Wn="sonic-submit";let Wt=class extends G(v){constructor(){super(...arguments),this.submitResultKey=null,this.disabled=!1,this.endPoint=null,this.name="",this.value="",this.api=null}connectedCallback(){this.hasAttribute("onClick")&&this.addEventListener("click",()=>this.submit()),this.hasAttribute("onEnterKey")&&this.addEventListener("keydown",r=>{r.key==="Enter"&&this.submit()}),super.connectedCallback(),this.api=new Ce(this.getApiConfiguration())}submitNativeForm(){const r=qe.getClosestForm(this);if(!r)return;const t=this.getAncestorAttributeValue("formDataProvider"),s=E.get(t).get();for(const e in s){if(e=="isFormValid")continue;let o=r.querySelector('input[name="'+e+'"], select[name="'+e+'"], textarea[name="'+e+'"]');o||(o=document.createElement("input"),o.type="hidden",o.name=e,r.appendChild(o));let n=s[e];Array.isArray(n)&&(n=n.join(",")),o.type==="checkbox"||o.type==="radio"?n&&(o.checked=!0):o.value=n}const i=document.createElement("input");i.name=this.name,i.style.display="none",i.value=this.value,i.type="submit",r.appendChild(i),i&&i.click()}async submit(){var b;const r=E.getInstance().get(this.getAncestorAttributeValue("formDataProvider"));if(r.isFormValid=!0,r.invalidate(),!r.isFormValid.get())return;if(this.publisher&&(this.publisher.disabled=!0),r.isFormValid,this.hasAttribute("native")){this.submitNativeForm();return}const s=((b=this.getAttribute("method"))==null?void 0:b.toLocaleLowerCase())||"post",i=this.hasAttribute("sendAsFormData"),e=r.get();delete e.isFormValid;const o=this.getAncestorAttributeValue("headersDataProvider"),n=o?E.getInstance().get(o):null;let a={};n&&(a=n.get());let c=null;const h=this.getAncestorAttributeValue("dataProvider"),d=this.endPoint||h;rt.show();const f=async()=>{var p,u,y,A,S,M,H;if(i)c=await((p=this.api)==null?void 0:p.submitFormData(d,e,s,a));else switch(s){case"put":c=await((u=this.api)==null?void 0:u.put(d,e,a));break;case"delete":c=await((y=this.api)==null?void 0:y.delete(d,e,a));break;case"get":const Z=new URLSearchParams;if(e)for(const Er in e)Z.append(Er,e[Er]);const we="?"+Z.toString();c=await((A=this.api)==null?void 0:A.get(d+we,a));break;default:c=await((S=this.api)==null?void 0:S.post(d,e,a));break}rt.hide(),c?c._sonic_http_response_&&!c._sonic_http_response_.ok&&Object.keys(c).length===1&&(c.messages=[{content:"Network Error",status:"error"}]):c={messages:[{content:"Network Error",status:"error"}]};const _=this.getAncestorAttributeValue("clearedDataOnSuccess");_&&_.split(" ").forEach(Z=>E.get(Z).set({}));const C=this.hasAttribute("usernameKey")?this.getAttribute("usernameKey"):"username",O=this.hasAttribute("passwordKey")?this.getAttribute("passwordKey"):"password";(H=(M=this.api)==null?void 0:M.lastResult)!=null&&H.ok&&e[C]&&e[O]&&this.saveCredentials(e[C],e[O]),this.submitResultKey&&(c=J.traverse(c,this.submitResultKey.split("."),!0));const D=this.getAncestorAttributeValue("submitResultDataProvider");D&&E.get(D).set(c),this.publisher&&(this.publisher.disabled=null)},m=n!=null&&n.needsCaptchaValidation.get()?n:r.needsCaptchaValidation.get()?r:null;if(m){m.captchaMethod=s,m.captchaAction=(h==null?void 0:h.split("?")[0])??this.getAncestorAttributeValue("formDataProvider")??"submit",m.captchaToken="request_token";const _=C=>{C!="request_token"&&C!=""&&(f(),m.captchaToken.offAssign(_))};m.captchaToken.onAssign(_)}else f()}async saveCredentials(r,t){if("PasswordCredential"in window){const s=new window.PasswordCredential({id:r,password:t});await navigator.credentials.store(s)}}render(){return g`<div ?data-disabled=${this.disabled}><slot></slot></div>`}};Wt.styles=P`
1146
1146
  [data-disabled] {
1147
1147
  opacity: 0.3;
1148
1148
  pointer-events: none;
1149
1149
  user-select: none;
1150
1150
  }
1151
- `,Oe([l({type:String})],Wt.prototype,"submitResultKey",2),Oe([l({type:Boolean})],Wt.prototype,"disabled",2),Oe([l({type:String})],Wt.prototype,"endPoint",2),Oe([l()],Wt.prototype,"name",2),Oe([l()],Wt.prototype,"value",2),Wt=Oe([w(Hn)],Wt);var qn=Object.defineProperty,Wn=Object.getOwnPropertyDescriptor,ti=(r,t,s,i)=>{for(var e=i>1?void 0:i?Wn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&qn(t,s,e),e};const Kn="sonic-router";let _s=class extends G(qe(v)){constructor(){super(...arguments),this.templateValueAttribute="data-route",this._location=document.location.href.replace(document.location.origin,"")}connectedCallback(){this.noShadowDom="",it.onChange(this),super.connectedCallback()}disconnectedCallback(){it.offChange(this),super.disconnectedCallback()}set location(r){this._location=r,this.requestUpdate()}get location(){return this._location}render(){const r=[];for(const t of this.templatePartsList){const s=t.getAttribute(this.templateValueAttribute)||"";if(new RegExp(s).test(this.location))r.push(t);else try{new he("(/)*"+s+"*").match(this.location)&&(t.setAttribute("mode","patternMatching"),r.push(t))}catch{this.location.indexOf(s.replace(document.location.origin,""))!=-1&&r.push(t)}}if(r.length==0){this.fallBackRoute&&this.isConnected&&(document.location.href=this.fallBackRoute);const t=this.templatePartsList.find(s=>s.hasAttribute("data-fallback"));t&&r.push(t)}return g`${us(r,(t,s)=>s+new Date().getTime(),t=>{var s;if(t.title&&(document.title=t.title),t.hasAttribute("dataProviderExpression")){let i="";const e=t.getAttribute("dataProviderExpression")||"";if(t.getAttribute("mode")=="patternMatching"){const o=new he("(/)*"+(t.getAttribute(this.templateValueAttribute)||"")+"*");i=new he(e).stringify(o.match(this.location))}else{const o=new RegExp(t.getAttribute(this.templateValueAttribute)||""),n=(this.location+"").match(o);n&&(i=((s=n.shift())==null?void 0:s.replace(o,e))||"")}return g`<div
1151
+ `,Oe([l({type:String})],Wt.prototype,"submitResultKey",2),Oe([l({type:Boolean})],Wt.prototype,"disabled",2),Oe([l({type:String})],Wt.prototype,"endPoint",2),Oe([l()],Wt.prototype,"name",2),Oe([l()],Wt.prototype,"value",2),Wt=Oe([w(Wn)],Wt);var Kn=Object.defineProperty,Zn=Object.getOwnPropertyDescriptor,si=(r,t,s,i)=>{for(var e=i>1?void 0:i?Zn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Kn(t,s,e),e};const Gn="sonic-router";let _s=class extends G(He(v)){constructor(){super(...arguments),this.templateValueAttribute="data-route",this._location=document.location.href.replace(document.location.origin,"")}connectedCallback(){this.noShadowDom="",it.onChange(this),super.connectedCallback()}disconnectedCallback(){it.offChange(this),super.disconnectedCallback()}set location(r){this._location=r,this.requestUpdate()}get location(){return this._location}render(){const r=[];for(const t of this.templatePartsList){const s=t.getAttribute(this.templateValueAttribute)||"";if(new RegExp(s).test(this.location))r.push(t);else try{new he("(/)*"+s+"*").match(this.location)&&(t.setAttribute("mode","patternMatching"),r.push(t))}catch{this.location.indexOf(s.replace(document.location.origin,""))!=-1&&r.push(t)}}if(r.length==0){this.fallBackRoute&&this.isConnected&&(document.location.href=this.fallBackRoute);const t=this.templatePartsList.find(s=>s.hasAttribute("data-fallback"));t&&r.push(t)}return g`${fs(r,(t,s)=>s+new Date().getTime(),t=>{var s;if(t.title&&(document.title=t.title),t.hasAttribute("dataProviderExpression")){let i="";const e=t.getAttribute("dataProviderExpression")||"";if(t.getAttribute("mode")=="patternMatching"){const o=new he("(/)*"+(t.getAttribute(this.templateValueAttribute)||"")+"*");i=new he(e).stringify(o.match(this.location))}else{const o=new RegExp(t.getAttribute(this.templateValueAttribute)||""),n=(this.location+"").match(o);n&&(i=((s=n.shift())==null?void 0:s.replace(o,e))||"")}return g`<div
1152
1152
  style="display:contents"
1153
1153
  dataProvider="${i}"
1154
1154
  >
1155
1155
  ${Ot(t)}
1156
- </div>`}return Ot(t)})}`}};ti([l({type:String})],_s.prototype,"fallBackRoute",2),ti([l()],_s.prototype,"location",1),_s=ti([w(Kn)],_s);var Zn=Object.defineProperty,Gn=Object.getOwnPropertyDescriptor,Yn=(r,t,s,i)=>{for(var e=i>1?void 0:i?Gn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Zn(t,s,e),e};const Qn="sonic-redirect";let fr=class extends G(v){connectedCallback(){this.noShadowDom="",this.style.display="none",super.connectedCallback(),this.udpateCallBack=()=>this.update(),this.publisher&&this.publisher.onInternalMutation(this.udpateCallBack)}disconnectedCallback(){this.publisher&&this.publisher.offInternalMutation(this.udpateCallBack),super.disconnectedCallback()}update(){if(this.hasAttribute("onAdded")){it.changeFromComponent(this);return}if(!this.props)return;const r=this.getAttribute("onData").split("."),t=X.traverse(this.props,r);t&&!(X.isObject(t)&&t)&&it.changeFromComponent(this)}};fr=Yn([w(Qn)],fr);var Jn=Object.defineProperty,Xn=Object.getOwnPropertyDescriptor,ei=(r,t,s,i)=>{for(var e=i>1?void 0:i?Xn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Jn(t,s,e),e};const ta="sonic-states";let xs=class extends G(qe(v)){constructor(){super(...arguments),this.state="",this.inverted=!1,this.statePath="",this.onAssign=r=>{this.state=r,this.requestUpdate()}}connectedCallback(){if(this.noShadowDom="",super.connectedCallback(),this.hasAttribute("data-path")&&(this.statePath=this.getAttribute("data-path")),this.statePath){this.statePublisher=this.publisher;const r=this.statePath.split(".");for(const t of r)this.statePublisher=this.statePublisher[t];this.statePublisher.onAssign(this.onAssign)}}disconnectedCallback(){var r;this.statePath&&((r=this.statePublisher)==null||r.offAssign(this.onAssign)),super.disconnectedCallback()}render(){const r=[];let t=this.state;(!Array.isArray(t)&&X.isObject(t)||t===void 0)&&(t="");for(const s of this.templatePartsList){let i=s.getAttribute(this.templateValueAttribute),e=t;if(this.inverted&&(e=i,i=t),i==""&&(i=this.inverted?".*?":"^$"),new RegExp(i).test(e))r.push(s),s.removeAttribute("mode");else{const n=new he(i);n.names.length>0&&n.match(e)&&(s.setAttribute("mode","patternMatching"),r.push(s))}}return g`${us(r,(s,i)=>i+new Date().getTime(),s=>{var i;if(s.title&&(document.title=s.title),s.hasAttribute("dataProviderExpression")){const e=s.getAttribute("dataProviderExpression");let o="",n=t,a=s.getAttribute(this.templateValueAttribute);if(this.inverted&&(n=a,a=t),a==""&&(a=this.inverted?"*":"^$"),s.getAttribute("mode")=="patternMatching"){const c=new he(a);o=new he(e).stringify(c.match(n))}else{const c=new RegExp(a),h=(n+"").match(c);h&&(o=(i=h.shift())==null?void 0:i.replace(c,e))}return g`<div
1156
+ </div>`}return Ot(t)})}`}};si([l({type:String})],_s.prototype,"fallBackRoute",2),si([l()],_s.prototype,"location",1),_s=si([w(Gn)],_s);var Yn=Object.defineProperty,Qn=Object.getOwnPropertyDescriptor,Xn=(r,t,s,i)=>{for(var e=i>1?void 0:i?Qn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Yn(t,s,e),e};const Jn="sonic-redirect";let mr=class extends G(v){connectedCallback(){this.noShadowDom="",this.style.display="none",super.connectedCallback(),this.udpateCallBack=()=>this.update(),this.publisher&&this.publisher.onInternalMutation(this.udpateCallBack)}disconnectedCallback(){this.publisher&&this.publisher.offInternalMutation(this.udpateCallBack),super.disconnectedCallback()}update(){if(this.hasAttribute("onAdded")){it.changeFromComponent(this);return}if(!this.props)return;const r=this.getAttribute("onData").split("."),t=J.traverse(this.props,r);t&&!(J.isObject(t)&&t)&&it.changeFromComponent(this)}};mr=Xn([w(Jn)],mr);var ta=Object.defineProperty,ea=Object.getOwnPropertyDescriptor,ii=(r,t,s,i)=>{for(var e=i>1?void 0:i?ea(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ta(t,s,e),e};const sa="sonic-states";let xs=class extends G(He(v)){constructor(){super(...arguments),this.state="",this.inverted=!1,this.statePath="",this.onAssign=r=>{this.state=r,this.requestUpdate()}}connectedCallback(){if(this.noShadowDom="",super.connectedCallback(),this.hasAttribute("data-path")&&(this.statePath=this.getAttribute("data-path")),this.statePath){this.statePublisher=this.publisher;const r=this.statePath.split(".");for(const t of r)this.statePublisher=this.statePublisher[t];this.statePublisher.onAssign(this.onAssign)}}disconnectedCallback(){var r;this.statePath&&((r=this.statePublisher)==null||r.offAssign(this.onAssign)),super.disconnectedCallback()}render(){const r=[];let t=this.state;(!Array.isArray(t)&&J.isObject(t)||t===void 0)&&(t="");for(const s of this.templatePartsList){let i=s.getAttribute(this.templateValueAttribute),e=t;if(this.inverted&&(e=i,i=t),i==""&&(i=this.inverted?".*?":"^$"),new RegExp(i).test(e))r.push(s),s.removeAttribute("mode");else{const n=new he(i);n.names.length>0&&n.match(e)&&(s.setAttribute("mode","patternMatching"),r.push(s))}}return g`${fs(r,(s,i)=>i+new Date().getTime(),s=>{var i;if(s.title&&(document.title=s.title),s.hasAttribute("dataProviderExpression")){const e=s.getAttribute("dataProviderExpression");let o="",n=t,a=s.getAttribute(this.templateValueAttribute);if(this.inverted&&(n=a,a=t),a==""&&(a=this.inverted?"*":"^$"),s.getAttribute("mode")=="patternMatching"){const c=new he(a);o=new he(e).stringify(c.match(n))}else{const c=new RegExp(a),h=(n+"").match(c);h&&(o=(i=h.shift())==null?void 0:i.replace(c,e))}return g`<div
1157
1157
  style="display:contents"
1158
1158
  dataProvider="${o}"
1159
1159
  >
1160
1160
  ${Ot(s)}
1161
- </div>`}return Ot(s)})}`}};ei([l()],xs.prototype,"state",2),ei([l({type:Boolean,reflect:!0})],xs.prototype,"inverted",2),xs=ei([w(ta)],xs);var ea=Object.defineProperty,sa=Object.getOwnPropertyDescriptor,ia=(r,t,s,i)=>{for(var e=i>1?void 0:i?sa(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ea(t,s,e),e};const ra="sonic-scope";let gr=class extends v{createRenderRoot(){return this}render(){return g`<slot></slot>`}};gr=ia([w(ra)],gr);var oa=Object.defineProperty,na=Object.getOwnPropertyDescriptor,mr=(r,t,s,i)=>{for(var e=i>1?void 0:i?na(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&oa(t,s,e),e};const aa="sonic-example";let si=class extends G(v){constructor(){super(...arguments),this.text="Example"}render(){return g`<div>${this.text}</div>`}};mr([l()],si.prototype,"text",2),si=mr([w(aa)],si);const la={checkbox:{tagName:"sonic-checkbox"},date:{tagName:"sonic-input",attributes:{type:"date"}},fieldset:{tagName:"sonic-fieldset",nodes:[{libraryKey:"formLayout"}],contentElementSelector:"sonic-form-layout"},managed_file:{tagName:"sonic-input",attributes:{variant:"ghost",type:"file"}},password:{tagName:"sonic-input",attributes:{type:"password"}},radio:{tagName:"sonic-radio"},select:{tagName:"sonic-select"},textarea:{tagName:"sonic-textarea"},textfield:{tagName:"sonic-input",attributes:{type:"text"}},hidden:{tagName:"sonic-input",attributes:{type:"hidden"}},button:{tagName:"sonic-button"},form:{tagName:"sonic-submit",attributes:{onEnterKey:!0}},submit:{tagName:"sonic-submit",attributes:{onClick:!0},contentElementSelector:"sonic-button",nodes:[{libraryKey:"button",attributes:{type:"success"},nodes:[{tagName:"sonic-icon",attributes:{name:"check",slot:"prefix"}}]}]},email:{tagName:"sonic-input",attributes:{type:"email"}},formItemContainer:{tagName:"div",attributes:{class:"form-item-container"}},formLayout:{tagName:"sonic-form-layout"},formActions:{tagName:"sonic-form-actions"},passwordHelper:{tagName:"sonic-password-helper"},sameValueHelper:{tagName:"sonic-same-value-helper"},divider:{tagName:"sonic-divider"}};class ca{async transform(t,s){if(this.sduiDescriptor=t,this.sduiDescriptor.library)for(const i in s.library)this.sduiDescriptor.library[i]=s.library[i];for(const i of s.transforms)this.transformAction(i)}transformAction(t){const s=this.getNodesMatchingPatterns(t.patterns,this.sduiDescriptor);this[t.action](t,s)}getNodesMatchingPatterns(t,s){if(!t)return[];if(!s)return[];const i=s.nodes;if(!i)return[];let e=[],o=0;for(const n of t)for(const a of i)this.nodeMatchesPattern(n,a)&&e.push({parent:s,child:a,index:o}),e=e.concat(this.getNodesMatchingPatterns([n],a)),o++;return e}stringMatchesExpression(t,s){return!s||t&&t.match(s)}nodeMatchesPattern(t,s){const i=t,e=s,o=["libraryKey","innerHTML","prefix","suffix","markup"];for(const c of o)if(!this.stringMatchesExpression(e[c],i[c]))return!1;const n=t.attributes,a=s.attributes;if(n&&!a)return!1;if(n){for(const c in n)if(!a||!this.stringMatchesExpression(a[c],n[c]))return!1}return!0}unwrap(t,s){var i,e;for(const o of s)(i=o.parent.nodes)==null||i.splice(o.parent.nodes.indexOf(o.child),1),o.child.nodes&&((e=o.parent.nodes)==null||e.splice(o.parent.nodes.indexOf(o.child),0,...o.child.nodes))}wrap(t,s){var n,a,c,h,d,f;const i={...t.ui};i.nodes||(i.nodes=[]);let e=0;for(const m of s)(n=i.nodes)==null||n.push(m.child),e>0&&((a=m.parent.nodes)==null||a.splice(m.parent.nodes.indexOf(m.child),1)),e++;const o=(h=(c=s[0])==null?void 0:c.parent.nodes)==null?void 0:h.indexOf(s[0].child);o&&((d=s[0].parent.nodes)==null||d.splice(o,1),(f=s[0].parent.nodes)==null||f.splice(o,0,i))}move(t,s){var i,e;for(const o of s){(i=o.parent.nodes)==null||i.splice(o.parent.nodes.indexOf(o.child),1);let n=[];t.after&&(n=this.getNodesMatchingPatterns([t.after],this.sduiDescriptor)),t.before&&(n=this.getNodesMatchingPatterns([t.before],this.sduiDescriptor));const a=n[0];a&&((e=a.parent.nodes)==null||e.splice(a.parent.nodes.indexOf(a.child)+(t.after?1:0),0,o.child))}}remap(t,s){var i,e,o;for(const n of s){const a={...t.ui};a.attributes||(a.attributes={});const c=n.child.attributes;if(c)for(const _ in c)Object.prototype.hasOwnProperty.call(a.attributes,"key")||(a.attributes[_]=c[_]);const h=["libraryKey","innerHTML","prefix","suffix","markup"],d=n.child,f=a;for(const _ of h)!Object.prototype.hasOwnProperty.call(a,_)&&d[_]&&(f[_]=d[_]);a.nodes||(a.nodes=[]);const m=n.child.nodes;if(m)for(const _ of m)a.nodes.push(_);const b=((i=n.parent.nodes)==null?void 0:i.indexOf(n.child))||-1;b!=-1&&((e=n.parent.nodes)==null||e.splice(b,1),(o=n.parent.nodes)==null||o.splice(b,0,a))}}delete(t,s){var i;for(const e of s)(i=e.parent.nodes)==null||i.splice(e.parent.nodes.indexOf(e.child),1)}insert(t,s){var o;const i=t.after?"after":t.before?"before":"in";s=[],t.after?s=this.getNodesMatchingPatterns([t.after],this.sduiDescriptor):t.before?s=this.getNodesMatchingPatterns([t.before],this.sduiDescriptor):t.in&&(s=this.getNodesMatchingPatterns([t.in],this.sduiDescriptor));const e=s[0];e&&(i=="in"?(e.child.nodes||(e.child.nodes=[]),e.child.nodes.push({...t.ui})):(o=e.parent.nodes)==null||o.splice(e.parent.nodes.indexOf(e.child)+(i=="after"?1:0),0,{...t.ui}))}}var ha=Object.defineProperty,da=Object.getOwnPropertyDescriptor,ii=(r,t,s,i)=>{for(var e=i>1?void 0:i?da(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ha(t,s,e),e};const pa="sonic-sdui";let Ps=class extends lr(Ht(v)){constructor(){super(...arguments),this.sduiDescriptor={}}connectedCallback(){this.noShadowDom="",this.displayContents=!0,this.isFetchEnabled=this.hasAttribute("fetch"),super.connectedCallback()}willUpdate(r){this.props==null&&(this.sduiDescriptor={});{const t=this.sduiKey?this.props[this.sduiKey]:this.props;if(this.sduiDescriptor==t)return;this.sduiDescriptor=t,this.updateContents()}super.willUpdate(r)}async updateContents(){if(!this.sduiDescriptor)return;const r={};Object.assign(r,la,this.sduiDescriptor.library),this.sduiDescriptor.library=r,this.loadAssets(),await this.loadLibrary(),await this.transformSDUIDescriptor(),this.parseRootNodes()}removeChildren(){for(;[...this.children].filter(r=>r.nodeName!="SLOT").length>0;)this.removeChild(this.children[0])}loadAssets(){if(this.sduiDescriptor){if(this.sduiDescriptor.js)for(const r of this.sduiDescriptor.js)We.loadJS(r);if(this.sduiDescriptor.css)for(const r of this.sduiDescriptor.css)We.loadCSS(r)}}async transformSDUIDescriptor(){if(!this.hasAttribute("transformation"))return;const t=await(await fetch(this.getAttribute("transformation"))).json();await new ca().transform(this.sduiDescriptor,t)}async loadLibrary(){if(!this.hasAttribute("library"))return;const t=await(await fetch(this.getAttribute("library"))).json();this.sduiDescriptor.library=t}parseRootNodes(){if(this.removeChildren(),!this.sduiDescriptor)return;let r=this.sduiDescriptor.nodes;r||(r=[]);const t={tagName:"sonic-toast-message-subscriber",attributes:{}};this.messagesKey&&(t.attributes={subDataProvider:this.messagesKey}),r.push(t),r.forEach(s=>this.appendChild(this.parseChild(s)))}parseChild(r){const t=r.tagName||"div";let{element:s,contentElement:i}=this.handleLibrary(r,t);return this.handleAttributes(r,s),s=this.handleMarkup(r,s),i||(i=s),this.handleChildNodes(r,i,s),this.handleInnerHTML(r,i),r.prefix||r.suffix?this.handlePrefixSuffix(r,s):s}handlePrefixSuffix(r,t){const s=document.createElement("div");return s.innerHTML=(r.prefix||"")+t.outerHTML+(r.suffix||""),s.style.display="contents",s}handleChildNodes(r,t,s){if(r.nodes){const i=r.nodes;for(const e of i){const o=this.parseChild(e);let n=t;e.parentElementSelector&&(n=s.querySelector(e.parentElementSelector)||t),n.shadowRoot?n.shadowRoot.appendChild(o):n.tagName.toLocaleLowerCase()=="template"?n.content.appendChild(o):n.appendChild(o)}}}handleLibrary(r,t){let s,i;if(r.libraryKey&&this.sduiDescriptor.library){s=this.parseChild(this.sduiDescriptor.library[r.libraryKey]||{tagName:"div"});const e=(this.sduiDescriptor.library[r.libraryKey]||{}).contentElementSelector;e&&(i=s.querySelector(e))}else s=document.createElement(t);return{element:s,contentElement:i}}handleAttributes(r,t){const s=r.attributes;for(const i in s){const e=s[i],o=Ke.isObject(e)?JSON.stringify(e):e;t.setAttribute(i,o)}}handleMarkup(r,t){return r.markup&&(t=document.createElement("div"),t.style.display="contents",t.innerHTML=r.markup),t}handleInnerHTML(r,t){var s;if(r.innerHTML)if(r.innerHTML.indexOf("wording_")!=-1){const i=this.getAncestorAttributeValue("wordingProvider");(s=this.api)==null||s.post(i,{labels:[r.innerHTML.substring(8)]}).then(e=>{t&&(t.innerHTML+=e)})}else t&&(t.innerHTML+=r.innerHTML)}};ii([l()],Ps.prototype,"sduiKey",2),ii([l()],Ps.prototype,"messagesKey",2),Ps=ii([w(pa)],Ps);var ua=Object.defineProperty,fa=Object.getOwnPropertyDescriptor,br=(r,t,s,i)=>{for(var e=i>1?void 0:i?fa(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ua(t,s,e),e};let $s=class extends Ht(v){constructor(){super(...arguments),this._composition={},this.listeners=[]}get composition(){return this._composition}set composition(r){this._composition=r,this.updateComposition()}connectedCallback(){super.connectedCallback(),this.updateComposition()}disconnectedCallback(){this.removePublisherListeners(),super.disconnectedCallback()}updateComposition(){this.removePublisherListeners(),this.publisher&&(this.publisher.set({}),this.parseComposition(this.composition,this.publisher))}removePublisherListeners(){const r=this.listeners;this.listeners=[],r.forEach(t=>{this.publisher.offAssign(t.subscriber)})}parseComposition(r,t){if(r)for(const s in r){const i=r[s];if(typeof i=="string"){const e=i.split("."),o=e.shift();if(!o)continue;let n=tt.get(o);n=Ke.traverse(n,e);const a={publisher:n,subscriber:c=>{t[s]=c}};this.listeners.push(a),n.onAssign(a.subscriber),t._proxies_.set(s,n)}else{this.publisher[s]={};const e=new Ls({},t);t._proxies_.set(s,e);const o={publisher:e,subscriber:n=>{t[s]=n}};this.listeners.push(o),e.onAssign(o.subscriber),this.parseComposition(i,e)}}}render(){return g`<slot></slot>`}};$s.styles=[P`
1161
+ </div>`}return Ot(s)})}`}};ii([l()],xs.prototype,"state",2),ii([l({type:Boolean,reflect:!0})],xs.prototype,"inverted",2),xs=ii([w(sa)],xs);var ia=Object.defineProperty,ra=Object.getOwnPropertyDescriptor,oa=(r,t,s,i)=>{for(var e=i>1?void 0:i?ra(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ia(t,s,e),e};const na="sonic-scope";let br=class extends v{createRenderRoot(){return this}render(){return g`<slot></slot>`}};br=oa([w(na)],br);var aa=Object.defineProperty,la=Object.getOwnPropertyDescriptor,vr=(r,t,s,i)=>{for(var e=i>1?void 0:i?la(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&aa(t,s,e),e};const ca="sonic-example";let ri=class extends G(v){constructor(){super(...arguments),this.text="Example"}render(){return g`<div>${this.text}</div>`}};vr([l()],ri.prototype,"text",2),ri=vr([w(ca)],ri);const ha={checkbox:{tagName:"sonic-checkbox"},date:{tagName:"sonic-input",attributes:{type:"date"}},fieldset:{tagName:"sonic-fieldset",nodes:[{libraryKey:"formLayout"}],contentElementSelector:"sonic-form-layout"},managed_file:{tagName:"sonic-input",attributes:{variant:"ghost",type:"file"}},password:{tagName:"sonic-input",attributes:{type:"password"}},radio:{tagName:"sonic-radio"},select:{tagName:"sonic-select"},textarea:{tagName:"sonic-textarea"},textfield:{tagName:"sonic-input",attributes:{type:"text"}},hidden:{tagName:"sonic-input",attributes:{type:"hidden"}},button:{tagName:"sonic-button"},form:{tagName:"sonic-submit",attributes:{onEnterKey:!0}},submit:{tagName:"sonic-submit",attributes:{onClick:!0},contentElementSelector:"sonic-button",nodes:[{libraryKey:"button",attributes:{type:"success"},nodes:[{tagName:"sonic-icon",attributes:{name:"check",slot:"prefix"}}]}]},email:{tagName:"sonic-input",attributes:{type:"email"}},formItemContainer:{tagName:"div",attributes:{class:"form-item-container"}},formLayout:{tagName:"sonic-form-layout"},formActions:{tagName:"sonic-form-actions"},passwordHelper:{tagName:"sonic-password-helper"},sameValueHelper:{tagName:"sonic-same-value-helper"},divider:{tagName:"sonic-divider"}};class da{async transform(t,s){if(this.sduiDescriptor=t,this.sduiDescriptor.library)for(const i in s.library)this.sduiDescriptor.library[i]=s.library[i];for(const i of s.transforms)this.transformAction(i)}transformAction(t){const s=this.getNodesMatchingPatterns(t.patterns,this.sduiDescriptor);this[t.action](t,s)}getNodesMatchingPatterns(t,s){if(!t)return[];if(!s)return[];const i=s.nodes;if(!i)return[];let e=[],o=0;for(const n of t)for(const a of i)this.nodeMatchesPattern(n,a)&&e.push({parent:s,child:a,index:o}),e=e.concat(this.getNodesMatchingPatterns([n],a)),o++;return e}stringMatchesExpression(t,s){return!s||t&&t.match(s)}nodeMatchesPattern(t,s){const i=t,e=s,o=["libraryKey","innerHTML","prefix","suffix","markup"];for(const c of o)if(!this.stringMatchesExpression(e[c],i[c]))return!1;const n=t.attributes,a=s.attributes;if(n&&!a)return!1;if(n){for(const c in n)if(!a||!this.stringMatchesExpression(a[c],n[c]))return!1}return!0}unwrap(t,s){var i,e;for(const o of s)(i=o.parent.nodes)==null||i.splice(o.parent.nodes.indexOf(o.child),1),o.child.nodes&&((e=o.parent.nodes)==null||e.splice(o.parent.nodes.indexOf(o.child),0,...o.child.nodes))}wrap(t,s){var n,a,c,h,d,f;const i={...t.ui};i.nodes||(i.nodes=[]);let e=0;for(const m of s)(n=i.nodes)==null||n.push(m.child),e>0&&((a=m.parent.nodes)==null||a.splice(m.parent.nodes.indexOf(m.child),1)),e++;const o=(h=(c=s[0])==null?void 0:c.parent.nodes)==null?void 0:h.indexOf(s[0].child);o&&((d=s[0].parent.nodes)==null||d.splice(o,1),(f=s[0].parent.nodes)==null||f.splice(o,0,i))}move(t,s){var i,e;for(const o of s){(i=o.parent.nodes)==null||i.splice(o.parent.nodes.indexOf(o.child),1);let n=[];t.after&&(n=this.getNodesMatchingPatterns([t.after],this.sduiDescriptor)),t.before&&(n=this.getNodesMatchingPatterns([t.before],this.sduiDescriptor));const a=n[0];a&&((e=a.parent.nodes)==null||e.splice(a.parent.nodes.indexOf(a.child)+(t.after?1:0),0,o.child))}}remap(t,s){var i,e,o;for(const n of s){const a={...t.ui};a.attributes||(a.attributes={});const c=n.child.attributes;if(c)for(const _ in c)Object.prototype.hasOwnProperty.call(a.attributes,"key")||(a.attributes[_]=c[_]);const h=["libraryKey","innerHTML","prefix","suffix","markup"],d=n.child,f=a;for(const _ of h)!Object.prototype.hasOwnProperty.call(a,_)&&d[_]&&(f[_]=d[_]);a.nodes||(a.nodes=[]);const m=n.child.nodes;if(m)for(const _ of m)a.nodes.push(_);const b=((i=n.parent.nodes)==null?void 0:i.indexOf(n.child))||-1;b!=-1&&((e=n.parent.nodes)==null||e.splice(b,1),(o=n.parent.nodes)==null||o.splice(b,0,a))}}delete(t,s){var i;for(const e of s)(i=e.parent.nodes)==null||i.splice(e.parent.nodes.indexOf(e.child),1)}insert(t,s){var o;const i=t.after?"after":t.before?"before":"in";s=[],t.after?s=this.getNodesMatchingPatterns([t.after],this.sduiDescriptor):t.before?s=this.getNodesMatchingPatterns([t.before],this.sduiDescriptor):t.in&&(s=this.getNodesMatchingPatterns([t.in],this.sduiDescriptor));const e=s[0];e&&(i=="in"?(e.child.nodes||(e.child.nodes=[]),e.child.nodes.push({...t.ui})):(o=e.parent.nodes)==null||o.splice(e.parent.nodes.indexOf(e.child)+(i=="after"?1:0),0,{...t.ui}))}}var pa=Object.defineProperty,ua=Object.getOwnPropertyDescriptor,oi=(r,t,s,i)=>{for(var e=i>1?void 0:i?ua(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&pa(t,s,e),e};const fa="sonic-sdui";let Ps=class extends hr(Ht(v)){constructor(){super(...arguments),this.sduiDescriptor={}}connectedCallback(){this.noShadowDom="",this.displayContents=!0,this.isFetchEnabled=this.hasAttribute("fetch"),super.connectedCallback()}willUpdate(r){this.props==null&&(this.sduiDescriptor={});{const t=this.sduiKey?this.props[this.sduiKey]:this.props;if(this.sduiDescriptor==t)return;this.sduiDescriptor=t,this.updateContents()}super.willUpdate(r)}async updateContents(){if(!this.sduiDescriptor)return;const r={};Object.assign(r,ha,this.sduiDescriptor.library),this.sduiDescriptor.library=r,this.loadAssets(),await this.loadLibrary(),await this.transformSDUIDescriptor(),this.parseRootNodes()}removeChildren(){for(;[...this.children].filter(r=>r.nodeName!="SLOT").length>0;)this.removeChild(this.children[0])}loadAssets(){if(this.sduiDescriptor){if(this.sduiDescriptor.js)for(const r of this.sduiDescriptor.js)qe.loadJS(r);if(this.sduiDescriptor.css)for(const r of this.sduiDescriptor.css)qe.loadCSS(r)}}async transformSDUIDescriptor(){if(!this.hasAttribute("transformation"))return;const t=await(await fetch(this.getAttribute("transformation"))).json();await new da().transform(this.sduiDescriptor,t)}async loadLibrary(){if(!this.hasAttribute("library"))return;const t=await(await fetch(this.getAttribute("library"))).json();this.sduiDescriptor.library=t}parseRootNodes(){if(this.removeChildren(),!this.sduiDescriptor)return;let r=this.sduiDescriptor.nodes;r||(r=[]);const t={tagName:"sonic-toast-message-subscriber",attributes:{}};this.messagesKey&&(t.attributes={subDataProvider:this.messagesKey}),r.push(t),r.forEach(s=>this.appendChild(this.parseChild(s)))}parseChild(r){const t=r.tagName||"div";let{element:s,contentElement:i}=this.handleLibrary(r,t);return this.handleAttributes(r,s),s=this.handleMarkup(r,s),i||(i=s),this.handleChildNodes(r,i,s),this.handleInnerHTML(r,i),r.prefix||r.suffix?this.handlePrefixSuffix(r,s):s}handlePrefixSuffix(r,t){const s=document.createElement("div");return s.innerHTML=(r.prefix||"")+t.outerHTML+(r.suffix||""),s.style.display="contents",s}handleChildNodes(r,t,s){if(r.nodes){const i=r.nodes;for(const e of i){const o=this.parseChild(e);let n=t;e.parentElementSelector&&(n=s.querySelector(e.parentElementSelector)||t),n.shadowRoot?n.shadowRoot.appendChild(o):n.tagName.toLocaleLowerCase()=="template"?n.content.appendChild(o):n.appendChild(o)}}}handleLibrary(r,t){let s,i;if(r.libraryKey&&this.sduiDescriptor.library){s=this.parseChild(this.sduiDescriptor.library[r.libraryKey]||{tagName:"div"});const e=(this.sduiDescriptor.library[r.libraryKey]||{}).contentElementSelector;e&&(i=s.querySelector(e))}else s=document.createElement(t);return{element:s,contentElement:i}}handleAttributes(r,t){const s=r.attributes;for(const i in s){const e=s[i],o=We.isObject(e)?JSON.stringify(e):e;t.setAttribute(i,o)}}handleMarkup(r,t){return r.markup&&(t=document.createElement("div"),t.style.display="contents",t.innerHTML=r.markup),t}handleInnerHTML(r,t){var s;if(r.innerHTML)if(r.innerHTML.indexOf("wording_")!=-1){const i=this.getAncestorAttributeValue("wordingProvider");(s=this.api)==null||s.post(i,{labels:[r.innerHTML.substring(8)]}).then(e=>{t&&(t.innerHTML+=e)})}else t&&(t.innerHTML+=r.innerHTML)}};oi([l()],Ps.prototype,"sduiKey",2),oi([l()],Ps.prototype,"messagesKey",2),Ps=oi([w(fa)],Ps);var ga=Object.defineProperty,ma=Object.getOwnPropertyDescriptor,yr=(r,t,s,i)=>{for(var e=i>1?void 0:i?ma(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ga(t,s,e),e};let $s=class extends Ht(v){constructor(){super(...arguments),this._composition={},this.listeners=[]}get composition(){return this._composition}set composition(r){this._composition=r,this.updateComposition()}connectedCallback(){super.connectedCallback(),this.updateComposition()}disconnectedCallback(){this.removePublisherListeners(),super.disconnectedCallback()}updateComposition(){this.removePublisherListeners(),this.publisher&&(this.publisher.set({}),this.parseComposition(this.composition,this.publisher))}removePublisherListeners(){const r=this.listeners;this.listeners=[],r.forEach(t=>{this.publisher.offAssign(t.subscriber)})}parseComposition(r,t){if(r)for(const s in r){const i=r[s];if(typeof i=="string"){const e=i.split("."),o=e.shift();if(!o)continue;let n=tt.get(o);n=We.traverse(n,e);const a={publisher:n,subscriber:c=>{t[s]=c}};this.listeners.push(a),n.onAssign(a.subscriber),t._proxies_.set(s,n)}else{this.publisher[s]={};const e=new Es({},t);t._proxies_.set(s,e);const o={publisher:e,subscriber:n=>{t[s]=n}};this.listeners.push(o),e.onAssign(o.subscriber),this.parseComposition(i,e)}}}render(){return g`<slot></slot>`}};$s.styles=[P`
1162
1162
  :host {
1163
1163
  display: contents;
1164
1164
  }
1165
- `],br([l({type:Object})],$s.prototype,"composition",1),$s=br([w("sonic-mix")],$s);var ga=Object.defineProperty,ma=Object.getOwnPropertyDescriptor,ba=(r,t,s,i)=>{for(var e=i>1?void 0:i?ma(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ga(t,s,e),e};const va="sonic-value";let vr=class extends Ht(v){connectedCallback(){this.setAttribute("subDataProvider",this.getAttribute("key")),super.connectedCallback()}render(){return typeof this.props=="object"||this.props===void 0?g`<slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>`:g`${I(this.props.toString())}<slot name="prefix"></slot><slot></slot
1166
- ><slot name="suffix"></slot>`}};vr=ba([w(va)],vr);var ya=Object.defineProperty,wa=Object.getOwnPropertyDescriptor,Qe=(r,t,s,i)=>{for(var e=i>1?void 0:i?wa(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ya(t,s,e),e};const _a="sonic-badge";let fe=class extends v{constructor(){super(...arguments),this.type="default",this.variant="default",this.ellipsis=!1}render(){return g`
1165
+ `],yr([l({type:Object})],$s.prototype,"composition",1),$s=yr([w("sonic-mix")],$s);var ba=Object.defineProperty,va=Object.getOwnPropertyDescriptor,ya=(r,t,s,i)=>{for(var e=i>1?void 0:i?va(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ba(t,s,e),e};const wa="sonic-value";let wr=class extends Ht(v){connectedCallback(){this.setAttribute("subDataProvider",this.getAttribute("key")),super.connectedCallback()}render(){return typeof this.props=="object"||this.props===void 0?g`<slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>`:g`${I(this.props.toString())}<slot name="prefix"></slot><slot></slot
1166
+ ><slot name="suffix"></slot>`}};wr=ya([w(wa)],wr);var _a=Object.defineProperty,xa=Object.getOwnPropertyDescriptor,Qe=(r,t,s,i)=>{for(var e=i>1?void 0:i?xa(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&_a(t,s,e),e};const Pa="sonic-badge";let fe=class extends v{constructor(){super(...arguments),this.type="default",this.variant="default",this.ellipsis=!1}render(){return g`
1167
1167
  <slot name="prefix"></slot>
1168
1168
  <slot></slot>
1169
1169
  <slot name="suffix"></slot>
@@ -1313,7 +1313,7 @@
1313
1313
  slot[name="prefix"] {
1314
1314
  flex-shrink: 0;
1315
1315
  }
1316
- `],Qe([l({type:String,reflect:!0})],fe.prototype,"type",2),Qe([l({type:String,reflect:!0})],fe.prototype,"variant",2),Qe([l({type:String,reflect:!0})],fe.prototype,"size",2),Qe([l({type:Boolean,reflect:!0})],fe.prototype,"ellipsis",2),fe=Qe([w(_a)],fe);class xa{static fixBlankLink(t){const i=typeof require>"u"||typeof process!="object"?null:require("electron");t.target=="_blank"&&t.addEventListener("click",()=>{i==null||i.shell.openExternal(t.href)})}}var Pa=Object.defineProperty,$a=Object.getOwnPropertyDescriptor,De=(r,t,s,i)=>{for(var e=i>1?void 0:i?$a(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Pa(t,s,e),e};const Ca="sonic-link";let Kt=class extends v{constructor(){super(...arguments),this.href="",this._location="",this.ariaLabel=null,this.autoActive="partial",this._target=null,this.pushState=null}get location(){return this._location}set location(r){this._location=r,it.updateComponentActiveState(this)}connectedCallback(){this.href&&this.href.indexOf("http")!=0&&(it.onChange(this),this.location=document.location.href.replace(document.location.origin,"")),this.addEventListener("keypress",r=>{var t,s;r.key==="Enter"&&((s=(t=this.shadowRoot)==null?void 0:t.querySelector("a"))==null||s.click())}),this.setFocusable(),super.connectedCallback()}setFocusable(){this.href?this.setAttribute("tabIndex","0"):this.removeAttribute("tabIndex")}disconnectedCallback(){it.offChange(this),super.disconnectedCallback()}set target(r){this._target=r,xa.fixBlankLink(this),this.requestUpdate()}get target(){return this._target}handlePushState(r){r.preventDefault(),it.changeFromComponent(this)}updated(r){r.has("href")&&this.setFocusable()}render(){return this.href?g`
1316
+ `],Qe([l({type:String,reflect:!0})],fe.prototype,"type",2),Qe([l({type:String,reflect:!0})],fe.prototype,"variant",2),Qe([l({type:String,reflect:!0})],fe.prototype,"size",2),Qe([l({type:Boolean,reflect:!0})],fe.prototype,"ellipsis",2),fe=Qe([w(Pa)],fe);class $a{static fixBlankLink(t){const i=typeof require>"u"||typeof process!="object"?null:require("electron");t.target=="_blank"&&t.addEventListener("click",()=>{i==null||i.shell.openExternal(t.href)})}}var Ca=Object.defineProperty,Aa=Object.getOwnPropertyDescriptor,De=(r,t,s,i)=>{for(var e=i>1?void 0:i?Aa(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ca(t,s,e),e};const Sa="sonic-link";let Kt=class extends v{constructor(){super(...arguments),this.href="",this._location="",this.ariaLabel=null,this.autoActive="partial",this._target=null,this.pushState=null}get location(){return this._location}set location(r){this._location=r,it.updateComponentActiveState(this)}connectedCallback(){this.href&&this.href.indexOf("http")!=0&&(it.onChange(this),this.location=document.location.href.replace(document.location.origin,"")),this.addEventListener("keypress",r=>{var t,s;r.key==="Enter"&&((s=(t=this.shadowRoot)==null?void 0:t.querySelector("a"))==null||s.click())}),this.setFocusable(),super.connectedCallback()}setFocusable(){this.href?this.setAttribute("tabIndex","0"):this.removeAttribute("tabIndex")}disconnectedCallback(){it.offChange(this),super.disconnectedCallback()}set target(r){this._target=r,$a.fixBlankLink(this),this.requestUpdate()}get target(){return this._target}handlePushState(r){r.preventDefault(),it.changeFromComponent(this)}updated(r){r.has("href")&&this.setFocusable()}render(){return this.href?g`
1317
1317
  <a
1318
1318
  href="${this.href}"
1319
1319
  aria-label=${this.ariaLabel||$}
@@ -1328,7 +1328,7 @@
1328
1328
  text-decoration: none;
1329
1329
  display: contents;
1330
1330
  }
1331
- `],De([l({type:String})],Kt.prototype,"href",2),De([l({type:String,attribute:"data-aria-label"})],Kt.prototype,"ariaLabel",2),De([l({type:String})],Kt.prototype,"autoActive",2),De([l({type:String})],Kt.prototype,"target",1),De([l({type:Boolean})],Kt.prototype,"pushState",2),Kt=De([w(Ca)],Kt);var Aa=Object.defineProperty,Sa=Object.getOwnPropertyDescriptor,ke=(r,t,s,i)=>{for(var e=i>1?void 0:i?Sa(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Aa(t,s,e),e};const Oa="sonic-progress";let Zt=class extends v{constructor(){super(...arguments),this.max=100,this.invert=!1,this.type="default",this.size="md"}render(){return g`
1331
+ `],De([l({type:String})],Kt.prototype,"href",2),De([l({type:String,attribute:"data-aria-label"})],Kt.prototype,"ariaLabel",2),De([l({type:String})],Kt.prototype,"autoActive",2),De([l({type:String})],Kt.prototype,"target",1),De([l({type:Boolean})],Kt.prototype,"pushState",2),Kt=De([w(Sa)],Kt);var Oa=Object.defineProperty,Da=Object.getOwnPropertyDescriptor,ke=(r,t,s,i)=>{for(var e=i>1?void 0:i?Da(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Oa(t,s,e),e};const ka="sonic-progress";let Zt=class extends v{constructor(){super(...arguments),this.max=100,this.invert=!1,this.type="default",this.size="md"}render(){return g`
1332
1332
  <progress value=${x(this.value)} max=${this.max}></progress>
1333
1333
  <div class="slot-container">
1334
1334
  <slot></slot>
@@ -1437,7 +1437,7 @@
1437
1437
  gap: 0.5em;
1438
1438
  margin-top: 0.15em;
1439
1439
  }
1440
- `],ke([l({type:Number})],Zt.prototype,"value",2),ke([l({type:Number})],Zt.prototype,"max",2),ke([l({type:Boolean})],Zt.prototype,"invert",2),ke([l({type:String,reflect:!0})],Zt.prototype,"type",2),ke([l({type:String,reflect:!0})],Zt.prototype,"size",2),Zt=ke([w(Oa)],Zt);const Da=P`
1440
+ `],ke([l({type:Number})],Zt.prototype,"value",2),ke([l({type:Number})],Zt.prototype,"max",2),ke([l({type:Boolean})],Zt.prototype,"invert",2),ke([l({type:String,reflect:!0})],Zt.prototype,"type",2),ke([l({type:String,reflect:!0})],Zt.prototype,"size",2),Zt=ke([w(ka)],Zt);const La=P`
1441
1441
  .password-toggle {
1442
1442
  color: var(--sc-input-c);
1443
1443
  font-size: var(--sc-input-fs);
@@ -1469,7 +1469,7 @@
1469
1469
  margin-top: 0.2em;
1470
1470
  display: block;
1471
1471
  }
1472
- `,ri=P`
1472
+ `,ni=P`
1473
1473
  * {
1474
1474
  box-sizing: border-box;
1475
1475
  }
@@ -1815,7 +1815,7 @@
1815
1815
  * @license
1816
1816
  * Copyright 2018 Google LLC
1817
1817
  * SPDX-License-Identifier: BSD-3-Clause
1818
- */const oi=ce(class extends $e{constructor(r){var t;if(super(r),r.type!==le.ATTRIBUTE||r.name!=="class"||((t=r.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(t=>r[t]).join(" ")+" "}update(r,[t]){var i,e;if(this.st===void 0){this.st=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(const o in t)t[o]&&!((i=this.nt)!=null&&i.has(o))&&this.st.add(o);return this.render(t)}const s=r.element.classList;for(const o of this.st)o in t||(s.remove(o),this.st.delete(o));for(const o in t){const n=!!t[o];n===this.st.has(o)||(e=this.nt)!=null&&e.has(o)||(n?(s.add(o),this.st.add(o)):(s.remove(o),this.st.delete(o)))}return ft}});var ka=Object.defineProperty,La=Object.getOwnPropertyDescriptor,V=(r,t,s,i)=>{for(var e=i>1?void 0:i?La(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ka(t,s,e),e};const Ea="sonic-input";let R=class extends vs(Ae(G(v))){constructor(){super(...arguments),this.readonly=!1,this.inlineContent=!1,this.disableInlineContentFocus=!1,this.showPasswordToggle=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1,this.isPassword=!1}connectedCallback(){if(super.connectedCallback(),this.hasSlotOrProps(),this.hasAttribute("sameValueAs")){this.sameValueAsName=this.getAttribute("sameValueAs"),this.sameValueAsHandle=t=>this.pattern=this.escapeRegExp(t);const r=this.getFormPublisher();if(!r)return;r[this.sameValueAsName].onAssign(this.sameValueAsHandle)}this.type=="password"&&(this.isPassword=!0,this.showPasswordToggle=!0,this.inlineContent=!0)}disconnectedCallback(){if(super.disconnectedCallback(),this.hasAttribute("sameValueAs")&&this.sameValueAsName){const r=this.getFormPublisher();if(!r)return;r[this.sameValueAsName].offAssign(this.sameValueAsHandle)}}escapeRegExp(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}setSelectionRange(r,t){this.input.setSelectionRange(r,t)}hasSlotOrProps(){var r,t,s,i;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length),this.hasSuffix=!!((s=this.slotSuffixNodes)!=null&&s.length),this.hasPrefix=!!((i=this.slotPrefixNodes)!=null&&i.length)}inlineContentFocus(){var r;!this.inlineContent||this.disableInlineContentFocus||(r=this.input)==null||r.focus()}handleChange(r){if(!this.hasAttribute("inputDelayMs")){super.handleChange(r);return}this.changeTimeoutId&&clearTimeout(this.changeTimeoutId),this.changeTimeoutId=setTimeout(()=>super.handleChange(r),parseInt(this.getAttribute("inputDelayMs")))}togglePasswordVisibility(){this.isPassword=!this.isPassword,this._type=this.isPassword?"password":"text"}render(){const r={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix,"no-suffix":!this.hasSuffix,"no-prefix":!this.hasPrefix};return g`
1818
+ */const ai=ce(class extends $e{constructor(r){var t;if(super(r),r.type!==le.ATTRIBUTE||r.name!=="class"||((t=r.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(t=>r[t]).join(" ")+" "}update(r,[t]){var i,e;if(this.st===void 0){this.st=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(const o in t)t[o]&&!((i=this.nt)!=null&&i.has(o))&&this.st.add(o);return this.render(t)}const s=r.element.classList;for(const o of this.st)o in t||(s.remove(o),this.st.delete(o));for(const o in t){const n=!!t[o];n===this.st.has(o)||(e=this.nt)!=null&&e.has(o)||(n?(s.add(o),this.st.add(o)):(s.remove(o),this.st.delete(o)))}return ft}});var Ea=Object.defineProperty,Na=Object.getOwnPropertyDescriptor,V=(r,t,s,i)=>{for(var e=i>1?void 0:i?Na(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ea(t,s,e),e};const Ta="sonic-input";let z=class extends vs(Ae(G(v))){constructor(){super(...arguments),this.readonly=!1,this.inlineContent=!1,this.disableInlineContentFocus=!1,this.showPasswordToggle=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1,this.isPassword=!1}connectedCallback(){if(super.connectedCallback(),this.hasSlotOrProps(),this.hasAttribute("sameValueAs")){this.sameValueAsName=this.getAttribute("sameValueAs"),this.sameValueAsHandle=t=>this.pattern=this.escapeRegExp(t);const r=this.getFormPublisher();if(!r)return;r[this.sameValueAsName].onAssign(this.sameValueAsHandle)}this.type=="password"&&(this.isPassword=!0,this.showPasswordToggle=!0,this.inlineContent=!0)}disconnectedCallback(){if(super.disconnectedCallback(),this.hasAttribute("sameValueAs")&&this.sameValueAsName){const r=this.getFormPublisher();if(!r)return;r[this.sameValueAsName].offAssign(this.sameValueAsHandle)}}escapeRegExp(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}setSelectionRange(r,t){this.input.setSelectionRange(r,t)}hasSlotOrProps(){var r,t,s,i;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length),this.hasSuffix=!!((s=this.slotSuffixNodes)!=null&&s.length),this.hasPrefix=!!((i=this.slotPrefixNodes)!=null&&i.length)}inlineContentFocus(){var r;!this.inlineContent||this.disableInlineContentFocus||(r=this.input)==null||r.focus()}handleChange(r){if(!this.hasAttribute("inputDelayMs")){super.handleChange(r);return}this.changeTimeoutId&&clearTimeout(this.changeTimeoutId),this.changeTimeoutId=setTimeout(()=>super.handleChange(r),parseInt(this.getAttribute("inputDelayMs")))}togglePasswordVisibility(){this.isPassword=!this.isPassword,this._type=this.isPassword?"password":"text"}render(){const r={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix,"no-suffix":!this.hasSuffix,"no-prefix":!this.hasPrefix};return g`
1819
1819
  <label for="${this.id||"form-element"}" class="${this.hasLabel?"form-label":"hidden"}"
1820
1820
  >${this.label?I(this.label):""}<slot
1821
1821
  name="label"
@@ -1823,7 +1823,7 @@
1823
1823
  ></slot
1824
1824
  ></label>
1825
1825
 
1826
- <div @click=${this.inlineContentFocus} class="form-control ${oi(r)}">
1826
+ <div @click=${this.inlineContentFocus} class="form-control ${ai(r)}">
1827
1827
  <div part="content" class="${this.inlineContent?"form-element form-element-wrapper":"contents"}">
1828
1828
  <slot name="prefix" @slotchange=${this.hasSlotOrProps}></slot>
1829
1829
  <input
@@ -1875,7 +1875,7 @@
1875
1875
  >${this.description?g`${I(this.description)}`:$}</slot>
1876
1876
  <slot name="list"></slot>
1877
1877
  </div>
1878
- `}};R.styles=[At,ri,Cs,As,Da,P`
1878
+ `}};z.styles=[At,ni,Cs,As,La,P`
1879
1879
  :host([type="hidden"]) {
1880
1880
  appearance: none !important;
1881
1881
  display: none !important;
@@ -1883,7 +1883,7 @@
1883
1883
  :host > .form-control {
1884
1884
  position: relative;
1885
1885
  }
1886
- `],V([l({type:String,reflect:!0})],R.prototype,"size",2),V([l({type:String})],R.prototype,"list",2),V([l({type:String})],R.prototype,"placeholder",2),V([l({type:String})],R.prototype,"pattern",2),V([l({type:String})],R.prototype,"min",2),V([l({type:String})],R.prototype,"max",2),V([l({type:Boolean})],R.prototype,"readonly",2),V([l({type:Number})],R.prototype,"step",2),V([l({type:Number})],R.prototype,"minlength",2),V([l({type:Number})],R.prototype,"maxlength",2),V([l({type:String})],R.prototype,"src",2),V([l({type:Boolean,reflect:!0})],R.prototype,"inlineContent",2),V([l({type:Boolean})],R.prototype,"disableInlineContentFocus",2),V([l({type:Boolean})],R.prototype,"showPasswordToggle",2),V([st({slot:"label",flatten:!0})],R.prototype,"slotLabelNodes",2),V([st({slot:"description",flatten:!0})],R.prototype,"slotDescriptionNodes",2),V([st({slot:"suffix",flatten:!0})],R.prototype,"slotSuffixNodes",2),V([st({slot:"prefix",flatten:!0})],R.prototype,"slotPrefixNodes",2),V([ee("input")],R.prototype,"input",2),V([T()],R.prototype,"hasDescription",2),V([T()],R.prototype,"hasLabel",2),V([T()],R.prototype,"hasSuffix",2),V([T()],R.prototype,"hasPrefix",2),V([T()],R.prototype,"isPassword",2),R=V([w(Ea)],R);var Na=Object.defineProperty,Ta=Object.getOwnPropertyDescriptor,Gt=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ta(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Na(t,s,e),e};const ja="sonic-pop";let nt=class extends v{constructor(){super(...arguments),this.open=!1,this.noToggle=!1,this.inline=!1,this.shadow="lg",this.placement="bottom",this.positioningRuns=!1,this.lastContentX=0,this.lastContentY=0,this.resizeObserver=new ResizeObserver(()=>this.computePosition(this.placement)),this.ancestorsHavingZIndex=new Set}runPositioningLoop(){this.positioningRuns&&(this.positioningRuns=!0,this.computePosition(this.placement),window.requestAnimationFrame(()=>this.runPositioningLoop()))}toggle(r){if(this.open&&this.noToggle)return;const t=r;r.type=="keydown"&&(t.key!="ArrowDown"||this.open)||(this.open=!this.open,this.open?this.show():this.hide())}show(){this.setMaxZindex(),this.popContent.style.removeProperty("display"),this.open=!0,this.popContent.setAttribute("tabindex","0"),this.popBtn&&this.popContent&&!this.positioningRuns&&(this.positioningRuns=!0,this.lastContentX=0,this.lastContentY=0,this.runPositioningLoop()),this.dispatchEvent(new CustomEvent("show"))}hide(){this.resetZindexes(),this.open=!1,this.popContent.setAttribute("tabindex","-1"),this.positioningRuns=!1,this.dispatchEvent(new CustomEvent("hide"))}setMaxZindex(){J.everyAncestors(this,r=>{const t=r;if(!t.className)return!0;if([...t.classList].includes("@container")){const s=t.style;s.zIndex="999999999";const i=getComputedStyle(t);return i.position!=="relative"&&i.position!=="absolute"&&(s.position="relative"),this.ancestorsHavingZIndex.add(r),!1}return!0})}resetZindexes(){this.ancestorsHavingZIndex.forEach(r=>{r.style.removeProperty("position"),r.style.removeProperty("z-index")}),this.ancestorsHavingZIndex.clear()}_handleClosePop(r){const t=r.composedPath(),s=t[0];nt.pops.forEach(i=>{const e=t.includes(i),o=t.includes(i.querySelector('[slot="content"]')),n=J.getAncestorAttributeValue(s,"data-on-select")==="keep";r.type=="pointerdown"&&e||r.type=="click"&&(e&&n||!o)||i.hide()})}connectedCallback(){super.connectedCallback(),nt.pops.size==0&&(document.addEventListener("pointerdown",this._handleClosePop),document.addEventListener("click",this._handleClosePop)),nt.pops.add(this)}firstUpdated(r){super.firstUpdated(r),this.resizeObserver.observe(this.popContent)}disconnectedCallback(){super.disconnectedCallback(),nt.pops.delete(this),nt.pops.size==0&&(document.removeEventListener("pointerdown",this._handleClosePop),document.removeEventListener("click",this._handleClosePop)),this.resizeObserver.unobserve(this.popContent)}computePosition(r){var b,_,C;let t=(b=this.popContent)==null?void 0:b.getBoundingClientRect();const s=8,i=5,e=this.getBoundingClientRect(),o=e.left,n=e.top;let a=o,c=n;const h=n-t.height-s,d=o-t.width-s,f=o+e.width+s,m=n+e.height+s;switch(r){case"bottom":c=m;break;case"top":c=h;break;case"left":a=d;break;case"right":a=f;break}this.lastContentX+=a-t.x,this.lastContentY+=c-t.y,Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),t=(_=this.popContent)==null?void 0:_.getBoundingClientRect(),t.x<i&&r=="left"&&(a=f),t.y<i&&r=="top"&&(c=m),t.x+t.width>window.innerWidth-i&&r=="right"&&(a=d),t.y+t.height>window.innerHeight-i&&r=="bottom"&&(c=h),this.lastContentX+=a-t.x,this.lastContentY+=c-t.y,Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),t=(C=this.popContent)==null?void 0:C.getBoundingClientRect(),t.x<0&&(this.lastContentX+=-t.x),t.y<0&&(this.lastContentY+=-t.y),t.x+t.width>window.innerWidth&&(this.lastContentX+=window.innerWidth-(t.x+t.width)),t.y+t.height>window.innerHeight&&(this.lastContentY+=window.innerHeight-(t.y+t.height)),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`})}render(){return g`
1886
+ `],V([l({type:String,reflect:!0})],z.prototype,"size",2),V([l({type:String})],z.prototype,"list",2),V([l({type:String})],z.prototype,"placeholder",2),V([l({type:String})],z.prototype,"pattern",2),V([l({type:String})],z.prototype,"min",2),V([l({type:String})],z.prototype,"max",2),V([l({type:Boolean})],z.prototype,"readonly",2),V([l({type:Number})],z.prototype,"step",2),V([l({type:Number})],z.prototype,"minlength",2),V([l({type:Number})],z.prototype,"maxlength",2),V([l({type:String})],z.prototype,"src",2),V([l({type:Boolean,reflect:!0})],z.prototype,"inlineContent",2),V([l({type:Boolean})],z.prototype,"disableInlineContentFocus",2),V([l({type:Boolean})],z.prototype,"showPasswordToggle",2),V([st({slot:"label",flatten:!0})],z.prototype,"slotLabelNodes",2),V([st({slot:"description",flatten:!0})],z.prototype,"slotDescriptionNodes",2),V([st({slot:"suffix",flatten:!0})],z.prototype,"slotSuffixNodes",2),V([st({slot:"prefix",flatten:!0})],z.prototype,"slotPrefixNodes",2),V([ee("input")],z.prototype,"input",2),V([j()],z.prototype,"hasDescription",2),V([j()],z.prototype,"hasLabel",2),V([j()],z.prototype,"hasSuffix",2),V([j()],z.prototype,"hasPrefix",2),V([j()],z.prototype,"isPassword",2),z=V([w(Ta)],z);var ja=Object.defineProperty,Ma=Object.getOwnPropertyDescriptor,Gt=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ma(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ja(t,s,e),e};const Ia="sonic-pop";let nt=class extends v{constructor(){super(...arguments),this.open=!1,this.noToggle=!1,this.inline=!1,this.shadow="lg",this.placement="bottom",this.positioningRuns=!1,this.lastContentX=0,this.lastContentY=0,this.resizeObserver=new ResizeObserver(()=>this.computePosition(this.placement)),this.ancestorsHavingZIndex=new Set}runPositioningLoop(){this.positioningRuns&&(this.positioningRuns=!0,this.computePosition(this.placement),window.requestAnimationFrame(()=>this.runPositioningLoop()))}toggle(r){if(this.open&&this.noToggle)return;const t=r;r.type=="keydown"&&(t.key!="ArrowDown"||this.open)||(this.open=!this.open,this.open?this.show():this.hide())}show(){this.setMaxZindex(),this.popContent.style.removeProperty("display"),this.open=!0,this.popContent.setAttribute("tabindex","0"),this.popBtn&&this.popContent&&!this.positioningRuns&&(this.positioningRuns=!0,this.lastContentX=0,this.lastContentY=0,this.runPositioningLoop()),this.dispatchEvent(new CustomEvent("show"))}hide(){this.resetZindexes(),this.open=!1,this.popContent.setAttribute("tabindex","-1"),this.positioningRuns=!1,this.dispatchEvent(new CustomEvent("hide"))}setMaxZindex(){X.everyAncestors(this,r=>{const t=r;if(!t.className)return!0;if([...t.classList].includes("@container")){const s=t.style;s.zIndex="999999999";const i=getComputedStyle(t);return i.position!=="relative"&&i.position!=="absolute"&&(s.position="relative"),this.ancestorsHavingZIndex.add(r),!1}return!0})}resetZindexes(){this.ancestorsHavingZIndex.forEach(r=>{r.style.removeProperty("position"),r.style.removeProperty("z-index")}),this.ancestorsHavingZIndex.clear()}_handleClosePop(r){const t=r.composedPath(),s=t[0];nt.pops.forEach(i=>{const e=t.includes(i),o=t.includes(i.querySelector('[slot="content"]')),n=X.getAncestorAttributeValue(s,"data-on-select")==="keep";r.type=="pointerdown"&&e||r.type=="click"&&(e&&n||!o)||i.hide()})}connectedCallback(){super.connectedCallback(),nt.pops.size==0&&(document.addEventListener("pointerdown",this._handleClosePop),document.addEventListener("click",this._handleClosePop)),nt.pops.add(this)}firstUpdated(r){super.firstUpdated(r),this.resizeObserver.observe(this.popContent)}disconnectedCallback(){super.disconnectedCallback(),nt.pops.delete(this),nt.pops.size==0&&(document.removeEventListener("pointerdown",this._handleClosePop),document.removeEventListener("click",this._handleClosePop)),this.resizeObserver.unobserve(this.popContent)}computePosition(r){var b,_,C;let t=(b=this.popContent)==null?void 0:b.getBoundingClientRect();const s=8,i=5,e=this.getBoundingClientRect(),o=e.left,n=e.top;let a=o,c=n;const h=n-t.height-s,d=o-t.width-s,f=o+e.width+s,m=n+e.height+s;switch(r){case"bottom":c=m;break;case"top":c=h;break;case"left":a=d;break;case"right":a=f;break}this.lastContentX+=a-t.x,this.lastContentY+=c-t.y,Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),t=(_=this.popContent)==null?void 0:_.getBoundingClientRect(),t.x<i&&r=="left"&&(a=f),t.y<i&&r=="top"&&(c=m),t.x+t.width>window.innerWidth-i&&r=="right"&&(a=d),t.y+t.height>window.innerHeight-i&&r=="bottom"&&(c=h),this.lastContentX+=a-t.x,this.lastContentY+=c-t.y,Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),t=(C=this.popContent)==null?void 0:C.getBoundingClientRect(),t.x<0&&(this.lastContentX+=-t.x),t.y<0&&(this.lastContentY+=-t.y),t.x+t.width>window.innerWidth&&(this.lastContentX+=window.innerWidth-(t.x+t.width)),t.y+t.height>window.innerHeight&&(this.lastContentY+=window.innerHeight-(t.y+t.height)),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`})}render(){return g`
1887
1887
  <slot @click=${this.toggle} @keydown=${this.toggle} class="contents"></slot>
1888
1888
  <slot
1889
1889
  name="content"
@@ -1943,7 +1943,7 @@
1943
1943
  :host([inline]) {
1944
1944
  vertical-align: baseline;
1945
1945
  }
1946
- `],Gt([T()],nt.prototype,"open",2),Gt([ee("slot:not([name=content])")],nt.prototype,"popBtn",2),Gt([ee("slot[name=content]")],nt.prototype,"popContent",2),Gt([l({type:Boolean})],nt.prototype,"noToggle",2),Gt([l({type:Boolean,reflect:!0})],nt.prototype,"inline",2),Gt([l({type:String,reflect:!0})],nt.prototype,"shadow",2),Gt([l({type:String})],nt.prototype,"placement",2),nt=Gt([w(ja)],nt);var Ma=Object.defineProperty,Ia=Object.getOwnPropertyDescriptor,za=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ia(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ma(t,s,e),e};const Fa="sonic-menu-item";let yr=class extends N{constructor(){super()}connectedCallback(){this.hasAttribute("variant")||(this.variant="ghost"),this.hasAttribute("type")||(this.type="primary"),this.hasAttribute("shape")||(this.shape="block");const r=this.shape==="square"||this.shape==="circle";!this.hasAttribute("align")&&!r&&(this.align="left"),super.connectedCallback()}};yr=za([w(Fa)],yr);class wr{constructor(t,{target:s,config:i,callback:e,skipInitial:o}){this.t=new Set,this.o=!1,this.i=!1,this.h=t,s!==null&&this.t.add(s??t),this.l=i,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){var s;this.value=(s=this.callback)==null?void 0:s.call(this,t,this.u)}hostConnected(){for(const t of this.t)this.observe(t)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.o&&this.i&&this.handleChanges([]),this.i=!1}observe(t){this.t.add(t),this.u.observe(t,this.l),this.i=!0,this.h.requestUpdate()}unobserve(t){this.t.delete(t),this.u.unobserve(t)}disconnect(){this.u.disconnect()}}var Ra=Object.defineProperty,Ua=Object.getOwnPropertyDescriptor,wt=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ua(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ra(t,s,e),e};let pt=class extends Js(hr(cr(Ht(v)))){constructor(){super(...arguments),this.size="md",this.placeholder="",this.filteredFields="",this.readonly=null,this.dataProviderExpression="",this.key="",this.searchParameter="",this.propertyName="",this.hasInputPrefix=!1,this._resizeController=new wr(this,{}),this.searchDataProvider="",this.initSearchDataProvider="",this.queueDataProvider="",this.initQueueDataProvider="",this.lastValidSearch="",this.updateSearchParameter=r=>{var s;if(r==""){this.lastValidSearch="";return}this.queryQueueListItem(this.queueDataProvider,this.findSelection,this.setSearchFromSelection)===!1&&(this.lastValidSearch=r,(s=this.searchPublisher)==null||s.set(this.lastValidSearch))},this.initSearchParameter=()=>{this.queryQueueListItem(this.initQueueDataProvider,this.findSelection,this.setSearchFromSelection)},this.selectListItem=r=>{var s;const t=this.propertyName==="_self"?r:r[this.propertyName||this.name];(s=this.formValuePublisher)==null||s.set(t)},this.findSearchedItem=r=>{var s;return(this.propertyName==="_self"?r:r[this.propertyName||this.searchParameter||this.name])==((s=this.searchPublisher)==null?void 0:s.get())},this.findSelection=r=>(this.propertyName==="_self"?r:r[this.propertyName||this.name])==this.value,this.setSearchFromSelection=r=>{var t;this.lastValidSearch=this.propertyName==="_self"?r:r[this.propertyName||this.searchParameter||this.name],(t=this.searchPublisher)==null||t.set(this.lastValidSearch)},this.updateActiveSelection=()=>{var r,t,s;this.queryQueueListItem(this.queueDataProvider,this.findSearchedItem,this.selectListItem),!this.select&&this.lastValidSearch&&this.lastValidSearch!=((r=this.searchPublisher)==null?void 0:r.get())&&((t=this.formValuePublisher)!=null&&t.get())&&((s=this.formValuePublisher)==null||s.set(""))}}hasSlotOrProps(){var r;this.hasInputPrefix=!!((r=this.slotInputPrefixNodes)!=null&&r.length)}connectedCallback(){var e,o,n;super.connectedCallback();const r=this.searchParameter||this.name,t=this.getAncestorAttributeValue("formDataProvider"),s=t+"__"+this.name+"__autocomplete";this.initSearchDataProvider=`${s}_init_search__`,this.initQueueDataProvider=`${s}_init_queue__`,this.searchDataProvider=`${s}_search__`,this.queueDataProvider=`${s}_queue__`;const i=tt.get;this.searchPublisher=i(this.searchDataProvider)[r],this.formValuePublisher=i(t)[this.name],this.countPublisher=i(this.queueDataProvider).resultCount,this.initCountPublisher=i(this.initQueueDataProvider).resultCount,this.value&&(tt.get(this.initSearchDataProvider)[this.name]=this.value),(e=this.initCountPublisher)==null||e.onAssign(this.initSearchParameter),(o=this.formValuePublisher)==null||o.onAssign(this.updateSearchParameter),(n=this.countPublisher)==null||n.onAssign(this.updateActiveSelection)}disconnectedCallback(){var t,s,i;super.disconnectedCallback(),(t=this.initCountPublisher)==null||t.offAssign(this.initSearchParameter),(s=this.formValuePublisher)==null||s.offAssign(this.updateSearchParameter),(i=this.countPublisher)==null||i.offAssign(this.updateActiveSelection);const r=tt.get;r(this.initSearchDataProvider).delete(),r(this.initQueueDataProvider).delete(),r(this.searchDataProvider).delete(),r(this.queueDataProvider).delete()}queryQueueListItem(r,t,s){const i=tt.get(r);let e;const o=i.get();if(Array.isArray(o)){for(const n of o){const a=tt.get(n.dataProvider).get();if(Array.isArray(a)&&(e=a.find(t),e))break}return e?(s(e),!0):!1}}setSelectionRange(r,t){var s;(s=this.querySelector("sonic-input"))==null||s.setSelectionRange(r,t)}handleHide(){var r,t,s;if(this.select){if(((r=this.searchPublisher)==null?void 0:r.get())==""){this.lastValidSearch="",(t=this.formValuePublisher)==null||t.set("");return}(s=this.searchPublisher)==null||s.set(this.lastValidSearch)}}render(){return g`
1946
+ `],Gt([j()],nt.prototype,"open",2),Gt([ee("slot:not([name=content])")],nt.prototype,"popBtn",2),Gt([ee("slot[name=content]")],nt.prototype,"popContent",2),Gt([l({type:Boolean})],nt.prototype,"noToggle",2),Gt([l({type:Boolean,reflect:!0})],nt.prototype,"inline",2),Gt([l({type:String,reflect:!0})],nt.prototype,"shadow",2),Gt([l({type:String})],nt.prototype,"placement",2),nt=Gt([w(Ia)],nt);var Ra=Object.defineProperty,Fa=Object.getOwnPropertyDescriptor,za=(r,t,s,i)=>{for(var e=i>1?void 0:i?Fa(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ra(t,s,e),e};const Ua="sonic-menu-item";let _r=class extends T{constructor(){super()}connectedCallback(){this.hasAttribute("variant")||(this.variant="ghost"),this.hasAttribute("type")||(this.type="primary"),this.hasAttribute("shape")||(this.shape="block");const r=this.shape==="square"||this.shape==="circle";!this.hasAttribute("align")&&!r&&(this.align="left"),super.connectedCallback()}};_r=za([w(Ua)],_r);class xr{constructor(t,{target:s,config:i,callback:e,skipInitial:o}){this.t=new Set,this.o=!1,this.i=!1,this.h=t,s!==null&&this.t.add(s??t),this.l=i,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){var s;this.value=(s=this.callback)==null?void 0:s.call(this,t,this.u)}hostConnected(){for(const t of this.t)this.observe(t)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.o&&this.i&&this.handleChanges([]),this.i=!1}observe(t){this.t.add(t),this.u.observe(t,this.l),this.i=!0,this.h.requestUpdate()}unobserve(t){this.t.delete(t),this.u.unobserve(t)}disconnect(){this.u.disconnect()}}var Va=Object.defineProperty,Ba=Object.getOwnPropertyDescriptor,wt=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ba(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Va(t,s,e),e};let pt=class extends ti(pr(dr(Ht(v)))){constructor(){super(...arguments),this.size="md",this.placeholder="",this.filteredFields="",this.readonly=null,this.dataProviderExpression="",this.key="",this.searchParameter="",this.propertyName="",this.hasInputPrefix=!1,this._resizeController=new xr(this,{}),this.searchDataProvider="",this.initSearchDataProvider="",this.queueDataProvider="",this.initQueueDataProvider="",this.lastValidSearch="",this.updateSearchParameter=r=>{var s;if(r==""){this.lastValidSearch="";return}this.queryQueueListItem(this.queueDataProvider,this.findSelection,this.setSearchFromSelection)===!1&&(this.lastValidSearch=r,(s=this.searchPublisher)==null||s.set(this.lastValidSearch))},this.initSearchParameter=()=>{this.queryQueueListItem(this.initQueueDataProvider,this.findSelection,this.setSearchFromSelection)},this.selectListItem=r=>{var s;const t=this.propertyName==="_self"?r:r[this.propertyName||this.name];(s=this.formValuePublisher)==null||s.set(t)},this.findSearchedItem=r=>{var s;return(this.propertyName==="_self"?r:r[this.propertyName||this.searchParameter||this.name])==((s=this.searchPublisher)==null?void 0:s.get())},this.findSelection=r=>(this.propertyName==="_self"?r:r[this.propertyName||this.name])==this.value,this.setSearchFromSelection=r=>{var t;this.lastValidSearch=this.propertyName==="_self"?r:r[this.propertyName||this.searchParameter||this.name],(t=this.searchPublisher)==null||t.set(this.lastValidSearch)},this.updateActiveSelection=()=>{var r,t,s;this.queryQueueListItem(this.queueDataProvider,this.findSearchedItem,this.selectListItem),!this.select&&this.lastValidSearch&&this.lastValidSearch!=((r=this.searchPublisher)==null?void 0:r.get())&&((t=this.formValuePublisher)!=null&&t.get())&&((s=this.formValuePublisher)==null||s.set(""))}}hasSlotOrProps(){var r;this.hasInputPrefix=!!((r=this.slotInputPrefixNodes)!=null&&r.length)}connectedCallback(){var e,o,n;super.connectedCallback();const r=this.searchParameter||this.name,t=this.getAncestorAttributeValue("formDataProvider"),s=t+"__"+this.name+"__autocomplete";this.initSearchDataProvider=`${s}_init_search__`,this.initQueueDataProvider=`${s}_init_queue__`,this.searchDataProvider=`${s}_search__`,this.queueDataProvider=`${s}_queue__`;const i=tt.get;this.searchPublisher=i(this.searchDataProvider)[r],this.formValuePublisher=i(t)[this.name],this.countPublisher=i(this.queueDataProvider).resultCount,this.initCountPublisher=i(this.initQueueDataProvider).resultCount,this.value&&(tt.get(this.initSearchDataProvider)[this.name]=this.value),(e=this.initCountPublisher)==null||e.onAssign(this.initSearchParameter),(o=this.formValuePublisher)==null||o.onAssign(this.updateSearchParameter),(n=this.countPublisher)==null||n.onAssign(this.updateActiveSelection)}disconnectedCallback(){var t,s,i;super.disconnectedCallback(),(t=this.initCountPublisher)==null||t.offAssign(this.initSearchParameter),(s=this.formValuePublisher)==null||s.offAssign(this.updateSearchParameter),(i=this.countPublisher)==null||i.offAssign(this.updateActiveSelection);const r=tt.get;r(this.initSearchDataProvider).delete(),r(this.initQueueDataProvider).delete(),r(this.searchDataProvider).delete(),r(this.queueDataProvider).delete()}queryQueueListItem(r,t,s){const i=tt.get(r);let e;const o=i.get();if(Array.isArray(o)){for(const n of o){const a=tt.get(n.dataProvider).get();if(Array.isArray(a)&&(e=a.find(t),e))break}return e?(s(e),!0):!1}}setSelectionRange(r,t){var s;(s=this.querySelector("sonic-input"))==null||s.setSelectionRange(r,t)}handleHide(){var r,t,s;if(this.select){if(((r=this.searchPublisher)==null?void 0:r.get())==""){this.lastValidSearch="",(t=this.formValuePublisher)==null||t.set("");return}(s=this.searchPublisher)==null||s.set(this.lastValidSearch)}}render(){return g`
1947
1947
  <sonic-pop noToggle style="display:block;" @hide=${this.handleHide}>
1948
1948
  <sonic-input
1949
1949
  dataProvider="${this.initSearchDataProvider+Math.random()}"
@@ -1988,7 +1988,7 @@
1988
1988
  </sonic-queue>
1989
1989
  </sonic-menu>
1990
1990
  </sonic-pop>
1991
- `}};pt.styles=[Ge,P`
1991
+ `}};pt.styles=[Ze,P`
1992
1992
  :host {
1993
1993
  display: block;
1994
1994
  }
@@ -1999,16 +1999,16 @@
1999
1999
  min-width: 14rem;
2000
2000
  width: 100%;
2001
2001
  }
2002
- `],wt([l({type:String})],pt.prototype,"size",2),wt([l({type:String})],pt.prototype,"placeholder",2),wt([l()],pt.prototype,"filteredFields",2),wt([l({type:Boolean})],pt.prototype,"readonly",2),wt([l({type:String})],pt.prototype,"dataProviderExpression",2),wt([l({type:Boolean})],pt.prototype,"select",2),wt([l({type:String})],pt.prototype,"key",2),wt([l({type:String})],pt.prototype,"searchParameter",2),wt([l({type:String})],pt.prototype,"propertyName",2),wt([st({slot:"prefix",flatten:!0})],pt.prototype,"slotInputPrefixNodes",2),wt([T()],pt.prototype,"hasInputPrefix",2),pt=wt([w("sonic-input-autocomplete")],pt);var Va=Object.defineProperty,Ba=Object.getOwnPropertyDescriptor,ct=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ba(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Va(t,s,e),e};const Ha="sonic-password-helper";let at=class extends Ht(v){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)},tt.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].onAssign(this.checkValue))}disconnectedCallback(){this.checkValue&&this.name&&tt.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].offAssign(this.checkValue),super.disconnectedCallback()}getIcon(t){return t?g`<sonic-icon library="heroicons" name="face-smile"></sonic-icon>`:g`<sonic-icon library="heroicons" name="x-mark"></sonic-icon>`}render(){return this.hasNoChar?$:g`
2002
+ `],wt([l({type:String})],pt.prototype,"size",2),wt([l({type:String})],pt.prototype,"placeholder",2),wt([l()],pt.prototype,"filteredFields",2),wt([l({type:Boolean})],pt.prototype,"readonly",2),wt([l({type:String})],pt.prototype,"dataProviderExpression",2),wt([l({type:Boolean})],pt.prototype,"select",2),wt([l({type:String})],pt.prototype,"key",2),wt([l({type:String})],pt.prototype,"searchParameter",2),wt([l({type:String})],pt.prototype,"propertyName",2),wt([st({slot:"prefix",flatten:!0})],pt.prototype,"slotInputPrefixNodes",2),wt([j()],pt.prototype,"hasInputPrefix",2),pt=wt([w("sonic-input-autocomplete")],pt);var Ha=Object.defineProperty,qa=Object.getOwnPropertyDescriptor,ct=(r,t,s,i)=>{for(var e=i>1?void 0:i?qa(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ha(t,s,e),e};const Wa="sonic-password-helper";let at=class extends Ht(v){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)},tt.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].onAssign(this.checkValue))}disconnectedCallback(){this.checkValue&&this.name&&tt.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].offAssign(this.checkValue),super.disconnectedCallback()}getIcon(t){return t?g`<sonic-icon library="heroicons" name="face-smile"></sonic-icon>`:g`<sonic-icon library="heroicons" name="x-mark"></sonic-icon>`}render(){return this.hasNoChar?$:g`
2003
2003
  <div>${this.wording_password_helper_decription}</div>
2004
2004
  <div>${this.getIcon(this.hasEnoughChars)} ${this.wording_password_helper_min_length}</div>
2005
2005
  <div>${this.getIcon(this.hasMinuscule)} ${this.wording_password_helper_lower_case}</div>
2006
2006
  <div>${this.getIcon(this.hasMajuscule)} ${this.wording_password_helper_upper_case}</div>
2007
2007
  <div>${this.getIcon(this.hasNumber)} ${this.wording_password_helper_number}</div>
2008
2008
  <div>${this.getIcon(this.hasSpecialChar)} ${this.wording_password_helper_special_char}</div>
2009
- `}};ct([l()],at.prototype,"name",2),ct([l()],at.prototype,"minChars",2),ct([T()],at.prototype,"hasNoChar",2),ct([T()],at.prototype,"hasEnoughChars",2),ct([T()],at.prototype,"hasMinuscule",2),ct([T()],at.prototype,"hasMajuscule",2),ct([T()],at.prototype,"hasNumber",2),ct([T()],at.prototype,"hasSpecialChar",2),ct([l()],at.prototype,"wording_password_helper_decription",2),ct([l()],at.prototype,"wording_password_helper_min_length",2),ct([l()],at.prototype,"wording_password_helper_lower_case",2),ct([l()],at.prototype,"wording_password_helper_upper_case",2),ct([l()],at.prototype,"wording_password_helper_number",2),ct([l()],at.prototype,"wording_password_helper_special_char",2),at=ct([w(Ha)],at);var qa=Object.defineProperty,Wa=Object.getOwnPropertyDescriptor,ge=(r,t,s,i)=>{for(var e=i>1?void 0:i?Wa(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&qa(t,s,e),e};const Ka="sonic-same-value-helper";let Yt=class extends Ht(v){constructor(){super(...arguments),this.descriptionWhenEqual="Correspondance : oui",this.descriptionWhenNotEqual="Correspondance : non",this.areEqual=!1,this.hasNoChar=!0}connectedCallback(){super.connectedCallback();const r=tt.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=r[this.name].get()==r[this.sameValueAs].get())},r[this.name].onAssign(this.checkValue),r[this.sameValueAs].onAssign(this.checkValue))}disconnectedCallback(){if(this.checkValue&&this.name&&this.sameValueAs){const r=tt.get(this.getAncestorAttributeValue("formDataProvider"));r[this.name].offAssign(this.checkValue),r[this.sameValueAs].offAssign(this.checkValue)}super.disconnectedCallback()}render(){return this.hasNoChar?$:g`
2009
+ `}};ct([l()],at.prototype,"name",2),ct([l()],at.prototype,"minChars",2),ct([j()],at.prototype,"hasNoChar",2),ct([j()],at.prototype,"hasEnoughChars",2),ct([j()],at.prototype,"hasMinuscule",2),ct([j()],at.prototype,"hasMajuscule",2),ct([j()],at.prototype,"hasNumber",2),ct([j()],at.prototype,"hasSpecialChar",2),ct([l()],at.prototype,"wording_password_helper_decription",2),ct([l()],at.prototype,"wording_password_helper_min_length",2),ct([l()],at.prototype,"wording_password_helper_lower_case",2),ct([l()],at.prototype,"wording_password_helper_upper_case",2),ct([l()],at.prototype,"wording_password_helper_number",2),ct([l()],at.prototype,"wording_password_helper_special_char",2),at=ct([w(Wa)],at);var Ka=Object.defineProperty,Za=Object.getOwnPropertyDescriptor,ge=(r,t,s,i)=>{for(var e=i>1?void 0:i?Za(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ka(t,s,e),e};const Ga="sonic-same-value-helper";let Yt=class extends Ht(v){constructor(){super(...arguments),this.descriptionWhenEqual="Correspondance : oui",this.descriptionWhenNotEqual="Correspondance : non",this.areEqual=!1,this.hasNoChar=!0}connectedCallback(){super.connectedCallback();const r=tt.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=r[this.name].get()==r[this.sameValueAs].get())},r[this.name].onAssign(this.checkValue),r[this.sameValueAs].onAssign(this.checkValue))}disconnectedCallback(){if(this.checkValue&&this.name&&this.sameValueAs){const r=tt.get(this.getAncestorAttributeValue("formDataProvider"));r[this.name].offAssign(this.checkValue),r[this.sameValueAs].offAssign(this.checkValue)}super.disconnectedCallback()}render(){return this.hasNoChar?$:g`
2010
2010
  <span> ${this.areEqual?I(this.descriptionWhenEqual):I(this.descriptionWhenNotEqual)} </span>
2011
- `}};ge([l()],Yt.prototype,"name",2),ge([l()],Yt.prototype,"sameValueAs",2),ge([l()],Yt.prototype,"descriptionWhenEqual",2),ge([l()],Yt.prototype,"descriptionWhenNotEqual",2),ge([T()],Yt.prototype,"areEqual",2),ge([T()],Yt.prototype,"hasNoChar",2),Yt=ge([w(Ka)],Yt);var Za=Object.defineProperty,Ga=Object.getOwnPropertyDescriptor,Ft=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ga(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Za(t,s,e),e};const Ya="sonic-checkbox";let bt=class extends Ks(vs(Ae(G(v)))){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(){var r,t;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length)}render(){return g`
2011
+ `}};ge([l()],Yt.prototype,"name",2),ge([l()],Yt.prototype,"sameValueAs",2),ge([l()],Yt.prototype,"descriptionWhenEqual",2),ge([l()],Yt.prototype,"descriptionWhenNotEqual",2),ge([j()],Yt.prototype,"areEqual",2),ge([j()],Yt.prototype,"hasNoChar",2),Yt=ge([w(Ga)],Yt);var Ya=Object.defineProperty,Qa=Object.getOwnPropertyDescriptor,Ft=(r,t,s,i)=>{for(var e=i>1?void 0:i?Qa(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ya(t,s,e),e};const Xa="sonic-checkbox";let bt=class extends Gs(vs(Ae(G(v)))){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(){var r,t;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length)}render(){return g`
2012
2012
  <label class="checkbox-container ${this.disabled?"disabled":""}">
2013
2013
 
2014
2014
  <span class="icon-container">
@@ -2161,7 +2161,7 @@
2161
2161
  color:var(--sc-danger);
2162
2162
  }
2163
2163
  */
2164
- `],Ft([l({type:Boolean,reflect:!0})],bt.prototype,"touched",2),Ft([l({type:String})],bt.prototype,"iconName",2),Ft([l({type:String})],bt.prototype,"indeterminateIconName",2),Ft([l({type:Boolean})],bt.prototype,"showAsIndeterminate",2),Ft([l({type:Boolean})],bt.prototype,"hasDescription",2),Ft([l({type:Boolean})],bt.prototype,"hasLabel",2),Ft([st({flatten:!0})],bt.prototype,"slotLabelNodes",2),Ft([st({slot:"description",flatten:!0})],bt.prototype,"slotDescriptionNodes",2),bt=Ft([w(Ya)],bt);var Qa=Object.defineProperty,Ja=Object.getOwnPropertyDescriptor,Xa=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ja(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Qa(t,s,e),e};const tl="sonic-radio";let ni=class extends bt{constructor(){super(),this.radio=!0}connectedCallback(){super.connectedCallback(),this.type="radio"}};ni.styles=[bt.styles,P`
2164
+ `],Ft([l({type:Boolean,reflect:!0})],bt.prototype,"touched",2),Ft([l({type:String})],bt.prototype,"iconName",2),Ft([l({type:String})],bt.prototype,"indeterminateIconName",2),Ft([l({type:Boolean})],bt.prototype,"showAsIndeterminate",2),Ft([l({type:Boolean})],bt.prototype,"hasDescription",2),Ft([l({type:Boolean})],bt.prototype,"hasLabel",2),Ft([st({flatten:!0})],bt.prototype,"slotLabelNodes",2),Ft([st({slot:"description",flatten:!0})],bt.prototype,"slotDescriptionNodes",2),bt=Ft([w(Xa)],bt);var Ja=Object.defineProperty,tl=Object.getOwnPropertyDescriptor,el=(r,t,s,i)=>{for(var e=i>1?void 0:i?tl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ja(t,s,e),e};const sl="sonic-radio";let li=class extends bt{constructor(){super(),this.radio=!0}connectedCallback(){super.connectedCallback(),this.type="radio"}};li.styles=[bt.styles,P`
2165
2165
  :host input {
2166
2166
  border-radius: 50%;
2167
2167
  }
@@ -2175,7 +2175,7 @@
2175
2175
  height: 0.6em;
2176
2176
  width: 0.6em;
2177
2177
  }
2178
- `],ni=Xa([w(tl)],ni);var el=Object.defineProperty,sl=Object.getOwnPropertyDescriptor,Q=(r,t,s,i)=>{for(var e=i>1?void 0:i?sl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&el(t,s,e),e};const il="sonic-select";let K=class extends Ae(G(v)){constructor(){super(...arguments),this.valueKey="value",this.wordingKey="wording",this.multiple=!1,this.status="default",this._options=[],this.hasDoneFirstUpdate=!1,this._value="",this.updateOptions=()=>{const r=this.querySelectorAll("option");r.length>0&&(this.options=Array.from(r).map(t=>({value:t.value,wording:t.text,selected:t.hasAttribute("selected")})))},this.forceAutoFill=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1}set options(r){this._options=r;for(const s of r)s.selected&&(this.value=s.value||"");!(this.value||this.getAttribute("value"))&&this._options.length>0&&(this.value=this._options[0][this.valueKey]),this.requestUpdate()}get options(){return this._options}firstUpdated(r){this.hasDoneFirstUpdate=!0,super.firstUpdated(r)}set value(r){r==null&&!this.hasDoneFirstUpdate||(r||(r=""),this._value!=r&&(this._value=r,this.updateFormPublisherValue(),this.requestUpdate()))}get value(){return this._value}updateFormPublisherValue(){const r=this.getFormPublisher();r&&(r[this.name]=this.value)}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps(),this.updateOptions()}get description(){return this._description}set description(r){this.hasAttribute("description")&&!this.forceAutoFill&&(r=this.getAttribute("description")),this._description=r,this.requestUpdate()}get label(){return this._label}set label(r){this.hasAttribute("label")&&!this.forceAutoFill&&(r=this.getAttribute("label")),this._label=r,this.requestUpdate()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){var r,t,s,i;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length),this.hasSuffix=!!((s=this.slotSuffixNodes)!=null&&s.length),this.hasPrefix=!!((i=this.slotPrefixNodes)!=null&&i.length)}validateFormElement(){var s;const r=(s=this.shadowRoot)==null?void 0:s.querySelector("select");if(!r||r.checkValidity())return;const t=this.getFormPublisher();t&&(t.isFormValid=!1),r.reportValidity()}render(){const r={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix};return g`
2178
+ `],li=el([w(sl)],li);var il=Object.defineProperty,rl=Object.getOwnPropertyDescriptor,Q=(r,t,s,i)=>{for(var e=i>1?void 0:i?rl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&il(t,s,e),e};const ol="sonic-select";let K=class extends Ae(G(v)){constructor(){super(...arguments),this.valueKey="value",this.wordingKey="wording",this.multiple=!1,this.status="default",this._options=[],this.hasDoneFirstUpdate=!1,this._value="",this.updateOptions=()=>{const r=this.querySelectorAll("option");r.length>0&&(this.options=Array.from(r).map(t=>({value:t.value,wording:t.text,selected:t.hasAttribute("selected")})))},this.forceAutoFill=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1}set options(r){this._options=r;for(const s of r)s.selected&&(this.value=s.value||"");!(this.value||this.getAttribute("value"))&&this._options.length>0&&(this.value=this._options[0][this.valueKey]),this.requestUpdate()}get options(){return this._options}firstUpdated(r){this.hasDoneFirstUpdate=!0,super.firstUpdated(r)}set value(r){r==null&&!this.hasDoneFirstUpdate||(r||(r=""),this._value!=r&&(this._value=r,this.updateFormPublisherValue(),this.requestUpdate()))}get value(){return this._value}updateFormPublisherValue(){const r=this.getFormPublisher();r&&(r[this.name]=this.value)}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps(),this.updateOptions()}get description(){return this._description}set description(r){this.hasAttribute("description")&&!this.forceAutoFill&&(r=this.getAttribute("description")),this._description=r,this.requestUpdate()}get label(){return this._label}set label(r){this.hasAttribute("label")&&!this.forceAutoFill&&(r=this.getAttribute("label")),this._label=r,this.requestUpdate()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){var r,t,s,i;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length),this.hasSuffix=!!((s=this.slotSuffixNodes)!=null&&s.length),this.hasPrefix=!!((i=this.slotPrefixNodes)!=null&&i.length)}validateFormElement(){var s;const r=(s=this.shadowRoot)==null?void 0:s.querySelector("select");if(!r||r.checkValidity())return;const t=this.getFormPublisher();t&&(t.isFormValid=!1),r.reportValidity()}render(){const r={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix};return g`
2179
2179
  <label
2180
2180
  for="form-element"
2181
2181
  class="${this.hasLabel?"form-label":"hidden"}"
@@ -2185,7 +2185,7 @@
2185
2185
  ></slot
2186
2186
  ></label>
2187
2187
 
2188
- <div class="form-control ${oi(r)}">
2188
+ <div class="form-control ${ai(r)}">
2189
2189
  <slot name="prefix" @slotchange=${this.hasSlotOrProps}></slot>
2190
2190
  <div class="form-select-wrapper">
2191
2191
  <select
@@ -2202,7 +2202,7 @@
2202
2202
  aria-label=${x(this.ariaLabel)}
2203
2203
  aria-labelledby=${x(this.ariaLabelledby)}
2204
2204
  >
2205
- ${us(this.options,t=>t[this.valueKey],t=>{const s=this.value==t[this.valueKey];return g`<option
2205
+ ${fs(this.options,t=>t[this.valueKey],t=>{const s=this.value==t[this.valueKey];return g`<option
2206
2206
  ?selected=${s}
2207
2207
  value="${t[this.valueKey]}"
2208
2208
  >
@@ -2225,7 +2225,7 @@
2225
2225
  class="${this.hasDescription?"form-description":"hidden"}"
2226
2226
  >${this.description?g`${I(this.description)}`:""}</slot
2227
2227
  >
2228
- `}};K.styles=[At,ri,Cs,As,P`
2228
+ `}};K.styles=[At,ni,Cs,As,P`
2229
2229
  .form-element {
2230
2230
  appearance: none;
2231
2231
  }
@@ -2270,7 +2270,7 @@
2270
2270
  background: transparent;
2271
2271
  padding: 0;
2272
2272
  }
2273
- `],Q([l({type:String})],K.prototype,"valueKey",2),Q([l({type:String})],K.prototype,"wordingKey",2),Q([l({type:Boolean})],K.prototype,"multiple",2),Q([l({type:String,reflect:!0})],K.prototype,"size",2),Q([l({type:Number})],K.prototype,"selectSize",2),Q([l({type:String,reflect:!0})],K.prototype,"status",2),Q([l({type:Array})],K.prototype,"options",1),Q([l({reflect:!0})],K.prototype,"value",1),Q([l({type:Boolean})],K.prototype,"forceAutoFill",2),Q([l()],K.prototype,"description",1),Q([l()],K.prototype,"label",1),Q([st({slot:"label",flatten:!0})],K.prototype,"slotLabelNodes",2),Q([st({slot:"description",flatten:!0})],K.prototype,"slotDescriptionNodes",2),Q([st({slot:"suffix",flatten:!0})],K.prototype,"slotSuffixNodes",2),Q([st({slot:"prefix",flatten:!0})],K.prototype,"slotPrefixNodes",2),Q([T()],K.prototype,"hasDescription",2),Q([T()],K.prototype,"hasLabel",2),Q([T()],K.prototype,"hasSuffix",2),Q([T()],K.prototype,"hasPrefix",2),K=Q([w(il)],K);var rl=Object.defineProperty,ol=Object.getOwnPropertyDescriptor,ut=(r,t,s,i)=>{for(var e=i>1?void 0:i?ol(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&rl(t,s,e),e};const nl="sonic-textarea";let lt=class extends vs(Ae(G(v))){constructor(){super(...arguments),this.size="",this.readonly=!1,this.hasDescription=!1,this.hasLabel=!1}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){var r,t;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length)}validateFormElement(){var s;const r=(s=this.shadowRoot)==null?void 0:s.querySelector("textarea");if(!r||r.checkValidity())return;const t=this.getFormPublisher();t&&(t.isFormValid=!1),r.reportValidity()}render(){const r={resize:this.resize};return g`
2273
+ `],Q([l({type:String})],K.prototype,"valueKey",2),Q([l({type:String})],K.prototype,"wordingKey",2),Q([l({type:Boolean})],K.prototype,"multiple",2),Q([l({type:String,reflect:!0})],K.prototype,"size",2),Q([l({type:Number})],K.prototype,"selectSize",2),Q([l({type:String,reflect:!0})],K.prototype,"status",2),Q([l({type:Array})],K.prototype,"options",1),Q([l({reflect:!0})],K.prototype,"value",1),Q([l({type:Boolean})],K.prototype,"forceAutoFill",2),Q([l()],K.prototype,"description",1),Q([l()],K.prototype,"label",1),Q([st({slot:"label",flatten:!0})],K.prototype,"slotLabelNodes",2),Q([st({slot:"description",flatten:!0})],K.prototype,"slotDescriptionNodes",2),Q([st({slot:"suffix",flatten:!0})],K.prototype,"slotSuffixNodes",2),Q([st({slot:"prefix",flatten:!0})],K.prototype,"slotPrefixNodes",2),Q([j()],K.prototype,"hasDescription",2),Q([j()],K.prototype,"hasLabel",2),Q([j()],K.prototype,"hasSuffix",2),Q([j()],K.prototype,"hasPrefix",2),K=Q([w(ol)],K);var nl=Object.defineProperty,al=Object.getOwnPropertyDescriptor,ut=(r,t,s,i)=>{for(var e=i>1?void 0:i?al(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&nl(t,s,e),e};const ll="sonic-textarea";let lt=class extends vs(Ae(G(v))){constructor(){super(...arguments),this.size="",this.readonly=!1,this.hasDescription=!1,this.hasLabel=!1}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){var r,t;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length)}validateFormElement(){var s;const r=(s=this.shadowRoot)==null?void 0:s.querySelector("textarea");if(!r||r.checkValidity())return;const t=this.getFormPublisher();t&&(t.isFormValid=!1),r.reportValidity()}render(){const r={resize:this.resize};return g`
2274
2274
  <label for="${this.id||"form-element"}" class="${this.hasLabel?"form-label":"hidden"}"
2275
2275
  >${this.label?I(this.label):""}<slot name="label" @slotchange=${this.hasSlotOrProps}></slot
2276
2276
  ></label>
@@ -2305,12 +2305,12 @@ ${this.value}</textarea
2305
2305
  <slot name="description" @slotchange=${this.hasSlotOrProps} class="${this.hasDescription?"form-description":"hidden"}"
2306
2306
  >${this.description?g`${I(this.description)}`:""}</slot
2307
2307
  >
2308
- `}};lt.styles=[At,ri,Cs,As,Ge,P`
2308
+ `}};lt.styles=[At,ni,Cs,As,Ze,P`
2309
2309
  textarea {
2310
2310
  overflow-y: auto !important;
2311
2311
  font-size: inherit;
2312
2312
  }
2313
- `],ut([l({type:String})],lt.prototype,"size",2),ut([l({type:Number})],lt.prototype,"rows",2),ut([l({type:Number})],lt.prototype,"cols",2),ut([l({type:Number})],lt.prototype,"maxlength",2),ut([l({type:Number})],lt.prototype,"minlength",2),ut([l({type:String})],lt.prototype,"wrap",2),ut([l({type:Boolean})],lt.prototype,"readonly",2),ut([l({type:String})],lt.prototype,"placeholder",2),ut([l({type:String})],lt.prototype,"resize",2),ut([st({slot:"label",flatten:!0})],lt.prototype,"slotLabelNodes",2),ut([st({slot:"description",flatten:!0})],lt.prototype,"slotDescriptionNodes",2),ut([T()],lt.prototype,"hasDescription",2),ut([T()],lt.prototype,"hasLabel",2),lt=ut([w(nl)],lt);var al=Object.defineProperty,ll=Object.getOwnPropertyDescriptor,cl=(r,t,s,i)=>{for(var e=i>1?void 0:i?ll(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&al(t,s,e),e};let ai=class extends v{render(){return g`<slot></slot>`}};ai.styles=[P`
2313
+ `],ut([l({type:String})],lt.prototype,"size",2),ut([l({type:Number})],lt.prototype,"rows",2),ut([l({type:Number})],lt.prototype,"cols",2),ut([l({type:Number})],lt.prototype,"maxlength",2),ut([l({type:Number})],lt.prototype,"minlength",2),ut([l({type:String})],lt.prototype,"wrap",2),ut([l({type:Boolean})],lt.prototype,"readonly",2),ut([l({type:String})],lt.prototype,"placeholder",2),ut([l({type:String})],lt.prototype,"resize",2),ut([st({slot:"label",flatten:!0})],lt.prototype,"slotLabelNodes",2),ut([st({slot:"description",flatten:!0})],lt.prototype,"slotDescriptionNodes",2),ut([j()],lt.prototype,"hasDescription",2),ut([j()],lt.prototype,"hasLabel",2),lt=ut([w(ll)],lt);var cl=Object.defineProperty,hl=Object.getOwnPropertyDescriptor,dl=(r,t,s,i)=>{for(var e=i>1?void 0:i?hl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&cl(t,s,e),e};let ci=class extends v{render(){return g`<slot></slot>`}};ci.styles=[P`
2314
2314
  :host {
2315
2315
  font-size: 1.15rem;
2316
2316
  line-height: 1.2;
@@ -2320,7 +2320,7 @@ ${this.value}</textarea
2320
2320
  font-style: var(--sc-font-style-base);
2321
2321
  margin-top: 0.2em;
2322
2322
  }
2323
- `],ai=cl([w("sonic-legend-description")],ai);var hl=Object.defineProperty,dl=Object.getOwnPropertyDescriptor,me=(r,t,s,i)=>{for(var e=i>1?void 0:i?dl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&hl(t,s,e),e};const pl="sonic-legend";let Rt=class extends v{constructor(){super(...arguments),this.forceAutoFill=!1}get description(){return this._description}set description(r){this.hasAttribute("description")&&!this.forceAutoFill&&(r=this.getAttribute("description")),this._description=r,this.requestUpdate()}get label(){return this._label}set label(r){this.hasAttribute("label")&&!this.forceAutoFill&&(r=this.getAttribute("label")),this._label=r,this.requestUpdate()}render(){return g`<legend part="legend">
2323
+ `],ci=dl([w("sonic-legend-description")],ci);var pl=Object.defineProperty,ul=Object.getOwnPropertyDescriptor,me=(r,t,s,i)=>{for(var e=i>1?void 0:i?ul(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&pl(t,s,e),e};const fl="sonic-legend";let zt=class extends v{constructor(){super(...arguments),this.forceAutoFill=!1}get description(){return this._description}set description(r){this.hasAttribute("description")&&!this.forceAutoFill&&(r=this.getAttribute("description")),this._description=r,this.requestUpdate()}get label(){return this._label}set label(r){this.hasAttribute("label")&&!this.forceAutoFill&&(r=this.getAttribute("label")),this._label=r,this.requestUpdate()}render(){return g`<legend part="legend">
2324
2324
  ${this.iconName?g`<div class="icon">
2325
2325
  <sonic-icon name=${this.iconName} prefix=${x(this.iconPrefix)} library=${x(this.iconLibrary)}></sonic-icon>
2326
2326
  </div>`:""}
@@ -2331,7 +2331,7 @@ ${this.value}</textarea
2331
2331
  <slot></slot>
2332
2332
  </div>
2333
2333
  <slot name="suffix"></slot>
2334
- </legend>`}};Rt.styles=[P`
2334
+ </legend>`}};zt.styles=[P`
2335
2335
  :host {
2336
2336
  --sc-legend-font-size: 1.5rem;
2337
2337
  --sc-legend-font-weight: var(--sc-font-weight-base);
@@ -2366,7 +2366,7 @@ ${this.value}</textarea
2366
2366
  .legend-content {
2367
2367
  flex-grow: 1;
2368
2368
  }
2369
- `],me([l({type:Boolean})],Rt.prototype,"forceAutoFill",2),me([l()],Rt.prototype,"description",1),me([l()],Rt.prototype,"label",1),me([l({type:String})],Rt.prototype,"iconName",2),me([l({type:String})],Rt.prototype,"iconLibrary",2),me([l({type:String})],Rt.prototype,"iconPrefix",2),Rt=me([w(pl)],Rt);var ul=Object.defineProperty,fl=Object.getOwnPropertyDescriptor,Dt=(r,t,s,i)=>{for(var e=i>1?void 0:i?fl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ul(t,s,e),e};const gl="sonic-fieldset";let _t=class extends G(v){constructor(){super(...arguments),this.disabled=!1,this.variant="default"}render(){return g`<fieldset form="${x(this.form)}" ?disabled="${this.disabled}">
2369
+ `],me([l({type:Boolean})],zt.prototype,"forceAutoFill",2),me([l()],zt.prototype,"description",1),me([l()],zt.prototype,"label",1),me([l({type:String})],zt.prototype,"iconName",2),me([l({type:String})],zt.prototype,"iconLibrary",2),me([l({type:String})],zt.prototype,"iconPrefix",2),zt=me([w(fl)],zt);var gl=Object.defineProperty,ml=Object.getOwnPropertyDescriptor,Dt=(r,t,s,i)=>{for(var e=i>1?void 0:i?ml(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&gl(t,s,e),e};const bl="sonic-fieldset";let _t=class extends G(v){constructor(){super(...arguments),this.disabled=!1,this.variant="default"}render(){return g`<fieldset form="${x(this.form)}" ?disabled="${this.disabled}">
2370
2370
  ${this.label?g` <sonic-legend
2371
2371
  label=${x(this.label)}
2372
2372
  description=${x(this.description)}
@@ -2422,9 +2422,9 @@ ${this.value}</textarea
2422
2422
  ::slotted(sonic-legend:last-child) {
2423
2423
  margin-bottom: 0;
2424
2424
  }
2425
- `],Dt([l({type:Boolean,reflect:!0})],_t.prototype,"disabled",2),Dt([l({type:String})],_t.prototype,"form",2),Dt([l({type:String})],_t.prototype,"label",2),Dt([l({type:String})],_t.prototype,"description",2),Dt([l({type:String})],_t.prototype,"iconName",2),Dt([l({type:String})],_t.prototype,"iconLibrary",2),Dt([l({type:String})],_t.prototype,"iconPrefix",2),Dt([l({type:Boolean,reflect:!0})],_t.prototype,"tight",2),Dt([l({type:String,reflect:!0})],_t.prototype,"variant",2),_t=Dt([w(gl)],_t);var ml=Object.defineProperty,bl=Object.getOwnPropertyDescriptor,li=(r,t,s,i)=>{for(var e=i>1?void 0:i?bl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ml(t,s,e),e};const vl="sonic-form-layout";let Je=class extends G(v){constructor(){super(...arguments),this._resizeController=new wr(this,{}),this.oneFormElement=!1}onSlotChange(){let r=this.slottedElements;const t=["sonic-input","sonic-select","sonic-input-autocomplete",".form-item-container"];r=r.filter(s=>t.includes(s.nodeName.toLowerCase())),this.oneFormElement=r.length==1}render(){const r={"cq--md":this.offsetWidth>440,"one-form-element":this.oneFormElement};return g`<div class=${oi(r)}>
2425
+ `],Dt([l({type:Boolean,reflect:!0})],_t.prototype,"disabled",2),Dt([l({type:String})],_t.prototype,"form",2),Dt([l({type:String})],_t.prototype,"label",2),Dt([l({type:String})],_t.prototype,"description",2),Dt([l({type:String})],_t.prototype,"iconName",2),Dt([l({type:String})],_t.prototype,"iconLibrary",2),Dt([l({type:String})],_t.prototype,"iconPrefix",2),Dt([l({type:Boolean,reflect:!0})],_t.prototype,"tight",2),Dt([l({type:String,reflect:!0})],_t.prototype,"variant",2),_t=Dt([w(bl)],_t);var vl=Object.defineProperty,yl=Object.getOwnPropertyDescriptor,hi=(r,t,s,i)=>{for(var e=i>1?void 0:i?yl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&vl(t,s,e),e};const wl="sonic-form-layout";let Xe=class extends G(v){constructor(){super(...arguments),this._resizeController=new xr(this,{}),this.oneFormElement=!1}onSlotChange(){let r=this.slottedElements;const t=["sonic-input","sonic-select","sonic-input-autocomplete",".form-item-container"];r=r.filter(s=>t.includes(s.nodeName.toLowerCase())),this.oneFormElement=r.length==1}render(){const r={"cq--md":this.offsetWidth>440,"one-form-element":this.oneFormElement};return g`<div class=${ai(r)}>
2426
2426
  <slot @slotchange=${this.onSlotChange}></slot>
2427
- </div>`}};Je.styles=[P`
2427
+ </div>`}};Xe.styles=[P`
2428
2428
  :host {
2429
2429
  display: block;
2430
2430
  }
@@ -2459,7 +2459,7 @@ ${this.value}</textarea
2459
2459
  ::slotted(sonic-divider) {
2460
2460
  --sc-divider-my: 0;
2461
2461
  }
2462
- `],li([se({flatten:!0})],Je.prototype,"slottedElements",2),li([l({type:Boolean})],Je.prototype,"oneFormElement",2),Je=li([w(vl)],Je);var yl=Object.defineProperty,wl=Object.getOwnPropertyDescriptor,ci=(r,t,s,i)=>{for(var e=i>1?void 0:i?wl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&yl(t,s,e),e};const _l="sonic-form-actions";let Xe=class extends v{constructor(){super(...arguments),this.direction="row",this.justify="flex-start"}render(){const r={flexDirection:this.direction,justifyContent:this.justify};return g`<slot style=${dt(r)}></slot>`}};Xe.styles=[P`
2462
+ `],hi([se({flatten:!0})],Xe.prototype,"slottedElements",2),hi([l({type:Boolean})],Xe.prototype,"oneFormElement",2),Xe=hi([w(wl)],Xe);var _l=Object.defineProperty,xl=Object.getOwnPropertyDescriptor,di=(r,t,s,i)=>{for(var e=i>1?void 0:i?xl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&_l(t,s,e),e};const Pl="sonic-form-actions";let Je=class extends v{constructor(){super(...arguments),this.direction="row",this.justify="flex-start"}render(){const r={flexDirection:this.direction,justifyContent:this.justify};return g`<slot style=${dt(r)}></slot>`}};Je.styles=[P`
2463
2463
  :host {
2464
2464
  display: block;
2465
2465
  }
@@ -2468,7 +2468,7 @@ ${this.value}</textarea
2468
2468
  flex-wrap: wrap;
2469
2469
  gap: 0.3rem;
2470
2470
  }
2471
- `],ci([l({type:String})],Xe.prototype,"direction",2),ci([l({type:String})],Xe.prototype,"justify",2),Xe=ci([w(_l)],Xe);var xl=Object.defineProperty,Pl=Object.getOwnPropertyDescriptor,Qt=(r,t,s,i)=>{for(var e=i>1?void 0:i?Pl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&xl(t,s,e),e};const $l="sonic-group";let kt=class extends v{constructor(){super(...arguments),this.alignItems="center",this.hasDescription=!1,this.hasLabel=!1}updated(){const r=this.querySelectorAll("sonic-input, sonic-button, sonic-select"),t=r.length;t>1&&r.forEach((s,i)=>{const e=s;i===0?(e.style.setProperty("--sc-item-rounded-tr","0"),e.style.setProperty("--sc-item-rounded-br","0")):i===t-1?(e.style.setProperty("--sc-item-rounded-tl","0"),e.style.setProperty("--sc-item-rounded-bl","0")):(e.style.setProperty("--sc-item-rounded-tr","0"),e.style.setProperty("--sc-item-rounded-br","0"),e.style.setProperty("--sc-item-rounded-tl","0"),e.style.setProperty("--sc-item-rounded-bl","0"))})}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){var r,t;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length)}render(){const r={alignItems:this.alignItems};return g`<span class="${this.hasLabel?"form-label":"hidden"}"
2471
+ `],di([l({type:String})],Je.prototype,"direction",2),di([l({type:String})],Je.prototype,"justify",2),Je=di([w(Pl)],Je);var $l=Object.defineProperty,Cl=Object.getOwnPropertyDescriptor,Qt=(r,t,s,i)=>{for(var e=i>1?void 0:i?Cl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&$l(t,s,e),e};const Al="sonic-group";let kt=class extends v{constructor(){super(...arguments),this.alignItems="center",this.hasDescription=!1,this.hasLabel=!1}updated(){const r=this.querySelectorAll("sonic-input, sonic-button, sonic-select"),t=r.length;t>1&&r.forEach((s,i)=>{const e=s;i===0?(e.style.setProperty("--sc-item-rounded-tr","0"),e.style.setProperty("--sc-item-rounded-br","0")):i===t-1?(e.style.setProperty("--sc-item-rounded-tl","0"),e.style.setProperty("--sc-item-rounded-bl","0")):(e.style.setProperty("--sc-item-rounded-tr","0"),e.style.setProperty("--sc-item-rounded-br","0"),e.style.setProperty("--sc-item-rounded-tl","0"),e.style.setProperty("--sc-item-rounded-bl","0"))})}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){var r,t;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length)}render(){const r={alignItems:this.alignItems};return g`<span class="${this.hasLabel?"form-label":"hidden"}"
2472
2472
  >${this.label?I(this.label):""}<slot name="label" @slotchange=${this.hasSlotOrProps}></slot
2473
2473
  ></span>
2474
2474
  <slot class="main-slot" style=${dt(r)}></slot>
@@ -2493,7 +2493,7 @@ ${this.value}</textarea
2493
2493
  ::slotted(sonic-select) {
2494
2494
  flex-grow: 1;
2495
2495
  }
2496
- `],Qt([l({type:String})],kt.prototype,"alignItems",2),Qt([l({type:String})],kt.prototype,"label",2),Qt([l({type:String})],kt.prototype,"description",2),Qt([st({slot:"label",flatten:!0})],kt.prototype,"slotLabelNodes",2),Qt([st({slot:"description",flatten:!0})],kt.prototype,"slotDescriptionNodes",2),Qt([T()],kt.prototype,"hasDescription",2),Qt([T()],kt.prototype,"hasLabel",2),kt=Qt([w($l)],kt);var Cl=Object.defineProperty,Al=Object.getOwnPropertyDescriptor,Lt=(r,t,s,i)=>{for(var e=i>1?void 0:i?Al(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Cl(t,s,e),e};const Sl="sonic-image";let xt=class extends v{constructor(){super(...arguments),this.rounded="none",this.src="",this.alt="",this.loading="lazy",this.ratio="auto",this.objectPosition="center center",this.imageRendering="auto",this.cover=!1}firstUpdated(r){var t;if(this.transition){const s=(t=this.shadowRoot)==null?void 0:t.querySelector("img");if(!s)return;s.onload=function(){s.classList.add("loaded")}}super.firstUpdated(r)}render(){const r={aspectRatio:this.cover?"auto":this.ratio,imageRendering:this.imageRendering,objectPosition:this.objectPosition};return g`<div part="image">
2496
+ `],Qt([l({type:String})],kt.prototype,"alignItems",2),Qt([l({type:String})],kt.prototype,"label",2),Qt([l({type:String})],kt.prototype,"description",2),Qt([st({slot:"label",flatten:!0})],kt.prototype,"slotLabelNodes",2),Qt([st({slot:"description",flatten:!0})],kt.prototype,"slotDescriptionNodes",2),Qt([j()],kt.prototype,"hasDescription",2),Qt([j()],kt.prototype,"hasLabel",2),kt=Qt([w(Al)],kt);var Sl=Object.defineProperty,Ol=Object.getOwnPropertyDescriptor,Lt=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ol(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Sl(t,s,e),e};const Dl="sonic-image";let xt=class extends v{constructor(){super(...arguments),this.rounded="none",this.src="",this.alt="",this.loading="lazy",this.ratio="auto",this.objectPosition="center center",this.imageRendering="auto",this.cover=!1}firstUpdated(r){var t;if(this.transition){const s=(t=this.shadowRoot)==null?void 0:t.querySelector("img");if(!s)return;s.onload=function(){s.classList.add("loaded")}}super.firstUpdated(r)}render(){const r={aspectRatio:this.cover?"auto":this.ratio,imageRendering:this.imageRendering,objectPosition:this.objectPosition};return g`<div part="image">
2497
2497
  <picture part="picture"
2498
2498
  ><img part="img" src="${this.src}" loading="${this.loading}" alt="${this.alt}" style=${dt(r)}
2499
2499
  /></picture>
@@ -2570,7 +2570,7 @@ ${this.value}</textarea
2570
2570
  opacity: 1;
2571
2571
  scale: 1;
2572
2572
  }
2573
- `],Lt([l({type:String})],xt.prototype,"rounded",2),Lt([l({type:String})],xt.prototype,"src",2),Lt([l({type:String})],xt.prototype,"alt",2),Lt([l({type:String})],xt.prototype,"loading",2),Lt([l({type:String,reflect:!0})],xt.prototype,"transition",2),Lt([l({type:String})],xt.prototype,"ratio",2),Lt([l({type:String})],xt.prototype,"objectPosition",2),Lt([l({type:String})],xt.prototype,"imageRendering",2),Lt([l({type:Boolean,reflect:!0})],xt.prototype,"cover",2),xt=Lt([w(Sl)],xt);var Ol=Object.defineProperty,Dl=Object.getOwnPropertyDescriptor,vt=(r,t,s,i)=>{for(var e=i>1?void 0:i?Dl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ol(t,s,e),e};const kl="sonic-menu";let ht=class extends v{constructor(){super(...arguments),this.size="",this.direction="column",this.gap="var(--sc-menu-gap)",this.align="left",this.shadow=null,this.moreShape="circle",this.scrollable=!1,this.observer=null,this.minWidth="0",this.hasMoreElements=!1,this.updateIsScollable=()=>{this.scrollable&&(this.initScrollable(),this.setScrollShadow(this,this.direction))}}checkIfMore(){var r;this.hasMoreElements=!!((r=this.moreElements)!=null&&r.length)}updated(r){const t=this.querySelector(".more-btn");this.size&&t&&t.setAttribute("size",this.size),this.querySelectorAll("sonic-divider").forEach(i=>{i.hasAttribute("size")||i.setAttribute("size","xs")}),super.updated(r)}mainSlotChange(){this.setChildrenSize(this.menuChildren),this.updateIsScollable()}connectedCallback(){this.observer=new ResizeObserver(this.updateIsScollable),this.observer.observe(this),super.connectedCallback()}disconnectedCallback(){var r;(r=this.observer)==null||r.disconnect(),super.disconnectedCallback()}initScrollable(){let r=!1,t,s;this.scrollable&&(this.addEventListener("mousedown",i=>{r=!0,this.classList.add("active"),t=i.pageX-this.offsetLeft,s=this.scrollLeft}),this.addEventListener("mouseleave",()=>{r=!1,this.classList.remove("active")}),this.addEventListener("mouseup",()=>{r=!1,this.classList.remove("active")}),this.addEventListener("mousemove",i=>{if(!r)return;i.preventDefault();const o=(i.pageX-this.offsetLeft-t)*1.5;this.scrollLeft=s-o,this.setScrollShadow(this,this.direction)}),this.addEventListener("scroll",i=>{i.preventDefault(),this.setScrollShadow(this,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",s={display:"block",alignSelf:t?"center":"flex-start",justifySelf:"center",flexDirection:this.direction},i={marginLeft:t?"":".55em"};return g`<menu part="menu" class="shadowable" style=${dt(r)}>
2573
+ `],Lt([l({type:String})],xt.prototype,"rounded",2),Lt([l({type:String})],xt.prototype,"src",2),Lt([l({type:String})],xt.prototype,"alt",2),Lt([l({type:String})],xt.prototype,"loading",2),Lt([l({type:String,reflect:!0})],xt.prototype,"transition",2),Lt([l({type:String})],xt.prototype,"ratio",2),Lt([l({type:String})],xt.prototype,"objectPosition",2),Lt([l({type:String})],xt.prototype,"imageRendering",2),Lt([l({type:Boolean,reflect:!0})],xt.prototype,"cover",2),xt=Lt([w(Dl)],xt);var kl=Object.defineProperty,Ll=Object.getOwnPropertyDescriptor,vt=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ll(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&kl(t,s,e),e};const El="sonic-menu";let ht=class extends v{constructor(){super(...arguments),this.size="",this.direction="column",this.gap="var(--sc-menu-gap)",this.align="left",this.shadow=null,this.moreShape="circle",this.scrollable=!1,this.observer=null,this.minWidth="0",this.hasMoreElements=!1,this.updateIsScollable=()=>{this.scrollable&&(this.initScrollable(),this.setScrollShadow(this,this.direction))}}checkIfMore(){var r;this.hasMoreElements=!!((r=this.moreElements)!=null&&r.length)}updated(r){const t=this.querySelector(".more-btn");this.size&&t&&t.setAttribute("size",this.size),this.querySelectorAll("sonic-divider").forEach(i=>{i.hasAttribute("size")||i.setAttribute("size","xs")}),super.updated(r)}mainSlotChange(){this.setChildrenSize(this.menuChildren),this.updateIsScollable()}connectedCallback(){this.observer=new ResizeObserver(this.updateIsScollable),this.observer.observe(this),super.connectedCallback()}disconnectedCallback(){var r;(r=this.observer)==null||r.disconnect(),super.disconnectedCallback()}initScrollable(){let r=!1,t,s;this.scrollable&&(this.addEventListener("mousedown",i=>{r=!0,this.classList.add("active"),t=i.pageX-this.offsetLeft,s=this.scrollLeft}),this.addEventListener("mouseleave",()=>{r=!1,this.classList.remove("active")}),this.addEventListener("mouseup",()=>{r=!1,this.classList.remove("active")}),this.addEventListener("mousemove",i=>{if(!r)return;i.preventDefault();const o=(i.pageX-this.offsetLeft-t)*1.5;this.scrollLeft=s-o,this.setScrollShadow(this,this.direction)}),this.addEventListener("scroll",i=>{i.preventDefault(),this.setScrollShadow(this,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",s={display:"block",alignSelf:t?"center":"flex-start",justifySelf:"center",flexDirection:this.direction},i={marginLeft:t?"":".55em"};return g`<menu part="menu" class="shadowable" style=${dt(r)}>
2574
2574
  <slot @slotchange=${this.mainSlotChange}></slot>
2575
2575
  <sonic-pop style=${dt(s)} class=${this.hasMoreElements?"":"hidden"}>
2576
2576
  <sonic-menu-item style=${dt(i)} class="more-btn" shape=${this.moreShape} align="center">
@@ -2664,16 +2664,16 @@ ${this.value}</textarea
2664
2664
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 10%, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100%);
2665
2665
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 10%, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100%);
2666
2666
  }
2667
- `],vt([l({type:String,reflect:!0})],ht.prototype,"size",2),vt([l({type:String,reflect:!0})],ht.prototype,"direction",2),vt([l({type:String})],ht.prototype,"gap",2),vt([l({type:String,reflect:!0})],ht.prototype,"align",2),vt([l({type:String,reflect:!0})],ht.prototype,"shadow",2),vt([l({type:String})],ht.prototype,"moreShape",2),vt([l({type:Boolean})],ht.prototype,"scrollable",2),vt([l({type:String})],ht.prototype,"minWidth",2),vt([ee("menu")],ht.prototype,"menu",2),vt([se({selector:"sonic-menu-item"})],ht.prototype,"menuChildren",2),vt([se({slot:"more",selector:"*"})],ht.prototype,"moreElements",2),vt([T()],ht.prototype,"hasMoreElements",2),ht=vt([w(kl)],ht);var Ll=Object.defineProperty,El=Object.getOwnPropertyDescriptor,_r=(r,t,s,i)=>{for(var e=i>1?void 0:i?El(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ll(t,s,e),e};const Nl="sonic-modal-actions";let Ss=class extends v{firstUpdated(r){var t;(t=this.buttons)==null||t.forEach(s=>{s.addEventListener("click",()=>{if(s.getAttribute("hideModal")!="false"){const i=this.closest("sonic-modal");i==null||i.hide()}})}),super.firstUpdated(r)}render(){return g`<slot></slot>`}};Ss.styles=[P`
2667
+ `],vt([l({type:String,reflect:!0})],ht.prototype,"size",2),vt([l({type:String,reflect:!0})],ht.prototype,"direction",2),vt([l({type:String})],ht.prototype,"gap",2),vt([l({type:String,reflect:!0})],ht.prototype,"align",2),vt([l({type:String,reflect:!0})],ht.prototype,"shadow",2),vt([l({type:String})],ht.prototype,"moreShape",2),vt([l({type:Boolean})],ht.prototype,"scrollable",2),vt([l({type:String})],ht.prototype,"minWidth",2),vt([ee("menu")],ht.prototype,"menu",2),vt([se({selector:"sonic-menu-item"})],ht.prototype,"menuChildren",2),vt([se({slot:"more",selector:"*"})],ht.prototype,"moreElements",2),vt([j()],ht.prototype,"hasMoreElements",2),ht=vt([w(El)],ht);var Nl=Object.defineProperty,Tl=Object.getOwnPropertyDescriptor,Pr=(r,t,s,i)=>{for(var e=i>1?void 0:i?Tl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Nl(t,s,e),e};const jl="sonic-modal-actions";let Ss=class extends v{firstUpdated(r){var t;(t=this.buttons)==null||t.forEach(s=>{s.addEventListener("click",()=>{if(s.getAttribute("hideModal")!="false"){const i=this.closest("sonic-modal");i==null||i.hide()}})}),super.firstUpdated(r)}render(){return g`<slot></slot>`}};Ss.styles=[P`
2668
2668
  :host {
2669
2669
  display: flex;
2670
2670
  gap: 0.5rem;
2671
2671
  margin-top: auto;
2672
2672
  padding-top: 1.5rem;
2673
2673
  }
2674
- `],_r([se({selector:"sonic-button"})],Ss.prototype,"buttons",2),Ss=_r([w(Nl)],Ss);var Tl=Object.defineProperty,jl=Object.getOwnPropertyDescriptor,xr=(r,t,s,i)=>{for(var e=i>1?void 0:i?jl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Tl(t,s,e),e};const Ml="sonic-modal-close";let Os=class extends v{render(){return g`<sonic-button reset=${x(this.reset)} shape="circle" @click=${this.handleClick}
2674
+ `],Pr([se({selector:"sonic-button"})],Ss.prototype,"buttons",2),Ss=Pr([w(jl)],Ss);var Ml=Object.defineProperty,Il=Object.getOwnPropertyDescriptor,$r=(r,t,s,i)=>{for(var e=i>1?void 0:i?Il(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ml(t,s,e),e};const Rl="sonic-modal-close";let Os=class extends v{render(){return g`<sonic-button reset=${x(this.reset)} shape="circle" @click=${this.handleClick}
2675
2675
  ><sonic-icon name="cancel" size="lg"></sonic-icon
2676
- ></sonic-button>`}handleClick(){J.getClosestElement(this,"sonic-modal").hide()}};Os.styles=[P`
2676
+ ></sonic-button>`}handleClick(){X.getClosestElement(this,"sonic-modal").hide()}};Os.styles=[P`
2677
2677
  :host {
2678
2678
  position: sticky;
2679
2679
  display: block;
@@ -2684,12 +2684,12 @@ ${this.value}</textarea
2684
2684
  transform: translate3d(calc(var(--sc-modal-px)), calc(-1 * var(--sc-modal-py)), 0);
2685
2685
  z-index: 20;
2686
2686
  }
2687
- `],xr([l()],Os.prototype,"reset",2),Os=xr([w(Ml)],Os);var Il=Object.defineProperty,zl=Object.getOwnPropertyDescriptor,Fl=(r,t,s,i)=>{for(var e=i>1?void 0:i?zl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Il(t,s,e),e};const Rl="sonic-modal-content";let hi=class extends v{render(){return g`<slot></slot>`}};hi.styles=[P`
2687
+ `],$r([l()],Os.prototype,"reset",2),Os=$r([w(Rl)],Os);var Fl=Object.defineProperty,zl=Object.getOwnPropertyDescriptor,Ul=(r,t,s,i)=>{for(var e=i>1?void 0:i?zl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Fl(t,s,e),e};const Vl="sonic-modal-content";let pi=class extends v{render(){return g`<slot></slot>`}};pi.styles=[P`
2688
2688
  :host {
2689
2689
  display: block;
2690
2690
  width: 100%;
2691
2691
  }
2692
- `],hi=Fl([w(Rl)],hi);var Ul=Object.defineProperty,Vl=Object.getOwnPropertyDescriptor,Bl=(r,t,s,i)=>{for(var e=i>1?void 0:i?Vl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ul(t,s,e),e};const Hl="sonic-modal-subtitle";let di=class extends v{render(){return g`<slot></slot>`}};di.styles=[P`
2692
+ `],pi=Ul([w(Vl)],pi);var Bl=Object.defineProperty,Hl=Object.getOwnPropertyDescriptor,ql=(r,t,s,i)=>{for(var e=i>1?void 0:i?Hl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Bl(t,s,e),e};const Wl="sonic-modal-subtitle";let ui=class extends v{render(){return g`<slot></slot>`}};ui.styles=[P`
2693
2693
  :host {
2694
2694
  font-size: 1.1rem;
2695
2695
  display: block;
@@ -2698,7 +2698,7 @@ ${this.value}</textarea
2698
2698
  font-family: var(--sc-headings-font-family);
2699
2699
  font-weight: var(--sc-headings-font-weight);
2700
2700
  }
2701
- `],di=Bl([w(Hl)],di);var ql=Object.defineProperty,Wl=Object.getOwnPropertyDescriptor,Kl=(r,t,s,i)=>{for(var e=i>1?void 0:i?Wl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ql(t,s,e),e};const Zl="sonic-modal-title";let pi=class extends v{render(){return g`<slot></slot>`}};pi.styles=[P`
2701
+ `],ui=ql([w(Wl)],ui);var Kl=Object.defineProperty,Zl=Object.getOwnPropertyDescriptor,Gl=(r,t,s,i)=>{for(var e=i>1?void 0:i?Zl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Kl(t,s,e),e};const Yl="sonic-modal-title";let fi=class extends v{render(){return g`<slot></slot>`}};fi.styles=[P`
2702
2702
  :host {
2703
2703
  font-weight: bold;
2704
2704
  font-size: 1.5rem;
@@ -2706,17 +2706,17 @@ ${this.value}</textarea
2706
2706
  line-height: var(--sc-headings-line-height);
2707
2707
  font-family: var(--sc-headings-font-family);
2708
2708
  }
2709
- `],pi=Kl([w(Zl)],pi);var Gl=Object.defineProperty,Yl=Object.getOwnPropertyDescriptor,et=(r,t,s,i)=>{for(var e=i>1?void 0:i?Yl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Gl(t,s,e),e};const Pr="sonic-modal";let U=class extends G(v){constructor(){super(...arguments),this.forceAction=!1,this.removeOnHide=!1,this.removeHashOnHide=!1,this.align="left",this.padding="var(--sc-modal-py) var(--sc-modal-px)",this.maxWidth="var(--sc-modal-max-w) ",this.maxHeight="var(--sc-modal-max-h) ",this.width="100%",this.height="auto",this.zIndex="var(--sc-modal-z-index)",this.fullScreen=!1,this.visible=!1}static create(r){const t=document.createElement(Pr);return t.options=r,r.removeHashOnHide===!0&&t.setAttribute("removeHashOnHide","true"),r.removeOnHide===!0&&t.setAttribute("removeOnHide","true"),r.maxWidth&&(t.maxWidth=r==null?void 0:r.maxWidth),r.width&&(t.width=r==null?void 0:r.width),r.maxHeight&&(t.maxHeight=r==null?void 0:r.maxHeight),r.height&&(t.height=r==null?void 0:r.height),r.forceAction&&(t.forceAction=!0),r.paddingX&&t.style.setProperty("--sc-modal-px",r==null?void 0:r.paddingX),r.paddingY&&t.style.setProperty("--sc-modal-py",r==null?void 0:r.paddingY),r.zIndex&&t.style.setProperty("--sc-modal-z-index",r==null?void 0:r.zIndex),gt.getPopContainer().appendChild(t),t.show(),t}connectedCallback(){U.modals.push(this),super.connectedCallback(),this.handleFullsceen()}disconnectedCallback(){U.modals.splice(U.modals.indexOf(this),1),super.disconnectedCallback()}updated(){const r=this;document.addEventListener("keydown",this.handleEscape),r.closeBtn.forEach(t=>{t.addEventListener("click",function(){r.hide()},{once:!0})})}willUpdate(r){r.has("fullScreen")&&this.handleFullsceen(),super.willUpdate(r)}render(){var s;if(this.visible==!1)return $;const r={padding:this.padding,maxWidth:this.maxWidth,maxHeight:this.maxHeight,width:this.width,height:this.height,zIndex:this.zIndex,borderRadius:this.fullScreen?"0":"var(--sc-modal-rounded)"},t={maxWidth:this.maxWidth,maxHeight:this.maxHeight,width:this.width,height:this.height,borderRadius:this.fullScreen?"0":"var(--sc-modal-rounded)"};return g`<div
2709
+ `],fi=Gl([w(Yl)],fi);var Ql=Object.defineProperty,Xl=Object.getOwnPropertyDescriptor,et=(r,t,s,i)=>{for(var e=i>1?void 0:i?Xl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ql(t,s,e),e};const Cr="sonic-modal";let U=class extends G(v){constructor(){super(...arguments),this.forceAction=!1,this.removeOnHide=!1,this.removeHashOnHide=!1,this.align="left",this.padding="var(--sc-modal-py) var(--sc-modal-px)",this.maxWidth="var(--sc-modal-max-w) ",this.maxHeight="var(--sc-modal-max-h) ",this.width="100%",this.height="auto",this.zIndex="var(--sc-modal-z-index)",this.fullScreen=!1,this.visible=!1}static create(r){const t=document.createElement(Cr);return t.options=r,r.removeHashOnHide===!0&&t.setAttribute("removeHashOnHide","true"),r.removeOnHide===!0&&t.setAttribute("removeOnHide","true"),r.maxWidth&&(t.maxWidth=r==null?void 0:r.maxWidth),r.width&&(t.width=r==null?void 0:r.width),r.maxHeight&&(t.maxHeight=r==null?void 0:r.maxHeight),r.height&&(t.height=r==null?void 0:r.height),r.forceAction&&(t.forceAction=!0),r.paddingX&&t.style.setProperty("--sc-modal-px",r==null?void 0:r.paddingX),r.paddingY&&t.style.setProperty("--sc-modal-py",r==null?void 0:r.paddingY),r.zIndex&&t.style.setProperty("--sc-modal-z-index",r==null?void 0:r.zIndex),gt.getPopContainer().appendChild(t),t.show(),t}connectedCallback(){U.modals.push(this),super.connectedCallback(),this.handleFullsceen()}disconnectedCallback(){U.modals.splice(U.modals.indexOf(this),1),super.disconnectedCallback()}updated(){const r=this;document.addEventListener("keydown",this.handleEscape),r.closeBtn.forEach(t=>{t.addEventListener("click",function(){r.hide()},{once:!0})})}willUpdate(r){r.has("fullScreen")&&this.handleFullsceen(),super.willUpdate(r)}render(){var s;if(this.visible==!1)return $;const r={padding:this.padding,maxWidth:this.maxWidth,maxHeight:this.maxHeight,width:this.width,height:this.height,zIndex:this.zIndex,borderRadius:this.fullScreen?"0":"var(--sc-modal-rounded)"},t={maxWidth:this.maxWidth,maxHeight:this.maxHeight,width:this.width,height:this.height,borderRadius:this.fullScreen?"0":"var(--sc-modal-rounded)"};return g`<div
2710
2710
  class="modal-wrapper"
2711
2711
  style=${dt(t)}
2712
- ${fs({out:Ro})}
2712
+ ${gs({out:Vo})}
2713
2713
  tabindex="0"
2714
2714
  >
2715
2715
  <div
2716
2716
  part="modal"
2717
2717
  class="modal custom-scroll"
2718
2718
  style=${dt(r)}
2719
- ${fs({keyframeOptions:{duration:400,easing:"cubic-bezier(0.250, 0.250, 0.420, 1.225)"},in:[{transform:"translateY(25%) scale(1)",boxShadow:"0 0 0 rgba(0,0,0,0)",opacity:0}],out:[{transform:"translateY(20%) scale(1)",boxShadow:"0 0 0 rgba(0,0,0,0)",opacity:0}]})}
2719
+ ${gs({keyframeOptions:{duration:400,easing:"cubic-bezier(0.250, 0.250, 0.420, 1.225)"},in:[{transform:"translateY(25%) scale(1)",boxShadow:"0 0 0 rgba(0,0,0,0)",opacity:0}],out:[{transform:"translateY(20%) scale(1)",boxShadow:"0 0 0 rgba(0,0,0,0)",opacity:0}]})}
2720
2720
  >
2721
2721
  <div class="modal-content">
2722
2722
  ${(s=this.options)!=null&&s.forceAction?$:g`<sonic-modal-close></sonic-modal-close>`} ${this.modalFragment("title")}
@@ -2729,8 +2729,8 @@ ${this.value}</textarea
2729
2729
  <div
2730
2730
  class="overlay"
2731
2731
  @click="${this.forceAction?null:this.hide}"
2732
- ${fs({keyframeOptions:{duration:500},in:Uo,out:[{opacity:0,pointerEvents:"none"}]})}
2733
- ></div>`}modalFragment(r){var i;const t=(i=this.options)==null?void 0:i[r];if(!t)return $;let s;switch(t instanceof Object?s=t:s=I(t),r){case"title":return g`<sonic-modal-title>${s}</sonic-modal-title>`;case"subtitle":return g`<sonic-modal-subtitle>${s}</sonic-modal-subtitle>`;case"content":return g`<sonic-modal-content>${s}</sonic-modal-content>`;case"actions":return g`<sonic-modal-actions>${s}</sonic-modal-actions>`;default:return $}}show(){var r,t;this.visible=!0,(r=this.modalElement)==null||r.setAttribute("tabindex","0"),(t=this.modalElement)==null||t.focus(),this.dispatchEvent(new CustomEvent("show"))}hide(){var r;this.visible=!1,(r=this.modalElement)==null||r.setAttribute("tabindex","-1"),this.dispatchEvent(new CustomEvent("hide")),this.hasAttribute("resetDataProviderOnHide")&&tt.get(this.getAttribute("resetDataProviderOnHide")).set({}),this.removeOnHide&&this.remove(),setTimeout(()=>{this.dispatchEvent(new CustomEvent("hidden")),this.removeHashOnHide&&window.history.replaceState({},"",window.location.pathname)},480)}dispose(){this.hide(),this.remove()}static disposeAll(){U.modals.forEach(r=>{r.dispose()})}handleEscape(r){r.key==="Escape"&&U.modals.forEach(t=>{t.forceAction||t.hide()})}handleFullsceen(){this.fullScreen&&(this.width="100%",this.height="100%",this.maxWidth="none",this.maxHeight="none")}};U.styles=[Ge,P`
2732
+ ${gs({keyframeOptions:{duration:500},in:Bo,out:[{opacity:0,pointerEvents:"none"}]})}
2733
+ ></div>`}modalFragment(r){var i;const t=(i=this.options)==null?void 0:i[r];if(!t)return $;let s;switch(t instanceof Object?s=t:s=I(t),r){case"title":return g`<sonic-modal-title>${s}</sonic-modal-title>`;case"subtitle":return g`<sonic-modal-subtitle>${s}</sonic-modal-subtitle>`;case"content":return g`<sonic-modal-content>${s}</sonic-modal-content>`;case"actions":return g`<sonic-modal-actions>${s}</sonic-modal-actions>`;default:return $}}show(){var r,t;this.visible=!0,(r=this.modalElement)==null||r.setAttribute("tabindex","0"),(t=this.modalElement)==null||t.focus(),this.dispatchEvent(new CustomEvent("show"))}hide(){var r;this.visible=!1,(r=this.modalElement)==null||r.setAttribute("tabindex","-1"),this.dispatchEvent(new CustomEvent("hide")),this.hasAttribute("resetDataProviderOnHide")&&tt.get(this.getAttribute("resetDataProviderOnHide")).set({}),this.removeOnHide&&this.remove(),setTimeout(()=>{this.dispatchEvent(new CustomEvent("hidden")),this.removeHashOnHide&&window.history.replaceState({},"",window.location.pathname)},480)}dispose(){this.hide(),this.remove()}static disposeAll(){U.modals.forEach(r=>{r.dispose()})}handleEscape(r){r.key==="Escape"&&U.modals.forEach(t=>{t.forceAction||t.hide()})}handleFullsceen(){this.fullScreen&&(this.width="100%",this.height="100%",this.maxWidth="none",this.maxHeight="none")}};U.styles=[Ze,P`
2734
2734
  :host {
2735
2735
  --sc-modal-py: 2.5rem;
2736
2736
  --sc-modal-px: 1.5rem;
@@ -2843,9 +2843,9 @@ ${this.value}</textarea
2843
2843
  :host([rounded="none"]) modal {
2844
2844
  --sc-img-radius: 0 !important;
2845
2845
  }
2846
- `],U.modals=[],et([l({type:Boolean})],U.prototype,"forceAction",2),et([l({type:Boolean})],U.prototype,"removeOnHide",2),et([l({type:Boolean})],U.prototype,"removeHashOnHide",2),et([l({type:String,reflect:!0})],U.prototype,"align",2),et([l({type:String})],U.prototype,"padding",2),et([l({type:String})],U.prototype,"maxWidth",2),et([l({type:String})],U.prototype,"maxHeight",2),et([l({type:String})],U.prototype,"width",2),et([l({type:String})],U.prototype,"height",2),et([l({type:String})],U.prototype,"zIndex",2),et([l({type:Object})],U.prototype,"options",2),et([l({type:Boolean,reflect:!0})],U.prototype,"fullScreen",2),et([l({type:Boolean,reflect:!0})],U.prototype,"visible",2),et([ee(".modal-wrapper")],U.prototype,"modalWrapper",2),et([ee(".modal")],U.prototype,"modalElement",2),et([se({selector:"sonic-modal-close"})],U.prototype,"closeBtn",2),U=et([w(Pr)],U),typeof window<"u"&&(window.SonicModal=U);var Ql=Object.defineProperty,Jl=Object.getOwnPropertyDescriptor,Et=(r,t,s,i)=>{for(var e=i>1?void 0:i?Jl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ql(t,s,e),e};const Xl={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty",default:"info-empty"},tc="sonic-alert";let Pt=class extends v{constructor(){super(...arguments),this.label="",this.noIcon=!1,this.text="",this.id=new Date().getTime().toString(),this.dismissible=!1,this.background=!1,this.status="default",this.dismissForever=!1}render(){if(this.dismissForever){const r=localStorage.getItem("sonic-alert-dismissed")||"{}";if(JSON.parse(r)[this.id])return $}return g`<div part="alert" class="alert">
2846
+ `],U.modals=[],et([l({type:Boolean})],U.prototype,"forceAction",2),et([l({type:Boolean})],U.prototype,"removeOnHide",2),et([l({type:Boolean})],U.prototype,"removeHashOnHide",2),et([l({type:String,reflect:!0})],U.prototype,"align",2),et([l({type:String})],U.prototype,"padding",2),et([l({type:String})],U.prototype,"maxWidth",2),et([l({type:String})],U.prototype,"maxHeight",2),et([l({type:String})],U.prototype,"width",2),et([l({type:String})],U.prototype,"height",2),et([l({type:String})],U.prototype,"zIndex",2),et([l({type:Object})],U.prototype,"options",2),et([l({type:Boolean,reflect:!0})],U.prototype,"fullScreen",2),et([l({type:Boolean,reflect:!0})],U.prototype,"visible",2),et([ee(".modal-wrapper")],U.prototype,"modalWrapper",2),et([ee(".modal")],U.prototype,"modalElement",2),et([se({selector:"sonic-modal-close"})],U.prototype,"closeBtn",2),U=et([w(Cr)],U),typeof window<"u"&&(window.SonicModal=U);var Jl=Object.defineProperty,tc=Object.getOwnPropertyDescriptor,Et=(r,t,s,i)=>{for(var e=i>1?void 0:i?tc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Jl(t,s,e),e};const ec={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty",default:"info-empty"},sc="sonic-alert";let Pt=class extends v{constructor(){super(...arguments),this.label="",this.noIcon=!1,this.text="",this.id=new Date().getTime().toString(),this.dismissible=!1,this.background=!1,this.status="default",this.dismissForever=!1}render(){if(this.dismissForever){const r=localStorage.getItem("sonic-alert-dismissed")||"{}";if(JSON.parse(r)[this.id])return $}return g`<div part="alert" class="alert">
2847
2847
  <slot name="icon" class="${this.noIcon?"hidden":$}"
2848
- >${this.noIcon?$:g`<div>${this.status&&g`<sonic-icon name=${Xl[this.status]}></sonic-icon>`}</div>`}</slot
2848
+ >${this.noIcon?$:g`<div>${this.status&&g`<sonic-icon name=${ec[this.status]}></sonic-icon>`}</div>`}</slot
2849
2849
  >
2850
2850
  <div>
2851
2851
  ${this.label?g`<span class="label">${I(this.label)}</span>`:$}
@@ -2946,7 +2946,7 @@ ${this.value}</textarea
2946
2946
  top: 0.25rem;
2947
2947
  right: 0.25rem;
2948
2948
  }
2949
- `],Et([l({type:String})],Pt.prototype,"label",2),Et([l({type:Boolean,reflect:!0})],Pt.prototype,"noIcon",2),Et([l({type:String})],Pt.prototype,"text",2),Et([l({type:String})],Pt.prototype,"id",2),Et([l({type:String,reflect:!0})],Pt.prototype,"size",2),Et([l({type:Boolean,reflect:!0})],Pt.prototype,"dismissible",2),Et([l({type:Boolean,reflect:!0})],Pt.prototype,"background",2),Et([l({type:String,reflect:!0})],Pt.prototype,"status",2),Et([l({type:Boolean,reflect:!0})],Pt.prototype,"dismissForever",2),Pt=Et([w(tc)],Pt);var ec=Object.defineProperty,sc=Object.getOwnPropertyDescriptor,$r=(r,t,s,i)=>{for(var e=i>1?void 0:i?sc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ec(t,s,e),e};const ic="sonic-toast-message-subscriber";let ui=class extends G(v){constructor(){super(...arguments),this._messages=[]}get messages(){return this._messages}set messages(r){this._messages=r,this.messages&&r.forEach(t=>{t.type=="public"&&E.add({text:t.content||"",status:t.status})})}render(){return $}};$r([l({type:Array})],ui.prototype,"messages",1),ui=$r([w(ic)],ui);var rc=Object.defineProperty,oc=Object.getOwnPropertyDescriptor,ts=(r,t,s,i)=>{for(var e=i>1?void 0:i?oc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&rc(t,s,e),e};const nc="sonic-tooltip";let be=class extends v{constructor(){super(...arguments),this.label="",this.disabled=!1,this.focusable=!1}connectedCallback(){this.focusable&&this.setAttribute("tabindex","0"),super.connectedCallback()}render(){const r=this.disabled||this.label==""?"disabled":"";return g`<div data-tooltip-text="${this.label.trim().replace("&nbsp;"," ")}" class="tooltip ${r}">
2949
+ `],Et([l({type:String})],Pt.prototype,"label",2),Et([l({type:Boolean,reflect:!0})],Pt.prototype,"noIcon",2),Et([l({type:String})],Pt.prototype,"text",2),Et([l({type:String})],Pt.prototype,"id",2),Et([l({type:String,reflect:!0})],Pt.prototype,"size",2),Et([l({type:Boolean,reflect:!0})],Pt.prototype,"dismissible",2),Et([l({type:Boolean,reflect:!0})],Pt.prototype,"background",2),Et([l({type:String,reflect:!0})],Pt.prototype,"status",2),Et([l({type:Boolean,reflect:!0})],Pt.prototype,"dismissForever",2),Pt=Et([w(sc)],Pt);var ic=Object.defineProperty,rc=Object.getOwnPropertyDescriptor,Ar=(r,t,s,i)=>{for(var e=i>1?void 0:i?rc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ic(t,s,e),e};const oc="sonic-toast-message-subscriber";let gi=class extends G(v){constructor(){super(...arguments),this._messages=[]}get messages(){return this._messages}set messages(r){this._messages=r,this.messages&&r.forEach(t=>{t.type=="public"&&N.add({text:t.content||"",status:t.status})})}render(){return $}};Ar([l({type:Array})],gi.prototype,"messages",1),gi=Ar([w(oc)],gi);var nc=Object.defineProperty,ac=Object.getOwnPropertyDescriptor,ts=(r,t,s,i)=>{for(var e=i>1?void 0:i?ac(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&nc(t,s,e),e};const lc="sonic-tooltip";let be=class extends v{constructor(){super(...arguments),this.label="",this.disabled=!1,this.focusable=!1}connectedCallback(){this.focusable&&this.setAttribute("tabindex","0"),super.connectedCallback()}render(){const r=this.disabled||this.label==""?"disabled":"";return g`<div data-tooltip-text="${this.label.trim().replace("&nbsp;"," ")}" class="tooltip ${r}">
2950
2950
  <slot></slot>
2951
2951
  </div>`}};be.styles=[P`
2952
2952
  :host {
@@ -3017,7 +3017,7 @@ ${this.value}</textarea
3017
3017
  transform: translateY(-50%);
3018
3018
  left: calc(100% + 0.25rem);
3019
3019
  }
3020
- `],ts([l({type:String})],be.prototype,"label",2),ts([l({type:String,reflect:!0})],be.prototype,"placement",2),ts([l({type:Boolean})],be.prototype,"disabled",2),ts([l({type:Boolean})],be.prototype,"focusable",2),be=ts([w(nc)],be);var ac=Object.defineProperty,lc=Object.getOwnPropertyDescriptor,Nt=(r,t,s,i)=>{for(var e=i>1?void 0:i?lc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ac(t,s,e),e};const cc="sonic-divider";let $t=class extends v{constructor(){super(...arguments),this.label="",this.align="center",this.vertical=!1,this.noMargin=!1,this.dashed=!1,this.dotted=!1}firstUpdated(r){var t,s;super.firstUpdated(r),(this.label||(t=this.slotNodes)!=null&&t.length)&&((s=this.divider)==null||s.classList.add("has-text"))}render(){return g`<div part="divider">
3020
+ `],ts([l({type:String})],be.prototype,"label",2),ts([l({type:String,reflect:!0})],be.prototype,"placement",2),ts([l({type:Boolean})],be.prototype,"disabled",2),ts([l({type:Boolean})],be.prototype,"focusable",2),be=ts([w(lc)],be);var cc=Object.defineProperty,hc=Object.getOwnPropertyDescriptor,Nt=(r,t,s,i)=>{for(var e=i>1?void 0:i?hc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&cc(t,s,e),e};const dc="sonic-divider";let $t=class extends v{constructor(){super(...arguments),this.label="",this.align="center",this.vertical=!1,this.noMargin=!1,this.dashed=!1,this.dotted=!1}firstUpdated(r){var t,s;super.firstUpdated(r),(this.label||(t=this.slotNodes)!=null&&t.length)&&((s=this.divider)==null||s.classList.add("has-text"))}render(){return g`<div part="divider">
3021
3021
  <span class="text">${I(this.label?this.label:"")}<slot></slot></span>
3022
3022
  </div>`}};$t.styles=[P`
3023
3023
  :host {
@@ -3145,18 +3145,18 @@ ${this.value}</textarea
3145
3145
  :host([dashed]) {
3146
3146
  --sc-divider-border-style: dashed;
3147
3147
  }
3148
- `],Nt([st({flatten:!0})],$t.prototype,"slotNodes",2),Nt([ee("div")],$t.prototype,"divider",2),Nt([l({type:String})],$t.prototype,"label",2),Nt([l({type:String,reflect:!0})],$t.prototype,"size",2),Nt([l({type:String,reflect:!0})],$t.prototype,"align",2),Nt([l({type:Boolean,reflect:!0})],$t.prototype,"vertical",2),Nt([l({type:Boolean,reflect:!0})],$t.prototype,"noMargin",2),Nt([l({type:Boolean,reflect:!0})],$t.prototype,"dashed",2),Nt([l({type:Boolean,reflect:!0})],$t.prototype,"dotted",2),$t=Nt([w(cc)],$t);var hc=Object.defineProperty,dc=Object.getOwnPropertyDescriptor,pc=(r,t,s,i)=>{for(var e=i>1?void 0:i?dc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&hc(t,s,e),e};const uc="sonic-card-header-description";let fi=class extends v{render(){return g`
3148
+ `],Nt([st({flatten:!0})],$t.prototype,"slotNodes",2),Nt([ee("div")],$t.prototype,"divider",2),Nt([l({type:String})],$t.prototype,"label",2),Nt([l({type:String,reflect:!0})],$t.prototype,"size",2),Nt([l({type:String,reflect:!0})],$t.prototype,"align",2),Nt([l({type:Boolean,reflect:!0})],$t.prototype,"vertical",2),Nt([l({type:Boolean,reflect:!0})],$t.prototype,"noMargin",2),Nt([l({type:Boolean,reflect:!0})],$t.prototype,"dashed",2),Nt([l({type:Boolean,reflect:!0})],$t.prototype,"dotted",2),$t=Nt([w(dc)],$t);var pc=Object.defineProperty,uc=Object.getOwnPropertyDescriptor,fc=(r,t,s,i)=>{for(var e=i>1?void 0:i?uc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&pc(t,s,e),e};const gc="sonic-card-header-description";let mi=class extends v{render(){return g`
3149
3149
  <div>
3150
3150
  <slot></slot>
3151
3151
  </div>
3152
- `}};fi.styles=[P`
3152
+ `}};mi.styles=[P`
3153
3153
  div {
3154
3154
  margin-top: 0.1em;
3155
3155
  font-family: var(--sc-font-family-base);
3156
3156
  font-size: 0.7em;
3157
3157
  font-weight: var(--sc-font-style-base);
3158
3158
  }
3159
- `],fi=pc([w(uc)],fi);var fc=Object.defineProperty,gc=Object.getOwnPropertyDescriptor,gi=(r,t,s,i)=>{for(var e=i>1?void 0:i?gc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&fc(t,s,e),e};const mc="sonic-card-header";let es=class extends v{render(){return g`
3159
+ `],mi=fc([w(gc)],mi);var mc=Object.defineProperty,bc=Object.getOwnPropertyDescriptor,bi=(r,t,s,i)=>{for(var e=i>1?void 0:i?bc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&mc(t,s,e),e};const vc="sonic-card-header";let es=class extends v{render(){return g`
3160
3160
  <div class="header">
3161
3161
  <div class="header-content">
3162
3162
  ${I(this.label)}
@@ -3198,11 +3198,11 @@ ${this.value}</textarea
3198
3198
  slot[name="suffix"] {
3199
3199
  flex-shrink: 0;
3200
3200
  }
3201
- `],gi([l()],es.prototype,"label",2),gi([l()],es.prototype,"description",2),es=gi([w(mc)],es);var bc=Object.defineProperty,vc=Object.getOwnPropertyDescriptor,yc=(r,t,s,i)=>{for(var e=i>1?void 0:i?vc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&bc(t,s,e),e};const wc="sonic-card-main";let Cr=class extends v{render(){return g`
3201
+ `],bi([l()],es.prototype,"label",2),bi([l()],es.prototype,"description",2),es=bi([w(vc)],es);var yc=Object.defineProperty,wc=Object.getOwnPropertyDescriptor,_c=(r,t,s,i)=>{for(var e=i>1?void 0:i?wc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&yc(t,s,e),e};const xc="sonic-card-main";let Sr=class extends v{render(){return g`
3202
3202
  <div>
3203
3203
  <slot></slot>
3204
3204
  </div>
3205
- `}};Cr=yc([w(wc)],Cr);var _c=Object.defineProperty,xc=Object.getOwnPropertyDescriptor,Pc=(r,t,s,i)=>{for(var e=i>1?void 0:i?xc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&_c(t,s,e),e};const $c="sonic-card-footer";let Ar=class extends v{render(){return g` <slot></slot> `}};Ar=Pc([w($c)],Ar);var Cc=Object.defineProperty,Ac=Object.getOwnPropertyDescriptor,Sr=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ac(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Cc(t,s,e),e};const Sc="sonic-card";let Ds=class extends v{constructor(){super(...arguments),this.type="default"}render(){return g`
3205
+ `}};Sr=_c([w(xc)],Sr);var Pc=Object.defineProperty,$c=Object.getOwnPropertyDescriptor,Cc=(r,t,s,i)=>{for(var e=i>1?void 0:i?$c(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Pc(t,s,e),e};const Ac="sonic-card-footer";let Or=class extends v{render(){return g` <slot></slot> `}};Or=Cc([w(Ac)],Or);var Sc=Object.defineProperty,Oc=Object.getOwnPropertyDescriptor,Dr=(r,t,s,i)=>{for(var e=i>1?void 0:i?Oc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Sc(t,s,e),e};const Dc="sonic-card";let Ds=class extends v{constructor(){super(...arguments),this.type="default"}render(){return g`
3206
3206
  <div part="card" class="card">
3207
3207
  <slot></slot>
3208
3208
  </div>
@@ -3282,7 +3282,7 @@ ${this.value}</textarea
3282
3282
  --sc-card-color: var(--sc-base);
3283
3283
  --sc-card-bg: var(--sc-base-900);
3284
3284
  }
3285
- `],Sr([l({type:String,reflect:!0})],Ds.prototype,"type",2),Ds=Sr([w(Sc)],Ds);const mi=P`
3285
+ `],Dr([l({type:String,reflect:!0})],Ds.prototype,"type",2),Ds=Dr([w(Dc)],Ds);const vi=P`
3286
3286
  :host {
3287
3287
  --sc-color: inherit;
3288
3288
  color: var(--sc-color);
@@ -3339,7 +3339,7 @@ ${this.value}</textarea
3339
3339
  .inherit-bg {
3340
3340
  color: inherit;
3341
3341
  }
3342
- `;var Oc=Object.defineProperty,Dc=Object.getOwnPropertyDescriptor,ss=(r,t,s,i)=>{for(var e=i>1?void 0:i?Dc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Oc(t,s,e),e};const kc="sonic-tr";let ve=class extends G(v){constructor(){super(...arguments),this._metadata_={}}willUpdate(r){r.has("_metadata_")&&(this.even=!!this._metadata_.even,this.odd=!!this._metadata_.odd,this.last=!!this._metadata_.lastChild),super.willUpdate(r)}render(){return g`<slot></slot>`}};ve.styles=[mi,P`
3342
+ `;var kc=Object.defineProperty,Lc=Object.getOwnPropertyDescriptor,ss=(r,t,s,i)=>{for(var e=i>1?void 0:i?Lc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&kc(t,s,e),e};const Ec="sonic-tr";let ve=class extends G(v){constructor(){super(...arguments),this._metadata_={}}willUpdate(r){r.has("_metadata_")&&(this.even=!!this._metadata_.even,this.odd=!!this._metadata_.odd,this.last=!!this._metadata_.lastChild),super.willUpdate(r)}render(){return g`<slot></slot>`}};ve.styles=[vi,P`
3343
3343
  :host {
3344
3344
  display: table-row;
3345
3345
  }
@@ -3357,9 +3357,9 @@ ${this.value}</textarea
3357
3357
  :host(:hover) {
3358
3358
  background: var(--sc-table-hover-bg) !important;
3359
3359
  }
3360
- `],ss([l({type:Object})],ve.prototype,"_metadata_",2),ss([l({type:Boolean,reflect:!0})],ve.prototype,"even",2),ss([l({type:Boolean,reflect:!0})],ve.prototype,"odd",2),ss([l({type:Boolean,reflect:!0})],ve.prototype,"last",2),ve=ss([w(kc)],ve);var Lc=Object.defineProperty,Ec=Object.getOwnPropertyDescriptor,ye=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ec(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Lc(t,s,e),e};const Nc="sonic-th";let Ut=class extends v{render(){const r={textAlign:this.align,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return g`<th part="th" style=${dt(r)} colspan=${x(this.colSpan)} rowspan=${x(this.rowSpan)}>
3360
+ `],ss([l({type:Object})],ve.prototype,"_metadata_",2),ss([l({type:Boolean,reflect:!0})],ve.prototype,"even",2),ss([l({type:Boolean,reflect:!0})],ve.prototype,"odd",2),ss([l({type:Boolean,reflect:!0})],ve.prototype,"last",2),ve=ss([w(Ec)],ve);var Nc=Object.defineProperty,Tc=Object.getOwnPropertyDescriptor,ye=(r,t,s,i)=>{for(var e=i>1?void 0:i?Tc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Nc(t,s,e),e};const jc="sonic-th";let Ut=class extends v{render(){const r={textAlign:this.align,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return g`<th part="th" style=${dt(r)} colspan=${x(this.colSpan)} rowspan=${x(this.rowSpan)}>
3361
3361
  <slot></slot>
3362
- </th> `}};Ut.styles=[mi,P`
3362
+ </th> `}};Ut.styles=[vi,P`
3363
3363
  :host {
3364
3364
  display: contents;
3365
3365
  background: var(--sc-table-bg);
@@ -3381,9 +3381,9 @@ ${this.value}</textarea
3381
3381
  :host([noBorder]) th {
3382
3382
  border-bottom: none;
3383
3383
  }
3384
- `],ye([l({type:Number})],Ut.prototype,"colSpan",2),ye([l({type:Number})],Ut.prototype,"rowSpan",2),ye([l({type:String})],Ut.prototype,"align",2),ye([l({type:String})],Ut.prototype,"minWidth",2),ye([l({type:String})],Ut.prototype,"maxWidth",2),ye([l({type:String})],Ut.prototype,"width",2),Ut=ye([w(Nc)],Ut);var Tc=Object.defineProperty,jc=Object.getOwnPropertyDescriptor,Jt=(r,t,s,i)=>{for(var e=i>1?void 0:i?jc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Tc(t,s,e),e};const Mc="sonic-td";let Tt=class extends v{render(){const r={textAlign:this.align,verticalAlign:this.vAlign,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return g`<td part="td" style=${dt(r)} colspan=${x(this.colSpan)} rowspan=${x(this.rowSpan)}>
3384
+ `],ye([l({type:Number})],Ut.prototype,"colSpan",2),ye([l({type:Number})],Ut.prototype,"rowSpan",2),ye([l({type:String})],Ut.prototype,"align",2),ye([l({type:String})],Ut.prototype,"minWidth",2),ye([l({type:String})],Ut.prototype,"maxWidth",2),ye([l({type:String})],Ut.prototype,"width",2),Ut=ye([w(jc)],Ut);var Mc=Object.defineProperty,Ic=Object.getOwnPropertyDescriptor,Xt=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ic(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Mc(t,s,e),e};const Rc="sonic-td";let Tt=class extends v{render(){const r={textAlign:this.align,verticalAlign:this.vAlign,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return g`<td part="td" style=${dt(r)} colspan=${x(this.colSpan)} rowspan=${x(this.rowSpan)}>
3385
3385
  <slot></slot>
3386
- </td>`}};Tt.styles=[mi,P`
3386
+ </td>`}};Tt.styles=[vi,P`
3387
3387
  :host {
3388
3388
  display: contents;
3389
3389
  }
@@ -3396,13 +3396,13 @@ ${this.value}</textarea
3396
3396
  border-right: var(--sc-table-td-border-r, none);
3397
3397
  border-left: var(--sc-table-td-border-l, none);
3398
3398
  }
3399
- `],Jt([l({type:Number})],Tt.prototype,"colSpan",2),Jt([l({type:Number})],Tt.prototype,"rowSpan",2),Jt([l({type:String})],Tt.prototype,"align",2),Jt([l({type:String})],Tt.prototype,"vAlign",2),Jt([l({type:String})],Tt.prototype,"minWidth",2),Jt([l({type:String})],Tt.prototype,"maxWidth",2),Jt([l({type:String})],Tt.prototype,"width",2),Tt=Jt([w(Mc)],Tt);var Ic=Object.defineProperty,zc=Object.getOwnPropertyDescriptor,Fc=(r,t,s,i)=>{for(var e=i>1?void 0:i?zc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ic(t,s,e),e};const Rc="sonic-thead";let bi=class extends v{render(){return g`<slot></slot>`}};bi.styles=[P`
3399
+ `],Xt([l({type:Number})],Tt.prototype,"colSpan",2),Xt([l({type:Number})],Tt.prototype,"rowSpan",2),Xt([l({type:String})],Tt.prototype,"align",2),Xt([l({type:String})],Tt.prototype,"vAlign",2),Xt([l({type:String})],Tt.prototype,"minWidth",2),Xt([l({type:String})],Tt.prototype,"maxWidth",2),Xt([l({type:String})],Tt.prototype,"width",2),Tt=Xt([w(Rc)],Tt);var Fc=Object.defineProperty,zc=Object.getOwnPropertyDescriptor,Uc=(r,t,s,i)=>{for(var e=i>1?void 0:i?zc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Fc(t,s,e),e};const Vc="sonic-thead";let yi=class extends v{render(){return g`<slot></slot>`}};yi.styles=[P`
3400
3400
  :host {
3401
3401
  display: table-header-group;
3402
3402
  }
3403
- `],bi=Fc([w(Rc)],bi);var Uc=Object.defineProperty,Vc=Object.getOwnPropertyDescriptor,Bc=(r,t,s,i)=>{for(var e=i>1?void 0:i?Vc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Uc(t,s,e),e};const Hc="sonic-tbody";let vi=class extends v{render(){return g`<tbody part="tbody">
3403
+ `],yi=Uc([w(Vc)],yi);var Bc=Object.defineProperty,Hc=Object.getOwnPropertyDescriptor,qc=(r,t,s,i)=>{for(var e=i>1?void 0:i?Hc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Bc(t,s,e),e};const Wc="sonic-tbody";let wi=class extends v{render(){return g`<tbody part="tbody">
3404
3404
  <slot></slot>
3405
- </tbody>`}};vi.styles=[P`
3405
+ </tbody>`}};wi.styles=[P`
3406
3406
  :host {
3407
3407
  display: table-row-group;
3408
3408
  }
@@ -3418,26 +3418,26 @@ ${this.value}</textarea
3418
3418
  ::slotted(sonic-tr:not(:last-child)) {
3419
3419
  border-bottom: var(--sc-form-border-width) solid var(--sc-base-200) !important;
3420
3420
  }
3421
- `],vi=Bc([w(Hc)],vi);var qc=Object.defineProperty,Wc=Object.getOwnPropertyDescriptor,Kc=(r,t,s,i)=>{for(var e=i>1?void 0:i?Wc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&qc(t,s,e),e};const Zc="sonic-tfoot";let yi=class extends v{render(){return g`<tfoot>
3421
+ `],wi=qc([w(Wc)],wi);var Kc=Object.defineProperty,Zc=Object.getOwnPropertyDescriptor,Gc=(r,t,s,i)=>{for(var e=i>1?void 0:i?Zc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Kc(t,s,e),e};const Yc="sonic-tfoot";let _i=class extends v{render(){return g`<tfoot>
3422
3422
  <slot></slot>
3423
- </tfoot>`}};yi.styles=[P`
3423
+ </tfoot>`}};_i.styles=[P`
3424
3424
  :host {
3425
3425
  display: contents;
3426
3426
  }
3427
- `],yi=Kc([w(Zc)],yi);var Gc=Object.defineProperty,Yc=Object.getOwnPropertyDescriptor,Qc=(r,t,s,i)=>{for(var e=i>1?void 0:i?Yc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Gc(t,s,e),e};const Jc="sonic-caption";let wi=class extends v{render(){return g`<slot></slot>`}};wi.styles=[P`
3427
+ `],_i=Gc([w(Yc)],_i);var Qc=Object.defineProperty,Xc=Object.getOwnPropertyDescriptor,Jc=(r,t,s,i)=>{for(var e=i>1?void 0:i?Xc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Qc(t,s,e),e};const th="sonic-caption";let xi=class extends v{render(){return g`<slot></slot>`}};xi.styles=[P`
3428
3428
  :host {
3429
3429
  display: table-caption;
3430
3430
  font-size: 0.75rem;
3431
3431
  color: var(--sc-table-caption-color);
3432
3432
  padding: var(--sc-table-td-py) var(--sc-table-td-px) calc(2 * var(--sc-table-td-py));
3433
3433
  }
3434
- `],wi=Qc([w(Jc)],wi);var Xc=Object.defineProperty,th=Object.getOwnPropertyDescriptor,Le=(r,t,s,i)=>{for(var e=i>1?void 0:i?th(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Xc(t,s,e),e};const eh="sonic-table";let Xt=class extends v{constructor(){super(...arguments),this.bordered=!1,this.rounded=!1,this.noCustomScroll=!1}render(){const r={maxHeight:this.maxHeight};return g`
3434
+ `],xi=Jc([w(th)],xi);var eh=Object.defineProperty,sh=Object.getOwnPropertyDescriptor,Le=(r,t,s,i)=>{for(var e=i>1?void 0:i?sh(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&eh(t,s,e),e};const ih="sonic-table";let Jt=class extends v{constructor(){super(...arguments),this.bordered=!1,this.rounded=!1,this.noCustomScroll=!1}render(){const r={maxHeight:this.maxHeight};return g`
3435
3435
  <div class="table-container ${this.noCustomScroll?"":"custom-scroll"}" style=${dt(r)}>
3436
3436
  <div class="table">
3437
3437
  <slot></slot>
3438
3438
  </div>
3439
3439
  </div>
3440
- `}};Xt.styles=[Ge,At,P`
3440
+ `}};Jt.styles=[Ze,At,P`
3441
3441
  :host {
3442
3442
  --sc-table-fw: var(--sc-font-weight-base);
3443
3443
  --sc-table-fst: var(--sc-font-style-base);
@@ -3477,4 +3477,4 @@ ${this.value}</textarea
3477
3477
  border-radius: var(--sc-rounded);
3478
3478
  --sc-table-td-border-b: var(--sc-border-width) solid var(--sc-table-border-color);
3479
3479
  }
3480
- `],Le([l({type:String,reflect:!0})],Xt.prototype,"size",2),Le([l({type:Boolean,reflect:!0})],Xt.prototype,"bordered",2),Le([l({type:Boolean,reflect:!0})],Xt.prototype,"rounded",2),Le([l({type:Boolean,reflect:!0})],Xt.prototype,"noCustomScroll",2),Le([l({type:String})],Xt.prototype,"maxHeight",2),Xt=Le([w(eh)],Xt);var sh=Object.defineProperty,ih=Object.getOwnPropertyDescriptor,ks=(r,t,s,i)=>{for(var e=i>1?void 0:i?ih(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&sh(t,s,e),e};const rh="sonic-captcha";let is=class extends Ht(v){constructor(){super(...arguments),this.key="",this.action=null,this.zIndex=9999,this.onCaptchaTokenChanged=r=>{r=="request_token"&&(this.formPublisher&&(this.formPublisher.captchaToken=""),this.requestToken())}}connectedCallback(){if(!document.getElementById("captcha-"+this.key)){const r=document.createElement("script");r.src="https://www.google.com/recaptcha/api.js?render="+this.key,r.id="captcha-"+this.key,document.head.appendChild(r)}if(super.connectedCallback(),this.formPublisher=tt.get(this.getAncestorAttributeValue("headersDataProvider")??this.getAncestorAttributeValue("formDataProvider")),!document.getElementById("concorde-recaptcha-css")){const r=document.createElement("style");r.innerHTML=".grecaptcha-badge {z-index: 9999;}",r.id="concorde-recaptcha-css",document.head.appendChild(r)}this.formPublisher&&!this.formPublisher.captchaToken.get()&&(this.formPublisher.needsCaptchaValidation=!0,this.formPublisher.captchaToken.onAssign(this.onCaptchaTokenChanged))}disconnectedCallback(){this.formPublisher&&this.formPublisher.captchaToken.offAssign(this.onCaptchaTokenChanged),super.disconnectedCallback()}requestToken(){var s,i;if(!this.formPublisher)return;const r=(this.action??((s=this.formPublisher.captchaAction)==null?void 0:s.get())??"submit").replace(/[^\w_/]/g,"_"),t=(((i=this.formPublisher.captchaMethod)==null?void 0:i.get())??"POST").toUpperCase();delete this.formPublisher.captchaAction,delete this.formPublisher.captchaMethod,window.grecaptcha.ready(()=>{window.grecaptcha.execute(this.key,{action:t+"//"+r}).then(e=>{this.formPublisher&&(this.formPublisher.captchaToken=e)})})}render(){return g` <slot></slot> `}};ks([l()],is.prototype,"key",2),ks([l()],is.prototype,"action",2),ks([l({type:Number})],is.prototype,"zIndex",2),is=ks([w(rh)],is),window.SonicPublisherManager||(window.SonicPublisherManager=L),window.SonicDataBindObserver||(window.SonicDataBindObserver=Te),window.queueMicrotask=window.queueMicrotask||function(r){Promise.resolve().then(r).catch(t=>setTimeout(()=>{throw t}))};function oh(r){this.__connectedCallbackCalls__||(this.__connectedCallbackCalls__=new Set),this.__connectedCallbackCalls__.add(r)}function nh(r){this.__disconnectedCallbackCalls__||(this.__disconnectedCallbackCalls__=new Set),this.__disconnectedCallbackCalls__.add(r)}function Or(r){if(r.__is__setSubscribable__)return;r.__is__setSubscribable__=!0,r.__onConnected__=oh,r.__onDisconnected__=nh;const t=r.connectedCallback;r.connectedCallback=function(){t.call(this),this.__connectedCallbackCalls__&&this.__connectedCallbackCalls__.forEach(i=>i(this))};const s=r.disconnectedCallback;r.disconnectedCallback=function(){s.call(this),this.__disconnectedCallbackCalls__&&this.__disconnectedCallbackCalls__.forEach(i=>i(this))}}function ah(r){const t=r.split(".");if(t.length==0)return function(){};const s=t.shift()||"";let i=L.get(s);return i=Ke.traverse(i,t),function(e,o){if(!e)return;let n;Or(e),e.__onConnected__(a=>{n=c=>{a[o]=c},i.onAssign(n)}),e.__onDisconnected__(()=>{i.offAssign(n)})}}function lh(...r){const t=[],s=[];for(let i=0;i<r.length;i++){const o=r[i].split(".");if(o.length==0)continue;const n=o.shift()||"";let a=L.get(n);a=Ke.traverse(a,o);const c=new Set,h=d=>{t[i]=d,t.filter(f=>f!==null).length==r.length&&c.forEach(f=>f(...t))};s.push({publisher:a,onAssign:h,callbacks:c})}return function(i,e,o){Or(i);let n;i.__onConnected__(a=>{for(const c of s)n=o.value.bind(a),c.callbacks.add(n),c.publisher.onAssign(c.onAssign)}),i.__onDisconnected__(()=>{for(const a of s)a.callbacks.delete(n),a.publisher.offAssign(a.onAssign)})}}window["concorde-decorator-subscriber"]=window["concorde-decorator-subscriber"]||{},window["concorde-decorator-subscriber"]={bind:ah,onAssing:lh},window["concorde-directives-data-provider"]=window["concorde-directives-data-provider"]||{},window["concorde-directives-data-provider"]={dp:Ki,dataProvider:ao,sub:oo,subscribe:ro,get:no,set:lo};const ch=E,hh=U;window["concorde-components"]=window["concorde-components"]||{},window["concorde-components"]={SonicToast:ch,SonicModal:hh};const dh=window;dh.concordeIsLoaded=!0,window.dispatchEvent(new CustomEvent("concorde-loaded"))});
3480
+ `],Le([l({type:String,reflect:!0})],Jt.prototype,"size",2),Le([l({type:Boolean,reflect:!0})],Jt.prototype,"bordered",2),Le([l({type:Boolean,reflect:!0})],Jt.prototype,"rounded",2),Le([l({type:Boolean,reflect:!0})],Jt.prototype,"noCustomScroll",2),Le([l({type:String})],Jt.prototype,"maxHeight",2),Jt=Le([w(ih)],Jt);var rh=Object.defineProperty,oh=Object.getOwnPropertyDescriptor,ks=(r,t,s,i)=>{for(var e=i>1?void 0:i?oh(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&rh(t,s,e),e};const nh="sonic-captcha";let is=class extends Ht(v){constructor(){super(...arguments),this.key="",this.action=null,this.zIndex=9999,this.onCaptchaTokenChanged=r=>{r=="request_token"&&(this.formPublisher&&(this.formPublisher.captchaToken=""),this.requestToken())}}connectedCallback(){if(!document.getElementById("captcha-"+this.key)){const r=document.createElement("script");r.src="https://www.google.com/recaptcha/api.js?render="+this.key,r.id="captcha-"+this.key,document.head.appendChild(r)}if(super.connectedCallback(),this.formPublisher=tt.get(this.getAncestorAttributeValue("headersDataProvider")??this.getAncestorAttributeValue("formDataProvider")),!document.getElementById("concorde-recaptcha-css")){const r=document.createElement("style");r.innerHTML=".grecaptcha-badge {z-index: 9999;}",r.id="concorde-recaptcha-css",document.head.appendChild(r)}this.formPublisher&&!this.formPublisher.captchaToken.get()&&(this.formPublisher.needsCaptchaValidation=!0,this.formPublisher.captchaToken.onAssign(this.onCaptchaTokenChanged))}disconnectedCallback(){this.formPublisher&&this.formPublisher.captchaToken.offAssign(this.onCaptchaTokenChanged),super.disconnectedCallback()}requestToken(){var s,i;if(!this.formPublisher)return;const r=(this.action??((s=this.formPublisher.captchaAction)==null?void 0:s.get())??"submit").replace(/[^\w_/]/g,"_"),t=(((i=this.formPublisher.captchaMethod)==null?void 0:i.get())??"POST").toUpperCase();delete this.formPublisher.captchaAction,delete this.formPublisher.captchaMethod,window.grecaptcha.ready(()=>{window.grecaptcha.execute(this.key,{action:t+"//"+r}).then(e=>{this.formPublisher&&(this.formPublisher.captchaToken=e)})})}render(){return g` <slot></slot> `}};ks([l()],is.prototype,"key",2),ks([l()],is.prototype,"action",2),ks([l({type:Number})],is.prototype,"zIndex",2),is=ks([w(nh)],is),window.queueMicrotask=window.queueMicrotask||function(r){Promise.resolve().then(r).catch(t=>setTimeout(()=>{throw t}))};function ah(r){this.__connectedCallbackCalls__||(this.__connectedCallbackCalls__=new Set),this.__connectedCallbackCalls__.add(r)}function lh(r){this.__disconnectedCallbackCalls__||(this.__disconnectedCallbackCalls__=new Set),this.__disconnectedCallbackCalls__.add(r)}function kr(r){if(r.__is__setSubscribable__)return;r.__is__setSubscribable__=!0,r.__onConnected__=ah,r.__onDisconnected__=lh;const t=r.connectedCallback;r.connectedCallback=function(){t.call(this),this.__connectedCallbackCalls__&&this.__connectedCallbackCalls__.forEach(i=>i(this))};const s=r.disconnectedCallback;r.disconnectedCallback=function(){s.call(this),this.__disconnectedCallbackCalls__&&this.__disconnectedCallbackCalls__.forEach(i=>i(this))}}function ch(r){const t=r.split(".");if(t.length==0)return function(){};const s=t.shift()||"";let i=E.get(s);return i=We.traverse(i,t),function(e,o){if(!e)return;let n;kr(e),e.__onConnected__(a=>{n=c=>{a[o]=c},i.onAssign(n)}),e.__onDisconnected__(()=>{i.offAssign(n)})}}function hh(...r){const t=[],s=[];for(let i=0;i<r.length;i++){const o=r[i].split(".");if(o.length==0)continue;const n=o.shift()||"";let a=E.get(n);a=We.traverse(a,o);const c=new Set,h=d=>{t[i]=d,t.filter(f=>f!==null).length==r.length&&c.forEach(f=>f(...t))};s.push({publisher:a,onAssign:h,callbacks:c})}return function(i,e,o){kr(i);let n;i.__onConnected__(a=>{for(const c of s)n=o.value.bind(a),c.callbacks.add(n),c.publisher.onAssign(c.onAssign)}),i.__onDisconnected__(()=>{for(const a of s)a.callbacks.delete(n),a.publisher.offAssign(a.onAssign)})}}window["concorde-decorator-subscriber"]=window["concorde-decorator-subscriber"]||{},window["concorde-decorator-subscriber"]={bind:ch,onAssing:hh},window["concorde-directives-data-provider"]=window["concorde-directives-data-provider"]||{},window["concorde-directives-data-provider"]={dp:Gi,dataProvider:co,sub:ao,subscribe:no,get:lo,set:ho};const dh=N,ph=U;window["concorde-components"]=window["concorde-components"]||{},window["concorde-components"]={SonicToast:dh,SonicModal:ph};const uh=window;uh.concordeIsLoaded=!0,window.dispatchEvent(new CustomEvent("concorde-loaded"))});