@supersoniks/concorde 3.1.32 → 3.1.34

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 (119) hide show
  1. package/build-infos.json +1 -1
  2. package/concorde-core.bundle.js +58 -58
  3. package/concorde-core.es.js +236 -231
  4. package/dist/concorde-core.bundle.js +58 -58
  5. package/dist/concorde-core.es.js +236 -231
  6. package/docs/assets/index-D1OO2yIk.js +4421 -0
  7. package/docs/assets/index-DCqvoAAf.css +1 -0
  8. package/docs/css/docs.css +0 -0
  9. package/docs/fonts/ClashGrotesk-Bold.eot +0 -0
  10. package/docs/fonts/ClashGrotesk-Bold.ttf +0 -0
  11. package/docs/fonts/ClashGrotesk-Bold.woff +0 -0
  12. package/docs/fonts/ClashGrotesk-Bold.woff2 +0 -0
  13. package/docs/fonts/ClashGrotesk-Extralight.eot +0 -0
  14. package/docs/fonts/ClashGrotesk-Extralight.ttf +0 -0
  15. package/docs/fonts/ClashGrotesk-Extralight.woff +0 -0
  16. package/docs/fonts/ClashGrotesk-Extralight.woff2 +0 -0
  17. package/docs/fonts/ClashGrotesk-Light.eot +0 -0
  18. package/docs/fonts/ClashGrotesk-Light.ttf +0 -0
  19. package/docs/fonts/ClashGrotesk-Light.woff +0 -0
  20. package/docs/fonts/ClashGrotesk-Light.woff2 +0 -0
  21. package/docs/fonts/ClashGrotesk-Medium.eot +0 -0
  22. package/docs/fonts/ClashGrotesk-Medium.ttf +0 -0
  23. package/docs/fonts/ClashGrotesk-Medium.woff +0 -0
  24. package/docs/fonts/ClashGrotesk-Medium.woff2 +0 -0
  25. package/docs/fonts/ClashGrotesk-Regular.eot +0 -0
  26. package/docs/fonts/ClashGrotesk-Regular.ttf +0 -0
  27. package/docs/fonts/ClashGrotesk-Regular.woff +0 -0
  28. package/docs/fonts/ClashGrotesk-Regular.woff2 +0 -0
  29. package/docs/fonts/ClashGrotesk-Semibold.eot +0 -0
  30. package/docs/fonts/ClashGrotesk-Semibold.ttf +0 -0
  31. package/docs/fonts/ClashGrotesk-Semibold.woff +0 -0
  32. package/docs/fonts/ClashGrotesk-Semibold.woff2 +0 -0
  33. package/docs/fonts/ClashGrotesk-Variable.eot +0 -0
  34. package/docs/fonts/ClashGrotesk-Variable.ttf +0 -0
  35. package/docs/fonts/ClashGrotesk-Variable.woff +0 -0
  36. package/docs/fonts/ClashGrotesk-Variable.woff2 +0 -0
  37. package/docs/img/concorde-icon.svg +5 -0
  38. package/docs/img/concorde-logo.svg +1 -0
  39. package/docs/img/concorde.png +0 -0
  40. package/docs/img/concorde_def.png +0 -0
  41. package/docs/img/concorde_seuil.png.webp +0 -0
  42. package/docs/img/concorde_seuil_invert.png +0 -0
  43. package/docs/img/paul_metrand.jpg +0 -0
  44. package/docs/img/paul_metrand_xs.jpg +0 -0
  45. package/docs/index.html +93 -0
  46. package/docs/src/core/components/functional/date/date.md +290 -0
  47. package/docs/src/core/components/functional/fetch/fetch.md +117 -0
  48. package/docs/src/core/components/functional/if/if.md +16 -0
  49. package/docs/src/core/components/functional/list/list.md +199 -0
  50. package/docs/src/core/components/functional/mix/mix.md +41 -0
  51. package/docs/src/core/components/functional/queue/queue.md +87 -0
  52. package/docs/src/core/components/functional/router/router.md +112 -0
  53. package/docs/src/core/components/functional/sdui/default-library.json +108 -0
  54. package/docs/src/core/components/functional/sdui/example.json +99 -0
  55. package/docs/src/core/components/functional/sdui/sdui.md +356 -0
  56. package/docs/src/core/components/functional/states/states.md +87 -0
  57. package/docs/src/core/components/functional/submit/submit.md +83 -0
  58. package/docs/src/core/components/functional/subscriber/subscriber.md +91 -0
  59. package/docs/src/core/components/functional/value/value.md +35 -0
  60. package/docs/src/core/components/ui/alert/alert.md +121 -0
  61. package/docs/src/core/components/ui/badge/badge.md +102 -0
  62. package/docs/src/core/components/ui/button/button.md +184 -0
  63. package/docs/src/core/components/ui/captcha/captcha.md +12 -0
  64. package/docs/src/core/components/ui/card/card.md +96 -0
  65. package/docs/src/core/components/ui/divider/divider.md +35 -0
  66. package/docs/src/core/components/ui/form/checkbox/checkbox.md +96 -0
  67. package/docs/src/core/components/ui/form/fieldset/fieldset.md +129 -0
  68. package/docs/src/core/components/ui/form/form-actions/form-actions.md +77 -0
  69. package/docs/src/core/components/ui/form/form-layout/form-layout.md +43 -0
  70. package/docs/src/core/components/ui/form/input/input.md +168 -0
  71. package/docs/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +130 -0
  72. package/docs/src/core/components/ui/form/radio/radio.md +86 -0
  73. package/docs/src/core/components/ui/form/select/select.md +99 -0
  74. package/docs/src/core/components/ui/form/textarea/textarea.md +65 -0
  75. package/docs/src/core/components/ui/group/group.md +75 -0
  76. package/docs/src/core/components/ui/icon/icon.md +125 -0
  77. package/docs/src/core/components/ui/icon/icons.json +1 -0
  78. package/docs/src/core/components/ui/image/image.md +107 -0
  79. package/docs/src/core/components/ui/link/link.md +43 -0
  80. package/docs/src/core/components/ui/loader/loader.md +37 -0
  81. package/docs/src/core/components/ui/menu/menu.md +288 -0
  82. package/docs/src/core/components/ui/modal/modal.md +123 -0
  83. package/docs/src/core/components/ui/pop/pop.md +79 -0
  84. package/docs/src/core/components/ui/progress/progress.md +63 -0
  85. package/docs/src/core/components/ui/table/table.md +455 -0
  86. package/docs/src/core/components/ui/tooltip/tooltip.md +82 -0
  87. package/docs/src/docs/_core-concept/overview.md +57 -0
  88. package/docs/src/docs/_core-concept/subscriber.md +76 -0
  89. package/docs/src/docs/_getting-started/concorde-outside.md +143 -0
  90. package/docs/src/docs/_getting-started/create-a-component.md +137 -0
  91. package/docs/src/docs/_getting-started/my-first-subscriber.md +174 -0
  92. package/docs/src/docs/_getting-started/pubsub.md +150 -0
  93. package/docs/src/docs/_getting-started/start.md +39 -0
  94. package/docs/src/docs/_getting-started/theming.md +91 -0
  95. package/docs/src/docs/search/docs-search.json +3887 -0
  96. package/docs/src/tag-list.json +1 -0
  97. package/docs/src/tsconfig-model.json +23 -0
  98. package/docs/src/tsconfig.json +808 -0
  99. package/docs/svg/regular/plane.svg +1 -0
  100. package/docs/svg/solid/plane.svg +1 -0
  101. package/index.html +0 -0
  102. package/package.json +1 -1
  103. package/scripts/create-search.js +0 -0
  104. package/scripts/post-build-docs.js +0 -0
  105. package/scripts/pre-build.mjs +0 -0
  106. package/src/core/_types/types.ts +0 -0
  107. package/src/core/components/functional/date/date.ts +7 -7
  108. package/src/core/components/ui/form/input/input.ts +0 -0
  109. package/src/core/components/ui/theme/theme.ts +0 -0
  110. package/src/core/components/ui/toast/message-subscriber.ts +0 -0
  111. package/src/core/components/ui/ui.ts +0 -0
  112. package/src/core/core.ts +0 -0
  113. package/src/core/directives/Wording.ts +0 -0
  114. package/src/core/mixins/Fetcher.ts +0 -0
  115. package/src/core/mixins/Subscriber.ts +23 -6
  116. package/src/core/utils/HTML.ts +0 -0
  117. package/src/core/utils/Utils.ts +0 -0
  118. package/src/core/utils/route.ts +0 -0
  119. package/src/index.ts +0 -0
