@supersoniks/concorde 3.1.49 → 3.1.52

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 (160) hide show
  1. package/build-infos.json +1 -1
  2. package/concorde-core.bundle.js +185 -120
  3. package/concorde-core.es.js +1339 -1258
  4. package/dist/concorde-core.bundle.js +185 -120
  5. package/dist/concorde-core.es.js +1339 -1258
  6. package/index.html +0 -0
  7. package/package.json +4 -1
  8. package/scripts/pre-build.mjs +0 -0
  9. package/scripts/pre-publish.mjs +0 -0
  10. package/src/core/components/functional/if/if.md +1 -1
  11. package/src/core/components/functional/queue/queue.ts +0 -0
  12. package/src/core/components/functional/router/router.md +0 -0
  13. package/src/core/components/functional/router/router.ts +0 -0
  14. package/src/core/components/functional/sonic-scope/sonic-scope.ts +0 -0
  15. package/src/core/components/functional/states/states.md +0 -0
  16. package/src/core/components/functional/states/states.ts +0 -0
  17. package/src/core/components/functional/submit/submit.md +0 -0
  18. package/src/core/components/functional/submit/submit.ts +0 -0
  19. package/src/core/components/ui/alert/alert.md +0 -0
  20. package/{docs/css/docs.css → src/core/components/ui/alert-messages/alert-messages.md} +0 -0
  21. package/src/core/components/ui/alert-messages/alert-messages.ts +0 -0
  22. package/src/core/components/ui/badge/badge.md +0 -0
  23. package/src/core/components/ui/button/button.md +0 -2
  24. package/src/core/components/ui/captcha/captcha.ts +0 -0
  25. package/src/core/components/ui/card/card.md +1 -1
  26. package/src/core/components/ui/form/checkbox/checkbox.md +0 -0
  27. package/src/core/components/ui/form/checkbox/checkbox.ts +1 -1
  28. package/src/core/components/ui/form/fieldset/fieldset.ts +0 -0
  29. package/src/core/components/ui/form/form-layout/form-layout.md +1 -0
  30. package/src/core/components/ui/form/input/password-helper.ts +0 -0
  31. package/src/core/components/ui/form/input/same-value-helper.ts +0 -0
  32. package/src/core/components/ui/form/radio/radio.md +0 -0
  33. package/src/core/components/ui/form/select/select.md +0 -0
  34. package/src/core/components/ui/form/switch/switch.md +84 -0
  35. package/src/core/components/ui/form/switch/switch.ts +77 -0
  36. package/src/core/components/ui/group/group.ts +0 -0
  37. package/src/core/components/ui/icon/icons.ts +0 -0
  38. package/src/core/components/ui/image/image.md +13 -13
  39. package/src/core/components/ui/image/image.ts +0 -0
  40. package/src/core/components/ui/menu/menu.ts +0 -0
  41. package/src/core/components/ui/modal/modal-actions.ts +6 -5
  42. package/src/core/components/ui/modal/modal.md +6 -6
  43. package/src/core/components/ui/theme/theme-collection/dark.ts +0 -0
  44. package/src/core/components/ui/toast/message-subscriber.ts +0 -0
  45. package/src/core/components/ui/toast/toast.ts +0 -0
  46. package/src/core/components/ui/ui.ts +1 -0
  47. package/src/core/core.ts +0 -0
  48. package/src/core/mixins/FormCheckable.ts +0 -0
  49. package/src/core/mixins/Subscriber.ts +0 -0
  50. package/src/core/utils/HTML.ts +0 -0
  51. package/src/core/utils/LocationHandler.ts +0 -0
  52. package/src/core/utils/Objects.ts +0 -0
  53. package/src/core/utils/PublisherProxy.ts +0 -0
  54. package/src/core/utils/Utils.ts +0 -0
  55. package/src/core/utils/route.ts +0 -0
  56. package/src/docs/code.ts +2 -0
  57. package/src/docs/docs.ts +0 -0
  58. package/src/docs/header/header.ts +1 -1
  59. package/src/docs/navigation/navigation.ts +8 -0
  60. package/src/docs/search/docs-search.json +20 -5
  61. package/src/docs/search/markdown-renderer.ts +26 -8
  62. package/src/docs/search/page.ts +0 -0
  63. package/src/tsconfig-model.json +0 -0
  64. package/src/tsconfig.json +9 -0
  65. package/src/tsconfig.tsbuildinfo +1 -1
  66. package/vite/config.js +0 -0
  67. package/docs/assets/index-CcoMn1RV.js +0 -4465
  68. package/docs/assets/index-D0m8hkmQ.css +0 -1
  69. package/docs/fonts/ClashGrotesk-Bold.eot +0 -0
  70. package/docs/fonts/ClashGrotesk-Bold.ttf +0 -0
  71. package/docs/fonts/ClashGrotesk-Bold.woff +0 -0
  72. package/docs/fonts/ClashGrotesk-Bold.woff2 +0 -0
  73. package/docs/fonts/ClashGrotesk-Extralight.eot +0 -0
  74. package/docs/fonts/ClashGrotesk-Extralight.ttf +0 -0
  75. package/docs/fonts/ClashGrotesk-Extralight.woff +0 -0
  76. package/docs/fonts/ClashGrotesk-Extralight.woff2 +0 -0
  77. package/docs/fonts/ClashGrotesk-Light.eot +0 -0
  78. package/docs/fonts/ClashGrotesk-Light.ttf +0 -0
  79. package/docs/fonts/ClashGrotesk-Light.woff +0 -0
  80. package/docs/fonts/ClashGrotesk-Light.woff2 +0 -0
  81. package/docs/fonts/ClashGrotesk-Medium.eot +0 -0
  82. package/docs/fonts/ClashGrotesk-Medium.ttf +0 -0
  83. package/docs/fonts/ClashGrotesk-Medium.woff +0 -0
  84. package/docs/fonts/ClashGrotesk-Medium.woff2 +0 -0
  85. package/docs/fonts/ClashGrotesk-Regular.eot +0 -0
  86. package/docs/fonts/ClashGrotesk-Regular.ttf +0 -0
  87. package/docs/fonts/ClashGrotesk-Regular.woff +0 -0
  88. package/docs/fonts/ClashGrotesk-Regular.woff2 +0 -0
  89. package/docs/fonts/ClashGrotesk-Semibold.eot +0 -0
  90. package/docs/fonts/ClashGrotesk-Semibold.ttf +0 -0
  91. package/docs/fonts/ClashGrotesk-Semibold.woff +0 -0
  92. package/docs/fonts/ClashGrotesk-Semibold.woff2 +0 -0
  93. package/docs/fonts/ClashGrotesk-Variable.eot +0 -0
  94. package/docs/fonts/ClashGrotesk-Variable.ttf +0 -0
  95. package/docs/fonts/ClashGrotesk-Variable.woff +0 -0
  96. package/docs/fonts/ClashGrotesk-Variable.woff2 +0 -0
  97. package/docs/img/concorde-icon.svg +0 -5
  98. package/docs/img/concorde-logo.svg +0 -1
  99. package/docs/img/concorde.png +0 -0
  100. package/docs/img/concorde_def.png +0 -0
  101. package/docs/img/concorde_seuil.png.webp +0 -0
  102. package/docs/img/concorde_seuil_invert.png +0 -0
  103. package/docs/img/paul_metrand.jpg +0 -0
  104. package/docs/img/paul_metrand_xs.jpg +0 -0
  105. package/docs/index.html +0 -93
  106. package/docs/src/core/components/functional/date/date.md +0 -290
  107. package/docs/src/core/components/functional/fetch/fetch.md +0 -117
  108. package/docs/src/core/components/functional/if/if.md +0 -16
  109. package/docs/src/core/components/functional/list/list.md +0 -199
  110. package/docs/src/core/components/functional/mix/mix.md +0 -41
  111. package/docs/src/core/components/functional/queue/queue.md +0 -87
  112. package/docs/src/core/components/functional/router/router.md +0 -108
  113. package/docs/src/core/components/functional/sdui/default-library.json +0 -108
  114. package/docs/src/core/components/functional/sdui/example.json +0 -99
  115. package/docs/src/core/components/functional/sdui/sdui.md +0 -356
  116. package/docs/src/core/components/functional/states/states.md +0 -87
  117. package/docs/src/core/components/functional/submit/submit.md +0 -83
  118. package/docs/src/core/components/functional/subscriber/subscriber.md +0 -91
  119. package/docs/src/core/components/functional/value/value.md +0 -35
  120. package/docs/src/core/components/ui/alert/alert.md +0 -121
  121. package/docs/src/core/components/ui/badge/badge.md +0 -127
  122. package/docs/src/core/components/ui/button/button.md +0 -184
  123. package/docs/src/core/components/ui/captcha/captcha.md +0 -12
  124. package/docs/src/core/components/ui/card/card.md +0 -97
  125. package/docs/src/core/components/ui/divider/divider.md +0 -35
  126. package/docs/src/core/components/ui/form/checkbox/checkbox.md +0 -94
  127. package/docs/src/core/components/ui/form/fieldset/fieldset.md +0 -129
  128. package/docs/src/core/components/ui/form/form-actions/form-actions.md +0 -77
  129. package/docs/src/core/components/ui/form/form-layout/form-layout.md +0 -43
  130. package/docs/src/core/components/ui/form/input/input.md +0 -167
  131. package/docs/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +0 -130
  132. package/docs/src/core/components/ui/form/radio/radio.md +0 -84
  133. package/docs/src/core/components/ui/form/select/select.md +0 -97
  134. package/docs/src/core/components/ui/form/textarea/textarea.md +0 -65
  135. package/docs/src/core/components/ui/group/group.md +0 -75
  136. package/docs/src/core/components/ui/icon/icon.md +0 -125
  137. package/docs/src/core/components/ui/icon/icons.json +0 -1
  138. package/docs/src/core/components/ui/image/image.md +0 -107
  139. package/docs/src/core/components/ui/link/link.md +0 -43
  140. package/docs/src/core/components/ui/loader/loader.md +0 -67
  141. package/docs/src/core/components/ui/menu/menu.md +0 -288
  142. package/docs/src/core/components/ui/modal/modal.md +0 -123
  143. package/docs/src/core/components/ui/pop/pop.md +0 -79
  144. package/docs/src/core/components/ui/progress/progress.md +0 -63
  145. package/docs/src/core/components/ui/table/table.md +0 -455
  146. package/docs/src/core/components/ui/tooltip/tooltip.md +0 -82
  147. package/docs/src/docs/_core-concept/overview.md +0 -57
  148. package/docs/src/docs/_core-concept/subscriber.md +0 -76
  149. package/docs/src/docs/_getting-started/concorde-outside.md +0 -143
  150. package/docs/src/docs/_getting-started/create-a-component.md +0 -137
  151. package/docs/src/docs/_getting-started/my-first-subscriber.md +0 -174
  152. package/docs/src/docs/_getting-started/pubsub.md +0 -150
  153. package/docs/src/docs/_getting-started/start.md +0 -39
  154. package/docs/src/docs/_getting-started/theming.md +0 -91
  155. package/docs/src/docs/search/docs-search.json +0 -3887
  156. package/docs/src/tag-list.json +0 -1
  157. package/docs/src/tsconfig-model.json +0 -23
  158. package/docs/src/tsconfig.json +0 -826
  159. package/docs/svg/regular/plane.svg +0 -1
  160. package/docs/svg/solid/plane.svg +0 -1
@@ -1,4 +1,4 @@
1
- (function(K){typeof define=="function"&&define.amd?define(K):K()})(function(){"use strict";var St,k,L,Oo,t,G;let K=class Rt{static getLanguage(){const t=document.documentElement.lang;return localStorage.getItem("SonicSelectedLanguage")||t}static getCookies(){return document.cookie.split(";").reduce((t,s)=>{const i=s.indexOf("=");return t[s.substring(0,i).trim()]=s.substring(i+1),t},{})}static everyAncestors(t,s){for(;t;){if(!s(t))return;t=t.parentNode||t.host}}static getScrollableAncestor(t){for(;t;){const s=t;if(s.nodeType===1){const i=window.getComputedStyle(s);if((i==null?void 0:i.overflowY)==="hidden"||(i==null?void 0:i.overflowX)==="hidden")return t}t=t.parentNode||t.host}return null}static getAncestorAttributeValue(t,s){if(!t)return null;for(;!("hasAttribute"in t&&t.hasAttribute(s))&&(t.parentNode||t.host);)t=t.parentNode||t.host;return"hasAttribute"in t?t.getAttribute(s):null}static getApiConfiguration(t){const s=Rt.getAncestorAttributeValue(t,"token"),i=Rt.getAncestorAttributeValue(t,"addHTTPResponse")!=null,e=Rt.getAncestorAttributeValue(t,"serviceURL");let o=null,n=null;const a=Rt.getAncestorAttributeValue(t,"tokenProvider"),c=Rt.getAncestorAttributeValue(t,"eventsApiToken");s||(o=Rt.getAncestorAttributeValue(t,"userName"),n=Rt.getAncestorAttributeValue(t,"password"));const h=Rt.getAncestorAttributeValue(t,"credentials")||void 0,d=t.getAttribute("cache"),p=t.hasAttribute("blockUntilDone");return{serviceURL:e,token:s,userName:o,password:n,authToken:c,tokenProvider:a,addHTTPResponse:i,credentials:h,cache:d,blockUntilDone:p}}static getClosestElement(t,s){for(;!(t.nodeName&&t.nodeName.toLowerCase()===s)&&(t.parentNode||t.host);)t=t.parentNode||t.host;return t.nodeName?t:null}static getClosestForm(t){return Rt.getClosestElement(t,"form")}static async loadJS(t){return new Promise(async i=>{const e=document.createElement("script");e.src=t,e.onload=()=>i(!0),e.onerror=()=>i(!0),document.head.appendChild(e)})}static async loadCSS(t){return new Promise(async i=>{const e=document.createElement("link");e.type="text/css",e.rel="stylesheet",e.href=t,e.onload=()=>i(!0),e.onerror=()=>i(!0),document.head.appendChild(e)})}};const ti=r=>{const t=document.documentElement,s=new MutationObserver(e=>{for(let o of e)o.type==="attributes"&&o.attributeName==="lang"&&r()}),i={attributes:!0,attributeFilter:["lang"]};s.observe(t,i)};let vs=class{static ucFirst(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.substring(1)}static minutesDuration(t,s="",i="long"){s||(s=K.getLanguage());const e=(h,d)=>[Math.floor(h/d),h%d];function o(h,d,p){return new Intl.NumberFormat(h,{style:"unit",unit:d,unitDisplay:p}).format}const[n,a]=e(t,60),c=[];return n&&c.push(o(s,"hour",i)(n)),a&&c.push(o(s,"minute",i)(a)),new Intl.ListFormat(s,{style:"long",type:"conjunction"}).format(c)}static js(t){try{return Function("return "+t)()}catch{return""}}},Eo=class{static async queueTaskPromise(){return new Promise(t=>{window.queueMicrotask(()=>t(null))})}static async delayPromise(t){return new Promise(s=>{setTimeout(s,t)})}},ir="sonic";typeof __SONIC_PREFIX__<"u"&&(ir=__SONIC_PREFIX__);let rr=ir.replace(/-([a-z])/g,r=>r[1].toUpperCase());const ys=rr.charAt(0).toUpperCase()+rr.slice(1);function _s(r){return Object.prototype.hasOwnProperty.call(r,"__value")}function Ve(r){return typeof r=="object"&&r!=null}let De="sonic";typeof __SONIC_PREFIX__>"u"&&(De="sonic"+Math.floor(Math.random()*1e6));const ei=De=="sonic"?"publisher-proxies-data":De+"-publisher-proxies-data";let si=(St=class{constructor(t,s,i){for(this._proxies_=new Map,this._is_savable_=!1,this._invalidateListeners_=new Set,this._formInvalidateListeners_=new Set,this._assignListeners_=new Set,this._mutationListeners_=new Set,this._fillListeners_=new Set,this._templateFillListeners_=new Set,this._lockInternalMutationPublishing_=!1,this._instanceCounter_=0,this._assignmentId_=0,this._value_=t,this.parent=s||null,this._parentKey_=i,this.root=this,this._instanceCounter_=0;this.root.parent;)this.root=this.root.parent}delete(){var t;for(const s in this._proxies_.keys())s!="_parent_"&&((t=this._proxies_.get(s))==null||t.delete());this._invalidateListeners_.clear(),this._formInvalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear(),St.instances.delete(this._instanceCounter_)}hasListener(){return this._templateFillListeners_.size>0||this._assignListeners_.size>0||this._invalidateListeners_.size>0||this._formInvalidateListeners_.size>0||this._mutationListeners_.size>0||this._fillListeners_.size>0}_publishInternalMutation_(t=!1){if(this._mutationListeners_.forEach(s=>s()),this._is_savable_&&!N.changed){N.changed=!0,N.saveId++;const s=N.saveId;setTimeout(()=>N.getInstance().saveToLocalStorage(s),1e3)}t||this.parent&&this.parent._publishInternalMutation_()}async _publishAssignement_(t=!1){if(this._assignmentId_++,this._assignmentId_!==this._assignmentId_)return;const i=this.get();this._assignListeners_.forEach(e=>{e(i)}),this._publishInternalMutation_(t)}_publishInvalidation_(){this._invalidateListeners_.forEach(t=>t())}_publishFormInvalidation_(){this._formInvalidateListeners_.forEach(t=>t())}_publishDynamicFilling_(t,s){this._fillListeners_.forEach(i=>{i[t]!==s&&(i[t]=s)}),this._publishTemplateFilling_(t,s)}_publishTemplateFilling_(t,s){this._templateFillListeners_.forEach(i=>{const e=Object.getOwnPropertyDescriptor(i,t);e&&!e.set&&!e.writable||(i.propertyMap&&i.propertyMap[t]&&(t=i.propertyMap[t]),typeof i[t]<"u"&&i[t]!==s&&(i[t]=s))})}onAssign(t,s=!0){typeof t=="function"&&(this._assignListeners_.has(t)||(this._assignListeners_.add(t),s&&t(this.get())))}offAssign(t){this._assignListeners_.delete(t)}onInvalidate(t){typeof t=="function"&&this._invalidateListeners_.add(t)}offInvalidate(t){typeof t=="function"&&this._invalidateListeners_.delete(t)}invalidate(){this._publishInvalidation_()}onFormInvalidate(t){typeof t=="function"&&this._formInvalidateListeners_.add(t)}offFormInvalidate(t){typeof t=="function"&&this._formInvalidateListeners_.delete(t)}invalidateForm(){this._publishFormInvalidation_()}onInternalMutation(t){typeof t=="function"&&(this._mutationListeners_.add(t),t())}offInternalMutation(t){typeof t=="function"&&this._mutationListeners_.delete(t)}startTemplateFilling(t){if(this._templateFillListeners_.add(t),typeof this._value_=="object")for(const s in this._value_){let i=s;const e=this._value_[s];t.propertyMap&&t.propertyMap[s]&&(i=t.propertyMap[s]),typeof t[s]<"u"&&t[s]!==e&&(t[i]=e)}}stopTemplateFilling(t){this._templateFillListeners_.delete(t)}startDynamicFilling(t){this._fillListeners_.add(t);for(const s in this._value_){const i=this._value_[s];t[s]!==i&&(t[s]=i)}}stopDynamicFilling(t){this._fillListeners_.delete(t)}set(t,s=!1){var e,o,n;if(this._value_===t||this._value_&&t&&_s(this._value_)&&_s(t)&&this._value_.__value===t.__value)return!0;this._value_=Ve(t)?t:{__value:t},this._cachedGet_=void 0;const i=_s(this._value_);if(this._parentKey_&&this.parent){const a=_s(this._value_)?this._value_.__value:this._value_;if(((e=this.parent)==null?void 0:e.get())==null&&((o=this.parent)==null?void 0:o.get())==null)if(isNaN(Number(this._parentKey_)))this.parent.set({[this._parentKey_]:a});else{const c=[];c[Number(this._parentKey_)]=a,this.parent.set(c)}else this.parent._value_[this._parentKey_]=a}if(i)return this._publishAssignement_(s),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_.__value),!0;for(const a in this._value_)this._value_[a]===void 0&&delete this._value_[a];if(this._proxies_.forEach((a,c)=>{const h=this._value_[c];c!="_parent_"&&h===void 0&&h!==null&&isNaN(Number(c))&&(a.set(null),this._publishDynamicFilling_(c,null))}),this._publishAssignement_(),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_),Ve(this._value_))for(const a in this._value_){const c=t[a],d=Ve(c)?c:{__value:c};if(!this._proxies_.has(a)){this._publishDynamicFilling_(a,c);continue}(n=this._proxies_.get(a))==null||n.set(d,!0),this._publishDynamicFilling_(a,c)}return!0}get(){if(this._cachedGet_!==void 0)return this._cachedGet_;if(N.modifiedCollectore.length>0&&N.modifiedCollectore[0].add(this),Object.prototype.hasOwnProperty.call(this._value_,"__value")){const t=this._value_.__value;return this._cachedGet_=t??null}return this._cachedGet_=this._value_!=null?this._value_:null}get $tag(){return this._instanceCounter_||(St.instancesCounter++,this._instanceCounter_=St.instancesCounter),St.instances.set(this._instanceCounter_,this),"<"+De+'-publisher-proxy publisher="'+this._instanceCounter_+'"></'+De+"-publisher-proxy>"}},St.instances=new Map,St.instancesCounter=0,St),N=(k=class{constructor(){if(this.enabledLocaStorageProxies=[],this.publishers=new Map,this.localStorageData={},this.isLocalStrorageReady=null,this.initialisedData=[],k.instance!=null)throw"Singleton / use getInstance";k.instance=this,this.isLocalStrorageReady=this.cleanStorageData()}async cleanStorageData(){return new Promise(t=>{(async()=>{try{let i=localStorage.getItem(ei),e=null;if(i&&(e=await this.decompress(i,"gzip")),e)try{this.localStorageData=JSON.parse(e)}catch{this.localStorageData={}}else i=await this.compress("{}","gzip"),localStorage.setItem(ei,i),this.localStorageData={};const o=new Date().getTime()-1e3*60*60*12;for(const n in this.localStorageData)this.localStorageData[n].lastModifiationMS<o&&delete this.localStorageData[n];t(!0)}catch{window.requestAnimationFrame(()=>{t(!1)}),console.warn("no publisher cache in this browser")}})()})}static getInstance(t){if(t){const s=k.instances.get(t);return s||(console.warn("No PublisherManager instance registered with id:",t,"creating new one"),new k)}return k.instance==null?new k:k.instance}static registerInstance(t,s){k.instances.has(t)&&console.warn("PublisherManager instance already registered with id: ",t),k.instances.set(t,s)}static get(t,s){return k.getInstance().get(t,s)}static collectModifiedPublisher(){k.modifiedCollectore.unshift(new Set)}static getModifiedPublishers(){return k.modifiedCollectore.shift()}static delete(t){return t?k.getInstance().delete(t):!1}async setLocalData(t,s){var i;await this.isLocalStrorageReady,t.set(((i=this.localStorageData[s+"¤lang_"+K.getLanguage()])==null?void 0:i.data)||t.get())}get(t,s){const i=(s==null?void 0:s.localStorageMode)==="enabled";if(!this.publishers.has(t)){const o={},n=new He(o);this.set(t,n)}const e=this.publishers.get(t);return i&&this.initialisedData.indexOf(t)===-1&&(e._is_savable_=!0,this.initialisedData.push(t),this.setLocalData(e,t)),this.publishers.get(t)}set(t,s){this.publishers.set(t,s)}delete(t){return this.publishers.has(t)?(this.publishers.delete(t),!0):!1}async saveToLocalStorage(t=0){if(!(t!==k.saveId&&t%10!=0))try{if(!k.changed||k.saving)return;k.saving=!0,k.changed=!1;const s=Array.from(this.publishers.keys());let i=!1;for(const e of s){const o=this.publishers.get(e);if(!(o!=null&&o._is_savable_))continue;const n=o==null?void 0:o.get();n&&(this.localStorageData[e+"¤lang_"+K.getLanguage()]={lastModifiationMS:new Date().getTime(),data:n},i=!0)}if(i){const e=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem(ei,e)}if(k.saving=!1,k.changed){k.saveId++;const e=k.saveId;setTimeout(()=>this.saveToLocalStorage(e),1e3)}}catch{k.saving=!1}}async compress(t,s){const i=new TextEncoder().encode(t),e=window,o=new e.CompressionStream(s),n=o.writable.getWriter();n.write(i),n.close();const a=await new Response(o.readable).arrayBuffer(),c=new Uint8Array(a);let h="";for(let d=0;d<c.length;d++)h+=String.fromCharCode(c[d]);return btoa(h)}async decompress(t,s){const i=atob(t),o=Uint8Array.from(i,d=>d.charCodeAt(0)).buffer,n=window,a=new n.DecompressionStream(s),c=a.writable.getWriter();c.write(o),c.close();const h=await new Response(a.readable).arrayBuffer();return new TextDecoder().decode(h)}},k.buildDate="Wed Nov 27 2024 11:37:26 GMT+0100 (Central European Standard Time)",k.changed=!1,k.saving=!1,k.saveId=0,k.instance=null,k.instances=new Map,k.modifiedCollectore=[],k);if(typeof window<"u"){const r=window;r[ys+"PublisherManager"]=r[ys+"PublisherManager"]||N}const No=new Set(["invalidate","onInvalidate","offInvalidate","invalidateForm","onFormInvalidate","offFormInvalidate","onAssign","offAssign","startDynamicFilling","stopDynamicFilling","startTemplateFilling","stopTemplateFilling","onInternalMutation","offInternalMutation","set","get","$tag","_cachedGet_","_templateFillListeners_","_fillListeners_","_assignListeners_","_invalidateListeners_","_formInvalidateListeners_","_publishInternalMutation_","hasListener","delete","_mutationListeners_","_publishDynamicFilling_","_publishInvalidation_","_publishFormInvalidation_","_publishTemplateFilling_","_publishAssignement_","_proxies_","parent","_parentKey_","_value_","_is_savable_","_lockInternalMutationPublishing_","_instanceCounter_","_assignmentId_"]);class He extends si{constructor(t,s=null,i){super(t,s,i);const e=new Proxy(this,{get:function(o,n){if(No.has(n))return o[n];if(n==Symbol.toPrimitive)return()=>e.get();if(!o._proxies_.has(n)){const a=o._value_[n],c=new He(Ve(a)?a:{__value:a},o,n);c._proxies_.set("_parent_",e),o._proxies_.set(n,c)}return o._proxies_.get(n)},set:function(o,n,a){var h;if(n=="_value_")return o._value_=a,!0;if(n=="_cachedGet_")return o._cachedGet_=a,!0;if(n=="_assignmentId_")return o._assignmentId_=a,!0;if(n=="_is_savable_")return o._is_savable_=a,!0;if(n=="_instanceCounter_")return o._instanceCounter_=a,!0;if(!o._proxies_.has(n)){const d=new He({},o,n);d._proxies_.set("_parent_",e),o._proxies_.set(n,d)}return o._value_[n]!==a&&(o._value_[n]=a,o._publishDynamicFilling_(n,a),(h=o._proxies_.get(n))==null||h.set(Ve(a)?a:{__value:a})),!0},deleteProperty:function(o,n){var a;return o._publishDynamicFilling_(n,null),(a=o._proxies_.get(n))==null||a.set(null),delete o._value_[n]},has:function(o,n){return n in o._value_&&n!="_lockInternalMutationPublishing_"},defineProperty:function(o,n,a){return a&&"value"in a&&(o._value_[n]=a.value),!0},getOwnPropertyDescriptor:function(o,n){return{enumerable:!0,configurable:!0}},ownKeys:function(o){return o._value_.__value?Object.keys(o._value_.__value):Object.keys(o._value_)}});return e}getProperty(t,s){return t[s]}}class To extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=t=>{this.innerHTML=t.toString()}}connectedCallback(){var t;this.publisherId=this.getAttribute("publisher")||"",this.publisher=si.instances.get(parseInt(this.publisherId)),(t=this.publisher)==null||t.onAssign(this.onAssign)}disconnectedCallback(){var t;(t=this.publisher)==null||t.offAssign(this.onAssign)}}try{customElements.define(De+"-publisher-proxy",To)}catch{}let ws=(L=class{static disable(){this.enabled&&(this.enabled=!1,Array.from(L.observedElements.keys()).forEach(t=>L.unObserve(t)))}static observe(t){if(!t||!L.enabled||L.observedElements.has(t))return;const s=new MutationObserver(L.onMutation),i={};i.childList=!0,i.subtree=!0,i.attributes=!0,i.attributeFilter=["data-bind"],s.observe(t,i),t.querySelectorAll("[data-bind]").forEach(e=>L.addPublisherListeners(e)),L.observedElements.set(t,s)}static unObserve(t){if(!t)return;const s=this.observedElements.get(t);s&&(s.disconnect(),t.querySelectorAll("[data-bind]").forEach(i=>L.removePublisherListeners(i)))}static onAdded(t){t.hasAttribute&&t.hasAttribute("data-bind")&&L.addPublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(s=>L.addPublisherListeners(s)):t.childNodes.forEach(s=>L.onAdded(s))}static onRemoved(t){t.hasAttribute&&t.hasAttribute("data-bind")&&L.removePublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(s=>L.removePublisherListeners(s)):t.childNodes.forEach(s=>L.onRemoved(s))}static onMutation(t){for(const s of t)switch(s.type){case"attributes":L.addPublisherListeners(s.target);break;case"childList":s.addedNodes.forEach(i=>{L.onAdded(i)}),s.removedNodes.forEach(i=>{L.onRemoved(i)});break}}static removePublisherListeners(t){const s=L.publisherListeners.get(t);s&&(L.publisherListeners.delete(t),s.forEach(i=>{var e;(e=i.publisher)==null||e.offAssign(i.onAssign)}))}static getVariablesDescriptor(t){let s=t.match(/(\$(?:\w+\\?\.?)+)/g);return s?s=s.map(i=>i.replace("$","")):s=[t],s=s.filter(i=>i.length>0),{expression:t.replace("\\",""),variables:s.map(i=>i.split(/\b\.\b/).map(e=>e.replace("\\","")))}}static getDataBindItems(t){return"attributes"in t?Array.from(t.attributes).filter(s=>s.name.indexOf("::")==0).map(s=>({propertyToUpdate:s.name.substring(2).replace(/-((html)|\w)/g,e=>e.substring(1).toUpperCase()),bindedVariablesDescriptor:L.getVariablesDescriptor(s.value)})):[]}static getSubPublisher(t,s){if(!s)return t;for(const i of s)if(i!="_self_"){if(!t)return null;t=t[i]}return t}static addPublisherListeners(t){L.removePublisherListeners(t);const s=K.getAncestorAttributeValue(t.parentNode||t.host||t,"dataProvider");if(!s)return;const i=N.getInstance().get(s),e=L.getDataBindItems(t),o=[];e.forEach(n=>{const a=n.bindedVariablesDescriptor,c=n.propertyToUpdate;for(const h of a.variables){const d=h;let p=i;p=L.getSubPublisher(i,d);const g=t,b={publisher:p,onAssign:()=>{const v=a.variables.map(D=>{var u;return(u=L.getSubPublisher(i,D))==null?void 0:u.get()});let P=a.expression,S=!1;if(v.length==1&&a.variables[0].join(".")==P.substring(1)){let D=v[0];D===null&&(D=""),g[c]=D;return}for(let D=0;D<v.length;D++){let u=v[D];const f=a.variables[D];u===null&&(S=!0,u=void 0),P=P.replace("$"+f.join("."),u)}if(P.indexOf("|")!=-1){const D=P.indexOf("|");if(D==0)P=vs.js(P.substring(1));else{const u=P.substring(0,D),f=P.substring(D+1),y=vs[u];P=S?"":y?y(f):P}}else P=S?"":P;g[c]=P}};p==null||p.onAssign(b.onAssign),o.push(b)}}),L.publisherListeners.set(t,o)}},L.observedElements=new Map,L.enabled=!0,L.publisherListeners=new Map,L);ws.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=ws);let J=class qt{static shallowEqual(t,s,i=!0){const e=Object.keys(t),o=Object.keys(s);if(e.length!==o.length&&i)return!1;for(const n of e){const a=t[n],c=s[n];if(i?a!==c:a!=c)return!1}return!0}static deepEqual(t,s,i=!0){const e=Object.keys(t),o=Object.keys(s);if(e.length!==o.length&&i)return!1;for(const n of e){const a=t[n],c=s[n],h=qt.isObject(a)&&qt.isObject(c),d=i?a!==c:a!=c;if(h&&!qt.deepEqual(a,c)||!h&&d)return!1}return!0}static isObject(t){return t!=null&&typeof t=="object"}static isUndefindOrNull(t){return t==null}static isEmpty(t){return qt.isUndefindOrNull(t)?!0:Object.keys(t).length===0}static traverse(t,s,i=!1){for(const e of s){const o=t[e];if(o===void 0)return;i&&qt.isObject(o)?t=Object.assign(Array.isArray(o)?[]:{},t,o):t=t[e]}return t}static traverseDotNotation(t,s,i=!1){return qt.traverse(t,s.split("."),i)}static getURLSearchArray(t,s=""){let i=[];for(let e in t){const o=t[e];s&&(e=s+"["+e+"]"),qt.isObject(o)?i=[...i,...this.getURLSearchArray(o,e)]:i.push(`${e}=${o}`)}return i}static getURLSearchString(t){return qt.getURLSearchArray(t,"").join("&")}};const dt=J.traverseDotNotation;/**
1
+ (function(K){typeof define=="function"&&define.amd?define(K):K()})(function(){"use strict";var St,k,L,Do,t,G;let K=class Rt{static getLanguage(){const t=document.documentElement.lang;return localStorage.getItem("SonicSelectedLanguage")||t}static getCookies(){return document.cookie.split(";").reduce((t,s)=>{const i=s.indexOf("=");return t[s.substring(0,i).trim()]=s.substring(i+1),t},{})}static everyAncestors(t,s){for(;t;){if(!s(t))return;t=t.parentNode||t.host}}static getScrollableAncestor(t){for(;t;){const s=t;if(s.nodeType===1){const i=window.getComputedStyle(s);if((i==null?void 0:i.overflowY)==="hidden"||(i==null?void 0:i.overflowX)==="hidden")return t}t=t.parentNode||t.host}return null}static getAncestorAttributeValue(t,s){if(!t)return null;for(;!("hasAttribute"in t&&t.hasAttribute(s))&&(t.parentNode||t.host);)t=t.parentNode||t.host;return"hasAttribute"in t?t.getAttribute(s):null}static getApiConfiguration(t){const s=Rt.getAncestorAttributeValue(t,"token"),i=Rt.getAncestorAttributeValue(t,"addHTTPResponse")!=null,e=Rt.getAncestorAttributeValue(t,"serviceURL");let o=null,n=null;const a=Rt.getAncestorAttributeValue(t,"tokenProvider"),c=Rt.getAncestorAttributeValue(t,"eventsApiToken");s||(o=Rt.getAncestorAttributeValue(t,"userName"),n=Rt.getAncestorAttributeValue(t,"password"));const h=Rt.getAncestorAttributeValue(t,"credentials")||void 0,d=t.getAttribute("cache"),p=t.hasAttribute("blockUntilDone");return{serviceURL:e,token:s,userName:o,password:n,authToken:c,tokenProvider:a,addHTTPResponse:i,credentials:h,cache:d,blockUntilDone:p}}static getClosestElement(t,s){for(;!(t.nodeName&&t.nodeName.toLowerCase()===s)&&(t.parentNode||t.host);)t=t.parentNode||t.host;return t.nodeName?t:null}static getClosestForm(t){return Rt.getClosestElement(t,"form")}static async loadJS(t){return new Promise(async i=>{const e=document.createElement("script");e.src=t,e.onload=()=>i(!0),e.onerror=()=>i(!0),document.head.appendChild(e)})}static async loadCSS(t){return new Promise(async i=>{const e=document.createElement("link");e.type="text/css",e.rel="stylesheet",e.href=t,e.onload=()=>i(!0),e.onerror=()=>i(!0),document.head.appendChild(e)})}};const ti=r=>{const t=document.documentElement,s=new MutationObserver(e=>{for(let o of e)o.type==="attributes"&&o.attributeName==="lang"&&r()}),i={attributes:!0,attributeFilter:["lang"]};s.observe(t,i)};let vs=class{static ucFirst(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.substring(1)}static minutesDuration(t,s="",i="long"){s||(s=K.getLanguage());const e=(h,d)=>[Math.floor(h/d),h%d];function o(h,d,p){return new Intl.NumberFormat(h,{style:"unit",unit:d,unitDisplay:p}).format}const[n,a]=e(t,60),c=[];return n&&c.push(o(s,"hour",i)(n)),a&&c.push(o(s,"minute",i)(a)),new Intl.ListFormat(s,{style:"long",type:"conjunction"}).format(c)}static js(t){try{return Function("return "+t)()}catch{return""}}},No=class{static async queueTaskPromise(){return new Promise(t=>{window.queueMicrotask(()=>t(null))})}static async delayPromise(t){return new Promise(s=>{setTimeout(s,t)})}},rr="sonic";typeof __SONIC_PREFIX__<"u"&&(rr=__SONIC_PREFIX__);let or=rr.replace(/-([a-z])/g,r=>r[1].toUpperCase());const ys=or.charAt(0).toUpperCase()+or.slice(1);function _s(r){return Object.prototype.hasOwnProperty.call(r,"__value")}function Ve(r){return typeof r=="object"&&r!=null}let De="sonic";typeof __SONIC_PREFIX__>"u"&&(De="sonic"+Math.floor(Math.random()*1e6));const ei=De=="sonic"?"publisher-proxies-data":De+"-publisher-proxies-data";let si=(St=class{constructor(t,s,i){for(this._proxies_=new Map,this._is_savable_=!1,this._invalidateListeners_=new Set,this._formInvalidateListeners_=new Set,this._assignListeners_=new Set,this._mutationListeners_=new Set,this._fillListeners_=new Set,this._templateFillListeners_=new Set,this._lockInternalMutationPublishing_=!1,this._instanceCounter_=0,this._assignmentId_=0,this._value_=t,this.parent=s||null,this._parentKey_=i,this.root=this,this._instanceCounter_=0;this.root.parent;)this.root=this.root.parent}delete(){var t;for(const s in this._proxies_.keys())s!="_parent_"&&((t=this._proxies_.get(s))==null||t.delete());this._invalidateListeners_.clear(),this._formInvalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear(),St.instances.delete(this._instanceCounter_)}hasListener(){return this._templateFillListeners_.size>0||this._assignListeners_.size>0||this._invalidateListeners_.size>0||this._formInvalidateListeners_.size>0||this._mutationListeners_.size>0||this._fillListeners_.size>0}_publishInternalMutation_(t=!1){if(this._mutationListeners_.forEach(s=>s()),this._is_savable_&&!N.changed){N.changed=!0,N.saveId++;const s=N.saveId;setTimeout(()=>N.getInstance().saveToLocalStorage(s),1e3)}t||this.parent&&this.parent._publishInternalMutation_()}async _publishAssignement_(t=!1){if(this._assignmentId_++,this._assignmentId_!==this._assignmentId_)return;const i=this.get();this._assignListeners_.forEach(e=>{e(i)}),this._publishInternalMutation_(t)}_publishInvalidation_(){this._invalidateListeners_.forEach(t=>t())}_publishFormInvalidation_(){this._formInvalidateListeners_.forEach(t=>t())}_publishDynamicFilling_(t,s){this._fillListeners_.forEach(i=>{i[t]!==s&&(i[t]=s)}),this._publishTemplateFilling_(t,s)}_publishTemplateFilling_(t,s){this._templateFillListeners_.forEach(i=>{const e=Object.getOwnPropertyDescriptor(i,t);e&&!e.set&&!e.writable||(i.propertyMap&&i.propertyMap[t]&&(t=i.propertyMap[t]),typeof i[t]<"u"&&i[t]!==s&&(i[t]=s))})}onAssign(t,s=!0){typeof t=="function"&&(this._assignListeners_.has(t)||(this._assignListeners_.add(t),s&&t(this.get())))}offAssign(t){this._assignListeners_.delete(t)}onInvalidate(t){typeof t=="function"&&this._invalidateListeners_.add(t)}offInvalidate(t){typeof t=="function"&&this._invalidateListeners_.delete(t)}invalidate(){this._publishInvalidation_()}onFormInvalidate(t){typeof t=="function"&&this._formInvalidateListeners_.add(t)}offFormInvalidate(t){typeof t=="function"&&this._formInvalidateListeners_.delete(t)}invalidateForm(){this._publishFormInvalidation_()}onInternalMutation(t){typeof t=="function"&&(this._mutationListeners_.add(t),t())}offInternalMutation(t){typeof t=="function"&&this._mutationListeners_.delete(t)}startTemplateFilling(t){if(this._templateFillListeners_.add(t),typeof this._value_=="object")for(const s in this._value_){let i=s;const e=this._value_[s];t.propertyMap&&t.propertyMap[s]&&(i=t.propertyMap[s]),typeof t[s]<"u"&&t[s]!==e&&(t[i]=e)}}stopTemplateFilling(t){this._templateFillListeners_.delete(t)}startDynamicFilling(t){this._fillListeners_.add(t);for(const s in this._value_){const i=this._value_[s];t[s]!==i&&(t[s]=i)}}stopDynamicFilling(t){this._fillListeners_.delete(t)}set(t,s=!1){var e,o,n;if(this._value_===t||this._value_&&t&&_s(this._value_)&&_s(t)&&this._value_.__value===t.__value)return!0;this._value_=Ve(t)?t:{__value:t},this._cachedGet_=void 0;const i=_s(this._value_);if(this._parentKey_&&this.parent){const a=_s(this._value_)?this._value_.__value:this._value_;if(((e=this.parent)==null?void 0:e.get())==null&&((o=this.parent)==null?void 0:o.get())==null)if(isNaN(Number(this._parentKey_)))this.parent.set({[this._parentKey_]:a});else{const c=[];c[Number(this._parentKey_)]=a,this.parent.set(c)}else this.parent._value_[this._parentKey_]=a}if(i)return this._publishAssignement_(s),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_.__value),!0;for(const a in this._value_)this._value_[a]===void 0&&delete this._value_[a];if(this._proxies_.forEach((a,c)=>{const h=this._value_[c];c!="_parent_"&&h===void 0&&h!==null&&isNaN(Number(c))&&(a.set(null),this._publishDynamicFilling_(c,null))}),this._publishAssignement_(),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_),Ve(this._value_))for(const a in this._value_){const c=t[a],d=Ve(c)?c:{__value:c};if(!this._proxies_.has(a)){this._publishDynamicFilling_(a,c);continue}(n=this._proxies_.get(a))==null||n.set(d,!0),this._publishDynamicFilling_(a,c)}return!0}get(){if(this._cachedGet_!==void 0)return this._cachedGet_;if(N.modifiedCollectore.length>0&&N.modifiedCollectore[0].add(this),Object.prototype.hasOwnProperty.call(this._value_,"__value")){const t=this._value_.__value;return this._cachedGet_=t??null}return this._cachedGet_=this._value_!=null?this._value_:null}get $tag(){return this._instanceCounter_||(St.instancesCounter++,this._instanceCounter_=St.instancesCounter),St.instances.set(this._instanceCounter_,this),"<"+De+'-publisher-proxy publisher="'+this._instanceCounter_+'"></'+De+"-publisher-proxy>"}},St.instances=new Map,St.instancesCounter=0,St),N=(k=class{constructor(){if(this.enabledLocaStorageProxies=[],this.publishers=new Map,this.localStorageData={},this.isLocalStrorageReady=null,this.initialisedData=[],k.instance!=null)throw"Singleton / use getInstance";k.instance=this,this.isLocalStrorageReady=this.cleanStorageData()}async cleanStorageData(){return new Promise(t=>{(async()=>{try{let i=localStorage.getItem(ei),e=null;if(i&&(e=await this.decompress(i,"gzip")),e)try{this.localStorageData=JSON.parse(e)}catch{this.localStorageData={}}else i=await this.compress("{}","gzip"),localStorage.setItem(ei,i),this.localStorageData={};const o=new Date().getTime()-1e3*60*60*12;for(const n in this.localStorageData)this.localStorageData[n].lastModifiationMS<o&&delete this.localStorageData[n];t(!0)}catch{window.requestAnimationFrame(()=>{t(!1)}),console.warn("no publisher cache in this browser")}})()})}static getInstance(t){if(t){const s=k.instances.get(t);return s||(console.warn("No PublisherManager instance registered with id:",t,"creating new one"),new k)}return k.instance==null?new k:k.instance}static registerInstance(t,s){k.instances.has(t)&&console.warn("PublisherManager instance already registered with id: ",t),k.instances.set(t,s)}static get(t,s){return k.getInstance().get(t,s)}static collectModifiedPublisher(){k.modifiedCollectore.unshift(new Set)}static getModifiedPublishers(){return k.modifiedCollectore.shift()}static delete(t){return t?k.getInstance().delete(t):!1}async setLocalData(t,s){var i;await this.isLocalStrorageReady,t.set(((i=this.localStorageData[s+"¤lang_"+K.getLanguage()])==null?void 0:i.data)||t.get())}get(t,s){const i=(s==null?void 0:s.localStorageMode)==="enabled";if(!this.publishers.has(t)){const o={},n=new He(o);this.set(t,n)}const e=this.publishers.get(t);return i&&this.initialisedData.indexOf(t)===-1&&(e._is_savable_=!0,this.initialisedData.push(t),this.setLocalData(e,t)),this.publishers.get(t)}set(t,s){this.publishers.set(t,s)}delete(t){return this.publishers.has(t)?(this.publishers.delete(t),!0):!1}async saveToLocalStorage(t=0){if(!(t!==k.saveId&&t%10!=0))try{if(!k.changed||k.saving)return;k.saving=!0,k.changed=!1;const s=Array.from(this.publishers.keys());let i=!1;for(const e of s){const o=this.publishers.get(e);if(!(o!=null&&o._is_savable_))continue;const n=o==null?void 0:o.get();n&&(this.localStorageData[e+"¤lang_"+K.getLanguage()]={lastModifiationMS:new Date().getTime(),data:n},i=!0)}if(i){const e=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem(ei,e)}if(k.saving=!1,k.changed){k.saveId++;const e=k.saveId;setTimeout(()=>this.saveToLocalStorage(e),1e3)}}catch{k.saving=!1}}async compress(t,s){const i=new TextEncoder().encode(t),e=window,o=new e.CompressionStream(s),n=o.writable.getWriter();n.write(i),n.close();const a=await new Response(o.readable).arrayBuffer(),c=new Uint8Array(a);let h="";for(let d=0;d<c.length;d++)h+=String.fromCharCode(c[d]);return btoa(h)}async decompress(t,s){const i=atob(t),o=Uint8Array.from(i,d=>d.charCodeAt(0)).buffer,n=window,a=new n.DecompressionStream(s),c=a.writable.getWriter();c.write(o),c.close();const h=await new Response(a.readable).arrayBuffer();return new TextDecoder().decode(h)}},k.buildDate="Fri Dec 13 2024 16:13:35 GMT+0100 (Central European Standard Time)",k.changed=!1,k.saving=!1,k.saveId=0,k.instance=null,k.instances=new Map,k.modifiedCollectore=[],k);if(typeof window<"u"){const r=window;r[ys+"PublisherManager"]=r[ys+"PublisherManager"]||N}const To=new Set(["invalidate","onInvalidate","offInvalidate","invalidateForm","onFormInvalidate","offFormInvalidate","onAssign","offAssign","startDynamicFilling","stopDynamicFilling","startTemplateFilling","stopTemplateFilling","onInternalMutation","offInternalMutation","set","get","$tag","_cachedGet_","_templateFillListeners_","_fillListeners_","_assignListeners_","_invalidateListeners_","_formInvalidateListeners_","_publishInternalMutation_","hasListener","delete","_mutationListeners_","_publishDynamicFilling_","_publishInvalidation_","_publishFormInvalidation_","_publishTemplateFilling_","_publishAssignement_","_proxies_","parent","_parentKey_","_value_","_is_savable_","_lockInternalMutationPublishing_","_instanceCounter_","_assignmentId_"]);class He extends si{constructor(t,s=null,i){super(t,s,i);const e=new Proxy(this,{get:function(o,n){if(To.has(n))return o[n];if(n==Symbol.toPrimitive)return()=>e.get();if(!o._proxies_.has(n)){const a=o._value_[n],c=new He(Ve(a)?a:{__value:a},o,n);c._proxies_.set("_parent_",e),o._proxies_.set(n,c)}return o._proxies_.get(n)},set:function(o,n,a){var h;if(n=="_value_")return o._value_=a,!0;if(n=="_cachedGet_")return o._cachedGet_=a,!0;if(n=="_assignmentId_")return o._assignmentId_=a,!0;if(n=="_is_savable_")return o._is_savable_=a,!0;if(n=="_instanceCounter_")return o._instanceCounter_=a,!0;if(!o._proxies_.has(n)){const d=new He({},o,n);d._proxies_.set("_parent_",e),o._proxies_.set(n,d)}return o._value_[n]!==a&&(o._value_[n]=a,o._publishDynamicFilling_(n,a),(h=o._proxies_.get(n))==null||h.set(Ve(a)?a:{__value:a})),!0},deleteProperty:function(o,n){var a;return o._publishDynamicFilling_(n,null),(a=o._proxies_.get(n))==null||a.set(null),delete o._value_[n]},has:function(o,n){return n in o._value_&&n!="_lockInternalMutationPublishing_"},defineProperty:function(o,n,a){return a&&"value"in a&&(o._value_[n]=a.value),!0},getOwnPropertyDescriptor:function(o,n){return{enumerable:!0,configurable:!0}},ownKeys:function(o){return o._value_.__value?Object.keys(o._value_.__value):Object.keys(o._value_)}});return e}getProperty(t,s){return t[s]}}class Mo extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=t=>{this.innerHTML=t.toString()}}connectedCallback(){var t;this.publisherId=this.getAttribute("publisher")||"",this.publisher=si.instances.get(parseInt(this.publisherId)),(t=this.publisher)==null||t.onAssign(this.onAssign)}disconnectedCallback(){var t;(t=this.publisher)==null||t.offAssign(this.onAssign)}}try{customElements.define(De+"-publisher-proxy",Mo)}catch{}let ws=(L=class{static disable(){this.enabled&&(this.enabled=!1,Array.from(L.observedElements.keys()).forEach(t=>L.unObserve(t)))}static observe(t){if(!t||!L.enabled||L.observedElements.has(t))return;const s=new MutationObserver(L.onMutation),i={};i.childList=!0,i.subtree=!0,i.attributes=!0,i.attributeFilter=["data-bind"],s.observe(t,i),t.querySelectorAll("[data-bind]").forEach(e=>L.addPublisherListeners(e)),L.observedElements.set(t,s)}static unObserve(t){if(!t)return;const s=this.observedElements.get(t);s&&(s.disconnect(),t.querySelectorAll("[data-bind]").forEach(i=>L.removePublisherListeners(i)))}static onAdded(t){t.hasAttribute&&t.hasAttribute("data-bind")&&L.addPublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(s=>L.addPublisherListeners(s)):t.childNodes.forEach(s=>L.onAdded(s))}static onRemoved(t){t.hasAttribute&&t.hasAttribute("data-bind")&&L.removePublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(s=>L.removePublisherListeners(s)):t.childNodes.forEach(s=>L.onRemoved(s))}static onMutation(t){for(const s of t)switch(s.type){case"attributes":L.addPublisherListeners(s.target);break;case"childList":s.addedNodes.forEach(i=>{L.onAdded(i)}),s.removedNodes.forEach(i=>{L.onRemoved(i)});break}}static removePublisherListeners(t){const s=L.publisherListeners.get(t);s&&(L.publisherListeners.delete(t),s.forEach(i=>{var e;(e=i.publisher)==null||e.offAssign(i.onAssign)}))}static getVariablesDescriptor(t){let s=t.match(/(\$(?:\w+\\?\.?)+)/g);return s?s=s.map(i=>i.replace("$","")):s=[t],s=s.filter(i=>i.length>0),{expression:t.replace("\\",""),variables:s.map(i=>i.split(/\b\.\b/).map(e=>e.replace("\\","")))}}static getDataBindItems(t){return"attributes"in t?Array.from(t.attributes).filter(s=>s.name.indexOf("::")==0).map(s=>({propertyToUpdate:s.name.substring(2).replace(/-((html)|\w)/g,e=>e.substring(1).toUpperCase()),bindedVariablesDescriptor:L.getVariablesDescriptor(s.value)})):[]}static getSubPublisher(t,s){if(!s)return t;for(const i of s)if(i!="_self_"){if(!t)return null;t=t[i]}return t}static addPublisherListeners(t){L.removePublisherListeners(t);const s=K.getAncestorAttributeValue(t.parentNode||t.host||t,"dataProvider");if(!s)return;const i=N.getInstance().get(s),e=L.getDataBindItems(t),o=[];e.forEach(n=>{const a=n.bindedVariablesDescriptor,c=n.propertyToUpdate;for(const h of a.variables){const d=h;let p=i;p=L.getSubPublisher(i,d);const g=t,b={publisher:p,onAssign:()=>{const v=a.variables.map(D=>{var u;return(u=L.getSubPublisher(i,D))==null?void 0:u.get()});let P=a.expression,S=!1;if(v.length==1&&a.variables[0].join(".")==P.substring(1)){let D=v[0];D===null&&(D=""),g[c]=D;return}for(let D=0;D<v.length;D++){let u=v[D];const f=a.variables[D];u===null&&(S=!0,u=void 0),P=P.replace("$"+f.join("."),u)}if(P.indexOf("|")!=-1){const D=P.indexOf("|");if(D==0)P=vs.js(P.substring(1));else{const u=P.substring(0,D),f=P.substring(D+1),y=vs[u];P=S?"":y?y(f):P}}else P=S?"":P;g[c]=P}};p==null||p.onAssign(b.onAssign),o.push(b)}}),L.publisherListeners.set(t,o)}},L.observedElements=new Map,L.enabled=!0,L.publisherListeners=new Map,L);ws.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=ws);let J=class qt{static shallowEqual(t,s,i=!0){const e=Object.keys(t),o=Object.keys(s);if(e.length!==o.length&&i)return!1;for(const n of e){const a=t[n],c=s[n];if(i?a!==c:a!=c)return!1}return!0}static deepEqual(t,s,i=!0){const e=Object.keys(t),o=Object.keys(s);if(e.length!==o.length&&i)return!1;for(const n of e){const a=t[n],c=s[n],h=qt.isObject(a)&&qt.isObject(c),d=i?a!==c:a!=c;if(h&&!qt.deepEqual(a,c)||!h&&d)return!1}return!0}static isObject(t){return t!=null&&typeof t=="object"}static isUndefindOrNull(t){return t==null}static isEmpty(t){return qt.isUndefindOrNull(t)?!0:Object.keys(t).length===0}static traverse(t,s,i=!1){for(const e of s){const o=t[e];if(o===void 0)return;i&&qt.isObject(o)?t=Object.assign(Array.isArray(o)?[]:{},t,o):t=t[e]}return t}static traverseDotNotation(t,s,i=!1){return qt.traverse(t,s.split("."),i)}static getURLSearchArray(t,s=""){let i=[];for(let e in t){const o=t[e];s&&(e=s+"["+e+"]"),qt.isObject(o)?i=[...i,...this.getURLSearchArray(o,e)]:i.push(`${e}=${o}`)}return i}static getURLSearchString(t){return qt.getURLSearchArray(t,"").join("&")}};const dt=J.traverseDotNotation;/**
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 $s=globalThis,ii=$s.ShadowRoot&&($s.ShadyCSS===void 0||$s.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ri=Symbol(),or=new WeakMap;let nr=class{constructor(t,s,i){if(this._$cssResult$=!0,i!==ri)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=s}get styleSheet(){let t=this.o;const s=this.t;if(ii&&t===void 0){const i=s!==void 0&&s.length===1;i&&(t=or.get(s)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&or.set(s,t))}return t}toString(){return this.cssText}};const Mo=r=>new nr(typeof r=="string"?r:r+"",void 0,ri),$=(r,...t)=>{const s=r.length===1?r[0]:t.reduce((i,e,o)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+r[o+1],r[0]);return new nr(s,r,ri)},Io=(r,t)=>{if(ii)r.adoptedStyleSheets=t.map(s=>s instanceof CSSStyleSheet?s:s.styleSheet);else for(const s of t){const i=document.createElement("style"),e=$s.litNonce;e!==void 0&&i.setAttribute("nonce",e),i.textContent=s.cssText,r.appendChild(i)}},ar=ii?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let s="";for(const i of t.cssRules)s+=i.cssText;return Mo(s)})(r):r;/**
9
+ */const $s=globalThis,ii=$s.ShadowRoot&&($s.ShadyCSS===void 0||$s.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ri=Symbol(),nr=new WeakMap;let ar=class{constructor(t,s,i){if(this._$cssResult$=!0,i!==ri)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=s}get styleSheet(){let t=this.o;const s=this.t;if(ii&&t===void 0){const i=s!==void 0&&s.length===1;i&&(t=nr.get(s)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&nr.set(s,t))}return t}toString(){return this.cssText}};const Io=r=>new ar(typeof r=="string"?r:r+"",void 0,ri),$=(r,...t)=>{const s=r.length===1?r[0]:t.reduce((i,e,o)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+r[o+1],r[0]);return new ar(s,r,ri)},jo=(r,t)=>{if(ii)r.adoptedStyleSheets=t.map(s=>s instanceof CSSStyleSheet?s:s.styleSheet);else for(const s of t){const i=document.createElement("style"),e=$s.litNonce;e!==void 0&&i.setAttribute("nonce",e),i.textContent=s.cssText,r.appendChild(i)}},lr=ii?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let s="";for(const i of t.cssRules)s+=i.cssText;return Io(s)})(r):r;/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const{is:jo,defineProperty:Fo,getOwnPropertyDescriptor:zo,getOwnPropertyNames:Ro,getOwnPropertySymbols:Uo,getPrototypeOf:Vo}=Object,Wt=globalThis,lr=Wt.trustedTypes,Ho=lr?lr.emptyScript:"",oi=Wt.reactiveElementPolyfillSupport,Be=(r,t)=>r,xs={toAttribute(r,t){switch(t){case Boolean:r=r?Ho:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let s=r;switch(t){case Boolean:s=r!==null;break;case Number:s=r===null?null:Number(r);break;case Object:case Array:try{s=JSON.parse(r)}catch{s=null}}return s}},ni=(r,t)=>!jo(r,t),cr={attribute:!0,type:String,converter:xs,reflect:!1,hasChanged:ni};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Wt.litPropertyMetadata??(Wt.litPropertyMetadata=new WeakMap);let ke=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=cr){if(s.state&&(s.attribute=!1),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),e=this.getPropertyDescriptor(t,i,s);e!==void 0&&Fo(this.prototype,t,e)}}static getPropertyDescriptor(t,s,i){const{get:e,set:o}=zo(this.prototype,t)??{get(){return this[s]},set(n){this[s]=n}};return{get(){return e==null?void 0:e.call(this)},set(n){const a=e==null?void 0:e.call(this);o.call(this,n),this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??cr}static _$Ei(){if(this.hasOwnProperty(Be("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(Be("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Be("properties"))){const s=this.properties,i=[...Ro(s),...Uo(s)];for(const e of i)this.createProperty(e,s[e])}const t=this[Symbol.metadata];if(t!==null){const s=litPropertyMetadata.get(t);if(s!==void 0)for(const[i,e]of s)this.elementProperties.set(i,e)}this._$Eh=new Map;for(const[s,i]of this.elementProperties){const e=this._$Eu(s,i);e!==void 0&&this._$Eh.set(e,s)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const s=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const e of i)s.unshift(ar(e))}else t!==void 0&&s.push(ar(t));return s}static _$Eu(t,s){const i=s.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(s=>this.enableUpdating=s),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(s=>s(this))}addController(t){var s;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((s=t.hostConnected)==null||s.call(t))}removeController(t){var s;(s=this._$EO)==null||s.delete(t)}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Io(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(s=>{var i;return(i=s.hostConnected)==null?void 0:i.call(s)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(s=>{var i;return(i=s.hostDisconnected)==null?void 0:i.call(s)})}attributeChangedCallback(t,s,i){this._$AK(t,i)}_$EC(t,s){var o;const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(e!==void 0&&i.reflect===!0){const n=(((o=i.converter)==null?void 0:o.toAttribute)!==void 0?i.converter:xs).toAttribute(s,i.type);this._$Em=t,n==null?this.removeAttribute(e):this.setAttribute(e,n),this._$Em=null}}_$AK(t,s){var o;const i=this.constructor,e=i._$Eh.get(t);if(e!==void 0&&this._$Em!==e){const n=i.getPropertyOptions(e),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((o=n.converter)==null?void 0:o.fromAttribute)!==void 0?n.converter:xs;this._$Em=e,this[e]=a.fromAttribute(s,n.type),this._$Em=null}}requestUpdate(t,s,i){if(t!==void 0){if(i??(i=this.constructor.getPropertyOptions(t)),!(i.hasChanged??ni)(this[t],s))return;this.P(t,s,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),i.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(s){Promise.reject(s)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,n]of this._$Ep)this[o]=n;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[o,n]of e)n.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],n)}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),(i=this._$EO)==null||i.forEach(e=>{var o;return(o=e.hostUpdate)==null?void 0:o.call(e)}),this.update(s)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(s)}willUpdate(t){}_$AE(t){var s;(s=this._$EO)==null||s.forEach(i=>{var e;return(e=i.hostUpdated)==null?void 0:e.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(s=>this._$EC(s,this[s]))),this._$EU()}updated(t){}firstUpdated(t){}};ke.elementStyles=[],ke.shadowRootOptions={mode:"open"},ke[Be("elementProperties")]=new Map,ke[Be("finalized")]=new Map,oi==null||oi({ReactiveElement:ke}),(Wt.reactiveElementVersions??(Wt.reactiveElementVersions=[])).push("2.0.4");/**
13
+ */const{is:Fo,defineProperty:zo,getOwnPropertyDescriptor:Ro,getOwnPropertyNames:Uo,getOwnPropertySymbols:Vo,getPrototypeOf:Ho}=Object,Wt=globalThis,cr=Wt.trustedTypes,Bo=cr?cr.emptyScript:"",oi=Wt.reactiveElementPolyfillSupport,Be=(r,t)=>r,xs={toAttribute(r,t){switch(t){case Boolean:r=r?Bo:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let s=r;switch(t){case Boolean:s=r!==null;break;case Number:s=r===null?null:Number(r);break;case Object:case Array:try{s=JSON.parse(r)}catch{s=null}}return s}},ni=(r,t)=>!Fo(r,t),hr={attribute:!0,type:String,converter:xs,reflect:!1,hasChanged:ni};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Wt.litPropertyMetadata??(Wt.litPropertyMetadata=new WeakMap);let ke=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=hr){if(s.state&&(s.attribute=!1),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),e=this.getPropertyDescriptor(t,i,s);e!==void 0&&zo(this.prototype,t,e)}}static getPropertyDescriptor(t,s,i){const{get:e,set:o}=Ro(this.prototype,t)??{get(){return this[s]},set(n){this[s]=n}};return{get(){return e==null?void 0:e.call(this)},set(n){const a=e==null?void 0:e.call(this);o.call(this,n),this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??hr}static _$Ei(){if(this.hasOwnProperty(Be("elementProperties")))return;const t=Ho(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Be("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Be("properties"))){const s=this.properties,i=[...Uo(s),...Vo(s)];for(const e of i)this.createProperty(e,s[e])}const t=this[Symbol.metadata];if(t!==null){const s=litPropertyMetadata.get(t);if(s!==void 0)for(const[i,e]of s)this.elementProperties.set(i,e)}this._$Eh=new Map;for(const[s,i]of this.elementProperties){const e=this._$Eu(s,i);e!==void 0&&this._$Eh.set(e,s)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const s=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const e of i)s.unshift(lr(e))}else t!==void 0&&s.push(lr(t));return s}static _$Eu(t,s){const i=s.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(s=>this.enableUpdating=s),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(s=>s(this))}addController(t){var s;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((s=t.hostConnected)==null||s.call(t))}removeController(t){var s;(s=this._$EO)==null||s.delete(t)}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return jo(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(s=>{var i;return(i=s.hostConnected)==null?void 0:i.call(s)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(s=>{var i;return(i=s.hostDisconnected)==null?void 0:i.call(s)})}attributeChangedCallback(t,s,i){this._$AK(t,i)}_$EC(t,s){var o;const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(e!==void 0&&i.reflect===!0){const n=(((o=i.converter)==null?void 0:o.toAttribute)!==void 0?i.converter:xs).toAttribute(s,i.type);this._$Em=t,n==null?this.removeAttribute(e):this.setAttribute(e,n),this._$Em=null}}_$AK(t,s){var o;const i=this.constructor,e=i._$Eh.get(t);if(e!==void 0&&this._$Em!==e){const n=i.getPropertyOptions(e),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((o=n.converter)==null?void 0:o.fromAttribute)!==void 0?n.converter:xs;this._$Em=e,this[e]=a.fromAttribute(s,n.type),this._$Em=null}}requestUpdate(t,s,i){if(t!==void 0){if(i??(i=this.constructor.getPropertyOptions(t)),!(i.hasChanged??ni)(this[t],s))return;this.P(t,s,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),i.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(s){Promise.reject(s)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,n]of this._$Ep)this[o]=n;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[o,n]of e)n.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],n)}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),(i=this._$EO)==null||i.forEach(e=>{var o;return(o=e.hostUpdate)==null?void 0:o.call(e)}),this.update(s)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(s)}willUpdate(t){}_$AE(t){var s;(s=this._$EO)==null||s.forEach(i=>{var e;return(e=i.hostUpdated)==null?void 0:e.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(s=>this._$EC(s,this[s]))),this._$EU()}updated(t){}firstUpdated(t){}};ke.elementStyles=[],ke.shadowRootOptions={mode:"open"},ke[Be("elementProperties")]=new Map,ke[Be("finalized")]=new Map,oi==null||oi({ReactiveElement:ke}),(Wt.reactiveElementVersions??(Wt.reactiveElementVersions=[])).push("2.0.4");/**
14
14
  * @license
15
15
  * Copyright 2017 Google LLC
16
16
  * SPDX-License-Identifier: BSD-3-Clause
17
- */const Bo={attribute:!0,type:String,converter:xs,reflect:!1,hasChanged:ni},qo=(r=Bo,t,s)=>{const{kind:i,metadata:e}=s;let o=globalThis.litPropertyMetadata.get(e);if(o===void 0&&globalThis.litPropertyMetadata.set(e,o=new Map),o.set(s.name,r),i==="accessor"){const{name:n}=s;return{set(a){const c=t.get.call(this);t.set.call(this,a),this.requestUpdate(n,c,r)},init(a){return a!==void 0&&this.P(n,void 0,r),a}}}if(i==="setter"){const{name:n}=s;return function(a){const c=this[n];t.call(this,a),this.requestUpdate(n,c,r)}}throw Error("Unsupported decorator location: "+i)};function l(r){return(t,s)=>typeof s=="object"?qo(r,t,s):((i,e,o)=>{const n=e.hasOwnProperty(o);return e.constructor.createProperty(o,n?{...i,wrapped:!0}:i),n?Object.getOwnPropertyDescriptor(e,o):void 0})(r,t,s)}/**
17
+ */const qo={attribute:!0,type:String,converter:xs,reflect:!1,hasChanged:ni},Wo=(r=qo,t,s)=>{const{kind:i,metadata:e}=s;let o=globalThis.litPropertyMetadata.get(e);if(o===void 0&&globalThis.litPropertyMetadata.set(e,o=new Map),o.set(s.name,r),i==="accessor"){const{name:n}=s;return{set(a){const c=t.get.call(this);t.set.call(this,a),this.requestUpdate(n,c,r)},init(a){return a!==void 0&&this.P(n,void 0,r),a}}}if(i==="setter"){const{name:n}=s;return function(a){const c=this[n];t.call(this,a),this.requestUpdate(n,c,r)}}throw Error("Unsupported decorator location: "+i)};function l(r){return(t,s)=>typeof s=="object"?Wo(r,t,s):((i,e,o)=>{const n=e.hasOwnProperty(o);return e.constructor.createProperty(o,n?{...i,wrapped:!0}:i),n?Object.getOwnPropertyDescriptor(e,o):void 0})(r,t,s)}/**
18
18
  * @license
19
19
  * Copyright 2017 Google LLC
20
20
  * SPDX-License-Identifier: BSD-3-Clause
@@ -38,13 +38,13 @@
38
38
  * @license
39
39
  * Copyright 2017 Google LLC
40
40
  * SPDX-License-Identifier: BSD-3-Clause
41
- */const qe=globalThis,Ps=qe.trustedTypes,hr=Ps?Ps.createPolicy("lit-html",{createHTML:r=>r}):void 0,li="$lit$",Ut=`lit$${Math.random().toFixed(9).slice(2)}$`,ci="?"+Ut,Wo=`<${ci}>`,ae=document,We=()=>ae.createComment(""),Ke=r=>r===null||typeof r!="object"&&typeof r!="function",hi=Array.isArray,dr=r=>hi(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",di=`[
42
- \f\r]`,Ye=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,pr=/-->/g,ur=/>/g,le=RegExp(`>|${di}(?:([^\\s"'>=/]+)(${di}*=${di}*(?:[^
43
- \f\r"'\`<>=]|("|')|))|$)`,"g"),fr=/'/g,mr=/"/g,gr=/^(?:script|style|textarea|title)$/i,Ko=r=>(t,...s)=>({_$litType$:r,strings:t,values:s}),m=Ko(1),vt=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),br=new WeakMap,ce=ae.createTreeWalker(ae,129);function vr(r,t){if(!hi(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return hr!==void 0?hr.createHTML(t):t}const yr=(r,t)=>{const s=r.length-1,i=[];let e,o=t===2?"<svg>":t===3?"<math>":"",n=Ye;for(let a=0;a<s;a++){const c=r[a];let h,d,p=-1,g=0;for(;g<c.length&&(n.lastIndex=g,d=n.exec(c),d!==null);)g=n.lastIndex,n===Ye?d[1]==="!--"?n=pr:d[1]!==void 0?n=ur:d[2]!==void 0?(gr.test(d[2])&&(e=RegExp("</"+d[2],"g")),n=le):d[3]!==void 0&&(n=le):n===le?d[0]===">"?(n=e??Ye,p=-1):d[1]===void 0?p=-2:(p=n.lastIndex-d[2].length,h=d[1],n=d[3]===void 0?le:d[3]==='"'?mr:fr):n===mr||n===fr?n=le:n===pr||n===ur?n=Ye:(n=le,e=void 0);const b=n===le&&r[a+1].startsWith("/>")?" ":"";o+=n===Ye?c+Wo:p>=0?(i.push(h),c.slice(0,p)+li+c.slice(p)+Ut+b):c+Ut+(p===-2?a:b)}return[vr(r,o+(r[s]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};let pi=class ko{constructor({strings:t,_$litType$:s},i){let e;this.parts=[];let o=0,n=0;const a=t.length-1,c=this.parts,[h,d]=yr(t,s);if(this.el=ko.createElement(h,i),ce.currentNode=this.el.content,s===2||s===3){const p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(e=ce.nextNode())!==null&&c.length<a;){if(e.nodeType===1){if(e.hasAttributes())for(const p of e.getAttributeNames())if(p.endsWith(li)){const g=d[n++],b=e.getAttribute(p).split(Ut),v=/([.?@])?(.*)/.exec(g);c.push({type:1,index:o,name:v[2],strings:b,ctor:v[1]==="."?wr:v[1]==="?"?$r:v[1]==="@"?xr:Ze}),e.removeAttribute(p)}else p.startsWith(Ut)&&(c.push({type:6,index:o}),e.removeAttribute(p));if(gr.test(e.tagName)){const p=e.textContent.split(Ut),g=p.length-1;if(g>0){e.textContent=Ps?Ps.emptyScript:"";for(let b=0;b<g;b++)e.append(p[b],We()),ce.nextNode(),c.push({type:2,index:++o});e.append(p[g],We())}}}else if(e.nodeType===8)if(e.data===ci)c.push({type:2,index:o});else{let p=-1;for(;(p=e.data.indexOf(Ut,p+1))!==-1;)c.push({type:7,index:o}),p+=Ut.length-1}o++}}static createElement(t,s){const i=ae.createElement("template");return i.innerHTML=t,i}};function he(r,t,s=r,i){var n,a;if(t===vt)return t;let e=i!==void 0?(n=s._$Co)==null?void 0:n[i]:s._$Cl;const o=Ke(t)?void 0:t._$litDirective$;return(e==null?void 0:e.constructor)!==o&&((a=e==null?void 0:e._$AO)==null||a.call(e,!1),o===void 0?e=void 0:(e=new o(r),e._$AT(r,s,i)),i!==void 0?(s._$Co??(s._$Co=[]))[i]=e:s._$Cl=e),e!==void 0&&(t=he(r,e._$AS(r,t.values),e,i)),t}let _r=class{constructor(t,s){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=s}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:s},parts:i}=this._$AD,e=((t==null?void 0:t.creationScope)??ae).importNode(s,!0);ce.currentNode=e;let o=ce.nextNode(),n=0,a=0,c=i[0];for(;c!==void 0;){if(n===c.index){let h;c.type===2?h=new As(o,o.nextSibling,this,t):c.type===1?h=new c.ctor(o,c.name,c.strings,this,t):c.type===6&&(h=new Pr(o,this,t)),this._$AV.push(h),c=i[++a]}n!==(c==null?void 0:c.index)&&(o=ce.nextNode(),n++)}return ce.currentNode=ae,e}p(t){let s=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,s),s+=i.strings.length-2):i._$AI(t[s])),s++}},As=class Lo{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,s,i,e){this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=t,this._$AB=s,this._$AM=i,this.options=e,this._$Cv=(e==null?void 0:e.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const s=this._$AM;return s!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=s.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,s=this){t=he(this,t,s),Ke(t)?t===A||t==null||t===""?(this._$AH!==A&&this._$AR(),this._$AH=A):t!==this._$AH&&t!==vt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):dr(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!==A&&Ke(this._$AH)?this._$AA.nextSibling.data=t:this.T(ae.createTextNode(t)),this._$AH=t}$(t){var o;const{values:s,_$litType$:i}=t,e=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=pi.createElement(vr(i.h,i.h[0]),this.options)),i);if(((o=this._$AH)==null?void 0:o._$AD)===e)this._$AH.p(s);else{const n=new _r(e,this),a=n.u(this.options);n.p(s),this.T(a),this._$AH=n}}_$AC(t){let s=br.get(t.strings);return s===void 0&&br.set(t.strings,s=new pi(t)),s}k(t){hi(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let i,e=0;for(const o of t)e===s.length?s.push(i=new Lo(this.O(We()),this.O(We()),this,this.options)):i=s[e],i._$AI(o),e++;e<s.length&&(this._$AR(i&&i._$AB.nextSibling,e),s.length=e)}_$AR(t=this._$AA.nextSibling,s){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,s);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var s;this._$AM===void 0&&(this._$Cv=t,(s=this._$AP)==null||s.call(this,t))}},Ze=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,s,i,e,o){this.type=1,this._$AH=A,this._$AN=void 0,this.element=t,this.name=s,this._$AM=e,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=A}_$AI(t,s=this,i,e){const o=this.strings;let n=!1;if(o===void 0)t=he(this,t,s,0),n=!Ke(t)||t!==this._$AH&&t!==vt,n&&(this._$AH=t);else{const a=t;let c,h;for(t=o[0],c=0;c<o.length-1;c++)h=he(this,a[i+c],s,c),h===vt&&(h=this._$AH[c]),n||(n=!Ke(h)||h!==this._$AH[c]),h===A?t=A:t!==A&&(t+=(h??"")+o[c+1]),this._$AH[c]=h}n&&!e&&this.j(t)}j(t){t===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}};class wr extends Ze{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===A?void 0:t}}let $r=class extends Ze{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==A)}};class xr extends Ze{constructor(t,s,i,e,o){super(t,s,i,e,o),this.type=5}_$AI(t,s=this){if((t=he(this,t,s,0)??A)===vt)return;const i=this._$AH,e=t===A&&i!==A||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==A&&(i===A||e);e&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var s;typeof this._$AH=="function"?this._$AH.call(((s=this.options)==null?void 0:s.host)??this.element,t):this._$AH.handleEvent(t)}}let Pr=class{constructor(t,s,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=s,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){he(this,t)}};const Yo={M:li,P:Ut,A:ci,C:1,L:yr,R:_r,D:dr,V:he,I:As,H:Ze,N:$r,U:xr,B:wr,F:Pr},ui=qe.litHtmlPolyfillSupport;ui==null||ui(pi,As),(qe.litHtmlVersions??(qe.litHtmlVersions=[])).push("3.2.1");const Zo=(r,t,s)=>{const i=(s==null?void 0:s.renderBefore)??t;let e=i._$litPart$;if(e===void 0){const o=(s==null?void 0:s.renderBefore)??null;i._$litPart$=e=new As(t.insertBefore(We(),o),o,void 0,s??{})}return e._$AI(r),e};/**
41
+ */const qe=globalThis,Ps=qe.trustedTypes,dr=Ps?Ps.createPolicy("lit-html",{createHTML:r=>r}):void 0,li="$lit$",Ut=`lit$${Math.random().toFixed(9).slice(2)}$`,ci="?"+Ut,Ko=`<${ci}>`,ae=document,We=()=>ae.createComment(""),Ke=r=>r===null||typeof r!="object"&&typeof r!="function",hi=Array.isArray,pr=r=>hi(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",di=`[
42
+ \f\r]`,Ye=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ur=/-->/g,fr=/>/g,le=RegExp(`>|${di}(?:([^\\s"'>=/]+)(${di}*=${di}*(?:[^
43
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),mr=/'/g,gr=/"/g,br=/^(?:script|style|textarea|title)$/i,Yo=r=>(t,...s)=>({_$litType$:r,strings:t,values:s}),m=Yo(1),yt=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),vr=new WeakMap,ce=ae.createTreeWalker(ae,129);function yr(r,t){if(!hi(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return dr!==void 0?dr.createHTML(t):t}const _r=(r,t)=>{const s=r.length-1,i=[];let e,o=t===2?"<svg>":t===3?"<math>":"",n=Ye;for(let a=0;a<s;a++){const c=r[a];let h,d,p=-1,g=0;for(;g<c.length&&(n.lastIndex=g,d=n.exec(c),d!==null);)g=n.lastIndex,n===Ye?d[1]==="!--"?n=ur:d[1]!==void 0?n=fr:d[2]!==void 0?(br.test(d[2])&&(e=RegExp("</"+d[2],"g")),n=le):d[3]!==void 0&&(n=le):n===le?d[0]===">"?(n=e??Ye,p=-1):d[1]===void 0?p=-2:(p=n.lastIndex-d[2].length,h=d[1],n=d[3]===void 0?le:d[3]==='"'?gr:mr):n===gr||n===mr?n=le:n===ur||n===fr?n=Ye:(n=le,e=void 0);const b=n===le&&r[a+1].startsWith("/>")?" ":"";o+=n===Ye?c+Ko:p>=0?(i.push(h),c.slice(0,p)+li+c.slice(p)+Ut+b):c+Ut+(p===-2?a:b)}return[yr(r,o+(r[s]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};let pi=class Lo{constructor({strings:t,_$litType$:s},i){let e;this.parts=[];let o=0,n=0;const a=t.length-1,c=this.parts,[h,d]=_r(t,s);if(this.el=Lo.createElement(h,i),ce.currentNode=this.el.content,s===2||s===3){const p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(e=ce.nextNode())!==null&&c.length<a;){if(e.nodeType===1){if(e.hasAttributes())for(const p of e.getAttributeNames())if(p.endsWith(li)){const g=d[n++],b=e.getAttribute(p).split(Ut),v=/([.?@])?(.*)/.exec(g);c.push({type:1,index:o,name:v[2],strings:b,ctor:v[1]==="."?$r:v[1]==="?"?xr:v[1]==="@"?Pr:Ze}),e.removeAttribute(p)}else p.startsWith(Ut)&&(c.push({type:6,index:o}),e.removeAttribute(p));if(br.test(e.tagName)){const p=e.textContent.split(Ut),g=p.length-1;if(g>0){e.textContent=Ps?Ps.emptyScript:"";for(let b=0;b<g;b++)e.append(p[b],We()),ce.nextNode(),c.push({type:2,index:++o});e.append(p[g],We())}}}else if(e.nodeType===8)if(e.data===ci)c.push({type:2,index:o});else{let p=-1;for(;(p=e.data.indexOf(Ut,p+1))!==-1;)c.push({type:7,index:o}),p+=Ut.length-1}o++}}static createElement(t,s){const i=ae.createElement("template");return i.innerHTML=t,i}};function he(r,t,s=r,i){var n,a;if(t===yt)return t;let e=i!==void 0?(n=s._$Co)==null?void 0:n[i]:s._$Cl;const o=Ke(t)?void 0:t._$litDirective$;return(e==null?void 0:e.constructor)!==o&&((a=e==null?void 0:e._$AO)==null||a.call(e,!1),o===void 0?e=void 0:(e=new o(r),e._$AT(r,s,i)),i!==void 0?(s._$Co??(s._$Co=[]))[i]=e:s._$Cl=e),e!==void 0&&(t=he(r,e._$AS(r,t.values),e,i)),t}let wr=class{constructor(t,s){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=s}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:s},parts:i}=this._$AD,e=((t==null?void 0:t.creationScope)??ae).importNode(s,!0);ce.currentNode=e;let o=ce.nextNode(),n=0,a=0,c=i[0];for(;c!==void 0;){if(n===c.index){let h;c.type===2?h=new As(o,o.nextSibling,this,t):c.type===1?h=new c.ctor(o,c.name,c.strings,this,t):c.type===6&&(h=new Ar(o,this,t)),this._$AV.push(h),c=i[++a]}n!==(c==null?void 0:c.index)&&(o=ce.nextNode(),n++)}return ce.currentNode=ae,e}p(t){let s=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,s),s+=i.strings.length-2):i._$AI(t[s])),s++}},As=class Eo{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,s,i,e){this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=t,this._$AB=s,this._$AM=i,this.options=e,this._$Cv=(e==null?void 0:e.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const s=this._$AM;return s!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=s.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,s=this){t=he(this,t,s),Ke(t)?t===A||t==null||t===""?(this._$AH!==A&&this._$AR(),this._$AH=A):t!==this._$AH&&t!==yt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):pr(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!==A&&Ke(this._$AH)?this._$AA.nextSibling.data=t:this.T(ae.createTextNode(t)),this._$AH=t}$(t){var o;const{values:s,_$litType$:i}=t,e=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=pi.createElement(yr(i.h,i.h[0]),this.options)),i);if(((o=this._$AH)==null?void 0:o._$AD)===e)this._$AH.p(s);else{const n=new wr(e,this),a=n.u(this.options);n.p(s),this.T(a),this._$AH=n}}_$AC(t){let s=vr.get(t.strings);return s===void 0&&vr.set(t.strings,s=new pi(t)),s}k(t){hi(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let i,e=0;for(const o of t)e===s.length?s.push(i=new Eo(this.O(We()),this.O(We()),this,this.options)):i=s[e],i._$AI(o),e++;e<s.length&&(this._$AR(i&&i._$AB.nextSibling,e),s.length=e)}_$AR(t=this._$AA.nextSibling,s){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,s);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var s;this._$AM===void 0&&(this._$Cv=t,(s=this._$AP)==null||s.call(this,t))}},Ze=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,s,i,e,o){this.type=1,this._$AH=A,this._$AN=void 0,this.element=t,this.name=s,this._$AM=e,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=A}_$AI(t,s=this,i,e){const o=this.strings;let n=!1;if(o===void 0)t=he(this,t,s,0),n=!Ke(t)||t!==this._$AH&&t!==yt,n&&(this._$AH=t);else{const a=t;let c,h;for(t=o[0],c=0;c<o.length-1;c++)h=he(this,a[i+c],s,c),h===yt&&(h=this._$AH[c]),n||(n=!Ke(h)||h!==this._$AH[c]),h===A?t=A:t!==A&&(t+=(h??"")+o[c+1]),this._$AH[c]=h}n&&!e&&this.j(t)}j(t){t===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}};class $r extends Ze{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===A?void 0:t}}let xr=class extends Ze{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==A)}};class Pr extends Ze{constructor(t,s,i,e,o){super(t,s,i,e,o),this.type=5}_$AI(t,s=this){if((t=he(this,t,s,0)??A)===yt)return;const i=this._$AH,e=t===A&&i!==A||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==A&&(i===A||e);e&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var s;typeof this._$AH=="function"?this._$AH.call(((s=this.options)==null?void 0:s.host)??this.element,t):this._$AH.handleEvent(t)}}let Ar=class{constructor(t,s,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=s,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){he(this,t)}};const Zo={M:li,P:Ut,A:ci,C:1,L:_r,R:wr,D:pr,V:he,I:As,H:Ze,N:xr,U:Pr,B:$r,F:Ar},ui=qe.litHtmlPolyfillSupport;ui==null||ui(pi,As),(qe.litHtmlVersions??(qe.litHtmlVersions=[])).push("3.2.1");const Go=(r,t,s)=>{const i=(s==null?void 0:s.renderBefore)??t;let e=i._$litPart$;if(e===void 0){const o=(s==null?void 0:s.renderBefore)??null;i._$litPart$=e=new As(t.insertBefore(We(),o),o,void 0,s??{})}return e._$AI(r),e};/**
44
44
  * @license
45
45
  * Copyright 2020 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
- */const{I:Go}=Yo,Qo=r=>r.strings===void 0,Ar=()=>document.createComment(""),Ge=(r,t,s)=>{var o;const i=r._$AA.parentNode,e=t===void 0?r._$AB:t._$AA;if(s===void 0){const n=i.insertBefore(Ar(),e),a=i.insertBefore(Ar(),e);s=new Go(n,a,r,r.options)}else{const n=s._$AB.nextSibling,a=s._$AM,c=a!==r;if(c){let h;(o=s._$AQ)==null||o.call(s,r),s._$AM=r,s._$AP!==void 0&&(h=r._$AU)!==a._$AU&&s._$AP(h)}if(n!==e||c){let h=s._$AA;for(;h!==n;){const d=h.nextSibling;i.insertBefore(h,e),h=d}}}return s},de=(r,t,s=r)=>(r._$AI(t,s),r),Xo={},Jo=(r,t=Xo)=>r._$AH=t,tn=r=>r._$AH,fi=r=>{var i;(i=r._$AP)==null||i.call(r,!1,!0);let t=r._$AA;const s=r._$AB.nextSibling;for(;t!==s;){const e=t.nextSibling;t.remove(),t=e}};/**
47
+ */const{I:Xo}=Zo,Qo=r=>r.strings===void 0,Cr=()=>document.createComment(""),Ge=(r,t,s)=>{var o;const i=r._$AA.parentNode,e=t===void 0?r._$AB:t._$AA;if(s===void 0){const n=i.insertBefore(Cr(),e),a=i.insertBefore(Cr(),e);s=new Xo(n,a,r,r.options)}else{const n=s._$AB.nextSibling,a=s._$AM,c=a!==r;if(c){let h;(o=s._$AQ)==null||o.call(s,r),s._$AM=r,s._$AP!==void 0&&(h=r._$AU)!==a._$AU&&s._$AP(h)}if(n!==e||c){let h=s._$AA;for(;h!==n;){const d=h.nextSibling;i.insertBefore(h,e),h=d}}}return s},de=(r,t,s=r)=>(r._$AI(t,s),r),Jo={},tn=(r,t=Jo)=>r._$AH=t,en=r=>r._$AH,fi=r=>{var i;(i=r._$AP)==null||i.call(r,!1,!0);let t=r._$AA;const s=r._$AB.nextSibling;for(;t!==s;){const e=t.nextSibling;t.remove(),t=e}};/**
48
48
  * @license
49
49
  * Copyright 2017 Google LLC
50
50
  * SPDX-License-Identifier: BSD-3-Clause
@@ -52,24 +52,24 @@
52
52
  * @license
53
53
  * Copyright 2017 Google LLC
54
54
  * SPDX-License-Identifier: BSD-3-Clause
55
- */const Qe=(r,t)=>{var i;const s=r._$AN;if(s===void 0)return!1;for(const e of s)(i=e._$AO)==null||i.call(e,t,!1),Qe(e,t);return!0},Cs=r=>{let t,s;do{if((t=r._$AM)===void 0)break;s=t._$AN,s.delete(r),r=t}while((s==null?void 0:s.size)===0)},Cr=r=>{for(let t;t=r._$AM;r=t){let s=t._$AN;if(s===void 0)t._$AN=s=new Set;else if(s.has(r))break;s.add(r),rn(t)}};function en(r){this._$AN!==void 0?(Cs(this),this._$AM=r,Cr(this)):this._$AM=r}function sn(r,t=!1,s=0){const i=this._$AH,e=this._$AN;if(e!==void 0&&e.size!==0)if(t)if(Array.isArray(i))for(let o=s;o<i.length;o++)Qe(i[o],!1),Cs(i[o]);else i!=null&&(Qe(i,!1),Cs(i));else Qe(this,r)}const rn=r=>{r.type==Le.CHILD&&(r._$AP??(r._$AP=sn),r._$AQ??(r._$AQ=en))};let Sr=class extends Ee{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,s,i){super._$AT(t,s,i),Cr(this),this.isConnected=t._$AU}_$AO(t,s=!0){var i,e;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)==null||i.call(this):(e=this.disconnected)==null||e.call(this)),s&&(Qe(this,t),Cs(this))}setValue(t){if(Qo(this._$Ct))this._$Ct._$AI(t,this);else{const s=[...this._$Ct._$AH];s[this._$Ci]=t,this._$Ct._$AI(s,this,0)}}disconnected(){}reconnected(){}};/**
55
+ */const Xe=(r,t)=>{var i;const s=r._$AN;if(s===void 0)return!1;for(const e of s)(i=e._$AO)==null||i.call(e,t,!1),Xe(e,t);return!0},Cs=r=>{let t,s;do{if((t=r._$AM)===void 0)break;s=t._$AN,s.delete(r),r=t}while((s==null?void 0:s.size)===0)},Sr=r=>{for(let t;t=r._$AM;r=t){let s=t._$AN;if(s===void 0)t._$AN=s=new Set;else if(s.has(r))break;s.add(r),on(t)}};function sn(r){this._$AN!==void 0?(Cs(this),this._$AM=r,Sr(this)):this._$AM=r}function rn(r,t=!1,s=0){const i=this._$AH,e=this._$AN;if(e!==void 0&&e.size!==0)if(t)if(Array.isArray(i))for(let o=s;o<i.length;o++)Xe(i[o],!1),Cs(i[o]);else i!=null&&(Xe(i,!1),Cs(i));else Xe(this,r)}const on=r=>{r.type==Le.CHILD&&(r._$AP??(r._$AP=rn),r._$AQ??(r._$AQ=sn))};let Or=class extends Ee{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,s,i){super._$AT(t,s,i),Sr(this),this.isConnected=t._$AU}_$AO(t,s=!0){var i,e;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)==null||i.call(this):(e=this.disconnected)==null||e.call(this)),s&&(Xe(this,t),Cs(this))}setValue(t){if(Qo(this._$Ct))this._$Ct._$AI(t,this);else{const s=[...this._$Ct._$AH];s[this._$Ci]=t,this._$Ct._$AI(s,this,0)}}disconnected(){}reconnected(){}};/**
56
56
  * @license
57
57
  * Copyright 2017 Google LLC
58
58
  * SPDX-License-Identifier: BSD-3-Clause
59
- */let _=class extends ke{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var s;const t=super.createRenderRoot();return(s=this.renderOptions).renderBefore??(s.renderBefore=t.firstChild),t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Zo(s,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return vt}};_._$litElement$=!0,_.finalized=!0,(Oo=globalThis.litElementHydrateSupport)==null||Oo.call(globalThis,{LitElement:_});const mi=globalThis.litElementPolyfillSupport;mi==null||mi({LitElement:_}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");function Ss(r){if(typeof r=="function"){const t=r;return N.collectModifiedPublisher(),t(),N.getModifiedPublishers()||new Set}if(typeof r=="string"){const t=r.split("."),s=t.shift()||"";let i=N.get(s);i=J.traverse(i,t);const e=new Set;return e.add(i),e}return new Set([r])}class on extends Sr{constructor(t){var s;super(t),this.observables=new Set,this.onAssign=i=>{this.setValue(i)},this.node=(s=t.options)==null?void 0:s.host}unsubscribe(){this.observables.forEach(t=>t.offAssign(this.onAssign))}render(t){return this.observable!==t&&(this.observable=t,this.isConnected&&this.subscribe(t)),vt}subscribe(t){this.unsubscribe(),typeof t=="function"?this.onAssign=()=>{this.setValue(t())}:this.onAssign=s=>{this.setValue(s)},this.observables=Ss(t),this.observables.forEach(s=>{s.onAssign(this.onAssign)})}disconnected(){this.unsubscribe()}reconnected(){this.observable&&this.subscribe(this.observable)}}const Or=pe(on),nn=Or,an=Or,ln=r=>{var t;return(t=Ss(r).values().next().value)==null?void 0:t.get()},Dr=(r,t)=>{const s=Ss(r).values().next().value;if(t!==void 0&&s){const i=s.get();J.isEmpty(i)&&s.set(t)}return s},cn=Dr,kr=Dr,hn=(r,t)=>{var s;(s=Ss(r).values().next().value)==null||s.set(t)},R=class R{constructor(t){this.addHTTPResponse=!1,this.cache="default",this.isServiceSimulated=!1,this.blockUntilDone=!1,this.serviceURL=t.serviceURL,this.blockUntilDone=t.blockUntilDone||!1,this.serviceURL=="publisher://"&&(this.isServiceSimulated=!0),this.serviceURL||(this.serviceURL=document.location.origin),this.userName=t.userName,this.password=t.password,t.token&&(this.token=t.token),this.tokenProvider=t.tokenProvider,this.authToken=t.authToken,this.addHTTPResponse=t.addHTTPResponse||!1,this.credentials=t.credentials,this.cache=t.cache||"default"}set token(t){if(this._token=t,!t){R.tokens.delete(this.serviceURL);return}R.invalidTokens.includes(t)||R.tokens.set(this.serviceURL,t)}get token(){return R.invalidTokens.includes(this._token)?R.tokens.get(this.serviceURL):this._token}handleInvalidToken(t){t&&(R.invalidTokens.includes(t)||(R.invalidTokens.push(t),this.token=null))}async handleResult(t,s){var a;R.firstCallDoneFlags.set(this.serviceURL,"done"),this.lastResult=t;const i=(a=t.headers.get("content-type"))==null?void 0:a.toLowerCase(),e=t.status;let o={};if(!i||i.indexOf("text/")==0)o={text:await t.text()};else try{o=await t.json()}catch{o={}}this.addHTTPResponse&&J.isObject(o)&&(o._sonic_http_response_=t),e===498&&!R.failledTokenUpdates.has(this.serviceURL)&&(this.handleInvalidToken(this.token),s.apiMethod==="get"?o=await this[s.apiMethod](s.path,s.additionalHeaders):o=await this[s.apiMethod](s.path,s.data,s.method,s.additionalHeaders));const n=N.get("sonic-api");return n.lastResponse={http:t,processed:o},o}async auth(){if(this.token)return;if(R.tokens.has(this.serviceURL)){this.token=R.tokens.get(this.serviceURL);return}if(!this.tokenProvider)return;let t={};this.userName&&this.password?t={Authorization:"Basic "+window.btoa(unescape(encodeURIComponent(this.userName+":"+this.password)))}:this.authToken&&(t={Authorization:"Bearer "+this.authToken});const s=new URL(this.serviceURL),i=s.protocol+"//"+s.host,e=await fetch(this.computeURL(this.tokenProvider,{serviceHost:i}),{headers:t,credentials:this.credentials});try{const o=await e.json();o.token?this.token=o.token:R.failledTokenUpdates.set(this.serviceURL,!0)}catch{R.failledTokenUpdates.set(this.serviceURL,!0)}}async localGet(t,s){var p;const i=N.get(t),e=new URLSearchParams(s.split("?")[1]||""),o=i.get();let n=[];Array.isArray(o)?n=o:n=[o];const a=[];let c=Number.POSITIVE_INFINITY,h=0,d=0;if(e.has("limit")&&(c=parseInt(e.get("limit")||"0"),d++),e.has("offset")&&(h=parseInt(e.get("offset")||"0"),d++),d>0&&(e.delete("limit"),e.delete("offset")),e.size===0)return n.slice(h,h+c);for(const[g,b]of e.entries()){const v=b.split(",").map(P=>P.trim());for(const P of v)for(const S of n)if(typeof S!="object")isNaN(+S)?S.toString().toLowerCase().includes(b.toLowerCase())&&a.push(S):S===b&&a.push(S);else{const D=S;if(!D[g])continue;isNaN(+D[g])?(p=D[g])!=null&&p.toString().toLowerCase().includes(P.toLowerCase())&&a.push(S):D[g]===P&&a.push(S)}}return a.slice(h,h+c)}firstCallDone(){return new Promise(t=>{if(!R.firstCallDoneFlags.has(this.serviceURL))R.firstCallDoneFlags.set(this.serviceURL,"loading"),t(!0);else{const s=()=>{[void 0,"loading"].includes(R.firstCallDoneFlags.get(this.serviceURL))?window.requestAnimationFrame(s):t(!0)};s()}})}async get(t,s){await this.firstCallDone(),this.blockUntilDone&&R.firstCallDoneFlags.set(this.serviceURL,"loading");const i=/dataProvider\((.*?)\)(.*?)$/;if(i.test(t)){const h=t.match(i);if(!h)throw new Error("dataProvider path is not valid");return await this.localGet(h[1],h[2])}const e={apiMethod:"get",path:t,additionalHeaders:s},o=await this.createHeaders(s),n=this.computeURL(t),a=JSON.stringify({url:n,headers:o});if(!R.loadingGetPromises.has(a)){const h=new Promise(async d=>{try{const p=await fetch(n,{headers:o,credentials:this.credentials,cache:this.cache}),g=await this.handleResult(p,e);d(g)}catch{d(null)}});R.loadingGetPromises.set(a,h)}const c=await R.loadingGetPromises.get(a);return R.loadingGetPromises.delete(a),c}async createHeaders(t){await this.auth();const s={};return this.token&&(s.Authorization="Bearer "+this.token),s["Accept-Language"]=K.getLanguage(),t&&Object.assign(s,t),s}computeURL(t,s={}){let i="";t.startsWith("http")?i=t:i=this.serviceURL+"/"+t,i.startsWith("http")||(i=window.location.origin+i);const e=new URL(i);for(const o in s)e.searchParams.set(o,s[o]);return e.toString().replace(/([^(https?:)])\/{2,}/g,"$1/")}async send(t,s,i="POST",e){const o={apiMethod:"send",path:t,additionalHeaders:e,method:i,data:s},n=await this.createHeaders(e);n.Accept="application/json",n["Content-Type"]="application/json";const a=await fetch(this.computeURL(t),{headers:n,credentials:this.credentials,method:i,body:JSON.stringify(s)});return await this.handleResult(a,o)}async submitFormData(t,s,i="POST",e){const o={apiMethod:"submitFormData",path:t,additionalHeaders:e,method:i,data:s},n=await this.createHeaders(e);n.Accept="application/json";const a=new FormData,c=s;for(const d in c)a.set(d,c[d]);const h=await fetch(this.computeURL(t),{headers:n,credentials:this.credentials,method:i,body:a});return await this.handleResult(h,o)}async put(t,s,i){return this.send(t,s,"PUT",i)}async post(t,s,i){return this.send(t,s,"POST",i)}async patch(t,s,i){return this.send(t,s,"PATCH",i)}async delete(t,s,i){return this.send(t,s,"delete",i)}};R.loadingGetPromises=new Map,R.tokens=new Map,R.invalidTokens=[],R.failledTokenUpdates=new Map,R.firstCallDoneFlags=new Map;let Ne=R;K.getApiConfiguration(document.body||document.documentElement);const Lr=async(r,t)=>{};/**
59
+ */let _=class extends ke{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var s;const t=super.createRenderRoot();return(s=this.renderOptions).renderBefore??(s.renderBefore=t.firstChild),t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Go(s,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return yt}};_._$litElement$=!0,_.finalized=!0,(Do=globalThis.litElementHydrateSupport)==null||Do.call(globalThis,{LitElement:_});const mi=globalThis.litElementPolyfillSupport;mi==null||mi({LitElement:_}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");function Ss(r){if(typeof r=="function"){const t=r;return N.collectModifiedPublisher(),t(),N.getModifiedPublishers()||new Set}if(typeof r=="string"){const t=r.split("."),s=t.shift()||"";let i=N.get(s);i=J.traverse(i,t);const e=new Set;return e.add(i),e}return new Set([r])}class nn extends Or{constructor(t){var s;super(t),this.observables=new Set,this.onAssign=i=>{this.setValue(i)},this.node=(s=t.options)==null?void 0:s.host}unsubscribe(){this.observables.forEach(t=>t.offAssign(this.onAssign))}render(t){return this.observable!==t&&(this.observable=t,this.isConnected&&this.subscribe(t)),yt}subscribe(t){this.unsubscribe(),typeof t=="function"?this.onAssign=()=>{this.setValue(t())}:this.onAssign=s=>{this.setValue(s)},this.observables=Ss(t),this.observables.forEach(s=>{s.onAssign(this.onAssign)})}disconnected(){this.unsubscribe()}reconnected(){this.observable&&this.subscribe(this.observable)}}const Dr=pe(nn),an=Dr,ln=Dr,cn=r=>{var t;return(t=Ss(r).values().next().value)==null?void 0:t.get()},kr=(r,t)=>{const s=Ss(r).values().next().value;if(t!==void 0&&s){const i=s.get();J.isEmpty(i)&&s.set(t)}return s},hn=kr,Lr=kr,dn=(r,t)=>{var s;(s=Ss(r).values().next().value)==null||s.set(t)},R=class R{constructor(t){this.addHTTPResponse=!1,this.cache="default",this.isServiceSimulated=!1,this.blockUntilDone=!1,this.serviceURL=t.serviceURL,this.blockUntilDone=t.blockUntilDone||!1,this.serviceURL=="publisher://"&&(this.isServiceSimulated=!0),this.serviceURL||(this.serviceURL=document.location.origin),this.userName=t.userName,this.password=t.password,t.token&&(this.token=t.token),this.tokenProvider=t.tokenProvider,this.authToken=t.authToken,this.addHTTPResponse=t.addHTTPResponse||!1,this.credentials=t.credentials,this.cache=t.cache||"default"}set token(t){if(this._token=t,!t){R.tokens.delete(this.serviceURL);return}R.invalidTokens.includes(t)||R.tokens.set(this.serviceURL,t)}get token(){return R.invalidTokens.includes(this._token)?R.tokens.get(this.serviceURL):this._token}handleInvalidToken(t){t&&(R.invalidTokens.includes(t)||(R.invalidTokens.push(t),this.token=null))}async handleResult(t,s){var a;R.firstCallDoneFlags.set(this.serviceURL,"done"),this.lastResult=t;const i=(a=t.headers.get("content-type"))==null?void 0:a.toLowerCase(),e=t.status;let o={};if(!i||i.indexOf("text/")==0)o={text:await t.text()};else try{o=await t.json()}catch{o={}}this.addHTTPResponse&&J.isObject(o)&&(o._sonic_http_response_=t),e===498&&!R.failledTokenUpdates.has(this.serviceURL)&&(this.handleInvalidToken(this.token),s.apiMethod==="get"?o=await this[s.apiMethod](s.path,s.additionalHeaders):o=await this[s.apiMethod](s.path,s.data,s.method,s.additionalHeaders));const n=N.get("sonic-api");return n.lastResponse={http:t,processed:o},o}async auth(){if(this.token)return;if(R.tokens.has(this.serviceURL)){this.token=R.tokens.get(this.serviceURL);return}if(!this.tokenProvider)return;let t={};this.userName&&this.password?t={Authorization:"Basic "+window.btoa(unescape(encodeURIComponent(this.userName+":"+this.password)))}:this.authToken&&(t={Authorization:"Bearer "+this.authToken});const s=new URL(this.serviceURL),i=s.protocol+"//"+s.host,e=await fetch(this.computeURL(this.tokenProvider,{serviceHost:i}),{headers:t,credentials:this.credentials});try{const o=await e.json();o.token?this.token=o.token:R.failledTokenUpdates.set(this.serviceURL,!0)}catch{R.failledTokenUpdates.set(this.serviceURL,!0)}}async localGet(t,s){var p;const i=N.get(t),e=new URLSearchParams(s.split("?")[1]||""),o=i.get();let n=[];Array.isArray(o)?n=o:n=[o];const a=[];let c=Number.POSITIVE_INFINITY,h=0,d=0;if(e.has("limit")&&(c=parseInt(e.get("limit")||"0"),d++),e.has("offset")&&(h=parseInt(e.get("offset")||"0"),d++),d>0&&(e.delete("limit"),e.delete("offset")),e.size===0)return n.slice(h,h+c);for(const[g,b]of e.entries()){const v=b.split(",").map(P=>P.trim());for(const P of v)for(const S of n)if(typeof S!="object")isNaN(+S)?S.toString().toLowerCase().includes(b.toLowerCase())&&a.push(S):S===b&&a.push(S);else{const D=S;if(!D[g])continue;isNaN(+D[g])?(p=D[g])!=null&&p.toString().toLowerCase().includes(P.toLowerCase())&&a.push(S):D[g]===P&&a.push(S)}}return a.slice(h,h+c)}firstCallDone(){return new Promise(t=>{if(!R.firstCallDoneFlags.has(this.serviceURL))R.firstCallDoneFlags.set(this.serviceURL,"loading"),t(!0);else{const s=()=>{[void 0,"loading"].includes(R.firstCallDoneFlags.get(this.serviceURL))?window.requestAnimationFrame(s):t(!0)};s()}})}async get(t,s){await this.firstCallDone(),this.blockUntilDone&&R.firstCallDoneFlags.set(this.serviceURL,"loading");const i=/dataProvider\((.*?)\)(.*?)$/;if(i.test(t)){const h=t.match(i);if(!h)throw new Error("dataProvider path is not valid");return await this.localGet(h[1],h[2])}const e={apiMethod:"get",path:t,additionalHeaders:s},o=await this.createHeaders(s),n=this.computeURL(t),a=JSON.stringify({url:n,headers:o});if(!R.loadingGetPromises.has(a)){const h=new Promise(async d=>{try{const p=await fetch(n,{headers:o,credentials:this.credentials,cache:this.cache}),g=await this.handleResult(p,e);d(g)}catch{d(null)}});R.loadingGetPromises.set(a,h)}const c=await R.loadingGetPromises.get(a);return R.loadingGetPromises.delete(a),c}async createHeaders(t){await this.auth();const s={};return this.token&&(s.Authorization="Bearer "+this.token),s["Accept-Language"]=K.getLanguage(),t&&Object.assign(s,t),s}computeURL(t,s={}){let i="";t.startsWith("http")?i=t:i=this.serviceURL+"/"+t,i.startsWith("http")||(i=window.location.origin+i);const e=new URL(i);for(const o in s)e.searchParams.set(o,s[o]);return e.toString().replace(/([^(https?:)])\/{2,}/g,"$1/")}async send(t,s,i="POST",e){const o={apiMethod:"send",path:t,additionalHeaders:e,method:i,data:s},n=await this.createHeaders(e);n.Accept="application/json",n["Content-Type"]="application/json";const a=await fetch(this.computeURL(t),{headers:n,credentials:this.credentials,method:i,body:JSON.stringify(s)});return await this.handleResult(a,o)}async submitFormData(t,s,i="POST",e){const o={apiMethod:"submitFormData",path:t,additionalHeaders:e,method:i,data:s},n=await this.createHeaders(e);n.Accept="application/json";const a=new FormData,c=s;for(const d in c)a.set(d,c[d]);const h=await fetch(this.computeURL(t),{headers:n,credentials:this.credentials,method:i,body:a});return await this.handleResult(h,o)}async put(t,s,i){return this.send(t,s,"PUT",i)}async post(t,s,i){return this.send(t,s,"POST",i)}async patch(t,s,i){return this.send(t,s,"PATCH",i)}async delete(t,s,i){return this.send(t,s,"delete",i)}};R.loadingGetPromises=new Map,R.tokens=new Map,R.invalidTokens=[],R.failledTokenUpdates=new Map,R.firstCallDoneFlags=new Map;let Ne=R;K.getApiConfiguration(document.body||document.documentElement);const Er=async(r,t)=>{};/**
60
60
  * @license
61
61
  * Copyright 2017 Google LLC
62
62
  * SPDX-License-Identifier: BSD-3-Clause
63
- */let gi=class extends Ee{constructor(t){if(super(t),this.it=A,t.type!==Le.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===A||t==null)return this._t=void 0,this.it=t;if(t===vt)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const s=[t];return s.raw=s,this._t={_$litType$:this.constructor.resultType,strings:s,values:[]}}};gi.directiveName="unsafeHTML",gi.resultType=1;const F=pe(gi),bi=new Map,Er=r=>{if(!r)return null;const t=K.getApiConfiguration(r),s=K.getAncestorAttributeValue(r,"wordingProvider"),i=K.getAncestorAttributeValue(r,"wordingVersionProvider"),e={apiConfiguration:t,wordingProvider:s,wordingVersionProvider:i};let o=null;for(const[n,a]of bi)if(J.deepEqual(n,e)){o=a;break}return o||(o={api:new Ne(t),keysToTranslate:new Set,translatedKeys:new Set,wordingProvider:s,callIndex:0,wordingVersionProvider:i,apiCallKey:e},bi.set(e,o)),o},Nr="",H=class H extends Sr{constructor(t){super(t),this.useUnsafeHTML=!1,this.onAssign=s=>{const i=this.useUnsafeHTML?F(s):s;this.setValue(i)},this.node=t.options.host}unsubscribe(){H.publisher["wording_"+this.key].offAssign(this.onAssign)}render(t,s=!1){return this.useUnsafeHTML=s,this.key!==t&&(this.key=t,this.isConnected&&this.subscribe(t)),vt}static async callApi(t,s,i=!0,e){if(await N.getInstance().isLocalStrorageReady,H.firstCall){H.firstCall=!1,ti(H.reloadWordings);const d=Object.keys(H.publisher.get());for(const p of d)H.publisher.get()[p]===Nr&&delete H.publisher[p]}if(t){const d=K.getAncestorAttributeValue(t,"wordingVersionProvider");d&&kr(d).onAssign(H.handleVersionProvider(t))}let o=H.publisher.get()["wording_"+s]!=null;const n=e||Er(t);if(!n)return;if(o&&s!==""){n.translatedKeys.add(s);return}n.callIndex++;const a=n.callIndex,c=n.wordingProvider??"";if(!c&&i){window.setTimeout(async()=>{H.callApi(null,s,!1,n)},1e3);return}const h=n.api;window.queueMicrotask(async()=>{if(o=H.publisher["wording_"+s].get()!=null,!o&&s!==""&&(n.keysToTranslate.add(s),H.publisher["wording_"+s]=Nr),a!==n.callIndex)return;const d=Array.from(n.keysToTranslate);if(!d.length)return;const p=c.split("?"),g=p.shift(),b=(p.length>0?p.join("?")+"&":"")+"labels[]="+d.join("&labels[]="),v=g+"?"+b;n.translatedKeys=new Set([...n.translatedKeys,...n.keysToTranslate]),n.keysToTranslate.clear();const P=await h.get(v);for(const S in P)H.publisher["wording_"+S]=P[S]})}static reloadWordings(){for(const t of bi.values())t.keysToTranslate=new Set(t.translatedKeys),t.keysToTranslate.size>0&&H.callApi(null,"",!1,t)}static handleVersionProvider(t){const s=Er(t),i=o=>{};if(!s)return i;if(H.versionProviderHandlers.has(s))return H.versionProviderHandlers.get(s)||i;const e=function(o){if(!s.wordingVersionProvider)return;const a=H.publisher.get().__wording_versions__??[];if(o==null)return;const c=a.find(h=>h.serviceURL===s.api.serviceURL)||{serviceURL:s.api.serviceURL,version:0};a.includes(c)||a.push(c),o!==c.version&&(c.version=o,H.publisher.set({__wording_versions__:a}),H.reloadWordings())};return H.versionProviderHandlers.set(s,e),e}subscribe(t){this.unsubscribe(),H.publisher["wording_"+t].onAssign(this.onAssign),H.callApi(this.node,t)}disconnected(){this.unsubscribe()}reconnected(){this.key&&this.subscribe(this.key)}};H.publisher=N.get("sonic-wording",{localStorageMode:"enabled"}),H.firstCall=!0,H.versionProviderHandlers=new Map;let Te=H;const dn=pe(Te);var pn=Object.defineProperty,un=Object.getOwnPropertyDescriptor,Dt=(r,t,s,i)=>{for(var e=i>1?void 0:i?un(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&pn(t,s,e),e};let Os=!1,vi=new Set;const Q=(r,t)=>{var e;const s=(e=class extends r{constructor(...n){super(),this.collectDependenciesVersion=0,this.displayContents=!1,this.noAutoFill=!1,this.forceAutoFill=!1,this.renderOnPropsInternalChange=!1,this.noShadowDom=null,this.propertyMap=null,this.title="",this.dataProvider=null,this.bindPublisher=null,this._props=null,this.shouldRenderLazy=!0,this.defferedDebug=null,this.debug=null,this.onAssign=a=>{this.props=a}}hasAncestorAttribute(n){return this.getAncestorAttributeValue(n)!=null}getAncestorAttributeValue(n){return K.getAncestorAttributeValue(this,n)}get props(){return this._props!==null||!this.publisher?this._props:this.publisher.get()}set props(n){typeof n=="string"&&["{","["].includes(n.trim().charAt(0))&&(n=JSON.parse(n)),n!=this._props&&(this._props=n,this.publisher&&this.publisher.get()!=n&&this.publisher.set(n),this.requestUpdate())}updated(n){super.updated(n);const c=[...(this.shadowRoot||this).children].filter(d=>d.tagName!="STYLE"),h=this.displayContents?"contents":c.length==0?"none":null;h?this.style.display=h:this.style.removeProperty("display")}connectedCallback(){if(e.instanceCounter++,this.hasAttribute("lazyRendering")){const n={root:null,threshold:.9};let a=!0;const c=new IntersectionObserver(h=>{for(const d of h)if(a&&d.isIntersecting){a=!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(){var n;this.removeDebugger(),super.disconnectedCallback(),this.publisher&&(this.publisher.stopTemplateFilling(this),this.publisher.offInternalMutation(this.requestUpdate)),Te.publisher.stopTemplateFilling(this),this.onAssign&&((n=this.publisher)==null||n.offAssign(this.onAssign))}addDebugger(){var n;if(this.hasAttribute("debug")&&!this.defferedDebug){if(!this.debug){this.debug=document.createElement("div");const a=this.debug.style;a.position="fixed",a.top="0",a.right="0",a.margin="auto",a.borderRadius=".7rem",a.backgroundColor="#0f1729",a.color="#c5d4f9",a.padding="16px 16px",a.margin="16px 16px",a.boxShadow="0 10px 30px -18px rgba(0,0,0,.3)",a.overflowY="auto",a.zIndex="99999999",a.maxHeight="calc(100vh - 32px)",a.fontFamily="Consolas, monospace",a.maxWidth="min(50vw,25rem)",a.fontSize="12px",a.minWidth="300px",a.overflowWrap="break-word",a.resize="vertical"}this.addEventListener("click",a=>{a.ctrlKey&&(a.preventDefault(),Os=!Os)}),this.dataProvider&&(window[this.dataProvider]=this.publisher),this.addEventListener("mouseover",()=>{Os||this.removeDebugger(),document.body.appendChild(this.debug),vi.add(this.debug)}),this.addEventListener("mouseout",()=>{Os||this.removeDebugger()}),(n=this.publisher)==null||n.onInternalMutation(()=>{var a;this.debug.innerHTML=`🤖 DataProvider : "<b style="font-weight:bold;color:#fff;">${this.dataProvider}</b>"<br>
63
+ */let gi=class extends Ee{constructor(t){if(super(t),this.it=A,t.type!==Le.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===A||t==null)return this._t=void 0,this.it=t;if(t===yt)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const s=[t];return s.raw=s,this._t={_$litType$:this.constructor.resultType,strings:s,values:[]}}};gi.directiveName="unsafeHTML",gi.resultType=1;const F=pe(gi),bi=new Map,Nr=r=>{if(!r)return null;const t=K.getApiConfiguration(r),s=K.getAncestorAttributeValue(r,"wordingProvider"),i=K.getAncestorAttributeValue(r,"wordingVersionProvider"),e={apiConfiguration:t,wordingProvider:s,wordingVersionProvider:i};let o=null;for(const[n,a]of bi)if(J.deepEqual(n,e)){o=a;break}return o||(o={api:new Ne(t),keysToTranslate:new Set,translatedKeys:new Set,wordingProvider:s,callIndex:0,wordingVersionProvider:i,apiCallKey:e},bi.set(e,o)),o},Tr="",H=class H extends Or{constructor(t){super(t),this.useUnsafeHTML=!1,this.onAssign=s=>{const i=this.useUnsafeHTML?F(s):s;this.setValue(i)},this.node=t.options.host}unsubscribe(){H.publisher["wording_"+this.key].offAssign(this.onAssign)}render(t,s=!1){return this.useUnsafeHTML=s,this.key!==t&&(this.key=t,this.isConnected&&this.subscribe(t)),yt}static async callApi(t,s,i=!0,e){if(await N.getInstance().isLocalStrorageReady,H.firstCall){H.firstCall=!1,ti(H.reloadWordings);const d=Object.keys(H.publisher.get());for(const p of d)H.publisher.get()[p]===Tr&&delete H.publisher[p]}if(t){const d=K.getAncestorAttributeValue(t,"wordingVersionProvider");d&&Lr(d).onAssign(H.handleVersionProvider(t))}let o=H.publisher.get()["wording_"+s]!=null;const n=e||Nr(t);if(!n)return;if(o&&s!==""){n.translatedKeys.add(s);return}n.callIndex++;const a=n.callIndex,c=n.wordingProvider??"";if(!c&&i){window.setTimeout(async()=>{H.callApi(null,s,!1,n)},1e3);return}const h=n.api;window.queueMicrotask(async()=>{if(o=H.publisher["wording_"+s].get()!=null,!o&&s!==""&&(n.keysToTranslate.add(s),H.publisher["wording_"+s]=Tr),a!==n.callIndex)return;const d=Array.from(n.keysToTranslate);if(!d.length)return;const p=c.split("?"),g=p.shift(),b=(p.length>0?p.join("?")+"&":"")+"labels[]="+d.join("&labels[]="),v=g+"?"+b;n.translatedKeys=new Set([...n.translatedKeys,...n.keysToTranslate]),n.keysToTranslate.clear();const P=await h.get(v);for(const S in P)H.publisher["wording_"+S]=P[S]})}static reloadWordings(){for(const t of bi.values())t.keysToTranslate=new Set(t.translatedKeys),t.keysToTranslate.size>0&&H.callApi(null,"",!1,t)}static handleVersionProvider(t){const s=Nr(t),i=o=>{};if(!s)return i;if(H.versionProviderHandlers.has(s))return H.versionProviderHandlers.get(s)||i;const e=function(o){if(!s.wordingVersionProvider)return;const a=H.publisher.get().__wording_versions__??[];if(o==null)return;const c=a.find(h=>h.serviceURL===s.api.serviceURL)||{serviceURL:s.api.serviceURL,version:0};a.includes(c)||a.push(c),o!==c.version&&(c.version=o,H.publisher.set({__wording_versions__:a}),H.reloadWordings())};return H.versionProviderHandlers.set(s,e),e}subscribe(t){this.unsubscribe(),H.publisher["wording_"+t].onAssign(this.onAssign),H.callApi(this.node,t)}disconnected(){this.unsubscribe()}reconnected(){this.key&&this.subscribe(this.key)}};H.publisher=N.get("sonic-wording",{localStorageMode:"enabled"}),H.firstCall=!0,H.versionProviderHandlers=new Map;let Te=H;const pn=pe(Te);var un=Object.defineProperty,fn=Object.getOwnPropertyDescriptor,Dt=(r,t,s,i)=>{for(var e=i>1?void 0:i?fn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&un(t,s,e),e};let Os=!1,vi=new Set;const X=(r,t)=>{var e;const s=(e=class extends r{constructor(...n){super(),this.collectDependenciesVersion=0,this.displayContents=!1,this.noAutoFill=!1,this.forceAutoFill=!1,this.renderOnPropsInternalChange=!1,this.noShadowDom=null,this.propertyMap=null,this.title="",this.dataProvider=null,this.bindPublisher=null,this._props=null,this.shouldRenderLazy=!0,this.defferedDebug=null,this.debug=null,this.onAssign=a=>{this.props=a}}hasAncestorAttribute(n){return this.getAncestorAttributeValue(n)!=null}getAncestorAttributeValue(n){return K.getAncestorAttributeValue(this,n)}get props(){return this._props!==null||!this.publisher?this._props:this.publisher.get()}set props(n){typeof n=="string"&&["{","["].includes(n.trim().charAt(0))&&(n=JSON.parse(n)),n!=this._props&&(this._props=n,this.publisher&&this.publisher.get()!=n&&this.publisher.set(n),this.requestUpdate())}updated(n){super.updated(n);const c=[...(this.shadowRoot||this).children].filter(d=>d.tagName!="STYLE"),h=this.displayContents?"contents":c.length==0?"none":null;h?this.style.display=h:this.style.removeProperty("display")}connectedCallback(){if(e.instanceCounter++,this.hasAttribute("lazyRendering")){const n={root:null,threshold:.9};let a=!0;const c=new IntersectionObserver(h=>{for(const d of h)if(a&&d.isIntersecting){a=!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(){var n;this.removeDebugger(),super.disconnectedCallback(),this.publisher&&(this.publisher.stopTemplateFilling(this),this.publisher.offInternalMutation(this.requestUpdate)),Te.publisher.stopTemplateFilling(this),this.onAssign&&((n=this.publisher)==null||n.offAssign(this.onAssign))}addDebugger(){var n;if(this.hasAttribute("debug")&&!this.defferedDebug){if(!this.debug){this.debug=document.createElement("div");const a=this.debug.style;a.position="fixed",a.top="0",a.right="0",a.margin="auto",a.borderRadius=".7rem",a.backgroundColor="#0f1729",a.color="#c5d4f9",a.padding="16px 16px",a.margin="16px 16px",a.boxShadow="0 10px 30px -18px rgba(0,0,0,.3)",a.overflowY="auto",a.zIndex="99999999",a.maxHeight="calc(100vh - 32px)",a.fontFamily="Consolas, monospace",a.maxWidth="min(50vw,25rem)",a.fontSize="12px",a.minWidth="300px",a.overflowWrap="break-word",a.resize="vertical"}this.addEventListener("click",a=>{a.ctrlKey&&(a.preventDefault(),Os=!Os)}),this.dataProvider&&(window[this.dataProvider]=this.publisher),this.addEventListener("mouseover",()=>{Os||this.removeDebugger(),document.body.appendChild(this.debug),vi.add(this.debug)}),this.addEventListener("mouseout",()=>{Os||this.removeDebugger()}),(n=this.publisher)==null||n.onInternalMutation(()=>{var a;this.debug.innerHTML=`🤖 DataProvider : "<b style="font-weight:bold;color:#fff;">${this.dataProvider}</b>"<br>
64
64
  <div style="font-size:10px;border-top:1px dashed;margin-top:5px;padding-left:23px;opacity:.6;padding-top:5px;">
65
65
  Variable disponible dans la console<br>
66
66
  ctrl + Clique : épingler / désépingler
67
67
  </div>
68
- <pre style="margin-top:10px;background:transparent;padding:0;font-size:inherit;color:inherit;">${JSON.stringify((a=this.publisher)==null?void 0:a.get(),null," ")}</pre>`})}}removeDebugger(){vi.forEach(n=>{document.body.contains(n)&&document.body.removeChild(n)}),vi=new Set}getApiConfiguration(){return K.getApiConfiguration(this)}async initWording(){const n=Object.getOwnPropertyNames(this.constructor.prototype);for(const a of n)a.indexOf("wording_")==0&&Te.callApi(this,a.substring(8));Te.publisher.startTemplateFilling(this)}createRenderRoot(){if(this.noShadowDom===""||this.getAttribute("noShadowDom")==="")return this;const n=super.createRenderRoot();return ws.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=N.getInstance();this.dataProvider||(this.dataProvider=this.getAncestorAttributeValue("dataProvider"));let a=this.dataProvider;if(!a&&this._props&&(this.dataProvider=a="__subscriber__"+e.instanceCounter),a){this.bindPublisher&&n.set(a,this.bindPublisher());let c=n.get(a,{localStorageMode:this.getAttribute("localStorage")||"disabled"});if(this.dataProvider=a,this.hasAttribute("subDataProvider")){const h=this.getAttribute("subDataProvider");this.dataProvider=a+"/"+h,c=J.traverse(c,h.split(".")),n.set(this.dataProvider,c),this.publisher=c}this.publisher=c}this.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 Dt([l({type:Number})],s.prototype,"collectDependenciesVersion",2),Dt([l({type:Boolean})],s.prototype,"displayContents",2),Dt([l({type:Boolean})],s.prototype,"noAutoFill",2),Dt([l({type:Boolean})],s.prototype,"forceAutoFill",2),Dt([l({type:Object})],s.prototype,"propertyMap",2),Dt([l({type:String,attribute:"data-title"})],s.prototype,"title",2),Dt([l({reflect:!0})],s.prototype,"dataProvider",2),Dt([l()],s.prototype,"bindPublisher",2),Dt([l()],s.prototype,"props",1),Dt([T()],s.prototype,"shouldRenderLazy",2),s};var fn=Object.defineProperty,mn=(r,t,s,i)=>{for(var e=void 0,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(t,s,e)||e);return e&&fn(t,s,e),e};const Xe=r=>{class t extends r{constructor(){super(...arguments),this.templates=null,this.templateValueAttribute="data-value",this.templateList=[],this.templateParts={},this.templatePartsList=[]}connectedCallback(){const i=this.templates||[...this.querySelectorAll("template")];for(const e of i)e.hasAttribute(this.templateValueAttribute)&&(this.templateParts[e.getAttribute(this.templateValueAttribute)]=e,this.templatePartsList.push(e)),e.hasAttribute("skeleton")&&(this.templateParts.skeleton=e),e.hasAttribute("no-result")&&(this.templateParts["no-result"]=e),e.hasAttribute("no-item")&&(this.templateParts["no-item"]=e);this.templateList=i.filter(e=>!e.getAttribute("data-value")),this.templateList.length==0&&(this.templateList=i),super.connectedCallback()}}return mn([l({type:Array})],t.prototype,"templates"),t};var gn=Object.defineProperty,bn=Object.getOwnPropertyDescriptor,Y=(r,t,s,i)=>{for(var e=i>1?void 0:i?bn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&gn(t,s,e),e};const vn="sonic-date";ti(()=>z.updateComponentsLanguage());let z=class extends Q(Xe(_)){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(){z.dateCompnents.forEach(r=>r.pageLanguage=K.getLanguage())}get wording_billet_periode_validite(){return this._wording_billet_periode_validite}set wording_billet_periode_validite(r){var t;r||(r="Du %s au %s"),this._wording_billet_periode_validite=r,this.duAu=(t=this.wording_billet_periode_validite)==null?void 0:t.split("%s").map(s=>s.trim()),this.duAu.pop(),this.requestUpdate()}connectedCallback(){this.hasAttribute("wording_billet_periode_validite")||(this.wording_billet_periode_validite="Du %s au %s"),this.pageLanguage=K.getLanguage(),z.dateCompnents.add(this),super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),z.dateCompnents.delete(this)}getDatesParts(r,t,s){const i=this.startDateObject;i.setTime(r*1e3);let e=[];if(t>0){const o=this.endDateObject;o.setTime(t*1e3);const n=i.toDateString()==o.toDateString();if((!n||this.hide_hours)&&(delete s.hour,delete s.minute),e=new Intl.DateTimeFormat(this.language||this.pageLanguage,s).formatRangeToParts(i,o),!n){const c=e.find(h=>h.type=="literal"&&h.source=="shared"&&h.value.trim().length>0);c&&(c.value=" "+this.duAu[1]+" ",c.type="to"),this.designMode||e.unshift({type:"from",value:this.duAu[0]+" ",source:"shared"})}}else e=new Intl.DateTimeFormat(this.language||this.pageLanguage,s).formatToParts(i);return this.designMode&&e.forEach(o=>o.value=o.value.replace(/,/g," ")),e[0].value=vs.ucFirst(e[0].value),e.filter(o=>o.hidden!==!0)}dateStringToSeconds(r){return new Date(r).getTime()/1e3}willUpdate(r){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 A;const r={year:this.year||"numeric",month:this.month||"short",day:this.day||"2-digit",hour12:this.hour12||!1};this.weekday!=="hidden"&&(r.weekday=this.weekday||"short"),this.hour!=="hidden"&&(r.hour=this.hour||"2-digit"),this.minute!=="hidden"&&(r.minute=this.minute||"2-digit"),this.era&&(r.era=this.era),this.time_zone&&(r.timeZone=this.time_zone);const t=this.getDatesParts(this.computedStartDate,this.computedEndDate,r);return F(`${t.map(s=>{const i=this.templateParts[s.type];if(i){const n=document.importNode(i.content,!0).children[0];return n.innerText.trim()==""&&(n.innerText=s.value),n.outerHTML}const e=document.createElement("span");return e.innerText=s.value,e.className=s.type,`<span class="${s.type}">${s.value}</span>`}).join("")}`)}};z.dateCompnents=new Set,Y([l()],z.prototype,"wording_billet_periode_validite",1),Y([l({type:Boolean})],z.prototype,"designMode",2),Y([l({type:String})],z.prototype,"time_zone",2),Y([l({type:Number})],z.prototype,"date",2),Y([l({type:String})],z.prototype,"date_string",2),Y([l({type:String})],z.prototype,"start_date_string",2),Y([l({type:String})],z.prototype,"end_date_string",2),Y([l({type:Number})],z.prototype,"start_date",2),Y([l({type:Number})],z.prototype,"end_date",2),Y([l({type:Boolean})],z.prototype,"hide_hours",2),Y([l({type:String})],z.prototype,"era",2),Y([l({type:String})],z.prototype,"year",2),Y([l({type:String})],z.prototype,"month",2),Y([l({type:String})],z.prototype,"day",2),Y([l({type:String})],z.prototype,"weekday",2),Y([l({type:String})],z.prototype,"hour",2),Y([l({type:Boolean})],z.prototype,"hour12",2),Y([l({type:String})],z.prototype,"minute",2),Y([l({type:String})],z.prototype,"language",2),Y([l({type:Boolean})],z.prototype,"renderIf",2),Y([l({type:Boolean})],z.prototype,"now",2),z=Y([w(vn)],z);let ot=(G=class{static listen(){var s;if(!G.listening)return;const t=(s=document.location)==null?void 0:s.href.replace(document.location.origin,"");G.prevURL&&G.prevURL!=t&&(G.prevURL=t,G.listeners.forEach(i=>{i.location=t})),window.requestAnimationFrame(G.listen)}static offChange(t){const s=G.listeners.indexOf(t);s!=-1&&(G.listeners.splice(s,1),G.listeners.length==0&&(G.listening=!1))}static onChange(t){G.listening||(G.listening=!0,G.listen()),G.listeners.push(t),t.location=this.prevURL}static changeFromComponent(t){var h;const s=t.goBack,i=document.referrer;if(s!=null){const d=document.location.origin,p=(s||d).toString(),b=i.indexOf("http")==0?new URL(i).origin!=d:!1,v=i=="",P=history.length<3,S=v&&P,D=p!=document.location.href;if(b&&D||S){const f=history.state||{};f.concorde=f.concorde||{},f.concorde.hasDoneHistoryBack=!0,history.pushState(f,document.title),history.back(),document.location.replace(p)}else history.back();return}let e=t.getAttribute("to")||"";if(e||(e=((h=t.href)==null?void 0:h.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("/"),a=[];let c="";for(const d of n)d!=c&&a.push(d),c=d;e="/"+a.join("/")+o.search+(o.hash?+o.hash:""),t.hasAttribute("pushState")?history.pushState(null,"",e):t.hasAttribute("replaceState")?history.replaceState(null,"",e):document.location.href=e}static updateComponentActiveState(t){var i;if(t.autoActive=="disabled")return;const s=((i=t.href)==null?void 0:i.toString())||"";if(t.href&&s.indexOf("http")!=0){const e=new URL(s,document.location.href),o=new URL(t.location||"",document.location.origin);let n=!1;t.autoActive=="strict"?n=e.pathname==o.pathname&&e.hash==o.hash&&e.search==o.search:n=o.href.indexOf(e.href)==0,n?t.setAttribute("active","true"):t.removeAttribute("active")}}},G.listeners=[],G.listening=!1,G.prevURL=(t=document.location)==null?void 0:t.href.replace(document.location.origin,""),G);/**
68
+ <pre style="margin-top:10px;background:transparent;padding:0;font-size:inherit;color:inherit;">${JSON.stringify((a=this.publisher)==null?void 0:a.get(),null," ")}</pre>`})}}removeDebugger(){vi.forEach(n=>{document.body.contains(n)&&document.body.removeChild(n)}),vi=new Set}getApiConfiguration(){return K.getApiConfiguration(this)}async initWording(){const n=Object.getOwnPropertyNames(this.constructor.prototype);for(const a of n)a.indexOf("wording_")==0&&Te.callApi(this,a.substring(8));Te.publisher.startTemplateFilling(this)}createRenderRoot(){if(this.noShadowDom===""||this.getAttribute("noShadowDom")==="")return this;const n=super.createRenderRoot();return ws.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=N.getInstance();this.dataProvider||(this.dataProvider=this.getAncestorAttributeValue("dataProvider"));let a=this.dataProvider;if(!a&&this._props&&(this.dataProvider=a="__subscriber__"+e.instanceCounter),a){this.bindPublisher&&n.set(a,this.bindPublisher());let c=n.get(a,{localStorageMode:this.getAttribute("localStorage")||"disabled"});if(this.dataProvider=a,this.hasAttribute("subDataProvider")){const h=this.getAttribute("subDataProvider");this.dataProvider=a+"/"+h,c=J.traverse(c,h.split(".")),n.set(this.dataProvider,c),this.publisher=c}this.publisher=c}this.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 Dt([l({type:Number})],s.prototype,"collectDependenciesVersion",2),Dt([l({type:Boolean})],s.prototype,"displayContents",2),Dt([l({type:Boolean})],s.prototype,"noAutoFill",2),Dt([l({type:Boolean})],s.prototype,"forceAutoFill",2),Dt([l({type:Object})],s.prototype,"propertyMap",2),Dt([l({type:String,attribute:"data-title"})],s.prototype,"title",2),Dt([l({reflect:!0})],s.prototype,"dataProvider",2),Dt([l()],s.prototype,"bindPublisher",2),Dt([l()],s.prototype,"props",1),Dt([T()],s.prototype,"shouldRenderLazy",2),s};var mn=Object.defineProperty,gn=(r,t,s,i)=>{for(var e=void 0,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(t,s,e)||e);return e&&mn(t,s,e),e};const Qe=r=>{class t extends r{constructor(){super(...arguments),this.templates=null,this.templateValueAttribute="data-value",this.templateList=[],this.templateParts={},this.templatePartsList=[]}connectedCallback(){const i=this.templates||[...this.querySelectorAll("template")];for(const e of i)e.hasAttribute(this.templateValueAttribute)&&(this.templateParts[e.getAttribute(this.templateValueAttribute)]=e,this.templatePartsList.push(e)),e.hasAttribute("skeleton")&&(this.templateParts.skeleton=e),e.hasAttribute("no-result")&&(this.templateParts["no-result"]=e),e.hasAttribute("no-item")&&(this.templateParts["no-item"]=e);this.templateList=i.filter(e=>!e.getAttribute("data-value")),this.templateList.length==0&&(this.templateList=i),super.connectedCallback()}}return gn([l({type:Array})],t.prototype,"templates"),t};var bn=Object.defineProperty,vn=Object.getOwnPropertyDescriptor,Y=(r,t,s,i)=>{for(var e=i>1?void 0:i?vn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&bn(t,s,e),e};const yn="sonic-date";ti(()=>z.updateComponentsLanguage());let z=class extends X(Qe(_)){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(){z.dateCompnents.forEach(r=>r.pageLanguage=K.getLanguage())}get wording_billet_periode_validite(){return this._wording_billet_periode_validite}set wording_billet_periode_validite(r){var t;r||(r="Du %s au %s"),this._wording_billet_periode_validite=r,this.duAu=(t=this.wording_billet_periode_validite)==null?void 0:t.split("%s").map(s=>s.trim()),this.duAu.pop(),this.requestUpdate()}connectedCallback(){this.hasAttribute("wording_billet_periode_validite")||(this.wording_billet_periode_validite="Du %s au %s"),this.pageLanguage=K.getLanguage(),z.dateCompnents.add(this),super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),z.dateCompnents.delete(this)}getDatesParts(r,t,s){const i=this.startDateObject;i.setTime(r*1e3);let e=[];if(t>0){const o=this.endDateObject;o.setTime(t*1e3);const n=i.toDateString()==o.toDateString();if((!n||this.hide_hours)&&(delete s.hour,delete s.minute),e=new Intl.DateTimeFormat(this.language||this.pageLanguage,s).formatRangeToParts(i,o),!n){const c=e.find(h=>h.type=="literal"&&h.source=="shared"&&h.value.trim().length>0);c&&(c.value=" "+this.duAu[1]+" ",c.type="to"),this.designMode||e.unshift({type:"from",value:this.duAu[0]+" ",source:"shared"})}}else e=new Intl.DateTimeFormat(this.language||this.pageLanguage,s).formatToParts(i);return this.designMode&&e.forEach(o=>o.value=o.value.replace(/,/g," ")),e[0].value=vs.ucFirst(e[0].value),e.filter(o=>o.hidden!==!0)}dateStringToSeconds(r){return new Date(r).getTime()/1e3}willUpdate(r){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 A;const r={year:this.year||"numeric",month:this.month||"short",day:this.day||"2-digit",hour12:this.hour12||!1};this.weekday!=="hidden"&&(r.weekday=this.weekday||"short"),this.hour!=="hidden"&&(r.hour=this.hour||"2-digit"),this.minute!=="hidden"&&(r.minute=this.minute||"2-digit"),this.era&&(r.era=this.era),this.time_zone&&(r.timeZone=this.time_zone);const t=this.getDatesParts(this.computedStartDate,this.computedEndDate,r);return F(`${t.map(s=>{const i=this.templateParts[s.type];if(i){const n=document.importNode(i.content,!0).children[0];return n.innerText.trim()==""&&(n.innerText=s.value),n.outerHTML}const e=document.createElement("span");return e.innerText=s.value,e.className=s.type,`<span class="${s.type}">${s.value}</span>`}).join("")}`)}};z.dateCompnents=new Set,Y([l()],z.prototype,"wording_billet_periode_validite",1),Y([l({type:Boolean})],z.prototype,"designMode",2),Y([l({type:String})],z.prototype,"time_zone",2),Y([l({type:Number})],z.prototype,"date",2),Y([l({type:String})],z.prototype,"date_string",2),Y([l({type:String})],z.prototype,"start_date_string",2),Y([l({type:String})],z.prototype,"end_date_string",2),Y([l({type:Number})],z.prototype,"start_date",2),Y([l({type:Number})],z.prototype,"end_date",2),Y([l({type:Boolean})],z.prototype,"hide_hours",2),Y([l({type:String})],z.prototype,"era",2),Y([l({type:String})],z.prototype,"year",2),Y([l({type:String})],z.prototype,"month",2),Y([l({type:String})],z.prototype,"day",2),Y([l({type:String})],z.prototype,"weekday",2),Y([l({type:String})],z.prototype,"hour",2),Y([l({type:Boolean})],z.prototype,"hour12",2),Y([l({type:String})],z.prototype,"minute",2),Y([l({type:String})],z.prototype,"language",2),Y([l({type:Boolean})],z.prototype,"renderIf",2),Y([l({type:Boolean})],z.prototype,"now",2),z=Y([w(yn)],z);let ot=(G=class{static listen(){var s;if(!G.listening)return;const t=(s=document.location)==null?void 0:s.href.replace(document.location.origin,"");G.prevURL&&G.prevURL!=t&&(G.prevURL=t,G.listeners.forEach(i=>{i.location=t})),window.requestAnimationFrame(G.listen)}static offChange(t){const s=G.listeners.indexOf(t);s!=-1&&(G.listeners.splice(s,1),G.listeners.length==0&&(G.listening=!1))}static onChange(t){G.listening||(G.listening=!0,G.listen()),G.listeners.push(t),t.location=this.prevURL}static changeFromComponent(t){var h;const s=t.goBack,i=document.referrer;if(s!=null){const d=document.location.origin,p=(s||d).toString(),b=i.indexOf("http")==0?new URL(i).origin!=d:!1,v=i=="",P=history.length<3,S=v&&P,D=p!=document.location.href;if(b&&D||S){const f=history.state||{};f.concorde=f.concorde||{},f.concorde.hasDoneHistoryBack=!0,history.pushState(f,document.title),history.back(),document.location.replace(p)}else history.back();return}let e=t.getAttribute("to")||"";if(e||(e=((h=t.href)==null?void 0:h.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("/"),a=[];let c="";for(const d of n)d!=c&&a.push(d),c=d;e="/"+a.join("/")+o.search+(o.hash?+o.hash:""),t.hasAttribute("pushState")?history.pushState(null,"",e):t.hasAttribute("replaceState")?history.replaceState(null,"",e):document.location.href=e}static updateComponentActiveState(t){var i;if(t.autoActive=="disabled")return;const s=((i=t.href)==null?void 0:i.toString())||"";if(t.href&&s.indexOf("http")!=0){const e=new URL(s,document.location.href),o=new URL(t.location||"",document.location.origin);let n=!1;t.autoActive=="strict"?n=e.pathname==o.pathname&&e.hash==o.hash&&e.search==o.search:n=o.href.indexOf(e.href)==0,n?t.setAttribute("active","true"):t.removeAttribute("active")}}},G.listeners=[],G.listening=!1,G.prevURL=(t=document.location)==null?void 0:t.href.replace(document.location.origin,""),G);/**
69
69
  * @license
70
70
  * Copyright 2018 Google LLC
71
71
  * SPDX-License-Identifier: BSD-3-Clause
72
- */const Tr="important",yn=" !"+Tr,ft=pe(class extends Ee{constructor(r){var t;if(super(r),r.type!==Le.ATTRIBUTE||r.name!=="style"||((t=r.strings)==null?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((t,s)=>{const i=r[s];return i==null?t:t+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(r,[t]){const{style:s}=r.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const i of this.ft)t[i]==null&&(this.ft.delete(i),i.includes("-")?s.removeProperty(i):s[i]=null);for(const i in t){const e=t[i];if(e!=null){this.ft.add(i);const o=typeof e=="string"&&e.endsWith(yn);i.includes("-")||o?s.setProperty(i,o?e.slice(0,-11):e,o?Tr:""):s[i]=e}}return vt}});var _n=Object.defineProperty,wn=Object.getOwnPropertyDescriptor,kt=(r,t,s,i)=>{for(var e=i>1?void 0:i?wn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&_n(t,s,e),e};const Ds=new Map,Me=r=>{class t extends r{constructor(...i){super(),this.touched=!1,this.error=!1,this.autofocus=!1,this.required=!1,this.forceAutoFill=!1,this.disabled=null,this.formDataProvider="",this._name="",this._value="",this.onValueAssign=e=>{this.setValueFromPublisher(e)},this.onFormValueAssign=async e=>{this.setFormValueFromPublisher(e)},this.onFormDataInValidate=()=>{const e=this.getFormPublisher();e&&e.isFormValid.get()&&this.validateFormElement()}}get name(){return this._name}set name(i){this.hasAttribute("name")&&!this.forceAutoFill&&(i=this.getAttribute("name")),this._name=i,this.requestUpdate()}validateFormElement(){}updateDataValue(){this.getAttribute("name")&&this.getFormPublisher()&&(this.setFormPublisherValue(this.getValueForFormPublisher()),this.setFormValueFromPublisher(this.getFormPublisherValue()))}getFormPublisher(){return this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider")),this.formDataProvider?N.get(this.formDataProvider):null}setFormPublisherValue(i){const e=this.getFormPublisher();e&&dt(e,this.name).set(i)}getFormPublisherValue(){const i=this.getFormPublisher();return i?dt(i,this.name).get():null}getValueForFormPublisher(){return this.value}setValueFromPublisher(i){this.value=i}setFormValueFromPublisher(i){this.value=i}get value(){return this._value}set value(i){i==null&&(i=""),J.isObject(i)&&Object.prototype.hasOwnProperty.call(i,"__value")&&i._value==null&&(i=""),this._value!=i&&(this._value=i,this.updateDataValue(),this.requestUpdate())}initPublisher(){let i=this.getFormPublisher();const e=this.hasAncestorAttribute("initFromPublisher")&&this._name&&this.getFormPublisherValue()?this.getFormPublisherValue():this.getAttribute("value");this._name&&this.publisher&&dt(this.publisher,this._name).offAssign(this.onValueAssign),this._name&&i&&dt(i,this._name).offAssign(this.onFormValueAssign),super.initPublisher(),this.name||(this._name=this.getAttribute("name")),this.value||(this._value=this.getAttribute("value")),this.publisher&&this._name&&dt(this.publisher,this._name).onAssign(this.onValueAssign),i=this.getFormPublisher(),this._name&&i&&(dt(i,this._name).onAssign(this.onFormValueAssign),i.onFormInvalidate(this.onFormDataInValidate)),this.updateDataValue(),e&&(this.value=e)}handleBlur(){this.touched=!0}handleChange(i){this.value=i.target.value;const e=new Event("change");this.dispatchEvent(e)}addKeyboardNavigation(){const i=this.getAncestorAttributeValue("data-keyboard-nav");if(!i)return;const e=i.split(" "),o=e[0];if(!o)return;for(const a of e){Ds.has(a)||Ds.set(a,[]);const c=Ds.get(a);(c==null?void 0:c.indexOf(this))==-1&&c.push(this)}const n=Ds.get(o);this.addEventListener("keydown",a=>{var b;const c=a;if(!["ArrowDown","ArrowUp"].includes(c.key))return;const h="input:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled])",d=n==null?void 0:n.filter(v=>{var D;const P=(D=v.shadowRoot)==null?void 0:D.querySelector(h);if(!P)return!1;const S=window.getComputedStyle(P);return S.display!=="none"&&S.display!==""&&S.pointerEvents!="none"&&S.visibility!=="hidden"&&P.getBoundingClientRect().width>0});let p=null;if(c.key=="ArrowDown"&&d){const v=d.indexOf(this);v==d.length-1?p=d[0]:p=d[v+1]}else if(c.key=="ArrowUp"&&d){const v=d.indexOf(this);v==0?p=d[d.length-1]:p=d[v-1]}const g=(b=p==null?void 0:p.shadowRoot)==null?void 0:b.querySelector(h);g&&g.focus&&(g.focus(),a.preventDefault(),a.stopPropagation())})}focus(){var e;const i=(e=this.shadowRoot)==null?void 0:e.querySelector("[data-form-element]");i==null||i.focus()}connectedCallback(){this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"),super.connectedCallback(),this.addKeyboardNavigation()}disconnectedCallback(){super.disconnectedCallback(),this._name&&this.publisher&&dt(this.publisher,this._name).offAssign(this.onValueAssign);const i=this.getFormPublisher();this._name&&i&&(dt(i,this._name).offAssign(this.onFormValueAssign),i.offFormInvalidate(this.onFormDataInValidate))}}return kt([l({type:Boolean,reflect:!0})],t.prototype,"touched",2),kt([l({type:Boolean})],t.prototype,"error",2),kt([l({type:Boolean})],t.prototype,"autofocus",2),kt([l({type:Boolean})],t.prototype,"required",2),kt([l({type:Boolean})],t.prototype,"forceAutoFill",2),kt([l({type:Boolean})],t.prototype,"disabled",2),kt([l({type:String,attribute:"data-aria-label"})],t.prototype,"ariaLabel",2),kt([l({type:String,attribute:"data-aria-labelledby"})],t.prototype,"ariaLabelledby",2),kt([l()],t.prototype,"name",1),kt([l()],t.prototype,"value",1),t};let $n=class Oe{static areEqual(t,s){return t.length===s.length?t.every((i,e)=>i===s[e]):!1}static from2d(t){return{to1D:()=>{let s=[];return t.forEach(i=>s=s.concat(i)),this.from(s)}}}static from(t){return{get:()=>t||[],everyItem:()=>({has:()=>({same:()=>({value:()=>({forKey:s=>{if(t.length<1)return!0;const i=(t[0]||{})[s];return t.every(e=>(e||{})[s]==i)}})})}),value:()=>({forKey:s=>Oe.from(t.map(i=>i[s]))}),copy:()=>({fromKey:s=>({toKey:i=>{t.forEach(e=>{e[i]=Array.isArray(e[s])?[...e[s]]:typeof e[s]=="object"&&e[s]!=null?{...e[s]}:e[s]})}})})}),map:s=>Oe.from(t.map(s)),filter:s=>Oe.from(t.filter(s)),find:s=>t.find(s),some:s=>t.some(s),every:s=>t.every(s),group:()=>({byKey:s=>{const i=[],e=new Map;for(const o of t){const n=o[s];if(!e.has(n)){const a=i.length;e.set(n,a);const c={items:[]};c[s]=n,i.push(c)}i[e.get(n)].items.push(o)}return Oe.from(i)}}),without:()=>({duplicates:()=>({forKey:s=>{const i=[...new Set(t.map(e=>e[s]))];return Oe.from(i.map(e=>t.find(o=>o[s]==e)))}}),itemsIn:s=>({havingSameValue:()=>({forKey:i=>{const e=(o,n)=>a=>o[n]!=a[n];return Oe.from(t.filter(o=>s.every(e(o,i))))}})})})}}};var xn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var yi={exports:{}};(function(r,t){var s=[].slice;(function(i,e){return t!==null?r.exports=e():i.UrlPattern=e()})(xn,function(){var i,e,o,n,a,c,h,d,p,g,b,v,P,S,D;return p=function(u){return u.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},h=function(u,f){var y,C,O;for(O=[],y=-1,C=u.length;++y<C;)O=O.concat(f(u[y]));return O},S=function(u,f){var y,C,O;for(O="",y=-1,C=u.length;++y<C;)O+=f(u[y]);return O},P=function(u){return new RegExp(u.toString()+"|").exec("").length-1},b=function(u,f){var y,C,O,E,B;for(E={},y=-1,O=u.length;++y<O;)C=u[y],B=f[y],B!=null&&(E[C]!=null?(Array.isArray(E[C])||(E[C]=[E[C]]),E[C].push(B)):E[C]=B);return E},i={},i.Result=function(u,f){this.value=u,this.rest=f},i.Tagged=function(u,f){this.tag=u,this.value=f},i.tag=function(u,f){return function(y){var C,O;if(C=f(y),C!=null)return O=new i.Tagged(u,C.value),new i.Result(O,C.rest)}},i.regex=function(u){return function(f){var y,C;if(y=u.exec(f),y!=null)return C=y[0],new i.Result(C,f.slice(C.length))}},i.sequence=function(){var u;return u=1<=arguments.length?s.call(arguments,0):[],function(f){var y,C,O,E,B,W;for(y=-1,C=u.length,W=[],E=f;++y<C;){if(O=u[y],B=O(E),B==null)return;W.push(B.value),E=B.rest}return new i.Result(W,E)}},i.pick=function(){var u,f;return u=arguments[0],f=2<=arguments.length?s.call(arguments,1):[],function(y){var C,O;if(O=i.sequence.apply(i,f)(y),O!=null)return C=O.value,O.value=C[u],O}},i.string=function(u){var f;return f=u.length,function(y){if(y.slice(0,f)===u)return new i.Result(u,y.slice(f))}},i.lazy=function(u){var f;return f=null,function(y){return f==null&&(f=u()),f(y)}},i.baseMany=function(u,f,y,C,O){var E,B,W,Ot;for(W=O,Ot=y?"":[];!(f!=null&&(E=f(W),E!=null)||(B=u(W),B==null));)y?Ot+=B.value:Ot.push(B.value),W=B.rest;if(!(C&&Ot.length===0))return new i.Result(Ot,W)},i.many1=function(u){return function(f){return i.baseMany(u,null,!1,!0,f)}},i.concatMany1Till=function(u,f){return function(y){return i.baseMany(u,f,!0,!0,y)}},i.firstChoice=function(){var u;return u=1<=arguments.length?s.call(arguments,0):[],function(f){var y,C,O,E;for(y=-1,C=u.length;++y<C;)if(O=u[y],E=O(f),E!=null)return E}},v=function(u){var f;return f={},f.wildcard=i.tag("wildcard",i.string(u.wildcardChar)),f.optional=i.tag("optional",i.pick(1,i.string(u.optionalSegmentStartChar),i.lazy(function(){return f.pattern}),i.string(u.optionalSegmentEndChar))),f.name=i.regex(new RegExp("^["+u.segmentNameCharset+"]+")),f.named=i.tag("named",i.pick(1,i.string(u.segmentNameStartChar),i.lazy(function(){return f.name}))),f.escapedChar=i.pick(1,i.string(u.escapeChar),i.regex(/^./)),f.static=i.tag("static",i.concatMany1Till(i.firstChoice(i.lazy(function(){return f.escapedChar}),i.regex(/^./)),i.firstChoice(i.string(u.segmentNameStartChar),i.string(u.optionalSegmentStartChar),i.string(u.optionalSegmentEndChar),f.wildcard))),f.token=i.lazy(function(){return i.firstChoice(f.wildcard,f.optional,f.named,f.static)}),f.pattern=i.many1(i.lazy(function(){return f.token})),f},d={escapeChar:"\\",segmentNameStartChar:":",segmentValueCharset:"a-zA-Z0-9-_~ %",segmentNameCharset:"a-zA-Z0-9",optionalSegmentStartChar:"(",optionalSegmentEndChar:")",wildcardChar:"*"},c=function(u,f){if(Array.isArray(u))return S(u,function(y){return c(y,f)});switch(u.tag){case"wildcard":return"(.*?)";case"named":return"(["+f+"]+)";case"static":return p(u.value);case"optional":return"(?:"+c(u.value,f)+")?"}},a=function(u,f){return f==null&&(f=d.segmentValueCharset),"^"+c(u,f)+"$"},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)}},g=function(u,f,y,C){var O,E,B,W;if(C==null&&(C=!1),W=u[f],W==null){if(C)throw new Error("no values provided for key `"+f+"`");return}if(O=y[f]||0,E=Array.isArray(W)?W.length-1:0,O>E){if(C)throw new Error("too few values provided for key `"+f+"`");return}return B=Array.isArray(W)?W[O]:W,C&&(y[f]=O+1),B},o=function(u,f,y){var C,O;if(Array.isArray(u)){for(C=-1,O=u.length;++C<O;)if(o(u[C],f,y))return!0;return!1}switch(u.tag){case"wildcard":return g(f,"_",y,!1)!=null;case"named":return g(f,u.value,y,!1)!=null;case"static":return!1;case"optional":return o(u.value,f,y)}},D=function(u,f,y){if(Array.isArray(u))return S(u,function(C){return D(C,f,y)});switch(u.tag){case"wildcard":return g(f,"_",y,!0);case"named":return g(f,u.value,y,!0);case"static":return u.value;case"optional":return o(u.value,f,y)?D(u.value,f,y):""}},e=function(u,f){var y,C,O,E,B;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,f!=null){if(!Array.isArray(f))throw new Error("if first argument is a regex the second argument may be an array of group names but you provided something else");if(y=P(this.regex),f.length!==y)throw new Error("regex contains "+y+" groups but array of group names contains "+f.length);this.names=f}return}if(u==="")throw new Error("argument must not be the empty string");if(B=u.replace(/\s+/g,""),B!==u)throw new Error("argument must not contain whitespace");if(C={escapeChar:(f!=null?f.escapeChar:void 0)||d.escapeChar,segmentNameStartChar:(f!=null?f.segmentNameStartChar:void 0)||d.segmentNameStartChar,segmentNameCharset:(f!=null?f.segmentNameCharset:void 0)||d.segmentNameCharset,segmentValueCharset:(f!=null?f.segmentValueCharset:void 0)||d.segmentValueCharset,optionalSegmentStartChar:(f!=null?f.optionalSegmentStartChar:void 0)||d.optionalSegmentStartChar,optionalSegmentEndChar:(f!=null?f.optionalSegmentEndChar:void 0)||d.optionalSegmentEndChar,wildcardChar:(f!=null?f.wildcardChar:void 0)||d.wildcardChar},E=v(C),O=E.pattern(u),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(a(this.ast,C.segmentValueCharset)),this.names=n(this.ast)},e.prototype.match=function(u){var f,y;return y=this.regex.exec(u),y==null?null:(f=y.slice(1),this.names?b(this.names,f):f)},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 D(this.ast,u,{})},e.escapeForRegex=p,e.concatMap=h,e.stringConcatMap=S,e.regexGroupCount=P,e.keysAndValuesToObject=b,e.P=i,e.newParser=v,e.defaultOptions=d,e.astNodeToRegexString=a,e.astNodeToNames=n,e.getParam=g,e.astNodeContainsSegmentsForProvidedParams=o,e.stringify=D,e})})(yi,yi.exports);var An=yi.exports;const ue=Pn(An),Cn=Eo,Sn=$n,On=ws,Dn=vs,fe=K,kn=ot,Je=J,Ln=He,st=N,En=Ne,Nn=ue;window["concorde-utils"]=window["concorde-utils"]||{},window["concorde-utils"]={Utils:Cn,Arrays:Sn,DataBindObserver:On,Format:Dn,HTML:fe,LocationHandler:kn,Objects:Je,PublisherProxy:Ln,PublisherManager:st,api:En,URLPattern:Nn};var Tn=Object.defineProperty,Mn=Object.getOwnPropertyDescriptor,Ie=(r,t,s,i)=>{for(var e=i>1?void 0:i?Mn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Tn(t,s,e),e};const _i=r=>{class t extends r{constructor(){super(...arguments),this._value="",this.forceAutoFill=!1,this.unique=null,this.radio=null,this.unCheckOnDisconnect=!1,this._checked=null,this.updateAllChecked=()=>{var n;const i=this.getAttribute("name"),e=this.getCheckAllPublisher(),o=this.getFormPublisher();if(e!=null&&e.hasCheckAll.get()&&!this.checksAll()&&e&&o&&i){if((n=this.getFormPublisherValue())!=null&&n.length)(this.checked===null||e.checkMode.get()=="noneChecked"||e.checkMode.get()==null)&&(e.checkMode="someUnchecked");else{e.checkMode="noneChecked";return}const a=this.getFormPublisherValue(),c=e.values.get();if(c&&c.length){let h=c.length;for(const d of c)a.indexOf(d)==-1&&(h-=1);h==c.length&&(e.checkMode="allChecked"),h==0&&(e.checkMode="noneChecked")}c.indexOf(this.value)==-1&&(this.checked=null)}},this.onChecksAllRequest=i=>{this.removeAttribute("allChecked"),this.removeAttribute("indeterminate"),i=="allChecked"&&(this.checked=!0,this.setAttribute("allChecked","")),i=="noneChecked"&&(this.checked=null),i=="someUnchecked"&&(this.checksAll()&&(this.checked="indeterminate"),this.setAttribute("indeterminate",""))}}get value(){return this._value}set value(i){if(this.value==i||(this.hasAttribute("value")&&!this.forceAutoFill&&(i=this.getAttribute("value")),this._value==i)||i==null||(this._value=i,!this.value))return;if(this.getFormPublisher()&&this.name){let o=this.getFormPublisherValue();(this.radio||this.unique)&&(this.checked=o==i?!0:null),Array.isArray(o)||(o=[]),o.indexOf(i)!=-1&&(this.checked=!0)}this.checked==!0&&this.updateDataValue(),this.requestUpdate()}get checked(){return this._checked}set checked(i){if(this.setCheckedValue(i),this.checksAll()){const e=this.getCheckAllPublisher();e&&(this.checked===!0?e.checkMode="allChecked":this.checked===null&&(e.checkMode="noneChecked",this.getFormPublisher()&&this.setFormPublisherValue([])))}this.requestUpdate()}validateFormElement(){var o;const i=(o=this.shadowRoot)==null?void 0:o.querySelector("input");if(!i||i.checkValidity())return;const e=this.getFormPublisher();if(e){const n=this.getFormPublisherValue();if((this.unique||this.radio)&&n!==null&&n!==void 0&&n.toString().length>0)return;e.isFormValid=!1,i.reportValidity()}}checksAll(){return this.hasAttribute("checksAll")}setCheckedValue(i){this._checked!=i&&(this._checked=i,this.updateDataValue(),this.requestUpdate(),setTimeout(()=>this.updateAllChecked(),1))}handleChange(){const i=this.checked===!0?this.radio?!0:null:!0;this.checked=i;const e=new Event("change");this.dispatchEvent(e)}getValueForFormPublisher(){let i=this.getFormPublisherValue();if(this.radio)return this.checked===!0&&this.value!=null?this.value:i;if(this.unique)return this.checked===!0&&this.value!=null?this.value:null;Array.isArray(i)||(i=[]);const e=i.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(i){if(this.unique||this.radio){this.checked=this.value==i?!0:null;return}Array.isArray(i)||(i=[]),!this.checksAll()&&(this.checked=i.indexOf(this.value)!==-1?!0:null)}getCheckAllPublisher(){this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"));const i=this.formDataProvider,e=this.getAttribute("name");return!i||!e?null:st.get(i+"/"+e+"/_available_values_")}disconnectedCallback(){super.disconnectedCallback();const i=this.getCheckAllPublisher();if(i&&(i.checkMode.offAssign(this.onChecksAllRequest),!this.checksAll())){const e=i.values.get().slice(0),o=e.indexOf(this.value);o!=-1&&(e.splice(o,1),i.values=e)}setTimeout(()=>this.updateAllChecked(),1)}connectedCallback(){if(super.connectedCallback(),this.getFormPublisher()&&this.name){const o=this.getFormPublisherValue();o&&Array.isArray(o)&&o.indexOf(this.value)!==-1&&(this.checked=!0)}const e=this.getCheckAllPublisher();e&&(e.checkMode.onAssign(this.onChecksAllRequest),this.checksAll()&&(e.hasCheckAll=!0),e.values.get()||(e.values=[]),this.checksAll()||(e.values=[...e.values.get(),this.value])),this.hasAttribute("checked")&&(!this.publisher||this.publisher.get().checked!==!1)&&setTimeout(()=>this.checked=!0,1)}}return Ie([l()],t.prototype,"value",1),Ie([l()],t.prototype,"forceAutoFill",2),Ie([l({type:Boolean})],t.prototype,"unique",2),Ie([l({type:Boolean})],t.prototype,"radio",2),Ie([l({type:Boolean})],t.prototype,"unCheckOnDisconnect",2),Ie([l()],t.prototype,"checked",1),t};/**
72
+ */const Mr="important",_n=" !"+Mr,mt=pe(class extends Ee{constructor(r){var t;if(super(r),r.type!==Le.ATTRIBUTE||r.name!=="style"||((t=r.strings)==null?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((t,s)=>{const i=r[s];return i==null?t:t+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(r,[t]){const{style:s}=r.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const i of this.ft)t[i]==null&&(this.ft.delete(i),i.includes("-")?s.removeProperty(i):s[i]=null);for(const i in t){const e=t[i];if(e!=null){this.ft.add(i);const o=typeof e=="string"&&e.endsWith(_n);i.includes("-")||o?s.setProperty(i,o?e.slice(0,-11):e,o?Mr:""):s[i]=e}}return yt}});var wn=Object.defineProperty,$n=Object.getOwnPropertyDescriptor,kt=(r,t,s,i)=>{for(var e=i>1?void 0:i?$n(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&wn(t,s,e),e};const Ds=new Map,Me=r=>{class t extends r{constructor(...i){super(),this.touched=!1,this.error=!1,this.autofocus=!1,this.required=!1,this.forceAutoFill=!1,this.disabled=null,this.formDataProvider="",this._name="",this._value="",this.onValueAssign=e=>{this.setValueFromPublisher(e)},this.onFormValueAssign=async e=>{this.setFormValueFromPublisher(e)},this.onFormDataInValidate=()=>{const e=this.getFormPublisher();e&&e.isFormValid.get()&&this.validateFormElement()}}get name(){return this._name}set name(i){this.hasAttribute("name")&&!this.forceAutoFill&&(i=this.getAttribute("name")),this._name=i,this.requestUpdate()}validateFormElement(){}updateDataValue(){this.getAttribute("name")&&this.getFormPublisher()&&(this.setFormPublisherValue(this.getValueForFormPublisher()),this.setFormValueFromPublisher(this.getFormPublisherValue()))}getFormPublisher(){return this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider")),this.formDataProvider?N.get(this.formDataProvider):null}setFormPublisherValue(i){const e=this.getFormPublisher();e&&dt(e,this.name).set(i)}getFormPublisherValue(){const i=this.getFormPublisher();return i?dt(i,this.name).get():null}getValueForFormPublisher(){return this.value}setValueFromPublisher(i){this.value=i}setFormValueFromPublisher(i){this.value=i}get value(){return this._value}set value(i){i==null&&(i=""),J.isObject(i)&&Object.prototype.hasOwnProperty.call(i,"__value")&&i._value==null&&(i=""),this._value!=i&&(this._value=i,this.updateDataValue(),this.requestUpdate())}initPublisher(){let i=this.getFormPublisher();const e=this.hasAncestorAttribute("initFromPublisher")&&this._name&&this.getFormPublisherValue()?this.getFormPublisherValue():this.getAttribute("value");this._name&&this.publisher&&dt(this.publisher,this._name).offAssign(this.onValueAssign),this._name&&i&&dt(i,this._name).offAssign(this.onFormValueAssign),super.initPublisher(),this.name||(this._name=this.getAttribute("name")),this.value||(this._value=this.getAttribute("value")),this.publisher&&this._name&&dt(this.publisher,this._name).onAssign(this.onValueAssign),i=this.getFormPublisher(),this._name&&i&&(dt(i,this._name).onAssign(this.onFormValueAssign),i.onFormInvalidate(this.onFormDataInValidate)),this.updateDataValue(),e&&(this.value=e)}handleBlur(){this.touched=!0}handleChange(i){this.value=i.target.value;const e=new Event("change");this.dispatchEvent(e)}addKeyboardNavigation(){const i=this.getAncestorAttributeValue("data-keyboard-nav");if(!i)return;const e=i.split(" "),o=e[0];if(!o)return;for(const a of e){Ds.has(a)||Ds.set(a,[]);const c=Ds.get(a);(c==null?void 0:c.indexOf(this))==-1&&c.push(this)}const n=Ds.get(o);this.addEventListener("keydown",a=>{var b;const c=a;if(!["ArrowDown","ArrowUp"].includes(c.key))return;const h="input:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled])",d=n==null?void 0:n.filter(v=>{var D;const P=(D=v.shadowRoot)==null?void 0:D.querySelector(h);if(!P)return!1;const S=window.getComputedStyle(P);return S.display!=="none"&&S.display!==""&&S.pointerEvents!="none"&&S.visibility!=="hidden"&&P.getBoundingClientRect().width>0});let p=null;if(c.key=="ArrowDown"&&d){const v=d.indexOf(this);v==d.length-1?p=d[0]:p=d[v+1]}else if(c.key=="ArrowUp"&&d){const v=d.indexOf(this);v==0?p=d[d.length-1]:p=d[v-1]}const g=(b=p==null?void 0:p.shadowRoot)==null?void 0:b.querySelector(h);g&&g.focus&&(g.focus(),a.preventDefault(),a.stopPropagation())})}focus(){var e;const i=(e=this.shadowRoot)==null?void 0:e.querySelector("[data-form-element]");i==null||i.focus()}connectedCallback(){this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"),super.connectedCallback(),this.addKeyboardNavigation()}disconnectedCallback(){super.disconnectedCallback(),this._name&&this.publisher&&dt(this.publisher,this._name).offAssign(this.onValueAssign);const i=this.getFormPublisher();this._name&&i&&(dt(i,this._name).offAssign(this.onFormValueAssign),i.offFormInvalidate(this.onFormDataInValidate))}}return kt([l({type:Boolean,reflect:!0})],t.prototype,"touched",2),kt([l({type:Boolean})],t.prototype,"error",2),kt([l({type:Boolean})],t.prototype,"autofocus",2),kt([l({type:Boolean})],t.prototype,"required",2),kt([l({type:Boolean})],t.prototype,"forceAutoFill",2),kt([l({type:Boolean})],t.prototype,"disabled",2),kt([l({type:String,attribute:"data-aria-label"})],t.prototype,"ariaLabel",2),kt([l({type:String,attribute:"data-aria-labelledby"})],t.prototype,"ariaLabelledby",2),kt([l()],t.prototype,"name",1),kt([l()],t.prototype,"value",1),t};let xn=class Oe{static areEqual(t,s){return t.length===s.length?t.every((i,e)=>i===s[e]):!1}static from2d(t){return{to1D:()=>{let s=[];return t.forEach(i=>s=s.concat(i)),this.from(s)}}}static from(t){return{get:()=>t||[],everyItem:()=>({has:()=>({same:()=>({value:()=>({forKey:s=>{if(t.length<1)return!0;const i=(t[0]||{})[s];return t.every(e=>(e||{})[s]==i)}})})}),value:()=>({forKey:s=>Oe.from(t.map(i=>i[s]))}),copy:()=>({fromKey:s=>({toKey:i=>{t.forEach(e=>{e[i]=Array.isArray(e[s])?[...e[s]]:typeof e[s]=="object"&&e[s]!=null?{...e[s]}:e[s]})}})})}),map:s=>Oe.from(t.map(s)),filter:s=>Oe.from(t.filter(s)),find:s=>t.find(s),some:s=>t.some(s),every:s=>t.every(s),group:()=>({byKey:s=>{const i=[],e=new Map;for(const o of t){const n=o[s];if(!e.has(n)){const a=i.length;e.set(n,a);const c={items:[]};c[s]=n,i.push(c)}i[e.get(n)].items.push(o)}return Oe.from(i)}}),without:()=>({duplicates:()=>({forKey:s=>{const i=[...new Set(t.map(e=>e[s]))];return Oe.from(i.map(e=>t.find(o=>o[s]==e)))}}),itemsIn:s=>({havingSameValue:()=>({forKey:i=>{const e=(o,n)=>a=>o[n]!=a[n];return Oe.from(t.filter(o=>s.every(e(o,i))))}})})})}}};var Pn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function An(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var yi={exports:{}};(function(r,t){var s=[].slice;(function(i,e){return t!==null?r.exports=e():i.UrlPattern=e()})(Pn,function(){var i,e,o,n,a,c,h,d,p,g,b,v,P,S,D;return p=function(u){return u.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},h=function(u,f){var y,C,O;for(O=[],y=-1,C=u.length;++y<C;)O=O.concat(f(u[y]));return O},S=function(u,f){var y,C,O;for(O="",y=-1,C=u.length;++y<C;)O+=f(u[y]);return O},P=function(u){return new RegExp(u.toString()+"|").exec("").length-1},b=function(u,f){var y,C,O,E,B;for(E={},y=-1,O=u.length;++y<O;)C=u[y],B=f[y],B!=null&&(E[C]!=null?(Array.isArray(E[C])||(E[C]=[E[C]]),E[C].push(B)):E[C]=B);return E},i={},i.Result=function(u,f){this.value=u,this.rest=f},i.Tagged=function(u,f){this.tag=u,this.value=f},i.tag=function(u,f){return function(y){var C,O;if(C=f(y),C!=null)return O=new i.Tagged(u,C.value),new i.Result(O,C.rest)}},i.regex=function(u){return function(f){var y,C;if(y=u.exec(f),y!=null)return C=y[0],new i.Result(C,f.slice(C.length))}},i.sequence=function(){var u;return u=1<=arguments.length?s.call(arguments,0):[],function(f){var y,C,O,E,B,W;for(y=-1,C=u.length,W=[],E=f;++y<C;){if(O=u[y],B=O(E),B==null)return;W.push(B.value),E=B.rest}return new i.Result(W,E)}},i.pick=function(){var u,f;return u=arguments[0],f=2<=arguments.length?s.call(arguments,1):[],function(y){var C,O;if(O=i.sequence.apply(i,f)(y),O!=null)return C=O.value,O.value=C[u],O}},i.string=function(u){var f;return f=u.length,function(y){if(y.slice(0,f)===u)return new i.Result(u,y.slice(f))}},i.lazy=function(u){var f;return f=null,function(y){return f==null&&(f=u()),f(y)}},i.baseMany=function(u,f,y,C,O){var E,B,W,Ot;for(W=O,Ot=y?"":[];!(f!=null&&(E=f(W),E!=null)||(B=u(W),B==null));)y?Ot+=B.value:Ot.push(B.value),W=B.rest;if(!(C&&Ot.length===0))return new i.Result(Ot,W)},i.many1=function(u){return function(f){return i.baseMany(u,null,!1,!0,f)}},i.concatMany1Till=function(u,f){return function(y){return i.baseMany(u,f,!0,!0,y)}},i.firstChoice=function(){var u;return u=1<=arguments.length?s.call(arguments,0):[],function(f){var y,C,O,E;for(y=-1,C=u.length;++y<C;)if(O=u[y],E=O(f),E!=null)return E}},v=function(u){var f;return f={},f.wildcard=i.tag("wildcard",i.string(u.wildcardChar)),f.optional=i.tag("optional",i.pick(1,i.string(u.optionalSegmentStartChar),i.lazy(function(){return f.pattern}),i.string(u.optionalSegmentEndChar))),f.name=i.regex(new RegExp("^["+u.segmentNameCharset+"]+")),f.named=i.tag("named",i.pick(1,i.string(u.segmentNameStartChar),i.lazy(function(){return f.name}))),f.escapedChar=i.pick(1,i.string(u.escapeChar),i.regex(/^./)),f.static=i.tag("static",i.concatMany1Till(i.firstChoice(i.lazy(function(){return f.escapedChar}),i.regex(/^./)),i.firstChoice(i.string(u.segmentNameStartChar),i.string(u.optionalSegmentStartChar),i.string(u.optionalSegmentEndChar),f.wildcard))),f.token=i.lazy(function(){return i.firstChoice(f.wildcard,f.optional,f.named,f.static)}),f.pattern=i.many1(i.lazy(function(){return f.token})),f},d={escapeChar:"\\",segmentNameStartChar:":",segmentValueCharset:"a-zA-Z0-9-_~ %",segmentNameCharset:"a-zA-Z0-9",optionalSegmentStartChar:"(",optionalSegmentEndChar:")",wildcardChar:"*"},c=function(u,f){if(Array.isArray(u))return S(u,function(y){return c(y,f)});switch(u.tag){case"wildcard":return"(.*?)";case"named":return"(["+f+"]+)";case"static":return p(u.value);case"optional":return"(?:"+c(u.value,f)+")?"}},a=function(u,f){return f==null&&(f=d.segmentValueCharset),"^"+c(u,f)+"$"},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)}},g=function(u,f,y,C){var O,E,B,W;if(C==null&&(C=!1),W=u[f],W==null){if(C)throw new Error("no values provided for key `"+f+"`");return}if(O=y[f]||0,E=Array.isArray(W)?W.length-1:0,O>E){if(C)throw new Error("too few values provided for key `"+f+"`");return}return B=Array.isArray(W)?W[O]:W,C&&(y[f]=O+1),B},o=function(u,f,y){var C,O;if(Array.isArray(u)){for(C=-1,O=u.length;++C<O;)if(o(u[C],f,y))return!0;return!1}switch(u.tag){case"wildcard":return g(f,"_",y,!1)!=null;case"named":return g(f,u.value,y,!1)!=null;case"static":return!1;case"optional":return o(u.value,f,y)}},D=function(u,f,y){if(Array.isArray(u))return S(u,function(C){return D(C,f,y)});switch(u.tag){case"wildcard":return g(f,"_",y,!0);case"named":return g(f,u.value,y,!0);case"static":return u.value;case"optional":return o(u.value,f,y)?D(u.value,f,y):""}},e=function(u,f){var y,C,O,E,B;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,f!=null){if(!Array.isArray(f))throw new Error("if first argument is a regex the second argument may be an array of group names but you provided something else");if(y=P(this.regex),f.length!==y)throw new Error("regex contains "+y+" groups but array of group names contains "+f.length);this.names=f}return}if(u==="")throw new Error("argument must not be the empty string");if(B=u.replace(/\s+/g,""),B!==u)throw new Error("argument must not contain whitespace");if(C={escapeChar:(f!=null?f.escapeChar:void 0)||d.escapeChar,segmentNameStartChar:(f!=null?f.segmentNameStartChar:void 0)||d.segmentNameStartChar,segmentNameCharset:(f!=null?f.segmentNameCharset:void 0)||d.segmentNameCharset,segmentValueCharset:(f!=null?f.segmentValueCharset:void 0)||d.segmentValueCharset,optionalSegmentStartChar:(f!=null?f.optionalSegmentStartChar:void 0)||d.optionalSegmentStartChar,optionalSegmentEndChar:(f!=null?f.optionalSegmentEndChar:void 0)||d.optionalSegmentEndChar,wildcardChar:(f!=null?f.wildcardChar:void 0)||d.wildcardChar},E=v(C),O=E.pattern(u),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(a(this.ast,C.segmentValueCharset)),this.names=n(this.ast)},e.prototype.match=function(u){var f,y;return y=this.regex.exec(u),y==null?null:(f=y.slice(1),this.names?b(this.names,f):f)},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 D(this.ast,u,{})},e.escapeForRegex=p,e.concatMap=h,e.stringConcatMap=S,e.regexGroupCount=P,e.keysAndValuesToObject=b,e.P=i,e.newParser=v,e.defaultOptions=d,e.astNodeToRegexString=a,e.astNodeToNames=n,e.getParam=g,e.astNodeContainsSegmentsForProvidedParams=o,e.stringify=D,e})})(yi,yi.exports);var Cn=yi.exports;const ue=An(Cn),Sn=No,On=xn,Dn=ws,kn=vs,fe=K,Ln=ot,Je=J,En=He,st=N,Nn=Ne,Tn=ue;window["concorde-utils"]=window["concorde-utils"]||{},window["concorde-utils"]={Utils:Sn,Arrays:On,DataBindObserver:Dn,Format:kn,HTML:fe,LocationHandler:Ln,Objects:Je,PublisherProxy:En,PublisherManager:st,api:Nn,URLPattern:Tn};var Mn=Object.defineProperty,In=Object.getOwnPropertyDescriptor,Ie=(r,t,s,i)=>{for(var e=i>1?void 0:i?In(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Mn(t,s,e),e};const _i=r=>{class t extends r{constructor(){super(...arguments),this._value="",this.forceAutoFill=!1,this.unique=null,this.radio=null,this.unCheckOnDisconnect=!1,this._checked=null,this.updateAllChecked=()=>{var n;const i=this.getAttribute("name"),e=this.getCheckAllPublisher(),o=this.getFormPublisher();if(e!=null&&e.hasCheckAll.get()&&!this.checksAll()&&e&&o&&i){if((n=this.getFormPublisherValue())!=null&&n.length)(this.checked===null||e.checkMode.get()=="noneChecked"||e.checkMode.get()==null)&&(e.checkMode="someUnchecked");else{e.checkMode="noneChecked";return}const a=this.getFormPublisherValue(),c=e.values.get();if(c&&c.length){let h=c.length;for(const d of c)a.indexOf(d)==-1&&(h-=1);h==c.length&&(e.checkMode="allChecked"),h==0&&(e.checkMode="noneChecked")}c.indexOf(this.value)==-1&&(this.checked=null)}},this.onChecksAllRequest=i=>{this.removeAttribute("allChecked"),this.removeAttribute("indeterminate"),i=="allChecked"&&(this.checked=!0,this.setAttribute("allChecked","")),i=="noneChecked"&&(this.checked=null),i=="someUnchecked"&&(this.checksAll()&&(this.checked="indeterminate"),this.setAttribute("indeterminate",""))}}get value(){return this._value}set value(i){if(this.value==i||(this.hasAttribute("value")&&!this.forceAutoFill&&(i=this.getAttribute("value")),this._value==i)||i==null||(this._value=i,!this.value))return;if(this.getFormPublisher()&&this.name){let o=this.getFormPublisherValue();(this.radio||this.unique)&&(this.checked=o==i?!0:null),Array.isArray(o)||(o=[]),o.indexOf(i)!=-1&&(this.checked=!0)}this.checked==!0&&this.updateDataValue(),this.requestUpdate()}get checked(){return this._checked}set checked(i){if(this.setCheckedValue(i),this.checksAll()){const e=this.getCheckAllPublisher();e&&(this.checked===!0?e.checkMode="allChecked":this.checked===null&&(e.checkMode="noneChecked",this.getFormPublisher()&&this.setFormPublisherValue([])))}this.requestUpdate()}validateFormElement(){var o;const i=(o=this.shadowRoot)==null?void 0:o.querySelector("input");if(!i||i.checkValidity())return;const e=this.getFormPublisher();if(e){const n=this.getFormPublisherValue();if((this.unique||this.radio)&&n!==null&&n!==void 0&&n.toString().length>0)return;e.isFormValid=!1,i.reportValidity()}}checksAll(){return this.hasAttribute("checksAll")}setCheckedValue(i){this._checked!=i&&(this._checked=i,this.updateDataValue(),this.requestUpdate(),setTimeout(()=>this.updateAllChecked(),1))}handleChange(){const i=this.checked===!0?this.radio?!0:null:!0;this.checked=i;const e=new Event("change");this.dispatchEvent(e)}getValueForFormPublisher(){let i=this.getFormPublisherValue();if(this.radio)return this.checked===!0&&this.value!=null?this.value:i;if(this.unique)return this.checked===!0&&this.value!=null?this.value:null;Array.isArray(i)||(i=[]);const e=i.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(i){if(this.unique||this.radio){this.checked=this.value==i?!0:null;return}Array.isArray(i)||(i=[]),!this.checksAll()&&(this.checked=i.indexOf(this.value)!==-1?!0:null)}getCheckAllPublisher(){this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"));const i=this.formDataProvider,e=this.getAttribute("name");return!i||!e?null:st.get(i+"/"+e+"/_available_values_")}disconnectedCallback(){super.disconnectedCallback();const i=this.getCheckAllPublisher();if(i&&(i.checkMode.offAssign(this.onChecksAllRequest),!this.checksAll())){const e=i.values.get().slice(0),o=e.indexOf(this.value);o!=-1&&(e.splice(o,1),i.values=e)}setTimeout(()=>this.updateAllChecked(),1)}connectedCallback(){if(super.connectedCallback(),this.getFormPublisher()&&this.name){const o=this.getFormPublisherValue();o&&Array.isArray(o)&&o.indexOf(this.value)!==-1&&(this.checked=!0)}const e=this.getCheckAllPublisher();e&&(e.checkMode.onAssign(this.onChecksAllRequest),this.checksAll()&&(e.hasCheckAll=!0),e.values.get()||(e.values=[]),this.checksAll()||(e.values=[...e.values.get(),this.value])),this.hasAttribute("checked")&&(!this.publisher||this.publisher.get().checked!==!1)&&setTimeout(()=>this.checked=!0,1)}}return Ie([l()],t.prototype,"value",1),Ie([l()],t.prototype,"forceAutoFill",2),Ie([l({type:Boolean})],t.prototype,"unique",2),Ie([l({type:Boolean})],t.prototype,"radio",2),Ie([l({type:Boolean})],t.prototype,"unCheckOnDisconnect",2),Ie([l()],t.prototype,"checked",1),t};/**
73
73
  * @license
74
74
  * Copyright 2018 Google LLC
75
75
  * SPDX-License-Identifier: BSD-3-Clause
@@ -106,11 +106,11 @@
106
106
  :host([size="inherit"]) {
107
107
  --sc-_fs: 1em;
108
108
  }
109
- `;var In=Object.defineProperty,jn=Object.getOwnPropertyDescriptor,U=(r,t,s,i)=>{for(var e=i>1?void 0:i?jn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&In(t,s,e),e};const Fn="sonic-button";let I=class extends _i(Me(Q(_))){constructor(){super(...arguments),this.type="default",this.variant="default",this.shape="default",this.direction="row",this.alignItems="center",this.justify="center",this.minWidth="0",this.icon=!1,this.download=null,this.autoActive="partial",this.loading=!1,this.hasPrefix=!1,this.hasSuffix=!1,this._href="",this.goBack=null,this.pushState=!1,this.active=!1,this.autoRepeat=!1,this.pointerDownTime=0,this.lastRepeatTime=0,this.isRepeating=!1,this.handleRepeatend=()=>{window.removeEventListener("pointerup",this.handleRepeatend),window.removeEventListener("blur",this.handleRepeatend),this.autoRepeat&&(this.isRepeating=!1)},this.location=""}set href(r){this._href=r;const t=this._href.toString();t&&t.indexOf("http")!=0?ot.onChange(this):ot.offChange(this),this.requestUpdate()}get href(){return this._href}handleNavigation(r){r.preventDefault(),ot.changeFromComponent(this)}handleChange(r){if(!((r==null?void 0:r.type)=="click"&&this.autoRepeat)&&(super.handleChange(),(this.pushState||this.goBack!==null)&&(r==null||r.preventDefault(),r==null||r.stopPropagation(),ot.changeFromComponent(this)),this.hasAttribute("reset"))){const t=this.getAttribute("reset"),s=t?st.get(t):this.getFormPublisher();s&&s.set({})}}handleRepeatStart(r){this.autoRepeat&&(this.handleChange(r),this.pointerDownTime=Date.now(),this.isRepeating=!0,this.repeat()),window.addEventListener("pointerup",this.handleRepeatend),window.addEventListener("blur",this.handleRepeatend)}repeat(){if(this.isRepeating){if(this.hasAttribute("disabled")){this.isRepeating=!1;return}window.requestAnimationFrame(this.repeat.bind(this)),!(Date.now()-this.pointerDownTime<500)&&(Date.now()-this.lastRepeatTime<100||(this.handleChange(),this.lastRepeatTime=Date.now()))}}connectedCallback(){super.connectedCallback()}setCheckedValue(r){if(this.name){if(r?this.setAttribute("active","true"):this.removeAttribute("active"),r==this._checked)return;super.setCheckedValue(r)}}disconnectedCallback(){ot.offChange(this),super.disconnectedCallback()}willUpdate(r){(r.has("href")||r.has("autoActive"))&&ot.updateComponentActiveState(this),r.has("location")&&ot.updateComponentActiveState(this)}render(){const r={flexDirection:this.direction,alignItems:this.alignItems,justifyContent:this.justify,align:this.align,minWidth:this.minWidth},t=m`
109
+ `;var jn=Object.defineProperty,Fn=Object.getOwnPropertyDescriptor,U=(r,t,s,i)=>{for(var e=i>1?void 0:i?Fn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&jn(t,s,e),e};const zn="sonic-button";let I=class extends _i(Me(X(_))){constructor(){super(...arguments),this.type="default",this.variant="default",this.shape="default",this.direction="row",this.alignItems="center",this.justify="center",this.minWidth="0",this.icon=!1,this.download=null,this.autoActive="partial",this.loading=!1,this.hasPrefix=!1,this.hasSuffix=!1,this._href="",this.goBack=null,this.pushState=!1,this.active=!1,this.autoRepeat=!1,this.pointerDownTime=0,this.lastRepeatTime=0,this.isRepeating=!1,this.handleRepeatend=()=>{window.removeEventListener("pointerup",this.handleRepeatend),window.removeEventListener("blur",this.handleRepeatend),this.autoRepeat&&(this.isRepeating=!1)},this.location=""}set href(r){this._href=r;const t=this._href.toString();t&&t.indexOf("http")!=0?ot.onChange(this):ot.offChange(this),this.requestUpdate()}get href(){return this._href}handleNavigation(r){r.preventDefault(),ot.changeFromComponent(this)}handleChange(r){if(!((r==null?void 0:r.type)=="click"&&this.autoRepeat)&&(super.handleChange(),(this.pushState||this.goBack!==null)&&(r==null||r.preventDefault(),r==null||r.stopPropagation(),ot.changeFromComponent(this)),this.hasAttribute("reset"))){const t=this.getAttribute("reset"),s=t?st.get(t):this.getFormPublisher();s&&s.set({})}}handleRepeatStart(r){this.autoRepeat&&(this.handleChange(r),this.pointerDownTime=Date.now(),this.isRepeating=!0,this.repeat()),window.addEventListener("pointerup",this.handleRepeatend),window.addEventListener("blur",this.handleRepeatend)}repeat(){if(this.isRepeating){if(this.hasAttribute("disabled")){this.isRepeating=!1;return}window.requestAnimationFrame(this.repeat.bind(this)),!(Date.now()-this.pointerDownTime<500)&&(Date.now()-this.lastRepeatTime<100||(this.handleChange(),this.lastRepeatTime=Date.now()))}}connectedCallback(){super.connectedCallback()}setCheckedValue(r){if(this.name){if(r?this.setAttribute("active","true"):this.removeAttribute("active"),r==this._checked)return;super.setCheckedValue(r)}}disconnectedCallback(){ot.offChange(this),super.disconnectedCallback()}willUpdate(r){(r.has("href")||r.has("autoActive"))&&ot.updateComponentActiveState(this),r.has("location")&&ot.updateComponentActiveState(this)}render(){const r={flexDirection:this.direction,alignItems:this.alignItems,justifyContent:this.justify,align:this.align,minWidth:this.minWidth},t=m`
110
110
  <button
111
111
  part="button"
112
112
  class=${this.hasPrefix||this.hasSuffix?"has-prefix-or-suffix":""}
113
- style=${ft(r)}
113
+ style=${mt(r)}
114
114
  aria-controls=${x(this.ariaControls)}
115
115
  aria-expanded=${x(this.sonicAriaExpanded)}
116
116
  aria-label=${x(this.ariaLabel)}
@@ -502,29 +502,29 @@
502
502
  transform: translate(-50%, -50%) rotate(359deg);
503
503
  }
504
504
  }
505
- `],U([l({type:String,reflect:!0})],I.prototype,"type",2),U([l({type:String,reflect:!0})],I.prototype,"variant",2),U([l({type:String,reflect:!0})],I.prototype,"size",2),U([l({type:String,reflect:!0})],I.prototype,"shape",2),U([l({type:String})],I.prototype,"direction",2),U([l({type:String,reflect:!0})],I.prototype,"alignItems",2),U([l({type:String})],I.prototype,"justify",2),U([l({type:String,reflect:!0})],I.prototype,"align",2),U([l({type:String})],I.prototype,"minWidth",2),U([l({type:Boolean,reflect:!0})],I.prototype,"icon",2),U([l({type:String})],I.prototype,"download",2),U([l({type:String})],I.prototype,"autoActive",2),U([l({type:Boolean,reflect:!0})],I.prototype,"loading",2),U([T()],I.prototype,"hasPrefix",2),U([T()],I.prototype,"hasSuffix",2),U([ne({flatten:!0,slot:"prefix"})],I.prototype,"prefixes",2),U([ne({flatten:!0,slot:"suffix"})],I.prototype,"suffixes",2),U([l({type:String})],I.prototype,"target",2),U([l({type:String})],I.prototype,"href",1),U([l({type:String})],I.prototype,"goBack",2),U([l({type:Boolean})],I.prototype,"pushState",2),U([l({type:Boolean,reflect:!0})],I.prototype,"active",2),U([l({type:Boolean,reflect:!0})],I.prototype,"autoRepeat",2),U([l({type:String,attribute:"data-aria-controls"})],I.prototype,"ariaControls",2),U([l({type:Boolean,attribute:"data-aria-expanded"})],I.prototype,"sonicAriaExpanded",2),U([T()],I.prototype,"location",2),I=U([w(Fn)],I);/**
505
+ `],U([l({type:String,reflect:!0})],I.prototype,"type",2),U([l({type:String,reflect:!0})],I.prototype,"variant",2),U([l({type:String,reflect:!0})],I.prototype,"size",2),U([l({type:String,reflect:!0})],I.prototype,"shape",2),U([l({type:String})],I.prototype,"direction",2),U([l({type:String,reflect:!0})],I.prototype,"alignItems",2),U([l({type:String})],I.prototype,"justify",2),U([l({type:String,reflect:!0})],I.prototype,"align",2),U([l({type:String})],I.prototype,"minWidth",2),U([l({type:Boolean,reflect:!0})],I.prototype,"icon",2),U([l({type:String})],I.prototype,"download",2),U([l({type:String})],I.prototype,"autoActive",2),U([l({type:Boolean,reflect:!0})],I.prototype,"loading",2),U([T()],I.prototype,"hasPrefix",2),U([T()],I.prototype,"hasSuffix",2),U([ne({flatten:!0,slot:"prefix"})],I.prototype,"prefixes",2),U([ne({flatten:!0,slot:"suffix"})],I.prototype,"suffixes",2),U([l({type:String})],I.prototype,"target",2),U([l({type:String})],I.prototype,"href",1),U([l({type:String})],I.prototype,"goBack",2),U([l({type:Boolean})],I.prototype,"pushState",2),U([l({type:Boolean,reflect:!0})],I.prototype,"active",2),U([l({type:Boolean,reflect:!0})],I.prototype,"autoRepeat",2),U([l({type:String,attribute:"data-aria-controls"})],I.prototype,"ariaControls",2),U([l({type:Boolean,attribute:"data-aria-expanded"})],I.prototype,"sonicAriaExpanded",2),U([T()],I.prototype,"location",2),I=U([w(zn)],I);/**
506
506
  * @license
507
507
  * Copyright 2017 Google LLC
508
508
  * SPDX-License-Identifier: BSD-3-Clause
509
- */const Mr=(r,t,s)=>{const i=new Map;for(let e=t;e<=s;e++)i.set(r[e],e);return i},ks=pe(class extends Ee{constructor(r){if(super(r),r.type!==Le.CHILD)throw Error("repeat() can only be used in text expressions")}dt(r,t,s){let i;s===void 0?s=t:t!==void 0&&(i=t);const e=[],o=[];let n=0;for(const a of r)e[n]=i?i(a,n):n,o[n]=s(a,n),n++;return{values:o,keys:e}}render(r,t,s){return this.dt(r,t,s).values}update(r,[t,s,i]){const e=tn(r),{values:o,keys:n}=this.dt(t,s,i);if(!Array.isArray(e))return this.ut=n,o;const a=this.ut??(this.ut=[]),c=[];let h,d,p=0,g=e.length-1,b=0,v=o.length-1;for(;p<=g&&b<=v;)if(e[p]===null)p++;else if(e[g]===null)g--;else if(a[p]===n[b])c[b]=de(e[p],o[b]),p++,b++;else if(a[g]===n[v])c[v]=de(e[g],o[v]),g--,v--;else if(a[p]===n[v])c[v]=de(e[p],o[v]),Ge(r,c[v+1],e[p]),p++,v--;else if(a[g]===n[b])c[b]=de(e[g],o[b]),Ge(r,e[p],e[g]),g--,b++;else if(h===void 0&&(h=Mr(n,b,v),d=Mr(a,p,g)),h.has(a[p]))if(h.has(a[g])){const P=d.get(n[b]),S=P!==void 0?e[P]:null;if(S===null){const D=Ge(r,e[p]);de(D,o[b]),c[b]=D}else c[b]=de(S,o[b]),Ge(r,e[p],S),e[P]=null;b++}else fi(e[g]),g--;else fi(e[p]),p++;for(;b<=v;){const P=Ge(r,c[v+1]);de(P,o[b]),c[b++]=P}for(;p<=g;){const P=e[p++];P!==null&&fi(P)}return this.ut=n,Jo(r,c),vt}});/**
509
+ */const Ir=(r,t,s)=>{const i=new Map;for(let e=t;e<=s;e++)i.set(r[e],e);return i},ks=pe(class extends Ee{constructor(r){if(super(r),r.type!==Le.CHILD)throw Error("repeat() can only be used in text expressions")}dt(r,t,s){let i;s===void 0?s=t:t!==void 0&&(i=t);const e=[],o=[];let n=0;for(const a of r)e[n]=i?i(a,n):n,o[n]=s(a,n),n++;return{values:o,keys:e}}render(r,t,s){return this.dt(r,t,s).values}update(r,[t,s,i]){const e=en(r),{values:o,keys:n}=this.dt(t,s,i);if(!Array.isArray(e))return this.ut=n,o;const a=this.ut??(this.ut=[]),c=[];let h,d,p=0,g=e.length-1,b=0,v=o.length-1;for(;p<=g&&b<=v;)if(e[p]===null)p++;else if(e[g]===null)g--;else if(a[p]===n[b])c[b]=de(e[p],o[b]),p++,b++;else if(a[g]===n[v])c[v]=de(e[g],o[v]),g--,v--;else if(a[p]===n[v])c[v]=de(e[p],o[v]),Ge(r,c[v+1],e[p]),p++,v--;else if(a[g]===n[b])c[b]=de(e[g],o[b]),Ge(r,e[p],e[g]),g--,b++;else if(h===void 0&&(h=Ir(n,b,v),d=Ir(a,p,g)),h.has(a[p]))if(h.has(a[g])){const P=d.get(n[b]),S=P!==void 0?e[P]:null;if(S===null){const D=Ge(r,e[p]);de(D,o[b]),c[b]=D}else c[b]=de(S,o[b]),Ge(r,e[p],S),e[P]=null;b++}else fi(e[g]),g--;else fi(e[p]),p++;for(;b<=v;){const P=Ge(r,c[v+1]);de(P,o[b]),c[b++]=P}for(;p<=g;){const P=e[p++];P!==null&&fi(P)}return this.ut=n,tn(r,c),yt}});/**
510
510
  * @license
511
511
  * Copyright 2017 Google LLC
512
512
  * SPDX-License-Identifier: BSD-3-Clause
513
- */const ts=globalThis,Ls=ts.trustedTypes,Ir=Ls?Ls.createPolicy("lit-html",{createHTML:r=>r}):void 0,jr="$lit$",Kt=`lit$${Math.random().toFixed(9).slice(2)}$`,Fr="?"+Kt,zn=`<${Fr}>`,me=document,Es=()=>me.createComment(""),es=r=>r===null||typeof r!="object"&&typeof r!="function",wi=Array.isArray,Rn=r=>wi(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",$i=`[
514
- \f\r]`,ss=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,zr=/-->/g,Rr=/>/g,ge=RegExp(`>|${$i}(?:([^\\s"'>=/]+)(${$i}*=${$i}*(?:[^
515
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ur=/'/g,Vr=/"/g,Hr=/^(?:script|style|textarea|title)$/i,is=Symbol.for("lit-noChange"),tt=Symbol.for("lit-nothing"),Br=new WeakMap,be=me.createTreeWalker(me,129);function qr(r,t){if(!wi(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ir!==void 0?Ir.createHTML(t):t}const Un=(r,t)=>{const s=r.length-1,i=[];let e,o=t===2?"<svg>":t===3?"<math>":"",n=ss;for(let a=0;a<s;a++){const c=r[a];let h,d,p=-1,g=0;for(;g<c.length&&(n.lastIndex=g,d=n.exec(c),d!==null);)g=n.lastIndex,n===ss?d[1]==="!--"?n=zr:d[1]!==void 0?n=Rr:d[2]!==void 0?(Hr.test(d[2])&&(e=RegExp("</"+d[2],"g")),n=ge):d[3]!==void 0&&(n=ge):n===ge?d[0]===">"?(n=e??ss,p=-1):d[1]===void 0?p=-2:(p=n.lastIndex-d[2].length,h=d[1],n=d[3]===void 0?ge:d[3]==='"'?Vr:Ur):n===Vr||n===Ur?n=ge:n===zr||n===Rr?n=ss:(n=ge,e=void 0);const b=n===ge&&r[a+1].startsWith("/>")?" ":"";o+=n===ss?c+zn:p>=0?(i.push(h),c.slice(0,p)+jr+c.slice(p)+Kt+b):c+Kt+(p===-2?a:b)}return[qr(r,o+(r[s]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};class rs{constructor({strings:t,_$litType$:s},i){let e;this.parts=[];let o=0,n=0;const a=t.length-1,c=this.parts,[h,d]=Un(t,s);if(this.el=rs.createElement(h,i),be.currentNode=this.el.content,s===2||s===3){const p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(e=be.nextNode())!==null&&c.length<a;){if(e.nodeType===1){if(e.hasAttributes())for(const p of e.getAttributeNames())if(p.endsWith(jr)){const g=d[n++],b=e.getAttribute(p).split(Kt),v=/([.?@])?(.*)/.exec(g);c.push({type:1,index:o,name:v[2],strings:b,ctor:v[1]==="."?Hn:v[1]==="?"?Bn:v[1]==="@"?qn:Ts}),e.removeAttribute(p)}else p.startsWith(Kt)&&(c.push({type:6,index:o}),e.removeAttribute(p));if(Hr.test(e.tagName)){const p=e.textContent.split(Kt),g=p.length-1;if(g>0){e.textContent=Ls?Ls.emptyScript:"";for(let b=0;b<g;b++)e.append(p[b],Es()),be.nextNode(),c.push({type:2,index:++o});e.append(p[g],Es())}}}else if(e.nodeType===8)if(e.data===Fr)c.push({type:2,index:o});else{let p=-1;for(;(p=e.data.indexOf(Kt,p+1))!==-1;)c.push({type:7,index:o}),p+=Kt.length-1}o++}}static createElement(t,s){const i=me.createElement("template");return i.innerHTML=t,i}}function je(r,t,s=r,i){var n,a;if(t===is)return t;let e=i!==void 0?(n=s.o)==null?void 0:n[i]:s.l;const o=es(t)?void 0:t._$litDirective$;return(e==null?void 0:e.constructor)!==o&&((a=e==null?void 0:e._$AO)==null||a.call(e,!1),o===void 0?e=void 0:(e=new o(r),e._$AT(r,s,i)),i!==void 0?(s.o??(s.o=[]))[i]=e:s.l=e),e!==void 0&&(t=je(r,e._$AS(r,t.values),e,i)),t}let Vn=class{constructor(t,s){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=s}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:s},parts:i}=this._$AD,e=((t==null?void 0:t.creationScope)??me).importNode(s,!0);be.currentNode=e;let o=be.nextNode(),n=0,a=0,c=i[0];for(;c!==void 0;){if(n===c.index){let h;c.type===2?h=new Ns(o,o.nextSibling,this,t):c.type===1?h=new c.ctor(o,c.name,c.strings,this,t):c.type===6&&(h=new Wn(o,this,t)),this._$AV.push(h),c=i[++a]}n!==(c==null?void 0:c.index)&&(o=be.nextNode(),n++)}return be.currentNode=me,e}p(t){let s=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,s),s+=i.strings.length-2):i._$AI(t[s])),s++}};class Ns{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this.v}constructor(t,s,i,e){this.type=2,this._$AH=tt,this._$AN=void 0,this._$AA=t,this._$AB=s,this._$AM=i,this.options=e,this.v=(e==null?void 0:e.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const s=this._$AM;return s!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=s.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,s=this){t=je(this,t,s),es(t)?t===tt||t==null||t===""?(this._$AH!==tt&&this._$AR(),this._$AH=tt):t!==this._$AH&&t!==is&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Rn(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!==tt&&es(this._$AH)?this._$AA.nextSibling.data=t:this.T(me.createTextNode(t)),this._$AH=t}$(t){var o;const{values:s,_$litType$:i}=t,e=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=rs.createElement(qr(i.h,i.h[0]),this.options)),i);if(((o=this._$AH)==null?void 0:o._$AD)===e)this._$AH.p(s);else{const n=new Vn(e,this),a=n.u(this.options);n.p(s),this.T(a),this._$AH=n}}_$AC(t){let s=Br.get(t.strings);return s===void 0&&Br.set(t.strings,s=new rs(t)),s}k(t){wi(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let i,e=0;for(const o of t)e===s.length?s.push(i=new Ns(this.O(Es()),this.O(Es()),this,this.options)):i=s[e],i._$AI(o),e++;e<s.length&&(this._$AR(i&&i._$AB.nextSibling,e),s.length=e)}_$AR(t=this._$AA.nextSibling,s){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,s);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var s;this._$AM===void 0&&(this.v=t,(s=this._$AP)==null||s.call(this,t))}}class Ts{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,s,i,e,o){this.type=1,this._$AH=tt,this._$AN=void 0,this.element=t,this.name=s,this._$AM=e,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=tt}_$AI(t,s=this,i,e){const o=this.strings;let n=!1;if(o===void 0)t=je(this,t,s,0),n=!es(t)||t!==this._$AH&&t!==is,n&&(this._$AH=t);else{const a=t;let c,h;for(t=o[0],c=0;c<o.length-1;c++)h=je(this,a[i+c],s,c),h===is&&(h=this._$AH[c]),n||(n=!es(h)||h!==this._$AH[c]),h===tt?t=tt:t!==tt&&(t+=(h??"")+o[c+1]),this._$AH[c]=h}n&&!e&&this.j(t)}j(t){t===tt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Hn extends Ts{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===tt?void 0:t}}class Bn extends Ts{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==tt)}}class qn extends Ts{constructor(t,s,i,e,o){super(t,s,i,e,o),this.type=5}_$AI(t,s=this){if((t=je(this,t,s,0)??tt)===is)return;const i=this._$AH,e=t===tt&&i!==tt||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==tt&&(i===tt||e);e&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var s;typeof this._$AH=="function"?this._$AH.call(((s=this.options)==null?void 0:s.host)??this.element,t):this._$AH.handleEvent(t)}}class Wn{constructor(t,s,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=s,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){je(this,t)}}const xi=ts.litHtmlPolyfillSupport;xi==null||xi(rs,Ns),(ts.litHtmlVersions??(ts.litHtmlVersions=[])).push("3.2.0");/**
513
+ */const ts=globalThis,Ls=ts.trustedTypes,jr=Ls?Ls.createPolicy("lit-html",{createHTML:r=>r}):void 0,Fr="$lit$",Kt=`lit$${Math.random().toFixed(9).slice(2)}$`,zr="?"+Kt,Rn=`<${zr}>`,me=document,Es=()=>me.createComment(""),es=r=>r===null||typeof r!="object"&&typeof r!="function",wi=Array.isArray,Un=r=>wi(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",$i=`[
514
+ \f\r]`,ss=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Rr=/-->/g,Ur=/>/g,ge=RegExp(`>|${$i}(?:([^\\s"'>=/]+)(${$i}*=${$i}*(?:[^
515
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Vr=/'/g,Hr=/"/g,Br=/^(?:script|style|textarea|title)$/i,is=Symbol.for("lit-noChange"),tt=Symbol.for("lit-nothing"),qr=new WeakMap,be=me.createTreeWalker(me,129);function Wr(r,t){if(!wi(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return jr!==void 0?jr.createHTML(t):t}const Vn=(r,t)=>{const s=r.length-1,i=[];let e,o=t===2?"<svg>":t===3?"<math>":"",n=ss;for(let a=0;a<s;a++){const c=r[a];let h,d,p=-1,g=0;for(;g<c.length&&(n.lastIndex=g,d=n.exec(c),d!==null);)g=n.lastIndex,n===ss?d[1]==="!--"?n=Rr:d[1]!==void 0?n=Ur:d[2]!==void 0?(Br.test(d[2])&&(e=RegExp("</"+d[2],"g")),n=ge):d[3]!==void 0&&(n=ge):n===ge?d[0]===">"?(n=e??ss,p=-1):d[1]===void 0?p=-2:(p=n.lastIndex-d[2].length,h=d[1],n=d[3]===void 0?ge:d[3]==='"'?Hr:Vr):n===Hr||n===Vr?n=ge:n===Rr||n===Ur?n=ss:(n=ge,e=void 0);const b=n===ge&&r[a+1].startsWith("/>")?" ":"";o+=n===ss?c+Rn:p>=0?(i.push(h),c.slice(0,p)+Fr+c.slice(p)+Kt+b):c+Kt+(p===-2?a:b)}return[Wr(r,o+(r[s]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};class rs{constructor({strings:t,_$litType$:s},i){let e;this.parts=[];let o=0,n=0;const a=t.length-1,c=this.parts,[h,d]=Vn(t,s);if(this.el=rs.createElement(h,i),be.currentNode=this.el.content,s===2||s===3){const p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(e=be.nextNode())!==null&&c.length<a;){if(e.nodeType===1){if(e.hasAttributes())for(const p of e.getAttributeNames())if(p.endsWith(Fr)){const g=d[n++],b=e.getAttribute(p).split(Kt),v=/([.?@])?(.*)/.exec(g);c.push({type:1,index:o,name:v[2],strings:b,ctor:v[1]==="."?Bn:v[1]==="?"?qn:v[1]==="@"?Wn:Ts}),e.removeAttribute(p)}else p.startsWith(Kt)&&(c.push({type:6,index:o}),e.removeAttribute(p));if(Br.test(e.tagName)){const p=e.textContent.split(Kt),g=p.length-1;if(g>0){e.textContent=Ls?Ls.emptyScript:"";for(let b=0;b<g;b++)e.append(p[b],Es()),be.nextNode(),c.push({type:2,index:++o});e.append(p[g],Es())}}}else if(e.nodeType===8)if(e.data===zr)c.push({type:2,index:o});else{let p=-1;for(;(p=e.data.indexOf(Kt,p+1))!==-1;)c.push({type:7,index:o}),p+=Kt.length-1}o++}}static createElement(t,s){const i=me.createElement("template");return i.innerHTML=t,i}}function je(r,t,s=r,i){var n,a;if(t===is)return t;let e=i!==void 0?(n=s.o)==null?void 0:n[i]:s.l;const o=es(t)?void 0:t._$litDirective$;return(e==null?void 0:e.constructor)!==o&&((a=e==null?void 0:e._$AO)==null||a.call(e,!1),o===void 0?e=void 0:(e=new o(r),e._$AT(r,s,i)),i!==void 0?(s.o??(s.o=[]))[i]=e:s.l=e),e!==void 0&&(t=je(r,e._$AS(r,t.values),e,i)),t}let Hn=class{constructor(t,s){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=s}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:s},parts:i}=this._$AD,e=((t==null?void 0:t.creationScope)??me).importNode(s,!0);be.currentNode=e;let o=be.nextNode(),n=0,a=0,c=i[0];for(;c!==void 0;){if(n===c.index){let h;c.type===2?h=new Ns(o,o.nextSibling,this,t):c.type===1?h=new c.ctor(o,c.name,c.strings,this,t):c.type===6&&(h=new Kn(o,this,t)),this._$AV.push(h),c=i[++a]}n!==(c==null?void 0:c.index)&&(o=be.nextNode(),n++)}return be.currentNode=me,e}p(t){let s=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,s),s+=i.strings.length-2):i._$AI(t[s])),s++}};class Ns{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this.v}constructor(t,s,i,e){this.type=2,this._$AH=tt,this._$AN=void 0,this._$AA=t,this._$AB=s,this._$AM=i,this.options=e,this.v=(e==null?void 0:e.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const s=this._$AM;return s!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=s.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,s=this){t=je(this,t,s),es(t)?t===tt||t==null||t===""?(this._$AH!==tt&&this._$AR(),this._$AH=tt):t!==this._$AH&&t!==is&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Un(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!==tt&&es(this._$AH)?this._$AA.nextSibling.data=t:this.T(me.createTextNode(t)),this._$AH=t}$(t){var o;const{values:s,_$litType$:i}=t,e=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=rs.createElement(Wr(i.h,i.h[0]),this.options)),i);if(((o=this._$AH)==null?void 0:o._$AD)===e)this._$AH.p(s);else{const n=new Hn(e,this),a=n.u(this.options);n.p(s),this.T(a),this._$AH=n}}_$AC(t){let s=qr.get(t.strings);return s===void 0&&qr.set(t.strings,s=new rs(t)),s}k(t){wi(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let i,e=0;for(const o of t)e===s.length?s.push(i=new Ns(this.O(Es()),this.O(Es()),this,this.options)):i=s[e],i._$AI(o),e++;e<s.length&&(this._$AR(i&&i._$AB.nextSibling,e),s.length=e)}_$AR(t=this._$AA.nextSibling,s){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,s);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var s;this._$AM===void 0&&(this.v=t,(s=this._$AP)==null||s.call(this,t))}}class Ts{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,s,i,e,o){this.type=1,this._$AH=tt,this._$AN=void 0,this.element=t,this.name=s,this._$AM=e,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=tt}_$AI(t,s=this,i,e){const o=this.strings;let n=!1;if(o===void 0)t=je(this,t,s,0),n=!es(t)||t!==this._$AH&&t!==is,n&&(this._$AH=t);else{const a=t;let c,h;for(t=o[0],c=0;c<o.length-1;c++)h=je(this,a[i+c],s,c),h===is&&(h=this._$AH[c]),n||(n=!es(h)||h!==this._$AH[c]),h===tt?t=tt:t!==tt&&(t+=(h??"")+o[c+1]),this._$AH[c]=h}n&&!e&&this.j(t)}j(t){t===tt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Bn extends Ts{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===tt?void 0:t}}class qn extends Ts{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==tt)}}class Wn extends Ts{constructor(t,s,i,e,o){super(t,s,i,e,o),this.type=5}_$AI(t,s=this){if((t=je(this,t,s,0)??tt)===is)return;const i=this._$AH,e=t===tt&&i!==tt||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==tt&&(i===tt||e);e&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var s;typeof this._$AH=="function"?this._$AH.call(((s=this.options)==null?void 0:s.host)??this.element,t):this._$AH.handleEvent(t)}}class Kn{constructor(t,s,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=s,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){je(this,t)}}const xi=ts.litHtmlPolyfillSupport;xi==null||xi(rs,Ns),(ts.litHtmlVersions??(ts.litHtmlVersions=[])).push("3.2.0");/**
516
516
  * @license
517
517
  * Copyright 2017 Google LLC
518
518
  * SPDX-License-Identifier: BSD-3-Clause
519
- */const Wr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Kn=r=>(...t)=>({_$litDirective$:r,values:t});let Yn=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,s,i){this.t=t,this._$AM=s,this.i=i}_$AS(t,s){return this.update(t,s)}update(t,s){return this.render(...s)}};/**
519
+ */const Kr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Yn=r=>(...t)=>({_$litDirective$:r,values:t});let Zn=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,s,i){this.t=t,this._$AM=s,this.i=i}_$AS(t,s){return this.update(t,s)}update(t,s){return this.render(...s)}};/**
520
520
  * @license
521
521
  * Copyright 2020 Google LLC
522
522
  * SPDX-License-Identifier: BSD-3-Clause
523
- */const Zn=r=>r.strings===void 0;/**
523
+ */const Gn=r=>r.strings===void 0;/**
524
524
  * @license
525
525
  * Copyright 2017 Google LLC
526
526
  * SPDX-License-Identifier: BSD-3-Clause
527
- */const os=(r,t)=>{var i;const s=r._$AN;if(s===void 0)return!1;for(const e of s)(i=e._$AO)==null||i.call(e,t,!1),os(e,t);return!0},Ms=r=>{let t,s;do{if((t=r._$AM)===void 0)break;s=t._$AN,s.delete(r),r=t}while((s==null?void 0:s.size)===0)},Kr=r=>{for(let t;t=r._$AM;r=t){let s=t._$AN;if(s===void 0)t._$AN=s=new Set;else if(s.has(r))break;s.add(r),Xn(t)}};function Gn(r){this._$AN!==void 0?(Ms(this),this._$AM=r,Kr(this)):this._$AM=r}function Qn(r,t=!1,s=0){const i=this._$AH,e=this._$AN;if(e!==void 0&&e.size!==0)if(t)if(Array.isArray(i))for(let o=s;o<i.length;o++)os(i[o],!1),Ms(i[o]);else i!=null&&(os(i,!1),Ms(i));else os(this,r)}const Xn=r=>{r.type==Wr.CHILD&&(r._$AP??(r._$AP=Qn),r._$AQ??(r._$AQ=Gn))};class Jn extends Yn{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,s,i){super._$AT(t,s,i),Kr(this),this.isConnected=t._$AU}_$AO(t,s=!0){var i,e;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)==null||i.call(this):(e=this.disconnected)==null||e.call(this)),s&&(os(this,t),Ms(this))}setValue(t){if(Zn(this.t))this.t._$AI(t,this);else{const s=[...this.t._$AH];s[this.i]=t,this.t._$AI(s,this,0)}}disconnected(){}reconnected(){}}const ta=new WeakMap;let Yr=0;const Pi=new Map,Zr=new WeakSet,Gr=()=>new Promise(r=>requestAnimationFrame(r)),Qr=[{opacity:0}],Xr=[{opacity:0},{opacity:1}],Jr=(r,t)=>{const s=r-t;return s===0?void 0:s},to=(r,t)=>{const s=r/t;return s===1?void 0:s},Ai={left:(r,t)=>{const s=Jr(r,t);return{value:s,transform:s==null||isNaN(s)?void 0:`translateX(${s}px)`}},top:(r,t)=>{const s=Jr(r,t);return{value:s,transform:s==null||isNaN(s)?void 0:`translateY(${s}px)`}},width:(r,t)=>{let s;t===0&&(t=1,s={width:"1px"});const i=to(r,t);return{value:i,overrideFrom:s,transform:i==null||isNaN(i)?void 0:`scaleX(${i})`}},height:(r,t)=>{let s;t===0&&(t=1,s={height:"1px"});const i=to(r,t);return{value:i,overrideFrom:s,transform:i==null||isNaN(i)?void 0:`scaleY(${i})`}}},ea={duration:333,easing:"ease-in-out"},sa=["left","top","width","height","opacity","color","background"],eo=new WeakMap;class ia extends Jn{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===Wr.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){var t;(t=this.resolveFinished)==null||t.call(this),this.finished=new Promise(s=>{this.l=s})}async resolveFinished(){var t;(t=this.l)==null||t.call(this),this.l=void 0}render(t){return tt}getController(){return ta.get(this.u)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[s]){var e;const i=this.u===void 0;return i&&(this.u=(e=t.options)==null?void 0:e.host,this.u.addController(this),this.u.updateComplete.then(o=>this.t=!0),this.element=t.element,eo.set(this.element,this)),this.optionsOrCallback=s,(i||typeof s!="function")&&this.p(s),this.render(s)}p(t){t=t??{};const s=this.getController();s!==void 0&&((t={...s.defaultOptions,...t}).keyframeOptions={...s.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??(t.properties=sa),this.options=t}m(){const t={},s=this.element.getBoundingClientRect(),i=getComputedStyle(this.element);return this.options.properties.forEach(e=>{const o=s[e]??(Ai[e]?void 0:i[e]),n=Number(o);t[e]=isNaN(n)?o+"":n}),t}v(){let t,s=!0;return this.options.guard&&(t=this.options.guard(),s=((i,e)=>{if(Array.isArray(i)){if(Array.isArray(e)&&e.length===i.length&&i.every((o,n)=>o===e[n]))return!1}else if(e===i)return!1;return!0})(t,this._)),this.h=this.t&&!this.isDisabled()&&!this.isAnimating()&&s&&this.element.isConnected,this.h&&(this._=Array.isArray(t)?Array.from(t):t),this.h}hostUpdate(){typeof this.optionsOrCallback=="function"&&this.p(this.optionsOrCallback()),this.v()&&(this.A=this.m(),this.i=this.i??this.element.parentNode,this.o=this.element.nextSibling)}async hostUpdated(){if(!this.h||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await Gr;const s=this.O(),i=this.j(this.options.keyframeOptions,s),e=this.m();if(this.A!==void 0){const{from:o,to:n}=this.N(this.A,e,s);this.log("measured",[this.A,e,o,n]),t=this.calculateKeyframes(o,n)}else{const o=Pi.get(this.options.inId);if(o){Pi.delete(this.options.inId);const{from:n,to:a}=this.N(o,e,s);t=this.calculateKeyframes(n,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,Yr++,t.forEach(c=>c.zIndex=Yr)}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,i)}resetStyles(){this.P!==void 0&&(this.element.setAttribute("style",this.P??""),this.P=void 0)}commitStyles(){var t,s;this.P=this.element.getAttribute("style"),(t=this.webAnimation)==null||t.commitStyles(),(s=this.webAnimation)==null||s.cancel()}reconnected(){}async disconnected(){var s;if(!this.h||(this.options.id!==void 0&&Pi.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await Gr(),(s=this.i)==null?void 0:s.isConnected){const i=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,i),this.options.stabilizeOut){const e=this.m();this.log("stabilizing out");const o=this.A.left-e.left,n=this.A.top-e.top;getComputedStyle(this.element).position!=="static"||o===0&&n===0||(this.element.style.position="relative"),o!==0&&(this.element.style.left=o+"px"),n!==0&&(this.element.style.top=n+"px")}}const t=this.j(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){var t,s;(s=(t=this.options).onStart)==null||s.call(t,this)}didFinish(t){var s,i;t&&((i=(s=this.options).onComplete)==null||i.call(s,this)),this.A=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}O(){const t=[];for(let s=this.element.parentNode;s;s=s==null?void 0:s.parentNode){const i=eo.get(s);i&&!i.isDisabled()&&i&&t.push(i)}return t}get isHostRendered(){const t=Zr.has(this.u);return t||this.u.updateComplete.then(()=>{Zr.add(this.u)}),t}j(t,s=this.O()){const i={...ea};return s.forEach(e=>Object.assign(i,e.options.keyframeOptions)),Object.assign(i,t),i}N(t,s,i){t={...t},s={...s};const e=i.map(a=>a.animatingProperties).filter(a=>a!==void 0);let o=1,n=1;return e.length>0&&(e.forEach(a=>{a.width&&(o/=a.width),a.height&&(n/=a.height)}),t.left!==void 0&&s.left!==void 0&&(t.left=o*t.left,s.left=o*s.left),t.top!==void 0&&s.top!==void 0&&(t.top=n*t.top,s.top=n*s.top)),{from:t,to:s}}calculateKeyframes(t,s,i=!1){const e={},o={};let n=!1;const a={};for(const c in s){const h=t[c],d=s[c];if(c in Ai){const p=Ai[c];if(h===void 0||d===void 0)continue;const g=p(h,d);g.transform!==void 0&&(a[c]=g.value,n=!0,e.transform=`${e.transform??""} ${g.transform}`,g.overrideFrom!==void 0&&Object.assign(e,g.overrideFrom))}else h!==d&&h!==void 0&&d!==void 0&&(n=!0,e[c]=h,o[c]=d)}return e.transformOrigin=o.transformOrigin=i?"center center":"top left",this.animatingProperties=a,n?[e,o]:void 0}async animate(t,s=this.options.keyframeOptions){this.start(),this.frames=t;let i=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),t!==void 0)){this.log("animate",[t,s]),i=!0,this.webAnimation=this.element.animate(t,s);const e=this.getController();e==null||e.add(this);try{await this.webAnimation.finished}catch{}e==null||e.remove(this)}return this.didFinish(i),i}isAnimating(){var t,s;return((t=this.webAnimation)==null?void 0:t.playState)==="running"||((s=this.webAnimation)==null?void 0:s.pending)}log(t,s){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,s)}}const Is=Kn(ia),ra={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">
527
+ */const os=(r,t)=>{var i;const s=r._$AN;if(s===void 0)return!1;for(const e of s)(i=e._$AO)==null||i.call(e,t,!1),os(e,t);return!0},Ms=r=>{let t,s;do{if((t=r._$AM)===void 0)break;s=t._$AN,s.delete(r),r=t}while((s==null?void 0:s.size)===0)},Yr=r=>{for(let t;t=r._$AM;r=t){let s=t._$AN;if(s===void 0)t._$AN=s=new Set;else if(s.has(r))break;s.add(r),Jn(t)}};function Xn(r){this._$AN!==void 0?(Ms(this),this._$AM=r,Yr(this)):this._$AM=r}function Qn(r,t=!1,s=0){const i=this._$AH,e=this._$AN;if(e!==void 0&&e.size!==0)if(t)if(Array.isArray(i))for(let o=s;o<i.length;o++)os(i[o],!1),Ms(i[o]);else i!=null&&(os(i,!1),Ms(i));else os(this,r)}const Jn=r=>{r.type==Kr.CHILD&&(r._$AP??(r._$AP=Qn),r._$AQ??(r._$AQ=Xn))};class ta extends Zn{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,s,i){super._$AT(t,s,i),Yr(this),this.isConnected=t._$AU}_$AO(t,s=!0){var i,e;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)==null||i.call(this):(e=this.disconnected)==null||e.call(this)),s&&(os(this,t),Ms(this))}setValue(t){if(Gn(this.t))this.t._$AI(t,this);else{const s=[...this.t._$AH];s[this.i]=t,this.t._$AI(s,this,0)}}disconnected(){}reconnected(){}}const ea=new WeakMap;let Zr=0;const Pi=new Map,Gr=new WeakSet,Xr=()=>new Promise(r=>requestAnimationFrame(r)),Qr=[{opacity:0}],Jr=[{opacity:0},{opacity:1}],to=(r,t)=>{const s=r-t;return s===0?void 0:s},eo=(r,t)=>{const s=r/t;return s===1?void 0:s},Ai={left:(r,t)=>{const s=to(r,t);return{value:s,transform:s==null||isNaN(s)?void 0:`translateX(${s}px)`}},top:(r,t)=>{const s=to(r,t);return{value:s,transform:s==null||isNaN(s)?void 0:`translateY(${s}px)`}},width:(r,t)=>{let s;t===0&&(t=1,s={width:"1px"});const i=eo(r,t);return{value:i,overrideFrom:s,transform:i==null||isNaN(i)?void 0:`scaleX(${i})`}},height:(r,t)=>{let s;t===0&&(t=1,s={height:"1px"});const i=eo(r,t);return{value:i,overrideFrom:s,transform:i==null||isNaN(i)?void 0:`scaleY(${i})`}}},sa={duration:333,easing:"ease-in-out"},ia=["left","top","width","height","opacity","color","background"],so=new WeakMap;class ra extends ta{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===Kr.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){var t;(t=this.resolveFinished)==null||t.call(this),this.finished=new Promise(s=>{this.l=s})}async resolveFinished(){var t;(t=this.l)==null||t.call(this),this.l=void 0}render(t){return tt}getController(){return ea.get(this.u)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[s]){var e;const i=this.u===void 0;return i&&(this.u=(e=t.options)==null?void 0:e.host,this.u.addController(this),this.u.updateComplete.then(o=>this.t=!0),this.element=t.element,so.set(this.element,this)),this.optionsOrCallback=s,(i||typeof s!="function")&&this.p(s),this.render(s)}p(t){t=t??{};const s=this.getController();s!==void 0&&((t={...s.defaultOptions,...t}).keyframeOptions={...s.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??(t.properties=ia),this.options=t}m(){const t={},s=this.element.getBoundingClientRect(),i=getComputedStyle(this.element);return this.options.properties.forEach(e=>{const o=s[e]??(Ai[e]?void 0:i[e]),n=Number(o);t[e]=isNaN(n)?o+"":n}),t}v(){let t,s=!0;return this.options.guard&&(t=this.options.guard(),s=((i,e)=>{if(Array.isArray(i)){if(Array.isArray(e)&&e.length===i.length&&i.every((o,n)=>o===e[n]))return!1}else if(e===i)return!1;return!0})(t,this._)),this.h=this.t&&!this.isDisabled()&&!this.isAnimating()&&s&&this.element.isConnected,this.h&&(this._=Array.isArray(t)?Array.from(t):t),this.h}hostUpdate(){typeof this.optionsOrCallback=="function"&&this.p(this.optionsOrCallback()),this.v()&&(this.A=this.m(),this.i=this.i??this.element.parentNode,this.o=this.element.nextSibling)}async hostUpdated(){if(!this.h||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await Xr;const s=this.O(),i=this.j(this.options.keyframeOptions,s),e=this.m();if(this.A!==void 0){const{from:o,to:n}=this.N(this.A,e,s);this.log("measured",[this.A,e,o,n]),t=this.calculateKeyframes(o,n)}else{const o=Pi.get(this.options.inId);if(o){Pi.delete(this.options.inId);const{from:n,to:a}=this.N(o,e,s);t=this.calculateKeyframes(n,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,Zr++,t.forEach(c=>c.zIndex=Zr)}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,i)}resetStyles(){this.P!==void 0&&(this.element.setAttribute("style",this.P??""),this.P=void 0)}commitStyles(){var t,s;this.P=this.element.getAttribute("style"),(t=this.webAnimation)==null||t.commitStyles(),(s=this.webAnimation)==null||s.cancel()}reconnected(){}async disconnected(){var s;if(!this.h||(this.options.id!==void 0&&Pi.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await Xr(),(s=this.i)==null?void 0:s.isConnected){const i=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,i),this.options.stabilizeOut){const e=this.m();this.log("stabilizing out");const o=this.A.left-e.left,n=this.A.top-e.top;getComputedStyle(this.element).position!=="static"||o===0&&n===0||(this.element.style.position="relative"),o!==0&&(this.element.style.left=o+"px"),n!==0&&(this.element.style.top=n+"px")}}const t=this.j(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){var t,s;(s=(t=this.options).onStart)==null||s.call(t,this)}didFinish(t){var s,i;t&&((i=(s=this.options).onComplete)==null||i.call(s,this)),this.A=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}O(){const t=[];for(let s=this.element.parentNode;s;s=s==null?void 0:s.parentNode){const i=so.get(s);i&&!i.isDisabled()&&i&&t.push(i)}return t}get isHostRendered(){const t=Gr.has(this.u);return t||this.u.updateComplete.then(()=>{Gr.add(this.u)}),t}j(t,s=this.O()){const i={...sa};return s.forEach(e=>Object.assign(i,e.options.keyframeOptions)),Object.assign(i,t),i}N(t,s,i){t={...t},s={...s};const e=i.map(a=>a.animatingProperties).filter(a=>a!==void 0);let o=1,n=1;return e.length>0&&(e.forEach(a=>{a.width&&(o/=a.width),a.height&&(n/=a.height)}),t.left!==void 0&&s.left!==void 0&&(t.left=o*t.left,s.left=o*s.left),t.top!==void 0&&s.top!==void 0&&(t.top=n*t.top,s.top=n*s.top)),{from:t,to:s}}calculateKeyframes(t,s,i=!1){const e={},o={};let n=!1;const a={};for(const c in s){const h=t[c],d=s[c];if(c in Ai){const p=Ai[c];if(h===void 0||d===void 0)continue;const g=p(h,d);g.transform!==void 0&&(a[c]=g.value,n=!0,e.transform=`${e.transform??""} ${g.transform}`,g.overrideFrom!==void 0&&Object.assign(e,g.overrideFrom))}else h!==d&&h!==void 0&&d!==void 0&&(n=!0,e[c]=h,o[c]=d)}return e.transformOrigin=o.transformOrigin=i?"center center":"top left",this.animatingProperties=a,n?[e,o]:void 0}async animate(t,s=this.options.keyframeOptions){this.start(),this.frames=t;let i=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),t!==void 0)){this.log("animate",[t,s]),i=!0,this.webAnimation=this.element.animate(t,s);const e=this.getController();e==null||e.add(this);try{await this.webAnimation.finished}catch{}e==null||e.remove(this)}return this.didFinish(i),i}isAnimating(){var t,s;return((t=this.webAnimation)==null?void 0:t.playState)==="running"||((s=this.webAnimation)==null?void 0:s.pending)}log(t,s){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,s)}}const Is=Yn(ra),oa={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">
528
528
  <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"/>
529
529
  </svg>
530
530
  `,"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">
@@ -560,7 +560,7 @@
560
560
  <path d="M12 17.01L12.01 16.9989" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
561
561
  <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"/>
562
562
  </svg>
563
- `}},js=new Map,Fs={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 so=!1;function oa(){var r,t;so||(so=!0,Fs.custom.url=((r=document.querySelector("[customIconLibraryPath]"))==null?void 0:r.getAttribute("customIconLibraryPath"))||"",Fs.custom.defaultPrefix=((t=document.querySelector("[customIconDefaultPrefix]"))==null?void 0:t.getAttribute("customIconDefaultPrefix"))||"")}const io=sessionStorage.getItem("sonicIconsCache"),Yt=io?JSON.parse(io):{icons:{},names:[]},na=100,sr=class sr{};sr.default={get:async t=>{const s=t.library;if(!t.name)return"";const i=t.name,e=ra;if(s=="custom"&&oa(),s&&s in Fs){const o=Fs[s],n=t.prefix||o.defaultPrefix||"",a=e[s]||{};e[s]=a;const c=n+"-"+i;if(a[c])return F(a[c]);const h=(o.url||"").replace("$prefix",n).replace("$name",i);if(Yt.icons[h])return a[c]=Yt.icons[h],F(Yt.icons[h]);if(!js.has(h)){const p=new Promise(async g=>{try{const b=await fetch(h);if(!b.ok){g(`<b title="Erreur ${b.status}">😶</b>`);return}try{const v=await b.text();g(v)}catch{g(null)}}catch{Lr(),g(null)}});js.set(h,p)}const d=await js.get(h);if(js.delete(h),a[c]=d||"",Yt.icons[h]=d||"",Yt.names.length>na){const p=Yt.names.shift();delete Yt.icons[p]}return sessionStorage.setItem("sonicIconsCache",JSON.stringify(Yt)),F(d)}return F(e.core[t.name]||"")}};let Ci=sr;var aa=Object.defineProperty,la=Object.getOwnPropertyDescriptor,ns=(r,t,s,i)=>{for(var e=i>1?void 0:i?la(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&aa(t,s,e),e};const ca="sonic-icon";let ve=class extends _{constructor(){super(...arguments),this.iconText="",this.name="",this.prefix="",this.library=""}async updateIcon(){this.iconText=await Ci.default.get({name:this.name,prefix:this.prefix,library:this.library})}willUpdate(r){(r.has("name")||r.has("prefix")||r.has("library"))&&this.updateIcon(),super.willUpdate(r)}render(){return this.iconText?this.iconText:A}};ve.styles=$`
563
+ `}},js=new Map,Fs={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 io=!1;function na(){var r,t;io||(io=!0,Fs.custom.url=((r=document.querySelector("[customIconLibraryPath]"))==null?void 0:r.getAttribute("customIconLibraryPath"))||"",Fs.custom.defaultPrefix=((t=document.querySelector("[customIconDefaultPrefix]"))==null?void 0:t.getAttribute("customIconDefaultPrefix"))||"")}const ro=sessionStorage.getItem("sonicIconsCache"),Yt=ro?JSON.parse(ro):{icons:{},names:[]},aa=100,ir=class ir{};ir.default={get:async t=>{const s=t.library;if(!t.name)return"";const i=t.name,e=oa;if(s=="custom"&&na(),s&&s in Fs){const o=Fs[s],n=t.prefix||o.defaultPrefix||"",a=e[s]||{};e[s]=a;const c=n+"-"+i;if(a[c])return F(a[c]);const h=(o.url||"").replace("$prefix",n).replace("$name",i);if(Yt.icons[h])return a[c]=Yt.icons[h],F(Yt.icons[h]);if(!js.has(h)){const p=new Promise(async g=>{try{const b=await fetch(h);if(!b.ok){g(`<b title="Erreur ${b.status}">😶</b>`);return}try{const v=await b.text();g(v)}catch{g(null)}}catch{Er(),g(null)}});js.set(h,p)}const d=await js.get(h);if(js.delete(h),a[c]=d||"",Yt.icons[h]=d||"",Yt.names.length>aa){const p=Yt.names.shift();delete Yt.icons[p]}return sessionStorage.setItem("sonicIconsCache",JSON.stringify(Yt)),F(d)}return F(e.core[t.name]||"")}};let Ci=ir;var la=Object.defineProperty,ca=Object.getOwnPropertyDescriptor,ns=(r,t,s,i)=>{for(var e=i>1?void 0:i?ca(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&la(t,s,e),e};const ha="sonic-icon";let ve=class extends _{constructor(){super(...arguments),this.iconText="",this.name="",this.prefix="",this.library=""}async updateIcon(){this.iconText=await Ci.default.get({name:this.name,prefix:this.prefix,library:this.library})}willUpdate(r){(r.has("name")||r.has("prefix")||r.has("library"))&&this.updateIcon(),super.willUpdate(r)}render(){return this.iconText?this.iconText:A}};ve.styles=$`
564
564
  :host {
565
565
  line-height: 0.1em;
566
566
  width: fit-content;
@@ -609,7 +609,7 @@
609
609
  :host([size="3xl"]) svg {
610
610
  --sc-icon-size: 2.8em;
611
611
  }
612
- `,ns([T()],ve.prototype,"iconText",2),ns([l({type:String})],ve.prototype,"name",2),ns([l({type:String})],ve.prototype,"prefix",2),ns([l({type:String})],ve.prototype,"library",2),ve=ns([w(ca)],ve);const as=$`
612
+ `,ns([T()],ve.prototype,"iconText",2),ns([l({type:String})],ve.prototype,"name",2),ns([l({type:String})],ve.prototype,"prefix",2),ns([l({type:String})],ve.prototype,"library",2),ve=ns([w(ha)],ve);const as=$`
613
613
  .custom-scroll {
614
614
  overflow: auto !important;
615
615
  overflow-y: overlay !important;
@@ -631,7 +631,7 @@
631
631
  border: solid 0.15rem transparent;
632
632
  }
633
633
  }
634
- `;var ha=Object.defineProperty,da=Object.getOwnPropertyDescriptor,Et=(r,t,s,i)=>{for(var e=i>1?void 0:i?da(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ha(t,s,e),e};const pa={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty"},ua="sonic-toast-item";let $t=class extends _{constructor(){super(...arguments),this.title="",this.id="",this.text="",this.status="",this.ghost=!1,this.preserve=!1,this.dismissForever=!1,this.maxHeight="10rem",this.visible=!0}render(){if(this.dismissForever){const r=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(r)[this.id])return A}return this.visible?m`<div
634
+ `;var da=Object.defineProperty,pa=Object.getOwnPropertyDescriptor,Et=(r,t,s,i)=>{for(var e=i>1?void 0:i?pa(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&da(t,s,e),e};const ua={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty"},fa="sonic-toast-item";let $t=class extends _{constructor(){super(...arguments),this.title="",this.id="",this.text="",this.status="",this.ghost=!1,this.preserve=!1,this.dismissForever=!1,this.maxHeight="10rem",this.visible=!0}render(){if(this.dismissForever){const r=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(r)[this.id])return A}return this.visible?m`<div
635
635
  class="sonic-toast ${this.status} ${this.ghost?"ghost":""}"
636
636
  >
637
637
  <button
@@ -646,7 +646,7 @@
646
646
  style="max-height: ${this.maxHeight} ;"
647
647
  >
648
648
  ${this.status&&m`<sonic-icon
649
- name=${pa[this.status]}
649
+ name=${ua[this.status]}
650
650
  class="sonic-toast-icon"
651
651
  size="2xl"
652
652
  ></sonic-icon>`}
@@ -839,7 +839,7 @@
839
839
  opacity: 0.85;
840
840
  pointer-events: none;
841
841
  }
842
- `],Et([l({type:String})],$t.prototype,"title",2),Et([l({type:String})],$t.prototype,"id",2),Et([l({type:String})],$t.prototype,"text",2),Et([l({type:String})],$t.prototype,"status",2),Et([l({type:Boolean})],$t.prototype,"ghost",2),Et([l({type:Boolean})],$t.prototype,"preserve",2),Et([l({type:Boolean})],$t.prototype,"dismissForever",2),Et([l({type:String})],$t.prototype,"maxHeight",2),Et([T()],$t.prototype,"visible",2),$t=Et([w(ua)],$t);const fa=$`
842
+ `],Et([l({type:String})],$t.prototype,"title",2),Et([l({type:String})],$t.prototype,"id",2),Et([l({type:String})],$t.prototype,"text",2),Et([l({type:String})],$t.prototype,"status",2),Et([l({type:Boolean})],$t.prototype,"ghost",2),Et([l({type:Boolean})],$t.prototype,"preserve",2),Et([l({type:Boolean})],$t.prototype,"dismissForever",2),Et([l({type:String})],$t.prototype,"maxHeight",2),Et([T()],$t.prototype,"visible",2),$t=Et([w(fa)],$t);const ma=$`
843
843
  :host {
844
844
  /* POLICES */
845
845
  /*
@@ -910,7 +910,7 @@
910
910
  --sc-contrast-content: #fff;
911
911
  --sc-contrast: #000000;
912
912
  }
913
- `,ma=$`
913
+ `,ga=$`
914
914
  :host([theme="light"]) {
915
915
  /*Boutons*/
916
916
  --sc-primary: var(--sc-base-800);
@@ -939,7 +939,7 @@
939
939
  --sc-base-900: #0f172a;
940
940
  --sc-base-content: var(--sc-base-700);
941
941
  }
942
- `,ro=$`
942
+ `,oo=$`
943
943
  --sc-primary: var(--sc-dark-primary, var(--sc-base-700));
944
944
  --sc-info: var(--sc-dark-info, #3abff8);
945
945
  --sc-danger: var(--sc-dark-danger, #f87272);
@@ -964,17 +964,17 @@
964
964
  --sc-base-800: var(--sc-dark-base-800, #d9dce0);
965
965
  --sc-base-900: var(--sc-dark-base-900, #e5e7eb);
966
966
  --sc-base-content: var(--sc-dark-base-content, #e5e7eb);
967
- `,ga=$`
967
+ `,ba=$`
968
968
  :host([theme="dark"]) {
969
- ${ro}
969
+ ${oo}
970
970
  }
971
971
 
972
972
  @media (prefers-color-scheme: dark) {
973
973
  :host([theme="auto"]) {
974
- ${ro}
974
+ ${oo}
975
975
  }
976
976
  }
977
- `;var ba=Object.defineProperty,va=Object.getOwnPropertyDescriptor,ls=(r,t,s,i)=>{for(var e=i>1?void 0:i?va(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ba(t,s,e),e};const ya="sonic-theme";let yt=class extends _{constructor(){super(),this.background=!1,this.color=!1,this.font=!1,yt.instance=this}static getPopContainer(){return yt.instance||document.body}connectedCallback(){super.connectedCallback(),window.addEventListener("message",r=>this.receiveMessage(r),!1),window.dispatchEvent(new CustomEvent("SonicThemeReady")),this.postCSSVars()}postCSSVars(){var e;const r=document.styleSheets,t=r.length,s=[];for(let o=0;o<t;o++){const n=r[o];n.href&&(n.href.includes("googleapis")||n.href.includes("typekit.net"))&&s.push(n.href)}const i={variables:this.getCssVariables(),fonts:s};(e=st.get("sonic-theme"))==null||e.set(i),document.querySelectorAll("iframe").forEach(o=>{var n;return(n=o.contentWindow)==null?void 0:n.postMessage({type:"SonicTheme",...i},"*")})}receiveMessage(r){const t=r.data;!t.type||t.type!="GetSonicTheme"||this.postCSSVars()}getCssVariables(){const r=[],t=[...yt.styles.map(e=>e.styleSheet),...Array.from(document.styleSheets)];for(const e of t)try{if(!e)continue;const o=e.cssRules;for(const n of o){if(!("style"in n))continue;const a=n.style;for(const c of a)r.includes(c)||c.indexOf("--sc")!==0||r.push(c)}}catch{console.warn("Erreur lors de la récupération des variables CSS")}const s=window.getComputedStyle(this),i={};return r.forEach(e=>i[e]=s.getPropertyValue(e)),i}render(){return m`<slot></slot>`}};yt.styles=[ma,ga,fa,$`
977
+ `;var va=Object.defineProperty,ya=Object.getOwnPropertyDescriptor,ls=(r,t,s,i)=>{for(var e=i>1?void 0:i?ya(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&va(t,s,e),e};const _a="sonic-theme";let _t=class extends _{constructor(){super(),this.background=!1,this.color=!1,this.font=!1,_t.instance=this}static getPopContainer(){return _t.instance||document.body}connectedCallback(){super.connectedCallback(),window.addEventListener("message",r=>this.receiveMessage(r),!1),window.dispatchEvent(new CustomEvent("SonicThemeReady")),this.postCSSVars()}postCSSVars(){var e;const r=document.styleSheets,t=r.length,s=[];for(let o=0;o<t;o++){const n=r[o];n.href&&(n.href.includes("googleapis")||n.href.includes("typekit.net"))&&s.push(n.href)}const i={variables:this.getCssVariables(),fonts:s};(e=st.get("sonic-theme"))==null||e.set(i),document.querySelectorAll("iframe").forEach(o=>{var n;return(n=o.contentWindow)==null?void 0:n.postMessage({type:"SonicTheme",...i},"*")})}receiveMessage(r){const t=r.data;!t.type||t.type!="GetSonicTheme"||this.postCSSVars()}getCssVariables(){const r=[],t=[..._t.styles.map(e=>e.styleSheet),...Array.from(document.styleSheets)];for(const e of t)try{if(!e)continue;const o=e.cssRules;for(const n of o){if(!("style"in n))continue;const a=n.style;for(const c of a)r.includes(c)||c.indexOf("--sc")!==0||r.push(c)}}catch{console.warn("Erreur lors de la récupération des variables CSS")}const s=window.getComputedStyle(this),i={};return r.forEach(e=>i[e]=s.getPropertyValue(e)),i}render(){return m`<slot></slot>`}};_t.styles=[ga,ba,ma,$`
978
978
  :host([color]) {
979
979
  color: var(--sc-base-content, #000);
980
980
  }
@@ -1006,7 +1006,7 @@
1006
1006
  transition-property: scale, opacity;
1007
1007
  transition-timing-function: cubic-bezier(0.25, 0.25, 0.42, 1.225);
1008
1008
  }
1009
- `],ls([l({type:String,reflect:!0})],yt.prototype,"theme",2),ls([l({type:Boolean,reflect:!0})],yt.prototype,"background",2),ls([l({type:Boolean,reflect:!0})],yt.prototype,"color",2),ls([l({type:Boolean,reflect:!0})],yt.prototype,"font",2),yt=ls([w(ya)],yt);var _a=Object.defineProperty,wa=Object.getOwnPropertyDescriptor,oo=(r,t,s,i)=>{for(var e=i>1?void 0:i?wa(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&_a(t,s,e),e};const $a="sonic-toast";let M=class extends _{constructor(){super(...arguments),this.toasts=[]}createRenderRoot(){return this}render(){const t=window.parent!=window;let s={pointerEvents:"none",gap:"1rem",display:"flex",margin:this.toasts.length?"1rem":"0"};return t||(s={...s,margin:"0",width:"calc(100% - 2.5rem)",position:"fixed",bottom:"1.25rem",right:"1.25rem",zIndex:"10000",maxWidth:"64ch",flexDirection:"column-reverse"}),M.handleExistingToastDelegation(),this.toasts?m`<div aria-live="polite" style=${ft(s)}>
1009
+ `],ls([l({type:String,reflect:!0})],_t.prototype,"theme",2),ls([l({type:Boolean,reflect:!0})],_t.prototype,"background",2),ls([l({type:Boolean,reflect:!0})],_t.prototype,"color",2),ls([l({type:Boolean,reflect:!0})],_t.prototype,"font",2),_t=ls([w(_a)],_t);var wa=Object.defineProperty,$a=Object.getOwnPropertyDescriptor,no=(r,t,s,i)=>{for(var e=i>1?void 0:i?$a(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&wa(t,s,e),e};const xa="sonic-toast";let M=class extends _{constructor(){super(...arguments),this.toasts=[]}createRenderRoot(){return this}render(){const t=window.parent!=window;let s={pointerEvents:"none",gap:"1rem",display:"flex",margin:this.toasts.length?"1rem":"0"};return t||(s={...s,margin:"0",width:"calc(100% - 2.5rem)",position:"fixed",bottom:"1.25rem",right:"1.25rem",zIndex:"10000",maxWidth:"64ch",flexDirection:"column-reverse"}),M.handleExistingToastDelegation(),this.toasts?m`<div aria-live="polite" style=${mt(s)}>
1010
1010
  ${ks(this.toasts,i=>i.id,i=>m`
1011
1011
  <sonic-toast-item
1012
1012
  maxHeight=${t?"none":"10rem"}
@@ -1023,22 +1023,22 @@
1023
1023
  ${i.text?F(i.text):""}
1024
1024
  </sonic-toast-item>
1025
1025
  `)}
1026
- </div>`:A}static removeAll(){if(M.delegateToasts){M.handleExistingToastDelegation(),window.parent.postMessage({type:"removeAllToasts"},"*");return}const t=M.getInstance();t&&(t.toasts=t.toasts.filter(s=>s.ghost))}static getInstance(){return M.instance||(M.instance=document.createElement("sonic-toast"),yt.getPopContainer().prepend(M.instance)),M.instance}static add(t){if(M.delegateToasts){M.handleExistingToastDelegation(),window.parent.postMessage({type:"addToast",toast:t},"*");return}const s=M.getInstance(),i=t.id??new Date().valueOf(),o=new RegExp("</a>|</.*?button>|</.*?input>|</.*?textarea>|</.*?select>").test(t.text),n={id:i,text:t.text,title:t.title,status:t.status,preserve:o?!0:t.preserve,ghost:t.ghost,dismissForever:t.dismissForever};if(t.dismissForever&&t.id){const a=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(a)[t.id])return null}if(s!=null&&s.toasts.length){const a={...n};for(const c of s.toasts){const h={...c};if(a.id=h.id=0,J.shallowEqual(a,h))return null}}return s&&(s.toasts=[...s.toasts,n]),n}static handleExistingToastDelegation(){if(!this.delegateToasts)return;const t=M.getInstance();window.parent.postMessage({type:"addToasts",toasts:t.toasts},"*"),t.toasts=[]}static removeItem(t){if(M.delegateToasts){M.handleExistingToastDelegation(),window.parent.postMessage({type:"removeToast",toast:t},"*");return}const s=M.getInstance();s&&s.removeItem(t)}removeItem(t){t&&(this.toasts=this.toasts.filter(s=>(s={...s},delete s.id,!J.shallowEqual(s,t,!1))))}};M.delegateToasts=!1,oo([l({type:Array})],M.prototype,"toasts",2),M=oo([w($a)],M),typeof window<"u"&&(window[ys+"Toast"]=window[ys+"Toast"]||M);function xa(){var s;const r=i=>{i.data.type=="querySonicToastAvailability"&&i.source.postMessage({type:"sonicToastAvailable"},"*"),i.data.type=="sonicToastAvailable"&&(M.delegateToasts=!0,M.handleExistingToastDelegation()),i.data.type=="addToasts"&&(M.getInstance().toasts=[...M.getInstance().toasts,...i.data.toasts]),i.data.type=="removeAllToasts"&&M.removeAll(),i.data.type=="removeToast"&&M.removeItem(i.data.toast),i.data.type=="addToast"&&M.add(i.data.toast)},t=window.parent!=window;if(window.addEventListener("message",r,!1),t&&window.parent.postMessage({type:"querySonicToastAvailability"},"*"),!t)for(const i of document.querySelectorAll("iframe"))(s=i.contentWindow)==null||s.postMessage({type:"sonicToastAvailable"},"*")}xa();var Pa=Object.defineProperty,Aa=Object.getOwnPropertyDescriptor,cs=(r,t,s,i)=>{for(var e=i>1?void 0:i?Aa(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Pa(t,s,e),e};const Ca=new Set,Sa=new Set,Oa=r=>{for(const t of Sa)t(r)},Si=new Set;let Oi=0;ti(async()=>{Oi++;const r=Oi,t=Array.from(Si);for(;t.length>0;){if(r!=Oi)return;const s=t.splice(0,4);await Promise.all(s.map(i=>i._fetchData()))}});const Di=(r,t)=>{class s extends r{constructor(...e){super(),this.api=null,this.key="",this.isFirstLoad=!0,this.isLoading=!1,this.iObserver=null,this.isFetchEnabled=!0,this.fetchedData=null,this._endPoint="",this.noErrorsRecordings=!1,this.requestId=0,this.refetchEveryMs=0,this.dataProvider=""}get props(){return super.props}set props(e){super.props=e}set endPoint(e){this._endPoint=e,this.isConnected&&this._fetchData()}get endPoint(){return this._endPoint}async _fetchData(){if(this.requestUpdate(),!this.isFetchEnabled||(this.api=new Ne(this.getApiConfiguration()),!this.api)||(this.dispatchEvent(new CustomEvent("loading",{detail:this})),this.getAttribute("localStorage")==="enabled"&&await st.getInstance().isLocalStrorageReady,!this.isConnected))return;const e=st.getInstance().get(this.getAncestorAttributeValue("headersDataProvider")).get();this.isLoading=!0,J.isObject(this.props)&&Object.keys(this.props||{}).length>0&&this.isFirstLoad&&window.requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("load",{detail:this})),this.isFirstLoad=!1,this.isLoading=!1});let o=await this.api.get(this.endPoint||this.dataProvider||"",e);if(this.fetchedData=o,this.api.lastResult&&!this.api.lastResult.ok&&(this.noErrorsRecordings||Ca.add(this),Oa(this.api.lastResult)),!!this.isConnected){if(o)o._sonic_http_response_&&!o._sonic_http_response_.ok&&Object.keys(o).length===1&&M.add({text:"Network Error",status:"error"});else{this.isLoading=!1,this.refetchEveryMs&&this.isConnected&&(this.refetchTimeOutId=setTimeout(()=>this._fetchData(),this.refetchEveryMs));return}if(this.key){const n=o._sonic_http_response_,a=this.key.split(".");o=J.traverse(o,a,this.hasAttribute("preserveOtherKeys")),o&&J.isObject(o)&&n&&(o._sonic_http_response_=n)}this.props=o,this.dispatchEvent(new CustomEvent("load",{detail:this})),this.isFirstLoad=!1,this.isLoading=!1,this.refetchEveryMs&&this.isConnected&&(this.refetchTimeOutId=setTimeout(()=>this._fetchData(),this.refetchEveryMs))}}disconnectedCallback(){var e;super.disconnectedCallback(),Si.delete(this),(e=this.publisher)==null||e.offInvalidate(this.onInvalidate),clearTimeout(this.refetchTimeOutId),this.isFirstLoad=!1}connectedCallback(){var e;this.lazyLoad=this.lazyLoad!==void 0?this.lazyLoad:this.hasAttribute("lazyload"),Si.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(),(e=this.publisher)==null||e.onInvalidate(this.onInvalidate),this.lazyLoad?this.handleLazyLoad():this._fetchData())}handleLazyLoad(){if(!this.lazyLoad)return;const e=this.getBoundingClientRect();if(e.x<window.innerWidth&&e.right>0&&e.y<window.innerHeight&&e.right>0){this._fetchData();return}const o=parseFloat(this.getAttribute("lazyBoundsRatio")||"1"),n={root:null,rootMargin:Math.max(window.innerWidth*o,window.innerHeight*o)+"px",threshold:.9};this.iObserver=new IntersectionObserver(h=>this.onIntersection(h),n);let c=[...(this.shadowRoot?this.shadowRoot:this).children].filter(h=>h.nodeName.toLowerCase()!="style")[0];if((c==null?void 0:c.nodeName.toLocaleLowerCase())=="slot"&&(c=[...c.children].filter(h=>h.nodeName.toLowerCase()!="style")[0]),!c||c.nodeName.toLocaleLowerCase()=="template"){c=document.createElement("span");const h=c.style;h.pointerEvents="none",this.lazyLoadSpan=c,this.appendChild(c)}c?this.iObserver.observe(c):this.isFirstLoad&&this._fetchData()}onIntersection(e){var o,n;for(const a of e)if(a.isIntersecting&&this.isFirstLoad){this._fetchData(),(o=this.lazyLoadSpan)==null||o.remove(),this.lazyLoadSpan=void 0,(n=this.iObserver)==null||n.disconnect();break}}}return cs([l()],s.prototype,"noErrorsRecordings",2),cs([l()],s.prototype,"props",1),cs([l({type:String})],s.prototype,"endPoint",1),cs([l()],s.prototype,"requestId",2),cs([l({type:Number})],s.prototype,"refetchEveryMs",2),s};var Da=Object.defineProperty,ka=Object.getOwnPropertyDescriptor,ye=(r,t,s,i)=>{for(var e=i>1?void 0:i?ka(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Da(t,s,e),e};const zs=r=>{class t extends r{constructor(...i){super(),this.forceAutoFill=!1,this._type="text",this.status="default"}validateFormElement(){var o;const i=(o=this.shadowRoot)==null?void 0:o.querySelector("input");if(!i||i.checkValidity())return;const e=this.getFormPublisher();e&&(e.isFormValid=!1),i.reportValidity()}set type(i){this.hasAttribute("type")&&!this.forceAutoFill&&(i=this.getAttribute("type")),this._type=i,this.requestUpdate()}get type(){return this._type}get description(){return this._description}set description(i){this.hasAttribute("description")&&!this.forceAutoFill&&(i=this.getAttribute("description")),this._description=i,this.requestUpdate()}get label(){return this._label}set label(i){this.hasAttribute("label")&&!this.forceAutoFill&&(i=this.getAttribute("label")),this._label=i,this.requestUpdate()}}return ye([l()],t.prototype,"forceAutoFill",2),ye([l({type:String})],t.prototype,"type",1),ye([l()],t.prototype,"description",1),ye([l()],t.prototype,"label",1),ye([l({type:String,reflect:!0})],t.prototype,"status",2),ye([l({type:Number})],t.prototype,"tabindex",2),ye([l({type:String})],t.prototype,"autocomplete",2),t},no=Di,La=_i,ao=Me,lo=zs,Zt=Q,ki=Xe;window["concorde-mixins"]=window["concorde-mixins"]||{},window["concorde-mixins"]={Fetcher:no,FormCheckable:La,FormElement:ao,FormInput:lo,Subscriber:Zt,TemplatesContainer:ki};/**
1026
+ </div>`:A}static removeAll(){if(M.delegateToasts){M.handleExistingToastDelegation(),window.parent.postMessage({type:"removeAllToasts"},"*");return}const t=M.getInstance();t&&(t.toasts=t.toasts.filter(s=>s.ghost))}static getInstance(){return M.instance||(M.instance=document.createElement("sonic-toast"),_t.getPopContainer().prepend(M.instance)),M.instance}static add(t){if(M.delegateToasts){M.handleExistingToastDelegation(),window.parent.postMessage({type:"addToast",toast:t},"*");return}const s=M.getInstance(),i=t.id??new Date().valueOf(),o=new RegExp("</a>|</.*?button>|</.*?input>|</.*?textarea>|</.*?select>").test(t.text),n={id:i,text:t.text,title:t.title,status:t.status,preserve:o?!0:t.preserve,ghost:t.ghost,dismissForever:t.dismissForever};if(t.dismissForever&&t.id){const a=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(a)[t.id])return null}if(s!=null&&s.toasts.length){const a={...n};for(const c of s.toasts){const h={...c};if(a.id=h.id=0,J.shallowEqual(a,h))return null}}return s&&(s.toasts=[...s.toasts,n]),n}static handleExistingToastDelegation(){if(!this.delegateToasts)return;const t=M.getInstance();window.parent.postMessage({type:"addToasts",toasts:t.toasts},"*"),t.toasts=[]}static removeItem(t){if(M.delegateToasts){M.handleExistingToastDelegation(),window.parent.postMessage({type:"removeToast",toast:t},"*");return}const s=M.getInstance();s&&s.removeItem(t)}removeItem(t){t&&(this.toasts=this.toasts.filter(s=>(s={...s},delete s.id,!J.shallowEqual(s,t,!1))))}};M.delegateToasts=!1,no([l({type:Array})],M.prototype,"toasts",2),M=no([w(xa)],M),typeof window<"u"&&(window[ys+"Toast"]=window[ys+"Toast"]||M);function Pa(){var s;const r=i=>{i.data.type=="querySonicToastAvailability"&&i.source.postMessage({type:"sonicToastAvailable"},"*"),i.data.type=="sonicToastAvailable"&&(M.delegateToasts=!0,M.handleExistingToastDelegation()),i.data.type=="addToasts"&&(M.getInstance().toasts=[...M.getInstance().toasts,...i.data.toasts]),i.data.type=="removeAllToasts"&&M.removeAll(),i.data.type=="removeToast"&&M.removeItem(i.data.toast),i.data.type=="addToast"&&M.add(i.data.toast)},t=window.parent!=window;if(window.addEventListener("message",r,!1),t&&window.parent.postMessage({type:"querySonicToastAvailability"},"*"),!t)for(const i of document.querySelectorAll("iframe"))(s=i.contentWindow)==null||s.postMessage({type:"sonicToastAvailable"},"*")}Pa();var Aa=Object.defineProperty,Ca=Object.getOwnPropertyDescriptor,cs=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ca(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Aa(t,s,e),e};const Sa=new Set,Oa=new Set,Da=r=>{for(const t of Oa)t(r)},Si=new Set;let Oi=0;ti(async()=>{Oi++;const r=Oi,t=Array.from(Si);for(;t.length>0;){if(r!=Oi)return;const s=t.splice(0,4);await Promise.all(s.map(i=>i._fetchData()))}});const Di=(r,t)=>{class s extends r{constructor(...e){super(),this.api=null,this.key="",this.isFirstLoad=!0,this.isLoading=!1,this.iObserver=null,this.isFetchEnabled=!0,this.fetchedData=null,this._endPoint="",this.noErrorsRecordings=!1,this.requestId=0,this.refetchEveryMs=0,this.dataProvider=""}get props(){return super.props}set props(e){super.props=e}set endPoint(e){this._endPoint=e,this.isConnected&&this._fetchData()}get endPoint(){return this._endPoint}async _fetchData(){if(this.requestUpdate(),!this.isFetchEnabled||(this.api=new Ne(this.getApiConfiguration()),!this.api)||(this.dispatchEvent(new CustomEvent("loading",{detail:this})),this.getAttribute("localStorage")==="enabled"&&await st.getInstance().isLocalStrorageReady,!this.isConnected))return;const e=st.getInstance().get(this.getAncestorAttributeValue("headersDataProvider")).get();this.isLoading=!0,J.isObject(this.props)&&Object.keys(this.props||{}).length>0&&this.isFirstLoad&&window.requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("load",{detail:this})),this.isFirstLoad=!1,this.isLoading=!1});let o=await this.api.get(this.endPoint||this.dataProvider||"",e);if(this.fetchedData=o,this.api.lastResult&&!this.api.lastResult.ok&&(this.noErrorsRecordings||Sa.add(this),Da(this.api.lastResult)),!!this.isConnected){if(o)o._sonic_http_response_&&!o._sonic_http_response_.ok&&Object.keys(o).length===1&&M.add({text:"Network Error",status:"error"});else{this.isLoading=!1,this.refetchEveryMs&&this.isConnected&&(this.refetchTimeOutId=setTimeout(()=>this._fetchData(),this.refetchEveryMs));return}if(this.key){const n=o._sonic_http_response_,a=this.key.split(".");o=J.traverse(o,a,this.hasAttribute("preserveOtherKeys")),o&&J.isObject(o)&&n&&(o._sonic_http_response_=n)}this.props=o,this.dispatchEvent(new CustomEvent("load",{detail:this})),this.isFirstLoad=!1,this.isLoading=!1,this.refetchEveryMs&&this.isConnected&&(this.refetchTimeOutId=setTimeout(()=>this._fetchData(),this.refetchEveryMs))}}disconnectedCallback(){var e;super.disconnectedCallback(),Si.delete(this),(e=this.publisher)==null||e.offInvalidate(this.onInvalidate),clearTimeout(this.refetchTimeOutId),this.isFirstLoad=!1}connectedCallback(){var e;this.lazyLoad=this.lazyLoad!==void 0?this.lazyLoad:this.hasAttribute("lazyload"),Si.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(),(e=this.publisher)==null||e.onInvalidate(this.onInvalidate),this.lazyLoad?this.handleLazyLoad():this._fetchData())}handleLazyLoad(){if(!this.lazyLoad)return;const e=this.getBoundingClientRect();if(e.x<window.innerWidth&&e.right>0&&e.y<window.innerHeight&&e.right>0){this._fetchData();return}const o=parseFloat(this.getAttribute("lazyBoundsRatio")||"1"),n={root:null,rootMargin:Math.max(window.innerWidth*o,window.innerHeight*o)+"px",threshold:.9};this.iObserver=new IntersectionObserver(h=>this.onIntersection(h),n);let c=[...(this.shadowRoot?this.shadowRoot:this).children].filter(h=>h.nodeName.toLowerCase()!="style")[0];if((c==null?void 0:c.nodeName.toLocaleLowerCase())=="slot"&&(c=[...c.children].filter(h=>h.nodeName.toLowerCase()!="style")[0]),!c||c.nodeName.toLocaleLowerCase()=="template"){c=document.createElement("span");const h=c.style;h.pointerEvents="none",this.lazyLoadSpan=c,this.appendChild(c)}c?this.iObserver.observe(c):this.isFirstLoad&&this._fetchData()}onIntersection(e){var o,n;for(const a of e)if(a.isIntersecting&&this.isFirstLoad){this._fetchData(),(o=this.lazyLoadSpan)==null||o.remove(),this.lazyLoadSpan=void 0,(n=this.iObserver)==null||n.disconnect();break}}}return cs([l()],s.prototype,"noErrorsRecordings",2),cs([l()],s.prototype,"props",1),cs([l({type:String})],s.prototype,"endPoint",1),cs([l()],s.prototype,"requestId",2),cs([l({type:Number})],s.prototype,"refetchEveryMs",2),s};var ka=Object.defineProperty,La=Object.getOwnPropertyDescriptor,ye=(r,t,s,i)=>{for(var e=i>1?void 0:i?La(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ka(t,s,e),e};const zs=r=>{class t extends r{constructor(...i){super(),this.forceAutoFill=!1,this._type="text",this.status="default"}validateFormElement(){var o;const i=(o=this.shadowRoot)==null?void 0:o.querySelector("input");if(!i||i.checkValidity())return;const e=this.getFormPublisher();e&&(e.isFormValid=!1),i.reportValidity()}set type(i){this.hasAttribute("type")&&!this.forceAutoFill&&(i=this.getAttribute("type")),this._type=i,this.requestUpdate()}get type(){return this._type}get description(){return this._description}set description(i){this.hasAttribute("description")&&!this.forceAutoFill&&(i=this.getAttribute("description")),this._description=i,this.requestUpdate()}get label(){return this._label}set label(i){this.hasAttribute("label")&&!this.forceAutoFill&&(i=this.getAttribute("label")),this._label=i,this.requestUpdate()}}return ye([l()],t.prototype,"forceAutoFill",2),ye([l({type:String})],t.prototype,"type",1),ye([l()],t.prototype,"description",1),ye([l()],t.prototype,"label",1),ye([l({type:String,reflect:!0})],t.prototype,"status",2),ye([l({type:Number})],t.prototype,"tabindex",2),ye([l({type:String})],t.prototype,"autocomplete",2),t},ao=Di,Ea=_i,lo=Me,co=zs,Zt=X,ki=Qe;window["concorde-mixins"]=window["concorde-mixins"]||{},window["concorde-mixins"]={Fetcher:ao,FormCheckable:Ea,FormElement:lo,FormInput:co,Subscriber:Zt,TemplatesContainer:ki};/**
1027
1027
  * @license
1028
1028
  * Copyright 2020 Google LLC
1029
1029
  * SPDX-License-Identifier: BSD-3-Clause
1030
- */const Nt=pe(class extends Ee{constructor(r){if(super(r),r.type!==Le.CHILD)throw Error("templateContent can only be used in child bindings")}render(r){return this.vt===r?vt:(this.vt=r,document.importNode(r.content,!0))}});var Ea=Object.defineProperty,Na=Object.getOwnPropertyDescriptor,co=(r,t,s,i)=>{for(var e=i>1?void 0:i?Na(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ea(t,s,e),e};const Ta="sonic-fetch";let Rs=class extends Di(Q(ki(_))){renderLoader(){if(!(this.isLoading&&this.loader!==void 0))return A;const r=this.loader===!0||this.loader===""?"fixed":this.loader;return m`<sonic-loader mode=${r}></sonic-loader>`}renderSkeleton(){const r=this.templateParts.skeleton;return this.isLoading&&r?Nt(r):A}render(){return m`
1030
+ */const Nt=pe(class extends Ee{constructor(r){if(super(r),r.type!==Le.CHILD)throw Error("templateContent can only be used in child bindings")}render(r){return this.vt===r?yt:(this.vt=r,document.importNode(r.content,!0))}});var Na=Object.defineProperty,Ta=Object.getOwnPropertyDescriptor,ho=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ta(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Na(t,s,e),e};const Ma="sonic-fetch";let Rs=class extends Di(X(ki(_))){renderLoader(){if(!(this.isLoading&&this.loader!==void 0))return A;const r=this.loader===!0||this.loader===""?"fixed":this.loader;return m`<sonic-loader mode=${r}></sonic-loader>`}renderSkeleton(){const r=this.templateParts.skeleton;return this.isLoading&&r?Nt(r):A}render(){return m`
1031
1031
  ${this.renderSkeleton()} ${this.renderLoader()}
1032
1032
  ${this.isLoading?A:m`<slot></slot>`}
1033
1033
  `}};Rs.styles=[$`
1034
1034
  :host {
1035
1035
  display: contents;
1036
1036
  }
1037
- `],co([l()],Rs.prototype,"loader",2),Rs=co([w(Ta)],Rs);var Ma=Object.defineProperty,Ia=Object.getOwnPropertyDescriptor,ho=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ia(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ma(t,s,e),e};const ja="sonic-if";let Us=class extends _{constructor(){super(...arguments),this.condition=!1}render(){return this.condition?m` <slot></slot> `:A}};Us.styles=$`
1037
+ `],ho([l()],Rs.prototype,"loader",2),Rs=ho([w(Ma)],Rs);var Ia=Object.defineProperty,ja=Object.getOwnPropertyDescriptor,po=(r,t,s,i)=>{for(var e=i>1?void 0:i?ja(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ia(t,s,e),e};const Fa="sonic-if";let Us=class extends _{constructor(){super(...arguments),this.condition=!1}render(){return this.condition?m` <slot></slot> `:A}};Us.styles=$`
1038
1038
  :host {
1039
1039
  display: contents;
1040
1040
  }
1041
- `,ho([l({type:Boolean})],Us.prototype,"condition",2),Us=ho([w(ja)],Us);const Fa=$`
1041
+ `,po([l({type:Boolean})],Us.prototype,"condition",2),Us=po([w(Fa)],Us);const za=$`
1042
1042
  :host([align="left"]) .sonic-loader--inline {
1043
1043
  margin-left: 0;
1044
1044
  }
@@ -1105,7 +1105,7 @@
1105
1105
  transform: translate(24px, 0);
1106
1106
  }
1107
1107
  }
1108
- `,za=$`
1108
+ `,Ra=$`
1109
1109
  @keyframes sonic-loader--fixed {
1110
1110
  0% {
1111
1111
  transform: scale(0);
@@ -1158,14 +1158,14 @@
1158
1158
  height: 5rem;
1159
1159
  animation: sonic-loader--fixed 1s 0s linear infinite;
1160
1160
  }
1161
- `;var Ra=Object.defineProperty,Ua=Object.getOwnPropertyDescriptor,Li=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ua(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ra(t,s,e),e};const Va="sonic-loader";let nt=class extends _{constructor(){super(...arguments),this.mode="fixed",this.noDelay=!1}static show(r){nt.loader||(nt.loader=document.createElement("sonic-loader"));const t=nt.loader;r||(r={}),r.mode&&t.setAttribute("mode",r.mode),r.noDelay&&t.setAttribute("noDelay",""),r.container||(r.container=yt.getPopContainer(),r.mode="fixed"),r.container.appendChild(t),nt.callCounter++}static hide(){nt.callCounter--,!(nt.callCounter>0)&&nt.loader&&nt.loader.remove()}render(){return m`<div
1161
+ `;var Ua=Object.defineProperty,Va=Object.getOwnPropertyDescriptor,Li=(r,t,s,i)=>{for(var e=i>1?void 0:i?Va(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ua(t,s,e),e};const Ha="sonic-loader";let nt=class extends _{constructor(){super(...arguments),this.mode="fixed",this.noDelay=!1}static show(r){nt.loader||(nt.loader=document.createElement("sonic-loader"));const t=nt.loader;r||(r={}),r.mode&&t.setAttribute("mode",r.mode),r.noDelay&&t.setAttribute("noDelay",""),r.container||(r.container=_t.getPopContainer(),r.mode="fixed"),r.container.appendChild(t),nt.callCounter++}static hide(){nt.callCounter--,!(nt.callCounter>0)&&nt.loader&&nt.loader.remove()}render(){return m`<div
1162
1162
  class="sonic-loader sonic-loader--${this.mode} ${this.noDelay?"sonic-loader--nodelay":""} "
1163
1163
  >
1164
1164
  <div></div>
1165
1165
  <div></div>
1166
1166
  <div></div>
1167
1167
  <div></div>
1168
- </div>`}};nt.styles=[Fa,za,$`
1168
+ </div>`}};nt.styles=[za,Ra,$`
1169
1169
  :host {
1170
1170
  --sc-_loader-bg: var(--sc-primary, currentColor);
1171
1171
  pointer-events: none;
@@ -1193,7 +1193,7 @@
1193
1193
  opacity: 1;
1194
1194
  }
1195
1195
  }
1196
- `],nt.callCounter=0,Li([l({type:String})],nt.prototype,"mode",2),Li([l({type:Boolean})],nt.prototype,"noDelay",2),nt=Li([w(Va)],nt);var Ha=Object.defineProperty,Ba=Object.getOwnPropertyDescriptor,qa=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ba(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ha(t,s,e),e};const Wa="sonic-subscriber";let po=class extends Q(_){constructor(){super(...arguments),this.noAutofill=!0}connectedCallback(){this.noShadowDom="",super.connectedCallback()}updated(r){super.updated(r),this.children.length==0?this.style.display="none":this.style.display="contents"}render(){return m`<slot></slot> `}};po=qa([w(Wa)],po);var Ka=Object.defineProperty,Ya=Object.getOwnPropertyDescriptor,_e=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ya(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ka(t,s,e),e};const Za="sonic-list";let Gt=class extends Di(Q(Xe(_))){constructor(){super(...arguments),this.templateKey="template",this.idKey="id",this.limit=Number.POSITIVE_INFINITY,this.offset=0}connectedCallback(){this.noShadowDom="",this.defferedDebug=this.hasAttribute("debug")||null,this.isFetchEnabled=this.hasAttribute("fetch"),this.isFetchEnabled&&(this.isLoading=!0),super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}renderLoader(){if(!(this.isLoading&&this.loader!==void 0)||this.templateParts.skeleton)return A;const t=this.loader===!0||this.loader===""?"fixed":this.loader;return m`<sonic-loader mode=${t}></sonic-loader>`}renderSkeleton(){const r=this.templateParts.skeleton;return this.isLoading&&r?Nt(r):A}renderLoadingState(){return m`${this.renderSkeleton()} ${this.renderLoader()}`}renderNoResultState(){return m` <div
1196
+ `],nt.callCounter=0,Li([l({type:String})],nt.prototype,"mode",2),Li([l({type:Boolean})],nt.prototype,"noDelay",2),nt=Li([w(Ha)],nt);var Ba=Object.defineProperty,qa=Object.getOwnPropertyDescriptor,Wa=(r,t,s,i)=>{for(var e=i>1?void 0:i?qa(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ba(t,s,e),e};const Ka="sonic-subscriber";let uo=class extends X(_){constructor(){super(...arguments),this.noAutofill=!0}connectedCallback(){this.noShadowDom="",super.connectedCallback()}updated(r){super.updated(r),this.children.length==0?this.style.display="none":this.style.display="contents"}render(){return m`<slot></slot> `}};uo=Wa([w(Ka)],uo);var Ya=Object.defineProperty,Za=Object.getOwnPropertyDescriptor,_e=(r,t,s,i)=>{for(var e=i>1?void 0:i?Za(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ya(t,s,e),e};const Ga="sonic-list";let Gt=class extends Di(X(Qe(_))){constructor(){super(...arguments),this.templateKey="template",this.idKey="id",this.limit=Number.POSITIVE_INFINITY,this.offset=0}connectedCallback(){this.noShadowDom="",this.defferedDebug=this.hasAttribute("debug")||null,this.isFetchEnabled=this.hasAttribute("fetch"),this.isFetchEnabled&&(this.isLoading=!0),super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}renderLoader(){if(!(this.isLoading&&this.loader!==void 0)||this.templateParts.skeleton)return A;const t=this.loader===!0||this.loader===""?"fixed":this.loader;return m`<sonic-loader mode=${t}></sonic-loader>`}renderSkeleton(){const r=this.templateParts.skeleton;return this.isLoading&&r?Nt(r):A}renderLoadingState(){return m`${this.renderSkeleton()} ${this.renderLoader()}`}renderNoResultState(){return m` <div
1197
1197
  style="color: var(--sc-base-400);
1198
1198
  font-size: 1.5em;
1199
1199
  margin: 4rem 0;
@@ -1216,12 +1216,12 @@
1216
1216
  </sonic-subscriber>
1217
1217
  ${a&&!v?Nt(a):A}
1218
1218
  `})}
1219
- `}};_e([l({type:Object})],Gt.prototype,"itemPropertyMap",2),_e([l({type:String})],Gt.prototype,"templateKey",2),_e([l({type:String})],Gt.prototype,"idKey",2),_e([l()],Gt.prototype,"loader",2),_e([l()],Gt.prototype,"limit",2),_e([l()],Gt.prototype,"offset",2),Gt=_e([w(Za)],Gt);/**
1219
+ `}};_e([l({type:Object})],Gt.prototype,"itemPropertyMap",2),_e([l({type:String})],Gt.prototype,"templateKey",2),_e([l({type:String})],Gt.prototype,"idKey",2),_e([l()],Gt.prototype,"loader",2),_e([l()],Gt.prototype,"limit",2),_e([l()],Gt.prototype,"offset",2),Gt=_e([w(Ga)],Gt);/**
1220
1220
  * @license
1221
1221
  * Copyright 2021 Google LLC
1222
1222
  * SPDX-License-Identifier: BSD-3-Clause
1223
- */function*uo(r,t){if(r!==void 0){let s=0;for(const i of r)yield t(i,s++)}}var Ga=Object.defineProperty,Qa=Object.getOwnPropertyDescriptor,mt=(r,t,s,i)=>{for(var e=i>1?void 0:i?Qa(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ga(t,s,e),e};const Xa="sonic-queue";let it=class extends Q(_){constructor(){super(...arguments),this.templates=null,this.lastRequestTime=0,this.key="",this.itemPropertyMap=null,this.cache="default",this.targetRequestDuration=500,this.limit=5,this.lazyBoundsRatio=1,this.offset=0,this.resultCount=0,this.noLazyload=!1,this.loader="inline",this.filteredFields="",this.instanceId=0,this.localStorage="disabled",this.filterPublisher=null,this.filterTimeoutMs=400,this.searchHash="",this.requestId=0,this.isFirstRequest=!0,this.updateFilteredContent=()=>{var n;const t=this.dataProviderExpression.split("?");t.shift();const s=new URLSearchParams(t.join("?")),i=(n=this.filterPublisher)==null?void 0:n.get(),e=this.filteredFields.split(" ");for(const a in i){let c=i[a];Array.isArray(c)&&(c=c.filter(h=>h!==null)),!(this.filteredFields&&!e.includes(a)||c==null||c.toString()==="")&&s.set(a,i[a].toString())}const o=s.toString();if(!(o==this.searchHash&&!this.isFirstRequest)){this.searchHash=o;for(const a of this.listDataProviders)N.delete(a);this.listDataProviders=[],clearTimeout(this.filterTimeoutId),this.filterTimeoutId=setTimeout(async()=>{this.storeScrollPosition();const a=this.resultCount;this.props=null,this.requestId++,this.resultCount=a,await N.getInstance().isLocalStrorageReady,window.requestAnimationFrame(()=>this.next())},this.isFirstRequest?0:this.filterTimeoutMs),this.isFirstRequest=!1}},this.dataProviderExpression="",this.idKey="id",this.listDataProviders=[],this.nextHadEvent=!1,this.storedScrollY=0,this.storedScrollX=0}disconnectedCallback(){var r;for(const t of this.listDataProviders)N.delete(t),this.listDataProviders=[];(r=this.filterPublisher)==null||r.offInternalMutation(this.updateFilteredContent),this.props=null,this.limit=5,this.offset=0,this.resultCount=0,this.searchHash="",this.requestId=0,this.isFirstRequest=!0,this.nextHadEvent=!1,this.publisher.set({}),super.disconnectedCallback()}async connectedCallback(){this.instanceId=it.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=fe.getAncestorAttributeValue(this.parentElement,"dataProvider")||""),this.storeScrollPosition(),super.connectedCallback(),this.publisher.set({}),this.key=this.getAttribute("key"),await N.getInstance().isLocalStrorageReady,this.templates||(this.templates=Array.from(this.querySelectorAll("template"))),this.lastRequestTime=new Date().getTime(),this.configFilter()}configFilter(){var t;const r=this.getAncestorAttributeValue("dataFilterProvider");if(!r){this.next();return}this.filterPublisher=N.getInstance().get(r),(t=this.filterPublisher)==null||t.onInternalMutation(this.updateFilteredContent)}storeScrollPosition(){this.storedScrollX=window.scrollX,this.storedScrollY=window.scrollY}updated(r){(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(r)}resetDuration(){this.lastRequestTime=new Date().getTime()}next(r){var p,g,b;let t=this.offset;const i=new Date().getTime()-this.lastRequestTime;if(!this.nextHadEvent&&r&&(this.publisher.resultCount=0,this.resultCount=0),this.nextHadEvent=!!r,r){if(this.publisher.lastFetchedData=r.detail.fetchedData,r.detail.requestId<this.requestId)return;if(this.resultCount+=((p=r.detail.props)==null?void 0:p.length)||0,!r.detail.isFirstLoad||!((g=r.detail.props)!=null&&g.length)||this.dataProviderExpression.indexOf("$offset")==-1){this.publisher.resultCount=this.resultCount;return}}if(Array.isArray(this.props)){const v=this.props,P=v[v.length-1];t=parseInt(P.offset.toString())+parseInt(P.limit.toString())}else{const v=[];v.resultCount=this.resultCount,v.lastFetchedData=(r==null?void 0:r.detail.fetchedData)||{},this.props=v}i>0&&r&&!this.localStorage&&(this.limit=Math.round(this.limit/i*this.targetRequestDuration)),this.limit<1&&(this.limit=1),this.limit>15&&(this.limit=15);let e=this.dataProviderExpression.replace("$offset",t+"").replace("$limit",this.limit+"");const o=e.split("?");let n=o.shift();const a=new URLSearchParams(o.join("?")),c=(b=this.filterPublisher)==null?void 0:b.get(),h=this.filteredFields.split(" ");for(const v in c)this.filteredFields&&h.includes(v)||c[v]==null||c[v]==""||a.set(v,c[v]);this.searchHash||(this.searchHash=a.toString()),n=n+"?"+a.toString(),e=e+"_item_from_queue_"+this.instanceId,this.listDataProviders.push(e);const d=[...this.props,{id:a.toString()+"/"+this.props.length,dataProvider:e,endPoint:n,offset:t,limit:this.limit}];d.resultCount=this.resultCount,d.lastFetchedData=(r==null?void 0:r.detail.fetchedData)||{},this.props=d,this.lastRequestTime=new Date().getTime()}render(){if(!Array.isArray(this.props))return A;this.storeScrollPosition();let r=!this.noLazyload;return this.props.length==1&&(r=!1),this.style.display="block",m`
1224
- ${uo(this.props,(t,s)=>{var e;const i=s==0?this.templates:(e=this.templates)==null?void 0:e.filter(o=>o.getAttribute("data-value")!="no-item");return m`
1223
+ */function*fo(r,t){if(r!==void 0){let s=0;for(const i of r)yield t(i,s++)}}var Xa=Object.defineProperty,Qa=Object.getOwnPropertyDescriptor,gt=(r,t,s,i)=>{for(var e=i>1?void 0:i?Qa(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Xa(t,s,e),e};const Ja="sonic-queue";let it=class extends X(_){constructor(){super(...arguments),this.templates=null,this.lastRequestTime=0,this.key="",this.itemPropertyMap=null,this.cache="default",this.targetRequestDuration=500,this.limit=5,this.lazyBoundsRatio=1,this.offset=0,this.resultCount=0,this.noLazyload=!1,this.loader="inline",this.filteredFields="",this.instanceId=0,this.localStorage="disabled",this.filterPublisher=null,this.filterTimeoutMs=400,this.searchHash="",this.requestId=0,this.isFirstRequest=!0,this.updateFilteredContent=()=>{var n;const t=this.dataProviderExpression.split("?");t.shift();const s=new URLSearchParams(t.join("?")),i=(n=this.filterPublisher)==null?void 0:n.get(),e=this.filteredFields.split(" ");for(const a in i){let c=i[a];Array.isArray(c)&&(c=c.filter(h=>h!==null)),!(this.filteredFields&&!e.includes(a)||c==null||c.toString()==="")&&s.set(a,i[a].toString())}const o=s.toString();if(!(o==this.searchHash&&!this.isFirstRequest)){this.searchHash=o;for(const a of this.listDataProviders)N.delete(a);this.listDataProviders=[],clearTimeout(this.filterTimeoutId),this.filterTimeoutId=setTimeout(async()=>{this.storeScrollPosition();const a=this.resultCount;this.props=null,this.requestId++,this.resultCount=a,await N.getInstance().isLocalStrorageReady,window.requestAnimationFrame(()=>this.next())},this.isFirstRequest?0:this.filterTimeoutMs),this.isFirstRequest=!1}},this.dataProviderExpression="",this.idKey="id",this.listDataProviders=[],this.nextHadEvent=!1,this.storedScrollY=0,this.storedScrollX=0}disconnectedCallback(){var r;for(const t of this.listDataProviders)N.delete(t),this.listDataProviders=[];(r=this.filterPublisher)==null||r.offInternalMutation(this.updateFilteredContent),this.props=null,this.limit=5,this.offset=0,this.resultCount=0,this.searchHash="",this.requestId=0,this.isFirstRequest=!0,this.nextHadEvent=!1,this.publisher.set({}),super.disconnectedCallback()}async connectedCallback(){this.instanceId=it.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=fe.getAncestorAttributeValue(this.parentElement,"dataProvider")||""),this.storeScrollPosition(),super.connectedCallback(),this.publisher.set({}),this.key=this.getAttribute("key"),await N.getInstance().isLocalStrorageReady,this.templates||(this.templates=Array.from(this.querySelectorAll("template"))),this.lastRequestTime=new Date().getTime(),this.configFilter()}configFilter(){var t;const r=this.getAncestorAttributeValue("dataFilterProvider");if(!r){this.next();return}this.filterPublisher=N.getInstance().get(r),(t=this.filterPublisher)==null||t.onInternalMutation(this.updateFilteredContent)}storeScrollPosition(){this.storedScrollX=window.scrollX,this.storedScrollY=window.scrollY}updated(r){(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(r)}resetDuration(){this.lastRequestTime=new Date().getTime()}next(r){var p,g,b;let t=this.offset;const i=new Date().getTime()-this.lastRequestTime;if(!this.nextHadEvent&&r&&(this.publisher.resultCount=0,this.resultCount=0),this.nextHadEvent=!!r,r){if(this.publisher.lastFetchedData=r.detail.fetchedData,r.detail.requestId<this.requestId)return;if(this.resultCount+=((p=r.detail.props)==null?void 0:p.length)||0,!r.detail.isFirstLoad||!((g=r.detail.props)!=null&&g.length)||this.dataProviderExpression.indexOf("$offset")==-1){this.publisher.resultCount=this.resultCount;return}}if(Array.isArray(this.props)){const v=this.props,P=v[v.length-1];t=parseInt(P.offset.toString())+parseInt(P.limit.toString())}else{const v=[];v.resultCount=this.resultCount,v.lastFetchedData=(r==null?void 0:r.detail.fetchedData)||{},this.props=v}i>0&&r&&!this.localStorage&&(this.limit=Math.round(this.limit/i*this.targetRequestDuration)),this.limit<1&&(this.limit=1),this.limit>15&&(this.limit=15);let e=this.dataProviderExpression.replace("$offset",t+"").replace("$limit",this.limit+"");const o=e.split("?");let n=o.shift();const a=new URLSearchParams(o.join("?")),c=(b=this.filterPublisher)==null?void 0:b.get(),h=this.filteredFields.split(" ");for(const v in c)this.filteredFields&&h.includes(v)||c[v]==null||c[v]==""||a.set(v,c[v]);this.searchHash||(this.searchHash=a.toString()),n=n+"?"+a.toString(),e=e+"_item_from_queue_"+this.instanceId,this.listDataProviders.push(e);const d=[...this.props,{id:a.toString()+"/"+this.props.length,dataProvider:e,endPoint:n,offset:t,limit:this.limit}];d.resultCount=this.resultCount,d.lastFetchedData=(r==null?void 0:r.detail.fetchedData)||{},this.props=d,this.lastRequestTime=new Date().getTime()}render(){if(!Array.isArray(this.props))return A;this.storeScrollPosition();let r=!this.noLazyload;return this.props.length==1&&(r=!1),this.style.display="block",m`
1224
+ ${fo(this.props,(t,s)=>{var e;const i=s==0?this.templates:(e=this.templates)==null?void 0:e.filter(o=>o.getAttribute("data-value")!="no-item");return m`
1225
1225
  <sonic-list
1226
1226
  fetch
1227
1227
  loader="${this.loader}"
@@ -1243,28 +1243,28 @@
1243
1243
  >
1244
1244
  </sonic-list>
1245
1245
  `})}
1246
- `}};it.instanceCounter=0,mt([l({type:Array})],it.prototype,"templates",2),mt([l({type:Object})],it.prototype,"itemPropertyMap",2),mt([l()],it.prototype,"cache",2),mt([l()],it.prototype,"targetRequestDuration",2),mt([l()],it.prototype,"limit",2),mt([l()],it.prototype,"lazyBoundsRatio",2),mt([l()],it.prototype,"offset",2),mt([l()],it.prototype,"resultCount",2),mt([l({type:Boolean})],it.prototype,"noLazyload",2),mt([l({type:String})],it.prototype,"loader",2),mt([l()],it.prototype,"filteredFields",2),mt([l({type:String})],it.prototype,"dataProviderExpression",2),mt([l({type:String})],it.prototype,"idKey",2),it=mt([w(Xa)],it);var Ja=Object.defineProperty,tl=Object.getOwnPropertyDescriptor,Fe=(r,t,s,i)=>{for(var e=i>1?void 0:i?tl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ja(t,s,e),e};const el="sonic-submit";let Qt=class extends Q(_){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 r=>{var v;if(this.disabled||r instanceof KeyboardEvent&&r.key!=="Enter")return;r instanceof MouseEvent&&r.stopPropagation();const t=N.getInstance().get(this.getAncestorAttributeValue("formDataProvider"));if(t.isFormValid=!0,t.invalidateForm(),!t.isFormValid.get())return;if(this.disabled=!0,t.isFormValid,this.hasAttribute("native")){this.submitNativeForm();return}const i=((v=this.getAttribute("method"))==null?void 0:v.toLocaleLowerCase())||"post",e=this.hasAttribute("sendAsFormData"),o=t.get();delete o.isFormValid;const n=this.getAncestorAttributeValue("headersDataProvider"),a=n?N.getInstance().get(n):null;let c={};a&&(c=a.get());let h=null;const d=this.getAncestorAttributeValue("dataProvider"),p=this.endPoint||d;nt.show();const g=async()=>{var f,y,C,O,E,B,W,Ot;if(e)h=await((f=this.api)==null?void 0:f.submitFormData(p,o,i,c));else switch(i){case"put":h=await((y=this.api)==null?void 0:y.put(p,o,c));break;case"patch":h=await((C=this.api)==null?void 0:C.patch(p,o,c));break;case"delete":h=await((O=this.api)==null?void 0:O.delete(p,o,c));break;case"get":const Js=new URLSearchParams;if(o)for(const Do in o)Js.append(Do,o[Do]);const kd="?"+Js.toString();h=await((E=this.api)==null?void 0:E.get(p+kd,c));break;default:h=await((B=this.api)==null?void 0:B.post(p,o,c));break}nt.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 P=this.getAncestorAttributeValue("clearedDataOnSuccess");P&&P.split(" ").forEach(Js=>N.get(Js).set({}));const S=this.hasAttribute("usernameKey")?this.getAttribute("usernameKey"):"username",D=this.hasAttribute("passwordKey")?this.getAttribute("passwordKey"):"password";(Ot=(W=this.api)==null?void 0:W.lastResult)!=null&&Ot.ok&&o[S]&&o[D]&&this.saveCredentials(o[S],o[D]),this.submitResultKey&&(h=J.traverse(h,this.submitResultKey.split("."),!0));const u=this.getAncestorAttributeValue("submitResultDataProvider");u&&N.get(u).set(h),this.disabled=!1,this.dispatchEvent(new CustomEvent("submit",{detail:h,bubbles:!0,composed:!0}))},b=a!=null&&a.needsCaptchaValidation.get()?a:t.needsCaptchaValidation.get()?t:null;if(b){b.captchaMethod=i,b.captchaAction=(d==null?void 0:d.split("?")[0])??this.getAncestorAttributeValue("formDataProvider")??"submit",b.captchaToken="request_token";const P=S=>{S&&S!="request_token"&&(g(),b.captchaToken.offAssign(P))};b.captchaToken.onAssign(P)}else g()}}connectedCallback(){this.hasAttribute("onClick")&&this.addEventListener("click",this.submit),this.hasAttribute("onEnterKey")&&this.addEventListener("keydown",this.submit),super.connectedCallback(),this.api=new Ne(this.getApiConfiguration())}submitNativeForm(){const r=fe.getClosestForm(this);if(!r)return;const t=this.getAncestorAttributeValue("formDataProvider"),s=N.get(t).get();for(const e in s){if(e=="isFormValid")continue;let o=r.querySelector('input[name="'+e+'"], select[name="'+e+'"], textarea[name="'+e+'"]');o||(o=document.createElement("input"),o.type="hidden",o.name=e,r.appendChild(o));let n=s[e];Array.isArray(n)&&(n=n.join(",")),o.type==="checkbox"||o.type==="radio"?n&&(o.checked=!0):o.value=n}const i=document.createElement("input");i.name=this.name,i.style.display="none",i.value=this.value,i.type="submit",r.appendChild(i),i&&i.click()}async saveCredentials(r,t){if("PasswordCredential"in window){const s=new window.PasswordCredential({id:r,password:t});await navigator.credentials.store(s)}}render(){return m`<div ?data-disabled=${this.disabled}><slot></slot></div>`}};Qt.styles=$`
1246
+ `}};it.instanceCounter=0,gt([l({type:Array})],it.prototype,"templates",2),gt([l({type:Object})],it.prototype,"itemPropertyMap",2),gt([l()],it.prototype,"cache",2),gt([l()],it.prototype,"targetRequestDuration",2),gt([l()],it.prototype,"limit",2),gt([l()],it.prototype,"lazyBoundsRatio",2),gt([l()],it.prototype,"offset",2),gt([l()],it.prototype,"resultCount",2),gt([l({type:Boolean})],it.prototype,"noLazyload",2),gt([l({type:String})],it.prototype,"loader",2),gt([l()],it.prototype,"filteredFields",2),gt([l({type:String})],it.prototype,"dataProviderExpression",2),gt([l({type:String})],it.prototype,"idKey",2),it=gt([w(Ja)],it);var tl=Object.defineProperty,el=Object.getOwnPropertyDescriptor,Fe=(r,t,s,i)=>{for(var e=i>1?void 0:i?el(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&tl(t,s,e),e};const sl="sonic-submit";let Xt=class extends X(_){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 r=>{var v;if(this.disabled||r instanceof KeyboardEvent&&r.key!=="Enter")return;r instanceof MouseEvent&&r.stopPropagation();const t=N.getInstance().get(this.getAncestorAttributeValue("formDataProvider"));if(t.isFormValid=!0,t.invalidateForm(),!t.isFormValid.get())return;if(this.disabled=!0,t.isFormValid,this.hasAttribute("native")){this.submitNativeForm();return}const i=((v=this.getAttribute("method"))==null?void 0:v.toLocaleLowerCase())||"post",e=this.hasAttribute("sendAsFormData"),o=t.get();delete o.isFormValid;const n=this.getAncestorAttributeValue("headersDataProvider"),a=n?N.getInstance().get(n):null;let c={};a&&(c=a.get());let h=null;const d=this.getAncestorAttributeValue("dataProvider"),p=this.endPoint||d;nt.show();const g=async()=>{var f,y,C,O,E,B,W,Ot;if(e)h=await((f=this.api)==null?void 0:f.submitFormData(p,o,i,c));else switch(i){case"put":h=await((y=this.api)==null?void 0:y.put(p,o,c));break;case"patch":h=await((C=this.api)==null?void 0:C.patch(p,o,c));break;case"delete":h=await((O=this.api)==null?void 0:O.delete(p,o,c));break;case"get":const Js=new URLSearchParams;if(o)for(const ko in o)Js.append(ko,o[ko]);const Md="?"+Js.toString();h=await((E=this.api)==null?void 0:E.get(p+Md,c));break;default:h=await((B=this.api)==null?void 0:B.post(p,o,c));break}nt.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 P=this.getAncestorAttributeValue("clearedDataOnSuccess");P&&P.split(" ").forEach(Js=>N.get(Js).set({}));const S=this.hasAttribute("usernameKey")?this.getAttribute("usernameKey"):"username",D=this.hasAttribute("passwordKey")?this.getAttribute("passwordKey"):"password";(Ot=(W=this.api)==null?void 0:W.lastResult)!=null&&Ot.ok&&o[S]&&o[D]&&this.saveCredentials(o[S],o[D]),this.submitResultKey&&(h=J.traverse(h,this.submitResultKey.split("."),!0));const u=this.getAncestorAttributeValue("submitResultDataProvider");u&&N.get(u).set(h),this.disabled=!1,this.dispatchEvent(new CustomEvent("submit",{detail:h,bubbles:!0,composed:!0}))},b=a!=null&&a.needsCaptchaValidation.get()?a:t.needsCaptchaValidation.get()?t:null;if(b){b.captchaMethod=i,b.captchaAction=(d==null?void 0:d.split("?")[0])??this.getAncestorAttributeValue("formDataProvider")??"submit",b.captchaToken="request_token";const P=S=>{S&&S!="request_token"&&(g(),b.captchaToken.offAssign(P))};b.captchaToken.onAssign(P)}else g()}}connectedCallback(){this.hasAttribute("onClick")&&this.addEventListener("click",this.submit),this.hasAttribute("onEnterKey")&&this.addEventListener("keydown",this.submit),super.connectedCallback(),this.api=new Ne(this.getApiConfiguration())}submitNativeForm(){const r=fe.getClosestForm(this);if(!r)return;const t=this.getAncestorAttributeValue("formDataProvider"),s=N.get(t).get();for(const e in s){if(e=="isFormValid")continue;let o=r.querySelector('input[name="'+e+'"], select[name="'+e+'"], textarea[name="'+e+'"]');o||(o=document.createElement("input"),o.type="hidden",o.name=e,r.appendChild(o));let n=s[e];Array.isArray(n)&&(n=n.join(",")),o.type==="checkbox"||o.type==="radio"?n&&(o.checked=!0):o.value=n}const i=document.createElement("input");i.name=this.name,i.style.display="none",i.value=this.value,i.type="submit",r.appendChild(i),i&&i.click()}async saveCredentials(r,t){if("PasswordCredential"in window){const s=new window.PasswordCredential({id:r,password:t});await navigator.credentials.store(s)}}render(){return m`<div ?data-disabled=${this.disabled}><slot></slot></div>`}};Xt.styles=$`
1247
1247
  [data-disabled] {
1248
1248
  opacity: 0.3;
1249
1249
  pointer-events: none;
1250
1250
  user-select: none;
1251
1251
  }
1252
- `,Fe([l({type:String})],Qt.prototype,"submitResultKey",2),Fe([l({type:Boolean})],Qt.prototype,"disabled",2),Fe([l({type:String})],Qt.prototype,"endPoint",2),Fe([l()],Qt.prototype,"name",2),Fe([l()],Qt.prototype,"value",2),Qt=Fe([w(el)],Qt);var sl=Object.defineProperty,il=Object.getOwnPropertyDescriptor,Ei=(r,t,s,i)=>{for(var e=i>1?void 0:i?il(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&sl(t,s,e),e};const rl="sonic-router";let Vs=class extends Xe(_){constructor(){super(...arguments),this.templateValueAttribute="data-route",this._location=document.location.href.replace(document.location.origin,"")}createRenderRoot(){return this}connectedCallback(){ot.onChange(this),super.connectedCallback()}disconnectedCallback(){ot.offChange(this),super.disconnectedCallback()}set location(r){this._location=r,this.requestUpdate()}get location(){return this._location}render(){const r=[];for(const t of this.templatePartsList){const s=t.getAttribute(this.templateValueAttribute)||"";if(new RegExp(s).test(this.location))r.push(t);else try{new ue("(/)*"+s+"*").match(this.location)&&(t.setAttribute("mode","patternMatching"),r.push(t))}catch{this.location.indexOf(s.replace(document.location.origin,""))!=-1&&r.push(t)}}if(r.length==0){this.fallBackRoute&&this.isConnected&&(document.location.href=this.fallBackRoute);const t=this.templatePartsList.find(s=>s.hasAttribute("data-fallback"));t&&r.push(t)}return m`${ks(r,(t,s)=>s+new Date().getTime(),t=>{var s;if(t.title&&(document.title=t.title),t.hasAttribute("dataProviderExpression")){let i="";const e=t.getAttribute("dataProviderExpression")||"";if(t.getAttribute("mode")=="patternMatching"){const o=new ue("(/)*"+(t.getAttribute(this.templateValueAttribute)||"")+"*");i=new ue(e).stringify(o.match(this.location))}else{const o=new RegExp(t.getAttribute(this.templateValueAttribute)||""),n=(this.location+"").match(o);n&&(i=((s=n.shift())==null?void 0:s.replace(o,e))||"")}return m`<div
1252
+ `,Fe([l({type:String})],Xt.prototype,"submitResultKey",2),Fe([l({type:Boolean})],Xt.prototype,"disabled",2),Fe([l({type:String})],Xt.prototype,"endPoint",2),Fe([l()],Xt.prototype,"name",2),Fe([l()],Xt.prototype,"value",2),Xt=Fe([w(sl)],Xt);var il=Object.defineProperty,rl=Object.getOwnPropertyDescriptor,Ei=(r,t,s,i)=>{for(var e=i>1?void 0:i?rl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&il(t,s,e),e};const ol="sonic-router";let Vs=class extends Qe(_){constructor(){super(...arguments),this.templateValueAttribute="data-route",this._location=document.location.href.replace(document.location.origin,"")}createRenderRoot(){return this}connectedCallback(){ot.onChange(this),super.connectedCallback()}disconnectedCallback(){ot.offChange(this),super.disconnectedCallback()}set location(r){this._location=r,this.requestUpdate()}get location(){return this._location}render(){const r=[];for(const t of this.templatePartsList){const s=t.getAttribute(this.templateValueAttribute)||"";if(new RegExp(s).test(this.location))r.push(t);else try{new ue("(/)*"+s+"*").match(this.location)&&(t.setAttribute("mode","patternMatching"),r.push(t))}catch{this.location.indexOf(s.replace(document.location.origin,""))!=-1&&r.push(t)}}if(r.length==0){this.fallBackRoute&&this.isConnected&&(document.location.href=this.fallBackRoute);const t=this.templatePartsList.find(s=>s.hasAttribute("data-fallback"));t&&r.push(t)}return m`${ks(r,(t,s)=>s+new Date().getTime(),t=>{var s;if(t.title&&(document.title=t.title),t.hasAttribute("dataProviderExpression")){let i="";const e=t.getAttribute("dataProviderExpression")||"";if(t.getAttribute("mode")=="patternMatching"){const o=new ue("(/)*"+(t.getAttribute(this.templateValueAttribute)||"")+"*");i=new ue(e).stringify(o.match(this.location))}else{const o=new RegExp(t.getAttribute(this.templateValueAttribute)||""),n=(this.location+"").match(o);n&&(i=((s=n.shift())==null?void 0:s.replace(o,e))||"")}return m`<div
1253
1253
  style="display:contents"
1254
1254
  dataProvider="${i}"
1255
1255
  >
1256
1256
  ${Nt(t)}
1257
- </div>`}return Nt(t)})}`}};Ei([l({type:String})],Vs.prototype,"fallBackRoute",2),Ei([l()],Vs.prototype,"location",1),Vs=Ei([w(rl)],Vs);var ol=Object.defineProperty,nl=Object.getOwnPropertyDescriptor,al=(r,t,s,i)=>{for(var e=i>1?void 0:i?nl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ol(t,s,e),e};const ll="sonic-redirect";let fo=class extends Q(_){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")){ot.changeFromComponent(this);return}if(!this.props)return;const r=this.getAttribute("onData").split("."),t=J.traverse(this.props,r);t&&!(J.isObject(t)&&t)&&ot.changeFromComponent(this)}};fo=al([w(ll)],fo);var cl=Object.defineProperty,hl=Object.getOwnPropertyDescriptor,Ni=(r,t,s,i)=>{for(var e=i>1?void 0:i?hl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&cl(t,s,e),e};const dl="sonic-states";let Hs=class extends Q(Xe(_)){constructor(){super(...arguments),this.state="",this.inverted=!1,this.statePath="",this.onStateAssign=r=>{this.state=r,this.requestUpdate()}}connectedCallback(){if(this.noShadowDom="",super.connectedCallback(),this.hasAttribute("data-path")&&(this.statePath=this.getAttribute("data-path")),this.statePath){this.statePublisher=this.publisher;const r=this.statePath.split(".");for(const t of r)this.statePublisher=this.statePublisher[t];this.statePublisher.onAssign(this.onStateAssign)}}disconnectedCallback(){var r;this.statePath&&((r=this.statePublisher)==null||r.offAssign(this.onStateAssign)),super.disconnectedCallback()}render(){const r=[];let t=this.state;(!Array.isArray(t)&&J.isObject(t)||t===void 0)&&(t="");for(const s of this.templatePartsList){let i=s.getAttribute(this.templateValueAttribute),e=t;if(this.inverted&&(e=i,i=t),i==""&&(i=this.inverted?".*?":"^$"),new RegExp(i).test(e+""))r.push(s),s.removeAttribute("mode");else{const n=new ue(i);n.names.length>0&&n.match(e)&&(s.setAttribute("mode","patternMatching"),r.push(s))}}return m`${ks(r,(s,i)=>i+new Date().getTime(),s=>{var i;if(s.title&&(document.title=s.title),s.hasAttribute("dataProviderExpression")){const e=s.getAttribute("dataProviderExpression");let o="",n=t,a=s.getAttribute(this.templateValueAttribute);if(this.inverted&&(n=a,a=t),a==""&&(a=this.inverted?"*":"^$"),s.getAttribute("mode")=="patternMatching"){const c=new ue(a);o=new ue(e).stringify(c.match(n))}else{const c=new RegExp(a),h=(n+"").match(c);h&&(o=(i=h.shift())==null?void 0:i.replace(c,e))}return m`<div
1257
+ </div>`}return Nt(t)})}`}};Ei([l({type:String})],Vs.prototype,"fallBackRoute",2),Ei([l()],Vs.prototype,"location",1),Vs=Ei([w(ol)],Vs);var nl=Object.defineProperty,al=Object.getOwnPropertyDescriptor,ll=(r,t,s,i)=>{for(var e=i>1?void 0:i?al(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&nl(t,s,e),e};const cl="sonic-redirect";let mo=class extends X(_){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")){ot.changeFromComponent(this);return}if(!this.props)return;const r=this.getAttribute("onData").split("."),t=J.traverse(this.props,r);t&&!(J.isObject(t)&&t)&&ot.changeFromComponent(this)}};mo=ll([w(cl)],mo);var hl=Object.defineProperty,dl=Object.getOwnPropertyDescriptor,Ni=(r,t,s,i)=>{for(var e=i>1?void 0:i?dl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&hl(t,s,e),e};const pl="sonic-states";let Hs=class extends X(Qe(_)){constructor(){super(...arguments),this.state="",this.inverted=!1,this.statePath="",this.onStateAssign=r=>{this.state=r,this.requestUpdate()}}connectedCallback(){if(this.noShadowDom="",super.connectedCallback(),this.hasAttribute("data-path")&&(this.statePath=this.getAttribute("data-path")),this.statePath){this.statePublisher=this.publisher;const r=this.statePath.split(".");for(const t of r)this.statePublisher=this.statePublisher[t];this.statePublisher.onAssign(this.onStateAssign)}}disconnectedCallback(){var r;this.statePath&&((r=this.statePublisher)==null||r.offAssign(this.onStateAssign)),super.disconnectedCallback()}render(){const r=[];let t=this.state;(!Array.isArray(t)&&J.isObject(t)||t===void 0)&&(t="");for(const s of this.templatePartsList){let i=s.getAttribute(this.templateValueAttribute),e=t;if(this.inverted&&(e=i,i=t),i==""&&(i=this.inverted?".*?":"^$"),new RegExp(i).test(e+""))r.push(s),s.removeAttribute("mode");else{const n=new ue(i);n.names.length>0&&n.match(e)&&(s.setAttribute("mode","patternMatching"),r.push(s))}}return m`${ks(r,(s,i)=>i+new Date().getTime(),s=>{var i;if(s.title&&(document.title=s.title),s.hasAttribute("dataProviderExpression")){const e=s.getAttribute("dataProviderExpression");let o="",n=t,a=s.getAttribute(this.templateValueAttribute);if(this.inverted&&(n=a,a=t),a==""&&(a=this.inverted?"*":"^$"),s.getAttribute("mode")=="patternMatching"){const c=new ue(a);o=new ue(e).stringify(c.match(n))}else{const c=new RegExp(a),h=(n+"").match(c);h&&(o=(i=h.shift())==null?void 0:i.replace(c,e))}return m`<div
1258
1258
  style="display:contents"
1259
1259
  dataProvider="${o}"
1260
1260
  >
1261
1261
  ${Nt(s)}
1262
- </div>`}return Nt(s)})}`}};Ni([l()],Hs.prototype,"state",2),Ni([l({type:Boolean,reflect:!0})],Hs.prototype,"inverted",2),Hs=Ni([w(dl)],Hs);var pl=Object.defineProperty,ul=Object.getOwnPropertyDescriptor,fl=(r,t,s,i)=>{for(var e=i>1?void 0:i?ul(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&pl(t,s,e),e};const ml="sonic-scope";let mo=class extends _{createRenderRoot(){return this}render(){return m`<slot></slot>`}};mo=fl([w(ml)],mo);var gl=Object.defineProperty,bl=Object.getOwnPropertyDescriptor,go=(r,t,s,i)=>{for(var e=i>1?void 0:i?bl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&gl(t,s,e),e};const vl="sonic-example";let Ti=class extends Q(_){constructor(){super(...arguments),this.text="Example"}render(){return m`<div>${this.text}</div>`}};go([l()],Ti.prototype,"text",2),Ti=go([w(vl)],Ti);const yl={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 _l{async transform(t,s){if(this.sduiDescriptor=t,this.sduiDescriptor.library)for(const i in s.library)this.sduiDescriptor.library[i]=s.library[i];for(const i of s.transforms)this.transformAction(i)}transformAction(t){const s=this.getNodesMatchingPatterns(t.patterns,this.sduiDescriptor);this[t.action](t,s)}getNodesMatchingPatterns(t,s){if(!t)return[];if(!s)return[];const i=s.nodes;if(!i)return[];let e=[],o=0;for(const n of t)for(const a of i)this.nodeMatchesPattern(n,a)&&e.push({parent:s,child:a,index:o}),e=e.concat(this.getNodesMatchingPatterns([n],a)),o++;return e}stringMatchesExpression(t,s){return!s||t&&t.match(s)}nodeMatchesPattern(t,s){const i=t,e=s,o=["libraryKey","innerHTML","prefix","suffix","markup"];for(const c of o)if(!this.stringMatchesExpression(e[c],i[c]))return!1;const n=t.attributes,a=s.attributes;if(n&&!a)return!1;if(n){for(const c in n)if(!a||!this.stringMatchesExpression(a[c],n[c]))return!1}return!0}unwrap(t,s){var i,e;for(const o of s)(i=o.parent.nodes)==null||i.splice(o.parent.nodes.indexOf(o.child),1),o.child.nodes&&((e=o.parent.nodes)==null||e.splice(o.parent.nodes.indexOf(o.child),0,...o.child.nodes))}wrap(t,s){var n,a,c,h,d,p;const i={...t.ui};i.nodes||(i.nodes=[]);let e=0;for(const g of s)(n=i.nodes)==null||n.push(g.child),e>0&&((a=g.parent.nodes)==null||a.splice(g.parent.nodes.indexOf(g.child),1)),e++;const o=(h=(c=s[0])==null?void 0:c.parent.nodes)==null?void 0:h.indexOf(s[0].child);o&&((d=s[0].parent.nodes)==null||d.splice(o,1),(p=s[0].parent.nodes)==null||p.splice(o,0,i))}move(t,s){var i,e;for(const o of s){(i=o.parent.nodes)==null||i.splice(o.parent.nodes.indexOf(o.child),1);let n=[];t.after&&(n=this.getNodesMatchingPatterns([t.after],this.sduiDescriptor)),t.before&&(n=this.getNodesMatchingPatterns([t.before],this.sduiDescriptor));const a=n[0];a&&((e=a.parent.nodes)==null||e.splice(a.parent.nodes.indexOf(a.child)+(t.after?1:0),0,o.child))}}remap(t,s){var i,e,o;for(const n of s){const a={...t.ui};a.attributes||(a.attributes={});const c=n.child.attributes;if(c)for(const v in c)Object.prototype.hasOwnProperty.call(a.attributes,"key")||(a.attributes[v]=c[v]);const h=["libraryKey","innerHTML","prefix","suffix","markup"],d=n.child,p=a;for(const v of h)!Object.prototype.hasOwnProperty.call(a,v)&&d[v]&&(p[v]=d[v]);a.nodes||(a.nodes=[]);const g=n.child.nodes;if(g)for(const v of g)a.nodes.push(v);const b=((i=n.parent.nodes)==null?void 0:i.indexOf(n.child))||-1;b!=-1&&((e=n.parent.nodes)==null||e.splice(b,1),(o=n.parent.nodes)==null||o.splice(b,0,a))}}delete(t,s){var i;for(const e of s)(i=e.parent.nodes)==null||i.splice(e.parent.nodes.indexOf(e.child),1)}insert(t,s){var o;const i=t.after?"after":t.before?"before":"in";s=[],t.after?s=this.getNodesMatchingPatterns([t.after],this.sduiDescriptor):t.before?s=this.getNodesMatchingPatterns([t.before],this.sduiDescriptor):t.in&&(s=this.getNodesMatchingPatterns([t.in],this.sduiDescriptor));const e=s[0];e&&(i=="in"?(e.child.nodes||(e.child.nodes=[]),e.child.nodes.push({...t.ui})):(o=e.parent.nodes)==null||o.splice(e.parent.nodes.indexOf(e.child)+(i=="after"?1:0),0,{...t.ui}))}}var wl=Object.defineProperty,$l=Object.getOwnPropertyDescriptor,Mi=(r,t,s,i)=>{for(var e=i>1?void 0:i?$l(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&wl(t,s,e),e};const xl="sonic-sdui";let Bs=class extends no(Zt(_)){constructor(){super(...arguments),this.sduiDescriptor={}}connectedCallback(){this.noShadowDom="",this.displayContents=!0,this.isFetchEnabled=this.hasAttribute("fetch"),super.connectedCallback()}willUpdate(r){this.props==null&&(this.sduiDescriptor={});{const t=this.sduiKey?this.props[this.sduiKey]:this.props;if(this.sduiDescriptor==t)return;this.sduiDescriptor=t,this.updateContents()}super.willUpdate(r)}async updateContents(){if(!this.sduiDescriptor)return;const r={};Object.assign(r,yl,this.sduiDescriptor.library),this.sduiDescriptor.library=r,this.loadAssets(),await this.loadLibrary(),await this.transformSDUIDescriptor(),this.parseRootNodes()}removeChildren(){for(;[...this.children].filter(r=>r.nodeName!="SLOT").length>0;)this.removeChild(this.children[0])}loadAssets(){if(this.sduiDescriptor){if(this.sduiDescriptor.js)for(const r of this.sduiDescriptor.js)fe.loadJS(r);if(this.sduiDescriptor.css)for(const r of this.sduiDescriptor.css)fe.loadCSS(r)}}async transformSDUIDescriptor(){if(!this.hasAttribute("transformation"))return;const t=await(await fetch(this.getAttribute("transformation"))).json();await new _l().transform(this.sduiDescriptor,t)}async loadLibrary(){if(!this.hasAttribute("library"))return;const t=await(await fetch(this.getAttribute("library"))).json();this.sduiDescriptor.library=t}parseRootNodes(){if(this.removeChildren(),!this.sduiDescriptor)return;let r=this.sduiDescriptor.nodes;r||(r=[]);const t={tagName:"sonic-toast-message-subscriber",attributes:{}};this.messagesKey&&(t.attributes={subDataProvider:this.messagesKey}),r.push(t),r.forEach(s=>this.appendChild(this.parseChild(s)))}parseChild(r){const t=r.tagName||"div";let{element:s,contentElement:i}=this.handleLibrary(r,t);return this.handleAttributes(r,s),s=this.handleMarkup(r,s),i||(i=s),this.handleChildNodes(r,i,s),this.handleInnerHTML(r,i),r.prefix||r.suffix?this.handlePrefixSuffix(r,s):s}handlePrefixSuffix(r,t){const s=document.createElement("div");return s.innerHTML=(r.prefix||"")+t.outerHTML+(r.suffix||""),s.style.display="contents",s}handleChildNodes(r,t,s){if(r.nodes){const i=r.nodes;for(const e of i){const o=this.parseChild(e);let n=t;e.parentElementSelector&&(n=s.querySelector(e.parentElementSelector)||t),n.shadowRoot?n.shadowRoot.appendChild(o):n.tagName.toLocaleLowerCase()=="template"?n.content.appendChild(o):n.appendChild(o)}}}handleLibrary(r,t){let s,i;if(r.libraryKey&&this.sduiDescriptor.library){s=this.parseChild(this.sduiDescriptor.library[r.libraryKey]||{tagName:"div"});const e=(this.sduiDescriptor.library[r.libraryKey]||{}).contentElementSelector;e&&(i=s.querySelector(e))}else s=document.createElement(t);return{element:s,contentElement:i}}handleAttributes(r,t){const s=r.attributes;for(const i in s){const e=s[i],o=Je.isObject(e)?JSON.stringify(e):e;t.setAttribute(i,o)}}handleMarkup(r,t){return r.markup&&(t=document.createElement("div"),t.style.display="contents",t.innerHTML=r.markup),t}handleInnerHTML(r,t){var s;if(r.innerHTML)if(r.innerHTML.indexOf("wording_")!=-1){const i=this.getAncestorAttributeValue("wordingProvider");(s=this.api)==null||s.post(i,{labels:[r.innerHTML.substring(8)]}).then(e=>{t&&(t.innerHTML+=e)})}else t&&(t.innerHTML+=r.innerHTML)}};Mi([l()],Bs.prototype,"sduiKey",2),Mi([l()],Bs.prototype,"messagesKey",2),Bs=Mi([w(xl)],Bs);var Pl=Object.defineProperty,Al=Object.getOwnPropertyDescriptor,bo=(r,t,s,i)=>{for(var e=i>1?void 0:i?Al(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Pl(t,s,e),e};let qs=class extends Zt(_){constructor(){super(...arguments),this._composition={},this.listeners=[]}get composition(){return this._composition}set composition(r){this._composition=r,this.updateComposition()}connectedCallback(){super.connectedCallback(),this.updateComposition()}disconnectedCallback(){this.removePublisherListeners(),super.disconnectedCallback()}updateComposition(){this.removePublisherListeners(),this.publisher&&(this.publisher.set({}),this.parseComposition(this.composition,this.publisher))}removePublisherListeners(){const r=this.listeners;this.listeners=[],r.forEach(t=>{this.publisher.offAssign(t.subscriber)})}parseComposition(r,t){if(r)for(const s in r){const i=r[s];if(typeof i=="string"){const e=i.split("."),o=e.shift();if(!o)continue;let n=st.get(o);n=Je.traverse(n,e);const a={publisher:n,subscriber:c=>{t[s]=c}};this.listeners.push(a),n.onAssign(a.subscriber),t._proxies_.set(s,n)}else{this.publisher[s]={};const e=new si({},t);t._proxies_.set(s,e);const o={publisher:e,subscriber:n=>{t[s]=n}};this.listeners.push(o),e.onAssign(o.subscriber),this.parseComposition(i,e)}}}render(){return m`<slot></slot>`}};qs.styles=[$`
1262
+ </div>`}return Nt(s)})}`}};Ni([l()],Hs.prototype,"state",2),Ni([l({type:Boolean,reflect:!0})],Hs.prototype,"inverted",2),Hs=Ni([w(pl)],Hs);var ul=Object.defineProperty,fl=Object.getOwnPropertyDescriptor,ml=(r,t,s,i)=>{for(var e=i>1?void 0:i?fl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ul(t,s,e),e};const gl="sonic-scope";let go=class extends _{createRenderRoot(){return this}render(){return m`<slot></slot>`}};go=ml([w(gl)],go);var bl=Object.defineProperty,vl=Object.getOwnPropertyDescriptor,bo=(r,t,s,i)=>{for(var e=i>1?void 0:i?vl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&bl(t,s,e),e};const yl="sonic-example";let Ti=class extends X(_){constructor(){super(...arguments),this.text="Example"}render(){return m`<div>${this.text}</div>`}};bo([l()],Ti.prototype,"text",2),Ti=bo([w(yl)],Ti);const _l={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 wl{async transform(t,s){if(this.sduiDescriptor=t,this.sduiDescriptor.library)for(const i in s.library)this.sduiDescriptor.library[i]=s.library[i];for(const i of s.transforms)this.transformAction(i)}transformAction(t){const s=this.getNodesMatchingPatterns(t.patterns,this.sduiDescriptor);this[t.action](t,s)}getNodesMatchingPatterns(t,s){if(!t)return[];if(!s)return[];const i=s.nodes;if(!i)return[];let e=[],o=0;for(const n of t)for(const a of i)this.nodeMatchesPattern(n,a)&&e.push({parent:s,child:a,index:o}),e=e.concat(this.getNodesMatchingPatterns([n],a)),o++;return e}stringMatchesExpression(t,s){return!s||t&&t.match(s)}nodeMatchesPattern(t,s){const i=t,e=s,o=["libraryKey","innerHTML","prefix","suffix","markup"];for(const c of o)if(!this.stringMatchesExpression(e[c],i[c]))return!1;const n=t.attributes,a=s.attributes;if(n&&!a)return!1;if(n){for(const c in n)if(!a||!this.stringMatchesExpression(a[c],n[c]))return!1}return!0}unwrap(t,s){var i,e;for(const o of s)(i=o.parent.nodes)==null||i.splice(o.parent.nodes.indexOf(o.child),1),o.child.nodes&&((e=o.parent.nodes)==null||e.splice(o.parent.nodes.indexOf(o.child),0,...o.child.nodes))}wrap(t,s){var n,a,c,h,d,p;const i={...t.ui};i.nodes||(i.nodes=[]);let e=0;for(const g of s)(n=i.nodes)==null||n.push(g.child),e>0&&((a=g.parent.nodes)==null||a.splice(g.parent.nodes.indexOf(g.child),1)),e++;const o=(h=(c=s[0])==null?void 0:c.parent.nodes)==null?void 0:h.indexOf(s[0].child);o&&((d=s[0].parent.nodes)==null||d.splice(o,1),(p=s[0].parent.nodes)==null||p.splice(o,0,i))}move(t,s){var i,e;for(const o of s){(i=o.parent.nodes)==null||i.splice(o.parent.nodes.indexOf(o.child),1);let n=[];t.after&&(n=this.getNodesMatchingPatterns([t.after],this.sduiDescriptor)),t.before&&(n=this.getNodesMatchingPatterns([t.before],this.sduiDescriptor));const a=n[0];a&&((e=a.parent.nodes)==null||e.splice(a.parent.nodes.indexOf(a.child)+(t.after?1:0),0,o.child))}}remap(t,s){var i,e,o;for(const n of s){const a={...t.ui};a.attributes||(a.attributes={});const c=n.child.attributes;if(c)for(const v in c)Object.prototype.hasOwnProperty.call(a.attributes,"key")||(a.attributes[v]=c[v]);const h=["libraryKey","innerHTML","prefix","suffix","markup"],d=n.child,p=a;for(const v of h)!Object.prototype.hasOwnProperty.call(a,v)&&d[v]&&(p[v]=d[v]);a.nodes||(a.nodes=[]);const g=n.child.nodes;if(g)for(const v of g)a.nodes.push(v);const b=((i=n.parent.nodes)==null?void 0:i.indexOf(n.child))||-1;b!=-1&&((e=n.parent.nodes)==null||e.splice(b,1),(o=n.parent.nodes)==null||o.splice(b,0,a))}}delete(t,s){var i;for(const e of s)(i=e.parent.nodes)==null||i.splice(e.parent.nodes.indexOf(e.child),1)}insert(t,s){var o;const i=t.after?"after":t.before?"before":"in";s=[],t.after?s=this.getNodesMatchingPatterns([t.after],this.sduiDescriptor):t.before?s=this.getNodesMatchingPatterns([t.before],this.sduiDescriptor):t.in&&(s=this.getNodesMatchingPatterns([t.in],this.sduiDescriptor));const e=s[0];e&&(i=="in"?(e.child.nodes||(e.child.nodes=[]),e.child.nodes.push({...t.ui})):(o=e.parent.nodes)==null||o.splice(e.parent.nodes.indexOf(e.child)+(i=="after"?1:0),0,{...t.ui}))}}var $l=Object.defineProperty,xl=Object.getOwnPropertyDescriptor,Mi=(r,t,s,i)=>{for(var e=i>1?void 0:i?xl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&$l(t,s,e),e};const Pl="sonic-sdui";let Bs=class extends ao(Zt(_)){constructor(){super(...arguments),this.sduiDescriptor={}}connectedCallback(){this.noShadowDom="",this.displayContents=!0,this.isFetchEnabled=this.hasAttribute("fetch"),super.connectedCallback()}willUpdate(r){this.props==null&&(this.sduiDescriptor={});{const t=this.sduiKey?this.props[this.sduiKey]:this.props;if(this.sduiDescriptor==t)return;this.sduiDescriptor=t,this.updateContents()}super.willUpdate(r)}async updateContents(){if(!this.sduiDescriptor)return;const r={};Object.assign(r,_l,this.sduiDescriptor.library),this.sduiDescriptor.library=r,this.loadAssets(),await this.loadLibrary(),await this.transformSDUIDescriptor(),this.parseRootNodes()}removeChildren(){for(;[...this.children].filter(r=>r.nodeName!="SLOT").length>0;)this.removeChild(this.children[0])}loadAssets(){if(this.sduiDescriptor){if(this.sduiDescriptor.js)for(const r of this.sduiDescriptor.js)fe.loadJS(r);if(this.sduiDescriptor.css)for(const r of this.sduiDescriptor.css)fe.loadCSS(r)}}async transformSDUIDescriptor(){if(!this.hasAttribute("transformation"))return;const t=await(await fetch(this.getAttribute("transformation"))).json();await new wl().transform(this.sduiDescriptor,t)}async loadLibrary(){if(!this.hasAttribute("library"))return;const t=await(await fetch(this.getAttribute("library"))).json();this.sduiDescriptor.library=t}parseRootNodes(){if(this.removeChildren(),!this.sduiDescriptor)return;let r=this.sduiDescriptor.nodes;r||(r=[]);const t={tagName:"sonic-toast-message-subscriber",attributes:{}};this.messagesKey&&(t.attributes={subDataProvider:this.messagesKey}),r.push(t),r.forEach(s=>this.appendChild(this.parseChild(s)))}parseChild(r){const t=r.tagName||"div";let{element:s,contentElement:i}=this.handleLibrary(r,t);return this.handleAttributes(r,s),s=this.handleMarkup(r,s),i||(i=s),this.handleChildNodes(r,i,s),this.handleInnerHTML(r,i),r.prefix||r.suffix?this.handlePrefixSuffix(r,s):s}handlePrefixSuffix(r,t){const s=document.createElement("div");return s.innerHTML=(r.prefix||"")+t.outerHTML+(r.suffix||""),s.style.display="contents",s}handleChildNodes(r,t,s){if(r.nodes){const i=r.nodes;for(const e of i){const o=this.parseChild(e);let n=t;e.parentElementSelector&&(n=s.querySelector(e.parentElementSelector)||t),n.shadowRoot?n.shadowRoot.appendChild(o):n.tagName.toLocaleLowerCase()=="template"?n.content.appendChild(o):n.appendChild(o)}}}handleLibrary(r,t){let s,i;if(r.libraryKey&&this.sduiDescriptor.library){s=this.parseChild(this.sduiDescriptor.library[r.libraryKey]||{tagName:"div"});const e=(this.sduiDescriptor.library[r.libraryKey]||{}).contentElementSelector;e&&(i=s.querySelector(e))}else s=document.createElement(t);return{element:s,contentElement:i}}handleAttributes(r,t){const s=r.attributes;for(const i in s){const e=s[i],o=Je.isObject(e)?JSON.stringify(e):e;t.setAttribute(i,o)}}handleMarkup(r,t){return r.markup&&(t=document.createElement("div"),t.style.display="contents",t.innerHTML=r.markup),t}handleInnerHTML(r,t){var s;if(r.innerHTML)if(r.innerHTML.indexOf("wording_")!=-1){const i=this.getAncestorAttributeValue("wordingProvider");(s=this.api)==null||s.post(i,{labels:[r.innerHTML.substring(8)]}).then(e=>{t&&(t.innerHTML+=e)})}else t&&(t.innerHTML+=r.innerHTML)}};Mi([l()],Bs.prototype,"sduiKey",2),Mi([l()],Bs.prototype,"messagesKey",2),Bs=Mi([w(Pl)],Bs);var Al=Object.defineProperty,Cl=Object.getOwnPropertyDescriptor,vo=(r,t,s,i)=>{for(var e=i>1?void 0:i?Cl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Al(t,s,e),e};let qs=class extends Zt(_){constructor(){super(...arguments),this._composition={},this.listeners=[]}get composition(){return this._composition}set composition(r){this._composition=r,this.updateComposition()}connectedCallback(){super.connectedCallback(),this.updateComposition()}disconnectedCallback(){this.removePublisherListeners(),super.disconnectedCallback()}updateComposition(){this.removePublisherListeners(),this.publisher&&(this.publisher.set({}),this.parseComposition(this.composition,this.publisher))}removePublisherListeners(){const r=this.listeners;this.listeners=[],r.forEach(t=>{this.publisher.offAssign(t.subscriber)})}parseComposition(r,t){if(r)for(const s in r){const i=r[s];if(typeof i=="string"){const e=i.split("."),o=e.shift();if(!o)continue;let n=st.get(o);n=Je.traverse(n,e);const a={publisher:n,subscriber:c=>{t[s]=c}};this.listeners.push(a),n.onAssign(a.subscriber),t._proxies_.set(s,n)}else{this.publisher[s]={};const e=new si({},t);t._proxies_.set(s,e);const o={publisher:e,subscriber:n=>{t[s]=n}};this.listeners.push(o),e.onAssign(o.subscriber),this.parseComposition(i,e)}}}render(){return m`<slot></slot>`}};qs.styles=[$`
1263
1263
  :host {
1264
1264
  display: contents;
1265
1265
  }
1266
- `],bo([l({type:Object})],qs.prototype,"composition",1),qs=bo([w("sonic-mix")],qs);var Cl=Object.defineProperty,Sl=Object.getOwnPropertyDescriptor,Ol=(r,t,s,i)=>{for(var e=i>1?void 0:i?Sl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Cl(t,s,e),e};const Dl="sonic-value";let vo=class extends Zt(_){connectedCallback(){this.setAttribute("subDataProvider",this.getAttribute("key")),super.connectedCallback()}render(){return typeof this.props=="object"||this.props===void 0?m`<slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>`:m`${F(this.props.toString())}<slot name="prefix"></slot><slot></slot
1267
- ><slot name="suffix"></slot>`}};vo=Ol([w(Dl)],vo);var kl=Object.defineProperty,Ll=Object.getOwnPropertyDescriptor,Ii=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ll(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&kl(t,s,e),e};const El="sonic-t";let Ws=class extends _{render(){return this.key?m`${dn(this.key,this.unsafeHTML)}`:A}};Ii([l({type:String})],Ws.prototype,"key",2),Ii([l({type:Boolean})],Ws.prototype,"unsafeHTML",2),Ws=Ii([w(El)],Ws);var Nl=Object.defineProperty,Tl=Object.getOwnPropertyDescriptor,hs=(r,t,s,i)=>{for(var e=i>1?void 0:i?Tl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Nl(t,s,e),e};const Ml="sonic-badge";let we=class extends _{constructor(){super(...arguments),this.type="default",this.variant="default",this.ellipsis=!1}render(){return m`
1266
+ `],vo([l({type:Object})],qs.prototype,"composition",1),qs=vo([w("sonic-mix")],qs);var Sl=Object.defineProperty,Ol=Object.getOwnPropertyDescriptor,Dl=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ol(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Sl(t,s,e),e};const kl="sonic-value";let yo=class extends Zt(_){connectedCallback(){this.setAttribute("subDataProvider",this.getAttribute("key")),super.connectedCallback()}render(){return typeof this.props=="object"||this.props===void 0?m`<slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>`:m`${F(this.props.toString())}<slot name="prefix"></slot><slot></slot
1267
+ ><slot name="suffix"></slot>`}};yo=Dl([w(kl)],yo);var Ll=Object.defineProperty,El=Object.getOwnPropertyDescriptor,Ii=(r,t,s,i)=>{for(var e=i>1?void 0:i?El(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ll(t,s,e),e};const Nl="sonic-t";let Ws=class extends _{render(){return this.key?m`${pn(this.key,this.unsafeHTML)}`:A}};Ii([l({type:String})],Ws.prototype,"key",2),Ii([l({type:Boolean})],Ws.prototype,"unsafeHTML",2),Ws=Ii([w(Nl)],Ws);var Tl=Object.defineProperty,Ml=Object.getOwnPropertyDescriptor,hs=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ml(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Tl(t,s,e),e};const Il="sonic-badge";let we=class extends _{constructor(){super(...arguments),this.type="default",this.variant="default",this.ellipsis=!1}render(){return m`
1268
1268
  <slot name="prefix"></slot>
1269
1269
  <slot></slot>
1270
1270
  <slot name="suffix"></slot>
@@ -1408,7 +1408,7 @@
1408
1408
  slot[name="prefix"] {
1409
1409
  flex-shrink: 0;
1410
1410
  }
1411
- `],hs([l({type:String,reflect:!0})],we.prototype,"type",2),hs([l({type:String,reflect:!0})],we.prototype,"variant",2),hs([l({type:String,reflect:!0})],we.prototype,"size",2),hs([l({type:Boolean,reflect:!0})],we.prototype,"ellipsis",2),we=hs([w(Ml)],we);class Il{static fixBlankLink(t){const i=typeof require>"u"||typeof process!="object"?null:require("electron");t.target=="_blank"&&t.addEventListener("click",()=>{i==null||i.shell.openExternal(t.href)})}}var jl=Object.defineProperty,Fl=Object.getOwnPropertyDescriptor,ze=(r,t,s,i)=>{for(var e=i>1?void 0:i?Fl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&jl(t,s,e),e};const zl="sonic-link";let Xt=class extends _{constructor(){super(...arguments),this.href="",this._location="",this.ariaLabel=null,this.autoActive="partial",this._target=null,this.pushState=null}get location(){return this._location}set location(r){this._location=r,ot.updateComponentActiveState(this)}connectedCallback(){this.href&&this.href.indexOf("http")!=0&&(ot.onChange(this),this.location=document.location.href.replace(document.location.origin,"")),this.addEventListener("keypress",r=>{var t,s;r.key==="Enter"&&((s=(t=this.shadowRoot)==null?void 0:t.querySelector("a"))==null||s.click())}),this.setFocusable(),super.connectedCallback()}setFocusable(){this.href?this.setAttribute("tabIndex","0"):this.removeAttribute("tabIndex")}disconnectedCallback(){ot.offChange(this),super.disconnectedCallback()}set target(r){this._target=r,Il.fixBlankLink(this),this.requestUpdate()}get target(){return this._target}handlePushState(r){r.preventDefault(),ot.changeFromComponent(this)}updated(r){r.has("href")&&this.setFocusable()}render(){return this.href?m`
1411
+ `],hs([l({type:String,reflect:!0})],we.prototype,"type",2),hs([l({type:String,reflect:!0})],we.prototype,"variant",2),hs([l({type:String,reflect:!0})],we.prototype,"size",2),hs([l({type:Boolean,reflect:!0})],we.prototype,"ellipsis",2),we=hs([w(Il)],we);class jl{static fixBlankLink(t){const i=typeof require>"u"||typeof process!="object"?null:require("electron");t.target=="_blank"&&t.addEventListener("click",()=>{i==null||i.shell.openExternal(t.href)})}}var Fl=Object.defineProperty,zl=Object.getOwnPropertyDescriptor,ze=(r,t,s,i)=>{for(var e=i>1?void 0:i?zl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Fl(t,s,e),e};const Rl="sonic-link";let Qt=class extends _{constructor(){super(...arguments),this.href="",this._location="",this.ariaLabel=null,this.autoActive="partial",this._target=null,this.pushState=null}get location(){return this._location}set location(r){this._location=r,ot.updateComponentActiveState(this)}connectedCallback(){this.href&&this.href.indexOf("http")!=0&&(ot.onChange(this),this.location=document.location.href.replace(document.location.origin,"")),this.addEventListener("keypress",r=>{var t,s;r.key==="Enter"&&((s=(t=this.shadowRoot)==null?void 0:t.querySelector("a"))==null||s.click())}),this.setFocusable(),super.connectedCallback()}setFocusable(){this.href?this.setAttribute("tabIndex","0"):this.removeAttribute("tabIndex")}disconnectedCallback(){ot.offChange(this),super.disconnectedCallback()}set target(r){this._target=r,jl.fixBlankLink(this),this.requestUpdate()}get target(){return this._target}handlePushState(r){r.preventDefault(),ot.changeFromComponent(this)}updated(r){r.has("href")&&this.setFocusable()}render(){return this.href?m`
1412
1412
  <a
1413
1413
  href="${this.href}"
1414
1414
  aria-label=${this.ariaLabel||A}
@@ -1417,13 +1417,13 @@
1417
1417
  >
1418
1418
  <slot></slot>
1419
1419
  </a>
1420
- `:m`<slot></slot>`}};Xt.styles=[$`
1420
+ `:m`<slot></slot>`}};Qt.styles=[$`
1421
1421
  a {
1422
1422
  color: inherit;
1423
1423
  text-decoration: none;
1424
1424
  display: contents;
1425
1425
  }
1426
- `],ze([l({type:String})],Xt.prototype,"href",2),ze([l({type:String,attribute:"data-aria-label"})],Xt.prototype,"ariaLabel",2),ze([l({type:String})],Xt.prototype,"autoActive",2),ze([l({type:String})],Xt.prototype,"target",1),ze([l({type:Boolean})],Xt.prototype,"pushState",2),Xt=ze([w(zl)],Xt);var Rl=Object.defineProperty,Ul=Object.getOwnPropertyDescriptor,Re=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ul(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Rl(t,s,e),e};const Vl="sonic-progress";let Jt=class extends _{constructor(){super(...arguments),this.max=100,this.invert=!1,this.type="default"}render(){return m`
1426
+ `],ze([l({type:String})],Qt.prototype,"href",2),ze([l({type:String,attribute:"data-aria-label"})],Qt.prototype,"ariaLabel",2),ze([l({type:String})],Qt.prototype,"autoActive",2),ze([l({type:String})],Qt.prototype,"target",1),ze([l({type:Boolean})],Qt.prototype,"pushState",2),Qt=ze([w(Rl)],Qt);var Ul=Object.defineProperty,Vl=Object.getOwnPropertyDescriptor,Re=(r,t,s,i)=>{for(var e=i>1?void 0:i?Vl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ul(t,s,e),e};const Hl="sonic-progress";let Jt=class extends _{constructor(){super(...arguments),this.max=100,this.invert=!1,this.type="default"}render(){return m`
1427
1427
  <progress value=${x(this.value)} max=${this.max}></progress>
1428
1428
  <div class="slot-container">
1429
1429
  <slot></slot>
@@ -1540,7 +1540,7 @@
1540
1540
  gap: 0.5em;
1541
1541
  margin-top: 0.15em;
1542
1542
  }
1543
- `],Re([l({type:Number})],Jt.prototype,"value",2),Re([l({type:Number})],Jt.prototype,"max",2),Re([l({type:Boolean})],Jt.prototype,"invert",2),Re([l({type:String,reflect:!0})],Jt.prototype,"type",2),Re([l({type:String,reflect:!0})],Jt.prototype,"size",2),Jt=Re([w(Vl)],Jt);const Hl=$`
1543
+ `],Re([l({type:Number})],Jt.prototype,"value",2),Re([l({type:Number})],Jt.prototype,"max",2),Re([l({type:Boolean})],Jt.prototype,"invert",2),Re([l({type:String,reflect:!0})],Jt.prototype,"type",2),Re([l({type:String,reflect:!0})],Jt.prototype,"size",2),Jt=Re([w(Hl)],Jt);const Bl=$`
1544
1544
  .password-toggle {
1545
1545
  color: var(--sc-input-c);
1546
1546
  font-size: var(--sc-input-fs);
@@ -1921,7 +1921,7 @@
1921
1921
  * @license
1922
1922
  * Copyright 2018 Google LLC
1923
1923
  * SPDX-License-Identifier: BSD-3-Clause
1924
- */const Fi=pe(class extends Ee{constructor(r){var t;if(super(r),r.type!==Le.ATTRIBUTE||r.name!=="class"||((t=r.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(t=>r[t]).join(" ")+" "}update(r,[t]){var i,e;if(this.st===void 0){this.st=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(const o in t)t[o]&&!((i=this.nt)!=null&&i.has(o))&&this.st.add(o);return this.render(t)}const s=r.element.classList;for(const o of this.st)o in t||(s.remove(o),this.st.delete(o));for(const o in t){const n=!!t[o];n===this.st.has(o)||(e=this.nt)!=null&&e.has(o)||(n?(s.add(o),this.st.add(o)):(s.remove(o),this.st.delete(o)))}return vt}});var Bl=Object.defineProperty,ql=Object.getOwnPropertyDescriptor,q=(r,t,s,i)=>{for(var e=i>1?void 0:i?ql(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Bl(t,s,e),e};const Wl="sonic-input";let V=class extends zs(Me(Q(_))){constructor(){super(...arguments),this.readonly=!1,this.inlineContent=!1,this.disableInlineContentFocus=!1,this.showPasswordToggle=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1,this.isPassword=!1}connectedCallback(){if(super.connectedCallback(),this.hasSlotOrProps(),this.hasAttribute("sameValueAs")){this.sameValueAsName=this.getAttribute("sameValueAs"),this.sameValueAsHandle=t=>this.pattern=this.escapeRegExp(t);const r=this.getFormPublisher();if(!r)return;r[this.sameValueAsName].onAssign(this.sameValueAsHandle)}this.type=="password"&&(this.isPassword=!0,this.showPasswordToggle=!0,this.inlineContent=!0)}disconnectedCallback(){if(super.disconnectedCallback(),this.hasAttribute("sameValueAs")&&this.sameValueAsName){const r=this.getFormPublisher();if(!r)return;r[this.sameValueAsName].offAssign(this.sameValueAsHandle)}}escapeRegExp(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}setSelectionRange(r,t){this.input.setSelectionRange(r,t)}hasSlotOrProps(){var r,t,s,i;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length),this.hasSuffix=!!((s=this.slotSuffixNodes)!=null&&s.length),this.hasPrefix=!!((i=this.slotPrefixNodes)!=null&&i.length)}inlineContentFocus(){var r;!this.inlineContent||this.disableInlineContentFocus||(r=this.input)==null||r.focus()}handleChange(r){if(!this.hasAttribute("inputDelayMs")){super.handleChange(r);return}this.changeTimeoutId&&clearTimeout(this.changeTimeoutId),this.changeTimeoutId=setTimeout(()=>super.handleChange(r),parseInt(this.getAttribute("inputDelayMs")))}togglePasswordVisibility(r){r.preventDefault(),r.stopPropagation(),this.isPassword=!this.isPassword,this._type=this.isPassword?"password":"text"}render(){const r={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix,"no-suffix":!this.hasSuffix,"no-prefix":!this.hasPrefix};return m`
1924
+ */const Fi=pe(class extends Ee{constructor(r){var t;if(super(r),r.type!==Le.ATTRIBUTE||r.name!=="class"||((t=r.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(t=>r[t]).join(" ")+" "}update(r,[t]){var i,e;if(this.st===void 0){this.st=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(const o in t)t[o]&&!((i=this.nt)!=null&&i.has(o))&&this.st.add(o);return this.render(t)}const s=r.element.classList;for(const o of this.st)o in t||(s.remove(o),this.st.delete(o));for(const o in t){const n=!!t[o];n===this.st.has(o)||(e=this.nt)!=null&&e.has(o)||(n?(s.add(o),this.st.add(o)):(s.remove(o),this.st.delete(o)))}return yt}});var ql=Object.defineProperty,Wl=Object.getOwnPropertyDescriptor,q=(r,t,s,i)=>{for(var e=i>1?void 0:i?Wl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ql(t,s,e),e};const Kl="sonic-input";let V=class extends zs(Me(X(_))){constructor(){super(...arguments),this.readonly=!1,this.inlineContent=!1,this.disableInlineContentFocus=!1,this.showPasswordToggle=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1,this.isPassword=!1}connectedCallback(){if(super.connectedCallback(),this.hasSlotOrProps(),this.hasAttribute("sameValueAs")){this.sameValueAsName=this.getAttribute("sameValueAs"),this.sameValueAsHandle=t=>this.pattern=this.escapeRegExp(t);const r=this.getFormPublisher();if(!r)return;r[this.sameValueAsName].onAssign(this.sameValueAsHandle)}this.type=="password"&&(this.isPassword=!0,this.showPasswordToggle=!0,this.inlineContent=!0)}disconnectedCallback(){if(super.disconnectedCallback(),this.hasAttribute("sameValueAs")&&this.sameValueAsName){const r=this.getFormPublisher();if(!r)return;r[this.sameValueAsName].offAssign(this.sameValueAsHandle)}}escapeRegExp(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}setSelectionRange(r,t){this.input.setSelectionRange(r,t)}hasSlotOrProps(){var r,t,s,i;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length),this.hasSuffix=!!((s=this.slotSuffixNodes)!=null&&s.length),this.hasPrefix=!!((i=this.slotPrefixNodes)!=null&&i.length)}inlineContentFocus(){var r;!this.inlineContent||this.disableInlineContentFocus||(r=this.input)==null||r.focus()}handleChange(r){if(!this.hasAttribute("inputDelayMs")){super.handleChange(r);return}this.changeTimeoutId&&clearTimeout(this.changeTimeoutId),this.changeTimeoutId=setTimeout(()=>super.handleChange(r),parseInt(this.getAttribute("inputDelayMs")))}togglePasswordVisibility(r){r.preventDefault(),r.stopPropagation(),this.isPassword=!this.isPassword,this._type=this.isPassword?"password":"text"}render(){const r={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix,"no-suffix":!this.hasSuffix,"no-prefix":!this.hasPrefix};return m`
1925
1925
  <label for="${this.id||"form-element"}" class="${this.hasLabel?"form-label":"hidden"}"
1926
1926
  >${this.label?F(this.label):""}<slot
1927
1927
  name="label"
@@ -1985,7 +1985,7 @@
1985
1985
  >${this.description?m`${F(this.description)}`:A}</slot>
1986
1986
  <slot name="list"></slot>
1987
1987
  </div>
1988
- `}};V.styles=[Lt,ji,Ks,Ys,Hl,$`
1988
+ `}};V.styles=[Lt,ji,Ks,Ys,Bl,$`
1989
1989
  :host([type="hidden"]) {
1990
1990
  appearance: none !important;
1991
1991
  display: none !important;
@@ -1993,7 +1993,7 @@
1993
1993
  :host > .form-control {
1994
1994
  position: relative;
1995
1995
  }
1996
- `],q([l({type:String,reflect:!0})],V.prototype,"size",2),q([l({type:String})],V.prototype,"list",2),q([l({type:String})],V.prototype,"placeholder",2),q([l({type:String})],V.prototype,"pattern",2),q([l({type:String})],V.prototype,"min",2),q([l({type:String})],V.prototype,"max",2),q([l({type:Boolean})],V.prototype,"readonly",2),q([l({type:Number})],V.prototype,"step",2),q([l({type:Number})],V.prototype,"minlength",2),q([l({type:Number})],V.prototype,"maxlength",2),q([l({type:String})],V.prototype,"src",2),q([l({type:Boolean,reflect:!0})],V.prototype,"inlineContent",2),q([l({type:Boolean})],V.prototype,"disableInlineContentFocus",2),q([l({type:Boolean})],V.prototype,"showPasswordToggle",2),q([rt({slot:"label",flatten:!0})],V.prototype,"slotLabelNodes",2),q([rt({slot:"description",flatten:!0})],V.prototype,"slotDescriptionNodes",2),q([rt({slot:"suffix",flatten:!0})],V.prototype,"slotSuffixNodes",2),q([rt({slot:"prefix",flatten:!0})],V.prototype,"slotPrefixNodes",2),q([oe("input")],V.prototype,"input",2),q([T()],V.prototype,"hasDescription",2),q([T()],V.prototype,"hasLabel",2),q([T()],V.prototype,"hasSuffix",2),q([T()],V.prototype,"hasPrefix",2),q([T()],V.prototype,"isPassword",2),V=q([w(Wl)],V);const yo=$`
1996
+ `],q([l({type:String,reflect:!0})],V.prototype,"size",2),q([l({type:String})],V.prototype,"list",2),q([l({type:String})],V.prototype,"placeholder",2),q([l({type:String})],V.prototype,"pattern",2),q([l({type:String})],V.prototype,"min",2),q([l({type:String})],V.prototype,"max",2),q([l({type:Boolean})],V.prototype,"readonly",2),q([l({type:Number})],V.prototype,"step",2),q([l({type:Number})],V.prototype,"minlength",2),q([l({type:Number})],V.prototype,"maxlength",2),q([l({type:String})],V.prototype,"src",2),q([l({type:Boolean,reflect:!0})],V.prototype,"inlineContent",2),q([l({type:Boolean})],V.prototype,"disableInlineContentFocus",2),q([l({type:Boolean})],V.prototype,"showPasswordToggle",2),q([rt({slot:"label",flatten:!0})],V.prototype,"slotLabelNodes",2),q([rt({slot:"description",flatten:!0})],V.prototype,"slotDescriptionNodes",2),q([rt({slot:"suffix",flatten:!0})],V.prototype,"slotSuffixNodes",2),q([rt({slot:"prefix",flatten:!0})],V.prototype,"slotPrefixNodes",2),q([oe("input")],V.prototype,"input",2),q([T()],V.prototype,"hasDescription",2),q([T()],V.prototype,"hasLabel",2),q([T()],V.prototype,"hasSuffix",2),q([T()],V.prototype,"hasPrefix",2),q([T()],V.prototype,"isPassword",2),V=q([w(Kl)],V);const _o=$`
1997
1997
  /*OMBRE*/
1998
1998
  :host([shadow]) .shadowable,
1999
1999
  :host([shadow="md"]) .shadowable,
@@ -2012,7 +2012,7 @@
2012
2012
  :host([shadow="none"]) .shadowable {
2013
2013
  box-shadow: none;
2014
2014
  }
2015
- `;var Kl=Object.defineProperty,Yl=Object.getOwnPropertyDescriptor,te=(r,t,s,i)=>{for(var e=i>1?void 0:i?Yl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Kl(t,s,e),e};const Zl="sonic-pop";let at=class extends _{constructor(){super(...arguments),this.open=!1,this.noToggle=!1,this.inline=!1,this.shadow="lg",this.placement="bottom",this.positioningRuns=!1,this.lastContentX=0,this.lastContentY=0,this.resizeObserver=new ResizeObserver(()=>this.computePosition(this.placement)),this.ancestorsHavingZIndex=new Set}runPositioningLoop(){this.positioningRuns&&(this.positioningRuns=!0,this.computePosition(this.placement),window.requestAnimationFrame(()=>this.runPositioningLoop()))}toggle(r){if(this.open&&this.noToggle)return;const t=r;r.type=="keydown"&&(t.key!="ArrowDown"||this.open)||(this.open=!this.open,this.open?this.show():this.hide())}show(){this.setMaxZindex(),this.popContent.style.removeProperty("display"),this.open=!0,this.popContent.setAttribute("tabindex","0"),this.popBtn&&this.popContent&&!this.positioningRuns&&(this.positioningRuns=!0,this.lastContentX=0,this.lastContentY=0,this.runPositioningLoop()),this.dispatchEvent(new CustomEvent("show"))}hide(){this.resetZindexes(),this.open=!1,this.popContent.setAttribute("tabindex","-1"),this.positioningRuns=!1,this.dispatchEvent(new CustomEvent("hide"))}setMaxZindex(){K.everyAncestors(this,r=>{const t=r;if(!t.className)return!0;if([...t.classList].includes("@container")){const s=t.style;s.zIndex="999999999";const i=getComputedStyle(t);return i.position!=="relative"&&i.position!=="absolute"&&(s.position="relative"),this.ancestorsHavingZIndex.add(r),!1}return!0})}resetZindexes(){this.ancestorsHavingZIndex.forEach(r=>{r.style.removeProperty("position"),r.style.removeProperty("z-index")}),this.ancestorsHavingZIndex.clear()}_handleClosePop(r){const t=r.composedPath(),s=t[0];at.pops.forEach(i=>{const e=t.includes(i),o=t.includes(i.querySelector('[slot="content"]')),n=K.getAncestorAttributeValue(s,"data-on-select")==="keep";r.type=="pointerdown"&&e||r.type=="click"&&(e&&n||!o)||i.hide()})}connectedCallback(){super.connectedCallback(),at.pops.size==0&&(document.addEventListener("pointerdown",this._handleClosePop),document.addEventListener("click",this._handleClosePop)),at.pops.add(this)}firstUpdated(r){super.firstUpdated(r),this.resizeObserver.observe(this.popContent)}disconnectedCallback(){this.popContent&&this.resizeObserver.unobserve(this.popContent),super.disconnectedCallback(),at.pops.delete(this),at.pops.size==0&&(document.removeEventListener("pointerdown",this._handleClosePop),document.removeEventListener("click",this._handleClosePop))}computePosition(r){var E,B,W,Ot;const t=r.split(" "),s=t[0];let i=t[1],e=(E=this.popContent)==null?void 0:E.getBoundingClientRect();const o=5,n=this.getBoundingClientRect(),a=K.getScrollableAncestor(this.popContent),c=a==null?void 0:a.getBoundingClientRect(),h=Math.max(0,(c==null?void 0:c.left)||0)+o,d=Math.max(0,(c==null?void 0:c.top)||0)+o,p=Math.min(window.innerWidth,(c==null?void 0:c.right)||window.innerWidth)-o,g=Math.min(window.innerHeight,(c==null?void 0:c.bottom)||window.innerHeight)-o,b=n.left,v=n.top;let P=b,S=v;const D=v-e.height,u=b-e.width,f=b+n.width,y=v+n.height,C=b+(n.width-e.width)*.5,O=v+(n.height-e.height)*.5;switch(s){case"bottom":S=y,i=="center"&&(P=C);break;case"top":S=D,i=="center"&&(P=C);break;case"left":P=u,i=="center"&&(S=O);break;case"right":P=f,i=="center"&&(S=O);break}this.lastContentX+=P-e.x,this.lastContentY+=S-e.y,Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),e=(B=this.popContent)==null?void 0:B.getBoundingClientRect(),e.x<h&&s=="left"&&(P=f),e.y<d&&s=="top"&&(S=y),e.x+e.width>p&&s=="right"&&(P=u),e.y+e.height>g&&s=="bottom"&&(S=D),this.lastContentX+=P-e.x,this.lastContentY+=S-e.y,Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),e=(W=this.popContent)==null?void 0:W.getBoundingClientRect(),e.x<h&&(this.lastContentX+=h-e.x),e.y<d&&(this.lastContentY+=d-e.y),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),e=(Ot=this.popContent)==null?void 0:Ot.getBoundingClientRect(),e.x+e.width>p&&(this.lastContentX+=p-(e.x+e.width)),e.y+e.height>g&&(this.lastContentY+=g-(e.y+e.height)),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`})}render(){return m`
2015
+ `;var Yl=Object.defineProperty,Zl=Object.getOwnPropertyDescriptor,te=(r,t,s,i)=>{for(var e=i>1?void 0:i?Zl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Yl(t,s,e),e};const Gl="sonic-pop";let at=class extends _{constructor(){super(...arguments),this.open=!1,this.noToggle=!1,this.inline=!1,this.shadow="lg",this.placement="bottom",this.positioningRuns=!1,this.lastContentX=0,this.lastContentY=0,this.resizeObserver=new ResizeObserver(()=>this.computePosition(this.placement)),this.ancestorsHavingZIndex=new Set}runPositioningLoop(){this.positioningRuns&&(this.positioningRuns=!0,this.computePosition(this.placement),window.requestAnimationFrame(()=>this.runPositioningLoop()))}toggle(r){if(this.open&&this.noToggle)return;const t=r;r.type=="keydown"&&(t.key!="ArrowDown"||this.open)||(this.open=!this.open,this.open?this.show():this.hide())}show(){this.setMaxZindex(),this.popContent.style.removeProperty("display"),this.open=!0,this.popContent.setAttribute("tabindex","0"),this.popBtn&&this.popContent&&!this.positioningRuns&&(this.positioningRuns=!0,this.lastContentX=0,this.lastContentY=0,this.runPositioningLoop()),this.dispatchEvent(new CustomEvent("show"))}hide(){this.resetZindexes(),this.open=!1,this.popContent.setAttribute("tabindex","-1"),this.positioningRuns=!1,this.dispatchEvent(new CustomEvent("hide"))}setMaxZindex(){K.everyAncestors(this,r=>{const t=r;if(!t.className)return!0;if([...t.classList].includes("@container")){const s=t.style;s.zIndex="999999999";const i=getComputedStyle(t);return i.position!=="relative"&&i.position!=="absolute"&&(s.position="relative"),this.ancestorsHavingZIndex.add(r),!1}return!0})}resetZindexes(){this.ancestorsHavingZIndex.forEach(r=>{r.style.removeProperty("position"),r.style.removeProperty("z-index")}),this.ancestorsHavingZIndex.clear()}_handleClosePop(r){const t=r.composedPath(),s=t[0];at.pops.forEach(i=>{const e=t.includes(i),o=t.includes(i.querySelector('[slot="content"]')),n=K.getAncestorAttributeValue(s,"data-on-select")==="keep";r.type=="pointerdown"&&e||r.type=="click"&&(e&&n||!o)||i.hide()})}connectedCallback(){super.connectedCallback(),at.pops.size==0&&(document.addEventListener("pointerdown",this._handleClosePop),document.addEventListener("click",this._handleClosePop)),at.pops.add(this)}firstUpdated(r){super.firstUpdated(r),this.resizeObserver.observe(this.popContent)}disconnectedCallback(){this.popContent&&this.resizeObserver.unobserve(this.popContent),super.disconnectedCallback(),at.pops.delete(this),at.pops.size==0&&(document.removeEventListener("pointerdown",this._handleClosePop),document.removeEventListener("click",this._handleClosePop))}computePosition(r){var E,B,W,Ot;const t=r.split(" "),s=t[0];let i=t[1],e=(E=this.popContent)==null?void 0:E.getBoundingClientRect();const o=5,n=this.getBoundingClientRect(),a=K.getScrollableAncestor(this.popContent),c=a==null?void 0:a.getBoundingClientRect(),h=Math.max(0,(c==null?void 0:c.left)||0)+o,d=Math.max(0,(c==null?void 0:c.top)||0)+o,p=Math.min(window.innerWidth,(c==null?void 0:c.right)||window.innerWidth)-o,g=Math.min(window.innerHeight,(c==null?void 0:c.bottom)||window.innerHeight)-o,b=n.left,v=n.top;let P=b,S=v;const D=v-e.height,u=b-e.width,f=b+n.width,y=v+n.height,C=b+(n.width-e.width)*.5,O=v+(n.height-e.height)*.5;switch(s){case"bottom":S=y,i=="center"&&(P=C);break;case"top":S=D,i=="center"&&(P=C);break;case"left":P=u,i=="center"&&(S=O);break;case"right":P=f,i=="center"&&(S=O);break}this.lastContentX+=P-e.x,this.lastContentY+=S-e.y,Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),e=(B=this.popContent)==null?void 0:B.getBoundingClientRect(),e.x<h&&s=="left"&&(P=f),e.y<d&&s=="top"&&(S=y),e.x+e.width>p&&s=="right"&&(P=u),e.y+e.height>g&&s=="bottom"&&(S=D),this.lastContentX+=P-e.x,this.lastContentY+=S-e.y,Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),e=(W=this.popContent)==null?void 0:W.getBoundingClientRect(),e.x<h&&(this.lastContentX+=h-e.x),e.y<d&&(this.lastContentY+=d-e.y),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),e=(Ot=this.popContent)==null?void 0:Ot.getBoundingClientRect(),e.x+e.width>p&&(this.lastContentX+=p-(e.x+e.width)),e.y+e.height>g&&(this.lastContentY+=g-(e.y+e.height)),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`})}render(){return m`
2016
2016
  <slot
2017
2017
  @click=${this.toggle}
2018
2018
  @keydown=${this.toggle}
@@ -2058,11 +2058,11 @@
2058
2058
  :host([inline]) {
2059
2059
  vertical-align: baseline;
2060
2060
  }
2061
- `,yo],te([T()],at.prototype,"open",2),te([oe("slot:not([name=content])")],at.prototype,"popBtn",2),te([oe("slot[name=content]")],at.prototype,"popContent",2),te([l({type:Boolean})],at.prototype,"noToggle",2),te([l({type:Boolean,reflect:!0})],at.prototype,"inline",2),te([l({type:String,reflect:!0})],at.prototype,"shadow",2),te([l({type:String})],at.prototype,"placement",2),at=te([w(Zl)],at);var Gl=Object.defineProperty,Ql=Object.getOwnPropertyDescriptor,Xl=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ql(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Gl(t,s,e),e};const Jl="sonic-menu-item";let _o=class extends I{constructor(){super()}connectedCallback(){this.hasAttribute("variant")||(this.variant="ghost"),this.hasAttribute("type")||(this.type="default"),this.hasAttribute("shape")||(this.shape="block");const r=this.shape==="square"||this.shape==="circle";!this.hasAttribute("align")&&!r&&(this.align="left"),super.connectedCallback()}};_o=Xl([w(Jl)],_o);/**
2061
+ `,_o],te([T()],at.prototype,"open",2),te([oe("slot:not([name=content])")],at.prototype,"popBtn",2),te([oe("slot[name=content]")],at.prototype,"popContent",2),te([l({type:Boolean})],at.prototype,"noToggle",2),te([l({type:Boolean,reflect:!0})],at.prototype,"inline",2),te([l({type:String,reflect:!0})],at.prototype,"shadow",2),te([l({type:String})],at.prototype,"placement",2),at=te([w(Gl)],at);var Xl=Object.defineProperty,Ql=Object.getOwnPropertyDescriptor,Jl=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ql(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Xl(t,s,e),e};const tc="sonic-menu-item";let wo=class extends I{constructor(){super()}connectedCallback(){this.hasAttribute("variant")||(this.variant="ghost"),this.hasAttribute("type")||(this.type="default"),this.hasAttribute("shape")||(this.shape="block");const r=this.shape==="square"||this.shape==="circle";!this.hasAttribute("align")&&!r&&(this.align="left"),super.connectedCallback()}};wo=Jl([w(tc)],wo);/**
2062
2062
  * @license
2063
2063
  * Copyright 2021 Google LLC
2064
2064
  * SPDX-License-Identifier: BSD-3-Clause
2065
- */class wo{constructor(t,{target:s,config:i,callback:e,skipInitial:o}){this.t=new Set,this.o=!1,this.i=!1,this.h=t,s!==null&&this.t.add(s??t),this.l=i,this.o=o??this.o,this.callback=e,window.ResizeObserver?(this.u=new ResizeObserver(n=>{this.handleChanges(n),this.h.requestUpdate()}),t.addController(this)):console.warn("ResizeController error: browser does not support ResizeObserver.")}handleChanges(t){var s;this.value=(s=this.callback)==null?void 0:s.call(this,t,this.u)}hostConnected(){for(const t of this.t)this.observe(t)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.o&&this.i&&this.handleChanges([]),this.i=!1}observe(t){this.t.add(t),this.u.observe(t,this.l),this.i=!0,this.h.requestUpdate()}unobserve(t){this.t.delete(t),this.u.unobserve(t)}disconnect(){this.u.disconnect()}}var tc=Object.defineProperty,ec=Object.getOwnPropertyDescriptor,gt=(r,t,s,i)=>{for(var e=i>1?void 0:i?ec(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&tc(t,s,e),e};let lt=class extends ki(lo(ao(Zt(_)))){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 wo(this,{}),this.isPopVisible=!1,this.searchDataProvider="",this.initSearchDataProvider="",this.queueDataProvider="",this.initQueueDataProvider="",this.lastValidSearch="",this.updateSearchParameter=r=>{var s;if(r==""){this.lastValidSearch="";return}this.queryQueueListItem(this.queueDataProvider,this.findSelection,this.setSearchFromSelection)===!1&&(!this.searchParameter||this.searchParameter===this.name)&&(this.lastValidSearch=r,(s=this.searchPublisher)==null||s.set(this.lastValidSearch))},this.updatePopContentVisibility=r=>{this.isPopVisible=((r==null?void 0:r.length)||0)>=this.minSearchLength},this.initSearchParameter=()=>{this.queryQueueListItem(this.initQueueDataProvider,this.findSelection,this.setSearchFromSelection)},this.selectListItem=r=>{var s;const t=this.propertyName==="_self"?r:r[this.propertyName||this.name];(s=this.formValuePublisher)==null||s.set(t)},this.findSearchedItem=r=>{var s;return(this.propertyName==="_self"?r:r[this.propertyName||this.searchParameter||this.name])==((s=this.searchPublisher)==null?void 0:s.get())},this.findSelection=r=>(this.propertyName==="_self"?r:r[this.propertyName||this.name])==this.value,this.setSearchFromSelection=r=>{var t;this.lastValidSearch=this.propertyName==="_self"?r:r[this.searchParameter||this.propertyName||this.name],(t=this.searchPublisher)==null||t.set(this.lastValidSearch)},this.updateActiveSelection=()=>{var r,t,s;this.queryQueueListItem(this.queueDataProvider,this.findSearchedItem,this.selectListItem),!this.select&&this.lastValidSearch&&this.lastValidSearch!=((r=this.searchPublisher)==null?void 0:r.get())&&((t=this.formValuePublisher)!=null&&t.get())&&((s=this.formValuePublisher)==null||s.set(""))}}hasSlotOrProps(){var r;this.hasInputPrefix=!!((r=this.slotInputPrefixNodes)!=null&&r.length)}get value(){return super.value}set value(r){var t;(t=this.searchPublisher)==null||t.set(r),super.value=r}connectedCallback(){var e,o,n,a;super.connectedCallback();const r=this.searchParameter||this.name,t=this.getAncestorAttributeValue("formDataProvider"),s=t+"__"+this.name+"__autocomplete";this.initSearchDataProvider=`${s}_init_search__`,this.initQueueDataProvider=`${s}_init_queue__`,this.searchDataProvider=`${s}_search__`,this.queueDataProvider=`${s}_queue__`;const i=st.get;this.searchPublisher=i(this.searchDataProvider)[r],this.formValuePublisher=dt(i(t),this.name),this.countPublisher=i(this.queueDataProvider).resultCount,this.initCountPublisher=i(this.initQueueDataProvider).resultCount,this.value&&(st.get(this.initSearchDataProvider)[this.name]=this.value),(e=this.initCountPublisher)==null||e.onAssign(this.initSearchParameter),(o=this.formValuePublisher)==null||o.onAssign(this.updateSearchParameter),(n=this.countPublisher)==null||n.onAssign(this.updateActiveSelection),(a=this.searchPublisher)==null||a.onAssign(this.updatePopContentVisibility)}disconnectedCallback(){var t,s,i,e;super.disconnectedCallback(),(t=this.initCountPublisher)==null||t.offAssign(this.initSearchParameter),(s=this.formValuePublisher)==null||s.offAssign(this.updateSearchParameter),(i=this.countPublisher)==null||i.offAssign(this.updateActiveSelection);const r=st.get;r(this.initSearchDataProvider).delete(),r(this.initQueueDataProvider).delete(),r(this.searchDataProvider).delete(),r(this.queueDataProvider).delete(),(e=this.searchPublisher)==null||e.offAssign(this.updatePopContentVisibility)}queryQueueListItem(r,t,s){const i=st.get(r);let e,o=i.get();if(!o||!Array.isArray(o)||!o.length)return!1;for(const n of o){let a=st.get(n.dataProvider).get();if(Array.isArray(a)&&(e=a.find(t),e))break}return e?(s(e),!0):!1}setSelectionRange(r,t){var s;(s=this.querySelector("sonic-input"))==null||s.setSelectionRange(r,t)}handleHide(){var r,t,s;if(this.select){if(((r=this.searchPublisher)==null?void 0:r.get())==""){this.lastValidSearch="",(t=this.formValuePublisher)==null||t.set("");return}(s=this.searchPublisher)==null||s.set(this.lastValidSearch)}}render(){var r;return m`
2065
+ */class $o{constructor(t,{target:s,config:i,callback:e,skipInitial:o}){this.t=new Set,this.o=!1,this.i=!1,this.h=t,s!==null&&this.t.add(s??t),this.l=i,this.o=o??this.o,this.callback=e,window.ResizeObserver?(this.u=new ResizeObserver(n=>{this.handleChanges(n),this.h.requestUpdate()}),t.addController(this)):console.warn("ResizeController error: browser does not support ResizeObserver.")}handleChanges(t){var s;this.value=(s=this.callback)==null?void 0:s.call(this,t,this.u)}hostConnected(){for(const t of this.t)this.observe(t)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.o&&this.i&&this.handleChanges([]),this.i=!1}observe(t){this.t.add(t),this.u.observe(t,this.l),this.i=!0,this.h.requestUpdate()}unobserve(t){this.t.delete(t),this.u.unobserve(t)}disconnect(){this.u.disconnect()}}var ec=Object.defineProperty,sc=Object.getOwnPropertyDescriptor,bt=(r,t,s,i)=>{for(var e=i>1?void 0:i?sc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ec(t,s,e),e};let lt=class extends ki(co(lo(Zt(_)))){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 $o(this,{}),this.isPopVisible=!1,this.searchDataProvider="",this.initSearchDataProvider="",this.queueDataProvider="",this.initQueueDataProvider="",this.lastValidSearch="",this.updateSearchParameter=r=>{var s;if(r==""){this.lastValidSearch="";return}this.queryQueueListItem(this.queueDataProvider,this.findSelection,this.setSearchFromSelection)===!1&&(!this.searchParameter||this.searchParameter===this.name)&&(this.lastValidSearch=r,(s=this.searchPublisher)==null||s.set(this.lastValidSearch))},this.updatePopContentVisibility=r=>{this.isPopVisible=((r==null?void 0:r.length)||0)>=this.minSearchLength},this.initSearchParameter=()=>{this.queryQueueListItem(this.initQueueDataProvider,this.findSelection,this.setSearchFromSelection)},this.selectListItem=r=>{var s;const t=this.propertyName==="_self"?r:r[this.propertyName||this.name];(s=this.formValuePublisher)==null||s.set(t)},this.findSearchedItem=r=>{var s;return(this.propertyName==="_self"?r:r[this.propertyName||this.searchParameter||this.name])==((s=this.searchPublisher)==null?void 0:s.get())},this.findSelection=r=>(this.propertyName==="_self"?r:r[this.propertyName||this.name])==this.value,this.setSearchFromSelection=r=>{var t;this.lastValidSearch=this.propertyName==="_self"?r:r[this.searchParameter||this.propertyName||this.name],(t=this.searchPublisher)==null||t.set(this.lastValidSearch)},this.updateActiveSelection=()=>{var r,t,s;this.queryQueueListItem(this.queueDataProvider,this.findSearchedItem,this.selectListItem),!this.select&&this.lastValidSearch&&this.lastValidSearch!=((r=this.searchPublisher)==null?void 0:r.get())&&((t=this.formValuePublisher)!=null&&t.get())&&((s=this.formValuePublisher)==null||s.set(""))}}hasSlotOrProps(){var r;this.hasInputPrefix=!!((r=this.slotInputPrefixNodes)!=null&&r.length)}get value(){return super.value}set value(r){var t;(t=this.searchPublisher)==null||t.set(r),super.value=r}connectedCallback(){var e,o,n,a;super.connectedCallback();const r=this.searchParameter||this.name,t=this.getAncestorAttributeValue("formDataProvider"),s=t+"__"+this.name+"__autocomplete";this.initSearchDataProvider=`${s}_init_search__`,this.initQueueDataProvider=`${s}_init_queue__`,this.searchDataProvider=`${s}_search__`,this.queueDataProvider=`${s}_queue__`;const i=st.get;this.searchPublisher=i(this.searchDataProvider)[r],this.formValuePublisher=dt(i(t),this.name),this.countPublisher=i(this.queueDataProvider).resultCount,this.initCountPublisher=i(this.initQueueDataProvider).resultCount,this.value&&(st.get(this.initSearchDataProvider)[this.name]=this.value),(e=this.initCountPublisher)==null||e.onAssign(this.initSearchParameter),(o=this.formValuePublisher)==null||o.onAssign(this.updateSearchParameter),(n=this.countPublisher)==null||n.onAssign(this.updateActiveSelection),(a=this.searchPublisher)==null||a.onAssign(this.updatePopContentVisibility)}disconnectedCallback(){var t,s,i,e;super.disconnectedCallback(),(t=this.initCountPublisher)==null||t.offAssign(this.initSearchParameter),(s=this.formValuePublisher)==null||s.offAssign(this.updateSearchParameter),(i=this.countPublisher)==null||i.offAssign(this.updateActiveSelection);const r=st.get;r(this.initSearchDataProvider).delete(),r(this.initQueueDataProvider).delete(),r(this.searchDataProvider).delete(),r(this.queueDataProvider).delete(),(e=this.searchPublisher)==null||e.offAssign(this.updatePopContentVisibility)}queryQueueListItem(r,t,s){const i=st.get(r);let e,o=i.get();if(!o||!Array.isArray(o)||!o.length)return!1;for(const n of o){let a=st.get(n.dataProvider).get();if(Array.isArray(a)&&(e=a.find(t),e))break}return e?(s(e),!0):!1}setSelectionRange(r,t){var s;(s=this.querySelector("sonic-input"))==null||s.setSelectionRange(r,t)}handleHide(){var r,t,s;if(this.select){if(((r=this.searchPublisher)==null?void 0:r.get())==""){this.lastValidSearch="",(t=this.formValuePublisher)==null||t.set("");return}(s=this.searchPublisher)==null||s.set(this.lastValidSearch)}}render(){var r;return m`
2066
2066
  <sonic-pop noToggle style="display:block;" @hide=${this.handleHide}>
2067
2067
  <sonic-input
2068
2068
  dataProvider="${this.initSearchDataProvider+Math.random()}"
@@ -2138,7 +2138,7 @@
2138
2138
  min-width: 14rem;
2139
2139
  width: 100%;
2140
2140
  }
2141
- `],gt([l({type:String})],lt.prototype,"size",2),gt([l({type:String})],lt.prototype,"placeholder",2),gt([l()],lt.prototype,"filteredFields",2),gt([l({type:Boolean})],lt.prototype,"readonly",2),gt([l({type:String})],lt.prototype,"dataProviderExpression",2),gt([l({type:Number})],lt.prototype,"minSearchLength",2),gt([l({type:Boolean})],lt.prototype,"select",2),gt([l({type:String})],lt.prototype,"key",2),gt([l({type:String})],lt.prototype,"searchParameter",2),gt([l({type:String})],lt.prototype,"propertyName",2),gt([rt({slot:"prefix",flatten:!0})],lt.prototype,"slotInputPrefixNodes",2),gt([T()],lt.prototype,"hasInputPrefix",2),gt([T()],lt.prototype,"isPopVisible",2),lt=gt([w("sonic-input-autocomplete")],lt);var sc=Object.defineProperty,ic=Object.getOwnPropertyDescriptor,pt=(r,t,s,i)=>{for(var e=i>1?void 0:i?ic(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&sc(t,s,e),e};const rc="sonic-password-helper";let ct=class extends Zt(_){constructor(){super(...arguments),this.minChars=8,this.hasNoChar=!0,this.hasEnoughChars=!1,this.hasMinuscule=!1,this.hasMajuscule=!1,this.hasNumber=!1,this.hasSpecialChar=!1,this.wording_password_helper_decription="Le mot de passe doit contenir au moins :",this.wording_password_helper_min_length="8 caractères",this.wording_password_helper_lower_case="1 minuscule",this.wording_password_helper_upper_case="1 majuscule",this.wording_password_helper_number="1 chiffre",this.wording_password_helper_special_char="1 caractère spécial"}connectedCallback(){super.connectedCallback(),this.name&&(this.checkValue=t=>{t?(this.hasNoChar=t.length==0,this.hasEnoughChars=t.length>this.minChars):(this.hasNoChar=!0,this.hasEnoughChars=!1),this.hasMinuscule=/[a-z]/.test(t),this.hasMajuscule=/[A-Z]/.test(t),this.hasNumber=/[0-9]/.test(t),this.hasSpecialChar=/[!"#$%&'()*+,\-./:;<=>?@[\]^_`{|}~]/.test(t)},st.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].onAssign(this.checkValue))}disconnectedCallback(){this.checkValue&&this.name&&st.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].offAssign(this.checkValue),super.disconnectedCallback()}getIcon(t){return t?m`<sonic-icon library="heroicons" name="face-smile"></sonic-icon>`:m`<sonic-icon library="heroicons" name="x-mark"></sonic-icon>`}render(){return this.hasNoChar?A:m`
2141
+ `],bt([l({type:String})],lt.prototype,"size",2),bt([l({type:String})],lt.prototype,"placeholder",2),bt([l()],lt.prototype,"filteredFields",2),bt([l({type:Boolean})],lt.prototype,"readonly",2),bt([l({type:String})],lt.prototype,"dataProviderExpression",2),bt([l({type:Number})],lt.prototype,"minSearchLength",2),bt([l({type:Boolean})],lt.prototype,"select",2),bt([l({type:String})],lt.prototype,"key",2),bt([l({type:String})],lt.prototype,"searchParameter",2),bt([l({type:String})],lt.prototype,"propertyName",2),bt([rt({slot:"prefix",flatten:!0})],lt.prototype,"slotInputPrefixNodes",2),bt([T()],lt.prototype,"hasInputPrefix",2),bt([T()],lt.prototype,"isPopVisible",2),lt=bt([w("sonic-input-autocomplete")],lt);var ic=Object.defineProperty,rc=Object.getOwnPropertyDescriptor,pt=(r,t,s,i)=>{for(var e=i>1?void 0:i?rc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ic(t,s,e),e};const oc="sonic-password-helper";let ct=class extends Zt(_){constructor(){super(...arguments),this.minChars=8,this.hasNoChar=!0,this.hasEnoughChars=!1,this.hasMinuscule=!1,this.hasMajuscule=!1,this.hasNumber=!1,this.hasSpecialChar=!1,this.wording_password_helper_decription="Le mot de passe doit contenir au moins :",this.wording_password_helper_min_length="8 caractères",this.wording_password_helper_lower_case="1 minuscule",this.wording_password_helper_upper_case="1 majuscule",this.wording_password_helper_number="1 chiffre",this.wording_password_helper_special_char="1 caractère spécial"}connectedCallback(){super.connectedCallback(),this.name&&(this.checkValue=t=>{t?(this.hasNoChar=t.length==0,this.hasEnoughChars=t.length>this.minChars):(this.hasNoChar=!0,this.hasEnoughChars=!1),this.hasMinuscule=/[a-z]/.test(t),this.hasMajuscule=/[A-Z]/.test(t),this.hasNumber=/[0-9]/.test(t),this.hasSpecialChar=/[!"#$%&'()*+,\-./:;<=>?@[\]^_`{|}~]/.test(t)},st.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].onAssign(this.checkValue))}disconnectedCallback(){this.checkValue&&this.name&&st.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].offAssign(this.checkValue),super.disconnectedCallback()}getIcon(t){return t?m`<sonic-icon library="heroicons" name="face-smile"></sonic-icon>`:m`<sonic-icon library="heroicons" name="x-mark"></sonic-icon>`}render(){return this.hasNoChar?A:m`
2142
2142
  <div>${this.wording_password_helper_decription}</div>
2143
2143
  <div>
2144
2144
  ${this.getIcon(this.hasEnoughChars)}
@@ -2159,11 +2159,11 @@
2159
2159
  ${this.getIcon(this.hasSpecialChar)}
2160
2160
  ${this.wording_password_helper_special_char}
2161
2161
  </div>
2162
- `}};pt([l()],ct.prototype,"name",2),pt([l()],ct.prototype,"minChars",2),pt([T()],ct.prototype,"hasNoChar",2),pt([T()],ct.prototype,"hasEnoughChars",2),pt([T()],ct.prototype,"hasMinuscule",2),pt([T()],ct.prototype,"hasMajuscule",2),pt([T()],ct.prototype,"hasNumber",2),pt([T()],ct.prototype,"hasSpecialChar",2),pt([l()],ct.prototype,"wording_password_helper_decription",2),pt([l()],ct.prototype,"wording_password_helper_min_length",2),pt([l()],ct.prototype,"wording_password_helper_lower_case",2),pt([l()],ct.prototype,"wording_password_helper_upper_case",2),pt([l()],ct.prototype,"wording_password_helper_number",2),pt([l()],ct.prototype,"wording_password_helper_special_char",2),ct=pt([w(rc)],ct);var oc=Object.defineProperty,nc=Object.getOwnPropertyDescriptor,$e=(r,t,s,i)=>{for(var e=i>1?void 0:i?nc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&oc(t,s,e),e};const ac="sonic-same-value-helper";let ee=class extends Zt(_){constructor(){super(...arguments),this.descriptionWhenEqual="Correspondance : oui",this.descriptionWhenNotEqual="Correspondance : non",this.areEqual=!1,this.hasNoChar=!0}connectedCallback(){super.connectedCallback();const r=st.get(this.getAncestorAttributeValue("formDataProvider"));this.name&&this.sameValueAs&&(this.checkValue=t=>{t?this.hasNoChar=t.length==0:this.hasNoChar=!0,this.name&&this.sameValueAs&&(this.areEqual=dt(r,this.name).get()==dt(r,this.sameValueAs).get())},dt(r,this.name).onAssign(this.checkValue),dt(r,this.sameValueAs).onAssign(this.checkValue))}disconnectedCallback(){if(this.checkValue&&this.name&&this.sameValueAs){const r=st.get(this.getAncestorAttributeValue("formDataProvider"));dt(r,this.name).offAssign(this.checkValue),dt(r,this.sameValueAs).offAssign(this.checkValue)}super.disconnectedCallback()}render(){return this.hasNoChar?A:m`
2162
+ `}};pt([l()],ct.prototype,"name",2),pt([l()],ct.prototype,"minChars",2),pt([T()],ct.prototype,"hasNoChar",2),pt([T()],ct.prototype,"hasEnoughChars",2),pt([T()],ct.prototype,"hasMinuscule",2),pt([T()],ct.prototype,"hasMajuscule",2),pt([T()],ct.prototype,"hasNumber",2),pt([T()],ct.prototype,"hasSpecialChar",2),pt([l()],ct.prototype,"wording_password_helper_decription",2),pt([l()],ct.prototype,"wording_password_helper_min_length",2),pt([l()],ct.prototype,"wording_password_helper_lower_case",2),pt([l()],ct.prototype,"wording_password_helper_upper_case",2),pt([l()],ct.prototype,"wording_password_helper_number",2),pt([l()],ct.prototype,"wording_password_helper_special_char",2),ct=pt([w(oc)],ct);var nc=Object.defineProperty,ac=Object.getOwnPropertyDescriptor,$e=(r,t,s,i)=>{for(var e=i>1?void 0:i?ac(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&nc(t,s,e),e};const lc="sonic-same-value-helper";let ee=class extends Zt(_){constructor(){super(...arguments),this.descriptionWhenEqual="Correspondance : oui",this.descriptionWhenNotEqual="Correspondance : non",this.areEqual=!1,this.hasNoChar=!0}connectedCallback(){super.connectedCallback();const r=st.get(this.getAncestorAttributeValue("formDataProvider"));this.name&&this.sameValueAs&&(this.checkValue=t=>{t?this.hasNoChar=t.length==0:this.hasNoChar=!0,this.name&&this.sameValueAs&&(this.areEqual=dt(r,this.name).get()==dt(r,this.sameValueAs).get())},dt(r,this.name).onAssign(this.checkValue),dt(r,this.sameValueAs).onAssign(this.checkValue))}disconnectedCallback(){if(this.checkValue&&this.name&&this.sameValueAs){const r=st.get(this.getAncestorAttributeValue("formDataProvider"));dt(r,this.name).offAssign(this.checkValue),dt(r,this.sameValueAs).offAssign(this.checkValue)}super.disconnectedCallback()}render(){return this.hasNoChar?A:m`
2163
2163
  <span>
2164
2164
  ${this.areEqual?F(this.descriptionWhenEqual):F(this.descriptionWhenNotEqual)}
2165
2165
  </span>
2166
- `}};$e([l()],ee.prototype,"name",2),$e([l()],ee.prototype,"sameValueAs",2),$e([l()],ee.prototype,"descriptionWhenEqual",2),$e([l()],ee.prototype,"descriptionWhenNotEqual",2),$e([T()],ee.prototype,"areEqual",2),$e([T()],ee.prototype,"hasNoChar",2),ee=$e([w(ac)],ee);var lc=Object.defineProperty,cc=Object.getOwnPropertyDescriptor,Vt=(r,t,s,i)=>{for(var e=i>1?void 0:i?cc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&lc(t,s,e),e};const hc="sonic-checkbox";let _t=class extends _i(zs(Me(Q(_)))){constructor(){super(...arguments),this.touched=!1,this.iconName="check",this.indeterminateIconName="minus-small",this.showAsIndeterminate=!1,this.hasDescription=!1,this.hasLabel=!1}connectedCallback(){this.type="checkbox",this.hasSlotOrProps(),super.connectedCallback()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){var r,t;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length)}render(){return m`
2166
+ `}};$e([l()],ee.prototype,"name",2),$e([l()],ee.prototype,"sameValueAs",2),$e([l()],ee.prototype,"descriptionWhenEqual",2),$e([l()],ee.prototype,"descriptionWhenNotEqual",2),$e([T()],ee.prototype,"areEqual",2),$e([T()],ee.prototype,"hasNoChar",2),ee=$e([w(lc)],ee);var cc=Object.defineProperty,hc=Object.getOwnPropertyDescriptor,Vt=(r,t,s,i)=>{for(var e=i>1?void 0:i?hc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&cc(t,s,e),e};const dc="sonic-checkbox";let ut=class extends _i(zs(Me(X(_)))){constructor(){super(...arguments),this.touched=!1,this.iconName="check",this.indeterminateIconName="minus-small",this.showAsIndeterminate=!1,this.hasDescription=!1,this.hasLabel=!1}connectedCallback(){this.type="checkbox",this.hasSlotOrProps(),super.connectedCallback()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){var r,t;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length)}render(){return m`
2167
2167
  <label class="checkbox-container ${this.disabled?"disabled":""}">
2168
2168
 
2169
2169
  <span class="icon-container">
@@ -2191,7 +2191,7 @@
2191
2191
  </div>
2192
2192
  </label>
2193
2193
  </label>
2194
- `}};_t.styles=[Lt,$`
2194
+ `}};ut.styles=[Lt,$`
2195
2195
  :host {
2196
2196
  --sc-checkbox-border-width: var(--sc-form-border-width);
2197
2197
  --sc-checkbox-border-color: var(
@@ -2200,6 +2200,7 @@
2200
2200
  );
2201
2201
  --sc-checkbox-bg: var(--sc-input-bg);
2202
2202
  --sc-checkbox-color: transparent;
2203
+ font-size: var(--sc-_fs);
2203
2204
  }
2204
2205
 
2205
2206
  * {
@@ -2212,7 +2213,6 @@
2212
2213
  gap: 0.5em;
2213
2214
  line-height: 1.2;
2214
2215
  align-items: flex-start;
2215
- font-size: var(--sc-_fs);
2216
2216
  }
2217
2217
 
2218
2218
  .icon-container {
@@ -2313,7 +2313,7 @@
2313
2313
  .hidden {
2314
2314
  display: none;
2315
2315
  }
2316
- `],Vt([l({type:Boolean,reflect:!0})],_t.prototype,"touched",2),Vt([l({type:String})],_t.prototype,"iconName",2),Vt([l({type:String})],_t.prototype,"indeterminateIconName",2),Vt([l({type:Boolean})],_t.prototype,"showAsIndeterminate",2),Vt([l({type:Boolean})],_t.prototype,"hasDescription",2),Vt([l({type:Boolean})],_t.prototype,"hasLabel",2),Vt([rt({flatten:!0})],_t.prototype,"slotLabelNodes",2),Vt([rt({slot:"description",flatten:!0})],_t.prototype,"slotDescriptionNodes",2),_t=Vt([w(hc)],_t);var dc=Object.defineProperty,pc=Object.getOwnPropertyDescriptor,uc=(r,t,s,i)=>{for(var e=i>1?void 0:i?pc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&dc(t,s,e),e};const fc="sonic-radio";let zi=class extends _t{constructor(){super(),this.radio=!0}connectedCallback(){super.connectedCallback(),this.type="radio"}};zi.styles=[_t.styles,$`
2316
+ `],Vt([l({type:Boolean,reflect:!0})],ut.prototype,"touched",2),Vt([l({type:String})],ut.prototype,"iconName",2),Vt([l({type:String})],ut.prototype,"indeterminateIconName",2),Vt([l({type:Boolean})],ut.prototype,"showAsIndeterminate",2),Vt([l({type:Boolean})],ut.prototype,"hasDescription",2),Vt([l({type:Boolean})],ut.prototype,"hasLabel",2),Vt([rt({flatten:!0})],ut.prototype,"slotLabelNodes",2),Vt([rt({slot:"description",flatten:!0})],ut.prototype,"slotDescriptionNodes",2),ut=Vt([w(dc)],ut);var pc=Object.defineProperty,uc=Object.getOwnPropertyDescriptor,fc=(r,t,s,i)=>{for(var e=i>1?void 0:i?uc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&pc(t,s,e),e};const mc="sonic-radio";let zi=class extends ut{constructor(){super(),this.radio=!0}connectedCallback(){super.connectedCallback(),this.type="radio"}};zi.styles=[ut.styles,$`
2317
2317
  :host input {
2318
2318
  border-radius: 50%;
2319
2319
  }
@@ -2329,7 +2329,72 @@
2329
2329
  width: 0.6em;
2330
2330
  width: round(0.6em, 1px);
2331
2331
  }
2332
- `],zi=uc([w(fc)],zi);var mc=Object.defineProperty,gc=Object.getOwnPropertyDescriptor,X=(r,t,s,i)=>{for(var e=i>1?void 0:i?gc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&mc(t,s,e),e};const bc="sonic-select";let Z=class extends Me(Q(_)){constructor(){super(...arguments),this.valueKey="value",this.wordingKey="wording",this.multiple=!1,this.status="default",this._options=[],this.hasDoneFirstUpdate=!1,this._value="",this.updateOptions=()=>{const r=this.querySelectorAll("option");r.length>0&&(this.options=Array.from(r).map(t=>({value:t.value,wording:t.text,selected:t.hasAttribute("selected")})))},this.forceAutoFill=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1}set options(r){this._options=r;for(const s of r)s.selected&&(this.value=s.value||"");!(this.value||this.getAttribute("value"))&&this._options.length>0&&(this.value=this._options[0][this.valueKey]),this.requestUpdate()}get options(){return this._options}firstUpdated(r){this.hasDoneFirstUpdate=!0,super.firstUpdated(r)}set value(r){r==null&&!this.hasDoneFirstUpdate||(r||(r=""),this._value!=r&&(this._value=r,this.updateFormPublisherValue(),this.requestUpdate()))}get value(){return this._value}updateFormPublisherValue(){this.setFormPublisherValue(this.value)}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps(),this.updateOptions()}get description(){return this._description}set description(r){this.hasAttribute("description")&&!this.forceAutoFill&&(r=this.getAttribute("description")),this._description=r,this.requestUpdate()}get label(){return this._label}set label(r){this.hasAttribute("label")&&!this.forceAutoFill&&(r=this.getAttribute("label")),this._label=r,this.requestUpdate()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){var r,t,s,i;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length),this.hasSuffix=!!((s=this.slotSuffixNodes)!=null&&s.length),this.hasPrefix=!!((i=this.slotPrefixNodes)!=null&&i.length)}validateFormElement(){var s;const r=(s=this.shadowRoot)==null?void 0:s.querySelector("select");if(!r||r.checkValidity())return;const t=this.getFormPublisher();t&&(t.isFormValid=!1),r.reportValidity()}render(){const r={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix};return m`
2332
+ `],zi=fc([w(mc)],zi);var gc=Object.defineProperty,bc=Object.getOwnPropertyDescriptor,vc=(r,t,s,i)=>{for(var e=i>1?void 0:i?bc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&gc(t,s,e),e};const yc="sonic-switch";let Ri=class extends ut{constructor(){super(),this.unique=!0}};Ri.styles=[ut.styles,$`
2333
+ sonic-icon {
2334
+ display: none;
2335
+ }
2336
+
2337
+ .icon-container {
2338
+ display: flex;
2339
+ align-items: center;
2340
+ justify-content: center;
2341
+ vertical-align: baseline;
2342
+ position: relative;
2343
+ font-size: var(--sc-_fs, 1rem);
2344
+ }
2345
+ :host([disabled]) .icon-container {
2346
+ cursor: not-allowed;
2347
+ }
2348
+
2349
+ :host input {
2350
+ -webkit-appearance: none;
2351
+ -moz-appearance: none;
2352
+ appearance: none;
2353
+ flex-shrink: 0;
2354
+ width: 100%;
2355
+ width: calc(var(--sc-_fs) * 2.5) !important;
2356
+ cursor: pointer;
2357
+ border-radius: 1.75em;
2358
+ background-color: var(--sc-checkbox-bg);
2359
+ }
2360
+
2361
+ :host input:checked {
2362
+ -webkit-appearance: none;
2363
+ -moz-appearance: none;
2364
+ appearance: none;
2365
+ flex-shrink: 0;
2366
+ width: 100%;
2367
+ width: calc(var(--sc-_fs) * 2.5) !important;
2368
+ cursor: pointer;
2369
+ border-radius: 1.75em;
2370
+ border-color: var(--sc-primary, var(--sc-base-content, #fff));
2371
+ background-color: var(--sc-primary, var(--sc-base-content, #fff));
2372
+ }
2373
+
2374
+ .icon-container::after {
2375
+ content: "";
2376
+ position: absolute;
2377
+ height: round(calc(95% - var(--sc-checkbox-border-width)), 1px);
2378
+ aspect-ratio: 1/1;
2379
+ border-radius: 50%;
2380
+ left: var(--sc-checkbox-border-width);
2381
+ top: 50%;
2382
+ transform: translateY(-50%);
2383
+ display: block;
2384
+ background-color: var(--sc-input-color, var(--sc-base-content, #000));
2385
+ transition: all 0.2s ease-in-out;
2386
+ }
2387
+
2388
+ .icon-container:has(input:checked)::after {
2389
+ left: calc(100% - var(--sc-checkbox-border-width));
2390
+ background-color: var(--sc-primary-content, var(--sc-base, #fff));
2391
+ transform: translateX(-100%) translateY(-50%);
2392
+ }
2393
+
2394
+ input + sonic-icon {
2395
+ display: none;
2396
+ }
2397
+ `],Ri=vc([w(yc)],Ri);var _c=Object.defineProperty,wc=Object.getOwnPropertyDescriptor,Q=(r,t,s,i)=>{for(var e=i>1?void 0:i?wc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&_c(t,s,e),e};const $c="sonic-select";let Z=class extends Me(X(_)){constructor(){super(...arguments),this.valueKey="value",this.wordingKey="wording",this.multiple=!1,this.status="default",this._options=[],this.hasDoneFirstUpdate=!1,this._value="",this.updateOptions=()=>{const r=this.querySelectorAll("option");r.length>0&&(this.options=Array.from(r).map(t=>({value:t.value,wording:t.text,selected:t.hasAttribute("selected")})))},this.forceAutoFill=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1}set options(r){this._options=r;for(const s of r)s.selected&&(this.value=s.value||"");!(this.value||this.getAttribute("value"))&&this._options.length>0&&(this.value=this._options[0][this.valueKey]),this.requestUpdate()}get options(){return this._options}firstUpdated(r){this.hasDoneFirstUpdate=!0,super.firstUpdated(r)}set value(r){r==null&&!this.hasDoneFirstUpdate||(r||(r=""),this._value!=r&&(this._value=r,this.updateFormPublisherValue(),this.requestUpdate()))}get value(){return this._value}updateFormPublisherValue(){this.setFormPublisherValue(this.value)}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps(),this.updateOptions()}get description(){return this._description}set description(r){this.hasAttribute("description")&&!this.forceAutoFill&&(r=this.getAttribute("description")),this._description=r,this.requestUpdate()}get label(){return this._label}set label(r){this.hasAttribute("label")&&!this.forceAutoFill&&(r=this.getAttribute("label")),this._label=r,this.requestUpdate()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){var r,t,s,i;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length),this.hasSuffix=!!((s=this.slotSuffixNodes)!=null&&s.length),this.hasPrefix=!!((i=this.slotPrefixNodes)!=null&&i.length)}validateFormElement(){var s;const r=(s=this.shadowRoot)==null?void 0:s.querySelector("select");if(!r||r.checkValidity())return;const t=this.getFormPublisher();t&&(t.isFormValid=!1),r.reportValidity()}render(){const r={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix};return m`
2333
2398
  <label
2334
2399
  for="form-element"
2335
2400
  class="${this.hasLabel?"form-label":"hidden"}"
@@ -2425,7 +2490,7 @@
2425
2490
  background: transparent;
2426
2491
  padding: 0;
2427
2492
  }
2428
- `],X([l({type:String})],Z.prototype,"valueKey",2),X([l({type:String})],Z.prototype,"wordingKey",2),X([l({type:Boolean})],Z.prototype,"multiple",2),X([l({type:String,reflect:!0})],Z.prototype,"size",2),X([l({type:Number})],Z.prototype,"selectSize",2),X([l({type:String,reflect:!0})],Z.prototype,"status",2),X([l({type:Array})],Z.prototype,"options",1),X([l({reflect:!0})],Z.prototype,"value",1),X([l({type:Boolean})],Z.prototype,"forceAutoFill",2),X([l()],Z.prototype,"description",1),X([l()],Z.prototype,"label",1),X([rt({slot:"label",flatten:!0})],Z.prototype,"slotLabelNodes",2),X([rt({slot:"description",flatten:!0})],Z.prototype,"slotDescriptionNodes",2),X([rt({slot:"suffix",flatten:!0})],Z.prototype,"slotSuffixNodes",2),X([rt({slot:"prefix",flatten:!0})],Z.prototype,"slotPrefixNodes",2),X([T()],Z.prototype,"hasDescription",2),X([T()],Z.prototype,"hasLabel",2),X([T()],Z.prototype,"hasSuffix",2),X([T()],Z.prototype,"hasPrefix",2),Z=X([w(bc)],Z);var vc=Object.defineProperty,yc=Object.getOwnPropertyDescriptor,bt=(r,t,s,i)=>{for(var e=i>1?void 0:i?yc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&vc(t,s,e),e};const _c="sonic-textarea";let ht=class extends zs(Me(Q(_))){constructor(){super(...arguments),this.size="md",this.readonly=!1,this.resize="vertical",this.hasDescription=!1,this.hasLabel=!1}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){var r,t;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length)}validateFormElement(){var s;const r=(s=this.shadowRoot)==null?void 0:s.querySelector("textarea");if(!r||r.checkValidity())return;const t=this.getFormPublisher();t&&(t.isFormValid=!1),r.reportValidity()}render(){const r={resize:this.resize};return m`
2493
+ `],Q([l({type:String})],Z.prototype,"valueKey",2),Q([l({type:String})],Z.prototype,"wordingKey",2),Q([l({type:Boolean})],Z.prototype,"multiple",2),Q([l({type:String,reflect:!0})],Z.prototype,"size",2),Q([l({type:Number})],Z.prototype,"selectSize",2),Q([l({type:String,reflect:!0})],Z.prototype,"status",2),Q([l({type:Array})],Z.prototype,"options",1),Q([l({reflect:!0})],Z.prototype,"value",1),Q([l({type:Boolean})],Z.prototype,"forceAutoFill",2),Q([l()],Z.prototype,"description",1),Q([l()],Z.prototype,"label",1),Q([rt({slot:"label",flatten:!0})],Z.prototype,"slotLabelNodes",2),Q([rt({slot:"description",flatten:!0})],Z.prototype,"slotDescriptionNodes",2),Q([rt({slot:"suffix",flatten:!0})],Z.prototype,"slotSuffixNodes",2),Q([rt({slot:"prefix",flatten:!0})],Z.prototype,"slotPrefixNodes",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),Z=Q([w($c)],Z);var xc=Object.defineProperty,Pc=Object.getOwnPropertyDescriptor,vt=(r,t,s,i)=>{for(var e=i>1?void 0:i?Pc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&xc(t,s,e),e};const Ac="sonic-textarea";let ht=class extends zs(Me(X(_))){constructor(){super(...arguments),this.size="md",this.readonly=!1,this.resize="vertical",this.hasDescription=!1,this.hasLabel=!1}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){var r,t;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length)}validateFormElement(){var s;const r=(s=this.shadowRoot)==null?void 0:s.querySelector("textarea");if(!r||r.checkValidity())return;const t=this.getFormPublisher();t&&(t.isFormValid=!1),r.reportValidity()}render(){const r={resize:this.resize};return m`
2429
2494
  <label
2430
2495
  for="${this.id||"form-element"}"
2431
2496
  class="${this.hasLabel?"form-label":"hidden"}"
@@ -2457,7 +2522,7 @@
2457
2522
  class="form-element textarea custom-scroll"
2458
2523
  aria-label=${x(this.ariaLabel)}
2459
2524
  aria-labelledby=${x(this.ariaLabelledby)}
2460
- style=${ft(r)}
2525
+ style=${mt(r)}
2461
2526
  >
2462
2527
  ${this.value}</textarea
2463
2528
  >
@@ -2474,7 +2539,7 @@ ${this.value}</textarea
2474
2539
  overflow-y: auto !important;
2475
2540
  font-size: inherit;
2476
2541
  }
2477
- `],bt([l({type:String})],ht.prototype,"size",2),bt([l({type:Number})],ht.prototype,"rows",2),bt([l({type:Number})],ht.prototype,"cols",2),bt([l({type:Number})],ht.prototype,"maxlength",2),bt([l({type:Number})],ht.prototype,"minlength",2),bt([l({type:String})],ht.prototype,"wrap",2),bt([l({type:Boolean})],ht.prototype,"readonly",2),bt([l({type:String})],ht.prototype,"placeholder",2),bt([l({type:String})],ht.prototype,"resize",2),bt([rt({slot:"label",flatten:!0})],ht.prototype,"slotLabelNodes",2),bt([rt({slot:"description",flatten:!0})],ht.prototype,"slotDescriptionNodes",2),bt([T()],ht.prototype,"hasDescription",2),bt([T()],ht.prototype,"hasLabel",2),ht=bt([w(_c)],ht);var wc=Object.defineProperty,$c=Object.getOwnPropertyDescriptor,xc=(r,t,s,i)=>{for(var e=i>1?void 0:i?$c(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&wc(t,s,e),e};let Ri=class extends _{render(){return m`<slot></slot>`}};Ri.styles=[$`
2542
+ `],vt([l({type:String})],ht.prototype,"size",2),vt([l({type:Number})],ht.prototype,"rows",2),vt([l({type:Number})],ht.prototype,"cols",2),vt([l({type:Number})],ht.prototype,"maxlength",2),vt([l({type:Number})],ht.prototype,"minlength",2),vt([l({type:String})],ht.prototype,"wrap",2),vt([l({type:Boolean})],ht.prototype,"readonly",2),vt([l({type:String})],ht.prototype,"placeholder",2),vt([l({type:String})],ht.prototype,"resize",2),vt([rt({slot:"label",flatten:!0})],ht.prototype,"slotLabelNodes",2),vt([rt({slot:"description",flatten:!0})],ht.prototype,"slotDescriptionNodes",2),vt([T()],ht.prototype,"hasDescription",2),vt([T()],ht.prototype,"hasLabel",2),ht=vt([w(Ac)],ht);var Cc=Object.defineProperty,Sc=Object.getOwnPropertyDescriptor,Oc=(r,t,s,i)=>{for(var e=i>1?void 0:i?Sc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Cc(t,s,e),e};let Ui=class extends _{render(){return m`<slot></slot>`}};Ui.styles=[$`
2478
2543
  :host {
2479
2544
  font-size: 1.15rem;
2480
2545
  line-height: 1.2;
@@ -2484,7 +2549,7 @@ ${this.value}</textarea
2484
2549
  font-style: var(--sc-font-style-base, normal);
2485
2550
  margin-top: 0.2em;
2486
2551
  }
2487
- `],Ri=xc([w("sonic-legend-description")],Ri);var Pc=Object.defineProperty,Ac=Object.getOwnPropertyDescriptor,xe=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ac(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Pc(t,s,e),e};const Cc="sonic-legend";let Ht=class extends _{constructor(){super(...arguments),this.forceAutoFill=!1}get description(){return this._description}set description(r){this.hasAttribute("description")&&!this.forceAutoFill&&(r=this.getAttribute("description")),this._description=r,this.requestUpdate()}get label(){return this._label}set label(r){this.hasAttribute("label")&&!this.forceAutoFill&&(r=this.getAttribute("label")),this._label=r,this.requestUpdate()}render(){return m`<legend part="legend">
2552
+ `],Ui=Oc([w("sonic-legend-description")],Ui);var Dc=Object.defineProperty,kc=Object.getOwnPropertyDescriptor,xe=(r,t,s,i)=>{for(var e=i>1?void 0:i?kc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Dc(t,s,e),e};const Lc="sonic-legend";let Ht=class extends _{constructor(){super(...arguments),this.forceAutoFill=!1}get description(){return this._description}set description(r){this.hasAttribute("description")&&!this.forceAutoFill&&(r=this.getAttribute("description")),this._description=r,this.requestUpdate()}get label(){return this._label}set label(r){this.hasAttribute("label")&&!this.forceAutoFill&&(r=this.getAttribute("label")),this._label=r,this.requestUpdate()}render(){return m`<legend part="legend">
2488
2553
  ${this.iconName?m`<div class="icon">
2489
2554
  <sonic-icon
2490
2555
  name=${this.iconName}
@@ -2539,7 +2604,7 @@ ${this.value}</textarea
2539
2604
  .legend-content {
2540
2605
  flex-grow: 1;
2541
2606
  }
2542
- `],xe([l({type:Boolean})],Ht.prototype,"forceAutoFill",2),xe([l()],Ht.prototype,"description",1),xe([l()],Ht.prototype,"label",1),xe([l({type:String})],Ht.prototype,"iconName",2),xe([l({type:String})],Ht.prototype,"iconLibrary",2),xe([l({type:String})],Ht.prototype,"iconPrefix",2),Ht=xe([w(Cc)],Ht);var Sc=Object.defineProperty,Oc=Object.getOwnPropertyDescriptor,Tt=(r,t,s,i)=>{for(var e=i>1?void 0:i?Oc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Sc(t,s,e),e};const Dc="sonic-fieldset";let xt=class extends Q(_){constructor(){super(...arguments),this.disabled=!1,this.variant="default"}render(){return m`<fieldset
2607
+ `],xe([l({type:Boolean})],Ht.prototype,"forceAutoFill",2),xe([l()],Ht.prototype,"description",1),xe([l()],Ht.prototype,"label",1),xe([l({type:String})],Ht.prototype,"iconName",2),xe([l({type:String})],Ht.prototype,"iconLibrary",2),xe([l({type:String})],Ht.prototype,"iconPrefix",2),Ht=xe([w(Lc)],Ht);var Ec=Object.defineProperty,Nc=Object.getOwnPropertyDescriptor,Tt=(r,t,s,i)=>{for(var e=i>1?void 0:i?Nc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ec(t,s,e),e};const Tc="sonic-fieldset";let xt=class extends X(_){constructor(){super(...arguments),this.disabled=!1,this.variant="default"}render(){return m`<fieldset
2543
2608
  form="${x(this.form)}"
2544
2609
  ?disabled="${this.disabled}"
2545
2610
  >
@@ -2600,7 +2665,7 @@ ${this.value}</textarea
2600
2665
  ::slotted(sonic-legend:last-child) {
2601
2666
  margin-bottom: 0;
2602
2667
  }
2603
- `],Tt([l({type:Boolean,reflect:!0})],xt.prototype,"disabled",2),Tt([l({type:String})],xt.prototype,"form",2),Tt([l({type:String})],xt.prototype,"label",2),Tt([l({type:String})],xt.prototype,"description",2),Tt([l({type:String})],xt.prototype,"iconName",2),Tt([l({type:String})],xt.prototype,"iconLibrary",2),Tt([l({type:String})],xt.prototype,"iconPrefix",2),Tt([l({type:Boolean,reflect:!0})],xt.prototype,"tight",2),Tt([l({type:String,reflect:!0})],xt.prototype,"variant",2),xt=Tt([w(Dc)],xt);var kc=Object.defineProperty,Lc=Object.getOwnPropertyDescriptor,Ui=(r,t,s,i)=>{for(var e=i>1?void 0:i?Lc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&kc(t,s,e),e};const Ec="sonic-form-layout";let ds=class extends Q(_){constructor(){super(...arguments),this._resizeController=new wo(this,{}),this.oneFormElement=!1}onSlotChange(){let r=this.slottedElements;const t=["sonic-input","sonic-select","sonic-input-autocomplete",".form-item-container"];r=r.filter(s=>t.includes(s.nodeName.toLowerCase())),this.oneFormElement=r.length==1}render(){const r={"cq--md":this.offsetWidth>440,"one-form-element":this.oneFormElement};return m`<div class=${Fi(r)}>
2668
+ `],Tt([l({type:Boolean,reflect:!0})],xt.prototype,"disabled",2),Tt([l({type:String})],xt.prototype,"form",2),Tt([l({type:String})],xt.prototype,"label",2),Tt([l({type:String})],xt.prototype,"description",2),Tt([l({type:String})],xt.prototype,"iconName",2),Tt([l({type:String})],xt.prototype,"iconLibrary",2),Tt([l({type:String})],xt.prototype,"iconPrefix",2),Tt([l({type:Boolean,reflect:!0})],xt.prototype,"tight",2),Tt([l({type:String,reflect:!0})],xt.prototype,"variant",2),xt=Tt([w(Tc)],xt);var Mc=Object.defineProperty,Ic=Object.getOwnPropertyDescriptor,Vi=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ic(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Mc(t,s,e),e};const jc="sonic-form-layout";let ds=class extends X(_){constructor(){super(...arguments),this._resizeController=new $o(this,{}),this.oneFormElement=!1}onSlotChange(){let r=this.slottedElements;const t=["sonic-input","sonic-select","sonic-input-autocomplete",".form-item-container"];r=r.filter(s=>t.includes(s.nodeName.toLowerCase())),this.oneFormElement=r.length==1}render(){const r={"cq--md":this.offsetWidth>440,"one-form-element":this.oneFormElement};return m`<div class=${Fi(r)}>
2604
2669
  <slot @slotchange=${this.onSlotChange}></slot>
2605
2670
  </div>`}};ds.styles=[$`
2606
2671
  :host {
@@ -2637,7 +2702,7 @@ ${this.value}</textarea
2637
2702
  ::slotted(sonic-divider) {
2638
2703
  --sc-divider-my: 0;
2639
2704
  }
2640
- `],Ui([ne({flatten:!0})],ds.prototype,"slottedElements",2),Ui([l({type:Boolean})],ds.prototype,"oneFormElement",2),ds=Ui([w(Ec)],ds);var Nc=Object.defineProperty,Tc=Object.getOwnPropertyDescriptor,Vi=(r,t,s,i)=>{for(var e=i>1?void 0:i?Tc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Nc(t,s,e),e};const Mc="sonic-form-actions";let ps=class extends _{constructor(){super(...arguments),this.direction="row",this.justify="flex-start"}render(){const r={flexDirection:this.direction,justifyContent:this.justify};return m`<slot style=${ft(r)}></slot>`}};ps.styles=[$`
2705
+ `],Vi([ne({flatten:!0})],ds.prototype,"slottedElements",2),Vi([l({type:Boolean})],ds.prototype,"oneFormElement",2),ds=Vi([w(jc)],ds);var Fc=Object.defineProperty,zc=Object.getOwnPropertyDescriptor,Hi=(r,t,s,i)=>{for(var e=i>1?void 0:i?zc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Fc(t,s,e),e};const Rc="sonic-form-actions";let ps=class extends _{constructor(){super(...arguments),this.direction="row",this.justify="flex-start"}render(){const r={flexDirection:this.direction,justifyContent:this.justify};return m`<slot style=${mt(r)}></slot>`}};ps.styles=[$`
2641
2706
  :host {
2642
2707
  display: block;
2643
2708
  }
@@ -2646,13 +2711,13 @@ ${this.value}</textarea
2646
2711
  flex-wrap: wrap;
2647
2712
  gap: 0.3rem;
2648
2713
  }
2649
- `],Vi([l({type:String})],ps.prototype,"direction",2),Vi([l({type:String})],ps.prototype,"justify",2),ps=Vi([w(Mc)],ps);var Ic=Object.defineProperty,jc=Object.getOwnPropertyDescriptor,se=(r,t,s,i)=>{for(var e=i>1?void 0:i?jc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ic(t,s,e),e};const Fc="sonic-group";let Mt=class extends _{constructor(){super(...arguments),this.alignItems="center",this.hasDescription=!1,this.hasLabel=!1}updated(){const r=this.querySelectorAll("sonic-input, sonic-button, sonic-select"),t=r.length;t>1&&r.forEach((s,i)=>{const e=s;i===0?(e.style.setProperty("--sc-item-rounded-tr","0"),e.style.setProperty("--sc-item-rounded-br","0")):i===t-1?(e.style.setProperty("--sc-item-rounded-tl","0"),e.style.setProperty("--sc-item-rounded-bl","0")):(e.style.setProperty("--sc-item-rounded-tr","0"),e.style.setProperty("--sc-item-rounded-br","0"),e.style.setProperty("--sc-item-rounded-tl","0"),e.style.setProperty("--sc-item-rounded-bl","0"))})}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){var r,t;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length)}render(){const r={alignItems:this.alignItems};return m`<span class="${this.hasLabel?"form-label":"hidden"}"
2714
+ `],Hi([l({type:String})],ps.prototype,"direction",2),Hi([l({type:String})],ps.prototype,"justify",2),ps=Hi([w(Rc)],ps);var Uc=Object.defineProperty,Vc=Object.getOwnPropertyDescriptor,se=(r,t,s,i)=>{for(var e=i>1?void 0:i?Vc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Uc(t,s,e),e};const Hc="sonic-group";let Mt=class extends _{constructor(){super(...arguments),this.alignItems="center",this.hasDescription=!1,this.hasLabel=!1}updated(){const r=this.querySelectorAll("sonic-input, sonic-button, sonic-select"),t=r.length;t>1&&r.forEach((s,i)=>{const e=s;i===0?(e.style.setProperty("--sc-item-rounded-tr","0"),e.style.setProperty("--sc-item-rounded-br","0")):i===t-1?(e.style.setProperty("--sc-item-rounded-tl","0"),e.style.setProperty("--sc-item-rounded-bl","0")):(e.style.setProperty("--sc-item-rounded-tr","0"),e.style.setProperty("--sc-item-rounded-br","0"),e.style.setProperty("--sc-item-rounded-tl","0"),e.style.setProperty("--sc-item-rounded-bl","0"))})}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){var r,t;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length)}render(){const r={alignItems:this.alignItems};return m`<span class="${this.hasLabel?"form-label":"hidden"}"
2650
2715
  >${this.label?F(this.label):""}<slot
2651
2716
  name="label"
2652
2717
  @slotchange=${this.hasSlotOrProps}
2653
2718
  ></slot
2654
2719
  ></span>
2655
- <slot class="main-slot" style=${ft(r)}></slot>
2720
+ <slot class="main-slot" style=${mt(r)}></slot>
2656
2721
  <slot
2657
2722
  name="description"
2658
2723
  @slotchange=${this.hasSlotOrProps}
@@ -2679,14 +2744,14 @@ ${this.value}</textarea
2679
2744
  ::slotted(sonic-select) {
2680
2745
  flex-grow: 1;
2681
2746
  }
2682
- `],se([l({type:String})],Mt.prototype,"alignItems",2),se([l({type:String})],Mt.prototype,"label",2),se([l({type:String})],Mt.prototype,"description",2),se([rt({slot:"label",flatten:!0})],Mt.prototype,"slotLabelNodes",2),se([rt({slot:"description",flatten:!0})],Mt.prototype,"slotDescriptionNodes",2),se([T()],Mt.prototype,"hasDescription",2),se([T()],Mt.prototype,"hasLabel",2),Mt=se([w(Fc)],Mt);var zc=Object.defineProperty,Rc=Object.getOwnPropertyDescriptor,It=(r,t,s,i)=>{for(var e=i>1?void 0:i?Rc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&zc(t,s,e),e};const Uc="sonic-image";let Pt=class extends _{constructor(){super(...arguments),this.rounded="none",this.src="",this.alt="",this.loading="lazy",this.ratio="auto",this.objectPosition="center center",this.imageRendering="auto",this.cover=!1}firstUpdated(r){var t;if(this.transition){const s=(t=this.shadowRoot)==null?void 0:t.querySelector("img");if(!s)return;s.onload=function(){s.classList.add("loaded")}}super.firstUpdated(r)}render(){const r={aspectRatio:this.cover?"auto":this.ratio,imageRendering:this.imageRendering,objectPosition:this.objectPosition};return m`<div part="image">
2747
+ `],se([l({type:String})],Mt.prototype,"alignItems",2),se([l({type:String})],Mt.prototype,"label",2),se([l({type:String})],Mt.prototype,"description",2),se([rt({slot:"label",flatten:!0})],Mt.prototype,"slotLabelNodes",2),se([rt({slot:"description",flatten:!0})],Mt.prototype,"slotDescriptionNodes",2),se([T()],Mt.prototype,"hasDescription",2),se([T()],Mt.prototype,"hasLabel",2),Mt=se([w(Hc)],Mt);var Bc=Object.defineProperty,qc=Object.getOwnPropertyDescriptor,It=(r,t,s,i)=>{for(var e=i>1?void 0:i?qc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Bc(t,s,e),e};const Wc="sonic-image";let Pt=class extends _{constructor(){super(...arguments),this.rounded="none",this.src="",this.alt="",this.loading="lazy",this.ratio="auto",this.objectPosition="center center",this.imageRendering="auto",this.cover=!1}firstUpdated(r){var t;if(this.transition){const s=(t=this.shadowRoot)==null?void 0:t.querySelector("img");if(!s)return;s.onload=function(){s.classList.add("loaded")}}super.firstUpdated(r)}render(){const r={aspectRatio:this.cover?"auto":this.ratio,imageRendering:this.imageRendering,objectPosition:this.objectPosition};return m`<div part="image">
2683
2748
  <picture part="picture"
2684
2749
  ><img
2685
2750
  part="img"
2686
2751
  src="${this.src}"
2687
2752
  loading="${this.loading}"
2688
2753
  alt="${this.alt}"
2689
- style=${ft(r)}
2754
+ style=${mt(r)}
2690
2755
  /></picture>
2691
2756
  </div>`}};Pt.styles=[$`
2692
2757
  :host {
@@ -2762,18 +2827,18 @@ ${this.value}</textarea
2762
2827
  opacity: 1;
2763
2828
  scale: 1;
2764
2829
  }
2765
- `],It([l({type:String})],Pt.prototype,"rounded",2),It([l({type:String})],Pt.prototype,"src",2),It([l({type:String})],Pt.prototype,"alt",2),It([l({type:String})],Pt.prototype,"loading",2),It([l({type:String,reflect:!0})],Pt.prototype,"transition",2),It([l({type:String})],Pt.prototype,"ratio",2),It([l({type:String})],Pt.prototype,"objectPosition",2),It([l({type:String})],Pt.prototype,"imageRendering",2),It([l({type:Boolean,reflect:!0})],Pt.prototype,"cover",2),Pt=It([w(Uc)],Pt);var Vc=Object.defineProperty,Hc=Object.getOwnPropertyDescriptor,wt=(r,t,s,i)=>{for(var e=i>1?void 0:i?Hc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Vc(t,s,e),e};const Bc="sonic-menu";let ut=class extends _{constructor(){super(...arguments),this.direction="column",this.gap="var(--sc-menu-gap)",this.align="left",this.shadow=null,this.moreShape="circle",this.scrollable=!1,this.observer=null,this.minWidth="0",this.hasMoreElements=!1,this.updateIsScollable=()=>{this.scrollable&&(this.initScrollable(),this.setScrollShadow(this,this.direction))}}checkIfMore(){var r;this.hasMoreElements=!!((r=this.moreElements)!=null&&r.length)}updated(r){const t=this.querySelector(".more-btn");this.size&&t&&t.setAttribute("size",this.size),this.querySelectorAll("sonic-divider").forEach(i=>{i.hasAttribute("size")||i.setAttribute("size","xs")}),super.updated(r)}mainSlotChange(){this.setChildrenSize(this.menuChildren),this.updateIsScollable()}connectedCallback(){this.observer=new ResizeObserver(this.updateIsScollable),this.observer.observe(this),super.connectedCallback()}disconnectedCallback(){var r;(r=this.observer)==null||r.disconnect(),super.disconnectedCallback()}initScrollable(){let r=!1,t,s;this.scrollable&&(this.addEventListener("mousedown",i=>{r=!0,this.classList.add("active"),t=i.pageX-this.offsetLeft,s=this.scrollLeft}),this.addEventListener("mouseleave",()=>{r=!1,this.classList.remove("active")}),this.addEventListener("mouseup",()=>{r=!1,this.classList.remove("active")}),this.addEventListener("mousemove",i=>{if(!r)return;i.preventDefault();const o=(i.pageX-this.offsetLeft-t)*1.5;this.scrollLeft=s-o,this.setScrollShadow(this,this.direction)}),this.addEventListener("scroll",i=>{i.preventDefault(),this.setScrollShadow(this,this.direction)}))}setScrollShadow(r,t){t=="row"?(r.scrollLeft>0?this.classList.add("shadow-left"):this.classList.remove("shadow-left"),r.scrollLeft<r.scrollWidth-r.offsetWidth?this.classList.add("shadow-right"):this.classList.remove("shadow-right")):t=="column"&&(r.scrollTop>0?this.classList.add("shadow-top"):this.classList.remove("shadow-top"),r.scrollTop<r.scrollHeight-(r.offsetHeight+1)?this.classList.add("shadow-bottom"):this.classList.remove("shadow-bottom"))}setChildrenSize(r){r.forEach(t=>{this.size&&t.setAttribute("size",this.size),this.align&&t.getAttribute("shape")!="square"&&t.getAttribute("shape")!="circle"&&t.setAttribute("align",this.align),this.direction=="row"&&t.getAttribute("shape")=="block"&&t.setAttribute("shape","default")})}render(){const r={minWidth:this.minWidth,flexDirection:this.direction,gap:this.gap},t=this.direction=="row",s={display:"block",alignSelf:t?"center":"flex-start",justifySelf:"center",flexDirection:this.direction},i={marginLeft:t?"":".55em"};return m`<menu
2830
+ `],It([l({type:String})],Pt.prototype,"rounded",2),It([l({type:String})],Pt.prototype,"src",2),It([l({type:String})],Pt.prototype,"alt",2),It([l({type:String})],Pt.prototype,"loading",2),It([l({type:String,reflect:!0})],Pt.prototype,"transition",2),It([l({type:String})],Pt.prototype,"ratio",2),It([l({type:String})],Pt.prototype,"objectPosition",2),It([l({type:String})],Pt.prototype,"imageRendering",2),It([l({type:Boolean,reflect:!0})],Pt.prototype,"cover",2),Pt=It([w(Wc)],Pt);var Kc=Object.defineProperty,Yc=Object.getOwnPropertyDescriptor,wt=(r,t,s,i)=>{for(var e=i>1?void 0:i?Yc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Kc(t,s,e),e};const Zc="sonic-menu";let ft=class extends _{constructor(){super(...arguments),this.direction="column",this.gap="var(--sc-menu-gap)",this.align="left",this.shadow=null,this.moreShape="circle",this.scrollable=!1,this.observer=null,this.minWidth="0",this.hasMoreElements=!1,this.updateIsScollable=()=>{this.scrollable&&(this.initScrollable(),this.setScrollShadow(this,this.direction))}}checkIfMore(){var r;this.hasMoreElements=!!((r=this.moreElements)!=null&&r.length)}updated(r){const t=this.querySelector(".more-btn");this.size&&t&&t.setAttribute("size",this.size),this.querySelectorAll("sonic-divider").forEach(i=>{i.hasAttribute("size")||i.setAttribute("size","xs")}),super.updated(r)}mainSlotChange(){this.setChildrenSize(this.menuChildren),this.updateIsScollable()}connectedCallback(){this.observer=new ResizeObserver(this.updateIsScollable),this.observer.observe(this),super.connectedCallback()}disconnectedCallback(){var r;(r=this.observer)==null||r.disconnect(),super.disconnectedCallback()}initScrollable(){let r=!1,t,s;this.scrollable&&(this.addEventListener("mousedown",i=>{r=!0,this.classList.add("active"),t=i.pageX-this.offsetLeft,s=this.scrollLeft}),this.addEventListener("mouseleave",()=>{r=!1,this.classList.remove("active")}),this.addEventListener("mouseup",()=>{r=!1,this.classList.remove("active")}),this.addEventListener("mousemove",i=>{if(!r)return;i.preventDefault();const o=(i.pageX-this.offsetLeft-t)*1.5;this.scrollLeft=s-o,this.setScrollShadow(this,this.direction)}),this.addEventListener("scroll",i=>{i.preventDefault(),this.setScrollShadow(this,this.direction)}))}setScrollShadow(r,t){t=="row"?(r.scrollLeft>0?this.classList.add("shadow-left"):this.classList.remove("shadow-left"),r.scrollLeft<r.scrollWidth-r.offsetWidth?this.classList.add("shadow-right"):this.classList.remove("shadow-right")):t=="column"&&(r.scrollTop>0?this.classList.add("shadow-top"):this.classList.remove("shadow-top"),r.scrollTop<r.scrollHeight-(r.offsetHeight+1)?this.classList.add("shadow-bottom"):this.classList.remove("shadow-bottom"))}setChildrenSize(r){r.forEach(t=>{this.size&&t.setAttribute("size",this.size),this.align&&t.getAttribute("shape")!="square"&&t.getAttribute("shape")!="circle"&&t.setAttribute("align",this.align),this.direction=="row"&&t.getAttribute("shape")=="block"&&t.setAttribute("shape","default")})}render(){const r={minWidth:this.minWidth,flexDirection:this.direction,gap:this.gap},t=this.direction=="row",s={display:"block",alignSelf:t?"center":"flex-start",justifySelf:"center",flexDirection:this.direction},i={marginLeft:t?"":".55em"};return m`<menu
2766
2831
  part="menu"
2767
2832
  class="shadowable"
2768
- style=${ft(r)}
2833
+ style=${mt(r)}
2769
2834
  >
2770
2835
  <slot @slotchange=${this.mainSlotChange}></slot>
2771
2836
  <sonic-pop
2772
- style=${ft(s)}
2837
+ style=${mt(s)}
2773
2838
  class=${this.hasMoreElements?"":"hidden"}
2774
2839
  >
2775
2840
  <sonic-menu-item
2776
- style=${ft(i)}
2841
+ style=${mt(i)}
2777
2842
  class="more-btn"
2778
2843
  shape=${this.moreShape}
2779
2844
  align="center"
@@ -2785,7 +2850,7 @@ ${this.value}</textarea
2785
2850
  </sonic-menu-item>
2786
2851
  <slot name="more" @slotchange=${this.checkIfMore} slot="content"></slot>
2787
2852
  </sonic-pop>
2788
- </menu>`}};ut.styles=[$`
2853
+ </menu>`}};ft.styles=[$`
2789
2854
  :host {
2790
2855
  display: block;
2791
2856
  --sc-menu-gap: 0.15rem;
@@ -2902,14 +2967,14 @@ ${this.value}</textarea
2902
2967
  rgba(0, 0, 0, 0) 100%
2903
2968
  );
2904
2969
  }
2905
- `,yo],wt([l({type:String,reflect:!0})],ut.prototype,"size",2),wt([l({type:String,reflect:!0})],ut.prototype,"direction",2),wt([l({type:String})],ut.prototype,"gap",2),wt([l({type:String,reflect:!0})],ut.prototype,"align",2),wt([l({type:String,reflect:!0})],ut.prototype,"shadow",2),wt([l({type:String})],ut.prototype,"moreShape",2),wt([l({type:Boolean})],ut.prototype,"scrollable",2),wt([l({type:String})],ut.prototype,"minWidth",2),wt([oe("menu")],ut.prototype,"menu",2),wt([ne({selector:"sonic-menu-item"})],ut.prototype,"menuChildren",2),wt([ne({slot:"more",selector:"*"})],ut.prototype,"moreElements",2),wt([T()],ut.prototype,"hasMoreElements",2),ut=wt([w(Bc)],ut);var qc=Object.defineProperty,Wc=Object.getOwnPropertyDescriptor,$o=(r,t,s,i)=>{for(var e=i>1?void 0:i?Wc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&qc(t,s,e),e};const Kc="sonic-modal-actions";let Zs=class extends _{firstUpdated(r){var t;(t=this.buttons)==null||t.forEach(s=>{s.addEventListener("click",()=>{if(s.getAttribute("hideModal")!="false"){const i=fe.getClosestElement(this,"sonic-modal");i==null||i.hide()}})}),super.firstUpdated(r)}render(){return m`<slot></slot>`}};Zs.styles=[$`
2970
+ `,_o],wt([l({type:String,reflect:!0})],ft.prototype,"size",2),wt([l({type:String,reflect:!0})],ft.prototype,"direction",2),wt([l({type:String})],ft.prototype,"gap",2),wt([l({type:String,reflect:!0})],ft.prototype,"align",2),wt([l({type:String,reflect:!0})],ft.prototype,"shadow",2),wt([l({type:String})],ft.prototype,"moreShape",2),wt([l({type:Boolean})],ft.prototype,"scrollable",2),wt([l({type:String})],ft.prototype,"minWidth",2),wt([oe("menu")],ft.prototype,"menu",2),wt([ne({selector:"sonic-menu-item"})],ft.prototype,"menuChildren",2),wt([ne({slot:"more",selector:"*"})],ft.prototype,"moreElements",2),wt([T()],ft.prototype,"hasMoreElements",2),ft=wt([w(Zc)],ft);var Gc=Object.defineProperty,Xc=Object.getOwnPropertyDescriptor,xo=(r,t,s,i)=>{for(var e=i>1?void 0:i?Xc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Gc(t,s,e),e};const Qc="sonic-modal-actions";let Zs=class extends _{firstUpdated(r){var t;(t=this.buttons)==null||t.forEach(s=>{s.hasAttribute("hideModal")&&s.addEventListener("click",()=>{const i=fe.getClosestElement(this,"sonic-modal");i==null||i.hide()})}),super.firstUpdated(r)}render(){return m`<slot></slot>`}};Zs.styles=[$`
2906
2971
  :host {
2907
2972
  display: flex;
2908
2973
  gap: 0.5rem;
2909
2974
  margin-top: auto;
2910
2975
  padding-top: 1.5rem;
2911
2976
  }
2912
- `],$o([ne({selector:"sonic-button"})],Zs.prototype,"buttons",2),Zs=$o([w(Kc)],Zs);var Yc=Object.defineProperty,Zc=Object.getOwnPropertyDescriptor,xo=(r,t,s,i)=>{for(var e=i>1?void 0:i?Zc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Yc(t,s,e),e};const Gc="sonic-modal-close";let Gs=class extends _{render(){return m`<sonic-button reset=${x(this.reset)} shape="circle" @click=${this.handleClick}
2977
+ `],xo([ne({selector:"sonic-button"})],Zs.prototype,"buttons",2),Zs=xo([w(Qc)],Zs);var Jc=Object.defineProperty,th=Object.getOwnPropertyDescriptor,Po=(r,t,s,i)=>{for(var e=i>1?void 0:i?th(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Jc(t,s,e),e};const eh="sonic-modal-close";let Gs=class extends _{render(){return m`<sonic-button reset=${x(this.reset)} shape="circle" @click=${this.handleClick}
2913
2978
  ><sonic-icon name="cancel" size="lg"></sonic-icon
2914
2979
  ></sonic-button>`}handleClick(){K.getClosestElement(this,"sonic-modal").hide()}};Gs.styles=[$`
2915
2980
  :host {
@@ -2922,12 +2987,12 @@ ${this.value}</textarea
2922
2987
  transform: translate3d(calc(var(--sc-modal-px)), calc(-1 * var(--sc-modal-py)), 0);
2923
2988
  z-index: 20;
2924
2989
  }
2925
- `],xo([l()],Gs.prototype,"reset",2),Gs=xo([w(Gc)],Gs);var Qc=Object.defineProperty,Xc=Object.getOwnPropertyDescriptor,Jc=(r,t,s,i)=>{for(var e=i>1?void 0:i?Xc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Qc(t,s,e),e};const th="sonic-modal-content";let Hi=class extends _{render(){return m`<slot></slot>`}};Hi.styles=[$`
2990
+ `],Po([l()],Gs.prototype,"reset",2),Gs=Po([w(eh)],Gs);var sh=Object.defineProperty,ih=Object.getOwnPropertyDescriptor,rh=(r,t,s,i)=>{for(var e=i>1?void 0:i?ih(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&sh(t,s,e),e};const oh="sonic-modal-content";let Bi=class extends _{render(){return m`<slot></slot>`}};Bi.styles=[$`
2926
2991
  :host {
2927
2992
  display: block;
2928
2993
  width: 100%;
2929
2994
  }
2930
- `],Hi=Jc([w(th)],Hi);var eh=Object.defineProperty,sh=Object.getOwnPropertyDescriptor,ih=(r,t,s,i)=>{for(var e=i>1?void 0:i?sh(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&eh(t,s,e),e};const rh="sonic-modal-subtitle";let Bi=class extends _{render(){return m`<slot></slot>`}};Bi.styles=[$`
2995
+ `],Bi=rh([w(oh)],Bi);var nh=Object.defineProperty,ah=Object.getOwnPropertyDescriptor,lh=(r,t,s,i)=>{for(var e=i>1?void 0:i?ah(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&nh(t,s,e),e};const ch="sonic-modal-subtitle";let qi=class extends _{render(){return m`<slot></slot>`}};qi.styles=[$`
2931
2996
  :host {
2932
2997
  font-size: 1.1rem;
2933
2998
  display: block;
@@ -2940,7 +3005,7 @@ ${this.value}</textarea
2940
3005
  font-weight: var(--sc-headings-font-weight, 700);
2941
3006
  font-style: var(--sc-headings-font-style, normal);
2942
3007
  }
2943
- `],Bi=ih([w(rh)],Bi);var oh=Object.defineProperty,nh=Object.getOwnPropertyDescriptor,ah=(r,t,s,i)=>{for(var e=i>1?void 0:i?nh(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&oh(t,s,e),e};const lh="sonic-modal-title";let qi=class extends _{render(){return m`<slot></slot>`}};qi.styles=[$`
3008
+ `],qi=lh([w(ch)],qi);var hh=Object.defineProperty,dh=Object.getOwnPropertyDescriptor,ph=(r,t,s,i)=>{for(var e=i>1?void 0:i?dh(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&hh(t,s,e),e};const uh="sonic-modal-title";let Wi=class extends _{render(){return m`<slot></slot>`}};Wi.styles=[$`
2944
3009
  :host {
2945
3010
  font-weight: bold;
2946
3011
  font-size: 1.5rem;
@@ -2953,16 +3018,16 @@ ${this.value}</textarea
2953
3018
  font-weight: var(--sc-headings-font-weight, 700);
2954
3019
  font-style: var(--sc-headings-font-style, normal);
2955
3020
  }
2956
- `],qi=ah([w(lh)],qi);var ch=Object.defineProperty,hh=Object.getOwnPropertyDescriptor,et=(r,t,s,i)=>{for(var e=i>1?void 0:i?hh(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ch(t,s,e),e};const Po="sonic-modal";let j=class extends Q(_){constructor(){super(...arguments),this.forceAction=!1,this.removeOnHide=!1,this.removeHashOnHide=!1,this.align="left",this.padding="var(--sc-modal-py) var(--sc-modal-px)",this.maxWidth="var(--sc-modal-max-w) ",this.maxHeight="var(--sc-modal-max-h) ",this.width="100%",this.height="auto",this.zIndex="var(--sc-modal-z-index)",this.fullScreen=!1,this.visible=!1}static create(r){const t=document.createElement(Po);return t.options=r,r.removeHashOnHide===!0&&t.setAttribute("removeHashOnHide","true"),r.removeOnHide===!0&&t.setAttribute("removeOnHide","true"),r.maxWidth&&(t.maxWidth=r==null?void 0:r.maxWidth),r.width&&(t.width=r==null?void 0:r.width),r.maxHeight&&(t.maxHeight=r==null?void 0:r.maxHeight),r.height&&(t.height=r==null?void 0:r.height),r.forceAction&&(t.forceAction=!0),r.fullScreen&&(t.fullScreen=r==null?void 0:r.fullScreen),r.effect&&(t.effect=r==null?void 0:r.effect),r.paddingX&&t.style.setProperty("--sc-modal-px",r==null?void 0:r.paddingX),r.paddingY&&t.style.setProperty("--sc-modal-py",r==null?void 0:r.paddingY),r.zIndex&&t.style.setProperty("--sc-modal-z-index",r==null?void 0:r.zIndex),yt.getPopContainer().appendChild(t),t.show(),t}connectedCallback(){j.modals.push(this),super.connectedCallback(),this.handleFullsceen()}disconnectedCallback(){j.modals.splice(j.modals.indexOf(this),1),super.disconnectedCallback()}updated(){const r=this;document.addEventListener("keydown",this.handleEscape),r.closeBtn.forEach(t=>{t.addEventListener("click",function(){r.hide()},{once:!0})})}willUpdate(r){r.has("fullScreen")&&this.handleFullsceen(),r.has("effect")&&(this.effect=="fade"?this.animation={keyframeOptions:{duration:400},in:Xr,out:Qr}:this.effect=="none"?this.animation=void 0:this.animation={keyframeOptions:{duration:400,easing:"cubic-bezier(0.250, 0.250, 0.420, 1.225)"},in:[{transform:"translateY(25%) scale(1)",boxShadow:"0 0 0 rgba(0,0,0,0)",opacity:0}],out:[{transform:"translateY(20%) scale(1)",boxShadow:"0 0 0 rgba(0,0,0,0)",opacity:0}]}),super.willUpdate(r)}render(){if(this.visible==!1)return A;const r={padding:this.padding,maxWidth:this.maxWidth,maxHeight:this.maxHeight,width:this.width,height:this.height,zIndex:this.zIndex,borderRadius:this.fullScreen?"0":"var(--sc-modal-rounded)"},t={maxWidth:this.maxWidth,maxHeight:this.maxHeight,width:this.width,height:this.height,borderRadius:this.fullScreen?"0":"var(--sc-modal-rounded)"};return m`<div
3021
+ `],Wi=ph([w(uh)],Wi);var fh=Object.defineProperty,mh=Object.getOwnPropertyDescriptor,et=(r,t,s,i)=>{for(var e=i>1?void 0:i?mh(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&fh(t,s,e),e};const Ao="sonic-modal";let j=class extends X(_){constructor(){super(...arguments),this.forceAction=!1,this.removeOnHide=!1,this.removeHashOnHide=!1,this.align="left",this.padding="var(--sc-modal-py) var(--sc-modal-px)",this.maxWidth="var(--sc-modal-max-w) ",this.maxHeight="var(--sc-modal-max-h) ",this.width="100%",this.height="auto",this.zIndex="var(--sc-modal-z-index)",this.fullScreen=!1,this.visible=!1}static create(r){const t=document.createElement(Ao);return t.options=r,r.removeHashOnHide===!0&&t.setAttribute("removeHashOnHide","true"),r.removeOnHide===!0&&t.setAttribute("removeOnHide","true"),r.maxWidth&&(t.maxWidth=r==null?void 0:r.maxWidth),r.width&&(t.width=r==null?void 0:r.width),r.maxHeight&&(t.maxHeight=r==null?void 0:r.maxHeight),r.height&&(t.height=r==null?void 0:r.height),r.forceAction&&(t.forceAction=!0),r.fullScreen&&(t.fullScreen=r==null?void 0:r.fullScreen),r.effect&&(t.effect=r==null?void 0:r.effect),r.paddingX&&t.style.setProperty("--sc-modal-px",r==null?void 0:r.paddingX),r.paddingY&&t.style.setProperty("--sc-modal-py",r==null?void 0:r.paddingY),r.zIndex&&t.style.setProperty("--sc-modal-z-index",r==null?void 0:r.zIndex),_t.getPopContainer().appendChild(t),t.show(),t}connectedCallback(){j.modals.push(this),super.connectedCallback(),this.handleFullsceen()}disconnectedCallback(){j.modals.splice(j.modals.indexOf(this),1),super.disconnectedCallback()}updated(){const r=this;document.addEventListener("keydown",this.handleEscape),r.closeBtn.forEach(t=>{t.addEventListener("click",function(){r.hide()},{once:!0})})}willUpdate(r){r.has("fullScreen")&&this.handleFullsceen(),r.has("effect")&&(this.effect=="fade"?this.animation={keyframeOptions:{duration:400},in:Jr,out:Qr}:this.effect=="none"?this.animation=void 0:this.animation={keyframeOptions:{duration:400,easing:"cubic-bezier(0.250, 0.250, 0.420, 1.225)"},in:[{transform:"translateY(25%) scale(1)",boxShadow:"0 0 0 rgba(0,0,0,0)",opacity:0}],out:[{transform:"translateY(20%) scale(1)",boxShadow:"0 0 0 rgba(0,0,0,0)",opacity:0}]}),super.willUpdate(r)}render(){if(this.visible==!1)return A;const r={padding:this.padding,maxWidth:this.maxWidth,maxHeight:this.maxHeight,width:this.width,height:this.height,zIndex:this.zIndex,borderRadius:this.fullScreen?"0":"var(--sc-modal-rounded)"},t={maxWidth:this.maxWidth,maxHeight:this.maxHeight,width:this.width,height:this.height,borderRadius:this.fullScreen?"0":"var(--sc-modal-rounded)"};return m`<div
2957
3022
  class="modal-wrapper"
2958
- style=${ft(t)}
3023
+ style=${mt(t)}
2959
3024
  ${Is({out:Qr})}
2960
3025
  tabindex="0"
2961
3026
  >
2962
3027
  <div
2963
3028
  part="modal"
2964
3029
  class="modal custom-scroll"
2965
- style=${ft(r)}
3030
+ style=${mt(r)}
2966
3031
  ${Is(this.animation)}
2967
3032
  >
2968
3033
  <div class="modal-content">
@@ -2977,7 +3042,7 @@ ${this.value}</textarea
2977
3042
  <div
2978
3043
  class="overlay"
2979
3044
  @click="${this.forceAction?null:this.hide}"
2980
- ${Is({keyframeOptions:{duration:500},in:Xr,out:[{opacity:0,pointerEvents:"none"}]})}
3045
+ ${Is({keyframeOptions:{duration:500},in:Jr,out:[{opacity:0,pointerEvents:"none"}]})}
2981
3046
  ></div>`}modalFragment(r){var i;const t=(i=this.options)==null?void 0:i[r];if(!t)return A;let s;switch(t instanceof Object?s=t:s=F(t),r){case"title":return m`<sonic-modal-title>${s}</sonic-modal-title>`;case"subtitle":return m`<sonic-modal-subtitle>${s}</sonic-modal-subtitle>`;case"content":return m`<sonic-modal-content>${s}</sonic-modal-content>`;case"actions":return m`<sonic-modal-actions>${s}</sonic-modal-actions>`;default:return A}}show(){var r,t;this.visible=!0,(r=this.modalElement)==null||r.setAttribute("tabindex","0"),(t=this.modalElement)==null||t.focus(),this.dispatchEvent(new CustomEvent("show"))}hide(){var r;this.visible=!1,(r=this.modalElement)==null||r.setAttribute("tabindex","-1"),this.dispatchEvent(new CustomEvent("hide")),this.hasAttribute("resetDataProviderOnHide")&&st.get(this.getAttribute("resetDataProviderOnHide")).set({}),setTimeout(()=>{this.removeHashOnHide&&window.history.replaceState({},"",window.location.pathname),this.removeOnHide&&this.remove(),this.dispatchEvent(new CustomEvent("hidden"))},480)}dispose(){this.hide(),this.remove()}static disposeAll(){j.modals.forEach(r=>{r.dispose()})}handleEscape(r){r.key==="Escape"&&j.modals.forEach(t=>{t.forceAction||t.hide()})}handleFullsceen(){this.fullScreen&&(this.width="100%",this.height="100%",this.maxWidth="none",this.maxHeight="none")}};j.styles=[as,$`
2982
3047
  :host {
2983
3048
  --sc-modal-py: 2.5rem;
@@ -3097,10 +3162,10 @@ ${this.value}</textarea
3097
3162
  :host([rounded="none"]) modal {
3098
3163
  --sc-img-radius: 0 !important;
3099
3164
  }
3100
- `],j.modals=[],et([l({type:Boolean})],j.prototype,"forceAction",2),et([l({type:Boolean})],j.prototype,"removeOnHide",2),et([l({type:Boolean})],j.prototype,"removeHashOnHide",2),et([l({type:String,reflect:!0})],j.prototype,"align",2),et([l({type:String})],j.prototype,"padding",2),et([l({type:String})],j.prototype,"maxWidth",2),et([l({type:String})],j.prototype,"maxHeight",2),et([l({type:String})],j.prototype,"width",2),et([l({type:String})],j.prototype,"height",2),et([l({type:String})],j.prototype,"zIndex",2),et([l({type:String})],j.prototype,"effect",2),et([l({type:Object})],j.prototype,"options",2),et([l({type:Boolean,reflect:!0})],j.prototype,"fullScreen",2),et([l({type:Boolean,reflect:!0})],j.prototype,"visible",2),et([l({type:Object})],j.prototype,"animation",2),et([oe(".modal-wrapper")],j.prototype,"modalWrapper",2),et([oe(".modal")],j.prototype,"modalElement",2),et([ne({selector:"sonic-modal-close"})],j.prototype,"closeBtn",2),j=et([w(Po)],j),typeof window<"u"&&(window.SonicModal=j);var dh=Object.defineProperty,ph=Object.getOwnPropertyDescriptor,jt=(r,t,s,i)=>{for(var e=i>1?void 0:i?ph(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&dh(t,s,e),e};const uh={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty",default:"info-empty"},fh="sonic-alert";let At=class extends _{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 r=localStorage.getItem("sonic-alert-dismissed")||"{}";JSON.parse(r)[this.id]&&this.remove()}super.connectedCallback()}render(){return m`
3165
+ `],j.modals=[],et([l({type:Boolean})],j.prototype,"forceAction",2),et([l({type:Boolean})],j.prototype,"removeOnHide",2),et([l({type:Boolean})],j.prototype,"removeHashOnHide",2),et([l({type:String,reflect:!0})],j.prototype,"align",2),et([l({type:String})],j.prototype,"padding",2),et([l({type:String})],j.prototype,"maxWidth",2),et([l({type:String})],j.prototype,"maxHeight",2),et([l({type:String})],j.prototype,"width",2),et([l({type:String})],j.prototype,"height",2),et([l({type:String})],j.prototype,"zIndex",2),et([l({type:String})],j.prototype,"effect",2),et([l({type:Object})],j.prototype,"options",2),et([l({type:Boolean,reflect:!0})],j.prototype,"fullScreen",2),et([l({type:Boolean,reflect:!0})],j.prototype,"visible",2),et([l({type:Object})],j.prototype,"animation",2),et([oe(".modal-wrapper")],j.prototype,"modalWrapper",2),et([oe(".modal")],j.prototype,"modalElement",2),et([ne({selector:"sonic-modal-close"})],j.prototype,"closeBtn",2),j=et([w(Ao)],j),typeof window<"u"&&(window.SonicModal=j);var gh=Object.defineProperty,bh=Object.getOwnPropertyDescriptor,jt=(r,t,s,i)=>{for(var e=i>1?void 0:i?bh(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&gh(t,s,e),e};const vh={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty",default:"info-empty"},yh="sonic-alert";let At=class extends _{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 r=localStorage.getItem("sonic-alert-dismissed")||"{}";JSON.parse(r)[this.id]&&this.remove()}super.connectedCallback()}render(){return m`
3101
3166
  <slot name="icon" class="${this.noIcon?"hidden":""}"
3102
3167
  >${this.noIcon?A:m`<div>
3103
- ${this.status&&m`<sonic-icon name=${uh[this.status]}></sonic-icon>`}
3168
+ ${this.status&&m`<sonic-icon name=${vh[this.status]}></sonic-icon>`}
3104
3169
  </div>`}</slot
3105
3170
  >
3106
3171
  <div class="content">
@@ -3203,8 +3268,8 @@ ${this.value}</textarea
3203
3268
  top: 0.4rem;
3204
3269
  right: 0.3rem;
3205
3270
  }
3206
- `],jt([l({type:String})],At.prototype,"label",2),jt([l({type:Boolean,reflect:!0})],At.prototype,"noIcon",2),jt([l({type:String})],At.prototype,"text",2),jt([l({type:String})],At.prototype,"id",2),jt([l({type:String,reflect:!0})],At.prototype,"size",2),jt([l({type:Boolean,reflect:!0})],At.prototype,"dismissible",2),jt([l({type:Boolean,reflect:!0})],At.prototype,"background",2),jt([l({type:String,reflect:!0})],At.prototype,"status",2),jt([l({type:Boolean,reflect:!0})],At.prototype,"dismissForever",2),At=jt([w(fh)],At);var mh=Object.defineProperty,gh=Object.getOwnPropertyDescriptor,us=(r,t,s,i)=>{for(var e=i>1?void 0:i?gh(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&mh(t,s,e),e};const bh="sonic-alert-messages";let Pe=class extends Q(_){constructor(){super(...arguments),this.size="md",this.background=!1,this.noIcon=!1,this.messages=[]}render(){var r;return(r=this.messages)!=null&&r.length?m`<div class="container">
3207
- ${uo(this.messages,t=>t.type=="public"?m`<sonic-alert
3271
+ `],jt([l({type:String})],At.prototype,"label",2),jt([l({type:Boolean,reflect:!0})],At.prototype,"noIcon",2),jt([l({type:String})],At.prototype,"text",2),jt([l({type:String})],At.prototype,"id",2),jt([l({type:String,reflect:!0})],At.prototype,"size",2),jt([l({type:Boolean,reflect:!0})],At.prototype,"dismissible",2),jt([l({type:Boolean,reflect:!0})],At.prototype,"background",2),jt([l({type:String,reflect:!0})],At.prototype,"status",2),jt([l({type:Boolean,reflect:!0})],At.prototype,"dismissForever",2),At=jt([w(yh)],At);var _h=Object.defineProperty,wh=Object.getOwnPropertyDescriptor,us=(r,t,s,i)=>{for(var e=i>1?void 0:i?wh(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&_h(t,s,e),e};const $h="sonic-alert-messages";let Pe=class extends X(_){constructor(){super(...arguments),this.size="md",this.background=!1,this.noIcon=!1,this.messages=[]}render(){var r;return(r=this.messages)!=null&&r.length?m`<div class="container">
3272
+ ${fo(this.messages,t=>t.type=="public"?m`<sonic-alert
3208
3273
  status=${t.status||"default"}
3209
3274
  text=${x(t.content)}
3210
3275
  size=${this.size}
@@ -3218,7 +3283,7 @@ ${this.value}</textarea
3218
3283
  grid-template-columns: minmax(0, 1fr);
3219
3284
  width: 100%;
3220
3285
  }
3221
- `],us([l({type:String})],Pe.prototype,"size",2),us([l({type:Boolean})],Pe.prototype,"background",2),us([l({type:Boolean})],Pe.prototype,"noIcon",2),us([l({type:Array})],Pe.prototype,"messages",2),Pe=us([w(bh)],Pe);var vh=Object.defineProperty,yh=Object.getOwnPropertyDescriptor,Ao=(r,t,s,i)=>{for(var e=i>1?void 0:i?yh(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&vh(t,s,e),e};const _h="sonic-toast-message-subscriber";let Wi=class extends Q(_){constructor(){super(...arguments),this._messages=[]}get messages(){return this._messages}set messages(r){this._messages=r,this.messages&&r.forEach(t=>{t.type=="public"&&M.add({text:t.content||"",status:t.status})})}render(){return A}};Ao([l({type:Array})],Wi.prototype,"messages",1),Wi=Ao([w(_h)],Wi);var wh=Object.defineProperty,$h=Object.getOwnPropertyDescriptor,fs=(r,t,s,i)=>{for(var e=i>1?void 0:i?$h(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&wh(t,s,e),e};const xh="sonic-tooltip";let Ae=class extends _{constructor(){super(...arguments),this.label="",this.disabled=!1,this.focusable=!1}connectedCallback(){this.focusable&&this.setAttribute("tabindex","0"),super.connectedCallback()}render(){const r=this.disabled||this.label==""?"disabled":"";return m`<div
3286
+ `],us([l({type:String})],Pe.prototype,"size",2),us([l({type:Boolean})],Pe.prototype,"background",2),us([l({type:Boolean})],Pe.prototype,"noIcon",2),us([l({type:Array})],Pe.prototype,"messages",2),Pe=us([w($h)],Pe);var xh=Object.defineProperty,Ph=Object.getOwnPropertyDescriptor,Co=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ph(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&xh(t,s,e),e};const Ah="sonic-toast-message-subscriber";let Ki=class extends X(_){constructor(){super(...arguments),this._messages=[]}get messages(){return this._messages}set messages(r){this._messages=r,this.messages&&r.forEach(t=>{t.type=="public"&&M.add({text:t.content||"",status:t.status})})}render(){return A}};Co([l({type:Array})],Ki.prototype,"messages",1),Ki=Co([w(Ah)],Ki);var Ch=Object.defineProperty,Sh=Object.getOwnPropertyDescriptor,fs=(r,t,s,i)=>{for(var e=i>1?void 0:i?Sh(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ch(t,s,e),e};const Oh="sonic-tooltip";let Ae=class extends _{constructor(){super(...arguments),this.label="",this.disabled=!1,this.focusable=!1}connectedCallback(){this.focusable&&this.setAttribute("tabindex","0"),super.connectedCallback()}render(){const r=this.disabled||this.label==""?"disabled":"";return m`<div
3222
3287
  data-tooltip-text="${this.label.trim().replace("&nbsp;"," ")}"
3223
3288
  class="tooltip ${r}"
3224
3289
  >
@@ -3322,7 +3387,7 @@ ${this.value}</textarea
3322
3387
  bottom: 0;
3323
3388
  left: var(--sc-tooltip-position);
3324
3389
  }
3325
- `],fs([l({type:String})],Ae.prototype,"label",2),fs([l({type:String,reflect:!0})],Ae.prototype,"placement",2),fs([l({type:Boolean})],Ae.prototype,"disabled",2),fs([l({type:Boolean})],Ae.prototype,"focusable",2),Ae=fs([w(xh)],Ae);var Ph=Object.defineProperty,Ah=Object.getOwnPropertyDescriptor,Ft=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ah(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ph(t,s,e),e};const Ch="sonic-divider";let Ct=class extends _{constructor(){super(...arguments),this.label="",this.align="center",this.vertical=!1,this.noMargin=!1,this.dashed=!1,this.dotted=!1}firstUpdated(r){var t,s;super.firstUpdated(r),(this.label||(t=this.slotNodes)!=null&&t.length)&&((s=this.divider)==null||s.classList.add("has-text"))}render(){return m`<div part="divider">
3390
+ `],fs([l({type:String})],Ae.prototype,"label",2),fs([l({type:String,reflect:!0})],Ae.prototype,"placement",2),fs([l({type:Boolean})],Ae.prototype,"disabled",2),fs([l({type:Boolean})],Ae.prototype,"focusable",2),Ae=fs([w(Oh)],Ae);var Dh=Object.defineProperty,kh=Object.getOwnPropertyDescriptor,Ft=(r,t,s,i)=>{for(var e=i>1?void 0:i?kh(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Dh(t,s,e),e};const Lh="sonic-divider";let Ct=class extends _{constructor(){super(...arguments),this.label="",this.align="center",this.vertical=!1,this.noMargin=!1,this.dashed=!1,this.dotted=!1}firstUpdated(r){var t,s;super.firstUpdated(r),(this.label||(t=this.slotNodes)!=null&&t.length)&&((s=this.divider)==null||s.classList.add("has-text"))}render(){return m`<div part="divider">
3326
3391
  <span class="text"
3327
3392
  >${F(this.label?this.label:"")}<slot></slot
3328
3393
  ></span>
@@ -3457,7 +3522,7 @@ ${this.value}</textarea
3457
3522
  :host([dashed]) {
3458
3523
  --sc-divider-border-style: dashed;
3459
3524
  }
3460
- `],Ft([rt({flatten:!0})],Ct.prototype,"slotNodes",2),Ft([oe("div")],Ct.prototype,"divider",2),Ft([l({type:String})],Ct.prototype,"label",2),Ft([l({type:String,reflect:!0})],Ct.prototype,"size",2),Ft([l({type:String,reflect:!0})],Ct.prototype,"align",2),Ft([l({type:Boolean,reflect:!0})],Ct.prototype,"vertical",2),Ft([l({type:Boolean,reflect:!0})],Ct.prototype,"noMargin",2),Ft([l({type:Boolean,reflect:!0})],Ct.prototype,"dashed",2),Ft([l({type:Boolean,reflect:!0})],Ct.prototype,"dotted",2),Ct=Ft([w(Ch)],Ct);var Sh=Object.defineProperty,Oh=Object.getOwnPropertyDescriptor,Dh=(r,t,s,i)=>{for(var e=i>1?void 0:i?Oh(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Sh(t,s,e),e};const kh="sonic-card-header-description";let Ki=class extends _{render(){return m`<slot></slot>`}};Ki.styles=[$`
3525
+ `],Ft([rt({flatten:!0})],Ct.prototype,"slotNodes",2),Ft([oe("div")],Ct.prototype,"divider",2),Ft([l({type:String})],Ct.prototype,"label",2),Ft([l({type:String,reflect:!0})],Ct.prototype,"size",2),Ft([l({type:String,reflect:!0})],Ct.prototype,"align",2),Ft([l({type:Boolean,reflect:!0})],Ct.prototype,"vertical",2),Ft([l({type:Boolean,reflect:!0})],Ct.prototype,"noMargin",2),Ft([l({type:Boolean,reflect:!0})],Ct.prototype,"dashed",2),Ft([l({type:Boolean,reflect:!0})],Ct.prototype,"dotted",2),Ct=Ft([w(Lh)],Ct);var Eh=Object.defineProperty,Nh=Object.getOwnPropertyDescriptor,Th=(r,t,s,i)=>{for(var e=i>1?void 0:i?Nh(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Eh(t,s,e),e};const Mh="sonic-card-header-description";let Yi=class extends _{render(){return m`<slot></slot>`}};Yi.styles=[$`
3461
3526
  :host() {
3462
3527
  display: block;
3463
3528
  font-size: 0.7em;
@@ -3465,7 +3530,7 @@ ${this.value}</textarea
3465
3530
  font-family: var(--sc-font-family-base, sans-serif);
3466
3531
  font-weight: var(--sc-font-style-base, normal);
3467
3532
  }
3468
- `],Ki=Dh([w(kh)],Ki);var Lh=Object.defineProperty,Eh=Object.getOwnPropertyDescriptor,Yi=(r,t,s,i)=>{for(var e=i>1?void 0:i?Eh(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Lh(t,s,e),e};const Nh="sonic-card-header";let ms=class extends _{render(){return m`
3533
+ `],Yi=Th([w(Mh)],Yi);var Ih=Object.defineProperty,jh=Object.getOwnPropertyDescriptor,Zi=(r,t,s,i)=>{for(var e=i>1?void 0:i?jh(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ih(t,s,e),e};const Fh="sonic-card-header";let ms=class extends _{render(){return m`
3469
3534
  <div class="header-content">
3470
3535
  ${F(this.label)}
3471
3536
  ${this.description?m`<sonic-card-header-description
@@ -3512,15 +3577,15 @@ ${this.value}</textarea
3512
3577
  ::slotted(sonic-card-header-description) {
3513
3578
  margin-top: 0.1em;
3514
3579
  }
3515
- `],Yi([l()],ms.prototype,"label",2),Yi([l()],ms.prototype,"description",2),ms=Yi([w(Nh)],ms);var Th=Object.defineProperty,Mh=Object.getOwnPropertyDescriptor,Ih=(r,t,s,i)=>{for(var e=i>1?void 0:i?Mh(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Th(t,s,e),e};const jh="sonic-card-main";let Zi=class extends _{render(){return m`<slot></slot>`}};Zi.styles=[$`
3580
+ `],Zi([l()],ms.prototype,"label",2),Zi([l()],ms.prototype,"description",2),ms=Zi([w(Fh)],ms);var zh=Object.defineProperty,Rh=Object.getOwnPropertyDescriptor,Uh=(r,t,s,i)=>{for(var e=i>1?void 0:i?Rh(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&zh(t,s,e),e};const Vh="sonic-card-main";let Gi=class extends _{render(){return m`<slot></slot>`}};Gi.styles=[$`
3516
3581
  :host {
3517
3582
  display: block;
3518
3583
  }
3519
- `],Zi=Ih([w(jh)],Zi);var Fh=Object.defineProperty,zh=Object.getOwnPropertyDescriptor,Rh=(r,t,s,i)=>{for(var e=i>1?void 0:i?zh(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Fh(t,s,e),e};const Uh="sonic-card-footer";let Gi=class extends _{render(){return m` <slot></slot> `}};Gi.styles=[$`
3584
+ `],Gi=Uh([w(Vh)],Gi);var Hh=Object.defineProperty,Bh=Object.getOwnPropertyDescriptor,qh=(r,t,s,i)=>{for(var e=i>1?void 0:i?Bh(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Hh(t,s,e),e};const Wh="sonic-card-footer";let Xi=class extends _{render(){return m` <slot></slot> `}};Xi.styles=[$`
3520
3585
  :host {
3521
3586
  display: block;
3522
3587
  }
3523
- `],Gi=Rh([w(Uh)],Gi);const Qi=$`
3588
+ `],Xi=qh([w(Wh)],Xi);const Qi=$`
3524
3589
  :host {
3525
3590
  --sc-_color: inherit;
3526
3591
  color: var(--sc-_color);
@@ -3545,7 +3610,7 @@ ${this.value}</textarea
3545
3610
  .inherit-color {
3546
3611
  color: var(--sc-_color);
3547
3612
  }
3548
- `,Vh=$`
3613
+ `,Kh=$`
3549
3614
  :host {
3550
3615
  --sc-_color: inherit;
3551
3616
  --sc-_bg: inherit;
@@ -3608,7 +3673,7 @@ ${this.value}</textarea
3608
3673
  .inherit-bg {
3609
3674
  color: inherit;
3610
3675
  }
3611
- `;var Hh=Object.defineProperty,Bh=Object.getOwnPropertyDescriptor,Co=(r,t,s,i)=>{for(var e=i>1?void 0:i?Bh(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Hh(t,s,e),e};const qh="sonic-card";let Qs=class extends _{constructor(){super(...arguments),this.type="base"}render(){return m`<slot></slot> `}};Qs.styles=[Vh,$`
3676
+ `;var Yh=Object.defineProperty,Zh=Object.getOwnPropertyDescriptor,So=(r,t,s,i)=>{for(var e=i>1?void 0:i?Zh(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Yh(t,s,e),e};const Gh="sonic-card";let Xs=class extends _{constructor(){super(...arguments),this.type="base"}render(){return m`<slot></slot> `}};Xs.styles=[Kh,$`
3612
3677
  * {
3613
3678
  box-sizing: border-box;
3614
3679
  }
@@ -3638,7 +3703,7 @@ ${this.value}</textarea
3638
3703
  box-shadow: var(--sc-_shadow);
3639
3704
  color: var(--sc-_color);
3640
3705
  }
3641
- `],Co([l({type:String,reflect:!0})],Qs.prototype,"type",2),Qs=Co([w(qh)],Qs);var Wh=Object.defineProperty,Kh=Object.getOwnPropertyDescriptor,gs=(r,t,s,i)=>{for(var e=i>1?void 0:i?Kh(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Wh(t,s,e),e};const Yh="sonic-tr";let Ce=class extends Q(_){constructor(){super(...arguments),this._metadata_={}}willUpdate(r){r.has("_metadata_")&&(this.even=!!this._metadata_.even,this.odd=!!this._metadata_.odd,this.last=!!this._metadata_.lastChild),super.willUpdate(r)}render(){return m`<slot></slot>`}};Ce.styles=[Qi,$`
3706
+ `],So([l({type:String,reflect:!0})],Xs.prototype,"type",2),Xs=So([w(Gh)],Xs);var Xh=Object.defineProperty,Qh=Object.getOwnPropertyDescriptor,gs=(r,t,s,i)=>{for(var e=i>1?void 0:i?Qh(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Xh(t,s,e),e};const Jh="sonic-tr";let Ce=class extends X(_){constructor(){super(...arguments),this._metadata_={}}willUpdate(r){r.has("_metadata_")&&(this.even=!!this._metadata_.even,this.odd=!!this._metadata_.odd,this.last=!!this._metadata_.lastChild),super.willUpdate(r)}render(){return m`<slot></slot>`}};Ce.styles=[Qi,$`
3642
3707
  :host {
3643
3708
  display: table-row;
3644
3709
  }
@@ -3656,9 +3721,9 @@ ${this.value}</textarea
3656
3721
  :host(:hover) {
3657
3722
  background: var(--sc-table-hover-bg) !important;
3658
3723
  }
3659
- `],gs([l({type:Object})],Ce.prototype,"_metadata_",2),gs([l({type:Boolean,reflect:!0})],Ce.prototype,"even",2),gs([l({type:Boolean,reflect:!0})],Ce.prototype,"odd",2),gs([l({type:Boolean,reflect:!0})],Ce.prototype,"last",2),Ce=gs([w(Yh)],Ce);var Zh=Object.defineProperty,Gh=Object.getOwnPropertyDescriptor,Se=(r,t,s,i)=>{for(var e=i>1?void 0:i?Gh(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Zh(t,s,e),e};const Qh="sonic-th";let Bt=class extends _{render(){const r={textAlign:this.align,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return m`<th
3724
+ `],gs([l({type:Object})],Ce.prototype,"_metadata_",2),gs([l({type:Boolean,reflect:!0})],Ce.prototype,"even",2),gs([l({type:Boolean,reflect:!0})],Ce.prototype,"odd",2),gs([l({type:Boolean,reflect:!0})],Ce.prototype,"last",2),Ce=gs([w(Jh)],Ce);var td=Object.defineProperty,ed=Object.getOwnPropertyDescriptor,Se=(r,t,s,i)=>{for(var e=i>1?void 0:i?ed(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&td(t,s,e),e};const sd="sonic-th";let Bt=class extends _{render(){const r={textAlign:this.align,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return m`<th
3660
3725
  part="th"
3661
- style=${ft(r)}
3726
+ style=${mt(r)}
3662
3727
  colspan=${x(this.colSpan)}
3663
3728
  rowspan=${x(this.rowSpan)}
3664
3729
  >
@@ -3686,7 +3751,7 @@ ${this.value}</textarea
3686
3751
  :host([noBorder]) th {
3687
3752
  border-bottom: none;
3688
3753
  }
3689
- `],Se([l({type:Number})],Bt.prototype,"colSpan",2),Se([l({type:Number})],Bt.prototype,"rowSpan",2),Se([l({type:String})],Bt.prototype,"align",2),Se([l({type:String})],Bt.prototype,"minWidth",2),Se([l({type:String})],Bt.prototype,"maxWidth",2),Se([l({type:String})],Bt.prototype,"width",2),Bt=Se([w(Qh)],Bt);var Xh=Object.defineProperty,Jh=Object.getOwnPropertyDescriptor,ie=(r,t,s,i)=>{for(var e=i>1?void 0:i?Jh(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Xh(t,s,e),e};const td="sonic-td";let zt=class extends _{render(){const r={textAlign:this.align,verticalAlign:this.vAlign,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return m`<td part="td" style=${ft(r)} colspan=${x(this.colSpan)} rowspan=${x(this.rowSpan)}>
3754
+ `],Se([l({type:Number})],Bt.prototype,"colSpan",2),Se([l({type:Number})],Bt.prototype,"rowSpan",2),Se([l({type:String})],Bt.prototype,"align",2),Se([l({type:String})],Bt.prototype,"minWidth",2),Se([l({type:String})],Bt.prototype,"maxWidth",2),Se([l({type:String})],Bt.prototype,"width",2),Bt=Se([w(sd)],Bt);var id=Object.defineProperty,rd=Object.getOwnPropertyDescriptor,ie=(r,t,s,i)=>{for(var e=i>1?void 0:i?rd(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&id(t,s,e),e};const od="sonic-td";let zt=class extends _{render(){const r={textAlign:this.align,verticalAlign:this.vAlign,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return m`<td part="td" style=${mt(r)} colspan=${x(this.colSpan)} rowspan=${x(this.rowSpan)}>
3690
3755
  <slot></slot>
3691
3756
  </td>`}};zt.styles=[Qi,$`
3692
3757
  :host {
@@ -3701,13 +3766,13 @@ ${this.value}</textarea
3701
3766
  border-right: var(--sc-table-td-border-r, none);
3702
3767
  border-left: var(--sc-table-td-border-l, none);
3703
3768
  }
3704
- `],ie([l({type:Number})],zt.prototype,"colSpan",2),ie([l({type:Number})],zt.prototype,"rowSpan",2),ie([l({type:String})],zt.prototype,"align",2),ie([l({type:String})],zt.prototype,"vAlign",2),ie([l({type:String})],zt.prototype,"minWidth",2),ie([l({type:String})],zt.prototype,"maxWidth",2),ie([l({type:String})],zt.prototype,"width",2),zt=ie([w(td)],zt);var ed=Object.defineProperty,sd=Object.getOwnPropertyDescriptor,id=(r,t,s,i)=>{for(var e=i>1?void 0:i?sd(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ed(t,s,e),e};const rd="sonic-thead";let Xi=class extends _{render(){return m`<slot></slot>`}};Xi.styles=[$`
3769
+ `],ie([l({type:Number})],zt.prototype,"colSpan",2),ie([l({type:Number})],zt.prototype,"rowSpan",2),ie([l({type:String})],zt.prototype,"align",2),ie([l({type:String})],zt.prototype,"vAlign",2),ie([l({type:String})],zt.prototype,"minWidth",2),ie([l({type:String})],zt.prototype,"maxWidth",2),ie([l({type:String})],zt.prototype,"width",2),zt=ie([w(od)],zt);var nd=Object.defineProperty,ad=Object.getOwnPropertyDescriptor,ld=(r,t,s,i)=>{for(var e=i>1?void 0:i?ad(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&nd(t,s,e),e};const cd="sonic-thead";let Ji=class extends _{render(){return m`<slot></slot>`}};Ji.styles=[$`
3705
3770
  :host {
3706
3771
  display: table-header-group;
3707
3772
  }
3708
- `],Xi=id([w(rd)],Xi);var od=Object.defineProperty,nd=Object.getOwnPropertyDescriptor,ad=(r,t,s,i)=>{for(var e=i>1?void 0:i?nd(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&od(t,s,e),e};const ld="sonic-tbody";let Ji=class extends _{render(){return m`<tbody part="tbody">
3773
+ `],Ji=ld([w(cd)],Ji);var hd=Object.defineProperty,dd=Object.getOwnPropertyDescriptor,pd=(r,t,s,i)=>{for(var e=i>1?void 0:i?dd(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&hd(t,s,e),e};const ud="sonic-tbody";let tr=class extends _{render(){return m`<tbody part="tbody">
3709
3774
  <slot></slot>
3710
- </tbody>`}};Ji.styles=[$`
3775
+ </tbody>`}};tr.styles=[$`
3711
3776
  :host {
3712
3777
  display: table-row-group;
3713
3778
  }
@@ -3724,23 +3789,23 @@ ${this.value}</textarea
3724
3789
  border-bottom: var(--sc-form-border-width) solid
3725
3790
  var(--sc-base-200, rgba(0, 0, 0, 0.12)) !important;
3726
3791
  }
3727
- `],Ji=ad([w(ld)],Ji);var cd=Object.defineProperty,hd=Object.getOwnPropertyDescriptor,dd=(r,t,s,i)=>{for(var e=i>1?void 0:i?hd(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&cd(t,s,e),e};const pd="sonic-tfoot";let tr=class extends _{render(){return m`<tfoot>
3792
+ `],tr=pd([w(ud)],tr);var fd=Object.defineProperty,md=Object.getOwnPropertyDescriptor,gd=(r,t,s,i)=>{for(var e=i>1?void 0:i?md(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&fd(t,s,e),e};const bd="sonic-tfoot";let er=class extends _{render(){return m`<tfoot>
3728
3793
  <slot></slot>
3729
- </tfoot>`}};tr.styles=[$`
3794
+ </tfoot>`}};er.styles=[$`
3730
3795
  :host {
3731
3796
  display: contents;
3732
3797
  }
3733
- `],tr=dd([w(pd)],tr);var ud=Object.defineProperty,fd=Object.getOwnPropertyDescriptor,md=(r,t,s,i)=>{for(var e=i>1?void 0:i?fd(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ud(t,s,e),e};const gd="sonic-caption";let er=class extends _{render(){return m`<slot></slot>`}};er.styles=[$`
3798
+ `],er=gd([w(bd)],er);var vd=Object.defineProperty,yd=Object.getOwnPropertyDescriptor,_d=(r,t,s,i)=>{for(var e=i>1?void 0:i?yd(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&vd(t,s,e),e};const wd="sonic-caption";let sr=class extends _{render(){return m`<slot></slot>`}};sr.styles=[$`
3734
3799
  :host {
3735
3800
  display: table-caption;
3736
3801
  font-size: 0.75rem;
3737
3802
  color: var(--sc-table-caption-color);
3738
3803
  padding: var(--sc-table-td-py) var(--sc-table-td-px) calc(2 * var(--sc-table-td-py));
3739
3804
  }
3740
- `],er=md([w(gd)],er);var bd=Object.defineProperty,vd=Object.getOwnPropertyDescriptor,Ue=(r,t,s,i)=>{for(var e=i>1?void 0:i?vd(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&bd(t,s,e),e};const yd="sonic-table";let re=class extends _{render(){const r={maxHeight:this.maxHeight};return m`
3805
+ `],sr=_d([w(wd)],sr);var $d=Object.defineProperty,xd=Object.getOwnPropertyDescriptor,Ue=(r,t,s,i)=>{for(var e=i>1?void 0:i?xd(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&$d(t,s,e),e};const Pd="sonic-table";let re=class extends _{render(){const r={maxHeight:this.maxHeight};return m`
3741
3806
  <div
3742
3807
  class="table-container ${this.noCustomScroll?"":"custom-scroll"}"
3743
- style=${ft(r)}
3808
+ style=${mt(r)}
3744
3809
  >
3745
3810
  <div class="table">
3746
3811
  <slot></slot>
@@ -3791,4 +3856,4 @@ ${this.value}</textarea
3791
3856
  --sc-table-td-border-b: var(--sc-table-bw) solid
3792
3857
  var(--sc-table-border-color);
3793
3858
  }
3794
- `],Ue([l({type:String,reflect:!0})],re.prototype,"size",2),Ue([l({type:Boolean,reflect:!0})],re.prototype,"bordered",2),Ue([l({type:Boolean,reflect:!0})],re.prototype,"rounded",2),Ue([l({type:Boolean,reflect:!0})],re.prototype,"noCustomScroll",2),Ue([l({type:String})],re.prototype,"maxHeight",2),re=Ue([w(yd)],re);var _d=Object.defineProperty,wd=Object.getOwnPropertyDescriptor,Xs=(r,t,s,i)=>{for(var e=i>1?void 0:i?wd(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&_d(t,s,e),e};const $d="sonic-captcha";let bs=class extends Zt(_){constructor(){super(...arguments),this.key="",this.action=null,this.zIndex=9999,this.onCaptchaTokenChanged=r=>{r=="request_token"&&(this.formPublisher&&(this.formPublisher.captchaToken=""),this.requestToken())}}connectedCallback(){if(!document.getElementById("captcha-"+this.key)){const r=document.createElement("script");r.src="https://www.google.com/recaptcha/api.js?render="+this.key,r.id="captcha-"+this.key,document.head.appendChild(r)}if(super.connectedCallback(),this.formPublisher=st.get(this.getAncestorAttributeValue("headersDataProvider")??this.getAncestorAttributeValue("formDataProvider")),!document.getElementById("concorde-recaptcha-css")){const r=document.createElement("style");r.innerHTML=".grecaptcha-badge {z-index: 9999;}",r.id="concorde-recaptcha-css",document.head.appendChild(r)}this.formPublisher&&!this.formPublisher.captchaToken.get()&&(this.formPublisher.needsCaptchaValidation=!0,this.formPublisher.captchaToken.onAssign(this.onCaptchaTokenChanged))}disconnectedCallback(){this.formPublisher&&(this.formPublisher.captchaToken.offAssign(this.onCaptchaTokenChanged),this.formPublisher.captchaToken=""),super.disconnectedCallback()}requestToken(){var s,i;if(!this.formPublisher)return;const r=(this.action??((s=this.formPublisher.captchaAction)==null?void 0:s.get())??"submit").replace(/[^\w_/]/g,"_"),t=(((i=this.formPublisher.captchaMethod)==null?void 0:i.get())??"POST").toUpperCase();if(delete this.formPublisher.captchaAction,delete this.formPublisher.captchaMethod,!window.grecaptcha){Lr();return}window.grecaptcha.ready(()=>{window.grecaptcha&&window.grecaptcha.execute(this.key,{action:t+"//"+r}).then(e=>{this.formPublisher&&(this.formPublisher.captchaToken=e)})})}render(){return m` <slot></slot> `}};Xs([l()],bs.prototype,"key",2),Xs([l()],bs.prototype,"action",2),Xs([l({type:Number})],bs.prototype,"zIndex",2),bs=Xs([w($d)],bs),window.queueMicrotask=window.queueMicrotask||function(r){Promise.resolve().then(r).catch(t=>setTimeout(()=>{throw t}))};function xd(r){this.__connectedCallbackCalls__||(this.__connectedCallbackCalls__=new Set),this.__connectedCallbackCalls__.add(r)}function Pd(r){this.__disconnectedCallbackCalls__||(this.__disconnectedCallbackCalls__=new Set),this.__disconnectedCallbackCalls__.add(r)}function So(r){if(r.__is__setSubscribable__)return;r.__is__setSubscribable__=!0,r.__onConnected__=xd,r.__onDisconnected__=Pd;const t=r.connectedCallback;r.connectedCallback=function(){t.call(this),this.__connectedCallbackCalls__&&this.__connectedCallbackCalls__.forEach(i=>i(this))};const s=r.disconnectedCallback;r.disconnectedCallback=function(){s.call(this),this.__disconnectedCallbackCalls__&&this.__disconnectedCallbackCalls__.forEach(i=>i(this))}}function Ad(r){const t=r.split(".");if(t.length==0)return function(){};const s=t.shift()||"";let i=N.get(s);return i=Je.traverse(i,t),function(e,o){if(!e)return;let n;So(e),e.__onConnected__(a=>{n=c=>{a[o]=c},i.onAssign(n)}),e.__onDisconnected__(()=>{i.offAssign(n)})}}function Cd(...r){const t=[],s=[];for(let i=0;i<r.length;i++){const o=r[i].split(".");if(o.length==0)continue;const n=o.shift()||"";let a=N.get(n);a=Je.traverse(a,o);const c=new Set,h=d=>{t[i]=d,t.filter(p=>p!==null).length==r.length&&c.forEach(p=>p(...t))};s.push({publisher:a,onAssign:h,callbacks:c})}return function(i,e,o){So(i);let n;i.__onConnected__(a=>{for(const c of s)n=o.value.bind(a),c.callbacks.add(n),c.publisher.onAssign(c.onAssign)}),i.__onDisconnected__(()=>{for(const a of s)a.callbacks.delete(n),a.publisher.offAssign(a.onAssign)})}}window["concorde-decorator-subscriber"]=window["concorde-decorator-subscriber"]||{},window["concorde-decorator-subscriber"]={bind:Ad,onAssing:Cd},window["concorde-directives-data-provider"]=window["concorde-directives-data-provider"]||{},window["concorde-directives-data-provider"]={dp:kr,dataProvider:cn,sub:an,subscribe:nn,get:ln,set:hn};const Sd=M,Od=j;window["concorde-components"]=window["concorde-components"]||{},window["concorde-components"]={SonicToast:Sd,SonicModal:Od};const Dd=window;Dd.concordeIsLoaded=!0,window.dispatchEvent(new CustomEvent("concorde-loaded"))});
3859
+ `],Ue([l({type:String,reflect:!0})],re.prototype,"size",2),Ue([l({type:Boolean,reflect:!0})],re.prototype,"bordered",2),Ue([l({type:Boolean,reflect:!0})],re.prototype,"rounded",2),Ue([l({type:Boolean,reflect:!0})],re.prototype,"noCustomScroll",2),Ue([l({type:String})],re.prototype,"maxHeight",2),re=Ue([w(Pd)],re);var Ad=Object.defineProperty,Cd=Object.getOwnPropertyDescriptor,Qs=(r,t,s,i)=>{for(var e=i>1?void 0:i?Cd(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ad(t,s,e),e};const Sd="sonic-captcha";let bs=class extends Zt(_){constructor(){super(...arguments),this.key="",this.action=null,this.zIndex=9999,this.onCaptchaTokenChanged=r=>{r=="request_token"&&(this.formPublisher&&(this.formPublisher.captchaToken=""),this.requestToken())}}connectedCallback(){if(!document.getElementById("captcha-"+this.key)){const r=document.createElement("script");r.src="https://www.google.com/recaptcha/api.js?render="+this.key,r.id="captcha-"+this.key,document.head.appendChild(r)}if(super.connectedCallback(),this.formPublisher=st.get(this.getAncestorAttributeValue("headersDataProvider")??this.getAncestorAttributeValue("formDataProvider")),!document.getElementById("concorde-recaptcha-css")){const r=document.createElement("style");r.innerHTML=".grecaptcha-badge {z-index: 9999;}",r.id="concorde-recaptcha-css",document.head.appendChild(r)}this.formPublisher&&!this.formPublisher.captchaToken.get()&&(this.formPublisher.needsCaptchaValidation=!0,this.formPublisher.captchaToken.onAssign(this.onCaptchaTokenChanged))}disconnectedCallback(){this.formPublisher&&(this.formPublisher.captchaToken.offAssign(this.onCaptchaTokenChanged),this.formPublisher.captchaToken=""),super.disconnectedCallback()}requestToken(){var s,i;if(!this.formPublisher)return;const r=(this.action??((s=this.formPublisher.captchaAction)==null?void 0:s.get())??"submit").replace(/[^\w_/]/g,"_"),t=(((i=this.formPublisher.captchaMethod)==null?void 0:i.get())??"POST").toUpperCase();if(delete this.formPublisher.captchaAction,delete this.formPublisher.captchaMethod,!window.grecaptcha){Er();return}window.grecaptcha.ready(()=>{window.grecaptcha&&window.grecaptcha.execute(this.key,{action:t+"//"+r}).then(e=>{this.formPublisher&&(this.formPublisher.captchaToken=e)})})}render(){return m` <slot></slot> `}};Qs([l()],bs.prototype,"key",2),Qs([l()],bs.prototype,"action",2),Qs([l({type:Number})],bs.prototype,"zIndex",2),bs=Qs([w(Sd)],bs),window.queueMicrotask=window.queueMicrotask||function(r){Promise.resolve().then(r).catch(t=>setTimeout(()=>{throw t}))};function Od(r){this.__connectedCallbackCalls__||(this.__connectedCallbackCalls__=new Set),this.__connectedCallbackCalls__.add(r)}function Dd(r){this.__disconnectedCallbackCalls__||(this.__disconnectedCallbackCalls__=new Set),this.__disconnectedCallbackCalls__.add(r)}function Oo(r){if(r.__is__setSubscribable__)return;r.__is__setSubscribable__=!0,r.__onConnected__=Od,r.__onDisconnected__=Dd;const t=r.connectedCallback;r.connectedCallback=function(){t.call(this),this.__connectedCallbackCalls__&&this.__connectedCallbackCalls__.forEach(i=>i(this))};const s=r.disconnectedCallback;r.disconnectedCallback=function(){s.call(this),this.__disconnectedCallbackCalls__&&this.__disconnectedCallbackCalls__.forEach(i=>i(this))}}function kd(r){const t=r.split(".");if(t.length==0)return function(){};const s=t.shift()||"";let i=N.get(s);return i=Je.traverse(i,t),function(e,o){if(!e)return;let n;Oo(e),e.__onConnected__(a=>{n=c=>{a[o]=c},i.onAssign(n)}),e.__onDisconnected__(()=>{i.offAssign(n)})}}function Ld(...r){const t=[],s=[];for(let i=0;i<r.length;i++){const o=r[i].split(".");if(o.length==0)continue;const n=o.shift()||"";let a=N.get(n);a=Je.traverse(a,o);const c=new Set,h=d=>{t[i]=d,t.filter(p=>p!==null).length==r.length&&c.forEach(p=>p(...t))};s.push({publisher:a,onAssign:h,callbacks:c})}return function(i,e,o){Oo(i);let n;i.__onConnected__(a=>{for(const c of s)n=o.value.bind(a),c.callbacks.add(n),c.publisher.onAssign(c.onAssign)}),i.__onDisconnected__(()=>{for(const a of s)a.callbacks.delete(n),a.publisher.offAssign(a.onAssign)})}}window["concorde-decorator-subscriber"]=window["concorde-decorator-subscriber"]||{},window["concorde-decorator-subscriber"]={bind:kd,onAssing:Ld},window["concorde-directives-data-provider"]=window["concorde-directives-data-provider"]||{},window["concorde-directives-data-provider"]={dp:Lr,dataProvider:hn,sub:ln,subscribe:an,get:cn,set:dn};const Ed=M,Nd=j;window["concorde-components"]=window["concorde-components"]||{},window["concorde-components"]={SonicToast:Ed,SonicModal:Nd};const Td=window;Td.concordeIsLoaded=!0,window.dispatchEvent(new CustomEvent("concorde-loaded"))});