@qratilabs/qrati-connect 2.23.0-beta.2 → 2.23.0-beta.21

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 (173) hide show
  1. package/README.md +34 -131
  2. package/element/1dmOpMwn2.js +1 -0
  3. package/{umd/CU_-C7Pt2.js → element/B04BM8Ax2.js} +9 -9
  4. package/element/B45gcsxb.js +8 -0
  5. package/element/{B5BVTFlf.js → BCQyxXhG.js} +2 -2
  6. package/element/BItKl1T42.js +9 -0
  7. package/element/BNaRcekR2.js +1 -0
  8. package/element/BUDCYszs.js +1 -0
  9. package/element/BWP-4cpS.js +9 -0
  10. package/element/Bb7aA27_2.js +16 -0
  11. package/element/Be1kxf1X.js +1 -0
  12. package/element/BgQoyn-N2.js +24 -0
  13. package/{umd/CYQ06kUR.js → element/Bgs5C4HD.js} +1 -1
  14. package/element/BhkJLPA42.js +39 -0
  15. package/element/BhxijXQM.js +3 -0
  16. package/element/{fwDYCLiL.js → BlknxKzR.js} +1 -1
  17. package/element/Bo39kG4k2.js +1 -0
  18. package/{umd/WX3mhhd9.js → element/BsYbcfkG.js} +1 -1
  19. package/element/{CMQUiMWC2.js → BurXvsRl2.js} +2 -2
  20. package/element/BwwxqSTC2.js +1 -0
  21. package/element/C5zfotWt2.js +93 -0
  22. package/{umd/CgUphJWo.js → element/C7zv6hcG.js} +1 -1
  23. package/{umd/C9HFLidt.js → element/CAETItHr.js} +1 -1
  24. package/element/CAGI3w1m2.js +1 -0
  25. package/element/CBLQRRGX2.js +3 -0
  26. package/element/{CKk0UYyd.js → CFnGGYmq.js} +1 -1
  27. package/element/{BekfKWcG.js → CILYMBwp.js} +1 -1
  28. package/element/CKhD3GGu2.js +5 -0
  29. package/element/CL_evx_l.js +1 -0
  30. package/element/{wuONdFBI2.js → CObeYQ-T.js} +4 -4
  31. package/element/{DPmrTFJt.js → CPK30X_R.js} +2 -2
  32. package/{umd/CJpmOICA.js → element/CZ9iaxjO2.js} +1 -1
  33. package/element/ChKwv0LI.js +3 -0
  34. package/element/CiRDwfEo.js +14 -0
  35. package/element/CnXoEQ4O.js +41 -0
  36. package/element/CpYO5bBq.js +3 -0
  37. package/element/Cqm7RQaC2.js +1 -0
  38. package/element/CtxIOzTC2.js +1 -0
  39. package/element/{DXrH_HhZ.js → D35mTuTT.js} +1 -1
  40. package/element/DBYSpPDT.js +4 -0
  41. package/element/DC180L58.js +1 -0
  42. package/element/DDsXvZQf2.js +1 -0
  43. package/element/DDy6e4u1.js +1 -0
  44. package/element/DG0xITSs2.js +36 -0
  45. package/element/DG2ImKMr2.js +3 -0
  46. package/element/{DWbLshVZ.js → DGGc10Cy.js} +1 -1
  47. package/element/DH3iGq80.js +11 -0
  48. package/element/DM971zPD.js +3 -0
  49. package/element/DPg_DKOi.js +5 -0
  50. package/element/DSeZQTI82.js +3 -0
  51. package/{umd/9VAO1NmP.js → element/DTNXbVBR.js} +1 -1
  52. package/{umd/Wun_Og5n2.js → element/DTl-ou-l2.js} +5 -9
  53. package/element/DdACKOZr.js +1 -0
  54. package/element/DjMXpQHg.js +8 -0
  55. package/element/{u7SUQ9Kb2.js → DlRUi0u42.js} +2 -2
  56. package/element/DmpmrPE5.js +1 -0
  57. package/element/DnIueBGr.js +1 -0
  58. package/element/Dpi8tX5M.js +1 -0
  59. package/element/DrrpB4Om.js +1 -0
  60. package/element/L4hWU3Nc.js +1 -0
  61. package/{umd/BCu0TrNB2.js → element/N4HKgEC52.js} +1 -1
  62. package/element/{BCTYvPrD.js → OnH8Izqn.js} +1 -1
  63. package/element/Ot24jlyb2.js +1 -0
  64. package/element/RVKBpT2F.js +87 -0
  65. package/element/Rcen6i0h.js +80 -0
  66. package/element/SOYsF7q9.js +1 -0
  67. package/element/{lVJD5cJY.js → TlERMTWp.js} +5 -5
  68. package/element/X0P7ujR0.js +4 -0
  69. package/element/{2SYk3iBo.js → oS3-bnne2.js} +1 -1
  70. package/element/qIS4OV76.js +1 -0
  71. package/element/tdnQ0RcT.js +5 -0
  72. package/element/web.es.js +40 -125
  73. package/element/zcb-9fSo.js +4 -0
  74. package/package.json +1 -10
  75. package/react/index.cjs +1 -1
  76. package/react/index.d.mts +65 -0
  77. package/react/index.d.ts +65 -0
  78. package/react/index.mjs +1 -1
  79. package/element/8nf23RYF2.js +0 -93
  80. package/element/9VAO1NmP.js +0 -1
  81. package/element/B2KTsK_w.js +0 -3
  82. package/element/BCu0TrNB2.js +0 -2
  83. package/element/Be-K0dao.js +0 -9
  84. package/element/BiO2AH5s2.js +0 -8
  85. package/element/BmCwXyo_2.js +0 -3
  86. package/element/BnWKlftk2.js +0 -16
  87. package/element/BqPEscWs2.js +0 -5
  88. package/element/BsT0vqml.js +0 -1
  89. package/element/BxeYKf-v2.js +0 -86
  90. package/element/C0MGOytI.js +0 -1
  91. package/element/C0vZ8zxT.js +0 -1
  92. package/element/C6SiAA6Z2.js +0 -2
  93. package/element/C9HFLidt.js +0 -2
  94. package/element/C9U01_vP2.js +0 -39
  95. package/element/CAGYFwGT2.js +0 -4
  96. package/element/CJpmOICA.js +0 -2
  97. package/element/CU_-C7Pt2.js +0 -13
  98. package/element/CYQ06kUR.js +0 -1
  99. package/element/CbpHG7X52.js +0 -9
  100. package/element/CgE_bYp32.js +0 -37
  101. package/element/CgUphJWo.js +0 -1
  102. package/element/Cko4QHwX.js +0 -1
  103. package/element/D8Se70tP2.js +0 -3
  104. package/element/DIYTs0k3.js +0 -10
  105. package/element/DVO71jbn2.js +0 -3
  106. package/element/DYUfJm8F.js +0 -9
  107. package/element/DibuO0dP.js +0 -1
  108. package/element/LJWh_4Di.js +0 -2
  109. package/element/O530RtWA.js +0 -1
  110. package/element/WX3mhhd9.js +0 -2
  111. package/element/WtQ5axEj.js +0 -41
  112. package/element/Wun_Og5n2.js +0 -9
  113. package/element/hJxQiXVJ2.js +0 -4
  114. package/element/htkJ94ea2.js +0 -14
  115. package/element/j7EIoFjZ.js +0 -1
  116. package/element/qJYsRQFB.js +0 -1
  117. package/element/qbHuxVSe.js +0 -1
  118. package/element/styles.css +0 -288
  119. package/element/we0Hcb5C.js +0 -3
  120. package/element/x2Vs8ihf.js +0 -8
  121. package/umd/2SYk3iBo.js +0 -7
  122. package/umd/8nf23RYF2.js +0 -93
  123. package/umd/B2KTsK_w.js +0 -3
  124. package/umd/B5BVTFlf.js +0 -3
  125. package/umd/BCTYvPrD.js +0 -1
  126. package/umd/Be-K0dao.js +0 -9
  127. package/umd/BekfKWcG.js +0 -1
  128. package/umd/BiO2AH5s2.js +0 -8
  129. package/umd/BkIDQGIs.js +0 -1
  130. package/umd/Bki5T_lb.js +0 -1
  131. package/umd/BmCwXyo_2.js +0 -3
  132. package/umd/BnWKlftk2.js +0 -16
  133. package/umd/BqPEscWs2.js +0 -5
  134. package/umd/BsT0vqml.js +0 -1
  135. package/umd/BxeYKf-v2.js +0 -86
  136. package/umd/C0MGOytI.js +0 -1
  137. package/umd/C0vZ8zxT.js +0 -1
  138. package/umd/C6SiAA6Z2.js +0 -2
  139. package/umd/C9U01_vP2.js +0 -39
  140. package/umd/CAGYFwGT2.js +0 -4
  141. package/umd/CKk0UYyd.js +0 -1
  142. package/umd/CMQUiMWC2.js +0 -2
  143. package/umd/CbpHG7X52.js +0 -9
  144. package/umd/CfMNBPpx2.js +0 -1
  145. package/umd/CgE_bYp32.js +0 -37
  146. package/umd/Cko4QHwX.js +0 -1
  147. package/umd/D8Se70tP2.js +0 -3
  148. package/umd/DIYTs0k3.js +0 -10
  149. package/umd/DPmrTFJt.js +0 -2
  150. package/umd/DVO71jbn2.js +0 -3
  151. package/umd/DWbLshVZ.js +0 -2
  152. package/umd/DXrH_HhZ.js +0 -2
  153. package/umd/DYUfJm8F.js +0 -9
  154. package/umd/DibuO0dP.js +0 -1
  155. package/umd/LJWh_4Di.js +0 -2
  156. package/umd/O530RtWA.js +0 -1
  157. package/umd/WtQ5axEj.js +0 -41
  158. package/umd/fwDYCLiL.js +0 -1
  159. package/umd/hJxQiXVJ2.js +0 -4
  160. package/umd/htkJ94ea2.js +0 -14
  161. package/umd/index.d.ts +0 -14
  162. package/umd/j7EIoFjZ.js +0 -1
  163. package/umd/lVJD5cJY.js +0 -5
  164. package/umd/qJYsRQFB.js +0 -1
  165. package/umd/qbHuxVSe.js +0 -1
  166. package/umd/rtH8O6Hc.js +0 -1
  167. package/umd/u7SUQ9Kb2.js +0 -7
  168. package/umd/we0Hcb5C.js +0 -3
  169. package/umd/web.es.js +0 -125
  170. package/umd/web.umd.js +0 -1
  171. package/umd/wuONdFBI2.js +0 -8
  172. package/umd/x2Vs8ihf.js +0 -8
  173. /package/element/{CfMNBPpx2.js → CfMNBPpx.js} +0 -0
