@supersoniks/concorde 4.9.91 → 4.9.93

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/ai/cursor/rules/concorde.mdc +7 -0
  2. package/ai/jetbrains/rules/concorde.md +6 -0
  3. package/ai/skills/concorde/SKILL.md +48 -0
  4. package/build-infos.json +1 -1
  5. package/concorde-core.bundle.js +257 -257
  6. package/concorde-core.es.js +3174 -3086
  7. package/dist/concorde-core.bundle.js +257 -257
  8. package/dist/concorde-core.es.js +3174 -3086
  9. package/dist/js/core/decorators/api.js +168 -63
  10. package/dist/js/core/decorators/api.js.map +1 -1
  11. package/dist/js/core/utils/api.js +29 -8
  12. package/dist/js/core/utils/api.js.map +1 -1
  13. package/dist/types/core/decorators/api.d.ts +30 -16
  14. package/dist/types/core/decorators/api.d.ts.map +1 -1
  15. package/dist/types/core/utils/api.d.ts +1 -1
  16. package/dist/types/core/utils/api.d.ts.map +1 -1
  17. package/docs/assets/{index-BL6WVF7g.css → index-D2Q3JyQ6.css} +1 -1
  18. package/docs/assets/{index-DVn8AeyA.js → index-DURr6O71.js} +466 -568
  19. package/docs/crawl/docs/_decorators/get.html +35 -10
  20. package/docs/crawl/docs/_decorators/patch.html +13 -5
  21. package/docs/crawl/docs/_decorators/post.html +39 -10
  22. package/docs/crawl/docs/_decorators/put.html +13 -5
  23. package/docs/crawl/hubs/decorators.html +43 -40
  24. package/docs/crawl/hubs/remote-data.html +43 -40
  25. package/docs/index.html +2 -2
  26. package/docs/llms-full.txt +98 -23
  27. package/docs/llms.txt +1 -1
  28. package/docs/src/docs/_decorators/get.md +39 -5
  29. package/docs/src/docs/_decorators/patch.md +8 -3
  30. package/docs/src/docs/_decorators/post.md +39 -6
  31. package/docs/src/docs/_decorators/put.md +8 -3
  32. package/docs/src/docs/search/docs-search.json +103 -183
  33. package/docs/src/tsconfig.json +268 -268
  34. package/package.json +1 -1
  35. package/src/core/decorators/api.post.spec.ts +101 -6
  36. package/src/core/decorators/api.spec.ts +137 -6
  37. package/src/core/decorators/api.ts +304 -148
  38. package/src/core/utils/api.spec.ts +73 -0
  39. package/src/core/utils/api.ts +44 -11
  40. package/src/docs/_decorators/get.md +43 -5
  41. package/src/docs/_decorators/patch.md +16 -2
  42. package/src/docs/_decorators/post.md +23 -7
  43. package/src/docs/_decorators/put.md +16 -2
  44. package/src/docs/components/docs-demo-sources.ts +22 -8
  45. package/src/docs/example/decorators-demo-post.ts +70 -0
  46. package/src/docs/example/decorators-demo-subscribe-publish-get-demos.ts +61 -2
  47. package/src/docs/search/docs-search.json +122 -7
  48. package/src/tsconfig.tsbuildinfo +1 -1
@@ -1,20 +1,20 @@
1
- (function(Y){typeof define=="function"&&define.amd?define(Y):Y()})((function(){"use strict";var N,tt;let Y=class _t{static getLanguage(){const t=document.documentElement.lang;return localStorage.getItem("SonicSelectedLanguage")||t}static getCookies(){return document.cookie.split(";").reduce((t,s)=>{const r=s.indexOf("=");return t[s.substring(0,r).trim()]=s.substring(r+1),t},{})}static nextComposedAncestor(t){return t instanceof Element&&t.assignedSlot?t.assignedSlot:t.parentNode||t.host||null}static everyAncestors(t,s){for(;t;){if(!s(t))return;t=t.parentNode||t.host}}static overflowMatches(t,s){return s.includes(t.overflowY)||s.includes(t.overflowX)}static findAncestorByOverflow(t,s){let r=t;for(;r;){if(r instanceof Element&&r.nodeType===1){const i=window.getComputedStyle(r);if(_t.overflowMatches(i,s))return r}r=_t.nextComposedAncestor(r)}return null}static getScrollableAncestor(t){return _t.findAncestorByOverflow(t,["auto","scroll","hidden","overlay"])}static getScrollingAncestor(t){return _t.findAncestorByOverflow(t,["auto","scroll","overlay"])}static scopeAttributeNames(t){const s=t.toLowerCase();return s===t?[t]:[t,s]}static readScopeAttributeOnElement(t,s){for(const r of _t.scopeAttributeNames(s))if(t.hasAttribute(r))return t.getAttribute(r)??"";return null}static getAncestorAttributeValue(t,s){if(!t)return null;let r=t;for(;r;){if(r instanceof HTMLElement){const n=_t.readScopeAttributeOnElement(r,s);if(n!=null)return n}const i=r.parentNode||r.host;if(!i)break;r=i}return null}static getApiConfiguration(t){const s=_t.getAncestorAttributeValue(t,"token"),r=_t.getAncestorAttributeValue(t,"addHTTPResponse")!=null,i=_t.getAncestorAttributeValue(t,"serviceURL");let n=null,o=null;const l=_t.getAncestorAttributeValue(t,"tokenProvider"),c=_t.getAncestorAttributeValue(t,"eventsApiToken");s||(n=_t.getAncestorAttributeValue(t,"userName"),o=_t.getAncestorAttributeValue(t,"password"));const h=_t.getAncestorAttributeValue(t,"credentials")||void 0,u=t.getAttribute("cache"),d=t.hasAttribute("blockUntilDone"),p=t.hasAttribute("keepAlive");return{serviceURL:i,token:s,userName:n,password:o,authToken:c,tokenProvider:l,addHTTPResponse:r,credentials:h,cache:u,blockUntilDone:d,keepAlive:p}}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 _t.getClosestElement(t,"form")}static getAncestorsByTagNames(t,s){const r=new Set(s.map(o=>o.toLowerCase())),i=[];let n=t.parentNode||t.host;for(;n;)n instanceof Element&&r.has(n.tagName.toLowerCase())&&i.push(n),n=n.parentNode||n.host;return i}static getAncestorsBySelectors(t,s){const r=[];let i=t.parentNode||t.host;for(;i;){if(i instanceof Element)for(const n of s)try{if(i.matches(n)){r.push(i);break}}catch{}i=i.parentNode||i.host}return r}static async loadJS(t){return new Promise(async r=>{const i=document.createElement("script");i.src=t,i.onload=()=>r(!0),i.onerror=()=>r(!0),document.head.appendChild(i)})}static async loadCSS(t){return new Promise(async r=>{const i=document.createElement("link");i.type="text/css",i.rel="stylesheet",i.href=t,i.onload=()=>r(!0),i.onerror=()=>r(!0),document.head.appendChild(i)})}};const Si=e=>{const t=document.documentElement,s=new MutationObserver(i=>{for(let n of i)n.type==="attributes"&&n.attributeName==="lang"&&e()}),r={attributes:!0,attributeFilter:["lang"]};s.observe(t,r)};let Rs=class{static ucFirst(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.substring(1)}static minutesDuration(t,s="",r="long"){s||(s=Y.getLanguage());const i=(h,u)=>[Math.floor(h/u),h%u];function n(h,u,d){return new Intl.NumberFormat(h,{style:"unit",unit:u,unitDisplay:d}).format}const[o,l]=i(t,60),c=[];return o&&c.push(n(s,"hour",r)(o)),l&&c.push(n(s,"minute",r)(l)),new Intl.ListFormat(s,{style:"long",type:"conjunction"}).format(c)}static js(t){try{return Function("return "+t)()}catch{return""}}};class Nr{constructor(t){this.path=t}toString(){return this.path}}function Rr(e){return new Proxy(e,{get(t,s){if(s==="path")return t.path;if(s==="toString")return t.toString.bind(t);if(s===Symbol.toStringTag)return"DataProviderKey";if(typeof s=="symbol")return t[s];const r=t.path?`${t.path}.${String(s)}`:String(s);return Rr(new Nr(r))}})}const So=/\$\{|\{\$/;function $o(e){return So.test(e)}function $i(e){const t=typeof e=="string"?e:e.path;if($o(t))throw new Error("Static publisher path required for get/set/dp. Use @subscribe, @publish, or @handle for dynamic DataProviderKey paths.");return t}const as=function(e){return this instanceof as?Rr(new Nr(e)):new as(e)};let ot=class le{static shallowEqual(t,s,r=!0){const i=Object.keys(t),n=Object.keys(s);if(i.length!==n.length&&r)return!1;for(const o of i){const l=t[o],c=s[o];if(r?l!==c:l!=c)return!1}return!0}static deepEqual(t,s,r=!0){const i=Object.keys(t),n=Object.keys(s);if(i.length!==n.length&&r)return!1;for(const o of i){const l=t[o],c=s[o],h=le.isObject(l)&&le.isObject(c),u=r?l!==c:l!=c;if(h&&!le.deepEqual(l,c)||!h&&u)return!1}return!0}static isObject(t){return t!=null&&typeof t=="object"}static isUndefindOrNull(t){return t==null}static isEmpty(t){return le.isUndefindOrNull(t)?!0:Object.keys(t).length===0}static traverse(t,s,r=!1){for(const i of s){const n=t[i];if(n===void 0)return;r&&le.isObject(n)?t=Object.assign(Array.isArray(n)?[]:{},t,n):t=t[i]}return t}static traverseDotNotation(t,s,r=!1){return le.traverse(t,s.split("."),r)}static getURLSearchArray(t,s=""){let r=[];for(let i in t){const n=t[i];s&&(i=s+"["+i+"]"),le.isObject(n)?r=[...r,...this.getURLSearchArray(n,i)]:r.push(`${i}=${n}`)}return r}static getURLSearchString(t){return le.getURLSearchArray(t,"").join("&")}};const xt=ot.traverseDotNotation;let Ao=class{static async queueTaskPromise(){return new Promise(t=>{window.queueMicrotask(()=>t(null))})}static async delayPromise(t){return new Promise(s=>{setTimeout(s,t)})}},Fr="sonic";typeof __SONIC_PREFIX__<"u"&&(Fr=__SONIC_PREFIX__);let jr=Fr.replace(/-([a-z])/g,e=>e[1].toUpperCase());const Fs=jr.charAt(0).toUpperCase()+jr.slice(1),ko=new Set(["localStorageMode","expirationDelayMs","invalidateOnPageShow"]);function zr(e){return e==null||typeof e!="object"||Array.isArray(e)?!1:Object.keys(e).some(t=>ko.has(t))}function js(e){return Object.prototype.hasOwnProperty.call(e,"__value")}function ce(e){return typeof e=="object"&&e!==null}let He="sonic";typeof __SONIC_PREFIX__>"u"&&(He="sonic");const Ai=He=="sonic"?"publisher-proxies-data":He+"-publisher-proxies-data",Ce=class Ce{constructor(t,s,r){for(this._proxies_=new Map,this._is_savable_=!1,this._expiration_delay_=1e3*60*60*12,this._invalidate_on_page_show_=!1,this._invalidateListeners_=new Set,this._formInvalidateListeners_=new Set,this._assignListeners_=new Set,this._mutationListeners_=new Set,this._fillListeners_=new Set,this._templateFillListeners_=new Set,this._lockInternalMutationPublishing_=!1,this._instanceCounter_=0,this._assignmentId_=0,this._value_=t,this.parent=s||null,this._parentKey_=r,this.root=this,this._instanceCounter_=0;this.root.parent;)this.root=this.root.parent}delete(){for(const t in this._proxies_.keys())t!="_parent_"&&this._proxies_.get(t)?.delete();this._invalidateListeners_.clear(),this._formInvalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear(),Ce.instances.delete(this._instanceCounter_)}hasListener(){return this._templateFillListeners_.size>0||this._assignListeners_.size>0||this._invalidateListeners_.size>0||this._formInvalidateListeners_.size>0||this._mutationListeners_.size>0||this._fillListeners_.size>0}_publishInternalMutation_(t=!1){if(this._mutationListeners_.forEach(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){if(this._assignmentId_++,this._assignmentId_!==this._assignmentId_)return;const r=this.get();this._assignListeners_.forEach(i=>{i(r)}),this._publishInternalMutation_(t)}_publishInvalidation_(){this._invalidateListeners_.forEach(t=>t())}_publishFormInvalidation_(){this._formInvalidateListeners_.forEach(t=>t())}_publishDynamicFilling_(t,s){this._fillListeners_.forEach(r=>{r[t]!==s&&(r[t]=s)}),this._publishTemplateFilling_(t,s)}_publishTemplateFilling_(t,s){this._templateFillListeners_.forEach(r=>{const i=Object.getOwnPropertyDescriptor(r,t);i&&!i.set&&!i.writable||(r.propertyMap&&r.propertyMap[t]&&(t=r.propertyMap[t]),typeof r[t]<"u"&&r[t]!==s&&(r[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_()}onFormInvalidate(t){typeof t=="function"&&this._formInvalidateListeners_.add(t)}offFormInvalidate(t){typeof t=="function"&&this._formInvalidateListeners_.delete(t)}invalidateForm(){this._publishFormInvalidation_()}onInternalMutation(t){typeof t=="function"&&(this._mutationListeners_.add(t),t())}offInternalMutation(t){typeof t=="function"&&this._mutationListeners_.delete(t)}startTemplateFilling(t){if(this._templateFillListeners_.add(t),typeof this._value_=="object")for(const s in this._value_){let r=s;const i=this._value_[s];t.propertyMap&&t.propertyMap[s]&&(r=t.propertyMap[s]),typeof t[s]<"u"&&t[s]!==i&&(t[r]=i)}}stopTemplateFilling(t){this._templateFillListeners_.delete(t)}startDynamicFilling(t){this._fillListeners_.add(t);for(const s in this._value_){const r=this._value_[s];t[s]!==r&&(t[s]=r)}}stopDynamicFilling(t){this._fillListeners_.delete(t)}set(t,s=!1){if(this._value_===t||ce(this._value_)&&ce(t)&&t&&js(this._value_)&&js(t)&&this._value_.__value===t.__value||!ce(t)&&t===this._value_.__value)return!0;this._value_=ce(t)?t:{__value:t},this._cachedGet_=void 0;const r=js(this._value_);if(this._parentKey_&&this.parent){const i=js(this._value_)?this._value_.__value:this._value_;if(this.parent?.get()==null&&this.parent?.get()==null)if(isNaN(Number(this._parentKey_)))this.parent.set({[this._parentKey_]:i});else{const n=[];n[Number(this._parentKey_)]=i,this.parent.set(n)}else this.parent._value_[this._parentKey_]=i}if(r)return this._proxies_.forEach((i,n)=>{n!="_parent_"&&(i.set(null),this._publishDynamicFilling_(n,null))}),this._publishAssignement_(s),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_.__value),!0;for(const i in this._value_)this._value_[i]===void 0&&delete this._value_[i];if(this._proxies_.forEach((i,n)=>{const o=this._value_[n];n!="_parent_"&&o===void 0&&o!==null&&isNaN(Number(n))&&(i.set(null),this._publishDynamicFilling_(n,null))}),this._publishAssignement_(),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_),ce(this._value_))for(const i in this._value_){const n=t[i],l=ce(n)?n:{__value:n};if(!this._proxies_.has(i)){this._publishDynamicFilling_(i,n);continue}this._proxies_.get(i)?.set(l,!0),this._publishDynamicFilling_(i,n)}return!0}get(){if(Do(this),this._cachedGet_!==void 0)return this._cachedGet_;if(Object.prototype.hasOwnProperty.call(this._value_,"__value")){const t=this._value_.__value;return this._cachedGet_=t??null}return this._cachedGet_=this._value_!=null?this._value_:null}get $tag(){return this._instanceCounter_||(Ce.instancesCounter++,this._instanceCounter_=Ce.instancesCounter),Ce.instances.set(this._instanceCounter_,this),"<"+He+'-publisher-proxy publisher="'+this._instanceCounter_+'"></'+He+"-publisher-proxy>"}};Ce.instances=new Map,Ce.instancesCounter=0;let ls=Ce;const zs=[];function Do(e){zs.length>0&&zs[0].add(e)}function Ur(){zs.unshift(new Set)}function Vr(){return zs.shift()}const R=class R{constructor(){if(this.enabledLocaStorageProxies=[],this.publishers=new Map,this.localStorageData={},this.isLocalStrorageReady=null,this.initialisedData=[],R.instance!=null)throw"Singleton / use getInstance";R.instance=this,this.isLocalStrorageReady=this.cleanStorageData(),R.initPageShowHandler()}static initPageShowHandler(){R.pageShowHandlerInitialized||(R.pageShowHandlerInitialized=!0,window.addEventListener("pageshow",t=>{t.persisted&&R.getInstance().invalidateAll()}))}invalidateAll(){this.publishers.forEach(t=>{t._invalidate_on_page_show_&&t.invalidate()})}async cleanStorageData(){return new Promise(t=>{(async()=>{try{let r=localStorage.getItem(Ai),i=null;if(r&&(i=await this.decompress(r,"gzip")),i)try{this.localStorageData=JSON.parse(i)}catch{this.localStorageData={}}else r=await this.compress("{}","gzip"),localStorage.setItem(Ai,r),this.localStorageData={};const n=1e3*60*60*12;for(const o in this.localStorageData){const l=this.localStorageData[o],c=new Date().getTime()-(l.expirationDelayMs||n);l.lastModifiationMS<c&&delete this.localStorageData[o]}t(!0)}catch{window.requestAnimationFrame(()=>{t(!1)}),console.warn("no publisher cache in this browser")}})()})}static getInstance(t){if(t){const s=R.instances.get(t);return s||(console.warn("No PublisherManager instance registered with id:",t,"creating new one"),new R)}return R.instance==null?new R:R.instance}static get(t,s){return R.getInstance().get(t,s)}async setLocalData(t,s){await this.isLocalStrorageReady,t.set(this.localStorageData[s+"¤lang_"+Y.getLanguage()]?.data||t.get())}get(t,s){const r=s?.localStorageMode==="enabled",i=s?.invalidateOnPageShow===!0;if(!this.publishers.has(t)){const l=ki({});this.set(t,l)}const n=this.publishers.get(t);return r&&this.initialisedData.indexOf(t)===-1&&(s?.expirationDelayMs&&(n._expiration_delay_=s.expirationDelayMs),n._is_savable_=!0,this.initialisedData.push(t),this.setLocalData(n,t)),i&&(n._invalidate_on_page_show_=i),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!==R.saveId&&t%10!=0))try{if(!R.changed||R.saving)return;R.saving=!0,R.changed=!1;const s=Array.from(this.publishers.keys());let r=!1;for(const i of s){const n=this.publishers.get(i);if(!n?._is_savable_)continue;const o=n?.get();o&&(this.localStorageData[i+"¤lang_"+Y.getLanguage()]={lastModifiationMS:new Date().getTime(),expirationDelayMs:n._expiration_delay_,data:o},r=!0)}if(r){const i=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem(Ai,i)}if(R.saving=!1,R.changed){R.saveId++;const i=R.saveId;setTimeout(()=>this.saveToLocalStorage(i),1e3)}}catch{R.saving=!1}}async compress(t,s){const r=new TextEncoder().encode(t),i=window,n=new i.CompressionStream(s),o=n.writable.getWriter();o.write(r),o.close();const l=await new Response(n.readable).arrayBuffer(),c=new Uint8Array(l);let h="";for(let u=0;u<c.length;u++)h+=String.fromCharCode(c[u]);return btoa(h)}async decompress(t,s){const r=atob(t),n=Uint8Array.from(r,u=>u.charCodeAt(0)).buffer,o=window,l=new o.DecompressionStream(s),c=l.writable.getWriter();c.write(n),c.close();const h=await new Response(l.readable).arrayBuffer();return new TextDecoder().decode(h)}};R.buildDate="Tue Sep 15 2026 11:41:45 GMT+0200 (Central European Summer Time)",R.changed=!1,R.saving=!1,R.saveId=0,R.instance=null,R.instances=new Map,R.pageShowHandlerInitialized=!1;let L=R;if(typeof window<"u"){const e=window;e[Fs+"PublisherManager"]=e[Fs+"PublisherManager"]||L}const Oo=new Set(["invalidate","onInvalidate","offInvalidate","invalidateForm","onFormInvalidate","offFormInvalidate","onAssign","offAssign","startDynamicFilling","stopDynamicFilling","startTemplateFilling","stopTemplateFilling","onInternalMutation","offInternalMutation","set","get","$tag","_cachedGet_","_templateFillListeners_","_fillListeners_","_assignListeners_","_invalidateListeners_","_formInvalidateListeners_","_publishInternalMutation_","hasListener","delete","_mutationListeners_","_publishDynamicFilling_","_publishInvalidation_","_publishFormInvalidation_","_publishTemplateFilling_","_publishAssignement_","_proxies_","parent","_parentKey_","_value_","_is_savable_","_expiration_delay_","_lockInternalMutationPublishing_","_instanceCounter_","_assignmentId_","_invalidate_on_page_show_"]);function Eo(e,t){return{get:function(s,r){if(typeof r=="string"&&Oo.has(r))return e[r];if(r==Symbol.toPrimitive)return()=>t().get();if(!e._proxies_.has(r)){const i=e._value_[r],n=ki(ce(i)?i:{__value:i},e,r);n._proxies_.set("_parent_",t()),e._proxies_.set(r,n)}return e._proxies_.get(r)},set:function(s,r,i){if(r=="_value_")return e._value_=i,!0;if(r=="_cachedGet_")return e._cachedGet_=i,!0;if(r=="_assignmentId_")return e._assignmentId_=i,!0;if(r=="_is_savable_")return e._is_savable_=i,!0;if(r=="_expiration_delay_")return e._expiration_delay_=i,!0;if(r=="_invalidate_on_page_show_")return e._invalidate_on_page_show_=i,!0;if(r=="_instanceCounter_")return e._instanceCounter_=i,!0;if(!e._proxies_.has(r)){const o=ki({},e,r);o._proxies_.set("_parent_",t()),e._proxies_.set(r,o)}return e._value_[r]!==i&&(e._value_[r]=i,e._publishDynamicFilling_(r,i),e._proxies_.get(r)?.set(ce(i)?i:{__value:i})),!0},deleteProperty:function(s,r){return e._publishDynamicFilling_(r,null),e._proxies_.get(r)?.set(null),delete e._value_[r]},has:function(s,r){return r in e._value_&&r!="_lockInternalMutationPublishing_"},defineProperty:function(s,r,i){return i&&"value"in i&&(e._value_[r]=i.value),!0},getOwnPropertyDescriptor:function(s,r){return{enumerable:!0,configurable:!0}},ownKeys:function(s){return e._value_.__value?Object.keys(e._value_.__value):Object.keys(e._value_)}}}function ki(e,t=null,s){const r=new ls(e,t,s);let i=null;const n=Eo(r,()=>i);return i=new Proxy(r,n),i}class Lo extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=t=>{this.innerHTML=t.toString()}}connectedCallback(){this.publisherId=this.getAttribute("publisher")||"",this.publisher=ls.instances.get(parseInt(this.publisherId)),this.publisher?.onAssign(this.onAssign)}disconnectedCallback(){this.publisher?.offAssign(this.onAssign)}}try{customElements.define(He+"-publisher-proxy",Lo)}catch{}const Us=(e,t)=>{if(typeof e=="function"){const s=e;return Ur(),s(),Vr()}if(typeof e=="string"){const s=e.split("."),r=s.shift()||"";let i=L.get(r,t);i=ot.traverse(i,s);const n=new Set;return n.add(i),n}return new Set([e])};function To(e){const t=$i(e);return Us(t).values().next().value?.get()}function Vs(e,t,s){const r=$i(e);return Us(r,s).values().next().value}function Io(e,t){return zr(t)?Vs(e,void 0,t):Vs(e)}function Bs(e,t){return zr(t)?Vs(e,void 0,t):Vs(e)}function Mo(e,t){const s=$i(e);Us(s).values().next().value?.set(t)}let Hs=(N=class{static disable(){this.enabled&&(this.enabled=!1,Array.from(N.observedElements.keys()).forEach(t=>N.unObserve(t)))}static observe(t){if(!t||!N.enabled||N.observedElements.has(t))return;const s=new MutationObserver(N.onMutation),r={};r.childList=!0,r.subtree=!0,r.attributes=!0,r.attributeFilter=["data-bind"],s.observe(t,r),t.querySelectorAll("[data-bind]").forEach(i=>N.addPublisherListeners(i)),N.observedElements.set(t,s)}static unObserve(t){if(!t)return;const s=this.observedElements.get(t);s&&(s.disconnect(),t.querySelectorAll("[data-bind]").forEach(r=>N.removePublisherListeners(r)))}static onAdded(t){t.hasAttribute&&t.hasAttribute("data-bind")&&N.addPublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(s=>N.addPublisherListeners(s)):t.childNodes.forEach(s=>N.onAdded(s))}static onRemoved(t){t.hasAttribute&&t.hasAttribute("data-bind")&&N.removePublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(s=>N.removePublisherListeners(s)):t.childNodes.forEach(s=>N.onRemoved(s))}static onMutation(t){for(const s of t)switch(s.type){case"attributes":N.addPublisherListeners(s.target);break;case"childList":s.addedNodes.forEach(r=>{N.onAdded(r)}),s.removedNodes.forEach(r=>{N.onRemoved(r)});break}}static removePublisherListeners(t){const s=N.publisherListeners.get(t);s&&(N.publisherListeners.delete(t),s.forEach(r=>{r.publisher?.offAssign(r.onAssign)}))}static getVariablesDescriptor(t){let s=t.match(/(\$(?:\w+\\?\.?)+)/g);return s?s=s.map(r=>r.replace("$","")):s=[t],s=s.filter(r=>r.length>0),{expression:t.replace("\\",""),variables:s.map(r=>r.split(/\b\.\b/).map(i=>i.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,i=>i.substring(1).toUpperCase()),bindedVariablesDescriptor:N.getVariablesDescriptor(s.value)})):[]}static getSubPublisher(t,s){if(!s)return t;for(const r of s)if(r!="_self_"){if(!t)return null;t=t[r]}return t}static addPublisherListeners(t){N.removePublisherListeners(t);const s=Y.getAncestorAttributeValue(t.parentNode||t.host||t,"dataProvider");if(!s)return;const r=L.getInstance().get(s),i=N.getDataBindItems(t),n=[];i.forEach(o=>{const l=o.bindedVariablesDescriptor,c=o.propertyToUpdate;for(const h of l.variables){const u=h;let d=r;d=N.getSubPublisher(r,u);const p=t,y={publisher:d,onAssign:()=>{const g=l.variables.map(E=>N.getSubPublisher(r,E)?.get());let b=l.expression,w=!1;if(g.length==1&&l.variables[0].join(".")==b.substring(1)){let E=g[0];E===null&&(E=""),p[c]=E;return}for(let E=0;E<g.length;E++){let f=g[E];const m=l.variables[E];f===null&&(w=!0,f=void 0),b=b.replace("$"+m.join("."),f)}if(b.indexOf("|")!=-1){const E=b.indexOf("|");if(E==0)b=Rs.js(b.substring(1));else{const f=b.substring(0,E),m=b.substring(E+1),_=Rs[f];b=w?"":_?_(m):b}}else b=w?"":b;p[c]=b}};d?.onAssign(y.onAssign),n.push(y)}}),N.publisherListeners.set(t,n)}},N.observedElements=new Map,N.enabled=!0,N.publisherListeners=new Map,N);Hs.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=Hs);/**
1
+ (function(Q){typeof define=="function"&&define.amd?define(Q):Q()})((function(){"use strict";var R,ot;let Q=class xt{static getLanguage(){const t=document.documentElement.lang;return localStorage.getItem("SonicSelectedLanguage")||t}static getCookies(){return document.cookie.split(";").reduce((t,s)=>{const r=s.indexOf("=");return t[s.substring(0,r).trim()]=s.substring(r+1),t},{})}static nextComposedAncestor(t){return t instanceof Element&&t.assignedSlot?t.assignedSlot:t.parentNode||t.host||null}static everyAncestors(t,s){for(;t;){if(!s(t))return;t=t.parentNode||t.host}}static overflowMatches(t,s){return s.includes(t.overflowY)||s.includes(t.overflowX)}static findAncestorByOverflow(t,s){let r=t;for(;r;){if(r instanceof Element&&r.nodeType===1){const i=window.getComputedStyle(r);if(xt.overflowMatches(i,s))return r}r=xt.nextComposedAncestor(r)}return null}static getScrollableAncestor(t){return xt.findAncestorByOverflow(t,["auto","scroll","hidden","overlay"])}static getScrollingAncestor(t){return xt.findAncestorByOverflow(t,["auto","scroll","overlay"])}static scopeAttributeNames(t){const s=t.toLowerCase();return s===t?[t]:[t,s]}static readScopeAttributeOnElement(t,s){for(const r of xt.scopeAttributeNames(s))if(t.hasAttribute(r))return t.getAttribute(r)??"";return null}static getAncestorAttributeValue(t,s){if(!t)return null;let r=t;for(;r;){if(r instanceof HTMLElement){const n=xt.readScopeAttributeOnElement(r,s);if(n!=null)return n}const i=r.parentNode||r.host;if(!i)break;r=i}return null}static getApiConfiguration(t){const s=xt.getAncestorAttributeValue(t,"token"),r=xt.getAncestorAttributeValue(t,"addHTTPResponse")!=null,i=xt.getAncestorAttributeValue(t,"serviceURL");let n=null,o=null;const l=xt.getAncestorAttributeValue(t,"tokenProvider"),c=xt.getAncestorAttributeValue(t,"eventsApiToken");s||(n=xt.getAncestorAttributeValue(t,"userName"),o=xt.getAncestorAttributeValue(t,"password"));const h=xt.getAncestorAttributeValue(t,"credentials")||void 0,u=t.getAttribute("cache"),d=t.hasAttribute("blockUntilDone"),p=t.hasAttribute("keepAlive");return{serviceURL:i,token:s,userName:n,password:o,authToken:c,tokenProvider:l,addHTTPResponse:r,credentials:h,cache:u,blockUntilDone:d,keepAlive:p}}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 xt.getClosestElement(t,"form")}static getAncestorsByTagNames(t,s){const r=new Set(s.map(o=>o.toLowerCase())),i=[];let n=t.parentNode||t.host;for(;n;)n instanceof Element&&r.has(n.tagName.toLowerCase())&&i.push(n),n=n.parentNode||n.host;return i}static getAncestorsBySelectors(t,s){const r=[];let i=t.parentNode||t.host;for(;i;){if(i instanceof Element)for(const n of s)try{if(i.matches(n)){r.push(i);break}}catch{}i=i.parentNode||i.host}return r}static async loadJS(t){return new Promise(async r=>{const i=document.createElement("script");i.src=t,i.onload=()=>r(!0),i.onerror=()=>r(!0),document.head.appendChild(i)})}static async loadCSS(t){return new Promise(async r=>{const i=document.createElement("link");i.type="text/css",i.rel="stylesheet",i.href=t,i.onload=()=>r(!0),i.onerror=()=>r(!0),document.head.appendChild(i)})}};const Ti=e=>{const t=document.documentElement,s=new MutationObserver(i=>{for(let n of i)n.type==="attributes"&&n.attributeName==="lang"&&e()}),r={attributes:!0,attributeFilter:["lang"]};s.observe(t,r)};let Ws=class{static ucFirst(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.substring(1)}static minutesDuration(t,s="",r="long"){s||(s=Q.getLanguage());const i=(h,u)=>[Math.floor(h/u),h%u];function n(h,u,d){return new Intl.NumberFormat(h,{style:"unit",unit:u,unitDisplay:d}).format}const[o,l]=i(t,60),c=[];return o&&c.push(n(s,"hour",r)(o)),l&&c.push(n(s,"minute",r)(l)),new Intl.ListFormat(s,{style:"long",type:"conjunction"}).format(c)}static js(t){try{return Function("return "+t)()}catch{return""}}};class Wr{constructor(t){this.path=t}toString(){return this.path}}function Kr(e){return new Proxy(e,{get(t,s){if(s==="path")return t.path;if(s==="toString")return t.toString.bind(t);if(s===Symbol.toStringTag)return"DataProviderKey";if(typeof s=="symbol")return t[s];const r=t.path?`${t.path}.${String(s)}`:String(s);return Kr(new Wr(r))}})}const No=/\$\{|\{\$/;function Ro(e){return No.test(e)}function Ii(e){const t=typeof e=="string"?e:e.path;if(Ro(t))throw new Error("Static publisher path required for get/set/dp. Use @subscribe, @publish, or @handle for dynamic DataProviderKey paths.");return t}const bs=function(e){return this instanceof bs?Kr(new Wr(e)):new bs(e)};let dt=class ve{static shallowEqual(t,s,r=!0){const i=Object.keys(t),n=Object.keys(s);if(i.length!==n.length&&r)return!1;for(const o of i){const l=t[o],c=s[o];if(r?l!==c:l!=c)return!1}return!0}static deepEqual(t,s,r=!0){const i=Object.keys(t),n=Object.keys(s);if(i.length!==n.length&&r)return!1;for(const o of i){const l=t[o],c=s[o],h=ve.isObject(l)&&ve.isObject(c),u=r?l!==c:l!=c;if(h&&!ve.deepEqual(l,c)||!h&&u)return!1}return!0}static isObject(t){return t!=null&&typeof t=="object"}static isUndefindOrNull(t){return t==null}static isEmpty(t){return ve.isUndefindOrNull(t)?!0:Object.keys(t).length===0}static traverse(t,s,r=!1){for(const i of s){const n=t[i];if(n===void 0)return;r&&ve.isObject(n)?t=Object.assign(Array.isArray(n)?[]:{},t,n):t=t[i]}return t}static traverseDotNotation(t,s,r=!1){return ve.traverse(t,s.split("."),r)}static getURLSearchArray(t,s=""){let r=[];for(let i in t){const n=t[i];s&&(i=s+"["+i+"]"),ve.isObject(n)?r=[...r,...this.getURLSearchArray(n,i)]:r.push(`${i}=${n}`)}return r}static getURLSearchString(t){return ve.getURLSearchArray(t,"").join("&")}};const Pt=dt.traverseDotNotation;let Fo=class{static async queueTaskPromise(){return new Promise(t=>{window.queueMicrotask(()=>t(null))})}static async delayPromise(t){return new Promise(s=>{setTimeout(s,t)})}},Gr="sonic";typeof __SONIC_PREFIX__<"u"&&(Gr=__SONIC_PREFIX__);let Yr=Gr.replace(/-([a-z])/g,e=>e[1].toUpperCase());const Ks=Yr.charAt(0).toUpperCase()+Yr.slice(1),jo=new Set(["localStorageMode","expirationDelayMs","invalidateOnPageShow"]);function Zr(e){return e==null||typeof e!="object"||Array.isArray(e)?!1:Object.keys(e).some(t=>jo.has(t))}function Gs(e){return Object.prototype.hasOwnProperty.call(e,"__value")}function ye(e){return typeof e=="object"&&e!==null}let Je="sonic";typeof __SONIC_PREFIX__>"u"&&(Je="sonic");const Mi=Je=="sonic"?"publisher-proxies-data":Je+"-publisher-proxies-data",Ie=class Ie{constructor(t,s,r){for(this._proxies_=new Map,this._is_savable_=!1,this._expiration_delay_=1e3*60*60*12,this._invalidate_on_page_show_=!1,this._invalidateListeners_=new Set,this._formInvalidateListeners_=new Set,this._assignListeners_=new Set,this._mutationListeners_=new Set,this._fillListeners_=new Set,this._templateFillListeners_=new Set,this._lockInternalMutationPublishing_=!1,this._instanceCounter_=0,this._assignmentId_=0,this._value_=t,this.parent=s||null,this._parentKey_=r,this.root=this,this._instanceCounter_=0;this.root.parent;)this.root=this.root.parent}delete(){for(const t in this._proxies_.keys())t!="_parent_"&&this._proxies_.get(t)?.delete();this._invalidateListeners_.clear(),this._formInvalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear(),Ie.instances.delete(this._instanceCounter_)}hasListener(){return this._templateFillListeners_.size>0||this._assignListeners_.size>0||this._invalidateListeners_.size>0||this._formInvalidateListeners_.size>0||this._mutationListeners_.size>0||this._fillListeners_.size>0}_publishInternalMutation_(t=!1){if(this._mutationListeners_.forEach(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){if(this._assignmentId_++,this._assignmentId_!==this._assignmentId_)return;const r=this.get();this._assignListeners_.forEach(i=>{i(r)}),this._publishInternalMutation_(t)}_publishInvalidation_(){this._invalidateListeners_.forEach(t=>t())}_publishFormInvalidation_(){this._formInvalidateListeners_.forEach(t=>t())}_publishDynamicFilling_(t,s){this._fillListeners_.forEach(r=>{r[t]!==s&&(r[t]=s)}),this._publishTemplateFilling_(t,s)}_publishTemplateFilling_(t,s){this._templateFillListeners_.forEach(r=>{const i=Object.getOwnPropertyDescriptor(r,t);i&&!i.set&&!i.writable||(r.propertyMap&&r.propertyMap[t]&&(t=r.propertyMap[t]),typeof r[t]<"u"&&r[t]!==s&&(r[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_()}onFormInvalidate(t){typeof t=="function"&&this._formInvalidateListeners_.add(t)}offFormInvalidate(t){typeof t=="function"&&this._formInvalidateListeners_.delete(t)}invalidateForm(){this._publishFormInvalidation_()}onInternalMutation(t){typeof t=="function"&&(this._mutationListeners_.add(t),t())}offInternalMutation(t){typeof t=="function"&&this._mutationListeners_.delete(t)}startTemplateFilling(t){if(this._templateFillListeners_.add(t),typeof this._value_=="object")for(const s in this._value_){let r=s;const i=this._value_[s];t.propertyMap&&t.propertyMap[s]&&(r=t.propertyMap[s]),typeof t[s]<"u"&&t[s]!==i&&(t[r]=i)}}stopTemplateFilling(t){this._templateFillListeners_.delete(t)}startDynamicFilling(t){this._fillListeners_.add(t);for(const s in this._value_){const r=this._value_[s];t[s]!==r&&(t[s]=r)}}stopDynamicFilling(t){this._fillListeners_.delete(t)}set(t,s=!1){if(this._value_===t||ye(this._value_)&&ye(t)&&t&&Gs(this._value_)&&Gs(t)&&this._value_.__value===t.__value||!ye(t)&&t===this._value_.__value)return!0;this._value_=ye(t)?t:{__value:t},this._cachedGet_=void 0;const r=Gs(this._value_);if(this._parentKey_&&this.parent){const i=Gs(this._value_)?this._value_.__value:this._value_;if(this.parent?.get()==null&&this.parent?.get()==null)if(isNaN(Number(this._parentKey_)))this.parent.set({[this._parentKey_]:i});else{const n=[];n[Number(this._parentKey_)]=i,this.parent.set(n)}else this.parent._value_[this._parentKey_]=i}if(r)return this._proxies_.forEach((i,n)=>{n!="_parent_"&&(i.set(null),this._publishDynamicFilling_(n,null))}),this._publishAssignement_(s),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_.__value),!0;for(const i in this._value_)this._value_[i]===void 0&&delete this._value_[i];if(this._proxies_.forEach((i,n)=>{const o=this._value_[n];n!="_parent_"&&o===void 0&&o!==null&&isNaN(Number(n))&&(i.set(null),this._publishDynamicFilling_(n,null))}),this._publishAssignement_(),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_),ye(this._value_))for(const i in this._value_){const n=t[i],l=ye(n)?n:{__value:n};if(!this._proxies_.has(i)){this._publishDynamicFilling_(i,n);continue}this._proxies_.get(i)?.set(l,!0),this._publishDynamicFilling_(i,n)}return!0}get(){if(zo(this),this._cachedGet_!==void 0)return this._cachedGet_;if(Object.prototype.hasOwnProperty.call(this._value_,"__value")){const t=this._value_.__value;return this._cachedGet_=t??null}return this._cachedGet_=this._value_!=null?this._value_:null}get $tag(){return this._instanceCounter_||(Ie.instancesCounter++,this._instanceCounter_=Ie.instancesCounter),Ie.instances.set(this._instanceCounter_,this),"<"+Je+'-publisher-proxy publisher="'+this._instanceCounter_+'"></'+Je+"-publisher-proxy>"}};Ie.instances=new Map,Ie.instancesCounter=0;let gs=Ie;const Ys=[];function zo(e){Ys.length>0&&Ys[0].add(e)}function Xr(){Ys.unshift(new Set)}function Qr(){return Ys.shift()}const j=class j{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(),j.initPageShowHandler()}static initPageShowHandler(){j.pageShowHandlerInitialized||(j.pageShowHandlerInitialized=!0,window.addEventListener("pageshow",t=>{t.persisted&&j.getInstance().invalidateAll()}))}invalidateAll(){this.publishers.forEach(t=>{t._invalidate_on_page_show_&&t.invalidate()})}async cleanStorageData(){return new Promise(t=>{(async()=>{try{let r=localStorage.getItem(Mi),i=null;if(r&&(i=await this.decompress(r,"gzip")),i)try{this.localStorageData=JSON.parse(i)}catch{this.localStorageData={}}else r=await this.compress("{}","gzip"),localStorage.setItem(Mi,r),this.localStorageData={};const n=1e3*60*60*12;for(const o in this.localStorageData){const l=this.localStorageData[o],c=new Date().getTime()-(l.expirationDelayMs||n);l.lastModifiationMS<c&&delete this.localStorageData[o]}t(!0)}catch{window.requestAnimationFrame(()=>{t(!1)}),console.warn("no publisher cache in this browser")}})()})}static getInstance(t){if(t){const s=j.instances.get(t);return s||(console.warn("No PublisherManager instance registered with id:",t,"creating new one"),new j)}return j.instance==null?new j:j.instance}static get(t,s){return j.getInstance().get(t,s)}async setLocalData(t,s){await this.isLocalStrorageReady,t.set(this.localStorageData[s+"¤lang_"+Q.getLanguage()]?.data||t.get())}get(t,s){const r=s?.localStorageMode==="enabled",i=s?.invalidateOnPageShow===!0;if(!this.publishers.has(t)){const l=Ni({});this.set(t,l)}const n=this.publishers.get(t);return r&&this.initialisedData.indexOf(t)===-1&&(s?.expirationDelayMs&&(n._expiration_delay_=s.expirationDelayMs),n._is_savable_=!0,this.initialisedData.push(t),this.setLocalData(n,t)),i&&(n._invalidate_on_page_show_=i),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 r=!1;for(const i of s){const n=this.publishers.get(i);if(!n?._is_savable_)continue;const o=n?.get();o&&(this.localStorageData[i+"¤lang_"+Q.getLanguage()]={lastModifiationMS:new Date().getTime(),expirationDelayMs:n._expiration_delay_,data:o},r=!0)}if(r){const i=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem(Mi,i)}if(j.saving=!1,j.changed){j.saveId++;const i=j.saveId;setTimeout(()=>this.saveToLocalStorage(i),1e3)}}catch{j.saving=!1}}async compress(t,s){const r=new TextEncoder().encode(t),i=window,n=new i.CompressionStream(s),o=n.writable.getWriter();o.write(r),o.close();const l=await new Response(n.readable).arrayBuffer(),c=new Uint8Array(l);let h="";for(let u=0;u<c.length;u++)h+=String.fromCharCode(c[u]);return btoa(h)}async decompress(t,s){const r=atob(t),n=Uint8Array.from(r,u=>u.charCodeAt(0)).buffer,o=window,l=new o.DecompressionStream(s),c=l.writable.getWriter();c.write(n),c.close();const h=await new Response(l.readable).arrayBuffer();return new TextDecoder().decode(h)}};j.buildDate="Tue Sep 15 2026 18:00:20 GMT+0200 (Central European Summer Time)",j.changed=!1,j.saving=!1,j.saveId=0,j.instance=null,j.instances=new Map,j.pageShowHandlerInitialized=!1;let L=j;if(typeof window<"u"){const e=window;e[Ks+"PublisherManager"]=e[Ks+"PublisherManager"]||L}const Uo=new Set(["invalidate","onInvalidate","offInvalidate","invalidateForm","onFormInvalidate","offFormInvalidate","onAssign","offAssign","startDynamicFilling","stopDynamicFilling","startTemplateFilling","stopTemplateFilling","onInternalMutation","offInternalMutation","set","get","$tag","_cachedGet_","_templateFillListeners_","_fillListeners_","_assignListeners_","_invalidateListeners_","_formInvalidateListeners_","_publishInternalMutation_","hasListener","delete","_mutationListeners_","_publishDynamicFilling_","_publishInvalidation_","_publishFormInvalidation_","_publishTemplateFilling_","_publishAssignement_","_proxies_","parent","_parentKey_","_value_","_is_savable_","_expiration_delay_","_lockInternalMutationPublishing_","_instanceCounter_","_assignmentId_","_invalidate_on_page_show_"]);function Vo(e,t){return{get:function(s,r){if(typeof r=="string"&&Uo.has(r))return e[r];if(r==Symbol.toPrimitive)return()=>t().get();if(!e._proxies_.has(r)){const i=e._value_[r],n=Ni(ye(i)?i:{__value:i},e,r);n._proxies_.set("_parent_",t()),e._proxies_.set(r,n)}return e._proxies_.get(r)},set:function(s,r,i){if(r=="_value_")return e._value_=i,!0;if(r=="_cachedGet_")return e._cachedGet_=i,!0;if(r=="_assignmentId_")return e._assignmentId_=i,!0;if(r=="_is_savable_")return e._is_savable_=i,!0;if(r=="_expiration_delay_")return e._expiration_delay_=i,!0;if(r=="_invalidate_on_page_show_")return e._invalidate_on_page_show_=i,!0;if(r=="_instanceCounter_")return e._instanceCounter_=i,!0;if(!e._proxies_.has(r)){const o=Ni({},e,r);o._proxies_.set("_parent_",t()),e._proxies_.set(r,o)}return e._value_[r]!==i&&(e._value_[r]=i,e._publishDynamicFilling_(r,i),e._proxies_.get(r)?.set(ye(i)?i:{__value:i})),!0},deleteProperty:function(s,r){return e._publishDynamicFilling_(r,null),e._proxies_.get(r)?.set(null),delete e._value_[r]},has:function(s,r){return r in e._value_&&r!="_lockInternalMutationPublishing_"},defineProperty:function(s,r,i){return i&&"value"in i&&(e._value_[r]=i.value),!0},getOwnPropertyDescriptor:function(s,r){return{enumerable:!0,configurable:!0}},ownKeys:function(s){return e._value_.__value?Object.keys(e._value_.__value):Object.keys(e._value_)}}}function Ni(e,t=null,s){const r=new gs(e,t,s);let i=null;const n=Vo(r,()=>i);return i=new Proxy(r,n),i}class Bo extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=t=>{this.innerHTML=t.toString()}}connectedCallback(){this.publisherId=this.getAttribute("publisher")||"",this.publisher=gs.instances.get(parseInt(this.publisherId)),this.publisher?.onAssign(this.onAssign)}disconnectedCallback(){this.publisher?.offAssign(this.onAssign)}}try{customElements.define(Je+"-publisher-proxy",Bo)}catch{}const Zs=(e,t)=>{if(typeof e=="function"){const s=e;return Xr(),s(),Qr()}if(typeof e=="string"){const s=e.split("."),r=s.shift()||"";let i=L.get(r,t);i=dt.traverse(i,s);const n=new Set;return n.add(i),n}return new Set([e])};function Ho(e){const t=Ii(e);return Zs(t).values().next().value?.get()}function Xs(e,t,s){const r=Ii(e);return Zs(r,s).values().next().value}function qo(e,t){return Zr(t)?Xs(e,void 0,t):Xs(e)}function Qs(e,t){return Zr(t)?Xs(e,void 0,t):Xs(e)}function Wo(e,t){const s=Ii(e);Zs(s).values().next().value?.set(t)}let Js=(R=class{static disable(){this.enabled&&(this.enabled=!1,Array.from(R.observedElements.keys()).forEach(t=>R.unObserve(t)))}static observe(t){if(!t||!R.enabled||R.observedElements.has(t))return;const s=new MutationObserver(R.onMutation),r={};r.childList=!0,r.subtree=!0,r.attributes=!0,r.attributeFilter=["data-bind"],s.observe(t,r),t.querySelectorAll("[data-bind]").forEach(i=>R.addPublisherListeners(i)),R.observedElements.set(t,s)}static unObserve(t){if(!t)return;const s=this.observedElements.get(t);s&&(s.disconnect(),t.querySelectorAll("[data-bind]").forEach(r=>R.removePublisherListeners(r)))}static onAdded(t){t.hasAttribute&&t.hasAttribute("data-bind")&&R.addPublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(s=>R.addPublisherListeners(s)):t.childNodes.forEach(s=>R.onAdded(s))}static onRemoved(t){t.hasAttribute&&t.hasAttribute("data-bind")&&R.removePublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(s=>R.removePublisherListeners(s)):t.childNodes.forEach(s=>R.onRemoved(s))}static onMutation(t){for(const s of t)switch(s.type){case"attributes":R.addPublisherListeners(s.target);break;case"childList":s.addedNodes.forEach(r=>{R.onAdded(r)}),s.removedNodes.forEach(r=>{R.onRemoved(r)});break}}static removePublisherListeners(t){const s=R.publisherListeners.get(t);s&&(R.publisherListeners.delete(t),s.forEach(r=>{r.publisher?.offAssign(r.onAssign)}))}static getVariablesDescriptor(t){let s=t.match(/(\$(?:\w+\\?\.?)+)/g);return s?s=s.map(r=>r.replace("$","")):s=[t],s=s.filter(r=>r.length>0),{expression:t.replace("\\",""),variables:s.map(r=>r.split(/\b\.\b/).map(i=>i.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,i=>i.substring(1).toUpperCase()),bindedVariablesDescriptor:R.getVariablesDescriptor(s.value)})):[]}static getSubPublisher(t,s){if(!s)return t;for(const r of s)if(r!="_self_"){if(!t)return null;t=t[r]}return t}static addPublisherListeners(t){R.removePublisherListeners(t);const s=Q.getAncestorAttributeValue(t.parentNode||t.host||t,"dataProvider");if(!s)return;const r=L.getInstance().get(s),i=R.getDataBindItems(t),n=[];i.forEach(o=>{const l=o.bindedVariablesDescriptor,c=o.propertyToUpdate;for(const h of l.variables){const u=h;let d=r;d=R.getSubPublisher(r,u);const p=t,y={publisher:d,onAssign:()=>{const g=l.variables.map(D=>R.getSubPublisher(r,D)?.get());let m=l.expression,w=!1;if(g.length==1&&l.variables[0].join(".")==m.substring(1)){let D=g[0];D===null&&(D=""),p[c]=D;return}for(let D=0;D<g.length;D++){let f=g[D];const b=l.variables[D];f===null&&(w=!0,f=void 0),m=m.replace("$"+b.join("."),f)}if(m.indexOf("|")!=-1){const D=m.indexOf("|");if(D==0)m=Ws.js(m.substring(1));else{const f=m.substring(0,D),b=m.substring(D+1),_=Ws[f];m=w?"":_?_(b):m}}else m=w?"":m;p[c]=m}};d?.onAssign(y.onAssign),n.push(y)}}),R.publisherListeners.set(t,n)}},R.observedElements=new Map,R.enabled=!0,R.publisherListeners=new Map,R);Js.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=Js);/**
2
2
  * @license
3
3
  * Copyright 2017 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const S=e=>(t,s)=>{s!==void 0?s.addInitializer((()=>{customElements.define(e,t)})):customElements.define(e,t)};/**
5
+ */const C=e=>(t,s)=>{s!==void 0?s.addInitializer((()=>{customElements.define(e,t)})):customElements.define(e,t)};/**
6
6
  * @license
7
7
  * Copyright 2019 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */const qs=globalThis,Di=qs.ShadowRoot&&(qs.ShadyCSS===void 0||qs.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Oi=Symbol(),Br=new WeakMap;let Ei=class{constructor(t,s,r){if(this._$cssResult$=!0,r!==Oi)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(Di&&t===void 0){const r=s!==void 0&&s.length===1;r&&(t=Br.get(s)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&Br.set(s,t))}return t}toString(){return this.cssText}};const No=e=>new Ei(typeof e=="string"?e:e+"",void 0,Oi),A=(e,...t)=>{const s=e.length===1?e[0]:t.reduce(((r,i,n)=>r+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[n+1]),e[0]);return new Ei(s,e,Oi)},Ro=(e,t)=>{if(Di)e.adoptedStyleSheets=t.map((s=>s instanceof CSSStyleSheet?s:s.styleSheet));else for(const s of t){const r=document.createElement("style"),i=qs.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=s.cssText,e.appendChild(r)}},Hr=Di?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let s="";for(const r of t.cssRules)s+=r.cssText;return No(s)})(e):e;/**
9
+ */const ti=globalThis,Ri=ti.ShadowRoot&&(ti.ShadyCSS===void 0||ti.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Fi=Symbol(),Jr=new WeakMap;let ji=class{constructor(t,s,r){if(this._$cssResult$=!0,r!==Fi)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(Ri&&t===void 0){const r=s!==void 0&&s.length===1;r&&(t=Jr.get(s)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&Jr.set(s,t))}return t}toString(){return this.cssText}};const Ko=e=>new ji(typeof e=="string"?e:e+"",void 0,Fi),S=(e,...t)=>{const s=e.length===1?e[0]:t.reduce(((r,i,n)=>r+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[n+1]),e[0]);return new ji(s,e,Fi)},Go=(e,t)=>{if(Ri)e.adoptedStyleSheets=t.map((s=>s instanceof CSSStyleSheet?s:s.styleSheet));else for(const s of t){const r=document.createElement("style"),i=ti.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=s.cssText,e.appendChild(r)}},tn=Ri?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let s="";for(const r of t.cssRules)s+=r.cssText;return Ko(s)})(e):e;/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const{is:Fo,defineProperty:jo,getOwnPropertyDescriptor:zo,getOwnPropertyNames:Uo,getOwnPropertySymbols:Vo,getPrototypeOf:Bo}=Object,Ws=globalThis,qr=Ws.trustedTypes,Ho=qr?qr.emptyScript:"",qo=Ws.reactiveElementPolyfillSupport,cs=(e,t)=>e,Ks={toAttribute(e,t){switch(t){case Boolean:e=e?Ho:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let s=e;switch(t){case Boolean:s=e!==null;break;case Number:s=e===null?null:Number(e);break;case Object:case Array:try{s=JSON.parse(e)}catch{s=null}}return s}},Li=(e,t)=>!Fo(e,t),Wr={attribute:!0,type:String,converter:Ks,reflect:!1,useDefault:!1,hasChanged:Li};Symbol.metadata??=Symbol("metadata"),Ws.litPropertyMetadata??=new WeakMap;let qe=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=Wr){if(s.state&&(s.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((s=Object.create(s)).wrapped=!0),this.elementProperties.set(t,s),!s.noAccessor){const r=Symbol(),i=this.getPropertyDescriptor(t,r,s);i!==void 0&&jo(this.prototype,t,i)}}static getPropertyDescriptor(t,s,r){const{get:i,set:n}=zo(this.prototype,t)??{get(){return this[s]},set(o){this[s]=o}};return{get:i,set(o){const l=i?.call(this);n?.call(this,o),this.requestUpdate(t,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Wr}static _$Ei(){if(this.hasOwnProperty(cs("elementProperties")))return;const t=Bo(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(cs("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(cs("properties"))){const s=this.properties,r=[...Uo(s),...Vo(s)];for(const i of r)this.createProperty(i,s[i])}const t=this[Symbol.metadata];if(t!==null){const s=litPropertyMetadata.get(t);if(s!==void 0)for(const[r,i]of s)this.elementProperties.set(r,i)}this._$Eh=new Map;for(const[s,r]of this.elementProperties){const i=this._$Eu(s,r);i!==void 0&&this._$Eh.set(i,s)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const s=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const i of r)s.unshift(Hr(i))}else t!==void 0&&s.push(Hr(t));return s}static _$Eu(t,s){const r=s.attribute;return r===!1?void 0:typeof r=="string"?r: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(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const r of s.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ro(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,s,r){this._$AK(t,r)}_$ET(t,s){const r=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,r);if(i!==void 0&&r.reflect===!0){const n=(r.converter?.toAttribute!==void 0?r.converter:Ks).toAttribute(s,r.type);this._$Em=t,n==null?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(t,s){const r=this.constructor,i=r._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const n=r.getPropertyOptions(i),o=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:Ks;this._$Em=i;const l=o.fromAttribute(s,n.type);this[i]=l??this._$Ej?.get(i)??l,this._$Em=null}}requestUpdate(t,s,r){if(t!==void 0){const i=this.constructor,n=this[t];if(r??=i.getPropertyOptions(t),!((r.hasChanged??Li)(n,s)||r.useDefault&&r.reflect&&n===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,r))))return;this.C(t,s,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,s,{useDefault:r,reflect:i,wrapped:n},o){r&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,o??s??this[t]),n!==!0||o!==void 0)||(this._$AL.has(t)||(this.hasUpdated||r||(s=void 0),this._$AL.set(t,s)),i===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){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(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[i,n]of this._$Ep)this[i]=n;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[i,n]of r){const{wrapped:o}=n,l=this[i];o!==!0||this._$AL.has(i)||l===void 0||this.C(i,void 0,n,l)}}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((r=>r.hostUpdate?.())),this.update(s)):this._$EM()}catch(r){throw t=!1,this._$EM(),r}t&&this._$AE(s)}willUpdate(t){}_$AE(t){this._$EO?.forEach((s=>s.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((s=>this._$ET(s,this[s]))),this._$EM()}updated(t){}firstUpdated(t){}};qe.elementStyles=[],qe.shadowRootOptions={mode:"open"},qe[cs("elementProperties")]=new Map,qe[cs("finalized")]=new Map,qo?.({ReactiveElement:qe}),(Ws.reactiveElementVersions??=[]).push("2.1.1");/**
13
+ */const{is:Yo,defineProperty:Zo,getOwnPropertyDescriptor:Xo,getOwnPropertyNames:Qo,getOwnPropertySymbols:Jo,getPrototypeOf:ta}=Object,ei=globalThis,en=ei.trustedTypes,ea=en?en.emptyScript:"",sa=ei.reactiveElementPolyfillSupport,vs=(e,t)=>e,si={toAttribute(e,t){switch(t){case Boolean:e=e?ea:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let s=e;switch(t){case Boolean:s=e!==null;break;case Number:s=e===null?null:Number(e);break;case Object:case Array:try{s=JSON.parse(e)}catch{s=null}}return s}},zi=(e,t)=>!Yo(e,t),sn={attribute:!0,type:String,converter:si,reflect:!1,useDefault:!1,hasChanged:zi};Symbol.metadata??=Symbol("metadata"),ei.litPropertyMetadata??=new WeakMap;let ts=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=sn){if(s.state&&(s.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((s=Object.create(s)).wrapped=!0),this.elementProperties.set(t,s),!s.noAccessor){const r=Symbol(),i=this.getPropertyDescriptor(t,r,s);i!==void 0&&Zo(this.prototype,t,i)}}static getPropertyDescriptor(t,s,r){const{get:i,set:n}=Xo(this.prototype,t)??{get(){return this[s]},set(o){this[s]=o}};return{get:i,set(o){const l=i?.call(this);n?.call(this,o),this.requestUpdate(t,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??sn}static _$Ei(){if(this.hasOwnProperty(vs("elementProperties")))return;const t=ta(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(vs("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(vs("properties"))){const s=this.properties,r=[...Qo(s),...Jo(s)];for(const i of r)this.createProperty(i,s[i])}const t=this[Symbol.metadata];if(t!==null){const s=litPropertyMetadata.get(t);if(s!==void 0)for(const[r,i]of s)this.elementProperties.set(r,i)}this._$Eh=new Map;for(const[s,r]of this.elementProperties){const i=this._$Eu(s,r);i!==void 0&&this._$Eh.set(i,s)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const s=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const i of r)s.unshift(tn(i))}else t!==void 0&&s.push(tn(t));return s}static _$Eu(t,s){const r=s.attribute;return r===!1?void 0:typeof r=="string"?r: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(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const r of s.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Go(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,s,r){this._$AK(t,r)}_$ET(t,s){const r=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,r);if(i!==void 0&&r.reflect===!0){const n=(r.converter?.toAttribute!==void 0?r.converter:si).toAttribute(s,r.type);this._$Em=t,n==null?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(t,s){const r=this.constructor,i=r._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const n=r.getPropertyOptions(i),o=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:si;this._$Em=i;const l=o.fromAttribute(s,n.type);this[i]=l??this._$Ej?.get(i)??l,this._$Em=null}}requestUpdate(t,s,r){if(t!==void 0){const i=this.constructor,n=this[t];if(r??=i.getPropertyOptions(t),!((r.hasChanged??zi)(n,s)||r.useDefault&&r.reflect&&n===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,r))))return;this.C(t,s,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,s,{useDefault:r,reflect:i,wrapped:n},o){r&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,o??s??this[t]),n!==!0||o!==void 0)||(this._$AL.has(t)||(this.hasUpdated||r||(s=void 0),this._$AL.set(t,s)),i===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){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(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[i,n]of this._$Ep)this[i]=n;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[i,n]of r){const{wrapped:o}=n,l=this[i];o!==!0||this._$AL.has(i)||l===void 0||this.C(i,void 0,n,l)}}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((r=>r.hostUpdate?.())),this.update(s)):this._$EM()}catch(r){throw t=!1,this._$EM(),r}t&&this._$AE(s)}willUpdate(t){}_$AE(t){this._$EO?.forEach((s=>s.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((s=>this._$ET(s,this[s]))),this._$EM()}updated(t){}firstUpdated(t){}};ts.elementStyles=[],ts.shadowRootOptions={mode:"open"},ts[vs("elementProperties")]=new Map,ts[vs("finalized")]=new Map,sa?.({ReactiveElement:ts}),(ei.reactiveElementVersions??=[]).push("2.1.1");/**
14
14
  * @license
15
15
  * Copyright 2017 Google LLC
16
16
  * SPDX-License-Identifier: BSD-3-Clause
17
- */const Wo={attribute:!0,type:String,converter:Ks,reflect:!1,hasChanged:Li},Ko=(e=Wo,t,s)=>{const{kind:r,metadata:i}=s;let n=globalThis.litPropertyMetadata.get(i);if(n===void 0&&globalThis.litPropertyMetadata.set(i,n=new Map),r==="setter"&&((e=Object.create(e)).wrapped=!0),n.set(s.name,e),r==="accessor"){const{name:o}=s;return{set(l){const c=t.get.call(this);t.set.call(this,l),this.requestUpdate(o,c,e)},init(l){return l!==void 0&&this.C(o,void 0,e,l),l}}}if(r==="setter"){const{name:o}=s;return function(l){const c=this[o];t.call(this,l),this.requestUpdate(o,c,e)}}throw Error("Unsupported decorator location: "+r)};function a(e){return(t,s)=>typeof s=="object"?Ko(e,t,s):((r,i,n)=>{const o=i.hasOwnProperty(n);return i.constructor.createProperty(n,r),o?Object.getOwnPropertyDescriptor(i,n):void 0})(e,t,s)}/**
17
+ */const ia={attribute:!0,type:String,converter:si,reflect:!1,hasChanged:zi},ra=(e=ia,t,s)=>{const{kind:r,metadata:i}=s;let n=globalThis.litPropertyMetadata.get(i);if(n===void 0&&globalThis.litPropertyMetadata.set(i,n=new Map),r==="setter"&&((e=Object.create(e)).wrapped=!0),n.set(s.name,e),r==="accessor"){const{name:o}=s;return{set(l){const c=t.get.call(this);t.set.call(this,l),this.requestUpdate(o,c,e)},init(l){return l!==void 0&&this.C(o,void 0,e,l),l}}}if(r==="setter"){const{name:o}=s;return function(l){const c=this[o];t.call(this,l),this.requestUpdate(o,c,e)}}throw Error("Unsupported decorator location: "+r)};function a(e){return(t,s)=>typeof s=="object"?ra(e,t,s):((r,i,n)=>{const o=i.hasOwnProperty(n);return i.constructor.createProperty(n,r),o?Object.getOwnPropertyDescriptor(i,n):void 0})(e,t,s)}/**
18
18
  * @license
19
19
  * Copyright 2017 Google LLC
20
20
  * SPDX-License-Identifier: BSD-3-Clause
@@ -22,58 +22,58 @@
22
22
  * @license
23
23
  * Copyright 2017 Google LLC
24
24
  * SPDX-License-Identifier: BSD-3-Clause
25
- */const Ti=(e,t,s)=>(s.configurable=!0,s.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(e,t,s),s);/**
25
+ */const Ui=(e,t,s)=>(s.configurable=!0,s.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(e,t,s),s);/**
26
26
  * @license
27
27
  * Copyright 2017 Google LLC
28
28
  * SPDX-License-Identifier: BSD-3-Clause
29
- */function he(e,t){return(s,r,i)=>{const n=o=>o.renderRoot?.querySelector(e)??null;return Ti(s,r,{get(){return n(this)}})}}/**
29
+ */function we(e,t){return(s,r,i)=>{const n=o=>o.renderRoot?.querySelector(e)??null;return Ui(s,r,{get(){return n(this)}})}}/**
30
30
  * @license
31
31
  * Copyright 2021 Google LLC
32
32
  * SPDX-License-Identifier: BSD-3-Clause
33
- */function hs(e){return(t,s)=>{const{slot:r,selector:i}=e??{},n="slot"+(r?`[name=${r}]`:":not([name])");return Ti(t,s,{get(){const o=this.renderRoot?.querySelector(n),l=o?.assignedElements(e)??[];return i===void 0?l:l.filter((c=>c.matches(i)))}})}}/**
33
+ */function ys(e){return(t,s)=>{const{slot:r,selector:i}=e??{},n="slot"+(r?`[name=${r}]`:":not([name])");return Ui(t,s,{get(){const o=this.renderRoot?.querySelector(n),l=o?.assignedElements(e)??[];return i===void 0?l:l.filter((c=>c.matches(i)))}})}}/**
34
34
  * @license
35
35
  * Copyright 2017 Google LLC
36
36
  * SPDX-License-Identifier: BSD-3-Clause
37
- */function mt(e){return(t,s)=>{const{slot:r}=e??{},i="slot"+(r?`[name=${r}]`:":not([name])");return Ti(t,s,{get(){return this.renderRoot?.querySelector(i)?.assignedNodes(e)??[]}})}}/**
37
+ */function gt(e){return(t,s)=>{const{slot:r}=e??{},i="slot"+(r?`[name=${r}]`:":not([name])");return Ui(t,s,{get(){return this.renderRoot?.querySelector(i)?.assignedNodes(e)??[]}})}}/**
38
38
  * @license
39
39
  * Copyright 2017 Google LLC
40
40
  * SPDX-License-Identifier: BSD-3-Clause
41
- */const Ii=globalThis,Gs=Ii.trustedTypes,Kr=Gs?Gs.createPolicy("lit-html",{createHTML:e=>e}):void 0,Gr="$lit$",de=`lit$${Math.random().toFixed(9).slice(2)}$`,Yr="?"+de,Go=`<${Yr}>`,$e=document,ds=()=>$e.createComment(""),us=e=>e===null||typeof e!="object"&&typeof e!="function",Mi=Array.isArray,Yo=e=>Mi(e)||typeof e?.[Symbol.iterator]=="function",Ni=`[
42
- \f\r]`,ps=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Zr=/-->/g,Xr=/>/g,Ae=RegExp(`>|${Ni}(?:([^\\s"'>=/]+)(${Ni}*=${Ni}*(?:[^
43
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Qr=/'/g,Jr=/"/g,tn=/^(?:script|style|textarea|title)$/i,Zo=e=>(t,...s)=>({_$litType$:e,strings:t,values:s}),v=Zo(1),Dt=Symbol.for("lit-noChange"),D=Symbol.for("lit-nothing"),en=new WeakMap,ke=$e.createTreeWalker($e,129);function sn(e,t){if(!Mi(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Kr!==void 0?Kr.createHTML(t):t}const Xo=(e,t)=>{const s=e.length-1,r=[];let i,n=t===2?"<svg>":t===3?"<math>":"",o=ps;for(let l=0;l<s;l++){const c=e[l];let h,u,d=-1,p=0;for(;p<c.length&&(o.lastIndex=p,u=o.exec(c),u!==null);)p=o.lastIndex,o===ps?u[1]==="!--"?o=Zr:u[1]!==void 0?o=Xr:u[2]!==void 0?(tn.test(u[2])&&(i=RegExp("</"+u[2],"g")),o=Ae):u[3]!==void 0&&(o=Ae):o===Ae?u[0]===">"?(o=i??ps,d=-1):u[1]===void 0?d=-2:(d=o.lastIndex-u[2].length,h=u[1],o=u[3]===void 0?Ae:u[3]==='"'?Jr:Qr):o===Jr||o===Qr?o=Ae:o===Zr||o===Xr?o=ps:(o=Ae,i=void 0);const y=o===Ae&&e[l+1].startsWith("/>")?" ":"";n+=o===ps?c+Go:d>=0?(r.push(h),c.slice(0,d)+Gr+c.slice(d)+de+y):c+de+(d===-2?l:y)}return[sn(e,n+(e[s]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]};let Ri=class Co{constructor({strings:t,_$litType$:s},r){let i;this.parts=[];let n=0,o=0;const l=t.length-1,c=this.parts,[h,u]=Xo(t,s);if(this.el=Co.createElement(h,r),ke.currentNode=this.el.content,s===2||s===3){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(i=ke.nextNode())!==null&&c.length<l;){if(i.nodeType===1){if(i.hasAttributes())for(const d of i.getAttributeNames())if(d.endsWith(Gr)){const p=u[o++],y=i.getAttribute(d).split(de),g=/([.?@])?(.*)/.exec(p);c.push({type:1,index:n,name:g[2],strings:y,ctor:g[1]==="."?Jo:g[1]==="?"?ta:g[1]==="@"?ea:Ys}),i.removeAttribute(d)}else d.startsWith(de)&&(c.push({type:6,index:n}),i.removeAttribute(d));if(tn.test(i.tagName)){const d=i.textContent.split(de),p=d.length-1;if(p>0){i.textContent=Gs?Gs.emptyScript:"";for(let y=0;y<p;y++)i.append(d[y],ds()),ke.nextNode(),c.push({type:2,index:++n});i.append(d[p],ds())}}}else if(i.nodeType===8)if(i.data===Yr)c.push({type:2,index:n});else{let d=-1;for(;(d=i.data.indexOf(de,d+1))!==-1;)c.push({type:7,index:n}),d+=de.length-1}n++}}static createElement(t,s){const r=$e.createElement("template");return r.innerHTML=t,r}};function We(e,t,s=e,r){if(t===Dt)return t;let i=r!==void 0?s._$Co?.[r]:s._$Cl;const n=us(t)?void 0:t._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),n===void 0?i=void 0:(i=new n(e),i._$AT(e,s,r)),r!==void 0?(s._$Co??=[])[r]=i:s._$Cl=i),i!==void 0&&(t=We(e,i._$AS(e,t.values),i,r)),t}let Qo=class{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:r}=this._$AD,i=(t?.creationScope??$e).importNode(s,!0);ke.currentNode=i;let n=ke.nextNode(),o=0,l=0,c=r[0];for(;c!==void 0;){if(o===c.index){let h;c.type===2?h=new Ke(n,n.nextSibling,this,t):c.type===1?h=new c.ctor(n,c.name,c.strings,this,t):c.type===6&&(h=new sa(n,this,t)),this._$AV.push(h),c=r[++l]}o!==c?.index&&(n=ke.nextNode(),o++)}return ke.currentNode=$e,i}p(t){let s=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,s),s+=r.strings.length-2):r._$AI(t[s])),s++}};class Ke{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,s,r,i){this.type=2,this._$AH=D,this._$AN=void 0,this._$AA=t,this._$AB=s,this._$AM=r,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const s=this._$AM;return s!==void 0&&t?.nodeType===11&&(t=s.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,s=this){t=We(this,t,s),us(t)?t===D||t==null||t===""?(this._$AH!==D&&this._$AR(),this._$AH=D):t!==this._$AH&&t!==Dt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Yo(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==D&&us(this._$AH)?this._$AA.nextSibling.data=t:this.T($e.createTextNode(t)),this._$AH=t}$(t){const{values:s,_$litType$:r}=t,i=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=Ri.createElement(sn(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===i)this._$AH.p(s);else{const n=new Qo(i,this),o=n.u(this.options);n.p(s),this.T(o),this._$AH=n}}_$AC(t){let s=en.get(t.strings);return s===void 0&&en.set(t.strings,s=new Ri(t)),s}k(t){Mi(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let r,i=0;for(const n of t)i===s.length?s.push(r=new Ke(this.O(ds()),this.O(ds()),this,this.options)):r=s[i],r._$AI(n),i++;i<s.length&&(this._$AR(r&&r._$AB.nextSibling,i),s.length=i)}_$AR(t=this._$AA.nextSibling,s){for(this._$AP?.(!1,!0,s);t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}}class Ys{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,s,r,i,n){this.type=1,this._$AH=D,this._$AN=void 0,this.element=t,this.name=s,this._$AM=i,this.options=n,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=D}_$AI(t,s=this,r,i){const n=this.strings;let o=!1;if(n===void 0)t=We(this,t,s,0),o=!us(t)||t!==this._$AH&&t!==Dt,o&&(this._$AH=t);else{const l=t;let c,h;for(t=n[0],c=0;c<n.length-1;c++)h=We(this,l[r+c],s,c),h===Dt&&(h=this._$AH[c]),o||=!us(h)||h!==this._$AH[c],h===D?t=D:t!==D&&(t+=(h??"")+n[c+1]),this._$AH[c]=h}o&&!i&&this.j(t)}j(t){t===D?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Jo extends Ys{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===D?void 0:t}}class ta extends Ys{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==D)}}class ea extends Ys{constructor(t,s,r,i,n){super(t,s,r,i,n),this.type=5}_$AI(t,s=this){if((t=We(this,t,s,0)??D)===Dt)return;const r=this._$AH,i=t===D&&r!==D||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==D&&(r===D||i);i&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class sa{constructor(t,s,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=s,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){We(this,t)}}const ia={I:Ke},ra=Ii.litHtmlPolyfillSupport;ra?.(Ri,Ke),(Ii.litHtmlVersions??=[]).push("3.3.1");const na=(e,t,s)=>{const r=s?.renderBefore??t;let i=r._$litPart$;if(i===void 0){const n=s?.renderBefore??null;r._$litPart$=i=new Ke(t.insertBefore(ds(),n),n,void 0,s??{})}return i._$AI(e),i};/**
41
+ */const Vi=globalThis,ii=Vi.trustedTypes,rn=ii?ii.createPolicy("lit-html",{createHTML:e=>e}):void 0,nn="$lit$",_e=`lit$${Math.random().toFixed(9).slice(2)}$`,on="?"+_e,na=`<${on}>`,Me=document,ws=()=>Me.createComment(""),_s=e=>e===null||typeof e!="object"&&typeof e!="function",Bi=Array.isArray,oa=e=>Bi(e)||typeof e?.[Symbol.iterator]=="function",Hi=`[
42
+ \f\r]`,xs=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,an=/-->/g,ln=/>/g,Ne=RegExp(`>|${Hi}(?:([^\\s"'>=/]+)(${Hi}*=${Hi}*(?:[^
43
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),cn=/'/g,hn=/"/g,dn=/^(?:script|style|textarea|title)$/i,aa=e=>(t,...s)=>({_$litType$:e,strings:t,values:s}),v=aa(1),Lt=Symbol.for("lit-noChange"),k=Symbol.for("lit-nothing"),un=new WeakMap,Re=Me.createTreeWalker(Me,129);function pn(e,t){if(!Bi(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return rn!==void 0?rn.createHTML(t):t}const la=(e,t)=>{const s=e.length-1,r=[];let i,n=t===2?"<svg>":t===3?"<math>":"",o=xs;for(let l=0;l<s;l++){const c=e[l];let h,u,d=-1,p=0;for(;p<c.length&&(o.lastIndex=p,u=o.exec(c),u!==null);)p=o.lastIndex,o===xs?u[1]==="!--"?o=an:u[1]!==void 0?o=ln:u[2]!==void 0?(dn.test(u[2])&&(i=RegExp("</"+u[2],"g")),o=Ne):u[3]!==void 0&&(o=Ne):o===Ne?u[0]===">"?(o=i??xs,d=-1):u[1]===void 0?d=-2:(d=o.lastIndex-u[2].length,h=u[1],o=u[3]===void 0?Ne:u[3]==='"'?hn:cn):o===hn||o===cn?o=Ne:o===an||o===ln?o=xs:(o=Ne,i=void 0);const y=o===Ne&&e[l+1].startsWith("/>")?" ":"";n+=o===xs?c+na:d>=0?(r.push(h),c.slice(0,d)+nn+c.slice(d)+_e+y):c+_e+(d===-2?l:y)}return[pn(e,n+(e[s]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]};let qi=class Mo{constructor({strings:t,_$litType$:s},r){let i;this.parts=[];let n=0,o=0;const l=t.length-1,c=this.parts,[h,u]=la(t,s);if(this.el=Mo.createElement(h,r),Re.currentNode=this.el.content,s===2||s===3){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(i=Re.nextNode())!==null&&c.length<l;){if(i.nodeType===1){if(i.hasAttributes())for(const d of i.getAttributeNames())if(d.endsWith(nn)){const p=u[o++],y=i.getAttribute(d).split(_e),g=/([.?@])?(.*)/.exec(p);c.push({type:1,index:n,name:g[2],strings:y,ctor:g[1]==="."?ha:g[1]==="?"?da:g[1]==="@"?ua:ri}),i.removeAttribute(d)}else d.startsWith(_e)&&(c.push({type:6,index:n}),i.removeAttribute(d));if(dn.test(i.tagName)){const d=i.textContent.split(_e),p=d.length-1;if(p>0){i.textContent=ii?ii.emptyScript:"";for(let y=0;y<p;y++)i.append(d[y],ws()),Re.nextNode(),c.push({type:2,index:++n});i.append(d[p],ws())}}}else if(i.nodeType===8)if(i.data===on)c.push({type:2,index:n});else{let d=-1;for(;(d=i.data.indexOf(_e,d+1))!==-1;)c.push({type:7,index:n}),d+=_e.length-1}n++}}static createElement(t,s){const r=Me.createElement("template");return r.innerHTML=t,r}};function es(e,t,s=e,r){if(t===Lt)return t;let i=r!==void 0?s._$Co?.[r]:s._$Cl;const n=_s(t)?void 0:t._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),n===void 0?i=void 0:(i=new n(e),i._$AT(e,s,r)),r!==void 0?(s._$Co??=[])[r]=i:s._$Cl=i),i!==void 0&&(t=es(e,i._$AS(e,t.values),i,r)),t}let ca=class{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:r}=this._$AD,i=(t?.creationScope??Me).importNode(s,!0);Re.currentNode=i;let n=Re.nextNode(),o=0,l=0,c=r[0];for(;c!==void 0;){if(o===c.index){let h;c.type===2?h=new ss(n,n.nextSibling,this,t):c.type===1?h=new c.ctor(n,c.name,c.strings,this,t):c.type===6&&(h=new pa(n,this,t)),this._$AV.push(h),c=r[++l]}o!==c?.index&&(n=Re.nextNode(),o++)}return Re.currentNode=Me,i}p(t){let s=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,s),s+=r.strings.length-2):r._$AI(t[s])),s++}};class ss{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,s,r,i){this.type=2,this._$AH=k,this._$AN=void 0,this._$AA=t,this._$AB=s,this._$AM=r,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const s=this._$AM;return s!==void 0&&t?.nodeType===11&&(t=s.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,s=this){t=es(this,t,s),_s(t)?t===k||t==null||t===""?(this._$AH!==k&&this._$AR(),this._$AH=k):t!==this._$AH&&t!==Lt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):oa(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==k&&_s(this._$AH)?this._$AA.nextSibling.data=t:this.T(Me.createTextNode(t)),this._$AH=t}$(t){const{values:s,_$litType$:r}=t,i=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=qi.createElement(pn(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===i)this._$AH.p(s);else{const n=new ca(i,this),o=n.u(this.options);n.p(s),this.T(o),this._$AH=n}}_$AC(t){let s=un.get(t.strings);return s===void 0&&un.set(t.strings,s=new qi(t)),s}k(t){Bi(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let r,i=0;for(const n of t)i===s.length?s.push(r=new ss(this.O(ws()),this.O(ws()),this,this.options)):r=s[i],r._$AI(n),i++;i<s.length&&(this._$AR(r&&r._$AB.nextSibling,i),s.length=i)}_$AR(t=this._$AA.nextSibling,s){for(this._$AP?.(!1,!0,s);t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}}class ri{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,s,r,i,n){this.type=1,this._$AH=k,this._$AN=void 0,this.element=t,this.name=s,this._$AM=i,this.options=n,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=k}_$AI(t,s=this,r,i){const n=this.strings;let o=!1;if(n===void 0)t=es(this,t,s,0),o=!_s(t)||t!==this._$AH&&t!==Lt,o&&(this._$AH=t);else{const l=t;let c,h;for(t=n[0],c=0;c<n.length-1;c++)h=es(this,l[r+c],s,c),h===Lt&&(h=this._$AH[c]),o||=!_s(h)||h!==this._$AH[c],h===k?t=k:t!==k&&(t+=(h??"")+n[c+1]),this._$AH[c]=h}o&&!i&&this.j(t)}j(t){t===k?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ha extends ri{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===k?void 0:t}}class da extends ri{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==k)}}class ua extends ri{constructor(t,s,r,i,n){super(t,s,r,i,n),this.type=5}_$AI(t,s=this){if((t=es(this,t,s,0)??k)===Lt)return;const r=this._$AH,i=t===k&&r!==k||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==k&&(r===k||i);i&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class pa{constructor(t,s,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=s,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){es(this,t)}}const fa={I:ss},ma=Vi.litHtmlPolyfillSupport;ma?.(qi,ss),(Vi.litHtmlVersions??=[]).push("3.3.1");const ba=(e,t,s)=>{const r=s?.renderBefore??t;let i=r._$litPart$;if(i===void 0){const n=s?.renderBefore??null;r._$litPart$=i=new ss(t.insertBefore(ws(),n),n,void 0,s??{})}return i._$AI(e),i};/**
44
44
  * @license
45
45
  * Copyright 2020 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
- */const{I:oa}=ia,aa=e=>e.strings===void 0,rn=()=>document.createComment(""),fs=(e,t,s)=>{const r=e._$AA.parentNode,i=t===void 0?e._$AB:t._$AA;if(s===void 0){const n=r.insertBefore(rn(),i),o=r.insertBefore(rn(),i);s=new oa(n,o,e,e.options)}else{const n=s._$AB.nextSibling,o=s._$AM,l=o!==e;if(l){let c;s._$AQ?.(e),s._$AM=e,s._$AP!==void 0&&(c=e._$AU)!==o._$AU&&s._$AP(c)}if(n!==i||l){let c=s._$AA;for(;c!==n;){const h=c.nextSibling;r.insertBefore(c,i),c=h}}}return s},De=(e,t,s=e)=>(e._$AI(t,s),e),la={},ca=(e,t=la)=>e._$AH=t,ha=e=>e._$AH,Fi=e=>{e._$AR(),e._$AA.remove()};/**
47
+ */const{I:ga}=fa,va=e=>e.strings===void 0,fn=()=>document.createComment(""),Ps=(e,t,s)=>{const r=e._$AA.parentNode,i=t===void 0?e._$AB:t._$AA;if(s===void 0){const n=r.insertBefore(fn(),i),o=r.insertBefore(fn(),i);s=new ga(n,o,e,e.options)}else{const n=s._$AB.nextSibling,o=s._$AM,l=o!==e;if(l){let c;s._$AQ?.(e),s._$AM=e,s._$AP!==void 0&&(c=e._$AU)!==o._$AU&&s._$AP(c)}if(n!==i||l){let c=s._$AA;for(;c!==n;){const h=c.nextSibling;r.insertBefore(c,i),c=h}}}return s},Fe=(e,t,s=e)=>(e._$AI(t,s),e),ya={},wa=(e,t=ya)=>e._$AH=t,_a=e=>e._$AH,Wi=e=>{e._$AR(),e._$AA.remove()};/**
48
48
  * @license
49
49
  * Copyright 2017 Google LLC
50
50
  * SPDX-License-Identifier: BSD-3-Clause
51
- */const Oe={ATTRIBUTE:1,CHILD:2},ue=e=>(...t)=>({_$litDirective$:e,values:t});let Ge=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,s,r){this._$Ct=t,this._$AM=s,this._$Ci=r}_$AS(t,s){return this.update(t,s)}update(t,s){return this.render(...s)}};/**
51
+ */const je={ATTRIBUTE:1,CHILD:2},xe=e=>(...t)=>({_$litDirective$:e,values:t});let is=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,s,r){this._$Ct=t,this._$AM=s,this._$Ci=r}_$AS(t,s){return this.update(t,s)}update(t,s){return this.render(...s)}};/**
52
52
  * @license
53
53
  * Copyright 2017 Google LLC
54
54
  * SPDX-License-Identifier: BSD-3-Clause
55
- */const ms=(e,t)=>{const s=e._$AN;if(s===void 0)return!1;for(const r of s)r._$AO?.(t,!1),ms(r,t);return!0},Zs=e=>{let t,s;do{if((t=e._$AM)===void 0)break;s=t._$AN,s.delete(e),e=t}while(s?.size===0)},nn=e=>{for(let t;t=e._$AM;e=t){let s=t._$AN;if(s===void 0)t._$AN=s=new Set;else if(s.has(e))break;s.add(e),pa(t)}};function da(e){this._$AN!==void 0?(Zs(this),this._$AM=e,nn(this)):this._$AM=e}function ua(e,t=!1,s=0){const r=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(r))for(let n=s;n<r.length;n++)ms(r[n],!1),Zs(r[n]);else r!=null&&(ms(r,!1),Zs(r));else ms(this,e)}const pa=e=>{e.type==Oe.CHILD&&(e._$AP??=ua,e._$AQ??=da)};class ji extends Ge{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,s,r){super._$AT(t,s,r),nn(this),this.isConnected=t._$AU}_$AO(t,s=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),s&&(ms(this,t),Zs(this))}setValue(t){if(aa(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 Cs=(e,t)=>{const s=e._$AN;if(s===void 0)return!1;for(const r of s)r._$AO?.(t,!1),Cs(r,t);return!0},ni=e=>{let t,s;do{if((t=e._$AM)===void 0)break;s=t._$AN,s.delete(e),e=t}while(s?.size===0)},mn=e=>{for(let t;t=e._$AM;e=t){let s=t._$AN;if(s===void 0)t._$AN=s=new Set;else if(s.has(e))break;s.add(e),Ca(t)}};function xa(e){this._$AN!==void 0?(ni(this),this._$AM=e,mn(this)):this._$AM=e}function Pa(e,t=!1,s=0){const r=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(r))for(let n=s;n<r.length;n++)Cs(r[n],!1),ni(r[n]);else r!=null&&(Cs(r,!1),ni(r));else Cs(this,e)}const Ca=e=>{e.type==je.CHILD&&(e._$AP??=Pa,e._$AQ??=xa)};class Ki extends is{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,s,r){super._$AT(t,s,r),mn(this),this.isConnected=t._$AU}_$AO(t,s=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),s&&(Cs(this,t),ni(this))}setValue(t){if(va(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
- */const zi=globalThis;let C=class extends qe{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=na(s,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Dt}};C._$litElement$=!0,C.finalized=!0,zi.litElementHydrateSupport?.({LitElement:C});const fa=zi.litElementPolyfillSupport;fa?.({LitElement:C}),(zi.litElementVersions??=[]).push("4.2.1");function on(e){if(e==null||typeof e!="object"||Array.isArray(e))return e;const t={...e};return delete t._sonic_http_response_,t}const q=class q{constructor(t){this.addHTTPResponse=!1,this.cache="default",this.isServiceSimulated=!1,this.blockUntilDone=!1,this.keepAlive=!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",this.keepAlive=t.keepAlive||!1}set token(t){if(this._token=t,!t){q.tokens.delete(this.serviceURL);return}q.invalidTokens.includes(t)||q.tokens.set(this.serviceURL,t)}get token(){return q.invalidTokens.includes(this._token)?q.tokens.get(this.serviceURL):this._token}handleInvalidToken(t){t&&(q.invalidTokens.includes(t)||(q.invalidTokens.push(t),this.token=null))}async handleResult(t,s){q.firstCallDoneFlags.set(this.serviceURL,"done"),this.lastResult=t;const r=t.headers.get("content-type")?.toLowerCase(),i=t.status;let n={};if(!r||r.indexOf("text/")==0)n={text:await t.text()};else try{n=await t.json()}catch{n={}}return this.addHTTPResponse&&ot.isObject(n)&&(n._sonic_http_response_=t),i===498&&!q.failledTokenUpdates.has(this.serviceURL)&&(this.handleInvalidToken(this.token),s.apiMethod==="get"?n=await this[s.apiMethod](s.path,s.additionalHeaders):n=await this[s.apiMethod](s.path,s.data,s.method,s.additionalHeaders)),Bs("sonic-api").lastResponse.set({http:t,processed:n}),n}async auth(){if(this.token)return;if(q.tokens.has(this.serviceURL)){this.token=q.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),r=s.protocol+"//"+s.host,i=await fetch(this.computeURL(this.tokenProvider,{serviceHost:r}),{headers:t,credentials:this.credentials,keepalive:this.keepAlive});try{const n=await i.json();n.token?this.token=n.token:q.failledTokenUpdates.set(this.serviceURL,!0)}catch{q.failledTokenUpdates.set(this.serviceURL,!0)}}async localGet(t,s){const r=L.get(t),i=new URLSearchParams(s.split("?")[1]||""),n=r.get();let o=[];Array.isArray(n)?o=n:o=[n];const l=[];let c=Number.POSITIVE_INFINITY,h=0,u=0;if(i.has("limit")&&(c=parseInt(i.get("limit")||"0"),u++),i.has("offset")&&(h=parseInt(i.get("offset")||"0"),u++),u>0&&(i.delete("limit"),i.delete("offset")),i.size===0)return o.slice(h,h+c);for(const[d,p]of i.entries()){const y=p.split(",").map(g=>g.trim());for(const g of y)for(const b of o)if(typeof b!="object")isNaN(+b)?b.toString().toLowerCase().includes(p.toLowerCase())&&l.push(b):b===p&&l.push(b);else{const w=b;if(!w[d])continue;isNaN(+w[d])?w[d]?.toString().toLowerCase().includes(g.toLowerCase())&&l.push(b):w[d]===g&&l.push(b)}}return l.slice(h,h+c)}firstCallDone(){return new Promise(t=>{if(!q.firstCallDoneFlags.has(this.serviceURL))q.firstCallDoneFlags.set(this.serviceURL,"loading"),t(!0);else{const s=()=>{[void 0,"loading"].includes(q.firstCallDoneFlags.get(this.serviceURL))?window.requestAnimationFrame(s):t(!0)};s()}})}async get(t,s){await this.firstCallDone(),this.blockUntilDone&&q.firstCallDoneFlags.set(this.serviceURL,"loading");const r=/dataProvider\((.*?)\)(.*?)$/;if(r.test(t)){const h=t.match(r);if(!h)throw new Error("dataProvider path is not valid");return await this.localGet(h[1],h[2])}const i={apiMethod:"get",path:t,additionalHeaders:s},n=await this.createHeaders(s),o=this.computeURL(t),l=JSON.stringify({url:o,headers:n});if(!q.loadingGetPromises.has(l)){const h=new Promise(async u=>{try{const d=await fetch(o,{headers:n,credentials:this.credentials,cache:this.cache,keepalive:this.keepAlive}),p=await this.handleResult(d,i);u(p)}catch{u(null)}});q.loadingGetPromises.set(l,h)}const c=await q.loadingGetPromises.get(l);return q.loadingGetPromises.delete(l),c}async getDetailed(t,s){const r=/dataProvider\((.*?)\)(.*?)$/.test(t),i=await this.get(t,s);if(i==null)return;const n=on(i),o=this.computeURL(t);if(r)return{request:new Request(o,{method:"GET"}),result:n};const l=await this.createHeaders(s);return{request:new Request(o,{method:"GET",headers:new Headers(l),credentials:this.credentials,cache:this.cache,keepalive:this.keepAlive}),response:this.lastResult,result:n}}async sendDetailed(t,s,r,i){const n=await this.send(t,s,r,i);if(n==null)return;const o=on(n),l=this.computeURL(t),c=await this.createHeaders({Accept:"application/json","Content-Type":"application/json",...i});return{request:new Request(l,{method:r,headers:new Headers(c),credentials:this.credentials,body:JSON.stringify(s),keepalive:this.keepAlive}),response:this.lastResult,result:o}}async postDetailed(t,s,r){return this.sendDetailed(t,s,"POST",r)}async putDetailed(t,s,r){return this.sendDetailed(t,s,"PUT",r)}async patchDetailed(t,s,r){return this.sendDetailed(t,s,"PATCH",r)}async createHeaders(t){await this.auth();const s={};return this.token&&(s.Authorization="Bearer "+this.token),s["Accept-Language"]=Y.getLanguage(),t&&Object.assign(s,t),s}computeURL(t,s={}){let r="";t.startsWith("http")?r=t:r=this.serviceURL+"/"+t,r.startsWith("http")||(r=window.location.origin+r);const i=new URL(r);for(const n in s)i.searchParams.set(n,s[n]);return i.toString().replace(/([^(https?:)])\/{2,}/g,"$1/")}async send(t,s,r="POST",i){const n={apiMethod:"send",path:t,additionalHeaders:i,method:r,data:s},o=await this.createHeaders(i);o.Accept="application/json",o["Content-Type"]="application/json";const l=await fetch(this.computeURL(t),{headers:o,credentials:this.credentials,method:r,body:JSON.stringify(s),keepalive:this.keepAlive});return await this.handleResult(l,n)}async submitFormData(t,s,r="POST",i){const n={apiMethod:"submitFormData",path:t,additionalHeaders:i,method:r,data:s},o=await this.createHeaders(i);o.Accept="application/json";const l=new FormData,c=s;for(const u in c)l.set(u,c[u]);const h=await fetch(this.computeURL(t),{headers:o,credentials:this.credentials,method:r,body:l,keepalive:this.keepAlive});return await this.handleResult(h,n)}async put(t,s,r){return this.send(t,s,"PUT",r)}async post(t,s,r){return this.send(t,s,"POST",r)}async patch(t,s,r){return this.send(t,s,"PATCH",r)}async delete(t,s,r){return this.send(t,s,"delete",r)}};q.loadingGetPromises=new Map,q.tokens=new Map,q.invalidTokens=[],q.failledTokenUpdates=new Map,q.firstCallDoneFlags=new Map;let pe=q;Y.getApiConfiguration(document.body||document.documentElement);const ma=async(e,t)=>{};/**
59
+ */const Gi=globalThis;let P=class extends ts{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ba(s,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Lt}};P._$litElement$=!0,P.finalized=!0,Gi.litElementHydrateSupport?.({LitElement:P});const Sa=Gi.litElementPolyfillSupport;Sa?.({LitElement:P}),(Gi.litElementVersions??=[]).push("4.2.1");function bn(e){if(e==null||typeof e!="object"||Array.isArray(e))return e;const t={...e};return delete t._sonic_http_response_,t}const V=class V{constructor(t){this.addHTTPResponse=!1,this.cache="default",this.isServiceSimulated=!1,this.blockUntilDone=!1,this.keepAlive=!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",this.keepAlive=t.keepAlive||!1}set token(t){if(this._token=t,!t){V.tokens.delete(this.serviceURL);return}V.invalidTokens.includes(t)||V.tokens.set(this.serviceURL,t)}get token(){return V.invalidTokens.includes(this._token)?V.tokens.get(this.serviceURL):this._token}handleInvalidToken(t){t&&(V.invalidTokens.includes(t)||(V.invalidTokens.push(t),this.token=null))}async handleResult(t,s){V.firstCallDoneFlags.set(this.serviceURL,"done"),this.lastResult=t;const r=t.headers.get("content-type")?.toLowerCase(),i=t.status;let n={};if(!r||r.indexOf("text/")==0)n={text:await t.text()};else try{n=await t.json()}catch{n={}}if(this.addHTTPResponse&&dt.isObject(n)&&(n._sonic_http_response_=t),i===498&&!V.failledTokenUpdates.has(this.serviceURL))if(this.handleInvalidToken(this.token),s.apiMethod==="get"){const l=await this.get(s.path,s.additionalHeaders);if(l==null)throw new Error("GET retry failed after token refresh");n=l}else n=await this[s.apiMethod](s.path,s.data,s.method,s.additionalHeaders);return Qs("sonic-api").lastResponse.set({http:t,processed:n}),n}async auth(){if(this.token)return;if(V.tokens.has(this.serviceURL)){this.token=V.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),r=s.protocol+"//"+s.host,i=await fetch(this.computeURL(this.tokenProvider,{serviceHost:r}),{headers:t,credentials:this.credentials,keepalive:this.keepAlive});try{const n=await i.json();n.token?this.token=n.token:V.failledTokenUpdates.set(this.serviceURL,!0)}catch{V.failledTokenUpdates.set(this.serviceURL,!0)}}async localGet(t,s){const r=L.get(t),i=new URLSearchParams(s.split("?")[1]||""),n=r.get();let o=[];Array.isArray(n)?o=n:o=[n];const l=[];let c=Number.POSITIVE_INFINITY,h=0,u=0;if(i.has("limit")&&(c=parseInt(i.get("limit")||"0"),u++),i.has("offset")&&(h=parseInt(i.get("offset")||"0"),u++),u>0&&(i.delete("limit"),i.delete("offset")),i.size===0)return o.slice(h,h+c);for(const[d,p]of i.entries()){const y=p.split(",").map(g=>g.trim());for(const g of y)for(const m of o)if(typeof m!="object")isNaN(+m)?m.toString().toLowerCase().includes(p.toLowerCase())&&l.push(m):m===p&&l.push(m);else{const w=m;if(!w[d])continue;isNaN(+w[d])?w[d]?.toString().toLowerCase().includes(g.toLowerCase())&&l.push(m):w[d]===g&&l.push(m)}}return l.slice(h,h+c)}firstCallDone(){return new Promise(t=>{if(!V.firstCallDoneFlags.has(this.serviceURL))V.firstCallDoneFlags.set(this.serviceURL,"loading"),t(!0);else{const s=()=>{[void 0,"loading"].includes(V.firstCallDoneFlags.get(this.serviceURL))?window.requestAnimationFrame(s):t(!0)};s()}})}async get(t,s){const r=/dataProvider\((.*?)\)(.*?)$/;if(r.test(t)){this.blockUntilDone&&(await this.firstCallDone(),V.firstCallDoneFlags.set(this.serviceURL,"loading"));const h=t.match(r);if(!h)throw new Error("dataProvider path is not valid");return await this.localGet(h[1],h[2])}const i={apiMethod:"get",path:t,additionalHeaders:s},n=await this.createHeaders(s),o=this.computeURL(t),l=JSON.stringify({url:o,headers:n,credentials:this.credentials,cache:this.cache,keepAlive:this.keepAlive});if(this.blockUntilDone&&(await this.firstCallDone(),V.firstCallDoneFlags.set(this.serviceURL,"loading")),!V.loadingGetPromises.has(l)){const h=new Promise(async u=>{try{const d=await fetch(o,{headers:n,credentials:this.credentials,cache:this.cache,keepalive:this.keepAlive}),p=await this.handleResult(d,i);u({processed:p,response:this.lastResult})}catch{V.firstCallDoneFlags.set(this.serviceURL,"error"),u(null)}});V.loadingGetPromises.set(l,h)}const c=await V.loadingGetPromises.get(l);return V.loadingGetPromises.delete(l),c?(this.lastResult=c.response,c.processed):null}async getDetailed(t,s){const r=/dataProvider\((.*?)\)(.*?)$/.test(t),i=await this.get(t,s);if(i==null)return;const n=bn(i),o=this.computeURL(t);if(r)return{request:new Request(o,{method:"GET"}),result:n};const l=await this.createHeaders(s);return{request:new Request(o,{method:"GET",headers:new Headers(l),credentials:this.credentials,cache:this.cache,keepalive:this.keepAlive}),response:this.lastResult,result:n}}async sendDetailed(t,s,r,i){const n=await this.send(t,s,r,i);if(n==null)return;const o=bn(n),l=this.computeURL(t),c=await this.createHeaders({Accept:"application/json","Content-Type":"application/json",...i});return{request:new Request(l,{method:r,headers:new Headers(c),credentials:this.credentials,body:JSON.stringify(s),keepalive:this.keepAlive}),response:this.lastResult,result:o}}async postDetailed(t,s,r){return this.sendDetailed(t,s,"POST",r)}async putDetailed(t,s,r){return this.sendDetailed(t,s,"PUT",r)}async patchDetailed(t,s,r){return this.sendDetailed(t,s,"PATCH",r)}async createHeaders(t){await this.auth();const s={};return this.token&&(s.Authorization="Bearer "+this.token),s["Accept-Language"]=Q.getLanguage(),t&&Object.assign(s,t),s}computeURL(t,s={}){let r="";t.startsWith("http")?r=t:r=this.serviceURL+"/"+t,r.startsWith("http")||(r=window.location.origin+r);const i=new URL(r);for(const n in s)i.searchParams.set(n,s[n]);return i.toString().replace(/([^(https?:)])\/{2,}/g,"$1/")}async send(t,s,r="POST",i){const n={apiMethod:"send",path:t,additionalHeaders:i,method:r,data:s},o=await this.createHeaders(i);o.Accept="application/json",o["Content-Type"]="application/json";const l=await fetch(this.computeURL(t),{headers:o,credentials:this.credentials,method:r,body:JSON.stringify(s),keepalive:this.keepAlive});return await this.handleResult(l,n)}async submitFormData(t,s,r="POST",i){const n={apiMethod:"submitFormData",path:t,additionalHeaders:i,method:r,data:s},o=await this.createHeaders(i);o.Accept="application/json";const l=new FormData,c=s;for(const u in c)l.set(u,c[u]);const h=await fetch(this.computeURL(t),{headers:o,credentials:this.credentials,method:r,body:l,keepalive:this.keepAlive});return await this.handleResult(h,n)}async put(t,s,r){return this.send(t,s,"PUT",r)}async post(t,s,r){return this.send(t,s,"POST",r)}async patch(t,s,r){return this.send(t,s,"PATCH",r)}async delete(t,s,r){return this.send(t,s,"delete",r)}};V.loadingGetPromises=new Map,V.tokens=new Map,V.invalidTokens=[],V.failledTokenUpdates=new Map,V.firstCallDoneFlags=new Map;let Pe=V;Q.getApiConfiguration(document.body||document.documentElement);const $a=async(e,t)=>{};/**
60
60
  * @license
61
61
  * Copyright 2017 Google LLC
62
62
  * SPDX-License-Identifier: BSD-3-Clause
63
- */let Ui=class extends Ge{constructor(t){if(super(t),this.it=D,t.type!==Oe.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===D||t==null)return this._t=void 0,this.it=t;if(t===Dt)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:[]}}};Ui.directiveName="unsafeHTML",Ui.resultType=1;const U=ue(Ui),Vi=new Map,an=e=>{if(!e)return null;const t=Y.getApiConfiguration(e),s=Y.getAncestorAttributeValue(e,"wordingProvider"),r=Y.getAncestorAttributeValue(e,"wordingVersionProvider"),i={apiConfiguration:t,wordingProvider:s,wordingVersionProvider:r};let n=null;for(const[o,l]of Vi)if(ot.deepEqual(o,i)){n=l;break}return n||(n={api:new pe(t),keysToTranslate:new Set,translatedKeys:new Set,wordingProvider:s,callIndex:0,wordingVersionProvider:r,apiCallKey:i},Vi.set(i,n)),n},ln="",K=class K extends ji{constructor(t){super(t),this.useUnsafeHTML=!1,this.onAssign=s=>{const r=this.useUnsafeHTML?U(s):s;this.setValue(r)},this.node=t.options.host}unsubscribe(){K.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)),Dt}static async callApi(t,s,r=!0,i){if(await L.getInstance().isLocalStrorageReady,K.firstCall){K.firstCall=!1,Si(K.reloadWordings);const u=Object.keys(K.publisher.get());for(const d of u)K.publisher.get()[d]===ln&&delete K.publisher[d]}if(t){const u=Y.getAncestorAttributeValue(t,"wordingVersionProvider");u&&Bs(u).onAssign(K.handleVersionProvider(t))}let n=K.publisher.get()["wording_"+s]!=null;const o=i||an(t);if(!o)return;if(n&&s!==""){o.translatedKeys.add(s);return}o.callIndex++;const l=o.callIndex,c=o.wordingProvider??"";if(!c&&r){window.setTimeout(async()=>{K.callApi(null,s,!1,o)},1e3);return}const h=o.api;window.queueMicrotask(async()=>{if(n=K.publisher["wording_"+s].get()!=null,!n&&s!==""&&(o.keysToTranslate.add(s),K.publisher["wording_"+s].set(ln)),l!==o.callIndex)return;const u=Array.from(o.keysToTranslate);if(!u.length)return;const d=c.split("?"),p=d.shift(),y=(d.length>0?d.join("?")+"&":"")+"labels[]="+u.join("&labels[]="),g=p+"?"+y;o.translatedKeys=new Set([...o.translatedKeys,...o.keysToTranslate]),o.keysToTranslate.clear();const b=await h.get(g);for(const w in b)K.publisher["wording_"+w].set(b[w])})}static reloadWordings(){for(const t of Vi.values())t.keysToTranslate=new Set(t.translatedKeys),t.keysToTranslate.size>0&&K.callApi(null,"",!1,t)}static handleVersionProvider(t){const s=an(t),r=n=>{};if(!s)return r;if(K.versionProviderHandlers.has(s))return K.versionProviderHandlers.get(s)||r;const i=function(n){if(!s.wordingVersionProvider)return;const l=K.publisher.get().__wording_versions__??[];if(n==null)return;const c=l.find(h=>h.serviceURL===s.api.serviceURL)||{serviceURL:s.api.serviceURL,version:0};l.includes(c)||l.push(c),n!==c.version&&(c.version=n,K.publisher.set({__wording_versions__:l}),K.reloadWordings())};return K.versionProviderHandlers.set(s,i),i}subscribe(t){this.unsubscribe(),K.publisher["wording_"+t].onAssign(this.onAssign),K.callApi(this.node,t)}disconnected(){this.unsubscribe()}reconnected(){this.key&&this.subscribe(this.key)}};K.publisher=L.get("sonic-wording",{localStorageMode:"enabled"}),K.firstCall=!0,K.versionProviderHandlers=new Map;let Ye=K;const ba=ue(Ye);var ga=Object.defineProperty,va=Object.getOwnPropertyDescriptor,Bt=(e,t,s,r)=>{for(var i=r>1?void 0:r?va(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&ga(t,s,i),i};let Xs=!1,Bi=new Set;const it=(e,t)=>{var i;const s=(i=class extends e{constructor(...o){super(),this.collectDependenciesVersion=0,this.displayContents=!1,this.noAutoFill=!1,this.forceAutoFill=!1,this.renderOnPropsInternalChange=!1,this.noShadowDom=null,this.propertyMap=null,this.title="",this.dataProvider=null,this.bindPublisher=null,this._props=null,this.shouldRenderLazy=!0,this.defferedDebug=null,this.debug=null,this.onAssign=l=>{this.props=l}}hasAncestorAttribute(o){return this.getAncestorAttributeValue(o)!=null}getAncestorAttributeValue(o){return Y.getAncestorAttributeValue(this,o)}get props(){return this._props!==null||!this.publisher?this._props:this.publisher.get()}set props(o){typeof o=="string"&&["{","["].includes(o.trim().charAt(0))&&(o=JSON.parse(o)),o!=this._props&&(this._props=o,this.publisher&&this.publisher.get()!=o&&this.publisher.set(o),this.requestUpdate())}updated(o){super.updated(o);const c=[...(this.shadowRoot||this).children].filter(u=>u.tagName!="STYLE"),h=this.displayContents?"contents":c.length==0?"none":null;h?this.style.display=h:this.style.removeProperty("display")}connectedCallback(){if(i.instanceCounter++,this.hasAttribute("lazyRendering")){const o={root:null,threshold:.9};let l=!0;const c=new IntersectionObserver(h=>{for(const u of h)if(l&&u.isIntersecting){l=!1,c.disconnect(),this.initWording(),this.shouldRenderLazy=!1,this.startPublisher();break}},o);c.observe(this)}else this.initWording(),this.shouldRenderLazy=!1;this.initPublisher(),this.addDebugger(),super.connectedCallback()}disconnectedCallback(){this.removeDebugger(),super.disconnectedCallback(),this.publisher&&(this.publisher.stopTemplateFilling(this),this.publisher.offInternalMutation(this.requestUpdate)),Ye.publisher.stopTemplateFilling(this),this.onAssign&&this.publisher?.offAssign(this.onAssign)}addDebugger(){if(this.hasAttribute("debug")&&!this.defferedDebug){if(!this.debug){this.debug=document.createElement("div");const o=this.debug.style;o.position="fixed",o.top="0",o.right="0",o.margin="auto",o.borderRadius=".7rem",o.backgroundColor="#0f1729",o.color="#c5d4f9",o.padding="16px 16px",o.margin="16px 16px",o.boxShadow="0 10px 30px -18px rgba(0,0,0,.3)",o.overflowY="auto",o.zIndex="99999999",o.maxHeight="calc(100vh - 32px)",o.fontFamily="Consolas, monospace",o.maxWidth="min(50vw,25rem)",o.fontSize="12px",o.minWidth="300px",o.overflowWrap="break-word",o.resize="vertical"}this.addEventListener("click",o=>{o.ctrlKey&&(o.preventDefault(),Xs=!Xs)}),this.dataProvider&&(window[this.dataProvider]=this.publisher),this.addEventListener("mouseover",()=>{Xs||this.removeDebugger(),document.body.appendChild(this.debug),Bi.add(this.debug)}),this.addEventListener("mouseout",()=>{Xs||this.removeDebugger()}),this.publisher?.onInternalMutation(()=>{this.debug.innerHTML=`🤖 DataProvider : "<b style="font-weight:bold;color:#fff;">${this.dataProvider}</b>"<br>
63
+ */let Yi=class extends is{constructor(t){if(super(t),this.it=k,t.type!==je.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===k||t==null)return this._t=void 0,this.it=t;if(t===Lt)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:[]}}};Yi.directiveName="unsafeHTML",Yi.resultType=1;const H=xe(Yi),Zi=new Map,gn=e=>{if(!e)return null;const t=Q.getApiConfiguration(e),s=Q.getAncestorAttributeValue(e,"wordingProvider"),r=Q.getAncestorAttributeValue(e,"wordingVersionProvider"),i={apiConfiguration:t,wordingProvider:s,wordingVersionProvider:r};let n=null;for(const[o,l]of Zi)if(dt.deepEqual(o,i)){n=l;break}return n||(n={api:new Pe(t),keysToTranslate:new Set,translatedKeys:new Set,wordingProvider:s,callIndex:0,wordingVersionProvider:r,apiCallKey:i},Zi.set(i,n)),n},vn="",G=class G extends Ki{constructor(t){super(t),this.useUnsafeHTML=!1,this.onAssign=s=>{const r=this.useUnsafeHTML?H(s):s;this.setValue(r)},this.node=t.options.host}unsubscribe(){G.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)),Lt}static async callApi(t,s,r=!0,i){if(await L.getInstance().isLocalStrorageReady,G.firstCall){G.firstCall=!1,Ti(G.reloadWordings);const u=Object.keys(G.publisher.get());for(const d of u)G.publisher.get()[d]===vn&&delete G.publisher[d]}if(t){const u=Q.getAncestorAttributeValue(t,"wordingVersionProvider");u&&Qs(u).onAssign(G.handleVersionProvider(t))}let n=G.publisher.get()["wording_"+s]!=null;const o=i||gn(t);if(!o)return;if(n&&s!==""){o.translatedKeys.add(s);return}o.callIndex++;const l=o.callIndex,c=o.wordingProvider??"";if(!c&&r){window.setTimeout(async()=>{G.callApi(null,s,!1,o)},1e3);return}const h=o.api;window.queueMicrotask(async()=>{if(n=G.publisher["wording_"+s].get()!=null,!n&&s!==""&&(o.keysToTranslate.add(s),G.publisher["wording_"+s].set(vn)),l!==o.callIndex)return;const u=Array.from(o.keysToTranslate);if(!u.length)return;const d=c.split("?"),p=d.shift(),y=(d.length>0?d.join("?")+"&":"")+"labels[]="+u.join("&labels[]="),g=p+"?"+y;o.translatedKeys=new Set([...o.translatedKeys,...o.keysToTranslate]),o.keysToTranslate.clear();const m=await h.get(g);for(const w in m)G.publisher["wording_"+w].set(m[w])})}static reloadWordings(){for(const t of Zi.values())t.keysToTranslate=new Set(t.translatedKeys),t.keysToTranslate.size>0&&G.callApi(null,"",!1,t)}static handleVersionProvider(t){const s=gn(t),r=n=>{};if(!s)return r;if(G.versionProviderHandlers.has(s))return G.versionProviderHandlers.get(s)||r;const i=function(n){if(!s.wordingVersionProvider)return;const l=G.publisher.get().__wording_versions__??[];if(n==null)return;const c=l.find(h=>h.serviceURL===s.api.serviceURL)||{serviceURL:s.api.serviceURL,version:0};l.includes(c)||l.push(c),n!==c.version&&(c.version=n,G.publisher.set({__wording_versions__:l}),G.reloadWordings())};return G.versionProviderHandlers.set(s,i),i}subscribe(t){this.unsubscribe(),G.publisher["wording_"+t].onAssign(this.onAssign),G.callApi(this.node,t)}disconnected(){this.unsubscribe()}reconnected(){this.key&&this.subscribe(this.key)}};G.publisher=L.get("sonic-wording",{localStorageMode:"enabled"}),G.firstCall=!0,G.versionProviderHandlers=new Map;let rs=G;const Aa=xe(rs);var ka=Object.defineProperty,Da=Object.getOwnPropertyDescriptor,Gt=(e,t,s,r)=>{for(var i=r>1?void 0:r?Da(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&ka(t,s,i),i};let oi=!1,Xi=new Set;const ct=(e,t)=>{var i;const s=(i=class extends e{constructor(...o){super(),this.collectDependenciesVersion=0,this.displayContents=!1,this.noAutoFill=!1,this.forceAutoFill=!1,this.renderOnPropsInternalChange=!1,this.noShadowDom=null,this.propertyMap=null,this.title="",this.dataProvider=null,this.bindPublisher=null,this._props=null,this.shouldRenderLazy=!0,this.defferedDebug=null,this.debug=null,this.onAssign=l=>{this.props=l}}hasAncestorAttribute(o){return this.getAncestorAttributeValue(o)!=null}getAncestorAttributeValue(o){return Q.getAncestorAttributeValue(this,o)}get props(){return this._props!==null||!this.publisher?this._props:this.publisher.get()}set props(o){typeof o=="string"&&["{","["].includes(o.trim().charAt(0))&&(o=JSON.parse(o)),o!=this._props&&(this._props=o,this.publisher&&this.publisher.get()!=o&&this.publisher.set(o),this.requestUpdate())}updated(o){super.updated(o);const c=[...(this.shadowRoot||this).children].filter(u=>u.tagName!="STYLE"),h=this.displayContents?"contents":c.length==0?"none":null;h?this.style.display=h:this.style.removeProperty("display")}connectedCallback(){if(i.instanceCounter++,this.hasAttribute("lazyRendering")){const o={root:null,threshold:.9};let l=!0;const c=new IntersectionObserver(h=>{for(const u of h)if(l&&u.isIntersecting){l=!1,c.disconnect(),this.initWording(),this.shouldRenderLazy=!1,this.startPublisher();break}},o);c.observe(this)}else this.initWording(),this.shouldRenderLazy=!1;this.initPublisher(),this.addDebugger(),super.connectedCallback()}disconnectedCallback(){this.removeDebugger(),super.disconnectedCallback(),this.publisher&&(this.publisher.stopTemplateFilling(this),this.publisher.offInternalMutation(this.requestUpdate)),rs.publisher.stopTemplateFilling(this),this.onAssign&&this.publisher?.offAssign(this.onAssign)}addDebugger(){if(this.hasAttribute("debug")&&!this.defferedDebug){if(!this.debug){this.debug=document.createElement("div");const o=this.debug.style;o.position="fixed",o.top="0",o.right="0",o.margin="auto",o.borderRadius=".7rem",o.backgroundColor="#0f1729",o.color="#c5d4f9",o.padding="16px 16px",o.margin="16px 16px",o.boxShadow="0 10px 30px -18px rgba(0,0,0,.3)",o.overflowY="auto",o.zIndex="99999999",o.maxHeight="calc(100vh - 32px)",o.fontFamily="Consolas, monospace",o.maxWidth="min(50vw,25rem)",o.fontSize="12px",o.minWidth="300px",o.overflowWrap="break-word",o.resize="vertical"}this.addEventListener("click",o=>{o.ctrlKey&&(o.preventDefault(),oi=!oi)}),this.dataProvider&&(window[this.dataProvider]=this.publisher),this.addEventListener("mouseover",()=>{oi||this.removeDebugger(),document.body.appendChild(this.debug),Xi.add(this.debug)}),this.addEventListener("mouseout",()=>{oi||this.removeDebugger()}),this.publisher?.onInternalMutation(()=>{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(this.publisher?.get(),null," ")}</pre>`})}}removeDebugger(){Bi.forEach(o=>{document.body.contains(o)&&document.body.removeChild(o)}),Bi=new Set}getApiConfiguration(){return Y.getApiConfiguration(this)}async initWording(){const o=Object.getOwnPropertyNames(this.constructor.prototype);for(const l of o)l.indexOf("wording_")==0&&Ye.callApi(this,l.substring(8));Ye.publisher.startTemplateFilling(this)}createRenderRoot(){if(this.noShadowDom===""||this.getAttribute("noShadowDom")==="")return this;const o=super.createRenderRoot();return Hs.observe(o),o}initPublisher(){if(!document)return;this.publisher&&(this.publisher.stopTemplateFilling(this),this.publisher.offInternalMutation(this.requestUpdate),this.onAssign&&this.publisher.offAssign(this.onAssign));const o=L.getInstance();this.dataProvider||(this.dataProvider=this.getAncestorAttributeValue("dataProvider"));let l=this.dataProvider;if(!l&&this._props&&(this.dataProvider=l="__subscriber__"+i.instanceCounter),l){this.bindPublisher&&o.set(l,this.bindPublisher());let c=o.get(l,{localStorageMode:this.getAttribute("localStorage")||"disabled",invalidateOnPageShow:this.hasAttribute("invalidateOnPageShow")});if(this.dataProvider=l,this.hasAttribute("subDataProvider")){const h=this.getAttribute("subDataProvider");this.dataProvider=l+"/"+h,c=ot.traverse(c,h.split(".")),o.set(this.dataProvider,c),this.publisher=c}this.publisher=c}this.hasAttribute("lazyRendering")||this.startPublisher()}startPublisher(){this.publisher&&(this._props&&this.publisher.set(this._props),this.noAutoFill||this.publisher.startTemplateFilling(this),this.renderOnPropsInternalChange&&this.publisher.onInternalMutation(this.requestUpdate),this.publisher.onAssign(this.onAssign))}},i.instanceCounter=0,i);return Bt([a({type:Number})],s.prototype,"collectDependenciesVersion",2),Bt([a({type:Boolean})],s.prototype,"displayContents",2),Bt([a({type:Boolean})],s.prototype,"noAutoFill",2),Bt([a({type:Boolean})],s.prototype,"forceAutoFill",2),Bt([a({type:Object})],s.prototype,"propertyMap",2),Bt([a({type:String,attribute:"data-title"})],s.prototype,"title",2),Bt([a({reflect:!0})],s.prototype,"dataProvider",2),Bt([a()],s.prototype,"bindPublisher",2),Bt([a()],s.prototype,"props",1),Bt([T()],s.prototype,"shouldRenderLazy",2),s};var ya=Object.defineProperty,wa=(e,t,s,r)=>{for(var i=void 0,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=o(t,s,i)||i);return i&&ya(t,s,i),i};const bs=e=>{class t extends e{constructor(){super(...arguments),this.templates=null,this.templateValueAttribute="data-value",this.templateList=[],this.templateParts={},this.templatePartsList=[]}connectedCallback(){const r=this.templates||[...this.querySelectorAll("template")];for(const i of r)i.hasAttribute(this.templateValueAttribute)&&(this.templateParts[i.getAttribute(this.templateValueAttribute)]=i,this.templatePartsList.push(i)),i.hasAttribute("skeleton")&&(this.templateParts.skeleton=i),i.hasAttribute("no-result")&&(this.templateParts["no-result"]=i),i.hasAttribute("no-item")&&(this.templateParts["no-item"]=i);this.templateList=r.filter(i=>!i.getAttribute("data-value")),this.templateList.length==0&&(this.templateList=r),super.connectedCallback()}}return wa([a({type:Array})],t.prototype,"templates"),t};var _a=Object.defineProperty,xa=Object.getOwnPropertyDescriptor,Q=(e,t,s,r)=>{for(var i=r>1?void 0:r?xa(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&_a(t,s,i),i};const Pa="sonic-date";Si(()=>B.updateComponentsLanguage());let B=class extends it(bs(C)){constructor(){super(...arguments),this.pageLanguage="fr",this.duAu=[],this._wording_billet_periode_validite="",this.designMode=null,this.time_zone=null,this.date=null,this.date_string=null,this.start_date_string=null,this.end_date_string=null,this.start_date=0,this.computedStartDate=0,this.end_date=0,this.computedEndDate=0,this.hide_hours=!1,this.era="",this.year="numeric",this.month="short",this.day="2-digit",this.weekday="short",this.hour="2-digit",this.hour12=!1,this.minute="2-digit",this.language="",this.renderIf=!0,this.now=!1,this.startDateObject=new Date,this.endDateObject=new Date}static updateComponentsLanguage(){B.dateCompnents.forEach(e=>e.pageLanguage=Y.getLanguage())}get wording_billet_periode_validite(){return this._wording_billet_periode_validite}set wording_billet_periode_validite(e){e||(e="Du %s au %s"),this._wording_billet_periode_validite=e,this.duAu=this.wording_billet_periode_validite?.split("%s").map(t=>t.trim()),this.duAu.pop(),this.requestUpdate()}connectedCallback(){this.hasAttribute("wording_billet_periode_validite")||(this.wording_billet_periode_validite="Du %s au %s"),this.pageLanguage=Y.getLanguage(),B.dateCompnents.add(this),super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),B.dateCompnents.delete(this)}getDatesParts(e,t,s){const r=this.startDateObject;r.setTime(e*1e3);let i=[];if(t>0){const n=this.endDateObject;n.setTime(t*1e3);const o=r.toDateString()==n.toDateString();if((!o||this.hide_hours)&&(delete s.hour,delete s.minute),i=new Intl.DateTimeFormat(this.language||this.pageLanguage,s).formatRangeToParts(r,n),!o){const c=i.find(h=>h.type=="literal"&&h.source=="shared"&&h.value.trim().length>0);c&&(c.value=" "+this.duAu[1]+" ",c.type="to"),this.designMode||i.unshift({type:"from",value:this.duAu[0]+" ",source:"shared"})}}else i=new Intl.DateTimeFormat(this.language||this.pageLanguage,s).formatToParts(r);return this.designMode&&i.forEach(n=>n.value=n.value.replace(/,/g," ")),i[0].value=Rs.ucFirst(i[0].value),i.filter(n=>n.hidden!==!0)}dateStringToSeconds(e){return new Date(e).getTime()/1e3}willUpdate(e){if(this.computedStartDate=0,this.computedEndDate=0,this.date_string&&(this.date=this.dateStringToSeconds(this.date_string)),this.date&&(this.computedStartDate=this.date),this.start_date_string&&(this.computedStartDate=this.dateStringToSeconds(this.start_date_string)),this.end_date_string&&(this.end_date=this.dateStringToSeconds(this.end_date_string)),this.start_date&&(this.computedStartDate=this.start_date),!(!this.computedStartDate&&!this.now&&!this.end_date)&&(this.computedStartDate||(this.computedStartDate=Date.now()/1e3),this.end_date&&(this.computedEndDate=this.end_date),this.computedEndDate>0&&this.computedEndDate<this.computedStartDate)){const t=this.computedStartDate;this.computedStartDate=this.computedEndDate,this.computedEndDate=t}}render(){if(!this.renderIf||!this.computedStartDate&&!this.now&&!this.computedEndDate)return D;const e={year:this.year||"numeric",month:this.month||"short",day:this.day||"2-digit",hour12:this.hour12||!1};this.weekday!=="hidden"&&(e.weekday=this.weekday||"short"),this.hour!=="hidden"&&(e.hour=this.hour||"2-digit"),this.minute!=="hidden"&&(e.minute=this.minute||"2-digit"),this.era&&(e.era=this.era),this.time_zone&&(e.timeZone=this.time_zone);const t=this.getDatesParts(this.computedStartDate,this.computedEndDate,e);return U(`${t.map(s=>{const r=this.templateParts[s.type];if(r){const o=document.importNode(r.content,!0).children[0];return o.innerText.trim()==""&&(o.innerText=s.value),o.outerHTML}const i=document.createElement("span");return i.innerText=s.value,i.className=s.type,`<span class="${s.type}">${s.value}</span>`}).join("")}`)}};B.dateCompnents=new Set,Q([a()],B.prototype,"wording_billet_periode_validite",1),Q([a({type:Boolean})],B.prototype,"designMode",2),Q([a({type:String})],B.prototype,"time_zone",2),Q([a({type:Number})],B.prototype,"date",2),Q([a({type:String})],B.prototype,"date_string",2),Q([a({type:String})],B.prototype,"start_date_string",2),Q([a({type:String})],B.prototype,"end_date_string",2),Q([a({type:Number})],B.prototype,"start_date",2),Q([a({type:Number})],B.prototype,"end_date",2),Q([a({type:Boolean})],B.prototype,"hide_hours",2),Q([a({type:String})],B.prototype,"era",2),Q([a({type:String})],B.prototype,"year",2),Q([a({type:String})],B.prototype,"month",2),Q([a({type:String})],B.prototype,"day",2),Q([a({type:String})],B.prototype,"weekday",2),Q([a({type:String})],B.prototype,"hour",2),Q([a({type:Boolean})],B.prototype,"hour12",2),Q([a({type:String})],B.prototype,"minute",2),Q([a({type:String})],B.prototype,"language",2),Q([a({type:Boolean})],B.prototype,"renderIf",2),Q([a({type:Boolean})],B.prototype,"now",2),B=Q([S(Pa)],B);let at=(tt=class{static listen(){if(!tt.listening)return;const t=document.location?.href.replace(document.location.origin,"");tt.prevURL&&tt.prevURL!=t&&(tt.prevURL=t,tt.listeners.forEach(s=>{s.location=t})),window.requestAnimationFrame(tt.listen)}static offChange(t){const s=tt.listeners.indexOf(t);s!=-1&&(tt.listeners.splice(s,1),tt.listeners.length==0&&(tt.listening=!1))}static onChange(t){tt.listening||(tt.listening=!0,tt.listen()),tt.listeners.push(t),t.location=this.prevURL}static changeFromComponent(t){const s=t.goBack,r=document.referrer;if(s!=null){const h=document.location.origin,u=(s||h).toString(),p=r.indexOf("http")==0?new URL(r).origin!=h:!1,y=r=="",g=history.length<3,b=y&&g,w=u!=document.location.href;if(p&&w||b){const f=history.state||{};f.concorde=f.concorde||{},f.concorde.hasDoneHistoryBack=!0,history.pushState(f,document.title),history.back(),document.location.replace(u)}else history.back();return}let i=t.getAttribute("to")||"";if(i||(i=t.href?.toString()||""),!i)return;if(i.indexOf("#")==0){document.location.hash=i.substring(1);return}const n=new URL(i,document.location.href),o=n.pathname.split("/"),l=[];let c="";for(const h of o)h!=c&&l.push(h),c=h;i="/"+l.join("/")+n.search+(n.hash?+n.hash:""),t.hasAttribute("pushState")?history.pushState(null,"",i):t.hasAttribute("replaceState")?history.replaceState(null,"",i):document.location.href=i}static updateComponentActiveState(t){if(t.autoActive=="disabled")return;const s=t.href?.toString()||"";if(t.href&&s.indexOf("http")!=0){const r=new URL(s,document.location.href),i=new URL(t.location||"",document.location.origin);let n=!1;t.autoActive=="strict"?n=r.pathname==i.pathname&&r.hash==i.hash&&r.search==i.search:t.autoActive=="strict-path-only"?n=r.pathname==i.pathname&&r.hash==i.hash:n=i.href.indexOf(r.href)==0,n?t.setAttribute("active","true"):t.removeAttribute("active")}}},tt.listeners=[],tt.listening=!1,tt.prevURL=document.location?.href.replace(document.location.origin,""),tt);/**
68
+ <pre style="margin-top:10px;background:transparent;padding:0;font-size:inherit;color:inherit;">${JSON.stringify(this.publisher?.get(),null," ")}</pre>`})}}removeDebugger(){Xi.forEach(o=>{document.body.contains(o)&&document.body.removeChild(o)}),Xi=new Set}getApiConfiguration(){return Q.getApiConfiguration(this)}async initWording(){const o=Object.getOwnPropertyNames(this.constructor.prototype);for(const l of o)l.indexOf("wording_")==0&&rs.callApi(this,l.substring(8));rs.publisher.startTemplateFilling(this)}createRenderRoot(){if(this.noShadowDom===""||this.getAttribute("noShadowDom")==="")return this;const o=super.createRenderRoot();return Js.observe(o),o}initPublisher(){if(!document)return;this.publisher&&(this.publisher.stopTemplateFilling(this),this.publisher.offInternalMutation(this.requestUpdate),this.onAssign&&this.publisher.offAssign(this.onAssign));const o=L.getInstance();this.dataProvider||(this.dataProvider=this.getAncestorAttributeValue("dataProvider"));let l=this.dataProvider;if(!l&&this._props&&(this.dataProvider=l="__subscriber__"+i.instanceCounter),l){this.bindPublisher&&o.set(l,this.bindPublisher());let c=o.get(l,{localStorageMode:this.getAttribute("localStorage")||"disabled",invalidateOnPageShow:this.hasAttribute("invalidateOnPageShow")});if(this.dataProvider=l,this.hasAttribute("subDataProvider")){const h=this.getAttribute("subDataProvider");this.dataProvider=l+"/"+h,c=dt.traverse(c,h.split(".")),o.set(this.dataProvider,c),this.publisher=c}this.publisher=c}this.hasAttribute("lazyRendering")||this.startPublisher()}startPublisher(){this.publisher&&(this._props&&this.publisher.set(this._props),this.noAutoFill||this.publisher.startTemplateFilling(this),this.renderOnPropsInternalChange&&this.publisher.onInternalMutation(this.requestUpdate),this.publisher.onAssign(this.onAssign))}},i.instanceCounter=0,i);return Gt([a({type:Number})],s.prototype,"collectDependenciesVersion",2),Gt([a({type:Boolean})],s.prototype,"displayContents",2),Gt([a({type:Boolean})],s.prototype,"noAutoFill",2),Gt([a({type:Boolean})],s.prototype,"forceAutoFill",2),Gt([a({type:Object})],s.prototype,"propertyMap",2),Gt([a({type:String,attribute:"data-title"})],s.prototype,"title",2),Gt([a({reflect:!0})],s.prototype,"dataProvider",2),Gt([a()],s.prototype,"bindPublisher",2),Gt([a()],s.prototype,"props",1),Gt([T()],s.prototype,"shouldRenderLazy",2),s};var Oa=Object.defineProperty,Ea=(e,t,s,r)=>{for(var i=void 0,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=o(t,s,i)||i);return i&&Oa(t,s,i),i};const Ss=e=>{class t extends e{constructor(){super(...arguments),this.templates=null,this.templateValueAttribute="data-value",this.templateList=[],this.templateParts={},this.templatePartsList=[]}connectedCallback(){const r=this.templates||[...this.querySelectorAll("template")];for(const i of r)i.hasAttribute(this.templateValueAttribute)&&(this.templateParts[i.getAttribute(this.templateValueAttribute)]=i,this.templatePartsList.push(i)),i.hasAttribute("skeleton")&&(this.templateParts.skeleton=i),i.hasAttribute("no-result")&&(this.templateParts["no-result"]=i),i.hasAttribute("no-item")&&(this.templateParts["no-item"]=i);this.templateList=r.filter(i=>!i.getAttribute("data-value")),this.templateList.length==0&&(this.templateList=r),super.connectedCallback()}}return Ea([a({type:Array})],t.prototype,"templates"),t};var La=Object.defineProperty,Ta=Object.getOwnPropertyDescriptor,rt=(e,t,s,r)=>{for(var i=r>1?void 0:r?Ta(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&La(t,s,i),i};const Ia="sonic-date";Ti(()=>q.updateComponentsLanguage());let q=class extends ct(Ss(P)){constructor(){super(...arguments),this.pageLanguage="fr",this.duAu=[],this._wording_billet_periode_validite="",this.designMode=null,this.time_zone=null,this.date=null,this.date_string=null,this.start_date_string=null,this.end_date_string=null,this.start_date=0,this.computedStartDate=0,this.end_date=0,this.computedEndDate=0,this.hide_hours=!1,this.era="",this.year="numeric",this.month="short",this.day="2-digit",this.weekday="short",this.hour="2-digit",this.hour12=!1,this.minute="2-digit",this.language="",this.renderIf=!0,this.now=!1,this.startDateObject=new Date,this.endDateObject=new Date}static updateComponentsLanguage(){q.dateCompnents.forEach(e=>e.pageLanguage=Q.getLanguage())}get wording_billet_periode_validite(){return this._wording_billet_periode_validite}set wording_billet_periode_validite(e){e||(e="Du %s au %s"),this._wording_billet_periode_validite=e,this.duAu=this.wording_billet_periode_validite?.split("%s").map(t=>t.trim()),this.duAu.pop(),this.requestUpdate()}connectedCallback(){this.hasAttribute("wording_billet_periode_validite")||(this.wording_billet_periode_validite="Du %s au %s"),this.pageLanguage=Q.getLanguage(),q.dateCompnents.add(this),super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),q.dateCompnents.delete(this)}getDatesParts(e,t,s){const r=this.startDateObject;r.setTime(e*1e3);let i=[];if(t>0){const n=this.endDateObject;n.setTime(t*1e3);const o=r.toDateString()==n.toDateString();if((!o||this.hide_hours)&&(delete s.hour,delete s.minute),i=new Intl.DateTimeFormat(this.language||this.pageLanguage,s).formatRangeToParts(r,n),!o){const c=i.find(h=>h.type=="literal"&&h.source=="shared"&&h.value.trim().length>0);c&&(c.value=" "+this.duAu[1]+" ",c.type="to"),this.designMode||i.unshift({type:"from",value:this.duAu[0]+" ",source:"shared"})}}else i=new Intl.DateTimeFormat(this.language||this.pageLanguage,s).formatToParts(r);return this.designMode&&i.forEach(n=>n.value=n.value.replace(/,/g," ")),i[0].value=Ws.ucFirst(i[0].value),i.filter(n=>n.hidden!==!0)}dateStringToSeconds(e){return new Date(e).getTime()/1e3}willUpdate(e){if(this.computedStartDate=0,this.computedEndDate=0,this.date_string&&(this.date=this.dateStringToSeconds(this.date_string)),this.date&&(this.computedStartDate=this.date),this.start_date_string&&(this.computedStartDate=this.dateStringToSeconds(this.start_date_string)),this.end_date_string&&(this.end_date=this.dateStringToSeconds(this.end_date_string)),this.start_date&&(this.computedStartDate=this.start_date),!(!this.computedStartDate&&!this.now&&!this.end_date)&&(this.computedStartDate||(this.computedStartDate=Date.now()/1e3),this.end_date&&(this.computedEndDate=this.end_date),this.computedEndDate>0&&this.computedEndDate<this.computedStartDate)){const t=this.computedStartDate;this.computedStartDate=this.computedEndDate,this.computedEndDate=t}}render(){if(!this.renderIf||!this.computedStartDate&&!this.now&&!this.computedEndDate)return k;const e={year:this.year||"numeric",month:this.month||"short",day:this.day||"2-digit",hour12:this.hour12||!1};this.weekday!=="hidden"&&(e.weekday=this.weekday||"short"),this.hour!=="hidden"&&(e.hour=this.hour||"2-digit"),this.minute!=="hidden"&&(e.minute=this.minute||"2-digit"),this.era&&(e.era=this.era),this.time_zone&&(e.timeZone=this.time_zone);const t=this.getDatesParts(this.computedStartDate,this.computedEndDate,e);return H(`${t.map(s=>{const r=this.templateParts[s.type];if(r){const o=document.importNode(r.content,!0).children[0];return o.innerText.trim()==""&&(o.innerText=s.value),o.outerHTML}const i=document.createElement("span");return i.innerText=s.value,i.className=s.type,`<span class="${s.type}">${s.value}</span>`}).join("")}`)}};q.dateCompnents=new Set,rt([a()],q.prototype,"wording_billet_periode_validite",1),rt([a({type:Boolean})],q.prototype,"designMode",2),rt([a({type:String})],q.prototype,"time_zone",2),rt([a({type:Number})],q.prototype,"date",2),rt([a({type:String})],q.prototype,"date_string",2),rt([a({type:String})],q.prototype,"start_date_string",2),rt([a({type:String})],q.prototype,"end_date_string",2),rt([a({type:Number})],q.prototype,"start_date",2),rt([a({type:Number})],q.prototype,"end_date",2),rt([a({type:Boolean})],q.prototype,"hide_hours",2),rt([a({type:String})],q.prototype,"era",2),rt([a({type:String})],q.prototype,"year",2),rt([a({type:String})],q.prototype,"month",2),rt([a({type:String})],q.prototype,"day",2),rt([a({type:String})],q.prototype,"weekday",2),rt([a({type:String})],q.prototype,"hour",2),rt([a({type:Boolean})],q.prototype,"hour12",2),rt([a({type:String})],q.prototype,"minute",2),rt([a({type:String})],q.prototype,"language",2),rt([a({type:Boolean})],q.prototype,"renderIf",2),rt([a({type:Boolean})],q.prototype,"now",2),q=rt([C(Ia)],q);let ut=(ot=class{static listen(){if(!ot.listening)return;const t=document.location?.href.replace(document.location.origin,"");ot.prevURL&&ot.prevURL!=t&&(ot.prevURL=t,ot.listeners.forEach(s=>{s.location=t})),window.requestAnimationFrame(ot.listen)}static offChange(t){const s=ot.listeners.indexOf(t);s!=-1&&(ot.listeners.splice(s,1),ot.listeners.length==0&&(ot.listening=!1))}static onChange(t){ot.listening||(ot.listening=!0,ot.listen()),ot.listeners.push(t),t.location=this.prevURL}static changeFromComponent(t){const s=t.goBack,r=document.referrer;if(s!=null){const h=document.location.origin,u=(s||h).toString(),p=r.indexOf("http")==0?new URL(r).origin!=h:!1,y=r=="",g=history.length<3,m=y&&g,w=u!=document.location.href;if(p&&w||m){const f=history.state||{};f.concorde=f.concorde||{},f.concorde.hasDoneHistoryBack=!0,history.pushState(f,document.title),history.back(),document.location.replace(u)}else history.back();return}let i=t.getAttribute("to")||"";if(i||(i=t.href?.toString()||""),!i)return;if(i.indexOf("#")==0){document.location.hash=i.substring(1);return}const n=new URL(i,document.location.href),o=n.pathname.split("/"),l=[];let c="";for(const h of o)h!=c&&l.push(h),c=h;i="/"+l.join("/")+n.search+(n.hash?+n.hash:""),t.hasAttribute("pushState")?history.pushState(null,"",i):t.hasAttribute("replaceState")?history.replaceState(null,"",i):document.location.href=i}static updateComponentActiveState(t){if(t.autoActive=="disabled")return;const s=t.href?.toString()||"";if(t.href&&s.indexOf("http")!=0){const r=new URL(s,document.location.href),i=new URL(t.location||"",document.location.origin);let n=!1;t.autoActive=="strict"?n=r.pathname==i.pathname&&r.hash==i.hash&&r.search==i.search:t.autoActive=="strict-path-only"?n=r.pathname==i.pathname&&r.hash==i.hash:n=i.href.indexOf(r.href)==0,n?t.setAttribute("active","true"):t.removeAttribute("active")}}},ot.listeners=[],ot.listening=!1,ot.prevURL=document.location?.href.replace(document.location.origin,""),ot);/**
69
69
  * @license
70
70
  * Copyright 2018 Google LLC
71
71
  * SPDX-License-Identifier: BSD-3-Clause
72
- */const cn="important",Ca=" !"+cn,Pt=ue(class extends Ge{constructor(e){if(super(e),e.type!==Oe.ATTRIBUTE||e.name!=="style"||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce(((t,s)=>{const r=e[s];return r==null?t:t+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`}),"")}update(e,[t]){const{style:s}=e.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const r of this.ft)t[r]==null&&(this.ft.delete(r),r.includes("-")?s.removeProperty(r):s[r]=null);for(const r in t){const i=t[r];if(i!=null){this.ft.add(r);const n=typeof i=="string"&&i.endsWith(Ca);r.includes("-")||n?s.setProperty(r,n?i.slice(0,-11):i,n?cn:""):s[r]=i}}return Dt}});var Sa=Object.defineProperty,$a=Object.getOwnPropertyDescriptor,Ht=(e,t,s,r)=>{for(var i=r>1?void 0:r?$a(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Sa(t,s,i),i};const Qs=new Map,Ze=e=>{class t extends e{constructor(...r){super(),this.touched=!1,this.error=!1,this.autofocus=!1,this.required=!1,this.forceAutoFill=!1,this.disabled=!1,this.formDataProvider="",this._name="",this._value="",this.onValueAssign=i=>{this.setValueFromPublisher(i)},this.onFormValueAssign=async i=>{this.setFormValueFromPublisher(i)},this.onFormDataInValidate=()=>{const i=this.getFormPublisher();i&&i.isFormValid.get()&&this.validateFormElement()}}get name(){return this._name}set name(r){this.hasAttribute("name")&&!this.forceAutoFill&&(r=this.getAttribute("name")),this._name=r,this.requestUpdate()}validateFormElement(){}unsetOnDisconnect(){return this.hasAttribute("unsetOnDisconnect")}updateDataValue(){this.getAttribute("name")&&this.getFormPublisher()&&(this.setFormPublisherValue(this.getValueForFormPublisher()),this.setFormValueFromPublisher(this.getFormPublisherValue()))}getFormPublisher(){return this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider")),this.formDataProvider?L.get(this.formDataProvider):null}setFormPublisherValue(r){const i=this.getFormPublisher();i&&xt(i,this.name).set(r)}getFormPublisherValue(){const r=this.getFormPublisher();return r?xt(r,this.name).get():null}getValueForFormPublisher(){return this.value}setValueFromPublisher(r){this.value=r}setFormValueFromPublisher(r){this.value=r}get value(){return this._value}set value(r){r==null&&(r=""),ot.isObject(r)&&Object.prototype.hasOwnProperty.call(r,"__value")&&r._value==null&&(r=""),this._value!=r&&(this._value=r,this.updateDataValue(),this.requestUpdate())}initPublisher(){let r=this.getFormPublisher();const i=this.hasAncestorAttribute("initFromPublisher")&&this._name&&this.getFormPublisherValue()?this.getFormPublisherValue():this.getAttribute("value");this._name&&this.publisher&&xt(this.publisher,this._name).offAssign(this.onValueAssign),this._name&&r&&xt(r,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&&xt(this.publisher,this._name).onAssign(this.onValueAssign),r=this.getFormPublisher(),this._name&&r&&(xt(r,this._name).onAssign(this.onFormValueAssign),r.onFormInvalidate(this.onFormDataInValidate)),this.updateDataValue(),i&&(this.value=i)}handleBlur(){this.touched=!0}handleChange(r){this.value=r.target.value;const i=new Event("change");this.dispatchEvent(i)}addKeyboardNavigation(){const r=this.getAncestorAttributeValue("data-keyboard-nav");if(!r)return;const i=r.split(" "),n=i[0];if(!n)return;for(const l of i){Qs.has(l)||Qs.set(l,[]);const c=Qs.get(l);c?.indexOf(this)==-1&&c.push(this)}const o=Qs.get(n);this.addEventListener("keydown",l=>{const c=l;if(!["ArrowDown","ArrowUp"].includes(c.key))return;const h="input:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled])",u=o?.filter(y=>{const g=y.shadowRoot?.querySelector(h);if(!g)return!1;const b=window.getComputedStyle(g);return b.display!=="none"&&b.display!==""&&b.pointerEvents!="none"&&b.visibility!=="hidden"&&g.getBoundingClientRect().width>0});let d=null;if(c.key=="ArrowDown"&&u){const y=u.indexOf(this);y==u.length-1?d=u[0]:d=u[y+1]}else if(c.key=="ArrowUp"&&u){const y=u.indexOf(this);y==0?d=u[u.length-1]:d=u[y-1]}const p=d?.shadowRoot?.querySelector(h);p&&p.focus&&(p.focus(),l.preventDefault(),l.stopPropagation())})}focus(){this.shadowRoot?.querySelector("[data-form-element], button")?.focus()}connectedCallback(){this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"),super.connectedCallback(),this.addKeyboardNavigation()}unset(){this.value=null}disconnectedCallback(){this.unsetOnDisconnect()&&this.unset(),super.disconnectedCallback(),this._name&&this.publisher&&xt(this.publisher,this._name).offAssign(this.onValueAssign);const r=this.getFormPublisher();this._name&&r&&(xt(r,this._name).offAssign(this.onFormValueAssign),r.offFormInvalidate(this.onFormDataInValidate))}}return Ht([a({type:Boolean,reflect:!0})],t.prototype,"touched",2),Ht([a({type:Boolean})],t.prototype,"error",2),Ht([a({type:Boolean})],t.prototype,"autofocus",2),Ht([a({type:Boolean})],t.prototype,"required",2),Ht([a({type:Boolean})],t.prototype,"forceAutoFill",2),Ht([a({type:Boolean,reflect:!0})],t.prototype,"disabled",2),Ht([a({type:String,attribute:"data-aria-label"})],t.prototype,"ariaLabel",2),Ht([a({type:String,attribute:"data-aria-labelledby"})],t.prototype,"ariaLabelledby",2),Ht([a()],t.prototype,"name",1),Ht([a()],t.prototype,"value",1),t};let Aa=class Be{static areEqual(t,s){return t.length===s.length?t.every((r,i)=>r===s[i]):!1}static from2d(t){return{to1D:()=>{let s=[];return t.forEach(r=>s=s.concat(r)),this.from(s)}}}static from(t){return{get:()=>t||[],everyItem:()=>({has:()=>({same:()=>({value:()=>({forKey:s=>{if(t.length<1)return!0;const r=(t[0]||{})[s];return t.every(i=>(i||{})[s]==r)}})})}),value:()=>({forKey:s=>Be.from(t.map(r=>r[s]))}),copy:()=>({fromKey:s=>({toKey:r=>{t.forEach(i=>{i[r]=Array.isArray(i[s])?[...i[s]]:typeof i[s]=="object"&&i[s]!=null?{...i[s]}:i[s]})}})})}),map:s=>Be.from(t.map(s)),filter:s=>Be.from(t.filter(s)),find:s=>t.find(s),some:s=>t.some(s),every:s=>t.every(s),group:()=>({byKey:s=>{const r=[],i=new Map;for(const n of t){const o=n[s];if(!i.has(o)){const l=r.length;i.set(o,l);const c={items:[]};c[s]=o,r.push(c)}r[i.get(o)].items.push(n)}return Be.from(r)}}),without:()=>({duplicates:()=>({forKey:s=>{const r=[...new Set(t.map(i=>i[s]))];return Be.from(r.map(i=>t.find(n=>n[s]==i)))}}),itemsIn:s=>({havingSameValue:()=>({forKey:r=>{const i=(n,o)=>l=>n[o]!=l[o];return Be.from(t.filter(n=>s.every(i(n,r))))}})})})}}};function ka(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gs={exports:{}},Da=gs.exports,hn;function Oa(){return hn||(hn=1,(function(e,t){var s=[].slice;(function(r,i){return t!==null?e.exports=i():r.UrlPattern=i()})(Da,function(){var r,i,n,o,l,c,h,u,d,p,y,g,b,w,E;return d=function(f){return f.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},h=function(f,m){var _,x,O;for(O=[],_=-1,x=f.length;++_<x;)O=O.concat(m(f[_]));return O},w=function(f,m){var _,x,O;for(O="",_=-1,x=f.length;++_<x;)O+=m(f[_]);return O},b=function(f){return new RegExp(f.toString()+"|").exec("").length-1},y=function(f,m){var _,x,O,P,F;for(P={},_=-1,O=f.length;++_<O;)x=f[_],F=m[_],F!=null&&(P[x]!=null?(Array.isArray(P[x])||(P[x]=[P[x]]),P[x].push(F)):P[x]=F);return P},r={},r.Result=function(f,m){this.value=f,this.rest=m},r.Tagged=function(f,m){this.tag=f,this.value=m},r.tag=function(f,m){return function(_){var x,O;if(x=m(_),x!=null)return O=new r.Tagged(f,x.value),new r.Result(O,x.rest)}},r.regex=function(f){return function(m){var _,x;if(_=f.exec(m),_!=null)return x=_[0],new r.Result(x,m.slice(x.length))}},r.sequence=function(){var f;return f=1<=arguments.length?s.call(arguments,0):[],function(m){var _,x,O,P,F,Z;for(_=-1,x=f.length,Z=[],P=m;++_<x;){if(O=f[_],F=O(P),F==null)return;Z.push(F.value),P=F.rest}return new r.Result(Z,P)}},r.pick=function(){var f,m;return f=arguments[0],m=2<=arguments.length?s.call(arguments,1):[],function(_){var x,O;if(O=r.sequence.apply(r,m)(_),O!=null)return x=O.value,O.value=x[f],O}},r.string=function(f){var m;return m=f.length,function(_){if(_.slice(0,m)===f)return new r.Result(f,_.slice(m))}},r.lazy=function(f){var m;return m=null,function(_){return m==null&&(m=f()),m(_)}},r.baseMany=function(f,m,_,x,O){var P,F,Z,ut;for(Z=O,ut=_?"":[];!(m!=null&&(P=m(Z),P!=null)||(F=f(Z),F==null));)_?ut+=F.value:ut.push(F.value),Z=F.rest;if(!(x&&ut.length===0))return new r.Result(ut,Z)},r.many1=function(f){return function(m){return r.baseMany(f,null,!1,!0,m)}},r.concatMany1Till=function(f,m){return function(_){return r.baseMany(f,m,!0,!0,_)}},r.firstChoice=function(){var f;return f=1<=arguments.length?s.call(arguments,0):[],function(m){var _,x,O,P;for(_=-1,x=f.length;++_<x;)if(O=f[_],P=O(m),P!=null)return P}},g=function(f){var m;return m={},m.wildcard=r.tag("wildcard",r.string(f.wildcardChar)),m.optional=r.tag("optional",r.pick(1,r.string(f.optionalSegmentStartChar),r.lazy(function(){return m.pattern}),r.string(f.optionalSegmentEndChar))),m.name=r.regex(new RegExp("^["+f.segmentNameCharset+"]+")),m.named=r.tag("named",r.pick(1,r.string(f.segmentNameStartChar),r.lazy(function(){return m.name}))),m.escapedChar=r.pick(1,r.string(f.escapeChar),r.regex(/^./)),m.static=r.tag("static",r.concatMany1Till(r.firstChoice(r.lazy(function(){return m.escapedChar}),r.regex(/^./)),r.firstChoice(r.string(f.segmentNameStartChar),r.string(f.optionalSegmentStartChar),r.string(f.optionalSegmentEndChar),m.wildcard))),m.token=r.lazy(function(){return r.firstChoice(m.wildcard,m.optional,m.named,m.static)}),m.pattern=r.many1(r.lazy(function(){return m.token})),m},u={escapeChar:"\\",segmentNameStartChar:":",segmentValueCharset:"a-zA-Z0-9-_~ %",segmentNameCharset:"a-zA-Z0-9",optionalSegmentStartChar:"(",optionalSegmentEndChar:")",wildcardChar:"*"},c=function(f,m){if(Array.isArray(f))return w(f,function(_){return c(_,m)});switch(f.tag){case"wildcard":return"(.*?)";case"named":return"(["+m+"]+)";case"static":return d(f.value);case"optional":return"(?:"+c(f.value,m)+")?"}},l=function(f,m){return m==null&&(m=u.segmentValueCharset),"^"+c(f,m)+"$"},o=function(f){if(Array.isArray(f))return h(f,o);switch(f.tag){case"wildcard":return["_"];case"named":return[f.value];case"static":return[];case"optional":return o(f.value)}},p=function(f,m,_,x){var O,P,F,Z;if(x==null&&(x=!1),Z=f[m],Z==null){if(x)throw new Error("no values provided for key `"+m+"`");return}if(O=_[m]||0,P=Array.isArray(Z)?Z.length-1:0,O>P){if(x)throw new Error("too few values provided for key `"+m+"`");return}return F=Array.isArray(Z)?Z[O]:Z,x&&(_[m]=O+1),F},n=function(f,m,_){var x,O;if(Array.isArray(f)){for(x=-1,O=f.length;++x<O;)if(n(f[x],m,_))return!0;return!1}switch(f.tag){case"wildcard":return p(m,"_",_,!1)!=null;case"named":return p(m,f.value,_,!1)!=null;case"static":return!1;case"optional":return n(f.value,m,_)}},E=function(f,m,_){if(Array.isArray(f))return w(f,function(x){return E(x,m,_)});switch(f.tag){case"wildcard":return p(m,"_",_,!0);case"named":return p(m,f.value,_,!0);case"static":return f.value;case"optional":return n(f.value,m,_)?E(f.value,m,_):""}},i=function(f,m){var _,x,O,P,F;if(f instanceof i){this.isRegex=f.isRegex,this.regex=f.regex,this.ast=f.ast,this.names=f.names;return}if(this.isRegex=f instanceof RegExp,!(typeof f=="string"||this.isRegex))throw new TypeError("argument must be a regex or a string");if(this.isRegex){if(this.regex=f,m!=null){if(!Array.isArray(m))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(_=b(this.regex),m.length!==_)throw new Error("regex contains "+_+" groups but array of group names contains "+m.length);this.names=m}return}if(f==="")throw new Error("argument must not be the empty string");if(F=f.replace(/\s+/g,""),F!==f)throw new Error("argument must not contain whitespace");if(x={escapeChar:m?.escapeChar||u.escapeChar,segmentNameStartChar:m?.segmentNameStartChar||u.segmentNameStartChar,segmentNameCharset:m?.segmentNameCharset||u.segmentNameCharset,segmentValueCharset:m?.segmentValueCharset||u.segmentValueCharset,optionalSegmentStartChar:m?.optionalSegmentStartChar||u.optionalSegmentStartChar,optionalSegmentEndChar:m?.optionalSegmentEndChar||u.optionalSegmentEndChar,wildcardChar:m?.wildcardChar||u.wildcardChar},P=g(x),O=P.pattern(f),O==null)throw new Error("couldn't parse pattern");if(O.rest!=="")throw new Error("could only partially parse pattern");this.ast=O.value,this.regex=new RegExp(l(this.ast,x.segmentValueCharset)),this.names=o(this.ast)},i.prototype.match=function(f){var m,_;return _=this.regex.exec(f),_==null?null:(m=_.slice(1),this.names?y(this.names,m):m)},i.prototype.stringify=function(f){if(f==null&&(f={}),this.isRegex)throw new Error("can't stringify patterns generated from a regex");if(f!==Object(f))throw new Error("argument must be an object or undefined");return E(this.ast,f,{})},i.escapeForRegex=d,i.concatMap=h,i.stringConcatMap=w,i.regexGroupCount=b,i.keysAndValuesToObject=y,i.P=r,i.newParser=g,i.defaultOptions=u,i.astNodeToRegexString=l,i.astNodeToNames=o,i.getParam=p,i.astNodeContainsSegmentsForProvidedParams=n,i.stringify=E,i})})(gs,gs.exports)),gs.exports}var Ea=Oa();const te=ka(Ea);class Js{constructor(t){this.path=Js.normalizePath(t)}getDataProviderKey(){return new as(this.path)}static normalizePath(t){const s=String(t).trim();if(!s)throw new RangeError("Endpoint: path cannot be empty");if(/^https?:\/\//i.test(s)){let c;try{c=new URL(s)}catch{throw new RangeError("Endpoint: invalid absolute URL")}return c.pathname=c.pathname.replace(/\/+/g,"/"),c.href}const r=s.indexOf("?"),i=s.indexOf("#");let n=s.length;r>=0&&(n=Math.min(n,r)),i>=0&&(n=Math.min(n,i));let o=s.slice(0,n);const l=s.slice(n);if(o=o.replace(/^\/+/,""),o=o.replace(/\/+/g,"/"),!o&&l)throw new RangeError("Endpoint: path cannot be empty");return o+l}static isNonEmpty(t){return String(t).trim().length>0}static looksLikeDataProviderPath(t){return/^\s*dataProvider\s*\(/i.test(String(t))}toString(){return this.path}}const La=150,dn=10,Ta=200,Ia=16,un=new WeakMap;let pn=!1;function ee(){return typeof navigator>"u"?!1:/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function Xe(e){if(e===window)return{x:window.scrollX,y:window.scrollY};const t=e;return{x:t.scrollLeft,y:t.scrollTop}}function Ma(e,t,s){if(e===window){window.scrollTo(t,s);return}const r=e;typeof r.scrollTo=="function"?r.scrollTo(t,s):(r.scrollLeft=t,r.scrollTop=s)}function Na(e){if(e===window){const s=document.documentElement;return Math.max(0,s.scrollHeight-window.innerHeight)}const t=e;return Math.max(0,t.scrollHeight-t.clientHeight)}function Ee(e){let t=un.get(e);if(!t){const s=Xe(e);t={x:s.x,y:s.y,restoring:!1,watching:!1,userEngaged:!1,raf:0,stickyFrames:0},un.set(e,t)}return t}function ti(e){Ee(e).userEngaged=!0}function ei(e){const t=Ee(e);clearTimeout(t.settleTimer),t.settleTimer=setTimeout(()=>{t.userEngaged=!1,t.settleTimer=void 0},La)}function fn(e,t){return t-e>=Ta}function Qe(e){if(!ee())return;const t=Ee(e);if(t.restoring)return;const s=Xe(e);if(fn(s.y,t.y)){qi(e);return}t.x=s.x,t.y=s.y}function Hi(e){if(!ee())return;const t=Ee(e),s=Na(e),r=t.x,i=s>0?Math.min(t.y,s):t.y,{x:n,y:o}=Xe(e);if(!(Math.abs(r-n)<=dn&&Math.abs(i-o)<=dn)){t.restoring=!0;try{Ma(e,r,i)}finally{requestAnimationFrame(()=>{t.restoring=!1})}}}function Ra(e,t={x:0,y:0}){if(!ee())return;const s=Ee(e);if(t==="current"){const r=Xe(e);s.x=r.x,s.y=r.y;return}s.x=t.x??0,s.y=t.y??0}function qi(e){const t=Ee(e);if(t.stickyFrames=Ia,t.raf)return;const s=()=>{t.raf=0,Hi(e),t.stickyFrames>0&&(t.stickyFrames--,t.raf=requestAnimationFrame(s))};t.raf=requestAnimationFrame(s)}function Wi(e){qi(e)}function Le(e){if(!ee())return;const t=Ee(e);if(t.watching)return;t.watching=!0;const s=e===window?window:e,r=()=>{if(t.restoring)return;const{y:g}=Xe(e);if(fn(g,t.y)){qi(e);return}if(t.userEngaged){Qe(e),ei(e);return}Qe(e)},i=g=>mn(g)===e,n=g=>{i(g)&&(Qe(e),ti(e))},o=g=>{i(g)&&ei(e)},l=g=>{i(g)&&(Qe(e),ti(e),ei(e))};s.addEventListener("scroll",r,{passive:!0}),s.addEventListener("touchstart",n,{passive:!0}),s.addEventListener("touchend",o,{passive:!0}),s.addEventListener("touchcancel",o,{passive:!0}),s.addEventListener("wheel",l,{passive:!0}),s.addEventListener("pointerdown",n,{passive:!0}),s.addEventListener("pointerup",o,{passive:!0}),s.addEventListener("pointercancel",o,{passive:!0});const c=Xe(e);if(t.x=c.x,t.y=c.y,e===window){const g=new ResizeObserver(()=>Wi(window));g.observe(document.documentElement),t.resizeObserver=g;return}const h=e,u=new ResizeObserver(()=>Wi(h));u.observe(h);for(const g of Array.from(h.children))u.observe(g);t.resizeObserver=u;const d=()=>Wi(h),p=new MutationObserver(g=>{for(const b of g)if(b.type==="childList")for(const w of Array.from(b.addedNodes))w instanceof Element&&u.observe(w);d()});p.observe(h,{childList:!0,subtree:!0,characterData:!0});const y=h.getRootNode();y instanceof ShadowRoot&&y.host&&p.observe(y.host,{childList:!0,subtree:!0,characterData:!0}),t.mutationObserver=p}function mn(e){for(const t of e.composedPath())if(!(t===window||t===document)&&t instanceof HTMLElement&&bn(t))return t;return window}function bn(e){if(!(e instanceof HTMLElement)||e===document.documentElement||e===document.body)return!1;const t=getComputedStyle(e).overflowY;return t==="auto"||t==="scroll"||t==="overlay"}function Ki(e){for(const s of e.composedPath())s===window||s===document||s instanceof HTMLElement&&bn(s)&&Le(s);const t=mn(e);Le(t),e.type==="wheel"?(Qe(t),ti(t),ei(t)):(e.type==="touchstart"||e.type==="pointerdown")&&(Qe(t),ti(t))}function si(e){e instanceof Element&&e.classList?.contains("custom-scroll")&&Le(e),e.querySelectorAll?.(".custom-scroll").forEach(t=>{t instanceof HTMLElement&&Le(t)})}function Gi(e){si(e),new MutationObserver(s=>{for(const r of s)for(const i of Array.from(r.addedNodes))i instanceof Element&&si(i)}).observe(e,{childList:!0,subtree:!0})}function Yi(e){e.querySelectorAll?.("*").forEach(t=>{t.shadowRoot&&(Gi(t.shadowRoot),Yi(t.shadowRoot))})}function Fa(){const e=Element.prototype;if(e.__safariScrollGuardPatched)return;e.__safariScrollGuardPatched=!0;const t=e.attachShadow;e.attachShadow=function(r){const i=t.call(this,r);return Gi(i),i}}function gn(){if(typeof window>"u"||pn||(pn=!0,!ee()))return;Le(window),Fa();const e={capture:!0,passive:!0};window.addEventListener("wheel",Ki,e),window.addEventListener("touchstart",Ki,e),window.addEventListener("pointerdown",Ki,e);const t=()=>{si(document),Yi(document)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",t,{once:!0}):t(),new MutationObserver(r=>{for(const i of r)for(const n of Array.from(i.addedNodes))n instanceof Element&&(si(n),n.shadowRoot&&Gi(n.shadowRoot),Yi(n))}).observe(document.documentElement,{childList:!0,subtree:!0})}const ja=Ao,za=Aa,Ua=Hs,Va=Rs,se=Y,Ba=at,vs=ot,Ha=pe,qa=te;gn(),window["concorde-utils"]=window["concorde-utils"]||{},window["concorde-utils"]={Utils:ja,Arrays:za,DataBindObserver:Ua,Format:Va,HTML:se,LocationHandler:Ba,Objects:vs,PublisherManager:L,api:Ha,URLPattern:qa,Endpoint:Js,DataProviderKey:as};var Wa=Object.defineProperty,Ka=Object.getOwnPropertyDescriptor,ys=(e,t,s,r)=>{for(var i=r>1?void 0:r?Ka(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Wa(t,s,i),i};const Zi=e=>{class t extends e{constructor(){super(...arguments),this._value="",this.forceAutoFill=!1,this.unique=null,this.radio=null,this._checked=null,this.updateAllChecked=()=>{const r=this.getAttribute("name"),i=this.getCheckAllPublisher(),n=this.getFormPublisher();if(i?.hasCheckAll.get()&&!this.checksAll()&&i&&n&&r){if(this.getFormPublisherValue()?.length)(this.checked===null||i.checkMode.get()=="noneChecked"||i.checkMode.get()==null)&&i.checkMode.set("someUnchecked");else{i.checkMode.set("noneChecked");return}const o=this.getFormPublisherValue(),l=i.values.get();if(l&&l.length){let c=l.length;for(const h of l)o.indexOf(h)==-1&&(c-=1);c==l.length&&i.checkMode.set("allChecked"),c==0&&i.checkMode.set("noneChecked")}l.indexOf(this.value)==-1&&this.unsetOnDisconnect()&&(this.checked=null)}},this.onChecksAllRequest=r=>{this.removeAttribute("allChecked"),this.removeAttribute("indeterminate"),r=="allChecked"&&(this.checked=!0,this.setAttribute("allChecked","")),r=="noneChecked"&&(this.checked=null),r=="someUnchecked"&&(this.checksAll()&&(this.checked="indeterminate"),this.setAttribute("indeterminate",""))}}get value(){return this._value}set value(r){if(this.value==r||(this.hasAttribute("value")&&!this.forceAutoFill&&(r=this.getAttribute("value")),this._value==r)||r==null||(this._value=r,!this.value))return;if(this.getFormPublisher()&&this.name){let n=this.getFormPublisherValue();(this.radio||this.unique)&&(this.checked=n==r?!0:null),Array.isArray(n)||(n=[]),n.indexOf(r)!=-1&&(this.checked=!0)}this.checked==!0&&this.updateDataValue(),this.requestUpdate()}get checked(){return this._checked}set checked(r){if(this.setCheckedValue(r),this.checksAll()){const i=this.getCheckAllPublisher();i&&(this.checked===!0?i.checkMode.set("allChecked"):this.checked===null&&(i.checkMode.set("noneChecked"),this.getFormPublisher()&&this.setFormPublisherValue([])))}this.requestUpdate()}validateFormElement(){const r=this.shadowRoot?.querySelector("input");if(!r||r.checkValidity())return;const i=this.getFormPublisher();if(i){const n=this.getFormPublisherValue();if((this.unique||this.radio)&&n!==null&&n!==void 0&&n.toString().length>0)return;i.isFormValid=!1,r.reportValidity()}}checksAll(){return this.hasAttribute("checksAll")}setCheckedValue(r){this._checked!=r&&(this._checked=r,this.updateDataValue(),this.requestUpdate(),setTimeout(()=>this.updateAllChecked(),1))}handleChange(){const r=this.checked===!0?this.radio?!0:null:!0;this.checked=r;const i=new Event("change");this.dispatchEvent(i)}getValueForFormPublisher(){let r=this.getFormPublisherValue();if(this.radio)return this.checked===!0&&this.value!=null?this.value:r;if(this.unique)return this.checked===!0&&this.value!=null?this.value:null;Array.isArray(r)||(r=[]);const i=r.slice(0),n=i.indexOf(this.value);return this.checked===!0&&n===-1&&!this.checksAll()&&i.push(this.value),this.checked===null&&n!==-1&&i.splice(n,1),i}setFormValueFromPublisher(r){if(this.unique||this.radio){this.checked=this.value==r?!0:null;return}Array.isArray(r)||(r=[]),!this.checksAll()&&(this.checked=r.indexOf(this.value)!==-1?!0:null)}getCheckAllPublisher(){this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"));const r=this.formDataProvider,i=this.getAttribute("name");return!r||!i?null:L.get(r+"/"+i+"/_available_values_")}unset(){this.checked=null}disconnectedCallback(){super.disconnectedCallback();const r=this.getCheckAllPublisher();if(r&&(r.checkMode.offAssign(this.onChecksAllRequest),!this.checksAll())){const i=r.values.get().slice(0),n=i.indexOf(this.value);n!=-1&&(i.splice(n,1),r.values.set(i))}setTimeout(()=>this.updateAllChecked(),1)}connectedCallback(){if(super.connectedCallback(),this.getFormPublisher()&&this.name){const n=this.getFormPublisherValue();n&&Array.isArray(n)&&n.indexOf(this.value)!==-1&&(this.checked=!0)}const i=this.getCheckAllPublisher();i&&(i.checkMode.onAssign(this.onChecksAllRequest),this.checksAll()&&i.hasCheckAll.set(!0),i.values.get()||i.values.set([]),this.checksAll()||i.values.set([...i.values.get(),this.value])),this.hasAttribute("checked")&&(!this.publisher||this.publisher.get().checked!==!1)&&setTimeout(()=>this.checked=!0,1)}}return ys([a()],t.prototype,"value",1),ys([a()],t.prototype,"forceAutoFill",2),ys([a({type:Boolean})],t.prototype,"unique",2),ys([a({type:Boolean})],t.prototype,"radio",2),ys([a()],t.prototype,"checked",1),t};/**
72
+ */const yn="important",Ma=" !"+yn,Ct=xe(class extends is{constructor(e){if(super(e),e.type!==je.ATTRIBUTE||e.name!=="style"||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce(((t,s)=>{const r=e[s];return r==null?t:t+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`}),"")}update(e,[t]){const{style:s}=e.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const r of this.ft)t[r]==null&&(this.ft.delete(r),r.includes("-")?s.removeProperty(r):s[r]=null);for(const r in t){const i=t[r];if(i!=null){this.ft.add(r);const n=typeof i=="string"&&i.endsWith(Ma);r.includes("-")||n?s.setProperty(r,n?i.slice(0,-11):i,n?yn:""):s[r]=i}}return Lt}});var Na=Object.defineProperty,Ra=Object.getOwnPropertyDescriptor,Yt=(e,t,s,r)=>{for(var i=r>1?void 0:r?Ra(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Na(t,s,i),i};const ai=new Map,ns=e=>{class t extends e{constructor(...r){super(),this.touched=!1,this.error=!1,this.autofocus=!1,this.required=!1,this.forceAutoFill=!1,this.disabled=!1,this.formDataProvider="",this._name="",this._value="",this.onValueAssign=i=>{this.setValueFromPublisher(i)},this.onFormValueAssign=async i=>{this.setFormValueFromPublisher(i)},this.onFormDataInValidate=()=>{const i=this.getFormPublisher();i&&i.isFormValid.get()&&this.validateFormElement()}}get name(){return this._name}set name(r){this.hasAttribute("name")&&!this.forceAutoFill&&(r=this.getAttribute("name")),this._name=r,this.requestUpdate()}validateFormElement(){}unsetOnDisconnect(){return this.hasAttribute("unsetOnDisconnect")}updateDataValue(){this.getAttribute("name")&&this.getFormPublisher()&&(this.setFormPublisherValue(this.getValueForFormPublisher()),this.setFormValueFromPublisher(this.getFormPublisherValue()))}getFormPublisher(){return this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider")),this.formDataProvider?L.get(this.formDataProvider):null}setFormPublisherValue(r){const i=this.getFormPublisher();i&&Pt(i,this.name).set(r)}getFormPublisherValue(){const r=this.getFormPublisher();return r?Pt(r,this.name).get():null}getValueForFormPublisher(){return this.value}setValueFromPublisher(r){this.value=r}setFormValueFromPublisher(r){this.value=r}get value(){return this._value}set value(r){r==null&&(r=""),dt.isObject(r)&&Object.prototype.hasOwnProperty.call(r,"__value")&&r._value==null&&(r=""),this._value!=r&&(this._value=r,this.updateDataValue(),this.requestUpdate())}initPublisher(){let r=this.getFormPublisher();const i=this.hasAncestorAttribute("initFromPublisher")&&this._name&&this.getFormPublisherValue()?this.getFormPublisherValue():this.getAttribute("value");this._name&&this.publisher&&Pt(this.publisher,this._name).offAssign(this.onValueAssign),this._name&&r&&Pt(r,this._name).offAssign(this.onFormValueAssign),super.initPublisher(),this.name||(this._name=this.getAttribute("name")),this.value||(this._value=this.getAttribute("value")),this.publisher&&this._name&&Pt(this.publisher,this._name).onAssign(this.onValueAssign),r=this.getFormPublisher(),this._name&&r&&(Pt(r,this._name).onAssign(this.onFormValueAssign),r.onFormInvalidate(this.onFormDataInValidate)),this.updateDataValue(),i&&(this.value=i)}handleBlur(){this.touched=!0}handleChange(r){this.value=r.target.value;const i=new Event("change");this.dispatchEvent(i)}addKeyboardNavigation(){const r=this.getAncestorAttributeValue("data-keyboard-nav");if(!r)return;const i=r.split(" "),n=i[0];if(!n)return;for(const l of i){ai.has(l)||ai.set(l,[]);const c=ai.get(l);c?.indexOf(this)==-1&&c.push(this)}const o=ai.get(n);this.addEventListener("keydown",l=>{const c=l;if(!["ArrowDown","ArrowUp"].includes(c.key))return;const h="input:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled])",u=o?.filter(y=>{const g=y.shadowRoot?.querySelector(h);if(!g)return!1;const m=window.getComputedStyle(g);return m.display!=="none"&&m.display!==""&&m.pointerEvents!="none"&&m.visibility!=="hidden"&&g.getBoundingClientRect().width>0});let d=null;if(c.key=="ArrowDown"&&u){const y=u.indexOf(this);y==u.length-1?d=u[0]:d=u[y+1]}else if(c.key=="ArrowUp"&&u){const y=u.indexOf(this);y==0?d=u[u.length-1]:d=u[y-1]}const p=d?.shadowRoot?.querySelector(h);p&&p.focus&&(p.focus(),l.preventDefault(),l.stopPropagation())})}focus(){this.shadowRoot?.querySelector("[data-form-element], button")?.focus()}connectedCallback(){this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"),super.connectedCallback(),this.addKeyboardNavigation()}unset(){this.value=null}disconnectedCallback(){this.unsetOnDisconnect()&&this.unset(),super.disconnectedCallback(),this._name&&this.publisher&&Pt(this.publisher,this._name).offAssign(this.onValueAssign);const r=this.getFormPublisher();this._name&&r&&(Pt(r,this._name).offAssign(this.onFormValueAssign),r.offFormInvalidate(this.onFormDataInValidate))}}return Yt([a({type:Boolean,reflect:!0})],t.prototype,"touched",2),Yt([a({type:Boolean})],t.prototype,"error",2),Yt([a({type:Boolean})],t.prototype,"autofocus",2),Yt([a({type:Boolean})],t.prototype,"required",2),Yt([a({type:Boolean})],t.prototype,"forceAutoFill",2),Yt([a({type:Boolean,reflect:!0})],t.prototype,"disabled",2),Yt([a({type:String,attribute:"data-aria-label"})],t.prototype,"ariaLabel",2),Yt([a({type:String,attribute:"data-aria-labelledby"})],t.prototype,"ariaLabelledby",2),Yt([a()],t.prototype,"name",1),Yt([a()],t.prototype,"value",1),t};let Fa=class Qe{static areEqual(t,s){return t.length===s.length?t.every((r,i)=>r===s[i]):!1}static from2d(t){return{to1D:()=>{let s=[];return t.forEach(r=>s=s.concat(r)),this.from(s)}}}static from(t){return{get:()=>t||[],everyItem:()=>({has:()=>({same:()=>({value:()=>({forKey:s=>{if(t.length<1)return!0;const r=(t[0]||{})[s];return t.every(i=>(i||{})[s]==r)}})})}),value:()=>({forKey:s=>Qe.from(t.map(r=>r[s]))}),copy:()=>({fromKey:s=>({toKey:r=>{t.forEach(i=>{i[r]=Array.isArray(i[s])?[...i[s]]:typeof i[s]=="object"&&i[s]!=null?{...i[s]}:i[s]})}})})}),map:s=>Qe.from(t.map(s)),filter:s=>Qe.from(t.filter(s)),find:s=>t.find(s),some:s=>t.some(s),every:s=>t.every(s),group:()=>({byKey:s=>{const r=[],i=new Map;for(const n of t){const o=n[s];if(!i.has(o)){const l=r.length;i.set(o,l);const c={items:[]};c[s]=o,r.push(c)}r[i.get(o)].items.push(n)}return Qe.from(r)}}),without:()=>({duplicates:()=>({forKey:s=>{const r=[...new Set(t.map(i=>i[s]))];return Qe.from(r.map(i=>t.find(n=>n[s]==i)))}}),itemsIn:s=>({havingSameValue:()=>({forKey:r=>{const i=(n,o)=>l=>n[o]!=l[o];return Qe.from(t.filter(n=>s.every(i(n,r))))}})})})}}};function ja(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $s={exports:{}},za=$s.exports,wn;function Ua(){return wn||(wn=1,(function(e,t){var s=[].slice;(function(r,i){return t!==null?e.exports=i():r.UrlPattern=i()})(za,function(){var r,i,n,o,l,c,h,u,d,p,y,g,m,w,D;return d=function(f){return f.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},h=function(f,b){var _,A,x;for(x=[],_=-1,A=f.length;++_<A;)x=x.concat(b(f[_]));return x},w=function(f,b){var _,A,x;for(x="",_=-1,A=f.length;++_<A;)x+=b(f[_]);return x},m=function(f){return new RegExp(f.toString()+"|").exec("").length-1},y=function(f,b){var _,A,x,M,F;for(M={},_=-1,x=f.length;++_<x;)A=f[_],F=b[_],F!=null&&(M[A]!=null?(Array.isArray(M[A])||(M[A]=[M[A]]),M[A].push(F)):M[A]=F);return M},r={},r.Result=function(f,b){this.value=f,this.rest=b},r.Tagged=function(f,b){this.tag=f,this.value=b},r.tag=function(f,b){return function(_){var A,x;if(A=b(_),A!=null)return x=new r.Tagged(f,A.value),new r.Result(x,A.rest)}},r.regex=function(f){return function(b){var _,A;if(_=f.exec(b),_!=null)return A=_[0],new r.Result(A,b.slice(A.length))}},r.sequence=function(){var f;return f=1<=arguments.length?s.call(arguments,0):[],function(b){var _,A,x,M,F,X;for(_=-1,A=f.length,X=[],M=b;++_<A;){if(x=f[_],F=x(M),F==null)return;X.push(F.value),M=F.rest}return new r.Result(X,M)}},r.pick=function(){var f,b;return f=arguments[0],b=2<=arguments.length?s.call(arguments,1):[],function(_){var A,x;if(x=r.sequence.apply(r,b)(_),x!=null)return A=x.value,x.value=A[f],x}},r.string=function(f){var b;return b=f.length,function(_){if(_.slice(0,b)===f)return new r.Result(f,_.slice(b))}},r.lazy=function(f){var b;return b=null,function(_){return b==null&&(b=f()),b(_)}},r.baseMany=function(f,b,_,A,x){var M,F,X,Z;for(X=x,Z=_?"":[];!(b!=null&&(M=b(X),M!=null)||(F=f(X),F==null));)_?Z+=F.value:Z.push(F.value),X=F.rest;if(!(A&&Z.length===0))return new r.Result(Z,X)},r.many1=function(f){return function(b){return r.baseMany(f,null,!1,!0,b)}},r.concatMany1Till=function(f,b){return function(_){return r.baseMany(f,b,!0,!0,_)}},r.firstChoice=function(){var f;return f=1<=arguments.length?s.call(arguments,0):[],function(b){var _,A,x,M;for(_=-1,A=f.length;++_<A;)if(x=f[_],M=x(b),M!=null)return M}},g=function(f){var b;return b={},b.wildcard=r.tag("wildcard",r.string(f.wildcardChar)),b.optional=r.tag("optional",r.pick(1,r.string(f.optionalSegmentStartChar),r.lazy(function(){return b.pattern}),r.string(f.optionalSegmentEndChar))),b.name=r.regex(new RegExp("^["+f.segmentNameCharset+"]+")),b.named=r.tag("named",r.pick(1,r.string(f.segmentNameStartChar),r.lazy(function(){return b.name}))),b.escapedChar=r.pick(1,r.string(f.escapeChar),r.regex(/^./)),b.static=r.tag("static",r.concatMany1Till(r.firstChoice(r.lazy(function(){return b.escapedChar}),r.regex(/^./)),r.firstChoice(r.string(f.segmentNameStartChar),r.string(f.optionalSegmentStartChar),r.string(f.optionalSegmentEndChar),b.wildcard))),b.token=r.lazy(function(){return r.firstChoice(b.wildcard,b.optional,b.named,b.static)}),b.pattern=r.many1(r.lazy(function(){return b.token})),b},u={escapeChar:"\\",segmentNameStartChar:":",segmentValueCharset:"a-zA-Z0-9-_~ %",segmentNameCharset:"a-zA-Z0-9",optionalSegmentStartChar:"(",optionalSegmentEndChar:")",wildcardChar:"*"},c=function(f,b){if(Array.isArray(f))return w(f,function(_){return c(_,b)});switch(f.tag){case"wildcard":return"(.*?)";case"named":return"(["+b+"]+)";case"static":return d(f.value);case"optional":return"(?:"+c(f.value,b)+")?"}},l=function(f,b){return b==null&&(b=u.segmentValueCharset),"^"+c(f,b)+"$"},o=function(f){if(Array.isArray(f))return h(f,o);switch(f.tag){case"wildcard":return["_"];case"named":return[f.value];case"static":return[];case"optional":return o(f.value)}},p=function(f,b,_,A){var x,M,F,X;if(A==null&&(A=!1),X=f[b],X==null){if(A)throw new Error("no values provided for key `"+b+"`");return}if(x=_[b]||0,M=Array.isArray(X)?X.length-1:0,x>M){if(A)throw new Error("too few values provided for key `"+b+"`");return}return F=Array.isArray(X)?X[x]:X,A&&(_[b]=x+1),F},n=function(f,b,_){var A,x;if(Array.isArray(f)){for(A=-1,x=f.length;++A<x;)if(n(f[A],b,_))return!0;return!1}switch(f.tag){case"wildcard":return p(b,"_",_,!1)!=null;case"named":return p(b,f.value,_,!1)!=null;case"static":return!1;case"optional":return n(f.value,b,_)}},D=function(f,b,_){if(Array.isArray(f))return w(f,function(A){return D(A,b,_)});switch(f.tag){case"wildcard":return p(b,"_",_,!0);case"named":return p(b,f.value,_,!0);case"static":return f.value;case"optional":return n(f.value,b,_)?D(f.value,b,_):""}},i=function(f,b){var _,A,x,M,F;if(f instanceof i){this.isRegex=f.isRegex,this.regex=f.regex,this.ast=f.ast,this.names=f.names;return}if(this.isRegex=f instanceof RegExp,!(typeof f=="string"||this.isRegex))throw new TypeError("argument must be a regex or a string");if(this.isRegex){if(this.regex=f,b!=null){if(!Array.isArray(b))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(_=m(this.regex),b.length!==_)throw new Error("regex contains "+_+" groups but array of group names contains "+b.length);this.names=b}return}if(f==="")throw new Error("argument must not be the empty string");if(F=f.replace(/\s+/g,""),F!==f)throw new Error("argument must not contain whitespace");if(A={escapeChar:b?.escapeChar||u.escapeChar,segmentNameStartChar:b?.segmentNameStartChar||u.segmentNameStartChar,segmentNameCharset:b?.segmentNameCharset||u.segmentNameCharset,segmentValueCharset:b?.segmentValueCharset||u.segmentValueCharset,optionalSegmentStartChar:b?.optionalSegmentStartChar||u.optionalSegmentStartChar,optionalSegmentEndChar:b?.optionalSegmentEndChar||u.optionalSegmentEndChar,wildcardChar:b?.wildcardChar||u.wildcardChar},M=g(A),x=M.pattern(f),x==null)throw new Error("couldn't parse pattern");if(x.rest!=="")throw new Error("could only partially parse pattern");this.ast=x.value,this.regex=new RegExp(l(this.ast,A.segmentValueCharset)),this.names=o(this.ast)},i.prototype.match=function(f){var b,_;return _=this.regex.exec(f),_==null?null:(b=_.slice(1),this.names?y(this.names,b):b)},i.prototype.stringify=function(f){if(f==null&&(f={}),this.isRegex)throw new Error("can't stringify patterns generated from a regex");if(f!==Object(f))throw new Error("argument must be an object or undefined");return D(this.ast,f,{})},i.escapeForRegex=d,i.concatMap=h,i.stringConcatMap=w,i.regexGroupCount=m,i.keysAndValuesToObject=y,i.P=r,i.newParser=g,i.defaultOptions=u,i.astNodeToRegexString=l,i.astNodeToNames=o,i.getParam=p,i.astNodeContainsSegmentsForProvidedParams=n,i.stringify=D,i})})($s,$s.exports)),$s.exports}var Va=Ua();const le=ja(Va);class li{constructor(t){this.path=li.normalizePath(t)}getDataProviderKey(){return new bs(this.path)}static normalizePath(t){const s=String(t).trim();if(!s)throw new RangeError("Endpoint: path cannot be empty");if(/^https?:\/\//i.test(s)){let c;try{c=new URL(s)}catch{throw new RangeError("Endpoint: invalid absolute URL")}return c.pathname=c.pathname.replace(/\/+/g,"/"),c.href}const r=s.indexOf("?"),i=s.indexOf("#");let n=s.length;r>=0&&(n=Math.min(n,r)),i>=0&&(n=Math.min(n,i));let o=s.slice(0,n);const l=s.slice(n);if(o=o.replace(/^\/+/,""),o=o.replace(/\/+/g,"/"),!o&&l)throw new RangeError("Endpoint: path cannot be empty");return o+l}static isNonEmpty(t){return String(t).trim().length>0}static looksLikeDataProviderPath(t){return/^\s*dataProvider\s*\(/i.test(String(t))}toString(){return this.path}}const Ba=150,_n=10,Ha=200,qa=16,xn=new WeakMap;let Pn=!1;function ce(){return typeof navigator>"u"?!1:/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function os(e){if(e===window)return{x:window.scrollX,y:window.scrollY};const t=e;return{x:t.scrollLeft,y:t.scrollTop}}function Wa(e,t,s){if(e===window){window.scrollTo(t,s);return}const r=e;typeof r.scrollTo=="function"?r.scrollTo(t,s):(r.scrollLeft=t,r.scrollTop=s)}function Ka(e){if(e===window){const s=document.documentElement;return Math.max(0,s.scrollHeight-window.innerHeight)}const t=e;return Math.max(0,t.scrollHeight-t.clientHeight)}function ze(e){let t=xn.get(e);if(!t){const s=os(e);t={x:s.x,y:s.y,restoring:!1,watching:!1,userEngaged:!1,raf:0,stickyFrames:0},xn.set(e,t)}return t}function ci(e){ze(e).userEngaged=!0}function hi(e){const t=ze(e);clearTimeout(t.settleTimer),t.settleTimer=setTimeout(()=>{t.userEngaged=!1,t.settleTimer=void 0},Ba)}function Cn(e,t){return t-e>=Ha}function as(e){if(!ce())return;const t=ze(e);if(t.restoring)return;const s=os(e);if(Cn(s.y,t.y)){Ji(e);return}t.x=s.x,t.y=s.y}function Qi(e){if(!ce())return;const t=ze(e),s=Ka(e),r=t.x,i=s>0?Math.min(t.y,s):t.y,{x:n,y:o}=os(e);if(!(Math.abs(r-n)<=_n&&Math.abs(i-o)<=_n)){t.restoring=!0;try{Wa(e,r,i)}finally{requestAnimationFrame(()=>{t.restoring=!1})}}}function Ga(e,t={x:0,y:0}){if(!ce())return;const s=ze(e);if(t==="current"){const r=os(e);s.x=r.x,s.y=r.y;return}s.x=t.x??0,s.y=t.y??0}function Ji(e){const t=ze(e);if(t.stickyFrames=qa,t.raf)return;const s=()=>{t.raf=0,Qi(e),t.stickyFrames>0&&(t.stickyFrames--,t.raf=requestAnimationFrame(s))};t.raf=requestAnimationFrame(s)}function tr(e){Ji(e)}function Ue(e){if(!ce())return;const t=ze(e);if(t.watching)return;t.watching=!0;const s=e===window?window:e,r=()=>{if(t.restoring)return;const{y:g}=os(e);if(Cn(g,t.y)){Ji(e);return}if(t.userEngaged){as(e),hi(e);return}as(e)},i=g=>Sn(g)===e,n=g=>{i(g)&&(as(e),ci(e))},o=g=>{i(g)&&hi(e)},l=g=>{i(g)&&(as(e),ci(e),hi(e))};s.addEventListener("scroll",r,{passive:!0}),s.addEventListener("touchstart",n,{passive:!0}),s.addEventListener("touchend",o,{passive:!0}),s.addEventListener("touchcancel",o,{passive:!0}),s.addEventListener("wheel",l,{passive:!0}),s.addEventListener("pointerdown",n,{passive:!0}),s.addEventListener("pointerup",o,{passive:!0}),s.addEventListener("pointercancel",o,{passive:!0});const c=os(e);if(t.x=c.x,t.y=c.y,e===window){const g=new ResizeObserver(()=>tr(window));g.observe(document.documentElement),t.resizeObserver=g;return}const h=e,u=new ResizeObserver(()=>tr(h));u.observe(h);for(const g of Array.from(h.children))u.observe(g);t.resizeObserver=u;const d=()=>tr(h),p=new MutationObserver(g=>{for(const m of g)if(m.type==="childList")for(const w of Array.from(m.addedNodes))w instanceof Element&&u.observe(w);d()});p.observe(h,{childList:!0,subtree:!0,characterData:!0});const y=h.getRootNode();y instanceof ShadowRoot&&y.host&&p.observe(y.host,{childList:!0,subtree:!0,characterData:!0}),t.mutationObserver=p}function Sn(e){for(const t of e.composedPath())if(!(t===window||t===document)&&t instanceof HTMLElement&&$n(t))return t;return window}function $n(e){if(!(e instanceof HTMLElement)||e===document.documentElement||e===document.body)return!1;const t=getComputedStyle(e).overflowY;return t==="auto"||t==="scroll"||t==="overlay"}function er(e){for(const s of e.composedPath())s===window||s===document||s instanceof HTMLElement&&$n(s)&&Ue(s);const t=Sn(e);Ue(t),e.type==="wheel"?(as(t),ci(t),hi(t)):(e.type==="touchstart"||e.type==="pointerdown")&&(as(t),ci(t))}function di(e){e instanceof Element&&e.classList?.contains("custom-scroll")&&Ue(e),e.querySelectorAll?.(".custom-scroll").forEach(t=>{t instanceof HTMLElement&&Ue(t)})}function sr(e){di(e),new MutationObserver(s=>{for(const r of s)for(const i of Array.from(r.addedNodes))i instanceof Element&&di(i)}).observe(e,{childList:!0,subtree:!0})}function ir(e){e.querySelectorAll?.("*").forEach(t=>{t.shadowRoot&&(sr(t.shadowRoot),ir(t.shadowRoot))})}function Ya(){const e=Element.prototype;if(e.__safariScrollGuardPatched)return;e.__safariScrollGuardPatched=!0;const t=e.attachShadow;e.attachShadow=function(r){const i=t.call(this,r);return sr(i),i}}function An(){if(typeof window>"u"||Pn||(Pn=!0,!ce()))return;Ue(window),Ya();const e={capture:!0,passive:!0};window.addEventListener("wheel",er,e),window.addEventListener("touchstart",er,e),window.addEventListener("pointerdown",er,e);const t=()=>{di(document),ir(document)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",t,{once:!0}):t(),new MutationObserver(r=>{for(const i of r)for(const n of Array.from(i.addedNodes))n instanceof Element&&(di(n),n.shadowRoot&&sr(n.shadowRoot),ir(n))}).observe(document.documentElement,{childList:!0,subtree:!0})}const Za=Fo,Xa=Fa,Qa=Js,Ja=Ws,he=Q,tl=ut,As=dt,el=Pe,sl=le;An(),window["concorde-utils"]=window["concorde-utils"]||{},window["concorde-utils"]={Utils:Za,Arrays:Xa,DataBindObserver:Qa,Format:Ja,HTML:he,LocationHandler:tl,Objects:As,PublisherManager:L,api:el,URLPattern:sl,Endpoint:li,DataProviderKey:bs};var il=Object.defineProperty,rl=Object.getOwnPropertyDescriptor,ks=(e,t,s,r)=>{for(var i=r>1?void 0:r?rl(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&il(t,s,i),i};const rr=e=>{class t extends e{constructor(){super(...arguments),this._value="",this.forceAutoFill=!1,this.unique=null,this.radio=null,this._checked=null,this.updateAllChecked=()=>{const r=this.getAttribute("name"),i=this.getCheckAllPublisher(),n=this.getFormPublisher();if(i?.hasCheckAll.get()&&!this.checksAll()&&i&&n&&r){if(this.getFormPublisherValue()?.length)(this.checked===null||i.checkMode.get()=="noneChecked"||i.checkMode.get()==null)&&i.checkMode.set("someUnchecked");else{i.checkMode.set("noneChecked");return}const o=this.getFormPublisherValue(),l=i.values.get();if(l&&l.length){let c=l.length;for(const h of l)o.indexOf(h)==-1&&(c-=1);c==l.length&&i.checkMode.set("allChecked"),c==0&&i.checkMode.set("noneChecked")}l.indexOf(this.value)==-1&&this.unsetOnDisconnect()&&(this.checked=null)}},this.onChecksAllRequest=r=>{this.removeAttribute("allChecked"),this.removeAttribute("indeterminate"),r=="allChecked"&&(this.checked=!0,this.setAttribute("allChecked","")),r=="noneChecked"&&(this.checked=null),r=="someUnchecked"&&(this.checksAll()&&(this.checked="indeterminate"),this.setAttribute("indeterminate",""))}}get value(){return this._value}set value(r){if(this.value==r||(this.hasAttribute("value")&&!this.forceAutoFill&&(r=this.getAttribute("value")),this._value==r)||r==null||(this._value=r,!this.value))return;if(this.getFormPublisher()&&this.name){let n=this.getFormPublisherValue();(this.radio||this.unique)&&(this.checked=n==r?!0:null),Array.isArray(n)||(n=[]),n.indexOf(r)!=-1&&(this.checked=!0)}this.checked==!0&&this.updateDataValue(),this.requestUpdate()}get checked(){return this._checked}set checked(r){if(this.setCheckedValue(r),this.checksAll()){const i=this.getCheckAllPublisher();i&&(this.checked===!0?i.checkMode.set("allChecked"):this.checked===null&&(i.checkMode.set("noneChecked"),this.getFormPublisher()&&this.setFormPublisherValue([])))}this.requestUpdate()}validateFormElement(){const r=this.shadowRoot?.querySelector("input");if(!r||r.checkValidity())return;const i=this.getFormPublisher();if(i){const n=this.getFormPublisherValue();if((this.unique||this.radio)&&n!==null&&n!==void 0&&n.toString().length>0)return;i.isFormValid=!1,r.reportValidity()}}checksAll(){return this.hasAttribute("checksAll")}setCheckedValue(r){this._checked!=r&&(this._checked=r,this.updateDataValue(),this.requestUpdate(),setTimeout(()=>this.updateAllChecked(),1))}handleChange(){const r=this.checked===!0?this.radio?!0:null:!0;this.checked=r;const i=new Event("change");this.dispatchEvent(i)}getValueForFormPublisher(){let r=this.getFormPublisherValue();if(this.radio)return this.checked===!0&&this.value!=null?this.value:r;if(this.unique)return this.checked===!0&&this.value!=null?this.value:null;Array.isArray(r)||(r=[]);const i=r.slice(0),n=i.indexOf(this.value);return this.checked===!0&&n===-1&&!this.checksAll()&&i.push(this.value),this.checked===null&&n!==-1&&i.splice(n,1),i}setFormValueFromPublisher(r){if(this.unique||this.radio){this.checked=this.value==r?!0:null;return}Array.isArray(r)||(r=[]),!this.checksAll()&&(this.checked=r.indexOf(this.value)!==-1?!0:null)}getCheckAllPublisher(){this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"));const r=this.formDataProvider,i=this.getAttribute("name");return!r||!i?null:L.get(r+"/"+i+"/_available_values_")}unset(){this.checked=null}disconnectedCallback(){super.disconnectedCallback();const r=this.getCheckAllPublisher();if(r&&(r.checkMode.offAssign(this.onChecksAllRequest),!this.checksAll())){const i=r.values.get().slice(0),n=i.indexOf(this.value);n!=-1&&(i.splice(n,1),r.values.set(i))}setTimeout(()=>this.updateAllChecked(),1)}connectedCallback(){if(super.connectedCallback(),this.getFormPublisher()&&this.name){const n=this.getFormPublisherValue();n&&Array.isArray(n)&&n.indexOf(this.value)!==-1&&(this.checked=!0)}const i=this.getCheckAllPublisher();i&&(i.checkMode.onAssign(this.onChecksAllRequest),this.checksAll()&&i.hasCheckAll.set(!0),i.values.get()||i.values.set([]),this.checksAll()||i.values.set([...i.values.get(),this.value])),this.hasAttribute("checked")&&(!this.publisher||this.publisher.get().checked!==!1)&&setTimeout(()=>this.checked=!0,1)}}return ks([a()],t.prototype,"value",1),ks([a()],t.prototype,"forceAutoFill",2),ks([a({type:Boolean})],t.prototype,"unique",2),ks([a({type:Boolean})],t.prototype,"radio",2),ks([a()],t.prototype,"checked",1),t};/**
73
73
  * @license
74
74
  * Copyright 2018 Google LLC
75
75
  * SPDX-License-Identifier: BSD-3-Clause
76
- */const k=e=>e??D,qt=A`
76
+ */const $=e=>e??k,Zt=S`
77
77
  /*SIZES*/
78
78
  :host {
79
79
  --sc-_fs: 1rem;
@@ -106,15 +106,15 @@
106
106
  :host([size="inherit"]) {
107
107
  --sc-_fs: 1em;
108
108
  }
109
- `;var Ga=Object.defineProperty,Ya=Object.getOwnPropertyDescriptor,W=(e,t,s,r)=>{for(var i=r>1?void 0:r?Ya(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Ga(t,s,i),i};const Za="sonic-button";let j=class extends Zi(Ze(it(C))){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(e){this._href=e;const t=this._href.toString();t&&t.indexOf("http")!=0?at.onChange(this):at.offChange(this),this.requestUpdate()}get href(){return this._href}handleNavigation(e){e.preventDefault(),at.changeFromComponent(this)}handleChange(e){if(!(e?.type=="click"&&this.autoRepeat)&&(super.handleChange(),(this.pushState||this.goBack!==null)&&(e?.preventDefault(),e?.stopPropagation(),at.changeFromComponent(this)),this.hasAttribute("reset"))){const t=this.getAttribute("reset"),s=t?L.get(t):this.getFormPublisher();s&&s.set({})}}handleRepeatStart(e){this.autoRepeat&&(this.handleChange(e),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(e){if(this.name){if(e?this.setAttribute("active","true"):this.removeAttribute("active"),e==this._checked)return;super.setCheckedValue(e)}}disconnectedCallback(){at.offChange(this),super.disconnectedCallback()}willUpdate(e){(e.has("href")||e.has("autoActive"))&&at.updateComponentActiveState(this),e.has("location")&&at.updateComponentActiveState(this)}render(){const e={flexDirection:this.direction,alignItems:this.alignItems,justifyContent:this.justify,align:this.align,minWidth:this.minWidth},t=v`
109
+ `;var nl=Object.defineProperty,ol=Object.getOwnPropertyDescriptor,K=(e,t,s,r)=>{for(var i=r>1?void 0:r?ol(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&nl(t,s,i),i};const al="sonic-button";let z=class extends rr(ns(ct(P))){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(e){this._href=e;const t=this._href.toString();t&&t.indexOf("http")!=0?ut.onChange(this):ut.offChange(this),this.requestUpdate()}get href(){return this._href}handleNavigation(e){e.preventDefault(),ut.changeFromComponent(this)}handleChange(e){if(!(e?.type=="click"&&this.autoRepeat)&&(super.handleChange(),(this.pushState||this.goBack!==null)&&(e?.preventDefault(),e?.stopPropagation(),ut.changeFromComponent(this)),this.hasAttribute("reset"))){const t=this.getAttribute("reset"),s=t?L.get(t):this.getFormPublisher();s&&s.set({})}}handleRepeatStart(e){this.autoRepeat&&(this.handleChange(e),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(e){if(this.name){if(e?this.setAttribute("active","true"):this.removeAttribute("active"),e==this._checked)return;super.setCheckedValue(e)}}disconnectedCallback(){ut.offChange(this),super.disconnectedCallback()}willUpdate(e){(e.has("href")||e.has("autoActive"))&&ut.updateComponentActiveState(this),e.has("location")&&ut.updateComponentActiveState(this)}render(){const e={flexDirection:this.direction,alignItems:this.alignItems,justifyContent:this.justify,align:this.align,minWidth:this.minWidth},t=v`
110
110
  <button
111
111
  part="button"
112
112
  class=${this.hasPrefix||this.hasSuffix?"has-prefix-or-suffix":""}
113
- style=${Pt(e)}
114
- aria-controls=${k(this.ariaControls)}
115
- aria-expanded=${k(this.sonicAriaExpanded)}
116
- aria-label=${k(this.ariaLabel)}
117
- aria-labelledby=${k(this.ariaLabelledby)}
113
+ style=${Ct(e)}
114
+ aria-controls=${$(this.ariaControls)}
115
+ aria-expanded=${$(this.sonicAriaExpanded)}
116
+ aria-label=${$(this.ariaLabel)}
117
+ aria-labelledby=${$(this.ariaLabelledby)}
118
118
  ?disabled=${this.disabled}
119
119
  @click=${this.handleChange}
120
120
  @pointerdown=${this.handleRepeatStart}
@@ -134,13 +134,13 @@
134
134
  </button>
135
135
  `;return this.href?v`<a
136
136
  href="${this.href}"
137
- download=${k(this.download)}
138
- target=${k(this.target)}
139
- aria-label=${k(this.ariaLabel)}
140
- aria-labelledby=${k(this.ariaLabelledby)}
137
+ download=${$(this.download)}
138
+ target=${$(this.target)}
139
+ aria-label=${$(this.ariaLabel)}
140
+ aria-labelledby=${$(this.ariaLabelledby)}
141
141
  @click=${this.pushState||this.goBack!==null?this.handleNavigation:null}
142
142
  >${t}</a
143
- >`:v`${t}`}onSlotChange(){this.hasPrefix=!!this.prefixes?.length,this.hasSuffix=!!this.suffixes?.length}};j.styles=[qt,A`
143
+ >`:v`${t}`}onSlotChange(){this.hasPrefix=!!this.prefixes?.length,this.hasSuffix=!!this.suffixes?.length}};z.styles=[Zt,S`
144
144
  * {
145
145
  box-sizing: border-box;
146
146
  }
@@ -506,11 +506,11 @@
506
506
  transform: translate(-50%, -50%) rotate(359deg);
507
507
  }
508
508
  }
509
- `],W([a({type:String,reflect:!0})],j.prototype,"type",2),W([a({type:String,reflect:!0})],j.prototype,"variant",2),W([a({type:String,reflect:!0})],j.prototype,"size",2),W([a({type:String,reflect:!0})],j.prototype,"shape",2),W([a({type:String})],j.prototype,"direction",2),W([a({type:String,reflect:!0})],j.prototype,"alignItems",2),W([a({type:String})],j.prototype,"justify",2),W([a({type:String,reflect:!0})],j.prototype,"align",2),W([a({type:String})],j.prototype,"minWidth",2),W([a({type:Boolean,reflect:!0})],j.prototype,"icon",2),W([a({type:String})],j.prototype,"download",2),W([a({type:String})],j.prototype,"autoActive",2),W([a({type:Boolean,reflect:!0})],j.prototype,"loading",2),W([T()],j.prototype,"hasPrefix",2),W([T()],j.prototype,"hasSuffix",2),W([hs({flatten:!0,slot:"prefix"})],j.prototype,"prefixes",2),W([hs({flatten:!0,slot:"suffix"})],j.prototype,"suffixes",2),W([a({type:String})],j.prototype,"target",2),W([a({type:String})],j.prototype,"href",1),W([a({type:String})],j.prototype,"goBack",2),W([a({type:Boolean})],j.prototype,"pushState",2),W([a({type:Boolean,reflect:!0})],j.prototype,"active",2),W([a({type:Boolean,reflect:!0})],j.prototype,"autoRepeat",2),W([a({type:String,attribute:"data-aria-controls"})],j.prototype,"ariaControls",2),W([a({type:Boolean,attribute:"data-aria-expanded"})],j.prototype,"sonicAriaExpanded",2),W([T()],j.prototype,"location",2),j=W([S(Za)],j);/**
509
+ `],K([a({type:String,reflect:!0})],z.prototype,"type",2),K([a({type:String,reflect:!0})],z.prototype,"variant",2),K([a({type:String,reflect:!0})],z.prototype,"size",2),K([a({type:String,reflect:!0})],z.prototype,"shape",2),K([a({type:String})],z.prototype,"direction",2),K([a({type:String,reflect:!0})],z.prototype,"alignItems",2),K([a({type:String})],z.prototype,"justify",2),K([a({type:String,reflect:!0})],z.prototype,"align",2),K([a({type:String})],z.prototype,"minWidth",2),K([a({type:Boolean,reflect:!0})],z.prototype,"icon",2),K([a({type:String})],z.prototype,"download",2),K([a({type:String})],z.prototype,"autoActive",2),K([a({type:Boolean,reflect:!0})],z.prototype,"loading",2),K([T()],z.prototype,"hasPrefix",2),K([T()],z.prototype,"hasSuffix",2),K([ys({flatten:!0,slot:"prefix"})],z.prototype,"prefixes",2),K([ys({flatten:!0,slot:"suffix"})],z.prototype,"suffixes",2),K([a({type:String})],z.prototype,"target",2),K([a({type:String})],z.prototype,"href",1),K([a({type:String})],z.prototype,"goBack",2),K([a({type:Boolean})],z.prototype,"pushState",2),K([a({type:Boolean,reflect:!0})],z.prototype,"active",2),K([a({type:Boolean,reflect:!0})],z.prototype,"autoRepeat",2),K([a({type:String,attribute:"data-aria-controls"})],z.prototype,"ariaControls",2),K([a({type:Boolean,attribute:"data-aria-expanded"})],z.prototype,"sonicAriaExpanded",2),K([T()],z.prototype,"location",2),z=K([C(al)],z);/**
510
510
  * @license
511
511
  * Copyright 2017 Google LLC
512
512
  * SPDX-License-Identifier: BSD-3-Clause
513
- */const vn=(e,t,s)=>{const r=new Map;for(let i=t;i<=s;i++)r.set(e[i],i);return r},ii=ue(class extends Ge{constructor(e){if(super(e),e.type!==Oe.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,t,s){let r;s===void 0?s=t:t!==void 0&&(r=t);const i=[],n=[];let o=0;for(const l of e)i[o]=r?r(l,o):o,n[o]=s(l,o),o++;return{values:n,keys:i}}render(e,t,s){return this.dt(e,t,s).values}update(e,[t,s,r]){const i=ha(e),{values:n,keys:o}=this.dt(t,s,r);if(!Array.isArray(i))return this.ut=o,n;const l=this.ut??=[],c=[];let h,u,d=0,p=i.length-1,y=0,g=n.length-1;for(;d<=p&&y<=g;)if(i[d]===null)d++;else if(i[p]===null)p--;else if(l[d]===o[y])c[y]=De(i[d],n[y]),d++,y++;else if(l[p]===o[g])c[g]=De(i[p],n[g]),p--,g--;else if(l[d]===o[g])c[g]=De(i[d],n[g]),fs(e,c[g+1],i[d]),d++,g--;else if(l[p]===o[y])c[y]=De(i[p],n[y]),fs(e,i[d],i[p]),p--,y++;else if(h===void 0&&(h=vn(o,y,g),u=vn(l,d,p)),h.has(l[d]))if(h.has(l[p])){const b=u.get(o[y]),w=b!==void 0?i[b]:null;if(w===null){const E=fs(e,i[d]);De(E,n[y]),c[y]=E}else c[y]=De(w,n[y]),fs(e,i[d],w),i[b]=null;y++}else Fi(i[p]),p--;else Fi(i[d]),d++;for(;y<=g;){const b=fs(e,c[g+1]);De(b,n[y]),c[y++]=b}for(;d<=p;){const b=i[d++];b!==null&&Fi(b)}return this.ut=o,ca(e,c),Dt}}),Xa=new WeakMap;let yn=0;const Xi=new Map,wn=new WeakSet,_n=()=>new Promise((e=>requestAnimationFrame(e))),xn=(e,t)=>{const s=e-t;return s===0?void 0:s},Pn=(e,t)=>{const s=e/t;return s===1?void 0:s},Qi={left:(e,t)=>{const s=xn(e,t);return{value:s,transform:s==null||isNaN(s)?void 0:`translateX(${s}px)`}},top:(e,t)=>{const s=xn(e,t);return{value:s,transform:s==null||isNaN(s)?void 0:`translateY(${s}px)`}},width:(e,t)=>{let s;t===0&&(t=1,s={width:"1px"});const r=Pn(e,t);return{value:r,overrideFrom:s,transform:r==null||isNaN(r)?void 0:`scaleX(${r})`}},height:(e,t)=>{let s;t===0&&(t=1,s={height:"1px"});const r=Pn(e,t);return{value:r,overrideFrom:s,transform:r==null||isNaN(r)?void 0:`scaleY(${r})`}}},Qa={duration:333,easing:"ease-in-out"},Ja=["left","top","width","height","opacity","color","background"],Cn=new WeakMap;class tl extends ji{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===Oe.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){this.resolveFinished?.(),this.finished=new Promise((t=>{this.l=t}))}async resolveFinished(){this.l?.(),this.l=void 0}render(t){return D}getController(){return Xa.get(this.u)}isDisabled(){return this.options.disabled||this.getController()?.disabled}update(t,[s]){const r=this.u===void 0;return r&&(this.u=t.options?.host,this.u.addController(this),this.u.updateComplete.then((i=>this.t=!0)),this.element=t.element,Cn.set(this.element,this)),this.optionsOrCallback=s,(r||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??=Ja,this.options=t}m(){const t={},s=this.element.getBoundingClientRect(),r=getComputedStyle(this.element);return this.options.properties.forEach((i=>{const n=s[i]??(Qi[i]?void 0:r[i]),o=Number(n);t[i]=isNaN(o)?n+"":o})),t}v(){let t,s=!0;return this.options.guard&&(t=this.options.guard(),s=((r,i)=>{if(Array.isArray(r)){if(Array.isArray(i)&&i.length===r.length&&r.every(((n,o)=>n===i[o])))return!1}else if(i===r)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 _n;const s=this.O(),r=this.j(this.options.keyframeOptions,s),i=this.m();if(this.A!==void 0){const{from:n,to:o}=this.N(this.A,i,s);this.log("measured",[this.A,i,n,o]),t=this.calculateKeyframes(n,o)}else{const n=Xi.get(this.options.inId);if(n){Xi.delete(this.options.inId);const{from:o,to:l}=this.N(n,i,s);t=this.calculateKeyframes(o,l),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,yn++,t.forEach((c=>c.zIndex=yn))}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,r)}resetStyles(){this.P!==void 0&&(this.element.setAttribute("style",this.P??""),this.P=void 0)}commitStyles(){this.P=this.element.getAttribute("style"),this.webAnimation?.commitStyles(),this.webAnimation?.cancel()}reconnected(){}async disconnected(){if(!this.h||(this.options.id!==void 0&&Xi.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await _n(),this.i?.isConnected){const s=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,s),this.options.stabilizeOut){const r=this.m();this.log("stabilizing out");const i=this.A.left-r.left,n=this.A.top-r.top;getComputedStyle(this.element).position!=="static"||i===0&&n===0||(this.element.style.position="relative"),i!==0&&(this.element.style.left=i+"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(){this.options.onStart?.(this)}didFinish(t){t&&this.options.onComplete?.(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?.parentNode){const r=Cn.get(s);r&&!r.isDisabled()&&r&&t.push(r)}return t}get isHostRendered(){const t=wn.has(this.u);return t||this.u.updateComplete.then((()=>{wn.add(this.u)})),t}j(t,s=this.O()){const r={...Qa};return s.forEach((i=>Object.assign(r,i.options.keyframeOptions))),Object.assign(r,t),r}N(t,s,r){t={...t},s={...s};const i=r.map((l=>l.animatingProperties)).filter((l=>l!==void 0));let n=1,o=1;return i.length>0&&(i.forEach((l=>{l.width&&(n/=l.width),l.height&&(o/=l.height)})),t.left!==void 0&&s.left!==void 0&&(t.left=n*t.left,s.left=n*s.left),t.top!==void 0&&s.top!==void 0&&(t.top=o*t.top,s.top=o*s.top)),{from:t,to:s}}calculateKeyframes(t,s,r=!1){const i={},n={};let o=!1;const l={};for(const c in s){const h=t[c],u=s[c];if(c in Qi){const d=Qi[c];if(h===void 0||u===void 0)continue;const p=d(h,u);p.transform!==void 0&&(l[c]=p.value,o=!0,i.transform=`${i.transform??""} ${p.transform}`,p.overrideFrom!==void 0&&Object.assign(i,p.overrideFrom))}else h!==u&&h!==void 0&&u!==void 0&&(o=!0,i[c]=h,n[c]=u)}return i.transformOrigin=n.transformOrigin=r?"center center":"top left",this.animatingProperties=l,o?[i,n]:void 0}async animate(t,s=this.options.keyframeOptions){this.start(),this.frames=t;let r=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),t!==void 0)){this.log("animate",[t,s]),r=!0,this.webAnimation=this.element.animate(t,s);const i=this.getController();i?.add(this);try{await this.webAnimation.finished}catch{}i?.remove(this)}return this.didFinish(r),r}isAnimating(){return this.webAnimation?.playState==="running"||this.webAnimation?.pending}log(t,s){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,s)}}const el=ue(tl),sl={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">
513
+ */const kn=(e,t,s)=>{const r=new Map;for(let i=t;i<=s;i++)r.set(e[i],i);return r},ui=xe(class extends is{constructor(e){if(super(e),e.type!==je.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,t,s){let r;s===void 0?s=t:t!==void 0&&(r=t);const i=[],n=[];let o=0;for(const l of e)i[o]=r?r(l,o):o,n[o]=s(l,o),o++;return{values:n,keys:i}}render(e,t,s){return this.dt(e,t,s).values}update(e,[t,s,r]){const i=_a(e),{values:n,keys:o}=this.dt(t,s,r);if(!Array.isArray(i))return this.ut=o,n;const l=this.ut??=[],c=[];let h,u,d=0,p=i.length-1,y=0,g=n.length-1;for(;d<=p&&y<=g;)if(i[d]===null)d++;else if(i[p]===null)p--;else if(l[d]===o[y])c[y]=Fe(i[d],n[y]),d++,y++;else if(l[p]===o[g])c[g]=Fe(i[p],n[g]),p--,g--;else if(l[d]===o[g])c[g]=Fe(i[d],n[g]),Ps(e,c[g+1],i[d]),d++,g--;else if(l[p]===o[y])c[y]=Fe(i[p],n[y]),Ps(e,i[d],i[p]),p--,y++;else if(h===void 0&&(h=kn(o,y,g),u=kn(l,d,p)),h.has(l[d]))if(h.has(l[p])){const m=u.get(o[y]),w=m!==void 0?i[m]:null;if(w===null){const D=Ps(e,i[d]);Fe(D,n[y]),c[y]=D}else c[y]=Fe(w,n[y]),Ps(e,i[d],w),i[m]=null;y++}else Wi(i[p]),p--;else Wi(i[d]),d++;for(;y<=g;){const m=Ps(e,c[g+1]);Fe(m,n[y]),c[y++]=m}for(;d<=p;){const m=i[d++];m!==null&&Wi(m)}return this.ut=o,wa(e,c),Lt}}),ll=new WeakMap;let Dn=0;const nr=new Map,On=new WeakSet,En=()=>new Promise((e=>requestAnimationFrame(e))),Ln=(e,t)=>{const s=e-t;return s===0?void 0:s},Tn=(e,t)=>{const s=e/t;return s===1?void 0:s},or={left:(e,t)=>{const s=Ln(e,t);return{value:s,transform:s==null||isNaN(s)?void 0:`translateX(${s}px)`}},top:(e,t)=>{const s=Ln(e,t);return{value:s,transform:s==null||isNaN(s)?void 0:`translateY(${s}px)`}},width:(e,t)=>{let s;t===0&&(t=1,s={width:"1px"});const r=Tn(e,t);return{value:r,overrideFrom:s,transform:r==null||isNaN(r)?void 0:`scaleX(${r})`}},height:(e,t)=>{let s;t===0&&(t=1,s={height:"1px"});const r=Tn(e,t);return{value:r,overrideFrom:s,transform:r==null||isNaN(r)?void 0:`scaleY(${r})`}}},cl={duration:333,easing:"ease-in-out"},hl=["left","top","width","height","opacity","color","background"],In=new WeakMap;class dl extends Ki{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===je.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){this.resolveFinished?.(),this.finished=new Promise((t=>{this.l=t}))}async resolveFinished(){this.l?.(),this.l=void 0}render(t){return k}getController(){return ll.get(this.u)}isDisabled(){return this.options.disabled||this.getController()?.disabled}update(t,[s]){const r=this.u===void 0;return r&&(this.u=t.options?.host,this.u.addController(this),this.u.updateComplete.then((i=>this.t=!0)),this.element=t.element,In.set(this.element,this)),this.optionsOrCallback=s,(r||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??=hl,this.options=t}m(){const t={},s=this.element.getBoundingClientRect(),r=getComputedStyle(this.element);return this.options.properties.forEach((i=>{const n=s[i]??(or[i]?void 0:r[i]),o=Number(n);t[i]=isNaN(o)?n+"":o})),t}v(){let t,s=!0;return this.options.guard&&(t=this.options.guard(),s=((r,i)=>{if(Array.isArray(r)){if(Array.isArray(i)&&i.length===r.length&&r.every(((n,o)=>n===i[o])))return!1}else if(i===r)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 En;const s=this.O(),r=this.j(this.options.keyframeOptions,s),i=this.m();if(this.A!==void 0){const{from:n,to:o}=this.N(this.A,i,s);this.log("measured",[this.A,i,n,o]),t=this.calculateKeyframes(n,o)}else{const n=nr.get(this.options.inId);if(n){nr.delete(this.options.inId);const{from:o,to:l}=this.N(n,i,s);t=this.calculateKeyframes(o,l),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,Dn++,t.forEach((c=>c.zIndex=Dn))}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,r)}resetStyles(){this.P!==void 0&&(this.element.setAttribute("style",this.P??""),this.P=void 0)}commitStyles(){this.P=this.element.getAttribute("style"),this.webAnimation?.commitStyles(),this.webAnimation?.cancel()}reconnected(){}async disconnected(){if(!this.h||(this.options.id!==void 0&&nr.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await En(),this.i?.isConnected){const s=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,s),this.options.stabilizeOut){const r=this.m();this.log("stabilizing out");const i=this.A.left-r.left,n=this.A.top-r.top;getComputedStyle(this.element).position!=="static"||i===0&&n===0||(this.element.style.position="relative"),i!==0&&(this.element.style.left=i+"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(){this.options.onStart?.(this)}didFinish(t){t&&this.options.onComplete?.(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?.parentNode){const r=In.get(s);r&&!r.isDisabled()&&r&&t.push(r)}return t}get isHostRendered(){const t=On.has(this.u);return t||this.u.updateComplete.then((()=>{On.add(this.u)})),t}j(t,s=this.O()){const r={...cl};return s.forEach((i=>Object.assign(r,i.options.keyframeOptions))),Object.assign(r,t),r}N(t,s,r){t={...t},s={...s};const i=r.map((l=>l.animatingProperties)).filter((l=>l!==void 0));let n=1,o=1;return i.length>0&&(i.forEach((l=>{l.width&&(n/=l.width),l.height&&(o/=l.height)})),t.left!==void 0&&s.left!==void 0&&(t.left=n*t.left,s.left=n*s.left),t.top!==void 0&&s.top!==void 0&&(t.top=o*t.top,s.top=o*s.top)),{from:t,to:s}}calculateKeyframes(t,s,r=!1){const i={},n={};let o=!1;const l={};for(const c in s){const h=t[c],u=s[c];if(c in or){const d=or[c];if(h===void 0||u===void 0)continue;const p=d(h,u);p.transform!==void 0&&(l[c]=p.value,o=!0,i.transform=`${i.transform??""} ${p.transform}`,p.overrideFrom!==void 0&&Object.assign(i,p.overrideFrom))}else h!==u&&h!==void 0&&u!==void 0&&(o=!0,i[c]=h,n[c]=u)}return i.transformOrigin=n.transformOrigin=r?"center center":"top left",this.animatingProperties=l,o?[i,n]:void 0}async animate(t,s=this.options.keyframeOptions){this.start(),this.frames=t;let r=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),t!==void 0)){this.log("animate",[t,s]),r=!0,this.webAnimation=this.element.animate(t,s);const i=this.getController();i?.add(this);try{await this.webAnimation.finished}catch{}i?.remove(this)}return this.didFinish(r),r}isAnimating(){return this.webAnimation?.playState==="running"||this.webAnimation?.pending}log(t,s){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,s)}}const ul=xe(dl),pl={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">
514
514
  <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"/>
515
515
  </svg>
516
516
  `,"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">
@@ -546,7 +546,7 @@
546
546
  <path d="M12 17.01L12.01 16.9989" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
547
547
  <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"/>
548
548
  </svg>
549
- `}},ri=new Map,Sn={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:""}};function il(e){let t=e.customLibraryPath,s=e.customLibraryDefaultPrefix;if(t==null){const r=document.querySelector("[customIconLibraryPath]");t=r?.getAttribute("customIconLibraryPath")??"",s==null&&(s=r?.getAttribute("customIconDefaultPrefix")??document.querySelector("[customIconDefaultPrefix]")?.getAttribute("customIconDefaultPrefix")??"")}return{url:t||"",defaultPrefix:s||""}}function rl(e,t){return e in Sn?e!=="custom"?Sn[e]:il(t):null}const $n=sessionStorage.getItem("sonicIconsCache"),ie=$n?JSON.parse($n):{icons:{},names:[]},nl=100,Ir=class Ir{};Ir.default={get:async t=>{const s=t.library;if(!t.name)return"";const r=t.name,i=sl;if(!s)return U(i.core[t.name]||"");const n=rl(s,t);if(n){if(s==="custom"&&!n.url)return"";const o=t.prefix||n.defaultPrefix||"",l=i[s]||{};i[s]=l;const c=s==="custom"?`${n.url}|${o}-${r}`:`${o}-${r}`;if(l[c])return U(l[c]);const h=(n.url||"").replace("$prefix",o).replace("$name",r);if(ie.icons[h]){const d=ie.icons[h];if(/^\s*<svg[\s>]/i.test(d||""))return l[c]=d,U(d);delete ie.icons[h]}if(!ri.has(h)){const d=new Promise(async p=>{try{const y=await fetch(h);if(!y.ok){p("");return}try{const g=y.headers.get("content-type")||"";if(!g.includes("image/svg+xml")&&!g.includes("svg")){p("");return}const b=await y.text(),w=/^\s*<svg[\s>]/i.test(b);p(w?b:"")}catch{p("")}}catch{ma(),p("")}});ri.set(h,d)}const u=await ri.get(h);if(ri.delete(h),l[c]=u||"",u&&/^\s*<svg[\s>]/i.test(u)&&(ie.icons[h]=u,ie.names.push(h)),ie.names.length>nl){const d=ie.names.shift();delete ie.icons[d]}return sessionStorage.setItem("sonicIconsCache",JSON.stringify(ie)),u?U(u):""}return U(i.core[t.name]||"")}};let Ji=Ir;function ol(e){this.__beforeConnectedCallbackCalls__||(this.__beforeConnectedCallbackCalls__=new Set),this.__beforeConnectedCallbackCalls__.add(e)}function al(e){this.__connectedCallbackCalls__||(this.__connectedCallbackCalls__=new Set),this.__connectedCallbackCalls__.add(e)}function ll(e){this.__disconnectedCallbackCalls__||(this.__disconnectedCallbackCalls__=new Set),this.__disconnectedCallbackCalls__.add(e)}function Te(e){if(e.__is__setSubscribable__)return;e.__is__setSubscribable__=!0,e.__onBeforeConnected__=ol,e.__onConnected__=al,e.__onDisconnected__=ll;const t=e.connectedCallback;e.connectedCallback=function(){this.__beforeConnectedCallbackCalls__&&this.__beforeConnectedCallbackCalls__.forEach(r=>r(this)),t?.call(this),this.__connectedCallbackCalls__&&this.__connectedCallbackCalls__.forEach(r=>r(this))};const s=e.disconnectedCallback;e.disconnectedCallback=function(){s?.call(this),this.__disconnectedCallbackCalls__&&this.__disconnectedCallbackCalls__.forEach(r=>r(this))}}function cl(e){return e.trim().replace(/^this\./,"")}function tr(e,t){if(!t)return;const s=t.split(".").filter(Boolean);if(s.length===0)return;let r=e;for(const i of s){if(r==null||typeof r!="object")return;r=r[i]}return r}function hl(e,t){return!!(e==null||t?.skipEmptyPlaceholder&&e==="")}function $t(e,t,s){let r=!1;const i=(l,c)=>{const h=cl(c),u=tr(e,h);return hl(u,s)?(r=!0,""):`${u}`},n=t.replace(/\$\{([^}]+)\}/g,i).replace(/\{\$([^}]+)\}/g,i).trim();if(r||!n.length)return{ready:!1,path:null};const o=n.split(".").filter(Boolean);return o.length===0||!o[0]?{ready:!1,path:null}:{ready:!0,path:n}}function Lt(e){const t=[/\$\{([^}]+)\}/g,/\{\$([^}]+)\}/g],s=new Set;for(const r of t){let i;for(;(i=r.exec(e))!==null;){const n=(i[1]||"").trim().replace(/^this\./,"");if(!n)continue;const[o]=n.split(".");o&&s.add(o)}}return Array.from(s)}function An(e){return typeof e=="object"&&e!==null&&"path"in e&&typeof e.path=="string"}const ws=new WeakMap,_s=new Set;let Je=null;const dl=8;function ul(e){let t=ws.get(e);return t||(t=new Map,ws.set(e,t)),t}function pl(e,t){const s=new Set;for(const[r,i]of t){const n=tr(e,r);Object.is(i.lastValue,n)||(i.lastValue=n,i.onChangeHandlers.forEach(o=>s.add(o)))}return s}function fl(){Je=null;let e=0,t=!0;for(;t&&e<dl;){t=!1,e+=1;for(const s of _s){const r=ws.get(s);if(!r||r.size===0)continue;const i=pl(s,r);i.size!==0&&(t=!0,i.forEach(n=>n()))}}t&&console.warn("[concorde] dynamic property watch: limite de passes atteinte, boucle infinie probable"),_s.size>0&&kn()}function kn(){Je===null&&(Je=requestAnimationFrame(fl))}function ml(){_s.size===0&&Je!==null&&(cancelAnimationFrame(Je),Je=null)}function fe(e,t,s,r,i){const n=String(r),o=ul(s);let l=o.get(n);return l||(l={lastValue:tr(s,n),onChangeHandlers:new Set},o.set(n,l)),l.onChangeHandlers.add(i),_s.add(s),kn(),()=>{const c=ws.get(s);if(!c)return;const h=c.get(n);h&&(h.onChangeHandlers.delete(i),h.onChangeHandlers.size===0&&c.delete(n),c.size===0&&(ws.delete(s),_s.delete(s),ml()))}}const ni={watcherStore:Symbol("__bindDynamicWatcherStore__"),hooked:Symbol("__bindDynamicWillUpdateHooked__")},Dn={watcherStore:"__publishDynamicWatcherStore__",hooked:"__publishDynamicWillUpdateHooked__"},me={watcherStore:"__getDynamicWatcherStore__",hooked:"__getDynamicWillUpdateHooked__"},On={watcherStore:Symbol("__onAssignDynamicWatcherStore__"),hooked:Symbol("__onAssignDynamicWillUpdateHooked__")};function jt(e){const t=e.split(".").filter(i=>i.length>0);if(t.length===0)return null;const s=t.shift()||"";if(!s)return null;let r=L.get(s);return r?(r=vs.traverse(r,t),r):null}function bl(e,t){const s=t?.reflect??!1,r={skipEmptyPlaceholder:t?.skipEmptyPlaceholder},i=Lt(e),n=i.length>0;return function(o,l){if(!o)return;Te(o);const c=`__bind_state_${l}`,h=`__bind_${l}_publisher__`,u=s?`__bind_${l}_updating_from_publisher__`:null;if(s){const d=Object.getOwnPropertyDescriptor(o,l),p=`__bind_${l}_value__`,y=`__bind_${l}_updating_from_publisher__`,g=d&&!d.get&&!d.set?d.value:void 0;Object.defineProperty(o,l,{get(){return d?.get?d.get.call(this):(!Object.prototype.hasOwnProperty.call(this,p)&&g!==void 0&&(this[p]=g),this[p])},set(b){d?.set?d.set.call(this,b):this[p]=b,!this[y]&&this[h]&&this[h].set(b)},enumerable:d?.enumerable??!0,configurable:d?.configurable??!0})}o.__onConnected__(d=>{const p=d[c]||(d[c]={cleanupWatchers:[],unsubscribePublisher:null,currentPath:null});p.unsubscribePublisher&&(p.unsubscribePublisher(),p.unsubscribePublisher=null),p.cleanupWatchers.forEach(b=>b()),p.cleanupWatchers=[],p.currentPath=null;const y=b=>{if(!b){p.unsubscribePublisher&&(p.unsubscribePublisher(),p.unsubscribePublisher=null),p.currentPath=null,d[h]=null;return}if(b===p.currentPath)return;p.unsubscribePublisher&&(p.unsubscribePublisher(),p.unsubscribePublisher=null);const w=jt(b);if(!w){p.currentPath=null,d[h]=null;return}const E=f=>{s&&u&&(d[u]=!0),d[l]=f,s&&u&&(d[u]=!1)};w.onAssign(E),p.unsubscribePublisher=()=>{w.offAssign(E),d[h]===w&&(d[h]=null)},p.currentPath=b,d[h]=w},g=()=>{if(n){const b=$t(d,e,r);if(!b.ready){y(null);return}y(b.path);return}y(e)};if(n)for(const b of i){const w=fe(ni.watcherStore,ni.hooked,d,b,()=>g());p.cleanupWatchers.push(w)}g()}),o.__onDisconnected__(d=>{const p=d[c];p&&(p.unsubscribePublisher&&(p.unsubscribePublisher(),p.unsubscribePublisher=null),p.cleanupWatchers.forEach(y=>y()),p.cleanupWatchers=[],p.currentPath=null,d[h]=null)})}}function En(e,t){const s=An(e)?e.path:e;return bl(s,t)}function Ln(e,t){const s=e.path,r={skipEmptyPlaceholder:t?.skipEmptyPlaceholder},i=Lt(s);return function(n,o){Te(n);const l=`__publish_${o}_publisher__`,c=`__publish_${o}_value__`,h=Object.getOwnPropertyDescriptor(n,o),u=h&&!h.get&&!h.set?h.value:void 0;Object.defineProperty(n,o,{get(){return h?.get?h.get.call(this):(!Object.prototype.hasOwnProperty.call(this,c)&&u!==void 0&&(this[c]=u),this[c])},set(d){h?.set?h.set.call(this,d):this[c]=d;const p=this[l];p&&p.set(d)},enumerable:h?.enumerable??!0,configurable:h?.configurable??!0}),n.__onConnected__(d=>{const p=d,y=`__publish_state_${o}`,g=p[y]||(p[y]={cleanupWatchers:[]}),b=()=>{let w;if(i.length){const f=$t(d,s,r);w=f.ready?f.path:null}else w=s;const E=w?jt(w):void 0;if(p[l]=E??null,E&&o in d){const f=p[o];f!==void 0&&E.set(f)}};if(g.cleanupWatchers.forEach(w=>w()),g.cleanupWatchers=[],i.length)for(const w of i)g.cleanupWatchers.push(fe(Dn.watcherStore,Dn.hooked,p,w,b));b()}),n.__onDisconnected__(d=>{const p=d,y=`__publish_state_${o}`,g=p[y];g?.cleanupWatchers&&g.cleanupWatchers.forEach(b=>b()),p[l]=void 0})}}function Tn(e){return En(e)}const gl={nullish:e=>e==null,emptyString:e=>e==="",emptyObject:e=>typeof e=="object"&&e!==null&&!Array.isArray(e)&&Object.keys(e).length===0,emptyArray:e=>Array.isArray(e)&&e.length===0};function vl(e,t){return t.some(s=>gl[s](e))}function yl(e,t,s){if(!s.dispatchWhenUndefined&&e.slice(0,t).filter(i=>i!=null).length!==t)return!1;if(s.skip&&s.skip.length>0){for(let r=0;r<t;r++)if(vl(e[r],s.skip))return!1}return!0}function wl(...e){return In({},e)}function In(e,t){const s=t.map(i=>{const n=Lt(i);return{originalPath:i,dynamicDependencies:n,isDynamic:n.length>0}}),r={skipEmptyPlaceholder:e.skipEmptyPlaceholder};return function(i,n,o){Te(i);const l=`__onAssign_state_${n}__`;let c;i.__onConnected__(h=>{const u=h[l]||(h[l]={cleanupWatchers:[],configurations:[]});u.cleanupWatchers.forEach(b=>b()),u.cleanupWatchers=[],u.configurations.forEach(b=>{b.unsubscribePublisher&&b.unsubscribePublisher()}),u.configurations=[];const d=[],p=[];for(let b=0;b<t.length;b++){const w=s[b],E=new Set,f=m=>{d[b]=m,yl(d,t.length,e)&&E.forEach(_=>_(...d))};p.push({publisher:null,onAssign:f,callbacks:E,unsubscribePublisher:null,pathConfig:w,index:b})}const y=(b,w)=>{if(b.unsubscribePublisher&&(b.unsubscribePublisher(),b.unsubscribePublisher=null),d[b.index]=null,b.publisher=null,!w)return;const E=jt(w);E&&(E.onAssign(b.onAssign),b.unsubscribePublisher=()=>{E.offAssign(b.onAssign),b.publisher===E&&(b.publisher=null)},b.publisher=E)},g=()=>{for(const b of p)if(b.pathConfig.isDynamic){const w=$t(h,b.pathConfig.originalPath,r);if(!w.ready){y(b,null);continue}y(b,w.path)}else y(b,b.pathConfig.originalPath)};for(const b of p)if(b.pathConfig.isDynamic)for(const w of b.pathConfig.dynamicDependencies){const E=fe(On.watcherStore,On.hooked,h,w,()=>g());u.cleanupWatchers.push(E)}c=o.value.bind(h);for(const b of p)b.callbacks.add(c);g(),u.configurations=p}),i.__onDisconnected__(h=>{const u=h[l];u&&(u.cleanupWatchers.forEach(d=>d()),u.cleanupWatchers=[],u.configurations.forEach(d=>{d.unsubscribePublisher&&d.unsubscribePublisher(),d.callbacks.delete(c)}),u.configurations=[])})}}function _l(e){return Object.prototype.toString.call(e)==="[object DataProviderKey]"}function xl(...e){const t=e[e.length-1],s=t!==void 0&&!_l(t),r=s?t:{},n=(s?e.slice(0,-1):e).map(o=>o.path);return In({dispatchWhenUndefined:!r.waitForAllDefined,skip:r.skip,skipEmptyPlaceholder:r.skipEmptyPlaceholder},n)}function Pl(){return function(e,t,s){let r=0;const i=s.value,n=e.constructor.prototype.disconnectedCallback;e.constructor.prototype.disconnectedCallback=function(){n?.apply(this),this.__removeAutoSubscribe__()};const o=e.connectedCallback;e.connectedCallback=function(){o?.call(this),this[t]()},s.value=function(...l){let c=new Set;const h=()=>{r++;const d=r;window.queueMicrotask(()=>{d===r&&this[t]()})};c.forEach(d=>{d.offAssign(h)}),Ur();const u=i.apply(this,l);return c=Vr()||new Set,c.forEach(d=>{d.onAssign(h,!1)}),this.__removeAutoSubscribe__=()=>{c.forEach(d=>{d.offAssign(h)})},u}}}function Cl(e){return function(t){Te(t);for(const s of e){const r=s.split(".");if(r.length===0)continue;const i=r.shift()||"";let n=L.get(i);n=vs.traverse(n,r),t.__onConnected__(o=>{n.startTemplateFilling(o)}),t.__onDisconnected__(()=>{})}}}function Sl(e){const t=[];let s=e;for(;s;)s instanceof Element&&t.push(s),s=s.parentNode||(s.host??null);return t}function $l(e,t){const s=[];let r=!1;const i=Y.scopeAttributeNames(e.attributeName),n=()=>{for(const o of s)o.disconnect();if(s.length=0,!r)for(const o of Sl(e.component)){const l=new MutationObserver(c=>{r||(c.some(h=>h.type==="childList")&&n(),t())});l.observe(o,{attributes:!0,attributeFilter:i,childList:!0,subtree:!1}),s.push(l)}};return n(),()=>{r=!0;for(const o of s)o.disconnect();s.length=0}}function Mn(e,t,s,r){const i=e,n=Y.getAncestorAttributeValue(e,t);!r.assignNull&&n===null||Object.is(i[s],n)||(i[s]=n)}const G=class G{static subscribe(t,s,r,i={assignNull:!0}){const n={component:t,attributeName:s,propertyKey:r,syncOptions:i,disconnectObservers:null};return n.disconnectObservers=$l(n,()=>{G.subscriptions.has(n)&&(G.pendingRefresh.add(n),G.scheduleRefresh())}),G.subscriptions.add(n),()=>{G.unsubscribe(n)}}static unsubscribe(t){G.subscriptions.has(t)&&(t.disconnectObservers?.(),t.disconnectObservers=null,G.subscriptions.delete(t),G.pendingRefresh.delete(t),G.subscriptions.size===0&&G.cancelScheduledRefresh())}static scheduleRefresh(){G.pendingRefresh.size!==0&&G.animationFrameId===null&&(G.animationFrameId=requestAnimationFrame(()=>{G.flushRefresh()}))}static cancelScheduledRefresh(){G.animationFrameId!==null&&(cancelAnimationFrame(G.animationFrameId),G.animationFrameId=null),G.pendingRefresh.clear()}static flushRefresh(){G.animationFrameId=null;const t=Array.from(G.pendingRefresh);G.pendingRefresh.clear();for(const s of t)G.subscriptions.has(s)&&s.component.isConnected&&Mn(s.component,s.attributeName,s.propertyKey,s.syncOptions)}};G.subscriptions=new Set,G.pendingRefresh=new Set,G.animationFrameId=null;let er=G;function sr(e,t){const s=t?.dynamic??!1,r=s;return function(i,n){if(!i||(Te(i),i.__onBeforeConnected__(l=>{Mn(l,e,n,{assignNull:r})}),!s))return;let o=null;i.__onConnected__(l=>{o=er.subscribe(l,e,n,{assignNull:!0})}),i.__onDisconnected__(()=>{o?.(),o=null})}}var Al=Object.defineProperty,kl=Object.getOwnPropertyDescriptor,Ie=(e,t,s,r)=>{for(var i=r>1?void 0:r?kl(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Al(t,s,i),i};const ir=e=>a(e),Dl="sonic-icon";let re=class extends C{constructor(){super(...arguments),this.iconText="",this.name="",this.prefix="",this.library="",this.customIconLibraryPath=null,this.customIconDefaultPrefix=null}async updateIcon(){this.iconText=await Ji.default.get({name:this.name,prefix:this.prefix,library:this.library,customLibraryPath:this.customIconLibraryPath,customLibraryDefaultPrefix:this.customIconDefaultPrefix})}connectedCallback(){this.setAttribute("aria-hidden","true"),super.connectedCallback()}willUpdate(e){(e.has("name")||e.has("prefix")||e.has("library")||this.library==="custom"&&(e.has("customIconLibraryPath")||e.has("customIconDefaultPrefix")))&&this.updateIcon(),super.willUpdate(e)}render(){return this.iconText?this.iconText:D}};re.styles=A`
549
+ `}},pi=new Map,Mn={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:""}};function fl(e){let t=e.customLibraryPath,s=e.customLibraryDefaultPrefix;if(t==null){const r=document.querySelector("[customIconLibraryPath]");t=r?.getAttribute("customIconLibraryPath")??"",s==null&&(s=r?.getAttribute("customIconDefaultPrefix")??document.querySelector("[customIconDefaultPrefix]")?.getAttribute("customIconDefaultPrefix")??"")}return{url:t||"",defaultPrefix:s||""}}function ml(e,t){return e in Mn?e!=="custom"?Mn[e]:fl(t):null}const Nn=sessionStorage.getItem("sonicIconsCache"),de=Nn?JSON.parse(Nn):{icons:{},names:[]},bl=100,Vr=class Vr{};Vr.default={get:async t=>{const s=t.library;if(!t.name)return"";const r=t.name,i=pl;if(!s)return H(i.core[t.name]||"");const n=ml(s,t);if(n){if(s==="custom"&&!n.url)return"";const o=t.prefix||n.defaultPrefix||"",l=i[s]||{};i[s]=l;const c=s==="custom"?`${n.url}|${o}-${r}`:`${o}-${r}`;if(l[c])return H(l[c]);const h=(n.url||"").replace("$prefix",o).replace("$name",r);if(de.icons[h]){const d=de.icons[h];if(/^\s*<svg[\s>]/i.test(d||""))return l[c]=d,H(d);delete de.icons[h]}if(!pi.has(h)){const d=new Promise(async p=>{try{const y=await fetch(h);if(!y.ok){p("");return}try{const g=y.headers.get("content-type")||"";if(!g.includes("image/svg+xml")&&!g.includes("svg")){p("");return}const m=await y.text(),w=/^\s*<svg[\s>]/i.test(m);p(w?m:"")}catch{p("")}}catch{$a(),p("")}});pi.set(h,d)}const u=await pi.get(h);if(pi.delete(h),l[c]=u||"",u&&/^\s*<svg[\s>]/i.test(u)&&(de.icons[h]=u,de.names.push(h)),de.names.length>bl){const d=de.names.shift();delete de.icons[d]}return sessionStorage.setItem("sonicIconsCache",JSON.stringify(de)),u?H(u):""}return H(i.core[t.name]||"")}};let ar=Vr;function gl(e){this.__beforeConnectedCallbackCalls__||(this.__beforeConnectedCallbackCalls__=new Set),this.__beforeConnectedCallbackCalls__.add(e)}function vl(e){this.__connectedCallbackCalls__||(this.__connectedCallbackCalls__=new Set),this.__connectedCallbackCalls__.add(e)}function yl(e){this.__disconnectedCallbackCalls__||(this.__disconnectedCallbackCalls__=new Set),this.__disconnectedCallbackCalls__.add(e)}function Ve(e){if(e.__is__setSubscribable__)return;e.__is__setSubscribable__=!0,e.__onBeforeConnected__=gl,e.__onConnected__=vl,e.__onDisconnected__=yl;const t=e.connectedCallback;e.connectedCallback=function(){this.__beforeConnectedCallbackCalls__&&this.__beforeConnectedCallbackCalls__.forEach(r=>r(this)),t?.call(this),this.__connectedCallbackCalls__&&this.__connectedCallbackCalls__.forEach(r=>r(this))};const s=e.disconnectedCallback;e.disconnectedCallback=function(){s?.call(this),this.__disconnectedCallbackCalls__&&this.__disconnectedCallbackCalls__.forEach(r=>r(this))}}function wl(e){return e.trim().replace(/^this\./,"")}function lr(e,t){if(!t)return;const s=t.split(".").filter(Boolean);if(s.length===0)return;let r=e;for(const i of s){if(r==null||typeof r!="object")return;r=r[i]}return r}function _l(e,t){return!!(e==null||t?.skipEmptyPlaceholder&&e==="")}function At(e,t,s){let r=!1;const i=(l,c)=>{const h=wl(c),u=lr(e,h);return _l(u,s)?(r=!0,""):`${u}`},n=t.replace(/\$\{([^}]+)\}/g,i).replace(/\{\$([^}]+)\}/g,i).trim();if(r||!n.length)return{ready:!1,path:null};const o=n.split(".").filter(Boolean);return o.length===0||!o[0]?{ready:!1,path:null}:{ready:!0,path:n}}function Nt(e){const t=[/\$\{([^}]+)\}/g,/\{\$([^}]+)\}/g],s=new Set;for(const r of t){let i;for(;(i=r.exec(e))!==null;){const n=(i[1]||"").trim().replace(/^this\./,"");if(!n)continue;const[o]=n.split(".");o&&s.add(o)}}return Array.from(s)}function Rn(e){return typeof e=="object"&&e!==null&&"path"in e&&typeof e.path=="string"}const Ds=new WeakMap,Os=new Set;let ls=null;const xl=8;function Pl(e){let t=Ds.get(e);return t||(t=new Map,Ds.set(e,t)),t}function Cl(e,t){const s=new Set;for(const[r,i]of t){const n=lr(e,r);Object.is(i.lastValue,n)||(i.lastValue=n,i.onChangeHandlers.forEach(o=>s.add(o)))}return s}function Sl(){ls=null;let e=0,t=!0;for(;t&&e<xl;){t=!1,e+=1;for(const s of Os){const r=Ds.get(s);if(!r||r.size===0)continue;const i=Cl(s,r);i.size!==0&&(t=!0,i.forEach(n=>n()))}}t&&console.warn("[concorde] dynamic property watch: limite de passes atteinte, boucle infinie probable"),Os.size>0&&Fn()}function Fn(){ls===null&&(ls=requestAnimationFrame(Sl))}function $l(){Os.size===0&&ls!==null&&(cancelAnimationFrame(ls),ls=null)}function Ce(e,t,s,r,i){const n=String(r),o=Pl(s);let l=o.get(n);return l||(l={lastValue:lr(s,n),onChangeHandlers:new Set},o.set(n,l)),l.onChangeHandlers.add(i),Os.add(s),Fn(),()=>{const c=Ds.get(s);if(!c)return;const h=c.get(n);h&&(h.onChangeHandlers.delete(i),h.onChangeHandlers.size===0&&c.delete(n),c.size===0&&(Ds.delete(s),Os.delete(s),$l()))}}const fi={watcherStore:Symbol("__bindDynamicWatcherStore__"),hooked:Symbol("__bindDynamicWillUpdateHooked__")},jn={watcherStore:"__publishDynamicWatcherStore__",hooked:"__publishDynamicWillUpdateHooked__"},Se={watcherStore:"__getDynamicWatcherStore__",hooked:"__getDynamicWillUpdateHooked__"},zn={watcherStore:Symbol("__onAssignDynamicWatcherStore__"),hooked:Symbol("__onAssignDynamicWillUpdateHooked__")};function qt(e){const t=e.split(".").filter(i=>i.length>0);if(t.length===0)return null;const s=t.shift()||"";if(!s)return null;let r=L.get(s);return r?(r=As.traverse(r,t),r):null}function Al(e,t){const s=t?.reflect??!1,r={skipEmptyPlaceholder:t?.skipEmptyPlaceholder},i=Nt(e),n=i.length>0;return function(o,l){if(!o)return;Ve(o);const c=`__bind_state_${l}`,h=`__bind_${l}_publisher__`,u=s?`__bind_${l}_updating_from_publisher__`:null;if(s){const d=Object.getOwnPropertyDescriptor(o,l),p=`__bind_${l}_value__`,y=`__bind_${l}_updating_from_publisher__`,g=d&&!d.get&&!d.set?d.value:void 0;Object.defineProperty(o,l,{get(){return d?.get?d.get.call(this):(!Object.prototype.hasOwnProperty.call(this,p)&&g!==void 0&&(this[p]=g),this[p])},set(m){d?.set?d.set.call(this,m):this[p]=m,!this[y]&&this[h]&&this[h].set(m)},enumerable:d?.enumerable??!0,configurable:d?.configurable??!0})}o.__onConnected__(d=>{const p=d[c]||(d[c]={cleanupWatchers:[],unsubscribePublisher:null,currentPath:null});p.unsubscribePublisher&&(p.unsubscribePublisher(),p.unsubscribePublisher=null),p.cleanupWatchers.forEach(m=>m()),p.cleanupWatchers=[],p.currentPath=null;const y=m=>{if(!m){p.unsubscribePublisher&&(p.unsubscribePublisher(),p.unsubscribePublisher=null),p.currentPath=null,d[h]=null;return}if(m===p.currentPath)return;p.unsubscribePublisher&&(p.unsubscribePublisher(),p.unsubscribePublisher=null);const w=qt(m);if(!w){p.currentPath=null,d[h]=null;return}const D=f=>{s&&u&&(d[u]=!0),d[l]=f,s&&u&&(d[u]=!1)};w.onAssign(D),p.unsubscribePublisher=()=>{w.offAssign(D),d[h]===w&&(d[h]=null)},p.currentPath=m,d[h]=w},g=()=>{if(n){const m=At(d,e,r);if(!m.ready){y(null);return}y(m.path);return}y(e)};if(n)for(const m of i){const w=Ce(fi.watcherStore,fi.hooked,d,m,()=>g());p.cleanupWatchers.push(w)}g()}),o.__onDisconnected__(d=>{const p=d[c];p&&(p.unsubscribePublisher&&(p.unsubscribePublisher(),p.unsubscribePublisher=null),p.cleanupWatchers.forEach(y=>y()),p.cleanupWatchers=[],p.currentPath=null,d[h]=null)})}}function Un(e,t){const s=Rn(e)?e.path:e;return Al(s,t)}function Vn(e,t){const s=e.path,r={skipEmptyPlaceholder:t?.skipEmptyPlaceholder},i=Nt(s);return function(n,o){Ve(n);const l=`__publish_${o}_publisher__`,c=`__publish_${o}_value__`,h=Object.getOwnPropertyDescriptor(n,o),u=h&&!h.get&&!h.set?h.value:void 0;Object.defineProperty(n,o,{get(){return h?.get?h.get.call(this):(!Object.prototype.hasOwnProperty.call(this,c)&&u!==void 0&&(this[c]=u),this[c])},set(d){h?.set?h.set.call(this,d):this[c]=d;const p=this[l];p&&p.set(d)},enumerable:h?.enumerable??!0,configurable:h?.configurable??!0}),n.__onConnected__(d=>{const p=d,y=`__publish_state_${o}`,g=p[y]||(p[y]={cleanupWatchers:[]}),m=()=>{let w;if(i.length){const f=At(d,s,r);w=f.ready?f.path:null}else w=s;const D=w?qt(w):void 0;if(p[l]=D??null,D&&o in d){const f=p[o];f!==void 0&&D.set(f)}};if(g.cleanupWatchers.forEach(w=>w()),g.cleanupWatchers=[],i.length)for(const w of i)g.cleanupWatchers.push(Ce(jn.watcherStore,jn.hooked,p,w,m));m()}),n.__onDisconnected__(d=>{const p=d,y=`__publish_state_${o}`,g=p[y];g?.cleanupWatchers&&g.cleanupWatchers.forEach(m=>m()),p[l]=void 0})}}function Bn(e){return Un(e)}const kl={nullish:e=>e==null,emptyString:e=>e==="",emptyObject:e=>typeof e=="object"&&e!==null&&!Array.isArray(e)&&Object.keys(e).length===0,emptyArray:e=>Array.isArray(e)&&e.length===0};function Dl(e,t){return t.some(s=>kl[s](e))}function Ol(e,t,s){if(!s.dispatchWhenUndefined&&e.slice(0,t).filter(i=>i!=null).length!==t)return!1;if(s.skip&&s.skip.length>0){for(let r=0;r<t;r++)if(Dl(e[r],s.skip))return!1}return!0}function El(...e){return Hn({},e)}function Hn(e,t){const s=t.map(i=>{const n=Nt(i);return{originalPath:i,dynamicDependencies:n,isDynamic:n.length>0}}),r={skipEmptyPlaceholder:e.skipEmptyPlaceholder};return function(i,n,o){Ve(i);const l=`__onAssign_state_${n}__`;let c;i.__onConnected__(h=>{const u=h[l]||(h[l]={cleanupWatchers:[],configurations:[]});u.cleanupWatchers.forEach(m=>m()),u.cleanupWatchers=[],u.configurations.forEach(m=>{m.unsubscribePublisher&&m.unsubscribePublisher()}),u.configurations=[];const d=[],p=[];for(let m=0;m<t.length;m++){const w=s[m],D=new Set,f=b=>{d[m]=b,Ol(d,t.length,e)&&D.forEach(_=>_(...d))};p.push({publisher:null,onAssign:f,callbacks:D,unsubscribePublisher:null,pathConfig:w,index:m})}const y=(m,w)=>{if(m.unsubscribePublisher&&(m.unsubscribePublisher(),m.unsubscribePublisher=null),d[m.index]=null,m.publisher=null,!w)return;const D=qt(w);D&&(D.onAssign(m.onAssign),m.unsubscribePublisher=()=>{D.offAssign(m.onAssign),m.publisher===D&&(m.publisher=null)},m.publisher=D)},g=()=>{for(const m of p)if(m.pathConfig.isDynamic){const w=At(h,m.pathConfig.originalPath,r);if(!w.ready){y(m,null);continue}y(m,w.path)}else y(m,m.pathConfig.originalPath)};for(const m of p)if(m.pathConfig.isDynamic)for(const w of m.pathConfig.dynamicDependencies){const D=Ce(zn.watcherStore,zn.hooked,h,w,()=>g());u.cleanupWatchers.push(D)}c=o.value.bind(h);for(const m of p)m.callbacks.add(c);g(),u.configurations=p}),i.__onDisconnected__(h=>{const u=h[l];u&&(u.cleanupWatchers.forEach(d=>d()),u.cleanupWatchers=[],u.configurations.forEach(d=>{d.unsubscribePublisher&&d.unsubscribePublisher(),d.callbacks.delete(c)}),u.configurations=[])})}}function Ll(e){return Object.prototype.toString.call(e)==="[object DataProviderKey]"}function Tl(...e){const t=e[e.length-1],s=t!==void 0&&!Ll(t),r=s?t:{},n=(s?e.slice(0,-1):e).map(o=>o.path);return Hn({dispatchWhenUndefined:!r.waitForAllDefined,skip:r.skip,skipEmptyPlaceholder:r.skipEmptyPlaceholder},n)}function Il(){return function(e,t,s){let r=0;const i=s.value,n=e.constructor.prototype.disconnectedCallback;e.constructor.prototype.disconnectedCallback=function(){n?.apply(this),this.__removeAutoSubscribe__()};const o=e.connectedCallback;e.connectedCallback=function(){o?.call(this),this[t]()},s.value=function(...l){let c=new Set;const h=()=>{r++;const d=r;window.queueMicrotask(()=>{d===r&&this[t]()})};c.forEach(d=>{d.offAssign(h)}),Xr();const u=i.apply(this,l);return c=Qr()||new Set,c.forEach(d=>{d.onAssign(h,!1)}),this.__removeAutoSubscribe__=()=>{c.forEach(d=>{d.offAssign(h)})},u}}}function Ml(e){return function(t){Ve(t);for(const s of e){const r=s.split(".");if(r.length===0)continue;const i=r.shift()||"";let n=L.get(i);n=As.traverse(n,r),t.__onConnected__(o=>{n.startTemplateFilling(o)}),t.__onDisconnected__(()=>{})}}}function Nl(e){const t=[];let s=e;for(;s;)s instanceof Element&&t.push(s),s=s.parentNode||(s.host??null);return t}function Rl(e,t){const s=[];let r=!1;const i=Q.scopeAttributeNames(e.attributeName),n=()=>{for(const o of s)o.disconnect();if(s.length=0,!r)for(const o of Nl(e.component)){const l=new MutationObserver(c=>{r||(c.some(h=>h.type==="childList")&&n(),t())});l.observe(o,{attributes:!0,attributeFilter:i,childList:!0,subtree:!1}),s.push(l)}};return n(),()=>{r=!0;for(const o of s)o.disconnect();s.length=0}}function qn(e,t,s,r){const i=e,n=Q.getAncestorAttributeValue(e,t);!r.assignNull&&n===null||Object.is(i[s],n)||(i[s]=n)}const Y=class Y{static subscribe(t,s,r,i={assignNull:!0}){const n={component:t,attributeName:s,propertyKey:r,syncOptions:i,disconnectObservers:null};return n.disconnectObservers=Rl(n,()=>{Y.subscriptions.has(n)&&(Y.pendingRefresh.add(n),Y.scheduleRefresh())}),Y.subscriptions.add(n),()=>{Y.unsubscribe(n)}}static unsubscribe(t){Y.subscriptions.has(t)&&(t.disconnectObservers?.(),t.disconnectObservers=null,Y.subscriptions.delete(t),Y.pendingRefresh.delete(t),Y.subscriptions.size===0&&Y.cancelScheduledRefresh())}static scheduleRefresh(){Y.pendingRefresh.size!==0&&Y.animationFrameId===null&&(Y.animationFrameId=requestAnimationFrame(()=>{Y.flushRefresh()}))}static cancelScheduledRefresh(){Y.animationFrameId!==null&&(cancelAnimationFrame(Y.animationFrameId),Y.animationFrameId=null),Y.pendingRefresh.clear()}static flushRefresh(){Y.animationFrameId=null;const t=Array.from(Y.pendingRefresh);Y.pendingRefresh.clear();for(const s of t)Y.subscriptions.has(s)&&s.component.isConnected&&qn(s.component,s.attributeName,s.propertyKey,s.syncOptions)}};Y.subscriptions=new Set,Y.pendingRefresh=new Set,Y.animationFrameId=null;let cr=Y;function hr(e,t){const s=t?.dynamic??!1,r=s;return function(i,n){if(!i||(Ve(i),i.__onBeforeConnected__(l=>{qn(l,e,n,{assignNull:r})}),!s))return;let o=null;i.__onConnected__(l=>{o=cr.subscribe(l,e,n,{assignNull:!0})}),i.__onDisconnected__(()=>{o?.(),o=null})}}var Fl=Object.defineProperty,jl=Object.getOwnPropertyDescriptor,Be=(e,t,s,r)=>{for(var i=r>1?void 0:r?jl(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Fl(t,s,i),i};const dr=e=>a(e),zl="sonic-icon";let ue=class extends P{constructor(){super(...arguments),this.iconText="",this.name="",this.prefix="",this.library="",this.customIconLibraryPath=null,this.customIconDefaultPrefix=null}async updateIcon(){this.iconText=await ar.default.get({name:this.name,prefix:this.prefix,library:this.library,customLibraryPath:this.customIconLibraryPath,customLibraryDefaultPrefix:this.customIconDefaultPrefix})}connectedCallback(){this.setAttribute("aria-hidden","true"),super.connectedCallback()}willUpdate(e){(e.has("name")||e.has("prefix")||e.has("library")||this.library==="custom"&&(e.has("customIconLibraryPath")||e.has("customIconDefaultPrefix")))&&this.updateIcon(),super.willUpdate(e)}render(){return this.iconText?this.iconText:k}};ue.styles=S`
550
550
  :host {
551
551
  line-height: 0.1em;
552
552
  width: fit-content;
@@ -596,7 +596,7 @@
596
596
  :host([size="3xl"]) svg {
597
597
  --_sc-icon-size: 2.8em;
598
598
  }
599
- `,Ie([T()],re.prototype,"iconText",2),Ie([ir({type:String})],re.prototype,"name",2),Ie([ir({type:String})],re.prototype,"prefix",2),Ie([ir({type:String})],re.prototype,"library",2),Ie([sr("customIconLibraryPath",{dynamic:!0}),T()],re.prototype,"customIconLibraryPath",2),Ie([sr("customIconDefaultPrefix",{dynamic:!0}),T()],re.prototype,"customIconDefaultPrefix",2),re=Ie([S(Dl)],re),gn();const xs=A`
599
+ `,Be([T()],ue.prototype,"iconText",2),Be([dr({type:String})],ue.prototype,"name",2),Be([dr({type:String})],ue.prototype,"prefix",2),Be([dr({type:String})],ue.prototype,"library",2),Be([hr("customIconLibraryPath",{dynamic:!0}),T()],ue.prototype,"customIconLibraryPath",2),Be([hr("customIconDefaultPrefix",{dynamic:!0}),T()],ue.prototype,"customIconDefaultPrefix",2),ue=Be([C(zl)],ue),An();const Es=S`
600
600
  .custom-scroll {
601
601
  overflow: auto !important;
602
602
  overflow-y: overlay !important;
@@ -618,12 +618,12 @@
618
618
  border: solid 0.15rem transparent;
619
619
  }
620
620
  }
621
- `;var Ol=Object.defineProperty,El=Object.getOwnPropertyDescriptor,zt=(e,t,s,r)=>{for(var i=r>1?void 0:r?El(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Ol(t,s,i),i};const Ll={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty"},Tl="sonic-toast-item";let Ot=class extends C{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,this._titleId=""}getAriaRole(){return this.status==="error"?"alert":"status"}getAriaLive(){return this.status==="error"?null:"polite"}getTitleId(){return this._titleId?this._titleId:(this._titleId=this.id?`toast-title-${this.id}`:`toast-title-${Date.now()}-${Math.random().toString(36).slice(2,11)}`,this._titleId)}getCloseButtonLabel(){const e={error:"Fermer le message d'erreur",warning:"Fermer l'avertissement",success:"Fermer le message de succès",info:"Fermer l'information"};return this.status&&e[this.status]||"Fermer la notification"}render(){if(this.dismissForever){const r=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(r)[this.id])return D}if(!this.visible)return D;const e=this.title?this.getTitleId():void 0,t=!this.title&&this.text?this.text.length>100?this.text.substring(0,100).replace(/\s+\S*$/,"")+"...":this.text:void 0,s=this.getAriaLive();return v`<div
621
+ `;var Ul=Object.defineProperty,Vl=Object.getOwnPropertyDescriptor,Wt=(e,t,s,r)=>{for(var i=r>1?void 0:r?Vl(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Ul(t,s,i),i};const Bl={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty"},Hl="sonic-toast-item";let Tt=class extends P{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,this._titleId=""}getAriaRole(){return this.status==="error"?"alert":"status"}getAriaLive(){return this.status==="error"?null:"polite"}getTitleId(){return this._titleId?this._titleId:(this._titleId=this.id?`toast-title-${this.id}`:`toast-title-${Date.now()}-${Math.random().toString(36).slice(2,11)}`,this._titleId)}getCloseButtonLabel(){const e={error:"Fermer le message d'erreur",warning:"Fermer l'avertissement",success:"Fermer le message de succès",info:"Fermer l'information"};return this.status&&e[this.status]||"Fermer la notification"}render(){if(this.dismissForever){const r=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(r)[this.id])return k}if(!this.visible)return k;const e=this.title?this.getTitleId():void 0,t=!this.title&&this.text?this.text.length>100?this.text.substring(0,100).replace(/\s+\S*$/,"")+"...":this.text:void 0,s=this.getAriaLive();return v`<div
622
622
  class="sonic-toast ${this.status} ${this.ghost?"ghost":""}"
623
623
  role=${this.getAriaRole()}
624
- aria-live=${s||D}
624
+ aria-live=${s||k}
625
625
  aria-atomic="true"
626
- aria-label=${t||D}
626
+ aria-label=${t||k}
627
627
  >
628
628
  <button
629
629
  aria-label=${this.getCloseButtonLabel()}
@@ -637,7 +637,7 @@
637
637
  style="max-height: ${this.maxHeight} ;"
638
638
  >
639
639
  ${this.status&&v`<sonic-icon
640
- name=${Ll[this.status]}
640
+ name=${Bl[this.status]}
641
641
  class="sonic-toast-icon"
642
642
  size="2xl"
643
643
  aria-hidden="true"
@@ -647,13 +647,13 @@
647
647
  ${this.title?v`<div class="sonic-toast-title" id=${e}>
648
648
  ${this.title}
649
649
  </div>`:""}
650
- ${this.text?U(this.text):""}
650
+ ${this.text?H(this.text):""}
651
651
  <slot></slot>
652
652
  </div>
653
653
 
654
654
  ${this.preserve?"":this.autoHide()}
655
655
  </div>
656
- </div>`}hide(){if(se.getClosestElement(this,"sonic-toast")||(this.visible=!1),this.dismissForever){const e=localStorage.getItem("sonic-toast-dismissed")||"{}",t=JSON.parse(e);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)}};Ot.styles=[xs,A`
656
+ </div>`}hide(){if(he.getClosestElement(this,"sonic-toast")||(this.visible=!1),this.dismissForever){const e=localStorage.getItem("sonic-toast-dismissed")||"{}",t=JSON.parse(e);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)}};Tt.styles=[Es,S`
657
657
  * {
658
658
  box-sizing: border-box;
659
659
  }
@@ -833,7 +833,7 @@
833
833
  opacity: 0.85;
834
834
  pointer-events: none;
835
835
  }
836
- `],zt([a({type:String})],Ot.prototype,"title",2),zt([a({type:String})],Ot.prototype,"id",2),zt([a({type:String})],Ot.prototype,"text",2),zt([a({type:String})],Ot.prototype,"status",2),zt([a({type:Boolean})],Ot.prototype,"ghost",2),zt([a({type:Boolean})],Ot.prototype,"preserve",2),zt([a({type:Boolean})],Ot.prototype,"dismissForever",2),zt([a({type:String})],Ot.prototype,"maxHeight",2),zt([T()],Ot.prototype,"visible",2),zt([T()],Ot.prototype,"_titleId",2),Ot=zt([S(Tl)],Ot);const Il=A`
836
+ `],Wt([a({type:String})],Tt.prototype,"title",2),Wt([a({type:String})],Tt.prototype,"id",2),Wt([a({type:String})],Tt.prototype,"text",2),Wt([a({type:String})],Tt.prototype,"status",2),Wt([a({type:Boolean})],Tt.prototype,"ghost",2),Wt([a({type:Boolean})],Tt.prototype,"preserve",2),Wt([a({type:Boolean})],Tt.prototype,"dismissForever",2),Wt([a({type:String})],Tt.prototype,"maxHeight",2),Wt([T()],Tt.prototype,"visible",2),Wt([T()],Tt.prototype,"_titleId",2),Tt=Wt([C(Hl)],Tt);const ql=S`
837
837
  :host {
838
838
  /* POLICES */
839
839
  /*
@@ -904,7 +904,7 @@
904
904
  --sc-contrast-content: #fff;
905
905
  --sc-contrast: #000000;
906
906
  }
907
- `,Ml=A`
907
+ `,Wl=S`
908
908
  :host([theme="light"]) {
909
909
  /*Boutons*/
910
910
  --sc-primary: var(--sc-base-800);
@@ -933,7 +933,7 @@
933
933
  --sc-base-900: #0f172a;
934
934
  --sc-base-content: var(--sc-base-700);
935
935
  }
936
- `,Nn=A`
936
+ `,Wn=S`
937
937
  --sc-primary: var(--sc-dark-primary, var(--sc-base-700));
938
938
  --sc-info: var(--sc-dark-info, #3abff8);
939
939
  --sc-danger: var(--sc-dark-danger, #f87272);
@@ -958,17 +958,17 @@
958
958
  --sc-base-800: var(--sc-dark-base-800, #d9dce0);
959
959
  --sc-base-900: var(--sc-dark-base-900, #e5e7eb);
960
960
  --sc-base-content: var(--sc-dark-base-content, #e5e7eb);
961
- `,Nl=A`
961
+ `,Kl=S`
962
962
  :host([theme="dark"]) {
963
- ${Nn}
963
+ ${Wn}
964
964
  }
965
965
 
966
966
  @media (prefers-color-scheme: dark) {
967
967
  :host([theme="auto"]) {
968
- ${Nn}
968
+ ${Wn}
969
969
  }
970
970
  }
971
- `;var Rl=Object.defineProperty,Fl=Object.getOwnPropertyDescriptor,Ps=(e,t,s,r)=>{for(var i=r>1?void 0:r?Fl(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Rl(t,s,i),i};const jl="sonic-theme";let Et=class extends C{constructor(){super(),this.background=!1,this.color=!1,this.font=!1,Et.instance=this}static getPopContainer(){return Et.instance||document.body}connectedCallback(){super.connectedCallback(),window.addEventListener("message",e=>this.receiveMessage(e),!1),window.dispatchEvent(new CustomEvent("SonicThemeReady")),this.postCSSVars()}postCSSVars(){const e=document.styleSheets,t=e.length,s=[];for(let i=0;i<t;i++){const n=e[i];n.href&&(n.href.includes("googleapis")||n.href.includes("typekit.net"))&&s.push(n.href)}const r={variables:this.getCssVariables(),fonts:s};L.get("sonic-theme")?.set(r),document.querySelectorAll("iframe").forEach(i=>i.contentWindow?.postMessage({type:"SonicTheme",...r},"*"))}receiveMessage(e){const t=e.data;!t.type||t.type!="GetSonicTheme"||this.postCSSVars()}getCssVariables(){const e=[],t=[...Et.styles.map(i=>i.styleSheet),...Array.from(document.styleSheets)];for(const i of t)try{if(!i)continue;const n=i.cssRules;for(const o of n){if(!("style"in o))continue;const l=o.style;for(const c of l)e.includes(c)||c.indexOf("--sc")!==0||e.push(c)}}catch{console.warn("Erreur lors de la récupération des variables CSS")}const s=window.getComputedStyle(this),r={};return e.forEach(i=>r[i]=s.getPropertyValue(i)),r}render(){return v`<slot></slot>`}};Et.styles=[Ml,Nl,Il,A`
971
+ `;var Gl=Object.defineProperty,Yl=Object.getOwnPropertyDescriptor,Ls=(e,t,s,r)=>{for(var i=r>1?void 0:r?Yl(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Gl(t,s,i),i};const Zl="sonic-theme";let It=class extends P{constructor(){super(),this.background=!1,this.color=!1,this.font=!1,It.instance=this}static getPopContainer(){return It.instance||document.body}connectedCallback(){super.connectedCallback(),window.addEventListener("message",e=>this.receiveMessage(e),!1),window.dispatchEvent(new CustomEvent("SonicThemeReady")),this.postCSSVars()}postCSSVars(){const e=document.styleSheets,t=e.length,s=[];for(let i=0;i<t;i++){const n=e[i];n.href&&(n.href.includes("googleapis")||n.href.includes("typekit.net"))&&s.push(n.href)}const r={variables:this.getCssVariables(),fonts:s};L.get("sonic-theme")?.set(r),document.querySelectorAll("iframe").forEach(i=>i.contentWindow?.postMessage({type:"SonicTheme",...r},"*"))}receiveMessage(e){const t=e.data;!t.type||t.type!="GetSonicTheme"||this.postCSSVars()}getCssVariables(){const e=[],t=[...It.styles.map(i=>i.styleSheet),...Array.from(document.styleSheets)];for(const i of t)try{if(!i)continue;const n=i.cssRules;for(const o of n){if(!("style"in o))continue;const l=o.style;for(const c of l)e.includes(c)||c.indexOf("--sc")!==0||e.push(c)}}catch{console.warn("Erreur lors de la récupération des variables CSS")}const s=window.getComputedStyle(this),r={};return e.forEach(i=>r[i]=s.getPropertyValue(i)),r}render(){return v`<slot></slot>`}};It.styles=[Wl,Kl,ql,S`
972
972
  :host([color]) {
973
973
  color: var(--sc-base-content, #000);
974
974
  }
@@ -1000,39 +1000,39 @@
1000
1000
  transition-property: scale, opacity;
1001
1001
  transition-timing-function: cubic-bezier(0.25, 0.25, 0.42, 1.225);
1002
1002
  }
1003
- `],Ps([a({type:String,reflect:!0})],Et.prototype,"theme",2),Ps([a({type:Boolean,reflect:!0})],Et.prototype,"background",2),Ps([a({type:Boolean,reflect:!0})],Et.prototype,"color",2),Ps([a({type:Boolean,reflect:!0})],Et.prototype,"font",2),Et=Ps([S(jl)],Et);var zl=Object.defineProperty,Ul=Object.getOwnPropertyDescriptor,Rn=(e,t,s,r)=>{for(var i=r>1?void 0:r?Ul(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&zl(t,s,i),i};const Vl="sonic-toast";let I=class extends C{constructor(){super(...arguments),this.toasts=[]}createRenderRoot(){return this}render(){const t=window.parent!=window;let s={pointerEvents:"none",gap:"1rem",display:"flex",margin:this.toasts.length?"1rem":"0"};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"}),I.handleExistingToastDelegation(),this.toasts?v`<div style=${Pt(s)}>
1004
- ${ii(this.toasts,r=>r.id,r=>v`
1003
+ `],Ls([a({type:String,reflect:!0})],It.prototype,"theme",2),Ls([a({type:Boolean,reflect:!0})],It.prototype,"background",2),Ls([a({type:Boolean,reflect:!0})],It.prototype,"color",2),Ls([a({type:Boolean,reflect:!0})],It.prototype,"font",2),It=Ls([C(Zl)],It);var Xl=Object.defineProperty,Ql=Object.getOwnPropertyDescriptor,Kn=(e,t,s,r)=>{for(var i=r>1?void 0:r?Ql(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Xl(t,s,i),i};const Jl="sonic-toast";let I=class extends P{constructor(){super(...arguments),this.toasts=[]}createRenderRoot(){return this}render(){const t=window.parent!=window;let s={pointerEvents:"none",gap:"1rem",display:"flex",margin:this.toasts.length?"1rem":"0"};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"}),I.handleExistingToastDelegation(),this.toasts?v`<div style=${Ct(s)}>
1004
+ ${ui(this.toasts,r=>r.id,r=>v`
1005
1005
  <sonic-toast-item
1006
1006
  maxHeight=${t?"none":"10rem"}
1007
- status=${k(r.status)}
1008
- title=${k(r.title)}
1007
+ status=${$(r.status)}
1008
+ title=${$(r.title)}
1009
1009
  ?ghost=${r.ghost}
1010
1010
  ?dismissForever=${r.dismissForever}
1011
1011
  ?preserve=${r.preserve}
1012
- id=${k(r.id)}
1012
+ id=${$(r.id)}
1013
1013
  @hide=${()=>this.removeItem(r)}
1014
- ${el({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})}
1014
+ ${ul({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})}
1015
1015
  >
1016
1016
  <!-- 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) -->
1017
- ${r.text?U(r.text):""}
1017
+ ${r.text?H(r.text):""}
1018
1018
  </sonic-toast-item>
1019
1019
  `)}
1020
- </div>`:D}static removeAll(){if(I.delegateToasts){I.handleExistingToastDelegation(),window.parent.postMessage({type:"removeAllToasts"},"*");return}const t=I.getInstance();t&&(t.toasts=t.toasts.filter(s=>s.ghost))}static removeItemsByStatus(t){if(I.delegateToasts){I.handleExistingToastDelegation(),window.parent.postMessage({type:"removeItemsByStatus",status:t},"*");return}const s=I.getInstance();s&&(s.toasts=s.toasts.filter(r=>r.status!==t))}static removeTemporaryItems(){if(I.delegateToasts){I.handleExistingToastDelegation(),window.parent.postMessage({type:"removeTemporaryItems"},"*");return}const t=I.getInstance();t&&(t.toasts=t.toasts.filter(s=>s.preserve))}static getInstance(){return I.instance||(I.instance=document.createElement("sonic-toast"),Et.getPopContainer().prepend(I.instance)),I.instance}static add(t){if(I.delegateToasts){I.handleExistingToastDelegation(),window.parent.postMessage({type:"addToast",toast:t},"*");return}const s=I.getInstance(),r=t.id??new Date().valueOf(),n=new RegExp("</a>|</.*?button>|</.*?input>|</.*?textarea>|</.*?select>").test(t.text),o={id:r,text:t.text,title:t.title,status:t.status,preserve:n?!0:t.preserve,ghost:t.ghost,dismissForever:t.dismissForever};if(t.dismissForever&&t.id){const l=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(l)[t.id])return null}if(s?.toasts.length){const l={...o};for(const c of s.toasts){const h={...c};if(l.id=h.id=0,ot.shallowEqual(l,h))return null}}return s&&(s.toasts=[...s.toasts,o]),o}static handleExistingToastDelegation(){if(!this.delegateToasts)return;const t=I.getInstance();window.parent.postMessage({type:"addToasts",toasts:t.toasts},"*"),t.toasts=[]}static removeItem(t){if(I.delegateToasts){I.handleExistingToastDelegation(),window.parent.postMessage({type:"removeToast",toast:t},"*");return}const s=I.getInstance();s&&s.removeItem(t)}removeItem(t){t&&(this.toasts=this.toasts.filter(s=>(s={...s},delete s.id,!ot.shallowEqual(s,t,!1))))}};I.delegateToasts=!1,Rn([a({type:Array})],I.prototype,"toasts",2),I=Rn([S(Vl)],I),typeof window<"u"&&(window[Fs+"Toast"]=window[Fs+"Toast"]||I);function Bl(){const e=s=>{s.data.type=="querySonicToastAvailability"&&s.source.postMessage({type:"sonicToastAvailable"},"*"),s.data.type=="removeItemsByStatus"&&I.removeItemsByStatus(s.data.status),s.data.type=="removeTemporaryItems"&&I.removeTemporaryItems(),s.data.type=="sonicToastAvailable"&&(I.delegateToasts=!0,I.handleExistingToastDelegation()),s.data.type=="addToasts"&&(I.getInstance().toasts=[...I.getInstance().toasts,...s.data.toasts]),s.data.type=="removeAllToasts"&&I.removeAll(),s.data.type=="removeToast"&&I.removeItem(s.data.toast),s.data.type=="addToast"&&I.add(s.data.toast)},t=window.parent!=window;if(window.addEventListener("message",e,!1),t&&window.parent.postMessage({type:"querySonicToastAvailability"},"*"),!t)for(const s of document.querySelectorAll("iframe"))s.contentWindow?.postMessage({type:"sonicToastAvailable"},"*")}Bl();var Hl=Object.defineProperty,ql=Object.getOwnPropertyDescriptor,Cs=(e,t,s,r)=>{for(var i=r>1?void 0:r?ql(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Hl(t,s,i),i};const Wl=new Set,Kl=new Set,Gl=e=>{for(const t of Kl)t(e)},rr=new Set;let nr=0;Si(async()=>{nr++;const e=nr,t=Array.from(rr);for(;t.length>0;){if(e!=nr)return;const s=t.splice(0,4);await Promise.all(s.map(r=>r.refetch()))}});const or=(e,t)=>{class s extends e{constructor(...i){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._isFetching=!1,this._mustRefetch=!1,this.dataProvider=""}get props(){return super.props}set props(i){super.props=i}set endPoint(i){this._endPoint=i,this.isConnected&&this._fetchData()}get endPoint(){return this._endPoint}handleStartFetching(){return this._isFetching?(this._mustRefetch=!0,"fetching"):(this._isFetching=!0,"okToFetch")}handleEndFetching(){this._isFetching=!1,this._mustRefetch&&(this._mustRefetch=!1,this._fetchData())}refetch(){return this._fetchData()}async _fetchData(){if(this.requestUpdate(),!this.isFetchEnabled||(this.api=new pe(this.getApiConfiguration()),!this.api)||(this.dispatchEvent(new CustomEvent("loading",{detail:this})),this.getAttribute("localStorage")==="enabled"&&await L.getInstance().isLocalStrorageReady,!this.isConnected))return;const i=L.getInstance().get(this.getAncestorAttributeValue("headersDataProvider")).get();if(this.isLoading=!0,ot.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}),this.handleStartFetching()==="fetching")return;let o=null;try{o=await this.api.get(this.endPoint||this.dataProvider||"",i)}catch{}if(this.handleEndFetching(),this.fetchedData=o,this.api.lastResult&&!this.api.lastResult.ok&&(this.noErrorsRecordings||Wl.add(this),Gl(this.api.lastResult)),!!this.isConnected){if(o)o._sonic_http_response_&&!o._sonic_http_response_.ok&&Object.keys(o).length===1&&I.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 l=o._sonic_http_response_,c=this.key.split(".");o=ot.traverse(o,c,this.hasAttribute("preserveOtherKeys")),o&&ot.isObject(o)&&l&&(o._sonic_http_response_=l)}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(){super.disconnectedCallback(),rr.delete(this),this.publisher?.offInvalidate(this.onInvalidate),clearTimeout(this.refetchTimeOutId),this.isFirstLoad=!1}connectedCallback(){this.lazyLoad=this.lazyLoad!==void 0?this.lazyLoad:this.hasAttribute("lazyload"),rr.add(this),super.connectedCallback(),this.isFetchEnabled&&(this.key=this.key!=""?this.key:this.getAttribute("key"),this.props&&this.publisher.set(this.props),this.onInvalidate=()=>this._fetchData(),this.publisher?.onInvalidate(this.onInvalidate),this.lazyLoad?this.handleLazyLoad():this._fetchData())}handleLazyLoad(){if(!this.lazyLoad)return;const i=parseFloat(this.getAttribute("lazyBoundsRatio")||"1"),n={root:null,rootMargin:Math.max(window.innerWidth*i,window.innerHeight*i)+"px",threshold:.9};this.iObserver=new IntersectionObserver(c=>this.onIntersection(c),n);let l=[...(this.shadowRoot?this.shadowRoot:this).children].filter(c=>c.nodeName.toLowerCase()!="style")[0];if(l?.nodeName.toLocaleLowerCase()=="slot"&&(l=[...l.children].filter(c=>c.nodeName.toLowerCase()!="style")[0]),!l||l.nodeName.toLocaleLowerCase()=="template"){l=document.createElement("div");const c=l.style;c.pointerEvents="none",c.width="1px",c.height="1px",this.lazyLoadPlaceHolder=l,this.appendChild(l)}l?this.iObserver.observe(l):this.isFirstLoad&&this._fetchData()}onIntersection(i){for(const n of i)if(n.isIntersecting&&this.isFirstLoad){this._fetchData(),this.lazyLoadPlaceHolder?.remove(),this.lazyLoadPlaceHolder=void 0,this.iObserver?.disconnect();break}}}return Cs([a()],s.prototype,"noErrorsRecordings",2),Cs([a()],s.prototype,"props",1),Cs([a({type:String})],s.prototype,"endPoint",1),Cs([a()],s.prototype,"requestId",2),Cs([a({type:Number})],s.prototype,"refetchEveryMs",2),s};var Yl=Object.defineProperty,Zl=Object.getOwnPropertyDescriptor,Me=(e,t,s,r)=>{for(var i=r>1?void 0:r?Zl(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Yl(t,s,i),i};const oi=e=>{class t extends e{constructor(...r){super(),this.forceAutoFill=!1,this._type="text",this.status="default"}validateFormElement(){const r=this.shadowRoot?.querySelector("input");if(!r||r.checkValidity())return;const i=this.getFormPublisher();i&&(i.isFormValid=!1),r.reportValidity()}set type(r){this.hasAttribute("type")&&!this.forceAutoFill&&(r=this.getAttribute("type")),this._type=r,this.requestUpdate()}get type(){return this._type}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()}}return Me([a()],t.prototype,"forceAutoFill",2),Me([a({type:String})],t.prototype,"type",1),Me([a()],t.prototype,"description",1),Me([a()],t.prototype,"label",1),Me([a({type:String,reflect:!0})],t.prototype,"status",2),Me([a({type:Number})],t.prototype,"tabindex",2),Me([a({type:String})],t.prototype,"autocomplete",2),t},Fn=or,Xl=Zi,jn=Ze,zn=oi,be=it,ar=bs;window["concorde-mixins"]=window["concorde-mixins"]||{},window["concorde-mixins"]={Fetcher:Fn,FormCheckable:Xl,FormElement:jn,FormInput:zn,Subscriber:be,TemplatesContainer:ar};/**
1020
+ </div>`:k}static removeAll(){if(I.delegateToasts){I.handleExistingToastDelegation(),window.parent.postMessage({type:"removeAllToasts"},"*");return}const t=I.getInstance();t&&(t.toasts=t.toasts.filter(s=>s.ghost))}static removeItemsByStatus(t){if(I.delegateToasts){I.handleExistingToastDelegation(),window.parent.postMessage({type:"removeItemsByStatus",status:t},"*");return}const s=I.getInstance();s&&(s.toasts=s.toasts.filter(r=>r.status!==t))}static removeTemporaryItems(){if(I.delegateToasts){I.handleExistingToastDelegation(),window.parent.postMessage({type:"removeTemporaryItems"},"*");return}const t=I.getInstance();t&&(t.toasts=t.toasts.filter(s=>s.preserve))}static getInstance(){return I.instance||(I.instance=document.createElement("sonic-toast"),It.getPopContainer().prepend(I.instance)),I.instance}static add(t){if(I.delegateToasts){I.handleExistingToastDelegation(),window.parent.postMessage({type:"addToast",toast:t},"*");return}const s=I.getInstance(),r=t.id??new Date().valueOf(),n=new RegExp("</a>|</.*?button>|</.*?input>|</.*?textarea>|</.*?select>").test(t.text),o={id:r,text:t.text,title:t.title,status:t.status,preserve:n?!0:t.preserve,ghost:t.ghost,dismissForever:t.dismissForever};if(t.dismissForever&&t.id){const l=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(l)[t.id])return null}if(s?.toasts.length){const l={...o};for(const c of s.toasts){const h={...c};if(l.id=h.id=0,dt.shallowEqual(l,h))return null}}return s&&(s.toasts=[...s.toasts,o]),o}static handleExistingToastDelegation(){if(!this.delegateToasts)return;const t=I.getInstance();window.parent.postMessage({type:"addToasts",toasts:t.toasts},"*"),t.toasts=[]}static removeItem(t){if(I.delegateToasts){I.handleExistingToastDelegation(),window.parent.postMessage({type:"removeToast",toast:t},"*");return}const s=I.getInstance();s&&s.removeItem(t)}removeItem(t){t&&(this.toasts=this.toasts.filter(s=>(s={...s},delete s.id,!dt.shallowEqual(s,t,!1))))}};I.delegateToasts=!1,Kn([a({type:Array})],I.prototype,"toasts",2),I=Kn([C(Jl)],I),typeof window<"u"&&(window[Ks+"Toast"]=window[Ks+"Toast"]||I);function tc(){const e=s=>{s.data.type=="querySonicToastAvailability"&&s.source.postMessage({type:"sonicToastAvailable"},"*"),s.data.type=="removeItemsByStatus"&&I.removeItemsByStatus(s.data.status),s.data.type=="removeTemporaryItems"&&I.removeTemporaryItems(),s.data.type=="sonicToastAvailable"&&(I.delegateToasts=!0,I.handleExistingToastDelegation()),s.data.type=="addToasts"&&(I.getInstance().toasts=[...I.getInstance().toasts,...s.data.toasts]),s.data.type=="removeAllToasts"&&I.removeAll(),s.data.type=="removeToast"&&I.removeItem(s.data.toast),s.data.type=="addToast"&&I.add(s.data.toast)},t=window.parent!=window;if(window.addEventListener("message",e,!1),t&&window.parent.postMessage({type:"querySonicToastAvailability"},"*"),!t)for(const s of document.querySelectorAll("iframe"))s.contentWindow?.postMessage({type:"sonicToastAvailable"},"*")}tc();var ec=Object.defineProperty,sc=Object.getOwnPropertyDescriptor,Ts=(e,t,s,r)=>{for(var i=r>1?void 0:r?sc(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&ec(t,s,i),i};const ic=new Set,rc=new Set,nc=e=>{for(const t of rc)t(e)},ur=new Set;let pr=0;Ti(async()=>{pr++;const e=pr,t=Array.from(ur);for(;t.length>0;){if(e!=pr)return;const s=t.splice(0,4);await Promise.all(s.map(r=>r.refetch()))}});const fr=(e,t)=>{class s extends e{constructor(...i){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._isFetching=!1,this._mustRefetch=!1,this.dataProvider=""}get props(){return super.props}set props(i){super.props=i}set endPoint(i){this._endPoint=i,this.isConnected&&this._fetchData()}get endPoint(){return this._endPoint}handleStartFetching(){return this._isFetching?(this._mustRefetch=!0,"fetching"):(this._isFetching=!0,"okToFetch")}handleEndFetching(){this._isFetching=!1,this._mustRefetch&&(this._mustRefetch=!1,this._fetchData())}refetch(){return this._fetchData()}async _fetchData(){if(this.requestUpdate(),!this.isFetchEnabled||(this.api=new Pe(this.getApiConfiguration()),!this.api)||(this.dispatchEvent(new CustomEvent("loading",{detail:this})),this.getAttribute("localStorage")==="enabled"&&await L.getInstance().isLocalStrorageReady,!this.isConnected))return;const i=L.getInstance().get(this.getAncestorAttributeValue("headersDataProvider")).get();if(this.isLoading=!0,dt.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}),this.handleStartFetching()==="fetching")return;let o=null;try{o=await this.api.get(this.endPoint||this.dataProvider||"",i)}catch{}if(this.handleEndFetching(),this.fetchedData=o,this.api.lastResult&&!this.api.lastResult.ok&&(this.noErrorsRecordings||ic.add(this),nc(this.api.lastResult)),!!this.isConnected){if(o)o._sonic_http_response_&&!o._sonic_http_response_.ok&&Object.keys(o).length===1&&I.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 l=o._sonic_http_response_,c=this.key.split(".");o=dt.traverse(o,c,this.hasAttribute("preserveOtherKeys")),o&&dt.isObject(o)&&l&&(o._sonic_http_response_=l)}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(){super.disconnectedCallback(),ur.delete(this),this.publisher?.offInvalidate(this.onInvalidate),clearTimeout(this.refetchTimeOutId),this.isFirstLoad=!1}connectedCallback(){this.lazyLoad=this.lazyLoad!==void 0?this.lazyLoad:this.hasAttribute("lazyload"),ur.add(this),super.connectedCallback(),this.isFetchEnabled&&(this.key=this.key!=""?this.key:this.getAttribute("key"),this.props&&this.publisher.set(this.props),this.onInvalidate=()=>this._fetchData(),this.publisher?.onInvalidate(this.onInvalidate),this.lazyLoad?this.handleLazyLoad():this._fetchData())}handleLazyLoad(){if(!this.lazyLoad)return;const i=parseFloat(this.getAttribute("lazyBoundsRatio")||"1"),n={root:null,rootMargin:Math.max(window.innerWidth*i,window.innerHeight*i)+"px",threshold:.9};this.iObserver=new IntersectionObserver(c=>this.onIntersection(c),n);let l=[...(this.shadowRoot?this.shadowRoot:this).children].filter(c=>c.nodeName.toLowerCase()!="style")[0];if(l?.nodeName.toLocaleLowerCase()=="slot"&&(l=[...l.children].filter(c=>c.nodeName.toLowerCase()!="style")[0]),!l||l.nodeName.toLocaleLowerCase()=="template"){l=document.createElement("div");const c=l.style;c.pointerEvents="none",c.width="1px",c.height="1px",this.lazyLoadPlaceHolder=l,this.appendChild(l)}l?this.iObserver.observe(l):this.isFirstLoad&&this._fetchData()}onIntersection(i){for(const n of i)if(n.isIntersecting&&this.isFirstLoad){this._fetchData(),this.lazyLoadPlaceHolder?.remove(),this.lazyLoadPlaceHolder=void 0,this.iObserver?.disconnect();break}}}return Ts([a()],s.prototype,"noErrorsRecordings",2),Ts([a()],s.prototype,"props",1),Ts([a({type:String})],s.prototype,"endPoint",1),Ts([a()],s.prototype,"requestId",2),Ts([a({type:Number})],s.prototype,"refetchEveryMs",2),s};var oc=Object.defineProperty,ac=Object.getOwnPropertyDescriptor,He=(e,t,s,r)=>{for(var i=r>1?void 0:r?ac(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&oc(t,s,i),i};const mi=e=>{class t extends e{constructor(...r){super(),this.forceAutoFill=!1,this._type="text",this.status="default"}validateFormElement(){const r=this.shadowRoot?.querySelector("input");if(!r||r.checkValidity())return;const i=this.getFormPublisher();i&&(i.isFormValid=!1),r.reportValidity()}set type(r){this.hasAttribute("type")&&!this.forceAutoFill&&(r=this.getAttribute("type")),this._type=r,this.requestUpdate()}get type(){return this._type}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()}}return He([a()],t.prototype,"forceAutoFill",2),He([a({type:String})],t.prototype,"type",1),He([a()],t.prototype,"description",1),He([a()],t.prototype,"label",1),He([a({type:String,reflect:!0})],t.prototype,"status",2),He([a({type:Number})],t.prototype,"tabindex",2),He([a({type:String})],t.prototype,"autocomplete",2),t},Gn=fr,lc=rr,Yn=ns,Zn=mi,$e=ct,mr=Ss;window["concorde-mixins"]=window["concorde-mixins"]||{},window["concorde-mixins"]={Fetcher:Gn,FormCheckable:lc,FormElement:Yn,FormInput:Zn,Subscriber:$e,TemplatesContainer:mr};/**
1021
1021
  * @license
1022
1022
  * Copyright 2020 Google LLC
1023
1023
  * SPDX-License-Identifier: BSD-3-Clause
1024
- */const Wt=ue(class extends Ge{constructor(e){if(super(e),e.type!==Oe.CHILD)throw Error("templateContent can only be used in child bindings")}render(e){return this.vt===e?Dt:(this.vt=e,document.importNode(e.content,!0))}});var Ql=Object.defineProperty,Jl=Object.getOwnPropertyDescriptor,Un=(e,t,s,r)=>{for(var i=r>1?void 0:r?Jl(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Ql(t,s,i),i};const tc="sonic-fetch";let ai=class extends or(it(ar(C))){renderLoader(){if(!(this.isLoading&&this.loader!==void 0))return D;const e=this.loader===!0||this.loader===""?"fixed":this.loader;return v`<sonic-loader mode=${e}></sonic-loader>`}renderSkeleton(){const e=this.templateParts.skeleton;return this.isLoading&&e?Wt(e):D}render(){return v`
1024
+ */const Xt=xe(class extends is{constructor(e){if(super(e),e.type!==je.CHILD)throw Error("templateContent can only be used in child bindings")}render(e){return this.vt===e?Lt:(this.vt=e,document.importNode(e.content,!0))}});var cc=Object.defineProperty,hc=Object.getOwnPropertyDescriptor,Xn=(e,t,s,r)=>{for(var i=r>1?void 0:r?hc(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&cc(t,s,i),i};const dc="sonic-fetch";let bi=class extends fr(ct(mr(P))){renderLoader(){if(!(this.isLoading&&this.loader!==void 0))return k;const e=this.loader===!0||this.loader===""?"fixed":this.loader;return v`<sonic-loader mode=${e}></sonic-loader>`}renderSkeleton(){const e=this.templateParts.skeleton;return this.isLoading&&e?Xt(e):k}render(){return v`
1025
1025
  ${this.renderSkeleton()} ${this.renderLoader()}
1026
- ${this.isLoading?D:v`<slot></slot>`}
1027
- `}};ai.styles=[A`
1026
+ ${this.isLoading?k:v`<slot></slot>`}
1027
+ `}};bi.styles=[S`
1028
1028
  :host {
1029
1029
  display: contents;
1030
1030
  }
1031
- `],Un([a()],ai.prototype,"loader",2),ai=Un([S(tc)],ai);var ec=Object.defineProperty,sc=Object.getOwnPropertyDescriptor,Vn=(e,t,s,r)=>{for(var i=r>1?void 0:r?sc(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&ec(t,s,i),i};const ic="sonic-if";let li=class extends C{constructor(){super(...arguments),this.condition=!1}render(){return this.condition?v` <slot></slot> `:D}};li.styles=A`
1031
+ `],Xn([a()],bi.prototype,"loader",2),bi=Xn([C(dc)],bi);var uc=Object.defineProperty,pc=Object.getOwnPropertyDescriptor,Qn=(e,t,s,r)=>{for(var i=r>1?void 0:r?pc(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&uc(t,s,i),i};const fc="sonic-if";let gi=class extends P{constructor(){super(...arguments),this.condition=!1}render(){return this.condition?v` <slot></slot> `:k}};gi.styles=S`
1032
1032
  :host {
1033
1033
  display: contents;
1034
1034
  }
1035
- `,Vn([a({type:Boolean})],li.prototype,"condition",2),li=Vn([S(ic)],li);const rc=A`
1035
+ `,Qn([a({type:Boolean})],gi.prototype,"condition",2),gi=Qn([C(fc)],gi);const mc=S`
1036
1036
  :host([align="left"]) .sonic-loader--inline {
1037
1037
  margin-left: 0;
1038
1038
  }
@@ -1099,7 +1099,7 @@
1099
1099
  transform: translate(24px, 0);
1100
1100
  }
1101
1101
  }
1102
- `,nc=A`
1102
+ `,bc=S`
1103
1103
  @keyframes sonic-loader--fixed {
1104
1104
  0% {
1105
1105
  transform: scale(0);
@@ -1152,14 +1152,14 @@
1152
1152
  height: 5rem;
1153
1153
  animation: sonic-loader--fixed 1s 0s linear infinite;
1154
1154
  }
1155
- `;var oc=Object.defineProperty,ac=Object.getOwnPropertyDescriptor,lr=(e,t,s,r)=>{for(var i=r>1?void 0:r?ac(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&oc(t,s,i),i};const lc="sonic-loader";let lt=class extends C{constructor(){super(...arguments),this.mode="fixed",this.noDelay=!1}static show(e){lt.loader||(lt.loader=document.createElement("sonic-loader"));const t=lt.loader;e||(e={}),e.mode&&t.setAttribute("mode",e.mode),e.noDelay&&t.setAttribute("noDelay",""),e.container||(e.container=Et.getPopContainer(),e.mode="fixed"),e.container.appendChild(t),lt.callCounter++}static hide(){lt.callCounter--,!(lt.callCounter>0)&&lt.loader&&lt.loader.remove()}render(){return v`<div
1155
+ `;var gc=Object.defineProperty,vc=Object.getOwnPropertyDescriptor,br=(e,t,s,r)=>{for(var i=r>1?void 0:r?vc(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&gc(t,s,i),i};const yc="sonic-loader";let pt=class extends P{constructor(){super(...arguments),this.mode="fixed",this.noDelay=!1}static show(e){pt.loader||(pt.loader=document.createElement("sonic-loader"));const t=pt.loader;e||(e={}),e.mode&&t.setAttribute("mode",e.mode),e.noDelay&&t.setAttribute("noDelay",""),e.container||(e.container=It.getPopContainer(),e.mode="fixed"),e.container.appendChild(t),pt.callCounter++}static hide(){pt.callCounter--,!(pt.callCounter>0)&&pt.loader&&pt.loader.remove()}render(){return v`<div
1156
1156
  class="sonic-loader sonic-loader--${this.mode} ${this.noDelay?"sonic-loader--nodelay":""} "
1157
1157
  >
1158
1158
  <div></div>
1159
1159
  <div></div>
1160
1160
  <div></div>
1161
1161
  <div></div>
1162
- </div>`}};lt.styles=[rc,nc,A`
1162
+ </div>`}};pt.styles=[mc,bc,S`
1163
1163
  :host {
1164
1164
  --sc-_loader-bg: var(--sc-primary, currentColor);
1165
1165
  pointer-events: none;
@@ -1187,7 +1187,7 @@
1187
1187
  opacity: 1;
1188
1188
  }
1189
1189
  }
1190
- `],lt.callCounter=0,lr([a({type:String})],lt.prototype,"mode",2),lr([a({type:Boolean})],lt.prototype,"noDelay",2),lt=lr([S(lc)],lt);var cc=Object.getOwnPropertyDescriptor,hc=(e,t,s,r)=>{for(var i=r>1?void 0:r?cc(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=o(i)||i);return i};const dc="sonic-subscriber";let Bn=class extends it(C){constructor(){super(...arguments),this.noAutofill=!0}connectedCallback(){this.noShadowDom="",super.connectedCallback()}updated(e){super.updated(e),this.children.length==0?this.style.display="none":this.style.display="contents"}render(){return v`<slot></slot> `}};Bn=hc([S(dc)],Bn);var uc=Object.defineProperty,pc=Object.getOwnPropertyDescriptor,Ut=(e,t,s,r)=>{for(var i=r>1?void 0:r?pc(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&uc(t,s,i),i};const fc="sonic-list";let Tt=class extends or(it(bs(C))){constructor(){super(...arguments),this.templateKey="template",this.idKey="id",this.limit=Number.POSITIVE_INFINITY,this.offset=0,this.loadingSize={width:0,height:0}}get items(){return this._items}set items(e){typeof e!="function"&&e!==void 0||(this._items=e,this.requestUpdate())}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 D;const t=this.loader===!0||this.loader===""?"fixed":this.loader;return v`<sonic-loader mode=${t}></sonic-loader>`}renderSkeleton(){if(this.skeleton)return this.skeleton();const e=this.templateParts.skeleton;return this.isLoading&&e?Wt(e):D}renderSeparator(){if(this.separator)return this.separator();const e=this.templateParts.separator;return e?Wt(e):D}renderLoadingState(){return v`${this.renderSkeleton()} ${this.renderLoader()} `}renderNoResultState(){return v` <div
1190
+ `],pt.callCounter=0,br([a({type:String})],pt.prototype,"mode",2),br([a({type:Boolean})],pt.prototype,"noDelay",2),pt=br([C(yc)],pt);var wc=Object.getOwnPropertyDescriptor,_c=(e,t,s,r)=>{for(var i=r>1?void 0:r?wc(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=o(i)||i);return i};const xc="sonic-subscriber";let Jn=class extends ct(P){constructor(){super(...arguments),this.noAutofill=!0}connectedCallback(){this.noShadowDom="",super.connectedCallback()}updated(e){super.updated(e),this.children.length==0?this.style.display="none":this.style.display="contents"}render(){return v`<slot></slot> `}};Jn=_c([C(xc)],Jn);var Pc=Object.defineProperty,Cc=Object.getOwnPropertyDescriptor,Kt=(e,t,s,r)=>{for(var i=r>1?void 0:r?Cc(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Pc(t,s,i),i};const Sc="sonic-list";let Rt=class extends fr(ct(Ss(P))){constructor(){super(...arguments),this.templateKey="template",this.idKey="id",this.limit=Number.POSITIVE_INFINITY,this.offset=0,this.loadingSize={width:0,height:0}}get items(){return this._items}set items(e){typeof e!="function"&&e!==void 0||(this._items=e,this.requestUpdate())}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 k;const t=this.loader===!0||this.loader===""?"fixed":this.loader;return v`<sonic-loader mode=${t}></sonic-loader>`}renderSkeleton(){if(this.skeleton)return this.skeleton();const e=this.templateParts.skeleton;return this.isLoading&&e?Xt(e):k}renderSeparator(){if(this.separator)return this.separator();const e=this.templateParts.separator;return e?Xt(e):k}renderLoadingState(){return v`${this.renderSkeleton()} ${this.renderLoader()} `}renderNoResultState(){return v` <div
1191
1191
  style="color: var(--sc-base-400);
1192
1192
  font-size: 1.5em;
1193
1193
  margin: 4rem 0;
@@ -1198,7 +1198,7 @@
1198
1198
  ><span class="sonic-no-result-text"
1199
1199
  >${typeof this.props=="string"&&this.props==""?"Aucun résultat":this.props}</span
1200
1200
  >
1201
- </div>`}formatProps(){let e=this.props;if(e==null)return null;const t=e._sonic_http_response_,s=this.hasAttribute("extractValues");return Array.isArray(e)||(s?e=Object.entries(e).map(([r,i])=>({key:r,value:i})):ot.isObject(e)&&Object.keys(e).length>0&&(!t||t.ok)?e=[e]:e=[]),e=e.filter(r=>r!=null),t&&(e._sonic_http_response_=t),e}updated(e){window.requestAnimationFrame(()=>{if(!this.isLoading){this.style.setProperty("--list-loader-height-display","none");return}this.style.setProperty("--list-loader-height-display","block"),this.loadingSize=this.getDisplayContentsSize(this)}),super.updated(e)}getAllRenderableElements(e){let t=[];function s(r){if(r.nodeType===Node.ELEMENT_NODE){const i=r.getBoundingClientRect();(i.width>0||i.height>0)&&t.push(r),r.childNodes.forEach(s),r.shadowRoot&&r.shadowRoot.childNodes.forEach(s)}}return s(e),t}getDisplayContentsSize(e){const t=this.getAllRenderableElements(e);if(t.length===0)return{width:0,height:0};const s=t.map(l=>l.getBoundingClientRect()),r=Math.min(...s.map(l=>l.left)),i=Math.max(...s.map(l=>l.right)),n=Math.min(...s.map(l=>l.top)),o=Math.max(...s.map(l=>l.bottom));return{width:i-r,height:o-n}}render(){return v`
1201
+ </div>`}formatProps(){let e=this.props;if(e==null)return null;const t=e._sonic_http_response_,s=this.hasAttribute("extractValues");return Array.isArray(e)||(s?e=Object.entries(e).map(([r,i])=>({key:r,value:i})):dt.isObject(e)&&Object.keys(e).length>0&&(!t||t.ok)?e=[e]:e=[]),e=e.filter(r=>r!=null),t&&(e._sonic_http_response_=t),e}updated(e){window.requestAnimationFrame(()=>{if(!this.isLoading){this.style.setProperty("--list-loader-height-display","none");return}this.style.setProperty("--list-loader-height-display","block"),this.loadingSize=this.getDisplayContentsSize(this)}),super.updated(e)}getAllRenderableElements(e){let t=[];function s(r){if(r.nodeType===Node.ELEMENT_NODE){const i=r.getBoundingClientRect();(i.width>0||i.height>0)&&t.push(r),r.childNodes.forEach(s),r.shadowRoot&&r.shadowRoot.childNodes.forEach(s)}}return s(e),t}getDisplayContentsSize(e){const t=this.getAllRenderableElements(e);if(t.length===0)return{width:0,height:0};const s=t.map(l=>l.getBoundingClientRect()),r=Math.min(...s.map(l=>l.left)),i=Math.max(...s.map(l=>l.right)),n=Math.min(...s.map(l=>l.top)),o=Math.max(...s.map(l=>l.bottom));return{width:i-r,height:o-n}}render(){return v`
1202
1202
  ${this.renderContent()}
1203
1203
  <div
1204
1204
  style="grid-column: 1 / -1;min-height:${this.isLoading?0:this.loadingSize.height}px; width:0;float:left;display: var(--list-loader-height-display);"
@@ -1210,24 +1210,24 @@
1210
1210
  dataProvider="${this.dataProvider}/list-item/${s}"
1211
1211
  >
1212
1212
  ${this.items(e,t)}
1213
- </sonic-subscriber>`:null}renderContent(){if(this.isLoading&&!Array.isArray(this.props))return this.renderLoadingState();if(typeof this.props=="string")return this.renderNoResultState();if(!ot.isObject(this.props))return v`<div></div>`;const r=this.formatProps();if((r?.length||0)==0){if(this.noItems)return this.noItems();if(this.templateParts["no-items"]=this.templateParts["no-items"]||this.templateParts["no-item"],this.templateParts["no-items"])return Wt(this.templateParts["no-items"])}const i=this.templateList.length;let n=-1;const o=this.hasAttribute("extractValues"),l=this.renderSeparator(),c=r?.length||0,h=r?.slice(this.offset,this.offset+this.limit);return v`
1214
- ${h?.map((u,d)=>{if(u==null)return D;let p=d,y=null;if(typeof u=="object"&&!Array.isArray(u)){o&&(p=u?.key);const m=u[this.templateKey];m&&typeof m=="string"&&(y=this.templateParts[m])}if(p=="_sonic_http_response_"||typeof p!="string"&&typeof p!="number")return D;const g=d>=c-1,b=d%2,w=this.publisher[p],E={key:p,even:b==0,odd:b==1,onlyChild:c==1,firstChild:d==0,lastChild:g};w._key_=p+"",w._metadata_={...w._metadata_.get(),...E};const f=this.handleProgrammaticTemplates(u,E,p);return f?v`${f}${g?D:l}`:(n++,y&&(n=-1),v`
1213
+ </sonic-subscriber>`:null}renderContent(){if(this.isLoading&&!Array.isArray(this.props))return this.renderLoadingState();if(typeof this.props=="string")return this.renderNoResultState();if(!dt.isObject(this.props))return v`<div></div>`;const r=this.formatProps();if((r?.length||0)==0){if(this.noItems)return this.noItems();if(this.templateParts["no-items"]=this.templateParts["no-items"]||this.templateParts["no-item"],this.templateParts["no-items"])return Xt(this.templateParts["no-items"])}const i=this.templateList.length;let n=-1;const o=this.hasAttribute("extractValues"),l=this.renderSeparator(),c=r?.length||0,h=r?.slice(this.offset,this.offset+this.limit);return v`
1214
+ ${h?.map((u,d)=>{if(u==null)return k;let p=d,y=null;if(typeof u=="object"&&!Array.isArray(u)){o&&(p=u?.key);const b=u[this.templateKey];b&&typeof b=="string"&&(y=this.templateParts[b])}if(p=="_sonic_http_response_"||typeof p!="string"&&typeof p!="number")return k;const g=d>=c-1,m=d%2,w=this.publisher[p],D={key:p,even:m==0,odd:m==1,onlyChild:c==1,firstChild:d==0,lastChild:g};w._key_=p+"",w._metadata_={...w._metadata_.get(),...D};const f=this.handleProgrammaticTemplates(u,D,p);return f?v`${f}${g?k:l}`:(n++,y&&(n=-1),v`
1215
1215
  <sonic-subscriber
1216
1216
  ?debug=${this.defferedDebug===!0}
1217
1217
  .bindPublisher=${function(){return w}}
1218
1218
  .propertyMap?=${this.itemPropertyMap}
1219
1219
  dataProvider="${this.dataProvider}/list-item/${p}"
1220
1220
  >
1221
- ${Wt(y||this.templateList[n%i])}
1221
+ ${Xt(y||this.templateList[n%i])}
1222
1222
  </sonic-subscriber>
1223
- ${g?D:l}
1223
+ ${g?k:l}
1224
1224
  `)})}
1225
- `}};Ut([a({type:Object})],Tt.prototype,"itemPropertyMap",2),Ut([a({type:String})],Tt.prototype,"templateKey",2),Ut([a({type:String})],Tt.prototype,"idKey",2),Ut([a()],Tt.prototype,"loader",2),Ut([a()],Tt.prototype,"limit",2),Ut([a()],Tt.prototype,"offset",2),Ut([a({type:Function,attribute:!1})],Tt.prototype,"items",1),Ut([a({type:Function,attribute:!1})],Tt.prototype,"noItems",2),Ut([a({type:Function,attribute:!1})],Tt.prototype,"skeleton",2),Ut([a({type:Function,attribute:!1})],Tt.prototype,"separator",2),Tt=Ut([S(fc)],Tt);/**
1225
+ `}};Kt([a({type:Object})],Rt.prototype,"itemPropertyMap",2),Kt([a({type:String})],Rt.prototype,"templateKey",2),Kt([a({type:String})],Rt.prototype,"idKey",2),Kt([a()],Rt.prototype,"loader",2),Kt([a()],Rt.prototype,"limit",2),Kt([a()],Rt.prototype,"offset",2),Kt([a({type:Function,attribute:!1})],Rt.prototype,"items",1),Kt([a({type:Function,attribute:!1})],Rt.prototype,"noItems",2),Kt([a({type:Function,attribute:!1})],Rt.prototype,"skeleton",2),Kt([a({type:Function,attribute:!1})],Rt.prototype,"separator",2),Rt=Kt([C(Sc)],Rt);/**
1226
1226
  * @license
1227
1227
  * Copyright 2021 Google LLC
1228
1228
  * SPDX-License-Identifier: BSD-3-Clause
1229
- */function*Hn(e,t){if(e!==void 0){let s=0;for(const r of e)yield t(r,s++)}}var mc=Object.defineProperty,bc=Object.getOwnPropertyDescriptor,ct=(e,t,s,r)=>{for(var i=r>1?void 0:r?bc(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&mc(t,s,i),i};const gc="sonic-queue";let et=class extends it(C){constructor(){super(...arguments),this.templates=null,this.items=null,this.noItems=null,this.skeleton=null,this.lastRequestTime=0,this.key="",this.itemPropertyMap=null,this.cache="default",this.targetRequestDuration=500,this.limit=5,this.lazyBoundsRatio=1,this.offset=0,this.resultCount=0,this.noLazyload=!1,this.loader="inline",this.filteredFields="",this.instanceId=0,this.localStorage="disabled",this.filterPublisher=null,this.filterTimeoutMs=400,this.searchHash="",this.requestId=0,this.isFirstRequest=!0,this.updateFilteredContent=()=>{const t=this.dataProviderExpression.split("?");t.shift();const s=new URLSearchParams(t.join("?")),r=this.filterPublisher?.get(),i=this.filteredFields.split(" ");for(const o in r){let l=r[o];Array.isArray(l)&&(l=l.filter(c=>c!==null)),!(this.filteredFields&&i.includes(o)||l==null||l.toString()==="")&&s.set(o,r[o].toString())}const n=s.toString();if(!(n==this.searchHash&&!this.isFirstRequest)){this.searchHash=n,Ra(this.resolveScrollRoot(),{x:0,y:0});for(const o of this.listDataProviders)L.getInstance().delete(o);this.listDataProviders=[],clearTimeout(this.filterTimeoutId),this.filterTimeoutId=setTimeout(async()=>{const o=this.resultCount;this.props=null,this.requestId++,this.resultCount=o,await L.getInstance().isLocalStrorageReady,window.requestAnimationFrame(()=>this.next())},this.isFirstRequest?0:this.filterTimeoutMs),this.isFirstRequest=!1}},this.scrollRoot=null,this.scrollSyncActive=!1,this.mutationObserver=null,this.restoreGeneration=0,this.dataProviderExpression="",this.invalidateOnPageShow=!1,this.idKey="id",this.listDataProviders=[],this.nextHadEvent=!1}disconnectedCallback(){for(const e of this.listDataProviders)L.getInstance().delete(e),this.listDataProviders=[];this.filterPublisher?.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.teardownScrollSync(),this.publisher.set({}),super.disconnectedCallback()}async connectedCallback(){this.instanceId=et.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=se.getAncestorAttributeValue(this.parentElement,"dataProvider")||""),this.ensureScrollSync(),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(){const e=this.getAncestorAttributeValue("dataFilterProvider");if(!e){this.next();return}this.filterPublisher=L.getInstance().get(e),this.filterPublisher?.onInternalMutation(this.updateFilteredContent)}resolveScrollRoot(){const e=se.getScrollingAncestor(this);return!e||e===document.documentElement||e===document.body?window:e}isSafari(){return ee()}ensureScrollSync(){if(!ee()||!this.isConnected)return;const e=this.resolveScrollRoot();this.scrollRoot=e,Le(e),!this.scrollSyncActive&&(this.scrollSyncActive=!0,this.mutationObserver=new MutationObserver(()=>{this.scheduleRestoreAfterChildren()}),this.mutationObserver.observe(this,{childList:!0,subtree:!0,characterData:!0}))}teardownScrollSync(){this.restoreGeneration++,this.mutationObserver?.disconnect(),this.mutationObserver=null,this.scrollSyncActive=!1,this.scrollRoot=null}scheduleRestoreAfterChildren(){if(!ee()||!this.isConnected)return;const e=++this.restoreGeneration;(async()=>{if(await this.updateComplete,e!==this.restoreGeneration||!this.isConnected)return;const t=Array.from(this.querySelectorAll("sonic-list"));if(t.length&&await Promise.all(t.map(r=>r.updateComplete)),e!==this.restoreGeneration||!this.isConnected||(await new Promise(r=>requestAnimationFrame(()=>r())),await new Promise(r=>requestAnimationFrame(()=>r())),e!==this.restoreGeneration||!this.isConnected))return;const s=this.scrollRoot??this.resolveScrollRoot();Le(s),Hi(s)})()}updated(e){if(ee()){this.ensureScrollSync();const t=this.scrollRoot??this.resolveScrollRoot();Hi(t),this.scheduleRestoreAfterChildren()}super.updated(e)}resetDuration(){this.lastRequestTime=new Date().getTime()}next(e){let t=this.offset;const r=new Date().getTime()-this.lastRequestTime;if(!this.nextHadEvent&&e&&(this.publisher.resultCount=0,this.resultCount=0),this.nextHadEvent=!!e,e){if(this.publisher.lastFetchedData=e.detail.fetchedData,e.detail.requestId<this.requestId)return;if(this.resultCount+=e.detail.props?.length||0,!e.detail.isFirstLoad||!e.detail.props?.length||this.dataProviderExpression.indexOf("$offset")==-1){this.publisher.resultCount=this.resultCount;return}}if(Array.isArray(this.props)){const d=this.props,p=d[d.length-1];t=parseInt(p.offset.toString())+parseInt(p.limit.toString())}else{const d=[];d.resultCount=this.resultCount,d.lastFetchedData=e?.detail.fetchedData||{},this.props=d}r>0&&e&&!this.localStorage&&(this.limit=Math.round(this.limit/r*this.targetRequestDuration)),this.limit<1&&(this.limit=1),this.limit>15&&(this.limit=15);let i=this.dataProviderExpression.replace("$offset",t+"").replace("$limit",this.limit+"");const n=i.split("?");let o=n.shift();const l=new URLSearchParams(n.join("?")),c=this.filterPublisher?.get(),h=this.filteredFields.split(" ");for(const d in c)this.filteredFields&&h.includes(d)||c[d]==null||c[d]==""||l.set(d,c[d]);this.searchHash||(this.searchHash=l.toString()),o=o+"?"+l.toString(),i=i+"_item_from_queue_"+this.instanceId,this.listDataProviders.push(i);const u=[...this.props,{id:l.toString()+"/"+this.props.length,dataProvider:i,endPoint:o,offset:t,limit:this.limit}];u.resultCount=this.resultCount,u.lastFetchedData=e?.detail.fetchedData||{},this.props=u,this.lastRequestTime=new Date().getTime()}render(){if(this.isSafari()&&(this.scrollRoot=this.resolveScrollRoot(),this.ensureScrollSync()),!Array.isArray(this.props))return D;let e=!this.noLazyload;return this.props.length==1&&(e=!1),this.style.display="block",v`
1230
- ${Hn(this.props,(t,s)=>{const r=s==0?this.templates:this.templates?.filter(i=>i.getAttribute("data-value")!="no-item");return v`
1229
+ */function*to(e,t){if(e!==void 0){let s=0;for(const r of e)yield t(r,s++)}}var $c=Object.defineProperty,Ac=Object.getOwnPropertyDescriptor,ft=(e,t,s,r)=>{for(var i=r>1?void 0:r?Ac(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&$c(t,s,i),i};const kc="sonic-queue";let at=class extends ct(P){constructor(){super(...arguments),this.templates=null,this.items=null,this.noItems=null,this.skeleton=null,this.lastRequestTime=0,this.key="",this.itemPropertyMap=null,this.cache="default",this.targetRequestDuration=500,this.limit=5,this.lazyBoundsRatio=1,this.offset=0,this.resultCount=0,this.noLazyload=!1,this.loader="inline",this.filteredFields="",this.instanceId=0,this.localStorage="disabled",this.filterPublisher=null,this.filterTimeoutMs=400,this.searchHash="",this.requestId=0,this.isFirstRequest=!0,this.updateFilteredContent=()=>{const t=this.dataProviderExpression.split("?");t.shift();const s=new URLSearchParams(t.join("?")),r=this.filterPublisher?.get(),i=this.filteredFields.split(" ");for(const o in r){let l=r[o];Array.isArray(l)&&(l=l.filter(c=>c!==null)),!(this.filteredFields&&i.includes(o)||l==null||l.toString()==="")&&s.set(o,r[o].toString())}const n=s.toString();if(!(n==this.searchHash&&!this.isFirstRequest)){this.searchHash=n,Ga(this.resolveScrollRoot(),{x:0,y:0});for(const o of this.listDataProviders)L.getInstance().delete(o);this.listDataProviders=[],clearTimeout(this.filterTimeoutId),this.filterTimeoutId=setTimeout(async()=>{const o=this.resultCount;this.props=null,this.requestId++,this.resultCount=o,await L.getInstance().isLocalStrorageReady,window.requestAnimationFrame(()=>this.next())},this.isFirstRequest?0:this.filterTimeoutMs),this.isFirstRequest=!1}},this.scrollRoot=null,this.scrollSyncActive=!1,this.mutationObserver=null,this.restoreGeneration=0,this.dataProviderExpression="",this.invalidateOnPageShow=!1,this.idKey="id",this.listDataProviders=[],this.nextHadEvent=!1}disconnectedCallback(){for(const e of this.listDataProviders)L.getInstance().delete(e),this.listDataProviders=[];this.filterPublisher?.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.teardownScrollSync(),this.publisher.set({}),super.disconnectedCallback()}async connectedCallback(){this.instanceId=at.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=he.getAncestorAttributeValue(this.parentElement,"dataProvider")||""),this.ensureScrollSync(),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(){const e=this.getAncestorAttributeValue("dataFilterProvider");if(!e){this.next();return}this.filterPublisher=L.getInstance().get(e),this.filterPublisher?.onInternalMutation(this.updateFilteredContent)}resolveScrollRoot(){const e=he.getScrollingAncestor(this);return!e||e===document.documentElement||e===document.body?window:e}isSafari(){return ce()}ensureScrollSync(){if(!ce()||!this.isConnected)return;const e=this.resolveScrollRoot();this.scrollRoot=e,Ue(e),!this.scrollSyncActive&&(this.scrollSyncActive=!0,this.mutationObserver=new MutationObserver(()=>{this.scheduleRestoreAfterChildren()}),this.mutationObserver.observe(this,{childList:!0,subtree:!0,characterData:!0}))}teardownScrollSync(){this.restoreGeneration++,this.mutationObserver?.disconnect(),this.mutationObserver=null,this.scrollSyncActive=!1,this.scrollRoot=null}scheduleRestoreAfterChildren(){if(!ce()||!this.isConnected)return;const e=++this.restoreGeneration;(async()=>{if(await this.updateComplete,e!==this.restoreGeneration||!this.isConnected)return;const t=Array.from(this.querySelectorAll("sonic-list"));if(t.length&&await Promise.all(t.map(r=>r.updateComplete)),e!==this.restoreGeneration||!this.isConnected||(await new Promise(r=>requestAnimationFrame(()=>r())),await new Promise(r=>requestAnimationFrame(()=>r())),e!==this.restoreGeneration||!this.isConnected))return;const s=this.scrollRoot??this.resolveScrollRoot();Ue(s),Qi(s)})()}updated(e){if(ce()){this.ensureScrollSync();const t=this.scrollRoot??this.resolveScrollRoot();Qi(t),this.scheduleRestoreAfterChildren()}super.updated(e)}resetDuration(){this.lastRequestTime=new Date().getTime()}next(e){let t=this.offset;const r=new Date().getTime()-this.lastRequestTime;if(!this.nextHadEvent&&e&&(this.publisher.resultCount=0,this.resultCount=0),this.nextHadEvent=!!e,e){if(this.publisher.lastFetchedData=e.detail.fetchedData,e.detail.requestId<this.requestId)return;if(this.resultCount+=e.detail.props?.length||0,!e.detail.isFirstLoad||!e.detail.props?.length||this.dataProviderExpression.indexOf("$offset")==-1){this.publisher.resultCount=this.resultCount;return}}if(Array.isArray(this.props)){const d=this.props,p=d[d.length-1];t=parseInt(p.offset.toString())+parseInt(p.limit.toString())}else{const d=[];d.resultCount=this.resultCount,d.lastFetchedData=e?.detail.fetchedData||{},this.props=d}r>0&&e&&!this.localStorage&&(this.limit=Math.round(this.limit/r*this.targetRequestDuration)),this.limit<1&&(this.limit=1),this.limit>15&&(this.limit=15);let i=this.dataProviderExpression.replace("$offset",t+"").replace("$limit",this.limit+"");const n=i.split("?");let o=n.shift();const l=new URLSearchParams(n.join("?")),c=this.filterPublisher?.get(),h=this.filteredFields.split(" ");for(const d in c)this.filteredFields&&h.includes(d)||c[d]==null||c[d]==""||l.set(d,c[d]);this.searchHash||(this.searchHash=l.toString()),o=o+"?"+l.toString(),i=i+"_item_from_queue_"+this.instanceId,this.listDataProviders.push(i);const u=[...this.props,{id:l.toString()+"/"+this.props.length,dataProvider:i,endPoint:o,offset:t,limit:this.limit}];u.resultCount=this.resultCount,u.lastFetchedData=e?.detail.fetchedData||{},this.props=u,this.lastRequestTime=new Date().getTime()}render(){if(this.isSafari()&&(this.scrollRoot=this.resolveScrollRoot(),this.ensureScrollSync()),!Array.isArray(this.props))return k;let e=!this.noLazyload;return this.props.length==1&&(e=!1),this.style.display="block",v`
1230
+ ${to(this.props,(t,s)=>{const r=s==0?this.templates:this.templates?.filter(i=>i.getAttribute("data-value")!="no-item");return v`
1231
1231
  <sonic-list
1232
1232
  fetch
1233
1233
  loader="${this.loader}"
@@ -1253,36 +1253,36 @@
1253
1253
  >
1254
1254
  </sonic-list>
1255
1255
  `})}
1256
- `}};et.instanceCounter=0,ct([a({type:Array})],et.prototype,"templates",2),ct([a({type:Function,attribute:!1})],et.prototype,"items",2),ct([a({type:Function,attribute:!1})],et.prototype,"noItems",2),ct([a({type:Function,attribute:!1})],et.prototype,"skeleton",2),ct([a({type:Object})],et.prototype,"itemPropertyMap",2),ct([a()],et.prototype,"cache",2),ct([a()],et.prototype,"targetRequestDuration",2),ct([a()],et.prototype,"limit",2),ct([a()],et.prototype,"lazyBoundsRatio",2),ct([a()],et.prototype,"offset",2),ct([a()],et.prototype,"resultCount",2),ct([a({type:Boolean})],et.prototype,"noLazyload",2),ct([a({type:String})],et.prototype,"loader",2),ct([a()],et.prototype,"filteredFields",2),ct([a({type:String})],et.prototype,"dataProviderExpression",2),ct([a({type:Boolean})],et.prototype,"invalidateOnPageShow",2),ct([a({type:String})],et.prototype,"idKey",2),et=ct([S(gc)],et);var vc=Object.defineProperty,yc=Object.getOwnPropertyDescriptor,ts=(e,t,s,r)=>{for(var i=r>1?void 0:r?yc(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&vc(t,s,i),i};const wc="sonic-submit";let ge=class extends it(C){constructor(){super(...arguments),this.submitResultKey=null,this.disabled=!1,this.endPoint=null,this.name="",this.value="",this.api=null,this.clickTimeStamp=0,this.submit=async e=>{if(this.disabled||e instanceof KeyboardEvent&&e.key!=="Enter")return;e instanceof MouseEvent&&e.stopPropagation();const t=L.getInstance().get(this.getAncestorAttributeValue("formDataProvider"));if(t.isFormValid.set(!0),t.invalidateForm(),!t.isFormValid.get())return;if(this.disabled=!0,lt.show(),t.isFormValid,this.hasAttribute("native")){this.submitNativeForm(),lt.hide(),this.disabled=!1;return}const r=this.getAttribute("method")?.toLocaleLowerCase()||"post",i=this.hasAttribute("sendAsFormData"),n=t.get();delete n.isFormValid;const o=this.getAncestorAttributeValue("headersDataProvider"),l=o?L.getInstance().get(o):null;let c={};l&&(c=l.get());let h=null;const u=this.getAncestorAttributeValue("dataProvider"),d=this.endPoint||u,p=async()=>{const g={...n};if(delete g.needsCaptchaValidation,delete c.needsCaptchaValidation,i)h=await this.api?.submitFormData(d,g,r,c);else switch(r){case"put":h=await this.api?.put(d,g,c);break;case"patch":h=await this.api?.patch(d,g,c);break;case"delete":h=await this.api?.delete(d,g,c);break;case"get":const m=new URLSearchParams;if(g)for(const x in g)m.append(x,g[x]);const _="?"+m.toString();h=await this.api?.get(d+_,c);break;default:h=await this.api?.post(d,g,c);break}lt.hide(),h?h._sonic_http_response_&&!h._sonic_http_response_.ok&&Object.keys(h).length===1&&(h.messages=[{content:"Network Error",status:"error"}]):h={messages:[{content:"Network Error",status:"error"}]};const b=this.getAncestorAttributeValue("clearedDataOnSuccess");b&&b.split(" ").forEach(m=>L.get(m).set({}));const w=this.hasAttribute("usernameKey")?this.getAttribute("usernameKey"):"username",E=this.hasAttribute("passwordKey")?this.getAttribute("passwordKey"):"password";this.api?.lastResult?.ok&&g[w]&&g[E]&&this.saveCredentials(g[w],g[E]),this.submitResultKey&&(h=ot.traverse(h,this.submitResultKey.split("."),!0));const f=this.getAncestorAttributeValue("submitResultDataProvider");f&&L.get(f).set(h),this.disabled=!1,this.dispatchEvent(new CustomEvent("submit",{detail:h,bubbles:!0,composed:!0}))},y=l?.needsCaptchaValidation.get()?l:t.needsCaptchaValidation.get()?t:null;if(y){y.captchaToken.set("request_token");const g=b=>{b!="request_token"?(p(),y.captchaToken.offAssign(g)):(lt.hide(),this.disabled=!1)};y.captchaToken.onAssign(g)}else p()}}connectedCallback(){this.hasAttribute("onClick")&&this.addEventListener("click",this.submit),this.hasAttribute("onEnterKey")&&this.addEventListener("keydown",this.submit),super.connectedCallback(),this.api=new pe(this.getApiConfiguration())}submitNativeForm(){const e=se.getClosestForm(this);if(!e)return;const t=this.getAncestorAttributeValue("formDataProvider"),s={...L.get(t).get()};delete s.needsCaptchaValidation;for(const i in s){if(i=="isFormValid")continue;let n=e.querySelector('input[name="'+i+'"], select[name="'+i+'"], textarea[name="'+i+'"]');n||(n=document.createElement("input"),n.type="hidden",n.name=i,e.appendChild(n));let o=s[i];Array.isArray(o)&&(o=o.join(",")),n.type==="checkbox"||n.type==="radio"?o&&(n.checked=!0):n.value=o}const r=document.createElement("input");r.name=this.name,r.style.display="none",r.value=this.value,r.type="submit",e.appendChild(r),r&&r.click()}async saveCredentials(e,t){if("PasswordCredential"in window){const s=new window.PasswordCredential({id:e,password:t});await navigator.credentials.store(s)}}render(){return v`<div ?data-disabled=${this.disabled}><slot></slot></div>`}};ge.styles=A`
1256
+ `}};at.instanceCounter=0,ft([a({type:Array})],at.prototype,"templates",2),ft([a({type:Function,attribute:!1})],at.prototype,"items",2),ft([a({type:Function,attribute:!1})],at.prototype,"noItems",2),ft([a({type:Function,attribute:!1})],at.prototype,"skeleton",2),ft([a({type:Object})],at.prototype,"itemPropertyMap",2),ft([a()],at.prototype,"cache",2),ft([a()],at.prototype,"targetRequestDuration",2),ft([a()],at.prototype,"limit",2),ft([a()],at.prototype,"lazyBoundsRatio",2),ft([a()],at.prototype,"offset",2),ft([a()],at.prototype,"resultCount",2),ft([a({type:Boolean})],at.prototype,"noLazyload",2),ft([a({type:String})],at.prototype,"loader",2),ft([a()],at.prototype,"filteredFields",2),ft([a({type:String})],at.prototype,"dataProviderExpression",2),ft([a({type:Boolean})],at.prototype,"invalidateOnPageShow",2),ft([a({type:String})],at.prototype,"idKey",2),at=ft([C(kc)],at);var Dc=Object.defineProperty,Oc=Object.getOwnPropertyDescriptor,cs=(e,t,s,r)=>{for(var i=r>1?void 0:r?Oc(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Dc(t,s,i),i};const Ec="sonic-submit";let Ae=class extends ct(P){constructor(){super(...arguments),this.submitResultKey=null,this.disabled=!1,this.endPoint=null,this.name="",this.value="",this.api=null,this.clickTimeStamp=0,this.submit=async e=>{if(this.disabled||e instanceof KeyboardEvent&&e.key!=="Enter")return;e instanceof MouseEvent&&e.stopPropagation();const t=L.getInstance().get(this.getAncestorAttributeValue("formDataProvider"));if(t.isFormValid.set(!0),t.invalidateForm(),!t.isFormValid.get())return;if(this.disabled=!0,pt.show(),t.isFormValid,this.hasAttribute("native")){this.submitNativeForm(),pt.hide(),this.disabled=!1;return}const r=this.getAttribute("method")?.toLocaleLowerCase()||"post",i=this.hasAttribute("sendAsFormData"),n=t.get();delete n.isFormValid;const o=this.getAncestorAttributeValue("headersDataProvider"),l=o?L.getInstance().get(o):null;let c={};l&&(c=l.get());let h=null;const u=this.getAncestorAttributeValue("dataProvider"),d=this.endPoint||u,p=async()=>{const g={...n};if(delete g.needsCaptchaValidation,delete c.needsCaptchaValidation,i)h=await this.api?.submitFormData(d,g,r,c);else switch(r){case"put":h=await this.api?.put(d,g,c);break;case"patch":h=await this.api?.patch(d,g,c);break;case"delete":h=await this.api?.delete(d,g,c);break;case"get":const b=new URLSearchParams;if(g)for(const A in g)b.append(A,g[A]);const _="?"+b.toString();h=await this.api?.get(d+_,c);break;default:h=await this.api?.post(d,g,c);break}pt.hide(),h?h._sonic_http_response_&&!h._sonic_http_response_.ok&&Object.keys(h).length===1&&(h.messages=[{content:"Network Error",status:"error"}]):h={messages:[{content:"Network Error",status:"error"}]};const m=this.getAncestorAttributeValue("clearedDataOnSuccess");m&&m.split(" ").forEach(b=>L.get(b).set({}));const w=this.hasAttribute("usernameKey")?this.getAttribute("usernameKey"):"username",D=this.hasAttribute("passwordKey")?this.getAttribute("passwordKey"):"password";this.api?.lastResult?.ok&&g[w]&&g[D]&&this.saveCredentials(g[w],g[D]),this.submitResultKey&&(h=dt.traverse(h,this.submitResultKey.split("."),!0));const f=this.getAncestorAttributeValue("submitResultDataProvider");f&&L.get(f).set(h),this.disabled=!1,this.dispatchEvent(new CustomEvent("submit",{detail:h,bubbles:!0,composed:!0}))},y=l?.needsCaptchaValidation.get()?l:t.needsCaptchaValidation.get()?t:null;if(y){y.captchaToken.set("request_token");const g=m=>{m!="request_token"?(p(),y.captchaToken.offAssign(g)):(pt.hide(),this.disabled=!1)};y.captchaToken.onAssign(g)}else p()}}connectedCallback(){this.hasAttribute("onClick")&&this.addEventListener("click",this.submit),this.hasAttribute("onEnterKey")&&this.addEventListener("keydown",this.submit),super.connectedCallback(),this.api=new Pe(this.getApiConfiguration())}submitNativeForm(){const e=he.getClosestForm(this);if(!e)return;const t=this.getAncestorAttributeValue("formDataProvider"),s={...L.get(t).get()};delete s.needsCaptchaValidation;for(const i in s){if(i=="isFormValid")continue;let n=e.querySelector('input[name="'+i+'"], select[name="'+i+'"], textarea[name="'+i+'"]');n||(n=document.createElement("input"),n.type="hidden",n.name=i,e.appendChild(n));let o=s[i];Array.isArray(o)&&(o=o.join(",")),n.type==="checkbox"||n.type==="radio"?o&&(n.checked=!0):n.value=o}const r=document.createElement("input");r.name=this.name,r.style.display="none",r.value=this.value,r.type="submit",e.appendChild(r),r&&r.click()}async saveCredentials(e,t){if("PasswordCredential"in window){const s=new window.PasswordCredential({id:e,password:t});await navigator.credentials.store(s)}}render(){return v`<div ?data-disabled=${this.disabled}><slot></slot></div>`}};Ae.styles=S`
1257
1257
  [data-disabled] {
1258
1258
  opacity: 0.3;
1259
1259
  pointer-events: none;
1260
1260
  user-select: none;
1261
1261
  }
1262
- `,ts([a({type:String})],ge.prototype,"submitResultKey",2),ts([a({type:Boolean})],ge.prototype,"disabled",2),ts([a({type:String})],ge.prototype,"endPoint",2),ts([a()],ge.prototype,"name",2),ts([a()],ge.prototype,"value",2),ge=ts([S(wc)],ge);var _c=Object.defineProperty,xc=Object.getOwnPropertyDescriptor,Ss=(e,t,s,r)=>{for(var i=r>1?void 0:r?xc(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&_c(t,s,i),i};const Pc="sonic-router";let es=class extends bs(C){constructor(){super(...arguments),this.templateValueAttribute="data-route",this._location=document.location.href.replace(document.location.origin,"")}createRenderRoot(){return this}connectedCallback(){at.onChange(this),super.connectedCallback()}disconnectedCallback(){at.offChange(this),super.disconnectedCallback()}set location(e){this._location=e,this.requestUpdate()}get location(){return this._location}get cleanLocation(){const e=new URL(this.location,document.location.origin);return e.pathname+e.hash}get patternBasePath(){return this.basePath!==void 0?this.basePath:"(/)*"}get regExpBasePath(){return this.basePath!==void 0?"^"+this.basePath:""}handleroutes(){if(!this.routes)return[];const e=[];for(let[t,s]of Object.entries(this.routes)){if(t==="fallback"||!s)continue;const r=new RegExp(this.regExpBasePath+t);if(r.test(this.cleanLocation)){const i=r.exec(this.cleanLocation)||[t];i.shift(),e.push(s([...i]))}else try{const n=new te(this.patternBasePath+t).match(this.cleanLocation);if(n){const o=n||{};e.push(s(o))}}catch{this.cleanLocation.indexOf((this.basePath||"")+t.replace(document.location.origin,""))!=-1&&e.push(s({}))}}return e.length==0&&this.routes?.fallback&&this.isConnected&&e.push(this.routes.fallback()),e}render(){const e=this.handleroutes();if(e.length>0)return v`${e}`;const t=[];for(const s of this.templatePartsList){const r=s.getAttribute(this.templateValueAttribute)||"";if(new RegExp(this.regExpBasePath+r).test(this.cleanLocation))t.push(s);else try{new te(this.patternBasePath+r+"(/*)").match(this.cleanLocation)&&(s.setAttribute("mode","patternMatching"),t.push(s))}catch{this.cleanLocation.indexOf((this.basePath||"")+r.replace(document.location.origin,""))!=-1&&t.push(s)}}if(t.length==0){this.fallBackRoute&&this.isConnected&&(document.location.href=this.fallBackRoute);const s=this.templateList.find(r=>r.hasAttribute("data-fallback"));s&&t.push(s)}return v`${ii(t,(s,r)=>r+new Date().getTime(),s=>{if(s.title&&(document.title=s.title),s.hasAttribute("dataProviderExpression")){let r="";const i=s.getAttribute("dataProviderExpression")||"";if(s.getAttribute("mode")=="patternMatching"){const n=new te("(/)*"+(s.getAttribute(this.templateValueAttribute)||"")+"*");r=new te(i).stringify(n.match(this.cleanLocation))}else{const n=new RegExp(s.getAttribute(this.templateValueAttribute)||""),o=(this.cleanLocation+"").match(n);o&&(r=o.shift()?.replace(n,i)||"")}return v`<div
1262
+ `,cs([a({type:String})],Ae.prototype,"submitResultKey",2),cs([a({type:Boolean})],Ae.prototype,"disabled",2),cs([a({type:String})],Ae.prototype,"endPoint",2),cs([a()],Ae.prototype,"name",2),cs([a()],Ae.prototype,"value",2),Ae=cs([C(Ec)],Ae);var Lc=Object.defineProperty,Tc=Object.getOwnPropertyDescriptor,Is=(e,t,s,r)=>{for(var i=r>1?void 0:r?Tc(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Lc(t,s,i),i};const Ic="sonic-router";let hs=class extends Ss(P){constructor(){super(...arguments),this.templateValueAttribute="data-route",this._location=document.location.href.replace(document.location.origin,"")}createRenderRoot(){return this}connectedCallback(){ut.onChange(this),super.connectedCallback()}disconnectedCallback(){ut.offChange(this),super.disconnectedCallback()}set location(e){this._location=e,this.requestUpdate()}get location(){return this._location}get cleanLocation(){const e=new URL(this.location,document.location.origin);return e.pathname+e.hash}get patternBasePath(){return this.basePath!==void 0?this.basePath:"(/)*"}get regExpBasePath(){return this.basePath!==void 0?"^"+this.basePath:""}handleroutes(){if(!this.routes)return[];const e=[];for(let[t,s]of Object.entries(this.routes)){if(t==="fallback"||!s)continue;const r=new RegExp(this.regExpBasePath+t);if(r.test(this.cleanLocation)){const i=r.exec(this.cleanLocation)||[t];i.shift(),e.push(s([...i]))}else try{const n=new le(this.patternBasePath+t).match(this.cleanLocation);if(n){const o=n||{};e.push(s(o))}}catch{this.cleanLocation.indexOf((this.basePath||"")+t.replace(document.location.origin,""))!=-1&&e.push(s({}))}}return e.length==0&&this.routes?.fallback&&this.isConnected&&e.push(this.routes.fallback()),e}render(){const e=this.handleroutes();if(e.length>0)return v`${e}`;const t=[];for(const s of this.templatePartsList){const r=s.getAttribute(this.templateValueAttribute)||"";if(new RegExp(this.regExpBasePath+r).test(this.cleanLocation))t.push(s);else try{new le(this.patternBasePath+r+"(/*)").match(this.cleanLocation)&&(s.setAttribute("mode","patternMatching"),t.push(s))}catch{this.cleanLocation.indexOf((this.basePath||"")+r.replace(document.location.origin,""))!=-1&&t.push(s)}}if(t.length==0){this.fallBackRoute&&this.isConnected&&(document.location.href=this.fallBackRoute);const s=this.templateList.find(r=>r.hasAttribute("data-fallback"));s&&t.push(s)}return v`${ui(t,(s,r)=>r+new Date().getTime(),s=>{if(s.title&&(document.title=s.title),s.hasAttribute("dataProviderExpression")){let r="";const i=s.getAttribute("dataProviderExpression")||"";if(s.getAttribute("mode")=="patternMatching"){const n=new le("(/)*"+(s.getAttribute(this.templateValueAttribute)||"")+"*");r=new le(i).stringify(n.match(this.cleanLocation))}else{const n=new RegExp(s.getAttribute(this.templateValueAttribute)||""),o=(this.cleanLocation+"").match(n);o&&(r=o.shift()?.replace(n,i)||"")}return v`<div
1263
1263
  style="display:contents"
1264
1264
  dataProvider="${r}"
1265
1265
  >
1266
- ${Wt(s)}
1267
- </div>`}return Wt(s)})}`}};Ss([a({type:String})],es.prototype,"fallBackRoute",2),Ss([a({type:Object,attribute:!1})],es.prototype,"routes",2),Ss([a({type:String})],es.prototype,"basePath",2),Ss([a()],es.prototype,"location",1),es=Ss([S(Pc)],es);var Cc=Object.getOwnPropertyDescriptor,Sc=(e,t,s,r)=>{for(var i=r>1?void 0:r?Cc(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=o(i)||i);return i};const $c="sonic-redirect";let qn=class extends it(C){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")){at.changeFromComponent(this);return}if(!this.props)return;const e=this.getAttribute("onData").split("."),t=ot.traverse(this.props,e);t&&!(ot.isObject(t)&&t)&&at.changeFromComponent(this)}};qn=Sc([S($c)],qn);var Ac=Object.defineProperty,kc=Object.getOwnPropertyDescriptor,ci=(e,t,s,r)=>{for(var i=r>1?void 0:r?kc(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Ac(t,s,i),i};const Dc="sonic-states";let $s=class extends it(bs(C)){constructor(){super(...arguments),this.state="",this.inverted=!1,this.statePath="",this.onStateAssign=e=>{this.state=e,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 e=this.statePath.split(".");for(const t of e)this.statePublisher=this.statePublisher[t];this.statePublisher.onAssign(this.onStateAssign)}}disconnectedCallback(){this.statePath&&this.statePublisher?.offAssign(this.onStateAssign),super.disconnectedCallback()}handleStates(e){if(!this.states)return[];const t=[];for(const[s,r]of Object.entries(this.states)){if(s==="fallback"||!r)continue;const i=new RegExp(s);if(i.test(e)){const n=i.exec(e)||[s];n.shift(),t.push(r([...n]))}else try{const n=new te("(/)*"+s+"*");if(n.match(e)){const o=n.match(e)||{};t.push(r(o))}}catch{e.indexOf(s.replace(document.location.origin,""))!=-1&&t.push(r({}))}}return t.length==0&&this.states?.fallback&&this.isConnected&&t.push(this.states.fallback()),t}render(){let e=this.state;(!Array.isArray(e)&&ot.isObject(e)||e===void 0)&&(e="");const t=this.handleStates(e);if(t.length>0)return v`${t}`;const s=[];for(const r of this.templatePartsList){let i=r.getAttribute(this.templateValueAttribute),n=e;if(this.inverted&&(n=i,i=e),i==""&&(i=this.inverted?".*?":"^$"),new RegExp(i).test(n+""))s.push(r),r.removeAttribute("mode");else{const l=new te(i);l.names.length>0&&l.match(n)&&(r.setAttribute("mode","patternMatching"),s.push(r))}}return v`${ii(s,(r,i)=>i+new Date().getTime(),r=>{if(r?.hasAttribute("dataProviderExpression")){const i=r.getAttribute("dataProviderExpression");let n="",o=e,l=r.getAttribute(this.templateValueAttribute);if(this.inverted&&(o=l,l=e),l==""&&(l=this.inverted?"*":"^$"),r.getAttribute("mode")=="patternMatching"){const c=new te(l);n=new te(i).stringify(c.match(o))}else{const c=new RegExp(l),h=(o+"").match(c);h&&(n=h.shift()?.replace(c,i))}return v`<div
1266
+ ${Xt(s)}
1267
+ </div>`}return Xt(s)})}`}};Is([a({type:String})],hs.prototype,"fallBackRoute",2),Is([a({type:Object,attribute:!1})],hs.prototype,"routes",2),Is([a({type:String})],hs.prototype,"basePath",2),Is([a()],hs.prototype,"location",1),hs=Is([C(Ic)],hs);var Mc=Object.getOwnPropertyDescriptor,Nc=(e,t,s,r)=>{for(var i=r>1?void 0:r?Mc(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=o(i)||i);return i};const Rc="sonic-redirect";let eo=class extends ct(P){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")){ut.changeFromComponent(this);return}if(!this.props)return;const e=this.getAttribute("onData").split("."),t=dt.traverse(this.props,e);t&&!(dt.isObject(t)&&t)&&ut.changeFromComponent(this)}};eo=Nc([C(Rc)],eo);var Fc=Object.defineProperty,jc=Object.getOwnPropertyDescriptor,vi=(e,t,s,r)=>{for(var i=r>1?void 0:r?jc(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Fc(t,s,i),i};const zc="sonic-states";let Ms=class extends ct(Ss(P)){constructor(){super(...arguments),this.state="",this.inverted=!1,this.statePath="",this.onStateAssign=e=>{this.state=e,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 e=this.statePath.split(".");for(const t of e)this.statePublisher=this.statePublisher[t];this.statePublisher.onAssign(this.onStateAssign)}}disconnectedCallback(){this.statePath&&this.statePublisher?.offAssign(this.onStateAssign),super.disconnectedCallback()}handleStates(e){if(!this.states)return[];const t=[];for(const[s,r]of Object.entries(this.states)){if(s==="fallback"||!r)continue;const i=new RegExp(s);if(i.test(e)){const n=i.exec(e)||[s];n.shift(),t.push(r([...n]))}else try{const n=new le("(/)*"+s+"*");if(n.match(e)){const o=n.match(e)||{};t.push(r(o))}}catch{e.indexOf(s.replace(document.location.origin,""))!=-1&&t.push(r({}))}}return t.length==0&&this.states?.fallback&&this.isConnected&&t.push(this.states.fallback()),t}render(){let e=this.state;(!Array.isArray(e)&&dt.isObject(e)||e===void 0)&&(e="");const t=this.handleStates(e);if(t.length>0)return v`${t}`;const s=[];for(const r of this.templatePartsList){let i=r.getAttribute(this.templateValueAttribute),n=e;if(this.inverted&&(n=i,i=e),i==""&&(i=this.inverted?".*?":"^$"),new RegExp(i).test(n+""))s.push(r),r.removeAttribute("mode");else{const l=new le(i);l.names.length>0&&l.match(n)&&(r.setAttribute("mode","patternMatching"),s.push(r))}}return v`${ui(s,(r,i)=>i+new Date().getTime(),r=>{if(r?.hasAttribute("dataProviderExpression")){const i=r.getAttribute("dataProviderExpression");let n="",o=e,l=r.getAttribute(this.templateValueAttribute);if(this.inverted&&(o=l,l=e),l==""&&(l=this.inverted?"*":"^$"),r.getAttribute("mode")=="patternMatching"){const c=new le(l);n=new le(i).stringify(c.match(o))}else{const c=new RegExp(l),h=(o+"").match(c);h&&(n=h.shift()?.replace(c,i))}return v`<div
1268
1268
  style="display:contents"
1269
1269
  dataProvider="${n}"
1270
1270
  >
1271
- ${Wt(r)}
1272
- </div>`}return Wt(r)})}`}};ci([a()],$s.prototype,"state",2),ci([a({type:Boolean,reflect:!0})],$s.prototype,"inverted",2),ci([a({type:Object})],$s.prototype,"states",2),$s=ci([S(Dc)],$s);var Oc=Object.getOwnPropertyDescriptor,Ec=(e,t,s,r)=>{for(var i=r>1?void 0:r?Oc(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=o(i)||i);return i};const Lc="sonic-scope";let Wn=class extends C{createRenderRoot(){return this}render(){return v`<slot></slot>`}};Wn=Ec([S(Lc)],Wn);function Kn(e){return e instanceof HTMLElement||e instanceof ShadowRoot?e:null}function Gn(e){if(!e||typeof e.get!="function")return null;const t=e.get();return!t||typeof t!="object"||!("serviceURL"in t)?null:t}function cr(e){const t=Kn(e);return t?Y.getApiConfiguration(t):null}function hr(e){return typeof e?.serviceURL=="string"&&e.serviceURL.length>0}const Tc=["serviceURL","serviceurl","token","credentials","tokenProvider","tokenprovider","userName","username","password","eventsApiToken","eventsapitoken"];function Ic(e){return e instanceof HTMLElement&&typeof e.updateComplete<"u"}function Yn(e){let t=null;return()=>{t===null&&(t=requestAnimationFrame(()=>{t=null,e()}))}}function Zn(e,t){if(Ic(e)){let s=!1;return e.updateComplete.then(()=>{s||t()}),()=>{s=!0}}return t(),()=>{}}function Xn(e,t){const s=Kn(e);if(!s)return()=>{};let r=!1;const i=()=>{r||hr(cr(e))&&(r=!0,t())};if(i(),r)return()=>{};const n=[],o=requestAnimationFrame(()=>i());n.push(()=>cancelAnimationFrame(o)),queueMicrotask(()=>i());const l=new MutationObserver(()=>i());let c=s;for(;c;)c instanceof Element&&l.observe(c,{attributes:!0,attributeFilter:[...Tc]}),c=c.parentNode||c.host;return n.push(()=>l.disconnect()),()=>{r=!0,n.forEach(h=>h())}}class Qn{constructor(){this.bindings=new WeakMap}bind(t,s){const r={component:t,run:s};let i=this.bindings.get(t);return i||(i=new Set,this.bindings.set(t,i)),i.add(r),()=>{const n=this.bindings.get(t);n&&(n.delete(r),n.size===0&&this.bindings.delete(t))}}run(t){this.bindings.get(t)?.forEach(({run:s})=>s())}}function Mc(e){return e!==null&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"}function Jn(e,t){const s=t?.when??"after";return(r,i,n)=>{const o=n.value;if(!o)return;const l=function(...c){if(s==="before")return e(this),o.apply(this,c);const h=o.apply(this,c);return Mc(h)?h.then(u=>(e(this),u)):(e(this),h)};n.value=l}}function Nc(e,t){return Jn(s=>e.refetch(s),t)}function Rc(e,t){return Jn(s=>e.send(s),t)}function hi(e){e.configPublisher&&e.configMutationHandler&&e.configPublisher.offInternalMutation(e.configMutationHandler),e.configPublisher=null,e.configMutationHandler=null}function to(e,t,s){const r=e.path,i=eo(t)?void 0:t,n=eo(t)?t:s,o={skipEmptyPlaceholder:n?.skipEmptyPlaceholder},l=i?.path,c=n?.triggerKey?.path,h=Lt(r),u=l?Lt(l):[],d=c?Lt(c):[],p=[...new Set([...h,...u,...d])],y=h.length>0,g=!!l,b=n?.refetchEveryMs??0,w=new Qn,E=function(f,m){if(!f)return;Te(f);const _=`__get_state_${m}`;f.__onConnected__(x=>{const O=x;let P=O[_];P||(P={cleanupWatchers:[],cleanupOperation:null,requestGeneration:0,configPublisher:null,configMutationHandler:null,scopeWatchCleanup:null,triggerPublisher:null,triggerInvalidateHandler:null,refetchTimeoutId:null,refetchEveryMs:b},O[_]=P),P.cleanupOperation?.(),P.cleanupOperation=null,P.cleanupWatchers.forEach(V=>V()),P.cleanupWatchers=[],P.requestGeneration++,P.refetchEveryMs=b,ss(P);const F=()=>{ss(P),!(!P.refetchEveryMs||P.refetchEveryMs<=0)&&(P.refetchTimeoutId=setTimeout(()=>{P.refetchTimeoutId=null,Z()},P.refetchEveryMs))},Z=()=>{const V=y?$t(x,r,o):{ready:!0,path:r};if(!V.ready||!V.path){O[m]=void 0,F();return}let $=null;if(g&&l){const wt=$t(x,l,o);if(!wt.ready||!wt.path){O[m]=void 0,F();return}const Pi=jt(wt.path);$=Gn(Pi)}else $=cr(x);if(!hr($)){if(!g&&!P.scopeWatchCleanup){const wt=Xn(x,Z);P.scopeWatchCleanup=wt,P.cleanupWatchers.push(()=>{wt(),P.scopeWatchCleanup=null})}F();return}const ft=++P.requestGeneration;new pe($).getDetailed(V.path).then(wt=>{ft===P.requestGeneration&&(O[m]=wt,F())})},ut=Yn(Z);P.cleanupOperation=w.bind(x,ut);const Vt=()=>{if(di(P),!c)return;const V=$t(x,c,o);if(!V.ready||!V.path)return;const $=jt(V.path);if(!$)return;const ft=()=>ut();$.onInvalidate(ft),P.triggerPublisher=$,P.triggerInvalidateHandler=ft},Ns=()=>{if(!g||!l)return;hi(P);const V=$t(x,l,o);if(!V.ready||!V.path){O[m]=void 0;return}const $=jt(V.path);if(!$){O[m]=void 0;return}const ft=()=>ut();$.onInternalMutation(ft),P.configPublisher=$,P.configMutationHandler=ft},pt=()=>{Vt(),Ns(),g||ut()};if(g||d.length){for(const V of p){const $=fe(me.watcherStore,me.hooked,x,V,()=>pt());P.cleanupWatchers.push($)}pt()}else{const V=()=>{if(y)for(const $ of h){const ft=fe(me.watcherStore,me.hooked,x,$,()=>ut());P.cleanupWatchers.push(ft)}Vt(),Z()};P.cleanupWatchers.push(Zn(x,V))}}),f.__onDisconnected__(x=>{const O=x,P=O[_];P&&(P.cleanupOperation?.(),P.cleanupOperation=null,hi(P),di(P),ss(P),P.cleanupWatchers.forEach(F=>F()),P.cleanupWatchers=[],P.requestGeneration++,O[m]=void 0)})};return E.refetch=f=>{w.run(f)},E}function eo(e){return!e||typeof e!="object"?!1:"skipEmptyPlaceholder"in e||"refetchEveryMs"in e||"triggerKey"in e}function so(e){return!e||typeof e!="object"?!1:"refetchEveryMs"in e||"skipIfBodyMissing"in e||"autoPostOnBodyMutation"in e||"skipEmptyPlaceholder"in e||"triggerKey"in e}function io(e){e.bodyPublisher&&e.bodyMutationHandler&&e.bodyPublisher.offInternalMutation(e.bodyMutationHandler),e.bodyPublisher=null,e.bodyMutationHandler=null}function di(e){e.triggerPublisher&&e.triggerInvalidateHandler&&e.triggerPublisher.offInvalidate(e.triggerInvalidateHandler),e.triggerPublisher=null,e.triggerInvalidateHandler=null}function ss(e){e.refetchTimeoutId&&(clearTimeout(e.refetchTimeoutId),e.refetchTimeoutId=null)}function Fc(e){if(!(!e||typeof e.get!="function"))return e.get()}function dr(e,t){return function(s,r,i,n){const o=s.path,l=r.path,c=so(i)?void 0:i,h=so(i)?i:n,u=c?.path,d=h?.triggerKey?.path,p=Lt(o),y=Lt(l),g=u?Lt(u):[],b=d?Lt(d):[],w=[...new Set([...p,...y,...g,...b])],E=p.length>0,f=!!u,m=h?.refetchEveryMs??0,_=h?.skipIfBodyMissing??!0,x=h?.autoPostOnBodyMutation??!0,O={skipEmptyPlaceholder:h?.skipEmptyPlaceholder},P=`__${e.toLowerCase()}_state_`,F=new Qn,Z=function(ut,Vt){if(!ut)return;Te(ut);const Ns=`${P}${Vt}`;ut.__onConnected__(pt=>{const V=pt;let $=V[Ns];$||($={cleanupWatchers:[],cleanupOperation:null,requestGeneration:0,configPublisher:null,configMutationHandler:null,scopeWatchCleanup:null,bodyPublisher:null,bodyMutationHandler:null,triggerPublisher:null,triggerInvalidateHandler:null,refetchTimeoutId:null,refetchEveryMs:m,skipIfBodyMissing:_,autoPostOnBodyMutation:x},V[Ns]=$),$.cleanupOperation?.(),$.cleanupOperation=null,$.cleanupWatchers.forEach(st=>st()),$.cleanupWatchers=[],$.requestGeneration++,$.refetchEveryMs=m,$.skipIfBodyMissing=_,$.autoPostOnBodyMutation=x,ss($);const ft=()=>{ss($),!(!$.refetchEveryMs||$.refetchEveryMs<=0)&&($.refetchTimeoutId=setTimeout(()=>{$.refetchTimeoutId=null,xi()},$.refetchEveryMs))},xi=()=>{const st=E?$t(pt,o,O):{ready:!0,path:o};if(!st.ready||!st.path){V[Vt]=void 0,ft();return}const nt=$t(pt,l,O);if(!nt.ready||!nt.path){V[Vt]=void 0,ft();return}const Ft=jt(nt.path),Mr=Fc(Ft);if($.skipIfBodyMissing&&Mr==null){ft();return}let Ci=null;if(f&&u){const Se=$t(pt,u,O);if(!Se.ready||!Se.path){V[Vt]=void 0,ft();return}const np=jt(Se.path);Ci=Gn(np)}else Ci=cr(pt);if(!hr(Ci)){if(!f&&!$.scopeWatchCleanup){const Se=Xn(pt,xi);$.scopeWatchCleanup=Se,$.cleanupWatchers.push(()=>{Se(),$.scopeWatchCleanup=null})}ft();return}const ip=++$.requestGeneration,rp=new pe(Ci);t(rp,st.path,Mr).then(Se=>{ip===$.requestGeneration&&(V[Vt]=Se,ft())})},wt=Yn(xi);$.cleanupOperation=F.bind(pt,wt);const Pi=()=>{if(io($),!$.autoPostOnBodyMutation)return;const st=$t(pt,l,O);if(!st.ready||!st.path)return;const nt=jt(st.path);if(!nt)return;const Ft=()=>wt();nt.onInternalMutation(Ft),$.bodyPublisher=nt,$.bodyMutationHandler=Ft},xo=()=>{if(di($),!d)return;const st=$t(pt,d,O);if(!st.ready||!st.path)return;const nt=jt(st.path);if(!nt)return;const Ft=()=>wt();nt.onInvalidate(Ft),$.triggerPublisher=nt,$.triggerInvalidateHandler=Ft},sp=()=>{if(!f||!u)return;hi($);const st=$t(pt,u,O);if(!st.ready||!st.path){V[Vt]=void 0;return}const nt=jt(st.path);if(!nt){V[Vt]=void 0;return}const Ft=()=>wt();nt.onInternalMutation(Ft),$.configPublisher=nt,$.configMutationHandler=Ft},Po=()=>{Pi(),xo(),sp(),$.autoPostOnBodyMutation&&wt()};if(f||y.length||b.length){for(const st of w){const nt=fe(me.watcherStore,me.hooked,pt,st,()=>Po());$.cleanupWatchers.push(nt)}Po()}else{const st=()=>{if(E)for(const nt of p){const Ft=fe(me.watcherStore,me.hooked,pt,nt,()=>wt());$.cleanupWatchers.push(Ft)}Pi(),xo(),$.autoPostOnBodyMutation&&wt()};$.cleanupWatchers.push(Zn(pt,st))}}),ut.__onDisconnected__(pt=>{const V=pt,$=V[Ns];$&&($.cleanupOperation?.(),$.cleanupOperation=null,hi($),io($),di($),ss($),$.cleanupWatchers.forEach(ft=>ft()),$.cleanupWatchers=[],$.requestGeneration++,V[Vt]=void 0)})};return Z.send=ut=>{F.run(ut)},Z}}function jc(e,t,s,r){return dr("POST",(i,n,o)=>i.postDetailed(n,o))(e,t,s,r)}function zc(e,t,s,r){return dr("PUT",(i,n,o)=>i.putDetailed(n,o))(e,t,s,r)}function Uc(e,t,s,r){return dr("PATCH",(i,n,o)=>i.patchDetailed(n,o))(e,t,s,r)}const Vc=Ln,Bc=Tn,Hc=to;window["concorde-decorator-subscriber"]=window["concorde-decorator-subscriber"]||{},window["concorde-decorator-subscriber"]={bind:En,publish:Ln,subscribe:Tn,onAssing:wl,handle:xl,ancestorAttribute:sr,autoSubscribe:Pl,autoFill:Cl,get:to,post:jc,put:zc,patch:Uc,refetch:Nc,send:Rc};var qc=Object.defineProperty,Wc=Object.getOwnPropertyDescriptor,ui=(e,t,s,r)=>{for(var i=r>1?void 0:r?Wc(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&qc(t,s,i),i};const ro=new Js("communes?limit=$limit&fields=nom,code"),no=new as(ro.path),Kc="sonic-example";let As=class extends C{constructor(){super(...arguments),this.limit=5}render(){return v` <span part="api-get-demo">
1271
+ ${Xt(r)}
1272
+ </div>`}return Xt(r)})}`}};vi([a()],Ms.prototype,"state",2),vi([a({type:Boolean,reflect:!0})],Ms.prototype,"inverted",2),vi([a({type:Object})],Ms.prototype,"states",2),Ms=vi([C(zc)],Ms);var Uc=Object.getOwnPropertyDescriptor,Vc=(e,t,s,r)=>{for(var i=r>1?void 0:r?Uc(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=o(i)||i);return i};const Bc="sonic-scope";let so=class extends P{createRenderRoot(){return this}render(){return v`<slot></slot>`}};so=Vc([C(Bc)],so);function io(e){return e instanceof HTMLElement||e instanceof ShadowRoot?e:null}function ro(e){if(!e||typeof e.get!="function")return null;const t=e.get();return!t||typeof t!="object"||!("serviceURL"in t)?null:t}function gr(e){const t=io(e);return t?Q.getApiConfiguration(t):null}function vr(e){return typeof e?.serviceURL=="string"&&e.serviceURL.length>0}const Hc=["serviceURL","serviceurl","token","credentials","tokenProvider","tokenprovider","userName","username","password","eventsApiToken","eventsapitoken"];function qc(e){return e instanceof HTMLElement&&typeof e.updateComplete<"u"}function no(e){let t=null,s=[];return()=>{const r=new Promise((i,n)=>{s.push({resolve:i,reject:n})});return t!==null||(t=requestAnimationFrame(()=>{t=null;const i=s;s=[],e().then(n=>i.forEach(({resolve:o})=>o(n)),n=>i.forEach(({reject:o})=>o(n)))})),r}}function oo(e,t){if(qc(e)){let s=!1;return e.updateComplete.then(()=>{s||t()}),()=>{s=!0}}return t(),()=>{}}function ao(e,t){const s=io(e);if(!s)return()=>{};let r=!1;const i=()=>{r||vr(gr(e))&&(r=!0,t())};if(i(),r)return()=>{};const n=[],o=requestAnimationFrame(()=>i());n.push(()=>cancelAnimationFrame(o)),queueMicrotask(()=>i());const l=new MutationObserver(()=>i());let c=s;for(;c;)c instanceof Element&&l.observe(c,{attributes:!0,attributeFilter:[...Hc]}),c=c.parentNode||c.host;return n.push(()=>l.disconnect()),()=>{r=!0,n.forEach(h=>h())}}class lo{constructor(){this.bindings=new WeakMap}bind(t,s){const r={run:s};let i=this.bindings.get(t);return i||(i=new Set,this.bindings.set(t,i)),i.add(r),()=>{const n=this.bindings.get(t);n&&(n.delete(r),n.size===0&&this.bindings.delete(t))}}run(t){const s=[...this.bindings.get(t)??[]].map(({run:r})=>r());return s.length===0?Promise.resolve(void 0):s.length===1?s[0]:Promise.all(s).then(()=>{})}}let co=0;function Wc(e){return e!==null&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"}function ho(e,t){const s=t?.when??"after";return(r,i,n)=>{const o=n.value;if(!o)return;const l=function(...c){if(s==="before")return e(this).then(()=>o.apply(this,c));const h=o.apply(this,c);return Wc(h)?h.then(u=>e(this).then(()=>u)):e(this).then(()=>h)};n.value=l}}function Kc(e,t){return ho(s=>e.refetch(s),t)}function Gc(e,t){return ho(s=>e.send(s),t)}function yi(e){e.configPublisher&&e.configMutationHandler&&e.configPublisher.offInternalMutation(e.configMutationHandler),e.configPublisher=null,e.configMutationHandler=null}function uo(e,t,s){const r=e.path,i=po(t)?void 0:t,n=po(t)?t:s,o={skipEmptyPlaceholder:n?.skipEmptyPlaceholder},l=i?.path,c=n?.triggerKey?.path,h=Nt(r),u=l?Nt(l):[],d=c?Nt(c):[],p=[...new Set([...h,...u,...d])],y=h.length>0,g=!!l,m=n?.refetchEveryMs??0,w=new lo,D=new WeakMap,f=new WeakSet,b=new WeakMap;let _;const A=function(x,M,F){if(F){const Z=F.value;if(!Z)return;A.registerResultHandler(x,(Ot,E)=>Z.call(Ot,E));return}if(!x)return;if(f.has(x)){b.get(x)?.add(M);return}f.add(x),b.set(x,new Set([M])),Ve(x);const X=`__get_state_${M}`;x.__onConnected__(Z=>{const Ot=Z;let E=Ot[X];E||(E={cleanupWatchers:[],cleanupOperation:null,requestGeneration:0,configPublisher:null,configMutationHandler:null,scopeWatchCleanup:null,triggerPublisher:null,triggerInvalidateHandler:null,refetchTimeoutId:null,refetchEveryMs:m},Ot[X]=E),E.cleanupOperation?.(),E.cleanupOperation=null,E.cleanupWatchers.forEach(B=>B()),E.cleanupWatchers=[],E.requestGeneration++,E.refetchEveryMs=m,ds(E);const Et=()=>{ds(E),!(!E.refetchEveryMs||E.refetchEveryMs<=0)&&(E.refetchTimeoutId=setTimeout(()=>{E.refetchTimeoutId=null,be().catch(()=>{})},E.refetchEveryMs))},J=B=>{b.get(x)?.forEach(tt=>{Ot[tt]=B})},be=async()=>{const B=y?At(Z,r,o):{ready:!0,path:r};if(!B.ready||!B.path){J(void 0),Et();return}let tt=null;if(g&&l){const Mt=At(Z,l,o);if(!Mt.ready||!Mt.path){J(void 0),Et();return}const Ei=qt(Mt.path);tt=ro(Ei)}else tt=gr(Z);if(!vr(tt)){if(!g&&!E.scopeWatchCleanup){const Mt=ao(Z,ge);E.scopeWatchCleanup=Mt,E.cleanupWatchers.push(()=>{Mt(),E.scopeWatchCleanup=null})}Et();return}const Vt=++E.requestGeneration,Bt=await new Pe(tt).getDetailed(B.path);return Vt!==E.requestGeneration||(b.get(x)?.forEach(Mt=>{Ot[Mt]=Bt}),Et(),D.get(x)?.forEach(Mt=>Mt(Z,Bt))),Bt},ne=no(be),ge=()=>{ne().catch(()=>{})};E.cleanupOperation=w.bind(Z,ne);const st=()=>{if(wi(E),!c)return;const B=At(Z,c,o);if(!B.ready||!B.path)return;const tt=qt(B.path);if(!tt)return;const Vt=ge;tt.onInvalidate(Vt),E.triggerPublisher=tt,E.triggerInvalidateHandler=Vt},oe=()=>{if(!g||!l)return;yi(E);const B=At(Z,l,o);if(!B.ready||!B.path){J(void 0);return}const tt=qt(B.path);if(!tt){J(void 0);return}const Vt=ge;tt.onInternalMutation(Vt),E.configPublisher=tt,E.configMutationHandler=Vt},O=()=>{st(),oe(),g||ge()};if(g||d.length){for(const B of p){const tt=Ce(Se.watcherStore,Se.hooked,Z,B,()=>O());E.cleanupWatchers.push(tt)}O()}else{const B=()=>{if(y)for(const tt of h){const Vt=Ce(Se.watcherStore,Se.hooked,Z,tt,ge);E.cleanupWatchers.push(Vt)}st(),be().catch(()=>{})};E.cleanupWatchers.push(oo(Z,B))}}),x.__onDisconnected__(Z=>{const Ot=Z,E=Ot[X];E&&(E.cleanupOperation?.(),E.cleanupOperation=null,yi(E),wi(E),ds(E),E.cleanupWatchers.forEach(Et=>Et()),E.cleanupWatchers=[],E.requestGeneration++,b.get(x)?.forEach(Et=>{Ot[Et]=void 0}))})};return A.refetch=x=>w.run(x),A.registerResultHandler=(x,M)=>{let F=D.get(x);F||(F=new Set,D.set(x,F)),F.add(M),f.has(x)||(_??=`__get_handler_${co++}`,A(x,_))},A}function po(e){return!e||typeof e!="object"?!1:"skipEmptyPlaceholder"in e||"refetchEveryMs"in e||"triggerKey"in e}function fo(e){return!e||typeof e!="object"?!1:"refetchEveryMs"in e||"skipIfBodyMissing"in e||"autoPostOnBodyMutation"in e||"skipEmptyPlaceholder"in e||"triggerKey"in e}function mo(e){e.bodyPublisher&&e.bodyMutationHandler&&e.bodyPublisher.offInternalMutation(e.bodyMutationHandler),e.bodyPublisher=null,e.bodyMutationHandler=null}function wi(e){e.triggerPublisher&&e.triggerInvalidateHandler&&e.triggerPublisher.offInvalidate(e.triggerInvalidateHandler),e.triggerPublisher=null,e.triggerInvalidateHandler=null}function ds(e){e.refetchTimeoutId&&(clearTimeout(e.refetchTimeoutId),e.refetchTimeoutId=null)}function Yc(e){if(!(!e||typeof e.get!="function"))return e.get()}function yr(e,t){return function(s,r,i,n){const o=s.path,l=r.path,c=fo(i)?void 0:i,h=fo(i)?i:n,u=c?.path,d=h?.triggerKey?.path,p=Nt(o),y=Nt(l),g=u?Nt(u):[],m=d?Nt(d):[],w=[...new Set([...p,...y,...g,...m])],D=p.length>0,f=!!u,b=h?.refetchEveryMs??0,_=h?.skipIfBodyMissing??!0,A=h?.autoPostOnBodyMutation??!0,x={skipEmptyPlaceholder:h?.skipEmptyPlaceholder},M=`__${e.toLowerCase()}_state_`,F=new lo,X=new WeakMap,Z=new WeakSet,Ot=new WeakMap;let E;const Et=function(J,be,ne){if(ne){const st=ne.value;if(!st)return;Et.registerResultHandler(J,(oe,O)=>st.call(oe,O));return}if(!J)return;if(Z.has(J)){Ot.get(J)?.add(be);return}Z.add(J),Ot.set(J,new Set([be])),Ve(J);const ge=`${M}${be}`;J.__onConnected__(st=>{const oe=st;let O=oe[ge];O||(O={cleanupWatchers:[],cleanupOperation:null,requestGeneration:0,configPublisher:null,configMutationHandler:null,scopeWatchCleanup:null,bodyPublisher:null,bodyMutationHandler:null,triggerPublisher:null,triggerInvalidateHandler:null,refetchTimeoutId:null,refetchEveryMs:b,skipIfBodyMissing:_,autoPostOnBodyMutation:A},oe[ge]=O),O.cleanupOperation?.(),O.cleanupOperation=null,O.cleanupWatchers.forEach(it=>it()),O.cleanupWatchers=[],O.requestGeneration++,O.refetchEveryMs=b,O.skipIfBodyMissing=_,O.autoPostOnBodyMutation=A,ds(O);const B=()=>{ds(O),!(!O.refetchEveryMs||O.refetchEveryMs<=0)&&(O.refetchTimeoutId=setTimeout(()=>{O.refetchTimeoutId=null,Vt().catch(()=>{})},O.refetchEveryMs))},tt=it=>{Ot.get(J)?.forEach(lt=>{oe[lt]=it})},Vt=async()=>{const it=D?At(st,o,x):{ready:!0,path:o};if(!it.ready||!it.path){tt(void 0),B();return}const lt=At(st,l,x);if(!lt.ready||!lt.path){tt(void 0),B();return}const Ht=qt(lt.path),Hr=Yc(Ht);if(O.skipIfBodyMissing&&Hr==null){B();return}let Li=null;if(f&&u){const ae=At(st,u,x);if(!ae.ready||!ae.path){tt(void 0),B();return}const qr=qt(ae.path);Li=ro(qr)}else Li=gr(st);if(!vr(Li)){if(!f&&!O.scopeWatchCleanup){const ae=ao(st,Bt);O.scopeWatchCleanup=ae,O.cleanupWatchers.push(()=>{ae(),O.scopeWatchCleanup=null})}B();return}const Io=++O.requestGeneration,fp=new Pe(Li);let qs;try{qs=await t(fp,it.path,Hr)}catch(ae){throw Io===O.requestGeneration&&X.get(J)?.forEach(qr=>qr(st,void 0)),ae}return Io!==O.requestGeneration||(tt(qs),B(),X.get(J)?.forEach(ae=>ae(st,qs))),qs},Br=no(Vt),Bt=()=>{Br().catch(()=>{})};O.cleanupOperation=F.bind(st,Br);const Mt=()=>{if(mo(O),!O.autoPostOnBodyMutation)return;const it=At(st,l,x);if(!it.ready||!it.path)return;const lt=qt(it.path);if(!lt)return;const Ht=Bt;lt.onInternalMutation(Ht),O.bodyPublisher=lt,O.bodyMutationHandler=Ht},Ei=()=>{if(wi(O),!d)return;const it=At(st,d,x);if(!it.ready||!it.path)return;const lt=qt(it.path);if(!lt)return;const Ht=Bt;lt.onInvalidate(Ht),O.triggerPublisher=lt,O.triggerInvalidateHandler=Ht},pp=()=>{if(!f||!u)return;yi(O);const it=At(st,u,x);if(!it.ready||!it.path){tt(void 0);return}const lt=qt(it.path);if(!lt){tt(void 0);return}const Ht=Bt;lt.onInternalMutation(Ht),O.configPublisher=lt,O.configMutationHandler=Ht},To=()=>{Mt(),Ei(),pp(),O.autoPostOnBodyMutation&&Bt()};if(f||y.length||m.length){for(const it of w){const lt=Ce(Se.watcherStore,Se.hooked,st,it,()=>To());O.cleanupWatchers.push(lt)}To()}else{const it=()=>{if(D)for(const lt of p){const Ht=Ce(Se.watcherStore,Se.hooked,st,lt,Bt);O.cleanupWatchers.push(Ht)}Mt(),Ei(),O.autoPostOnBodyMutation&&Bt()};O.cleanupWatchers.push(oo(st,it))}}),J.__onDisconnected__(st=>{const oe=st,O=oe[ge];O&&(O.cleanupOperation?.(),O.cleanupOperation=null,yi(O),mo(O),wi(O),ds(O),O.cleanupWatchers.forEach(B=>B()),O.cleanupWatchers=[],O.requestGeneration++,Ot.get(J)?.forEach(B=>{oe[B]=void 0}))})};return Et.send=J=>F.run(J),Et.registerResultHandler=(J,be)=>{let ne=X.get(J);ne||(ne=new Set,X.set(J,ne)),ne.add(be),Z.has(J)||(E??=`__${e.toLowerCase()}_handler_${co++}`,Et(J,E))},Et}}function Zc(e,t,s,r){return yr("POST",(i,n,o)=>i.postDetailed(n,o))(e,t,s,r)}function Xc(e,t,s,r){return yr("PUT",(i,n,o)=>i.putDetailed(n,o))(e,t,s,r)}function Qc(e,t,s,r){return yr("PATCH",(i,n,o)=>i.patchDetailed(n,o))(e,t,s,r)}const Jc=Vn,th=Bn,eh=uo;window["concorde-decorator-subscriber"]=window["concorde-decorator-subscriber"]||{},window["concorde-decorator-subscriber"]={bind:Un,publish:Vn,subscribe:Bn,onAssing:El,handle:Tl,ancestorAttribute:hr,autoSubscribe:Il,autoFill:Ml,get:uo,post:Zc,put:Xc,patch:Qc,refetch:Kc,send:Gc};var sh=Object.defineProperty,ih=Object.getOwnPropertyDescriptor,_i=(e,t,s,r)=>{for(var i=r>1?void 0:r?ih(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&sh(t,s,i),i};const bo=new li("communes?limit=$limit&fields=nom,code"),go=new bs(bo.path),rh="sonic-example";let Ns=class extends P{constructor(){super(...arguments),this.limit=5}render(){return v` <span part="api-get-demo">
1273
1273
  · get: ${JSON.stringify(this.geoCommunesPayload?.result??null)} · HTTP
1274
1274
  ${this.geoCommunesPayload?.response?.status??"—"} · subscribe:
1275
1275
  ${JSON.stringify(this.geoCommunesResult??null)}</span
1276
- >`}};ui([a({type:Number})],As.prototype,"limit",2),ui([Hc(ro),Vc(no)],As.prototype,"geoCommunesPayload",2),ui([T(),Bc(no.result)],As.prototype,"geoCommunesResult",2),As=ui([S(Kc)],As);const Gc={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 Yc{async transform(t,s){if(this.sduiDescriptor=t,this.sduiDescriptor.library)for(const r in s.library)this.sduiDescriptor.library[r]=s.library[r];for(const r of s.transforms)this.transformAction(r)}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 r=s.nodes;if(!r)return[];let i=[],n=0;for(const o of t)for(const l of r)this.nodeMatchesPattern(o,l)&&i.push({parent:s,child:l,index:n}),i=i.concat(this.getNodesMatchingPatterns([o],l)),n++;return i}stringMatchesExpression(t,s){return!s||t&&t.match(s)}nodeMatchesPattern(t,s){const r=t,i=s,n=["libraryKey","innerHTML","prefix","suffix","markup"];for(const c of n)if(!this.stringMatchesExpression(i[c],r[c]))return!1;const o=t.attributes,l=s.attributes;if(o&&!l)return!1;if(o){for(const c in o)if(!l||!this.stringMatchesExpression(l[c],o[c]))return!1}return!0}unwrap(t,s){for(const r of s)r.parent.nodes?.splice(r.parent.nodes.indexOf(r.child),1),r.child.nodes&&r.parent.nodes?.splice(r.parent.nodes.indexOf(r.child),0,...r.child.nodes)}wrap(t,s){const r={...t.ui};r.nodes||(r.nodes=[]);let i=0;for(const o of s)r.nodes?.push(o.child),i>0&&o.parent.nodes?.splice(o.parent.nodes.indexOf(o.child),1),i++;const n=s[0]?.parent.nodes?.indexOf(s[0].child);n&&(s[0].parent.nodes?.splice(n,1),s[0].parent.nodes?.splice(n,0,r))}move(t,s){for(const r of s){r.parent.nodes?.splice(r.parent.nodes.indexOf(r.child),1);let i=[];t.after&&(i=this.getNodesMatchingPatterns([t.after],this.sduiDescriptor)),t.before&&(i=this.getNodesMatchingPatterns([t.before],this.sduiDescriptor));const n=i[0];n&&n.parent.nodes?.splice(n.parent.nodes.indexOf(n.child)+(t.after?1:0),0,r.child)}}remap(t,s){for(const r of s){const i={...t.ui};i.attributes||(i.attributes={});const n=r.child.attributes;if(n)for(const d in n)Object.prototype.hasOwnProperty.call(i.attributes,"key")||(i.attributes[d]=n[d]);const o=["libraryKey","innerHTML","prefix","suffix","markup"],l=r.child,c=i;for(const d of o)!Object.prototype.hasOwnProperty.call(i,d)&&l[d]&&(c[d]=l[d]);i.nodes||(i.nodes=[]);const h=r.child.nodes;if(h)for(const d of h)i.nodes.push(d);const u=r.parent.nodes?.indexOf(r.child)||-1;u!=-1&&(r.parent.nodes?.splice(u,1),r.parent.nodes?.splice(u,0,i))}}delete(t,s){for(const r of s)r.parent.nodes?.splice(r.parent.nodes.indexOf(r.child),1)}insert(t,s){const r=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 i=s[0];i&&(r=="in"?(i.child.nodes||(i.child.nodes=[]),i.child.nodes.push({...t.ui})):i.parent.nodes?.splice(i.parent.nodes.indexOf(i.child)+(r=="after"?1:0),0,{...t.ui}))}}var Zc=Object.defineProperty,Xc=Object.getOwnPropertyDescriptor,ur=(e,t,s,r)=>{for(var i=r>1?void 0:r?Xc(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Zc(t,s,i),i};const Qc="sonic-sdui";let pi=class extends Fn(be(C)){constructor(){super(...arguments),this.sduiDescriptor={}}connectedCallback(){this.noShadowDom="",this.displayContents=!0,this.isFetchEnabled=this.hasAttribute("fetch"),super.connectedCallback()}willUpdate(e){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(e)}async updateContents(){if(!this.sduiDescriptor)return;const e={};Object.assign(e,Gc,this.sduiDescriptor.library),this.sduiDescriptor.library=e,this.loadAssets(),await this.loadLibrary(),await this.transformSDUIDescriptor(),this.parseRootNodes()}removeChildren(){for(;[...this.children].filter(e=>e.nodeName!="SLOT").length>0;)this.removeChild(this.children[0])}loadAssets(){if(this.sduiDescriptor){if(this.sduiDescriptor.js)for(const e of this.sduiDescriptor.js)se.loadJS(e);if(this.sduiDescriptor.css)for(const e of this.sduiDescriptor.css)se.loadCSS(e)}}async transformSDUIDescriptor(){if(!this.hasAttribute("transformation"))return;const t=await(await fetch(this.getAttribute("transformation"))).json();await new Yc().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 e=this.sduiDescriptor.nodes;e||(e=[]);const t={tagName:"sonic-toast-message-subscriber",attributes:{}};this.messagesKey&&(t.attributes={subDataProvider:this.messagesKey}),e.push(t),e.forEach(s=>this.appendChild(this.parseChild(s)))}parseChild(e){const t=e.tagName||"div";let{element:s,contentElement:r}=this.handleLibrary(e,t);return this.handleAttributes(e,s),s=this.handleMarkup(e,s),r||(r=s),this.handleChildNodes(e,r,s),this.handleInnerHTML(e,r),e.prefix||e.suffix?this.handlePrefixSuffix(e,s):s}handlePrefixSuffix(e,t){const s=document.createElement("div");return s.innerHTML=(e.prefix||"")+t.outerHTML+(e.suffix||""),s.style.display="contents",s}handleChildNodes(e,t,s){if(e.nodes){const r=e.nodes;for(const i of r){const n=this.parseChild(i);let o=t;i.parentElementSelector&&(o=s.querySelector(i.parentElementSelector)||t),o.shadowRoot?o.shadowRoot.appendChild(n):o.tagName.toLocaleLowerCase()=="template"?o.content.appendChild(n):o.appendChild(n)}}}handleLibrary(e,t){let s,r;if(e.libraryKey&&this.sduiDescriptor.library){s=this.parseChild(this.sduiDescriptor.library[e.libraryKey]||{tagName:"div"});const i=(this.sduiDescriptor.library[e.libraryKey]||{}).contentElementSelector;i&&(r=s.querySelector(i))}else s=document.createElement(t);return{element:s,contentElement:r}}handleAttributes(e,t){const s=e.attributes;for(const r in s){const i=s[r],n=vs.isObject(i)?JSON.stringify(i):i;t.setAttribute(r,n)}}handleMarkup(e,t){return e.markup&&(t=document.createElement("div"),t.style.display="contents",t.innerHTML=e.markup),t}handleInnerHTML(e,t){if(e.innerHTML)if(e.innerHTML.indexOf("wording_")!=-1){const s=this.getAncestorAttributeValue("wordingProvider");this.api?.post(s,{labels:[e.innerHTML.substring(8)]}).then(r=>{t&&(t.innerHTML+=r)})}else t&&(t.innerHTML+=e.innerHTML)}};ur([a()],pi.prototype,"sduiKey",2),ur([a()],pi.prototype,"messagesKey",2),pi=ur([S(Qc)],pi);var Jc=Object.defineProperty,th=Object.getOwnPropertyDescriptor,oo=(e,t,s,r)=>{for(var i=r>1?void 0:r?th(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Jc(t,s,i),i};let fi=class extends be(C){constructor(){super(...arguments),this._composition={},this.listeners=[]}get composition(){return this._composition}set composition(e){this._composition=e,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 e=this.listeners;this.listeners=[],e.forEach(t=>{this.publisher.offAssign(t.subscriber)})}parseComposition(e,t){if(e)for(const s in e){const r=e[s];if(typeof r=="string"){const i=r.split("."),n=i.shift();if(!n)continue;let o=L.get(n);o=vs.traverse(o,i);const l={publisher:o,subscriber:c=>{t[s]=c}};this.listeners.push(l),o.onAssign(l.subscriber),t._proxies_.set(s,o)}else{this.publisher[s]={};const i=new ls({},t);t._proxies_.set(s,i);const n={publisher:i,subscriber:o=>{t[s]=o}};this.listeners.push(n),i.onAssign(n.subscriber),this.parseComposition(r,i)}}}render(){return v`<slot></slot>`}};fi.styles=[A`
1276
+ >`}};_i([a({type:Number})],Ns.prototype,"limit",2),_i([eh(bo),Jc(go)],Ns.prototype,"geoCommunesPayload",2),_i([T(),th(go.result)],Ns.prototype,"geoCommunesResult",2),Ns=_i([C(rh)],Ns);const nh={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 oh{async transform(t,s){if(this.sduiDescriptor=t,this.sduiDescriptor.library)for(const r in s.library)this.sduiDescriptor.library[r]=s.library[r];for(const r of s.transforms)this.transformAction(r)}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 r=s.nodes;if(!r)return[];let i=[],n=0;for(const o of t)for(const l of r)this.nodeMatchesPattern(o,l)&&i.push({parent:s,child:l,index:n}),i=i.concat(this.getNodesMatchingPatterns([o],l)),n++;return i}stringMatchesExpression(t,s){return!s||t&&t.match(s)}nodeMatchesPattern(t,s){const r=t,i=s,n=["libraryKey","innerHTML","prefix","suffix","markup"];for(const c of n)if(!this.stringMatchesExpression(i[c],r[c]))return!1;const o=t.attributes,l=s.attributes;if(o&&!l)return!1;if(o){for(const c in o)if(!l||!this.stringMatchesExpression(l[c],o[c]))return!1}return!0}unwrap(t,s){for(const r of s)r.parent.nodes?.splice(r.parent.nodes.indexOf(r.child),1),r.child.nodes&&r.parent.nodes?.splice(r.parent.nodes.indexOf(r.child),0,...r.child.nodes)}wrap(t,s){const r={...t.ui};r.nodes||(r.nodes=[]);let i=0;for(const o of s)r.nodes?.push(o.child),i>0&&o.parent.nodes?.splice(o.parent.nodes.indexOf(o.child),1),i++;const n=s[0]?.parent.nodes?.indexOf(s[0].child);n&&(s[0].parent.nodes?.splice(n,1),s[0].parent.nodes?.splice(n,0,r))}move(t,s){for(const r of s){r.parent.nodes?.splice(r.parent.nodes.indexOf(r.child),1);let i=[];t.after&&(i=this.getNodesMatchingPatterns([t.after],this.sduiDescriptor)),t.before&&(i=this.getNodesMatchingPatterns([t.before],this.sduiDescriptor));const n=i[0];n&&n.parent.nodes?.splice(n.parent.nodes.indexOf(n.child)+(t.after?1:0),0,r.child)}}remap(t,s){for(const r of s){const i={...t.ui};i.attributes||(i.attributes={});const n=r.child.attributes;if(n)for(const d in n)Object.prototype.hasOwnProperty.call(i.attributes,"key")||(i.attributes[d]=n[d]);const o=["libraryKey","innerHTML","prefix","suffix","markup"],l=r.child,c=i;for(const d of o)!Object.prototype.hasOwnProperty.call(i,d)&&l[d]&&(c[d]=l[d]);i.nodes||(i.nodes=[]);const h=r.child.nodes;if(h)for(const d of h)i.nodes.push(d);const u=r.parent.nodes?.indexOf(r.child)||-1;u!=-1&&(r.parent.nodes?.splice(u,1),r.parent.nodes?.splice(u,0,i))}}delete(t,s){for(const r of s)r.parent.nodes?.splice(r.parent.nodes.indexOf(r.child),1)}insert(t,s){const r=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 i=s[0];i&&(r=="in"?(i.child.nodes||(i.child.nodes=[]),i.child.nodes.push({...t.ui})):i.parent.nodes?.splice(i.parent.nodes.indexOf(i.child)+(r=="after"?1:0),0,{...t.ui}))}}var ah=Object.defineProperty,lh=Object.getOwnPropertyDescriptor,wr=(e,t,s,r)=>{for(var i=r>1?void 0:r?lh(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&ah(t,s,i),i};const ch="sonic-sdui";let xi=class extends Gn($e(P)){constructor(){super(...arguments),this.sduiDescriptor={}}connectedCallback(){this.noShadowDom="",this.displayContents=!0,this.isFetchEnabled=this.hasAttribute("fetch"),super.connectedCallback()}willUpdate(e){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(e)}async updateContents(){if(!this.sduiDescriptor)return;const e={};Object.assign(e,nh,this.sduiDescriptor.library),this.sduiDescriptor.library=e,this.loadAssets(),await this.loadLibrary(),await this.transformSDUIDescriptor(),this.parseRootNodes()}removeChildren(){for(;[...this.children].filter(e=>e.nodeName!="SLOT").length>0;)this.removeChild(this.children[0])}loadAssets(){if(this.sduiDescriptor){if(this.sduiDescriptor.js)for(const e of this.sduiDescriptor.js)he.loadJS(e);if(this.sduiDescriptor.css)for(const e of this.sduiDescriptor.css)he.loadCSS(e)}}async transformSDUIDescriptor(){if(!this.hasAttribute("transformation"))return;const t=await(await fetch(this.getAttribute("transformation"))).json();await new oh().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 e=this.sduiDescriptor.nodes;e||(e=[]);const t={tagName:"sonic-toast-message-subscriber",attributes:{}};this.messagesKey&&(t.attributes={subDataProvider:this.messagesKey}),e.push(t),e.forEach(s=>this.appendChild(this.parseChild(s)))}parseChild(e){const t=e.tagName||"div";let{element:s,contentElement:r}=this.handleLibrary(e,t);return this.handleAttributes(e,s),s=this.handleMarkup(e,s),r||(r=s),this.handleChildNodes(e,r,s),this.handleInnerHTML(e,r),e.prefix||e.suffix?this.handlePrefixSuffix(e,s):s}handlePrefixSuffix(e,t){const s=document.createElement("div");return s.innerHTML=(e.prefix||"")+t.outerHTML+(e.suffix||""),s.style.display="contents",s}handleChildNodes(e,t,s){if(e.nodes){const r=e.nodes;for(const i of r){const n=this.parseChild(i);let o=t;i.parentElementSelector&&(o=s.querySelector(i.parentElementSelector)||t),o.shadowRoot?o.shadowRoot.appendChild(n):o.tagName.toLocaleLowerCase()=="template"?o.content.appendChild(n):o.appendChild(n)}}}handleLibrary(e,t){let s,r;if(e.libraryKey&&this.sduiDescriptor.library){s=this.parseChild(this.sduiDescriptor.library[e.libraryKey]||{tagName:"div"});const i=(this.sduiDescriptor.library[e.libraryKey]||{}).contentElementSelector;i&&(r=s.querySelector(i))}else s=document.createElement(t);return{element:s,contentElement:r}}handleAttributes(e,t){const s=e.attributes;for(const r in s){const i=s[r],n=As.isObject(i)?JSON.stringify(i):i;t.setAttribute(r,n)}}handleMarkup(e,t){return e.markup&&(t=document.createElement("div"),t.style.display="contents",t.innerHTML=e.markup),t}handleInnerHTML(e,t){if(e.innerHTML)if(e.innerHTML.indexOf("wording_")!=-1){const s=this.getAncestorAttributeValue("wordingProvider");this.api?.post(s,{labels:[e.innerHTML.substring(8)]}).then(r=>{t&&(t.innerHTML+=r)})}else t&&(t.innerHTML+=e.innerHTML)}};wr([a()],xi.prototype,"sduiKey",2),wr([a()],xi.prototype,"messagesKey",2),xi=wr([C(ch)],xi);var hh=Object.defineProperty,dh=Object.getOwnPropertyDescriptor,vo=(e,t,s,r)=>{for(var i=r>1?void 0:r?dh(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&hh(t,s,i),i};let Pi=class extends $e(P){constructor(){super(...arguments),this._composition={},this.listeners=[]}get composition(){return this._composition}set composition(e){this._composition=e,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 e=this.listeners;this.listeners=[],e.forEach(t=>{this.publisher.offAssign(t.subscriber)})}parseComposition(e,t){if(e)for(const s in e){const r=e[s];if(typeof r=="string"){const i=r.split("."),n=i.shift();if(!n)continue;let o=L.get(n);o=As.traverse(o,i);const l={publisher:o,subscriber:c=>{t[s]=c}};this.listeners.push(l),o.onAssign(l.subscriber),t._proxies_.set(s,o)}else{this.publisher[s]={};const i=new gs({},t);t._proxies_.set(s,i);const n={publisher:i,subscriber:o=>{t[s]=o}};this.listeners.push(n),i.onAssign(n.subscriber),this.parseComposition(r,i)}}}render(){return v`<slot></slot>`}};Pi.styles=[S`
1277
1277
  :host {
1278
1278
  display: contents;
1279
1279
  }
1280
- `],oo([a({type:Object})],fi.prototype,"composition",1),fi=oo([S("sonic-mix")],fi);var eh=Object.getOwnPropertyDescriptor,sh=(e,t,s,r)=>{for(var i=r>1?void 0:r?eh(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=o(i)||i);return i};const ih="sonic-value";let ao=class extends be(C){connectedCallback(){this.setAttribute("subDataProvider",this.getAttribute("key")),super.connectedCallback()}render(){return typeof this.props=="object"||this.props===void 0?v`<slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>`:v`${U(this.props.toString())}<slot name="prefix"></slot><slot></slot
1281
- ><slot name="suffix"></slot>`}};ao=sh([S(ih)],ao);var rh=Object.defineProperty,nh=Object.getOwnPropertyDescriptor,pr=(e,t,s,r)=>{for(var i=r>1?void 0:r?nh(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&rh(t,s,i),i};const oh="sonic-t";let mi=class extends C{render(){return this.key?v`${ba(this.key,this.unsafeHTML)}`:D}};pr([a({type:String})],mi.prototype,"key",2),pr([a({type:Boolean})],mi.prototype,"unsafeHTML",2),mi=pr([S(oh)],mi);var ah=Object.defineProperty,lh=Object.getOwnPropertyDescriptor,ks=(e,t,s,r)=>{for(var i=r>1?void 0:r?lh(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&ah(t,s,i),i};const ch="sonic-badge";let Ne=class extends C{constructor(){super(...arguments),this.type="default",this.variant="default",this.ellipsis=!1}render(){return v`
1280
+ `],vo([a({type:Object})],Pi.prototype,"composition",1),Pi=vo([C("sonic-mix")],Pi);var uh=Object.getOwnPropertyDescriptor,ph=(e,t,s,r)=>{for(var i=r>1?void 0:r?uh(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=o(i)||i);return i};const fh="sonic-value";let yo=class extends $e(P){connectedCallback(){this.setAttribute("subDataProvider",this.getAttribute("key")),super.connectedCallback()}render(){return typeof this.props=="object"||this.props===void 0?v`<slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>`:v`${H(this.props.toString())}<slot name="prefix"></slot><slot></slot
1281
+ ><slot name="suffix"></slot>`}};yo=ph([C(fh)],yo);var mh=Object.defineProperty,bh=Object.getOwnPropertyDescriptor,_r=(e,t,s,r)=>{for(var i=r>1?void 0:r?bh(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&mh(t,s,i),i};const gh="sonic-t";let Ci=class extends P{render(){return this.key?v`${Aa(this.key,this.unsafeHTML)}`:k}};_r([a({type:String})],Ci.prototype,"key",2),_r([a({type:Boolean})],Ci.prototype,"unsafeHTML",2),Ci=_r([C(gh)],Ci);var vh=Object.defineProperty,yh=Object.getOwnPropertyDescriptor,Rs=(e,t,s,r)=>{for(var i=r>1?void 0:r?yh(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&vh(t,s,i),i};const wh="sonic-badge";let qe=class extends P{constructor(){super(...arguments),this.type="default",this.variant="default",this.ellipsis=!1}render(){return v`
1282
1282
  <slot name="prefix"></slot>
1283
1283
  <slot></slot>
1284
1284
  <slot name="suffix"></slot>
1285
- `}};Ne.styles=[qt,A`
1285
+ `}};qe.styles=[Zt,S`
1286
1286
  :host {
1287
1287
  --sc-badge-gap: 0.3em;
1288
1288
  --sc-badge-py: 0.35em;
@@ -1422,28 +1422,28 @@
1422
1422
  slot[name="prefix"] {
1423
1423
  flex-shrink: 0;
1424
1424
  }
1425
- `],ks([a({type:String,reflect:!0})],Ne.prototype,"type",2),ks([a({type:String,reflect:!0})],Ne.prototype,"variant",2),ks([a({type:String,reflect:!0})],Ne.prototype,"size",2),ks([a({type:Boolean,reflect:!0})],Ne.prototype,"ellipsis",2),Ne=ks([S(ch)],Ne);class hh{static fixBlankLink(t){const r=typeof require>"u"||typeof process!="object"?null:require("electron");t.target=="_blank"&&t.addEventListener("click",()=>{r?.shell.openExternal(t.href)})}}var dh=Object.defineProperty,uh=Object.getOwnPropertyDescriptor,is=(e,t,s,r)=>{for(var i=r>1?void 0:r?uh(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&dh(t,s,i),i};const ph="sonic-link";let ve=class extends C{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(e){this._location=e,at.updateComponentActiveState(this)}connectedCallback(){this.href&&this.href.indexOf("http")!=0&&(at.onChange(this),this.location=document.location.href.replace(document.location.origin,"")),this.addEventListener("keypress",e=>{e.key==="Enter"&&this.shadowRoot?.querySelector("a")?.click()}),this.setFocusable(),super.connectedCallback()}setFocusable(){this.href?this.setAttribute("tabIndex","0"):this.removeAttribute("tabIndex")}disconnectedCallback(){at.offChange(this),super.disconnectedCallback()}set target(e){this._target=e,hh.fixBlankLink(this),this.requestUpdate()}get target(){return this._target}handlePushState(e){e.preventDefault(),at.changeFromComponent(this)}updated(e){e.has("href")&&this.setFocusable()}render(){return this.href?v`
1425
+ `],Rs([a({type:String,reflect:!0})],qe.prototype,"type",2),Rs([a({type:String,reflect:!0})],qe.prototype,"variant",2),Rs([a({type:String,reflect:!0})],qe.prototype,"size",2),Rs([a({type:Boolean,reflect:!0})],qe.prototype,"ellipsis",2),qe=Rs([C(wh)],qe);class _h{static fixBlankLink(t){const r=typeof require>"u"||typeof process!="object"?null:require("electron");t.target=="_blank"&&t.addEventListener("click",()=>{r?.shell.openExternal(t.href)})}}var xh=Object.defineProperty,Ph=Object.getOwnPropertyDescriptor,us=(e,t,s,r)=>{for(var i=r>1?void 0:r?Ph(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&xh(t,s,i),i};const Ch="sonic-link";let ke=class extends P{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(e){this._location=e,ut.updateComponentActiveState(this)}connectedCallback(){this.href&&this.href.indexOf("http")!=0&&(ut.onChange(this),this.location=document.location.href.replace(document.location.origin,"")),this.addEventListener("keypress",e=>{e.key==="Enter"&&this.shadowRoot?.querySelector("a")?.click()}),this.setFocusable(),super.connectedCallback()}setFocusable(){this.href?this.setAttribute("tabIndex","0"):this.removeAttribute("tabIndex")}disconnectedCallback(){ut.offChange(this),super.disconnectedCallback()}set target(e){this._target=e,_h.fixBlankLink(this),this.requestUpdate()}get target(){return this._target}handlePushState(e){e.preventDefault(),ut.changeFromComponent(this)}updated(e){e.has("href")&&this.setFocusable()}render(){return this.href?v`
1426
1426
  <a
1427
1427
  href="${this.href}"
1428
- aria-label=${this.ariaLabel||D}
1429
- target=${k(this.target)}
1428
+ aria-label=${this.ariaLabel||k}
1429
+ target=${$(this.target)}
1430
1430
  @click=${this.pushState?this.handlePushState:null}
1431
1431
  >
1432
1432
  <slot></slot>
1433
1433
  </a>
1434
- `:v`<slot></slot>`}};ve.styles=[A`
1434
+ `:v`<slot></slot>`}};ke.styles=[S`
1435
1435
  a {
1436
1436
  color: inherit;
1437
1437
  text-decoration: none;
1438
1438
  display: contents;
1439
1439
  }
1440
- `],is([a({type:String})],ve.prototype,"href",2),is([a({type:String,attribute:"data-aria-label"})],ve.prototype,"ariaLabel",2),is([a({type:String})],ve.prototype,"autoActive",2),is([a({type:String})],ve.prototype,"target",1),is([a({type:Boolean})],ve.prototype,"pushState",2),ve=is([S(ph)],ve);var fh=Object.defineProperty,mh=Object.getOwnPropertyDescriptor,rs=(e,t,s,r)=>{for(var i=r>1?void 0:r?mh(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&fh(t,s,i),i};const bh="sonic-progress";let ye=class extends C{constructor(){super(...arguments),this.max=100,this.invert=!1,this.type="default"}render(){return v`
1441
- <progress value=${k(this.value)} max=${this.max}></progress>
1440
+ `],us([a({type:String})],ke.prototype,"href",2),us([a({type:String,attribute:"data-aria-label"})],ke.prototype,"ariaLabel",2),us([a({type:String})],ke.prototype,"autoActive",2),us([a({type:String})],ke.prototype,"target",1),us([a({type:Boolean})],ke.prototype,"pushState",2),ke=us([C(Ch)],ke);var Sh=Object.defineProperty,$h=Object.getOwnPropertyDescriptor,ps=(e,t,s,r)=>{for(var i=r>1?void 0:r?$h(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Sh(t,s,i),i};const Ah="sonic-progress";let De=class extends P{constructor(){super(...arguments),this.max=100,this.invert=!1,this.type="default"}render(){return v`
1441
+ <progress value=${$(this.value)} max=${this.max}></progress>
1442
1442
  <div class="slot-container">
1443
1443
  <slot></slot>
1444
1444
  <slot name="remaining"></slot>
1445
1445
  </div>
1446
- `}};ye.styles=[qt,A`
1446
+ `}};De.styles=[Zt,S`
1447
1447
  :host {
1448
1448
  --sc-progress-bg: var(
1449
1449
  --sc-input-bg,
@@ -1555,7 +1555,7 @@
1555
1555
  gap: 0.5em;
1556
1556
  margin-top: 0.15em;
1557
1557
  }
1558
- `],rs([a({type:Number})],ye.prototype,"value",2),rs([a({type:Number})],ye.prototype,"max",2),rs([a({type:Boolean})],ye.prototype,"invert",2),rs([a({type:String,reflect:!0})],ye.prototype,"type",2),rs([a({type:String,reflect:!0})],ye.prototype,"size",2),ye=rs([S(bh)],ye);const gh=A`
1558
+ `],ps([a({type:Number})],De.prototype,"value",2),ps([a({type:Number})],De.prototype,"max",2),ps([a({type:Boolean})],De.prototype,"invert",2),ps([a({type:String,reflect:!0})],De.prototype,"type",2),ps([a({type:String,reflect:!0})],De.prototype,"size",2),De=ps([C(Ah)],De);const kh=S`
1559
1559
  .password-toggle {
1560
1560
  color: var(--sc-input-c);
1561
1561
  font-size: var(--sc-input-fs);
@@ -1566,7 +1566,7 @@
1566
1566
  :host([inlineContent]) .has-suffix .password-toggle {
1567
1567
  margin-right: 0;
1568
1568
  }
1569
- `,bi=A`
1569
+ `,Si=S`
1570
1570
  :host {
1571
1571
  --sc-label-fs: var(--sc-_fs, 1rem);
1572
1572
  --sc-label-fw: var(--sc-label-font-weight, 500);
@@ -1580,14 +1580,14 @@
1580
1580
  margin-bottom: 0.22em;
1581
1581
  display: block;
1582
1582
  }
1583
- `,gi=A`
1583
+ `,$i=S`
1584
1584
  .form-description {
1585
1585
  color: var(--sc-base-400, var(--sc-base-content, #000));
1586
1586
  font-size: 0.85em;
1587
1587
  margin-top: 0.2em;
1588
1588
  display: block;
1589
1589
  }
1590
- `,fr=A`
1590
+ `,xr=S`
1591
1591
  * {
1592
1592
  box-sizing: border-box;
1593
1593
  }
@@ -1946,21 +1946,21 @@
1946
1946
  * @license
1947
1947
  * Copyright 2018 Google LLC
1948
1948
  * SPDX-License-Identifier: BSD-3-Clause
1949
- */const mr=ue(class extends Ge{constructor(e){if(super(e),e.type!==Oe.ATTRIBUTE||e.name!=="class"||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter((t=>e[t])).join(" ")+" "}update(e,[t]){if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((r=>r!==""))));for(const r in t)t[r]&&!this.nt?.has(r)&&this.st.add(r);return this.render(t)}const s=e.element.classList;for(const r of this.st)r in t||(s.remove(r),this.st.delete(r));for(const r in t){const i=!!t[r];i===this.st.has(r)||this.nt?.has(r)||(i?(s.add(r),this.st.add(r)):(s.remove(r),this.st.delete(r)))}return Dt}});var vh=Object.defineProperty,yh=Object.getOwnPropertyDescriptor,H=(e,t,s,r)=>{for(var i=r>1?void 0:r?yh(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&vh(t,s,i),i};const wh="sonic-input";let z=class extends oi(Ze(it(C))){constructor(){super(...arguments),this.readonly=!1,this.inlineContent=!1,this.disableInlineContentFocus=!1,this.showPasswordToggle=!1,this.autoActive=!1,this.active=!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 e=this.getFormPublisher();if(!e)return;e[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 e=this.getFormPublisher();if(!e)return;e[this.sameValueAsName].offAssign(this.sameValueAsHandle)}}escapeRegExp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}willUpdate(e){this.hasSlotOrProps(),this.autoActive&&e.has("value")&&(this.active=!!this.value),super.willUpdate(e)}setSelectionRange(e,t){this.input.setSelectionRange(e,t)}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length),this.hasSuffix=!!this.slotSuffixNodes?.length,this.hasPrefix=!!this.slotPrefixNodes?.length}inlineContentFocus(){!this.inlineContent||this.disableInlineContentFocus||this.input?.focus()}handleChange(e){if(!this.hasAttribute("inputDelayMs")){super.handleChange(e);return}this.changeTimeoutId&&clearTimeout(this.changeTimeoutId),this.changeTimeoutId=setTimeout(()=>super.handleChange(e),parseInt(this.getAttribute("inputDelayMs")))}togglePasswordVisibility(e){e.preventDefault(),e.stopPropagation(),this.isPassword=!this.isPassword,this._type=this.isPassword?"password":"text"}render(){const e={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix,"no-suffix":!this.hasSuffix,"no-prefix":!this.hasPrefix};return v`
1949
+ */const Pr=xe(class extends is{constructor(e){if(super(e),e.type!==je.ATTRIBUTE||e.name!=="class"||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter((t=>e[t])).join(" ")+" "}update(e,[t]){if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((r=>r!==""))));for(const r in t)t[r]&&!this.nt?.has(r)&&this.st.add(r);return this.render(t)}const s=e.element.classList;for(const r of this.st)r in t||(s.remove(r),this.st.delete(r));for(const r in t){const i=!!t[r];i===this.st.has(r)||this.nt?.has(r)||(i?(s.add(r),this.st.add(r)):(s.remove(r),this.st.delete(r)))}return Lt}});var Dh=Object.defineProperty,Oh=Object.getOwnPropertyDescriptor,W=(e,t,s,r)=>{for(var i=r>1?void 0:r?Oh(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Dh(t,s,i),i};const Eh="sonic-input";let U=class extends mi(ns(ct(P))){constructor(){super(...arguments),this.readonly=!1,this.inlineContent=!1,this.disableInlineContentFocus=!1,this.showPasswordToggle=!1,this.autoActive=!1,this.active=!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 e=this.getFormPublisher();if(!e)return;e[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 e=this.getFormPublisher();if(!e)return;e[this.sameValueAsName].offAssign(this.sameValueAsHandle)}}escapeRegExp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}willUpdate(e){this.hasSlotOrProps(),this.autoActive&&e.has("value")&&(this.active=!!this.value),super.willUpdate(e)}setSelectionRange(e,t){this.input.setSelectionRange(e,t)}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length),this.hasSuffix=!!this.slotSuffixNodes?.length,this.hasPrefix=!!this.slotPrefixNodes?.length}inlineContentFocus(){!this.inlineContent||this.disableInlineContentFocus||this.input?.focus()}handleChange(e){if(!this.hasAttribute("inputDelayMs")){super.handleChange(e);return}this.changeTimeoutId&&clearTimeout(this.changeTimeoutId),this.changeTimeoutId=setTimeout(()=>super.handleChange(e),parseInt(this.getAttribute("inputDelayMs")))}togglePasswordVisibility(e){e.preventDefault(),e.stopPropagation(),this.isPassword=!this.isPassword,this._type=this.isPassword?"password":"text"}render(){const e={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix,"no-suffix":!this.hasSuffix,"no-prefix":!this.hasPrefix};return v`
1950
1950
  <label for="${this.id||"form-element"}" class="${this.hasLabel?"form-label":"hidden"}"
1951
- >${this.label?U(this.label):""}<slot
1951
+ >${this.label?H(this.label):""}<slot
1952
1952
  name="label"
1953
1953
  @slotchange=${this.hasSlotOrProps}
1954
1954
  ></slot
1955
1955
  ></label>
1956
1956
 
1957
- <div @click=${this.inlineContentFocus} class="form-control ${mr(e)}">
1957
+ <div @click=${this.inlineContentFocus} class="form-control ${Pr(e)}">
1958
1958
  <div part="content" class="${this.inlineContent?"form-element form-element-wrapper":"contents"}">
1959
1959
  <slot name="prefix" @slotchange=${this.hasSlotOrProps}></slot>
1960
1960
  <input
1961
1961
  data-form-element
1962
1962
  part="input"
1963
- id=${k(this.id||"form-element")}
1963
+ id=${$(this.id||"form-element")}
1964
1964
  part="input"
1965
1965
  class="form-element input"
1966
1966
  @input=${this.handleChange}
@@ -1969,21 +1969,21 @@
1969
1969
  ?disabled=${this.disabled}
1970
1970
  ?readonly=${this.readonly}
1971
1971
  ?autofocus=${this.autofocus}
1972
- list=${k(this.list)}
1973
- tabindex=${k(this.tabindex)}
1974
- pattern=${k(this.pattern)}
1975
- min=${k(this.min)}
1976
- max=${k(this.max)}
1977
- step=${k(this.step)}
1978
- inputmode=${k(this.inputmode)}
1979
- src=${k(this.src)}
1980
- minlength=${k(this.minlength)}
1981
- maxlength=${k(this.maxlength)}
1982
- placeholder=${k(this.placeholder)}
1972
+ list=${$(this.list)}
1973
+ tabindex=${$(this.tabindex)}
1974
+ pattern=${$(this.pattern)}
1975
+ min=${$(this.min)}
1976
+ max=${$(this.max)}
1977
+ step=${$(this.step)}
1978
+ inputmode=${$(this.inputmode)}
1979
+ src=${$(this.src)}
1980
+ minlength=${$(this.minlength)}
1981
+ maxlength=${$(this.maxlength)}
1982
+ placeholder=${$(this.placeholder)}
1983
1983
  ?required=${this.required}
1984
- autocomplete=${k(this.autocomplete)}
1985
- aria-label=${k(this.ariaLabel)}
1986
- aria-labelledby=${k(this.ariaLabelledby)}
1984
+ autocomplete=${$(this.autocomplete)}
1985
+ aria-label=${$(this.ariaLabel)}
1986
+ aria-labelledby=${$(this.ariaLabelledby)}
1987
1987
  .name=${this.name}
1988
1988
  .value=${this.value}
1989
1989
  />
@@ -2008,10 +2008,10 @@
2008
2008
  name="description"
2009
2009
  @slotchange=${this.hasSlotOrProps}
2010
2010
  class="${this.hasDescription?"form-description":"hidden"}"
2011
- >${this.description?v`${U(this.description)}`:D}</slot>
2011
+ >${this.description?v`${H(this.description)}`:k}</slot>
2012
2012
  <slot name="list"></slot>
2013
2013
  </div>
2014
- `}};z.styles=[qt,fr,bi,gi,gh,A`
2014
+ `}};U.styles=[Zt,xr,Si,$i,kh,S`
2015
2015
  :host([type="hidden"]) {
2016
2016
  appearance: none !important;
2017
2017
  display: none !important;
@@ -2019,7 +2019,7 @@
2019
2019
  :host > .form-control {
2020
2020
  position: relative;
2021
2021
  }
2022
- `],H([a({type:String,reflect:!0})],z.prototype,"size",2),H([a({type:String})],z.prototype,"inputmode",2),H([a({type:String})],z.prototype,"list",2),H([a({type:String})],z.prototype,"placeholder",2),H([a({type:String})],z.prototype,"pattern",2),H([a({type:String})],z.prototype,"min",2),H([a({type:String})],z.prototype,"max",2),H([a({type:Boolean,reflect:!0})],z.prototype,"readonly",2),H([a({type:Number})],z.prototype,"step",2),H([a({type:Number})],z.prototype,"minlength",2),H([a({type:Number})],z.prototype,"maxlength",2),H([a({type:String})],z.prototype,"src",2),H([a({type:Boolean,reflect:!0})],z.prototype,"inlineContent",2),H([a({type:Boolean})],z.prototype,"disableInlineContentFocus",2),H([a({type:Boolean})],z.prototype,"showPasswordToggle",2),H([a({type:Boolean})],z.prototype,"autoActive",2),H([a({type:Boolean,reflect:!0})],z.prototype,"active",2),H([mt({slot:"label",flatten:!0})],z.prototype,"slotLabelNodes",2),H([mt({slot:"description",flatten:!0})],z.prototype,"slotDescriptionNodes",2),H([mt({slot:"suffix",flatten:!0})],z.prototype,"slotSuffixNodes",2),H([mt({slot:"prefix",flatten:!0})],z.prototype,"slotPrefixNodes",2),H([he("input")],z.prototype,"input",2),H([T()],z.prototype,"hasDescription",2),H([T()],z.prototype,"hasLabel",2),H([T()],z.prototype,"hasSuffix",2),H([T()],z.prototype,"hasPrefix",2),H([T()],z.prototype,"isPassword",2),z=H([S(wh)],z);const lo=A`
2022
+ `],W([a({type:String,reflect:!0})],U.prototype,"size",2),W([a({type:String})],U.prototype,"inputmode",2),W([a({type:String})],U.prototype,"list",2),W([a({type:String})],U.prototype,"placeholder",2),W([a({type:String})],U.prototype,"pattern",2),W([a({type:String})],U.prototype,"min",2),W([a({type:String})],U.prototype,"max",2),W([a({type:Boolean,reflect:!0})],U.prototype,"readonly",2),W([a({type:Number})],U.prototype,"step",2),W([a({type:Number})],U.prototype,"minlength",2),W([a({type:Number})],U.prototype,"maxlength",2),W([a({type:String})],U.prototype,"src",2),W([a({type:Boolean,reflect:!0})],U.prototype,"inlineContent",2),W([a({type:Boolean})],U.prototype,"disableInlineContentFocus",2),W([a({type:Boolean})],U.prototype,"showPasswordToggle",2),W([a({type:Boolean})],U.prototype,"autoActive",2),W([a({type:Boolean,reflect:!0})],U.prototype,"active",2),W([gt({slot:"label",flatten:!0})],U.prototype,"slotLabelNodes",2),W([gt({slot:"description",flatten:!0})],U.prototype,"slotDescriptionNodes",2),W([gt({slot:"suffix",flatten:!0})],U.prototype,"slotSuffixNodes",2),W([gt({slot:"prefix",flatten:!0})],U.prototype,"slotPrefixNodes",2),W([we("input")],U.prototype,"input",2),W([T()],U.prototype,"hasDescription",2),W([T()],U.prototype,"hasLabel",2),W([T()],U.prototype,"hasSuffix",2),W([T()],U.prototype,"hasPrefix",2),W([T()],U.prototype,"isPassword",2),U=W([C(Eh)],U);const wo=S`
2023
2023
  /*OMBRE*/
2024
2024
  :host([shadow]) .shadowable,
2025
2025
  :host([shadow="md"]) .shadowable,
@@ -2038,7 +2038,7 @@
2038
2038
  :host([shadow="none"]) .shadowable {
2039
2039
  box-shadow: none;
2040
2040
  }
2041
- `;var _h=Object.defineProperty,xh=Object.getOwnPropertyDescriptor,Kt=(e,t,s,r)=>{for(var i=r>1?void 0:r?xh(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&_h(t,s,i),i};const Ph="sonic-pop";let ht=class extends C{constructor(){super(...arguments),this.open=!1,this.noToggle=!1,this.inline=!1,this.manual=!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.triggerElement=null,this.ancestorsHavingZIndex=new Set,this._handleKeyDown=e=>{e.key==="Escape"&&this.open&&(e.stopPropagation(),this.hide())}}runPositioningLoop(){this.positioningRuns&&(this.positioningRuns=!0,this.computePosition(this.placement),window.requestAnimationFrame(()=>this.runPositioningLoop()))}toggle(e){if(this.open&&this.noToggle)return;const t=e;e.type=="keydown"&&(t.key!="ArrowDown"||this.open)||(this.open||(this.triggerElement=e.target),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.triggerElement&&(this.triggerElement.focus(),this.triggerElement=null),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),this.dispatchEvent(new CustomEvent("hide"))}setMaxZindex(){Y.everyAncestors(this,e=>{const t=e;if(!t.className)return!0;if([...t.classList].includes("@container")){const s=t.style;s.zIndex="999999999";const r=getComputedStyle(t);return r.position!=="relative"&&r.position!=="absolute"&&(s.position="relative"),this.ancestorsHavingZIndex.add(e),!1}return!0})}resetZindexes(){this.ancestorsHavingZIndex.forEach(e=>{e.style.removeProperty("position"),e.style.removeProperty("z-index")}),this.ancestorsHavingZIndex.clear()}_handleClosePop(e){const t=e.composedPath(),s=t[0];ht.pops.forEach(r=>{const i=t.includes(r),n=t.includes(r.querySelector('[slot="content"]')),o=Y.getAncestorAttributeValue(s,"data-on-select")==="keep";e.type=="pointerdown"&&i||e.type=="click"&&(i&&o||!n)||r.hide()})}connectedCallback(){super.connectedCallback(),ht.pops.size==0&&(document.addEventListener("pointerdown",this._handleClosePop),document.addEventListener("click",this._handleClosePop),document.addEventListener("keydown",this._handleKeyDown)),ht.pops.add(this)}firstUpdated(e){super.firstUpdated(e),this.resizeObserver.observe(this.popContent)}disconnectedCallback(){this.popContent&&this.resizeObserver.unobserve(this.popContent),super.disconnectedCallback(),ht.pops.delete(this),ht.pops.size==0&&(document.removeEventListener("pointerdown",this._handleClosePop),document.removeEventListener("click",this._handleClosePop),document.removeEventListener("keydown",this._handleKeyDown))}computePosition(e){const t=e.split(" "),s=t[0];let r=t[1];const i=5,n=this.getBoundingClientRect(),l=Y.getScrollableAncestor(this.popContent)?.getBoundingClientRect(),c=Math.max(0,l?.left||0)+i,h=Math.max(0,l?.top||0)+i,u=Math.min(window.innerWidth,l?.right||window.innerWidth)-i,d=Math.min(window.innerHeight,l?.bottom||window.innerHeight)-i,p=n.left,y=n.top;let g=p,b=y,w=this.popContent?.getBoundingClientRect();const E=y-w.height,f=p-w.width,m=p+n.width,_=y+n.height,x=p+(n.width-w.width)*.5,O=y+(n.height-w.height)*.5;switch(s){case"bottom":b=_,r=="center"&&(g=x);break;case"top":b=E,r=="center"&&(g=x);break;case"left":g=f,r=="center"&&(b=O);break;case"right":g=m,r=="center"&&(b=O);break}this.lastContentX+=g-w.x,this.lastContentY+=b-w.y,Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),w=this.popContent?.getBoundingClientRect(),w.x<c&&s=="left"&&(g=m),w.y<h&&s=="top"&&(b=_),w.x+w.width>u&&s=="right"&&(g=f),w.y+w.height>d&&s=="bottom"&&(b=E),this.lastContentX+=g-w.x,this.lastContentY+=b-w.y,Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),w=this.popContent?.getBoundingClientRect(),w.x<c&&(this.lastContentX+=c-w.x),w.y<h&&(this.lastContentY+=h-w.y),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),w=this.popContent?.getBoundingClientRect(),w.x+w.width>u&&(this.lastContentX+=u-(w.x+w.width)),w.y+w.height>d&&(this.lastContentY+=d-(w.y+w.height)),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`})}render(){return v`
2041
+ `;var Lh=Object.defineProperty,Th=Object.getOwnPropertyDescriptor,Qt=(e,t,s,r)=>{for(var i=r>1?void 0:r?Th(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Lh(t,s,i),i};const Ih="sonic-pop";let mt=class extends P{constructor(){super(...arguments),this.open=!1,this.noToggle=!1,this.inline=!1,this.manual=!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.triggerElement=null,this.ancestorsHavingZIndex=new Set,this._handleKeyDown=e=>{e.key==="Escape"&&this.open&&(e.stopPropagation(),this.hide())}}runPositioningLoop(){this.positioningRuns&&(this.positioningRuns=!0,this.computePosition(this.placement),window.requestAnimationFrame(()=>this.runPositioningLoop()))}toggle(e){if(this.open&&this.noToggle)return;const t=e;e.type=="keydown"&&(t.key!="ArrowDown"||this.open)||(this.open||(this.triggerElement=e.target),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.triggerElement&&(this.triggerElement.focus(),this.triggerElement=null),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),this.dispatchEvent(new CustomEvent("hide"))}setMaxZindex(){Q.everyAncestors(this,e=>{const t=e;if(!t.className)return!0;if([...t.classList].includes("@container")){const s=t.style;s.zIndex="999999999";const r=getComputedStyle(t);return r.position!=="relative"&&r.position!=="absolute"&&(s.position="relative"),this.ancestorsHavingZIndex.add(e),!1}return!0})}resetZindexes(){this.ancestorsHavingZIndex.forEach(e=>{e.style.removeProperty("position"),e.style.removeProperty("z-index")}),this.ancestorsHavingZIndex.clear()}_handleClosePop(e){const t=e.composedPath(),s=t[0];mt.pops.forEach(r=>{const i=t.includes(r),n=t.includes(r.querySelector('[slot="content"]')),o=Q.getAncestorAttributeValue(s,"data-on-select")==="keep";e.type=="pointerdown"&&i||e.type=="click"&&(i&&o||!n)||r.hide()})}connectedCallback(){super.connectedCallback(),mt.pops.size==0&&(document.addEventListener("pointerdown",this._handleClosePop),document.addEventListener("click",this._handleClosePop),document.addEventListener("keydown",this._handleKeyDown)),mt.pops.add(this)}firstUpdated(e){super.firstUpdated(e),this.resizeObserver.observe(this.popContent)}disconnectedCallback(){this.popContent&&this.resizeObserver.unobserve(this.popContent),super.disconnectedCallback(),mt.pops.delete(this),mt.pops.size==0&&(document.removeEventListener("pointerdown",this._handleClosePop),document.removeEventListener("click",this._handleClosePop),document.removeEventListener("keydown",this._handleKeyDown))}computePosition(e){const t=e.split(" "),s=t[0];let r=t[1];const i=5,n=this.getBoundingClientRect(),l=Q.getScrollableAncestor(this.popContent)?.getBoundingClientRect(),c=Math.max(0,l?.left||0)+i,h=Math.max(0,l?.top||0)+i,u=Math.min(window.innerWidth,l?.right||window.innerWidth)-i,d=Math.min(window.innerHeight,l?.bottom||window.innerHeight)-i,p=n.left,y=n.top;let g=p,m=y,w=this.popContent?.getBoundingClientRect();const D=y-w.height,f=p-w.width,b=p+n.width,_=y+n.height,A=p+(n.width-w.width)*.5,x=y+(n.height-w.height)*.5;switch(s){case"bottom":m=_,r=="center"&&(g=A);break;case"top":m=D,r=="center"&&(g=A);break;case"left":g=f,r=="center"&&(m=x);break;case"right":g=b,r=="center"&&(m=x);break}this.lastContentX+=g-w.x,this.lastContentY+=m-w.y,Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),w=this.popContent?.getBoundingClientRect(),w.x<c&&s=="left"&&(g=b),w.y<h&&s=="top"&&(m=_),w.x+w.width>u&&s=="right"&&(g=f),w.y+w.height>d&&s=="bottom"&&(m=D),this.lastContentX+=g-w.x,this.lastContentY+=m-w.y,Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),w=this.popContent?.getBoundingClientRect(),w.x<c&&(this.lastContentX+=c-w.x),w.y<h&&(this.lastContentY+=h-w.y),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),w=this.popContent?.getBoundingClientRect(),w.x+w.width>u&&(this.lastContentX+=u-(w.x+w.width)),w.y+w.height>d&&(this.lastContentY+=d-(w.y+w.height)),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`})}render(){return v`
2042
2042
  <slot
2043
2043
  @click=${this.manual?()=>{}:this.toggle}
2044
2044
  @keydown=${this.manual?()=>{}:this.toggle}
@@ -2052,7 +2052,7 @@
2052
2052
  class="shadowable
2053
2053
  ${this.open?"is-open":""}"
2054
2054
  ></slot>
2055
- `}};ht.pops=new Set,ht.styles=[A`
2055
+ `}};mt.pops=new Set,mt.styles=[S`
2056
2056
  :host {
2057
2057
  display: inline-block;
2058
2058
  vertical-align: middle;
@@ -2084,11 +2084,11 @@
2084
2084
  :host([inline]) {
2085
2085
  vertical-align: baseline;
2086
2086
  }
2087
- `,lo],Kt([T()],ht.prototype,"open",2),Kt([he("slot:not([name=content])")],ht.prototype,"popBtn",2),Kt([he("slot[name=content]")],ht.prototype,"popContent",2),Kt([a({type:Boolean})],ht.prototype,"noToggle",2),Kt([a({type:Boolean,reflect:!0})],ht.prototype,"inline",2),Kt([a({type:Boolean})],ht.prototype,"manual",2),Kt([a({type:String,reflect:!0})],ht.prototype,"shadow",2),Kt([a({type:String})],ht.prototype,"placement",2),Kt([T()],ht.prototype,"triggerElement",2),ht=Kt([S(Ph)],ht);var Ch=Object.getOwnPropertyDescriptor,Sh=(e,t,s,r)=>{for(var i=r>1?void 0:r?Ch(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=o(i)||i);return i};const $h="sonic-menu-item";let co=class extends j{constructor(){super()}connectedCallback(){this.hasAttribute("variant")||(this.variant="ghost"),this.hasAttribute("type")||(this.type="default"),this.hasAttribute("shape")||(this.shape="block");const e=this.shape==="square"||this.shape==="circle";!this.hasAttribute("align")&&!e&&(this.align="left"),super.connectedCallback()}};co=Sh([S($h)],co);/**
2087
+ `,wo],Qt([T()],mt.prototype,"open",2),Qt([we("slot:not([name=content])")],mt.prototype,"popBtn",2),Qt([we("slot[name=content]")],mt.prototype,"popContent",2),Qt([a({type:Boolean})],mt.prototype,"noToggle",2),Qt([a({type:Boolean,reflect:!0})],mt.prototype,"inline",2),Qt([a({type:Boolean})],mt.prototype,"manual",2),Qt([a({type:String,reflect:!0})],mt.prototype,"shadow",2),Qt([a({type:String})],mt.prototype,"placement",2),Qt([T()],mt.prototype,"triggerElement",2),mt=Qt([C(Ih)],mt);var Mh=Object.getOwnPropertyDescriptor,Nh=(e,t,s,r)=>{for(var i=r>1?void 0:r?Mh(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=o(i)||i);return i};const Rh="sonic-menu-item";let _o=class extends z{constructor(){super()}connectedCallback(){this.hasAttribute("variant")||(this.variant="ghost"),this.hasAttribute("type")||(this.type="default"),this.hasAttribute("shape")||(this.shape="block");const e=this.shape==="square"||this.shape==="circle";!this.hasAttribute("align")&&!e&&(this.align="left"),super.connectedCallback()}};_o=Nh([C(Rh)],_o);/**
2088
2088
  * @license
2089
2089
  * Copyright 2021 Google LLC
2090
2090
  * SPDX-License-Identifier: BSD-3-Clause
2091
- */class ho{constructor(t,{target:s,config:r,callback:i,skipInitial:n}){this.t=new Set,this.o=!1,this.i=!1,this.h=t,s!==null&&this.t.add(s??t),this.l=r,this.o=n??this.o,this.callback=i,window.ResizeObserver?(this.u=new ResizeObserver((o=>{this.handleChanges(o),this.h.requestUpdate()})),t.addController(this)):console.warn("ResizeController error: browser does not support ResizeObserver.")}handleChanges(t){this.value=this.callback?.(t,this.u)}hostConnected(){for(const t of this.t)this.observe(t)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.o&&this.i&&this.handleChanges([]),this.i=!1}observe(t){this.t.add(t),this.u.observe(t,this.l),this.i=!0,this.h.requestUpdate()}unobserve(t){this.t.delete(t),this.u.unobserve(t)}disconnect(){this.u.disconnect()}}var Ah=Object.defineProperty,kh=Object.getOwnPropertyDescriptor,bt=(e,t,s,r)=>{for(var i=r>1?void 0:r?kh(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Ah(t,s,i),i};let dt=class extends ar(zn(jn(be(C)))){constructor(){super(...arguments),this.size="md",this.placeholder="",this.filteredFields="",this.readonly=null,this.dataProviderExpression="",this.minSearchLength=0,this.key="",this.searchParameter="",this.propertyName="",this.hasInputPrefix=!1,this._resizeController=new ho(this,{}),this.isPopVisible=!1,this.searchDataProvider="",this.initSearchDataProvider="",this.queueDataProvider="",this.initQueueDataProvider="",this.lastValidSearch="",this.updateSearchParameter=e=>{if(e==""&&this.isSearchParameter()){this.lastValidSearch="";return}this.queryQueueListItem(this.queueDataProvider,this.findSelection,this.setSearchFromSelection)===!1&&this.isSearchParameter()&&(this.lastValidSearch=e,this.searchPublisher?.set(this.lastValidSearch))},this.updatePopContentVisibility=e=>{this.isPopVisible=(e?.length||0)>=this.minSearchLength},this.initSearchParameter=()=>{this.queryQueueListItem(this.initQueueDataProvider,this.findSelection,this.setSearchFromSelection)},this.selectListItem=e=>{const t=this.propertyName==="_self"?e:e[this.propertyName||this.name];this.formValuePublisher?.set(t)},this.findSearchedItem=e=>(this.propertyName==="_self"?e:e[this.propertyName||this.searchParameter||this.name])==this.searchPublisher?.get(),this.findSelection=e=>(this.propertyName==="_self"?e:e[this.propertyName||this.name])==this.value,this.setSearchFromSelection=e=>{this.lastValidSearch=this.propertyName==="_self"?e:e[this.searchParameter||this.propertyName||this.name],this.isSearchParameter()&&this.searchPublisher?.set(this.lastValidSearch)},this.updateActiveSelection=()=>{this.queryQueueListItem(this.queueDataProvider,this.findSearchedItem,this.selectListItem),!this.select&&this.lastValidSearch&&this.lastValidSearch!=this.searchPublisher?.get()&&this.formValuePublisher?.get()&&this.formValuePublisher?.set("")},this.handleFocusOut=e=>{setTimeout(()=>{const t=document.activeElement;if(!t){this.popElement.hide();return}const s=this.popElement.contains(t)||this.popElement.shadowRoot?.contains(t),r=this.contains(t)||this.shadowRoot?.contains(t);!s&&!r&&this.popElement.hide()},0)}}hasSlotOrProps(){this.hasInputPrefix=!!this.slotInputPrefixNodes?.length}isSearchParameter(){return!this.searchParameter||this.searchParameter===this.name}connectedCallback(){super.connectedCallback();const e=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 r=L.get;this.searchPublisher=r(this.searchDataProvider)[e],this.formValuePublisher=xt(r(t),this.name),this.countPublisher=r(this.queueDataProvider).resultCount,this.initCountPublisher=r(this.initQueueDataProvider).resultCount,this.value&&L.get(this.initSearchDataProvider)[this.name].set(this.value),this.initCountPublisher?.onAssign(this.initSearchParameter),this.formValuePublisher?.onAssign(this.updateSearchParameter),this.countPublisher?.onAssign(this.updateActiveSelection),this.searchPublisher?.onAssign(this.updatePopContentVisibility)}firstUpdated(e){super.firstUpdated(e),this.popElement.addEventListener("focusout",this.handleFocusOut)}disconnectedCallback(){super.disconnectedCallback(),this.initCountPublisher?.offAssign(this.initSearchParameter),this.formValuePublisher?.offAssign(this.updateSearchParameter),this.countPublisher?.offAssign(this.updateActiveSelection);const e=L.get;e(this.initSearchDataProvider).delete(),e(this.initQueueDataProvider).delete(),e(this.searchDataProvider).delete(),e(this.queueDataProvider).delete(),this.searchPublisher?.offAssign(this.updatePopContentVisibility),this.popElement.removeEventListener("focusout",this.handleFocusOut)}queryQueueListItem(e,t,s){const r=L.get(e);let i,n=r.get();if(!n||!Array.isArray(n)||!n.length)return!1;for(const o of n){let l=L.get(o.dataProvider).get();if(Array.isArray(l)&&(i=l.find(t),i))break}return i?(s(i),!0):!1}setSelectionRange(e,t){this.querySelector("sonic-input")?.setSelectionRange(e,t)}handleHide(){if(this.select){if(this.searchPublisher?.get()==""){this.lastValidSearch="",this.formValuePublisher?.set("");return}this.searchPublisher?.set(this.lastValidSearch)}}getInputValue(){return this.isSearchParameter()?this.searchPublisher?.get():this.lastValidSearch}handleFocus(){this.popElement.show()}render(){return v`
2091
+ */class xo{constructor(t,{target:s,config:r,callback:i,skipInitial:n}){this.t=new Set,this.o=!1,this.i=!1,this.h=t,s!==null&&this.t.add(s??t),this.l=r,this.o=n??this.o,this.callback=i,window.ResizeObserver?(this.u=new ResizeObserver((o=>{this.handleChanges(o),this.h.requestUpdate()})),t.addController(this)):console.warn("ResizeController error: browser does not support ResizeObserver.")}handleChanges(t){this.value=this.callback?.(t,this.u)}hostConnected(){for(const t of this.t)this.observe(t)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.o&&this.i&&this.handleChanges([]),this.i=!1}observe(t){this.t.add(t),this.u.observe(t,this.l),this.i=!0,this.h.requestUpdate()}unobserve(t){this.t.delete(t),this.u.unobserve(t)}disconnect(){this.u.disconnect()}}var Fh=Object.defineProperty,jh=Object.getOwnPropertyDescriptor,vt=(e,t,s,r)=>{for(var i=r>1?void 0:r?jh(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Fh(t,s,i),i};let bt=class extends mr(Zn(Yn($e(P)))){constructor(){super(...arguments),this.size="md",this.placeholder="",this.filteredFields="",this.readonly=null,this.dataProviderExpression="",this.minSearchLength=0,this.key="",this.searchParameter="",this.propertyName="",this.hasInputPrefix=!1,this._resizeController=new xo(this,{}),this.isPopVisible=!1,this.searchDataProvider="",this.initSearchDataProvider="",this.queueDataProvider="",this.initQueueDataProvider="",this.lastValidSearch="",this.updateSearchParameter=e=>{if(e==""&&this.isSearchParameter()){this.lastValidSearch="";return}this.queryQueueListItem(this.queueDataProvider,this.findSelection,this.setSearchFromSelection)===!1&&this.isSearchParameter()&&(this.lastValidSearch=e,this.searchPublisher?.set(this.lastValidSearch))},this.updatePopContentVisibility=e=>{this.isPopVisible=(e?.length||0)>=this.minSearchLength},this.initSearchParameter=()=>{this.queryQueueListItem(this.initQueueDataProvider,this.findSelection,this.setSearchFromSelection)},this.selectListItem=e=>{const t=this.propertyName==="_self"?e:e[this.propertyName||this.name];this.formValuePublisher?.set(t)},this.findSearchedItem=e=>(this.propertyName==="_self"?e:e[this.propertyName||this.searchParameter||this.name])==this.searchPublisher?.get(),this.findSelection=e=>(this.propertyName==="_self"?e:e[this.propertyName||this.name])==this.value,this.setSearchFromSelection=e=>{this.lastValidSearch=this.propertyName==="_self"?e:e[this.searchParameter||this.propertyName||this.name],this.isSearchParameter()&&this.searchPublisher?.set(this.lastValidSearch)},this.updateActiveSelection=()=>{this.queryQueueListItem(this.queueDataProvider,this.findSearchedItem,this.selectListItem),!this.select&&this.lastValidSearch&&this.lastValidSearch!=this.searchPublisher?.get()&&this.formValuePublisher?.get()&&this.formValuePublisher?.set("")},this.handleFocusOut=e=>{setTimeout(()=>{const t=document.activeElement;if(!t){this.popElement.hide();return}const s=this.popElement.contains(t)||this.popElement.shadowRoot?.contains(t),r=this.contains(t)||this.shadowRoot?.contains(t);!s&&!r&&this.popElement.hide()},0)}}hasSlotOrProps(){this.hasInputPrefix=!!this.slotInputPrefixNodes?.length}isSearchParameter(){return!this.searchParameter||this.searchParameter===this.name}connectedCallback(){super.connectedCallback();const e=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 r=L.get;this.searchPublisher=r(this.searchDataProvider)[e],this.formValuePublisher=Pt(r(t),this.name),this.countPublisher=r(this.queueDataProvider).resultCount,this.initCountPublisher=r(this.initQueueDataProvider).resultCount,this.value&&L.get(this.initSearchDataProvider)[this.name].set(this.value),this.initCountPublisher?.onAssign(this.initSearchParameter),this.formValuePublisher?.onAssign(this.updateSearchParameter),this.countPublisher?.onAssign(this.updateActiveSelection),this.searchPublisher?.onAssign(this.updatePopContentVisibility)}firstUpdated(e){super.firstUpdated(e),this.popElement.addEventListener("focusout",this.handleFocusOut)}disconnectedCallback(){super.disconnectedCallback(),this.initCountPublisher?.offAssign(this.initSearchParameter),this.formValuePublisher?.offAssign(this.updateSearchParameter),this.countPublisher?.offAssign(this.updateActiveSelection);const e=L.get;e(this.initSearchDataProvider).delete(),e(this.initQueueDataProvider).delete(),e(this.searchDataProvider).delete(),e(this.queueDataProvider).delete(),this.searchPublisher?.offAssign(this.updatePopContentVisibility),this.popElement.removeEventListener("focusout",this.handleFocusOut)}queryQueueListItem(e,t,s){const r=L.get(e);let i,n=r.get();if(!n||!Array.isArray(n)||!n.length)return!1;for(const o of n){let l=L.get(o.dataProvider).get();if(Array.isArray(l)&&(i=l.find(t),i))break}return i?(s(i),!0):!1}setSelectionRange(e,t){this.querySelector("sonic-input")?.setSelectionRange(e,t)}handleHide(){if(this.select){if(this.searchPublisher?.get()==""){this.lastValidSearch="",this.formValuePublisher?.set("");return}this.searchPublisher?.set(this.lastValidSearch)}}getInputValue(){return this.isSearchParameter()?this.searchPublisher?.get():this.lastValidSearch}handleFocus(){this.popElement.show()}render(){return v`
2092
2092
  <sonic-pop manual style="display:block;" @hide=${this.handleHide}>
2093
2093
  <sonic-input
2094
2094
  class="form-element"
@@ -2097,18 +2097,18 @@
2097
2097
  formDataProvider="${this.searchDataProvider}"
2098
2098
  type="search"
2099
2099
  data-keyboard-nav="${this.getAttribute("data-keyboard-nav")||""}"
2100
- label="${k(this.label)}"
2101
- description="${k(this.description)}"
2102
- name="${k(this.searchParameter||this.name)}"
2100
+ label="${$(this.label)}"
2101
+ description="${$(this.description)}"
2102
+ name="${$(this.searchParameter||this.name)}"
2103
2103
  ?required=${this.required}
2104
- placeholder="${k(this.placeholder)}"
2104
+ placeholder="${$(this.placeholder)}"
2105
2105
  ?readonly="${this.readonly}"
2106
2106
  autocomplete="off"
2107
2107
  clearable
2108
2108
  inlineContent
2109
2109
  size=${this.size}
2110
2110
  @focus=${this.handleFocus}
2111
- value=${k(this.getInputValue())}
2111
+ value=${$(this.getInputValue())}
2112
2112
  >
2113
2113
  <slot
2114
2114
  name="prefix"
@@ -2123,7 +2123,7 @@
2123
2123
  name="nav-arrow-down"
2124
2124
  .size=${this.size}
2125
2125
  ></sonic-icon>
2126
- `:D}
2126
+ `:k}
2127
2127
  </sonic-input>
2128
2128
  <sonic-menu
2129
2129
  slot="content"
@@ -2153,7 +2153,7 @@
2153
2153
  </sonic-queue>
2154
2154
  </sonic-menu>
2155
2155
  </sonic-pop>
2156
- `}};dt.styles=[xs,A`
2156
+ `}};bt.styles=[Es,S`
2157
2157
  :host {
2158
2158
  display: block;
2159
2159
  }
@@ -2174,7 +2174,7 @@
2174
2174
  min-width: 14rem;
2175
2175
  width: 100%;
2176
2176
  }
2177
- `],bt([a({type:String})],dt.prototype,"size",2),bt([a({type:String})],dt.prototype,"placeholder",2),bt([a()],dt.prototype,"filteredFields",2),bt([a({type:Boolean,reflect:!0})],dt.prototype,"readonly",2),bt([a({type:String})],dt.prototype,"dataProviderExpression",2),bt([a({type:Number})],dt.prototype,"minSearchLength",2),bt([a({type:Boolean})],dt.prototype,"select",2),bt([a({type:String})],dt.prototype,"key",2),bt([a({type:String})],dt.prototype,"searchParameter",2),bt([a({type:String})],dt.prototype,"propertyName",2),bt([mt({slot:"prefix",flatten:!0})],dt.prototype,"slotInputPrefixNodes",2),bt([T()],dt.prototype,"hasInputPrefix",2),bt([he("sonic-pop")],dt.prototype,"popElement",2),bt([T()],dt.prototype,"isPopVisible",2),bt([T()],dt.prototype,"lastValidSearch",2),dt=bt([S("sonic-input-autocomplete")],dt);var Dh=Object.defineProperty,Oh=Object.getOwnPropertyDescriptor,Ct=(e,t,s,r)=>{for(var i=r>1?void 0:r?Oh(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Dh(t,s,i),i};const Eh="sonic-password-helper";let gt=class extends be(C){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)},L.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].onAssign(this.checkValue))}disconnectedCallback(){this.checkValue&&this.name&&L.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].offAssign(this.checkValue),super.disconnectedCallback()}getIcon(t){return t?v`<sonic-icon library="heroicons" name="face-smile"></sonic-icon>`:v`<sonic-icon library="heroicons" name="x-mark"></sonic-icon>`}render(){return this.hasNoChar?D:v`
2177
+ `],vt([a({type:String})],bt.prototype,"size",2),vt([a({type:String})],bt.prototype,"placeholder",2),vt([a()],bt.prototype,"filteredFields",2),vt([a({type:Boolean,reflect:!0})],bt.prototype,"readonly",2),vt([a({type:String})],bt.prototype,"dataProviderExpression",2),vt([a({type:Number})],bt.prototype,"minSearchLength",2),vt([a({type:Boolean})],bt.prototype,"select",2),vt([a({type:String})],bt.prototype,"key",2),vt([a({type:String})],bt.prototype,"searchParameter",2),vt([a({type:String})],bt.prototype,"propertyName",2),vt([gt({slot:"prefix",flatten:!0})],bt.prototype,"slotInputPrefixNodes",2),vt([T()],bt.prototype,"hasInputPrefix",2),vt([we("sonic-pop")],bt.prototype,"popElement",2),vt([T()],bt.prototype,"isPopVisible",2),vt([T()],bt.prototype,"lastValidSearch",2),bt=vt([C("sonic-input-autocomplete")],bt);var zh=Object.defineProperty,Uh=Object.getOwnPropertyDescriptor,St=(e,t,s,r)=>{for(var i=r>1?void 0:r?Uh(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&zh(t,s,i),i};const Vh="sonic-password-helper";let yt=class extends $e(P){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)},L.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].onAssign(this.checkValue))}disconnectedCallback(){this.checkValue&&this.name&&L.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].offAssign(this.checkValue),super.disconnectedCallback()}getIcon(t){return t?v`<sonic-icon library="heroicons" name="face-smile"></sonic-icon>`:v`<sonic-icon library="heroicons" name="x-mark"></sonic-icon>`}render(){return this.hasNoChar?k:v`
2178
2178
  <div>${this.wording_password_helper_decription}</div>
2179
2179
  <div>
2180
2180
  ${this.getIcon(this.hasEnoughChars)}
@@ -2195,11 +2195,11 @@
2195
2195
  ${this.getIcon(this.hasSpecialChar)}
2196
2196
  ${this.wording_password_helper_special_char}
2197
2197
  </div>
2198
- `}};Ct([a()],gt.prototype,"name",2),Ct([a()],gt.prototype,"minChars",2),Ct([T()],gt.prototype,"hasNoChar",2),Ct([T()],gt.prototype,"hasEnoughChars",2),Ct([T()],gt.prototype,"hasMinuscule",2),Ct([T()],gt.prototype,"hasMajuscule",2),Ct([T()],gt.prototype,"hasNumber",2),Ct([T()],gt.prototype,"hasSpecialChar",2),Ct([a()],gt.prototype,"wording_password_helper_decription",2),Ct([a()],gt.prototype,"wording_password_helper_min_length",2),Ct([a()],gt.prototype,"wording_password_helper_lower_case",2),Ct([a()],gt.prototype,"wording_password_helper_upper_case",2),Ct([a()],gt.prototype,"wording_password_helper_number",2),Ct([a()],gt.prototype,"wording_password_helper_special_char",2),gt=Ct([S(Eh)],gt);var Lh=Object.defineProperty,Th=Object.getOwnPropertyDescriptor,Re=(e,t,s,r)=>{for(var i=r>1?void 0:r?Th(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Lh(t,s,i),i};const Ih="sonic-same-value-helper";let we=class extends be(C){constructor(){super(...arguments),this.descriptionWhenEqual="Correspondance : oui",this.descriptionWhenNotEqual="Correspondance : non",this.areEqual=!1,this.hasNoChar=!0}connectedCallback(){super.connectedCallback();const e=L.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=xt(e,this.name).get()==xt(e,this.sameValueAs).get())},xt(e,this.name).onAssign(this.checkValue),xt(e,this.sameValueAs).onAssign(this.checkValue))}disconnectedCallback(){if(this.checkValue&&this.name&&this.sameValueAs){const e=L.get(this.getAncestorAttributeValue("formDataProvider"));xt(e,this.name).offAssign(this.checkValue),xt(e,this.sameValueAs).offAssign(this.checkValue)}super.disconnectedCallback()}render(){return this.hasNoChar?D:v`
2198
+ `}};St([a()],yt.prototype,"name",2),St([a()],yt.prototype,"minChars",2),St([T()],yt.prototype,"hasNoChar",2),St([T()],yt.prototype,"hasEnoughChars",2),St([T()],yt.prototype,"hasMinuscule",2),St([T()],yt.prototype,"hasMajuscule",2),St([T()],yt.prototype,"hasNumber",2),St([T()],yt.prototype,"hasSpecialChar",2),St([a()],yt.prototype,"wording_password_helper_decription",2),St([a()],yt.prototype,"wording_password_helper_min_length",2),St([a()],yt.prototype,"wording_password_helper_lower_case",2),St([a()],yt.prototype,"wording_password_helper_upper_case",2),St([a()],yt.prototype,"wording_password_helper_number",2),St([a()],yt.prototype,"wording_password_helper_special_char",2),yt=St([C(Vh)],yt);var Bh=Object.defineProperty,Hh=Object.getOwnPropertyDescriptor,We=(e,t,s,r)=>{for(var i=r>1?void 0:r?Hh(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Bh(t,s,i),i};const qh="sonic-same-value-helper";let Oe=class extends $e(P){constructor(){super(...arguments),this.descriptionWhenEqual="Correspondance : oui",this.descriptionWhenNotEqual="Correspondance : non",this.areEqual=!1,this.hasNoChar=!0}connectedCallback(){super.connectedCallback();const e=L.get(this.getAncestorAttributeValue("formDataProvider"));this.name&&this.sameValueAs&&(this.checkValue=t=>{t?this.hasNoChar=t.length==0:this.hasNoChar=!0,this.name&&this.sameValueAs&&(this.areEqual=Pt(e,this.name).get()==Pt(e,this.sameValueAs).get())},Pt(e,this.name).onAssign(this.checkValue),Pt(e,this.sameValueAs).onAssign(this.checkValue))}disconnectedCallback(){if(this.checkValue&&this.name&&this.sameValueAs){const e=L.get(this.getAncestorAttributeValue("formDataProvider"));Pt(e,this.name).offAssign(this.checkValue),Pt(e,this.sameValueAs).offAssign(this.checkValue)}super.disconnectedCallback()}render(){return this.hasNoChar?k:v`
2199
2199
  <span>
2200
- ${this.areEqual?U(this.descriptionWhenEqual):U(this.descriptionWhenNotEqual)}
2200
+ ${this.areEqual?H(this.descriptionWhenEqual):H(this.descriptionWhenNotEqual)}
2201
2201
  </span>
2202
- `}};Re([a()],we.prototype,"name",2),Re([a()],we.prototype,"sameValueAs",2),Re([a()],we.prototype,"descriptionWhenEqual",2),Re([a()],we.prototype,"descriptionWhenNotEqual",2),Re([T()],we.prototype,"areEqual",2),Re([T()],we.prototype,"hasNoChar",2),we=Re([S(Ih)],we);var Mh=Object.defineProperty,Nh=Object.getOwnPropertyDescriptor,ne=(e,t,s,r)=>{for(var i=r>1?void 0:r?Nh(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Mh(t,s,i),i};const Rh="sonic-checkbox";let St=class extends Zi(oi(Ze(it(C)))){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(e){this.hasSlotOrProps(),super.willUpdate(e),e.has("type")&&(this.type="checkbox")}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length)}render(){return v`
2202
+ `}};We([a()],Oe.prototype,"name",2),We([a()],Oe.prototype,"sameValueAs",2),We([a()],Oe.prototype,"descriptionWhenEqual",2),We([a()],Oe.prototype,"descriptionWhenNotEqual",2),We([T()],Oe.prototype,"areEqual",2),We([T()],Oe.prototype,"hasNoChar",2),Oe=We([C(qh)],Oe);var Wh=Object.defineProperty,Kh=Object.getOwnPropertyDescriptor,pe=(e,t,s,r)=>{for(var i=r>1?void 0:r?Kh(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Wh(t,s,i),i};const Gh="sonic-checkbox";let $t=class extends rr(mi(ns(ct(P)))){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(e){this.hasSlotOrProps(),super.willUpdate(e),e.has("type")&&(this.type="checkbox")}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length)}render(){return v`
2203
2203
  <label class="checkbox-container ${this.disabled?"disabled":""}">
2204
2204
 
2205
2205
  <span class="icon-container">
@@ -2210,24 +2210,24 @@
2210
2210
  ?required=${this.required}
2211
2211
  ?data-indeterminate=${this.showAsIndeterminate}
2212
2212
  ?disabled=${this.disabled}
2213
- .checked=${k(this.checked)}
2213
+ .checked=${$(this.checked)}
2214
2214
  .name=${this.name}
2215
2215
  .value=${this.value}
2216
2216
  ?autofocus=${this.autofocus}
2217
- aria-label=${k(this.ariaLabel)}
2218
- aria-labelledby=${k(this.ariaLabelledby)}
2217
+ aria-label=${$(this.ariaLabel)}
2218
+ aria-labelledby=${$(this.ariaLabelledby)}
2219
2219
  />
2220
2220
  <sonic-icon name="${this.checked=="indeterminate"||this.showAsIndeterminate?this.indeterminateIconName:this.iconName}" class="sc-input-icon"></sonic-icon>
2221
2221
  </span>
2222
2222
 
2223
2223
  <div class="checkbox-text ${!this.hasDescription&&!this.hasLabel?"hidden":"checkbox-text"}">
2224
- ${this.label?U(this.label):""}
2224
+ ${this.label?H(this.label):""}
2225
2225
  <slot @slotchange=${this.hasSlotOrProps}></slot>
2226
- <slot @slotchange=${this.hasSlotOrProps} name="description" class="${this.hasDescription?"description":"hidden"} ">${this.description?v`${U(this.description)}`:""}</slot>
2226
+ <slot @slotchange=${this.hasSlotOrProps} name="description" class="${this.hasDescription?"description":"hidden"} ">${this.description?v`${H(this.description)}`:""}</slot>
2227
2227
  </div>
2228
2228
  </label>
2229
2229
  </label>
2230
- `}};St.styles=[qt,A`
2230
+ `}};$t.styles=[Zt,S`
2231
2231
  :host {
2232
2232
  --sc-checkbox-border-width: var(--sc-form-border-width);
2233
2233
  --sc-checkbox-border-color: var(
@@ -2349,7 +2349,7 @@
2349
2349
  .hidden {
2350
2350
  display: none;
2351
2351
  }
2352
- `],ne([a({type:Boolean,reflect:!0})],St.prototype,"touched",2),ne([a({type:String})],St.prototype,"iconName",2),ne([a({type:String})],St.prototype,"indeterminateIconName",2),ne([a({type:Boolean})],St.prototype,"showAsIndeterminate",2),ne([a({type:Boolean})],St.prototype,"hasDescription",2),ne([a({type:Boolean})],St.prototype,"hasLabel",2),ne([mt({flatten:!0})],St.prototype,"slotLabelNodes",2),ne([mt({slot:"description",flatten:!0})],St.prototype,"slotDescriptionNodes",2),St=ne([S(Rh)],St);var Fh=Object.getOwnPropertyDescriptor,jh=(e,t,s,r)=>{for(var i=r>1?void 0:r?Fh(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=o(i)||i);return i};const zh="sonic-radio";let br=class extends St{constructor(){super(),this.radio=!0}willUpdate(e){const t=e.has("type");super.willUpdate(e),t&&(this.type="radio")}connectedCallback(){super.connectedCallback(),this.type="radio"}};br.styles=[St.styles,A`
2352
+ `],pe([a({type:Boolean,reflect:!0})],$t.prototype,"touched",2),pe([a({type:String})],$t.prototype,"iconName",2),pe([a({type:String})],$t.prototype,"indeterminateIconName",2),pe([a({type:Boolean})],$t.prototype,"showAsIndeterminate",2),pe([a({type:Boolean})],$t.prototype,"hasDescription",2),pe([a({type:Boolean})],$t.prototype,"hasLabel",2),pe([gt({flatten:!0})],$t.prototype,"slotLabelNodes",2),pe([gt({slot:"description",flatten:!0})],$t.prototype,"slotDescriptionNodes",2),$t=pe([C(Gh)],$t);var Yh=Object.getOwnPropertyDescriptor,Zh=(e,t,s,r)=>{for(var i=r>1?void 0:r?Yh(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=o(i)||i);return i};const Xh="sonic-radio";let Cr=class extends $t{constructor(){super(),this.radio=!0}willUpdate(e){const t=e.has("type");super.willUpdate(e),t&&(this.type="radio")}connectedCallback(){super.connectedCallback(),this.type="radio"}};Cr.styles=[$t.styles,S`
2353
2353
  :host input {
2354
2354
  border-radius: 50%;
2355
2355
  }
@@ -2365,7 +2365,7 @@
2365
2365
  width: 0.6em;
2366
2366
  width: round(0.6em, 1px);
2367
2367
  }
2368
- `],br=jh([S(zh)],br);var Uh=Object.getOwnPropertyDescriptor,Vh=(e,t,s,r)=>{for(var i=r>1?void 0:r?Uh(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=o(i)||i);return i};const Bh="sonic-switch";let gr=class extends St{constructor(){super(),this.unique=!0}};gr.styles=[St.styles,A`
2368
+ `],Cr=Zh([C(Xh)],Cr);var Qh=Object.getOwnPropertyDescriptor,Jh=(e,t,s,r)=>{for(var i=r>1?void 0:r?Qh(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=o(i)||i);return i};const td="sonic-switch";let Sr=class extends $t{constructor(){super(),this.unique=!0}};Sr.styles=[$t.styles,S`
2369
2369
  sonic-icon {
2370
2370
  display: none;
2371
2371
  }
@@ -2430,17 +2430,17 @@
2430
2430
  input + sonic-icon {
2431
2431
  display: none;
2432
2432
  }
2433
- `],gr=Vh([S(Bh)],gr);var Hh=Object.defineProperty,qh=Object.getOwnPropertyDescriptor,rt=(e,t,s,r)=>{for(var i=r>1?void 0:r?qh(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Hh(t,s,i),i};const Wh="sonic-select";let J=class extends Ze(it(C)){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 e=this.querySelectorAll("option");e.length>0&&(this.options=Array.from(e).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(e){this._options=e;for(const s of e)s.selected&&(this.value=s[this.valueKey]||"");!(this.value||this.getAttribute("value"))&&this._options.length>0&&(this.value=this._options[0][this.valueKey]),this.requestUpdate()}get options(){return this._options}firstUpdated(e){this.hasDoneFirstUpdate=!0,super.firstUpdated(e)}set value(e){e==null&&!this.hasDoneFirstUpdate||(e||(e=""),this._value!=e&&(this._value=e,this.updateFormPublisherValue(),this.requestUpdate()))}get value(){return this._value}updateFormPublisherValue(){this.setFormPublisherValue(this.value)}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps(),this.updateOptions()}get description(){return this._description}set description(e){this.hasAttribute("description")&&!this.forceAutoFill&&(e=this.getAttribute("description")),this._description=e,this.requestUpdate()}get label(){return this._label}set label(e){this.hasAttribute("label")&&!this.forceAutoFill&&(e=this.getAttribute("label")),this._label=e,this.requestUpdate()}willUpdate(e){this.hasSlotOrProps(),super.willUpdate(e)}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length),this.hasSuffix=!!this.slotSuffixNodes?.length,this.hasPrefix=!!this.slotPrefixNodes?.length}validateFormElement(){const e=this.shadowRoot?.querySelector("select");if(!e||e.checkValidity())return;const t=this.getFormPublisher();t&&(t.isFormValid=!1),e.reportValidity()}render(){const e={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix};return v`
2433
+ `],Sr=Jh([C(td)],Sr);var ed=Object.defineProperty,sd=Object.getOwnPropertyDescriptor,ht=(e,t,s,r)=>{for(var i=r>1?void 0:r?sd(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&ed(t,s,i),i};const id="sonic-select";let nt=class extends ns(ct(P)){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 e=this.querySelectorAll("option");e.length>0&&(this.options=Array.from(e).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(e){this._options=e;for(const s of e)s.selected&&(this.value=s[this.valueKey]||"");!(this.value||this.getAttribute("value"))&&this._options.length>0&&(this.value=this._options[0][this.valueKey]),this.requestUpdate()}get options(){return this._options}firstUpdated(e){this.hasDoneFirstUpdate=!0,super.firstUpdated(e)}set value(e){e==null&&!this.hasDoneFirstUpdate||(e||(e=""),this._value!=e&&(this._value=e,this.updateFormPublisherValue(),this.requestUpdate()))}get value(){return this._value}updateFormPublisherValue(){this.setFormPublisherValue(this.value)}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps(),this.updateOptions()}get description(){return this._description}set description(e){this.hasAttribute("description")&&!this.forceAutoFill&&(e=this.getAttribute("description")),this._description=e,this.requestUpdate()}get label(){return this._label}set label(e){this.hasAttribute("label")&&!this.forceAutoFill&&(e=this.getAttribute("label")),this._label=e,this.requestUpdate()}willUpdate(e){this.hasSlotOrProps(),super.willUpdate(e)}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length),this.hasSuffix=!!this.slotSuffixNodes?.length,this.hasPrefix=!!this.slotPrefixNodes?.length}validateFormElement(){const e=this.shadowRoot?.querySelector("select");if(!e||e.checkValidity())return;const t=this.getFormPublisher();t&&(t.isFormValid=!1),e.reportValidity()}render(){const e={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix};return v`
2434
2434
  <label
2435
2435
  for="form-element"
2436
2436
  class="${this.hasLabel?"form-label":"hidden"}"
2437
- >${this.label?U(this.label):""}<slot
2437
+ >${this.label?H(this.label):""}<slot
2438
2438
  name="label"
2439
2439
  @slotchange=${this.hasSlotOrProps}
2440
2440
  ></slot
2441
2441
  ></label>
2442
2442
 
2443
- <div class="form-control ${mr(e)}">
2443
+ <div class="form-control ${Pr(e)}">
2444
2444
  <slot name="prefix" @slotchange=${this.hasSlotOrProps}></slot>
2445
2445
  <div class="form-select-wrapper">
2446
2446
  <select
@@ -2451,14 +2451,14 @@
2451
2451
  ?disabled=${this.disabled}
2452
2452
  ?required=${this.required}
2453
2453
  ?multiple=${this.multiple}
2454
- size=${k(this.selectSize)}
2454
+ size=${$(this.selectSize)}
2455
2455
  ?autofocus=${this.autofocus}
2456
2456
  .value="${this.value}"
2457
2457
  class="form-element"
2458
- aria-label=${k(this.ariaLabel)}
2459
- aria-labelledby=${k(this.ariaLabelledby)}
2458
+ aria-label=${$(this.ariaLabel)}
2459
+ aria-labelledby=${$(this.ariaLabelledby)}
2460
2460
  >
2461
- ${ii(this.options,t=>t[this.valueKey],t=>{const s=this.value==t[this.valueKey];return v`<option
2461
+ ${ui(this.options,t=>t[this.valueKey],t=>{const s=this.value==t[this.valueKey];return v`<option
2462
2462
  ?selected=${s}
2463
2463
  value="${t[this.valueKey]}"
2464
2464
  >
@@ -2479,9 +2479,9 @@
2479
2479
  name="description"
2480
2480
  @slotchange=${this.hasSlotOrProps}
2481
2481
  class="${this.hasDescription?"form-description":"hidden"}"
2482
- >${this.description?v`${U(this.description)}`:""}</slot
2482
+ >${this.description?v`${H(this.description)}`:""}</slot
2483
2483
  >
2484
- `}};J.styles=[qt,fr,bi,gi,A`
2484
+ `}};nt.styles=[Zt,xr,Si,$i,S`
2485
2485
  .form-element {
2486
2486
  appearance: none;
2487
2487
  white-space: nowrap;
@@ -2534,11 +2534,11 @@
2534
2534
  :host([multiple]) sonic-icon {
2535
2535
  display: none !important;
2536
2536
  }
2537
- `],rt([a({type:String})],J.prototype,"valueKey",2),rt([a({type:String})],J.prototype,"wordingKey",2),rt([a({type:Boolean})],J.prototype,"multiple",2),rt([a({type:String,reflect:!0})],J.prototype,"size",2),rt([a({type:Number})],J.prototype,"selectSize",2),rt([a({type:String,reflect:!0})],J.prototype,"status",2),rt([a({type:Array})],J.prototype,"options",1),rt([a({reflect:!0})],J.prototype,"value",1),rt([a({type:Boolean})],J.prototype,"forceAutoFill",2),rt([a()],J.prototype,"description",1),rt([a()],J.prototype,"label",1),rt([mt({slot:"label",flatten:!0})],J.prototype,"slotLabelNodes",2),rt([mt({slot:"description",flatten:!0})],J.prototype,"slotDescriptionNodes",2),rt([mt({slot:"suffix",flatten:!0})],J.prototype,"slotSuffixNodes",2),rt([mt({slot:"prefix",flatten:!0})],J.prototype,"slotPrefixNodes",2),rt([T()],J.prototype,"hasDescription",2),rt([T()],J.prototype,"hasLabel",2),rt([T()],J.prototype,"hasSuffix",2),rt([T()],J.prototype,"hasPrefix",2),J=rt([S(Wh)],J);var Kh=Object.defineProperty,Gh=Object.getOwnPropertyDescriptor,At=(e,t,s,r)=>{for(var i=r>1?void 0:r?Gh(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Kh(t,s,i),i};const Yh="sonic-textarea";let vt=class extends oi(Ze(it(C))){constructor(){super(...arguments),this.size="md",this.readonly=!1,this.resize="vertical",this.hasDescription=!1,this.hasLabel=!1}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps()}willUpdate(e){this.hasSlotOrProps(),super.willUpdate(e)}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length)}validateFormElement(){const e=this.shadowRoot?.querySelector("textarea");if(!e||e.checkValidity())return;const t=this.getFormPublisher();t&&(t.isFormValid=!1),e.reportValidity()}render(){const e={resize:this.resize};return v`
2537
+ `],ht([a({type:String})],nt.prototype,"valueKey",2),ht([a({type:String})],nt.prototype,"wordingKey",2),ht([a({type:Boolean})],nt.prototype,"multiple",2),ht([a({type:String,reflect:!0})],nt.prototype,"size",2),ht([a({type:Number})],nt.prototype,"selectSize",2),ht([a({type:String,reflect:!0})],nt.prototype,"status",2),ht([a({type:Array})],nt.prototype,"options",1),ht([a({reflect:!0})],nt.prototype,"value",1),ht([a({type:Boolean})],nt.prototype,"forceAutoFill",2),ht([a()],nt.prototype,"description",1),ht([a()],nt.prototype,"label",1),ht([gt({slot:"label",flatten:!0})],nt.prototype,"slotLabelNodes",2),ht([gt({slot:"description",flatten:!0})],nt.prototype,"slotDescriptionNodes",2),ht([gt({slot:"suffix",flatten:!0})],nt.prototype,"slotSuffixNodes",2),ht([gt({slot:"prefix",flatten:!0})],nt.prototype,"slotPrefixNodes",2),ht([T()],nt.prototype,"hasDescription",2),ht([T()],nt.prototype,"hasLabel",2),ht([T()],nt.prototype,"hasSuffix",2),ht([T()],nt.prototype,"hasPrefix",2),nt=ht([C(id)],nt);var rd=Object.defineProperty,nd=Object.getOwnPropertyDescriptor,kt=(e,t,s,r)=>{for(var i=r>1?void 0:r?nd(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&rd(t,s,i),i};const od="sonic-textarea";let wt=class extends mi(ns(ct(P))){constructor(){super(...arguments),this.size="md",this.readonly=!1,this.resize="vertical",this.hasDescription=!1,this.hasLabel=!1}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps()}willUpdate(e){this.hasSlotOrProps(),super.willUpdate(e)}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length)}validateFormElement(){const e=this.shadowRoot?.querySelector("textarea");if(!e||e.checkValidity())return;const t=this.getFormPublisher();t&&(t.isFormValid=!1),e.reportValidity()}render(){const e={resize:this.resize};return v`
2538
2538
  <label
2539
2539
  for="${this.id||"form-element"}"
2540
2540
  class="${this.hasLabel?"form-label":"hidden"}"
2541
- >${this.label?U(this.label):""}<slot
2541
+ >${this.label?H(this.label):""}<slot
2542
2542
  name="label"
2543
2543
  @slotchange=${this.hasSlotOrProps}
2544
2544
  ></slot
@@ -2553,20 +2553,20 @@
2553
2553
  ?disabled=${this.disabled}
2554
2554
  ?required=${this.required}
2555
2555
  ?autofocus=${this.autofocus}
2556
- rows=${k(this.rows)}
2557
- cols=${k(this.cols)}
2558
- maxlength=${k(this.maxlength)}
2559
- minlength=${k(this.minlength)}
2556
+ rows=${$(this.rows)}
2557
+ cols=${$(this.cols)}
2558
+ maxlength=${$(this.maxlength)}
2559
+ minlength=${$(this.minlength)}
2560
2560
  ?readonly=${this.readonly}
2561
- spellcheck=${k(this.spellcheck)}
2562
- autocomplete=${k(this.autocomplete)}
2563
- tabindex=${k(this.tabindex)}
2564
- wrap=${k(this.wrap)}
2561
+ spellcheck=${$(this.spellcheck)}
2562
+ autocomplete=${$(this.autocomplete)}
2563
+ tabindex=${$(this.tabindex)}
2564
+ wrap=${$(this.wrap)}
2565
2565
  placeholder="${this.placeholder}"
2566
2566
  class="form-element textarea custom-scroll"
2567
- aria-label=${k(this.ariaLabel)}
2568
- aria-labelledby=${k(this.ariaLabelledby)}
2569
- style=${Pt(e)}
2567
+ aria-label=${$(this.ariaLabel)}
2568
+ aria-labelledby=${$(this.ariaLabelledby)}
2569
+ style=${Ct(e)}
2570
2570
  >
2571
2571
  ${this.value}</textarea
2572
2572
  >
@@ -2576,14 +2576,14 @@ ${this.value}</textarea
2576
2576
  name="description"
2577
2577
  @slotchange=${this.hasSlotOrProps}
2578
2578
  class="${this.hasDescription?"form-description":"hidden"}"
2579
- >${this.description?v`${U(this.description)}`:""}</slot
2579
+ >${this.description?v`${H(this.description)}`:""}</slot
2580
2580
  >
2581
- `}};vt.styles=[qt,fr,bi,gi,xs,A`
2581
+ `}};wt.styles=[Zt,xr,Si,$i,Es,S`
2582
2582
  textarea {
2583
2583
  overflow-y: auto !important;
2584
2584
  font-size: inherit;
2585
2585
  }
2586
- `],At([a({type:String})],vt.prototype,"size",2),At([a({type:Number})],vt.prototype,"rows",2),At([a({type:Number})],vt.prototype,"cols",2),At([a({type:Number})],vt.prototype,"maxlength",2),At([a({type:Number})],vt.prototype,"minlength",2),At([a({type:String})],vt.prototype,"wrap",2),At([a({type:Boolean})],vt.prototype,"readonly",2),At([a({type:String})],vt.prototype,"placeholder",2),At([a({type:String})],vt.prototype,"resize",2),At([mt({slot:"label",flatten:!0})],vt.prototype,"slotLabelNodes",2),At([mt({slot:"description",flatten:!0})],vt.prototype,"slotDescriptionNodes",2),At([T()],vt.prototype,"hasDescription",2),At([T()],vt.prototype,"hasLabel",2),vt=At([S(Yh)],vt);var Zh=Object.getOwnPropertyDescriptor,Xh=(e,t,s,r)=>{for(var i=r>1?void 0:r?Zh(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=o(i)||i);return i};let vr=class extends C{render(){return v`<slot></slot>`}};vr.styles=[A`
2586
+ `],kt([a({type:String})],wt.prototype,"size",2),kt([a({type:Number})],wt.prototype,"rows",2),kt([a({type:Number})],wt.prototype,"cols",2),kt([a({type:Number})],wt.prototype,"maxlength",2),kt([a({type:Number})],wt.prototype,"minlength",2),kt([a({type:String})],wt.prototype,"wrap",2),kt([a({type:Boolean})],wt.prototype,"readonly",2),kt([a({type:String})],wt.prototype,"placeholder",2),kt([a({type:String})],wt.prototype,"resize",2),kt([gt({slot:"label",flatten:!0})],wt.prototype,"slotLabelNodes",2),kt([gt({slot:"description",flatten:!0})],wt.prototype,"slotDescriptionNodes",2),kt([T()],wt.prototype,"hasDescription",2),kt([T()],wt.prototype,"hasLabel",2),wt=kt([C(od)],wt);var ad=Object.getOwnPropertyDescriptor,ld=(e,t,s,r)=>{for(var i=r>1?void 0:r?ad(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=o(i)||i);return i};let $r=class extends P{render(){return v`<slot></slot>`}};$r.styles=[S`
2587
2587
  :host {
2588
2588
  font-size: 1.15rem;
2589
2589
  line-height: 1.2;
@@ -2600,24 +2600,24 @@ ${this.value}</textarea
2600
2600
  font-size: 1rem;
2601
2601
  }
2602
2602
  }
2603
- `],vr=Xh([S("sonic-legend-description")],vr);var Qh=Object.defineProperty,Jh=Object.getOwnPropertyDescriptor,Fe=(e,t,s,r)=>{for(var i=r>1?void 0:r?Jh(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Qh(t,s,i),i};const td="sonic-legend";let oe=class extends C{constructor(){super(...arguments),this.forceAutoFill=!1}get description(){return this._description}set description(e){this.hasAttribute("description")&&!this.forceAutoFill&&(e=this.getAttribute("description")),this._description=e,this.requestUpdate()}get label(){return this._label}set label(e){this.hasAttribute("label")&&!this.forceAutoFill&&(e=this.getAttribute("label")),this._label=e,this.requestUpdate()}render(){return v`<legend part="legend">
2603
+ `],$r=ld([C("sonic-legend-description")],$r);var cd=Object.defineProperty,hd=Object.getOwnPropertyDescriptor,Ke=(e,t,s,r)=>{for(var i=r>1?void 0:r?hd(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&cd(t,s,i),i};const dd="sonic-legend";let fe=class extends P{constructor(){super(...arguments),this.forceAutoFill=!1}get description(){return this._description}set description(e){this.hasAttribute("description")&&!this.forceAutoFill&&(e=this.getAttribute("description")),this._description=e,this.requestUpdate()}get label(){return this._label}set label(e){this.hasAttribute("label")&&!this.forceAutoFill&&(e=this.getAttribute("label")),this._label=e,this.requestUpdate()}render(){return v`<legend part="legend">
2604
2604
  ${this.iconName?v`<div class="icon">
2605
2605
  <sonic-icon
2606
2606
  name=${this.iconName}
2607
- prefix=${k(this.iconPrefix)}
2608
- library=${k(this.iconLibrary)}
2607
+ prefix=${$(this.iconPrefix)}
2608
+ library=${$(this.iconLibrary)}
2609
2609
  ></sonic-icon>
2610
2610
  </div>`:""}
2611
2611
 
2612
2612
  <div class="legend-content">
2613
- ${U(this.label?this.label:"")}
2613
+ ${H(this.label?this.label:"")}
2614
2614
  ${this.description?v`<sonic-legend-description
2615
- >${U(this.description)}</sonic-legend-description
2615
+ >${H(this.description)}</sonic-legend-description
2616
2616
  >`:""}
2617
2617
  <slot></slot>
2618
2618
  </div>
2619
2619
  <slot name="suffix"></slot>
2620
- </legend>`}};oe.styles=[A`
2620
+ </legend>`}};fe.styles=[S`
2621
2621
  :host {
2622
2622
  --sc-legend-font-size: 1.5rem;
2623
2623
  --sc-legend-font-weight: var(--sc-font-weight-base, 400);
@@ -2661,19 +2661,19 @@ ${this.value}</textarea
2661
2661
  .legend-content {
2662
2662
  flex-grow: 1;
2663
2663
  }
2664
- `],Fe([a({type:Boolean})],oe.prototype,"forceAutoFill",2),Fe([a()],oe.prototype,"description",1),Fe([a()],oe.prototype,"label",1),Fe([a({type:String})],oe.prototype,"iconName",2),Fe([a({type:String})],oe.prototype,"iconLibrary",2),Fe([a({type:String})],oe.prototype,"iconPrefix",2),oe=Fe([S(td)],oe);var ed=Object.defineProperty,sd=Object.getOwnPropertyDescriptor,Gt=(e,t,s,r)=>{for(var i=r>1?void 0:r?sd(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&ed(t,s,i),i};const id="sonic-fieldset";let It=class extends it(C){constructor(){super(...arguments),this.disabled=!1,this.variant="default"}render(){return v`<fieldset
2665
- form="${k(this.form)}"
2664
+ `],Ke([a({type:Boolean})],fe.prototype,"forceAutoFill",2),Ke([a()],fe.prototype,"description",1),Ke([a()],fe.prototype,"label",1),Ke([a({type:String})],fe.prototype,"iconName",2),Ke([a({type:String})],fe.prototype,"iconLibrary",2),Ke([a({type:String})],fe.prototype,"iconPrefix",2),fe=Ke([C(dd)],fe);var ud=Object.defineProperty,pd=Object.getOwnPropertyDescriptor,Jt=(e,t,s,r)=>{for(var i=r>1?void 0:r?pd(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&ud(t,s,i),i};const fd="sonic-fieldset";let Ft=class extends ct(P){constructor(){super(...arguments),this.disabled=!1,this.variant="default"}render(){return v`<fieldset
2665
+ form="${$(this.form)}"
2666
2666
  ?disabled="${this.disabled}"
2667
2667
  >
2668
2668
  ${this.label?v` <sonic-legend
2669
- label=${k(this.label)}
2670
- description=${k(this.description)}
2671
- iconName=${k(this.iconName)}
2672
- iconPrefix=${k(this.iconPrefix)}
2673
- iconLibrary=${k(this.iconLibrary)}
2674
- ></sonic-legend>`:D}
2669
+ label=${$(this.label)}
2670
+ description=${$(this.description)}
2671
+ iconName=${$(this.iconName)}
2672
+ iconPrefix=${$(this.iconPrefix)}
2673
+ iconLibrary=${$(this.iconLibrary)}
2674
+ ></sonic-legend>`:k}
2675
2675
  <slot></slot>
2676
- </fieldset>`}};It.styles=[A`
2676
+ </fieldset>`}};Ft.styles=[S`
2677
2677
  :host {
2678
2678
  --sc-fieldset-mt: 0;
2679
2679
  --sc-fieldset-mb: 1rem;
@@ -2722,9 +2722,9 @@ ${this.value}</textarea
2722
2722
  ::slotted(sonic-legend:last-child) {
2723
2723
  margin-bottom: 0;
2724
2724
  }
2725
- `],Gt([a({type:Boolean,reflect:!0})],It.prototype,"disabled",2),Gt([a({type:String})],It.prototype,"form",2),Gt([a({type:String})],It.prototype,"label",2),Gt([a({type:String})],It.prototype,"description",2),Gt([a({type:String})],It.prototype,"iconName",2),Gt([a({type:String})],It.prototype,"iconLibrary",2),Gt([a({type:String})],It.prototype,"iconPrefix",2),Gt([a({type:Boolean,reflect:!0})],It.prototype,"tight",2),Gt([a({type:String,reflect:!0})],It.prototype,"variant",2),It=Gt([S(id)],It);var rd=Object.defineProperty,nd=Object.getOwnPropertyDescriptor,yr=(e,t,s,r)=>{for(var i=r>1?void 0:r?nd(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&rd(t,s,i),i};const od="sonic-form-layout";let Ds=class extends it(C){constructor(){super(...arguments),this._resizeController=new ho(this,{}),this.oneFormElement=!1}onSlotChange(){let e=this.slottedElements;const t=["sonic-input","sonic-select","sonic-input-autocomplete",".form-item-container"];e=e.filter(s=>t.includes(s.nodeName.toLowerCase())),this.oneFormElement=e.length==1}render(){const e={"cq--md":this.offsetWidth>440,"one-form-element":this.oneFormElement};return v`<div class=${mr(e)}>
2725
+ `],Jt([a({type:Boolean,reflect:!0})],Ft.prototype,"disabled",2),Jt([a({type:String})],Ft.prototype,"form",2),Jt([a({type:String})],Ft.prototype,"label",2),Jt([a({type:String})],Ft.prototype,"description",2),Jt([a({type:String})],Ft.prototype,"iconName",2),Jt([a({type:String})],Ft.prototype,"iconLibrary",2),Jt([a({type:String})],Ft.prototype,"iconPrefix",2),Jt([a({type:Boolean,reflect:!0})],Ft.prototype,"tight",2),Jt([a({type:String,reflect:!0})],Ft.prototype,"variant",2),Ft=Jt([C(fd)],Ft);var md=Object.defineProperty,bd=Object.getOwnPropertyDescriptor,Ar=(e,t,s,r)=>{for(var i=r>1?void 0:r?bd(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&md(t,s,i),i};const gd="sonic-form-layout";let Fs=class extends ct(P){constructor(){super(...arguments),this._resizeController=new xo(this,{}),this.oneFormElement=!1}onSlotChange(){let e=this.slottedElements;const t=["sonic-input","sonic-select","sonic-input-autocomplete",".form-item-container"];e=e.filter(s=>t.includes(s.nodeName.toLowerCase())),this.oneFormElement=e.length==1}render(){const e={"cq--md":this.offsetWidth>440,"one-form-element":this.oneFormElement};return v`<div class=${Pr(e)}>
2726
2726
  <slot @slotchange=${this.onSlotChange}></slot>
2727
- </div>`}};Ds.styles=[A`
2727
+ </div>`}};Fs.styles=[S`
2728
2728
  :host {
2729
2729
  display: block;
2730
2730
  }
@@ -2759,7 +2759,7 @@ ${this.value}</textarea
2759
2759
  ::slotted(sonic-divider) {
2760
2760
  --sc-divider-my: 0;
2761
2761
  }
2762
- `],yr([hs({flatten:!0})],Ds.prototype,"slottedElements",2),yr([a({type:Boolean})],Ds.prototype,"oneFormElement",2),Ds=yr([S(od)],Ds);var ad=Object.defineProperty,ld=Object.getOwnPropertyDescriptor,wr=(e,t,s,r)=>{for(var i=r>1?void 0:r?ld(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&ad(t,s,i),i};const cd="sonic-form-actions";let Os=class extends C{constructor(){super(...arguments),this.direction="row",this.justify="flex-start"}render(){const e={flexDirection:this.direction,justifyContent:this.justify};return v`<slot style=${Pt(e)}></slot>`}};Os.styles=[A`
2762
+ `],Ar([ys({flatten:!0})],Fs.prototype,"slottedElements",2),Ar([a({type:Boolean})],Fs.prototype,"oneFormElement",2),Fs=Ar([C(gd)],Fs);var vd=Object.defineProperty,yd=Object.getOwnPropertyDescriptor,kr=(e,t,s,r)=>{for(var i=r>1?void 0:r?yd(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&vd(t,s,i),i};const wd="sonic-form-actions";let js=class extends P{constructor(){super(...arguments),this.direction="row",this.justify="flex-start"}render(){const e={flexDirection:this.direction,justifyContent:this.justify};return v`<slot style=${Ct(e)}></slot>`}};js.styles=[S`
2763
2763
  :host {
2764
2764
  display: block;
2765
2765
  }
@@ -2768,20 +2768,20 @@ ${this.value}</textarea
2768
2768
  flex-wrap: wrap;
2769
2769
  gap: 0.3rem;
2770
2770
  }
2771
- `],wr([a({type:String})],Os.prototype,"direction",2),wr([a({type:String})],Os.prototype,"justify",2),Os=wr([S(cd)],Os);var hd=Object.defineProperty,dd=Object.getOwnPropertyDescriptor,_e=(e,t,s,r)=>{for(var i=r>1?void 0:r?dd(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&hd(t,s,i),i};const ud="sonic-group";let Yt=class extends C{constructor(){super(...arguments),this.alignItems="center",this.hasDescription=!1,this.hasLabel=!1}updated(){const e=this.querySelectorAll("sonic-input, sonic-button, sonic-select"),t=e.length;t>1&&e.forEach((s,r)=>{const i=s;r===0?(i.style.setProperty("--sc-item-rounded-tr","0"),i.style.setProperty("--sc-item-rounded-br","0")):r===t-1?(i.style.setProperty("--sc-item-rounded-tl","0"),i.style.setProperty("--sc-item-rounded-bl","0")):(i.style.setProperty("--sc-item-rounded-tr","0"),i.style.setProperty("--sc-item-rounded-br","0"),i.style.setProperty("--sc-item-rounded-tl","0"),i.style.setProperty("--sc-item-rounded-bl","0"))})}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps()}willUpdate(e){this.hasSlotOrProps(),super.willUpdate(e)}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length)}render(){const e={alignItems:this.alignItems};return v`<span class="${this.hasLabel?"form-label":"hidden"}"
2772
- >${this.label?U(this.label):""}<slot
2771
+ `],kr([a({type:String})],js.prototype,"direction",2),kr([a({type:String})],js.prototype,"justify",2),js=kr([C(wd)],js);var _d=Object.defineProperty,xd=Object.getOwnPropertyDescriptor,Ee=(e,t,s,r)=>{for(var i=r>1?void 0:r?xd(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&_d(t,s,i),i};const Pd="sonic-group";let te=class extends P{constructor(){super(...arguments),this.alignItems="center",this.hasDescription=!1,this.hasLabel=!1}updated(){const e=this.querySelectorAll("sonic-input, sonic-button, sonic-select"),t=e.length;t>1&&e.forEach((s,r)=>{const i=s;r===0?(i.style.setProperty("--sc-item-rounded-tr","0"),i.style.setProperty("--sc-item-rounded-br","0")):r===t-1?(i.style.setProperty("--sc-item-rounded-tl","0"),i.style.setProperty("--sc-item-rounded-bl","0")):(i.style.setProperty("--sc-item-rounded-tr","0"),i.style.setProperty("--sc-item-rounded-br","0"),i.style.setProperty("--sc-item-rounded-tl","0"),i.style.setProperty("--sc-item-rounded-bl","0"))})}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps()}willUpdate(e){this.hasSlotOrProps(),super.willUpdate(e)}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length)}render(){const e={alignItems:this.alignItems};return v`<span class="${this.hasLabel?"form-label":"hidden"}"
2772
+ >${this.label?H(this.label):""}<slot
2773
2773
  name="label"
2774
2774
  @slotchange=${this.hasSlotOrProps}
2775
2775
  ></slot
2776
2776
  ></span>
2777
- <slot class="main-slot" style=${Pt(e)}></slot>
2777
+ <slot class="main-slot" style=${Ct(e)}></slot>
2778
2778
  <slot
2779
2779
  name="description"
2780
2780
  @slotchange=${this.hasSlotOrProps}
2781
2781
  class="${this.hasDescription?"form-description":"hidden"}"
2782
2782
  >
2783
- ${this.description?v`${U(this.description)}`:""}
2784
- </slot>`}};Yt.styles=[qt,bi,gi,A`
2783
+ ${this.description?v`${H(this.description)}`:""}
2784
+ </slot>`}};te.styles=[Zt,Si,$i,S`
2785
2785
  :host {
2786
2786
  display: inline-block;
2787
2787
  vertical-align: middle;
@@ -2801,16 +2801,16 @@ ${this.value}</textarea
2801
2801
  ::slotted(sonic-select) {
2802
2802
  flex-grow: 1;
2803
2803
  }
2804
- `],_e([a({type:String})],Yt.prototype,"alignItems",2),_e([a({type:String})],Yt.prototype,"label",2),_e([a({type:String})],Yt.prototype,"description",2),_e([mt({slot:"label",flatten:!0})],Yt.prototype,"slotLabelNodes",2),_e([mt({slot:"description",flatten:!0})],Yt.prototype,"slotDescriptionNodes",2),_e([T()],Yt.prototype,"hasDescription",2),_e([T()],Yt.prototype,"hasLabel",2),Yt=_e([S(ud)],Yt);var pd=Object.defineProperty,fd=Object.getOwnPropertyDescriptor,Zt=(e,t,s,r)=>{for(var i=r>1?void 0:r?fd(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&pd(t,s,i),i};const md="sonic-image";let Mt=class extends C{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(e){if(this.transition){const t=this.shadowRoot?.querySelector("img");if(!t)return;t.onload=function(){t.classList.add("loaded")}}super.firstUpdated(e)}render(){const e={aspectRatio:this.cover?"auto":this.ratio,imageRendering:this.imageRendering,objectPosition:this.objectPosition};return v`<div part="image">
2804
+ `],Ee([a({type:String})],te.prototype,"alignItems",2),Ee([a({type:String})],te.prototype,"label",2),Ee([a({type:String})],te.prototype,"description",2),Ee([gt({slot:"label",flatten:!0})],te.prototype,"slotLabelNodes",2),Ee([gt({slot:"description",flatten:!0})],te.prototype,"slotDescriptionNodes",2),Ee([T()],te.prototype,"hasDescription",2),Ee([T()],te.prototype,"hasLabel",2),te=Ee([C(Pd)],te);var Cd=Object.defineProperty,Sd=Object.getOwnPropertyDescriptor,ee=(e,t,s,r)=>{for(var i=r>1?void 0:r?Sd(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Cd(t,s,i),i};const $d="sonic-image";let jt=class extends P{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(e){if(this.transition){const t=this.shadowRoot?.querySelector("img");if(!t)return;t.onload=function(){t.classList.add("loaded")}}super.firstUpdated(e)}render(){const e={aspectRatio:this.cover?"auto":this.ratio,imageRendering:this.imageRendering,objectPosition:this.objectPosition};return v`<div part="image">
2805
2805
  <picture part="picture"
2806
2806
  ><img
2807
2807
  part="img"
2808
2808
  src="${this.src}"
2809
2809
  loading="${this.loading}"
2810
2810
  alt="${this.alt}"
2811
- style=${Pt(e)}
2811
+ style=${Ct(e)}
2812
2812
  /></picture>
2813
- </div>`}};Mt.styles=[A`
2813
+ </div>`}};jt.styles=[S`
2814
2814
  :host {
2815
2815
  --sc-img-radius: 0;
2816
2816
  --sc-img-bg: var(--sc-placeholder-bg, rgba(12, 12, 12, 0.05));
@@ -2884,22 +2884,22 @@ ${this.value}</textarea
2884
2884
  opacity: 1;
2885
2885
  scale: 1;
2886
2886
  }
2887
- `],Zt([a({type:String})],Mt.prototype,"rounded",2),Zt([a({type:String})],Mt.prototype,"src",2),Zt([a({type:String})],Mt.prototype,"alt",2),Zt([a({type:String})],Mt.prototype,"loading",2),Zt([a({type:String,reflect:!0})],Mt.prototype,"transition",2),Zt([a({type:String})],Mt.prototype,"ratio",2),Zt([a({type:String})],Mt.prototype,"objectPosition",2),Zt([a({type:String})],Mt.prototype,"imageRendering",2),Zt([a({type:Boolean,reflect:!0})],Mt.prototype,"cover",2),Mt=Zt([S(md)],Mt);var bd=Object.defineProperty,gd=Object.getOwnPropertyDescriptor,kt=(e,t,s,r)=>{for(var i=r>1?void 0:r?gd(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&bd(t,s,i),i};const uo=e=>hs(e),vd="sonic-menu";let yt=class extends C{constructor(){super(...arguments),this.direction="column",this.gap="var(--sc-menu-gap)",this.align="left",this.shadow=null,this.moreShape="circle",this.scrollable=!1,this.observer=null,this.attributeObserver=null,this.minWidth="0",this.hasMoreElements=!1,this.handleScrollEnd=()=>{this.setScrollShadow(this.menuContent,this.direction)},this.updateIsScollable=()=>{this.scrollable&&(this.initScrollable(),this.setScrollShadow(this.menuContent,this.direction))}}checkIfMore(){this.hasMoreElements=!!this.moreElements?.length}moreSlotChange(){this.checkIfMore(),this.updateIsScollable()}updated(e){const t=this.querySelector(".more-btn");this.size&&t&&t.setAttribute("size",this.size),super.updated(e)}setDividersSize(e){e.forEach(t=>{t.setAttribute("size","sm"),this.direction=="row"?t.style.setProperty("margin","0 .1rem "):t.style.setProperty("margin"," 0.1rem 0")})}mainSlotChange(){this.setChildrenSize(this.menuChildren),this.setDividersSize(this.menuChildren),this.updateIsScollable(),this.updateScrollPosition(),this.observeMenuItemsAttributes()}observeMenuItemsAttributes(){this.attributeObserver?.disconnect(),this.attributeObserver=new MutationObserver(()=>{this.updateScrollPosition()}),this.menuChildren.forEach(e=>{this.attributeObserver.observe(e,{attributes:!0,attributeFilter:["active"]})})}updateScrollPosition(){if(this.scrollable){const e=this.menuChildren.filter(t=>t.hasAttribute("active")&&t.getAttribute("active")!=="false");e.length===1&&requestAnimationFrame(()=>{e[0].scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})})}}connectedCallback(){this.observer=new ResizeObserver(this.updateIsScollable),this.observer.observe(this),super.connectedCallback()}firstUpdated(e){this.menuContent.addEventListener("scrollend",this.handleScrollEnd)}disconnectedCallback(){this.observer?.disconnect(),this.attributeObserver?.disconnect(),this.menuContent.removeEventListener("scrollend",this.handleScrollEnd),super.disconnectedCallback()}initScrollable(){let e=!1,t,s;this.scrollable&&(this.addEventListener("mousedown",r=>{e=!0,this.classList.add("active"),t=r.pageX-this.menuContent.offsetLeft,s=this.menuContent.scrollLeft}),this.addEventListener("mouseleave",()=>{e=!1,this.classList.remove("active")}),this.addEventListener("mouseup",()=>{e=!1,this.classList.remove("active")}),this.addEventListener("mousemove",r=>{if(!e)return;r.preventDefault();const n=(r.pageX-this.menuContent.offsetLeft-t)*1.5;this.menuContent.scrollLeft=s-n,this.setScrollShadow(this.menuContent,this.direction)}),this.addEventListener("scroll",r=>{r.preventDefault(),this.setScrollShadow(this.menuContent,this.direction)}))}setScrollShadow(e,t){t=="row"?(e.scrollLeft>0?this.classList.add("shadow-left"):this.classList.remove("shadow-left"),e.scrollLeft<e.scrollWidth-e.offsetWidth?this.classList.add("shadow-right"):this.classList.remove("shadow-right")):t=="column"&&(e.scrollTop>0?this.classList.add("shadow-top"):this.classList.remove("shadow-top"),e.scrollTop<e.scrollHeight-(e.offsetHeight+1)?this.classList.add("shadow-bottom"):this.classList.remove("shadow-bottom"))}setChildrenSize(e){e.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 e={minWidth:this.minWidth,flexDirection:this.direction},t=this.direction=="row",s={gap:this.gap,flexDirection:this.direction},r={display:"block",alignSelf:t?"center":"flex-start",justifySelf:"center",flexDirection:this.direction},i={marginLeft:t?"":".55em"};return v`<menu
2887
+ `],ee([a({type:String})],jt.prototype,"rounded",2),ee([a({type:String})],jt.prototype,"src",2),ee([a({type:String})],jt.prototype,"alt",2),ee([a({type:String})],jt.prototype,"loading",2),ee([a({type:String,reflect:!0})],jt.prototype,"transition",2),ee([a({type:String})],jt.prototype,"ratio",2),ee([a({type:String})],jt.prototype,"objectPosition",2),ee([a({type:String})],jt.prototype,"imageRendering",2),ee([a({type:Boolean,reflect:!0})],jt.prototype,"cover",2),jt=ee([C($d)],jt);var Ad=Object.defineProperty,kd=Object.getOwnPropertyDescriptor,Dt=(e,t,s,r)=>{for(var i=r>1?void 0:r?kd(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Ad(t,s,i),i};const Po=e=>ys(e),Dd="sonic-menu";let _t=class extends P{constructor(){super(...arguments),this.direction="column",this.gap="var(--sc-menu-gap)",this.align="left",this.shadow=null,this.moreShape="circle",this.scrollable=!1,this.observer=null,this.attributeObserver=null,this.minWidth="0",this.hasMoreElements=!1,this.handleScrollEnd=()=>{this.setScrollShadow(this.menuContent,this.direction)},this.updateIsScollable=()=>{this.scrollable&&(this.initScrollable(),this.setScrollShadow(this.menuContent,this.direction))}}checkIfMore(){this.hasMoreElements=!!this.moreElements?.length}moreSlotChange(){this.checkIfMore(),this.updateIsScollable()}updated(e){const t=this.querySelector(".more-btn");this.size&&t&&t.setAttribute("size",this.size),super.updated(e)}setDividersSize(e){e.forEach(t=>{t.setAttribute("size","sm"),this.direction=="row"?t.style.setProperty("margin","0 .1rem "):t.style.setProperty("margin"," 0.1rem 0")})}mainSlotChange(){this.setChildrenSize(this.menuChildren),this.setDividersSize(this.menuChildren),this.updateIsScollable(),this.updateScrollPosition(),this.observeMenuItemsAttributes()}observeMenuItemsAttributes(){this.attributeObserver?.disconnect(),this.attributeObserver=new MutationObserver(()=>{this.updateScrollPosition()}),this.menuChildren.forEach(e=>{this.attributeObserver.observe(e,{attributes:!0,attributeFilter:["active"]})})}updateScrollPosition(){if(this.scrollable){const e=this.menuChildren.filter(t=>t.hasAttribute("active")&&t.getAttribute("active")!=="false");e.length===1&&requestAnimationFrame(()=>{e[0].scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})})}}connectedCallback(){this.observer=new ResizeObserver(this.updateIsScollable),this.observer.observe(this),super.connectedCallback()}firstUpdated(e){this.menuContent.addEventListener("scrollend",this.handleScrollEnd)}disconnectedCallback(){this.observer?.disconnect(),this.attributeObserver?.disconnect(),this.menuContent.removeEventListener("scrollend",this.handleScrollEnd),super.disconnectedCallback()}initScrollable(){let e=!1,t,s;this.scrollable&&(this.addEventListener("mousedown",r=>{e=!0,this.classList.add("active"),t=r.pageX-this.menuContent.offsetLeft,s=this.menuContent.scrollLeft}),this.addEventListener("mouseleave",()=>{e=!1,this.classList.remove("active")}),this.addEventListener("mouseup",()=>{e=!1,this.classList.remove("active")}),this.addEventListener("mousemove",r=>{if(!e)return;r.preventDefault();const n=(r.pageX-this.menuContent.offsetLeft-t)*1.5;this.menuContent.scrollLeft=s-n,this.setScrollShadow(this.menuContent,this.direction)}),this.addEventListener("scroll",r=>{r.preventDefault(),this.setScrollShadow(this.menuContent,this.direction)}))}setScrollShadow(e,t){t=="row"?(e.scrollLeft>0?this.classList.add("shadow-left"):this.classList.remove("shadow-left"),e.scrollLeft<e.scrollWidth-e.offsetWidth?this.classList.add("shadow-right"):this.classList.remove("shadow-right")):t=="column"&&(e.scrollTop>0?this.classList.add("shadow-top"):this.classList.remove("shadow-top"),e.scrollTop<e.scrollHeight-(e.offsetHeight+1)?this.classList.add("shadow-bottom"):this.classList.remove("shadow-bottom"))}setChildrenSize(e){e.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 e={minWidth:this.minWidth,flexDirection:this.direction},t=this.direction=="row",s={gap:this.gap,flexDirection:this.direction},r={display:"block",alignSelf:t?"center":"flex-start",justifySelf:"center",flexDirection:this.direction},i={marginLeft:t?"":".55em"};return v`<menu
2888
2888
  part="menu"
2889
2889
  class="shadowable"
2890
- style=${Pt(e)}
2890
+ style=${Ct(e)}
2891
2891
  >
2892
2892
  <slot
2893
2893
  @slotchange=${this.mainSlotChange}
2894
2894
  id="menu-content"
2895
- style=${Pt(s)}
2895
+ style=${Ct(s)}
2896
2896
  ></slot>
2897
2897
  <sonic-pop
2898
- style=${Pt(r)}
2898
+ style=${Ct(r)}
2899
2899
  class=${this.hasMoreElements?"":"hidden"}
2900
2900
  >
2901
2901
  <sonic-menu-item
2902
- style=${Pt(i)}
2902
+ style=${Ct(i)}
2903
2903
  class="more-btn"
2904
2904
  shape=${this.moreShape}
2905
2905
  align="center"
@@ -2915,7 +2915,7 @@ ${this.value}</textarea
2915
2915
  slot="content"
2916
2916
  ></slot>
2917
2917
  </sonic-pop>
2918
- </menu>`}};yt.styles=[A`
2918
+ </menu>`}};_t.styles=[S`
2919
2919
  :host {
2920
2920
  display: block;
2921
2921
  --sc-menu-gap: 0.15rem;
@@ -3043,27 +3043,27 @@ ${this.value}</textarea
3043
3043
  rgba(0, 0, 0, 0) 100%
3044
3044
  );
3045
3045
  }
3046
- `,lo],kt([a({type:String,reflect:!0})],yt.prototype,"size",2),kt([a({type:String,reflect:!0})],yt.prototype,"direction",2),kt([a({type:String})],yt.prototype,"gap",2),kt([a({type:String,reflect:!0})],yt.prototype,"align",2),kt([a({type:String,reflect:!0})],yt.prototype,"shadow",2),kt([a({type:String})],yt.prototype,"moreShape",2),kt([a({type:Boolean})],yt.prototype,"scrollable",2),kt([a({type:String})],yt.prototype,"minWidth",2),kt([he("menu")],yt.prototype,"menu",2),kt([he("#menu-content")],yt.prototype,"menuContent",2),kt([uo({selector:"*"})],yt.prototype,"menuChildren",2),kt([uo({slot:"more",selector:"*"})],yt.prototype,"moreElements",2),kt([T()],yt.prototype,"hasMoreElements",2),yt=kt([S(vd)],yt);var yd=Object.defineProperty,wd=Object.getOwnPropertyDescriptor,po=(e,t,s,r)=>{for(var i=r>1?void 0:r?wd(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&yd(t,s,i),i};const _d="sonic-modal-actions";let vi=class extends C{firstUpdated(e){this.buttons?.forEach(t=>{t.hasAttribute("hideModal")&&t.addEventListener("click",()=>{se.getClosestElement(this,"sonic-modal")?.hide()})}),super.firstUpdated(e)}render(){return v`<slot></slot>`}};vi.styles=[A`
3046
+ `,wo],Dt([a({type:String,reflect:!0})],_t.prototype,"size",2),Dt([a({type:String,reflect:!0})],_t.prototype,"direction",2),Dt([a({type:String})],_t.prototype,"gap",2),Dt([a({type:String,reflect:!0})],_t.prototype,"align",2),Dt([a({type:String,reflect:!0})],_t.prototype,"shadow",2),Dt([a({type:String})],_t.prototype,"moreShape",2),Dt([a({type:Boolean})],_t.prototype,"scrollable",2),Dt([a({type:String})],_t.prototype,"minWidth",2),Dt([we("menu")],_t.prototype,"menu",2),Dt([we("#menu-content")],_t.prototype,"menuContent",2),Dt([Po({selector:"*"})],_t.prototype,"menuChildren",2),Dt([Po({slot:"more",selector:"*"})],_t.prototype,"moreElements",2),Dt([T()],_t.prototype,"hasMoreElements",2),_t=Dt([C(Dd)],_t);var Od=Object.defineProperty,Ed=Object.getOwnPropertyDescriptor,Co=(e,t,s,r)=>{for(var i=r>1?void 0:r?Ed(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Od(t,s,i),i};const Ld="sonic-modal-actions";let Ai=class extends P{firstUpdated(e){this.buttons?.forEach(t=>{t.hasAttribute("hideModal")&&t.addEventListener("click",()=>{he.getClosestElement(this,"sonic-modal")?.hide()})}),super.firstUpdated(e)}render(){return v`<slot></slot>`}};Ai.styles=[S`
3047
3047
  :host {
3048
3048
  display: flex;
3049
3049
  gap: 0.5rem;
3050
3050
  margin-top: auto;
3051
3051
  padding-top: 1.5rem;
3052
3052
  }
3053
- `],po([hs({selector:"sonic-button"})],vi.prototype,"buttons",2),vi=po([S(_d)],vi);var xd=Object.defineProperty,Pd=Object.getOwnPropertyDescriptor,yi=(e,t,s,r)=>{for(var i=r>1?void 0:r?Pd(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&xd(t,s,i),i};const Cd="sonic-modal-close";let Es=class extends C{constructor(){super(...arguments),this.translation={fr:"Fermer la fenêtre",en:"Close window",de:"Fenster schließen",nl:"Venster sluiten",es:"Cerrar"}}connectedCallback(){super.connectedCallback(),this.lang=document.documentElement.lang?.split("-")[0]??"fr"}render(){return v`<sonic-button
3053
+ `],Co([ys({selector:"sonic-button"})],Ai.prototype,"buttons",2),Ai=Co([C(Ld)],Ai);var Td=Object.defineProperty,Id=Object.getOwnPropertyDescriptor,ki=(e,t,s,r)=>{for(var i=r>1?void 0:r?Id(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Td(t,s,i),i};const Md="sonic-modal-close";let zs=class extends P{constructor(){super(...arguments),this.translation={fr:"Fermer la fenêtre",en:"Close window",de:"Fenster schließen",nl:"Venster sluiten",es:"Cerrar"}}connectedCallback(){super.connectedCallback(),this.lang=document.documentElement.lang?.split("-")[0]??"fr"}render(){return v`<sonic-button
3054
3054
  noAutoFill
3055
3055
  data-aria-label=${this.translation[this.lang]}
3056
- reset=${k(this.reset)}
3056
+ reset=${$(this.reset)}
3057
3057
  shape="circle"
3058
3058
  @click=${this.handleClick}
3059
- type=${k(this.type)}
3059
+ type=${$(this.type)}
3060
3060
  ><sonic-icon name="cancel" size="lg"></sonic-icon
3061
- ></sonic-button>`}handleClick(){Y.getClosestElement(this,"sonic-modal").hide()}};yi([a()],Es.prototype,"translation",2),yi([a()],Es.prototype,"reset",2),yi([a()],Es.prototype,"type",2),Es=yi([S(Cd)],Es);var Sd=Object.getOwnPropertyDescriptor,$d=(e,t,s,r)=>{for(var i=r>1?void 0:r?Sd(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=o(i)||i);return i};const Ad="sonic-modal-content";let _r=class extends C{render(){return v`<slot></slot>`}};_r.styles=[A`
3061
+ ></sonic-button>`}handleClick(){Q.getClosestElement(this,"sonic-modal").hide()}};ki([a()],zs.prototype,"translation",2),ki([a()],zs.prototype,"reset",2),ki([a()],zs.prototype,"type",2),zs=ki([C(Md)],zs);var Nd=Object.getOwnPropertyDescriptor,Rd=(e,t,s,r)=>{for(var i=r>1?void 0:r?Nd(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=o(i)||i);return i};const Fd="sonic-modal-content";let Dr=class extends P{render(){return v`<slot></slot>`}};Dr.styles=[S`
3062
3062
  :host {
3063
3063
  display: block;
3064
3064
  width: 100%;
3065
3065
  }
3066
- `],_r=$d([S(Ad)],_r);var kd=Object.getOwnPropertyDescriptor,Dd=(e,t,s,r)=>{for(var i=r>1?void 0:r?kd(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=o(i)||i);return i};const Od="sonic-modal-subtitle";let xr=class extends C{render(){return v`<slot></slot>`}};xr.styles=[A`
3066
+ `],Dr=Rd([C(Fd)],Dr);var jd=Object.getOwnPropertyDescriptor,zd=(e,t,s,r)=>{for(var i=r>1?void 0:r?jd(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=o(i)||i);return i};const Ud="sonic-modal-subtitle";let Or=class extends P{render(){return v`<slot></slot>`}};Or.styles=[S`
3067
3067
  :host {
3068
3068
  font-size: 1.25rem;
3069
3069
  display: block;
@@ -3075,7 +3075,7 @@ ${this.value}</textarea
3075
3075
  font-weight: var(--sc-headings-font-weight, 700);
3076
3076
  font-style: var(--sc-headings-font-style, normal);
3077
3077
  }
3078
- `],xr=Dd([S(Od)],xr);var Ed=Object.getOwnPropertyDescriptor,Ld=(e,t,s,r)=>{for(var i=r>1?void 0:r?Ed(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=o(i)||i);return i};const Td="sonic-modal-title";let Pr=class extends C{render(){return v`<slot></slot>`}};Pr.styles=[A`
3078
+ `],Or=zd([C(Ud)],Or);var Vd=Object.getOwnPropertyDescriptor,Bd=(e,t,s,r)=>{for(var i=r>1?void 0:r?Vd(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=o(i)||i);return i};const Hd="sonic-modal-title";let Er=class extends P{render(){return v`<slot></slot>`}};Er.styles=[S`
3079
3079
  :host {
3080
3080
  font-weight: bold;
3081
3081
  font-size: 1.5rem;
@@ -3088,30 +3088,30 @@ ${this.value}</textarea
3088
3088
  font-weight: var(--sc-headings-font-weight, 700);
3089
3089
  font-style: var(--sc-headings-font-style, normal);
3090
3090
  }
3091
- `],Pr=Ld([S(Td)],Pr);const fo=new WeakMap;function Id(e){const t=fo.get(e);if(t)return t;const s=new CSSStyleSheet;return s.replaceSync(e.cssText),fo.set(e,s),s}function Md(e){return e instanceof Ei}function mo(e){return e?(Array.isArray(e)?e:[e]).flatMap(s=>Array.isArray(s)?mo(s):s instanceof CSSStyleSheet?[s]:Md(s)?[Id(s)]:[]):[]}var Nd=Object.defineProperty,Rd=Object.getOwnPropertyDescriptor,X=(e,t,s,r)=>{for(var i=r>1?void 0:r?Rd(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Nd(t,s,i),i};const bo="sonic-modal";let M=class extends it(C){constructor(){super(...arguments),this.forceAction=!1,this.noCloseButton=!1,this.removeOnHide=!1,this.removeHashOnHide=!1,this.align="left",this.maxWidth="min(100vw, 40rem)",this.maxHeight="90vh",this.width="100%",this.height="fit-content",this.effect="slide",this.fullScreen=!1,this.visible=!1,this.closeOnLocationChange=!1,this.location="",this._animationState="hidden",this._adoptedStyleSheets=[],this._animationConfig={quartOut:"cubic-bezier(0.165, 0.84, 0.44, 1)",quadOut:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",linear:"linear",translateY:"translateY(2.5rem)",durationIn:300,durationOut:300}}static create(e){const t=document.createElement(bo);return t.options=e,e.removeHashOnHide===!0&&t.setAttribute("removeHashOnHide","true"),e.removeOnHide===!0&&t.setAttribute("removeOnHide","true"),e.closeOnLocationChange===!0&&t.setAttribute("closeOnLocationChange","true"),e.maxWidth&&(t.maxWidth=e?.maxWidth),e.width&&(t.width=e?.width),e.maxHeight&&(t.maxHeight=e?.maxHeight),e.height&&(t.height=e?.height),e.forceAction&&(t.forceAction=!0),e.fullScreen&&(t.fullScreen=e?.fullScreen),e.effect&&(t.effect=e?.effect),e.noCloseButton&&(t.noCloseButton=!0),e.closeButtonType&&(t.closeButtonType=e?.closeButtonType),e.styleSheet&&(t.styleSheet=e?.styleSheet),e.paddingX&&(t.paddingX=e?.paddingX),e.paddingY&&(t.paddingY=e?.paddingY),e.zIndex&&(t.zIndex=e?.zIndex),Et.getPopContainer().appendChild(t),t.updateComplete.then(()=>{t.show()}),t}connectedCallback(){M.modals.push(this),at.onChange(this),super.connectedCallback()}disconnectedCallback(){at.offChange(this),M.modals.splice(M.modals.indexOf(this),1),this.removeEventListener("keydown",this.handleEscape),super.disconnectedCallback()}firstUpdated(){this.addEventListener("keydown",this.handleEscape)}willUpdate(e){if(this.closeOnLocationChange&&e.has("location")){const t=e.get("location");t&&this.location&&this.location!==t&&setTimeout(()=>{this.hide()},50)}e.has("zIndex")&&this.style.setProperty("--sc_z-index",this.zIndex||"990"),e.has("paddingX")&&this.style.setProperty("--sc-modal-px",this.paddingX||""),e.has("paddingY")&&this.style.setProperty("--sc-modal-py",this.paddingY||""),super.willUpdate(e)}updated(e){const t=!e.get("visible")&&this.visible,s=e.get("visible")&&!this.visible;t&&this._animationState==="hidden"?this.show():s&&this._animationState==="visible"&&this.hide(),e.has("styleSheet")&&this.syncAdoptedStyleSheets()}handleOverlayClick(e){!this.forceAction&&this._animationState==="visible"&&this.hide()}render(){const e={maxWidth:this.maxWidth,maxHeight:this.maxHeight,width:this.width,height:this.height,pointerEvents:this._animationState!=="hidden"?"auto":"none"},t={display:this.fullScreen?"none":"block",pointerEvents:this._animationState==="visible"?"auto":"none"};return v`
3091
+ `],Er=Bd([C(Hd)],Er);const So=new WeakMap;function qd(e){const t=So.get(e);if(t)return t;const s=new CSSStyleSheet;return s.replaceSync(e.cssText),So.set(e,s),s}function Wd(e){return e instanceof ji}function $o(e){return e?(Array.isArray(e)?e:[e]).flatMap(s=>Array.isArray(s)?$o(s):s instanceof CSSStyleSheet?[s]:Wd(s)?[qd(s)]:[]):[]}var Kd=Object.defineProperty,Gd=Object.getOwnPropertyDescriptor,et=(e,t,s,r)=>{for(var i=r>1?void 0:r?Gd(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Kd(t,s,i),i};const Ao="sonic-modal";let N=class extends ct(P){constructor(){super(...arguments),this.forceAction=!1,this.noCloseButton=!1,this.removeOnHide=!1,this.removeHashOnHide=!1,this.align="left",this.maxWidth="min(100vw, 40rem)",this.maxHeight="90vh",this.width="100%",this.height="fit-content",this.effect="slide",this.fullScreen=!1,this.visible=!1,this.closeOnLocationChange=!1,this.location="",this._animationState="hidden",this._adoptedStyleSheets=[],this._animationConfig={quartOut:"cubic-bezier(0.165, 0.84, 0.44, 1)",quadOut:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",linear:"linear",translateY:"translateY(2.5rem)",durationIn:300,durationOut:300}}static create(e){const t=document.createElement(Ao);return t.options=e,e.removeHashOnHide===!0&&t.setAttribute("removeHashOnHide","true"),e.removeOnHide===!0&&t.setAttribute("removeOnHide","true"),e.closeOnLocationChange===!0&&t.setAttribute("closeOnLocationChange","true"),e.maxWidth&&(t.maxWidth=e?.maxWidth),e.width&&(t.width=e?.width),e.maxHeight&&(t.maxHeight=e?.maxHeight),e.height&&(t.height=e?.height),e.forceAction&&(t.forceAction=!0),e.fullScreen&&(t.fullScreen=e?.fullScreen),e.effect&&(t.effect=e?.effect),e.noCloseButton&&(t.noCloseButton=!0),e.closeButtonType&&(t.closeButtonType=e?.closeButtonType),e.styleSheet&&(t.styleSheet=e?.styleSheet),e.paddingX&&(t.paddingX=e?.paddingX),e.paddingY&&(t.paddingY=e?.paddingY),e.zIndex&&(t.zIndex=e?.zIndex),It.getPopContainer().appendChild(t),t.updateComplete.then(()=>{t.show()}),t}connectedCallback(){N.modals.push(this),ut.onChange(this),super.connectedCallback()}disconnectedCallback(){ut.offChange(this),N.modals.splice(N.modals.indexOf(this),1),this.removeEventListener("keydown",this.handleEscape),super.disconnectedCallback()}firstUpdated(){this.addEventListener("keydown",this.handleEscape)}willUpdate(e){if(this.closeOnLocationChange&&e.has("location")){const t=e.get("location");t&&this.location&&this.location!==t&&setTimeout(()=>{this.hide()},50)}e.has("zIndex")&&this.style.setProperty("--sc_z-index",this.zIndex||"990"),e.has("paddingX")&&this.style.setProperty("--sc-modal-px",this.paddingX||""),e.has("paddingY")&&this.style.setProperty("--sc-modal-py",this.paddingY||""),super.willUpdate(e)}updated(e){const t=!e.get("visible")&&this.visible,s=e.get("visible")&&!this.visible;t&&this._animationState==="hidden"?this.show():s&&this._animationState==="visible"&&this.hide(),e.has("styleSheet")&&this.syncAdoptedStyleSheets()}handleOverlayClick(e){!this.forceAction&&this._animationState==="visible"&&this.hide()}render(){const e={maxWidth:this.maxWidth,maxHeight:this.maxHeight,width:this.width,height:this.height,pointerEvents:this._animationState!=="hidden"?"auto":"none"},t={display:this.fullScreen?"none":"block",pointerEvents:this._animationState==="visible"?"auto":"none"};return v`
3092
3092
  <div
3093
3093
  id="backdrop"
3094
3094
  @click=${this.handleOverlayClick}
3095
- style=${Pt(t)}
3095
+ style=${Ct(t)}
3096
3096
  ></div>
3097
3097
  <dialog
3098
3098
  id="modal"
3099
3099
  part="modal"
3100
3100
  class="custom-scroll"
3101
3101
  aria-modal="true"
3102
- style=${Pt(e)}
3102
+ style=${Ct(e)}
3103
3103
  >
3104
3104
  ${this._animationState!=="hidden"?v`<div id="modal-content">
3105
3105
  ${!this.forceAction&&!this.noCloseButton?v`<sonic-modal-close
3106
3106
  class="${this._animationState=="visible"?"animate-in":"animate-out"}"
3107
- type=${k(this.closeButtonType)}
3108
- ></sonic-modal-close>`:D}
3107
+ type=${$(this.closeButtonType)}
3108
+ ></sonic-modal-close>`:k}
3109
3109
  ${this.modalFragment("title")} ${this.modalFragment("subtitle")}
3110
3110
  ${this.modalFragment("content")} ${this.modalFragment("actions")}
3111
3111
  <slot></slot>
3112
- </div>`:D}
3112
+ </div>`:k}
3113
3113
  </dialog>
3114
- `}syncAdoptedStyleSheets(){if(!(this.renderRoot instanceof ShadowRoot))return;const e=mo(this.styleSheet),t=this.renderRoot.adoptedStyleSheets.filter(s=>!this._adoptedStyleSheets.includes(s));this.renderRoot.adoptedStyleSheets=[...t,...e],this._adoptedStyleSheets=e}modalFragment(e){const t=this.options?.[e];if(!t)return D;let s;switch(t instanceof Object?s=t:s=U(t),e){case"title":return v`<sonic-modal-title>${s}</sonic-modal-title>`;case"subtitle":return v`<sonic-modal-subtitle>${s}</sonic-modal-subtitle>`;case"content":return v`<sonic-modal-content>${s}</sonic-modal-content>`;case"actions":return v`<sonic-modal-actions>${s}</sonic-modal-actions>`;default:return D}}async show(){this._modalElement.show(),this._animationState="in",await this.animation("in"),this._animationState="visible",this.visible=!0,this.dispatchEvent(new CustomEvent("show")),this._modalElement.focus()}async hide(){this._animationState="out",this.dispatchEvent(new CustomEvent("hide")),await this.animation("out"),this._modalElement.close(),this._animationState="hidden",this.visible=!1,this.hasAttribute("resetDataProviderOnHide")&&L.get(this.getAttribute("resetDataProviderOnHide")).set({}),this.removeHashOnHide&&window.history.replaceState({},"",window.location.pathname),this.removeOnHide&&this.remove(),this.dispatchEvent(new CustomEvent("hidden"))}async dispose(){await this.hide(),this.remove()}static disposeAll(){M.modals.forEach(e=>{e.dispose()})}handleEscape(e){if(e.key==="Escape"){e.preventDefault();const t=M.modals.filter(s=>s._animationState!=="hidden"&&!s.forceAction);t.length>0&&t[t.length-1].hide()}}animation(e){return new Promise(t=>{const{quartOut:s,linear:r,translateY:i,durationIn:n,durationOut:o,quadOut:l}=this._animationConfig,c=this._modalElement;if(!c)return t();const h=e==="in",u=h?n:o,d=!this.fullScreen&&h?100:0;this.fullScreen||(h?this.style.setProperty("--sc_backdrop-opacity","0.8"):setTimeout(()=>{this.style.setProperty("--sc_backdrop-opacity","0")},150));const p=[];this.effect==="slide"&&(p.push(c.animate([{transform:h?i:"translateY(0)"},{transform:h?"translateY(0)":i}],{duration:u,easing:h?s:l,fill:"both",delay:d})),p.push(c.animate([{opacity:h?0:1},{opacity:h?1:0}],{duration:u,easing:r,fill:"both",delay:d}))),Promise.all(p.map(y=>y.finished)).then(()=>t())})}};M.styles=[xs,A`
3114
+ `}syncAdoptedStyleSheets(){if(!(this.renderRoot instanceof ShadowRoot))return;const e=$o(this.styleSheet),t=this.renderRoot.adoptedStyleSheets.filter(s=>!this._adoptedStyleSheets.includes(s));this.renderRoot.adoptedStyleSheets=[...t,...e],this._adoptedStyleSheets=e}modalFragment(e){const t=this.options?.[e];if(!t)return k;let s;switch(t instanceof Object?s=t:s=H(t),e){case"title":return v`<sonic-modal-title>${s}</sonic-modal-title>`;case"subtitle":return v`<sonic-modal-subtitle>${s}</sonic-modal-subtitle>`;case"content":return v`<sonic-modal-content>${s}</sonic-modal-content>`;case"actions":return v`<sonic-modal-actions>${s}</sonic-modal-actions>`;default:return k}}async show(){this._modalElement.show(),this._animationState="in",await this.animation("in"),this._animationState="visible",this.visible=!0,this.dispatchEvent(new CustomEvent("show")),this._modalElement.focus()}async hide(){this._animationState="out",this.dispatchEvent(new CustomEvent("hide")),await this.animation("out"),this._modalElement.close(),this._animationState="hidden",this.visible=!1,this.hasAttribute("resetDataProviderOnHide")&&L.get(this.getAttribute("resetDataProviderOnHide")).set({}),this.removeHashOnHide&&window.history.replaceState({},"",window.location.pathname),this.removeOnHide&&this.remove(),this.dispatchEvent(new CustomEvent("hidden"))}async dispose(){await this.hide(),this.remove()}static disposeAll(){N.modals.forEach(e=>{e.dispose()})}handleEscape(e){if(e.key==="Escape"){e.preventDefault();const t=N.modals.filter(s=>s._animationState!=="hidden"&&!s.forceAction);t.length>0&&t[t.length-1].hide()}}animation(e){return new Promise(t=>{const{quartOut:s,linear:r,translateY:i,durationIn:n,durationOut:o,quadOut:l}=this._animationConfig,c=this._modalElement;if(!c)return t();const h=e==="in",u=h?n:o,d=!this.fullScreen&&h?100:0;this.fullScreen||(h?this.style.setProperty("--sc_backdrop-opacity","0.8"):setTimeout(()=>{this.style.setProperty("--sc_backdrop-opacity","0")},150));const p=[];this.effect==="slide"&&(p.push(c.animate([{transform:h?i:"translateY(0)"},{transform:h?"translateY(0)":i}],{duration:u,easing:h?s:l,fill:"both",delay:d})),p.push(c.animate([{opacity:h?0:1},{opacity:h?1:0}],{duration:u,easing:r,fill:"both",delay:d}))),Promise.all(p.map(y=>y.finished)).then(()=>t())})}};N.styles=[Es,S`
3115
3115
  :host {
3116
3116
  --sc-modal-py: 2.5rem;
3117
3117
  --sc-modal-px: 1.5rem;
@@ -3262,14 +3262,14 @@ ${this.value}</textarea
3262
3262
  transform: scale(0) !important;
3263
3263
  transition: 0.2s linear !important;
3264
3264
  }
3265
- `],M.modals=[],X([a({type:Boolean})],M.prototype,"forceAction",2),X([a({type:Boolean})],M.prototype,"noCloseButton",2),X([a({type:Boolean})],M.prototype,"removeOnHide",2),X([a({type:Boolean})],M.prototype,"removeHashOnHide",2),X([a({type:String,reflect:!0})],M.prototype,"align",2),X([a({type:String})],M.prototype,"paddingX",2),X([a({type:String})],M.prototype,"paddingY",2),X([a({type:String})],M.prototype,"maxWidth",2),X([a({type:String})],M.prototype,"maxHeight",2),X([a({type:String})],M.prototype,"zIndex",2),X([a({type:String})],M.prototype,"width",2),X([a({type:String})],M.prototype,"height",2),X([a({type:String})],M.prototype,"effect",2),X([a({attribute:!1})],M.prototype,"styleSheet",2),X([a({type:Object})],M.prototype,"options",2),X([a({type:Boolean,reflect:!0})],M.prototype,"fullScreen",2),X([a({type:Boolean,reflect:!0})],M.prototype,"visible",2),X([a({type:String})],M.prototype,"closeButtonType",2),X([he("#modal")],M.prototype,"_modalElement",2),X([a({type:Boolean})],M.prototype,"closeOnLocationChange",2),X([T()],M.prototype,"location",2),X([T()],M.prototype,"_animationState",2),M=X([S(bo)],M),typeof window<"u"&&(window.SonicModal=M);var Fd=Object.defineProperty,jd=Object.getOwnPropertyDescriptor,Xt=(e,t,s,r)=>{for(var i=r>1?void 0:r?jd(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Fd(t,s,i),i};const zd={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty",default:"info-empty"},Ud="sonic-alert";let Nt=class extends C{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}connectedCallback(){if(this.dismissForever){const e=localStorage.getItem("sonic-alert-dismissed")||"{}";JSON.parse(e)[this.id]&&this.remove()}super.connectedCallback()}render(){return v`
3265
+ `],N.modals=[],et([a({type:Boolean})],N.prototype,"forceAction",2),et([a({type:Boolean})],N.prototype,"noCloseButton",2),et([a({type:Boolean})],N.prototype,"removeOnHide",2),et([a({type:Boolean})],N.prototype,"removeHashOnHide",2),et([a({type:String,reflect:!0})],N.prototype,"align",2),et([a({type:String})],N.prototype,"paddingX",2),et([a({type:String})],N.prototype,"paddingY",2),et([a({type:String})],N.prototype,"maxWidth",2),et([a({type:String})],N.prototype,"maxHeight",2),et([a({type:String})],N.prototype,"zIndex",2),et([a({type:String})],N.prototype,"width",2),et([a({type:String})],N.prototype,"height",2),et([a({type:String})],N.prototype,"effect",2),et([a({attribute:!1})],N.prototype,"styleSheet",2),et([a({type:Object})],N.prototype,"options",2),et([a({type:Boolean,reflect:!0})],N.prototype,"fullScreen",2),et([a({type:Boolean,reflect:!0})],N.prototype,"visible",2),et([a({type:String})],N.prototype,"closeButtonType",2),et([we("#modal")],N.prototype,"_modalElement",2),et([a({type:Boolean})],N.prototype,"closeOnLocationChange",2),et([T()],N.prototype,"location",2),et([T()],N.prototype,"_animationState",2),N=et([C(Ao)],N),typeof window<"u"&&(window.SonicModal=N);var Yd=Object.defineProperty,Zd=Object.getOwnPropertyDescriptor,se=(e,t,s,r)=>{for(var i=r>1?void 0:r?Zd(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Yd(t,s,i),i};const Xd={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty",default:"info-empty"},Qd="sonic-alert";let zt=class extends P{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}connectedCallback(){if(this.dismissForever){const e=localStorage.getItem("sonic-alert-dismissed")||"{}";JSON.parse(e)[this.id]&&this.remove()}super.connectedCallback()}render(){return v`
3266
3266
  <slot name="icon" class="${this.noIcon?"hidden":""}"
3267
- >${this.noIcon?D:v`<div>
3268
- ${this.status&&v`<sonic-icon name=${zd[this.status]}></sonic-icon>`}
3267
+ >${this.noIcon?k:v`<div>
3268
+ ${this.status&&v`<sonic-icon name=${Xd[this.status]}></sonic-icon>`}
3269
3269
  </div>`}</slot
3270
3270
  >
3271
3271
  <div class="content">
3272
- ${this.label?v`<span class="label">${U(this.label)}</span>`:D}
3272
+ ${this.label?v`<span class="label">${H(this.label)}</span>`:k}
3273
3273
  <div>${this.text}<slot></slot></div>
3274
3274
  </div>
3275
3275
  ${this.dismissible?v`<sonic-button
@@ -3280,8 +3280,8 @@ ${this.value}</textarea
3280
3280
  icon
3281
3281
  >
3282
3282
  <sonic-icon name="cancel"></sonic-icon>
3283
- </sonic-button>`:D}
3284
- `}close(){if(this.remove(),this.dismissForever){const e=localStorage.getItem("sonic-alert-dismissed")||"{}",t=JSON.parse(e);t[this.id]=!0,localStorage.setItem("sonic-alert-dismissed",JSON.stringify(t))}}};Nt.styles=[qt,A`
3283
+ </sonic-button>`:k}
3284
+ `}close(){if(this.remove(),this.dismissForever){const e=localStorage.getItem("sonic-alert-dismissed")||"{}",t=JSON.parse(e);t[this.id]=!0,localStorage.setItem("sonic-alert-dismissed",JSON.stringify(t))}}};zt.styles=[Zt,S`
3285
3285
  :host {
3286
3286
  --sc_color: var(--sc-base-content, #000);
3287
3287
  --sc_rounded: var(--sc-rounded);
@@ -3368,27 +3368,27 @@ ${this.value}</textarea
3368
3368
  top: 0.4rem;
3369
3369
  right: 0.3rem;
3370
3370
  }
3371
- `],Xt([a({type:String})],Nt.prototype,"label",2),Xt([a({type:Boolean,reflect:!0})],Nt.prototype,"noIcon",2),Xt([a({type:String})],Nt.prototype,"text",2),Xt([a({type:String})],Nt.prototype,"id",2),Xt([a({type:String,reflect:!0})],Nt.prototype,"size",2),Xt([a({type:Boolean,reflect:!0})],Nt.prototype,"dismissible",2),Xt([a({type:Boolean,reflect:!0})],Nt.prototype,"background",2),Xt([a({type:String,reflect:!0})],Nt.prototype,"status",2),Xt([a({type:Boolean,reflect:!0})],Nt.prototype,"dismissForever",2),Nt=Xt([S(Ud)],Nt);var Vd=Object.defineProperty,Bd=Object.getOwnPropertyDescriptor,Ls=(e,t,s,r)=>{for(var i=r>1?void 0:r?Bd(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Vd(t,s,i),i};const Hd="sonic-alert-messages";let je=class extends it(C){constructor(){super(...arguments),this.size="md",this.background=!1,this.noIcon=!1,this.messages=[]}render(){return this.messages?.length?v`<div class="container">
3372
- ${Hn(this.messages,e=>e.type=="public"?v`<sonic-alert
3371
+ `],se([a({type:String})],zt.prototype,"label",2),se([a({type:Boolean,reflect:!0})],zt.prototype,"noIcon",2),se([a({type:String})],zt.prototype,"text",2),se([a({type:String})],zt.prototype,"id",2),se([a({type:String,reflect:!0})],zt.prototype,"size",2),se([a({type:Boolean,reflect:!0})],zt.prototype,"dismissible",2),se([a({type:Boolean,reflect:!0})],zt.prototype,"background",2),se([a({type:String,reflect:!0})],zt.prototype,"status",2),se([a({type:Boolean,reflect:!0})],zt.prototype,"dismissForever",2),zt=se([C(Qd)],zt);var Jd=Object.defineProperty,tu=Object.getOwnPropertyDescriptor,Us=(e,t,s,r)=>{for(var i=r>1?void 0:r?tu(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Jd(t,s,i),i};const eu="sonic-alert-messages";let Ge=class extends ct(P){constructor(){super(...arguments),this.size="md",this.background=!1,this.noIcon=!1,this.messages=[]}render(){return this.messages?.length?v`<div class="container">
3372
+ ${to(this.messages,e=>e.type=="public"?v`<sonic-alert
3373
3373
  status=${e.status||"default"}
3374
- text=${k(e.content)}
3374
+ text=${$(e.content)}
3375
3375
  size=${this.size}
3376
3376
  ?noIcon=${this.noIcon}
3377
3377
  ?background=${this.background}
3378
- ></sonic-alert>`:D)}
3379
- </div>`:D}};je.styles=[A`
3378
+ ></sonic-alert>`:k)}
3379
+ </div>`:k}};Ge.styles=[S`
3380
3380
  .container {
3381
3381
  display: grid;
3382
3382
  gap: 0.5em;
3383
3383
  grid-template-columns: minmax(0, 1fr);
3384
3384
  width: 100%;
3385
3385
  }
3386
- `],Ls([a({type:String})],je.prototype,"size",2),Ls([a({type:Boolean})],je.prototype,"background",2),Ls([a({type:Boolean})],je.prototype,"noIcon",2),Ls([a({type:Array})],je.prototype,"messages",2),je=Ls([S(Hd)],je);var qd=Object.defineProperty,Wd=Object.getOwnPropertyDescriptor,go=(e,t,s,r)=>{for(var i=r>1?void 0:r?Wd(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&qd(t,s,i),i};const Kd="sonic-toast-message-subscriber";let Cr=class extends it(C){constructor(){super(...arguments),this._messages=[]}get messages(){return this._messages}set messages(e){this._messages=e,this.messages&&e.forEach(t=>{t.type=="public"&&I.add({text:t.content||"",status:t.status})})}render(){return D}};go([a({type:Array})],Cr.prototype,"messages",1),Cr=go([S(Kd)],Cr);var Gd=Object.defineProperty,Yd=Object.getOwnPropertyDescriptor,Ts=(e,t,s,r)=>{for(var i=r>1?void 0:r?Yd(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Gd(t,s,i),i};const Zd="sonic-tooltip";let ze=class extends C{constructor(){super(),this.label="",this.disabled=!1,this.focusable=!1,this.lastKeyWasTab=!1,this.handleKeyDown=e=>{e.key==="Tab"&&(this.lastKeyWasTab=!0)},this.handleMouseDown=()=>{this.lastKeyWasTab=!1,this.classList.remove("keyboard-focus")},this.handleFocusIn=()=>{this.lastKeyWasTab&&this.classList.add("keyboard-focus"),this.lastKeyWasTab=!1},this.handleFocusOut=()=>{this.classList.remove("keyboard-focus"),this.lastKeyWasTab=!1},this.boundHandleKeyDown=this.handleKeyDown.bind(this),this.boundHandleMouseDown=this.handleMouseDown.bind(this)}connectedCallback(){super.connectedCallback(),this.addEventListener("focusin",this.handleFocusIn),this.addEventListener("focusout",this.handleFocusOut),document.addEventListener("keydown",this.boundHandleKeyDown,!0),document.addEventListener("mousedown",this.boundHandleMouseDown,!0)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",this.handleFocusIn),this.removeEventListener("focusout",this.handleFocusOut),document.removeEventListener("keydown",this.boundHandleKeyDown,!0),document.removeEventListener("mousedown",this.boundHandleMouseDown,!0)}willUpdate(e){if(e.has("disabled")){const t=e.get("disabled")===!0;this.disabled?(this.setAttribute("tabindex","-1"),this.classList.remove("keyboard-focus")):!this.disabled&&t&&(this.focusable?this.setAttribute("tabindex","0"):this.removeAttribute("tabindex"))}e.has("focusable")&&(this.focusable&&!this.disabled?this.setAttribute("tabindex","0"):!this.focusable&&!this.disabled&&this.removeAttribute("tabindex")),super.willUpdate(e)}render(){const e=this.disabled||this.label==""?"disabled":"";return v`<div
3386
+ `],Us([a({type:String})],Ge.prototype,"size",2),Us([a({type:Boolean})],Ge.prototype,"background",2),Us([a({type:Boolean})],Ge.prototype,"noIcon",2),Us([a({type:Array})],Ge.prototype,"messages",2),Ge=Us([C(eu)],Ge);var su=Object.defineProperty,iu=Object.getOwnPropertyDescriptor,ko=(e,t,s,r)=>{for(var i=r>1?void 0:r?iu(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&su(t,s,i),i};const ru="sonic-toast-message-subscriber";let Lr=class extends ct(P){constructor(){super(...arguments),this._messages=[]}get messages(){return this._messages}set messages(e){this._messages=e,this.messages&&e.forEach(t=>{t.type=="public"&&I.add({text:t.content||"",status:t.status})})}render(){return k}};ko([a({type:Array})],Lr.prototype,"messages",1),Lr=ko([C(ru)],Lr);var nu=Object.defineProperty,ou=Object.getOwnPropertyDescriptor,Vs=(e,t,s,r)=>{for(var i=r>1?void 0:r?ou(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&nu(t,s,i),i};const au="sonic-tooltip";let Ye=class extends P{constructor(){super(),this.label="",this.disabled=!1,this.focusable=!1,this.lastKeyWasTab=!1,this.handleKeyDown=e=>{e.key==="Tab"&&(this.lastKeyWasTab=!0)},this.handleMouseDown=()=>{this.lastKeyWasTab=!1,this.classList.remove("keyboard-focus")},this.handleFocusIn=()=>{this.lastKeyWasTab&&this.classList.add("keyboard-focus"),this.lastKeyWasTab=!1},this.handleFocusOut=()=>{this.classList.remove("keyboard-focus"),this.lastKeyWasTab=!1},this.boundHandleKeyDown=this.handleKeyDown.bind(this),this.boundHandleMouseDown=this.handleMouseDown.bind(this)}connectedCallback(){super.connectedCallback(),this.addEventListener("focusin",this.handleFocusIn),this.addEventListener("focusout",this.handleFocusOut),document.addEventListener("keydown",this.boundHandleKeyDown,!0),document.addEventListener("mousedown",this.boundHandleMouseDown,!0)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",this.handleFocusIn),this.removeEventListener("focusout",this.handleFocusOut),document.removeEventListener("keydown",this.boundHandleKeyDown,!0),document.removeEventListener("mousedown",this.boundHandleMouseDown,!0)}willUpdate(e){if(e.has("disabled")){const t=e.get("disabled")===!0;this.disabled?(this.setAttribute("tabindex","-1"),this.classList.remove("keyboard-focus")):!this.disabled&&t&&(this.focusable?this.setAttribute("tabindex","0"):this.removeAttribute("tabindex"))}e.has("focusable")&&(this.focusable&&!this.disabled?this.setAttribute("tabindex","0"):!this.focusable&&!this.disabled&&this.removeAttribute("tabindex")),super.willUpdate(e)}render(){const e=this.disabled||this.label==""?"disabled":"";return v`<div
3387
3387
  data-tooltip-text="${this.label.trim().replace("&nbsp;"," ")}"
3388
3388
  class="tooltip ${e}"
3389
3389
  >
3390
3390
  <slot></slot>
3391
- </div>`}};ze.styles=[A`
3391
+ </div>`}};Ye.styles=[S`
3392
3392
  :host {
3393
3393
  position: relative;
3394
3394
  display: inline-flex;
@@ -3494,11 +3494,11 @@ ${this.value}</textarea
3494
3494
  bottom: 0;
3495
3495
  left: var(--sc-tooltip-position);
3496
3496
  }
3497
- `],Ts([a({type:String})],ze.prototype,"label",2),Ts([a({type:String,reflect:!0})],ze.prototype,"placement",2),Ts([a({type:Boolean})],ze.prototype,"disabled",2),Ts([a({type:Boolean})],ze.prototype,"focusable",2),ze=Ts([S(Zd)],ze);var Xd=Object.defineProperty,Qd=Object.getOwnPropertyDescriptor,Qt=(e,t,s,r)=>{for(var i=r>1?void 0:r?Qd(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Xd(t,s,i),i};const Jd="sonic-divider";let Rt=class extends C{constructor(){super(...arguments),this.label="",this.align="center",this.vertical=!1,this.noMargin=!1,this.dashed=!1,this.dotted=!1}firstUpdated(e){super.firstUpdated(e),(this.label||this.slotNodes?.length)&&this.divider?.classList.add("has-text")}render(){return v`<div part="divider">
3497
+ `],Vs([a({type:String})],Ye.prototype,"label",2),Vs([a({type:String,reflect:!0})],Ye.prototype,"placement",2),Vs([a({type:Boolean})],Ye.prototype,"disabled",2),Vs([a({type:Boolean})],Ye.prototype,"focusable",2),Ye=Vs([C(au)],Ye);var lu=Object.defineProperty,cu=Object.getOwnPropertyDescriptor,ie=(e,t,s,r)=>{for(var i=r>1?void 0:r?cu(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&lu(t,s,i),i};const hu="sonic-divider";let Ut=class extends P{constructor(){super(...arguments),this.label="",this.align="center",this.vertical=!1,this.noMargin=!1,this.dashed=!1,this.dotted=!1}firstUpdated(e){super.firstUpdated(e),(this.label||this.slotNodes?.length)&&this.divider?.classList.add("has-text")}render(){return v`<div part="divider">
3498
3498
  <span class="text"
3499
- >${U(this.label?this.label:"")}<slot></slot
3499
+ >${H(this.label?this.label:"")}<slot></slot
3500
3500
  ></span>
3501
- </div>`}};Rt.styles=[A`
3501
+ </div>`}};Ut.styles=[S`
3502
3502
  :host {
3503
3503
  --sc-divider-my: 0.5rem;
3504
3504
  --sc-divider-mx: 0;
@@ -3629,7 +3629,7 @@ ${this.value}</textarea
3629
3629
  :host([dashed]) {
3630
3630
  --sc-divider-border-style: dashed;
3631
3631
  }
3632
- `],Qt([mt({flatten:!0})],Rt.prototype,"slotNodes",2),Qt([he("div")],Rt.prototype,"divider",2),Qt([a({type:String})],Rt.prototype,"label",2),Qt([a({type:String,reflect:!0})],Rt.prototype,"size",2),Qt([a({type:String,reflect:!0})],Rt.prototype,"align",2),Qt([a({type:Boolean,reflect:!0})],Rt.prototype,"vertical",2),Qt([a({type:Boolean,reflect:!0})],Rt.prototype,"noMargin",2),Qt([a({type:Boolean,reflect:!0})],Rt.prototype,"dashed",2),Qt([a({type:Boolean,reflect:!0})],Rt.prototype,"dotted",2),Rt=Qt([S(Jd)],Rt);var tu=Object.getOwnPropertyDescriptor,eu=(e,t,s,r)=>{for(var i=r>1?void 0:r?tu(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=o(i)||i);return i};const su="sonic-card-header-description";let Sr=class extends C{render(){return v`<slot></slot>`}};Sr.styles=[A`
3632
+ `],ie([gt({flatten:!0})],Ut.prototype,"slotNodes",2),ie([we("div")],Ut.prototype,"divider",2),ie([a({type:String})],Ut.prototype,"label",2),ie([a({type:String,reflect:!0})],Ut.prototype,"size",2),ie([a({type:String,reflect:!0})],Ut.prototype,"align",2),ie([a({type:Boolean,reflect:!0})],Ut.prototype,"vertical",2),ie([a({type:Boolean,reflect:!0})],Ut.prototype,"noMargin",2),ie([a({type:Boolean,reflect:!0})],Ut.prototype,"dashed",2),ie([a({type:Boolean,reflect:!0})],Ut.prototype,"dotted",2),Ut=ie([C(hu)],Ut);var du=Object.getOwnPropertyDescriptor,uu=(e,t,s,r)=>{for(var i=r>1?void 0:r?du(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=o(i)||i);return i};const pu="sonic-card-header-description";let Tr=class extends P{render(){return v`<slot></slot>`}};Tr.styles=[S`
3633
3633
  :host() {
3634
3634
  display: block;
3635
3635
  font-size: 0.7em;
@@ -3637,16 +3637,16 @@ ${this.value}</textarea
3637
3637
  font-family: var(--sc-font-family-base, sans-serif);
3638
3638
  font-weight: var(--sc-font-style-base, normal);
3639
3639
  }
3640
- `],Sr=eu([S(su)],Sr);var iu=Object.defineProperty,ru=Object.getOwnPropertyDescriptor,$r=(e,t,s,r)=>{for(var i=r>1?void 0:r?ru(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&iu(t,s,i),i};const nu="sonic-card-header";let Is=class extends C{render(){return v`
3640
+ `],Tr=uu([C(pu)],Tr);var fu=Object.defineProperty,mu=Object.getOwnPropertyDescriptor,Ir=(e,t,s,r)=>{for(var i=r>1?void 0:r?mu(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&fu(t,s,i),i};const bu="sonic-card-header";let Bs=class extends P{render(){return v`
3641
3641
  <div class="header-content">
3642
- ${U(this.label)}
3642
+ ${H(this.label)}
3643
3643
  ${this.description?v`<sonic-card-header-description
3644
- >${U(this.description)}</sonic-card-header-description
3645
- >`:D}
3644
+ >${H(this.description)}</sonic-card-header-description
3645
+ >`:k}
3646
3646
  <slot></slot>
3647
3647
  </div>
3648
3648
  <slot name="suffix"></slot>
3649
- `}};Is.styles=[A`
3649
+ `}};Bs.styles=[S`
3650
3650
  :host {
3651
3651
  --sc-card-header-mb: 1.35rem;
3652
3652
  --sc-card-header-font-size: 1.875rem;
@@ -3684,15 +3684,15 @@ ${this.value}</textarea
3684
3684
  ::slotted(sonic-card-header-description) {
3685
3685
  margin-top: 0.1em;
3686
3686
  }
3687
- `],$r([a()],Is.prototype,"label",2),$r([a()],Is.prototype,"description",2),Is=$r([S(nu)],Is);var ou=Object.getOwnPropertyDescriptor,au=(e,t,s,r)=>{for(var i=r>1?void 0:r?ou(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=o(i)||i);return i};const lu="sonic-card-main";let Ar=class extends C{render(){return v`<slot></slot>`}};Ar.styles=[A`
3687
+ `],Ir([a()],Bs.prototype,"label",2),Ir([a()],Bs.prototype,"description",2),Bs=Ir([C(bu)],Bs);var gu=Object.getOwnPropertyDescriptor,vu=(e,t,s,r)=>{for(var i=r>1?void 0:r?gu(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=o(i)||i);return i};const yu="sonic-card-main";let Mr=class extends P{render(){return v`<slot></slot>`}};Mr.styles=[S`
3688
3688
  :host {
3689
3689
  display: block;
3690
3690
  }
3691
- `],Ar=au([S(lu)],Ar);var cu=Object.getOwnPropertyDescriptor,hu=(e,t,s,r)=>{for(var i=r>1?void 0:r?cu(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=o(i)||i);return i};const du="sonic-card-footer";let kr=class extends C{render(){return v` <slot></slot> `}};kr.styles=[A`
3691
+ `],Mr=vu([C(yu)],Mr);var wu=Object.getOwnPropertyDescriptor,_u=(e,t,s,r)=>{for(var i=r>1?void 0:r?wu(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=o(i)||i);return i};const xu="sonic-card-footer";let Nr=class extends P{render(){return v` <slot></slot> `}};Nr.styles=[S`
3692
3692
  :host {
3693
3693
  display: block;
3694
3694
  }
3695
- `],kr=hu([S(du)],kr);const Dr=A`
3695
+ `],Nr=_u([C(xu)],Nr);const Rr=S`
3696
3696
  :host {
3697
3697
  --sc-_color: inherit;
3698
3698
  color: var(--sc-_color);
@@ -3717,7 +3717,7 @@ ${this.value}</textarea
3717
3717
  .inherit-color {
3718
3718
  color: var(--sc-_color);
3719
3719
  }
3720
- `,uu=A`
3720
+ `,Pu=S`
3721
3721
  :host {
3722
3722
  --sc-_color: inherit;
3723
3723
  --sc-_bg: inherit;
@@ -3780,7 +3780,7 @@ ${this.value}</textarea
3780
3780
  .inherit-bg {
3781
3781
  color: inherit;
3782
3782
  }
3783
- `;var pu=Object.defineProperty,fu=Object.getOwnPropertyDescriptor,vo=(e,t,s,r)=>{for(var i=r>1?void 0:r?fu(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&pu(t,s,i),i};const mu="sonic-card";let wi=class extends C{constructor(){super(...arguments),this.type="base"}render(){return v`<slot></slot> `}};wi.styles=[uu,A`
3783
+ `;var Cu=Object.defineProperty,Su=Object.getOwnPropertyDescriptor,Do=(e,t,s,r)=>{for(var i=r>1?void 0:r?Su(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Cu(t,s,i),i};const $u="sonic-card";let Di=class extends P{constructor(){super(...arguments),this.type="base"}render(){return v`<slot></slot> `}};Di.styles=[Pu,S`
3784
3784
  * {
3785
3785
  box-sizing: border-box;
3786
3786
  }
@@ -3810,7 +3810,7 @@ ${this.value}</textarea
3810
3810
  box-shadow: var(--sc-_shadow);
3811
3811
  color: var(--sc-_color);
3812
3812
  }
3813
- `],vo([a({type:String,reflect:!0})],wi.prototype,"type",2),wi=vo([S(mu)],wi);var bu=Object.defineProperty,gu=Object.getOwnPropertyDescriptor,Ms=(e,t,s,r)=>{for(var i=r>1?void 0:r?gu(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&bu(t,s,i),i};const vu="sonic-tr";let Ue=class extends it(C){constructor(){super(...arguments),this._metadata_={}}willUpdate(e){e.has("_metadata_")&&(this.even=!!this._metadata_.even,this.odd=!!this._metadata_.odd,this.last=!!this._metadata_.lastChild),super.willUpdate(e)}render(){return v`<slot></slot>`}};Ue.styles=[Dr,A`
3813
+ `],Do([a({type:String,reflect:!0})],Di.prototype,"type",2),Di=Do([C($u)],Di);var Au=Object.defineProperty,ku=Object.getOwnPropertyDescriptor,Hs=(e,t,s,r)=>{for(var i=r>1?void 0:r?ku(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Au(t,s,i),i};const Du="sonic-tr";let Ze=class extends ct(P){constructor(){super(...arguments),this._metadata_={}}willUpdate(e){e.has("_metadata_")&&(this.even=!!this._metadata_.even,this.odd=!!this._metadata_.odd,this.last=!!this._metadata_.lastChild),super.willUpdate(e)}render(){return v`<slot></slot>`}};Ze.styles=[Rr,S`
3814
3814
  :host {
3815
3815
  display: table-row;
3816
3816
  }
@@ -3828,14 +3828,14 @@ ${this.value}</textarea
3828
3828
  :host(:hover) {
3829
3829
  background: var(--sc-table-hover-bg) !important;
3830
3830
  }
3831
- `],Ms([a({type:Object})],Ue.prototype,"_metadata_",2),Ms([a({type:Boolean,reflect:!0})],Ue.prototype,"even",2),Ms([a({type:Boolean,reflect:!0})],Ue.prototype,"odd",2),Ms([a({type:Boolean,reflect:!0})],Ue.prototype,"last",2),Ue=Ms([S(vu)],Ue);var yu=Object.defineProperty,wu=Object.getOwnPropertyDescriptor,Ve=(e,t,s,r)=>{for(var i=r>1?void 0:r?wu(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&yu(t,s,i),i};const _u="sonic-th";let ae=class extends C{render(){const e={textAlign:this.align,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return v`<th
3831
+ `],Hs([a({type:Object})],Ze.prototype,"_metadata_",2),Hs([a({type:Boolean,reflect:!0})],Ze.prototype,"even",2),Hs([a({type:Boolean,reflect:!0})],Ze.prototype,"odd",2),Hs([a({type:Boolean,reflect:!0})],Ze.prototype,"last",2),Ze=Hs([C(Du)],Ze);var Ou=Object.defineProperty,Eu=Object.getOwnPropertyDescriptor,Xe=(e,t,s,r)=>{for(var i=r>1?void 0:r?Eu(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Ou(t,s,i),i};const Lu="sonic-th";let me=class extends P{render(){const e={textAlign:this.align,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return v`<th
3832
3832
  part="th"
3833
- style=${Pt(e)}
3834
- colspan=${k(this.colSpan)}
3835
- rowspan=${k(this.rowSpan)}
3833
+ style=${Ct(e)}
3834
+ colspan=${$(this.colSpan)}
3835
+ rowspan=${$(this.rowSpan)}
3836
3836
  >
3837
3837
  <slot></slot>
3838
- </th> `}};ae.styles=[Dr,A`
3838
+ </th> `}};me.styles=[Rr,S`
3839
3839
  :host {
3840
3840
  display: contents;
3841
3841
  background: var(--sc-table-bg);
@@ -3858,9 +3858,9 @@ ${this.value}</textarea
3858
3858
  :host([noBorder]) th {
3859
3859
  border-bottom: none;
3860
3860
  }
3861
- `],Ve([a({type:Number})],ae.prototype,"colSpan",2),Ve([a({type:Number})],ae.prototype,"rowSpan",2),Ve([a({type:String})],ae.prototype,"align",2),Ve([a({type:String})],ae.prototype,"minWidth",2),Ve([a({type:String})],ae.prototype,"maxWidth",2),Ve([a({type:String})],ae.prototype,"width",2),ae=Ve([S(_u)],ae);var xu=Object.defineProperty,Pu=Object.getOwnPropertyDescriptor,xe=(e,t,s,r)=>{for(var i=r>1?void 0:r?Pu(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&xu(t,s,i),i};const Cu="sonic-td";let Jt=class extends C{render(){const e={textAlign:this.align,verticalAlign:this.vAlign,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return v`<td part="td" style=${Pt(e)} colspan=${k(this.colSpan)} rowspan=${k(this.rowSpan)}>
3861
+ `],Xe([a({type:Number})],me.prototype,"colSpan",2),Xe([a({type:Number})],me.prototype,"rowSpan",2),Xe([a({type:String})],me.prototype,"align",2),Xe([a({type:String})],me.prototype,"minWidth",2),Xe([a({type:String})],me.prototype,"maxWidth",2),Xe([a({type:String})],me.prototype,"width",2),me=Xe([C(Lu)],me);var Tu=Object.defineProperty,Iu=Object.getOwnPropertyDescriptor,Le=(e,t,s,r)=>{for(var i=r>1?void 0:r?Iu(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Tu(t,s,i),i};const Mu="sonic-td";let re=class extends P{render(){const e={textAlign:this.align,verticalAlign:this.vAlign,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return v`<td part="td" style=${Ct(e)} colspan=${$(this.colSpan)} rowspan=${$(this.rowSpan)}>
3862
3862
  <slot></slot>
3863
- </td>`}};Jt.styles=[Dr,A`
3863
+ </td>`}};re.styles=[Rr,S`
3864
3864
  :host {
3865
3865
  display: contents;
3866
3866
  }
@@ -3873,13 +3873,13 @@ ${this.value}</textarea
3873
3873
  border-right: var(--sc-table-td-border-r, none);
3874
3874
  border-left: var(--sc-table-td-border-l, none);
3875
3875
  }
3876
- `],xe([a({type:Number})],Jt.prototype,"colSpan",2),xe([a({type:Number})],Jt.prototype,"rowSpan",2),xe([a({type:String})],Jt.prototype,"align",2),xe([a({type:String})],Jt.prototype,"vAlign",2),xe([a({type:String})],Jt.prototype,"minWidth",2),xe([a({type:String})],Jt.prototype,"maxWidth",2),xe([a({type:String})],Jt.prototype,"width",2),Jt=xe([S(Cu)],Jt);var Su=Object.getOwnPropertyDescriptor,$u=(e,t,s,r)=>{for(var i=r>1?void 0:r?Su(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=o(i)||i);return i};const Au="sonic-thead";let Or=class extends C{render(){return v`<slot></slot>`}};Or.styles=[A`
3876
+ `],Le([a({type:Number})],re.prototype,"colSpan",2),Le([a({type:Number})],re.prototype,"rowSpan",2),Le([a({type:String})],re.prototype,"align",2),Le([a({type:String})],re.prototype,"vAlign",2),Le([a({type:String})],re.prototype,"minWidth",2),Le([a({type:String})],re.prototype,"maxWidth",2),Le([a({type:String})],re.prototype,"width",2),re=Le([C(Mu)],re);var Nu=Object.getOwnPropertyDescriptor,Ru=(e,t,s,r)=>{for(var i=r>1?void 0:r?Nu(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=o(i)||i);return i};const Fu="sonic-thead";let Fr=class extends P{render(){return v`<slot></slot>`}};Fr.styles=[S`
3877
3877
  :host {
3878
3878
  display: table-header-group;
3879
3879
  }
3880
- `],Or=$u([S(Au)],Or);var ku=Object.getOwnPropertyDescriptor,Du=(e,t,s,r)=>{for(var i=r>1?void 0:r?ku(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=o(i)||i);return i};const Ou="sonic-tbody";let Er=class extends C{render(){return v`<tbody part="tbody">
3880
+ `],Fr=Ru([C(Fu)],Fr);var ju=Object.getOwnPropertyDescriptor,zu=(e,t,s,r)=>{for(var i=r>1?void 0:r?ju(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=o(i)||i);return i};const Uu="sonic-tbody";let jr=class extends P{render(){return v`<tbody part="tbody">
3881
3881
  <slot></slot>
3882
- </tbody>`}};Er.styles=[A`
3882
+ </tbody>`}};jr.styles=[S`
3883
3883
  :host {
3884
3884
  display: table-row-group;
3885
3885
  }
@@ -3896,29 +3896,29 @@ ${this.value}</textarea
3896
3896
  border-bottom: var(--sc-form-border-width) solid
3897
3897
  var(--sc-base-200, rgba(0, 0, 0, 0.12)) !important;
3898
3898
  }
3899
- `],Er=Du([S(Ou)],Er);var Eu=Object.getOwnPropertyDescriptor,Lu=(e,t,s,r)=>{for(var i=r>1?void 0:r?Eu(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=o(i)||i);return i};const Tu="sonic-tfoot";let Lr=class extends C{render(){return v`<tfoot>
3899
+ `],jr=zu([C(Uu)],jr);var Vu=Object.getOwnPropertyDescriptor,Bu=(e,t,s,r)=>{for(var i=r>1?void 0:r?Vu(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=o(i)||i);return i};const Hu="sonic-tfoot";let zr=class extends P{render(){return v`<tfoot>
3900
3900
  <slot></slot>
3901
- </tfoot>`}};Lr.styles=[A`
3901
+ </tfoot>`}};zr.styles=[S`
3902
3902
  :host {
3903
3903
  display: contents;
3904
3904
  }
3905
- `],Lr=Lu([S(Tu)],Lr);var Iu=Object.getOwnPropertyDescriptor,Mu=(e,t,s,r)=>{for(var i=r>1?void 0:r?Iu(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=o(i)||i);return i};const Nu="sonic-caption";let Tr=class extends C{render(){return v`<slot></slot>`}};Tr.styles=[A`
3905
+ `],zr=Bu([C(Hu)],zr);var qu=Object.getOwnPropertyDescriptor,Wu=(e,t,s,r)=>{for(var i=r>1?void 0:r?qu(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=o(i)||i);return i};const Ku="sonic-caption";let Ur=class extends P{render(){return v`<slot></slot>`}};Ur.styles=[S`
3906
3906
  :host {
3907
3907
  display: table-caption;
3908
3908
  font-size: 0.75rem;
3909
3909
  color: var(--sc-table-caption-color);
3910
3910
  padding: var(--sc-table-td-py) var(--sc-table-td-px) calc(2 * var(--sc-table-td-py));
3911
3911
  }
3912
- `],Tr=Mu([S(Nu)],Tr);var Ru=Object.defineProperty,Fu=Object.getOwnPropertyDescriptor,ns=(e,t,s,r)=>{for(var i=r>1?void 0:r?Fu(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Ru(t,s,i),i};const ju="sonic-table";let Pe=class extends C{render(){const e={maxHeight:this.maxHeight};return v`
3912
+ `],Ur=Wu([C(Ku)],Ur);var Gu=Object.defineProperty,Yu=Object.getOwnPropertyDescriptor,fs=(e,t,s,r)=>{for(var i=r>1?void 0:r?Yu(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&Gu(t,s,i),i};const Zu="sonic-table";let Te=class extends P{render(){const e={maxHeight:this.maxHeight};return v`
3913
3913
  <div
3914
3914
  class="table-container ${this.noCustomScroll?"":"custom-scroll"}"
3915
- style=${Pt(e)}
3915
+ style=${Ct(e)}
3916
3916
  >
3917
3917
  <div class="table">
3918
3918
  <slot></slot>
3919
3919
  </div>
3920
3920
  </div>
3921
- `}};Pe.styles=[xs,qt,A`
3921
+ `}};Te.styles=[Es,Zt,S`
3922
3922
  :host {
3923
3923
  --sc-table-fw: var(--sc-font-weight-base, 400);
3924
3924
  --sc-table-fst: var(--sc-font-style-base, normal);
@@ -3963,7 +3963,7 @@ ${this.value}</textarea
3963
3963
  --sc-table-td-border-b: var(--sc-table-bw) solid
3964
3964
  var(--sc-table-border-color);
3965
3965
  }
3966
- `],ns([a({type:String,reflect:!0})],Pe.prototype,"size",2),ns([a({type:Boolean,reflect:!0})],Pe.prototype,"bordered",2),ns([a({type:Boolean,reflect:!0})],Pe.prototype,"rounded",2),ns([a({type:Boolean,reflect:!0})],Pe.prototype,"noCustomScroll",2),ns([a({type:String})],Pe.prototype,"maxHeight",2),Pe=ns([S(ju)],Pe);const yo="AES-CBC",zu=256;async function Uu(){return crypto.subtle.generateKey({name:yo,length:zu},!0,["encrypt","decrypt"])}function Vu(e){return btoa(String.fromCharCode(...new Uint8Array(e)))}async function Bu(e,t,s){const r=new TextEncoder().encode(e),i=await crypto.subtle.encrypt({name:yo,iv:s.buffer},t,r);return Vu(i)}const Hu=A`
3966
+ `],fs([a({type:String,reflect:!0})],Te.prototype,"size",2),fs([a({type:Boolean,reflect:!0})],Te.prototype,"bordered",2),fs([a({type:Boolean,reflect:!0})],Te.prototype,"rounded",2),fs([a({type:Boolean,reflect:!0})],Te.prototype,"noCustomScroll",2),fs([a({type:String})],Te.prototype,"maxHeight",2),Te=fs([C(Zu)],Te);const Oo="AES-CBC",Xu=256;async function Qu(){return crypto.subtle.generateKey({name:Oo,length:Xu},!0,["encrypt","decrypt"])}function Ju(e){return btoa(String.fromCharCode(...new Uint8Array(e)))}async function tp(e,t,s){const r=new TextEncoder().encode(e),i=await crypto.subtle.encrypt({name:Oo,iv:s.buffer},t,r);return Ju(i)}const ep=S`
3967
3967
  @keyframes altcha-spinner {
3968
3968
  to {
3969
3969
  transform: rotate(360deg);
@@ -4186,7 +4186,7 @@ ${this.value}</textarea
4186
4186
  animation: altcha-spinner 0.75s infinite linear;
4187
4187
  transform-origin: center;
4188
4188
  }
4189
- `;var qu=Object.defineProperty,Wu=Object.getOwnPropertyDescriptor,_i=(e,t,s,r)=>{for(var i=r>1?void 0:r?Wu(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&qu(t,s,i),i};const Ku="supersoniks_altcha",Gu="Si2\\]X8M4!n9DCLd";let wo=!1;const Yu="sonic-captcha";let os=class extends be(C){constructor(){super(...arguments),this.key="",this.action=null,this.zIndex=9999,this.onCaptchaTokenChanged=e=>{e=="request_token"&&(this.formPublisher&&this.formPublisher.captchaToken.set(""),this.requestToken())},this.maxNumber=5e4,this.chalengeUrl="https://altcha.supersoniks.org/get-challenge"}connectedCallback(){if(document.location.protocol.includes("https")){if(!wo){const e=document.createElement("script");e.type="module",this.setAttribute("async",""),this.setAttribute("defer",""),e.src="https://cdn.jsdelivr.net/gh/altcha-org/altcha/dist/altcha.min.js",wo=!0,document.head.appendChild(e)}this.generateEncryptedKey(),super.connectedCallback(),this.formPublisher=Bs(this.getAncestorAttributeValue("headersDataProvider")??this.getAncestorAttributeValue("formDataProvider")),this.formPublisher&&!this.formPublisher.captchaToken.get()&&(this.formPublisher.needsCaptchaValidation.set(!0),this.formPublisher.captchaToken.onAssign(this.onCaptchaTokenChanged))}}disconnectedCallback(){this.formPublisher&&(this.formPublisher.captchaToken.offAssign(this.onCaptchaTokenChanged),this.formPublisher.captchaToken.set(""),this.formPublisher.needsCaptchaValidation.set(!1)),super.disconnectedCallback()}requestToken(){if(!this.formPublisher)return;const e=this.shadowRoot.querySelector("form");if(!e)return;const t=new FormData(e);this.formPublisher.captchaKey.set(this.key),this.formPublisher.captchaToken.set(t.get("altcha")?.toString()||"")}async generateEncryptedKey(){if(this.key)return;const e=await Uu(),t=new TextEncoder().encode(Gu),s=await Bu(Ku,e,t);this.key=s}render(){if(!this.key)return D;const t=se.getLanguage().match("^fr\\b")?{aria:"Visitez altcha.org",error:"La vérification a échoué, réessayez plus tard.",expired:"La vérification a expiré, réessayez.",footer:"Protégé par Altcha",label:"Je ne suis pas un robot.",verified:"Vérifié",verifying:"Vérification en cours...",wait:"Vérification en cours… Veuillez patienter."}:{aria:"Visit altcha.org",error:"Verification failed, try again later.",expired:"Verification expired, try again.",footer:"Protected by Altcha",label:"I'm not a robot.",verified:"Verified",verifying:"Verifying...",wait:"Verifying... Please wait."};return v`
4189
+ `;var sp=Object.defineProperty,ip=Object.getOwnPropertyDescriptor,Oi=(e,t,s,r)=>{for(var i=r>1?void 0:r?ip(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(i=(r?o(t,s,i):o(i))||i);return r&&i&&sp(t,s,i),i};const rp="supersoniks_altcha",np="Si2\\]X8M4!n9DCLd";let Eo=!1;const op="sonic-captcha";let ms=class extends $e(P){constructor(){super(...arguments),this.key="",this.action=null,this.zIndex=9999,this.onCaptchaTokenChanged=e=>{e=="request_token"&&(this.formPublisher&&this.formPublisher.captchaToken.set(""),this.requestToken())},this.maxNumber=5e4,this.chalengeUrl="https://altcha.supersoniks.org/get-challenge"}connectedCallback(){if(document.location.protocol.includes("https")){if(!Eo){const e=document.createElement("script");e.type="module",this.setAttribute("async",""),this.setAttribute("defer",""),e.src="https://cdn.jsdelivr.net/gh/altcha-org/altcha/dist/altcha.min.js",Eo=!0,document.head.appendChild(e)}this.generateEncryptedKey(),super.connectedCallback(),this.formPublisher=Qs(this.getAncestorAttributeValue("headersDataProvider")??this.getAncestorAttributeValue("formDataProvider")),this.formPublisher&&!this.formPublisher.captchaToken.get()&&(this.formPublisher.needsCaptchaValidation.set(!0),this.formPublisher.captchaToken.onAssign(this.onCaptchaTokenChanged))}}disconnectedCallback(){this.formPublisher&&(this.formPublisher.captchaToken.offAssign(this.onCaptchaTokenChanged),this.formPublisher.captchaToken.set(""),this.formPublisher.needsCaptchaValidation.set(!1)),super.disconnectedCallback()}requestToken(){if(!this.formPublisher)return;const e=this.shadowRoot.querySelector("form");if(!e)return;const t=new FormData(e);this.formPublisher.captchaKey.set(this.key),this.formPublisher.captchaToken.set(t.get("altcha")?.toString()||"")}async generateEncryptedKey(){if(this.key)return;const e=await Qu(),t=new TextEncoder().encode(np),s=await tp(rp,e,t);this.key=s}render(){if(!this.key)return k;const t=he.getLanguage().match("^fr\\b")?{aria:"Visitez altcha.org",error:"La vérification a échoué, réessayez plus tard.",expired:"La vérification a expiré, réessayez.",footer:"Protégé par Altcha",label:"Je ne suis pas un robot.",verified:"Vérifié",verifying:"Vérification en cours...",wait:"Vérification en cours… Veuillez patienter."}:{aria:"Visit altcha.org",error:"Verification failed, try again later.",expired:"Verification expired, try again.",footer:"Protected by Altcha",label:"I'm not a robot.",verified:"Verified",verifying:"Verifying...",wait:"Verifying... Please wait."};return v`
4190
4190
  <form>
4191
4191
  <altcha-widget
4192
4192
  challengeurl="${this.chalengeUrl}?key=${this.key}&maxNumber=${this.maxNumber}"
@@ -4198,7 +4198,7 @@ ${this.value}</textarea
4198
4198
  ></altcha-widget>
4199
4199
  </form>
4200
4200
  <slot></slot>
4201
- `}};os.styles=[Hu,A`
4201
+ `}};ms.styles=[ep,S`
4202
4202
  :host {
4203
4203
  --altcha-border-width: var(--sc-border-width, 1px);
4204
4204
  --altcha-border-radius: var(--sc-rounded);
@@ -4217,4 +4217,4 @@ ${this.value}</textarea
4217
4217
  --altcha-color-footer-bg: var(--sc-base-100, #000);
4218
4218
  --altcha-max-width: 260px;
4219
4219
  }
4220
- `],_i([a()],os.prototype,"key",2),_i([a()],os.prototype,"action",2),_i([a({type:Number})],os.prototype,"zIndex",2),os=_i([S(Yu)],os),window.queueMicrotask=window.queueMicrotask||function(e){Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))};class Zu extends ji{constructor(t){super(t),this.observables=new Set,this.cleanupWatchers=[],this.onAssign=s=>{this.setValue(s)},this.node=t.options?.host}teardownWatchers(){this.cleanupWatchers.forEach(t=>t()),this.cleanupWatchers=[]}normalizeInput(t){return An(t)?t.path:t}render(t){const s=this.normalizeInput(t),r=this.pathTemplate!==s;return r&&(this.pathTemplate=s,this.teardownWatchers()),(r||!this.resolvedPath)&&queueMicrotask(()=>{!this.isConnected||!this.pathTemplate||this.setupSubscription()}),Dt}setupSubscription(){const t=this.node,s=this.pathTemplate;if(!t||!s)return;this.teardownWatchers();const r=Lt(s);if(r.length>0)for(const i of r)this.cleanupWatchers.push(fe(ni.watcherStore,ni.hooked,t,i,()=>this.refreshSubscription()));this.refreshSubscription()}refreshSubscription(){const t=this.node,s=this.pathTemplate;if(!s)return;const r=Lt(s).length>0;let i=s;if(r)if(!t)i=null;else{const n=$t(t,s);i=n.ready?n.path:null}if(i!==this.resolvedPath){if(!i){this.unsubscribe(),this.resolvedPath=void 0,this.setValue(void 0);return}this.resolvedPath=i,this.subscribe(i)}}subscribe(t){this.unsubscribe(),this.onAssign=s=>{this.setValue(s)},this.observables=Us(t),this.observables.forEach(s=>{s.onAssign(this.onAssign)})}unsubscribe(){this.observables.forEach(t=>t.offAssign(this.onAssign)),this.observables.clear()}disconnected(){this.teardownWatchers(),this.unsubscribe(),this.resolvedPath=void 0}reconnected(){this.pathTemplate&&this.setupSubscription()}}const _o=ue(Zu),Xu=_o,Qu=_o;window["concorde-directives-data-provider"]=window["concorde-directives-data-provider"]||{},window["concorde-directives-data-provider"]={dp:Bs,dataProvider:Io,sub:Qu,subscribe:Xu,get:To,set:Mo};const Ju=I,tp=M;window["concorde-components"]=window["concorde-components"]||{},window["concorde-components"]={SonicToast:Ju,SonicModal:tp};const ep=window;ep.concordeIsLoaded=!0,window.dispatchEvent(new CustomEvent("concorde-loaded"))}));
4220
+ `],Oi([a()],ms.prototype,"key",2),Oi([a()],ms.prototype,"action",2),Oi([a({type:Number})],ms.prototype,"zIndex",2),ms=Oi([C(op)],ms),window.queueMicrotask=window.queueMicrotask||function(e){Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))};class ap extends Ki{constructor(t){super(t),this.observables=new Set,this.cleanupWatchers=[],this.onAssign=s=>{this.setValue(s)},this.node=t.options?.host}teardownWatchers(){this.cleanupWatchers.forEach(t=>t()),this.cleanupWatchers=[]}normalizeInput(t){return Rn(t)?t.path:t}render(t){const s=this.normalizeInput(t),r=this.pathTemplate!==s;return r&&(this.pathTemplate=s,this.teardownWatchers()),(r||!this.resolvedPath)&&queueMicrotask(()=>{!this.isConnected||!this.pathTemplate||this.setupSubscription()}),Lt}setupSubscription(){const t=this.node,s=this.pathTemplate;if(!t||!s)return;this.teardownWatchers();const r=Nt(s);if(r.length>0)for(const i of r)this.cleanupWatchers.push(Ce(fi.watcherStore,fi.hooked,t,i,()=>this.refreshSubscription()));this.refreshSubscription()}refreshSubscription(){const t=this.node,s=this.pathTemplate;if(!s)return;const r=Nt(s).length>0;let i=s;if(r)if(!t)i=null;else{const n=At(t,s);i=n.ready?n.path:null}if(i!==this.resolvedPath){if(!i){this.unsubscribe(),this.resolvedPath=void 0,this.setValue(void 0);return}this.resolvedPath=i,this.subscribe(i)}}subscribe(t){this.unsubscribe(),this.onAssign=s=>{this.setValue(s)},this.observables=Zs(t),this.observables.forEach(s=>{s.onAssign(this.onAssign)})}unsubscribe(){this.observables.forEach(t=>t.offAssign(this.onAssign)),this.observables.clear()}disconnected(){this.teardownWatchers(),this.unsubscribe(),this.resolvedPath=void 0}reconnected(){this.pathTemplate&&this.setupSubscription()}}const Lo=xe(ap),lp=Lo,cp=Lo;window["concorde-directives-data-provider"]=window["concorde-directives-data-provider"]||{},window["concorde-directives-data-provider"]={dp:Qs,dataProvider:qo,sub:cp,subscribe:lp,get:Ho,set:Wo};const hp=I,dp=N;window["concorde-components"]=window["concorde-components"]||{},window["concorde-components"]={SonicToast:hp,SonicModal:dp};const up=window;up.concordeIsLoaded=!0,window.dispatchEvent(new CustomEvent("concorde-loaded"))}));