@tabler/core 1.6.0 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/dist/css/tabler-flags.css +1 -1
  2. package/dist/css/tabler-flags.css.map +1 -1
  3. package/dist/css/tabler-flags.min.css +1 -1
  4. package/dist/css/tabler-flags.min.css.map +1 -1
  5. package/dist/css/tabler-flags.rtl.css +1 -1
  6. package/dist/css/tabler-flags.rtl.css.map +1 -1
  7. package/dist/css/tabler-flags.rtl.min.css +1 -1
  8. package/dist/css/tabler-flags.rtl.min.css.map +1 -1
  9. package/dist/css/tabler-marketing.css +1 -1
  10. package/dist/css/tabler-marketing.css.map +1 -1
  11. package/dist/css/tabler-marketing.min.css +1 -1
  12. package/dist/css/tabler-marketing.min.css.map +1 -1
  13. package/dist/css/tabler-marketing.rtl.css +1 -1
  14. package/dist/css/tabler-marketing.rtl.css.map +1 -1
  15. package/dist/css/tabler-marketing.rtl.min.css +1 -1
  16. package/dist/css/tabler-marketing.rtl.min.css.map +1 -1
  17. package/dist/css/tabler-payments.css +1 -1
  18. package/dist/css/tabler-payments.css.map +1 -1
  19. package/dist/css/tabler-payments.min.css +1 -1
  20. package/dist/css/tabler-payments.min.css.map +1 -1
  21. package/dist/css/tabler-payments.rtl.css +1 -1
  22. package/dist/css/tabler-payments.rtl.css.map +1 -1
  23. package/dist/css/tabler-payments.rtl.min.css +1 -1
  24. package/dist/css/tabler-payments.rtl.min.css.map +1 -1
  25. package/dist/css/tabler-props.css +1 -1
  26. package/dist/css/tabler-props.css.map +1 -1
  27. package/dist/css/tabler-props.min.css +1 -1
  28. package/dist/css/tabler-props.min.css.map +1 -1
  29. package/dist/css/tabler-props.rtl.css +1 -1
  30. package/dist/css/tabler-props.rtl.css.map +1 -1
  31. package/dist/css/tabler-props.rtl.min.css +1 -1
  32. package/dist/css/tabler-props.rtl.min.css.map +1 -1
  33. package/dist/css/tabler-socials.css +1 -1
  34. package/dist/css/tabler-socials.css.map +1 -1
  35. package/dist/css/tabler-socials.min.css +1 -1
  36. package/dist/css/tabler-socials.min.css.map +1 -1
  37. package/dist/css/tabler-socials.rtl.css +1 -1
  38. package/dist/css/tabler-socials.rtl.css.map +1 -1
  39. package/dist/css/tabler-socials.rtl.min.css +1 -1
  40. package/dist/css/tabler-socials.rtl.min.css.map +1 -1
  41. package/dist/css/tabler-themes.css +1 -1
  42. package/dist/css/tabler-themes.css.map +1 -1
  43. package/dist/css/tabler-themes.min.css +1 -1
  44. package/dist/css/tabler-themes.min.css.map +1 -1
  45. package/dist/css/tabler-themes.rtl.css +1 -1
  46. package/dist/css/tabler-themes.rtl.css.map +1 -1
  47. package/dist/css/tabler-themes.rtl.min.css +1 -1
  48. package/dist/css/tabler-themes.rtl.min.css.map +1 -1
  49. package/dist/css/tabler-vendors.css +1 -1
  50. package/dist/css/tabler-vendors.css.map +1 -1
  51. package/dist/css/tabler-vendors.min.css +1 -1
  52. package/dist/css/tabler-vendors.min.css.map +1 -1
  53. package/dist/css/tabler-vendors.rtl.css +1 -1
  54. package/dist/css/tabler-vendors.rtl.css.map +1 -1
  55. package/dist/css/tabler-vendors.rtl.min.css +1 -1
  56. package/dist/css/tabler-vendors.rtl.min.css.map +1 -1
  57. package/dist/css/tabler.css +12 -2
  58. package/dist/css/tabler.css.map +1 -1
  59. package/dist/css/tabler.min.css +2 -2
  60. package/dist/css/tabler.min.css.map +1 -1
  61. package/dist/css/tabler.rtl.css +12 -2
  62. package/dist/css/tabler.rtl.css.map +1 -1
  63. package/dist/css/tabler.rtl.min.css +2 -2
  64. package/dist/css/tabler.rtl.min.css.map +1 -1
  65. package/dist/js/tabler-theme.esm.js +21 -6
  66. package/dist/js/tabler-theme.esm.js.map +1 -1
  67. package/dist/js/tabler-theme.esm.min.js +2 -2
  68. package/dist/js/tabler-theme.esm.min.js.map +1 -1
  69. package/dist/js/tabler-theme.js +21 -6
  70. package/dist/js/tabler-theme.js.map +1 -1
  71. package/dist/js/tabler-theme.min.js +2 -2
  72. package/dist/js/tabler-theme.min.js.map +1 -1
  73. package/dist/js/tabler.esm.js +332 -131
  74. package/dist/js/tabler.esm.js.map +1 -1
  75. package/dist/js/tabler.esm.min.js +2 -2
  76. package/dist/js/tabler.esm.min.js.map +1 -1
  77. package/dist/js/tabler.js +332 -131
  78. package/dist/js/tabler.js.map +1 -1
  79. package/dist/js/tabler.min.js +2 -2
  80. package/dist/js/tabler.min.js.map +1 -1
  81. package/dist/libs/vanilla-calendar-pro/index.js +2 -2
  82. package/dist/types/src/clipboard.d.ts +3 -0
  83. package/dist/types/src/confetti.d.ts +2 -0
  84. package/dist/types/src/countup.d.ts +2 -0
  85. package/dist/types/src/datepicker.d.ts +24 -6
  86. package/dist/types/src/input-mask.d.ts +2 -1
  87. package/dist/types/src/otp-input.d.ts +6 -2
  88. package/dist/types/src/strength.d.ts +1 -0
  89. package/dist/types/src/switch-icon.d.ts +1 -0
  90. package/js/src/autosize.ts +8 -3
  91. package/js/src/bootstrap/base-component.ts +12 -2
  92. package/js/src/bootstrap/dom/manipulator.ts +1 -1
  93. package/js/src/bootstrap/dropdown.ts +3 -1
  94. package/js/src/bootstrap/util/index.ts +14 -1
  95. package/js/src/clipboard.ts +26 -2
  96. package/js/src/confetti.ts +42 -7
  97. package/js/src/countup.ts +30 -12
  98. package/js/src/datepicker.ts +147 -27
  99. package/js/src/dropdown.ts +12 -5
  100. package/js/src/global.d.ts +4 -2
  101. package/js/src/input-mask.ts +7 -7
  102. package/js/src/otp-input.ts +99 -12
  103. package/js/src/popover.ts +13 -7
  104. package/js/src/sidebar.ts +14 -6
  105. package/js/src/sortable.ts +5 -1
  106. package/js/src/sparkline.ts +15 -6
  107. package/js/src/strength.ts +17 -4
  108. package/js/src/switch-icon.ts +15 -0
  109. package/js/src/tab.ts +17 -7
  110. package/js/src/toast.ts +19 -11
  111. package/js/src/tooltip.ts +16 -7
  112. package/js/tabler-theme.ts +28 -4
  113. package/package.json +2 -2
  114. package/scss/layout/_navbar.scss +1 -2
  115. package/scss/ui/_cards.scss +14 -2
@@ -1,8 +1,8 @@
1
1
  /*!
2
- * Tabler v1.6.0 (https://tabler.io)
2
+ * Tabler v1.6.1 (https://tabler.io)
3
3
  * Copyright 2018-2026 The Tabler Authors
4
4
  * Copyright 2018-2026 codecalm.net Paweł Kuna
5
5
  * Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE)
6
6
  */