package/umd/qJYsRQFB.js DELETED
@@ -1 +0,0 @@
1
- import{T as t,p as i,t as e}from"./qbHuxVSe.js";import{m as s}from"./WtQ5axEj.js";import{t as n}from"./lVJD5cJY.js";import{t as o}from"./DPmrTFJt.js";import{t as a}from"./Bki5T_lb.js";var r=({url:r,alt:h="",thumbnailUrl:l,blurhash:p,pswpData:d={},curateLink:c,onClick:m})=>{const u=i(()=>(t=>Object.keys(t).reduce((i,e)=>{const s=t[e];return null==s||""===s||(i[`data-pswp-${n=e,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`]=s),i;var n},{}))(d),[d]),_=/* @__PURE__ */e(t,{children:[/* @__PURE__ */e(o,{threshold:.1,src:l||r,blurhash:p,alt:h}),d.type===s.VIDEO&&/* @__PURE__ */e("div",{className:"absolute inset-0 top-0 left-0 flex items-center justify-center opacity-75",children:/* @__PURE__ */e("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-16 text-white lg:w-24",viewBox:"0 0 24 24",children:/* @__PURE__ */e("path",{fill:"currentColor",d:"M8 17.175V6.825q0-.425.3-.713t.7-.287q.125 0 .263.037t.262.113l8.15 5.175q.225.15.338.375t.112.475t-.112.475t-.338.375l-8.15 5.175q-.125.075-.262.113T9 18.175q-.4 0-.7-.288t-.3-.712"})})})]});if(m)/* @__PURE__ */return e("button",{className:"h-full w-full",onClick:m,children:_});if(c)/* @__PURE__ */return e(n,{to:c,className:"h-full w-full",children:_});const g=r&&a(r,["http:","https:"])?r:void 0;return g?/* @__PURE__ */e("a",{href:g,className:"pswp-item block h-full w-full",...u,...l?{"data-pswp-thumbnail-url":l}:{},...p?{"data-pswp-blurhash":p}:{},target:"_blank",rel:"noreferrer",children:_}):/* @__PURE__ */e("span",{className:"pswp-item block h-full w-full",...u,...l?{"data-pswp-thumbnail-url":l}:{},...p?{"data-pswp-blurhash":p}:{},children:_})};function h(t,i,e){const s=document.createElement(i);return t&&(s.className=t),e&&e.appendChild(s),s}function l(t,i){return t.x=i.x,t.y=i.y,void 0!==i.id&&(t.id=i.id),t}function p(t){t.x=Math.round(t.x),t.y=Math.round(t.y)}function d(t,i){const e=Math.abs(t.x-i.x),s=Math.abs(t.y-i.y);return Math.sqrt(e*e+s*s)}function c(t,i){return t.x===i.x&&t.y===i.y}function m(t,i,e){return Math.min(Math.max(t,i),e)}function u(t,i,e){let s=`translate3d(${t}px,${i||0}px,0)`;return void 0!==e&&(s+=` scale3d(${e},${e},1)`),s}function _(t,i,e,s){t.style.transform=u(i,e,s)}function g(t,i,e,s){t.style.transition=i?`${i} ${e}ms ${s||"cubic-bezier(.4,0,.22,1)"}`:"none"}function v(t,i,e){t.style.width="number"==typeof i?`${i}px`:i,t.style.height="number"==typeof e?`${e}px`:e}var y="loading",w="loaded",f="error";function x(t){return"button"in t&&1===t.button||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey}function P(t,i,e=document){let s=[];if(t instanceof Element)s=[t];else if(t instanceof NodeList||Array.isArray(t))s=Array.from(t);else{const n="string"==typeof t?t:i;n&&(s=Array.from(e.querySelectorAll(n)))}return s}function S(){return!(!navigator.vendor||!navigator.vendor.match(/apple/i))}var b=class{constructor(t,i){if(this.element=h("pswp__img pswp__img--placeholder",t?"img":"div",i),t){const i=this.element;i.decoding="async",i.alt="",i.src=t,i.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(t,i){this.element&&("IMG"===this.element.tagName?(v(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=u(0,0,t/250)):v(this.element,t,i))}destroy(){this.element?.parentNode&&this.element.remove(),this.element=null}},C=class{constructor(t,i,e){this.instance=i,this.data=t,this.index=e,this.element=void 0,this.placeholder=void 0,this.slide=void 0,this.displayedImageWidth=0,this.displayedImageHeight=0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.isDecoding=!1,this.state="idle",this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.hash=this.data.hash,this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout(()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0)},1e3)}load(t,i){if(this.slide&&this.usePlaceholder())if(this.placeholder){const t=this.placeholder.element;t&&!t.parentElement&&this.slide.container.prepend(t)}else{const t=this.instance.applyFilters("placeholderSrc",!(!this.data.msrc||!this.slide.isFirstSlide)&&this.data.msrc,this);this.placeholder=new b(t,this.slide.container)}this.element&&!i||this.instance.dispatch("contentLoad",{content:this,isLazy:t}).defaultPrevented||(this.isImageContent()?(this.element=h("pswp__img","img"),this.displayedImageWidth&&this.loadImage(t)):(this.element=h("pswp__content","div"),this.element.innerHTML=this.data.html||""),i&&this.slide&&this.slide.updateContentSize(!0))}loadImage(t){if(!this.isImageContent()||!this.element||this.instance.dispatch("contentLoadImage",{content:this,isLazy:t}).defaultPrevented)return;const i=this.element;this.updateSrcsetSizes(),this.data.srcset&&(i.srcset=this.data.srcset),i.src=this.data.src??"",i.alt=this.data.alt??"",this.state=y,i.complete?this.onLoaded():(i.onload=()=>{this.onLoaded()},i.onerror=()=>{this.onError()})}setSlide(t){this.slide=t,this.hasSlide=!0,this.instance=t.pswp}onLoaded(){this.state=w,this.slide&&this.element&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.append(),this.slide.updateContentSize(!0)),this.state!==w&&this.state!==f||this.removePlaceholder())}onError(){this.state=f,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===y,this)}isError(){return this.state===f}isImageContent(){return"image"===this.type||"ad"===this.type}setDisplayedSize(t,i){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(t,i),!this.instance.dispatch("contentResize",{content:this,width:t,height:i}).defaultPrevented&&(v(this.element,t,i),this.isImageContent()&&!this.isError()))){const e=!this.displayedImageWidth&&t;this.displayedImageWidth=t,this.displayedImageHeight=i,e?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:t,height:i,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==f,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return;const t=this.element,i=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!t.dataset.largestUsedSize||i>parseInt(t.dataset.largestUsedSize,10))&&(t.sizes=`${i}px`,t.dataset.largestUsedSize=String(i))}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=void 0,this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented||(this.remove(),this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=void 0))}displayError(){if(this.slide){let t=h("pswp__error-msg","div");t.innerText=this.instance.options?.errorMsg??"",t=this.instance.applyFilters("contentErrorElement",t,this),this.element=h("pswp__content pswp__error-msg-container","div"),this.element.appendChild(t),this.slide.container.innerText="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){if(this.isAttached||!this.element)return;if(this.isAttached=!0,this.state===f)return void this.displayError();if(this.instance.dispatch("contentAppend",{content:this}).defaultPrevented)return;const t="decode"in this.element;this.isImageContent()?t&&this.slide&&(!this.slide.isActive||S())?(this.isDecoding=!0,this.element.decode().catch(()=>{}).finally(()=>{this.isDecoding=!1,this.appendImage()})):this.appendImage():this.slide&&!this.element.parentNode&&this.slide.container.appendChild(this.element)}activate(){!this.instance.dispatch("contentActivate",{content:this}).defaultPrevented&&this.slide&&(this.isImageContent()&&this.isDecoding&&!S()?this.appendImage():this.isError()&&this.load(!1,!0),this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","false"))}deactivate(){this.instance.dispatch("contentDeactivate",{content:this}),this.slide&&this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","true")}remove(){this.isAttached=!1,this.instance.dispatch("contentRemove",{content:this}).defaultPrevented||(this.element&&this.element.parentNode&&this.element.remove(),this.placeholder&&this.placeholder.element&&this.placeholder.element.remove())}appendImage(){this.isAttached&&(this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||(this.slide&&this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element),this.state!==w&&this.state!==f||this.removePlaceholder()))}};function L(t,i){if(t.getViewportSizeFn){const e=t.getViewportSizeFn(t,i);if(e)return e}return{x:document.documentElement.clientWidth,y:window.innerHeight}}function z(t,i,e,s,n){let o=0;if(i.paddingFn)o=i.paddingFn(e,s,n)[t];else if(i.padding)o=i.padding[t];else{const e=`padding${t[0].toUpperCase()}${t.slice(1)}`;i[e]&&(o=i[e])}return Number(o)||0}function I(t,i,e,s){return{x:i.x-z("left",t,i,e,s)-z("right",t,i,e,s),y:i.y-z("top",t,i,e,s)-z("bottom",t,i,e,s)}}var A=class{constructor(t,i,e,s){this.pswp=s,this.options=t,this.itemData=i,this.index=e,this.panAreaSize=null,this.elementSize=null,this.fit=1,this.fill=1,this.vFill=1,this.initial=1,this.secondary=1,this.max=1,this.min=1}update(t,i,e){const s={x:t,y:i};this.elementSize=s,this.panAreaSize=e;const n=e.x/s.x,o=e.y/s.y;this.fit=Math.min(1,n<o?n:o),this.fill=Math.min(1,n>o?n:o),this.vFill=Math.min(1,o),this.initial=this._getInitial(),this.secondary=this._getSecondary(),this.max=Math.max(this.initial,this.secondary,this._getMax()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}_parseZoomLevelOption(t){const i=`${t}ZoomLevel`,e=this.options[i];if(e)return"function"==typeof e?e(this):"fill"===e?this.fill:"fit"===e?this.fit:Number(e)}_getSecondary(){let t=this._parseZoomLevelOption("secondary");return t||(t=Math.min(1,3*this.fit),this.elementSize&&t*this.elementSize.x>4e3&&(t=4e3/this.elementSize.x),t)}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){return this._parseZoomLevelOption("max")||Math.max(1,4*this.fit)}};function T(t,i,e){const s=i.createContentFromData(t,e);let n;const{options:o}=i;if(o){let a;n=new A(o,t,-1),a=i.pswp?i.pswp.viewportSize:L(o,i);const r=I(o,a,t,e);n.update(s.width,s.height,r)}return s.lazyLoad(),n&&s.setDisplayedSize(Math.ceil(s.width*n.initial),Math.ceil(s.height*n.initial)),s}function Z(t,i){const e=i.getItemData(t);if(!i.dispatch("lazyLoadSlide",{index:t,itemData:e}).defaultPrevented)return T(e,i,t)}var O=class{constructor(t){this.pswp=t,this.limit=Math.max(t.options.preload[0]+t.options.preload[1]+1,5),this._cachedItems=[]}updateLazy(t){const{pswp:i}=this;if(i.dispatch("lazyLoad").defaultPrevented)return;const{preload:e}=i.options,s=void 0===t||t>=0;let n;for(n=0;n<=e[1];n++)this.loadSlideByIndex(i.currIndex+(s?n:-n));for(n=1;n<=e[0];n++)this.loadSlideByIndex(i.currIndex+(s?-n:n))}loadSlideByIndex(t){const i=this.pswp.getLoopedIndex(t);let e=this.getContentByIndex(i);e||(e=Z(i,this.pswp),e&&this.addToCache(e))}getContentBySlide(t){let i=this.getContentByIndex(t.index);return i||(i=this.pswp.createContentFromData(t.data,t.index),this.addToCache(i)),i.setSlide(t),i}addToCache(t){if(this.removeByIndex(t.index),this._cachedItems.push(t),this._cachedItems.length>this.limit){const t=this._cachedItems.findIndex(t=>!t.isAttached&&!t.hasSlide);-1!==t&&this._cachedItems.splice(t,1)[0].destroy()}}removeByIndex(t){const i=this._cachedItems.findIndex(i=>i.index===t);-1!==i&&this._cachedItems.splice(i,1)}getContentByIndex(t){return this._cachedItems.find(i=>i.index===t)}destroy(){this._cachedItems.forEach(t=>t.destroy()),this._cachedItems=[]}},E=class{constructor(t,i){this.type=t,this.defaultPrevented=!1,i&&Object.assign(this,i)}preventDefault(){this.defaultPrevented=!0}},D=class{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(t,i,e=100){this._filters[t]||(this._filters[t]=[]),this._filters[t]?.push({fn:i,priority:e}),this._filters[t]?.sort((t,i)=>t.priority-i.priority),this.pswp?.addFilter(t,i,e)}removeFilter(t,i){this._filters[t]&&(this._filters[t]=this._filters[t].filter(t=>t.fn!==i)),this.pswp&&this.pswp.removeFilter(t,i)}applyFilters(t,...i){return this._filters[t]?.forEach(t=>{i[0]=t.fn.apply(this,i)}),i[0]}on(t,i){this._listeners[t]||(this._listeners[t]=[]),this._listeners[t]?.push(i),this.pswp?.on(t,i)}off(t,i){this._listeners[t]&&(this._listeners[t]=this._listeners[t].filter(t=>i!==t)),this.pswp?.off(t,i)}dispatch(t,i){if(this.pswp)return this.pswp.dispatch(t,i);const e=new E(t,i);return this._listeners[t]?.forEach(t=>{t.call(this,e)}),e}},M=class extends D{getNumItems(){let t=0;const i=this.options?.dataSource;i&&"length"in i?t=i.length:i&&"gallery"in i&&(i.items||(i.items=this._getGalleryDOMElements(i.gallery)),i.items&&(t=i.items.length));const e=this.dispatch("numItems",{dataSource:i,numItems:t});return this.applyFilters("numItems",e.numItems,i)}createContentFromData(t,i){return new C(t,this,i)}getItemData(t){const i=this.options?.dataSource;let e={};Array.isArray(i)?e=i[t]:i&&"gallery"in i&&(i.items||(i.items=this._getGalleryDOMElements(i.gallery)),e=i.items[t]);let s=e;s instanceof Element&&(s=this._domElementToItemData(s));const n=this.dispatch("itemData",{itemData:s||{},index:t});return this.applyFilters("itemData",n.itemData,t)}_getGalleryDOMElements(t){return this.options?.children||this.options?.childSelector?P(this.options.children,this.options.childSelector,t)||[]:[t]}_toLowerCaseFirstLetter(t){return t?t.charAt(0).toLowerCase()+t.slice(1):t}_domElementToItemData(t){const i={element:t},e="A"===t.tagName?t:t.querySelector("a");if(e){i.src=e.dataset.pswpSrc||e.href,e.dataset.pswpSrcset&&(i.srcset=e.dataset.pswpSrcset),i.width=e.dataset.pswpWidth?parseInt(e.dataset.pswpWidth,10):0,i.height=e.dataset.pswpHeight?parseInt(e.dataset.pswpHeight,10):0,e.dataset.pswpType&&(i.type=e.dataset.pswpType.toLowerCase());const s=t.querySelector("img");s&&(i.msrc=s.currentSrc||s.src,i.alt=s.getAttribute("alt")??""),(e.dataset.pswpCropped||e.dataset.cropped)&&(i.thumbCropped=!0);const n=["element","src","srcset","width","height","type","msrc","alt","thumbCropped"];Object.keys(e.dataset).filter(t=>t.startsWith("pswp")&&!n.includes(this._toLowerCaseFirstLetter(t.slice(4)))).forEach(t=>{i[this._toLowerCaseFirstLetter(t.slice(4))]=e.dataset[t]})}return this.applyFilters("domItemData",i,t,e)}lazyLoadData(t,i){return T(t,this,i)}},F=class extends M{constructor(t){super(),this.options=t||{},this._uid=0,this.shouldOpen=!1,this._preloadedContent=void 0,this.onThumbnailsClick=this.onThumbnailsClick.bind(this)}init(){P(this.options.gallery,this.options.gallerySelector).forEach(t=>{t.addEventListener("click",this.onThumbnailsClick,!1)})}onThumbnailsClick(t){if(x(t)||window.pswp)return;let i={x:t.clientX,y:t.clientY};i.x||i.y||(i=null);let e=this.getClickedIndex(t);e=this.applyFilters("clickedIndex",e,t,this);const s={gallery:t.currentTarget};e>=0&&(t.preventDefault(),this.loadAndOpen(e,s,i))}getClickedIndex(t){if(this.options.getClickedIndexFn)return this.options.getClickedIndexFn.call(this,t);const i=t.target,e=P(this.options.children,this.options.childSelector,t.currentTarget).findIndex(t=>t===i||t.contains(i));return-1!==e?e:this.options.children||this.options.childSelector?-1:0}loadAndOpen(t,i,e){if(window.pswp||!this.options)return!1;if(!i&&this.options.gallery&&this.options.children){const t=P(this.options.gallery);t[0]&&(i={gallery:t[0]})}return this.options.index=t,this.options.initialPointerPos=e,this.shouldOpen=!0,this.preload(t,i),!0}preload(t,i){const{options:e}=this;i&&(e.dataSource=i);const s=[],n=typeof e.pswpModule;if("function"==typeof(o=e.pswpModule)&&o.prototype&&o.prototype.goTo)s.push(Promise.resolve(e.pswpModule));else{if("string"===n)throw new Error("pswpModule as string is no longer supported");if("function"!==n)throw new Error("pswpModule is not valid");s.push(e.pswpModule())}var o;"function"==typeof e.openPromise&&s.push(e.openPromise()),!1!==e.preloadFirstSlide&&t>=0&&(this._preloadedContent=Z(t,this));const a=++this._uid;Promise.all(s).then(t=>{if(this.shouldOpen){const i=t[0];this._openPhotoswipe(i,a)}})}_openPhotoswipe(t,i){if(i!==this._uid&&this.shouldOpen)return;if(this.shouldOpen=!1,window.pswp)return;const e="object"==typeof t?new t.default(this.options):new t(this.options);this.pswp=e,window.pswp=e,Object.keys(this._listeners).forEach(t=>{this._listeners[t]?.forEach(i=>{e.on(t,i)})}),Object.keys(this._filters).forEach(t=>{this._filters[t]?.forEach(i=>{e.addFilter(t,i.fn,i.priority)})}),this._preloadedContent&&(e.contentLoader.addToCache(this._preloadedContent),this._preloadedContent=void 0),e.on("destroy",()=>{this.pswp=void 0,delete window.pswp}),e.init()}destroy(){this.pswp?.destroy(),this.shouldOpen=!1,this._listeners={},P(this.options.gallery,this.options.gallerySelector).forEach(t=>{t.removeEventListener("click",this.onThumbnailsClick,!1)})}},B=class{constructor(t){this.gestures=t,this.pswp=t.pswp,this.startPan={x:0,y:0}}start(){this.pswp.currSlide&&l(this.startPan,this.pswp.currSlide.pan),this.pswp.animations.stopAll()}change(){const{p1:t,prevP1:i,dragAxis:e}=this.gestures,{currSlide:s}=this.pswp;if("y"===e&&this.pswp.options.closeOnVerticalDrag&&s&&s.currZoomLevel<=s.zoomLevels.fit&&!this.gestures.isMultitouch){const e=s.pan.y+(t.y-i.y);if(!this.pswp.dispatch("verticalDrag",{panY:e}).defaultPrevented){this._setPanWithFriction("y",e,.6);const t=1-Math.abs(this._getVerticalDragRatio(s.pan.y));this.pswp.applyBgOpacity(t),s.applyCurrentZoomPan()}}else this._panOrMoveMainScroll("x")||(this._panOrMoveMainScroll("y"),s&&(p(s.pan),s.applyCurrentZoomPan()))}end(){const{velocity:t}=this.gestures,{mainScroll:i,currSlide:e}=this.pswp;let s=0;if(this.pswp.animations.stopAll(),i.isShifted()){const e=(i.x-i.getCurrSlideX())/this.pswp.viewportSize.x;t.x<-.5&&e<0||t.x<.1&&e<-.5?(s=1,t.x=Math.min(t.x,0)):(t.x>.5&&e>0||t.x>-.1&&e>.5)&&(s=-1,t.x=Math.max(t.x,0)),i.moveIndexBy(s,!0,t.x,!0)}e&&e.currZoomLevel>e.zoomLevels.max||this.gestures.isMultitouch?this.gestures.zoomLevels.correctZoomPan(!0):(this._finishPanGestureForAxis("x"),this._finishPanGestureForAxis("y"))}_finishPanGestureForAxis(t){const{velocity:i}=this.gestures,{currSlide:e}=this.pswp;if(!e)return;const{pan:s,bounds:n}=e,o=s[t],a=this.pswp.bgOpacity<1&&"y"===t,r=o+i[t]*.995/(1-.995);if(a){const t=this._getVerticalDragRatio(o),i=this._getVerticalDragRatio(r);if(t<0&&i<-.4||t>0&&i>.4)return void this.pswp.close()}const h=n.correctPan(t,r);if(o===h)return;const l=h===r?1:.82,p=this.pswp.bgOpacity,d=h-o;this.pswp.animations.startSpring({name:`panGesture${t}`,isPan:!0,start:o,end:h,velocity:i[t],dampingRatio:l,onUpdate:i=>{if(a&&this.pswp.bgOpacity<1){const t=1-(h-i)/d;this.pswp.applyBgOpacity(m(p+(1-p)*t,0,1))}s[t]=Math.floor(i),e.applyCurrentZoomPan()}})}_panOrMoveMainScroll(t){const{p1:i,dragAxis:e,prevP1:s,isMultitouch:n}=this.gestures,{currSlide:o,mainScroll:a}=this.pswp,r=i[t]-s[t],h=a.x+r;if(!r||!o)return!1;if("x"===t&&!o.isPannable()&&!n)return a.moveTo(h,!0),!0;const{bounds:l}=o,p=o.pan[t]+r;if(this.pswp.options.allowPanToNext&&"x"===e&&"x"===t&&!n){const i=a.getCurrSlideX(),e=a.x-i,s=r>0,n=!s;if(p>l.min[t]&&s){if(l.min[t]<=this.startPan[t])return a.moveTo(h,!0),!0;this._setPanWithFriction(t,p)}else if(p<l.max[t]&&n){if(this.startPan[t]<=l.max[t])return a.moveTo(h,!0),!0;this._setPanWithFriction(t,p)}else if(0!==e){if(e>0)return a.moveTo(Math.max(h,i),!0),!0;if(e<0)return a.moveTo(Math.min(h,i),!0),!0}else this._setPanWithFriction(t,p)}else"y"===t&&(a.isShifted()||l.min.y===l.max.y)||this._setPanWithFriction(t,p);return!1}_getVerticalDragRatio(t){return(t-(this.pswp.currSlide?.bounds.center.y??0))/(this.pswp.viewportSize.y/3)}_setPanWithFriction(t,i,e){const{currSlide:s}=this.pswp;if(!s)return;const{pan:n,bounds:o}=s;if(o.correctPan(t,i)!==i||e){const s=Math.round(i-n[t]);n[t]+=s*(e||.35)}else n[t]=i}};function k(t){return!!t.target.closest(".pswp__container")}var R=class{constructor(t){this.gestures=t}click(t,i){const e=i.target.classList,s=e.contains("pswp__img"),n=e.contains("pswp__item")||e.contains("pswp__zoom-wrap");s?this._doClickOrTapAction("imageClick",t,i):n&&this._doClickOrTapAction("bgClick",t,i)}tap(t,i){k(i)&&this._doClickOrTapAction("tap",t,i)}doubleTap(t,i){k(i)&&this._doClickOrTapAction("doubleTap",t,i)}_doClickOrTapAction(t,i,e){const{pswp:s}=this.gestures,{currSlide:n}=s,o=`${t}Action`,a=s.options[o];if(!s.dispatch(o,{point:i,originalEvent:e}).defaultPrevented)if("function"!=typeof a)switch(a){case"close":case"next":s[a]();break;case"zoom":n?.toggleZoom(i);break;case"zoom-or-close":n?.isZoomable()&&n.zoomLevels.secondary!==n.zoomLevels.initial?n.toggleZoom(i):s.options.clickToCloseNonZoomable&&s.close();break;case"toggle-controls":this.gestures.pswp.element?.classList.toggle("pswp--ui-visible")}else a.call(s,i,e)}};function H(t,i,e){return t.x=(i.x+e.x)/2,t.y=(i.y+e.y)/2,t}var N=class{constructor(t){this.gestures=t,this._startPan={x:0,y:0},this._startZoomPoint={x:0,y:0},this._zoomPoint={x:0,y:0},this._wasOverFitZoomLevel=!1,this._startZoomLevel=1}start(){const{currSlide:t}=this.gestures.pswp;t&&(this._startZoomLevel=t.currZoomLevel,l(this._startPan,t.pan)),this.gestures.pswp.animations.stopAllPan(),this._wasOverFitZoomLevel=!1}change(){const{p1:t,startP1:i,p2:e,startP2:s,pswp:n}=this.gestures,{currSlide:o}=n;if(!o)return;const a=o.zoomLevels.min,r=o.zoomLevels.max;if(!o.isZoomable()||n.mainScroll.isShifted())return;H(this._startZoomPoint,i,s),H(this._zoomPoint,t,e);let h=1/d(i,s)*d(t,e)*this._startZoomLevel;if(h>o.zoomLevels.initial+o.zoomLevels.initial/15&&(this._wasOverFitZoomLevel=!0),h<a)if(n.options.pinchToClose&&!this._wasOverFitZoomLevel&&this._startZoomLevel<=o.zoomLevels.initial){const t=1-(a-h)/(a/1.2);n.dispatch("pinchClose",{bgOpacity:t}).defaultPrevented||n.applyBgOpacity(t)}else h=a-.15*(a-h);else h>r&&(h=r+.05*(h-r));o.pan.x=this._calculatePanForZoomLevel("x",h),o.pan.y=this._calculatePanForZoomLevel("y",h),o.setZoomLevel(h),o.applyCurrentZoomPan()}end(){const{pswp:t}=this.gestures,{currSlide:i}=t;(!i||i.currZoomLevel<i.zoomLevels.initial)&&!this._wasOverFitZoomLevel&&t.options.pinchToClose?t.close():this.correctZoomPan()}_calculatePanForZoomLevel(t,i){const e=i/this._startZoomLevel;return this._zoomPoint[t]-(this._startZoomPoint[t]-this._startPan[t])*e}correctZoomPan(t){const{pswp:i}=this.gestures,{currSlide:e}=i;if(!e?.isZoomable())return;0===this._zoomPoint.x&&(t=!0);const s=e.currZoomLevel;let n,o=!0;s<e.zoomLevels.initial?n=e.zoomLevels.initial:s>e.zoomLevels.max?n=e.zoomLevels.max:(o=!1,n=s);const a=i.bgOpacity,r=i.bgOpacity<1,h=l({x:0,y:0},e.pan);let p=l({x:0,y:0},h);t&&(this._zoomPoint.x=0,this._zoomPoint.y=0,this._startZoomPoint.x=0,this._startZoomPoint.y=0,this._startZoomLevel=s,l(this._startPan,h)),o&&(p={x:this._calculatePanForZoomLevel("x",n),y:this._calculatePanForZoomLevel("y",n)}),e.setZoomLevel(n),p={x:e.bounds.correctPan("x",p.x),y:e.bounds.correctPan("y",p.y)},e.setZoomLevel(s);const d=!c(p,h);if(!d&&!o&&!r)return e._setResolution(n),void e.applyCurrentZoomPan();i.animations.stopAllPan(),i.animations.startSpring({isPan:!0,start:0,end:1e3,velocity:0,dampingRatio:1,naturalFrequency:40,onUpdate:t=>{if(t/=1e3,d||o){if(d&&(e.pan.x=h.x+(p.x-h.x)*t,e.pan.y=h.y+(p.y-h.y)*t),o){const i=s+(n-s)*t;e.setZoomLevel(i)}e.applyCurrentZoomPan()}r&&i.bgOpacity<1&&i.applyBgOpacity(m(a+(1-a)*t,0,1))},onComplete:()=>{e._setResolution(n),e.applyCurrentZoomPan()}})}},W=class{constructor(t){this.pswp=t,this.dragAxis=null,this.p1={x:0,y:0},this.p2={x:0,y:0},this.prevP1={x:0,y:0},this.prevP2={x:0,y:0},this.startP1={x:0,y:0},this.startP2={x:0,y:0},this.velocity={x:0,y:0},this._lastStartP1={x:0,y:0},this._intervalP1={x:0,y:0},this._numActivePoints=0,this._ongoingPointers=[],this._touchEventEnabled="ontouchstart"in window,this._pointerEventEnabled=!!window.PointerEvent,this.supportsTouch=this._touchEventEnabled||this._pointerEventEnabled&&navigator.maxTouchPoints>1,this._numActivePoints=0,this._intervalTime=0,this._velocityCalculated=!1,this.isMultitouch=!1,this.isDragging=!1,this.isZooming=!1,this.raf=null,this._tapTimer=null,this.supportsTouch||(t.options.allowPanToNext=!1),this.drag=new B(this),this.zoomLevels=new N(this),this.tapHandler=new R(this),t.on("bindEvents",()=>{t.events.add(t.scrollWrap,"click",this._onClick.bind(this)),this._pointerEventEnabled?this._bindEvents("pointer","down","up","cancel"):this._touchEventEnabled?(this._bindEvents("touch","start","end","cancel"),t.scrollWrap&&(t.scrollWrap.ontouchmove=()=>{},t.scrollWrap.ontouchend=()=>{})):this._bindEvents("mouse","down","up")})}_bindEvents(t,i,e,s){const{pswp:n}=this,{events:o}=n,a=s?t+s:"";o.add(n.scrollWrap,t+i,this.onPointerDown.bind(this)),o.add(window,`${t}move`,this.onPointerMove.bind(this)),o.add(window,t+e,this.onPointerUp.bind(this)),a&&o.add(n.scrollWrap,a,this.onPointerUp.bind(this))}onPointerDown(t){const i="mousedown"===t.type||"mouse"===t.pointerType;if(i&&t.button>0)return;const{pswp:e}=this;e.opener.isOpen?e.dispatch("pointerDown",{originalEvent:t}).defaultPrevented||(i&&(e.mouseDetected(),this._preventPointerEventBehaviour(t,"down")),e.animations.stopAll(),this._updatePoints(t,"down"),1===this._numActivePoints&&(this.dragAxis=null,l(this.startP1,this.p1)),this._numActivePoints>1?(this._clearTapTimer(),this.isMultitouch=!0):this.isMultitouch=!1):t.preventDefault()}onPointerMove(t){this._preventPointerEventBehaviour(t,"move"),this._numActivePoints&&(this._updatePoints(t,"move"),this.pswp.dispatch("pointerMove",{originalEvent:t}).defaultPrevented||(1!==this._numActivePoints||this.isDragging?this._numActivePoints>1&&!this.isZooming&&(this._finishDrag(),this.isZooming=!0,this._updateStartPoints(),this.zoomLevels.start(),this._rafStopLoop(),this._rafRenderLoop()):(this.dragAxis||this._calculateDragDirection(),this.dragAxis&&!this.isDragging&&(this.isZooming&&(this.isZooming=!1,this.zoomLevels.end()),this.isDragging=!0,this._clearTapTimer(),this._updateStartPoints(),this._intervalTime=Date.now(),this._velocityCalculated=!1,l(this._intervalP1,this.p1),this.velocity.x=0,this.velocity.y=0,this.drag.start(),this._rafStopLoop(),this._rafRenderLoop()))))}_finishDrag(){this.isDragging&&(this.isDragging=!1,this._velocityCalculated||this._updateVelocity(!0),this.drag.end(),this.dragAxis=null)}onPointerUp(t){this._numActivePoints&&(this._updatePoints(t,"up"),this.pswp.dispatch("pointerUp",{originalEvent:t}).defaultPrevented||(0===this._numActivePoints&&(this._rafStopLoop(),this.isDragging?this._finishDrag():this.isZooming||this.isMultitouch||this._finishTap(t)),this._numActivePoints<2&&this.isZooming&&(this.isZooming=!1,this.zoomLevels.end(),1===this._numActivePoints&&(this.dragAxis=null,this._updateStartPoints()))))}_rafRenderLoop(){(this.isDragging||this.isZooming)&&(this._updateVelocity(),this.isDragging?c(this.p1,this.prevP1)||this.drag.change():c(this.p1,this.prevP1)&&c(this.p2,this.prevP2)||this.zoomLevels.change(),this._updatePrevPoints(),this.raf=requestAnimationFrame(this._rafRenderLoop.bind(this)))}_updateVelocity(t){const i=Date.now(),e=i-this._intervalTime;e<50&&!t||(this.velocity.x=this._getVelocity("x",e),this.velocity.y=this._getVelocity("y",e),this._intervalTime=i,l(this._intervalP1,this.p1),this._velocityCalculated=!0)}_finishTap(t){const{mainScroll:i}=this.pswp;if(i.isShifted())return void i.moveIndexBy(0,!0);if(t.type.indexOf("cancel")>0)return;if("mouseup"===t.type||"mouse"===t.pointerType)return void this.tapHandler.click(this.startP1,t);const e=this.pswp.options.doubleTapAction?300:0;this._tapTimer?(this._clearTapTimer(),d(this._lastStartP1,this.startP1)<25&&this.tapHandler.doubleTap(this.startP1,t)):(l(this._lastStartP1,this.startP1),this._tapTimer=setTimeout(()=>{this.tapHandler.tap(this.startP1,t),this._clearTapTimer()},e))}_clearTapTimer(){this._tapTimer&&(clearTimeout(this._tapTimer),this._tapTimer=null)}_getVelocity(t,i){const e=this.p1[t]-this._intervalP1[t];return Math.abs(e)>1&&i>5?e/i:0}_rafStopLoop(){this.raf&&(cancelAnimationFrame(this.raf),this.raf=null)}_preventPointerEventBehaviour(t,i){this.pswp.applyFilters("preventPointerEvent",!0,t,i)&&t.preventDefault()}_updatePoints(t,i){if(this._pointerEventEnabled){const e=t,s=this._ongoingPointers.findIndex(t=>t.id===e.pointerId);"up"===i&&s>-1?this._ongoingPointers.splice(s,1):"down"===i&&-1===s?this._ongoingPointers.push(this._convertEventPosToPoint(e,{x:0,y:0})):s>-1&&this._convertEventPosToPoint(e,this._ongoingPointers[s]),this._numActivePoints=this._ongoingPointers.length,this._numActivePoints>0&&l(this.p1,this._ongoingPointers[0]),this._numActivePoints>1&&l(this.p2,this._ongoingPointers[1])}else{const e=t;this._numActivePoints=0,e.type.indexOf("touch")>-1?e.touches&&e.touches.length>0&&(this._convertEventPosToPoint(e.touches[0],this.p1),this._numActivePoints++,e.touches.length>1&&(this._convertEventPosToPoint(e.touches[1],this.p2),this._numActivePoints++)):(this._convertEventPosToPoint(t,this.p1),"up"===i?this._numActivePoints=0:this._numActivePoints++)}}_updatePrevPoints(){l(this.prevP1,this.p1),l(this.prevP2,this.p2)}_updateStartPoints(){l(this.startP1,this.p1),l(this.startP2,this.p2),this._updatePrevPoints()}_calculateDragDirection(){if(this.pswp.mainScroll.isShifted())this.dragAxis="x";else{const t=Math.abs(this.p1.x-this.startP1.x)-Math.abs(this.p1.y-this.startP1.y);if(0!==t){const i=t>0?"x":"y";Math.abs(this.p1[i]-this.startP1[i])>=10&&(this.dragAxis=i)}}}_convertEventPosToPoint(t,i){return i.x=t.pageX-this.pswp.offset.x,i.y=t.pageY-this.pswp.offset.y,"pointerId"in t?i.id=t.pointerId:void 0!==t.identifier&&(i.id=t.identifier),i}_onClick(t){this.pswp.mainScroll.isShifted()&&(t.preventDefault(),t.stopPropagation())}},V=class{constructor(t){this.slide=t,this.currZoomLevel=1,this.center={x:0,y:0},this.max={x:0,y:0},this.min={x:0,y:0}}update(t){this.currZoomLevel=t,this.slide.width?(this._updateAxis("x"),this._updateAxis("y"),this.slide.pswp.dispatch("calcBounds",{slide:this.slide})):this.reset()}_updateAxis(t){const{pswp:i}=this.slide,e=this.slide["x"===t?"width":"height"]*this.currZoomLevel,s=z("x"===t?"left":"top",i.options,i.viewportSize,this.slide.data,this.slide.index),n=this.slide.panAreaSize[t];this.center[t]=Math.round((n-e)/2)+s,this.max[t]=e>n?Math.round(n-e)+s:this.center[t],this.min[t]=e>n?s:this.center[t]}reset(){this.center.x=0,this.center.y=0,this.max.x=0,this.max.y=0,this.min.x=0,this.min.y=0}correctPan(t,i){return m(i,this.max[t],this.min[t])}},q=class{constructor(t,i,e){this.data=t,this.index=i,this.pswp=e,this.isActive=i===e.currIndex,this.currentResolution=0,this.panAreaSize={x:0,y:0},this.pan={x:0,y:0},this.isFirstSlide=this.isActive&&!e.opener.isOpen,this.zoomLevels=new A(e.options,t,i,e),this.pswp.dispatch("gettingData",{slide:this,data:this.data,index:i}),this.content=this.pswp.contentLoader.getContentBySlide(this),this.container=h("pswp__zoom-wrap","div"),this.holderElement=null,this.currZoomLevel=1,this.width=this.content.width,this.height=this.content.height,this.heavyAppended=!1,this.bounds=new V(this),this.prevDisplayedWidth=-1,this.prevDisplayedHeight=-1,this.pswp.dispatch("slideInit",{slide:this})}setIsActive(t){t&&!this.isActive?this.activate():!t&&this.isActive&&this.deactivate()}append(t){this.holderElement=t,this.container.style.transformOrigin="0 0",this.data&&(this.calculateSize(),this.load(),this.updateContentSize(),this.appendHeavy(),this.holderElement.appendChild(this.container),this.zoomAndPanToInitial(),this.pswp.dispatch("firstZoomPan",{slide:this}),this.applyCurrentZoomPan(),this.pswp.dispatch("afterSetContent",{slide:this}),this.isActive&&this.activate())}load(){this.content.load(!1),this.pswp.dispatch("slideLoad",{slide:this})}appendHeavy(){const{pswp:t}=this;!this.heavyAppended&&t.opener.isOpen&&!t.mainScroll.isShifted()&&(this.isActive,1)&&(this.pswp.dispatch("appendHeavy",{slide:this}).defaultPrevented||(this.heavyAppended=!0,this.content.append(),this.pswp.dispatch("appendHeavyContent",{slide:this})))}activate(){this.isActive=!0,this.appendHeavy(),this.content.activate(),this.pswp.dispatch("slideActivate",{slide:this})}deactivate(){this.isActive=!1,this.content.deactivate(),this.currZoomLevel!==this.zoomLevels.initial&&this.calculateSize(),this.currentResolution=0,this.zoomAndPanToInitial(),this.applyCurrentZoomPan(),this.updateContentSize(),this.pswp.dispatch("slideDeactivate",{slide:this})}destroy(){this.content.hasSlide=!1,this.content.remove(),this.container.remove(),this.pswp.dispatch("slideDestroy",{slide:this})}resize(){this.currZoomLevel!==this.zoomLevels.initial&&this.isActive?(this.calculateSize(),this.bounds.update(this.currZoomLevel),this.panTo(this.pan.x,this.pan.y)):(this.calculateSize(),this.currentResolution=0,this.zoomAndPanToInitial(),this.applyCurrentZoomPan(),this.updateContentSize())}updateContentSize(t){const i=this.currentResolution||this.zoomLevels.initial;if(!i)return;const e=Math.round(this.width*i)||this.pswp.viewportSize.x,s=Math.round(this.height*i)||this.pswp.viewportSize.y;(this.sizeChanged(e,s)||t)&&this.content.setDisplayedSize(e,s)}sizeChanged(t,i){return(t!==this.prevDisplayedWidth||i!==this.prevDisplayedHeight)&&(this.prevDisplayedWidth=t,this.prevDisplayedHeight=i,!0)}getPlaceholderElement(){return this.content.placeholder?.element}zoomTo(t,i,e,s){const{pswp:n}=this;if(!this.isZoomable()||n.mainScroll.isShifted())return;n.dispatch("beforeZoomTo",{destZoomLevel:t,centerPoint:i,transitionDuration:e}),n.animations.stopAllPan();const o=this.currZoomLevel;s||(t=m(t,this.zoomLevels.min,this.zoomLevels.max)),this.setZoomLevel(t),this.pan.x=this.calculateZoomToPanOffset("x",i,o),this.pan.y=this.calculateZoomToPanOffset("y",i,o),p(this.pan);const a=()=>{this._setResolution(t),this.applyCurrentZoomPan()};e?n.animations.startTransition({isPan:!0,name:"zoomTo",target:this.container,transform:this.getCurrentTransform(),onComplete:a,duration:e,easing:n.options.easing}):a()}toggleZoom(t){this.zoomTo(this.currZoomLevel===this.zoomLevels.initial?this.zoomLevels.secondary:this.zoomLevels.initial,t,this.pswp.options.zoomAnimationDuration)}setZoomLevel(t){this.currZoomLevel=t,this.bounds.update(this.currZoomLevel)}calculateZoomToPanOffset(t,i,e){if(this.bounds.max[t]-this.bounds.min[t]===0)return this.bounds.center[t];i||(i=this.pswp.getViewportCenterPoint()),e||(e=this.zoomLevels.initial);const s=this.currZoomLevel/e;return this.bounds.correctPan(t,(this.pan[t]-i[t])*s+i[t])}panTo(t,i){this.pan.x=this.bounds.correctPan("x",t),this.pan.y=this.bounds.correctPan("y",i),this.applyCurrentZoomPan()}isPannable(){return Boolean(this.width)&&this.currZoomLevel>this.zoomLevels.fit}isZoomable(){return Boolean(this.width)&&this.content.isZoomable()}applyCurrentZoomPan(){this._applyZoomTransform(this.pan.x,this.pan.y,this.currZoomLevel),this===this.pswp.currSlide&&this.pswp.dispatch("zoomPanUpdate",{slide:this})}zoomAndPanToInitial(){this.currZoomLevel=this.zoomLevels.initial,this.bounds.update(this.currZoomLevel),l(this.pan,this.bounds.center),this.pswp.dispatch("initialZoomPan",{slide:this})}_applyZoomTransform(t,i,e){e/=this.currentResolution||this.zoomLevels.initial,_(this.container,t,i,e)}calculateSize(){const{pswp:t}=this;l(this.panAreaSize,I(t.options,t.viewportSize,this.data,this.index)),this.zoomLevels.update(this.width,this.height,this.panAreaSize),t.dispatch("calcSlideSize",{slide:this})}getCurrentTransform(){const t=this.currZoomLevel/(this.currentResolution||this.zoomLevels.initial);return u(this.pan.x,this.pan.y,t)}_setResolution(t){t!==this.currentResolution&&(this.currentResolution=t,this.updateContentSize(),this.pswp.dispatch("resolutionChanged"))}};function $(t,i,e){t.classList.add("pswp__button--arrow"),t.setAttribute("aria-controls","pswp__items"),i.on("change",()=>{i.options.loop||(t.disabled=e?!(i.currIndex<i.getNumItems()-1):!(i.currIndex>0))})}var U={name:"arrowPrev",className:"pswp__button--arrow--prev",title:"Previous",order:10,isButton:!0,appendTo:"wrapper",html:{isCustomSVG:!0,size:60,inner:'<path d="M29 43l-3 3-16-16 16-16 3 3-13 13 13 13z" id="pswp__icn-arrow"/>',outlineID:"pswp__icn-arrow"},onClick:"prev",onInit:$},G={name:"arrowNext",className:"pswp__button--arrow--next",title:"Next",order:11,isButton:!0,appendTo:"wrapper",html:{isCustomSVG:!0,size:60,inner:'<use xlink:href="#pswp__icn-arrow"/>',outlineID:"pswp__icn-arrow"},onClick:"next",onInit:(t,i)=>{$(t,i,!0)}},j={name:"close",title:"Close",order:20,isButton:!0,html:{isCustomSVG:!0,inner:'<path d="M24 10l-2-2-6 6-6-6-2 2 6 6-6 6 2 2 6-6 6 6 2-2-6-6z" id="pswp__icn-close"/>',outlineID:"pswp__icn-close"},onClick:"close"},K={name:"zoom",title:"Zoom",order:10,isButton:!0,html:{isCustomSVG:!0,inner:'<path d="M17.426 19.926a6 6 0 1 1 1.5-1.5L23 22.5 21.5 24l-4.074-4.074z" id="pswp__icn-zoom"/><path fill="currentColor" class="pswp__zoom-icn-bar-h" d="M11 16v-2h6v2z"/><path fill="currentColor" class="pswp__zoom-icn-bar-v" d="M13 12h2v6h-2z"/>',outlineID:"pswp__icn-zoom"},onClick:"toggleZoom"},X={name:"counter",order:5,onInit:(t,i)=>{i.on("change",()=>{t.innerText=i.currIndex+1+i.options.indexIndicatorSep+i.getNumItems()})}},Y={name:"preloader",appendTo:"bar",order:7,html:{isCustomSVG:!0,inner:'<path fill-rule="evenodd" clip-rule="evenodd" d="M21.2 16a5.2 5.2 0 1 1-5.2-5.2V8a8 8 0 1 0 8 8h-2.8Z" id="pswp__icn-loading"/>',outlineID:"pswp__icn-loading"},onInit:(t,i)=>{let e,s=null;const n=i=>{var s;e!==i&&(e=i,s=i,t.classList.toggle("pswp__preloader--active",s))},o=()=>{if(!i.currSlide?.content.isLoading())return n(!1),void(s&&(clearTimeout(s),s=null));s||(s=setTimeout(()=>{n(Boolean(i.currSlide?.content.isLoading())),s=null},i.options.preloaderDelay))};i.on("change",o),i.on("loadComplete",t=>{i.currSlide===t.slide&&o()}),i.ui&&(i.ui.updatePreloaderVisibility=o)}},J=class{constructor(t,i){const e=i.name||i.className;let s=i.html;if(!1===t.options[e])return;"string"==typeof t.options[`${e}SVG`]&&(s=t.options[`${e}SVG`]),t.dispatch("uiElementCreate",{data:i});let n="";i.isButton?(n+="pswp__button ",n+=i.className||`pswp__button--${i.name}`):n+=i.className||`pswp__${i.name}`;let o=i.isButton?i.tagName||"button":i.tagName||"div";o=o.toLowerCase();const a=h(n,o);if(i.isButton){"button"===o&&(a.type="button");let{title:s}=i;const{ariaLabel:n}=i;"string"==typeof t.options[`${e}Title`]&&(s=t.options[`${e}Title`]),s&&(a.title=s);const r=n||s;r&&a.setAttribute("aria-label",r)}a.innerHTML=function(t){if("string"==typeof t)return t;if(!t||!t.isCustomSVG)return"";const i=t;let e='<svg aria-hidden="true" class="pswp__icn" viewBox="0 0 %d %d" width="%d" height="%d">';return e=e.split("%d").join(i.size||32),i.outlineID&&(e+=`<use class="pswp__icn-shadow" xlink:href="#${i.outlineID}"/>`),e+=i.inner,e+="</svg>",e}(s),i.onInit&&i.onInit(a,t),i.onClick&&(a.onclick=e=>{"string"==typeof i.onClick?t[i.onClick]():"function"==typeof i.onClick&&i.onClick(e,a,t)});const r=i.appendTo||"bar";let l=t.element;"bar"===r?(t.topBar||(t.topBar=h("pswp__top-bar pswp__hide-on-close","div",t.scrollWrap)),l=t.topBar):(a.classList.add("pswp__hide-on-close"),"wrapper"===r&&(l=t.scrollWrap)),l?.appendChild(t.applyFilters("uiElement",a,i))}};function Q(t,i){t.classList.toggle("pswp--zoomed-in",i)}var tt=class{constructor(t){this.pswp=t,this.isRegistered=!1,this.uiElementsData=[],this.items=[],this.updatePreloaderVisibility=()=>{},this._lastUpdatedZoomLevel=void 0}init(){const{pswp:t}=this;this.isRegistered=!1,this.uiElementsData=[j,U,G,K,Y,X],t.dispatch("uiRegister"),this.uiElementsData.sort((t,i)=>(t.order||0)-(i.order||0)),this.items=[],this.isRegistered=!0,this.uiElementsData.forEach(t=>{this.registerElement(t)}),t.on("change",()=>{t.element?.classList.toggle("pswp--one-slide",1===t.getNumItems())}),t.on("zoomPanUpdate",()=>this._onZoomPanUpdate())}registerElement(t){this.isRegistered?this.items.push(new J(this.pswp,t)):this.uiElementsData.push(t)}_onZoomPanUpdate(){const{template:t,currSlide:i,options:e}=this.pswp;if(this.pswp.opener.isClosing||!t||!i)return;let{currZoomLevel:s}=i;if(this.pswp.opener.isOpen||(s=i.zoomLevels.initial),s===this._lastUpdatedZoomLevel)return;this._lastUpdatedZoomLevel=s;const n=i.zoomLevels.initial-i.zoomLevels.secondary;if(Math.abs(n)<.01||!i.isZoomable())return Q(t,!1),void t.classList.remove("pswp--zoom-allowed");t.classList.add("pswp--zoom-allowed"),Q(t,(s===i.zoomLevels.initial?i.zoomLevels.secondary:i.zoomLevels.initial)<=s),"zoom"!==e.imageClickAction&&"zoom-or-close"!==e.imageClickAction||t.classList.add("pswp--click-to-zoom")}},it="cubic-bezier(.4,0,.22,1)",et=class{constructor(t){this.props=t;const{target:i,onComplete:e,transform:s,onFinish:n=()=>{},duration:o=333,easing:a=it}=t;this.onFinish=n;const r=s?"transform":"opacity",h=t[r]??"";this._target=i,this._onComplete=e,this._finished=!1,this._onTransitionEnd=this._onTransitionEnd.bind(this),this._helperTimeout=setTimeout(()=>{g(i,r,o,a),this._helperTimeout=setTimeout(()=>{i.addEventListener("transitionend",this._onTransitionEnd,!1),i.addEventListener("transitioncancel",this._onTransitionEnd,!1),this._helperTimeout=setTimeout(()=>{this._finalizeAnimation()},o+500),i.style[r]=h},30)},0)}_onTransitionEnd(t){t.target===this._target&&this._finalizeAnimation()}_finalizeAnimation(){this._finished||(this._finished=!0,this.onFinish(),this._onComplete&&this._onComplete())}destroy(){this._helperTimeout&&(clearTimeout(this._helperTimeout),this._helperTimeout=null),g(this._target),this._target.removeEventListener("transitionend",this._onTransitionEnd,!1),this._target.removeEventListener("transitioncancel",this._onTransitionEnd,!1),this._finished||this._finalizeAnimation()}},st=class{constructor(t,i,e){this.velocity=1e3*t,this._dampingRatio=i||.75,this._naturalFrequency=e||12,this._dampedFrequency=this._naturalFrequency,this._dampingRatio<1&&(this._dampedFrequency*=Math.sqrt(1-this._dampingRatio*this._dampingRatio))}easeFrame(t,i){let e,s=0;i/=1e3;const n=Math.E**(-this._dampingRatio*this._naturalFrequency*i);if(1===this._dampingRatio)e=this.velocity+this._naturalFrequency*t,s=(t+e*i)*n,this.velocity=s*-this._naturalFrequency+e*n;else if(this._dampingRatio<1){e=1/this._dampedFrequency*(this._dampingRatio*this._naturalFrequency*t+this.velocity);const o=Math.cos(this._dampedFrequency*i),a=Math.sin(this._dampedFrequency*i);s=n*(t*o+e*a),this.velocity=s*-this._naturalFrequency*this._dampingRatio+n*(-this._dampedFrequency*t*a+this._dampedFrequency*e*o)}return s}},nt=class{constructor(t){this.props=t,this._raf=0;const{start:i,end:e,velocity:s,onUpdate:n,onComplete:o,onFinish:a=()=>{},dampingRatio:r,naturalFrequency:h}=t;this.onFinish=a;const l=new st(s,r,h);let p=Date.now(),d=i-e;const c=()=>{this._raf&&(d=l.easeFrame(d,Date.now()-p),Math.abs(d)<1&&Math.abs(l.velocity)<50?(n(e),o&&o(),this.onFinish()):(p=Date.now(),n(d+e),this._raf=requestAnimationFrame(c)))};this._raf=requestAnimationFrame(c)}destroy(){this._raf>=0&&cancelAnimationFrame(this._raf),this._raf=0}},ot=class{constructor(){this.activeAnimations=[]}startSpring(t){this._start(t,!0)}startTransition(t){this._start(t)}_start(t,i){const e=i?new nt(t):new et(t);return this.activeAnimations.push(e),e.onFinish=()=>this.stop(e),e}stop(t){t.destroy();const i=this.activeAnimations.indexOf(t);i>-1&&this.activeAnimations.splice(i,1)}stopAll(){this.activeAnimations.forEach(t=>{t.destroy()}),this.activeAnimations=[]}stopAllPan(){this.activeAnimations=this.activeAnimations.filter(t=>!t.props.isPan||(t.destroy(),!1))}stopMainScroll(){this.activeAnimations=this.activeAnimations.filter(t=>!t.props.isMainScroll||(t.destroy(),!1))}isPanRunning(){return this.activeAnimations.some(t=>t.props.isPan)}},at=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>{at=!0}}))}catch(yt){}var rt=class{constructor(){this._pool=[]}add(t,i,e,s){this._toggleListener(t,i,e,s)}remove(t,i,e,s){this._toggleListener(t,i,e,s,!0)}removeAll(){this._pool.forEach(t=>{this._toggleListener(t.target,t.type,t.listener,t.passive,!0,!0)}),this._pool=[]}_toggleListener(t,i,e,s,n,o){if(!t)return;const a=n?"removeEventListener":"addEventListener";i.split(" ").forEach(i=>{if(i){o||(n?this._pool=this._pool.filter(s=>s.type!==i||s.listener!==e||s.target!==t):this._pool.push({target:t,type:i,listener:e,passive:s}));const r=!!at&&{passive:s||!1};t[a](i,e,r)}})}},ht={Escape:27,z:90,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Tab:9},lt=(t,i)=>i?t:ht[t],pt=class{constructor(t){this.pswp=t,this._wasFocused=!1,t.on("bindEvents",()=>{t.options.trapFocus&&(t.options.initialPointerPos||this._focusRoot(),t.events.add(document,"focusin",this._onFocusIn.bind(this))),t.events.add(document,"keydown",this._onKeyDown.bind(this))});const i=document.activeElement;t.on("destroy",()=>{t.options.returnFocus&&i&&this._wasFocused&&i.focus()})}_focusRoot(){!this._wasFocused&&this.pswp.element&&(this.pswp.element.focus(),this._wasFocused=!0)}_onKeyDown(t){const{pswp:i}=this;if(i.dispatch("keydown",{originalEvent:t}).defaultPrevented)return;if(x(t))return;let e,s,n=!1;const o="key"in t;switch(o?t.key:t.keyCode){case lt("Escape",o):i.options.escKey&&(e="close");break;case lt("z",o):e="toggleZoom";break;case lt("ArrowLeft",o):s="x";break;case lt("ArrowUp",o):s="y";break;case lt("ArrowRight",o):s="x",n=!0;break;case lt("ArrowDown",o):n=!0,s="y";break;case lt("Tab",o):this._focusRoot()}if(s){t.preventDefault();const{currSlide:o}=i;i.options.arrowKeys&&"x"===s&&i.getNumItems()>1?e=n?"next":"prev":o&&o.currZoomLevel>o.zoomLevels.fit&&(o.pan[s]+=n?-80:80,o.panTo(o.pan.x,o.pan.y))}e&&(t.preventDefault(),i[e]())}_onFocusIn(t){const{template:i}=this.pswp;i&&document!==t.target&&i!==t.target&&!i.contains(t.target)&&i.focus()}},dt=class{constructor(t){this.pswp=t,this.x=0,this.slideWidth=0,this._currPositionIndex=0,this._prevPositionIndex=0,this._containerShiftIndex=-1,this.itemHolders=[]}resize(t){const{pswp:i}=this,e=Math.round(i.viewportSize.x+i.viewportSize.x*i.options.spacing),s=e!==this.slideWidth;s&&(this.slideWidth=e,this.moveTo(this.getCurrSlideX())),this.itemHolders.forEach((i,e)=>{s&&_(i.el,(e+this._containerShiftIndex)*this.slideWidth),t&&i.slide&&i.slide.resize()})}resetPosition(){this._currPositionIndex=0,this._prevPositionIndex=0,this.slideWidth=0,this._containerShiftIndex=-1}appendHolders(){this.itemHolders=[];for(let t=0;t<3;t++){const i=h("pswp__item","div",this.pswp.container);i.setAttribute("role","group"),i.setAttribute("aria-roledescription","slide"),i.setAttribute("aria-hidden","true"),i.style.display=1===t?"block":"none",this.itemHolders.push({el:i})}}canBeSwiped(){return this.pswp.getNumItems()>1}moveIndexBy(t,i,e){const{pswp:s}=this;let n=s.potentialIndex+t;const o=s.getNumItems();if(s.canLoop()){n=s.getLoopedIndex(n);const i=(t+o)%o;t=i<=o/2?i:i-o}else n<0?n=0:n>=o&&(n=o-1),t=n-s.potentialIndex;s.potentialIndex=n,this._currPositionIndex-=t,s.animations.stopMainScroll();const a=this.getCurrSlideX();if(i){s.animations.startSpring({isMainScroll:!0,start:this.x,end:a,velocity:e||0,naturalFrequency:30,dampingRatio:1,onUpdate:t=>{this.moveTo(t)},onComplete:()=>{this.updateCurrItem(),s.appendHeavy()}});let t=s.potentialIndex-s.currIndex;if(s.canLoop()){const i=(t+o)%o;t=i<=o/2?i:i-o}Math.abs(t)>1&&this.updateCurrItem()}else this.moveTo(a),this.updateCurrItem();return Boolean(t)}getCurrSlideX(){return this.slideWidth*this._currPositionIndex}isShifted(){return this.x!==this.getCurrSlideX()}updateCurrItem(){const{pswp:t}=this,i=this._prevPositionIndex-this._currPositionIndex;if(!i)return;this._prevPositionIndex=this._currPositionIndex,t.currIndex=t.potentialIndex;let e,s=Math.abs(i);s>=3&&(this._containerShiftIndex+=i+(i>0?-3:3),s=3,this.itemHolders.forEach(t=>{t.slide?.destroy(),t.slide=void 0}));for(let n=0;n<s;n++)i>0?(e=this.itemHolders.shift(),e&&(this.itemHolders[2]=e,this._containerShiftIndex++,_(e.el,(this._containerShiftIndex+2)*this.slideWidth),t.setContent(e,t.currIndex-s+n+2))):(e=this.itemHolders.pop(),e&&(this.itemHolders.unshift(e),this._containerShiftIndex--,_(e.el,this._containerShiftIndex*this.slideWidth),t.setContent(e,t.currIndex+s-n-2)));Math.abs(this._containerShiftIndex)>50&&!this.isShifted()&&(this.resetPosition(),this.resize()),t.animations.stopAllPan(),this.itemHolders.forEach((t,i)=>{t.slide&&t.slide.setIsActive(1===i)}),t.currSlide=this.itemHolders[1]?.slide,t.contentLoader.updateLazy(i),t.currSlide&&t.currSlide.applyCurrentZoomPan(),t.dispatch("change")}moveTo(t,i){if(!this.pswp.canLoop()&&i){let i=(this.slideWidth*this._currPositionIndex-t)/this.slideWidth;i+=this.pswp.currIndex;const e=Math.round(t-this.x);(i<0&&e>0||i>=this.pswp.getNumItems()-1&&e<0)&&(t=this.x+.35*e)}this.x=t,this.pswp.container&&_(this.pswp.container,t),this.pswp.dispatch("moveMainScroll",{x:t,dragging:i??!1})}},ct=.003,mt=class{constructor(t){this.pswp=t,this.isClosed=!0,this.isOpen=!1,this.isClosing=!1,this.isOpening=!1,this._duration=void 0,this._useAnimation=!1,this._croppedZoom=!1,this._animateRootOpacity=!1,this._animateBgOpacity=!1,this._placeholder=void 0,this._opacityElement=void 0,this._cropContainer1=void 0,this._cropContainer2=void 0,this._thumbBounds=void 0,this._prepareOpen=this._prepareOpen.bind(this),t.on("firstZoomPan",this._prepareOpen)}open(){this._prepareOpen(),this._start()}close(){if(this.isClosed||this.isClosing||this.isOpening)return;const t=this.pswp.currSlide;this.isOpen=!1,this.isOpening=!1,this.isClosing=!0,this._duration=this.pswp.options.hideAnimationDuration,t&&t.currZoomLevel*t.width>=this.pswp.options.maxWidthToAnimate&&(this._duration=0),this._applyStartProps(),setTimeout(()=>{this._start()},this._croppedZoom?30:0)}_prepareOpen(){if(this.pswp.off("firstZoomPan",this._prepareOpen),!this.isOpening){const t=this.pswp.currSlide;this.isOpening=!0,this.isClosing=!1,this._duration=this.pswp.options.showAnimationDuration,t&&t.zoomLevels.initial*t.width>=this.pswp.options.maxWidthToAnimate&&(this._duration=0),this._applyStartProps()}}_applyStartProps(){const{pswp:t}=this,i=this.pswp.currSlide,{options:e}=t;if("fade"===e.showHideAnimationType?(e.showHideOpacity=!0,this._thumbBounds=void 0):"none"===e.showHideAnimationType?(e.showHideOpacity=!1,this._duration=0,this._thumbBounds=void 0):this.isOpening&&t._initialThumbBounds?this._thumbBounds=t._initialThumbBounds:this._thumbBounds=this.pswp.getThumbBounds(),this._placeholder=i?.getPlaceholderElement(),t.animations.stopAll(),this._useAnimation=Boolean(this._duration&&this._duration>50),this._animateZoom=Boolean(this._thumbBounds)&&i?.content.usePlaceholder()&&(!this.isClosing||!t.mainScroll.isShifted()),this._animateZoom?this._animateRootOpacity=e.showHideOpacity??!1:(this._animateRootOpacity=!0,this.isOpening&&i&&(i.zoomAndPanToInitial(),i.applyCurrentZoomPan())),this._animateBgOpacity=!this._animateRootOpacity&&this.pswp.options.bgOpacity>ct,this._opacityElement=this._animateRootOpacity?t.element:t.bg,!this._useAnimation)return this._duration=0,this._animateZoom=!1,this._animateBgOpacity=!1,this._animateRootOpacity=!0,void(this.isOpening&&(t.element&&(t.element.style.opacity=String(ct)),t.applyBgOpacity(1)));this._animateZoom&&this._thumbBounds&&this._thumbBounds.innerRect?(this._croppedZoom=!0,this._cropContainer1=this.pswp.container,this._cropContainer2=this.pswp.currSlide?.holderElement,t.container&&(t.container.style.overflow="hidden",t.container.style.width=`${t.viewportSize.x}px`)):this._croppedZoom=!1,this.isOpening?(this._animateRootOpacity?(t.element&&(t.element.style.opacity=String(ct)),t.applyBgOpacity(1)):(this._animateBgOpacity&&t.bg&&(t.bg.style.opacity=String(ct)),t.element&&(t.element.style.opacity="1")),this._animateZoom&&(this._setClosedStateZoomPan(),this._placeholder&&(this._placeholder.style.willChange="transform",this._placeholder.style.opacity=String(ct)))):this.isClosing&&(t.mainScroll.itemHolders[0]&&(t.mainScroll.itemHolders[0].el.style.display="none"),t.mainScroll.itemHolders[2]&&(t.mainScroll.itemHolders[2].el.style.display="none"),this._croppedZoom&&0!==t.mainScroll.x&&(t.mainScroll.resetPosition(),t.mainScroll.resize()))}_start(){this.isOpening&&this._useAnimation&&this._placeholder&&"IMG"===this._placeholder.tagName?new Promise(t=>{let i=!1,e=!0;var s;(s=this._placeholder,"decode"in s?s.decode().catch(()=>{}):s.complete?Promise.resolve(s):new Promise((t,i)=>{s.onload=()=>t(s),s.onerror=i})).finally(()=>{i=!0,e||t(!0)}),setTimeout(()=>{e=!1,i&&t(!0)},50),setTimeout(t,250)}).finally(()=>this._initiate()):this._initiate()}_initiate(){this.pswp.element?.style.setProperty("--pswp-transition-duration",`${this._duration}ms`),this.pswp.dispatch(this.isOpening?"openingAnimationStart":"closingAnimationStart"),this.pswp.dispatch("initialZoom"+(this.isOpening?"In":"Out")),this.pswp.element?.classList.toggle("pswp--ui-visible",this.isOpening),this.isOpening?(this._placeholder&&(this._placeholder.style.opacity="1"),this._animateToOpenState()):this.isClosing&&this._animateToClosedState(),this._useAnimation||this._onAnimationComplete()}_onAnimationComplete(){const{pswp:t}=this;this.isOpen=this.isOpening,this.isClosed=this.isClosing,this.isOpening=!1,this.isClosing=!1,t.dispatch(this.isOpen?"openingAnimationEnd":"closingAnimationEnd"),t.dispatch("initialZoom"+(this.isOpen?"InEnd":"OutEnd")),this.isClosed?t.destroy():this.isOpen&&(this._animateZoom&&t.container&&(t.container.style.overflow="visible",t.container.style.width="100%"),t.currSlide?.applyCurrentZoomPan())}_animateToOpenState(){const{pswp:t}=this;this._animateZoom&&(this._croppedZoom&&this._cropContainer1&&this._cropContainer2&&(this._animateTo(this._cropContainer1,"transform","translate3d(0,0,0)"),this._animateTo(this._cropContainer2,"transform","none")),t.currSlide&&(t.currSlide.zoomAndPanToInitial(),this._animateTo(t.currSlide.container,"transform",t.currSlide.getCurrentTransform()))),this._animateBgOpacity&&t.bg&&this._animateTo(t.bg,"opacity",String(t.options.bgOpacity)),this._animateRootOpacity&&t.element&&this._animateTo(t.element,"opacity","1")}_animateToClosedState(){const{pswp:t}=this;this._animateZoom&&this._setClosedStateZoomPan(!0),this._animateBgOpacity&&t.bgOpacity>.01&&t.bg&&this._animateTo(t.bg,"opacity","0"),this._animateRootOpacity&&t.element&&this._animateTo(t.element,"opacity","0")}_setClosedStateZoomPan(t){if(!this._thumbBounds)return;const{pswp:i}=this,{innerRect:e}=this._thumbBounds,{currSlide:s,viewportSize:n}=i;if(this._croppedZoom&&e&&this._cropContainer1&&this._cropContainer2){const i=-n.x+(this._thumbBounds.x-e.x)+e.w,s=-n.y+(this._thumbBounds.y-e.y)+e.h,o=n.x-e.w,a=n.y-e.h;t?(this._animateTo(this._cropContainer1,"transform",u(i,s)),this._animateTo(this._cropContainer2,"transform",u(o,a))):(_(this._cropContainer1,i,s),_(this._cropContainer2,o,a))}s&&(l(s.pan,e||this._thumbBounds),s.currZoomLevel=this._thumbBounds.w/s.width,t?this._animateTo(s.container,"transform",s.getCurrentTransform()):s.applyCurrentZoomPan())}_animateTo(t,i,e){if(!this._duration)return void(t.style[i]=e);const{animations:s}=this.pswp,n={duration:this._duration,easing:this.pswp.options.easing,onComplete:()=>{s.activeAnimations.length||this._onAnimationComplete()},target:t};n[i]=e,s.startTransition(n)}},ut=class{constructor(t){this.pswp=t,t.events.add(t.element,"wheel",this._onWheel.bind(this))}_onWheel(t){t.preventDefault();const{currSlide:i}=this.pswp;let{deltaX:e,deltaY:s}=t;if(i&&!this.pswp.dispatch("wheel",{originalEvent:t}).defaultPrevented)if(t.ctrlKey||this.pswp.options.wheelToZoom){if(i.isZoomable()){let e=-s;1===t.deltaMode?e*=.05:e*=t.deltaMode?1:.002,e=2**e;const n=i.currZoomLevel*e;i.zoomTo(n,{x:t.clientX,y:t.clientY})}}else i.isPannable()&&(1===t.deltaMode&&(e*=18,s*=18),i.panTo(i.pan.x-e,i.pan.y-s))}},_t={allowPanToNext:!0,spacing:.1,loop:!0,pinchToClose:!0,closeOnVerticalDrag:!0,hideAnimationDuration:333,showAnimationDuration:333,zoomAnimationDuration:333,escKey:!0,arrowKeys:!0,trapFocus:!0,returnFocus:!0,maxWidthToAnimate:4e3,clickToCloseNonZoomable:!0,imageClickAction:"zoom-or-close",bgClickAction:"close",tapAction:"toggle-controls",doubleTapAction:"zoom",indexIndicatorSep:" / ",preloaderDelay:2e3,bgOpacity:.8,index:0,errorMsg:"The image cannot be loaded",preload:[1,2],easing:"cubic-bezier(.4,0,.22,1)"},gt=class extends M{constructor(t){super(),this.options=this._prepareOptions(t||{}),this.offset={x:0,y:0},this._prevViewportSize={x:0,y:0},this.viewportSize={x:0,y:0},this.bgOpacity=1,this.currIndex=0,this.potentialIndex=0,this.isOpen=!1,this.isDestroying=!1,this.hasMouse=!1,this._initialItemData={},this._initialThumbBounds=void 0,this.topBar=void 0,this.element=void 0,this.template=void 0,this.container=void 0,this.scrollWrap=void 0,this.currSlide=void 0,this.events=new rt,this.animations=new ot,this.mainScroll=new dt(this),this.gestures=new W(this),this.opener=new mt(this),this.keyboard=new pt(this),this.contentLoader=new O(this)}init(){if(this.isOpen||this.isDestroying)return!1;this.isOpen=!0,this.dispatch("init"),this.dispatch("beforeOpen"),this._createMainStructure();let t="pswp--open";return this.gestures.supportsTouch&&(t+=" pswp--touch"),this.options.mainClass&&(t+=` ${this.options.mainClass}`),this.element&&(this.element.className+=` ${t}`),this.currIndex=this.options.index||0,this.potentialIndex=this.currIndex,this.dispatch("firstUpdate"),this.scrollWheel=new ut(this),(Number.isNaN(this.currIndex)||this.currIndex<0||this.currIndex>=this.getNumItems())&&(this.currIndex=0),this.gestures.supportsTouch||this.mouseDetected(),this.updateSize(),this.offset.y=window.pageYOffset,this._initialItemData=this.getItemData(this.currIndex),this.dispatch("gettingData",{index:this.currIndex,data:this._initialItemData,slide:void 0}),this._initialThumbBounds=this.getThumbBounds(),this.dispatch("initialLayout"),this.on("openingAnimationEnd",()=>{const{itemHolders:t}=this.mainScroll;t[0]&&(t[0].el.style.display="block",this.setContent(t[0],this.currIndex-1)),t[2]&&(t[2].el.style.display="block",this.setContent(t[2],this.currIndex+1)),this.appendHeavy(),this.contentLoader.updateLazy(),this.events.add(window,"resize",this._handlePageResize.bind(this)),this.events.add(window,"scroll",this._updatePageScrollOffset.bind(this)),this.dispatch("bindEvents")}),this.mainScroll.itemHolders[1]&&this.setContent(this.mainScroll.itemHolders[1],this.currIndex),this.dispatch("change"),this.opener.open(),this.dispatch("afterInit"),!0}getLoopedIndex(t){const i=this.getNumItems();return this.options.loop&&(t>i-1&&(t-=i),t<0&&(t+=i)),m(t,0,i-1)}appendHeavy(){this.mainScroll.itemHolders.forEach(t=>{t.slide?.appendHeavy()})}goTo(t){this.mainScroll.moveIndexBy(this.getLoopedIndex(t)-this.potentialIndex,!0)}next(){this.goTo(this.potentialIndex+1)}prev(){this.goTo(this.potentialIndex-1)}zoomTo(...t){this.currSlide?.zoomTo(...t)}toggleZoom(){this.currSlide?.toggleZoom()}close(){this.opener.isOpen&&!this.isDestroying&&(this.isDestroying=!0,this.dispatch("close"),this.events.removeAll(),this.opener.close())}destroy(){if(!this.isDestroying)return this.options.showHideAnimationType="none",void this.close();this.dispatch("destroy"),this._listeners={},this.scrollWrap&&(this.scrollWrap.ontouchmove=null,this.scrollWrap.ontouchend=null),this.element?.remove(),this.mainScroll.itemHolders.forEach(t=>{t.slide?.destroy()}),this.contentLoader.destroy(),this.events.removeAll()}refreshSlideContent(t){this.contentLoader.removeByIndex(t),this.mainScroll.itemHolders.forEach((i,e)=>{let s=(this.currSlide?.index??0)-1+e;this.canLoop()&&(s=this.getLoopedIndex(s)),s===t&&(this.setContent(i,t,!0),1===e&&(this.currSlide=i.slide,i.slide?.setIsActive(!0)))}),this.dispatch("change")}setContent(t,i,e){if(this.canLoop()&&(i=this.getLoopedIndex(i)),t.slide){if(t.slide.index===i&&!e)return;t.slide.destroy(),t.slide=void 0}!this.canLoop()&&(i<0||i>=this.getNumItems())||(t.slide=new q(this.getItemData(i),i,this),i===this.currIndex&&(this.currSlide=t.slide),t.slide.append(t.el))}getViewportCenterPoint(){return{x:this.viewportSize.x/2,y:this.viewportSize.y/2}}updateSize(t){if(this.isDestroying)return;const i=L(this.options,this);!t&&c(i,this._prevViewportSize)||(l(this._prevViewportSize,i),this.dispatch("beforeResize"),l(this.viewportSize,this._prevViewportSize),this._updatePageScrollOffset(),this.dispatch("viewportSize"),this.mainScroll.resize(this.opener.isOpen),!this.hasMouse&&window.matchMedia("(any-hover: hover)").matches&&this.mouseDetected(),this.dispatch("resize"))}applyBgOpacity(t){this.bgOpacity=Math.max(t,0),this.bg&&(this.bg.style.opacity=String(this.bgOpacity*this.options.bgOpacity))}mouseDetected(){this.hasMouse||(this.hasMouse=!0,this.element?.classList.add("pswp--has_mouse"))}_handlePageResize(){this.updateSize(),/iPhone|iPad|iPod/i.test(window.navigator.userAgent)&&setTimeout(()=>{this.updateSize()},500)}_updatePageScrollOffset(){this.setScrollOffset(0,window.pageYOffset)}setScrollOffset(t,i){this.offset.x=t,this.offset.y=i,this.dispatch("updateScrollOffset")}_createMainStructure(){this.element=h("pswp","div"),this.element.setAttribute("tabindex","-1"),this.element.setAttribute("role","dialog"),this.template=this.element,this.bg=h("pswp__bg","div",this.element),this.scrollWrap=h("pswp__scroll-wrap","section",this.element),this.container=h("pswp__container","div",this.scrollWrap),this.scrollWrap.setAttribute("aria-roledescription","carousel"),this.container.setAttribute("aria-live","off"),this.container.setAttribute("id","pswp__items"),this.mainScroll.appendHolders(),this.ui=new tt(this),this.ui.init(),(this.options.appendToEl||document.body).appendChild(this.element)}getThumbBounds(){return function(t,i,e){const s=e.dispatch("thumbBounds",{index:t,itemData:i,instance:e});if(s.thumbBounds)return s.thumbBounds;const{element:n}=i;let o,a;if(n&&!1!==e.options.thumbSelector){const t=e.options.thumbSelector||"img";a=n.matches(t)?n:n.querySelector(t)}return a=e.applyFilters("thumbEl",a,i,t),a&&(o=i.thumbCropped?function(t,i,e){const s=t.getBoundingClientRect(),n=s.width/i,o=s.height/e,a=n>o?n:o,r=(s.width-i*a)/2,h=(s.height-e*a)/2,l={x:s.left+r,y:s.top+h,w:i*a};return l.innerRect={w:s.width,h:s.height,x:r,y:h},l}(a,i.width||i.w||0,i.height||i.h||0):function(t){const i=t.getBoundingClientRect();return{x:i.left,y:i.top,w:i.width}}(a)),e.applyFilters("thumbBounds",o,i,t)}(this.currIndex,this.currSlide?this.currSlide.data:this._initialItemData,this)}canLoop(){return this.options.loop&&this.getNumItems()>2}_prepareOptions(t){return window.matchMedia("(prefers-reduced-motion), (update: slow)").matches&&(t.showHideAnimationType="none",t.zoomAnimationDuration=0),{..._t,...t}}},vt=()=>Promise.resolve(gt);export{F as n,r,vt as t};
package/umd/qbHuxVSe.js DELETED
@@ -1 +0,0 @@
1
- var n,e,t,_,r,o,u,l,i,c,a,f,s,p,d,h={},v=[],m=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,y=Array.isArray;function g(n,e){for(var t in e)n[t]=e[t];return n}function b(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function k(e,t,_){var r,o,u,l={};for(u in t)"key"==u?r=t[u]:"ref"==u?o=t[u]:l[u]=t[u];if(arguments.length>2&&(l.children=arguments.length>3?n.call(arguments,2):_),"function"==typeof e&&null!=e.defaultProps)for(u in e.defaultProps)void 0===l[u]&&(l[u]=e.defaultProps[u]);return C(e,l,r,o,null)}function C(n,_,r,o,u){var l={type:n,props:_,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==u?++t:u,__i:-1,__u:0};return null==u&&null!=e.vnode&&e.vnode(l),l}function w(){return{current:null}}function x(n){return n.children}function S(n,e){this.props=n,this.context=e}function P(n,e){if(null==e)return n.__?P(n.__,n.__i+1):null;for(var t;e<n.__k.length;e++)if(null!=(t=n.__k[e])&&null!=t.__e)return t.__e;return"function"==typeof n.type?P(n):null}function N(n){if(n.__P&&n.__d){var t=n.__v,_=t.__e,r=[],o=[],u=g({},t);u.__v=t.__v+1,e.vnode&&e.vnode(u),F(n.__P,u,t,n.__n,n.__P.namespaceURI,32&t.__u?[_]:null,r,null==_?P(t):_,!!(32&t.__u),o),u.__v=t.__v,u.__.__k[u.__i]=u,L(r,u,o),t.__e=t.__=null,u.__e!=_&&E(u)}}function E(n){if(null!=(n=n.__)&&null!=n.__c)return n.__e=n.__c.base=null,n.__k.some(function(e){if(null!=e&&null!=e.__e)return n.__e=n.__c.base=e.__e}),E(n)}function U(n){(!n.__d&&(n.__d=!0)&&_.push(n)&&!R.__r++||r!=e.debounceRendering)&&((r=e.debounceRendering)||o)(R)}function R(){try{for(var n,e=1;_.length;)_.length>e&&_.sort(u),n=_.shift(),e=_.length,N(n)}finally{_.length=R.__r=0}}function H(n,e,t,_,r,o,u,l,i,c,a){var f,s,p,d,m,g,b,k=_&&_.__k||v,w=e.length;for(i=function(n,e,t,_,r){var o,u,l,i,c,a=t.length,f=a,s=0;for(n.__k=new Array(r),o=0;o<r;o++)null!=(u=e[o])&&"boolean"!=typeof u&&"function"!=typeof u?("string"==typeof u||"number"==typeof u||"bigint"==typeof u||u.constructor==String?u=n.__k[o]=C(null,u,null,null,null):y(u)?u=n.__k[o]=C(x,{children:u},null,null,null):void 0===u.constructor&&u.__b>0?u=n.__k[o]=C(u.type,u.props,u.key,u.ref?u.ref:null,u.__v):n.__k[o]=u,i=o+s,u.__=n,u.__b=n.__b+1,l=null,-1!=(c=u.__i=O(u,t,i,f))&&(f--,(l=t[c])&&(l.__u|=2)),null==l||null==l.__v?(-1==c&&(r>a?s--:r<a&&s++),"function"!=typeof u.type&&(u.__u|=4)):c!=i&&(c==i-1?s--:c==i+1?s++:(c>i?s--:s++,u.__u|=4))):n.__k[o]=null;if(f)for(o=0;o<a;o++)null!=(l=t[o])&&!(2&l.__u)&&(l.__e==_&&(_=P(l)),z(l,l));return _}(t,e,k,i,w),f=0;f<w;f++)null!=(p=t.__k[f])&&(s=-1!=p.__i&&k[p.__i]||h,p.__i=f,g=F(n,p,s,r,o,u,l,i,c,a),d=p.__e,p.ref&&s.ref!=p.ref&&(s.ref&&B(s.ref,null,p),a.push(p.ref,p.__c||d,p)),null==m&&null!=d&&(m=d),(b=!!(4&p.__u))||s.__k===p.__k?(i=T(p,i,n,b),b&&s.__e&&(s.__e=null)):"function"==typeof p.type&&void 0!==g?i=g:d&&(i=d.nextSibling),p.__u&=-7);return t.__e=m,i}function T(n,e,t,_){var r,o;if("function"==typeof n.type){for(r=n.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=n,e=T(r[o],e,t,_));return e}n.__e!=e&&(_&&(e&&n.type&&!e.parentNode&&(e=P(n)),t.insertBefore(n.__e,e||null)),e=n.__e);do{e=e&&e.nextSibling}while(null!=e&&8==e.nodeType);return e}function D(n,e){return e=e||[],null==n||"boolean"==typeof n||(y(n)?n.some(function(n){D(n,e)}):e.push(n)),e}function O(n,e,t,_){var r,o,u,l=n.key,i=n.type,c=e[t],a=null!=c&&!(2&c.__u);if(null===c&&null==l||a&&l==c.key&&i==c.type)return t;if(_>(a?1:0))for(r=t-1,o=t+1;r>=0||o<e.length;)if(null!=(c=e[u=r>=0?r--:o++])&&!(2&c.__u)&&l==c.key&&i==c.type)return u;return-1}function A(n,e,t){"-"==e[0]?n.setProperty(e,null==t?"":t):n[e]=null==t?"":"number"!=typeof t||m.test(e)?t:t+"px"}function M(n,e,t,_,r){var o,u;n:if("style"==e)if("string"==typeof t)n.style.cssText=t;else{if("string"==typeof _&&(n.style.cssText=_=""),_)for(e in _)t&&e in t||A(n.style,e,"");if(t)for(e in t)_&&t[e]==_[e]||A(n.style,e,t[e])}else if("o"==e[0]&&"n"==e[1])o=e!=(e=e.replace(a,"$1")),u=e.toLowerCase(),e=u in n||"onFocusOut"==e||"onFocusIn"==e?u.slice(2):e.slice(2),n.l||(n.l={}),n.l[e+o]=t,t?_?t[c]=_[c]:(t[c]=f,n.addEventListener(e,o?p:s,o)):n.removeEventListener(e,o?p:s,o);else{if("http://www.w3.org/2000/svg"==r)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&"popover"!=e&&e in n)try{n[e]=null==t?"":t;break n}catch(n){}"function"==typeof t||(null==t||!1===t&&"-"!=e[4]?n.removeAttribute(e):n.setAttribute(e,"popover"==e&&1==t?"":t))}}function W(n){return function(t){if(this.l){var _=this.l[t.type+n];if(null==t[i])t[i]=f++;else if(t[i]<_[c])return;return _(e.event?e.event(t):t)}}}function F(n,t,_,r,o,u,l,i,c,a){var f,s,p,d,h,m,k,C,w,P,N,E,U,R,T,D=t.type;if(void 0!==t.constructor)return null;128&_.__u&&(c=!!(32&_.__u),u=[i=t.__e=_.__e]),(f=e.__b)&&f(t);n:if("function"==typeof D)try{if(C=t.props,w=D.prototype&&D.prototype.render,P=(f=D.contextType)&&r[f.__c],N=f?P?P.props.value:f.__:r,_.__c?k=(s=t.__c=_.__c).__=s.__E:(w?t.__c=s=new D(C,N):(t.__c=s=new S(C,N),s.constructor=D,s.render=j),P&&P.sub(s),s.state||(s.state={}),s.__n=r,p=s.__d=!0,s.__h=[],s._sb=[]),w&&null==s.__s&&(s.__s=s.state),w&&null!=D.getDerivedStateFromProps&&(s.__s==s.state&&(s.__s=g({},s.__s)),g(s.__s,D.getDerivedStateFromProps(C,s.__s))),d=s.props,h=s.state,s.__v=t,p)w&&null==D.getDerivedStateFromProps&&null!=s.componentWillMount&&s.componentWillMount(),w&&null!=s.componentDidMount&&s.__h.push(s.componentDidMount);else{if(w&&null==D.getDerivedStateFromProps&&C!==d&&null!=s.componentWillReceiveProps&&s.componentWillReceiveProps(C,N),t.__v==_.__v||!s.__e&&null!=s.shouldComponentUpdate&&!1===s.shouldComponentUpdate(C,s.__s,N)){t.__v!=_.__v&&(s.props=C,s.state=s.__s,s.__d=!1),t.__e=_.__e,t.__k=_.__k,t.__k.some(function(n){n&&(n.__=t)}),v.push.apply(s.__h,s._sb),s._sb=[],s.__h.length&&l.push(s);break n}null!=s.componentWillUpdate&&s.componentWillUpdate(C,s.__s,N),w&&null!=s.componentDidUpdate&&s.__h.push(function(){s.componentDidUpdate(d,h,m)})}if(s.context=N,s.props=C,s.__P=n,s.__e=!1,E=e.__r,U=0,w)s.state=s.__s,s.__d=!1,E&&E(t),f=s.render(s.props,s.state,s.context),v.push.apply(s.__h,s._sb),s._sb=[];else do{s.__d=!1,E&&E(t),f=s.render(s.props,s.state,s.context),s.state=s.__s}while(s.__d&&++U<25);s.state=s.__s,null!=s.getChildContext&&(r=g(g({},r),s.getChildContext())),w&&!p&&null!=s.getSnapshotBeforeUpdate&&(m=s.getSnapshotBeforeUpdate(d,h)),R=null!=f&&f.type===x&&null==f.key?V(f.props.children):f,i=H(n,y(R)?R:[R],t,_,r,o,u,l,i,c,a),s.base=t.__e,t.__u&=-161,s.__h.length&&l.push(s),k&&(s.__E=s.__=null)}catch(n){if(t.__v=null,c||null!=u)if(n.then){for(t.__u|=c?160:128;i&&8==i.nodeType&&i.nextSibling;)i=i.nextSibling;u[u.indexOf(i)]=null,t.__e=i}else{for(T=u.length;T--;)b(u[T]);I(t)}else t.__e=_.__e,t.__k=_.__k,n.then||I(t);e.__e(n,t,_)}else null==u&&t.__v==_.__v?(t.__k=_.__k,t.__e=_.__e):i=t.__e=$(_.__e,t,_,r,o,u,l,c,a);return(f=e.diffed)&&f(t),128&t.__u?void 0:i}function I(n){n&&(n.__c&&(n.__c.__e=!0),n.__k&&n.__k.some(I))}function L(n,t,_){for(var r=0;r<_.length;r++)B(_[r],_[++r],_[++r]);e.__c&&e.__c(t,n),n.some(function(t){try{n=t.__h,t.__h=[],n.some(function(n){n.call(t)})}catch(n){e.__e(n,t.__v)}})}function V(n){return"object"!=typeof n||null==n||n.__b>0?n:y(n)?n.map(V):void 0!==n.constructor?null:g({},n)}function $(t,_,r,o,u,l,i,c,a){var f,s,p,d,v,m,g,k=r.props||h,C=_.props,w=_.type;if("svg"==w?u="http://www.w3.org/2000/svg":"math"==w?u="http://www.w3.org/1998/Math/MathML":u||(u="http://www.w3.org/1999/xhtml"),null!=l)for(f=0;f<l.length;f++)if((v=l[f])&&"setAttribute"in v==!!w&&(w?v.localName==w:3==v.nodeType)){t=v,l[f]=null;break}if(null==t){if(null==w)return document.createTextNode(C);t=document.createElementNS(u,w,C.is&&C),c&&(e.__m&&e.__m(_,l),c=!1),l=null}if(null==w)k===C||c&&t.data==C||(t.data=C);else{if(l="textarea"==w&&null!=C.defaultValue?null:l&&n.call(t.childNodes),!c&&null!=l)for(k={},f=0;f<t.attributes.length;f++)k[(v=t.attributes[f]).name]=v.value;for(f in k)v=k[f],"dangerouslySetInnerHTML"==f?p=v:"children"==f||f in C||"value"==f&&"defaultValue"in C||"checked"==f&&"defaultChecked"in C||M(t,f,null,v,u);for(f in C)v=C[f],"children"==f?d=v:"dangerouslySetInnerHTML"==f?s=v:"value"==f?m=v:"checked"==f?g=v:c&&"function"!=typeof v||k[f]===v||M(t,f,v,k[f],u);if(s)c||p&&(s.__html==p.__html||s.__html==t.innerHTML)||(t.innerHTML=s.__html),_.__k=[];else if(p&&(t.innerHTML=""),H("template"==_.type?t.content:t,y(d)?d:[d],_,r,o,"foreignObject"==w?"http://www.w3.org/1999/xhtml":u,l,i,l?l[0]:r.__k&&P(r,0),c,a),null!=l)for(f=l.length;f--;)b(l[f]);c&&"textarea"!=w||(f="value","progress"==w&&null==m?t.removeAttribute("value"):null!=m&&(m!==t[f]||"progress"==w&&!m||"option"==w&&m!=k[f])&&M(t,f,m,k[f],u),f="checked",null!=g&&g!=t[f]&&M(t,f,g,k[f],u))}return t}function B(n,t,_){try{if("function"==typeof n){var r="function"==typeof n.__u;r&&n.__u(),r&&null==t||(n.__u=n(t))}else n.current=t}catch(n){e.__e(n,_)}}function z(n,t,_){var r,o;if(e.unmount&&e.unmount(n),(r=n.ref)&&(r.current&&r.current!=n.__e||B(r,null,t)),null!=(r=n.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(n){e.__e(n,t)}r.base=r.__P=null}if(r=n.__k)for(o=0;o<r.length;o++)r[o]&&z(r[o],t,_||"function"!=typeof n.type);_||b(n.__e),n.__c=n.__=n.__e=void 0}function j(n,e,t){return this.constructor(n,t)}function q(t,_,r){var o,u,l,i;_==document&&(_=document.documentElement),e.__&&e.__(t,_),u=(o="function"==typeof r)?null:r&&r.__k||_.__k,l=[],i=[],F(_,t=(!o&&r||_).__k=k(x,null,[t]),u||h,h,_.namespaceURI,!o&&r?[r]:u?null:_.firstChild?n.call(_.childNodes):null,l,!o&&r?r:u?u.__e:_.firstChild,o,i),L(l,t,i)}function Z(n,e){q(n,e,Z)}function Y(e,t,_){var r,o,u,l,i=g({},e.props);for(u in e.type&&e.type.defaultProps&&(l=e.type.defaultProps),t)"key"==u?r=t[u]:"ref"==u?o=t[u]:i[u]=void 0===t[u]&&null!=l?l[u]:t[u];return arguments.length>2&&(i.children=arguments.length>3?n.call(arguments,2):_),C(e.type,i,r||e.key,o||e.ref,null)}function G(n){function e(n){var t,_;return this.getChildContext||(t=/* @__PURE__ */new Set,(_={})[e.__c]=this,this.getChildContext=function(){return _},this.componentWillUnmount=function(){t=null},this.shouldComponentUpdate=function(n){this.props.value!=n.value&&t.forEach(function(n){n.__e=!0,U(n)})},this.sub=function(n){t.add(n);var e=n.componentWillUnmount;n.componentWillUnmount=function(){t&&t.delete(n),e&&e.call(n)}}),n.children}return e.__c="__cC"+d++,e.__=n,e.Provider=e.__l=(e.Consumer=function(n,e){return n.children(e)}).contextType=e,e}n=v.slice,e={__e:function(n,e,t,_){for(var r,o,u;e=e.__;)if((r=e.__c)&&!r.__)try{if((o=r.constructor)&&null!=o.getDerivedStateFromError&&(r.setState(o.getDerivedStateFromError(n)),u=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(n,_||{}),u=r.__d),u)return r.__E=r}catch(e){n=e}throw n}},t=0,S.prototype.setState=function(n,e){var t=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=g({},this.state);"function"==typeof n&&(n=n(g({},t),this.props)),n&&g(t,n),null!=n&&this.__v&&(e&&this._sb.push(e),U(this))},S.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),U(this))},S.prototype.render=x,_=[],o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,u=function(n,e){return n.__v.__b-e.__v.__b},R.__r=0,l=Math.random().toString(8),i="__d"+l,c="__a"+l,a=/(PointerCapture)$|Capture$/i,f=0,s=W(!1),p=W(!0),d=0;var J,K,Q,X,nn=0,en=[],tn=e,_n=tn.__b,rn=tn.__r,on=tn.diffed,un=tn.__c,ln=tn.unmount,cn=tn.__;function an(n,e){tn.__h&&tn.__h(K,n,nn||e),nn=0;var t=K.__H||(K.__H={__:[],__h:[]});return n>=t.__.length&&t.__.push({}),t.__[n]}function fn(n){return nn=1,sn(En,n)}function sn(n,e,t){var _=an(J++,2);if(_.t=n,!_.__c&&(_.__=[t?t(e):En(void 0,e),function(n){var e=_.__N?_.__N[0]:_.__[0],t=_.t(e,n);e!==t&&(_.__N=[t,_.__[1]],_.__c.setState({}))}],_.__c=K,!K.__f)){var r=function(n,e,t){if(!_.__c.__H)return!0;var r=_.__c.__H.__.filter(function(n){return n.__c});if(r.every(function(n){return!n.__N}))return!o||o.call(this,n,e,t);var u=_.__c.props!==n;return r.some(function(n){if(n.__N){var e=n.__[0];n.__=n.__N,n.__N=void 0,e!==n.__[0]&&(u=!0)}}),o&&o.call(this,n,e,t)||u};K.__f=!0;var o=K.shouldComponentUpdate,u=K.componentWillUpdate;K.componentWillUpdate=function(n,e,t){if(this.__e){var _=o;o=void 0,r(n,e,t),o=_}u&&u.call(this,n,e,t)},K.shouldComponentUpdate=r}return _.__N||_.__}function pn(n,e){var t=an(J++,3);!tn.__s&&Nn(t.__H,e)&&(t.__=n,t.u=e,K.__H.__h.push(t))}function dn(n,e){var t=an(J++,4);!tn.__s&&Nn(t.__H,e)&&(t.__=n,t.u=e,K.__h.push(t))}function hn(n){return nn=5,mn(function(){return{current:n}},[])}function vn(n,e,t){nn=6,dn(function(){if("function"==typeof n){var t=n(e());return function(){n(null),t&&"function"==typeof t&&t()}}if(n)return n.current=e(),function(){return n.current=null}},null==t?t:t.concat(n))}function mn(n,e){var t=an(J++,7);return Nn(t.__H,e)&&(t.__=n(),t.__H=e,t.__h=n),t.__}function yn(n,e){return nn=8,mn(function(){return n},e)}function gn(n){var e=K.context[n.__c],t=an(J++,9);return t.c=n,e?(t.__??(t.__=!0,e.sub(K)),e.props.value):n.__}function bn(n,e){tn.useDebugValue&&tn.useDebugValue(e?e(n):n)}function kn(){var n=an(J++,11);if(!n.__){for(var e=K.__v;null!==e&&!e.__m&&null!==e.__;)e=e.__;var t=e.__m||(e.__m=[0,0]);n.__="P"+t[0]+"-"+t[1]++}return n.__}function Cn(){for(var n;n=en.shift();){var e=n.__H;if(n.__P&&e)try{e.__h.some(Sn),e.__h.some(Pn),e.__h=[]}catch(K){e.__h=[],tn.__e(K,n.__v)}}}tn.__b=function(n){K=null,_n&&_n(n)},tn.__=function(n,e){n&&e.__k&&e.__k.__m&&(n.__m=e.__k.__m),cn&&cn(n,e)},tn.__r=function(n){rn&&rn(n),J=0;var e=(K=n.__c).__H;e&&(Q===K?(e.__h=[],K.__h=[],e.__.some(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(e.__h.some(Sn),e.__h.some(Pn),e.__h=[],J=0)),Q=K},tn.diffed=function(n){on&&on(n);var e=n.__c;e&&e.__H&&(e.__H.__h.length&&(1!==en.push(e)&&X===tn.requestAnimationFrame||((X=tn.requestAnimationFrame)||xn)(Cn)),e.__H.__.some(function(n){n.u&&(n.__H=n.u),n.u=void 0})),Q=K=null},tn.__c=function(n,e){e.some(function(n){try{n.__h.some(Sn),n.__h=n.__h.filter(function(n){return!n.__||Pn(n)})}catch(K){e.some(function(n){n.__h&&(n.__h=[])}),e=[],tn.__e(K,n.__v)}}),un&&un(n,e)},tn.unmount=function(n){ln&&ln(n);var e,t=n.__c;t&&t.__H&&(t.__H.__.some(function(n){try{Sn(n)}catch(n){e=n}}),t.__H=void 0,e&&tn.__e(e,t.__v))};var wn="function"==typeof requestAnimationFrame;function xn(n){var e,t=function(){clearTimeout(_),wn&&cancelAnimationFrame(e),setTimeout(n)},_=setTimeout(t,35);wn&&(e=requestAnimationFrame(t))}function Sn(n){var e=K,t=n.__c;"function"==typeof t&&(n.__c=void 0,t()),K=e}function Pn(n){var e=K;n.__c=n.__(),K=e}function Nn(n,e){return!n||n.length!==e.length||e.some(function(e,t){return e!==n[t]})}function En(n,e){return"function"==typeof e?e(n):e}function Un(n,e){for(var t in e)n[t]=e[t];return n}function Rn(n,e){for(var t in n)if("__source"!==t&&!(t in e))return!0;for(var _ in e)if("__source"!==_&&n[_]!==e[_])return!0;return!1}function Hn(n,e){var t=e(),_=fn({t:{__:t,u:e}}),r=_[0].t,o=_[1];return dn(function(){r.__=t,r.u=e,Tn(r)&&o({t:r})},[n,t,e]),pn(function(){return Tn(r)&&o({t:r}),n(function(){Tn(r)&&o({t:r})})},[n]),t}function Tn(n){try{return!((e=n.__)===(t=n.u())&&(0!==e||1/e==1/t)||e!=e&&t!=t)}catch(n){return!0}var e,t}function Dn(n){n()}function On(n){return n}function An(){return[!1,Dn]}var Mn=dn;function Wn(n,e){this.props=n,this.context=e}function Fn(n,e){function t(n){var t=this.props.ref;return t!=n.ref&&t&&("function"==typeof t?t(null):t.current=null),e?!e(this.props,n)||t!=n.ref:Rn(this.props,n)}function _(e){return this.shouldComponentUpdate=t,k(n,e)}return _.displayName="Memo("+(n.displayName||n.name)+")",_.__f=_.prototype.isReactComponent=!0,_.type=n,_}(Wn.prototype=new S).isPureReactComponent=!0,Wn.prototype.shouldComponentUpdate=function(n,e){return Rn(this.props,n)||Rn(this.state,e)};var In=e.__b;e.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),In&&In(n)};var Ln="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Vn(n){function e(e){var t=Un({},e);return delete t.ref,n(t,e.ref||null)}return e.$$typeof=Ln,e.render=n,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(n.displayName||n.name)+")",e}var $n=function(n,e){return null==n?null:D(D(n).map(e))},Bn={map:$n,forEach:$n,count:function(n){return n?D(n).length:0},only:function(n){var e=D(n);if(1!==e.length)throw"Children.only";return e[0]},toArray:D},zn=e.__e;e.__e=function(n,e,t,_){if(n.then)for(var r,o=e;o=o.__;)if((r=o.__c)&&r.__c)return e.__e??(e.__e=t.__e,e.__k=t.__k),r.__c(n,e);zn(n,e,t,_)};var jn=e.unmount;function qn(n,e,t){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c()}),n.__c.__H=null),null!=(n=Un({},n)).__c&&(n.__c.__P===t&&(n.__c.__P=e),n.__c.__e=!0,n.__c=null),n.__k=n.__k&&n.__k.map(function(n){return qn(n,e,t)})),n}function Zn(n,e,t){return n&&t&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return Zn(n,e,t)}),n.__c&&n.__c.__P===e&&(n.__e&&t.appendChild(n.__e),n.__c.__e=!0,n.__c.__P=t)),n}function Yn(){this.__u=0,this.o=null,this.__b=null}function Gn(n){var e=n.__&&n.__.__c;return e&&e.__a&&e.__a(n)}function Jn(n){var e,t,_,r=null;function o(o){if(e||(e=n()).then(function(n){n&&(r=n.default||n),_=!0},function(n){t=n,_=!0}),t)throw t;if(!_)throw e;return r?k(r,o):null}return o.displayName="Lazy",o.__f=!0,o}function Kn(){this.i=null,this.l=null}e.unmount=function(n){var e=n.__c;e&&(e.__z=!0),e&&e.__R&&e.__R(),e&&32&n.__u&&(n.type=null),jn&&jn(n)},(Yn.prototype=new S).__c=function(n,e){var t=e.__c,_=this;_.o??=[],_.o.push(t);var r=Gn(_.__v),o=!1,u=function(){o||_.__z||(o=!0,t.__R=null,r?r(i):i())};t.__R=u;var l=t.__P;t.__P=null;var i=function(){if(! --_.__u){if(_.state.__a){var n=_.state.__a;_.__v.__k[0]=Zn(n,n.__c.__P,n.__c.__O)}var e;for(_.setState({__a:_.__b=null});e=_.o.pop();)e.__P=l,e.forceUpdate()}};_.__u++||32&e.__u||_.setState({__a:_.__b=_.__v.__k[0]}),n.then(u,u)},Yn.prototype.componentWillUnmount=function(){this.o=[]},Yn.prototype.render=function(n,e){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),_=this.__v.__k[0].__c;this.__v.__k[0]=qn(this.__b,t,_.__O=_.__P)}this.__b=null}var r=e.__a&&k(x,null,n.fallback);return r&&(r.__u&=-33),[k(x,null,e.__a?null:n.children),r]};var Qn=function(n,e,t){if(++t[1]===t[0]&&n.l.delete(e),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.l.size))for(t=n.i;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;n.i=t=t[2]}};function Xn(n){return this.getChildContext=function(){return n.context},n.children}function ne(n){var e=this,t=n.h;if(e.componentWillUnmount=function(){q(null,e.v),e.v=null,e.h=null},e.h&&e.h!==t&&e.componentWillUnmount(),!e.v){for(var _=e.__v;null!==_&&!_.__m&&null!==_.__;)_=_.__;e.h=t,e.v={nodeType:1,parentNode:t,childNodes:[],__k:{__m:_.__m},contains:function(){return!0},namespaceURI:t.namespaceURI,insertBefore:function(n,t){this.childNodes.push(n),e.h.insertBefore(n,t)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.h.removeChild(n)}}}q(k(Xn,{context:e.context},n.__v),e.v)}function ee(n,e){var t=k(ne,{__v:n,h:e});return t.containerInfo=e,t}(Kn.prototype=new S).__a=function(n){var e=this,t=Gn(e.__v),_=e.l.get(n);return _[0]++,function(r){var o=function(){e.props.revealOrder?(_.push(r),Qn(e,n,_)):r()};t?t(o):o()}},Kn.prototype.render=function(n){this.i=null,this.l=/* @__PURE__ */new Map;var e=D(n.children);n.revealOrder&&"b"===n.revealOrder[0]&&e.reverse();for(var t=e.length;t--;)this.l.set(e[t],this.i=[1,0,this.i]);return n.children},Kn.prototype.componentDidUpdate=Kn.prototype.componentDidMount=function(){var n=this;this.l.forEach(function(e,t){Qn(n,t,e)})};var te="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,_e=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,re=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,oe=/[A-Z0-9]/g,ue="undefined"!=typeof document,le=function(n){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(n)};S.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(n){Object.defineProperty(S.prototype,n,{configurable:!0,get:function(){return this["UNSAFE_"+n]},set:function(e){Object.defineProperty(this,n,{configurable:!0,writable:!0,value:e})}})});var ie=e.event;e.event=function(n){return ie&&(n=ie(n)),n.persist=function(){},n.isPropagationStopped=function(){return this.cancelBubble},n.isDefaultPrevented=function(){return this.defaultPrevented},n.nativeEvent=n};var ce,ae={configurable:!0,get:function(){return this.class}},fe=e.vnode;e.vnode=function(n){"string"==typeof n.type&&function(n){var e=n.props,t=n.type,_={},r=-1==t.indexOf("-");for(var o in e){var u=e[o];if(!("value"===o&&"defaultValue"in e&&null==u||ue&&"children"===o&&"noscript"===t||"class"===o||"className"===o)){var l=o.toLowerCase();"defaultValue"===o&&"value"in e&&null==e.value?o="value":"download"===o&&!0===u?u="":"translate"===l&&"no"===u?u=!1:"o"===l[0]&&"n"===l[1]?"ondoubleclick"===l?o="ondblclick":"onchange"!==l||"input"!==t&&"textarea"!==t||le(e.type)?"onfocus"===l?o="onfocusin":"onblur"===l?o="onfocusout":re.test(o)&&(o=l):l=o="oninput":r&&_e.test(o)?o=o.replace(oe,"-$&").toLowerCase():null===u&&(u=void 0),"oninput"===l&&_[o=l]&&(o="oninputCapture"),_[o]=u}}"select"==t&&(_.multiple&&Array.isArray(_.value)&&(_.value=D(e.children).forEach(function(n){n.props.selected=-1!=_.value.indexOf(n.props.value)})),null!=_.defaultValue&&(_.value=D(e.children).forEach(function(n){n.props.selected=_.multiple?-1!=_.defaultValue.indexOf(n.props.value):_.defaultValue==n.props.value}))),e.class&&!e.className?(_.class=e.class,Object.defineProperty(_,"className",ae)):e.className&&(_.class=_.className=e.className),n.props=_}(n),n.$$typeof=te,fe&&fe(n)};var se=e.__r;e.__r=function(n){se&&se(n),ce=n.__c};var pe=e.diffed;e.diffed=function(n){pe&&pe(n);var e=n.props,t=n.__e;null!=t&&"textarea"===n.type&&"value"in e&&e.value!==t.value&&(t.value=null==e.value?"":e.value),ce=null};var de={ReactCurrentDispatcher:{current:{readContext:function(n){return ce.__n[n.__c].props.value},useCallback:yn,useContext:gn,useDebugValue:bn,useDeferredValue:On,useEffect:pn,useId:kn,useImperativeHandle:vn,useInsertionEffect:Mn,useLayoutEffect:dn,useMemo:mn,useReducer:sn,useRef:hn,useState:fn,useSyncExternalStore:Hn,useTransition:An}}};function he(n){return!!n&&n.$$typeof===te}function ve(n){return he(n)?Y.apply(null,arguments):n}var me={useState:fn,useId:kn,useReducer:sn,useEffect:pn,useLayoutEffect:dn,useInsertionEffect:Mn,useTransition:An,useDeferredValue:On,useSyncExternalStore:Hn,startTransition:Dn,useRef:hn,useImperativeHandle:vn,useMemo:mn,useCallback:yn,useContext:gn,useDebugValue:bn,version:"18.3.1",Children:Bn,render:function(n,e,t){return e.__k??(e.textContent=""),q(n,e),"function"==typeof t&&t(),n?n.__c:null},hydrate:function(n,e,t){return Z(n,e),"function"==typeof t&&t(),n?n.__c:null},unmountComponentAtNode:function(n){return!!n.__k&&(q(null,n),!0)},createPortal:ee,createElement:k,createContext:G,createFactory:function(n){return k.bind(null,n)},cloneElement:ve,createRef:w,Fragment:x,isValidElement:he,isElement:he,isFragment:function(n){return he(n)&&n.type===x},isMemo:function(n){return!!n&&"string"==typeof n.displayName&&0==n.displayName.indexOf("Memo(")},findDOMNode:function(n){return n&&(n.base||1===n.nodeType&&n)||null},Component:S,PureComponent:Wn,memo:Fn,forwardRef:Vn,flushSync:function(n,t){var _=e.debounceRendering;e.debounceRendering=function(n){return n()};var r=n(t);return e.debounceRendering=_,r},unstable_batchedUpdates:function(n,e){return n(e)},StrictMode:x,Suspense:Yn,SuspenseList:Kn,lazy:Jn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:de},ye=0;function ge(n,t,_,r,o,u){t||(t={});var l,i,c=t;if("ref"in c)for(i in c={},t)"ref"==i?l=t[i]:c[i]=t[i];var a={type:n,props:c,key:_,ref:l,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--ye,__i:-1,__u:0,__source:o,__self:u};if("function"==typeof n&&(l=n.defaultProps))for(i in l)void 0===c[i]&&(c[i]=l[i]);return e.vnode&&e.vnode(a),a}Array.isArray;export{w as C,G as D,Y as E,k as O,D as S,x as T,sn as _,Wn as a,pn as b,me as c,Jn as d,hn as f,kn as g,fn as h,Vn as i,he as l,dn as m,ee as n,Fn as o,mn as p,Hn as r,Yn as s,ge as t,ve as u,yn as v,q as w,S as x,gn as y};
package/umd/rtH8O6Hc.js DELETED
@@ -1 +0,0 @@
1
- (function(){function t(i){return this instanceof t?(this._canvas=i="string"==typeof i?document.getElementById(i):i,this._ctx=i.getContext("2d"),this._width=i.width,this._height=i.height,this._max=1,void this.clear()):new t(i)}t.prototype={defaultRadius:25,defaultGradient:{.4:"blue",.6:"cyan",.7:"lime",.8:"yellow",1:"red"},data:function(t,i){return this._data=t,this},max:function(t){return this._max=t,this},add:function(t){return this._data.push(t),this},clear:function(){return this._data=[],this},radius:function(t,i){i=i||15;var a=this._circle=document.createElement("canvas"),s=a.getContext("2d"),e=this._r=t+i;return a.width=a.height=2*e,s.shadowOffsetX=s.shadowOffsetY=200,s.shadowBlur=i,s.shadowColor="black",s.beginPath(),s.arc(e-200,e-200,t,0,2*Math.PI,!0),s.closePath(),s.fill(),this},gradient:function(t){var i=document.createElement("canvas"),a=i.getContext("2d"),s=a.createLinearGradient(0,0,0,256);for(var e in i.width=1,i.height=256,t)s.addColorStop(e,t[e]);return a.fillStyle=s,a.fillRect(0,0,1,256),this._grad=a.getImageData(0,0,1,256).data,this},draw:function(t){this._circle||this.radius(this.defaultRadius),this._grad||this.gradient(this.defaultGradient);var i=this._ctx;i.clearRect(0,0,this._width,this._height);for(var a,s=0,e=this._data.length;e>s;s++)a=this._data[s],i.globalAlpha=Math.max(a[2]/this._max,t||.05),i.drawImage(this._circle,a[0]-this._r,a[1]-this._r);var n=i.getImageData(0,0,this._width,this._height);return this._colorize(n.data,this._grad),i.putImageData(n,0,0),this},_colorize:function(t,i){for(var a,s=3,e=t.length;e>s;s+=4)(a=4*t[s])&&(t[s-3]=i[a],t[s-2]=i[a+1],t[s-1]=i[a+2])}},window.simpleheat=t})(),L.HeatLayer=(L.Layer?L.Layer:L.Class).extend({initialize:function(t,i){this._latlngs=t,L.setOptions(this,i)},setLatLngs:function(t){return this._latlngs=t,this.redraw()},addLatLng:function(t){return this._latlngs.push(t),this.redraw()},setOptions:function(t){return L.setOptions(this,t),this._heat&&this._updateOptions(),this.redraw()},redraw:function(){return!this._heat||this._frame||this._map._animating||(this._frame=L.Util.requestAnimFrame(this._redraw,this)),this},onAdd:function(t){this._map=t,this._canvas||this._initCanvas(),t._panes.overlayPane.appendChild(this._canvas),t.on("moveend",this._reset,this),t.options.zoomAnimation&&L.Browser.any3d&&t.on("zoomanim",this._animateZoom,this),this._reset()},onRemove:function(t){t.getPanes().overlayPane.removeChild(this._canvas),t.off("moveend",this._reset,this),t.options.zoomAnimation&&t.off("zoomanim",this._animateZoom,this)},addTo:function(t){return t.addLayer(this),this},_initCanvas:function(){var t=this._canvas=L.DomUtil.create("canvas","leaflet-heatmap-layer leaflet-layer"),i=L.DomUtil.testProp(["transformOrigin","WebkitTransformOrigin","msTransformOrigin"]);t.style[i]="50% 50%";var a=this._map.getSize();t.width=a.x,t.height=a.y;var s=this._map.options.zoomAnimation&&L.Browser.any3d;L.DomUtil.addClass(t,"leaflet-zoom-"+(s?"animated":"hide")),this._heat=simpleheat(t),this._updateOptions()},_updateOptions:function(){this._heat.radius(this.options.radius||this._heat.defaultRadius,this.options.blur),this.options.gradient&&this._heat.gradient(this.options.gradient),this.options.max&&this._heat.max(this.options.max)},_reset:function(){var t=this._map.containerPointToLayerPoint([0,0]);L.DomUtil.setPosition(this._canvas,t);var i=this._map.getSize();this._heat._width!==i.x&&(this._canvas.width=this._heat._width=i.x),this._heat._height!==i.y&&(this._canvas.height=this._heat._height=i.y),this._redraw()},_redraw:function(){var t,i,a,s,e,n,h,o,r,d=[],_=this._heat._r,l=this._map.getSize(),m=new L.Bounds(L.point([-_,-_]),l.add([_,_])),c=void 0===this.options.max?1:this.options.max,u=void 0===this.options.maxZoom?this._map.getMaxZoom():this.options.maxZoom,f=1/Math.pow(2,Math.max(0,Math.min(u-this._map.getZoom(),12))),g=_/2,p=[],v=this._map._getMapPanePos(),w=v.x%g,y=v.y%g;for(t=0,i=this._latlngs.length;i>t;t++)a=this._map.latLngToContainerPoint(this._latlngs[t]),m.contains(a)&&(e=Math.floor((a.x-w)/g)+2,n=Math.floor((a.y-y)/g)+2,r=(void 0!==this._latlngs[t].alt?this._latlngs[t].alt:void 0!==this._latlngs[t][2]?+this._latlngs[t][2]:1)*f,p[n]=p[n]||[],(s=p[n][e])?(s[0]=(s[0]*s[2]+a.x*r)/(s[2]+r),s[1]=(s[1]*s[2]+a.y*r)/(s[2]+r),s[2]+=r):p[n][e]=[a.x,a.y,r]);for(t=0,i=p.length;i>t;t++)if(p[t])for(h=0,o=p[t].length;o>h;h++)(s=p[t][h])&&d.push([Math.round(s[0]),Math.round(s[1]),Math.min(s[2],c)]);this._heat.data(d).draw(this.options.minOpacity),this._frame=null},_animateZoom:function(t){var i=this._map.getZoomScale(t.zoom),a=this._map._getCenterOffset(t.center)._multiplyBy(-i).subtract(this._map._getMapPanePos());L.DomUtil.setTransform?L.DomUtil.setTransform(this._canvas,a,i):this._canvas.style[L.DomUtil.TRANSFORM]=L.DomUtil.getTranslateString(a)+" scale("+i+")"}}),L.heatLayer=function(t,i){return new L.HeatLayer(t,i)};
package/umd/u7SUQ9Kb2.js DELETED
@@ -1,7 +0,0 @@
1
- import{t as e}from"./qbHuxVSe.js";var a=a=>{switch(a){case"google":/* @__PURE__ */return e("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 48 48",className:"size-6",children:[
2
- /* @__PURE__ */e("path",{fill:"#ffc107",d:"M43.611 20.083H42V20H24v8h11.303c-1.649 4.657-6.08 8-11.303 8c-6.627 0-12-5.373-12-12s5.373-12 12-12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4C12.955 4 4 12.955 4 24s8.955 20 20 20s20-8.955 20-20c0-1.341-.138-2.65-.389-3.917"}),
3
- /* @__PURE__ */e("path",{fill:"#ff3d00",d:"m6.306 14.691l6.571 4.819C14.655 15.108 18.961 12 24 12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4C16.318 4 9.656 8.337 6.306 14.691"}),
4
- /* @__PURE__ */e("path",{fill:"#4caf50",d:"M24 44c5.166 0 9.86-1.977 13.409-5.192l-6.19-5.238A11.9 11.9 0 0 1 24 36c-5.202 0-9.619-3.317-11.283-7.946l-6.522 5.025C9.505 39.556 16.227 44 24 44"}),
5
- /* @__PURE__ */e("path",{fill:"#1976d2",d:"M43.611 20.083H42V20H24v8h11.303a12.04 12.04 0 0 1-4.087 5.571l.003-.002l6.19 5.238C36.971 39.205 44 34 44 24c0-1.341-.138-2.65-.389-3.917"})]});case"apple":/* @__PURE__ */return e("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",children:/* @__PURE__ */e("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47c-1.34.03-1.77-.79-3.29-.79c-1.53 0-2 .77-3.27.82c-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51c1.28-.02 2.5.87 3.29.87c.78 0 2.26-1.07 3.81-.91c.65.03 2.47.26 3.64 1.98c-.09.06-2.17 1.28-2.15 3.81c.03 3.02 2.65 4.03 2.68 4.04c-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5c.13 1.17-.34 2.35-1.04 3.19c-.69.85-1.83 1.51-2.95 1.42c-.15-1.15.41-2.35 1.05-3.11"})});default:return""}},c=({disabled:c,provider:l,onClick:r,loading:s,className:t})=>/* @__PURE__ */e("button",{disabled:c||s,onClick:async()=>{c||s||await(r?.())},className:t||"group h-12 rounded-full transition duration-300 disabled:cursor-not-allowed disabled:border-gray-500 disabled:opacity-50",children:/* @__PURE__ */e("div",s?{className:"flex h-full items-center justify-center",children:/* @__PURE__ */e("div",{className:"border-foreground h-5 w-5 animate-spin rounded-full border-2 border-b-transparent"})}:{className:"border-border flex items-center justify-center rounded border py-2",children:a(l)})});function l({className:a}){/* @__PURE__ */
6
- return e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:a,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */e("path",{fill:"currentColor",d:"M2 5.27L3.28 4L20 20.72L18.73 22l-3.08-3.08c-1.15.38-2.37.58-3.65.58c-5 0-9.27-3.11-11-7.5c.69-1.76 1.79-3.31 3.19-4.54zM12 9a3 3 0 0 1 3 3a3 3 0 0 1-.17 1L11 9.17A3 3 0 0 1 12 9m0-4.5c5 0 9.27 3.11 11 7.5a11.8 11.8 0 0 1-4 5.19l-1.42-1.43A9.86 9.86 0 0 0 20.82 12A9.82 9.82 0 0 0 12 6.5c-1.09 0-2.16.18-3.16.5L7.3 5.47c1.44-.62 3.03-.97 4.7-.97M3.18 12A9.82 9.82 0 0 0 12 17.5c.69 0 1.37-.07 2-.21L11.72 15A3.064 3.064 0 0 1 9 12.28L5.6 8.87c-.99.85-1.82 1.91-2.42 3.13"})})}function r({className:a}){/* @__PURE__ */
7
- return e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:a,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */e("path",{fill:"currentColor",d:"M12 9a3 3 0 0 1 3 3a3 3 0 0 1-3 3a3 3 0 0 1-3-3a3 3 0 0 1 3-3m0-4.5c5 0 9.27 3.11 11 7.5c-1.73 4.39-6 7.5-11 7.5S2.73 16.39 1 12c1.73-4.39 6-7.5 11-7.5M3.18 12a9.821 9.821 0 0 0 17.64 0a9.821 9.821 0 0 0-17.64 0"})})}export{l as n,c as r,r as t};
package/umd/we0Hcb5C.js DELETED
@@ -1,3 +0,0 @@
1
- import{f as e,t,v as n}from"./qbHuxVSe.js";import{N as r,c as o,l as a,n as s,r as i,u as c}from"./WtQ5axEj.js";import{n as l,t as d}from"./Bki5T_lb.js";function w({className:e}){/* @__PURE__ */
2
- return t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:e,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */t("path",{fill:"currentColor",d:"M12 7.125v7.8l3.15 1.925l-.825-3.6l2.775-2.4l-3.65-.325zm0 10.15l-4.15 2.5q-.275.175-.575.15t-.525-.2t-.35-.437t-.05-.588l1.1-4.725L3.775 10.8q-.25-.225-.312-.513t.037-.562t.3-.45t.55-.225l4.85-.425l1.875-4.45q.125-.3.388-.45t.537-.15t.537.15t.388.45l1.875 4.45l4.85.425q.35.05.55.225t.3.45t.038.563t-.313.512l-3.675 3.175l1.1 4.725q.075.325-.05.588t-.35.437t-.525.2t-.575-.15z"})})}function u({className:e}){/* @__PURE__ */
3
- return t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:e,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */t("path",{fill:"currentColor",d:"M12 20q-3.35 0-5.675-2.325T4 12t2.325-5.675T12 4t5.675 2.325T20 12t-2.325 5.675T12 20m0-2q2.5 0 4.25-1.75T18 12q0-.425-.062-.837t-.188-.813q-.375.075-.75.113t-.75.037q-1.575 0-3-.6T10.7 8.15q-.7 1.425-1.925 2.475T6 12.15q.075 2.45 1.812 4.15T12 18M6.4 9.85q1.1-.575 1.675-1.337T9.2 6.7q-.95.5-1.675 1.313T6.4 9.85m2.388 3.863Q8.5 13.425 8.5 13t.288-.712T9.5 12t.713.288t.287.712t-.288.713T9.5 14t-.712-.288M16.25 8.5h.3q.15 0 .3-.025q-.825-1.125-2.087-1.8T12 6h-.3q-.15 0-.275.025q.975 1.125 2.062 1.8t2.763.675m-2.463 5.213Q13.5 13.425 13.5 13t.288-.712T14.5 12t.713.288t.287.712t-.288.713T14.5 14t-.712-.288M1 5V3q0-.825.588-1.412T3 1h2q.425 0 .713.288T6 2t-.288.713T5 3H3v2q0 .425-.288.713T2 6t-.712-.288T1 5m4 18H3q-.825 0-1.412-.587T1 21v-2q0-.425.288-.712T2 18t.713.288T3 19v2h2q.425 0 .713.288T6 22t-.288.713T5 23m16 0h-2q-.425 0-.712-.288T18 22t.288-.712T19 21h2v-3h2v3q0 .825-.587 1.413T21 23m0-18V3h-2q-.425 0-.712-.288T18 2t.288-.712T19 1h2q.825 0 1.413.588T23 3v2q0 .425-.288.713T22 6t-.712-.288T21 5M9.2 6.7"})})}var m=null,p=!1,g=()=>m||(m=new Promise(e=>{if("undefined"==typeof window)return void e();if(window.googletag=window.googletag||{cmd:[]},document.querySelector('script[src*="gpt.js"]'))return void e();const t=document.createElement("script");t.src="https://securepubads.g.doubleclick.net/tag/js/gpt.js",t.async=!0,t.crossOrigin="anonymous",t.onload=()=>e(),t.onerror=()=>e(),document.head.appendChild(t)})),h=()=>{p||(p=!0,window.googletag.enableServices())},T=e=>{try{const t=(window.googletag.pubads().getSlots?.()??[]).find(t=>t.getSlotElementId?.()===e);t&&window.googletag.destroySlots([t])}catch{}},v=async()=>{const e=await i();return"string"==typeof e?e:e?.fingerprint},f=()=>{const t=e(null),{props:i,sessionId:w,user:u}=s(),m=i?.organizationId,p=e(null),g=e(null),h=n(async e=>{if(e&&(t.current||(t.current=await v()),t.current))try{await r.post(c.INCREMENT_EVENT_VIEW,{json:{eventSlug:e,browserFingerprint:t.current},headers:{"x-org-id":m,...u?{Authorization:`Bearer ${u.token}`}:{}}})}catch(n){console.error(n)}},[m,u]),T=n(async(e,n)=>{if(e&&n&&(t.current||(t.current=await v()),t.current))try{await r.post(c.UPDATE_AD_ANALYTICS,{json:{adId:e,type:n,browserFingerprint:t.current},headers:{"x-org-id":m}})}catch(o){console.error(o)}},[m]),f=n(async e=>T(e,o.AD_IMPRESSION),[T]),E=n(async e=>T(e,o.AD_ENGAGEMENT),[T]),I=n((e,t,n)=>{if(T(e,o.AD_CLICK),!n)return;const r=String(n);switch(t){case a.LINK:d(r,["http:","https:"])&&window.open(r,"_blank");break;case a.EMAIL:{const e=l(r);e&&(window.location.href=`mailto:${e}`);break}case a.PHONE:{const e=l(r);e&&(window.location.href=`tel:${e}`);break}case a.SMS:{const e=l(r);e&&(window.location.href=`sms:${e}`);break}case a.WHATSAPP:{const e=l(r);e&&(window.location.href=`https://wa.me/${encodeURIComponent(e)}`);break}case a.MESSENGER:{const e=l(r);e&&(window.location.href=`https://m.me/${encodeURIComponent(e)}`);break}default:d(r,["http:","https:"])&&window.open(r,"_blank")}},[T]),q=n(e=>{p.current&&g.current&&y([{page:p.current,entryTime:g.current,exitTime:Date.now()}]),p.current=e??null,g.current=Date.now()},[]),y=n(async e=>{if(w)try{await r.post(c.UPDATE_SESSION,{headers:{"x-org-id":m},json:{sessionId:w,pageViews:e}})}catch(t){console.error(t)}},[m,w]);return{incrementEventView:h,captureAdImpression:f,captureAdEngagement:E,captureAdClick:I,trackPageView:q,exportPageViewsData:y,trackGamAnalytics:n(async({eventId:e,organizationId:n,type:o,creativeId:a,lineItemId:s,advertiserId:i,isEmpty:l})=>{if(!e||!o)return;if(t.current||(t.current=await v()),!t.current)return;const d=n||m;if(d)try{await r.post(c.UPDATE_GAM_ANALYTICS,{json:{eventId:e,organizationId:d,type:o,browserFingerprint:t.current,...a?{creativeId:a}:{},...s?{lineItemId:s}:{},...i?{advertiserId:i}:{},...void 0!==l?{isEmpty:l}:{}},headers:{"x-org-id":d}})}catch(w){console.error(w)}},[m])}},E=({container:e,onClick:t})=>{let n=!1,r=!1,o=0,a=null;const s=()=>{n=!0,o=Date.now()},i=()=>{n=!1},c=()=>{null!==a&&(window.clearTimeout(a),a=null)},l=()=>{a=window.setTimeout(()=>{const a=document.activeElement,s=a instanceof HTMLIFrameElement&&e.contains(a),i=Date.now()-o<=1500;!r&&(s||n&&i)&&(r=!0,t())},0)};return e.addEventListener("pointerenter",s),e.addEventListener("pointerleave",i),window.addEventListener("blur",l),window.addEventListener("focus",c),()=>{e.removeEventListener("pointerenter",s),e.removeEventListener("pointerleave",i),window.removeEventListener("blur",l),window.removeEventListener("focus",c),null!==a&&window.clearTimeout(a)}};export{g as a,h as i,f as n,u as o,T as r,w as s,E as t};