@@ -1,4 +1,4 @@
1
- (function(G){typeof define=="function"&&define.amd?define(G):G()})(function(){"use strict";var jt,k,L,qr,t,Q;let G=class Ft{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=Ft.getAncestorAttributeValue(t,"token"),i=Ft.getAncestorAttributeValue(t,"addHTTPResponse")!=null,e=Ft.getAncestorAttributeValue(t,"serviceURL");let o=null,n=null;const l=Ft.getAncestorAttributeValue(t,"tokenProvider"),c=Ft.getAncestorAttributeValue(t,"eventsApiToken");s||(o=Ft.getAncestorAttributeValue(t,"userName"),n=Ft.getAncestorAttributeValue(t,"password"));const h=Ft.getAncestorAttributeValue(t,"credentials")||void 0,d=t.getAttribute("cache"),f=t.hasAttribute("blockUntilDone");return{serviceURL:e,token:s,userName:o,password:n,authToken:c,tokenProvider:l,addHTTPResponse:i,credentials:h,cache:d,blockUntilDone:f}}static getClosestElement(t,s){for(;!(t.nodeName&&t.nodeName.toLowerCase()===s)&&(t.parentNode||t.host);)t=t.parentNode||t.host;return t.nodeName?t:null}static getClosestForm(t){return Ft.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 js=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 as=class{static ucFirst(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.substring(1)}static minutesDuration(t,s="",i="long"){s||(s=G.getLanguage());const e=(h,d)=>[Math.floor(h/d),h%d];function o(h,d,f){return new Intl.NumberFormat(h,{style:"unit",unit:d,unitDisplay:f}).format}const[n,l]=e(t,60),c=[];return n&&c.push(o(s,"hour",i)(n)),l&&c.push(o(s,"minute",i)(l)),new Intl.ListFormat(s,{style:"long",type:"conjunction"}).format(c)}static js(t){try{return Function("return "+t)()}catch{return""}}},Zr=class{static async queueTaskPromise(){return new Promise(t=>{window.queueMicrotask(()=>t(null))})}static async delayPromise(t){return new Promise(s=>{setTimeout(s,t)})}},Ti="sonic";typeof __SONIC_PREFIX__<"u"&&(Ti=__SONIC_PREFIX__);let Mi=Ti.replace(/-([a-z])/g,r=>r[1].toUpperCase());const ls=Mi.charAt(0).toUpperCase()+Mi.slice(1);function cs(r){return Object.prototype.hasOwnProperty.call(r,"__value")}function Me(r){return typeof r=="object"&&r!=null}let Ce="sonic";typeof __SONIC_PREFIX__>"u"&&(Ce="sonic"+Math.floor(Math.random()*1e6));const Fs=Ce=="sonic"?"publisher-proxies-data":Ce+"-publisher-proxies-data";let zs=(jt=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(),jt.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_&&!T.changed){T.changed=!0,T.saveId++;const s=T.saveId;setTimeout(()=>T.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&&cs(this._value_)&&cs(t)&&this._value_.__value===t.__value)return!0;this._value_=Me(t)?t:{__value:t},this._cachedGet_=void 0;const i=cs(this._value_);if(this._parentKey_&&this.parent){const l=cs(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_]:l});else{const c=[];c[Number(this._parentKey_)]=l,this.parent.set(c)}else this.parent._value_[this._parentKey_]=l}if(i)return this._publishAssignement_(s),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_.__value),!0;for(const l in this._value_)this._value_[l]===void 0&&delete this._value_[l];if(this._proxies_.forEach((l,c)=>{const h=this._value_[c];c!="_parent_"&&h===void 0&&h!==null&&isNaN(Number(c))&&(l.set(null),this._publishDynamicFilling_(c,null))}),this._publishAssignement_(),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_),Me(this._value_))for(const l in this._value_){const c=t[l],d=Me(c)?c:{__value:c};if(!this._proxies_.has(l)){this._publishDynamicFilling_(l,c);continue}(n=this._proxies_.get(l))==null||n.set(d,!0),this._publishDynamicFilling_(l,c)}return!0}get(){if(this._cachedGet_!==void 0)return this._cachedGet_;if(T.modifiedCollectore.length>0&&T.modifiedCollectore[0].add(this),Object.prototype.hasOwnProperty.call(this._value_,"__value")){const t=this._value_.__value;return this._cachedGet_=t??null}return this._cachedGet_=this._value_!=null?this._value_:null}get $tag(){return this._instanceCounter_||(jt.instancesCounter++,this._instanceCounter_=jt.instancesCounter),jt.instances.set(this._instanceCounter_,this),"<"+Ce+'-publisher-proxy publisher="'+this._instanceCounter_+'"></'+Ce+"-publisher-proxy>"}},jt.instances=new Map,jt.instancesCounter=0,jt),T=(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(Fs),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(Fs,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_"+G.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 Ie(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_"+G.getLanguage()]={lastModifiationMS:new Date().getTime(),data:n},i=!0)}if(i){const e=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem(Fs,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 l=await new Response(o.readable).arrayBuffer(),c=new Uint8Array(l);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,l=new n.DecompressionStream(s),c=l.writable.getWriter();c.write(o),c.close();const h=await new Response(l.readable).arrayBuffer();return new TextDecoder().decode(h)}},k.buildDate="Thu Sep 19 2024 11:36:13 GMT+0200 (Central European Summer Time)",k.changed=!1,k.saving=!1,k.saveId=0,k.instance=null,k.instances=new Map,k.modifiedCollectore=[],k);if(typeof window<"u"){const r=window;r[ls+"PublisherManager"]=r[ls+"PublisherManager"]||T}const Yr=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 Ie extends zs{constructor(t,s=null,i){super(t,s,i);const e=new Proxy(this,{get:function(o,n){if(Yr.has(n))return o[n];if(n==Symbol.toPrimitive)return()=>e.get();if(!o._proxies_.has(n)){const l=o._value_[n],c=new Ie(Me(l)?l:{__value:l},o,n);c._proxies_.set("_parent_",e),o._proxies_.set(n,c)}return o._proxies_.get(n)},set:function(o,n,l){var h;if(n=="_value_")return o._value_=l,!0;if(n=="_cachedGet_")return o._cachedGet_=l,!0;if(n=="_assignmentId_")return o._assignmentId_=l,!0;if(n=="_is_savable_")return o._is_savable_=l,!0;if(n=="_instanceCounter_")return o._instanceCounter_=l,!0;if(!o._proxies_.has(n)){const d=new Ie({},o,n);d._proxies_.set("_parent_",e),o._proxies_.set(n,d)}return o._value_[n]!==l&&(o._value_[n]=l,o._publishDynamicFilling_(n,l),(h=o._proxies_.get(n))==null||h.set(Me(l)?l:{__value:l})),!0},deleteProperty:function(o,n){var l;return o._publishDynamicFilling_(n,null),(l=o._proxies_.get(n))==null||l.set(null),delete o._value_[n]},has:function(o,n){return n in o._value_&&n!="_lockInternalMutationPublishing_"},defineProperty:function(o,n,l){return l&&"value"in l&&(o._value_[n]=l.value),!0},getOwnPropertyDescriptor:function(o,n){return{enumerable:!0,configurable:!0}},ownKeys:function(o){return o._value_.__value?Object.keys(o._value_.__value):Object.keys(o._value_)}});return e}getProperty(t,s){return t[s]}}class Gr extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=t=>{this.innerHTML=t.toString()}}connectedCallback(){var t;this.publisherId=this.getAttribute("publisher")||"",this.publisher=zs.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(Ce+"-publisher-proxy",Gr)}catch{}let hs=(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=G.getAncestorAttributeValue(t.parentNode||t.host||t,"dataProvider");if(!s)return;const i=T.getInstance().get(s),e=L.getDataBindItems(t),o=[];e.forEach(n=>{const l=n.bindedVariablesDescriptor,c=n.propertyToUpdate;for(const h of l.variables){const d=h;let f=i;f=L.getSubPublisher(i,d);const m=t,b={publisher:f,onAssign:()=>{const v=l.variables.map(D=>{var p;return(p=L.getSubPublisher(i,D))==null?void 0:p.get()});let P=l.expression,S=!1;if(v.length==1&&l.variables[0].join(".")==P.substring(1)){let D=v[0];D===null&&(D=""),m[c]=D;return}for(let D=0;D<v.length;D++){let p=v[D];const u=l.variables[D];p===null&&(S=!0,p=void 0),P=P.replace("$"+u.join("."),p)}if(P.indexOf("|")!=-1){const D=P.indexOf("|");if(D==0)P=as.js(P.substring(1));else{const p=P.substring(0,D),u=P.substring(D+1),y=as[p];P=S?"":y?y(u):P}}else P=S?"":P;m[c]=P}};f==null||f.onAssign(b.onAssign),o.push(b)}}),L.publisherListeners.set(t,o)}},L.observedElements=new Map,L.enabled=!0,L.publisherListeners=new Map,L);hs.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=hs);let J=class Ht{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 l=t[n],c=s[n];if(i?l!==c:l!=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 l=t[n],c=s[n],h=Ht.isObject(l)&&Ht.isObject(c),d=i?l!==c:l!=c;if(h&&!Ht.deepEqual(l,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 Ht.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&&Ht.isObject(o)?t=Object.assign(Array.isArray(o)?[]:{},t,o):t=t[e]}return t}static traverseDotNotation(t,s,i=!1){return Ht.traverse(t,s.split("."),i)}static getURLSearchArray(t,s=""){let i=[];for(let e in t){const o=t[e];s&&(e=s+"["+e+"]"),Ht.isObject(o)?i=[...i,...this.getURLSearchArray(o,e)]:i.push(`${e}=${o}`)}return i}static getURLSearchString(t){return Ht.getURLSearchArray(t,"").join("&")}};const ht=J.traverseDotNotation;/**
1
+ (function(G){typeof define=="function"&&define.amd?define(G):G()})(function(){"use strict";var Ft,k,L,qr,t,Q;let G=class zt{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=zt.getAncestorAttributeValue(t,"token"),i=zt.getAncestorAttributeValue(t,"addHTTPResponse")!=null,e=zt.getAncestorAttributeValue(t,"serviceURL");let o=null,n=null;const l=zt.getAncestorAttributeValue(t,"tokenProvider"),c=zt.getAncestorAttributeValue(t,"eventsApiToken");s||(o=zt.getAncestorAttributeValue(t,"userName"),n=zt.getAncestorAttributeValue(t,"password"));const h=zt.getAncestorAttributeValue(t,"credentials")||void 0,d=t.getAttribute("cache"),f=t.hasAttribute("blockUntilDone");return{serviceURL:e,token:s,userName:o,password:n,authToken:c,tokenProvider:l,addHTTPResponse:i,credentials:h,cache:d,blockUntilDone:f}}static getClosestElement(t,s){for(;!(t.nodeName&&t.nodeName.toLowerCase()===s)&&(t.parentNode||t.host);)t=t.parentNode||t.host;return t.nodeName?t:null}static getClosestForm(t){return zt.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 js=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 as=class{static ucFirst(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.substring(1)}static minutesDuration(t,s="",i="long"){s||(s=G.getLanguage());const e=(h,d)=>[Math.floor(h/d),h%d];function o(h,d,f){return new Intl.NumberFormat(h,{style:"unit",unit:d,unitDisplay:f}).format}const[n,l]=e(t,60),c=[];return n&&c.push(o(s,"hour",i)(n)),l&&c.push(o(s,"minute",i)(l)),new Intl.ListFormat(s,{style:"long",type:"conjunction"}).format(c)}static js(t){try{return Function("return "+t)()}catch{return""}}},Zr=class{static async queueTaskPromise(){return new Promise(t=>{window.queueMicrotask(()=>t(null))})}static async delayPromise(t){return new Promise(s=>{setTimeout(s,t)})}},Ti="sonic";typeof __SONIC_PREFIX__<"u"&&(Ti=__SONIC_PREFIX__);let Mi=Ti.replace(/-([a-z])/g,r=>r[1].toUpperCase());const ls=Mi.charAt(0).toUpperCase()+Mi.slice(1);function cs(r){return Object.prototype.hasOwnProperty.call(r,"__value")}function Me(r){return typeof r=="object"&&r!=null}let Ce="sonic";typeof __SONIC_PREFIX__>"u"&&(Ce="sonic"+Math.floor(Math.random()*1e6));const Fs=Ce=="sonic"?"publisher-proxies-data":Ce+"-publisher-proxies-data";let zs=(Ft=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(),Ft.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_&&!M.changed){M.changed=!0,M.saveId++;const s=M.saveId;setTimeout(()=>M.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&&cs(this._value_)&&cs(t)&&this._value_.__value===t.__value)return!0;this._value_=Me(t)?t:{__value:t},this._cachedGet_=void 0;const i=cs(this._value_);if(this._parentKey_&&this.parent){const l=cs(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_]:l});else{const c=[];c[Number(this._parentKey_)]=l,this.parent.set(c)}else this.parent._value_[this._parentKey_]=l}if(i)return this._publishAssignement_(s),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_.__value),!0;for(const l in this._value_)this._value_[l]===void 0&&delete this._value_[l];if(this._proxies_.forEach((l,c)=>{const h=this._value_[c];c!="_parent_"&&h===void 0&&h!==null&&isNaN(Number(c))&&(l.set(null),this._publishDynamicFilling_(c,null))}),this._publishAssignement_(),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_),Me(this._value_))for(const l in this._value_){const c=t[l],d=Me(c)?c:{__value:c};if(!this._proxies_.has(l)){this._publishDynamicFilling_(l,c);continue}(n=this._proxies_.get(l))==null||n.set(d,!0),this._publishDynamicFilling_(l,c)}return!0}get(){if(this._cachedGet_!==void 0)return this._cachedGet_;if(M.modifiedCollectore.length>0&&M.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_||(Ft.instancesCounter++,this._instanceCounter_=Ft.instancesCounter),Ft.instances.set(this._instanceCounter_,this),"<"+Ce+'-publisher-proxy publisher="'+this._instanceCounter_+'"></'+Ce+"-publisher-proxy>"}},Ft.instances=new Map,Ft.instancesCounter=0,Ft),M=(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(Fs),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(Fs,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_"+G.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 Ie(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_"+G.getLanguage()]={lastModifiationMS:new Date().getTime(),data:n},i=!0)}if(i){const e=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem(Fs,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 l=await new Response(o.readable).arrayBuffer(),c=new Uint8Array(l);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,l=new n.DecompressionStream(s),c=l.writable.getWriter();c.write(o),c.close();const h=await new Response(l.readable).arrayBuffer();return new TextDecoder().decode(h)}},k.buildDate="Thu Sep 19 2024 16:44:31 GMT+0200 (Central European Summer Time)",k.changed=!1,k.saving=!1,k.saveId=0,k.instance=null,k.instances=new Map,k.modifiedCollectore=[],k);if(typeof window<"u"){const r=window;r[ls+"PublisherManager"]=r[ls+"PublisherManager"]||M}const Yr=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 Ie extends zs{constructor(t,s=null,i){super(t,s,i);const e=new Proxy(this,{get:function(o,n){if(Yr.has(n))return o[n];if(n==Symbol.toPrimitive)return()=>e.get();if(!o._proxies_.has(n)){const l=o._value_[n],c=new Ie(Me(l)?l:{__value:l},o,n);c._proxies_.set("_parent_",e),o._proxies_.set(n,c)}return o._proxies_.get(n)},set:function(o,n,l){var h;if(n=="_value_")return o._value_=l,!0;if(n=="_cachedGet_")return o._cachedGet_=l,!0;if(n=="_assignmentId_")return o._assignmentId_=l,!0;if(n=="_is_savable_")return o._is_savable_=l,!0;if(n=="_instanceCounter_")return o._instanceCounter_=l,!0;if(!o._proxies_.has(n)){const d=new Ie({},o,n);d._proxies_.set("_parent_",e),o._proxies_.set(n,d)}return o._value_[n]!==l&&(o._value_[n]=l,o._publishDynamicFilling_(n,l),(h=o._proxies_.get(n))==null||h.set(Me(l)?l:{__value:l})),!0},deleteProperty:function(o,n){var l;return o._publishDynamicFilling_(n,null),(l=o._proxies_.get(n))==null||l.set(null),delete o._value_[n]},has:function(o,n){return n in o._value_&&n!="_lockInternalMutationPublishing_"},defineProperty:function(o,n,l){return l&&"value"in l&&(o._value_[n]=l.value),!0},getOwnPropertyDescriptor:function(o,n){return{enumerable:!0,configurable:!0}},ownKeys:function(o){return o._value_.__value?Object.keys(o._value_.__value):Object.keys(o._value_)}});return e}getProperty(t,s){return t[s]}}class Gr extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=t=>{this.innerHTML=t.toString()}}connectedCallback(){var t;this.publisherId=this.getAttribute("publisher")||"",this.publisher=zs.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(Ce+"-publisher-proxy",Gr)}catch{}let hs=(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=G.getAncestorAttributeValue(t.parentNode||t.host||t,"dataProvider");if(!s)return;const i=M.getInstance().get(s),e=L.getDataBindItems(t),o=[];e.forEach(n=>{const l=n.bindedVariablesDescriptor,c=n.propertyToUpdate;for(const h of l.variables){const d=h;let f=i;f=L.getSubPublisher(i,d);const m=t,b={publisher:f,onAssign:()=>{const v=l.variables.map(D=>{var p;return(p=L.getSubPublisher(i,D))==null?void 0:p.get()});let P=l.expression,S=!1;if(v.length==1&&l.variables[0].join(".")==P.substring(1)){let D=v[0];D===null&&(D=""),m[c]=D;return}for(let D=0;D<v.length;D++){let p=v[D];const u=l.variables[D];p===null&&(S=!0,p=void 0),P=P.replace("$"+u.join("."),p)}if(P.indexOf("|")!=-1){const D=P.indexOf("|");if(D==0)P=as.js(P.substring(1));else{const p=P.substring(0,D),u=P.substring(D+1),y=as[p];P=S?"":y?y(u):P}}else P=S?"":P;m[c]=P}};f==null||f.onAssign(b.onAssign),o.push(b)}}),L.publisherListeners.set(t,o)}},L.observedElements=new Map,L.enabled=!0,L.publisherListeners=new Map,L);hs.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=hs);let J=class Ht{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 l=t[n],c=s[n];if(i?l!==c:l!=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 l=t[n],c=s[n],h=Ht.isObject(l)&&Ht.isObject(c),d=i?l!==c:l!=c;if(h&&!Ht.deepEqual(l,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 Ht.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&&Ht.isObject(o)?t=Object.assign(Array.isArray(o)?[]:{},t,o):t=t[e]}return t}static traverseDotNotation(t,s,i=!1){return Ht.traverse(t,s.split("."),i)}static getURLSearchArray(t,s=""){let i=[];for(let e in t){const o=t[e];s&&(e=s+"["+e+"]"),Ht.isObject(o)?i=[...i,...this.getURLSearchArray(o,e)]:i.push(`${e}=${o}`)}return i}static getURLSearchString(t){return Ht.getURLSearchArray(t,"").join("&")}};const ht=J.traverseDotNotation;/**
2
2
  * @license
3
3
  * Copyright 2017 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
@@ -18,7 +18,7 @@
18
18
  * @license
19
19
  * Copyright 2017 Google LLC
20
20
  * SPDX-License-Identifier: BSD-3-Clause
21
- */function M(r){return a({...r,state:!0,attribute:!1})}/**
21
+ */function N(r){return a({...r,state:!0,attribute:!1})}/**
22
22
  * @license
23
23
  * Copyright 2017 Google LLC
24
24
  * SPDX-License-Identifier: BSD-3-Clause
@@ -38,9 +38,9 @@
38
38
  * @license
39
39
  * Copyright 2017 Google LLC
40
40
  * SPDX-License-Identifier: BSD-3-Clause
41
- */const Fe=globalThis,us=Fe.trustedTypes,Ui=us?us.createPolicy("lit-html",{createHTML:r=>r}):void 0,qs="$lit$",zt=`lit$${Math.random().toFixed(9).slice(2)}$`,Ws="?"+zt,lo=`<${Ws}>`,oe=document,ze=()=>oe.createComment(""),Re=r=>r===null||typeof r!="object"&&typeof r!="function",Ks=Array.isArray,Vi=r=>Ks(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",Zs=`[
41
+ */const Fe=globalThis,us=Fe.trustedTypes,Ui=us?us.createPolicy("lit-html",{createHTML:r=>r}):void 0,qs="$lit$",Rt=`lit$${Math.random().toFixed(9).slice(2)}$`,Ws="?"+Rt,lo=`<${Ws}>`,oe=document,ze=()=>oe.createComment(""),Re=r=>r===null||typeof r!="object"&&typeof r!="function",Ks=Array.isArray,Vi=r=>Ks(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",Zs=`[
42
42
  \f\r]`,Ue=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Bi=/-->/g,Hi=/>/g,ne=RegExp(`>|${Zs}(?:([^\\s"'>=/]+)(${Zs}*=${Zs}*(?:[^
43
- \f\r"'\`<>=]|("|')|))|$)`,"g"),qi=/'/g,Wi=/"/g,Ki=/^(?:script|style|textarea|title)$/i,co=r=>(t,...s)=>({_$litType$:r,strings:t,values:s}),g=co(1),bt=Symbol.for("lit-noChange"),C=Symbol.for("lit-nothing"),Zi=new WeakMap,ae=oe.createTreeWalker(oe,129);function Yi(r,t){if(!Ks(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ui!==void 0?Ui.createHTML(t):t}const Gi=(r,t)=>{const s=r.length-1,i=[];let e,o=t===2?"<svg>":t===3?"<math>":"",n=Ue;for(let l=0;l<s;l++){const c=r[l];let h,d,f=-1,m=0;for(;m<c.length&&(n.lastIndex=m,d=n.exec(c),d!==null);)m=n.lastIndex,n===Ue?d[1]==="!--"?n=Bi:d[1]!==void 0?n=Hi:d[2]!==void 0?(Ki.test(d[2])&&(e=RegExp("</"+d[2],"g")),n=ne):d[3]!==void 0&&(n=ne):n===ne?d[0]===">"?(n=e??Ue,f=-1):d[1]===void 0?f=-2:(f=n.lastIndex-d[2].length,h=d[1],n=d[3]===void 0?ne:d[3]==='"'?Wi:qi):n===Wi||n===qi?n=ne:n===Bi||n===Hi?n=Ue:(n=ne,e=void 0);const b=n===ne&&r[l+1].startsWith("/>")?" ":"";o+=n===Ue?c+lo:f>=0?(i.push(h),c.slice(0,f)+qs+c.slice(f)+zt+b):c+zt+(f===-2?l:b)}return[Yi(r,o+(r[s]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};class Ve{constructor({strings:t,_$litType$:s},i){let e;this.parts=[];let o=0,n=0;const l=t.length-1,c=this.parts,[h,d]=Gi(t,s);if(this.el=Ve.createElement(h,i),ae.currentNode=this.el.content,s===2||s===3){const f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(e=ae.nextNode())!==null&&c.length<l;){if(e.nodeType===1){if(e.hasAttributes())for(const f of e.getAttributeNames())if(f.endsWith(qs)){const m=d[n++],b=e.getAttribute(f).split(zt),v=/([.?@])?(.*)/.exec(m);c.push({type:1,index:o,name:v[2],strings:b,ctor:v[1]==="."?Xi:v[1]==="?"?Ji:v[1]==="@"?tr:Be}),e.removeAttribute(f)}else f.startsWith(zt)&&(c.push({type:6,index:o}),e.removeAttribute(f));if(Ki.test(e.tagName)){const f=e.textContent.split(zt),m=f.length-1;if(m>0){e.textContent=us?us.emptyScript:"";for(let b=0;b<m;b++)e.append(f[b],ze()),ae.nextNode(),c.push({type:2,index:++o});e.append(f[m],ze())}}}else if(e.nodeType===8)if(e.data===Ws)c.push({type:2,index:o});else{let f=-1;for(;(f=e.data.indexOf(zt,f+1))!==-1;)c.push({type:7,index:o}),f+=zt.length-1}o++}}static createElement(t,s){const i=oe.createElement("template");return i.innerHTML=t,i}}function le(r,t,s=r,i){var n,l;if(t===bt)return t;let e=i!==void 0?(n=s.o)==null?void 0:n[i]:s.l;const o=Re(t)?void 0:t._$litDirective$;return(e==null?void 0:e.constructor)!==o&&((l=e==null?void 0:e._$AO)==null||l.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=le(r,e._$AS(r,t.values),e,i)),t}let Qi=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)??oe).importNode(s,!0);ae.currentNode=e;let o=ae.nextNode(),n=0,l=0,c=i[0];for(;c!==void 0;){if(n===c.index){let h;c.type===2?h=new fs(o,o.nextSibling,this,t):c.type===1?h=new c.ctor(o,c.name,c.strings,this,t):c.type===6&&(h=new er(o,this,t)),this._$AV.push(h),c=i[++l]}n!==(c==null?void 0:c.index)&&(o=ae.nextNode(),n++)}return ae.currentNode=oe,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++}},fs=class Kr{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=C,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=le(this,t,s),Re(t)?t===C||t==null||t===""?(this._$AH!==C&&this._$AR(),this._$AH=C):t!==this._$AH&&t!==bt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Vi(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!==C&&Re(this._$AH)?this._$AA.nextSibling.data=t:this.T(oe.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=Ve.createElement(Yi(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 Qi(e,this),l=n.u(this.options);n.p(s),this.T(l),this._$AH=n}}_$AC(t){let s=Zi.get(t.strings);return s===void 0&&Zi.set(t.strings,s=new Ve(t)),s}k(t){Ks(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 Kr(this.O(ze()),this.O(ze()),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 Be{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,s,i,e,o){this.type=1,this._$AH=C,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=C}_$AI(t,s=this,i,e){const o=this.strings;let n=!1;if(o===void 0)t=le(this,t,s,0),n=!Re(t)||t!==this._$AH&&t!==bt,n&&(this._$AH=t);else{const l=t;let c,h;for(t=o[0],c=0;c<o.length-1;c++)h=le(this,l[i+c],s,c),h===bt&&(h=this._$AH[c]),n||(n=!Re(h)||h!==this._$AH[c]),h===C?t=C:t!==C&&(t+=(h??"")+o[c+1]),this._$AH[c]=h}n&&!e&&this.j(t)}j(t){t===C?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Xi extends Be{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===C?void 0:t}}class Ji extends Be{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==C)}}class tr extends Be{constructor(t,s,i,e,o){super(t,s,i,e,o),this.type=5}_$AI(t,s=this){if((t=le(this,t,s,0)??C)===bt)return;const i=this._$AH,e=t===C&&i!==C||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==C&&(i===C||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 er{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){le(this,t)}}const ho={M:qs,P:zt,A:Ws,C:1,L:Gi,R:Qi,D:Vi,V:le,I:fs,H:Be,N:Ji,U:tr,B:Xi,F:er},Ys=Fe.litHtmlPolyfillSupport;Ys==null||Ys(Ve,fs),(Fe.litHtmlVersions??(Fe.litHtmlVersions=[])).push("3.2.0");const po=(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 fs(t.insertBefore(ze(),o),o,void 0,s??{})}return e._$AI(r),e};/**
43
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),qi=/'/g,Wi=/"/g,Ki=/^(?:script|style|textarea|title)$/i,co=r=>(t,...s)=>({_$litType$:r,strings:t,values:s}),g=co(1),bt=Symbol.for("lit-noChange"),C=Symbol.for("lit-nothing"),Zi=new WeakMap,ae=oe.createTreeWalker(oe,129);function Yi(r,t){if(!Ks(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ui!==void 0?Ui.createHTML(t):t}const Gi=(r,t)=>{const s=r.length-1,i=[];let e,o=t===2?"<svg>":t===3?"<math>":"",n=Ue;for(let l=0;l<s;l++){const c=r[l];let h,d,f=-1,m=0;for(;m<c.length&&(n.lastIndex=m,d=n.exec(c),d!==null);)m=n.lastIndex,n===Ue?d[1]==="!--"?n=Bi:d[1]!==void 0?n=Hi:d[2]!==void 0?(Ki.test(d[2])&&(e=RegExp("</"+d[2],"g")),n=ne):d[3]!==void 0&&(n=ne):n===ne?d[0]===">"?(n=e??Ue,f=-1):d[1]===void 0?f=-2:(f=n.lastIndex-d[2].length,h=d[1],n=d[3]===void 0?ne:d[3]==='"'?Wi:qi):n===Wi||n===qi?n=ne:n===Bi||n===Hi?n=Ue:(n=ne,e=void 0);const b=n===ne&&r[l+1].startsWith("/>")?" ":"";o+=n===Ue?c+lo:f>=0?(i.push(h),c.slice(0,f)+qs+c.slice(f)+Rt+b):c+Rt+(f===-2?l:b)}return[Yi(r,o+(r[s]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};class Ve{constructor({strings:t,_$litType$:s},i){let e;this.parts=[];let o=0,n=0;const l=t.length-1,c=this.parts,[h,d]=Gi(t,s);if(this.el=Ve.createElement(h,i),ae.currentNode=this.el.content,s===2||s===3){const f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(e=ae.nextNode())!==null&&c.length<l;){if(e.nodeType===1){if(e.hasAttributes())for(const f of e.getAttributeNames())if(f.endsWith(qs)){const m=d[n++],b=e.getAttribute(f).split(Rt),v=/([.?@])?(.*)/.exec(m);c.push({type:1,index:o,name:v[2],strings:b,ctor:v[1]==="."?Xi:v[1]==="?"?Ji:v[1]==="@"?tr:Be}),e.removeAttribute(f)}else f.startsWith(Rt)&&(c.push({type:6,index:o}),e.removeAttribute(f));if(Ki.test(e.tagName)){const f=e.textContent.split(Rt),m=f.length-1;if(m>0){e.textContent=us?us.emptyScript:"";for(let b=0;b<m;b++)e.append(f[b],ze()),ae.nextNode(),c.push({type:2,index:++o});e.append(f[m],ze())}}}else if(e.nodeType===8)if(e.data===Ws)c.push({type:2,index:o});else{let f=-1;for(;(f=e.data.indexOf(Rt,f+1))!==-1;)c.push({type:7,index:o}),f+=Rt.length-1}o++}}static createElement(t,s){const i=oe.createElement("template");return i.innerHTML=t,i}}function le(r,t,s=r,i){var n,l;if(t===bt)return t;let e=i!==void 0?(n=s.o)==null?void 0:n[i]:s.l;const o=Re(t)?void 0:t._$litDirective$;return(e==null?void 0:e.constructor)!==o&&((l=e==null?void 0:e._$AO)==null||l.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=le(r,e._$AS(r,t.values),e,i)),t}let Qi=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)??oe).importNode(s,!0);ae.currentNode=e;let o=ae.nextNode(),n=0,l=0,c=i[0];for(;c!==void 0;){if(n===c.index){let h;c.type===2?h=new fs(o,o.nextSibling,this,t):c.type===1?h=new c.ctor(o,c.name,c.strings,this,t):c.type===6&&(h=new er(o,this,t)),this._$AV.push(h),c=i[++l]}n!==(c==null?void 0:c.index)&&(o=ae.nextNode(),n++)}return ae.currentNode=oe,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++}},fs=class Kr{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=C,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=le(this,t,s),Re(t)?t===C||t==null||t===""?(this._$AH!==C&&this._$AR(),this._$AH=C):t!==this._$AH&&t!==bt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Vi(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!==C&&Re(this._$AH)?this._$AA.nextSibling.data=t:this.T(oe.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=Ve.createElement(Yi(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 Qi(e,this),l=n.u(this.options);n.p(s),this.T(l),this._$AH=n}}_$AC(t){let s=Zi.get(t.strings);return s===void 0&&Zi.set(t.strings,s=new Ve(t)),s}k(t){Ks(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 Kr(this.O(ze()),this.O(ze()),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 Be{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,s,i,e,o){this.type=1,this._$AH=C,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=C}_$AI(t,s=this,i,e){const o=this.strings;let n=!1;if(o===void 0)t=le(this,t,s,0),n=!Re(t)||t!==this._$AH&&t!==bt,n&&(this._$AH=t);else{const l=t;let c,h;for(t=o[0],c=0;c<o.length-1;c++)h=le(this,l[i+c],s,c),h===bt&&(h=this._$AH[c]),n||(n=!Re(h)||h!==this._$AH[c]),h===C?t=C:t!==C&&(t+=(h??"")+o[c+1]),this._$AH[c]=h}n&&!e&&this.j(t)}j(t){t===C?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Xi extends Be{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===C?void 0:t}}class Ji extends Be{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==C)}}class tr extends Be{constructor(t,s,i,e,o){super(t,s,i,e,o),this.type=5}_$AI(t,s=this){if((t=le(this,t,s,0)??C)===bt)return;const i=this._$AH,e=t===C&&i!==C||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==C&&(i===C||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 er{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){le(this,t)}}const ho={M:qs,P:Rt,A:Ws,C:1,L:Gi,R:Qi,D:Vi,V:le,I:fs,H:Be,N:Ji,U:tr,B:Xi,F:er},Ys=Fe.litHtmlPolyfillSupport;Ys==null||Ys(Ve,fs),(Fe.litHtmlVersions??(Fe.litHtmlVersions=[])).push("3.2.0");const po=(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 fs(t.insertBefore(ze(),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
@@ -56,24 +56,24 @@
56
56
  * @license
57
57
  * Copyright 2017 Google LLC
58
58
  * SPDX-License-Identifier: BSD-3-Clause
59
- */let w=class extends Ae{constructor(){super(...arguments),this.renderOptions={host:this},this.o=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.o=po(s,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this.o)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.o)==null||t.setConnected(!1)}render(){return bt}};w._$litElement$=!0,w.finalized=!0,(qr=globalThis.litElementHydrateSupport)==null||qr.call(globalThis,{LitElement:w});const Xs=globalThis.litElementPolyfillSupport;Xs==null||Xs({LitElement:w}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.0");function ms(r){if(typeof r=="function"){const t=r;return T.collectModifiedPublisher(),t(),T.getModifiedPublishers()||new Set}if(typeof r=="string"){const t=r.split("."),s=t.shift()||"";let i=T.get(s);i=J.traverse(i,t);const e=new Set;return e.add(i),e}return new Set([r])}class _o extends Qs{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)),bt}subscribe(t){this.unsubscribe(),typeof t=="function"?this.onAssign=()=>{this.setValue(t())}:this.onAssign=s=>{this.setValue(s)},this.observables=ms(t),this.observables.forEach(s=>{s.onAssign(this.onAssign)})}disconnected(){this.unsubscribe()}reconnected(){this.observable&&this.subscribe(this.observable)}}const rr=de(_o),xo=rr,Po=rr,$o=r=>ms(r).values().next().value.get(),or=(r,t)=>{const s=ms(r).values().next().value;if(t!==void 0){const i=s.get();J.isEmpty(i)&&s.set(t)}return s},Co=or,nr=or,Ao=(r,t)=>{ms(r).values().next().value.set(t)},R=class R{constructor(t){this.addHTTPResponse=!1,this.cache="default",this.isServiceSimulated=!1,this.blockUntilDone=!1,this.serviceURL=t.serviceURL,this.blockUntilDone=t.blockUntilDone||!1,this.serviceURL=="publisher://"&&(this.isServiceSimulated=!0),this.serviceURL||(this.serviceURL=document.location.origin),this.userName=t.userName,this.password=t.password,t.token&&(this.token=t.token),this.tokenProvider=t.tokenProvider,this.authToken=t.authToken,this.addHTTPResponse=t.addHTTPResponse||!1,this.credentials=t.credentials,this.cache=t.cache||"default"}set token(t){if(this._token=t,!t){R.tokens.delete(this.serviceURL);return}R.invalidTokens.includes(t)||R.tokens.set(this.serviceURL,t)}get token(){return R.invalidTokens.includes(this._token)?R.tokens.get(this.serviceURL):this._token}handleInvalidToken(t){t&&(R.invalidTokens.includes(t)||(R.invalidTokens.push(t),this.token=null))}async handleResult(t,s){var n;R.firstCallDoneFlags.set(this.serviceURL,"done"),this.lastResult=t;const i=(n=t.headers.get("content-type"))==null?void 0:n.toLowerCase(),e=t.status;let o={};if(!i||i.indexOf("text/")==0)o={text:await t.text()};else try{o=await t.json()}catch{o={}}return this.addHTTPResponse&&J.isObject(o)&&(o._sonic_http_response_=t),e===498&&!R.failledTokenUpdates.has(this.serviceURL)&&(this.handleInvalidToken(this.token),s.apiMethod==="get"?o=await this[s.apiMethod](s.path,s.additionalHeaders):o=await this[s.apiMethod](s.path,s.data,s.method,s.additionalHeaders)),o}async auth(){if(this.token)return;if(R.tokens.has(this.serviceURL)){this.token=R.tokens.get(this.serviceURL);return}if(!this.tokenProvider)return;let t={};this.userName&&this.password?t={Authorization:"Basic "+window.btoa(unescape(encodeURIComponent(this.userName+":"+this.password)))}:this.authToken&&(t={Authorization:"Bearer "+this.authToken});const s=new URL(this.serviceURL),i=s.protocol+"//"+s.host,e=await fetch(this.computeURL(this.tokenProvider,{serviceHost:i}),{headers:t,credentials:this.credentials});try{const o=await e.json();o.token?this.token=o.token:R.failledTokenUpdates.set(this.serviceURL,!0)}catch{R.failledTokenUpdates.set(this.serviceURL,!0)}}async localGet(t,s){var f;const i=T.get(t),e=new URLSearchParams(s.split("?")[1]||""),o=i.get();let n=[];Array.isArray(o)?n=o:n=[o];const l=[];let c=Number.POSITIVE_INFINITY,h=0,d=0;if(e.has("limit")&&(c=parseInt(e.get("limit")||"0"),d++),e.has("offset")&&(h=parseInt(e.get("offset")||"0"),d++),d>0&&(e.delete("limit"),e.delete("offset")),e.size===0)return n.slice(h,h+c);for(const[m,b]of e.entries()){const 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())&&l.push(S):S===b&&l.push(S);else{const D=S;if(!D[m])continue;isNaN(+D[m])?(f=D[m])!=null&&f.toString().toLowerCase().includes(P.toLowerCase())&&l.push(S):D[m]===P&&l.push(S)}}return l.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),l=JSON.stringify({url:n,headers:o});if(!R.loadingGetPromises.has(l)){const h=new Promise(async d=>{try{const f=await fetch(n,{headers:o,credentials:this.credentials,cache:this.cache}),m=await this.handleResult(f,e);d(m)}catch{d(null)}});R.loadingGetPromises.set(l,h)}const c=await R.loadingGetPromises.get(l);return R.loadingGetPromises.delete(l),c}async createHeaders(t){await this.auth();const s={};return this.token&&(s.Authorization="Bearer "+this.token),s["Accept-Language"]=G.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 l=await fetch(this.computeURL(t),{headers:n,credentials:this.credentials,method:i,body:JSON.stringify(s)});return await this.handleResult(l,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 l=new FormData,c=s;for(const d in c)l.set(d,c[d]);const h=await fetch(this.computeURL(t),{headers:n,credentials:this.credentials,method:i,body:l});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 Oe=R;/**
59
+ */let w=class extends Ae{constructor(){super(...arguments),this.renderOptions={host:this},this.o=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.o=po(s,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this.o)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.o)==null||t.setConnected(!1)}render(){return bt}};w._$litElement$=!0,w.finalized=!0,(qr=globalThis.litElementHydrateSupport)==null||qr.call(globalThis,{LitElement:w});const Xs=globalThis.litElementPolyfillSupport;Xs==null||Xs({LitElement:w}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.0");function ms(r){if(typeof r=="function"){const t=r;return M.collectModifiedPublisher(),t(),M.getModifiedPublishers()||new Set}if(typeof r=="string"){const t=r.split("."),s=t.shift()||"";let i=M.get(s);i=J.traverse(i,t);const e=new Set;return e.add(i),e}return new Set([r])}class _o extends Qs{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)),bt}subscribe(t){this.unsubscribe(),typeof t=="function"?this.onAssign=()=>{this.setValue(t())}:this.onAssign=s=>{this.setValue(s)},this.observables=ms(t),this.observables.forEach(s=>{s.onAssign(this.onAssign)})}disconnected(){this.unsubscribe()}reconnected(){this.observable&&this.subscribe(this.observable)}}const rr=de(_o),xo=rr,Po=rr,$o=r=>ms(r).values().next().value.get(),or=(r,t)=>{const s=ms(r).values().next().value;if(t!==void 0){const i=s.get();J.isEmpty(i)&&s.set(t)}return s},Co=or,nr=or,Ao=(r,t)=>{ms(r).values().next().value.set(t)},R=class R{constructor(t){this.addHTTPResponse=!1,this.cache="default",this.isServiceSimulated=!1,this.blockUntilDone=!1,this.serviceURL=t.serviceURL,this.blockUntilDone=t.blockUntilDone||!1,this.serviceURL=="publisher://"&&(this.isServiceSimulated=!0),this.serviceURL||(this.serviceURL=document.location.origin),this.userName=t.userName,this.password=t.password,t.token&&(this.token=t.token),this.tokenProvider=t.tokenProvider,this.authToken=t.authToken,this.addHTTPResponse=t.addHTTPResponse||!1,this.credentials=t.credentials,this.cache=t.cache||"default"}set token(t){if(this._token=t,!t){R.tokens.delete(this.serviceURL);return}R.invalidTokens.includes(t)||R.tokens.set(this.serviceURL,t)}get token(){return R.invalidTokens.includes(this._token)?R.tokens.get(this.serviceURL):this._token}handleInvalidToken(t){t&&(R.invalidTokens.includes(t)||(R.invalidTokens.push(t),this.token=null))}async handleResult(t,s){var n;R.firstCallDoneFlags.set(this.serviceURL,"done"),this.lastResult=t;const i=(n=t.headers.get("content-type"))==null?void 0:n.toLowerCase(),e=t.status;let o={};if(!i||i.indexOf("text/")==0)o={text:await t.text()};else try{o=await t.json()}catch{o={}}return this.addHTTPResponse&&J.isObject(o)&&(o._sonic_http_response_=t),e===498&&!R.failledTokenUpdates.has(this.serviceURL)&&(this.handleInvalidToken(this.token),s.apiMethod==="get"?o=await this[s.apiMethod](s.path,s.additionalHeaders):o=await this[s.apiMethod](s.path,s.data,s.method,s.additionalHeaders)),o}async auth(){if(this.token)return;if(R.tokens.has(this.serviceURL)){this.token=R.tokens.get(this.serviceURL);return}if(!this.tokenProvider)return;let t={};this.userName&&this.password?t={Authorization:"Basic "+window.btoa(unescape(encodeURIComponent(this.userName+":"+this.password)))}:this.authToken&&(t={Authorization:"Bearer "+this.authToken});const s=new URL(this.serviceURL),i=s.protocol+"//"+s.host,e=await fetch(this.computeURL(this.tokenProvider,{serviceHost:i}),{headers:t,credentials:this.credentials});try{const o=await e.json();o.token?this.token=o.token:R.failledTokenUpdates.set(this.serviceURL,!0)}catch{R.failledTokenUpdates.set(this.serviceURL,!0)}}async localGet(t,s){var f;const i=M.get(t),e=new URLSearchParams(s.split("?")[1]||""),o=i.get();let n=[];Array.isArray(o)?n=o:n=[o];const l=[];let c=Number.POSITIVE_INFINITY,h=0,d=0;if(e.has("limit")&&(c=parseInt(e.get("limit")||"0"),d++),e.has("offset")&&(h=parseInt(e.get("offset")||"0"),d++),d>0&&(e.delete("limit"),e.delete("offset")),e.size===0)return n.slice(h,h+c);for(const[m,b]of e.entries()){const 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())&&l.push(S):S===b&&l.push(S);else{const D=S;if(!D[m])continue;isNaN(+D[m])?(f=D[m])!=null&&f.toString().toLowerCase().includes(P.toLowerCase())&&l.push(S):D[m]===P&&l.push(S)}}return l.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),l=JSON.stringify({url:n,headers:o});if(!R.loadingGetPromises.has(l)){const h=new Promise(async d=>{try{const f=await fetch(n,{headers:o,credentials:this.credentials,cache:this.cache}),m=await this.handleResult(f,e);d(m)}catch{d(null)}});R.loadingGetPromises.set(l,h)}const c=await R.loadingGetPromises.get(l);return R.loadingGetPromises.delete(l),c}async createHeaders(t){await this.auth();const s={};return this.token&&(s.Authorization="Bearer "+this.token),s["Accept-Language"]=G.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 l=await fetch(this.computeURL(t),{headers:n,credentials:this.credentials,method:i,body:JSON.stringify(s)});return await this.handleResult(l,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 l=new FormData,c=s;for(const d in c)l.set(d,c[d]);const h=await fetch(this.computeURL(t),{headers:n,credentials:this.credentials,method:i,body:l});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 Oe=R;/**
60
60
  * @license
61
61
  * Copyright 2017 Google LLC
62
62
  * SPDX-License-Identifier: BSD-3-Clause
63
- */class Js extends Se{constructor(t){if(super(t),this.it=C,t.type!==he.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===C||t==null)return this._t=void 0,this.it=t;if(t===bt)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:[]}}}Js.directiveName="unsafeHTML",Js.resultType=1;const F=de(Js),ti=new Map,ar=r=>{if(!r)return null;const t=G.getApiConfiguration(r),s=G.getAncestorAttributeValue(r,"wordingProvider"),i=G.getAncestorAttributeValue(r,"wordingVersionProvider"),e={apiConfiguration:t,wordingProvider:s,wordingVersionProvider:i};let o=null;for(const[n,l]of ti)if(J.deepEqual(n,e)){o=l;break}return o||(o={api:new Oe(t),keysToTranslate:new Set,translatedKeys:new Set,wordingProvider:s,callIndex:0,wordingVersionProvider:i,apiCallKey:e},ti.set(e,o)),o},lr="",B=class B extends Qs{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(){B.publisher["wording_"+this.key].offAssign(this.onAssign)}render(t,s=!1){return this.useUnsafeHTML=s,this.key!==t&&(this.key=t,this.isConnected&&this.subscribe(t)),bt}static async callApi(t,s,i=!0,e){if(await T.getInstance().isLocalStrorageReady,B.firstCall){B.firstCall=!1,js(B.reloadWordings);const d=Object.keys(B.publisher.get());for(const f of d)B.publisher.get()[f]===lr&&delete B.publisher[f]}if(t){const d=G.getAncestorAttributeValue(t,"wordingVersionProvider");d&&nr(d).onAssign(B.handleVersionProvider(t))}let o=B.publisher.get()["wording_"+s]!=null;const n=e||ar(t);if(!n)return;if(o&&s!==""){n.translatedKeys.add(s);return}n.callIndex++;const l=n.callIndex,c=n.wordingProvider??"";if(!c&&i){window.setTimeout(async()=>{B.callApi(null,s,!1,n)},1e3);return}const h=n.api;window.queueMicrotask(async()=>{if(o=B.publisher["wording_"+s].get()!=null,!o&&s!==""&&(n.keysToTranslate.add(s),B.publisher["wording_"+s]=lr),l!==n.callIndex)return;const d=Array.from(n.keysToTranslate);if(!d.length)return;const f=c.split("?"),m=f.shift(),b=(f.length>0?f.join("?")+"&":"")+"labels[]="+d.join("&labels[]="),v=m+"?"+b;n.translatedKeys=new Set([...n.translatedKeys,...n.keysToTranslate]),n.keysToTranslate.clear();const P=await h.get(v);for(const S in P)B.publisher["wording_"+S]=P[S]})}static reloadWordings(){for(const t of ti.values())t.keysToTranslate=new Set(t.translatedKeys),t.keysToTranslate.size>0&&B.callApi(null,"",!1,t)}static handleVersionProvider(t){const s=ar(t);if(!s)return;if(B.versionProviderHandlers.has(s))return B.versionProviderHandlers.get(s);const i=function(e){if(!s.wordingVersionProvider)return;const n=B.publisher.get().__wording_versions__??[];if(e==null)return;const l=n.find(c=>c.serviceURL===s.api.serviceURL)||{serviceURL:s.api.serviceURL,version:0};n.includes(l)||n.push(l),e!==l.version&&(l.version=e,B.publisher.set({__wording_versions__:n}),B.reloadWordings())};return B.versionProviderHandlers.set(s,i),i}subscribe(t){this.unsubscribe(),B.publisher["wording_"+t].onAssign(this.onAssign),B.callApi(this.node,t)}disconnected(){this.unsubscribe()}reconnected(){this.key&&this.subscribe(this.key)}};B.publisher=T.get("sonic-wording",{localStorageMode:"enabled"}),B.firstCall=!0,B.versionProviderHandlers=new Map;let We=B;var So=Object.defineProperty,Oo=Object.getOwnPropertyDescriptor,Rt=(r,t,s,i)=>{for(var e=i>1?void 0:i?Oo(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&So(t,s,e),e};let bs=!1,ei=new Set;const K=(r,t)=>{var e;const s=(e=class extends r{constructor(...n){super(),this.collectDependenciesVersion=0,this.displayContents=!1,this.noAutoFill=!1,this.forceAutoFill=!1,this.renderOnPropsInternalChange=!1,this.noShadowDom=null,this.propertyMap=null,this.title="",this.dataProvider=null,this.bindPublisher=null,this._props=null,this.defferedDebug=null,this.debug=null,this.onAssign=l=>{this.props=l}}hasAncestorAttribute(n){return this.getAncestorAttributeValue(n)!=null}getAncestorAttributeValue(n){return G.getAncestorAttributeValue(this,n)}get props(){return this._props!==null||!this.publisher?this._props:this.publisher.get()}set props(n){typeof n=="string"&&["{","["].includes(n.trim().charAt(0))&&(n=JSON.parse(n)),n!=this._props&&(this._props=n,this.publisher&&this.publisher.get()!=n&&this.publisher.set(n),this.requestUpdate())}updated(n){super.updated(n);const c=[...(this.shadowRoot||this).children].filter(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 l=!0;const c=new IntersectionObserver(h=>{for(const d of h)if(l&&d.isIntersecting){this.addDebugger(),l=!1,this.initWording(),this.initPublisher(),c.disconnect();break}},n);c.observe(this)}else this.initWording(),this.initPublisher(),this.addDebugger();super.connectedCallback()}disconnectedCallback(){var n;this.removeDebugger(),super.disconnectedCallback(),this.publisher&&(this.publisher.stopTemplateFilling(this),this.publisher.offInternalMutation(this.requestUpdate)),We.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 l=this.debug.style;l.position="fixed",l.top="0",l.right="0",l.margin="auto",l.borderRadius=".7rem",l.backgroundColor="#0f1729",l.color="#c5d4f9",l.padding="16px 16px",l.margin="16px 16px",l.boxShadow="0 10px 30px -18px rgba(0,0,0,.3)",l.overflowY="auto",l.zIndex="99999999",l.maxHeight="calc(100vh - 32px)",l.fontFamily="Consolas, monospace",l.maxWidth="min(50vw,25rem)",l.fontSize="12px",l.minWidth="300px",l.overflowWrap="break-word",l.resize="vertical"}this.addEventListener("click",l=>{l.ctrlKey&&(l.preventDefault(),bs=!bs)}),this.dataProvider&&(window[this.dataProvider]=this.publisher),this.addEventListener("mouseover",()=>{bs||this.removeDebugger(),document.body.appendChild(this.debug),ei.add(this.debug)}),this.addEventListener("mouseout",()=>{bs||this.removeDebugger()}),(n=this.publisher)==null||n.onInternalMutation(()=>{var l;this.debug.innerHTML=`🤖 DataProvider : "<b style="font-weight:bold;color:#fff;">${this.dataProvider}</b>"<br>
63
+ */class Js extends Se{constructor(t){if(super(t),this.it=C,t.type!==he.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===C||t==null)return this._t=void 0,this.it=t;if(t===bt)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:[]}}}Js.directiveName="unsafeHTML",Js.resultType=1;const F=de(Js),ti=new Map,ar=r=>{if(!r)return null;const t=G.getApiConfiguration(r),s=G.getAncestorAttributeValue(r,"wordingProvider"),i=G.getAncestorAttributeValue(r,"wordingVersionProvider"),e={apiConfiguration:t,wordingProvider:s,wordingVersionProvider:i};let o=null;for(const[n,l]of ti)if(J.deepEqual(n,e)){o=l;break}return o||(o={api:new Oe(t),keysToTranslate:new Set,translatedKeys:new Set,wordingProvider:s,callIndex:0,wordingVersionProvider:i,apiCallKey:e},ti.set(e,o)),o},lr="",B=class B extends Qs{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(){B.publisher["wording_"+this.key].offAssign(this.onAssign)}render(t,s=!1){return this.useUnsafeHTML=s,this.key!==t&&(this.key=t,this.isConnected&&this.subscribe(t)),bt}static async callApi(t,s,i=!0,e){if(await M.getInstance().isLocalStrorageReady,B.firstCall){B.firstCall=!1,js(B.reloadWordings);const d=Object.keys(B.publisher.get());for(const f of d)B.publisher.get()[f]===lr&&delete B.publisher[f]}if(t){const d=G.getAncestorAttributeValue(t,"wordingVersionProvider");d&&nr(d).onAssign(B.handleVersionProvider(t))}let o=B.publisher.get()["wording_"+s]!=null;const n=e||ar(t);if(!n)return;if(o&&s!==""){n.translatedKeys.add(s);return}n.callIndex++;const l=n.callIndex,c=n.wordingProvider??"";if(!c&&i){window.setTimeout(async()=>{B.callApi(null,s,!1,n)},1e3);return}const h=n.api;window.queueMicrotask(async()=>{if(o=B.publisher["wording_"+s].get()!=null,!o&&s!==""&&(n.keysToTranslate.add(s),B.publisher["wording_"+s]=lr),l!==n.callIndex)return;const d=Array.from(n.keysToTranslate);if(!d.length)return;const f=c.split("?"),m=f.shift(),b=(f.length>0?f.join("?")+"&":"")+"labels[]="+d.join("&labels[]="),v=m+"?"+b;n.translatedKeys=new Set([...n.translatedKeys,...n.keysToTranslate]),n.keysToTranslate.clear();const P=await h.get(v);for(const S in P)B.publisher["wording_"+S]=P[S]})}static reloadWordings(){for(const t of ti.values())t.keysToTranslate=new Set(t.translatedKeys),t.keysToTranslate.size>0&&B.callApi(null,"",!1,t)}static handleVersionProvider(t){const s=ar(t);if(!s)return;if(B.versionProviderHandlers.has(s))return B.versionProviderHandlers.get(s);const i=function(e){if(!s.wordingVersionProvider)return;const n=B.publisher.get().__wording_versions__??[];if(e==null)return;const l=n.find(c=>c.serviceURL===s.api.serviceURL)||{serviceURL:s.api.serviceURL,version:0};n.includes(l)||n.push(l),e!==l.version&&(l.version=e,B.publisher.set({__wording_versions__:n}),B.reloadWordings())};return B.versionProviderHandlers.set(s,i),i}subscribe(t){this.unsubscribe(),B.publisher["wording_"+t].onAssign(this.onAssign),B.callApi(this.node,t)}disconnected(){this.unsubscribe()}reconnected(){this.key&&this.subscribe(this.key)}};B.publisher=M.get("sonic-wording",{localStorageMode:"enabled"}),B.firstCall=!0,B.versionProviderHandlers=new Map;let We=B;var So=Object.defineProperty,Oo=Object.getOwnPropertyDescriptor,St=(r,t,s,i)=>{for(var e=i>1?void 0:i?Oo(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&So(t,s,e),e};let bs=!1,ei=new Set;const K=(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=l=>{this.props=l}}hasAncestorAttribute(n){return this.getAncestorAttributeValue(n)!=null}getAncestorAttributeValue(n){return G.getAncestorAttributeValue(this,n)}get props(){return this._props!==null||!this.publisher?this._props:this.publisher.get()}set props(n){typeof n=="string"&&["{","["].includes(n.trim().charAt(0))&&(n=JSON.parse(n)),n!=this._props&&(this._props=n,this.publisher&&this.publisher.get()!=n&&this.publisher.set(n),this.requestUpdate())}updated(n){super.updated(n);const c=[...(this.shadowRoot||this).children].filter(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 l=!0;const c=new IntersectionObserver(h=>{for(const d of h)if(l&&d.isIntersecting){l=!1,c.disconnect(),this.initWording(),this.startPublisher(),this.shouldRenderLazy=!1;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)),We.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 l=this.debug.style;l.position="fixed",l.top="0",l.right="0",l.margin="auto",l.borderRadius=".7rem",l.backgroundColor="#0f1729",l.color="#c5d4f9",l.padding="16px 16px",l.margin="16px 16px",l.boxShadow="0 10px 30px -18px rgba(0,0,0,.3)",l.overflowY="auto",l.zIndex="99999999",l.maxHeight="calc(100vh - 32px)",l.fontFamily="Consolas, monospace",l.maxWidth="min(50vw,25rem)",l.fontSize="12px",l.minWidth="300px",l.overflowWrap="break-word",l.resize="vertical"}this.addEventListener("click",l=>{l.ctrlKey&&(l.preventDefault(),bs=!bs)}),this.dataProvider&&(window[this.dataProvider]=this.publisher),this.addEventListener("mouseover",()=>{bs||this.removeDebugger(),document.body.appendChild(this.debug),ei.add(this.debug)}),this.addEventListener("mouseout",()=>{bs||this.removeDebugger()}),(n=this.publisher)==null||n.onInternalMutation(()=>{var l;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((l=this.publisher)==null?void 0:l.get(),null," ")}</pre>`})}}removeDebugger(){ei.forEach(n=>{document.body.contains(n)&&document.body.removeChild(n)}),ei=new Set}getApiConfiguration(){return G.getApiConfiguration(this)}async initWording(){const n=Object.getOwnPropertyNames(this.constructor.prototype);for(const l of n)l.indexOf("wording_")==0&&We.callApi(this,l.substring(8));We.publisher.startTemplateFilling(this)}createRenderRoot(){if(this.noShadowDom===""||this.getAttribute("noShadowDom")==="")return this;const n=super.createRenderRoot();return hs.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=T.getInstance();this.dataProvider||(this.dataProvider=this.getAncestorAttributeValue("dataProvider"));let l=this.dataProvider;if(!l&&this._props&&(this.dataProvider=l="__subscriber__"+e.instanceCounter),l){this.bindPublisher&&n.set(l,this.bindPublisher());let c=n.get(l,{localStorageMode:this.getAttribute("localStorage")||"disabled"});if(this.dataProvider=l,this.hasAttribute("subDataProvider")){const h=this.getAttribute("subDataProvider");this.dataProvider=l+"/"+h,c=J.traverse(c,h.split(".")),n.set(this.dataProvider,c),this.publisher=c}this.publisher=c}this.publisher&&(this._props&&this.publisher.set(this._props),this.noAutoFill||this.publisher.startTemplateFilling(this),this.renderOnPropsInternalChange&&this.publisher.onInternalMutation(this.requestUpdate),this.publisher.onAssign(this.onAssign))}},e.instanceCounter=0,e);return Rt([a({type:Number})],s.prototype,"collectDependenciesVersion",2),Rt([a({type:Boolean})],s.prototype,"displayContents",2),Rt([a({type:Boolean})],s.prototype,"noAutoFill",2),Rt([a({type:Boolean})],s.prototype,"forceAutoFill",2),Rt([a({type:Object})],s.prototype,"propertyMap",2),Rt([a({type:String,attribute:"data-title"})],s.prototype,"title",2),Rt([a({reflect:!0})],s.prototype,"dataProvider",2),Rt([a()],s.prototype,"bindPublisher",2),Rt([a()],s.prototype,"props",1),s};var Do=Object.defineProperty,ko=(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&&Do(t,s,e),e};const Ke=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 ko([a({type:Array})],t.prototype,"templates"),t};var Lo=Object.defineProperty,Eo=Object.getOwnPropertyDescriptor,Z=(r,t,s,i)=>{for(var e=i>1?void 0:i?Eo(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Lo(t,s,e),e};const No="sonic-date";js(()=>z.updateComponentsLanguage());let z=class extends K(Ke(w)){constructor(){super(...arguments),this.pageLanguage="fr",this.duAu=[],this._wording_billet_periode_validite="",this.designMode=null,this.time_zone=null,this.date=null,this.date_string=null,this.start_date_string=null,this.end_date_string=null,this.start_date=0,this.hide_hours=!1,this.end_date=0,this.era="",this.year="numeric",this.month="short",this.day="2-digit",this.weekday="short",this.hour="2-digit",this.hour12=!1,this.minute="2-digit",this.language="",this.renderIf=!0,this.now=!1,this.startDateObject=new Date,this.endDateObject=new Date}static updateComponentsLanguage(){z.dateCompnents.forEach(r=>r.pageLanguage=G.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=G.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=as.ucFirst(e[0].value),e.filter(o=>o.hidden!==!0)}dateStringToSeconds(r){return new Date(r).getTime()/1e3}render(){if(!this.renderIf||(this.date_string&&(this.date=this.dateStringToSeconds(this.date_string)),this.date&&(this.start_date=this.date),this.start_date_string&&(this.start_date=this.dateStringToSeconds(this.start_date_string)),this.end_date_string&&(this.end_date=this.dateStringToSeconds(this.end_date_string)),!this.start_date&&!this.now&&!this.end_date))return C;if(this.start_date||(this.start_date=Date.now()/1e3),this.end_date>0&&this.end_date<this.start_date){const s=this.start_date;this.start_date=this.end_date,this.end_date=s}const r={year:this.year,month:this.month,day:this.day,hour12:this.hour12};this.weekday!=="hidden"&&(r.weekday=this.weekday),this.hour!=="hidden"&&(r.hour=this.hour),this.minute!=="hidden"&&(r.minute=this.minute),this.era&&(r.era=this.era),this.time_zone&&(r.timeZone=this.time_zone);const t=this.getDatesParts(this.start_date,this.end_date,r);return 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,Z([a()],z.prototype,"wording_billet_periode_validite",1),Z([a({type:Boolean})],z.prototype,"designMode",2),Z([a({type:String})],z.prototype,"time_zone",2),Z([a({type:Number})],z.prototype,"date",2),Z([a({type:String})],z.prototype,"date_string",2),Z([a({type:String})],z.prototype,"start_date_string",2),Z([a({type:String})],z.prototype,"end_date_string",2),Z([a({type:Number})],z.prototype,"start_date",2),Z([a({type:Boolean})],z.prototype,"hide_hours",2),Z([a({type:Number})],z.prototype,"end_date",2),Z([a({type:String})],z.prototype,"era",2),Z([a({type:String})],z.prototype,"year",2),Z([a({type:String})],z.prototype,"month",2),Z([a({type:String})],z.prototype,"day",2),Z([a({type:String})],z.prototype,"weekday",2),Z([a({type:String})],z.prototype,"hour",2),Z([a({type:Boolean})],z.prototype,"hour12",2),Z([a({type:String})],z.prototype,"minute",2),Z([a({type:String})],z.prototype,"language",2),Z([a({type:Boolean})],z.prototype,"renderIf",2),Z([a({type:Boolean})],z.prototype,"now",2),z=Z([_(No)],z);let rt=(Q=class{static listen(){var s;if(!Q.listening)return;const t=(s=document.location)==null?void 0:s.href.replace(document.location.origin,"");Q.prevURL&&Q.prevURL!=t&&(Q.prevURL=t,Q.listeners.forEach(i=>{i.location=t})),window.requestAnimationFrame(Q.listen)}static offChange(t){const s=Q.listeners.indexOf(t);s!=-1&&(Q.listeners.splice(s,1),Q.listeners.length==0&&(Q.listening=!1))}static onChange(t){Q.listening||(Q.listening=!0,Q.listen()),Q.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,f=(s||d).toString(),b=i.indexOf("http")==0?new URL(i).origin!=d:!1,v=i=="",P=history.length<3,S=v&&P,D=f!=document.location.href;if(b&&D||S){const u=history.state||{};u.concorde=u.concorde||{},u.concorde.hasDoneHistoryBack=!0,history.pushState(u,document.title),history.back(),document.location.replace(f)}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("/"),l=[];let c="";for(const d of n)d!=c&&l.push(d),c=d;e="/"+l.join("/")+o.search+(o.hash?+o.hash:""),t.hasAttribute("pushState")?history.pushState(null,"",e):t.hasAttribute("replaceState")?history.replaceState(null,"",e):document.location.href=e}static updateComponentActiveState(t){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")}}},Q.listeners=[],Q.listening=!1,Q.prevURL=(t=document.location)==null?void 0:t.href.replace(document.location.origin,""),Q);/**
68
+ <pre style="margin-top:10px;background:transparent;padding:0;font-size:inherit;color:inherit;">${JSON.stringify((l=this.publisher)==null?void 0:l.get(),null," ")}</pre>`})}}removeDebugger(){ei.forEach(n=>{document.body.contains(n)&&document.body.removeChild(n)}),ei=new Set}getApiConfiguration(){return G.getApiConfiguration(this)}async initWording(){const n=Object.getOwnPropertyNames(this.constructor.prototype);for(const l of n)l.indexOf("wording_")==0&&We.callApi(this,l.substring(8));We.publisher.startTemplateFilling(this)}createRenderRoot(){if(this.noShadowDom===""||this.getAttribute("noShadowDom")==="")return this;const n=super.createRenderRoot();return hs.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=M.getInstance();this.dataProvider||(this.dataProvider=this.getAncestorAttributeValue("dataProvider"));let l=this.dataProvider;if(!l&&this._props&&(this.dataProvider=l="__subscriber__"+e.instanceCounter),l){this.bindPublisher&&n.set(l,this.bindPublisher());let c=n.get(l,{localStorageMode:this.getAttribute("localStorage")||"disabled"});if(this.dataProvider=l,this.hasAttribute("subDataProvider")){const h=this.getAttribute("subDataProvider");this.dataProvider=l+"/"+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 St([a({type:Number})],s.prototype,"collectDependenciesVersion",2),St([a({type:Boolean})],s.prototype,"displayContents",2),St([a({type:Boolean})],s.prototype,"noAutoFill",2),St([a({type:Boolean})],s.prototype,"forceAutoFill",2),St([a({type:Object})],s.prototype,"propertyMap",2),St([a({type:String,attribute:"data-title"})],s.prototype,"title",2),St([a({reflect:!0})],s.prototype,"dataProvider",2),St([a()],s.prototype,"bindPublisher",2),St([a()],s.prototype,"props",1),St([N()],s.prototype,"shouldRenderLazy",2),s};var Do=Object.defineProperty,ko=(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&&Do(t,s,e),e};const Ke=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 ko([a({type:Array})],t.prototype,"templates"),t};var Lo=Object.defineProperty,Eo=Object.getOwnPropertyDescriptor,Z=(r,t,s,i)=>{for(var e=i>1?void 0:i?Eo(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Lo(t,s,e),e};const No="sonic-date";js(()=>z.updateComponentsLanguage());let z=class extends K(Ke(w)){constructor(){super(...arguments),this.pageLanguage="fr",this.duAu=[],this._wording_billet_periode_validite="",this.designMode=null,this.time_zone=null,this.date=null,this.date_string=null,this.start_date_string=null,this.end_date_string=null,this.start_date=0,this.hide_hours=!1,this.end_date=0,this.era="",this.year="numeric",this.month="short",this.day="2-digit",this.weekday="short",this.hour="2-digit",this.hour12=!1,this.minute="2-digit",this.language="",this.renderIf=!0,this.now=!1,this.startDateObject=new Date,this.endDateObject=new Date}static updateComponentsLanguage(){z.dateCompnents.forEach(r=>r.pageLanguage=G.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=G.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=as.ucFirst(e[0].value),e.filter(o=>o.hidden!==!0)}dateStringToSeconds(r){return new Date(r).getTime()/1e3}render(){if(!this.renderIf||(this.date_string&&(this.date=this.dateStringToSeconds(this.date_string)),this.date&&(this.start_date=this.date),this.start_date_string&&(this.start_date=this.dateStringToSeconds(this.start_date_string)),this.end_date_string&&(this.end_date=this.dateStringToSeconds(this.end_date_string)),!this.start_date&&!this.now&&!this.end_date))return C;if(this.start_date||(this.start_date=Date.now()/1e3),this.end_date>0&&this.end_date<this.start_date){const s=this.start_date;this.start_date=this.end_date,this.end_date=s}const r={year:this.year||"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.start_date,this.end_date,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,Z([a()],z.prototype,"wording_billet_periode_validite",1),Z([a({type:Boolean})],z.prototype,"designMode",2),Z([a({type:String})],z.prototype,"time_zone",2),Z([a({type:Number})],z.prototype,"date",2),Z([a({type:String})],z.prototype,"date_string",2),Z([a({type:String})],z.prototype,"start_date_string",2),Z([a({type:String})],z.prototype,"end_date_string",2),Z([a({type:Number})],z.prototype,"start_date",2),Z([a({type:Boolean})],z.prototype,"hide_hours",2),Z([a({type:Number})],z.prototype,"end_date",2),Z([a({type:String})],z.prototype,"era",2),Z([a({type:String})],z.prototype,"year",2),Z([a({type:String})],z.prototype,"month",2),Z([a({type:String})],z.prototype,"day",2),Z([a({type:String})],z.prototype,"weekday",2),Z([a({type:String})],z.prototype,"hour",2),Z([a({type:Boolean})],z.prototype,"hour12",2),Z([a({type:String})],z.prototype,"minute",2),Z([a({type:String})],z.prototype,"language",2),Z([a({type:Boolean})],z.prototype,"renderIf",2),Z([a({type:Boolean})],z.prototype,"now",2),z=Z([_(No)],z);let rt=(Q=class{static listen(){var s;if(!Q.listening)return;const t=(s=document.location)==null?void 0:s.href.replace(document.location.origin,"");Q.prevURL&&Q.prevURL!=t&&(Q.prevURL=t,Q.listeners.forEach(i=>{i.location=t})),window.requestAnimationFrame(Q.listen)}static offChange(t){const s=Q.listeners.indexOf(t);s!=-1&&(Q.listeners.splice(s,1),Q.listeners.length==0&&(Q.listening=!1))}static onChange(t){Q.listening||(Q.listening=!0,Q.listen()),Q.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,f=(s||d).toString(),b=i.indexOf("http")==0?new URL(i).origin!=d:!1,v=i=="",P=history.length<3,S=v&&P,D=f!=document.location.href;if(b&&D||S){const u=history.state||{};u.concorde=u.concorde||{},u.concorde.hasDoneHistoryBack=!0,history.pushState(u,document.title),history.back(),document.location.replace(f)}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("/"),l=[];let c="";for(const d of n)d!=c&&l.push(d),c=d;e="/"+l.join("/")+o.search+(o.hash?+o.hash:""),t.hasAttribute("pushState")?history.pushState(null,"",e):t.hasAttribute("replaceState")?history.replaceState(null,"",e):document.location.href=e}static updateComponentActiveState(t){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")}}},Q.listeners=[],Q.listening=!1,Q.prevURL=(t=document.location)==null?void 0:t.href.replace(document.location.origin,""),Q);/**
69
69
  * @license
70
70
  * Copyright 2018 Google LLC
71
71
  * SPDX-License-Identifier: BSD-3-Clause
72
- */const cr="important",To=" !"+cr,ut=de(class extends Se{constructor(r){var t;if(super(r),r.type!==he.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(To);i.includes("-")||o?s.setProperty(i,o?e.slice(0,-11):e,o?cr:""):s[i]=e}}return bt}});var Mo=Object.defineProperty,Io=Object.getOwnPropertyDescriptor,St=(r,t,s,i)=>{for(var e=i>1?void 0:i?Io(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Mo(t,s,e),e};const vs=new Map,De=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?T.get(this.formDataProvider):null}setFormPublisherValue(i){const e=this.getFormPublisher();e&&ht(e,this.name).set(i)}getFormPublisherValue(){const i=this.getFormPublisher();return i?ht(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&&ht(this.publisher,this._name).offAssign(this.onValueAssign),this._name&&i&&ht(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&&ht(this.publisher,this._name).onAssign(this.onValueAssign),i=this.getFormPublisher(),this._name&&i&&(ht(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 l of e){vs.has(l)||vs.set(l,[]);const c=vs.get(l);(c==null?void 0:c.indexOf(this))==-1&&c.push(this)}const n=vs.get(o);this.addEventListener("keydown",l=>{var b;const c=l;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 f=null;if(c.key=="ArrowDown"&&d){const v=d.indexOf(this);v==d.length-1?f=d[0]:f=d[v+1]}else if(c.key=="ArrowUp"&&d){const v=d.indexOf(this);v==0?f=d[d.length-1]:f=d[v-1]}const m=(b=f==null?void 0:f.shadowRoot)==null?void 0:b.querySelector(h);m&&m.focus&&(m.focus(),l.preventDefault(),l.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&&ht(this.publisher,this._name).offAssign(this.onValueAssign);const i=this.getFormPublisher();this._name&&i&&(ht(i,this._name).offAssign(this.onFormValueAssign),i.offFormInvalidate(this.onFormDataInValidate))}}return St([a({type:Boolean,reflect:!0})],t.prototype,"touched",2),St([a({type:Boolean})],t.prototype,"error",2),St([a({type:Boolean})],t.prototype,"autofocus",2),St([a({type:Boolean})],t.prototype,"required",2),St([a({type:Boolean})],t.prototype,"forceAutoFill",2),St([a({type:Boolean})],t.prototype,"disabled",2),St([a({type:String,attribute:"data-aria-label"})],t.prototype,"ariaLabel",2),St([a({type:String,attribute:"data-aria-labelledby"})],t.prototype,"ariaLabelledby",2),St([a()],t.prototype,"name",1),St([a()],t.prototype,"value",1),t};let jo=class $e{static areEqual(t,s){return t.length===s.length?t.every((i,e)=>i===s[e]):!1}static from2d(t){return{to1D:()=>{let s=[];return t.forEach(i=>s=s.concat(i)),this.from(s)}}}static from(t){return{get:()=>t||[],everyItem:()=>({has:()=>({same:()=>({value:()=>({forKey:s=>{if(t.length<1)return!0;const i=(t[0]||{})[s];return t.every(e=>(e||{})[s]==i)}})})}),value:()=>({forKey:s=>$e.from(t.map(i=>i[s]))}),copy:()=>({fromKey:s=>({toKey:i=>{t.forEach(e=>{e[i]=Array.isArray(e[s])?[...e[s]]:typeof e[s]=="object"&&e[s]!=null?{...e[s]}:e[s]})}})})}),map:s=>$e.from(t.map(s)),filter:s=>$e.from(t.filter(s)),find:s=>t.find(s),some:s=>t.some(s),every:s=>t.every(s),group:()=>({byKey:s=>{const i=[],e=new Map;for(const o of t){const n=o[s];if(!e.has(n)){const l=i.length;e.set(n,l);const c={items:[]};c[s]=n,i.push(c)}i[e.get(n)].items.push(o)}return $e.from(i)}}),without:()=>({duplicates:()=>({forKey:s=>{const i=[...new Set(t.map(e=>e[s]))];return $e.from(i.map(e=>t.find(o=>o[s]==e)))}}),itemsIn:s=>({havingSameValue:()=>({forKey:i=>{const e=(o,n)=>l=>o[n]!=l[n];return $e.from(t.filter(o=>s.every(e(o,i))))}})})})}}};var Fo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zo(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var si={exports:{}};(function(r,t){var s=[].slice;(function(i,e){return t!==null?r.exports=e():i.UrlPattern=e()})(Fo,function(){var i,e,o,n,l,c,h,d,f,m,b,v,P,S,D;return f=function(p){return p.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},h=function(p,u){var y,A,O;for(O=[],y=-1,A=p.length;++y<A;)O=O.concat(u(p[y]));return O},S=function(p,u){var y,A,O;for(O="",y=-1,A=p.length;++y<A;)O+=u(p[y]);return O},P=function(p){return new RegExp(p.toString()+"|").exec("").length-1},b=function(p,u){var y,A,O,E,H;for(E={},y=-1,O=p.length;++y<O;)A=p[y],H=u[y],H!=null&&(E[A]!=null?(Array.isArray(E[A])||(E[A]=[E[A]]),E[A].push(H)):E[A]=H);return E},i={},i.Result=function(p,u){this.value=p,this.rest=u},i.Tagged=function(p,u){this.tag=p,this.value=u},i.tag=function(p,u){return function(y){var A,O;if(A=u(y),A!=null)return O=new i.Tagged(p,A.value),new i.Result(O,A.rest)}},i.regex=function(p){return function(u){var y,A;if(y=p.exec(u),y!=null)return A=y[0],new i.Result(A,u.slice(A.length))}},i.sequence=function(){var p;return p=1<=arguments.length?s.call(arguments,0):[],function(u){var y,A,O,E,H,W;for(y=-1,A=p.length,W=[],E=u;++y<A;){if(O=p[y],H=O(E),H==null)return;W.push(H.value),E=H.rest}return new i.Result(W,E)}},i.pick=function(){var p,u;return p=arguments[0],u=2<=arguments.length?s.call(arguments,1):[],function(y){var A,O;if(O=i.sequence.apply(i,u)(y),O!=null)return A=O.value,O.value=A[p],O}},i.string=function(p){var u;return u=p.length,function(y){if(y.slice(0,u)===p)return new i.Result(p,y.slice(u))}},i.lazy=function(p){var u;return u=null,function(y){return u==null&&(u=p()),u(y)}},i.baseMany=function(p,u,y,A,O){var E,H,W,At;for(W=O,At=y?"":[];!(u!=null&&(E=u(W),E!=null)||(H=p(W),H==null));)y?At+=H.value:At.push(H.value),W=H.rest;if(!(A&&At.length===0))return new i.Result(At,W)},i.many1=function(p){return function(u){return i.baseMany(p,null,!1,!0,u)}},i.concatMany1Till=function(p,u){return function(y){return i.baseMany(p,u,!0,!0,y)}},i.firstChoice=function(){var p;return p=1<=arguments.length?s.call(arguments,0):[],function(u){var y,A,O,E;for(y=-1,A=p.length;++y<A;)if(O=p[y],E=O(u),E!=null)return E}},v=function(p){var u;return u={},u.wildcard=i.tag("wildcard",i.string(p.wildcardChar)),u.optional=i.tag("optional",i.pick(1,i.string(p.optionalSegmentStartChar),i.lazy(function(){return u.pattern}),i.string(p.optionalSegmentEndChar))),u.name=i.regex(new RegExp("^["+p.segmentNameCharset+"]+")),u.named=i.tag("named",i.pick(1,i.string(p.segmentNameStartChar),i.lazy(function(){return u.name}))),u.escapedChar=i.pick(1,i.string(p.escapeChar),i.regex(/^./)),u.static=i.tag("static",i.concatMany1Till(i.firstChoice(i.lazy(function(){return u.escapedChar}),i.regex(/^./)),i.firstChoice(i.string(p.segmentNameStartChar),i.string(p.optionalSegmentStartChar),i.string(p.optionalSegmentEndChar),u.wildcard))),u.token=i.lazy(function(){return i.firstChoice(u.wildcard,u.optional,u.named,u.static)}),u.pattern=i.many1(i.lazy(function(){return u.token})),u},d={escapeChar:"\\",segmentNameStartChar:":",segmentValueCharset:"a-zA-Z0-9-_~ %",segmentNameCharset:"a-zA-Z0-9",optionalSegmentStartChar:"(",optionalSegmentEndChar:")",wildcardChar:"*"},c=function(p,u){if(Array.isArray(p))return S(p,function(y){return c(y,u)});switch(p.tag){case"wildcard":return"(.*?)";case"named":return"(["+u+"]+)";case"static":return f(p.value);case"optional":return"(?:"+c(p.value,u)+")?"}},l=function(p,u){return u==null&&(u=d.segmentValueCharset),"^"+c(p,u)+"$"},n=function(p){if(Array.isArray(p))return h(p,n);switch(p.tag){case"wildcard":return["_"];case"named":return[p.value];case"static":return[];case"optional":return n(p.value)}},m=function(p,u,y,A){var O,E,H,W;if(A==null&&(A=!1),W=p[u],W==null){if(A)throw new Error("no values provided for key `"+u+"`");return}if(O=y[u]||0,E=Array.isArray(W)?W.length-1:0,O>E){if(A)throw new Error("too few values provided for key `"+u+"`");return}return H=Array.isArray(W)?W[O]:W,A&&(y[u]=O+1),H},o=function(p,u,y){var A,O;if(Array.isArray(p)){for(A=-1,O=p.length;++A<O;)if(o(p[A],u,y))return!0;return!1}switch(p.tag){case"wildcard":return m(u,"_",y,!1)!=null;case"named":return m(u,p.value,y,!1)!=null;case"static":return!1;case"optional":return o(p.value,u,y)}},D=function(p,u,y){if(Array.isArray(p))return S(p,function(A){return D(A,u,y)});switch(p.tag){case"wildcard":return m(u,"_",y,!0);case"named":return m(u,p.value,y,!0);case"static":return p.value;case"optional":return o(p.value,u,y)?D(p.value,u,y):""}},e=function(p,u){var y,A,O,E,H;if(p instanceof e){this.isRegex=p.isRegex,this.regex=p.regex,this.ast=p.ast,this.names=p.names;return}if(this.isRegex=p instanceof RegExp,!(typeof p=="string"||this.isRegex))throw new TypeError("argument must be a regex or a string");if(this.isRegex){if(this.regex=p,u!=null){if(!Array.isArray(u))throw new Error("if first argument is a regex the second argument may be an array of group names but you provided something else");if(y=P(this.regex),u.length!==y)throw new Error("regex contains "+y+" groups but array of group names contains "+u.length);this.names=u}return}if(p==="")throw new Error("argument must not be the empty string");if(H=p.replace(/\s+/g,""),H!==p)throw new Error("argument must not contain whitespace");if(A={escapeChar:(u!=null?u.escapeChar:void 0)||d.escapeChar,segmentNameStartChar:(u!=null?u.segmentNameStartChar:void 0)||d.segmentNameStartChar,segmentNameCharset:(u!=null?u.segmentNameCharset:void 0)||d.segmentNameCharset,segmentValueCharset:(u!=null?u.segmentValueCharset:void 0)||d.segmentValueCharset,optionalSegmentStartChar:(u!=null?u.optionalSegmentStartChar:void 0)||d.optionalSegmentStartChar,optionalSegmentEndChar:(u!=null?u.optionalSegmentEndChar:void 0)||d.optionalSegmentEndChar,wildcardChar:(u!=null?u.wildcardChar:void 0)||d.wildcardChar},E=v(A),O=E.pattern(p),O==null)throw new Error("couldn't parse pattern");if(O.rest!=="")throw new Error("could only partially parse pattern");this.ast=O.value,this.regex=new RegExp(l(this.ast,A.segmentValueCharset)),this.names=n(this.ast)},e.prototype.match=function(p){var u,y;return y=this.regex.exec(p),y==null?null:(u=y.slice(1),this.names?b(this.names,u):u)},e.prototype.stringify=function(p){if(p==null&&(p={}),this.isRegex)throw new Error("can't stringify patterns generated from a regex");if(p!==Object(p))throw new Error("argument must be an object or undefined");return D(this.ast,p,{})},e.escapeForRegex=f,e.concatMap=h,e.stringConcatMap=S,e.regexGroupCount=P,e.keysAndValuesToObject=b,e.P=i,e.newParser=v,e.defaultOptions=d,e.astNodeToRegexString=l,e.astNodeToNames=n,e.getParam=m,e.astNodeContainsSegmentsForProvidedParams=o,e.stringify=D,e})})(si,si.exports);var Ro=si.exports;const pe=zo(Ro),Uo=Zr,Vo=jo,Bo=hs,Ho=as,ue=G,qo=rt,Ze=J,Wo=Ie,et=T,Ko=Oe,Zo=pe;window["concorde-utils"]=window["concorde-utils"]||{},window["concorde-utils"]={Utils:Uo,Arrays:Vo,DataBindObserver:Bo,Format:Ho,HTML:ue,LocationHandler:qo,Objects:Ze,PublisherProxy:Wo,PublisherManager:et,api:Ko,URLPattern:Zo};var Yo=Object.defineProperty,Go=Object.getOwnPropertyDescriptor,ke=(r,t,s,i)=>{for(var e=i>1?void 0:i?Go(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Yo(t,s,e),e};const ii=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 l=this.getFormPublisherValue(),c=e.values.get();if(c&&c.length){let h=c.length;for(const d of c)l.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:et.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 ke([a()],t.prototype,"value",1),ke([a()],t.prototype,"forceAutoFill",2),ke([a({type:Boolean})],t.prototype,"unique",2),ke([a({type:Boolean})],t.prototype,"radio",2),ke([a({type:Boolean})],t.prototype,"unCheckOnDisconnect",2),ke([a()],t.prototype,"checked",1),t};/**
72
+ */const cr="important",To=" !"+cr,ut=de(class extends Se{constructor(r){var t;if(super(r),r.type!==he.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(To);i.includes("-")||o?s.setProperty(i,o?e.slice(0,-11):e,o?cr:""):s[i]=e}}return bt}});var Mo=Object.defineProperty,Io=Object.getOwnPropertyDescriptor,Ot=(r,t,s,i)=>{for(var e=i>1?void 0:i?Io(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Mo(t,s,e),e};const vs=new Map,De=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?M.get(this.formDataProvider):null}setFormPublisherValue(i){const e=this.getFormPublisher();e&&ht(e,this.name).set(i)}getFormPublisherValue(){const i=this.getFormPublisher();return i?ht(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&&ht(this.publisher,this._name).offAssign(this.onValueAssign),this._name&&i&&ht(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&&ht(this.publisher,this._name).onAssign(this.onValueAssign),i=this.getFormPublisher(),this._name&&i&&(ht(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 l of e){vs.has(l)||vs.set(l,[]);const c=vs.get(l);(c==null?void 0:c.indexOf(this))==-1&&c.push(this)}const n=vs.get(o);this.addEventListener("keydown",l=>{var b;const c=l;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 f=null;if(c.key=="ArrowDown"&&d){const v=d.indexOf(this);v==d.length-1?f=d[0]:f=d[v+1]}else if(c.key=="ArrowUp"&&d){const v=d.indexOf(this);v==0?f=d[d.length-1]:f=d[v-1]}const m=(b=f==null?void 0:f.shadowRoot)==null?void 0:b.querySelector(h);m&&m.focus&&(m.focus(),l.preventDefault(),l.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&&ht(this.publisher,this._name).offAssign(this.onValueAssign);const i=this.getFormPublisher();this._name&&i&&(ht(i,this._name).offAssign(this.onFormValueAssign),i.offFormInvalidate(this.onFormDataInValidate))}}return Ot([a({type:Boolean,reflect:!0})],t.prototype,"touched",2),Ot([a({type:Boolean})],t.prototype,"error",2),Ot([a({type:Boolean})],t.prototype,"autofocus",2),Ot([a({type:Boolean})],t.prototype,"required",2),Ot([a({type:Boolean})],t.prototype,"forceAutoFill",2),Ot([a({type:Boolean})],t.prototype,"disabled",2),Ot([a({type:String,attribute:"data-aria-label"})],t.prototype,"ariaLabel",2),Ot([a({type:String,attribute:"data-aria-labelledby"})],t.prototype,"ariaLabelledby",2),Ot([a()],t.prototype,"name",1),Ot([a()],t.prototype,"value",1),t};let jo=class $e{static areEqual(t,s){return t.length===s.length?t.every((i,e)=>i===s[e]):!1}static from2d(t){return{to1D:()=>{let s=[];return t.forEach(i=>s=s.concat(i)),this.from(s)}}}static from(t){return{get:()=>t||[],everyItem:()=>({has:()=>({same:()=>({value:()=>({forKey:s=>{if(t.length<1)return!0;const i=(t[0]||{})[s];return t.every(e=>(e||{})[s]==i)}})})}),value:()=>({forKey:s=>$e.from(t.map(i=>i[s]))}),copy:()=>({fromKey:s=>({toKey:i=>{t.forEach(e=>{e[i]=Array.isArray(e[s])?[...e[s]]:typeof e[s]=="object"&&e[s]!=null?{...e[s]}:e[s]})}})})}),map:s=>$e.from(t.map(s)),filter:s=>$e.from(t.filter(s)),find:s=>t.find(s),some:s=>t.some(s),every:s=>t.every(s),group:()=>({byKey:s=>{const i=[],e=new Map;for(const o of t){const n=o[s];if(!e.has(n)){const l=i.length;e.set(n,l);const c={items:[]};c[s]=n,i.push(c)}i[e.get(n)].items.push(o)}return $e.from(i)}}),without:()=>({duplicates:()=>({forKey:s=>{const i=[...new Set(t.map(e=>e[s]))];return $e.from(i.map(e=>t.find(o=>o[s]==e)))}}),itemsIn:s=>({havingSameValue:()=>({forKey:i=>{const e=(o,n)=>l=>o[n]!=l[n];return $e.from(t.filter(o=>s.every(e(o,i))))}})})})}}};var Fo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zo(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var si={exports:{}};(function(r,t){var s=[].slice;(function(i,e){return t!==null?r.exports=e():i.UrlPattern=e()})(Fo,function(){var i,e,o,n,l,c,h,d,f,m,b,v,P,S,D;return f=function(p){return p.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},h=function(p,u){var y,A,O;for(O=[],y=-1,A=p.length;++y<A;)O=O.concat(u(p[y]));return O},S=function(p,u){var y,A,O;for(O="",y=-1,A=p.length;++y<A;)O+=u(p[y]);return O},P=function(p){return new RegExp(p.toString()+"|").exec("").length-1},b=function(p,u){var y,A,O,E,H;for(E={},y=-1,O=p.length;++y<O;)A=p[y],H=u[y],H!=null&&(E[A]!=null?(Array.isArray(E[A])||(E[A]=[E[A]]),E[A].push(H)):E[A]=H);return E},i={},i.Result=function(p,u){this.value=p,this.rest=u},i.Tagged=function(p,u){this.tag=p,this.value=u},i.tag=function(p,u){return function(y){var A,O;if(A=u(y),A!=null)return O=new i.Tagged(p,A.value),new i.Result(O,A.rest)}},i.regex=function(p){return function(u){var y,A;if(y=p.exec(u),y!=null)return A=y[0],new i.Result(A,u.slice(A.length))}},i.sequence=function(){var p;return p=1<=arguments.length?s.call(arguments,0):[],function(u){var y,A,O,E,H,W;for(y=-1,A=p.length,W=[],E=u;++y<A;){if(O=p[y],H=O(E),H==null)return;W.push(H.value),E=H.rest}return new i.Result(W,E)}},i.pick=function(){var p,u;return p=arguments[0],u=2<=arguments.length?s.call(arguments,1):[],function(y){var A,O;if(O=i.sequence.apply(i,u)(y),O!=null)return A=O.value,O.value=A[p],O}},i.string=function(p){var u;return u=p.length,function(y){if(y.slice(0,u)===p)return new i.Result(p,y.slice(u))}},i.lazy=function(p){var u;return u=null,function(y){return u==null&&(u=p()),u(y)}},i.baseMany=function(p,u,y,A,O){var E,H,W,At;for(W=O,At=y?"":[];!(u!=null&&(E=u(W),E!=null)||(H=p(W),H==null));)y?At+=H.value:At.push(H.value),W=H.rest;if(!(A&&At.length===0))return new i.Result(At,W)},i.many1=function(p){return function(u){return i.baseMany(p,null,!1,!0,u)}},i.concatMany1Till=function(p,u){return function(y){return i.baseMany(p,u,!0,!0,y)}},i.firstChoice=function(){var p;return p=1<=arguments.length?s.call(arguments,0):[],function(u){var y,A,O,E;for(y=-1,A=p.length;++y<A;)if(O=p[y],E=O(u),E!=null)return E}},v=function(p){var u;return u={},u.wildcard=i.tag("wildcard",i.string(p.wildcardChar)),u.optional=i.tag("optional",i.pick(1,i.string(p.optionalSegmentStartChar),i.lazy(function(){return u.pattern}),i.string(p.optionalSegmentEndChar))),u.name=i.regex(new RegExp("^["+p.segmentNameCharset+"]+")),u.named=i.tag("named",i.pick(1,i.string(p.segmentNameStartChar),i.lazy(function(){return u.name}))),u.escapedChar=i.pick(1,i.string(p.escapeChar),i.regex(/^./)),u.static=i.tag("static",i.concatMany1Till(i.firstChoice(i.lazy(function(){return u.escapedChar}),i.regex(/^./)),i.firstChoice(i.string(p.segmentNameStartChar),i.string(p.optionalSegmentStartChar),i.string(p.optionalSegmentEndChar),u.wildcard))),u.token=i.lazy(function(){return i.firstChoice(u.wildcard,u.optional,u.named,u.static)}),u.pattern=i.many1(i.lazy(function(){return u.token})),u},d={escapeChar:"\\",segmentNameStartChar:":",segmentValueCharset:"a-zA-Z0-9-_~ %",segmentNameCharset:"a-zA-Z0-9",optionalSegmentStartChar:"(",optionalSegmentEndChar:")",wildcardChar:"*"},c=function(p,u){if(Array.isArray(p))return S(p,function(y){return c(y,u)});switch(p.tag){case"wildcard":return"(.*?)";case"named":return"(["+u+"]+)";case"static":return f(p.value);case"optional":return"(?:"+c(p.value,u)+")?"}},l=function(p,u){return u==null&&(u=d.segmentValueCharset),"^"+c(p,u)+"$"},n=function(p){if(Array.isArray(p))return h(p,n);switch(p.tag){case"wildcard":return["_"];case"named":return[p.value];case"static":return[];case"optional":return n(p.value)}},m=function(p,u,y,A){var O,E,H,W;if(A==null&&(A=!1),W=p[u],W==null){if(A)throw new Error("no values provided for key `"+u+"`");return}if(O=y[u]||0,E=Array.isArray(W)?W.length-1:0,O>E){if(A)throw new Error("too few values provided for key `"+u+"`");return}return H=Array.isArray(W)?W[O]:W,A&&(y[u]=O+1),H},o=function(p,u,y){var A,O;if(Array.isArray(p)){for(A=-1,O=p.length;++A<O;)if(o(p[A],u,y))return!0;return!1}switch(p.tag){case"wildcard":return m(u,"_",y,!1)!=null;case"named":return m(u,p.value,y,!1)!=null;case"static":return!1;case"optional":return o(p.value,u,y)}},D=function(p,u,y){if(Array.isArray(p))return S(p,function(A){return D(A,u,y)});switch(p.tag){case"wildcard":return m(u,"_",y,!0);case"named":return m(u,p.value,y,!0);case"static":return p.value;case"optional":return o(p.value,u,y)?D(p.value,u,y):""}},e=function(p,u){var y,A,O,E,H;if(p instanceof e){this.isRegex=p.isRegex,this.regex=p.regex,this.ast=p.ast,this.names=p.names;return}if(this.isRegex=p instanceof RegExp,!(typeof p=="string"||this.isRegex))throw new TypeError("argument must be a regex or a string");if(this.isRegex){if(this.regex=p,u!=null){if(!Array.isArray(u))throw new Error("if first argument is a regex the second argument may be an array of group names but you provided something else");if(y=P(this.regex),u.length!==y)throw new Error("regex contains "+y+" groups but array of group names contains "+u.length);this.names=u}return}if(p==="")throw new Error("argument must not be the empty string");if(H=p.replace(/\s+/g,""),H!==p)throw new Error("argument must not contain whitespace");if(A={escapeChar:(u!=null?u.escapeChar:void 0)||d.escapeChar,segmentNameStartChar:(u!=null?u.segmentNameStartChar:void 0)||d.segmentNameStartChar,segmentNameCharset:(u!=null?u.segmentNameCharset:void 0)||d.segmentNameCharset,segmentValueCharset:(u!=null?u.segmentValueCharset:void 0)||d.segmentValueCharset,optionalSegmentStartChar:(u!=null?u.optionalSegmentStartChar:void 0)||d.optionalSegmentStartChar,optionalSegmentEndChar:(u!=null?u.optionalSegmentEndChar:void 0)||d.optionalSegmentEndChar,wildcardChar:(u!=null?u.wildcardChar:void 0)||d.wildcardChar},E=v(A),O=E.pattern(p),O==null)throw new Error("couldn't parse pattern");if(O.rest!=="")throw new Error("could only partially parse pattern");this.ast=O.value,this.regex=new RegExp(l(this.ast,A.segmentValueCharset)),this.names=n(this.ast)},e.prototype.match=function(p){var u,y;return y=this.regex.exec(p),y==null?null:(u=y.slice(1),this.names?b(this.names,u):u)},e.prototype.stringify=function(p){if(p==null&&(p={}),this.isRegex)throw new Error("can't stringify patterns generated from a regex");if(p!==Object(p))throw new Error("argument must be an object or undefined");return D(this.ast,p,{})},e.escapeForRegex=f,e.concatMap=h,e.stringConcatMap=S,e.regexGroupCount=P,e.keysAndValuesToObject=b,e.P=i,e.newParser=v,e.defaultOptions=d,e.astNodeToRegexString=l,e.astNodeToNames=n,e.getParam=m,e.astNodeContainsSegmentsForProvidedParams=o,e.stringify=D,e})})(si,si.exports);var Ro=si.exports;const pe=zo(Ro),Uo=Zr,Vo=jo,Bo=hs,Ho=as,ue=G,qo=rt,Ze=J,Wo=Ie,et=M,Ko=Oe,Zo=pe;window["concorde-utils"]=window["concorde-utils"]||{},window["concorde-utils"]={Utils:Uo,Arrays:Vo,DataBindObserver:Bo,Format:Ho,HTML:ue,LocationHandler:qo,Objects:Ze,PublisherProxy:Wo,PublisherManager:et,api:Ko,URLPattern:Zo};var Yo=Object.defineProperty,Go=Object.getOwnPropertyDescriptor,ke=(r,t,s,i)=>{for(var e=i>1?void 0:i?Go(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Yo(t,s,e),e};const ii=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 l=this.getFormPublisherValue(),c=e.values.get();if(c&&c.length){let h=c.length;for(const d of c)l.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:et.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 ke([a()],t.prototype,"value",1),ke([a()],t.prototype,"forceAutoFill",2),ke([a({type:Boolean})],t.prototype,"unique",2),ke([a({type:Boolean})],t.prototype,"radio",2),ke([a({type:Boolean})],t.prototype,"unCheckOnDisconnect",2),ke([a()],t.prototype,"checked",1),t};/**
73
73
  * @license
74
74
  * Copyright 2018 Google LLC
75
75
  * SPDX-License-Identifier: BSD-3-Clause
76
- */const x=r=>r??C,Ot=$`
76
+ */const x=r=>r??C,Dt=$`
77
77
  /*SIZES*/
78
78
  :host {
79
79
  --sc-fs: 1rem;
@@ -139,7 +139,7 @@
139
139
  aria-labelledby=${x(this.ariaLabelledby)}
140
140
  @click=${this.pushState||this.goBack!==null?this.handleNavigation:null}
141
141
  >${t}</a
142
- >`:g`${t}`}onSlotChange(){var r,t;this.hasPrefix=!!((r=this.prefixes)!=null&&r.length),this.hasSuffix=!!((t=this.suffixes)!=null&&t.length)}};I.styles=[Ot,$`
142
+ >`:g`${t}`}onSlotChange(){var r,t;this.hasPrefix=!!((r=this.prefixes)!=null&&r.length),this.hasSuffix=!!((t=this.suffixes)!=null&&t.length)}};I.styles=[Dt,$`
143
143
  * {
144
144
  box-sizing: border-box;
145
145
  }
@@ -489,7 +489,7 @@
489
489
  transform: translate(-50%, -50%) rotate(359deg);
490
490
  }
491
491
  }
492
- `],U([a({type:String,reflect:!0})],I.prototype,"type",2),U([a({type:String,reflect:!0})],I.prototype,"variant",2),U([a({type:String,reflect:!0})],I.prototype,"size",2),U([a({type:String,reflect:!0})],I.prototype,"shape",2),U([a({type:String})],I.prototype,"direction",2),U([a({type:String,reflect:!0})],I.prototype,"alignItems",2),U([a({type:String})],I.prototype,"justify",2),U([a({type:String,reflect:!0})],I.prototype,"align",2),U([a({type:String})],I.prototype,"minWidth",2),U([a({type:Boolean,reflect:!0})],I.prototype,"icon",2),U([a({type:String})],I.prototype,"download",2),U([a({type:String})],I.prototype,"autoActive",2),U([a({type:Boolean,reflect:!0})],I.prototype,"loading",2),U([M()],I.prototype,"hasPrefix",2),U([M()],I.prototype,"hasSuffix",2),U([re({flatten:!0,slot:"prefix"})],I.prototype,"prefixes",2),U([re({flatten:!0,slot:"suffix"})],I.prototype,"suffixes",2),U([a({type:String})],I.prototype,"target",2),U([a({type:String})],I.prototype,"href",1),U([a({type:String})],I.prototype,"goBack",2),U([a({type:Boolean})],I.prototype,"pushState",2),U([a({type:Boolean,reflect:!0})],I.prototype,"active",2),U([a({type:Boolean,reflect:!0})],I.prototype,"autoRepeat",2),U([a({type:String,attribute:"data-aria-controls"})],I.prototype,"ariaControls",2),U([a({type:Boolean,attribute:"data-aria-expanded"})],I.prototype,"sonicAriaExpanded",2),U([M()],I.prototype,"location",2),I=U([_(Jo)],I);/**
492
+ `],U([a({type:String,reflect:!0})],I.prototype,"type",2),U([a({type:String,reflect:!0})],I.prototype,"variant",2),U([a({type:String,reflect:!0})],I.prototype,"size",2),U([a({type:String,reflect:!0})],I.prototype,"shape",2),U([a({type:String})],I.prototype,"direction",2),U([a({type:String,reflect:!0})],I.prototype,"alignItems",2),U([a({type:String})],I.prototype,"justify",2),U([a({type:String,reflect:!0})],I.prototype,"align",2),U([a({type:String})],I.prototype,"minWidth",2),U([a({type:Boolean,reflect:!0})],I.prototype,"icon",2),U([a({type:String})],I.prototype,"download",2),U([a({type:String})],I.prototype,"autoActive",2),U([a({type:Boolean,reflect:!0})],I.prototype,"loading",2),U([N()],I.prototype,"hasPrefix",2),U([N()],I.prototype,"hasSuffix",2),U([re({flatten:!0,slot:"prefix"})],I.prototype,"prefixes",2),U([re({flatten:!0,slot:"suffix"})],I.prototype,"suffixes",2),U([a({type:String})],I.prototype,"target",2),U([a({type:String})],I.prototype,"href",1),U([a({type:String})],I.prototype,"goBack",2),U([a({type:Boolean})],I.prototype,"pushState",2),U([a({type:Boolean,reflect:!0})],I.prototype,"active",2),U([a({type:Boolean,reflect:!0})],I.prototype,"autoRepeat",2),U([a({type:String,attribute:"data-aria-controls"})],I.prototype,"ariaControls",2),U([a({type:Boolean,attribute:"data-aria-expanded"})],I.prototype,"sonicAriaExpanded",2),U([N()],I.prototype,"location",2),I=U([_(Jo)],I);/**
493
493
  * @license
494
494
  * Copyright 2017 Google LLC
495
495
  * SPDX-License-Identifier: BSD-3-Clause
@@ -578,7 +578,7 @@
578
578
  :host([size="3xl"]) svg {
579
579
  --sc-icon-size: 2.8em;
580
580
  }
581
- `,Ye([M()],fe.prototype,"iconText",2),Ye([a({type:String})],fe.prototype,"name",2),Ye([a({type:String})],fe.prototype,"prefix",2),Ye([a({type:String})],fe.prototype,"library",2),fe=Ye([_(hn)],fe);const Ge=$`
581
+ `,Ye([N()],fe.prototype,"iconText",2),Ye([a({type:String})],fe.prototype,"name",2),Ye([a({type:String})],fe.prototype,"prefix",2),Ye([a({type:String})],fe.prototype,"library",2),fe=Ye([_(hn)],fe);const Ge=$`
582
582
  .custom-scroll {
583
583
  overflow: auto !important;
584
584
  overflow-y: overlay !important;
@@ -600,7 +600,7 @@
600
600
  border: solid 0.15rem transparent;
601
601
  }
602
602
  }
603
- `;var dn=Object.defineProperty,pn=Object.getOwnPropertyDescriptor,Dt=(r,t,s,i)=>{for(var e=i>1?void 0:i?pn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&dn(t,s,e),e};const un={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty"},fn="sonic-toast-item";let _t=class extends w{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 C}return this.visible?g`<div
603
+ `;var dn=Object.defineProperty,pn=Object.getOwnPropertyDescriptor,kt=(r,t,s,i)=>{for(var e=i>1?void 0:i?pn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&dn(t,s,e),e};const un={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty"},fn="sonic-toast-item";let _t=class extends w{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 C}return this.visible?g`<div
604
604
  class="sonic-toast ${this.status} ${this.ghost?"ghost":""}"
605
605
  >
606
606
  <button
@@ -806,7 +806,7 @@
806
806
  opacity: 0.85;
807
807
  pointer-events: none;
808
808
  }
809
- `],Dt([a({type:String})],_t.prototype,"title",2),Dt([a({type:String})],_t.prototype,"id",2),Dt([a({type:String})],_t.prototype,"text",2),Dt([a({type:String})],_t.prototype,"status",2),Dt([a({type:Boolean})],_t.prototype,"ghost",2),Dt([a({type:Boolean})],_t.prototype,"preserve",2),Dt([a({type:Boolean})],_t.prototype,"dismissForever",2),Dt([a({type:String})],_t.prototype,"maxHeight",2),Dt([M()],_t.prototype,"visible",2),_t=Dt([_(fn)],_t);const gn=$`
809
+ `],kt([a({type:String})],_t.prototype,"title",2),kt([a({type:String})],_t.prototype,"id",2),kt([a({type:String})],_t.prototype,"text",2),kt([a({type:String})],_t.prototype,"status",2),kt([a({type:Boolean})],_t.prototype,"ghost",2),kt([a({type:Boolean})],_t.prototype,"preserve",2),kt([a({type:Boolean})],_t.prototype,"dismissForever",2),kt([a({type:String})],_t.prototype,"maxHeight",2),kt([N()],_t.prototype,"visible",2),_t=kt([_(fn)],_t);const gn=$`
810
810
  :host {
811
811
  /* polices*/
812
812
  --sc-font-family-base: "Inter var", "Inter", -apple-system, system-ui,
@@ -977,7 +977,7 @@
977
977
  transition-property: scale, opacity;
978
978
  transition-timing-function: cubic-bezier(0.25, 0.25, 0.42, 1.225);
979
979
  }
980
- `],Qe([a({type:String,reflect:!0})],vt.prototype,"theme",2),Qe([a({type:Boolean,reflect:!0})],vt.prototype,"background",2),Qe([a({type:Boolean,reflect:!0})],vt.prototype,"color",2),Qe([a({type:Boolean,reflect:!0})],vt.prototype,"font",2),vt=Qe([_(wn)],vt);var _n=Object.defineProperty,xn=Object.getOwnPropertyDescriptor,xr=(r,t,s,i)=>{for(var e=i>1?void 0:i?xn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&_n(t,s,e),e};const Pn="sonic-toast";let N=class extends w{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"}),N.handleExistingToastDelegation(),this.toasts?g`<div aria-live="polite" style=${ut(s)}>
980
+ `],Qe([a({type:String,reflect:!0})],vt.prototype,"theme",2),Qe([a({type:Boolean,reflect:!0})],vt.prototype,"background",2),Qe([a({type:Boolean,reflect:!0})],vt.prototype,"color",2),Qe([a({type:Boolean,reflect:!0})],vt.prototype,"font",2),vt=Qe([_(wn)],vt);var _n=Object.defineProperty,xn=Object.getOwnPropertyDescriptor,xr=(r,t,s,i)=>{for(var e=i>1?void 0:i?xn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&_n(t,s,e),e};const Pn="sonic-toast";let T=class extends w{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"}),T.handleExistingToastDelegation(),this.toasts?g`<div aria-live="polite" style=${ut(s)}>
981
981
  ${ys(this.toasts,i=>i.id,i=>g`
982
982
  <sonic-toast-item
983
983
  maxHeight=${t?"none":"10rem"}
@@ -994,11 +994,11 @@
994
994
  ${i.text?F(i.text):""}
995
995
  </sonic-toast-item>
996
996
  `)}
997
- </div>`:C}static removeAll(){if(N.delegateToasts){N.handleExistingToastDelegation(),window.parent.postMessage({type:"removeAllToasts"},"*");return}const t=N.getInstance();t&&(t.toasts=t.toasts.filter(s=>s.ghost))}static getInstance(){return N.instance||(N.instance=document.createElement("sonic-toast"),vt.getPopContainer().prepend(N.instance)),N.instance}static add(t){if(N.delegateToasts){N.handleExistingToastDelegation(),window.parent.postMessage({type:"addToast",toast:t},"*");return}const s=N.getInstance(),i=t.id??new Date().valueOf(),o=new RegExp("</a>|</.*?button>|</.*?input>|</.*?textarea>|</.*?select>").test(t.text),n={id:i,text:t.text,title:t.title,status:t.status,preserve:o?!0:t.preserve,ghost:t.ghost,dismissForever:t.dismissForever};if(t.dismissForever&&t.id){const l=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(l)[t.id])return null}if(s!=null&&s.toasts.length){const l={...n};for(const c of s.toasts){const h={...c};if(l.id=h.id=0,J.shallowEqual(l,h))return null}}return s&&(s.toasts=[...s.toasts,n]),n}static handleExistingToastDelegation(){if(!this.delegateToasts)return;const t=N.getInstance();window.parent.postMessage({type:"addToasts",toasts:t.toasts},"*"),t.toasts=[]}static removeItem(t){if(N.delegateToasts){N.handleExistingToastDelegation(),window.parent.postMessage({type:"removeToast",toast:t},"*");return}const s=N.getInstance();s&&s.removeItem(t)}removeItem(t){t&&(this.toasts=this.toasts.filter(s=>(s={...s},delete s.id,!J.shallowEqual(s,t,!1))))}};N.delegateToasts=!1,xr([a({type:Array})],N.prototype,"toasts",2),N=xr([_(Pn)],N),typeof window<"u"&&(window[ls+"Toast"]=window[ls+"Toast"]||N);function $n(){var s;const r=i=>{i.data.type=="querySonicToastAvailability"&&i.source.postMessage({type:"sonicToastAvailable"},"*"),i.data.type=="sonicToastAvailable"&&(N.delegateToasts=!0,N.handleExistingToastDelegation()),i.data.type=="addToasts"&&(N.getInstance().toasts=[...N.getInstance().toasts,...i.data.toasts]),i.data.type=="removeAllToasts"&&N.removeAll(),i.data.type=="removeToast"&&N.removeItem(i.data.toast),i.data.type=="addToast"&&N.add(i.data.toast)},t=window.parent!=window;if(window.addEventListener("message",r,!1),t&&window.parent.postMessage({type:"querySonicToastAvailability"},"*"),!t)for(const i of document.querySelectorAll("iframe"))(s=i.contentWindow)==null||s.postMessage({type:"sonicToastAvailable"},"*")}$n();var Cn=Object.defineProperty,An=Object.getOwnPropertyDescriptor,Xe=(r,t,s,i)=>{for(var e=i>1?void 0:i?An(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Cn(t,s,e),e};const Sn=new Set,On=new Set,Dn=r=>{for(const t of On)t(r)},ai=new Set;let li=0;js(async()=>{li++;const r=li,t=Array.from(ai);for(;t.length>0;){if(r!=li)return;const s=t.splice(0,4);await Promise.all(s.map(i=>i._fetchData()))}});const ci=(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 Oe(this.getApiConfiguration()),!this.api)||(this.dispatchEvent(new CustomEvent("loading",{detail:this})),this.getAttribute("localStorage")==="enabled"&&await et.getInstance().isLocalStrorageReady,!this.isConnected))return;const e=et.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||Sn.add(this),Dn(this.api.lastResult)),!!this.isConnected){if(o)o._sonic_http_response_&&!o._sonic_http_response_.ok&&Object.keys(o).length===1&&N.add({text:"Network Error",status:"error"});else{this.isLoading=!1,this.refetchEveryMs&&this.isConnected&&(this.refetchTimeOutId=setTimeout(()=>this._fetchData(),this.refetchEveryMs));return}if(this.key){const n=o._sonic_http_response_,l=this.key.split(".");o=J.traverse(o,l,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(),ai.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"),ai.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 l of e)if(l.isIntersecting&&this.isFirstLoad){this._fetchData(),(o=this.lazyLoadSpan)==null||o.remove(),this.lazyLoadSpan=void 0,(n=this.iObserver)==null||n.disconnect();break}}}return Xe([a()],s.prototype,"noErrorsRecordings",2),Xe([a()],s.prototype,"props",1),Xe([a({type:String})],s.prototype,"endPoint",1),Xe([a()],s.prototype,"requestId",2),Xe([a({type:Number})],s.prototype,"refetchEveryMs",2),s};var kn=Object.defineProperty,Ln=Object.getOwnPropertyDescriptor,ge=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ln(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&kn(t,s,e),e};const Ps=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 ge([a()],t.prototype,"forceAutoFill",2),ge([a({type:String})],t.prototype,"type",1),ge([a()],t.prototype,"description",1),ge([a()],t.prototype,"label",1),ge([a({type:String,reflect:!0})],t.prototype,"status",2),ge([a({type:Number})],t.prototype,"tabindex",2),ge([a({type:String})],t.prototype,"autocomplete",2),t},Pr=ci,En=ii,$r=De,Cr=Ps,Kt=K,hi=Ke;window["concorde-mixins"]=window["concorde-mixins"]||{},window["concorde-mixins"]={Fetcher:Pr,FormCheckable:En,FormElement:$r,FormInput:Cr,Subscriber:Kt,TemplatesContainer:hi};/**
997
+ </div>`:C}static removeAll(){if(T.delegateToasts){T.handleExistingToastDelegation(),window.parent.postMessage({type:"removeAllToasts"},"*");return}const t=T.getInstance();t&&(t.toasts=t.toasts.filter(s=>s.ghost))}static getInstance(){return T.instance||(T.instance=document.createElement("sonic-toast"),vt.getPopContainer().prepend(T.instance)),T.instance}static add(t){if(T.delegateToasts){T.handleExistingToastDelegation(),window.parent.postMessage({type:"addToast",toast:t},"*");return}const s=T.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 l=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(l)[t.id])return null}if(s!=null&&s.toasts.length){const l={...n};for(const c of s.toasts){const h={...c};if(l.id=h.id=0,J.shallowEqual(l,h))return null}}return s&&(s.toasts=[...s.toasts,n]),n}static handleExistingToastDelegation(){if(!this.delegateToasts)return;const t=T.getInstance();window.parent.postMessage({type:"addToasts",toasts:t.toasts},"*"),t.toasts=[]}static removeItem(t){if(T.delegateToasts){T.handleExistingToastDelegation(),window.parent.postMessage({type:"removeToast",toast:t},"*");return}const s=T.getInstance();s&&s.removeItem(t)}removeItem(t){t&&(this.toasts=this.toasts.filter(s=>(s={...s},delete s.id,!J.shallowEqual(s,t,!1))))}};T.delegateToasts=!1,xr([a({type:Array})],T.prototype,"toasts",2),T=xr([_(Pn)],T),typeof window<"u"&&(window[ls+"Toast"]=window[ls+"Toast"]||T);function $n(){var s;const r=i=>{i.data.type=="querySonicToastAvailability"&&i.source.postMessage({type:"sonicToastAvailable"},"*"),i.data.type=="sonicToastAvailable"&&(T.delegateToasts=!0,T.handleExistingToastDelegation()),i.data.type=="addToasts"&&(T.getInstance().toasts=[...T.getInstance().toasts,...i.data.toasts]),i.data.type=="removeAllToasts"&&T.removeAll(),i.data.type=="removeToast"&&T.removeItem(i.data.toast),i.data.type=="addToast"&&T.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"},"*")}$n();var Cn=Object.defineProperty,An=Object.getOwnPropertyDescriptor,Xe=(r,t,s,i)=>{for(var e=i>1?void 0:i?An(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Cn(t,s,e),e};const Sn=new Set,On=new Set,Dn=r=>{for(const t of On)t(r)},ai=new Set;let li=0;js(async()=>{li++;const r=li,t=Array.from(ai);for(;t.length>0;){if(r!=li)return;const s=t.splice(0,4);await Promise.all(s.map(i=>i._fetchData()))}});const ci=(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 Oe(this.getApiConfiguration()),!this.api)||(this.dispatchEvent(new CustomEvent("loading",{detail:this})),this.getAttribute("localStorage")==="enabled"&&await et.getInstance().isLocalStrorageReady,!this.isConnected))return;const e=et.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||Sn.add(this),Dn(this.api.lastResult)),!!this.isConnected){if(o)o._sonic_http_response_&&!o._sonic_http_response_.ok&&Object.keys(o).length===1&&T.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_,l=this.key.split(".");o=J.traverse(o,l,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(),ai.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"),ai.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 l of e)if(l.isIntersecting&&this.isFirstLoad){this._fetchData(),(o=this.lazyLoadSpan)==null||o.remove(),this.lazyLoadSpan=void 0,(n=this.iObserver)==null||n.disconnect();break}}}return Xe([a()],s.prototype,"noErrorsRecordings",2),Xe([a()],s.prototype,"props",1),Xe([a({type:String})],s.prototype,"endPoint",1),Xe([a()],s.prototype,"requestId",2),Xe([a({type:Number})],s.prototype,"refetchEveryMs",2),s};var kn=Object.defineProperty,Ln=Object.getOwnPropertyDescriptor,ge=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ln(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&kn(t,s,e),e};const Ps=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 ge([a()],t.prototype,"forceAutoFill",2),ge([a({type:String})],t.prototype,"type",1),ge([a()],t.prototype,"description",1),ge([a()],t.prototype,"label",1),ge([a({type:String,reflect:!0})],t.prototype,"status",2),ge([a({type:Number})],t.prototype,"tabindex",2),ge([a({type:String})],t.prototype,"autocomplete",2),t},Pr=ci,En=ii,$r=De,Cr=Ps,Kt=K,hi=Ke;window["concorde-mixins"]=window["concorde-mixins"]||{},window["concorde-mixins"]={Fetcher:Pr,FormCheckable:En,FormElement:$r,FormInput:Cr,Subscriber:Kt,TemplatesContainer:hi};/**
998
998
  * @license
999
999
  * Copyright 2020 Google LLC
1000
1000
  * SPDX-License-Identifier: BSD-3-Clause
1001
- */const kt=de(class extends Se{constructor(r){if(super(r),r.type!==he.CHILD)throw Error("templateContent can only be used in child bindings")}render(r){return this.vt===r?bt:(this.vt=r,document.importNode(r.content,!0))}});var Nn=Object.defineProperty,Tn=Object.getOwnPropertyDescriptor,Ar=(r,t,s,i)=>{for(var e=i>1?void 0:i?Tn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Nn(t,s,e),e};const Mn="sonic-fetch";let $s=class extends ci(K(hi(w))){renderLoader(){if(!(this.isLoading&&this.loader!==void 0))return C;const r=this.loader===!0||this.loader===""?"fixed":this.loader;return g`<sonic-loader mode=${r}></sonic-loader>`}renderSkeleton(){const r=this.templateParts.skeleton;return this.isLoading&&r?kt(r):C}render(){return g`
1001
+ */const Lt=de(class extends Se{constructor(r){if(super(r),r.type!==he.CHILD)throw Error("templateContent can only be used in child bindings")}render(r){return this.vt===r?bt:(this.vt=r,document.importNode(r.content,!0))}});var Nn=Object.defineProperty,Tn=Object.getOwnPropertyDescriptor,Ar=(r,t,s,i)=>{for(var e=i>1?void 0:i?Tn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Nn(t,s,e),e};const Mn="sonic-fetch";let $s=class extends ci(K(hi(w))){renderLoader(){if(!(this.isLoading&&this.loader!==void 0))return C;const r=this.loader===!0||this.loader===""?"fixed":this.loader;return g`<sonic-loader mode=${r}></sonic-loader>`}renderSkeleton(){const r=this.templateParts.skeleton;return this.isLoading&&r?Lt(r):C}render(){return g`
1002
1002
  ${this.renderSkeleton()} ${this.renderLoader()}
1003
1003
  ${this.isLoading?C:g`<slot></slot>`}
1004
1004
  `}};$s.styles=[$`
@@ -1160,7 +1160,7 @@
1160
1160
  opacity: 1;
1161
1161
  }
1162
1162
  }
1163
- `],ot.callCounter=0,di([a({type:String})],ot.prototype,"mode",2),di([a({type:Boolean})],ot.prototype,"noDelay",2),ot=di([_(Bn)],ot);var Hn=Object.defineProperty,qn=Object.getOwnPropertyDescriptor,Wn=(r,t,s,i)=>{for(var e=i>1?void 0:i?qn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Hn(t,s,e),e};const Kn="sonic-subscriber";let Or=class extends K(w){constructor(){super(...arguments),this.noAutofill=!0}connectedCallback(){this.noShadowDom="",super.connectedCallback()}updated(r){super.updated(r),this.children.length==0?this.style.display="none":this.style.display="contents"}render(){return g`<slot></slot> `}};Or=Wn([_(Kn)],Or);var Zn=Object.defineProperty,Yn=Object.getOwnPropertyDescriptor,me=(r,t,s,i)=>{for(var e=i>1?void 0:i?Yn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Zn(t,s,e),e};const Gn="sonic-list";let Zt=class extends ci(K(Ke(w))){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 C;const t=this.loader===!0||this.loader===""?"fixed":this.loader;return g`<sonic-loader mode=${t}></sonic-loader>`}renderSkeleton(){const r=this.templateParts.skeleton;return this.isLoading&&r?kt(r):C}renderLoadingState(){return g`${this.renderSkeleton()} ${this.renderLoader()}`}renderNoResultState(){return g` <div
1163
+ `],ot.callCounter=0,di([a({type:String})],ot.prototype,"mode",2),di([a({type:Boolean})],ot.prototype,"noDelay",2),ot=di([_(Bn)],ot);var Hn=Object.defineProperty,qn=Object.getOwnPropertyDescriptor,Wn=(r,t,s,i)=>{for(var e=i>1?void 0:i?qn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Hn(t,s,e),e};const Kn="sonic-subscriber";let Or=class extends K(w){constructor(){super(...arguments),this.noAutofill=!0}connectedCallback(){this.noShadowDom="",super.connectedCallback()}updated(r){super.updated(r),this.children.length==0?this.style.display="none":this.style.display="contents"}render(){return g`<slot></slot> `}};Or=Wn([_(Kn)],Or);var Zn=Object.defineProperty,Yn=Object.getOwnPropertyDescriptor,me=(r,t,s,i)=>{for(var e=i>1?void 0:i?Yn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Zn(t,s,e),e};const Gn="sonic-list";let Zt=class extends ci(K(Ke(w))){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 C;const t=this.loader===!0||this.loader===""?"fixed":this.loader;return g`<sonic-loader mode=${t}></sonic-loader>`}renderSkeleton(){const r=this.templateParts.skeleton;return this.isLoading&&r?Lt(r):C}renderLoadingState(){return g`${this.renderSkeleton()} ${this.renderLoader()}`}renderNoResultState(){return g` <div
1164
1164
  style="color: var(--sc-base-400);
1165
1165
  font-size: 1.5em;
1166
1166
  margin: 4rem 0;
@@ -1171,7 +1171,7 @@
1171
1171
  ><span class="sonic-no-result-text"
1172
1172
  >${typeof this.props=="string"&&this.props==""?"Aucun résultat":this.props}</span
1173
1173
  >
1174
- </div>`}formatProps(){let r=this.props;if(r==null)return null;const t=r._sonic_http_response_,s=this.hasAttribute("extractValues");return Array.isArray(r)||(s?r=Object.entries(r).map(([i,e])=>({key:i,value:e})):J.isObject(r)&&Object.keys(r).length>0&&(!t||t.ok)?r=[r]:r=[]),r=r.filter(i=>i!=null),t&&(r._sonic_http_response_=t),r}render(){if(this.isLoading&&!Array.isArray(this.props))return this.renderLoadingState();if(typeof this.props=="string")return this.renderNoResultState();if(!J.isObject(this.props))return g`<div></div>`;const i=this.formatProps();if(((i==null?void 0:i.length)||0)==0&&this.templateParts["no-item"])return kt(this.templateParts["no-item"]);const e=this.templateList.length;let o=-1;const n=this.hasAttribute("extractValues"),l=this.templateParts.separator,c=(i==null?void 0:i.length)||0,h=i==null?void 0:i.slice(this.offset,this.offset+this.limit);return g`
1174
+ </div>`}formatProps(){let r=this.props;if(r==null)return null;const t=r._sonic_http_response_,s=this.hasAttribute("extractValues");return Array.isArray(r)||(s?r=Object.entries(r).map(([i,e])=>({key:i,value:e})):J.isObject(r)&&Object.keys(r).length>0&&(!t||t.ok)?r=[r]:r=[]),r=r.filter(i=>i!=null),t&&(r._sonic_http_response_=t),r}render(){if(this.isLoading&&!Array.isArray(this.props))return this.renderLoadingState();if(typeof this.props=="string")return this.renderNoResultState();if(!J.isObject(this.props))return g`<div></div>`;const i=this.formatProps();if(((i==null?void 0:i.length)||0)==0&&this.templateParts["no-item"])return Lt(this.templateParts["no-item"]);const e=this.templateList.length;let o=-1;const n=this.hasAttribute("extractValues"),l=this.templateParts.separator,c=(i==null?void 0:i.length)||0,h=i==null?void 0:i.slice(this.offset,this.offset+this.limit);return g`
1175
1175
  ${h==null?void 0:h.map((d,f)=>{if(d==null)return C;let m=null,b=f;if(typeof d=="object"&&!Array.isArray(d)){const D=d[this.templateKey];D&&typeof D=="string"&&(m=this.templateParts[D]),n&&(b=d==null?void 0:d.key)}if(b=="_sonic_http_response_"||typeof b!="string"&&typeof b!="number")return C;const v=f>=c-1,P=f%2,S=this.publisher[b];return S._key_=b+"",S._metadata_={...S._metadata_.get(),key:b,even:P==0,odd:P==1,onlyChild:c==1,firstChild:f==0,lastChild:v},o++,m&&(o=-1),d&&g`
1176
1176
  <sonic-subscriber
1177
1177
  ?debug=${this.defferedDebug===!0}
@@ -1179,15 +1179,15 @@
1179
1179
  .propertyMap?=${this.itemPropertyMap}
1180
1180
  dataProvider="${this.dataProvider}/list-item/${b}"
1181
1181
  >
1182
- ${kt(m||this.templateList[o%e])}
1182
+ ${Lt(m||this.templateList[o%e])}
1183
1183
  </sonic-subscriber>
1184
- ${l&&!v?kt(l):C}
1184
+ ${l&&!v?Lt(l):C}
1185
1185
  `})}
1186
1186
  `}};me([a({type:Object})],Zt.prototype,"itemPropertyMap",2),me([a({type:String})],Zt.prototype,"templateKey",2),me([a({type:String})],Zt.prototype,"idKey",2),me([a()],Zt.prototype,"loader",2),me([a()],Zt.prototype,"limit",2),me([a()],Zt.prototype,"offset",2),Zt=me([_(Gn)],Zt);/**
1187
1187
  * @license
1188
1188
  * Copyright 2021 Google LLC
1189
1189
  * SPDX-License-Identifier: BSD-3-Clause
1190
- */function*Dr(r,t){if(r!==void 0){let s=0;for(const i of r)yield t(i,s++)}}var Qn=Object.defineProperty,Xn=Object.getOwnPropertyDescriptor,ft=(r,t,s,i)=>{for(var e=i>1?void 0:i?Xn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Qn(t,s,e),e};const Jn="sonic-queue";let st=class extends K(w){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 l in i){let c=i[l];Array.isArray(c)&&(c=c.filter(h=>h!==null)),!(this.filteredFields&&!e.includes(l)||c==null||c.toString()==="")&&s.set(l,i[l].toString())}const o=s.toString();if(!(o==this.searchHash&&!this.isFirstRequest)){this.searchHash=o;for(const l of this.listDataProviders)T.delete(l);this.listDataProviders=[],clearTimeout(this.filterTimeoutId),this.filterTimeoutId=setTimeout(async()=>{const l=this.resultCount;this.props=null,this.requestId++,this.resultCount=l,await T.getInstance().isLocalStrorageReady,window.requestAnimationFrame(()=>this.next())},this.isFirstRequest?0:this.filterTimeoutMs),this.isFirstRequest=!1}},this.dataProviderExpression="",this.idKey="id",this.listDataProviders=[],this.nextHadEvent=!1}disconnectedCallback(){var r;for(const t of this.listDataProviders)T.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=st.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=ue.getAncestorAttributeValue(this.parentElement,"dataProvider")||""),super.connectedCallback(),this.publisher.set({}),this.key=this.getAttribute("key"),await T.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=T.getInstance().get(r),(t=this.filterPublisher)==null||t.onInternalMutation(this.updateFilteredContent)}resetDuration(){this.lastRequestTime=new Date().getTime()}next(r){var f,m,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+=((f=r.detail.props)==null?void 0:f.length)||0,!r.detail.isFirstLoad||!((m=r.detail.props)!=null&&m.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 l=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]==""||l.set(v,c[v]);this.searchHash||(this.searchHash=l.toString()),n=n+"?"+l.toString(),e=e+"_item_from_queue_"+this.instanceId,this.listDataProviders.push(e);const d=[...this.props,{id:l.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 C;let r=!this.noLazyload;return this.props.length==1&&(r=!1),g`
1190
+ */function*Dr(r,t){if(r!==void 0){let s=0;for(const i of r)yield t(i,s++)}}var Qn=Object.defineProperty,Xn=Object.getOwnPropertyDescriptor,ft=(r,t,s,i)=>{for(var e=i>1?void 0:i?Xn(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Qn(t,s,e),e};const Jn="sonic-queue";let st=class extends K(w){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 l in i){let c=i[l];Array.isArray(c)&&(c=c.filter(h=>h!==null)),!(this.filteredFields&&!e.includes(l)||c==null||c.toString()==="")&&s.set(l,i[l].toString())}const o=s.toString();if(!(o==this.searchHash&&!this.isFirstRequest)){this.searchHash=o;for(const l of this.listDataProviders)M.delete(l);this.listDataProviders=[],clearTimeout(this.filterTimeoutId),this.filterTimeoutId=setTimeout(async()=>{const l=this.resultCount;this.props=null,this.requestId++,this.resultCount=l,await M.getInstance().isLocalStrorageReady,window.requestAnimationFrame(()=>this.next())},this.isFirstRequest?0:this.filterTimeoutMs),this.isFirstRequest=!1}},this.dataProviderExpression="",this.idKey="id",this.listDataProviders=[],this.nextHadEvent=!1}disconnectedCallback(){var r;for(const t of this.listDataProviders)M.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=st.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=ue.getAncestorAttributeValue(this.parentElement,"dataProvider")||""),super.connectedCallback(),this.publisher.set({}),this.key=this.getAttribute("key"),await M.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=M.getInstance().get(r),(t=this.filterPublisher)==null||t.onInternalMutation(this.updateFilteredContent)}resetDuration(){this.lastRequestTime=new Date().getTime()}next(r){var f,m,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+=((f=r.detail.props)==null?void 0:f.length)||0,!r.detail.isFirstLoad||!((m=r.detail.props)!=null&&m.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 l=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]==""||l.set(v,c[v]);this.searchHash||(this.searchHash=l.toString()),n=n+"?"+l.toString(),e=e+"_item_from_queue_"+this.instanceId,this.listDataProviders.push(e);const d=[...this.props,{id:l.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 C;let r=!this.noLazyload;return this.props.length==1&&(r=!1),g`
1191
1191
  ${Dr(this.props,(t,s)=>{var e;const i=s==0?this.templates:(e=this.templates)==null?void 0:e.filter(o=>o.getAttribute("data-value")!="no-item");return g`
1192
1192
  <sonic-list
1193
1193
  fetch
@@ -1210,7 +1210,7 @@
1210
1210
  >
1211
1211
  </sonic-list>
1212
1212
  `})}
1213
- `}};st.instanceCounter=0,ft([a({type:Array})],st.prototype,"templates",2),ft([a({type:Object})],st.prototype,"itemPropertyMap",2),ft([a()],st.prototype,"cache",2),ft([a()],st.prototype,"targetRequestDuration",2),ft([a()],st.prototype,"limit",2),ft([a()],st.prototype,"lazyBoundsRatio",2),ft([a()],st.prototype,"offset",2),ft([a()],st.prototype,"resultCount",2),ft([a({type:Boolean})],st.prototype,"noLazyload",2),ft([a({type:String})],st.prototype,"loader",2),ft([a()],st.prototype,"filteredFields",2),ft([a({type:String})],st.prototype,"dataProviderExpression",2),ft([a({type:String})],st.prototype,"idKey",2),st=ft([_(Jn)],st);var ta=Object.defineProperty,ea=Object.getOwnPropertyDescriptor,Le=(r,t,s,i)=>{for(var e=i>1?void 0:i?ea(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ta(t,s,e),e};const sa="sonic-submit";let Yt=class extends K(w){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=T.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"),l=n?T.getInstance().get(n):null;let c={};l&&(c=l.get());let h=null;const d=this.getAncestorAttributeValue("dataProvider"),f=this.endPoint||d;ot.show();const m=async()=>{var u,y,A,O,E,H,W,At;if(e)h=await((u=this.api)==null?void 0:u.submitFormData(f,o,i,c));else switch(i){case"put":h=await((y=this.api)==null?void 0:y.put(f,o,c));break;case"patch":h=await((A=this.api)==null?void 0:A.patch(f,o,c));break;case"delete":h=await((O=this.api)==null?void 0:O.delete(f,o,c));break;case"get":const Is=new URLSearchParams;if(o)for(const Wr in o)Is.append(Wr,o[Wr]);const Sh="?"+Is.toString();h=await((E=this.api)==null?void 0:E.get(f+Sh,c));break;default:h=await((H=this.api)==null?void 0:H.post(f,o,c));break}ot.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(Is=>T.get(Is).set({}));const S=this.hasAttribute("usernameKey")?this.getAttribute("usernameKey"):"username",D=this.hasAttribute("passwordKey")?this.getAttribute("passwordKey"):"password";(At=(W=this.api)==null?void 0:W.lastResult)!=null&&At.ok&&o[S]&&o[D]&&this.saveCredentials(o[S],o[D]),this.submitResultKey&&(h=J.traverse(h,this.submitResultKey.split("."),!0));const p=this.getAncestorAttributeValue("submitResultDataProvider");p&&T.get(p).set(h),this.disabled=!1,this.dispatchEvent(new CustomEvent("submit",{detail:h,bubbles:!0,composed:!0}))},b=l!=null&&l.needsCaptchaValidation.get()?l: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"&&(m(),b.captchaToken.offAssign(P))};b.captchaToken.onAssign(P)}else m()}}connectedCallback(){this.hasAttribute("onClick")&&this.addEventListener("click",this.submit),this.hasAttribute("onEnterKey")&&this.addEventListener("keydown",this.submit),super.connectedCallback(),this.api=new Oe(this.getApiConfiguration())}submitNativeForm(){const r=ue.getClosestForm(this);if(!r)return;const t=this.getAncestorAttributeValue("formDataProvider"),s=T.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 g`<div ?data-disabled=${this.disabled}><slot></slot></div>`}};Yt.styles=$`
1213
+ `}};st.instanceCounter=0,ft([a({type:Array})],st.prototype,"templates",2),ft([a({type:Object})],st.prototype,"itemPropertyMap",2),ft([a()],st.prototype,"cache",2),ft([a()],st.prototype,"targetRequestDuration",2),ft([a()],st.prototype,"limit",2),ft([a()],st.prototype,"lazyBoundsRatio",2),ft([a()],st.prototype,"offset",2),ft([a()],st.prototype,"resultCount",2),ft([a({type:Boolean})],st.prototype,"noLazyload",2),ft([a({type:String})],st.prototype,"loader",2),ft([a()],st.prototype,"filteredFields",2),ft([a({type:String})],st.prototype,"dataProviderExpression",2),ft([a({type:String})],st.prototype,"idKey",2),st=ft([_(Jn)],st);var ta=Object.defineProperty,ea=Object.getOwnPropertyDescriptor,Le=(r,t,s,i)=>{for(var e=i>1?void 0:i?ea(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ta(t,s,e),e};const sa="sonic-submit";let Yt=class extends K(w){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=M.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"),l=n?M.getInstance().get(n):null;let c={};l&&(c=l.get());let h=null;const d=this.getAncestorAttributeValue("dataProvider"),f=this.endPoint||d;ot.show();const m=async()=>{var u,y,A,O,E,H,W,At;if(e)h=await((u=this.api)==null?void 0:u.submitFormData(f,o,i,c));else switch(i){case"put":h=await((y=this.api)==null?void 0:y.put(f,o,c));break;case"patch":h=await((A=this.api)==null?void 0:A.patch(f,o,c));break;case"delete":h=await((O=this.api)==null?void 0:O.delete(f,o,c));break;case"get":const Is=new URLSearchParams;if(o)for(const Wr in o)Is.append(Wr,o[Wr]);const Sh="?"+Is.toString();h=await((E=this.api)==null?void 0:E.get(f+Sh,c));break;default:h=await((H=this.api)==null?void 0:H.post(f,o,c));break}ot.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(Is=>M.get(Is).set({}));const S=this.hasAttribute("usernameKey")?this.getAttribute("usernameKey"):"username",D=this.hasAttribute("passwordKey")?this.getAttribute("passwordKey"):"password";(At=(W=this.api)==null?void 0:W.lastResult)!=null&&At.ok&&o[S]&&o[D]&&this.saveCredentials(o[S],o[D]),this.submitResultKey&&(h=J.traverse(h,this.submitResultKey.split("."),!0));const p=this.getAncestorAttributeValue("submitResultDataProvider");p&&M.get(p).set(h),this.disabled=!1,this.dispatchEvent(new CustomEvent("submit",{detail:h,bubbles:!0,composed:!0}))},b=l!=null&&l.needsCaptchaValidation.get()?l: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"&&(m(),b.captchaToken.offAssign(P))};b.captchaToken.onAssign(P)}else m()}}connectedCallback(){this.hasAttribute("onClick")&&this.addEventListener("click",this.submit),this.hasAttribute("onEnterKey")&&this.addEventListener("keydown",this.submit),super.connectedCallback(),this.api=new Oe(this.getApiConfiguration())}submitNativeForm(){const r=ue.getClosestForm(this);if(!r)return;const t=this.getAncestorAttributeValue("formDataProvider"),s=M.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 g`<div ?data-disabled=${this.disabled}><slot></slot></div>`}};Yt.styles=$`
1214
1214
  [data-disabled] {
1215
1215
  opacity: 0.3;
1216
1216
  pointer-events: none;
@@ -1220,13 +1220,13 @@
1220
1220
  style="display:contents"
1221
1221
  dataProvider="${i}"
1222
1222
  >
1223
- ${kt(t)}
1224
- </div>`}return kt(t)})}`}};pi([a({type:String})],As.prototype,"fallBackRoute",2),pi([a()],As.prototype,"location",1),As=pi([_(oa)],As);var na=Object.defineProperty,aa=Object.getOwnPropertyDescriptor,la=(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&&na(t,s,e),e};const ca="sonic-redirect";let kr=class extends K(w){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")){rt.changeFromComponent(this);return}if(!this.props)return;const r=this.getAttribute("onData").split("."),t=J.traverse(this.props,r);t&&!(J.isObject(t)&&t)&&rt.changeFromComponent(this)}};kr=la([_(ca)],kr);var ha=Object.defineProperty,da=Object.getOwnPropertyDescriptor,ui=(r,t,s,i)=>{for(var e=i>1?void 0:i?da(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ha(t,s,e),e};const pa="sonic-states";let Ss=class extends K(Ke(w)){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 pe(i);n.names.length>0&&n.match(e)&&(s.setAttribute("mode","patternMatching"),r.push(s))}}return g`${ys(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,l=s.getAttribute(this.templateValueAttribute);if(this.inverted&&(n=l,l=t),l==""&&(l=this.inverted?"*":"^$"),s.getAttribute("mode")=="patternMatching"){const c=new pe(l);o=new pe(e).stringify(c.match(n))}else{const c=new RegExp(l),h=(n+"").match(c);h&&(o=(i=h.shift())==null?void 0:i.replace(c,e))}return g`<div
1223
+ ${Lt(t)}
1224
+ </div>`}return Lt(t)})}`}};pi([a({type:String})],As.prototype,"fallBackRoute",2),pi([a()],As.prototype,"location",1),As=pi([_(oa)],As);var na=Object.defineProperty,aa=Object.getOwnPropertyDescriptor,la=(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&&na(t,s,e),e};const ca="sonic-redirect";let kr=class extends K(w){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")){rt.changeFromComponent(this);return}if(!this.props)return;const r=this.getAttribute("onData").split("."),t=J.traverse(this.props,r);t&&!(J.isObject(t)&&t)&&rt.changeFromComponent(this)}};kr=la([_(ca)],kr);var ha=Object.defineProperty,da=Object.getOwnPropertyDescriptor,ui=(r,t,s,i)=>{for(var e=i>1?void 0:i?da(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ha(t,s,e),e};const pa="sonic-states";let Ss=class extends K(Ke(w)){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 pe(i);n.names.length>0&&n.match(e)&&(s.setAttribute("mode","patternMatching"),r.push(s))}}return g`${ys(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,l=s.getAttribute(this.templateValueAttribute);if(this.inverted&&(n=l,l=t),l==""&&(l=this.inverted?"*":"^$"),s.getAttribute("mode")=="patternMatching"){const c=new pe(l);o=new pe(e).stringify(c.match(n))}else{const c=new RegExp(l),h=(n+"").match(c);h&&(o=(i=h.shift())==null?void 0:i.replace(c,e))}return g`<div
1225
1225
  style="display:contents"
1226
1226
  dataProvider="${o}"
1227
1227
  >
1228
- ${kt(s)}
1229
- </div>`}return kt(s)})}`}};ui([a()],Ss.prototype,"state",2),ui([a({type:Boolean,reflect:!0})],Ss.prototype,"inverted",2),Ss=ui([_(pa)],Ss);var ua=Object.defineProperty,fa=Object.getOwnPropertyDescriptor,ga=(r,t,s,i)=>{for(var e=i>1?void 0:i?fa(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ua(t,s,e),e};const ma="sonic-scope";let Lr=class extends w{createRenderRoot(){return this}render(){return g`<slot></slot>`}};Lr=ga([_(ma)],Lr);var ba=Object.defineProperty,va=Object.getOwnPropertyDescriptor,Er=(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-example";let fi=class extends K(w){constructor(){super(...arguments),this.text="Example"}render(){return g`<div>${this.text}</div>`}};Er([a()],fi.prototype,"text",2),fi=Er([_(ya)],fi);const wa={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 _a{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 l of i)this.nodeMatchesPattern(n,l)&&e.push({parent:s,child:l,index:o}),e=e.concat(this.getNodesMatchingPatterns([n],l)),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,l=s.attributes;if(n&&!l)return!1;if(n){for(const c in n)if(!l||!this.stringMatchesExpression(l[c],n[c]))return!1}return!0}unwrap(t,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,l,c,h,d,f;const i={...t.ui};i.nodes||(i.nodes=[]);let e=0;for(const m of s)(n=i.nodes)==null||n.push(m.child),e>0&&((l=m.parent.nodes)==null||l.splice(m.parent.nodes.indexOf(m.child),1)),e++;const o=(h=(c=s[0])==null?void 0:c.parent.nodes)==null?void 0:h.indexOf(s[0].child);o&&((d=s[0].parent.nodes)==null||d.splice(o,1),(f=s[0].parent.nodes)==null||f.splice(o,0,i))}move(t,s){var i,e;for(const o of s){(i=o.parent.nodes)==null||i.splice(o.parent.nodes.indexOf(o.child),1);let n=[];t.after&&(n=this.getNodesMatchingPatterns([t.after],this.sduiDescriptor)),t.before&&(n=this.getNodesMatchingPatterns([t.before],this.sduiDescriptor));const l=n[0];l&&((e=l.parent.nodes)==null||e.splice(l.parent.nodes.indexOf(l.child)+(t.after?1:0),0,o.child))}}remap(t,s){var i,e,o;for(const n of s){const l={...t.ui};l.attributes||(l.attributes={});const c=n.child.attributes;if(c)for(const v in c)Object.prototype.hasOwnProperty.call(l.attributes,"key")||(l.attributes[v]=c[v]);const h=["libraryKey","innerHTML","prefix","suffix","markup"],d=n.child,f=l;for(const v of h)!Object.prototype.hasOwnProperty.call(l,v)&&d[v]&&(f[v]=d[v]);l.nodes||(l.nodes=[]);const m=n.child.nodes;if(m)for(const v of m)l.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,l))}}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 xa=Object.defineProperty,Pa=Object.getOwnPropertyDescriptor,gi=(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&&xa(t,s,e),e};const $a="sonic-sdui";let Os=class extends Pr(Kt(w)){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,wa,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)ue.loadJS(r);if(this.sduiDescriptor.css)for(const r of this.sduiDescriptor.css)ue.loadCSS(r)}}async transformSDUIDescriptor(){if(!this.hasAttribute("transformation"))return;const t=await(await fetch(this.getAttribute("transformation"))).json();await new _a().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=Ze.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)}};gi([a()],Os.prototype,"sduiKey",2),gi([a()],Os.prototype,"messagesKey",2),Os=gi([_($a)],Os);var Ca=Object.defineProperty,Aa=Object.getOwnPropertyDescriptor,Nr=(r,t,s,i)=>{for(var e=i>1?void 0:i?Aa(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ca(t,s,e),e};let Ds=class extends Kt(w){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=et.get(o);n=Ze.traverse(n,e);const l={publisher:n,subscriber:c=>{t[s]=c}};this.listeners.push(l),n.onAssign(l.subscriber),t._proxies_.set(s,n)}else{this.publisher[s]={};const e=new zs({},t);t._proxies_.set(s,e);const o={publisher:e,subscriber:n=>{t[s]=n}};this.listeners.push(o),e.onAssign(o.subscriber),this.parseComposition(i,e)}}}render(){return g`<slot></slot>`}};Ds.styles=[$`
1228
+ ${Lt(s)}
1229
+ </div>`}return Lt(s)})}`}};ui([a()],Ss.prototype,"state",2),ui([a({type:Boolean,reflect:!0})],Ss.prototype,"inverted",2),Ss=ui([_(pa)],Ss);var ua=Object.defineProperty,fa=Object.getOwnPropertyDescriptor,ga=(r,t,s,i)=>{for(var e=i>1?void 0:i?fa(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ua(t,s,e),e};const ma="sonic-scope";let Lr=class extends w{createRenderRoot(){return this}render(){return g`<slot></slot>`}};Lr=ga([_(ma)],Lr);var ba=Object.defineProperty,va=Object.getOwnPropertyDescriptor,Er=(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-example";let fi=class extends K(w){constructor(){super(...arguments),this.text="Example"}render(){return g`<div>${this.text}</div>`}};Er([a()],fi.prototype,"text",2),fi=Er([_(ya)],fi);const wa={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 _a{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 l of i)this.nodeMatchesPattern(n,l)&&e.push({parent:s,child:l,index:o}),e=e.concat(this.getNodesMatchingPatterns([n],l)),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,l=s.attributes;if(n&&!l)return!1;if(n){for(const c in n)if(!l||!this.stringMatchesExpression(l[c],n[c]))return!1}return!0}unwrap(t,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,l,c,h,d,f;const i={...t.ui};i.nodes||(i.nodes=[]);let e=0;for(const m of s)(n=i.nodes)==null||n.push(m.child),e>0&&((l=m.parent.nodes)==null||l.splice(m.parent.nodes.indexOf(m.child),1)),e++;const o=(h=(c=s[0])==null?void 0:c.parent.nodes)==null?void 0:h.indexOf(s[0].child);o&&((d=s[0].parent.nodes)==null||d.splice(o,1),(f=s[0].parent.nodes)==null||f.splice(o,0,i))}move(t,s){var i,e;for(const o of s){(i=o.parent.nodes)==null||i.splice(o.parent.nodes.indexOf(o.child),1);let n=[];t.after&&(n=this.getNodesMatchingPatterns([t.after],this.sduiDescriptor)),t.before&&(n=this.getNodesMatchingPatterns([t.before],this.sduiDescriptor));const l=n[0];l&&((e=l.parent.nodes)==null||e.splice(l.parent.nodes.indexOf(l.child)+(t.after?1:0),0,o.child))}}remap(t,s){var i,e,o;for(const n of s){const l={...t.ui};l.attributes||(l.attributes={});const c=n.child.attributes;if(c)for(const v in c)Object.prototype.hasOwnProperty.call(l.attributes,"key")||(l.attributes[v]=c[v]);const h=["libraryKey","innerHTML","prefix","suffix","markup"],d=n.child,f=l;for(const v of h)!Object.prototype.hasOwnProperty.call(l,v)&&d[v]&&(f[v]=d[v]);l.nodes||(l.nodes=[]);const m=n.child.nodes;if(m)for(const v of m)l.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,l))}}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 xa=Object.defineProperty,Pa=Object.getOwnPropertyDescriptor,gi=(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&&xa(t,s,e),e};const $a="sonic-sdui";let Os=class extends Pr(Kt(w)){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,wa,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)ue.loadJS(r);if(this.sduiDescriptor.css)for(const r of this.sduiDescriptor.css)ue.loadCSS(r)}}async transformSDUIDescriptor(){if(!this.hasAttribute("transformation"))return;const t=await(await fetch(this.getAttribute("transformation"))).json();await new _a().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=Ze.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)}};gi([a()],Os.prototype,"sduiKey",2),gi([a()],Os.prototype,"messagesKey",2),Os=gi([_($a)],Os);var Ca=Object.defineProperty,Aa=Object.getOwnPropertyDescriptor,Nr=(r,t,s,i)=>{for(var e=i>1?void 0:i?Aa(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ca(t,s,e),e};let Ds=class extends Kt(w){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=et.get(o);n=Ze.traverse(n,e);const l={publisher:n,subscriber:c=>{t[s]=c}};this.listeners.push(l),n.onAssign(l.subscriber),t._proxies_.set(s,n)}else{this.publisher[s]={};const e=new zs({},t);t._proxies_.set(s,e);const o={publisher:e,subscriber:n=>{t[s]=n}};this.listeners.push(o),e.onAssign(o.subscriber),this.parseComposition(i,e)}}}render(){return g`<slot></slot>`}};Ds.styles=[$`
1230
1230
  :host {
1231
1231
  display: contents;
1232
1232
  }
@@ -1235,7 +1235,7 @@
1235
1235
  <slot name="prefix"></slot>
1236
1236
  <slot></slot>
1237
1237
  <slot name="suffix"></slot>
1238
- `}};be.styles=[Ot,$`
1238
+ `}};be.styles=[Dt,$`
1239
1239
  :host {
1240
1240
  --sc-badge-gap: 0.3em;
1241
1241
  --sc-badge-py: 0.35em;
@@ -1402,7 +1402,7 @@
1402
1402
  <slot></slot>
1403
1403
  <slot name="remaining"></slot>
1404
1404
  </div>
1405
- `}};Qt.styles=[Ot,$`
1405
+ `}};Qt.styles=[Dt,$`
1406
1406
  :host {
1407
1407
  --sc-progress-bg: var(--sc-input-bg, var(--sc-base-100, #f5f5f5));
1408
1408
  --sc-progress-color: var(--sc-base-content, #1f2937);
@@ -1959,7 +1959,7 @@
1959
1959
  >${this.description?g`${F(this.description)}`:C}</slot>
1960
1960
  <slot name="list"></slot>
1961
1961
  </div>
1962
- `}};V.styles=[Ot,mi,ks,Ls,Ua,$`
1962
+ `}};V.styles=[Dt,mi,ks,Ls,Ua,$`
1963
1963
  :host([type="hidden"]) {
1964
1964
  appearance: none !important;
1965
1965
  display: none !important;
@@ -1967,7 +1967,7 @@
1967
1967
  :host > .form-control {
1968
1968
  position: relative;
1969
1969
  }
1970
- `],q([a({type:String,reflect:!0})],V.prototype,"size",2),q([a({type:String})],V.prototype,"list",2),q([a({type:String})],V.prototype,"placeholder",2),q([a({type:String})],V.prototype,"pattern",2),q([a({type:String})],V.prototype,"min",2),q([a({type:String})],V.prototype,"max",2),q([a({type:Boolean})],V.prototype,"readonly",2),q([a({type:Number})],V.prototype,"step",2),q([a({type:Number})],V.prototype,"minlength",2),q([a({type:Number})],V.prototype,"maxlength",2),q([a({type:String})],V.prototype,"src",2),q([a({type:Boolean,reflect:!0})],V.prototype,"inlineContent",2),q([a({type:Boolean})],V.prototype,"disableInlineContentFocus",2),q([a({type:Boolean})],V.prototype,"showPasswordToggle",2),q([it({slot:"label",flatten:!0})],V.prototype,"slotLabelNodes",2),q([it({slot:"description",flatten:!0})],V.prototype,"slotDescriptionNodes",2),q([it({slot:"suffix",flatten:!0})],V.prototype,"slotSuffixNodes",2),q([it({slot:"prefix",flatten:!0})],V.prototype,"slotPrefixNodes",2),q([ie("input")],V.prototype,"input",2),q([M()],V.prototype,"hasDescription",2),q([M()],V.prototype,"hasLabel",2),q([M()],V.prototype,"hasSuffix",2),q([M()],V.prototype,"hasPrefix",2),q([M()],V.prototype,"isPassword",2),V=q([_(Ha)],V);var qa=Object.defineProperty,Wa=Object.getOwnPropertyDescriptor,Xt=(r,t,s,i)=>{for(var e=i>1?void 0:i?Wa(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&qa(t,s,e),e};const Ka="sonic-pop";let nt=class extends w{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(){G.everyAncestors(this,r=>{const t=r;if(!t.className)return!0;if([...t.classList].includes("@container")){const s=t.style;s.zIndex="999999999";const i=getComputedStyle(t);return i.position!=="relative"&&i.position!=="absolute"&&(s.position="relative"),this.ancestorsHavingZIndex.add(r),!1}return!0})}resetZindexes(){this.ancestorsHavingZIndex.forEach(r=>{r.style.removeProperty("position"),r.style.removeProperty("z-index")}),this.ancestorsHavingZIndex.clear()}_handleClosePop(r){const t=r.composedPath(),s=t[0];nt.pops.forEach(i=>{const e=t.includes(i),o=t.includes(i.querySelector('[slot="content"]')),n=G.getAncestorAttributeValue(s,"data-on-select")==="keep";r.type=="pointerdown"&&e||r.type=="click"&&(e&&n||!o)||i.hide()})}connectedCallback(){super.connectedCallback(),nt.pops.size==0&&(document.addEventListener("pointerdown",this._handleClosePop),document.addEventListener("click",this._handleClosePop)),nt.pops.add(this)}firstUpdated(r){super.firstUpdated(r),this.resizeObserver.observe(this.popContent)}disconnectedCallback(){this.popContent&&this.resizeObserver.unobserve(this.popContent),super.disconnectedCallback(),nt.pops.delete(this),nt.pops.size==0&&(document.removeEventListener("pointerdown",this._handleClosePop),document.removeEventListener("click",this._handleClosePop))}computePosition(r){var E,H,W,At;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(),l=G.getScrollableAncestor(this.popContent),c=l==null?void 0:l.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,f=Math.min(window.innerWidth,(c==null?void 0:c.right)||window.innerWidth)-o,m=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,p=b-e.width,u=b+n.width,y=v+n.height,A=b+(n.width-e.width)*.5,O=v+(n.height-e.height)*.5;switch(s){case"bottom":S=y,i=="center"&&(P=A);break;case"top":S=D,i=="center"&&(P=A);break;case"left":P=p,i=="center"&&(S=O);break;case"right":P=u,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=(H=this.popContent)==null?void 0:H.getBoundingClientRect(),e.x<h&&s=="left"&&(P=u),e.y<d&&s=="top"&&(S=y),e.x+e.width>f&&s=="right"&&(P=p),e.y+e.height>m&&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=(At=this.popContent)==null?void 0:At.getBoundingClientRect(),e.x+e.width>f&&(this.lastContentX+=f-(e.x+e.width)),e.y+e.height>m&&(this.lastContentY+=m-(e.y+e.height)),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`})}render(){return g`
1970
+ `],q([a({type:String,reflect:!0})],V.prototype,"size",2),q([a({type:String})],V.prototype,"list",2),q([a({type:String})],V.prototype,"placeholder",2),q([a({type:String})],V.prototype,"pattern",2),q([a({type:String})],V.prototype,"min",2),q([a({type:String})],V.prototype,"max",2),q([a({type:Boolean})],V.prototype,"readonly",2),q([a({type:Number})],V.prototype,"step",2),q([a({type:Number})],V.prototype,"minlength",2),q([a({type:Number})],V.prototype,"maxlength",2),q([a({type:String})],V.prototype,"src",2),q([a({type:Boolean,reflect:!0})],V.prototype,"inlineContent",2),q([a({type:Boolean})],V.prototype,"disableInlineContentFocus",2),q([a({type:Boolean})],V.prototype,"showPasswordToggle",2),q([it({slot:"label",flatten:!0})],V.prototype,"slotLabelNodes",2),q([it({slot:"description",flatten:!0})],V.prototype,"slotDescriptionNodes",2),q([it({slot:"suffix",flatten:!0})],V.prototype,"slotSuffixNodes",2),q([it({slot:"prefix",flatten:!0})],V.prototype,"slotPrefixNodes",2),q([ie("input")],V.prototype,"input",2),q([N()],V.prototype,"hasDescription",2),q([N()],V.prototype,"hasLabel",2),q([N()],V.prototype,"hasSuffix",2),q([N()],V.prototype,"hasPrefix",2),q([N()],V.prototype,"isPassword",2),V=q([_(Ha)],V);var qa=Object.defineProperty,Wa=Object.getOwnPropertyDescriptor,Xt=(r,t,s,i)=>{for(var e=i>1?void 0:i?Wa(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&qa(t,s,e),e};const Ka="sonic-pop";let nt=class extends w{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(){G.everyAncestors(this,r=>{const t=r;if(!t.className)return!0;if([...t.classList].includes("@container")){const s=t.style;s.zIndex="999999999";const i=getComputedStyle(t);return i.position!=="relative"&&i.position!=="absolute"&&(s.position="relative"),this.ancestorsHavingZIndex.add(r),!1}return!0})}resetZindexes(){this.ancestorsHavingZIndex.forEach(r=>{r.style.removeProperty("position"),r.style.removeProperty("z-index")}),this.ancestorsHavingZIndex.clear()}_handleClosePop(r){const t=r.composedPath(),s=t[0];nt.pops.forEach(i=>{const e=t.includes(i),o=t.includes(i.querySelector('[slot="content"]')),n=G.getAncestorAttributeValue(s,"data-on-select")==="keep";r.type=="pointerdown"&&e||r.type=="click"&&(e&&n||!o)||i.hide()})}connectedCallback(){super.connectedCallback(),nt.pops.size==0&&(document.addEventListener("pointerdown",this._handleClosePop),document.addEventListener("click",this._handleClosePop)),nt.pops.add(this)}firstUpdated(r){super.firstUpdated(r),this.resizeObserver.observe(this.popContent)}disconnectedCallback(){this.popContent&&this.resizeObserver.unobserve(this.popContent),super.disconnectedCallback(),nt.pops.delete(this),nt.pops.size==0&&(document.removeEventListener("pointerdown",this._handleClosePop),document.removeEventListener("click",this._handleClosePop))}computePosition(r){var E,H,W,At;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(),l=G.getScrollableAncestor(this.popContent),c=l==null?void 0:l.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,f=Math.min(window.innerWidth,(c==null?void 0:c.right)||window.innerWidth)-o,m=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,p=b-e.width,u=b+n.width,y=v+n.height,A=b+(n.width-e.width)*.5,O=v+(n.height-e.height)*.5;switch(s){case"bottom":S=y,i=="center"&&(P=A);break;case"top":S=D,i=="center"&&(P=A);break;case"left":P=p,i=="center"&&(S=O);break;case"right":P=u,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=(H=this.popContent)==null?void 0:H.getBoundingClientRect(),e.x<h&&s=="left"&&(P=u),e.y<d&&s=="top"&&(S=y),e.x+e.width>f&&s=="right"&&(P=p),e.y+e.height>m&&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=(At=this.popContent)==null?void 0:At.getBoundingClientRect(),e.x+e.width>f&&(this.lastContentX+=f-(e.x+e.width)),e.y+e.height>m&&(this.lastContentY+=m-(e.y+e.height)),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`})}render(){return g`
1971
1971
  <slot
1972
1972
  @click=${this.toggle}
1973
1973
  @keydown=${this.toggle}
@@ -2032,7 +2032,7 @@
2032
2032
  :host([inline]) {
2033
2033
  vertical-align: baseline;
2034
2034
  }
2035
- `],Xt([M()],nt.prototype,"open",2),Xt([ie("slot:not([name=content])")],nt.prototype,"popBtn",2),Xt([ie("slot[name=content]")],nt.prototype,"popContent",2),Xt([a({type:Boolean})],nt.prototype,"noToggle",2),Xt([a({type:Boolean,reflect:!0})],nt.prototype,"inline",2),Xt([a({type:String,reflect:!0})],nt.prototype,"shadow",2),Xt([a({type:String})],nt.prototype,"placement",2),nt=Xt([_(Ka)],nt);var Za=Object.defineProperty,Ya=Object.getOwnPropertyDescriptor,Ga=(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&&Za(t,s,e),e};const Qa="sonic-menu-item";let Mr=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()}};Mr=Ga([_(Qa)],Mr);/**
2035
+ `],Xt([N()],nt.prototype,"open",2),Xt([ie("slot:not([name=content])")],nt.prototype,"popBtn",2),Xt([ie("slot[name=content]")],nt.prototype,"popContent",2),Xt([a({type:Boolean})],nt.prototype,"noToggle",2),Xt([a({type:Boolean,reflect:!0})],nt.prototype,"inline",2),Xt([a({type:String,reflect:!0})],nt.prototype,"shadow",2),Xt([a({type:String})],nt.prototype,"placement",2),nt=Xt([_(Ka)],nt);var Za=Object.defineProperty,Ya=Object.getOwnPropertyDescriptor,Ga=(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&&Za(t,s,e),e};const Qa="sonic-menu-item";let Mr=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()}};Mr=Ga([_(Qa)],Mr);/**
2036
2036
  * @license
2037
2037
  * Copyright 2021 Google LLC
2038
2038
  * SPDX-License-Identifier: BSD-3-Clause
@@ -2108,7 +2108,7 @@
2108
2108
  min-width: 14rem;
2109
2109
  width: 100%;
2110
2110
  }
2111
- `],gt([a({type:String})],at.prototype,"size",2),gt([a({type:String})],at.prototype,"placeholder",2),gt([a()],at.prototype,"filteredFields",2),gt([a({type:Boolean})],at.prototype,"readonly",2),gt([a({type:String})],at.prototype,"dataProviderExpression",2),gt([a({type:Number})],at.prototype,"minSearchLength",2),gt([a({type:Boolean})],at.prototype,"select",2),gt([a({type:String})],at.prototype,"key",2),gt([a({type:String})],at.prototype,"searchParameter",2),gt([a({type:String})],at.prototype,"propertyName",2),gt([it({slot:"prefix",flatten:!0})],at.prototype,"slotInputPrefixNodes",2),gt([M()],at.prototype,"hasInputPrefix",2),gt([M()],at.prototype,"isPopVisible",2),at=gt([_("sonic-input-autocomplete")],at);var tl=Object.defineProperty,el=Object.getOwnPropertyDescriptor,dt=(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-password-helper";let lt=class extends Kt(w){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)},et.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].onAssign(this.checkValue))}disconnectedCallback(){this.checkValue&&this.name&&et.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].offAssign(this.checkValue),super.disconnectedCallback()}getIcon(t){return t?g`<sonic-icon library="heroicons" name="face-smile"></sonic-icon>`:g`<sonic-icon library="heroicons" name="x-mark"></sonic-icon>`}render(){return this.hasNoChar?C:g`
2111
+ `],gt([a({type:String})],at.prototype,"size",2),gt([a({type:String})],at.prototype,"placeholder",2),gt([a()],at.prototype,"filteredFields",2),gt([a({type:Boolean})],at.prototype,"readonly",2),gt([a({type:String})],at.prototype,"dataProviderExpression",2),gt([a({type:Number})],at.prototype,"minSearchLength",2),gt([a({type:Boolean})],at.prototype,"select",2),gt([a({type:String})],at.prototype,"key",2),gt([a({type:String})],at.prototype,"searchParameter",2),gt([a({type:String})],at.prototype,"propertyName",2),gt([it({slot:"prefix",flatten:!0})],at.prototype,"slotInputPrefixNodes",2),gt([N()],at.prototype,"hasInputPrefix",2),gt([N()],at.prototype,"isPopVisible",2),at=gt([_("sonic-input-autocomplete")],at);var tl=Object.defineProperty,el=Object.getOwnPropertyDescriptor,dt=(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-password-helper";let lt=class extends Kt(w){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)},et.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].onAssign(this.checkValue))}disconnectedCallback(){this.checkValue&&this.name&&et.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].offAssign(this.checkValue),super.disconnectedCallback()}getIcon(t){return t?g`<sonic-icon library="heroicons" name="face-smile"></sonic-icon>`:g`<sonic-icon library="heroicons" name="x-mark"></sonic-icon>`}render(){return this.hasNoChar?C:g`
2112
2112
  <div>${this.wording_password_helper_decription}</div>
2113
2113
  <div>
2114
2114
  ${this.getIcon(this.hasEnoughChars)}
@@ -2129,11 +2129,11 @@
2129
2129
  ${this.getIcon(this.hasSpecialChar)}
2130
2130
  ${this.wording_password_helper_special_char}
2131
2131
  </div>
2132
- `}};dt([a()],lt.prototype,"name",2),dt([a()],lt.prototype,"minChars",2),dt([M()],lt.prototype,"hasNoChar",2),dt([M()],lt.prototype,"hasEnoughChars",2),dt([M()],lt.prototype,"hasMinuscule",2),dt([M()],lt.prototype,"hasMajuscule",2),dt([M()],lt.prototype,"hasNumber",2),dt([M()],lt.prototype,"hasSpecialChar",2),dt([a()],lt.prototype,"wording_password_helper_decription",2),dt([a()],lt.prototype,"wording_password_helper_min_length",2),dt([a()],lt.prototype,"wording_password_helper_lower_case",2),dt([a()],lt.prototype,"wording_password_helper_upper_case",2),dt([a()],lt.prototype,"wording_password_helper_number",2),dt([a()],lt.prototype,"wording_password_helper_special_char",2),lt=dt([_(sl)],lt);var il=Object.defineProperty,rl=Object.getOwnPropertyDescriptor,ve=(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-same-value-helper";let Jt=class extends Kt(w){constructor(){super(...arguments),this.descriptionWhenEqual="Correspondance : oui",this.descriptionWhenNotEqual="Correspondance : non",this.areEqual=!1,this.hasNoChar=!0}connectedCallback(){super.connectedCallback();const r=et.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=ht(r,this.name).get()==ht(r,this.sameValueAs).get())},ht(r,this.name).onAssign(this.checkValue),ht(r,this.sameValueAs).onAssign(this.checkValue))}disconnectedCallback(){if(this.checkValue&&this.name&&this.sameValueAs){const r=et.get(this.getAncestorAttributeValue("formDataProvider"));ht(r,this.name).offAssign(this.checkValue),ht(r,this.sameValueAs).offAssign(this.checkValue)}super.disconnectedCallback()}render(){return this.hasNoChar?C:g`
2132
+ `}};dt([a()],lt.prototype,"name",2),dt([a()],lt.prototype,"minChars",2),dt([N()],lt.prototype,"hasNoChar",2),dt([N()],lt.prototype,"hasEnoughChars",2),dt([N()],lt.prototype,"hasMinuscule",2),dt([N()],lt.prototype,"hasMajuscule",2),dt([N()],lt.prototype,"hasNumber",2),dt([N()],lt.prototype,"hasSpecialChar",2),dt([a()],lt.prototype,"wording_password_helper_decription",2),dt([a()],lt.prototype,"wording_password_helper_min_length",2),dt([a()],lt.prototype,"wording_password_helper_lower_case",2),dt([a()],lt.prototype,"wording_password_helper_upper_case",2),dt([a()],lt.prototype,"wording_password_helper_number",2),dt([a()],lt.prototype,"wording_password_helper_special_char",2),lt=dt([_(sl)],lt);var il=Object.defineProperty,rl=Object.getOwnPropertyDescriptor,ve=(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-same-value-helper";let Jt=class extends Kt(w){constructor(){super(...arguments),this.descriptionWhenEqual="Correspondance : oui",this.descriptionWhenNotEqual="Correspondance : non",this.areEqual=!1,this.hasNoChar=!0}connectedCallback(){super.connectedCallback();const r=et.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=ht(r,this.name).get()==ht(r,this.sameValueAs).get())},ht(r,this.name).onAssign(this.checkValue),ht(r,this.sameValueAs).onAssign(this.checkValue))}disconnectedCallback(){if(this.checkValue&&this.name&&this.sameValueAs){const r=et.get(this.getAncestorAttributeValue("formDataProvider"));ht(r,this.name).offAssign(this.checkValue),ht(r,this.sameValueAs).offAssign(this.checkValue)}super.disconnectedCallback()}render(){return this.hasNoChar?C:g`
2133
2133
  <span>
2134
2134
  ${this.areEqual?F(this.descriptionWhenEqual):F(this.descriptionWhenNotEqual)}
2135
2135
  </span>
2136
- `}};ve([a()],Jt.prototype,"name",2),ve([a()],Jt.prototype,"sameValueAs",2),ve([a()],Jt.prototype,"descriptionWhenEqual",2),ve([a()],Jt.prototype,"descriptionWhenNotEqual",2),ve([M()],Jt.prototype,"areEqual",2),ve([M()],Jt.prototype,"hasNoChar",2),Jt=ve([_(ol)],Jt);var nl=Object.defineProperty,al=Object.getOwnPropertyDescriptor,Ut=(r,t,s,i)=>{for(var e=i>1?void 0:i?al(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&nl(t,s,e),e};const ll="sonic-checkbox";let yt=class extends ii(Ps(De(K(w)))){constructor(){super(...arguments),this.touched=!1,this.iconName="check",this.indeterminateIconName="minus-small",this.showAsIndeterminate=!1,this.hasDescription=!1,this.hasLabel=!1}connectedCallback(){this.type="checkbox",this.hasSlotOrProps(),super.connectedCallback()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){var r,t;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length)}render(){return g`
2136
+ `}};ve([a()],Jt.prototype,"name",2),ve([a()],Jt.prototype,"sameValueAs",2),ve([a()],Jt.prototype,"descriptionWhenEqual",2),ve([a()],Jt.prototype,"descriptionWhenNotEqual",2),ve([N()],Jt.prototype,"areEqual",2),ve([N()],Jt.prototype,"hasNoChar",2),Jt=ve([_(ol)],Jt);var nl=Object.defineProperty,al=Object.getOwnPropertyDescriptor,Ut=(r,t,s,i)=>{for(var e=i>1?void 0:i?al(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&nl(t,s,e),e};const ll="sonic-checkbox";let yt=class extends ii(Ps(De(K(w)))){constructor(){super(...arguments),this.touched=!1,this.iconName="check",this.indeterminateIconName="minus-small",this.showAsIndeterminate=!1,this.hasDescription=!1,this.hasLabel=!1}connectedCallback(){this.type="checkbox",this.hasSlotOrProps(),super.connectedCallback()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){var r,t;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length)}render(){return g`
2137
2137
  <label class="checkbox-container ${this.disabled?"disabled":""}">
2138
2138
 
2139
2139
  <span class="icon-container">
@@ -2161,7 +2161,7 @@
2161
2161
  </div>
2162
2162
  </label>
2163
2163
  </label>
2164
- `}};yt.styles=[Ot,$`
2164
+ `}};yt.styles=[Dt,$`
2165
2165
  :host {
2166
2166
  --sc-checkbox-border-width: var(--sc-form-border-width);
2167
2167
  --sc-checkbox-border-color: var(--sc-input-border-color);
@@ -2352,7 +2352,7 @@
2352
2352
  class="${this.hasDescription?"form-description":"hidden"}"
2353
2353
  >${this.description?g`${F(this.description)}`:""}</slot
2354
2354
  >
2355
- `}};Y.styles=[Ot,mi,ks,Ls,$`
2355
+ `}};Y.styles=[Dt,mi,ks,Ls,$`
2356
2356
  .form-element {
2357
2357
  appearance: none;
2358
2358
  }
@@ -2397,7 +2397,7 @@
2397
2397
  background: transparent;
2398
2398
  padding: 0;
2399
2399
  }
2400
- `],X([a({type:String})],Y.prototype,"valueKey",2),X([a({type:String})],Y.prototype,"wordingKey",2),X([a({type:Boolean})],Y.prototype,"multiple",2),X([a({type:String,reflect:!0})],Y.prototype,"size",2),X([a({type:Number})],Y.prototype,"selectSize",2),X([a({type:String,reflect:!0})],Y.prototype,"status",2),X([a({type:Array})],Y.prototype,"options",1),X([a({reflect:!0})],Y.prototype,"value",1),X([a({type:Boolean})],Y.prototype,"forceAutoFill",2),X([a()],Y.prototype,"description",1),X([a()],Y.prototype,"label",1),X([it({slot:"label",flatten:!0})],Y.prototype,"slotLabelNodes",2),X([it({slot:"description",flatten:!0})],Y.prototype,"slotDescriptionNodes",2),X([it({slot:"suffix",flatten:!0})],Y.prototype,"slotSuffixNodes",2),X([it({slot:"prefix",flatten:!0})],Y.prototype,"slotPrefixNodes",2),X([M()],Y.prototype,"hasDescription",2),X([M()],Y.prototype,"hasLabel",2),X([M()],Y.prototype,"hasSuffix",2),X([M()],Y.prototype,"hasPrefix",2),Y=X([_(gl)],Y);var ml=Object.defineProperty,bl=Object.getOwnPropertyDescriptor,mt=(r,t,s,i)=>{for(var e=i>1?void 0:i?bl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ml(t,s,e),e};const vl="sonic-textarea";let ct=class extends Ps(De(K(w))){constructor(){super(...arguments),this.size="md",this.readonly=!1,this.hasDescription=!1,this.hasLabel=!1}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){var r,t;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length)}validateFormElement(){var s;const r=(s=this.shadowRoot)==null?void 0:s.querySelector("textarea");if(!r||r.checkValidity())return;const t=this.getFormPublisher();t&&(t.isFormValid=!1),r.reportValidity()}render(){const r={resize:this.resize};return g`
2400
+ `],X([a({type:String})],Y.prototype,"valueKey",2),X([a({type:String})],Y.prototype,"wordingKey",2),X([a({type:Boolean})],Y.prototype,"multiple",2),X([a({type:String,reflect:!0})],Y.prototype,"size",2),X([a({type:Number})],Y.prototype,"selectSize",2),X([a({type:String,reflect:!0})],Y.prototype,"status",2),X([a({type:Array})],Y.prototype,"options",1),X([a({reflect:!0})],Y.prototype,"value",1),X([a({type:Boolean})],Y.prototype,"forceAutoFill",2),X([a()],Y.prototype,"description",1),X([a()],Y.prototype,"label",1),X([it({slot:"label",flatten:!0})],Y.prototype,"slotLabelNodes",2),X([it({slot:"description",flatten:!0})],Y.prototype,"slotDescriptionNodes",2),X([it({slot:"suffix",flatten:!0})],Y.prototype,"slotSuffixNodes",2),X([it({slot:"prefix",flatten:!0})],Y.prototype,"slotPrefixNodes",2),X([N()],Y.prototype,"hasDescription",2),X([N()],Y.prototype,"hasLabel",2),X([N()],Y.prototype,"hasSuffix",2),X([N()],Y.prototype,"hasPrefix",2),Y=X([_(gl)],Y);var ml=Object.defineProperty,bl=Object.getOwnPropertyDescriptor,mt=(r,t,s,i)=>{for(var e=i>1?void 0:i?bl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ml(t,s,e),e};const vl="sonic-textarea";let ct=class extends Ps(De(K(w))){constructor(){super(...arguments),this.size="md",this.readonly=!1,this.hasDescription=!1,this.hasLabel=!1}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){var r,t;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length)}validateFormElement(){var s;const r=(s=this.shadowRoot)==null?void 0:s.querySelector("textarea");if(!r||r.checkValidity())return;const t=this.getFormPublisher();t&&(t.isFormValid=!1),r.reportValidity()}render(){const r={resize:this.resize};return g`
2401
2401
  <label
2402
2402
  for="${this.id||"form-element"}"
2403
2403
  class="${this.hasLabel?"form-label":"hidden"}"
@@ -2441,12 +2441,12 @@ ${this.value}</textarea
2441
2441
  class="${this.hasDescription?"form-description":"hidden"}"
2442
2442
  >${this.description?g`${F(this.description)}`:""}</slot
2443
2443
  >
2444
- `}};ct.styles=[Ot,mi,ks,Ls,Ge,$`
2444
+ `}};ct.styles=[Dt,mi,ks,Ls,Ge,$`
2445
2445
  textarea {
2446
2446
  overflow-y: auto !important;
2447
2447
  font-size: inherit;
2448
2448
  }
2449
- `],mt([a({type:String})],ct.prototype,"size",2),mt([a({type:Number})],ct.prototype,"rows",2),mt([a({type:Number})],ct.prototype,"cols",2),mt([a({type:Number})],ct.prototype,"maxlength",2),mt([a({type:Number})],ct.prototype,"minlength",2),mt([a({type:String})],ct.prototype,"wrap",2),mt([a({type:Boolean})],ct.prototype,"readonly",2),mt([a({type:String})],ct.prototype,"placeholder",2),mt([a({type:String})],ct.prototype,"resize",2),mt([it({slot:"label",flatten:!0})],ct.prototype,"slotLabelNodes",2),mt([it({slot:"description",flatten:!0})],ct.prototype,"slotDescriptionNodes",2),mt([M()],ct.prototype,"hasDescription",2),mt([M()],ct.prototype,"hasLabel",2),ct=mt([_(vl)],ct);var yl=Object.defineProperty,wl=Object.getOwnPropertyDescriptor,_l=(r,t,s,i)=>{for(var e=i>1?void 0:i?wl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&yl(t,s,e),e};let yi=class extends w{render(){return g`<slot></slot>`}};yi.styles=[$`
2449
+ `],mt([a({type:String})],ct.prototype,"size",2),mt([a({type:Number})],ct.prototype,"rows",2),mt([a({type:Number})],ct.prototype,"cols",2),mt([a({type:Number})],ct.prototype,"maxlength",2),mt([a({type:Number})],ct.prototype,"minlength",2),mt([a({type:String})],ct.prototype,"wrap",2),mt([a({type:Boolean})],ct.prototype,"readonly",2),mt([a({type:String})],ct.prototype,"placeholder",2),mt([a({type:String})],ct.prototype,"resize",2),mt([it({slot:"label",flatten:!0})],ct.prototype,"slotLabelNodes",2),mt([it({slot:"description",flatten:!0})],ct.prototype,"slotDescriptionNodes",2),mt([N()],ct.prototype,"hasDescription",2),mt([N()],ct.prototype,"hasLabel",2),ct=mt([_(vl)],ct);var yl=Object.defineProperty,wl=Object.getOwnPropertyDescriptor,_l=(r,t,s,i)=>{for(var e=i>1?void 0:i?wl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&yl(t,s,e),e};let yi=class extends w{render(){return g`<slot></slot>`}};yi.styles=[$`
2450
2450
  :host {
2451
2451
  font-size: 1.15rem;
2452
2452
  line-height: 1.2;
@@ -2502,7 +2502,7 @@ ${this.value}</textarea
2502
2502
  .legend-content {
2503
2503
  flex-grow: 1;
2504
2504
  }
2505
- `],ye([a({type:Boolean})],Vt.prototype,"forceAutoFill",2),ye([a()],Vt.prototype,"description",1),ye([a()],Vt.prototype,"label",1),ye([a({type:String})],Vt.prototype,"iconName",2),ye([a({type:String})],Vt.prototype,"iconLibrary",2),ye([a({type:String})],Vt.prototype,"iconPrefix",2),Vt=ye([_($l)],Vt);var Cl=Object.defineProperty,Al=Object.getOwnPropertyDescriptor,Lt=(r,t,s,i)=>{for(var e=i>1?void 0:i?Al(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Cl(t,s,e),e};const Sl="sonic-fieldset";let xt=class extends K(w){constructor(){super(...arguments),this.disabled=!1,this.variant="default"}render(){return g`<fieldset
2505
+ `],ye([a({type:Boolean})],Vt.prototype,"forceAutoFill",2),ye([a()],Vt.prototype,"description",1),ye([a()],Vt.prototype,"label",1),ye([a({type:String})],Vt.prototype,"iconName",2),ye([a({type:String})],Vt.prototype,"iconLibrary",2),ye([a({type:String})],Vt.prototype,"iconPrefix",2),Vt=ye([_($l)],Vt);var Cl=Object.defineProperty,Al=Object.getOwnPropertyDescriptor,Et=(r,t,s,i)=>{for(var e=i>1?void 0:i?Al(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Cl(t,s,e),e};const Sl="sonic-fieldset";let xt=class extends K(w){constructor(){super(...arguments),this.disabled=!1,this.variant="default"}render(){return g`<fieldset
2506
2506
  form="${x(this.form)}"
2507
2507
  ?disabled="${this.disabled}"
2508
2508
  >
@@ -2563,7 +2563,7 @@ ${this.value}</textarea
2563
2563
  ::slotted(sonic-legend:last-child) {
2564
2564
  margin-bottom: 0;
2565
2565
  }
2566
- `],Lt([a({type:Boolean,reflect:!0})],xt.prototype,"disabled",2),Lt([a({type:String})],xt.prototype,"form",2),Lt([a({type:String})],xt.prototype,"label",2),Lt([a({type:String})],xt.prototype,"description",2),Lt([a({type:String})],xt.prototype,"iconName",2),Lt([a({type:String})],xt.prototype,"iconLibrary",2),Lt([a({type:String})],xt.prototype,"iconPrefix",2),Lt([a({type:Boolean,reflect:!0})],xt.prototype,"tight",2),Lt([a({type:String,reflect:!0})],xt.prototype,"variant",2),xt=Lt([_(Sl)],xt);var Ol=Object.defineProperty,Dl=Object.getOwnPropertyDescriptor,wi=(r,t,s,i)=>{for(var e=i>1?void 0:i?Dl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ol(t,s,e),e};const kl="sonic-form-layout";let ts=class extends K(w){constructor(){super(...arguments),this._resizeController=new Ir(this,{}),this.oneFormElement=!1}onSlotChange(){let r=this.slottedElements;const t=["sonic-input","sonic-select","sonic-input-autocomplete",".form-item-container"];r=r.filter(s=>t.includes(s.nodeName.toLowerCase())),this.oneFormElement=r.length==1}render(){const r={"cq--md":this.offsetWidth>440,"one-form-element":this.oneFormElement};return g`<div class=${bi(r)}>
2566
+ `],Et([a({type:Boolean,reflect:!0})],xt.prototype,"disabled",2),Et([a({type:String})],xt.prototype,"form",2),Et([a({type:String})],xt.prototype,"label",2),Et([a({type:String})],xt.prototype,"description",2),Et([a({type:String})],xt.prototype,"iconName",2),Et([a({type:String})],xt.prototype,"iconLibrary",2),Et([a({type:String})],xt.prototype,"iconPrefix",2),Et([a({type:Boolean,reflect:!0})],xt.prototype,"tight",2),Et([a({type:String,reflect:!0})],xt.prototype,"variant",2),xt=Et([_(Sl)],xt);var Ol=Object.defineProperty,Dl=Object.getOwnPropertyDescriptor,wi=(r,t,s,i)=>{for(var e=i>1?void 0:i?Dl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ol(t,s,e),e};const kl="sonic-form-layout";let ts=class extends K(w){constructor(){super(...arguments),this._resizeController=new Ir(this,{}),this.oneFormElement=!1}onSlotChange(){let r=this.slottedElements;const t=["sonic-input","sonic-select","sonic-input-autocomplete",".form-item-container"];r=r.filter(s=>t.includes(s.nodeName.toLowerCase())),this.oneFormElement=r.length==1}render(){const r={"cq--md":this.offsetWidth>440,"one-form-element":this.oneFormElement};return g`<div class=${bi(r)}>
2567
2567
  <slot @slotchange=${this.onSlotChange}></slot>
2568
2568
  </div>`}};ts.styles=[$`
2569
2569
  :host {
@@ -2609,7 +2609,7 @@ ${this.value}</textarea
2609
2609
  flex-wrap: wrap;
2610
2610
  gap: 0.3rem;
2611
2611
  }
2612
- `],_i([a({type:String})],es.prototype,"direction",2),_i([a({type:String})],es.prototype,"justify",2),es=_i([_(Nl)],es);var Tl=Object.defineProperty,Ml=Object.getOwnPropertyDescriptor,te=(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-group";let Et=class extends w{constructor(){super(...arguments),this.alignItems="center",this.hasDescription=!1,this.hasLabel=!1}updated(){const r=this.querySelectorAll("sonic-input, sonic-button, sonic-select"),t=r.length;t>1&&r.forEach((s,i)=>{const e=s;i===0?(e.style.setProperty("--sc-item-rounded-tr","0"),e.style.setProperty("--sc-item-rounded-br","0")):i===t-1?(e.style.setProperty("--sc-item-rounded-tl","0"),e.style.setProperty("--sc-item-rounded-bl","0")):(e.style.setProperty("--sc-item-rounded-tr","0"),e.style.setProperty("--sc-item-rounded-br","0"),e.style.setProperty("--sc-item-rounded-tl","0"),e.style.setProperty("--sc-item-rounded-bl","0"))})}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){var r,t;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length)}render(){const r={alignItems:this.alignItems};return g`<span class="${this.hasLabel?"form-label":"hidden"}"
2612
+ `],_i([a({type:String})],es.prototype,"direction",2),_i([a({type:String})],es.prototype,"justify",2),es=_i([_(Nl)],es);var Tl=Object.defineProperty,Ml=Object.getOwnPropertyDescriptor,te=(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-group";let Nt=class extends w{constructor(){super(...arguments),this.alignItems="center",this.hasDescription=!1,this.hasLabel=!1}updated(){const r=this.querySelectorAll("sonic-input, sonic-button, sonic-select"),t=r.length;t>1&&r.forEach((s,i)=>{const e=s;i===0?(e.style.setProperty("--sc-item-rounded-tr","0"),e.style.setProperty("--sc-item-rounded-br","0")):i===t-1?(e.style.setProperty("--sc-item-rounded-tl","0"),e.style.setProperty("--sc-item-rounded-bl","0")):(e.style.setProperty("--sc-item-rounded-tr","0"),e.style.setProperty("--sc-item-rounded-br","0"),e.style.setProperty("--sc-item-rounded-tl","0"),e.style.setProperty("--sc-item-rounded-bl","0"))})}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){var r,t;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length)}render(){const r={alignItems:this.alignItems};return g`<span class="${this.hasLabel?"form-label":"hidden"}"
2613
2613
  >${this.label?F(this.label):""}<slot
2614
2614
  name="label"
2615
2615
  @slotchange=${this.hasSlotOrProps}
@@ -2622,7 +2622,7 @@ ${this.value}</textarea
2622
2622
  class="${this.hasDescription?"form-description":"hidden"}"
2623
2623
  >
2624
2624
  ${this.description?g`${F(this.description)}`:""}
2625
- </slot>`}};Et.styles=[Ot,ks,Ls,$`
2625
+ </slot>`}};Nt.styles=[Dt,ks,Ls,$`
2626
2626
  :host {
2627
2627
  display: inline-block;
2628
2628
  vertical-align: middle;
@@ -2642,7 +2642,7 @@ ${this.value}</textarea
2642
2642
  ::slotted(sonic-select) {
2643
2643
  flex-grow: 1;
2644
2644
  }
2645
- `],te([a({type:String})],Et.prototype,"alignItems",2),te([a({type:String})],Et.prototype,"label",2),te([a({type:String})],Et.prototype,"description",2),te([it({slot:"label",flatten:!0})],Et.prototype,"slotLabelNodes",2),te([it({slot:"description",flatten:!0})],Et.prototype,"slotDescriptionNodes",2),te([M()],Et.prototype,"hasDescription",2),te([M()],Et.prototype,"hasLabel",2),Et=te([_(Il)],Et);var jl=Object.defineProperty,Fl=Object.getOwnPropertyDescriptor,Nt=(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-image";let Pt=class extends w{constructor(){super(...arguments),this.rounded="none",this.src="",this.alt="",this.loading="lazy",this.ratio="auto",this.objectPosition="center center",this.imageRendering="auto",this.cover=!1}firstUpdated(r){var t;if(this.transition){const s=(t=this.shadowRoot)==null?void 0:t.querySelector("img");if(!s)return;s.onload=function(){s.classList.add("loaded")}}super.firstUpdated(r)}render(){const r={aspectRatio:this.cover?"auto":this.ratio,imageRendering:this.imageRendering,objectPosition:this.objectPosition};return g`<div part="image">
2645
+ `],te([a({type:String})],Nt.prototype,"alignItems",2),te([a({type:String})],Nt.prototype,"label",2),te([a({type:String})],Nt.prototype,"description",2),te([it({slot:"label",flatten:!0})],Nt.prototype,"slotLabelNodes",2),te([it({slot:"description",flatten:!0})],Nt.prototype,"slotDescriptionNodes",2),te([N()],Nt.prototype,"hasDescription",2),te([N()],Nt.prototype,"hasLabel",2),Nt=te([_(Il)],Nt);var jl=Object.defineProperty,Fl=Object.getOwnPropertyDescriptor,Tt=(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-image";let Pt=class extends w{constructor(){super(...arguments),this.rounded="none",this.src="",this.alt="",this.loading="lazy",this.ratio="auto",this.objectPosition="center center",this.imageRendering="auto",this.cover=!1}firstUpdated(r){var t;if(this.transition){const s=(t=this.shadowRoot)==null?void 0:t.querySelector("img");if(!s)return;s.onload=function(){s.classList.add("loaded")}}super.firstUpdated(r)}render(){const r={aspectRatio:this.cover?"auto":this.ratio,imageRendering:this.imageRendering,objectPosition:this.objectPosition};return g`<div part="image">
2646
2646
  <picture part="picture"
2647
2647
  ><img part="img" src="${this.src}" loading="${this.loading}" alt="${this.alt}" style=${ut(r)}
2648
2648
  /></picture>
@@ -2719,7 +2719,7 @@ ${this.value}</textarea
2719
2719
  opacity: 1;
2720
2720
  scale: 1;
2721
2721
  }
2722
- `],Nt([a({type:String})],Pt.prototype,"rounded",2),Nt([a({type:String})],Pt.prototype,"src",2),Nt([a({type:String})],Pt.prototype,"alt",2),Nt([a({type:String})],Pt.prototype,"loading",2),Nt([a({type:String,reflect:!0})],Pt.prototype,"transition",2),Nt([a({type:String})],Pt.prototype,"ratio",2),Nt([a({type:String})],Pt.prototype,"objectPosition",2),Nt([a({type:String})],Pt.prototype,"imageRendering",2),Nt([a({type:Boolean,reflect:!0})],Pt.prototype,"cover",2),Pt=Nt([_(zl)],Pt);var Rl=Object.defineProperty,Ul=Object.getOwnPropertyDescriptor,wt=(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-menu";let pt=class extends w{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 g`<menu
2722
+ `],Tt([a({type:String})],Pt.prototype,"rounded",2),Tt([a({type:String})],Pt.prototype,"src",2),Tt([a({type:String})],Pt.prototype,"alt",2),Tt([a({type:String})],Pt.prototype,"loading",2),Tt([a({type:String,reflect:!0})],Pt.prototype,"transition",2),Tt([a({type:String})],Pt.prototype,"ratio",2),Tt([a({type:String})],Pt.prototype,"objectPosition",2),Tt([a({type:String})],Pt.prototype,"imageRendering",2),Tt([a({type:Boolean,reflect:!0})],Pt.prototype,"cover",2),Pt=Tt([_(zl)],Pt);var Rl=Object.defineProperty,Ul=Object.getOwnPropertyDescriptor,wt=(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-menu";let pt=class extends w{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 g`<menu
2723
2723
  part="menu"
2724
2724
  class="shadowable"
2725
2725
  style=${ut(r)}
@@ -2878,7 +2878,7 @@ ${this.value}</textarea
2878
2878
  rgba(0, 0, 0, 0) 100%
2879
2879
  );
2880
2880
  }
2881
- `],wt([a({type:String,reflect:!0})],pt.prototype,"size",2),wt([a({type:String,reflect:!0})],pt.prototype,"direction",2),wt([a({type:String})],pt.prototype,"gap",2),wt([a({type:String,reflect:!0})],pt.prototype,"align",2),wt([a({type:String,reflect:!0})],pt.prototype,"shadow",2),wt([a({type:String})],pt.prototype,"moreShape",2),wt([a({type:Boolean})],pt.prototype,"scrollable",2),wt([a({type:String})],pt.prototype,"minWidth",2),wt([ie("menu")],pt.prototype,"menu",2),wt([re({selector:"sonic-menu-item"})],pt.prototype,"menuChildren",2),wt([re({slot:"more",selector:"*"})],pt.prototype,"moreElements",2),wt([M()],pt.prototype,"hasMoreElements",2),pt=wt([_(Vl)],pt);var Bl=Object.defineProperty,Hl=Object.getOwnPropertyDescriptor,jr=(r,t,s,i)=>{for(var e=i>1?void 0:i?Hl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Bl(t,s,e),e};const ql="sonic-modal-actions";let Es=class extends w{firstUpdated(r){var t;(t=this.buttons)==null||t.forEach(s=>{s.addEventListener("click",()=>{if(s.getAttribute("hideModal")!="false"){const i=ue.getClosestElement(this,"sonic-modal");i==null||i.hide()}})}),super.firstUpdated(r)}render(){return g`<slot></slot>`}};Es.styles=[$`
2881
+ `],wt([a({type:String,reflect:!0})],pt.prototype,"size",2),wt([a({type:String,reflect:!0})],pt.prototype,"direction",2),wt([a({type:String})],pt.prototype,"gap",2),wt([a({type:String,reflect:!0})],pt.prototype,"align",2),wt([a({type:String,reflect:!0})],pt.prototype,"shadow",2),wt([a({type:String})],pt.prototype,"moreShape",2),wt([a({type:Boolean})],pt.prototype,"scrollable",2),wt([a({type:String})],pt.prototype,"minWidth",2),wt([ie("menu")],pt.prototype,"menu",2),wt([re({selector:"sonic-menu-item"})],pt.prototype,"menuChildren",2),wt([re({slot:"more",selector:"*"})],pt.prototype,"moreElements",2),wt([N()],pt.prototype,"hasMoreElements",2),pt=wt([_(Vl)],pt);var Bl=Object.defineProperty,Hl=Object.getOwnPropertyDescriptor,jr=(r,t,s,i)=>{for(var e=i>1?void 0:i?Hl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Bl(t,s,e),e};const ql="sonic-modal-actions";let Es=class extends w{firstUpdated(r){var t;(t=this.buttons)==null||t.forEach(s=>{s.addEventListener("click",()=>{if(s.getAttribute("hideModal")!="false"){const i=ue.getClosestElement(this,"sonic-modal");i==null||i.hide()}})}),super.firstUpdated(r)}render(){return g`<slot></slot>`}};Es.styles=[$`
2882
2882
  :host {
2883
2883
  display: flex;
2884
2884
  gap: 0.5rem;
@@ -3061,7 +3061,7 @@ ${this.value}</textarea
3061
3061
  :host([rounded="none"]) modal {
3062
3062
  --sc-img-radius: 0 !important;
3063
3063
  }
3064
- `],j.modals=[],tt([a({type:Boolean})],j.prototype,"forceAction",2),tt([a({type:Boolean})],j.prototype,"removeOnHide",2),tt([a({type:Boolean})],j.prototype,"removeHashOnHide",2),tt([a({type:String,reflect:!0})],j.prototype,"align",2),tt([a({type:String})],j.prototype,"padding",2),tt([a({type:String})],j.prototype,"maxWidth",2),tt([a({type:String})],j.prototype,"maxHeight",2),tt([a({type:String})],j.prototype,"width",2),tt([a({type:String})],j.prototype,"height",2),tt([a({type:String})],j.prototype,"zIndex",2),tt([a({type:String})],j.prototype,"effect",2),tt([a({type:Object})],j.prototype,"options",2),tt([a({type:Boolean,reflect:!0})],j.prototype,"fullScreen",2),tt([a({type:Boolean,reflect:!0})],j.prototype,"visible",2),tt([a({type:Object})],j.prototype,"animation",2),tt([ie(".modal-wrapper")],j.prototype,"modalWrapper",2),tt([ie(".modal")],j.prototype,"modalElement",2),tt([re({selector:"sonic-modal-close"})],j.prototype,"closeBtn",2),j=tt([_(zr)],j),typeof window<"u"&&(window.SonicModal=j);var cc=Object.defineProperty,hc=Object.getOwnPropertyDescriptor,Tt=(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={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty",default:"info-empty"},pc="sonic-alert";let $t=class extends w{constructor(){super(...arguments),this.label="",this.noIcon=!1,this.text="",this.id=new Date().getTime().toString(),this.dismissible=!1,this.background=!1,this.status="default",this.dismissForever=!1}render(){if(this.dismissForever){const r=localStorage.getItem("sonic-alert-dismissed")||"{}";if(JSON.parse(r)[this.id])return C}return g`<div part="alert" class="alert">
3064
+ `],j.modals=[],tt([a({type:Boolean})],j.prototype,"forceAction",2),tt([a({type:Boolean})],j.prototype,"removeOnHide",2),tt([a({type:Boolean})],j.prototype,"removeHashOnHide",2),tt([a({type:String,reflect:!0})],j.prototype,"align",2),tt([a({type:String})],j.prototype,"padding",2),tt([a({type:String})],j.prototype,"maxWidth",2),tt([a({type:String})],j.prototype,"maxHeight",2),tt([a({type:String})],j.prototype,"width",2),tt([a({type:String})],j.prototype,"height",2),tt([a({type:String})],j.prototype,"zIndex",2),tt([a({type:String})],j.prototype,"effect",2),tt([a({type:Object})],j.prototype,"options",2),tt([a({type:Boolean,reflect:!0})],j.prototype,"fullScreen",2),tt([a({type:Boolean,reflect:!0})],j.prototype,"visible",2),tt([a({type:Object})],j.prototype,"animation",2),tt([ie(".modal-wrapper")],j.prototype,"modalWrapper",2),tt([ie(".modal")],j.prototype,"modalElement",2),tt([re({selector:"sonic-modal-close"})],j.prototype,"closeBtn",2),j=tt([_(zr)],j),typeof window<"u"&&(window.SonicModal=j);var cc=Object.defineProperty,hc=Object.getOwnPropertyDescriptor,Mt=(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={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty",default:"info-empty"},pc="sonic-alert";let $t=class extends w{constructor(){super(...arguments),this.label="",this.noIcon=!1,this.text="",this.id=new Date().getTime().toString(),this.dismissible=!1,this.background=!1,this.status="default",this.dismissForever=!1}render(){if(this.dismissForever){const r=localStorage.getItem("sonic-alert-dismissed")||"{}";if(JSON.parse(r)[this.id])return C}return g`<div part="alert" class="alert">
3065
3065
  <slot name="icon" class="${this.noIcon?"hidden":C}"
3066
3066
  >${this.noIcon?C:g`<div>${this.status&&g`<sonic-icon name=${dc[this.status]}></sonic-icon>`}</div>`}</slot
3067
3067
  >
@@ -3072,7 +3072,7 @@ ${this.value}</textarea
3072
3072
  ${this.dismissible?g`<sonic-button @click=${this.close} class="close-btn" variant="unstyled" shape="circle">
3073
3073
  <sonic-icon name="cancel" size="lg"></sonic-icon>
3074
3074
  </sonic-button>`:C}
3075
- </div>`}close(){if(this.remove(),this.dismissForever){const r=localStorage.getItem("sonic-alert-dismissed")||"{}",t=JSON.parse(r);t[this.id]=!0,localStorage.setItem("sonic-alert-dismissed",JSON.stringify(t))}}};$t.styles=[Ot,$`
3075
+ </div>`}close(){if(this.remove(),this.dismissForever){const r=localStorage.getItem("sonic-alert-dismissed")||"{}",t=JSON.parse(r);t[this.id]=!0,localStorage.setItem("sonic-alert-dismissed",JSON.stringify(t))}}};$t.styles=[Dt,$`
3076
3076
  :host {
3077
3077
  --sc-alert-color: var(--sc-base-content);
3078
3078
  --sc-alert-rounded: var(--sc-rounded);
@@ -3164,7 +3164,7 @@ ${this.value}</textarea
3164
3164
  top: 0.25rem;
3165
3165
  right: 0.25rem;
3166
3166
  }
3167
- `],Tt([a({type:String})],$t.prototype,"label",2),Tt([a({type:Boolean,reflect:!0})],$t.prototype,"noIcon",2),Tt([a({type:String})],$t.prototype,"text",2),Tt([a({type:String})],$t.prototype,"id",2),Tt([a({type:String,reflect:!0})],$t.prototype,"size",2),Tt([a({type:Boolean,reflect:!0})],$t.prototype,"dismissible",2),Tt([a({type:Boolean,reflect:!0})],$t.prototype,"background",2),Tt([a({type:String,reflect:!0})],$t.prototype,"status",2),Tt([a({type:Boolean,reflect:!0})],$t.prototype,"dismissForever",2),$t=Tt([_(pc)],$t);var uc=Object.defineProperty,fc=Object.getOwnPropertyDescriptor,ss=(r,t,s,i)=>{for(var e=i>1?void 0:i?fc(t,s):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 gc="sonic-alert-messages";let we=class extends K(w){constructor(){super(...arguments),this.size="md",this.background=!1,this.noIcon=!1,this.messages=[]}render(){var r;return(r=this.messages)!=null&&r.length?g`<div class="container">
3167
+ `],Mt([a({type:String})],$t.prototype,"label",2),Mt([a({type:Boolean,reflect:!0})],$t.prototype,"noIcon",2),Mt([a({type:String})],$t.prototype,"text",2),Mt([a({type:String})],$t.prototype,"id",2),Mt([a({type:String,reflect:!0})],$t.prototype,"size",2),Mt([a({type:Boolean,reflect:!0})],$t.prototype,"dismissible",2),Mt([a({type:Boolean,reflect:!0})],$t.prototype,"background",2),Mt([a({type:String,reflect:!0})],$t.prototype,"status",2),Mt([a({type:Boolean,reflect:!0})],$t.prototype,"dismissForever",2),$t=Mt([_(pc)],$t);var uc=Object.defineProperty,fc=Object.getOwnPropertyDescriptor,ss=(r,t,s,i)=>{for(var e=i>1?void 0:i?fc(t,s):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 gc="sonic-alert-messages";let we=class extends K(w){constructor(){super(...arguments),this.size="md",this.background=!1,this.noIcon=!1,this.messages=[]}render(){var r;return(r=this.messages)!=null&&r.length?g`<div class="container">
3168
3168
  ${Dr(this.messages,t=>t.type=="public"?g`<sonic-alert
3169
3169
  status=${t.status||"default"}
3170
3170
  text=${x(t.content)}
@@ -3179,7 +3179,7 @@ ${this.value}</textarea
3179
3179
  grid-template-columns: minmax(0, 1fr);
3180
3180
  width: 100%;
3181
3181
  }
3182
- `],ss([a({type:String})],we.prototype,"size",2),ss([a({type:Boolean})],we.prototype,"background",2),ss([a({type:Boolean})],we.prototype,"noIcon",2),ss([a({type:Array})],we.prototype,"messages",2),we=ss([_(gc)],we);var mc=Object.defineProperty,bc=Object.getOwnPropertyDescriptor,Rr=(r,t,s,i)=>{for(var e=i>1?void 0:i?bc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&mc(t,s,e),e};const vc="sonic-toast-message-subscriber";let Ci=class extends K(w){constructor(){super(...arguments),this._messages=[]}get messages(){return this._messages}set messages(r){this._messages=r,this.messages&&r.forEach(t=>{t.type=="public"&&N.add({text:t.content||"",status:t.status})})}render(){return C}};Rr([a({type:Array})],Ci.prototype,"messages",1),Ci=Rr([_(vc)],Ci);var yc=Object.defineProperty,wc=Object.getOwnPropertyDescriptor,is=(r,t,s,i)=>{for(var e=i>1?void 0:i?wc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&yc(t,s,e),e};const _c="sonic-tooltip";let _e=class extends w{constructor(){super(...arguments),this.label="",this.disabled=!1,this.focusable=!1}connectedCallback(){this.focusable&&this.setAttribute("tabindex","0"),super.connectedCallback()}render(){const r=this.disabled||this.label==""?"disabled":"";return g`<div
3182
+ `],ss([a({type:String})],we.prototype,"size",2),ss([a({type:Boolean})],we.prototype,"background",2),ss([a({type:Boolean})],we.prototype,"noIcon",2),ss([a({type:Array})],we.prototype,"messages",2),we=ss([_(gc)],we);var mc=Object.defineProperty,bc=Object.getOwnPropertyDescriptor,Rr=(r,t,s,i)=>{for(var e=i>1?void 0:i?bc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&mc(t,s,e),e};const vc="sonic-toast-message-subscriber";let Ci=class extends K(w){constructor(){super(...arguments),this._messages=[]}get messages(){return this._messages}set messages(r){this._messages=r,this.messages&&r.forEach(t=>{t.type=="public"&&T.add({text:t.content||"",status:t.status})})}render(){return C}};Rr([a({type:Array})],Ci.prototype,"messages",1),Ci=Rr([_(vc)],Ci);var yc=Object.defineProperty,wc=Object.getOwnPropertyDescriptor,is=(r,t,s,i)=>{for(var e=i>1?void 0:i?wc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&yc(t,s,e),e};const _c="sonic-tooltip";let _e=class extends w{constructor(){super(...arguments),this.label="",this.disabled=!1,this.focusable=!1}connectedCallback(){this.focusable&&this.setAttribute("tabindex","0"),super.connectedCallback()}render(){const r=this.disabled||this.label==""?"disabled":"";return g`<div
3183
3183
  data-tooltip-text="${this.label.trim().replace("&nbsp;"," ")}"
3184
3184
  class="tooltip ${r}"
3185
3185
  >
@@ -3283,7 +3283,7 @@ ${this.value}</textarea
3283
3283
  bottom: 0;
3284
3284
  left: var(--sc-tooltip-position);
3285
3285
  }
3286
- `],is([a({type:String})],_e.prototype,"label",2),is([a({type:String,reflect:!0})],_e.prototype,"placement",2),is([a({type:Boolean})],_e.prototype,"disabled",2),is([a({type:Boolean})],_e.prototype,"focusable",2),_e=is([_(_c)],_e);var xc=Object.defineProperty,Pc=Object.getOwnPropertyDescriptor,Mt=(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 $c="sonic-divider";let Ct=class extends w{constructor(){super(...arguments),this.label="",this.align="center",this.vertical=!1,this.noMargin=!1,this.dashed=!1,this.dotted=!1}firstUpdated(r){var t,s;super.firstUpdated(r),(this.label||(t=this.slotNodes)!=null&&t.length)&&((s=this.divider)==null||s.classList.add("has-text"))}render(){return g`<div part="divider">
3286
+ `],is([a({type:String})],_e.prototype,"label",2),is([a({type:String,reflect:!0})],_e.prototype,"placement",2),is([a({type:Boolean})],_e.prototype,"disabled",2),is([a({type:Boolean})],_e.prototype,"focusable",2),_e=is([_(_c)],_e);var xc=Object.defineProperty,Pc=Object.getOwnPropertyDescriptor,It=(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 $c="sonic-divider";let Ct=class extends w{constructor(){super(...arguments),this.label="",this.align="center",this.vertical=!1,this.noMargin=!1,this.dashed=!1,this.dotted=!1}firstUpdated(r){var t,s;super.firstUpdated(r),(this.label||(t=this.slotNodes)!=null&&t.length)&&((s=this.divider)==null||s.classList.add("has-text"))}render(){return g`<div part="divider">
3287
3287
  <span class="text">${F(this.label?this.label:"")}<slot></slot></span>
3288
3288
  </div>`}};Ct.styles=[$`
3289
3289
  :host {
@@ -3411,7 +3411,7 @@ ${this.value}</textarea
3411
3411
  :host([dashed]) {
3412
3412
  --sc-divider-border-style: dashed;
3413
3413
  }
3414
- `],Mt([it({flatten:!0})],Ct.prototype,"slotNodes",2),Mt([ie("div")],Ct.prototype,"divider",2),Mt([a({type:String})],Ct.prototype,"label",2),Mt([a({type:String,reflect:!0})],Ct.prototype,"size",2),Mt([a({type:String,reflect:!0})],Ct.prototype,"align",2),Mt([a({type:Boolean,reflect:!0})],Ct.prototype,"vertical",2),Mt([a({type:Boolean,reflect:!0})],Ct.prototype,"noMargin",2),Mt([a({type:Boolean,reflect:!0})],Ct.prototype,"dashed",2),Mt([a({type:Boolean,reflect:!0})],Ct.prototype,"dotted",2),Ct=Mt([_($c)],Ct);var Cc=Object.defineProperty,Ac=Object.getOwnPropertyDescriptor,Sc=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ac(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Cc(t,s,e),e};const Oc="sonic-card-header-description";let Ai=class extends w{render(){return g`
3414
+ `],It([it({flatten:!0})],Ct.prototype,"slotNodes",2),It([ie("div")],Ct.prototype,"divider",2),It([a({type:String})],Ct.prototype,"label",2),It([a({type:String,reflect:!0})],Ct.prototype,"size",2),It([a({type:String,reflect:!0})],Ct.prototype,"align",2),It([a({type:Boolean,reflect:!0})],Ct.prototype,"vertical",2),It([a({type:Boolean,reflect:!0})],Ct.prototype,"noMargin",2),It([a({type:Boolean,reflect:!0})],Ct.prototype,"dashed",2),It([a({type:Boolean,reflect:!0})],Ct.prototype,"dotted",2),Ct=It([_($c)],Ct);var Cc=Object.defineProperty,Ac=Object.getOwnPropertyDescriptor,Sc=(r,t,s,i)=>{for(var e=i>1?void 0:i?Ac(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Cc(t,s,e),e};const Oc="sonic-card-header-description";let Ai=class extends w{render(){return g`
3415
3415
  <div>
3416
3416
  <slot></slot>
3417
3417
  </div>
@@ -3647,9 +3647,9 @@ ${this.value}</textarea
3647
3647
  :host([noBorder]) th {
3648
3648
  border-bottom: none;
3649
3649
  }
3650
- `],Pe([a({type:Number})],Bt.prototype,"colSpan",2),Pe([a({type:Number})],Bt.prototype,"rowSpan",2),Pe([a({type:String})],Bt.prototype,"align",2),Pe([a({type:String})],Bt.prototype,"minWidth",2),Pe([a({type:String})],Bt.prototype,"maxWidth",2),Pe([a({type:String})],Bt.prototype,"width",2),Bt=Pe([_(Zc)],Bt);var Yc=Object.defineProperty,Gc=Object.getOwnPropertyDescriptor,ee=(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&&Yc(t,s,e),e};const Qc="sonic-td";let It=class extends w{render(){const r={textAlign:this.align,verticalAlign:this.vAlign,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return g`<td part="td" style=${ut(r)} colspan=${x(this.colSpan)} rowspan=${x(this.rowSpan)}>
3650
+ `],Pe([a({type:Number})],Bt.prototype,"colSpan",2),Pe([a({type:Number})],Bt.prototype,"rowSpan",2),Pe([a({type:String})],Bt.prototype,"align",2),Pe([a({type:String})],Bt.prototype,"minWidth",2),Pe([a({type:String})],Bt.prototype,"maxWidth",2),Pe([a({type:String})],Bt.prototype,"width",2),Bt=Pe([_(Zc)],Bt);var Yc=Object.defineProperty,Gc=Object.getOwnPropertyDescriptor,ee=(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&&Yc(t,s,e),e};const Qc="sonic-td";let jt=class extends w{render(){const r={textAlign:this.align,verticalAlign:this.vAlign,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return g`<td part="td" style=${ut(r)} colspan=${x(this.colSpan)} rowspan=${x(this.rowSpan)}>
3651
3651
  <slot></slot>
3652
- </td>`}};It.styles=[Oi,$`
3652
+ </td>`}};jt.styles=[Oi,$`
3653
3653
  :host {
3654
3654
  display: contents;
3655
3655
  }
@@ -3662,7 +3662,7 @@ ${this.value}</textarea
3662
3662
  border-right: var(--sc-table-td-border-r, none);
3663
3663
  border-left: var(--sc-table-td-border-l, none);
3664
3664
  }
3665
- `],ee([a({type:Number})],It.prototype,"colSpan",2),ee([a({type:Number})],It.prototype,"rowSpan",2),ee([a({type:String})],It.prototype,"align",2),ee([a({type:String})],It.prototype,"vAlign",2),ee([a({type:String})],It.prototype,"minWidth",2),ee([a({type:String})],It.prototype,"maxWidth",2),ee([a({type:String})],It.prototype,"width",2),It=ee([_(Qc)],It);var Xc=Object.defineProperty,Jc=Object.getOwnPropertyDescriptor,th=(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&&Xc(t,s,e),e};const eh="sonic-thead";let Di=class extends w{render(){return g`<slot></slot>`}};Di.styles=[$`
3665
+ `],ee([a({type:Number})],jt.prototype,"colSpan",2),ee([a({type:Number})],jt.prototype,"rowSpan",2),ee([a({type:String})],jt.prototype,"align",2),ee([a({type:String})],jt.prototype,"vAlign",2),ee([a({type:String})],jt.prototype,"minWidth",2),ee([a({type:String})],jt.prototype,"maxWidth",2),ee([a({type:String})],jt.prototype,"width",2),jt=ee([_(Qc)],jt);var Xc=Object.defineProperty,Jc=Object.getOwnPropertyDescriptor,th=(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&&Xc(t,s,e),e};const eh="sonic-thead";let Di=class extends w{render(){return g`<slot></slot>`}};Di.styles=[$`
3666
3666
  :host {
3667
3667
  display: table-header-group;
3668
3668
  }
@@ -3706,7 +3706,7 @@ ${this.value}</textarea
3706
3706
  <slot></slot>
3707
3707
  </div>
3708
3708
  </div>
3709
- `}};se.styles=[Ge,Ot,$`
3709
+ `}};se.styles=[Ge,Dt,$`
3710
3710
  :host {
3711
3711
  --sc-table-fw: var(--sc-font-weight-base);
3712
3712
  --sc-table-fst: var(--sc-font-style-base);
@@ -3747,4 +3747,4 @@ ${this.value}</textarea
3747
3747
  --sc-table-td-border-b: var(--sc-border-width) solid
3748
3748
  var(--sc-table-border-color);
3749
3749
  }
3750
- `],Te([a({type:String,reflect:!0})],se.prototype,"size",2),Te([a({type:Boolean,reflect:!0})],se.prototype,"bordered",2),Te([a({type:Boolean,reflect:!0})],se.prototype,"rounded",2),Te([a({type:Boolean,reflect:!0})],se.prototype,"noCustomScroll",2),Te([a({type:String})],se.prototype,"maxHeight",2),se=Te([_(mh)],se);var bh=Object.defineProperty,vh=Object.getOwnPropertyDescriptor,Ms=(r,t,s,i)=>{for(var e=i>1?void 0:i?vh(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&bh(t,s,e),e};const yh="sonic-captcha";let ns=class extends Kt(w){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=et.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();delete this.formPublisher.captchaAction,delete this.formPublisher.captchaMethod,window.grecaptcha.ready(()=>{window.grecaptcha.execute(this.key,{action:t+"//"+r}).then(e=>{this.formPublisher&&(this.formPublisher.captchaToken=e)})})}render(){return g` <slot></slot> `}};Ms([a()],ns.prototype,"key",2),Ms([a()],ns.prototype,"action",2),Ms([a({type:Number})],ns.prototype,"zIndex",2),ns=Ms([_(yh)],ns),window.queueMicrotask=window.queueMicrotask||function(r){Promise.resolve().then(r).catch(t=>setTimeout(()=>{throw t}))};function wh(r){this.__connectedCallbackCalls__||(this.__connectedCallbackCalls__=new Set),this.__connectedCallbackCalls__.add(r)}function _h(r){this.__disconnectedCallbackCalls__||(this.__disconnectedCallbackCalls__=new Set),this.__disconnectedCallbackCalls__.add(r)}function Hr(r){if(r.__is__setSubscribable__)return;r.__is__setSubscribable__=!0,r.__onConnected__=wh,r.__onDisconnected__=_h;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 xh(r){const t=r.split(".");if(t.length==0)return function(){};const s=t.shift()||"";let i=T.get(s);return i=Ze.traverse(i,t),function(e,o){if(!e)return;let n;Hr(e),e.__onConnected__(l=>{n=c=>{l[o]=c},i.onAssign(n)}),e.__onDisconnected__(()=>{i.offAssign(n)})}}function Ph(...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 l=T.get(n);l=Ze.traverse(l,o);const c=new Set,h=d=>{t[i]=d,t.filter(f=>f!==null).length==r.length&&c.forEach(f=>f(...t))};s.push({publisher:l,onAssign:h,callbacks:c})}return function(i,e,o){Hr(i);let n;i.__onConnected__(l=>{for(const c of s)n=o.value.bind(l),c.callbacks.add(n),c.publisher.onAssign(c.onAssign)}),i.__onDisconnected__(()=>{for(const l of s)l.callbacks.delete(n),l.publisher.offAssign(l.onAssign)})}}window["concorde-decorator-subscriber"]=window["concorde-decorator-subscriber"]||{},window["concorde-decorator-subscriber"]={bind:xh,onAssing:Ph},window["concorde-directives-data-provider"]=window["concorde-directives-data-provider"]||{},window["concorde-directives-data-provider"]={dp:nr,dataProvider:Co,sub:Po,subscribe:xo,get:$o,set:Ao};const $h=N,Ch=j;window["concorde-components"]=window["concorde-components"]||{},window["concorde-components"]={SonicToast:$h,SonicModal:Ch};const Ah=window;Ah.concordeIsLoaded=!0,window.dispatchEvent(new CustomEvent("concorde-loaded"))});
3750
+ `],Te([a({type:String,reflect:!0})],se.prototype,"size",2),Te([a({type:Boolean,reflect:!0})],se.prototype,"bordered",2),Te([a({type:Boolean,reflect:!0})],se.prototype,"rounded",2),Te([a({type:Boolean,reflect:!0})],se.prototype,"noCustomScroll",2),Te([a({type:String})],se.prototype,"maxHeight",2),se=Te([_(mh)],se);var bh=Object.defineProperty,vh=Object.getOwnPropertyDescriptor,Ms=(r,t,s,i)=>{for(var e=i>1?void 0:i?vh(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&bh(t,s,e),e};const yh="sonic-captcha";let ns=class extends Kt(w){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=et.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();delete this.formPublisher.captchaAction,delete this.formPublisher.captchaMethod,window.grecaptcha.ready(()=>{window.grecaptcha.execute(this.key,{action:t+"//"+r}).then(e=>{this.formPublisher&&(this.formPublisher.captchaToken=e)})})}render(){return g` <slot></slot> `}};Ms([a()],ns.prototype,"key",2),Ms([a()],ns.prototype,"action",2),Ms([a({type:Number})],ns.prototype,"zIndex",2),ns=Ms([_(yh)],ns),window.queueMicrotask=window.queueMicrotask||function(r){Promise.resolve().then(r).catch(t=>setTimeout(()=>{throw t}))};function wh(r){this.__connectedCallbackCalls__||(this.__connectedCallbackCalls__=new Set),this.__connectedCallbackCalls__.add(r)}function _h(r){this.__disconnectedCallbackCalls__||(this.__disconnectedCallbackCalls__=new Set),this.__disconnectedCallbackCalls__.add(r)}function Hr(r){if(r.__is__setSubscribable__)return;r.__is__setSubscribable__=!0,r.__onConnected__=wh,r.__onDisconnected__=_h;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 xh(r){const t=r.split(".");if(t.length==0)return function(){};const s=t.shift()||"";let i=M.get(s);return i=Ze.traverse(i,t),function(e,o){if(!e)return;let n;Hr(e),e.__onConnected__(l=>{n=c=>{l[o]=c},i.onAssign(n)}),e.__onDisconnected__(()=>{i.offAssign(n)})}}function Ph(...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 l=M.get(n);l=Ze.traverse(l,o);const c=new Set,h=d=>{t[i]=d,t.filter(f=>f!==null).length==r.length&&c.forEach(f=>f(...t))};s.push({publisher:l,onAssign:h,callbacks:c})}return function(i,e,o){Hr(i);let n;i.__onConnected__(l=>{for(const c of s)n=o.value.bind(l),c.callbacks.add(n),c.publisher.onAssign(c.onAssign)}),i.__onDisconnected__(()=>{for(const l of s)l.callbacks.delete(n),l.publisher.offAssign(l.onAssign)})}}window["concorde-decorator-subscriber"]=window["concorde-decorator-subscriber"]||{},window["concorde-decorator-subscriber"]={bind:xh,onAssing:Ph},window["concorde-directives-data-provider"]=window["concorde-directives-data-provider"]||{},window["concorde-directives-data-provider"]={dp:nr,dataProvider:Co,sub:Po,subscribe:xo,get:$o,set:Ao};const $h=T,Ch=j;window["concorde-components"]=window["concorde-components"]||{},window["concorde-components"]={SonicToast:$h,SonicModal:Ch};const Ah=window;Ah.concordeIsLoaded=!0,window.dispatchEvent(new CustomEvent("concorde-loaded"))});