7
- var t=Object.defineProperty,e=(e,i)=>{let n={};for(var s in e)t(n,s,{get:e[s],enumerable:!0});return i||t(n,Symbol.toStringTag,{value:"Module"}),n},i=new Map,n={set(t,e,n){i.has(t)||i.set(t,new Map);const s=i.get(t);s.has(e)||0===s.size?s.set(e,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(s.keys())[0]}.`)},get:(t,e)=>i.has(t)&&i.get(t).get(e)||null,remove(t,e){if(!i.has(t))return;const n=i.get(t);n.delete(e),0===n.size&&i.delete(t)}},s="transitionend",r=t=>(t&&"undefined"!=typeof CSS&&"function"==typeof CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(t,e)=>`#${CSS.escape(e)}`)),t),o=t=>null==t?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),a=t=>{t.dispatchEvent(new Event(s))},l=t=>!(!t||"object"!=typeof t)&&void 0!==t.nodeType,c=t=>l(t)?t:"string"==typeof t&&t.length>0?document.querySelector(r(t)):null,h=t=>{if(!l(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),i=t.closest("details:not([open])");if(!i)return e;if(i!==t){const e=t.closest("summary");if(e&&e.parentNode!==i)return!1;if(null===e)return!1}return e},u=t=>!t||t.nodeType!==Node.ELEMENT_NODE||(!!t.classList.contains("disabled")||("disabled"in t&&void 0!==t.disabled?Boolean(t.disabled):t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled"))),d=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?d(t.parentNode):null},f=()=>{},p=t=>{t.offsetHeight},m=()=>"rtl"===document.documentElement.dir,g=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,_=[],v=t=>{var e;e=()=>{const e=g();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=n,t.jQueryInterface)}},"loading"===document.readyState?(_.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of _)t()}),_.push(e)):e()},b=(t,e=[],i=t)=>"function"==typeof t?t.call(e[0],...e.slice(1)):i,y=(t,e,i=!0)=>{if(!i)return void b(t);const n=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);return Number.parseFloat(e)||Number.parseFloat(i)?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0})(e)+5;let r=!1;const o=({target:i})=>{i===e&&(r=!0,e.removeEventListener(s,o),b(t))};e.addEventListener(s,o),setTimeout(()=>{r||a(e)},n)},w=(t,e,i,n)=>{const s=t.length;let r=t.indexOf(e);return-1===r?!i&&n?t[s-1]:t[0]:(r+=i?1:-1,n&&(r=(r+s)%s),t[Math.max(0,Math.min(r,s-1))])},A=/[^.]*(?=\..*)\.|.*/,E=/\..*/,x=/::\d+$/,S={},C=1,T={mouseenter:"mouseover",mouseleave:"mouseout"},k=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 O(t,e){return e&&`${e}::${C++}`||t.uidEvent||C++}function $(t){const e=O(t);return t.uidEvent=e,S[e]=S[e]||{},S[e]}function D(t,e,i=null){return Object.values(t).find(t=>t.callable===e&&t.delegationSelector===i)}function I(t,e,i){const n="string"==typeof e,s=n?i:e||i;let r=P(t);return k.has(r)||(r=t),[n,s,r]}function L(t,e,i,n,s){if("string"!=typeof e||!t)return;let[r,o,a]=I(e,i,n);if(e in T){const t=t=>function(e){const i=e;if(!i.relatedTarget||i.relatedTarget!==i.delegateTarget&&!i.delegateTarget.contains(i.relatedTarget))return t.call(this,e)};o=t(o)}const l=$(t),c=l[a]||(l[a]={}),h=D(c,o,r?i:null);if(h)return void(h.oneOff=h.oneOff&&s);const u=O(o,e.replace(A,"")),d=r?function(t,e,i){return function n(s){const r=t.querySelectorAll(e);for(let{target:o}=s;o&&o!==this;o=o.parentNode)for(const a of r)if(a===o)return F(s,{delegateTarget:o}),n.oneOff&&j.off(t,s.type,e,i),i.apply(o,[s])}}(t,i,o):function(t,e){return function i(n){return F(n,{delegateTarget:t}),i.oneOff&&j.off(t,n.type,e),e.apply(t,[n])}}(t,o);d.delegationSelector=r?i:null,d.callable=o,d.oneOff=s,d.uidEvent=u,c[u]=d,t.addEventListener(a,d,r)}function M(t,e,i,n,s){const r=D(e[i],n,null!=s?s:null);r&&(t.removeEventListener(i,r,Boolean(s)),delete e[i][r.uidEvent])}function N(t,e,i,n){const s=e[i]||{};for(const[r,o]of Object.entries(s))r.includes(n)&&M(t,e,i,o.callable,o.delegationSelector)}function P(t){return t=t.replace(E,""),T[t]||t}var j={on(t,e,i,n){L(t,e,i,n,!1)},one(t,e,i,n){L(t,e,i,n,!0)},off(t,e,i,n){if("string"!=typeof e||!t)return;const[s,r,o]=I(e,i,n),a=o!==e,l=$(t),c=l[o]||{},h=e.startsWith(".");if(void 0===r){if(h)for(const i of Object.keys(l))N(t,l,i,e.slice(1));for(const[i,n]of Object.entries(c)){const s=i.replace(x,"");a&&!e.includes(s)||M(t,l,o,n.callable,n.delegationSelector)}}else{if(!Object.keys(c).length)return;M(t,l,o,r,s?i:null)}},trigger(t,e,i){if("string"!=typeof e||!t)return null;const n=g();let s=null,r=!0,o=!0,a=!1;e!==P(e)&&n&&(s=n.Event(e,i),n(t).trigger(s),r=!s.isPropagationStopped(),o=!s.isImmediatePropagationStopped(),a=s.isDefaultPrevented());const l=F(new Event(e,{bubbles:r,cancelable:!0}),i);return a&&l.preventDefault(),o&&t.dispatchEvent(l),l.defaultPrevented&&s&&s.preventDefault(),l}};function F(t,e={}){for(const[i,n]of Object.entries(e))try{t[i]=n}catch(e){Object.defineProperty(t,i,{configurable:!0,get:()=>n})}return t}function z(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function H(t){return t.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}var W=["tblr","bs"],B={setDataAttribute(t,e,i){t.setAttribute(`data-tblr-${H(e)}`,i)},removeDataAttribute(t,e){for(const i of W)t.removeAttribute(`data-${i}-${H(e)}`)},getDataAttributes(t){if(!t)return{};const e={};for(const i of W){const n=Object.keys(t.dataset).filter(t=>t.startsWith(i)&&!t.startsWith(`${i}Config`));for(const s of n){let n=s.replace(new RegExp(`^${i}`),"");n=n.charAt(0).toLowerCase()+n.slice(1),n in e||(e[n]=z(t.dataset[s]))}}return e},getDataAttribute(t,e){for(const i of W){const n=t.getAttribute(`data-${i}-${H(e)}`);if(null!==n)return z(n)}return null}};function R(t){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},R(t)}function q(t){var e=function(t,e){if("object"!=R(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=R(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==R(e)?e:e+""}function V(t,e,i){return(e=q(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Y(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function U(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Y(Object(i),!0).forEach(function(e){V(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Y(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}var K=class{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(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const i=l(e)?B.getDataAttribute(e,"config"):{};return U(U(U(U({},this.constructor.Default),"object"==typeof i?i:{}),l(e)?B.getDataAttributes(e):{}),"object"==typeof t?t:{})}_typeCheckConfig(t,e){const i=this.constructor,n=e||i.DefaultType;for(const[e,s]of Object.entries(n)){const n=t[e],r=l(n)?"element":o(n);if(!new RegExp(s).test(r))throw new TypeError(`${i.NAME.toUpperCase()}: Option "${e}" provided type "${r}" but expected type "${s}".`)}}},X=class extends K{constructor(t,e){super();const i=c(t);if(!i)return;this._element=i,this._config=this._getConfig(e);const s=this.constructor;n.set(this._element,s.DATA_KEY,this)}dispose(){const t=this.constructor;n.remove(this._element,t.DATA_KEY),j.off(this._element,t.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,i=!0){y(t,e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return n.get(c(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:void 0)}static get VERSION(){return"5.3.8"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}},Q=t=>{let e=t.getAttribute("data-tblr-target")||t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e?e.split(",").map(t=>r(t)).join(","):null},G={find:(t,e=document.documentElement)=>Array.from(e.querySelectorAll(t)),findOne:(t,e=document.documentElement)=>e.querySelector(t),children:(t,e)=>Array.from(t.children).filter(t=>t.matches(e)),parents(t,e){const i=[];let n=t.parentNode&&t.parentNode.closest(e);for(;n;)i.push(n),n=n.parentNode&&n.parentNode.closest(e);return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(t=>!u(t)&&h(t))},getSelectorFromElement(t){const e=Q(t);return e&&G.findOne(e)?e:null},getElementFromSelector(t){const e=Q(t);return e?G.findOne(e):null},getMultipleElementsFromSelector(t){const e=Q(t);return e?G.find(e):[]}},Z=(t,e="hide")=>{const i=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;j.on(document,i,`[data-bs-dismiss="${n}"], [data-tblr-dismiss="${n}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),u(this))return;const s=G.getElementFromSelector(this)||this.closest(`.${n}`);((t,e)=>{const i=t[e];"function"==typeof i&&i.call(t)})(t.getOrCreateInstance(s),e)})},J=(t,e,i=null)=>{for(const n of G.find(t))if(!i||i(n))try{e.getOrCreateInstance(n)}catch(t){console.error(t)}},tt="autosize",et=`resized.bs.${tt}`,it=`[data-bs-toggle="${tt}"], [data-tblr-toggle="${tt}"]`,nt={},st={},rt=class extends X{constructor(t,e){var i;super(t,e),this._observer=null,this._inlineStyle="",this._width=0,this._onInput=()=>this.update(),this._element&&(this._inlineStyle=null!==(i=this._element.getAttribute("style"))&&void 0!==i?i:"",this._element.style.resize="none",this._element.style.overflowY="hidden",this._element.addEventListener("input",this._onInput),"undefined"!=typeof ResizeObserver&&(this._observer=new ResizeObserver(()=>{this._element.offsetWidth!==this._width&&(this._width=this._element.offsetWidth,this.update())}),this._observer.observe(this._element)),this.update())}static get Default(){return nt}static get DefaultType(){return st}static get NAME(){return tt}update(){const t=this._element;if(!t.isConnected||null===t.offsetParent)return;const{scrollTop:e}=document.documentElement,i=getComputedStyle(t),n="border-box"===i.boxSizing?Number.parseFloat(i.borderTopWidth)+Number.parseFloat(i.borderBottomWidth):0,s=t.style.height;t.style.height="auto";const r=`${t.scrollHeight+n}px`;t.style.height=r,t.style.overflowY=t.scrollHeight>t.clientHeight?"auto":"hidden",document.documentElement.scrollTop=e,r!==s&&j.trigger(t,et)}dispose(){var t;this._element.removeEventListener("input",this._onInput),null===(t=this._observer)||void 0===t||t.disconnect(),this._inlineStyle?this._element.setAttribute("style",this._inlineStyle):this._element.removeAttribute("style"),super.dispose()}};function ot(t,e,i,n,s,r,o){try{var a=t[r](o),l=a.value}catch(t){return void i(t)}a.done?e(l):Promise.resolve(l).then(n,s)}function at(t){return function(){var e=this,i=arguments;return new Promise(function(n,s){var r=t.apply(e,i);function o(t){ot(r,n,s,o,a,"next",t)}function a(t){ot(r,n,s,o,a,"throw",t)}o(void 0)})}}J(it,rt);var lt="clipboard",ct=`.bs.${lt}`,ht=`copied${ct}`,ut=`error${ct}`,dt=`[data-bs-toggle="${lt}"], [data-tblr-toggle="${lt}"]`,ft=`.${lt}-label`,pt=`.${lt}-feedback`,mt={target:null,text:null,delay:2e3},gt={target:"(string|null)",text:"(string|number|null)",delay:"number"},_t=(t,e)=>{e?t.setAttribute("hidden",""):t.removeAttribute("hidden")},vt=class extends X{constructor(t,e){if(super(t,e),this._labels=[],this._feedbacks=[],this._timeout=0,this._element){this._labels=G.find(ft,this._element),this._feedbacks=G.find(pt,this._element);for(const t of this._feedbacks)_t(t,!0),t.hasAttribute("role")||t.setAttribute("role","status");j.on(this._element,`click${ct}`,t=>{t.preventDefault(),this.copy()})}}static get Default(){return mt}static get DefaultType(){return gt}static get NAME(){return lt}get text(){var t;const{text:e,target:i}=this._config;if(null!==e&&""!==e)return String(e);const n=i?G.findOne(i):null;return n?n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement?n.value:(null!==(t=n.textContent)&&void 0!==t?t:"").trim():""}copy(){var t=this;return at(function*(){const{text:e}=t;if(e&&navigator.clipboard){try{yield navigator.clipboard.writeText(e)}catch(e){return void j.trigger(t._element,ut)}t._showCopied(),j.trigger(t._element,ht)}else j.trigger(t._element,ut)})()}dispose(){window.clearTimeout(this._timeout),super.dispose()}_showCopied(){window.clearTimeout(this._timeout),this._toggleCopied(!0),this._config.delay>0&&(this._timeout=window.setTimeout(()=>this._toggleCopied(!1),this._config.delay))}_toggleCopied(t){this._element.classList.toggle("copied",t);for(const e of this._labels)_t(e,t);for(const e of this._feedbacks)_t(e,!t)}};J(dt,vt);var bt="confetti",yt=`.bs.${bt}`,wt=`start${yt}`,At=`end${yt}`,Et=`click${yt}.data-api`,xt=`${bt}-canvas`,St=`[data-bs-toggle="${bt}"], [data-tblr-toggle="${bt}"]`,Ct=[["blue","#066fd1"],["azure","#4299e1"],["indigo","#4263eb"],["purple","#ae3ec9"],["pink","#d6336c"],["red","#d63939"],["orange","#f76707"],["yellow","#f59f00"],["lime","#74b816"],["green","#2fb344"],["teal","#0ca678"],["cyan","#17a2b8"]],Tt=1e3/60,kt={count:220,duration:3500,decay:3.5,fade:.15,speed:1,colors:null},Ot={count:"number",duration:"number",decay:"number",fade:"number",speed:"number",colors:"(array|string|null)"},$t={canvas:null,context:null,particles:[],emitters:[],frame:0,lastTick:0,add(t){this.emitters.push(t),this._mount(),this.frame||(this.lastTick=performance.now(),this.frame=requestAnimationFrame(t=>this._tick(t)))},_mount(){if(this.canvas)return;const t=document.createElement("canvas");t.className=xt,t.setAttribute("aria-hidden","true"),Object.assign(t.style,{position:"fixed",inset:"0",width:"100%",height:"100%",zIndex:"9999",pointerEvents:"none",display:"block"}),document.body.append(t),this.canvas=t,this.context=t.getContext("2d"),this._resize(),window.addEventListener("resize",this._onResize)},_unmount(){var t;cancelAnimationFrame(this.frame),this.frame=0,window.removeEventListener("resize",this._onResize),null===(t=this.canvas)||void 0===t||t.remove(),this.canvas=null,this.context=null,this.particles=[],this.emitters=[]},_onResize:()=>{$t._resize()},_resize(){if(!this.canvas||!this.context)return;const t=Math.min(window.devicePixelRatio||1,2);this.canvas.width=window.innerWidth*t,this.canvas.height=window.innerHeight*t,this.context.setTransform(t,0,0,t,0,0)},_spawn(t){var e;const{colors:i,config:n}=t,s=window.innerHeight/800*n.speed;return{emitter:t,x:Math.random()*window.innerWidth,y:-20-30*Math.random(),w:6+3.6*Math.random(),h:10+4.4*Math.random(),color:null!==(e=i[Math.floor(Math.random()*i.length)])&&void 0!==e?e:"#000",vx:1.2*(Math.random()-.5),vy:(1.5+2.1*Math.random())*s,speed:s,angle:Math.random()*Math.PI*2,spin:.25*(Math.random()-.5),flip:Math.random()*Math.PI*2,flipSpeed:.12+.15*Math.random(),sway:Math.random()*Math.PI*2,alpha:1}},_pour(t,e){const{count:i,duration:n,decay:s}=t.config,r=e-t.startedAt;if(t.stopped||r>=n)return;const o=r/n,a=Math.round(i*(1-Math.exp(-s*o))/(1-Math.exp(-s)));for(;t.emitted<a;)this.particles.push(this._spawn(t)),t.emitted++},_tick(t){const e=this.context;if(!e)return;const i=Math.min((t-this.lastTick)/Tt,3);this.lastTick=t;const n=window.innerWidth,s=window.innerHeight;e.clearRect(0,0,n,s);for(const e of this.emitters)this._pour(e,t);for(let t=this.particles.length-1;t>=0;t--){const n=this.particles[t],r=s*(1-n.emitter.config.fade);n.sway+=.05*i,n.vy=Math.min(n.vy+.025*n.speed*i,4.2*n.speed),n.x+=(n.vx+.7*Math.sin(n.sway))*i,n.y+=n.vy*i,n.angle+=n.spin*i,n.flip+=n.flipSpeed*i,n.y>r&&(n.alpha=Math.max(0,1-(n.y-r)/(s-r))),0!==n.alpha?(e.save(),e.globalAlpha=n.alpha,e.translate(n.x,n.y),e.rotate(n.angle),e.scale(1,Math.cos(n.flip)),e.fillStyle=n.color,e.fillRect(-n.w/2,-n.h/2,n.w,n.h),e.restore()):this.particles.splice(t,1)}this._settle(t),0!==this.emitters.length?this.frame=requestAnimationFrame(t=>this._tick(t)):this._unmount()},_settle(t){for(let e=this.emitters.length-1;e>=0;e--){const i=this.emitters[e],n=!i.stopped&&t-i.startedAt<i.config.duration,s=this.particles.some(t=>t.emitter===i);n||s||(this.emitters.splice(e,1),i.done=!0,j.trigger(i.element,At))}}},Dt=class extends X{constructor(t,e){super(t,e),this._emitter=null}static get Default(){return kt}static get DefaultType(){return Ot}static get NAME(){return bt}burst(){const t=j.trigger(this._element,wt);(null==t?void 0:t.defaultPrevented)||(this.stop(),window.matchMedia("(prefers-reduced-motion: reduce)").matches?j.trigger(this._element,At):(this._emitter={element:this._element,config:this._config,colors:this._colors(),startedAt:performance.now(),emitted:0,stopped:!1,done:!1},$t.add(this._emitter)))}stop(){this._emitter&&!this._emitter.done&&(this._emitter.stopped=!0),this._emitter=null}dispose(){this.stop(),super.dispose()}_configAfterMerge(t){return"string"==typeof t.colors&&(t.colors=t.colors.split(",").map(t=>t.trim()).filter(Boolean)),t}_colors(){const{colors:t}=this._config;if(t&&t.length>0)return t;const e=getComputedStyle(document.documentElement);return Ct.map(([t,i])=>e.getPropertyValue(`--tblr-${t}`).trim()||i)}};j.on(document,Et,St,function(t){if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),u(this))return;const e=G.getElementFromSelector(this)||this;Dt.getOrCreateInstance(e).burst()});var It="countup",Lt=`.bs.${It}`,Mt=`data-${It}`,Nt=`start${Lt}`,Pt=`complete${Lt}`,jt=`data-tblr-${It}`,Ft=`[${Mt}], [${jt}]`,zt={autoAnimate:!0,startVal:0,duration:2,decimalPlaces:0,useEasing:!0,useGrouping:!0,separator:",",decimal:".",prefix:"",suffix:"",format:"number",formatter:null},Ht={autoAnimate:"boolean",startVal:"number",duration:"number",decimalPlaces:"number",useEasing:"boolean",useGrouping:"boolean",separator:"string",decimal:"string",prefix:"string",suffix:"string",format:"string",formatter:"(function|null)"},Wt=(t,e)=>{if("number"==typeof t)return t;if("time"===e){const e=/^\D{0,32}(\d{1,4}):(\d{1,2})/.exec(t);return e?60*Number(e[1])+Number(e[2]):NaN}return Number.parseFloat(t.replace(/[^0-9.-]/g,""))},Bt=class extends X{constructor(t,e){var i;if(super(t,e),this._endVal=0,this._value=0,this._frame=0,this._observer=null,this._from=0,this._elapsed=0,this._running=!1,this._paused=!1,!this._element)return;const n=Wt(null!==(i=this._element.textContent)&&void 0!==i?i:"",this._config.format);Number.isNaN(n)||(this._endVal=n,this._value=this._config.startVal,this._print(this._value),this._config.autoAnimate&&"undefined"!=typeof IntersectionObserver?(this._observer=new IntersectionObserver(t=>{var e;t.some(t=>t.isIntersecting)&&(null===(e=this._observer)||void 0===e||e.disconnect(),this._observer=null,this.start())}),this._observer.observe(this._element)):this.start())}static get Default(){return zt}static get DefaultType(){return Ht}static get NAME(){return It}start(){this._animate(this._value,this._endVal)}reset(){this._stop(),this._value=this._config.startVal,this._print(this._value)}update(t){const e=Wt(t,this._config.format);Number.isNaN(e)||(this._endVal=e,this._animate(this._value,this._endVal))}pauseResume(){this._paused?(this._paused=!1,this._run()):this._running&&(this._paused=!0,cancelAnimationFrame(this._frame))}dispose(){var t;this._stop(),null===(t=this._observer)||void 0===t||t.disconnect(),super.dispose()}_mergeConfigObj(t,e){var i;let n={};const s=null!==(i=null==e?void 0:e.getAttribute(Mt))&&void 0!==i?i:null==e?void 0:e.getAttribute(jt);if(s)try{n=JSON.parse(s)}catch(t){}return super._mergeConfigObj(U(U({},(t=>{const e=U({},t);for(const[i,n]of Object.entries(t)){const t=Ht[i];"string"!=typeof n||"number"!==t||""===n.trim()||Number.isNaN(Number(n))?"string"!=typeof n||"boolean"!==t||"true"!==n&&"false"!==n?"number"==typeof n&&"string"===t&&(e[i]=String(n)):e[i]="true"===n:e[i]=Number(n)}return e})(n)),t),e)}_animate(t,e){this._stop(),t===e||this._config.duration<=0||window.matchMedia("(prefers-reduced-motion: reduce)").matches?this._finish(e):(this._from=t,this._elapsed=0,this._running=!0,j.trigger(this._element,Nt),this._run())}_run(){const t=1e3*this._config.duration;let e=performance.now();const i=n=>{this._elapsed+=n-e,e=n;const s=Math.min(1,this._elapsed/t),r=this._config.useEasing?(t=>t>=1?1:1024*(1-Math.pow(2,-10*t))/1023)(s):s;this._value=this._from+(this._endVal-this._from)*r,this._print(this._value),s<1?this._frame=requestAnimationFrame(i):this._finish(this._endVal)};this._frame=requestAnimationFrame(i)}_finish(t){this._running=!1,this._paused=!1,this._value=t,this._print(t),j.trigger(this._element,Pt)}_stop(){cancelAnimationFrame(this._frame),this._running=!1,this._paused=!1}_print(t){this._element.textContent=this._format(t)}_format(t){const{decimalPlaces:e,useGrouping:i,separator:n,decimal:s,prefix:r,suffix:o,format:a,formatter:l}=this._config;if(l)return l(t);if("time"===a){const e=Math.round(Math.abs(t));return`${t<0?"-":""}${r}${Math.floor(e/60)}:${String(e%60).padStart(2,"0")}${o}`}const[c,h]=Math.abs(t).toFixed(e).split(".");return`${t<0?"-":""}${r}${i?c.replace(/\B(?=(\d{3})+(?!\d))/g,n):c}${h?s+h:""}${o}`}};J(Ft,Bt);var Rt="datepicker",qt=`.bs.${Rt}`,Vt=".data-api",Yt=`change${qt}`,Ut=`show${qt}`,Kt=`shown${qt}`,Xt=`hide${qt}`,Qt=`hidden${qt}`,Gt=`focusin${qt}`,Zt=`click${qt}${Vt}`,Jt=`focusin${qt}${Vt}`,te='[data-bs-toggle="datepicker"], [data-tblr-toggle="datepicker"]',ee=/^(\d{4})-(\d{2})-(\d{2})$/,ie={datepickerTheme:null,dateMin:null,dateMax:null,dateFormat:null,displayElement:null,displayMonthsCount:1,firstWeekday:1,inline:!1,locale:"default",positionElement:null,selectedDates:[],selectionMode:"single",placement:"left",vcpOptions:{}},ne={datepickerTheme:"(null|string)",dateMin:"(null|string|number|object)",dateMax:"(null|string|number|object)",dateFormat:"(null|object|function)",displayElement:"(null|string|element|boolean)",displayMonthsCount:"number",firstWeekday:"number",inline:"boolean",locale:"string",positionElement:"(null|string|element)",selectedDates:"array",selectionMode:"string",placement:"string",vcpOptions:"object"},se=t=>{setTimeout(()=>setTimeout(t))},re=class extends X{constructor(t,e){super(t,e),this._calendar=null,this._isShown=!1,this._isShowing=!1,this._isHiding=!1,this._isSilent=!1,this._skipPluginShow=!1,this._resolveShown=null,this._isInput=!1,this._isInline=!1,this._boundInput=null,this._positionElement=null,this._displayElement=null,this._themeObserver=null,this._onFocusIn=null,this._selectedDates=[],this._element&&window.VanillaCalendarPro&&this._initCalendar()}static get Default(){return ie}static get DefaultType(){return ne}static get NAME(){return Rt}get calendar(){return this._calendar}toggle(){return this._config.inline?Promise.resolve():this._isShown?this.hide():this.show()}show(){var t=this;return at(function*(){if(t._config.inline)return;if(!t._calendar||u(t._element)||t._isShown||t._isShowing)return;const e=j.trigger(t._element,Ut);(null==e?void 0:e.defaultPrevented)||(t._isShowing=!0,t._skipPluginShow=!1,t._calendar.show(),t._isShown||(yield new Promise(e=>{t._resolveShown=e,se(e)})),t._resolveShown=null,t._isShowing=!1)})()}hide(){var t=this;return at(function*(){if(t._config.inline)return;if(!t._calendar||!t._isShown)return;const e=j.trigger(t._element,Xt);(null==e?void 0:e.defaultPrevented)||(t._skipPluginShow=!0,se(()=>{t._skipPluginShow=!1}),t._isHiding=!0,t._calendar.hide(),t._isHiding=!1)})()}dispose(){var t,e;null===(t=this._themeObserver)||void 0===t||t.disconnect(),this._onFocusIn&&j.off(document,Gt,this._onFocusIn),null===(e=this._calendar)||void 0===e||e.destroy(),super.dispose()}getSelectedDates(){var t;const e=null===(t=this._calendar)||void 0===t||null===(t=t.context)||void 0===t?void 0:t.selectedDates;return e&&e.length>0?[...e]:[...this._selectedDates]}setSelectedDates(t){var e;this._selectedDates=t.map(String),null===(e=this._calendar)||void 0===e||e.set({selectedDates:t})}_initCalendar(){this._isInput="INPUT"===this._element.tagName,this._isInline=this._config.inline,this._isInline&&!this._isInput&&(this._boundInput=G.findOne('input[type="hidden"], input[name]',this._element)),this._positionElement=this._resolvePositionElement(),this._displayElement=this._resolveDisplayElement(),this._selectedDates=[...this._config.selectedDates],this._calendar=new window.VanillaCalendarPro.Calendar(this._element,this._buildCalendarOptions()),this._calendar.init(),this._boundInput&&!this._boundInput.isConnected&&this._element.after(this._boundInput),this._setupThemeObserver(),this._setupDismissOnFocus(),this._isInput&&this._element.value&&this._parseInputValue(),this._updateDisplayWithSelectedDates()}_updateDisplayWithSelectedDates(){const{selectedDates:t}=this._config;t&&0!==t.length&&this._writeSelection(t)}_writeSelection(t){const e=this._formatDateForInput(t);this._isInput&&(this._element.value=e),this._boundInput&&(this._boundInput.value=t.join(",")),this._displayElement&&(this._displayElement.textContent=e)}_resolvePositionElement(){let{positionElement:t}=this._config;return"string"==typeof t&&(t=G.findOne(t)),t||!this._isInput||this._isInline||(t=this._element.closest(".input-icon, .input-group")),t||this._element}_resolveDisplayElement(){const{displayElement:t}=this._config;return"string"==typeof t?G.findOne(t):!0===t||null===t&&!this._isInput&&!this._isInline?G.findOne("[data-bs-datepicker-display], [data-tblr-datepicker-display]",this._element)||this._element:t}_alignToPositionElement(){var t;const e=null===(t=this._calendar)||void 0===t||null===(t=t.context)||void 0===t?void 0:t.mainElement;if(!e||this._isInline||!this._positionElement||this._positionElement===this._element)return;const i=this._positionElement.getBoundingClientRect(),n=e.getBoundingClientRect();let{placement:s}=this._config;"auto"===s&&(s=i.left+n.width>document.documentElement.clientWidth?"right":"left");const r="right"===s?i.right-n.width:"center"===s?i.left+(i.width-n.width)/2:i.left;e.style.left=`${r+window.scrollX}px`}_getThemeAncestor(){return this._element.closest("[data-bs-theme]")}_getEffectiveTheme(){var t;const{datepickerTheme:e}=this._config;return e||((null===(t=this._getThemeAncestor())||void 0===t?void 0:t.getAttribute("data-bs-theme"))||null)}_syncThemeAttribute(t){if(!t)return;const e=this._getEffectiveTheme();e?t.setAttribute("data-bs-theme",e):t.removeAttribute("data-bs-theme")}_setupThemeObserver(){const t=this._getThemeAncestor();t&&!this._config.datepickerTheme&&(this._themeObserver=new MutationObserver(()=>{var t;this._syncThemeAttribute(null===(t=this._calendar)||void 0===t||null===(t=t.context)||void 0===t?void 0:t.mainElement)}),this._themeObserver.observe(t,{attributes:!0,attributeFilter:["data-bs-theme"]}))}_setupDismissOnFocus(){this._isInline||(this._onFocusIn=t=>{var e;if(!this._isShown)return;const{target:i}=t,n=null===(e=this._calendar)||void 0===e||null===(e=e.context)||void 0===e?void 0:e.mainElement;i instanceof Node&&(this._element.contains(i)||(null==n?void 0:n.contains(i)))||this.hide()},j.on(document,Gt,this._onFocusIn))}_silently(t){this._isSilent=!0,t(),this._isSilent=!1}_handlePluginShow(){var t;const e=this._calendar;if(!e)return;var i;if(!this._isSilent&&!this._isShown&&(this._skipPluginShow||!this._isShowing&&(null===(i=j.trigger(this._element,Ut))||void 0===i?void 0:i.defaultPrevented)))return void this._silently(()=>e.hide());const n=this._isShown;this._isShown=!0,this._syncThemeAttribute(e.context.mainElement),this._alignToPositionElement(),n||j.trigger(this._element,Kt),null===(t=this._resolveShown)||void 0===t||t.call(this)}_handlePluginHide(){var t;const e=this._calendar;e&&!this._isSilent&&this._isShown&&(this._isHiding||!(null===(t=j.trigger(this._element,Xt))||void 0===t?void 0:t.defaultPrevented)?(this._isShown=!1,j.trigger(this._element,Qt)):this._silently(()=>e.show()))}_buildCalendarOptions(){const t=this._getEffectiveTheme(),e=t&&"auto"!==t?t:"system",i=U(U({},this._config.vcpOptions),{},{inputMode:!this._isInline,positionToInput:this._config.placement,firstWeekday:this._config.firstWeekday,locale:this._config.locale,selectionDatesMode:this._config.selectionMode,selectedDates:this._config.selectedDates,displayMonthsCount:this._config.displayMonthsCount,type:this._config.displayMonthsCount>1?"multiple":"default",selectedTheme:e,themeAttrDetect:"[data-bs-theme]",onClickDate:(t,e)=>this._handleDateClick(t,e),onInit:t=>{this._syncThemeAttribute(t.context.mainElement)},onShow:()=>this._handlePluginShow(),onHide:()=>this._handlePluginHide()}),[n]=this._config.selectedDates;if(n){const t=this._parseDate(n);i.selectedMonth=t.getMonth(),i.selectedYear=t.getFullYear()}return this._config.dateMin&&(i.dateMin=this._config.dateMin),this._config.dateMax&&(i.dateMax=this._config.dateMax),i}_handleDateClick(t,e){const i=[...t.context.selectedDates];this._selectedDates=i,i.length>0&&this._writeSelection(i);const n={dates:i,event:e};j.trigger(this._element,Yt,n),this._maybeHideAfterSelection(i)}_maybeHideAfterSelection(t){this._isInline||("single"===this._config.selectionMode&&t.length>0||"multiple-ranged"===this._config.selectionMode&&t.length>=2)&&setTimeout(()=>this.hide(),100)}_parseDate(t){const[e=0,i=1,n=1]=t.split("-").map(Number);return new Date(e,i-1,n)}_formatDate(t){const e=this._parseDate(t),i="default"===this._config.locale?void 0:this._config.locale,{dateFormat:n}=this._config;return"function"==typeof n?n(e,i):n&&"object"==typeof n?new Intl.DateTimeFormat(i,n).format(e):e.toLocaleDateString(i)}_formatDateForInput(t){if(0===t.length)return"";if(1===t.length)return this._formatDate(t[0]);const e="multiple-ranged"===this._config.selectionMode?" – ":", ";return t.map(t=>this._formatDate(t)).join(e)}_parseInputValue(){var t;const e=this._element.value.trim();if(!e)return;const i=ee.test(e)?this._parseDate(e):new Date(e);if(Number.isNaN(i.getTime()))return;const n=i.getFullYear(),s=String(i.getMonth()+1).padStart(2,"0"),r=String(i.getDate()).padStart(2,"0");this._selectedDates=[`${n}-${s}-${r}`],null===(t=this._calendar)||void 0===t||t.set({selectedDates:this._selectedDates})}};j.on(document,Zt,te,function(t){"INPUT"!==this.tagName&&"true"!==this.dataset.bsInline&&"true"!==this.dataset.tblrInline&&(t.preventDefault(),re.getOrCreateInstance(this).toggle())}),j.on(document,Jt,te,function(){"INPUT"===this.tagName&&re.getOrCreateInstance(this).show()}),J(te,re,t=>{const{dataset:e}=t;return"true"===e.bsInline||"true"===e.tblrInline||"bsSelectedDates"in e||"tblrSelectedDates"in e||Boolean(t.value)});var oe="data-mask",ae="data-mask-visible",le=`[${oe}]`,ce={mask:"",lazy:!0},he={mask:"string",lazy:"boolean"},ue=class extends X{constructor(t,e){super(t,e),this._mask=null,this._element&&this._config.mask&&window.IMask&&(this._mask=new window.IMask(this._element,{mask:this._config.mask,lazy:this._config.lazy}))}static get Default(){return ce}static get DefaultType(){return he}static get NAME(){return"input-mask"}get mask(){return this._mask}update(){var t;null===(t=this._mask)||void 0===t||t.updateValue()}dispose(){var t;null===(t=this._mask)||void 0===t||t.destroy(),super.dispose()}_mergeConfigObj(t,e){const i={},n=null==e?void 0:e.getAttribute(oe);return n&&(i.mask=n),(null==e?void 0:e.hasAttribute(ae))&&(i.lazy="true"!==e.getAttribute(ae)),super._mergeConfigObj(U(U({},i),t),e)}};J(le,ue);var de="bottom",fe="right",pe="left",me="auto",ge=["top",de,fe,pe],_e="start",ve="clippingParents",be="viewport",ye="popper",we="reference",Ae=ge.reduce(function(t,e){return t.concat([e+"-"+_e,e+"-end"])},[]),Ee=[].concat(ge,[me]).reduce(function(t,e){return t.concat([e,e+"-"+_e,e+"-end"])},[]),xe="beforeRead",Se="read",Ce="afterRead",Te="beforeMain",ke="main",Oe="afterMain",$e="beforeWrite",De="write",Ie="afterWrite",Le=[xe,Se,Ce,Te,ke,Oe,$e,De,Ie];function Me(t){return t?(t.nodeName||"").toLowerCase():null}function Ne(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Pe(t){return t instanceof Ne(t).Element||t instanceof Element}function je(t){return t instanceof Ne(t).HTMLElement||t instanceof HTMLElement}function Fe(t){return"undefined"!=typeof ShadowRoot&&(t instanceof Ne(t).ShadowRoot||t instanceof ShadowRoot)}var ze={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},s=e.elements[t];je(s)&&Me(s)&&(Object.assign(s.style,i),Object.keys(n).forEach(function(t){var e=n[t];!1===e?s.removeAttribute(t):s.setAttribute(t,!0===e?"":e)}))})},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach(function(t){var n=e.elements[t],s=e.attributes[t]||{},r=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce(function(t,e){return t[e]="",t},{});je(n)&&Me(n)&&(Object.assign(n.style,r),Object.keys(s).forEach(function(t){n.removeAttribute(t)}))})}},requires:["computeStyles"]};function He(t){return t.split("-")[0]}var We=Math.max,Be=Math.min,Re=Math.round;function qe(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Ve(){return!/^((?!chrome|android).)*safari/i.test(qe())}function Ye(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var n=t.getBoundingClientRect(),s=1,r=1;e&&je(t)&&(s=t.offsetWidth>0&&Re(n.width)/t.offsetWidth||1,r=t.offsetHeight>0&&Re(n.height)/t.offsetHeight||1);var o=(Pe(t)?Ne(t):window).visualViewport,a=!Ve()&&i,l=(n.left+(a&&o?o.offsetLeft:0))/s,c=(n.top+(a&&o?o.offsetTop:0))/r,h=n.width/s,u=n.height/r;return{width:h,height:u,top:c,right:l+h,bottom:c+u,left:l,x:l,y:c}}function Ue(t){var e=Ye(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function Ke(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&Fe(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Xe(t){return Ne(t).getComputedStyle(t)}function Qe(t){return["table","td","th"].indexOf(Me(t))>=0}function Ge(t){return((Pe(t)?t.ownerDocument:t.document)||window.document).documentElement}function Ze(t){return"html"===Me(t)?t:t.assignedSlot||t.parentNode||(Fe(t)?t.host:null)||Ge(t)}function Je(t){return je(t)&&"fixed"!==Xe(t).position?t.offsetParent:null}function ti(t){for(var e=Ne(t),i=Je(t);i&&Qe(i)&&"static"===Xe(i).position;)i=Je(i);return i&&("html"===Me(i)||"body"===Me(i)&&"static"===Xe(i).position)?e:i||function(t){var e=/firefox/i.test(qe());if(/Trident/i.test(qe())&&je(t)&&"fixed"===Xe(t).position)return null;var i=Ze(t);for(Fe(i)&&(i=i.host);je(i)&&["html","body"].indexOf(Me(i))<0;){var n=Xe(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(t)||e}function ei(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function ii(t,e,i){return We(t,Be(e,i))}function ni(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function si(t,e){return e.reduce(function(e,i){return e[i]=t,e},{})}var ri={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,n=t.name,s=t.options,r=i.elements.arrow,o=i.modifiersData.popperOffsets,a=He(i.placement),l=ei(a),c=["left","right"].indexOf(a)>=0?"height":"width";if(r&&o){var h=function(t,e){return ni("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:si(t,ge))}(s.padding,i),u=Ue(r),d="y"===l?"top":pe,f="y"===l?de:fe,p=i.rects.reference[c]+i.rects.reference[l]-o[l]-i.rects.popper[c],m=o[l]-i.rects.reference[l],g=ti(r),_=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,v=p/2-m/2,b=h[d],y=_-u[c]-h[f],w=_/2-u[c]/2+v,A=ii(b,w,y),E=l;i.modifiersData[n]=((e={})[E]=A,e.centerOffset=A-w,e)}},effect:function(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&Ke(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function oi(t){return t.split("-")[1]}var ai={top:"auto",right:"auto",bottom:"auto",left:"auto"};function li(t){var e,i=t.popper,n=t.popperRect,s=t.placement,r=t.variation,o=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,h=t.roundOffsets,u=t.isFixed,d=o.x,f=void 0===d?0:d,p=o.y,m=void 0===p?0:p,g="function"==typeof h?h({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var _=o.hasOwnProperty("x"),v=o.hasOwnProperty("y"),b=pe,y="top",w=window;if(c){var A=ti(i),E="clientHeight",x="clientWidth";if(A===Ne(i)&&"static"!==Xe(A=Ge(i)).position&&"absolute"===a&&(E="scrollHeight",x="scrollWidth"),"top"===s||("left"===s||"right"===s)&&"end"===r)y=de,m-=(u&&A===w&&w.visualViewport?w.visualViewport.height:A[E])-n.height,m*=l?1:-1;if("left"===s||("top"===s||"bottom"===s)&&"end"===r)b=fe,f-=(u&&A===w&&w.visualViewport?w.visualViewport.width:A[x])-n.width,f*=l?1:-1}var S,C=Object.assign({position:a},c&&ai),T=!0===h?function(t,e){var i=t.x,n=t.y,s=e.devicePixelRatio||1;return{x:Re(i*s)/s||0,y:Re(n*s)/s||0}}({x:f,y:m},Ne(i)):{x:f,y:m};return f=T.x,m=T.y,l?Object.assign({},C,((S={})[y]=v?"0":"",S[b]=_?"0":"",S.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",S)):Object.assign({},C,((e={})[y]=v?m+"px":"",e[b]=_?f+"px":"",e.transform="",e))}var ci={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,s=void 0===n||n,r=i.adaptive,o=void 0===r||r,a=i.roundOffsets,l=void 0===a||a,c={placement:He(e.placement),variation:oi(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,li(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,li(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},hi={passive:!0};var ui={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,s=n.scroll,r=void 0===s||s,o=n.resize,a=void 0===o||o,l=Ne(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&c.forEach(function(t){t.addEventListener("scroll",i.update,hi)}),a&&l.addEventListener("resize",i.update,hi),function(){r&&c.forEach(function(t){t.removeEventListener("scroll",i.update,hi)}),a&&l.removeEventListener("resize",i.update,hi)}},data:{}},di={left:"right",right:"left",bottom:"top",top:"bottom"};function fi(t){return t.replace(/left|right|bottom|top/g,function(t){return di[t]})}var pi={start:"end",end:"start"};function mi(t){return t.replace(/start|end/g,function(t){return pi[t]})}function gi(t){var e=Ne(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function _i(t){return Ye(Ge(t)).left+gi(t).scrollLeft}function vi(t){var e=Xe(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function bi(t){return["html","body","#document"].indexOf(Me(t))>=0?t.ownerDocument.body:je(t)&&vi(t)?t:bi(Ze(t))}function yi(t,e){var i;void 0===e&&(e=[]);var n=bi(t),s=n===(null==(i=t.ownerDocument)?void 0:i.body),r=Ne(n),o=s?[r].concat(r.visualViewport||[],vi(n)?n:[]):n,a=e.concat(o);return s?a:a.concat(yi(Ze(o)))}function wi(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Ai(t,e,i){return"viewport"===e?wi(function(t,e){var i=Ne(t),n=Ge(t),s=i.visualViewport,r=n.clientWidth,o=n.clientHeight,a=0,l=0;if(s){r=s.width,o=s.height;var c=Ve();(c||!c&&"fixed"===e)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:r,height:o,x:a+_i(t),y:l}}(t,i)):Pe(e)?function(t,e){var i=Ye(t,!1,"fixed"===e);return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}(e,i):wi(function(t){var e,i=Ge(t),n=gi(t),s=null==(e=t.ownerDocument)?void 0:e.body,r=We(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=We(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-n.scrollLeft+_i(t),l=-n.scrollTop;return"rtl"===Xe(s||i).direction&&(a+=We(i.clientWidth,s?s.clientWidth:0)-r),{width:r,height:o,x:a,y:l}}(Ge(t)))}function Ei(t,e,i,n){var s="clippingParents"===e?function(t){var e=yi(Ze(t)),i=["absolute","fixed"].indexOf(Xe(t).position)>=0&&je(t)?ti(t):t;return Pe(i)?e.filter(function(t){return Pe(t)&&Ke(t,i)&&"body"!==Me(t)}):[]}(t):[].concat(e),r=[].concat(s,[i]),o=r[0],a=r.reduce(function(e,i){var s=Ai(t,i,n);return e.top=We(s.top,e.top),e.right=Be(s.right,e.right),e.bottom=Be(s.bottom,e.bottom),e.left=We(s.left,e.left),e},Ai(t,o,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function xi(t){var e,i=t.reference,n=t.element,s=t.placement,r=s?He(s):null,o=s?oi(s):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(r){case"top":e={x:a,y:i.y-n.height};break;case de:e={x:a,y:i.y+i.height};break;case fe:e={x:i.x+i.width,y:l};break;case pe:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=r?ei(r):null;if(null!=c){var h="y"===c?"height":"width";switch(o){case _e:e[c]=e[c]-(i[h]/2-n[h]/2);break;case"end":e[c]=e[c]+(i[h]/2-n[h]/2)}}return e}function Si(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=void 0===n?t.placement:n,r=i.strategy,o=void 0===r?t.strategy:r,a=i.boundary,l=void 0===a?ve:a,c=i.rootBoundary,h=void 0===c?be:c,u=i.elementContext,d=void 0===u?ye:u,f=i.altBoundary,p=void 0!==f&&f,m=i.padding,g=void 0===m?0:m,_=ni("number"!=typeof g?g:si(g,ge)),v="popper"===d?we:ye,b=t.rects.popper,y=t.elements[p?v:d],w=Ei(Pe(y)?y:y.contextElement||Ge(t.elements.popper),l,h,o),A=Ye(t.elements.reference),E=xi({reference:A,element:b,strategy:"absolute",placement:s}),x=wi(Object.assign({},b,E)),S="popper"===d?x:A,C={top:w.top-S.top+_.top,bottom:S.bottom-w.bottom+_.bottom,left:w.left-S.left+_.left,right:S.right-w.right+_.right},T=t.modifiersData.offset;if("popper"===d&&T){var k=T[s];Object.keys(C).forEach(function(t){var e=["right","bottom"].indexOf(t)>=0?1:-1,i=["top","bottom"].indexOf(t)>=0?"y":"x";C[t]+=k[i]*e})}return C}function Ci(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=i.boundary,r=i.rootBoundary,o=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?Ee:l,h=oi(n),u=h?a?Ae:Ae.filter(function(t){return oi(t)===h}):ge,d=u.filter(function(t){return c.indexOf(t)>=0});0===d.length&&(d=u);var f=d.reduce(function(e,i){return e[i]=Si(t,{placement:i,boundary:s,rootBoundary:r,padding:o})[He(i)],e},{});return Object.keys(f).sort(function(t,e){return f[t]-f[e]})}var Ti={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var s=i.mainAxis,r=void 0===s||s,o=i.altAxis,a=void 0===o||o,l=i.fallbackPlacements,c=i.padding,h=i.boundary,u=i.rootBoundary,d=i.altBoundary,f=i.flipVariations,p=void 0===f||f,m=i.allowedAutoPlacements,g=e.options.placement,_=He(g)===g,v=l||(_||!p?[fi(g)]:function(t){if("auto"===He(t))return[];var e=fi(t);return[mi(t),e,mi(e)]}(g)),b=[g].concat(v).reduce(function(t,i){return t.concat("auto"===He(i)?Ci(e,{placement:i,boundary:h,rootBoundary:u,padding:c,flipVariations:p,allowedAutoPlacements:m}):i)},[]),y=e.rects.reference,w=e.rects.popper,A=new Map,E=!0,x=b[0],S=0;S<b.length;S++){var C=b[S],T=He(C),k=oi(C)===_e,O=["top",de].indexOf(T)>=0,$=O?"width":"height",D=Si(e,{placement:C,boundary:h,rootBoundary:u,altBoundary:d,padding:c}),I=O?k?fe:pe:k?de:"top";y[$]>w[$]&&(I=fi(I));var L=fi(I),M=[];if(r&&M.push(D[T]<=0),a&&M.push(D[I]<=0,D[L]<=0),M.every(function(t){return t})){x=C,E=!1;break}A.set(C,M)}if(E)for(var N=function(t){var e=b.find(function(e){var i=A.get(e);if(i)return i.slice(0,t).every(function(t){return t})});if(e)return x=e,"break"},P=p?3:1;P>0&&"break"!==N(P);P--);e.placement!==x&&(e.modifiersData[n]._skip=!0,e.placement=x,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ki(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function Oi(t){return["top",fe,de,pe].some(function(e){return t[e]>=0})}var $i={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,s=e.rects.popper,r=e.modifiersData.preventOverflow,o=Si(e,{elementContext:"reference"}),a=Si(e,{altBoundary:!0}),l=ki(o,n),c=ki(a,s,r),h=Oi(l),u=Oi(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":u})}};var Di={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.offset,r=void 0===s?[0,0]:s,o=Ee.reduce(function(t,i){return t[i]=function(t,e,i){var n=He(t),s=["left","top"].indexOf(n)>=0?-1:1,r="function"==typeof i?i(Object.assign({},e,{placement:t})):i,o=r[0],a=r[1];return o=o||0,a=(a||0)*s,["left","right"].indexOf(n)>=0?{x:a,y:o}:{x:o,y:a}}(i,e.rects,r),t},{}),a=o[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=o}};var Ii={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=xi({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}};var Li={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.mainAxis,r=void 0===s||s,o=i.altAxis,a=void 0!==o&&o,l=i.boundary,c=i.rootBoundary,h=i.altBoundary,u=i.padding,d=i.tether,f=void 0===d||d,p=i.tetherOffset,m=void 0===p?0:p,g=Si(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:h}),_=He(e.placement),v=oi(e.placement),b=!v,y=ei(_),w="x"===y?"y":"x",A=e.modifiersData.popperOffsets,E=e.rects.reference,x=e.rects.popper,S="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,C="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),T=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,k={x:0,y:0};if(A){if(r){var O,$="y"===y?"top":pe,D="y"===y?de:fe,I="y"===y?"height":"width",L=A[y],M=L+g[$],N=L-g[D],P=f?-x[I]/2:0,j="start"===v?E[I]:x[I],F="start"===v?-x[I]:-E[I],z=e.elements.arrow,H=f&&z?Ue(z):{width:0,height:0},W=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=W[$],R=W[D],q=ii(0,E[I],H[I]),V=b?E[I]/2-P-q-B-C.mainAxis:j-q-B-C.mainAxis,Y=b?-E[I]/2+P+q+R+C.mainAxis:F+q+R+C.mainAxis,U=e.elements.arrow&&ti(e.elements.arrow),K=U?"y"===y?U.clientTop||0:U.clientLeft||0:0,X=null!=(O=null==T?void 0:T[y])?O:0,Q=L+Y-X,G=ii(f?Be(M,L+V-X-K):M,L,f?We(N,Q):N);A[y]=G,k[y]=G-L}if(a){var Z,J="x"===y?"top":pe,tt="x"===y?de:fe,et=A[w],it="y"===w?"height":"width",nt=et+g[J],st=et-g[tt],rt=-1!==["top",pe].indexOf(_),ot=null!=(Z=null==T?void 0:T[w])?Z:0,at=rt?nt:et-E[it]-x[it]-ot+C.altAxis,lt=rt?et+E[it]+x[it]-ot-C.altAxis:st,ct=f&&rt?function(t,e,i){var n=ii(t,e,i);return n>i?i:n}(at,et,lt):ii(f?at:nt,et,f?lt:st);A[w]=ct,k[w]=ct-et}e.modifiersData[n]=k}},requiresIfExists:["offset"]};function Mi(t,e,i){void 0===i&&(i=!1);var n,s,r=je(e),o=je(e)&&function(t){var e=t.getBoundingClientRect(),i=Re(e.width)/t.offsetWidth||1,n=Re(e.height)/t.offsetHeight||1;return 1!==i||1!==n}(e),a=Ge(e),l=Ye(t,o,i),c={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(r||!r&&!i)&&(("body"!==Me(e)||vi(a))&&(c=(n=e)!==Ne(n)&&je(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:gi(n)),je(e)?((h=Ye(e,!0)).x+=e.clientLeft,h.y+=e.clientTop):a&&(h.x=_i(a))),{x:l.left+c.scrollLeft-h.x,y:l.top+c.scrollTop-h.y,width:l.width,height:l.height}}function Ni(t){var e=new Map,i=new Set,n=[];function s(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!i.has(t)){var n=e.get(t);n&&s(n)}}),n.push(t)}return t.forEach(function(t){e.set(t.name,t)}),t.forEach(function(t){i.has(t.name)||s(t)}),n}var Pi={placement:"bottom",modifiers:[],strategy:"absolute"};function ji(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some(function(t){return!(t&&"function"==typeof t.getBoundingClientRect)})}function Fi(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,n=void 0===i?[]:i,s=e.defaultOptions,r=void 0===s?Pi:s;return function(t,e,i){void 0===i&&(i=r);var s,o,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Pi,r),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,h={state:a,setOptions:function(i){var s="function"==typeof i?i(a.options):i;u(),a.options=Object.assign({},r,a.options,s),a.scrollParents={reference:Pe(t)?yi(t):t.contextElement?yi(t.contextElement):[],popper:yi(e)};var o,c,d=function(t){var e=Ni(t);return Le.reduce(function(t,i){return t.concat(e.filter(function(t){return t.phase===i}))},[])}((o=[].concat(n,a.options.modifiers),c=o.reduce(function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e,t},{}),Object.keys(c).map(function(t){return c[t]})));return a.orderedModifiers=d.filter(function(t){return t.enabled}),a.orderedModifiers.forEach(function(t){var e=t.name,i=t.options,n=void 0===i?{}:i,s=t.effect;if("function"==typeof s){var r=s({state:a,name:e,instance:h,options:n});l.push(r||function(){})}}),h.update()},forceUpdate:function(){if(!c){var t=a.elements,e=t.reference,i=t.popper;if(ji(e,i)){a.rects={reference:Mi(e,ti(i),"fixed"===a.options.strategy),popper:Ue(i)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(t){return a.modifiersData[t.name]=Object.assign({},t.data)});for(var n=0;n<a.orderedModifiers.length;n++)if(!0!==a.reset){var s=a.orderedModifiers[n],r=s.fn,o=s.options,l=void 0===o?{}:o,u=s.name;"function"==typeof r&&(a=r({state:a,options:l,name:u,instance:h})||a)}else a.reset=!1,n=-1}}},update:(s=function(){return new Promise(function(t){h.forceUpdate(),t(a)})},function(){return o||(o=new Promise(function(t){Promise.resolve().then(function(){o=void 0,t(s())})})),o}),destroy:function(){u(),c=!0}};if(!ji(t,e))return h;function u(){l.forEach(function(t){return t()}),l=[]}return h.setOptions(i).then(function(t){!c&&i.onFirstUpdate&&i.onFirstUpdate(t)}),h}}var zi=Fi(),Hi=Fi({defaultModifiers:[ui,Ii,ci,ze]}),Wi=Fi({defaultModifiers:[ui,Ii,ci,ze,Di,Ti,Li,ri,$i]}),Bi=e({afterMain:()=>Oe,afterRead:()=>Ce,afterWrite:()=>Ie,applyStyles:()=>ze,arrow:()=>ri,auto:()=>me,basePlacements:()=>ge,beforeMain:()=>Te,beforeRead:()=>xe,beforeWrite:()=>$e,bottom:()=>de,clippingParents:()=>ve,computeStyles:()=>ci,createPopper:()=>Wi,createPopperBase:()=>zi,createPopperLite:()=>Hi,detectOverflow:()=>Si,end:()=>"end",eventListeners:()=>ui,flip:()=>Ti,hide:()=>$i,left:()=>pe,main:()=>ke,modifierPhases:()=>Le,offset:()=>Di,placements:()=>Ee,popper:()=>ye,popperGenerator:()=>Fi,popperOffsets:()=>Ii,preventOverflow:()=>Li,read:()=>Se,reference:()=>we,right:()=>fe,start:()=>_e,top:()=>"top",variationPlacements:()=>Ae,viewport:()=>be,write:()=>De}),Ri=".bs.alert",qi=`close${Ri}`,Vi=`closed${Ri}`,Yi=class t extends X{static get NAME(){return"alert"}close(){const t=j.trigger(this._element,qi);if(null==t?void 0:t.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(),j.trigger(this._element,Vi),this.dispose()}static jQueryInterface(e){return this.each(function(){const i=t.getOrCreateInstance(this);if("string"==typeof e){if(void 0===i[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);i[e](this)}})}};Z(Yi,"close"),v(Yi);var Ui='[data-bs-toggle="button"], [data-tblr-toggle="button"]',Ki=class t extends X{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",String(this._element.classList.toggle("active")))}static jQueryInterface(e){return this.each(function(){const i=t.getOrCreateInstance(this);"toggle"===e&&i.toggle()})}};j.on(document,"click.bs.button.data-api",Ui,t=>{var e;t.preventDefault();const i=null===(e=t.target)||void 0===e?void 0:e.closest(Ui);i&&Ki.getOrCreateInstance(i).toggle()}),v(Ki);var Xi=".bs.swipe",Qi=`touchstart${Xi}`,Gi=`touchmove${Xi}`,Zi=`touchend${Xi}`,Ji=`pointerdown${Xi}`,tn=`pointerup${Xi}`,en={endCallback:null,leftCallback:null,rightCallback:null},nn={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"},sn=class t extends K{constructor(e,i){super(),this._element=e,e&&t.isSupported()&&(this._config=this._getConfig(i),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return en}static get DefaultType(){return nn}static get NAME(){return"swipe"}dispose(){j.off(this._element,Xi)}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),b(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=40)return;const e=t/this._deltaX;this._deltaX=0,e&&b(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(j.on(this._element,Ji,t=>this._start(t)),j.on(this._element,tn,t=>this._end(t)),this._element.classList.add("pointer-event")):(j.on(this._element,Qi,t=>this._start(t)),j.on(this._element,Gi,t=>this._move(t)),j.on(this._element,Zi,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&("pen"===t.pointerType||"touch"===t.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}},rn=".bs.carousel",on=".data-api",an="ArrowLeft",ln="ArrowRight",cn="next",hn="prev",un="left",dn="right",fn=`slide${rn}`,pn=`slid${rn}`,mn=`keydown${rn}`,gn=`mouseenter${rn}`,_n=`mouseleave${rn}`,vn=`dragstart${rn}`,bn=`load${rn}${on}`,yn=`click${rn}${on}`,wn="carousel",An="active",En={[an]:dn,[ln]:un},xn={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Sn={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"},Cn=class t extends X{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=G.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===wn&&this.cycle()}static get Default(){return xn}static get DefaultType(){return Sn}static get NAME(){return"carousel"}next(){this._slide(cn)}nextWhenVisible(){!document.hidden&&h(this._element)&&this.next()}prev(){this._slide(hn)}pause(){this._isSliding&&a(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?j.one(this._element,pn,()=>this.cycle()):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void j.one(this._element,pn,()=>this.to(t));const i=this._getItemIndex(this._getActive());if(i===t)return;const n=t>i?cn:hn;this._slide(n,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&j.on(this._element,mn,t=>this._keydown(t)),"hover"===this._config.pause&&(j.on(this._element,gn,()=>this.pause()),j.on(this._element,_n,()=>this._maybeEnableCycle())),this._config.touch&&sn.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of G.find(".carousel-item img",this._element))j.on(t,vn,t=>t.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(un)),rightCallback:()=>this._slide(this._directionToOrder(dn)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new sn(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=En[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=G.findOne(".active",this._indicatorsElement);e.classList.remove(An),e.removeAttribute("aria-current");const i=G.findOne(`[data-bs-slide-to="${t}"], [data-tblr-slide-to="${t}"]`,this._indicatorsElement);i&&(i.classList.add(An),i.setAttribute("aria-current","true"))}_updateInterval(){var t;const e=this._activeElement||this._getActive();if(!e)return;const i=Number.parseInt(e.getAttribute("data-bs-interval")||e.getAttribute("data-tblr-interval")||"",10);this._config.interval=i||(null!==(t=this._config.defaultInterval)&&void 0!==t?t:this._config.interval)}_slide(t,e=null){if(this._isSliding)return;const i=this._getActive(),n=t===cn,s=e||w(this._getItems(),i,n,this._config.wrap);if(s===i)return;const r=this._getItemIndex(s),o=e=>j.trigger(this._element,e,{relatedTarget:s,direction:this._orderToDirection(t),from:this._getItemIndex(i),to:r}),a=o(fn);if(null==a?void 0:a.defaultPrevented)return;if(!i||!s)return;const l=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(r),this._activeElement=s;const c=n?"carousel-item-start":"carousel-item-end",h=n?"carousel-item-next":"carousel-item-prev";s.classList.add(h),p(s),i.classList.add(c),s.classList.add(c);this._queueCallback(()=>{s.classList.remove(c,h),s.classList.add(An),i.classList.remove(An,h,c),this._isSliding=!1,o(pn)},i,this._isAnimated()),l&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return G.findOne(".active.carousel-item",this._element)}_getItems(){return G.find(".carousel-item",this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return m()?t===un?hn:cn:t===un?cn:hn}_orderToDirection(t){return m()?t===hn?un:dn:t===hn?dn:un}static jQueryInterface(e){return this.each(function(){const i=t.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===i[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);i[e]()}}else i.to(e)})}};j.on(document,yn,"[data-bs-slide], [data-bs-slide-to], [data-tblr-slide], [data-tblr-slide-to]",function(t){const e=G.getElementFromSelector(this);if(!e||!e.classList.contains(wn))return;t.preventDefault();const i=Cn.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to")||this.getAttribute("data-tblr-slide-to");return n?(i.to(Number(n)),void i._maybeEnableCycle()):"next"===B.getDataAttribute(this,"slide")?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())}),j.on(window,bn,()=>{const t=G.find('[data-bs-ride="carousel"], [data-tblr-ride="carousel"]');for(const e of t)Cn.getOrCreateInstance(e)}),v(Cn);var Tn=".bs.collapse",kn=`show${Tn}`,On=`shown${Tn}`,$n=`hide${Tn}`,Dn=`hidden${Tn}`,In=`click${Tn}.data-api`,Ln="show",Mn="collapse",Nn="collapsing",Pn=`:scope .${Mn} .${Mn}`,jn='[data-bs-toggle="collapse"], [data-tblr-toggle="collapse"]',Fn={parent:null,toggle:!0},zn={parent:"(null|element)",toggle:"boolean"},Hn=class t extends X{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const i=G.find(jn);for(const t of i){const e=G.getSelectorFromElement(t),i=G.find(e).filter(t=>t===this._element);null!==e&&i.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Fn}static get DefaultType(){return zn}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(t=>t!==this._element).map(e=>t.getOrCreateInstance(e,{toggle:!1}))),e.length&&e[0]._isTransitioning)return;const i=j.trigger(this._element,kn);if(null==i?void 0:i.defaultPrevented)return;for(const t of e)t.hide();const n=this._getDimension();this._element.classList.remove(Mn),this._element.classList.add(Nn),this._element.style[n]="0",this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const s=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Nn),this._element.classList.add(Mn,Ln),this._element.style[n]="",j.trigger(this._element,On)},this._element,!0),this._element.style[n]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown())return;const t=j.trigger(this._element,$n);if(null==t?void 0:t.defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,p(this._element),this._element.classList.add(Nn),this._element.classList.remove(Mn,Ln);for(const t of this._triggerArray){const e=G.getElementFromSelector(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0;this._element.style[e]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Nn),this._element.classList.add(Mn),j.trigger(this._element,Dn)},this._element,!0)}_isShown(t=this._element){return t.classList.contains(Ln)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=c(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(jn);for(const e of t){const t=G.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=G.find(Pn,this._config.parent);return G.find(t,this._config.parent).filter(t=>!e.includes(t))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const i of t)i.classList.toggle("collapsed",!e),i.setAttribute("aria-expanded",String(e))}static jQueryInterface(e){const i={};return"string"==typeof e&&/show|hide/.test(e)&&(i.toggle=!1),this.each(function(){const n=t.getOrCreateInstance(this,i);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}})}};j.on(document,In,jn,function(t){const{delegateTarget:e}=t;("A"===t.target.tagName||e&&"A"===e.tagName)&&t.preventDefault();for(const t of G.getMultipleElementsFromSelector(this))Hn.getOrCreateInstance(t,{toggle:!1}).toggle()}),v(Hn);var Wn="dropdown",Bn=".bs.dropdown",Rn=".data-api",qn="ArrowUp",Vn="ArrowDown",Yn=`hide${Bn}`,Un=`hidden${Bn}`,Kn=`show${Bn}`,Xn=`shown${Bn}`,Qn=`click${Bn}${Rn}`,Gn=`keydown${Bn}${Rn}`,Zn=`keyup${Bn}${Rn}`,Jn="show",ts='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled), [data-tblr-toggle="dropdown"]:not(.disabled):not(:disabled)',es=`.${Jn}[data-bs-toggle="dropdown"], .${Jn}[data-tblr-toggle="dropdown"]`,is=".dropdown-menu",ns=m()?"top-end":"top-start",ss=m()?"top-start":"top-end",rs=m()?"bottom-end":"bottom-start",os=m()?"bottom-start":"bottom-end",as=m()?"left-start":"right-start",ls=m()?"right-start":"left-start",cs={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},hs={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"},us=class t extends X{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=G.next(this._element,is)[0]||G.prev(this._element,is)[0]||G.findOne(is,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return cs}static get DefaultType(){return hs}static get NAME(){return Wn}toggle(){this._isShown()?this.hide():this.show()}show(){if(u(this._element)||this._isShown())return;const t={relatedTarget:this._element},e=j.trigger(this._element,Kn,t);if(!(null==e?void 0:e.defaultPrevented)){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of Array.from(document.body.children))j.on(t,"mouseover",f);this._element.focus(),this._element.setAttribute("aria-expanded","true"),this._menu.classList.add(Jn),this._element.classList.add(Jn),j.trigger(this._element,Xn,t)}}hide(){if(u(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){const e=j.trigger(this._element,Yn,t);if(!(null==e?void 0:e.defaultPrevented)){if("ontouchstart"in document.documentElement)for(const t of Array.from(document.body.children))j.off(t,"mouseover",f);this._popper&&this._popper.destroy(),this._menu.classList.remove(Jn),this._element.classList.remove(Jn),this._element.setAttribute("aria-expanded","false"),B.removeDataAttribute(this._menu,"popper"),j.trigger(this._element,Un,t)}}_getConfig(t){const e=super._getConfig(t);if("object"==typeof e.reference&&!l(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${Wn.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(void 0===Bi)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let t=this._element;"parent"===this._config.reference?t=this._parent:l(this._config.reference)?t=c(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=Wi(t,this._menu,e)}_isShown(){return this._menu.classList.contains(Jn)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return as;if(t.classList.contains("dropstart"))return ls;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?ss:ns:e?os:rs}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};(this._inNavbar||"static"===this._config.display)&&(B.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]);const e=b(this._config.popperConfig,[void 0,t]);return U(U({},t),"object"==typeof e&&null!==e?e:{})}_selectMenuItem({key:t,target:e}){const i=G.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(t=>h(t));if(!i.length)return;const n=e;w(i,n,t===Vn,!i.includes(n)).focus()}static clearMenus(e){if(2===e.button||"keyup"===e.type&&"Tab"!==e.key)return;const i=G.find(es);for(const n of i){const i=t.getInstance(n);if(!i||!1===i._config.autoClose)continue;const s=e.composedPath(),r=s.includes(i._menu);if(s.includes(i._element)||"inside"===i._config.autoClose&&!r||"outside"===i._config.autoClose&&r)continue;if(i._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const o={relatedTarget:i._element};"click"===e.type&&(o.clickEvent=e),i._completeHide(o)}}static dataApiKeydownHandler(e){const i=/input|textarea/i.test(e.target.tagName),n="Escape"===e.key,s=[qn,Vn].includes(e.key);if(!s&&!n)return;if(i&&!n)return;e.preventDefault();const r=this.matches(ts)?this:G.prev(this,ts)[0]||G.next(this,ts)[0]||G.findOne(ts,e.delegateTarget.parentNode),o=t.getOrCreateInstance(r);if(s)return e.stopPropagation(),o.show(),void o._selectMenuItem(e);o._isShown()&&(e.stopPropagation(),o.hide(),r.focus())}static jQueryInterface(e){return this.each(function(){const i=t.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}})}};j.on(document,Gn,ts,us.dataApiKeydownHandler),j.on(document,Gn,is,us.dataApiKeydownHandler),j.on(document,Qn,us.clearMenus),j.on(document,Zn,us.clearMenus),j.on(document,Qn,ts,function(t){t.preventDefault(),us.getOrCreateInstance(this).toggle()}),v(us);var ds="backdrop",fs="show",ps=`mousedown.bs.${ds}`,ms={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},gs={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"},_s=class extends K{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return ms}static get DefaultType(){return gs}static get NAME(){return ds}show(t){if(!this._config.isVisible)return void b(t);this._append();const e=this._getElement();this._config.isAnimated&&p(e),e.classList.add(fs),this._emulateAnimation(()=>{b(t)})}hide(t){this._config.isVisible?(this._getElement().classList.remove(fs),this._emulateAnimation(()=>{this.dispose(),b(t)})):b(t)}dispose(){this._isAppended&&(j.off(this._element,ps),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=c(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),j.on(t,ps,()=>{b(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){y(t,this._getElement(),this._config.isAnimated)}},vs=".bs.focustrap",bs=`focusin${vs}`,ys=`keydown.tab${vs}`,ws="backward",As={autofocus:!0,trapElement:null},Es={autofocus:"boolean",trapElement:"element"},xs=class extends K{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return As}static get DefaultType(){return Es}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),j.off(document,vs),j.on(document,bs,t=>this._handleFocusin(t)),j.on(document,ys,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,j.off(document,vs))}_handleFocusin(t){const{trapElement:e}=this._config;if(!e||t.target===document||t.target===e||e.contains(t.target))return;const i=G.focusableChildren(e);0===i.length?e.focus():this._lastTabNavDirection===ws?i[i.length-1].focus():i[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?ws:"forward")}},Ss=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Cs=".sticky-top",Ts="padding-right",ks="margin-right",Os=class{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Ts,e=>e+t),this._setElementAttributes(Ss,Ts,e=>e+t),this._setElementAttributes(Cs,ks,e=>e-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Ts),this._resetElementAttributes(Ss,Ts),this._resetElementAttributes(Cs,ks)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const n=this.getWidth();this._applyManipulationCallback(t,t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+n)return;this._saveInitialAttribute(t,e);const s=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${i(Number.parseFloat(s))}px`)})}_saveInitialAttribute(t,e){const i=t.style.getPropertyValue(e);i&&B.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,t=>{const i=B.getDataAttribute(t,e);null!==i?(B.removeDataAttribute(t,e),t.style.setProperty(e,String(i))):t.style.removeProperty(e)})}_applyManipulationCallback(t,e){if(l(t))e(t);else for(const i of G.find(t,this._element))e(i)}},$s=".bs.modal",Ds=`hide${$s}`,Is=`hidePrevented${$s}`,Ls=`hidden${$s}`,Ms=`show${$s}`,Ns=`shown${$s}`,Ps=`resize${$s}`,js=`click.dismiss${$s}`,Fs=`mousedown.dismiss${$s}`,zs=`keydown.dismiss${$s}`,Hs=`click${$s}.data-api`,Ws="modal-open",Bs="show",Rs="modal-static",qs={backdrop:!0,focus:!0,keyboard:!0},Vs={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"},Ys=class t extends X{constructor(t,e){super(t,e),this._dialog=G.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Os,this._addEventListeners()}static get Default(){return qs}static get DefaultType(){return Vs}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||this._isTransitioning)return;const e=j.trigger(this._element,Ms,{relatedTarget:t});(null==e?void 0:e.defaultPrevented)||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Ws),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){if(!this._isShown||this._isTransitioning)return;const t=j.trigger(this._element,Ds);(null==t?void 0:t.defaultPrevented)||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Bs),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){j.off(window,$s),j.off(this._dialog,$s),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new _s({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new xs({trapElement:this._element})}_showElement(t){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","true"),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const e=this._dialog?G.findOne(".modal-body",this._dialog):null;e&&(e.scrollTop=0),p(this._element),this._element.classList.add(Bs);this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,j.trigger(this._element,Ns,{relatedTarget:t})},this._dialog,this._isAnimated())}_addEventListeners(){j.on(this._element,zs,t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),j.on(window,Ps,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),j.on(this._element,Fs,t=>{j.one(this._element,js,e=>{this._element===t.target&&this._element===e.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden","true"),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Ws),this._resetAdjustments(),this._scrollBar.reset(),j.trigger(this._element,Ls)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){const t=j.trigger(this._element,Is);if(null==t?void 0:t.defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,i=this._element.style.overflowY;"hidden"===i||this._element.classList.contains(Rs)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(Rs),this._queueCallback(()=>{this._element.classList.remove(Rs),this._queueCallback(()=>{this._element.style.overflowY=i},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),i=e>0;if(i&&!t){const t=m()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!i&&t){const t=m()?"paddingRight":"paddingLeft";this._element.style[t]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,i){return this.each(function(){const n=t.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e](i)}})}};j.on(document,Hs,'[data-bs-toggle="modal"], [data-tblr-toggle="modal"]',function(t){const e=G.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),!e)return;j.one(e,Ms,t=>{(null==t?void 0:t.defaultPrevented)||j.one(e,Ls,()=>{h(this)&&this.focus()})});const i=G.findOne(".modal.show");i&&Ys.getInstance(i).hide(),Ys.getOrCreateInstance(e).toggle(this)}),Z(Ys),v(Ys);var Us=".bs.offcanvas",Ks=".data-api",Xs=`load${Us}${Ks}`,Qs="show",Gs="showing",Zs="hiding",Js=".offcanvas.show",tr=`show${Us}`,er=`shown${Us}`,ir=`hide${Us}`,nr=`hidePrevented${Us}`,sr=`hidden${Us}`,rr=`resize${Us}`,or=`click${Us}${Ks}`,ar=`keydown.dismiss${Us}`,lr={backdrop:!0,keyboard:!0,scroll:!1},cr={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"},hr=class t extends X{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return lr}static get DefaultType(){return cr}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown)return;const e=j.trigger(this._element,tr,{relatedTarget:t});if(null==e?void 0:e.defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||(new Os).hide(),this._element.setAttribute("aria-modal","true"),this._element.setAttribute("role","dialog"),this._element.classList.add(Gs);this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Qs),this._element.classList.remove(Gs),j.trigger(this._element,er,{relatedTarget:t})},this._element,!0)}hide(){if(!this._isShown)return;const t=j.trigger(this._element,ir);if(null==t?void 0:t.defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Zs),this._backdrop.hide();this._queueCallback(()=>{this._element.classList.remove(Qs,Zs),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new Os).reset(),j.trigger(this._element,sr)},this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new _s({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():j.trigger(this._element,nr)}:null})}_initializeFocusTrap(){return new xs({trapElement:this._element})}_addEventListeners(){j.on(this._element,ar,t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():j.trigger(this._element,nr))})}static jQueryInterface(e){return this.each(function(){const i=t.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);i[e](this)}})}};j.on(document,or,'[data-bs-toggle="offcanvas"], [data-tblr-toggle="offcanvas"]',function(t){const e=G.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),!e)return;if(u(this))return;j.one(e,sr,()=>{h(this)&&this.focus()});const i=G.findOne(Js);i&&i!==e&&hr.getInstance(i).hide(),hr.getOrCreateInstance(e).toggle(this)}),j.on(window,Xs,()=>{for(const t of G.find(Js))hr.getOrCreateInstance(t).show()}),j.on(window,rr,()=>{for(const t of G.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&hr.getOrCreateInstance(t).hide()}),Z(hr),v(hr);var ur={"*":["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:[]},dr=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),fr=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,pr=(t,e)=>{const i=t.nodeName.toLowerCase();return e.includes(i)?!dr.has(i)||Boolean(fr.test(t.nodeValue)):e.filter(t=>t instanceof RegExp).some(t=>t.test(i))};var mr={allowList:ur,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},gr={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},_r={entry:"(string|element|function|null)",selector:"(string|element)"},vr=class extends K{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return mr}static get DefaultType(){return gr}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content=U(U({},this._config.content),t),this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[e,i]of Object.entries(this._config.content))this._setContent(t,i,e);const e=t.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&e.classList.add(...i.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,i]of Object.entries(t))super._typeCheckConfig({selector:e,entry:i},_r)}_setContent(t,e,i){const n=G.findOne(i,t);n&&((e=this._resolvePossibleFunction(e))?l(e)?this._putElementInTemplate(c(e),n):this._config.html?n.innerHTML=this._maybeSanitize(e):n.textContent=e:n.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,i){if(!t.length)return t;if(i&&"function"==typeof i)return i(t);const n=(new window.DOMParser).parseFromString(t,"text/html"),s=Array.from(n.body.querySelectorAll("*"));for(const t of s){const i=t.nodeName.toLowerCase();if(!Object.keys(e).includes(i)){t.remove();continue}const n=Array.from(t.attributes),s=[...e["*"]||[],...e[i]||[]];for(const e of n)pr(e,s)||t.removeAttribute(e.nodeName)}return n.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return b(t,[void 0,this])}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}},br=new Set(["sanitize","allowList","sanitizeFn"]),yr="fade",wr="show",Ar=".tooltip-inner",Er=".modal",xr="hide.bs.modal",Sr="hover",Cr="focus",Tr="click",kr={AUTO:"auto",TOP:"top",RIGHT:m()?"left":"right",BOTTOM:"bottom",LEFT:m()?"right":"left"},Or={allowList:ur,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"},$r={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"},Dr=class t extends X{constructor(t,e){if(void 0===Bi)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._hideModalHandler=()=>{this._element&&this.hide()},this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Or}static get DefaultType(){return $r}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),j.off(this._element.closest(Er),xr,this._hideModalHandler),(this._element.getAttribute("data-bs-original-title")||this._element.getAttribute("data-tblr-original-title"))&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")||this._element.getAttribute("data-tblr-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 t=j.trigger(this._element,this.constructor.eventName("show")),e=(d(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if((null==t?void 0:t.defaultPrevented)||!e)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:n}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(n.append(i),j.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(i),i.classList.add(wr),"ontouchstart"in document.documentElement)for(const t of Array.from(document.body.children))j.on(t,"mouseover",f);this._queueCallback(()=>{j.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(!this._isShown())return;const t=j.trigger(this._element,this.constructor.eventName("hide"));if(null==t?void 0:t.defaultPrevented)return;if(this._getTipElement().classList.remove(wr),"ontouchstart"in document.documentElement)for(const t of Array.from(document.body.children))j.off(t,"mouseover",f);this._activeTrigger[Tr]=!1,this._activeTrigger[Cr]=!1,this._activeTrigger[Sr]=!1,this._isHovered=null;this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),j.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(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(yr,wr),e.classList.add(`bs-${this.constructor.NAME}-auto`);const i=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME).toString();return e.setAttribute("id",i),this._isAnimated()&&e.classList.add(yr),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new vr(U(U({},this._config),{},{content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)})),this._templateFactory}_getContentForTemplate(){return{[Ar]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")||this._element.getAttribute("data-tblr-original-title")||""}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||null!==this.tip&&this.tip.classList.contains(yr)}_isShown(){return null!==this.tip&&this.tip.classList.contains(wr)}_createPopper(t){const e=kr[b(this._config.placement,[this,t,this._element]).toUpperCase()];return Wi(this._element,t,this._getPopperConfig(e))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return b(t,[this._element,this._element])}_getPopperConfig(t){const e={placement:t,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:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]},i=b(this._config.popperConfig,[void 0,e]);return U(U({},e),"object"==typeof i&&null!==i?i:{})}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)j.on(this._element,this.constructor.eventName("click"),this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger[Tr]=!(e._isShown()&&e._activeTrigger[Tr]),e.toggle()});else if("manual"!==e){const t=e===Sr?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),i=e===Sr?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");j.on(this._element,t,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?Cr:Sr]=!0,e._enter()}),j.on(this._element,i,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?Cr:Sr]=e._element.contains(t.relatedTarget),e._leave()})}j.on(this._element.closest(Er),xr,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._getDelay().show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._getDelay().hide))}_getDelay(){const{delay:t}=this._config;return"number"==typeof t?{show:t,hide:t}:t}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=B.getDataAttributes(this._element);for(const t of Object.keys(e))br.has(t)&&delete e[t];let i=U(U({},e),"object"==typeof t&&t?t:{});return i=this._mergeConfigObj(i),i=this._configAfterMerge(i),this._typeCheckConfig(i),i}_configAfterMerge(t){t.container=!1===t.container?document.body:c(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay});const e=t;return"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),t}_getDelegateConfig(){const t={},e=this.constructor.Default;for(const[i,n]of Object.entries(this._config))e[i]!==n&&(t[i]=n);return t.selector=!1,t.trigger="manual",t}_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 i=t.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}})}};v(Dr);var Ir=".popover-header",Lr=".popover-body",Mr=U(U({},Dr.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"}),Nr=U(U({},Dr.DefaultType),{},{content:"(null|string|element|function)"}),Pr=class t extends Dr{constructor(t,e){super(t,e)}static get Default(){return Mr}static get DefaultType(){return Nr}static get NAME(){return"popover"}_isWithContent(){return Boolean(this._getTitle()||this._getContent())}_getContentForTemplate(){return{[Ir]:this._getTitle(),[Lr]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const i=t.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}})}};v(Pr);var jr=".bs.scrollspy",Fr=`activate${jr}`,zr=`click${jr}`,Hr=`load${jr}.data-api`,Wr="active",Br="[href]",Rr=".nav-link",qr=`${Rr}, .nav-item > ${Rr}, .list-group-item`,Vr={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Yr={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"},Ur=class t extends X{constructor(t,e){super(t,e),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 Vr}static get DefaultType(){return Yr}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){t.target=c(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin;const e=t.threshold;return"string"==typeof e&&(t.threshold=e.split(",").map(t=>Number.parseFloat(t))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(j.off(this._config.target,zr),j.on(this._config.target,zr,Br,t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const i=this._rootElement||window,n=e.offsetTop-this._element.offsetTop;if("scrollTo"in i)return void i.scrollTo({top:n,behavior:"smooth"});i.scrollTop=n}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),t)}_observerCallback(t){const e=t=>this._targetLinks.get(`#${t.target.id}`),i=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},n=(this._rootElement||document.documentElement).scrollTop,s=n>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=n;for(const r of t){if(!r.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(r));continue}const t=r.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&t){if(i(r),!n)return}else s||t||i(r)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=G.find(Br,this._config.target);for(const e of t){if(!e.hash||u(e))continue;const t=G.findOne(r(decodeURI(e.hash)),this._element);h(t)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,t))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(Wr),this._activateParents(t),j.trigger(this._element,Fr,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))G.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(Wr);else for(const e of G.parents(t,".nav, .list-group"))for(const t of G.prev(e,qr))t.classList.add(Wr)}_clearActiveClass(t){t.classList.remove(Wr);const e=G.find(`${Br}.${Wr}`,t);for(const t of e)t.classList.remove(Wr)}static jQueryInterface(e){return this.each(function(){const i=t.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);i[e]()}})}};j.on(window,Hr,()=>{for(const t of G.find('[data-bs-spy="scroll"], [data-tblr-spy="scroll"]'))Ur.getOrCreateInstance(t)}),v(Ur);var Kr=".bs.tab",Xr=`hide${Kr}`,Qr=`hidden${Kr}`,Gr=`show${Kr}`,Zr=`shown${Kr}`,Jr=`click${Kr}`,to=`keydown${Kr}`,eo=`load${Kr}`,io="ArrowLeft",no="ArrowRight",so="ArrowUp",ro="ArrowDown",oo="Home",ao="End",lo="active",co="fade",ho="show",uo=".dropdown-toggle",fo=`:not(${uo})`,po='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"], [data-tblr-toggle="tab"], [data-tblr-toggle="pill"], [data-tblr-toggle="list"]',mo=`${`.nav-link${fo}, .list-group-item${fo}, [role="tab"]${fo}`}, ${po}`,go=`.${lo}[data-bs-toggle="tab"], .${lo}[data-bs-toggle="pill"], .${lo}[data-bs-toggle="list"], .${lo}[data-tblr-toggle="tab"], .${lo}[data-tblr-toggle="pill"], .${lo}[data-tblr-toggle="list"]`,_o=class t extends X{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),j.on(this._element,to,t=>this._keydown(t)))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),i=e?j.trigger(e,Xr,{relatedTarget:t}):null,n=j.trigger(t,Gr,{relatedTarget:e});(null==n?void 0:n.defaultPrevented)||(null==i?void 0:i.defaultPrevented)||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){if(!t)return;t.classList.add(lo),this._activate(G.getElementFromSelector(t));this._queueCallback(()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected","true"),this._toggleDropDown(t,!0),j.trigger(t,Zr,{relatedTarget:e})):t.classList.add(ho)},t,t.classList.contains(co))}_deactivate(t,e){if(!t)return;t.classList.remove(lo),t.blur(),this._deactivate(G.getElementFromSelector(t));this._queueCallback(()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected","false"),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),j.trigger(t,Qr,{relatedTarget:e})):t.classList.remove(ho)},t,t.classList.contains(co))}_keydown(e){if(![io,no,so,ro,oo,ao].includes(e.key))return;e.stopPropagation(),e.preventDefault();const i=this._getChildren().filter(t=>!u(t));let n;if([oo,ao].includes(e.key))n=i[e.key===oo?0:i.length-1];else{const t=[no,ro].includes(e.key);n=w(i,e.target,t,!0)}n&&(n.focus({preventScroll:!0}),t.getOrCreateInstance(n).show())}_getChildren(){return G.find(mo,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const t of e)this._setInitialAttributesOnChild(t)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),i=this._getOuterElement(t);t.setAttribute("aria-selected",String(e)),i!==t&&this._setAttributeIfNotExists(i,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=G.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const i=this._getOuterElement(t);if(!i.classList.contains("dropdown"))return;const n=(t,n)=>{const s=G.findOne(t,i);s&&s.classList.toggle(n,e)};n(uo,lo),n(".dropdown-menu",ho),i.setAttribute("aria-expanded",String(e))}_setAttributeIfNotExists(t,e,i){t.hasAttribute(e)||t.setAttribute(e,i)}_elemIsActive(t){return t.classList.contains(lo)}_getInnerElement(t){return t.matches(mo)?t:G.findOne(mo,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(e){return this.each(function(){const i=t.getOrCreateInstance(this);if("string"==typeof e){if(void 0===i[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);i[e]()}})}};j.on(document,Jr,po,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),u(this)||_o.getOrCreateInstance(this).show()}),j.on(window,eo,()=>{for(const t of G.find(go))_o.getOrCreateInstance(t)}),v(_o);var vo=".bs.toast",bo=`mouseover${vo}`,yo=`mouseout${vo}`,wo=`focusin${vo}`,Ao=`focusout${vo}`,Eo=`hide${vo}`,xo=`hidden${vo}`,So=`show${vo}`,Co=`shown${vo}`,To="hide",ko="show",Oo="showing",$o={animation:"boolean",autohide:"boolean",delay:"number"},Do={animation:!0,autohide:!0,delay:5e3},Io=class t extends X{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Do}static get DefaultType(){return $o}static get NAME(){return"toast"}show(){const t=j.trigger(this._element,So);if(null==t?void 0:t.defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");this._element.classList.remove(To),p(this._element),this._element.classList.add(ko,Oo),this._queueCallback(()=>{this._element.classList.remove(Oo),j.trigger(this._element,Co),this._maybeScheduleHide()},this._element,this._config.animation)}hide(){if(!this.isShown())return;const t=j.trigger(this._element,Eo);if(null==t?void 0:t.defaultPrevented)return;this._element.classList.add(Oo),this._queueCallback(()=>{this._element.classList.add(To),this._element.classList.remove(Oo,ko),j.trigger(this._element,xo)},this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(ko),super.dispose()}isShown(){return this._element.classList.contains(ko)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const i=t.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){j.on(this._element,bo,t=>this._onInteraction(t,!0)),j.on(this._element,yo,t=>this._onInteraction(t,!1)),j.on(this._element,wo,t=>this._onInteraction(t,!0)),j.on(this._element,Ao,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const i=t.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e](this)}})}};Z(Io),v(Io);var Lo={Alert:Yi,Button:Ki,Carousel:Cn,Collapse:Hn,Dropdown:us,Modal:Ys,Offcanvas:hr,Popover:Pr,ScrollSpy:Ur,Tab:_o,Toast:Io,Tooltip:Dr};[].slice.call(document.querySelectorAll('[data-bs-toggle="dropdown"]')).map(function(t){return new us(t,{boundary:"viewport"===t.getAttribute("data-bs-boundary")?document.documentElement:"clippingParents"})});var Mo=t=>{for(const e of document.querySelectorAll('[data-bs-toggle="sidebar-folded"]'))e.setAttribute("aria-pressed",String(t))},No=t=>{for(const i of document.querySelectorAll('.navbar-vertical [data-bs-toggle="dropdown"][aria-expanded="true"]'))if(i!==t){var e;null===(e=us.getInstance(i))||void 0===e||e.hide()}};function Po(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function jo(t,e,i){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}function Fo(t,e){return t.get(jo(t,e))}document.addEventListener("click",t=>{if(!(null!==(e=document.documentElement.getAttribute("data-bs-sidebar"))&&void 0!==e?e:"").startsWith("folded")&&!document.querySelector(".navbar-vertical.navbar-folded, .navbar-vertical.navbar-folded-hover"))return;var e;const i=t.target;i.closest(".navbar-vertical .dropdown-menu")||No(i.closest('.navbar-vertical [data-bs-toggle="dropdown"]'))}),document.addEventListener("mouseleave",t=>{const e=t.target;e instanceof Element&&e.matches(".navbar-vertical")&&("folded-hover"===document.documentElement.getAttribute("data-bs-sidebar")||e.classList.contains("navbar-folded-hover"))&&No()},!0),document.addEventListener("DOMContentLoaded",()=>{var t;const e=(null!==(t=document.documentElement.getAttribute("data-bs-sidebar"))&&void 0!==t?t:"").startsWith("folded");if(Mo(e),e)for(const t of document.querySelectorAll(".navbar-vertical .dropdown-menu.show")){var i;t.classList.remove("show"),null===(i=t.parentElement)||void 0===i||null===(i=i.querySelector('[data-bs-toggle="dropdown"]'))||void 0===i||i.setAttribute("aria-expanded","false")}}),document.addEventListener("click",t=>{var e;if(!t.target.closest('[data-bs-toggle="sidebar-folded"]'))return;const i=document.documentElement,n=!(null!==(e=i.getAttribute("data-bs-sidebar"))&&void 0!==e?e:"").startsWith("folded");n?i.setAttribute("data-bs-sidebar","folded-hover"):i.removeAttribute("data-bs-sidebar"),localStorage.setItem("tabler-sidebar",n?"folded-hover":"default"),Mo(n),No(),document.dispatchEvent(new CustomEvent("tabler:sidebar-folded",{detail:{folded:n}}))}),[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map(function(t){var e;return new Dr(t,{delay:{show:50,hide:50},html:"true"===t.getAttribute("data-bs-html"),placement:null!==(e=t.getAttribute("data-bs-placement"))&&void 0!==e?e:"auto"})}),[].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]')).map(function(t){var e;return new Pr(t,{delay:{show:50,hide:50},html:"true"===t.getAttribute("data-bs-html"),placement:null!==(e=t.getAttribute("data-bs-placement"))&&void 0!==e?e:"auto"})});var zo="switch-icon",Ho=`.bs.${zo}`,Wo=`click${Ho}`,Bo=`toggle${Ho}`,Ro=`change${Ho}`,qo="active",Vo="switch-icon-loading",Yo=".switch-icon",Uo=`[data-bs-toggle="${zo}"], [data-tblr-toggle="${zo}"]`,Ko={},Xo={},Qo=new WeakMap,Go=new WeakSet,Zo=class extends X{constructor(t,e){var i,n,s;super(t,e),Po(n=this,s=Go),s.add(n),function(t,e,i){Po(t,e),e.set(t,i)}(this,Qo,void 0),this._element&&(!function(t,e,i){t.set(jo(t,e),i)}(Qo,this,this._element.matches(Yo)?this._element:null!==(i=G.findOne(Yo,this._element))&&void 0!==i?i:this._element),this._element.hasAttribute("aria-pressed")||this._element.setAttribute("aria-pressed",String(this.isActive)),j.on(this._element,Wo,t=>{t.stopPropagation(),this._element.classList.contains("disabled")||"true"===this._element.getAttribute("aria-disabled")||this.toggle()}))}static get Default(){return Ko}static get DefaultType(){return Xo}static get NAME(){return zo}get isActive(){return Fo(Qo,this).classList.contains(qo)}get isLoading(){return Fo(Qo,this).classList.contains(Vo)}toggle(t){if(this.isLoading)return;const e=null!=t?t:!this.isActive;let i;const n=j.trigger(this._element,Bo,{active:e,wait:t=>{i=t}});(null==n?void 0:n.defaultPrevented)||(i?(jo(Go,this,ta).call(this,!0),i.then(()=>jo(Go,this,Jo).call(this,e),()=>{}).finally(()=>jo(Go,this,ta).call(this,!1))):jo(Go,this,Jo).call(this,e))}};function Jo(t){Fo(Qo,this).classList.toggle(qo,t),this._element.setAttribute("aria-pressed",String(t)),j.trigger(this._element,Ro,{active:t})}function ta(t){Fo(Qo,this).classList.toggle(Vo,t),t?this._element.setAttribute("aria-busy","true"):this._element.removeAttribute("aria-busy")}J(Uo,Zo);(()=>{const t=window.location.hash;t&&[].slice.call(document.querySelectorAll('[data-bs-toggle="tab"]')).filter(e=>e.hash===t).map(t=>{new _o(t).show()})})(),[].slice.call(document.querySelectorAll('[data-bs-toggle="toast"]')).map(function(t){const e=t.getAttribute("data-bs-target");if(null===e)return;const i=new Io(e);t.addEventListener("click",()=>{i.show()})});var ea="sortable",ia=`data-${ea}`,na=`[${ia}]`,sa={},ra={},oa=class extends X{constructor(t,e){super(t,e),this._sortable=null,this._element&&window.Sortable&&(this._sortable=new window.Sortable(this._element,this._config))}static get Default(){return sa}static get DefaultType(){return ra}static get NAME(){return ea}get sortable(){return this._sortable}toArray(){var t,e;return null!==(t=null===(e=this._sortable)||void 0===e?void 0:e.toArray())&&void 0!==t?t:[]}sort(t,e){var i;null===(i=this._sortable)||void 0===i||i.sort(t,e)}dispose(){var t;null===(t=this._sortable)||void 0===t||t.destroy(),super.dispose()}_mergeConfigObj(t,e){let i={};const n=null==e?void 0:e.getAttribute(ia);if(n)try{i=JSON.parse(n)}catch(t){}return super._mergeConfigObj(U(U({},i),t),e)}};J(na,oa);var aa="otpInput",la=`.bs.${aa}`,ca=`input${la}`,ha=`complete${la}`,ua="otp-rendered",da=["blur","keyup","select"],fa={numeric:{inputmode:"numeric",pattern:"[0-9]*",filter:/[^0-9]/g},alphanumeric:{inputmode:"text",pattern:"[A-Za-z0-9]*",filter:/[^A-Za-z0-9]/g},alpha:{inputmode:"text",pattern:"[A-Za-z]*",filter:/[^A-Za-z]/g}},pa={groups:null,length:null,mask:!1,separator:"·",type:"numeric"},ma={groups:"(array|null)",length:"(number|null)",mask:"boolean",separator:"string",type:"string"},ga=class extends X{constructor(t,e){var i;if(super(t,e),this._length=0,this._slots=[],this._slotsContainer=null,this._pointerActive=!1,this._pointerIndex=0,this._onInput=()=>this._handleInput(),this._onBeforeInput=t=>this._handleBeforeInput(t),this._onFocus=()=>this._handleFocus(),this._onPointerDown=t=>this._handlePointerDown(t),this._onSync=()=>this._render(),this._onSelectionChange=()=>{document.activeElement===this._input&&this._render()},!this._element)return;const n=G.findOne("input",this._element);n&&(this._input=n,this._type=null!==(i=fa[this._config.type])&&void 0!==i?i:fa.numeric,this._length=this._resolveLength(),this._setupInput(),this._renderSlots(),this._addEventListeners(),this._render())}static get Default(){return pa}static get DefaultType(){return ma}static get NAME(){return aa}getValue(){return this._input.value}setValue(t){this._input.value=this._sanitize(String(t)),this._render(),this._checkComplete()}clear(){this._input.value="",this._render(),this._input.focus()}focus(){this._input.focus(),this._selectSlot(this._firstEmptyIndex()),this._render()}dispose(){var t;if(this._input){this._input.removeEventListener("input",this._onInput),this._input.removeEventListener("beforeinput",this._onBeforeInput),this._input.removeEventListener("focus",this._onFocus),this._input.removeEventListener("pointerdown",this._onPointerDown);for(const t of da)this._input.removeEventListener(t,this._onSync);document.removeEventListener("selectionchange",this._onSelectionChange),null===(t=this._slotsContainer)||void 0===t||t.remove(),this._element.classList.remove(ua),super.dispose()}else super.dispose()}_resolveLength(){var t;if(this._config.length)return this._config.length;const e=Number.parseInt(null!==(t=this._input.getAttribute("maxlength"))&&void 0!==t?t:"",10);return Number.isNaN(e)||e<1?6:e}_setupInput(){const t=this._input;"number"!==t.type&&"password"!==t.type||(t.type="text"),t.classList.add("otp-input"),t.setAttribute("maxlength",String(this._length)),t.setAttribute("inputmode",this._type.inputmode),t.setAttribute("pattern",this._type.pattern),t.getAttribute("autocomplete")||t.setAttribute("autocomplete","one-time-code"),t.value&&(t.value=this._sanitize(t.value))}_renderSlots(){const t=document.createElement("div");t.className="otp-slots",t.setAttribute("aria-hidden","true");const{groups:e,separator:i}=this._config;let n=0,s=0;for(let r=0;r<this._length;r++){const o=document.createElement("div");if(o.className="otp-slot",t.append(o),this._slots.push(o),e&&e.length>0&&(s++,s===e[n]&&r<this._length-1)){const r=document.createElement("div");r.className="otp-separator",r.textContent=i,t.append(r),n=Math.min(n+1,e.length-1),s=0}}this._slotsContainer=t,this._element.append(t),this._element.classList.add(ua)}_addEventListeners(){this._input.addEventListener("input",this._onInput),this._input.addEventListener("beforeinput",this._onBeforeInput),this._input.addEventListener("focus",this._onFocus),this._input.addEventListener("pointerdown",this._onPointerDown),document.addEventListener("selectionchange",this._onSelectionChange);for(const t of da)this._input.addEventListener(t,this._onSync)}_handleFocus(){if(this._pointerActive)return this._pointerActive=!1,this._selectSlot(this._pointerIndex),void this._render();this._selectSlot(this._firstEmptyIndex()),this._render()}_handleInput(){const t=this._sanitize(this._input.value);t!==this._input.value&&(this._input.value=t),document.activeElement===this._input&&this._selectSlot(this._firstEmptyIndex()),this._afterValueChange()}_handleBeforeInput(t){const{inputType:e,data:i}=t;if("insertText"===e&&i&&1===i.length){var n;t.preventDefault();const e=this._sanitize(i);if(!e)return;const s=Math.min(null!==(n=this._input.selectionStart)&&void 0!==n?n:0,this._length-1),r=[...this._input.value];return r[s]=e,this._input.value=r.join("").slice(0,this._length),this._selectSlot(s+1),void this._afterValueChange()}if("deleteContentBackward"===e){var s,r;t.preventDefault();const e=null!==(s=this._input.selectionStart)&&void 0!==s?s:0,i=null!==(r=this._input.selectionEnd)&&void 0!==r?r:e,n=[...this._input.value];i>e?(n.splice(e,i-e),this._input.value=n.join(""),this._selectSlot(e)):e>0&&(n.splice(e-1,1),this._input.value=n.join(""),this._selectSlot(e-1)),this._afterValueChange()}}_handlePointerDown(t){const e=this._slotIndexFromPoint(t.clientX);if(null===e)return;const i=Math.min(e,this._firstEmptyIndex());if(document.activeElement===this._input)return t.preventDefault(),this._selectSlot(i),void this._render();this._pointerActive=!0,this._pointerIndex=i}_slotIndexFromPoint(t){const e="rtl"===getComputedStyle(this._element).direction;for(const[i,n]of this._slots.entries()){const s=n.getBoundingClientRect();if((e?t>=s.left:t<=s.right)||i===this._slots.length-1)return i}return null}_afterValueChange(){this._render(),j.trigger(this._element,ca,{value:this._input.value}),this._checkComplete()}_firstEmptyIndex(){return Math.min(this._input.value.length,this._length-1)}_selectSlot(t){const e=Math.max(0,Math.min(t,this._length-1)),i=e<this._input.value.length?e+1:e;this._input.setSelectionRange(e,i)}_sanitize(t){return t.replace(this._type.filter,"").slice(0,this._length)}_render(){var t;const{value:e}=this._input,i=document.activeElement===this._input,n=Math.min(null!==(t=this._input.selectionStart)&&void 0!==t?t:e.length,this._length-1);for(const[t,r]of this._slots.entries()){var s;const o=null!==(s=e[t])&&void 0!==s?s:"";r.textContent=o&&this._config.mask?"•":o,r.classList.toggle("otp-slot-filled",Boolean(o)),r.classList.toggle("otp-slot-active",i&&t===n)}}_checkComplete(){const{value:t}=this._input;t.length===this._length&&j.trigger(this._element,ha,{value:t})}};J('[data-bs-toggle="otp"], [data-tblr-toggle="otp"]',ga);var _a="sparkline",va=`.bs.${_a}`,ba=`rendered${va}`,ya=`updated${va}`,wa="sparkline-label",Aa=`[data-bs-toggle="${_a}"], [data-tblr-toggle="${_a}"]`,Ea="--tblr-sparkline",xa={type:"line",values:[],width:80,height:24,min:null,max:null,fill:"none",spot:"none",pad:2,barGap:2,barRadius:2,label:null,threshold:null,animation:300},Sa={type:"string",values:"array",width:"number",height:"number",min:"(number|null)",max:"(number|null)",fill:"string",spot:"string",pad:"number",barGap:"number",barRadius:"number",label:"(string|number|boolean|null)",threshold:"(number|null)",animation:"number"},Ca=t=>document.createElementNS("http://www.w3.org/2000/svg",t),Ta=(t,e)=>{for(const[i,n]of Object.entries(e))null!=n&&t.setAttribute(i,String(n))},ka=t=>`var(${Ea}-${t})`,Oa=(t,e)=>{const i=e-t;return 0===i?1:i},$a=t=>Array.isArray(t)?t.map(Number).filter(Number.isFinite):"number"==typeof t?Number.isFinite(t)?[t]:[]:(t=>{const e=String(null!=t?t:"").trim();if(!e)return[];if(e.startsWith("["))try{const t=JSON.parse(e);return Array.isArray(t)?t.map(Number).filter(Number.isFinite):[]}catch(t){return[]}return e.split(",").map(t=>Number(t.trim())).filter(Number.isFinite)})(t),Da=(t,e,i,...n)=>{const s=null!=e?e:Math.min(...t,...n),r=null!=i?i:Math.max(...t,...n);return{min:s,max:r,span:Oa(s,r)}},Ia=/-?\d*\.?\d+(?:e[-+]?\d+)?/g,La=(t,e,i)=>{const n=t.match(Ia),s=e.match(Ia);if(!n||!s||n.length!==s.length||t.replace(Ia,"#")!==e.replace(Ia,"#"))return e;let r=0;return e.replace(Ia,()=>{const t=Number(n[r])+(Number(s[r])-Number(n[r]))*i;return r++,String(Math.round(1e3*t)/1e3)})},Ma=(t,e,i)=>{const n=getComputedStyle(t).getPropertyValue(`${Ea}-${e}`).trim(),s=Number.parseFloat(n);return Number.isFinite(s)?s:i},Na=class extends X{constructor(t,e){super(t,e),this._userConfig={},this._frame=0,this._element&&(this._userConfig=U({},e),this.render())}static get Default(){return xa}static get DefaultType(){return Sa}static get NAME(){return _a}update(t){const e=Array.isArray(t)?t.join(","):String(t),i=this._element.hasAttribute("data-tblr-values")?"data-tblr-values":"data-bs-values";this._element.setAttribute(i,e),delete this._userConfig.values,this.render(),j.trigger(this._element,ya)}render(){var t;this._config=this._getConfig(this._userConfig);const e=this._element.querySelector("svg");if(null===(t=this._element.querySelector(`.${wa}`))||void 0===t||t.remove(),0===this._config.values.length)return void(this._element.innerHTML="");let i;switch(this._config.type){case"bar":i=this._renderBars();break;case"tristate":i=this._renderTristate();break;case"circle":i=this._renderCircle();break;default:i=this._renderLine()}e&&this._canAnimate(e,i)?this._animate(e,i):(cancelAnimationFrame(this._frame),null==e||e.remove(),this._element.append(i));const n=this._labelText();if(""!==n){const t=document.createElement("span");t.className=wa,t.textContent=n,this._element.append(t)}j.trigger(this._element,ba)}dispose(){cancelAnimationFrame(this._frame),this._element.innerHTML="",super.dispose()}_configAfterMerge(t){return t.values=$a(t.values),t}_labelText(){const{label:t,values:e,type:i}=this._config;return null===t||!1===t||""===t?"":"auto"!==t&&!0!==t?String(t):"circle"===i?`${Math.round(100*this._circleRatio())}%`:String(e[e.length-1])}_circleRatio(){var t,e,i;const n=this._config,s=null!==(t=n.values[0])&&void 0!==t?t:0,r=null!==(e=n.max)&&void 0!==e?e:n.values.length>1?n.values[1]:100,o=null!==(i=n.min)&&void 0!==i?i:0;return Math.max(0,Math.min(1,(s-o)/Oa(o,r)))}_canAnimate(t,e){return!(this._config.animation<=0||window.matchMedia("(prefers-reduced-motion: reduce)").matches)&&(t.getAttribute("viewBox")===e.getAttribute("viewBox")&&t.children.length===e.children.length&&Array.from(t.children).every((t,i)=>t.tagName===e.children[i].tagName))}_animate(t,e){cancelAnimationFrame(this._frame);const i=Array.from(e.children).map((e,i)=>{const n=t.children[i],s=[];for(const{name:t,value:i}of Array.from(e.attributes)){const e=n.getAttribute(t);null===e||e===i?n.setAttribute(t,i):s.push([t,e,i])}return{source:n,tweens:s}}),n=this._config.animation,s=performance.now(),r=t=>{const e=(t=>1-Math.pow(1-t,3))(Math.min(1,(t-s)/n));for(const{source:t,tweens:n}of i)for(const[i,s,r]of n)t.setAttribute(i,e>=1?r:La(s,r,e));e<1&&(this._frame=requestAnimationFrame(r))};this._frame=requestAnimationFrame(r)}_hairline(t,e,i,n=!1){const s=Ca("line");Ta(s,{x1:0,x2:this._config.width,y1:e,y2:e,stroke:ka(i),"stroke-width":1,"stroke-dasharray":n?"3 2":null,"vector-effect":"non-scaling-stroke"}),t.append(s)}_createSvg(){const{width:t,height:e}=this._config,i=Ca("svg");return Ta(i,{viewBox:`0 0 ${t} ${e}`,preserveAspectRatio:"none",width:t,height:e,class:"sparkline-svg","aria-hidden":"true"}),i}_renderLine(){const t=this._config,e=this._createSvg(),{min:i,span:n}=Da(t.values,t.min,t.max,...null===t.threshold?[]:[t.threshold]),s=e=>t.pad+(1-(e-i)/n)*(t.height-2*t.pad),r=t.values.map(s),o=r.length>1?t.width/(r.length-1):t.width;if(null!==t.threshold&&this._hairline(e,s(t.threshold),"threshold",!0),"auto"===t.fill){const i=Ca("path");Ta(i,{d:this._areaPath(r,o,t.height),fill:ka("fill"),stroke:"none"}),e.append(i)}const a=Ca("polyline");Ta(a,{points:r.map((t,e)=>`${e*o},${t}`).join(" "),fill:"none",stroke:ka("stroke"),"stroke-width":ka("stroke-width"),"stroke-linecap":"round","stroke-linejoin":"round"}),e.append(a);const l=((t,e)=>{if(0===t.length||"none"===e)return-1;if("last"===e)return t.length-1;let i=0;for(let n=1;n<t.length;n++)("min"===e?t[n]<t[i]:t[n]>t[i])&&(i=n);return i})(t.values,t.spot);if(l>=0){const t=Ca("circle");Ta(t,{cx:l*o,cy:r[l],r:Ma(this._element,"spot-size",2),fill:ka("spot")}),e.append(t)}return e}_areaPath(t,e,i){return`${t.map((t,i)=>`${0===i?"M":"L"} ${i*e} ${t}`).join(" ")} L ${(t.length-1)*e} ${i} L 0 ${i} Z`}_renderBars(){const t=this._config,e=this._createSvg(),{min:i,span:n}=Da(t.values,t.min,t.max,0,...null===t.threshold?[]:[t.threshold]),s=e=>t.height-(e-i)/n*t.height,r=t.values.length,o=(t.width-t.barGap*(r-1))/r,a=s(0);i<0&&this._hairline(e,a,"zero"),null!==t.threshold&&this._hairline(e,s(t.threshold),"threshold",!0);const l=e=>Math.max(0,Math.min(t.height,e));return t.values.forEach((i,n)=>{const r=l(s(Math.max(i,0))),a=l(s(Math.min(i,0))),c=null===t.threshold?i<0:i<t.threshold,h=Ca("rect");Ta(h,{x:n*(o+t.barGap),y:r,width:o,height:a-r,rx:t.barRadius,fill:ka(c?"negative":"stroke")}),e.append(h)}),e}_renderTristate(){const t=this._config,e=this._createSvg(),i=t.values.length,n=(t.width-t.barGap*(i-1))/i,s=t.height/2,r=Math.min(2,s);return this._hairline(e,s,"zero"),t.values.forEach((i,o)=>{const a=Ca("rect"),l=i>0?{y:0,height:s,fill:"stroke"}:i<0?{y:s,height:s,fill:"negative"}:{y:s-r/2,height:r,fill:"track"};Ta(a,{x:o*(n+t.barGap),y:l.y,width:n,height:l.height,rx:t.barRadius,fill:ka(l.fill)}),e.append(a)}),e}_renderCircle(){const t=this._config,e=this._createSvg(),i=Ma(this._element,"stroke-width",3),n=Math.max(0,Math.min(t.width,t.height)/2-i/2),s=t.width/2,r=t.height/2,o=this._circleRatio(),a=2*Math.PI*n,l=Ca("circle");Ta(l,{cx:s,cy:r,r:n,fill:"none",stroke:ka("track"),"stroke-width":i}),e.append(l);const c=Ca("circle");return Ta(c,{cx:s,cy:r,r:n,fill:"none",stroke:ka("stroke"),"stroke-width":i,"stroke-linecap":"round","stroke-dasharray":a,"stroke-dashoffset":a*(1-o),transform:`rotate(-90 ${s} ${r})`}),e.append(c),e}};J(Aa,Na);var Pa="strength",ja=`change.bs.${Pa}`,Fa=`[data-bs-${Pa}], [data-tblr-${Pa}]`,za=`.${Pa}-segment`,Ha=`.${Pa}-text`,Wa=["weak","fair","good","strong"],Ba={input:null,minLength:8,messages:{weak:"Weak",fair:"Fair",good:"Good",strong:"Strong"},weights:{minLength:1,extraLength:1,longPassword:1,lowercase:1,uppercase:1,numbers:1,special:1,multipleSpecial:1},thresholds:[2,4,6],scorer:null},Ra={input:"(string|null)",minLength:"number",messages:"object",weights:"object",thresholds:"array",scorer:"(function|null)"},qa=class extends X{constructor(t,e){var i,n;super(t,e),this._input=null,this._segments=[],this._text=null,this._emptyText="",this._level=null,this._onInput=()=>this.evaluate(),this._element&&(this._input=this._getInput(),this._segments=G.find(za,this._element),this._text=this._getText(),this._emptyText=null!==(i=null===(n=this._text)||void 0===n||null===(n=n.textContent)||void 0===n?void 0:n.trim())&&void 0!==i?i:"",this._setUpAria(),this._input&&(this._input.addEventListener("input",this._onInput),this.evaluate()))}static get Default(){return Ba}static get DefaultType(){return Ra}static get NAME(){return Pa}get level(){return this._level}evaluate(){if(!this._input)return;const t=this._input.value,e=this._score(t),i=this._level_(e);i!==this._level&&(this._level=i,this._render(i),j.trigger(this._element,ja,{strength:i,score:e}))}dispose(){var t;null===(t=this._input)||void 0===t||t.removeEventListener("input",this._onInput),super.dispose()}_getInput(){var t;const{input:e}=this._config;if(e)return G.findOne(e);const i=this._element.parentElement,n=i?G.find('input[type="password"]',i):[];return null!==(t=n[n.length-1])&&void 0!==t?t:null}_getText(){const t=this._element.parentElement;return t?G.findOne(Ha,t):null}_setUpAria(){var t;const e=this._element;e.setAttribute("role","progressbar"),e.setAttribute("aria-valuemin","0"),e.setAttribute("aria-valuemax",String(Wa.length)),e.setAttribute("aria-valuenow","0"),e.hasAttribute("aria-label")||e.hasAttribute("aria-labelledby")||e.setAttribute("aria-label","Password strength");for(const t of this._segments)t.setAttribute("aria-hidden","true");null===(t=this._text)||void 0===t||t.setAttribute("aria-live","polite")}_score(t){var e;if(!t)return 0;const{scorer:i,weights:n,minLength:s}=this._config;return"function"==typeof i?i(t):[[t.length>=s,n.minLength],[t.length>=s+4,n.extraLength],[t.length>=16,n.longPassword],[/[a-z]/.test(t),n.lowercase],[/[A-Z]/.test(t),n.uppercase],[/\d/.test(t),n.numbers],[/[^\dA-Za-z]/.test(t),n.special],[(null!==(e=t.match(/[^\dA-Za-z]/g))&&void 0!==e?e:[]).length>1,n.multipleSpecial]].reduce((t,[e,i])=>t+(e&&null!=i?i:0),0)}_level_(t){var e;if(t<=0)return null;const i=this._config.thresholds.findIndex(e=>t<=e);return null!==(e=Wa[-1===i?Wa.length-1:i])&&void 0!==e?e:null}_render(t){const e=this._element,i=t?Wa.indexOf(t):-1;var n;(e.dataset.bsStrength=null!=t?t:"",e.setAttribute("aria-valuenow",String(i+1)),t)?e.setAttribute("aria-valuetext",null!==(n=this._config.messages[t])&&void 0!==n?n:t):e.removeAttribute("aria-valuetext");const s=t?Math.ceil((i+1)/Wa.length*this._segments.length):0;for(const[t,e]of this._segments.entries())e.classList.toggle("active",t<s);var r;this._text&&(this._text.textContent=t?null!==(r=this._config.messages[t])&&void 0!==r?r:"":this._emptyText,this._text.dataset.bsStrength=null!=t?t:"")}};J(Fa,qa);var Va=e({getColor:()=>Ka,hexToRgba:()=>Ua,prefix:()=>Ya}),Ya="tblr-",Ua=(t,e)=>{const i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return i?`rgba(${parseInt(i[1],16)}, ${parseInt(i[2],16)}, ${parseInt(i[3],16)}, ${e})`:null},Ka=(t,e=1)=>{var i;const n=getComputedStyle(document.body).getPropertyValue(`--${Ya}${t}`).trim();return 1===e?n:null!==(i=Ua(n,e))&&void 0!==i?i:n?`color-mix(in srgb, ${n} ${100*e}%, transparent)`:null};export{Yi as Alert,rt as Autosize,Ki as Button,Cn as Carousel,vt as Clipboard,Hn as Collapse,Dt as Confetti,Bt as CountUp,re as Datepicker,us as Dropdown,ue as InputMask,Ys as Modal,hr as Offcanvas,ga as OtpInput,Pr as Popover,Bi as Popper,Ur as ScrollSpy,oa as Sortable,Na as Sparkline,qa as Strength,Zo as SwitchIcon,_o as Tab,Io as Toast,Dr as Tooltip,Lo as bootstrap,Va as tabler};
7
+ var t=Object.defineProperty,e=(e,i)=>{let n={};for(var s in e)t(n,s,{get:e[s],enumerable:!0});return i||t(n,Symbol.toStringTag,{value:"Module"}),n},i=new Map,n={set(t,e,n){i.has(t)||i.set(t,new Map);const s=i.get(t);s.has(e)||0===s.size?s.set(e,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(s.keys())[0]}.`)},get:(t,e)=>i.has(t)&&i.get(t).get(e)||null,remove(t,e){if(!i.has(t))return;const n=i.get(t);n.delete(e),0===n.size&&i.delete(t)}},s="transitionend",r=t=>(t&&"undefined"!=typeof CSS&&"function"==typeof CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(t,e)=>`#${CSS.escape(e)}`)),t),o=t=>null==t?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),a=t=>{t.dispatchEvent(new Event(s))},l=t=>t&&"object"==typeof t&&void 0!==t.jquery?t[0]:t,c=t=>!(!(t=l(t))||"object"!=typeof t)&&void 0!==t.nodeType,h=t=>(t=l(t),c(t)?t:"string"==typeof t&&t.length>0?document.querySelector(r(t)):null),u=t=>{if(!c(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),i=t.closest("details:not([open])");if(!i)return e;if(i!==t){const e=t.closest("summary");if(e&&e.parentNode!==i)return!1;if(null===e)return!1}return e},d=t=>!t||t.nodeType!==Node.ELEMENT_NODE||(!!t.classList.contains("disabled")||("disabled"in t&&void 0!==t.disabled?Boolean(t.disabled):t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled"))),f=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?f(t.parentNode):null},p=()=>{},m=t=>{t.offsetHeight},g=()=>"rtl"===document.documentElement.dir,_=()=>!window.jQuery||document.body.hasAttribute("data-bs-no-jquery")||document.body.hasAttribute("data-tblr-no-jquery")?null:window.jQuery,v=[],b=t=>{"loading"===document.readyState?(v.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of v)t()}),v.push(t)):t()},y=t=>{b(()=>{const e=_();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=n,t.jQueryInterface)}})},w=(t,e=[],i=t)=>"function"==typeof t?t.call(e[0],...e.slice(1)):i,A=(t,e,i=!0)=>{if(!i)return void w(t);const n=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);return Number.parseFloat(e)||Number.parseFloat(i)?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0})(e)+5;let r=!1;const o=({target:i})=>{i===e&&(r=!0,e.removeEventListener(s,o),w(t))};e.addEventListener(s,o),setTimeout(()=>{r||a(e)},n)},E=(t,e,i,n)=>{const s=t.length;let r=t.indexOf(e);return-1===r?!i&&n?t[s-1]:t[0]:(r+=i?1:-1,n&&(r=(r+s)%s),t[Math.max(0,Math.min(r,s-1))])},x=/[^.]*(?=\..*)\.|.*/,C=/\..*/,T=/::\d+$/,S={},k=1,O={mouseenter:"mouseover",mouseleave:"mouseout"},D=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 $(t,e){return e&&`${e}::${k++}`||t.uidEvent||k++}function I(t){const e=$(t);return t.uidEvent=e,S[e]=S[e]||{},S[e]}function L(t,e,i=null){return Object.values(t).find(t=>t.callable===e&&t.delegationSelector===i)}function M(t,e,i){const n="string"==typeof e,s=n?i:e||i;let r=F(t);return D.has(r)||(r=t),[n,s,r]}function N(t,e,i,n,s){if("string"!=typeof e||!t)return;let[r,o,a]=M(e,i,n);if(e in O){const t=t=>function(e){const i=e;if(!i.relatedTarget||i.relatedTarget!==i.delegateTarget&&!i.delegateTarget.contains(i.relatedTarget))return t.call(this,e)};o=t(o)}const l=I(t),c=l[a]||(l[a]={}),h=L(c,o,r?i:null);if(h)return void(h.oneOff=h.oneOff&&s);const u=$(o,e.replace(x,"")),d=r?function(t,e,i){return function n(s){const r=t.querySelectorAll(e);for(let{target:o}=s;o&&o!==this;o=o.parentNode)for(const a of r)if(a===o)return H(s,{delegateTarget:o}),n.oneOff&&z.off(t,s.type,e,i),i.apply(o,[s])}}(t,i,o):function(t,e){return function i(n){return H(n,{delegateTarget:t}),i.oneOff&&z.off(t,n.type,e),e.apply(t,[n])}}(t,o);d.delegationSelector=r?i:null,d.callable=o,d.oneOff=s,d.uidEvent=u,c[u]=d,t.addEventListener(a,d,r)}function P(t,e,i,n,s){const r=L(e[i],n,null!=s?s:null);r&&(t.removeEventListener(i,r,Boolean(s)),delete e[i][r.uidEvent])}function j(t,e,i,n){const s=e[i]||{};for(const[r,o]of Object.entries(s))r.includes(n)&&P(t,e,i,o.callable,o.delegationSelector)}function F(t){return t=t.replace(C,""),O[t]||t}var z={on(t,e,i,n){N(t,e,i,n,!1)},one(t,e,i,n){N(t,e,i,n,!0)},off(t,e,i,n){if("string"!=typeof e||!t)return;const[s,r,o]=M(e,i,n),a=o!==e,l=I(t),c=l[o]||{},h=e.startsWith(".");if(void 0===r){if(h)for(const i of Object.keys(l))j(t,l,i,e.slice(1));for(const[i,n]of Object.entries(c)){const s=i.replace(T,"");a&&!e.includes(s)||P(t,l,o,n.callable,n.delegationSelector)}}else{if(!Object.keys(c).length)return;P(t,l,o,r,s?i:null)}},trigger(t,e,i){if("string"!=typeof e||!t)return null;const n=_();let s=null,r=!0,o=!0,a=!1;e!==F(e)&&n&&(s=n.Event(e,i),n(t).trigger(s),r=!s.isPropagationStopped(),o=!s.isImmediatePropagationStopped(),a=s.isDefaultPrevented());const l=H(new Event(e,{bubbles:r,cancelable:!0}),i);return a&&l.preventDefault(),o&&t.dispatchEvent(l),l.defaultPrevented&&s&&s.preventDefault(),l}};function H(t,e={}){for(const[i,n]of Object.entries(e))try{t[i]=n}catch(e){Object.defineProperty(t,i,{configurable:!0,get:()=>n})}return t}function W(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function B(t){return t.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}var R=["tblr","bs"],V={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${B(e)}`,i)},removeDataAttribute(t,e){for(const i of R)t.removeAttribute(`data-${i}-${B(e)}`)},getDataAttributes(t){if(!t)return{};const e={};for(const i of R){const n=Object.keys(t.dataset).filter(t=>t.startsWith(i)&&!t.startsWith(`${i}Config`));for(const s of n){let n=s.replace(new RegExp(`^${i}`),"");n=n.charAt(0).toLowerCase()+n.slice(1),n in e||(e[n]=W(t.dataset[s]))}}return e},getDataAttribute(t,e){for(const i of R){const n=t.getAttribute(`data-${i}-${B(e)}`);if(null!==n)return W(n)}return null}};function q(t){return q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},q(t)}function Y(t){var e=function(t,e){if("object"!=q(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=q(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==q(e)?e:e+""}function U(t,e,i){return(e=Y(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function K(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function X(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?K(Object(i),!0).forEach(function(e){U(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):K(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}var Q=class{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(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const i=c(e)?V.getDataAttribute(e,"config"):{};return X(X(X(X({},this.constructor.Default),"object"==typeof i?i:{}),c(e)?V.getDataAttributes(e):{}),"object"==typeof t?t:{})}_typeCheckConfig(t,e){const i=this.constructor,n=e||i.DefaultType;for(const[e,s]of Object.entries(n)){const n=t[e],r=c(n)?"element":o(n);if(!new RegExp(s).test(r))throw new TypeError(`${i.NAME.toUpperCase()}: Option "${e}" provided type "${r}" but expected type "${s}".`)}}},G=class extends Q{constructor(t,e){var i;super();const s=h(t);if(!s)return;const r=this.constructor;null===(i=n.get(s,r.DATA_KEY))||void 0===i||i.dispose(),this._element=s,this._config=this._getConfig(e),n.set(this._element,r.DATA_KEY,this)}dispose(){const t=this.constructor;n.remove(this._element,t.DATA_KEY),z.off(this._element,t.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,i=!0){A(()=>{this._element&&t()},e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return n.get(h(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:void 0)}static get VERSION(){return"5.3.8"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}},Z=t=>{let e=t.getAttribute("data-tblr-target")||t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e?e.split(",").map(t=>r(t)).join(","):null},J={find:(t,e=document.documentElement)=>Array.from(e.querySelectorAll(t)),findOne:(t,e=document.documentElement)=>e.querySelector(t),children:(t,e)=>Array.from(t.children).filter(t=>t.matches(e)),parents(t,e){const i=[];let n=t.parentNode&&t.parentNode.closest(e);for(;n;)i.push(n),n=n.parentNode&&n.parentNode.closest(e);return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(t=>!d(t)&&u(t))},getSelectorFromElement(t){const e=Z(t);return e&&J.findOne(e)?e:null},getElementFromSelector(t){const e=Z(t);return e?J.findOne(e):null},getMultipleElementsFromSelector(t){const e=Z(t);return e?J.find(e):[]}},tt=(t,e="hide")=>{const i=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;z.on(document,i,`[data-bs-dismiss="${n}"], [data-tblr-dismiss="${n}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),d(this))return;const s=J.getElementFromSelector(this)||this.closest(`.${n}`);((t,e)=>{const i=t[e];"function"==typeof i&&i.call(t)})(t.getOrCreateInstance(s),e)})},et=(t,e,i=null)=>{for(const n of J.find(t))if(!i||i(n))try{e.getOrCreateInstance(n)}catch(t){console.error(t)}},it="autosize",nt=`resized.bs.${it}`,st=`[data-bs-toggle="${it}"], [data-tblr-toggle="${it}"]`,rt={},ot={},at=class extends G{constructor(t,e){var i;super(t,e),this._observer=null,this._inlineStyle="",this._width=0,this._onInput=()=>this.update(),this._element&&(this._inlineStyle=null!==(i=this._element.getAttribute("style"))&&void 0!==i?i:"",this._element.style.resize="none",this._element.style.overflowY="hidden",this._element.addEventListener("input",this._onInput),"undefined"!=typeof ResizeObserver&&(this._observer=new ResizeObserver(()=>{this._element.offsetWidth!==this._width&&(this._width=this._element.offsetWidth,this.update())}),this._observer.observe(this._element)),this.update())}static get Default(){return rt}static get DefaultType(){return ot}static get NAME(){return it}update(){const t=this._element;if(!t.isConnected||0===t.getClientRects().length)return;const{scrollTop:e}=document.documentElement,i=getComputedStyle(t),n="border-box"===i.boxSizing?Number.parseFloat(i.borderTopWidth)+Number.parseFloat(i.borderBottomWidth):-(Number.parseFloat(i.paddingTop)+Number.parseFloat(i.paddingBottom)),s=t.style.height;t.style.overflowY="hidden",t.style.height="auto";const r=`${t.scrollHeight+n}px`;t.style.height=r,t.style.overflowY=t.scrollHeight>t.clientHeight?"auto":"hidden",document.documentElement.scrollTop=e,r!==s&&z.trigger(t,nt)}dispose(){var t;this._element.removeEventListener("input",this._onInput),null===(t=this._observer)||void 0===t||t.disconnect(),this._inlineStyle?this._element.setAttribute("style",this._inlineStyle):this._element.removeAttribute("style"),super.dispose()}};function lt(t,e,i,n,s,r,o){try{var a=t[r](o),l=a.value}catch(t){return void i(t)}a.done?e(l):Promise.resolve(l).then(n,s)}function ct(t){return function(){var e=this,i=arguments;return new Promise(function(n,s){var r=t.apply(e,i);function o(t){lt(r,n,s,o,a,"next",t)}function a(t){lt(r,n,s,o,a,"throw",t)}o(void 0)})}}et(st,at);var ht="clipboard",ut=`.bs.${ht}`,dt=`copied${ut}`,ft=`error${ut}`,pt=`[data-bs-toggle="${ht}"], [data-tblr-toggle="${ht}"]`,mt=`.${ht}-label`,gt=`.${ht}-feedback`,_t={target:null,text:null,delay:2e3},vt={target:"(string|null)",text:"(string|number|null)",delay:"number"},bt=(t,e)=>{e?t.setAttribute("hidden",""):t.removeAttribute("hidden")},yt=class extends G{constructor(t,e){if(super(t,e),this._labels=[],this._feedbacks=[],this._timeout=0,this._element){this._labels=J.find(mt,this._element),this._feedbacks=J.find(gt,this._element);for(const t of this._feedbacks)bt(t,!0),t.hasAttribute("role")||t.setAttribute("role","status");z.on(this._element,`click${ut}`,t=>{t.preventDefault(),this.copy()})}}static get Default(){return _t}static get DefaultType(){return vt}static get NAME(){return ht}get text(){var t;const{text:e,target:i}=this._config;if(null!==e&&""!==e)return String(e);const n=i?h(i):null;return n?n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement?n.value:(n instanceof HTMLElement?n.innerText:null!==(t=n.textContent)&&void 0!==t?t:"").trim():""}copy(){var t=this;return ct(function*(){const{text:e}=t;if(e&&navigator.clipboard){try{yield navigator.clipboard.writeText(e)}catch(e){return void z.trigger(t._element,ft)}t._showCopied(),z.trigger(t._element,dt)}else z.trigger(t._element,ft)})()}reset(){window.clearTimeout(this._timeout),this._toggleCopied(!1)}dispose(){window.clearTimeout(this._timeout),super.dispose()}_mergeConfigObj(t,e){var i;const n=null!==(i=null==e?void 0:e.getAttribute("data-bs-text"))&&void 0!==i?i:null==e?void 0:e.getAttribute("data-tblr-text"),s=null==n?{}:{text:n};return super._mergeConfigObj(X(X({},s),t),e)}_showCopied(){window.clearTimeout(this._timeout),this._toggleCopied(!0),this._config.delay>0&&(this._timeout=window.setTimeout(()=>this._toggleCopied(!1),this._config.delay))}_toggleCopied(t){this._element.classList.toggle("copied",t);for(const e of this._labels)bt(e,t);for(const e of this._feedbacks)bt(e,!t)}};et(pt,yt);var wt="confetti",At=`.bs.${wt}`,Et=`start${At}`,xt=`end${At}`,Ct=`click${At}.data-api`,Tt=`${wt}-canvas`,St=`[data-bs-toggle="${wt}"], [data-tblr-toggle="${wt}"]`,kt=[["blue","#066fd1"],["azure","#4299e1"],["indigo","#4263eb"],["purple","#ae3ec9"],["pink","#d6336c"],["red","#d63939"],["orange","#f76707"],["yellow","#f59f00"],["lime","#74b816"],["green","#2fb344"],["teal","#0ca678"],["cyan","#17a2b8"]],Ot=1e3/60,Dt={count:220,duration:3500,decay:3.5,fade:.15,speed:1,colors:null},$t={count:"number",duration:"number",decay:"number",fade:"number",speed:"number",colors:"(array|string|null)"},It={canvas:null,context:null,particles:[],emitters:[],frame:0,lastTick:0,add(t){return this._mount(),!!this.context&&(this.emitters.push(t),this.frame||(this.lastTick=performance.now(),this.frame=requestAnimationFrame(t=>this._tick(t))),!0)},_mount(){if(this.canvas)return;const t=document.createElement("canvas");t.className=Tt,t.setAttribute("aria-hidden","true"),Object.assign(t.style,{position:"fixed",inset:"0",width:"100%",height:"100%",zIndex:"9999",pointerEvents:"none",display:"block"});const e=t.getContext("2d");e&&(document.body.append(t),this.canvas=t,this.context=e,this._resize(),window.addEventListener("resize",this._onResize))},_unmount(){var t;cancelAnimationFrame(this.frame),this.frame=0,window.removeEventListener("resize",this._onResize),null===(t=this.canvas)||void 0===t||t.remove(),this.canvas=null,this.context=null,this.particles=[],this.emitters=[]},_onResize:()=>{It._resize()},_resize(){if(!this.canvas||!this.context)return;const t=Math.min(window.devicePixelRatio||1,2);this.canvas.width=document.documentElement.clientWidth*t,this.canvas.height=window.innerHeight*t,this.context.setTransform(t,0,0,t,0,0)},_spawn(t){var e;const{colors:i,config:n}=t,s=window.innerHeight/800*n.speed;return{emitter:t,x:Math.random()*window.innerWidth,y:-20-30*Math.random(),w:6+3.6*Math.random(),h:10+4.4*Math.random(),color:null!==(e=i[Math.floor(Math.random()*i.length)])&&void 0!==e?e:"#000",vx:1.2*(Math.random()-.5),vy:(1.5+2.1*Math.random())*s,speed:s,angle:Math.random()*Math.PI*2,spin:.25*(Math.random()-.5),flip:Math.random()*Math.PI*2,flipSpeed:.12+.15*Math.random(),sway:Math.random()*Math.PI*2,alpha:1}},_pour(t,e){const{count:i,duration:n,decay:s}=t.config,r=e-t.startedAt;if(t.stopped||r>=n)return;const o=r/n,a=Math.round(i*(1-Math.exp(-s*o))/(1-Math.exp(-s)));for(;t.emitted<a;)this.particles.push(this._spawn(t)),t.emitted++},_tick(t){const e=this.context;if(!e)return;const i=Math.min((t-this.lastTick)/Ot,3);this.lastTick=t;const n=window.innerWidth,s=window.innerHeight;e.clearRect(0,0,n,s);for(const e of this.emitters)this._pour(e,t);for(let t=this.particles.length-1;t>=0;t--){const n=this.particles[t],r=s*(1-n.emitter.config.fade);n.sway+=.05*i,n.vy=Math.min(n.vy+.025*n.speed*i,4.2*n.speed),n.x+=(n.vx+.7*Math.sin(n.sway))*i,n.y+=n.vy*i,n.angle+=n.spin*i,n.flip+=n.flipSpeed*i,n.y>r&&(n.alpha=Math.max(0,1-(n.y-r)/(s-r))),0!==n.alpha?(e.save(),e.globalAlpha=n.alpha,e.translate(n.x,n.y),e.rotate(n.angle),e.scale(1,Math.cos(n.flip)),e.fillStyle=n.color,e.fillRect(-n.w/2,-n.h/2,n.w,n.h),e.restore()):this.particles.splice(t,1)}this._settle(t),0!==this.emitters.length?this.frame=requestAnimationFrame(t=>this._tick(t)):this._unmount()},_settle(t){for(let e=this.emitters.length-1;e>=0;e--){const i=this.emitters[e],n=!i.stopped&&t-i.startedAt<i.config.duration,s=this.particles.some(t=>t.emitter===i);n||s||(this.emitters.splice(e,1),i.done=!0,i.detached||z.trigger(i.element,xt))}}},Lt=class extends G{constructor(t,e){super(t,e),this._emitter=null}static get Default(){return Dt}static get DefaultType(){return $t}static get NAME(){return wt}burst(){const t=z.trigger(this._element,Et);(null==t?void 0:t.defaultPrevented)||(this.stop(),window.matchMedia("(prefers-reduced-motion: reduce)").matches?z.trigger(this._element,xt):(this._emitter={element:this._element,config:this._config,colors:this._colors(),startedAt:performance.now(),emitted:0,stopped:!1,done:!1,detached:!1},It.add(this._emitter)||(this._emitter=null,z.trigger(this._element,xt))))}stop(){this._emitter&&!this._emitter.done&&(this._emitter.stopped=!0),this._emitter=null}dispose(){this._emitter&&(this._emitter.detached=!0),this.stop(),super.dispose()}_configAfterMerge(t){return"string"==typeof t.colors&&(t.colors=t.colors.split(",").map(t=>t.trim()).filter(Boolean)),t}_colors(){const{colors:t}=this._config;if(t&&t.length>0)return t;const e=getComputedStyle(document.documentElement);return kt.map(([t,i])=>e.getPropertyValue(`--tblr-${t}`).trim()||i)}};z.on(document,Ct,St,function(t){if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),d(this))return;const e=J.getElementFromSelector(this)||this,i=V.getDataAttributes(this),n=Lt.getOrCreateInstance(e,i);e!==this&&(n._config=n._getConfig(i)),n.burst()});var Mt="countup",Nt=`.bs.${Mt}`,Pt=`data-${Mt}`,jt=`start${Nt}`,Ft=`complete${Nt}`,zt=`data-tblr-${Mt}`,Ht=`[${Pt}], [${zt}]`,Wt={autoAnimate:!0,startVal:0,duration:2,decimalPlaces:0,useEasing:!0,useGrouping:!0,separator:",",decimal:".",prefix:"",suffix:"",format:"number",formatter:null},Bt={autoAnimate:"boolean",startVal:"number",duration:"number",decimalPlaces:"number",useEasing:"boolean",useGrouping:"boolean",separator:"string",decimal:"string",prefix:"string",suffix:"string",format:"string",formatter:"(function|null)"},Rt=(t,e)=>{if("number"==typeof t)return t;if("time"===e){const e=/^\D{0,32}(\d{1,4}):(\d{1,2})/.exec(t);return e?60*Number(e[1])+Number(e[2]):NaN}return Number.parseFloat(t.replace(/[^0-9.-]/g,""))},Vt=class extends G{constructor(t,e){var i;if(super(t,e),this._endVal=0,this._value=0,this._frame=0,this._observer=null,this._from=0,this._elapsed=0,this._running=!1,this._paused=!1,this._started=!1,!this._element)return;const n=Rt(null!==(i=this._element.textContent)&&void 0!==i?i:"",this._config.format);Number.isNaN(n)||(this._endVal=n,this._value=this._config.startVal,this._print(this._value),this._config.autoAnimate&&"undefined"!=typeof IntersectionObserver?(this._observer=new IntersectionObserver(t=>this._observerCallback(t)),this._observer.observe(this._element)):this.start())}static get Default(){return Wt}static get DefaultType(){return Bt}static get NAME(){return Mt}start(){this._animate(this._value,this._endVal)}reset(){this._stop(),this._started=!1,this._value=this._config.startVal,this._print(this._value)}update(t){const e=Rt(t,this._config.format);Number.isNaN(e)||(this._endVal=e,this._animate(this._value,this._endVal))}pauseResume(){this._paused?(this._paused=!1,this._run()):this._running&&(this._paused=!0,cancelAnimationFrame(this._frame))}dispose(){var t;this._stop(),null===(t=this._observer)||void 0===t||t.disconnect(),super.dispose()}_mergeConfigObj(t,e){var i;let n={};const s=null!==(i=null==e?void 0:e.getAttribute(Pt))&&void 0!==i?i:null==e?void 0:e.getAttribute(zt);if(s)try{const t=JSON.parse(s);t&&"object"==typeof t&&!Array.isArray(t)&&(n=t)}catch(t){}return super._mergeConfigObj(X(X({},(t=>{const e=X({},t);for(const[i,n]of Object.entries(t)){const t=Bt[i];"string"!=typeof n||"number"!==t||""===n.trim()||Number.isNaN(Number(n))?"string"!=typeof n||"boolean"!==t||"true"!==n&&"false"!==n?"number"==typeof n&&"string"===t&&(e[i]=String(n)):e[i]="true"===n:e[i]=Number(n)}return e})(n)),t),e)}_observerCallback(t){var e;t.some(t=>t.isIntersecting)&&(null===(e=this._observer)||void 0===e||e.disconnect(),this._observer=null,this._started||this.start())}_animate(t,e){this._stop(),this._started=!0,t===e||this._config.duration<=0||window.matchMedia("(prefers-reduced-motion: reduce)").matches?this._finish(e):(this._from=t,this._elapsed=0,this._running=!0,z.trigger(this._element,jt),this._run())}_run(){const t=1e3*this._config.duration;let e=performance.now();const i=n=>{this._elapsed+=n-e,e=n;const s=Math.min(1,this._elapsed/t),r=this._config.useEasing?(t=>t>=1?1:1024*(1-Math.pow(2,-10*t))/1023)(s):s;this._value=this._from+(this._endVal-this._from)*r,this._print(this._value),s<1?this._frame=requestAnimationFrame(i):this._finish(this._endVal)};this._frame=requestAnimationFrame(i)}_finish(t){this._running=!1,this._paused=!1,this._value=t,this._print(t),z.trigger(this._element,Ft)}_stop(){cancelAnimationFrame(this._frame),this._running=!1,this._paused=!1}_print(t){this._element.textContent=this._format(t)}_format(t){const{decimalPlaces:e,useGrouping:i,separator:n,decimal:s,prefix:r,suffix:o,format:a,formatter:l}=this._config;if(l)return l(t);if("time"===a){const e=Math.sign(t)*Math.round(Math.abs(t)),i=Math.abs(e);return`${e<0?"-":""}${r}${Math.floor(i/60)}:${String(i%60).padStart(2,"0")}${o}`}const c=t.toFixed(e),[h,u]=c.replace("-","").split("."),d=i?h.replace(/\B(?=(\d{3})+(?!\d))/g,n):h;return`${Number(c)<0?"-":""}${r}${d}${u?s+u:""}${o}`}};et(Ht,Vt);var qt="datepicker",Yt=`.bs.${qt}`,Ut=".data-api",Kt=`change${Yt}`,Xt=`show${Yt}`,Qt=`shown${Yt}`,Gt=`hide${Yt}`,Zt=`hidden${Yt}`,Jt=`focusin${Yt}`,te=`click${Yt}${Ut}`,ee=`focusin${Yt}${Ut}`,ie='[data-bs-toggle="datepicker"], [data-tblr-toggle="datepicker"]',ne='input[type="hidden"], input[name]',se=/^(\d{4})-(\d{2})-(\d{2})$/,re=["annotations","months","motion","time","weeks"],oe=new WeakMap,ae={datepickerTheme:null,dateMin:null,dateMax:null,dateFormat:null,displayElement:null,displayMonthsCount:1,firstWeekday:1,inline:!1,locale:"default",positionElement:null,selectedDates:[],selectionMode:"single",placement:"left",vcpOptions:{}},le={datepickerTheme:"(null|string)",dateMin:"(null|string|number|object|date)",dateMax:"(null|string|number|object|date)",dateFormat:"(null|object|function)",displayElement:"(null|string|element|boolean)",displayMonthsCount:"number",firstWeekday:"number",inline:"boolean",locale:"string",positionElement:"(null|string|element)",selectedDates:"array",selectionMode:"string",placement:"string",vcpOptions:"object"},ce=t=>{setTimeout(()=>setTimeout(t))},he=class extends G{constructor(t,e){super(t,e),this._calendar=null,this._isShown=!1,this._isShowing=!1,this._isHiding=!1,this._isSilent=!1,this._skipPluginShow=!1,this._resolveShown=null,this._hideTimeout=0,this._isInput=!1,this._isInline=!1,this._boundInput=null,this._positionElement=null,this._displayElement=null,this._themeObserver=null,this._onFocusIn=null,this._onResize=()=>this._alignToPositionElement(),this._selectedDates=[],this._element&&window.VanillaCalendarPro&&this._initCalendar()}static get Default(){return ae}static get DefaultType(){return le}static get NAME(){return qt}get calendar(){return this._calendar}toggle(){return this._config.inline?Promise.resolve():this._isShown?this.hide():this.show()}show(){var t=this;return ct(function*(){if(t._config.inline)return;if(!t._calendar||d(t._element)||t._isShown||t._isShowing)return;const e=z.trigger(t._element,Xt);(null==e?void 0:e.defaultPrevented)||(t._isShowing=!0,t._skipPluginShow=!1,t._calendar.show(),t._isShown||(yield new Promise(e=>{t._resolveShown=e,ce(e)})),t._resolveShown=null,t._isShowing=!1)})()}hide(){var t=this;return ct(function*(){if(t._config.inline)return;if(!t._calendar||!t._isShown)return;const e=z.trigger(t._element,Gt);(null==e?void 0:e.defaultPrevented)||(t._skipPluginShow=!0,ce(()=>{t._skipPluginShow=!1}),t._isHiding=!0,t._calendar.hide(),t._isHiding=!1)})()}dispose(){var t;if(window.clearTimeout(this._hideTimeout),null===(t=this._themeObserver)||void 0===t||t.disconnect(),window.removeEventListener("resize",this._onResize),this._onFocusIn&&z.off(document,Jt,this._onFocusIn),this._calendar){this._calendar.destroy();const t=this._calendar.context.mainElement;if(t&&t!==this._element&&t.isConnected)if(this._isInput)t.replaceWith(this._element);else if(this._boundInput){const e=J.findOne(ne,t);e?e.replaceWith(this._boundInput):t.append(this._boundInput)}}super.dispose()}getSelectedDates(){var t;const e=null===(t=this._calendar)||void 0===t||null===(t=t.context)||void 0===t?void 0:t.selectedDates;return e&&e.length>0?[...e]:[...this._selectedDates]}setSelectedDates(t){var e;this._selectedDates=t.map(t=>this._toIsoDate(t)),null===(e=this._calendar)||void 0===e||e.set(X({selectedDates:this._selectedDates},this._monthOf(this._selectedDates[0]))),this._writeSelection(this._selectedDates)}_initCalendar(){this._isInput="INPUT"===this._element.tagName,this._isInline=this._config.inline,this._isInline&&!this._isInput&&(this._boundInput=J.findOne(ne,this._element)),this._positionElement=this._resolvePositionElement(),this._displayElement=this._resolveDisplayElement(),this._selectedDates=[...this._config.selectedDates],this._calendar=new window.VanillaCalendarPro.Calendar(this._element,this._buildCalendarOptions()),this._calendar.init(),this._boundInput&&!this._boundInput.isConnected&&this._element.after(this._boundInput),this._setupThemeObserver(),this._setupDismissOnFocus(),this._isInput&&this._element.value&&this._parseInputValue(),this._updateDisplayWithSelectedDates()}_updateDisplayWithSelectedDates(){0!==this._selectedDates.length&&this._writeSelection(this._selectedDates)}_writeSelection(t){const e=this._formatDateForInput(t);this._isInput&&(this._element.value=e,oe.set(this._element,{text:e,dates:[...t]})),this._boundInput&&(this._boundInput.value=t.join(",")),this._displayElement&&(this._displayElement.textContent=e)}_resolvePositionElement(){let{positionElement:t}=this._config;return"string"==typeof t&&(t=h(t)),t||!this._isInput||this._isInline||(t=this._element.closest(".input-icon, .input-group")),t||this._element}_resolveDisplayElement(){const{displayElement:t}=this._config;return"string"==typeof t?h(t):!0===t||null===t&&!this._isInput&&!this._isInline?J.findOne("[data-bs-datepicker-display], [data-tblr-datepicker-display]",this._element)||this._element:t}_alignToPositionElement(){var t;const e=null===(t=this._calendar)||void 0===t||null===(t=t.context)||void 0===t?void 0:t.mainElement;if(!e||this._isInline||!this._positionElement||this._positionElement===this._element)return;const i=this._positionElement.getBoundingClientRect(),n=e.getBoundingClientRect();let{placement:s}=this._config;"auto"===s&&(s=i.left+n.width>document.documentElement.clientWidth?"right":"left");const r="right"===s?i.right-n.width:"center"===s?i.left+(i.width-n.width)/2:i.left;e.style.left=`${r+window.scrollX}px`}_getThemeAncestor(){return this._element.closest("[data-bs-theme]")}_getEffectiveTheme(){var t;const{datepickerTheme:e}=this._config;return e||((null===(t=this._getThemeAncestor())||void 0===t?void 0:t.getAttribute("data-bs-theme"))||null)}_syncThemeAttribute(t){if(!t)return;const e=this._getEffectiveTheme();e?t.setAttribute("data-bs-theme",e):t.removeAttribute("data-bs-theme")}_setupThemeObserver(){const t=this._getThemeAncestor();t&&!this._config.datepickerTheme&&(this._themeObserver=new MutationObserver(()=>{var t;this._syncThemeAttribute(null===(t=this._calendar)||void 0===t||null===(t=t.context)||void 0===t?void 0:t.mainElement)}),this._themeObserver.observe(t,{attributes:!0,attributeFilter:["data-bs-theme"]}))}_setupDismissOnFocus(){this._isInline||(this._onFocusIn=t=>{var e;if(!this._isShown)return;const{target:i}=t,n=null===(e=this._calendar)||void 0===e||null===(e=e.context)||void 0===e?void 0:e.mainElement;i instanceof Node&&(this._element.contains(i)||(null==n?void 0:n.contains(i)))||this.hide()},z.on(document,Jt,this._onFocusIn))}_silently(t){this._isSilent=!0,t(),this._isSilent=!1}_handlePluginShow(){var t;const e=this._calendar;if(!e)return;var i;if(!this._isSilent&&!this._isShown&&(this._skipPluginShow||!this._isShowing&&(null===(i=z.trigger(this._element,Xt))||void 0===i?void 0:i.defaultPrevented)))return void this._silently(()=>e.hide());const n=this._isShown;this._isShown=!0,this._syncThemeAttribute(e.context.mainElement),this._alignToPositionElement(),window.removeEventListener("resize",this._onResize),window.addEventListener("resize",this._onResize),n||z.trigger(this._element,Qt),null===(t=this._resolveShown)||void 0===t||t.call(this)}_handlePluginHide(){var t;const e=this._calendar;e&&!this._isSilent&&this._isShown&&(this._isHiding||!(null===(t=z.trigger(this._element,Gt))||void 0===t?void 0:t.defaultPrevented)?(this._isShown=!1,window.removeEventListener("resize",this._onResize),z.trigger(this._element,Zt)):this._silently(()=>e.show()))}_calendarExtensions(t=[]){const e=window.VanillaCalendarPro,i=[...t];for(const t of re){const n=null==e?void 0:e[t];n&&"object"==typeof n&&!i.includes(n)&&i.push(n)}return i}_buildCalendarOptions(){const t=this._getEffectiveTheme(),e=t&&"auto"!==t?t:"system",i=this._config.vcpOptions,n=this._calendarExtensions(i.extensions),s=X(X(X({},i),n.length>0?{extensions:n}:{}),{},{inputMode:!this._isInline,positionToInput:this._config.placement,firstWeekday:this._config.firstWeekday,locale:this._config.locale,selectionDatesMode:this._config.selectionMode,selectedDates:this._config.selectedDates,displayMonthsCount:this._config.displayMonthsCount,type:this._config.displayMonthsCount>1?"multiple":"default",selectedTheme:e,themeAttrDetect:"[data-bs-theme]",onClickDate:(t,e)=>this._handleDateClick(t,e),onInit:t=>{this._syncThemeAttribute(t.context.mainElement)},onShow:()=>this._handlePluginShow(),onHide:()=>this._handlePluginHide()}),[r]=this._config.selectedDates;if(r){const t=this._parseDate(r);s.selectedMonth=t.getMonth(),s.selectedYear=t.getFullYear()}return this._config.dateMin&&(s.dateMin=this._config.dateMin),this._config.dateMax&&(s.dateMax=this._config.dateMax),s}_handleDateClick(t,e){const i=[...t.context.selectedDates];this._selectedDates=i,this._writeSelection(i);const n={dates:i,event:e};z.trigger(this._element,Kt,n),this._maybeHideAfterSelection(i)}_maybeHideAfterSelection(t){this._isInline||("single"===this._config.selectionMode&&t.length>0||"multiple-ranged"===this._config.selectionMode&&t.length>=2)&&(window.clearTimeout(this._hideTimeout),this._hideTimeout=window.setTimeout(()=>this.hide(),100))}_parseDate(t){const[e=0,i=1,n=1]=t.split("-").map(Number);return new Date(e,i-1,n)}_formatDate(t){const e=this._parseDate(t),i="default"===this._config.locale?void 0:this._config.locale,{dateFormat:n}=this._config;return"function"==typeof n?n(e,i):n&&"object"==typeof n?new Intl.DateTimeFormat(i,n).format(e):e.toLocaleDateString(i)}_formatDateForInput(t){if(0===t.length)return"";if(1===t.length)return this._formatDate(t[0]);const e="multiple-ranged"===this._config.selectionMode?" – ":", ";return t.map(t=>this._formatDate(t)).join(e)}_parseInputValue(){var t;const e=this._element.value.trim();if(!e)return;const i=oe.get(this._element);var n;if(i&&i.text.trim()===e)return this._selectedDates=[...i.dates],void(null===(n=this._calendar)||void 0===n||n.set(X({selectedDates:this._selectedDates},this._monthOf(this._selectedDates[0]))));const s=se.test(e)?this._parseDate(e):new Date(e);Number.isNaN(s.getTime())||(this._selectedDates=[this._toIsoDate(s)],null===(t=this._calendar)||void 0===t||t.set(X({selectedDates:this._selectedDates},this._monthOf(this._selectedDates[0]))))}_toIsoDate(t){if("string"==typeof t&&se.test(t))return t;const e=t instanceof Date?t:"string"==typeof t&&se.test(t)?this._parseDate(t):new Date(t);return Number.isNaN(e.getTime())?String(t):`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}_monthOf(t){if(!t||!se.test(t))return{};const e=this._parseDate(t);return{selectedMonth:e.getMonth(),selectedYear:e.getFullYear()}}};z.on(document,te,ie,function(t){"INPUT"!==this.tagName&&"true"!==this.dataset.bsInline&&"true"!==this.dataset.tblrInline&&(t.preventDefault(),he.getOrCreateInstance(this).toggle())}),z.on(document,ee,ie,function(){"INPUT"===this.tagName&&he.getOrCreateInstance(this).show()}),et(ie,he,t=>{const{dataset:e}=t;return"true"===e.bsInline||"true"===e.tblrInline||"bsSelectedDates"in e||"tblrSelectedDates"in e||Boolean(t.value)});var ue="data-mask",de="data-mask-visible",fe=`[${ue}]`,pe={mask:"",lazy:!0},me={mask:"(string|function|regexp|object|array)",lazy:"boolean"},ge=class extends G{constructor(t,e){super(t,e),this._mask=null,this._element&&this._config.mask&&window.IMask&&(this._mask=new window.IMask(this._element,X({},this._config)))}static get Default(){return pe}static get DefaultType(){return me}static get NAME(){return"input-mask"}get mask(){return this._mask}update(){var t;null===(t=this._mask)||void 0===t||t.updateValue()}dispose(){var t;null===(t=this._mask)||void 0===t||t.destroy(),super.dispose()}_mergeConfigObj(t,e){const i={},n=null==e?void 0:e.getAttribute(ue);return n&&(i.mask=n),(null==e?void 0:e.hasAttribute(de))&&(i.lazy="false"===e.getAttribute(de)),super._mergeConfigObj(X(X({},i),t),e)}};et(fe,ge);var _e="bottom",ve="right",be="left",ye="auto",we=["top",_e,ve,be],Ae="start",Ee="clippingParents",xe="viewport",Ce="popper",Te="reference",Se=we.reduce(function(t,e){return t.concat([e+"-"+Ae,e+"-end"])},[]),ke=[].concat(we,[ye]).reduce(function(t,e){return t.concat([e,e+"-"+Ae,e+"-end"])},[]),Oe="beforeRead",De="read",$e="afterRead",Ie="beforeMain",Le="main",Me="afterMain",Ne="beforeWrite",Pe="write",je="afterWrite",Fe=[Oe,De,$e,Ie,Le,Me,Ne,Pe,je];function ze(t){return t?(t.nodeName||"").toLowerCase():null}function He(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function We(t){return t instanceof He(t).Element||t instanceof Element}function Be(t){return t instanceof He(t).HTMLElement||t instanceof HTMLElement}function Re(t){return"undefined"!=typeof ShadowRoot&&(t instanceof He(t).ShadowRoot||t instanceof ShadowRoot)}var Ve={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},s=e.elements[t];Be(s)&&ze(s)&&(Object.assign(s.style,i),Object.keys(n).forEach(function(t){var e=n[t];!1===e?s.removeAttribute(t):s.setAttribute(t,!0===e?"":e)}))})},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach(function(t){var n=e.elements[t],s=e.attributes[t]||{},r=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce(function(t,e){return t[e]="",t},{});Be(n)&&ze(n)&&(Object.assign(n.style,r),Object.keys(s).forEach(function(t){n.removeAttribute(t)}))})}},requires:["computeStyles"]};function qe(t){return t.split("-")[0]}var Ye=Math.max,Ue=Math.min,Ke=Math.round;function Xe(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Qe(){return!/^((?!chrome|android).)*safari/i.test(Xe())}function Ge(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var n=t.getBoundingClientRect(),s=1,r=1;e&&Be(t)&&(s=t.offsetWidth>0&&Ke(n.width)/t.offsetWidth||1,r=t.offsetHeight>0&&Ke(n.height)/t.offsetHeight||1);var o=(We(t)?He(t):window).visualViewport,a=!Qe()&&i,l=(n.left+(a&&o?o.offsetLeft:0))/s,c=(n.top+(a&&o?o.offsetTop:0))/r,h=n.width/s,u=n.height/r;return{width:h,height:u,top:c,right:l+h,bottom:c+u,left:l,x:l,y:c}}function Ze(t){var e=Ge(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function Je(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&Re(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ti(t){return He(t).getComputedStyle(t)}function ei(t){return["table","td","th"].indexOf(ze(t))>=0}function ii(t){return((We(t)?t.ownerDocument:t.document)||window.document).documentElement}function ni(t){return"html"===ze(t)?t:t.assignedSlot||t.parentNode||(Re(t)?t.host:null)||ii(t)}function si(t){return Be(t)&&"fixed"!==ti(t).position?t.offsetParent:null}function ri(t){for(var e=He(t),i=si(t);i&&ei(i)&&"static"===ti(i).position;)i=si(i);return i&&("html"===ze(i)||"body"===ze(i)&&"static"===ti(i).position)?e:i||function(t){var e=/firefox/i.test(Xe());if(/Trident/i.test(Xe())&&Be(t)&&"fixed"===ti(t).position)return null;var i=ni(t);for(Re(i)&&(i=i.host);Be(i)&&["html","body"].indexOf(ze(i))<0;){var n=ti(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(t)||e}function oi(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function ai(t,e,i){return Ye(t,Ue(e,i))}function li(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function ci(t,e){return e.reduce(function(e,i){return e[i]=t,e},{})}var hi={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,n=t.name,s=t.options,r=i.elements.arrow,o=i.modifiersData.popperOffsets,a=qe(i.placement),l=oi(a),c=["left","right"].indexOf(a)>=0?"height":"width";if(r&&o){var h=function(t,e){return li("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:ci(t,we))}(s.padding,i),u=Ze(r),d="y"===l?"top":be,f="y"===l?_e:ve,p=i.rects.reference[c]+i.rects.reference[l]-o[l]-i.rects.popper[c],m=o[l]-i.rects.reference[l],g=ri(r),_=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,v=p/2-m/2,b=h[d],y=_-u[c]-h[f],w=_/2-u[c]/2+v,A=ai(b,w,y),E=l;i.modifiersData[n]=((e={})[E]=A,e.centerOffset=A-w,e)}},effect:function(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&Je(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ui(t){return t.split("-")[1]}var di={top:"auto",right:"auto",bottom:"auto",left:"auto"};function fi(t){var e,i=t.popper,n=t.popperRect,s=t.placement,r=t.variation,o=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,h=t.roundOffsets,u=t.isFixed,d=o.x,f=void 0===d?0:d,p=o.y,m=void 0===p?0:p,g="function"==typeof h?h({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var _=o.hasOwnProperty("x"),v=o.hasOwnProperty("y"),b=be,y="top",w=window;if(c){var A=ri(i),E="clientHeight",x="clientWidth";if(A===He(i)&&"static"!==ti(A=ii(i)).position&&"absolute"===a&&(E="scrollHeight",x="scrollWidth"),"top"===s||("left"===s||"right"===s)&&"end"===r)y=_e,m-=(u&&A===w&&w.visualViewport?w.visualViewport.height:A[E])-n.height,m*=l?1:-1;if("left"===s||("top"===s||"bottom"===s)&&"end"===r)b=ve,f-=(u&&A===w&&w.visualViewport?w.visualViewport.width:A[x])-n.width,f*=l?1:-1}var C,T=Object.assign({position:a},c&&di),S=!0===h?function(t,e){var i=t.x,n=t.y,s=e.devicePixelRatio||1;return{x:Ke(i*s)/s||0,y:Ke(n*s)/s||0}}({x:f,y:m},He(i)):{x:f,y:m};return f=S.x,m=S.y,l?Object.assign({},T,((C={})[y]=v?"0":"",C[b]=_?"0":"",C.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",C)):Object.assign({},T,((e={})[y]=v?m+"px":"",e[b]=_?f+"px":"",e.transform="",e))}var pi={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,s=void 0===n||n,r=i.adaptive,o=void 0===r||r,a=i.roundOffsets,l=void 0===a||a,c={placement:qe(e.placement),variation:ui(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,fi(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,fi(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},mi={passive:!0};var gi={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,s=n.scroll,r=void 0===s||s,o=n.resize,a=void 0===o||o,l=He(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&c.forEach(function(t){t.addEventListener("scroll",i.update,mi)}),a&&l.addEventListener("resize",i.update,mi),function(){r&&c.forEach(function(t){t.removeEventListener("scroll",i.update,mi)}),a&&l.removeEventListener("resize",i.update,mi)}},data:{}},_i={left:"right",right:"left",bottom:"top",top:"bottom"};function vi(t){return t.replace(/left|right|bottom|top/g,function(t){return _i[t]})}var bi={start:"end",end:"start"};function yi(t){return t.replace(/start|end/g,function(t){return bi[t]})}function wi(t){var e=He(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ai(t){return Ge(ii(t)).left+wi(t).scrollLeft}function Ei(t){var e=ti(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function xi(t){return["html","body","#document"].indexOf(ze(t))>=0?t.ownerDocument.body:Be(t)&&Ei(t)?t:xi(ni(t))}function Ci(t,e){var i;void 0===e&&(e=[]);var n=xi(t),s=n===(null==(i=t.ownerDocument)?void 0:i.body),r=He(n),o=s?[r].concat(r.visualViewport||[],Ei(n)?n:[]):n,a=e.concat(o);return s?a:a.concat(Ci(ni(o)))}function Ti(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Si(t,e,i){return"viewport"===e?Ti(function(t,e){var i=He(t),n=ii(t),s=i.visualViewport,r=n.clientWidth,o=n.clientHeight,a=0,l=0;if(s){r=s.width,o=s.height;var c=Qe();(c||!c&&"fixed"===e)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:r,height:o,x:a+Ai(t),y:l}}(t,i)):We(e)?function(t,e){var i=Ge(t,!1,"fixed"===e);return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}(e,i):Ti(function(t){var e,i=ii(t),n=wi(t),s=null==(e=t.ownerDocument)?void 0:e.body,r=Ye(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=Ye(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-n.scrollLeft+Ai(t),l=-n.scrollTop;return"rtl"===ti(s||i).direction&&(a+=Ye(i.clientWidth,s?s.clientWidth:0)-r),{width:r,height:o,x:a,y:l}}(ii(t)))}function ki(t,e,i,n){var s="clippingParents"===e?function(t){var e=Ci(ni(t)),i=["absolute","fixed"].indexOf(ti(t).position)>=0&&Be(t)?ri(t):t;return We(i)?e.filter(function(t){return We(t)&&Je(t,i)&&"body"!==ze(t)}):[]}(t):[].concat(e),r=[].concat(s,[i]),o=r[0],a=r.reduce(function(e,i){var s=Si(t,i,n);return e.top=Ye(s.top,e.top),e.right=Ue(s.right,e.right),e.bottom=Ue(s.bottom,e.bottom),e.left=Ye(s.left,e.left),e},Si(t,o,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Oi(t){var e,i=t.reference,n=t.element,s=t.placement,r=s?qe(s):null,o=s?ui(s):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(r){case"top":e={x:a,y:i.y-n.height};break;case _e:e={x:a,y:i.y+i.height};break;case ve:e={x:i.x+i.width,y:l};break;case be:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=r?oi(r):null;if(null!=c){var h="y"===c?"height":"width";switch(o){case Ae:e[c]=e[c]-(i[h]/2-n[h]/2);break;case"end":e[c]=e[c]+(i[h]/2-n[h]/2)}}return e}function Di(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=void 0===n?t.placement:n,r=i.strategy,o=void 0===r?t.strategy:r,a=i.boundary,l=void 0===a?Ee:a,c=i.rootBoundary,h=void 0===c?xe:c,u=i.elementContext,d=void 0===u?Ce:u,f=i.altBoundary,p=void 0!==f&&f,m=i.padding,g=void 0===m?0:m,_=li("number"!=typeof g?g:ci(g,we)),v="popper"===d?Te:Ce,b=t.rects.popper,y=t.elements[p?v:d],w=ki(We(y)?y:y.contextElement||ii(t.elements.popper),l,h,o),A=Ge(t.elements.reference),E=Oi({reference:A,element:b,strategy:"absolute",placement:s}),x=Ti(Object.assign({},b,E)),C="popper"===d?x:A,T={top:w.top-C.top+_.top,bottom:C.bottom-w.bottom+_.bottom,left:w.left-C.left+_.left,right:C.right-w.right+_.right},S=t.modifiersData.offset;if("popper"===d&&S){var k=S[s];Object.keys(T).forEach(function(t){var e=["right","bottom"].indexOf(t)>=0?1:-1,i=["top","bottom"].indexOf(t)>=0?"y":"x";T[t]+=k[i]*e})}return T}function $i(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=i.boundary,r=i.rootBoundary,o=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?ke:l,h=ui(n),u=h?a?Se:Se.filter(function(t){return ui(t)===h}):we,d=u.filter(function(t){return c.indexOf(t)>=0});0===d.length&&(d=u);var f=d.reduce(function(e,i){return e[i]=Di(t,{placement:i,boundary:s,rootBoundary:r,padding:o})[qe(i)],e},{});return Object.keys(f).sort(function(t,e){return f[t]-f[e]})}var Ii={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var s=i.mainAxis,r=void 0===s||s,o=i.altAxis,a=void 0===o||o,l=i.fallbackPlacements,c=i.padding,h=i.boundary,u=i.rootBoundary,d=i.altBoundary,f=i.flipVariations,p=void 0===f||f,m=i.allowedAutoPlacements,g=e.options.placement,_=qe(g)===g,v=l||(_||!p?[vi(g)]:function(t){if("auto"===qe(t))return[];var e=vi(t);return[yi(t),e,yi(e)]}(g)),b=[g].concat(v).reduce(function(t,i){return t.concat("auto"===qe(i)?$i(e,{placement:i,boundary:h,rootBoundary:u,padding:c,flipVariations:p,allowedAutoPlacements:m}):i)},[]),y=e.rects.reference,w=e.rects.popper,A=new Map,E=!0,x=b[0],C=0;C<b.length;C++){var T=b[C],S=qe(T),k=ui(T)===Ae,O=["top",_e].indexOf(S)>=0,D=O?"width":"height",$=Di(e,{placement:T,boundary:h,rootBoundary:u,altBoundary:d,padding:c}),I=O?k?ve:be:k?_e:"top";y[D]>w[D]&&(I=vi(I));var L=vi(I),M=[];if(r&&M.push($[S]<=0),a&&M.push($[I]<=0,$[L]<=0),M.every(function(t){return t})){x=T,E=!1;break}A.set(T,M)}if(E)for(var N=function(t){var e=b.find(function(e){var i=A.get(e);if(i)return i.slice(0,t).every(function(t){return t})});if(e)return x=e,"break"},P=p?3:1;P>0&&"break"!==N(P);P--);e.placement!==x&&(e.modifiersData[n]._skip=!0,e.placement=x,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Li(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function Mi(t){return["top",ve,_e,be].some(function(e){return t[e]>=0})}var Ni={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,s=e.rects.popper,r=e.modifiersData.preventOverflow,o=Di(e,{elementContext:"reference"}),a=Di(e,{altBoundary:!0}),l=Li(o,n),c=Li(a,s,r),h=Mi(l),u=Mi(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":u})}};var Pi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.offset,r=void 0===s?[0,0]:s,o=ke.reduce(function(t,i){return t[i]=function(t,e,i){var n=qe(t),s=["left","top"].indexOf(n)>=0?-1:1,r="function"==typeof i?i(Object.assign({},e,{placement:t})):i,o=r[0],a=r[1];return o=o||0,a=(a||0)*s,["left","right"].indexOf(n)>=0?{x:a,y:o}:{x:o,y:a}}(i,e.rects,r),t},{}),a=o[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=o}};var ji={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=Oi({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}};var Fi={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.mainAxis,r=void 0===s||s,o=i.altAxis,a=void 0!==o&&o,l=i.boundary,c=i.rootBoundary,h=i.altBoundary,u=i.padding,d=i.tether,f=void 0===d||d,p=i.tetherOffset,m=void 0===p?0:p,g=Di(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:h}),_=qe(e.placement),v=ui(e.placement),b=!v,y=oi(_),w="x"===y?"y":"x",A=e.modifiersData.popperOffsets,E=e.rects.reference,x=e.rects.popper,C="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,T="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),S=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,k={x:0,y:0};if(A){if(r){var O,D="y"===y?"top":be,$="y"===y?_e:ve,I="y"===y?"height":"width",L=A[y],M=L+g[D],N=L-g[$],P=f?-x[I]/2:0,j="start"===v?E[I]:x[I],F="start"===v?-x[I]:-E[I],z=e.elements.arrow,H=f&&z?Ze(z):{width:0,height:0},W=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=W[D],R=W[$],V=ai(0,E[I],H[I]),q=b?E[I]/2-P-V-B-T.mainAxis:j-V-B-T.mainAxis,Y=b?-E[I]/2+P+V+R+T.mainAxis:F+V+R+T.mainAxis,U=e.elements.arrow&&ri(e.elements.arrow),K=U?"y"===y?U.clientTop||0:U.clientLeft||0:0,X=null!=(O=null==S?void 0:S[y])?O:0,Q=L+Y-X,G=ai(f?Ue(M,L+q-X-K):M,L,f?Ye(N,Q):N);A[y]=G,k[y]=G-L}if(a){var Z,J="x"===y?"top":be,tt="x"===y?_e:ve,et=A[w],it="y"===w?"height":"width",nt=et+g[J],st=et-g[tt],rt=-1!==["top",be].indexOf(_),ot=null!=(Z=null==S?void 0:S[w])?Z:0,at=rt?nt:et-E[it]-x[it]-ot+T.altAxis,lt=rt?et+E[it]+x[it]-ot-T.altAxis:st,ct=f&&rt?function(t,e,i){var n=ai(t,e,i);return n>i?i:n}(at,et,lt):ai(f?at:nt,et,f?lt:st);A[w]=ct,k[w]=ct-et}e.modifiersData[n]=k}},requiresIfExists:["offset"]};function zi(t,e,i){void 0===i&&(i=!1);var n,s,r=Be(e),o=Be(e)&&function(t){var e=t.getBoundingClientRect(),i=Ke(e.width)/t.offsetWidth||1,n=Ke(e.height)/t.offsetHeight||1;return 1!==i||1!==n}(e),a=ii(e),l=Ge(t,o,i),c={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(r||!r&&!i)&&(("body"!==ze(e)||Ei(a))&&(c=(n=e)!==He(n)&&Be(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:wi(n)),Be(e)?((h=Ge(e,!0)).x+=e.clientLeft,h.y+=e.clientTop):a&&(h.x=Ai(a))),{x:l.left+c.scrollLeft-h.x,y:l.top+c.scrollTop-h.y,width:l.width,height:l.height}}function Hi(t){var e=new Map,i=new Set,n=[];function s(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!i.has(t)){var n=e.get(t);n&&s(n)}}),n.push(t)}return t.forEach(function(t){e.set(t.name,t)}),t.forEach(function(t){i.has(t.name)||s(t)}),n}var Wi={placement:"bottom",modifiers:[],strategy:"absolute"};function Bi(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some(function(t){return!(t&&"function"==typeof t.getBoundingClientRect)})}function Ri(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,n=void 0===i?[]:i,s=e.defaultOptions,r=void 0===s?Wi:s;return function(t,e,i){void 0===i&&(i=r);var s,o,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Wi,r),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,h={state:a,setOptions:function(i){var s="function"==typeof i?i(a.options):i;u(),a.options=Object.assign({},r,a.options,s),a.scrollParents={reference:We(t)?Ci(t):t.contextElement?Ci(t.contextElement):[],popper:Ci(e)};var o,c,d=function(t){var e=Hi(t);return Fe.reduce(function(t,i){return t.concat(e.filter(function(t){return t.phase===i}))},[])}((o=[].concat(n,a.options.modifiers),c=o.reduce(function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e,t},{}),Object.keys(c).map(function(t){return c[t]})));return a.orderedModifiers=d.filter(function(t){return t.enabled}),a.orderedModifiers.forEach(function(t){var e=t.name,i=t.options,n=void 0===i?{}:i,s=t.effect;if("function"==typeof s){var r=s({state:a,name:e,instance:h,options:n});l.push(r||function(){})}}),h.update()},forceUpdate:function(){if(!c){var t=a.elements,e=t.reference,i=t.popper;if(Bi(e,i)){a.rects={reference:zi(e,ri(i),"fixed"===a.options.strategy),popper:Ze(i)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(t){return a.modifiersData[t.name]=Object.assign({},t.data)});for(var n=0;n<a.orderedModifiers.length;n++)if(!0!==a.reset){var s=a.orderedModifiers[n],r=s.fn,o=s.options,l=void 0===o?{}:o,u=s.name;"function"==typeof r&&(a=r({state:a,options:l,name:u,instance:h})||a)}else a.reset=!1,n=-1}}},update:(s=function(){return new Promise(function(t){h.forceUpdate(),t(a)})},function(){return o||(o=new Promise(function(t){Promise.resolve().then(function(){o=void 0,t(s())})})),o}),destroy:function(){u(),c=!0}};if(!Bi(t,e))return h;function u(){l.forEach(function(t){return t()}),l=[]}return h.setOptions(i).then(function(t){!c&&i.onFirstUpdate&&i.onFirstUpdate(t)}),h}}var Vi=Ri(),qi=Ri({defaultModifiers:[gi,ji,pi,Ve]}),Yi=Ri({defaultModifiers:[gi,ji,pi,Ve,Pi,Ii,Fi,hi,Ni]}),Ui=e({afterMain:()=>Me,afterRead:()=>$e,afterWrite:()=>je,applyStyles:()=>Ve,arrow:()=>hi,auto:()=>ye,basePlacements:()=>we,beforeMain:()=>Ie,beforeRead:()=>Oe,beforeWrite:()=>Ne,bottom:()=>_e,clippingParents:()=>Ee,computeStyles:()=>pi,createPopper:()=>Yi,createPopperBase:()=>Vi,createPopperLite:()=>qi,detectOverflow:()=>Di,end:()=>"end",eventListeners:()=>gi,flip:()=>Ii,hide:()=>Ni,left:()=>be,main:()=>Le,modifierPhases:()=>Fe,offset:()=>Pi,placements:()=>ke,popper:()=>Ce,popperGenerator:()=>Ri,popperOffsets:()=>ji,preventOverflow:()=>Fi,read:()=>De,reference:()=>Te,right:()=>ve,start:()=>Ae,top:()=>"top",variationPlacements:()=>Se,viewport:()=>xe,write:()=>Pe}),Ki=".bs.alert",Xi=`close${Ki}`,Qi=`closed${Ki}`,Gi=class t extends G{static get NAME(){return"alert"}close(){const t=z.trigger(this._element,Xi);if(null==t?void 0:t.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(),z.trigger(this._element,Qi),this.dispose()}static jQueryInterface(e){return this.each(function(){const i=t.getOrCreateInstance(this);if("string"==typeof e){if(void 0===i[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);i[e](this)}})}};tt(Gi,"close"),y(Gi);var Zi='[data-bs-toggle="button"], [data-tblr-toggle="button"]',Ji=class t extends G{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",String(this._element.classList.toggle("active")))}static jQueryInterface(e){return this.each(function(){const i=t.getOrCreateInstance(this);"toggle"===e&&i.toggle()})}};z.on(document,"click.bs.button.data-api",Zi,t=>{var e;t.preventDefault();const i=null===(e=t.target)||void 0===e?void 0:e.closest(Zi);i&&Ji.getOrCreateInstance(i).toggle()}),y(Ji);var tn=".bs.swipe",en=`touchstart${tn}`,nn=`touchmove${tn}`,sn=`touchend${tn}`,rn=`pointerdown${tn}`,on=`pointerup${tn}`,an={endCallback:null,leftCallback:null,rightCallback:null},ln={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"},cn=class t extends Q{constructor(e,i){super(),this._element=e,e&&t.isSupported()&&(this._config=this._getConfig(i),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return an}static get DefaultType(){return ln}static get NAME(){return"swipe"}dispose(){z.off(this._element,tn)}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),w(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=40)return;const e=t/this._deltaX;this._deltaX=0,e&&w(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(z.on(this._element,rn,t=>this._start(t)),z.on(this._element,on,t=>this._end(t)),this._element.classList.add("pointer-event")):(z.on(this._element,en,t=>this._start(t)),z.on(this._element,nn,t=>this._move(t)),z.on(this._element,sn,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&("pen"===t.pointerType||"touch"===t.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}},hn=".bs.carousel",un=".data-api",dn="ArrowLeft",fn="ArrowRight",pn="next",mn="prev",gn="left",_n="right",vn=`slide${hn}`,bn=`slid${hn}`,yn=`keydown${hn}`,wn=`mouseenter${hn}`,An=`mouseleave${hn}`,En=`dragstart${hn}`,xn=`load${hn}${un}`,Cn=`click${hn}${un}`,Tn="carousel",Sn="active",kn={[dn]:_n,[fn]:gn},On={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Dn={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"},$n=class t extends G{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=J.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===Tn&&this.cycle()}static get Default(){return On}static get DefaultType(){return Dn}static get NAME(){return"carousel"}next(){this._slide(pn)}nextWhenVisible(){!document.hidden&&u(this._element)&&this.next()}prev(){this._slide(mn)}pause(){this._isSliding&&a(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?z.one(this._element,bn,()=>this.cycle()):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void z.one(this._element,bn,()=>this.to(t));const i=this._getItemIndex(this._getActive());if(i===t)return;const n=t>i?pn:mn;this._slide(n,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&z.on(this._element,yn,t=>this._keydown(t)),"hover"===this._config.pause&&(z.on(this._element,wn,()=>this.pause()),z.on(this._element,An,()=>this._maybeEnableCycle())),this._config.touch&&cn.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of J.find(".carousel-item img",this._element))z.on(t,En,t=>t.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(gn)),rightCallback:()=>this._slide(this._directionToOrder(_n)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new cn(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=kn[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=J.findOne(".active",this._indicatorsElement);e.classList.remove(Sn),e.removeAttribute("aria-current");const i=J.findOne(`[data-bs-slide-to="${t}"], [data-tblr-slide-to="${t}"]`,this._indicatorsElement);i&&(i.classList.add(Sn),i.setAttribute("aria-current","true"))}_updateInterval(){var t;const e=this._activeElement||this._getActive();if(!e)return;const i=Number.parseInt(e.getAttribute("data-bs-interval")||e.getAttribute("data-tblr-interval")||"",10);this._config.interval=i||(null!==(t=this._config.defaultInterval)&&void 0!==t?t:this._config.interval)}_slide(t,e=null){if(this._isSliding)return;const i=this._getActive(),n=t===pn,s=e||E(this._getItems(),i,n,this._config.wrap);if(s===i)return;const r=this._getItemIndex(s),o=e=>z.trigger(this._element,e,{relatedTarget:s,direction:this._orderToDirection(t),from:this._getItemIndex(i),to:r}),a=o(vn);if(null==a?void 0:a.defaultPrevented)return;if(!i||!s)return;const l=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(r),this._activeElement=s;const c=n?"carousel-item-start":"carousel-item-end",h=n?"carousel-item-next":"carousel-item-prev";s.classList.add(h),m(s),i.classList.add(c),s.classList.add(c);this._queueCallback(()=>{s.classList.remove(c,h),s.classList.add(Sn),i.classList.remove(Sn,h,c),this._isSliding=!1,o(bn)},i,this._isAnimated()),l&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return J.findOne(".active.carousel-item",this._element)}_getItems(){return J.find(".carousel-item",this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return g()?t===gn?mn:pn:t===gn?pn:mn}_orderToDirection(t){return g()?t===mn?gn:_n:t===mn?_n:gn}static jQueryInterface(e){return this.each(function(){const i=t.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===i[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);i[e]()}}else i.to(e)})}};z.on(document,Cn,"[data-bs-slide], [data-bs-slide-to], [data-tblr-slide], [data-tblr-slide-to]",function(t){const e=J.getElementFromSelector(this);if(!e||!e.classList.contains(Tn))return;t.preventDefault();const i=$n.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to")||this.getAttribute("data-tblr-slide-to");return n?(i.to(Number(n)),void i._maybeEnableCycle()):"next"===V.getDataAttribute(this,"slide")?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())}),z.on(window,xn,()=>{const t=J.find('[data-bs-ride="carousel"], [data-tblr-ride="carousel"]');for(const e of t)$n.getOrCreateInstance(e)}),y($n);var In=".bs.collapse",Ln=`show${In}`,Mn=`shown${In}`,Nn=`hide${In}`,Pn=`hidden${In}`,jn=`click${In}.data-api`,Fn="show",zn="collapse",Hn="collapsing",Wn=`:scope .${zn} .${zn}`,Bn='[data-bs-toggle="collapse"], [data-tblr-toggle="collapse"]',Rn={parent:null,toggle:!0},Vn={parent:"(null|element)",toggle:"boolean"},qn=class t extends G{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const i=J.find(Bn);for(const t of i){const e=J.getSelectorFromElement(t),i=J.find(e).filter(t=>t===this._element);null!==e&&i.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Rn}static get DefaultType(){return Vn}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(t=>t!==this._element).map(e=>t.getOrCreateInstance(e,{toggle:!1}))),e.length&&e[0]._isTransitioning)return;const i=z.trigger(this._element,Ln);if(null==i?void 0:i.defaultPrevented)return;for(const t of e)t.hide();const n=this._getDimension();this._element.classList.remove(zn),this._element.classList.add(Hn),this._element.style[n]="0",this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const s=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Hn),this._element.classList.add(zn,Fn),this._element.style[n]="",z.trigger(this._element,Mn)},this._element,!0),this._element.style[n]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown())return;const t=z.trigger(this._element,Nn);if(null==t?void 0:t.defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,m(this._element),this._element.classList.add(Hn),this._element.classList.remove(zn,Fn);for(const t of this._triggerArray){const e=J.getElementFromSelector(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0;this._element.style[e]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Hn),this._element.classList.add(zn),z.trigger(this._element,Pn)},this._element,!0)}_isShown(t=this._element){return t.classList.contains(Fn)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=h(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(Bn);for(const e of t){const t=J.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=J.find(Wn,this._config.parent);return J.find(t,this._config.parent).filter(t=>!e.includes(t))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const i of t)i.classList.toggle("collapsed",!e),i.setAttribute("aria-expanded",String(e))}static jQueryInterface(e){const i={};return"string"==typeof e&&/show|hide/.test(e)&&(i.toggle=!1),this.each(function(){const n=t.getOrCreateInstance(this,i);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}})}};z.on(document,jn,Bn,function(t){const{delegateTarget:e}=t;("A"===t.target.tagName||e&&"A"===e.tagName)&&t.preventDefault();for(const t of J.getMultipleElementsFromSelector(this))qn.getOrCreateInstance(t,{toggle:!1}).toggle()}),y(qn);var Yn="dropdown",Un=".bs.dropdown",Kn=".data-api",Xn="ArrowUp",Qn="ArrowDown",Gn=`hide${Un}`,Zn=`hidden${Un}`,Jn=`show${Un}`,ts=`shown${Un}`,es=`click${Un}${Kn}`,is=`keydown${Un}${Kn}`,ns=`keyup${Un}${Kn}`,ss="show",rs='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled), [data-tblr-toggle="dropdown"]:not(.disabled):not(:disabled)',os=rs.split(", ").map(t=>`${t}.${ss}`).join(", "),as=".dropdown-menu",ls=g()?"top-end":"top-start",cs=g()?"top-start":"top-end",hs=g()?"bottom-end":"bottom-start",us=g()?"bottom-start":"bottom-end",ds=g()?"left-start":"right-start",fs=g()?"right-start":"left-start",ps={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},ms={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"},gs=class t extends G{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=J.next(this._element,as)[0]||J.prev(this._element,as)[0]||J.findOne(as,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return ps}static get DefaultType(){return ms}static get NAME(){return Yn}toggle(){this._isShown()?this.hide():this.show()}show(){if(d(this._element)||this._isShown())return;const t={relatedTarget:this._element},e=z.trigger(this._element,Jn,t);if(!(null==e?void 0:e.defaultPrevented)){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of Array.from(document.body.children))z.on(t,"mouseover",p);this._element.focus(),this._element.setAttribute("aria-expanded","true"),this._menu.classList.add(ss),this._element.classList.add(ss),z.trigger(this._element,ts,t)}}hide(){if(d(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){const e=z.trigger(this._element,Gn,t);if(!(null==e?void 0:e.defaultPrevented)){if("ontouchstart"in document.documentElement)for(const t of Array.from(document.body.children))z.off(t,"mouseover",p);this._popper&&this._popper.destroy(),this._menu.classList.remove(ss),this._element.classList.remove(ss),this._element.setAttribute("aria-expanded","false"),V.removeDataAttribute(this._menu,"popper"),z.trigger(this._element,Zn,t)}}_getConfig(t){const e=super._getConfig(t);if("object"==typeof e.reference&&!c(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${Yn.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(void 0===Ui)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let t=this._element;"parent"===this._config.reference?t=this._parent:c(this._config.reference)?t=h(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=Yi(t,this._menu,e)}_isShown(){return this._menu.classList.contains(ss)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return ds;if(t.classList.contains("dropstart"))return fs;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?cs:ls:e?us:hs}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};(this._inNavbar||"static"===this._config.display)&&(V.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]);const e=w(this._config.popperConfig,[void 0,t]);return X(X({},t),"object"==typeof e&&null!==e?e:{})}_selectMenuItem({key:t,target:e}){const i=J.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(t=>u(t));if(!i.length)return;const n=e;E(i,n,t===Qn,!i.includes(n)).focus()}static clearMenus(e){if(2===e.button||"keyup"===e.type&&"Tab"!==e.key)return;const i=J.find(os);for(const n of i){const i=t.getInstance(n);if(!i||!1===i._config.autoClose)continue;const s=e.composedPath(),r=s.includes(i._menu);if(s.includes(i._element)||"inside"===i._config.autoClose&&!r||"outside"===i._config.autoClose&&r)continue;if(i._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const o={relatedTarget:i._element};"click"===e.type&&(o.clickEvent=e),i._completeHide(o)}}static dataApiKeydownHandler(e){const i=/input|textarea/i.test(e.target.tagName),n="Escape"===e.key,s=[Xn,Qn].includes(e.key);if(!s&&!n)return;if(i&&!n)return;e.preventDefault();const r=this.matches(rs)?this:J.prev(this,rs)[0]||J.next(this,rs)[0]||J.findOne(rs,e.delegateTarget.parentNode),o=t.getOrCreateInstance(r);if(s)return e.stopPropagation(),o.show(),void o._selectMenuItem(e);o._isShown()&&(e.stopPropagation(),o.hide(),r.focus())}static jQueryInterface(e){return this.each(function(){const i=t.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}})}};z.on(document,is,rs,gs.dataApiKeydownHandler),z.on(document,is,as,gs.dataApiKeydownHandler),z.on(document,es,gs.clearMenus),z.on(document,ns,gs.clearMenus),z.on(document,es,rs,function(t){t.preventDefault(),gs.getOrCreateInstance(this).toggle()}),y(gs);var _s="backdrop",vs="show",bs=`mousedown.bs.${_s}`,ys={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},ws={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"},As=class extends Q{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return ys}static get DefaultType(){return ws}static get NAME(){return _s}show(t){if(!this._config.isVisible)return void w(t);this._append();const e=this._getElement();this._config.isAnimated&&m(e),e.classList.add(vs),this._emulateAnimation(()=>{w(t)})}hide(t){this._config.isVisible?(this._getElement().classList.remove(vs),this._emulateAnimation(()=>{this.dispose(),w(t)})):w(t)}dispose(){this._isAppended&&(z.off(this._element,bs),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=h(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),z.on(t,bs,()=>{w(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){A(t,this._getElement(),this._config.isAnimated)}},Es=".bs.focustrap",xs=`focusin${Es}`,Cs=`keydown.tab${Es}`,Ts="backward",Ss={autofocus:!0,trapElement:null},ks={autofocus:"boolean",trapElement:"element"},Os=class extends Q{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Ss}static get DefaultType(){return ks}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),z.off(document,Es),z.on(document,xs,t=>this._handleFocusin(t)),z.on(document,Cs,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,z.off(document,Es))}_handleFocusin(t){const{trapElement:e}=this._config;if(!e||t.target===document||t.target===e||e.contains(t.target))return;const i=J.focusableChildren(e);0===i.length?e.focus():this._lastTabNavDirection===Ts?i[i.length-1].focus():i[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?Ts:"forward")}},Ds=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",$s=".sticky-top",Is="padding-right",Ls="margin-right",Ms=class{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Is,e=>e+t),this._setElementAttributes(Ds,Is,e=>e+t),this._setElementAttributes($s,Ls,e=>e-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Is),this._resetElementAttributes(Ds,Is),this._resetElementAttributes($s,Ls)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const n=this.getWidth();this._applyManipulationCallback(t,t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+n)return;this._saveInitialAttribute(t,e);const s=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${i(Number.parseFloat(s))}px`)})}_saveInitialAttribute(t,e){const i=t.style.getPropertyValue(e);i&&V.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,t=>{const i=V.getDataAttribute(t,e);null!==i?(V.removeDataAttribute(t,e),t.style.setProperty(e,String(i))):t.style.removeProperty(e)})}_applyManipulationCallback(t,e){if(c(t))e(t);else for(const i of J.find(t,this._element))e(i)}},Ns=".bs.modal",Ps=`hide${Ns}`,js=`hidePrevented${Ns}`,Fs=`hidden${Ns}`,zs=`show${Ns}`,Hs=`shown${Ns}`,Ws=`resize${Ns}`,Bs=`click.dismiss${Ns}`,Rs=`mousedown.dismiss${Ns}`,Vs=`keydown.dismiss${Ns}`,qs=`click${Ns}.data-api`,Ys="modal-open",Us="show",Ks="modal-static",Xs={backdrop:!0,focus:!0,keyboard:!0},Qs={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"},Gs=class t extends G{constructor(t,e){super(t,e),this._dialog=J.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Ms,this._addEventListeners()}static get Default(){return Xs}static get DefaultType(){return Qs}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||this._isTransitioning)return;const e=z.trigger(this._element,zs,{relatedTarget:t});(null==e?void 0:e.defaultPrevented)||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Ys),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){if(!this._isShown||this._isTransitioning)return;const t=z.trigger(this._element,Ps);(null==t?void 0:t.defaultPrevented)||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Us),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){z.off(window,Ns),z.off(this._dialog,Ns),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new As({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Os({trapElement:this._element})}_showElement(t){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","true"),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const e=this._dialog?J.findOne(".modal-body",this._dialog):null;e&&(e.scrollTop=0),m(this._element),this._element.classList.add(Us);this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,z.trigger(this._element,Hs,{relatedTarget:t})},this._dialog,this._isAnimated())}_addEventListeners(){z.on(this._element,Vs,t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),z.on(window,Ws,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),z.on(this._element,Rs,t=>{z.one(this._element,Bs,e=>{this._element===t.target&&this._element===e.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden","true"),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Ys),this._resetAdjustments(),this._scrollBar.reset(),z.trigger(this._element,Fs)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){const t=z.trigger(this._element,js);if(null==t?void 0:t.defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,i=this._element.style.overflowY;"hidden"===i||this._element.classList.contains(Ks)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(Ks),this._queueCallback(()=>{this._element.classList.remove(Ks),this._queueCallback(()=>{this._element.style.overflowY=i},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),i=e>0;if(i&&!t){const t=g()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!i&&t){const t=g()?"paddingRight":"paddingLeft";this._element.style[t]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,i){return this.each(function(){const n=t.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e](i)}})}};z.on(document,qs,'[data-bs-toggle="modal"], [data-tblr-toggle="modal"]',function(t){const e=J.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),!e)return;z.one(e,zs,t=>{(null==t?void 0:t.defaultPrevented)||z.one(e,Fs,()=>{u(this)&&this.focus()})});const i=J.findOne(".modal.show");i&&Gs.getInstance(i).hide(),Gs.getOrCreateInstance(e).toggle(this)}),tt(Gs),y(Gs);var Zs=".bs.offcanvas",Js=".data-api",tr=`load${Zs}${Js}`,er="show",ir="showing",nr="hiding",sr=".offcanvas.show",rr=`show${Zs}`,or=`shown${Zs}`,ar=`hide${Zs}`,lr=`hidePrevented${Zs}`,cr=`hidden${Zs}`,hr=`resize${Zs}`,ur=`click${Zs}${Js}`,dr=`keydown.dismiss${Zs}`,fr={backdrop:!0,keyboard:!0,scroll:!1},pr={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"},mr=class t extends G{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return fr}static get DefaultType(){return pr}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown)return;const e=z.trigger(this._element,rr,{relatedTarget:t});if(null==e?void 0:e.defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||(new Ms).hide(),this._element.setAttribute("aria-modal","true"),this._element.setAttribute("role","dialog"),this._element.classList.add(ir);this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(er),this._element.classList.remove(ir),z.trigger(this._element,or,{relatedTarget:t})},this._element,!0)}hide(){if(!this._isShown)return;const t=z.trigger(this._element,ar);if(null==t?void 0:t.defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(nr),this._backdrop.hide();this._queueCallback(()=>{this._element.classList.remove(er,nr),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new Ms).reset(),z.trigger(this._element,cr)},this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new As({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():z.trigger(this._element,lr)}:null})}_initializeFocusTrap(){return new Os({trapElement:this._element})}_addEventListeners(){z.on(this._element,dr,t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():z.trigger(this._element,lr))})}static jQueryInterface(e){return this.each(function(){const i=t.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);i[e](this)}})}};z.on(document,ur,'[data-bs-toggle="offcanvas"], [data-tblr-toggle="offcanvas"]',function(t){const e=J.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),!e)return;if(d(this))return;z.one(e,cr,()=>{u(this)&&this.focus()});const i=J.findOne(sr);i&&i!==e&&mr.getInstance(i).hide(),mr.getOrCreateInstance(e).toggle(this)}),z.on(window,tr,()=>{for(const t of J.find(sr))mr.getOrCreateInstance(t).show()}),z.on(window,hr,()=>{for(const t of J.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&mr.getOrCreateInstance(t).hide()}),tt(mr),y(mr);var gr={"*":["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:[]},_r=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),vr=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,br=(t,e)=>{const i=t.nodeName.toLowerCase();return e.includes(i)?!_r.has(i)||Boolean(vr.test(t.nodeValue)):e.filter(t=>t instanceof RegExp).some(t=>t.test(i))};var yr={allowList:gr,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},wr={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Ar={entry:"(string|element|function|null)",selector:"(string|element)"},Er=class extends Q{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return yr}static get DefaultType(){return wr}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content=X(X({},this._config.content),t),this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[e,i]of Object.entries(this._config.content))this._setContent(t,i,e);const e=t.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&e.classList.add(...i.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,i]of Object.entries(t))super._typeCheckConfig({selector:e,entry:i},Ar)}_setContent(t,e,i){const n=J.findOne(i,t);n&&((e=this._resolvePossibleFunction(e))?c(e)?this._putElementInTemplate(h(e),n):this._config.html?n.innerHTML=this._maybeSanitize(e):n.textContent=e:n.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,i){if(!t.length)return t;if(i&&"function"==typeof i)return i(t);const n=(new window.DOMParser).parseFromString(t,"text/html"),s=Array.from(n.body.querySelectorAll("*"));for(const t of s){const i=t.nodeName.toLowerCase();if(!Object.keys(e).includes(i)){t.remove();continue}const n=Array.from(t.attributes),s=[...e["*"]||[],...e[i]||[]];for(const e of n)br(e,s)||t.removeAttribute(e.nodeName)}return n.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return w(t,[void 0,this])}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}},xr=new Set(["sanitize","allowList","sanitizeFn"]),Cr="fade",Tr="show",Sr=".tooltip-inner",kr=".modal",Or="hide.bs.modal",Dr="hover",$r="focus",Ir="click",Lr={AUTO:"auto",TOP:"top",RIGHT:g()?"left":"right",BOTTOM:"bottom",LEFT:g()?"right":"left"},Mr={allowList:gr,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"},Nr={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"},Pr=class t extends G{constructor(t,e){if(void 0===Ui)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._hideModalHandler=()=>{this._element&&this.hide()},this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Mr}static get DefaultType(){return Nr}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),z.off(this._element.closest(kr),Or,this._hideModalHandler),(this._element.getAttribute("data-bs-original-title")||this._element.getAttribute("data-tblr-original-title"))&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")||this._element.getAttribute("data-tblr-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 t=z.trigger(this._element,this.constructor.eventName("show")),e=(f(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if((null==t?void 0:t.defaultPrevented)||!e)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:n}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(n.append(i),z.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(i),i.classList.add(Tr),"ontouchstart"in document.documentElement)for(const t of Array.from(document.body.children))z.on(t,"mouseover",p);this._queueCallback(()=>{z.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(!this._isShown())return;const t=z.trigger(this._element,this.constructor.eventName("hide"));if(null==t?void 0:t.defaultPrevented)return;if(this._getTipElement().classList.remove(Tr),"ontouchstart"in document.documentElement)for(const t of Array.from(document.body.children))z.off(t,"mouseover",p);this._activeTrigger[Ir]=!1,this._activeTrigger[$r]=!1,this._activeTrigger[Dr]=!1,this._isHovered=null;this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),z.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(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(Cr,Tr),e.classList.add(`bs-${this.constructor.NAME}-auto`);const i=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME).toString();return e.setAttribute("id",i),this._isAnimated()&&e.classList.add(Cr),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Er(X(X({},this._config),{},{content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)})),this._templateFactory}_getContentForTemplate(){return{[Sr]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")||this._element.getAttribute("data-tblr-original-title")||""}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||null!==this.tip&&this.tip.classList.contains(Cr)}_isShown(){return null!==this.tip&&this.tip.classList.contains(Tr)}_createPopper(t){const e=Lr[w(this._config.placement,[this,t,this._element]).toUpperCase()];return Yi(this._element,t,this._getPopperConfig(e))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return w(t,[this._element,this._element])}_getPopperConfig(t){const e={placement:t,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:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]},i=w(this._config.popperConfig,[void 0,e]);return X(X({},e),"object"==typeof i&&null!==i?i:{})}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)z.on(this._element,this.constructor.eventName("click"),this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger[Ir]=!(e._isShown()&&e._activeTrigger[Ir]),e.toggle()});else if("manual"!==e){const t=e===Dr?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),i=e===Dr?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");z.on(this._element,t,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?$r:Dr]=!0,e._enter()}),z.on(this._element,i,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?$r:Dr]=e._element.contains(t.relatedTarget),e._leave()})}z.on(this._element.closest(kr),Or,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._getDelay().show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._getDelay().hide))}_getDelay(){const{delay:t}=this._config;return"number"==typeof t?{show:t,hide:t}:t}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=V.getDataAttributes(this._element);for(const t of Object.keys(e))xr.has(t)&&delete e[t];let i=X(X({},e),"object"==typeof t&&t?t:{});return i=this._mergeConfigObj(i),i=this._configAfterMerge(i),this._typeCheckConfig(i),i}_configAfterMerge(t){t.container=!1===t.container?document.body:h(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay});const e=t;return"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),t}_getDelegateConfig(){const t={},e=this.constructor.Default;for(const[i,n]of Object.entries(this._config))e[i]!==n&&(t[i]=n);return t.selector=!1,t.trigger="manual",t}_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 i=t.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}})}};y(Pr);var jr=".popover-header",Fr=".popover-body",zr=X(X({},Pr.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"}),Hr=X(X({},Pr.DefaultType),{},{content:"(null|string|element|function)"}),Wr=class t extends Pr{constructor(t,e){super(t,e)}static get Default(){return zr}static get DefaultType(){return Hr}static get NAME(){return"popover"}_isWithContent(){return Boolean(this._getTitle()||this._getContent())}_getContentForTemplate(){return{[jr]:this._getTitle(),[Fr]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const i=t.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}})}};y(Wr);var Br=".bs.scrollspy",Rr=`activate${Br}`,Vr=`click${Br}`,qr=`load${Br}.data-api`,Yr="active",Ur="[href]",Kr=".nav-link",Xr=`${Kr}, .nav-item > ${Kr}, .list-group-item`,Qr={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Gr={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"},Zr=class t extends G{constructor(t,e){super(t,e),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 Qr}static get DefaultType(){return Gr}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){t.target=h(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin;const e=t.threshold;return"string"==typeof e&&(t.threshold=e.split(",").map(t=>Number.parseFloat(t))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(z.off(this._config.target,Vr),z.on(this._config.target,Vr,Ur,t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const i=this._rootElement||window,n=e.offsetTop-this._element.offsetTop;if("scrollTo"in i)return void i.scrollTo({top:n,behavior:"smooth"});i.scrollTop=n}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),t)}_observerCallback(t){const e=t=>this._targetLinks.get(`#${t.target.id}`),i=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},n=(this._rootElement||document.documentElement).scrollTop,s=n>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=n;for(const r of t){if(!r.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(r));continue}const t=r.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&t){if(i(r),!n)return}else s||t||i(r)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=J.find(Ur,this._config.target);for(const e of t){if(!e.hash||d(e))continue;const t=J.findOne(r(decodeURI(e.hash)),this._element);u(t)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,t))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(Yr),this._activateParents(t),z.trigger(this._element,Rr,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))J.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(Yr);else for(const e of J.parents(t,".nav, .list-group"))for(const t of J.prev(e,Xr))t.classList.add(Yr)}_clearActiveClass(t){t.classList.remove(Yr);const e=J.find(`${Ur}.${Yr}`,t);for(const t of e)t.classList.remove(Yr)}static jQueryInterface(e){return this.each(function(){const i=t.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);i[e]()}})}};z.on(window,qr,()=>{for(const t of J.find('[data-bs-spy="scroll"], [data-tblr-spy="scroll"]'))Zr.getOrCreateInstance(t)}),y(Zr);var Jr=".bs.tab",to=`hide${Jr}`,eo=`hidden${Jr}`,io=`show${Jr}`,no=`shown${Jr}`,so=`click${Jr}`,ro=`keydown${Jr}`,oo=`load${Jr}`,ao="ArrowLeft",lo="ArrowRight",co="ArrowUp",ho="ArrowDown",uo="Home",fo="End",po="active",mo="fade",go="show",_o=".dropdown-toggle",vo=`:not(${_o})`,bo='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"], [data-tblr-toggle="tab"], [data-tblr-toggle="pill"], [data-tblr-toggle="list"]',yo=`${`.nav-link${vo}, .list-group-item${vo}, [role="tab"]${vo}`}, ${bo}`,wo=`.${po}[data-bs-toggle="tab"], .${po}[data-bs-toggle="pill"], .${po}[data-bs-toggle="list"], .${po}[data-tblr-toggle="tab"], .${po}[data-tblr-toggle="pill"], .${po}[data-tblr-toggle="list"]`,Ao=class t extends G{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),z.on(this._element,ro,t=>this._keydown(t)))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),i=e?z.trigger(e,to,{relatedTarget:t}):null,n=z.trigger(t,io,{relatedTarget:e});(null==n?void 0:n.defaultPrevented)||(null==i?void 0:i.defaultPrevented)||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){if(!t)return;t.classList.add(po),this._activate(J.getElementFromSelector(t));this._queueCallback(()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected","true"),this._toggleDropDown(t,!0),z.trigger(t,no,{relatedTarget:e})):t.classList.add(go)},t,t.classList.contains(mo))}_deactivate(t,e){if(!t)return;t.classList.remove(po),t.blur(),this._deactivate(J.getElementFromSelector(t));this._queueCallback(()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected","false"),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),z.trigger(t,eo,{relatedTarget:e})):t.classList.remove(go)},t,t.classList.contains(mo))}_keydown(e){if(![ao,lo,co,ho,uo,fo].includes(e.key))return;e.stopPropagation(),e.preventDefault();const i=this._getChildren().filter(t=>!d(t));let n;if([uo,fo].includes(e.key))n=i[e.key===uo?0:i.length-1];else{const t=[lo,ho].includes(e.key);n=E(i,e.target,t,!0)}n&&(n.focus({preventScroll:!0}),t.getOrCreateInstance(n).show())}_getChildren(){return J.find(yo,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const t of e)this._setInitialAttributesOnChild(t)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),i=this._getOuterElement(t);t.setAttribute("aria-selected",String(e)),i!==t&&this._setAttributeIfNotExists(i,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=J.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const i=this._getOuterElement(t);if(!i.classList.contains("dropdown"))return;const n=(t,n)=>{const s=J.findOne(t,i);s&&s.classList.toggle(n,e)};n(_o,po),n(".dropdown-menu",go),i.setAttribute("aria-expanded",String(e))}_setAttributeIfNotExists(t,e,i){t.hasAttribute(e)||t.setAttribute(e,i)}_elemIsActive(t){return t.classList.contains(po)}_getInnerElement(t){return t.matches(yo)?t:J.findOne(yo,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(e){return this.each(function(){const i=t.getOrCreateInstance(this);if("string"==typeof e){if(void 0===i[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);i[e]()}})}};z.on(document,so,bo,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),d(this)||Ao.getOrCreateInstance(this).show()}),z.on(window,oo,()=>{for(const t of J.find(wo))Ao.getOrCreateInstance(t)}),y(Ao);var Eo=".bs.toast",xo=`mouseover${Eo}`,Co=`mouseout${Eo}`,To=`focusin${Eo}`,So=`focusout${Eo}`,ko=`hide${Eo}`,Oo=`hidden${Eo}`,Do=`show${Eo}`,$o=`shown${Eo}`,Io="hide",Lo="show",Mo="showing",No={animation:"boolean",autohide:"boolean",delay:"number"},Po={animation:!0,autohide:!0,delay:5e3},jo=class t extends G{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Po}static get DefaultType(){return No}static get NAME(){return"toast"}show(){const t=z.trigger(this._element,Do);if(null==t?void 0:t.defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");this._element.classList.remove(Io),m(this._element),this._element.classList.add(Lo,Mo),this._queueCallback(()=>{this._element.classList.remove(Mo),z.trigger(this._element,$o),this._maybeScheduleHide()},this._element,this._config.animation)}hide(){if(!this.isShown())return;const t=z.trigger(this._element,ko);if(null==t?void 0:t.defaultPrevented)return;this._element.classList.add(Mo),this._queueCallback(()=>{this._element.classList.add(Io),this._element.classList.remove(Mo,Lo),z.trigger(this._element,Oo)},this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Lo),super.dispose()}isShown(){return this._element.classList.contains(Lo)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const i=t.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){z.on(this._element,xo,t=>this._onInteraction(t,!0)),z.on(this._element,Co,t=>this._onInteraction(t,!1)),z.on(this._element,To,t=>this._onInteraction(t,!0)),z.on(this._element,So,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const i=t.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e](this)}})}};tt(jo),y(jo);var Fo={Alert:Gi,Button:Ji,Carousel:$n,Collapse:qn,Dropdown:gs,Modal:Gs,Offcanvas:mr,Popover:Wr,ScrollSpy:Zr,Tab:Ao,Toast:jo,Tooltip:Pr};b(()=>{for(const t of document.querySelectorAll('[data-bs-toggle="dropdown"], [data-tblr-toggle="dropdown"]'))try{const e={boundary:"viewport"===V.getDataAttribute(t,"boundary")?document.documentElement:"clippingParents"};gs.getOrCreateInstance(t,e)}catch(t){console.error(t)}});var zo=t=>{for(const e of document.querySelectorAll('[data-bs-toggle="sidebar-folded"], [data-tblr-toggle="sidebar-folded"]'))e.setAttribute("aria-pressed",String(t))},Ho=t=>{for(const i of document.querySelectorAll('.navbar-vertical [data-bs-toggle="dropdown"][aria-expanded="true"]'))if(i!==t){var e;null===(e=gs.getInstance(i))||void 0===e||e.hide()}};function Wo(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Bo(t,e,i){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}function Ro(t,e){return t.get(Bo(t,e))}document.addEventListener("click",t=>{if(!(null!==(e=document.documentElement.getAttribute("data-bs-sidebar"))&&void 0!==e?e:"").startsWith("folded")&&!document.querySelector(".navbar-vertical.navbar-folded, .navbar-vertical.navbar-folded-hover"))return;var e;const i=t.target;i instanceof Element&&!i.closest(".navbar-vertical .dropdown-menu")&&Ho(i.closest('.navbar-vertical [data-bs-toggle="dropdown"]'))}),document.addEventListener("mouseleave",t=>{const e=t.target;e instanceof Element&&e.matches(".navbar-vertical")&&("folded-hover"===document.documentElement.getAttribute("data-bs-sidebar")||e.classList.contains("navbar-folded-hover"))&&Ho()},!0),b(()=>{var t;const e=(null!==(t=document.documentElement.getAttribute("data-bs-sidebar"))&&void 0!==t?t:"").startsWith("folded");if(zo(e),e)for(const t of document.querySelectorAll(".navbar-vertical .dropdown-menu.show")){var i;t.classList.remove("show"),null===(i=t.parentElement)||void 0===i||null===(i=i.querySelector('[data-bs-toggle="dropdown"]'))||void 0===i||i.setAttribute("aria-expanded","false")}}),document.addEventListener("click",t=>{var e;if(!(t.target instanceof Element&&t.target.closest('[data-bs-toggle="sidebar-folded"], [data-tblr-toggle="sidebar-folded"]')))return;const i=document.documentElement,n=!(null!==(e=i.getAttribute("data-bs-sidebar"))&&void 0!==e?e:"").startsWith("folded");n?i.setAttribute("data-bs-sidebar","folded-hover"):i.removeAttribute("data-bs-sidebar");try{localStorage.setItem("tabler-sidebar",n?"folded-hover":"default")}catch(t){}zo(n),Ho(),document.dispatchEvent(new CustomEvent("tabler:sidebar-folded",{detail:{folded:n}}))}),b(()=>{for(const i of document.querySelectorAll('[data-bs-toggle="tooltip"], [data-tblr-toggle="tooltip"]'))try{var t,e;const n={delay:null!==(t=V.getDataAttribute(i,"delay"))&&void 0!==t?t:{show:50,hide:50},placement:null!==(e=V.getDataAttribute(i,"placement"))&&void 0!==e?e:"auto"};Pr.getOrCreateInstance(i,n)}catch(t){console.error(t)}}),b(()=>{for(const i of document.querySelectorAll('[data-bs-toggle="popover"], [data-tblr-toggle="popover"]'))try{var t,e;const n={delay:null!==(t=V.getDataAttribute(i,"delay"))&&void 0!==t?t:{show:50,hide:50},placement:null!==(e=V.getDataAttribute(i,"placement"))&&void 0!==e?e:"auto"};Wr.getOrCreateInstance(i,n)}catch(t){console.error(t)}});var Vo="switch-icon",qo=`.bs.${Vo}`,Yo=`click${qo}`,Uo=`toggle${qo}`,Ko=`change${qo}`,Xo="active",Qo="switch-icon-loading",Go=".switch-icon",Zo=`[data-bs-toggle="${Vo}"], [data-tblr-toggle="${Vo}"]`,Jo={},ta={},ea=new WeakMap,ia=new WeakSet,na=class extends G{constructor(t,e){var i,n,s;super(t,e),Wo(n=this,s=ia),s.add(n),function(t,e,i){Wo(t,e),e.set(t,i)}(this,ea,void 0),this._element&&(!function(t,e,i){t.set(Bo(t,e),i)}(ea,this,this._element.matches(Go)?this._element:null!==(i=J.findOne(Go,this._element))&&void 0!==i?i:this._element),this._element.hasAttribute("aria-pressed")||this._element.setAttribute("aria-pressed",String(this.isActive)),z.on(this._element,Yo,t=>{t.stopPropagation(),this._element.classList.contains("disabled")||"true"===this._element.getAttribute("aria-disabled")||this.toggle()}))}static get Default(){return Jo}static get DefaultType(){return ta}static get NAME(){return Vo}get isActive(){return Ro(ea,this).classList.contains(Xo)}get isLoading(){return Ro(ea,this).classList.contains(Qo)}toggle(t){if(this.isLoading)return;const e=null!=t?t:!this.isActive;let i;const n=z.trigger(this._element,Uo,{active:e,wait:t=>{i=t}});(null==n?void 0:n.defaultPrevented)||(i?(Bo(ia,this,ra).call(this,!0),i.then(()=>Bo(ia,this,sa).call(this,e),()=>{}).finally(()=>Bo(ia,this,ra).call(this,!1))):Bo(ia,this,sa).call(this,e))}dispose(){Bo(ia,this,ra).call(this,!1),super.dispose()}};function sa(t){this._element&&(Ro(ea,this).classList.toggle(Xo,t),this._element.setAttribute("aria-pressed",String(t)),z.trigger(this._element,Ko,{active:t}))}function ra(t){this._element&&(Ro(ea,this).classList.toggle(Qo,t),t?this._element.setAttribute("aria-busy","true"):this._element.removeAttribute("aria-busy"))}et(Zo,na);b(()=>{const t=window.location.hash;if(t)for(const e of document.querySelectorAll('[data-bs-toggle="tab"], [data-tblr-toggle="tab"]'))if(e.hash===t)try{Ao.getOrCreateInstance(e).show()}catch(t){console.error(t)}}),b(()=>{for(const t of document.querySelectorAll('[data-bs-toggle="toast"], [data-tblr-toggle="toast"]'))try{const e=J.getElementFromSelector(t);if(!e)continue;const i=jo.getOrCreateInstance(e);t.addEventListener("click",()=>{i.show()})}catch(t){console.error(t)}});var oa="sortable",aa=`data-${oa}`,la=`[${aa}]`,ca={},ha={},ua=class extends G{constructor(t,e){super(t,e),this._sortable=null,this._element&&window.Sortable&&(this._sortable=new window.Sortable(this._element,this._config))}static get Default(){return ca}static get DefaultType(){return ha}static get NAME(){return oa}get sortable(){return this._sortable}toArray(){var t,e;return null!==(t=null===(e=this._sortable)||void 0===e?void 0:e.toArray())&&void 0!==t?t:[]}sort(t,e){var i;null===(i=this._sortable)||void 0===i||i.sort(t,e)}dispose(){var t;null===(t=this._sortable)||void 0===t||t.destroy(),super.dispose()}_mergeConfigObj(t,e){let i={};const n=null==e?void 0:e.getAttribute(aa);if(n)try{const t=JSON.parse(n);t&&"object"==typeof t&&!Array.isArray(t)&&(i=t)}catch(t){}return super._mergeConfigObj(X(X({},i),t),e)}};et(la,ua);var da="otpInput",fa=`.bs.${da}`,pa=`input${fa}`,ma=`complete${fa}`,ga="otp-rendered",_a=["blur","keyup","select"],va=["click","pointercancel"],ba={numeric:{inputmode:"numeric",pattern:"[0-9]*",filter:/[^0-9]/g},alphanumeric:{inputmode:"text",pattern:"[A-Za-z0-9]*",filter:/[^A-Za-z0-9]/g},alpha:{inputmode:"text",pattern:"[A-Za-z]*",filter:/[^A-Za-z]/g}},ya={groups:null,length:null,mask:!1,separator:"·",type:"numeric"},wa={groups:"(array|null)",length:"(number|null)",mask:"boolean",separator:"string",type:"string"},Aa=class extends G{constructor(t,e){var i;if(super(t,e),this._length=0,this._wasComplete=!1,this._slots=[],this._slotsContainer=null,this._pointerActive=!1,this._pointerIndex=0,this._composedValue=null,this._onInput=t=>{if(t.isComposing)return;const e=this._composedValue;this._composedValue=null,null!==e&&e===this._input.value||this._handleInput()},this._onCompositionEnd=()=>{this._handleInput(),this._composedValue=this._input.value},this._onBeforeInput=t=>this._handleBeforeInput(t),this._onFocus=()=>this._handleFocus(),this._onPointerDown=t=>this._handlePointerDown(t),this._onPointerEnd=()=>{this._pointerActive=!1},this._onSync=()=>this._render(),this._onSelectionChange=()=>{document.activeElement===this._input&&this._render()},!this._element)return;const n=J.findOne("input",this._element);n&&(this._input=n,this._type=null!==(i=ba[this._config.type])&&void 0!==i?i:ba.numeric,this._length=this._resolveLength(),this._setupInput(),this._renderSlots(),this._addEventListeners(),this._render(),this._wasComplete=this._input.value.length===this._length)}static get Default(){return ya}static get DefaultType(){return wa}static get NAME(){return da}getValue(){return this._input.value}setValue(t){this._input.value=this._sanitize(String(t)),this._render(),this._checkComplete()}clear(){this._input.value="",this._render(),this._input.focus()}focus(){this._pointerActive=!1,this._input.focus(),this._selectSlot(this._firstEmptyIndex()),this._render()}dispose(){var t;if(this._input){this._input.removeEventListener("input",this._onInput),this._input.removeEventListener("beforeinput",this._onBeforeInput),this._input.removeEventListener("focus",this._onFocus),this._input.removeEventListener("pointerdown",this._onPointerDown),this._input.removeEventListener("compositionend",this._onCompositionEnd);for(const t of va)this._input.removeEventListener(t,this._onPointerEnd);for(const t of _a)this._input.removeEventListener(t,this._onSync);document.removeEventListener("selectionchange",this._onSelectionChange),null===(t=this._slotsContainer)||void 0===t||t.remove(),this._element.classList.remove(ga),super.dispose()}else super.dispose()}_resolveLength(){var t;const e=[this._config.length,Number.parseInt(null!==(t=this._input.getAttribute("maxlength"))&&void 0!==t?t:"",10)],{groups:i}=this._config;Array.isArray(i)&&i.length>0&&e.push(i.reduce((t,e)=>t+Number(e),0));for(const t of e)if("number"==typeof t&&Number.isInteger(t)&&t>0)return Math.min(t,32);return 6}_setupInput(){const t=this._input;"text"!==t.type&&"tel"!==t.type&&(t.type="text"),t.classList.add("otp-input"),t.setAttribute("maxlength",String(this._length)),t.setAttribute("inputmode",this._type.inputmode),t.setAttribute("pattern",this._type.pattern),t.getAttribute("autocomplete")||t.setAttribute("autocomplete","one-time-code"),t.value&&(t.value=this._sanitize(t.value))}_renderSlots(){const t=document.createElement("div");t.className="otp-slots",t.setAttribute("aria-hidden","true");const{groups:e,separator:i}=this._config;let n=0,s=0;for(let r=0;r<this._length;r++){const o=document.createElement("div");if(o.className="otp-slot",t.append(o),this._slots.push(o),e&&e.length>0&&(s++,s===e[n]&&r<this._length-1)){const r=document.createElement("div");r.className="otp-separator",r.textContent=i,t.append(r),n=Math.min(n+1,e.length-1),s=0}}this._slotsContainer=t,this._element.append(t),this._element.classList.add(ga)}_addEventListeners(){this._input.addEventListener("input",this._onInput),this._input.addEventListener("beforeinput",this._onBeforeInput),this._input.addEventListener("focus",this._onFocus),this._input.addEventListener("pointerdown",this._onPointerDown),this._input.addEventListener("compositionend",this._onCompositionEnd);for(const t of va)this._input.addEventListener(t,this._onPointerEnd);document.addEventListener("selectionchange",this._onSelectionChange);for(const t of _a)this._input.addEventListener(t,this._onSync)}_handleFocus(){if(this._pointerActive)return this._pointerActive=!1,this._selectSlot(this._pointerIndex),void this._render();this._selectSlot(this._firstEmptyIndex()),this._render()}_handleInput(){const t=this._sanitize(this._input.value);t!==this._input.value&&(this._input.value=t),document.activeElement===this._input&&this._selectSlot(this._firstEmptyIndex()),this._afterValueChange()}_handleBeforeInput(t){const{inputType:e,data:i}=t;if("insertText"===e&&i&&1===i.length){var n,s;t.preventDefault();const e=this._sanitize(i);if(!e)return;const r=Math.min(null!==(n=this._input.selectionStart)&&void 0!==n?n:0,this._length-1),o=Math.max(null!==(s=this._input.selectionEnd)&&void 0!==s?s:r,r+1),a=[...this._input.value];return a.splice(r,o-r,e),this._input.value=a.join("").slice(0,this._length),this._selectSlot(r+1),void this._afterValueChange()}if("deleteContentBackward"===e){var r,o;t.preventDefault();const e=this._input.value,i=null!==(r=this._input.selectionStart)&&void 0!==r?r:0,n=null!==(o=this._input.selectionEnd)&&void 0!==o?o:i,s=[...this._input.value];return n>i?(s.splice(i,n-i),this._input.value=s.join(""),this._selectSlot(i)):i>0&&(s.splice(i-1,1),this._input.value=s.join(""),this._selectSlot(i-1)),void this._afterValueChange(e)}if("deleteContentForward"===e){var a,l;t.preventDefault();const e=this._input.value,i=null!==(a=this._input.selectionStart)&&void 0!==a?a:0,n=null!==(l=this._input.selectionEnd)&&void 0!==l?l:i,s=[...this._input.value];n>i?(s.splice(i,n-i),this._input.value=s.join("")):i<s.length&&(s.splice(i,1),this._input.value=s.join("")),this._selectSlot(i),this._afterValueChange(e)}}_handlePointerDown(t){const e=this._slotIndexFromPoint(t.clientX);if(null===e)return;const i=Math.min(e,this._firstEmptyIndex());if(document.activeElement===this._input)return t.preventDefault(),this._selectSlot(i),void this._render();this._pointerActive=!0,this._pointerIndex=i}_slotIndexFromPoint(t){const e="rtl"===getComputedStyle(this._element).direction;for(const[i,n]of this._slots.entries()){const s=n.getBoundingClientRect();if((e?t>=s.left:t<=s.right)||i===this._slots.length-1)return i}return null}_afterValueChange(t){this._render(),void 0!==t&&t===this._input.value||(z.trigger(this._element,pa,{value:this._input.value}),this._checkComplete())}_firstEmptyIndex(){return Math.min(this._input.value.length,this._length-1)}_selectSlot(t){const e=Math.max(0,Math.min(t,this._length-1)),i=e<this._input.value.length?e+1:e;this._input.setSelectionRange(e,i)}_sanitize(t){return t.replace(this._type.filter,"").slice(0,this._length)}_render(){var t;const{value:e}=this._input,i=document.activeElement===this._input,n=Math.min(null!==(t=this._input.selectionStart)&&void 0!==t?t:e.length,this._length-1);for(const[t,r]of this._slots.entries()){var s;const o=null!==(s=e[t])&&void 0!==s?s:"";r.textContent=o&&this._config.mask?"•":o,r.classList.toggle("otp-slot-filled",Boolean(o)),r.classList.toggle("otp-slot-active",i&&t===n)}}_checkComplete(){const{value:t}=this._input,e=t.length===this._length;e&&!this._wasComplete&&z.trigger(this._element,ma,{value:t}),this._wasComplete=e}};et('[data-bs-toggle="otp"], [data-tblr-toggle="otp"]',Aa);var Ea="sparkline",xa=`.bs.${Ea}`,Ca=`rendered${xa}`,Ta=`updated${xa}`,Sa="sparkline-label",ka=`[data-bs-toggle="${Ea}"], [data-tblr-toggle="${Ea}"]`,Oa="--tblr-sparkline",Da={type:"line",values:[],width:80,height:24,min:null,max:null,fill:"none",spot:"none",pad:2,barGap:2,barRadius:2,label:null,threshold:null,animation:300},$a={type:"string",values:"array",width:"number",height:"number",min:"(number|null)",max:"(number|null)",fill:"string",spot:"string",pad:"number",barGap:"number",barRadius:"number",label:"(string|number|boolean|null)",threshold:"(number|null)",animation:"number"},Ia=t=>document.createElementNS("http://www.w3.org/2000/svg",t),La=(t,e)=>{for(const[i,n]of Object.entries(e))null!=n&&t.setAttribute(i,String(n))},Ma=t=>`var(${Oa}-${t})`,Na=(t,e)=>{const i=e-t;return 0===i?1:i},Pa=t=>Array.isArray(t)?t.map(Number).filter(Number.isFinite):"number"==typeof t?Number.isFinite(t)?[t]:[]:(t=>{const e=String(null!=t?t:"").trim();if(!e)return[];if(e.startsWith("["))try{const t=JSON.parse(e);return Array.isArray(t)?t.map(Number).filter(Number.isFinite):[]}catch(t){return[]}return e.split(",").map(t=>Number(t.trim())).filter(Number.isFinite)})(t),ja=(t,e,i,...n)=>{const s=null!=e?e:Math.min(...t,...n),r=null!=i?i:Math.max(...t,...n);return{min:s,max:r,span:Na(s,r)}},Fa=/-?\d*\.?\d+(?:e[-+]?\d+)?/g,za=(t,e,i)=>{const n=t.match(Fa),s=e.match(Fa);if(!n||!s||n.length!==s.length||t.replace(Fa,"#")!==e.replace(Fa,"#"))return e;let r=0;return e.replace(Fa,()=>{const t=Number(n[r])+(Number(s[r])-Number(n[r]))*i;return r++,String(Math.round(1e3*t)/1e3)})},Ha=(t,e,i)=>{const n=getComputedStyle(t).getPropertyValue(`${Oa}-${e}`).trim(),s=Number.parseFloat(n);return Number.isFinite(s)?s:i},Wa=class extends G{constructor(t,e){super(t,e),this._userConfig={},this._frame=0,this._element&&(this._userConfig=X({},e),this.render())}static get Default(){return Da}static get DefaultType(){return $a}static get NAME(){return Ea}update(t){const e=Array.isArray(t)?t.join(","):String(t),i=this._element.hasAttribute("data-tblr-values")?"data-tblr-values":"data-bs-values";this._element.setAttribute(i,e),delete this._userConfig.values,this.render(),z.trigger(this._element,Ta)}render(){var t;this._config=this._getConfig(this._userConfig);const e=this._element.querySelector("svg");if(null===(t=this._element.querySelector(`.${Sa}`))||void 0===t||t.remove(),0===this._config.values.length)return cancelAnimationFrame(this._frame),null==e||e.remove(),void z.trigger(this._element,Ca);let i;switch(this._config.type){case"bar":i=this._renderBars();break;case"tristate":i=this._renderTristate();break;case"circle":i=this._renderCircle();break;default:i=this._renderLine()}e&&this._canAnimate(e,i)?this._animate(e,i):(cancelAnimationFrame(this._frame),null==e||e.remove(),this._element.append(i));const n=this._labelText();if(""!==n){const t=document.createElement("span");t.className=Sa,t.textContent=n,this._element.append(t)}z.trigger(this._element,Ca)}dispose(){var t,e;cancelAnimationFrame(this._frame),null===(t=this._element.querySelector("svg"))||void 0===t||t.remove(),null===(e=this._element.querySelector(`.${Sa}`))||void 0===e||e.remove(),super.dispose()}_configAfterMerge(t){return t.values=Pa(t.values),t}_labelText(){const{label:t,values:e,type:i}=this._config;return null===t||!1===t||""===t?"":"auto"!==t&&!0!==t?String(t):"circle"===i?`${Math.round(100*this._circleRatio())}%`:String(e[e.length-1])}_circleRatio(){var t,e,i;const n=this._config,s=null!==(t=n.values[0])&&void 0!==t?t:0,r=null!==(e=n.max)&&void 0!==e?e:n.values.length>1?n.values[1]:100,o=null!==(i=n.min)&&void 0!==i?i:0;return Math.max(0,Math.min(1,(s-o)/Na(o,r)))}_canAnimate(t,e){return!(this._config.animation<=0||window.matchMedia("(prefers-reduced-motion: reduce)").matches)&&(t.getAttribute("viewBox")===e.getAttribute("viewBox")&&t.children.length===e.children.length&&Array.from(t.children).every((t,i)=>t.tagName===e.children[i].tagName))}_animate(t,e){cancelAnimationFrame(this._frame);const i=Array.from(e.children).map((e,i)=>{const n=t.children[i],s=[];for(const{name:t}of Array.from(n.attributes))e.hasAttribute(t)||n.removeAttribute(t);for(const{name:t,value:i}of Array.from(e.attributes)){const e=n.getAttribute(t);null===e||e===i?n.setAttribute(t,i):s.push([t,e,i])}return{source:n,tweens:s}}),n=this._config.animation,s=performance.now(),r=t=>{const e=(t=>1-Math.pow(1-t,3))(Math.min(1,(t-s)/n));for(const{source:t,tweens:n}of i)for(const[i,s,r]of n)t.setAttribute(i,e>=1?r:za(s,r,e));e<1&&(this._frame=requestAnimationFrame(r))};this._frame=requestAnimationFrame(r)}_hairline(t,e,i,n=!1){const s=Ia("line");La(s,{x1:0,x2:this._config.width,y1:e,y2:e,stroke:Ma(i),"stroke-width":1,"stroke-dasharray":n?"3 2":null,"vector-effect":"non-scaling-stroke"}),t.append(s)}_createSvg(){const{width:t,height:e}=this._config,i=Ia("svg");return La(i,{viewBox:`0 0 ${t} ${e}`,preserveAspectRatio:"none",width:t,height:e,class:"sparkline-svg","aria-hidden":"true"}),i}_renderLine(){const t=this._config,e=this._createSvg(),{min:i,span:n}=ja(t.values,t.min,t.max,...null===t.threshold?[]:[t.threshold]),s=e=>t.pad+(1-(e-i)/n)*(t.height-2*t.pad),r=1===t.values.length?[s(t.values[0]),s(t.values[0])]:t.values.map(s),o=t.width/(r.length-1);if(null!==t.threshold&&this._hairline(e,s(t.threshold),"threshold",!0),"auto"===t.fill){const i=Ia("path");La(i,{d:this._areaPath(r,o,t.height),fill:Ma("fill"),stroke:"none"}),e.append(i)}const a=Ia("polyline");La(a,{points:r.map((t,e)=>`${e*o},${t}`).join(" "),fill:"none",stroke:Ma("stroke"),"stroke-width":Ma("stroke-width"),"stroke-linecap":"round","stroke-linejoin":"round"}),e.append(a);const l=((t,e)=>{if(0===t.length||"none"===e)return-1;if("last"===e)return t.length-1;let i=0;for(let n=1;n<t.length;n++)("min"===e?t[n]<t[i]:t[n]>t[i])&&(i=n);return i})(t.values,t.spot);if(l>=0){const i=Ia("circle");La(i,{cx:1===t.values.length?t.width/2:l*o,cy:r[l],r:Ha(this._element,"spot-size",2),fill:Ma("spot")}),e.append(i)}return e}_areaPath(t,e,i){return`${t.map((t,i)=>`${0===i?"M":"L"} ${i*e} ${t}`).join(" ")} L ${(t.length-1)*e} ${i} L 0 ${i} Z`}_renderBars(){const t=this._config,e=this._createSvg(),{min:i,span:n}=ja(t.values,t.min,t.max,0,...null===t.threshold?[]:[t.threshold]),s=e=>t.height-(e-i)/n*t.height,r=t.values.length,o=(t.width-t.barGap*(r-1))/r,a=s(0);i<0&&this._hairline(e,a,"zero"),null!==t.threshold&&this._hairline(e,s(t.threshold),"threshold",!0);const l=e=>Math.max(0,Math.min(t.height,e));return t.values.forEach((i,n)=>{const r=l(s(Math.max(i,0))),a=l(s(Math.min(i,0))),c=null===t.threshold?i<0:i<t.threshold,h=Ia("rect");La(h,{x:n*(o+t.barGap),y:r,width:o,height:a-r,rx:t.barRadius,fill:Ma(c?"negative":"stroke")}),e.append(h)}),e}_renderTristate(){const t=this._config,e=this._createSvg(),i=t.values.length,n=(t.width-t.barGap*(i-1))/i,s=t.height/2,r=Math.min(2,s);return this._hairline(e,s,"zero"),t.values.forEach((i,o)=>{const a=Ia("rect"),l=i>0?{y:0,height:s,fill:"stroke"}:i<0?{y:s,height:s,fill:"negative"}:{y:s-r/2,height:r,fill:"track"};La(a,{x:o*(n+t.barGap),y:l.y,width:n,height:l.height,rx:t.barRadius,fill:Ma(l.fill)}),e.append(a)}),e}_renderCircle(){const t=this._config,e=this._createSvg(),i=Ha(this._element,"stroke-width",2),n=Math.max(0,Math.min(t.width,t.height)/2-i/2),s=t.width/2,r=t.height/2,o=this._circleRatio(),a=2*Math.PI*n,l=Ia("circle");La(l,{cx:s,cy:r,r:n,fill:"none",stroke:Ma("track"),"stroke-width":i}),e.append(l);const c=Ia("circle");return La(c,{cx:s,cy:r,r:n,fill:"none",stroke:Ma("stroke"),"stroke-width":i,"stroke-linecap":"round","stroke-dasharray":a,"stroke-dashoffset":a*(1-o),transform:`rotate(-90 ${s} ${r})`}),e.append(c),e}};et(ka,Wa);var Ba="strength",Ra=`change.bs.${Ba}`,Va=`[data-bs-${Ba}], [data-tblr-${Ba}]`,qa=`.${Ba}-segment`,Ya=`.${Ba}-text`,Ua=["weak","fair","good","strong"],Ka={input:null,minLength:8,messages:{weak:"Weak",fair:"Fair",good:"Good",strong:"Strong"},weights:{minLength:1,extraLength:1,longPassword:1,lowercase:1,uppercase:1,numbers:1,special:1,multipleSpecial:1},thresholds:[2,4,6],scorer:null},Xa={input:"(string|null)",minLength:"number",messages:"object",weights:"object",thresholds:"array",scorer:"(function|null)"},Qa=class extends G{constructor(t,e){var i,n;super(t,e),this._input=null,this._segments=[],this._text=null,this._emptyText="",this._level=null,this._onInput=()=>this.evaluate(),this._element&&(this._input=this._getInput(),this._segments=J.find(qa,this._element),this._text=this._getText(),this._emptyText=null!==(i=null===(n=this._text)||void 0===n||null===(n=n.textContent)||void 0===n?void 0:n.trim())&&void 0!==i?i:"",this._setUpAria(),this._input&&(this._input.addEventListener("input",this._onInput),this.evaluate()))}static get Default(){return Ka}static get DefaultType(){return Xa}static get NAME(){return Ba}get level(){return this._level}evaluate(){if(!this._input)return;const t=this._input.value,e=this._score(t),i=this._level_(e);i!==this._level&&(this._level=i,this._render(i),z.trigger(this._element,Ra,{strength:i,score:e}))}dispose(){var t;null===(t=this._input)||void 0===t||t.removeEventListener("input",this._onInput),super.dispose()}_configAfterMerge(t){return X(X({},t),{},{messages:X(X({},Ka.messages),t.messages),weights:X(X({},Ka.weights),t.weights)})}_getInput(){var t,e;const{input:i}=this._config;if(i)return h(i);const n=this._element.parentElement,s=n?J.find('input[type="password"]',n):[],r=s.filter(t=>Boolean(t.compareDocumentPosition(this._element)&Node.DOCUMENT_POSITION_FOLLOWING));return null!==(t=null!==(e=r[r.length-1])&&void 0!==e?e:s[0])&&void 0!==t?t:null}_getText(){const t=this._element.parentElement;return t?J.findOne(Ya,t):null}_setUpAria(){var t;const e=this._element;e.setAttribute("role","progressbar"),e.setAttribute("aria-valuemin","0"),e.setAttribute("aria-valuemax",String(Ua.length)),e.setAttribute("aria-valuenow","0"),e.hasAttribute("aria-label")||e.hasAttribute("aria-labelledby")||e.setAttribute("aria-label","Password strength");for(const t of this._segments)t.setAttribute("aria-hidden","true");null===(t=this._text)||void 0===t||t.setAttribute("aria-live","polite")}_score(t){var e;if(!t)return 0;const{scorer:i,weights:n,minLength:s}=this._config;return"function"==typeof i?i(t):[[t.length>=s,n.minLength],[t.length>=s+4,n.extraLength],[t.length>=16,n.longPassword],[/[a-z]/.test(t),n.lowercase],[/[A-Z]/.test(t),n.uppercase],[/\d/.test(t),n.numbers],[/[^\dA-Za-z]/.test(t),n.special],[(null!==(e=t.match(/[^\dA-Za-z]/g))&&void 0!==e?e:[]).length>1,n.multipleSpecial]].reduce((t,[e,i])=>t+(e&&null!=i?i:0),0)}_level_(t){var e;if(t<=0)return null;const i=this._config.thresholds.findIndex(e=>t<=e);return null!==(e=Ua[-1===i?Ua.length-1:i])&&void 0!==e?e:null}_render(t){const e=this._element,i=t?Ua.indexOf(t):-1;var n;(e.dataset.bsStrength=null!=t?t:"",e.setAttribute("aria-valuenow",String(i+1)),t)?e.setAttribute("aria-valuetext",null!==(n=this._config.messages[t])&&void 0!==n?n:t):e.removeAttribute("aria-valuetext");const s=t?Math.ceil((i+1)/Ua.length*this._segments.length):0;for(const[t,e]of this._segments.entries())e.classList.toggle("active",t<s);var r;this._text&&(this._text.textContent=t?null!==(r=this._config.messages[t])&&void 0!==r?r:"":this._emptyText,this._text.dataset.bsStrength=null!=t?t:"")}};et(Va,Qa);var Ga=e({getColor:()=>tl,hexToRgba:()=>Ja,prefix:()=>Za}),Za="tblr-",Ja=(t,e)=>{const i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return i?`rgba(${parseInt(i[1],16)}, ${parseInt(i[2],16)}, ${parseInt(i[3],16)}, ${e})`:null},tl=(t,e=1)=>{var i;const n=getComputedStyle(document.body).getPropertyValue(`--${Za}${t}`).trim();return 1===e?n:null!==(i=Ja(n,e))&&void 0!==i?i:n?`color-mix(in srgb, ${n} ${100*e}%, transparent)`:null};export{Gi as Alert,at as Autosize,Ji as Button,$n as Carousel,yt as Clipboard,qn as Collapse,Lt as Confetti,Vt as CountUp,he as Datepicker,gs as Dropdown,ge as InputMask,Gs as Modal,mr as Offcanvas,Aa as OtpInput,Wr as Popover,Ui as Popper,Zr as ScrollSpy,ua as Sortable,Wa as Sparkline,Qa as Strength,na as SwitchIcon,Ao as Tab,jo as Toast,Pr as Tooltip,Fo as bootstrap,Ga as tabler};
8
8
  //# sourceMappingURL=tabler.esm.min.js.map