@supersoniks/concorde 4.9.0 → 4.9.2

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 (123) hide show
  1. package/build-infos.json +1 -1
  2. package/concorde-core.bundle.js +195 -195
  3. package/concorde-core.es.js +3390 -3370
  4. package/dist/concorde-core.bundle.js +195 -195
  5. package/dist/concorde-core.es.js +3390 -3370
  6. package/dist/docs-mock-api-sw.js +3 -1
  7. package/dist/docs-mock-api-sw.js.map +2 -2
  8. package/dist/js/core/decorators/api.js +64 -12
  9. package/dist/js/core/decorators/api.js.map +1 -1
  10. package/dist/js/core/utils/HTML.js +4 -5
  11. package/dist/js/core/utils/HTML.js.map +1 -1
  12. package/dist/robots.txt +15 -1
  13. package/dist/types/core/decorators/api.d.ts +14 -1
  14. package/dist/types/core/decorators/api.d.ts.map +1 -1
  15. package/dist/types/core/utils/HTML.d.ts.map +1 -1
  16. package/docs/assets/{index-t0-i22oI.css → index-Bnp7gVaA.css} +1 -1
  17. package/docs/assets/{index-BEgZEIbv.js → index-hElUgV9_.js} +894 -552
  18. package/docs/crawl/core/components/functional/date/date.html +190 -0
  19. package/docs/crawl/core/components/functional/fetch/fetch.html +109 -0
  20. package/docs/crawl/core/components/functional/if/if.html +27 -0
  21. package/docs/crawl/core/components/functional/list/list.html +70 -0
  22. package/docs/crawl/core/components/functional/mix/mix.html +45 -0
  23. package/docs/crawl/core/components/functional/queue/queue.html +96 -0
  24. package/docs/crawl/core/components/functional/router/router.html +106 -0
  25. package/docs/crawl/core/components/functional/sdui/sdui.html +269 -0
  26. package/docs/crawl/core/components/functional/states/states.html +66 -0
  27. package/docs/crawl/core/components/functional/submit/submit.html +160 -0
  28. package/docs/crawl/core/components/functional/subscriber/subscriber.html +67 -0
  29. package/docs/crawl/core/components/functional/value/value.html +51 -0
  30. package/docs/crawl/core/components/ui/alert/alert.html +110 -0
  31. package/docs/crawl/core/components/ui/alert-messages/alert-messages.html +23 -0
  32. package/docs/crawl/core/components/ui/badge/badge.html +119 -0
  33. package/docs/crawl/core/components/ui/button/button.html +149 -0
  34. package/docs/crawl/core/components/ui/captcha/captcha.html +30 -0
  35. package/docs/crawl/core/components/ui/card/card.html +99 -0
  36. package/docs/crawl/core/components/ui/divider/divider.html +58 -0
  37. package/docs/crawl/core/components/ui/form/checkbox/checkbox.html +73 -0
  38. package/docs/crawl/core/components/ui/form/fieldset/fieldset.html +135 -0
  39. package/docs/crawl/core/components/ui/form/form-actions/form-actions.html +79 -0
  40. package/docs/crawl/core/components/ui/form/form-layout/form-layout.html +62 -0
  41. package/docs/crawl/core/components/ui/form/input/input.html +109 -0
  42. package/docs/crawl/core/components/ui/form/input-autocomplete/input-autocomplete.html +106 -0
  43. package/docs/crawl/core/components/ui/form/radio/radio.html +56 -0
  44. package/docs/crawl/core/components/ui/form/select/select.html +73 -0
  45. package/docs/crawl/core/components/ui/form/switch/switch.html +56 -0
  46. package/docs/crawl/core/components/ui/form/textarea/textarea.html +59 -0
  47. package/docs/crawl/core/components/ui/group/group.html +82 -0
  48. package/docs/crawl/core/components/ui/icon/icon.html +133 -0
  49. package/docs/crawl/core/components/ui/image/image.html +110 -0
  50. package/docs/crawl/core/components/ui/link/link.html +42 -0
  51. package/docs/crawl/core/components/ui/loader/loader.html +50 -0
  52. package/docs/crawl/core/components/ui/menu/menu.html +322 -0
  53. package/docs/crawl/core/components/ui/modal/modal.html +117 -0
  54. package/docs/crawl/core/components/ui/pop/pop.html +102 -0
  55. package/docs/crawl/core/components/ui/progress/progress.html +58 -0
  56. package/docs/crawl/core/components/ui/table/table.html +413 -0
  57. package/docs/crawl/core/components/ui/toast/toast.html +122 -0
  58. package/docs/crawl/core/components/ui/tooltip/tooltip.html +79 -0
  59. package/docs/crawl/docs/_core-concept/dataFlow.html +166 -0
  60. package/docs/crawl/docs/_core-concept/overview.html +66 -0
  61. package/docs/crawl/docs/_core-concept/subscriber.html +75 -0
  62. package/docs/crawl/docs/_decorators/ancestor-attribute.html +116 -0
  63. package/docs/crawl/docs/_decorators/auto-subscribe.html +202 -0
  64. package/docs/crawl/docs/_decorators/bind.html +141 -0
  65. package/docs/crawl/docs/_decorators/get.html +120 -0
  66. package/docs/crawl/docs/_decorators/handle.html +165 -0
  67. package/docs/crawl/docs/_decorators/on-assign.html +355 -0
  68. package/docs/crawl/docs/_decorators/patch.html +52 -0
  69. package/docs/crawl/docs/_decorators/post.html +102 -0
  70. package/docs/crawl/docs/_decorators/publish.html +61 -0
  71. package/docs/crawl/docs/_decorators/put.html +49 -0
  72. package/docs/crawl/docs/_decorators/subscribe.html +109 -0
  73. package/docs/crawl/docs/_decorators/wait-for-ancestors.html +137 -0
  74. package/docs/crawl/docs/_directives/sub.html +93 -0
  75. package/docs/crawl/docs/_getting-started/ai-agents.html +134 -0
  76. package/docs/crawl/docs/_getting-started/concorde-manual-install.html +100 -0
  77. package/docs/crawl/docs/_getting-started/concorde-outside.html +58 -0
  78. package/docs/crawl/docs/_getting-started/create-a-component.html +111 -0
  79. package/docs/crawl/docs/_getting-started/my-first-component.html +189 -0
  80. package/docs/crawl/docs/_getting-started/my-first-subscriber.html +110 -0
  81. package/docs/crawl/docs/_getting-started/pubsub.html +62 -0
  82. package/docs/crawl/docs/_getting-started/start.html +76 -0
  83. package/docs/crawl/docs/_getting-started/theming.html +85 -0
  84. package/docs/crawl/docs/_misc/api-configuration.html +149 -0
  85. package/docs/crawl/docs/_misc/dataProviderKey.html +135 -0
  86. package/docs/crawl/docs/_misc/docs-mock-api.html +146 -0
  87. package/docs/crawl/docs/_misc/dynamic-path.html +180 -0
  88. package/docs/crawl/docs/_misc/endpoint.html +50 -0
  89. package/docs/crawl/docs/_misc/html-integration.html +47 -0
  90. package/docs/crawl/hubs/decorators.html +467 -0
  91. package/docs/crawl/hubs/form-components.html +357 -0
  92. package/docs/crawl/hubs/remote-data.html +374 -0
  93. package/docs/crawl/index.html +99 -0
  94. package/docs/docs-mock-api-sw.js +3 -1
  95. package/docs/docs-mock-api-sw.js.map +2 -2
  96. package/docs/index.html +3 -3
  97. package/docs/llms-full.txt +5423 -0
  98. package/docs/llms.txt +102 -0
  99. package/docs/robots.txt +15 -1
  100. package/docs/sitemap.xml +231 -0
  101. package/docs/src/docs/_decorators/ancestor-attribute.md +56 -8
  102. package/docs/src/docs/_decorators/get.md +47 -1
  103. package/docs/src/docs/search/docs-search.json +92 -2
  104. package/docs/src/tsconfig.declarations.json +22 -0
  105. package/docs/src/tsconfig.emit.json +23 -0
  106. package/docs/src/tsconfig.json +3 -285
  107. package/index.html +1 -0
  108. package/package.json +1 -1
  109. package/public/docs-mock-api-sw.js +3 -1
  110. package/public/docs-mock-api-sw.js.map +2 -2
  111. package/public/robots.txt +15 -1
  112. package/scripts/generate-crawl-docs.mjs +569 -0
  113. package/scripts/post-build-docs.js +18 -14
  114. package/src/core/decorators/api.spec.ts +74 -4
  115. package/src/core/decorators/api.ts +103 -20
  116. package/src/core/decorators/subscriber/ancestorAttribute.spec.ts +42 -0
  117. package/src/core/utils/HTML.ts +4 -5
  118. package/src/docs/_decorators/get.md +47 -1
  119. package/src/docs/components/docs-demo-sources.ts +7 -2
  120. package/src/docs/example/decorators-demo-geo.ts +5 -0
  121. package/src/docs/example/decorators-demo-subscribe-publish-get-demos.ts +72 -31
  122. package/src/docs/mock-api/router.ts +3 -1
  123. package/src/docs/search/docs-search.json +92 -2
@@ -1,4 +1,4 @@
1
- (function(G){typeof define=="function"&&define.amd?define(G):G()})((function(){"use strict";var F,J;let G=class Tt{static getLanguage(){const t=document.documentElement.lang;return localStorage.getItem("SonicSelectedLanguage")||t}static getCookies(){return document.cookie.split(";").reduce((t,i)=>{const r=i.indexOf("=");return t[i.substring(0,r).trim()]=i.substring(r+1),t},{})}static everyAncestors(t,i){for(;t;){if(!i(t))return;t=t.parentNode||t.host}}static getScrollableAncestor(t){for(;t;){const i=t;if(i.nodeType===1){const r=window.getComputedStyle(i);if(r?.overflowY==="auto"||r?.overflowY==="scroll"||r?.overflowY==="hidden"||r?.overflowX==="auto"||r?.overflowX==="scroll"||r?.overflowX==="hidden")return t}t=t.parentNode||t.host}return null}static scopeAttributeNames(t){const i=t.toLowerCase();return i===t?[t]:[t,i]}static readScopeAttributeOnElement(t,i){for(const r of Tt.scopeAttributeNames(i))if(t.hasAttribute(r)){const e=t.getAttribute(r);if(e!=null&&e.length>0)return e}return null}static getAncestorAttributeValue(t,i){if(!t)return null;let r=t;for(;r;){if(r instanceof HTMLElement){const o=Tt.readScopeAttributeOnElement(r,i);if(o!=null&&o.length>0)return o}const e=r.parentNode||r.host;if(!e)break;r=e}return null}static getApiConfiguration(t){const i=Tt.getAncestorAttributeValue(t,"token"),r=Tt.getAncestorAttributeValue(t,"addHTTPResponse")!=null,e=Tt.getAncestorAttributeValue(t,"serviceURL");let o=null,n=null;const l=Tt.getAncestorAttributeValue(t,"tokenProvider"),c=Tt.getAncestorAttributeValue(t,"eventsApiToken");i||(o=Tt.getAncestorAttributeValue(t,"userName"),n=Tt.getAncestorAttributeValue(t,"password"));const h=Tt.getAncestorAttributeValue(t,"credentials")||void 0,p=t.getAttribute("cache"),d=t.hasAttribute("blockUntilDone"),f=t.hasAttribute("keepAlive");return{serviceURL:e,token:i,userName:o,password:n,authToken:c,tokenProvider:l,addHTTPResponse:r,credentials:h,cache:p,blockUntilDone:d,keepAlive:f}}static getClosestElement(t,i){for(;!(t.nodeName&&t.nodeName.toLowerCase()===i)&&(t.parentNode||t.host);)t=t.parentNode||t.host;return t.nodeName?t:null}static getClosestForm(t){return Tt.getClosestElement(t,"form")}static getAncestorsByTagNames(t,i){const r=new Set(i.map(n=>n.toLowerCase())),e=[];let o=t.parentNode||t.host;for(;o;)o instanceof Element&&r.has(o.tagName.toLowerCase())&&e.push(o),o=o.parentNode||o.host;return e}static getAncestorsBySelectors(t,i){const r=[];let e=t.parentNode||t.host;for(;e;){if(e instanceof Element)for(const o of i)try{if(e.matches(o)){r.push(e);break}}catch{}e=e.parentNode||e.host}return r}static async loadJS(t){return new Promise(async r=>{const e=document.createElement("script");e.src=t,e.onload=()=>r(!0),e.onerror=()=>r(!0),document.head.appendChild(e)})}static async loadCSS(t){return new Promise(async r=>{const e=document.createElement("link");e.type="text/css",e.rel="stylesheet",e.href=t,e.onload=()=>r(!0),e.onerror=()=>r(!0),document.head.appendChild(e)})}};const ui=s=>{const t=document.documentElement,i=new MutationObserver(e=>{for(let o of e)o.type==="attributes"&&o.attributeName==="lang"&&s()}),r={attributes:!0,attributeFilter:["lang"]};i.observe(t,r)};let Os=class{static ucFirst(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.substring(1)}static minutesDuration(t,i="",r="long"){i||(i=G.getLanguage());const e=(h,p)=>[Math.floor(h/p),h%p];function o(h,p,d){return new Intl.NumberFormat(h,{style:"unit",unit:p,unitDisplay:d}).format}const[n,l]=e(t,60),c=[];return n&&c.push(o(i,"hour",r)(n)),l&&c.push(o(i,"minute",r)(l)),new Intl.ListFormat(i,{style:"long",type:"conjunction"}).format(c)}static js(t){try{return Function("return "+t)()}catch{return""}}};class vr{constructor(t){this.path=t}toString(){return this.path}}function yr(s){return new Proxy(s,{get(t,i){if(i==="path")return t.path;if(i==="toString")return t.toString.bind(t);if(i===Symbol.toStringTag)return"DataProviderKey";if(typeof i=="symbol")return t[i];const r=t.path?`${t.path}.${String(i)}`:String(i);return yr(new vr(r))}})}const Qo=/\$\{|\{\$/;function Jo(s){return Qo.test(s)}function pi(s){const t=typeof s=="string"?s:s.path;if(Jo(t))throw new Error("Static publisher path required for get/set/dp. Use @subscribe, @publish, or @handle for dynamic DataProviderKey paths.");return t}const Je=function(s){return this instanceof Je?yr(new vr(s)):new Je(s)};let ot=class se{static shallowEqual(t,i,r=!0){const e=Object.keys(t),o=Object.keys(i);if(e.length!==o.length&&r)return!1;for(const n of e){const l=t[n],c=i[n];if(r?l!==c:l!=c)return!1}return!0}static deepEqual(t,i,r=!0){const e=Object.keys(t),o=Object.keys(i);if(e.length!==o.length&&r)return!1;for(const n of e){const l=t[n],c=i[n],h=se.isObject(l)&&se.isObject(c),p=r?l!==c:l!=c;if(h&&!se.deepEqual(l,c)||!h&&p)return!1}return!0}static isObject(t){return t!=null&&typeof t=="object"}static isUndefindOrNull(t){return t==null}static isEmpty(t){return se.isUndefindOrNull(t)?!0:Object.keys(t).length===0}static traverse(t,i,r=!1){for(const e of i){const o=t[e];if(o===void 0)return;r&&se.isObject(o)?t=Object.assign(Array.isArray(o)?[]:{},t,o):t=t[e]}return t}static traverseDotNotation(t,i,r=!1){return se.traverse(t,i.split("."),r)}static getURLSearchArray(t,i=""){let r=[];for(let e in t){const o=t[e];i&&(e=i+"["+e+"]"),se.isObject(o)?r=[...r,...this.getURLSearchArray(o,e)]:r.push(`${e}=${o}`)}return r}static getURLSearchString(t){return se.getURLSearchArray(t,"").join("&")}};const mt=ot.traverseDotNotation;let tn=class{static async queueTaskPromise(){return new Promise(t=>{window.queueMicrotask(()=>t(null))})}static async delayPromise(t){return new Promise(i=>{setTimeout(i,t)})}},_r="sonic";typeof __SONIC_PREFIX__<"u"&&(_r=__SONIC_PREFIX__);let wr=_r.replace(/-([a-z])/g,s=>s[1].toUpperCase());const Es=wr.charAt(0).toUpperCase()+wr.slice(1),en=new Set(["localStorageMode","expirationDelayMs","invalidateOnPageShow"]);function xr(s){return s==null||typeof s!="object"||Array.isArray(s)?!1:Object.keys(s).some(t=>en.has(t))}function Ls(s){return Object.prototype.hasOwnProperty.call(s,"__value")}function ie(s){return typeof s=="object"&&s!==null}let je="sonic";typeof __SONIC_PREFIX__>"u"&&(je="sonic");const fi=je=="sonic"?"publisher-proxies-data":je+"-publisher-proxies-data",ye=class ye{constructor(t,i,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=i||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(),ye.instances.delete(this._instanceCounter_)}hasListener(){return this._templateFillListeners_.size>0||this._assignListeners_.size>0||this._invalidateListeners_.size>0||this._formInvalidateListeners_.size>0||this._mutationListeners_.size>0||this._fillListeners_.size>0}_publishInternalMutation_(t=!1){if(this._mutationListeners_.forEach(i=>i()),this._is_savable_&&!E.changed){E.changed=!0,E.saveId++;const i=E.saveId;setTimeout(()=>E.getInstance().saveToLocalStorage(i),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(e=>{e(r)}),this._publishInternalMutation_(t)}_publishInvalidation_(){this._invalidateListeners_.forEach(t=>t())}_publishFormInvalidation_(){this._formInvalidateListeners_.forEach(t=>t())}_publishDynamicFilling_(t,i){this._fillListeners_.forEach(r=>{r[t]!==i&&(r[t]=i)}),this._publishTemplateFilling_(t,i)}_publishTemplateFilling_(t,i){this._templateFillListeners_.forEach(r=>{const e=Object.getOwnPropertyDescriptor(r,t);e&&!e.set&&!e.writable||(r.propertyMap&&r.propertyMap[t]&&(t=r.propertyMap[t]),typeof r[t]<"u"&&r[t]!==i&&(r[t]=i))})}onAssign(t,i=!0){typeof t=="function"&&(this._assignListeners_.has(t)||(this._assignListeners_.add(t),i&&t(this.get())))}offAssign(t){this._assignListeners_.delete(t)}onInvalidate(t){typeof t=="function"&&this._invalidateListeners_.add(t)}offInvalidate(t){typeof t=="function"&&this._invalidateListeners_.delete(t)}invalidate(){this._publishInvalidation_()}onFormInvalidate(t){typeof t=="function"&&this._formInvalidateListeners_.add(t)}offFormInvalidate(t){typeof t=="function"&&this._formInvalidateListeners_.delete(t)}invalidateForm(){this._publishFormInvalidation_()}onInternalMutation(t){typeof t=="function"&&(this._mutationListeners_.add(t),t())}offInternalMutation(t){typeof t=="function"&&this._mutationListeners_.delete(t)}startTemplateFilling(t){if(this._templateFillListeners_.add(t),typeof this._value_=="object")for(const i in this._value_){let r=i;const e=this._value_[i];t.propertyMap&&t.propertyMap[i]&&(r=t.propertyMap[i]),typeof t[i]<"u"&&t[i]!==e&&(t[r]=e)}}stopTemplateFilling(t){this._templateFillListeners_.delete(t)}startDynamicFilling(t){this._fillListeners_.add(t);for(const i in this._value_){const r=this._value_[i];t[i]!==r&&(t[i]=r)}}stopDynamicFilling(t){this._fillListeners_.delete(t)}set(t,i=!1){if(this._value_===t||ie(this._value_)&&ie(t)&&t&&Ls(this._value_)&&Ls(t)&&this._value_.__value===t.__value||!ie(t)&&t===this._value_.__value)return!0;this._value_=ie(t)?t:{__value:t},this._cachedGet_=void 0;const r=Ls(this._value_);if(this._parentKey_&&this.parent){const e=Ls(this._value_)?this._value_.__value:this._value_;if(this.parent?.get()==null&&this.parent?.get()==null)if(isNaN(Number(this._parentKey_)))this.parent.set({[this._parentKey_]:e});else{const o=[];o[Number(this._parentKey_)]=e,this.parent.set(o)}else this.parent._value_[this._parentKey_]=e}if(r)return this._proxies_.forEach((e,o)=>{o!="_parent_"&&(e.set(null),this._publishDynamicFilling_(o,null))}),this._publishAssignement_(i),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_.__value),!0;for(const e in this._value_)this._value_[e]===void 0&&delete this._value_[e];if(this._proxies_.forEach((e,o)=>{const n=this._value_[o];o!="_parent_"&&n===void 0&&n!==null&&isNaN(Number(o))&&(e.set(null),this._publishDynamicFilling_(o,null))}),this._publishAssignement_(),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_),ie(this._value_))for(const e in this._value_){const o=t[e],l=ie(o)?o:{__value:o};if(!this._proxies_.has(e)){this._publishDynamicFilling_(e,o);continue}this._proxies_.get(e)?.set(l,!0),this._publishDynamicFilling_(e,o)}return!0}get(){if(sn(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_||(ye.instancesCounter++,this._instanceCounter_=ye.instancesCounter),ye.instances.set(this._instanceCounter_,this),"<"+je+'-publisher-proxy publisher="'+this._instanceCounter_+'"></'+je+"-publisher-proxy>"}};ye.instances=new Map,ye.instancesCounter=0;let ts=ye;const Ts=[];function sn(s){Ts.length>0&&Ts[0].add(s)}function Pr(){Ts.unshift(new Set)}function Cr(){return Ts.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(fi),e=null;if(r&&(e=await this.decompress(r,"gzip")),e)try{this.localStorageData=JSON.parse(e)}catch{this.localStorageData={}}else r=await this.compress("{}","gzip"),localStorage.setItem(fi,r),this.localStorageData={};const o=1e3*60*60*12;for(const n in this.localStorageData){const l=this.localStorageData[n],c=new Date().getTime()-(l.expirationDelayMs||o);l.lastModifiationMS<c&&delete this.localStorageData[n]}t(!0)}catch{window.requestAnimationFrame(()=>{t(!1)}),console.warn("no publisher cache in this browser")}})()})}static getInstance(t){if(t){const i=j.instances.get(t);return i||(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,i){return j.getInstance().get(t,i)}async setLocalData(t,i){await this.isLocalStrorageReady,t.set(this.localStorageData[i+"¤lang_"+G.getLanguage()]?.data||t.get())}get(t,i){const r=i?.localStorageMode==="enabled",e=i?.invalidateOnPageShow===!0;if(!this.publishers.has(t)){const l=bi({});this.set(t,l)}const o=this.publishers.get(t);return r&&this.initialisedData.indexOf(t)===-1&&(i?.expirationDelayMs&&(o._expiration_delay_=i.expirationDelayMs),o._is_savable_=!0,this.initialisedData.push(t),this.setLocalData(o,t)),e&&(o._invalidate_on_page_show_=e),this.publishers.get(t)}set(t,i){this.publishers.set(t,i)}delete(t){return this.publishers.has(t)?(this.publishers.delete(t),!0):!1}async saveToLocalStorage(t=0){if(!(t!==j.saveId&&t%10!=0))try{if(!j.changed||j.saving)return;j.saving=!0,j.changed=!1;const i=Array.from(this.publishers.keys());let r=!1;for(const e of i){const o=this.publishers.get(e);if(!o?._is_savable_)continue;const n=o?.get();n&&(this.localStorageData[e+"¤lang_"+G.getLanguage()]={lastModifiationMS:new Date().getTime(),expirationDelayMs:o._expiration_delay_,data:n},r=!0)}if(r){const e=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem(fi,e)}if(j.saving=!1,j.changed){j.saveId++;const e=j.saveId;setTimeout(()=>this.saveToLocalStorage(e),1e3)}}catch{j.saving=!1}}async compress(t,i){const r=new TextEncoder().encode(t),e=window,o=new e.CompressionStream(i),n=o.writable.getWriter();n.write(r),n.close();const l=await new Response(o.readable).arrayBuffer(),c=new Uint8Array(l);let h="";for(let p=0;p<c.length;p++)h+=String.fromCharCode(c[p]);return btoa(h)}async decompress(t,i){const r=atob(t),o=Uint8Array.from(r,p=>p.charCodeAt(0)).buffer,n=window,l=new n.DecompressionStream(i),c=l.writable.getWriter();c.write(o),c.close();const h=await new Response(l.readable).arrayBuffer();return new TextDecoder().decode(h)}};j.buildDate="Mon Jun 29 2026 15:30:59 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 E=j;if(typeof window<"u"){const s=window;s[Es+"PublisherManager"]=s[Es+"PublisherManager"]||E}const rn=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 on(s,t){return{get:function(i,r){if(typeof r=="string"&&rn.has(r))return s[r];if(r==Symbol.toPrimitive)return()=>t().get();if(!s._proxies_.has(r)){const e=s._value_[r],o=bi(ie(e)?e:{__value:e},s,r);o._proxies_.set("_parent_",t()),s._proxies_.set(r,o)}return s._proxies_.get(r)},set:function(i,r,e){if(r=="_value_")return s._value_=e,!0;if(r=="_cachedGet_")return s._cachedGet_=e,!0;if(r=="_assignmentId_")return s._assignmentId_=e,!0;if(r=="_is_savable_")return s._is_savable_=e,!0;if(r=="_expiration_delay_")return s._expiration_delay_=e,!0;if(r=="_invalidate_on_page_show_")return s._invalidate_on_page_show_=e,!0;if(r=="_instanceCounter_")return s._instanceCounter_=e,!0;if(!s._proxies_.has(r)){const n=bi({},s,r);n._proxies_.set("_parent_",t()),s._proxies_.set(r,n)}return s._value_[r]!==e&&(s._value_[r]=e,s._publishDynamicFilling_(r,e),s._proxies_.get(r)?.set(ie(e)?e:{__value:e})),!0},deleteProperty:function(i,r){return s._publishDynamicFilling_(r,null),s._proxies_.get(r)?.set(null),delete s._value_[r]},has:function(i,r){return r in s._value_&&r!="_lockInternalMutationPublishing_"},defineProperty:function(i,r,e){return e&&"value"in e&&(s._value_[r]=e.value),!0},getOwnPropertyDescriptor:function(i,r){return{enumerable:!0,configurable:!0}},ownKeys:function(i){return s._value_.__value?Object.keys(s._value_.__value):Object.keys(s._value_)}}}function bi(s,t=null,i){const r=new ts(s,t,i);let e=null;const o=on(r,()=>e);return e=new Proxy(r,o),e}class nn extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=t=>{this.innerHTML=t.toString()}}connectedCallback(){this.publisherId=this.getAttribute("publisher")||"",this.publisher=ts.instances.get(parseInt(this.publisherId)),this.publisher?.onAssign(this.onAssign)}disconnectedCallback(){this.publisher?.offAssign(this.onAssign)}}try{customElements.define(je+"-publisher-proxy",nn)}catch{}const Is=(s,t)=>{if(typeof s=="function"){const i=s;return Pr(),i(),Cr()}if(typeof s=="string"){const i=s.split("."),r=i.shift()||"";let e=E.get(r,t);e=ot.traverse(e,i);const o=new Set;return o.add(e),o}return new Set([s])};function an(s){const t=pi(s);return Is(t).values().next().value?.get()}function Ms(s,t,i){const r=pi(s);return Is(r,i).values().next().value}function ln(s,t){return xr(t)?Ms(s,void 0,t):Ms(s)}function Ns(s,t){return xr(t)?Ms(s,void 0,t):Ms(s)}function cn(s,t){const i=pi(s);Is(i).values().next().value?.set(t)}let Fs=(F=class{static disable(){this.enabled&&(this.enabled=!1,Array.from(F.observedElements.keys()).forEach(t=>F.unObserve(t)))}static observe(t){if(!t||!F.enabled||F.observedElements.has(t))return;const i=new MutationObserver(F.onMutation),r={};r.childList=!0,r.subtree=!0,r.attributes=!0,r.attributeFilter=["data-bind"],i.observe(t,r),t.querySelectorAll("[data-bind]").forEach(e=>F.addPublisherListeners(e)),F.observedElements.set(t,i)}static unObserve(t){if(!t)return;const i=this.observedElements.get(t);i&&(i.disconnect(),t.querySelectorAll("[data-bind]").forEach(r=>F.removePublisherListeners(r)))}static onAdded(t){t.hasAttribute&&t.hasAttribute("data-bind")&&F.addPublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(i=>F.addPublisherListeners(i)):t.childNodes.forEach(i=>F.onAdded(i))}static onRemoved(t){t.hasAttribute&&t.hasAttribute("data-bind")&&F.removePublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(i=>F.removePublisherListeners(i)):t.childNodes.forEach(i=>F.onRemoved(i))}static onMutation(t){for(const i of t)switch(i.type){case"attributes":F.addPublisherListeners(i.target);break;case"childList":i.addedNodes.forEach(r=>{F.onAdded(r)}),i.removedNodes.forEach(r=>{F.onRemoved(r)});break}}static removePublisherListeners(t){const i=F.publisherListeners.get(t);i&&(F.publisherListeners.delete(t),i.forEach(r=>{r.publisher?.offAssign(r.onAssign)}))}static getVariablesDescriptor(t){let i=t.match(/(\$(?:\w+\\?\.?)+)/g);return i?i=i.map(r=>r.replace("$","")):i=[t],i=i.filter(r=>r.length>0),{expression:t.replace("\\",""),variables:i.map(r=>r.split(/\b\.\b/).map(e=>e.replace("\\","")))}}static getDataBindItems(t){return"attributes"in t?Array.from(t.attributes).filter(i=>i.name.indexOf("::")==0).map(i=>({propertyToUpdate:i.name.substring(2).replace(/-((html)|\w)/g,e=>e.substring(1).toUpperCase()),bindedVariablesDescriptor:F.getVariablesDescriptor(i.value)})):[]}static getSubPublisher(t,i){if(!i)return t;for(const r of i)if(r!="_self_"){if(!t)return null;t=t[r]}return t}static addPublisherListeners(t){F.removePublisherListeners(t);const i=G.getAncestorAttributeValue(t.parentNode||t.host||t,"dataProvider");if(!i)return;const r=E.getInstance().get(i),e=F.getDataBindItems(t),o=[];e.forEach(n=>{const l=n.bindedVariablesDescriptor,c=n.propertyToUpdate;for(const h of l.variables){const p=h;let d=r;d=F.getSubPublisher(r,p);const f=t,_={publisher:d,onAssign:()=>{const y=l.variables.map(A=>F.getSubPublisher(r,A)?.get());let m=l.expression,v=!1;if(y.length==1&&l.variables[0].join(".")==m.substring(1)){let A=y[0];A===null&&(A=""),f[c]=A;return}for(let A=0;A<y.length;A++){let u=y[A];const b=l.variables[A];u===null&&(v=!0,u=void 0),m=m.replace("$"+b.join("."),u)}if(m.indexOf("|")!=-1){const A=m.indexOf("|");if(A==0)m=Os.js(m.substring(1));else{const u=m.substring(0,A),b=m.substring(A+1),w=Os[u];m=v?"":w?w(b):m}}else m=v?"":m;f[c]=m}};d?.onAssign(_.onAssign),o.push(_)}}),F.publisherListeners.set(t,o)}},F.observedElements=new Map,F.enabled=!0,F.publisherListeners=new Map,F);Fs.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=Fs);/**
1
+ (function(Z){typeof define=="function"&&define.amd?define(Z):Z()})((function(){"use strict";var M,tt;let Z=class Ft{static getLanguage(){const t=document.documentElement.lang;return localStorage.getItem("SonicSelectedLanguage")||t}static getCookies(){return document.cookie.split(";").reduce((t,i)=>{const r=i.indexOf("=");return t[i.substring(0,r).trim()]=i.substring(r+1),t},{})}static everyAncestors(t,i){for(;t;){if(!i(t))return;t=t.parentNode||t.host}}static getScrollableAncestor(t){for(;t;){const i=t;if(i.nodeType===1){const r=window.getComputedStyle(i);if(r?.overflowY==="auto"||r?.overflowY==="scroll"||r?.overflowY==="hidden"||r?.overflowX==="auto"||r?.overflowX==="scroll"||r?.overflowX==="hidden")return t}t=t.parentNode||t.host}return null}static scopeAttributeNames(t){const i=t.toLowerCase();return i===t?[t]:[t,i]}static readScopeAttributeOnElement(t,i){for(const r of Ft.scopeAttributeNames(i))if(t.hasAttribute(r))return t.getAttribute(r)??"";return null}static getAncestorAttributeValue(t,i){if(!t)return null;let r=t;for(;r;){if(r instanceof HTMLElement){const n=Ft.readScopeAttributeOnElement(r,i);if(n!=null)return n}const e=r.parentNode||r.host;if(!e)break;r=e}return null}static getApiConfiguration(t){const i=Ft.getAncestorAttributeValue(t,"token"),r=Ft.getAncestorAttributeValue(t,"addHTTPResponse")!=null,e=Ft.getAncestorAttributeValue(t,"serviceURL");let n=null,o=null;const l=Ft.getAncestorAttributeValue(t,"tokenProvider"),c=Ft.getAncestorAttributeValue(t,"eventsApiToken");i||(n=Ft.getAncestorAttributeValue(t,"userName"),o=Ft.getAncestorAttributeValue(t,"password"));const h=Ft.getAncestorAttributeValue(t,"credentials")||void 0,u=t.getAttribute("cache"),d=t.hasAttribute("blockUntilDone"),p=t.hasAttribute("keepAlive");return{serviceURL:e,token:i,userName:n,password:o,authToken:c,tokenProvider:l,addHTTPResponse:r,credentials:h,cache:u,blockUntilDone:d,keepAlive:p}}static getClosestElement(t,i){for(;!(t.nodeName&&t.nodeName.toLowerCase()===i)&&(t.parentNode||t.host);)t=t.parentNode||t.host;return t.nodeName?t:null}static getClosestForm(t){return Ft.getClosestElement(t,"form")}static getAncestorsByTagNames(t,i){const r=new Set(i.map(o=>o.toLowerCase())),e=[];let n=t.parentNode||t.host;for(;n;)n instanceof Element&&r.has(n.tagName.toLowerCase())&&e.push(n),n=n.parentNode||n.host;return e}static getAncestorsBySelectors(t,i){const r=[];let e=t.parentNode||t.host;for(;e;){if(e instanceof Element)for(const n of i)try{if(e.matches(n)){r.push(e);break}}catch{}e=e.parentNode||e.host}return r}static async loadJS(t){return new Promise(async r=>{const e=document.createElement("script");e.src=t,e.onload=()=>r(!0),e.onerror=()=>r(!0),document.head.appendChild(e)})}static async loadCSS(t){return new Promise(async r=>{const e=document.createElement("link");e.type="text/css",e.rel="stylesheet",e.href=t,e.onload=()=>r(!0),e.onerror=()=>r(!0),document.head.appendChild(e)})}};const mi=s=>{const t=document.documentElement,i=new MutationObserver(e=>{for(let n of e)n.type==="attributes"&&n.attributeName==="lang"&&s()}),r={attributes:!0,attributeFilter:["lang"]};i.observe(t,r)};let Es=class{static ucFirst(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.substring(1)}static minutesDuration(t,i="",r="long"){i||(i=Z.getLanguage());const e=(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]=e(t,60),c=[];return o&&c.push(n(i,"hour",r)(o)),l&&c.push(n(i,"minute",r)(l)),new Intl.ListFormat(i,{style:"long",type:"conjunction"}).format(c)}static js(t){try{return Function("return "+t)()}catch{return""}}};class _r{constructor(t){this.path=t}toString(){return this.path}}function wr(s){return new Proxy(s,{get(t,i){if(i==="path")return t.path;if(i==="toString")return t.toString.bind(t);if(i===Symbol.toStringTag)return"DataProviderKey";if(typeof i=="symbol")return t[i];const r=t.path?`${t.path}.${String(i)}`:String(i);return wr(new _r(r))}})}const Jn=/\$\{|\{\$/;function to(s){return Jn.test(s)}function gi(s){const t=typeof s=="string"?s:s.path;if(to(t))throw new Error("Static publisher path required for get/set/dp. Use @subscribe, @publish, or @handle for dynamic DataProviderKey paths.");return t}const ts=function(s){return this instanceof ts?wr(new _r(s)):new ts(s)};let ot=class re{static shallowEqual(t,i,r=!0){const e=Object.keys(t),n=Object.keys(i);if(e.length!==n.length&&r)return!1;for(const o of e){const l=t[o],c=i[o];if(r?l!==c:l!=c)return!1}return!0}static deepEqual(t,i,r=!0){const e=Object.keys(t),n=Object.keys(i);if(e.length!==n.length&&r)return!1;for(const o of e){const l=t[o],c=i[o],h=re.isObject(l)&&re.isObject(c),u=r?l!==c:l!=c;if(h&&!re.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 re.isUndefindOrNull(t)?!0:Object.keys(t).length===0}static traverse(t,i,r=!1){for(const e of i){const n=t[e];if(n===void 0)return;r&&re.isObject(n)?t=Object.assign(Array.isArray(n)?[]:{},t,n):t=t[e]}return t}static traverseDotNotation(t,i,r=!1){return re.traverse(t,i.split("."),r)}static getURLSearchArray(t,i=""){let r=[];for(let e in t){const n=t[e];i&&(e=i+"["+e+"]"),re.isObject(n)?r=[...r,...this.getURLSearchArray(n,e)]:r.push(`${e}=${n}`)}return r}static getURLSearchString(t){return re.getURLSearchArray(t,"").join("&")}};const yt=ot.traverseDotNotation;let eo=class{static async queueTaskPromise(){return new Promise(t=>{window.queueMicrotask(()=>t(null))})}static async delayPromise(t){return new Promise(i=>{setTimeout(i,t)})}},xr="sonic";typeof __SONIC_PREFIX__<"u"&&(xr=__SONIC_PREFIX__);let Pr=xr.replace(/-([a-z])/g,s=>s[1].toUpperCase());const Ls=Pr.charAt(0).toUpperCase()+Pr.slice(1),so=new Set(["localStorageMode","expirationDelayMs","invalidateOnPageShow"]);function Cr(s){return s==null||typeof s!="object"||Array.isArray(s)?!1:Object.keys(s).some(t=>so.has(t))}function Ts(s){return Object.prototype.hasOwnProperty.call(s,"__value")}function ne(s){return typeof s=="object"&&s!==null}let Re="sonic";typeof __SONIC_PREFIX__>"u"&&(Re="sonic");const vi=Re=="sonic"?"publisher-proxies-data":Re+"-publisher-proxies-data",we=class we{constructor(t,i,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=i||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(),we.instances.delete(this._instanceCounter_)}hasListener(){return this._templateFillListeners_.size>0||this._assignListeners_.size>0||this._invalidateListeners_.size>0||this._formInvalidateListeners_.size>0||this._mutationListeners_.size>0||this._fillListeners_.size>0}_publishInternalMutation_(t=!1){if(this._mutationListeners_.forEach(i=>i()),this._is_savable_&&!E.changed){E.changed=!0,E.saveId++;const i=E.saveId;setTimeout(()=>E.getInstance().saveToLocalStorage(i),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(e=>{e(r)}),this._publishInternalMutation_(t)}_publishInvalidation_(){this._invalidateListeners_.forEach(t=>t())}_publishFormInvalidation_(){this._formInvalidateListeners_.forEach(t=>t())}_publishDynamicFilling_(t,i){this._fillListeners_.forEach(r=>{r[t]!==i&&(r[t]=i)}),this._publishTemplateFilling_(t,i)}_publishTemplateFilling_(t,i){this._templateFillListeners_.forEach(r=>{const e=Object.getOwnPropertyDescriptor(r,t);e&&!e.set&&!e.writable||(r.propertyMap&&r.propertyMap[t]&&(t=r.propertyMap[t]),typeof r[t]<"u"&&r[t]!==i&&(r[t]=i))})}onAssign(t,i=!0){typeof t=="function"&&(this._assignListeners_.has(t)||(this._assignListeners_.add(t),i&&t(this.get())))}offAssign(t){this._assignListeners_.delete(t)}onInvalidate(t){typeof t=="function"&&this._invalidateListeners_.add(t)}offInvalidate(t){typeof t=="function"&&this._invalidateListeners_.delete(t)}invalidate(){this._publishInvalidation_()}onFormInvalidate(t){typeof t=="function"&&this._formInvalidateListeners_.add(t)}offFormInvalidate(t){typeof t=="function"&&this._formInvalidateListeners_.delete(t)}invalidateForm(){this._publishFormInvalidation_()}onInternalMutation(t){typeof t=="function"&&(this._mutationListeners_.add(t),t())}offInternalMutation(t){typeof t=="function"&&this._mutationListeners_.delete(t)}startTemplateFilling(t){if(this._templateFillListeners_.add(t),typeof this._value_=="object")for(const i in this._value_){let r=i;const e=this._value_[i];t.propertyMap&&t.propertyMap[i]&&(r=t.propertyMap[i]),typeof t[i]<"u"&&t[i]!==e&&(t[r]=e)}}stopTemplateFilling(t){this._templateFillListeners_.delete(t)}startDynamicFilling(t){this._fillListeners_.add(t);for(const i in this._value_){const r=this._value_[i];t[i]!==r&&(t[i]=r)}}stopDynamicFilling(t){this._fillListeners_.delete(t)}set(t,i=!1){if(this._value_===t||ne(this._value_)&&ne(t)&&t&&Ts(this._value_)&&Ts(t)&&this._value_.__value===t.__value||!ne(t)&&t===this._value_.__value)return!0;this._value_=ne(t)?t:{__value:t},this._cachedGet_=void 0;const r=Ts(this._value_);if(this._parentKey_&&this.parent){const e=Ts(this._value_)?this._value_.__value:this._value_;if(this.parent?.get()==null&&this.parent?.get()==null)if(isNaN(Number(this._parentKey_)))this.parent.set({[this._parentKey_]:e});else{const n=[];n[Number(this._parentKey_)]=e,this.parent.set(n)}else this.parent._value_[this._parentKey_]=e}if(r)return this._proxies_.forEach((e,n)=>{n!="_parent_"&&(e.set(null),this._publishDynamicFilling_(n,null))}),this._publishAssignement_(i),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_.__value),!0;for(const e in this._value_)this._value_[e]===void 0&&delete this._value_[e];if(this._proxies_.forEach((e,n)=>{const o=this._value_[n];n!="_parent_"&&o===void 0&&o!==null&&isNaN(Number(n))&&(e.set(null),this._publishDynamicFilling_(n,null))}),this._publishAssignement_(),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_),ne(this._value_))for(const e in this._value_){const n=t[e],l=ne(n)?n:{__value:n};if(!this._proxies_.has(e)){this._publishDynamicFilling_(e,n);continue}this._proxies_.get(e)?.set(l,!0),this._publishDynamicFilling_(e,n)}return!0}get(){if(io(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_||(we.instancesCounter++,this._instanceCounter_=we.instancesCounter),we.instances.set(this._instanceCounter_,this),"<"+Re+'-publisher-proxy publisher="'+this._instanceCounter_+'"></'+Re+"-publisher-proxy>"}};we.instances=new Map,we.instancesCounter=0;let es=we;const Is=[];function io(s){Is.length>0&&Is[0].add(s)}function Sr(){Is.unshift(new Set)}function $r(){return Is.shift()}const F=class F{constructor(){if(this.enabledLocaStorageProxies=[],this.publishers=new Map,this.localStorageData={},this.isLocalStrorageReady=null,this.initialisedData=[],F.instance!=null)throw"Singleton / use getInstance";F.instance=this,this.isLocalStrorageReady=this.cleanStorageData(),F.initPageShowHandler()}static initPageShowHandler(){F.pageShowHandlerInitialized||(F.pageShowHandlerInitialized=!0,window.addEventListener("pageshow",t=>{t.persisted&&F.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(vi),e=null;if(r&&(e=await this.decompress(r,"gzip")),e)try{this.localStorageData=JSON.parse(e)}catch{this.localStorageData={}}else r=await this.compress("{}","gzip"),localStorage.setItem(vi,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 i=F.instances.get(t);return i||(console.warn("No PublisherManager instance registered with id:",t,"creating new one"),new F)}return F.instance==null?new F:F.instance}static get(t,i){return F.getInstance().get(t,i)}async setLocalData(t,i){await this.isLocalStrorageReady,t.set(this.localStorageData[i+"¤lang_"+Z.getLanguage()]?.data||t.get())}get(t,i){const r=i?.localStorageMode==="enabled",e=i?.invalidateOnPageShow===!0;if(!this.publishers.has(t)){const l=yi({});this.set(t,l)}const n=this.publishers.get(t);return r&&this.initialisedData.indexOf(t)===-1&&(i?.expirationDelayMs&&(n._expiration_delay_=i.expirationDelayMs),n._is_savable_=!0,this.initialisedData.push(t),this.setLocalData(n,t)),e&&(n._invalidate_on_page_show_=e),this.publishers.get(t)}set(t,i){this.publishers.set(t,i)}delete(t){return this.publishers.has(t)?(this.publishers.delete(t),!0):!1}async saveToLocalStorage(t=0){if(!(t!==F.saveId&&t%10!=0))try{if(!F.changed||F.saving)return;F.saving=!0,F.changed=!1;const i=Array.from(this.publishers.keys());let r=!1;for(const e of i){const n=this.publishers.get(e);if(!n?._is_savable_)continue;const o=n?.get();o&&(this.localStorageData[e+"¤lang_"+Z.getLanguage()]={lastModifiationMS:new Date().getTime(),expirationDelayMs:n._expiration_delay_,data:o},r=!0)}if(r){const e=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem(vi,e)}if(F.saving=!1,F.changed){F.saveId++;const e=F.saveId;setTimeout(()=>this.saveToLocalStorage(e),1e3)}}catch{F.saving=!1}}async compress(t,i){const r=new TextEncoder().encode(t),e=window,n=new e.CompressionStream(i),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,i){const r=atob(t),n=Uint8Array.from(r,u=>u.charCodeAt(0)).buffer,o=window,l=new o.DecompressionStream(i),c=l.writable.getWriter();c.write(n),c.close();const h=await new Response(l.readable).arrayBuffer();return new TextDecoder().decode(h)}};F.buildDate="Tue Jul 07 2026 11:58:11 GMT+0200 (Central European Summer Time)",F.changed=!1,F.saving=!1,F.saveId=0,F.instance=null,F.instances=new Map,F.pageShowHandlerInitialized=!1;let E=F;if(typeof window<"u"){const s=window;s[Ls+"PublisherManager"]=s[Ls+"PublisherManager"]||E}const ro=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 no(s,t){return{get:function(i,r){if(typeof r=="string"&&ro.has(r))return s[r];if(r==Symbol.toPrimitive)return()=>t().get();if(!s._proxies_.has(r)){const e=s._value_[r],n=yi(ne(e)?e:{__value:e},s,r);n._proxies_.set("_parent_",t()),s._proxies_.set(r,n)}return s._proxies_.get(r)},set:function(i,r,e){if(r=="_value_")return s._value_=e,!0;if(r=="_cachedGet_")return s._cachedGet_=e,!0;if(r=="_assignmentId_")return s._assignmentId_=e,!0;if(r=="_is_savable_")return s._is_savable_=e,!0;if(r=="_expiration_delay_")return s._expiration_delay_=e,!0;if(r=="_invalidate_on_page_show_")return s._invalidate_on_page_show_=e,!0;if(r=="_instanceCounter_")return s._instanceCounter_=e,!0;if(!s._proxies_.has(r)){const o=yi({},s,r);o._proxies_.set("_parent_",t()),s._proxies_.set(r,o)}return s._value_[r]!==e&&(s._value_[r]=e,s._publishDynamicFilling_(r,e),s._proxies_.get(r)?.set(ne(e)?e:{__value:e})),!0},deleteProperty:function(i,r){return s._publishDynamicFilling_(r,null),s._proxies_.get(r)?.set(null),delete s._value_[r]},has:function(i,r){return r in s._value_&&r!="_lockInternalMutationPublishing_"},defineProperty:function(i,r,e){return e&&"value"in e&&(s._value_[r]=e.value),!0},getOwnPropertyDescriptor:function(i,r){return{enumerable:!0,configurable:!0}},ownKeys:function(i){return s._value_.__value?Object.keys(s._value_.__value):Object.keys(s._value_)}}}function yi(s,t=null,i){const r=new es(s,t,i);let e=null;const n=no(r,()=>e);return e=new Proxy(r,n),e}class oo extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=t=>{this.innerHTML=t.toString()}}connectedCallback(){this.publisherId=this.getAttribute("publisher")||"",this.publisher=es.instances.get(parseInt(this.publisherId)),this.publisher?.onAssign(this.onAssign)}disconnectedCallback(){this.publisher?.offAssign(this.onAssign)}}try{customElements.define(Re+"-publisher-proxy",oo)}catch{}const Ms=(s,t)=>{if(typeof s=="function"){const i=s;return Sr(),i(),$r()}if(typeof s=="string"){const i=s.split("."),r=i.shift()||"";let e=E.get(r,t);e=ot.traverse(e,i);const n=new Set;return n.add(e),n}return new Set([s])};function ao(s){const t=gi(s);return Ms(t).values().next().value?.get()}function Ns(s,t,i){const r=gi(s);return Ms(r,i).values().next().value}function lo(s,t){return Cr(t)?Ns(s,void 0,t):Ns(s)}function Fs(s,t){return Cr(t)?Ns(s,void 0,t):Ns(s)}function co(s,t){const i=gi(s);Ms(i).values().next().value?.set(t)}let js=(M=class{static disable(){this.enabled&&(this.enabled=!1,Array.from(M.observedElements.keys()).forEach(t=>M.unObserve(t)))}static observe(t){if(!t||!M.enabled||M.observedElements.has(t))return;const i=new MutationObserver(M.onMutation),r={};r.childList=!0,r.subtree=!0,r.attributes=!0,r.attributeFilter=["data-bind"],i.observe(t,r),t.querySelectorAll("[data-bind]").forEach(e=>M.addPublisherListeners(e)),M.observedElements.set(t,i)}static unObserve(t){if(!t)return;const i=this.observedElements.get(t);i&&(i.disconnect(),t.querySelectorAll("[data-bind]").forEach(r=>M.removePublisherListeners(r)))}static onAdded(t){t.hasAttribute&&t.hasAttribute("data-bind")&&M.addPublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(i=>M.addPublisherListeners(i)):t.childNodes.forEach(i=>M.onAdded(i))}static onRemoved(t){t.hasAttribute&&t.hasAttribute("data-bind")&&M.removePublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(i=>M.removePublisherListeners(i)):t.childNodes.forEach(i=>M.onRemoved(i))}static onMutation(t){for(const i of t)switch(i.type){case"attributes":M.addPublisherListeners(i.target);break;case"childList":i.addedNodes.forEach(r=>{M.onAdded(r)}),i.removedNodes.forEach(r=>{M.onRemoved(r)});break}}static removePublisherListeners(t){const i=M.publisherListeners.get(t);i&&(M.publisherListeners.delete(t),i.forEach(r=>{r.publisher?.offAssign(r.onAssign)}))}static getVariablesDescriptor(t){let i=t.match(/(\$(?:\w+\\?\.?)+)/g);return i?i=i.map(r=>r.replace("$","")):i=[t],i=i.filter(r=>r.length>0),{expression:t.replace("\\",""),variables:i.map(r=>r.split(/\b\.\b/).map(e=>e.replace("\\","")))}}static getDataBindItems(t){return"attributes"in t?Array.from(t.attributes).filter(i=>i.name.indexOf("::")==0).map(i=>({propertyToUpdate:i.name.substring(2).replace(/-((html)|\w)/g,e=>e.substring(1).toUpperCase()),bindedVariablesDescriptor:M.getVariablesDescriptor(i.value)})):[]}static getSubPublisher(t,i){if(!i)return t;for(const r of i)if(r!="_self_"){if(!t)return null;t=t[r]}return t}static addPublisherListeners(t){M.removePublisherListeners(t);const i=Z.getAncestorAttributeValue(t.parentNode||t.host||t,"dataProvider");if(!i)return;const r=E.getInstance().get(i),e=M.getDataBindItems(t),n=[];e.forEach(o=>{const l=o.bindedVariablesDescriptor,c=o.propertyToUpdate;for(const h of l.variables){const u=h;let d=r;d=M.getSubPublisher(r,u);const p=t,w={publisher:d,onAssign:()=>{const v=l.variables.map(D=>M.getSubPublisher(r,D)?.get());let m=l.expression,y=!1;if(v.length==1&&l.variables[0].join(".")==m.substring(1)){let D=v[0];D===null&&(D=""),p[c]=D;return}for(let D=0;D<v.length;D++){let f=v[D];const b=l.variables[D];f===null&&(y=!0,f=void 0),m=m.replace("$"+b.join("."),f)}if(m.indexOf("|")!=-1){const D=m.indexOf("|");if(D==0)m=Es.js(m.substring(1));else{const f=m.substring(0,D),b=m.substring(D+1),x=Es[f];m=y?"":x?x(b):m}}else m=y?"":m;p[c]=m}};d?.onAssign(w.onAssign),n.push(w)}}),M.publisherListeners.set(t,n)}},M.observedElements=new Map,M.enabled=!0,M.publisherListeners=new Map,M);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
@@ -6,15 +6,15 @@
6
6
  * @license
7
7
  * Copyright 2019 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */const js=globalThis,mi=js.ShadowRoot&&(js.ShadyCSS===void 0||js.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,gi=Symbol(),Sr=new WeakMap;let vi=class{constructor(t,i,r){if(this._$cssResult$=!0,r!==gi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=i}get styleSheet(){let t=this.o;const i=this.t;if(mi&&t===void 0){const r=i!==void 0&&i.length===1;r&&(t=Sr.get(i)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&Sr.set(i,t))}return t}toString(){return this.cssText}};const hn=s=>new vi(typeof s=="string"?s:s+"",void 0,gi),S=(s,...t)=>{const i=s.length===1?s[0]:t.reduce(((r,e,o)=>r+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+s[o+1]),s[0]);return new vi(i,s,gi)},dn=(s,t)=>{if(mi)s.adoptedStyleSheets=t.map((i=>i instanceof CSSStyleSheet?i:i.styleSheet));else for(const i of t){const r=document.createElement("style"),e=js.litNonce;e!==void 0&&r.setAttribute("nonce",e),r.textContent=i.cssText,s.appendChild(r)}},$r=mi?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let i="";for(const r of t.cssRules)i+=r.cssText;return hn(i)})(s):s;/**
9
+ */const Rs=globalThis,_i=Rs.ShadowRoot&&(Rs.ShadyCSS===void 0||Rs.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,wi=Symbol(),Ar=new WeakMap;let xi=class{constructor(t,i,r){if(this._$cssResult$=!0,r!==wi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=i}get styleSheet(){let t=this.o;const i=this.t;if(_i&&t===void 0){const r=i!==void 0&&i.length===1;r&&(t=Ar.get(i)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&Ar.set(i,t))}return t}toString(){return this.cssText}};const ho=s=>new xi(typeof s=="string"?s:s+"",void 0,wi),S=(s,...t)=>{const i=s.length===1?s[0]:t.reduce(((r,e,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.")})(e)+s[n+1]),s[0]);return new xi(i,s,wi)},uo=(s,t)=>{if(_i)s.adoptedStyleSheets=t.map((i=>i instanceof CSSStyleSheet?i:i.styleSheet));else for(const i of t){const r=document.createElement("style"),e=Rs.litNonce;e!==void 0&&r.setAttribute("nonce",e),r.textContent=i.cssText,s.appendChild(r)}},kr=_i?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let i="";for(const r of t.cssRules)i+=r.cssText;return ho(i)})(s):s;/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const{is:un,defineProperty:pn,getOwnPropertyDescriptor:fn,getOwnPropertyNames:bn,getOwnPropertySymbols:mn,getPrototypeOf:gn}=Object,Rs=globalThis,Ar=Rs.trustedTypes,vn=Ar?Ar.emptyScript:"",yn=Rs.reactiveElementPolyfillSupport,es=(s,t)=>s,zs={toAttribute(s,t){switch(t){case Boolean:s=s?vn:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let i=s;switch(t){case Boolean:i=s!==null;break;case Number:i=s===null?null:Number(s);break;case Object:case Array:try{i=JSON.parse(s)}catch{i=null}}return i}},yi=(s,t)=>!un(s,t),kr={attribute:!0,type:String,converter:zs,reflect:!1,useDefault:!1,hasChanged:yi};Symbol.metadata??=Symbol("metadata"),Rs.litPropertyMetadata??=new WeakMap;let Re=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,i=kr){if(i.state&&(i.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((i=Object.create(i)).wrapped=!0),this.elementProperties.set(t,i),!i.noAccessor){const r=Symbol(),e=this.getPropertyDescriptor(t,r,i);e!==void 0&&pn(this.prototype,t,e)}}static getPropertyDescriptor(t,i,r){const{get:e,set:o}=fn(this.prototype,t)??{get(){return this[i]},set(n){this[i]=n}};return{get:e,set(n){const l=e?.call(this);o?.call(this,n),this.requestUpdate(t,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??kr}static _$Ei(){if(this.hasOwnProperty(es("elementProperties")))return;const t=gn(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(es("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(es("properties"))){const i=this.properties,r=[...bn(i),...mn(i)];for(const e of r)this.createProperty(e,i[e])}const t=this[Symbol.metadata];if(t!==null){const i=litPropertyMetadata.get(t);if(i!==void 0)for(const[r,e]of i)this.elementProperties.set(r,e)}this._$Eh=new Map;for(const[i,r]of this.elementProperties){const e=this._$Eu(i,r);e!==void 0&&this._$Eh.set(e,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const i=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const e of r)i.unshift($r(e))}else t!==void 0&&i.push($r(t));return i}static _$Eu(t,i){const r=i.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,i=this.constructor.elementProperties;for(const r of i.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 dn(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,i,r){this._$AK(t,r)}_$ET(t,i){const r=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,r);if(e!==void 0&&r.reflect===!0){const o=(r.converter?.toAttribute!==void 0?r.converter:zs).toAttribute(i,r.type);this._$Em=t,o==null?this.removeAttribute(e):this.setAttribute(e,o),this._$Em=null}}_$AK(t,i){const r=this.constructor,e=r._$Eh.get(t);if(e!==void 0&&this._$Em!==e){const o=r.getPropertyOptions(e),n=typeof o.converter=="function"?{fromAttribute:o.converter}:o.converter?.fromAttribute!==void 0?o.converter:zs;this._$Em=e;const l=n.fromAttribute(i,o.type);this[e]=l??this._$Ej?.get(e)??l,this._$Em=null}}requestUpdate(t,i,r){if(t!==void 0){const e=this.constructor,o=this[t];if(r??=e.getPropertyOptions(t),!((r.hasChanged??yi)(o,i)||r.useDefault&&r.reflect&&o===this._$Ej?.get(t)&&!this.hasAttribute(e._$Eu(t,r))))return;this.C(t,i,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,i,{useDefault:r,reflect:e,wrapped:o},n){r&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??i??this[t]),o!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||r||(i=void 0),this._$AL.set(t,i)),e===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(i){Promise.reject(i)}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[e,o]of this._$Ep)this[e]=o;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[e,o]of r){const{wrapped:n}=o,l=this[e];n!==!0||this._$AL.has(e)||l===void 0||this.C(e,void 0,o,l)}}let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),this._$EO?.forEach((r=>r.hostUpdate?.())),this.update(i)):this._$EM()}catch(r){throw t=!1,this._$EM(),r}t&&this._$AE(i)}willUpdate(t){}_$AE(t){this._$EO?.forEach((i=>i.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((i=>this._$ET(i,this[i]))),this._$EM()}updated(t){}firstUpdated(t){}};Re.elementStyles=[],Re.shadowRootOptions={mode:"open"},Re[es("elementProperties")]=new Map,Re[es("finalized")]=new Map,yn?.({ReactiveElement:Re}),(Rs.reactiveElementVersions??=[]).push("2.1.1");/**
13
+ */const{is:po,defineProperty:fo,getOwnPropertyDescriptor:bo,getOwnPropertyNames:mo,getOwnPropertySymbols:go,getPrototypeOf:vo}=Object,zs=globalThis,Dr=zs.trustedTypes,yo=Dr?Dr.emptyScript:"",_o=zs.reactiveElementPolyfillSupport,ss=(s,t)=>s,Us={toAttribute(s,t){switch(t){case Boolean:s=s?yo:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let i=s;switch(t){case Boolean:i=s!==null;break;case Number:i=s===null?null:Number(s);break;case Object:case Array:try{i=JSON.parse(s)}catch{i=null}}return i}},Pi=(s,t)=>!po(s,t),Or={attribute:!0,type:String,converter:Us,reflect:!1,useDefault:!1,hasChanged:Pi};Symbol.metadata??=Symbol("metadata"),zs.litPropertyMetadata??=new WeakMap;let ze=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,i=Or){if(i.state&&(i.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((i=Object.create(i)).wrapped=!0),this.elementProperties.set(t,i),!i.noAccessor){const r=Symbol(),e=this.getPropertyDescriptor(t,r,i);e!==void 0&&fo(this.prototype,t,e)}}static getPropertyDescriptor(t,i,r){const{get:e,set:n}=bo(this.prototype,t)??{get(){return this[i]},set(o){this[i]=o}};return{get:e,set(o){const l=e?.call(this);n?.call(this,o),this.requestUpdate(t,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Or}static _$Ei(){if(this.hasOwnProperty(ss("elementProperties")))return;const t=vo(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(ss("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ss("properties"))){const i=this.properties,r=[...mo(i),...go(i)];for(const e of r)this.createProperty(e,i[e])}const t=this[Symbol.metadata];if(t!==null){const i=litPropertyMetadata.get(t);if(i!==void 0)for(const[r,e]of i)this.elementProperties.set(r,e)}this._$Eh=new Map;for(const[i,r]of this.elementProperties){const e=this._$Eu(i,r);e!==void 0&&this._$Eh.set(e,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const i=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const e of r)i.unshift(kr(e))}else t!==void 0&&i.push(kr(t));return i}static _$Eu(t,i){const r=i.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,i=this.constructor.elementProperties;for(const r of i.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 uo(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,i,r){this._$AK(t,r)}_$ET(t,i){const r=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,r);if(e!==void 0&&r.reflect===!0){const n=(r.converter?.toAttribute!==void 0?r.converter:Us).toAttribute(i,r.type);this._$Em=t,n==null?this.removeAttribute(e):this.setAttribute(e,n),this._$Em=null}}_$AK(t,i){const r=this.constructor,e=r._$Eh.get(t);if(e!==void 0&&this._$Em!==e){const n=r.getPropertyOptions(e),o=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:Us;this._$Em=e;const l=o.fromAttribute(i,n.type);this[e]=l??this._$Ej?.get(e)??l,this._$Em=null}}requestUpdate(t,i,r){if(t!==void 0){const e=this.constructor,n=this[t];if(r??=e.getPropertyOptions(t),!((r.hasChanged??Pi)(n,i)||r.useDefault&&r.reflect&&n===this._$Ej?.get(t)&&!this.hasAttribute(e._$Eu(t,r))))return;this.C(t,i,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,i,{useDefault:r,reflect:e,wrapped:n},o){r&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,o??i??this[t]),n!==!0||o!==void 0)||(this._$AL.has(t)||(this.hasUpdated||r||(i=void 0),this._$AL.set(t,i)),e===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(i){Promise.reject(i)}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[e,n]of this._$Ep)this[e]=n;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[e,n]of r){const{wrapped:o}=n,l=this[e];o!==!0||this._$AL.has(e)||l===void 0||this.C(e,void 0,n,l)}}let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),this._$EO?.forEach((r=>r.hostUpdate?.())),this.update(i)):this._$EM()}catch(r){throw t=!1,this._$EM(),r}t&&this._$AE(i)}willUpdate(t){}_$AE(t){this._$EO?.forEach((i=>i.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((i=>this._$ET(i,this[i]))),this._$EM()}updated(t){}firstUpdated(t){}};ze.elementStyles=[],ze.shadowRootOptions={mode:"open"},ze[ss("elementProperties")]=new Map,ze[ss("finalized")]=new Map,_o?.({ReactiveElement:ze}),(zs.reactiveElementVersions??=[]).push("2.1.1");/**
14
14
  * @license
15
15
  * Copyright 2017 Google LLC
16
16
  * SPDX-License-Identifier: BSD-3-Clause
17
- */const _n={attribute:!0,type:String,converter:zs,reflect:!1,hasChanged:yi},wn=(s=_n,t,i)=>{const{kind:r,metadata:e}=i;let o=globalThis.litPropertyMetadata.get(e);if(o===void 0&&globalThis.litPropertyMetadata.set(e,o=new Map),r==="setter"&&((s=Object.create(s)).wrapped=!0),o.set(i.name,s),r==="accessor"){const{name:n}=i;return{set(l){const c=t.get.call(this);t.set.call(this,l),this.requestUpdate(n,c,s)},init(l){return l!==void 0&&this.C(n,void 0,s,l),l}}}if(r==="setter"){const{name:n}=i;return function(l){const c=this[n];t.call(this,l),this.requestUpdate(n,c,s)}}throw Error("Unsupported decorator location: "+r)};function a(s){return(t,i)=>typeof i=="object"?wn(s,t,i):((r,e,o)=>{const n=e.hasOwnProperty(o);return e.constructor.createProperty(o,r),n?Object.getOwnPropertyDescriptor(e,o):void 0})(s,t,i)}/**
17
+ */const wo={attribute:!0,type:String,converter:Us,reflect:!1,hasChanged:Pi},xo=(s=wo,t,i)=>{const{kind:r,metadata:e}=i;let n=globalThis.litPropertyMetadata.get(e);if(n===void 0&&globalThis.litPropertyMetadata.set(e,n=new Map),r==="setter"&&((s=Object.create(s)).wrapped=!0),n.set(i.name,s),r==="accessor"){const{name:o}=i;return{set(l){const c=t.get.call(this);t.set.call(this,l),this.requestUpdate(o,c,s)},init(l){return l!==void 0&&this.C(o,void 0,s,l),l}}}if(r==="setter"){const{name:o}=i;return function(l){const c=this[o];t.call(this,l),this.requestUpdate(o,c,s)}}throw Error("Unsupported decorator location: "+r)};function a(s){return(t,i)=>typeof i=="object"?xo(s,t,i):((r,e,n)=>{const o=e.hasOwnProperty(n);return e.constructor.createProperty(n,r),o?Object.getOwnPropertyDescriptor(e,n):void 0})(s,t,i)}/**
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 _i=(s,t,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(s,t,i),i);/**
25
+ */const Ci=(s,t,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(s,t,i),i);/**
26
26
  * @license
27
27
  * Copyright 2017 Google LLC
28
28
  * SPDX-License-Identifier: BSD-3-Clause
29
- */function re(s,t){return(i,r,e)=>{const o=n=>n.renderRoot?.querySelector(s)??null;return _i(i,r,{get(){return o(this)}})}}/**
29
+ */function oe(s,t){return(i,r,e)=>{const n=o=>o.renderRoot?.querySelector(s)??null;return Ci(i,r,{get(){return n(this)}})}}/**
30
30
  * @license
31
31
  * Copyright 2021 Google LLC
32
32
  * SPDX-License-Identifier: BSD-3-Clause
33
- */function ss(s){return(t,i)=>{const{slot:r,selector:e}=s??{},o="slot"+(r?`[name=${r}]`:":not([name])");return _i(t,i,{get(){const n=this.renderRoot?.querySelector(o),l=n?.assignedElements(s)??[];return e===void 0?l:l.filter((c=>c.matches(e)))}})}}/**
33
+ */function is(s){return(t,i)=>{const{slot:r,selector:e}=s??{},n="slot"+(r?`[name=${r}]`:":not([name])");return Ci(t,i,{get(){const o=this.renderRoot?.querySelector(n),l=o?.assignedElements(s)??[];return e===void 0?l:l.filter((c=>c.matches(e)))}})}}/**
34
34
  * @license
35
35
  * Copyright 2017 Google LLC
36
36
  * SPDX-License-Identifier: BSD-3-Clause
37
- */function dt(s){return(t,i)=>{const{slot:r}=s??{},e="slot"+(r?`[name=${r}]`:":not([name])");return _i(t,i,{get(){return this.renderRoot?.querySelector(e)?.assignedNodes(s)??[]}})}}/**
37
+ */function ft(s){return(t,i)=>{const{slot:r}=s??{},e="slot"+(r?`[name=${r}]`:":not([name])");return Ci(t,i,{get(){return this.renderRoot?.querySelector(e)?.assignedNodes(s)??[]}})}}/**
38
38
  * @license
39
39
  * Copyright 2017 Google LLC
40
40
  * SPDX-License-Identifier: BSD-3-Clause
41
- */const wi=globalThis,Us=wi.trustedTypes,Dr=Us?Us.createPolicy("lit-html",{createHTML:s=>s}):void 0,Or="$lit$",oe=`lit$${Math.random().toFixed(9).slice(2)}$`,Er="?"+oe,xn=`<${Er}>`,xe=document,is=()=>xe.createComment(""),rs=s=>s===null||typeof s!="object"&&typeof s!="function",xi=Array.isArray,Pn=s=>xi(s)||typeof s?.[Symbol.iterator]=="function",Pi=`[
42
- \f\r]`,os=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Lr=/-->/g,Tr=/>/g,Pe=RegExp(`>|${Pi}(?:([^\\s"'>=/]+)(${Pi}*=${Pi}*(?:[^
43
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ir=/'/g,Mr=/"/g,Nr=/^(?:script|style|textarea|title)$/i,Cn=s=>(t,...i)=>({_$litType$:s,strings:t,values:i}),g=Cn(1),Pt=Symbol.for("lit-noChange"),D=Symbol.for("lit-nothing"),Fr=new WeakMap,Ce=xe.createTreeWalker(xe,129);function jr(s,t){if(!xi(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Dr!==void 0?Dr.createHTML(t):t}const Sn=(s,t)=>{const i=s.length-1,r=[];let e,o=t===2?"<svg>":t===3?"<math>":"",n=os;for(let l=0;l<i;l++){const c=s[l];let h,p,d=-1,f=0;for(;f<c.length&&(n.lastIndex=f,p=n.exec(c),p!==null);)f=n.lastIndex,n===os?p[1]==="!--"?n=Lr:p[1]!==void 0?n=Tr:p[2]!==void 0?(Nr.test(p[2])&&(e=RegExp("</"+p[2],"g")),n=Pe):p[3]!==void 0&&(n=Pe):n===Pe?p[0]===">"?(n=e??os,d=-1):p[1]===void 0?d=-2:(d=n.lastIndex-p[2].length,h=p[1],n=p[3]===void 0?Pe:p[3]==='"'?Mr:Ir):n===Mr||n===Ir?n=Pe:n===Lr||n===Tr?n=os:(n=Pe,e=void 0);const _=n===Pe&&s[l+1].startsWith("/>")?" ":"";o+=n===os?c+xn:d>=0?(r.push(h),c.slice(0,d)+Or+c.slice(d)+oe+_):c+oe+(d===-2?l:_)}return[jr(s,o+(s[i]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]};let Ci=class Xo{constructor({strings:t,_$litType$:i},r){let e;this.parts=[];let o=0,n=0;const l=t.length-1,c=this.parts,[h,p]=Sn(t,i);if(this.el=Xo.createElement(h,r),Ce.currentNode=this.el.content,i===2||i===3){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(e=Ce.nextNode())!==null&&c.length<l;){if(e.nodeType===1){if(e.hasAttributes())for(const d of e.getAttributeNames())if(d.endsWith(Or)){const f=p[n++],_=e.getAttribute(d).split(oe),y=/([.?@])?(.*)/.exec(f);c.push({type:1,index:o,name:y[2],strings:_,ctor:y[1]==="."?An:y[1]==="?"?kn:y[1]==="@"?Dn:Vs}),e.removeAttribute(d)}else d.startsWith(oe)&&(c.push({type:6,index:o}),e.removeAttribute(d));if(Nr.test(e.tagName)){const d=e.textContent.split(oe),f=d.length-1;if(f>0){e.textContent=Us?Us.emptyScript:"";for(let _=0;_<f;_++)e.append(d[_],is()),Ce.nextNode(),c.push({type:2,index:++o});e.append(d[f],is())}}}else if(e.nodeType===8)if(e.data===Er)c.push({type:2,index:o});else{let d=-1;for(;(d=e.data.indexOf(oe,d+1))!==-1;)c.push({type:7,index:o}),d+=oe.length-1}o++}}static createElement(t,i){const r=xe.createElement("template");return r.innerHTML=t,r}};function ze(s,t,i=s,r){if(t===Pt)return t;let e=r!==void 0?i._$Co?.[r]:i._$Cl;const o=rs(t)?void 0:t._$litDirective$;return e?.constructor!==o&&(e?._$AO?.(!1),o===void 0?e=void 0:(e=new o(s),e._$AT(s,i,r)),r!==void 0?(i._$Co??=[])[r]=e:i._$Cl=e),e!==void 0&&(t=ze(s,e._$AS(s,t.values),e,r)),t}let $n=class{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:r}=this._$AD,e=(t?.creationScope??xe).importNode(i,!0);Ce.currentNode=e;let o=Ce.nextNode(),n=0,l=0,c=r[0];for(;c!==void 0;){if(n===c.index){let h;c.type===2?h=new Ue(o,o.nextSibling,this,t):c.type===1?h=new c.ctor(o,c.name,c.strings,this,t):c.type===6&&(h=new On(o,this,t)),this._$AV.push(h),c=r[++l]}n!==c?.index&&(o=Ce.nextNode(),n++)}return Ce.currentNode=xe,e}p(t){let i=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,i),i+=r.strings.length-2):r._$AI(t[i])),i++}};class Ue{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,r,e){this.type=2,this._$AH=D,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=r,this.options=e,this._$Cv=e?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return i!==void 0&&t?.nodeType===11&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=ze(this,t,i),rs(t)?t===D||t==null||t===""?(this._$AH!==D&&this._$AR(),this._$AH=D):t!==this._$AH&&t!==Pt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Pn(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&&rs(this._$AH)?this._$AA.nextSibling.data=t:this.T(xe.createTextNode(t)),this._$AH=t}$(t){const{values:i,_$litType$:r}=t,e=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=Ci.createElement(jr(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===e)this._$AH.p(i);else{const o=new $n(e,this),n=o.u(this.options);o.p(i),this.T(n),this._$AH=o}}_$AC(t){let i=Fr.get(t.strings);return i===void 0&&Fr.set(t.strings,i=new Ci(t)),i}k(t){xi(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let r,e=0;for(const o of t)e===i.length?i.push(r=new Ue(this.O(is()),this.O(is()),this,this.options)):r=i[e],r._$AI(o),e++;e<i.length&&(this._$AR(r&&r._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}}class Vs{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,r,e,o){this.type=1,this._$AH=D,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=D}_$AI(t,i=this,r,e){const o=this.strings;let n=!1;if(o===void 0)t=ze(this,t,i,0),n=!rs(t)||t!==this._$AH&&t!==Pt,n&&(this._$AH=t);else{const l=t;let c,h;for(t=o[0],c=0;c<o.length-1;c++)h=ze(this,l[r+c],i,c),h===Pt&&(h=this._$AH[c]),n||=!rs(h)||h!==this._$AH[c],h===D?t=D:t!==D&&(t+=(h??"")+o[c+1]),this._$AH[c]=h}n&&!e&&this.j(t)}j(t){t===D?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class An extends Vs{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===D?void 0:t}}class kn extends Vs{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==D)}}class Dn extends Vs{constructor(t,i,r,e,o){super(t,i,r,e,o),this.type=5}_$AI(t,i=this){if((t=ze(this,t,i,0)??D)===Pt)return;const r=this._$AH,e=t===D&&r!==D||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==D&&(r===D||e);e&&this.element.removeEventListener(this.name,this,r),o&&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 On{constructor(t,i,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){ze(this,t)}}const En={I:Ue},Ln=wi.litHtmlPolyfillSupport;Ln?.(Ci,Ue),(wi.litHtmlVersions??=[]).push("3.3.1");const Tn=(s,t,i)=>{const r=i?.renderBefore??t;let e=r._$litPart$;if(e===void 0){const o=i?.renderBefore??null;r._$litPart$=e=new Ue(t.insertBefore(is(),o),o,void 0,i??{})}return e._$AI(s),e};/**
41
+ */const Si=globalThis,Vs=Si.trustedTypes,Er=Vs?Vs.createPolicy("lit-html",{createHTML:s=>s}):void 0,Lr="$lit$",ae=`lit$${Math.random().toFixed(9).slice(2)}$`,Tr="?"+ae,Po=`<${Tr}>`,Pe=document,rs=()=>Pe.createComment(""),ns=s=>s===null||typeof s!="object"&&typeof s!="function",$i=Array.isArray,Co=s=>$i(s)||typeof s?.[Symbol.iterator]=="function",Ai=`[
42
+ \f\r]`,os=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ir=/-->/g,Mr=/>/g,Ce=RegExp(`>|${Ai}(?:([^\\s"'>=/]+)(${Ai}*=${Ai}*(?:[^
43
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Nr=/'/g,Fr=/"/g,jr=/^(?:script|style|textarea|title)$/i,So=s=>(t,...i)=>({_$litType$:s,strings:t,values:i}),g=So(1),At=Symbol.for("lit-noChange"),k=Symbol.for("lit-nothing"),Rr=new WeakMap,Se=Pe.createTreeWalker(Pe,129);function zr(s,t){if(!$i(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Er!==void 0?Er.createHTML(t):t}const $o=(s,t)=>{const i=s.length-1,r=[];let e,n=t===2?"<svg>":t===3?"<math>":"",o=os;for(let l=0;l<i;l++){const c=s[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===os?u[1]==="!--"?o=Ir:u[1]!==void 0?o=Mr:u[2]!==void 0?(jr.test(u[2])&&(e=RegExp("</"+u[2],"g")),o=Ce):u[3]!==void 0&&(o=Ce):o===Ce?u[0]===">"?(o=e??os,d=-1):u[1]===void 0?d=-2:(d=o.lastIndex-u[2].length,h=u[1],o=u[3]===void 0?Ce:u[3]==='"'?Fr:Nr):o===Fr||o===Nr?o=Ce:o===Ir||o===Mr?o=os:(o=Ce,e=void 0);const w=o===Ce&&s[l+1].startsWith("/>")?" ":"";n+=o===os?c+Po:d>=0?(r.push(h),c.slice(0,d)+Lr+c.slice(d)+ae+w):c+ae+(d===-2?l:w)}return[zr(s,n+(s[i]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]};let ki=class Qn{constructor({strings:t,_$litType$:i},r){let e;this.parts=[];let n=0,o=0;const l=t.length-1,c=this.parts,[h,u]=$o(t,i);if(this.el=Qn.createElement(h,r),Se.currentNode=this.el.content,i===2||i===3){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(e=Se.nextNode())!==null&&c.length<l;){if(e.nodeType===1){if(e.hasAttributes())for(const d of e.getAttributeNames())if(d.endsWith(Lr)){const p=u[o++],w=e.getAttribute(d).split(ae),v=/([.?@])?(.*)/.exec(p);c.push({type:1,index:n,name:v[2],strings:w,ctor:v[1]==="."?ko:v[1]==="?"?Do:v[1]==="@"?Oo:Bs}),e.removeAttribute(d)}else d.startsWith(ae)&&(c.push({type:6,index:n}),e.removeAttribute(d));if(jr.test(e.tagName)){const d=e.textContent.split(ae),p=d.length-1;if(p>0){e.textContent=Vs?Vs.emptyScript:"";for(let w=0;w<p;w++)e.append(d[w],rs()),Se.nextNode(),c.push({type:2,index:++n});e.append(d[p],rs())}}}else if(e.nodeType===8)if(e.data===Tr)c.push({type:2,index:n});else{let d=-1;for(;(d=e.data.indexOf(ae,d+1))!==-1;)c.push({type:7,index:n}),d+=ae.length-1}n++}}static createElement(t,i){const r=Pe.createElement("template");return r.innerHTML=t,r}};function Ue(s,t,i=s,r){if(t===At)return t;let e=r!==void 0?i._$Co?.[r]:i._$Cl;const n=ns(t)?void 0:t._$litDirective$;return e?.constructor!==n&&(e?._$AO?.(!1),n===void 0?e=void 0:(e=new n(s),e._$AT(s,i,r)),r!==void 0?(i._$Co??=[])[r]=e:i._$Cl=e),e!==void 0&&(t=Ue(s,e._$AS(s,t.values),e,r)),t}let Ao=class{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:r}=this._$AD,e=(t?.creationScope??Pe).importNode(i,!0);Se.currentNode=e;let n=Se.nextNode(),o=0,l=0,c=r[0];for(;c!==void 0;){if(o===c.index){let h;c.type===2?h=new Ve(n,n.nextSibling,this,t):c.type===1?h=new c.ctor(n,c.name,c.strings,this,t):c.type===6&&(h=new Eo(n,this,t)),this._$AV.push(h),c=r[++l]}o!==c?.index&&(n=Se.nextNode(),o++)}return Se.currentNode=Pe,e}p(t){let i=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,i),i+=r.strings.length-2):r._$AI(t[i])),i++}};class Ve{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,r,e){this.type=2,this._$AH=k,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=r,this.options=e,this._$Cv=e?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return i!==void 0&&t?.nodeType===11&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=Ue(this,t,i),ns(t)?t===k||t==null||t===""?(this._$AH!==k&&this._$AR(),this._$AH=k):t!==this._$AH&&t!==At&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Co(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&&ns(this._$AH)?this._$AA.nextSibling.data=t:this.T(Pe.createTextNode(t)),this._$AH=t}$(t){const{values:i,_$litType$:r}=t,e=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=ki.createElement(zr(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===e)this._$AH.p(i);else{const n=new Ao(e,this),o=n.u(this.options);n.p(i),this.T(o),this._$AH=n}}_$AC(t){let i=Rr.get(t.strings);return i===void 0&&Rr.set(t.strings,i=new ki(t)),i}k(t){$i(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let r,e=0;for(const n of t)e===i.length?i.push(r=new Ve(this.O(rs()),this.O(rs()),this,this.options)):r=i[e],r._$AI(n),e++;e<i.length&&(this._$AR(r&&r._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}}class Bs{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,r,e,n){this.type=1,this._$AH=k,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,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,i=this,r,e){const n=this.strings;let o=!1;if(n===void 0)t=Ue(this,t,i,0),o=!ns(t)||t!==this._$AH&&t!==At,o&&(this._$AH=t);else{const l=t;let c,h;for(t=n[0],c=0;c<n.length-1;c++)h=Ue(this,l[r+c],i,c),h===At&&(h=this._$AH[c]),o||=!ns(h)||h!==this._$AH[c],h===k?t=k:t!==k&&(t+=(h??"")+n[c+1]),this._$AH[c]=h}o&&!e&&this.j(t)}j(t){t===k?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ko extends Bs{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===k?void 0:t}}class Do extends Bs{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==k)}}class Oo extends Bs{constructor(t,i,r,e,n){super(t,i,r,e,n),this.type=5}_$AI(t,i=this){if((t=Ue(this,t,i,0)??k)===At)return;const r=this._$AH,e=t===k&&r!==k||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==k&&(r===k||e);e&&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 Eo{constructor(t,i,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){Ue(this,t)}}const Lo={I:Ve},To=Si.litHtmlPolyfillSupport;To?.(ki,Ve),(Si.litHtmlVersions??=[]).push("3.3.1");const Io=(s,t,i)=>{const r=i?.renderBefore??t;let e=r._$litPart$;if(e===void 0){const n=i?.renderBefore??null;r._$litPart$=e=new Ve(t.insertBefore(rs(),n),n,void 0,i??{})}return e._$AI(s),e};/**
44
44
  * @license
45
45
  * Copyright 2020 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
- */const{I:In}=En,Mn=s=>s.strings===void 0,Rr=()=>document.createComment(""),ns=(s,t,i)=>{const r=s._$AA.parentNode,e=t===void 0?s._$AB:t._$AA;if(i===void 0){const o=r.insertBefore(Rr(),e),n=r.insertBefore(Rr(),e);i=new In(o,n,s,s.options)}else{const o=i._$AB.nextSibling,n=i._$AM,l=n!==s;if(l){let c;i._$AQ?.(s),i._$AM=s,i._$AP!==void 0&&(c=s._$AU)!==n._$AU&&i._$AP(c)}if(o!==e||l){let c=i._$AA;for(;c!==o;){const h=c.nextSibling;r.insertBefore(c,e),c=h}}}return i},Se=(s,t,i=s)=>(s._$AI(t,i),s),Nn={},Fn=(s,t=Nn)=>s._$AH=t,jn=s=>s._$AH,Si=s=>{s._$AR(),s._$AA.remove()};/**
47
+ */const{I:Mo}=Lo,No=s=>s.strings===void 0,Ur=()=>document.createComment(""),as=(s,t,i)=>{const r=s._$AA.parentNode,e=t===void 0?s._$AB:t._$AA;if(i===void 0){const n=r.insertBefore(Ur(),e),o=r.insertBefore(Ur(),e);i=new Mo(n,o,s,s.options)}else{const n=i._$AB.nextSibling,o=i._$AM,l=o!==s;if(l){let c;i._$AQ?.(s),i._$AM=s,i._$AP!==void 0&&(c=s._$AU)!==o._$AU&&i._$AP(c)}if(n!==e||l){let c=i._$AA;for(;c!==n;){const h=c.nextSibling;r.insertBefore(c,e),c=h}}}return i},$e=(s,t,i=s)=>(s._$AI(t,i),s),Fo={},jo=(s,t=Fo)=>s._$AH=t,Ro=s=>s._$AH,Di=s=>{s._$AR(),s._$AA.remove()};/**
48
48
  * @license
49
49
  * Copyright 2017 Google LLC
50
50
  * SPDX-License-Identifier: BSD-3-Clause
51
- */const $e={ATTRIBUTE:1,CHILD:2},ne=s=>(...t)=>({_$litDirective$:s,values:t});let Ve=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,r){this._$Ct=t,this._$AM=i,this._$Ci=r}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}};/**
51
+ */const Ae={ATTRIBUTE:1,CHILD:2},le=s=>(...t)=>({_$litDirective$:s,values:t});let Be=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,r){this._$Ct=t,this._$AM=i,this._$Ci=r}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}};/**
52
52
  * @license
53
53
  * Copyright 2017 Google LLC
54
54
  * SPDX-License-Identifier: BSD-3-Clause
55
- */const as=(s,t)=>{const i=s._$AN;if(i===void 0)return!1;for(const r of i)r._$AO?.(t,!1),as(r,t);return!0},Bs=s=>{let t,i;do{if((t=s._$AM)===void 0)break;i=t._$AN,i.delete(s),s=t}while(i?.size===0)},zr=s=>{for(let t;t=s._$AM;s=t){let i=t._$AN;if(i===void 0)t._$AN=i=new Set;else if(i.has(s))break;i.add(s),Un(t)}};function Rn(s){this._$AN!==void 0?(Bs(this),this._$AM=s,zr(this)):this._$AM=s}function zn(s,t=!1,i=0){const r=this._$AH,e=this._$AN;if(e!==void 0&&e.size!==0)if(t)if(Array.isArray(r))for(let o=i;o<r.length;o++)as(r[o],!1),Bs(r[o]);else r!=null&&(as(r,!1),Bs(r));else as(this,s)}const Un=s=>{s.type==$e.CHILD&&(s._$AP??=zn,s._$AQ??=Rn)};class $i extends Ve{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,i,r){super._$AT(t,i,r),zr(this),this.isConnected=t._$AU}_$AO(t,i=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),i&&(as(this,t),Bs(this))}setValue(t){if(Mn(this._$Ct))this._$Ct._$AI(t,this);else{const i=[...this._$Ct._$AH];i[this._$Ci]=t,this._$Ct._$AI(i,this,0)}}disconnected(){}reconnected(){}}/**
55
+ */const ls=(s,t)=>{const i=s._$AN;if(i===void 0)return!1;for(const r of i)r._$AO?.(t,!1),ls(r,t);return!0},Hs=s=>{let t,i;do{if((t=s._$AM)===void 0)break;i=t._$AN,i.delete(s),s=t}while(i?.size===0)},Vr=s=>{for(let t;t=s._$AM;s=t){let i=t._$AN;if(i===void 0)t._$AN=i=new Set;else if(i.has(s))break;i.add(s),Vo(t)}};function zo(s){this._$AN!==void 0?(Hs(this),this._$AM=s,Vr(this)):this._$AM=s}function Uo(s,t=!1,i=0){const r=this._$AH,e=this._$AN;if(e!==void 0&&e.size!==0)if(t)if(Array.isArray(r))for(let n=i;n<r.length;n++)ls(r[n],!1),Hs(r[n]);else r!=null&&(ls(r,!1),Hs(r));else ls(this,s)}const Vo=s=>{s.type==Ae.CHILD&&(s._$AP??=Uo,s._$AQ??=zo)};class Oi extends Be{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,i,r){super._$AT(t,i,r),Vr(this),this.isConnected=t._$AU}_$AO(t,i=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),i&&(ls(this,t),Hs(this))}setValue(t){if(No(this._$Ct))this._$Ct._$AI(t,this);else{const i=[...this._$Ct._$AH];i[this._$Ci]=t,this._$Ct._$AI(i,this,0)}}disconnected(){}reconnected(){}}/**
56
56
  * @license
57
57
  * Copyright 2017 Google LLC
58
58
  * SPDX-License-Identifier: BSD-3-Clause
59
- */const Ai=globalThis;let P=class extends Re{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 i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Tn(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Pt}};P._$litElement$=!0,P.finalized=!0,Ai.litElementHydrateSupport?.({LitElement:P});const Vn=Ai.litElementPolyfillSupport;Vn?.({LitElement:P}),(Ai.litElementVersions??=[]).push("4.2.1");function Ur(s){if(s==null||typeof s!="object"||Array.isArray(s))return s;const t={...s};return delete t._sonic_http_response_,t}const H=class H{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){H.tokens.delete(this.serviceURL);return}H.invalidTokens.includes(t)||H.tokens.set(this.serviceURL,t)}get token(){return H.invalidTokens.includes(this._token)?H.tokens.get(this.serviceURL):this._token}handleInvalidToken(t){t&&(H.invalidTokens.includes(t)||(H.invalidTokens.push(t),this.token=null))}async handleResult(t,i){H.firstCallDoneFlags.set(this.serviceURL,"done"),this.lastResult=t;const r=t.headers.get("content-type")?.toLowerCase(),e=t.status;let o={};if(!r||r.indexOf("text/")==0)o={text:await t.text()};else try{o=await t.json()}catch{o={}}return this.addHTTPResponse&&ot.isObject(o)&&(o._sonic_http_response_=t),e===498&&!H.failledTokenUpdates.has(this.serviceURL)&&(this.handleInvalidToken(this.token),i.apiMethod==="get"?o=await this[i.apiMethod](i.path,i.additionalHeaders):o=await this[i.apiMethod](i.path,i.data,i.method,i.additionalHeaders)),Ns("sonic-api").lastResponse.set({http:t,processed:o}),o}async auth(){if(this.token)return;if(H.tokens.has(this.serviceURL)){this.token=H.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 i=new URL(this.serviceURL),r=i.protocol+"//"+i.host,e=await fetch(this.computeURL(this.tokenProvider,{serviceHost:r}),{headers:t,credentials:this.credentials,keepalive:this.keepAlive});try{const o=await e.json();o.token?this.token=o.token:H.failledTokenUpdates.set(this.serviceURL,!0)}catch{H.failledTokenUpdates.set(this.serviceURL,!0)}}async localGet(t,i){const r=E.get(t),e=new URLSearchParams(i.split("?")[1]||""),o=r.get();let n=[];Array.isArray(o)?n=o:n=[o];const l=[];let c=Number.POSITIVE_INFINITY,h=0,p=0;if(e.has("limit")&&(c=parseInt(e.get("limit")||"0"),p++),e.has("offset")&&(h=parseInt(e.get("offset")||"0"),p++),p>0&&(e.delete("limit"),e.delete("offset")),e.size===0)return n.slice(h,h+c);for(const[d,f]of e.entries()){const _=f.split(",").map(y=>y.trim());for(const y of _)for(const m of n)if(typeof m!="object")isNaN(+m)?m.toString().toLowerCase().includes(f.toLowerCase())&&l.push(m):m===f&&l.push(m);else{const v=m;if(!v[d])continue;isNaN(+v[d])?v[d]?.toString().toLowerCase().includes(y.toLowerCase())&&l.push(m):v[d]===y&&l.push(m)}}return l.slice(h,h+c)}firstCallDone(){return new Promise(t=>{if(!H.firstCallDoneFlags.has(this.serviceURL))H.firstCallDoneFlags.set(this.serviceURL,"loading"),t(!0);else{const i=()=>{[void 0,"loading"].includes(H.firstCallDoneFlags.get(this.serviceURL))?window.requestAnimationFrame(i):t(!0)};i()}})}async get(t,i){await this.firstCallDone(),this.blockUntilDone&&H.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 e={apiMethod:"get",path:t,additionalHeaders:i},o=await this.createHeaders(i),n=this.computeURL(t),l=JSON.stringify({url:n,headers:o});if(!H.loadingGetPromises.has(l)){const h=new Promise(async p=>{try{const d=await fetch(n,{headers:o,credentials:this.credentials,cache:this.cache,keepalive:this.keepAlive}),f=await this.handleResult(d,e);p(f)}catch{p(null)}});H.loadingGetPromises.set(l,h)}const c=await H.loadingGetPromises.get(l);return H.loadingGetPromises.delete(l),c}async getDetailed(t,i){const r=/dataProvider\((.*?)\)(.*?)$/.test(t),e=await this.get(t,i);if(e==null)return;const o=Ur(e),n=this.computeURL(t);if(r)return{request:new Request(n,{method:"GET"}),result:o};const l=await this.createHeaders(i);return{request:new Request(n,{method:"GET",headers:new Headers(l),credentials:this.credentials,cache:this.cache,keepalive:this.keepAlive}),response:this.lastResult,result:o}}async sendDetailed(t,i,r,e){const o=await this.send(t,i,r,e);if(o==null)return;const n=Ur(o),l=this.computeURL(t),c=await this.createHeaders({Accept:"application/json","Content-Type":"application/json",...e});return{request:new Request(l,{method:r,headers:new Headers(c),credentials:this.credentials,body:JSON.stringify(i),keepalive:this.keepAlive}),response:this.lastResult,result:n}}async postDetailed(t,i,r){return this.sendDetailed(t,i,"POST",r)}async putDetailed(t,i,r){return this.sendDetailed(t,i,"PUT",r)}async patchDetailed(t,i,r){return this.sendDetailed(t,i,"PATCH",r)}async createHeaders(t){await this.auth();const i={};return this.token&&(i.Authorization="Bearer "+this.token),i["Accept-Language"]=G.getLanguage(),t&&Object.assign(i,t),i}computeURL(t,i={}){let r="";t.startsWith("http")?r=t:r=this.serviceURL+"/"+t,r.startsWith("http")||(r=window.location.origin+r);const e=new URL(r);for(const o in i)e.searchParams.set(o,i[o]);return e.toString().replace(/([^(https?:)])\/{2,}/g,"$1/")}async send(t,i,r="POST",e){const o={apiMethod:"send",path:t,additionalHeaders:e,method:r,data:i},n=await this.createHeaders(e);n.Accept="application/json",n["Content-Type"]="application/json";const l=await fetch(this.computeURL(t),{headers:n,credentials:this.credentials,method:r,body:JSON.stringify(i),keepalive:this.keepAlive});return await this.handleResult(l,o)}async submitFormData(t,i,r="POST",e){const o={apiMethod:"submitFormData",path:t,additionalHeaders:e,method:r,data:i},n=await this.createHeaders(e);n.Accept="application/json";const l=new FormData,c=i;for(const p in c)l.set(p,c[p]);const h=await fetch(this.computeURL(t),{headers:n,credentials:this.credentials,method:r,body:l,keepalive:this.keepAlive});return await this.handleResult(h,o)}async put(t,i,r){return this.send(t,i,"PUT",r)}async post(t,i,r){return this.send(t,i,"POST",r)}async patch(t,i,r){return this.send(t,i,"PATCH",r)}async delete(t,i,r){return this.send(t,i,"delete",r)}};H.loadingGetPromises=new Map,H.tokens=new Map,H.invalidTokens=[],H.failledTokenUpdates=new Map,H.firstCallDoneFlags=new Map;let ae=H;G.getApiConfiguration(document.body||document.documentElement);const Bn=async(s,t)=>{};/**
59
+ */const Ei=globalThis;let P=class extends ze{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 i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Io(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return At}};P._$litElement$=!0,P.finalized=!0,Ei.litElementHydrateSupport?.({LitElement:P});const Bo=Ei.litElementPolyfillSupport;Bo?.({LitElement:P}),(Ei.litElementVersions??=[]).push("4.2.1");function Br(s){if(s==null||typeof s!="object"||Array.isArray(s))return s;const t={...s};return delete t._sonic_http_response_,t}const W=class W{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){W.tokens.delete(this.serviceURL);return}W.invalidTokens.includes(t)||W.tokens.set(this.serviceURL,t)}get token(){return W.invalidTokens.includes(this._token)?W.tokens.get(this.serviceURL):this._token}handleInvalidToken(t){t&&(W.invalidTokens.includes(t)||(W.invalidTokens.push(t),this.token=null))}async handleResult(t,i){W.firstCallDoneFlags.set(this.serviceURL,"done"),this.lastResult=t;const r=t.headers.get("content-type")?.toLowerCase(),e=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),e===498&&!W.failledTokenUpdates.has(this.serviceURL)&&(this.handleInvalidToken(this.token),i.apiMethod==="get"?n=await this[i.apiMethod](i.path,i.additionalHeaders):n=await this[i.apiMethod](i.path,i.data,i.method,i.additionalHeaders)),Fs("sonic-api").lastResponse.set({http:t,processed:n}),n}async auth(){if(this.token)return;if(W.tokens.has(this.serviceURL)){this.token=W.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 i=new URL(this.serviceURL),r=i.protocol+"//"+i.host,e=await fetch(this.computeURL(this.tokenProvider,{serviceHost:r}),{headers:t,credentials:this.credentials,keepalive:this.keepAlive});try{const n=await e.json();n.token?this.token=n.token:W.failledTokenUpdates.set(this.serviceURL,!0)}catch{W.failledTokenUpdates.set(this.serviceURL,!0)}}async localGet(t,i){const r=E.get(t),e=new URLSearchParams(i.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(e.has("limit")&&(c=parseInt(e.get("limit")||"0"),u++),e.has("offset")&&(h=parseInt(e.get("offset")||"0"),u++),u>0&&(e.delete("limit"),e.delete("offset")),e.size===0)return o.slice(h,h+c);for(const[d,p]of e.entries()){const w=p.split(",").map(v=>v.trim());for(const v of w)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 y=m;if(!y[d])continue;isNaN(+y[d])?y[d]?.toString().toLowerCase().includes(v.toLowerCase())&&l.push(m):y[d]===v&&l.push(m)}}return l.slice(h,h+c)}firstCallDone(){return new Promise(t=>{if(!W.firstCallDoneFlags.has(this.serviceURL))W.firstCallDoneFlags.set(this.serviceURL,"loading"),t(!0);else{const i=()=>{[void 0,"loading"].includes(W.firstCallDoneFlags.get(this.serviceURL))?window.requestAnimationFrame(i):t(!0)};i()}})}async get(t,i){await this.firstCallDone(),this.blockUntilDone&&W.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 e={apiMethod:"get",path:t,additionalHeaders:i},n=await this.createHeaders(i),o=this.computeURL(t),l=JSON.stringify({url:o,headers:n});if(!W.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,e);u(p)}catch{u(null)}});W.loadingGetPromises.set(l,h)}const c=await W.loadingGetPromises.get(l);return W.loadingGetPromises.delete(l),c}async getDetailed(t,i){const r=/dataProvider\((.*?)\)(.*?)$/.test(t),e=await this.get(t,i);if(e==null)return;const n=Br(e),o=this.computeURL(t);if(r)return{request:new Request(o,{method:"GET"}),result:n};const l=await this.createHeaders(i);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,i,r,e){const n=await this.send(t,i,r,e);if(n==null)return;const o=Br(n),l=this.computeURL(t),c=await this.createHeaders({Accept:"application/json","Content-Type":"application/json",...e});return{request:new Request(l,{method:r,headers:new Headers(c),credentials:this.credentials,body:JSON.stringify(i),keepalive:this.keepAlive}),response:this.lastResult,result:o}}async postDetailed(t,i,r){return this.sendDetailed(t,i,"POST",r)}async putDetailed(t,i,r){return this.sendDetailed(t,i,"PUT",r)}async patchDetailed(t,i,r){return this.sendDetailed(t,i,"PATCH",r)}async createHeaders(t){await this.auth();const i={};return this.token&&(i.Authorization="Bearer "+this.token),i["Accept-Language"]=Z.getLanguage(),t&&Object.assign(i,t),i}computeURL(t,i={}){let r="";t.startsWith("http")?r=t:r=this.serviceURL+"/"+t,r.startsWith("http")||(r=window.location.origin+r);const e=new URL(r);for(const n in i)e.searchParams.set(n,i[n]);return e.toString().replace(/([^(https?:)])\/{2,}/g,"$1/")}async send(t,i,r="POST",e){const n={apiMethod:"send",path:t,additionalHeaders:e,method:r,data:i},o=await this.createHeaders(e);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(i),keepalive:this.keepAlive});return await this.handleResult(l,n)}async submitFormData(t,i,r="POST",e){const n={apiMethod:"submitFormData",path:t,additionalHeaders:e,method:r,data:i},o=await this.createHeaders(e);o.Accept="application/json";const l=new FormData,c=i;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,i,r){return this.send(t,i,"PUT",r)}async post(t,i,r){return this.send(t,i,"POST",r)}async patch(t,i,r){return this.send(t,i,"PATCH",r)}async delete(t,i,r){return this.send(t,i,"delete",r)}};W.loadingGetPromises=new Map,W.tokens=new Map,W.invalidTokens=[],W.failledTokenUpdates=new Map,W.firstCallDoneFlags=new Map;let ce=W;Z.getApiConfiguration(document.body||document.documentElement);const Ho=async(s,t)=>{};/**
60
60
  * @license
61
61
  * Copyright 2017 Google LLC
62
62
  * SPDX-License-Identifier: BSD-3-Clause
63
- */let ki=class extends Ve{constructor(t){if(super(t),this.it=D,t.type!==$e.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===Pt)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 i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}};ki.directiveName="unsafeHTML",ki.resultType=1;const U=ne(ki),Di=new Map,Vr=s=>{if(!s)return null;const t=G.getApiConfiguration(s),i=G.getAncestorAttributeValue(s,"wordingProvider"),r=G.getAncestorAttributeValue(s,"wordingVersionProvider"),e={apiConfiguration:t,wordingProvider:i,wordingVersionProvider:r};let o=null;for(const[n,l]of Di)if(ot.deepEqual(n,e)){o=l;break}return o||(o={api:new ae(t),keysToTranslate:new Set,translatedKeys:new Set,wordingProvider:i,callIndex:0,wordingVersionProvider:r,apiCallKey:e},Di.set(e,o)),o},Br="",W=class W extends $i{constructor(t){super(t),this.useUnsafeHTML=!1,this.onAssign=i=>{const r=this.useUnsafeHTML?U(i):i;this.setValue(r)},this.node=t.options.host}unsubscribe(){W.publisher["wording_"+this.key].offAssign(this.onAssign)}render(t,i=!1){return this.useUnsafeHTML=i,this.key!==t&&(this.key=t,this.isConnected&&this.subscribe(t)),Pt}static async callApi(t,i,r=!0,e){if(await E.getInstance().isLocalStrorageReady,W.firstCall){W.firstCall=!1,ui(W.reloadWordings);const p=Object.keys(W.publisher.get());for(const d of p)W.publisher.get()[d]===Br&&delete W.publisher[d]}if(t){const p=G.getAncestorAttributeValue(t,"wordingVersionProvider");p&&Ns(p).onAssign(W.handleVersionProvider(t))}let o=W.publisher.get()["wording_"+i]!=null;const n=e||Vr(t);if(!n)return;if(o&&i!==""){n.translatedKeys.add(i);return}n.callIndex++;const l=n.callIndex,c=n.wordingProvider??"";if(!c&&r){window.setTimeout(async()=>{W.callApi(null,i,!1,n)},1e3);return}const h=n.api;window.queueMicrotask(async()=>{if(o=W.publisher["wording_"+i].get()!=null,!o&&i!==""&&(n.keysToTranslate.add(i),W.publisher["wording_"+i].set(Br)),l!==n.callIndex)return;const p=Array.from(n.keysToTranslate);if(!p.length)return;const d=c.split("?"),f=d.shift(),_=(d.length>0?d.join("?")+"&":"")+"labels[]="+p.join("&labels[]="),y=f+"?"+_;n.translatedKeys=new Set([...n.translatedKeys,...n.keysToTranslate]),n.keysToTranslate.clear();const m=await h.get(y);for(const v in m)W.publisher["wording_"+v].set(m[v])})}static reloadWordings(){for(const t of Di.values())t.keysToTranslate=new Set(t.translatedKeys),t.keysToTranslate.size>0&&W.callApi(null,"",!1,t)}static handleVersionProvider(t){const i=Vr(t),r=o=>{};if(!i)return r;if(W.versionProviderHandlers.has(i))return W.versionProviderHandlers.get(i)||r;const e=function(o){if(!i.wordingVersionProvider)return;const l=W.publisher.get().__wording_versions__??[];if(o==null)return;const c=l.find(h=>h.serviceURL===i.api.serviceURL)||{serviceURL:i.api.serviceURL,version:0};l.includes(c)||l.push(c),o!==c.version&&(c.version=o,W.publisher.set({__wording_versions__:l}),W.reloadWordings())};return W.versionProviderHandlers.set(i,e),e}subscribe(t){this.unsubscribe(),W.publisher["wording_"+t].onAssign(this.onAssign),W.callApi(this.node,t)}disconnected(){this.unsubscribe()}reconnected(){this.key&&this.subscribe(this.key)}};W.publisher=E.get("sonic-wording",{localStorageMode:"enabled"}),W.firstCall=!0,W.versionProviderHandlers=new Map;let Be=W;const Hn=ne(Be);var qn=Object.defineProperty,Wn=Object.getOwnPropertyDescriptor,Rt=(s,t,i,r)=>{for(var e=r>1?void 0:r?Wn(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&qn(t,i,e),e};let Hs=!1,Oi=new Set;const st=(s,t)=>{var e;const i=(e=class extends s{constructor(...n){super(),this.collectDependenciesVersion=0,this.displayContents=!1,this.noAutoFill=!1,this.forceAutoFill=!1,this.renderOnPropsInternalChange=!1,this.noShadowDom=null,this.propertyMap=null,this.title="",this.dataProvider=null,this.bindPublisher=null,this._props=null,this.shouldRenderLazy=!0,this.defferedDebug=null,this.debug=null,this.onAssign=l=>{this.props=l}}hasAncestorAttribute(n){return this.getAncestorAttributeValue(n)!=null}getAncestorAttributeValue(n){return G.getAncestorAttributeValue(this,n)}get props(){return this._props!==null||!this.publisher?this._props:this.publisher.get()}set props(n){typeof n=="string"&&["{","["].includes(n.trim().charAt(0))&&(n=JSON.parse(n)),n!=this._props&&(this._props=n,this.publisher&&this.publisher.get()!=n&&this.publisher.set(n),this.requestUpdate())}updated(n){super.updated(n);const c=[...(this.shadowRoot||this).children].filter(p=>p.tagName!="STYLE"),h=this.displayContents?"contents":c.length==0?"none":null;h?this.style.display=h:this.style.removeProperty("display")}connectedCallback(){if(e.instanceCounter++,this.hasAttribute("lazyRendering")){const n={root:null,threshold:.9};let l=!0;const c=new IntersectionObserver(h=>{for(const p of h)if(l&&p.isIntersecting){l=!1,c.disconnect(),this.initWording(),this.shouldRenderLazy=!1,this.startPublisher();break}},n);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)),Be.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 n=this.debug.style;n.position="fixed",n.top="0",n.right="0",n.margin="auto",n.borderRadius=".7rem",n.backgroundColor="#0f1729",n.color="#c5d4f9",n.padding="16px 16px",n.margin="16px 16px",n.boxShadow="0 10px 30px -18px rgba(0,0,0,.3)",n.overflowY="auto",n.zIndex="99999999",n.maxHeight="calc(100vh - 32px)",n.fontFamily="Consolas, monospace",n.maxWidth="min(50vw,25rem)",n.fontSize="12px",n.minWidth="300px",n.overflowWrap="break-word",n.resize="vertical"}this.addEventListener("click",n=>{n.ctrlKey&&(n.preventDefault(),Hs=!Hs)}),this.dataProvider&&(window[this.dataProvider]=this.publisher),this.addEventListener("mouseover",()=>{Hs||this.removeDebugger(),document.body.appendChild(this.debug),Oi.add(this.debug)}),this.addEventListener("mouseout",()=>{Hs||this.removeDebugger()}),this.publisher?.onInternalMutation(()=>{this.debug.innerHTML=`🤖 DataProvider : "<b style="font-weight:bold;color:#fff;">${this.dataProvider}</b>"<br>
63
+ */let Li=class extends Be{constructor(t){if(super(t),this.it=k,t.type!==Ae.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===At)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 i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}};Li.directiveName="unsafeHTML",Li.resultType=1;const B=le(Li),Ti=new Map,Hr=s=>{if(!s)return null;const t=Z.getApiConfiguration(s),i=Z.getAncestorAttributeValue(s,"wordingProvider"),r=Z.getAncestorAttributeValue(s,"wordingVersionProvider"),e={apiConfiguration:t,wordingProvider:i,wordingVersionProvider:r};let n=null;for(const[o,l]of Ti)if(ot.deepEqual(o,e)){n=l;break}return n||(n={api:new ce(t),keysToTranslate:new Set,translatedKeys:new Set,wordingProvider:i,callIndex:0,wordingVersionProvider:r,apiCallKey:e},Ti.set(e,n)),n},qr="",Y=class Y extends Oi{constructor(t){super(t),this.useUnsafeHTML=!1,this.onAssign=i=>{const r=this.useUnsafeHTML?B(i):i;this.setValue(r)},this.node=t.options.host}unsubscribe(){Y.publisher["wording_"+this.key].offAssign(this.onAssign)}render(t,i=!1){return this.useUnsafeHTML=i,this.key!==t&&(this.key=t,this.isConnected&&this.subscribe(t)),At}static async callApi(t,i,r=!0,e){if(await E.getInstance().isLocalStrorageReady,Y.firstCall){Y.firstCall=!1,mi(Y.reloadWordings);const u=Object.keys(Y.publisher.get());for(const d of u)Y.publisher.get()[d]===qr&&delete Y.publisher[d]}if(t){const u=Z.getAncestorAttributeValue(t,"wordingVersionProvider");u&&Fs(u).onAssign(Y.handleVersionProvider(t))}let n=Y.publisher.get()["wording_"+i]!=null;const o=e||Hr(t);if(!o)return;if(n&&i!==""){o.translatedKeys.add(i);return}o.callIndex++;const l=o.callIndex,c=o.wordingProvider??"";if(!c&&r){window.setTimeout(async()=>{Y.callApi(null,i,!1,o)},1e3);return}const h=o.api;window.queueMicrotask(async()=>{if(n=Y.publisher["wording_"+i].get()!=null,!n&&i!==""&&(o.keysToTranslate.add(i),Y.publisher["wording_"+i].set(qr)),l!==o.callIndex)return;const u=Array.from(o.keysToTranslate);if(!u.length)return;const d=c.split("?"),p=d.shift(),w=(d.length>0?d.join("?")+"&":"")+"labels[]="+u.join("&labels[]="),v=p+"?"+w;o.translatedKeys=new Set([...o.translatedKeys,...o.keysToTranslate]),o.keysToTranslate.clear();const m=await h.get(v);for(const y in m)Y.publisher["wording_"+y].set(m[y])})}static reloadWordings(){for(const t of Ti.values())t.keysToTranslate=new Set(t.translatedKeys),t.keysToTranslate.size>0&&Y.callApi(null,"",!1,t)}static handleVersionProvider(t){const i=Hr(t),r=n=>{};if(!i)return r;if(Y.versionProviderHandlers.has(i))return Y.versionProviderHandlers.get(i)||r;const e=function(n){if(!i.wordingVersionProvider)return;const l=Y.publisher.get().__wording_versions__??[];if(n==null)return;const c=l.find(h=>h.serviceURL===i.api.serviceURL)||{serviceURL:i.api.serviceURL,version:0};l.includes(c)||l.push(c),n!==c.version&&(c.version=n,Y.publisher.set({__wording_versions__:l}),Y.reloadWordings())};return Y.versionProviderHandlers.set(i,e),e}subscribe(t){this.unsubscribe(),Y.publisher["wording_"+t].onAssign(this.onAssign),Y.callApi(this.node,t)}disconnected(){this.unsubscribe()}reconnected(){this.key&&this.subscribe(this.key)}};Y.publisher=E.get("sonic-wording",{localStorageMode:"enabled"}),Y.firstCall=!0,Y.versionProviderHandlers=new Map;let He=Y;const qo=le(He);var Wo=Object.defineProperty,Ko=Object.getOwnPropertyDescriptor,Vt=(s,t,i,r)=>{for(var e=r>1?void 0:r?Ko(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&Wo(t,i,e),e};let qs=!1,Ii=new Set;const it=(s,t)=>{var e;const i=(e=class extends s{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 Z.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(e.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)),He.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(),qs=!qs)}),this.dataProvider&&(window[this.dataProvider]=this.publisher),this.addEventListener("mouseover",()=>{qs||this.removeDebugger(),document.body.appendChild(this.debug),Ii.add(this.debug)}),this.addEventListener("mouseout",()=>{qs||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(){Oi.forEach(n=>{document.body.contains(n)&&document.body.removeChild(n)}),Oi=new Set}getApiConfiguration(){return G.getApiConfiguration(this)}async initWording(){const n=Object.getOwnPropertyNames(this.constructor.prototype);for(const l of n)l.indexOf("wording_")==0&&Be.callApi(this,l.substring(8));Be.publisher.startTemplateFilling(this)}createRenderRoot(){if(this.noShadowDom===""||this.getAttribute("noShadowDom")==="")return this;const n=super.createRenderRoot();return Fs.observe(n),n}initPublisher(){if(!document)return;this.publisher&&(this.publisher.stopTemplateFilling(this),this.publisher.offInternalMutation(this.requestUpdate),this.onAssign&&this.publisher.offAssign(this.onAssign));const n=E.getInstance();this.dataProvider||(this.dataProvider=this.getAncestorAttributeValue("dataProvider"));let l=this.dataProvider;if(!l&&this._props&&(this.dataProvider=l="__subscriber__"+e.instanceCounter),l){this.bindPublisher&&n.set(l,this.bindPublisher());let c=n.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(".")),n.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))}},e.instanceCounter=0,e);return Rt([a({type:Number})],i.prototype,"collectDependenciesVersion",2),Rt([a({type:Boolean})],i.prototype,"displayContents",2),Rt([a({type:Boolean})],i.prototype,"noAutoFill",2),Rt([a({type:Boolean})],i.prototype,"forceAutoFill",2),Rt([a({type:Object})],i.prototype,"propertyMap",2),Rt([a({type:String,attribute:"data-title"})],i.prototype,"title",2),Rt([a({reflect:!0})],i.prototype,"dataProvider",2),Rt([a()],i.prototype,"bindPublisher",2),Rt([a()],i.prototype,"props",1),Rt([T()],i.prototype,"shouldRenderLazy",2),i};var Kn=Object.defineProperty,Yn=(s,t,i,r)=>{for(var e=void 0,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=n(t,i,e)||e);return e&&Kn(t,i,e),e};const ls=s=>{class t extends s{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 e of r)e.hasAttribute(this.templateValueAttribute)&&(this.templateParts[e.getAttribute(this.templateValueAttribute)]=e,this.templatePartsList.push(e)),e.hasAttribute("skeleton")&&(this.templateParts.skeleton=e),e.hasAttribute("no-result")&&(this.templateParts["no-result"]=e),e.hasAttribute("no-item")&&(this.templateParts["no-item"]=e);this.templateList=r.filter(e=>!e.getAttribute("data-value")),this.templateList.length==0&&(this.templateList=r),super.connectedCallback()}}return Yn([a({type:Array})],t.prototype,"templates"),t};var Gn=Object.defineProperty,Zn=Object.getOwnPropertyDescriptor,X=(s,t,i,r)=>{for(var e=r>1?void 0:r?Zn(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&Gn(t,i,e),e};const Xn="sonic-date";ui(()=>V.updateComponentsLanguage());let V=class extends st(ls(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(){V.dateCompnents.forEach(s=>s.pageLanguage=G.getLanguage())}get wording_billet_periode_validite(){return this._wording_billet_periode_validite}set wording_billet_periode_validite(s){s||(s="Du %s au %s"),this._wording_billet_periode_validite=s,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=G.getLanguage(),V.dateCompnents.add(this),super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),V.dateCompnents.delete(this)}getDatesParts(s,t,i){const r=this.startDateObject;r.setTime(s*1e3);let e=[];if(t>0){const o=this.endDateObject;o.setTime(t*1e3);const n=r.toDateString()==o.toDateString();if((!n||this.hide_hours)&&(delete i.hour,delete i.minute),e=new Intl.DateTimeFormat(this.language||this.pageLanguage,i).formatRangeToParts(r,o),!n){const c=e.find(h=>h.type=="literal"&&h.source=="shared"&&h.value.trim().length>0);c&&(c.value=" "+this.duAu[1]+" ",c.type="to"),this.designMode||e.unshift({type:"from",value:this.duAu[0]+" ",source:"shared"})}}else e=new Intl.DateTimeFormat(this.language||this.pageLanguage,i).formatToParts(r);return this.designMode&&e.forEach(o=>o.value=o.value.replace(/,/g," ")),e[0].value=Os.ucFirst(e[0].value),e.filter(o=>o.hidden!==!0)}dateStringToSeconds(s){return new Date(s).getTime()/1e3}willUpdate(s){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 s={year:this.year||"numeric",month:this.month||"short",day:this.day||"2-digit",hour12:this.hour12||!1};this.weekday!=="hidden"&&(s.weekday=this.weekday||"short"),this.hour!=="hidden"&&(s.hour=this.hour||"2-digit"),this.minute!=="hidden"&&(s.minute=this.minute||"2-digit"),this.era&&(s.era=this.era),this.time_zone&&(s.timeZone=this.time_zone);const t=this.getDatesParts(this.computedStartDate,this.computedEndDate,s);return U(`${t.map(i=>{const r=this.templateParts[i.type];if(r){const n=document.importNode(r.content,!0).children[0];return n.innerText.trim()==""&&(n.innerText=i.value),n.outerHTML}const e=document.createElement("span");return e.innerText=i.value,e.className=i.type,`<span class="${i.type}">${i.value}</span>`}).join("")}`)}};V.dateCompnents=new Set,X([a()],V.prototype,"wording_billet_periode_validite",1),X([a({type:Boolean})],V.prototype,"designMode",2),X([a({type:String})],V.prototype,"time_zone",2),X([a({type:Number})],V.prototype,"date",2),X([a({type:String})],V.prototype,"date_string",2),X([a({type:String})],V.prototype,"start_date_string",2),X([a({type:String})],V.prototype,"end_date_string",2),X([a({type:Number})],V.prototype,"start_date",2),X([a({type:Number})],V.prototype,"end_date",2),X([a({type:Boolean})],V.prototype,"hide_hours",2),X([a({type:String})],V.prototype,"era",2),X([a({type:String})],V.prototype,"year",2),X([a({type:String})],V.prototype,"month",2),X([a({type:String})],V.prototype,"day",2),X([a({type:String})],V.prototype,"weekday",2),X([a({type:String})],V.prototype,"hour",2),X([a({type:Boolean})],V.prototype,"hour12",2),X([a({type:String})],V.prototype,"minute",2),X([a({type:String})],V.prototype,"language",2),X([a({type:Boolean})],V.prototype,"renderIf",2),X([a({type:Boolean})],V.prototype,"now",2),V=X([C(Xn)],V);let nt=(J=class{static listen(){if(!J.listening)return;const t=document.location?.href.replace(document.location.origin,"");J.prevURL&&J.prevURL!=t&&(J.prevURL=t,J.listeners.forEach(i=>{i.location=t})),window.requestAnimationFrame(J.listen)}static offChange(t){const i=J.listeners.indexOf(t);i!=-1&&(J.listeners.splice(i,1),J.listeners.length==0&&(J.listening=!1))}static onChange(t){J.listening||(J.listening=!0,J.listen()),J.listeners.push(t),t.location=this.prevURL}static changeFromComponent(t){const i=t.goBack,r=document.referrer;if(i!=null){const h=document.location.origin,p=(i||h).toString(),f=r.indexOf("http")==0?new URL(r).origin!=h:!1,_=r=="",y=history.length<3,m=_&&y,v=p!=document.location.href;if(f&&v||m){const u=history.state||{};u.concorde=u.concorde||{},u.concorde.hasDoneHistoryBack=!0,history.pushState(u,document.title),history.back(),document.location.replace(p)}else history.back();return}let e=t.getAttribute("to")||"";if(e||(e=t.href?.toString()||""),!e)return;if(e.indexOf("#")==0){document.location.hash=e.substring(1);return}const o=new URL(e,document.location.href),n=o.pathname.split("/"),l=[];let c="";for(const h of n)h!=c&&l.push(h),c=h;e="/"+l.join("/")+o.search+(o.hash?+o.hash:""),t.hasAttribute("pushState")?history.pushState(null,"",e):t.hasAttribute("replaceState")?history.replaceState(null,"",e):document.location.href=e}static updateComponentActiveState(t){if(t.autoActive=="disabled")return;const i=t.href?.toString()||"";if(t.href&&i.indexOf("http")!=0){const r=new URL(i,document.location.href),e=new URL(t.location||"",document.location.origin);let o=!1;t.autoActive=="strict"?o=r.pathname==e.pathname&&r.hash==e.hash&&r.search==e.search:t.autoActive=="strict-path-only"?o=r.pathname==e.pathname&&r.hash==e.hash:o=e.href.indexOf(r.href)==0,o?t.setAttribute("active","true"):t.removeAttribute("active")}}},J.listeners=[],J.listening=!1,J.prevURL=document.location?.href.replace(document.location.origin,""),J);/**
68
+ <pre style="margin-top:10px;background:transparent;padding:0;font-size:inherit;color:inherit;">${JSON.stringify(this.publisher?.get(),null," ")}</pre>`})}}removeDebugger(){Ii.forEach(o=>{document.body.contains(o)&&document.body.removeChild(o)}),Ii=new Set}getApiConfiguration(){return Z.getApiConfiguration(this)}async initWording(){const o=Object.getOwnPropertyNames(this.constructor.prototype);for(const l of o)l.indexOf("wording_")==0&&He.callApi(this,l.substring(8));He.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=E.getInstance();this.dataProvider||(this.dataProvider=this.getAncestorAttributeValue("dataProvider"));let l=this.dataProvider;if(!l&&this._props&&(this.dataProvider=l="__subscriber__"+e.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))}},e.instanceCounter=0,e);return Vt([a({type:Number})],i.prototype,"collectDependenciesVersion",2),Vt([a({type:Boolean})],i.prototype,"displayContents",2),Vt([a({type:Boolean})],i.prototype,"noAutoFill",2),Vt([a({type:Boolean})],i.prototype,"forceAutoFill",2),Vt([a({type:Object})],i.prototype,"propertyMap",2),Vt([a({type:String,attribute:"data-title"})],i.prototype,"title",2),Vt([a({reflect:!0})],i.prototype,"dataProvider",2),Vt([a()],i.prototype,"bindPublisher",2),Vt([a()],i.prototype,"props",1),Vt([T()],i.prototype,"shouldRenderLazy",2),i};var Yo=Object.defineProperty,Go=(s,t,i,r)=>{for(var e=void 0,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=o(t,i,e)||e);return e&&Yo(t,i,e),e};const cs=s=>{class t extends s{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 e of r)e.hasAttribute(this.templateValueAttribute)&&(this.templateParts[e.getAttribute(this.templateValueAttribute)]=e,this.templatePartsList.push(e)),e.hasAttribute("skeleton")&&(this.templateParts.skeleton=e),e.hasAttribute("no-result")&&(this.templateParts["no-result"]=e),e.hasAttribute("no-item")&&(this.templateParts["no-item"]=e);this.templateList=r.filter(e=>!e.getAttribute("data-value")),this.templateList.length==0&&(this.templateList=r),super.connectedCallback()}}return Go([a({type:Array})],t.prototype,"templates"),t};var Zo=Object.defineProperty,Xo=Object.getOwnPropertyDescriptor,Q=(s,t,i,r)=>{for(var e=r>1?void 0:r?Xo(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&Zo(t,i,e),e};const Qo="sonic-date";mi(()=>H.updateComponentsLanguage());let H=class extends it(cs(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(){H.dateCompnents.forEach(s=>s.pageLanguage=Z.getLanguage())}get wording_billet_periode_validite(){return this._wording_billet_periode_validite}set wording_billet_periode_validite(s){s||(s="Du %s au %s"),this._wording_billet_periode_validite=s,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=Z.getLanguage(),H.dateCompnents.add(this),super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),H.dateCompnents.delete(this)}getDatesParts(s,t,i){const r=this.startDateObject;r.setTime(s*1e3);let e=[];if(t>0){const n=this.endDateObject;n.setTime(t*1e3);const o=r.toDateString()==n.toDateString();if((!o||this.hide_hours)&&(delete i.hour,delete i.minute),e=new Intl.DateTimeFormat(this.language||this.pageLanguage,i).formatRangeToParts(r,n),!o){const c=e.find(h=>h.type=="literal"&&h.source=="shared"&&h.value.trim().length>0);c&&(c.value=" "+this.duAu[1]+" ",c.type="to"),this.designMode||e.unshift({type:"from",value:this.duAu[0]+" ",source:"shared"})}}else e=new Intl.DateTimeFormat(this.language||this.pageLanguage,i).formatToParts(r);return this.designMode&&e.forEach(n=>n.value=n.value.replace(/,/g," ")),e[0].value=Es.ucFirst(e[0].value),e.filter(n=>n.hidden!==!0)}dateStringToSeconds(s){return new Date(s).getTime()/1e3}willUpdate(s){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 s={year:this.year||"numeric",month:this.month||"short",day:this.day||"2-digit",hour12:this.hour12||!1};this.weekday!=="hidden"&&(s.weekday=this.weekday||"short"),this.hour!=="hidden"&&(s.hour=this.hour||"2-digit"),this.minute!=="hidden"&&(s.minute=this.minute||"2-digit"),this.era&&(s.era=this.era),this.time_zone&&(s.timeZone=this.time_zone);const t=this.getDatesParts(this.computedStartDate,this.computedEndDate,s);return B(`${t.map(i=>{const r=this.templateParts[i.type];if(r){const o=document.importNode(r.content,!0).children[0];return o.innerText.trim()==""&&(o.innerText=i.value),o.outerHTML}const e=document.createElement("span");return e.innerText=i.value,e.className=i.type,`<span class="${i.type}">${i.value}</span>`}).join("")}`)}};H.dateCompnents=new Set,Q([a()],H.prototype,"wording_billet_periode_validite",1),Q([a({type:Boolean})],H.prototype,"designMode",2),Q([a({type:String})],H.prototype,"time_zone",2),Q([a({type:Number})],H.prototype,"date",2),Q([a({type:String})],H.prototype,"date_string",2),Q([a({type:String})],H.prototype,"start_date_string",2),Q([a({type:String})],H.prototype,"end_date_string",2),Q([a({type:Number})],H.prototype,"start_date",2),Q([a({type:Number})],H.prototype,"end_date",2),Q([a({type:Boolean})],H.prototype,"hide_hours",2),Q([a({type:String})],H.prototype,"era",2),Q([a({type:String})],H.prototype,"year",2),Q([a({type:String})],H.prototype,"month",2),Q([a({type:String})],H.prototype,"day",2),Q([a({type:String})],H.prototype,"weekday",2),Q([a({type:String})],H.prototype,"hour",2),Q([a({type:Boolean})],H.prototype,"hour12",2),Q([a({type:String})],H.prototype,"minute",2),Q([a({type:String})],H.prototype,"language",2),Q([a({type:Boolean})],H.prototype,"renderIf",2),Q([a({type:Boolean})],H.prototype,"now",2),H=Q([C(Qo)],H);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(i=>{i.location=t})),window.requestAnimationFrame(tt.listen)}static offChange(t){const i=tt.listeners.indexOf(t);i!=-1&&(tt.listeners.splice(i,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 i=t.goBack,r=document.referrer;if(i!=null){const h=document.location.origin,u=(i||h).toString(),p=r.indexOf("http")==0?new URL(r).origin!=h:!1,w=r=="",v=history.length<3,m=w&&v,y=u!=document.location.href;if(p&&y||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 e=t.getAttribute("to")||"";if(e||(e=t.href?.toString()||""),!e)return;if(e.indexOf("#")==0){document.location.hash=e.substring(1);return}const n=new URL(e,document.location.href),o=n.pathname.split("/"),l=[];let c="";for(const h of o)h!=c&&l.push(h),c=h;e="/"+l.join("/")+n.search+(n.hash?+n.hash:""),t.hasAttribute("pushState")?history.pushState(null,"",e):t.hasAttribute("replaceState")?history.replaceState(null,"",e):document.location.href=e}static updateComponentActiveState(t){if(t.autoActive=="disabled")return;const i=t.href?.toString()||"";if(t.href&&i.indexOf("http")!=0){const r=new URL(i,document.location.href),e=new URL(t.location||"",document.location.origin);let n=!1;t.autoActive=="strict"?n=r.pathname==e.pathname&&r.hash==e.hash&&r.search==e.search:t.autoActive=="strict-path-only"?n=r.pathname==e.pathname&&r.hash==e.hash:n=e.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);/**
69
69
  * @license
70
70
  * Copyright 2018 Google LLC
71
71
  * SPDX-License-Identifier: BSD-3-Clause
72
- */const Hr="important",Qn=" !"+Hr,gt=ne(class extends Ve{constructor(s){if(super(s),s.type!==$e.ATTRIBUTE||s.name!=="style"||s.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(s){return Object.keys(s).reduce(((t,i)=>{const r=s[i];return r==null?t:t+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`}),"")}update(s,[t]){const{style:i}=s.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("-")?i.removeProperty(r):i[r]=null);for(const r in t){const e=t[r];if(e!=null){this.ft.add(r);const o=typeof e=="string"&&e.endsWith(Qn);r.includes("-")||o?i.setProperty(r,o?e.slice(0,-11):e,o?Hr:""):i[r]=e}}return Pt}});var Jn=Object.defineProperty,ta=Object.getOwnPropertyDescriptor,zt=(s,t,i,r)=>{for(var e=r>1?void 0:r?ta(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&Jn(t,i,e),e};const qs=new Map,He=s=>{class t extends s{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=e=>{this.setValueFromPublisher(e)},this.onFormValueAssign=async e=>{this.setFormValueFromPublisher(e)},this.onFormDataInValidate=()=>{const e=this.getFormPublisher();e&&e.isFormValid.get()&&this.validateFormElement()}}get name(){return this._name}set name(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?E.get(this.formDataProvider):null}setFormPublisherValue(r){const e=this.getFormPublisher();e&&mt(e,this.name).set(r)}getFormPublisherValue(){const r=this.getFormPublisher();return r?mt(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 e=this.hasAncestorAttribute("initFromPublisher")&&this._name&&this.getFormPublisherValue()?this.getFormPublisherValue():this.getAttribute("value");this._name&&this.publisher&&mt(this.publisher,this._name).offAssign(this.onValueAssign),this._name&&r&&mt(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&&mt(this.publisher,this._name).onAssign(this.onValueAssign),r=this.getFormPublisher(),this._name&&r&&(mt(r,this._name).onAssign(this.onFormValueAssign),r.onFormInvalidate(this.onFormDataInValidate)),this.updateDataValue(),e&&(this.value=e)}handleBlur(){this.touched=!0}handleChange(r){this.value=r.target.value;const e=new Event("change");this.dispatchEvent(e)}addKeyboardNavigation(){const r=this.getAncestorAttributeValue("data-keyboard-nav");if(!r)return;const e=r.split(" "),o=e[0];if(!o)return;for(const l of e){qs.has(l)||qs.set(l,[]);const c=qs.get(l);c?.indexOf(this)==-1&&c.push(this)}const n=qs.get(o);this.addEventListener("keydown",l=>{const c=l;if(!["ArrowDown","ArrowUp"].includes(c.key))return;const h="input:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled])",p=n?.filter(_=>{const y=_.shadowRoot?.querySelector(h);if(!y)return!1;const m=window.getComputedStyle(y);return m.display!=="none"&&m.display!==""&&m.pointerEvents!="none"&&m.visibility!=="hidden"&&y.getBoundingClientRect().width>0});let d=null;if(c.key=="ArrowDown"&&p){const _=p.indexOf(this);_==p.length-1?d=p[0]:d=p[_+1]}else if(c.key=="ArrowUp"&&p){const _=p.indexOf(this);_==0?d=p[p.length-1]:d=p[_-1]}const f=d?.shadowRoot?.querySelector(h);f&&f.focus&&(f.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&&mt(this.publisher,this._name).offAssign(this.onValueAssign);const r=this.getFormPublisher();this._name&&r&&(mt(r,this._name).offAssign(this.onFormValueAssign),r.offFormInvalidate(this.onFormDataInValidate))}}return zt([a({type:Boolean,reflect:!0})],t.prototype,"touched",2),zt([a({type:Boolean})],t.prototype,"error",2),zt([a({type:Boolean})],t.prototype,"autofocus",2),zt([a({type:Boolean})],t.prototype,"required",2),zt([a({type:Boolean})],t.prototype,"forceAutoFill",2),zt([a({type:Boolean,reflect:!0})],t.prototype,"disabled",2),zt([a({type:String,attribute:"data-aria-label"})],t.prototype,"ariaLabel",2),zt([a({type:String,attribute:"data-aria-labelledby"})],t.prototype,"ariaLabelledby",2),zt([a()],t.prototype,"name",1),zt([a()],t.prototype,"value",1),t};let ea=class Fe{static areEqual(t,i){return t.length===i.length?t.every((r,e)=>r===i[e]):!1}static from2d(t){return{to1D:()=>{let i=[];return t.forEach(r=>i=i.concat(r)),this.from(i)}}}static from(t){return{get:()=>t||[],everyItem:()=>({has:()=>({same:()=>({value:()=>({forKey:i=>{if(t.length<1)return!0;const r=(t[0]||{})[i];return t.every(e=>(e||{})[i]==r)}})})}),value:()=>({forKey:i=>Fe.from(t.map(r=>r[i]))}),copy:()=>({fromKey:i=>({toKey:r=>{t.forEach(e=>{e[r]=Array.isArray(e[i])?[...e[i]]:typeof e[i]=="object"&&e[i]!=null?{...e[i]}:e[i]})}})})}),map:i=>Fe.from(t.map(i)),filter:i=>Fe.from(t.filter(i)),find:i=>t.find(i),some:i=>t.some(i),every:i=>t.every(i),group:()=>({byKey:i=>{const r=[],e=new Map;for(const o of t){const n=o[i];if(!e.has(n)){const l=r.length;e.set(n,l);const c={items:[]};c[i]=n,r.push(c)}r[e.get(n)].items.push(o)}return Fe.from(r)}}),without:()=>({duplicates:()=>({forKey:i=>{const r=[...new Set(t.map(e=>e[i]))];return Fe.from(r.map(e=>t.find(o=>o[i]==e)))}}),itemsIn:i=>({havingSameValue:()=>({forKey:r=>{const e=(o,n)=>l=>o[n]!=l[n];return Fe.from(t.filter(o=>i.every(e(o,r))))}})})})}}};function sa(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var cs={exports:{}},ia=cs.exports,qr;function ra(){return qr||(qr=1,(function(s,t){var i=[].slice;(function(r,e){return t!==null?s.exports=e():r.UrlPattern=e()})(ia,function(){var r,e,o,n,l,c,h,p,d,f,_,y,m,v,A;return d=function(u){return u.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},h=function(u,b){var w,x,k;for(k=[],w=-1,x=u.length;++w<x;)k=k.concat(b(u[w]));return k},v=function(u,b){var w,x,k;for(k="",w=-1,x=u.length;++w<x;)k+=b(u[w]);return k},m=function(u){return new RegExp(u.toString()+"|").exec("").length-1},_=function(u,b){var w,x,k,I,Y;for(I={},w=-1,k=u.length;++w<k;)x=u[w],Y=b[w],Y!=null&&(I[x]!=null?(Array.isArray(I[x])||(I[x]=[I[x]]),I[x].push(Y)):I[x]=Y);return I},r={},r.Result=function(u,b){this.value=u,this.rest=b},r.Tagged=function(u,b){this.tag=u,this.value=b},r.tag=function(u,b){return function(w){var x,k;if(x=b(w),x!=null)return k=new r.Tagged(u,x.value),new r.Result(k,x.rest)}},r.regex=function(u){return function(b){var w,x;if(w=u.exec(b),w!=null)return x=w[0],new r.Result(x,b.slice(x.length))}},r.sequence=function(){var u;return u=1<=arguments.length?i.call(arguments,0):[],function(b){var w,x,k,I,Y,M;for(w=-1,x=u.length,M=[],I=b;++w<x;){if(k=u[w],Y=k(I),Y==null)return;M.push(Y.value),I=Y.rest}return new r.Result(M,I)}},r.pick=function(){var u,b;return u=arguments[0],b=2<=arguments.length?i.call(arguments,1):[],function(w){var x,k;if(k=r.sequence.apply(r,b)(w),k!=null)return x=k.value,k.value=x[u],k}},r.string=function(u){var b;return b=u.length,function(w){if(w.slice(0,b)===u)return new r.Result(u,w.slice(b))}},r.lazy=function(u){var b;return b=null,function(w){return b==null&&(b=u()),b(w)}},r.baseMany=function(u,b,w,x,k){var I,Y,M,Ft;for(M=k,Ft=w?"":[];!(b!=null&&(I=b(M),I!=null)||(Y=u(M),Y==null));)w?Ft+=Y.value:Ft.push(Y.value),M=Y.rest;if(!(x&&Ft.length===0))return new r.Result(Ft,M)},r.many1=function(u){return function(b){return r.baseMany(u,null,!1,!0,b)}},r.concatMany1Till=function(u,b){return function(w){return r.baseMany(u,b,!0,!0,w)}},r.firstChoice=function(){var u;return u=1<=arguments.length?i.call(arguments,0):[],function(b){var w,x,k,I;for(w=-1,x=u.length;++w<x;)if(k=u[w],I=k(b),I!=null)return I}},y=function(u){var b;return b={},b.wildcard=r.tag("wildcard",r.string(u.wildcardChar)),b.optional=r.tag("optional",r.pick(1,r.string(u.optionalSegmentStartChar),r.lazy(function(){return b.pattern}),r.string(u.optionalSegmentEndChar))),b.name=r.regex(new RegExp("^["+u.segmentNameCharset+"]+")),b.named=r.tag("named",r.pick(1,r.string(u.segmentNameStartChar),r.lazy(function(){return b.name}))),b.escapedChar=r.pick(1,r.string(u.escapeChar),r.regex(/^./)),b.static=r.tag("static",r.concatMany1Till(r.firstChoice(r.lazy(function(){return b.escapedChar}),r.regex(/^./)),r.firstChoice(r.string(u.segmentNameStartChar),r.string(u.optionalSegmentStartChar),r.string(u.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},p={escapeChar:"\\",segmentNameStartChar:":",segmentValueCharset:"a-zA-Z0-9-_~ %",segmentNameCharset:"a-zA-Z0-9",optionalSegmentStartChar:"(",optionalSegmentEndChar:")",wildcardChar:"*"},c=function(u,b){if(Array.isArray(u))return v(u,function(w){return c(w,b)});switch(u.tag){case"wildcard":return"(.*?)";case"named":return"(["+b+"]+)";case"static":return d(u.value);case"optional":return"(?:"+c(u.value,b)+")?"}},l=function(u,b){return b==null&&(b=p.segmentValueCharset),"^"+c(u,b)+"$"},n=function(u){if(Array.isArray(u))return h(u,n);switch(u.tag){case"wildcard":return["_"];case"named":return[u.value];case"static":return[];case"optional":return n(u.value)}},f=function(u,b,w,x){var k,I,Y,M;if(x==null&&(x=!1),M=u[b],M==null){if(x)throw new Error("no values provided for key `"+b+"`");return}if(k=w[b]||0,I=Array.isArray(M)?M.length-1:0,k>I){if(x)throw new Error("too few values provided for key `"+b+"`");return}return Y=Array.isArray(M)?M[k]:M,x&&(w[b]=k+1),Y},o=function(u,b,w){var x,k;if(Array.isArray(u)){for(x=-1,k=u.length;++x<k;)if(o(u[x],b,w))return!0;return!1}switch(u.tag){case"wildcard":return f(b,"_",w,!1)!=null;case"named":return f(b,u.value,w,!1)!=null;case"static":return!1;case"optional":return o(u.value,b,w)}},A=function(u,b,w){if(Array.isArray(u))return v(u,function(x){return A(x,b,w)});switch(u.tag){case"wildcard":return f(b,"_",w,!0);case"named":return f(b,u.value,w,!0);case"static":return u.value;case"optional":return o(u.value,b,w)?A(u.value,b,w):""}},e=function(u,b){var w,x,k,I,Y;if(u instanceof e){this.isRegex=u.isRegex,this.regex=u.regex,this.ast=u.ast,this.names=u.names;return}if(this.isRegex=u instanceof RegExp,!(typeof u=="string"||this.isRegex))throw new TypeError("argument must be a regex or a string");if(this.isRegex){if(this.regex=u,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(w=m(this.regex),b.length!==w)throw new Error("regex contains "+w+" groups but array of group names contains "+b.length);this.names=b}return}if(u==="")throw new Error("argument must not be the empty string");if(Y=u.replace(/\s+/g,""),Y!==u)throw new Error("argument must not contain whitespace");if(x={escapeChar:b?.escapeChar||p.escapeChar,segmentNameStartChar:b?.segmentNameStartChar||p.segmentNameStartChar,segmentNameCharset:b?.segmentNameCharset||p.segmentNameCharset,segmentValueCharset:b?.segmentValueCharset||p.segmentValueCharset,optionalSegmentStartChar:b?.optionalSegmentStartChar||p.optionalSegmentStartChar,optionalSegmentEndChar:b?.optionalSegmentEndChar||p.optionalSegmentEndChar,wildcardChar:b?.wildcardChar||p.wildcardChar},I=y(x),k=I.pattern(u),k==null)throw new Error("couldn't parse pattern");if(k.rest!=="")throw new Error("could only partially parse pattern");this.ast=k.value,this.regex=new RegExp(l(this.ast,x.segmentValueCharset)),this.names=n(this.ast)},e.prototype.match=function(u){var b,w;return w=this.regex.exec(u),w==null?null:(b=w.slice(1),this.names?_(this.names,b):b)},e.prototype.stringify=function(u){if(u==null&&(u={}),this.isRegex)throw new Error("can't stringify patterns generated from a regex");if(u!==Object(u))throw new Error("argument must be an object or undefined");return A(this.ast,u,{})},e.escapeForRegex=d,e.concatMap=h,e.stringConcatMap=v,e.regexGroupCount=m,e.keysAndValuesToObject=_,e.P=r,e.newParser=y,e.defaultOptions=p,e.astNodeToRegexString=l,e.astNodeToNames=n,e.getParam=f,e.astNodeContainsSegmentsForProvidedParams=o,e.stringify=A,e})})(cs,cs.exports)),cs.exports}var oa=ra();const Xt=sa(oa);class Ws{constructor(t){this.path=Ws.normalizePath(t)}getDataProviderKey(){return new Je(this.path)}static normalizePath(t){const i=String(t).trim();if(!i)throw new RangeError("Endpoint: path cannot be empty");if(/^https?:\/\//i.test(i)){let c;try{c=new URL(i)}catch{throw new RangeError("Endpoint: invalid absolute URL")}return c.pathname=c.pathname.replace(/\/+/g,"/"),c.href}const r=i.indexOf("?"),e=i.indexOf("#");let o=i.length;r>=0&&(o=Math.min(o,r)),e>=0&&(o=Math.min(o,e));let n=i.slice(0,o);const l=i.slice(o);if(n=n.replace(/^\/+/,""),n=n.replace(/\/+/g,"/"),!n&&l)throw new RangeError("Endpoint: path cannot be empty");return n+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 na=tn,aa=ea,la=Fs,ca=Os,le=G,ha=nt,hs=ot,da=ae,ua=Xt;window["concorde-utils"]=window["concorde-utils"]||{},window["concorde-utils"]={Utils:na,Arrays:aa,DataBindObserver:la,Format:ca,HTML:le,LocationHandler:ha,Objects:hs,PublisherManager:E,api:da,URLPattern:ua,Endpoint:Ws,DataProviderKey:Je};var pa=Object.defineProperty,fa=Object.getOwnPropertyDescriptor,ds=(s,t,i,r)=>{for(var e=r>1?void 0:r?fa(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&pa(t,i,e),e};const Ei=s=>{class t extends s{constructor(){super(...arguments),this._value="",this.forceAutoFill=!1,this.unique=null,this.radio=null,this._checked=null,this.updateAllChecked=()=>{const r=this.getAttribute("name"),e=this.getCheckAllPublisher(),o=this.getFormPublisher();if(e?.hasCheckAll.get()&&!this.checksAll()&&e&&o&&r){if(this.getFormPublisherValue()?.length)(this.checked===null||e.checkMode.get()=="noneChecked"||e.checkMode.get()==null)&&e.checkMode.set("someUnchecked");else{e.checkMode.set("noneChecked");return}const n=this.getFormPublisherValue(),l=e.values.get();if(l&&l.length){let c=l.length;for(const h of l)n.indexOf(h)==-1&&(c-=1);c==l.length&&e.checkMode.set("allChecked"),c==0&&e.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 o=this.getFormPublisherValue();(this.radio||this.unique)&&(this.checked=o==r?!0:null),Array.isArray(o)||(o=[]),o.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 e=this.getCheckAllPublisher();e&&(this.checked===!0?e.checkMode.set("allChecked"):this.checked===null&&(e.checkMode.set("noneChecked"),this.getFormPublisher()&&this.setFormPublisherValue([])))}this.requestUpdate()}validateFormElement(){const r=this.shadowRoot?.querySelector("input");if(!r||r.checkValidity())return;const e=this.getFormPublisher();if(e){const o=this.getFormPublisherValue();if((this.unique||this.radio)&&o!==null&&o!==void 0&&o.toString().length>0)return;e.isFormValid=!1,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 e=new Event("change");this.dispatchEvent(e)}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 e=r.slice(0),o=e.indexOf(this.value);return this.checked===!0&&o===-1&&!this.checksAll()&&e.push(this.value),this.checked===null&&o!==-1&&e.splice(o,1),e}setFormValueFromPublisher(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,e=this.getAttribute("name");return!r||!e?null:E.get(r+"/"+e+"/_available_values_")}unset(){this.checked=null}disconnectedCallback(){super.disconnectedCallback();const r=this.getCheckAllPublisher();if(r&&(r.checkMode.offAssign(this.onChecksAllRequest),!this.checksAll())){const e=r.values.get().slice(0),o=e.indexOf(this.value);o!=-1&&(e.splice(o,1),r.values.set(e))}setTimeout(()=>this.updateAllChecked(),1)}connectedCallback(){if(super.connectedCallback(),this.getFormPublisher()&&this.name){const o=this.getFormPublisherValue();o&&Array.isArray(o)&&o.indexOf(this.value)!==-1&&(this.checked=!0)}const e=this.getCheckAllPublisher();e&&(e.checkMode.onAssign(this.onChecksAllRequest),this.checksAll()&&e.hasCheckAll.set(!0),e.values.get()||e.values.set([]),this.checksAll()||e.values.set([...e.values.get(),this.value])),this.hasAttribute("checked")&&(!this.publisher||this.publisher.get().checked!==!1)&&setTimeout(()=>this.checked=!0,1)}}return ds([a()],t.prototype,"value",1),ds([a()],t.prototype,"forceAutoFill",2),ds([a({type:Boolean})],t.prototype,"unique",2),ds([a({type:Boolean})],t.prototype,"radio",2),ds([a()],t.prototype,"checked",1),t};/**
72
+ */const Wr="important",Jo=" !"+Wr,_t=le(class extends Be{constructor(s){if(super(s),s.type!==Ae.ATTRIBUTE||s.name!=="style"||s.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(s){return Object.keys(s).reduce(((t,i)=>{const r=s[i];return r==null?t:t+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`}),"")}update(s,[t]){const{style:i}=s.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("-")?i.removeProperty(r):i[r]=null);for(const r in t){const e=t[r];if(e!=null){this.ft.add(r);const n=typeof e=="string"&&e.endsWith(Jo);r.includes("-")||n?i.setProperty(r,n?e.slice(0,-11):e,n?Wr:""):i[r]=e}}return At}});var ta=Object.defineProperty,ea=Object.getOwnPropertyDescriptor,Bt=(s,t,i,r)=>{for(var e=r>1?void 0:r?ea(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&ta(t,i,e),e};const Ws=new Map,qe=s=>{class t extends s{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=e=>{this.setValueFromPublisher(e)},this.onFormValueAssign=async e=>{this.setFormValueFromPublisher(e)},this.onFormDataInValidate=()=>{const e=this.getFormPublisher();e&&e.isFormValid.get()&&this.validateFormElement()}}get name(){return this._name}set name(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?E.get(this.formDataProvider):null}setFormPublisherValue(r){const e=this.getFormPublisher();e&&yt(e,this.name).set(r)}getFormPublisherValue(){const r=this.getFormPublisher();return r?yt(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 e=this.hasAncestorAttribute("initFromPublisher")&&this._name&&this.getFormPublisherValue()?this.getFormPublisherValue():this.getAttribute("value");this._name&&this.publisher&&yt(this.publisher,this._name).offAssign(this.onValueAssign),this._name&&r&&yt(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&&yt(this.publisher,this._name).onAssign(this.onValueAssign),r=this.getFormPublisher(),this._name&&r&&(yt(r,this._name).onAssign(this.onFormValueAssign),r.onFormInvalidate(this.onFormDataInValidate)),this.updateDataValue(),e&&(this.value=e)}handleBlur(){this.touched=!0}handleChange(r){this.value=r.target.value;const e=new Event("change");this.dispatchEvent(e)}addKeyboardNavigation(){const r=this.getAncestorAttributeValue("data-keyboard-nav");if(!r)return;const e=r.split(" "),n=e[0];if(!n)return;for(const l of e){Ws.has(l)||Ws.set(l,[]);const c=Ws.get(l);c?.indexOf(this)==-1&&c.push(this)}const o=Ws.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(w=>{const v=w.shadowRoot?.querySelector(h);if(!v)return!1;const m=window.getComputedStyle(v);return m.display!=="none"&&m.display!==""&&m.pointerEvents!="none"&&m.visibility!=="hidden"&&v.getBoundingClientRect().width>0});let d=null;if(c.key=="ArrowDown"&&u){const w=u.indexOf(this);w==u.length-1?d=u[0]:d=u[w+1]}else if(c.key=="ArrowUp"&&u){const w=u.indexOf(this);w==0?d=u[u.length-1]:d=u[w-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&&yt(this.publisher,this._name).offAssign(this.onValueAssign);const r=this.getFormPublisher();this._name&&r&&(yt(r,this._name).offAssign(this.onFormValueAssign),r.offFormInvalidate(this.onFormDataInValidate))}}return Bt([a({type:Boolean,reflect:!0})],t.prototype,"touched",2),Bt([a({type:Boolean})],t.prototype,"error",2),Bt([a({type:Boolean})],t.prototype,"autofocus",2),Bt([a({type:Boolean})],t.prototype,"required",2),Bt([a({type:Boolean})],t.prototype,"forceAutoFill",2),Bt([a({type:Boolean,reflect:!0})],t.prototype,"disabled",2),Bt([a({type:String,attribute:"data-aria-label"})],t.prototype,"ariaLabel",2),Bt([a({type:String,attribute:"data-aria-labelledby"})],t.prototype,"ariaLabelledby",2),Bt([a()],t.prototype,"name",1),Bt([a()],t.prototype,"value",1),t};let sa=class je{static areEqual(t,i){return t.length===i.length?t.every((r,e)=>r===i[e]):!1}static from2d(t){return{to1D:()=>{let i=[];return t.forEach(r=>i=i.concat(r)),this.from(i)}}}static from(t){return{get:()=>t||[],everyItem:()=>({has:()=>({same:()=>({value:()=>({forKey:i=>{if(t.length<1)return!0;const r=(t[0]||{})[i];return t.every(e=>(e||{})[i]==r)}})})}),value:()=>({forKey:i=>je.from(t.map(r=>r[i]))}),copy:()=>({fromKey:i=>({toKey:r=>{t.forEach(e=>{e[r]=Array.isArray(e[i])?[...e[i]]:typeof e[i]=="object"&&e[i]!=null?{...e[i]}:e[i]})}})})}),map:i=>je.from(t.map(i)),filter:i=>je.from(t.filter(i)),find:i=>t.find(i),some:i=>t.some(i),every:i=>t.every(i),group:()=>({byKey:i=>{const r=[],e=new Map;for(const n of t){const o=n[i];if(!e.has(o)){const l=r.length;e.set(o,l);const c={items:[]};c[i]=o,r.push(c)}r[e.get(o)].items.push(n)}return je.from(r)}}),without:()=>({duplicates:()=>({forKey:i=>{const r=[...new Set(t.map(e=>e[i]))];return je.from(r.map(e=>t.find(n=>n[i]==e)))}}),itemsIn:i=>({havingSameValue:()=>({forKey:r=>{const e=(n,o)=>l=>n[o]!=l[o];return je.from(t.filter(n=>i.every(e(n,r))))}})})})}}};function ia(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var hs={exports:{}},ra=hs.exports,Kr;function na(){return Kr||(Kr=1,(function(s,t){var i=[].slice;(function(r,e){return t!==null?s.exports=e():r.UrlPattern=e()})(ra,function(){var r,e,n,o,l,c,h,u,d,p,w,v,m,y,D;return d=function(f){return f.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},h=function(f,b){var x,_,O;for(O=[],x=-1,_=f.length;++x<_;)O=O.concat(b(f[x]));return O},y=function(f,b){var x,_,O;for(O="",x=-1,_=f.length;++x<_;)O+=b(f[x]);return O},m=function(f){return new RegExp(f.toString()+"|").exec("").length-1},w=function(f,b){var x,_,O,N,j;for(N={},x=-1,O=f.length;++x<O;)_=f[x],j=b[x],j!=null&&(N[_]!=null?(Array.isArray(N[_])||(N[_]=[N[_]]),N[_].push(j)):N[_]=j);return N},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(x){var _,O;if(_=b(x),_!=null)return O=new r.Tagged(f,_.value),new r.Result(O,_.rest)}},r.regex=function(f){return function(b){var x,_;if(x=f.exec(b),x!=null)return _=x[0],new r.Result(_,b.slice(_.length))}},r.sequence=function(){var f;return f=1<=arguments.length?i.call(arguments,0):[],function(b){var x,_,O,N,j,U;for(x=-1,_=f.length,U=[],N=b;++x<_;){if(O=f[x],j=O(N),j==null)return;U.push(j.value),N=j.rest}return new r.Result(U,N)}},r.pick=function(){var f,b;return f=arguments[0],b=2<=arguments.length?i.call(arguments,1):[],function(x){var _,O;if(O=r.sequence.apply(r,b)(x),O!=null)return _=O.value,O.value=_[f],O}},r.string=function(f){var b;return b=f.length,function(x){if(x.slice(0,b)===f)return new r.Result(f,x.slice(b))}},r.lazy=function(f){var b;return b=null,function(x){return b==null&&(b=f()),b(x)}},r.baseMany=function(f,b,x,_,O){var N,j,U,Ut;for(U=O,Ut=x?"":[];!(b!=null&&(N=b(U),N!=null)||(j=f(U),j==null));)x?Ut+=j.value:Ut.push(j.value),U=j.rest;if(!(_&&Ut.length===0))return new r.Result(Ut,U)},r.many1=function(f){return function(b){return r.baseMany(f,null,!1,!0,b)}},r.concatMany1Till=function(f,b){return function(x){return r.baseMany(f,b,!0,!0,x)}},r.firstChoice=function(){var f;return f=1<=arguments.length?i.call(arguments,0):[],function(b){var x,_,O,N;for(x=-1,_=f.length;++x<_;)if(O=f[x],N=O(b),N!=null)return N}},v=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 y(f,function(x){return c(x,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,x,_){var O,N,j,U;if(_==null&&(_=!1),U=f[b],U==null){if(_)throw new Error("no values provided for key `"+b+"`");return}if(O=x[b]||0,N=Array.isArray(U)?U.length-1:0,O>N){if(_)throw new Error("too few values provided for key `"+b+"`");return}return j=Array.isArray(U)?U[O]:U,_&&(x[b]=O+1),j},n=function(f,b,x){var _,O;if(Array.isArray(f)){for(_=-1,O=f.length;++_<O;)if(n(f[_],b,x))return!0;return!1}switch(f.tag){case"wildcard":return p(b,"_",x,!1)!=null;case"named":return p(b,f.value,x,!1)!=null;case"static":return!1;case"optional":return n(f.value,b,x)}},D=function(f,b,x){if(Array.isArray(f))return y(f,function(_){return D(_,b,x)});switch(f.tag){case"wildcard":return p(b,"_",x,!0);case"named":return p(b,f.value,x,!0);case"static":return f.value;case"optional":return n(f.value,b,x)?D(f.value,b,x):""}},e=function(f,b){var x,_,O,N,j;if(f instanceof e){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(x=m(this.regex),b.length!==x)throw new Error("regex contains "+x+" 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(j=f.replace(/\s+/g,""),j!==f)throw new Error("argument must not contain whitespace");if(_={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},N=v(_),O=N.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,_.segmentValueCharset)),this.names=o(this.ast)},e.prototype.match=function(f){var b,x;return x=this.regex.exec(f),x==null?null:(b=x.slice(1),this.names?w(this.names,b):b)},e.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,{})},e.escapeForRegex=d,e.concatMap=h,e.stringConcatMap=y,e.regexGroupCount=m,e.keysAndValuesToObject=w,e.P=r,e.newParser=v,e.defaultOptions=u,e.astNodeToRegexString=l,e.astNodeToNames=o,e.getParam=p,e.astNodeContainsSegmentsForProvidedParams=n,e.stringify=D,e})})(hs,hs.exports)),hs.exports}var oa=na();const Jt=ia(oa);class Ks{constructor(t){this.path=Ks.normalizePath(t)}getDataProviderKey(){return new ts(this.path)}static normalizePath(t){const i=String(t).trim();if(!i)throw new RangeError("Endpoint: path cannot be empty");if(/^https?:\/\//i.test(i)){let c;try{c=new URL(i)}catch{throw new RangeError("Endpoint: invalid absolute URL")}return c.pathname=c.pathname.replace(/\/+/g,"/"),c.href}const r=i.indexOf("?"),e=i.indexOf("#");let n=i.length;r>=0&&(n=Math.min(n,r)),e>=0&&(n=Math.min(n,e));let o=i.slice(0,n);const l=i.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 aa=eo,la=sa,ca=js,ha=Es,he=Z,da=at,ds=ot,ua=ce,pa=Jt;window["concorde-utils"]=window["concorde-utils"]||{},window["concorde-utils"]={Utils:aa,Arrays:la,DataBindObserver:ca,Format:ha,HTML:he,LocationHandler:da,Objects:ds,PublisherManager:E,api:ua,URLPattern:pa,Endpoint:Ks,DataProviderKey:ts};var fa=Object.defineProperty,ba=Object.getOwnPropertyDescriptor,us=(s,t,i,r)=>{for(var e=r>1?void 0:r?ba(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&fa(t,i,e),e};const Mi=s=>{class t extends s{constructor(){super(...arguments),this._value="",this.forceAutoFill=!1,this.unique=null,this.radio=null,this._checked=null,this.updateAllChecked=()=>{const r=this.getAttribute("name"),e=this.getCheckAllPublisher(),n=this.getFormPublisher();if(e?.hasCheckAll.get()&&!this.checksAll()&&e&&n&&r){if(this.getFormPublisherValue()?.length)(this.checked===null||e.checkMode.get()=="noneChecked"||e.checkMode.get()==null)&&e.checkMode.set("someUnchecked");else{e.checkMode.set("noneChecked");return}const o=this.getFormPublisherValue(),l=e.values.get();if(l&&l.length){let c=l.length;for(const h of l)o.indexOf(h)==-1&&(c-=1);c==l.length&&e.checkMode.set("allChecked"),c==0&&e.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 e=this.getCheckAllPublisher();e&&(this.checked===!0?e.checkMode.set("allChecked"):this.checked===null&&(e.checkMode.set("noneChecked"),this.getFormPublisher()&&this.setFormPublisherValue([])))}this.requestUpdate()}validateFormElement(){const r=this.shadowRoot?.querySelector("input");if(!r||r.checkValidity())return;const e=this.getFormPublisher();if(e){const n=this.getFormPublisherValue();if((this.unique||this.radio)&&n!==null&&n!==void 0&&n.toString().length>0)return;e.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 e=new Event("change");this.dispatchEvent(e)}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 e=r.slice(0),n=e.indexOf(this.value);return this.checked===!0&&n===-1&&!this.checksAll()&&e.push(this.value),this.checked===null&&n!==-1&&e.splice(n,1),e}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,e=this.getAttribute("name");return!r||!e?null:E.get(r+"/"+e+"/_available_values_")}unset(){this.checked=null}disconnectedCallback(){super.disconnectedCallback();const r=this.getCheckAllPublisher();if(r&&(r.checkMode.offAssign(this.onChecksAllRequest),!this.checksAll())){const e=r.values.get().slice(0),n=e.indexOf(this.value);n!=-1&&(e.splice(n,1),r.values.set(e))}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 e=this.getCheckAllPublisher();e&&(e.checkMode.onAssign(this.onChecksAllRequest),this.checksAll()&&e.hasCheckAll.set(!0),e.values.get()||e.values.set([]),this.checksAll()||e.values.set([...e.values.get(),this.value])),this.hasAttribute("checked")&&(!this.publisher||this.publisher.get().checked!==!1)&&setTimeout(()=>this.checked=!0,1)}}return us([a()],t.prototype,"value",1),us([a()],t.prototype,"forceAutoFill",2),us([a({type:Boolean})],t.prototype,"unique",2),us([a({type:Boolean})],t.prototype,"radio",2),us([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 $=s=>s??D,Ut=S`
76
+ */const $=s=>s??k,Ht=S`
77
77
  /*SIZES*/
78
78
  :host {
79
79
  --sc-_fs: 1rem;
@@ -106,11 +106,11 @@
106
106
  :host([size="inherit"]) {
107
107
  --sc-_fs: 1em;
108
108
  }
109
- `;var ba=Object.defineProperty,ma=Object.getOwnPropertyDescriptor,q=(s,t,i,r)=>{for(var e=r>1?void 0:r?ma(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&ba(t,i,e),e};const ga="sonic-button";let R=class extends Ei(He(st(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(s){this._href=s;const t=this._href.toString();t&&t.indexOf("http")!=0?nt.onChange(this):nt.offChange(this),this.requestUpdate()}get href(){return this._href}handleNavigation(s){s.preventDefault(),nt.changeFromComponent(this)}handleChange(s){if(!(s?.type=="click"&&this.autoRepeat)&&(super.handleChange(),(this.pushState||this.goBack!==null)&&(s?.preventDefault(),s?.stopPropagation(),nt.changeFromComponent(this)),this.hasAttribute("reset"))){const t=this.getAttribute("reset"),i=t?E.get(t):this.getFormPublisher();i&&i.set({})}}handleRepeatStart(s){this.autoRepeat&&(this.handleChange(s),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(s){if(this.name){if(s?this.setAttribute("active","true"):this.removeAttribute("active"),s==this._checked)return;super.setCheckedValue(s)}}disconnectedCallback(){nt.offChange(this),super.disconnectedCallback()}willUpdate(s){(s.has("href")||s.has("autoActive"))&&nt.updateComponentActiveState(this),s.has("location")&&nt.updateComponentActiveState(this)}render(){const s={flexDirection:this.direction,alignItems:this.alignItems,justifyContent:this.justify,align:this.align,minWidth:this.minWidth},t=g`
109
+ `;var ma=Object.defineProperty,ga=Object.getOwnPropertyDescriptor,K=(s,t,i,r)=>{for(var e=r>1?void 0:r?ga(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&ma(t,i,e),e};const va="sonic-button";let R=class extends Mi(qe(it(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(s){this._href=s;const t=this._href.toString();t&&t.indexOf("http")!=0?at.onChange(this):at.offChange(this),this.requestUpdate()}get href(){return this._href}handleNavigation(s){s.preventDefault(),at.changeFromComponent(this)}handleChange(s){if(!(s?.type=="click"&&this.autoRepeat)&&(super.handleChange(),(this.pushState||this.goBack!==null)&&(s?.preventDefault(),s?.stopPropagation(),at.changeFromComponent(this)),this.hasAttribute("reset"))){const t=this.getAttribute("reset"),i=t?E.get(t):this.getFormPublisher();i&&i.set({})}}handleRepeatStart(s){this.autoRepeat&&(this.handleChange(s),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(s){if(this.name){if(s?this.setAttribute("active","true"):this.removeAttribute("active"),s==this._checked)return;super.setCheckedValue(s)}}disconnectedCallback(){at.offChange(this),super.disconnectedCallback()}willUpdate(s){(s.has("href")||s.has("autoActive"))&&at.updateComponentActiveState(this),s.has("location")&&at.updateComponentActiveState(this)}render(){const s={flexDirection:this.direction,alignItems:this.alignItems,justifyContent:this.justify,align:this.align,minWidth:this.minWidth},t=g`
110
110
  <button
111
111
  part="button"
112
112
  class=${this.hasPrefix||this.hasSuffix?"has-prefix-or-suffix":""}
113
- style=${gt(s)}
113
+ style=${_t(s)}
114
114
  aria-controls=${$(this.ariaControls)}
115
115
  aria-expanded=${$(this.sonicAriaExpanded)}
116
116
  aria-label=${$(this.ariaLabel)}
@@ -140,7 +140,7 @@
140
140
  aria-labelledby=${$(this.ariaLabelledby)}
141
141
  @click=${this.pushState||this.goBack!==null?this.handleNavigation:null}
142
142
  >${t}</a
143
- >`:g`${t}`}onSlotChange(){this.hasPrefix=!!this.prefixes?.length,this.hasSuffix=!!this.suffixes?.length}};R.styles=[Ut,S`
143
+ >`:g`${t}`}onSlotChange(){this.hasPrefix=!!this.prefixes?.length,this.hasSuffix=!!this.suffixes?.length}};R.styles=[Ht,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
- `],q([a({type:String,reflect:!0})],R.prototype,"type",2),q([a({type:String,reflect:!0})],R.prototype,"variant",2),q([a({type:String,reflect:!0})],R.prototype,"size",2),q([a({type:String,reflect:!0})],R.prototype,"shape",2),q([a({type:String})],R.prototype,"direction",2),q([a({type:String,reflect:!0})],R.prototype,"alignItems",2),q([a({type:String})],R.prototype,"justify",2),q([a({type:String,reflect:!0})],R.prototype,"align",2),q([a({type:String})],R.prototype,"minWidth",2),q([a({type:Boolean,reflect:!0})],R.prototype,"icon",2),q([a({type:String})],R.prototype,"download",2),q([a({type:String})],R.prototype,"autoActive",2),q([a({type:Boolean,reflect:!0})],R.prototype,"loading",2),q([T()],R.prototype,"hasPrefix",2),q([T()],R.prototype,"hasSuffix",2),q([ss({flatten:!0,slot:"prefix"})],R.prototype,"prefixes",2),q([ss({flatten:!0,slot:"suffix"})],R.prototype,"suffixes",2),q([a({type:String})],R.prototype,"target",2),q([a({type:String})],R.prototype,"href",1),q([a({type:String})],R.prototype,"goBack",2),q([a({type:Boolean})],R.prototype,"pushState",2),q([a({type:Boolean,reflect:!0})],R.prototype,"active",2),q([a({type:Boolean,reflect:!0})],R.prototype,"autoRepeat",2),q([a({type:String,attribute:"data-aria-controls"})],R.prototype,"ariaControls",2),q([a({type:Boolean,attribute:"data-aria-expanded"})],R.prototype,"sonicAriaExpanded",2),q([T()],R.prototype,"location",2),R=q([C(ga)],R);/**
509
+ `],K([a({type:String,reflect:!0})],R.prototype,"type",2),K([a({type:String,reflect:!0})],R.prototype,"variant",2),K([a({type:String,reflect:!0})],R.prototype,"size",2),K([a({type:String,reflect:!0})],R.prototype,"shape",2),K([a({type:String})],R.prototype,"direction",2),K([a({type:String,reflect:!0})],R.prototype,"alignItems",2),K([a({type:String})],R.prototype,"justify",2),K([a({type:String,reflect:!0})],R.prototype,"align",2),K([a({type:String})],R.prototype,"minWidth",2),K([a({type:Boolean,reflect:!0})],R.prototype,"icon",2),K([a({type:String})],R.prototype,"download",2),K([a({type:String})],R.prototype,"autoActive",2),K([a({type:Boolean,reflect:!0})],R.prototype,"loading",2),K([T()],R.prototype,"hasPrefix",2),K([T()],R.prototype,"hasSuffix",2),K([is({flatten:!0,slot:"prefix"})],R.prototype,"prefixes",2),K([is({flatten:!0,slot:"suffix"})],R.prototype,"suffixes",2),K([a({type:String})],R.prototype,"target",2),K([a({type:String})],R.prototype,"href",1),K([a({type:String})],R.prototype,"goBack",2),K([a({type:Boolean})],R.prototype,"pushState",2),K([a({type:Boolean,reflect:!0})],R.prototype,"active",2),K([a({type:Boolean,reflect:!0})],R.prototype,"autoRepeat",2),K([a({type:String,attribute:"data-aria-controls"})],R.prototype,"ariaControls",2),K([a({type:Boolean,attribute:"data-aria-expanded"})],R.prototype,"sonicAriaExpanded",2),K([T()],R.prototype,"location",2),R=K([C(va)],R);/**
510
510
  * @license
511
511
  * Copyright 2017 Google LLC
512
512
  * SPDX-License-Identifier: BSD-3-Clause
513
- */const Wr=(s,t,i)=>{const r=new Map;for(let e=t;e<=i;e++)r.set(s[e],e);return r},Ks=ne(class extends Ve{constructor(s){if(super(s),s.type!==$e.CHILD)throw Error("repeat() can only be used in text expressions")}dt(s,t,i){let r;i===void 0?i=t:t!==void 0&&(r=t);const e=[],o=[];let n=0;for(const l of s)e[n]=r?r(l,n):n,o[n]=i(l,n),n++;return{values:o,keys:e}}render(s,t,i){return this.dt(s,t,i).values}update(s,[t,i,r]){const e=jn(s),{values:o,keys:n}=this.dt(t,i,r);if(!Array.isArray(e))return this.ut=n,o;const l=this.ut??=[],c=[];let h,p,d=0,f=e.length-1,_=0,y=o.length-1;for(;d<=f&&_<=y;)if(e[d]===null)d++;else if(e[f]===null)f--;else if(l[d]===n[_])c[_]=Se(e[d],o[_]),d++,_++;else if(l[f]===n[y])c[y]=Se(e[f],o[y]),f--,y--;else if(l[d]===n[y])c[y]=Se(e[d],o[y]),ns(s,c[y+1],e[d]),d++,y--;else if(l[f]===n[_])c[_]=Se(e[f],o[_]),ns(s,e[d],e[f]),f--,_++;else if(h===void 0&&(h=Wr(n,_,y),p=Wr(l,d,f)),h.has(l[d]))if(h.has(l[f])){const m=p.get(n[_]),v=m!==void 0?e[m]:null;if(v===null){const A=ns(s,e[d]);Se(A,o[_]),c[_]=A}else c[_]=Se(v,o[_]),ns(s,e[d],v),e[m]=null;_++}else Si(e[f]),f--;else Si(e[d]),d++;for(;_<=y;){const m=ns(s,c[y+1]);Se(m,o[_]),c[_++]=m}for(;d<=f;){const m=e[d++];m!==null&&Si(m)}return this.ut=n,Fn(s,c),Pt}}),va=new WeakMap;let Kr=0;const Li=new Map,Yr=new WeakSet,Gr=()=>new Promise((s=>requestAnimationFrame(s))),Zr=(s,t)=>{const i=s-t;return i===0?void 0:i},Xr=(s,t)=>{const i=s/t;return i===1?void 0:i},Ti={left:(s,t)=>{const i=Zr(s,t);return{value:i,transform:i==null||isNaN(i)?void 0:`translateX(${i}px)`}},top:(s,t)=>{const i=Zr(s,t);return{value:i,transform:i==null||isNaN(i)?void 0:`translateY(${i}px)`}},width:(s,t)=>{let i;t===0&&(t=1,i={width:"1px"});const r=Xr(s,t);return{value:r,overrideFrom:i,transform:r==null||isNaN(r)?void 0:`scaleX(${r})`}},height:(s,t)=>{let i;t===0&&(t=1,i={height:"1px"});const r=Xr(s,t);return{value:r,overrideFrom:i,transform:r==null||isNaN(r)?void 0:`scaleY(${r})`}}},ya={duration:333,easing:"ease-in-out"},_a=["left","top","width","height","opacity","color","background"],Qr=new WeakMap;class wa extends $i{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===$e.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 va.get(this.u)}isDisabled(){return this.options.disabled||this.getController()?.disabled}update(t,[i]){const r=this.u===void 0;return r&&(this.u=t.options?.host,this.u.addController(this),this.u.updateComplete.then((e=>this.t=!0)),this.element=t.element,Qr.set(this.element,this)),this.optionsOrCallback=i,(r||typeof i!="function")&&this.p(i),this.render(i)}p(t){t=t??{};const i=this.getController();i!==void 0&&((t={...i.defaultOptions,...t}).keyframeOptions={...i.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??=_a,this.options=t}m(){const t={},i=this.element.getBoundingClientRect(),r=getComputedStyle(this.element);return this.options.properties.forEach((e=>{const o=i[e]??(Ti[e]?void 0:r[e]),n=Number(o);t[e]=isNaN(n)?o+"":n})),t}v(){let t,i=!0;return this.options.guard&&(t=this.options.guard(),i=((r,e)=>{if(Array.isArray(r)){if(Array.isArray(e)&&e.length===r.length&&r.every(((o,n)=>o===e[n])))return!1}else if(e===r)return!1;return!0})(t,this._)),this.h=this.t&&!this.isDisabled()&&!this.isAnimating()&&i&&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 Gr;const i=this.O(),r=this.j(this.options.keyframeOptions,i),e=this.m();if(this.A!==void 0){const{from:o,to:n}=this.N(this.A,e,i);this.log("measured",[this.A,e,o,n]),t=this.calculateKeyframes(o,n)}else{const o=Li.get(this.options.inId);if(o){Li.delete(this.options.inId);const{from:n,to:l}=this.N(o,e,i);t=this.calculateKeyframes(n,l),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,Kr++,t.forEach((c=>c.zIndex=Kr))}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&&Li.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await Gr(),this.i?.isConnected){const i=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,i),this.options.stabilizeOut){const r=this.m();this.log("stabilizing out");const e=this.A.left-r.left,o=this.A.top-r.top;getComputedStyle(this.element).position!=="static"||e===0&&o===0||(this.element.style.position="relative"),e!==0&&(this.element.style.left=e+"px"),o!==0&&(this.element.style.top=o+"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 i=this.element.parentNode;i;i=i?.parentNode){const r=Qr.get(i);r&&!r.isDisabled()&&r&&t.push(r)}return t}get isHostRendered(){const t=Yr.has(this.u);return t||this.u.updateComplete.then((()=>{Yr.add(this.u)})),t}j(t,i=this.O()){const r={...ya};return i.forEach((e=>Object.assign(r,e.options.keyframeOptions))),Object.assign(r,t),r}N(t,i,r){t={...t},i={...i};const e=r.map((l=>l.animatingProperties)).filter((l=>l!==void 0));let o=1,n=1;return e.length>0&&(e.forEach((l=>{l.width&&(o/=l.width),l.height&&(n/=l.height)})),t.left!==void 0&&i.left!==void 0&&(t.left=o*t.left,i.left=o*i.left),t.top!==void 0&&i.top!==void 0&&(t.top=n*t.top,i.top=n*i.top)),{from:t,to:i}}calculateKeyframes(t,i,r=!1){const e={},o={};let n=!1;const l={};for(const c in i){const h=t[c],p=i[c];if(c in Ti){const d=Ti[c];if(h===void 0||p===void 0)continue;const f=d(h,p);f.transform!==void 0&&(l[c]=f.value,n=!0,e.transform=`${e.transform??""} ${f.transform}`,f.overrideFrom!==void 0&&Object.assign(e,f.overrideFrom))}else h!==p&&h!==void 0&&p!==void 0&&(n=!0,e[c]=h,o[c]=p)}return e.transformOrigin=o.transformOrigin=r?"center center":"top left",this.animatingProperties=l,n?[e,o]:void 0}async animate(t,i=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,i]),r=!0,this.webAnimation=this.element.animate(t,i);const e=this.getController();e?.add(this);try{await this.webAnimation.finished}catch{}e?.remove(this)}return this.didFinish(r),r}isAnimating(){return this.webAnimation?.playState==="running"||this.webAnimation?.pending}log(t,i){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,i)}}const xa=ne(wa),Pa={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 Yr=(s,t,i)=>{const r=new Map;for(let e=t;e<=i;e++)r.set(s[e],e);return r},Ys=le(class extends Be{constructor(s){if(super(s),s.type!==Ae.CHILD)throw Error("repeat() can only be used in text expressions")}dt(s,t,i){let r;i===void 0?i=t:t!==void 0&&(r=t);const e=[],n=[];let o=0;for(const l of s)e[o]=r?r(l,o):o,n[o]=i(l,o),o++;return{values:n,keys:e}}render(s,t,i){return this.dt(s,t,i).values}update(s,[t,i,r]){const e=Ro(s),{values:n,keys:o}=this.dt(t,i,r);if(!Array.isArray(e))return this.ut=o,n;const l=this.ut??=[],c=[];let h,u,d=0,p=e.length-1,w=0,v=n.length-1;for(;d<=p&&w<=v;)if(e[d]===null)d++;else if(e[p]===null)p--;else if(l[d]===o[w])c[w]=$e(e[d],n[w]),d++,w++;else if(l[p]===o[v])c[v]=$e(e[p],n[v]),p--,v--;else if(l[d]===o[v])c[v]=$e(e[d],n[v]),as(s,c[v+1],e[d]),d++,v--;else if(l[p]===o[w])c[w]=$e(e[p],n[w]),as(s,e[d],e[p]),p--,w++;else if(h===void 0&&(h=Yr(o,w,v),u=Yr(l,d,p)),h.has(l[d]))if(h.has(l[p])){const m=u.get(o[w]),y=m!==void 0?e[m]:null;if(y===null){const D=as(s,e[d]);$e(D,n[w]),c[w]=D}else c[w]=$e(y,n[w]),as(s,e[d],y),e[m]=null;w++}else Di(e[p]),p--;else Di(e[d]),d++;for(;w<=v;){const m=as(s,c[v+1]);$e(m,n[w]),c[w++]=m}for(;d<=p;){const m=e[d++];m!==null&&Di(m)}return this.ut=o,jo(s,c),At}}),ya=new WeakMap;let Gr=0;const Ni=new Map,Zr=new WeakSet,Xr=()=>new Promise((s=>requestAnimationFrame(s))),Qr=(s,t)=>{const i=s-t;return i===0?void 0:i},Jr=(s,t)=>{const i=s/t;return i===1?void 0:i},Fi={left:(s,t)=>{const i=Qr(s,t);return{value:i,transform:i==null||isNaN(i)?void 0:`translateX(${i}px)`}},top:(s,t)=>{const i=Qr(s,t);return{value:i,transform:i==null||isNaN(i)?void 0:`translateY(${i}px)`}},width:(s,t)=>{let i;t===0&&(t=1,i={width:"1px"});const r=Jr(s,t);return{value:r,overrideFrom:i,transform:r==null||isNaN(r)?void 0:`scaleX(${r})`}},height:(s,t)=>{let i;t===0&&(t=1,i={height:"1px"});const r=Jr(s,t);return{value:r,overrideFrom:i,transform:r==null||isNaN(r)?void 0:`scaleY(${r})`}}},_a={duration:333,easing:"ease-in-out"},wa=["left","top","width","height","opacity","color","background"],tn=new WeakMap;class xa extends Oi{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===Ae.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 ya.get(this.u)}isDisabled(){return this.options.disabled||this.getController()?.disabled}update(t,[i]){const r=this.u===void 0;return r&&(this.u=t.options?.host,this.u.addController(this),this.u.updateComplete.then((e=>this.t=!0)),this.element=t.element,tn.set(this.element,this)),this.optionsOrCallback=i,(r||typeof i!="function")&&this.p(i),this.render(i)}p(t){t=t??{};const i=this.getController();i!==void 0&&((t={...i.defaultOptions,...t}).keyframeOptions={...i.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??=wa,this.options=t}m(){const t={},i=this.element.getBoundingClientRect(),r=getComputedStyle(this.element);return this.options.properties.forEach((e=>{const n=i[e]??(Fi[e]?void 0:r[e]),o=Number(n);t[e]=isNaN(o)?n+"":o})),t}v(){let t,i=!0;return this.options.guard&&(t=this.options.guard(),i=((r,e)=>{if(Array.isArray(r)){if(Array.isArray(e)&&e.length===r.length&&r.every(((n,o)=>n===e[o])))return!1}else if(e===r)return!1;return!0})(t,this._)),this.h=this.t&&!this.isDisabled()&&!this.isAnimating()&&i&&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 Xr;const i=this.O(),r=this.j(this.options.keyframeOptions,i),e=this.m();if(this.A!==void 0){const{from:n,to:o}=this.N(this.A,e,i);this.log("measured",[this.A,e,n,o]),t=this.calculateKeyframes(n,o)}else{const n=Ni.get(this.options.inId);if(n){Ni.delete(this.options.inId);const{from:o,to:l}=this.N(n,e,i);t=this.calculateKeyframes(o,l),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,Gr++,t.forEach((c=>c.zIndex=Gr))}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&&Ni.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await Xr(),this.i?.isConnected){const i=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,i),this.options.stabilizeOut){const r=this.m();this.log("stabilizing out");const e=this.A.left-r.left,n=this.A.top-r.top;getComputedStyle(this.element).position!=="static"||e===0&&n===0||(this.element.style.position="relative"),e!==0&&(this.element.style.left=e+"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 i=this.element.parentNode;i;i=i?.parentNode){const r=tn.get(i);r&&!r.isDisabled()&&r&&t.push(r)}return t}get isHostRendered(){const t=Zr.has(this.u);return t||this.u.updateComplete.then((()=>{Zr.add(this.u)})),t}j(t,i=this.O()){const r={..._a};return i.forEach((e=>Object.assign(r,e.options.keyframeOptions))),Object.assign(r,t),r}N(t,i,r){t={...t},i={...i};const e=r.map((l=>l.animatingProperties)).filter((l=>l!==void 0));let n=1,o=1;return e.length>0&&(e.forEach((l=>{l.width&&(n/=l.width),l.height&&(o/=l.height)})),t.left!==void 0&&i.left!==void 0&&(t.left=n*t.left,i.left=n*i.left),t.top!==void 0&&i.top!==void 0&&(t.top=o*t.top,i.top=o*i.top)),{from:t,to:i}}calculateKeyframes(t,i,r=!1){const e={},n={};let o=!1;const l={};for(const c in i){const h=t[c],u=i[c];if(c in Fi){const d=Fi[c];if(h===void 0||u===void 0)continue;const p=d(h,u);p.transform!==void 0&&(l[c]=p.value,o=!0,e.transform=`${e.transform??""} ${p.transform}`,p.overrideFrom!==void 0&&Object.assign(e,p.overrideFrom))}else h!==u&&h!==void 0&&u!==void 0&&(o=!0,e[c]=h,n[c]=u)}return e.transformOrigin=n.transformOrigin=r?"center center":"top left",this.animatingProperties=l,o?[e,n]:void 0}async animate(t,i=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,i]),r=!0,this.webAnimation=this.element.animate(t,i);const e=this.getController();e?.add(this);try{await this.webAnimation.finished}catch{}e?.remove(this)}return this.didFinish(r),r}isAnimating(){return this.webAnimation?.playState==="running"||this.webAnimation?.pending}log(t,i){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,i)}}const Pa=le(xa),Ca={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
- `}},Ys=new Map,us={heroicons:{url:"https://cdn.jsdelivr.net/npm/heroicons@2.0.4/24/$prefix/$name.svg",defaultPrefix:"outline"},iconoir:{url:"https://cdnjs.cloudflare.com/ajax/libs/iconoir/5.1.4/icons/$name.svg"},feathers:{url:"https://cdn.jsdelivr.net/npm/feather-icons@4.29.0/dist/icons/$name.svg"},lucide:{url:"https://cdn.jsdelivr.net/npm/lucide-static@0.16.29/icons/$name.svg"},material:{url:"https://cdn.jsdelivr.net/npm/@material-icons/svg@1.0.5/svg/$name/$prefix.svg",defaultPrefix:"regular"},fontAwesome:{url:"https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.1/svgs/$prefix/$name.svg",defaultPrefix:"regular"},custom:{url:"",defaultPrefix:""}};let Jr=!1;function Ca(){Jr||(us.custom.url=document.querySelector("[customIconLibraryPath]")?.getAttribute("customIconLibraryPath")||"",us.custom.defaultPrefix=document.querySelector("[customIconDefaultPrefix]")?.getAttribute("customIconDefaultPrefix")||"",us.custom.url&&(Jr=!0))}const to=sessionStorage.getItem("sonicIconsCache"),Qt=to?JSON.parse(to):{icons:{},names:[]},Sa=100,br=class br{};br.default={get:async t=>{const i=t.library;if(!t.name)return"";const r=t.name,e=Pa;if(i=="custom"&&Ca(),i&&i in us){const o=us[i],n=t.prefix||o.defaultPrefix||"",l=e[i]||{};e[i]=l;const c=n+"-"+r;if(l[c])return U(l[c]);const h=(o.url||"").replace("$prefix",n).replace("$name",r);if(Qt.icons[h]){const d=Qt.icons[h];if(/^\s*<svg[\s>]/i.test(d||""))return l[c]=d,U(d);delete Qt.icons[h]}if(!Ys.has(h)){const d=new Promise(async f=>{try{const _=await fetch(h);if(!_.ok){f("");return}try{const y=_.headers.get("content-type")||"";if(!y.includes("image/svg+xml")&&!y.includes("svg")){f("");return}const m=await _.text(),v=/^\s*<svg[\s>]/i.test(m);f(v?m:"")}catch{f("")}}catch{Bn(),f("")}});Ys.set(h,d)}const p=await Ys.get(h);if(Ys.delete(h),l[c]=p||"",p&&/^\s*<svg[\s>]/i.test(p)&&(Qt.icons[h]=p,Qt.names.push(h)),Qt.names.length>Sa){const d=Qt.names.shift();delete Qt.icons[d]}return sessionStorage.setItem("sonicIconsCache",JSON.stringify(Qt)),p?U(p):""}return U(e.core[t.name]||"")}};let Ii=br;var $a=Object.defineProperty,Aa=Object.getOwnPropertyDescriptor,ps=(s,t,i,r)=>{for(var e=r>1?void 0:r?Aa(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&$a(t,i,e),e};const Mi=s=>a(s),ka="sonic-icon";let Ae=class extends P{constructor(){super(...arguments),this.iconText="",this.name="",this.prefix="",this.library=""}async updateIcon(){this.iconText=await Ii.default.get({name:this.name,prefix:this.prefix,library:this.library})}connectedCallback(){this.setAttribute("aria-hidden","true"),super.connectedCallback()}willUpdate(s){(s.has("name")||s.has("prefix")||s.has("library"))&&this.updateIcon(),super.willUpdate(s)}render(){return this.iconText?this.iconText:D}};Ae.styles=S`
549
+ `}},Gs=new Map,ps={heroicons:{url:"https://cdn.jsdelivr.net/npm/heroicons@2.0.4/24/$prefix/$name.svg",defaultPrefix:"outline"},iconoir:{url:"https://cdnjs.cloudflare.com/ajax/libs/iconoir/5.1.4/icons/$name.svg"},feathers:{url:"https://cdn.jsdelivr.net/npm/feather-icons@4.29.0/dist/icons/$name.svg"},lucide:{url:"https://cdn.jsdelivr.net/npm/lucide-static@0.16.29/icons/$name.svg"},material:{url:"https://cdn.jsdelivr.net/npm/@material-icons/svg@1.0.5/svg/$name/$prefix.svg",defaultPrefix:"regular"},fontAwesome:{url:"https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.1/svgs/$prefix/$name.svg",defaultPrefix:"regular"},custom:{url:"",defaultPrefix:""}};let en=!1;function Sa(){en||(ps.custom.url=document.querySelector("[customIconLibraryPath]")?.getAttribute("customIconLibraryPath")||"",ps.custom.defaultPrefix=document.querySelector("[customIconDefaultPrefix]")?.getAttribute("customIconDefaultPrefix")||"",ps.custom.url&&(en=!0))}const sn=sessionStorage.getItem("sonicIconsCache"),te=sn?JSON.parse(sn):{icons:{},names:[]},$a=100,vr=class vr{};vr.default={get:async t=>{const i=t.library;if(!t.name)return"";const r=t.name,e=Ca;if(i=="custom"&&Sa(),i&&i in ps){const n=ps[i],o=t.prefix||n.defaultPrefix||"",l=e[i]||{};e[i]=l;const c=o+"-"+r;if(l[c])return B(l[c]);const h=(n.url||"").replace("$prefix",o).replace("$name",r);if(te.icons[h]){const d=te.icons[h];if(/^\s*<svg[\s>]/i.test(d||""))return l[c]=d,B(d);delete te.icons[h]}if(!Gs.has(h)){const d=new Promise(async p=>{try{const w=await fetch(h);if(!w.ok){p("");return}try{const v=w.headers.get("content-type")||"";if(!v.includes("image/svg+xml")&&!v.includes("svg")){p("");return}const m=await w.text(),y=/^\s*<svg[\s>]/i.test(m);p(y?m:"")}catch{p("")}}catch{Ho(),p("")}});Gs.set(h,d)}const u=await Gs.get(h);if(Gs.delete(h),l[c]=u||"",u&&/^\s*<svg[\s>]/i.test(u)&&(te.icons[h]=u,te.names.push(h)),te.names.length>$a){const d=te.names.shift();delete te.icons[d]}return sessionStorage.setItem("sonicIconsCache",JSON.stringify(te)),u?B(u):""}return B(e.core[t.name]||"")}};let ji=vr;var Aa=Object.defineProperty,ka=Object.getOwnPropertyDescriptor,fs=(s,t,i,r)=>{for(var e=r>1?void 0:r?ka(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&Aa(t,i,e),e};const Ri=s=>a(s),Da="sonic-icon";let ke=class extends P{constructor(){super(...arguments),this.iconText="",this.name="",this.prefix="",this.library=""}async updateIcon(){this.iconText=await ji.default.get({name:this.name,prefix:this.prefix,library:this.library})}connectedCallback(){this.setAttribute("aria-hidden","true"),super.connectedCallback()}willUpdate(s){(s.has("name")||s.has("prefix")||s.has("library"))&&this.updateIcon(),super.willUpdate(s)}render(){return this.iconText?this.iconText:k}};ke.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
- `,ps([T()],Ae.prototype,"iconText",2),ps([Mi({type:String})],Ae.prototype,"name",2),ps([Mi({type:String})],Ae.prototype,"prefix",2),ps([Mi({type:String})],Ae.prototype,"library",2),Ae=ps([C(ka)],Ae);const fs=S`
599
+ `,fs([T()],ke.prototype,"iconText",2),fs([Ri({type:String})],ke.prototype,"name",2),fs([Ri({type:String})],ke.prototype,"prefix",2),fs([Ri({type:String})],ke.prototype,"library",2),ke=fs([C(Da)],ke);const bs=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 Da=Object.defineProperty,Oa=Object.getOwnPropertyDescriptor,It=(s,t,i,r)=>{for(var e=r>1?void 0:r?Oa(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&Da(t,i,e),e};const Ea={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty"},La="sonic-toast-item";let Ct=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 s={error:"Fermer le message d'erreur",warning:"Fermer l'avertissement",success:"Fermer le message de succès",info:"Fermer l'information"};return this.status&&s[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 s=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,i=this.getAriaLive();return g`<div
621
+ `;var Oa=Object.defineProperty,Ea=Object.getOwnPropertyDescriptor,jt=(s,t,i,r)=>{for(var e=r>1?void 0:r?Ea(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&Oa(t,i,e),e};const La={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty"},Ta="sonic-toast-item";let kt=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 s={error:"Fermer le message d'erreur",warning:"Fermer l'avertissement",success:"Fermer le message de succès",info:"Fermer l'information"};return this.status&&s[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 s=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,i=this.getAriaLive();return g`<div
622
622
  class="sonic-toast ${this.status} ${this.ghost?"ghost":""}"
623
623
  role=${this.getAriaRole()}
624
- aria-live=${i||D}
624
+ aria-live=${i||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&&g`<sonic-icon
640
- name=${Ea[this.status]}
640
+ name=${La[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?g`<div class="sonic-toast-title" id=${s}>
648
648
  ${this.title}
649
649
  </div>`:""}
650
- ${this.text?U(this.text):""}
650
+ ${this.text?B(this.text):""}
651
651
  <slot></slot>
652
652
  </div>
653
653
 
654
654
  ${this.preserve?"":this.autoHide()}
655
655
  </div>
656
- </div>`}hide(){if(le.getClosestElement(this,"sonic-toast")||(this.visible=!1),this.dismissForever){const s=localStorage.getItem("sonic-toast-dismissed")||"{}",t=JSON.parse(s);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)}};Ct.styles=[fs,S`
656
+ </div>`}hide(){if(he.getClosestElement(this,"sonic-toast")||(this.visible=!1),this.dismissForever){const s=localStorage.getItem("sonic-toast-dismissed")||"{}",t=JSON.parse(s);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)}};kt.styles=[bs,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
- `],It([a({type:String})],Ct.prototype,"title",2),It([a({type:String})],Ct.prototype,"id",2),It([a({type:String})],Ct.prototype,"text",2),It([a({type:String})],Ct.prototype,"status",2),It([a({type:Boolean})],Ct.prototype,"ghost",2),It([a({type:Boolean})],Ct.prototype,"preserve",2),It([a({type:Boolean})],Ct.prototype,"dismissForever",2),It([a({type:String})],Ct.prototype,"maxHeight",2),It([T()],Ct.prototype,"visible",2),It([T()],Ct.prototype,"_titleId",2),Ct=It([C(La)],Ct);const Ta=S`
836
+ `],jt([a({type:String})],kt.prototype,"title",2),jt([a({type:String})],kt.prototype,"id",2),jt([a({type:String})],kt.prototype,"text",2),jt([a({type:String})],kt.prototype,"status",2),jt([a({type:Boolean})],kt.prototype,"ghost",2),jt([a({type:Boolean})],kt.prototype,"preserve",2),jt([a({type:Boolean})],kt.prototype,"dismissForever",2),jt([a({type:String})],kt.prototype,"maxHeight",2),jt([T()],kt.prototype,"visible",2),jt([T()],kt.prototype,"_titleId",2),kt=jt([C(Ta)],kt);const Ia=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
- `,Ia=S`
907
+ `,Ma=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
- `,eo=S`
936
+ `,rn=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
- `,Ma=S`
961
+ `,Na=S`
962
962
  :host([theme="dark"]) {
963
- ${eo}
963
+ ${rn}
964
964
  }
965
965
 
966
966
  @media (prefers-color-scheme: dark) {
967
967
  :host([theme="auto"]) {
968
- ${eo}
968
+ ${rn}
969
969
  }
970
970
  }
971
- `;var Na=Object.defineProperty,Fa=Object.getOwnPropertyDescriptor,bs=(s,t,i,r)=>{for(var e=r>1?void 0:r?Fa(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&Na(t,i,e),e};const ja="sonic-theme";let St=class extends P{constructor(){super(),this.background=!1,this.color=!1,this.font=!1,St.instance=this}static getPopContainer(){return St.instance||document.body}connectedCallback(){super.connectedCallback(),window.addEventListener("message",s=>this.receiveMessage(s),!1),window.dispatchEvent(new CustomEvent("SonicThemeReady")),this.postCSSVars()}postCSSVars(){const s=document.styleSheets,t=s.length,i=[];for(let e=0;e<t;e++){const o=s[e];o.href&&(o.href.includes("googleapis")||o.href.includes("typekit.net"))&&i.push(o.href)}const r={variables:this.getCssVariables(),fonts:i};E.get("sonic-theme")?.set(r),document.querySelectorAll("iframe").forEach(e=>e.contentWindow?.postMessage({type:"SonicTheme",...r},"*"))}receiveMessage(s){const t=s.data;!t.type||t.type!="GetSonicTheme"||this.postCSSVars()}getCssVariables(){const s=[],t=[...St.styles.map(e=>e.styleSheet),...Array.from(document.styleSheets)];for(const e of t)try{if(!e)continue;const o=e.cssRules;for(const n of o){if(!("style"in n))continue;const l=n.style;for(const c of l)s.includes(c)||c.indexOf("--sc")!==0||s.push(c)}}catch{console.warn("Erreur lors de la récupération des variables CSS")}const i=window.getComputedStyle(this),r={};return s.forEach(e=>r[e]=i.getPropertyValue(e)),r}render(){return g`<slot></slot>`}};St.styles=[Ia,Ma,Ta,S`
971
+ `;var Fa=Object.defineProperty,ja=Object.getOwnPropertyDescriptor,ms=(s,t,i,r)=>{for(var e=r>1?void 0:r?ja(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&Fa(t,i,e),e};const Ra="sonic-theme";let Dt=class extends P{constructor(){super(),this.background=!1,this.color=!1,this.font=!1,Dt.instance=this}static getPopContainer(){return Dt.instance||document.body}connectedCallback(){super.connectedCallback(),window.addEventListener("message",s=>this.receiveMessage(s),!1),window.dispatchEvent(new CustomEvent("SonicThemeReady")),this.postCSSVars()}postCSSVars(){const s=document.styleSheets,t=s.length,i=[];for(let e=0;e<t;e++){const n=s[e];n.href&&(n.href.includes("googleapis")||n.href.includes("typekit.net"))&&i.push(n.href)}const r={variables:this.getCssVariables(),fonts:i};E.get("sonic-theme")?.set(r),document.querySelectorAll("iframe").forEach(e=>e.contentWindow?.postMessage({type:"SonicTheme",...r},"*"))}receiveMessage(s){const t=s.data;!t.type||t.type!="GetSonicTheme"||this.postCSSVars()}getCssVariables(){const s=[],t=[...Dt.styles.map(e=>e.styleSheet),...Array.from(document.styleSheets)];for(const e of t)try{if(!e)continue;const n=e.cssRules;for(const o of n){if(!("style"in o))continue;const l=o.style;for(const c of l)s.includes(c)||c.indexOf("--sc")!==0||s.push(c)}}catch{console.warn("Erreur lors de la récupération des variables CSS")}const i=window.getComputedStyle(this),r={};return s.forEach(e=>r[e]=i.getPropertyValue(e)),r}render(){return g`<slot></slot>`}};Dt.styles=[Ma,Na,Ia,S`
972
972
  :host([color]) {
973
973
  color: var(--sc-base-content, #000);
974
974
  }
@@ -1000,8 +1000,8 @@
1000
1000
  transition-property: scale, opacity;
1001
1001
  transition-timing-function: cubic-bezier(0.25, 0.25, 0.42, 1.225);
1002
1002
  }
1003
- `],bs([a({type:String,reflect:!0})],St.prototype,"theme",2),bs([a({type:Boolean,reflect:!0})],St.prototype,"background",2),bs([a({type:Boolean,reflect:!0})],St.prototype,"color",2),bs([a({type:Boolean,reflect:!0})],St.prototype,"font",2),St=bs([C(ja)],St);var Ra=Object.defineProperty,za=Object.getOwnPropertyDescriptor,so=(s,t,i,r)=>{for(var e=r>1?void 0:r?za(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&Ra(t,i,e),e};const Ua="sonic-toast";let L=class extends P{constructor(){super(...arguments),this.toasts=[]}createRenderRoot(){return this}render(){const t=window.parent!=window;let i={pointerEvents:"none",gap:"1rem",display:"flex",margin:this.toasts.length?"1rem":"0"};return t||(i={...i,margin:"0",width:"calc(100% - 2.5rem)",position:"fixed",bottom:"1.25rem",right:"1.25rem",zIndex:"10000",maxWidth:"64ch",flexDirection:"column-reverse"}),L.handleExistingToastDelegation(),this.toasts?g`<div style=${gt(i)}>
1004
- ${Ks(this.toasts,r=>r.id,r=>g`
1003
+ `],ms([a({type:String,reflect:!0})],Dt.prototype,"theme",2),ms([a({type:Boolean,reflect:!0})],Dt.prototype,"background",2),ms([a({type:Boolean,reflect:!0})],Dt.prototype,"color",2),ms([a({type:Boolean,reflect:!0})],Dt.prototype,"font",2),Dt=ms([C(Ra)],Dt);var za=Object.defineProperty,Ua=Object.getOwnPropertyDescriptor,nn=(s,t,i,r)=>{for(var e=r>1?void 0:r?Ua(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&za(t,i,e),e};const Va="sonic-toast";let L=class extends P{constructor(){super(...arguments),this.toasts=[]}createRenderRoot(){return this}render(){const t=window.parent!=window;let i={pointerEvents:"none",gap:"1rem",display:"flex",margin:this.toasts.length?"1rem":"0"};return t||(i={...i,margin:"0",width:"calc(100% - 2.5rem)",position:"fixed",bottom:"1.25rem",right:"1.25rem",zIndex:"10000",maxWidth:"64ch",flexDirection:"column-reverse"}),L.handleExistingToastDelegation(),this.toasts?g`<div style=${_t(i)}>
1004
+ ${Ys(this.toasts,r=>r.id,r=>g`
1005
1005
  <sonic-toast-item
1006
1006
  maxHeight=${t?"none":"10rem"}
1007
1007
  status=${$(r.status)}
@@ -1011,28 +1011,28 @@
1011
1011
  ?preserve=${r.preserve}
1012
1012
  id=${$(r.id)}
1013
1013
  @hide=${()=>this.removeItem(r)}
1014
- ${xa({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
+ ${Pa({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?B(r.text):""}
1018
1018
  </sonic-toast-item>
1019
1019
  `)}
1020
- </div>`:D}static removeAll(){if(L.delegateToasts){L.handleExistingToastDelegation(),window.parent.postMessage({type:"removeAllToasts"},"*");return}const t=L.getInstance();t&&(t.toasts=t.toasts.filter(i=>i.ghost))}static removeItemsByStatus(t){if(L.delegateToasts){L.handleExistingToastDelegation(),window.parent.postMessage({type:"removeItemsByStatus",status:t},"*");return}const i=L.getInstance();i&&(i.toasts=i.toasts.filter(r=>r.status!==t))}static removeTemporaryItems(){if(L.delegateToasts){L.handleExistingToastDelegation(),window.parent.postMessage({type:"removeTemporaryItems"},"*");return}const t=L.getInstance();t&&(t.toasts=t.toasts.filter(i=>i.preserve))}static getInstance(){return L.instance||(L.instance=document.createElement("sonic-toast"),St.getPopContainer().prepend(L.instance)),L.instance}static add(t){if(L.delegateToasts){L.handleExistingToastDelegation(),window.parent.postMessage({type:"addToast",toast:t},"*");return}const i=L.getInstance(),r=t.id??new Date().valueOf(),o=new RegExp("</a>|</.*?button>|</.*?input>|</.*?textarea>|</.*?select>").test(t.text),n={id:r,text:t.text,title:t.title,status:t.status,preserve:o?!0:t.preserve,ghost:t.ghost,dismissForever:t.dismissForever};if(t.dismissForever&&t.id){const l=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(l)[t.id])return null}if(i?.toasts.length){const l={...n};for(const c of i.toasts){const h={...c};if(l.id=h.id=0,ot.shallowEqual(l,h))return null}}return i&&(i.toasts=[...i.toasts,n]),n}static handleExistingToastDelegation(){if(!this.delegateToasts)return;const t=L.getInstance();window.parent.postMessage({type:"addToasts",toasts:t.toasts},"*"),t.toasts=[]}static removeItem(t){if(L.delegateToasts){L.handleExistingToastDelegation(),window.parent.postMessage({type:"removeToast",toast:t},"*");return}const i=L.getInstance();i&&i.removeItem(t)}removeItem(t){t&&(this.toasts=this.toasts.filter(i=>(i={...i},delete i.id,!ot.shallowEqual(i,t,!1))))}};L.delegateToasts=!1,so([a({type:Array})],L.prototype,"toasts",2),L=so([C(Ua)],L),typeof window<"u"&&(window[Es+"Toast"]=window[Es+"Toast"]||L);function Va(){const s=i=>{i.data.type=="querySonicToastAvailability"&&i.source.postMessage({type:"sonicToastAvailable"},"*"),i.data.type=="removeItemsByStatus"&&L.removeItemsByStatus(i.data.status),i.data.type=="removeTemporaryItems"&&L.removeTemporaryItems(),i.data.type=="sonicToastAvailable"&&(L.delegateToasts=!0,L.handleExistingToastDelegation()),i.data.type=="addToasts"&&(L.getInstance().toasts=[...L.getInstance().toasts,...i.data.toasts]),i.data.type=="removeAllToasts"&&L.removeAll(),i.data.type=="removeToast"&&L.removeItem(i.data.toast),i.data.type=="addToast"&&L.add(i.data.toast)},t=window.parent!=window;if(window.addEventListener("message",s,!1),t&&window.parent.postMessage({type:"querySonicToastAvailability"},"*"),!t)for(const i of document.querySelectorAll("iframe"))i.contentWindow?.postMessage({type:"sonicToastAvailable"},"*")}Va();var Ba=Object.defineProperty,Ha=Object.getOwnPropertyDescriptor,ms=(s,t,i,r)=>{for(var e=r>1?void 0:r?Ha(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&Ba(t,i,e),e};const qa=new Set,Wa=new Set,Ka=s=>{for(const t of Wa)t(s)},Ni=new Set;let Fi=0;ui(async()=>{Fi++;const s=Fi,t=Array.from(Ni);for(;t.length>0;){if(s!=Fi)return;const i=t.splice(0,4);await Promise.all(i.map(r=>r.refetch()))}});const ji=(s,t)=>{class i extends s{constructor(...e){super(),this.api=null,this.key="",this.isFirstLoad=!0,this.isLoading=!1,this.iObserver=null,this.isFetchEnabled=!0,this.fetchedData=null,this._endPoint="",this.noErrorsRecordings=!1,this.requestId=0,this.refetchEveryMs=0,this._isFetching=!1,this._mustRefetch=!1,this.dataProvider=""}get props(){return super.props}set props(e){super.props=e}set endPoint(e){this._endPoint=e,this.isConnected&&this._fetchData()}get endPoint(){return this._endPoint}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 ae(this.getApiConfiguration()),!this.api)||(this.dispatchEvent(new CustomEvent("loading",{detail:this})),this.getAttribute("localStorage")==="enabled"&&await E.getInstance().isLocalStrorageReady,!this.isConnected))return;const e=E.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 n=null;try{n=await this.api.get(this.endPoint||this.dataProvider||"",e)}catch{}if(this.handleEndFetching(),this.fetchedData=n,this.api.lastResult&&!this.api.lastResult.ok&&(this.noErrorsRecordings||qa.add(this),Ka(this.api.lastResult)),!!this.isConnected){if(n)n._sonic_http_response_&&!n._sonic_http_response_.ok&&Object.keys(n).length===1&&L.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=n._sonic_http_response_,c=this.key.split(".");n=ot.traverse(n,c,this.hasAttribute("preserveOtherKeys")),n&&ot.isObject(n)&&l&&(n._sonic_http_response_=l)}this.props=n,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(),Ni.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"),Ni.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 e=parseFloat(this.getAttribute("lazyBoundsRatio")||"1"),o={root:null,rootMargin:Math.max(window.innerWidth*e,window.innerHeight*e)+"px",threshold:.9};this.iObserver=new IntersectionObserver(c=>this.onIntersection(c),o);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(e){for(const o of e)if(o.isIntersecting&&this.isFirstLoad){this._fetchData(),this.lazyLoadPlaceHolder?.remove(),this.lazyLoadPlaceHolder=void 0,this.iObserver?.disconnect();break}}}return ms([a()],i.prototype,"noErrorsRecordings",2),ms([a()],i.prototype,"props",1),ms([a({type:String})],i.prototype,"endPoint",1),ms([a()],i.prototype,"requestId",2),ms([a({type:Number})],i.prototype,"refetchEveryMs",2),i};var Ya=Object.defineProperty,Ga=Object.getOwnPropertyDescriptor,ke=(s,t,i,r)=>{for(var e=r>1?void 0:r?Ga(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&Ya(t,i,e),e};const Gs=s=>{class t extends s{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 e=this.getFormPublisher();e&&(e.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 ke([a()],t.prototype,"forceAutoFill",2),ke([a({type:String})],t.prototype,"type",1),ke([a()],t.prototype,"description",1),ke([a()],t.prototype,"label",1),ke([a({type:String,reflect:!0})],t.prototype,"status",2),ke([a({type:Number})],t.prototype,"tabindex",2),ke([a({type:String})],t.prototype,"autocomplete",2),t},io=ji,Za=Ei,ro=He,oo=Gs,ce=st,Ri=ls;window["concorde-mixins"]=window["concorde-mixins"]||{},window["concorde-mixins"]={Fetcher:io,FormCheckable:Za,FormElement:ro,FormInput:oo,Subscriber:ce,TemplatesContainer:Ri};/**
1020
+ </div>`:k}static removeAll(){if(L.delegateToasts){L.handleExistingToastDelegation(),window.parent.postMessage({type:"removeAllToasts"},"*");return}const t=L.getInstance();t&&(t.toasts=t.toasts.filter(i=>i.ghost))}static removeItemsByStatus(t){if(L.delegateToasts){L.handleExistingToastDelegation(),window.parent.postMessage({type:"removeItemsByStatus",status:t},"*");return}const i=L.getInstance();i&&(i.toasts=i.toasts.filter(r=>r.status!==t))}static removeTemporaryItems(){if(L.delegateToasts){L.handleExistingToastDelegation(),window.parent.postMessage({type:"removeTemporaryItems"},"*");return}const t=L.getInstance();t&&(t.toasts=t.toasts.filter(i=>i.preserve))}static getInstance(){return L.instance||(L.instance=document.createElement("sonic-toast"),Dt.getPopContainer().prepend(L.instance)),L.instance}static add(t){if(L.delegateToasts){L.handleExistingToastDelegation(),window.parent.postMessage({type:"addToast",toast:t},"*");return}const i=L.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(i?.toasts.length){const l={...o};for(const c of i.toasts){const h={...c};if(l.id=h.id=0,ot.shallowEqual(l,h))return null}}return i&&(i.toasts=[...i.toasts,o]),o}static handleExistingToastDelegation(){if(!this.delegateToasts)return;const t=L.getInstance();window.parent.postMessage({type:"addToasts",toasts:t.toasts},"*"),t.toasts=[]}static removeItem(t){if(L.delegateToasts){L.handleExistingToastDelegation(),window.parent.postMessage({type:"removeToast",toast:t},"*");return}const i=L.getInstance();i&&i.removeItem(t)}removeItem(t){t&&(this.toasts=this.toasts.filter(i=>(i={...i},delete i.id,!ot.shallowEqual(i,t,!1))))}};L.delegateToasts=!1,nn([a({type:Array})],L.prototype,"toasts",2),L=nn([C(Va)],L),typeof window<"u"&&(window[Ls+"Toast"]=window[Ls+"Toast"]||L);function Ba(){const s=i=>{i.data.type=="querySonicToastAvailability"&&i.source.postMessage({type:"sonicToastAvailable"},"*"),i.data.type=="removeItemsByStatus"&&L.removeItemsByStatus(i.data.status),i.data.type=="removeTemporaryItems"&&L.removeTemporaryItems(),i.data.type=="sonicToastAvailable"&&(L.delegateToasts=!0,L.handleExistingToastDelegation()),i.data.type=="addToasts"&&(L.getInstance().toasts=[...L.getInstance().toasts,...i.data.toasts]),i.data.type=="removeAllToasts"&&L.removeAll(),i.data.type=="removeToast"&&L.removeItem(i.data.toast),i.data.type=="addToast"&&L.add(i.data.toast)},t=window.parent!=window;if(window.addEventListener("message",s,!1),t&&window.parent.postMessage({type:"querySonicToastAvailability"},"*"),!t)for(const i of document.querySelectorAll("iframe"))i.contentWindow?.postMessage({type:"sonicToastAvailable"},"*")}Ba();var Ha=Object.defineProperty,qa=Object.getOwnPropertyDescriptor,gs=(s,t,i,r)=>{for(var e=r>1?void 0:r?qa(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&Ha(t,i,e),e};const Wa=new Set,Ka=new Set,Ya=s=>{for(const t of Ka)t(s)},zi=new Set;let Ui=0;mi(async()=>{Ui++;const s=Ui,t=Array.from(zi);for(;t.length>0;){if(s!=Ui)return;const i=t.splice(0,4);await Promise.all(i.map(r=>r.refetch()))}});const Vi=(s,t)=>{class i extends s{constructor(...e){super(),this.api=null,this.key="",this.isFirstLoad=!0,this.isLoading=!1,this.iObserver=null,this.isFetchEnabled=!0,this.fetchedData=null,this._endPoint="",this.noErrorsRecordings=!1,this.requestId=0,this.refetchEveryMs=0,this._isFetching=!1,this._mustRefetch=!1,this.dataProvider=""}get props(){return super.props}set props(e){super.props=e}set endPoint(e){this._endPoint=e,this.isConnected&&this._fetchData()}get endPoint(){return this._endPoint}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 ce(this.getApiConfiguration()),!this.api)||(this.dispatchEvent(new CustomEvent("loading",{detail:this})),this.getAttribute("localStorage")==="enabled"&&await E.getInstance().isLocalStrorageReady,!this.isConnected))return;const e=E.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||"",e)}catch{}if(this.handleEndFetching(),this.fetchedData=o,this.api.lastResult&&!this.api.lastResult.ok&&(this.noErrorsRecordings||Wa.add(this),Ya(this.api.lastResult)),!!this.isConnected){if(o)o._sonic_http_response_&&!o._sonic_http_response_.ok&&Object.keys(o).length===1&&L.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(),zi.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"),zi.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 e=parseFloat(this.getAttribute("lazyBoundsRatio")||"1"),n={root:null,rootMargin:Math.max(window.innerWidth*e,window.innerHeight*e)+"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(e){for(const n of e)if(n.isIntersecting&&this.isFirstLoad){this._fetchData(),this.lazyLoadPlaceHolder?.remove(),this.lazyLoadPlaceHolder=void 0,this.iObserver?.disconnect();break}}}return gs([a()],i.prototype,"noErrorsRecordings",2),gs([a()],i.prototype,"props",1),gs([a({type:String})],i.prototype,"endPoint",1),gs([a()],i.prototype,"requestId",2),gs([a({type:Number})],i.prototype,"refetchEveryMs",2),i};var Ga=Object.defineProperty,Za=Object.getOwnPropertyDescriptor,De=(s,t,i,r)=>{for(var e=r>1?void 0:r?Za(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&Ga(t,i,e),e};const Zs=s=>{class t extends s{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 e=this.getFormPublisher();e&&(e.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 De([a()],t.prototype,"forceAutoFill",2),De([a({type:String})],t.prototype,"type",1),De([a()],t.prototype,"description",1),De([a()],t.prototype,"label",1),De([a({type:String,reflect:!0})],t.prototype,"status",2),De([a({type:Number})],t.prototype,"tabindex",2),De([a({type:String})],t.prototype,"autocomplete",2),t},on=Vi,Xa=Mi,an=qe,ln=Zs,de=it,Bi=cs;window["concorde-mixins"]=window["concorde-mixins"]||{},window["concorde-mixins"]={Fetcher:on,FormCheckable:Xa,FormElement:an,FormInput:ln,Subscriber:de,TemplatesContainer:Bi};/**
1021
1021
  * @license
1022
1022
  * Copyright 2020 Google LLC
1023
1023
  * SPDX-License-Identifier: BSD-3-Clause
1024
- */const Vt=ne(class extends Ve{constructor(s){if(super(s),s.type!==$e.CHILD)throw Error("templateContent can only be used in child bindings")}render(s){return this.vt===s?Pt:(this.vt=s,document.importNode(s.content,!0))}});var Xa=Object.defineProperty,Qa=Object.getOwnPropertyDescriptor,no=(s,t,i,r)=>{for(var e=r>1?void 0:r?Qa(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&Xa(t,i,e),e};const Ja="sonic-fetch";let Zs=class extends ji(st(Ri(P))){renderLoader(){if(!(this.isLoading&&this.loader!==void 0))return D;const s=this.loader===!0||this.loader===""?"fixed":this.loader;return g`<sonic-loader mode=${s}></sonic-loader>`}renderSkeleton(){const s=this.templateParts.skeleton;return this.isLoading&&s?Vt(s):D}render(){return g`
1024
+ */const qt=le(class extends Be{constructor(s){if(super(s),s.type!==Ae.CHILD)throw Error("templateContent can only be used in child bindings")}render(s){return this.vt===s?At:(this.vt=s,document.importNode(s.content,!0))}});var Qa=Object.defineProperty,Ja=Object.getOwnPropertyDescriptor,cn=(s,t,i,r)=>{for(var e=r>1?void 0:r?Ja(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&Qa(t,i,e),e};const tl="sonic-fetch";let Xs=class extends Vi(it(Bi(P))){renderLoader(){if(!(this.isLoading&&this.loader!==void 0))return k;const s=this.loader===!0||this.loader===""?"fixed":this.loader;return g`<sonic-loader mode=${s}></sonic-loader>`}renderSkeleton(){const s=this.templateParts.skeleton;return this.isLoading&&s?qt(s):k}render(){return g`
1025
1025
  ${this.renderSkeleton()} ${this.renderLoader()}
1026
- ${this.isLoading?D:g`<slot></slot>`}
1027
- `}};Zs.styles=[S`
1026
+ ${this.isLoading?k:g`<slot></slot>`}
1027
+ `}};Xs.styles=[S`
1028
1028
  :host {
1029
1029
  display: contents;
1030
1030
  }
1031
- `],no([a()],Zs.prototype,"loader",2),Zs=no([C(Ja)],Zs);var tl=Object.defineProperty,el=Object.getOwnPropertyDescriptor,ao=(s,t,i,r)=>{for(var e=r>1?void 0:r?el(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&tl(t,i,e),e};const sl="sonic-if";let Xs=class extends P{constructor(){super(...arguments),this.condition=!1}render(){return this.condition?g` <slot></slot> `:D}};Xs.styles=S`
1031
+ `],cn([a()],Xs.prototype,"loader",2),Xs=cn([C(tl)],Xs);var el=Object.defineProperty,sl=Object.getOwnPropertyDescriptor,hn=(s,t,i,r)=>{for(var e=r>1?void 0:r?sl(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&el(t,i,e),e};const il="sonic-if";let Qs=class extends P{constructor(){super(...arguments),this.condition=!1}render(){return this.condition?g` <slot></slot> `:k}};Qs.styles=S`
1032
1032
  :host {
1033
1033
  display: contents;
1034
1034
  }
1035
- `,ao([a({type:Boolean})],Xs.prototype,"condition",2),Xs=ao([C(sl)],Xs);const il=S`
1035
+ `,hn([a({type:Boolean})],Qs.prototype,"condition",2),Qs=hn([C(il)],Qs);const rl=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
- `,rl=S`
1102
+ `,nl=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 ol=Object.defineProperty,nl=Object.getOwnPropertyDescriptor,zi=(s,t,i,r)=>{for(var e=r>1?void 0:r?nl(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&ol(t,i,e),e};const al="sonic-loader";let at=class extends P{constructor(){super(...arguments),this.mode="fixed",this.noDelay=!1}static show(s){at.loader||(at.loader=document.createElement("sonic-loader"));const t=at.loader;s||(s={}),s.mode&&t.setAttribute("mode",s.mode),s.noDelay&&t.setAttribute("noDelay",""),s.container||(s.container=St.getPopContainer(),s.mode="fixed"),s.container.appendChild(t),at.callCounter++}static hide(){at.callCounter--,!(at.callCounter>0)&&at.loader&&at.loader.remove()}render(){return g`<div
1155
+ `;var ol=Object.defineProperty,al=Object.getOwnPropertyDescriptor,Hi=(s,t,i,r)=>{for(var e=r>1?void 0:r?al(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&ol(t,i,e),e};const ll="sonic-loader";let lt=class extends P{constructor(){super(...arguments),this.mode="fixed",this.noDelay=!1}static show(s){lt.loader||(lt.loader=document.createElement("sonic-loader"));const t=lt.loader;s||(s={}),s.mode&&t.setAttribute("mode",s.mode),s.noDelay&&t.setAttribute("noDelay",""),s.container||(s.container=Dt.getPopContainer(),s.mode="fixed"),s.container.appendChild(t),lt.callCounter++}static hide(){lt.callCounter--,!(lt.callCounter>0)&&lt.loader&&lt.loader.remove()}render(){return g`<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>`}};at.styles=[il,rl,S`
1162
+ </div>`}};lt.styles=[rl,nl,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
- `],at.callCounter=0,zi([a({type:String})],at.prototype,"mode",2),zi([a({type:Boolean})],at.prototype,"noDelay",2),at=zi([C(al)],at);var ll=Object.getOwnPropertyDescriptor,cl=(s,t,i,r)=>{for(var e=r>1?void 0:r?ll(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=n(e)||e);return e};const hl="sonic-subscriber";let lo=class extends st(P){constructor(){super(...arguments),this.noAutofill=!0}connectedCallback(){this.noShadowDom="",super.connectedCallback()}updated(s){super.updated(s),this.children.length==0?this.style.display="none":this.style.display="contents"}render(){return g`<slot></slot> `}};lo=cl([C(hl)],lo);var dl=Object.defineProperty,ul=Object.getOwnPropertyDescriptor,Mt=(s,t,i,r)=>{for(var e=r>1?void 0:r?ul(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&dl(t,i,e),e};const pl="sonic-list";let At=class extends ji(st(ls(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(s){typeof s!="function"&&s!==void 0||(this._items=s,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 g`<sonic-loader mode=${t}></sonic-loader>`}renderSkeleton(){if(this.skeleton)return this.skeleton();const s=this.templateParts.skeleton;return this.isLoading&&s?Vt(s):D}renderSeparator(){if(this.separator)return this.separator();const s=this.templateParts.separator;return s?Vt(s):D}renderLoadingState(){return g`${this.renderSkeleton()} ${this.renderLoader()} `}renderNoResultState(){return g` <div
1190
+ `],lt.callCounter=0,Hi([a({type:String})],lt.prototype,"mode",2),Hi([a({type:Boolean})],lt.prototype,"noDelay",2),lt=Hi([C(ll)],lt);var cl=Object.getOwnPropertyDescriptor,hl=(s,t,i,r)=>{for(var e=r>1?void 0:r?cl(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=o(e)||e);return e};const dl="sonic-subscriber";let dn=class extends it(P){constructor(){super(...arguments),this.noAutofill=!0}connectedCallback(){this.noShadowDom="",super.connectedCallback()}updated(s){super.updated(s),this.children.length==0?this.style.display="none":this.style.display="contents"}render(){return g`<slot></slot> `}};dn=hl([C(dl)],dn);var ul=Object.defineProperty,pl=Object.getOwnPropertyDescriptor,Rt=(s,t,i,r)=>{for(var e=r>1?void 0:r?pl(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&ul(t,i,e),e};const fl="sonic-list";let Ot=class extends Vi(it(cs(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(s){typeof s!="function"&&s!==void 0||(this._items=s,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 g`<sonic-loader mode=${t}></sonic-loader>`}renderSkeleton(){if(this.skeleton)return this.skeleton();const s=this.templateParts.skeleton;return this.isLoading&&s?qt(s):k}renderSeparator(){if(this.separator)return this.separator();const s=this.templateParts.separator;return s?qt(s):k}renderLoadingState(){return g`${this.renderSkeleton()} ${this.renderLoader()} `}renderNoResultState(){return g` <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 s=this.props;if(s==null)return null;const t=s._sonic_http_response_,i=this.hasAttribute("extractValues");return Array.isArray(s)||(i?s=Object.entries(s).map(([r,e])=>({key:r,value:e})):ot.isObject(s)&&Object.keys(s).length>0&&(!t||t.ok)?s=[s]:s=[]),s=s.filter(r=>r!=null),t&&(s._sonic_http_response_=t),s}updated(s){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(s)}getAllRenderableElements(s){let t=[];function i(r){if(r.nodeType===Node.ELEMENT_NODE){const e=r.getBoundingClientRect();(e.width>0||e.height>0)&&t.push(r),r.childNodes.forEach(i),r.shadowRoot&&r.shadowRoot.childNodes.forEach(i)}}return i(s),t}getDisplayContentsSize(s){const t=this.getAllRenderableElements(s);if(t.length===0)return{width:0,height:0};const i=t.map(l=>l.getBoundingClientRect()),r=Math.min(...i.map(l=>l.left)),e=Math.max(...i.map(l=>l.right)),o=Math.min(...i.map(l=>l.top)),n=Math.max(...i.map(l=>l.bottom));return{width:e-r,height:n-o}}render(){return g`
1201
+ </div>`}formatProps(){let s=this.props;if(s==null)return null;const t=s._sonic_http_response_,i=this.hasAttribute("extractValues");return Array.isArray(s)||(i?s=Object.entries(s).map(([r,e])=>({key:r,value:e})):ot.isObject(s)&&Object.keys(s).length>0&&(!t||t.ok)?s=[s]:s=[]),s=s.filter(r=>r!=null),t&&(s._sonic_http_response_=t),s}updated(s){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(s)}getAllRenderableElements(s){let t=[];function i(r){if(r.nodeType===Node.ELEMENT_NODE){const e=r.getBoundingClientRect();(e.width>0||e.height>0)&&t.push(r),r.childNodes.forEach(i),r.shadowRoot&&r.shadowRoot.childNodes.forEach(i)}}return i(s),t}getDisplayContentsSize(s){const t=this.getAllRenderableElements(s);if(t.length===0)return{width:0,height:0};const i=t.map(l=>l.getBoundingClientRect()),r=Math.min(...i.map(l=>l.left)),e=Math.max(...i.map(l=>l.right)),n=Math.min(...i.map(l=>l.top)),o=Math.max(...i.map(l=>l.bottom));return{width:e-r,height:o-n}}render(){return g`
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/${i}"
1211
1211
  >
1212
1212
  ${this.items(s,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 g`<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 Vt(this.templateParts["no-items"])}const e=this.templateList.length;let o=-1;const n=this.hasAttribute("extractValues"),l=this.renderSeparator(),c=r?.length||0,h=r?.slice(this.offset,this.offset+this.limit);return g`
1214
- ${h?.map((p,d)=>{if(p==null)return D;let f=d,_=null;if(typeof p=="object"&&!Array.isArray(p)){n&&(f=p?.key);const b=p[this.templateKey];b&&typeof b=="string"&&(_=this.templateParts[b])}if(f=="_sonic_http_response_"||typeof f!="string"&&typeof f!="number")return D;const y=d>=c-1,m=d%2,v=this.publisher[f],A={key:f,even:m==0,odd:m==1,onlyChild:c==1,firstChild:d==0,lastChild:y};v._key_=f+"",v._metadata_={...v._metadata_.get(),...A};const u=this.handleProgrammaticTemplates(p,A,f);return u?g`${u}${y?D:l}`:(o++,_&&(o=-1),g`
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 g`<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 qt(this.templateParts["no-items"])}const e=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 g`
1214
+ ${h?.map((u,d)=>{if(u==null)return k;let p=d,w=null;if(typeof u=="object"&&!Array.isArray(u)){o&&(p=u?.key);const b=u[this.templateKey];b&&typeof b=="string"&&(w=this.templateParts[b])}if(p=="_sonic_http_response_"||typeof p!="string"&&typeof p!="number")return k;const v=d>=c-1,m=d%2,y=this.publisher[p],D={key:p,even:m==0,odd:m==1,onlyChild:c==1,firstChild:d==0,lastChild:v};y._key_=p+"",y._metadata_={...y._metadata_.get(),...D};const f=this.handleProgrammaticTemplates(u,D,p);return f?g`${f}${v?k:l}`:(n++,w&&(n=-1),g`
1215
1215
  <sonic-subscriber
1216
1216
  ?debug=${this.defferedDebug===!0}
1217
- .bindPublisher=${function(){return v}}
1217
+ .bindPublisher=${function(){return y}}
1218
1218
  .propertyMap?=${this.itemPropertyMap}
1219
- dataProvider="${this.dataProvider}/list-item/${f}"
1219
+ dataProvider="${this.dataProvider}/list-item/${p}"
1220
1220
  >
1221
- ${Vt(_||this.templateList[o%e])}
1221
+ ${qt(w||this.templateList[n%e])}
1222
1222
  </sonic-subscriber>
1223
- ${y?D:l}
1223
+ ${v?k:l}
1224
1224
  `)})}
1225
- `}};Mt([a({type:Object})],At.prototype,"itemPropertyMap",2),Mt([a({type:String})],At.prototype,"templateKey",2),Mt([a({type:String})],At.prototype,"idKey",2),Mt([a()],At.prototype,"loader",2),Mt([a()],At.prototype,"limit",2),Mt([a()],At.prototype,"offset",2),Mt([a({type:Function,attribute:!1})],At.prototype,"items",1),Mt([a({type:Function,attribute:!1})],At.prototype,"noItems",2),Mt([a({type:Function,attribute:!1})],At.prototype,"skeleton",2),Mt([a({type:Function,attribute:!1})],At.prototype,"separator",2),At=Mt([C(pl)],At);/**
1225
+ `}};Rt([a({type:Object})],Ot.prototype,"itemPropertyMap",2),Rt([a({type:String})],Ot.prototype,"templateKey",2),Rt([a({type:String})],Ot.prototype,"idKey",2),Rt([a()],Ot.prototype,"loader",2),Rt([a()],Ot.prototype,"limit",2),Rt([a()],Ot.prototype,"offset",2),Rt([a({type:Function,attribute:!1})],Ot.prototype,"items",1),Rt([a({type:Function,attribute:!1})],Ot.prototype,"noItems",2),Rt([a({type:Function,attribute:!1})],Ot.prototype,"skeleton",2),Rt([a({type:Function,attribute:!1})],Ot.prototype,"separator",2),Ot=Rt([C(fl)],Ot);/**
1226
1226
  * @license
1227
1227
  * Copyright 2021 Google LLC
1228
1228
  * SPDX-License-Identifier: BSD-3-Clause
1229
- */function*co(s,t){if(s!==void 0){let i=0;for(const r of s)yield t(r,i++)}}var fl=Object.defineProperty,bl=Object.getOwnPropertyDescriptor,lt=(s,t,i,r)=>{for(var e=r>1?void 0:r?bl(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&fl(t,i,e),e};const ml="sonic-queue";let tt=class extends st(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 i=new URLSearchParams(t.join("?")),r=this.filterPublisher?.get(),e=this.filteredFields.split(" ");for(const n in r){let l=r[n];Array.isArray(l)&&(l=l.filter(c=>c!==null)),!(this.filteredFields&&e.includes(n)||l==null||l.toString()==="")&&i.set(n,r[n].toString())}const o=i.toString();if(!(o==this.searchHash&&!this.isFirstRequest)){this.searchHash=o;for(const n of this.listDataProviders)E.getInstance().delete(n);this.listDataProviders=[],clearTimeout(this.filterTimeoutId),this.filterTimeoutId=setTimeout(async()=>{const n=this.resultCount;this.props=null,this.requestId++,this.resultCount=n,await E.getInstance().isLocalStrorageReady,window.requestAnimationFrame(()=>this.next())},this.isFirstRequest?0:this.filterTimeoutMs),this.isFirstRequest=!1}},this.dataProviderExpression="",this.invalidateOnPageShow=!1,this.idKey="id",this.listDataProviders=[],this.nextHadEvent=!1,this.storedScrollY=0,this.storedScrollX=0}disconnectedCallback(){for(const s of this.listDataProviders)E.getInstance().delete(s),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.publisher.set({}),super.disconnectedCallback()}async connectedCallback(){this.instanceId=tt.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=le.getAncestorAttributeValue(this.parentElement,"dataProvider")||""),this.storeScrollPosition(),super.connectedCallback(),this.publisher.set({}),this.key=this.getAttribute("key"),await E.getInstance().isLocalStrorageReady,this.templates||(this.templates=Array.from(this.querySelectorAll("template"))),this.lastRequestTime=new Date().getTime(),this.configFilter()}configFilter(){const s=this.getAncestorAttributeValue("dataFilterProvider");if(!s){this.next();return}this.filterPublisher=E.getInstance().get(s),this.filterPublisher?.onInternalMutation(this.updateFilteredContent)}storeScrollPosition(){this.isSafari()&&(this.storedScrollX=window.scrollX,this.storedScrollY=window.scrollY)}isSafari(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}updated(s){this.isSafari()&&((Math.abs(this.storedScrollX-window.scrollX)>10||Math.abs(this.storedScrollY-window.scrollY)>10)&&window.scrollTo(this.storedScrollX,this.storedScrollY),window.requestAnimationFrame(()=>{(Math.abs(this.storedScrollX-window.scrollX)>10||Math.abs(this.storedScrollY-window.scrollY)>10)&&window.scrollTo(this.storedScrollX,this.storedScrollY)})),super.updated(s)}resetDuration(){this.lastRequestTime=new Date().getTime()}next(s){let t=this.offset;const r=new Date().getTime()-this.lastRequestTime;if(!this.nextHadEvent&&s&&(this.publisher.resultCount=0,this.resultCount=0),this.nextHadEvent=!!s,s){if(this.publisher.lastFetchedData=s.detail.fetchedData,s.detail.requestId<this.requestId)return;if(this.resultCount+=s.detail.props?.length||0,!s.detail.isFirstLoad||!s.detail.props?.length||this.dataProviderExpression.indexOf("$offset")==-1){this.publisher.resultCount=this.resultCount;return}}if(Array.isArray(this.props)){const d=this.props,f=d[d.length-1];t=parseInt(f.offset.toString())+parseInt(f.limit.toString())}else{const d=[];d.resultCount=this.resultCount,d.lastFetchedData=s?.detail.fetchedData||{},this.props=d}r>0&&s&&!this.localStorage&&(this.limit=Math.round(this.limit/r*this.targetRequestDuration)),this.limit<1&&(this.limit=1),this.limit>15&&(this.limit=15);let e=this.dataProviderExpression.replace("$offset",t+"").replace("$limit",this.limit+"");const o=e.split("?");let n=o.shift();const l=new URLSearchParams(o.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()),n=n+"?"+l.toString(),e=e+"_item_from_queue_"+this.instanceId,this.listDataProviders.push(e);const p=[...this.props,{id:l.toString()+"/"+this.props.length,dataProvider:e,endPoint:n,offset:t,limit:this.limit}];p.resultCount=this.resultCount,p.lastFetchedData=s?.detail.fetchedData||{},this.props=p,this.lastRequestTime=new Date().getTime()}render(){if(this.storeScrollPosition(),!Array.isArray(this.props))return D;let s=!this.noLazyload;return this.props.length==1&&(s=!1),this.style.display="block",g`
1230
- ${co(this.props,(t,i)=>{const r=i==0?this.templates:this.templates?.filter(e=>e.getAttribute("data-value")!="no-item");return g`
1229
+ */function*un(s,t){if(s!==void 0){let i=0;for(const r of s)yield t(r,i++)}}var bl=Object.defineProperty,ml=Object.getOwnPropertyDescriptor,ct=(s,t,i,r)=>{for(var e=r>1?void 0:r?ml(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&bl(t,i,e),e};const gl="sonic-queue";let et=class extends it(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 i=new URLSearchParams(t.join("?")),r=this.filterPublisher?.get(),e=this.filteredFields.split(" ");for(const o in r){let l=r[o];Array.isArray(l)&&(l=l.filter(c=>c!==null)),!(this.filteredFields&&e.includes(o)||l==null||l.toString()==="")&&i.set(o,r[o].toString())}const n=i.toString();if(!(n==this.searchHash&&!this.isFirstRequest)){this.searchHash=n;for(const o of this.listDataProviders)E.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 E.getInstance().isLocalStrorageReady,window.requestAnimationFrame(()=>this.next())},this.isFirstRequest?0:this.filterTimeoutMs),this.isFirstRequest=!1}},this.dataProviderExpression="",this.invalidateOnPageShow=!1,this.idKey="id",this.listDataProviders=[],this.nextHadEvent=!1,this.storedScrollY=0,this.storedScrollX=0}disconnectedCallback(){for(const s of this.listDataProviders)E.getInstance().delete(s),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.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=he.getAncestorAttributeValue(this.parentElement,"dataProvider")||""),this.storeScrollPosition(),super.connectedCallback(),this.publisher.set({}),this.key=this.getAttribute("key"),await E.getInstance().isLocalStrorageReady,this.templates||(this.templates=Array.from(this.querySelectorAll("template"))),this.lastRequestTime=new Date().getTime(),this.configFilter()}configFilter(){const s=this.getAncestorAttributeValue("dataFilterProvider");if(!s){this.next();return}this.filterPublisher=E.getInstance().get(s),this.filterPublisher?.onInternalMutation(this.updateFilteredContent)}storeScrollPosition(){this.isSafari()&&(this.storedScrollX=window.scrollX,this.storedScrollY=window.scrollY)}isSafari(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}updated(s){this.isSafari()&&((Math.abs(this.storedScrollX-window.scrollX)>10||Math.abs(this.storedScrollY-window.scrollY)>10)&&window.scrollTo(this.storedScrollX,this.storedScrollY),window.requestAnimationFrame(()=>{(Math.abs(this.storedScrollX-window.scrollX)>10||Math.abs(this.storedScrollY-window.scrollY)>10)&&window.scrollTo(this.storedScrollX,this.storedScrollY)})),super.updated(s)}resetDuration(){this.lastRequestTime=new Date().getTime()}next(s){let t=this.offset;const r=new Date().getTime()-this.lastRequestTime;if(!this.nextHadEvent&&s&&(this.publisher.resultCount=0,this.resultCount=0),this.nextHadEvent=!!s,s){if(this.publisher.lastFetchedData=s.detail.fetchedData,s.detail.requestId<this.requestId)return;if(this.resultCount+=s.detail.props?.length||0,!s.detail.isFirstLoad||!s.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=s?.detail.fetchedData||{},this.props=d}r>0&&s&&!this.localStorage&&(this.limit=Math.round(this.limit/r*this.targetRequestDuration)),this.limit<1&&(this.limit=1),this.limit>15&&(this.limit=15);let e=this.dataProviderExpression.replace("$offset",t+"").replace("$limit",this.limit+"");const n=e.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(),e=e+"_item_from_queue_"+this.instanceId,this.listDataProviders.push(e);const u=[...this.props,{id:l.toString()+"/"+this.props.length,dataProvider:e,endPoint:o,offset:t,limit:this.limit}];u.resultCount=this.resultCount,u.lastFetchedData=s?.detail.fetchedData||{},this.props=u,this.lastRequestTime=new Date().getTime()}render(){if(this.storeScrollPosition(),!Array.isArray(this.props))return k;let s=!this.noLazyload;return this.props.length==1&&(s=!1),this.style.display="block",g`
1230
+ ${un(this.props,(t,i)=>{const r=i==0?this.templates:this.templates?.filter(e=>e.getAttribute("data-value")!="no-item");return g`
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
- `}};tt.instanceCounter=0,lt([a({type:Array})],tt.prototype,"templates",2),lt([a({type:Function,attribute:!1})],tt.prototype,"items",2),lt([a({type:Function,attribute:!1})],tt.prototype,"noItems",2),lt([a({type:Function,attribute:!1})],tt.prototype,"skeleton",2),lt([a({type:Object})],tt.prototype,"itemPropertyMap",2),lt([a()],tt.prototype,"cache",2),lt([a()],tt.prototype,"targetRequestDuration",2),lt([a()],tt.prototype,"limit",2),lt([a()],tt.prototype,"lazyBoundsRatio",2),lt([a()],tt.prototype,"offset",2),lt([a()],tt.prototype,"resultCount",2),lt([a({type:Boolean})],tt.prototype,"noLazyload",2),lt([a({type:String})],tt.prototype,"loader",2),lt([a()],tt.prototype,"filteredFields",2),lt([a({type:String})],tt.prototype,"dataProviderExpression",2),lt([a({type:Boolean})],tt.prototype,"invalidateOnPageShow",2),lt([a({type:String})],tt.prototype,"idKey",2),tt=lt([C(ml)],tt);var gl=Object.defineProperty,vl=Object.getOwnPropertyDescriptor,qe=(s,t,i,r)=>{for(var e=r>1?void 0:r?vl(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&gl(t,i,e),e};const yl="sonic-submit";let he=class extends st(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 s=>{if(this.disabled||s instanceof KeyboardEvent&&s.key!=="Enter")return;s instanceof MouseEvent&&s.stopPropagation();const t=E.getInstance().get(this.getAncestorAttributeValue("formDataProvider"));if(t.isFormValid.set(!0),t.invalidateForm(),!t.isFormValid.get())return;if(this.disabled=!0,at.show(),t.isFormValid,this.hasAttribute("native")){this.submitNativeForm(),at.hide(),this.disabled=!1;return}const r=this.getAttribute("method")?.toLocaleLowerCase()||"post",e=this.hasAttribute("sendAsFormData"),o=t.get();delete o.isFormValid;const n=this.getAncestorAttributeValue("headersDataProvider"),l=n?E.getInstance().get(n):null;let c={};l&&(c=l.get());let h=null;const p=this.getAncestorAttributeValue("dataProvider"),d=this.endPoint||p,f=async()=>{const y={...o};if(delete y.needsCaptchaValidation,delete c.needsCaptchaValidation,e)h=await this.api?.submitFormData(d,y,r,c);else switch(r){case"put":h=await this.api?.put(d,y,c);break;case"patch":h=await this.api?.patch(d,y,c);break;case"delete":h=await this.api?.delete(d,y,c);break;case"get":const b=new URLSearchParams;if(y)for(const x in y)b.append(x,y[x]);const w="?"+b.toString();h=await this.api?.get(d+w,c);break;default:h=await this.api?.post(d,y,c);break}at.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=>E.get(b).set({}));const v=this.hasAttribute("usernameKey")?this.getAttribute("usernameKey"):"username",A=this.hasAttribute("passwordKey")?this.getAttribute("passwordKey"):"password";this.api?.lastResult?.ok&&y[v]&&y[A]&&this.saveCredentials(y[v],y[A]),this.submitResultKey&&(h=ot.traverse(h,this.submitResultKey.split("."),!0));const u=this.getAncestorAttributeValue("submitResultDataProvider");u&&E.get(u).set(h),this.disabled=!1,this.dispatchEvent(new CustomEvent("submit",{detail:h,bubbles:!0,composed:!0}))},_=l?.needsCaptchaValidation.get()?l:t.needsCaptchaValidation.get()?t:null;if(_){_.captchaToken.set("request_token");const y=m=>{m!="request_token"?(f(),_.captchaToken.offAssign(y)):(at.hide(),this.disabled=!1)};_.captchaToken.onAssign(y)}else f()}}connectedCallback(){this.hasAttribute("onClick")&&this.addEventListener("click",this.submit),this.hasAttribute("onEnterKey")&&this.addEventListener("keydown",this.submit),super.connectedCallback(),this.api=new ae(this.getApiConfiguration())}submitNativeForm(){const s=le.getClosestForm(this);if(!s)return;const t=this.getAncestorAttributeValue("formDataProvider"),i={...E.get(t).get()};delete i.needsCaptchaValidation;for(const e in i){if(e=="isFormValid")continue;let o=s.querySelector('input[name="'+e+'"], select[name="'+e+'"], textarea[name="'+e+'"]');o||(o=document.createElement("input"),o.type="hidden",o.name=e,s.appendChild(o));let n=i[e];Array.isArray(n)&&(n=n.join(",")),o.type==="checkbox"||o.type==="radio"?n&&(o.checked=!0):o.value=n}const r=document.createElement("input");r.name=this.name,r.style.display="none",r.value=this.value,r.type="submit",s.appendChild(r),r&&r.click()}async saveCredentials(s,t){if("PasswordCredential"in window){const i=new window.PasswordCredential({id:s,password:t});await navigator.credentials.store(i)}}render(){return g`<div ?data-disabled=${this.disabled}><slot></slot></div>`}};he.styles=S`
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([C(gl)],et);var vl=Object.defineProperty,yl=Object.getOwnPropertyDescriptor,We=(s,t,i,r)=>{for(var e=r>1?void 0:r?yl(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&vl(t,i,e),e};const _l="sonic-submit";let ue=class extends it(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 s=>{if(this.disabled||s instanceof KeyboardEvent&&s.key!=="Enter")return;s instanceof MouseEvent&&s.stopPropagation();const t=E.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",e=this.hasAttribute("sendAsFormData"),n=t.get();delete n.isFormValid;const o=this.getAncestorAttributeValue("headersDataProvider"),l=o?E.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 v={...n};if(delete v.needsCaptchaValidation,delete c.needsCaptchaValidation,e)h=await this.api?.submitFormData(d,v,r,c);else switch(r){case"put":h=await this.api?.put(d,v,c);break;case"patch":h=await this.api?.patch(d,v,c);break;case"delete":h=await this.api?.delete(d,v,c);break;case"get":const b=new URLSearchParams;if(v)for(const _ in v)b.append(_,v[_]);const x="?"+b.toString();h=await this.api?.get(d+x,c);break;default:h=await this.api?.post(d,v,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 m=this.getAncestorAttributeValue("clearedDataOnSuccess");m&&m.split(" ").forEach(b=>E.get(b).set({}));const y=this.hasAttribute("usernameKey")?this.getAttribute("usernameKey"):"username",D=this.hasAttribute("passwordKey")?this.getAttribute("passwordKey"):"password";this.api?.lastResult?.ok&&v[y]&&v[D]&&this.saveCredentials(v[y],v[D]),this.submitResultKey&&(h=ot.traverse(h,this.submitResultKey.split("."),!0));const f=this.getAncestorAttributeValue("submitResultDataProvider");f&&E.get(f).set(h),this.disabled=!1,this.dispatchEvent(new CustomEvent("submit",{detail:h,bubbles:!0,composed:!0}))},w=l?.needsCaptchaValidation.get()?l:t.needsCaptchaValidation.get()?t:null;if(w){w.captchaToken.set("request_token");const v=m=>{m!="request_token"?(p(),w.captchaToken.offAssign(v)):(lt.hide(),this.disabled=!1)};w.captchaToken.onAssign(v)}else p()}}connectedCallback(){this.hasAttribute("onClick")&&this.addEventListener("click",this.submit),this.hasAttribute("onEnterKey")&&this.addEventListener("keydown",this.submit),super.connectedCallback(),this.api=new ce(this.getApiConfiguration())}submitNativeForm(){const s=he.getClosestForm(this);if(!s)return;const t=this.getAncestorAttributeValue("formDataProvider"),i={...E.get(t).get()};delete i.needsCaptchaValidation;for(const e in i){if(e=="isFormValid")continue;let n=s.querySelector('input[name="'+e+'"], select[name="'+e+'"], textarea[name="'+e+'"]');n||(n=document.createElement("input"),n.type="hidden",n.name=e,s.appendChild(n));let o=i[e];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",s.appendChild(r),r&&r.click()}async saveCredentials(s,t){if("PasswordCredential"in window){const i=new window.PasswordCredential({id:s,password:t});await navigator.credentials.store(i)}}render(){return g`<div ?data-disabled=${this.disabled}><slot></slot></div>`}};ue.styles=S`
1257
1257
  [data-disabled] {
1258
1258
  opacity: 0.3;
1259
1259
  pointer-events: none;
1260
1260
  user-select: none;
1261
1261
  }
1262
- `,qe([a({type:String})],he.prototype,"submitResultKey",2),qe([a({type:Boolean})],he.prototype,"disabled",2),qe([a({type:String})],he.prototype,"endPoint",2),qe([a()],he.prototype,"name",2),qe([a()],he.prototype,"value",2),he=qe([C(yl)],he);var _l=Object.defineProperty,wl=Object.getOwnPropertyDescriptor,gs=(s,t,i,r)=>{for(var e=r>1?void 0:r?wl(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&_l(t,i,e),e};const xl="sonic-router";let We=class extends ls(P){constructor(){super(...arguments),this.templateValueAttribute="data-route",this._location=document.location.href.replace(document.location.origin,"")}createRenderRoot(){return this}connectedCallback(){nt.onChange(this),super.connectedCallback()}disconnectedCallback(){nt.offChange(this),super.disconnectedCallback()}set location(s){this._location=s,this.requestUpdate()}get location(){return this._location}get cleanLocation(){const s=new URL(this.location,document.location.origin);return s.pathname+s.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 s=[];for(let[t,i]of Object.entries(this.routes)){if(t==="fallback"||!i)continue;const r=new RegExp(this.regExpBasePath+t);if(r.test(this.cleanLocation)){const e=r.exec(this.cleanLocation)||[t];e.shift(),s.push(i([...e]))}else try{const o=new Xt(this.patternBasePath+t).match(this.cleanLocation);if(o){const n=o||{};s.push(i(n))}}catch{this.cleanLocation.indexOf((this.basePath||"")+t.replace(document.location.origin,""))!=-1&&s.push(i({}))}}return s.length==0&&this.routes?.fallback&&this.isConnected&&s.push(this.routes.fallback()),s}render(){const s=this.handleroutes();if(s.length>0)return g`${s}`;const t=[];for(const i of this.templatePartsList){const r=i.getAttribute(this.templateValueAttribute)||"";if(new RegExp(this.regExpBasePath+r).test(this.cleanLocation))t.push(i);else try{new Xt(this.patternBasePath+r+"(/*)").match(this.cleanLocation)&&(i.setAttribute("mode","patternMatching"),t.push(i))}catch{this.cleanLocation.indexOf((this.basePath||"")+r.replace(document.location.origin,""))!=-1&&t.push(i)}}if(t.length==0){this.fallBackRoute&&this.isConnected&&(document.location.href=this.fallBackRoute);const i=this.templateList.find(r=>r.hasAttribute("data-fallback"));i&&t.push(i)}return g`${Ks(t,(i,r)=>r+new Date().getTime(),i=>{if(i.title&&(document.title=i.title),i.hasAttribute("dataProviderExpression")){let r="";const e=i.getAttribute("dataProviderExpression")||"";if(i.getAttribute("mode")=="patternMatching"){const o=new Xt("(/)*"+(i.getAttribute(this.templateValueAttribute)||"")+"*");r=new Xt(e).stringify(o.match(this.cleanLocation))}else{const o=new RegExp(i.getAttribute(this.templateValueAttribute)||""),n=(this.cleanLocation+"").match(o);n&&(r=n.shift()?.replace(o,e)||"")}return g`<div
1262
+ `,We([a({type:String})],ue.prototype,"submitResultKey",2),We([a({type:Boolean})],ue.prototype,"disabled",2),We([a({type:String})],ue.prototype,"endPoint",2),We([a()],ue.prototype,"name",2),We([a()],ue.prototype,"value",2),ue=We([C(_l)],ue);var wl=Object.defineProperty,xl=Object.getOwnPropertyDescriptor,vs=(s,t,i,r)=>{for(var e=r>1?void 0:r?xl(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&wl(t,i,e),e};const Pl="sonic-router";let Ke=class extends cs(P){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(s){this._location=s,this.requestUpdate()}get location(){return this._location}get cleanLocation(){const s=new URL(this.location,document.location.origin);return s.pathname+s.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 s=[];for(let[t,i]of Object.entries(this.routes)){if(t==="fallback"||!i)continue;const r=new RegExp(this.regExpBasePath+t);if(r.test(this.cleanLocation)){const e=r.exec(this.cleanLocation)||[t];e.shift(),s.push(i([...e]))}else try{const n=new Jt(this.patternBasePath+t).match(this.cleanLocation);if(n){const o=n||{};s.push(i(o))}}catch{this.cleanLocation.indexOf((this.basePath||"")+t.replace(document.location.origin,""))!=-1&&s.push(i({}))}}return s.length==0&&this.routes?.fallback&&this.isConnected&&s.push(this.routes.fallback()),s}render(){const s=this.handleroutes();if(s.length>0)return g`${s}`;const t=[];for(const i of this.templatePartsList){const r=i.getAttribute(this.templateValueAttribute)||"";if(new RegExp(this.regExpBasePath+r).test(this.cleanLocation))t.push(i);else try{new Jt(this.patternBasePath+r+"(/*)").match(this.cleanLocation)&&(i.setAttribute("mode","patternMatching"),t.push(i))}catch{this.cleanLocation.indexOf((this.basePath||"")+r.replace(document.location.origin,""))!=-1&&t.push(i)}}if(t.length==0){this.fallBackRoute&&this.isConnected&&(document.location.href=this.fallBackRoute);const i=this.templateList.find(r=>r.hasAttribute("data-fallback"));i&&t.push(i)}return g`${Ys(t,(i,r)=>r+new Date().getTime(),i=>{if(i.title&&(document.title=i.title),i.hasAttribute("dataProviderExpression")){let r="";const e=i.getAttribute("dataProviderExpression")||"";if(i.getAttribute("mode")=="patternMatching"){const n=new Jt("(/)*"+(i.getAttribute(this.templateValueAttribute)||"")+"*");r=new Jt(e).stringify(n.match(this.cleanLocation))}else{const n=new RegExp(i.getAttribute(this.templateValueAttribute)||""),o=(this.cleanLocation+"").match(n);o&&(r=o.shift()?.replace(n,e)||"")}return g`<div
1263
1263
  style="display:contents"
1264
1264
  dataProvider="${r}"
1265
1265
  >
1266
- ${Vt(i)}
1267
- </div>`}return Vt(i)})}`}};gs([a({type:String})],We.prototype,"fallBackRoute",2),gs([a({type:Object,attribute:!1})],We.prototype,"routes",2),gs([a({type:String})],We.prototype,"basePath",2),gs([a()],We.prototype,"location",1),We=gs([C(xl)],We);var Pl=Object.getOwnPropertyDescriptor,Cl=(s,t,i,r)=>{for(var e=r>1?void 0:r?Pl(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=n(e)||e);return e};const Sl="sonic-redirect";let ho=class extends st(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")){nt.changeFromComponent(this);return}if(!this.props)return;const s=this.getAttribute("onData").split("."),t=ot.traverse(this.props,s);t&&!(ot.isObject(t)&&t)&&nt.changeFromComponent(this)}};ho=Cl([C(Sl)],ho);var $l=Object.defineProperty,Al=Object.getOwnPropertyDescriptor,Qs=(s,t,i,r)=>{for(var e=r>1?void 0:r?Al(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&$l(t,i,e),e};const kl="sonic-states";let vs=class extends st(ls(P)){constructor(){super(...arguments),this.state="",this.inverted=!1,this.statePath="",this.onStateAssign=s=>{this.state=s,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 s=this.statePath.split(".");for(const t of s)this.statePublisher=this.statePublisher[t];this.statePublisher.onAssign(this.onStateAssign)}}disconnectedCallback(){this.statePath&&this.statePublisher?.offAssign(this.onStateAssign),super.disconnectedCallback()}handleStates(s){if(!this.states)return[];const t=[];for(const[i,r]of Object.entries(this.states)){if(i==="fallback"||!r)continue;const e=new RegExp(i);if(e.test(s)){const o=e.exec(s)||[i];o.shift(),t.push(r([...o]))}else try{const o=new Xt("(/)*"+i+"*");if(o.match(s)){const n=o.match(s)||{};t.push(r(n))}}catch{s.indexOf(i.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 s=this.state;(!Array.isArray(s)&&ot.isObject(s)||s===void 0)&&(s="");const t=this.handleStates(s);if(t.length>0)return g`${t}`;const i=[];for(const r of this.templatePartsList){let e=r.getAttribute(this.templateValueAttribute),o=s;if(this.inverted&&(o=e,e=s),e==""&&(e=this.inverted?".*?":"^$"),new RegExp(e).test(o+""))i.push(r),r.removeAttribute("mode");else{const l=new Xt(e);l.names.length>0&&l.match(o)&&(r.setAttribute("mode","patternMatching"),i.push(r))}}return g`${Ks(i,(r,e)=>e+new Date().getTime(),r=>{if(r?.hasAttribute("dataProviderExpression")){const e=r.getAttribute("dataProviderExpression");let o="",n=s,l=r.getAttribute(this.templateValueAttribute);if(this.inverted&&(n=l,l=s),l==""&&(l=this.inverted?"*":"^$"),r.getAttribute("mode")=="patternMatching"){const c=new Xt(l);o=new Xt(e).stringify(c.match(n))}else{const c=new RegExp(l),h=(n+"").match(c);h&&(o=h.shift()?.replace(c,e))}return g`<div
1266
+ ${qt(i)}
1267
+ </div>`}return qt(i)})}`}};vs([a({type:String})],Ke.prototype,"fallBackRoute",2),vs([a({type:Object,attribute:!1})],Ke.prototype,"routes",2),vs([a({type:String})],Ke.prototype,"basePath",2),vs([a()],Ke.prototype,"location",1),Ke=vs([C(Pl)],Ke);var Cl=Object.getOwnPropertyDescriptor,Sl=(s,t,i,r)=>{for(var e=r>1?void 0:r?Cl(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=o(e)||e);return e};const $l="sonic-redirect";let pn=class extends it(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")){at.changeFromComponent(this);return}if(!this.props)return;const s=this.getAttribute("onData").split("."),t=ot.traverse(this.props,s);t&&!(ot.isObject(t)&&t)&&at.changeFromComponent(this)}};pn=Sl([C($l)],pn);var Al=Object.defineProperty,kl=Object.getOwnPropertyDescriptor,Js=(s,t,i,r)=>{for(var e=r>1?void 0:r?kl(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&Al(t,i,e),e};const Dl="sonic-states";let ys=class extends it(cs(P)){constructor(){super(...arguments),this.state="",this.inverted=!1,this.statePath="",this.onStateAssign=s=>{this.state=s,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 s=this.statePath.split(".");for(const t of s)this.statePublisher=this.statePublisher[t];this.statePublisher.onAssign(this.onStateAssign)}}disconnectedCallback(){this.statePath&&this.statePublisher?.offAssign(this.onStateAssign),super.disconnectedCallback()}handleStates(s){if(!this.states)return[];const t=[];for(const[i,r]of Object.entries(this.states)){if(i==="fallback"||!r)continue;const e=new RegExp(i);if(e.test(s)){const n=e.exec(s)||[i];n.shift(),t.push(r([...n]))}else try{const n=new Jt("(/)*"+i+"*");if(n.match(s)){const o=n.match(s)||{};t.push(r(o))}}catch{s.indexOf(i.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 s=this.state;(!Array.isArray(s)&&ot.isObject(s)||s===void 0)&&(s="");const t=this.handleStates(s);if(t.length>0)return g`${t}`;const i=[];for(const r of this.templatePartsList){let e=r.getAttribute(this.templateValueAttribute),n=s;if(this.inverted&&(n=e,e=s),e==""&&(e=this.inverted?".*?":"^$"),new RegExp(e).test(n+""))i.push(r),r.removeAttribute("mode");else{const l=new Jt(e);l.names.length>0&&l.match(n)&&(r.setAttribute("mode","patternMatching"),i.push(r))}}return g`${Ys(i,(r,e)=>e+new Date().getTime(),r=>{if(r?.hasAttribute("dataProviderExpression")){const e=r.getAttribute("dataProviderExpression");let n="",o=s,l=r.getAttribute(this.templateValueAttribute);if(this.inverted&&(o=l,l=s),l==""&&(l=this.inverted?"*":"^$"),r.getAttribute("mode")=="patternMatching"){const c=new Jt(l);n=new Jt(e).stringify(c.match(o))}else{const c=new RegExp(l),h=(o+"").match(c);h&&(n=h.shift()?.replace(c,e))}return g`<div
1268
1268
  style="display:contents"
1269
- dataProvider="${o}"
1269
+ dataProvider="${n}"
1270
1270
  >
1271
- ${Vt(r)}
1272
- </div>`}return Vt(r)})}`}};Qs([a()],vs.prototype,"state",2),Qs([a({type:Boolean,reflect:!0})],vs.prototype,"inverted",2),Qs([a({type:Object})],vs.prototype,"states",2),vs=Qs([C(kl)],vs);var Dl=Object.getOwnPropertyDescriptor,Ol=(s,t,i,r)=>{for(var e=r>1?void 0:r?Dl(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=n(e)||e);return e};const El="sonic-scope";let uo=class extends P{createRenderRoot(){return this}render(){return g`<slot></slot>`}};uo=Ol([C(El)],uo);function Ll(s){this.__beforeConnectedCallbackCalls__||(this.__beforeConnectedCallbackCalls__=new Set),this.__beforeConnectedCallbackCalls__.add(s)}function Tl(s){this.__connectedCallbackCalls__||(this.__connectedCallbackCalls__=new Set),this.__connectedCallbackCalls__.add(s)}function Il(s){this.__disconnectedCallbackCalls__||(this.__disconnectedCallbackCalls__=new Set),this.__disconnectedCallbackCalls__.add(s)}function De(s){if(s.__is__setSubscribable__)return;s.__is__setSubscribable__=!0,s.__onBeforeConnected__=Ll,s.__onConnected__=Tl,s.__onDisconnected__=Il;const t=s.connectedCallback;s.connectedCallback=function(){this.__beforeConnectedCallbackCalls__&&this.__beforeConnectedCallbackCalls__.forEach(r=>r(this)),t?.call(this),this.__connectedCallbackCalls__&&this.__connectedCallbackCalls__.forEach(r=>r(this))};const i=s.disconnectedCallback;s.disconnectedCallback=function(){i?.call(this),this.__disconnectedCallbackCalls__&&this.__disconnectedCallbackCalls__.forEach(r=>r(this))}}function Ml(s){return s.trim().replace(/^this\./,"")}function Ui(s,t){if(!t)return;const i=t.split(".").filter(Boolean);if(i.length===0)return;let r=s;for(const e of i){if(r==null||typeof r!="object")return;r=r[e]}return r}function Nl(s,t){return!!(s==null||t?.skipEmptyPlaceholder&&s==="")}function $t(s,t,i){let r=!1;const e=(l,c)=>{const h=Ml(c),p=Ui(s,h);return Nl(p,i)?(r=!0,""):`${p}`},o=t.replace(/\$\{([^}]+)\}/g,e).replace(/\{\$([^}]+)\}/g,e).trim();if(r||!o.length)return{ready:!1,path:null};const n=o.split(".").filter(Boolean);return n.length===0||!n[0]?{ready:!1,path:null}:{ready:!0,path:o}}function Nt(s){const t=[/\$\{([^}]+)\}/g,/\{\$([^}]+)\}/g],i=new Set;for(const r of t){let e;for(;(e=r.exec(s))!==null;){const o=(e[1]||"").trim().replace(/^this\./,"");if(!o)continue;const[n]=o.split(".");n&&i.add(n)}}return Array.from(i)}function po(s){return typeof s=="object"&&s!==null&&"path"in s&&typeof s.path=="string"}const ys=new WeakMap,_s=new Set;let Ke=null;const Fl=8;function jl(s){let t=ys.get(s);return t||(t=new Map,ys.set(s,t)),t}function Rl(s,t){const i=new Set;for(const[r,e]of t){const o=Ui(s,r);Object.is(e.lastValue,o)||(e.lastValue=o,e.onChangeHandlers.forEach(n=>i.add(n)))}return i}function zl(){Ke=null;let s=0,t=!0;for(;t&&s<Fl;){t=!1,s+=1;for(const i of _s){const r=ys.get(i);if(!r||r.size===0)continue;const e=Rl(i,r);e.size!==0&&(t=!0,e.forEach(o=>o()))}}t&&console.warn("[concorde] dynamic property watch: limite de passes atteinte, boucle infinie probable"),_s.size>0&&fo()}function fo(){Ke===null&&(Ke=requestAnimationFrame(zl))}function Ul(){_s.size===0&&Ke!==null&&(cancelAnimationFrame(Ke),Ke=null)}function de(s,t,i,r,e){const o=String(r),n=jl(i);let l=n.get(o);return l||(l={lastValue:Ui(i,o),onChangeHandlers:new Set},n.set(o,l)),l.onChangeHandlers.add(e),_s.add(i),fo(),()=>{const c=ys.get(i);if(!c)return;const h=c.get(o);h&&(h.onChangeHandlers.delete(e),h.onChangeHandlers.size===0&&c.delete(o),c.size===0&&(ys.delete(i),_s.delete(i),Ul()))}}const Js={watcherStore:Symbol("__bindDynamicWatcherStore__"),hooked:Symbol("__bindDynamicWillUpdateHooked__")},bo={watcherStore:"__publishDynamicWatcherStore__",hooked:"__publishDynamicWillUpdateHooked__"},ue={watcherStore:"__getDynamicWatcherStore__",hooked:"__getDynamicWillUpdateHooked__"},mo={watcherStore:Symbol("__onAssignDynamicWatcherStore__"),hooked:Symbol("__onAssignDynamicWillUpdateHooked__")};function Bt(s){const t=s.split(".").filter(e=>e.length>0);if(t.length===0)return null;const i=t.shift()||"";if(!i)return null;let r=E.get(i);return r?(r=hs.traverse(r,t),r):null}function Vl(s,t){const i=t?.reflect??!1,r={skipEmptyPlaceholder:t?.skipEmptyPlaceholder},e=Nt(s),o=e.length>0;return function(n,l){if(!n)return;De(n);const c=`__bind_state_${l}`,h=`__bind_${l}_publisher__`,p=i?`__bind_${l}_updating_from_publisher__`:null;if(i){const d=Object.getOwnPropertyDescriptor(n,l),f=`__bind_${l}_value__`,_=`__bind_${l}_updating_from_publisher__`,y=d&&!d.get&&!d.set?d.value:void 0;Object.defineProperty(n,l,{get(){return d?.get?d.get.call(this):(!Object.prototype.hasOwnProperty.call(this,f)&&y!==void 0&&(this[f]=y),this[f])},set(m){d?.set?d.set.call(this,m):this[f]=m,!this[_]&&this[h]&&this[h].set(m)},enumerable:d?.enumerable??!0,configurable:d?.configurable??!0})}n.__onConnected__(d=>{const f=d[c]||(d[c]={cleanupWatchers:[],unsubscribePublisher:null,currentPath:null});f.unsubscribePublisher&&(f.unsubscribePublisher(),f.unsubscribePublisher=null),f.cleanupWatchers.forEach(m=>m()),f.cleanupWatchers=[],f.currentPath=null;const _=m=>{if(!m){f.unsubscribePublisher&&(f.unsubscribePublisher(),f.unsubscribePublisher=null),f.currentPath=null,d[h]=null;return}if(m===f.currentPath)return;f.unsubscribePublisher&&(f.unsubscribePublisher(),f.unsubscribePublisher=null);const v=Bt(m);if(!v){f.currentPath=null,d[h]=null;return}const A=u=>{i&&p&&(d[p]=!0),d[l]=u,i&&p&&(d[p]=!1)};v.onAssign(A),f.unsubscribePublisher=()=>{v.offAssign(A),d[h]===v&&(d[h]=null)},f.currentPath=m,d[h]=v},y=()=>{if(o){const m=$t(d,s,r);if(!m.ready){_(null);return}_(m.path);return}_(s)};if(o)for(const m of e){const v=de(Js.watcherStore,Js.hooked,d,m,()=>y());f.cleanupWatchers.push(v)}y()}),n.__onDisconnected__(d=>{const f=d[c];f&&(f.unsubscribePublisher&&(f.unsubscribePublisher(),f.unsubscribePublisher=null),f.cleanupWatchers.forEach(_=>_()),f.cleanupWatchers=[],f.currentPath=null,d[h]=null)})}}function go(s,t){const i=po(s)?s.path:s;return Vl(i,t)}function vo(s,t){const i=s.path,r={skipEmptyPlaceholder:t?.skipEmptyPlaceholder},e=Nt(i);return function(o,n){De(o);const l=`__publish_${n}_publisher__`,c=`__publish_${n}_value__`,h=Object.getOwnPropertyDescriptor(o,n),p=h&&!h.get&&!h.set?h.value:void 0;Object.defineProperty(o,n,{get(){return h?.get?h.get.call(this):(!Object.prototype.hasOwnProperty.call(this,c)&&p!==void 0&&(this[c]=p),this[c])},set(d){h?.set?h.set.call(this,d):this[c]=d;const f=this[l];f&&f.set(d)},enumerable:h?.enumerable??!0,configurable:h?.configurable??!0}),o.__onConnected__(d=>{const f=d,_=`__publish_state_${n}`,y=f[_]||(f[_]={cleanupWatchers:[]}),m=()=>{let v;if(e.length){const u=$t(d,i,r);v=u.ready?u.path:null}else v=i;const A=v?Bt(v):void 0;if(f[l]=A??null,A&&n in d){const u=f[n];u!==void 0&&A.set(u)}};if(y.cleanupWatchers.forEach(v=>v()),y.cleanupWatchers=[],e.length)for(const v of e)y.cleanupWatchers.push(de(bo.watcherStore,bo.hooked,f,v,m));m()}),o.__onDisconnected__(d=>{const f=d,_=`__publish_state_${n}`,y=f[_];y?.cleanupWatchers&&y.cleanupWatchers.forEach(m=>m()),f[l]=void 0})}}function yo(s){return go(s)}const Bl={nullish:s=>s==null,emptyString:s=>s==="",emptyObject:s=>typeof s=="object"&&s!==null&&!Array.isArray(s)&&Object.keys(s).length===0,emptyArray:s=>Array.isArray(s)&&s.length===0};function Hl(s,t){return t.some(i=>Bl[i](s))}function ql(s,t,i){if(!i.dispatchWhenUndefined&&s.slice(0,t).filter(e=>e!=null).length!==t)return!1;if(i.skip&&i.skip.length>0){for(let r=0;r<t;r++)if(Hl(s[r],i.skip))return!1}return!0}function Wl(...s){return _o({},s)}function _o(s,t){const i=t.map(e=>{const o=Nt(e);return{originalPath:e,dynamicDependencies:o,isDynamic:o.length>0}}),r={skipEmptyPlaceholder:s.skipEmptyPlaceholder};return function(e,o,n){De(e);const l=`__onAssign_state_${o}__`;let c;e.__onConnected__(h=>{const p=h[l]||(h[l]={cleanupWatchers:[],configurations:[]});p.cleanupWatchers.forEach(m=>m()),p.cleanupWatchers=[],p.configurations.forEach(m=>{m.unsubscribePublisher&&m.unsubscribePublisher()}),p.configurations=[];const d=[],f=[];for(let m=0;m<t.length;m++){const v=i[m],A=new Set,u=b=>{d[m]=b,ql(d,t.length,s)&&A.forEach(w=>w(...d))};f.push({publisher:null,onAssign:u,callbacks:A,unsubscribePublisher:null,pathConfig:v,index:m})}const _=(m,v)=>{if(m.unsubscribePublisher&&(m.unsubscribePublisher(),m.unsubscribePublisher=null),d[m.index]=null,m.publisher=null,!v)return;const A=Bt(v);A&&(A.onAssign(m.onAssign),m.unsubscribePublisher=()=>{A.offAssign(m.onAssign),m.publisher===A&&(m.publisher=null)},m.publisher=A)},y=()=>{for(const m of f)if(m.pathConfig.isDynamic){const v=$t(h,m.pathConfig.originalPath,r);if(!v.ready){_(m,null);continue}_(m,v.path)}else _(m,m.pathConfig.originalPath)};for(const m of f)if(m.pathConfig.isDynamic)for(const v of m.pathConfig.dynamicDependencies){const A=de(mo.watcherStore,mo.hooked,h,v,()=>y());p.cleanupWatchers.push(A)}c=n.value.bind(h);for(const m of f)m.callbacks.add(c);y(),p.configurations=f}),e.__onDisconnected__(h=>{const p=h[l];p&&(p.cleanupWatchers.forEach(d=>d()),p.cleanupWatchers=[],p.configurations.forEach(d=>{d.unsubscribePublisher&&d.unsubscribePublisher(),d.callbacks.delete(c)}),p.configurations=[])})}}function Kl(s){return Object.prototype.toString.call(s)==="[object DataProviderKey]"}function Yl(...s){const t=s[s.length-1],i=t!==void 0&&!Kl(t),r=i?t:{},o=(i?s.slice(0,-1):s).map(n=>n.path);return _o({dispatchWhenUndefined:!r.waitForAllDefined,skip:r.skip,skipEmptyPlaceholder:r.skipEmptyPlaceholder},o)}function Gl(){return function(s,t,i){let r=0;const e=i.value,o=s.constructor.prototype.disconnectedCallback;s.constructor.prototype.disconnectedCallback=function(){o?.apply(this),this.__removeAutoSubscribe__()};const n=s.connectedCallback;s.connectedCallback=function(){n?.call(this),this[t]()},i.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)}),Pr();const p=e.apply(this,l);return c=Cr()||new Set,c.forEach(d=>{d.onAssign(h,!1)}),this.__removeAutoSubscribe__=()=>{c.forEach(d=>{d.offAssign(h)})},p}}}function Zl(s){return function(t){De(t);for(const i of s){const r=i.split(".");if(r.length===0)continue;const e=r.shift()||"";let o=E.get(e);o=hs.traverse(o,r),t.__onConnected__(n=>{o.startTemplateFilling(n)}),t.__onDisconnected__(()=>{})}}}function Xl(s){const t=[];let i=s;for(;i;)i instanceof Element&&t.push(i),i=i.parentNode||(i.host??null);return t}function Ql(s,t){const i=[];let r=!1;const e=G.scopeAttributeNames(s.attributeName),o=()=>{for(const n of i)n.disconnect();if(i.length=0,!r)for(const n of Xl(s.component)){const l=new MutationObserver(c=>{r||(c.some(h=>h.type==="childList")&&o(),t())});l.observe(n,{attributes:!0,attributeFilter:e,childList:!0,subtree:!1}),i.push(l)}};return o(),()=>{r=!0;for(const n of i)n.disconnect();i.length=0}}function wo(s,t,i,r){const e=s,o=G.getAncestorAttributeValue(s,t);!r.assignNull&&o===null||Object.is(e[i],o)||(e[i]=o)}const K=class K{static subscribe(t,i,r,e={assignNull:!0}){const o={component:t,attributeName:i,propertyKey:r,syncOptions:e,disconnectObservers:null};return o.disconnectObservers=Ql(o,()=>{K.subscriptions.has(o)&&(K.pendingRefresh.add(o),K.scheduleRefresh())}),K.subscriptions.add(o),()=>{K.unsubscribe(o)}}static unsubscribe(t){K.subscriptions.has(t)&&(t.disconnectObservers?.(),t.disconnectObservers=null,K.subscriptions.delete(t),K.pendingRefresh.delete(t),K.subscriptions.size===0&&K.cancelScheduledRefresh())}static scheduleRefresh(){K.pendingRefresh.size!==0&&K.animationFrameId===null&&(K.animationFrameId=requestAnimationFrame(()=>{K.flushRefresh()}))}static cancelScheduledRefresh(){K.animationFrameId!==null&&(cancelAnimationFrame(K.animationFrameId),K.animationFrameId=null),K.pendingRefresh.clear()}static flushRefresh(){K.animationFrameId=null;const t=Array.from(K.pendingRefresh);K.pendingRefresh.clear();for(const i of t)K.subscriptions.has(i)&&i.component.isConnected&&wo(i.component,i.attributeName,i.propertyKey,i.syncOptions)}};K.subscriptions=new Set,K.pendingRefresh=new Set,K.animationFrameId=null;let Vi=K;function Jl(s,t){const i=t?.dynamic??!1,r=i;return function(e,o){if(!e||(De(e),e.__onBeforeConnected__(l=>{wo(l,s,o,{assignNull:r})}),!i))return;let n=null;e.__onConnected__(l=>{n=Vi.subscribe(l,s,o,{assignNull:!0})}),e.__onDisconnected__(()=>{n?.(),n=null})}}function xo(s){return s instanceof HTMLElement||s instanceof ShadowRoot?s:null}function Po(s){if(!s||typeof s.get!="function")return null;const t=s.get();return!t||typeof t!="object"||!("serviceURL"in t)?null:t}function Bi(s){const t=xo(s);return t?G.getApiConfiguration(t):null}function Hi(s){return typeof s?.serviceURL=="string"&&s.serviceURL.length>0}const tc=["serviceURL","serviceurl","token","credentials","tokenProvider","tokenprovider","userName","username","password","eventsApiToken","eventsapitoken"];function ec(s){return s instanceof HTMLElement&&typeof s.updateComplete<"u"}function sc(s){let t=null;return()=>{t===null&&(t=requestAnimationFrame(()=>{t=null,s()}))}}function Co(s,t){if(ec(s)){let i=!1;return s.updateComplete.then(()=>{i||t()}),()=>{i=!0}}return t(),()=>{}}function So(s,t){const i=xo(s);if(!i)return()=>{};let r=!1;const e=()=>{r||Hi(Bi(s))&&(r=!0,t())};if(e(),r)return()=>{};const o=[],n=requestAnimationFrame(()=>e());o.push(()=>cancelAnimationFrame(n)),queueMicrotask(()=>e());const l=new MutationObserver(()=>e());let c=i;for(;c;)c instanceof Element&&l.observe(c,{attributes:!0,attributeFilter:[...tc]}),c=c.parentNode||c.host;return o.push(()=>l.disconnect()),()=>{r=!0,o.forEach(h=>h())}}function ti(s){s.configPublisher&&s.configMutationHandler&&s.configPublisher.offInternalMutation(s.configMutationHandler),s.configPublisher=null,s.configMutationHandler=null}function $o(s,t,i){const r=s.path,e=Ao(t)?void 0:t,n={skipEmptyPlaceholder:(Ao(t)?t:i)?.skipEmptyPlaceholder},l=e?.path,c=Nt(r),h=l?Nt(l):[],p=[...new Set([...c,...h])],d=c.length>0,f=!!l;return function(_,y){if(!_)return;De(_);const m=`__get_state_${y}`;_.__onConnected__(v=>{const A=v;let u=A[m];u||(u={cleanupWatchers:[],requestGeneration:0,configPublisher:null,configMutationHandler:null,scopeWatchCleanup:null},A[m]=u),u.cleanupWatchers.forEach(x=>x()),u.cleanupWatchers=[],u.requestGeneration++;const b=()=>{const x=d?$t(v,r,n):{ready:!0,path:r};if(!x.ready||!x.path){A[y]=void 0;return}let k=null;if(f&&l){const M=$t(v,l,n);if(!M.ready||!M.path){A[y]=void 0;return}const Ft=Bt(M.path);k=Po(Ft)}else k=Bi(v);if(!Hi(k)){if(!f&&!u.scopeWatchCleanup){const M=So(v,b);u.scopeWatchCleanup=M,u.cleanupWatchers.push(()=>{M(),u.scopeWatchCleanup=null})}return}const I=++u.requestGeneration;new ae(k).getDetailed(x.path).then(M=>{I===u.requestGeneration&&(A[y]=M)})},w=()=>{if(!f||!l)return;ti(u);const x=$t(v,l,n);if(!x.ready||!x.path){A[y]=void 0;return}const k=Bt(x.path);if(!k){A[y]=void 0;return}const I=()=>{b()};k.onInternalMutation(I),u.configPublisher=k,u.configMutationHandler=I};if(f){for(const x of p){const k=de(ue.watcherStore,ue.hooked,v,x,()=>w());u.cleanupWatchers.push(k)}w()}else{const x=()=>{if(d)for(const k of c){const I=de(ue.watcherStore,ue.hooked,v,k,()=>b());u.cleanupWatchers.push(I)}b()};u.cleanupWatchers.push(Co(v,x))}}),_.__onDisconnected__(v=>{const A=v,u=A[m];u&&(ti(u),u.cleanupWatchers.forEach(b=>b()),u.cleanupWatchers=[],u.requestGeneration++,A[y]=void 0)})}}function Ao(s){return!s||typeof s!="object"?!1:"skipEmptyPlaceholder"in s}function ko(s){return!s||typeof s!="object"?!1:"refetchEveryMs"in s||"skipIfBodyMissing"in s||"autoPostOnBodyMutation"in s||"skipEmptyPlaceholder"in s||"triggerKey"in s}function Do(s){s.bodyPublisher&&s.bodyMutationHandler&&s.bodyPublisher.offInternalMutation(s.bodyMutationHandler),s.bodyPublisher=null,s.bodyMutationHandler=null}function Oo(s){s.triggerPublisher&&s.triggerInvalidateHandler&&s.triggerPublisher.offInvalidate(s.triggerInvalidateHandler),s.triggerPublisher=null,s.triggerInvalidateHandler=null}function qi(s){s.refetchTimeoutId&&(clearTimeout(s.refetchTimeoutId),s.refetchTimeoutId=null)}function ic(s){if(!(!s||typeof s.get!="function"))return s.get()}function Wi(s,t){return function(i,r,e,o){const n=i.path,l=r.path,c=ko(e)?void 0:e,h=ko(e)?e:o,p=c?.path,d=h?.triggerKey?.path,f=Nt(n),_=Nt(l),y=p?Nt(p):[],m=d?Nt(d):[],v=[...new Set([...f,..._,...y,...m])],A=f.length>0,u=!!p,b=h?.refetchEveryMs??0,w=h?.skipIfBodyMissing??!0,x=h?.autoPostOnBodyMutation??!0,k={skipEmptyPlaceholder:h?.skipEmptyPlaceholder},I=`__${s.toLowerCase()}_state_`;return function(Y,M){if(!Y)return;De(Y);const Ft=`${I}${M}`;Y.__onConnected__(xt=>{const jt=xt;let O=jt[Ft];O||(O={cleanupWatchers:[],requestGeneration:0,configPublisher:null,configMutationHandler:null,scopeWatchCleanup:null,bodyPublisher:null,bodyMutationHandler:null,triggerPublisher:null,triggerInvalidateHandler:null,refetchTimeoutId:null,refetchEveryMs:b,skipIfBodyMissing:w,autoPostOnBodyMutation:x},jt[Ft]=O),O.cleanupWatchers.forEach(et=>et()),O.cleanupWatchers=[],O.requestGeneration++,O.refetchEveryMs=b,O.skipIfBodyMissing=w,O.autoPostOnBodyMutation=x,qi(O);const _e=()=>{qi(O),!(!O.refetchEveryMs||O.refetchEveryMs<=0)&&(O.refetchTimeoutId=setTimeout(()=>{O.refetchTimeoutId=null,mr()},O.refetchEveryMs))},mr=()=>{const et=A?$t(xt,n,k):{ready:!0,path:n};if(!et.ready||!et.path){jt[M]=void 0,_e();return}const rt=$t(xt,l,k);if(!rt.ready||!rt.path){jt[M]=void 0,_e();return}const Lt=Bt(rt.path),gr=ic(Lt);if(O.skipIfBodyMissing&&gr==null){_e();return}let di=null;if(u&&p){const we=$t(xt,p,k);if(!we.ready||!we.path){jt[M]=void 0,_e();return}const Cu=Bt(we.path);di=Po(Cu)}else di=Bi(xt);if(!Hi(di)){if(!u&&!O.scopeWatchCleanup){const we=So(xt,mr);O.scopeWatchCleanup=we,O.cleanupWatchers.push(()=>{we(),O.scopeWatchCleanup=null})}_e();return}const xu=++O.requestGeneration,Pu=new ae(di);t(Pu,et.path,gr).then(we=>{xu===O.requestGeneration&&(jt[M]=we,_e())})},Qe=sc(mr),Yo=()=>{if(Do(O),!O.autoPostOnBodyMutation)return;const et=$t(xt,l,k);if(!et.ready||!et.path)return;const rt=Bt(et.path);if(!rt)return;const Lt=()=>Qe();rt.onInternalMutation(Lt),O.bodyPublisher=rt,O.bodyMutationHandler=Lt},Go=()=>{if(Oo(O),!d)return;const et=$t(xt,d,k);if(!et.ready||!et.path)return;const rt=Bt(et.path);if(!rt)return;const Lt=()=>Qe();rt.onInvalidate(Lt),O.triggerPublisher=rt,O.triggerInvalidateHandler=Lt},wu=()=>{if(!u||!p)return;ti(O);const et=$t(xt,p,k);if(!et.ready||!et.path){jt[M]=void 0;return}const rt=Bt(et.path);if(!rt){jt[M]=void 0;return}const Lt=()=>Qe();rt.onInternalMutation(Lt),O.configPublisher=rt,O.configMutationHandler=Lt},Zo=()=>{Yo(),Go(),wu(),O.autoPostOnBodyMutation&&Qe()};if(u||_.length||m.length){for(const et of v){const rt=de(ue.watcherStore,ue.hooked,xt,et,()=>Zo());O.cleanupWatchers.push(rt)}Zo()}else{const et=()=>{if(A)for(const rt of f){const Lt=de(ue.watcherStore,ue.hooked,xt,rt,()=>Qe());O.cleanupWatchers.push(Lt)}Yo(),Go(),O.autoPostOnBodyMutation&&Qe()};O.cleanupWatchers.push(Co(xt,et))}}),Y.__onDisconnected__(xt=>{const jt=xt,O=jt[Ft];O&&(ti(O),Do(O),Oo(O),qi(O),O.cleanupWatchers.forEach(_e=>_e()),O.cleanupWatchers=[],O.requestGeneration++,jt[M]=void 0)})}}}function rc(s,t,i,r){return Wi("POST",(e,o,n)=>e.postDetailed(o,n))(s,t,i,r)}function oc(s,t,i,r){return Wi("PUT",(e,o,n)=>e.putDetailed(o,n))(s,t,i,r)}function nc(s,t,i,r){return Wi("PATCH",(e,o,n)=>e.patchDetailed(o,n))(s,t,i,r)}const ac=vo,lc=yo,cc=$o;window["concorde-decorator-subscriber"]=window["concorde-decorator-subscriber"]||{},window["concorde-decorator-subscriber"]={bind:go,publish:vo,subscribe:yo,onAssing:Wl,handle:Yl,ancestorAttribute:Jl,autoSubscribe:Gl,autoFill:Zl,get:$o,post:rc,put:oc,patch:nc};var hc=Object.defineProperty,dc=Object.getOwnPropertyDescriptor,ei=(s,t,i,r)=>{for(var e=r>1?void 0:r?dc(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&hc(t,i,e),e};const Eo=new Ws("communes?limit=$limit&fields=nom,code"),Lo=new Je(Eo.path),uc="sonic-example";let ws=class extends P{constructor(){super(...arguments),this.limit=5}render(){return g` <span part="api-get-demo">
1271
+ ${qt(r)}
1272
+ </div>`}return qt(r)})}`}};Js([a()],ys.prototype,"state",2),Js([a({type:Boolean,reflect:!0})],ys.prototype,"inverted",2),Js([a({type:Object})],ys.prototype,"states",2),ys=Js([C(Dl)],ys);var Ol=Object.getOwnPropertyDescriptor,El=(s,t,i,r)=>{for(var e=r>1?void 0:r?Ol(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=o(e)||e);return e};const Ll="sonic-scope";let fn=class extends P{createRenderRoot(){return this}render(){return g`<slot></slot>`}};fn=El([C(Ll)],fn);function Tl(s){this.__beforeConnectedCallbackCalls__||(this.__beforeConnectedCallbackCalls__=new Set),this.__beforeConnectedCallbackCalls__.add(s)}function Il(s){this.__connectedCallbackCalls__||(this.__connectedCallbackCalls__=new Set),this.__connectedCallbackCalls__.add(s)}function Ml(s){this.__disconnectedCallbackCalls__||(this.__disconnectedCallbackCalls__=new Set),this.__disconnectedCallbackCalls__.add(s)}function Oe(s){if(s.__is__setSubscribable__)return;s.__is__setSubscribable__=!0,s.__onBeforeConnected__=Tl,s.__onConnected__=Il,s.__onDisconnected__=Ml;const t=s.connectedCallback;s.connectedCallback=function(){this.__beforeConnectedCallbackCalls__&&this.__beforeConnectedCallbackCalls__.forEach(r=>r(this)),t?.call(this),this.__connectedCallbackCalls__&&this.__connectedCallbackCalls__.forEach(r=>r(this))};const i=s.disconnectedCallback;s.disconnectedCallback=function(){i?.call(this),this.__disconnectedCallbackCalls__&&this.__disconnectedCallbackCalls__.forEach(r=>r(this))}}function Nl(s){return s.trim().replace(/^this\./,"")}function qi(s,t){if(!t)return;const i=t.split(".").filter(Boolean);if(i.length===0)return;let r=s;for(const e of i){if(r==null||typeof r!="object")return;r=r[e]}return r}function Fl(s,t){return!!(s==null||t?.skipEmptyPlaceholder&&s==="")}function Ct(s,t,i){let r=!1;const e=(l,c)=>{const h=Nl(c),u=qi(s,h);return Fl(u,i)?(r=!0,""):`${u}`},n=t.replace(/\$\{([^}]+)\}/g,e).replace(/\{\$([^}]+)\}/g,e).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 Et(s){const t=[/\$\{([^}]+)\}/g,/\{\$([^}]+)\}/g],i=new Set;for(const r of t){let e;for(;(e=r.exec(s))!==null;){const n=(e[1]||"").trim().replace(/^this\./,"");if(!n)continue;const[o]=n.split(".");o&&i.add(o)}}return Array.from(i)}function bn(s){return typeof s=="object"&&s!==null&&"path"in s&&typeof s.path=="string"}const _s=new WeakMap,ws=new Set;let Ye=null;const jl=8;function Rl(s){let t=_s.get(s);return t||(t=new Map,_s.set(s,t)),t}function zl(s,t){const i=new Set;for(const[r,e]of t){const n=qi(s,r);Object.is(e.lastValue,n)||(e.lastValue=n,e.onChangeHandlers.forEach(o=>i.add(o)))}return i}function Ul(){Ye=null;let s=0,t=!0;for(;t&&s<jl;){t=!1,s+=1;for(const i of ws){const r=_s.get(i);if(!r||r.size===0)continue;const e=zl(i,r);e.size!==0&&(t=!0,e.forEach(n=>n()))}}t&&console.warn("[concorde] dynamic property watch: limite de passes atteinte, boucle infinie probable"),ws.size>0&&mn()}function mn(){Ye===null&&(Ye=requestAnimationFrame(Ul))}function Vl(){ws.size===0&&Ye!==null&&(cancelAnimationFrame(Ye),Ye=null)}function pe(s,t,i,r,e){const n=String(r),o=Rl(i);let l=o.get(n);return l||(l={lastValue:qi(i,n),onChangeHandlers:new Set},o.set(n,l)),l.onChangeHandlers.add(e),ws.add(i),mn(),()=>{const c=_s.get(i);if(!c)return;const h=c.get(n);h&&(h.onChangeHandlers.delete(e),h.onChangeHandlers.size===0&&c.delete(n),c.size===0&&(_s.delete(i),ws.delete(i),Vl()))}}const ti={watcherStore:Symbol("__bindDynamicWatcherStore__"),hooked:Symbol("__bindDynamicWillUpdateHooked__")},gn={watcherStore:"__publishDynamicWatcherStore__",hooked:"__publishDynamicWillUpdateHooked__"},fe={watcherStore:"__getDynamicWatcherStore__",hooked:"__getDynamicWillUpdateHooked__"},vn={watcherStore:Symbol("__onAssignDynamicWatcherStore__"),hooked:Symbol("__onAssignDynamicWillUpdateHooked__")};function zt(s){const t=s.split(".").filter(e=>e.length>0);if(t.length===0)return null;const i=t.shift()||"";if(!i)return null;let r=E.get(i);return r?(r=ds.traverse(r,t),r):null}function Bl(s,t){const i=t?.reflect??!1,r={skipEmptyPlaceholder:t?.skipEmptyPlaceholder},e=Et(s),n=e.length>0;return function(o,l){if(!o)return;Oe(o);const c=`__bind_state_${l}`,h=`__bind_${l}_publisher__`,u=i?`__bind_${l}_updating_from_publisher__`:null;if(i){const d=Object.getOwnPropertyDescriptor(o,l),p=`__bind_${l}_value__`,w=`__bind_${l}_updating_from_publisher__`,v=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)&&v!==void 0&&(this[p]=v),this[p])},set(m){d?.set?d.set.call(this,m):this[p]=m,!this[w]&&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 w=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 y=zt(m);if(!y){p.currentPath=null,d[h]=null;return}const D=f=>{i&&u&&(d[u]=!0),d[l]=f,i&&u&&(d[u]=!1)};y.onAssign(D),p.unsubscribePublisher=()=>{y.offAssign(D),d[h]===y&&(d[h]=null)},p.currentPath=m,d[h]=y},v=()=>{if(n){const m=Ct(d,s,r);if(!m.ready){w(null);return}w(m.path);return}w(s)};if(n)for(const m of e){const y=pe(ti.watcherStore,ti.hooked,d,m,()=>v());p.cleanupWatchers.push(y)}v()}),o.__onDisconnected__(d=>{const p=d[c];p&&(p.unsubscribePublisher&&(p.unsubscribePublisher(),p.unsubscribePublisher=null),p.cleanupWatchers.forEach(w=>w()),p.cleanupWatchers=[],p.currentPath=null,d[h]=null)})}}function yn(s,t){const i=bn(s)?s.path:s;return Bl(i,t)}function _n(s,t){const i=s.path,r={skipEmptyPlaceholder:t?.skipEmptyPlaceholder},e=Et(i);return function(n,o){Oe(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,w=`__publish_state_${o}`,v=p[w]||(p[w]={cleanupWatchers:[]}),m=()=>{let y;if(e.length){const f=Ct(d,i,r);y=f.ready?f.path:null}else y=i;const D=y?zt(y):void 0;if(p[l]=D??null,D&&o in d){const f=p[o];f!==void 0&&D.set(f)}};if(v.cleanupWatchers.forEach(y=>y()),v.cleanupWatchers=[],e.length)for(const y of e)v.cleanupWatchers.push(pe(gn.watcherStore,gn.hooked,p,y,m));m()}),n.__onDisconnected__(d=>{const p=d,w=`__publish_state_${o}`,v=p[w];v?.cleanupWatchers&&v.cleanupWatchers.forEach(m=>m()),p[l]=void 0})}}function wn(s){return yn(s)}const Hl={nullish:s=>s==null,emptyString:s=>s==="",emptyObject:s=>typeof s=="object"&&s!==null&&!Array.isArray(s)&&Object.keys(s).length===0,emptyArray:s=>Array.isArray(s)&&s.length===0};function ql(s,t){return t.some(i=>Hl[i](s))}function Wl(s,t,i){if(!i.dispatchWhenUndefined&&s.slice(0,t).filter(e=>e!=null).length!==t)return!1;if(i.skip&&i.skip.length>0){for(let r=0;r<t;r++)if(ql(s[r],i.skip))return!1}return!0}function Kl(...s){return xn({},s)}function xn(s,t){const i=t.map(e=>{const n=Et(e);return{originalPath:e,dynamicDependencies:n,isDynamic:n.length>0}}),r={skipEmptyPlaceholder:s.skipEmptyPlaceholder};return function(e,n,o){Oe(e);const l=`__onAssign_state_${n}__`;let c;e.__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 y=i[m],D=new Set,f=b=>{d[m]=b,Wl(d,t.length,s)&&D.forEach(x=>x(...d))};p.push({publisher:null,onAssign:f,callbacks:D,unsubscribePublisher:null,pathConfig:y,index:m})}const w=(m,y)=>{if(m.unsubscribePublisher&&(m.unsubscribePublisher(),m.unsubscribePublisher=null),d[m.index]=null,m.publisher=null,!y)return;const D=zt(y);D&&(D.onAssign(m.onAssign),m.unsubscribePublisher=()=>{D.offAssign(m.onAssign),m.publisher===D&&(m.publisher=null)},m.publisher=D)},v=()=>{for(const m of p)if(m.pathConfig.isDynamic){const y=Ct(h,m.pathConfig.originalPath,r);if(!y.ready){w(m,null);continue}w(m,y.path)}else w(m,m.pathConfig.originalPath)};for(const m of p)if(m.pathConfig.isDynamic)for(const y of m.pathConfig.dynamicDependencies){const D=pe(vn.watcherStore,vn.hooked,h,y,()=>v());u.cleanupWatchers.push(D)}c=o.value.bind(h);for(const m of p)m.callbacks.add(c);v(),u.configurations=p}),e.__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 Yl(s){return Object.prototype.toString.call(s)==="[object DataProviderKey]"}function Gl(...s){const t=s[s.length-1],i=t!==void 0&&!Yl(t),r=i?t:{},n=(i?s.slice(0,-1):s).map(o=>o.path);return xn({dispatchWhenUndefined:!r.waitForAllDefined,skip:r.skip,skipEmptyPlaceholder:r.skipEmptyPlaceholder},n)}function Zl(){return function(s,t,i){let r=0;const e=i.value,n=s.constructor.prototype.disconnectedCallback;s.constructor.prototype.disconnectedCallback=function(){n?.apply(this),this.__removeAutoSubscribe__()};const o=s.connectedCallback;s.connectedCallback=function(){o?.call(this),this[t]()},i.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)}),Sr();const u=e.apply(this,l);return c=$r()||new Set,c.forEach(d=>{d.onAssign(h,!1)}),this.__removeAutoSubscribe__=()=>{c.forEach(d=>{d.offAssign(h)})},u}}}function Xl(s){return function(t){Oe(t);for(const i of s){const r=i.split(".");if(r.length===0)continue;const e=r.shift()||"";let n=E.get(e);n=ds.traverse(n,r),t.__onConnected__(o=>{n.startTemplateFilling(o)}),t.__onDisconnected__(()=>{})}}}function Ql(s){const t=[];let i=s;for(;i;)i instanceof Element&&t.push(i),i=i.parentNode||(i.host??null);return t}function Jl(s,t){const i=[];let r=!1;const e=Z.scopeAttributeNames(s.attributeName),n=()=>{for(const o of i)o.disconnect();if(i.length=0,!r)for(const o of Ql(s.component)){const l=new MutationObserver(c=>{r||(c.some(h=>h.type==="childList")&&n(),t())});l.observe(o,{attributes:!0,attributeFilter:e,childList:!0,subtree:!1}),i.push(l)}};return n(),()=>{r=!0;for(const o of i)o.disconnect();i.length=0}}function Pn(s,t,i,r){const e=s,n=Z.getAncestorAttributeValue(s,t);!r.assignNull&&n===null||Object.is(e[i],n)||(e[i]=n)}const G=class G{static subscribe(t,i,r,e={assignNull:!0}){const n={component:t,attributeName:i,propertyKey:r,syncOptions:e,disconnectObservers:null};return n.disconnectObservers=Jl(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 i of t)G.subscriptions.has(i)&&i.component.isConnected&&Pn(i.component,i.attributeName,i.propertyKey,i.syncOptions)}};G.subscriptions=new Set,G.pendingRefresh=new Set,G.animationFrameId=null;let Wi=G;function tc(s,t){const i=t?.dynamic??!1,r=i;return function(e,n){if(!e||(Oe(e),e.__onBeforeConnected__(l=>{Pn(l,s,n,{assignNull:r})}),!i))return;let o=null;e.__onConnected__(l=>{o=Wi.subscribe(l,s,n,{assignNull:!0})}),e.__onDisconnected__(()=>{o?.(),o=null})}}function Cn(s){return s instanceof HTMLElement||s instanceof ShadowRoot?s:null}function Sn(s){if(!s||typeof s.get!="function")return null;const t=s.get();return!t||typeof t!="object"||!("serviceURL"in t)?null:t}function Ki(s){const t=Cn(s);return t?Z.getApiConfiguration(t):null}function Yi(s){return typeof s?.serviceURL=="string"&&s.serviceURL.length>0}const ec=["serviceURL","serviceurl","token","credentials","tokenProvider","tokenprovider","userName","username","password","eventsApiToken","eventsapitoken"];function sc(s){return s instanceof HTMLElement&&typeof s.updateComplete<"u"}function $n(s){let t=null;return()=>{t===null&&(t=requestAnimationFrame(()=>{t=null,s()}))}}function An(s,t){if(sc(s)){let i=!1;return s.updateComplete.then(()=>{i||t()}),()=>{i=!0}}return t(),()=>{}}function kn(s,t){const i=Cn(s);if(!i)return()=>{};let r=!1;const e=()=>{r||Yi(Ki(s))&&(r=!0,t())};if(e(),r)return()=>{};const n=[],o=requestAnimationFrame(()=>e());n.push(()=>cancelAnimationFrame(o)),queueMicrotask(()=>e());const l=new MutationObserver(()=>e());let c=i;for(;c;)c instanceof Element&&l.observe(c,{attributes:!0,attributeFilter:[...ec]}),c=c.parentNode||c.host;return n.push(()=>l.disconnect()),()=>{r=!0,n.forEach(h=>h())}}function ei(s){s.configPublisher&&s.configMutationHandler&&s.configPublisher.offInternalMutation(s.configMutationHandler),s.configPublisher=null,s.configMutationHandler=null}function Dn(s,t,i){const r=s.path,e=On(t)?void 0:t,n=On(t)?t:i,o={skipEmptyPlaceholder:n?.skipEmptyPlaceholder},l=e?.path,c=n?.triggerKey?.path,h=Et(r),u=l?Et(l):[],d=c?Et(c):[],p=[...new Set([...h,...u,...d])],w=h.length>0,v=!!l,m=n?.refetchEveryMs??0;return function(y,D){if(!y)return;Oe(y);const f=`__get_state_${D}`;y.__onConnected__(b=>{const x=b;let _=x[f];_||(_={cleanupWatchers:[],requestGeneration:0,configPublisher:null,configMutationHandler:null,scopeWatchCleanup:null,triggerPublisher:null,triggerInvalidateHandler:null,refetchTimeoutId:null,refetchEveryMs:m},x[f]=_),_.cleanupWatchers.forEach(V=>V()),_.cleanupWatchers=[],_.requestGeneration++,_.refetchEveryMs=m,Ge(_);const O=()=>{Ge(_),!(!_.refetchEveryMs||_.refetchEveryMs<=0)&&(_.refetchTimeoutId=setTimeout(()=>{_.refetchTimeoutId=null,N()},_.refetchEveryMs))},N=()=>{const V=w?Ct(b,r,o):{ready:!0,path:r};if(!V.ready||!V.path){x[D]=void 0,O();return}let A=null;if(v&&l){const Pt=Ct(b,l,o);if(!Pt.ready||!Pt.path){x[D]=void 0,O();return}const fi=zt(Pt.path);A=Sn(fi)}else A=Ki(b);if(!Yi(A)){if(!v&&!_.scopeWatchCleanup){const Pt=kn(b,N);_.scopeWatchCleanup=Pt,_.cleanupWatchers.push(()=>{Pt(),_.scopeWatchCleanup=null})}O();return}const ut=++_.requestGeneration;new ce(A).getDetailed(V.path).then(Pt=>{ut===_.requestGeneration&&(x[D]=Pt,O())})},j=$n(N),U=()=>{if(si(_),!c)return;const V=Ct(b,c,o);if(!V.ready||!V.path)return;const A=zt(V.path);if(!A)return;const ut=()=>j();A.onInvalidate(ut),_.triggerPublisher=A,_.triggerInvalidateHandler=ut},Ut=()=>{if(!v||!l)return;ei(_);const V=Ct(b,l,o);if(!V.ready||!V.path){x[D]=void 0;return}const A=zt(V.path);if(!A){x[D]=void 0;return}const ut=()=>j();A.onInternalMutation(ut),_.configPublisher=A,_.configMutationHandler=ut},pt=()=>{U(),Ut(),v||j()};if(v||d.length){for(const V of p){const A=pe(fe.watcherStore,fe.hooked,b,V,()=>pt());_.cleanupWatchers.push(A)}pt()}else{const V=()=>{if(w)for(const A of h){const ut=pe(fe.watcherStore,fe.hooked,b,A,()=>j());_.cleanupWatchers.push(ut)}U(),N()};_.cleanupWatchers.push(An(b,V))}}),y.__onDisconnected__(b=>{const x=b,_=x[f];_&&(ei(_),si(_),Ge(_),_.cleanupWatchers.forEach(O=>O()),_.cleanupWatchers=[],_.requestGeneration++,x[D]=void 0)})}}function On(s){return!s||typeof s!="object"?!1:"skipEmptyPlaceholder"in s||"refetchEveryMs"in s||"triggerKey"in s}function En(s){return!s||typeof s!="object"?!1:"refetchEveryMs"in s||"skipIfBodyMissing"in s||"autoPostOnBodyMutation"in s||"skipEmptyPlaceholder"in s||"triggerKey"in s}function Ln(s){s.bodyPublisher&&s.bodyMutationHandler&&s.bodyPublisher.offInternalMutation(s.bodyMutationHandler),s.bodyPublisher=null,s.bodyMutationHandler=null}function si(s){s.triggerPublisher&&s.triggerInvalidateHandler&&s.triggerPublisher.offInvalidate(s.triggerInvalidateHandler),s.triggerPublisher=null,s.triggerInvalidateHandler=null}function Ge(s){s.refetchTimeoutId&&(clearTimeout(s.refetchTimeoutId),s.refetchTimeoutId=null)}function ic(s){if(!(!s||typeof s.get!="function"))return s.get()}function Gi(s,t){return function(i,r,e,n){const o=i.path,l=r.path,c=En(e)?void 0:e,h=En(e)?e:n,u=c?.path,d=h?.triggerKey?.path,p=Et(o),w=Et(l),v=u?Et(u):[],m=d?Et(d):[],y=[...new Set([...p,...w,...v,...m])],D=p.length>0,f=!!u,b=h?.refetchEveryMs??0,x=h?.skipIfBodyMissing??!0,_=h?.autoPostOnBodyMutation??!0,O={skipEmptyPlaceholder:h?.skipEmptyPlaceholder},N=`__${s.toLowerCase()}_state_`;return function(j,U){if(!j)return;Oe(j);const Ut=`${N}${U}`;j.__onConnected__(pt=>{const V=pt;let A=V[Ut];A||(A={cleanupWatchers:[],requestGeneration:0,configPublisher:null,configMutationHandler:null,scopeWatchCleanup:null,bodyPublisher:null,bodyMutationHandler:null,triggerPublisher:null,triggerInvalidateHandler:null,refetchTimeoutId:null,refetchEveryMs:b,skipIfBodyMissing:x,autoPostOnBodyMutation:_},V[Ut]=A),A.cleanupWatchers.forEach(st=>st()),A.cleanupWatchers=[],A.requestGeneration++,A.refetchEveryMs=b,A.skipIfBodyMissing=x,A.autoPostOnBodyMutation=_,Ge(A);const ut=()=>{Ge(A),!(!A.refetchEveryMs||A.refetchEveryMs<=0)&&(A.refetchTimeoutId=setTimeout(()=>{A.refetchTimeoutId=null,pi()},A.refetchEveryMs))},pi=()=>{const st=D?Ct(pt,o,O):{ready:!0,path:o};if(!st.ready||!st.path){V[U]=void 0,ut();return}const nt=Ct(pt,l,O);if(!nt.ready||!nt.path){V[U]=void 0,ut();return}const Nt=zt(nt.path),yr=ic(Nt);if(A.skipIfBodyMissing&&yr==null){ut();return}let bi=null;if(f&&u){const xe=Ct(pt,u,O);if(!xe.ready||!xe.path){V[U]=void 0,ut();return}const Cu=zt(xe.path);bi=Sn(Cu)}else bi=Ki(pt);if(!Yi(bi)){if(!f&&!A.scopeWatchCleanup){const xe=kn(pt,pi);A.scopeWatchCleanup=xe,A.cleanupWatchers.push(()=>{xe(),A.scopeWatchCleanup=null})}ut();return}const xu=++A.requestGeneration,Pu=new ce(bi);t(Pu,st.path,yr).then(xe=>{xu===A.requestGeneration&&(V[U]=xe,ut())})},Pt=$n(pi),fi=()=>{if(Ln(A),!A.autoPostOnBodyMutation)return;const st=Ct(pt,l,O);if(!st.ready||!st.path)return;const nt=zt(st.path);if(!nt)return;const Nt=()=>Pt();nt.onInternalMutation(Nt),A.bodyPublisher=nt,A.bodyMutationHandler=Nt},Zn=()=>{if(si(A),!d)return;const st=Ct(pt,d,O);if(!st.ready||!st.path)return;const nt=zt(st.path);if(!nt)return;const Nt=()=>Pt();nt.onInvalidate(Nt),A.triggerPublisher=nt,A.triggerInvalidateHandler=Nt},wu=()=>{if(!f||!u)return;ei(A);const st=Ct(pt,u,O);if(!st.ready||!st.path){V[U]=void 0;return}const nt=zt(st.path);if(!nt){V[U]=void 0;return}const Nt=()=>Pt();nt.onInternalMutation(Nt),A.configPublisher=nt,A.configMutationHandler=Nt},Xn=()=>{fi(),Zn(),wu(),A.autoPostOnBodyMutation&&Pt()};if(f||w.length||m.length){for(const st of y){const nt=pe(fe.watcherStore,fe.hooked,pt,st,()=>Xn());A.cleanupWatchers.push(nt)}Xn()}else{const st=()=>{if(D)for(const nt of p){const Nt=pe(fe.watcherStore,fe.hooked,pt,nt,()=>Pt());A.cleanupWatchers.push(Nt)}fi(),Zn(),A.autoPostOnBodyMutation&&Pt()};A.cleanupWatchers.push(An(pt,st))}}),j.__onDisconnected__(pt=>{const V=pt,A=V[Ut];A&&(ei(A),Ln(A),si(A),Ge(A),A.cleanupWatchers.forEach(ut=>ut()),A.cleanupWatchers=[],A.requestGeneration++,V[U]=void 0)})}}}function rc(s,t,i,r){return Gi("POST",(e,n,o)=>e.postDetailed(n,o))(s,t,i,r)}function nc(s,t,i,r){return Gi("PUT",(e,n,o)=>e.putDetailed(n,o))(s,t,i,r)}function oc(s,t,i,r){return Gi("PATCH",(e,n,o)=>e.patchDetailed(n,o))(s,t,i,r)}const ac=_n,lc=wn,cc=Dn;window["concorde-decorator-subscriber"]=window["concorde-decorator-subscriber"]||{},window["concorde-decorator-subscriber"]={bind:yn,publish:_n,subscribe:wn,onAssing:Kl,handle:Gl,ancestorAttribute:tc,autoSubscribe:Zl,autoFill:Xl,get:Dn,post:rc,put:nc,patch:oc};var hc=Object.defineProperty,dc=Object.getOwnPropertyDescriptor,ii=(s,t,i,r)=>{for(var e=r>1?void 0:r?dc(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&hc(t,i,e),e};const Tn=new Ks("communes?limit=$limit&fields=nom,code"),In=new ts(Tn.path),uc="sonic-example";let xs=class extends P{constructor(){super(...arguments),this.limit=5}render(){return g` <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
- >`}};ei([a({type:Number})],ws.prototype,"limit",2),ei([cc(Eo),ac(Lo)],ws.prototype,"geoCommunesPayload",2),ei([T(),lc(Lo.result)],ws.prototype,"geoCommunesResult",2),ws=ei([C(uc)],ws);const pc={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 fc{async transform(t,i){if(this.sduiDescriptor=t,this.sduiDescriptor.library)for(const r in i.library)this.sduiDescriptor.library[r]=i.library[r];for(const r of i.transforms)this.transformAction(r)}transformAction(t){const i=this.getNodesMatchingPatterns(t.patterns,this.sduiDescriptor);this[t.action](t,i)}getNodesMatchingPatterns(t,i){if(!t)return[];if(!i)return[];const r=i.nodes;if(!r)return[];let e=[],o=0;for(const n of t)for(const l of r)this.nodeMatchesPattern(n,l)&&e.push({parent:i,child:l,index:o}),e=e.concat(this.getNodesMatchingPatterns([n],l)),o++;return e}stringMatchesExpression(t,i){return!i||t&&t.match(i)}nodeMatchesPattern(t,i){const r=t,e=i,o=["libraryKey","innerHTML","prefix","suffix","markup"];for(const c of o)if(!this.stringMatchesExpression(e[c],r[c]))return!1;const n=t.attributes,l=i.attributes;if(n&&!l)return!1;if(n){for(const c in n)if(!l||!this.stringMatchesExpression(l[c],n[c]))return!1}return!0}unwrap(t,i){for(const r of i)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,i){const r={...t.ui};r.nodes||(r.nodes=[]);let e=0;for(const n of i)r.nodes?.push(n.child),e>0&&n.parent.nodes?.splice(n.parent.nodes.indexOf(n.child),1),e++;const o=i[0]?.parent.nodes?.indexOf(i[0].child);o&&(i[0].parent.nodes?.splice(o,1),i[0].parent.nodes?.splice(o,0,r))}move(t,i){for(const r of i){r.parent.nodes?.splice(r.parent.nodes.indexOf(r.child),1);let e=[];t.after&&(e=this.getNodesMatchingPatterns([t.after],this.sduiDescriptor)),t.before&&(e=this.getNodesMatchingPatterns([t.before],this.sduiDescriptor));const o=e[0];o&&o.parent.nodes?.splice(o.parent.nodes.indexOf(o.child)+(t.after?1:0),0,r.child)}}remap(t,i){for(const r of i){const e={...t.ui};e.attributes||(e.attributes={});const o=r.child.attributes;if(o)for(const d in o)Object.prototype.hasOwnProperty.call(e.attributes,"key")||(e.attributes[d]=o[d]);const n=["libraryKey","innerHTML","prefix","suffix","markup"],l=r.child,c=e;for(const d of n)!Object.prototype.hasOwnProperty.call(e,d)&&l[d]&&(c[d]=l[d]);e.nodes||(e.nodes=[]);const h=r.child.nodes;if(h)for(const d of h)e.nodes.push(d);const p=r.parent.nodes?.indexOf(r.child)||-1;p!=-1&&(r.parent.nodes?.splice(p,1),r.parent.nodes?.splice(p,0,e))}}delete(t,i){for(const r of i)r.parent.nodes?.splice(r.parent.nodes.indexOf(r.child),1)}insert(t,i){const r=t.after?"after":t.before?"before":"in";i=[],t.after?i=this.getNodesMatchingPatterns([t.after],this.sduiDescriptor):t.before?i=this.getNodesMatchingPatterns([t.before],this.sduiDescriptor):t.in&&(i=this.getNodesMatchingPatterns([t.in],this.sduiDescriptor));const e=i[0];e&&(r=="in"?(e.child.nodes||(e.child.nodes=[]),e.child.nodes.push({...t.ui})):e.parent.nodes?.splice(e.parent.nodes.indexOf(e.child)+(r=="after"?1:0),0,{...t.ui}))}}var bc=Object.defineProperty,mc=Object.getOwnPropertyDescriptor,Ki=(s,t,i,r)=>{for(var e=r>1?void 0:r?mc(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&bc(t,i,e),e};const gc="sonic-sdui";let si=class extends io(ce(P)){constructor(){super(...arguments),this.sduiDescriptor={}}connectedCallback(){this.noShadowDom="",this.displayContents=!0,this.isFetchEnabled=this.hasAttribute("fetch"),super.connectedCallback()}willUpdate(s){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(s)}async updateContents(){if(!this.sduiDescriptor)return;const s={};Object.assign(s,pc,this.sduiDescriptor.library),this.sduiDescriptor.library=s,this.loadAssets(),await this.loadLibrary(),await this.transformSDUIDescriptor(),this.parseRootNodes()}removeChildren(){for(;[...this.children].filter(s=>s.nodeName!="SLOT").length>0;)this.removeChild(this.children[0])}loadAssets(){if(this.sduiDescriptor){if(this.sduiDescriptor.js)for(const s of this.sduiDescriptor.js)le.loadJS(s);if(this.sduiDescriptor.css)for(const s of this.sduiDescriptor.css)le.loadCSS(s)}}async transformSDUIDescriptor(){if(!this.hasAttribute("transformation"))return;const t=await(await fetch(this.getAttribute("transformation"))).json();await new fc().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 s=this.sduiDescriptor.nodes;s||(s=[]);const t={tagName:"sonic-toast-message-subscriber",attributes:{}};this.messagesKey&&(t.attributes={subDataProvider:this.messagesKey}),s.push(t),s.forEach(i=>this.appendChild(this.parseChild(i)))}parseChild(s){const t=s.tagName||"div";let{element:i,contentElement:r}=this.handleLibrary(s,t);return this.handleAttributes(s,i),i=this.handleMarkup(s,i),r||(r=i),this.handleChildNodes(s,r,i),this.handleInnerHTML(s,r),s.prefix||s.suffix?this.handlePrefixSuffix(s,i):i}handlePrefixSuffix(s,t){const i=document.createElement("div");return i.innerHTML=(s.prefix||"")+t.outerHTML+(s.suffix||""),i.style.display="contents",i}handleChildNodes(s,t,i){if(s.nodes){const r=s.nodes;for(const e of r){const o=this.parseChild(e);let n=t;e.parentElementSelector&&(n=i.querySelector(e.parentElementSelector)||t),n.shadowRoot?n.shadowRoot.appendChild(o):n.tagName.toLocaleLowerCase()=="template"?n.content.appendChild(o):n.appendChild(o)}}}handleLibrary(s,t){let i,r;if(s.libraryKey&&this.sduiDescriptor.library){i=this.parseChild(this.sduiDescriptor.library[s.libraryKey]||{tagName:"div"});const e=(this.sduiDescriptor.library[s.libraryKey]||{}).contentElementSelector;e&&(r=i.querySelector(e))}else i=document.createElement(t);return{element:i,contentElement:r}}handleAttributes(s,t){const i=s.attributes;for(const r in i){const e=i[r],o=hs.isObject(e)?JSON.stringify(e):e;t.setAttribute(r,o)}}handleMarkup(s,t){return s.markup&&(t=document.createElement("div"),t.style.display="contents",t.innerHTML=s.markup),t}handleInnerHTML(s,t){if(s.innerHTML)if(s.innerHTML.indexOf("wording_")!=-1){const i=this.getAncestorAttributeValue("wordingProvider");this.api?.post(i,{labels:[s.innerHTML.substring(8)]}).then(r=>{t&&(t.innerHTML+=r)})}else t&&(t.innerHTML+=s.innerHTML)}};Ki([a()],si.prototype,"sduiKey",2),Ki([a()],si.prototype,"messagesKey",2),si=Ki([C(gc)],si);var vc=Object.defineProperty,yc=Object.getOwnPropertyDescriptor,To=(s,t,i,r)=>{for(var e=r>1?void 0:r?yc(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&vc(t,i,e),e};let ii=class extends ce(P){constructor(){super(...arguments),this._composition={},this.listeners=[]}get composition(){return this._composition}set composition(s){this._composition=s,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 s=this.listeners;this.listeners=[],s.forEach(t=>{this.publisher.offAssign(t.subscriber)})}parseComposition(s,t){if(s)for(const i in s){const r=s[i];if(typeof r=="string"){const e=r.split("."),o=e.shift();if(!o)continue;let n=E.get(o);n=hs.traverse(n,e);const l={publisher:n,subscriber:c=>{t[i]=c}};this.listeners.push(l),n.onAssign(l.subscriber),t._proxies_.set(i,n)}else{this.publisher[i]={};const e=new ts({},t);t._proxies_.set(i,e);const o={publisher:e,subscriber:n=>{t[i]=n}};this.listeners.push(o),e.onAssign(o.subscriber),this.parseComposition(r,e)}}}render(){return g`<slot></slot>`}};ii.styles=[S`
1276
+ >`}};ii([a({type:Number})],xs.prototype,"limit",2),ii([cc(Tn),ac(In)],xs.prototype,"geoCommunesPayload",2),ii([T(),lc(In.result)],xs.prototype,"geoCommunesResult",2),xs=ii([C(uc)],xs);const pc={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 fc{async transform(t,i){if(this.sduiDescriptor=t,this.sduiDescriptor.library)for(const r in i.library)this.sduiDescriptor.library[r]=i.library[r];for(const r of i.transforms)this.transformAction(r)}transformAction(t){const i=this.getNodesMatchingPatterns(t.patterns,this.sduiDescriptor);this[t.action](t,i)}getNodesMatchingPatterns(t,i){if(!t)return[];if(!i)return[];const r=i.nodes;if(!r)return[];let e=[],n=0;for(const o of t)for(const l of r)this.nodeMatchesPattern(o,l)&&e.push({parent:i,child:l,index:n}),e=e.concat(this.getNodesMatchingPatterns([o],l)),n++;return e}stringMatchesExpression(t,i){return!i||t&&t.match(i)}nodeMatchesPattern(t,i){const r=t,e=i,n=["libraryKey","innerHTML","prefix","suffix","markup"];for(const c of n)if(!this.stringMatchesExpression(e[c],r[c]))return!1;const o=t.attributes,l=i.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,i){for(const r of i)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,i){const r={...t.ui};r.nodes||(r.nodes=[]);let e=0;for(const o of i)r.nodes?.push(o.child),e>0&&o.parent.nodes?.splice(o.parent.nodes.indexOf(o.child),1),e++;const n=i[0]?.parent.nodes?.indexOf(i[0].child);n&&(i[0].parent.nodes?.splice(n,1),i[0].parent.nodes?.splice(n,0,r))}move(t,i){for(const r of i){r.parent.nodes?.splice(r.parent.nodes.indexOf(r.child),1);let e=[];t.after&&(e=this.getNodesMatchingPatterns([t.after],this.sduiDescriptor)),t.before&&(e=this.getNodesMatchingPatterns([t.before],this.sduiDescriptor));const n=e[0];n&&n.parent.nodes?.splice(n.parent.nodes.indexOf(n.child)+(t.after?1:0),0,r.child)}}remap(t,i){for(const r of i){const e={...t.ui};e.attributes||(e.attributes={});const n=r.child.attributes;if(n)for(const d in n)Object.prototype.hasOwnProperty.call(e.attributes,"key")||(e.attributes[d]=n[d]);const o=["libraryKey","innerHTML","prefix","suffix","markup"],l=r.child,c=e;for(const d of o)!Object.prototype.hasOwnProperty.call(e,d)&&l[d]&&(c[d]=l[d]);e.nodes||(e.nodes=[]);const h=r.child.nodes;if(h)for(const d of h)e.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,e))}}delete(t,i){for(const r of i)r.parent.nodes?.splice(r.parent.nodes.indexOf(r.child),1)}insert(t,i){const r=t.after?"after":t.before?"before":"in";i=[],t.after?i=this.getNodesMatchingPatterns([t.after],this.sduiDescriptor):t.before?i=this.getNodesMatchingPatterns([t.before],this.sduiDescriptor):t.in&&(i=this.getNodesMatchingPatterns([t.in],this.sduiDescriptor));const e=i[0];e&&(r=="in"?(e.child.nodes||(e.child.nodes=[]),e.child.nodes.push({...t.ui})):e.parent.nodes?.splice(e.parent.nodes.indexOf(e.child)+(r=="after"?1:0),0,{...t.ui}))}}var bc=Object.defineProperty,mc=Object.getOwnPropertyDescriptor,Zi=(s,t,i,r)=>{for(var e=r>1?void 0:r?mc(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&bc(t,i,e),e};const gc="sonic-sdui";let ri=class extends on(de(P)){constructor(){super(...arguments),this.sduiDescriptor={}}connectedCallback(){this.noShadowDom="",this.displayContents=!0,this.isFetchEnabled=this.hasAttribute("fetch"),super.connectedCallback()}willUpdate(s){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(s)}async updateContents(){if(!this.sduiDescriptor)return;const s={};Object.assign(s,pc,this.sduiDescriptor.library),this.sduiDescriptor.library=s,this.loadAssets(),await this.loadLibrary(),await this.transformSDUIDescriptor(),this.parseRootNodes()}removeChildren(){for(;[...this.children].filter(s=>s.nodeName!="SLOT").length>0;)this.removeChild(this.children[0])}loadAssets(){if(this.sduiDescriptor){if(this.sduiDescriptor.js)for(const s of this.sduiDescriptor.js)he.loadJS(s);if(this.sduiDescriptor.css)for(const s of this.sduiDescriptor.css)he.loadCSS(s)}}async transformSDUIDescriptor(){if(!this.hasAttribute("transformation"))return;const t=await(await fetch(this.getAttribute("transformation"))).json();await new fc().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 s=this.sduiDescriptor.nodes;s||(s=[]);const t={tagName:"sonic-toast-message-subscriber",attributes:{}};this.messagesKey&&(t.attributes={subDataProvider:this.messagesKey}),s.push(t),s.forEach(i=>this.appendChild(this.parseChild(i)))}parseChild(s){const t=s.tagName||"div";let{element:i,contentElement:r}=this.handleLibrary(s,t);return this.handleAttributes(s,i),i=this.handleMarkup(s,i),r||(r=i),this.handleChildNodes(s,r,i),this.handleInnerHTML(s,r),s.prefix||s.suffix?this.handlePrefixSuffix(s,i):i}handlePrefixSuffix(s,t){const i=document.createElement("div");return i.innerHTML=(s.prefix||"")+t.outerHTML+(s.suffix||""),i.style.display="contents",i}handleChildNodes(s,t,i){if(s.nodes){const r=s.nodes;for(const e of r){const n=this.parseChild(e);let o=t;e.parentElementSelector&&(o=i.querySelector(e.parentElementSelector)||t),o.shadowRoot?o.shadowRoot.appendChild(n):o.tagName.toLocaleLowerCase()=="template"?o.content.appendChild(n):o.appendChild(n)}}}handleLibrary(s,t){let i,r;if(s.libraryKey&&this.sduiDescriptor.library){i=this.parseChild(this.sduiDescriptor.library[s.libraryKey]||{tagName:"div"});const e=(this.sduiDescriptor.library[s.libraryKey]||{}).contentElementSelector;e&&(r=i.querySelector(e))}else i=document.createElement(t);return{element:i,contentElement:r}}handleAttributes(s,t){const i=s.attributes;for(const r in i){const e=i[r],n=ds.isObject(e)?JSON.stringify(e):e;t.setAttribute(r,n)}}handleMarkup(s,t){return s.markup&&(t=document.createElement("div"),t.style.display="contents",t.innerHTML=s.markup),t}handleInnerHTML(s,t){if(s.innerHTML)if(s.innerHTML.indexOf("wording_")!=-1){const i=this.getAncestorAttributeValue("wordingProvider");this.api?.post(i,{labels:[s.innerHTML.substring(8)]}).then(r=>{t&&(t.innerHTML+=r)})}else t&&(t.innerHTML+=s.innerHTML)}};Zi([a()],ri.prototype,"sduiKey",2),Zi([a()],ri.prototype,"messagesKey",2),ri=Zi([C(gc)],ri);var vc=Object.defineProperty,yc=Object.getOwnPropertyDescriptor,Mn=(s,t,i,r)=>{for(var e=r>1?void 0:r?yc(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&vc(t,i,e),e};let ni=class extends de(P){constructor(){super(...arguments),this._composition={},this.listeners=[]}get composition(){return this._composition}set composition(s){this._composition=s,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 s=this.listeners;this.listeners=[],s.forEach(t=>{this.publisher.offAssign(t.subscriber)})}parseComposition(s,t){if(s)for(const i in s){const r=s[i];if(typeof r=="string"){const e=r.split("."),n=e.shift();if(!n)continue;let o=E.get(n);o=ds.traverse(o,e);const l={publisher:o,subscriber:c=>{t[i]=c}};this.listeners.push(l),o.onAssign(l.subscriber),t._proxies_.set(i,o)}else{this.publisher[i]={};const e=new es({},t);t._proxies_.set(i,e);const n={publisher:e,subscriber:o=>{t[i]=o}};this.listeners.push(n),e.onAssign(n.subscriber),this.parseComposition(r,e)}}}render(){return g`<slot></slot>`}};ni.styles=[S`
1277
1277
  :host {
1278
1278
  display: contents;
1279
1279
  }
1280
- `],To([a({type:Object})],ii.prototype,"composition",1),ii=To([C("sonic-mix")],ii);var _c=Object.getOwnPropertyDescriptor,wc=(s,t,i,r)=>{for(var e=r>1?void 0:r?_c(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=n(e)||e);return e};const xc="sonic-value";let Io=class extends ce(P){connectedCallback(){this.setAttribute("subDataProvider",this.getAttribute("key")),super.connectedCallback()}render(){return typeof this.props=="object"||this.props===void 0?g`<slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>`:g`${U(this.props.toString())}<slot name="prefix"></slot><slot></slot
1281
- ><slot name="suffix"></slot>`}};Io=wc([C(xc)],Io);var Pc=Object.defineProperty,Cc=Object.getOwnPropertyDescriptor,Yi=(s,t,i,r)=>{for(var e=r>1?void 0:r?Cc(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&Pc(t,i,e),e};const Sc="sonic-t";let ri=class extends P{render(){return this.key?g`${Hn(this.key,this.unsafeHTML)}`:D}};Yi([a({type:String})],ri.prototype,"key",2),Yi([a({type:Boolean})],ri.prototype,"unsafeHTML",2),ri=Yi([C(Sc)],ri);var $c=Object.defineProperty,Ac=Object.getOwnPropertyDescriptor,xs=(s,t,i,r)=>{for(var e=r>1?void 0:r?Ac(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&$c(t,i,e),e};const kc="sonic-badge";let Oe=class extends P{constructor(){super(...arguments),this.type="default",this.variant="default",this.ellipsis=!1}render(){return g`
1280
+ `],Mn([a({type:Object})],ni.prototype,"composition",1),ni=Mn([C("sonic-mix")],ni);var _c=Object.getOwnPropertyDescriptor,wc=(s,t,i,r)=>{for(var e=r>1?void 0:r?_c(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=o(e)||e);return e};const xc="sonic-value";let Nn=class extends de(P){connectedCallback(){this.setAttribute("subDataProvider",this.getAttribute("key")),super.connectedCallback()}render(){return typeof this.props=="object"||this.props===void 0?g`<slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>`:g`${B(this.props.toString())}<slot name="prefix"></slot><slot></slot
1281
+ ><slot name="suffix"></slot>`}};Nn=wc([C(xc)],Nn);var Pc=Object.defineProperty,Cc=Object.getOwnPropertyDescriptor,Xi=(s,t,i,r)=>{for(var e=r>1?void 0:r?Cc(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&Pc(t,i,e),e};const Sc="sonic-t";let oi=class extends P{render(){return this.key?g`${qo(this.key,this.unsafeHTML)}`:k}};Xi([a({type:String})],oi.prototype,"key",2),Xi([a({type:Boolean})],oi.prototype,"unsafeHTML",2),oi=Xi([C(Sc)],oi);var $c=Object.defineProperty,Ac=Object.getOwnPropertyDescriptor,Ps=(s,t,i,r)=>{for(var e=r>1?void 0:r?Ac(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&$c(t,i,e),e};const kc="sonic-badge";let Ee=class extends P{constructor(){super(...arguments),this.type="default",this.variant="default",this.ellipsis=!1}render(){return g`
1282
1282
  <slot name="prefix"></slot>
1283
1283
  <slot></slot>
1284
1284
  <slot name="suffix"></slot>
1285
- `}};Oe.styles=[Ut,S`
1285
+ `}};Ee.styles=[Ht,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
- `],xs([a({type:String,reflect:!0})],Oe.prototype,"type",2),xs([a({type:String,reflect:!0})],Oe.prototype,"variant",2),xs([a({type:String,reflect:!0})],Oe.prototype,"size",2),xs([a({type:Boolean,reflect:!0})],Oe.prototype,"ellipsis",2),Oe=xs([C(kc)],Oe);class Dc{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 Oc=Object.defineProperty,Ec=Object.getOwnPropertyDescriptor,Ye=(s,t,i,r)=>{for(var e=r>1?void 0:r?Ec(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&Oc(t,i,e),e};const Lc="sonic-link";let pe=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(s){this._location=s,nt.updateComponentActiveState(this)}connectedCallback(){this.href&&this.href.indexOf("http")!=0&&(nt.onChange(this),this.location=document.location.href.replace(document.location.origin,"")),this.addEventListener("keypress",s=>{s.key==="Enter"&&this.shadowRoot?.querySelector("a")?.click()}),this.setFocusable(),super.connectedCallback()}setFocusable(){this.href?this.setAttribute("tabIndex","0"):this.removeAttribute("tabIndex")}disconnectedCallback(){nt.offChange(this),super.disconnectedCallback()}set target(s){this._target=s,Dc.fixBlankLink(this),this.requestUpdate()}get target(){return this._target}handlePushState(s){s.preventDefault(),nt.changeFromComponent(this)}updated(s){s.has("href")&&this.setFocusable()}render(){return this.href?g`
1425
+ `],Ps([a({type:String,reflect:!0})],Ee.prototype,"type",2),Ps([a({type:String,reflect:!0})],Ee.prototype,"variant",2),Ps([a({type:String,reflect:!0})],Ee.prototype,"size",2),Ps([a({type:Boolean,reflect:!0})],Ee.prototype,"ellipsis",2),Ee=Ps([C(kc)],Ee);class Dc{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 Oc=Object.defineProperty,Ec=Object.getOwnPropertyDescriptor,Ze=(s,t,i,r)=>{for(var e=r>1?void 0:r?Ec(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&Oc(t,i,e),e};const Lc="sonic-link";let be=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(s){this._location=s,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",s=>{s.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(s){this._target=s,Dc.fixBlankLink(this),this.requestUpdate()}get target(){return this._target}handlePushState(s){s.preventDefault(),at.changeFromComponent(this)}updated(s){s.has("href")&&this.setFocusable()}render(){return this.href?g`
1426
1426
  <a
1427
1427
  href="${this.href}"
1428
- aria-label=${this.ariaLabel||D}
1428
+ aria-label=${this.ariaLabel||k}
1429
1429
  target=${$(this.target)}
1430
1430
  @click=${this.pushState?this.handlePushState:null}
1431
1431
  >
1432
1432
  <slot></slot>
1433
1433
  </a>
1434
- `:g`<slot></slot>`}};pe.styles=[S`
1434
+ `:g`<slot></slot>`}};be.styles=[S`
1435
1435
  a {
1436
1436
  color: inherit;
1437
1437
  text-decoration: none;
1438
1438
  display: contents;
1439
1439
  }
1440
- `],Ye([a({type:String})],pe.prototype,"href",2),Ye([a({type:String,attribute:"data-aria-label"})],pe.prototype,"ariaLabel",2),Ye([a({type:String})],pe.prototype,"autoActive",2),Ye([a({type:String})],pe.prototype,"target",1),Ye([a({type:Boolean})],pe.prototype,"pushState",2),pe=Ye([C(Lc)],pe);var Tc=Object.defineProperty,Ic=Object.getOwnPropertyDescriptor,Ge=(s,t,i,r)=>{for(var e=r>1?void 0:r?Ic(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&Tc(t,i,e),e};const Mc="sonic-progress";let fe=class extends P{constructor(){super(...arguments),this.max=100,this.invert=!1,this.type="default"}render(){return g`
1440
+ `],Ze([a({type:String})],be.prototype,"href",2),Ze([a({type:String,attribute:"data-aria-label"})],be.prototype,"ariaLabel",2),Ze([a({type:String})],be.prototype,"autoActive",2),Ze([a({type:String})],be.prototype,"target",1),Ze([a({type:Boolean})],be.prototype,"pushState",2),be=Ze([C(Lc)],be);var Tc=Object.defineProperty,Ic=Object.getOwnPropertyDescriptor,Xe=(s,t,i,r)=>{for(var e=r>1?void 0:r?Ic(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&Tc(t,i,e),e};const Mc="sonic-progress";let me=class extends P{constructor(){super(...arguments),this.max=100,this.invert=!1,this.type="default"}render(){return g`
1441
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
- `}};fe.styles=[Ut,S`
1446
+ `}};me.styles=[Ht,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
- `],Ge([a({type:Number})],fe.prototype,"value",2),Ge([a({type:Number})],fe.prototype,"max",2),Ge([a({type:Boolean})],fe.prototype,"invert",2),Ge([a({type:String,reflect:!0})],fe.prototype,"type",2),Ge([a({type:String,reflect:!0})],fe.prototype,"size",2),fe=Ge([C(Mc)],fe);const Nc=S`
1558
+ `],Xe([a({type:Number})],me.prototype,"value",2),Xe([a({type:Number})],me.prototype,"max",2),Xe([a({type:Boolean})],me.prototype,"invert",2),Xe([a({type:String,reflect:!0})],me.prototype,"type",2),Xe([a({type:String,reflect:!0})],me.prototype,"size",2),me=Xe([C(Mc)],me);const Nc=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
- `,oi=S`
1569
+ `,ai=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
- `,ni=S`
1583
+ `,li=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
- `,Gi=S`
1590
+ `,Qi=S`
1591
1591
  * {
1592
1592
  box-sizing: border-box;
1593
1593
  }
@@ -1946,15 +1946,15 @@
1946
1946
  * @license
1947
1947
  * Copyright 2018 Google LLC
1948
1948
  * SPDX-License-Identifier: BSD-3-Clause
1949
- */const Zi=ne(class extends Ve{constructor(s){if(super(s),s.type!==$e.ATTRIBUTE||s.name!=="class"||s.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(s){return" "+Object.keys(s).filter((t=>s[t])).join(" ")+" "}update(s,[t]){if(this.st===void 0){this.st=new Set,s.strings!==void 0&&(this.nt=new Set(s.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 i=s.element.classList;for(const r of this.st)r in t||(i.remove(r),this.st.delete(r));for(const r in t){const e=!!t[r];e===this.st.has(r)||this.nt?.has(r)||(e?(i.add(r),this.st.add(r)):(i.remove(r),this.st.delete(r)))}return Pt}});var Fc=Object.defineProperty,jc=Object.getOwnPropertyDescriptor,B=(s,t,i,r)=>{for(var e=r>1?void 0:r?jc(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&Fc(t,i,e),e};const Rc="sonic-input";let z=class extends Gs(He(st(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 s=this.getFormPublisher();if(!s)return;s[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 s=this.getFormPublisher();if(!s)return;s[this.sameValueAsName].offAssign(this.sameValueAsHandle)}}escapeRegExp(s){return s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}willUpdate(s){this.hasSlotOrProps(),this.autoActive&&s.has("value")&&(this.active=!!this.value),super.willUpdate(s)}setSelectionRange(s,t){this.input.setSelectionRange(s,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(s){if(!this.hasAttribute("inputDelayMs")){super.handleChange(s);return}this.changeTimeoutId&&clearTimeout(this.changeTimeoutId),this.changeTimeoutId=setTimeout(()=>super.handleChange(s),parseInt(this.getAttribute("inputDelayMs")))}togglePasswordVisibility(s){s.preventDefault(),s.stopPropagation(),this.isPassword=!this.isPassword,this._type=this.isPassword?"password":"text"}render(){const s={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix,"no-suffix":!this.hasSuffix,"no-prefix":!this.hasPrefix};return g`
1949
+ */const Ji=le(class extends Be{constructor(s){if(super(s),s.type!==Ae.ATTRIBUTE||s.name!=="class"||s.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(s){return" "+Object.keys(s).filter((t=>s[t])).join(" ")+" "}update(s,[t]){if(this.st===void 0){this.st=new Set,s.strings!==void 0&&(this.nt=new Set(s.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 i=s.element.classList;for(const r of this.st)r in t||(i.remove(r),this.st.delete(r));for(const r in t){const e=!!t[r];e===this.st.has(r)||this.nt?.has(r)||(e?(i.add(r),this.st.add(r)):(i.remove(r),this.st.delete(r)))}return At}});var Fc=Object.defineProperty,jc=Object.getOwnPropertyDescriptor,q=(s,t,i,r)=>{for(var e=r>1?void 0:r?jc(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&Fc(t,i,e),e};const Rc="sonic-input";let z=class extends Zs(qe(it(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 s=this.getFormPublisher();if(!s)return;s[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 s=this.getFormPublisher();if(!s)return;s[this.sameValueAsName].offAssign(this.sameValueAsHandle)}}escapeRegExp(s){return s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}willUpdate(s){this.hasSlotOrProps(),this.autoActive&&s.has("value")&&(this.active=!!this.value),super.willUpdate(s)}setSelectionRange(s,t){this.input.setSelectionRange(s,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(s){if(!this.hasAttribute("inputDelayMs")){super.handleChange(s);return}this.changeTimeoutId&&clearTimeout(this.changeTimeoutId),this.changeTimeoutId=setTimeout(()=>super.handleChange(s),parseInt(this.getAttribute("inputDelayMs")))}togglePasswordVisibility(s){s.preventDefault(),s.stopPropagation(),this.isPassword=!this.isPassword,this._type=this.isPassword?"password":"text"}render(){const s={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix,"no-suffix":!this.hasSuffix,"no-prefix":!this.hasPrefix};return g`
1950
1950
  <label for="${this.id||"form-element"}" class="${this.hasLabel?"form-label":"hidden"}"
1951
- >${this.label?U(this.label):""}<slot
1951
+ >${this.label?B(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 ${Zi(s)}">
1957
+ <div @click=${this.inlineContentFocus} class="form-control ${Ji(s)}">
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
@@ -2008,10 +2008,10 @@
2008
2008
  name="description"
2009
2009
  @slotchange=${this.hasSlotOrProps}
2010
2010
  class="${this.hasDescription?"form-description":"hidden"}"
2011
- >${this.description?g`${U(this.description)}`:D}</slot>
2011
+ >${this.description?g`${B(this.description)}`:k}</slot>
2012
2012
  <slot name="list"></slot>
2013
2013
  </div>
2014
- `}};z.styles=[Ut,Gi,oi,ni,Nc,S`
2014
+ `}};z.styles=[Ht,Qi,ai,li,Nc,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
- `],B([a({type:String,reflect:!0})],z.prototype,"size",2),B([a({type:String})],z.prototype,"inputmode",2),B([a({type:String})],z.prototype,"list",2),B([a({type:String})],z.prototype,"placeholder",2),B([a({type:String})],z.prototype,"pattern",2),B([a({type:String})],z.prototype,"min",2),B([a({type:String})],z.prototype,"max",2),B([a({type:Boolean,reflect:!0})],z.prototype,"readonly",2),B([a({type:Number})],z.prototype,"step",2),B([a({type:Number})],z.prototype,"minlength",2),B([a({type:Number})],z.prototype,"maxlength",2),B([a({type:String})],z.prototype,"src",2),B([a({type:Boolean,reflect:!0})],z.prototype,"inlineContent",2),B([a({type:Boolean})],z.prototype,"disableInlineContentFocus",2),B([a({type:Boolean})],z.prototype,"showPasswordToggle",2),B([a({type:Boolean})],z.prototype,"autoActive",2),B([a({type:Boolean,reflect:!0})],z.prototype,"active",2),B([dt({slot:"label",flatten:!0})],z.prototype,"slotLabelNodes",2),B([dt({slot:"description",flatten:!0})],z.prototype,"slotDescriptionNodes",2),B([dt({slot:"suffix",flatten:!0})],z.prototype,"slotSuffixNodes",2),B([dt({slot:"prefix",flatten:!0})],z.prototype,"slotPrefixNodes",2),B([re("input")],z.prototype,"input",2),B([T()],z.prototype,"hasDescription",2),B([T()],z.prototype,"hasLabel",2),B([T()],z.prototype,"hasSuffix",2),B([T()],z.prototype,"hasPrefix",2),B([T()],z.prototype,"isPassword",2),z=B([C(Rc)],z);const Mo=S`
2022
+ `],q([a({type:String,reflect:!0})],z.prototype,"size",2),q([a({type:String})],z.prototype,"inputmode",2),q([a({type:String})],z.prototype,"list",2),q([a({type:String})],z.prototype,"placeholder",2),q([a({type:String})],z.prototype,"pattern",2),q([a({type:String})],z.prototype,"min",2),q([a({type:String})],z.prototype,"max",2),q([a({type:Boolean,reflect:!0})],z.prototype,"readonly",2),q([a({type:Number})],z.prototype,"step",2),q([a({type:Number})],z.prototype,"minlength",2),q([a({type:Number})],z.prototype,"maxlength",2),q([a({type:String})],z.prototype,"src",2),q([a({type:Boolean,reflect:!0})],z.prototype,"inlineContent",2),q([a({type:Boolean})],z.prototype,"disableInlineContentFocus",2),q([a({type:Boolean})],z.prototype,"showPasswordToggle",2),q([a({type:Boolean})],z.prototype,"autoActive",2),q([a({type:Boolean,reflect:!0})],z.prototype,"active",2),q([ft({slot:"label",flatten:!0})],z.prototype,"slotLabelNodes",2),q([ft({slot:"description",flatten:!0})],z.prototype,"slotDescriptionNodes",2),q([ft({slot:"suffix",flatten:!0})],z.prototype,"slotSuffixNodes",2),q([ft({slot:"prefix",flatten:!0})],z.prototype,"slotPrefixNodes",2),q([oe("input")],z.prototype,"input",2),q([T()],z.prototype,"hasDescription",2),q([T()],z.prototype,"hasLabel",2),q([T()],z.prototype,"hasSuffix",2),q([T()],z.prototype,"hasPrefix",2),q([T()],z.prototype,"isPassword",2),z=q([C(Rc)],z);const Fn=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 zc=Object.defineProperty,Uc=Object.getOwnPropertyDescriptor,Ht=(s,t,i,r)=>{for(var e=r>1?void 0:r?Uc(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&zc(t,i,e),e};const Vc="sonic-pop";let ct=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=s=>{s.key==="Escape"&&this.open&&(s.stopPropagation(),this.hide())}}runPositioningLoop(){this.positioningRuns&&(this.positioningRuns=!0,this.computePosition(this.placement),window.requestAnimationFrame(()=>this.runPositioningLoop()))}toggle(s){if(this.open&&this.noToggle)return;const t=s;s.type=="keydown"&&(t.key!="ArrowDown"||this.open)||(this.open||(this.triggerElement=s.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(){G.everyAncestors(this,s=>{const t=s;if(!t.className)return!0;if([...t.classList].includes("@container")){const i=t.style;i.zIndex="999999999";const r=getComputedStyle(t);return r.position!=="relative"&&r.position!=="absolute"&&(i.position="relative"),this.ancestorsHavingZIndex.add(s),!1}return!0})}resetZindexes(){this.ancestorsHavingZIndex.forEach(s=>{s.style.removeProperty("position"),s.style.removeProperty("z-index")}),this.ancestorsHavingZIndex.clear()}_handleClosePop(s){const t=s.composedPath(),i=t[0];ct.pops.forEach(r=>{const e=t.includes(r),o=t.includes(r.querySelector('[slot="content"]')),n=G.getAncestorAttributeValue(i,"data-on-select")==="keep";s.type=="pointerdown"&&e||s.type=="click"&&(e&&n||!o)||r.hide()})}connectedCallback(){super.connectedCallback(),ct.pops.size==0&&(document.addEventListener("pointerdown",this._handleClosePop),document.addEventListener("click",this._handleClosePop),document.addEventListener("keydown",this._handleKeyDown)),ct.pops.add(this)}firstUpdated(s){super.firstUpdated(s),this.resizeObserver.observe(this.popContent)}disconnectedCallback(){this.popContent&&this.resizeObserver.unobserve(this.popContent),super.disconnectedCallback(),ct.pops.delete(this),ct.pops.size==0&&(document.removeEventListener("pointerdown",this._handleClosePop),document.removeEventListener("click",this._handleClosePop),document.removeEventListener("keydown",this._handleKeyDown))}computePosition(s){const t=s.split(" "),i=t[0];let r=t[1];const e=5,o=this.getBoundingClientRect(),l=G.getScrollableAncestor(this.popContent)?.getBoundingClientRect(),c=Math.max(0,l?.left||0)+e,h=Math.max(0,l?.top||0)+e,p=Math.min(window.innerWidth,l?.right||window.innerWidth)-e,d=Math.min(window.innerHeight,l?.bottom||window.innerHeight)-e,f=o.left,_=o.top;let y=f,m=_,v=this.popContent?.getBoundingClientRect();const A=_-v.height,u=f-v.width,b=f+o.width,w=_+o.height,x=f+(o.width-v.width)*.5,k=_+(o.height-v.height)*.5;switch(i){case"bottom":m=w,r=="center"&&(y=x);break;case"top":m=A,r=="center"&&(y=x);break;case"left":y=u,r=="center"&&(m=k);break;case"right":y=b,r=="center"&&(m=k);break}this.lastContentX+=y-v.x,this.lastContentY+=m-v.y,Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),v=this.popContent?.getBoundingClientRect(),v.x<c&&i=="left"&&(y=b),v.y<h&&i=="top"&&(m=w),v.x+v.width>p&&i=="right"&&(y=u),v.y+v.height>d&&i=="bottom"&&(m=A),this.lastContentX+=y-v.x,this.lastContentY+=m-v.y,Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),v=this.popContent?.getBoundingClientRect(),v.x<c&&(this.lastContentX+=c-v.x),v.y<h&&(this.lastContentY+=h-v.y),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),v=this.popContent?.getBoundingClientRect(),v.x+v.width>p&&(this.lastContentX+=p-(v.x+v.width)),v.y+v.height>d&&(this.lastContentY+=d-(v.y+v.height)),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`})}render(){return g`
2041
+ `;var zc=Object.defineProperty,Uc=Object.getOwnPropertyDescriptor,Wt=(s,t,i,r)=>{for(var e=r>1?void 0:r?Uc(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&zc(t,i,e),e};const Vc="sonic-pop";let ht=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=s=>{s.key==="Escape"&&this.open&&(s.stopPropagation(),this.hide())}}runPositioningLoop(){this.positioningRuns&&(this.positioningRuns=!0,this.computePosition(this.placement),window.requestAnimationFrame(()=>this.runPositioningLoop()))}toggle(s){if(this.open&&this.noToggle)return;const t=s;s.type=="keydown"&&(t.key!="ArrowDown"||this.open)||(this.open||(this.triggerElement=s.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(){Z.everyAncestors(this,s=>{const t=s;if(!t.className)return!0;if([...t.classList].includes("@container")){const i=t.style;i.zIndex="999999999";const r=getComputedStyle(t);return r.position!=="relative"&&r.position!=="absolute"&&(i.position="relative"),this.ancestorsHavingZIndex.add(s),!1}return!0})}resetZindexes(){this.ancestorsHavingZIndex.forEach(s=>{s.style.removeProperty("position"),s.style.removeProperty("z-index")}),this.ancestorsHavingZIndex.clear()}_handleClosePop(s){const t=s.composedPath(),i=t[0];ht.pops.forEach(r=>{const e=t.includes(r),n=t.includes(r.querySelector('[slot="content"]')),o=Z.getAncestorAttributeValue(i,"data-on-select")==="keep";s.type=="pointerdown"&&e||s.type=="click"&&(e&&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(s){super.firstUpdated(s),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(s){const t=s.split(" "),i=t[0];let r=t[1];const e=5,n=this.getBoundingClientRect(),l=Z.getScrollableAncestor(this.popContent)?.getBoundingClientRect(),c=Math.max(0,l?.left||0)+e,h=Math.max(0,l?.top||0)+e,u=Math.min(window.innerWidth,l?.right||window.innerWidth)-e,d=Math.min(window.innerHeight,l?.bottom||window.innerHeight)-e,p=n.left,w=n.top;let v=p,m=w,y=this.popContent?.getBoundingClientRect();const D=w-y.height,f=p-y.width,b=p+n.width,x=w+n.height,_=p+(n.width-y.width)*.5,O=w+(n.height-y.height)*.5;switch(i){case"bottom":m=x,r=="center"&&(v=_);break;case"top":m=D,r=="center"&&(v=_);break;case"left":v=f,r=="center"&&(m=O);break;case"right":v=b,r=="center"&&(m=O);break}this.lastContentX+=v-y.x,this.lastContentY+=m-y.y,Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),y=this.popContent?.getBoundingClientRect(),y.x<c&&i=="left"&&(v=b),y.y<h&&i=="top"&&(m=x),y.x+y.width>u&&i=="right"&&(v=f),y.y+y.height>d&&i=="bottom"&&(m=D),this.lastContentX+=v-y.x,this.lastContentY+=m-y.y,Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),y=this.popContent?.getBoundingClientRect(),y.x<c&&(this.lastContentX+=c-y.x),y.y<h&&(this.lastContentY+=h-y.y),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),y=this.popContent?.getBoundingClientRect(),y.x+y.width>u&&(this.lastContentX+=u-(y.x+y.width)),y.y+y.height>d&&(this.lastContentY+=d-(y.y+y.height)),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`})}render(){return g`
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
- `}};ct.pops=new Set,ct.styles=[S`
2055
+ `}};ht.pops=new Set,ht.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
- `,Mo],Ht([T()],ct.prototype,"open",2),Ht([re("slot:not([name=content])")],ct.prototype,"popBtn",2),Ht([re("slot[name=content]")],ct.prototype,"popContent",2),Ht([a({type:Boolean})],ct.prototype,"noToggle",2),Ht([a({type:Boolean,reflect:!0})],ct.prototype,"inline",2),Ht([a({type:Boolean})],ct.prototype,"manual",2),Ht([a({type:String,reflect:!0})],ct.prototype,"shadow",2),Ht([a({type:String})],ct.prototype,"placement",2),Ht([T()],ct.prototype,"triggerElement",2),ct=Ht([C(Vc)],ct);var Bc=Object.getOwnPropertyDescriptor,Hc=(s,t,i,r)=>{for(var e=r>1?void 0:r?Bc(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=n(e)||e);return e};const qc="sonic-menu-item";let No=class extends R{constructor(){super()}connectedCallback(){this.hasAttribute("variant")||(this.variant="ghost"),this.hasAttribute("type")||(this.type="default"),this.hasAttribute("shape")||(this.shape="block");const s=this.shape==="square"||this.shape==="circle";!this.hasAttribute("align")&&!s&&(this.align="left"),super.connectedCallback()}};No=Hc([C(qc)],No);/**
2087
+ `,Fn],Wt([T()],ht.prototype,"open",2),Wt([oe("slot:not([name=content])")],ht.prototype,"popBtn",2),Wt([oe("slot[name=content]")],ht.prototype,"popContent",2),Wt([a({type:Boolean})],ht.prototype,"noToggle",2),Wt([a({type:Boolean,reflect:!0})],ht.prototype,"inline",2),Wt([a({type:Boolean})],ht.prototype,"manual",2),Wt([a({type:String,reflect:!0})],ht.prototype,"shadow",2),Wt([a({type:String})],ht.prototype,"placement",2),Wt([T()],ht.prototype,"triggerElement",2),ht=Wt([C(Vc)],ht);var Bc=Object.getOwnPropertyDescriptor,Hc=(s,t,i,r)=>{for(var e=r>1?void 0:r?Bc(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=o(e)||e);return e};const qc="sonic-menu-item";let jn=class extends R{constructor(){super()}connectedCallback(){this.hasAttribute("variant")||(this.variant="ghost"),this.hasAttribute("type")||(this.type="default"),this.hasAttribute("shape")||(this.shape="block");const s=this.shape==="square"||this.shape==="circle";!this.hasAttribute("align")&&!s&&(this.align="left"),super.connectedCallback()}};jn=Hc([C(qc)],jn);/**
2088
2088
  * @license
2089
2089
  * Copyright 2021 Google LLC
2090
2090
  * SPDX-License-Identifier: BSD-3-Clause
2091
- */class Fo{constructor(t,{target:i,config:r,callback:e,skipInitial:o}){this.t=new Set,this.o=!1,this.i=!1,this.h=t,i!==null&&this.t.add(i??t),this.l=r,this.o=o??this.o,this.callback=e,window.ResizeObserver?(this.u=new ResizeObserver((n=>{this.handleChanges(n),this.h.requestUpdate()})),t.addController(this)):console.warn("ResizeController error: browser does not support ResizeObserver.")}handleChanges(t){this.value=this.callback?.(t,this.u)}hostConnected(){for(const t of this.t)this.observe(t)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.o&&this.i&&this.handleChanges([]),this.i=!1}observe(t){this.t.add(t),this.u.observe(t,this.l),this.i=!0,this.h.requestUpdate()}unobserve(t){this.t.delete(t),this.u.unobserve(t)}disconnect(){this.u.disconnect()}}var Wc=Object.defineProperty,Kc=Object.getOwnPropertyDescriptor,ut=(s,t,i,r)=>{for(var e=r>1?void 0:r?Kc(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&Wc(t,i,e),e};let ht=class extends Ri(oo(ro(ce(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 Fo(this,{}),this.isPopVisible=!1,this.searchDataProvider="",this.initSearchDataProvider="",this.queueDataProvider="",this.initQueueDataProvider="",this.lastValidSearch="",this.updateSearchParameter=s=>{if(s==""&&this.isSearchParameter()){this.lastValidSearch="";return}this.queryQueueListItem(this.queueDataProvider,this.findSelection,this.setSearchFromSelection)===!1&&this.isSearchParameter()&&(this.lastValidSearch=s,this.searchPublisher?.set(this.lastValidSearch))},this.updatePopContentVisibility=s=>{this.isPopVisible=(s?.length||0)>=this.minSearchLength},this.initSearchParameter=()=>{this.queryQueueListItem(this.initQueueDataProvider,this.findSelection,this.setSearchFromSelection)},this.selectListItem=s=>{const t=this.propertyName==="_self"?s:s[this.propertyName||this.name];this.formValuePublisher?.set(t)},this.findSearchedItem=s=>(this.propertyName==="_self"?s:s[this.propertyName||this.searchParameter||this.name])==this.searchPublisher?.get(),this.findSelection=s=>(this.propertyName==="_self"?s:s[this.propertyName||this.name])==this.value,this.setSearchFromSelection=s=>{this.lastValidSearch=this.propertyName==="_self"?s:s[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=s=>{setTimeout(()=>{const t=document.activeElement;if(!t){this.popElement.hide();return}const i=this.popElement.contains(t)||this.popElement.shadowRoot?.contains(t),r=this.contains(t)||this.shadowRoot?.contains(t);!i&&!r&&this.popElement.hide()},0)}}hasSlotOrProps(){this.hasInputPrefix=!!this.slotInputPrefixNodes?.length}isSearchParameter(){return!this.searchParameter||this.searchParameter===this.name}connectedCallback(){super.connectedCallback();const s=this.searchParameter||this.name,t=this.getAncestorAttributeValue("formDataProvider"),i=t+"__"+this.name+"__autocomplete";this.initSearchDataProvider=`${i}_init_search__`,this.initQueueDataProvider=`${i}_init_queue__`,this.searchDataProvider=`${i}_search__`,this.queueDataProvider=`${i}_queue__`;const r=E.get;this.searchPublisher=r(this.searchDataProvider)[s],this.formValuePublisher=mt(r(t),this.name),this.countPublisher=r(this.queueDataProvider).resultCount,this.initCountPublisher=r(this.initQueueDataProvider).resultCount,this.value&&E.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(s){super.firstUpdated(s),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 s=E.get;s(this.initSearchDataProvider).delete(),s(this.initQueueDataProvider).delete(),s(this.searchDataProvider).delete(),s(this.queueDataProvider).delete(),this.searchPublisher?.offAssign(this.updatePopContentVisibility),this.popElement.removeEventListener("focusout",this.handleFocusOut)}queryQueueListItem(s,t,i){const r=E.get(s);let e,o=r.get();if(!o||!Array.isArray(o)||!o.length)return!1;for(const n of o){let l=E.get(n.dataProvider).get();if(Array.isArray(l)&&(e=l.find(t),e))break}return e?(i(e),!0):!1}setSelectionRange(s,t){this.querySelector("sonic-input")?.setSelectionRange(s,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 g`
2091
+ */class Rn{constructor(t,{target:i,config:r,callback:e,skipInitial:n}){this.t=new Set,this.o=!1,this.i=!1,this.h=t,i!==null&&this.t.add(i??t),this.l=r,this.o=n??this.o,this.callback=e,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 Wc=Object.defineProperty,Kc=Object.getOwnPropertyDescriptor,bt=(s,t,i,r)=>{for(var e=r>1?void 0:r?Kc(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&Wc(t,i,e),e};let dt=class extends Bi(ln(an(de(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 Rn(this,{}),this.isPopVisible=!1,this.searchDataProvider="",this.initSearchDataProvider="",this.queueDataProvider="",this.initQueueDataProvider="",this.lastValidSearch="",this.updateSearchParameter=s=>{if(s==""&&this.isSearchParameter()){this.lastValidSearch="";return}this.queryQueueListItem(this.queueDataProvider,this.findSelection,this.setSearchFromSelection)===!1&&this.isSearchParameter()&&(this.lastValidSearch=s,this.searchPublisher?.set(this.lastValidSearch))},this.updatePopContentVisibility=s=>{this.isPopVisible=(s?.length||0)>=this.minSearchLength},this.initSearchParameter=()=>{this.queryQueueListItem(this.initQueueDataProvider,this.findSelection,this.setSearchFromSelection)},this.selectListItem=s=>{const t=this.propertyName==="_self"?s:s[this.propertyName||this.name];this.formValuePublisher?.set(t)},this.findSearchedItem=s=>(this.propertyName==="_self"?s:s[this.propertyName||this.searchParameter||this.name])==this.searchPublisher?.get(),this.findSelection=s=>(this.propertyName==="_self"?s:s[this.propertyName||this.name])==this.value,this.setSearchFromSelection=s=>{this.lastValidSearch=this.propertyName==="_self"?s:s[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=s=>{setTimeout(()=>{const t=document.activeElement;if(!t){this.popElement.hide();return}const i=this.popElement.contains(t)||this.popElement.shadowRoot?.contains(t),r=this.contains(t)||this.shadowRoot?.contains(t);!i&&!r&&this.popElement.hide()},0)}}hasSlotOrProps(){this.hasInputPrefix=!!this.slotInputPrefixNodes?.length}isSearchParameter(){return!this.searchParameter||this.searchParameter===this.name}connectedCallback(){super.connectedCallback();const s=this.searchParameter||this.name,t=this.getAncestorAttributeValue("formDataProvider"),i=t+"__"+this.name+"__autocomplete";this.initSearchDataProvider=`${i}_init_search__`,this.initQueueDataProvider=`${i}_init_queue__`,this.searchDataProvider=`${i}_search__`,this.queueDataProvider=`${i}_queue__`;const r=E.get;this.searchPublisher=r(this.searchDataProvider)[s],this.formValuePublisher=yt(r(t),this.name),this.countPublisher=r(this.queueDataProvider).resultCount,this.initCountPublisher=r(this.initQueueDataProvider).resultCount,this.value&&E.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(s){super.firstUpdated(s),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 s=E.get;s(this.initSearchDataProvider).delete(),s(this.initQueueDataProvider).delete(),s(this.searchDataProvider).delete(),s(this.queueDataProvider).delete(),this.searchPublisher?.offAssign(this.updatePopContentVisibility),this.popElement.removeEventListener("focusout",this.handleFocusOut)}queryQueueListItem(s,t,i){const r=E.get(s);let e,n=r.get();if(!n||!Array.isArray(n)||!n.length)return!1;for(const o of n){let l=E.get(o.dataProvider).get();if(Array.isArray(l)&&(e=l.find(t),e))break}return e?(i(e),!0):!1}setSelectionRange(s,t){this.querySelector("sonic-input")?.setSelectionRange(s,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 g`
2092
2092
  <sonic-pop manual style="display:block;" @hide=${this.handleHide}>
2093
2093
  <sonic-input
2094
2094
  class="form-element"
@@ -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
- `}};ht.styles=[fs,S`
2156
+ `}};dt.styles=[bs,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
- `],ut([a({type:String})],ht.prototype,"size",2),ut([a({type:String})],ht.prototype,"placeholder",2),ut([a()],ht.prototype,"filteredFields",2),ut([a({type:Boolean,reflect:!0})],ht.prototype,"readonly",2),ut([a({type:String})],ht.prototype,"dataProviderExpression",2),ut([a({type:Number})],ht.prototype,"minSearchLength",2),ut([a({type:Boolean})],ht.prototype,"select",2),ut([a({type:String})],ht.prototype,"key",2),ut([a({type:String})],ht.prototype,"searchParameter",2),ut([a({type:String})],ht.prototype,"propertyName",2),ut([dt({slot:"prefix",flatten:!0})],ht.prototype,"slotInputPrefixNodes",2),ut([T()],ht.prototype,"hasInputPrefix",2),ut([re("sonic-pop")],ht.prototype,"popElement",2),ut([T()],ht.prototype,"isPopVisible",2),ut([T()],ht.prototype,"lastValidSearch",2),ht=ut([C("sonic-input-autocomplete")],ht);var Yc=Object.defineProperty,Gc=Object.getOwnPropertyDescriptor,vt=(s,t,i,r)=>{for(var e=r>1?void 0:r?Gc(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&Yc(t,i,e),e};const Zc="sonic-password-helper";let pt=class extends ce(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)},E.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].onAssign(this.checkValue))}disconnectedCallback(){this.checkValue&&this.name&&E.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].offAssign(this.checkValue),super.disconnectedCallback()}getIcon(t){return t?g`<sonic-icon library="heroicons" name="face-smile"></sonic-icon>`:g`<sonic-icon library="heroicons" name="x-mark"></sonic-icon>`}render(){return this.hasNoChar?D:g`
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([ft({slot:"prefix",flatten:!0})],dt.prototype,"slotInputPrefixNodes",2),bt([T()],dt.prototype,"hasInputPrefix",2),bt([oe("sonic-pop")],dt.prototype,"popElement",2),bt([T()],dt.prototype,"isPopVisible",2),bt([T()],dt.prototype,"lastValidSearch",2),dt=bt([C("sonic-input-autocomplete")],dt);var Yc=Object.defineProperty,Gc=Object.getOwnPropertyDescriptor,wt=(s,t,i,r)=>{for(var e=r>1?void 0:r?Gc(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&Yc(t,i,e),e};const Zc="sonic-password-helper";let mt=class extends de(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)},E.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].onAssign(this.checkValue))}disconnectedCallback(){this.checkValue&&this.name&&E.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].offAssign(this.checkValue),super.disconnectedCallback()}getIcon(t){return t?g`<sonic-icon library="heroicons" name="face-smile"></sonic-icon>`:g`<sonic-icon library="heroicons" name="x-mark"></sonic-icon>`}render(){return this.hasNoChar?k:g`
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
- `}};vt([a()],pt.prototype,"name",2),vt([a()],pt.prototype,"minChars",2),vt([T()],pt.prototype,"hasNoChar",2),vt([T()],pt.prototype,"hasEnoughChars",2),vt([T()],pt.prototype,"hasMinuscule",2),vt([T()],pt.prototype,"hasMajuscule",2),vt([T()],pt.prototype,"hasNumber",2),vt([T()],pt.prototype,"hasSpecialChar",2),vt([a()],pt.prototype,"wording_password_helper_decription",2),vt([a()],pt.prototype,"wording_password_helper_min_length",2),vt([a()],pt.prototype,"wording_password_helper_lower_case",2),vt([a()],pt.prototype,"wording_password_helper_upper_case",2),vt([a()],pt.prototype,"wording_password_helper_number",2),vt([a()],pt.prototype,"wording_password_helper_special_char",2),pt=vt([C(Zc)],pt);var Xc=Object.defineProperty,Qc=Object.getOwnPropertyDescriptor,Ee=(s,t,i,r)=>{for(var e=r>1?void 0:r?Qc(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&Xc(t,i,e),e};const Jc="sonic-same-value-helper";let be=class extends ce(P){constructor(){super(...arguments),this.descriptionWhenEqual="Correspondance : oui",this.descriptionWhenNotEqual="Correspondance : non",this.areEqual=!1,this.hasNoChar=!0}connectedCallback(){super.connectedCallback();const s=E.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=mt(s,this.name).get()==mt(s,this.sameValueAs).get())},mt(s,this.name).onAssign(this.checkValue),mt(s,this.sameValueAs).onAssign(this.checkValue))}disconnectedCallback(){if(this.checkValue&&this.name&&this.sameValueAs){const s=E.get(this.getAncestorAttributeValue("formDataProvider"));mt(s,this.name).offAssign(this.checkValue),mt(s,this.sameValueAs).offAssign(this.checkValue)}super.disconnectedCallback()}render(){return this.hasNoChar?D:g`
2198
+ `}};wt([a()],mt.prototype,"name",2),wt([a()],mt.prototype,"minChars",2),wt([T()],mt.prototype,"hasNoChar",2),wt([T()],mt.prototype,"hasEnoughChars",2),wt([T()],mt.prototype,"hasMinuscule",2),wt([T()],mt.prototype,"hasMajuscule",2),wt([T()],mt.prototype,"hasNumber",2),wt([T()],mt.prototype,"hasSpecialChar",2),wt([a()],mt.prototype,"wording_password_helper_decription",2),wt([a()],mt.prototype,"wording_password_helper_min_length",2),wt([a()],mt.prototype,"wording_password_helper_lower_case",2),wt([a()],mt.prototype,"wording_password_helper_upper_case",2),wt([a()],mt.prototype,"wording_password_helper_number",2),wt([a()],mt.prototype,"wording_password_helper_special_char",2),mt=wt([C(Zc)],mt);var Xc=Object.defineProperty,Qc=Object.getOwnPropertyDescriptor,Le=(s,t,i,r)=>{for(var e=r>1?void 0:r?Qc(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&Xc(t,i,e),e};const Jc="sonic-same-value-helper";let ge=class extends de(P){constructor(){super(...arguments),this.descriptionWhenEqual="Correspondance : oui",this.descriptionWhenNotEqual="Correspondance : non",this.areEqual=!1,this.hasNoChar=!0}connectedCallback(){super.connectedCallback();const s=E.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=yt(s,this.name).get()==yt(s,this.sameValueAs).get())},yt(s,this.name).onAssign(this.checkValue),yt(s,this.sameValueAs).onAssign(this.checkValue))}disconnectedCallback(){if(this.checkValue&&this.name&&this.sameValueAs){const s=E.get(this.getAncestorAttributeValue("formDataProvider"));yt(s,this.name).offAssign(this.checkValue),yt(s,this.sameValueAs).offAssign(this.checkValue)}super.disconnectedCallback()}render(){return this.hasNoChar?k:g`
2199
2199
  <span>
2200
- ${this.areEqual?U(this.descriptionWhenEqual):U(this.descriptionWhenNotEqual)}
2200
+ ${this.areEqual?B(this.descriptionWhenEqual):B(this.descriptionWhenNotEqual)}
2201
2201
  </span>
2202
- `}};Ee([a()],be.prototype,"name",2),Ee([a()],be.prototype,"sameValueAs",2),Ee([a()],be.prototype,"descriptionWhenEqual",2),Ee([a()],be.prototype,"descriptionWhenNotEqual",2),Ee([T()],be.prototype,"areEqual",2),Ee([T()],be.prototype,"hasNoChar",2),be=Ee([C(Jc)],be);var th=Object.defineProperty,eh=Object.getOwnPropertyDescriptor,Jt=(s,t,i,r)=>{for(var e=r>1?void 0:r?eh(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&th(t,i,e),e};const sh="sonic-checkbox";let yt=class extends Ei(Gs(He(st(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(s){this.hasSlotOrProps(),super.willUpdate(s),s.has("type")&&(this.type="checkbox")}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length)}render(){return g`
2202
+ `}};Le([a()],ge.prototype,"name",2),Le([a()],ge.prototype,"sameValueAs",2),Le([a()],ge.prototype,"descriptionWhenEqual",2),Le([a()],ge.prototype,"descriptionWhenNotEqual",2),Le([T()],ge.prototype,"areEqual",2),Le([T()],ge.prototype,"hasNoChar",2),ge=Le([C(Jc)],ge);var th=Object.defineProperty,eh=Object.getOwnPropertyDescriptor,ee=(s,t,i,r)=>{for(var e=r>1?void 0:r?eh(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&th(t,i,e),e};const sh="sonic-checkbox";let xt=class extends Mi(Zs(qe(it(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(s){this.hasSlotOrProps(),super.willUpdate(s),s.has("type")&&(this.type="checkbox")}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length)}render(){return g`
2203
2203
  <label class="checkbox-container ${this.disabled?"disabled":""}">
2204
2204
 
2205
2205
  <span class="icon-container">
@@ -2221,13 +2221,13 @@
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?B(this.label):""}
2225
2225
  <slot @slotchange=${this.hasSlotOrProps}></slot>
2226
- <slot @slotchange=${this.hasSlotOrProps} name="description" class="${this.hasDescription?"description":"hidden"} ">${this.description?g`${U(this.description)}`:""}</slot>
2226
+ <slot @slotchange=${this.hasSlotOrProps} name="description" class="${this.hasDescription?"description":"hidden"} ">${this.description?g`${B(this.description)}`:""}</slot>
2227
2227
  </div>
2228
2228
  </label>
2229
2229
  </label>
2230
- `}};yt.styles=[Ut,S`
2230
+ `}};xt.styles=[Ht,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
- `],Jt([a({type:Boolean,reflect:!0})],yt.prototype,"touched",2),Jt([a({type:String})],yt.prototype,"iconName",2),Jt([a({type:String})],yt.prototype,"indeterminateIconName",2),Jt([a({type:Boolean})],yt.prototype,"showAsIndeterminate",2),Jt([a({type:Boolean})],yt.prototype,"hasDescription",2),Jt([a({type:Boolean})],yt.prototype,"hasLabel",2),Jt([dt({flatten:!0})],yt.prototype,"slotLabelNodes",2),Jt([dt({slot:"description",flatten:!0})],yt.prototype,"slotDescriptionNodes",2),yt=Jt([C(sh)],yt);var ih=Object.getOwnPropertyDescriptor,rh=(s,t,i,r)=>{for(var e=r>1?void 0:r?ih(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=n(e)||e);return e};const oh="sonic-radio";let Xi=class extends yt{constructor(){super(),this.radio=!0}willUpdate(s){const t=s.has("type");super.willUpdate(s),t&&(this.type="radio")}connectedCallback(){super.connectedCallback(),this.type="radio"}};Xi.styles=[yt.styles,S`
2352
+ `],ee([a({type:Boolean,reflect:!0})],xt.prototype,"touched",2),ee([a({type:String})],xt.prototype,"iconName",2),ee([a({type:String})],xt.prototype,"indeterminateIconName",2),ee([a({type:Boolean})],xt.prototype,"showAsIndeterminate",2),ee([a({type:Boolean})],xt.prototype,"hasDescription",2),ee([a({type:Boolean})],xt.prototype,"hasLabel",2),ee([ft({flatten:!0})],xt.prototype,"slotLabelNodes",2),ee([ft({slot:"description",flatten:!0})],xt.prototype,"slotDescriptionNodes",2),xt=ee([C(sh)],xt);var ih=Object.getOwnPropertyDescriptor,rh=(s,t,i,r)=>{for(var e=r>1?void 0:r?ih(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=o(e)||e);return e};const nh="sonic-radio";let tr=class extends xt{constructor(){super(),this.radio=!0}willUpdate(s){const t=s.has("type");super.willUpdate(s),t&&(this.type="radio")}connectedCallback(){super.connectedCallback(),this.type="radio"}};tr.styles=[xt.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
- `],Xi=rh([C(oh)],Xi);var nh=Object.getOwnPropertyDescriptor,ah=(s,t,i,r)=>{for(var e=r>1?void 0:r?nh(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=n(e)||e);return e};const lh="sonic-switch";let Qi=class extends yt{constructor(){super(),this.unique=!0}};Qi.styles=[yt.styles,S`
2368
+ `],tr=rh([C(nh)],tr);var oh=Object.getOwnPropertyDescriptor,ah=(s,t,i,r)=>{for(var e=r>1?void 0:r?oh(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=o(e)||e);return e};const lh="sonic-switch";let er=class extends xt{constructor(){super(),this.unique=!0}};er.styles=[xt.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
- `],Qi=ah([C(lh)],Qi);var ch=Object.defineProperty,hh=Object.getOwnPropertyDescriptor,it=(s,t,i,r)=>{for(var e=r>1?void 0:r?hh(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&ch(t,i,e),e};const dh="sonic-select";let Q=class extends He(st(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 s=this.querySelectorAll("option");s.length>0&&(this.options=Array.from(s).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(s){this._options=s;for(const i of s)i.selected&&(this.value=i[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(s){this.hasDoneFirstUpdate=!0,super.firstUpdated(s)}set value(s){s==null&&!this.hasDoneFirstUpdate||(s||(s=""),this._value!=s&&(this._value=s,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(s){this.hasAttribute("description")&&!this.forceAutoFill&&(s=this.getAttribute("description")),this._description=s,this.requestUpdate()}get label(){return this._label}set label(s){this.hasAttribute("label")&&!this.forceAutoFill&&(s=this.getAttribute("label")),this._label=s,this.requestUpdate()}willUpdate(s){this.hasSlotOrProps(),super.willUpdate(s)}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 s=this.shadowRoot?.querySelector("select");if(!s||s.checkValidity())return;const t=this.getFormPublisher();t&&(t.isFormValid=!1),s.reportValidity()}render(){const s={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix};return g`
2433
+ `],er=ah([C(lh)],er);var ch=Object.defineProperty,hh=Object.getOwnPropertyDescriptor,rt=(s,t,i,r)=>{for(var e=r>1?void 0:r?hh(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&ch(t,i,e),e};const dh="sonic-select";let J=class extends qe(it(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 s=this.querySelectorAll("option");s.length>0&&(this.options=Array.from(s).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(s){this._options=s;for(const i of s)i.selected&&(this.value=i[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(s){this.hasDoneFirstUpdate=!0,super.firstUpdated(s)}set value(s){s==null&&!this.hasDoneFirstUpdate||(s||(s=""),this._value!=s&&(this._value=s,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(s){this.hasAttribute("description")&&!this.forceAutoFill&&(s=this.getAttribute("description")),this._description=s,this.requestUpdate()}get label(){return this._label}set label(s){this.hasAttribute("label")&&!this.forceAutoFill&&(s=this.getAttribute("label")),this._label=s,this.requestUpdate()}willUpdate(s){this.hasSlotOrProps(),super.willUpdate(s)}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 s=this.shadowRoot?.querySelector("select");if(!s||s.checkValidity())return;const t=this.getFormPublisher();t&&(t.isFormValid=!1),s.reportValidity()}render(){const s={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix};return g`
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?B(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 ${Zi(s)}">
2443
+ <div class="form-control ${Ji(s)}">
2444
2444
  <slot name="prefix" @slotchange=${this.hasSlotOrProps}></slot>
2445
2445
  <div class="form-select-wrapper">
2446
2446
  <select
@@ -2458,7 +2458,7 @@
2458
2458
  aria-label=${$(this.ariaLabel)}
2459
2459
  aria-labelledby=${$(this.ariaLabelledby)}
2460
2460
  >
2461
- ${Ks(this.options,t=>t[this.valueKey],t=>{const i=this.value==t[this.valueKey];return g`<option
2461
+ ${Ys(this.options,t=>t[this.valueKey],t=>{const i=this.value==t[this.valueKey];return g`<option
2462
2462
  ?selected=${i}
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?g`${U(this.description)}`:""}</slot
2482
+ >${this.description?g`${B(this.description)}`:""}</slot
2483
2483
  >
2484
- `}};Q.styles=[Ut,Gi,oi,ni,S`
2484
+ `}};J.styles=[Ht,Qi,ai,li,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
- `],it([a({type:String})],Q.prototype,"valueKey",2),it([a({type:String})],Q.prototype,"wordingKey",2),it([a({type:Boolean})],Q.prototype,"multiple",2),it([a({type:String,reflect:!0})],Q.prototype,"size",2),it([a({type:Number})],Q.prototype,"selectSize",2),it([a({type:String,reflect:!0})],Q.prototype,"status",2),it([a({type:Array})],Q.prototype,"options",1),it([a({reflect:!0})],Q.prototype,"value",1),it([a({type:Boolean})],Q.prototype,"forceAutoFill",2),it([a()],Q.prototype,"description",1),it([a()],Q.prototype,"label",1),it([dt({slot:"label",flatten:!0})],Q.prototype,"slotLabelNodes",2),it([dt({slot:"description",flatten:!0})],Q.prototype,"slotDescriptionNodes",2),it([dt({slot:"suffix",flatten:!0})],Q.prototype,"slotSuffixNodes",2),it([dt({slot:"prefix",flatten:!0})],Q.prototype,"slotPrefixNodes",2),it([T()],Q.prototype,"hasDescription",2),it([T()],Q.prototype,"hasLabel",2),it([T()],Q.prototype,"hasSuffix",2),it([T()],Q.prototype,"hasPrefix",2),Q=it([C(dh)],Q);var uh=Object.defineProperty,ph=Object.getOwnPropertyDescriptor,_t=(s,t,i,r)=>{for(var e=r>1?void 0:r?ph(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&uh(t,i,e),e};const fh="sonic-textarea";let ft=class extends Gs(He(st(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(s){this.hasSlotOrProps(),super.willUpdate(s)}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length)}validateFormElement(){const s=this.shadowRoot?.querySelector("textarea");if(!s||s.checkValidity())return;const t=this.getFormPublisher();t&&(t.isFormValid=!1),s.reportValidity()}render(){const s={resize:this.resize};return g`
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([ft({slot:"label",flatten:!0})],J.prototype,"slotLabelNodes",2),rt([ft({slot:"description",flatten:!0})],J.prototype,"slotDescriptionNodes",2),rt([ft({slot:"suffix",flatten:!0})],J.prototype,"slotSuffixNodes",2),rt([ft({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([C(dh)],J);var uh=Object.defineProperty,ph=Object.getOwnPropertyDescriptor,St=(s,t,i,r)=>{for(var e=r>1?void 0:r?ph(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&uh(t,i,e),e};const fh="sonic-textarea";let gt=class extends Zs(qe(it(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(s){this.hasSlotOrProps(),super.willUpdate(s)}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length)}validateFormElement(){const s=this.shadowRoot?.querySelector("textarea");if(!s||s.checkValidity())return;const t=this.getFormPublisher();t&&(t.isFormValid=!1),s.reportValidity()}render(){const s={resize:this.resize};return g`
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?B(this.label):""}<slot
2542
2542
  name="label"
2543
2543
  @slotchange=${this.hasSlotOrProps}
2544
2544
  ></slot
@@ -2566,7 +2566,7 @@
2566
2566
  class="form-element textarea custom-scroll"
2567
2567
  aria-label=${$(this.ariaLabel)}
2568
2568
  aria-labelledby=${$(this.ariaLabelledby)}
2569
- style=${gt(s)}
2569
+ style=${_t(s)}
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?g`${U(this.description)}`:""}</slot
2579
+ >${this.description?g`${B(this.description)}`:""}</slot
2580
2580
  >
2581
- `}};ft.styles=[Ut,Gi,oi,ni,fs,S`
2581
+ `}};gt.styles=[Ht,Qi,ai,li,bs,S`
2582
2582
  textarea {
2583
2583
  overflow-y: auto !important;
2584
2584
  font-size: inherit;
2585
2585
  }
2586
- `],_t([a({type:String})],ft.prototype,"size",2),_t([a({type:Number})],ft.prototype,"rows",2),_t([a({type:Number})],ft.prototype,"cols",2),_t([a({type:Number})],ft.prototype,"maxlength",2),_t([a({type:Number})],ft.prototype,"minlength",2),_t([a({type:String})],ft.prototype,"wrap",2),_t([a({type:Boolean})],ft.prototype,"readonly",2),_t([a({type:String})],ft.prototype,"placeholder",2),_t([a({type:String})],ft.prototype,"resize",2),_t([dt({slot:"label",flatten:!0})],ft.prototype,"slotLabelNodes",2),_t([dt({slot:"description",flatten:!0})],ft.prototype,"slotDescriptionNodes",2),_t([T()],ft.prototype,"hasDescription",2),_t([T()],ft.prototype,"hasLabel",2),ft=_t([C(fh)],ft);var bh=Object.getOwnPropertyDescriptor,mh=(s,t,i,r)=>{for(var e=r>1?void 0:r?bh(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=n(e)||e);return e};let Ji=class extends P{render(){return g`<slot></slot>`}};Ji.styles=[S`
2586
+ `],St([a({type:String})],gt.prototype,"size",2),St([a({type:Number})],gt.prototype,"rows",2),St([a({type:Number})],gt.prototype,"cols",2),St([a({type:Number})],gt.prototype,"maxlength",2),St([a({type:Number})],gt.prototype,"minlength",2),St([a({type:String})],gt.prototype,"wrap",2),St([a({type:Boolean})],gt.prototype,"readonly",2),St([a({type:String})],gt.prototype,"placeholder",2),St([a({type:String})],gt.prototype,"resize",2),St([ft({slot:"label",flatten:!0})],gt.prototype,"slotLabelNodes",2),St([ft({slot:"description",flatten:!0})],gt.prototype,"slotDescriptionNodes",2),St([T()],gt.prototype,"hasDescription",2),St([T()],gt.prototype,"hasLabel",2),gt=St([C(fh)],gt);var bh=Object.getOwnPropertyDescriptor,mh=(s,t,i,r)=>{for(var e=r>1?void 0:r?bh(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=o(e)||e);return e};let sr=class extends P{render(){return g`<slot></slot>`}};sr.styles=[S`
2587
2587
  :host {
2588
2588
  font-size: 1.15rem;
2589
2589
  line-height: 1.2;
@@ -2600,7 +2600,7 @@ ${this.value}</textarea
2600
2600
  font-size: 1rem;
2601
2601
  }
2602
2602
  }
2603
- `],Ji=mh([C("sonic-legend-description")],Ji);var gh=Object.defineProperty,vh=Object.getOwnPropertyDescriptor,Le=(s,t,i,r)=>{for(var e=r>1?void 0:r?vh(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&gh(t,i,e),e};const yh="sonic-legend";let te=class extends P{constructor(){super(...arguments),this.forceAutoFill=!1}get description(){return this._description}set description(s){this.hasAttribute("description")&&!this.forceAutoFill&&(s=this.getAttribute("description")),this._description=s,this.requestUpdate()}get label(){return this._label}set label(s){this.hasAttribute("label")&&!this.forceAutoFill&&(s=this.getAttribute("label")),this._label=s,this.requestUpdate()}render(){return g`<legend part="legend">
2603
+ `],sr=mh([C("sonic-legend-description")],sr);var gh=Object.defineProperty,vh=Object.getOwnPropertyDescriptor,Te=(s,t,i,r)=>{for(var e=r>1?void 0:r?vh(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&gh(t,i,e),e};const yh="sonic-legend";let se=class extends P{constructor(){super(...arguments),this.forceAutoFill=!1}get description(){return this._description}set description(s){this.hasAttribute("description")&&!this.forceAutoFill&&(s=this.getAttribute("description")),this._description=s,this.requestUpdate()}get label(){return this._label}set label(s){this.hasAttribute("label")&&!this.forceAutoFill&&(s=this.getAttribute("label")),this._label=s,this.requestUpdate()}render(){return g`<legend part="legend">
2604
2604
  ${this.iconName?g`<div class="icon">
2605
2605
  <sonic-icon
2606
2606
  name=${this.iconName}
@@ -2610,14 +2610,14 @@ ${this.value}</textarea
2610
2610
  </div>`:""}
2611
2611
 
2612
2612
  <div class="legend-content">
2613
- ${U(this.label?this.label:"")}
2613
+ ${B(this.label?this.label:"")}
2614
2614
  ${this.description?g`<sonic-legend-description
2615
- >${U(this.description)}</sonic-legend-description
2615
+ >${B(this.description)}</sonic-legend-description
2616
2616
  >`:""}
2617
2617
  <slot></slot>
2618
2618
  </div>
2619
2619
  <slot name="suffix"></slot>
2620
- </legend>`}};te.styles=[S`
2620
+ </legend>`}};se.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,7 +2661,7 @@ ${this.value}</textarea
2661
2661
  .legend-content {
2662
2662
  flex-grow: 1;
2663
2663
  }
2664
- `],Le([a({type:Boolean})],te.prototype,"forceAutoFill",2),Le([a()],te.prototype,"description",1),Le([a()],te.prototype,"label",1),Le([a({type:String})],te.prototype,"iconName",2),Le([a({type:String})],te.prototype,"iconLibrary",2),Le([a({type:String})],te.prototype,"iconPrefix",2),te=Le([C(yh)],te);var _h=Object.defineProperty,wh=Object.getOwnPropertyDescriptor,qt=(s,t,i,r)=>{for(var e=r>1?void 0:r?wh(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&_h(t,i,e),e};const xh="sonic-fieldset";let kt=class extends st(P){constructor(){super(...arguments),this.disabled=!1,this.variant="default"}render(){return g`<fieldset
2664
+ `],Te([a({type:Boolean})],se.prototype,"forceAutoFill",2),Te([a()],se.prototype,"description",1),Te([a()],se.prototype,"label",1),Te([a({type:String})],se.prototype,"iconName",2),Te([a({type:String})],se.prototype,"iconLibrary",2),Te([a({type:String})],se.prototype,"iconPrefix",2),se=Te([C(yh)],se);var _h=Object.defineProperty,wh=Object.getOwnPropertyDescriptor,Kt=(s,t,i,r)=>{for(var e=r>1?void 0:r?wh(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&_h(t,i,e),e};const xh="sonic-fieldset";let Lt=class extends it(P){constructor(){super(...arguments),this.disabled=!1,this.variant="default"}render(){return g`<fieldset
2665
2665
  form="${$(this.form)}"
2666
2666
  ?disabled="${this.disabled}"
2667
2667
  >
@@ -2671,9 +2671,9 @@ ${this.value}</textarea
2671
2671
  iconName=${$(this.iconName)}
2672
2672
  iconPrefix=${$(this.iconPrefix)}
2673
2673
  iconLibrary=${$(this.iconLibrary)}
2674
- ></sonic-legend>`:D}
2674
+ ></sonic-legend>`:k}
2675
2675
  <slot></slot>
2676
- </fieldset>`}};kt.styles=[S`
2676
+ </fieldset>`}};Lt.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
- `],qt([a({type:Boolean,reflect:!0})],kt.prototype,"disabled",2),qt([a({type:String})],kt.prototype,"form",2),qt([a({type:String})],kt.prototype,"label",2),qt([a({type:String})],kt.prototype,"description",2),qt([a({type:String})],kt.prototype,"iconName",2),qt([a({type:String})],kt.prototype,"iconLibrary",2),qt([a({type:String})],kt.prototype,"iconPrefix",2),qt([a({type:Boolean,reflect:!0})],kt.prototype,"tight",2),qt([a({type:String,reflect:!0})],kt.prototype,"variant",2),kt=qt([C(xh)],kt);var Ph=Object.defineProperty,Ch=Object.getOwnPropertyDescriptor,tr=(s,t,i,r)=>{for(var e=r>1?void 0:r?Ch(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&Ph(t,i,e),e};const Sh="sonic-form-layout";let Ps=class extends st(P){constructor(){super(...arguments),this._resizeController=new Fo(this,{}),this.oneFormElement=!1}onSlotChange(){let s=this.slottedElements;const t=["sonic-input","sonic-select","sonic-input-autocomplete",".form-item-container"];s=s.filter(i=>t.includes(i.nodeName.toLowerCase())),this.oneFormElement=s.length==1}render(){const s={"cq--md":this.offsetWidth>440,"one-form-element":this.oneFormElement};return g`<div class=${Zi(s)}>
2725
+ `],Kt([a({type:Boolean,reflect:!0})],Lt.prototype,"disabled",2),Kt([a({type:String})],Lt.prototype,"form",2),Kt([a({type:String})],Lt.prototype,"label",2),Kt([a({type:String})],Lt.prototype,"description",2),Kt([a({type:String})],Lt.prototype,"iconName",2),Kt([a({type:String})],Lt.prototype,"iconLibrary",2),Kt([a({type:String})],Lt.prototype,"iconPrefix",2),Kt([a({type:Boolean,reflect:!0})],Lt.prototype,"tight",2),Kt([a({type:String,reflect:!0})],Lt.prototype,"variant",2),Lt=Kt([C(xh)],Lt);var Ph=Object.defineProperty,Ch=Object.getOwnPropertyDescriptor,ir=(s,t,i,r)=>{for(var e=r>1?void 0:r?Ch(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&Ph(t,i,e),e};const Sh="sonic-form-layout";let Cs=class extends it(P){constructor(){super(...arguments),this._resizeController=new Rn(this,{}),this.oneFormElement=!1}onSlotChange(){let s=this.slottedElements;const t=["sonic-input","sonic-select","sonic-input-autocomplete",".form-item-container"];s=s.filter(i=>t.includes(i.nodeName.toLowerCase())),this.oneFormElement=s.length==1}render(){const s={"cq--md":this.offsetWidth>440,"one-form-element":this.oneFormElement};return g`<div class=${Ji(s)}>
2726
2726
  <slot @slotchange=${this.onSlotChange}></slot>
2727
- </div>`}};Ps.styles=[S`
2727
+ </div>`}};Cs.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
- `],tr([ss({flatten:!0})],Ps.prototype,"slottedElements",2),tr([a({type:Boolean})],Ps.prototype,"oneFormElement",2),Ps=tr([C(Sh)],Ps);var $h=Object.defineProperty,Ah=Object.getOwnPropertyDescriptor,er=(s,t,i,r)=>{for(var e=r>1?void 0:r?Ah(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&$h(t,i,e),e};const kh="sonic-form-actions";let Cs=class extends P{constructor(){super(...arguments),this.direction="row",this.justify="flex-start"}render(){const s={flexDirection:this.direction,justifyContent:this.justify};return g`<slot style=${gt(s)}></slot>`}};Cs.styles=[S`
2762
+ `],ir([is({flatten:!0})],Cs.prototype,"slottedElements",2),ir([a({type:Boolean})],Cs.prototype,"oneFormElement",2),Cs=ir([C(Sh)],Cs);var $h=Object.defineProperty,Ah=Object.getOwnPropertyDescriptor,rr=(s,t,i,r)=>{for(var e=r>1?void 0:r?Ah(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&$h(t,i,e),e};const kh="sonic-form-actions";let Ss=class extends P{constructor(){super(...arguments),this.direction="row",this.justify="flex-start"}render(){const s={flexDirection:this.direction,justifyContent:this.justify};return g`<slot style=${_t(s)}></slot>`}};Ss.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
- `],er([a({type:String})],Cs.prototype,"direction",2),er([a({type:String})],Cs.prototype,"justify",2),Cs=er([C(kh)],Cs);var Dh=Object.defineProperty,Oh=Object.getOwnPropertyDescriptor,me=(s,t,i,r)=>{for(var e=r>1?void 0:r?Oh(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&Dh(t,i,e),e};const Eh="sonic-group";let Wt=class extends P{constructor(){super(...arguments),this.alignItems="center",this.hasDescription=!1,this.hasLabel=!1}updated(){const s=this.querySelectorAll("sonic-input, sonic-button, sonic-select"),t=s.length;t>1&&s.forEach((i,r)=>{const e=i;r===0?(e.style.setProperty("--sc-item-rounded-tr","0"),e.style.setProperty("--sc-item-rounded-br","0")):r===t-1?(e.style.setProperty("--sc-item-rounded-tl","0"),e.style.setProperty("--sc-item-rounded-bl","0")):(e.style.setProperty("--sc-item-rounded-tr","0"),e.style.setProperty("--sc-item-rounded-br","0"),e.style.setProperty("--sc-item-rounded-tl","0"),e.style.setProperty("--sc-item-rounded-bl","0"))})}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps()}willUpdate(s){this.hasSlotOrProps(),super.willUpdate(s)}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length)}render(){const s={alignItems:this.alignItems};return g`<span class="${this.hasLabel?"form-label":"hidden"}"
2772
- >${this.label?U(this.label):""}<slot
2771
+ `],rr([a({type:String})],Ss.prototype,"direction",2),rr([a({type:String})],Ss.prototype,"justify",2),Ss=rr([C(kh)],Ss);var Dh=Object.defineProperty,Oh=Object.getOwnPropertyDescriptor,ve=(s,t,i,r)=>{for(var e=r>1?void 0:r?Oh(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&Dh(t,i,e),e};const Eh="sonic-group";let Yt=class extends P{constructor(){super(...arguments),this.alignItems="center",this.hasDescription=!1,this.hasLabel=!1}updated(){const s=this.querySelectorAll("sonic-input, sonic-button, sonic-select"),t=s.length;t>1&&s.forEach((i,r)=>{const e=i;r===0?(e.style.setProperty("--sc-item-rounded-tr","0"),e.style.setProperty("--sc-item-rounded-br","0")):r===t-1?(e.style.setProperty("--sc-item-rounded-tl","0"),e.style.setProperty("--sc-item-rounded-bl","0")):(e.style.setProperty("--sc-item-rounded-tr","0"),e.style.setProperty("--sc-item-rounded-br","0"),e.style.setProperty("--sc-item-rounded-tl","0"),e.style.setProperty("--sc-item-rounded-bl","0"))})}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps()}willUpdate(s){this.hasSlotOrProps(),super.willUpdate(s)}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length)}render(){const s={alignItems:this.alignItems};return g`<span class="${this.hasLabel?"form-label":"hidden"}"
2772
+ >${this.label?B(this.label):""}<slot
2773
2773
  name="label"
2774
2774
  @slotchange=${this.hasSlotOrProps}
2775
2775
  ></slot
2776
2776
  ></span>
2777
- <slot class="main-slot" style=${gt(s)}></slot>
2777
+ <slot class="main-slot" style=${_t(s)}></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?g`${U(this.description)}`:""}
2784
- </slot>`}};Wt.styles=[Ut,oi,ni,S`
2783
+ ${this.description?g`${B(this.description)}`:""}
2784
+ </slot>`}};Yt.styles=[Ht,ai,li,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
- `],me([a({type:String})],Wt.prototype,"alignItems",2),me([a({type:String})],Wt.prototype,"label",2),me([a({type:String})],Wt.prototype,"description",2),me([dt({slot:"label",flatten:!0})],Wt.prototype,"slotLabelNodes",2),me([dt({slot:"description",flatten:!0})],Wt.prototype,"slotDescriptionNodes",2),me([T()],Wt.prototype,"hasDescription",2),me([T()],Wt.prototype,"hasLabel",2),Wt=me([C(Eh)],Wt);var Lh=Object.defineProperty,Th=Object.getOwnPropertyDescriptor,Kt=(s,t,i,r)=>{for(var e=r>1?void 0:r?Th(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&Lh(t,i,e),e};const Ih="sonic-image";let Dt=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(s){if(this.transition){const t=this.shadowRoot?.querySelector("img");if(!t)return;t.onload=function(){t.classList.add("loaded")}}super.firstUpdated(s)}render(){const s={aspectRatio:this.cover?"auto":this.ratio,imageRendering:this.imageRendering,objectPosition:this.objectPosition};return g`<div part="image">
2804
+ `],ve([a({type:String})],Yt.prototype,"alignItems",2),ve([a({type:String})],Yt.prototype,"label",2),ve([a({type:String})],Yt.prototype,"description",2),ve([ft({slot:"label",flatten:!0})],Yt.prototype,"slotLabelNodes",2),ve([ft({slot:"description",flatten:!0})],Yt.prototype,"slotDescriptionNodes",2),ve([T()],Yt.prototype,"hasDescription",2),ve([T()],Yt.prototype,"hasLabel",2),Yt=ve([C(Eh)],Yt);var Lh=Object.defineProperty,Th=Object.getOwnPropertyDescriptor,Gt=(s,t,i,r)=>{for(var e=r>1?void 0:r?Th(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&Lh(t,i,e),e};const Ih="sonic-image";let Tt=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(s){if(this.transition){const t=this.shadowRoot?.querySelector("img");if(!t)return;t.onload=function(){t.classList.add("loaded")}}super.firstUpdated(s)}render(){const s={aspectRatio:this.cover?"auto":this.ratio,imageRendering:this.imageRendering,objectPosition:this.objectPosition};return g`<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=${gt(s)}
2811
+ style=${_t(s)}
2812
2812
  /></picture>
2813
- </div>`}};Dt.styles=[S`
2813
+ </div>`}};Tt.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
- `],Kt([a({type:String})],Dt.prototype,"rounded",2),Kt([a({type:String})],Dt.prototype,"src",2),Kt([a({type:String})],Dt.prototype,"alt",2),Kt([a({type:String})],Dt.prototype,"loading",2),Kt([a({type:String,reflect:!0})],Dt.prototype,"transition",2),Kt([a({type:String})],Dt.prototype,"ratio",2),Kt([a({type:String})],Dt.prototype,"objectPosition",2),Kt([a({type:String})],Dt.prototype,"imageRendering",2),Kt([a({type:Boolean,reflect:!0})],Dt.prototype,"cover",2),Dt=Kt([C(Ih)],Dt);var Mh=Object.defineProperty,Nh=Object.getOwnPropertyDescriptor,wt=(s,t,i,r)=>{for(var e=r>1?void 0:r?Nh(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&Mh(t,i,e),e};const jo=s=>ss(s),Fh="sonic-menu";let bt=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(s){const t=this.querySelector(".more-btn");this.size&&t&&t.setAttribute("size",this.size),super.updated(s)}setDividersSize(s){s.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(s=>{this.attributeObserver.observe(s,{attributes:!0,attributeFilter:["active"]})})}updateScrollPosition(){if(this.scrollable){const s=this.menuChildren.filter(t=>t.hasAttribute("active")&&t.getAttribute("active")!=="false");s.length===1&&requestAnimationFrame(()=>{s[0].scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})})}}connectedCallback(){this.observer=new ResizeObserver(this.updateIsScollable),this.observer.observe(this),super.connectedCallback()}firstUpdated(s){this.menuContent.addEventListener("scrollend",this.handleScrollEnd)}disconnectedCallback(){this.observer?.disconnect(),this.attributeObserver?.disconnect(),this.menuContent.removeEventListener("scrollend",this.handleScrollEnd),super.disconnectedCallback()}initScrollable(){let s=!1,t,i;this.scrollable&&(this.addEventListener("mousedown",r=>{s=!0,this.classList.add("active"),t=r.pageX-this.menuContent.offsetLeft,i=this.menuContent.scrollLeft}),this.addEventListener("mouseleave",()=>{s=!1,this.classList.remove("active")}),this.addEventListener("mouseup",()=>{s=!1,this.classList.remove("active")}),this.addEventListener("mousemove",r=>{if(!s)return;r.preventDefault();const o=(r.pageX-this.menuContent.offsetLeft-t)*1.5;this.menuContent.scrollLeft=i-o,this.setScrollShadow(this.menuContent,this.direction)}),this.addEventListener("scroll",r=>{r.preventDefault(),this.setScrollShadow(this.menuContent,this.direction)}))}setScrollShadow(s,t){t=="row"?(s.scrollLeft>0?this.classList.add("shadow-left"):this.classList.remove("shadow-left"),s.scrollLeft<s.scrollWidth-s.offsetWidth?this.classList.add("shadow-right"):this.classList.remove("shadow-right")):t=="column"&&(s.scrollTop>0?this.classList.add("shadow-top"):this.classList.remove("shadow-top"),s.scrollTop<s.scrollHeight-(s.offsetHeight+1)?this.classList.add("shadow-bottom"):this.classList.remove("shadow-bottom"))}setChildrenSize(s){s.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 s={minWidth:this.minWidth,flexDirection:this.direction},t=this.direction=="row",i={gap:this.gap,flexDirection:this.direction},r={display:"block",alignSelf:t?"center":"flex-start",justifySelf:"center",flexDirection:this.direction},e={marginLeft:t?"":".55em"};return g`<menu
2887
+ `],Gt([a({type:String})],Tt.prototype,"rounded",2),Gt([a({type:String})],Tt.prototype,"src",2),Gt([a({type:String})],Tt.prototype,"alt",2),Gt([a({type:String})],Tt.prototype,"loading",2),Gt([a({type:String,reflect:!0})],Tt.prototype,"transition",2),Gt([a({type:String})],Tt.prototype,"ratio",2),Gt([a({type:String})],Tt.prototype,"objectPosition",2),Gt([a({type:String})],Tt.prototype,"imageRendering",2),Gt([a({type:Boolean,reflect:!0})],Tt.prototype,"cover",2),Tt=Gt([C(Ih)],Tt);var Mh=Object.defineProperty,Nh=Object.getOwnPropertyDescriptor,$t=(s,t,i,r)=>{for(var e=r>1?void 0:r?Nh(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&Mh(t,i,e),e};const zn=s=>is(s),Fh="sonic-menu";let vt=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(s){const t=this.querySelector(".more-btn");this.size&&t&&t.setAttribute("size",this.size),super.updated(s)}setDividersSize(s){s.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(s=>{this.attributeObserver.observe(s,{attributes:!0,attributeFilter:["active"]})})}updateScrollPosition(){if(this.scrollable){const s=this.menuChildren.filter(t=>t.hasAttribute("active")&&t.getAttribute("active")!=="false");s.length===1&&requestAnimationFrame(()=>{s[0].scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})})}}connectedCallback(){this.observer=new ResizeObserver(this.updateIsScollable),this.observer.observe(this),super.connectedCallback()}firstUpdated(s){this.menuContent.addEventListener("scrollend",this.handleScrollEnd)}disconnectedCallback(){this.observer?.disconnect(),this.attributeObserver?.disconnect(),this.menuContent.removeEventListener("scrollend",this.handleScrollEnd),super.disconnectedCallback()}initScrollable(){let s=!1,t,i;this.scrollable&&(this.addEventListener("mousedown",r=>{s=!0,this.classList.add("active"),t=r.pageX-this.menuContent.offsetLeft,i=this.menuContent.scrollLeft}),this.addEventListener("mouseleave",()=>{s=!1,this.classList.remove("active")}),this.addEventListener("mouseup",()=>{s=!1,this.classList.remove("active")}),this.addEventListener("mousemove",r=>{if(!s)return;r.preventDefault();const n=(r.pageX-this.menuContent.offsetLeft-t)*1.5;this.menuContent.scrollLeft=i-n,this.setScrollShadow(this.menuContent,this.direction)}),this.addEventListener("scroll",r=>{r.preventDefault(),this.setScrollShadow(this.menuContent,this.direction)}))}setScrollShadow(s,t){t=="row"?(s.scrollLeft>0?this.classList.add("shadow-left"):this.classList.remove("shadow-left"),s.scrollLeft<s.scrollWidth-s.offsetWidth?this.classList.add("shadow-right"):this.classList.remove("shadow-right")):t=="column"&&(s.scrollTop>0?this.classList.add("shadow-top"):this.classList.remove("shadow-top"),s.scrollTop<s.scrollHeight-(s.offsetHeight+1)?this.classList.add("shadow-bottom"):this.classList.remove("shadow-bottom"))}setChildrenSize(s){s.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 s={minWidth:this.minWidth,flexDirection:this.direction},t=this.direction=="row",i={gap:this.gap,flexDirection:this.direction},r={display:"block",alignSelf:t?"center":"flex-start",justifySelf:"center",flexDirection:this.direction},e={marginLeft:t?"":".55em"};return g`<menu
2888
2888
  part="menu"
2889
2889
  class="shadowable"
2890
- style=${gt(s)}
2890
+ style=${_t(s)}
2891
2891
  >
2892
2892
  <slot
2893
2893
  @slotchange=${this.mainSlotChange}
2894
2894
  id="menu-content"
2895
- style=${gt(i)}
2895
+ style=${_t(i)}
2896
2896
  ></slot>
2897
2897
  <sonic-pop
2898
- style=${gt(r)}
2898
+ style=${_t(r)}
2899
2899
  class=${this.hasMoreElements?"":"hidden"}
2900
2900
  >
2901
2901
  <sonic-menu-item
2902
- style=${gt(e)}
2902
+ style=${_t(e)}
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>`}};bt.styles=[S`
2918
+ </menu>`}};vt.styles=[S`
2919
2919
  :host {
2920
2920
  display: block;
2921
2921
  --sc-menu-gap: 0.15rem;
@@ -3043,14 +3043,14 @@ ${this.value}</textarea
3043
3043
  rgba(0, 0, 0, 0) 100%
3044
3044
  );
3045
3045
  }
3046
- `,Mo],wt([a({type:String,reflect:!0})],bt.prototype,"size",2),wt([a({type:String,reflect:!0})],bt.prototype,"direction",2),wt([a({type:String})],bt.prototype,"gap",2),wt([a({type:String,reflect:!0})],bt.prototype,"align",2),wt([a({type:String,reflect:!0})],bt.prototype,"shadow",2),wt([a({type:String})],bt.prototype,"moreShape",2),wt([a({type:Boolean})],bt.prototype,"scrollable",2),wt([a({type:String})],bt.prototype,"minWidth",2),wt([re("menu")],bt.prototype,"menu",2),wt([re("#menu-content")],bt.prototype,"menuContent",2),wt([jo({selector:"*"})],bt.prototype,"menuChildren",2),wt([jo({slot:"more",selector:"*"})],bt.prototype,"moreElements",2),wt([T()],bt.prototype,"hasMoreElements",2),bt=wt([C(Fh)],bt);var jh=Object.defineProperty,Rh=Object.getOwnPropertyDescriptor,Ro=(s,t,i,r)=>{for(var e=r>1?void 0:r?Rh(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&jh(t,i,e),e};const zh="sonic-modal-actions";let ai=class extends P{firstUpdated(s){this.buttons?.forEach(t=>{t.hasAttribute("hideModal")&&t.addEventListener("click",()=>{le.getClosestElement(this,"sonic-modal")?.hide()})}),super.firstUpdated(s)}render(){return g`<slot></slot>`}};ai.styles=[S`
3046
+ `,Fn],$t([a({type:String,reflect:!0})],vt.prototype,"size",2),$t([a({type:String,reflect:!0})],vt.prototype,"direction",2),$t([a({type:String})],vt.prototype,"gap",2),$t([a({type:String,reflect:!0})],vt.prototype,"align",2),$t([a({type:String,reflect:!0})],vt.prototype,"shadow",2),$t([a({type:String})],vt.prototype,"moreShape",2),$t([a({type:Boolean})],vt.prototype,"scrollable",2),$t([a({type:String})],vt.prototype,"minWidth",2),$t([oe("menu")],vt.prototype,"menu",2),$t([oe("#menu-content")],vt.prototype,"menuContent",2),$t([zn({selector:"*"})],vt.prototype,"menuChildren",2),$t([zn({slot:"more",selector:"*"})],vt.prototype,"moreElements",2),$t([T()],vt.prototype,"hasMoreElements",2),vt=$t([C(Fh)],vt);var jh=Object.defineProperty,Rh=Object.getOwnPropertyDescriptor,Un=(s,t,i,r)=>{for(var e=r>1?void 0:r?Rh(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&jh(t,i,e),e};const zh="sonic-modal-actions";let ci=class extends P{firstUpdated(s){this.buttons?.forEach(t=>{t.hasAttribute("hideModal")&&t.addEventListener("click",()=>{he.getClosestElement(this,"sonic-modal")?.hide()})}),super.firstUpdated(s)}render(){return g`<slot></slot>`}};ci.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
- `],Ro([ss({selector:"sonic-button"})],ai.prototype,"buttons",2),ai=Ro([C(zh)],ai);var Uh=Object.defineProperty,Vh=Object.getOwnPropertyDescriptor,li=(s,t,i,r)=>{for(var e=r>1?void 0:r?Vh(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&Uh(t,i,e),e};const Bh="sonic-modal-close";let Ss=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 g`<sonic-button
3053
+ `],Un([is({selector:"sonic-button"})],ci.prototype,"buttons",2),ci=Un([C(zh)],ci);var Uh=Object.defineProperty,Vh=Object.getOwnPropertyDescriptor,hi=(s,t,i,r)=>{for(var e=r>1?void 0:r?Vh(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&Uh(t,i,e),e};const Bh="sonic-modal-close";let $s=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 g`<sonic-button
3054
3054
  noAutoFill
3055
3055
  data-aria-label=${this.translation[this.lang]}
3056
3056
  reset=${$(this.reset)}
@@ -3058,12 +3058,12 @@ ${this.value}</textarea
3058
3058
  @click=${this.handleClick}
3059
3059
  type=${$(this.type)}
3060
3060
  ><sonic-icon name="cancel" size="lg"></sonic-icon
3061
- ></sonic-button>`}handleClick(){G.getClosestElement(this,"sonic-modal").hide()}};li([a()],Ss.prototype,"translation",2),li([a()],Ss.prototype,"reset",2),li([a()],Ss.prototype,"type",2),Ss=li([C(Bh)],Ss);var Hh=Object.getOwnPropertyDescriptor,qh=(s,t,i,r)=>{for(var e=r>1?void 0:r?Hh(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=n(e)||e);return e};const Wh="sonic-modal-content";let sr=class extends P{render(){return g`<slot></slot>`}};sr.styles=[S`
3061
+ ></sonic-button>`}handleClick(){Z.getClosestElement(this,"sonic-modal").hide()}};hi([a()],$s.prototype,"translation",2),hi([a()],$s.prototype,"reset",2),hi([a()],$s.prototype,"type",2),$s=hi([C(Bh)],$s);var Hh=Object.getOwnPropertyDescriptor,qh=(s,t,i,r)=>{for(var e=r>1?void 0:r?Hh(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=o(e)||e);return e};const Wh="sonic-modal-content";let nr=class extends P{render(){return g`<slot></slot>`}};nr.styles=[S`
3062
3062
  :host {
3063
3063
  display: block;
3064
3064
  width: 100%;
3065
3065
  }
3066
- `],sr=qh([C(Wh)],sr);var Kh=Object.getOwnPropertyDescriptor,Yh=(s,t,i,r)=>{for(var e=r>1?void 0:r?Kh(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=n(e)||e);return e};const Gh="sonic-modal-subtitle";let ir=class extends P{render(){return g`<slot></slot>`}};ir.styles=[S`
3066
+ `],nr=qh([C(Wh)],nr);var Kh=Object.getOwnPropertyDescriptor,Yh=(s,t,i,r)=>{for(var e=r>1?void 0:r?Kh(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=o(e)||e);return e};const Gh="sonic-modal-subtitle";let or=class extends P{render(){return g`<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
- `],ir=Yh([C(Gh)],ir);var Zh=Object.getOwnPropertyDescriptor,Xh=(s,t,i,r)=>{for(var e=r>1?void 0:r?Zh(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=n(e)||e);return e};const Qh="sonic-modal-title";let rr=class extends P{render(){return g`<slot></slot>`}};rr.styles=[S`
3078
+ `],or=Yh([C(Gh)],or);var Zh=Object.getOwnPropertyDescriptor,Xh=(s,t,i,r)=>{for(var e=r>1?void 0:r?Zh(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=o(e)||e);return e};const Qh="sonic-modal-title";let ar=class extends P{render(){return g`<slot></slot>`}};ar.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
- `],rr=Xh([C(Qh)],rr);const zo=new WeakMap;function Jh(s){const t=zo.get(s);if(t)return t;const i=new CSSStyleSheet;return i.replaceSync(s.cssText),zo.set(s,i),i}function td(s){return s instanceof vi}function Uo(s){return s?(Array.isArray(s)?s:[s]).flatMap(i=>Array.isArray(i)?Uo(i):i instanceof CSSStyleSheet?[i]:td(i)?[Jh(i)]:[]):[]}var ed=Object.defineProperty,sd=Object.getOwnPropertyDescriptor,Z=(s,t,i,r)=>{for(var e=r>1?void 0:r?sd(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&ed(t,i,e),e};const Vo="sonic-modal";let N=class extends st(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(s){const t=document.createElement(Vo);return t.options=s,s.removeHashOnHide===!0&&t.setAttribute("removeHashOnHide","true"),s.removeOnHide===!0&&t.setAttribute("removeOnHide","true"),s.closeOnLocationChange===!0&&t.setAttribute("closeOnLocationChange","true"),s.maxWidth&&(t.maxWidth=s?.maxWidth),s.width&&(t.width=s?.width),s.maxHeight&&(t.maxHeight=s?.maxHeight),s.height&&(t.height=s?.height),s.forceAction&&(t.forceAction=!0),s.fullScreen&&(t.fullScreen=s?.fullScreen),s.effect&&(t.effect=s?.effect),s.noCloseButton&&(t.noCloseButton=!0),s.closeButtonType&&(t.closeButtonType=s?.closeButtonType),s.styleSheet&&(t.styleSheet=s?.styleSheet),s.paddingX&&(t.paddingX=s?.paddingX),s.paddingY&&(t.paddingY=s?.paddingY),s.zIndex&&(t.zIndex=s?.zIndex),St.getPopContainer().appendChild(t),t.updateComplete.then(()=>{t.show()}),t}connectedCallback(){N.modals.push(this),nt.onChange(this),super.connectedCallback()}disconnectedCallback(){nt.offChange(this),N.modals.splice(N.modals.indexOf(this),1),this.removeEventListener("keydown",this.handleEscape),super.disconnectedCallback()}firstUpdated(){this.addEventListener("keydown",this.handleEscape)}willUpdate(s){if(this.closeOnLocationChange&&s.has("location")){const t=s.get("location");t&&this.location&&this.location!==t&&setTimeout(()=>{this.hide()},50)}s.has("zIndex")&&this.style.setProperty("--sc_z-index",this.zIndex||"990"),s.has("paddingX")&&this.style.setProperty("--sc-modal-px",this.paddingX||""),s.has("paddingY")&&this.style.setProperty("--sc-modal-py",this.paddingY||""),super.willUpdate(s)}updated(s){const t=!s.get("visible")&&this.visible,i=s.get("visible")&&!this.visible;t&&this._animationState==="hidden"?this.show():i&&this._animationState==="visible"&&this.hide(),s.has("styleSheet")&&this.syncAdoptedStyleSheets()}handleOverlayClick(s){!this.forceAction&&this._animationState==="visible"&&this.hide()}render(){const s={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 g`
3091
+ `],ar=Xh([C(Qh)],ar);const Vn=new WeakMap;function Jh(s){const t=Vn.get(s);if(t)return t;const i=new CSSStyleSheet;return i.replaceSync(s.cssText),Vn.set(s,i),i}function td(s){return s instanceof xi}function Bn(s){return s?(Array.isArray(s)?s:[s]).flatMap(i=>Array.isArray(i)?Bn(i):i instanceof CSSStyleSheet?[i]:td(i)?[Jh(i)]:[]):[]}var ed=Object.defineProperty,sd=Object.getOwnPropertyDescriptor,X=(s,t,i,r)=>{for(var e=r>1?void 0:r?sd(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&ed(t,i,e),e};const Hn="sonic-modal";let I=class extends it(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(s){const t=document.createElement(Hn);return t.options=s,s.removeHashOnHide===!0&&t.setAttribute("removeHashOnHide","true"),s.removeOnHide===!0&&t.setAttribute("removeOnHide","true"),s.closeOnLocationChange===!0&&t.setAttribute("closeOnLocationChange","true"),s.maxWidth&&(t.maxWidth=s?.maxWidth),s.width&&(t.width=s?.width),s.maxHeight&&(t.maxHeight=s?.maxHeight),s.height&&(t.height=s?.height),s.forceAction&&(t.forceAction=!0),s.fullScreen&&(t.fullScreen=s?.fullScreen),s.effect&&(t.effect=s?.effect),s.noCloseButton&&(t.noCloseButton=!0),s.closeButtonType&&(t.closeButtonType=s?.closeButtonType),s.styleSheet&&(t.styleSheet=s?.styleSheet),s.paddingX&&(t.paddingX=s?.paddingX),s.paddingY&&(t.paddingY=s?.paddingY),s.zIndex&&(t.zIndex=s?.zIndex),Dt.getPopContainer().appendChild(t),t.updateComplete.then(()=>{t.show()}),t}connectedCallback(){I.modals.push(this),at.onChange(this),super.connectedCallback()}disconnectedCallback(){at.offChange(this),I.modals.splice(I.modals.indexOf(this),1),this.removeEventListener("keydown",this.handleEscape),super.disconnectedCallback()}firstUpdated(){this.addEventListener("keydown",this.handleEscape)}willUpdate(s){if(this.closeOnLocationChange&&s.has("location")){const t=s.get("location");t&&this.location&&this.location!==t&&setTimeout(()=>{this.hide()},50)}s.has("zIndex")&&this.style.setProperty("--sc_z-index",this.zIndex||"990"),s.has("paddingX")&&this.style.setProperty("--sc-modal-px",this.paddingX||""),s.has("paddingY")&&this.style.setProperty("--sc-modal-py",this.paddingY||""),super.willUpdate(s)}updated(s){const t=!s.get("visible")&&this.visible,i=s.get("visible")&&!this.visible;t&&this._animationState==="hidden"?this.show():i&&this._animationState==="visible"&&this.hide(),s.has("styleSheet")&&this.syncAdoptedStyleSheets()}handleOverlayClick(s){!this.forceAction&&this._animationState==="visible"&&this.hide()}render(){const s={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 g`
3092
3092
  <div
3093
3093
  id="backdrop"
3094
3094
  @click=${this.handleOverlayClick}
3095
- style=${gt(t)}
3095
+ style=${_t(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=${gt(s)}
3102
+ style=${_t(s)}
3103
3103
  >
3104
3104
  ${this._animationState!=="hidden"?g`<div id="modal-content">
3105
3105
  ${!this.forceAction&&!this.noCloseButton?g`<sonic-modal-close
3106
3106
  class="${this._animationState=="visible"?"animate-in":"animate-out"}"
3107
3107
  type=${$(this.closeButtonType)}
3108
- ></sonic-modal-close>`:D}
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 s=Uo(this.styleSheet),t=this.renderRoot.adoptedStyleSheets.filter(i=>!this._adoptedStyleSheets.includes(i));this.renderRoot.adoptedStyleSheets=[...t,...s],this._adoptedStyleSheets=s}modalFragment(s){const t=this.options?.[s];if(!t)return D;let i;switch(t instanceof Object?i=t:i=U(t),s){case"title":return g`<sonic-modal-title>${i}</sonic-modal-title>`;case"subtitle":return g`<sonic-modal-subtitle>${i}</sonic-modal-subtitle>`;case"content":return g`<sonic-modal-content>${i}</sonic-modal-content>`;case"actions":return g`<sonic-modal-actions>${i}</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")&&E.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(s=>{s.dispose()})}handleEscape(s){if(s.key==="Escape"){s.preventDefault();const t=N.modals.filter(i=>i._animationState!=="hidden"&&!i.forceAction);t.length>0&&t[t.length-1].hide()}}animation(s){return new Promise(t=>{const{quartOut:i,linear:r,translateY:e,durationIn:o,durationOut:n,quadOut:l}=this._animationConfig,c=this._modalElement;if(!c)return t();const h=s==="in",p=h?o:n,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 f=[];this.effect==="slide"&&(f.push(c.animate([{transform:h?e:"translateY(0)"},{transform:h?"translateY(0)":e}],{duration:p,easing:h?i:l,fill:"both",delay:d})),f.push(c.animate([{opacity:h?0:1},{opacity:h?1:0}],{duration:p,easing:r,fill:"both",delay:d}))),Promise.all(f.map(_=>_.finished)).then(()=>t())})}};N.styles=[fs,S`
3114
+ `}syncAdoptedStyleSheets(){if(!(this.renderRoot instanceof ShadowRoot))return;const s=Bn(this.styleSheet),t=this.renderRoot.adoptedStyleSheets.filter(i=>!this._adoptedStyleSheets.includes(i));this.renderRoot.adoptedStyleSheets=[...t,...s],this._adoptedStyleSheets=s}modalFragment(s){const t=this.options?.[s];if(!t)return k;let i;switch(t instanceof Object?i=t:i=B(t),s){case"title":return g`<sonic-modal-title>${i}</sonic-modal-title>`;case"subtitle":return g`<sonic-modal-subtitle>${i}</sonic-modal-subtitle>`;case"content":return g`<sonic-modal-content>${i}</sonic-modal-content>`;case"actions":return g`<sonic-modal-actions>${i}</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")&&E.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(){I.modals.forEach(s=>{s.dispose()})}handleEscape(s){if(s.key==="Escape"){s.preventDefault();const t=I.modals.filter(i=>i._animationState!=="hidden"&&!i.forceAction);t.length>0&&t[t.length-1].hide()}}animation(s){return new Promise(t=>{const{quartOut:i,linear:r,translateY:e,durationIn:n,durationOut:o,quadOut:l}=this._animationConfig,c=this._modalElement;if(!c)return t();const h=s==="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?e:"translateY(0)"},{transform:h?"translateY(0)":e}],{duration:u,easing:h?i: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(w=>w.finished)).then(()=>t())})}};I.styles=[bs,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
- `],N.modals=[],Z([a({type:Boolean})],N.prototype,"forceAction",2),Z([a({type:Boolean})],N.prototype,"noCloseButton",2),Z([a({type:Boolean})],N.prototype,"removeOnHide",2),Z([a({type:Boolean})],N.prototype,"removeHashOnHide",2),Z([a({type:String,reflect:!0})],N.prototype,"align",2),Z([a({type:String})],N.prototype,"paddingX",2),Z([a({type:String})],N.prototype,"paddingY",2),Z([a({type:String})],N.prototype,"maxWidth",2),Z([a({type:String})],N.prototype,"maxHeight",2),Z([a({type:String})],N.prototype,"zIndex",2),Z([a({type:String})],N.prototype,"width",2),Z([a({type:String})],N.prototype,"height",2),Z([a({type:String})],N.prototype,"effect",2),Z([a({attribute:!1})],N.prototype,"styleSheet",2),Z([a({type:Object})],N.prototype,"options",2),Z([a({type:Boolean,reflect:!0})],N.prototype,"fullScreen",2),Z([a({type:Boolean,reflect:!0})],N.prototype,"visible",2),Z([a({type:String})],N.prototype,"closeButtonType",2),Z([re("#modal")],N.prototype,"_modalElement",2),Z([a({type:Boolean})],N.prototype,"closeOnLocationChange",2),Z([T()],N.prototype,"location",2),Z([T()],N.prototype,"_animationState",2),N=Z([C(Vo)],N),typeof window<"u"&&(window.SonicModal=N);var id=Object.defineProperty,rd=Object.getOwnPropertyDescriptor,Yt=(s,t,i,r)=>{for(var e=r>1?void 0:r?rd(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&id(t,i,e),e};const od={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty",default:"info-empty"},nd="sonic-alert";let Ot=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 s=localStorage.getItem("sonic-alert-dismissed")||"{}";JSON.parse(s)[this.id]&&this.remove()}super.connectedCallback()}render(){return g`
3265
+ `],I.modals=[],X([a({type:Boolean})],I.prototype,"forceAction",2),X([a({type:Boolean})],I.prototype,"noCloseButton",2),X([a({type:Boolean})],I.prototype,"removeOnHide",2),X([a({type:Boolean})],I.prototype,"removeHashOnHide",2),X([a({type:String,reflect:!0})],I.prototype,"align",2),X([a({type:String})],I.prototype,"paddingX",2),X([a({type:String})],I.prototype,"paddingY",2),X([a({type:String})],I.prototype,"maxWidth",2),X([a({type:String})],I.prototype,"maxHeight",2),X([a({type:String})],I.prototype,"zIndex",2),X([a({type:String})],I.prototype,"width",2),X([a({type:String})],I.prototype,"height",2),X([a({type:String})],I.prototype,"effect",2),X([a({attribute:!1})],I.prototype,"styleSheet",2),X([a({type:Object})],I.prototype,"options",2),X([a({type:Boolean,reflect:!0})],I.prototype,"fullScreen",2),X([a({type:Boolean,reflect:!0})],I.prototype,"visible",2),X([a({type:String})],I.prototype,"closeButtonType",2),X([oe("#modal")],I.prototype,"_modalElement",2),X([a({type:Boolean})],I.prototype,"closeOnLocationChange",2),X([T()],I.prototype,"location",2),X([T()],I.prototype,"_animationState",2),I=X([C(Hn)],I),typeof window<"u"&&(window.SonicModal=I);var id=Object.defineProperty,rd=Object.getOwnPropertyDescriptor,Zt=(s,t,i,r)=>{for(var e=r>1?void 0:r?rd(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&id(t,i,e),e};const nd={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty",default:"info-empty"},od="sonic-alert";let It=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 s=localStorage.getItem("sonic-alert-dismissed")||"{}";JSON.parse(s)[this.id]&&this.remove()}super.connectedCallback()}render(){return g`
3266
3266
  <slot name="icon" class="${this.noIcon?"hidden":""}"
3267
- >${this.noIcon?D:g`<div>
3268
- ${this.status&&g`<sonic-icon name=${od[this.status]}></sonic-icon>`}
3267
+ >${this.noIcon?k:g`<div>
3268
+ ${this.status&&g`<sonic-icon name=${nd[this.status]}></sonic-icon>`}
3269
3269
  </div>`}</slot
3270
3270
  >
3271
3271
  <div class="content">
3272
- ${this.label?g`<span class="label">${U(this.label)}</span>`:D}
3272
+ ${this.label?g`<span class="label">${B(this.label)}</span>`:k}
3273
3273
  <div>${this.text}<slot></slot></div>
3274
3274
  </div>
3275
3275
  ${this.dismissible?g`<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 s=localStorage.getItem("sonic-alert-dismissed")||"{}",t=JSON.parse(s);t[this.id]=!0,localStorage.setItem("sonic-alert-dismissed",JSON.stringify(t))}}};Ot.styles=[Ut,S`
3283
+ </sonic-button>`:k}
3284
+ `}close(){if(this.remove(),this.dismissForever){const s=localStorage.getItem("sonic-alert-dismissed")||"{}",t=JSON.parse(s);t[this.id]=!0,localStorage.setItem("sonic-alert-dismissed",JSON.stringify(t))}}};It.styles=[Ht,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
- `],Yt([a({type:String})],Ot.prototype,"label",2),Yt([a({type:Boolean,reflect:!0})],Ot.prototype,"noIcon",2),Yt([a({type:String})],Ot.prototype,"text",2),Yt([a({type:String})],Ot.prototype,"id",2),Yt([a({type:String,reflect:!0})],Ot.prototype,"size",2),Yt([a({type:Boolean,reflect:!0})],Ot.prototype,"dismissible",2),Yt([a({type:Boolean,reflect:!0})],Ot.prototype,"background",2),Yt([a({type:String,reflect:!0})],Ot.prototype,"status",2),Yt([a({type:Boolean,reflect:!0})],Ot.prototype,"dismissForever",2),Ot=Yt([C(nd)],Ot);var ad=Object.defineProperty,ld=Object.getOwnPropertyDescriptor,$s=(s,t,i,r)=>{for(var e=r>1?void 0:r?ld(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&ad(t,i,e),e};const cd="sonic-alert-messages";let Te=class extends st(P){constructor(){super(...arguments),this.size="md",this.background=!1,this.noIcon=!1,this.messages=[]}render(){return this.messages?.length?g`<div class="container">
3372
- ${co(this.messages,s=>s.type=="public"?g`<sonic-alert
3371
+ `],Zt([a({type:String})],It.prototype,"label",2),Zt([a({type:Boolean,reflect:!0})],It.prototype,"noIcon",2),Zt([a({type:String})],It.prototype,"text",2),Zt([a({type:String})],It.prototype,"id",2),Zt([a({type:String,reflect:!0})],It.prototype,"size",2),Zt([a({type:Boolean,reflect:!0})],It.prototype,"dismissible",2),Zt([a({type:Boolean,reflect:!0})],It.prototype,"background",2),Zt([a({type:String,reflect:!0})],It.prototype,"status",2),Zt([a({type:Boolean,reflect:!0})],It.prototype,"dismissForever",2),It=Zt([C(od)],It);var ad=Object.defineProperty,ld=Object.getOwnPropertyDescriptor,As=(s,t,i,r)=>{for(var e=r>1?void 0:r?ld(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&ad(t,i,e),e};const cd="sonic-alert-messages";let Ie=class extends it(P){constructor(){super(...arguments),this.size="md",this.background=!1,this.noIcon=!1,this.messages=[]}render(){return this.messages?.length?g`<div class="container">
3372
+ ${un(this.messages,s=>s.type=="public"?g`<sonic-alert
3373
3373
  status=${s.status||"default"}
3374
3374
  text=${$(s.content)}
3375
3375
  size=${this.size}
3376
3376
  ?noIcon=${this.noIcon}
3377
3377
  ?background=${this.background}
3378
- ></sonic-alert>`:D)}
3379
- </div>`:D}};Te.styles=[S`
3378
+ ></sonic-alert>`:k)}
3379
+ </div>`:k}};Ie.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
- `],$s([a({type:String})],Te.prototype,"size",2),$s([a({type:Boolean})],Te.prototype,"background",2),$s([a({type:Boolean})],Te.prototype,"noIcon",2),$s([a({type:Array})],Te.prototype,"messages",2),Te=$s([C(cd)],Te);var hd=Object.defineProperty,dd=Object.getOwnPropertyDescriptor,Bo=(s,t,i,r)=>{for(var e=r>1?void 0:r?dd(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&hd(t,i,e),e};const ud="sonic-toast-message-subscriber";let or=class extends st(P){constructor(){super(...arguments),this._messages=[]}get messages(){return this._messages}set messages(s){this._messages=s,this.messages&&s.forEach(t=>{t.type=="public"&&L.add({text:t.content||"",status:t.status})})}render(){return D}};Bo([a({type:Array})],or.prototype,"messages",1),or=Bo([C(ud)],or);var pd=Object.defineProperty,fd=Object.getOwnPropertyDescriptor,As=(s,t,i,r)=>{for(var e=r>1?void 0:r?fd(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&pd(t,i,e),e};const bd="sonic-tooltip";let Ie=class extends P{constructor(){super(),this.label="",this.disabled=!1,this.focusable=!1,this.lastKeyWasTab=!1,this.handleKeyDown=s=>{s.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(s){if(s.has("disabled")){const t=s.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"))}s.has("focusable")&&(this.focusable&&!this.disabled?this.setAttribute("tabindex","0"):!this.focusable&&!this.disabled&&this.removeAttribute("tabindex")),super.willUpdate(s)}render(){const s=this.disabled||this.label==""?"disabled":"";return g`<div
3386
+ `],As([a({type:String})],Ie.prototype,"size",2),As([a({type:Boolean})],Ie.prototype,"background",2),As([a({type:Boolean})],Ie.prototype,"noIcon",2),As([a({type:Array})],Ie.prototype,"messages",2),Ie=As([C(cd)],Ie);var hd=Object.defineProperty,dd=Object.getOwnPropertyDescriptor,qn=(s,t,i,r)=>{for(var e=r>1?void 0:r?dd(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&hd(t,i,e),e};const ud="sonic-toast-message-subscriber";let lr=class extends it(P){constructor(){super(...arguments),this._messages=[]}get messages(){return this._messages}set messages(s){this._messages=s,this.messages&&s.forEach(t=>{t.type=="public"&&L.add({text:t.content||"",status:t.status})})}render(){return k}};qn([a({type:Array})],lr.prototype,"messages",1),lr=qn([C(ud)],lr);var pd=Object.defineProperty,fd=Object.getOwnPropertyDescriptor,ks=(s,t,i,r)=>{for(var e=r>1?void 0:r?fd(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&pd(t,i,e),e};const bd="sonic-tooltip";let Me=class extends P{constructor(){super(),this.label="",this.disabled=!1,this.focusable=!1,this.lastKeyWasTab=!1,this.handleKeyDown=s=>{s.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(s){if(s.has("disabled")){const t=s.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"))}s.has("focusable")&&(this.focusable&&!this.disabled?this.setAttribute("tabindex","0"):!this.focusable&&!this.disabled&&this.removeAttribute("tabindex")),super.willUpdate(s)}render(){const s=this.disabled||this.label==""?"disabled":"";return g`<div
3387
3387
  data-tooltip-text="${this.label.trim().replace("&nbsp;"," ")}"
3388
3388
  class="tooltip ${s}"
3389
3389
  >
3390
3390
  <slot></slot>
3391
- </div>`}};Ie.styles=[S`
3391
+ </div>`}};Me.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
- `],As([a({type:String})],Ie.prototype,"label",2),As([a({type:String,reflect:!0})],Ie.prototype,"placement",2),As([a({type:Boolean})],Ie.prototype,"disabled",2),As([a({type:Boolean})],Ie.prototype,"focusable",2),Ie=As([C(bd)],Ie);var md=Object.defineProperty,gd=Object.getOwnPropertyDescriptor,Gt=(s,t,i,r)=>{for(var e=r>1?void 0:r?gd(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&md(t,i,e),e};const vd="sonic-divider";let Et=class extends P{constructor(){super(...arguments),this.label="",this.align="center",this.vertical=!1,this.noMargin=!1,this.dashed=!1,this.dotted=!1}firstUpdated(s){super.firstUpdated(s),(this.label||this.slotNodes?.length)&&this.divider?.classList.add("has-text")}render(){return g`<div part="divider">
3497
+ `],ks([a({type:String})],Me.prototype,"label",2),ks([a({type:String,reflect:!0})],Me.prototype,"placement",2),ks([a({type:Boolean})],Me.prototype,"disabled",2),ks([a({type:Boolean})],Me.prototype,"focusable",2),Me=ks([C(bd)],Me);var md=Object.defineProperty,gd=Object.getOwnPropertyDescriptor,Xt=(s,t,i,r)=>{for(var e=r>1?void 0:r?gd(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&md(t,i,e),e};const vd="sonic-divider";let Mt=class extends P{constructor(){super(...arguments),this.label="",this.align="center",this.vertical=!1,this.noMargin=!1,this.dashed=!1,this.dotted=!1}firstUpdated(s){super.firstUpdated(s),(this.label||this.slotNodes?.length)&&this.divider?.classList.add("has-text")}render(){return g`<div part="divider">
3498
3498
  <span class="text"
3499
- >${U(this.label?this.label:"")}<slot></slot
3499
+ >${B(this.label?this.label:"")}<slot></slot
3500
3500
  ></span>
3501
- </div>`}};Et.styles=[S`
3501
+ </div>`}};Mt.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
- `],Gt([dt({flatten:!0})],Et.prototype,"slotNodes",2),Gt([re("div")],Et.prototype,"divider",2),Gt([a({type:String})],Et.prototype,"label",2),Gt([a({type:String,reflect:!0})],Et.prototype,"size",2),Gt([a({type:String,reflect:!0})],Et.prototype,"align",2),Gt([a({type:Boolean,reflect:!0})],Et.prototype,"vertical",2),Gt([a({type:Boolean,reflect:!0})],Et.prototype,"noMargin",2),Gt([a({type:Boolean,reflect:!0})],Et.prototype,"dashed",2),Gt([a({type:Boolean,reflect:!0})],Et.prototype,"dotted",2),Et=Gt([C(vd)],Et);var yd=Object.getOwnPropertyDescriptor,_d=(s,t,i,r)=>{for(var e=r>1?void 0:r?yd(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=n(e)||e);return e};const wd="sonic-card-header-description";let nr=class extends P{render(){return g`<slot></slot>`}};nr.styles=[S`
3632
+ `],Xt([ft({flatten:!0})],Mt.prototype,"slotNodes",2),Xt([oe("div")],Mt.prototype,"divider",2),Xt([a({type:String})],Mt.prototype,"label",2),Xt([a({type:String,reflect:!0})],Mt.prototype,"size",2),Xt([a({type:String,reflect:!0})],Mt.prototype,"align",2),Xt([a({type:Boolean,reflect:!0})],Mt.prototype,"vertical",2),Xt([a({type:Boolean,reflect:!0})],Mt.prototype,"noMargin",2),Xt([a({type:Boolean,reflect:!0})],Mt.prototype,"dashed",2),Xt([a({type:Boolean,reflect:!0})],Mt.prototype,"dotted",2),Mt=Xt([C(vd)],Mt);var yd=Object.getOwnPropertyDescriptor,_d=(s,t,i,r)=>{for(var e=r>1?void 0:r?yd(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=o(e)||e);return e};const wd="sonic-card-header-description";let cr=class extends P{render(){return g`<slot></slot>`}};cr.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
- `],nr=_d([C(wd)],nr);var xd=Object.defineProperty,Pd=Object.getOwnPropertyDescriptor,ar=(s,t,i,r)=>{for(var e=r>1?void 0:r?Pd(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&xd(t,i,e),e};const Cd="sonic-card-header";let ks=class extends P{render(){return g`
3640
+ `],cr=_d([C(wd)],cr);var xd=Object.defineProperty,Pd=Object.getOwnPropertyDescriptor,hr=(s,t,i,r)=>{for(var e=r>1?void 0:r?Pd(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&xd(t,i,e),e};const Cd="sonic-card-header";let Ds=class extends P{render(){return g`
3641
3641
  <div class="header-content">
3642
- ${U(this.label)}
3642
+ ${B(this.label)}
3643
3643
  ${this.description?g`<sonic-card-header-description
3644
- >${U(this.description)}</sonic-card-header-description
3645
- >`:D}
3644
+ >${B(this.description)}</sonic-card-header-description
3645
+ >`:k}
3646
3646
  <slot></slot>
3647
3647
  </div>
3648
3648
  <slot name="suffix"></slot>
3649
- `}};ks.styles=[S`
3649
+ `}};Ds.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
- `],ar([a()],ks.prototype,"label",2),ar([a()],ks.prototype,"description",2),ks=ar([C(Cd)],ks);var Sd=Object.getOwnPropertyDescriptor,$d=(s,t,i,r)=>{for(var e=r>1?void 0:r?Sd(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=n(e)||e);return e};const Ad="sonic-card-main";let lr=class extends P{render(){return g`<slot></slot>`}};lr.styles=[S`
3687
+ `],hr([a()],Ds.prototype,"label",2),hr([a()],Ds.prototype,"description",2),Ds=hr([C(Cd)],Ds);var Sd=Object.getOwnPropertyDescriptor,$d=(s,t,i,r)=>{for(var e=r>1?void 0:r?Sd(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=o(e)||e);return e};const Ad="sonic-card-main";let dr=class extends P{render(){return g`<slot></slot>`}};dr.styles=[S`
3688
3688
  :host {
3689
3689
  display: block;
3690
3690
  }
3691
- `],lr=$d([C(Ad)],lr);var kd=Object.getOwnPropertyDescriptor,Dd=(s,t,i,r)=>{for(var e=r>1?void 0:r?kd(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=n(e)||e);return e};const Od="sonic-card-footer";let cr=class extends P{render(){return g` <slot></slot> `}};cr.styles=[S`
3691
+ `],dr=$d([C(Ad)],dr);var kd=Object.getOwnPropertyDescriptor,Dd=(s,t,i,r)=>{for(var e=r>1?void 0:r?kd(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=o(e)||e);return e};const Od="sonic-card-footer";let ur=class extends P{render(){return g` <slot></slot> `}};ur.styles=[S`
3692
3692
  :host {
3693
3693
  display: block;
3694
3694
  }
3695
- `],cr=Dd([C(Od)],cr);const hr=S`
3695
+ `],ur=Dd([C(Od)],ur);const pr=S`
3696
3696
  :host {
3697
3697
  --sc-_color: inherit;
3698
3698
  color: var(--sc-_color);
@@ -3780,7 +3780,7 @@ ${this.value}</textarea
3780
3780
  .inherit-bg {
3781
3781
  color: inherit;
3782
3782
  }
3783
- `;var Ld=Object.defineProperty,Td=Object.getOwnPropertyDescriptor,Ho=(s,t,i,r)=>{for(var e=r>1?void 0:r?Td(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&Ld(t,i,e),e};const Id="sonic-card";let ci=class extends P{constructor(){super(...arguments),this.type="base"}render(){return g`<slot></slot> `}};ci.styles=[Ed,S`
3783
+ `;var Ld=Object.defineProperty,Td=Object.getOwnPropertyDescriptor,Wn=(s,t,i,r)=>{for(var e=r>1?void 0:r?Td(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&Ld(t,i,e),e};const Id="sonic-card";let di=class extends P{constructor(){super(...arguments),this.type="base"}render(){return g`<slot></slot> `}};di.styles=[Ed,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
- `],Ho([a({type:String,reflect:!0})],ci.prototype,"type",2),ci=Ho([C(Id)],ci);var Md=Object.defineProperty,Nd=Object.getOwnPropertyDescriptor,Ds=(s,t,i,r)=>{for(var e=r>1?void 0:r?Nd(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&Md(t,i,e),e};const Fd="sonic-tr";let Me=class extends st(P){constructor(){super(...arguments),this._metadata_={}}willUpdate(s){s.has("_metadata_")&&(this.even=!!this._metadata_.even,this.odd=!!this._metadata_.odd,this.last=!!this._metadata_.lastChild),super.willUpdate(s)}render(){return g`<slot></slot>`}};Me.styles=[hr,S`
3813
+ `],Wn([a({type:String,reflect:!0})],di.prototype,"type",2),di=Wn([C(Id)],di);var Md=Object.defineProperty,Nd=Object.getOwnPropertyDescriptor,Os=(s,t,i,r)=>{for(var e=r>1?void 0:r?Nd(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&Md(t,i,e),e};const Fd="sonic-tr";let Ne=class extends it(P){constructor(){super(...arguments),this._metadata_={}}willUpdate(s){s.has("_metadata_")&&(this.even=!!this._metadata_.even,this.odd=!!this._metadata_.odd,this.last=!!this._metadata_.lastChild),super.willUpdate(s)}render(){return g`<slot></slot>`}};Ne.styles=[pr,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
- `],Ds([a({type:Object})],Me.prototype,"_metadata_",2),Ds([a({type:Boolean,reflect:!0})],Me.prototype,"even",2),Ds([a({type:Boolean,reflect:!0})],Me.prototype,"odd",2),Ds([a({type:Boolean,reflect:!0})],Me.prototype,"last",2),Me=Ds([C(Fd)],Me);var jd=Object.defineProperty,Rd=Object.getOwnPropertyDescriptor,Ne=(s,t,i,r)=>{for(var e=r>1?void 0:r?Rd(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&jd(t,i,e),e};const zd="sonic-th";let ee=class extends P{render(){const s={textAlign:this.align,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return g`<th
3831
+ `],Os([a({type:Object})],Ne.prototype,"_metadata_",2),Os([a({type:Boolean,reflect:!0})],Ne.prototype,"even",2),Os([a({type:Boolean,reflect:!0})],Ne.prototype,"odd",2),Os([a({type:Boolean,reflect:!0})],Ne.prototype,"last",2),Ne=Os([C(Fd)],Ne);var jd=Object.defineProperty,Rd=Object.getOwnPropertyDescriptor,Fe=(s,t,i,r)=>{for(var e=r>1?void 0:r?Rd(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&jd(t,i,e),e};const zd="sonic-th";let ie=class extends P{render(){const s={textAlign:this.align,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return g`<th
3832
3832
  part="th"
3833
- style=${gt(s)}
3833
+ style=${_t(s)}
3834
3834
  colspan=${$(this.colSpan)}
3835
3835
  rowspan=${$(this.rowSpan)}
3836
3836
  >
3837
3837
  <slot></slot>
3838
- </th> `}};ee.styles=[hr,S`
3838
+ </th> `}};ie.styles=[pr,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
- `],Ne([a({type:Number})],ee.prototype,"colSpan",2),Ne([a({type:Number})],ee.prototype,"rowSpan",2),Ne([a({type:String})],ee.prototype,"align",2),Ne([a({type:String})],ee.prototype,"minWidth",2),Ne([a({type:String})],ee.prototype,"maxWidth",2),Ne([a({type:String})],ee.prototype,"width",2),ee=Ne([C(zd)],ee);var Ud=Object.defineProperty,Vd=Object.getOwnPropertyDescriptor,ge=(s,t,i,r)=>{for(var e=r>1?void 0:r?Vd(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&Ud(t,i,e),e};const Bd="sonic-td";let Zt=class extends P{render(){const s={textAlign:this.align,verticalAlign:this.vAlign,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return g`<td part="td" style=${gt(s)} colspan=${$(this.colSpan)} rowspan=${$(this.rowSpan)}>
3861
+ `],Fe([a({type:Number})],ie.prototype,"colSpan",2),Fe([a({type:Number})],ie.prototype,"rowSpan",2),Fe([a({type:String})],ie.prototype,"align",2),Fe([a({type:String})],ie.prototype,"minWidth",2),Fe([a({type:String})],ie.prototype,"maxWidth",2),Fe([a({type:String})],ie.prototype,"width",2),ie=Fe([C(zd)],ie);var Ud=Object.defineProperty,Vd=Object.getOwnPropertyDescriptor,ye=(s,t,i,r)=>{for(var e=r>1?void 0:r?Vd(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&Ud(t,i,e),e};const Bd="sonic-td";let Qt=class extends P{render(){const s={textAlign:this.align,verticalAlign:this.vAlign,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return g`<td part="td" style=${_t(s)} colspan=${$(this.colSpan)} rowspan=${$(this.rowSpan)}>
3862
3862
  <slot></slot>
3863
- </td>`}};Zt.styles=[hr,S`
3863
+ </td>`}};Qt.styles=[pr,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
- `],ge([a({type:Number})],Zt.prototype,"colSpan",2),ge([a({type:Number})],Zt.prototype,"rowSpan",2),ge([a({type:String})],Zt.prototype,"align",2),ge([a({type:String})],Zt.prototype,"vAlign",2),ge([a({type:String})],Zt.prototype,"minWidth",2),ge([a({type:String})],Zt.prototype,"maxWidth",2),ge([a({type:String})],Zt.prototype,"width",2),Zt=ge([C(Bd)],Zt);var Hd=Object.getOwnPropertyDescriptor,qd=(s,t,i,r)=>{for(var e=r>1?void 0:r?Hd(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=n(e)||e);return e};const Wd="sonic-thead";let dr=class extends P{render(){return g`<slot></slot>`}};dr.styles=[S`
3876
+ `],ye([a({type:Number})],Qt.prototype,"colSpan",2),ye([a({type:Number})],Qt.prototype,"rowSpan",2),ye([a({type:String})],Qt.prototype,"align",2),ye([a({type:String})],Qt.prototype,"vAlign",2),ye([a({type:String})],Qt.prototype,"minWidth",2),ye([a({type:String})],Qt.prototype,"maxWidth",2),ye([a({type:String})],Qt.prototype,"width",2),Qt=ye([C(Bd)],Qt);var Hd=Object.getOwnPropertyDescriptor,qd=(s,t,i,r)=>{for(var e=r>1?void 0:r?Hd(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=o(e)||e);return e};const Wd="sonic-thead";let fr=class extends P{render(){return g`<slot></slot>`}};fr.styles=[S`
3877
3877
  :host {
3878
3878
  display: table-header-group;
3879
3879
  }
3880
- `],dr=qd([C(Wd)],dr);var Kd=Object.getOwnPropertyDescriptor,Yd=(s,t,i,r)=>{for(var e=r>1?void 0:r?Kd(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=n(e)||e);return e};const Gd="sonic-tbody";let ur=class extends P{render(){return g`<tbody part="tbody">
3880
+ `],fr=qd([C(Wd)],fr);var Kd=Object.getOwnPropertyDescriptor,Yd=(s,t,i,r)=>{for(var e=r>1?void 0:r?Kd(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=o(e)||e);return e};const Gd="sonic-tbody";let br=class extends P{render(){return g`<tbody part="tbody">
3881
3881
  <slot></slot>
3882
- </tbody>`}};ur.styles=[S`
3882
+ </tbody>`}};br.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
- `],ur=Yd([C(Gd)],ur);var Zd=Object.getOwnPropertyDescriptor,Xd=(s,t,i,r)=>{for(var e=r>1?void 0:r?Zd(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=n(e)||e);return e};const Qd="sonic-tfoot";let pr=class extends P{render(){return g`<tfoot>
3899
+ `],br=Yd([C(Gd)],br);var Zd=Object.getOwnPropertyDescriptor,Xd=(s,t,i,r)=>{for(var e=r>1?void 0:r?Zd(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=o(e)||e);return e};const Qd="sonic-tfoot";let mr=class extends P{render(){return g`<tfoot>
3900
3900
  <slot></slot>
3901
- </tfoot>`}};pr.styles=[S`
3901
+ </tfoot>`}};mr.styles=[S`
3902
3902
  :host {
3903
3903
  display: contents;
3904
3904
  }
3905
- `],pr=Xd([C(Qd)],pr);var Jd=Object.getOwnPropertyDescriptor,tu=(s,t,i,r)=>{for(var e=r>1?void 0:r?Jd(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=n(e)||e);return e};const eu="sonic-caption";let fr=class extends P{render(){return g`<slot></slot>`}};fr.styles=[S`
3905
+ `],mr=Xd([C(Qd)],mr);var Jd=Object.getOwnPropertyDescriptor,tu=(s,t,i,r)=>{for(var e=r>1?void 0:r?Jd(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=o(e)||e);return e};const eu="sonic-caption";let gr=class extends P{render(){return g`<slot></slot>`}};gr.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
- `],fr=tu([C(eu)],fr);var su=Object.defineProperty,iu=Object.getOwnPropertyDescriptor,Ze=(s,t,i,r)=>{for(var e=r>1?void 0:r?iu(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&su(t,i,e),e};const ru="sonic-table";let ve=class extends P{render(){const s={maxHeight:this.maxHeight};return g`
3912
+ `],gr=tu([C(eu)],gr);var su=Object.defineProperty,iu=Object.getOwnPropertyDescriptor,Qe=(s,t,i,r)=>{for(var e=r>1?void 0:r?iu(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&su(t,i,e),e};const ru="sonic-table";let _e=class extends P{render(){const s={maxHeight:this.maxHeight};return g`
3913
3913
  <div
3914
3914
  class="table-container ${this.noCustomScroll?"":"custom-scroll"}"
3915
- style=${gt(s)}
3915
+ style=${_t(s)}
3916
3916
  >
3917
3917
  <div class="table">
3918
3918
  <slot></slot>
3919
3919
  </div>
3920
3920
  </div>
3921
- `}};ve.styles=[fs,Ut,S`
3921
+ `}};_e.styles=[bs,Ht,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
- `],Ze([a({type:String,reflect:!0})],ve.prototype,"size",2),Ze([a({type:Boolean,reflect:!0})],ve.prototype,"bordered",2),Ze([a({type:Boolean,reflect:!0})],ve.prototype,"rounded",2),Ze([a({type:Boolean,reflect:!0})],ve.prototype,"noCustomScroll",2),Ze([a({type:String})],ve.prototype,"maxHeight",2),ve=Ze([C(ru)],ve);const qo="AES-CBC",ou=256;async function nu(){return crypto.subtle.generateKey({name:qo,length:ou},!0,["encrypt","decrypt"])}function au(s){return btoa(String.fromCharCode(...new Uint8Array(s)))}async function lu(s,t,i){const r=new TextEncoder().encode(s),e=await crypto.subtle.encrypt({name:qo,iv:i.buffer},t,r);return au(e)}const cu=S`
3966
+ `],Qe([a({type:String,reflect:!0})],_e.prototype,"size",2),Qe([a({type:Boolean,reflect:!0})],_e.prototype,"bordered",2),Qe([a({type:Boolean,reflect:!0})],_e.prototype,"rounded",2),Qe([a({type:Boolean,reflect:!0})],_e.prototype,"noCustomScroll",2),Qe([a({type:String})],_e.prototype,"maxHeight",2),_e=Qe([C(ru)],_e);const Kn="AES-CBC",nu=256;async function ou(){return crypto.subtle.generateKey({name:Kn,length:nu},!0,["encrypt","decrypt"])}function au(s){return btoa(String.fromCharCode(...new Uint8Array(s)))}async function lu(s,t,i){const r=new TextEncoder().encode(s),e=await crypto.subtle.encrypt({name:Kn,iv:i.buffer},t,r);return au(e)}const cu=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 hu=Object.defineProperty,du=Object.getOwnPropertyDescriptor,hi=(s,t,i,r)=>{for(var e=r>1?void 0:r?du(t,i):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(e=(r?n(t,i,e):n(e))||e);return r&&e&&hu(t,i,e),e};const uu="supersoniks_altcha",pu="Si2\\]X8M4!n9DCLd";let Wo=!1;const fu="sonic-captcha";let Xe=class extends ce(P){constructor(){super(...arguments),this.key="",this.action=null,this.zIndex=9999,this.onCaptchaTokenChanged=s=>{s=="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 s=document.createElement("script");s.type="module",this.setAttribute("async",""),this.setAttribute("defer",""),s.src="https://cdn.jsdelivr.net/gh/altcha-org/altcha/dist/altcha.min.js",Wo=!0,document.head.appendChild(s)}this.generateEncryptedKey(),super.connectedCallback(),this.formPublisher=Ns(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 s=this.shadowRoot.querySelector("form");if(!s)return;const t=new FormData(s);this.formPublisher.captchaKey.set(this.key),this.formPublisher.captchaToken.set(t.get("altcha")?.toString()||"")}async generateEncryptedKey(){if(this.key)return;const s=await nu(),t=new TextEncoder().encode(pu),i=await lu(uu,s,t);this.key=i}render(){if(!this.key)return D;const t=le.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 g`
4189
+ `;var hu=Object.defineProperty,du=Object.getOwnPropertyDescriptor,ui=(s,t,i,r)=>{for(var e=r>1?void 0:r?du(t,i):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(e=(r?o(t,i,e):o(e))||e);return r&&e&&hu(t,i,e),e};const uu="supersoniks_altcha",pu="Si2\\]X8M4!n9DCLd";let Yn=!1;const fu="sonic-captcha";let Je=class extends de(P){constructor(){super(...arguments),this.key="",this.action=null,this.zIndex=9999,this.onCaptchaTokenChanged=s=>{s=="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(!Yn){const s=document.createElement("script");s.type="module",this.setAttribute("async",""),this.setAttribute("defer",""),s.src="https://cdn.jsdelivr.net/gh/altcha-org/altcha/dist/altcha.min.js",Yn=!0,document.head.appendChild(s)}this.generateEncryptedKey(),super.connectedCallback(),this.formPublisher=Fs(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 s=this.shadowRoot.querySelector("form");if(!s)return;const t=new FormData(s);this.formPublisher.captchaKey.set(this.key),this.formPublisher.captchaToken.set(t.get("altcha")?.toString()||"")}async generateEncryptedKey(){if(this.key)return;const s=await ou(),t=new TextEncoder().encode(pu),i=await lu(uu,s,t);this.key=i}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 g`
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
- `}};Xe.styles=[cu,S`
4201
+ `}};Je.styles=[cu,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
- `],hi([a()],Xe.prototype,"key",2),hi([a()],Xe.prototype,"action",2),hi([a({type:Number})],Xe.prototype,"zIndex",2),Xe=hi([C(fu)],Xe),window.queueMicrotask=window.queueMicrotask||function(s){Promise.resolve().then(s).catch(t=>setTimeout(()=>{throw t}))};class bu extends $i{constructor(t){super(t),this.observables=new Set,this.cleanupWatchers=[],this.onAssign=i=>{this.setValue(i)},this.node=t.options?.host}teardownWatchers(){this.cleanupWatchers.forEach(t=>t()),this.cleanupWatchers=[]}normalizeInput(t){return po(t)?t.path:t}render(t){const i=this.normalizeInput(t),r=this.pathTemplate!==i;return r&&(this.pathTemplate=i,this.teardownWatchers()),(r||!this.resolvedPath)&&queueMicrotask(()=>{!this.isConnected||!this.pathTemplate||this.setupSubscription()}),Pt}setupSubscription(){const t=this.node,i=this.pathTemplate;if(!t||!i)return;this.teardownWatchers();const r=Nt(i);if(r.length>0)for(const e of r)this.cleanupWatchers.push(de(Js.watcherStore,Js.hooked,t,e,()=>this.refreshSubscription()));this.refreshSubscription()}refreshSubscription(){const t=this.node,i=this.pathTemplate;if(!i)return;const r=Nt(i).length>0;let e=i;if(r)if(!t)e=null;else{const o=$t(t,i);e=o.ready?o.path:null}if(e!==this.resolvedPath){if(!e){this.unsubscribe(),this.resolvedPath=void 0,this.setValue(void 0);return}this.resolvedPath=e,this.subscribe(e)}}subscribe(t){this.unsubscribe(),this.onAssign=i=>{this.setValue(i)},this.observables=Is(t),this.observables.forEach(i=>{i.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 Ko=ne(bu),mu=Ko,gu=Ko;window["concorde-directives-data-provider"]=window["concorde-directives-data-provider"]||{},window["concorde-directives-data-provider"]={dp:Ns,dataProvider:ln,sub:gu,subscribe:mu,get:an,set:cn};const vu=L,yu=N;window["concorde-components"]=window["concorde-components"]||{},window["concorde-components"]={SonicToast:vu,SonicModal:yu};const _u=window;_u.concordeIsLoaded=!0,window.dispatchEvent(new CustomEvent("concorde-loaded"))}));
4220
+ `],ui([a()],Je.prototype,"key",2),ui([a()],Je.prototype,"action",2),ui([a({type:Number})],Je.prototype,"zIndex",2),Je=ui([C(fu)],Je),window.queueMicrotask=window.queueMicrotask||function(s){Promise.resolve().then(s).catch(t=>setTimeout(()=>{throw t}))};class bu extends Oi{constructor(t){super(t),this.observables=new Set,this.cleanupWatchers=[],this.onAssign=i=>{this.setValue(i)},this.node=t.options?.host}teardownWatchers(){this.cleanupWatchers.forEach(t=>t()),this.cleanupWatchers=[]}normalizeInput(t){return bn(t)?t.path:t}render(t){const i=this.normalizeInput(t),r=this.pathTemplate!==i;return r&&(this.pathTemplate=i,this.teardownWatchers()),(r||!this.resolvedPath)&&queueMicrotask(()=>{!this.isConnected||!this.pathTemplate||this.setupSubscription()}),At}setupSubscription(){const t=this.node,i=this.pathTemplate;if(!t||!i)return;this.teardownWatchers();const r=Et(i);if(r.length>0)for(const e of r)this.cleanupWatchers.push(pe(ti.watcherStore,ti.hooked,t,e,()=>this.refreshSubscription()));this.refreshSubscription()}refreshSubscription(){const t=this.node,i=this.pathTemplate;if(!i)return;const r=Et(i).length>0;let e=i;if(r)if(!t)e=null;else{const n=Ct(t,i);e=n.ready?n.path:null}if(e!==this.resolvedPath){if(!e){this.unsubscribe(),this.resolvedPath=void 0,this.setValue(void 0);return}this.resolvedPath=e,this.subscribe(e)}}subscribe(t){this.unsubscribe(),this.onAssign=i=>{this.setValue(i)},this.observables=Ms(t),this.observables.forEach(i=>{i.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 Gn=le(bu),mu=Gn,gu=Gn;window["concorde-directives-data-provider"]=window["concorde-directives-data-provider"]||{},window["concorde-directives-data-provider"]={dp:Fs,dataProvider:lo,sub:gu,subscribe:mu,get:ao,set:co};const vu=L,yu=I;window["concorde-components"]=window["concorde-components"]||{},window["concorde-components"]={SonicToast:vu,SonicModal:yu};const _u=window;_u.concordeIsLoaded=!0,window.dispatchEvent(new CustomEvent("concorde-loaded"))}));