@quandis/qbo4.ui-bridge 4.0.1-CI-20241017-213800 → 4.0.1-CI-20241019-181546
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.
- package/package.json +3 -3
- package/wwwroot/js/esm/ui-bridge.js +3 -2
- package/wwwroot/js/esm/ui-bridge.min.js +2 -2
- package/wwwroot/js/esm/ui-bridge.min.js.map +1 -1
- package/wwwroot/js/qbo4.ui-bridge.js +3 -2
- package/wwwroot/js/qbo4.ui-bridge.min.js +2 -2
- package/wwwroot/js/qbo4.ui-bridge.min.js.map +1 -1
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
${e}
|
|
81
81
|
</qbo-popover>
|
|
82
82
|
</div>
|
|
83
|
-
</slot>`}};Et([mt({type:String}),Rt("design:type",Object)],Mt.prototype,"aDropdownClass",void 0),Et([mt({type:String}),Rt("design:type",Object)],Mt.prototype,"buttonPrimaryClass",void 0),Et([mt({type:String}),Rt("design:type",Object)],Mt.prototype,"buttonPrimaryDropdownClass",void 0),Et([mt({type:String}),Rt("design:type",Object)],Mt.prototype,"buttonType",void 0),Et([mt({type:Object,attribute:!1}),Rt("design:type",Object)],Mt.prototype,"data",void 0),Et([mt({type:String}),Rt("design:type",Object)],Mt.prototype,"divButtonGroupClass",void 0),Et([mt({type:String}),Rt("design:type",Object)],Mt.prototype,"divFormActionClass",void 0),Et([mt({type:String}),Rt("design:type",Object)],Mt.prototype,"divSectionHeaderClass",void 0),Et([mt({type:String}),Rt("design:type",Object)],Mt.prototype,"dropdownToggle",void 0),Et([mt({type:String}),Rt("design:type",Object)],Mt.prototype,"editLabel",void 0),Et([mt({type:String}),Rt("design:type",Object)],Mt.prototype,"helpIcon",void 0),Et([mt({type:String}),Rt("design:type",Object)],Mt.prototype,"helpText",void 0),Et([mt({type:String}),Rt("design:type",Object)],Mt.prototype,"historyIcon",void 0),Et([mt({type:String}),Rt("design:type",Object)],Mt.prototype,"historyText",void 0),Et([mt({type:String}),Rt("design:type",Object)],Mt.prototype,"infoButtonClass",void 0),Et([mt({type:String}),Rt("design:type",Object)],Mt.prototype,"infoIconClass",void 0),Et([mt({type:String}),Rt("design:type",Object)],Mt.prototype,"infoTitle",void 0),Et([mt({type:String}),Rt("design:type",Object)],Mt.prototype,"popoverClass",void 0),Et([mt({type:String}),Rt("design:type",Object)],Mt.prototype,"spanEditClass",void 0),Et([mt({type:String}),Rt("design:type",Object)],Mt.prototype,"ulDropdownClass",void 0),Et([mt(),Rt("design:type",Object)],Mt.prototype,"type",void 0),Et([mt({type:Boolean}),Rt("design:type",Object)],Mt.prototype,"renderInHost",void 0),Mt=Et([dt("qbo-form-edit")],Mt);var Lt,Dt=function(e,t,o,r){var n,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,r);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,o,a):n(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},It=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Pt=class extends bt{static{Lt=this}static{this.formAssociated=!0}constructor(){super(),this.value=new FormData,this.template="",this.name="",this.data=null,this.templateNode=null,this.handleFormChange=e=>{const t=e.target;t.matches("input, select, textarea")&&t.name&&!t.assignedSlot&&(this.value.set(`${this.name}${t.name}`,t.value),console.trace(`${this.name}${t.name} was set to ${t.value}`)),this.internals.setFormValue(this.value),this.dispatchEvent(new CustomEvent("qbo-form-update",{bubbles:!0,composed:!0,detail:{formData:this.value}}))},this.augment=e=>{if(e.stopPropagation(),console.log(e),e instanceof CustomEvent&&e.detail.formData instanceof FormData)for(let[t,o]of e.detail.formData.entries())this.value.set(t,o),console.log(`Added ${t}=${o} to ${this.name}`);this.internals.setFormValue(this.value),this.dispatchEvent(new CustomEvent("qbo-form-update",{bubbles:!0,composed:!0,detail:{formData:this.value}}))},this.internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.templateNode=document.getElementById(this.template),this.templateNode&&(this.appendChild(this.templateNode.content.cloneNode(!0)),this.innerHTML=R(this.innerHTML,this.data)),this.shadowRoot?.addEventListener("change",this.handleFormChange),this.shadowRoot?.addEventListener("qbo-form-update",this.augment)}disconnectedCallback(){super.disconnectedCallback(),this.shadowRoot?.removeEventListener("change",this.handleFormChange),this.shadowRoot?.removeEventListener("qbo-form-update",this.augment)}updated(e){super.updated(e),this.establishFormData()}render(){return Ue`<slot></slot>`}establishFormData(){const e=this.shadowRoot?.querySelectorAll("input, select, textarea");if(!e||0===e?.length)return;const t=Array.from(e).filter((e=>!e.assignedSlot&&(e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof Lt)&&e.name));t.forEach((e=>{const t=e;if(t instanceof HTMLSelectElement)this.value.set(`${this.name}${t.name}`,t.value);else if(t instanceof HTMLTextAreaElement)this.value.set(`${this.name}${t.name}`,t.value);else if(t instanceof Lt)for(let[e,o]of t.value.entries())this.value.set(`${this.name}${e}`,o);else t instanceof HTMLInputElement&&("checkbox"===t.type||"radio"===t.type?t.checked&&this.value.set(`${this.name}${t.name}`,t.value):this.value.set(`${this.name}${t.name}`,t.value))})),this.internals.setFormValue(this.value),console.trace(`Set ${this.name} values to `,this.value)}};Dt([mt({type:FormData}),It("design:type",FormData)],Pt.prototype,"value",void 0),Dt([mt({type:String}),It("design:type",Object)],Pt.prototype,"template",void 0),Dt([mt({type:String}),It("design:type",Object)],Pt.prototype,"name",void 0),Dt([mt({type:Object}),It("design:type",Object)],Pt.prototype,"data",void 0),Pt=Lt=Dt([dt("qbo-form-element"),It("design:paramtypes",[])],Pt);const Ht=new Map;Ht.set("arrow-left",Fe`<path fill-rule="evenodd" d="M15 8a.5.5 0 0 0-.5-.5H2.707l3.147-3.146a.5.5 0 1 0-.708-.708l-4 4a.5.5 0 0 0 0 .708l4 4a.5.5 0 0 0 .708-.708L2.707 8.5H14.5A.5.5 0 0 0 15 8"/>`),Ht.set("arrow-left-circle",Fe`<path fill-rule="evenodd" d="M1 8a7 7 0 1 0 14 0A7 7 0 0 0 1 8m15 0A8 8 0 1 1 0 8a8 8 0 0 1 16 0m-4.5-.5a.5.5 0 0 1 0 1H5.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L5.707 7.5z"/>`),Ht.set("arrow-left-circle-fill",Fe`<path d="M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0m3.5 7.5a.5.5 0 0 1 0 1H5.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L5.707 7.5z"/>`),Ht.set("arrow-right",Fe`<path fill-rule="evenodd" d="M5 8a.5.5 0 0 1 .5-.5h11.293L13.646 4.354a.5.5 0 1 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L16.793 8.5H5.5A.5.5 0 0 1 5 8z"/>`),Ht.set("arrow-right-circle",Fe`<path fill-rule="evenodd" d="M16 8a8 8 0 1 0-16 0 8 8 0 0 0 16 0zM8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zm2.854 8.354a.5.5 0 0 1-.708 0L8.5 8.707V11a.5.5 0 0 1-1 0V8.707L5.854 9.354a.5.5 0 1 1-.708-.708l3-3a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708z"/>`),Ht.set("arrow-right-circle-fill",Fe`<path d="M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.5 8.5a.5.5 0 0 1-.5.5H5.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L5.707 8.5H11.5a.5.5 0 0 1 .5.5z"/>`),Ht.set("arrow-up",Fe` <path fill-rule="evenodd" d="M8 15a.5.5 0 0 0 .5-.5V2.707l3.146 3.147a.5.5 0 0 0 .708-.708l-4-4a.5.5 0 0 0-.708 0l-4 4a.5.5 0 1 0 .708.708L7.5 2.707V14.5a.5.5 0 0 0 .5.5"/>`),Ht.set("arrow-up-circle",Fe`<path fill-rule="evenodd" d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zM8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zm-.5 10a.5.5 0 0 1 1 0V5.707L10.646 7.854a.5.5 0 1 1-.708.708l-3-3a.5.5 0 0 1 0-.708l-3 3a.5.5 0 0 1-.708-.708L7.293 5.707V11z"/>`),Ht.set("arrow-up-circle-fill",Fe`<path d="M16 8A8 8 0 1 0 0 8a8 8 0 0 0 16 0zM7.5 4a.5.5 0 0 1 1 0v5.793L9.854 7.854a.5.5 0 1 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 .708-.708L7.5 9.793V4z"/>`),Ht.set("arrow-down",Fe` <path fill-rule="evenodd" d="M8 1a.5.5 0 0 1 .5.5v11.793l3.146-3.147a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L7.5 13.293V1.5A.5.5 0 0 1 8 1"/>`),Ht.set("arrow-down-circle",Fe`<path fill-rule="evenodd" d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zM8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zm.5 10a.5.5 0 0 1-1 0V5.707L5.354 7.854a.5.5 0 1 1-.708-.708l3-3a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L8.5 5.707V11z"/>`),Ht.set("folder",Fe`<path d="M1 3.5A1.5 1.5 0 0 1 2.5 2h2.764c.958 0 1.76.56 2.311 1.184C7.985 3.648 8.48 4 9 4h4.5A1.5 1.5 0 0 1 15 5.5v7a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 1 12.5zM2.5 3a.5.5 0 0 0-.5.5V6h12v-.5a.5.5 0 0 0-.5-.5H9c-.964 0-1.71-.629-2.174-1.154C6.374 3.334 5.82 3 5.264 3zM14 7H2v5.5a.5.5 0 0 0 .5.5h11a.5.5 0 0 0 .5-.5z"/>`),Ht.set("folder-open",Fe`<path d="M1 3.5A1.5 1.5 0 0 1 2.5 2h2.764c.958 0 1.76.56 2.311 1.184C7.985 3.648 8.48 4 9 4h4.5A1.5 1.5 0 0 1 15 5.5v.64c.57.265.94.876.856 1.546l-.64 5.124A2.5 2.5 0 0 1 12.733 15H3.266a2.5 2.5 0 0 1-2.481-2.19l-.64-5.124A1.5 1.5 0 0 1 1 6.14zM2 6h12v-.5a.5.5 0 0 0-.5-.5H9c-.964 0-1.71-.629-2.174-1.154C6.374 3.334 5.82 3 5.264 3H2.5a.5.5 0 0 0-.5.5zm-.367 1a.5.5 0 0 0-.496.562l.64 5.124A1.5 1.5 0 0 0 3.266 14h9.468a1.5 1.5 0 0 0 1.489-1.314l.64-5.124A.5.5 0 0 0 14.367 7z"/>`),Ht.set("spreadsheet",Fe`<path d="M14 14V4.5L9.5 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2M9.5 3A1.5 1.5 0 0 0 11 4.5h2V9H3V2a1 1 0 0 1 1-1h5.5zM3 12v-2h2v2zm0 1h2v2H4a1 1 0 0 1-1-1zm3 2v-2h3v2zm4 0v-2h3v1a1 1 0 0 1-1 1zm3-3h-3v-2h3zm-7 0v-2h3v2z"/>`),Ht.set("pdf",Fe`<path d="M14 14V4.5L9.5 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2M9.5 3A1.5 1.5 0 0 0 11 4.5h2V14a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h5.5z"/><path d="M4.603 14.087a.8.8 0 0 1-.438-.42c-.195-.388-.13-.776.08-1.102.198-.307.526-.568.897-.787a7.7 7.7 0 0 1 1.482-.645 20 20 0 0 0 1.062-2.227 7.3 7.3 0 0 1-.43-1.295c-.086-.4-.119-.796-.046-1.136.075-.354.274-.672.65-.823.192-.077.4-.12.602-.077a.7.7 0 0 1 .477.365c.088.164.12.356.127.538.007.188-.012.396-.047.614-.084.51-.27 1.134-.52 1.794a11 11 0 0 0 .98 1.686 5.8 5.8 0 0 1 1.334.05c.364.066.734.195.96.465.12.144.193.32.2.518.007.192-.047.382-.138.563a1.04 1.04 0 0 1-.354.416.86.86 0 0 1-.51.138c-.331-.014-.654-.196-.933-.417a5.7 5.7 0 0 1-.911-.95 11.7 11.7 0 0 0-1.997.406 11.3 11.3 0 0 1-1.02 1.51c-.292.35-.609.656-.927.787a.8.8 0 0 1-.58.029m1.379-1.901q-.25.115-.459.238c-.328.194-.541.383-.647.547-.094.145-.096.25-.04.361q.016.032.026.044l.035-.012c.137-.056.355-.235.635-.572a8 8 0 0 0 .45-.606m1.64-1.33a13 13 0 0 1 1.01-.193 12 12 0 0 1-.51-.858 21 21 0 0 1-.5 1.05zm2.446.45q.226.245.435.41c.24.19.407.253.498.256a.1.1 0 0 0 .07-.015.3.3 0 0 0 .094-.125.44.44 0 0 0 .059-.2.1.1 0 0 0-.026-.063c-.052-.062-.2-.152-.518-.209a4 4 0 0 0-.612-.053zM8.078 7.8a7 7 0 0 0 .2-.828q.046-.282.038-.465a.6.6 0 0 0-.032-.198.5.5 0 0 0-.145.04c-.087.035-.158.106-.196.283-.04.192-.03.469.046.822q.036.167.09.346z"/>`),Ht.set("image",Fe`<path d="M6.502 7a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3"/><path d="M14 14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h5.5L14 4.5zM4 1a1 1 0 0 0-1 1v10l2.224-2.224a.5.5 0 0 1 .61-.075L8 11l2.157-3.02a.5.5 0 0 1 .76-.063L13 10V4.5h-2A1.5 1.5 0 0 1 9.5 3V1z"/>`),Ht.set("document",Fe`<path d="M5.485 6.879a.5.5 0 1 0-.97.242l1.5 6a.5.5 0 0 0 .967.01L8 9.402l1.018 3.73a.5.5 0 0 0 .967-.01l1.5-6a.5.5 0 0 0-.97-.242l-1.036 4.144-.997-3.655a.5.5 0 0 0-.964 0l-.997 3.655L5.485 6.88z"/><path d="M14 14V4.5L9.5 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2M9.5 3A1.5 1.5 0 0 0 11 4.5h2V14a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h5.5z"/>`),Ht.set("audio",Fe`<path d="M11 6.64a1 1 0 0 0-1.243-.97l-1 .25A1 1 0 0 0 8 6.89v4.306A2.6 2.6 0 0 0 7 11c-.5 0-.974.134-1.338.377-.36.24-.662.628-.662 1.123s.301.883.662 1.123c.364.243.839.377 1.338.377s.974-.134 1.338-.377c.36-.24.662-.628.662-1.123V8.89l2-.5z"/><path d="M14 14V4.5L9.5 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2M9.5 3A1.5 1.5 0 0 0 11 4.5h2V14a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h5.5z"/>`),Ht.set("video",Fe`<path fill-rule="evenodd" d="M0 5a2 2 0 0 1 2-2h7.5a2 2 0 0 1 1.983 1.738l3.11-1.382A1 1 0 0 1 16 4.269v7.462a1 1 0 0 1-1.406.913l-3.111-1.382A2 2 0 0 1 9.5 13H2a2 2 0 0 1-2-2zm11.5 5.175 3.5 1.556V4.269l-3.5 1.556zM2 4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h7.5a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1z"/>`),Ht.set("upload",Fe` <path d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5"/><path d="M7.646 1.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L8.5 2.707V11.5a.5.5 0 0 1-1 0V2.707L5.354 4.854a.5.5 0 1 1-.708-.708z"/>`),Ht.set("download",Fe`<path d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5"/><path d="M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708z"/>`),Ht.set("text",Fe`<path d="M5 4a.5.5 0 0 0 0 1h6a.5.5 0 0 0 0-1zm-.5 2.5A.5.5 0 0 1 5 6h6a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5M5 8a.5.5 0 0 0 0 1h6a.5.5 0 0 0 0-1zm0 2a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1z"/><path d="M2 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2zm10-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1"/>`),Ht.set("pin",Fe`<path d="M4.146.146A.5.5 0 0 1 4.5 0h7a.5.5 0 0 1 .5.5c0 .68-.342 1.174-.646 1.479-.126.125-.25.224-.354.298v4.431l.078.048c.203.127.476.314.751.555C12.36 7.775 13 8.527 13 9.5a.5.5 0 0 1-.5.5h-4v4.5c0 .276-.224 1.5-.5 1.5s-.5-1.224-.5-1.5V10h-4a.5.5 0 0 1-.5-.5c0-.973.64-1.725 1.17-2.189A6 6 0 0 1 5 6.708V2.277a3 3 0 0 1-.354-.298C4.342 1.674 4 1.179 4 .5a.5.5 0 0 1 .146-.354m1.58 1.408-.002-.001zm-.002-.001.002.001A.5.5 0 0 1 6 2v5a.5.5 0 0 1-.276.447h-.002l-.012.007-.054.03a5 5 0 0 0-.827.58c-.318.278-.585.596-.725.936h7.792c-.14-.34-.407-.658-.725-.936a5 5 0 0 0-.881-.61l-.012-.006h-.002A.5.5 0 0 1 10 7V2a.5.5 0 0 1 .295-.458 1.8 1.8 0 0 0 .351-.271c.08-.08.155-.17.214-.271H5.14q.091.15.214.271a1.8 1.8 0 0 0 .37.282"/>`),Ht.set("pin-angle",Fe`<path d="M9.828.722a.5.5 0 0 1 .354.146l4.95 4.95a.5.5 0 0 1 0 .707c-.48.48-1.072.588-1.503.588-.177 0-.335-.018-.46-.039l-3.134 3.134a6 6 0 0 1 .16 1.013c.046.702-.032 1.687-.72 2.375a.5.5 0 0 1-.707 0l-2.829-2.828-3.182 3.182c-.195.195-1.219.902-1.414.707s.512-1.22.707-1.414l3.182-3.182-2.828-2.829a.5.5 0 0 1 0-.707c.688-.688 1.673-.767 2.375-.72a6 6 0 0 1 1.013.16l3.134-3.133a3 3 0 0 1-.04-.461c0-.43.108-1.022.589-1.503a.5.5 0 0 1 .353-.146m.122 2.112v-.002zm0-.002v.002a.5.5 0 0 1-.122.51L6.293 6.878a.5.5 0 0 1-.511.12H5.78l-.014-.004a5 5 0 0 0-.288-.076 5 5 0 0 0-.765-.116c-.422-.028-.836.008-1.175.15l5.51 5.509c.141-.34.177-.753.149-1.175a5 5 0 0 0-.192-1.054l-.004-.013v-.001a.5.5 0 0 1 .12-.512l3.536-3.535a.5.5 0 0 1 .532-.115l.096.022c.087.017.208.034.344.034q.172.002.343-.04L9.927 2.028q-.042.172-.04.343a1.8 1.8 0 0 0 .062.46z"/>`),Ht.set("pin-angle-fill",Fe`<path d="M9.828.722a.5.5 0 0 1 .354.146l4.95 4.95a.5.5 0 0 1 0 .707c-.48.48-1.072.588-1.503.588-.177 0-.335-.018-.46-.039l-3.134 3.134a6 6 0 0 1 .16 1.013c.046.702-.032 1.687-.72 2.375a.5.5 0 0 1-.707 0l-2.829-2.828-3.182 3.182c-.195.195-1.219.902-1.414.707s.512-1.22.707-1.414l3.182-3.182-2.828-2.829a.5.5 0 0 1 0-.707c.688-.688 1.673-.767 2.375-.72a6 6 0 0 1 1.013.16l3.134-3.133a3 3 0 0 1-.04-.461c0-.43.108-1.022.589-1.503a.5.5 0 0 1 .353-.146" />`),Ht.set("check-square",Fe` <path d="M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"/><path d="M10.97 4.97a.75.75 0 0 1 1.071 1.05l-3.992 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425z"/>`),Ht.set("check-square-fill",Fe` <path d="M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zm10.03 4.97a.75.75 0 0 1 .011 1.05l-3.992 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.75.75 0 0 1 1.08-.022z"/>`),Ht.set("square",Fe`<path d="M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z" />`),Ht.set("square-fill",Fe` <path d="M0 2a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2z"/>`),Ht.set("minus-square",Fe`<path d="M14 1H2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM1 2a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2z"/><path d="M4.5 8a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5z"/>`),Ht.set("minus-square-fill",Fe`<path d="M14 0H2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zM4 7.5a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5z"/>`),Ht.set("plus-square",Fe`<path d="M14 1H2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM1 2a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2z"/><path d="M8 4.5a.5.5 0 0 1 .5.5v2.5H11a.5.5 0 0 1 0 1H8.5V11a.5.5 0 0 1-1 0V8.5H5a.5.5 0 0 1 0-1h2.5V5a.5.5 0 0 1 .5-.5z"/>`),Ht.set("plus-square-fill",Fe`<path d="M14 0H2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zM8 4.5a.5.5 0 0 1 .5.5v2.5H11a.5.5 0 0 1 0 1H8.5V11a.5.5 0 0 1-1 0V8.5H5a.5.5 0 0 1 0-1h2.5V5a.5.5 0 0 1 .5-.5z"/>`),Ht.set("square-half",Fe`<path d="M8 14V2H2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h6z"/><path d="M8 1H2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V2a2 2 0 0 0-2-1zM2 0h6a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2z"/>`),Ht.set("x-square",Fe`<path d="M14 1H2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM1 2a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2z"/><path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 1 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/>`),Ht.set("x-square-fill",Fe`<path d="M14 0H2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zM9.854 10.146a.5.5 0 0 1-.708 0L8 9.707l-1.146 1.147a.5.5 0 0 1-.708-.708L7.293 9 6.146 7.854a.5.5 0 1 1 .708-.708L8 8.293l1.146-1.147a.5.5 0 0 1 .708.708L8.707 9l1.147 1.146a.5.5 0 0 1 0 .708z"/>`),Ht.set("cut",Fe`<path d="M3.5 3.5c-.614-.884-.074-1.962.858-2.5L8 7.226 11.642 1c.932.538 1.472 1.616.858 2.5L8.81 8.61l1.556 2.661a2.5 2.5 0 1 1-.794.637L8 9.73l-1.572 2.177a2.5 2.5 0 1 1-.794-.637L7.19 8.61zm2.5 10a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0m7 0a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0"/>`),Ht.set("copy",Fe`<path fill-rule="evenodd" d="M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1z"/>`),Ht.set("paste",Fe`<path d="M9.5 0a.5.5 0 0 1 .5.5.5.5 0 0 0 .5.5.5.5 0 0 1 .5.5V2a.5.5 0 0 1-.5.5h-5A.5.5 0 0 1 5 2v-.5a.5.5 0 0 1 .5-.5.5.5 0 0 0 .5-.5.5.5 0 0 1 .5-.5z"/><path d="M3 2.5a.5.5 0 0 1 .5-.5H4a.5.5 0 0 0 0-1h-.5A1.5 1.5 0 0 0 2 2.5v12A1.5 1.5 0 0 0 3.5 16h9a1.5 1.5 0 0 0 1.5-1.5v-12A1.5 1.5 0 0 0 12.5 1H12a.5.5 0 0 0 0 1h.5a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5z"/><path d="M8.5 6.5a.5.5 0 0 0-1 0V8H6a.5.5 0 0 0 0 1h1.5v1.5a.5.5 0 0 0 1 0V9H10a.5.5 0 0 0 0-1H8.5z"/>`),Ht.set("delete",Fe` <path d="M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5m2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5m3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0z"/><path d="M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1zM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4zM2.5 3h11V2h-11z"/>`),Ht.set("refresh",Fe`<path d="M11.534 7h3.932a.25.25 0 0 1 .192.41l-1.966 2.36a.25.25 0 0 1-.384 0l-1.966-2.36a.25.25 0 0 1 .192-.41m-11 2h3.932a.25.25 0 0 0 .192-.41L2.692 6.23a.25.25 0 0 0-.384 0L.342 8.59A.25.25 0 0 0 .534 9"/><path fill-rule="evenodd" d="M8 3c-1.552 0-2.94.707-3.857 1.818a.5.5 0 1 1-.771-.636A6.002 6.002 0 0 1 13.917 7H12.9A5 5 0 0 0 8 3M3.1 9a5.002 5.002 0 0 0 8.757 2.182.5.5 0 1 1 .771.636A6.002 6.002 0 0 1 2.083 9z"/>`),Ht.set("error",Fe` <path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"/><path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708"/>`),Ht.set("warning",Fe`<path d="M7.938 2.016A.13.13 0 0 1 8.002 2a.13.13 0 0 1 .063.016.15.15 0 0 1 .054.057l6.857 11.667c.036.06.035.124.002.183a.2.2 0 0 1-.054.06.1.1 0 0 1-.066.017H1.146a.1.1 0 0 1-.066-.017.2.2 0 0 1-.054-.06.18.18 0 0 1 .002-.183L7.884 2.073a.15.15 0 0 1 .054-.057m1.044-.45a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767z"/><path d="M7.002 12a1 1 0 1 1 2 0 1 1 0 0 1-2 0M7.1 5.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0z"/>`),Ht.set("info",Fe` <path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"/><path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0"/>`),Ht.set("debug",Fe`<path d="M4.355.522a.5.5 0 0 1 .623.333l.291.956A5 5 0 0 1 8 1c1.007 0 1.946.298 2.731.811l.29-.956a.5.5 0 1 1 .957.29l-.41 1.352A5 5 0 0 1 13 6h.5a.5.5 0 0 0 .5-.5V5a.5.5 0 0 1 1 0v.5A1.5 1.5 0 0 1 13.5 7H13v1h1.5a.5.5 0 0 1 0 1H13v1h.5a1.5 1.5 0 0 1 1.5 1.5v.5a.5.5 0 1 1-1 0v-.5a.5.5 0 0 0-.5-.5H13a5 5 0 0 1-10 0h-.5a.5.5 0 0 0-.5.5v.5a.5.5 0 1 1-1 0v-.5A1.5 1.5 0 0 1 2.5 10H3V9H1.5a.5.5 0 0 1 0-1H3V7h-.5A1.5 1.5 0 0 1 1 5.5V5a.5.5 0 0 1 1 0v.5a.5.5 0 0 0 .5.5H3c0-1.364.547-2.601 1.432-3.503l-.41-1.352a.5.5 0 0 1 .333-.623M4 7v4a4 4 0 0 0 3.5 3.97V7zm4.5 0v7.97A4 4 0 0 0 12 11V7zM12 6a4 4 0 0 0-1.334-2.982A3.98 3.98 0 0 0 8 2a3.98 3.98 0 0 0-2.667 1.018A4 4 0 0 0 4 6z"/>`),Ht.set("trace",Fe`<path fill-rule="evenodd" d="M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5m0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5m0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5"/>`),Ht.set("qbo",Fe`<svg height="16" width="16" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="10" r="10" /><circle cx="17" cy="32" r="10" /><circle cx="43" cy="32" r="10" /></svg>`);var Bt=function(e,t,o,r){var n,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,r);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,o,a):n(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},Nt=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Vt=class extends bt{constructor(){super(...arguments),this.type="icon",this.icon=null,this.height=16,this.width=16,this.viewbox="0 0 16 16",this.fill="currentColor",this.backgroundColor=null,this.unknown="warning",this.disabled=!1,this.renderInHost=!0}connectedCallback(){this.type??="icon",super.connectedCallback()}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}renderAll(e){return Ue`<div class="container">
|
|
83
|
+
</slot>`}};Et([mt({type:String}),Rt("design:type",Object)],Mt.prototype,"aDropdownClass",void 0),Et([mt({type:String}),Rt("design:type",Object)],Mt.prototype,"buttonPrimaryClass",void 0),Et([mt({type:String}),Rt("design:type",Object)],Mt.prototype,"buttonPrimaryDropdownClass",void 0),Et([mt({type:String}),Rt("design:type",Object)],Mt.prototype,"buttonType",void 0),Et([mt({type:Object,attribute:!1}),Rt("design:type",Object)],Mt.prototype,"data",void 0),Et([mt({type:String}),Rt("design:type",Object)],Mt.prototype,"divButtonGroupClass",void 0),Et([mt({type:String}),Rt("design:type",Object)],Mt.prototype,"divFormActionClass",void 0),Et([mt({type:String}),Rt("design:type",Object)],Mt.prototype,"divSectionHeaderClass",void 0),Et([mt({type:String}),Rt("design:type",Object)],Mt.prototype,"dropdownToggle",void 0),Et([mt({type:String}),Rt("design:type",Object)],Mt.prototype,"editLabel",void 0),Et([mt({type:String}),Rt("design:type",Object)],Mt.prototype,"helpIcon",void 0),Et([mt({type:String}),Rt("design:type",Object)],Mt.prototype,"helpText",void 0),Et([mt({type:String}),Rt("design:type",Object)],Mt.prototype,"historyIcon",void 0),Et([mt({type:String}),Rt("design:type",Object)],Mt.prototype,"historyText",void 0),Et([mt({type:String}),Rt("design:type",Object)],Mt.prototype,"infoButtonClass",void 0),Et([mt({type:String}),Rt("design:type",Object)],Mt.prototype,"infoIconClass",void 0),Et([mt({type:String}),Rt("design:type",Object)],Mt.prototype,"infoTitle",void 0),Et([mt({type:String}),Rt("design:type",Object)],Mt.prototype,"popoverClass",void 0),Et([mt({type:String}),Rt("design:type",Object)],Mt.prototype,"spanEditClass",void 0),Et([mt({type:String}),Rt("design:type",Object)],Mt.prototype,"ulDropdownClass",void 0),Et([mt(),Rt("design:type",Object)],Mt.prototype,"type",void 0),Et([mt({type:Boolean}),Rt("design:type",Object)],Mt.prototype,"renderInHost",void 0),Mt=Et([dt("qbo-form-edit")],Mt);var Lt,Dt=function(e,t,o,r){var n,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,r);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,o,a):n(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},It=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Pt=class extends bt{static{Lt=this}static{this.formAssociated=!0}constructor(){super(),this.value=new FormData,this.template="",this.name="",this.data=null,this.templateNode=null,this.handleFormChange=e=>{const t=e.target;t.matches("input, select, textarea")&&t.name&&!t.assignedSlot&&(this.value.set(`${this.name}${t.name}`,t.value),console.trace(`${this.name}${t.name} was set to ${t.value}`)),this.internals.setFormValue(this.value),this.dispatchEvent(new CustomEvent("qbo-form-update",{bubbles:!0,composed:!0,detail:{formData:this.value}}))},this.augment=e=>{if(e.stopPropagation(),console.log(e),e instanceof CustomEvent&&e.detail.formData instanceof FormData)for(let[t,o]of e.detail.formData.entries())this.value.set(t,o),console.log(`Added ${t}=${o} to ${this.name}`);this.internals.setFormValue(this.value),this.dispatchEvent(new CustomEvent("qbo-form-update",{bubbles:!0,composed:!0,detail:{formData:this.value}}))},this.internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.templateNode=document.getElementById(this.template),this.templateNode&&(this.appendChild(this.templateNode.content.cloneNode(!0)),this.innerHTML=R(this.innerHTML,this.data)),this.shadowRoot?.addEventListener("change",this.handleFormChange),this.shadowRoot?.addEventListener("qbo-form-update",this.augment)}disconnectedCallback(){super.disconnectedCallback(),this.shadowRoot?.removeEventListener("change",this.handleFormChange),this.shadowRoot?.removeEventListener("qbo-form-update",this.augment)}updated(e){super.updated(e),this.establishFormData()}render(){return Ue`<slot></slot>`}establishFormData(){const e=this.shadowRoot?.querySelectorAll("input, select, textarea");if(!e||0===e?.length)return;const t=Array.from(e).filter((e=>!e.assignedSlot&&(e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof Lt)&&e.name));t.forEach((e=>{const t=e;if(t instanceof HTMLSelectElement)this.value.set(`${this.name}${t.name}`,t.value);else if(t instanceof HTMLTextAreaElement)this.value.set(`${this.name}${t.name}`,t.value);else if(t instanceof Lt)for(let[e,o]of t.value.entries())this.value.set(`${this.name}${e}`,o);else t instanceof HTMLInputElement&&("checkbox"===t.type||"radio"===t.type?t.checked&&this.value.set(`${this.name}${t.name}`,t.value):this.value.set(`${this.name}${t.name}`,t.value))})),this.internals.setFormValue(this.value),console.trace(`Set ${this.name} values to `,this.value)}};Dt([mt({type:FormData}),It("design:type",FormData)],Pt.prototype,"value",void 0),Dt([mt({type:String}),It("design:type",Object)],Pt.prototype,"template",void 0),Dt([mt({type:String}),It("design:type",Object)],Pt.prototype,"name",void 0),Dt([mt({type:Object}),It("design:type",Object)],Pt.prototype,"data",void 0),Pt=Lt=Dt([dt("qbo-form-element"),It("design:paramtypes",[])],Pt);const Ht=new Map;Ht.set("arrow-left",Fe`<path fill-rule="evenodd" d="M15 8a.5.5 0 0 0-.5-.5H2.707l3.147-3.146a.5.5 0 1 0-.708-.708l-4 4a.5.5 0 0 0 0 .708l4 4a.5.5 0 0 0 .708-.708L2.707 8.5H14.5A.5.5 0 0 0 15 8"/>`),Ht.set("arrow-left-circle",Fe`<path fill-rule="evenodd" d="M1 8a7 7 0 1 0 14 0A7 7 0 0 0 1 8m15 0A8 8 0 1 1 0 8a8 8 0 0 1 16 0m-4.5-.5a.5.5 0 0 1 0 1H5.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L5.707 7.5z"/>`),Ht.set("arrow-left-circle-fill",Fe`<path d="M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0m3.5 7.5a.5.5 0 0 1 0 1H5.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L5.707 7.5z"/>`),Ht.set("arrow-right",Fe`<path fill-rule="evenodd" d="M5 8a.5.5 0 0 1 .5-.5h11.293L13.646 4.354a.5.5 0 1 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L16.793 8.5H5.5A.5.5 0 0 1 5 8z"/>`),Ht.set("arrow-right-circle",Fe`<path fill-rule="evenodd" d="M16 8a8 8 0 1 0-16 0 8 8 0 0 0 16 0zM8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zm2.854 8.354a.5.5 0 0 1-.708 0L8.5 8.707V11a.5.5 0 0 1-1 0V8.707L5.854 9.354a.5.5 0 1 1-.708-.708l3-3a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708z"/>`),Ht.set("arrow-right-circle-fill",Fe`<path d="M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.5 8.5a.5.5 0 0 1-.5.5H5.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L5.707 8.5H11.5a.5.5 0 0 1 .5.5z"/>`),Ht.set("arrow-up",Fe` <path fill-rule="evenodd" d="M8 15a.5.5 0 0 0 .5-.5V2.707l3.146 3.147a.5.5 0 0 0 .708-.708l-4-4a.5.5 0 0 0-.708 0l-4 4a.5.5 0 1 0 .708.708L7.5 2.707V14.5a.5.5 0 0 0 .5.5"/>`),Ht.set("arrow-up-circle",Fe`<path fill-rule="evenodd" d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zM8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zm-.5 10a.5.5 0 0 1 1 0V5.707L10.646 7.854a.5.5 0 1 1-.708.708l-3-3a.5.5 0 0 1 0-.708l-3 3a.5.5 0 0 1-.708-.708L7.293 5.707V11z"/>`),Ht.set("arrow-up-circle-fill",Fe`<path d="M16 8A8 8 0 1 0 0 8a8 8 0 0 0 16 0zM7.5 4a.5.5 0 0 1 1 0v5.793L9.854 7.854a.5.5 0 1 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 .708-.708L7.5 9.793V4z"/>`),Ht.set("arrow-down",Fe` <path fill-rule="evenodd" d="M8 1a.5.5 0 0 1 .5.5v11.793l3.146-3.147a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L7.5 13.293V1.5A.5.5 0 0 1 8 1"/>`),Ht.set("arrow-down-circle",Fe`<path fill-rule="evenodd" d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zM8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zm.5 10a.5.5 0 0 1-1 0V5.707L5.354 7.854a.5.5 0 1 1-.708-.708l3-3a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L8.5 5.707V11z"/>`),Ht.set("folder",Fe`<path d="M1 3.5A1.5 1.5 0 0 1 2.5 2h2.764c.958 0 1.76.56 2.311 1.184C7.985 3.648 8.48 4 9 4h4.5A1.5 1.5 0 0 1 15 5.5v7a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 1 12.5zM2.5 3a.5.5 0 0 0-.5.5V6h12v-.5a.5.5 0 0 0-.5-.5H9c-.964 0-1.71-.629-2.174-1.154C6.374 3.334 5.82 3 5.264 3zM14 7H2v5.5a.5.5 0 0 0 .5.5h11a.5.5 0 0 0 .5-.5z"/>`),Ht.set("folder-open",Fe`<path d="M1 3.5A1.5 1.5 0 0 1 2.5 2h2.764c.958 0 1.76.56 2.311 1.184C7.985 3.648 8.48 4 9 4h4.5A1.5 1.5 0 0 1 15 5.5v.64c.57.265.94.876.856 1.546l-.64 5.124A2.5 2.5 0 0 1 12.733 15H3.266a2.5 2.5 0 0 1-2.481-2.19l-.64-5.124A1.5 1.5 0 0 1 1 6.14zM2 6h12v-.5a.5.5 0 0 0-.5-.5H9c-.964 0-1.71-.629-2.174-1.154C6.374 3.334 5.82 3 5.264 3H2.5a.5.5 0 0 0-.5.5zm-.367 1a.5.5 0 0 0-.496.562l.64 5.124A1.5 1.5 0 0 0 3.266 14h9.468a1.5 1.5 0 0 0 1.489-1.314l.64-5.124A.5.5 0 0 0 14.367 7z"/>`),Ht.set("spreadsheet",Fe`<path d="M14 14V4.5L9.5 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2M9.5 3A1.5 1.5 0 0 0 11 4.5h2V9H3V2a1 1 0 0 1 1-1h5.5zM3 12v-2h2v2zm0 1h2v2H4a1 1 0 0 1-1-1zm3 2v-2h3v2zm4 0v-2h3v1a1 1 0 0 1-1 1zm3-3h-3v-2h3zm-7 0v-2h3v2z"/>`),Ht.set("pdf",Fe`<path d="M14 14V4.5L9.5 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2M9.5 3A1.5 1.5 0 0 0 11 4.5h2V14a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h5.5z"/><path d="M4.603 14.087a.8.8 0 0 1-.438-.42c-.195-.388-.13-.776.08-1.102.198-.307.526-.568.897-.787a7.7 7.7 0 0 1 1.482-.645 20 20 0 0 0 1.062-2.227 7.3 7.3 0 0 1-.43-1.295c-.086-.4-.119-.796-.046-1.136.075-.354.274-.672.65-.823.192-.077.4-.12.602-.077a.7.7 0 0 1 .477.365c.088.164.12.356.127.538.007.188-.012.396-.047.614-.084.51-.27 1.134-.52 1.794a11 11 0 0 0 .98 1.686 5.8 5.8 0 0 1 1.334.05c.364.066.734.195.96.465.12.144.193.32.2.518.007.192-.047.382-.138.563a1.04 1.04 0 0 1-.354.416.86.86 0 0 1-.51.138c-.331-.014-.654-.196-.933-.417a5.7 5.7 0 0 1-.911-.95 11.7 11.7 0 0 0-1.997.406 11.3 11.3 0 0 1-1.02 1.51c-.292.35-.609.656-.927.787a.8.8 0 0 1-.58.029m1.379-1.901q-.25.115-.459.238c-.328.194-.541.383-.647.547-.094.145-.096.25-.04.361q.016.032.026.044l.035-.012c.137-.056.355-.235.635-.572a8 8 0 0 0 .45-.606m1.64-1.33a13 13 0 0 1 1.01-.193 12 12 0 0 1-.51-.858 21 21 0 0 1-.5 1.05zm2.446.45q.226.245.435.41c.24.19.407.253.498.256a.1.1 0 0 0 .07-.015.3.3 0 0 0 .094-.125.44.44 0 0 0 .059-.2.1.1 0 0 0-.026-.063c-.052-.062-.2-.152-.518-.209a4 4 0 0 0-.612-.053zM8.078 7.8a7 7 0 0 0 .2-.828q.046-.282.038-.465a.6.6 0 0 0-.032-.198.5.5 0 0 0-.145.04c-.087.035-.158.106-.196.283-.04.192-.03.469.046.822q.036.167.09.346z"/>`),Ht.set("image",Fe`<path d="M6.502 7a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3"/><path d="M14 14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h5.5L14 4.5zM4 1a1 1 0 0 0-1 1v10l2.224-2.224a.5.5 0 0 1 .61-.075L8 11l2.157-3.02a.5.5 0 0 1 .76-.063L13 10V4.5h-2A1.5 1.5 0 0 1 9.5 3V1z"/>`),Ht.set("document",Fe`<path d="M5.485 6.879a.5.5 0 1 0-.97.242l1.5 6a.5.5 0 0 0 .967.01L8 9.402l1.018 3.73a.5.5 0 0 0 .967-.01l1.5-6a.5.5 0 0 0-.97-.242l-1.036 4.144-.997-3.655a.5.5 0 0 0-.964 0l-.997 3.655L5.485 6.88z"/><path d="M14 14V4.5L9.5 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2M9.5 3A1.5 1.5 0 0 0 11 4.5h2V14a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h5.5z"/>`),Ht.set("audio",Fe`<path d="M11 6.64a1 1 0 0 0-1.243-.97l-1 .25A1 1 0 0 0 8 6.89v4.306A2.6 2.6 0 0 0 7 11c-.5 0-.974.134-1.338.377-.36.24-.662.628-.662 1.123s.301.883.662 1.123c.364.243.839.377 1.338.377s.974-.134 1.338-.377c.36-.24.662-.628.662-1.123V8.89l2-.5z"/><path d="M14 14V4.5L9.5 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2M9.5 3A1.5 1.5 0 0 0 11 4.5h2V14a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h5.5z"/>`),Ht.set("video",Fe`<path fill-rule="evenodd" d="M0 5a2 2 0 0 1 2-2h7.5a2 2 0 0 1 1.983 1.738l3.11-1.382A1 1 0 0 1 16 4.269v7.462a1 1 0 0 1-1.406.913l-3.111-1.382A2 2 0 0 1 9.5 13H2a2 2 0 0 1-2-2zm11.5 5.175 3.5 1.556V4.269l-3.5 1.556zM2 4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h7.5a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1z"/>`),Ht.set("upload",Fe` <path d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5"/><path d="M7.646 1.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L8.5 2.707V11.5a.5.5 0 0 1-1 0V2.707L5.354 4.854a.5.5 0 1 1-.708-.708z"/>`),Ht.set("download",Fe`<path d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5"/><path d="M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708z"/>`),Ht.set("text",Fe`<path d="M5 4a.5.5 0 0 0 0 1h6a.5.5 0 0 0 0-1zm-.5 2.5A.5.5 0 0 1 5 6h6a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5M5 8a.5.5 0 0 0 0 1h6a.5.5 0 0 0 0-1zm0 2a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1z"/><path d="M2 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2zm10-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1"/>`),Ht.set("pin",Fe`<path d="M4.146.146A.5.5 0 0 1 4.5 0h7a.5.5 0 0 1 .5.5c0 .68-.342 1.174-.646 1.479-.126.125-.25.224-.354.298v4.431l.078.048c.203.127.476.314.751.555C12.36 7.775 13 8.527 13 9.5a.5.5 0 0 1-.5.5h-4v4.5c0 .276-.224 1.5-.5 1.5s-.5-1.224-.5-1.5V10h-4a.5.5 0 0 1-.5-.5c0-.973.64-1.725 1.17-2.189A6 6 0 0 1 5 6.708V2.277a3 3 0 0 1-.354-.298C4.342 1.674 4 1.179 4 .5a.5.5 0 0 1 .146-.354m1.58 1.408-.002-.001zm-.002-.001.002.001A.5.5 0 0 1 6 2v5a.5.5 0 0 1-.276.447h-.002l-.012.007-.054.03a5 5 0 0 0-.827.58c-.318.278-.585.596-.725.936h7.792c-.14-.34-.407-.658-.725-.936a5 5 0 0 0-.881-.61l-.012-.006h-.002A.5.5 0 0 1 10 7V2a.5.5 0 0 1 .295-.458 1.8 1.8 0 0 0 .351-.271c.08-.08.155-.17.214-.271H5.14q.091.15.214.271a1.8 1.8 0 0 0 .37.282"/>`),Ht.set("pin-angle",Fe`<path d="M9.828.722a.5.5 0 0 1 .354.146l4.95 4.95a.5.5 0 0 1 0 .707c-.48.48-1.072.588-1.503.588-.177 0-.335-.018-.46-.039l-3.134 3.134a6 6 0 0 1 .16 1.013c.046.702-.032 1.687-.72 2.375a.5.5 0 0 1-.707 0l-2.829-2.828-3.182 3.182c-.195.195-1.219.902-1.414.707s.512-1.22.707-1.414l3.182-3.182-2.828-2.829a.5.5 0 0 1 0-.707c.688-.688 1.673-.767 2.375-.72a6 6 0 0 1 1.013.16l3.134-3.133a3 3 0 0 1-.04-.461c0-.43.108-1.022.589-1.503a.5.5 0 0 1 .353-.146m.122 2.112v-.002zm0-.002v.002a.5.5 0 0 1-.122.51L6.293 6.878a.5.5 0 0 1-.511.12H5.78l-.014-.004a5 5 0 0 0-.288-.076 5 5 0 0 0-.765-.116c-.422-.028-.836.008-1.175.15l5.51 5.509c.141-.34.177-.753.149-1.175a5 5 0 0 0-.192-1.054l-.004-.013v-.001a.5.5 0 0 1 .12-.512l3.536-3.535a.5.5 0 0 1 .532-.115l.096.022c.087.017.208.034.344.034q.172.002.343-.04L9.927 2.028q-.042.172-.04.343a1.8 1.8 0 0 0 .062.46z"/>`),Ht.set("pin-angle-fill",Fe`<path d="M9.828.722a.5.5 0 0 1 .354.146l4.95 4.95a.5.5 0 0 1 0 .707c-.48.48-1.072.588-1.503.588-.177 0-.335-.018-.46-.039l-3.134 3.134a6 6 0 0 1 .16 1.013c.046.702-.032 1.687-.72 2.375a.5.5 0 0 1-.707 0l-2.829-2.828-3.182 3.182c-.195.195-1.219.902-1.414.707s.512-1.22.707-1.414l3.182-3.182-2.828-2.829a.5.5 0 0 1 0-.707c.688-.688 1.673-.767 2.375-.72a6 6 0 0 1 1.013.16l3.134-3.133a3 3 0 0 1-.04-.461c0-.43.108-1.022.589-1.503a.5.5 0 0 1 .353-.146" />`),Ht.set("headset",Fe`<path d="M8 1a5 5 0 0 0-5 5v1h1a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a6 6 0 1 1 12 0v6a2.5 2.5 0 0 1-2.5 2.5H9.366a1 1 0 0 1-.866.5h-1a1 1 0 1 1 0-2h1a1 1 0 0 1 .866.5H11.5A1.5 1.5 0 0 0 13 12h-1a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h1V6a5 5 0 0 0-5-5"/>`),Ht.set("check-square",Fe` <path d="M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"/><path d="M10.97 4.97a.75.75 0 0 1 1.071 1.05l-3.992 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425z"/>`),Ht.set("check-square-fill",Fe` <path d="M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zm10.03 4.97a.75.75 0 0 1 .011 1.05l-3.992 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.75.75 0 0 1 1.08-.022z"/>`),Ht.set("square",Fe`<path d="M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z" />`),Ht.set("square-fill",Fe` <path d="M0 2a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2z"/>`),Ht.set("minus-square",Fe`<path d="M14 1H2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM1 2a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2z"/><path d="M4.5 8a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5z"/>`),Ht.set("minus-square-fill",Fe`<path d="M14 0H2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zM4 7.5a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5z"/>`),Ht.set("plus-square",Fe`<path d="M14 1H2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM1 2a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2z"/><path d="M8 4.5a.5.5 0 0 1 .5.5v2.5H11a.5.5 0 0 1 0 1H8.5V11a.5.5 0 0 1-1 0V8.5H5a.5.5 0 0 1 0-1h2.5V5a.5.5 0 0 1 .5-.5z"/>`),Ht.set("plus-square-fill",Fe`<path d="M14 0H2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zM8 4.5a.5.5 0 0 1 .5.5v2.5H11a.5.5 0 0 1 0 1H8.5V11a.5.5 0 0 1-1 0V8.5H5a.5.5 0 0 1 0-1h2.5V5a.5.5 0 0 1 .5-.5z"/>`),Ht.set("square-half",Fe`<path d="M8 14V2H2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h6z"/><path d="M8 1H2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V2a2 2 0 0 0-2-1zM2 0h6a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2z"/>`),Ht.set("x-square",Fe`<path d="M14 1H2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM1 2a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2z"/><path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 1 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/>`),Ht.set("x-square-fill",Fe`<path d="M14 0H2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zM9.854 10.146a.5.5 0 0 1-.708 0L8 9.707l-1.146 1.147a.5.5 0 0 1-.708-.708L7.293 9 6.146 7.854a.5.5 0 1 1 .708-.708L8 8.293l1.146-1.147a.5.5 0 0 1 .708.708L8.707 9l1.147 1.146a.5.5 0 0 1 0 .708z"/>`),Ht.set("cut",Fe`<path d="M3.5 3.5c-.614-.884-.074-1.962.858-2.5L8 7.226 11.642 1c.932.538 1.472 1.616.858 2.5L8.81 8.61l1.556 2.661a2.5 2.5 0 1 1-.794.637L8 9.73l-1.572 2.177a2.5 2.5 0 1 1-.794-.637L7.19 8.61zm2.5 10a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0m7 0a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0"/>`),Ht.set("copy",Fe`<path fill-rule="evenodd" d="M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1z"/>`),Ht.set("paste",Fe`<path d="M9.5 0a.5.5 0 0 1 .5.5.5.5 0 0 0 .5.5.5.5 0 0 1 .5.5V2a.5.5 0 0 1-.5.5h-5A.5.5 0 0 1 5 2v-.5a.5.5 0 0 1 .5-.5.5.5 0 0 0 .5-.5.5.5 0 0 1 .5-.5z"/><path d="M3 2.5a.5.5 0 0 1 .5-.5H4a.5.5 0 0 0 0-1h-.5A1.5 1.5 0 0 0 2 2.5v12A1.5 1.5 0 0 0 3.5 16h9a1.5 1.5 0 0 0 1.5-1.5v-12A1.5 1.5 0 0 0 12.5 1H12a.5.5 0 0 0 0 1h.5a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5z"/><path d="M8.5 6.5a.5.5 0 0 0-1 0V8H6a.5.5 0 0 0 0 1h1.5v1.5a.5.5 0 0 0 1 0V9H10a.5.5 0 0 0 0-1H8.5z"/>`),Ht.set("delete",Fe` <path d="M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5m2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5m3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0z"/><path d="M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1zM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4zM2.5 3h11V2h-11z"/>`),Ht.set("refresh",Fe`<path d="M11.534 7h3.932a.25.25 0 0 1 .192.41l-1.966 2.36a.25.25 0 0 1-.384 0l-1.966-2.36a.25.25 0 0 1 .192-.41m-11 2h3.932a.25.25 0 0 0 .192-.41L2.692 6.23a.25.25 0 0 0-.384 0L.342 8.59A.25.25 0 0 0 .534 9"/><path fill-rule="evenodd" d="M8 3c-1.552 0-2.94.707-3.857 1.818a.5.5 0 1 1-.771-.636A6.002 6.002 0 0 1 13.917 7H12.9A5 5 0 0 0 8 3M3.1 9a5.002 5.002 0 0 0 8.757 2.182.5.5 0 1 1 .771.636A6.002 6.002 0 0 1 2.083 9z"/>`),Ht.set("error",Fe` <path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"/><path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708"/>`),Ht.set("warning",Fe`<path d="M7.938 2.016A.13.13 0 0 1 8.002 2a.13.13 0 0 1 .063.016.15.15 0 0 1 .054.057l6.857 11.667c.036.06.035.124.002.183a.2.2 0 0 1-.054.06.1.1 0 0 1-.066.017H1.146a.1.1 0 0 1-.066-.017.2.2 0 0 1-.054-.06.18.18 0 0 1 .002-.183L7.884 2.073a.15.15 0 0 1 .054-.057m1.044-.45a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767z"/><path d="M7.002 12a1 1 0 1 1 2 0 1 1 0 0 1-2 0M7.1 5.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0z"/>`),Ht.set("info",Fe` <path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"/><path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0"/>`),Ht.set("debug",Fe`<path d="M4.355.522a.5.5 0 0 1 .623.333l.291.956A5 5 0 0 1 8 1c1.007 0 1.946.298 2.731.811l.29-.956a.5.5 0 1 1 .957.29l-.41 1.352A5 5 0 0 1 13 6h.5a.5.5 0 0 0 .5-.5V5a.5.5 0 0 1 1 0v.5A1.5 1.5 0 0 1 13.5 7H13v1h1.5a.5.5 0 0 1 0 1H13v1h.5a1.5 1.5 0 0 1 1.5 1.5v.5a.5.5 0 1 1-1 0v-.5a.5.5 0 0 0-.5-.5H13a5 5 0 0 1-10 0h-.5a.5.5 0 0 0-.5.5v.5a.5.5 0 1 1-1 0v-.5A1.5 1.5 0 0 1 2.5 10H3V9H1.5a.5.5 0 0 1 0-1H3V7h-.5A1.5 1.5 0 0 1 1 5.5V5a.5.5 0 0 1 1 0v.5a.5.5 0 0 0 .5.5H3c0-1.364.547-2.601 1.432-3.503l-.41-1.352a.5.5 0 0 1 .333-.623M4 7v4a4 4 0 0 0 3.5 3.97V7zm4.5 0v7.97A4 4 0 0 0 12 11V7zM12 6a4 4 0 0 0-1.334-2.982A3.98 3.98 0 0 0 8 2a3.98 3.98 0 0 0-2.667 1.018A4 4 0 0 0 4 6z"/>`),Ht.set("trace",Fe`<path fill-rule="evenodd" d="M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5m0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5m0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5"/>`),Ht.set("qbo",Fe`<svg height="16" width="16" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="10" r="10" /><circle cx="17" cy="32" r="10" /><circle cx="43" cy="32" r="10" /></svg>`);var Bt=function(e,t,o,r){var n,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,r);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,o,a):n(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},Nt=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Vt=class extends bt{constructor(){super(...arguments),this.type="icon",this.icon=null,this.height=16,this.width=16,this.viewbox="0 0 16 16",this.fill="currentColor",this.backgroundColor=null,this.unknown="warning",this.disabled=!1,this.renderInHost=!0}connectedCallback(){this.type??="icon",super.connectedCallback()}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}renderAll(e){return Ue`<div class="container">
|
|
84
84
|
<div class="row">
|
|
85
85
|
${Array.from(Ht.keys()).map((t=>Ue`
|
|
86
86
|
<div class="col-md-4"> <!-- Divides into 3 columns on medium screens and larger -->
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
</div>
|
|
98
98
|
`))}
|
|
99
99
|
</div>
|
|
100
|
-
</div>`}renderIcon(e){return null==e.icon&&(console.warn("qbo-icon: icon attribute is required"),e.icon=e.unknown),Ht.has(e.icon)||(console.warn(`qbo-icon: icon attribute is not valid. Valid values are: ${Array.from(Ht.keys()).join(" ")}`),e.icon=e.unknown),Ue`<svg width="${e.width}" height="${e.width}" fill="${e.fill}" ?class=${e.getAttribute("class")} viewBox="${e.viewbox}">${e.backgroundColor?Fe`<rect width="${e.width}" height="${e.height}" fill="${e.backgroundColor}" />`:Fe``}${Ht.get(e.icon)}</svg>`}renderButton(e){return Ue`<button type="button" ?disabled=${e.disabled}>${e.renderIcon(e)}</button>`}render(){switch(this.type){case"icon":default:return this.renderIcon(this);case"button":return this.renderButton(this);case"all":return this.renderAll(this)}}};Bt([mt(),Nt("design:type",String)],Vt.prototype,"type",void 0),Bt([mt(),Nt("design:type",Object)],Vt.prototype,"icon",void 0),Bt([mt(),Nt("design:type",Number)],Vt.prototype,"height",void 0),Bt([mt(),Nt("design:type",Number)],Vt.prototype,"width",void 0),Bt([mt(),Nt("design:type",String)],Vt.prototype,"viewbox",void 0),Bt([mt(),Nt("design:type",String)],Vt.prototype,"fill",void 0),Bt([mt(),Nt("design:type",Object)],Vt.prototype,"backgroundColor",void 0),Bt([mt(),Nt("design:type",String)],Vt.prototype,"unknown",void 0),Bt([mt(),Nt("design:type",Boolean)],Vt.prototype,"disabled",void 0),Bt([mt({type:Boolean,reflect:!0}),Nt("design:type",Object)],Vt.prototype,"renderInHost",void 0),Vt=Bt([dt("qbo-icon")],Vt);var Gt,Ut=function(e,t,o,r){var n,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,r);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,o,a):n(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},Ft=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Wt=class extends bt{constructor(){super(...arguments),this.renderInHost=!0,this.continuous=!1,this.interimResults=!1,this.maxAlternatives=1,this.for="input",this.class="input-group-text bi bi-headset",this.activeClass="bg-primary-subtle",this._recognition=null,this.target=null,this.listening=!1}static{Gt=this}static{this.activeInstance=null}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.listen);const e=new(window.SpeechRecognition||window.webkitSpeechRecognition);e.continuous=this.continuous,e.interimResults=this.interimResults,e.maxAlternatives=this.maxAlternatives,e.onresult=e=>{this.onResult(e)},e.onspeechend=e=>{this.stop(e)},e.onerror=e=>{this.error(e)},this._recognition=e,this.target=document.getElementById(this.for)||this.querySelector(this.for)||this.parentElement?.querySelector(this.for),null==this.target&&console.log(`qbo-microphone: no target found for ${this.for}`)}disconnectedCallback(){this.removeEventListener("click",this.listen),super.disconnectedCallback()}onResult(e){const t=e.results[e.results.length-1][0].transcript;if(console.log("Result: "+t),null==this.target)return;const o=this.target;if(o instanceof HTMLInputElement)"radio"===o.type?o.value===t&&(o.checked=!0):this.continuous?o.value+=t:o.value=t;else if(o instanceof HTMLTextAreaElement)this.continuous?o.value+=t:o.value=t;else if(o instanceof HTMLSelectElement)for(let e=0;e<o.options.length;e++)if(o.options[e].value===t||o.options[e].text===t){o.selectedIndex=e;break}}listen(e){this.listening?this.stop(e):this.start()}start(){this.listening=!0,Gt.activeInstance=this,this.activeClass&&this.classList.add(this.activeClass),console.log("listening"),this._recognition.start()}stop(e){this.listening=!1,Gt.activeInstance=null,this.activeClass&&this.classList.remove(this.activeClass),console.log("stopped listening"),this._recognition.stop(),this._recognition.abort()}error(e){console.log("Error during speech recognition:",e)}render(){return Ue`<slot></slot>`}};Ut([mt({type:Boolean}),Ft("design:type",Object)],Wt.prototype,"renderInHost",void 0),Ut([mt({type:Boolean}),Ft("design:type",Object)],Wt.prototype,"continuous",void 0),Ut([mt({type:Boolean}),Ft("design:type",Object)],Wt.prototype,"interimResults",void 0),Ut([mt({type:Number}),Ft("design:type",Object)],Wt.prototype,"maxAlternatives",void 0),Ut([mt({type:String}),Ft("design:type",Object)],Wt.prototype,"for",void 0),Ut([mt({type:String}),Ft("design:type",Object)],Wt.prototype,"class",void 0),Ut([mt({type:String}),Ft("design:type",Object)],Wt.prototype,"activeClass",void 0),Wt=Gt=Ut([dt("qbo-microphone")],Wt);var Xt="top",Yt="bottom",Qt="right",Kt="left",Jt="auto",Zt=[Xt,Yt,Qt,Kt],eo="start",to="end",oo="clippingParents",ro="viewport",no="popper",io="reference",ao=Zt.reduce((function(e,t){return e.concat([t+"-"+eo,t+"-"+to])}),[]),lo=[].concat(Zt,[Jt]).reduce((function(e,t){return e.concat([t,t+"-"+eo,t+"-"+to])}),[]),so="beforeRead",bo="read",co="afterRead",fo="beforeMain",po="main",mo="afterMain",go="beforeWrite",uo="write",ho="afterWrite",vo=[so,bo,co,fo,po,mo,go,uo,ho];function xo(e){return e?(e.nodeName||"").toLowerCase():null}function wo(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function yo(e){return e instanceof wo(e).Element||e instanceof Element}function ko(e){return e instanceof wo(e).HTMLElement||e instanceof HTMLElement}function _o(e){return"undefined"!=typeof ShadowRoot&&(e instanceof wo(e).ShadowRoot||e instanceof ShadowRoot)}const qo={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var o=t.styles[e]||{},r=t.attributes[e]||{},n=t.elements[e];ko(n)&&xo(n)&&(Object.assign(n.style,o),Object.keys(r).forEach((function(e){var t=r[e];!1===t?n.removeAttribute(e):n.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],n=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:o[e]).reduce((function(e,t){return e[t]="",e}),{});ko(r)&&xo(r)&&(Object.assign(r.style,i),Object.keys(n).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function jo(e){return e.split("-")[0]}var zo=Math.max,Co=Math.min,$o=Math.round;function So(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Ao(){return!/^((?!chrome|android).)*safari/i.test(So())}function Oo(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1);var r=e.getBoundingClientRect(),n=1,i=1;t&&ko(e)&&(n=e.offsetWidth>0&&$o(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&$o(r.height)/e.offsetHeight||1);var a=(yo(e)?wo(e):window).visualViewport,l=!Ao()&&o,s=(r.left+(l&&a?a.offsetLeft:0))/n,b=(r.top+(l&&a?a.offsetTop:0))/i,c=r.width/n,d=r.height/i;return{width:c,height:d,top:b,right:s+c,bottom:b+d,left:s,x:s,y:b}}function Eo(e){var t=Oo(e),o=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:r}}function Ro(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&_o(o)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function To(e){return wo(e).getComputedStyle(e)}function Mo(e){return["table","td","th"].indexOf(xo(e))>=0}function Lo(e){return((yo(e)?e.ownerDocument:e.document)||window.document).documentElement}function Do(e){return"html"===xo(e)?e:e.assignedSlot||e.parentNode||(_o(e)?e.host:null)||Lo(e)}function Io(e){return ko(e)&&"fixed"!==To(e).position?e.offsetParent:null}function Po(e){for(var t=wo(e),o=Io(e);o&&Mo(o)&&"static"===To(o).position;)o=Io(o);return o&&("html"===xo(o)||"body"===xo(o)&&"static"===To(o).position)?t:o||function(e){var t=/firefox/i.test(So());if(/Trident/i.test(So())&&ko(e)&&"fixed"===To(e).position)return null;var o=Do(e);for(_o(o)&&(o=o.host);ko(o)&&["html","body"].indexOf(xo(o))<0;){var r=To(o);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return o;o=o.parentNode}return null}(e)||t}function Ho(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Bo(e,t,o){return zo(e,Co(t,o))}function No(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Vo(e,t){return t.reduce((function(t,o){return t[o]=e,t}),{})}const Go={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,o=e.state,r=e.name,n=e.options,i=o.elements.arrow,a=o.modifiersData.popperOffsets,l=jo(o.placement),s=Ho(l),b=[Kt,Qt].indexOf(l)>=0?"height":"width";if(i&&a){var c=function(e,t){return No("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Vo(e,Zt))}(n.padding,o),d=Eo(i),f="y"===s?Xt:Kt,p="y"===s?Yt:Qt,m=o.rects.reference[b]+o.rects.reference[s]-a[s]-o.rects.popper[b],g=a[s]-o.rects.reference[s],u=Po(i),h=u?"y"===s?u.clientHeight||0:u.clientWidth||0:0,v=m/2-g/2,x=c[f],w=h-d[b]-c[p],y=h/2-d[b]/2+v,k=Bo(x,y,w),_=s;o.modifiersData[r]=((t={})[_]=k,t.centerOffset=k-y,t)}},effect:function(e){var t=e.state,o=e.options.element,r=void 0===o?"[data-popper-arrow]":o;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Ro(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Uo(e){return e.split("-")[1]}var Fo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Wo(e){var t,o=e.popper,r=e.popperRect,n=e.placement,i=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,b=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,m=a.y,g=void 0===m?0:m,u="function"==typeof c?c({x:p,y:g}):{x:p,y:g};p=u.x,g=u.y;var h=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),x=Kt,w=Xt,y=window;if(b){var k=Po(o),_="clientHeight",q="clientWidth";k===wo(o)&&"static"!==To(k=Lo(o)).position&&"absolute"===l&&(_="scrollHeight",q="scrollWidth"),(n===Xt||(n===Kt||n===Qt)&&i===to)&&(w=Yt,g-=(d&&k===y&&y.visualViewport?y.visualViewport.height:k[_])-r.height,g*=s?1:-1),n!==Kt&&(n!==Xt&&n!==Yt||i!==to)||(x=Qt,p-=(d&&k===y&&y.visualViewport?y.visualViewport.width:k[q])-r.width,p*=s?1:-1)}var j,z=Object.assign({position:l},b&&Fo),C=!0===c?function(e,t){var o=e.x,r=e.y,n=t.devicePixelRatio||1;return{x:$o(o*n)/n||0,y:$o(r*n)/n||0}}({x:p,y:g},wo(o)):{x:p,y:g};return p=C.x,g=C.y,s?Object.assign({},z,((j={})[w]=v?"0":"",j[x]=h?"0":"",j.transform=(y.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",j)):Object.assign({},z,((t={})[w]=v?g+"px":"",t[x]=h?p+"px":"",t.transform="",t))}const Xo={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,o=e.options,r=o.gpuAcceleration,n=void 0===r||r,i=o.adaptive,a=void 0===i||i,l=o.roundOffsets,s=void 0===l||l,b={placement:jo(t.placement),variation:Uo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Wo(Object.assign({},b,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Wo(Object.assign({},b,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var Yo={passive:!0};const Qo={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,o=e.instance,r=e.options,n=r.scroll,i=void 0===n||n,a=r.resize,l=void 0===a||a,s=wo(t.elements.popper),b=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&b.forEach((function(e){e.addEventListener("scroll",o.update,Yo)})),l&&s.addEventListener("resize",o.update,Yo),function(){i&&b.forEach((function(e){e.removeEventListener("scroll",o.update,Yo)})),l&&s.removeEventListener("resize",o.update,Yo)}},data:{}};var Ko={left:"right",right:"left",bottom:"top",top:"bottom"};function Jo(e){return e.replace(/left|right|bottom|top/g,(function(e){return Ko[e]}))}var Zo={start:"end",end:"start"};function er(e){return e.replace(/start|end/g,(function(e){return Zo[e]}))}function tr(e){var t=wo(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function or(e){return Oo(Lo(e)).left+tr(e).scrollLeft}function rr(e){var t=To(e),o=t.overflow,r=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+n+r)}function nr(e){return["html","body","#document"].indexOf(xo(e))>=0?e.ownerDocument.body:ko(e)&&rr(e)?e:nr(Do(e))}function ir(e,t){var o;void 0===t&&(t=[]);var r=nr(e),n=r===(null==(o=e.ownerDocument)?void 0:o.body),i=wo(r),a=n?[i].concat(i.visualViewport||[],rr(r)?r:[]):r,l=t.concat(a);return n?l:l.concat(ir(Do(a)))}function ar(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function lr(e,t,o){return t===ro?ar(function(e,t){var o=wo(e),r=Lo(e),n=o.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(n){i=n.width,a=n.height;var b=Ao();(b||!b&&"fixed"===t)&&(l=n.offsetLeft,s=n.offsetTop)}return{width:i,height:a,x:l+or(e),y:s}}(e,o)):yo(t)?function(e,t){var o=Oo(e,!1,"fixed"===t);return o.top=o.top+e.clientTop,o.left=o.left+e.clientLeft,o.bottom=o.top+e.clientHeight,o.right=o.left+e.clientWidth,o.width=e.clientWidth,o.height=e.clientHeight,o.x=o.left,o.y=o.top,o}(t,o):ar(function(e){var t,o=Lo(e),r=tr(e),n=null==(t=e.ownerDocument)?void 0:t.body,i=zo(o.scrollWidth,o.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),a=zo(o.scrollHeight,o.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),l=-r.scrollLeft+or(e),s=-r.scrollTop;return"rtl"===To(n||o).direction&&(l+=zo(o.clientWidth,n?n.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(Lo(e)))}function sr(e){var t,o=e.reference,r=e.element,n=e.placement,i=n?jo(n):null,a=n?Uo(n):null,l=o.x+o.width/2-r.width/2,s=o.y+o.height/2-r.height/2;switch(i){case Xt:t={x:l,y:o.y-r.height};break;case Yt:t={x:l,y:o.y+o.height};break;case Qt:t={x:o.x+o.width,y:s};break;case Kt:t={x:o.x-r.width,y:s};break;default:t={x:o.x,y:o.y}}var b=i?Ho(i):null;if(null!=b){var c="y"===b?"height":"width";switch(a){case eo:t[b]=t[b]-(o[c]/2-r[c]/2);break;case to:t[b]=t[b]+(o[c]/2-r[c]/2)}}return t}function br(e,t){void 0===t&&(t={});var o=t,r=o.placement,n=void 0===r?e.placement:r,i=o.strategy,a=void 0===i?e.strategy:i,l=o.boundary,s=void 0===l?oo:l,b=o.rootBoundary,c=void 0===b?ro:b,d=o.elementContext,f=void 0===d?no:d,p=o.altBoundary,m=void 0!==p&&p,g=o.padding,u=void 0===g?0:g,h=No("number"!=typeof u?u:Vo(u,Zt)),v=f===no?io:no,x=e.rects.popper,w=e.elements[m?v:f],y=function(e,t,o,r){var n="clippingParents"===t?function(e){var t=ir(Do(e)),o=["absolute","fixed"].indexOf(To(e).position)>=0&&ko(e)?Po(e):e;return yo(o)?t.filter((function(e){return yo(e)&&Ro(e,o)&&"body"!==xo(e)})):[]}(e):[].concat(t),i=[].concat(n,[o]),a=i[0],l=i.reduce((function(t,o){var n=lr(e,o,r);return t.top=zo(n.top,t.top),t.right=Co(n.right,t.right),t.bottom=Co(n.bottom,t.bottom),t.left=zo(n.left,t.left),t}),lr(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}(yo(w)?w:w.contextElement||Lo(e.elements.popper),s,c,a),k=Oo(e.elements.reference),_=sr({reference:k,element:x,strategy:"absolute",placement:n}),q=ar(Object.assign({},x,_)),j=f===no?q:k,z={top:y.top-j.top+h.top,bottom:j.bottom-y.bottom+h.bottom,left:y.left-j.left+h.left,right:j.right-y.right+h.right},C=e.modifiersData.offset;if(f===no&&C){var $=C[n];Object.keys(z).forEach((function(e){var t=[Qt,Yt].indexOf(e)>=0?1:-1,o=[Xt,Yt].indexOf(e)>=0?"y":"x";z[e]+=$[o]*t}))}return z}const cr={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,o=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var n=o.mainAxis,i=void 0===n||n,a=o.altAxis,l=void 0===a||a,s=o.fallbackPlacements,b=o.padding,c=o.boundary,d=o.rootBoundary,f=o.altBoundary,p=o.flipVariations,m=void 0===p||p,g=o.allowedAutoPlacements,u=t.options.placement,h=jo(u),v=s||(h!==u&&m?function(e){if(jo(e)===Jt)return[];var t=Jo(e);return[er(e),t,er(t)]}(u):[Jo(u)]),x=[u].concat(v).reduce((function(e,o){return e.concat(jo(o)===Jt?function(e,t){void 0===t&&(t={});var o=t,r=o.placement,n=o.boundary,i=o.rootBoundary,a=o.padding,l=o.flipVariations,s=o.allowedAutoPlacements,b=void 0===s?lo:s,c=Uo(r),d=c?l?ao:ao.filter((function(e){return Uo(e)===c})):Zt,f=d.filter((function(e){return b.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,o){return t[o]=br(e,{placement:o,boundary:n,rootBoundary:i,padding:a})[jo(o)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:o,boundary:c,rootBoundary:d,padding:b,flipVariations:m,allowedAutoPlacements:g}):o)}),[]),w=t.rects.reference,y=t.rects.popper,k=new Map,_=!0,q=x[0],j=0;j<x.length;j++){var z=x[j],C=jo(z),$=Uo(z)===eo,S=[Xt,Yt].indexOf(C)>=0,A=S?"width":"height",O=br(t,{placement:z,boundary:c,rootBoundary:d,altBoundary:f,padding:b}),E=S?$?Qt:Kt:$?Yt:Xt;w[A]>y[A]&&(E=Jo(E));var R=Jo(E),T=[];if(i&&T.push(O[C]<=0),l&&T.push(O[E]<=0,O[R]<=0),T.every((function(e){return e}))){q=z,_=!1;break}k.set(z,T)}if(_)for(var M=function(e){var t=x.find((function(t){var o=k.get(t);if(o)return o.slice(0,e).every((function(e){return e}))}));if(t)return q=t,"break"},L=m?3:1;L>0&&"break"!==M(L);L--);t.placement!==q&&(t.modifiersData[r]._skip=!0,t.placement=q,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function dr(e,t,o){return void 0===o&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function fr(e){return[Xt,Qt,Yt,Kt].some((function(t){return e[t]>=0}))}const pr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,o=e.name,r=t.rects.reference,n=t.rects.popper,i=t.modifiersData.preventOverflow,a=br(t,{elementContext:"reference"}),l=br(t,{altBoundary:!0}),s=dr(a,r),b=dr(l,n,i),c=fr(s),d=fr(b);t.modifiersData[o]={referenceClippingOffsets:s,popperEscapeOffsets:b,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}},mr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,o=e.options,r=e.name,n=o.offset,i=void 0===n?[0,0]:n,a=lo.reduce((function(e,o){return e[o]=function(e,t,o){var r=jo(e),n=[Kt,Xt].indexOf(r)>=0?-1:1,i="function"==typeof o?o(Object.assign({},t,{placement:e})):o,a=i[0],l=i[1];return a=a||0,l=(l||0)*n,[Kt,Qt].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}(o,t.rects,i),e}),{}),l=a[t.placement],s=l.x,b=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=b),t.modifiersData[r]=a}},gr={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,o=e.name;t.modifiersData[o]=sr({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},ur={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,o=e.options,r=e.name,n=o.mainAxis,i=void 0===n||n,a=o.altAxis,l=void 0!==a&&a,s=o.boundary,b=o.rootBoundary,c=o.altBoundary,d=o.padding,f=o.tether,p=void 0===f||f,m=o.tetherOffset,g=void 0===m?0:m,u=br(t,{boundary:s,rootBoundary:b,padding:d,altBoundary:c}),h=jo(t.placement),v=Uo(t.placement),x=!v,w=Ho(h),y="x"===w?"y":"x",k=t.modifiersData.popperOffsets,_=t.rects.reference,q=t.rects.popper,j="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,z="number"==typeof j?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,$={x:0,y:0};if(k){if(i){var S,A="y"===w?Xt:Kt,O="y"===w?Yt:Qt,E="y"===w?"height":"width",R=k[w],T=R+u[A],M=R-u[O],L=p?-q[E]/2:0,D=v===eo?_[E]:q[E],I=v===eo?-q[E]:-_[E],P=t.elements.arrow,H=p&&P?Eo(P):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},N=B[A],V=B[O],G=Bo(0,_[E],H[E]),U=x?_[E]/2-L-G-N-z.mainAxis:D-G-N-z.mainAxis,F=x?-_[E]/2+L+G+V+z.mainAxis:I+G+V+z.mainAxis,W=t.elements.arrow&&Po(t.elements.arrow),X=W?"y"===w?W.clientTop||0:W.clientLeft||0:0,Y=null!=(S=null==C?void 0:C[w])?S:0,Q=R+F-Y,K=Bo(p?Co(T,R+U-Y-X):T,R,p?zo(M,Q):M);k[w]=K,$[w]=K-R}if(l){var J,Z="x"===w?Xt:Kt,ee="x"===w?Yt:Qt,te=k[y],oe="y"===y?"height":"width",re=te+u[Z],ne=te-u[ee],ie=-1!==[Xt,Kt].indexOf(h),ae=null!=(J=null==C?void 0:C[y])?J:0,le=ie?re:te-_[oe]-q[oe]-ae+z.altAxis,se=ie?te+_[oe]+q[oe]-ae-z.altAxis:ne,be=p&&ie?function(e,t,o){var r=Bo(e,t,o);return r>o?o:r}(le,te,se):Bo(p?le:re,te,p?se:ne);k[y]=be,$[y]=be-te}t.modifiersData[r]=$}},requiresIfExists:["offset"]};function hr(e,t,o){void 0===o&&(o=!1);var r,n,i=ko(t),a=ko(t)&&function(e){var t=e.getBoundingClientRect(),o=$o(t.width)/e.offsetWidth||1,r=$o(t.height)/e.offsetHeight||1;return 1!==o||1!==r}(t),l=Lo(t),s=Oo(e,a,o),b={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!o)&&(("body"!==xo(t)||rr(l))&&(b=(r=t)!==wo(r)&&ko(r)?{scrollLeft:(n=r).scrollLeft,scrollTop:n.scrollTop}:tr(r)),ko(t)?((c=Oo(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):l&&(c.x=or(l))),{x:s.left+b.scrollLeft-c.x,y:s.top+b.scrollTop-c.y,width:s.width,height:s.height}}function vr(e){var t=new Map,o=new Set,r=[];function n(e){o.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!o.has(e)){var r=t.get(e);r&&n(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){o.has(e.name)||n(e)})),r}var xr={placement:"bottom",modifiers:[],strategy:"absolute"};function wr(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function yr(e){void 0===e&&(e={});var t=e,o=t.defaultModifiers,r=void 0===o?[]:o,n=t.defaultOptions,i=void 0===n?xr:n;return function(e,t,o){void 0===o&&(o=i);var n,a,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},xr,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],b=!1,c={state:l,setOptions:function(o){var n="function"==typeof o?o(l.options):o;d(),l.options=Object.assign({},i,l.options,n),l.scrollParents={reference:yo(e)?ir(e):e.contextElement?ir(e.contextElement):[],popper:ir(t)};var a,b,f=function(e){var t=vr(e);return vo.reduce((function(e,o){return e.concat(t.filter((function(e){return e.phase===o})))}),[])}((a=[].concat(r,l.options.modifiers),b=a.reduce((function(e,t){var o=e[t.name];return e[t.name]=o?Object.assign({},o,t,{options:Object.assign({},o.options,t.options),data:Object.assign({},o.data,t.data)}):t,e}),{}),Object.keys(b).map((function(e){return b[e]}))));return l.orderedModifiers=f.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,o=e.options,r=void 0===o?{}:o,n=e.effect;if("function"==typeof n){var i=n({state:l,name:t,instance:c,options:r});s.push(i||function(){})}})),c.update()},forceUpdate:function(){if(!b){var e=l.elements,t=e.reference,o=e.popper;if(wr(t,o)){l.rects={reference:hr(t,Po(o),"fixed"===l.options.strategy),popper:Eo(o)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var n=l.orderedModifiers[r],i=n.fn,a=n.options,s=void 0===a?{}:a,d=n.name;"function"==typeof i&&(l=i({state:l,options:s,name:d,instance:c})||l)}else l.reset=!1,r=-1}}},update:(n=function(){return new Promise((function(e){c.forceUpdate(),e(l)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(n())}))}))),a}),destroy:function(){d(),b=!0}};if(!wr(e,t))return c;function d(){s.forEach((function(e){return e()})),s=[]}return c.setOptions(o).then((function(e){!b&&o.onFirstUpdate&&o.onFirstUpdate(e)})),c}}var kr=yr(),_r=yr({defaultModifiers:[Qo,gr,Xo,qo,mr,cr,ur,Go,pr]}),qr=yr({defaultModifiers:[Qo,gr,Xo,qo]});const jr=new Map,zr={set(e,t,o){jr.has(e)||jr.set(e,new Map);const r=jr.get(e);r.has(t)||0===r.size?r.set(t,o):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`)},get:(e,t)=>jr.has(e)&&jr.get(e).get(t)||null,remove(e,t){if(!jr.has(e))return;const o=jr.get(e);o.delete(t),0===o.size&&jr.delete(e)}},Cr="transitionend",$r=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,((e,t)=>`#${CSS.escape(t)}`))),e),Sr=e=>{e.dispatchEvent(new Event(Cr))},Ar=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),Or=e=>Ar(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector($r(e)):null,Er=e=>{if(!Ar(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),o=e.closest("details:not([open])");if(!o)return t;if(o!==e){const t=e.closest("summary");if(t&&t.parentNode!==o)return!1;if(null===t)return!1}return t},Rr=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),Tr=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?Tr(e.parentNode):null},Mr=()=>{},Lr=e=>{e.offsetHeight},Dr=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Ir=[],Pr=()=>"rtl"===document.documentElement.dir,Hr=e=>{var t;t=()=>{const t=Dr();if(t){const o=e.NAME,r=t.fn[o];t.fn[o]=e.jQueryInterface,t.fn[o].Constructor=e,t.fn[o].noConflict=()=>(t.fn[o]=r,e.jQueryInterface)}},"loading"===document.readyState?(Ir.length||document.addEventListener("DOMContentLoaded",(()=>{for(const e of Ir)e()})),Ir.push(t)):t()},Br=(e,t=[],o=e)=>"function"==typeof e?e(...t):o,Nr=(e,t,o=!0)=>{if(!o)return void Br(e);const r=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:o}=window.getComputedStyle(e);const r=Number.parseFloat(t),n=Number.parseFloat(o);return r||n?(t=t.split(",")[0],o=o.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(o))):0})(t)+5;let n=!1;const i=({target:o})=>{o===t&&(n=!0,t.removeEventListener(Cr,i),Br(e))};t.addEventListener(Cr,i),setTimeout((()=>{n||Sr(t)}),r)},Vr=(e,t,o,r)=>{const n=e.length;let i=e.indexOf(t);return-1===i?!o&&r?e[n-1]:e[0]:(i+=o?1:-1,r&&(i=(i+n)%n),e[Math.max(0,Math.min(i,n-1))])},Gr=/[^.]*(?=\..*)\.|.*/,Ur=/\..*/,Fr=/::\d+$/,Wr={};let Xr=1;const Yr={mouseenter:"mouseover",mouseleave:"mouseout"},Qr=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function Kr(e,t){return t&&`${t}::${Xr++}`||e.uidEvent||Xr++}function Jr(e){const t=Kr(e);return e.uidEvent=t,Wr[t]=Wr[t]||{},Wr[t]}function Zr(e,t,o=null){return Object.values(e).find((e=>e.callable===t&&e.delegationSelector===o))}function en(e,t,o){const r="string"==typeof t,n=r?o:t||o;let i=nn(e);return Qr.has(i)||(i=e),[r,n,i]}function tn(e,t,o,r,n){if("string"!=typeof t||!e)return;let[i,a,l]=en(t,o,r);if(t in Yr){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};a=e(a)}const s=Jr(e),b=s[l]||(s[l]={}),c=Zr(b,a,i?o:null);if(c)return void(c.oneOff=c.oneOff&&n);const d=Kr(a,t.replace(Gr,"")),f=i?function(e,t,o){return function r(n){const i=e.querySelectorAll(t);for(let{target:a}=n;a&&a!==this;a=a.parentNode)for(const l of i)if(l===a)return ln(n,{delegateTarget:a}),r.oneOff&&an.off(e,n.type,t,o),o.apply(a,[n])}}(e,o,a):function(e,t){return function o(r){return ln(r,{delegateTarget:e}),o.oneOff&&an.off(e,r.type,t),t.apply(e,[r])}}(e,a);f.delegationSelector=i?o:null,f.callable=a,f.oneOff=n,f.uidEvent=d,b[d]=f,e.addEventListener(l,f,i)}function on(e,t,o,r,n){const i=Zr(t[o],r,n);i&&(e.removeEventListener(o,i,Boolean(n)),delete t[o][i.uidEvent])}function rn(e,t,o,r){const n=t[o]||{};for(const[i,a]of Object.entries(n))i.includes(r)&&on(e,t,o,a.callable,a.delegationSelector)}function nn(e){return e=e.replace(Ur,""),Yr[e]||e}const an={on(e,t,o,r){tn(e,t,o,r,!1)},one(e,t,o,r){tn(e,t,o,r,!0)},off(e,t,o,r){if("string"!=typeof t||!e)return;const[n,i,a]=en(t,o,r),l=a!==t,s=Jr(e),b=s[a]||{},c=t.startsWith(".");if(void 0===i){if(c)for(const o of Object.keys(s))rn(e,s,o,t.slice(1));for(const[o,r]of Object.entries(b)){const n=o.replace(Fr,"");l&&!t.includes(n)||on(e,s,a,r.callable,r.delegationSelector)}}else{if(!Object.keys(b).length)return;on(e,s,a,i,n?o:null)}},trigger(e,t,o){if("string"!=typeof t||!e)return null;const r=Dr();let n=null,i=!0,a=!0,l=!1;t!==nn(t)&&r&&(n=r.Event(t,o),r(e).trigger(n),i=!n.isPropagationStopped(),a=!n.isImmediatePropagationStopped(),l=n.isDefaultPrevented());const s=ln(new Event(t,{bubbles:i,cancelable:!0}),o);return l&&s.preventDefault(),a&&e.dispatchEvent(s),s.defaultPrevented&&n&&n.preventDefault(),s}};function ln(e,t={}){for(const[o,r]of Object.entries(t))try{e[o]=r}catch(t){Object.defineProperty(e,o,{configurable:!0,get:()=>r})}return e}function sn(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function bn(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}const cn={setDataAttribute(e,t,o){e.setAttribute(`data-bs-${bn(t)}`,o)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${bn(t)}`)},getDataAttributes(e){if(!e)return{};const t={},o=Object.keys(e.dataset).filter((e=>e.startsWith("bs")&&!e.startsWith("bsConfig")));for(const r of o){let o=r.replace(/^bs/,"");o=o.charAt(0).toLowerCase()+o.slice(1,o.length),t[o]=sn(e.dataset[r])}return t},getDataAttribute:(e,t)=>sn(e.getAttribute(`data-bs-${bn(t)}`))};class dn{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const o=Ar(t)?cn.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof o?o:{},...Ar(t)?cn.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[r,n]of Object.entries(t)){const t=e[r],i=Ar(t)?"element":null==(o=t)?`${o}`:Object.prototype.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(n).test(i))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${i}" but expected type "${n}".`)}var o}}class fn extends dn{constructor(e,t){super(),(e=Or(e))&&(this._element=e,this._config=this._getConfig(t),zr.set(this._element,this.constructor.DATA_KEY,this))}dispose(){zr.remove(this._element,this.constructor.DATA_KEY),an.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,o=!0){Nr(e,t,o)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return zr.get(Or(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.3.3"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const pn=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let o=e.getAttribute("href");if(!o||!o.includes("#")&&!o.startsWith("."))return null;o.includes("#")&&!o.startsWith("#")&&(o=`#${o.split("#")[1]}`),t=o&&"#"!==o?o.trim():null}return t?t.split(",").map((e=>$r(e))).join(","):null},mn={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const o=[];let r=e.parentNode.closest(t);for(;r;)o.push(r),r=r.parentNode.closest(t);return o},prev(e,t){let o=e.previousElementSibling;for(;o;){if(o.matches(t))return[o];o=o.previousElementSibling}return[]},next(e,t){let o=e.nextElementSibling;for(;o;){if(o.matches(t))return[o];o=o.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(",");return this.find(t,e).filter((e=>!Rr(e)&&Er(e)))},getSelectorFromElement(e){const t=pn(e);return t&&mn.findOne(t)?t:null},getElementFromSelector(e){const t=pn(e);return t?mn.findOne(t):null},getMultipleElementsFromSelector(e){const t=pn(e);return t?mn.find(t):[]}},gn=(e,t="hide")=>{const o=`click.dismiss${e.EVENT_KEY}`,r=e.NAME;an.on(document,o,`[data-bs-dismiss="${r}"]`,(function(o){if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),Rr(this))return;const n=mn.getElementFromSelector(this)||this.closest(`.${r}`);e.getOrCreateInstance(n)[t]()}))},un=".bs.alert",hn=`close${un}`,vn=`closed${un}`;class xn extends fn{static get NAME(){return"alert"}close(){if(an.trigger(this._element,hn).defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,e)}_destroyElement(){this._element.remove(),an.trigger(this._element,vn),this.dispose()}static jQueryInterface(e){return this.each((function(){const t=xn.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}gn(xn,"close"),Hr(xn);const wn='[data-bs-toggle="button"]';class yn extends fn{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each((function(){const t=yn.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}an.on(document,"click.bs.button.data-api",wn,(e=>{e.preventDefault();const t=e.target.closest(wn);yn.getOrCreateInstance(t).toggle()})),Hr(yn);const kn=".bs.swipe",_n=`touchstart${kn}`,qn=`touchmove${kn}`,jn=`touchend${kn}`,zn=`pointerdown${kn}`,Cn=`pointerup${kn}`,$n={endCallback:null,leftCallback:null,rightCallback:null},Sn={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class An extends dn{constructor(e,t){super(),this._element=e,e&&An.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return $n}static get DefaultType(){return Sn}static get NAME(){return"swipe"}dispose(){an.off(this._element,kn)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),Br(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=40)return;const t=e/this._deltaX;this._deltaX=0,t&&Br(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(an.on(this._element,zn,(e=>this._start(e))),an.on(this._element,Cn,(e=>this._end(e))),this._element.classList.add("pointer-event")):(an.on(this._element,_n,(e=>this._start(e))),an.on(this._element,qn,(e=>this._move(e))),an.on(this._element,jn,(e=>this._end(e))))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&("pen"===e.pointerType||"touch"===e.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const On=".bs.carousel",En=".data-api",Rn="ArrowLeft",Tn="ArrowRight",Mn="next",Ln="prev",Dn="left",In="right",Pn=`slide${On}`,Hn=`slid${On}`,Bn=`keydown${On}`,Nn=`mouseenter${On}`,Vn=`mouseleave${On}`,Gn=`dragstart${On}`,Un=`load${On}${En}`,Fn=`click${On}${En}`,Wn="carousel",Xn="active",Yn=".active",Qn=".carousel-item",Kn=Yn+Qn,Jn={[Rn]:In,[Tn]:Dn},Zn={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},ei={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ti extends fn{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=mn.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===Wn&&this.cycle()}static get Default(){return Zn}static get DefaultType(){return ei}static get NAME(){return"carousel"}next(){this._slide(Mn)}nextWhenVisible(){!document.hidden&&Er(this._element)&&this.next()}prev(){this._slide(Ln)}pause(){this._isSliding&&Sr(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?an.one(this._element,Hn,(()=>this.cycle())):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void an.one(this._element,Hn,(()=>this.to(e)));const o=this._getItemIndex(this._getActive());if(o===e)return;const r=e>o?Mn:Ln;this._slide(r,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&an.on(this._element,Bn,(e=>this._keydown(e))),"hover"===this._config.pause&&(an.on(this._element,Nn,(()=>this.pause())),an.on(this._element,Vn,(()=>this._maybeEnableCycle()))),this._config.touch&&An.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const e of mn.find(".carousel-item img",this._element))an.on(e,Gn,(e=>e.preventDefault()));const e={leftCallback:()=>this._slide(this._directionToOrder(Dn)),rightCallback:()=>this._slide(this._directionToOrder(In)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new An(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=Jn[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=mn.findOne(Yn,this._indicatorsElement);t.classList.remove(Xn),t.removeAttribute("aria-current");const o=mn.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);o&&(o.classList.add(Xn),o.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const o=this._getActive(),r=e===Mn,n=t||Vr(this._getItems(),o,r,this._config.wrap);if(n===o)return;const i=this._getItemIndex(n),a=t=>an.trigger(this._element,t,{relatedTarget:n,direction:this._orderToDirection(e),from:this._getItemIndex(o),to:i});if(a(Pn).defaultPrevented)return;if(!o||!n)return;const l=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(i),this._activeElement=n;const s=r?"carousel-item-start":"carousel-item-end",b=r?"carousel-item-next":"carousel-item-prev";n.classList.add(b),Lr(n),o.classList.add(s),n.classList.add(s),this._queueCallback((()=>{n.classList.remove(s,b),n.classList.add(Xn),o.classList.remove(Xn,b,s),this._isSliding=!1,a(Hn)}),o,this._isAnimated()),l&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return mn.findOne(Kn,this._element)}_getItems(){return mn.find(Qn,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Pr()?e===Dn?Ln:Mn:e===Dn?Mn:Ln}_orderToDirection(e){return Pr()?e===Ln?Dn:In:e===Ln?In:Dn}static jQueryInterface(e){return this.each((function(){const t=ti.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}else t.to(e)}))}}an.on(document,Fn,"[data-bs-slide], [data-bs-slide-to]",(function(e){const t=mn.getElementFromSelector(this);if(!t||!t.classList.contains(Wn))return;e.preventDefault();const o=ti.getOrCreateInstance(t),r=this.getAttribute("data-bs-slide-to");return r?(o.to(r),void o._maybeEnableCycle()):"next"===cn.getDataAttribute(this,"slide")?(o.next(),void o._maybeEnableCycle()):(o.prev(),void o._maybeEnableCycle())})),an.on(window,Un,(()=>{const e=mn.find('[data-bs-ride="carousel"]');for(const t of e)ti.getOrCreateInstance(t)})),Hr(ti);const oi=".bs.collapse",ri=`show${oi}`,ni=`shown${oi}`,ii=`hide${oi}`,ai=`hidden${oi}`,li=`click${oi}.data-api`,si="show",bi="collapse",ci="collapsing",di=`:scope .${bi} .${bi}`,fi='[data-bs-toggle="collapse"]',pi={parent:null,toggle:!0},mi={parent:"(null|element)",toggle:"boolean"};class gi extends fn{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const o=mn.find(fi);for(const e of o){const t=mn.getSelectorFromElement(e),o=mn.find(t).filter((e=>e===this._element));null!==t&&o.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return pi}static get DefaultType(){return mi}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((e=>e!==this._element)).map((e=>gi.getOrCreateInstance(e,{toggle:!1})))),e.length&&e[0]._isTransitioning)return;if(an.trigger(this._element,ri).defaultPrevented)return;for(const t of e)t.hide();const t=this._getDimension();this._element.classList.remove(bi),this._element.classList.add(ci),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(ci),this._element.classList.add(bi,si),this._element.style[t]="",an.trigger(this._element,ni)}),this._element,!0),this._element.style[t]=`${this._element[o]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(an.trigger(this._element,ii).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,Lr(this._element),this._element.classList.add(ci),this._element.classList.remove(bi,si);for(const e of this._triggerArray){const t=mn.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0,this._element.style[e]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(ci),this._element.classList.add(bi),an.trigger(this._element,ai)}),this._element,!0)}_isShown(e=this._element){return e.classList.contains(si)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=Or(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(fi);for(const t of e){const e=mn.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=mn.find(di,this._config.parent);return mn.find(e,this._config.parent).filter((e=>!t.includes(e)))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const o of e)o.classList.toggle("collapsed",!t),o.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each((function(){const o=gi.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===o[e])throw new TypeError(`No method named "${e}"`);o[e]()}}))}}an.on(document,li,fi,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const e of mn.getMultipleElementsFromSelector(this))gi.getOrCreateInstance(e,{toggle:!1}).toggle()})),Hr(gi);const ui="dropdown",hi=".bs.dropdown",vi=".data-api",xi="ArrowUp",wi="ArrowDown",yi=`hide${hi}`,ki=`hidden${hi}`,_i=`show${hi}`,qi=`shown${hi}`,ji=`click${hi}${vi}`,zi=`keydown${hi}${vi}`,Ci=`keyup${hi}${vi}`,$i="show",Si='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Ai=`${Si}.${$i}`,Oi=".dropdown-menu",Ei=Pr()?"top-end":"top-start",Ri=Pr()?"top-start":"top-end",Ti=Pr()?"bottom-end":"bottom-start",Mi=Pr()?"bottom-start":"bottom-end",Li=Pr()?"left-start":"right-start",Di=Pr()?"right-start":"left-start",Ii={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Pi={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Hi extends fn{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=mn.next(this._element,Oi)[0]||mn.prev(this._element,Oi)[0]||mn.findOne(Oi,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Ii}static get DefaultType(){return Pi}static get NAME(){return ui}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Rr(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!an.trigger(this._element,_i,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const e of[].concat(...document.body.children))an.on(e,"mouseover",Mr);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add($i),this._element.classList.add($i),an.trigger(this._element,qi,e)}}hide(){if(Rr(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!an.trigger(this._element,yi,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))an.off(e,"mouseover",Mr);this._popper&&this._popper.destroy(),this._menu.classList.remove($i),this._element.classList.remove($i),this._element.setAttribute("aria-expanded","false"),cn.removeDataAttribute(this._menu,"popper"),an.trigger(this._element,ki,e)}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!Ar(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${ui.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){let e=this._element;"parent"===this._config.reference?e=this._parent:Ar(this._config.reference)?e=Or(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=_r(e,this._menu,t)}_isShown(){return this._menu.classList.contains($i)}_getPlacement(){const e=this._parent;if(e.classList.contains("dropend"))return Li;if(e.classList.contains("dropstart"))return Di;if(e.classList.contains("dropup-center"))return"top";if(e.classList.contains("dropdown-center"))return"bottom";const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?Ri:Ei:t?Mi:Ti}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(cn.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...Br(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const o=mn.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((e=>Er(e)));o.length&&Vr(o,t,e===wi,!o.includes(t)).focus()}static jQueryInterface(e){return this.each((function(){const t=Hi.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}static clearMenus(e){if(2===e.button||"keyup"===e.type&&"Tab"!==e.key)return;const t=mn.find(Ai);for(const o of t){const t=Hi.getInstance(o);if(!t||!1===t._config.autoClose)continue;const r=e.composedPath(),n=r.includes(t._menu);if(r.includes(t._element)||"inside"===t._config.autoClose&&!n||"outside"===t._config.autoClose&&n)continue;if(t._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const i={relatedTarget:t._element};"click"===e.type&&(i.clickEvent=e),t._completeHide(i)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),o="Escape"===e.key,r=[xi,wi].includes(e.key);if(!r&&!o)return;if(t&&!o)return;e.preventDefault();const n=this.matches(Si)?this:mn.prev(this,Si)[0]||mn.next(this,Si)[0]||mn.findOne(Si,e.delegateTarget.parentNode),i=Hi.getOrCreateInstance(n);if(r)return e.stopPropagation(),i.show(),void i._selectMenuItem(e);i._isShown()&&(e.stopPropagation(),i.hide(),n.focus())}}an.on(document,zi,Si,Hi.dataApiKeydownHandler),an.on(document,zi,Oi,Hi.dataApiKeydownHandler),an.on(document,ji,Hi.clearMenus),an.on(document,Ci,Hi.clearMenus),an.on(document,ji,Si,(function(e){e.preventDefault(),Hi.getOrCreateInstance(this).toggle()})),Hr(Hi);const Bi="backdrop",Ni="show",Vi=`mousedown.bs.${Bi}`,Gi={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Ui={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Fi extends dn{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Gi}static get DefaultType(){return Ui}static get NAME(){return Bi}show(e){if(!this._config.isVisible)return void Br(e);this._append();const t=this._getElement();this._config.isAnimated&&Lr(t),t.classList.add(Ni),this._emulateAnimation((()=>{Br(e)}))}hide(e){this._config.isVisible?(this._getElement().classList.remove(Ni),this._emulateAnimation((()=>{this.dispose(),Br(e)}))):Br(e)}dispose(){this._isAppended&&(an.off(this._element,Vi),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Or(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),an.on(e,Vi,(()=>{Br(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(e){Nr(e,this._getElement(),this._config.isAnimated)}}const Wi=".bs.focustrap",Xi=`focusin${Wi}`,Yi=`keydown.tab${Wi}`,Qi="backward",Ki={autofocus:!0,trapElement:null},Ji={autofocus:"boolean",trapElement:"element"};class Zi extends dn{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Ki}static get DefaultType(){return Ji}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),an.off(document,Wi),an.on(document,Xi,(e=>this._handleFocusin(e))),an.on(document,Yi,(e=>this._handleKeydown(e))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,an.off(document,Wi))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const o=mn.focusableChildren(t);0===o.length?t.focus():this._lastTabNavDirection===Qi?o[o.length-1].focus():o[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?Qi:"forward")}}const ea=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ta=".sticky-top",oa="padding-right",ra="margin-right";class na{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,oa,(t=>t+e)),this._setElementAttributes(ea,oa,(t=>t+e)),this._setElementAttributes(ta,ra,(t=>t-e))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,oa),this._resetElementAttributes(ea,oa),this._resetElementAttributes(ta,ra)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,o){const r=this.getWidth();this._applyManipulationCallback(e,(e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+r)return;this._saveInitialAttribute(e,t);const n=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${o(Number.parseFloat(n))}px`)}))}_saveInitialAttribute(e,t){const o=e.style.getPropertyValue(t);o&&cn.setDataAttribute(e,t,o)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,(e=>{const o=cn.getDataAttribute(e,t);null!==o?(cn.removeDataAttribute(e,t),e.style.setProperty(t,o)):e.style.removeProperty(t)}))}_applyManipulationCallback(e,t){if(Ar(e))t(e);else for(const o of mn.find(e,this._element))t(o)}}const ia=".bs.modal",aa=`hide${ia}`,la=`hidePrevented${ia}`,sa=`hidden${ia}`,ba=`show${ia}`,ca=`shown${ia}`,da=`resize${ia}`,fa=`click.dismiss${ia}`,pa=`mousedown.dismiss${ia}`,ma=`keydown.dismiss${ia}`,ga=`click${ia}.data-api`,ua="modal-open",ha="show",va="modal-static",xa={backdrop:!0,focus:!0,keyboard:!0},wa={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class ya extends fn{constructor(e,t){super(e,t),this._dialog=mn.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new na,this._addEventListeners()}static get Default(){return xa}static get DefaultType(){return wa}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||an.trigger(this._element,ba,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(ua),this._adjustDialog(),this._backdrop.show((()=>this._showElement(e))))}hide(){this._isShown&&!this._isTransitioning&&(an.trigger(this._element,aa).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(ha),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())))}dispose(){an.off(window,ia),an.off(this._dialog,ia),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Fi({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Zi({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const t=mn.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),Lr(this._element),this._element.classList.add(ha),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,an.trigger(this._element,ca,{relatedTarget:e})}),this._dialog,this._isAnimated())}_addEventListeners(){an.on(this._element,ma,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),an.on(window,da,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),an.on(this._element,pa,(e=>{an.one(this._element,fa,(t=>{this._element===e.target&&this._element===t.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(ua),this._resetAdjustments(),this._scrollBar.reset(),an.trigger(this._element,sa)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(an.trigger(this._element,la).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(va)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(va),this._queueCallback((()=>{this._element.classList.remove(va),this._queueCallback((()=>{this._element.style.overflowY=t}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),o=t>0;if(o&&!e){const e=Pr()?"paddingLeft":"paddingRight";this._element.style[e]=`${t}px`}if(!o&&e){const e=Pr()?"paddingRight":"paddingLeft";this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each((function(){const o=ya.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===o[e])throw new TypeError(`No method named "${e}"`);o[e](t)}}))}}an.on(document,ga,'[data-bs-toggle="modal"]',(function(e){const t=mn.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),an.one(t,ba,(e=>{e.defaultPrevented||an.one(t,sa,(()=>{Er(this)&&this.focus()}))}));const o=mn.findOne(".modal.show");o&&ya.getInstance(o).hide(),ya.getOrCreateInstance(t).toggle(this)})),gn(ya),Hr(ya);const ka=".bs.offcanvas",_a=".data-api",qa=`load${ka}${_a}`,ja="show",za="showing",Ca="hiding",$a=".offcanvas.show",Sa=`show${ka}`,Aa=`shown${ka}`,Oa=`hide${ka}`,Ea=`hidePrevented${ka}`,Ra=`hidden${ka}`,Ta=`resize${ka}`,Ma=`click${ka}${_a}`,La=`keydown.dismiss${ka}`,Da={backdrop:!0,keyboard:!0,scroll:!1},Ia={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Pa extends fn{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Da}static get DefaultType(){return Ia}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||an.trigger(this._element,Sa,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new na).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(za),this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(ja),this._element.classList.remove(za),an.trigger(this._element,Aa,{relatedTarget:e})}),this._element,!0))}hide(){this._isShown&&(an.trigger(this._element,Oa).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Ca),this._backdrop.hide(),this._queueCallback((()=>{this._element.classList.remove(ja,Ca),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new na).reset(),an.trigger(this._element,Ra)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=Boolean(this._config.backdrop);return new Fi({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"!==this._config.backdrop?this.hide():an.trigger(this._element,Ea)}:null})}_initializeFocusTrap(){return new Zi({trapElement:this._element})}_addEventListeners(){an.on(this._element,La,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():an.trigger(this._element,Ea))}))}static jQueryInterface(e){return this.each((function(){const t=Pa.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}an.on(document,Ma,'[data-bs-toggle="offcanvas"]',(function(e){const t=mn.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),Rr(this))return;an.one(t,Ra,(()=>{Er(this)&&this.focus()}));const o=mn.findOne($a);o&&o!==t&&Pa.getInstance(o).hide(),Pa.getOrCreateInstance(t).toggle(this)})),an.on(window,qa,(()=>{for(const e of mn.find($a))Pa.getOrCreateInstance(e).show()})),an.on(window,Ta,(()=>{for(const e of mn.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&Pa.getOrCreateInstance(e).hide()})),gn(Pa),Hr(Pa);const Ha={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Ba=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Na=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Va=(e,t)=>{const o=e.nodeName.toLowerCase();return t.includes(o)?!Ba.has(o)||Boolean(Na.test(e.nodeValue)):t.filter((e=>e instanceof RegExp)).some((e=>e.test(o)))},Ga={allowList:Ha,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Ua={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Fa={entry:"(string|element|function|null)",selector:"(string|element)"};class Wa extends dn{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Ga}static get DefaultType(){return Ua}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((e=>this._resolvePossibleFunction(e))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[t,o]of Object.entries(this._config.content))this._setContent(e,o,t);const t=e.children[0],o=this._resolvePossibleFunction(this._config.extraClass);return o&&t.classList.add(...o.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,o]of Object.entries(e))super._typeCheckConfig({selector:t,entry:o},Fa)}_setContent(e,t,o){const r=mn.findOne(o,e);r&&((t=this._resolvePossibleFunction(t))?Ar(t)?this._putElementInTemplate(Or(t),r):this._config.html?r.innerHTML=this._maybeSanitize(t):r.textContent=t:r.remove())}_maybeSanitize(e){return this._config.sanitize?function(e,t,o){if(!e.length)return e;if(o&&"function"==typeof o)return o(e);const r=(new window.DOMParser).parseFromString(e,"text/html"),n=[].concat(...r.body.querySelectorAll("*"));for(const e of n){const o=e.nodeName.toLowerCase();if(!Object.keys(t).includes(o)){e.remove();continue}const r=[].concat(...e.attributes),n=[].concat(t["*"]||[],t[o]||[]);for(const t of r)Va(t,n)||e.removeAttribute(t.nodeName)}return r.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Br(e,[this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const Xa=new Set(["sanitize","allowList","sanitizeFn"]),Ya="fade",Qa="show",Ka=".tooltip-inner",Ja=".modal",Za="hide.bs.modal",el="hover",tl="focus",ol={AUTO:"auto",TOP:"top",RIGHT:Pr()?"left":"right",BOTTOM:"bottom",LEFT:Pr()?"right":"left"},rl={allowList:Ha,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},nl={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class il extends fn{constructor(e,t){super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return rl}static get DefaultType(){return nl}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),an.off(this._element.closest(Ja),Za,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const e=an.trigger(this._element,this.constructor.eventName("show")),t=(Tr(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const o=this._getTipElement();this._element.setAttribute("aria-describedby",o.getAttribute("id"));const{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(o),an.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(o),o.classList.add(Qa),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))an.on(e,"mouseover",Mr);this._queueCallback((()=>{an.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(this._isShown()&&!an.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(Qa),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))an.off(e,"mouseover",Mr);this._activeTrigger.click=!1,this._activeTrigger[tl]=!1,this._activeTrigger[el]=!1,this._isHovered=null,this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),an.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(Ya,Qa),t.classList.add(`bs-${this.constructor.NAME}-auto`);const o=(e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME).toString();return t.setAttribute("id",o),this._isAnimated()&&t.classList.add(Ya),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new Wa({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Ka]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Ya)}_isShown(){return this.tip&&this.tip.classList.contains(Qa)}_createPopper(e){const t=Br(this._config.placement,[this,e,this._element]),o=ol[t.toUpperCase()];return _r(this._element,e,this._getPopperConfig(o))}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return Br(e,[this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...t,...Br(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)an.on(this._element,this.constructor.eventName("click"),this._config.selector,(e=>{this._initializeOnDelegatedTarget(e).toggle()}));else if("manual"!==t){const e=t===el?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),o=t===el?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");an.on(this._element,e,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?tl:el]=!0,t._enter()})),an.on(this._element,o,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?tl:el]=t._element.contains(e.relatedTarget),t._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},an.on(this._element.closest(Ja),Za,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=cn.getDataAttributes(this._element);for(const e of Object.keys(t))Xa.has(e)&&delete t[e];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:Or(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,o]of Object.entries(this._config))this.constructor.Default[t]!==o&&(e[t]=o);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each((function(){const t=il.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}Hr(il);const al=".popover-header",ll=".popover-body",sl={...il.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},bl={...il.DefaultType,content:"(null|string|element|function)"};class cl extends il{static get Default(){return sl}static get DefaultType(){return bl}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[al]:this._getTitle(),[ll]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each((function(){const t=cl.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}Hr(cl);const dl=".bs.scrollspy",fl=`activate${dl}`,pl=`click${dl}`,ml=`load${dl}.data-api`,gl="active",ul="[href]",hl=".nav-link",vl=`${hl}, .nav-item > ${hl}, .list-group-item`,xl={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},wl={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class yl extends fn{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return xl}static get DefaultType(){return wl}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Or(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map((e=>Number.parseFloat(e)))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(an.off(this._config.target,pl),an.on(this._config.target,pl,ul,(e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const o=this._rootElement||window,r=t.offsetTop-this._element.offsetTop;if(o.scrollTo)return void o.scrollTo({top:r,behavior:"smooth"});o.scrollTop=r}})))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((e=>this._observerCallback(e)),e)}_observerCallback(e){const t=e=>this._targetLinks.get(`#${e.target.id}`),o=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},r=(this._rootElement||document.documentElement).scrollTop,n=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(const i of e){if(!i.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(i));continue}const e=i.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(n&&e){if(o(i),!r)return}else n||e||o(i)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=mn.find(ul,this._config.target);for(const t of e){if(!t.hash||Rr(t))continue;const e=mn.findOne(decodeURI(t.hash),this._element);Er(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(gl),this._activateParents(e),an.trigger(this._element,fl,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))mn.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(gl);else for(const t of mn.parents(e,".nav, .list-group"))for(const e of mn.prev(t,vl))e.classList.add(gl)}_clearActiveClass(e){e.classList.remove(gl);const t=mn.find(`${ul}.${gl}`,e);for(const e of t)e.classList.remove(gl)}static jQueryInterface(e){return this.each((function(){const t=yl.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}an.on(window,ml,(()=>{for(const e of mn.find('[data-bs-spy="scroll"]'))yl.getOrCreateInstance(e)})),Hr(yl);const kl=".bs.tab",_l=`hide${kl}`,ql=`hidden${kl}`,jl=`show${kl}`,zl=`shown${kl}`,Cl=`click${kl}`,$l=`keydown${kl}`,Sl=`load${kl}`,Al="ArrowLeft",Ol="ArrowRight",El="ArrowUp",Rl="ArrowDown",Tl="Home",Ml="End",Ll="active",Dl="fade",Il="show",Pl=".dropdown-toggle",Hl=`:not(${Pl})`,Bl='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Nl=`.nav-link${Hl}, .list-group-item${Hl}, [role="tab"]${Hl}, ${Bl}`,Vl=`.${Ll}[data-bs-toggle="tab"], .${Ll}[data-bs-toggle="pill"], .${Ll}[data-bs-toggle="list"]`;class Gl extends fn{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),an.on(this._element,$l,(e=>this._keydown(e))))}static get NAME(){return"tab"}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),o=t?an.trigger(t,_l,{relatedTarget:e}):null;an.trigger(e,jl,{relatedTarget:t}).defaultPrevented||o&&o.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(Ll),this._activate(mn.getElementFromSelector(e)),this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),an.trigger(e,zl,{relatedTarget:t})):e.classList.add(Il)}),e,e.classList.contains(Dl)))}_deactivate(e,t){e&&(e.classList.remove(Ll),e.blur(),this._deactivate(mn.getElementFromSelector(e)),this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),an.trigger(e,ql,{relatedTarget:t})):e.classList.remove(Il)}),e,e.classList.contains(Dl)))}_keydown(e){if(![Al,Ol,El,Rl,Tl,Ml].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter((e=>!Rr(e)));let o;if([Tl,Ml].includes(e.key))o=t[e.key===Tl?0:t.length-1];else{const r=[Ol,Rl].includes(e.key);o=Vr(t,e.target,r,!0)}o&&(o.focus({preventScroll:!0}),Gl.getOrCreateInstance(o).show())}_getChildren(){return mn.find(Nl,this._parent)}_getActiveElem(){return this._getChildren().find((e=>this._elemIsActive(e)))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),o=this._getOuterElement(e);e.setAttribute("aria-selected",t),o!==e&&this._setAttributeIfNotExists(o,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=mn.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const o=this._getOuterElement(e);if(!o.classList.contains("dropdown"))return;const r=(e,r)=>{const n=mn.findOne(e,o);n&&n.classList.toggle(r,t)};r(Pl,Ll),r(".dropdown-menu",Il),o.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,o){e.hasAttribute(t)||e.setAttribute(t,o)}_elemIsActive(e){return e.classList.contains(Ll)}_getInnerElement(e){return e.matches(Nl)?e:mn.findOne(Nl,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each((function(){const t=Gl.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}an.on(document,Cl,Bl,(function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),Rr(this)||Gl.getOrCreateInstance(this).show()})),an.on(window,Sl,(()=>{for(const e of mn.find(Vl))Gl.getOrCreateInstance(e)})),Hr(Gl);const Ul=".bs.toast",Fl=`mouseover${Ul}`,Wl=`mouseout${Ul}`,Xl=`focusin${Ul}`,Yl=`focusout${Ul}`,Ql=`hide${Ul}`,Kl=`hidden${Ul}`,Jl=`show${Ul}`,Zl=`shown${Ul}`,es="hide",ts="show",os="showing",rs={animation:"boolean",autohide:"boolean",delay:"number"},ns={animation:!0,autohide:!0,delay:5e3};class is extends fn{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return ns}static get DefaultType(){return rs}static get NAME(){return"toast"}show(){an.trigger(this._element,Jl).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(es),Lr(this._element),this._element.classList.add(ts,os),this._queueCallback((()=>{this._element.classList.remove(os),an.trigger(this._element,Zl),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this.isShown()&&(an.trigger(this._element,Ql).defaultPrevented||(this._element.classList.add(os),this._queueCallback((()=>{this._element.classList.add(es),this._element.classList.remove(os,ts),an.trigger(this._element,Kl)}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(ts),super.dispose()}isShown(){return this._element.classList.contains(ts)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const o=e.relatedTarget;this._element===o||this._element.contains(o)||this._maybeScheduleHide()}_setListeners(){an.on(this._element,Fl,(e=>this._onInteraction(e,!0))),an.on(this._element,Wl,(e=>this._onInteraction(e,!1))),an.on(this._element,Xl,(e=>this._onInteraction(e,!0))),an.on(this._element,Yl,(e=>this._onInteraction(e,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){const t=is.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}gn(is),Hr(is);var as=function(e,t,o,r){var n,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,r);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,o,a):n(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},ls=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let ss=class extends Pt{constructor(){super(...arguments),this.contentAtt="data-bs-content",this.contentStyle="none",this.containerAtt="data-bs-container",this.containerValue="body",this.defaultContent="No content provided",this.htmlAtt="data-bs-html",this.htmlValue="true",this.placementAtt="data-bs-placement",this.placementValue="left",this.selector="*[slot=content]",this.toggleAtt="data-bs-toggle",this.toggleValue="popover",this.renderInHost=!0}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}connectedCallback(){super.connectedCallback(),this.setAttribute(this.toggleAtt,this.toggleValue),this.setAttribute(this.placementAtt,this.placementValue),this.setAttribute(this.containerAtt,this.containerValue),this.setAttribute(this.htmlAtt,this.htmlValue)}firstUpdated(e){super.firstUpdated(e);const t=this.querySelector(this.selector);t instanceof HTMLElement&&(t.style.display=this.contentStyle),this.setAttribute(this.contentAtt,t?.innerHTML??this.defaultContent),new cl(this)}render(){return Ue`<slot></slot>`}};as([mt({type:String}),ls("design:type",Object)],ss.prototype,"contentAtt",void 0),as([mt({type:String}),ls("design:type",Object)],ss.prototype,"contentStyle",void 0),as([mt({type:String}),ls("design:type",Object)],ss.prototype,"containerAtt",void 0),as([mt({type:String}),ls("design:type",Object)],ss.prototype,"containerValue",void 0),as([mt({type:String}),ls("design:type",Object)],ss.prototype,"defaultContent",void 0),as([mt({type:String}),ls("design:type",Object)],ss.prototype,"htmlAtt",void 0),as([mt({type:String}),ls("design:type",Object)],ss.prototype,"htmlValue",void 0),as([mt({type:String}),ls("design:type",Object)],ss.prototype,"placementAtt",void 0),as([mt({type:String}),ls("design:type",Object)],ss.prototype,"placementValue",void 0),as([mt({type:String}),ls("design:type",Object)],ss.prototype,"selector",void 0),as([mt({type:String}),ls("design:type",Object)],ss.prototype,"toggleAtt",void 0),as([mt({type:String}),ls("design:type",Object)],ss.prototype,"toggleValue",void 0),as([mt({type:Boolean}),ls("design:type",Object)],ss.prototype,"renderInHost",void 0),ss=as([dt("qbo-popover")],ss);class bs{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}class cs extends bs{constructor(e){if(super(e),this.it=Xe,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===Xe||null==e)return this._t=void 0,this.it=e;if(e===We)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}cs.directiveName="unsafeHTML",cs.resultType=1;const ds=(e=>(...t)=>({_$litDirective$:e,values:t}))(cs);var fs=function(e,t,o,r){var n,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,r);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,o,a):n(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},ps=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let ms=class extends jt{constructor(){super(...arguments),this.open=!1,this.loading=!1,this.renderInHost=!1}static{this.styles=[le`
|
|
100
|
+
</div>`}renderIcon(e){return null==e.icon&&(console.warn("qbo-icon: icon attribute is required"),e.icon=e.unknown),Ht.has(e.icon)||(console.warn(`qbo-icon: icon attribute is not valid. Valid values are: ${Array.from(Ht.keys()).join(" ")}`),e.icon=e.unknown),Ue`<svg width="${e.width}" height="${e.width}" fill="${e.fill}" ?class=${e.getAttribute("class")} viewBox="${e.viewbox}">${e.backgroundColor?Fe`<rect width="${e.width}" height="${e.height}" fill="${e.backgroundColor}" />`:Fe``}${Ht.get(e.icon)}</svg>`}renderButton(e){return Ue`<button type="button" ?disabled=${e.disabled}>${e.renderIcon(e)}</button>`}render(){switch(this.type){case"icon":default:return this.renderIcon(this);case"button":return this.renderButton(this);case"all":return this.renderAll(this)}}};Bt([mt(),Nt("design:type",String)],Vt.prototype,"type",void 0),Bt([mt(),Nt("design:type",Object)],Vt.prototype,"icon",void 0),Bt([mt(),Nt("design:type",Number)],Vt.prototype,"height",void 0),Bt([mt(),Nt("design:type",Number)],Vt.prototype,"width",void 0),Bt([mt(),Nt("design:type",String)],Vt.prototype,"viewbox",void 0),Bt([mt(),Nt("design:type",String)],Vt.prototype,"fill",void 0),Bt([mt(),Nt("design:type",Object)],Vt.prototype,"backgroundColor",void 0),Bt([mt(),Nt("design:type",String)],Vt.prototype,"unknown",void 0),Bt([mt(),Nt("design:type",Boolean)],Vt.prototype,"disabled",void 0),Bt([mt({type:Boolean,reflect:!0}),Nt("design:type",Object)],Vt.prototype,"renderInHost",void 0),Vt=Bt([dt("qbo-icon")],Vt);var Gt,Ut=function(e,t,o,r){var n,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,r);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,o,a):n(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},Ft=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Wt=class extends bt{constructor(){super(...arguments),this.renderInHost=!0,this.continuous=!1,this.interimResults=!1,this.maxAlternatives=1,this.for="input",this.class="input-group-text bi bi-headset",this.activeClass="bg-primary-subtle",this._recognition=null,this.target=null,this.listening=!1}static{Gt=this}static{this.activeInstance=null}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.listen);const e=new(window.SpeechRecognition||window.webkitSpeechRecognition);e.continuous=this.continuous,e.interimResults=this.interimResults,e.maxAlternatives=this.maxAlternatives,e.onresult=e=>{this.onResult(e)},e.onspeechend=e=>{this.stop(e)},e.onerror=e=>{this.error(e)},this._recognition=e,this.target=document.getElementById(this.for)||this.querySelector(this.for)||this.parentElement?.querySelector(this.for),null==this.target&&console.log(`qbo-microphone: no target found for ${this.for}`)}disconnectedCallback(){this.removeEventListener("click",this.listen),super.disconnectedCallback()}onResult(e){const t=e.results[e.results.length-1][0].transcript;if(console.log("Result: "+t),null==this.target)return;const o=this.target;if(o instanceof HTMLInputElement)"radio"===o.type?o.value===t&&(o.checked=!0):this.continuous?o.value+=t:o.value=t;else if(o instanceof HTMLTextAreaElement)this.continuous?o.value+=t:o.value=t;else if(o instanceof HTMLSelectElement)for(let e=0;e<o.options.length;e++)if(o.options[e].value===t||o.options[e].text===t){o.selectedIndex=e;break}}listen(e){this.listening?this.stop(e):this.start()}start(){this.listening=!0,Gt.activeInstance=this,this.activeClass&&this.classList.add(this.activeClass),console.log("listening"),this._recognition.start()}stop(e){this.listening=!1,Gt.activeInstance=null,this.activeClass&&this.classList.remove(this.activeClass),console.log("stopped listening"),this._recognition.stop(),this._recognition.abort()}error(e){console.log("Error during speech recognition:",e)}render(){return Ue`<slot><qbo-icon icon="headset" type="button"></qbo-icon></slot>`}};Ut([mt({type:Boolean}),Ft("design:type",Object)],Wt.prototype,"renderInHost",void 0),Ut([mt({type:Boolean}),Ft("design:type",Object)],Wt.prototype,"continuous",void 0),Ut([mt({type:Boolean}),Ft("design:type",Object)],Wt.prototype,"interimResults",void 0),Ut([mt({type:Number}),Ft("design:type",Object)],Wt.prototype,"maxAlternatives",void 0),Ut([mt({type:String}),Ft("design:type",Object)],Wt.prototype,"for",void 0),Ut([mt({type:String}),Ft("design:type",Object)],Wt.prototype,"class",void 0),Ut([mt({type:String}),Ft("design:type",Object)],Wt.prototype,"activeClass",void 0),Wt=Gt=Ut([dt("qbo-microphone")],Wt);var Xt="top",Yt="bottom",Qt="right",Kt="left",Jt="auto",Zt=[Xt,Yt,Qt,Kt],eo="start",to="end",oo="clippingParents",ro="viewport",no="popper",io="reference",ao=Zt.reduce((function(e,t){return e.concat([t+"-"+eo,t+"-"+to])}),[]),lo=[].concat(Zt,[Jt]).reduce((function(e,t){return e.concat([t,t+"-"+eo,t+"-"+to])}),[]),so="beforeRead",bo="read",co="afterRead",fo="beforeMain",po="main",mo="afterMain",go="beforeWrite",uo="write",ho="afterWrite",vo=[so,bo,co,fo,po,mo,go,uo,ho];function xo(e){return e?(e.nodeName||"").toLowerCase():null}function wo(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function yo(e){return e instanceof wo(e).Element||e instanceof Element}function ko(e){return e instanceof wo(e).HTMLElement||e instanceof HTMLElement}function _o(e){return"undefined"!=typeof ShadowRoot&&(e instanceof wo(e).ShadowRoot||e instanceof ShadowRoot)}const qo={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var o=t.styles[e]||{},r=t.attributes[e]||{},n=t.elements[e];ko(n)&&xo(n)&&(Object.assign(n.style,o),Object.keys(r).forEach((function(e){var t=r[e];!1===t?n.removeAttribute(e):n.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],n=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:o[e]).reduce((function(e,t){return e[t]="",e}),{});ko(r)&&xo(r)&&(Object.assign(r.style,i),Object.keys(n).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function jo(e){return e.split("-")[0]}var zo=Math.max,Co=Math.min,$o=Math.round;function So(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Ao(){return!/^((?!chrome|android).)*safari/i.test(So())}function Oo(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1);var r=e.getBoundingClientRect(),n=1,i=1;t&&ko(e)&&(n=e.offsetWidth>0&&$o(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&$o(r.height)/e.offsetHeight||1);var a=(yo(e)?wo(e):window).visualViewport,l=!Ao()&&o,s=(r.left+(l&&a?a.offsetLeft:0))/n,b=(r.top+(l&&a?a.offsetTop:0))/i,c=r.width/n,d=r.height/i;return{width:c,height:d,top:b,right:s+c,bottom:b+d,left:s,x:s,y:b}}function Eo(e){var t=Oo(e),o=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:r}}function Ro(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&_o(o)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function To(e){return wo(e).getComputedStyle(e)}function Mo(e){return["table","td","th"].indexOf(xo(e))>=0}function Lo(e){return((yo(e)?e.ownerDocument:e.document)||window.document).documentElement}function Do(e){return"html"===xo(e)?e:e.assignedSlot||e.parentNode||(_o(e)?e.host:null)||Lo(e)}function Io(e){return ko(e)&&"fixed"!==To(e).position?e.offsetParent:null}function Po(e){for(var t=wo(e),o=Io(e);o&&Mo(o)&&"static"===To(o).position;)o=Io(o);return o&&("html"===xo(o)||"body"===xo(o)&&"static"===To(o).position)?t:o||function(e){var t=/firefox/i.test(So());if(/Trident/i.test(So())&&ko(e)&&"fixed"===To(e).position)return null;var o=Do(e);for(_o(o)&&(o=o.host);ko(o)&&["html","body"].indexOf(xo(o))<0;){var r=To(o);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return o;o=o.parentNode}return null}(e)||t}function Ho(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Bo(e,t,o){return zo(e,Co(t,o))}function No(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Vo(e,t){return t.reduce((function(t,o){return t[o]=e,t}),{})}const Go={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,o=e.state,r=e.name,n=e.options,i=o.elements.arrow,a=o.modifiersData.popperOffsets,l=jo(o.placement),s=Ho(l),b=[Kt,Qt].indexOf(l)>=0?"height":"width";if(i&&a){var c=function(e,t){return No("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Vo(e,Zt))}(n.padding,o),d=Eo(i),f="y"===s?Xt:Kt,p="y"===s?Yt:Qt,m=o.rects.reference[b]+o.rects.reference[s]-a[s]-o.rects.popper[b],g=a[s]-o.rects.reference[s],u=Po(i),h=u?"y"===s?u.clientHeight||0:u.clientWidth||0:0,v=m/2-g/2,x=c[f],w=h-d[b]-c[p],y=h/2-d[b]/2+v,k=Bo(x,y,w),_=s;o.modifiersData[r]=((t={})[_]=k,t.centerOffset=k-y,t)}},effect:function(e){var t=e.state,o=e.options.element,r=void 0===o?"[data-popper-arrow]":o;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Ro(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Uo(e){return e.split("-")[1]}var Fo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Wo(e){var t,o=e.popper,r=e.popperRect,n=e.placement,i=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,b=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,m=a.y,g=void 0===m?0:m,u="function"==typeof c?c({x:p,y:g}):{x:p,y:g};p=u.x,g=u.y;var h=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),x=Kt,w=Xt,y=window;if(b){var k=Po(o),_="clientHeight",q="clientWidth";k===wo(o)&&"static"!==To(k=Lo(o)).position&&"absolute"===l&&(_="scrollHeight",q="scrollWidth"),(n===Xt||(n===Kt||n===Qt)&&i===to)&&(w=Yt,g-=(d&&k===y&&y.visualViewport?y.visualViewport.height:k[_])-r.height,g*=s?1:-1),n!==Kt&&(n!==Xt&&n!==Yt||i!==to)||(x=Qt,p-=(d&&k===y&&y.visualViewport?y.visualViewport.width:k[q])-r.width,p*=s?1:-1)}var j,z=Object.assign({position:l},b&&Fo),C=!0===c?function(e,t){var o=e.x,r=e.y,n=t.devicePixelRatio||1;return{x:$o(o*n)/n||0,y:$o(r*n)/n||0}}({x:p,y:g},wo(o)):{x:p,y:g};return p=C.x,g=C.y,s?Object.assign({},z,((j={})[w]=v?"0":"",j[x]=h?"0":"",j.transform=(y.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",j)):Object.assign({},z,((t={})[w]=v?g+"px":"",t[x]=h?p+"px":"",t.transform="",t))}const Xo={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,o=e.options,r=o.gpuAcceleration,n=void 0===r||r,i=o.adaptive,a=void 0===i||i,l=o.roundOffsets,s=void 0===l||l,b={placement:jo(t.placement),variation:Uo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Wo(Object.assign({},b,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Wo(Object.assign({},b,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var Yo={passive:!0};const Qo={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,o=e.instance,r=e.options,n=r.scroll,i=void 0===n||n,a=r.resize,l=void 0===a||a,s=wo(t.elements.popper),b=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&b.forEach((function(e){e.addEventListener("scroll",o.update,Yo)})),l&&s.addEventListener("resize",o.update,Yo),function(){i&&b.forEach((function(e){e.removeEventListener("scroll",o.update,Yo)})),l&&s.removeEventListener("resize",o.update,Yo)}},data:{}};var Ko={left:"right",right:"left",bottom:"top",top:"bottom"};function Jo(e){return e.replace(/left|right|bottom|top/g,(function(e){return Ko[e]}))}var Zo={start:"end",end:"start"};function er(e){return e.replace(/start|end/g,(function(e){return Zo[e]}))}function tr(e){var t=wo(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function or(e){return Oo(Lo(e)).left+tr(e).scrollLeft}function rr(e){var t=To(e),o=t.overflow,r=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+n+r)}function nr(e){return["html","body","#document"].indexOf(xo(e))>=0?e.ownerDocument.body:ko(e)&&rr(e)?e:nr(Do(e))}function ir(e,t){var o;void 0===t&&(t=[]);var r=nr(e),n=r===(null==(o=e.ownerDocument)?void 0:o.body),i=wo(r),a=n?[i].concat(i.visualViewport||[],rr(r)?r:[]):r,l=t.concat(a);return n?l:l.concat(ir(Do(a)))}function ar(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function lr(e,t,o){return t===ro?ar(function(e,t){var o=wo(e),r=Lo(e),n=o.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(n){i=n.width,a=n.height;var b=Ao();(b||!b&&"fixed"===t)&&(l=n.offsetLeft,s=n.offsetTop)}return{width:i,height:a,x:l+or(e),y:s}}(e,o)):yo(t)?function(e,t){var o=Oo(e,!1,"fixed"===t);return o.top=o.top+e.clientTop,o.left=o.left+e.clientLeft,o.bottom=o.top+e.clientHeight,o.right=o.left+e.clientWidth,o.width=e.clientWidth,o.height=e.clientHeight,o.x=o.left,o.y=o.top,o}(t,o):ar(function(e){var t,o=Lo(e),r=tr(e),n=null==(t=e.ownerDocument)?void 0:t.body,i=zo(o.scrollWidth,o.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),a=zo(o.scrollHeight,o.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),l=-r.scrollLeft+or(e),s=-r.scrollTop;return"rtl"===To(n||o).direction&&(l+=zo(o.clientWidth,n?n.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(Lo(e)))}function sr(e){var t,o=e.reference,r=e.element,n=e.placement,i=n?jo(n):null,a=n?Uo(n):null,l=o.x+o.width/2-r.width/2,s=o.y+o.height/2-r.height/2;switch(i){case Xt:t={x:l,y:o.y-r.height};break;case Yt:t={x:l,y:o.y+o.height};break;case Qt:t={x:o.x+o.width,y:s};break;case Kt:t={x:o.x-r.width,y:s};break;default:t={x:o.x,y:o.y}}var b=i?Ho(i):null;if(null!=b){var c="y"===b?"height":"width";switch(a){case eo:t[b]=t[b]-(o[c]/2-r[c]/2);break;case to:t[b]=t[b]+(o[c]/2-r[c]/2)}}return t}function br(e,t){void 0===t&&(t={});var o=t,r=o.placement,n=void 0===r?e.placement:r,i=o.strategy,a=void 0===i?e.strategy:i,l=o.boundary,s=void 0===l?oo:l,b=o.rootBoundary,c=void 0===b?ro:b,d=o.elementContext,f=void 0===d?no:d,p=o.altBoundary,m=void 0!==p&&p,g=o.padding,u=void 0===g?0:g,h=No("number"!=typeof u?u:Vo(u,Zt)),v=f===no?io:no,x=e.rects.popper,w=e.elements[m?v:f],y=function(e,t,o,r){var n="clippingParents"===t?function(e){var t=ir(Do(e)),o=["absolute","fixed"].indexOf(To(e).position)>=0&&ko(e)?Po(e):e;return yo(o)?t.filter((function(e){return yo(e)&&Ro(e,o)&&"body"!==xo(e)})):[]}(e):[].concat(t),i=[].concat(n,[o]),a=i[0],l=i.reduce((function(t,o){var n=lr(e,o,r);return t.top=zo(n.top,t.top),t.right=Co(n.right,t.right),t.bottom=Co(n.bottom,t.bottom),t.left=zo(n.left,t.left),t}),lr(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}(yo(w)?w:w.contextElement||Lo(e.elements.popper),s,c,a),k=Oo(e.elements.reference),_=sr({reference:k,element:x,strategy:"absolute",placement:n}),q=ar(Object.assign({},x,_)),j=f===no?q:k,z={top:y.top-j.top+h.top,bottom:j.bottom-y.bottom+h.bottom,left:y.left-j.left+h.left,right:j.right-y.right+h.right},C=e.modifiersData.offset;if(f===no&&C){var $=C[n];Object.keys(z).forEach((function(e){var t=[Qt,Yt].indexOf(e)>=0?1:-1,o=[Xt,Yt].indexOf(e)>=0?"y":"x";z[e]+=$[o]*t}))}return z}const cr={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,o=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var n=o.mainAxis,i=void 0===n||n,a=o.altAxis,l=void 0===a||a,s=o.fallbackPlacements,b=o.padding,c=o.boundary,d=o.rootBoundary,f=o.altBoundary,p=o.flipVariations,m=void 0===p||p,g=o.allowedAutoPlacements,u=t.options.placement,h=jo(u),v=s||(h!==u&&m?function(e){if(jo(e)===Jt)return[];var t=Jo(e);return[er(e),t,er(t)]}(u):[Jo(u)]),x=[u].concat(v).reduce((function(e,o){return e.concat(jo(o)===Jt?function(e,t){void 0===t&&(t={});var o=t,r=o.placement,n=o.boundary,i=o.rootBoundary,a=o.padding,l=o.flipVariations,s=o.allowedAutoPlacements,b=void 0===s?lo:s,c=Uo(r),d=c?l?ao:ao.filter((function(e){return Uo(e)===c})):Zt,f=d.filter((function(e){return b.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,o){return t[o]=br(e,{placement:o,boundary:n,rootBoundary:i,padding:a})[jo(o)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:o,boundary:c,rootBoundary:d,padding:b,flipVariations:m,allowedAutoPlacements:g}):o)}),[]),w=t.rects.reference,y=t.rects.popper,k=new Map,_=!0,q=x[0],j=0;j<x.length;j++){var z=x[j],C=jo(z),$=Uo(z)===eo,S=[Xt,Yt].indexOf(C)>=0,A=S?"width":"height",O=br(t,{placement:z,boundary:c,rootBoundary:d,altBoundary:f,padding:b}),E=S?$?Qt:Kt:$?Yt:Xt;w[A]>y[A]&&(E=Jo(E));var R=Jo(E),T=[];if(i&&T.push(O[C]<=0),l&&T.push(O[E]<=0,O[R]<=0),T.every((function(e){return e}))){q=z,_=!1;break}k.set(z,T)}if(_)for(var M=function(e){var t=x.find((function(t){var o=k.get(t);if(o)return o.slice(0,e).every((function(e){return e}))}));if(t)return q=t,"break"},L=m?3:1;L>0&&"break"!==M(L);L--);t.placement!==q&&(t.modifiersData[r]._skip=!0,t.placement=q,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function dr(e,t,o){return void 0===o&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function fr(e){return[Xt,Qt,Yt,Kt].some((function(t){return e[t]>=0}))}const pr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,o=e.name,r=t.rects.reference,n=t.rects.popper,i=t.modifiersData.preventOverflow,a=br(t,{elementContext:"reference"}),l=br(t,{altBoundary:!0}),s=dr(a,r),b=dr(l,n,i),c=fr(s),d=fr(b);t.modifiersData[o]={referenceClippingOffsets:s,popperEscapeOffsets:b,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}},mr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,o=e.options,r=e.name,n=o.offset,i=void 0===n?[0,0]:n,a=lo.reduce((function(e,o){return e[o]=function(e,t,o){var r=jo(e),n=[Kt,Xt].indexOf(r)>=0?-1:1,i="function"==typeof o?o(Object.assign({},t,{placement:e})):o,a=i[0],l=i[1];return a=a||0,l=(l||0)*n,[Kt,Qt].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}(o,t.rects,i),e}),{}),l=a[t.placement],s=l.x,b=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=b),t.modifiersData[r]=a}},gr={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,o=e.name;t.modifiersData[o]=sr({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},ur={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,o=e.options,r=e.name,n=o.mainAxis,i=void 0===n||n,a=o.altAxis,l=void 0!==a&&a,s=o.boundary,b=o.rootBoundary,c=o.altBoundary,d=o.padding,f=o.tether,p=void 0===f||f,m=o.tetherOffset,g=void 0===m?0:m,u=br(t,{boundary:s,rootBoundary:b,padding:d,altBoundary:c}),h=jo(t.placement),v=Uo(t.placement),x=!v,w=Ho(h),y="x"===w?"y":"x",k=t.modifiersData.popperOffsets,_=t.rects.reference,q=t.rects.popper,j="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,z="number"==typeof j?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,$={x:0,y:0};if(k){if(i){var S,A="y"===w?Xt:Kt,O="y"===w?Yt:Qt,E="y"===w?"height":"width",R=k[w],T=R+u[A],M=R-u[O],L=p?-q[E]/2:0,D=v===eo?_[E]:q[E],I=v===eo?-q[E]:-_[E],P=t.elements.arrow,H=p&&P?Eo(P):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},N=B[A],V=B[O],G=Bo(0,_[E],H[E]),U=x?_[E]/2-L-G-N-z.mainAxis:D-G-N-z.mainAxis,F=x?-_[E]/2+L+G+V+z.mainAxis:I+G+V+z.mainAxis,W=t.elements.arrow&&Po(t.elements.arrow),X=W?"y"===w?W.clientTop||0:W.clientLeft||0:0,Y=null!=(S=null==C?void 0:C[w])?S:0,Q=R+F-Y,K=Bo(p?Co(T,R+U-Y-X):T,R,p?zo(M,Q):M);k[w]=K,$[w]=K-R}if(l){var J,Z="x"===w?Xt:Kt,ee="x"===w?Yt:Qt,te=k[y],oe="y"===y?"height":"width",re=te+u[Z],ne=te-u[ee],ie=-1!==[Xt,Kt].indexOf(h),ae=null!=(J=null==C?void 0:C[y])?J:0,le=ie?re:te-_[oe]-q[oe]-ae+z.altAxis,se=ie?te+_[oe]+q[oe]-ae-z.altAxis:ne,be=p&&ie?function(e,t,o){var r=Bo(e,t,o);return r>o?o:r}(le,te,se):Bo(p?le:re,te,p?se:ne);k[y]=be,$[y]=be-te}t.modifiersData[r]=$}},requiresIfExists:["offset"]};function hr(e,t,o){void 0===o&&(o=!1);var r,n,i=ko(t),a=ko(t)&&function(e){var t=e.getBoundingClientRect(),o=$o(t.width)/e.offsetWidth||1,r=$o(t.height)/e.offsetHeight||1;return 1!==o||1!==r}(t),l=Lo(t),s=Oo(e,a,o),b={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!o)&&(("body"!==xo(t)||rr(l))&&(b=(r=t)!==wo(r)&&ko(r)?{scrollLeft:(n=r).scrollLeft,scrollTop:n.scrollTop}:tr(r)),ko(t)?((c=Oo(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):l&&(c.x=or(l))),{x:s.left+b.scrollLeft-c.x,y:s.top+b.scrollTop-c.y,width:s.width,height:s.height}}function vr(e){var t=new Map,o=new Set,r=[];function n(e){o.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!o.has(e)){var r=t.get(e);r&&n(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){o.has(e.name)||n(e)})),r}var xr={placement:"bottom",modifiers:[],strategy:"absolute"};function wr(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function yr(e){void 0===e&&(e={});var t=e,o=t.defaultModifiers,r=void 0===o?[]:o,n=t.defaultOptions,i=void 0===n?xr:n;return function(e,t,o){void 0===o&&(o=i);var n,a,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},xr,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],b=!1,c={state:l,setOptions:function(o){var n="function"==typeof o?o(l.options):o;d(),l.options=Object.assign({},i,l.options,n),l.scrollParents={reference:yo(e)?ir(e):e.contextElement?ir(e.contextElement):[],popper:ir(t)};var a,b,f=function(e){var t=vr(e);return vo.reduce((function(e,o){return e.concat(t.filter((function(e){return e.phase===o})))}),[])}((a=[].concat(r,l.options.modifiers),b=a.reduce((function(e,t){var o=e[t.name];return e[t.name]=o?Object.assign({},o,t,{options:Object.assign({},o.options,t.options),data:Object.assign({},o.data,t.data)}):t,e}),{}),Object.keys(b).map((function(e){return b[e]}))));return l.orderedModifiers=f.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,o=e.options,r=void 0===o?{}:o,n=e.effect;if("function"==typeof n){var i=n({state:l,name:t,instance:c,options:r});s.push(i||function(){})}})),c.update()},forceUpdate:function(){if(!b){var e=l.elements,t=e.reference,o=e.popper;if(wr(t,o)){l.rects={reference:hr(t,Po(o),"fixed"===l.options.strategy),popper:Eo(o)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var n=l.orderedModifiers[r],i=n.fn,a=n.options,s=void 0===a?{}:a,d=n.name;"function"==typeof i&&(l=i({state:l,options:s,name:d,instance:c})||l)}else l.reset=!1,r=-1}}},update:(n=function(){return new Promise((function(e){c.forceUpdate(),e(l)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(n())}))}))),a}),destroy:function(){d(),b=!0}};if(!wr(e,t))return c;function d(){s.forEach((function(e){return e()})),s=[]}return c.setOptions(o).then((function(e){!b&&o.onFirstUpdate&&o.onFirstUpdate(e)})),c}}var kr=yr(),_r=yr({defaultModifiers:[Qo,gr,Xo,qo,mr,cr,ur,Go,pr]}),qr=yr({defaultModifiers:[Qo,gr,Xo,qo]});const jr=new Map,zr={set(e,t,o){jr.has(e)||jr.set(e,new Map);const r=jr.get(e);r.has(t)||0===r.size?r.set(t,o):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`)},get:(e,t)=>jr.has(e)&&jr.get(e).get(t)||null,remove(e,t){if(!jr.has(e))return;const o=jr.get(e);o.delete(t),0===o.size&&jr.delete(e)}},Cr="transitionend",$r=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,((e,t)=>`#${CSS.escape(t)}`))),e),Sr=e=>{e.dispatchEvent(new Event(Cr))},Ar=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),Or=e=>Ar(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector($r(e)):null,Er=e=>{if(!Ar(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),o=e.closest("details:not([open])");if(!o)return t;if(o!==e){const t=e.closest("summary");if(t&&t.parentNode!==o)return!1;if(null===t)return!1}return t},Rr=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),Tr=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?Tr(e.parentNode):null},Mr=()=>{},Lr=e=>{e.offsetHeight},Dr=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Ir=[],Pr=()=>"rtl"===document.documentElement.dir,Hr=e=>{var t;t=()=>{const t=Dr();if(t){const o=e.NAME,r=t.fn[o];t.fn[o]=e.jQueryInterface,t.fn[o].Constructor=e,t.fn[o].noConflict=()=>(t.fn[o]=r,e.jQueryInterface)}},"loading"===document.readyState?(Ir.length||document.addEventListener("DOMContentLoaded",(()=>{for(const e of Ir)e()})),Ir.push(t)):t()},Br=(e,t=[],o=e)=>"function"==typeof e?e(...t):o,Nr=(e,t,o=!0)=>{if(!o)return void Br(e);const r=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:o}=window.getComputedStyle(e);const r=Number.parseFloat(t),n=Number.parseFloat(o);return r||n?(t=t.split(",")[0],o=o.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(o))):0})(t)+5;let n=!1;const i=({target:o})=>{o===t&&(n=!0,t.removeEventListener(Cr,i),Br(e))};t.addEventListener(Cr,i),setTimeout((()=>{n||Sr(t)}),r)},Vr=(e,t,o,r)=>{const n=e.length;let i=e.indexOf(t);return-1===i?!o&&r?e[n-1]:e[0]:(i+=o?1:-1,r&&(i=(i+n)%n),e[Math.max(0,Math.min(i,n-1))])},Gr=/[^.]*(?=\..*)\.|.*/,Ur=/\..*/,Fr=/::\d+$/,Wr={};let Xr=1;const Yr={mouseenter:"mouseover",mouseleave:"mouseout"},Qr=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function Kr(e,t){return t&&`${t}::${Xr++}`||e.uidEvent||Xr++}function Jr(e){const t=Kr(e);return e.uidEvent=t,Wr[t]=Wr[t]||{},Wr[t]}function Zr(e,t,o=null){return Object.values(e).find((e=>e.callable===t&&e.delegationSelector===o))}function en(e,t,o){const r="string"==typeof t,n=r?o:t||o;let i=nn(e);return Qr.has(i)||(i=e),[r,n,i]}function tn(e,t,o,r,n){if("string"!=typeof t||!e)return;let[i,a,l]=en(t,o,r);if(t in Yr){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};a=e(a)}const s=Jr(e),b=s[l]||(s[l]={}),c=Zr(b,a,i?o:null);if(c)return void(c.oneOff=c.oneOff&&n);const d=Kr(a,t.replace(Gr,"")),f=i?function(e,t,o){return function r(n){const i=e.querySelectorAll(t);for(let{target:a}=n;a&&a!==this;a=a.parentNode)for(const l of i)if(l===a)return ln(n,{delegateTarget:a}),r.oneOff&&an.off(e,n.type,t,o),o.apply(a,[n])}}(e,o,a):function(e,t){return function o(r){return ln(r,{delegateTarget:e}),o.oneOff&&an.off(e,r.type,t),t.apply(e,[r])}}(e,a);f.delegationSelector=i?o:null,f.callable=a,f.oneOff=n,f.uidEvent=d,b[d]=f,e.addEventListener(l,f,i)}function on(e,t,o,r,n){const i=Zr(t[o],r,n);i&&(e.removeEventListener(o,i,Boolean(n)),delete t[o][i.uidEvent])}function rn(e,t,o,r){const n=t[o]||{};for(const[i,a]of Object.entries(n))i.includes(r)&&on(e,t,o,a.callable,a.delegationSelector)}function nn(e){return e=e.replace(Ur,""),Yr[e]||e}const an={on(e,t,o,r){tn(e,t,o,r,!1)},one(e,t,o,r){tn(e,t,o,r,!0)},off(e,t,o,r){if("string"!=typeof t||!e)return;const[n,i,a]=en(t,o,r),l=a!==t,s=Jr(e),b=s[a]||{},c=t.startsWith(".");if(void 0===i){if(c)for(const o of Object.keys(s))rn(e,s,o,t.slice(1));for(const[o,r]of Object.entries(b)){const n=o.replace(Fr,"");l&&!t.includes(n)||on(e,s,a,r.callable,r.delegationSelector)}}else{if(!Object.keys(b).length)return;on(e,s,a,i,n?o:null)}},trigger(e,t,o){if("string"!=typeof t||!e)return null;const r=Dr();let n=null,i=!0,a=!0,l=!1;t!==nn(t)&&r&&(n=r.Event(t,o),r(e).trigger(n),i=!n.isPropagationStopped(),a=!n.isImmediatePropagationStopped(),l=n.isDefaultPrevented());const s=ln(new Event(t,{bubbles:i,cancelable:!0}),o);return l&&s.preventDefault(),a&&e.dispatchEvent(s),s.defaultPrevented&&n&&n.preventDefault(),s}};function ln(e,t={}){for(const[o,r]of Object.entries(t))try{e[o]=r}catch(t){Object.defineProperty(e,o,{configurable:!0,get:()=>r})}return e}function sn(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function bn(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}const cn={setDataAttribute(e,t,o){e.setAttribute(`data-bs-${bn(t)}`,o)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${bn(t)}`)},getDataAttributes(e){if(!e)return{};const t={},o=Object.keys(e.dataset).filter((e=>e.startsWith("bs")&&!e.startsWith("bsConfig")));for(const r of o){let o=r.replace(/^bs/,"");o=o.charAt(0).toLowerCase()+o.slice(1,o.length),t[o]=sn(e.dataset[r])}return t},getDataAttribute:(e,t)=>sn(e.getAttribute(`data-bs-${bn(t)}`))};class dn{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const o=Ar(t)?cn.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof o?o:{},...Ar(t)?cn.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[r,n]of Object.entries(t)){const t=e[r],i=Ar(t)?"element":null==(o=t)?`${o}`:Object.prototype.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(n).test(i))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${i}" but expected type "${n}".`)}var o}}class fn extends dn{constructor(e,t){super(),(e=Or(e))&&(this._element=e,this._config=this._getConfig(t),zr.set(this._element,this.constructor.DATA_KEY,this))}dispose(){zr.remove(this._element,this.constructor.DATA_KEY),an.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,o=!0){Nr(e,t,o)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return zr.get(Or(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.3.3"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const pn=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let o=e.getAttribute("href");if(!o||!o.includes("#")&&!o.startsWith("."))return null;o.includes("#")&&!o.startsWith("#")&&(o=`#${o.split("#")[1]}`),t=o&&"#"!==o?o.trim():null}return t?t.split(",").map((e=>$r(e))).join(","):null},mn={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const o=[];let r=e.parentNode.closest(t);for(;r;)o.push(r),r=r.parentNode.closest(t);return o},prev(e,t){let o=e.previousElementSibling;for(;o;){if(o.matches(t))return[o];o=o.previousElementSibling}return[]},next(e,t){let o=e.nextElementSibling;for(;o;){if(o.matches(t))return[o];o=o.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(",");return this.find(t,e).filter((e=>!Rr(e)&&Er(e)))},getSelectorFromElement(e){const t=pn(e);return t&&mn.findOne(t)?t:null},getElementFromSelector(e){const t=pn(e);return t?mn.findOne(t):null},getMultipleElementsFromSelector(e){const t=pn(e);return t?mn.find(t):[]}},gn=(e,t="hide")=>{const o=`click.dismiss${e.EVENT_KEY}`,r=e.NAME;an.on(document,o,`[data-bs-dismiss="${r}"]`,(function(o){if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),Rr(this))return;const n=mn.getElementFromSelector(this)||this.closest(`.${r}`);e.getOrCreateInstance(n)[t]()}))},un=".bs.alert",hn=`close${un}`,vn=`closed${un}`;class xn extends fn{static get NAME(){return"alert"}close(){if(an.trigger(this._element,hn).defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,e)}_destroyElement(){this._element.remove(),an.trigger(this._element,vn),this.dispose()}static jQueryInterface(e){return this.each((function(){const t=xn.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}gn(xn,"close"),Hr(xn);const wn='[data-bs-toggle="button"]';class yn extends fn{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each((function(){const t=yn.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}an.on(document,"click.bs.button.data-api",wn,(e=>{e.preventDefault();const t=e.target.closest(wn);yn.getOrCreateInstance(t).toggle()})),Hr(yn);const kn=".bs.swipe",_n=`touchstart${kn}`,qn=`touchmove${kn}`,jn=`touchend${kn}`,zn=`pointerdown${kn}`,Cn=`pointerup${kn}`,$n={endCallback:null,leftCallback:null,rightCallback:null},Sn={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class An extends dn{constructor(e,t){super(),this._element=e,e&&An.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return $n}static get DefaultType(){return Sn}static get NAME(){return"swipe"}dispose(){an.off(this._element,kn)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),Br(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=40)return;const t=e/this._deltaX;this._deltaX=0,t&&Br(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(an.on(this._element,zn,(e=>this._start(e))),an.on(this._element,Cn,(e=>this._end(e))),this._element.classList.add("pointer-event")):(an.on(this._element,_n,(e=>this._start(e))),an.on(this._element,qn,(e=>this._move(e))),an.on(this._element,jn,(e=>this._end(e))))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&("pen"===e.pointerType||"touch"===e.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const On=".bs.carousel",En=".data-api",Rn="ArrowLeft",Tn="ArrowRight",Mn="next",Ln="prev",Dn="left",In="right",Pn=`slide${On}`,Hn=`slid${On}`,Bn=`keydown${On}`,Nn=`mouseenter${On}`,Vn=`mouseleave${On}`,Gn=`dragstart${On}`,Un=`load${On}${En}`,Fn=`click${On}${En}`,Wn="carousel",Xn="active",Yn=".active",Qn=".carousel-item",Kn=Yn+Qn,Jn={[Rn]:In,[Tn]:Dn},Zn={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},ei={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ti extends fn{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=mn.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===Wn&&this.cycle()}static get Default(){return Zn}static get DefaultType(){return ei}static get NAME(){return"carousel"}next(){this._slide(Mn)}nextWhenVisible(){!document.hidden&&Er(this._element)&&this.next()}prev(){this._slide(Ln)}pause(){this._isSliding&&Sr(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?an.one(this._element,Hn,(()=>this.cycle())):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void an.one(this._element,Hn,(()=>this.to(e)));const o=this._getItemIndex(this._getActive());if(o===e)return;const r=e>o?Mn:Ln;this._slide(r,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&an.on(this._element,Bn,(e=>this._keydown(e))),"hover"===this._config.pause&&(an.on(this._element,Nn,(()=>this.pause())),an.on(this._element,Vn,(()=>this._maybeEnableCycle()))),this._config.touch&&An.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const e of mn.find(".carousel-item img",this._element))an.on(e,Gn,(e=>e.preventDefault()));const e={leftCallback:()=>this._slide(this._directionToOrder(Dn)),rightCallback:()=>this._slide(this._directionToOrder(In)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new An(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=Jn[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=mn.findOne(Yn,this._indicatorsElement);t.classList.remove(Xn),t.removeAttribute("aria-current");const o=mn.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);o&&(o.classList.add(Xn),o.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const o=this._getActive(),r=e===Mn,n=t||Vr(this._getItems(),o,r,this._config.wrap);if(n===o)return;const i=this._getItemIndex(n),a=t=>an.trigger(this._element,t,{relatedTarget:n,direction:this._orderToDirection(e),from:this._getItemIndex(o),to:i});if(a(Pn).defaultPrevented)return;if(!o||!n)return;const l=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(i),this._activeElement=n;const s=r?"carousel-item-start":"carousel-item-end",b=r?"carousel-item-next":"carousel-item-prev";n.classList.add(b),Lr(n),o.classList.add(s),n.classList.add(s),this._queueCallback((()=>{n.classList.remove(s,b),n.classList.add(Xn),o.classList.remove(Xn,b,s),this._isSliding=!1,a(Hn)}),o,this._isAnimated()),l&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return mn.findOne(Kn,this._element)}_getItems(){return mn.find(Qn,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Pr()?e===Dn?Ln:Mn:e===Dn?Mn:Ln}_orderToDirection(e){return Pr()?e===Ln?Dn:In:e===Ln?In:Dn}static jQueryInterface(e){return this.each((function(){const t=ti.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}else t.to(e)}))}}an.on(document,Fn,"[data-bs-slide], [data-bs-slide-to]",(function(e){const t=mn.getElementFromSelector(this);if(!t||!t.classList.contains(Wn))return;e.preventDefault();const o=ti.getOrCreateInstance(t),r=this.getAttribute("data-bs-slide-to");return r?(o.to(r),void o._maybeEnableCycle()):"next"===cn.getDataAttribute(this,"slide")?(o.next(),void o._maybeEnableCycle()):(o.prev(),void o._maybeEnableCycle())})),an.on(window,Un,(()=>{const e=mn.find('[data-bs-ride="carousel"]');for(const t of e)ti.getOrCreateInstance(t)})),Hr(ti);const oi=".bs.collapse",ri=`show${oi}`,ni=`shown${oi}`,ii=`hide${oi}`,ai=`hidden${oi}`,li=`click${oi}.data-api`,si="show",bi="collapse",ci="collapsing",di=`:scope .${bi} .${bi}`,fi='[data-bs-toggle="collapse"]',pi={parent:null,toggle:!0},mi={parent:"(null|element)",toggle:"boolean"};class gi extends fn{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const o=mn.find(fi);for(const e of o){const t=mn.getSelectorFromElement(e),o=mn.find(t).filter((e=>e===this._element));null!==t&&o.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return pi}static get DefaultType(){return mi}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((e=>e!==this._element)).map((e=>gi.getOrCreateInstance(e,{toggle:!1})))),e.length&&e[0]._isTransitioning)return;if(an.trigger(this._element,ri).defaultPrevented)return;for(const t of e)t.hide();const t=this._getDimension();this._element.classList.remove(bi),this._element.classList.add(ci),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(ci),this._element.classList.add(bi,si),this._element.style[t]="",an.trigger(this._element,ni)}),this._element,!0),this._element.style[t]=`${this._element[o]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(an.trigger(this._element,ii).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,Lr(this._element),this._element.classList.add(ci),this._element.classList.remove(bi,si);for(const e of this._triggerArray){const t=mn.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0,this._element.style[e]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(ci),this._element.classList.add(bi),an.trigger(this._element,ai)}),this._element,!0)}_isShown(e=this._element){return e.classList.contains(si)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=Or(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(fi);for(const t of e){const e=mn.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=mn.find(di,this._config.parent);return mn.find(e,this._config.parent).filter((e=>!t.includes(e)))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const o of e)o.classList.toggle("collapsed",!t),o.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each((function(){const o=gi.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===o[e])throw new TypeError(`No method named "${e}"`);o[e]()}}))}}an.on(document,li,fi,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const e of mn.getMultipleElementsFromSelector(this))gi.getOrCreateInstance(e,{toggle:!1}).toggle()})),Hr(gi);const ui="dropdown",hi=".bs.dropdown",vi=".data-api",xi="ArrowUp",wi="ArrowDown",yi=`hide${hi}`,ki=`hidden${hi}`,_i=`show${hi}`,qi=`shown${hi}`,ji=`click${hi}${vi}`,zi=`keydown${hi}${vi}`,Ci=`keyup${hi}${vi}`,$i="show",Si='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Ai=`${Si}.${$i}`,Oi=".dropdown-menu",Ei=Pr()?"top-end":"top-start",Ri=Pr()?"top-start":"top-end",Ti=Pr()?"bottom-end":"bottom-start",Mi=Pr()?"bottom-start":"bottom-end",Li=Pr()?"left-start":"right-start",Di=Pr()?"right-start":"left-start",Ii={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Pi={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Hi extends fn{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=mn.next(this._element,Oi)[0]||mn.prev(this._element,Oi)[0]||mn.findOne(Oi,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Ii}static get DefaultType(){return Pi}static get NAME(){return ui}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Rr(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!an.trigger(this._element,_i,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const e of[].concat(...document.body.children))an.on(e,"mouseover",Mr);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add($i),this._element.classList.add($i),an.trigger(this._element,qi,e)}}hide(){if(Rr(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!an.trigger(this._element,yi,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))an.off(e,"mouseover",Mr);this._popper&&this._popper.destroy(),this._menu.classList.remove($i),this._element.classList.remove($i),this._element.setAttribute("aria-expanded","false"),cn.removeDataAttribute(this._menu,"popper"),an.trigger(this._element,ki,e)}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!Ar(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${ui.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){let e=this._element;"parent"===this._config.reference?e=this._parent:Ar(this._config.reference)?e=Or(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=_r(e,this._menu,t)}_isShown(){return this._menu.classList.contains($i)}_getPlacement(){const e=this._parent;if(e.classList.contains("dropend"))return Li;if(e.classList.contains("dropstart"))return Di;if(e.classList.contains("dropup-center"))return"top";if(e.classList.contains("dropdown-center"))return"bottom";const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?Ri:Ei:t?Mi:Ti}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(cn.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...Br(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const o=mn.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((e=>Er(e)));o.length&&Vr(o,t,e===wi,!o.includes(t)).focus()}static jQueryInterface(e){return this.each((function(){const t=Hi.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}static clearMenus(e){if(2===e.button||"keyup"===e.type&&"Tab"!==e.key)return;const t=mn.find(Ai);for(const o of t){const t=Hi.getInstance(o);if(!t||!1===t._config.autoClose)continue;const r=e.composedPath(),n=r.includes(t._menu);if(r.includes(t._element)||"inside"===t._config.autoClose&&!n||"outside"===t._config.autoClose&&n)continue;if(t._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const i={relatedTarget:t._element};"click"===e.type&&(i.clickEvent=e),t._completeHide(i)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),o="Escape"===e.key,r=[xi,wi].includes(e.key);if(!r&&!o)return;if(t&&!o)return;e.preventDefault();const n=this.matches(Si)?this:mn.prev(this,Si)[0]||mn.next(this,Si)[0]||mn.findOne(Si,e.delegateTarget.parentNode),i=Hi.getOrCreateInstance(n);if(r)return e.stopPropagation(),i.show(),void i._selectMenuItem(e);i._isShown()&&(e.stopPropagation(),i.hide(),n.focus())}}an.on(document,zi,Si,Hi.dataApiKeydownHandler),an.on(document,zi,Oi,Hi.dataApiKeydownHandler),an.on(document,ji,Hi.clearMenus),an.on(document,Ci,Hi.clearMenus),an.on(document,ji,Si,(function(e){e.preventDefault(),Hi.getOrCreateInstance(this).toggle()})),Hr(Hi);const Bi="backdrop",Ni="show",Vi=`mousedown.bs.${Bi}`,Gi={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Ui={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Fi extends dn{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Gi}static get DefaultType(){return Ui}static get NAME(){return Bi}show(e){if(!this._config.isVisible)return void Br(e);this._append();const t=this._getElement();this._config.isAnimated&&Lr(t),t.classList.add(Ni),this._emulateAnimation((()=>{Br(e)}))}hide(e){this._config.isVisible?(this._getElement().classList.remove(Ni),this._emulateAnimation((()=>{this.dispose(),Br(e)}))):Br(e)}dispose(){this._isAppended&&(an.off(this._element,Vi),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Or(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),an.on(e,Vi,(()=>{Br(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(e){Nr(e,this._getElement(),this._config.isAnimated)}}const Wi=".bs.focustrap",Xi=`focusin${Wi}`,Yi=`keydown.tab${Wi}`,Qi="backward",Ki={autofocus:!0,trapElement:null},Ji={autofocus:"boolean",trapElement:"element"};class Zi extends dn{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Ki}static get DefaultType(){return Ji}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),an.off(document,Wi),an.on(document,Xi,(e=>this._handleFocusin(e))),an.on(document,Yi,(e=>this._handleKeydown(e))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,an.off(document,Wi))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const o=mn.focusableChildren(t);0===o.length?t.focus():this._lastTabNavDirection===Qi?o[o.length-1].focus():o[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?Qi:"forward")}}const ea=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ta=".sticky-top",oa="padding-right",ra="margin-right";class na{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,oa,(t=>t+e)),this._setElementAttributes(ea,oa,(t=>t+e)),this._setElementAttributes(ta,ra,(t=>t-e))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,oa),this._resetElementAttributes(ea,oa),this._resetElementAttributes(ta,ra)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,o){const r=this.getWidth();this._applyManipulationCallback(e,(e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+r)return;this._saveInitialAttribute(e,t);const n=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${o(Number.parseFloat(n))}px`)}))}_saveInitialAttribute(e,t){const o=e.style.getPropertyValue(t);o&&cn.setDataAttribute(e,t,o)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,(e=>{const o=cn.getDataAttribute(e,t);null!==o?(cn.removeDataAttribute(e,t),e.style.setProperty(t,o)):e.style.removeProperty(t)}))}_applyManipulationCallback(e,t){if(Ar(e))t(e);else for(const o of mn.find(e,this._element))t(o)}}const ia=".bs.modal",aa=`hide${ia}`,la=`hidePrevented${ia}`,sa=`hidden${ia}`,ba=`show${ia}`,ca=`shown${ia}`,da=`resize${ia}`,fa=`click.dismiss${ia}`,pa=`mousedown.dismiss${ia}`,ma=`keydown.dismiss${ia}`,ga=`click${ia}.data-api`,ua="modal-open",ha="show",va="modal-static",xa={backdrop:!0,focus:!0,keyboard:!0},wa={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class ya extends fn{constructor(e,t){super(e,t),this._dialog=mn.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new na,this._addEventListeners()}static get Default(){return xa}static get DefaultType(){return wa}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||an.trigger(this._element,ba,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(ua),this._adjustDialog(),this._backdrop.show((()=>this._showElement(e))))}hide(){this._isShown&&!this._isTransitioning&&(an.trigger(this._element,aa).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(ha),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())))}dispose(){an.off(window,ia),an.off(this._dialog,ia),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Fi({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Zi({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const t=mn.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),Lr(this._element),this._element.classList.add(ha),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,an.trigger(this._element,ca,{relatedTarget:e})}),this._dialog,this._isAnimated())}_addEventListeners(){an.on(this._element,ma,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),an.on(window,da,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),an.on(this._element,pa,(e=>{an.one(this._element,fa,(t=>{this._element===e.target&&this._element===t.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(ua),this._resetAdjustments(),this._scrollBar.reset(),an.trigger(this._element,sa)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(an.trigger(this._element,la).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(va)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(va),this._queueCallback((()=>{this._element.classList.remove(va),this._queueCallback((()=>{this._element.style.overflowY=t}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),o=t>0;if(o&&!e){const e=Pr()?"paddingLeft":"paddingRight";this._element.style[e]=`${t}px`}if(!o&&e){const e=Pr()?"paddingRight":"paddingLeft";this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each((function(){const o=ya.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===o[e])throw new TypeError(`No method named "${e}"`);o[e](t)}}))}}an.on(document,ga,'[data-bs-toggle="modal"]',(function(e){const t=mn.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),an.one(t,ba,(e=>{e.defaultPrevented||an.one(t,sa,(()=>{Er(this)&&this.focus()}))}));const o=mn.findOne(".modal.show");o&&ya.getInstance(o).hide(),ya.getOrCreateInstance(t).toggle(this)})),gn(ya),Hr(ya);const ka=".bs.offcanvas",_a=".data-api",qa=`load${ka}${_a}`,ja="show",za="showing",Ca="hiding",$a=".offcanvas.show",Sa=`show${ka}`,Aa=`shown${ka}`,Oa=`hide${ka}`,Ea=`hidePrevented${ka}`,Ra=`hidden${ka}`,Ta=`resize${ka}`,Ma=`click${ka}${_a}`,La=`keydown.dismiss${ka}`,Da={backdrop:!0,keyboard:!0,scroll:!1},Ia={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Pa extends fn{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Da}static get DefaultType(){return Ia}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||an.trigger(this._element,Sa,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new na).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(za),this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(ja),this._element.classList.remove(za),an.trigger(this._element,Aa,{relatedTarget:e})}),this._element,!0))}hide(){this._isShown&&(an.trigger(this._element,Oa).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Ca),this._backdrop.hide(),this._queueCallback((()=>{this._element.classList.remove(ja,Ca),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new na).reset(),an.trigger(this._element,Ra)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=Boolean(this._config.backdrop);return new Fi({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"!==this._config.backdrop?this.hide():an.trigger(this._element,Ea)}:null})}_initializeFocusTrap(){return new Zi({trapElement:this._element})}_addEventListeners(){an.on(this._element,La,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():an.trigger(this._element,Ea))}))}static jQueryInterface(e){return this.each((function(){const t=Pa.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}an.on(document,Ma,'[data-bs-toggle="offcanvas"]',(function(e){const t=mn.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),Rr(this))return;an.one(t,Ra,(()=>{Er(this)&&this.focus()}));const o=mn.findOne($a);o&&o!==t&&Pa.getInstance(o).hide(),Pa.getOrCreateInstance(t).toggle(this)})),an.on(window,qa,(()=>{for(const e of mn.find($a))Pa.getOrCreateInstance(e).show()})),an.on(window,Ta,(()=>{for(const e of mn.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&Pa.getOrCreateInstance(e).hide()})),gn(Pa),Hr(Pa);const Ha={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Ba=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Na=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Va=(e,t)=>{const o=e.nodeName.toLowerCase();return t.includes(o)?!Ba.has(o)||Boolean(Na.test(e.nodeValue)):t.filter((e=>e instanceof RegExp)).some((e=>e.test(o)))},Ga={allowList:Ha,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Ua={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Fa={entry:"(string|element|function|null)",selector:"(string|element)"};class Wa extends dn{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Ga}static get DefaultType(){return Ua}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((e=>this._resolvePossibleFunction(e))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[t,o]of Object.entries(this._config.content))this._setContent(e,o,t);const t=e.children[0],o=this._resolvePossibleFunction(this._config.extraClass);return o&&t.classList.add(...o.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,o]of Object.entries(e))super._typeCheckConfig({selector:t,entry:o},Fa)}_setContent(e,t,o){const r=mn.findOne(o,e);r&&((t=this._resolvePossibleFunction(t))?Ar(t)?this._putElementInTemplate(Or(t),r):this._config.html?r.innerHTML=this._maybeSanitize(t):r.textContent=t:r.remove())}_maybeSanitize(e){return this._config.sanitize?function(e,t,o){if(!e.length)return e;if(o&&"function"==typeof o)return o(e);const r=(new window.DOMParser).parseFromString(e,"text/html"),n=[].concat(...r.body.querySelectorAll("*"));for(const e of n){const o=e.nodeName.toLowerCase();if(!Object.keys(t).includes(o)){e.remove();continue}const r=[].concat(...e.attributes),n=[].concat(t["*"]||[],t[o]||[]);for(const t of r)Va(t,n)||e.removeAttribute(t.nodeName)}return r.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Br(e,[this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const Xa=new Set(["sanitize","allowList","sanitizeFn"]),Ya="fade",Qa="show",Ka=".tooltip-inner",Ja=".modal",Za="hide.bs.modal",el="hover",tl="focus",ol={AUTO:"auto",TOP:"top",RIGHT:Pr()?"left":"right",BOTTOM:"bottom",LEFT:Pr()?"right":"left"},rl={allowList:Ha,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},nl={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class il extends fn{constructor(e,t){super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return rl}static get DefaultType(){return nl}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),an.off(this._element.closest(Ja),Za,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const e=an.trigger(this._element,this.constructor.eventName("show")),t=(Tr(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const o=this._getTipElement();this._element.setAttribute("aria-describedby",o.getAttribute("id"));const{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(o),an.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(o),o.classList.add(Qa),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))an.on(e,"mouseover",Mr);this._queueCallback((()=>{an.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(this._isShown()&&!an.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(Qa),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))an.off(e,"mouseover",Mr);this._activeTrigger.click=!1,this._activeTrigger[tl]=!1,this._activeTrigger[el]=!1,this._isHovered=null,this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),an.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(Ya,Qa),t.classList.add(`bs-${this.constructor.NAME}-auto`);const o=(e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME).toString();return t.setAttribute("id",o),this._isAnimated()&&t.classList.add(Ya),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new Wa({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Ka]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Ya)}_isShown(){return this.tip&&this.tip.classList.contains(Qa)}_createPopper(e){const t=Br(this._config.placement,[this,e,this._element]),o=ol[t.toUpperCase()];return _r(this._element,e,this._getPopperConfig(o))}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return Br(e,[this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...t,...Br(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)an.on(this._element,this.constructor.eventName("click"),this._config.selector,(e=>{this._initializeOnDelegatedTarget(e).toggle()}));else if("manual"!==t){const e=t===el?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),o=t===el?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");an.on(this._element,e,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?tl:el]=!0,t._enter()})),an.on(this._element,o,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?tl:el]=t._element.contains(e.relatedTarget),t._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},an.on(this._element.closest(Ja),Za,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=cn.getDataAttributes(this._element);for(const e of Object.keys(t))Xa.has(e)&&delete t[e];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:Or(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,o]of Object.entries(this._config))this.constructor.Default[t]!==o&&(e[t]=o);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each((function(){const t=il.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}Hr(il);const al=".popover-header",ll=".popover-body",sl={...il.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},bl={...il.DefaultType,content:"(null|string|element|function)"};class cl extends il{static get Default(){return sl}static get DefaultType(){return bl}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[al]:this._getTitle(),[ll]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each((function(){const t=cl.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}Hr(cl);const dl=".bs.scrollspy",fl=`activate${dl}`,pl=`click${dl}`,ml=`load${dl}.data-api`,gl="active",ul="[href]",hl=".nav-link",vl=`${hl}, .nav-item > ${hl}, .list-group-item`,xl={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},wl={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class yl extends fn{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return xl}static get DefaultType(){return wl}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Or(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map((e=>Number.parseFloat(e)))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(an.off(this._config.target,pl),an.on(this._config.target,pl,ul,(e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const o=this._rootElement||window,r=t.offsetTop-this._element.offsetTop;if(o.scrollTo)return void o.scrollTo({top:r,behavior:"smooth"});o.scrollTop=r}})))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((e=>this._observerCallback(e)),e)}_observerCallback(e){const t=e=>this._targetLinks.get(`#${e.target.id}`),o=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},r=(this._rootElement||document.documentElement).scrollTop,n=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(const i of e){if(!i.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(i));continue}const e=i.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(n&&e){if(o(i),!r)return}else n||e||o(i)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=mn.find(ul,this._config.target);for(const t of e){if(!t.hash||Rr(t))continue;const e=mn.findOne(decodeURI(t.hash),this._element);Er(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(gl),this._activateParents(e),an.trigger(this._element,fl,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))mn.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(gl);else for(const t of mn.parents(e,".nav, .list-group"))for(const e of mn.prev(t,vl))e.classList.add(gl)}_clearActiveClass(e){e.classList.remove(gl);const t=mn.find(`${ul}.${gl}`,e);for(const e of t)e.classList.remove(gl)}static jQueryInterface(e){return this.each((function(){const t=yl.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}an.on(window,ml,(()=>{for(const e of mn.find('[data-bs-spy="scroll"]'))yl.getOrCreateInstance(e)})),Hr(yl);const kl=".bs.tab",_l=`hide${kl}`,ql=`hidden${kl}`,jl=`show${kl}`,zl=`shown${kl}`,Cl=`click${kl}`,$l=`keydown${kl}`,Sl=`load${kl}`,Al="ArrowLeft",Ol="ArrowRight",El="ArrowUp",Rl="ArrowDown",Tl="Home",Ml="End",Ll="active",Dl="fade",Il="show",Pl=".dropdown-toggle",Hl=`:not(${Pl})`,Bl='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Nl=`.nav-link${Hl}, .list-group-item${Hl}, [role="tab"]${Hl}, ${Bl}`,Vl=`.${Ll}[data-bs-toggle="tab"], .${Ll}[data-bs-toggle="pill"], .${Ll}[data-bs-toggle="list"]`;class Gl extends fn{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),an.on(this._element,$l,(e=>this._keydown(e))))}static get NAME(){return"tab"}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),o=t?an.trigger(t,_l,{relatedTarget:e}):null;an.trigger(e,jl,{relatedTarget:t}).defaultPrevented||o&&o.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(Ll),this._activate(mn.getElementFromSelector(e)),this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),an.trigger(e,zl,{relatedTarget:t})):e.classList.add(Il)}),e,e.classList.contains(Dl)))}_deactivate(e,t){e&&(e.classList.remove(Ll),e.blur(),this._deactivate(mn.getElementFromSelector(e)),this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),an.trigger(e,ql,{relatedTarget:t})):e.classList.remove(Il)}),e,e.classList.contains(Dl)))}_keydown(e){if(![Al,Ol,El,Rl,Tl,Ml].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter((e=>!Rr(e)));let o;if([Tl,Ml].includes(e.key))o=t[e.key===Tl?0:t.length-1];else{const r=[Ol,Rl].includes(e.key);o=Vr(t,e.target,r,!0)}o&&(o.focus({preventScroll:!0}),Gl.getOrCreateInstance(o).show())}_getChildren(){return mn.find(Nl,this._parent)}_getActiveElem(){return this._getChildren().find((e=>this._elemIsActive(e)))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),o=this._getOuterElement(e);e.setAttribute("aria-selected",t),o!==e&&this._setAttributeIfNotExists(o,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=mn.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const o=this._getOuterElement(e);if(!o.classList.contains("dropdown"))return;const r=(e,r)=>{const n=mn.findOne(e,o);n&&n.classList.toggle(r,t)};r(Pl,Ll),r(".dropdown-menu",Il),o.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,o){e.hasAttribute(t)||e.setAttribute(t,o)}_elemIsActive(e){return e.classList.contains(Ll)}_getInnerElement(e){return e.matches(Nl)?e:mn.findOne(Nl,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each((function(){const t=Gl.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}an.on(document,Cl,Bl,(function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),Rr(this)||Gl.getOrCreateInstance(this).show()})),an.on(window,Sl,(()=>{for(const e of mn.find(Vl))Gl.getOrCreateInstance(e)})),Hr(Gl);const Ul=".bs.toast",Fl=`mouseover${Ul}`,Wl=`mouseout${Ul}`,Xl=`focusin${Ul}`,Yl=`focusout${Ul}`,Ql=`hide${Ul}`,Kl=`hidden${Ul}`,Jl=`show${Ul}`,Zl=`shown${Ul}`,es="hide",ts="show",os="showing",rs={animation:"boolean",autohide:"boolean",delay:"number"},ns={animation:!0,autohide:!0,delay:5e3};class is extends fn{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return ns}static get DefaultType(){return rs}static get NAME(){return"toast"}show(){an.trigger(this._element,Jl).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(es),Lr(this._element),this._element.classList.add(ts,os),this._queueCallback((()=>{this._element.classList.remove(os),an.trigger(this._element,Zl),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this.isShown()&&(an.trigger(this._element,Ql).defaultPrevented||(this._element.classList.add(os),this._queueCallback((()=>{this._element.classList.add(es),this._element.classList.remove(os,ts),an.trigger(this._element,Kl)}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(ts),super.dispose()}isShown(){return this._element.classList.contains(ts)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const o=e.relatedTarget;this._element===o||this._element.contains(o)||this._maybeScheduleHide()}_setListeners(){an.on(this._element,Fl,(e=>this._onInteraction(e,!0))),an.on(this._element,Wl,(e=>this._onInteraction(e,!1))),an.on(this._element,Xl,(e=>this._onInteraction(e,!0))),an.on(this._element,Yl,(e=>this._onInteraction(e,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){const t=is.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}gn(is),Hr(is);var as=function(e,t,o,r){var n,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,r);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,o,a):n(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},ls=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let ss=class extends Pt{constructor(){super(...arguments),this.contentAtt="data-bs-content",this.contentStyle="none",this.containerAtt="data-bs-container",this.containerValue="body",this.defaultContent="No content provided",this.htmlAtt="data-bs-html",this.htmlValue="true",this.placementAtt="data-bs-placement",this.placementValue="left",this.selector="*[slot=content]",this.toggleAtt="data-bs-toggle",this.toggleValue="popover",this.renderInHost=!0}createRenderRoot(){return this.renderInHost?this:super.createRenderRoot()}connectedCallback(){super.connectedCallback(),this.setAttribute(this.toggleAtt,this.toggleValue),this.setAttribute(this.placementAtt,this.placementValue),this.setAttribute(this.containerAtt,this.containerValue),this.setAttribute(this.htmlAtt,this.htmlValue)}firstUpdated(e){super.firstUpdated(e);const t=this.querySelector(this.selector);t instanceof HTMLElement&&(t.style.display=this.contentStyle),this.setAttribute(this.contentAtt,t?.innerHTML??this.defaultContent),new cl(this)}render(){return Ue`<slot></slot>`}};as([mt({type:String}),ls("design:type",Object)],ss.prototype,"contentAtt",void 0),as([mt({type:String}),ls("design:type",Object)],ss.prototype,"contentStyle",void 0),as([mt({type:String}),ls("design:type",Object)],ss.prototype,"containerAtt",void 0),as([mt({type:String}),ls("design:type",Object)],ss.prototype,"containerValue",void 0),as([mt({type:String}),ls("design:type",Object)],ss.prototype,"defaultContent",void 0),as([mt({type:String}),ls("design:type",Object)],ss.prototype,"htmlAtt",void 0),as([mt({type:String}),ls("design:type",Object)],ss.prototype,"htmlValue",void 0),as([mt({type:String}),ls("design:type",Object)],ss.prototype,"placementAtt",void 0),as([mt({type:String}),ls("design:type",Object)],ss.prototype,"placementValue",void 0),as([mt({type:String}),ls("design:type",Object)],ss.prototype,"selector",void 0),as([mt({type:String}),ls("design:type",Object)],ss.prototype,"toggleAtt",void 0),as([mt({type:String}),ls("design:type",Object)],ss.prototype,"toggleValue",void 0),as([mt({type:Boolean}),ls("design:type",Object)],ss.prototype,"renderInHost",void 0),ss=as([dt("qbo-popover")],ss);class bs{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}class cs extends bs{constructor(e){if(super(e),this.it=Xe,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===Xe||null==e)return this._t=void 0,this.it=e;if(e===We)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}cs.directiveName="unsafeHTML",cs.resultType=1;const ds=(e=>(...t)=>({_$litDirective$:e,values:t}))(cs);var fs=function(e,t,o,r){var n,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,r);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,o,a):n(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},ps=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let ms=class extends jt{constructor(){super(...arguments),this.open=!1,this.loading=!1,this.renderInHost=!1}static{this.styles=[le`
|
|
101
101
|
/* Add any custom styles here */
|
|
102
102
|
.foo { color: red; }
|
|
103
103
|
`]}async connectedCallback(){super.connectedCallback(),this.handleOutsideClick=this.handleOutsideClick.bind(this)}toggle(){this.open=!this.open,this.open?document.addEventListener("click",this.handleOutsideClick):document.removeEventListener("click",this.handleOutsideClick)}show(){this.open=!0,document.addEventListener("click",this.handleOutsideClick)}hide(e){e.target.closest('[data-dismiss="modal"]')&&(this.open=!1,document.removeEventListener("click",this.handleOutsideClick))}handleOutsideClick(e){this.open&&!this.contains(e.target)&&(this.open=!1,document.removeEventListener("click",this.handleOutsideClick))}render(){return Ue`
|