@automattic/newspack-blocks 4.12.3 → 4.13.0

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 (37) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/carousel/view.asset.php +1 -1
  3. package/dist/carousel/view.js +3 -3
  4. package/dist/editor.asset.php +1 -1
  5. package/dist/editor.js +3 -3
  6. package/dist/modal.asset.php +1 -1
  7. package/dist/modal.js +1 -1
  8. package/dist/modalCheckout-rtl.css +1 -1
  9. package/dist/modalCheckout.asset.php +1 -1
  10. package/dist/modalCheckout.css +1 -1
  11. package/dist/modalCheckout.js +1 -1
  12. package/includes/class-modal-checkout.php +32 -106
  13. package/includes/class-newspack-blocks.php +4 -0
  14. package/includes/modal-checkout/class-checkout-data.php +287 -0
  15. package/includes/tracking/class-data-events.php +5 -140
  16. package/newspack-blocks.php +3 -2
  17. package/package.json +5 -5
  18. package/src/blocks/checkout-button/view.php +8 -42
  19. package/src/blocks/donate/frontend/class-newspack-blocks-donate-renderer-base.php +2 -2
  20. package/src/blocks/donate/frontend/class-newspack-blocks-donate-renderer-frequency-based.php +4 -28
  21. package/src/blocks/donate/frontend/class-newspack-blocks-donate-renderer-tiers-based.php +5 -17
  22. package/src/modal-checkout/analytics/ga4/checkout-attempt.js +3 -2
  23. package/src/modal-checkout/analytics/ga4/checkout-success.js +3 -3
  24. package/src/modal-checkout/analytics/ga4/dismissed.js +3 -3
  25. package/src/modal-checkout/analytics/ga4/loaded.js +3 -3
  26. package/src/modal-checkout/analytics/ga4/pagination.js +3 -2
  27. package/src/modal-checkout/analytics/ga4/utils/index.js +31 -17
  28. package/src/modal-checkout/analytics/index.js +1 -1
  29. package/src/modal-checkout/checkout.scss +2 -1
  30. package/src/modal-checkout/index.js +1 -1
  31. package/src/modal-checkout/modal.js +232 -253
  32. package/src/modal-checkout/templates/thankyou.php +3 -6
  33. package/src/modal-checkout/utils.js +126 -0
  34. package/vendor/autoload.php +1 -1
  35. package/vendor/composer/autoload_real.php +4 -4
  36. package/vendor/composer/autoload_static.php +2 -2
  37. package/vendor/composer/installed.php +2 -2
package/dist/editor.js CHANGED
@@ -1,8 +1,8 @@
1
1
  (()=>{var e={7677:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(6087);const s=(0,r.forwardRef)((function({icon:e,size:t=24,...n},s){return(0,r.cloneElement)(e,{width:t,height:t,...n,ref:s})}))},2391:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(5573),s=n(790);const a=(0,s.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(r.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})})},9223:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(5573),s=n(790);const a=(0,s.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(r.Path,{d:"m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z",fillRule:"evenodd",clipRule:"evenodd"})})},4161:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(5573),s=n(790);const a=(0,s.jsx)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)(r.Path,{d:"M10 4.5a1 1 0 11-2 0 1 1 0 012 0zm1.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm2.25 7.5v-1A2.75 2.75 0 0011 8.25H7A2.75 2.75 0 004.25 11v1h1.5v-1c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v1h1.5zM4 20h9v-1.5H4V20zm16-4H4v-1.5h16V16z",fillRule:"evenodd",clipRule:"evenodd"})})},1304:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(5573),s=n(790);const a=(0,s.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(r.Path,{d:"M4 18h6V6H4v12zm9-9.5V10h7V8.5h-7zm0 7h7V14h-7v1.5z"})})},875:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(5573),s=n(790);const a=(0,s.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(r.Path,{d:"M14 6v12h6V6h-6zM4 10h7V8.5H4V10zm0 5.5h7V14H4v1.5z"})})},3019:(e,t,n)=>{"use strict";n.d(t,{$A:()=>_,Ay:()=>k,MD:()=>y,dM:()=>x});var r=n(1455),s=n.n(r),a=n(4715),i=n(6427),o=n(6087),l=n(8537),c=n(7677),u=n(1304),d=n(875),p=n(2391),h=n(4161),f=n(7723),m=n(3832),g=n(2122),v=n(5858),b=n(7736),w=n(790);const y=[{value:"%",label:"%"},{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"}],_=[{value:"small",label:/* translators: label for small text size option */ /* translators: label for small text size option */(0,f.__)("Small","newspack-blocks"),shortName:/* translators: abbreviation for small text size option */ /* translators: abbreviation for small text size option */(0,f.__)("S","newspack-blocks")},{value:"medium",label:/* translators: label for medium text size option */ /* translators: label for medium text size option */(0,f.__)("Medium","newspack-blocks"),shortName:/* translators: abbreviation for medium text size option */ /* translators: abbreviation for medium text size option */(0,f.__)("M","newspack-blocks")},{value:"large",label:/* translators: label for small text size option */ /* translators: label for small text size option */(0,f.__)("Large","newspack-blocks"),shortName:/* translators: abbreviation for large text size option */ /* translators: abbreviation for large text size option */(0,f.__)("L","newspack-blocks")},{value:"extra-large",label:/* translators: label for extra-large text size option */ /* translators: label for extra-large text size option */(0,f.__)("Extra Large","newspack-blocks"),shortName:/* translators: abbreviation for small text size option */ /* translators: abbreviation for small text size option */(0,f.__)("XL","newspack-blocks")}],x=[{value:72,label:/* translators: label for small avatar size option */ /* translators: label for small avatar size option */(0,f.__)("Small","newspack-blocks"),shortName:/* translators: abbreviation for small avatar size option */ /* translators: abbreviation for small avatar size option */(0,f.__)("S","newspack-blocks")},{value:128,label:/* translators: label for medium avatar size option */ /* translators: label for medium avatar size option */(0,f.__)("Medium","newspack-blocks"),shortName:/* translators: abbreviation for medium avatar size option */ /* translators: abbreviation for medium avatar size option */(0,f.__)("M","newspack-blocks")},{value:192,label:/* translators: label for large avatar size option */ /* translators: label for large avatar size option */(0,f.__)("Large","newspack-blocks"),shortName:/* translators: abbreviation for large avatar size option */ /* translators: abbreviation for large avatar size option */(0,f.__)("L","newspack-blocks")},{value:256,label:/* translators: label for extra-large avatar size option */ /* translators: label for extra-large avatar size option */(0,f.__)("Extra-large","newspack-blocks"),shortName:/* translators: abbreviation for extra-large avatar size option */ /* translators: abbreviation for extra-large avatar size option */(0,f.__)("XL","newspack-blocks")}],k=({attributes:e,setAttributes:t})=>{const[n,r]=(0,o.useState)(null),[k,S]=(0,o.useState)(null),[E,j]=(0,o.useState)(null),[C,T]=(0,o.useState)(!1),[M,P]=(0,o.useState)(0),{authorId:A,isGuestAuthor:I,showSocial:O,showEmail:L,textSize:D,showAvatar:z,avatarAlignment:N,avatarBorderRadius:R,avatarSize:B,avatarHideDefault:$}=e;(0,o.useEffect)((()=>{0!==A&&F()}),[A,$,I]);const F=async()=>{j(null),T(!0);try{const e={author_id:A,is_guest_author:I?1:0,fields:"id,name,bio,email,social,avatar,url"};$&&(e.avatar_hide_default=1);const t=(await s()({path:(0,m.addQueryArgs)("/newspack-blocks/v1/authors",e)})).pop();if(!t)throw(0,f.sprintf)(/* translators: Error text for when no authors are found. */ /* translators: Error text for when no authors are found. */
2
2
  (0,f.__)("No authors or guest authors found for ID %s.","newspack-blocks"),A);r(t)}catch(e){j(e.message||e||(0,f.sprintf)(/* translators: Error text for when no authors are found. */ /* translators: Error text for when no authors are found. */
3
- (0,f.__)("No authors or guest authors found for ID %s.","newspack-blocks"),A))}T(!1)},H=O&&n&&n.social||{};return L&&n&&n.email?H.email=n.email:delete H.email,(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(a.InspectorControls,{children:[(0,w.jsxs)(i.PanelBody,{title:(0,f.__)("Author Profile Settings","newspack-blocks"),children:[(0,w.jsx)(i.BaseControl,{label:(0,f.__)("Text Size","newspack-blocks"),id:"newspack-blocks__text-size-control",children:(0,w.jsx)(i.PanelRow,{children:(0,w.jsx)(i.ButtonGroup,{id:"newspack-blocks__text-size-control-buttons","aria-label":(0,f.__)("Text Size","newspack-blocks"),children:_.map((e=>{const n=D===e.value;return(0,w.jsx)(i.Button,{isPrimary:n,"aria-pressed":n,"aria-label":e.label,onClick:()=>t({textSize:e.value}),children:e.shortName},e.value)}))})})}),(0,w.jsx)(v.P,{attributes:e,setAttributes:t})]}),(0,w.jsxs)(i.PanelBody,{title:(0,f.__)("Avatar Settings","newspack-blocks"),children:[(0,w.jsx)(i.PanelRow,{children:(0,w.jsx)(i.ToggleControl,{label:(0,f.__)("Display avatar","newspack-blocks"),checked:z,onChange:()=>t({showAvatar:!z})})}),z&&(0,w.jsx)(i.PanelRow,{children:(0,w.jsx)(i.ToggleControl,{label:(0,f.__)("Hide default avatar","newspack-blocks"),checked:$,onChange:()=>t({avatarHideDefault:!$})})}),z&&(0,w.jsx)(i.BaseControl,{label:(0,f.__)("Avatar size","newspack-blocks"),id:"newspack-blocks__avatar-size-control",children:(0,w.jsx)(i.PanelRow,{children:(0,w.jsx)(i.ButtonGroup,{id:"newspack-blocks__avatar-size-control-buttons","aria-label":(0,f.__)("Avatar size","newspack-blocks"),children:x.map((e=>{const n=B===e.value;return(0,w.jsx)(i.Button,{isPrimary:n,"aria-pressed":n,"aria-label":e.label,onClick:()=>t({avatarSize:e.value}),children:e.shortName},e.value)}))})})}),z&&(0,w.jsx)(i.PanelRow,{children:(0,w.jsx)(i.__experimentalUnitControl,{label:(0,f.__)("Avatar border radius","newspack-blocks"),labelPosition:"edge",__unstableInputWidth:"80px",units:y,value:R,onChange:e=>t({avatarBorderRadius:0>parseFloat(e)?"0":e})})})]})]}),n&&(0,w.jsxs)(a.BlockControls,{children:[z&&"is-style-center"!==e.className&&(0,w.jsx)(i.Toolbar,{controls:[{icon:(0,w.jsx)(c.A,{icon:u.A}),title:(0,f.__)("Show avatar on left","newspack-blocks"),isActive:"left"===N,onClick:()=>t({avatarAlignment:"left"})},{icon:(0,w.jsx)(c.A,{icon:d.A}),title:(0,f.__)("Show avatar on right","newspack-blocks"),isActive:"right"===N,onClick:()=>t({avatarAlignment:"right"})}]}),(0,w.jsx)(i.Toolbar,{controls:[{icon:(0,w.jsx)(c.A,{icon:p.A}),title:(0,f.__)("Edit selection","newspack-blocks"),onClick:()=>{t({authorId:0}),r(null)}}]})]}),n?(0,w.jsx)(g.S,{author:n,attributes:e}):(0,w.jsxs)(i.Placeholder,{className:"newspack-blocks-author-profile",icon:(0,w.jsx)(c.A,{icon:h.A}),label:(0,f.__)("Author Profile","newspack-blocks"),children:[E&&(0,w.jsx)(i.Notice,{status:"error",isDismissible:!1,children:E}),C&&(0,w.jsxs)("div",{className:"is-loading",children:[(0,f.__)("Fetching author info…","newspack-blocks"),(0,w.jsx)(i.Spinner,{})]}),!C&&(0,w.jsx)(b.IW,{label:(0,f.__)("Search for an author to display","newspack-blocks"),help:(0,f.__)("Begin typing name, click autocomplete result to select.","newspack-blocks"),fetchSuggestions:async(e=null,t=0)=>{if(S(null),A&&!E)return[];const n=await s()({parse:!1,path:(0,m.addQueryArgs)("/newspack-blocks/v1/authors",{search:e,offset:t,fields:"id,name"})}),r=parseInt(n.headers.get("x-wp-total")||0),a=await n.json();M||e||P(r);const i=a.map((e=>({value:e.id,label:(0,l.decodeEntities)(e.name)||(0,f.__)("(no name)","newspack-blocks"),isGuestAuthor:e.is_guest})));return S(i),i},maxItemsToSuggest:M,onChange:e=>{let n=!1;const r=e[0];k&&k.forEach((e=>{parseInt(r?.value)===parseInt(e?.value)&&e?.isGuestAuthor&&(n=!0)})),t({authorId:parseInt(r?.value||0),isGuestAuthor:n})},postTypeLabel:(0,f.__)("author","newspack-blocks"),postTypeLabelPlural:(0,f.__)("authors","newspack-blocks"),selectedItems:[]})]})]})}},2122:(e,t,n)=>{"use strict";n.d(t,{S:()=>u});var r=n(7723),s=n(6087);const a=window.wp.autop;var i=n(6942),o=n.n(i),l=n(790);const c=({author:e,children:t,showArchiveLink:n})=>n&&e&&e.url?(0,l.jsx)("a",{href:"#",className:"no-op",children:t}):(0,l.jsx)(l.Fragment,{children:t}),u=({author:e,attributes:t})=>{const{showBio:n,showSocial:i,showEmail:u,showArchiveLink:d,showAvatar:p,textSize:h,avatarAlignment:f,avatarBorderRadius:m,avatarSize:g}=t,v=i&&e&&e.social||{};u&&e&&e.email?v.email=e.email:delete v.email,t.shownewspack_phone_number&&e&&e.newspack_phone_number?v.newspack_phone_number=e.newspack_phone_number:delete v.newspack_phone_number;const b=[t.shownewspack_role&&e.newspack_role,t.shownewspack_employer&&e.newspack_employer].filter(Boolean).join(", "),w=Object.keys(v);return(0,l.jsxs)("div",{className:o()("wp-block-newspack-blocks-author-profile","avatar-"+f,"text-size-"+h,{"is-style-center":"is-style-center"===t.className}),children:[p&&e.avatar&&(0,l.jsx)("div",{className:"wp-block-newspack-blocks-author-profile__avatar",children:(0,l.jsx)("figure",{style:{borderRadius:m,height:`${g}px`,width:`${g}px`},dangerouslySetInnerHTML:{__html:e.avatar}})}),(0,l.jsxs)("div",{className:"wp-block-newspack-blocks-author-profile__bio",children:[(0,l.jsx)("h3",{children:(0,l.jsx)(c,{author:e,showArchiveLink:d,children:e.name})}),t.shownewspack_job_title&&e.newspack_job_title&&(0,l.jsx)("p",{className:"wp-block-newspack-blocks-author-profile__job-title",children:e.newspack_job_title}),b&&(0,l.jsx)("p",{className:"wp-block-newspack-blocks-author-profile__employment",children:b}),n&&e.bio&&(0,l.jsxs)("p",{children:[(0,l.jsxs)(s.RawHTML,{children:[(0,a.autop)(e.bio)," "]}),d&&(0,l.jsx)("a",{href:"#",className:"no-op",children:(0,r.__)("More by","newspack-blocks")+" "+e.name})]}),0!==w.length&&(0,l.jsx)("ul",{className:"wp-block-newspack-blocks-author-profile__social-links",children:w.map((e=>(0,l.jsx)("li",{children:(0,l.jsxs)("a",{href:"#",className:"no-op",children:[v[e].svg&&(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:v[e].svg}}),(0,l.jsx)("span",{className:v[e].svg?"hidden":"visible",children:e})]})},e)))})]})]})}},1589:(e,t,n)=>{"use strict";n.d(t,{UU:()=>Ve,W0:()=>We});var r=n(6427),s=n(7723),a=n(8468),i=n(6942),o=n.n(i),l=n(4715);const c=window.wp.date;var u=n(6087),d=n(7143),p=n(9491),h=n(8537),f=n(1225),m=n(766);const g=window.wp.a11y,v=window.wp.escapeHtml;function b(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function w(e,t){void 0===e&&(e={}),void 0===t&&(t={});const n=["__proto__","constructor","prototype"];Object.keys(t).filter((e=>n.indexOf(e)<0)).forEach((n=>{void 0===e[n]?e[n]=t[n]:b(t[n])&&b(e[n])&&Object.keys(t[n]).length>0&&w(e[n],t[n])}))}const y={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function _(){const e="undefined"!=typeof document?document:{};return w(e,y),e}const x={document:y,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function k(){const e="undefined"!=typeof window?window:{};return w(e,x),e}function S(e){return void 0===e&&(e=""),e.trim().split(" ").filter((e=>!!e.trim()))}function E(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function j(){return Date.now()}function C(e,t){void 0===t&&(t="x");const n=k();let r,s,a;const i=function(e){const t=k();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}(e);return n.WebKitCSSMatrix?(s=i.transform||i.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map((e=>e.replace(",","."))).join(", ")),a=new n.WebKitCSSMatrix("none"===s?"":s)):(a=i.MozTransform||i.OTransform||i.MsTransform||i.msTransform||i.transform||i.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=a.toString().split(",")),"x"===t&&(s=n.WebKitCSSMatrix?a.m41:16===r.length?parseFloat(r[12]):parseFloat(r[4])),"y"===t&&(s=n.WebKitCSSMatrix?a.m42:16===r.length?parseFloat(r[13]):parseFloat(r[5])),s||0}function T(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function M(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let r=1;r<arguments.length;r+=1){const s=r<0||arguments.length<=r?void 0:arguments[r];if(null!=s&&(n=s,!("undefined"!=typeof window&&void 0!==window.HTMLElement?n instanceof HTMLElement:n&&(1===n.nodeType||11===n.nodeType)))){const n=Object.keys(Object(s)).filter((e=>t.indexOf(e)<0));for(let t=0,r=n.length;t<r;t+=1){const r=n[t],a=Object.getOwnPropertyDescriptor(s,r);void 0!==a&&a.enumerable&&(T(e[r])&&T(s[r])?s[r].__swiper__?e[r]=s[r]:M(e[r],s[r]):!T(e[r])&&T(s[r])?(e[r]={},s[r].__swiper__?e[r]=s[r]:M(e[r],s[r])):e[r]=s[r])}}}var n;return e}function P(e,t,n){e.style.setProperty(t,n)}function A(e){let{swiper:t,targetPosition:n,side:r}=e;const s=k(),a=-t.translate;let i,o=null;const l=t.params.speed;t.wrapperEl.style.scrollSnapType="none",s.cancelAnimationFrame(t.cssModeFrameID);const c=n>a?"next":"prev",u=(e,t)=>"next"===c&&e>=t||"prev"===c&&e<=t,d=()=>{i=(new Date).getTime(),null===o&&(o=i);const e=Math.max(Math.min((i-o)/l,1),0),c=.5-Math.cos(e*Math.PI)/2;let p=a+c*(n-a);if(u(p,n)&&(p=n),t.wrapperEl.scrollTo({[r]:p}),u(p,n))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout((()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[r]:p})})),void s.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=s.requestAnimationFrame(d)};d()}function I(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function O(e,t){void 0===t&&(t="");const n=k(),r=[...e.children];return n.HTMLSlotElement&&e instanceof HTMLSlotElement&&r.push(...e.assignedElements()),t?r.filter((e=>e.matches(t))):r}function L(e){try{return void console.warn(e)}catch(e){}}function D(e,t){void 0===t&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:S(t)),n}function z(e){const t=k(),n=_(),r=e.getBoundingClientRect(),s=n.body,a=e.clientTop||s.clientTop||0,i=e.clientLeft||s.clientLeft||0,o=e===t?t.scrollY:e.scrollTop,l=e===t?t.scrollX:e.scrollLeft;return{top:r.top+o-a,left:r.left+l-i}}function N(e,t){return k().getComputedStyle(e,null).getPropertyValue(t)}function R(e){let t,n=e;if(n){for(t=0;null!==(n=n.previousSibling);)1===n.nodeType&&(t+=1);return t}}function B(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function $(e,t){t&&e.addEventListener("transitionend",(function n(r){r.target===e&&(t.call(e,r),e.removeEventListener("transitionend",n))}))}function F(e,t,n){const r=k();return n?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function H(e){return(Array.isArray(e)?e:[e]).filter((e=>!!e))}function q(e){return t=>Math.abs(t)>0&&e.browser&&e.browser.need3dFix&&Math.abs(t)%90==0?t+.001:t}let V,U,G;function W(){return V||(V=function(){const e=k(),t=_();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),V}function Y(e){return void 0===e&&(e={}),U||(U=function(e){let{userAgent:t}=void 0===e?{}:e;const n=W(),r=k(),s=r.navigator.platform,a=t||r.navigator.userAgent,i={ios:!1,android:!1},o=r.screen.width,l=r.screen.height,c=a.match(/(Android);?[\s\/]+([\d.]+)?/);let u=a.match(/(iPad).*OS\s([\d_]+)/);const d=a.match(/(iPod)(.*OS\s([\d_]+))?/),p=!u&&a.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h="Win32"===s;let f="MacIntel"===s;return!u&&f&&n.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${o}x${l}`)>=0&&(u=a.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),f=!1),c&&!h&&(i.os="android",i.android=!0),(u||p||d)&&(i.os="ios",i.ios=!0),i}(e)),U}function X(){return G||(G=function(){const e=k(),t=Y();let n=!1;function r(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(r()){const t=String(e.navigator.userAgent);if(t.includes("Version/")){const[e,r]=t.split("Version/")[1].split(" ")[0].split(".").map((e=>Number(e)));n=e<16||16===e&&r<2}}const s=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),a=r();return{isSafari:n||a,needPerspectiveFix:n,need3dFix:a||s&&t.ios,isWebView:s}}()),G}var K={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!=typeof t)return r;const s=n?"unshift":"push";return e.split(" ").forEach((e=>{r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][s](t)})),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!=typeof t)return r;function s(){r.off(e,s),s.__emitterProxy&&delete s.__emitterProxy;for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];t.apply(r,a)}return s.__emitterProxy=t,r.on(e,s,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof e)return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed?n:n.eventsListeners?(e.split(" ").forEach((e=>{void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach(((r,s)=>{(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&n.eventsListeners[e].splice(s,1)}))})),n):n},emit(){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let t,n,r;for(var s=arguments.length,a=new Array(s),i=0;i<s;i++)a[i]=arguments[i];return"string"==typeof a[0]||Array.isArray(a[0])?(t=a[0],n=a.slice(1,a.length),r=e):(t=a[0].events,n=a[0].data,r=a[0].context||e),n.unshift(r),(Array.isArray(t)?t:t.split(" ")).forEach((t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach((e=>{e.apply(r,[t,...n])})),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach((e=>{e.apply(r,n)}))})),e}};const J=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)},Q=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)},Z=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(n){let t=n.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(n.shadowRoot?t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame((()=>{n.shadowRoot&&(t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&t.remove())}))),t&&t.remove()}},ee=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},te=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),s=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const n=s,a=[n-t];return a.push(...Array.from({length:t}).map(((e,t)=>n+r+t))),void e.slides.forEach(((t,n)=>{a.includes(t.column)&&ee(e,n)}))}const a=s+r-1;if(e.params.rewind||e.params.loop)for(let r=s-t;r<=a+t;r+=1){const t=(r%n+n)%n;(t<s||t>a)&&ee(e,t)}else for(let r=Math.max(s-t,0);r<=Math.min(a+t,n-1);r+=1)r!==s&&(r>a||r<s)&&ee(e,r)};var ne={updateSize:function(){const e=this;let t,n;const r=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:r.clientWidth,n=void 0!==e.params.height&&null!==e.params.height?e.params.height:r.clientHeight,0===t&&e.isHorizontal()||0===n&&e.isVertical()||(t=t-parseInt(N(r,"padding-left")||0,10)-parseInt(N(r,"padding-right")||0,10),n=n-parseInt(N(r,"padding-top")||0,10)-parseInt(N(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))},updateSlides:function(){const e=this;function t(t,n){return parseFloat(t.getPropertyValue(e.getDirectionLabel(n))||0)}const n=e.params,{wrapperEl:r,slidesEl:s,size:a,rtlTranslate:i,wrongRTL:o}=e,l=e.virtual&&n.virtual.enabled,c=l?e.virtual.slides.length:e.slides.length,u=O(s,`.${e.params.slideClass}, swiper-slide`),d=l?e.virtual.slides.length:u.length;let p=[];const h=[],f=[];let m=n.slidesOffsetBefore;"function"==typeof m&&(m=n.slidesOffsetBefore.call(e));let g=n.slidesOffsetAfter;"function"==typeof g&&(g=n.slidesOffsetAfter.call(e));const v=e.snapGrid.length,b=e.slidesGrid.length;let w=n.spaceBetween,y=-m,_=0,x=0;if(void 0===a)return;"string"==typeof w&&w.indexOf("%")>=0?w=parseFloat(w.replace("%",""))/100*a:"string"==typeof w&&(w=parseFloat(w)),e.virtualSize=-w,u.forEach((e=>{i?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""})),n.centeredSlides&&n.cssMode&&(P(r,"--swiper-centered-offset-before",""),P(r,"--swiper-centered-offset-after",""));const k=n.grid&&n.grid.rows>1&&e.grid;let S;k?e.grid.initSlides(u):e.grid&&e.grid.unsetSlides();const E="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter((e=>void 0!==n.breakpoints[e].slidesPerView)).length>0;for(let r=0;r<d;r+=1){let s;if(S=0,u[r]&&(s=u[r]),k&&e.grid.updateSlide(r,s,u),!u[r]||"none"!==N(s,"display")){if("auto"===n.slidesPerView){E&&(u[r].style[e.getDirectionLabel("width")]="");const a=getComputedStyle(s),i=s.style.transform,o=s.style.webkitTransform;if(i&&(s.style.transform="none"),o&&(s.style.webkitTransform="none"),n.roundLengths)S=e.isHorizontal()?F(s,"width",!0):F(s,"height",!0);else{const e=t(a,"width"),n=t(a,"padding-left"),r=t(a,"padding-right"),i=t(a,"margin-left"),o=t(a,"margin-right"),l=a.getPropertyValue("box-sizing");if(l&&"border-box"===l)S=e+i+o;else{const{clientWidth:t,offsetWidth:a}=s;S=e+n+r+i+o+(a-t)}}i&&(s.style.transform=i),o&&(s.style.webkitTransform=o),n.roundLengths&&(S=Math.floor(S))}else S=(a-(n.slidesPerView-1)*w)/n.slidesPerView,n.roundLengths&&(S=Math.floor(S)),u[r]&&(u[r].style[e.getDirectionLabel("width")]=`${S}px`);u[r]&&(u[r].swiperSlideSize=S),f.push(S),n.centeredSlides?(y=y+S/2+_/2+w,0===_&&0!==r&&(y=y-a/2-w),0===r&&(y=y-a/2-w),Math.abs(y)<.001&&(y=0),n.roundLengths&&(y=Math.floor(y)),x%n.slidesPerGroup==0&&p.push(y),h.push(y)):(n.roundLengths&&(y=Math.floor(y)),(x-Math.min(e.params.slidesPerGroupSkip,x))%e.params.slidesPerGroup==0&&p.push(y),h.push(y),y=y+S+w),e.virtualSize+=S+w,_=S,x+=1}}if(e.virtualSize=Math.max(e.virtualSize,a)+g,i&&o&&("slide"===n.effect||"coverflow"===n.effect)&&(r.style.width=`${e.virtualSize+w}px`),n.setWrapperSize&&(r.style[e.getDirectionLabel("width")]=`${e.virtualSize+w}px`),k&&e.grid.updateWrapperSize(S,p),!n.centeredSlides){const t=[];for(let r=0;r<p.length;r+=1){let s=p[r];n.roundLengths&&(s=Math.floor(s)),p[r]<=e.virtualSize-a&&t.push(s)}p=t,Math.floor(e.virtualSize-a)-Math.floor(p[p.length-1])>1&&p.push(e.virtualSize-a)}if(l&&n.loop){const t=f[0]+w;if(n.slidesPerGroup>1){const r=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),s=t*n.slidesPerGroup;for(let e=0;e<r;e+=1)p.push(p[p.length-1]+s)}for(let r=0;r<e.virtual.slidesBefore+e.virtual.slidesAfter;r+=1)1===n.slidesPerGroup&&p.push(p[p.length-1]+t),h.push(h[h.length-1]+t),e.virtualSize+=t}if(0===p.length&&(p=[0]),0!==w){const t=e.isHorizontal()&&i?"marginLeft":e.getDirectionLabel("marginRight");u.filter(((e,t)=>!(n.cssMode&&!n.loop)||t!==u.length-1)).forEach((e=>{e.style[t]=`${w}px`}))}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;f.forEach((t=>{e+=t+(w||0)})),e-=w;const t=e>a?e-a:0;p=p.map((e=>e<=0?-m:e>t?t+g:e))}if(n.centerInsufficientSlides){let e=0;f.forEach((t=>{e+=t+(w||0)})),e-=w;const t=(n.slidesOffsetBefore||0)+(n.slidesOffsetAfter||0);if(e+t<a){const n=(a-e-t)/2;p.forEach(((e,t)=>{p[t]=e-n})),h.forEach(((e,t)=>{h[t]=e+n}))}}if(Object.assign(e,{slides:u,snapGrid:p,slidesGrid:h,slidesSizesGrid:f}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){P(r,"--swiper-centered-offset-before",-p[0]+"px"),P(r,"--swiper-centered-offset-after",e.size/2-f[f.length-1]/2+"px");const t=-e.snapGrid[0],n=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+n))}if(d!==c&&e.emit("slidesLengthChange"),p.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==b&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(l||n.cssMode||"slide"!==n.effect&&"fade"!==n.effect)){const t=`${n.containerModifierClass}backface-hidden`,r=e.el.classList.contains(t);d<=n.maxBackfaceHiddenSlides?r||e.el.classList.add(t):r&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let s,a=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const i=e=>r?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach((e=>{n.push(e)}));else for(s=0;s<Math.ceil(t.params.slidesPerView);s+=1){const e=t.activeIndex+s;if(e>t.slides.length&&!r)break;n.push(i(e))}else n.push(i(t.activeIndex));for(s=0;s<n.length;s+=1)if(void 0!==n[s]){const e=n[s].offsetHeight;a=e>a?e:a}(a||0===a)&&(t.wrapperEl.style.height=`${a}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);const t=this,n=t.params,{slides:r,rtlTranslate:s,snapGrid:a}=t;if(0===r.length)return;void 0===r[0].swiperSlideOffset&&t.updateSlidesOffset();let i=-e;s&&(i=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let o=n.spaceBetween;"string"==typeof o&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*t.size:"string"==typeof o&&(o=parseFloat(o));for(let e=0;e<r.length;e+=1){const l=r[e];let c=l.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(c-=r[0].swiperSlideOffset);const u=(i+(n.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+o),d=(i-a[0]+(n.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+o),p=-(i-c),h=p+t.slidesSizesGrid[e],f=p>=0&&p<=t.size-t.slidesSizesGrid[e],m=p>=0&&p<t.size-1||h>1&&h<=t.size||p<=0&&h>=t.size;m&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e)),J(l,m,n.slideVisibleClass),J(l,f,n.slideFullyVisibleClass),l.progress=s?-u:u,l.originalProgress=s?-d:d}},updateProgress:function(e){const t=this;if(void 0===e){const n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:s,isBeginning:a,isEnd:i,progressLoop:o}=t;const l=a,c=i;if(0===r)s=0,a=!0,i=!0;else{s=(e-t.minTranslate())/r;const n=Math.abs(e-t.minTranslate())<1,o=Math.abs(e-t.maxTranslate())<1;a=n||s<=0,i=o||s>=1,n&&(s=0),o&&(s=1)}if(n.loop){const n=t.getSlideIndexByData(0),r=t.getSlideIndexByData(t.slides.length-1),s=t.slidesGrid[n],a=t.slidesGrid[r],i=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);o=l>=s?(l-s)/i:(l+i-a)/i,o>1&&(o-=1)}Object.assign(t,{progress:s,progressLoop:o,isBeginning:a,isEnd:i}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),a&&!l&&t.emit("reachBeginning toEdge"),i&&!c&&t.emit("reachEnd toEdge"),(l&&!a||c&&!i)&&t.emit("fromEdge"),t.emit("progress",s)},updateSlidesClasses:function(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:s}=e,a=e.virtual&&n.virtual.enabled,i=e.grid&&n.grid&&n.grid.rows>1,o=e=>O(r,`.${n.slideClass}${e}, swiper-slide${e}`)[0];let l,c,u;if(a)if(n.loop){let t=s-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),l=o(`[data-swiper-slide-index="${t}"]`)}else l=o(`[data-swiper-slide-index="${s}"]`);else i?(l=t.find((e=>e.column===s)),u=t.find((e=>e.column===s+1)),c=t.find((e=>e.column===s-1))):l=t[s];l&&(i||(u=function(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!u&&(u=t[0]),c=function(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&0===!c&&(c=t[t.length-1]))),t.forEach((e=>{Q(e,e===l,n.slideActiveClass),Q(e,e===u,n.slideNextClass),Q(e,e===c,n.slidePrevClass)})),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:s,activeIndex:a,realIndex:i,snapIndex:o}=t;let l,c=e;const u=e=>{let n=e-t.virtual.slidesBefore;return n<0&&(n=t.virtual.slides.length+n),n>=t.virtual.slides.length&&(n-=t.virtual.slides.length),n};if(void 0===c&&(c=function(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let s;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?r>=t[e]&&r<t[e+1]-(t[e+1]-t[e])/2?s=e:r>=t[e]&&r<t[e+1]&&(s=e+1):r>=t[e]&&(s=e);return n.normalizeSlideIndex&&(s<0||void 0===s)&&(s=0),s}(t)),r.indexOf(n)>=0)l=r.indexOf(n);else{const e=Math.min(s.slidesPerGroupSkip,c);l=e+Math.floor((c-e)/s.slidesPerGroup)}if(l>=r.length&&(l=r.length-1),c===a&&!t.params.loop)return void(l!==o&&(t.snapIndex=l,t.emit("snapIndexChange")));if(c===a&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=u(c));const d=t.grid&&s.grid&&s.grid.rows>1;let p;if(t.virtual&&s.virtual.enabled&&s.loop)p=u(c);else if(d){const e=t.slides.find((e=>e.column===c));let n=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(n)&&(n=Math.max(t.slides.indexOf(e),0)),p=Math.floor(n/s.grid.rows)}else if(t.slides[c]){const e=t.slides[c].getAttribute("data-swiper-slide-index");p=e?parseInt(e,10):c}else p=c;Object.assign(t,{previousSnapIndex:o,snapIndex:l,previousRealIndex:i,realIndex:p,previousIndex:a,activeIndex:c}),t.initialized&&te(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(i!==p&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const n=this,r=n.params;let s=e.closest(`.${r.slideClass}, swiper-slide`);!s&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach((e=>{!s&&e.matches&&e.matches(`.${r.slideClass}, swiper-slide`)&&(s=e)}));let a,i=!1;if(s)for(let e=0;e<n.slides.length;e+=1)if(n.slides[e]===s){i=!0,a=e;break}if(!s||!i)return n.clickedSlide=void 0,void(n.clickedIndex=void 0);n.clickedSlide=s,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(s.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=a,r.slideToClickedSlide&&void 0!==n.clickedIndex&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}};function re(e){let{swiper:t,runCallbacks:n,direction:r,step:s}=e;const{activeIndex:a,previousIndex:i}=t;let o=r;if(o||(o=a>i?"next":a<i?"prev":"reset"),t.emit(`transition${s}`),n&&a!==i){if("reset"===o)return void t.emit(`slideResetTransition${s}`);t.emit(`slideChangeTransition${s}`),"next"===o?t.emit(`slideNextTransition${s}`):t.emit(`slidePrevTransition${s}`)}}var se={slideTo:function(e,t,n,r,s){void 0===e&&(e=0),void 0===n&&(n=!0),"string"==typeof e&&(e=parseInt(e,10));const a=this;let i=e;i<0&&(i=0);const{params:o,snapGrid:l,slidesGrid:c,previousIndex:u,activeIndex:d,rtlTranslate:p,wrapperEl:h,enabled:f}=a;if(!f&&!r&&!s||a.destroyed||a.animating&&o.preventInteractionOnTransition)return!1;void 0===t&&(t=a.params.speed);const m=Math.min(a.params.slidesPerGroupSkip,i);let g=m+Math.floor((i-m)/a.params.slidesPerGroup);g>=l.length&&(g=l.length-1);const v=-l[g];if(o.normalizeSlideIndex)for(let e=0;e<c.length;e+=1){const t=-Math.floor(100*v),n=Math.floor(100*c[e]),r=Math.floor(100*c[e+1]);void 0!==c[e+1]?t>=n&&t<r-(r-n)/2?i=e:t>=n&&t<r&&(i=e+1):t>=n&&(i=e)}if(a.initialized&&i!==d){if(!a.allowSlideNext&&(p?v>a.translate&&v>a.minTranslate():v<a.translate&&v<a.minTranslate()))return!1;if(!a.allowSlidePrev&&v>a.translate&&v>a.maxTranslate()&&(d||0)!==i)return!1}let b;i!==(u||0)&&n&&a.emit("beforeSlideChangeStart"),a.updateProgress(v),b=i>d?"next":i<d?"prev":"reset";const w=a.virtual&&a.params.virtual.enabled;if((!w||!s)&&(p&&-v===a.translate||!p&&v===a.translate))return a.updateActiveIndex(i),o.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),"slide"!==o.effect&&a.setTranslate(v),"reset"!==b&&(a.transitionStart(n,b),a.transitionEnd(n,b)),!1;if(o.cssMode){const e=a.isHorizontal(),n=p?v:-v;if(0===t)w&&(a.wrapperEl.style.scrollSnapType="none",a._immediateVirtual=!0),w&&!a._cssModeVirtualInitialSet&&a.params.initialSlide>0?(a._cssModeVirtualInitialSet=!0,requestAnimationFrame((()=>{h[e?"scrollLeft":"scrollTop"]=n}))):h[e?"scrollLeft":"scrollTop"]=n,w&&requestAnimationFrame((()=>{a.wrapperEl.style.scrollSnapType="",a._immediateVirtual=!1}));else{if(!a.support.smoothScroll)return A({swiper:a,targetPosition:n,side:e?"left":"top"}),!0;h.scrollTo({[e?"left":"top"]:n,behavior:"smooth"})}return!0}const y=X().isSafari;return w&&!s&&y&&a.isElement&&a.virtual.update(!1,!1,i),a.setTransition(t),a.setTranslate(v),a.updateActiveIndex(i),a.updateSlidesClasses(),a.emit("beforeTransitionStart",t,r),a.transitionStart(n,b),0===t?a.transitionEnd(n,b):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(n,b))}),a.wrapperEl.addEventListener("transitionend",a.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,n,r){void 0===e&&(e=0),void 0===n&&(n=!0),"string"==typeof e&&(e=parseInt(e,10));const s=this;if(s.destroyed)return;void 0===t&&(t=s.params.speed);const a=s.grid&&s.params.grid&&s.params.grid.rows>1;let i=e;if(s.params.loop)if(s.virtual&&s.params.virtual.enabled)i+=s.virtual.slidesBefore;else{let e;if(a){const t=i*s.params.grid.rows;e=s.slides.find((e=>1*e.getAttribute("data-swiper-slide-index")===t)).column}else e=s.getSlideIndexByData(i);const t=a?Math.ceil(s.slides.length/s.params.grid.rows):s.slides.length,{centeredSlides:n}=s.params;let o=s.params.slidesPerView;"auto"===o?o=s.slidesPerViewDynamic():(o=Math.ceil(parseFloat(s.params.slidesPerView,10)),n&&o%2==0&&(o+=1));let l=t-e<o;if(n&&(l=l||e<Math.ceil(o/2)),r&&n&&"auto"!==s.params.slidesPerView&&!a&&(l=!1),l){const r=n?e<s.activeIndex?"prev":"next":e-s.activeIndex-1<s.params.slidesPerView?"next":"prev";s.loopFix({direction:r,slideTo:!0,activeSlideIndex:"next"===r?e+1:e-t+1,slideRealIndex:"next"===r?s.realIndex:void 0})}if(a){const e=i*s.params.grid.rows;i=s.slides.find((t=>1*t.getAttribute("data-swiper-slide-index")===e)).column}else i=s.getSlideIndexByData(i)}return requestAnimationFrame((()=>{s.slideTo(i,t,n,r)})),s},slideNext:function(e,t,n){void 0===t&&(t=!0);const r=this,{enabled:s,params:a,animating:i}=r;if(!s||r.destroyed)return r;void 0===e&&(e=r.params.speed);let o=a.slidesPerGroup;"auto"===a.slidesPerView&&1===a.slidesPerGroup&&a.slidesPerGroupAuto&&(o=Math.max(r.slidesPerViewDynamic("current",!0),1));const l=r.activeIndex<a.slidesPerGroupSkip?1:o,c=r.virtual&&a.virtual.enabled;if(a.loop){if(i&&!c&&a.loopPreventsSliding)return!1;if(r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft,r.activeIndex===r.slides.length-1&&a.cssMode)return requestAnimationFrame((()=>{r.slideTo(r.activeIndex+l,e,t,n)})),!0}return a.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+l,e,t,n)},slidePrev:function(e,t,n){void 0===t&&(t=!0);const r=this,{params:s,snapGrid:a,slidesGrid:i,rtlTranslate:o,enabled:l,animating:c}=r;if(!l||r.destroyed)return r;void 0===e&&(e=r.params.speed);const u=r.virtual&&s.virtual.enabled;if(s.loop){if(c&&!u&&s.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}function d(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const p=d(o?r.translate:-r.translate),h=a.map((e=>d(e))),f=s.freeMode&&s.freeMode.enabled;let m=a[h.indexOf(p)-1];if(void 0===m&&(s.cssMode||f)){let e;a.forEach(((t,n)=>{p>=t&&(e=n)})),void 0!==e&&(m=f?a[e]:a[e>0?e-1:e])}let g=0;if(void 0!==m&&(g=i.indexOf(m),g<0&&(g=r.activeIndex-1),"auto"===s.slidesPerView&&1===s.slidesPerGroup&&s.slidesPerGroupAuto&&(g=g-r.slidesPerViewDynamic("previous",!0)+1,g=Math.max(g,0))),s.rewind&&r.isBeginning){const s=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(s,e,t,n)}return s.loop&&0===r.activeIndex&&s.cssMode?(requestAnimationFrame((()=>{r.slideTo(g,e,t,n)})),!0):r.slideTo(g,e,t,n)},slideReset:function(e,t,n){void 0===t&&(t=!0);const r=this;if(!r.destroyed)return void 0===e&&(e=r.params.speed),r.slideTo(r.activeIndex,e,t,n)},slideToClosest:function(e,t,n,r){void 0===t&&(t=!0),void 0===r&&(r=.5);const s=this;if(s.destroyed)return;void 0===e&&(e=s.params.speed);let a=s.activeIndex;const i=Math.min(s.params.slidesPerGroupSkip,a),o=i+Math.floor((a-i)/s.params.slidesPerGroup),l=s.rtlTranslate?s.translate:-s.translate;if(l>=s.snapGrid[o]){const e=s.snapGrid[o];l-e>(s.snapGrid[o+1]-e)*r&&(a+=s.params.slidesPerGroup)}else{const e=s.snapGrid[o-1];l-e<=(s.snapGrid[o]-e)*r&&(a-=s.params.slidesPerGroup)}return a=Math.max(a,0),a=Math.min(a,s.slidesGrid.length-1),s.slideTo(a,e,t,n)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,r="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let s,a=e.clickedIndex;const i=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;s=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?a<e.loopedSlides-r/2||a>e.slides.length-e.loopedSlides+r/2?(e.loopFix(),a=e.getSlideIndex(O(n,`${i}[data-swiper-slide-index="${s}"]`)[0]),E((()=>{e.slideTo(a)}))):e.slideTo(a):a>e.slides.length-r?(e.loopFix(),a=e.getSlideIndex(O(n,`${i}[data-swiper-slide-index="${s}"]`)[0]),E((()=>{e.slideTo(a)}))):e.slideTo(a)}else e.slideTo(a)}},ae={loopCreate:function(e,t){const n=this,{params:r,slidesEl:s}=n;if(!r.loop||n.virtual&&n.params.virtual.enabled)return;const a=()=>{O(s,`.${r.slideClass}, swiper-slide`).forEach(((e,t)=>{e.setAttribute("data-swiper-slide-index",t)}))},i=n.grid&&r.grid&&r.grid.rows>1,o=r.slidesPerGroup*(i?r.grid.rows:1),l=n.slides.length%o!=0,c=i&&n.slides.length%r.grid.rows!=0,u=e=>{for(let t=0;t<e;t+=1){const e=n.isElement?D("swiper-slide",[r.slideBlankClass]):D("div",[r.slideClass,r.slideBlankClass]);n.slidesEl.append(e)}};l?(r.loopAddBlankSlides?(u(o-n.slides.length%o),n.recalcSlides(),n.updateSlides()):L("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)"),a()):c?(r.loopAddBlankSlides?(u(r.grid.rows-n.slides.length%r.grid.rows),n.recalcSlides(),n.updateSlides()):L("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)"),a()):a(),n.loopFix({slideRealIndex:e,direction:r.centeredSlides?void 0:"next",initial:t})},loopFix:function(e){let{slideRealIndex:t,slideTo:n=!0,direction:r,setTranslate:s,activeSlideIndex:a,initial:i,byController:o,byMousewheel:l}=void 0===e?{}:e;const c=this;if(!c.params.loop)return;c.emit("beforeLoopFix");const{slides:u,allowSlidePrev:d,allowSlideNext:p,slidesEl:h,params:f}=c,{centeredSlides:m,initialSlide:g}=f;if(c.allowSlidePrev=!0,c.allowSlideNext=!0,c.virtual&&f.virtual.enabled)return n&&(f.centeredSlides||0!==c.snapIndex?f.centeredSlides&&c.snapIndex<f.slidesPerView?c.slideTo(c.virtual.slides.length+c.snapIndex,0,!1,!0):c.snapIndex===c.snapGrid.length-1&&c.slideTo(c.virtual.slidesBefore,0,!1,!0):c.slideTo(c.virtual.slides.length,0,!1,!0)),c.allowSlidePrev=d,c.allowSlideNext=p,void c.emit("loopFix");let v=f.slidesPerView;"auto"===v?v=c.slidesPerViewDynamic():(v=Math.ceil(parseFloat(f.slidesPerView,10)),m&&v%2==0&&(v+=1));const b=f.slidesPerGroupAuto?v:f.slidesPerGroup;let w=b;w%b!=0&&(w+=b-w%b),w+=f.loopAdditionalSlides,c.loopedSlides=w;const y=c.grid&&f.grid&&f.grid.rows>1;u.length<v+w||"cards"===c.params.effect&&u.length<v+2*w?L("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):y&&"row"===f.grid.fill&&L("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const _=[],x=[],k=y?Math.ceil(u.length/f.grid.rows):u.length,S=i&&k-g<v&&!m;let E=S?g:c.activeIndex;void 0===a?a=c.getSlideIndex(u.find((e=>e.classList.contains(f.slideActiveClass)))):E=a;const j="next"===r||!r,C="prev"===r||!r;let T=0,M=0;const P=(y?u[a].column:a)+(m&&void 0===s?-v/2+.5:0);if(P<w){T=Math.max(w-P,b);for(let e=0;e<w-P;e+=1){const t=e-Math.floor(e/k)*k;if(y){const e=k-t-1;for(let t=u.length-1;t>=0;t-=1)u[t].column===e&&_.push(t)}else _.push(k-t-1)}}else if(P+v>k-w){M=Math.max(P-(k-2*w),b),S&&(M=Math.max(M,v-k+g+1));for(let e=0;e<M;e+=1){const t=e-Math.floor(e/k)*k;y?u.forEach(((e,n)=>{e.column===t&&x.push(n)})):x.push(t)}}if(c.__preventObserver__=!0,requestAnimationFrame((()=>{c.__preventObserver__=!1})),"cards"===c.params.effect&&u.length<v+2*w&&(x.includes(a)&&x.splice(x.indexOf(a),1),_.includes(a)&&_.splice(_.indexOf(a),1)),C&&_.forEach((e=>{u[e].swiperLoopMoveDOM=!0,h.prepend(u[e]),u[e].swiperLoopMoveDOM=!1})),j&&x.forEach((e=>{u[e].swiperLoopMoveDOM=!0,h.append(u[e]),u[e].swiperLoopMoveDOM=!1})),c.recalcSlides(),"auto"===f.slidesPerView?c.updateSlides():y&&(_.length>0&&C||x.length>0&&j)&&c.slides.forEach(((e,t)=>{c.grid.updateSlide(t,e,c.slides)})),f.watchSlidesProgress&&c.updateSlidesOffset(),n)if(_.length>0&&C){if(void 0===t){const e=c.slidesGrid[E],t=c.slidesGrid[E+T]-e;l?c.setTranslate(c.translate-t):(c.slideTo(E+Math.ceil(T),0,!1,!0),s&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-t,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-t))}else if(s){const e=y?_.length/f.grid.rows:_.length;c.slideTo(c.activeIndex+e,0,!1,!0),c.touchEventsData.currentTranslate=c.translate}}else if(x.length>0&&j)if(void 0===t){const e=c.slidesGrid[E],t=c.slidesGrid[E-M]-e;l?c.setTranslate(c.translate-t):(c.slideTo(E-M,0,!1,!0),s&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-t,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-t))}else{const e=y?x.length/f.grid.rows:x.length;c.slideTo(c.activeIndex-e,0,!1,!0)}if(c.allowSlidePrev=d,c.allowSlideNext=p,c.controller&&c.controller.control&&!o){const e={slideRealIndex:t,direction:r,setTranslate:s,activeSlideIndex:a,byController:!0};Array.isArray(c.controller.control)?c.controller.control.forEach((t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===f.slidesPerView&&n})})):c.controller.control instanceof c.constructor&&c.controller.control.params.loop&&c.controller.control.loopFix({...e,slideTo:c.controller.control.params.slidesPerView===f.slidesPerView&&n})}c.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||!n||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach((e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;r[t]=e})),e.slides.forEach((e=>{e.removeAttribute("data-swiper-slide-index")})),r.forEach((e=>{n.append(e)})),e.recalcSlides(),e.slideTo(e.realIndex,0)}};function ie(e,t,n){const r=k(),{params:s}=e,a=s.edgeSwipeDetection,i=s.edgeSwipeThreshold;return!a||!(n<=i||n>=r.innerWidth-i)||"prevent"===a&&(t.preventDefault(),!0)}function oe(e){const t=this,n=_();let r=e;r.originalEvent&&(r=r.originalEvent);const s=t.touchEventsData;if("pointerdown"===r.type){if(null!==s.pointerId&&s.pointerId!==r.pointerId)return;s.pointerId=r.pointerId}else"touchstart"===r.type&&1===r.targetTouches.length&&(s.touchId=r.targetTouches[0].identifier);if("touchstart"===r.type)return void ie(t,r,r.targetTouches[0].pageX);const{params:a,touches:i,enabled:o}=t;if(!o)return;if(!a.simulateTouch&&"mouse"===r.pointerType)return;if(t.animating&&a.preventInteractionOnTransition)return;!t.animating&&a.cssMode&&a.loop&&t.loopFix();let l=r.target;if("wrapper"===a.touchEventsTarget&&!function(e,t){const n=k();let r=t.contains(e);return!r&&n.HTMLSlotElement&&t instanceof HTMLSlotElement&&(r=[...t.assignedElements()].includes(e),r||(r=function(e,t){const n=[t];for(;n.length>0;){const t=n.shift();if(e===t)return!0;n.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}}(e,t))),r}(l,t.wrapperEl))return;if("which"in r&&3===r.which)return;if("button"in r&&r.button>0)return;if(s.isTouched&&s.isMoved)return;const c=!!a.noSwipingClass&&""!==a.noSwipingClass,u=r.composedPath?r.composedPath():r.path;c&&r.target&&r.target.shadowRoot&&u&&(l=u[0]);const d=a.noSwipingSelector?a.noSwipingSelector:`.${a.noSwipingClass}`,p=!(!r.target||!r.target.shadowRoot);if(a.noSwiping&&(p?function(e,t){return void 0===t&&(t=this),function t(n){if(!n||n===_()||n===k())return null;n.assignedSlot&&(n=n.assignedSlot);const r=n.closest(e);return r||n.getRootNode?r||t(n.getRootNode().host):null}(t)}(d,l):l.closest(d)))return void(t.allowClick=!0);if(a.swipeHandler&&!l.closest(a.swipeHandler))return;i.currentX=r.pageX,i.currentY=r.pageY;const h=i.currentX,f=i.currentY;if(!ie(t,r,h))return;Object.assign(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),i.startX=h,i.startY=f,s.touchStartTime=j(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,a.threshold>0&&(s.allowThresholdMove=!1);let m=!0;l.matches(s.focusableElements)&&(m=!1,"SELECT"===l.nodeName&&(s.isTouched=!1)),n.activeElement&&n.activeElement.matches(s.focusableElements)&&n.activeElement!==l&&("mouse"===r.pointerType||"mouse"!==r.pointerType&&!l.matches(s.focusableElements))&&n.activeElement.blur();const g=m&&t.allowTouchMove&&a.touchStartPreventDefault;!a.touchStartForcePreventDefault&&!g||l.isContentEditable||r.preventDefault(),a.freeMode&&a.freeMode.enabled&&t.freeMode&&t.animating&&!a.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",r)}function le(e){const t=_(),n=this,r=n.touchEventsData,{params:s,touches:a,rtlTranslate:i,enabled:o}=n;if(!o)return;if(!s.simulateTouch&&"mouse"===e.pointerType)return;let l,c=e;if(c.originalEvent&&(c=c.originalEvent),"pointermove"===c.type){if(null!==r.touchId)return;if(c.pointerId!==r.pointerId)return}if("touchmove"===c.type){if(l=[...c.changedTouches].find((e=>e.identifier===r.touchId)),!l||l.identifier!==r.touchId)return}else l=c;if(!r.isTouched)return void(r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",c));const u=l.pageX,d=l.pageY;if(c.preventedByNestedSwiper)return a.startX=u,void(a.startY=d);if(!n.allowTouchMove)return c.target.matches(r.focusableElements)||(n.allowClick=!1),void(r.isTouched&&(Object.assign(a,{startX:u,startY:d,currentX:u,currentY:d}),r.touchStartTime=j()));if(s.touchReleaseOnEdges&&!s.loop)if(n.isVertical()){if(d<a.startY&&n.translate<=n.maxTranslate()||d>a.startY&&n.translate>=n.minTranslate())return r.isTouched=!1,void(r.isMoved=!1)}else{if(i&&(u>a.startX&&-n.translate<=n.maxTranslate()||u<a.startX&&-n.translate>=n.minTranslate()))return;if(!i&&(u<a.startX&&n.translate<=n.maxTranslate()||u>a.startX&&n.translate>=n.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(r.focusableElements)&&t.activeElement!==c.target&&"mouse"!==c.pointerType&&t.activeElement.blur(),t.activeElement&&c.target===t.activeElement&&c.target.matches(r.focusableElements))return r.isMoved=!0,void(n.allowClick=!1);r.allowTouchCallbacks&&n.emit("touchMove",c),a.previousX=a.currentX,a.previousY=a.currentY,a.currentX=u,a.currentY=d;const p=a.currentX-a.startX,h=a.currentY-a.startY;if(n.params.threshold&&Math.sqrt(p**2+h**2)<n.params.threshold)return;if(void 0===r.isScrolling){let e;n.isHorizontal()&&a.currentY===a.startY||n.isVertical()&&a.currentX===a.startX?r.isScrolling=!1:p*p+h*h>=25&&(e=180*Math.atan2(Math.abs(h),Math.abs(p))/Math.PI,r.isScrolling=n.isHorizontal()?e>s.touchAngle:90-e>s.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",c),void 0===r.startMoving&&(a.currentX===a.startX&&a.currentY===a.startY||(r.startMoving=!0)),r.isScrolling||"touchmove"===c.type&&r.preventTouchMoveFromPointerMove)return void(r.isTouched=!1);if(!r.startMoving)return;n.allowClick=!1,!s.cssMode&&c.cancelable&&c.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&c.stopPropagation();let f=n.isHorizontal()?p:h,m=n.isHorizontal()?a.currentX-a.previousX:a.currentY-a.previousY;s.oneWayMovement&&(f=Math.abs(f)*(i?1:-1),m=Math.abs(m)*(i?1:-1)),a.diff=f,f*=s.touchRatio,i&&(f=-f,m=-m);const g=n.touchesDirection;n.swipeDirection=f>0?"prev":"next",n.touchesDirection=m>0?"prev":"next";const v=n.params.loop&&!s.cssMode,b="next"===n.touchesDirection&&n.allowSlideNext||"prev"===n.touchesDirection&&n.allowSlidePrev;if(!r.isMoved){if(v&&b&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(e)}r.allowMomentumBounce=!1,!s.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",c)}if((new Date).getTime(),!1!==s._loopSwapReset&&r.isMoved&&r.allowThresholdMove&&g!==n.touchesDirection&&v&&b&&Math.abs(f)>=1)return Object.assign(a,{startX:u,startY:d,currentX:u,currentY:d,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,void(r.startTranslate=r.currentTranslate);n.emit("sliderMove",c),r.isMoved=!0,r.currentTranslate=f+r.startTranslate;let w=!0,y=s.resistanceRatio;if(s.touchReleaseOnEdges&&(y=0),f>0?(v&&b&&r.allowThresholdMove&&r.currentTranslate>(s.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-("auto"!==s.slidesPerView&&n.slides.length-s.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(w=!1,s.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+f)**y))):f<0&&(v&&b&&r.allowThresholdMove&&r.currentTranslate<(s.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+("auto"!==s.slidesPerView&&n.slides.length-s.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-("auto"===s.slidesPerView?n.slidesPerViewDynamic():Math.ceil(parseFloat(s.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(w=!1,s.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-f)**y))),w&&(c.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),n.allowSlidePrev||n.allowSlideNext||(r.currentTranslate=r.startTranslate),s.threshold>0){if(!(Math.abs(f)>s.threshold||r.allowThresholdMove))return void(r.currentTranslate=r.startTranslate);if(!r.allowThresholdMove)return r.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,r.currentTranslate=r.startTranslate,void(a.diff=n.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY)}s.followFinger&&!s.cssMode&&((s.freeMode&&s.freeMode.enabled&&n.freeMode||s.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),s.freeMode&&s.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function ce(e){const t=this,n=t.touchEventsData;let r,s=e;if(s.originalEvent&&(s=s.originalEvent),"touchend"===s.type||"touchcancel"===s.type){if(r=[...s.changedTouches].find((e=>e.identifier===n.touchId)),!r||r.identifier!==n.touchId)return}else{if(null!==n.touchId)return;if(s.pointerId!==n.pointerId)return;r=s}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(s.type)&&(!["pointercancel","contextmenu"].includes(s.type)||!t.browser.isSafari&&!t.browser.isWebView))return;n.pointerId=null,n.touchId=null;const{params:a,touches:i,rtlTranslate:o,slidesGrid:l,enabled:c}=t;if(!c)return;if(!a.simulateTouch&&"mouse"===s.pointerType)return;if(n.allowTouchCallbacks&&t.emit("touchEnd",s),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&a.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);a.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const u=j(),d=u-n.touchStartTime;if(t.allowClick){const e=s.path||s.composedPath&&s.composedPath();t.updateClickedSlide(e&&e[0]||s.target,e),t.emit("tap click",s),d<300&&u-n.lastClickTime<300&&t.emit("doubleTap doubleClick",s)}if(n.lastClickTime=j(),E((()=>{t.destroyed||(t.allowClick=!0)})),!n.isTouched||!n.isMoved||!t.swipeDirection||0===i.diff&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let p;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,p=a.followFinger?o?t.translate:-t.translate:-n.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:p});const h=p>=-t.maxTranslate()&&!t.params.loop;let f=0,m=t.slidesSizesGrid[0];for(let e=0;e<l.length;e+=e<a.slidesPerGroupSkip?1:a.slidesPerGroup){const t=e<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;void 0!==l[e+t]?(h||p>=l[e]&&p<l[e+t])&&(f=e,m=l[e+t]-l[e]):(h||p>=l[e])&&(f=e,m=l[l.length-1]-l[l.length-2])}let g=null,v=null;a.rewind&&(t.isBeginning?v=a.virtual&&a.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(g=0));const b=(p-l[f])/m,w=f<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(d>a.longSwipesMs){if(!a.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(b>=a.longSwipesRatio?t.slideTo(a.rewind&&t.isEnd?g:f+w):t.slideTo(f)),"prev"===t.swipeDirection&&(b>1-a.longSwipesRatio?t.slideTo(f+w):null!==v&&b<0&&Math.abs(b)>a.longSwipesRatio?t.slideTo(v):t.slideTo(f))}else{if(!a.shortSwipes)return void t.slideTo(t.activeIndex);!t.navigation||s.target!==t.navigation.nextEl&&s.target!==t.navigation.prevEl?("next"===t.swipeDirection&&t.slideTo(null!==g?g:f+w),"prev"===t.swipeDirection&&t.slideTo(null!==v?v:f)):s.target===t.navigation.nextEl?t.slideTo(f+w):t.slideTo(f)}}function ue(){const e=this,{params:t,el:n}=e;if(n&&0===n.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:s,snapGrid:a}=e,i=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const o=i&&t.loop;!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||o?e.params.loop&&!i?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout((()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()}),500)),e.allowSlidePrev=s,e.allowSlideNext=r,e.params.watchOverflow&&a!==e.snapGrid&&e.checkOverflow()}function de(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function pe(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;let s;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const a=e.maxTranslate()-e.minTranslate();s=0===a?0:(e.translate-e.minTranslate())/a,s!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function he(e){const t=this;Z(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update()}function fe(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const me=(e,t)=>{const n=_(),{params:r,el:s,wrapperEl:a,device:i}=e,o=!!r.nested,l="on"===t?"addEventListener":"removeEventListener",c=t;s&&"string"!=typeof s&&(n[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:o}),s[l]("touchstart",e.onTouchStart,{passive:!1}),s[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("touchmove",e.onTouchMove,{passive:!1,capture:o}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:o}),n[l]("touchend",e.onTouchEnd,{passive:!0}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("touchcancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),n[l]("contextmenu",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&s[l]("click",e.onClick,!0),r.cssMode&&a[l]("scroll",e.onScroll),r.updateOnWindowResize?e[c](i.ios||i.android?"resize orientationchange observerUpdate":"resize observerUpdate",ue,!0):e[c]("observerUpdate",ue,!0),s[l]("load",e.onLoad,{capture:!0}))},ge=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var ve={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function be(e,t){return function(n){void 0===n&&(n={});const r=Object.keys(n)[0],s=n[r];"object"==typeof s&&null!==s?(!0===e[r]&&(e[r]={enabled:!0}),"navigation"===r&&e[r]&&e[r].enabled&&!e[r].prevEl&&!e[r].nextEl&&(e[r].auto=!0),["pagination","scrollbar"].indexOf(r)>=0&&e[r]&&e[r].enabled&&!e[r].el&&(e[r].auto=!0),r in e&&"enabled"in s?("object"!=typeof e[r]||"enabled"in e[r]||(e[r].enabled=!0),e[r]||(e[r]={enabled:!1}),M(t,n)):M(t,n)):M(t,n)}}const we={eventsEmitter:K,update:ne,translate:{getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");const{params:t,rtlTranslate:n,translate:r,wrapperEl:s}=this;if(t.virtualTranslate)return n?-r:r;if(t.cssMode)return r;let a=C(s,e);return a+=this.cssOverflowAdjustment(),n&&(a=-a),a||0},setTranslate:function(e,t){const n=this,{rtlTranslate:r,params:s,wrapperEl:a,progress:i}=n;let o,l=0,c=0;n.isHorizontal()?l=r?-e:e:c=e,s.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:c,s.cssMode?a[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-c:s.virtualTranslate||(n.isHorizontal()?l-=n.cssOverflowAdjustment():c-=n.cssOverflowAdjustment(),a.style.transform=`translate3d(${l}px, ${c}px, 0px)`);const u=n.maxTranslate()-n.minTranslate();o=0===u?0:(e-n.minTranslate())/u,o!==i&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,n,r,s){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0),void 0===r&&(r=!0);const a=this,{params:i,wrapperEl:o}=a;if(a.animating&&i.preventInteractionOnTransition)return!1;const l=a.minTranslate(),c=a.maxTranslate();let u;if(u=r&&e>l?l:r&&e<c?c:e,a.updateProgress(u),i.cssMode){const e=a.isHorizontal();if(0===t)o[e?"scrollLeft":"scrollTop"]=-u;else{if(!a.support.smoothScroll)return A({swiper:a,targetPosition:-u,side:e?"left":"top"}),!0;o.scrollTo({[e?"left":"top"]:-u,behavior:"smooth"})}return!0}return 0===t?(a.setTransition(0),a.setTranslate(u),n&&(a.emit("beforeTransitionStart",t,s),a.emit("transitionEnd"))):(a.setTransition(t),a.setTranslate(u),n&&(a.emit("beforeTransitionStart",t,s),a.emit("transitionStart")),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||(a.onTranslateToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,a.animating=!1,n&&a.emit("transitionEnd"))}),a.wrapperEl.addEventListener("transitionend",a.onTranslateToWrapperTransitionEnd))),!0}},transition:{setTransition:function(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`,n.wrapperEl.style.transitionDelay=0===e?"0ms":""),n.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),re({swiper:n,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);const n=this,{params:r}=n;n.animating=!1,r.cssMode||(n.setTransition(0),re({swiper:n,runCallbacks:e,direction:t,step:"End"}))}},slide:se,loop:ae,grabCursor:{setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame((()=>{t.__preventObserver__=!1}))},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame((()=>{e.__preventObserver__=!1})))}},events:{attachEvents:function(){const e=this,{params:t}=e;e.onTouchStart=oe.bind(e),e.onTouchMove=le.bind(e),e.onTouchEnd=ce.bind(e),e.onDocumentTouchStart=fe.bind(e),t.cssMode&&(e.onScroll=pe.bind(e)),e.onClick=de.bind(e),e.onLoad=he.bind(e),me(e,"on")},detachEvents:function(){me(this,"off")}},breakpoints:{setBreakpoint:function(){const e=this,{realIndex:t,initialized:n,params:r,el:s}=e,a=r.breakpoints;if(!a||a&&0===Object.keys(a).length)return;const i=_(),o="window"!==r.breakpointsBase&&r.breakpointsBase?"container":r.breakpointsBase,l=["window","container"].includes(r.breakpointsBase)||!r.breakpointsBase?e.el:i.querySelector(r.breakpointsBase),c=e.getBreakpoint(a,o,l);if(!c||e.currentBreakpoint===c)return;const u=(c in a?a[c]:void 0)||e.originalParams,d=ge(e,r),p=ge(e,u),h=e.params.grabCursor,f=u.grabCursor,m=r.enabled;d&&!p?(s.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!d&&p&&(s.classList.add(`${r.containerModifierClass}grid`),(u.grid.fill&&"column"===u.grid.fill||!u.grid.fill&&"column"===r.grid.fill)&&s.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),h&&!f?e.unsetGrabCursor():!h&&f&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach((t=>{if(void 0===u[t])return;const n=r[t]&&r[t].enabled,s=u[t]&&u[t].enabled;n&&!s&&e[t].disable(),!n&&s&&e[t].enable()}));const g=u.direction&&u.direction!==r.direction,v=r.loop&&(u.slidesPerView!==r.slidesPerView||g),b=r.loop;g&&n&&e.changeDirection(),M(e.params,u);const w=e.params.enabled,y=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),m&&!w?e.disable():!m&&w&&e.enable(),e.currentBreakpoint=c,e.emit("_beforeBreakpoint",u),n&&(v?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!b&&y?(e.loopCreate(t),e.updateSlides()):b&&!y&&e.loopDestroy()),e.emit("breakpoint",u)},getBreakpoint:function(e,t,n){if(void 0===t&&(t="window"),!e||"container"===t&&!n)return;let r=!1;const s=k(),a="window"===t?s.innerHeight:n.clientHeight,i=Object.keys(e).map((e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:a*t,point:e}}return{value:e,point:e}}));i.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let e=0;e<i.length;e+=1){const{point:a,value:o}=i[e];"window"===t?s.matchMedia(`(min-width: ${o}px)`).matches&&(r=a):o<=n.clientWidth&&(r=a)}return r||"max"}},checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const t=e.slides.length-1,n=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*r;e.isLocked=e.size>n}else e.isLocked=1===e.snapGrid.length;!0===n.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===n.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const e=this,{classNames:t,params:n,rtl:r,el:s,device:a}=e,i=function(e,t){const n=[];return e.forEach((e=>{"object"==typeof e?Object.keys(e).forEach((r=>{e[r]&&n.push(t+r)})):"string"==typeof e&&n.push(t+e)})),n}(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&"column"===n.grid.fill},{android:a.android},{ios:a.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...i),s.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}}},ye={};class _e{constructor(){let e,t;for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];1===r.length&&r[0].constructor&&"Object"===Object.prototype.toString.call(r[0]).slice(8,-1)?t=r[0]:[e,t]=r,t||(t={}),t=M({},t),e&&!t.el&&(t.el=e);const a=_();if(t.el&&"string"==typeof t.el&&a.querySelectorAll(t.el).length>1){const e=[];return a.querySelectorAll(t.el).forEach((n=>{const r=M({},t,{el:n});e.push(new _e(r))})),e}const i=this;i.__swiper__=!0,i.support=W(),i.device=Y({userAgent:t.userAgent}),i.browser=X(),i.eventsListeners={},i.eventsAnyListeners=[],i.modules=[...i.__modules__],t.modules&&Array.isArray(t.modules)&&i.modules.push(...t.modules);const o={};i.modules.forEach((e=>{e({params:t,swiper:i,extendParams:be(t,o),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i),emit:i.emit.bind(i)})}));const l=M({},ve,o);return i.params=M({},l,ye,t),i.originalParams=M({},i.params),i.passedParams=M({},t),i.params&&i.params.on&&Object.keys(i.params.on).forEach((e=>{i.on(e,i.params.on[e])})),i.params&&i.params.onAny&&i.onAny(i.params.onAny),Object.assign(i,{enabled:i.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===i.params.direction,isVertical:()=>"vertical"===i.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:i.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.emit("_swiper"),i.params.init&&i.init(),i}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:t,params:n}=this,r=R(O(t,`.${n.slideClass}, swiper-slide`)[0]);return R(e)-r}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find((t=>1*t.getAttribute("data-swiper-slide-index")===e)))}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=O(e,`.${t.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const n=this;e=Math.min(Math.max(e,0),1);const r=n.minTranslate(),s=(n.maxTranslate()-r)*e+r;n.translateTo(s,void 0===t?0:t),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter((t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter((e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass))).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach((n=>{const r=e.getSlideClasses(n);t.push({slideEl:n,classNames:r}),e.emit("_slideClass",n,r)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:n,slides:r,slidesGrid:s,slidesSizesGrid:a,size:i,activeIndex:o}=this;let l=1;if("number"==typeof n.slidesPerView)return n.slidesPerView;if(n.centeredSlides){let e,t=r[o]?Math.ceil(r[o].swiperSlideSize):0;for(let n=o+1;n<r.length;n+=1)r[n]&&!e&&(t+=Math.ceil(r[n].swiperSlideSize),l+=1,t>i&&(e=!0));for(let n=o-1;n>=0;n-=1)r[n]&&!e&&(t+=r[n].swiperSlideSize,l+=1,t>i&&(e=!0))}else if("current"===e)for(let e=o+1;e<r.length;e+=1)(t?s[e]+a[e]-s[o]<i:s[e]-s[o]<i)&&(l+=1);else for(let e=o-1;e>=0;e-=1)s[o]-s[e]<i&&(l+=1);return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:n}=e;function r(){const t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}let s;if(n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach((t=>{t.complete&&Z(e,t)})),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),n.freeMode&&n.freeMode.enabled&&!n.cssMode)r(),n.autoHeight&&e.updateAutoHeight();else{if(("auto"===n.slidesPerView||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const t=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;s=e.slideTo(t.length-1,0,!1,!0)}else s=e.slideTo(e.activeIndex,0,!1,!0);s||r()}n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const n=this,r=n.params.direction;return e||(e="horizontal"===r?"vertical":"horizontal"),e===r||"horizontal"!==e&&"vertical"!==e||(n.el.classList.remove(`${n.params.containerModifierClass}${r}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach((t=>{"vertical"===e?t.style.width="":t.style.height=""})),n.emit("changeDirection"),t&&n.update()),n}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let n=e||t.params.el;if("string"==typeof n&&(n=document.querySelector(n)),!n)return!1;n.swiper=t,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const r=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(r()):O(n,r())[0];return!s&&t.params.createElements&&(s=D("div",t.params.wrapperClass),n.append(s),O(n,`.${t.params.slideClass}`).forEach((e=>{s.append(e)}))),Object.assign(t,{el:n,wrapperEl:s,slidesEl:t.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:s,hostEl:t.isElement?n.parentNode.host:n,mounted:!0,rtl:"rtl"===n.dir.toLowerCase()||"rtl"===N(n,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===n.dir.toLowerCase()||"rtl"===N(n,"direction")),wrongRTL:"-webkit-box"===N(s,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(void 0,!0),t.attachEvents();const n=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&n.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach((e=>{e.complete?Z(t,e):e.addEventListener("load",(e=>{Z(t,e.target)}))})),te(t),t.initialized=!0,te(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const n=this,{params:r,el:s,wrapperEl:a,slides:i}=n;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),t&&(n.removeClasses(),s&&"string"!=typeof s&&s.removeAttribute("style"),a&&a.removeAttribute("style"),i&&i.length&&i.forEach((e=>{e.classList.remove(r.slideVisibleClass,r.slideFullyVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")}))),n.emit("destroy"),Object.keys(n.eventsListeners).forEach((e=>{n.off(e)})),!1!==e&&(n.el&&"string"!=typeof n.el&&(n.el.swiper=null),function(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}(n)),n.destroyed=!0),null}static extendDefaults(e){M(ye,e)}static get extendedDefaults(){return ye}static get defaults(){return ve}static installModule(e){_e.prototype.__modules__||(_e.prototype.__modules__=[]);const t=_e.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach((e=>_e.installModule(e))),_e):(_e.installModule(e),_e)}}function xe(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach((s=>{if(!n[s]&&!0===n.auto){let a=O(e.el,`.${r[s]}`)[0];a||(a=D("div",r[s]),a.className=r[s],e.el.append(a)),n[s]=a,t[s]=a}})),n}function ke(e){return void 0===e&&(e=""),`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Se(e){const t=this,{params:n,slidesEl:r}=t;n.loop&&t.loopDestroy();const s=e=>{if("string"==typeof e){const t=document.createElement("div");t.innerHTML=e,r.append(t.children[0]),t.innerHTML=""}else r.append(e)};if("object"==typeof e&&"length"in e)for(let t=0;t<e.length;t+=1)e[t]&&s(e[t]);else s(e);t.recalcSlides(),n.loop&&t.loopCreate(),n.observer&&!t.isElement||t.update()}function Ee(e){const t=this,{params:n,activeIndex:r,slidesEl:s}=t;n.loop&&t.loopDestroy();let a=r+1;const i=e=>{if("string"==typeof e){const t=document.createElement("div");t.innerHTML=e,s.prepend(t.children[0]),t.innerHTML=""}else s.prepend(e)};if("object"==typeof e&&"length"in e){for(let t=0;t<e.length;t+=1)e[t]&&i(e[t]);a=r+e.length}else i(e);t.recalcSlides(),n.loop&&t.loopCreate(),n.observer&&!t.isElement||t.update(),t.slideTo(a,0,!1)}function je(e,t){const n=this,{params:r,activeIndex:s,slidesEl:a}=n;let i=s;r.loop&&(i-=n.loopedSlides,n.loopDestroy(),n.recalcSlides());const o=n.slides.length;if(e<=0)return void n.prependSlide(t);if(e>=o)return void n.appendSlide(t);let l=i>e?i+1:i;const c=[];for(let t=o-1;t>=e;t-=1){const e=n.slides[t];e.remove(),c.unshift(e)}if("object"==typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)t[e]&&a.append(t[e]);l=i>e?i+t.length:i}else a.append(t);for(let e=0;e<c.length;e+=1)a.append(c[e]);n.recalcSlides(),r.loop&&n.loopCreate(),r.observer&&!n.isElement||n.update(),r.loop?n.slideTo(l+n.loopedSlides,0,!1):n.slideTo(l,0,!1)}function Ce(e){const t=this,{params:n,activeIndex:r}=t;let s=r;n.loop&&(s-=t.loopedSlides,t.loopDestroy());let a,i=s;if("object"==typeof e&&"length"in e){for(let n=0;n<e.length;n+=1)a=e[n],t.slides[a]&&t.slides[a].remove(),a<i&&(i-=1);i=Math.max(i,0)}else a=e,t.slides[a]&&t.slides[a].remove(),a<i&&(i-=1),i=Math.max(i,0);t.recalcSlides(),n.loop&&t.loopCreate(),n.observer&&!t.isElement||t.update(),n.loop?t.slideTo(i+t.loopedSlides,0,!1):t.slideTo(i,0,!1)}function Te(){const e=this,t=[];for(let n=0;n<e.slides.length;n+=1)t.push(n);e.removeSlide(t)}function Me(e){const{effect:t,swiper:n,on:r,setTranslate:s,setTransition:a,overwriteParams:i,perspective:o,recreateShadows:l,getEffectParams:c}=e;let u;r("beforeInit",(()=>{if(n.params.effect!==t)return;n.classNames.push(`${n.params.containerModifierClass}${t}`),o&&o()&&n.classNames.push(`${n.params.containerModifierClass}3d`);const e=i?i():{};Object.assign(n.params,e),Object.assign(n.originalParams,e)})),r("setTranslate",(()=>{n.params.effect===t&&s()})),r("setTransition",((e,r)=>{n.params.effect===t&&a(r)})),r("transitionEnd",(()=>{if(n.params.effect===t&&l){if(!c||!c().slideShadows)return;n.slides.forEach((e=>{e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((e=>e.remove()))})),l()}})),r("virtualUpdate",(()=>{n.params.effect===t&&(n.slides.length||(u=!0),requestAnimationFrame((()=>{u&&n.slides&&n.slides.length&&(s(),u=!1)})))}))}function Pe(e,t){const n=I(t);return n!==t&&(n.style.backfaceVisibility="hidden",n.style["-webkit-backface-visibility"]="hidden"),n}function Ae(e){let{swiper:t,duration:n,transformElements:r,allSlides:s}=e;const{activeIndex:a}=t;if(t.params.virtualTranslate&&0!==n){let e,n=!1;e=s?r:r.filter((e=>{const n=e.classList.contains("swiper-slide-transform")?(e=>e.parentElement?e.parentElement:t.slides.find((t=>t.shadowRoot&&t.shadowRoot===e.parentNode)))(e):e;return t.getSlideIndex(n)===a})),e.forEach((e=>{$(e,(()=>{if(n)return;if(!t||t.destroyed)return;n=!0,t.animating=!1;const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});t.wrapperEl.dispatchEvent(e)}))}))}}function Ie(e,t,n){const r=`swiper-slide-shadow${n?`-${n}`:""}${e?` swiper-slide-shadow-${e}`:""}`,s=I(t);let a=s.querySelector(`.${r.split(" ").join(".")}`);return a||(a=D("div",r.split(" ")),s.append(a)),a}Object.keys(we).forEach((e=>{Object.keys(we[e]).forEach((t=>{_e.prototype[t]=we[e][t]}))})),_e.use([function(e){let{swiper:t,on:n,emit:r}=e;const s=k();let a=null,i=null;const o=()=>{t&&!t.destroyed&&t.initialized&&(r("beforeResize"),r("resize"))},l=()=>{t&&!t.destroyed&&t.initialized&&r("orientationchange")};n("init",(()=>{t.params.resizeObserver&&void 0!==s.ResizeObserver?t&&!t.destroyed&&t.initialized&&(a=new ResizeObserver((e=>{i=s.requestAnimationFrame((()=>{const{width:n,height:r}=t;let s=n,a=r;e.forEach((e=>{let{contentBoxSize:n,contentRect:r,target:i}=e;i&&i!==t.el||(s=r?r.width:(n[0]||n).inlineSize,a=r?r.height:(n[0]||n).blockSize)})),s===n&&a===r||o()}))})),a.observe(t.el)):(s.addEventListener("resize",o),s.addEventListener("orientationchange",l))})),n("destroy",(()=>{i&&s.cancelAnimationFrame(i),a&&a.unobserve&&t.el&&(a.unobserve(t.el),a=null),s.removeEventListener("resize",o),s.removeEventListener("orientationchange",l)}))},function(e){let{swiper:t,extendParams:n,on:r,emit:s}=e;const a=[],i=k(),o=function(e,n){void 0===n&&(n={});const r=new(i.MutationObserver||i.WebkitMutationObserver)((e=>{if(t.__preventObserver__)return;if(1===e.length)return void s("observerUpdate",e[0]);const n=function(){s("observerUpdate",e[0])};i.requestAnimationFrame?i.requestAnimationFrame(n):i.setTimeout(n,0)}));r.observe(e,{attributes:void 0===n.attributes||n.attributes,childList:t.isElement||(void 0===n.childList||n).childList,characterData:void 0===n.characterData||n.characterData}),a.push(r)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",(()=>{if(t.params.observer){if(t.params.observeParents){const e=B(t.hostEl);for(let t=0;t<e.length;t+=1)o(e[t])}o(t.hostEl,{childList:t.params.observeSlideChildren}),o(t.wrapperEl,{attributes:!1})}})),r("destroy",(()=>{a.forEach((e=>{e.disconnect()})),a.splice(0,a.length)}))}]);const Oe=[function(e){let t,{swiper:n,extendParams:r,on:s,emit:a}=e;r({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});const i=_();n.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const o=i.createElement("div");function l(e,t){const r=n.params.virtual;if(r.cache&&n.virtual.cache[t])return n.virtual.cache[t];let s;return r.renderSlide?(s=r.renderSlide.call(n,e,t),"string"==typeof s&&(o.innerHTML=s,s=o.children[0])):s=n.isElement?D("swiper-slide"):D("div",n.params.slideClass),s.setAttribute("data-swiper-slide-index",t),r.renderSlide||(s.innerHTML=e),r.cache&&(n.virtual.cache[t]=s),s}function c(e,t,r){const{slidesPerView:s,slidesPerGroup:i,centeredSlides:o,loop:c,initialSlide:u}=n.params;if(t&&!c&&u>0)return;const{addSlidesBefore:d,addSlidesAfter:p}=n.params.virtual,{from:h,to:f,slides:m,slidesGrid:g,offset:v}=n.virtual;n.params.cssMode||n.updateActiveIndex();const b=void 0===r?n.activeIndex||0:r;let w,y,_;w=n.rtlTranslate?"right":n.isHorizontal()?"left":"top",o?(y=Math.floor(s/2)+i+p,_=Math.floor(s/2)+i+d):(y=s+(i-1)+p,_=(c?s:i)+d);let x=b-_,k=b+y;c||(x=Math.max(x,0),k=Math.min(k,m.length-1));let S=(n.slidesGrid[x]||0)-(n.slidesGrid[0]||0);function E(){n.updateSlides(),n.updateProgress(),n.updateSlidesClasses(),a("virtualUpdate")}if(c&&b>=_?(x-=_,o||(S+=n.slidesGrid[0])):c&&b<_&&(x=-_,o&&(S+=n.slidesGrid[0])),Object.assign(n.virtual,{from:x,to:k,offset:S,slidesGrid:n.slidesGrid,slidesBefore:_,slidesAfter:y}),h===x&&f===k&&!e)return n.slidesGrid!==g&&S!==v&&n.slides.forEach((e=>{e.style[w]=S-Math.abs(n.cssOverflowAdjustment())+"px"})),n.updateProgress(),void a("virtualUpdate");if(n.params.virtual.renderExternal)return n.params.virtual.renderExternal.call(n,{offset:S,from:x,to:k,slides:function(){const e=[];for(let t=x;t<=k;t+=1)e.push(m[t]);return e}()}),void(n.params.virtual.renderExternalUpdate?E():a("virtualUpdate"));const j=[],C=[],T=e=>{let t=e;return e<0?t=m.length+e:t>=m.length&&(t-=m.length),t};if(e)n.slides.filter((e=>e.matches(`.${n.params.slideClass}, swiper-slide`))).forEach((e=>{e.remove()}));else for(let e=h;e<=f;e+=1)if(e<x||e>k){const t=T(e);n.slides.filter((e=>e.matches(`.${n.params.slideClass}[data-swiper-slide-index="${t}"], swiper-slide[data-swiper-slide-index="${t}"]`))).forEach((e=>{e.remove()}))}const M=c?-m.length:0,P=c?2*m.length:m.length;for(let t=M;t<P;t+=1)if(t>=x&&t<=k){const n=T(t);void 0===f||e?C.push(n):(t>f&&C.push(n),t<h&&j.push(n))}if(C.forEach((e=>{n.slidesEl.append(l(m[e],e))})),c)for(let e=j.length-1;e>=0;e-=1){const t=j[e];n.slidesEl.prepend(l(m[t],t))}else j.sort(((e,t)=>t-e)),j.forEach((e=>{n.slidesEl.prepend(l(m[e],e))}));O(n.slidesEl,".swiper-slide, swiper-slide").forEach((e=>{e.style[w]=S-Math.abs(n.cssOverflowAdjustment())+"px"})),E()}s("beforeInit",(()=>{if(!n.params.virtual.enabled)return;let e;if(void 0===n.passedParams.virtual.slides){const t=[...n.slidesEl.children].filter((e=>e.matches(`.${n.params.slideClass}, swiper-slide`)));t&&t.length&&(n.virtual.slides=[...t],e=!0,t.forEach(((e,t)=>{e.setAttribute("data-swiper-slide-index",t),n.virtual.cache[t]=e,e.remove()})))}e||(n.virtual.slides=n.params.virtual.slides),n.classNames.push(`${n.params.containerModifierClass}virtual`),n.params.watchSlidesProgress=!0,n.originalParams.watchSlidesProgress=!0,c(!1,!0)})),s("setTranslate",(()=>{n.params.virtual.enabled&&(n.params.cssMode&&!n._immediateVirtual?(clearTimeout(t),t=setTimeout((()=>{c()}),100)):c())})),s("init update resize",(()=>{n.params.virtual.enabled&&n.params.cssMode&&P(n.wrapperEl,"--swiper-virtual-size",`${n.virtualSize}px`)})),Object.assign(n.virtual,{appendSlide:function(e){if("object"==typeof e&&"length"in e)for(let t=0;t<e.length;t+=1)e[t]&&n.virtual.slides.push(e[t]);else n.virtual.slides.push(e);c(!0)},prependSlide:function(e){const t=n.activeIndex;let r=t+1,s=1;if(Array.isArray(e)){for(let t=0;t<e.length;t+=1)e[t]&&n.virtual.slides.unshift(e[t]);r=t+e.length,s=e.length}else n.virtual.slides.unshift(e);if(n.params.virtual.cache){const e=n.virtual.cache,t={};Object.keys(e).forEach((n=>{const r=e[n],a=r.getAttribute("data-swiper-slide-index");a&&r.setAttribute("data-swiper-slide-index",parseInt(a,10)+s),t[parseInt(n,10)+s]=r})),n.virtual.cache=t}c(!0),n.slideTo(r,0)},removeSlide:function(e){if(null==e)return;let t=n.activeIndex;if(Array.isArray(e))for(let r=e.length-1;r>=0;r-=1)n.params.virtual.cache&&(delete n.virtual.cache[e[r]],Object.keys(n.virtual.cache).forEach((t=>{t>e&&(n.virtual.cache[t-1]=n.virtual.cache[t],n.virtual.cache[t-1].setAttribute("data-swiper-slide-index",t-1),delete n.virtual.cache[t])}))),n.virtual.slides.splice(e[r],1),e[r]<t&&(t-=1),t=Math.max(t,0);else n.params.virtual.cache&&(delete n.virtual.cache[e],Object.keys(n.virtual.cache).forEach((t=>{t>e&&(n.virtual.cache[t-1]=n.virtual.cache[t],n.virtual.cache[t-1].setAttribute("data-swiper-slide-index",t-1),delete n.virtual.cache[t])}))),n.virtual.slides.splice(e,1),e<t&&(t-=1),t=Math.max(t,0);c(!0),n.slideTo(t,0)},removeAllSlides:function(){n.virtual.slides=[],n.params.virtual.cache&&(n.virtual.cache={}),c(!0),n.slideTo(0,0)},update:c})},function(e){let{swiper:t,extendParams:n,on:r,emit:s}=e;const a=_(),i=k();function o(e){if(!t.enabled)return;const{rtlTranslate:n}=t;let r=e;r.originalEvent&&(r=r.originalEvent);const o=r.keyCode||r.charCode,l=t.params.keyboard.pageUpDown,c=l&&33===o,u=l&&34===o,d=37===o,p=39===o,h=38===o,f=40===o;if(!t.allowSlideNext&&(t.isHorizontal()&&p||t.isVertical()&&f||u))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&d||t.isVertical()&&h||c))return!1;if(!(r.shiftKey||r.altKey||r.ctrlKey||r.metaKey||a.activeElement&&a.activeElement.nodeName&&("input"===a.activeElement.nodeName.toLowerCase()||"textarea"===a.activeElement.nodeName.toLowerCase()))){if(t.params.keyboard.onlyInViewport&&(c||u||d||p||h||f)){let e=!1;if(B(t.el,`.${t.params.slideClass}, swiper-slide`).length>0&&0===B(t.el,`.${t.params.slideActiveClass}`).length)return;const r=t.el,s=r.clientWidth,a=r.clientHeight,o=i.innerWidth,l=i.innerHeight,c=z(r);n&&(c.left-=r.scrollLeft);const u=[[c.left,c.top],[c.left+s,c.top],[c.left,c.top+a],[c.left+s,c.top+a]];for(let t=0;t<u.length;t+=1){const n=u[t];if(n[0]>=0&&n[0]<=o&&n[1]>=0&&n[1]<=l){if(0===n[0]&&0===n[1])continue;e=!0}}if(!e)return}t.isHorizontal()?((c||u||d||p)&&(r.preventDefault?r.preventDefault():r.returnValue=!1),((u||p)&&!n||(c||d)&&n)&&t.slideNext(),((c||d)&&!n||(u||p)&&n)&&t.slidePrev()):((c||u||h||f)&&(r.preventDefault?r.preventDefault():r.returnValue=!1),(u||f)&&t.slideNext(),(c||h)&&t.slidePrev()),s("keyPress",o)}}function l(){t.keyboard.enabled||(a.addEventListener("keydown",o),t.keyboard.enabled=!0)}function c(){t.keyboard.enabled&&(a.removeEventListener("keydown",o),t.keyboard.enabled=!1)}t.keyboard={enabled:!1},n({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),r("init",(()=>{t.params.keyboard.enabled&&l()})),r("destroy",(()=>{t.keyboard.enabled&&c()})),Object.assign(t.keyboard,{enable:l,disable:c})},function(e){let{swiper:t,extendParams:n,on:r,emit:s}=e;const a=k();let i;n({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),t.mousewheel={enabled:!1};let o,l=j();const c=[];function u(){t.enabled&&(t.mouseEntered=!0)}function d(){t.enabled&&(t.mouseEntered=!1)}function p(e){return!(t.params.mousewheel.thresholdDelta&&e.delta<t.params.mousewheel.thresholdDelta||t.params.mousewheel.thresholdTime&&j()-l<t.params.mousewheel.thresholdTime||!(e.delta>=6&&j()-l<60)&&(e.direction<0?t.isEnd&&!t.params.loop||t.animating||(t.slideNext(),s("scroll",e.raw)):t.isBeginning&&!t.params.loop||t.animating||(t.slidePrev(),s("scroll",e.raw)),l=(new a.Date).getTime(),1))}function h(e){let n=e,r=!0;if(!t.enabled)return;if(e.target.closest(`.${t.params.mousewheel.noMousewheelClass}`))return;const a=t.params.mousewheel;t.params.cssMode&&n.preventDefault();let l=t.el;"container"!==t.params.mousewheel.eventsTarget&&(l=document.querySelector(t.params.mousewheel.eventsTarget));const u=l&&l.contains(n.target);if(!t.mouseEntered&&!u&&!a.releaseOnEdges)return!0;n.originalEvent&&(n=n.originalEvent);let d=0;const h=t.rtlTranslate?-1:1,f=function(e){let t=0,n=0,r=0,s=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=10*t,s=10*n,"deltaY"in e&&(s=e.deltaY),"deltaX"in e&&(r=e.deltaX),e.shiftKey&&!r&&(r=s,s=0),(r||s)&&e.deltaMode&&(1===e.deltaMode?(r*=40,s*=40):(r*=800,s*=800)),r&&!t&&(t=r<1?-1:1),s&&!n&&(n=s<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:s}}(n);if(a.forceToAxis)if(t.isHorizontal()){if(!(Math.abs(f.pixelX)>Math.abs(f.pixelY)))return!0;d=-f.pixelX*h}else{if(!(Math.abs(f.pixelY)>Math.abs(f.pixelX)))return!0;d=-f.pixelY}else d=Math.abs(f.pixelX)>Math.abs(f.pixelY)?-f.pixelX*h:-f.pixelY;if(0===d)return!0;a.invert&&(d=-d);let m=t.getTranslate()+d*a.sensitivity;if(m>=t.minTranslate()&&(m=t.minTranslate()),m<=t.maxTranslate()&&(m=t.maxTranslate()),r=!!t.params.loop||!(m===t.minTranslate()||m===t.maxTranslate()),r&&t.params.nested&&n.stopPropagation(),t.params.freeMode&&t.params.freeMode.enabled){const e={time:j(),delta:Math.abs(d),direction:Math.sign(d)},r=o&&e.time<o.time+500&&e.delta<=o.delta&&e.direction===o.direction;if(!r){o=void 0;let l=t.getTranslate()+d*a.sensitivity;const u=t.isBeginning,p=t.isEnd;if(l>=t.minTranslate()&&(l=t.minTranslate()),l<=t.maxTranslate()&&(l=t.maxTranslate()),t.setTransition(0),t.setTranslate(l),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses(),(!u&&t.isBeginning||!p&&t.isEnd)&&t.updateSlidesClasses(),t.params.loop&&t.loopFix({direction:e.direction<0?"next":"prev",byMousewheel:!0}),t.params.freeMode.sticky){clearTimeout(i),i=void 0,c.length>=15&&c.shift();const n=c.length?c[c.length-1]:void 0,r=c[0];if(c.push(e),n&&(e.delta>n.delta||e.direction!==n.direction))c.splice(0);else if(c.length>=15&&e.time-r.time<500&&r.delta-e.delta>=1&&e.delta<=6){const n=d>0?.8:.2;o=e,c.splice(0),i=E((()=>{!t.destroyed&&t.params&&t.slideToClosest(t.params.speed,!0,void 0,n)}),0)}i||(i=E((()=>{!t.destroyed&&t.params&&(o=e,c.splice(0),t.slideToClosest(t.params.speed,!0,void 0,.5))}),500))}if(r||s("scroll",n),t.params.autoplay&&t.params.autoplay.disableOnInteraction&&t.autoplay.stop(),a.releaseOnEdges&&(l===t.minTranslate()||l===t.maxTranslate()))return!0}}else{const n={time:j(),delta:Math.abs(d),direction:Math.sign(d),raw:e};c.length>=2&&c.shift();const r=c.length?c[c.length-1]:void 0;if(c.push(n),r?(n.direction!==r.direction||n.delta>r.delta||n.time>r.time+150)&&p(n):p(n),function(e){const n=t.params.mousewheel;if(e.direction<0){if(t.isEnd&&!t.params.loop&&n.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&n.releaseOnEdges)return!0;return!1}(n))return!0}return n.preventDefault?n.preventDefault():n.returnValue=!1,!1}function f(e){let n=t.el;"container"!==t.params.mousewheel.eventsTarget&&(n=document.querySelector(t.params.mousewheel.eventsTarget)),n[e]("mouseenter",u),n[e]("mouseleave",d),n[e]("wheel",h)}function m(){return t.params.cssMode?(t.wrapperEl.removeEventListener("wheel",h),!0):!t.mousewheel.enabled&&(f("addEventListener"),t.mousewheel.enabled=!0,!0)}function g(){return t.params.cssMode?(t.wrapperEl.addEventListener(event,h),!0):!!t.mousewheel.enabled&&(f("removeEventListener"),t.mousewheel.enabled=!1,!0)}r("init",(()=>{!t.params.mousewheel.enabled&&t.params.cssMode&&g(),t.params.mousewheel.enabled&&m()})),r("destroy",(()=>{t.params.cssMode&&m(),t.mousewheel.enabled&&g()})),Object.assign(t.mousewheel,{enable:m,disable:g})},function(e){let{swiper:t,extendParams:n,on:r,emit:s}=e;function a(e){let n;return e&&"string"==typeof e&&t.isElement&&(n=t.el.querySelector(e)||t.hostEl.querySelector(e),n)?n:(e&&("string"==typeof e&&(n=[...document.querySelectorAll(e)]),t.params.uniqueNavElements&&"string"==typeof e&&n&&n.length>1&&1===t.el.querySelectorAll(e).length?n=t.el.querySelector(e):n&&1===n.length&&(n=n[0])),e&&!n?e:n)}function i(e,n){const r=t.params.navigation;(e=H(e)).forEach((e=>{e&&(e.classList[n?"add":"remove"](...r.disabledClass.split(" ")),"BUTTON"===e.tagName&&(e.disabled=n),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](r.lockClass))}))}function o(){const{nextEl:e,prevEl:n}=t.navigation;if(t.params.loop)return i(n,!1),void i(e,!1);i(n,t.isBeginning&&!t.params.rewind),i(e,t.isEnd&&!t.params.rewind)}function l(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),s("navigationPrev"))}function c(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),s("navigationNext"))}function u(){const e=t.params.navigation;if(t.params.navigation=xe(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;let n=a(e.nextEl),r=a(e.prevEl);Object.assign(t.navigation,{nextEl:n,prevEl:r}),n=H(n),r=H(r);const s=(n,r)=>{n&&n.addEventListener("click","next"===r?c:l),!t.enabled&&n&&n.classList.add(...e.lockClass.split(" "))};n.forEach((e=>s(e,"next"))),r.forEach((e=>s(e,"prev")))}function d(){let{nextEl:e,prevEl:n}=t.navigation;e=H(e),n=H(n);const r=(e,n)=>{e.removeEventListener("click","next"===n?c:l),e.classList.remove(...t.params.navigation.disabledClass.split(" "))};e.forEach((e=>r(e,"next"))),n.forEach((e=>r(e,"prev")))}n({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null},r("init",(()=>{!1===t.params.navigation.enabled?p():(u(),o())})),r("toEdge fromEdge lock unlock",(()=>{o()})),r("destroy",(()=>{d()})),r("enable disable",(()=>{let{nextEl:e,prevEl:n}=t.navigation;e=H(e),n=H(n),t.enabled?o():[...e,...n].filter((e=>!!e)).forEach((e=>e.classList.add(t.params.navigation.lockClass)))})),r("click",((e,n)=>{let{nextEl:r,prevEl:a}=t.navigation;r=H(r),a=H(a);const i=n.target;let o=a.includes(i)||r.includes(i);if(t.isElement&&!o){const e=n.path||n.composedPath&&n.composedPath();e&&(o=e.find((e=>r.includes(e)||a.includes(e))))}if(t.params.navigation.hideOnClick&&!o){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===i||t.pagination.el.contains(i)))return;let e;r.length?e=r[0].classList.contains(t.params.navigation.hiddenClass):a.length&&(e=a[0].classList.contains(t.params.navigation.hiddenClass)),s(!0===e?"navigationShow":"navigationHide"),[...r,...a].filter((e=>!!e)).forEach((e=>e.classList.toggle(t.params.navigation.hiddenClass)))}}));const p=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),d()};Object.assign(t.navigation,{enable:()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),u(),o()},disable:p,update:o,init:u,destroy:d})},function(e){let{swiper:t,extendParams:n,on:r,emit:s}=e;const a="swiper-pagination";let i;n({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${a}-bullet`,bulletActiveClass:`${a}-bullet-active`,modifierClass:`${a}-`,currentClass:`${a}-current`,totalClass:`${a}-total`,hiddenClass:`${a}-hidden`,progressbarFillClass:`${a}-progressbar-fill`,progressbarOppositeClass:`${a}-progressbar-opposite`,clickableClass:`${a}-clickable`,lockClass:`${a}-lock`,horizontalClass:`${a}-horizontal`,verticalClass:`${a}-vertical`,paginationDisabledClass:`${a}-disabled`}}),t.pagination={el:null,bullets:[]};let o=0;function l(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&0===t.pagination.el.length}function c(e,n){const{bulletActiveClass:r}=t.params.pagination;e&&(e=e[("prev"===n?"previous":"next")+"ElementSibling"])&&(e.classList.add(`${r}-${n}`),(e=e[("prev"===n?"previous":"next")+"ElementSibling"])&&e.classList.add(`${r}-${n}-${n}`))}function u(e){const n=e.target.closest(ke(t.params.pagination.bulletClass));if(!n)return;e.preventDefault();const r=R(n)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===r)return;const e=(s=t.realIndex,a=r,(a%=i=t.slides.length)==1+(s%=i)?"next":a===s-1?"previous":void 0);"next"===e?t.slideNext():"previous"===e?t.slidePrev():t.slideToLoop(r)}else t.slideTo(r);var s,a,i}function d(){const e=t.rtl,n=t.params.pagination;if(l())return;let r,a,u=t.pagination.el;u=H(u);const d=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,p=t.params.loop?Math.ceil(d/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(a=t.previousRealIndex||0,r=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):void 0!==t.snapIndex?(r=t.snapIndex,a=t.previousSnapIndex):(a=t.previousIndex||0,r=t.activeIndex||0),"bullets"===n.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const s=t.pagination.bullets;let l,d,p;if(n.dynamicBullets&&(i=F(s[0],t.isHorizontal()?"width":"height",!0),u.forEach((e=>{e.style[t.isHorizontal()?"width":"height"]=i*(n.dynamicMainBullets+4)+"px"})),n.dynamicMainBullets>1&&void 0!==a&&(o+=r-(a||0),o>n.dynamicMainBullets-1?o=n.dynamicMainBullets-1:o<0&&(o=0)),l=Math.max(r-o,0),d=l+(Math.min(s.length,n.dynamicMainBullets)-1),p=(d+l)/2),s.forEach((e=>{const t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map((e=>`${n.bulletActiveClass}${e}`))].map((e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e)).flat();e.classList.remove(...t)})),u.length>1)s.forEach((e=>{const s=R(e);s===r?e.classList.add(...n.bulletActiveClass.split(" ")):t.isElement&&e.setAttribute("part","bullet"),n.dynamicBullets&&(s>=l&&s<=d&&e.classList.add(...`${n.bulletActiveClass}-main`.split(" ")),s===l&&c(e,"prev"),s===d&&c(e,"next"))}));else{const e=s[r];if(e&&e.classList.add(...n.bulletActiveClass.split(" ")),t.isElement&&s.forEach(((e,t)=>{e.setAttribute("part",t===r?"bullet-active":"bullet")})),n.dynamicBullets){const e=s[l],t=s[d];for(let e=l;e<=d;e+=1)s[e]&&s[e].classList.add(...`${n.bulletActiveClass}-main`.split(" "));c(e,"prev"),c(t,"next")}}if(n.dynamicBullets){const r=Math.min(s.length,n.dynamicMainBullets+4),a=(i*r-i)/2-p*i,o=e?"right":"left";s.forEach((e=>{e.style[t.isHorizontal()?o:"top"]=`${a}px`}))}}u.forEach(((e,a)=>{if("fraction"===n.type&&(e.querySelectorAll(ke(n.currentClass)).forEach((e=>{e.textContent=n.formatFractionCurrent(r+1)})),e.querySelectorAll(ke(n.totalClass)).forEach((e=>{e.textContent=n.formatFractionTotal(p)}))),"progressbar"===n.type){let s;s=n.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const a=(r+1)/p;let i=1,o=1;"horizontal"===s?i=a:o=a,e.querySelectorAll(ke(n.progressbarFillClass)).forEach((e=>{e.style.transform=`translate3d(0,0,0) scaleX(${i}) scaleY(${o})`,e.style.transitionDuration=`${t.params.speed}ms`}))}"custom"===n.type&&n.renderCustom?(e.innerHTML=n.renderCustom(t,r+1,p),0===a&&s("paginationRender",e)):(0===a&&s("paginationRender",e),s("paginationUpdate",e)),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](n.lockClass)}))}function p(){const e=t.params.pagination;if(l())return;const n=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let r=t.pagination.el;r=H(r);let a="";if("bullets"===e.type){let r=t.params.loop?Math.ceil(n/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&r>n&&(r=n);for(let n=0;n<r;n+=1)e.renderBullet?a+=e.renderBullet.call(t,n,e.bulletClass):a+=`<${e.bulletElement} ${t.isElement?'part="bullet"':""} class="${e.bulletClass}"></${e.bulletElement}>`}"fraction"===e.type&&(a=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`),"progressbar"===e.type&&(a=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`),t.pagination.bullets=[],r.forEach((n=>{"custom"!==e.type&&(n.innerHTML=a||""),"bullets"===e.type&&t.pagination.bullets.push(...n.querySelectorAll(ke(e.bulletClass)))})),"custom"!==e.type&&s("paginationRender",r[0])}function h(){t.params.pagination=xe(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let n;"string"==typeof e.el&&t.isElement&&(n=t.el.querySelector(e.el)),n||"string"!=typeof e.el||(n=[...document.querySelectorAll(e.el)]),n||(n=e.el),n&&0!==n.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&Array.isArray(n)&&n.length>1&&(n=[...t.el.querySelectorAll(e.el)],n.length>1&&(n=n.find((e=>B(e,".swiper")[0]===t.el)))),Array.isArray(n)&&1===n.length&&(n=n[0]),Object.assign(t.pagination,{el:n}),n=H(n),n.forEach((n=>{"bullets"===e.type&&e.clickable&&n.classList.add(...(e.clickableClass||"").split(" ")),n.classList.add(e.modifierClass+e.type),n.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(n.classList.add(`${e.modifierClass}${e.type}-dynamic`),o=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&n.classList.add(e.progressbarOppositeClass),e.clickable&&n.addEventListener("click",u),t.enabled||n.classList.add(e.lockClass)})))}function f(){const e=t.params.pagination;if(l())return;let n=t.pagination.el;n&&(n=H(n),n.forEach((n=>{n.classList.remove(e.hiddenClass),n.classList.remove(e.modifierClass+e.type),n.classList.remove(t.isHorizontal()?e.horizontalClass:e.verticalClass),e.clickable&&(n.classList.remove(...(e.clickableClass||"").split(" ")),n.removeEventListener("click",u))}))),t.pagination.bullets&&t.pagination.bullets.forEach((t=>t.classList.remove(...e.bulletActiveClass.split(" "))))}r("changeDirection",(()=>{if(!t.pagination||!t.pagination.el)return;const e=t.params.pagination;let{el:n}=t.pagination;n=H(n),n.forEach((n=>{n.classList.remove(e.horizontalClass,e.verticalClass),n.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)}))})),r("init",(()=>{!1===t.params.pagination.enabled?m():(h(),p(),d())})),r("activeIndexChange",(()=>{void 0===t.snapIndex&&d()})),r("snapIndexChange",(()=>{d()})),r("snapGridLengthChange",(()=>{p(),d()})),r("destroy",(()=>{f()})),r("enable disable",(()=>{let{el:e}=t.pagination;e&&(e=H(e),e.forEach((e=>e.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass))))})),r("lock unlock",(()=>{d()})),r("click",((e,n)=>{const r=n.target,a=H(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&a&&a.length>0&&!r.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&r===t.navigation.nextEl||t.navigation.prevEl&&r===t.navigation.prevEl))return;const e=a[0].classList.contains(t.params.pagination.hiddenClass);s(!0===e?"paginationShow":"paginationHide"),a.forEach((e=>e.classList.toggle(t.params.pagination.hiddenClass)))}}));const m=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=H(e),e.forEach((e=>e.classList.add(t.params.pagination.paginationDisabledClass)))),f()};Object.assign(t.pagination,{enable:()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=H(e),e.forEach((e=>e.classList.remove(t.params.pagination.paginationDisabledClass)))),h(),p(),d()},disable:m,render:p,update:d,init:h,destroy:f})},function(e){let{swiper:t,extendParams:n,on:r,emit:s}=e;const a=_();let i,o,l,c,u=!1,d=null,p=null;function h(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e,rtlTranslate:n}=t,{dragEl:r,el:s}=e,a=t.params.scrollbar,i=t.params.loop?t.progressLoop:t.progress;let c=o,u=(l-o)*i;n?(u=-u,u>0?(c=o-u,u=0):-u+o>l&&(c=l+u)):u<0?(c=o+u,u=0):u+o>l&&(c=l-u),t.isHorizontal()?(r.style.transform=`translate3d(${u}px, 0, 0)`,r.style.width=`${c}px`):(r.style.transform=`translate3d(0px, ${u}px, 0)`,r.style.height=`${c}px`),a.hide&&(clearTimeout(d),s.style.opacity=1,d=setTimeout((()=>{s.style.opacity=0,s.style.transitionDuration="400ms"}),1e3))}function f(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e}=t,{dragEl:n,el:r}=e;n.style.width="",n.style.height="",l=t.isHorizontal()?r.offsetWidth:r.offsetHeight,c=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),o="auto"===t.params.scrollbar.dragSize?l*c:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?n.style.width=`${o}px`:n.style.height=`${o}px`,r.style.display=c>=1?"none":"",t.params.scrollbar.hide&&(r.style.opacity=0),t.params.watchOverflow&&t.enabled&&e.el.classList[t.isLocked?"add":"remove"](t.params.scrollbar.lockClass)}function m(e){return t.isHorizontal()?e.clientX:e.clientY}function g(e){const{scrollbar:n,rtlTranslate:r}=t,{el:s}=n;let a;a=(m(e)-z(s)[t.isHorizontal()?"left":"top"]-(null!==i?i:o/2))/(l-o),a=Math.max(Math.min(a,1),0),r&&(a=1-a);const c=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*a;t.updateProgress(c),t.setTranslate(c),t.updateActiveIndex(),t.updateSlidesClasses()}function v(e){const n=t.params.scrollbar,{scrollbar:r,wrapperEl:a}=t,{el:o,dragEl:l}=r;u=!0,i=e.target===l?m(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),a.style.transitionDuration="100ms",l.style.transitionDuration="100ms",g(e),clearTimeout(p),o.style.transitionDuration="0ms",n.hide&&(o.style.opacity=1),t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="none"),s("scrollbarDragStart",e)}function b(e){const{scrollbar:n,wrapperEl:r}=t,{el:a,dragEl:i}=n;u&&(e.preventDefault&&e.cancelable?e.preventDefault():e.returnValue=!1,g(e),r.style.transitionDuration="0ms",a.style.transitionDuration="0ms",i.style.transitionDuration="0ms",s("scrollbarDragMove",e))}function w(e){const n=t.params.scrollbar,{scrollbar:r,wrapperEl:a}=t,{el:i}=r;u&&(u=!1,t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="",a.style.transitionDuration=""),n.hide&&(clearTimeout(p),p=E((()=>{i.style.opacity=0,i.style.transitionDuration="400ms"}),1e3)),s("scrollbarDragEnd",e),n.snapOnRelease&&t.slideToClosest())}function y(e){const{scrollbar:n,params:r}=t,s=n.el;if(!s)return;const i=s,o=!!r.passiveListeners&&{passive:!1,capture:!1},l=!!r.passiveListeners&&{passive:!0,capture:!1};if(!i)return;const c="on"===e?"addEventListener":"removeEventListener";i[c]("pointerdown",v,o),a[c]("pointermove",b,o),a[c]("pointerup",w,l)}function x(){const{scrollbar:e,el:n}=t;t.params.scrollbar=xe(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});const r=t.params.scrollbar;if(!r.el)return;let s,i;if("string"==typeof r.el&&t.isElement&&(s=t.el.querySelector(r.el)),s||"string"!=typeof r.el)s||(s=r.el);else if(s=a.querySelectorAll(r.el),!s.length)return;t.params.uniqueNavElements&&"string"==typeof r.el&&s.length>1&&1===n.querySelectorAll(r.el).length&&(s=n.querySelector(r.el)),s.length>0&&(s=s[0]),s.classList.add(t.isHorizontal()?r.horizontalClass:r.verticalClass),s&&(i=s.querySelector(ke(t.params.scrollbar.dragClass)),i||(i=D("div",t.params.scrollbar.dragClass),s.append(i))),Object.assign(e,{el:s,dragEl:i}),r.draggable&&t.params.scrollbar.el&&t.scrollbar.el&&y("on"),s&&s.classList[t.enabled?"remove":"add"](...S(t.params.scrollbar.lockClass))}function k(){const e=t.params.scrollbar,n=t.scrollbar.el;n&&n.classList.remove(...S(t.isHorizontal()?e.horizontalClass:e.verticalClass)),t.params.scrollbar.el&&t.scrollbar.el&&y("off")}n({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),t.scrollbar={el:null,dragEl:null},r("changeDirection",(()=>{if(!t.scrollbar||!t.scrollbar.el)return;const e=t.params.scrollbar;let{el:n}=t.scrollbar;n=H(n),n.forEach((n=>{n.classList.remove(e.horizontalClass,e.verticalClass),n.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)}))})),r("init",(()=>{!1===t.params.scrollbar.enabled?j():(x(),f(),h())})),r("update resize observerUpdate lock unlock changeDirection",(()=>{f()})),r("setTranslate",(()=>{h()})),r("setTransition",((e,n)=>{!function(e){t.params.scrollbar.el&&t.scrollbar.el&&(t.scrollbar.dragEl.style.transitionDuration=`${e}ms`)}(n)})),r("enable disable",(()=>{const{el:e}=t.scrollbar;e&&e.classList[t.enabled?"remove":"add"](...S(t.params.scrollbar.lockClass))})),r("destroy",(()=>{k()}));const j=()=>{t.el.classList.add(...S(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.add(...S(t.params.scrollbar.scrollbarDisabledClass)),k()};Object.assign(t.scrollbar,{enable:()=>{t.el.classList.remove(...S(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.remove(...S(t.params.scrollbar.scrollbarDisabledClass)),x(),f(),h()},disable:j,updateSize:f,setTranslate:h,init:x,destroy:k})},function(e){let{swiper:t,extendParams:n,on:r}=e;n({parallax:{enabled:!1}});const s="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",a=(e,n)=>{const{rtl:r}=t,s=r?-1:1,a=e.getAttribute("data-swiper-parallax")||"0";let i=e.getAttribute("data-swiper-parallax-x"),o=e.getAttribute("data-swiper-parallax-y");const l=e.getAttribute("data-swiper-parallax-scale"),c=e.getAttribute("data-swiper-parallax-opacity"),u=e.getAttribute("data-swiper-parallax-rotate");if(i||o?(i=i||"0",o=o||"0"):t.isHorizontal()?(i=a,o="0"):(o=a,i="0"),i=i.indexOf("%")>=0?parseInt(i,10)*n*s+"%":i*n*s+"px",o=o.indexOf("%")>=0?parseInt(o,10)*n+"%":o*n+"px",null!=c){const t=c-(c-1)*(1-Math.abs(n));e.style.opacity=t}let d=`translate3d(${i}, ${o}, 0px)`;null!=l&&(d+=` scale(${l-(l-1)*(1-Math.abs(n))})`),u&&null!=u&&(d+=` rotate(${u*n*-1}deg)`),e.style.transform=d},i=()=>{const{el:e,slides:n,progress:r,snapGrid:i,isElement:o}=t,l=O(e,s);t.isElement&&l.push(...O(t.hostEl,s)),l.forEach((e=>{a(e,r)})),n.forEach(((e,n)=>{let o=e.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(o+=Math.ceil(n/2)-r*(i.length-1)),o=Math.min(Math.max(o,-1),1),e.querySelectorAll(`${s}, [data-swiper-parallax-rotate]`).forEach((e=>{a(e,o)}))}))};r("beforeInit",(()=>{t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)})),r("init",(()=>{t.params.parallax.enabled&&i()})),r("setTranslate",(()=>{t.params.parallax.enabled&&i()})),r("setTransition",((e,n)=>{t.params.parallax.enabled&&function(e){void 0===e&&(e=t.params.speed);const{el:n,hostEl:r}=t,a=[...n.querySelectorAll(s)];t.isElement&&a.push(...r.querySelectorAll(s)),a.forEach((t=>{let n=parseInt(t.getAttribute("data-swiper-parallax-duration"),10)||e;0===e&&(n=0),t.style.transitionDuration=`${n}ms`}))}(n)}))},function(e){let{swiper:t,extendParams:n,on:r,emit:s}=e;const a=k();n({zoom:{enabled:!1,limitToOriginalSize:!1,maxRatio:3,minRatio:1,panOnMouseMove:!1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),t.zoom={enabled:!1};let i=1,o=!1,l=!1,c={x:0,y:0};const u=-3;let d,p;const h=[],f={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},m={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},g={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let v,b=1;function w(){if(h.length<2)return 1;const e=h[0].pageX,t=h[0].pageY,n=h[1].pageX,r=h[1].pageY;return Math.sqrt((n-e)**2+(r-t)**2)}function y(){const e=t.params.zoom,n=f.imageWrapEl.getAttribute("data-swiper-zoom")||e.maxRatio;if(e.limitToOriginalSize&&f.imageEl&&f.imageEl.naturalWidth){const e=f.imageEl.naturalWidth/f.imageEl.offsetWidth;return Math.min(e,n)}return n}function _(e){const n=t.isElement?"swiper-slide":`.${t.params.slideClass}`;return!!e.target.matches(n)||t.slides.filter((t=>t.contains(e.target))).length>0}function x(e){const n=`.${t.params.zoom.containerClass}`;return!!e.target.matches(n)||[...t.hostEl.querySelectorAll(n)].filter((t=>t.contains(e.target))).length>0}function S(e){if("mouse"===e.pointerType&&h.splice(0,h.length),!_(e))return;const n=t.params.zoom;if(d=!1,p=!1,h.push(e),!(h.length<2)){if(d=!0,f.scaleStart=w(),!f.slideEl){f.slideEl=e.target.closest(`.${t.params.slideClass}, swiper-slide`),f.slideEl||(f.slideEl=t.slides[t.activeIndex]);let r=f.slideEl.querySelector(`.${n.containerClass}`);if(r&&(r=r.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),f.imageEl=r,f.imageWrapEl=r?B(f.imageEl,`.${n.containerClass}`)[0]:void 0,!f.imageWrapEl)return void(f.imageEl=void 0);f.maxRatio=y()}if(f.imageEl){const[e,t]=function(){if(h.length<2)return{x:null,y:null};const e=f.imageEl.getBoundingClientRect();return[(h[0].pageX+(h[1].pageX-h[0].pageX)/2-e.x-a.scrollX)/i,(h[0].pageY+(h[1].pageY-h[0].pageY)/2-e.y-a.scrollY)/i]}();f.originX=e,f.originY=t,f.imageEl.style.transitionDuration="0ms"}o=!0}}function E(e){if(!_(e))return;const n=t.params.zoom,r=t.zoom,s=h.findIndex((t=>t.pointerId===e.pointerId));s>=0&&(h[s]=e),h.length<2||(p=!0,f.scaleMove=w(),f.imageEl&&(r.scale=f.scaleMove/f.scaleStart*i,r.scale>f.maxRatio&&(r.scale=f.maxRatio-1+(r.scale-f.maxRatio+1)**.5),r.scale<n.minRatio&&(r.scale=n.minRatio+1-(n.minRatio-r.scale+1)**.5),f.imageEl.style.transform=`translate3d(0,0,0) scale(${r.scale})`))}function j(e){if(!_(e))return;if("mouse"===e.pointerType&&"pointerout"===e.type)return;const n=t.params.zoom,r=t.zoom,s=h.findIndex((t=>t.pointerId===e.pointerId));s>=0&&h.splice(s,1),d&&p&&(d=!1,p=!1,f.imageEl&&(r.scale=Math.max(Math.min(r.scale,f.maxRatio),n.minRatio),f.imageEl.style.transitionDuration=`${t.params.speed}ms`,f.imageEl.style.transform=`translate3d(0,0,0) scale(${r.scale})`,i=r.scale,o=!1,r.scale>1&&f.slideEl?f.slideEl.classList.add(`${n.zoomedSlideClass}`):r.scale<=1&&f.slideEl&&f.slideEl.classList.remove(`${n.zoomedSlideClass}`),1===r.scale&&(f.originX=0,f.originY=0,f.slideEl=void 0)))}function T(){t.touchEventsData.preventTouchMoveFromPointerMove=!1}function M(e){const n="mouse"===e.pointerType&&t.params.zoom.panOnMouseMove;if(!_(e)||!x(e))return;const r=t.zoom;if(!f.imageEl)return;if(!m.isTouched||!f.slideEl)return void(n&&A(e));if(n)return void A(e);m.isMoved||(m.width=f.imageEl.offsetWidth||f.imageEl.clientWidth,m.height=f.imageEl.offsetHeight||f.imageEl.clientHeight,m.startX=C(f.imageWrapEl,"x")||0,m.startY=C(f.imageWrapEl,"y")||0,f.slideWidth=f.slideEl.offsetWidth,f.slideHeight=f.slideEl.offsetHeight,f.imageWrapEl.style.transitionDuration="0ms");const s=m.width*r.scale,a=m.height*r.scale;if(m.minX=Math.min(f.slideWidth/2-s/2,0),m.maxX=-m.minX,m.minY=Math.min(f.slideHeight/2-a/2,0),m.maxY=-m.minY,m.touchesCurrent.x=h.length>0?h[0].pageX:e.pageX,m.touchesCurrent.y=h.length>0?h[0].pageY:e.pageY,Math.max(Math.abs(m.touchesCurrent.x-m.touchesStart.x),Math.abs(m.touchesCurrent.y-m.touchesStart.y))>5&&(t.allowClick=!1),!m.isMoved&&!o){if(t.isHorizontal()&&(Math.floor(m.minX)===Math.floor(m.startX)&&m.touchesCurrent.x<m.touchesStart.x||Math.floor(m.maxX)===Math.floor(m.startX)&&m.touchesCurrent.x>m.touchesStart.x))return m.isTouched=!1,void T();if(!t.isHorizontal()&&(Math.floor(m.minY)===Math.floor(m.startY)&&m.touchesCurrent.y<m.touchesStart.y||Math.floor(m.maxY)===Math.floor(m.startY)&&m.touchesCurrent.y>m.touchesStart.y))return m.isTouched=!1,void T()}e.cancelable&&e.preventDefault(),e.stopPropagation(),clearTimeout(v),t.touchEventsData.preventTouchMoveFromPointerMove=!0,v=setTimeout((()=>{t.destroyed||T()})),m.isMoved=!0;const l=(r.scale-i)/(f.maxRatio-t.params.zoom.minRatio),{originX:c,originY:u}=f;m.currentX=m.touchesCurrent.x-m.touchesStart.x+m.startX+l*(m.width-2*c),m.currentY=m.touchesCurrent.y-m.touchesStart.y+m.startY+l*(m.height-2*u),m.currentX<m.minX&&(m.currentX=m.minX+1-(m.minX-m.currentX+1)**.8),m.currentX>m.maxX&&(m.currentX=m.maxX-1+(m.currentX-m.maxX+1)**.8),m.currentY<m.minY&&(m.currentY=m.minY+1-(m.minY-m.currentY+1)**.8),m.currentY>m.maxY&&(m.currentY=m.maxY-1+(m.currentY-m.maxY+1)**.8),g.prevPositionX||(g.prevPositionX=m.touchesCurrent.x),g.prevPositionY||(g.prevPositionY=m.touchesCurrent.y),g.prevTime||(g.prevTime=Date.now()),g.x=(m.touchesCurrent.x-g.prevPositionX)/(Date.now()-g.prevTime)/2,g.y=(m.touchesCurrent.y-g.prevPositionY)/(Date.now()-g.prevTime)/2,Math.abs(m.touchesCurrent.x-g.prevPositionX)<2&&(g.x=0),Math.abs(m.touchesCurrent.y-g.prevPositionY)<2&&(g.y=0),g.prevPositionX=m.touchesCurrent.x,g.prevPositionY=m.touchesCurrent.y,g.prevTime=Date.now(),f.imageWrapEl.style.transform=`translate3d(${m.currentX}px, ${m.currentY}px,0)`}function P(){const e=t.zoom;f.slideEl&&t.activeIndex!==t.slides.indexOf(f.slideEl)&&(f.imageEl&&(f.imageEl.style.transform="translate3d(0,0,0) scale(1)"),f.imageWrapEl&&(f.imageWrapEl.style.transform="translate3d(0,0,0)"),f.slideEl.classList.remove(`${t.params.zoom.zoomedSlideClass}`),e.scale=1,i=1,f.slideEl=void 0,f.imageEl=void 0,f.imageWrapEl=void 0,f.originX=0,f.originY=0)}function A(e){if(i<=1||!f.imageWrapEl)return;if(!_(e)||!x(e))return;const t=a.getComputedStyle(f.imageWrapEl).transform,n=new a.DOMMatrix(t);if(!l)return l=!0,c.x=e.clientX,c.y=e.clientY,m.startX=n.e,m.startY=n.f,m.width=f.imageEl.offsetWidth||f.imageEl.clientWidth,m.height=f.imageEl.offsetHeight||f.imageEl.clientHeight,f.slideWidth=f.slideEl.offsetWidth,void(f.slideHeight=f.slideEl.offsetHeight);const r=(e.clientX-c.x)*u,s=(e.clientY-c.y)*u,o=m.width*i,d=m.height*i,p=f.slideWidth,h=f.slideHeight,g=Math.min(p/2-o/2,0),v=-g,b=Math.min(h/2-d/2,0),w=-b,y=Math.max(Math.min(m.startX+r,v),g),k=Math.max(Math.min(m.startY+s,w),b);f.imageWrapEl.style.transitionDuration="0ms",f.imageWrapEl.style.transform=`translate3d(${y}px, ${k}px, 0)`,c.x=e.clientX,c.y=e.clientY,m.startX=y,m.startY=k,m.currentX=y,m.currentY=k}function I(e){const n=t.zoom,r=t.params.zoom;if(!f.slideEl){e&&e.target&&(f.slideEl=e.target.closest(`.${t.params.slideClass}, swiper-slide`)),f.slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?f.slideEl=O(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:f.slideEl=t.slides[t.activeIndex]);let n=f.slideEl.querySelector(`.${r.containerClass}`);n&&(n=n.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),f.imageEl=n,f.imageWrapEl=n?B(f.imageEl,`.${r.containerClass}`)[0]:void 0}if(!f.imageEl||!f.imageWrapEl)return;let s,o,l,c,u,d,p,h,g,v,b,w,_,x,k,S,E,j;t.params.cssMode&&(t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.touchAction="none"),f.slideEl.classList.add(`${r.zoomedSlideClass}`),void 0===m.touchesStart.x&&e?(s=e.pageX,o=e.pageY):(s=m.touchesStart.x,o=m.touchesStart.y);const C=i,T="number"==typeof e?e:null;1===i&&T&&(s=void 0,o=void 0,m.touchesStart.x=void 0,m.touchesStart.y=void 0);const M=y();n.scale=T||M,i=T||M,!e||1===i&&T?(p=0,h=0):(E=f.slideEl.offsetWidth,j=f.slideEl.offsetHeight,l=z(f.slideEl).left+a.scrollX,c=z(f.slideEl).top+a.scrollY,u=l+E/2-s,d=c+j/2-o,g=f.imageEl.offsetWidth||f.imageEl.clientWidth,v=f.imageEl.offsetHeight||f.imageEl.clientHeight,b=g*n.scale,w=v*n.scale,_=Math.min(E/2-b/2,0),x=Math.min(j/2-w/2,0),k=-_,S=-x,C>0&&T&&"number"==typeof m.currentX&&"number"==typeof m.currentY?(p=m.currentX*n.scale/C,h=m.currentY*n.scale/C):(p=u*n.scale,h=d*n.scale),p<_&&(p=_),p>k&&(p=k),h<x&&(h=x),h>S&&(h=S)),T&&1===n.scale&&(f.originX=0,f.originY=0),m.currentX=p,m.currentY=h,f.imageWrapEl.style.transitionDuration="300ms",f.imageWrapEl.style.transform=`translate3d(${p}px, ${h}px,0)`,f.imageEl.style.transitionDuration="300ms",f.imageEl.style.transform=`translate3d(0,0,0) scale(${n.scale})`}function L(){const e=t.zoom,n=t.params.zoom;if(!f.slideEl){t.params.virtual&&t.params.virtual.enabled&&t.virtual?f.slideEl=O(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:f.slideEl=t.slides[t.activeIndex];let e=f.slideEl.querySelector(`.${n.containerClass}`);e&&(e=e.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),f.imageEl=e,f.imageWrapEl=e?B(f.imageEl,`.${n.containerClass}`)[0]:void 0}f.imageEl&&f.imageWrapEl&&(t.params.cssMode&&(t.wrapperEl.style.overflow="",t.wrapperEl.style.touchAction=""),e.scale=1,i=1,m.currentX=void 0,m.currentY=void 0,m.touchesStart.x=void 0,m.touchesStart.y=void 0,f.imageWrapEl.style.transitionDuration="300ms",f.imageWrapEl.style.transform="translate3d(0,0,0)",f.imageEl.style.transitionDuration="300ms",f.imageEl.style.transform="translate3d(0,0,0) scale(1)",f.slideEl.classList.remove(`${n.zoomedSlideClass}`),f.slideEl=void 0,f.originX=0,f.originY=0,t.params.zoom.panOnMouseMove&&(c={x:0,y:0},l&&(l=!1,m.startX=0,m.startY=0)))}function D(e){const n=t.zoom;n.scale&&1!==n.scale?L():I(e)}function N(){return{passiveListener:!!t.params.passiveListeners&&{passive:!0,capture:!1},activeListenerWithCapture:!t.params.passiveListeners||{passive:!1,capture:!0}}}function R(){const e=t.zoom;if(e.enabled)return;e.enabled=!0;const{passiveListener:n,activeListenerWithCapture:r}=N();t.wrapperEl.addEventListener("pointerdown",S,n),t.wrapperEl.addEventListener("pointermove",E,r),["pointerup","pointercancel","pointerout"].forEach((e=>{t.wrapperEl.addEventListener(e,j,n)})),t.wrapperEl.addEventListener("pointermove",M,r)}function $(){const e=t.zoom;if(!e.enabled)return;e.enabled=!1;const{passiveListener:n,activeListenerWithCapture:r}=N();t.wrapperEl.removeEventListener("pointerdown",S,n),t.wrapperEl.removeEventListener("pointermove",E,r),["pointerup","pointercancel","pointerout"].forEach((e=>{t.wrapperEl.removeEventListener(e,j,n)})),t.wrapperEl.removeEventListener("pointermove",M,r)}Object.defineProperty(t.zoom,"scale",{get:()=>b,set(e){if(b!==e){const t=f.imageEl,n=f.slideEl;s("zoomChange",e,t,n)}b=e}}),r("init",(()=>{t.params.zoom.enabled&&R()})),r("destroy",(()=>{$()})),r("touchStart",((e,n)=>{t.zoom.enabled&&function(e){const n=t.device;if(!f.imageEl)return;if(m.isTouched)return;n.android&&e.cancelable&&e.preventDefault(),m.isTouched=!0;const r=h.length>0?h[0]:e;m.touchesStart.x=r.pageX,m.touchesStart.y=r.pageY}(n)})),r("touchEnd",((e,n)=>{t.zoom.enabled&&function(){const e=t.zoom;if(h.length=0,!f.imageEl)return;if(!m.isTouched||!m.isMoved)return m.isTouched=!1,void(m.isMoved=!1);m.isTouched=!1,m.isMoved=!1;let n=300,r=300;const s=g.x*n,a=m.currentX+s,i=g.y*r,o=m.currentY+i;0!==g.x&&(n=Math.abs((a-m.currentX)/g.x)),0!==g.y&&(r=Math.abs((o-m.currentY)/g.y));const l=Math.max(n,r);m.currentX=a,m.currentY=o;const c=m.width*e.scale,u=m.height*e.scale;m.minX=Math.min(f.slideWidth/2-c/2,0),m.maxX=-m.minX,m.minY=Math.min(f.slideHeight/2-u/2,0),m.maxY=-m.minY,m.currentX=Math.max(Math.min(m.currentX,m.maxX),m.minX),m.currentY=Math.max(Math.min(m.currentY,m.maxY),m.minY),f.imageWrapEl.style.transitionDuration=`${l}ms`,f.imageWrapEl.style.transform=`translate3d(${m.currentX}px, ${m.currentY}px,0)`}()})),r("doubleTap",((e,n)=>{!t.animating&&t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&D(n)})),r("transitionEnd",(()=>{t.zoom.enabled&&t.params.zoom.enabled&&P()})),r("slideChange",(()=>{t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&P()})),Object.assign(t.zoom,{enable:R,disable:$,in:I,out:L,toggle:D})},function(e){let{swiper:t,extendParams:n,on:r}=e;function s(e,t){const n=function(){let e,t,n;return(r,s)=>{for(t=-1,e=r.length;e-t>1;)n=e+t>>1,r[n]<=s?t=n:e=n;return e}}();let r,s;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(s=n(this.x,e),r=s-1,(e-this.x[r])*(this.y[s]-this.y[r])/(this.x[s]-this.x[r])+this.y[r]):0},this}function a(){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)}n({controller:{control:void 0,inverse:!1,by:"slide"}}),t.controller={control:void 0},r("beforeInit",(()=>{"undefined"!=typeof window&&("string"==typeof t.params.controller.control||t.params.controller.control instanceof HTMLElement)?("string"==typeof t.params.controller.control?[...document.querySelectorAll(t.params.controller.control)]:[t.params.controller.control]).forEach((e=>{if(t.controller.control||(t.controller.control=[]),e&&e.swiper)t.controller.control.push(e.swiper);else if(e){const n=`${t.params.eventsPrefix}init`,r=s=>{t.controller.control.push(s.detail[0]),t.update(),e.removeEventListener(n,r)};e.addEventListener(n,r)}})):t.controller.control=t.params.controller.control})),r("update",(()=>{a()})),r("resize",(()=>{a()})),r("observerUpdate",(()=>{a()})),r("setTranslate",((e,n,r)=>{t.controller.control&&!t.controller.control.destroyed&&t.controller.setTranslate(n,r)})),r("setTransition",((e,n,r)=>{t.controller.control&&!t.controller.control.destroyed&&t.controller.setTransition(n,r)})),Object.assign(t.controller,{setTranslate:function(e,n){const r=t.controller.control;let a,i;const o=t.constructor;function l(e){if(e.destroyed)return;const n=t.rtlTranslate?-t.translate:t.translate;"slide"===t.params.controller.by&&(function(e){t.controller.spline=t.params.loop?new s(t.slidesGrid,e.slidesGrid):new s(t.snapGrid,e.snapGrid)}(e),i=-t.controller.spline.interpolate(-n)),i&&"container"!==t.params.controller.by||(a=(e.maxTranslate()-e.minTranslate())/(t.maxTranslate()-t.minTranslate()),!Number.isNaN(a)&&Number.isFinite(a)||(a=1),i=(n-t.minTranslate())*a+e.minTranslate()),t.params.controller.inverse&&(i=e.maxTranslate()-i),e.updateProgress(i),e.setTranslate(i,t),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(r))for(let e=0;e<r.length;e+=1)r[e]!==n&&r[e]instanceof o&&l(r[e]);else r instanceof o&&n!==r&&l(r)},setTransition:function(e,n){const r=t.constructor,s=t.controller.control;let a;function i(n){n.destroyed||(n.setTransition(e,t),0!==e&&(n.transitionStart(),n.params.autoHeight&&E((()=>{n.updateAutoHeight()})),$(n.wrapperEl,(()=>{s&&n.transitionEnd()}))))}if(Array.isArray(s))for(a=0;a<s.length;a+=1)s[a]!==n&&s[a]instanceof r&&i(s[a]);else s instanceof r&&n!==s&&i(s)}})},function(e){let{swiper:t,extendParams:n,on:r}=e;n({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0}}),t.a11y={clicked:!1};let s,a,i=null,o=(new Date).getTime();function l(e){const t=i;0!==t.length&&(t.innerHTML="",t.innerHTML=e)}function c(e){(e=H(e)).forEach((e=>{e.setAttribute("tabIndex","0")}))}function u(e){(e=H(e)).forEach((e=>{e.setAttribute("tabIndex","-1")}))}function d(e,t){(e=H(e)).forEach((e=>{e.setAttribute("role",t)}))}function p(e,t){(e=H(e)).forEach((e=>{e.setAttribute("aria-roledescription",t)}))}function h(e,t){(e=H(e)).forEach((e=>{e.setAttribute("aria-label",t)}))}function f(e){(e=H(e)).forEach((e=>{e.setAttribute("aria-disabled",!0)}))}function m(e){(e=H(e)).forEach((e=>{e.setAttribute("aria-disabled",!1)}))}function g(e){if(13!==e.keyCode&&32!==e.keyCode)return;const n=t.params.a11y,r=e.target;if(!t.pagination||!t.pagination.el||r!==t.pagination.el&&!t.pagination.el.contains(e.target)||e.target.matches(ke(t.params.pagination.bulletClass))){if(t.navigation&&t.navigation.prevEl&&t.navigation.nextEl){const e=H(t.navigation.prevEl);H(t.navigation.nextEl).includes(r)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?l(n.lastSlideMessage):l(n.nextSlideMessage)),e.includes(r)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?l(n.firstSlideMessage):l(n.prevSlideMessage))}t.pagination&&r.matches(ke(t.params.pagination.bulletClass))&&r.click()}}function v(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function b(){return v()&&t.params.pagination.clickable}const w=(e,t,n)=>{c(e),"BUTTON"!==e.tagName&&(d(e,"button"),e.addEventListener("keydown",g)),h(e,n),function(e,t){(e=H(e)).forEach((e=>{e.setAttribute("aria-controls",t)}))}(e,t)},y=e=>{a&&a!==e.target&&!a.contains(e.target)&&(s=!0),t.a11y.clicked=!0},x=()=>{s=!1,requestAnimationFrame((()=>{requestAnimationFrame((()=>{t.destroyed||(t.a11y.clicked=!1)}))}))},k=e=>{o=(new Date).getTime()},S=e=>{if(t.a11y.clicked||!t.params.a11y.scrollOnFocus)return;if((new Date).getTime()-o<100)return;const n=e.target.closest(`.${t.params.slideClass}, swiper-slide`);if(!n||!t.slides.includes(n))return;a=n;const r=t.slides.indexOf(n)===t.activeIndex,i=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(n);r||i||e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,requestAnimationFrame((()=>{s||(t.params.loop?t.slideToLoop(parseInt(n.getAttribute("data-swiper-slide-index")),0):t.slideTo(t.slides.indexOf(n),0),s=!1)})))},E=()=>{const e=t.params.a11y;e.itemRoleDescriptionMessage&&p(t.slides,e.itemRoleDescriptionMessage),e.slideRole&&d(t.slides,e.slideRole);const n=t.slides.length;e.slideLabelMessage&&t.slides.forEach(((r,s)=>{const a=t.params.loop?parseInt(r.getAttribute("data-swiper-slide-index"),10):s;h(r,e.slideLabelMessage.replace(/\{\{index\}\}/,a+1).replace(/\{\{slidesLength\}\}/,n))}))};r("beforeInit",(()=>{i=D("span",t.params.a11y.notificationClass),i.setAttribute("aria-live","assertive"),i.setAttribute("aria-atomic","true")})),r("afterInit",(()=>{t.params.a11y.enabled&&(()=>{const e=t.params.a11y;t.el.append(i);const n=t.el;e.containerRoleDescriptionMessage&&p(n,e.containerRoleDescriptionMessage),e.containerMessage&&h(n,e.containerMessage),e.containerRole&&d(n,e.containerRole);const r=t.wrapperEl,s=e.id||r.getAttribute("id")||`swiper-wrapper-${a=16,void 0===a&&(a=16),"x".repeat(a).replace(/x/g,(()=>Math.round(16*Math.random()).toString(16)))}`;var a;const o=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";var l;l=s,H(r).forEach((e=>{e.setAttribute("id",l)})),function(e,t){(e=H(e)).forEach((e=>{e.setAttribute("aria-live",t)}))}(r,o),E();let{nextEl:c,prevEl:u}=t.navigation?t.navigation:{};c=H(c),u=H(u),c&&c.forEach((t=>w(t,s,e.nextSlideMessage))),u&&u.forEach((t=>w(t,s,e.prevSlideMessage))),b()&&H(t.pagination.el).forEach((e=>{e.addEventListener("keydown",g)})),_().addEventListener("visibilitychange",k),t.el.addEventListener("focus",S,!0),t.el.addEventListener("focus",S,!0),t.el.addEventListener("pointerdown",y,!0),t.el.addEventListener("pointerup",x,!0)})()})),r("slidesLengthChange snapGridLengthChange slidesGridLengthChange",(()=>{t.params.a11y.enabled&&E()})),r("fromEdge toEdge afterInit lock unlock",(()=>{t.params.a11y.enabled&&function(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{nextEl:e,prevEl:n}=t.navigation;n&&(t.isBeginning?(f(n),u(n)):(m(n),c(n))),e&&(t.isEnd?(f(e),u(e)):(m(e),c(e)))}()})),r("paginationUpdate",(()=>{t.params.a11y.enabled&&function(){const e=t.params.a11y;v()&&t.pagination.bullets.forEach((n=>{t.params.pagination.clickable&&(c(n),t.params.pagination.renderBullet||(d(n,"button"),h(n,e.paginationBulletMessage.replace(/\{\{index\}\}/,R(n)+1)))),n.matches(ke(t.params.pagination.bulletActiveClass))?n.setAttribute("aria-current","true"):n.removeAttribute("aria-current")}))}()})),r("destroy",(()=>{t.params.a11y.enabled&&function(){i&&i.remove();let{nextEl:e,prevEl:n}=t.navigation?t.navigation:{};e=H(e),n=H(n),e&&e.forEach((e=>e.removeEventListener("keydown",g))),n&&n.forEach((e=>e.removeEventListener("keydown",g))),b()&&H(t.pagination.el).forEach((e=>{e.removeEventListener("keydown",g)})),_().removeEventListener("visibilitychange",k),t.el&&"string"!=typeof t.el&&(t.el.removeEventListener("focus",S,!0),t.el.removeEventListener("pointerdown",y,!0),t.el.removeEventListener("pointerup",x,!0))}()}))},function(e){let{swiper:t,extendParams:n,on:r}=e;n({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let s=!1,a={};const i=e=>e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),o=e=>{const t=k();let n;n=e?new URL(e):t.location;const r=n.pathname.slice(1).split("/").filter((e=>""!==e)),s=r.length;return{key:r[s-2],value:r[s-1]}},l=(e,n)=>{const r=k();if(!s||!t.params.history.enabled)return;let a;a=t.params.url?new URL(t.params.url):r.location;const o=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${n}"]`):t.slides[n];let l=i(o.getAttribute("data-history"));if(t.params.history.root.length>0){let n=t.params.history.root;"/"===n[n.length-1]&&(n=n.slice(0,n.length-1)),l=`${n}/${e?`${e}/`:""}${l}`}else a.pathname.includes(e)||(l=`${e?`${e}/`:""}${l}`);t.params.history.keepQuery&&(l+=a.search);const c=r.history.state;c&&c.value===l||(t.params.history.replaceState?r.history.replaceState({value:l},null,l):r.history.pushState({value:l},null,l))},c=(e,n,r)=>{if(n)for(let s=0,a=t.slides.length;s<a;s+=1){const a=t.slides[s];if(i(a.getAttribute("data-history"))===n){const n=t.getSlideIndex(a);t.slideTo(n,e,r)}}else t.slideTo(0,e,r)},u=()=>{a=o(t.params.url),c(t.params.speed,a.value,!1)};r("init",(()=>{t.params.history.enabled&&(()=>{const e=k();if(t.params.history){if(!e.history||!e.history.pushState)return t.params.history.enabled=!1,void(t.params.hashNavigation.enabled=!0);s=!0,a=o(t.params.url),a.key||a.value?(c(0,a.value,t.params.runCallbacksOnInit),t.params.history.replaceState||e.addEventListener("popstate",u)):t.params.history.replaceState||e.addEventListener("popstate",u)}})()})),r("destroy",(()=>{t.params.history.enabled&&(()=>{const e=k();t.params.history.replaceState||e.removeEventListener("popstate",u)})()})),r("transitionEnd _freeModeNoMomentumRelease",(()=>{s&&l(t.params.history.key,t.activeIndex)})),r("slideChange",(()=>{s&&t.params.cssMode&&l(t.params.history.key,t.activeIndex)}))},function(e){let{swiper:t,extendParams:n,emit:r,on:s}=e,a=!1;const i=_(),o=k();n({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(e,n){if(t.virtual&&t.params.virtual.enabled){const e=t.slides.find((e=>e.getAttribute("data-hash")===n));return e?parseInt(e.getAttribute("data-swiper-slide-index"),10):0}return t.getSlideIndex(O(t.slidesEl,`.${t.params.slideClass}[data-hash="${n}"], swiper-slide[data-hash="${n}"]`)[0])}}});const l=()=>{r("hashChange");const e=i.location.hash.replace("#",""),n=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex];if(e!==(n?n.getAttribute("data-hash"):"")){const n=t.params.hashNavigation.getSlideIndex(t,e);if(void 0===n||Number.isNaN(n))return;t.slideTo(n)}},c=()=>{if(!a||!t.params.hashNavigation.enabled)return;const e=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex],n=e?e.getAttribute("data-hash")||e.getAttribute("data-history"):"";t.params.hashNavigation.replaceState&&o.history&&o.history.replaceState?(o.history.replaceState(null,null,`#${n}`||""),r("hashSet")):(i.location.hash=n||"",r("hashSet"))};s("init",(()=>{t.params.hashNavigation.enabled&&(()=>{if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;a=!0;const e=i.location.hash.replace("#","");if(e){const n=0,r=t.params.hashNavigation.getSlideIndex(t,e);t.slideTo(r||0,n,t.params.runCallbacksOnInit,!0)}t.params.hashNavigation.watchState&&o.addEventListener("hashchange",l)})()})),s("destroy",(()=>{t.params.hashNavigation.enabled&&t.params.hashNavigation.watchState&&o.removeEventListener("hashchange",l)})),s("transitionEnd _freeModeNoMomentumRelease",(()=>{a&&c()})),s("slideChange",(()=>{a&&t.params.cssMode&&c()}))},function(e){let t,n,{swiper:r,extendParams:s,on:a,emit:i,params:o}=e;r.autoplay={running:!1,paused:!1,timeLeft:0},s({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let l,c,u,d,p,h,f,m,g=o&&o.autoplay?o.autoplay.delay:3e3,v=o&&o.autoplay?o.autoplay.delay:3e3,b=(new Date).getTime();function w(e){r&&!r.destroyed&&r.wrapperEl&&e.target===r.wrapperEl&&(r.wrapperEl.removeEventListener("transitionend",w),m||e.detail&&e.detail.bySwiperTouchMove||j())}const y=()=>{if(r.destroyed||!r.autoplay.running)return;r.autoplay.paused?c=!0:c&&(v=l,c=!1);const e=r.autoplay.paused?l:b+v-(new Date).getTime();r.autoplay.timeLeft=e,i("autoplayTimeLeft",e,e/g),n=requestAnimationFrame((()=>{y()}))},x=e=>{if(r.destroyed||!r.autoplay.running)return;cancelAnimationFrame(n),y();let s=void 0===e?r.params.autoplay.delay:e;g=r.params.autoplay.delay,v=r.params.autoplay.delay;const a=(()=>{let e;if(e=r.virtual&&r.params.virtual.enabled?r.slides.find((e=>e.classList.contains("swiper-slide-active"))):r.slides[r.activeIndex],e)return parseInt(e.getAttribute("data-swiper-autoplay"),10)})();!Number.isNaN(a)&&a>0&&void 0===e&&(s=a,g=a,v=a),l=s;const o=r.params.speed,c=()=>{r&&!r.destroyed&&(r.params.autoplay.reverseDirection?!r.isBeginning||r.params.loop||r.params.rewind?(r.slidePrev(o,!0,!0),i("autoplay")):r.params.autoplay.stopOnLastSlide||(r.slideTo(r.slides.length-1,o,!0,!0),i("autoplay")):!r.isEnd||r.params.loop||r.params.rewind?(r.slideNext(o,!0,!0),i("autoplay")):r.params.autoplay.stopOnLastSlide||(r.slideTo(0,o,!0,!0),i("autoplay")),r.params.cssMode&&(b=(new Date).getTime(),requestAnimationFrame((()=>{x()}))))};return s>0?(clearTimeout(t),t=setTimeout((()=>{c()}),s)):requestAnimationFrame((()=>{c()})),s},k=()=>{b=(new Date).getTime(),r.autoplay.running=!0,x(),i("autoplayStart")},S=()=>{r.autoplay.running=!1,clearTimeout(t),cancelAnimationFrame(n),i("autoplayStop")},E=(e,n)=>{if(r.destroyed||!r.autoplay.running)return;clearTimeout(t),e||(f=!0);const s=()=>{i("autoplayPause"),r.params.autoplay.waitForTransition?r.wrapperEl.addEventListener("transitionend",w):j()};if(r.autoplay.paused=!0,n)return h&&(l=r.params.autoplay.delay),h=!1,void s();const a=l||r.params.autoplay.delay;l=a-((new Date).getTime()-b),r.isEnd&&l<0&&!r.params.loop||(l<0&&(l=0),s())},j=()=>{r.isEnd&&l<0&&!r.params.loop||r.destroyed||!r.autoplay.running||(b=(new Date).getTime(),f?(f=!1,x(l)):x(),r.autoplay.paused=!1,i("autoplayResume"))},C=()=>{if(r.destroyed||!r.autoplay.running)return;const e=_();"hidden"===e.visibilityState&&(f=!0,E(!0)),"visible"===e.visibilityState&&j()},T=e=>{"mouse"===e.pointerType&&(f=!0,m=!0,r.animating||r.autoplay.paused||E(!0))},M=e=>{"mouse"===e.pointerType&&(m=!1,r.autoplay.paused&&j())};a("init",(()=>{r.params.autoplay.enabled&&(r.params.autoplay.pauseOnMouseEnter&&(r.el.addEventListener("pointerenter",T),r.el.addEventListener("pointerleave",M)),_().addEventListener("visibilitychange",C),k())})),a("destroy",(()=>{r.el&&"string"!=typeof r.el&&(r.el.removeEventListener("pointerenter",T),r.el.removeEventListener("pointerleave",M)),_().removeEventListener("visibilitychange",C),r.autoplay.running&&S()})),a("_freeModeStaticRelease",(()=>{(d||f)&&j()})),a("_freeModeNoMomentumRelease",(()=>{r.params.autoplay.disableOnInteraction?S():E(!0,!0)})),a("beforeTransitionStart",((e,t,n)=>{!r.destroyed&&r.autoplay.running&&(n||!r.params.autoplay.disableOnInteraction?E(!0,!0):S())})),a("sliderFirstMove",(()=>{!r.destroyed&&r.autoplay.running&&(r.params.autoplay.disableOnInteraction?S():(u=!0,d=!1,f=!1,p=setTimeout((()=>{f=!0,d=!0,E(!0)}),200)))})),a("touchEnd",(()=>{if(!r.destroyed&&r.autoplay.running&&u){if(clearTimeout(p),clearTimeout(t),r.params.autoplay.disableOnInteraction)return d=!1,void(u=!1);d&&r.params.cssMode&&j(),d=!1,u=!1}})),a("slideChange",(()=>{!r.destroyed&&r.autoplay.running&&(h=!0)})),Object.assign(r.autoplay,{start:k,stop:S,pause:E,resume:j})},function(e){let{swiper:t,extendParams:n,on:r}=e;n({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let s=!1,a=!1;function i(){const e=t.thumbs.swiper;if(!e||e.destroyed)return;const n=e.clickedIndex,r=e.clickedSlide;if(r&&r.classList.contains(t.params.thumbs.slideThumbActiveClass))return;if(null==n)return;let s;s=e.params.loop?parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10):n,t.params.loop?t.slideToLoop(s):t.slideTo(s)}function o(){const{thumbs:e}=t.params;if(s)return!1;s=!0;const n=t.constructor;if(e.swiper instanceof n){if(e.swiper.destroyed)return s=!1,!1;t.thumbs.swiper=e.swiper,Object.assign(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper.update()}else if(T(e.swiper)){const r=Object.assign({},e.swiper);Object.assign(r,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper=new n(r),a=!0}return t.thumbs.swiper.el.classList.add(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",i),!0}function l(e){const n=t.thumbs.swiper;if(!n||n.destroyed)return;const r="auto"===n.params.slidesPerView?n.slidesPerViewDynamic():n.params.slidesPerView;let s=1;const a=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(s=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(s=1),s=Math.floor(s),n.slides.forEach((e=>e.classList.remove(a))),n.params.loop||n.params.virtual&&n.params.virtual.enabled)for(let e=0;e<s;e+=1)O(n.slidesEl,`[data-swiper-slide-index="${t.realIndex+e}"]`).forEach((e=>{e.classList.add(a)}));else for(let e=0;e<s;e+=1)n.slides[t.realIndex+e]&&n.slides[t.realIndex+e].classList.add(a);const i=t.params.thumbs.autoScrollOffset,o=i&&!n.params.loop;if(t.realIndex!==n.realIndex||o){const s=n.activeIndex;let a,l;if(n.params.loop){const e=n.slides.find((e=>e.getAttribute("data-swiper-slide-index")===`${t.realIndex}`));a=n.slides.indexOf(e),l=t.activeIndex>t.previousIndex?"next":"prev"}else a=t.realIndex,l=a>t.previousIndex?"next":"prev";o&&(a+="next"===l?i:-1*i),n.visibleSlidesIndexes&&n.visibleSlidesIndexes.indexOf(a)<0&&(n.params.centeredSlides?a=a>s?a-Math.floor(r/2)+1:a+Math.floor(r/2)-1:a>s&&n.params.slidesPerGroup,n.slideTo(a,e?0:void 0))}}t.thumbs={swiper:null},r("beforeInit",(()=>{const{thumbs:e}=t.params;if(e&&e.swiper)if("string"==typeof e.swiper||e.swiper instanceof HTMLElement){const n=_(),r=()=>{const r="string"==typeof e.swiper?n.querySelector(e.swiper):e.swiper;if(r&&r.swiper)e.swiper=r.swiper,o(),l(!0);else if(r){const n=`${t.params.eventsPrefix}init`,s=a=>{e.swiper=a.detail[0],r.removeEventListener(n,s),o(),l(!0),e.swiper.update(),t.update()};r.addEventListener(n,s)}return r},s=()=>{t.destroyed||r()||requestAnimationFrame(s)};requestAnimationFrame(s)}else o(),l(!0)})),r("slideChange update resize observerUpdate",(()=>{l()})),r("setTransition",((e,n)=>{const r=t.thumbs.swiper;r&&!r.destroyed&&r.setTransition(n)})),r("beforeDestroy",(()=>{const e=t.thumbs.swiper;e&&!e.destroyed&&a&&e.destroy()})),Object.assign(t.thumbs,{init:o,update:l})},function(e){let{swiper:t,extendParams:n,emit:r,once:s}=e;n({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(t,{freeMode:{onTouchStart:function(){if(t.params.cssMode)return;const e=t.getTranslate();t.setTranslate(e),t.setTransition(0),t.touchEventsData.velocities.length=0,t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})},onTouchMove:function(){if(t.params.cssMode)return;const{touchEventsData:e,touches:n}=t;0===e.velocities.length&&e.velocities.push({position:n[t.isHorizontal()?"startX":"startY"],time:e.touchStartTime}),e.velocities.push({position:n[t.isHorizontal()?"currentX":"currentY"],time:j()})},onTouchEnd:function(e){let{currentPos:n}=e;if(t.params.cssMode)return;const{params:a,wrapperEl:i,rtlTranslate:o,snapGrid:l,touchEventsData:c}=t,u=j()-c.touchStartTime;if(n<-t.minTranslate())t.slideTo(t.activeIndex);else if(n>-t.maxTranslate())t.slides.length<l.length?t.slideTo(l.length-1):t.slideTo(t.slides.length-1);else{if(a.freeMode.momentum){if(c.velocities.length>1){const e=c.velocities.pop(),n=c.velocities.pop(),r=e.position-n.position,s=e.time-n.time;t.velocity=r/s,t.velocity/=2,Math.abs(t.velocity)<a.freeMode.minimumVelocity&&(t.velocity=0),(s>150||j()-e.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=a.freeMode.momentumVelocityRatio,c.velocities.length=0;let e=1e3*a.freeMode.momentumRatio;const n=t.velocity*e;let u=t.translate+n;o&&(u=-u);let d,p=!1;const h=20*Math.abs(t.velocity)*a.freeMode.momentumBounceRatio;let f;if(u<t.maxTranslate())a.freeMode.momentumBounce?(u+t.maxTranslate()<-h&&(u=t.maxTranslate()-h),d=t.maxTranslate(),p=!0,c.allowMomentumBounce=!0):u=t.maxTranslate(),a.loop&&a.centeredSlides&&(f=!0);else if(u>t.minTranslate())a.freeMode.momentumBounce?(u-t.minTranslate()>h&&(u=t.minTranslate()+h),d=t.minTranslate(),p=!0,c.allowMomentumBounce=!0):u=t.minTranslate(),a.loop&&a.centeredSlides&&(f=!0);else if(a.freeMode.sticky){let e;for(let t=0;t<l.length;t+=1)if(l[t]>-u){e=t;break}u=Math.abs(l[e]-u)<Math.abs(l[e-1]-u)||"next"===t.swipeDirection?l[e]:l[e-1],u=-u}if(f&&s("transitionEnd",(()=>{t.loopFix()})),0!==t.velocity){if(e=o?Math.abs((-u-t.translate)/t.velocity):Math.abs((u-t.translate)/t.velocity),a.freeMode.sticky){const n=Math.abs((o?-u:u)-t.translate),r=t.slidesSizesGrid[t.activeIndex];e=n<r?a.speed:n<2*r?1.5*a.speed:2.5*a.speed}}else if(a.freeMode.sticky)return void t.slideToClosest();a.freeMode.momentumBounce&&p?(t.updateProgress(d),t.setTransition(e),t.setTranslate(u),t.transitionStart(!0,t.swipeDirection),t.animating=!0,$(i,(()=>{t&&!t.destroyed&&c.allowMomentumBounce&&(r("momentumBounce"),t.setTransition(a.speed),setTimeout((()=>{t.setTranslate(d),$(i,(()=>{t&&!t.destroyed&&t.transitionEnd()}))}),0))}))):t.velocity?(r("_freeModeNoMomentumRelease"),t.updateProgress(u),t.setTransition(e),t.setTranslate(u),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,$(i,(()=>{t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(u),t.updateActiveIndex(),t.updateSlidesClasses()}else{if(a.freeMode.sticky)return void t.slideToClosest();a.freeMode&&r("_freeModeNoMomentumRelease")}(!a.freeMode.momentum||u>=a.longSwipesMs)&&(r("_freeModeStaticRelease"),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}}}})},function(e){let t,n,r,s,{swiper:a,extendParams:i,on:o}=e;i({grid:{rows:1,fill:"column"}});const l=()=>{let e=a.params.spaceBetween;return"string"==typeof e&&e.indexOf("%")>=0?e=parseFloat(e.replace("%",""))/100*a.size:"string"==typeof e&&(e=parseFloat(e)),e};o("init",(()=>{s=a.params.grid&&a.params.grid.rows>1})),o("update",(()=>{const{params:e,el:t}=a,n=e.grid&&e.grid.rows>1;s&&!n?(t.classList.remove(`${e.containerModifierClass}grid`,`${e.containerModifierClass}grid-column`),r=1,a.emitContainerClasses()):!s&&n&&(t.classList.add(`${e.containerModifierClass}grid`),"column"===e.grid.fill&&t.classList.add(`${e.containerModifierClass}grid-column`),a.emitContainerClasses()),s=n})),a.grid={initSlides:e=>{const{slidesPerView:s}=a.params,{rows:i,fill:o}=a.params.grid,l=a.virtual&&a.params.virtual.enabled?a.virtual.slides.length:e.length;r=Math.floor(l/i),t=Math.floor(l/i)===l/i?l:Math.ceil(l/i)*i,"auto"!==s&&"row"===o&&(t=Math.max(t,s*i)),n=t/i},unsetSlides:()=>{a.slides&&a.slides.forEach((e=>{e.swiperSlideGridSet&&(e.style.height="",e.style[a.getDirectionLabel("margin-top")]="")}))},updateSlide:(e,s,i)=>{const{slidesPerGroup:o}=a.params,c=l(),{rows:u,fill:d}=a.params.grid,p=a.virtual&&a.params.virtual.enabled?a.virtual.slides.length:i.length;let h,f,m;if("row"===d&&o>1){const n=Math.floor(e/(o*u)),r=e-u*o*n,a=0===n?o:Math.min(Math.ceil((p-n*u*o)/u),o);m=Math.floor(r/a),f=r-m*a+n*o,h=f+m*t/u,s.style.order=h}else"column"===d?(f=Math.floor(e/u),m=e-f*u,(f>r||f===r&&m===u-1)&&(m+=1,m>=u&&(m=0,f+=1))):(m=Math.floor(e/n),f=e-m*n);s.row=m,s.column=f,s.style.height=`calc((100% - ${(u-1)*c}px) / ${u})`,s.style[a.getDirectionLabel("margin-top")]=0!==m?c&&`${c}px`:"",s.swiperSlideGridSet=!0},updateWrapperSize:(e,n)=>{const{centeredSlides:r,roundLengths:s}=a.params,i=l(),{rows:o}=a.params.grid;if(a.virtualSize=(e+i)*t,a.virtualSize=Math.ceil(a.virtualSize/o)-i,a.params.cssMode||(a.wrapperEl.style[a.getDirectionLabel("width")]=`${a.virtualSize+i}px`),r){const e=[];for(let t=0;t<n.length;t+=1){let r=n[t];s&&(r=Math.floor(r)),n[t]<a.virtualSize+n[0]&&e.push(r)}n.splice(0,n.length),n.push(...e)}}}},function(e){let{swiper:t}=e;Object.assign(t,{appendSlide:Se.bind(t),prependSlide:Ee.bind(t),addSlide:je.bind(t),removeSlide:Ce.bind(t),removeAllSlides:Te.bind(t)})},function(e){let{swiper:t,extendParams:n,on:r}=e;n({fadeEffect:{crossFade:!1}}),Me({effect:"fade",swiper:t,on:r,setTranslate:()=>{const{slides:e}=t;t.params.fadeEffect;for(let n=0;n<e.length;n+=1){const e=t.slides[n];let r=-e.swiperSlideOffset;t.params.virtualTranslate||(r-=t.translate);let s=0;t.isHorizontal()||(s=r,r=0);const a=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(e.progress),0):1+Math.min(Math.max(e.progress,-1),0),i=Pe(0,e);i.style.opacity=a,i.style.transform=`translate3d(${r}px, ${s}px, 0px)`}},setTransition:e=>{const n=t.slides.map((e=>I(e)));n.forEach((t=>{t.style.transitionDuration=`${e}ms`})),Ae({swiper:t,duration:e,transformElements:n,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:n,on:r}=e;n({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const s=(e,t,n)=>{let r=n?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),s=n?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");r||(r=D("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(n?"left":"top")).split(" ")),e.append(r)),s||(s=D("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(n?"right":"bottom")).split(" ")),e.append(s)),r&&(r.style.opacity=Math.max(-t,0)),s&&(s.style.opacity=Math.max(t,0))};Me({effect:"cube",swiper:t,on:r,setTranslate:()=>{const{el:e,wrapperEl:n,slides:r,width:a,height:i,rtlTranslate:o,size:l,browser:c}=t,u=q(t),d=t.params.cubeEffect,p=t.isHorizontal(),h=t.virtual&&t.params.virtual.enabled;let f,m=0;d.shadow&&(p?(f=t.wrapperEl.querySelector(".swiper-cube-shadow"),f||(f=D("div","swiper-cube-shadow"),t.wrapperEl.append(f)),f.style.height=`${a}px`):(f=e.querySelector(".swiper-cube-shadow"),f||(f=D("div","swiper-cube-shadow"),e.append(f))));for(let e=0;e<r.length;e+=1){const t=r[e];let n=e;h&&(n=parseInt(t.getAttribute("data-swiper-slide-index"),10));let a=90*n,i=Math.floor(a/360);o&&(a=-a,i=Math.floor(-a/360));const c=Math.max(Math.min(t.progress,1),-1);let f=0,g=0,v=0;n%4==0?(f=4*-i*l,v=0):(n-1)%4==0?(f=0,v=4*-i*l):(n-2)%4==0?(f=l+4*i*l,v=l):(n-3)%4==0&&(f=-l,v=3*l+4*l*i),o&&(f=-f),p||(g=f,f=0);const b=`rotateX(${u(p?0:-a)}deg) rotateY(${u(p?a:0)}deg) translate3d(${f}px, ${g}px, ${v}px)`;c<=1&&c>-1&&(m=90*n+90*c,o&&(m=90*-n-90*c)),t.style.transform=b,d.slideShadows&&s(t,c,p)}if(n.style.transformOrigin=`50% 50% -${l/2}px`,n.style["-webkit-transform-origin"]=`50% 50% -${l/2}px`,d.shadow)if(p)f.style.transform=`translate3d(0px, ${a/2+d.shadowOffset}px, ${-a/2}px) rotateX(89.99deg) rotateZ(0deg) scale(${d.shadowScale})`;else{const e=Math.abs(m)-90*Math.floor(Math.abs(m)/90),t=1.5-(Math.sin(2*e*Math.PI/360)/2+Math.cos(2*e*Math.PI/360)/2),n=d.shadowScale,r=d.shadowScale/t,s=d.shadowOffset;f.style.transform=`scale3d(${n}, 1, ${r}) translate3d(0px, ${i/2+s}px, ${-i/2/r}px) rotateX(-89.99deg)`}const g=(c.isSafari||c.isWebView)&&c.needPerspectiveFix?-l/2:0;n.style.transform=`translate3d(0px,0,${g}px) rotateX(${u(t.isHorizontal()?0:m)}deg) rotateY(${u(t.isHorizontal()?-m:0)}deg)`,n.style.setProperty("--swiper-cube-translate-z",`${g}px`)},setTransition:e=>{const{el:n,slides:r}=t;if(r.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),t.params.cubeEffect.shadow&&!t.isHorizontal()){const t=n.querySelector(".swiper-cube-shadow");t&&(t.style.transitionDuration=`${e}ms`)}},recreateShadows:()=>{const e=t.isHorizontal();t.slides.forEach((t=>{const n=Math.max(Math.min(t.progress,1),-1);s(t,n,e)}))},getEffectParams:()=>t.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})},function(e){let{swiper:t,extendParams:n,on:r}=e;n({flipEffect:{slideShadows:!0,limitRotation:!0}});const s=(e,n)=>{let r=t.isHorizontal()?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),s=t.isHorizontal()?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");r||(r=Ie("flip",e,t.isHorizontal()?"left":"top")),s||(s=Ie("flip",e,t.isHorizontal()?"right":"bottom")),r&&(r.style.opacity=Math.max(-n,0)),s&&(s.style.opacity=Math.max(n,0))};Me({effect:"flip",swiper:t,on:r,setTranslate:()=>{const{slides:e,rtlTranslate:n}=t,r=t.params.flipEffect,a=q(t);for(let i=0;i<e.length;i+=1){const o=e[i];let l=o.progress;t.params.flipEffect.limitRotation&&(l=Math.max(Math.min(o.progress,1),-1));const c=o.swiperSlideOffset;let u=-180*l,d=0,p=t.params.cssMode?-c-t.translate:-c,h=0;t.isHorizontal()?n&&(u=-u):(h=p,p=0,d=-u,u=0),o.style.zIndex=-Math.abs(Math.round(l))+e.length,r.slideShadows&&s(o,l);const f=`translate3d(${p}px, ${h}px, 0px) rotateX(${a(d)}deg) rotateY(${a(u)}deg)`;Pe(0,o).style.transform=f}},setTransition:e=>{const n=t.slides.map((e=>I(e)));n.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),Ae({swiper:t,duration:e,transformElements:n})},recreateShadows:()=>{t.params.flipEffect,t.slides.forEach((e=>{let n=e.progress;t.params.flipEffect.limitRotation&&(n=Math.max(Math.min(e.progress,1),-1)),s(e,n)}))},getEffectParams:()=>t.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:n,on:r}=e;n({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),Me({effect:"coverflow",swiper:t,on:r,setTranslate:()=>{const{width:e,height:n,slides:r,slidesSizesGrid:s}=t,a=t.params.coverflowEffect,i=t.isHorizontal(),o=t.translate,l=i?e/2-o:n/2-o,c=i?a.rotate:-a.rotate,u=a.depth,d=q(t);for(let e=0,t=r.length;e<t;e+=1){const t=r[e],n=s[e],o=(l-t.swiperSlideOffset-n/2)/n,p="function"==typeof a.modifier?a.modifier(o):o*a.modifier;let h=i?c*p:0,f=i?0:c*p,m=-u*Math.abs(p),g=a.stretch;"string"==typeof g&&-1!==g.indexOf("%")&&(g=parseFloat(a.stretch)/100*n);let v=i?0:g*p,b=i?g*p:0,w=1-(1-a.scale)*Math.abs(p);Math.abs(b)<.001&&(b=0),Math.abs(v)<.001&&(v=0),Math.abs(m)<.001&&(m=0),Math.abs(h)<.001&&(h=0),Math.abs(f)<.001&&(f=0),Math.abs(w)<.001&&(w=0);const y=`translate3d(${b}px,${v}px,${m}px) rotateX(${d(f)}deg) rotateY(${d(h)}deg) scale(${w})`;if(Pe(0,t).style.transform=y,t.style.zIndex=1-Math.abs(Math.round(p)),a.slideShadows){let e=i?t.querySelector(".swiper-slide-shadow-left"):t.querySelector(".swiper-slide-shadow-top"),n=i?t.querySelector(".swiper-slide-shadow-right"):t.querySelector(".swiper-slide-shadow-bottom");e||(e=Ie("coverflow",t,i?"left":"top")),n||(n=Ie("coverflow",t,i?"right":"bottom")),e&&(e.style.opacity=p>0?p:0),n&&(n.style.opacity=-p>0?-p:0)}}},setTransition:e=>{t.slides.map((e=>I(e))).forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))}))},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})},function(e){let{swiper:t,extendParams:n,on:r}=e;n({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const s=e=>"string"==typeof e?e:`${e}px`;Me({effect:"creative",swiper:t,on:r,setTranslate:()=>{const{slides:e,wrapperEl:n,slidesSizesGrid:r}=t,a=t.params.creativeEffect,{progressMultiplier:i}=a,o=t.params.centeredSlides,l=q(t);if(o){const e=r[0]/2-t.params.slidesOffsetBefore||0;n.style.transform=`translateX(calc(50% - ${e}px))`}for(let n=0;n<e.length;n+=1){const r=e[n],c=r.progress,u=Math.min(Math.max(r.progress,-a.limitProgress),a.limitProgress);let d=u;o||(d=Math.min(Math.max(r.originalProgress,-a.limitProgress),a.limitProgress));const p=r.swiperSlideOffset,h=[t.params.cssMode?-p-t.translate:-p,0,0],f=[0,0,0];let m=!1;t.isHorizontal()||(h[1]=h[0],h[0]=0);let g={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};u<0?(g=a.next,m=!0):u>0&&(g=a.prev,m=!0),h.forEach(((e,t)=>{h[t]=`calc(${e}px + (${s(g.translate[t])} * ${Math.abs(u*i)}))`})),f.forEach(((e,t)=>{let n=g.rotate[t]*Math.abs(u*i);f[t]=n})),r.style.zIndex=-Math.abs(Math.round(c))+e.length;const v=h.join(", "),b=`rotateX(${l(f[0])}deg) rotateY(${l(f[1])}deg) rotateZ(${l(f[2])}deg)`,w=d<0?`scale(${1+(1-g.scale)*d*i})`:`scale(${1-(1-g.scale)*d*i})`,y=d<0?1+(1-g.opacity)*d*i:1-(1-g.opacity)*d*i,_=`translate3d(${v}) ${b} ${w}`;if(m&&g.shadow||!m){let e=r.querySelector(".swiper-slide-shadow");if(!e&&g.shadow&&(e=Ie("creative",r)),e){const t=a.shadowPerProgress?u*(1/a.limitProgress):u;e.style.opacity=Math.min(Math.max(Math.abs(t),0),1)}}const x=Pe(0,r);x.style.transform=_,x.style.opacity=y,g.origin&&(x.style.transformOrigin=g.origin)}},setTransition:e=>{const n=t.slides.map((e=>I(e)));n.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),Ae({swiper:t,duration:e,transformElements:n,allSlides:!0})},perspective:()=>t.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:n,on:r}=e;n({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),Me({effect:"cards",swiper:t,on:r,setTranslate:()=>{const{slides:e,activeIndex:n,rtlTranslate:r}=t,s=t.params.cardsEffect,{startTranslate:a,isTouched:i}=t.touchEventsData,o=r?-t.translate:t.translate;for(let l=0;l<e.length;l+=1){const c=e[l],u=c.progress,d=Math.min(Math.max(u,-4),4);let p=c.swiperSlideOffset;t.params.centeredSlides&&!t.params.cssMode&&(t.wrapperEl.style.transform=`translateX(${t.minTranslate()}px)`),t.params.centeredSlides&&t.params.cssMode&&(p-=e[0].swiperSlideOffset);let h=t.params.cssMode?-p-t.translate:-p,f=0;const m=-100*Math.abs(d);let g=1,v=-s.perSlideRotate*d,b=s.perSlideOffset-.75*Math.abs(d);const w=t.virtual&&t.params.virtual.enabled?t.virtual.from+l:l,y=(w===n||w===n-1)&&d>0&&d<1&&(i||t.params.cssMode)&&o<a,_=(w===n||w===n+1)&&d<0&&d>-1&&(i||t.params.cssMode)&&o>a;if(y||_){const e=(1-Math.abs((Math.abs(d)-.5)/.5))**.5;v+=-28*d*e,g+=-.5*e,b+=96*e,f=-25*e*Math.abs(d)+"%"}if(h=d<0?`calc(${h}px ${r?"-":"+"} (${b*Math.abs(d)}%))`:d>0?`calc(${h}px ${r?"-":"+"} (-${b*Math.abs(d)}%))`:`${h}px`,!t.isHorizontal()){const e=f;f=h,h=e}const x=d<0?""+(1+(1-g)*d):""+(1-(1-g)*d),k=`\n translate3d(${h}, ${f}, ${m}px)\n rotateZ(${s.rotate?r?-v:v:0}deg)\n scale(${x})\n `;if(s.slideShadows){let e=c.querySelector(".swiper-slide-shadow");e||(e=Ie("cards",c)),e&&(e.style.opacity=Math.min(Math.max((Math.abs(d)-.5)/.5,0),1))}c.style.zIndex=-Math.abs(Math.round(u))+e.length,Pe(0,c).style.transform=k}},setTransition:e=>{const n=t.slides.map((e=>I(e)));n.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),Ae({swiper:t,duration:e,transformElements:n})},perspective:()=>!0,overwriteParams:()=>({_loopSwapReset:!1,watchSlidesProgress:!0,loopAdditionalSlides:t.params.cardsEffect.rotate?3:2,centeredSlides:!0,virtualTranslate:!t.params.cssMode})})}];_e.use(Oe);const Le="wp-block-newspack-blocks-carousel__autoplay-playing";function De(e,t){Array.prototype.forEach.call(e,t)}function ze(e){e&&(e.setAttribute("aria-hidden","false"),De(e.querySelectorAll("a"),(e=>e.removeAttribute("tabindex"))))}function Ne(e){e&&(e.setAttribute("aria-hidden","true"),De(e.querySelectorAll("a"),(e=>e.setAttribute("tabindex","-1"))))}var Re=n(6175),Be=n(2859),$e=n(790);class Fe extends u.Component{constructor(e){super(e),this.btnPlayRef=(0,u.createRef)(),this.btnPauseRef=(0,u.createRef)(),this.btnNextRef=(0,u.createRef)(),this.btnPrevRef=(0,u.createRef)(),this.carouselRef=(0,u.createRef)(),this.paginationRef=(0,u.createRef)(),this.state={swiperInitialized:!1}}componentDidMount(){this.initializeSwiper(0),this.props.triggerReflow()}componentDidUpdate(e){if(!(0<this.carouselRef.current.offsetWidth&&0<this.carouselRef.current.offsetHeight))return!1;if(!this.state.swiperInitialized)return this.initializeSwiper(0);(0,Be.pV)(e,this.props)&&this.props.triggerReflow();const{attributes:t,latestPosts:n}=this.props;if(!(0,a.isEqual)(e.latestPosts,n)||!(0,a.isEqual)(e.attributes,t)){let e=0;this.swiperInstance&&(n&&this.swiperInstance.realIndex<n.length&&(e=this.swiperInstance.realIndex),this.setState({swiperInitialized:!1}),this.swiperInstance.destroy(!0,!0)),this.initializeSwiper(e)}}componentWillUnmount(){this.props.triggerReflow()}initializeSwiper(e){const{latestPosts:t}=this.props;if(t){const{aspectRatio:n,autoplay:r,delay:a,slidesPerView:i}=this.props.attributes,o=function(e,t={}){if(!(0<e.container.offsetWidth&&0<e.container.offsetHeight))return!1;const n=new _e(e.container,{a11y:!1,autoplay:!!t.autoplay&&{delay:t.delay,disableOnInteraction:!1},effect:"slide",grabCursor:!0,init:!1,initialSlide:t.initialSlide||0,loop:!0,navigation:{nextEl:e.next,prevEl:e.prev},pagination:{bulletElement:"button",clickable:!0,el:e.pagination,type:"bullets",renderBullet:(e,t)=>`<button class="${t}"><span>${(0,s.sprintf)(/* translators: Indicates which slide the slider is on. */ /* translators: Indicates which slide the slider is on. */
4
- (0,s.__)("Slide %s","newspack-blocks"),e+1)}</span></button>`},watchSlidesProgress:t.slidesPerView>1,preventClicksPropagation:!1,releaseFormElements:!1,setWrapperSize:!0,slidesPerView:t.slidesPerView,spaceBetween:16,touchStartPreventDefault:!1,breakpoints:{320:{slidesPerView:1},782:{slidesPerView:t.slidesPerView>1?2:1},1168:{slidesPerView:t.slidesPerView}},on:{init(){De(this.wrapperEl.querySelectorAll(".swiper-slide"),(e=>Ne(e))),r.call(this),ze(this.slides[this.activeIndex])},slideChange(){if(this.slides.length<1)return;const e=this.slides[this.activeIndex];if(Ne(this.slides[this.previousIndex]),ze(e),!this.autoplay?.running){const t=e.querySelector("img"),n=!!t&&t?.alt,r=(0,s.sprintf)(/* translators: 1: current slide number and 2: total number of slides */ /* translators: 1: current slide number and 2: total number of slides */
5
- (0,s.__)("Slide %1$s of %2$s","newspack-blocks"),this.realIndex+1,this.pagination?.bullets?.length||0);(0,g.speak)((0,v.escapeHTML)(`${e.innerText},\n\t\t\t\t\t\t\t${n?/* translators: the title of the image. */ /* translators: the title of the image. */(0,s.sprintf)((0,s.__)("Image: %s, ","newspack-blocks"),n):""}\n\t\t\t\t\t\t\t${r}`),"assertive")}}}});function r(){const{aspectRatio:e}=t;Array.from(this.slides).forEach((t=>{t.style.height=t.clientWidth*e+"px"}))}if(n.on("imagesReady",r),n.on("resize",r),t.autoplay){function a(){n.autoplay.stop(),e.play.focus()}function i(){n.autoplay.start(),e.pause.focus()}n.on("init",(function(){e.play.addEventListener("click",i),e.pause.addEventListener("click",a)})),n.on("autoplayStart",(function(){e.block.classList.add(Le),(0,g.speak)((0,s.__)("Playing","newspack-blocks"),"assertive")})),n.on("autoplayStop",(function(){e.block.classList.remove(Le),(0,g.speak)((0,s.__)("Paused","newspack-blocks"),"assertive")})),n.on("beforeDestroy",(function(){e.play.removeEventListener("click",i),e.pause.removeEventListener("click",a)}))}return n.init(),n}({block:this.carouselRef.current,container:this.carouselRef.current,next:this.btnNextRef.current,prev:this.btnPrevRef.current,play:this.btnPlayRef.current,pause:this.btnPauseRef.current,pagination:this.paginationRef.current},{aspectRatio:n,autoplay:r,delay:1e3*a,initialSlide:e,slidesPerView:i<=t.length?i:t.length});o&&(this.swiperInstance=o,this.setState({swiperInitialized:!0}))}}render(){const{attributes:e,className:t,setAttributes:n,latestPosts:a,isUIDisabled:i}=this.props,{aspectRatio:d,authors:p,autoplay:g,categories:v,includeSubcategories:b,categoryJoinType:w,customTaxonomies:y,delay:_,hideControls:x,imageFit:k,postsToShow:S,postType:E,showCategory:j,showDate:C,showAuthor:T,showAvatar:M,showCaption:P,showCredit:A,showTitle:I,slidesPerView:O,specificMode:L,specificPosts:D,tags:z}=e,N=o()(t,"wp-block-newspack-blocks-carousel","wpnbpc","slides-per-view-"+O,"swiper",{"wp-block-newspack-blocks-carousel__autoplay-playing":g,"newspack-block--disabled":i,"hide-controls":x}),R=(0,c.__experimentalGetSettings)().formats.date,B=a&&!a.length,$=a&&1===a.length,F=a?Math.min(S,a.length):S,H=[{value:1,label:/* translators: label for square aspect ratio option */ /* translators: label for square aspect ratio option */(0,s.__)("Square","newspack-blocks"),shortName:/* translators: abbreviation for 1:1 aspect ratio */ /* translators: abbreviation for 1:1 aspect ratio */(0,s.__)("1:1","newspack-blocks")},{value:.75,label:/* translators: label for 4:3 aspect ratio option */ /* translators: label for 4:3 aspect ratio option */(0,s.__)("4:3","newspack-blocks"),shortName:/* translators: abbreviation for 4:3 aspect ratio */ /* translators: abbreviation for 4:3 aspect ratio */(0,s.__)("4:3","newspack-blocks")},{value:.5625,label:/* translators: label for 16:9 aspect ratio option */ /* translators: label for 16:9 aspect ratio option */(0,s.__)("16:9","newspack-blocks"),shortName:/* translators: abbreviation for 16:9 aspect ratio */ /* translators: abbreviation for 16:9 aspect ratio */(0,s.__)("16:9","newspack-blocks")},{value:4/3,label:/* translators: label for 3:4 aspect ratio option */ /* translators: label for 3:4 aspect ratio option */(0,s.__)("3:4","newspack-blocks"),shortName:/* translators: abbreviation for 3:4 aspect ratio */ /* translators: abbreviation for 3:4 aspect ratio */(0,s.__)("3:4","newspack-blocks")},{value:16/9,label:/* translators: label for 9:16 aspect ratio option */ /* translators: label for 9:16 aspect ratio option */(0,s.__)("9:16","newspack-blocks"),shortName:/* translators: abbreviation for 9:16 aspect ratio */ /* translators: abbreviation for 9:16 aspect ratio */(0,s.__)("9:16","newspack-blocks")}];return(0,$e.jsxs)(u.Fragment,{children:[(0,$e.jsxs)("div",{className:N,ref:this.carouselRef,children:[B&&(0,$e.jsx)(r.Placeholder,{className:"component-placeholder__align-center",children:(0,$e.jsx)("div",{style:{margin:"auto"},children:(0,s.__)("Sorry, no posts were found.")})}),(!this.state.swiperInitialized||!a)&&(0,$e.jsx)(r.Placeholder,{icon:(0,$e.jsx)(r.Spinner,{}),className:"component-placeholder__align-center"}),a&&(0,$e.jsxs)(u.Fragment,{children:[g&&(0,$e.jsxs)(u.Fragment,{children:[(0,$e.jsx)("button",{className:"swiper-button swiper-button-pause",ref:this.btnPauseRef}),(0,$e.jsx)("button",{className:"swiper-button swiper-button-play",ref:this.btnPlayRef})]}),(0,$e.jsx)("div",{className:"swiper-wrapper",children:a.map((e=>(0,$e.jsxs)("article",{className:`post-has-image swiper-slide ${e.post_type} ${e.newspack_article_classes||""}`,children:[(0,Re.X8)(e),(0,$e.jsx)("figure",{className:"post-thumbnail",children:(0,$e.jsx)("a",{href:"#",rel:"bookmark",children:e.newspack_featured_image_src?(0,$e.jsx)("img",{className:`image-fit-${k}`,src:e.newspack_featured_image_src.large,alt:""}):(0,$e.jsx)("div",{className:"wp-block-newspack-blocks-carousel__placeholder"})})}),(e.newspack_post_sponsors||j||I||T||C||P||A)&&(0,$e.jsxs)("div",{className:"entry-wrapper",children:[(e.newspack_post_sponsors||j&&0<e.newspack_category_info.length)&&(0,$e.jsxs)("div",{className:"cat-links"+(e.newspack_post_sponsors?" sponsor-label":""),children:[e.newspack_post_sponsors&&(0,$e.jsx)("span",{className:"flag",children:e.newspack_post_sponsors[0].flag}),j&&(!e.newspack_post_sponsors||e.newspack_sponsors_show_categories)&&(0,$e.jsx)(u.RawHTML,{children:(0,h.decodeEntities)(e.newspack_category_info)})]}),I&&(0,$e.jsx)("h3",{className:"entry-title",children:(0,$e.jsx)("a",{href:"#",children:(0,h.decodeEntities)(e.title.rendered.trim())})}),(0,$e.jsxs)("div",{className:"entry-meta",children:[e.newspack_post_sponsors&&(0,$e.jsxs)("span",{className:"entry-sponsors "+(e.newspack_sponsors_show_author?"plus-author":""),children:[(0,Re.__)(e.newspack_post_sponsors),(0,Re.vQ)(e.newspack_post_sponsors)]}),T&&!e.newspack_listings_hide_author&&(!e.newspack_post_sponsors||e.newspack_sponsors_show_author)&&(0,$e.jsx)(u.RawHTML,{className:"byline-container",children:(0,Re.pO)(e,M)}),C&&(0,$e.jsx)("time",{className:"entry-date published",children:(0,c.dateI18n)(R,e.date)},"pub-date"),(P||A)&&e.newspack_featured_image_caption&&(0,$e.jsx)("div",{className:"entry-caption",dangerouslySetInnerHTML:{__html:e.newspack_featured_image_caption}})]})]})]},e.id)))}),!B&&!$&&(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsx)("button",{className:"swiper-button swiper-button-prev",ref:this.btnPrevRef}),(0,$e.jsx)("button",{className:"swiper-button swiper-button-next",ref:this.btnNextRef}),(0,$e.jsx)("div",{className:"swiper-pagination swiper-pagination-bullets",ref:this.paginationRef})]})]})]}),(0,$e.jsxs)(l.InspectorControls,{children:[(0,$e.jsx)(r.PanelBody,{title:(0,s.__)("Content","newspack-blocks"),className:"newspack-block__panel is-content",children:S&&(0,$e.jsx)(f.A,{numberOfItems:S,onNumberOfItemsChange:e=>n({postsToShow:e||1}),authors:p,onAuthorsChange:e=>n({authors:e}),categories:v,onCategoriesChange:e=>n({categories:e}),includeSubcategories:b,onIncludeSubcategoriesChange:e=>n({includeSubcategories:e}),categoryJoinType:w,onCategoryJoinTypeChange:e=>n({categoryJoinType:e}),tags:z,onTagsChange:e=>n({tags:e}),onCustomTaxonomiesChange:e=>n({customTaxonomies:e}),customTaxonomies:y,specificMode:L,onSpecificModeChange:()=>n({specificMode:!0}),onLoopModeChange:()=>n({specificMode:!1}),specificPosts:D,onSpecificPostsChange:e=>n({specificPosts:e}),postType:E})}),(0,$e.jsxs)(r.PanelBody,{title:(0,s.__)("Display","newspack-blocks"),children:[(0,$e.jsx)(r.ToggleControl,{label:(0,s.__)("Hide Controls","newspack-blocks"),help:(0,s.__)("Remove navigation indicators from view.","newspack-blocks"),checked:x,onChange:e=>{n({hideControls:e})}}),(0,$e.jsx)(r.ToggleControl,{label:(0,s.__)("Autoplay","newspack-blocks"),help:(0,s.__)("Automatically advance through slides.","newspack-blocks"),checked:g,onChange:e=>{n({autoplay:e})}}),g&&(0,$e.jsx)(r.RangeControl,{label:(0,s.__)("Transition delay","newspack-blocks"),value:_,onChange:e=>{n({delay:e})},min:1,max:20,help:(0,s.__)("Set the waiting time between automatic slide transitions in seconds.","newspack-blocks"),__next40pxDefaultSize:!0}),a&&1<a.length&&(0,$e.jsx)(r.RangeControl,{label:(0,s.__)("Slides per view","newspack-blocks"),value:O<=a.length?O:a.length,onChange:e=>{n({slidesPerView:e})},min:1,max:L?Math.min(6,a.length):Math.min(6,F),help:(0,s.__)("Choose how many slides appear on screen simultaneously.","newspack-blocks"),__next40pxDefaultSize:!0})]}),(0,$e.jsxs)(r.PanelBody,{title:(0,s.__)("Featured Image","newspack-blocks"),className:"newspack-block__panel",children:[(0,$e.jsx)(r.BaseControl,{label:(0,s.__)("Aspect ratio","newspack-blocks"),help:(0,s.__)("All slides will share the same aspect ratio, for consistency.","newspack-blocks"),id:"newspack-blocks__aspect-ratio-control",className:"newspack-block__button-group",children:(0,$e.jsx)(r.ButtonGroup,{children:H.map((e=>{const t=d===e.value;return(0,$e.jsx)(r.Button,{isPrimary:t,"aria-pressed":t,"aria-label":e.label,onClick:()=>n({aspectRatio:e.value}),children:e.shortName},e.value)}))})}),(0,$e.jsx)(r.BaseControl,{label:(0,s.__)("Fit","newspack-blocks"),help:"cover"===k?(0,s.__)("The image will fill the entire slide and will be cropped if necessary.","newspack-blocks"):(0,s.__)("The image will be resized to fit inside the slide without being cropped.","newspack-blocks"),id:"newspack-blocks__blocks__image-fit-control",className:"newspack-block__button-group",children:(0,$e.jsxs)(r.ButtonGroup,{children:[(0,$e.jsx)(r.Button,{isPrimary:"cover"===k,"aria-pressed":"cover"===k,"aria-label":(0,s.__)("Cover","newspack-blocks"),onClick:()=>n({imageFit:"cover"}),children:(0,s.__)("Cover","newspack-blocks")}),(0,$e.jsx)(r.Button,{isPrimary:"contain"===k,"aria-pressed":"contain"===k,"aria-label":(0,s.__)("Contain","newspack-blocks"),onClick:()=>n({imageFit:"contain"}),children:(0,s.__)("Contain","newspack-blocks")})]})}),(0,$e.jsx)(r.ToggleControl,{label:(0,s.__)("Show caption","newspack-blocks"),checked:P,onChange:()=>n({showCaption:!P})}),(0,$e.jsx)(r.ToggleControl,{label:(0,s.__)("Show credit","newspack-blocks"),checked:A,onChange:()=>n({showCredit:!A})})]}),(0,$e.jsxs)(r.PanelBody,{title:(0,s.__)("Post Meta","newspack-blocks"),children:[(0,$e.jsx)(r.ToggleControl,{label:(0,s.__)("Show title","newspack-blocks"),checked:I,onChange:()=>n({showTitle:!I})}),(0,$e.jsx)(r.ToggleControl,{label:(0,s.__)("Show date","newspack-blocks"),checked:C,onChange:()=>n({showDate:!C})}),(0,$e.jsx)(r.ToggleControl,{label:(0,s.__)("Show category","newspack-blocks"),checked:j,onChange:()=>n({showCategory:!j})}),(0,$e.jsx)(r.ToggleControl,{label:(0,s.__)("Show author","newspack-blocks"),checked:T,onChange:()=>n({showAuthor:!T})}),(0,$e.jsx)(r.ToggleControl,{label:(0,s.__)("Show avatar","newspack-blocks"),checked:M,onChange:()=>n({showAvatar:!M}),disabled:!T})]}),(0,$e.jsx)(m.O,{attributes:e,setAttributes:n}),(0,$e.jsx)(m.X,{attributes:e,setAttributes:n})]})]})}}const He=(0,p.compose)([(0,d.withSelect)(Be.cR),(0,d.withDispatch)(Be.Fl)])(Fe),qe=JSON.parse('{"UU":"carousel","L1":"newspack","uK":{"className":{"type":"string","default":""},"imageFit":{"type":"string","default":"cover"},"autoplay":{"type":"boolean","default":false},"delay":{"type":"number","default":5},"postsToShow":{"type":"integer","default":3},"authors":{"type":"array"},"categories":{"type":"array"},"includeSubcategories":{"type":"boolean","default":true},"categoryJoinType":{"type":"string","default":"or","enum":["or","all"]},"tags":{"type":"array"},"customTaxonomies":{"type":"array"},"showDate":{"type":"boolean","default":true},"showAuthor":{"type":"boolean","default":true},"showAvatar":{"type":"boolean","default":true},"showCaption":{"type":"boolean","default":false},"showCredit":{"type":"boolean","default":false},"showCategory":{"type":"boolean","default":false},"showTitle":{"type":"boolean","default":true},"postType":{"type":"array","default":["post"],"items":{"type":"string"}},"specificMode":{"type":"boolean","default":false},"specificPosts":{"type":"array","default":[],"items":{"type":"integer"}},"slidesPerView":{"type":"number","default":1},"hideControls":{"type":"boolean","default":false},"aspectRatio":{"type":"number","default":0.75},"includedPostStatuses":{"type":"array","default":["publish"],"items":{"type":"string"}}}}'),{UU:Ve,uK:Ue,L1:Ge}=qe,We={title:(0,s.__)("Content Carousel","newspack-blocks"),icon:{src:(0,$e.jsxs)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,$e.jsx)(r.Path,{clipRule:"evenodd",d:"M7 18V6a2 2 0 012-2h6a2 2 0 012 2v12a2 2 0 01-2 2H9a2 2 0 01-2-2zM8.5 6v12a.5.5 0 00.5.5h6a.5.5 0 00.5-.5V6a.5.5 0 00-.5-.5H9a.5.5 0 00-.5.5z",fillRule:"evenodd"}),(0,$e.jsx)(r.Path,{d:"M4 18.5v-13h1.5v13zM18.5 5.5v13H20v-13z"})]}),foreground:"#406ebc"},attributes:Ue,category:Ge,keywords:[(0,s.__)("posts","newspack-blocks"),(0,s.__)("articles","newspack-blocks"),(0,s.__)("latest","newspack-blocks"),(0,s.__)("query","newspack-blocks")],description:(0,s.__)("An advanced block that displays content in a carousel format with customizable parameters and visual configurations.","newspack-blocks"),supports:{html:!1,align:["center","wide","full"]},edit:He,save:()=>null}},6588:(e,t,n)=>{"use strict";n.d(t,{C:()=>o,t:()=>l});var r=n(8468);const s="wpbnbd",a=`${s}--selected`,i=Array.from(document.querySelectorAll(`.${s}`)),o=(e,t)=>{const n=`donation_value_${t.donation_frequency}`;n&&(Array.from(e.classList).forEach((t=>{t.startsWith(a)&&e.classList.remove(t)})),e.classList.add(`${a}-${t[n]}`))},l=e=>{const t=new FormData(e),n={};return t.forEach(((e,t)=>{(0,r.isString)(t)&&(0,r.isString)(e)&&(n[t]=e)})),n};i.forEach((e=>{const t=e.querySelector("form");t&&(o(e,l(t)),t.addEventListener("change",(()=>o(e,l(t)))))}))},4440:(e,t,n)=>{"use strict";function r(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}n.d(t,{C:()=>lt,n:()=>wt});var s=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),a=()=>Math.random().toString(36).substring(7).split("").join("."),i={INIT:`@@redux/INIT${a()}`,REPLACE:`@@redux/REPLACE${a()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${a()}`};var o=function(e){return"@@redux-saga/"+e},l=o("CANCEL_PROMISE"),c=o("CHANNEL_END"),u=o("IO"),d=o("MATCH"),p=o("MULTICAST"),h=o("SAGA_ACTION"),f=o("SELF_CANCELLATION"),m=o("TASK"),g=o("TASK_CANCEL"),v=o("TERMINATE"),b=o("LOCATION"),w=function(e){return null==e},y=function(e){return null!=e},_=function(e){return"function"==typeof e},x=function(e){return"string"==typeof e},k=Array.isArray,S=function(e){return e&&_(e.then)},E=function(e){return e&&_(e.next)&&_(e.throw)},j=function e(t){return t&&(x(t)||M(t)||_(t)||k(t)&&t.every(e))},C=function(e){return e&&_(e.take)&&_(e.close)},T=function(e){return _(e)&&e.hasOwnProperty("toString")},M=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},P=function(e){return C(e)&&e[p]},A=n(8168);const I=function(e,t){var n;void 0===t&&(t=!0);var r=new Promise((function(r){n=setTimeout(r,Math.min(2147483647,e),t)}));return r[l]=function(){clearTimeout(n)},r};var O=function(e){return function(){return true}}(),L=function(){},D=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var z=function(e,t){(0,A.A)(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function N(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}var R=function(e){throw e},B=function(e){return{value:e,done:!0}};function $(e,t,n){void 0===t&&(t=R),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:B,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function F(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var H=function(e){return Array.apply(null,new Array(e))},q=function(e){return function(t){return e(Object.defineProperty(t,h,{value:!0}))}},V=function(e){return e===v},U=function(e){return e===g},G=function(e){return V(e)||U(e)};function W(e,t){var n,r=Object.keys(e),s=r.length,a=0,i=k(e)?H(s):{},o={};return r.forEach((function(e){var r=function(r,o){n||(o||G(r)?(t.cancel(),t(r,o)):(i[e]=r,++a===s&&(n=!0,t(i))))};r.cancel=L,o[e]=r})),t.cancel=function(){n||(n=!0,r.forEach((function(e){return o[e].cancel()})))},o}function Y(e){return{name:e.name||"anonymous",location:X(e)}}function X(e){return e[b]}function K(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var J=function(e){return function(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,s=0,a=0,i=function(t){n[s]=t,s=(s+1)%e,r++},o=function(){if(0!=r){var t=n[a];return n[a]=null,r--,a=(a+1)%e,t}},l=function(){for(var e=[];r;)e.push(o());return e};return{isEmpty:function(){return 0==r},put:function(o){var c;if(r<e)i(o);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[s]=o,a=s=(s+1)%e;break;case 4:c=2*e,n=l(),r=n.length,s=n.length,a=0,n.length=c,e=c,i(o)}},take:o,flush:l}}(e,4)},Q="TAKE",Z="PUT",ee="CALL",te="FORK",ne="CANCEL",re=function(e,t){var n;return(n={})[u]=!0,n.combinator=!1,n.type=e,n.payload=t,n};function se(e,t){return void 0===e&&(e="*"),j(e)?(y(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),re(Q,{pattern:e})):P(e)&&y(t)&&j(t)?re(Q,{channel:e,pattern:t}):C(e)?(y(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),re(Q,{channel:e})):void 0}function ae(e,t){return w(t)&&(t=e,e=void 0),re(Z,{channel:e,action:t})}function ie(e,t){var n,r=null;return _(e)?n=e:(k(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&x(n)&&_(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function oe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return re(ee,ie(e,n))}function le(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return re(te,ie(e,n))}var ce=oe.bind(null,I),ue=function(e){return{done:!0,value:e}},de={};function pe(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),s=2;s<n;s++)r[s-2]=arguments[s];var a,i,o={done:!1,value:se(e)},l=function(e){return{done:!1,value:le.apply(void 0,[t].concat(r,[e]))}},c=function(e){return{done:!1,value:(t=e,void 0===t&&(t=f),re(ne,t))};var t},u=function(e){return a=e},d=function(e){return i=e};return function(e,t,n){var r,s,a,i=t;function o(t,n){if(i===de)return ue(t);if(n&&!s)throw i=de,n;r&&r(t);var o=n?e[s](n):e[i]();return i=o.nextState,a=o.effect,r=o.stateUpdater,s=o.errorState,i===de?ue(t):a}return $(o,(function(e){return o(null,e)}),n)}({q1:function(){return{nextState:"q2",effect:o,stateUpdater:d}},q2:function(){return a?{nextState:"q3",effect:c(a)}:{nextState:"q1",effect:l(i),stateUpdater:u}},q3:function(){return{nextState:"q1",effect:l(i),stateUpdater:u}}},"q1","takeLatest("+function(e){return C(e)?"channel":T(e)?String(e):_(e)?e.name:String(e)}(e)+", "+t.name+")")}var he=n(8587);const fe=function(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e};var me=[],ge=0;function ve(e){try{ye(),e()}finally{_e()}}function be(e){me.push(e),ge||(ye(),xe())}function we(e){try{return ye(),e()}finally{xe()}}function ye(){ge++}function _e(){ge--}function xe(){var e;for(_e();!ge&&void 0!==(e=me.shift());)ve(e)}var ke=function(e){return function(t){return e.some((function(e){return Te(e)(t)}))}},Se=function(e){return function(t){return e(t)}},Ee=function(e){return function(t){return t.type===String(e)}},je=function(e){return function(t){return t.type===e}},Ce=function(){return O};function Te(e){var t="*"===e?Ce:x(e)?Ee:k(e)?ke:T(e)?Ee:_(e)?Se:M(e)?je:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var Me={type:c},Pe=function(e){return e&&e.type===c};function Ae(){var e,t,n,r,s,a,i=(t=!1,r=n=[],s=function(){r===n&&(r=n.slice())},a=function(){t=!0;var e=n=r;r=[],e.forEach((function(e){e(Me)}))},(e={})[p]=!0,e.put=function(e){if(!t)if(Pe(e))a();else for(var s=n=r,i=0,o=s.length;i<o;i++){var l=s[i];l[d](e)&&(l.cancel(),l(e))}},e.take=function(e,n){var a,i;void 0===n&&(n=Ce),t?e(Me):(e[d]=n,s(),r.push(e),e.cancel=(a=function(){s(),N(r,e)},i=!1,function(){i||(i=!0,a())}))},e.close=a,e),o=i.put;return i.put=function(e){e[h]?o(e):be((function(){o(e)}))},i}var Ie=0,Oe=1,Le=2,De=3;function ze(e,t){var n=e[l];_(n)&&(t.cancel=n),e.then(t,(function(e){t(e,!0)}))}var Ne,Re=0,Be=function(){return++Re};function $e(e){e.isRunning()&&e.cancel()}var Fe=((Ne={})[Q]=function(e,t,n){var r=t.channel,s=void 0===r?e.channel:r,a=t.pattern,i=t.maybe,o=function(e){e instanceof Error?n(e,!0):!Pe(e)||i?n(e):n(v)};try{s.take(o,y(a)?Te(a):null)}catch(e){return void n(e,!0)}n.cancel=o.cancel},Ne[Z]=function(e,t,n){var r=t.channel,s=t.action,a=t.resolve;be((function(){var t;try{t=(r?r.put:e.dispatch)(s)}catch(e){return void n(e,!0)}a&&S(t)?ze(t,n):n(t)}))},Ne.ALL=function(e,t,n,r){var s=r.digestEffect,a=Re,i=Object.keys(t);if(0!==i.length){var o=W(t,n);i.forEach((function(e){s(t[e],a,o[e],e)}))}else n(k(t)?[]:{})},Ne.RACE=function(e,t,n,r){var s=r.digestEffect,a=Re,i=Object.keys(t),o=k(t)?H(i.length):{},l={},c=!1;i.forEach((function(e){var t=function(t,r){c||(r||G(t)?(n.cancel(),n(t,r)):(n.cancel(),c=!0,o[e]=t,n(o)))};t.cancel=L,l[e]=t})),n.cancel=function(){c||(c=!0,i.forEach((function(e){return l[e].cancel()})))},i.forEach((function(e){c||s(t[e],a,l[e],e)}))},Ne[ee]=function(e,t,n,r){var s=t.context,a=t.fn,i=t.args,o=r.task;try{var l=a.apply(s,i);if(S(l))return void ze(l,n);if(E(l))return void Je(e,l,o.context,Re,Y(a),!1,n);n(l)}catch(e){n(e,!0)}},Ne.CPS=function(e,t,n){var r=t.context,s=t.fn,a=t.args;try{var i=function(e,t){w(e)?n(t):n(e,!0)};s.apply(r,a.concat(i)),i.cancel&&(n.cancel=i.cancel)}catch(e){n(e,!0)}},Ne[te]=function(e,t,n,r){var s=t.context,a=t.fn,i=t.args,o=t.detached,l=r.task,c=function(e){var t=e.context,n=e.fn,r=e.args;try{var s=n.apply(t,r);if(E(s))return s;var a=!1;return $((function(e){return a?{value:e,done:!0}:(a=!0,{value:s,done:!S(s)})}))}catch(e){return $((function(){throw e}))}}({context:s,fn:a,args:i}),u=function(e,t){return e.isSagaIterator?{name:e.meta.name}:Y(t)}(c,a);we((function(){var t=Je(e,c,l.context,Re,u,o,void 0);o?n(t):t.isRunning()?(l.queue.addTask(t),n(t)):t.isAborted()?l.queue.abort(t.error()):n(t)}))},Ne.JOIN=function(e,t,n,r){var s=r.task,a=function(e,t){if(e.isRunning()){var n={task:s,cb:t};t.cancel=function(){e.isRunning()&&N(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())};if(k(t)){if(0===t.length)return void n([]);var i=W(t,n);t.forEach((function(e,t){a(e,i[t])}))}else a(t,n)},Ne[ne]=function(e,t,n,r){var s=r.task;t===f?$e(s):k(t)?t.forEach($e):$e(t),n()},Ne.SELECT=function(e,t,n){var r=t.selector,s=t.args;try{n(r.apply(void 0,[e.getState()].concat(s)))}catch(e){n(e,!0)}},Ne.ACTION_CHANNEL=function(e,t,n){var r=t.pattern,s=function(e){void 0===e&&(e=J());var t=!1,n=[];return{take:function(r){t&&e.isEmpty()?r(Me):e.isEmpty()?(n.push(r),r.cancel=function(){N(n,r)}):r(e.take())},put:function(r){if(!t){if(0===n.length)return e.put(r);n.shift()(r)}},flush:function(n){t&&e.isEmpty()?n(Me):n(e.flush())},close:function(){if(!t){t=!0;var e=n;n=[];for(var r=0,s=e.length;r<s;r++)(0,e[r])(Me)}}}}(t.buffer),a=Te(r),i=function t(n){Pe(n)||e.channel.take(t,a),s.put(n)},o=s.close;s.close=function(){i.cancel(),o()},e.channel.take(i,a),n(s)},Ne.CANCELLED=function(e,t,n,r){n(r.task.isCancelled())},Ne.FLUSH=function(e,t,n){t.flush(n)},Ne.GET_CONTEXT=function(e,t,n,r){n(r.task.context[t])},Ne.SET_CONTEXT=function(e,t,n,r){var s=r.task;z(s.context,t),n()},Ne);function He(e,t){return e+"?"+t}function qe(e){var t=e.name,n=e.location;return n?t+" "+He(n.fileName,n.lineNumber):t}function Ve(e){var t,n,r,s=(t=function(e){return e.cancelledTasks},n=e,(r=[]).concat.apply(r,n.map(t)));return s.length?["Tasks cancelled due to error:"].concat(s).join("\n"):""}var Ue=null,Ge=[],We=function(e){e.crashedEffect=Ue,Ge.push(e)},Ye=function(){Ue=null,Ge.length=0},Xe=function(e){Ue=e},Ke=function(){var e,t,n=Ge[0],r=Ge.slice(1),s=n.crashedEffect?(e=n.crashedEffect,(t=X(e))?t.code+" "+He(t.fileName,t.lineNumber):""):null;return["The above error occurred in task "+qe(n.meta)+(s?" \n when executing effect "+s:"")].concat(r.map((function(e){return" created by "+qe(e.meta)})),[Ve(Ge)]).join("\n")};function Je(e,t,n,r,s,a,i){var o=e.finalizeRunEffect((function(t,n,r){S(t)?ze(t,r):E(t)?Je(e,t,c.context,n,s,!1,r):t&&t[u]?(0,Fe[t.type])(e,t.payload,r,d):r(t)}));p.cancel=L;var l={meta:s,cancel:function(){l.status===Ie&&(l.status=Oe,p(g))},status:Ie},c=function(e,t,n,r,s,a,i){var o;void 0===i&&(i=L);var l,c,u=Ie,d=null,p=[],h=Object.create(n),f=function(e,t,n){var r,s=[],a=!1;function i(e){t(),l(),n(e,!0)}function o(t){s.push(t),t.cont=function(o,l){a||(N(s,t),t.cont=L,l?i(o):(t===e&&(r=o),s.length||(a=!0,n(r))))}}function l(){a||(a=!0,s.forEach((function(e){e.cont=L,e.cancel()})),s=[])}return o(e),{addTask:o,cancelAll:l,abort:i,getTasks:function(){return s}}}(t,(function(){p.push.apply(p,f.getTasks().map((function(e){return e.meta.name})))}),v);function v(t,n){if(n){if(u=Le,We({meta:s,cancelledTasks:p}),b.isRoot){var r=Ke();Ye(),e.onError(t,{sagaStack:r})}c=t,d&&d.reject(t)}else t===g?u=Oe:u!==Oe&&(u=De),l=t,d&&d.resolve(t);b.cont(t,n),b.joiners.forEach((function(e){e.cb(t,n)})),b.joiners=null}var b=((o={})[m]=!0,o.id=r,o.meta=s,o.isRoot=a,o.context=h,o.joiners=[],o.queue=f,o.cancel=function(){u===Ie&&(u=Oe,f.cancelAll(),v(g,!1))},o.cont=i,o.end=v,o.setContext=function(e){z(h,e)},o.toPromise=function(){return d||(d=fe(),u===Le?d.reject(c):u!==Ie&&d.resolve(l)),d.promise},o.isRunning=function(){return u===Ie},o.isCancelled=function(){return u===Oe||u===Ie&&t.status===Oe},o.isAborted=function(){return u===Le},o.result=function(){return l},o.error=function(){return c},o);return b}(e,l,n,r,s,a,i),d={task:c,digestEffect:h};return i&&(i.cancel=c.cancel),p(),c;function p(e,n){try{var s;n?(s=t.throw(e),Ye()):U(e)?(l.status=Oe,p.cancel(),s=_(t.return)?t.return(g):{done:!0,value:g}):s=V(e)?_(t.return)?t.return():{done:!0}:t.next(e),s.done?(l.status!==Oe&&(l.status=De),l.cont(s.value)):h(s.value,r,p)}catch(e){if(l.status===Oe)throw e;l.status=Le,l.cont(e,!0)}}function h(t,n,r,s){void 0===s&&(s="");var a,i=Be();function l(n,s){a||(a=!0,r.cancel=L,e.sagaMonitor&&(s?e.sagaMonitor.effectRejected(i,n):e.sagaMonitor.effectResolved(i,n)),s&&Xe(t),r(n,s))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:i,parentEffectId:n,label:s,effect:t}),l.cancel=L,r.cancel=function(){a||(a=!0,l.cancel(),l.cancel=L,e.sagaMonitor&&e.sagaMonitor.effectCancelled(i))},o(t,i,l)}}function Qe(e,t){for(var n=e.channel,r=void 0===n?Ae():n,s=e.dispatch,a=e.getState,i=e.context,o=void 0===i?{}:i,l=e.sagaMonitor,c=e.effectMiddlewares,u=e.onError,d=void 0===u?F:u,p=arguments.length,h=new Array(p>2?p-2:0),f=2;f<p;f++)h[f-2]=arguments[f];var m,g=t.apply(void 0,h),v=Be();if(l&&(l.rootSagaStarted=l.rootSagaStarted||L,l.effectTriggered=l.effectTriggered||L,l.effectResolved=l.effectResolved||L,l.effectRejected=l.effectRejected||L,l.effectCancelled=l.effectCancelled||L,l.actionDispatched=l.actionDispatched||L,l.rootSagaStarted({effectId:v,saga:t,args:h})),c){var b=K.apply(void 0,c);m=function(e){return function(t,n,r){return b((function(t){return e(t,n,r)}))(t)}}}else m=D;var w={channel:r,dispatch:q(s),getState:a,sagaMonitor:l,onError:d,finalizeRunEffect:m};return we((function(){var e=Je(w,g,o,v,Y(t),!0,void 0);return l&&l.effectResolved(v,e),e}))}const Ze=function(e){var t,n=void 0===e?{}:e,r=n.context,s=void 0===r?{}:r,a=n.channel,i=void 0===a?Ae():a,o=n.sagaMonitor,l=(0,he.A)(n,["context","channel","sagaMonitor"]);function c(e){var n=e.getState,r=e.dispatch;return t=Qe.bind(null,(0,A.A)({},l,{context:s,channel:i,dispatch:r,getState:n,sagaMonitor:o})),function(e){return function(t){o&&o.actionDispatched&&o.actionDispatched(t);var n=e(t);return i.put(t),n}}}return c.run=function(){return t.apply(void 0,arguments)},c.setContext=function(e){z(s,e)},c};var et=n(8468),tt=n(7143),nt=n(1455),rt=n.n(nt),st=n(3832),at=n(1126),it=n(2859);const{UU:ot}=at,lt=`newspack-blocks/${ot}`,ct={postsByBlock:{},errorsByBlock:{}},ut={reflow:()=>{ht.dispatch({type:"REFLOW"})}},dt={getPosts:({clientId:e})=>ht.getState().postsByBlock[e],getError:({clientId:e})=>ht.getState().errorsByBlock[e],isUIDisabled:()=>ht.getState().isUIDisabled},pt=Ze(),ht=function e(t,n,a){if("function"!=typeof t)throw new Error(r(2));if("function"==typeof n&&"function"==typeof a||"function"==typeof a&&"function"==typeof arguments[3])throw new Error(r(0));if("function"==typeof n&&void 0===a&&(a=n,n=void 0),void 0!==a){if("function"!=typeof a)throw new Error(r(1));return a(e)(t,n)}let o=t,l=n,c=new Map,u=c,d=0,p=!1;function h(){u===c&&(u=new Map,c.forEach(((e,t)=>{u.set(t,e)})))}function f(){if(p)throw new Error(r(3));return l}function m(e){if("function"!=typeof e)throw new Error(r(4));if(p)throw new Error(r(5));let t=!0;h();const n=d++;return u.set(n,e),function(){if(t){if(p)throw new Error(r(6));t=!1,h(),u.delete(n),c=null}}}function g(e){if(!function(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}(e))throw new Error(r(7));if(void 0===e.type)throw new Error(r(8));if("string"!=typeof e.type)throw new Error(r(17));if(p)throw new Error(r(9));try{p=!0,l=o(l,e)}finally{p=!1}return(c=u).forEach((e=>{e()})),e}return g({type:i.INIT}),{dispatch:g,subscribe:m,getState:f,replaceReducer:function(e){if("function"!=typeof e)throw new Error(r(10));o=e,g({type:i.REPLACE})},[s]:function(){const e=m;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(r(11));function n(){const e=t;e.next&&e.next(f())}return n(),{unsubscribe:e(n)}},[s](){return this}}}}}(((e=ct,t)=>{switch(t.type){case"DISABLE_UI":return(0,et.set)(e,"isUIDisabled",!0);case"ENABLE_UI":return(0,et.set)(e,"isUIDisabled",!1);case"UPDATE_BLOCK_POSTS":return(0,et.set)(e,["postsByBlock",t.clientId],t.posts);case"UPDATE_BLOCK_ERROR":return(0,et.set)(e,["errorsByBlock",t.clientId],t.error)}return e}),function(...e){return t=>(n,s)=>{const a=t(n,s);let i=()=>{throw new Error(r(15))};const o={getState:a.getState,dispatch:(e,...t)=>i(e,...t)},l=e.map((e=>e(o)));return i=function(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}(...l)(a.dispatch),{...a,dispatch:i}}}(pt)),ft={getSelectors:()=>dt,getActions:()=>ut,...ht},mt={},gt=JSON.stringify;function*vt(e){const t=gt(e.postsQuery),n=window.newspack_blocks_data.posts_rest_url;let r=mt[t];if(void 0===r){const s=(0,st.addQueryArgs)(n,{...e.postsQuery,context:"edit"});r=yield oe(rt(),{url:s}),mt[t]=r}const s=r.map((e=>e.id));return yield ae({type:"UPDATE_BLOCK_POSTS",clientId:e.clientId,posts:r}),s}function bt(e){const{getBlock:t}=(0,tt.select)("core/block-editor"),n=t(e);return n?.attributes?.deduplicate}const wt=e=>{(0,tt.register)({name:lt,instantiate:()=>ft}),pt.run((e=>{function*t(){yield ce(300);const{getBlocks:t}=(0,tt.select)("core/block-editor"),{getCurrentPostId:n}=(0,tt.select)("core/editor");yield ae({type:"DISABLE_UI"});const r=(0,it.u$)(t),s=(0,it.yG)(r,e),a=s.reduce(((e,{clientId:t,postsQuery:n})=>(bt(t)&&n.include&&(e=[...e,...n.include]),e)),[]);let i=(0,it.kN)([...a,n()]);for(;s.length;){const e=s.shift(),t=bt(e.clientId);t&&(e.postsQuery.exclude=i);let n=[];try{n=yield oe(vt,e)}catch(t){yield ae({type:"UPDATE_BLOCK_ERROR",clientId:e.clientId,error:t.message})}t&&(i=[...i,...n])}yield ae({type:"ENABLE_UI"})}return function*(){yield function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),s=2;s<n;s++)r[s-2]=arguments[s];return le.apply(void 0,[pe,e,t].concat(r))}("REFLOW",t)}})(e))}},2859:(e,t,n)=>{"use strict";n.d(t,{Fl:()=>v,Wu:()=>i,cR:()=>g,kN:()=>c,pV:()=>l,u$:()=>b,yG:()=>d});var r=n(8468),s=n(7723),a=n(4440);const i=()=>"object"==typeof window&&window.wpcomGutenberg&&-1===Number(window.wpcomGutenberg.blogPublic),o=["postsToShow","authors","categories","includeSubcategories","categoryJoinType","excerptLength","tags","customTaxonomies","showExcerpt","specificPosts","specificMode","tagExclusions","categoryExclusions","customTaxonomyExclusions","postType","includedPostStatuses","deduplicate","showCaption","showCredit"],l=(e,t)=>!(0,r.isEqual)((0,r.pick)(e.attributes,o),(0,r.pick)(t.attributes,o))||!(0,r.isEqual)(e.topBlocksClientIdsInOrder,t.topBlocksClientIdsInOrder),c=e=>e.map((e=>parseInt(e))).filter((e=>e>0)),u=e=>(0,r.pickBy)(e,(e=>!(0,r.isUndefined)(e)&&!(0,r.isNull)(e))),d=(e,t)=>e.flatMap((e=>{const n=[];if(t.indexOf(e.name)>=0){const t=(e=>{const{postsToShow:t,authors:n,categories:s,includeSubcategories:a,categoryJoinType:i,excerptLength:l,postType:d,showExcerpt:p,showCaption:h,showCredit:f,tags:m,customTaxonomies:g,specificPosts:v=[],specificMode:b,tagExclusions:w,categoryExclusions:y,customTaxonomyExclusions:_,includedPostStatuses:x}=(0,r.pick)(e,o),k=c(v),S=b&&k&&k.length,E=(0,r.pickBy)(S?{include:k,postsToShow:v.length,postType:d}:{postsToShow:t,categories:u(s),includeSubcategories:a,categoryJoinType:i,authors:u(n),tags:u(m),tagExclusions:u(w),categoryExclusions:u(y),customTaxonomyExclusions:_,customTaxonomies:g,postType:d,includedPostStatuses:x},(e=>!(0,r.isUndefined)(e)));return E.excerptLength=l,E.showExcerpt=p,E.showCaption=h,E.showCredit=f,E})(e.attributes);n.push({postsQuery:t,clientId:e.clientId})}return n.concat(d(e.innerBlocks,t))})),p=e=>e.flatMap((e=>{const t=[];return t.push(e.clientId),t.concat(p(e.innerBlocks))})),h=window.newspack_blocks_data.assets_path,f=e=>{const t=new Date;return t.setHours(12,0,0,0),{author:1,content:{rendered:"<p>"+(0,s.__)("The post content.","newspack-blocks")+"</p>"},date:t.toISOString(),date_formatted:t.toLocaleString(),article_meta_footer:"",excerpt:{rendered:"<p>"+(0,s.__)("The post excerpt.","newspack-blocks")+"</p>"},full_content:(0,s.__)("Full post content.","newspack-blocks"),post_link:"/",featured_media:"1",id:e,post_type:"post",meta:{newspack_post_subtitle:(0,s.__)("Post Subtitle","newspack-blocks")},title:{rendered:(0,s.__)("Post Title","newspack-blocks")},newspack_article_classes:"type-post",newspack_post_avatars:'<div style="background: #e8e8e8;width: 40px;height: 40px;display: block;overflow: hidden;border-radius: 50%; max-width: 100%; max-height: 100%;" class="avatar"></div>',newspack_post_byline:`<span class="byline">\n\t\t\t<span class="author-prefix">${(0,s.__)("by","newspack-blocks")}</span>\n\t\t\t<span class="author vcard">\n\t\t\t\t<a class="url fn n" href="/">Author Name</a>\n\t\t\t</span>\n\t\t</span>`,newspack_category_info:(0,s.__)("Category","newspack-blocks"),newspack_featured_image_caption:(0,s.__)("Featured image caption","newspack-blocks"),newspack_featured_image_src:{large:`${h}/placeholder-1024x536.jpg`,landscape:`${h}/placeholder-800x600.jpg`,portrait:`${h}/placeholder-600x800.jpg`,square:`${h}/placeholder-800x800.jpg`,uncropped:`${h}/placeholder-1024x536.jpg`},newspack_has_custom_excerpt:!1,newspack_sponsors_show_categories:!1,newspack_sponsors_show_author:!1}},m=e=>(0,r.times)(e.postsToShow,f),g=(e,{clientId:t,attributes:n})=>{const{getBlocks:r}=e("core/block-editor"),{getEditedPostAttribute:s}=e("core/editor"),i=s("blocks")||[],o=[];for(const e of i)"core/block"===e.name?o.push(...r(e.clientId)):o.push(e);const l=p(o),c=r(),u=c.some((e=>"core/widget-area"===e.name)),d=0===l.length||l.indexOf(t)>=0||u,{getPosts:h,getError:f,isUIDisabled:g}=e(a.C);return{isEditorBlock:d,isUIDisabled:g(),error:f({clientId:t}),topBlocksClientIdsInOrder:c.map((e=>e.clientId)),latestPosts:d?h({clientId:t}):m(n)}},v=(e,{isEditorBlock:t})=>({triggerReflow:t?e(a.C).reflow:()=>{}}),b=(e,t=e())=>t.map((t=>{let n=0===t.innerBlocks.length?e(t.clientId):t.innerBlocks;return n=b(e,n),{...t,innerBlocks:n}}))},5858:(e,t,n)=>{"use strict";n.d(t,{P:()=>o});var r=n(6427),s=n(7723),a=n(790);const i=window.newspack_blocks_data?.author_custom_fields||[],o=({attributes:e,setAttributes:t})=>{const n=[{name:"Bio",label:(0,s.__)("Biographical info","newspack-blocks")},{name:"Social",label:(0,s.__)("Social links","newspack-blocks")},{name:"Email",label:(0,s.__)("Email address","newspack-blocks")},{name:"ArchiveLink",label:(0,s.__)("Link to author archive","newspack-blocks")},...i];return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{children:(0,s.__)("Display the following fields:","newspack-blocks")}),n.map((n=>{const s=`show${n.name}`;return(0,a.jsx)(r.ToggleControl,{label:n.label,checked:Boolean(e[s]),onChange:()=>t({[s]:!e[s]})},n.name)}))]})}},766:(e,t,n)=>{"use strict";n.d(t,{O:()=>l,X:()=>c});var r=n(7723),s=n(6427),a=n(7143),i=n(790);const o=({options:e,values:t,onChange:n,defaultRequiredSlug:r=null})=>Array.isArray(e)?e.map((({name:e,slug:a})=>{const o=r&&a===r,l=r&&t.some((e=>e!==r)),c=o&&!l;return(0,i.jsx)(s.CheckboxControl,{label:e,checked:t.indexOf(a)>-1,disabled:c,onChange:e=>{const s=[...new Set(t)];e&&-1===s.indexOf(a)?s.push(a):!e&&s.indexOf(a)>-1&&s.splice(s.indexOf(a),1),r&&0===s.length&&s.push(r),n(s)}},a)})):(0,i.jsx)(s.Spinner,{}),l=({attributes:e,setAttributes:t})=>{const{availablePostTypes:n}=(0,a.useSelect)((e=>{const{getPostTypes:t}=e("core"),n=(0,r.__)("Listings","newspack-blocks");return{availablePostTypes:t({per_page:-1})?.filter((({supports:{newspack_blocks:e}})=>e))?.map((e=>(0===e.slug.indexOf("newspack_lst")&&"newspack_lst_generic"!==e.slug&&-1===e.name.indexOf(n)&&(e.name=`${e.name} ${n}`),e)))}}));return(0,i.jsx)(s.PanelBody,{title:(0,r.__)("Post Types","newspack-blocks"),initialOpen:!1,children:(0,i.jsx)(o,{options:n,values:e.postType,onChange:e=>t({postType:e}),defaultRequiredSlug:"post"})})},c=({attributes:e,setAttributes:t})=>(0,i.jsxs)(s.PanelBody,{title:(0,r.__)("Additional Post Statuses","newspack-blocks"),initialOpen:!1,children:[(0,i.jsx)(s.BaseControl,{help:(0,r.__)("Selection here has effect only for editors, regular users will only see published posts.","newspack-blocks")}),(0,i.jsx)(o,{values:e.includedPostStatuses,options:[{name:"Draft",slug:"draft"},{name:"Scheduled",slug:"future"}],onChange:e=>t({includedPostStatuses:e})})]})},1225:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(7723),s=n(6087),a=n(6427),i=n(1455),o=n.n(i),l=n(3832),c=n(8537),u=n(8468),d=n(790);class p extends s.Component{constructor(e){super(e),this.state={suggestions:[],validValues:{},loading:this.isFetchingInfoOnLoad()},this.debouncedUpdateSuggestions=(0,u.debounce)(this.updateSuggestions,500)}isFetchingInfoOnLoad=()=>{const{tokens:e,fetchSavedInfo:t}=this.props;return Boolean(e.length&&t)};componentDidMount(){if(this.isFetchingInfoOnLoad()){const{tokens:e,fetchSavedInfo:t}=this.props;t(e).then((e=>{const{validValues:t}=this.state;e.forEach((e=>{t[e.value]=e.label})),this.setState({validValues:t,loading:!1})}))}}componentWillUnmount(){delete this.suggestionsRequest,this.debouncedUpdateSuggestions.cancel()}getLabelsForValues(e){const{validValues:t}=this.state;return e.reduce(((e,n)=>t[n]?[...e,t[n]]:e),[])}getValuesForLabels(e){const{validValues:t}=this.state;return e.map((e=>Object.keys(t).find((n=>t[n]===e)))).filter((e=>!!e))}updateSuggestions(e){const{fetchSuggestions:t}=this.props;t&&this.setState({loading:!0},(()=>{const n=t(e);n.then((e=>{if(this.suggestionsRequest!==n)return;const{validValues:t}=this.state,r=[];e.forEach((e=>{const n=e.label.trim();r.indexOf(n)>=0&&(e.label=`${n} (${e.value})`),r.push(n),t[e.value]=n})),this.setState({suggestions:r,validValues:t,loading:!1})})).catch((()=>{this.suggestionsRequest===n&&this.setState({loading:!1})})),this.suggestionsRequest=n}))}handleOnChange(e){const{onChange:t}=this.props;t(this.getValuesForLabels(e))}getTokens(){const{tokens:e}=this.props;return this.getLabelsForValues(e)}render(){const{help:e,label:t=""}=this.props,{suggestions:n,loading:r}=this.state;return(0,d.jsxs)("div",{className:"autocomplete-tokenfield",children:[(0,d.jsx)(a.FormTokenField,{value:this.getTokens(),suggestions:n,onChange:e=>this.handleOnChange(e),onInputChange:e=>this.debouncedUpdateSuggestions(e),label:t,__next40pxDefaultSize:!0}),r&&(0,d.jsx)(a.Spinner,{}),e&&(0,d.jsx)("p",{className:"autocomplete-tokenfield__help",children:e})]})}}const h=p,f=e=>(0,c.decodeEntities)(e.name)||(0,r.__)("(no title)","newspack-blocks"),m=e=>(0,c.decodeEntities)(e.name)||(0,r.__)("(no title)","newspack-blocks");class g extends s.Component{fetchPostSuggestions=e=>{const{postType:t}=this.props,n=window.newspack_blocks_data.specific_posts_rest_url;return o()({url:(0,l.addQueryArgs)(n,{search:e,postsToShow:20,_fields:"id,title",type:"post",postType:t})}).then((function(e){return e.map((e=>({value:e.id,label:(0,c.decodeEntities)(e.title)||(0,r.__)("(no title)","newspack-blocks")})))}))};fetchSavedPosts=e=>{const{postType:t}=this.props,n=window.newspack_blocks_data.posts_rest_url;return o()({url:(0,l.addQueryArgs)(n,{postsToShow:100,include:e.join(","),_fields:"id,title",postType:t})}).then((function(e){return e.map((e=>({value:e.id,label:(0,c.decodeEntities)(e.title.rendered)||(0,r.__)("(no title)","newspack-blocks")})))}))};fetchAuthorSuggestions=e=>{const t=window.newspack_blocks_data.authors_rest_url;return o()({url:(0,l.addQueryArgs)(t,{search:e,per_page:20,fields:"id,name"})}).then((function(e){return e.map((e=>({value:e.id,label:(0,c.decodeEntities)(e.name)||(0,r.__)("(no name)","newspack-blocks")})))}))};fetchSavedAuthors=e=>{const t=window.newspack_blocks_data.authors_rest_url;return o()({url:(0,l.addQueryArgs)(t,{per_page:100,include:e.join(","),fields:"id,name"})}).then((function(e){return e.map((e=>({value:e.id,label:(0,c.decodeEntities)(e.name)||(0,r.__)("(no name)","newspack-blocks")})))}))};fetchCategorySuggestions=e=>o()({path:(0,l.addQueryArgs)("/wp/v2/categories",{search:e,per_page:20,_fields:"id,name,parent",orderby:"count",order:"desc"})}).then((e=>Promise.all(e.map((e=>e.parent>0?o()({path:(0,l.addQueryArgs)(`/wp/v2/categories/${e.parent}`,{_fields:"name"})}).then((t=>({value:e.id,label:`${f(e)} – ${f(t)}`}))):Promise.resolve({value:e.id,label:f(e)}))))));fetchSavedCategories=e=>o()({path:(0,l.addQueryArgs)("/wp/v2/categories",{per_page:100,_fields:"id,name",include:e.join(",")})}).then((function(t){const n=t.map((e=>({value:e.id,label:(0,c.decodeEntities)(e.name)||(0,r.__)("(no title)","newspack-blocks")})));return e.forEach((e=>{n.find((t=>t.value===parseInt(e)))||n.push({value:parseInt(e),label:(0,r.__)("Deleted category","newspack-blocks")})})),n}));fetchTagSuggestions=e=>o()({path:(0,l.addQueryArgs)("/wp/v2/tags",{search:e,per_page:20,_fields:"id,name",orderby:"count",order:"desc"})}).then((function(e){return e.map((e=>({value:e.id,label:(0,c.decodeEntities)(e.name)||(0,r.__)("(no title)","newspack-blocks")})))}));fetchSavedTags=e=>o()({path:(0,l.addQueryArgs)("/wp/v2/tags",{per_page:100,_fields:"id,name",include:e.join(",")})}).then((function(t){const n=t.map((e=>({value:e.id,label:(0,c.decodeEntities)(e.name)||(0,r.__)("(no title)","newspack-blocks")})));return e.forEach((e=>{n.find((t=>t.value===parseInt(e)))||n.push({value:parseInt(e),label:(0,r.__)("Deleted tag","newspack-blocks")})})),n}));fetchCustomTaxonomiesSuggestions=(e,t)=>o()({path:(0,l.addQueryArgs)(`/wp/v2/${e}`,{search:t,per_page:20,_fields:"id,name,parent",orderby:"count",order:"desc"})}).then((t=>Promise.all(t.map((t=>t.parent>0?o()({path:(0,l.addQueryArgs)(`/wp/v2/${e}/${t.parent}`,{_fields:"name"})}).then((e=>({value:t.id,label:`${m(t)} – ${m(e)}`}))):Promise.resolve({value:t.id,label:m(t)}))))));fetchSavedCustomTaxonomies=(e,t)=>o()({path:(0,l.addQueryArgs)(`/wp/v2/${e}`,{per_page:100,_fields:"id,name",include:t.join(",")})}).then((function(e){return e.map((e=>({value:e.id,label:(0,c.decodeEntities)(e.name)||(0,r.__)("(no title)","newspack-blocks")})))}));render=()=>{const{specificMode:e,onSpecificModeChange:t,onLoopModeChange:n,specificPosts:s,onSpecificPostsChange:i,authors:o,onAuthorsChange:l,categories:c,onCategoriesChange:u,categoryJoinType:p,onCategoryJoinTypeChange:f,includeSubcategories:m,onIncludeSubcategoriesChange:g,tags:v,onTagsChange:b,customTaxonomies:w,onCustomTaxonomiesChange:y,tagExclusions:_,onTagExclusionsChange:x,categoryExclusions:k,onCategoryExclusionsChange:S,customTaxonomyExclusions:E,onCustomTaxonomyExclusionsChange:j,enableSpecific:C}=this.props,T=window.newspack_blocks_data?.custom_taxonomies,M=(e,t,n,r)=>{let s=e.filter((e=>e.slug!==n));s=[...s,{slug:n,terms:r}],t(s)},P=(e,t)=>{const n=e.find((e=>e.slug===t));return n?n.terms:[]};return(0,d.jsxs)(d.Fragment,{children:[C&&(0,d.jsx)(a.BaseControl,{label:(0,r.__)("Mode","newspack-blocks"),id:"newspack-block__loop-type",className:"newspack-block__button-group",help:e?(0,r.__)("The block will display only the specifically selected post(s).","newspack-blocks"):(0,r.__)("The block will display content based on the filtering settings below.","newspack-blocks"),children:(0,d.jsxs)(a.ButtonGroup,{children:[(0,d.jsx)(a.Button,{variant:!e&&"primary","aria-pressed":!e,onClick:n,children:(0,r.__)("Dynamic","newspack-blocks")}),(0,d.jsx)(a.Button,{variant:e&&"primary","aria-pressed":e,onClick:t,children:(0,r.__)("Static","newspack-blocks")})]})}),e?(0,d.jsx)(h,{tokens:s||[],onChange:i,fetchSuggestions:this.fetchPostSuggestions,fetchSavedInfo:this.fetchSavedPosts,label:(0,r.__)("Posts","newspack-blocks"),help:(0,r.__)("Begin typing any word in a post title. Click on an autocomplete result to select it.","newspack-blocks")}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(a.QueryControls,{...this.props,maxItems:30}),u&&(0,d.jsxs)(a.BaseControl,{id:"newspack-block__category-control",children:[(0,d.jsxs)("div",{className:"components-base-control__label-dropdown",children:[(0,d.jsx)(a.BaseControl.VisualLabel,{children:(0,r.__)("Category","newspack-blocks")}),(0,d.jsx)(a.SelectControl,{size:"small",value:p,options:[{label:(0,r.__)("is one of","newspack-blocks"),value:"or"},{label:(0,r.__)("is all of","newspack-blocks"),value:"all"}],onChange:e=>{"all"===e&&g(!1),f(e)},__nextHasNoMarginBottom:!0})]}),(0,d.jsx)(h,{tokens:c||[],onChange:u,fetchSuggestions:this.fetchCategorySuggestions,fetchSavedInfo:this.fetchSavedCategories})]}),"all"!==p&&g&&(0,d.jsx)(a.CheckboxControl,{checked:m,onChange:g,label:(0,r.__)("Include subcategories ","newspack-blocks")}),b&&(0,d.jsx)(h,{tokens:v||[],onChange:b,fetchSuggestions:this.fetchTagSuggestions,fetchSavedInfo:this.fetchSavedTags,label:(0,r.__)("Tags","newspack-blocks")}),l&&(0,d.jsx)(h,{tokens:o||[],onChange:l,fetchSuggestions:this.fetchAuthorSuggestions,fetchSavedInfo:this.fetchSavedAuthors,label:(0,r.__)("Authors","newspack-blocks")}),y&&T.map(((e,t)=>(0,d.jsx)(h,{tokens:P(w,e.slug),onChange:t=>{M(w,y,e.slug,t)},fetchSuggestions:t=>this.fetchCustomTaxonomiesSuggestions(e.slug,t),fetchSavedInfo:t=>this.fetchSavedCustomTaxonomies(e.slug,t),label:e.label},t))),S&&(0,d.jsx)(h,{tokens:k||[],onChange:S,fetchSuggestions:this.fetchCategorySuggestions,fetchSavedInfo:this.fetchSavedCategories,label:(0,r.__)("Excluded categories","newspack-blocks")}),x&&(0,d.jsx)(h,{tokens:_||[],onChange:x,fetchSuggestions:this.fetchTagSuggestions,fetchSavedInfo:this.fetchSavedTags,label:(0,r.__)("Excluded tags","newspack-blocks")}),T&&j&&T.map((({label:e,slug:t})=>(0,d.jsx)(h,{fetchSavedInfo:e=>this.fetchSavedCustomTaxonomies(t,e),fetchSuggestions:e=>this.fetchCustomTaxonomiesSuggestions(t,e),label:(0,r.sprintf)(
3
+ (0,f.__)("No authors or guest authors found for ID %s.","newspack-blocks"),A))}T(!1)},H=O&&n&&n.social||{};return L&&n&&n.email?H.email=n.email:delete H.email,(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(a.InspectorControls,{children:[(0,w.jsxs)(i.PanelBody,{title:(0,f.__)("Author Profile Settings","newspack-blocks"),children:[(0,w.jsx)(i.BaseControl,{label:(0,f.__)("Text Size","newspack-blocks"),id:"newspack-blocks__text-size-control",children:(0,w.jsx)(i.PanelRow,{children:(0,w.jsx)(i.ButtonGroup,{id:"newspack-blocks__text-size-control-buttons","aria-label":(0,f.__)("Text Size","newspack-blocks"),children:_.map((e=>{const n=D===e.value;return(0,w.jsx)(i.Button,{isPrimary:n,"aria-pressed":n,"aria-label":e.label,onClick:()=>t({textSize:e.value}),children:e.shortName},e.value)}))})})}),(0,w.jsx)(v.P,{attributes:e,setAttributes:t})]}),(0,w.jsxs)(i.PanelBody,{title:(0,f.__)("Avatar Settings","newspack-blocks"),children:[(0,w.jsx)(i.PanelRow,{children:(0,w.jsx)(i.ToggleControl,{label:(0,f.__)("Display avatar","newspack-blocks"),checked:z,onChange:()=>t({showAvatar:!z})})}),z&&(0,w.jsx)(i.PanelRow,{children:(0,w.jsx)(i.ToggleControl,{label:(0,f.__)("Hide default avatar","newspack-blocks"),checked:$,onChange:()=>t({avatarHideDefault:!$})})}),z&&(0,w.jsx)(i.BaseControl,{label:(0,f.__)("Avatar size","newspack-blocks"),id:"newspack-blocks__avatar-size-control",children:(0,w.jsx)(i.PanelRow,{children:(0,w.jsx)(i.ButtonGroup,{id:"newspack-blocks__avatar-size-control-buttons","aria-label":(0,f.__)("Avatar size","newspack-blocks"),children:x.map((e=>{const n=B===e.value;return(0,w.jsx)(i.Button,{isPrimary:n,"aria-pressed":n,"aria-label":e.label,onClick:()=>t({avatarSize:e.value}),children:e.shortName},e.value)}))})})}),z&&(0,w.jsx)(i.PanelRow,{children:(0,w.jsx)(i.__experimentalUnitControl,{label:(0,f.__)("Avatar border radius","newspack-blocks"),labelPosition:"edge",__unstableInputWidth:"80px",units:y,value:R,onChange:e=>t({avatarBorderRadius:0>parseFloat(e)?"0":e})})})]})]}),n&&(0,w.jsxs)(a.BlockControls,{children:[z&&"is-style-center"!==e.className&&(0,w.jsx)(i.Toolbar,{controls:[{icon:(0,w.jsx)(c.A,{icon:u.A}),title:(0,f.__)("Show avatar on left","newspack-blocks"),isActive:"left"===N,onClick:()=>t({avatarAlignment:"left"})},{icon:(0,w.jsx)(c.A,{icon:d.A}),title:(0,f.__)("Show avatar on right","newspack-blocks"),isActive:"right"===N,onClick:()=>t({avatarAlignment:"right"})}]}),(0,w.jsx)(i.Toolbar,{controls:[{icon:(0,w.jsx)(c.A,{icon:p.A}),title:(0,f.__)("Edit selection","newspack-blocks"),onClick:()=>{t({authorId:0}),r(null)}}]})]}),n?(0,w.jsx)(g.S,{author:n,attributes:e}):(0,w.jsxs)(i.Placeholder,{className:"newspack-blocks-author-profile",icon:(0,w.jsx)(c.A,{icon:h.A}),label:(0,f.__)("Author Profile","newspack-blocks"),children:[E&&(0,w.jsx)(i.Notice,{status:"error",isDismissible:!1,children:E}),C&&(0,w.jsxs)("div",{className:"is-loading",children:[(0,f.__)("Fetching author info…","newspack-blocks"),(0,w.jsx)(i.Spinner,{})]}),!C&&(0,w.jsx)(b.IW,{label:(0,f.__)("Search for an author to display","newspack-blocks"),help:(0,f.__)("Begin typing name, click autocomplete result to select.","newspack-blocks"),fetchSuggestions:async(e=null,t=0)=>{if(S(null),A&&!E)return[];const n=await s()({parse:!1,path:(0,m.addQueryArgs)("/newspack-blocks/v1/authors",{search:e,offset:t,fields:"id,name"})}),r=parseInt(n.headers.get("x-wp-total")||0),a=await n.json();M||e||P(r);const i=a.map((e=>({value:e.id,label:(0,l.decodeEntities)(e.name)||(0,f.__)("(no name)","newspack-blocks"),isGuestAuthor:e.is_guest})));return S(i),i},maxItemsToSuggest:M,onChange:e=>{let n=!1;const r=e[0];k&&k.forEach((e=>{parseInt(r?.value)===parseInt(e?.value)&&e?.isGuestAuthor&&(n=!0)})),t({authorId:parseInt(r?.value||0),isGuestAuthor:n})},postTypeLabel:(0,f.__)("author","newspack-blocks"),postTypeLabelPlural:(0,f.__)("authors","newspack-blocks"),selectedItems:[]})]})]})}},2122:(e,t,n)=>{"use strict";n.d(t,{S:()=>u});var r=n(7723),s=n(6087);const a=window.wp.autop;var i=n(6942),o=n.n(i),l=n(790);const c=({author:e,children:t,showArchiveLink:n})=>n&&e&&e.url?(0,l.jsx)("a",{href:"#",className:"no-op",children:t}):(0,l.jsx)(l.Fragment,{children:t}),u=({author:e,attributes:t})=>{const{showBio:n,showSocial:i,showEmail:u,showArchiveLink:d,showAvatar:p,textSize:h,avatarAlignment:f,avatarBorderRadius:m,avatarSize:g}=t,v=i&&e&&e.social||{};u&&e&&e.email?v.email=e.email:delete v.email,t.shownewspack_phone_number&&e&&e.newspack_phone_number?v.newspack_phone_number=e.newspack_phone_number:delete v.newspack_phone_number;const b=[t.shownewspack_role&&e.newspack_role,t.shownewspack_employer&&e.newspack_employer].filter(Boolean).join(", "),w=Object.keys(v);return(0,l.jsxs)("div",{className:o()("wp-block-newspack-blocks-author-profile","avatar-"+f,"text-size-"+h,{"is-style-center":"is-style-center"===t.className}),children:[p&&e.avatar&&(0,l.jsx)("div",{className:"wp-block-newspack-blocks-author-profile__avatar",children:(0,l.jsx)("figure",{style:{borderRadius:m,height:`${g}px`,width:`${g}px`},dangerouslySetInnerHTML:{__html:e.avatar}})}),(0,l.jsxs)("div",{className:"wp-block-newspack-blocks-author-profile__bio",children:[(0,l.jsx)("h3",{children:(0,l.jsx)(c,{author:e,showArchiveLink:d,children:e.name})}),t.shownewspack_job_title&&e.newspack_job_title&&(0,l.jsx)("p",{className:"wp-block-newspack-blocks-author-profile__job-title",children:e.newspack_job_title}),b&&(0,l.jsx)("p",{className:"wp-block-newspack-blocks-author-profile__employment",children:b}),n&&e.bio&&(0,l.jsxs)("p",{children:[(0,l.jsxs)(s.RawHTML,{children:[(0,a.autop)(e.bio)," "]}),d&&(0,l.jsx)("a",{href:"#",className:"no-op",children:(0,r.__)("More by","newspack-blocks")+" "+e.name})]}),0!==w.length&&(0,l.jsx)("ul",{className:"wp-block-newspack-blocks-author-profile__social-links",children:w.map((e=>(0,l.jsx)("li",{children:(0,l.jsxs)("a",{href:"#",className:"no-op",children:[v[e].svg&&(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:v[e].svg}}),(0,l.jsx)("span",{className:v[e].svg?"hidden":"visible",children:e})]})},e)))})]})]})}},1589:(e,t,n)=>{"use strict";n.d(t,{UU:()=>Ue,W0:()=>Ye});var r=n(6427),s=n(7723),a=n(8468),i=n(6942),o=n.n(i),l=n(4715);const c=window.wp.date;var u=n(6087),d=n(7143),p=n(9491),h=n(8537),f=n(1225),m=n(766);const g=window.wp.a11y,v=window.wp.escapeHtml;function b(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function w(e,t){void 0===e&&(e={}),void 0===t&&(t={});const n=["__proto__","constructor","prototype"];Object.keys(t).filter((e=>n.indexOf(e)<0)).forEach((n=>{void 0===e[n]?e[n]=t[n]:b(t[n])&&b(e[n])&&Object.keys(t[n]).length>0&&w(e[n],t[n])}))}const y={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function _(){const e="undefined"!=typeof document?document:{};return w(e,y),e}const x={document:y,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function k(){const e="undefined"!=typeof window?window:{};return w(e,x),e}function S(e){return void 0===e&&(e=""),e.trim().split(" ").filter((e=>!!e.trim()))}function E(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function j(){return Date.now()}function C(e,t){void 0===t&&(t="x");const n=k();let r,s,a;const i=function(e){const t=k();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}(e);return n.WebKitCSSMatrix?(s=i.transform||i.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map((e=>e.replace(",","."))).join(", ")),a=new n.WebKitCSSMatrix("none"===s?"":s)):(a=i.MozTransform||i.OTransform||i.MsTransform||i.msTransform||i.transform||i.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=a.toString().split(",")),"x"===t&&(s=n.WebKitCSSMatrix?a.m41:16===r.length?parseFloat(r[12]):parseFloat(r[4])),"y"===t&&(s=n.WebKitCSSMatrix?a.m42:16===r.length?parseFloat(r[13]):parseFloat(r[5])),s||0}function T(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function M(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let r=1;r<arguments.length;r+=1){const s=r<0||arguments.length<=r?void 0:arguments[r];if(null!=s&&(n=s,!("undefined"!=typeof window&&void 0!==window.HTMLElement?n instanceof HTMLElement:n&&(1===n.nodeType||11===n.nodeType)))){const n=Object.keys(Object(s)).filter((e=>t.indexOf(e)<0));for(let t=0,r=n.length;t<r;t+=1){const r=n[t],a=Object.getOwnPropertyDescriptor(s,r);void 0!==a&&a.enumerable&&(T(e[r])&&T(s[r])?s[r].__swiper__?e[r]=s[r]:M(e[r],s[r]):!T(e[r])&&T(s[r])?(e[r]={},s[r].__swiper__?e[r]=s[r]:M(e[r],s[r])):e[r]=s[r])}}}var n;return e}function P(e,t,n){e.style.setProperty(t,n)}function A(e){let{swiper:t,targetPosition:n,side:r}=e;const s=k(),a=-t.translate;let i,o=null;const l=t.params.speed;t.wrapperEl.style.scrollSnapType="none",s.cancelAnimationFrame(t.cssModeFrameID);const c=n>a?"next":"prev",u=(e,t)=>"next"===c&&e>=t||"prev"===c&&e<=t,d=()=>{i=(new Date).getTime(),null===o&&(o=i);const e=Math.max(Math.min((i-o)/l,1),0),c=.5-Math.cos(e*Math.PI)/2;let p=a+c*(n-a);if(u(p,n)&&(p=n),t.wrapperEl.scrollTo({[r]:p}),u(p,n))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout((()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[r]:p})})),void s.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=s.requestAnimationFrame(d)};d()}function I(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function O(e,t){void 0===t&&(t="");const n=k(),r=[...e.children];return n.HTMLSlotElement&&e instanceof HTMLSlotElement&&r.push(...e.assignedElements()),t?r.filter((e=>e.matches(t))):r}function L(e){try{return void console.warn(e)}catch(e){}}function D(e,t){void 0===t&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:S(t)),n}function z(e){const t=k(),n=_(),r=e.getBoundingClientRect(),s=n.body,a=e.clientTop||s.clientTop||0,i=e.clientLeft||s.clientLeft||0,o=e===t?t.scrollY:e.scrollTop,l=e===t?t.scrollX:e.scrollLeft;return{top:r.top+o-a,left:r.left+l-i}}function N(e,t){return k().getComputedStyle(e,null).getPropertyValue(t)}function R(e){let t,n=e;if(n){for(t=0;null!==(n=n.previousSibling);)1===n.nodeType&&(t+=1);return t}}function B(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function $(e,t){t&&e.addEventListener("transitionend",(function n(r){r.target===e&&(t.call(e,r),e.removeEventListener("transitionend",n))}))}function F(e,t,n){const r=k();return n?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function H(e){return(Array.isArray(e)?e:[e]).filter((e=>!!e))}function q(e){return t=>Math.abs(t)>0&&e.browser&&e.browser.need3dFix&&Math.abs(t)%90==0?t+.001:t}function V(e,t){void 0===t&&(t=""),"undefined"!=typeof trustedTypes?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:e=>e}).createHTML(t):e.innerHTML=t}let U,G,W;function Y(){return U||(U=function(){const e=k(),t=_();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),U}function X(e){return void 0===e&&(e={}),G||(G=function(e){let{userAgent:t}=void 0===e?{}:e;const n=Y(),r=k(),s=r.navigator.platform,a=t||r.navigator.userAgent,i={ios:!1,android:!1},o=r.screen.width,l=r.screen.height,c=a.match(/(Android);?[\s\/]+([\d.]+)?/);let u=a.match(/(iPad).*OS\s([\d_]+)/);const d=a.match(/(iPod)(.*OS\s([\d_]+))?/),p=!u&&a.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h="Win32"===s;let f="MacIntel"===s;return!u&&f&&n.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${o}x${l}`)>=0&&(u=a.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),f=!1),c&&!h&&(i.os="android",i.android=!0),(u||p||d)&&(i.os="ios",i.ios=!0),i}(e)),G}function K(){return W||(W=function(){const e=k(),t=X();let n=!1;function r(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(r()){const t=String(e.navigator.userAgent);if(t.includes("Version/")){const[e,r]=t.split("Version/")[1].split(" ")[0].split(".").map((e=>Number(e)));n=e<16||16===e&&r<2}}const s=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),a=r();return{isSafari:n||a,needPerspectiveFix:n,need3dFix:a||s&&t.ios,isWebView:s}}()),W}var J={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!=typeof t)return r;const s=n?"unshift":"push";return e.split(" ").forEach((e=>{r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][s](t)})),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!=typeof t)return r;function s(){r.off(e,s),s.__emitterProxy&&delete s.__emitterProxy;for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];t.apply(r,a)}return s.__emitterProxy=t,r.on(e,s,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof e)return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed?n:n.eventsListeners?(e.split(" ").forEach((e=>{void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach(((r,s)=>{(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&n.eventsListeners[e].splice(s,1)}))})),n):n},emit(){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let t,n,r;for(var s=arguments.length,a=new Array(s),i=0;i<s;i++)a[i]=arguments[i];return"string"==typeof a[0]||Array.isArray(a[0])?(t=a[0],n=a.slice(1,a.length),r=e):(t=a[0].events,n=a[0].data,r=a[0].context||e),n.unshift(r),(Array.isArray(t)?t:t.split(" ")).forEach((t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach((e=>{e.apply(r,[t,...n])})),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach((e=>{e.apply(r,n)}))})),e}};const Q=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)},Z=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)},ee=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(n){let t=n.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(n.shadowRoot?t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame((()=>{n.shadowRoot&&(t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&t.remove())}))),t&&t.remove()}},te=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},ne=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),s=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const n=s,a=[n-t];return a.push(...Array.from({length:t}).map(((e,t)=>n+r+t))),void e.slides.forEach(((t,n)=>{a.includes(t.column)&&te(e,n)}))}const a=s+r-1;if(e.params.rewind||e.params.loop)for(let r=s-t;r<=a+t;r+=1){const t=(r%n+n)%n;(t<s||t>a)&&te(e,t)}else for(let r=Math.max(s-t,0);r<=Math.min(a+t,n-1);r+=1)r!==s&&(r>a||r<s)&&te(e,r)};var re={updateSize:function(){const e=this;let t,n;const r=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:r.clientWidth,n=void 0!==e.params.height&&null!==e.params.height?e.params.height:r.clientHeight,0===t&&e.isHorizontal()||0===n&&e.isVertical()||(t=t-parseInt(N(r,"padding-left")||0,10)-parseInt(N(r,"padding-right")||0,10),n=n-parseInt(N(r,"padding-top")||0,10)-parseInt(N(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))},updateSlides:function(){const e=this;function t(t,n){return parseFloat(t.getPropertyValue(e.getDirectionLabel(n))||0)}const n=e.params,{wrapperEl:r,slidesEl:s,size:a,rtlTranslate:i,wrongRTL:o}=e,l=e.virtual&&n.virtual.enabled,c=l?e.virtual.slides.length:e.slides.length,u=O(s,`.${e.params.slideClass}, swiper-slide`),d=l?e.virtual.slides.length:u.length;let p=[];const h=[],f=[];let m=n.slidesOffsetBefore;"function"==typeof m&&(m=n.slidesOffsetBefore.call(e));let g=n.slidesOffsetAfter;"function"==typeof g&&(g=n.slidesOffsetAfter.call(e));const v=e.snapGrid.length,b=e.slidesGrid.length;let w=n.spaceBetween,y=-m,_=0,x=0;if(void 0===a)return;"string"==typeof w&&w.indexOf("%")>=0?w=parseFloat(w.replace("%",""))/100*a:"string"==typeof w&&(w=parseFloat(w)),e.virtualSize=-w,u.forEach((e=>{i?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""})),n.centeredSlides&&n.cssMode&&(P(r,"--swiper-centered-offset-before",""),P(r,"--swiper-centered-offset-after",""));const k=n.grid&&n.grid.rows>1&&e.grid;let S;k?e.grid.initSlides(u):e.grid&&e.grid.unsetSlides();const E="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter((e=>void 0!==n.breakpoints[e].slidesPerView)).length>0;for(let r=0;r<d;r+=1){let s;if(S=0,u[r]&&(s=u[r]),k&&e.grid.updateSlide(r,s,u),!u[r]||"none"!==N(s,"display")){if("auto"===n.slidesPerView){E&&(u[r].style[e.getDirectionLabel("width")]="");const a=getComputedStyle(s),i=s.style.transform,o=s.style.webkitTransform;if(i&&(s.style.transform="none"),o&&(s.style.webkitTransform="none"),n.roundLengths)S=e.isHorizontal()?F(s,"width",!0):F(s,"height",!0);else{const e=t(a,"width"),n=t(a,"padding-left"),r=t(a,"padding-right"),i=t(a,"margin-left"),o=t(a,"margin-right"),l=a.getPropertyValue("box-sizing");if(l&&"border-box"===l)S=e+i+o;else{const{clientWidth:t,offsetWidth:a}=s;S=e+n+r+i+o+(a-t)}}i&&(s.style.transform=i),o&&(s.style.webkitTransform=o),n.roundLengths&&(S=Math.floor(S))}else S=(a-(n.slidesPerView-1)*w)/n.slidesPerView,n.roundLengths&&(S=Math.floor(S)),u[r]&&(u[r].style[e.getDirectionLabel("width")]=`${S}px`);u[r]&&(u[r].swiperSlideSize=S),f.push(S),n.centeredSlides?(y=y+S/2+_/2+w,0===_&&0!==r&&(y=y-a/2-w),0===r&&(y=y-a/2-w),Math.abs(y)<.001&&(y=0),n.roundLengths&&(y=Math.floor(y)),x%n.slidesPerGroup==0&&p.push(y),h.push(y)):(n.roundLengths&&(y=Math.floor(y)),(x-Math.min(e.params.slidesPerGroupSkip,x))%e.params.slidesPerGroup==0&&p.push(y),h.push(y),y=y+S+w),e.virtualSize+=S+w,_=S,x+=1}}if(e.virtualSize=Math.max(e.virtualSize,a)+g,i&&o&&("slide"===n.effect||"coverflow"===n.effect)&&(r.style.width=`${e.virtualSize+w}px`),n.setWrapperSize&&(r.style[e.getDirectionLabel("width")]=`${e.virtualSize+w}px`),k&&e.grid.updateWrapperSize(S,p),!n.centeredSlides){const t=[];for(let r=0;r<p.length;r+=1){let s=p[r];n.roundLengths&&(s=Math.floor(s)),p[r]<=e.virtualSize-a&&t.push(s)}p=t,Math.floor(e.virtualSize-a)-Math.floor(p[p.length-1])>1&&p.push(e.virtualSize-a)}if(l&&n.loop){const t=f[0]+w;if(n.slidesPerGroup>1){const r=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),s=t*n.slidesPerGroup;for(let e=0;e<r;e+=1)p.push(p[p.length-1]+s)}for(let r=0;r<e.virtual.slidesBefore+e.virtual.slidesAfter;r+=1)1===n.slidesPerGroup&&p.push(p[p.length-1]+t),h.push(h[h.length-1]+t),e.virtualSize+=t}if(0===p.length&&(p=[0]),0!==w){const t=e.isHorizontal()&&i?"marginLeft":e.getDirectionLabel("marginRight");u.filter(((e,t)=>!(n.cssMode&&!n.loop)||t!==u.length-1)).forEach((e=>{e.style[t]=`${w}px`}))}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;f.forEach((t=>{e+=t+(w||0)})),e-=w;const t=e>a?e-a:0;p=p.map((e=>e<=0?-m:e>t?t+g:e))}if(n.centerInsufficientSlides){let e=0;f.forEach((t=>{e+=t+(w||0)})),e-=w;const t=(n.slidesOffsetBefore||0)+(n.slidesOffsetAfter||0);if(e+t<a){const n=(a-e-t)/2;p.forEach(((e,t)=>{p[t]=e-n})),h.forEach(((e,t)=>{h[t]=e+n}))}}if(Object.assign(e,{slides:u,snapGrid:p,slidesGrid:h,slidesSizesGrid:f}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){P(r,"--swiper-centered-offset-before",-p[0]+"px"),P(r,"--swiper-centered-offset-after",e.size/2-f[f.length-1]/2+"px");const t=-e.snapGrid[0],n=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+n))}if(d!==c&&e.emit("slidesLengthChange"),p.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==b&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(l||n.cssMode||"slide"!==n.effect&&"fade"!==n.effect)){const t=`${n.containerModifierClass}backface-hidden`,r=e.el.classList.contains(t);d<=n.maxBackfaceHiddenSlides?r||e.el.classList.add(t):r&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let s,a=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const i=e=>r?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach((e=>{n.push(e)}));else for(s=0;s<Math.ceil(t.params.slidesPerView);s+=1){const e=t.activeIndex+s;if(e>t.slides.length&&!r)break;n.push(i(e))}else n.push(i(t.activeIndex));for(s=0;s<n.length;s+=1)if(void 0!==n[s]){const e=n[s].offsetHeight;a=e>a?e:a}(a||0===a)&&(t.wrapperEl.style.height=`${a}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);const t=this,n=t.params,{slides:r,rtlTranslate:s,snapGrid:a}=t;if(0===r.length)return;void 0===r[0].swiperSlideOffset&&t.updateSlidesOffset();let i=-e;s&&(i=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let o=n.spaceBetween;"string"==typeof o&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*t.size:"string"==typeof o&&(o=parseFloat(o));for(let e=0;e<r.length;e+=1){const l=r[e];let c=l.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(c-=r[0].swiperSlideOffset);const u=(i+(n.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+o),d=(i-a[0]+(n.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+o),p=-(i-c),h=p+t.slidesSizesGrid[e],f=p>=0&&p<=t.size-t.slidesSizesGrid[e],m=p>=0&&p<t.size-1||h>1&&h<=t.size||p<=0&&h>=t.size;m&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e)),Q(l,m,n.slideVisibleClass),Q(l,f,n.slideFullyVisibleClass),l.progress=s?-u:u,l.originalProgress=s?-d:d}},updateProgress:function(e){const t=this;if(void 0===e){const n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:s,isBeginning:a,isEnd:i,progressLoop:o}=t;const l=a,c=i;if(0===r)s=0,a=!0,i=!0;else{s=(e-t.minTranslate())/r;const n=Math.abs(e-t.minTranslate())<1,o=Math.abs(e-t.maxTranslate())<1;a=n||s<=0,i=o||s>=1,n&&(s=0),o&&(s=1)}if(n.loop){const n=t.getSlideIndexByData(0),r=t.getSlideIndexByData(t.slides.length-1),s=t.slidesGrid[n],a=t.slidesGrid[r],i=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);o=l>=s?(l-s)/i:(l+i-a)/i,o>1&&(o-=1)}Object.assign(t,{progress:s,progressLoop:o,isBeginning:a,isEnd:i}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),a&&!l&&t.emit("reachBeginning toEdge"),i&&!c&&t.emit("reachEnd toEdge"),(l&&!a||c&&!i)&&t.emit("fromEdge"),t.emit("progress",s)},updateSlidesClasses:function(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:s}=e,a=e.virtual&&n.virtual.enabled,i=e.grid&&n.grid&&n.grid.rows>1,o=e=>O(r,`.${n.slideClass}${e}, swiper-slide${e}`)[0];let l,c,u;if(a)if(n.loop){let t=s-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),l=o(`[data-swiper-slide-index="${t}"]`)}else l=o(`[data-swiper-slide-index="${s}"]`);else i?(l=t.find((e=>e.column===s)),u=t.find((e=>e.column===s+1)),c=t.find((e=>e.column===s-1))):l=t[s];l&&(i||(u=function(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!u&&(u=t[0]),c=function(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&0===!c&&(c=t[t.length-1]))),t.forEach((e=>{Z(e,e===l,n.slideActiveClass),Z(e,e===u,n.slideNextClass),Z(e,e===c,n.slidePrevClass)})),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:s,activeIndex:a,realIndex:i,snapIndex:o}=t;let l,c=e;const u=e=>{let n=e-t.virtual.slidesBefore;return n<0&&(n=t.virtual.slides.length+n),n>=t.virtual.slides.length&&(n-=t.virtual.slides.length),n};if(void 0===c&&(c=function(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let s;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?r>=t[e]&&r<t[e+1]-(t[e+1]-t[e])/2?s=e:r>=t[e]&&r<t[e+1]&&(s=e+1):r>=t[e]&&(s=e);return n.normalizeSlideIndex&&(s<0||void 0===s)&&(s=0),s}(t)),r.indexOf(n)>=0)l=r.indexOf(n);else{const e=Math.min(s.slidesPerGroupSkip,c);l=e+Math.floor((c-e)/s.slidesPerGroup)}if(l>=r.length&&(l=r.length-1),c===a&&!t.params.loop)return void(l!==o&&(t.snapIndex=l,t.emit("snapIndexChange")));if(c===a&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=u(c));const d=t.grid&&s.grid&&s.grid.rows>1;let p;if(t.virtual&&s.virtual.enabled&&s.loop)p=u(c);else if(d){const e=t.slides.find((e=>e.column===c));let n=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(n)&&(n=Math.max(t.slides.indexOf(e),0)),p=Math.floor(n/s.grid.rows)}else if(t.slides[c]){const e=t.slides[c].getAttribute("data-swiper-slide-index");p=e?parseInt(e,10):c}else p=c;Object.assign(t,{previousSnapIndex:o,snapIndex:l,previousRealIndex:i,realIndex:p,previousIndex:a,activeIndex:c}),t.initialized&&ne(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(i!==p&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const n=this,r=n.params;let s=e.closest(`.${r.slideClass}, swiper-slide`);!s&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach((e=>{!s&&e.matches&&e.matches(`.${r.slideClass}, swiper-slide`)&&(s=e)}));let a,i=!1;if(s)for(let e=0;e<n.slides.length;e+=1)if(n.slides[e]===s){i=!0,a=e;break}if(!s||!i)return n.clickedSlide=void 0,void(n.clickedIndex=void 0);n.clickedSlide=s,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(s.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=a,r.slideToClickedSlide&&void 0!==n.clickedIndex&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}};function se(e){let{swiper:t,runCallbacks:n,direction:r,step:s}=e;const{activeIndex:a,previousIndex:i}=t;let o=r;o||(o=a>i?"next":a<i?"prev":"reset"),t.emit(`transition${s}`),n&&"reset"===o?t.emit(`slideResetTransition${s}`):n&&a!==i&&(t.emit(`slideChangeTransition${s}`),"next"===o?t.emit(`slideNextTransition${s}`):t.emit(`slidePrevTransition${s}`))}var ae={slideTo:function(e,t,n,r,s){void 0===e&&(e=0),void 0===n&&(n=!0),"string"==typeof e&&(e=parseInt(e,10));const a=this;let i=e;i<0&&(i=0);const{params:o,snapGrid:l,slidesGrid:c,previousIndex:u,activeIndex:d,rtlTranslate:p,wrapperEl:h,enabled:f}=a;if(!f&&!r&&!s||a.destroyed||a.animating&&o.preventInteractionOnTransition)return!1;void 0===t&&(t=a.params.speed);const m=Math.min(a.params.slidesPerGroupSkip,i);let g=m+Math.floor((i-m)/a.params.slidesPerGroup);g>=l.length&&(g=l.length-1);const v=-l[g];if(o.normalizeSlideIndex)for(let e=0;e<c.length;e+=1){const t=-Math.floor(100*v),n=Math.floor(100*c[e]),r=Math.floor(100*c[e+1]);void 0!==c[e+1]?t>=n&&t<r-(r-n)/2?i=e:t>=n&&t<r&&(i=e+1):t>=n&&(i=e)}if(a.initialized&&i!==d){if(!a.allowSlideNext&&(p?v>a.translate&&v>a.minTranslate():v<a.translate&&v<a.minTranslate()))return!1;if(!a.allowSlidePrev&&v>a.translate&&v>a.maxTranslate()&&(d||0)!==i)return!1}let b;i!==(u||0)&&n&&a.emit("beforeSlideChangeStart"),a.updateProgress(v),b=i>d?"next":i<d?"prev":"reset";const w=a.virtual&&a.params.virtual.enabled;if((!w||!s)&&(p&&-v===a.translate||!p&&v===a.translate))return a.updateActiveIndex(i),o.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),"slide"!==o.effect&&a.setTranslate(v),"reset"!==b&&(a.transitionStart(n,b),a.transitionEnd(n,b)),!1;if(o.cssMode){const e=a.isHorizontal(),n=p?v:-v;if(0===t)w&&(a.wrapperEl.style.scrollSnapType="none",a._immediateVirtual=!0),w&&!a._cssModeVirtualInitialSet&&a.params.initialSlide>0?(a._cssModeVirtualInitialSet=!0,requestAnimationFrame((()=>{h[e?"scrollLeft":"scrollTop"]=n}))):h[e?"scrollLeft":"scrollTop"]=n,w&&requestAnimationFrame((()=>{a.wrapperEl.style.scrollSnapType="",a._immediateVirtual=!1}));else{if(!a.support.smoothScroll)return A({swiper:a,targetPosition:n,side:e?"left":"top"}),!0;h.scrollTo({[e?"left":"top"]:n,behavior:"smooth"})}return!0}const y=K().isSafari;return w&&!s&&y&&a.isElement&&a.virtual.update(!1,!1,i),a.setTransition(t),a.setTranslate(v),a.updateActiveIndex(i),a.updateSlidesClasses(),a.emit("beforeTransitionStart",t,r),a.transitionStart(n,b),0===t?a.transitionEnd(n,b):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(n,b))}),a.wrapperEl.addEventListener("transitionend",a.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,n,r){void 0===e&&(e=0),void 0===n&&(n=!0),"string"==typeof e&&(e=parseInt(e,10));const s=this;if(s.destroyed)return;void 0===t&&(t=s.params.speed);const a=s.grid&&s.params.grid&&s.params.grid.rows>1;let i=e;if(s.params.loop)if(s.virtual&&s.params.virtual.enabled)i+=s.virtual.slidesBefore;else{let e;if(a){const t=i*s.params.grid.rows;e=s.slides.find((e=>1*e.getAttribute("data-swiper-slide-index")===t)).column}else e=s.getSlideIndexByData(i);const t=a?Math.ceil(s.slides.length/s.params.grid.rows):s.slides.length,{centeredSlides:n}=s.params;let o=s.params.slidesPerView;"auto"===o?o=s.slidesPerViewDynamic():(o=Math.ceil(parseFloat(s.params.slidesPerView,10)),n&&o%2==0&&(o+=1));let l=t-e<o;if(n&&(l=l||e<Math.ceil(o/2)),r&&n&&"auto"!==s.params.slidesPerView&&!a&&(l=!1),l){const r=n?e<s.activeIndex?"prev":"next":e-s.activeIndex-1<s.params.slidesPerView?"next":"prev";s.loopFix({direction:r,slideTo:!0,activeSlideIndex:"next"===r?e+1:e-t+1,slideRealIndex:"next"===r?s.realIndex:void 0})}if(a){const e=i*s.params.grid.rows;i=s.slides.find((t=>1*t.getAttribute("data-swiper-slide-index")===e)).column}else i=s.getSlideIndexByData(i)}return requestAnimationFrame((()=>{s.slideTo(i,t,n,r)})),s},slideNext:function(e,t,n){void 0===t&&(t=!0);const r=this,{enabled:s,params:a,animating:i}=r;if(!s||r.destroyed)return r;void 0===e&&(e=r.params.speed);let o=a.slidesPerGroup;"auto"===a.slidesPerView&&1===a.slidesPerGroup&&a.slidesPerGroupAuto&&(o=Math.max(r.slidesPerViewDynamic("current",!0),1));const l=r.activeIndex<a.slidesPerGroupSkip?1:o,c=r.virtual&&a.virtual.enabled;if(a.loop){if(i&&!c&&a.loopPreventsSliding)return!1;if(r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft,r.activeIndex===r.slides.length-1&&a.cssMode)return requestAnimationFrame((()=>{r.slideTo(r.activeIndex+l,e,t,n)})),!0}return a.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+l,e,t,n)},slidePrev:function(e,t,n){void 0===t&&(t=!0);const r=this,{params:s,snapGrid:a,slidesGrid:i,rtlTranslate:o,enabled:l,animating:c}=r;if(!l||r.destroyed)return r;void 0===e&&(e=r.params.speed);const u=r.virtual&&s.virtual.enabled;if(s.loop){if(c&&!u&&s.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}function d(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const p=d(o?r.translate:-r.translate),h=a.map((e=>d(e))),f=s.freeMode&&s.freeMode.enabled;let m=a[h.indexOf(p)-1];if(void 0===m&&(s.cssMode||f)){let e;a.forEach(((t,n)=>{p>=t&&(e=n)})),void 0!==e&&(m=f?a[e]:a[e>0?e-1:e])}let g=0;if(void 0!==m&&(g=i.indexOf(m),g<0&&(g=r.activeIndex-1),"auto"===s.slidesPerView&&1===s.slidesPerGroup&&s.slidesPerGroupAuto&&(g=g-r.slidesPerViewDynamic("previous",!0)+1,g=Math.max(g,0))),s.rewind&&r.isBeginning){const s=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(s,e,t,n)}return s.loop&&0===r.activeIndex&&s.cssMode?(requestAnimationFrame((()=>{r.slideTo(g,e,t,n)})),!0):r.slideTo(g,e,t,n)},slideReset:function(e,t,n){void 0===t&&(t=!0);const r=this;if(!r.destroyed)return void 0===e&&(e=r.params.speed),r.slideTo(r.activeIndex,e,t,n)},slideToClosest:function(e,t,n,r){void 0===t&&(t=!0),void 0===r&&(r=.5);const s=this;if(s.destroyed)return;void 0===e&&(e=s.params.speed);let a=s.activeIndex;const i=Math.min(s.params.slidesPerGroupSkip,a),o=i+Math.floor((a-i)/s.params.slidesPerGroup),l=s.rtlTranslate?s.translate:-s.translate;if(l>=s.snapGrid[o]){const e=s.snapGrid[o];l-e>(s.snapGrid[o+1]-e)*r&&(a+=s.params.slidesPerGroup)}else{const e=s.snapGrid[o-1];l-e<=(s.snapGrid[o]-e)*r&&(a-=s.params.slidesPerGroup)}return a=Math.max(a,0),a=Math.min(a,s.slidesGrid.length-1),s.slideTo(a,e,t,n)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,r="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let s,a=e.clickedIndex;const i=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;s=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?a<e.loopedSlides-r/2||a>e.slides.length-e.loopedSlides+r/2?(e.loopFix(),a=e.getSlideIndex(O(n,`${i}[data-swiper-slide-index="${s}"]`)[0]),E((()=>{e.slideTo(a)}))):e.slideTo(a):a>e.slides.length-r?(e.loopFix(),a=e.getSlideIndex(O(n,`${i}[data-swiper-slide-index="${s}"]`)[0]),E((()=>{e.slideTo(a)}))):e.slideTo(a)}else e.slideTo(a)}},ie={loopCreate:function(e,t){const n=this,{params:r,slidesEl:s}=n;if(!r.loop||n.virtual&&n.params.virtual.enabled)return;const a=()=>{O(s,`.${r.slideClass}, swiper-slide`).forEach(((e,t)=>{e.setAttribute("data-swiper-slide-index",t)}))},i=n.grid&&r.grid&&r.grid.rows>1,o=r.slidesPerGroup*(i?r.grid.rows:1),l=n.slides.length%o!=0,c=i&&n.slides.length%r.grid.rows!=0,u=e=>{for(let t=0;t<e;t+=1){const e=n.isElement?D("swiper-slide",[r.slideBlankClass]):D("div",[r.slideClass,r.slideBlankClass]);n.slidesEl.append(e)}};l?(r.loopAddBlankSlides?(u(o-n.slides.length%o),n.recalcSlides(),n.updateSlides()):L("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)"),a()):c?(r.loopAddBlankSlides?(u(r.grid.rows-n.slides.length%r.grid.rows),n.recalcSlides(),n.updateSlides()):L("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)"),a()):a(),n.loopFix({slideRealIndex:e,direction:r.centeredSlides?void 0:"next",initial:t})},loopFix:function(e){let{slideRealIndex:t,slideTo:n=!0,direction:r,setTranslate:s,activeSlideIndex:a,initial:i,byController:o,byMousewheel:l}=void 0===e?{}:e;const c=this;if(!c.params.loop)return;c.emit("beforeLoopFix");const{slides:u,allowSlidePrev:d,allowSlideNext:p,slidesEl:h,params:f}=c,{centeredSlides:m,initialSlide:g}=f;if(c.allowSlidePrev=!0,c.allowSlideNext=!0,c.virtual&&f.virtual.enabled)return n&&(f.centeredSlides||0!==c.snapIndex?f.centeredSlides&&c.snapIndex<f.slidesPerView?c.slideTo(c.virtual.slides.length+c.snapIndex,0,!1,!0):c.snapIndex===c.snapGrid.length-1&&c.slideTo(c.virtual.slidesBefore,0,!1,!0):c.slideTo(c.virtual.slides.length,0,!1,!0)),c.allowSlidePrev=d,c.allowSlideNext=p,void c.emit("loopFix");let v=f.slidesPerView;"auto"===v?v=c.slidesPerViewDynamic():(v=Math.ceil(parseFloat(f.slidesPerView,10)),m&&v%2==0&&(v+=1));const b=f.slidesPerGroupAuto?v:f.slidesPerGroup;let w=b;w%b!=0&&(w+=b-w%b),w+=f.loopAdditionalSlides,c.loopedSlides=w;const y=c.grid&&f.grid&&f.grid.rows>1;u.length<v+w||"cards"===c.params.effect&&u.length<v+2*w?L("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):y&&"row"===f.grid.fill&&L("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const _=[],x=[],k=y?Math.ceil(u.length/f.grid.rows):u.length,S=i&&k-g<v&&!m;let E=S?g:c.activeIndex;void 0===a?a=c.getSlideIndex(u.find((e=>e.classList.contains(f.slideActiveClass)))):E=a;const j="next"===r||!r,C="prev"===r||!r;let T=0,M=0;const P=(y?u[a].column:a)+(m&&void 0===s?-v/2+.5:0);if(P<w){T=Math.max(w-P,b);for(let e=0;e<w-P;e+=1){const t=e-Math.floor(e/k)*k;if(y){const e=k-t-1;for(let t=u.length-1;t>=0;t-=1)u[t].column===e&&_.push(t)}else _.push(k-t-1)}}else if(P+v>k-w){M=Math.max(P-(k-2*w),b),S&&(M=Math.max(M,v-k+g+1));for(let e=0;e<M;e+=1){const t=e-Math.floor(e/k)*k;y?u.forEach(((e,n)=>{e.column===t&&x.push(n)})):x.push(t)}}if(c.__preventObserver__=!0,requestAnimationFrame((()=>{c.__preventObserver__=!1})),"cards"===c.params.effect&&u.length<v+2*w&&(x.includes(a)&&x.splice(x.indexOf(a),1),_.includes(a)&&_.splice(_.indexOf(a),1)),C&&_.forEach((e=>{u[e].swiperLoopMoveDOM=!0,h.prepend(u[e]),u[e].swiperLoopMoveDOM=!1})),j&&x.forEach((e=>{u[e].swiperLoopMoveDOM=!0,h.append(u[e]),u[e].swiperLoopMoveDOM=!1})),c.recalcSlides(),"auto"===f.slidesPerView?c.updateSlides():y&&(_.length>0&&C||x.length>0&&j)&&c.slides.forEach(((e,t)=>{c.grid.updateSlide(t,e,c.slides)})),f.watchSlidesProgress&&c.updateSlidesOffset(),n)if(_.length>0&&C){if(void 0===t){const e=c.slidesGrid[E],t=c.slidesGrid[E+T]-e;l?c.setTranslate(c.translate-t):(c.slideTo(E+Math.ceil(T),0,!1,!0),s&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-t,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-t))}else if(s){const e=y?_.length/f.grid.rows:_.length;c.slideTo(c.activeIndex+e,0,!1,!0),c.touchEventsData.currentTranslate=c.translate}}else if(x.length>0&&j)if(void 0===t){const e=c.slidesGrid[E],t=c.slidesGrid[E-M]-e;l?c.setTranslate(c.translate-t):(c.slideTo(E-M,0,!1,!0),s&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-t,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-t))}else{const e=y?x.length/f.grid.rows:x.length;c.slideTo(c.activeIndex-e,0,!1,!0)}if(c.allowSlidePrev=d,c.allowSlideNext=p,c.controller&&c.controller.control&&!o){const e={slideRealIndex:t,direction:r,setTranslate:s,activeSlideIndex:a,byController:!0};Array.isArray(c.controller.control)?c.controller.control.forEach((t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===f.slidesPerView&&n})})):c.controller.control instanceof c.constructor&&c.controller.control.params.loop&&c.controller.control.loopFix({...e,slideTo:c.controller.control.params.slidesPerView===f.slidesPerView&&n})}c.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||!n||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach((e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;r[t]=e})),e.slides.forEach((e=>{e.removeAttribute("data-swiper-slide-index")})),r.forEach((e=>{n.append(e)})),e.recalcSlides(),e.slideTo(e.realIndex,0)}};function oe(e,t,n){const r=k(),{params:s}=e,a=s.edgeSwipeDetection,i=s.edgeSwipeThreshold;return!a||!(n<=i||n>=r.innerWidth-i)||"prevent"===a&&(t.preventDefault(),!0)}function le(e){const t=this,n=_();let r=e;r.originalEvent&&(r=r.originalEvent);const s=t.touchEventsData;if("pointerdown"===r.type){if(null!==s.pointerId&&s.pointerId!==r.pointerId)return;s.pointerId=r.pointerId}else"touchstart"===r.type&&1===r.targetTouches.length&&(s.touchId=r.targetTouches[0].identifier);if("touchstart"===r.type)return void oe(t,r,r.targetTouches[0].pageX);const{params:a,touches:i,enabled:o}=t;if(!o)return;if(!a.simulateTouch&&"mouse"===r.pointerType)return;if(t.animating&&a.preventInteractionOnTransition)return;!t.animating&&a.cssMode&&a.loop&&t.loopFix();let l=r.target;if("wrapper"===a.touchEventsTarget&&!function(e,t){const n=k();let r=t.contains(e);return!r&&n.HTMLSlotElement&&t instanceof HTMLSlotElement&&(r=[...t.assignedElements()].includes(e),r||(r=function(e,t){const n=[t];for(;n.length>0;){const t=n.shift();if(e===t)return!0;n.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}}(e,t))),r}(l,t.wrapperEl))return;if("which"in r&&3===r.which)return;if("button"in r&&r.button>0)return;if(s.isTouched&&s.isMoved)return;const c=!!a.noSwipingClass&&""!==a.noSwipingClass,u=r.composedPath?r.composedPath():r.path;c&&r.target&&r.target.shadowRoot&&u&&(l=u[0]);const d=a.noSwipingSelector?a.noSwipingSelector:`.${a.noSwipingClass}`,p=!(!r.target||!r.target.shadowRoot);if(a.noSwiping&&(p?function(e,t){return void 0===t&&(t=this),function t(n){if(!n||n===_()||n===k())return null;n.assignedSlot&&(n=n.assignedSlot);const r=n.closest(e);return r||n.getRootNode?r||t(n.getRootNode().host):null}(t)}(d,l):l.closest(d)))return void(t.allowClick=!0);if(a.swipeHandler&&!l.closest(a.swipeHandler))return;i.currentX=r.pageX,i.currentY=r.pageY;const h=i.currentX,f=i.currentY;if(!oe(t,r,h))return;Object.assign(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),i.startX=h,i.startY=f,s.touchStartTime=j(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,a.threshold>0&&(s.allowThresholdMove=!1);let m=!0;l.matches(s.focusableElements)&&(m=!1,"SELECT"===l.nodeName&&(s.isTouched=!1)),n.activeElement&&n.activeElement.matches(s.focusableElements)&&n.activeElement!==l&&("mouse"===r.pointerType||"mouse"!==r.pointerType&&!l.matches(s.focusableElements))&&n.activeElement.blur();const g=m&&t.allowTouchMove&&a.touchStartPreventDefault;!a.touchStartForcePreventDefault&&!g||l.isContentEditable||r.preventDefault(),a.freeMode&&a.freeMode.enabled&&t.freeMode&&t.animating&&!a.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",r)}function ce(e){const t=_(),n=this,r=n.touchEventsData,{params:s,touches:a,rtlTranslate:i,enabled:o}=n;if(!o)return;if(!s.simulateTouch&&"mouse"===e.pointerType)return;let l,c=e;if(c.originalEvent&&(c=c.originalEvent),"pointermove"===c.type){if(null!==r.touchId)return;if(c.pointerId!==r.pointerId)return}if("touchmove"===c.type){if(l=[...c.changedTouches].find((e=>e.identifier===r.touchId)),!l||l.identifier!==r.touchId)return}else l=c;if(!r.isTouched)return void(r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",c));const u=l.pageX,d=l.pageY;if(c.preventedByNestedSwiper)return a.startX=u,void(a.startY=d);if(!n.allowTouchMove)return c.target.matches(r.focusableElements)||(n.allowClick=!1),void(r.isTouched&&(Object.assign(a,{startX:u,startY:d,currentX:u,currentY:d}),r.touchStartTime=j()));if(s.touchReleaseOnEdges&&!s.loop)if(n.isVertical()){if(d<a.startY&&n.translate<=n.maxTranslate()||d>a.startY&&n.translate>=n.minTranslate())return r.isTouched=!1,void(r.isMoved=!1)}else{if(i&&(u>a.startX&&-n.translate<=n.maxTranslate()||u<a.startX&&-n.translate>=n.minTranslate()))return;if(!i&&(u<a.startX&&n.translate<=n.maxTranslate()||u>a.startX&&n.translate>=n.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(r.focusableElements)&&t.activeElement!==c.target&&"mouse"!==c.pointerType&&t.activeElement.blur(),t.activeElement&&c.target===t.activeElement&&c.target.matches(r.focusableElements))return r.isMoved=!0,void(n.allowClick=!1);r.allowTouchCallbacks&&n.emit("touchMove",c),a.previousX=a.currentX,a.previousY=a.currentY,a.currentX=u,a.currentY=d;const p=a.currentX-a.startX,h=a.currentY-a.startY;if(n.params.threshold&&Math.sqrt(p**2+h**2)<n.params.threshold)return;if(void 0===r.isScrolling){let e;n.isHorizontal()&&a.currentY===a.startY||n.isVertical()&&a.currentX===a.startX?r.isScrolling=!1:p*p+h*h>=25&&(e=180*Math.atan2(Math.abs(h),Math.abs(p))/Math.PI,r.isScrolling=n.isHorizontal()?e>s.touchAngle:90-e>s.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",c),void 0===r.startMoving&&(a.currentX===a.startX&&a.currentY===a.startY||(r.startMoving=!0)),r.isScrolling||"touchmove"===c.type&&r.preventTouchMoveFromPointerMove)return void(r.isTouched=!1);if(!r.startMoving)return;n.allowClick=!1,!s.cssMode&&c.cancelable&&c.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&c.stopPropagation();let f=n.isHorizontal()?p:h,m=n.isHorizontal()?a.currentX-a.previousX:a.currentY-a.previousY;s.oneWayMovement&&(f=Math.abs(f)*(i?1:-1),m=Math.abs(m)*(i?1:-1)),a.diff=f,f*=s.touchRatio,i&&(f=-f,m=-m);const g=n.touchesDirection;n.swipeDirection=f>0?"prev":"next",n.touchesDirection=m>0?"prev":"next";const v=n.params.loop&&!s.cssMode,b="next"===n.touchesDirection&&n.allowSlideNext||"prev"===n.touchesDirection&&n.allowSlidePrev;if(!r.isMoved){if(v&&b&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(e)}r.allowMomentumBounce=!1,!s.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",c)}if((new Date).getTime(),!1!==s._loopSwapReset&&r.isMoved&&r.allowThresholdMove&&g!==n.touchesDirection&&v&&b&&Math.abs(f)>=1)return Object.assign(a,{startX:u,startY:d,currentX:u,currentY:d,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,void(r.startTranslate=r.currentTranslate);n.emit("sliderMove",c),r.isMoved=!0,r.currentTranslate=f+r.startTranslate;let w=!0,y=s.resistanceRatio;if(s.touchReleaseOnEdges&&(y=0),f>0?(v&&b&&r.allowThresholdMove&&r.currentTranslate>(s.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-("auto"!==s.slidesPerView&&n.slides.length-s.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(w=!1,s.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+f)**y))):f<0&&(v&&b&&r.allowThresholdMove&&r.currentTranslate<(s.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+("auto"!==s.slidesPerView&&n.slides.length-s.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-("auto"===s.slidesPerView?n.slidesPerViewDynamic():Math.ceil(parseFloat(s.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(w=!1,s.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-f)**y))),w&&(c.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),n.allowSlidePrev||n.allowSlideNext||(r.currentTranslate=r.startTranslate),s.threshold>0){if(!(Math.abs(f)>s.threshold||r.allowThresholdMove))return void(r.currentTranslate=r.startTranslate);if(!r.allowThresholdMove)return r.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,r.currentTranslate=r.startTranslate,void(a.diff=n.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY)}s.followFinger&&!s.cssMode&&((s.freeMode&&s.freeMode.enabled&&n.freeMode||s.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),s.freeMode&&s.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function ue(e){const t=this,n=t.touchEventsData;let r,s=e;if(s.originalEvent&&(s=s.originalEvent),"touchend"===s.type||"touchcancel"===s.type){if(r=[...s.changedTouches].find((e=>e.identifier===n.touchId)),!r||r.identifier!==n.touchId)return}else{if(null!==n.touchId)return;if(s.pointerId!==n.pointerId)return;r=s}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(s.type)&&(!["pointercancel","contextmenu"].includes(s.type)||!t.browser.isSafari&&!t.browser.isWebView))return;n.pointerId=null,n.touchId=null;const{params:a,touches:i,rtlTranslate:o,slidesGrid:l,enabled:c}=t;if(!c)return;if(!a.simulateTouch&&"mouse"===s.pointerType)return;if(n.allowTouchCallbacks&&t.emit("touchEnd",s),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&a.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);a.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const u=j(),d=u-n.touchStartTime;if(t.allowClick){const e=s.path||s.composedPath&&s.composedPath();t.updateClickedSlide(e&&e[0]||s.target,e),t.emit("tap click",s),d<300&&u-n.lastClickTime<300&&t.emit("doubleTap doubleClick",s)}if(n.lastClickTime=j(),E((()=>{t.destroyed||(t.allowClick=!0)})),!n.isTouched||!n.isMoved||!t.swipeDirection||0===i.diff&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let p;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,p=a.followFinger?o?t.translate:-t.translate:-n.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:p});const h=p>=-t.maxTranslate()&&!t.params.loop;let f=0,m=t.slidesSizesGrid[0];for(let e=0;e<l.length;e+=e<a.slidesPerGroupSkip?1:a.slidesPerGroup){const t=e<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;void 0!==l[e+t]?(h||p>=l[e]&&p<l[e+t])&&(f=e,m=l[e+t]-l[e]):(h||p>=l[e])&&(f=e,m=l[l.length-1]-l[l.length-2])}let g=null,v=null;a.rewind&&(t.isBeginning?v=a.virtual&&a.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(g=0));const b=(p-l[f])/m,w=f<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(d>a.longSwipesMs){if(!a.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(b>=a.longSwipesRatio?t.slideTo(a.rewind&&t.isEnd?g:f+w):t.slideTo(f)),"prev"===t.swipeDirection&&(b>1-a.longSwipesRatio?t.slideTo(f+w):null!==v&&b<0&&Math.abs(b)>a.longSwipesRatio?t.slideTo(v):t.slideTo(f))}else{if(!a.shortSwipes)return void t.slideTo(t.activeIndex);!t.navigation||s.target!==t.navigation.nextEl&&s.target!==t.navigation.prevEl?("next"===t.swipeDirection&&t.slideTo(null!==g?g:f+w),"prev"===t.swipeDirection&&t.slideTo(null!==v?v:f)):s.target===t.navigation.nextEl?t.slideTo(f+w):t.slideTo(f)}}function de(){const e=this,{params:t,el:n}=e;if(n&&0===n.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:s,snapGrid:a}=e,i=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const o=i&&t.loop;!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||o?e.params.loop&&!i?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout((()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()}),500)),e.allowSlidePrev=s,e.allowSlideNext=r,e.params.watchOverflow&&a!==e.snapGrid&&e.checkOverflow()}function pe(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function he(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;let s;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const a=e.maxTranslate()-e.minTranslate();s=0===a?0:(e.translate-e.minTranslate())/a,s!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function fe(e){const t=this;ee(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update()}function me(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const ge=(e,t)=>{const n=_(),{params:r,el:s,wrapperEl:a,device:i}=e,o=!!r.nested,l="on"===t?"addEventListener":"removeEventListener",c=t;s&&"string"!=typeof s&&(n[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:o}),s[l]("touchstart",e.onTouchStart,{passive:!1}),s[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("touchmove",e.onTouchMove,{passive:!1,capture:o}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:o}),n[l]("touchend",e.onTouchEnd,{passive:!0}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("touchcancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),n[l]("contextmenu",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&s[l]("click",e.onClick,!0),r.cssMode&&a[l]("scroll",e.onScroll),r.updateOnWindowResize?e[c](i.ios||i.android?"resize orientationchange observerUpdate":"resize observerUpdate",de,!0):e[c]("observerUpdate",de,!0),s[l]("load",e.onLoad,{capture:!0}))},ve=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var be={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function we(e,t){return function(n){void 0===n&&(n={});const r=Object.keys(n)[0],s=n[r];"object"==typeof s&&null!==s?(!0===e[r]&&(e[r]={enabled:!0}),"navigation"===r&&e[r]&&e[r].enabled&&!e[r].prevEl&&!e[r].nextEl&&(e[r].auto=!0),["pagination","scrollbar"].indexOf(r)>=0&&e[r]&&e[r].enabled&&!e[r].el&&(e[r].auto=!0),r in e&&"enabled"in s?("object"!=typeof e[r]||"enabled"in e[r]||(e[r].enabled=!0),e[r]||(e[r]={enabled:!1}),M(t,n)):M(t,n)):M(t,n)}}const ye={eventsEmitter:J,update:re,translate:{getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");const{params:t,rtlTranslate:n,translate:r,wrapperEl:s}=this;if(t.virtualTranslate)return n?-r:r;if(t.cssMode)return r;let a=C(s,e);return a+=this.cssOverflowAdjustment(),n&&(a=-a),a||0},setTranslate:function(e,t){const n=this,{rtlTranslate:r,params:s,wrapperEl:a,progress:i}=n;let o,l=0,c=0;n.isHorizontal()?l=r?-e:e:c=e,s.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:c,s.cssMode?a[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-c:s.virtualTranslate||(n.isHorizontal()?l-=n.cssOverflowAdjustment():c-=n.cssOverflowAdjustment(),a.style.transform=`translate3d(${l}px, ${c}px, 0px)`);const u=n.maxTranslate()-n.minTranslate();o=0===u?0:(e-n.minTranslate())/u,o!==i&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,n,r,s){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0),void 0===r&&(r=!0);const a=this,{params:i,wrapperEl:o}=a;if(a.animating&&i.preventInteractionOnTransition)return!1;const l=a.minTranslate(),c=a.maxTranslate();let u;if(u=r&&e>l?l:r&&e<c?c:e,a.updateProgress(u),i.cssMode){const e=a.isHorizontal();if(0===t)o[e?"scrollLeft":"scrollTop"]=-u;else{if(!a.support.smoothScroll)return A({swiper:a,targetPosition:-u,side:e?"left":"top"}),!0;o.scrollTo({[e?"left":"top"]:-u,behavior:"smooth"})}return!0}return 0===t?(a.setTransition(0),a.setTranslate(u),n&&(a.emit("beforeTransitionStart",t,s),a.emit("transitionEnd"))):(a.setTransition(t),a.setTranslate(u),n&&(a.emit("beforeTransitionStart",t,s),a.emit("transitionStart")),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||(a.onTranslateToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,a.animating=!1,n&&a.emit("transitionEnd"))}),a.wrapperEl.addEventListener("transitionend",a.onTranslateToWrapperTransitionEnd))),!0}},transition:{setTransition:function(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`,n.wrapperEl.style.transitionDelay=0===e?"0ms":""),n.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),se({swiper:n,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);const n=this,{params:r}=n;n.animating=!1,r.cssMode||(n.setTransition(0),se({swiper:n,runCallbacks:e,direction:t,step:"End"}))}},slide:ae,loop:ie,grabCursor:{setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame((()=>{t.__preventObserver__=!1}))},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame((()=>{e.__preventObserver__=!1})))}},events:{attachEvents:function(){const e=this,{params:t}=e;e.onTouchStart=le.bind(e),e.onTouchMove=ce.bind(e),e.onTouchEnd=ue.bind(e),e.onDocumentTouchStart=me.bind(e),t.cssMode&&(e.onScroll=he.bind(e)),e.onClick=pe.bind(e),e.onLoad=fe.bind(e),ge(e,"on")},detachEvents:function(){ge(this,"off")}},breakpoints:{setBreakpoint:function(){const e=this,{realIndex:t,initialized:n,params:r,el:s}=e,a=r.breakpoints;if(!a||a&&0===Object.keys(a).length)return;const i=_(),o="window"!==r.breakpointsBase&&r.breakpointsBase?"container":r.breakpointsBase,l=["window","container"].includes(r.breakpointsBase)||!r.breakpointsBase?e.el:i.querySelector(r.breakpointsBase),c=e.getBreakpoint(a,o,l);if(!c||e.currentBreakpoint===c)return;const u=(c in a?a[c]:void 0)||e.originalParams,d=ve(e,r),p=ve(e,u),h=e.params.grabCursor,f=u.grabCursor,m=r.enabled;d&&!p?(s.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!d&&p&&(s.classList.add(`${r.containerModifierClass}grid`),(u.grid.fill&&"column"===u.grid.fill||!u.grid.fill&&"column"===r.grid.fill)&&s.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),h&&!f?e.unsetGrabCursor():!h&&f&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach((t=>{if(void 0===u[t])return;const n=r[t]&&r[t].enabled,s=u[t]&&u[t].enabled;n&&!s&&e[t].disable(),!n&&s&&e[t].enable()}));const g=u.direction&&u.direction!==r.direction,v=r.loop&&(u.slidesPerView!==r.slidesPerView||g),b=r.loop;g&&n&&e.changeDirection(),M(e.params,u);const w=e.params.enabled,y=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),m&&!w?e.disable():!m&&w&&e.enable(),e.currentBreakpoint=c,e.emit("_beforeBreakpoint",u),n&&(v?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!b&&y?(e.loopCreate(t),e.updateSlides()):b&&!y&&e.loopDestroy()),e.emit("breakpoint",u)},getBreakpoint:function(e,t,n){if(void 0===t&&(t="window"),!e||"container"===t&&!n)return;let r=!1;const s=k(),a="window"===t?s.innerHeight:n.clientHeight,i=Object.keys(e).map((e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:a*t,point:e}}return{value:e,point:e}}));i.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let e=0;e<i.length;e+=1){const{point:a,value:o}=i[e];"window"===t?s.matchMedia(`(min-width: ${o}px)`).matches&&(r=a):o<=n.clientWidth&&(r=a)}return r||"max"}},checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const t=e.slides.length-1,n=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*r;e.isLocked=e.size>n}else e.isLocked=1===e.snapGrid.length;!0===n.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===n.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const e=this,{classNames:t,params:n,rtl:r,el:s,device:a}=e,i=function(e,t){const n=[];return e.forEach((e=>{"object"==typeof e?Object.keys(e).forEach((r=>{e[r]&&n.push(t+r)})):"string"==typeof e&&n.push(t+e)})),n}(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&"column"===n.grid.fill},{android:a.android},{ios:a.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...i),s.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}}},_e={};class xe{constructor(){let e,t;for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];1===r.length&&r[0].constructor&&"Object"===Object.prototype.toString.call(r[0]).slice(8,-1)?t=r[0]:[e,t]=r,t||(t={}),t=M({},t),e&&!t.el&&(t.el=e);const a=_();if(t.el&&"string"==typeof t.el&&a.querySelectorAll(t.el).length>1){const e=[];return a.querySelectorAll(t.el).forEach((n=>{const r=M({},t,{el:n});e.push(new xe(r))})),e}const i=this;i.__swiper__=!0,i.support=Y(),i.device=X({userAgent:t.userAgent}),i.browser=K(),i.eventsListeners={},i.eventsAnyListeners=[],i.modules=[...i.__modules__],t.modules&&Array.isArray(t.modules)&&i.modules.push(...t.modules);const o={};i.modules.forEach((e=>{e({params:t,swiper:i,extendParams:we(t,o),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i),emit:i.emit.bind(i)})}));const l=M({},be,o);return i.params=M({},l,_e,t),i.originalParams=M({},i.params),i.passedParams=M({},t),i.params&&i.params.on&&Object.keys(i.params.on).forEach((e=>{i.on(e,i.params.on[e])})),i.params&&i.params.onAny&&i.onAny(i.params.onAny),Object.assign(i,{enabled:i.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===i.params.direction,isVertical:()=>"vertical"===i.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:i.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.emit("_swiper"),i.params.init&&i.init(),i}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:t,params:n}=this,r=R(O(t,`.${n.slideClass}, swiper-slide`)[0]);return R(e)-r}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find((t=>1*t.getAttribute("data-swiper-slide-index")===e)))}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=O(e,`.${t.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const n=this;e=Math.min(Math.max(e,0),1);const r=n.minTranslate(),s=(n.maxTranslate()-r)*e+r;n.translateTo(s,void 0===t?0:t),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter((t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter((e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass))).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach((n=>{const r=e.getSlideClasses(n);t.push({slideEl:n,classNames:r}),e.emit("_slideClass",n,r)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:n,slides:r,slidesGrid:s,slidesSizesGrid:a,size:i,activeIndex:o}=this;let l=1;if("number"==typeof n.slidesPerView)return n.slidesPerView;if(n.centeredSlides){let e,t=r[o]?Math.ceil(r[o].swiperSlideSize):0;for(let n=o+1;n<r.length;n+=1)r[n]&&!e&&(t+=Math.ceil(r[n].swiperSlideSize),l+=1,t>i&&(e=!0));for(let n=o-1;n>=0;n-=1)r[n]&&!e&&(t+=r[n].swiperSlideSize,l+=1,t>i&&(e=!0))}else if("current"===e)for(let e=o+1;e<r.length;e+=1)(t?s[e]+a[e]-s[o]<i:s[e]-s[o]<i)&&(l+=1);else for(let e=o-1;e>=0;e-=1)s[o]-s[e]<i&&(l+=1);return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:n}=e;function r(){const t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}let s;if(n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach((t=>{t.complete&&ee(e,t)})),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),n.freeMode&&n.freeMode.enabled&&!n.cssMode)r(),n.autoHeight&&e.updateAutoHeight();else{if(("auto"===n.slidesPerView||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const t=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;s=e.slideTo(t.length-1,0,!1,!0)}else s=e.slideTo(e.activeIndex,0,!1,!0);s||r()}n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const n=this,r=n.params.direction;return e||(e="horizontal"===r?"vertical":"horizontal"),e===r||"horizontal"!==e&&"vertical"!==e||(n.el.classList.remove(`${n.params.containerModifierClass}${r}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach((t=>{"vertical"===e?t.style.width="":t.style.height=""})),n.emit("changeDirection"),t&&n.update()),n}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let n=e||t.params.el;if("string"==typeof n&&(n=document.querySelector(n)),!n)return!1;n.swiper=t,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const r=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(r()):O(n,r())[0];return!s&&t.params.createElements&&(s=D("div",t.params.wrapperClass),n.append(s),O(n,`.${t.params.slideClass}`).forEach((e=>{s.append(e)}))),Object.assign(t,{el:n,wrapperEl:s,slidesEl:t.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:s,hostEl:t.isElement?n.parentNode.host:n,mounted:!0,rtl:"rtl"===n.dir.toLowerCase()||"rtl"===N(n,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===n.dir.toLowerCase()||"rtl"===N(n,"direction")),wrongRTL:"-webkit-box"===N(s,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(void 0,!0),t.attachEvents();const n=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&n.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach((e=>{e.complete?ee(t,e):e.addEventListener("load",(e=>{ee(t,e.target)}))})),ne(t),t.initialized=!0,ne(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const n=this,{params:r,el:s,wrapperEl:a,slides:i}=n;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),t&&(n.removeClasses(),s&&"string"!=typeof s&&s.removeAttribute("style"),a&&a.removeAttribute("style"),i&&i.length&&i.forEach((e=>{e.classList.remove(r.slideVisibleClass,r.slideFullyVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")}))),n.emit("destroy"),Object.keys(n.eventsListeners).forEach((e=>{n.off(e)})),!1!==e&&(n.el&&"string"!=typeof n.el&&(n.el.swiper=null),function(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}(n)),n.destroyed=!0),null}static extendDefaults(e){M(_e,e)}static get extendedDefaults(){return _e}static get defaults(){return be}static installModule(e){xe.prototype.__modules__||(xe.prototype.__modules__=[]);const t=xe.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach((e=>xe.installModule(e))),xe):(xe.installModule(e),xe)}}function ke(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach((s=>{if(!n[s]&&!0===n.auto){let a=O(e.el,`.${r[s]}`)[0];a||(a=D("div",r[s]),a.className=r[s],e.el.append(a)),n[s]=a,t[s]=a}})),n}function Se(e){return void 0===e&&(e=""),`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Ee(e){const t=this,{params:n,slidesEl:r}=t;n.loop&&t.loopDestroy();const s=e=>{if("string"==typeof e){const t=document.createElement("div");V(t,e),r.append(t.children[0]),V(t,"")}else r.append(e)};if("object"==typeof e&&"length"in e)for(let t=0;t<e.length;t+=1)e[t]&&s(e[t]);else s(e);t.recalcSlides(),n.loop&&t.loopCreate(),n.observer&&!t.isElement||t.update()}function je(e){const t=this,{params:n,activeIndex:r,slidesEl:s}=t;n.loop&&t.loopDestroy();let a=r+1;const i=e=>{if("string"==typeof e){const t=document.createElement("div");V(t,e),s.prepend(t.children[0]),V(t,"")}else s.prepend(e)};if("object"==typeof e&&"length"in e){for(let t=0;t<e.length;t+=1)e[t]&&i(e[t]);a=r+e.length}else i(e);t.recalcSlides(),n.loop&&t.loopCreate(),n.observer&&!t.isElement||t.update(),t.slideTo(a,0,!1)}function Ce(e,t){const n=this,{params:r,activeIndex:s,slidesEl:a}=n;let i=s;r.loop&&(i-=n.loopedSlides,n.loopDestroy(),n.recalcSlides());const o=n.slides.length;if(e<=0)return void n.prependSlide(t);if(e>=o)return void n.appendSlide(t);let l=i>e?i+1:i;const c=[];for(let t=o-1;t>=e;t-=1){const e=n.slides[t];e.remove(),c.unshift(e)}if("object"==typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)t[e]&&a.append(t[e]);l=i>e?i+t.length:i}else a.append(t);for(let e=0;e<c.length;e+=1)a.append(c[e]);n.recalcSlides(),r.loop&&n.loopCreate(),r.observer&&!n.isElement||n.update(),r.loop?n.slideTo(l+n.loopedSlides,0,!1):n.slideTo(l,0,!1)}function Te(e){const t=this,{params:n,activeIndex:r}=t;let s=r;n.loop&&(s-=t.loopedSlides,t.loopDestroy());let a,i=s;if("object"==typeof e&&"length"in e){for(let n=0;n<e.length;n+=1)a=e[n],t.slides[a]&&t.slides[a].remove(),a<i&&(i-=1);i=Math.max(i,0)}else a=e,t.slides[a]&&t.slides[a].remove(),a<i&&(i-=1),i=Math.max(i,0);t.recalcSlides(),n.loop&&t.loopCreate(),n.observer&&!t.isElement||t.update(),n.loop?t.slideTo(i+t.loopedSlides,0,!1):t.slideTo(i,0,!1)}function Me(){const e=this,t=[];for(let n=0;n<e.slides.length;n+=1)t.push(n);e.removeSlide(t)}function Pe(e){const{effect:t,swiper:n,on:r,setTranslate:s,setTransition:a,overwriteParams:i,perspective:o,recreateShadows:l,getEffectParams:c}=e;let u;r("beforeInit",(()=>{if(n.params.effect!==t)return;n.classNames.push(`${n.params.containerModifierClass}${t}`),o&&o()&&n.classNames.push(`${n.params.containerModifierClass}3d`);const e=i?i():{};Object.assign(n.params,e),Object.assign(n.originalParams,e)})),r("setTranslate _virtualUpdated",(()=>{n.params.effect===t&&s()})),r("setTransition",((e,r)=>{n.params.effect===t&&a(r)})),r("transitionEnd",(()=>{if(n.params.effect===t&&l){if(!c||!c().slideShadows)return;n.slides.forEach((e=>{e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((e=>e.remove()))})),l()}})),r("virtualUpdate",(()=>{n.params.effect===t&&(n.slides.length||(u=!0),requestAnimationFrame((()=>{u&&n.slides&&n.slides.length&&(s(),u=!1)})))}))}function Ae(e,t){const n=I(t);return n!==t&&(n.style.backfaceVisibility="hidden",n.style["-webkit-backface-visibility"]="hidden"),n}function Ie(e){let{swiper:t,duration:n,transformElements:r,allSlides:s}=e;const{activeIndex:a}=t;if(t.params.virtualTranslate&&0!==n){let e,n=!1;e=s?r:r.filter((e=>{const n=e.classList.contains("swiper-slide-transform")?(e=>e.parentElement?e.parentElement:t.slides.find((t=>t.shadowRoot&&t.shadowRoot===e.parentNode)))(e):e;return t.getSlideIndex(n)===a})),e.forEach((e=>{$(e,(()=>{if(n)return;if(!t||t.destroyed)return;n=!0,t.animating=!1;const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});t.wrapperEl.dispatchEvent(e)}))}))}}function Oe(e,t,n){const r=`swiper-slide-shadow${n?`-${n}`:""}${e?` swiper-slide-shadow-${e}`:""}`,s=I(t);let a=s.querySelector(`.${r.split(" ").join(".")}`);return a||(a=D("div",r.split(" ")),s.append(a)),a}Object.keys(ye).forEach((e=>{Object.keys(ye[e]).forEach((t=>{xe.prototype[t]=ye[e][t]}))})),xe.use([function(e){let{swiper:t,on:n,emit:r}=e;const s=k();let a=null,i=null;const o=()=>{t&&!t.destroyed&&t.initialized&&(r("beforeResize"),r("resize"))},l=()=>{t&&!t.destroyed&&t.initialized&&r("orientationchange")};n("init",(()=>{t.params.resizeObserver&&void 0!==s.ResizeObserver?t&&!t.destroyed&&t.initialized&&(a=new ResizeObserver((e=>{i=s.requestAnimationFrame((()=>{const{width:n,height:r}=t;let s=n,a=r;e.forEach((e=>{let{contentBoxSize:n,contentRect:r,target:i}=e;i&&i!==t.el||(s=r?r.width:(n[0]||n).inlineSize,a=r?r.height:(n[0]||n).blockSize)})),s===n&&a===r||o()}))})),a.observe(t.el)):(s.addEventListener("resize",o),s.addEventListener("orientationchange",l))})),n("destroy",(()=>{i&&s.cancelAnimationFrame(i),a&&a.unobserve&&t.el&&(a.unobserve(t.el),a=null),s.removeEventListener("resize",o),s.removeEventListener("orientationchange",l)}))},function(e){let{swiper:t,extendParams:n,on:r,emit:s}=e;const a=[],i=k(),o=function(e,n){void 0===n&&(n={});const r=new(i.MutationObserver||i.WebkitMutationObserver)((e=>{if(t.__preventObserver__)return;if(1===e.length)return void s("observerUpdate",e[0]);const n=function(){s("observerUpdate",e[0])};i.requestAnimationFrame?i.requestAnimationFrame(n):i.setTimeout(n,0)}));r.observe(e,{attributes:void 0===n.attributes||n.attributes,childList:t.isElement||(void 0===n.childList||n).childList,characterData:void 0===n.characterData||n.characterData}),a.push(r)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",(()=>{if(t.params.observer){if(t.params.observeParents){const e=B(t.hostEl);for(let t=0;t<e.length;t+=1)o(e[t])}o(t.hostEl,{childList:t.params.observeSlideChildren}),o(t.wrapperEl,{attributes:!1})}})),r("destroy",(()=>{a.forEach((e=>{e.disconnect()})),a.splice(0,a.length)}))}]);const Le=[function(e){let t,{swiper:n,extendParams:r,on:s,emit:a}=e;r({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});const i=_();n.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const o=i.createElement("div");function l(e,t){const r=n.params.virtual;if(r.cache&&n.virtual.cache[t])return n.virtual.cache[t];let s;return r.renderSlide?(s=r.renderSlide.call(n,e,t),"string"==typeof s&&(V(o,s),s=o.children[0])):s=n.isElement?D("swiper-slide"):D("div",n.params.slideClass),s.setAttribute("data-swiper-slide-index",t),r.renderSlide||V(s,e),r.cache&&(n.virtual.cache[t]=s),s}function c(e,t,r){const{slidesPerView:s,slidesPerGroup:i,centeredSlides:o,loop:c,initialSlide:u}=n.params;if(t&&!c&&u>0)return;const{addSlidesBefore:d,addSlidesAfter:p}=n.params.virtual,{from:h,to:f,slides:m,slidesGrid:g,offset:v}=n.virtual;n.params.cssMode||n.updateActiveIndex();const b=void 0===r?n.activeIndex||0:r;let w,y,_;w=n.rtlTranslate?"right":n.isHorizontal()?"left":"top",o?(y=Math.floor(s/2)+i+p,_=Math.floor(s/2)+i+d):(y=s+(i-1)+p,_=(c?s:i)+d);let x=b-_,k=b+y;c||(x=Math.max(x,0),k=Math.min(k,m.length-1));let S=(n.slidesGrid[x]||0)-(n.slidesGrid[0]||0);function E(){n.updateSlides(),n.updateProgress(),n.updateSlidesClasses(),a("virtualUpdate")}if(c&&b>=_?(x-=_,o||(S+=n.slidesGrid[0])):c&&b<_&&(x=-_,o&&(S+=n.slidesGrid[0])),Object.assign(n.virtual,{from:x,to:k,offset:S,slidesGrid:n.slidesGrid,slidesBefore:_,slidesAfter:y}),h===x&&f===k&&!e)return n.slidesGrid!==g&&S!==v&&n.slides.forEach((e=>{e.style[w]=S-Math.abs(n.cssOverflowAdjustment())+"px"})),n.updateProgress(),void a("virtualUpdate");if(n.params.virtual.renderExternal)return n.params.virtual.renderExternal.call(n,{offset:S,from:x,to:k,slides:function(){const e=[];for(let t=x;t<=k;t+=1)e.push(m[t]);return e}()}),void(n.params.virtual.renderExternalUpdate?E():a("virtualUpdate"));const j=[],C=[],T=e=>{let t=e;return e<0?t=m.length+e:t>=m.length&&(t-=m.length),t};if(e)n.slides.filter((e=>e.matches(`.${n.params.slideClass}, swiper-slide`))).forEach((e=>{e.remove()}));else for(let e=h;e<=f;e+=1)if(e<x||e>k){const t=T(e);n.slides.filter((e=>e.matches(`.${n.params.slideClass}[data-swiper-slide-index="${t}"], swiper-slide[data-swiper-slide-index="${t}"]`))).forEach((e=>{e.remove()}))}const M=c?-m.length:0,P=c?2*m.length:m.length;for(let t=M;t<P;t+=1)if(t>=x&&t<=k){const n=T(t);void 0===f||e?C.push(n):(t>f&&C.push(n),t<h&&j.push(n))}if(C.forEach((e=>{n.slidesEl.append(l(m[e],e))})),c)for(let e=j.length-1;e>=0;e-=1){const t=j[e];n.slidesEl.prepend(l(m[t],t))}else j.sort(((e,t)=>t-e)),j.forEach((e=>{n.slidesEl.prepend(l(m[e],e))}));O(n.slidesEl,".swiper-slide, swiper-slide").forEach((e=>{e.style[w]=S-Math.abs(n.cssOverflowAdjustment())+"px"})),E()}s("beforeInit",(()=>{if(!n.params.virtual.enabled)return;let e;if(void 0===n.passedParams.virtual.slides){const t=[...n.slidesEl.children].filter((e=>e.matches(`.${n.params.slideClass}, swiper-slide`)));t&&t.length&&(n.virtual.slides=[...t],e=!0,t.forEach(((e,t)=>{e.setAttribute("data-swiper-slide-index",t),n.virtual.cache[t]=e,e.remove()})))}e||(n.virtual.slides=n.params.virtual.slides),n.classNames.push(`${n.params.containerModifierClass}virtual`),n.params.watchSlidesProgress=!0,n.originalParams.watchSlidesProgress=!0,c(!1,!0)})),s("setTranslate",(()=>{n.params.virtual.enabled&&(n.params.cssMode&&!n._immediateVirtual?(clearTimeout(t),t=setTimeout((()=>{c()}),100)):c())})),s("init update resize",(()=>{n.params.virtual.enabled&&n.params.cssMode&&P(n.wrapperEl,"--swiper-virtual-size",`${n.virtualSize}px`)})),Object.assign(n.virtual,{appendSlide:function(e){if("object"==typeof e&&"length"in e)for(let t=0;t<e.length;t+=1)e[t]&&n.virtual.slides.push(e[t]);else n.virtual.slides.push(e);c(!0)},prependSlide:function(e){const t=n.activeIndex;let r=t+1,s=1;if(Array.isArray(e)){for(let t=0;t<e.length;t+=1)e[t]&&n.virtual.slides.unshift(e[t]);r=t+e.length,s=e.length}else n.virtual.slides.unshift(e);if(n.params.virtual.cache){const e=n.virtual.cache,t={};Object.keys(e).forEach((n=>{const r=e[n],a=r.getAttribute("data-swiper-slide-index");a&&r.setAttribute("data-swiper-slide-index",parseInt(a,10)+s),t[parseInt(n,10)+s]=r})),n.virtual.cache=t}c(!0),n.slideTo(r,0)},removeSlide:function(e){if(null==e)return;let t=n.activeIndex;if(Array.isArray(e))for(let r=e.length-1;r>=0;r-=1)n.params.virtual.cache&&(delete n.virtual.cache[e[r]],Object.keys(n.virtual.cache).forEach((t=>{t>e&&(n.virtual.cache[t-1]=n.virtual.cache[t],n.virtual.cache[t-1].setAttribute("data-swiper-slide-index",t-1),delete n.virtual.cache[t])}))),n.virtual.slides.splice(e[r],1),e[r]<t&&(t-=1),t=Math.max(t,0);else n.params.virtual.cache&&(delete n.virtual.cache[e],Object.keys(n.virtual.cache).forEach((t=>{t>e&&(n.virtual.cache[t-1]=n.virtual.cache[t],n.virtual.cache[t-1].setAttribute("data-swiper-slide-index",t-1),delete n.virtual.cache[t])}))),n.virtual.slides.splice(e,1),e<t&&(t-=1),t=Math.max(t,0);c(!0),n.slideTo(t,0)},removeAllSlides:function(){n.virtual.slides=[],n.params.virtual.cache&&(n.virtual.cache={}),c(!0),n.slideTo(0,0)},update:c})},function(e){let{swiper:t,extendParams:n,on:r,emit:s}=e;const a=_(),i=k();function o(e){if(!t.enabled)return;const{rtlTranslate:n}=t;let r=e;r.originalEvent&&(r=r.originalEvent);const o=r.keyCode||r.charCode,l=t.params.keyboard.pageUpDown,c=l&&33===o,u=l&&34===o,d=37===o,p=39===o,h=38===o,f=40===o;if(!t.allowSlideNext&&(t.isHorizontal()&&p||t.isVertical()&&f||u))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&d||t.isVertical()&&h||c))return!1;if(!(r.shiftKey||r.altKey||r.ctrlKey||r.metaKey||a.activeElement&&a.activeElement.nodeName&&("input"===a.activeElement.nodeName.toLowerCase()||"textarea"===a.activeElement.nodeName.toLowerCase()))){if(t.params.keyboard.onlyInViewport&&(c||u||d||p||h||f)){let e=!1;if(B(t.el,`.${t.params.slideClass}, swiper-slide`).length>0&&0===B(t.el,`.${t.params.slideActiveClass}`).length)return;const r=t.el,s=r.clientWidth,a=r.clientHeight,o=i.innerWidth,l=i.innerHeight,c=z(r);n&&(c.left-=r.scrollLeft);const u=[[c.left,c.top],[c.left+s,c.top],[c.left,c.top+a],[c.left+s,c.top+a]];for(let t=0;t<u.length;t+=1){const n=u[t];if(n[0]>=0&&n[0]<=o&&n[1]>=0&&n[1]<=l){if(0===n[0]&&0===n[1])continue;e=!0}}if(!e)return}t.isHorizontal()?((c||u||d||p)&&(r.preventDefault?r.preventDefault():r.returnValue=!1),((u||p)&&!n||(c||d)&&n)&&t.slideNext(),((c||d)&&!n||(u||p)&&n)&&t.slidePrev()):((c||u||h||f)&&(r.preventDefault?r.preventDefault():r.returnValue=!1),(u||f)&&t.slideNext(),(c||h)&&t.slidePrev()),s("keyPress",o)}}function l(){t.keyboard.enabled||(a.addEventListener("keydown",o),t.keyboard.enabled=!0)}function c(){t.keyboard.enabled&&(a.removeEventListener("keydown",o),t.keyboard.enabled=!1)}t.keyboard={enabled:!1},n({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),r("init",(()=>{t.params.keyboard.enabled&&l()})),r("destroy",(()=>{t.keyboard.enabled&&c()})),Object.assign(t.keyboard,{enable:l,disable:c})},function(e){let{swiper:t,extendParams:n,on:r,emit:s}=e;const a=k();let i;n({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),t.mousewheel={enabled:!1};let o,l=j();const c=[];function u(){t.enabled&&(t.mouseEntered=!0)}function d(){t.enabled&&(t.mouseEntered=!1)}function p(e){return!(t.params.mousewheel.thresholdDelta&&e.delta<t.params.mousewheel.thresholdDelta||t.params.mousewheel.thresholdTime&&j()-l<t.params.mousewheel.thresholdTime||!(e.delta>=6&&j()-l<60)&&(e.direction<0?t.isEnd&&!t.params.loop||t.animating||(t.slideNext(),s("scroll",e.raw)):t.isBeginning&&!t.params.loop||t.animating||(t.slidePrev(),s("scroll",e.raw)),l=(new a.Date).getTime(),1))}function h(e){let n=e,r=!0;if(!t.enabled)return;if(e.target.closest(`.${t.params.mousewheel.noMousewheelClass}`))return;const a=t.params.mousewheel;t.params.cssMode&&n.preventDefault();let l=t.el;"container"!==t.params.mousewheel.eventsTarget&&(l=document.querySelector(t.params.mousewheel.eventsTarget));const u=l&&l.contains(n.target);if(!t.mouseEntered&&!u&&!a.releaseOnEdges)return!0;n.originalEvent&&(n=n.originalEvent);let d=0;const h=t.rtlTranslate?-1:1,f=function(e){let t=0,n=0,r=0,s=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=10*t,s=10*n,"deltaY"in e&&(s=e.deltaY),"deltaX"in e&&(r=e.deltaX),e.shiftKey&&!r&&(r=s,s=0),(r||s)&&e.deltaMode&&(1===e.deltaMode?(r*=40,s*=40):(r*=800,s*=800)),r&&!t&&(t=r<1?-1:1),s&&!n&&(n=s<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:s}}(n);if(a.forceToAxis)if(t.isHorizontal()){if(!(Math.abs(f.pixelX)>Math.abs(f.pixelY)))return!0;d=-f.pixelX*h}else{if(!(Math.abs(f.pixelY)>Math.abs(f.pixelX)))return!0;d=-f.pixelY}else d=Math.abs(f.pixelX)>Math.abs(f.pixelY)?-f.pixelX*h:-f.pixelY;if(0===d)return!0;a.invert&&(d=-d);let m=t.getTranslate()+d*a.sensitivity;if(m>=t.minTranslate()&&(m=t.minTranslate()),m<=t.maxTranslate()&&(m=t.maxTranslate()),r=!!t.params.loop||!(m===t.minTranslate()||m===t.maxTranslate()),r&&t.params.nested&&n.stopPropagation(),t.params.freeMode&&t.params.freeMode.enabled){const e={time:j(),delta:Math.abs(d),direction:Math.sign(d)},r=o&&e.time<o.time+500&&e.delta<=o.delta&&e.direction===o.direction;if(!r){o=void 0;let l=t.getTranslate()+d*a.sensitivity;const u=t.isBeginning,p=t.isEnd;if(l>=t.minTranslate()&&(l=t.minTranslate()),l<=t.maxTranslate()&&(l=t.maxTranslate()),t.setTransition(0),t.setTranslate(l),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses(),(!u&&t.isBeginning||!p&&t.isEnd)&&t.updateSlidesClasses(),t.params.loop&&t.loopFix({direction:e.direction<0?"next":"prev",byMousewheel:!0}),t.params.freeMode.sticky){clearTimeout(i),i=void 0,c.length>=15&&c.shift();const n=c.length?c[c.length-1]:void 0,r=c[0];if(c.push(e),n&&(e.delta>n.delta||e.direction!==n.direction))c.splice(0);else if(c.length>=15&&e.time-r.time<500&&r.delta-e.delta>=1&&e.delta<=6){const n=d>0?.8:.2;o=e,c.splice(0),i=E((()=>{!t.destroyed&&t.params&&t.slideToClosest(t.params.speed,!0,void 0,n)}),0)}i||(i=E((()=>{!t.destroyed&&t.params&&(o=e,c.splice(0),t.slideToClosest(t.params.speed,!0,void 0,.5))}),500))}if(r||s("scroll",n),t.params.autoplay&&t.params.autoplay.disableOnInteraction&&t.autoplay.stop(),a.releaseOnEdges&&(l===t.minTranslate()||l===t.maxTranslate()))return!0}}else{const n={time:j(),delta:Math.abs(d),direction:Math.sign(d),raw:e};c.length>=2&&c.shift();const r=c.length?c[c.length-1]:void 0;if(c.push(n),r?(n.direction!==r.direction||n.delta>r.delta||n.time>r.time+150)&&p(n):p(n),function(e){const n=t.params.mousewheel;if(e.direction<0){if(t.isEnd&&!t.params.loop&&n.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&n.releaseOnEdges)return!0;return!1}(n))return!0}return n.preventDefault?n.preventDefault():n.returnValue=!1,!1}function f(e){let n=t.el;"container"!==t.params.mousewheel.eventsTarget&&(n=document.querySelector(t.params.mousewheel.eventsTarget)),n[e]("mouseenter",u),n[e]("mouseleave",d),n[e]("wheel",h)}function m(){return t.params.cssMode?(t.wrapperEl.removeEventListener("wheel",h),!0):!t.mousewheel.enabled&&(f("addEventListener"),t.mousewheel.enabled=!0,!0)}function g(){return t.params.cssMode?(t.wrapperEl.addEventListener(event,h),!0):!!t.mousewheel.enabled&&(f("removeEventListener"),t.mousewheel.enabled=!1,!0)}r("init",(()=>{!t.params.mousewheel.enabled&&t.params.cssMode&&g(),t.params.mousewheel.enabled&&m()})),r("destroy",(()=>{t.params.cssMode&&m(),t.mousewheel.enabled&&g()})),Object.assign(t.mousewheel,{enable:m,disable:g})},function(e){let{swiper:t,extendParams:n,on:r,emit:s}=e;function a(e){let n;return e&&"string"==typeof e&&t.isElement&&(n=t.el.querySelector(e)||t.hostEl.querySelector(e),n)?n:(e&&("string"==typeof e&&(n=[...document.querySelectorAll(e)]),t.params.uniqueNavElements&&"string"==typeof e&&n&&n.length>1&&1===t.el.querySelectorAll(e).length?n=t.el.querySelector(e):n&&1===n.length&&(n=n[0])),e&&!n?e:n)}function i(e,n){const r=t.params.navigation;(e=H(e)).forEach((e=>{e&&(e.classList[n?"add":"remove"](...r.disabledClass.split(" ")),"BUTTON"===e.tagName&&(e.disabled=n),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](r.lockClass))}))}function o(){const{nextEl:e,prevEl:n}=t.navigation;if(t.params.loop)return i(n,!1),void i(e,!1);i(n,t.isBeginning&&!t.params.rewind),i(e,t.isEnd&&!t.params.rewind)}function l(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),s("navigationPrev"))}function c(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),s("navigationNext"))}function u(){const e=t.params.navigation;if(t.params.navigation=ke(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;let n=a(e.nextEl),r=a(e.prevEl);Object.assign(t.navigation,{nextEl:n,prevEl:r}),n=H(n),r=H(r);const s=(n,r)=>{n&&n.addEventListener("click","next"===r?c:l),!t.enabled&&n&&n.classList.add(...e.lockClass.split(" "))};n.forEach((e=>s(e,"next"))),r.forEach((e=>s(e,"prev")))}function d(){let{nextEl:e,prevEl:n}=t.navigation;e=H(e),n=H(n);const r=(e,n)=>{e.removeEventListener("click","next"===n?c:l),e.classList.remove(...t.params.navigation.disabledClass.split(" "))};e.forEach((e=>r(e,"next"))),n.forEach((e=>r(e,"prev")))}n({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null},r("init",(()=>{!1===t.params.navigation.enabled?p():(u(),o())})),r("toEdge fromEdge lock unlock",(()=>{o()})),r("destroy",(()=>{d()})),r("enable disable",(()=>{let{nextEl:e,prevEl:n}=t.navigation;e=H(e),n=H(n),t.enabled?o():[...e,...n].filter((e=>!!e)).forEach((e=>e.classList.add(t.params.navigation.lockClass)))})),r("click",((e,n)=>{let{nextEl:r,prevEl:a}=t.navigation;r=H(r),a=H(a);const i=n.target;let o=a.includes(i)||r.includes(i);if(t.isElement&&!o){const e=n.path||n.composedPath&&n.composedPath();e&&(o=e.find((e=>r.includes(e)||a.includes(e))))}if(t.params.navigation.hideOnClick&&!o){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===i||t.pagination.el.contains(i)))return;let e;r.length?e=r[0].classList.contains(t.params.navigation.hiddenClass):a.length&&(e=a[0].classList.contains(t.params.navigation.hiddenClass)),s(!0===e?"navigationShow":"navigationHide"),[...r,...a].filter((e=>!!e)).forEach((e=>e.classList.toggle(t.params.navigation.hiddenClass)))}}));const p=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),d()};Object.assign(t.navigation,{enable:()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),u(),o()},disable:p,update:o,init:u,destroy:d})},function(e){let{swiper:t,extendParams:n,on:r,emit:s}=e;const a="swiper-pagination";let i;n({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${a}-bullet`,bulletActiveClass:`${a}-bullet-active`,modifierClass:`${a}-`,currentClass:`${a}-current`,totalClass:`${a}-total`,hiddenClass:`${a}-hidden`,progressbarFillClass:`${a}-progressbar-fill`,progressbarOppositeClass:`${a}-progressbar-opposite`,clickableClass:`${a}-clickable`,lockClass:`${a}-lock`,horizontalClass:`${a}-horizontal`,verticalClass:`${a}-vertical`,paginationDisabledClass:`${a}-disabled`}}),t.pagination={el:null,bullets:[]};let o=0;function l(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&0===t.pagination.el.length}function c(e,n){const{bulletActiveClass:r}=t.params.pagination;e&&(e=e[("prev"===n?"previous":"next")+"ElementSibling"])&&(e.classList.add(`${r}-${n}`),(e=e[("prev"===n?"previous":"next")+"ElementSibling"])&&e.classList.add(`${r}-${n}-${n}`))}function u(e){const n=e.target.closest(Se(t.params.pagination.bulletClass));if(!n)return;e.preventDefault();const r=R(n)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===r)return;const e=(s=t.realIndex,a=r,(a%=i=t.slides.length)==1+(s%=i)?"next":a===s-1?"previous":void 0);"next"===e?t.slideNext():"previous"===e?t.slidePrev():t.slideToLoop(r)}else t.slideTo(r);var s,a,i}function d(){const e=t.rtl,n=t.params.pagination;if(l())return;let r,a,u=t.pagination.el;u=H(u);const d=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,p=t.params.loop?Math.ceil(d/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(a=t.previousRealIndex||0,r=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):void 0!==t.snapIndex?(r=t.snapIndex,a=t.previousSnapIndex):(a=t.previousIndex||0,r=t.activeIndex||0),"bullets"===n.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const s=t.pagination.bullets;let l,d,p;if(n.dynamicBullets&&(i=F(s[0],t.isHorizontal()?"width":"height",!0),u.forEach((e=>{e.style[t.isHorizontal()?"width":"height"]=i*(n.dynamicMainBullets+4)+"px"})),n.dynamicMainBullets>1&&void 0!==a&&(o+=r-(a||0),o>n.dynamicMainBullets-1?o=n.dynamicMainBullets-1:o<0&&(o=0)),l=Math.max(r-o,0),d=l+(Math.min(s.length,n.dynamicMainBullets)-1),p=(d+l)/2),s.forEach((e=>{const t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map((e=>`${n.bulletActiveClass}${e}`))].map((e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e)).flat();e.classList.remove(...t)})),u.length>1)s.forEach((e=>{const s=R(e);s===r?e.classList.add(...n.bulletActiveClass.split(" ")):t.isElement&&e.setAttribute("part","bullet"),n.dynamicBullets&&(s>=l&&s<=d&&e.classList.add(...`${n.bulletActiveClass}-main`.split(" ")),s===l&&c(e,"prev"),s===d&&c(e,"next"))}));else{const e=s[r];if(e&&e.classList.add(...n.bulletActiveClass.split(" ")),t.isElement&&s.forEach(((e,t)=>{e.setAttribute("part",t===r?"bullet-active":"bullet")})),n.dynamicBullets){const e=s[l],t=s[d];for(let e=l;e<=d;e+=1)s[e]&&s[e].classList.add(...`${n.bulletActiveClass}-main`.split(" "));c(e,"prev"),c(t,"next")}}if(n.dynamicBullets){const r=Math.min(s.length,n.dynamicMainBullets+4),a=(i*r-i)/2-p*i,o=e?"right":"left";s.forEach((e=>{e.style[t.isHorizontal()?o:"top"]=`${a}px`}))}}u.forEach(((e,a)=>{if("fraction"===n.type&&(e.querySelectorAll(Se(n.currentClass)).forEach((e=>{e.textContent=n.formatFractionCurrent(r+1)})),e.querySelectorAll(Se(n.totalClass)).forEach((e=>{e.textContent=n.formatFractionTotal(p)}))),"progressbar"===n.type){let s;s=n.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const a=(r+1)/p;let i=1,o=1;"horizontal"===s?i=a:o=a,e.querySelectorAll(Se(n.progressbarFillClass)).forEach((e=>{e.style.transform=`translate3d(0,0,0) scaleX(${i}) scaleY(${o})`,e.style.transitionDuration=`${t.params.speed}ms`}))}"custom"===n.type&&n.renderCustom?(V(e,n.renderCustom(t,r+1,p)),0===a&&s("paginationRender",e)):(0===a&&s("paginationRender",e),s("paginationUpdate",e)),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](n.lockClass)}))}function p(){const e=t.params.pagination;if(l())return;const n=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let r=t.pagination.el;r=H(r);let a="";if("bullets"===e.type){let r=t.params.loop?Math.ceil(n/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&r>n&&(r=n);for(let n=0;n<r;n+=1)e.renderBullet?a+=e.renderBullet.call(t,n,e.bulletClass):a+=`<${e.bulletElement} ${t.isElement?'part="bullet"':""} class="${e.bulletClass}"></${e.bulletElement}>`}"fraction"===e.type&&(a=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`),"progressbar"===e.type&&(a=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`),t.pagination.bullets=[],r.forEach((n=>{"custom"!==e.type&&V(n,a||""),"bullets"===e.type&&t.pagination.bullets.push(...n.querySelectorAll(Se(e.bulletClass)))})),"custom"!==e.type&&s("paginationRender",r[0])}function h(){t.params.pagination=ke(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let n;"string"==typeof e.el&&t.isElement&&(n=t.el.querySelector(e.el)),n||"string"!=typeof e.el||(n=[...document.querySelectorAll(e.el)]),n||(n=e.el),n&&0!==n.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&Array.isArray(n)&&n.length>1&&(n=[...t.el.querySelectorAll(e.el)],n.length>1&&(n=n.find((e=>B(e,".swiper")[0]===t.el)))),Array.isArray(n)&&1===n.length&&(n=n[0]),Object.assign(t.pagination,{el:n}),n=H(n),n.forEach((n=>{"bullets"===e.type&&e.clickable&&n.classList.add(...(e.clickableClass||"").split(" ")),n.classList.add(e.modifierClass+e.type),n.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(n.classList.add(`${e.modifierClass}${e.type}-dynamic`),o=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&n.classList.add(e.progressbarOppositeClass),e.clickable&&n.addEventListener("click",u),t.enabled||n.classList.add(e.lockClass)})))}function f(){const e=t.params.pagination;if(l())return;let n=t.pagination.el;n&&(n=H(n),n.forEach((n=>{n.classList.remove(e.hiddenClass),n.classList.remove(e.modifierClass+e.type),n.classList.remove(t.isHorizontal()?e.horizontalClass:e.verticalClass),e.clickable&&(n.classList.remove(...(e.clickableClass||"").split(" ")),n.removeEventListener("click",u))}))),t.pagination.bullets&&t.pagination.bullets.forEach((t=>t.classList.remove(...e.bulletActiveClass.split(" "))))}r("changeDirection",(()=>{if(!t.pagination||!t.pagination.el)return;const e=t.params.pagination;let{el:n}=t.pagination;n=H(n),n.forEach((n=>{n.classList.remove(e.horizontalClass,e.verticalClass),n.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)}))})),r("init",(()=>{!1===t.params.pagination.enabled?m():(h(),p(),d())})),r("activeIndexChange",(()=>{void 0===t.snapIndex&&d()})),r("snapIndexChange",(()=>{d()})),r("snapGridLengthChange",(()=>{p(),d()})),r("destroy",(()=>{f()})),r("enable disable",(()=>{let{el:e}=t.pagination;e&&(e=H(e),e.forEach((e=>e.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass))))})),r("lock unlock",(()=>{d()})),r("click",((e,n)=>{const r=n.target,a=H(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&a&&a.length>0&&!r.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&r===t.navigation.nextEl||t.navigation.prevEl&&r===t.navigation.prevEl))return;const e=a[0].classList.contains(t.params.pagination.hiddenClass);s(!0===e?"paginationShow":"paginationHide"),a.forEach((e=>e.classList.toggle(t.params.pagination.hiddenClass)))}}));const m=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=H(e),e.forEach((e=>e.classList.add(t.params.pagination.paginationDisabledClass)))),f()};Object.assign(t.pagination,{enable:()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=H(e),e.forEach((e=>e.classList.remove(t.params.pagination.paginationDisabledClass)))),h(),p(),d()},disable:m,render:p,update:d,init:h,destroy:f})},function(e){let{swiper:t,extendParams:n,on:r,emit:s}=e;const a=_();let i,o,l,c,u=!1,d=null,p=null;function h(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e,rtlTranslate:n}=t,{dragEl:r,el:s}=e,a=t.params.scrollbar,i=t.params.loop?t.progressLoop:t.progress;let c=o,u=(l-o)*i;n?(u=-u,u>0?(c=o-u,u=0):-u+o>l&&(c=l+u)):u<0?(c=o+u,u=0):u+o>l&&(c=l-u),t.isHorizontal()?(r.style.transform=`translate3d(${u}px, 0, 0)`,r.style.width=`${c}px`):(r.style.transform=`translate3d(0px, ${u}px, 0)`,r.style.height=`${c}px`),a.hide&&(clearTimeout(d),s.style.opacity=1,d=setTimeout((()=>{s.style.opacity=0,s.style.transitionDuration="400ms"}),1e3))}function f(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e}=t,{dragEl:n,el:r}=e;n.style.width="",n.style.height="",l=t.isHorizontal()?r.offsetWidth:r.offsetHeight,c=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),o="auto"===t.params.scrollbar.dragSize?l*c:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?n.style.width=`${o}px`:n.style.height=`${o}px`,r.style.display=c>=1?"none":"",t.params.scrollbar.hide&&(r.style.opacity=0),t.params.watchOverflow&&t.enabled&&e.el.classList[t.isLocked?"add":"remove"](t.params.scrollbar.lockClass)}function m(e){return t.isHorizontal()?e.clientX:e.clientY}function g(e){const{scrollbar:n,rtlTranslate:r}=t,{el:s}=n;let a;a=(m(e)-z(s)[t.isHorizontal()?"left":"top"]-(null!==i?i:o/2))/(l-o),a=Math.max(Math.min(a,1),0),r&&(a=1-a);const c=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*a;t.updateProgress(c),t.setTranslate(c),t.updateActiveIndex(),t.updateSlidesClasses()}function v(e){const n=t.params.scrollbar,{scrollbar:r,wrapperEl:a}=t,{el:o,dragEl:l}=r;u=!0,i=e.target===l?m(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),a.style.transitionDuration="100ms",l.style.transitionDuration="100ms",g(e),clearTimeout(p),o.style.transitionDuration="0ms",n.hide&&(o.style.opacity=1),t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="none"),s("scrollbarDragStart",e)}function b(e){const{scrollbar:n,wrapperEl:r}=t,{el:a,dragEl:i}=n;u&&(e.preventDefault&&e.cancelable?e.preventDefault():e.returnValue=!1,g(e),r.style.transitionDuration="0ms",a.style.transitionDuration="0ms",i.style.transitionDuration="0ms",s("scrollbarDragMove",e))}function w(e){const n=t.params.scrollbar,{scrollbar:r,wrapperEl:a}=t,{el:i}=r;u&&(u=!1,t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="",a.style.transitionDuration=""),n.hide&&(clearTimeout(p),p=E((()=>{i.style.opacity=0,i.style.transitionDuration="400ms"}),1e3)),s("scrollbarDragEnd",e),n.snapOnRelease&&t.slideToClosest())}function y(e){const{scrollbar:n,params:r}=t,s=n.el;if(!s)return;const i=s,o=!!r.passiveListeners&&{passive:!1,capture:!1},l=!!r.passiveListeners&&{passive:!0,capture:!1};if(!i)return;const c="on"===e?"addEventListener":"removeEventListener";i[c]("pointerdown",v,o),a[c]("pointermove",b,o),a[c]("pointerup",w,l)}function x(){const{scrollbar:e,el:n}=t;t.params.scrollbar=ke(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});const r=t.params.scrollbar;if(!r.el)return;let s,i;if("string"==typeof r.el&&t.isElement&&(s=t.el.querySelector(r.el)),s||"string"!=typeof r.el)s||(s=r.el);else if(s=a.querySelectorAll(r.el),!s.length)return;t.params.uniqueNavElements&&"string"==typeof r.el&&s.length>1&&1===n.querySelectorAll(r.el).length&&(s=n.querySelector(r.el)),s.length>0&&(s=s[0]),s.classList.add(t.isHorizontal()?r.horizontalClass:r.verticalClass),s&&(i=s.querySelector(Se(t.params.scrollbar.dragClass)),i||(i=D("div",t.params.scrollbar.dragClass),s.append(i))),Object.assign(e,{el:s,dragEl:i}),r.draggable&&t.params.scrollbar.el&&t.scrollbar.el&&y("on"),s&&s.classList[t.enabled?"remove":"add"](...S(t.params.scrollbar.lockClass))}function k(){const e=t.params.scrollbar,n=t.scrollbar.el;n&&n.classList.remove(...S(t.isHorizontal()?e.horizontalClass:e.verticalClass)),t.params.scrollbar.el&&t.scrollbar.el&&y("off")}n({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),t.scrollbar={el:null,dragEl:null},r("changeDirection",(()=>{if(!t.scrollbar||!t.scrollbar.el)return;const e=t.params.scrollbar;let{el:n}=t.scrollbar;n=H(n),n.forEach((n=>{n.classList.remove(e.horizontalClass,e.verticalClass),n.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)}))})),r("init",(()=>{!1===t.params.scrollbar.enabled?j():(x(),f(),h())})),r("update resize observerUpdate lock unlock changeDirection",(()=>{f()})),r("setTranslate",(()=>{h()})),r("setTransition",((e,n)=>{!function(e){t.params.scrollbar.el&&t.scrollbar.el&&(t.scrollbar.dragEl.style.transitionDuration=`${e}ms`)}(n)})),r("enable disable",(()=>{const{el:e}=t.scrollbar;e&&e.classList[t.enabled?"remove":"add"](...S(t.params.scrollbar.lockClass))})),r("destroy",(()=>{k()}));const j=()=>{t.el.classList.add(...S(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.add(...S(t.params.scrollbar.scrollbarDisabledClass)),k()};Object.assign(t.scrollbar,{enable:()=>{t.el.classList.remove(...S(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.remove(...S(t.params.scrollbar.scrollbarDisabledClass)),x(),f(),h()},disable:j,updateSize:f,setTranslate:h,init:x,destroy:k})},function(e){let{swiper:t,extendParams:n,on:r}=e;n({parallax:{enabled:!1}});const s="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",a=(e,n)=>{const{rtl:r}=t,s=r?-1:1,a=e.getAttribute("data-swiper-parallax")||"0";let i=e.getAttribute("data-swiper-parallax-x"),o=e.getAttribute("data-swiper-parallax-y");const l=e.getAttribute("data-swiper-parallax-scale"),c=e.getAttribute("data-swiper-parallax-opacity"),u=e.getAttribute("data-swiper-parallax-rotate");if(i||o?(i=i||"0",o=o||"0"):t.isHorizontal()?(i=a,o="0"):(o=a,i="0"),i=i.indexOf("%")>=0?parseInt(i,10)*n*s+"%":i*n*s+"px",o=o.indexOf("%")>=0?parseInt(o,10)*n+"%":o*n+"px",null!=c){const t=c-(c-1)*(1-Math.abs(n));e.style.opacity=t}let d=`translate3d(${i}, ${o}, 0px)`;null!=l&&(d+=` scale(${l-(l-1)*(1-Math.abs(n))})`),u&&null!=u&&(d+=` rotate(${u*n*-1}deg)`),e.style.transform=d},i=()=>{const{el:e,slides:n,progress:r,snapGrid:i,isElement:o}=t,l=O(e,s);t.isElement&&l.push(...O(t.hostEl,s)),l.forEach((e=>{a(e,r)})),n.forEach(((e,n)=>{let o=e.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(o+=Math.ceil(n/2)-r*(i.length-1)),o=Math.min(Math.max(o,-1),1),e.querySelectorAll(`${s}, [data-swiper-parallax-rotate]`).forEach((e=>{a(e,o)}))}))};r("beforeInit",(()=>{t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)})),r("init",(()=>{t.params.parallax.enabled&&i()})),r("setTranslate",(()=>{t.params.parallax.enabled&&i()})),r("setTransition",((e,n)=>{t.params.parallax.enabled&&function(e){void 0===e&&(e=t.params.speed);const{el:n,hostEl:r}=t,a=[...n.querySelectorAll(s)];t.isElement&&a.push(...r.querySelectorAll(s)),a.forEach((t=>{let n=parseInt(t.getAttribute("data-swiper-parallax-duration"),10)||e;0===e&&(n=0),t.style.transitionDuration=`${n}ms`}))}(n)}))},function(e){let{swiper:t,extendParams:n,on:r,emit:s}=e;const a=k();n({zoom:{enabled:!1,limitToOriginalSize:!1,maxRatio:3,minRatio:1,panOnMouseMove:!1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),t.zoom={enabled:!1};let i=1,o=!1,l=!1,c={x:0,y:0};const u=-3;let d,p;const h=[],f={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},m={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},g={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let v,b=1;function w(){if(h.length<2)return 1;const e=h[0].pageX,t=h[0].pageY,n=h[1].pageX,r=h[1].pageY;return Math.sqrt((n-e)**2+(r-t)**2)}function y(){const e=t.params.zoom,n=f.imageWrapEl.getAttribute("data-swiper-zoom")||e.maxRatio;if(e.limitToOriginalSize&&f.imageEl&&f.imageEl.naturalWidth){const e=f.imageEl.naturalWidth/f.imageEl.offsetWidth;return Math.min(e,n)}return n}function _(e){const n=t.isElement?"swiper-slide":`.${t.params.slideClass}`;return!!e.target.matches(n)||t.slides.filter((t=>t.contains(e.target))).length>0}function x(e){const n=`.${t.params.zoom.containerClass}`;return!!e.target.matches(n)||[...t.hostEl.querySelectorAll(n)].filter((t=>t.contains(e.target))).length>0}function S(e){if("mouse"===e.pointerType&&h.splice(0,h.length),!_(e))return;const n=t.params.zoom;if(d=!1,p=!1,h.push(e),!(h.length<2)){if(d=!0,f.scaleStart=w(),!f.slideEl){f.slideEl=e.target.closest(`.${t.params.slideClass}, swiper-slide`),f.slideEl||(f.slideEl=t.slides[t.activeIndex]);let r=f.slideEl.querySelector(`.${n.containerClass}`);if(r&&(r=r.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),f.imageEl=r,f.imageWrapEl=r?B(f.imageEl,`.${n.containerClass}`)[0]:void 0,!f.imageWrapEl)return void(f.imageEl=void 0);f.maxRatio=y()}if(f.imageEl){const[e,t]=function(){if(h.length<2)return{x:null,y:null};const e=f.imageEl.getBoundingClientRect();return[(h[0].pageX+(h[1].pageX-h[0].pageX)/2-e.x-a.scrollX)/i,(h[0].pageY+(h[1].pageY-h[0].pageY)/2-e.y-a.scrollY)/i]}();f.originX=e,f.originY=t,f.imageEl.style.transitionDuration="0ms"}o=!0}}function E(e){if(!_(e))return;const n=t.params.zoom,r=t.zoom,s=h.findIndex((t=>t.pointerId===e.pointerId));s>=0&&(h[s]=e),h.length<2||(p=!0,f.scaleMove=w(),f.imageEl&&(r.scale=f.scaleMove/f.scaleStart*i,r.scale>f.maxRatio&&(r.scale=f.maxRatio-1+(r.scale-f.maxRatio+1)**.5),r.scale<n.minRatio&&(r.scale=n.minRatio+1-(n.minRatio-r.scale+1)**.5),f.imageEl.style.transform=`translate3d(0,0,0) scale(${r.scale})`))}function j(e){if(!_(e))return;if("mouse"===e.pointerType&&"pointerout"===e.type)return;const n=t.params.zoom,r=t.zoom,s=h.findIndex((t=>t.pointerId===e.pointerId));s>=0&&h.splice(s,1),d&&p&&(d=!1,p=!1,f.imageEl&&(r.scale=Math.max(Math.min(r.scale,f.maxRatio),n.minRatio),f.imageEl.style.transitionDuration=`${t.params.speed}ms`,f.imageEl.style.transform=`translate3d(0,0,0) scale(${r.scale})`,i=r.scale,o=!1,r.scale>1&&f.slideEl?f.slideEl.classList.add(`${n.zoomedSlideClass}`):r.scale<=1&&f.slideEl&&f.slideEl.classList.remove(`${n.zoomedSlideClass}`),1===r.scale&&(f.originX=0,f.originY=0,f.slideEl=void 0)))}function T(){t.touchEventsData.preventTouchMoveFromPointerMove=!1}function M(e){const n="mouse"===e.pointerType&&t.params.zoom.panOnMouseMove;if(!_(e)||!x(e))return;const r=t.zoom;if(!f.imageEl)return;if(!m.isTouched||!f.slideEl)return void(n&&A(e));if(n)return void A(e);m.isMoved||(m.width=f.imageEl.offsetWidth||f.imageEl.clientWidth,m.height=f.imageEl.offsetHeight||f.imageEl.clientHeight,m.startX=C(f.imageWrapEl,"x")||0,m.startY=C(f.imageWrapEl,"y")||0,f.slideWidth=f.slideEl.offsetWidth,f.slideHeight=f.slideEl.offsetHeight,f.imageWrapEl.style.transitionDuration="0ms");const s=m.width*r.scale,a=m.height*r.scale;if(m.minX=Math.min(f.slideWidth/2-s/2,0),m.maxX=-m.minX,m.minY=Math.min(f.slideHeight/2-a/2,0),m.maxY=-m.minY,m.touchesCurrent.x=h.length>0?h[0].pageX:e.pageX,m.touchesCurrent.y=h.length>0?h[0].pageY:e.pageY,Math.max(Math.abs(m.touchesCurrent.x-m.touchesStart.x),Math.abs(m.touchesCurrent.y-m.touchesStart.y))>5&&(t.allowClick=!1),!m.isMoved&&!o){if(t.isHorizontal()&&(Math.floor(m.minX)===Math.floor(m.startX)&&m.touchesCurrent.x<m.touchesStart.x||Math.floor(m.maxX)===Math.floor(m.startX)&&m.touchesCurrent.x>m.touchesStart.x))return m.isTouched=!1,void T();if(!t.isHorizontal()&&(Math.floor(m.minY)===Math.floor(m.startY)&&m.touchesCurrent.y<m.touchesStart.y||Math.floor(m.maxY)===Math.floor(m.startY)&&m.touchesCurrent.y>m.touchesStart.y))return m.isTouched=!1,void T()}e.cancelable&&e.preventDefault(),e.stopPropagation(),clearTimeout(v),t.touchEventsData.preventTouchMoveFromPointerMove=!0,v=setTimeout((()=>{t.destroyed||T()})),m.isMoved=!0;const l=(r.scale-i)/(f.maxRatio-t.params.zoom.minRatio),{originX:c,originY:u}=f;m.currentX=m.touchesCurrent.x-m.touchesStart.x+m.startX+l*(m.width-2*c),m.currentY=m.touchesCurrent.y-m.touchesStart.y+m.startY+l*(m.height-2*u),m.currentX<m.minX&&(m.currentX=m.minX+1-(m.minX-m.currentX+1)**.8),m.currentX>m.maxX&&(m.currentX=m.maxX-1+(m.currentX-m.maxX+1)**.8),m.currentY<m.minY&&(m.currentY=m.minY+1-(m.minY-m.currentY+1)**.8),m.currentY>m.maxY&&(m.currentY=m.maxY-1+(m.currentY-m.maxY+1)**.8),g.prevPositionX||(g.prevPositionX=m.touchesCurrent.x),g.prevPositionY||(g.prevPositionY=m.touchesCurrent.y),g.prevTime||(g.prevTime=Date.now()),g.x=(m.touchesCurrent.x-g.prevPositionX)/(Date.now()-g.prevTime)/2,g.y=(m.touchesCurrent.y-g.prevPositionY)/(Date.now()-g.prevTime)/2,Math.abs(m.touchesCurrent.x-g.prevPositionX)<2&&(g.x=0),Math.abs(m.touchesCurrent.y-g.prevPositionY)<2&&(g.y=0),g.prevPositionX=m.touchesCurrent.x,g.prevPositionY=m.touchesCurrent.y,g.prevTime=Date.now(),f.imageWrapEl.style.transform=`translate3d(${m.currentX}px, ${m.currentY}px,0)`}function P(){const e=t.zoom;f.slideEl&&t.activeIndex!==t.slides.indexOf(f.slideEl)&&(f.imageEl&&(f.imageEl.style.transform="translate3d(0,0,0) scale(1)"),f.imageWrapEl&&(f.imageWrapEl.style.transform="translate3d(0,0,0)"),f.slideEl.classList.remove(`${t.params.zoom.zoomedSlideClass}`),e.scale=1,i=1,f.slideEl=void 0,f.imageEl=void 0,f.imageWrapEl=void 0,f.originX=0,f.originY=0)}function A(e){if(i<=1||!f.imageWrapEl)return;if(!_(e)||!x(e))return;const t=a.getComputedStyle(f.imageWrapEl).transform,n=new a.DOMMatrix(t);if(!l)return l=!0,c.x=e.clientX,c.y=e.clientY,m.startX=n.e,m.startY=n.f,m.width=f.imageEl.offsetWidth||f.imageEl.clientWidth,m.height=f.imageEl.offsetHeight||f.imageEl.clientHeight,f.slideWidth=f.slideEl.offsetWidth,void(f.slideHeight=f.slideEl.offsetHeight);const r=(e.clientX-c.x)*u,s=(e.clientY-c.y)*u,o=m.width*i,d=m.height*i,p=f.slideWidth,h=f.slideHeight,g=Math.min(p/2-o/2,0),v=-g,b=Math.min(h/2-d/2,0),w=-b,y=Math.max(Math.min(m.startX+r,v),g),k=Math.max(Math.min(m.startY+s,w),b);f.imageWrapEl.style.transitionDuration="0ms",f.imageWrapEl.style.transform=`translate3d(${y}px, ${k}px, 0)`,c.x=e.clientX,c.y=e.clientY,m.startX=y,m.startY=k,m.currentX=y,m.currentY=k}function I(e){const n=t.zoom,r=t.params.zoom;if(!f.slideEl){e&&e.target&&(f.slideEl=e.target.closest(`.${t.params.slideClass}, swiper-slide`)),f.slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?f.slideEl=O(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:f.slideEl=t.slides[t.activeIndex]);let n=f.slideEl.querySelector(`.${r.containerClass}`);n&&(n=n.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),f.imageEl=n,f.imageWrapEl=n?B(f.imageEl,`.${r.containerClass}`)[0]:void 0}if(!f.imageEl||!f.imageWrapEl)return;let s,o,l,c,u,d,p,h,g,v,b,w,_,x,k,S,E,j;t.params.cssMode&&(t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.touchAction="none"),f.slideEl.classList.add(`${r.zoomedSlideClass}`),void 0===m.touchesStart.x&&e?(s=e.pageX,o=e.pageY):(s=m.touchesStart.x,o=m.touchesStart.y);const C=i,T="number"==typeof e?e:null;1===i&&T&&(s=void 0,o=void 0,m.touchesStart.x=void 0,m.touchesStart.y=void 0);const M=y();n.scale=T||M,i=T||M,!e||1===i&&T?(p=0,h=0):(E=f.slideEl.offsetWidth,j=f.slideEl.offsetHeight,l=z(f.slideEl).left+a.scrollX,c=z(f.slideEl).top+a.scrollY,u=l+E/2-s,d=c+j/2-o,g=f.imageEl.offsetWidth||f.imageEl.clientWidth,v=f.imageEl.offsetHeight||f.imageEl.clientHeight,b=g*n.scale,w=v*n.scale,_=Math.min(E/2-b/2,0),x=Math.min(j/2-w/2,0),k=-_,S=-x,C>0&&T&&"number"==typeof m.currentX&&"number"==typeof m.currentY?(p=m.currentX*n.scale/C,h=m.currentY*n.scale/C):(p=u*n.scale,h=d*n.scale),p<_&&(p=_),p>k&&(p=k),h<x&&(h=x),h>S&&(h=S)),T&&1===n.scale&&(f.originX=0,f.originY=0),m.currentX=p,m.currentY=h,f.imageWrapEl.style.transitionDuration="300ms",f.imageWrapEl.style.transform=`translate3d(${p}px, ${h}px,0)`,f.imageEl.style.transitionDuration="300ms",f.imageEl.style.transform=`translate3d(0,0,0) scale(${n.scale})`}function L(){const e=t.zoom,n=t.params.zoom;if(!f.slideEl){t.params.virtual&&t.params.virtual.enabled&&t.virtual?f.slideEl=O(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:f.slideEl=t.slides[t.activeIndex];let e=f.slideEl.querySelector(`.${n.containerClass}`);e&&(e=e.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),f.imageEl=e,f.imageWrapEl=e?B(f.imageEl,`.${n.containerClass}`)[0]:void 0}f.imageEl&&f.imageWrapEl&&(t.params.cssMode&&(t.wrapperEl.style.overflow="",t.wrapperEl.style.touchAction=""),e.scale=1,i=1,m.currentX=void 0,m.currentY=void 0,m.touchesStart.x=void 0,m.touchesStart.y=void 0,f.imageWrapEl.style.transitionDuration="300ms",f.imageWrapEl.style.transform="translate3d(0,0,0)",f.imageEl.style.transitionDuration="300ms",f.imageEl.style.transform="translate3d(0,0,0) scale(1)",f.slideEl.classList.remove(`${n.zoomedSlideClass}`),f.slideEl=void 0,f.originX=0,f.originY=0,t.params.zoom.panOnMouseMove&&(c={x:0,y:0},l&&(l=!1,m.startX=0,m.startY=0)))}function D(e){const n=t.zoom;n.scale&&1!==n.scale?L():I(e)}function N(){return{passiveListener:!!t.params.passiveListeners&&{passive:!0,capture:!1},activeListenerWithCapture:!t.params.passiveListeners||{passive:!1,capture:!0}}}function R(){const e=t.zoom;if(e.enabled)return;e.enabled=!0;const{passiveListener:n,activeListenerWithCapture:r}=N();t.wrapperEl.addEventListener("pointerdown",S,n),t.wrapperEl.addEventListener("pointermove",E,r),["pointerup","pointercancel","pointerout"].forEach((e=>{t.wrapperEl.addEventListener(e,j,n)})),t.wrapperEl.addEventListener("pointermove",M,r)}function $(){const e=t.zoom;if(!e.enabled)return;e.enabled=!1;const{passiveListener:n,activeListenerWithCapture:r}=N();t.wrapperEl.removeEventListener("pointerdown",S,n),t.wrapperEl.removeEventListener("pointermove",E,r),["pointerup","pointercancel","pointerout"].forEach((e=>{t.wrapperEl.removeEventListener(e,j,n)})),t.wrapperEl.removeEventListener("pointermove",M,r)}Object.defineProperty(t.zoom,"scale",{get:()=>b,set(e){if(b!==e){const t=f.imageEl,n=f.slideEl;s("zoomChange",e,t,n)}b=e}}),r("init",(()=>{t.params.zoom.enabled&&R()})),r("destroy",(()=>{$()})),r("touchStart",((e,n)=>{t.zoom.enabled&&function(e){const n=t.device;if(!f.imageEl)return;if(m.isTouched)return;n.android&&e.cancelable&&e.preventDefault(),m.isTouched=!0;const r=h.length>0?h[0]:e;m.touchesStart.x=r.pageX,m.touchesStart.y=r.pageY}(n)})),r("touchEnd",((e,n)=>{t.zoom.enabled&&function(){const e=t.zoom;if(h.length=0,!f.imageEl)return;if(!m.isTouched||!m.isMoved)return m.isTouched=!1,void(m.isMoved=!1);m.isTouched=!1,m.isMoved=!1;let n=300,r=300;const s=g.x*n,a=m.currentX+s,i=g.y*r,o=m.currentY+i;0!==g.x&&(n=Math.abs((a-m.currentX)/g.x)),0!==g.y&&(r=Math.abs((o-m.currentY)/g.y));const l=Math.max(n,r);m.currentX=a,m.currentY=o;const c=m.width*e.scale,u=m.height*e.scale;m.minX=Math.min(f.slideWidth/2-c/2,0),m.maxX=-m.minX,m.minY=Math.min(f.slideHeight/2-u/2,0),m.maxY=-m.minY,m.currentX=Math.max(Math.min(m.currentX,m.maxX),m.minX),m.currentY=Math.max(Math.min(m.currentY,m.maxY),m.minY),f.imageWrapEl.style.transitionDuration=`${l}ms`,f.imageWrapEl.style.transform=`translate3d(${m.currentX}px, ${m.currentY}px,0)`}()})),r("doubleTap",((e,n)=>{!t.animating&&t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&D(n)})),r("transitionEnd",(()=>{t.zoom.enabled&&t.params.zoom.enabled&&P()})),r("slideChange",(()=>{t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&P()})),Object.assign(t.zoom,{enable:R,disable:$,in:I,out:L,toggle:D})},function(e){let{swiper:t,extendParams:n,on:r}=e;function s(e,t){const n=function(){let e,t,n;return(r,s)=>{for(t=-1,e=r.length;e-t>1;)n=e+t>>1,r[n]<=s?t=n:e=n;return e}}();let r,s;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(s=n(this.x,e),r=s-1,(e-this.x[r])*(this.y[s]-this.y[r])/(this.x[s]-this.x[r])+this.y[r]):0},this}function a(){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)}n({controller:{control:void 0,inverse:!1,by:"slide"}}),t.controller={control:void 0},r("beforeInit",(()=>{"undefined"!=typeof window&&("string"==typeof t.params.controller.control||t.params.controller.control instanceof HTMLElement)?("string"==typeof t.params.controller.control?[...document.querySelectorAll(t.params.controller.control)]:[t.params.controller.control]).forEach((e=>{if(t.controller.control||(t.controller.control=[]),e&&e.swiper)t.controller.control.push(e.swiper);else if(e){const n=`${t.params.eventsPrefix}init`,r=s=>{t.controller.control.push(s.detail[0]),t.update(),e.removeEventListener(n,r)};e.addEventListener(n,r)}})):t.controller.control=t.params.controller.control})),r("update",(()=>{a()})),r("resize",(()=>{a()})),r("observerUpdate",(()=>{a()})),r("setTranslate",((e,n,r)=>{t.controller.control&&!t.controller.control.destroyed&&t.controller.setTranslate(n,r)})),r("setTransition",((e,n,r)=>{t.controller.control&&!t.controller.control.destroyed&&t.controller.setTransition(n,r)})),Object.assign(t.controller,{setTranslate:function(e,n){const r=t.controller.control;let a,i;const o=t.constructor;function l(e){if(e.destroyed)return;const n=t.rtlTranslate?-t.translate:t.translate;"slide"===t.params.controller.by&&(function(e){t.controller.spline=t.params.loop?new s(t.slidesGrid,e.slidesGrid):new s(t.snapGrid,e.snapGrid)}(e),i=-t.controller.spline.interpolate(-n)),i&&"container"!==t.params.controller.by||(a=(e.maxTranslate()-e.minTranslate())/(t.maxTranslate()-t.minTranslate()),!Number.isNaN(a)&&Number.isFinite(a)||(a=1),i=(n-t.minTranslate())*a+e.minTranslate()),t.params.controller.inverse&&(i=e.maxTranslate()-i),e.updateProgress(i),e.setTranslate(i,t),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(r))for(let e=0;e<r.length;e+=1)r[e]!==n&&r[e]instanceof o&&l(r[e]);else r instanceof o&&n!==r&&l(r)},setTransition:function(e,n){const r=t.constructor,s=t.controller.control;let a;function i(n){n.destroyed||(n.setTransition(e,t),0!==e&&(n.transitionStart(),n.params.autoHeight&&E((()=>{n.updateAutoHeight()})),$(n.wrapperEl,(()=>{s&&n.transitionEnd()}))))}if(Array.isArray(s))for(a=0;a<s.length;a+=1)s[a]!==n&&s[a]instanceof r&&i(s[a]);else s instanceof r&&n!==s&&i(s)}})},function(e){let{swiper:t,extendParams:n,on:r}=e;n({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0}}),t.a11y={clicked:!1};let s,a,i=null,o=(new Date).getTime();function l(e){const t=i;0!==t.length&&V(t,e)}function c(e){(e=H(e)).forEach((e=>{e.setAttribute("tabIndex","0")}))}function u(e){(e=H(e)).forEach((e=>{e.setAttribute("tabIndex","-1")}))}function d(e,t){(e=H(e)).forEach((e=>{e.setAttribute("role",t)}))}function p(e,t){(e=H(e)).forEach((e=>{e.setAttribute("aria-roledescription",t)}))}function h(e,t){(e=H(e)).forEach((e=>{e.setAttribute("aria-label",t)}))}function f(e){(e=H(e)).forEach((e=>{e.setAttribute("aria-disabled",!0)}))}function m(e){(e=H(e)).forEach((e=>{e.setAttribute("aria-disabled",!1)}))}function g(e){if(13!==e.keyCode&&32!==e.keyCode)return;const n=t.params.a11y,r=e.target;if(!t.pagination||!t.pagination.el||r!==t.pagination.el&&!t.pagination.el.contains(e.target)||e.target.matches(Se(t.params.pagination.bulletClass))){if(t.navigation&&t.navigation.prevEl&&t.navigation.nextEl){const e=H(t.navigation.prevEl);H(t.navigation.nextEl).includes(r)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?l(n.lastSlideMessage):l(n.nextSlideMessage)),e.includes(r)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?l(n.firstSlideMessage):l(n.prevSlideMessage))}t.pagination&&r.matches(Se(t.params.pagination.bulletClass))&&r.click()}}function v(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function b(){return v()&&t.params.pagination.clickable}const w=(e,t,n)=>{c(e),"BUTTON"!==e.tagName&&(d(e,"button"),e.addEventListener("keydown",g)),h(e,n),function(e,t){(e=H(e)).forEach((e=>{e.setAttribute("aria-controls",t)}))}(e,t)},y=e=>{a&&a!==e.target&&!a.contains(e.target)&&(s=!0),t.a11y.clicked=!0},x=()=>{s=!1,requestAnimationFrame((()=>{requestAnimationFrame((()=>{t.destroyed||(t.a11y.clicked=!1)}))}))},k=e=>{o=(new Date).getTime()},S=e=>{if(t.a11y.clicked||!t.params.a11y.scrollOnFocus)return;if((new Date).getTime()-o<100)return;const n=e.target.closest(`.${t.params.slideClass}, swiper-slide`);if(!n||!t.slides.includes(n))return;a=n;const r=t.slides.indexOf(n)===t.activeIndex,i=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(n);r||i||e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,requestAnimationFrame((()=>{s||(t.params.loop?t.slideToLoop(parseInt(n.getAttribute("data-swiper-slide-index")),0):t.slideTo(t.slides.indexOf(n),0),s=!1)})))},E=()=>{const e=t.params.a11y;e.itemRoleDescriptionMessage&&p(t.slides,e.itemRoleDescriptionMessage),e.slideRole&&d(t.slides,e.slideRole);const n=t.slides.length;e.slideLabelMessage&&t.slides.forEach(((r,s)=>{const a=t.params.loop?parseInt(r.getAttribute("data-swiper-slide-index"),10):s;h(r,e.slideLabelMessage.replace(/\{\{index\}\}/,a+1).replace(/\{\{slidesLength\}\}/,n))}))};r("beforeInit",(()=>{i=D("span",t.params.a11y.notificationClass),i.setAttribute("aria-live","assertive"),i.setAttribute("aria-atomic","true")})),r("afterInit",(()=>{t.params.a11y.enabled&&(()=>{const e=t.params.a11y;t.el.append(i);const n=t.el;e.containerRoleDescriptionMessage&&p(n,e.containerRoleDescriptionMessage),e.containerMessage&&h(n,e.containerMessage),e.containerRole&&d(n,e.containerRole);const r=t.wrapperEl,s=e.id||r.getAttribute("id")||`swiper-wrapper-${a=16,void 0===a&&(a=16),"x".repeat(a).replace(/x/g,(()=>Math.round(16*Math.random()).toString(16)))}`;var a;const o=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";var l;l=s,H(r).forEach((e=>{e.setAttribute("id",l)})),function(e,t){(e=H(e)).forEach((e=>{e.setAttribute("aria-live",t)}))}(r,o),E();let{nextEl:c,prevEl:u}=t.navigation?t.navigation:{};c=H(c),u=H(u),c&&c.forEach((t=>w(t,s,e.nextSlideMessage))),u&&u.forEach((t=>w(t,s,e.prevSlideMessage))),b()&&H(t.pagination.el).forEach((e=>{e.addEventListener("keydown",g)})),_().addEventListener("visibilitychange",k),t.el.addEventListener("focus",S,!0),t.el.addEventListener("focus",S,!0),t.el.addEventListener("pointerdown",y,!0),t.el.addEventListener("pointerup",x,!0)})()})),r("slidesLengthChange snapGridLengthChange slidesGridLengthChange",(()=>{t.params.a11y.enabled&&E()})),r("fromEdge toEdge afterInit lock unlock",(()=>{t.params.a11y.enabled&&function(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{nextEl:e,prevEl:n}=t.navigation;n&&(t.isBeginning?(f(n),u(n)):(m(n),c(n))),e&&(t.isEnd?(f(e),u(e)):(m(e),c(e)))}()})),r("paginationUpdate",(()=>{t.params.a11y.enabled&&function(){const e=t.params.a11y;v()&&t.pagination.bullets.forEach((n=>{t.params.pagination.clickable&&(c(n),t.params.pagination.renderBullet||(d(n,"button"),h(n,e.paginationBulletMessage.replace(/\{\{index\}\}/,R(n)+1)))),n.matches(Se(t.params.pagination.bulletActiveClass))?n.setAttribute("aria-current","true"):n.removeAttribute("aria-current")}))}()})),r("destroy",(()=>{t.params.a11y.enabled&&function(){i&&i.remove();let{nextEl:e,prevEl:n}=t.navigation?t.navigation:{};e=H(e),n=H(n),e&&e.forEach((e=>e.removeEventListener("keydown",g))),n&&n.forEach((e=>e.removeEventListener("keydown",g))),b()&&H(t.pagination.el).forEach((e=>{e.removeEventListener("keydown",g)})),_().removeEventListener("visibilitychange",k),t.el&&"string"!=typeof t.el&&(t.el.removeEventListener("focus",S,!0),t.el.removeEventListener("pointerdown",y,!0),t.el.removeEventListener("pointerup",x,!0))}()}))},function(e){let{swiper:t,extendParams:n,on:r}=e;n({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let s=!1,a={};const i=e=>e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),o=e=>{const t=k();let n;n=e?new URL(e):t.location;const r=n.pathname.slice(1).split("/").filter((e=>""!==e)),s=r.length;return{key:r[s-2],value:r[s-1]}},l=(e,n)=>{const r=k();if(!s||!t.params.history.enabled)return;let a;a=t.params.url?new URL(t.params.url):r.location;const o=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${n}"]`):t.slides[n];let l=i(o.getAttribute("data-history"));if(t.params.history.root.length>0){let n=t.params.history.root;"/"===n[n.length-1]&&(n=n.slice(0,n.length-1)),l=`${n}/${e?`${e}/`:""}${l}`}else a.pathname.includes(e)||(l=`${e?`${e}/`:""}${l}`);t.params.history.keepQuery&&(l+=a.search);const c=r.history.state;c&&c.value===l||(t.params.history.replaceState?r.history.replaceState({value:l},null,l):r.history.pushState({value:l},null,l))},c=(e,n,r)=>{if(n)for(let s=0,a=t.slides.length;s<a;s+=1){const a=t.slides[s];if(i(a.getAttribute("data-history"))===n){const n=t.getSlideIndex(a);t.slideTo(n,e,r)}}else t.slideTo(0,e,r)},u=()=>{a=o(t.params.url),c(t.params.speed,a.value,!1)};r("init",(()=>{t.params.history.enabled&&(()=>{const e=k();if(t.params.history){if(!e.history||!e.history.pushState)return t.params.history.enabled=!1,void(t.params.hashNavigation.enabled=!0);s=!0,a=o(t.params.url),a.key||a.value?(c(0,a.value,t.params.runCallbacksOnInit),t.params.history.replaceState||e.addEventListener("popstate",u)):t.params.history.replaceState||e.addEventListener("popstate",u)}})()})),r("destroy",(()=>{t.params.history.enabled&&(()=>{const e=k();t.params.history.replaceState||e.removeEventListener("popstate",u)})()})),r("transitionEnd _freeModeNoMomentumRelease",(()=>{s&&l(t.params.history.key,t.activeIndex)})),r("slideChange",(()=>{s&&t.params.cssMode&&l(t.params.history.key,t.activeIndex)}))},function(e){let{swiper:t,extendParams:n,emit:r,on:s}=e,a=!1;const i=_(),o=k();n({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(e,n){if(t.virtual&&t.params.virtual.enabled){const e=t.slides.find((e=>e.getAttribute("data-hash")===n));return e?parseInt(e.getAttribute("data-swiper-slide-index"),10):0}return t.getSlideIndex(O(t.slidesEl,`.${t.params.slideClass}[data-hash="${n}"], swiper-slide[data-hash="${n}"]`)[0])}}});const l=()=>{r("hashChange");const e=i.location.hash.replace("#",""),n=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex];if(e!==(n?n.getAttribute("data-hash"):"")){const n=t.params.hashNavigation.getSlideIndex(t,e);if(void 0===n||Number.isNaN(n))return;t.slideTo(n)}},c=()=>{if(!a||!t.params.hashNavigation.enabled)return;const e=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex],n=e?e.getAttribute("data-hash")||e.getAttribute("data-history"):"";t.params.hashNavigation.replaceState&&o.history&&o.history.replaceState?(o.history.replaceState(null,null,`#${n}`||""),r("hashSet")):(i.location.hash=n||"",r("hashSet"))};s("init",(()=>{t.params.hashNavigation.enabled&&(()=>{if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;a=!0;const e=i.location.hash.replace("#","");if(e){const n=0,r=t.params.hashNavigation.getSlideIndex(t,e);t.slideTo(r||0,n,t.params.runCallbacksOnInit,!0)}t.params.hashNavigation.watchState&&o.addEventListener("hashchange",l)})()})),s("destroy",(()=>{t.params.hashNavigation.enabled&&t.params.hashNavigation.watchState&&o.removeEventListener("hashchange",l)})),s("transitionEnd _freeModeNoMomentumRelease",(()=>{a&&c()})),s("slideChange",(()=>{a&&t.params.cssMode&&c()}))},function(e){let t,n,{swiper:r,extendParams:s,on:a,emit:i,params:o}=e;r.autoplay={running:!1,paused:!1,timeLeft:0},s({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let l,c,u,d,p,h,f,m,g=o&&o.autoplay?o.autoplay.delay:3e3,v=o&&o.autoplay?o.autoplay.delay:3e3,b=(new Date).getTime();function w(e){r&&!r.destroyed&&r.wrapperEl&&e.target===r.wrapperEl&&(r.wrapperEl.removeEventListener("transitionend",w),m||e.detail&&e.detail.bySwiperTouchMove||j())}const y=()=>{if(r.destroyed||!r.autoplay.running)return;r.autoplay.paused?c=!0:c&&(v=l,c=!1);const e=r.autoplay.paused?l:b+v-(new Date).getTime();r.autoplay.timeLeft=e,i("autoplayTimeLeft",e,e/g),n=requestAnimationFrame((()=>{y()}))},x=e=>{if(r.destroyed||!r.autoplay.running)return;cancelAnimationFrame(n),y();let s=void 0===e?r.params.autoplay.delay:e;g=r.params.autoplay.delay,v=r.params.autoplay.delay;const a=(()=>{let e;if(e=r.virtual&&r.params.virtual.enabled?r.slides.find((e=>e.classList.contains("swiper-slide-active"))):r.slides[r.activeIndex],e)return parseInt(e.getAttribute("data-swiper-autoplay"),10)})();!Number.isNaN(a)&&a>0&&void 0===e&&(s=a,g=a,v=a),l=s;const o=r.params.speed,c=()=>{r&&!r.destroyed&&(r.params.autoplay.reverseDirection?!r.isBeginning||r.params.loop||r.params.rewind?(r.slidePrev(o,!0,!0),i("autoplay")):r.params.autoplay.stopOnLastSlide||(r.slideTo(r.slides.length-1,o,!0,!0),i("autoplay")):!r.isEnd||r.params.loop||r.params.rewind?(r.slideNext(o,!0,!0),i("autoplay")):r.params.autoplay.stopOnLastSlide||(r.slideTo(0,o,!0,!0),i("autoplay")),r.params.cssMode&&(b=(new Date).getTime(),requestAnimationFrame((()=>{x()}))))};return s>0?(clearTimeout(t),t=setTimeout((()=>{c()}),s)):requestAnimationFrame((()=>{c()})),s},k=()=>{b=(new Date).getTime(),r.autoplay.running=!0,x(),i("autoplayStart")},S=()=>{r.autoplay.running=!1,clearTimeout(t),cancelAnimationFrame(n),i("autoplayStop")},E=(e,n)=>{if(r.destroyed||!r.autoplay.running)return;clearTimeout(t),e||(f=!0);const s=()=>{i("autoplayPause"),r.params.autoplay.waitForTransition?r.wrapperEl.addEventListener("transitionend",w):j()};if(r.autoplay.paused=!0,n)return h&&(l=r.params.autoplay.delay),h=!1,void s();const a=l||r.params.autoplay.delay;l=a-((new Date).getTime()-b),r.isEnd&&l<0&&!r.params.loop||(l<0&&(l=0),s())},j=()=>{r.isEnd&&l<0&&!r.params.loop||r.destroyed||!r.autoplay.running||(b=(new Date).getTime(),f?(f=!1,x(l)):x(),r.autoplay.paused=!1,i("autoplayResume"))},C=()=>{if(r.destroyed||!r.autoplay.running)return;const e=_();"hidden"===e.visibilityState&&(f=!0,E(!0)),"visible"===e.visibilityState&&j()},T=e=>{"mouse"===e.pointerType&&(f=!0,m=!0,r.animating||r.autoplay.paused||E(!0))},M=e=>{"mouse"===e.pointerType&&(m=!1,r.autoplay.paused&&j())};a("init",(()=>{r.params.autoplay.enabled&&(r.params.autoplay.pauseOnMouseEnter&&(r.el.addEventListener("pointerenter",T),r.el.addEventListener("pointerleave",M)),_().addEventListener("visibilitychange",C),k())})),a("destroy",(()=>{r.el&&"string"!=typeof r.el&&(r.el.removeEventListener("pointerenter",T),r.el.removeEventListener("pointerleave",M)),_().removeEventListener("visibilitychange",C),r.autoplay.running&&S()})),a("_freeModeStaticRelease",(()=>{(d||f)&&j()})),a("_freeModeNoMomentumRelease",(()=>{r.params.autoplay.disableOnInteraction?S():E(!0,!0)})),a("beforeTransitionStart",((e,t,n)=>{!r.destroyed&&r.autoplay.running&&(n||!r.params.autoplay.disableOnInteraction?E(!0,!0):S())})),a("sliderFirstMove",(()=>{!r.destroyed&&r.autoplay.running&&(r.params.autoplay.disableOnInteraction?S():(u=!0,d=!1,f=!1,p=setTimeout((()=>{f=!0,d=!0,E(!0)}),200)))})),a("touchEnd",(()=>{if(!r.destroyed&&r.autoplay.running&&u){if(clearTimeout(p),clearTimeout(t),r.params.autoplay.disableOnInteraction)return d=!1,void(u=!1);d&&r.params.cssMode&&j(),d=!1,u=!1}})),a("slideChange",(()=>{!r.destroyed&&r.autoplay.running&&(h=!0)})),Object.assign(r.autoplay,{start:k,stop:S,pause:E,resume:j})},function(e){let{swiper:t,extendParams:n,on:r}=e;n({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let s=!1,a=!1;function i(){const e=t.thumbs.swiper;if(!e||e.destroyed)return;const n=e.clickedIndex,r=e.clickedSlide;if(r&&r.classList.contains(t.params.thumbs.slideThumbActiveClass))return;if(null==n)return;let s;s=e.params.loop?parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10):n,t.params.loop?t.slideToLoop(s):t.slideTo(s)}function o(){const{thumbs:e}=t.params;if(s)return!1;s=!0;const n=t.constructor;if(e.swiper instanceof n){if(e.swiper.destroyed)return s=!1,!1;t.thumbs.swiper=e.swiper,Object.assign(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper.update()}else if(T(e.swiper)){const r=Object.assign({},e.swiper);Object.assign(r,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper=new n(r),a=!0}return t.thumbs.swiper.el.classList.add(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",i),!0}function l(e){const n=t.thumbs.swiper;if(!n||n.destroyed)return;const r="auto"===n.params.slidesPerView?n.slidesPerViewDynamic():n.params.slidesPerView;let s=1;const a=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(s=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(s=1),s=Math.floor(s),n.slides.forEach((e=>e.classList.remove(a))),n.params.loop||n.params.virtual&&n.params.virtual.enabled)for(let e=0;e<s;e+=1)O(n.slidesEl,`[data-swiper-slide-index="${t.realIndex+e}"]`).forEach((e=>{e.classList.add(a)}));else for(let e=0;e<s;e+=1)n.slides[t.realIndex+e]&&n.slides[t.realIndex+e].classList.add(a);const i=t.params.thumbs.autoScrollOffset,o=i&&!n.params.loop;if(t.realIndex!==n.realIndex||o){const s=n.activeIndex;let a,l;if(n.params.loop){const e=n.slides.find((e=>e.getAttribute("data-swiper-slide-index")===`${t.realIndex}`));a=n.slides.indexOf(e),l=t.activeIndex>t.previousIndex?"next":"prev"}else a=t.realIndex,l=a>t.previousIndex?"next":"prev";o&&(a+="next"===l?i:-1*i),n.visibleSlidesIndexes&&n.visibleSlidesIndexes.indexOf(a)<0&&(n.params.centeredSlides?a=a>s?a-Math.floor(r/2)+1:a+Math.floor(r/2)-1:a>s&&n.params.slidesPerGroup,n.slideTo(a,e?0:void 0))}}t.thumbs={swiper:null},r("beforeInit",(()=>{const{thumbs:e}=t.params;if(e&&e.swiper)if("string"==typeof e.swiper||e.swiper instanceof HTMLElement){const n=_(),r=()=>{const r="string"==typeof e.swiper?n.querySelector(e.swiper):e.swiper;if(r&&r.swiper)e.swiper=r.swiper,o(),l(!0);else if(r){const n=`${t.params.eventsPrefix}init`,s=a=>{e.swiper=a.detail[0],r.removeEventListener(n,s),o(),l(!0),e.swiper.update(),t.update()};r.addEventListener(n,s)}return r},s=()=>{t.destroyed||r()||requestAnimationFrame(s)};requestAnimationFrame(s)}else o(),l(!0)})),r("slideChange update resize observerUpdate",(()=>{l()})),r("setTransition",((e,n)=>{const r=t.thumbs.swiper;r&&!r.destroyed&&r.setTransition(n)})),r("beforeDestroy",(()=>{const e=t.thumbs.swiper;e&&!e.destroyed&&a&&e.destroy()})),Object.assign(t.thumbs,{init:o,update:l})},function(e){let{swiper:t,extendParams:n,emit:r,once:s}=e;n({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(t,{freeMode:{onTouchStart:function(){if(t.params.cssMode)return;const e=t.getTranslate();t.setTranslate(e),t.setTransition(0),t.touchEventsData.velocities.length=0,t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})},onTouchMove:function(){if(t.params.cssMode)return;const{touchEventsData:e,touches:n}=t;0===e.velocities.length&&e.velocities.push({position:n[t.isHorizontal()?"startX":"startY"],time:e.touchStartTime}),e.velocities.push({position:n[t.isHorizontal()?"currentX":"currentY"],time:j()})},onTouchEnd:function(e){let{currentPos:n}=e;if(t.params.cssMode)return;const{params:a,wrapperEl:i,rtlTranslate:o,snapGrid:l,touchEventsData:c}=t,u=j()-c.touchStartTime;if(n<-t.minTranslate())t.slideTo(t.activeIndex);else if(n>-t.maxTranslate())t.slides.length<l.length?t.slideTo(l.length-1):t.slideTo(t.slides.length-1);else{if(a.freeMode.momentum){if(c.velocities.length>1){const e=c.velocities.pop(),n=c.velocities.pop(),r=e.position-n.position,s=e.time-n.time;t.velocity=r/s,t.velocity/=2,Math.abs(t.velocity)<a.freeMode.minimumVelocity&&(t.velocity=0),(s>150||j()-e.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=a.freeMode.momentumVelocityRatio,c.velocities.length=0;let e=1e3*a.freeMode.momentumRatio;const n=t.velocity*e;let u=t.translate+n;o&&(u=-u);let d,p=!1;const h=20*Math.abs(t.velocity)*a.freeMode.momentumBounceRatio;let f;if(u<t.maxTranslate())a.freeMode.momentumBounce?(u+t.maxTranslate()<-h&&(u=t.maxTranslate()-h),d=t.maxTranslate(),p=!0,c.allowMomentumBounce=!0):u=t.maxTranslate(),a.loop&&a.centeredSlides&&(f=!0);else if(u>t.minTranslate())a.freeMode.momentumBounce?(u-t.minTranslate()>h&&(u=t.minTranslate()+h),d=t.minTranslate(),p=!0,c.allowMomentumBounce=!0):u=t.minTranslate(),a.loop&&a.centeredSlides&&(f=!0);else if(a.freeMode.sticky){let e;for(let t=0;t<l.length;t+=1)if(l[t]>-u){e=t;break}u=Math.abs(l[e]-u)<Math.abs(l[e-1]-u)||"next"===t.swipeDirection?l[e]:l[e-1],u=-u}if(f&&s("transitionEnd",(()=>{t.loopFix()})),0!==t.velocity){if(e=o?Math.abs((-u-t.translate)/t.velocity):Math.abs((u-t.translate)/t.velocity),a.freeMode.sticky){const n=Math.abs((o?-u:u)-t.translate),r=t.slidesSizesGrid[t.activeIndex];e=n<r?a.speed:n<2*r?1.5*a.speed:2.5*a.speed}}else if(a.freeMode.sticky)return void t.slideToClosest();a.freeMode.momentumBounce&&p?(t.updateProgress(d),t.setTransition(e),t.setTranslate(u),t.transitionStart(!0,t.swipeDirection),t.animating=!0,$(i,(()=>{t&&!t.destroyed&&c.allowMomentumBounce&&(r("momentumBounce"),t.setTransition(a.speed),setTimeout((()=>{t.setTranslate(d),$(i,(()=>{t&&!t.destroyed&&t.transitionEnd()}))}),0))}))):t.velocity?(r("_freeModeNoMomentumRelease"),t.updateProgress(u),t.setTransition(e),t.setTranslate(u),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,$(i,(()=>{t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(u),t.updateActiveIndex(),t.updateSlidesClasses()}else{if(a.freeMode.sticky)return void t.slideToClosest();a.freeMode&&r("_freeModeNoMomentumRelease")}(!a.freeMode.momentum||u>=a.longSwipesMs)&&(r("_freeModeStaticRelease"),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}}}})},function(e){let t,n,r,s,{swiper:a,extendParams:i,on:o}=e;i({grid:{rows:1,fill:"column"}});const l=()=>{let e=a.params.spaceBetween;return"string"==typeof e&&e.indexOf("%")>=0?e=parseFloat(e.replace("%",""))/100*a.size:"string"==typeof e&&(e=parseFloat(e)),e};o("init",(()=>{s=a.params.grid&&a.params.grid.rows>1})),o("update",(()=>{const{params:e,el:t}=a,n=e.grid&&e.grid.rows>1;s&&!n?(t.classList.remove(`${e.containerModifierClass}grid`,`${e.containerModifierClass}grid-column`),r=1,a.emitContainerClasses()):!s&&n&&(t.classList.add(`${e.containerModifierClass}grid`),"column"===e.grid.fill&&t.classList.add(`${e.containerModifierClass}grid-column`),a.emitContainerClasses()),s=n})),a.grid={initSlides:e=>{const{slidesPerView:s}=a.params,{rows:i,fill:o}=a.params.grid,l=a.virtual&&a.params.virtual.enabled?a.virtual.slides.length:e.length;r=Math.floor(l/i),t=Math.floor(l/i)===l/i?l:Math.ceil(l/i)*i,"auto"!==s&&"row"===o&&(t=Math.max(t,s*i)),n=t/i},unsetSlides:()=>{a.slides&&a.slides.forEach((e=>{e.swiperSlideGridSet&&(e.style.height="",e.style[a.getDirectionLabel("margin-top")]="")}))},updateSlide:(e,s,i)=>{const{slidesPerGroup:o}=a.params,c=l(),{rows:u,fill:d}=a.params.grid,p=a.virtual&&a.params.virtual.enabled?a.virtual.slides.length:i.length;let h,f,m;if("row"===d&&o>1){const n=Math.floor(e/(o*u)),r=e-u*o*n,a=0===n?o:Math.min(Math.ceil((p-n*u*o)/u),o);m=Math.floor(r/a),f=r-m*a+n*o,h=f+m*t/u,s.style.order=h}else"column"===d?(f=Math.floor(e/u),m=e-f*u,(f>r||f===r&&m===u-1)&&(m+=1,m>=u&&(m=0,f+=1))):(m=Math.floor(e/n),f=e-m*n);s.row=m,s.column=f,s.style.height=`calc((100% - ${(u-1)*c}px) / ${u})`,s.style[a.getDirectionLabel("margin-top")]=0!==m?c&&`${c}px`:"",s.swiperSlideGridSet=!0},updateWrapperSize:(e,n)=>{const{centeredSlides:r,roundLengths:s}=a.params,i=l(),{rows:o}=a.params.grid;if(a.virtualSize=(e+i)*t,a.virtualSize=Math.ceil(a.virtualSize/o)-i,a.params.cssMode||(a.wrapperEl.style[a.getDirectionLabel("width")]=`${a.virtualSize+i}px`),r){const e=[];for(let t=0;t<n.length;t+=1){let r=n[t];s&&(r=Math.floor(r)),n[t]<a.virtualSize+n[0]&&e.push(r)}n.splice(0,n.length),n.push(...e)}}}},function(e){let{swiper:t}=e;Object.assign(t,{appendSlide:Ee.bind(t),prependSlide:je.bind(t),addSlide:Ce.bind(t),removeSlide:Te.bind(t),removeAllSlides:Me.bind(t)})},function(e){let{swiper:t,extendParams:n,on:r}=e;n({fadeEffect:{crossFade:!1}}),Pe({effect:"fade",swiper:t,on:r,setTranslate:()=>{const{slides:e}=t;t.params.fadeEffect;for(let n=0;n<e.length;n+=1){const e=t.slides[n];let r=-e.swiperSlideOffset;t.params.virtualTranslate||(r-=t.translate);let s=0;t.isHorizontal()||(s=r,r=0);const a=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(e.progress),0):1+Math.min(Math.max(e.progress,-1),0),i=Ae(0,e);i.style.opacity=a,i.style.transform=`translate3d(${r}px, ${s}px, 0px)`}},setTransition:e=>{const n=t.slides.map((e=>I(e)));n.forEach((t=>{t.style.transitionDuration=`${e}ms`})),Ie({swiper:t,duration:e,transformElements:n,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:n,on:r}=e;n({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const s=(e,t,n)=>{let r=n?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),s=n?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");r||(r=D("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(n?"left":"top")).split(" ")),e.append(r)),s||(s=D("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(n?"right":"bottom")).split(" ")),e.append(s)),r&&(r.style.opacity=Math.max(-t,0)),s&&(s.style.opacity=Math.max(t,0))};Pe({effect:"cube",swiper:t,on:r,setTranslate:()=>{const{el:e,wrapperEl:n,slides:r,width:a,height:i,rtlTranslate:o,size:l,browser:c}=t,u=q(t),d=t.params.cubeEffect,p=t.isHorizontal(),h=t.virtual&&t.params.virtual.enabled;let f,m=0;d.shadow&&(p?(f=t.wrapperEl.querySelector(".swiper-cube-shadow"),f||(f=D("div","swiper-cube-shadow"),t.wrapperEl.append(f)),f.style.height=`${a}px`):(f=e.querySelector(".swiper-cube-shadow"),f||(f=D("div","swiper-cube-shadow"),e.append(f))));for(let e=0;e<r.length;e+=1){const t=r[e];let n=e;h&&(n=parseInt(t.getAttribute("data-swiper-slide-index"),10));let a=90*n,i=Math.floor(a/360);o&&(a=-a,i=Math.floor(-a/360));const c=Math.max(Math.min(t.progress,1),-1);let f=0,g=0,v=0;n%4==0?(f=4*-i*l,v=0):(n-1)%4==0?(f=0,v=4*-i*l):(n-2)%4==0?(f=l+4*i*l,v=l):(n-3)%4==0&&(f=-l,v=3*l+4*l*i),o&&(f=-f),p||(g=f,f=0);const b=`rotateX(${u(p?0:-a)}deg) rotateY(${u(p?a:0)}deg) translate3d(${f}px, ${g}px, ${v}px)`;c<=1&&c>-1&&(m=90*n+90*c,o&&(m=90*-n-90*c)),t.style.transform=b,d.slideShadows&&s(t,c,p)}if(n.style.transformOrigin=`50% 50% -${l/2}px`,n.style["-webkit-transform-origin"]=`50% 50% -${l/2}px`,d.shadow)if(p)f.style.transform=`translate3d(0px, ${a/2+d.shadowOffset}px, ${-a/2}px) rotateX(89.99deg) rotateZ(0deg) scale(${d.shadowScale})`;else{const e=Math.abs(m)-90*Math.floor(Math.abs(m)/90),t=1.5-(Math.sin(2*e*Math.PI/360)/2+Math.cos(2*e*Math.PI/360)/2),n=d.shadowScale,r=d.shadowScale/t,s=d.shadowOffset;f.style.transform=`scale3d(${n}, 1, ${r}) translate3d(0px, ${i/2+s}px, ${-i/2/r}px) rotateX(-89.99deg)`}const g=(c.isSafari||c.isWebView)&&c.needPerspectiveFix?-l/2:0;n.style.transform=`translate3d(0px,0,${g}px) rotateX(${u(t.isHorizontal()?0:m)}deg) rotateY(${u(t.isHorizontal()?-m:0)}deg)`,n.style.setProperty("--swiper-cube-translate-z",`${g}px`)},setTransition:e=>{const{el:n,slides:r}=t;if(r.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),t.params.cubeEffect.shadow&&!t.isHorizontal()){const t=n.querySelector(".swiper-cube-shadow");t&&(t.style.transitionDuration=`${e}ms`)}},recreateShadows:()=>{const e=t.isHorizontal();t.slides.forEach((t=>{const n=Math.max(Math.min(t.progress,1),-1);s(t,n,e)}))},getEffectParams:()=>t.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})},function(e){let{swiper:t,extendParams:n,on:r}=e;n({flipEffect:{slideShadows:!0,limitRotation:!0}});const s=(e,n)=>{let r=t.isHorizontal()?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),s=t.isHorizontal()?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");r||(r=Oe("flip",e,t.isHorizontal()?"left":"top")),s||(s=Oe("flip",e,t.isHorizontal()?"right":"bottom")),r&&(r.style.opacity=Math.max(-n,0)),s&&(s.style.opacity=Math.max(n,0))};Pe({effect:"flip",swiper:t,on:r,setTranslate:()=>{const{slides:e,rtlTranslate:n}=t,r=t.params.flipEffect,a=q(t);for(let i=0;i<e.length;i+=1){const o=e[i];let l=o.progress;t.params.flipEffect.limitRotation&&(l=Math.max(Math.min(o.progress,1),-1));const c=o.swiperSlideOffset;let u=-180*l,d=0,p=t.params.cssMode?-c-t.translate:-c,h=0;t.isHorizontal()?n&&(u=-u):(h=p,p=0,d=-u,u=0),o.style.zIndex=-Math.abs(Math.round(l))+e.length,r.slideShadows&&s(o,l);const f=`translate3d(${p}px, ${h}px, 0px) rotateX(${a(d)}deg) rotateY(${a(u)}deg)`;Ae(0,o).style.transform=f}},setTransition:e=>{const n=t.slides.map((e=>I(e)));n.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),Ie({swiper:t,duration:e,transformElements:n})},recreateShadows:()=>{t.params.flipEffect,t.slides.forEach((e=>{let n=e.progress;t.params.flipEffect.limitRotation&&(n=Math.max(Math.min(e.progress,1),-1)),s(e,n)}))},getEffectParams:()=>t.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:n,on:r}=e;n({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),Pe({effect:"coverflow",swiper:t,on:r,setTranslate:()=>{const{width:e,height:n,slides:r,slidesSizesGrid:s}=t,a=t.params.coverflowEffect,i=t.isHorizontal(),o=t.translate,l=i?e/2-o:n/2-o,c=i?a.rotate:-a.rotate,u=a.depth,d=q(t);for(let e=0,t=r.length;e<t;e+=1){const t=r[e],n=s[e],o=(l-t.swiperSlideOffset-n/2)/n,p="function"==typeof a.modifier?a.modifier(o):o*a.modifier;let h=i?c*p:0,f=i?0:c*p,m=-u*Math.abs(p),g=a.stretch;"string"==typeof g&&-1!==g.indexOf("%")&&(g=parseFloat(a.stretch)/100*n);let v=i?0:g*p,b=i?g*p:0,w=1-(1-a.scale)*Math.abs(p);Math.abs(b)<.001&&(b=0),Math.abs(v)<.001&&(v=0),Math.abs(m)<.001&&(m=0),Math.abs(h)<.001&&(h=0),Math.abs(f)<.001&&(f=0),Math.abs(w)<.001&&(w=0);const y=`translate3d(${b}px,${v}px,${m}px) rotateX(${d(f)}deg) rotateY(${d(h)}deg) scale(${w})`;if(Ae(0,t).style.transform=y,t.style.zIndex=1-Math.abs(Math.round(p)),a.slideShadows){let e=i?t.querySelector(".swiper-slide-shadow-left"):t.querySelector(".swiper-slide-shadow-top"),n=i?t.querySelector(".swiper-slide-shadow-right"):t.querySelector(".swiper-slide-shadow-bottom");e||(e=Oe("coverflow",t,i?"left":"top")),n||(n=Oe("coverflow",t,i?"right":"bottom")),e&&(e.style.opacity=p>0?p:0),n&&(n.style.opacity=-p>0?-p:0)}}},setTransition:e=>{t.slides.map((e=>I(e))).forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))}))},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})},function(e){let{swiper:t,extendParams:n,on:r}=e;n({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const s=e=>"string"==typeof e?e:`${e}px`;Pe({effect:"creative",swiper:t,on:r,setTranslate:()=>{const{slides:e,wrapperEl:n,slidesSizesGrid:r}=t,a=t.params.creativeEffect,{progressMultiplier:i}=a,o=t.params.centeredSlides,l=q(t);if(o){const e=r[0]/2-t.params.slidesOffsetBefore||0;n.style.transform=`translateX(calc(50% - ${e}px))`}for(let n=0;n<e.length;n+=1){const r=e[n],c=r.progress,u=Math.min(Math.max(r.progress,-a.limitProgress),a.limitProgress);let d=u;o||(d=Math.min(Math.max(r.originalProgress,-a.limitProgress),a.limitProgress));const p=r.swiperSlideOffset,h=[t.params.cssMode?-p-t.translate:-p,0,0],f=[0,0,0];let m=!1;t.isHorizontal()||(h[1]=h[0],h[0]=0);let g={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};u<0?(g=a.next,m=!0):u>0&&(g=a.prev,m=!0),h.forEach(((e,t)=>{h[t]=`calc(${e}px + (${s(g.translate[t])} * ${Math.abs(u*i)}))`})),f.forEach(((e,t)=>{let n=g.rotate[t]*Math.abs(u*i);f[t]=n})),r.style.zIndex=-Math.abs(Math.round(c))+e.length;const v=h.join(", "),b=`rotateX(${l(f[0])}deg) rotateY(${l(f[1])}deg) rotateZ(${l(f[2])}deg)`,w=d<0?`scale(${1+(1-g.scale)*d*i})`:`scale(${1-(1-g.scale)*d*i})`,y=d<0?1+(1-g.opacity)*d*i:1-(1-g.opacity)*d*i,_=`translate3d(${v}) ${b} ${w}`;if(m&&g.shadow||!m){let e=r.querySelector(".swiper-slide-shadow");if(!e&&g.shadow&&(e=Oe("creative",r)),e){const t=a.shadowPerProgress?u*(1/a.limitProgress):u;e.style.opacity=Math.min(Math.max(Math.abs(t),0),1)}}const x=Ae(0,r);x.style.transform=_,x.style.opacity=y,g.origin&&(x.style.transformOrigin=g.origin)}},setTransition:e=>{const n=t.slides.map((e=>I(e)));n.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),Ie({swiper:t,duration:e,transformElements:n,allSlides:!0})},perspective:()=>t.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:n,on:r}=e;n({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),Pe({effect:"cards",swiper:t,on:r,setTranslate:()=>{const{slides:e,activeIndex:n,rtlTranslate:r}=t,s=t.params.cardsEffect,{startTranslate:a,isTouched:i}=t.touchEventsData,o=r?-t.translate:t.translate;for(let l=0;l<e.length;l+=1){const c=e[l],u=c.progress,d=Math.min(Math.max(u,-4),4);let p=c.swiperSlideOffset;t.params.centeredSlides&&!t.params.cssMode&&(t.wrapperEl.style.transform=`translateX(${t.minTranslate()}px)`),t.params.centeredSlides&&t.params.cssMode&&(p-=e[0].swiperSlideOffset);let h=t.params.cssMode?-p-t.translate:-p,f=0;const m=-100*Math.abs(d);let g=1,v=-s.perSlideRotate*d,b=s.perSlideOffset-.75*Math.abs(d);const w=t.virtual&&t.params.virtual.enabled?t.virtual.from+l:l,y=(w===n||w===n-1)&&d>0&&d<1&&(i||t.params.cssMode)&&o<a,_=(w===n||w===n+1)&&d<0&&d>-1&&(i||t.params.cssMode)&&o>a;if(y||_){const e=(1-Math.abs((Math.abs(d)-.5)/.5))**.5;v+=-28*d*e,g+=-.5*e,b+=96*e,f=-25*e*Math.abs(d)+"%"}if(h=d<0?`calc(${h}px ${r?"-":"+"} (${b*Math.abs(d)}%))`:d>0?`calc(${h}px ${r?"-":"+"} (-${b*Math.abs(d)}%))`:`${h}px`,!t.isHorizontal()){const e=f;f=h,h=e}const x=d<0?""+(1+(1-g)*d):""+(1-(1-g)*d),k=`\n translate3d(${h}, ${f}, ${m}px)\n rotateZ(${s.rotate?r?-v:v:0}deg)\n scale(${x})\n `;if(s.slideShadows){let e=c.querySelector(".swiper-slide-shadow");e||(e=Oe("cards",c)),e&&(e.style.opacity=Math.min(Math.max((Math.abs(d)-.5)/.5,0),1))}c.style.zIndex=-Math.abs(Math.round(u))+e.length,Ae(0,c).style.transform=k}},setTransition:e=>{const n=t.slides.map((e=>I(e)));n.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),Ie({swiper:t,duration:e,transformElements:n})},perspective:()=>!0,overwriteParams:()=>({_loopSwapReset:!1,watchSlidesProgress:!0,loopAdditionalSlides:t.params.cardsEffect.rotate?3:2,centeredSlides:!0,virtualTranslate:!t.params.cssMode})})}];xe.use(Le);const De="wp-block-newspack-blocks-carousel__autoplay-playing";function ze(e,t){Array.prototype.forEach.call(e,t)}function Ne(e){e&&(e.setAttribute("aria-hidden","false"),ze(e.querySelectorAll("a"),(e=>e.removeAttribute("tabindex"))))}function Re(e){e&&(e.setAttribute("aria-hidden","true"),ze(e.querySelectorAll("a"),(e=>e.setAttribute("tabindex","-1"))))}var Be=n(6175),$e=n(2859),Fe=n(790);class He extends u.Component{constructor(e){super(e),this.btnPlayRef=(0,u.createRef)(),this.btnPauseRef=(0,u.createRef)(),this.btnNextRef=(0,u.createRef)(),this.btnPrevRef=(0,u.createRef)(),this.carouselRef=(0,u.createRef)(),this.paginationRef=(0,u.createRef)(),this.state={swiperInitialized:!1}}componentDidMount(){this.initializeSwiper(0),this.props.triggerReflow()}componentDidUpdate(e){if(!(0<this.carouselRef.current.offsetWidth&&0<this.carouselRef.current.offsetHeight))return!1;if(!this.state.swiperInitialized)return this.initializeSwiper(0);(0,$e.pV)(e,this.props)&&this.props.triggerReflow();const{attributes:t,latestPosts:n}=this.props;if(!(0,a.isEqual)(e.latestPosts,n)||!(0,a.isEqual)(e.attributes,t)){let e=0;this.swiperInstance&&(n&&this.swiperInstance.realIndex<n.length&&(e=this.swiperInstance.realIndex),this.setState({swiperInitialized:!1}),this.swiperInstance.destroy(!0,!0)),this.initializeSwiper(e)}}componentWillUnmount(){this.props.triggerReflow()}initializeSwiper(e){const{latestPosts:t}=this.props;if(t){const{aspectRatio:n,autoplay:r,delay:a,slidesPerView:i}=this.props.attributes,o=function(e,t={}){if(!(0<e.container.offsetWidth&&0<e.container.offsetHeight))return!1;const n=new xe(e.container,{a11y:!1,autoplay:!!t.autoplay&&{delay:t.delay,disableOnInteraction:!1},effect:"slide",grabCursor:!0,init:!1,initialSlide:t.initialSlide||0,loop:!0,navigation:{nextEl:e.next,prevEl:e.prev},pagination:{bulletElement:"button",clickable:!0,el:e.pagination,type:"bullets",renderBullet:(e,t)=>`<button class="${t}"><span>${(0,s.sprintf)(/* translators: Indicates which slide the slider is on. */ /* translators: Indicates which slide the slider is on. */
4
+ (0,s.__)("Slide %s","newspack-blocks"),e+1)}</span></button>`},watchSlidesProgress:t.slidesPerView>1,preventClicksPropagation:!1,releaseFormElements:!1,setWrapperSize:!0,slidesPerView:t.slidesPerView,spaceBetween:16,touchStartPreventDefault:!1,breakpoints:{320:{slidesPerView:1},782:{slidesPerView:t.slidesPerView>1?2:1},1168:{slidesPerView:t.slidesPerView}},on:{init(){ze(this.wrapperEl.querySelectorAll(".swiper-slide"),(e=>Re(e))),r.call(this),Ne(this.slides[this.activeIndex])},slideChange(){if(this.slides.length<1)return;const e=this.slides[this.activeIndex];if(Re(this.slides[this.previousIndex]),Ne(e),!this.autoplay?.running){const t=e.querySelector("img"),n=!!t&&t?.alt,r=(0,s.sprintf)(/* translators: 1: current slide number and 2: total number of slides */ /* translators: 1: current slide number and 2: total number of slides */
5
+ (0,s.__)("Slide %1$s of %2$s","newspack-blocks"),this.realIndex+1,this.pagination?.bullets?.length||0);(0,g.speak)((0,v.escapeHTML)(`${e.innerText},\n\t\t\t\t\t\t\t${n?/* translators: the title of the image. */ /* translators: the title of the image. */(0,s.sprintf)((0,s.__)("Image: %s, ","newspack-blocks"),n):""}\n\t\t\t\t\t\t\t${r}`),"assertive")}}}});function r(){const{aspectRatio:e}=t;Array.from(this.slides).forEach((t=>{t.style.height=t.clientWidth*e+"px"}))}if(n.on("imagesReady",r),n.on("resize",r),t.autoplay){function a(){n.autoplay.stop(),e.play.focus()}function i(){n.autoplay.start(),e.pause.focus()}n.on("init",(function(){e.play.addEventListener("click",i),e.pause.addEventListener("click",a)})),n.on("autoplayStart",(function(){e.block.classList.add(De),(0,g.speak)((0,s.__)("Playing","newspack-blocks"),"assertive")})),n.on("autoplayStop",(function(){e.block.classList.remove(De),(0,g.speak)((0,s.__)("Paused","newspack-blocks"),"assertive")})),n.on("beforeDestroy",(function(){e.play.removeEventListener("click",i),e.pause.removeEventListener("click",a)}))}return n.init(),n}({block:this.carouselRef.current,container:this.carouselRef.current,next:this.btnNextRef.current,prev:this.btnPrevRef.current,play:this.btnPlayRef.current,pause:this.btnPauseRef.current,pagination:this.paginationRef.current},{aspectRatio:n,autoplay:r,delay:1e3*a,initialSlide:e,slidesPerView:i<=t.length?i:t.length});o&&(this.swiperInstance=o,this.setState({swiperInitialized:!0}))}}render(){const{attributes:e,className:t,setAttributes:n,latestPosts:a,isUIDisabled:i}=this.props,{aspectRatio:d,authors:p,autoplay:g,categories:v,includeSubcategories:b,categoryJoinType:w,customTaxonomies:y,delay:_,hideControls:x,imageFit:k,postsToShow:S,postType:E,showCategory:j,showDate:C,showAuthor:T,showAvatar:M,showCaption:P,showCredit:A,showTitle:I,slidesPerView:O,specificMode:L,specificPosts:D,tags:z}=e,N=o()(t,"wp-block-newspack-blocks-carousel","wpnbpc","slides-per-view-"+O,"swiper",{"wp-block-newspack-blocks-carousel__autoplay-playing":g,"newspack-block--disabled":i,"hide-controls":x}),R=(0,c.__experimentalGetSettings)().formats.date,B=a&&!a.length,$=a&&1===a.length,F=a?Math.min(S,a.length):S,H=[{value:1,label:/* translators: label for square aspect ratio option */ /* translators: label for square aspect ratio option */(0,s.__)("Square","newspack-blocks"),shortName:/* translators: abbreviation for 1:1 aspect ratio */ /* translators: abbreviation for 1:1 aspect ratio */(0,s.__)("1:1","newspack-blocks")},{value:.75,label:/* translators: label for 4:3 aspect ratio option */ /* translators: label for 4:3 aspect ratio option */(0,s.__)("4:3","newspack-blocks"),shortName:/* translators: abbreviation for 4:3 aspect ratio */ /* translators: abbreviation for 4:3 aspect ratio */(0,s.__)("4:3","newspack-blocks")},{value:.5625,label:/* translators: label for 16:9 aspect ratio option */ /* translators: label for 16:9 aspect ratio option */(0,s.__)("16:9","newspack-blocks"),shortName:/* translators: abbreviation for 16:9 aspect ratio */ /* translators: abbreviation for 16:9 aspect ratio */(0,s.__)("16:9","newspack-blocks")},{value:4/3,label:/* translators: label for 3:4 aspect ratio option */ /* translators: label for 3:4 aspect ratio option */(0,s.__)("3:4","newspack-blocks"),shortName:/* translators: abbreviation for 3:4 aspect ratio */ /* translators: abbreviation for 3:4 aspect ratio */(0,s.__)("3:4","newspack-blocks")},{value:16/9,label:/* translators: label for 9:16 aspect ratio option */ /* translators: label for 9:16 aspect ratio option */(0,s.__)("9:16","newspack-blocks"),shortName:/* translators: abbreviation for 9:16 aspect ratio */ /* translators: abbreviation for 9:16 aspect ratio */(0,s.__)("9:16","newspack-blocks")}];return(0,Fe.jsxs)(u.Fragment,{children:[(0,Fe.jsxs)("div",{className:N,ref:this.carouselRef,children:[B&&(0,Fe.jsx)(r.Placeholder,{className:"component-placeholder__align-center",children:(0,Fe.jsx)("div",{style:{margin:"auto"},children:(0,s.__)("Sorry, no posts were found.")})}),(!this.state.swiperInitialized||!a)&&(0,Fe.jsx)(r.Placeholder,{icon:(0,Fe.jsx)(r.Spinner,{}),className:"component-placeholder__align-center"}),a&&(0,Fe.jsxs)(u.Fragment,{children:[g&&(0,Fe.jsxs)(u.Fragment,{children:[(0,Fe.jsx)("button",{className:"swiper-button swiper-button-pause",ref:this.btnPauseRef}),(0,Fe.jsx)("button",{className:"swiper-button swiper-button-play",ref:this.btnPlayRef})]}),(0,Fe.jsx)("div",{className:"swiper-wrapper",children:a.map((e=>(0,Fe.jsxs)("article",{className:`post-has-image swiper-slide ${e.post_type} ${e.newspack_article_classes||""}`,children:[(0,Be.X8)(e),(0,Fe.jsx)("figure",{className:"post-thumbnail",children:(0,Fe.jsx)("a",{href:"#",rel:"bookmark",children:e.newspack_featured_image_src?(0,Fe.jsx)("img",{className:`image-fit-${k}`,src:e.newspack_featured_image_src.large,alt:""}):(0,Fe.jsx)("div",{className:"wp-block-newspack-blocks-carousel__placeholder"})})}),(e.newspack_post_sponsors||j||I||T||C||P||A)&&(0,Fe.jsxs)("div",{className:"entry-wrapper",children:[(e.newspack_post_sponsors||j&&0<e.newspack_category_info.length)&&(0,Fe.jsxs)("div",{className:"cat-links"+(e.newspack_post_sponsors?" sponsor-label":""),children:[e.newspack_post_sponsors&&(0,Fe.jsx)("span",{className:"flag",children:e.newspack_post_sponsors[0].flag}),j&&(!e.newspack_post_sponsors||e.newspack_sponsors_show_categories)&&(0,Fe.jsx)(u.RawHTML,{children:(0,h.decodeEntities)(e.newspack_category_info)})]}),I&&(0,Fe.jsx)("h3",{className:"entry-title",children:(0,Fe.jsx)("a",{href:"#",children:(0,h.decodeEntities)(e.title.rendered.trim())})}),(0,Fe.jsxs)("div",{className:"entry-meta",children:[e.newspack_post_sponsors&&(0,Fe.jsxs)("span",{className:"entry-sponsors "+(e.newspack_sponsors_show_author?"plus-author":""),children:[(0,Be.__)(e.newspack_post_sponsors),(0,Be.vQ)(e.newspack_post_sponsors)]}),T&&!e.newspack_listings_hide_author&&(!e.newspack_post_sponsors||e.newspack_sponsors_show_author)&&(0,Fe.jsx)(u.RawHTML,{className:"byline-container",children:(0,Be.pO)(e,M)}),C&&(0,Fe.jsx)("time",{className:"entry-date published",children:(0,c.dateI18n)(R,e.date)},"pub-date"),(P||A)&&e.newspack_featured_image_caption&&(0,Fe.jsx)("div",{className:"entry-caption",dangerouslySetInnerHTML:{__html:e.newspack_featured_image_caption}})]})]})]},e.id)))}),!B&&!$&&(0,Fe.jsxs)(Fe.Fragment,{children:[(0,Fe.jsx)("button",{className:"swiper-button swiper-button-prev",ref:this.btnPrevRef}),(0,Fe.jsx)("button",{className:"swiper-button swiper-button-next",ref:this.btnNextRef}),(0,Fe.jsx)("div",{className:"swiper-pagination swiper-pagination-bullets",ref:this.paginationRef})]})]})]}),(0,Fe.jsxs)(l.InspectorControls,{children:[(0,Fe.jsx)(r.PanelBody,{title:(0,s.__)("Content","newspack-blocks"),className:"newspack-block__panel is-content",children:S&&(0,Fe.jsx)(f.A,{numberOfItems:S,onNumberOfItemsChange:e=>n({postsToShow:e||1}),authors:p,onAuthorsChange:e=>n({authors:e}),categories:v,onCategoriesChange:e=>n({categories:e}),includeSubcategories:b,onIncludeSubcategoriesChange:e=>n({includeSubcategories:e}),categoryJoinType:w,onCategoryJoinTypeChange:e=>n({categoryJoinType:e}),tags:z,onTagsChange:e=>n({tags:e}),onCustomTaxonomiesChange:e=>n({customTaxonomies:e}),customTaxonomies:y,specificMode:L,onSpecificModeChange:()=>n({specificMode:!0}),onLoopModeChange:()=>n({specificMode:!1}),specificPosts:D,onSpecificPostsChange:e=>n({specificPosts:e}),postType:E})}),(0,Fe.jsxs)(r.PanelBody,{title:(0,s.__)("Display","newspack-blocks"),children:[(0,Fe.jsx)(r.ToggleControl,{label:(0,s.__)("Hide Controls","newspack-blocks"),help:(0,s.__)("Remove navigation indicators from view.","newspack-blocks"),checked:x,onChange:e=>{n({hideControls:e})}}),(0,Fe.jsx)(r.ToggleControl,{label:(0,s.__)("Autoplay","newspack-blocks"),help:(0,s.__)("Automatically advance through slides.","newspack-blocks"),checked:g,onChange:e=>{n({autoplay:e})}}),g&&(0,Fe.jsx)(r.RangeControl,{label:(0,s.__)("Transition delay","newspack-blocks"),value:_,onChange:e=>{n({delay:e})},min:1,max:20,help:(0,s.__)("Set the waiting time between automatic slide transitions in seconds.","newspack-blocks"),__next40pxDefaultSize:!0}),a&&1<a.length&&(0,Fe.jsx)(r.RangeControl,{label:(0,s.__)("Slides per view","newspack-blocks"),value:O<=a.length?O:a.length,onChange:e=>{n({slidesPerView:e})},min:1,max:L?Math.min(6,a.length):Math.min(6,F),help:(0,s.__)("Choose how many slides appear on screen simultaneously.","newspack-blocks"),__next40pxDefaultSize:!0})]}),(0,Fe.jsxs)(r.PanelBody,{title:(0,s.__)("Featured Image","newspack-blocks"),className:"newspack-block__panel",children:[(0,Fe.jsx)(r.BaseControl,{label:(0,s.__)("Aspect ratio","newspack-blocks"),help:(0,s.__)("All slides will share the same aspect ratio, for consistency.","newspack-blocks"),id:"newspack-blocks__aspect-ratio-control",className:"newspack-block__button-group",children:(0,Fe.jsx)(r.ButtonGroup,{children:H.map((e=>{const t=d===e.value;return(0,Fe.jsx)(r.Button,{isPrimary:t,"aria-pressed":t,"aria-label":e.label,onClick:()=>n({aspectRatio:e.value}),children:e.shortName},e.value)}))})}),(0,Fe.jsx)(r.BaseControl,{label:(0,s.__)("Fit","newspack-blocks"),help:"cover"===k?(0,s.__)("The image will fill the entire slide and will be cropped if necessary.","newspack-blocks"):(0,s.__)("The image will be resized to fit inside the slide without being cropped.","newspack-blocks"),id:"newspack-blocks__blocks__image-fit-control",className:"newspack-block__button-group",children:(0,Fe.jsxs)(r.ButtonGroup,{children:[(0,Fe.jsx)(r.Button,{isPrimary:"cover"===k,"aria-pressed":"cover"===k,"aria-label":(0,s.__)("Cover","newspack-blocks"),onClick:()=>n({imageFit:"cover"}),children:(0,s.__)("Cover","newspack-blocks")}),(0,Fe.jsx)(r.Button,{isPrimary:"contain"===k,"aria-pressed":"contain"===k,"aria-label":(0,s.__)("Contain","newspack-blocks"),onClick:()=>n({imageFit:"contain"}),children:(0,s.__)("Contain","newspack-blocks")})]})}),(0,Fe.jsx)(r.ToggleControl,{label:(0,s.__)("Show caption","newspack-blocks"),checked:P,onChange:()=>n({showCaption:!P})}),(0,Fe.jsx)(r.ToggleControl,{label:(0,s.__)("Show credit","newspack-blocks"),checked:A,onChange:()=>n({showCredit:!A})})]}),(0,Fe.jsxs)(r.PanelBody,{title:(0,s.__)("Post Meta","newspack-blocks"),children:[(0,Fe.jsx)(r.ToggleControl,{label:(0,s.__)("Show title","newspack-blocks"),checked:I,onChange:()=>n({showTitle:!I})}),(0,Fe.jsx)(r.ToggleControl,{label:(0,s.__)("Show date","newspack-blocks"),checked:C,onChange:()=>n({showDate:!C})}),(0,Fe.jsx)(r.ToggleControl,{label:(0,s.__)("Show category","newspack-blocks"),checked:j,onChange:()=>n({showCategory:!j})}),(0,Fe.jsx)(r.ToggleControl,{label:(0,s.__)("Show author","newspack-blocks"),checked:T,onChange:()=>n({showAuthor:!T})}),(0,Fe.jsx)(r.ToggleControl,{label:(0,s.__)("Show avatar","newspack-blocks"),checked:M,onChange:()=>n({showAvatar:!M}),disabled:!T})]}),(0,Fe.jsx)(m.O,{attributes:e,setAttributes:n}),(0,Fe.jsx)(m.X,{attributes:e,setAttributes:n})]})]})}}const qe=(0,p.compose)([(0,d.withSelect)($e.cR),(0,d.withDispatch)($e.Fl)])(He),Ve=JSON.parse('{"UU":"carousel","L1":"newspack","uK":{"className":{"type":"string","default":""},"imageFit":{"type":"string","default":"cover"},"autoplay":{"type":"boolean","default":false},"delay":{"type":"number","default":5},"postsToShow":{"type":"integer","default":3},"authors":{"type":"array"},"categories":{"type":"array"},"includeSubcategories":{"type":"boolean","default":true},"categoryJoinType":{"type":"string","default":"or","enum":["or","all"]},"tags":{"type":"array"},"customTaxonomies":{"type":"array"},"showDate":{"type":"boolean","default":true},"showAuthor":{"type":"boolean","default":true},"showAvatar":{"type":"boolean","default":true},"showCaption":{"type":"boolean","default":false},"showCredit":{"type":"boolean","default":false},"showCategory":{"type":"boolean","default":false},"showTitle":{"type":"boolean","default":true},"postType":{"type":"array","default":["post"],"items":{"type":"string"}},"specificMode":{"type":"boolean","default":false},"specificPosts":{"type":"array","default":[],"items":{"type":"integer"}},"slidesPerView":{"type":"number","default":1},"hideControls":{"type":"boolean","default":false},"aspectRatio":{"type":"number","default":0.75},"includedPostStatuses":{"type":"array","default":["publish"],"items":{"type":"string"}}}}'),{UU:Ue,uK:Ge,L1:We}=Ve,Ye={title:(0,s.__)("Content Carousel","newspack-blocks"),icon:{src:(0,Fe.jsxs)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,Fe.jsx)(r.Path,{clipRule:"evenodd",d:"M7 18V6a2 2 0 012-2h6a2 2 0 012 2v12a2 2 0 01-2 2H9a2 2 0 01-2-2zM8.5 6v12a.5.5 0 00.5.5h6a.5.5 0 00.5-.5V6a.5.5 0 00-.5-.5H9a.5.5 0 00-.5.5z",fillRule:"evenodd"}),(0,Fe.jsx)(r.Path,{d:"M4 18.5v-13h1.5v13zM18.5 5.5v13H20v-13z"})]}),foreground:"#406ebc"},attributes:Ge,category:We,keywords:[(0,s.__)("posts","newspack-blocks"),(0,s.__)("articles","newspack-blocks"),(0,s.__)("latest","newspack-blocks"),(0,s.__)("query","newspack-blocks")],description:(0,s.__)("An advanced block that displays content in a carousel format with customizable parameters and visual configurations.","newspack-blocks"),supports:{html:!1,align:["center","wide","full"]},edit:qe,save:()=>null}},6588:(e,t,n)=>{"use strict";n.d(t,{C:()=>o,t:()=>l});var r=n(8468);const s="wpbnbd",a=`${s}--selected`,i=Array.from(document.querySelectorAll(`.${s}`)),o=(e,t)=>{const n=`donation_value_${t.donation_frequency}`;n&&(Array.from(e.classList).forEach((t=>{t.startsWith(a)&&e.classList.remove(t)})),e.classList.add(`${a}-${t[n]}`))},l=e=>{const t=new FormData(e),n={};return t.forEach(((e,t)=>{(0,r.isString)(t)&&(0,r.isString)(e)&&(n[t]=e)})),n};i.forEach((e=>{const t=e.querySelector("form");t&&(o(e,l(t)),t.addEventListener("change",(()=>o(e,l(t)))))}))},4440:(e,t,n)=>{"use strict";function r(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}n.d(t,{C:()=>lt,n:()=>wt});var s=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),a=()=>Math.random().toString(36).substring(7).split("").join("."),i={INIT:`@@redux/INIT${a()}`,REPLACE:`@@redux/REPLACE${a()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${a()}`};var o=function(e){return"@@redux-saga/"+e},l=o("CANCEL_PROMISE"),c=o("CHANNEL_END"),u=o("IO"),d=o("MATCH"),p=o("MULTICAST"),h=o("SAGA_ACTION"),f=o("SELF_CANCELLATION"),m=o("TASK"),g=o("TASK_CANCEL"),v=o("TERMINATE"),b=o("LOCATION"),w=function(e){return null==e},y=function(e){return null!=e},_=function(e){return"function"==typeof e},x=function(e){return"string"==typeof e},k=Array.isArray,S=function(e){return e&&_(e.then)},E=function(e){return e&&_(e.next)&&_(e.throw)},j=function e(t){return t&&(x(t)||M(t)||_(t)||k(t)&&t.every(e))},C=function(e){return e&&_(e.take)&&_(e.close)},T=function(e){return _(e)&&e.hasOwnProperty("toString")},M=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},P=function(e){return C(e)&&e[p]},A=n(8168);const I=function(e,t){var n;void 0===t&&(t=!0);var r=new Promise((function(r){n=setTimeout(r,Math.min(2147483647,e),t)}));return r[l]=function(){clearTimeout(n)},r};var O=function(e){return function(){return true}}(),L=function(){},D=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var z=function(e,t){(0,A.A)(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function N(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}var R=function(e){throw e},B=function(e){return{value:e,done:!0}};function $(e,t,n){void 0===t&&(t=R),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:B,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function F(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var H=function(e){return Array.apply(null,new Array(e))},q=function(e){return function(t){return e(Object.defineProperty(t,h,{value:!0}))}},V=function(e){return e===v},U=function(e){return e===g},G=function(e){return V(e)||U(e)};function W(e,t){var n,r=Object.keys(e),s=r.length,a=0,i=k(e)?H(s):{},o={};return r.forEach((function(e){var r=function(r,o){n||(o||G(r)?(t.cancel(),t(r,o)):(i[e]=r,++a===s&&(n=!0,t(i))))};r.cancel=L,o[e]=r})),t.cancel=function(){n||(n=!0,r.forEach((function(e){return o[e].cancel()})))},o}function Y(e){return{name:e.name||"anonymous",location:X(e)}}function X(e){return e[b]}function K(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var J=function(e){return function(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,s=0,a=0,i=function(t){n[s]=t,s=(s+1)%e,r++},o=function(){if(0!=r){var t=n[a];return n[a]=null,r--,a=(a+1)%e,t}},l=function(){for(var e=[];r;)e.push(o());return e};return{isEmpty:function(){return 0==r},put:function(o){var c;if(r<e)i(o);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[s]=o,a=s=(s+1)%e;break;case 4:c=2*e,n=l(),r=n.length,s=n.length,a=0,n.length=c,e=c,i(o)}},take:o,flush:l}}(e,4)},Q="TAKE",Z="PUT",ee="CALL",te="FORK",ne="CANCEL",re=function(e,t){var n;return(n={})[u]=!0,n.combinator=!1,n.type=e,n.payload=t,n};function se(e,t){return void 0===e&&(e="*"),j(e)?(y(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),re(Q,{pattern:e})):P(e)&&y(t)&&j(t)?re(Q,{channel:e,pattern:t}):C(e)?(y(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),re(Q,{channel:e})):void 0}function ae(e,t){return w(t)&&(t=e,e=void 0),re(Z,{channel:e,action:t})}function ie(e,t){var n,r=null;return _(e)?n=e:(k(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&x(n)&&_(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function oe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return re(ee,ie(e,n))}function le(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return re(te,ie(e,n))}var ce=oe.bind(null,I),ue=function(e){return{done:!0,value:e}},de={};function pe(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),s=2;s<n;s++)r[s-2]=arguments[s];var a,i,o={done:!1,value:se(e)},l=function(e){return{done:!1,value:le.apply(void 0,[t].concat(r,[e]))}},c=function(e){return{done:!1,value:(t=e,void 0===t&&(t=f),re(ne,t))};var t},u=function(e){return a=e},d=function(e){return i=e};return function(e,t,n){var r,s,a,i=t;function o(t,n){if(i===de)return ue(t);if(n&&!s)throw i=de,n;r&&r(t);var o=n?e[s](n):e[i]();return i=o.nextState,a=o.effect,r=o.stateUpdater,s=o.errorState,i===de?ue(t):a}return $(o,(function(e){return o(null,e)}),n)}({q1:function(){return{nextState:"q2",effect:o,stateUpdater:d}},q2:function(){return a?{nextState:"q3",effect:c(a)}:{nextState:"q1",effect:l(i),stateUpdater:u}},q3:function(){return{nextState:"q1",effect:l(i),stateUpdater:u}}},"q1","takeLatest("+function(e){return C(e)?"channel":T(e)?String(e):_(e)?e.name:String(e)}(e)+", "+t.name+")")}var he=n(8587);const fe=function(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e};var me=[],ge=0;function ve(e){try{ye(),e()}finally{_e()}}function be(e){me.push(e),ge||(ye(),xe())}function we(e){try{return ye(),e()}finally{xe()}}function ye(){ge++}function _e(){ge--}function xe(){var e;for(_e();!ge&&void 0!==(e=me.shift());)ve(e)}var ke=function(e){return function(t){return e.some((function(e){return Te(e)(t)}))}},Se=function(e){return function(t){return e(t)}},Ee=function(e){return function(t){return t.type===String(e)}},je=function(e){return function(t){return t.type===e}},Ce=function(){return O};function Te(e){var t="*"===e?Ce:x(e)?Ee:k(e)?ke:T(e)?Ee:_(e)?Se:M(e)?je:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var Me={type:c},Pe=function(e){return e&&e.type===c};function Ae(){var e,t,n,r,s,a,i=(t=!1,r=n=[],s=function(){r===n&&(r=n.slice())},a=function(){t=!0;var e=n=r;r=[],e.forEach((function(e){e(Me)}))},(e={})[p]=!0,e.put=function(e){if(!t)if(Pe(e))a();else for(var s=n=r,i=0,o=s.length;i<o;i++){var l=s[i];l[d](e)&&(l.cancel(),l(e))}},e.take=function(e,n){var a,i;void 0===n&&(n=Ce),t?e(Me):(e[d]=n,s(),r.push(e),e.cancel=(a=function(){s(),N(r,e)},i=!1,function(){i||(i=!0,a())}))},e.close=a,e),o=i.put;return i.put=function(e){e[h]?o(e):be((function(){o(e)}))},i}var Ie=0,Oe=1,Le=2,De=3;function ze(e,t){var n=e[l];_(n)&&(t.cancel=n),e.then(t,(function(e){t(e,!0)}))}var Ne,Re=0,Be=function(){return++Re};function $e(e){e.isRunning()&&e.cancel()}var Fe=((Ne={})[Q]=function(e,t,n){var r=t.channel,s=void 0===r?e.channel:r,a=t.pattern,i=t.maybe,o=function(e){e instanceof Error?n(e,!0):!Pe(e)||i?n(e):n(v)};try{s.take(o,y(a)?Te(a):null)}catch(e){return void n(e,!0)}n.cancel=o.cancel},Ne[Z]=function(e,t,n){var r=t.channel,s=t.action,a=t.resolve;be((function(){var t;try{t=(r?r.put:e.dispatch)(s)}catch(e){return void n(e,!0)}a&&S(t)?ze(t,n):n(t)}))},Ne.ALL=function(e,t,n,r){var s=r.digestEffect,a=Re,i=Object.keys(t);if(0!==i.length){var o=W(t,n);i.forEach((function(e){s(t[e],a,o[e],e)}))}else n(k(t)?[]:{})},Ne.RACE=function(e,t,n,r){var s=r.digestEffect,a=Re,i=Object.keys(t),o=k(t)?H(i.length):{},l={},c=!1;i.forEach((function(e){var t=function(t,r){c||(r||G(t)?(n.cancel(),n(t,r)):(n.cancel(),c=!0,o[e]=t,n(o)))};t.cancel=L,l[e]=t})),n.cancel=function(){c||(c=!0,i.forEach((function(e){return l[e].cancel()})))},i.forEach((function(e){c||s(t[e],a,l[e],e)}))},Ne[ee]=function(e,t,n,r){var s=t.context,a=t.fn,i=t.args,o=r.task;try{var l=a.apply(s,i);if(S(l))return void ze(l,n);if(E(l))return void Je(e,l,o.context,Re,Y(a),!1,n);n(l)}catch(e){n(e,!0)}},Ne.CPS=function(e,t,n){var r=t.context,s=t.fn,a=t.args;try{var i=function(e,t){w(e)?n(t):n(e,!0)};s.apply(r,a.concat(i)),i.cancel&&(n.cancel=i.cancel)}catch(e){n(e,!0)}},Ne[te]=function(e,t,n,r){var s=t.context,a=t.fn,i=t.args,o=t.detached,l=r.task,c=function(e){var t=e.context,n=e.fn,r=e.args;try{var s=n.apply(t,r);if(E(s))return s;var a=!1;return $((function(e){return a?{value:e,done:!0}:(a=!0,{value:s,done:!S(s)})}))}catch(e){return $((function(){throw e}))}}({context:s,fn:a,args:i}),u=function(e,t){return e.isSagaIterator?{name:e.meta.name}:Y(t)}(c,a);we((function(){var t=Je(e,c,l.context,Re,u,o,void 0);o?n(t):t.isRunning()?(l.queue.addTask(t),n(t)):t.isAborted()?l.queue.abort(t.error()):n(t)}))},Ne.JOIN=function(e,t,n,r){var s=r.task,a=function(e,t){if(e.isRunning()){var n={task:s,cb:t};t.cancel=function(){e.isRunning()&&N(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())};if(k(t)){if(0===t.length)return void n([]);var i=W(t,n);t.forEach((function(e,t){a(e,i[t])}))}else a(t,n)},Ne[ne]=function(e,t,n,r){var s=r.task;t===f?$e(s):k(t)?t.forEach($e):$e(t),n()},Ne.SELECT=function(e,t,n){var r=t.selector,s=t.args;try{n(r.apply(void 0,[e.getState()].concat(s)))}catch(e){n(e,!0)}},Ne.ACTION_CHANNEL=function(e,t,n){var r=t.pattern,s=function(e){void 0===e&&(e=J());var t=!1,n=[];return{take:function(r){t&&e.isEmpty()?r(Me):e.isEmpty()?(n.push(r),r.cancel=function(){N(n,r)}):r(e.take())},put:function(r){if(!t){if(0===n.length)return e.put(r);n.shift()(r)}},flush:function(n){t&&e.isEmpty()?n(Me):n(e.flush())},close:function(){if(!t){t=!0;var e=n;n=[];for(var r=0,s=e.length;r<s;r++)(0,e[r])(Me)}}}}(t.buffer),a=Te(r),i=function t(n){Pe(n)||e.channel.take(t,a),s.put(n)},o=s.close;s.close=function(){i.cancel(),o()},e.channel.take(i,a),n(s)},Ne.CANCELLED=function(e,t,n,r){n(r.task.isCancelled())},Ne.FLUSH=function(e,t,n){t.flush(n)},Ne.GET_CONTEXT=function(e,t,n,r){n(r.task.context[t])},Ne.SET_CONTEXT=function(e,t,n,r){var s=r.task;z(s.context,t),n()},Ne);function He(e,t){return e+"?"+t}function qe(e){var t=e.name,n=e.location;return n?t+" "+He(n.fileName,n.lineNumber):t}function Ve(e){var t,n,r,s=(t=function(e){return e.cancelledTasks},n=e,(r=[]).concat.apply(r,n.map(t)));return s.length?["Tasks cancelled due to error:"].concat(s).join("\n"):""}var Ue=null,Ge=[],We=function(e){e.crashedEffect=Ue,Ge.push(e)},Ye=function(){Ue=null,Ge.length=0},Xe=function(e){Ue=e},Ke=function(){var e,t,n=Ge[0],r=Ge.slice(1),s=n.crashedEffect?(e=n.crashedEffect,(t=X(e))?t.code+" "+He(t.fileName,t.lineNumber):""):null;return["The above error occurred in task "+qe(n.meta)+(s?" \n when executing effect "+s:"")].concat(r.map((function(e){return" created by "+qe(e.meta)})),[Ve(Ge)]).join("\n")};function Je(e,t,n,r,s,a,i){var o=e.finalizeRunEffect((function(t,n,r){S(t)?ze(t,r):E(t)?Je(e,t,c.context,n,s,!1,r):t&&t[u]?(0,Fe[t.type])(e,t.payload,r,d):r(t)}));p.cancel=L;var l={meta:s,cancel:function(){l.status===Ie&&(l.status=Oe,p(g))},status:Ie},c=function(e,t,n,r,s,a,i){var o;void 0===i&&(i=L);var l,c,u=Ie,d=null,p=[],h=Object.create(n),f=function(e,t,n){var r,s=[],a=!1;function i(e){t(),l(),n(e,!0)}function o(t){s.push(t),t.cont=function(o,l){a||(N(s,t),t.cont=L,l?i(o):(t===e&&(r=o),s.length||(a=!0,n(r))))}}function l(){a||(a=!0,s.forEach((function(e){e.cont=L,e.cancel()})),s=[])}return o(e),{addTask:o,cancelAll:l,abort:i,getTasks:function(){return s}}}(t,(function(){p.push.apply(p,f.getTasks().map((function(e){return e.meta.name})))}),v);function v(t,n){if(n){if(u=Le,We({meta:s,cancelledTasks:p}),b.isRoot){var r=Ke();Ye(),e.onError(t,{sagaStack:r})}c=t,d&&d.reject(t)}else t===g?u=Oe:u!==Oe&&(u=De),l=t,d&&d.resolve(t);b.cont(t,n),b.joiners.forEach((function(e){e.cb(t,n)})),b.joiners=null}var b=((o={})[m]=!0,o.id=r,o.meta=s,o.isRoot=a,o.context=h,o.joiners=[],o.queue=f,o.cancel=function(){u===Ie&&(u=Oe,f.cancelAll(),v(g,!1))},o.cont=i,o.end=v,o.setContext=function(e){z(h,e)},o.toPromise=function(){return d||(d=fe(),u===Le?d.reject(c):u!==Ie&&d.resolve(l)),d.promise},o.isRunning=function(){return u===Ie},o.isCancelled=function(){return u===Oe||u===Ie&&t.status===Oe},o.isAborted=function(){return u===Le},o.result=function(){return l},o.error=function(){return c},o);return b}(e,l,n,r,s,a,i),d={task:c,digestEffect:h};return i&&(i.cancel=c.cancel),p(),c;function p(e,n){try{var s;n?(s=t.throw(e),Ye()):U(e)?(l.status=Oe,p.cancel(),s=_(t.return)?t.return(g):{done:!0,value:g}):s=V(e)?_(t.return)?t.return():{done:!0}:t.next(e),s.done?(l.status!==Oe&&(l.status=De),l.cont(s.value)):h(s.value,r,p)}catch(e){if(l.status===Oe)throw e;l.status=Le,l.cont(e,!0)}}function h(t,n,r,s){void 0===s&&(s="");var a,i=Be();function l(n,s){a||(a=!0,r.cancel=L,e.sagaMonitor&&(s?e.sagaMonitor.effectRejected(i,n):e.sagaMonitor.effectResolved(i,n)),s&&Xe(t),r(n,s))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:i,parentEffectId:n,label:s,effect:t}),l.cancel=L,r.cancel=function(){a||(a=!0,l.cancel(),l.cancel=L,e.sagaMonitor&&e.sagaMonitor.effectCancelled(i))},o(t,i,l)}}function Qe(e,t){for(var n=e.channel,r=void 0===n?Ae():n,s=e.dispatch,a=e.getState,i=e.context,o=void 0===i?{}:i,l=e.sagaMonitor,c=e.effectMiddlewares,u=e.onError,d=void 0===u?F:u,p=arguments.length,h=new Array(p>2?p-2:0),f=2;f<p;f++)h[f-2]=arguments[f];var m,g=t.apply(void 0,h),v=Be();if(l&&(l.rootSagaStarted=l.rootSagaStarted||L,l.effectTriggered=l.effectTriggered||L,l.effectResolved=l.effectResolved||L,l.effectRejected=l.effectRejected||L,l.effectCancelled=l.effectCancelled||L,l.actionDispatched=l.actionDispatched||L,l.rootSagaStarted({effectId:v,saga:t,args:h})),c){var b=K.apply(void 0,c);m=function(e){return function(t,n,r){return b((function(t){return e(t,n,r)}))(t)}}}else m=D;var w={channel:r,dispatch:q(s),getState:a,sagaMonitor:l,onError:d,finalizeRunEffect:m};return we((function(){var e=Je(w,g,o,v,Y(t),!0,void 0);return l&&l.effectResolved(v,e),e}))}const Ze=function(e){var t,n=void 0===e?{}:e,r=n.context,s=void 0===r?{}:r,a=n.channel,i=void 0===a?Ae():a,o=n.sagaMonitor,l=(0,he.A)(n,["context","channel","sagaMonitor"]);function c(e){var n=e.getState,r=e.dispatch;return t=Qe.bind(null,(0,A.A)({},l,{context:s,channel:i,dispatch:r,getState:n,sagaMonitor:o})),function(e){return function(t){o&&o.actionDispatched&&o.actionDispatched(t);var n=e(t);return i.put(t),n}}}return c.run=function(){return t.apply(void 0,arguments)},c.setContext=function(e){z(s,e)},c};var et=n(8468),tt=n(7143),nt=n(1455),rt=n.n(nt),st=n(3832),at=n(1126),it=n(2859);const{UU:ot}=at,lt=`newspack-blocks/${ot}`,ct={postsByBlock:{},errorsByBlock:{}},ut={reflow:()=>{ht.dispatch({type:"REFLOW"})}},dt={getPosts:({clientId:e})=>ht.getState().postsByBlock[e],getError:({clientId:e})=>ht.getState().errorsByBlock[e],isUIDisabled:()=>ht.getState().isUIDisabled},pt=Ze(),ht=function e(t,n,a){if("function"!=typeof t)throw new Error(r(2));if("function"==typeof n&&"function"==typeof a||"function"==typeof a&&"function"==typeof arguments[3])throw new Error(r(0));if("function"==typeof n&&void 0===a&&(a=n,n=void 0),void 0!==a){if("function"!=typeof a)throw new Error(r(1));return a(e)(t,n)}let o=t,l=n,c=new Map,u=c,d=0,p=!1;function h(){u===c&&(u=new Map,c.forEach(((e,t)=>{u.set(t,e)})))}function f(){if(p)throw new Error(r(3));return l}function m(e){if("function"!=typeof e)throw new Error(r(4));if(p)throw new Error(r(5));let t=!0;h();const n=d++;return u.set(n,e),function(){if(t){if(p)throw new Error(r(6));t=!1,h(),u.delete(n),c=null}}}function g(e){if(!function(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}(e))throw new Error(r(7));if(void 0===e.type)throw new Error(r(8));if("string"!=typeof e.type)throw new Error(r(17));if(p)throw new Error(r(9));try{p=!0,l=o(l,e)}finally{p=!1}return(c=u).forEach((e=>{e()})),e}return g({type:i.INIT}),{dispatch:g,subscribe:m,getState:f,replaceReducer:function(e){if("function"!=typeof e)throw new Error(r(10));o=e,g({type:i.REPLACE})},[s]:function(){const e=m;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(r(11));function n(){const e=t;e.next&&e.next(f())}return n(),{unsubscribe:e(n)}},[s](){return this}}}}}(((e=ct,t)=>{switch(t.type){case"DISABLE_UI":return(0,et.set)(e,"isUIDisabled",!0);case"ENABLE_UI":return(0,et.set)(e,"isUIDisabled",!1);case"UPDATE_BLOCK_POSTS":return(0,et.set)(e,["postsByBlock",t.clientId],t.posts);case"UPDATE_BLOCK_ERROR":return(0,et.set)(e,["errorsByBlock",t.clientId],t.error)}return e}),function(...e){return t=>(n,s)=>{const a=t(n,s);let i=()=>{throw new Error(r(15))};const o={getState:a.getState,dispatch:(e,...t)=>i(e,...t)},l=e.map((e=>e(o)));return i=function(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}(...l)(a.dispatch),{...a,dispatch:i}}}(pt)),ft={getSelectors:()=>dt,getActions:()=>ut,...ht},mt={},gt=JSON.stringify;function*vt(e){const t=gt(e.postsQuery),n=window.newspack_blocks_data.posts_rest_url;let r=mt[t];if(void 0===r){const s=(0,st.addQueryArgs)(n,{...e.postsQuery,context:"edit"});r=yield oe(rt(),{url:s}),mt[t]=r}const s=r.map((e=>e.id));return yield ae({type:"UPDATE_BLOCK_POSTS",clientId:e.clientId,posts:r}),s}function bt(e){const{getBlock:t}=(0,tt.select)("core/block-editor"),n=t(e);return n?.attributes?.deduplicate}const wt=e=>{(0,tt.register)({name:lt,instantiate:()=>ft}),pt.run((e=>{function*t(){yield ce(300);const{getBlocks:t}=(0,tt.select)("core/block-editor"),{getCurrentPostId:n}=(0,tt.select)("core/editor");yield ae({type:"DISABLE_UI"});const r=(0,it.u$)(t),s=(0,it.yG)(r,e),a=s.reduce(((e,{clientId:t,postsQuery:n})=>(bt(t)&&n.include&&(e=[...e,...n.include]),e)),[]);let i=(0,it.kN)([...a,n()]);for(;s.length;){const e=s.shift(),t=bt(e.clientId);t&&(e.postsQuery.exclude=i);let n=[];try{n=yield oe(vt,e)}catch(t){yield ae({type:"UPDATE_BLOCK_ERROR",clientId:e.clientId,error:t.message})}t&&(i=[...i,...n])}yield ae({type:"ENABLE_UI"})}return function*(){yield function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),s=2;s<n;s++)r[s-2]=arguments[s];return le.apply(void 0,[pe,e,t].concat(r))}("REFLOW",t)}})(e))}},2859:(e,t,n)=>{"use strict";n.d(t,{Fl:()=>v,Wu:()=>i,cR:()=>g,kN:()=>c,pV:()=>l,u$:()=>b,yG:()=>d});var r=n(8468),s=n(7723),a=n(4440);const i=()=>"object"==typeof window&&window.wpcomGutenberg&&-1===Number(window.wpcomGutenberg.blogPublic),o=["postsToShow","authors","categories","includeSubcategories","categoryJoinType","excerptLength","tags","customTaxonomies","showExcerpt","specificPosts","specificMode","tagExclusions","categoryExclusions","customTaxonomyExclusions","postType","includedPostStatuses","deduplicate","showCaption","showCredit"],l=(e,t)=>!(0,r.isEqual)((0,r.pick)(e.attributes,o),(0,r.pick)(t.attributes,o))||!(0,r.isEqual)(e.topBlocksClientIdsInOrder,t.topBlocksClientIdsInOrder),c=e=>e.map((e=>parseInt(e))).filter((e=>e>0)),u=e=>(0,r.pickBy)(e,(e=>!(0,r.isUndefined)(e)&&!(0,r.isNull)(e))),d=(e,t)=>e.flatMap((e=>{const n=[];if(t.indexOf(e.name)>=0){const t=(e=>{const{postsToShow:t,authors:n,categories:s,includeSubcategories:a,categoryJoinType:i,excerptLength:l,postType:d,showExcerpt:p,showCaption:h,showCredit:f,tags:m,customTaxonomies:g,specificPosts:v=[],specificMode:b,tagExclusions:w,categoryExclusions:y,customTaxonomyExclusions:_,includedPostStatuses:x}=(0,r.pick)(e,o),k=c(v),S=b&&k&&k.length,E=(0,r.pickBy)(S?{include:k,postsToShow:v.length,postType:d}:{postsToShow:t,categories:u(s),includeSubcategories:a,categoryJoinType:i,authors:u(n),tags:u(m),tagExclusions:u(w),categoryExclusions:u(y),customTaxonomyExclusions:_,customTaxonomies:g,postType:d,includedPostStatuses:x},(e=>!(0,r.isUndefined)(e)));return E.excerptLength=l,E.showExcerpt=p,E.showCaption=h,E.showCredit=f,E})(e.attributes);n.push({postsQuery:t,clientId:e.clientId})}return n.concat(d(e.innerBlocks,t))})),p=e=>e.flatMap((e=>{const t=[];return t.push(e.clientId),t.concat(p(e.innerBlocks))})),h=window.newspack_blocks_data.assets_path,f=e=>{const t=new Date;return t.setHours(12,0,0,0),{author:1,content:{rendered:"<p>"+(0,s.__)("The post content.","newspack-blocks")+"</p>"},date:t.toISOString(),date_formatted:t.toLocaleString(),article_meta_footer:"",excerpt:{rendered:"<p>"+(0,s.__)("The post excerpt.","newspack-blocks")+"</p>"},full_content:(0,s.__)("Full post content.","newspack-blocks"),post_link:"/",featured_media:"1",id:e,post_type:"post",meta:{newspack_post_subtitle:(0,s.__)("Post Subtitle","newspack-blocks")},title:{rendered:(0,s.__)("Post Title","newspack-blocks")},newspack_article_classes:"type-post",newspack_post_avatars:'<div style="background: #e8e8e8;width: 40px;height: 40px;display: block;overflow: hidden;border-radius: 50%; max-width: 100%; max-height: 100%;" class="avatar"></div>',newspack_post_byline:`<span class="byline">\n\t\t\t<span class="author-prefix">${(0,s.__)("by","newspack-blocks")}</span>\n\t\t\t<span class="author vcard">\n\t\t\t\t<a class="url fn n" href="/">Author Name</a>\n\t\t\t</span>\n\t\t</span>`,newspack_category_info:(0,s.__)("Category","newspack-blocks"),newspack_featured_image_caption:(0,s.__)("Featured image caption","newspack-blocks"),newspack_featured_image_src:{large:`${h}/placeholder-1024x536.jpg`,landscape:`${h}/placeholder-800x600.jpg`,portrait:`${h}/placeholder-600x800.jpg`,square:`${h}/placeholder-800x800.jpg`,uncropped:`${h}/placeholder-1024x536.jpg`},newspack_has_custom_excerpt:!1,newspack_sponsors_show_categories:!1,newspack_sponsors_show_author:!1}},m=e=>(0,r.times)(e.postsToShow,f),g=(e,{clientId:t,attributes:n})=>{const{getBlocks:r}=e("core/block-editor"),{getEditedPostAttribute:s}=e("core/editor"),i=s("blocks")||[],o=[];for(const e of i)"core/block"===e.name?o.push(...r(e.clientId)):o.push(e);const l=p(o),c=r(),u=c.some((e=>"core/widget-area"===e.name)),d=0===l.length||l.indexOf(t)>=0||u,{getPosts:h,getError:f,isUIDisabled:g}=e(a.C);return{isEditorBlock:d,isUIDisabled:g(),error:f({clientId:t}),topBlocksClientIdsInOrder:c.map((e=>e.clientId)),latestPosts:d?h({clientId:t}):m(n)}},v=(e,{isEditorBlock:t})=>({triggerReflow:t?e(a.C).reflow:()=>{}}),b=(e,t=e())=>t.map((t=>{let n=0===t.innerBlocks.length?e(t.clientId):t.innerBlocks;return n=b(e,n),{...t,innerBlocks:n}}))},5858:(e,t,n)=>{"use strict";n.d(t,{P:()=>o});var r=n(6427),s=n(7723),a=n(790);const i=window.newspack_blocks_data?.author_custom_fields||[],o=({attributes:e,setAttributes:t})=>{const n=[{name:"Bio",label:(0,s.__)("Biographical info","newspack-blocks")},{name:"Social",label:(0,s.__)("Social links","newspack-blocks")},{name:"Email",label:(0,s.__)("Email address","newspack-blocks")},{name:"ArchiveLink",label:(0,s.__)("Link to author archive","newspack-blocks")},...i];return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{children:(0,s.__)("Display the following fields:","newspack-blocks")}),n.map((n=>{const s=`show${n.name}`;return(0,a.jsx)(r.ToggleControl,{label:n.label,checked:Boolean(e[s]),onChange:()=>t({[s]:!e[s]})},n.name)}))]})}},766:(e,t,n)=>{"use strict";n.d(t,{O:()=>l,X:()=>c});var r=n(7723),s=n(6427),a=n(7143),i=n(790);const o=({options:e,values:t,onChange:n,defaultRequiredSlug:r=null})=>Array.isArray(e)?e.map((({name:e,slug:a})=>{const o=r&&a===r,l=r&&t.some((e=>e!==r)),c=o&&!l;return(0,i.jsx)(s.CheckboxControl,{label:e,checked:t.indexOf(a)>-1,disabled:c,onChange:e=>{const s=[...new Set(t)];e&&-1===s.indexOf(a)?s.push(a):!e&&s.indexOf(a)>-1&&s.splice(s.indexOf(a),1),r&&0===s.length&&s.push(r),n(s)}},a)})):(0,i.jsx)(s.Spinner,{}),l=({attributes:e,setAttributes:t})=>{const{availablePostTypes:n}=(0,a.useSelect)((e=>{const{getPostTypes:t}=e("core"),n=(0,r.__)("Listings","newspack-blocks");return{availablePostTypes:t({per_page:-1})?.filter((({supports:{newspack_blocks:e}})=>e))?.map((e=>(0===e.slug.indexOf("newspack_lst")&&"newspack_lst_generic"!==e.slug&&-1===e.name.indexOf(n)&&(e.name=`${e.name} ${n}`),e)))}}));return(0,i.jsx)(s.PanelBody,{title:(0,r.__)("Post Types","newspack-blocks"),initialOpen:!1,children:(0,i.jsx)(o,{options:n,values:e.postType,onChange:e=>t({postType:e}),defaultRequiredSlug:"post"})})},c=({attributes:e,setAttributes:t})=>(0,i.jsxs)(s.PanelBody,{title:(0,r.__)("Additional Post Statuses","newspack-blocks"),initialOpen:!1,children:[(0,i.jsx)(s.BaseControl,{help:(0,r.__)("Selection here has effect only for editors, regular users will only see published posts.","newspack-blocks")}),(0,i.jsx)(o,{values:e.includedPostStatuses,options:[{name:"Draft",slug:"draft"},{name:"Scheduled",slug:"future"}],onChange:e=>t({includedPostStatuses:e})})]})},1225:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(7723),s=n(6087),a=n(6427),i=n(1455),o=n.n(i),l=n(3832),c=n(8537),u=n(8468),d=n(790);class p extends s.Component{constructor(e){super(e),this.state={suggestions:[],validValues:{},loading:this.isFetchingInfoOnLoad()},this.debouncedUpdateSuggestions=(0,u.debounce)(this.updateSuggestions,500)}isFetchingInfoOnLoad=()=>{const{tokens:e,fetchSavedInfo:t}=this.props;return Boolean(e.length&&t)};componentDidMount(){if(this.isFetchingInfoOnLoad()){const{tokens:e,fetchSavedInfo:t}=this.props;t(e).then((e=>{const{validValues:t}=this.state;e.forEach((e=>{t[e.value]=e.label})),this.setState({validValues:t,loading:!1})}))}}componentWillUnmount(){delete this.suggestionsRequest,this.debouncedUpdateSuggestions.cancel()}getLabelsForValues(e){const{validValues:t}=this.state;return e.reduce(((e,n)=>t[n]?[...e,t[n]]:e),[])}getValuesForLabels(e){const{validValues:t}=this.state;return e.map((e=>Object.keys(t).find((n=>t[n]===e)))).filter((e=>!!e))}updateSuggestions(e){const{fetchSuggestions:t}=this.props;t&&this.setState({loading:!0},(()=>{const n=t(e);n.then((e=>{if(this.suggestionsRequest!==n)return;const{validValues:t}=this.state,r=[];e.forEach((e=>{const n=e.label.trim();r.indexOf(n)>=0&&(e.label=`${n} (${e.value})`),r.push(n),t[e.value]=n})),this.setState({suggestions:r,validValues:t,loading:!1})})).catch((()=>{this.suggestionsRequest===n&&this.setState({loading:!1})})),this.suggestionsRequest=n}))}handleOnChange(e){const{onChange:t}=this.props;t(this.getValuesForLabels(e))}getTokens(){const{tokens:e}=this.props;return this.getLabelsForValues(e)}render(){const{help:e,label:t=""}=this.props,{suggestions:n,loading:r}=this.state;return(0,d.jsxs)("div",{className:"autocomplete-tokenfield",children:[(0,d.jsx)(a.FormTokenField,{value:this.getTokens(),suggestions:n,onChange:e=>this.handleOnChange(e),onInputChange:e=>this.debouncedUpdateSuggestions(e),label:t,__next40pxDefaultSize:!0}),r&&(0,d.jsx)(a.Spinner,{}),e&&(0,d.jsx)("p",{className:"autocomplete-tokenfield__help",children:e})]})}}const h=p,f=e=>(0,c.decodeEntities)(e.name)||(0,r.__)("(no title)","newspack-blocks"),m=e=>(0,c.decodeEntities)(e.name)||(0,r.__)("(no title)","newspack-blocks");class g extends s.Component{fetchPostSuggestions=e=>{const{postType:t}=this.props,n=window.newspack_blocks_data.specific_posts_rest_url;return o()({url:(0,l.addQueryArgs)(n,{search:e,postsToShow:20,_fields:"id,title",type:"post",postType:t})}).then((function(e){return e.map((e=>({value:e.id,label:(0,c.decodeEntities)(e.title)||(0,r.__)("(no title)","newspack-blocks")})))}))};fetchSavedPosts=e=>{const{postType:t}=this.props,n=window.newspack_blocks_data.posts_rest_url;return o()({url:(0,l.addQueryArgs)(n,{postsToShow:100,include:e.join(","),_fields:"id,title",postType:t})}).then((function(e){return e.map((e=>({value:e.id,label:(0,c.decodeEntities)(e.title.rendered)||(0,r.__)("(no title)","newspack-blocks")})))}))};fetchAuthorSuggestions=e=>{const t=window.newspack_blocks_data.authors_rest_url;return o()({url:(0,l.addQueryArgs)(t,{search:e,per_page:20,fields:"id,name"})}).then((function(e){return e.map((e=>({value:e.id,label:(0,c.decodeEntities)(e.name)||(0,r.__)("(no name)","newspack-blocks")})))}))};fetchSavedAuthors=e=>{const t=window.newspack_blocks_data.authors_rest_url;return o()({url:(0,l.addQueryArgs)(t,{per_page:100,include:e.join(","),fields:"id,name"})}).then((function(e){return e.map((e=>({value:e.id,label:(0,c.decodeEntities)(e.name)||(0,r.__)("(no name)","newspack-blocks")})))}))};fetchCategorySuggestions=e=>o()({path:(0,l.addQueryArgs)("/wp/v2/categories",{search:e,per_page:20,_fields:"id,name,parent",orderby:"count",order:"desc"})}).then((e=>Promise.all(e.map((e=>e.parent>0?o()({path:(0,l.addQueryArgs)(`/wp/v2/categories/${e.parent}`,{_fields:"name"})}).then((t=>({value:e.id,label:`${f(e)} – ${f(t)}`}))):Promise.resolve({value:e.id,label:f(e)}))))));fetchSavedCategories=e=>o()({path:(0,l.addQueryArgs)("/wp/v2/categories",{per_page:100,_fields:"id,name",include:e.join(",")})}).then((function(t){const n=t.map((e=>({value:e.id,label:(0,c.decodeEntities)(e.name)||(0,r.__)("(no title)","newspack-blocks")})));return e.forEach((e=>{n.find((t=>t.value===parseInt(e)))||n.push({value:parseInt(e),label:(0,r.__)("Deleted category","newspack-blocks")})})),n}));fetchTagSuggestions=e=>o()({path:(0,l.addQueryArgs)("/wp/v2/tags",{search:e,per_page:20,_fields:"id,name",orderby:"count",order:"desc"})}).then((function(e){return e.map((e=>({value:e.id,label:(0,c.decodeEntities)(e.name)||(0,r.__)("(no title)","newspack-blocks")})))}));fetchSavedTags=e=>o()({path:(0,l.addQueryArgs)("/wp/v2/tags",{per_page:100,_fields:"id,name",include:e.join(",")})}).then((function(t){const n=t.map((e=>({value:e.id,label:(0,c.decodeEntities)(e.name)||(0,r.__)("(no title)","newspack-blocks")})));return e.forEach((e=>{n.find((t=>t.value===parseInt(e)))||n.push({value:parseInt(e),label:(0,r.__)("Deleted tag","newspack-blocks")})})),n}));fetchCustomTaxonomiesSuggestions=(e,t)=>o()({path:(0,l.addQueryArgs)(`/wp/v2/${e}`,{search:t,per_page:20,_fields:"id,name,parent",orderby:"count",order:"desc"})}).then((t=>Promise.all(t.map((t=>t.parent>0?o()({path:(0,l.addQueryArgs)(`/wp/v2/${e}/${t.parent}`,{_fields:"name"})}).then((e=>({value:t.id,label:`${m(t)} – ${m(e)}`}))):Promise.resolve({value:t.id,label:m(t)}))))));fetchSavedCustomTaxonomies=(e,t)=>o()({path:(0,l.addQueryArgs)(`/wp/v2/${e}`,{per_page:100,_fields:"id,name",include:t.join(",")})}).then((function(e){return e.map((e=>({value:e.id,label:(0,c.decodeEntities)(e.name)||(0,r.__)("(no title)","newspack-blocks")})))}));render=()=>{const{specificMode:e,onSpecificModeChange:t,onLoopModeChange:n,specificPosts:s,onSpecificPostsChange:i,authors:o,onAuthorsChange:l,categories:c,onCategoriesChange:u,categoryJoinType:p,onCategoryJoinTypeChange:f,includeSubcategories:m,onIncludeSubcategoriesChange:g,tags:v,onTagsChange:b,customTaxonomies:w,onCustomTaxonomiesChange:y,tagExclusions:_,onTagExclusionsChange:x,categoryExclusions:k,onCategoryExclusionsChange:S,customTaxonomyExclusions:E,onCustomTaxonomyExclusionsChange:j,enableSpecific:C}=this.props,T=window.newspack_blocks_data?.custom_taxonomies,M=(e,t,n,r)=>{let s=e.filter((e=>e.slug!==n));s=[...s,{slug:n,terms:r}],t(s)},P=(e,t)=>{const n=e.find((e=>e.slug===t));return n?n.terms:[]};return(0,d.jsxs)(d.Fragment,{children:[C&&(0,d.jsx)(a.BaseControl,{label:(0,r.__)("Mode","newspack-blocks"),id:"newspack-block__loop-type",className:"newspack-block__button-group",help:e?(0,r.__)("The block will display only the specifically selected post(s).","newspack-blocks"):(0,r.__)("The block will display content based on the filtering settings below.","newspack-blocks"),children:(0,d.jsxs)(a.ButtonGroup,{children:[(0,d.jsx)(a.Button,{variant:!e&&"primary","aria-pressed":!e,onClick:n,children:(0,r.__)("Dynamic","newspack-blocks")}),(0,d.jsx)(a.Button,{variant:e&&"primary","aria-pressed":e,onClick:t,children:(0,r.__)("Static","newspack-blocks")})]})}),e?(0,d.jsx)(h,{tokens:s||[],onChange:i,fetchSuggestions:this.fetchPostSuggestions,fetchSavedInfo:this.fetchSavedPosts,label:(0,r.__)("Posts","newspack-blocks"),help:(0,r.__)("Begin typing any word in a post title. Click on an autocomplete result to select it.","newspack-blocks")}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(a.QueryControls,{...this.props,maxItems:30}),u&&(0,d.jsxs)(a.BaseControl,{id:"newspack-block__category-control",children:[(0,d.jsxs)("div",{className:"components-base-control__label-dropdown",children:[(0,d.jsx)(a.BaseControl.VisualLabel,{children:(0,r.__)("Category","newspack-blocks")}),(0,d.jsx)(a.SelectControl,{size:"small",value:p,options:[{label:(0,r.__)("is one of","newspack-blocks"),value:"or"},{label:(0,r.__)("is all of","newspack-blocks"),value:"all"}],onChange:e=>{"all"===e&&g(!1),f(e)},__nextHasNoMarginBottom:!0})]}),(0,d.jsx)(h,{tokens:c||[],onChange:u,fetchSuggestions:this.fetchCategorySuggestions,fetchSavedInfo:this.fetchSavedCategories})]}),"all"!==p&&g&&(0,d.jsx)(a.CheckboxControl,{checked:m,onChange:g,label:(0,r.__)("Include subcategories ","newspack-blocks")}),b&&(0,d.jsx)(h,{tokens:v||[],onChange:b,fetchSuggestions:this.fetchTagSuggestions,fetchSavedInfo:this.fetchSavedTags,label:(0,r.__)("Tags","newspack-blocks")}),l&&(0,d.jsx)(h,{tokens:o||[],onChange:l,fetchSuggestions:this.fetchAuthorSuggestions,fetchSavedInfo:this.fetchSavedAuthors,label:(0,r.__)("Authors","newspack-blocks")}),y&&T.map(((e,t)=>(0,d.jsx)(h,{tokens:P(w,e.slug),onChange:t=>{M(w,y,e.slug,t)},fetchSuggestions:t=>this.fetchCustomTaxonomiesSuggestions(e.slug,t),fetchSavedInfo:t=>this.fetchSavedCustomTaxonomies(e.slug,t),label:e.label},t))),S&&(0,d.jsx)(h,{tokens:k||[],onChange:S,fetchSuggestions:this.fetchCategorySuggestions,fetchSavedInfo:this.fetchSavedCategories,label:(0,r.__)("Excluded categories","newspack-blocks")}),x&&(0,d.jsx)(h,{tokens:_||[],onChange:x,fetchSuggestions:this.fetchTagSuggestions,fetchSavedInfo:this.fetchSavedTags,label:(0,r.__)("Excluded tags","newspack-blocks")}),T&&j&&T.map((({label:e,slug:t})=>(0,d.jsx)(h,{fetchSavedInfo:e=>this.fetchSavedCustomTaxonomies(t,e),fetchSuggestions:e=>this.fetchCustomTaxonomiesSuggestions(t,e),label:(0,r.sprintf)(
6
6
  // translators: %s is the custom taxonomy label.
7
7
  // translators: %s is the custom taxonomy label.
8
8
  (0,r.__)("Excluded %s","newspack-blocks"),e),onChange:e=>M(E,j,t,e),tokens:P(E,t)},`${t}-exclusions-selector`)))]})]})}}g.defaultProps={enableSpecific:!0,specificPosts:[],authors:[],categories:[],tags:[],customTaxonomies:[],tagExclusions:[],customTaxonomyExclusions:[]};const v=g},8614:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(7723),s=n(6427),a=n(790);const i=({attributes:e,setAttributes:t})=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.SelectControl,{label:(0,r.__)("Post-Checkout Button","newspack-blocks"),help:(0,r.__)("After a successful purchase, a button will be presented to finish the process.","newspack-blocks"),value:e.afterSuccessBehavior,options:[{label:(0,r.__)("Close the modal","newspack-blocks"),value:""},{label:(0,r.__)("Go to a custom URL","newspack-blocks"),value:"custom"},{label:(0,r.__)("Go to the previous page","newspack-blocks"),value:"referrer"}],onChange:e=>{t({afterSuccessBehavior:e.toString()})}}),(0,a.jsx)(s.TextControl,{label:(0,r.__)("Button Label","newspack-blocks"),value:e.afterSuccessButtonLabel||"",onChange:e=>t({afterSuccessButtonLabel:e})}),"custom"===e.afterSuccessBehavior&&(0,a.jsx)(s.TextControl,{label:(0,r.__)("Custom URL","newspack-blocks"),placeholder:(0,r.__)("https://example.com","newspack-blocks"),value:e.afterSuccessURL||"",onChange:e=>t({afterSuccessURL:e})})]})},6175:(e,t,n)=>{"use strict";n.d(t,{X8:()=>c,__:()=>o,pO:()=>i,vQ:()=>l});var r=n(7723),s=n(6087),a=n(790);const i=(e,t=!1)=>{const n='<span class="byline">'+e.newspack_post_byline+"</span>";return t&&e.newspack_post_avatars?e.newspack_post_avatars+n:n},o=e=>(0,a.jsx)("span",{className:"sponsor-logos",children:e.map((e=>(0,a.jsx)(s.Fragment,{children:e.src&&(0,a.jsx)("a",{href:e.sponsor_url,children:(0,a.jsx)("img",{src:e.src,width:e.img_width,height:e.img_height,alt:e.sponsor_name})})},e.id)))}),l=e=>(0,a.jsxs)("span",{className:"byline sponsor-byline",children:[e[0].byline_prefix," ",e.reduce(((t,n,s)=>[...t,(0,a.jsx)("span",{className:"author",children:(0,a.jsx)("a",{href:n.author_link,children:n.sponsor_name})},n.id),s<e.length-2&&", ",e.length>1&&s===e.length-2&&(0,r._x)(" and ","post author","newspack-blocks")]),[])]}),c=(e={})=>"publish"!==e.post_status?(0,a.jsx)("div",{className:"newspack-preview-label",children:{draft:(0,r.__)("Draft","newspack-blocks"),future:(0,r.__)("Scheduled","newspack-blocks")}[e.post_status]}):null},2137:(e,t)=>{t.version="0.1.0";var n=function(e){this.message=e,this.toString=function(){return this.constructor.name+": "+this.message}},r=function(e){this.firstWeekDay=e||0};r.prototype={constructor:r,weekStartDate:function(e){for(var t=new Date(e.getTime());t.getDay()!==this.firstWeekDay;)t.setDate(t.getDate()-1);return t},monthDates:function(e,t,r,s){if("number"!=typeof e||e<1970)throw new n("year must be a number >= 1970");if("number"!=typeof t||t<0||t>11)throw new n("month must be a number (Jan is 0)");var a=[],i=[],o=0,l=this.weekStartDate(new Date(e,t,1));do{for(o=0;o<7;o++)i.push(r?r(l):l),(l=new Date(l.getTime())).setDate(l.getDate()+1);a.push(s?s(i):i),i=[]}while(l.getMonth()<=t&&l.getFullYear()===e);return a},monthDays:function(e,t){return this.monthDates(e,t,(function(e){return e.getMonth()===t?e.getDate():0}))},monthText:function(e,t){if(void 0===e){var n=new Date;e=n.getFullYear(),t=n.getMonth()}return this.monthDates(e,t,(function(e){for(var n=e.getMonth()===t?e.getDate().toString():" ";n.length<2;)n=" "+n;return n}),(function(e){return e.join(" ")})).join("\n")}};for(var s="JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC".split(" "),a=0;a<s.length;a++)r[s[a]]=a;t.Calendar=r},1804:(e,t,n)=>{"use strict";var r=n(5228),s={};function a(e,t,n,r,s,a,i,o){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,s,a,i,o],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}var i="mixins";e.exports=function(e,t,n){var o=[],l={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},c={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},u={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)p(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=r({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=r({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=f(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=r({},e.propTypes,t)},statics:function(e,t){!function(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){if(a(!(n in u),'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n),n in e)return a("DEFINE_MANY_MERGED"===(c.hasOwnProperty(n)?c[n]:null),"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),void(e[n]=f(e[n],r));e[n]=r}}}(e,t)},autobind:function(){}};function d(e,t){var n=l.hasOwnProperty(t)?l[t]:null;w.hasOwnProperty(t)&&a("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&a("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function p(e,n){if(n){a("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),a(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r=e.prototype,s=r.__reactAutoBindPairs;for(var o in n.hasOwnProperty(i)&&u.mixins(e,n.mixins),n)if(n.hasOwnProperty(o)&&o!==i){var c=n[o],p=r.hasOwnProperty(o);if(d(p,o),u.hasOwnProperty(o))u[o](e,c);else{var h=l.hasOwnProperty(o);if("function"!=typeof c||h||p||!1===n.autobind)if(p){var g=l[o];a(h&&("DEFINE_MANY_MERGED"===g||"DEFINE_MANY"===g),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",g,o),"DEFINE_MANY_MERGED"===g?r[o]=f(r[o],c):"DEFINE_MANY"===g&&(r[o]=m(r[o],c))}else r[o]=c;else s.push(o,c),r[o]=c}}}}function h(e,t){for(var n in a(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects."),t)t.hasOwnProperty(n)&&(a(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function f(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var s={};return h(s,n),h(s,r),s}}function m(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function g(e,t){return t.bind(e)}var v={componentDidMount:function(){this.__isMounted=!0}},b={componentWillUnmount:function(){this.__isMounted=!1}},w={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},y=function(){};return r(y.prototype,e.prototype,w),function(e){var t=function(e,r,i){this.__reactAutoBindPairs.length&&function(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],s=t[n+1];e[r]=g(e,s)}}(this),this.props=e,this.context=r,this.refs=s,this.updater=i||n,this.state=null;var o=this.getInitialState?this.getInitialState():null;a("object"==typeof o&&!Array.isArray(o),"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent"),this.state=o};for(var r in t.prototype=new y,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],o.forEach(p.bind(null,t)),p(t,v),p(t,e),p(t,b),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),a(t.prototype.render,"createClass(...): Class specification must implement a `render` method."),l)t.prototype[r]||(t.prototype[r]=null);return t}}},2306:(e,t,n)=>{"use strict";var r=n(1609),s=n(1804);if(void 0===r)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var a=(new r.Component).updater;e.exports=s(r.Component,r.isValidElement,a)},4146:(e,t,n)=>{"use strict";var r=n(3404),s={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function l(e){return r.isMemo(e)?i:o[e.$$typeof]||s}o[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[r.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(f){var s=h(n);s&&s!==f&&e(t,s,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var o=l(t),m=l(n),g=0;g<i.length;++g){var v=i[g];if(!(a[v]||r&&r[v]||m&&m[v]||o&&o[v])){var b=p(n,v);try{c(t,v,b)}catch(e){}}}}return t}},3072:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,s=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,o=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,w=n?Symbol.for("react.responder"):60118,y=n?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case a:case o:case i:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case m:case l:return e;default:return t}}case s:return t}}}function x(e){return _(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=a,t.Lazy=g,t.Memo=m,t.Portal=s,t.Profiler=o,t.StrictMode=i,t.Suspense=h,t.isAsyncMode=function(e){return x(e)||_(e)===u},t.isConcurrentMode=x,t.isContextConsumer=function(e){return _(e)===c},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return _(e)===p},t.isFragment=function(e){return _(e)===a},t.isLazy=function(e){return _(e)===g},t.isMemo=function(e){return _(e)===m},t.isPortal=function(e){return _(e)===s},t.isProfiler=function(e){return _(e)===o},t.isStrictMode=function(e){return _(e)===i},t.isSuspense=function(e){return _(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===o||e===i||e===h||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y||e.$$typeof===v)},t.typeOf=_},3404:(e,t,n)=>{"use strict";e.exports=n(3072)},9404:function(e){e.exports=function(){"use strict";var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return i(e)?e:W(e)}function r(e){return o(e)?e:Y(e)}function s(e){return l(e)?e:X(e)}function a(e){return i(e)&&!c(e)?e:K(e)}function i(e){return!(!e||!e[d])}function o(e){return!(!e||!e[p])}function l(e){return!(!e||!e[h])}function c(e){return o(e)||l(e)}function u(e){return!(!e||!e[f])}t(r,n),t(s,n),t(a,n),n.isIterable=i,n.isKeyed=o,n.isIndexed=l,n.isAssociative=c,n.isOrdered=u,n.Keyed=r,n.Indexed=s,n.Set=a;var d="@@__IMMUTABLE_ITERABLE__@@",p="@@__IMMUTABLE_KEYED__@@",h="@@__IMMUTABLE_INDEXED__@@",f="@@__IMMUTABLE_ORDERED__@@",m="delete",g=5,v=1<<g,b=v-1,w={},y={value:!1},_={value:!1};function x(e){return e.value=!1,e}function k(e){e&&(e.value=!0)}function S(){}function E(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),s=0;s<n;s++)r[s]=e[s+t];return r}function j(e){return void 0===e.size&&(e.size=e.__iterate(T)),e.size}function C(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?j(e)+t:t}function T(){return!0}function M(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function P(e,t){return I(e,t,0)}function A(e,t){return I(e,t,t)}function I(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var O=0,L=1,D=2,z="function"==typeof Symbol&&Symbol.iterator,N="@@iterator",R=z||N;function B(e){this.next=e}function $(e,t,n,r){var s=0===e?t:1===e?n:[t,n];return r?r.value=s:r={value:s,done:!1},r}function F(){return{value:void 0,done:!0}}function H(e){return!!U(e)}function q(e){return e&&"function"==typeof e.next}function V(e){var t=U(e);return t&&t.call(e)}function U(e){var t=e&&(z&&e[z]||e[N]);if("function"==typeof t)return t}function G(e){return e&&"number"==typeof e.length}function W(e){return null==e?ie():i(e)?e.toSeq():function(e){var t=ce(e)||"object"==typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function Y(e){return null==e?ie().toKeyedSeq():i(e)?o(e)?e.toSeq():e.fromEntrySeq():oe(e)}function X(e){return null==e?ie():i(e)?o(e)?e.entrySeq():e.toIndexedSeq():le(e)}function K(e){return(null==e?ie():i(e)?o(e)?e.entrySeq():e:le(e)).toSetSeq()}B.prototype.toString=function(){return"[Iterator]"},B.KEYS=O,B.VALUES=L,B.ENTRIES=D,B.prototype.inspect=B.prototype.toSource=function(){return this.toString()},B.prototype[R]=function(){return this},t(W,n),W.of=function(){return W(arguments)},W.prototype.toSeq=function(){return this},W.prototype.toString=function(){return this.__toString("Seq {","}")},W.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},W.prototype.__iterate=function(e,t){return ue(this,e,t,!0)},W.prototype.__iterator=function(e,t){return de(this,e,t,!0)},t(Y,W),Y.prototype.toKeyedSeq=function(){return this},t(X,W),X.of=function(){return X(arguments)},X.prototype.toIndexedSeq=function(){return this},X.prototype.toString=function(){return this.__toString("Seq [","]")},X.prototype.__iterate=function(e,t){return ue(this,e,t,!1)},X.prototype.__iterator=function(e,t){return de(this,e,t,!1)},t(K,W),K.of=function(){return K(arguments)},K.prototype.toSetSeq=function(){return this},W.isSeq=ae,W.Keyed=Y,W.Set=K,W.Indexed=X;var J,Q,Z,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function se(e){this._iterator=e,this._iteratorCache=[]}function ae(e){return!(!e||!e[ee])}function ie(){return J||(J=new te([]))}function oe(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():q(e)?new se(e).fromEntrySeq():H(e)?new re(e).fromEntrySeq():"object"==typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function le(e){var t=ce(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ce(e){return G(e)?new te(e):q(e)?new se(e):H(e)?new re(e):void 0}function ue(e,t,n,r){var s=e._cache;if(s){for(var a=s.length-1,i=0;i<=a;i++){var o=s[n?a-i:i];if(!1===t(o[1],r?o[0]:i,e))return i+1}return i}return e.__iterateUncached(t,n)}function de(e,t,n,r){var s=e._cache;if(s){var a=s.length-1,i=0;return new B((function(){var e=s[n?a-i:i];return i++>a?{value:void 0,done:!0}:$(t,r?e[0]:i-1,e[1])}))}return e.__iteratorUncached(t,n)}function pe(e,t){return t?he(t,e,"",{"":e}):fe(e)}function he(e,t,n,r){return Array.isArray(t)?e.call(r,n,X(t).map((function(n,r){return he(e,n,r,t)}))):me(t)?e.call(r,n,Y(t).map((function(n,r){return he(e,n,r,t)}))):t}function fe(e){return Array.isArray(e)?X(e).map(fe).toList():me(e)?Y(e).map(fe).toMap():e}function me(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ge(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function ve(e,t){if(e===t)return!0;if(!i(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||o(e)!==o(t)||l(e)!==l(t)||u(e)!==u(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!c(e);if(u(e)){var r=e.entries();return t.every((function(e,t){var s=r.next().value;return s&&ge(s[1],e)&&(n||ge(s[0],t))}))&&r.next().done}var s=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{s=!0;var a=e;e=t,t=a}var d=!0,p=t.__iterate((function(t,r){if(n?!e.has(t):s?!ge(t,e.get(r,w)):!ge(e.get(r,w),t))return d=!1,!1}));return d&&e.size===p}function be(e,t){if(!(this instanceof be))return new be(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(Q)return Q;Q=this}}function we(e,t){if(!e)throw new Error(t)}function ye(e,t,n){if(!(this instanceof ye))return new ye(e,t,n);if(we(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(Z)return Z;Z=this}}function _e(){throw TypeError("Abstract")}function xe(){}function ke(){}function Se(){}W.prototype[ee]=!0,t(te,X),te.prototype.get=function(e,t){return this.has(e)?this._array[C(this,e)]:t},te.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,s=0;s<=r;s++)if(!1===e(n[t?r-s:s],s,this))return s+1;return s},te.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,s=0;return new B((function(){return s>r?{value:void 0,done:!0}:$(e,s,n[t?r-s++:s++])}))},t(ne,Y),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,s=r.length-1,a=0;a<=s;a++){var i=r[t?s-a:a];if(!1===e(n[i],i,this))return a+1}return a},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,s=r.length-1,a=0;return new B((function(){var i=r[t?s-a:a];return a++>s?{value:void 0,done:!0}:$(e,i,n[i])}))},ne.prototype[f]=!0,t(re,X),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=V(this._iterable),r=0;if(q(n))for(var s;!(s=n.next()).done&&!1!==e(s.value,r++,this););return r},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=V(this._iterable);if(!q(n))return new B(F);var r=0;return new B((function(){var t=n.next();return t.done?t:$(e,r++,t.value)}))},t(se,X),se.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,s=this._iteratorCache,a=0;a<s.length;)if(!1===e(s[a],a++,this))return a;for(;!(n=r.next()).done;){var i=n.value;if(s[a]=i,!1===e(i,a++,this))break}return a},se.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,s=0;return new B((function(){if(s>=r.length){var t=n.next();if(t.done)return t;r[s]=t.value}return $(e,s,r[s++])}))},t(be,X),be.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},be.prototype.get=function(e,t){return this.has(e)?this._value:t},be.prototype.includes=function(e){return ge(this._value,e)},be.prototype.slice=function(e,t){var n=this.size;return M(e,t,n)?this:new be(this._value,A(t,n)-P(e,n))},be.prototype.reverse=function(){return this},be.prototype.indexOf=function(e){return ge(this._value,e)?0:-1},be.prototype.lastIndexOf=function(e){return ge(this._value,e)?this.size:-1},be.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},be.prototype.__iterator=function(e,t){var n=this,r=0;return new B((function(){return r<n.size?$(e,r++,n._value):{value:void 0,done:!0}}))},be.prototype.equals=function(e){return e instanceof be?ge(this._value,e._value):ve(e)},t(ye,X),ye.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},ye.prototype.get=function(e,t){return this.has(e)?this._start+C(this,e)*this._step:t},ye.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},ye.prototype.slice=function(e,t){return M(e,t,this.size)?this:(e=P(e,this.size),(t=A(t,this.size))<=e?new ye(0,0):new ye(this.get(e,this._end),this.get(t,this._end),this._step))},ye.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},ye.prototype.lastIndexOf=function(e){return this.indexOf(e)},ye.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,s=t?this._start+n*r:this._start,a=0;a<=n;a++){if(!1===e(s,a,this))return a+1;s+=t?-r:r}return a},ye.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,s=t?this._start+n*r:this._start,a=0;return new B((function(){var i=s;return s+=t?-r:r,a>n?{value:void 0,done:!0}:$(e,a++,i)}))},ye.prototype.equals=function(e){return e instanceof ye?this._start===e._start&&this._end===e._end&&this._step===e._step:ve(this,e)},t(_e,n),t(xe,_e),t(ke,_e),t(Se,_e),_e.Keyed=xe,_e.Indexed=ke,_e.Set=Se;var Ee="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function je(e){return e>>>1&1073741824|3221225471&e}function Ce(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){if(e!=e||e===1/0)return 0;var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return je(n)}if("string"===t)return e.length>De?function(e){var t=Re[e];return void 0===t&&(t=Te(e),Ne===ze&&(Ne=0,Re={}),Ne++,Re[e]=t),t}(e):Te(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(Ie&&void 0!==(t=Ae.get(e)))return t;if(void 0!==(t=e[Le]))return t;if(!Pe){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Le]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++Oe,1073741824&Oe&&(Oe=0),Ie)Ae.set(e,t);else{if(void 0!==Me&&!1===Me(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Pe)Object.defineProperty(e,Le,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Le]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Le]=t}}return t}(e);if("function"==typeof e.toString)return Te(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Te(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return je(t)}var Me=Object.isExtensible,Pe=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();var Ae,Ie="function"==typeof WeakMap;Ie&&(Ae=new WeakMap);var Oe=0,Le="__immutablehash__";"function"==typeof Symbol&&(Le=Symbol(Le));var De=16,ze=255,Ne=0,Re={};function Be(e){we(e!==1/0,"Cannot perform this action with an infinite size.")}function $e(e){return null==e?et():Fe(e)&&!u(e)?e:et().withMutations((function(t){var n=r(e);Be(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Fe(e){return!(!e||!e[qe])}t($e,xe),$e.of=function(){var t=e.call(arguments,0);return et().withMutations((function(e){for(var n=0;n<t.length;n+=2){if(n+1>=t.length)throw new Error("Missing value for key: "+t[n]);e.set(t[n],t[n+1])}}))},$e.prototype.toString=function(){return this.__toString("Map {","}")},$e.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},$e.prototype.set=function(e,t){return tt(this,e,t)},$e.prototype.setIn=function(e,t){return this.updateIn(e,w,(function(){return t}))},$e.prototype.remove=function(e){return tt(this,e,w)},$e.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return w}))},$e.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},$e.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=ct(this,an(e),t,n);return r===w?void 0:r},$e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):et()},$e.prototype.merge=function(){return at(this,void 0,arguments)},$e.prototype.mergeWith=function(t){return at(this,t,e.call(arguments,1))},$e.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,et(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},$e.prototype.mergeDeep=function(){return at(this,it,arguments)},$e.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return at(this,ot(t),n)},$e.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,et(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},$e.prototype.sort=function(e){return It(Yt(this,e))},$e.prototype.sortBy=function(e,t){return It(Yt(this,t,e))},$e.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},$e.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new S)},$e.prototype.asImmutable=function(){return this.__ensureOwner()},$e.prototype.wasAltered=function(){return this.__altered},$e.prototype.__iterator=function(e,t){return new Ke(this,e,t)},$e.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},$e.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ze(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},$e.isMap=Fe;var He,qe="@@__IMMUTABLE_MAP__@@",Ve=$e.prototype;function Ue(e,t){this.ownerID=e,this.entries=t}function Ge(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function We(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Ye(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Xe(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function Ke(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&Qe(e._root)}function Je(e,t){return $(e,t[0],t[1])}function Qe(e,t){return{node:e,index:0,__prev:t}}function Ze(e,t,n,r){var s=Object.create(Ve);return s.size=e,s._root=t,s.__ownerID=n,s.__hash=r,s.__altered=!1,s}function et(){return He||(He=Ze(0))}function tt(e,t,n){var r,s;if(e._root){var a=x(y),i=x(_);if(r=nt(e._root,e.__ownerID,0,void 0,t,n,a,i),!i.value)return e;s=e.size+(a.value?n===w?-1:1:0)}else{if(n===w)return e;s=1,r=new Ue(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=s,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?Ze(s,r):et()}function nt(e,t,n,r,s,a,i,o){return e?e.update(t,n,r,s,a,i,o):a===w?e:(k(o),k(i),new Xe(t,r,[s,a]))}function rt(e){return e.constructor===Xe||e.constructor===Ye}function st(e,t,n,r,s){if(e.keyHash===r)return new Ye(t,r,[e.entry,s]);var a,i=(0===n?e.keyHash:e.keyHash>>>n)&b,o=(0===n?r:r>>>n)&b;return new Ge(t,1<<i|1<<o,i===o?[st(e,t,n+g,r,s)]:(a=new Xe(t,r,s),i<o?[e,a]:[a,e]))}function at(e,t,n){for(var s=[],a=0;a<n.length;a++){var o=n[a],l=r(o);i(o)||(l=l.map((function(e){return pe(e)}))),s.push(l)}return lt(e,t,s)}function it(e,t,n){return e&&e.mergeDeep&&i(t)?e.mergeDeep(t):ge(e,t)?e:t}function ot(e){return function(t,n,r){if(t&&t.mergeDeepWith&&i(n))return t.mergeDeepWith(e,n);var s=e(t,n,r);return ge(t,s)?t:s}}function lt(e,t,n){return 0===(n=n.filter((function(e){return 0!==e.size}))).length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var r=t?function(n,r){e.update(r,w,(function(e){return e===w?n:t(e,n,r)}))}:function(t,n){e.set(n,t)},s=0;s<n.length;s++)n[s].forEach(r)})):e.constructor(n[0])}function ct(e,t,n,r){var s=e===w,a=t.next();if(a.done){var i=s?n:e,o=r(i);return o===i?e:o}we(s||e&&e.set,"invalid keyPath");var l=a.value,c=s?w:e.get(l,w),u=ct(c,t,n,r);return u===c?e:u===w?e.remove(l):(s?et():e).set(l,u)}function ut(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,127&(e+=e>>8)+(e>>16)}function dt(e,t,n,r){var s=r?e:E(e);return s[t]=n,s}Ve[qe]=!0,Ve[m]=Ve.remove,Ve.removeIn=Ve.deleteIn,Ue.prototype.get=function(e,t,n,r){for(var s=this.entries,a=0,i=s.length;a<i;a++)if(ge(n,s[a][0]))return s[a][1];return r},Ue.prototype.update=function(e,t,n,r,s,a,i){for(var o=s===w,l=this.entries,c=0,u=l.length;c<u&&!ge(r,l[c][0]);c++);var d=c<u;if(d?l[c][1]===s:o)return this;if(k(i),(o||!d)&&k(a),!o||1!==l.length){if(!d&&!o&&l.length>=pt)return function(e,t,n,r){e||(e=new S);for(var s=new Xe(e,Ce(n),[n,r]),a=0;a<t.length;a++){var i=t[a];s=s.update(e,0,void 0,i[0],i[1])}return s}(e,l,r,s);var p=e&&e===this.ownerID,h=p?l:E(l);return d?o?c===u-1?h.pop():h[c]=h.pop():h[c]=[r,s]:h.push([r,s]),p?(this.entries=h,this):new Ue(e,h)}},Ge.prototype.get=function(e,t,n,r){void 0===t&&(t=Ce(n));var s=1<<((0===e?t:t>>>e)&b),a=this.bitmap;return a&s?this.nodes[ut(a&s-1)].get(e+g,t,n,r):r},Ge.prototype.update=function(e,t,n,r,s,a,i){void 0===n&&(n=Ce(r));var o=(0===t?n:n>>>t)&b,l=1<<o,c=this.bitmap,u=!!(c&l);if(!u&&s===w)return this;var d=ut(c&l-1),p=this.nodes,h=u?p[d]:void 0,f=nt(h,e,t+g,n,r,s,a,i);if(f===h)return this;if(!u&&f&&p.length>=ht)return function(e,t,n,r,s){for(var a=0,i=new Array(v),o=0;0!==n;o++,n>>>=1)i[o]=1&n?t[a++]:void 0;return i[r]=s,new We(e,a+1,i)}(e,p,c,o,f);if(u&&!f&&2===p.length&&rt(p[1^d]))return p[1^d];if(u&&f&&1===p.length&&rt(f))return f;var m=e&&e===this.ownerID,y=u?f?c:c^l:c|l,_=u?f?dt(p,d,f,m):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var s=new Array(r),a=0,i=0;i<r;i++)i===t&&(a=1),s[i]=e[i+a];return s}(p,d,m):function(e,t,n,r){var s=e.length+1;if(r&&t+1===s)return e[t]=n,e;for(var a=new Array(s),i=0,o=0;o<s;o++)o===t?(a[o]=n,i=-1):a[o]=e[o+i];return a}(p,d,f,m);return m?(this.bitmap=y,this.nodes=_,this):new Ge(e,y,_)},We.prototype.get=function(e,t,n,r){void 0===t&&(t=Ce(n));var s=(0===e?t:t>>>e)&b,a=this.nodes[s];return a?a.get(e+g,t,n,r):r},We.prototype.update=function(e,t,n,r,s,a,i){void 0===n&&(n=Ce(r));var o=(0===t?n:n>>>t)&b,l=s===w,c=this.nodes,u=c[o];if(l&&!u)return this;var d=nt(u,e,t+g,n,r,s,a,i);if(d===u)return this;var p=this.count;if(u){if(!d&&--p<ft)return function(e,t,n,r){for(var s=0,a=0,i=new Array(n),o=0,l=1,c=t.length;o<c;o++,l<<=1){var u=t[o];void 0!==u&&o!==r&&(s|=l,i[a++]=u)}return new Ge(e,s,i)}(e,c,p,o)}else p++;var h=e&&e===this.ownerID,f=dt(c,o,d,h);return h?(this.count=p,this.nodes=f,this):new We(e,p,f)},Ye.prototype.get=function(e,t,n,r){for(var s=this.entries,a=0,i=s.length;a<i;a++)if(ge(n,s[a][0]))return s[a][1];return r},Ye.prototype.update=function(e,t,n,r,s,a,i){void 0===n&&(n=Ce(r));var o=s===w;if(n!==this.keyHash)return o?this:(k(i),k(a),st(this,e,t,n,[r,s]));for(var l=this.entries,c=0,u=l.length;c<u&&!ge(r,l[c][0]);c++);var d=c<u;if(d?l[c][1]===s:o)return this;if(k(i),(o||!d)&&k(a),o&&2===u)return new Xe(e,this.keyHash,l[1^c]);var p=e&&e===this.ownerID,h=p?l:E(l);return d?o?c===u-1?h.pop():h[c]=h.pop():h[c]=[r,s]:h.push([r,s]),p?(this.entries=h,this):new Ye(e,this.keyHash,h)},Xe.prototype.get=function(e,t,n,r){return ge(n,this.entry[0])?this.entry[1]:r},Xe.prototype.update=function(e,t,n,r,s,a,i){var o=s===w,l=ge(r,this.entry[0]);return(l?s===this.entry[1]:o)?this:(k(i),o?void k(a):l?e&&e===this.ownerID?(this.entry[1]=s,this):new Xe(e,this.keyHash,[r,s]):(k(a),st(this,e,t,Ce(r),[r,s])))},Ue.prototype.iterate=Ye.prototype.iterate=function(e,t){for(var n=this.entries,r=0,s=n.length-1;r<=s;r++)if(!1===e(n[t?s-r:r]))return!1},Ge.prototype.iterate=We.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,s=n.length-1;r<=s;r++){var a=n[t?s-r:r];if(a&&!1===a.iterate(e,t))return!1}},Xe.prototype.iterate=function(e,t){return e(this.entry)},t(Ke,B),Ke.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,s=t.index++;if(r.entry){if(0===s)return Je(e,r.entry)}else if(r.entries){if(s<=(n=r.entries.length-1))return Je(e,r.entries[this._reverse?n-s:s])}else if(s<=(n=r.nodes.length-1)){var a=r.nodes[this._reverse?n-s:s];if(a){if(a.entry)return Je(e,a.entry);t=this._stack=Qe(a,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var pt=v/4,ht=v/2,ft=v/4;function mt(e){var t=Et();if(null==e)return t;if(gt(e))return e;var n=s(e),r=n.size;return 0===r?t:(Be(r),r>0&&r<v?St(0,r,g,null,new wt(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function gt(e){return!(!e||!e[vt])}t(mt,ke),mt.of=function(){return this(arguments)},mt.prototype.toString=function(){return this.__toString("List [","]")},mt.prototype.get=function(e,t){if((e=C(this,e))>=0&&e<this.size){var n=Tt(this,e+=this._origin);return n&&n.array[e&b]}return t},mt.prototype.set=function(e,t){return function(e,t,n){if((t=C(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?Mt(e,t).set(0,n):Mt(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,s=e._root,a=x(_);return t>=At(e._capacity)?r=jt(r,e.__ownerID,0,t,n,a):s=jt(s,e.__ownerID,e._level,t,n,a),a.value?e.__ownerID?(e._root=s,e._tail=r,e.__hash=void 0,e.__altered=!0,e):St(e._origin,e._capacity,e._level,s,r):e}(this,e,t)},mt.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},mt.prototype.insert=function(e,t){return this.splice(e,0,t)},mt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=g,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Et()},mt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){Mt(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},mt.prototype.pop=function(){return Mt(this,0,-1)},mt.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){Mt(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},mt.prototype.shift=function(){return Mt(this,1)},mt.prototype.merge=function(){return Pt(this,void 0,arguments)},mt.prototype.mergeWith=function(t){return Pt(this,t,e.call(arguments,1))},mt.prototype.mergeDeep=function(){return Pt(this,it,arguments)},mt.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return Pt(this,ot(t),n)},mt.prototype.setSize=function(e){return Mt(this,0,e)},mt.prototype.slice=function(e,t){var n=this.size;return M(e,t,n)?this:Mt(this,P(e,n),A(t,n))},mt.prototype.__iterator=function(e,t){var n=0,r=kt(this,t);return new B((function(){var t=r();return t===xt?{value:void 0,done:!0}:$(e,n++,t)}))},mt.prototype.__iterate=function(e,t){for(var n,r=0,s=kt(this,t);(n=s())!==xt&&!1!==e(n,r++,this););return r},mt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?St(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},mt.isList=gt;var vt="@@__IMMUTABLE_LIST__@@",bt=mt.prototype;function wt(e,t){this.array=e,this.ownerID=t}bt[vt]=!0,bt[m]=bt.remove,bt.setIn=Ve.setIn,bt.deleteIn=bt.removeIn=Ve.removeIn,bt.update=Ve.update,bt.updateIn=Ve.updateIn,bt.mergeIn=Ve.mergeIn,bt.mergeDeepIn=Ve.mergeDeepIn,bt.withMutations=Ve.withMutations,bt.asMutable=Ve.asMutable,bt.asImmutable=Ve.asImmutable,bt.wasAltered=Ve.wasAltered,wt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&b;if(r>=this.array.length)return new wt([],e);var s,a=0===r;if(t>0){var i=this.array[r];if((s=i&&i.removeBefore(e,t-g,n))===i&&a)return this}if(a&&!s)return this;var o=Ct(this,e);if(!a)for(var l=0;l<r;l++)o.array[l]=void 0;return s&&(o.array[r]=s),o},wt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,s=n-1>>>t&b;if(s>=this.array.length)return this;if(t>0){var a=this.array[s];if((r=a&&a.removeAfter(e,t-g,n))===a&&s===this.array.length-1)return this}var i=Ct(this,e);return i.array.splice(s+1),r&&(i.array[s]=r),i};var yt,_t,xt={};function kt(e,t){var n=e._origin,r=e._capacity,s=At(r),a=e._tail;return i(e._root,e._level,0);function i(e,o,l){return 0===o?function(e,i){var o=i===s?a&&a.array:e&&e.array,l=i>n?0:n-i,c=r-i;return c>v&&(c=v),function(){if(l===c)return xt;var e=t?--c:l++;return o&&o[e]}}(e,l):function(e,s,a){var o,l=e&&e.array,c=a>n?0:n-a>>s,u=1+(r-a>>s);return u>v&&(u=v),function(){for(;;){if(o){var e=o();if(e!==xt)return e;o=null}if(c===u)return xt;var n=t?--u:c++;o=i(l&&l[n],s-g,a+(n<<s))}}}(e,o,l)}}function St(e,t,n,r,s,a,i){var o=Object.create(bt);return o.size=t-e,o._origin=e,o._capacity=t,o._level=n,o._root=r,o._tail=s,o.__ownerID=a,o.__hash=i,o.__altered=!1,o}function Et(){return yt||(yt=St(0,0,g))}function jt(e,t,n,r,s,a){var i,o=r>>>n&b,l=e&&o<e.array.length;if(!l&&void 0===s)return e;if(n>0){var c=e&&e.array[o],u=jt(c,t,n-g,r,s,a);return u===c?e:((i=Ct(e,t)).array[o]=u,i)}return l&&e.array[o]===s?e:(k(a),i=Ct(e,t),void 0===s&&o===i.array.length-1?i.array.pop():i.array[o]=s,i)}function Ct(e,t){return t&&e&&t===e.ownerID?e:new wt(e?e.array.slice():[],t)}function Tt(e,t){if(t>=At(e._capacity))return e._tail;if(t<1<<e._level+g){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&b],r-=g;return n}}function Mt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new S,s=e._origin,a=e._capacity,i=s+t,o=void 0===n?a:n<0?a+n:s+n;if(i===s&&o===a)return e;if(i>=o)return e.clear();for(var l=e._level,c=e._root,u=0;i+u<0;)c=new wt(c&&c.array.length?[void 0,c]:[],r),u+=1<<(l+=g);u&&(i+=u,s+=u,o+=u,a+=u);for(var d=At(a),p=At(o);p>=1<<l+g;)c=new wt(c&&c.array.length?[c]:[],r),l+=g;var h=e._tail,f=p<d?Tt(e,o-1):p>d?new wt([],r):h;if(h&&p>d&&i<a&&h.array.length){for(var m=c=Ct(c,r),v=l;v>g;v-=g){var w=d>>>v&b;m=m.array[w]=Ct(m.array[w],r)}m.array[d>>>g&b]=h}if(o<a&&(f=f&&f.removeAfter(r,0,o)),i>=p)i-=p,o-=p,l=g,c=null,f=f&&f.removeBefore(r,0,i);else if(i>s||p<d){for(u=0;c;){var y=i>>>l&b;if(y!==p>>>l&b)break;y&&(u+=(1<<l)*y),l-=g,c=c.array[y]}c&&i>s&&(c=c.removeBefore(r,l,i-u)),c&&p<d&&(c=c.removeAfter(r,l,p-u)),u&&(i-=u,o-=u)}return e.__ownerID?(e.size=o-i,e._origin=i,e._capacity=o,e._level=l,e._root=c,e._tail=f,e.__hash=void 0,e.__altered=!0,e):St(i,o,l,c,f)}function Pt(e,t,n){for(var r=[],a=0,o=0;o<n.length;o++){var l=n[o],c=s(l);c.size>a&&(a=c.size),i(l)||(c=c.map((function(e){return pe(e)}))),r.push(c)}return a>e.size&&(e=e.setSize(a)),lt(e,t,r)}function At(e){return e<v?0:e-1>>>g<<g}function It(e){return null==e?Dt():Ot(e)?e:Dt().withMutations((function(t){var n=r(e);Be(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ot(e){return Fe(e)&&u(e)}function Lt(e,t,n,r){var s=Object.create(It.prototype);return s.size=e?e.size:0,s._map=e,s._list=t,s.__ownerID=n,s.__hash=r,s}function Dt(){return _t||(_t=Lt(et(),Et()))}function zt(e,t,n){var r,s,a=e._map,i=e._list,o=a.get(t),l=void 0!==o;if(n===w){if(!l)return e;i.size>=v&&i.size>=2*a.size?(r=(s=i.filter((function(e,t){return void 0!==e&&o!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=s.__ownerID=e.__ownerID)):(r=a.remove(t),s=o===i.size-1?i.pop():i.set(o,void 0))}else if(l){if(n===i.get(o)[1])return e;r=a,s=i.set(o,[t,n])}else r=a.set(t,i.size),s=i.set(i.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=s,e.__hash=void 0,e):Lt(r,s)}function Nt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Rt(e){this._iter=e,this.size=e.size}function Bt(e){this._iter=e,this.size=e.size}function $t(e){this._iter=e,this.size=e.size}function Ft(e){var t=nn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=rn,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(t===D){var r=e.__iterator(t,n);return new B((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===L?O:L,n)},t}function Ht(e,t,n){var r=nn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,s){var a=e.get(r,w);return a===w?s:t.call(n,a,r,e)},r.__iterateUncached=function(r,s){var a=this;return e.__iterate((function(e,s,i){return!1!==r(t.call(n,e,s,i),s,a)}),s)},r.__iteratorUncached=function(r,s){var a=e.__iterator(D,s);return new B((function(){var s=a.next();if(s.done)return s;var i=s.value,o=i[0];return $(r,o,t.call(n,i[1],o,e),s)}))},r}function qt(e,t){var n=nn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Ft(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=rn,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Vt(e,t,n,r){var s=nn(e);return r&&(s.has=function(r){var s=e.get(r,w);return s!==w&&!!t.call(n,s,r,e)},s.get=function(r,s){var a=e.get(r,w);return a!==w&&t.call(n,a,r,e)?a:s}),s.__iterateUncached=function(s,a){var i=this,o=0;return e.__iterate((function(e,a,l){if(t.call(n,e,a,l))return o++,s(e,r?a:o-1,i)}),a),o},s.__iteratorUncached=function(s,a){var i=e.__iterator(D,a),o=0;return new B((function(){for(;;){var a=i.next();if(a.done)return a;var l=a.value,c=l[0],u=l[1];if(t.call(n,u,c,e))return $(s,r?c:o++,u,a)}}))},s}function Ut(e,t,n,r){var s=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n===1/0?n=s:n|=0),M(t,n,s))return e;var a=P(t,s),i=A(n,s);if(a!=a||i!=i)return Ut(e.toSeq().cacheResult(),t,n,r);var o,l=i-a;l==l&&(o=l<0?0:l);var c=nn(e);return c.size=0===o?o:e.size&&o||void 0,!r&&ae(e)&&o>=0&&(c.get=function(t,n){return(t=C(this,t))>=0&&t<o?e.get(t+a,n):n}),c.__iterateUncached=function(t,n){var s=this;if(0===o)return 0;if(n)return this.cacheResult().__iterate(t,n);var i=0,l=!0,c=0;return e.__iterate((function(e,n){if(!l||!(l=i++<a))return c++,!1!==t(e,r?n:c-1,s)&&c!==o})),c},c.__iteratorUncached=function(t,n){if(0!==o&&n)return this.cacheResult().__iterator(t,n);var s=0!==o&&e.__iterator(t,n),i=0,l=0;return new B((function(){for(;i++<a;)s.next();if(++l>o)return{value:void 0,done:!0};var e=s.next();return r||t===L?e:$(t,l-1,t===O?void 0:e.value[1],e)}))},c}function Gt(e,t,n,r){var s=nn(e);return s.__iterateUncached=function(s,a){var i=this;if(a)return this.cacheResult().__iterate(s,a);var o=!0,l=0;return e.__iterate((function(e,a,c){if(!o||!(o=t.call(n,e,a,c)))return l++,s(e,r?a:l-1,i)})),l},s.__iteratorUncached=function(s,a){var i=this;if(a)return this.cacheResult().__iterator(s,a);var o=e.__iterator(D,a),l=!0,c=0;return new B((function(){var e,a,u;do{if((e=o.next()).done)return r||s===L?e:$(s,c++,s===O?void 0:e.value[1],e);var d=e.value;a=d[0],u=d[1],l&&(l=t.call(n,u,a,i))}while(l);return s===D?e:$(s,a,u,e)}))},s}function Wt(e,t,n){var r=nn(e);return r.__iterateUncached=function(r,s){var a=0,o=!1;return function e(l,c){var u=this;l.__iterate((function(s,l){return(!t||c<t)&&i(s)?e(s,c+1):!1===r(s,n?l:a++,u)&&(o=!0),!o}),s)}(e,0),a},r.__iteratorUncached=function(r,s){var a=e.__iterator(r,s),o=[],l=0;return new B((function(){for(;a;){var e=a.next();if(!1===e.done){var c=e.value;if(r===D&&(c=c[1]),t&&!(o.length<t)||!i(c))return n?e:$(r,l++,c,e);o.push(a),a=c.__iterator(r,s)}else a=o.pop()}return{value:void 0,done:!0}}))},r}function Yt(e,t,n){t||(t=sn);var r=o(e),s=0,a=e.toSeq().map((function(t,r){return[r,t,s++,n?n(t,r,e):t]})).toArray();return a.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){a[t].length=2}:function(e,t){a[t]=e[1]}),r?Y(a):l(e)?X(a):K(a)}function Xt(e,t,n){if(t||(t=sn),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return Kt(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return Kt(t,e,n)?n:e}))}function Kt(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function Jt(e,t,r){var s=nn(e);return s.size=new te(r).map((function(e){return e.size})).min(),s.__iterate=function(e,t){for(var n,r=this.__iterator(L,t),s=0;!(n=r.next()).done&&!1!==e(n.value,s++,this););return s},s.__iteratorUncached=function(e,s){var a=r.map((function(e){return e=n(e),V(s?e.reverse():e)})),i=0,o=!1;return new B((function(){var n;return o||(n=a.map((function(e){return e.next()})),o=n.some((function(e){return e.done}))),o?{value:void 0,done:!0}:$(e,i++,t.apply(null,n.map((function(e){return e.value}))))}))},s}function Qt(e,t){return ae(e)?t:e.constructor(t)}function Zt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function en(e){return Be(e.size),j(e)}function tn(e){return o(e)?r:l(e)?s:a}function nn(e){return Object.create((o(e)?Y:l(e)?X:K).prototype)}function rn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):W.prototype.cacheResult.call(this)}function sn(e,t){return e>t?1:e<t?-1:0}function an(e){var t=V(e);if(!t){if(!G(e))throw new TypeError("Expected iterable or array-like: "+e);t=V(n(e))}return t}function on(e,t){var n,r=function(a){if(a instanceof r)return a;if(!(this instanceof r))return new r(a);if(!n){n=!0;var i=Object.keys(e);(function(e,t){try{t.forEach(dn.bind(void 0,e))}catch(e){}})(s,i),s.size=i.length,s._name=t,s._keys=i,s._defaultValues=e}this._map=$e(a)},s=r.prototype=Object.create(ln);return s.constructor=r,r}t(It,$e),It.of=function(){return this(arguments)},It.prototype.toString=function(){return this.__toString("OrderedMap {","}")},It.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},It.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Dt()},It.prototype.set=function(e,t){return zt(this,e,t)},It.prototype.remove=function(e){return zt(this,e,w)},It.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},It.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},It.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},It.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Lt(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},It.isOrderedMap=Ot,It.prototype[f]=!0,It.prototype[m]=It.prototype.remove,t(Nt,Y),Nt.prototype.get=function(e,t){return this._iter.get(e,t)},Nt.prototype.has=function(e){return this._iter.has(e)},Nt.prototype.valueSeq=function(){return this._iter.valueSeq()},Nt.prototype.reverse=function(){var e=this,t=qt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Nt.prototype.map=function(e,t){var n=this,r=Ht(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},Nt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?en(this):0,function(s){return e(s,t?--n:n++,r)}),t)},Nt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(L,t),r=t?en(this):0;return new B((function(){var s=n.next();return s.done?s:$(e,t?--r:r++,s.value,s)}))},Nt.prototype[f]=!0,t(Rt,X),Rt.prototype.includes=function(e){return this._iter.includes(e)},Rt.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},Rt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(L,t),r=0;return new B((function(){var t=n.next();return t.done?t:$(e,r++,t.value,t)}))},t(Bt,K),Bt.prototype.has=function(e){return this._iter.includes(e)},Bt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},Bt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(L,t);return new B((function(){var t=n.next();return t.done?t:$(e,t.value,t.value,t)}))},t($t,Y),$t.prototype.entrySeq=function(){return this._iter.toSeq()},$t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){Zt(t);var r=i(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},$t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(L,t);return new B((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Zt(r);var s=i(r);return $(e,s?r.get(0):r[0],s?r.get(1):r[1],t)}}}))},Rt.prototype.cacheResult=Nt.prototype.cacheResult=Bt.prototype.cacheResult=$t.prototype.cacheResult=rn,t(on,xe),on.prototype.toString=function(){return this.__toString(un(this)+" {","}")},on.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},on.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},on.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=cn(this,et()))},on.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+un(this));if(this._map&&!this._map.has(e)&&t===this._defaultValues[e])return this;var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:cn(this,n)},on.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:cn(this,t)},on.prototype.wasAltered=function(){return this._map.wasAltered()},on.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},on.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},on.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?cn(this,t,e):(this.__ownerID=e,this._map=t,this)};var ln=on.prototype;function cn(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function un(e){return e._name||e.constructor.name||"Record"}function dn(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){we(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function pn(e){return null==e?wn():hn(e)&&!u(e)?e:wn().withMutations((function(t){var n=a(e);Be(n.size),n.forEach((function(e){return t.add(e)}))}))}function hn(e){return!(!e||!e[mn])}ln[m]=ln.remove,ln.deleteIn=ln.removeIn=Ve.removeIn,ln.merge=Ve.merge,ln.mergeWith=Ve.mergeWith,ln.mergeIn=Ve.mergeIn,ln.mergeDeep=Ve.mergeDeep,ln.mergeDeepWith=Ve.mergeDeepWith,ln.mergeDeepIn=Ve.mergeDeepIn,ln.setIn=Ve.setIn,ln.update=Ve.update,ln.updateIn=Ve.updateIn,ln.withMutations=Ve.withMutations,ln.asMutable=Ve.asMutable,ln.asImmutable=Ve.asImmutable,t(pn,Se),pn.of=function(){return this(arguments)},pn.fromKeys=function(e){return this(r(e).keySeq())},pn.prototype.toString=function(){return this.__toString("Set {","}")},pn.prototype.has=function(e){return this._map.has(e)},pn.prototype.add=function(e){return vn(this,this._map.set(e,!0))},pn.prototype.remove=function(e){return vn(this,this._map.remove(e))},pn.prototype.clear=function(){return vn(this,this._map.clear())},pn.prototype.union=function(){var t=e.call(arguments,0);return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)a(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},pn.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return a(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},pn.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return a(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},pn.prototype.merge=function(){return this.union.apply(this,arguments)},pn.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},pn.prototype.sort=function(e){return yn(Yt(this,e))},pn.prototype.sortBy=function(e,t){return yn(Yt(this,t,e))},pn.prototype.wasAltered=function(){return this._map.wasAltered()},pn.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},pn.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},pn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},pn.isSet=hn;var fn,mn="@@__IMMUTABLE_SET__@@",gn=pn.prototype;function vn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function bn(e,t){var n=Object.create(gn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function wn(){return fn||(fn=bn(et()))}function yn(e){return null==e?jn():xn(e)?e:jn().withMutations((function(t){var n=a(e);Be(n.size),n.forEach((function(e){return t.add(e)}))}))}function xn(e){return hn(e)&&u(e)}gn[mn]=!0,gn[m]=gn.remove,gn.mergeDeep=gn.merge,gn.mergeDeepWith=gn.mergeWith,gn.withMutations=Ve.withMutations,gn.asMutable=Ve.asMutable,gn.asImmutable=Ve.asImmutable,gn.__empty=wn,gn.__make=bn,t(yn,pn),yn.of=function(){return this(arguments)},yn.fromKeys=function(e){return this(r(e).keySeq())},yn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},yn.isOrderedSet=xn;var kn,Sn=yn.prototype;function En(e,t){var n=Object.create(Sn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function jn(){return kn||(kn=En(Dt()))}function Cn(e){return null==e?On():Tn(e)?e:On().unshiftAll(e)}function Tn(e){return!(!e||!e[Pn])}Sn[f]=!0,Sn.__empty=jn,Sn.__make=En,t(Cn,ke),Cn.of=function(){return this(arguments)},Cn.prototype.toString=function(){return this.__toString("Stack [","]")},Cn.prototype.get=function(e,t){var n=this._head;for(e=C(this,e);n&&e--;)n=n.next;return n?n.value:t},Cn.prototype.peek=function(){return this._head&&this._head.value},Cn.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):In(e,t)},Cn.prototype.pushAll=function(e){if(0===(e=s(e)).size)return this;Be(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):In(t,n)},Cn.prototype.pop=function(){return this.slice(1)},Cn.prototype.unshift=function(){return this.push.apply(this,arguments)},Cn.prototype.unshiftAll=function(e){return this.pushAll(e)},Cn.prototype.shift=function(){return this.pop.apply(this,arguments)},Cn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):On()},Cn.prototype.slice=function(e,t){if(M(e,t,this.size))return this;var n=P(e,this.size);if(A(t,this.size)!==this.size)return ke.prototype.slice.call(this,e,t);for(var r=this.size-n,s=this._head;n--;)s=s.next;return this.__ownerID?(this.size=r,this._head=s,this.__hash=void 0,this.__altered=!0,this):In(r,s)},Cn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?In(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Cn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Cn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new B((function(){if(r){var t=r.value;return r=r.next,$(e,n++,t)}return{value:void 0,done:!0}}))},Cn.isStack=Tn;var Mn,Pn="@@__IMMUTABLE_STACK__@@",An=Cn.prototype;function In(e,t,n,r){var s=Object.create(An);return s.size=e,s._head=t,s.__ownerID=n,s.__hash=r,s.__altered=!1,s}function On(){return Mn||(Mn=In(0))}function Ln(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}An[Pn]=!0,An.withMutations=Ve.withMutations,An.asMutable=Ve.asMutable,An.asImmutable=Ve.asImmutable,An.wasAltered=Ve.wasAltered,n.Iterator=B,Ln(n,{toArray:function(){Be(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Rt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new Nt(this,!0)},toMap:function(){return $e(this.toKeyedSeq())},toObject:function(){Be(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return It(this.toKeyedSeq())},toOrderedSet:function(){return yn(o(this)?this.valueSeq():this)},toSet:function(){return pn(o(this)?this.valueSeq():this)},toSetSeq:function(){return new Bt(this)},toSeq:function(){return l(this)?this.toIndexedSeq():o(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Cn(o(this)?this.valueSeq():this)},toList:function(){return mt(o(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return Qt(this,function(e,t){var n=o(e),s=[e].concat(t).map((function(e){return i(e)?n&&(e=r(e)):e=n?oe(e):le(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===s.length)return e;if(1===s.length){var a=s[0];if(a===e||n&&o(a)||l(e)&&l(a))return a}var c=new te(s);return n?c=c.toKeyedSeq():l(e)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=s.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),c}(this,e.call(arguments,0)))},includes:function(e){return this.some((function(t){return ge(t,e)}))},entries:function(){return this.__iterator(D)},every:function(e,t){Be(this.size);var n=!0;return this.__iterate((function(r,s,a){if(!e.call(t,r,s,a))return n=!1,!1})),n},filter:function(e,t){return Qt(this,Vt(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return Be(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Be(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(O)},map:function(e,t){return Qt(this,Ht(this,e,t))},reduce:function(e,t,n){var r,s;return Be(this.size),arguments.length<2?s=!0:r=t,this.__iterate((function(t,a,i){s?(s=!1,r=t):r=e.call(n,r,t,a,i)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Qt(this,qt(this,!0))},slice:function(e,t){return Qt(this,Ut(this,e,t,!0))},some:function(e,t){return!this.every(Bn(e),t)},sort:function(e){return Qt(this,Yt(this,e))},values:function(){return this.__iterator(L)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return j(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=$e().asMutable();return e.__iterate((function(s,a){r.update(t.call(n,s,a,e),0,(function(e){return e+1}))})),r.asImmutable()}(this,e,t)},equals:function(e){return ve(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(Rn).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Bn(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate((function(n,s,a){if(e.call(t,n,s,a))return r=[s,n],!1})),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(T)},flatMap:function(e,t){return Qt(this,function(e,t,n){var r=tn(e);return e.toSeq().map((function(s,a){return r(t.call(n,s,a,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return Qt(this,Wt(this,e,!0))},fromEntrySeq:function(){return new $t(this)},get:function(e,t){return this.find((function(t,n){return ge(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,s=an(e);!(n=s.next()).done;){var a=n.value;if((r=r&&r.get?r.get(a,w):w)===w)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=o(e),s=(u(e)?It():$e()).asMutable();e.__iterate((function(a,i){s.update(t.call(n,a,i,e),(function(e){return(e=e||[]).push(r?[i,a]:a),e}))}));var a=tn(e);return s.map((function(t){return Qt(e,a(t))}))}(this,e,t)},has:function(e){return this.get(e,w)!==w},hasIn:function(e){return this.getIn(e,w)!==w},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keyOf:function(e){return this.findKey((function(t){return ge(t,e)}))},keySeq:function(){return this.toSeq().map(Nn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return Xt(this,e)},maxBy:function(e,t){return Xt(this,t,e)},min:function(e){return Xt(this,e?$n(e):qn)},minBy:function(e,t){return Xt(this,t?$n(t):qn,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return Qt(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return Qt(this,Gt(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Bn(e),t)},sortBy:function(e,t){return Qt(this,Yt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Qt(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return Qt(this,function(e,t,n){var r=nn(e);return r.__iterateUncached=function(r,s){var a=this;if(s)return this.cacheResult().__iterate(r,s);var i=0;return e.__iterate((function(e,s,o){return t.call(n,e,s,o)&&++i&&r(e,s,a)})),i},r.__iteratorUncached=function(r,s){var a=this;if(s)return this.cacheResult().__iterator(r,s);var i=e.__iterator(D,s),o=!0;return new B((function(){if(!o)return{value:void 0,done:!0};var e=i.next();if(e.done)return e;var s=e.value,l=s[0],c=s[1];return t.call(n,c,l,a)?r===D?e:$(r,l,c,e):(o=!1,{value:void 0,done:!0})}))},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Bn(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=u(e),n=o(e),r=t?1:0;return function(e,t){return t=Ee(t,3432918353),t=Ee(t<<15|t>>>-15,461845907),t=Ee(t<<13|t>>>-13,5),t=Ee((t=t+3864292196^e)^t>>>16,2246822507),je((t=Ee(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+Vn(Ce(e),Ce(t))|0}:function(e,t){r=r+Vn(Ce(e),Ce(t))|0}:t?function(e){r=31*r+Ce(e)|0}:function(e){r=r+Ce(e)|0}),r)}(this))}});var Dn=n.prototype;Dn[d]=!0,Dn[R]=Dn.values,Dn.__toJS=Dn.toArray,Dn.__toStringMapper=Fn,Dn.inspect=Dn.toSource=function(){return this.toString()},Dn.chain=Dn.flatMap,Dn.contains=Dn.includes,Ln(r,{flip:function(){return Qt(this,Ft(this))},mapEntries:function(e,t){var n=this,r=0;return Qt(this,this.toSeq().map((function(s,a){return e.call(t,[a,s],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Qt(this,this.toSeq().flip().map((function(r,s){return e.call(t,r,s,n)})).flip())}});var zn=r.prototype;function Nn(e,t){return t}function Rn(e,t){return[t,e]}function Bn(e){return function(){return!e.apply(this,arguments)}}function $n(e){return function(){return-e.apply(this,arguments)}}function Fn(e){return"string"==typeof e?JSON.stringify(e):String(e)}function Hn(){return E(arguments)}function qn(e,t){return e<t?1:e>t?-1:0}function Vn(e,t){return e^t+2654435769+(e<<6)+(e>>2)}return zn[p]=!0,zn[R]=Dn.entries,zn.__toJS=Dn.toObject,zn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+Fn(e)},Ln(s,{toKeyedSeq:function(){return new Nt(this,!1)},filter:function(e,t){return Qt(this,Vt(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return Qt(this,qt(this,!1))},slice:function(e,t){return Qt(this,Ut(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=P(e,e<0?this.count():this.size);var r=this.slice(0,e);return Qt(this,1===n?r:r.concat(E(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return Qt(this,Wt(this,e,!1))},get:function(e,t){return(e=C(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=C(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return Qt(this,function(e,t){var n=nn(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var s=this,a=0;return e.__iterate((function(e,r){return(!a||!1!==n(t,a++,s))&&!1!==n(e,a++,s)}),r),a},n.__iteratorUncached=function(n,r){var s,a=e.__iterator(L,r),i=0;return new B((function(){return(!s||i%2)&&(s=a.next()).done?s:i%2?$(n,i++,t):$(n,i++,s.value,s)}))},n}(this,e))},interleave:function(){var e=[this].concat(E(arguments)),t=Jt(this.toSeq(),X.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),Qt(this,n)},keySeq:function(){return ye(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(e,t){return Qt(this,Gt(this,e,t,!1))},zip:function(){return Qt(this,Jt(this,Hn,[this].concat(E(arguments))))},zipWith:function(e){var t=E(arguments);return t[0]=this,Qt(this,Jt(this,e,t))}}),s.prototype[h]=!0,s.prototype[f]=!0,Ln(a,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),a.prototype.has=Dn.includes,a.prototype.contains=a.prototype.includes,Ln(Y,r.prototype),Ln(X,s.prototype),Ln(K,a.prototype),Ln(xe,r.prototype),Ln(ke,s.prototype),Ln(Se,a.prototype),{Iterable:n,Seq:W,Collection:_e,Map:$e,OrderedMap:It,List:mt,Stack:Cn,Set:pn,OrderedSet:yn,Record:on,Range:ye,Repeat:be,is:ge,fromJS:pe}}()},4634:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},5580:(e,t,n)=>{var r=n(6110)(n(9325),"DataView");e.exports=r},1549:(e,t,n)=>{var r=n(2032),s=n(3862),a=n(6721),i=n(2749),o=n(5749);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=s,l.prototype.get=a,l.prototype.has=i,l.prototype.set=o,e.exports=l},79:(e,t,n)=>{var r=n(3702),s=n(80),a=n(4739),i=n(8655),o=n(1175);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=s,l.prototype.get=a,l.prototype.has=i,l.prototype.set=o,e.exports=l},8223:(e,t,n)=>{var r=n(6110)(n(9325),"Map");e.exports=r},3661:(e,t,n)=>{var r=n(3040),s=n(7670),a=n(289),i=n(4509),o=n(2949);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=s,l.prototype.get=a,l.prototype.has=i,l.prototype.set=o,e.exports=l},2804:(e,t,n)=>{var r=n(6110)(n(9325),"Promise");e.exports=r},6545:(e,t,n)=>{var r=n(6110)(n(9325),"Set");e.exports=r},8859:(e,t,n)=>{var r=n(3661),s=n(1380),a=n(1459);function i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}i.prototype.add=i.prototype.push=s,i.prototype.has=a,e.exports=i},7217:(e,t,n)=>{var r=n(79),s=n(1420),a=n(938),i=n(3605),o=n(9817),l=n(945);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=s,c.prototype.delete=a,c.prototype.get=i,c.prototype.has=o,c.prototype.set=l,e.exports=c},1873:(e,t,n)=>{var r=n(9325).Symbol;e.exports=r},7828:(e,t,n)=>{var r=n(9325).Uint8Array;e.exports=r},8303:(e,t,n)=>{var r=n(6110)(n(9325),"WeakMap");e.exports=r},1033:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},9770:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,s=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[s++]=i)}return a}},695:(e,t,n)=>{var r=n(8096),s=n(2428),a=n(6449),i=n(3656),o=n(361),l=n(7167),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),u=!n&&s(e),d=!n&&!u&&i(e),p=!n&&!u&&!d&&l(e),h=n||u||d||p,f=h?r(e.length,String):[],m=f.length;for(var g in e)!t&&!c.call(e,g)||h&&("length"==g||d&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||o(g,m))||f.push(g);return f}},4932:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,s=Array(r);++n<r;)s[n]=t(e[n],n,e);return s}},4528:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,s=e.length;++n<r;)e[s+n]=t[n];return e}},4248:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},7805:(e,t,n)=>{var r=n(3360),s=n(5288);e.exports=function(e,t,n){(void 0!==n&&!s(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},6547:(e,t,n)=>{var r=n(3360),s=n(5288),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var i=e[t];a.call(e,t)&&s(i,n)&&(void 0!==n||t in e)||r(e,t,n)}},6025:(e,t,n)=>{var r=n(5288);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},3360:(e,t,n)=>{var r=n(3243);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},9344:(e,t,n)=>{var r=n(3805),s=Object.create,a=function(){function e(){}return function(t){if(!r(t))return{};if(s)return s(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=a},909:(e,t,n)=>{var r=n(641),s=n(8329)(r);e.exports=s},6574:(e,t,n)=>{var r=n(909);e.exports=function(e,t){var n=[];return r(e,(function(e,r,s){t(e,r,s)&&n.push(e)})),n}},2523:e=>{e.exports=function(e,t,n,r){for(var s=e.length,a=n+(r?1:-1);r?a--:++a<s;)if(t(e[a],a,e))return a;return-1}},6649:(e,t,n)=>{var r=n(3221)();e.exports=r},641:(e,t,n)=>{var r=n(6649),s=n(5950);e.exports=function(e,t){return e&&r(e,t,s)}},7422:(e,t,n)=>{var r=n(1769),s=n(7797);e.exports=function(e,t){for(var n=0,a=(t=r(t,e)).length;null!=e&&n<a;)e=e[s(t[n++])];return n&&n==a?e:void 0}},2199:(e,t,n)=>{var r=n(4528),s=n(6449);e.exports=function(e,t,n){var a=t(e);return s(e)?a:r(a,n(e))}},2552:(e,t,n)=>{var r=n(1873),s=n(659),a=n(9350),i=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?s(e):a(e)}},8077:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},7534:(e,t,n)=>{var r=n(2552),s=n(346);e.exports=function(e){return s(e)&&"[object Arguments]"==r(e)}},270:(e,t,n)=>{var r=n(7068),s=n(346);e.exports=function e(t,n,a,i,o){return t===n||(null==t||null==n||!s(t)&&!s(n)?t!=t&&n!=n:r(t,n,a,i,e,o))}},7068:(e,t,n)=>{var r=n(7217),s=n(5911),a=n(1986),i=n(689),o=n(5861),l=n(6449),c=n(3656),u=n(7167),d="[object Arguments]",p="[object Array]",h="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,v){var b=l(e),w=l(t),y=b?p:o(e),_=w?p:o(t),x=(y=y==d?h:y)==h,k=(_=_==d?h:_)==h,S=y==_;if(S&&c(e)){if(!c(t))return!1;b=!0,x=!1}if(S&&!x)return v||(v=new r),b||u(e)?s(e,t,n,m,g,v):a(e,t,y,n,m,g,v);if(!(1&n)){var E=x&&f.call(e,"__wrapped__"),j=k&&f.call(t,"__wrapped__");if(E||j){var C=E?e.value():e,T=j?t.value():t;return v||(v=new r),g(C,T,n,m,v)}}return!!S&&(v||(v=new r),i(e,t,n,m,g,v))}},1799:(e,t,n)=>{var r=n(7217),s=n(270);e.exports=function(e,t,n,a){var i=n.length,o=i,l=!a;if(null==e)return!o;for(e=Object(e);i--;){var c=n[i];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<o;){var u=(c=n[i])[0],d=e[u],p=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var h=new r;if(a)var f=a(d,p,u,e,t,h);if(!(void 0===f?s(p,d,3,a,h):f))return!1}}return!0}},5083:(e,t,n)=>{var r=n(1882),s=n(7296),a=n(3805),i=n(7473),o=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||s(e))&&(r(e)?p:o).test(i(e))}},4901:(e,t,n)=>{var r=n(2552),s=n(294),a=n(346),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&s(e.length)&&!!i[r(e)]}},5389:(e,t,n)=>{var r=n(3663),s=n(7978),a=n(3488),i=n(6449),o=n(583);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?i(e)?s(e[0],e[1]):r(e):o(e)}},8984:(e,t,n)=>{var r=n(5527),s=n(3650),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return s(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},2903:(e,t,n)=>{var r=n(3805),s=n(5527),a=n(181),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=s(e),n=[];for(var o in e)("constructor"!=o||!t&&i.call(e,o))&&n.push(o);return n}},3663:(e,t,n)=>{var r=n(1799),s=n(776),a=n(7197);e.exports=function(e){var t=s(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},7978:(e,t,n)=>{var r=n(270),s=n(8156),a=n(631),i=n(8586),o=n(756),l=n(7197),c=n(7797);e.exports=function(e,t){return i(e)&&o(t)?l(c(e),t):function(n){var i=s(n,e);return void 0===i&&i===t?a(n,e):r(t,i,3)}}},5250:(e,t,n)=>{var r=n(7217),s=n(7805),a=n(6649),i=n(2824),o=n(3805),l=n(7241),c=n(4974);e.exports=function e(t,n,u,d,p){t!==n&&a(n,(function(a,l){if(p||(p=new r),o(a))i(t,n,l,u,e,d,p);else{var h=d?d(c(t,l),a,l+"",t,n,p):void 0;void 0===h&&(h=a),s(t,l,h)}}),l)}},2824:(e,t,n)=>{var r=n(7805),s=n(3290),a=n(1961),i=n(3007),o=n(5529),l=n(2428),c=n(6449),u=n(3693),d=n(3656),p=n(1882),h=n(3805),f=n(1331),m=n(7167),g=n(4974),v=n(9884);e.exports=function(e,t,n,b,w,y,_){var x=g(e,n),k=g(t,n),S=_.get(k);if(S)r(e,n,S);else{var E=y?y(x,k,n+"",e,t,_):void 0,j=void 0===E;if(j){var C=c(k),T=!C&&d(k),M=!C&&!T&&m(k);E=k,C||T||M?c(x)?E=x:u(x)?E=i(x):T?(j=!1,E=s(k,!0)):M?(j=!1,E=a(k,!0)):E=[]:f(k)||l(k)?(E=x,l(x)?E=v(x):h(x)&&!p(x)||(E=o(k))):j=!1}j&&(_.set(k,E),w(E,k,b,y,_),_.delete(k)),r(e,n,E)}}},7237:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},7255:(e,t,n)=>{var r=n(7422);e.exports=function(e){return function(t){return r(t,e)}}},9302:(e,t,n)=>{var r=n(3488),s=n(6757),a=n(2865);e.exports=function(e,t){return a(s(e,t,r),e+"")}},3170:(e,t,n)=>{var r=n(6547),s=n(1769),a=n(361),i=n(3805),o=n(7797);e.exports=function(e,t,n,l){if(!i(e))return e;for(var c=-1,u=(t=s(t,e)).length,d=u-1,p=e;null!=p&&++c<u;){var h=o(t[c]),f=n;if("__proto__"===h||"constructor"===h||"prototype"===h)return e;if(c!=d){var m=p[h];void 0===(f=l?l(m,h,p):void 0)&&(f=i(m)?m:a(t[c+1])?[]:{})}r(p,h,f),p=p[h]}return e}},9570:(e,t,n)=>{var r=n(7334),s=n(3243),a=n(3488),i=s?function(e,t){return s(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:a;e.exports=i},916:(e,t,n)=>{var r=n(909);e.exports=function(e,t){var n;return r(e,(function(e,r,s){return!(n=t(e,r,s))})),!!n}},8096:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},7556:(e,t,n)=>{var r=n(1873),s=n(4932),a=n(6449),i=n(4394),o=r?r.prototype:void 0,l=o?o.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return s(t,e)+"";if(i(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},4128:(e,t,n)=>{var r=n(1800),s=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(s,""):e}},7301:e=>{e.exports=function(e){return function(t){return e(t)}}},9219:e=>{e.exports=function(e,t){return e.has(t)}},1769:(e,t,n)=>{var r=n(6449),s=n(8586),a=n(1802),i=n(3222);e.exports=function(e,t){return r(e)?e:s(e,t)?[e]:a(i(e))}},9653:(e,t,n)=>{var r=n(7828);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},3290:(e,t,n)=>{e=n.nmd(e);var r=n(9325),s=t&&!t.nodeType&&t,a=s&&e&&!e.nodeType&&e,i=a&&a.exports===s?r.Buffer:void 0,o=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=o?o(n):new e.constructor(n);return e.copy(r),r}},1961:(e,t,n)=>{var r=n(9653);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},3007:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},1791:(e,t,n)=>{var r=n(6547),s=n(3360);e.exports=function(e,t,n,a){var i=!n;n||(n={});for(var o=-1,l=t.length;++o<l;){var c=t[o],u=a?a(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),i?s(n,c,u):r(n,c,u)}return n}},5481:(e,t,n)=>{var r=n(9325)["__core-js_shared__"];e.exports=r},999:(e,t,n)=>{var r=n(9302),s=n(6800);e.exports=function(e){return r((function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(a--,i):void 0,o&&s(n[0],n[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++r<a;){var l=n[r];l&&e(t,l,r,i)}return t}))}},8329:(e,t,n)=>{var r=n(4894);e.exports=function(e,t){return function(n,s){if(null==n)return n;if(!r(n))return e(n,s);for(var a=n.length,i=t?a:-1,o=Object(n);(t?i--:++i<a)&&!1!==s(o[i],i,o););return n}}},3221:e=>{e.exports=function(e){return function(t,n,r){for(var s=-1,a=Object(t),i=r(t),o=i.length;o--;){var l=i[e?o:++s];if(!1===n(a[l],l,a))break}return t}}},2006:(e,t,n)=>{var r=n(5389),s=n(4894),a=n(5950);e.exports=function(e){return function(t,n,i){var o=Object(t);if(!s(t)){var l=r(n,3);t=a(t),n=function(e){return l(o[e],e,o)}}var c=e(t,n,i);return c>-1?o[l?t[c]:c]:void 0}}},3243:(e,t,n)=>{var r=n(6110),s=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=s},5911:(e,t,n)=>{var r=n(8859),s=n(4248),a=n(9219);e.exports=function(e,t,n,i,o,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var p=l.get(e),h=l.get(t);if(p&&h)return p==t&&h==e;var f=-1,m=!0,g=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++f<u;){var v=e[f],b=t[f];if(i)var w=c?i(b,v,f,t,e,l):i(v,b,f,e,t,l);if(void 0!==w){if(w)continue;m=!1;break}if(g){if(!s(t,(function(e,t){if(!a(g,t)&&(v===e||o(v,e,n,i,l)))return g.push(t)}))){m=!1;break}}else if(v!==b&&!o(v,b,n,i,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},1986:(e,t,n)=>{var r=n(1873),s=n(7828),a=n(5288),i=n(5911),o=n(317),l=n(4247),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,d,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new s(e),new s(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=o;case"[object Set]":var f=1&r;if(h||(h=l),e.size!=t.size&&!f)return!1;var m=p.get(e);if(m)return m==t;r|=2,p.set(e,t);var g=i(h(e),h(t),r,c,d,p);return p.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},689:(e,t,n)=>{var r=n(2),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,i,o){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var p=c[d];if(!(l?p in t:s.call(t,p)))return!1}var h=o.get(e),f=o.get(t);if(h&&f)return h==t&&f==e;var m=!0;o.set(e,t),o.set(t,e);for(var g=l;++d<u;){var v=e[p=c[d]],b=t[p];if(a)var w=l?a(b,v,p,t,e,o):a(v,b,p,e,t,o);if(!(void 0===w?v===b||i(v,b,n,a,o):w)){m=!1;break}g||(g="constructor"==p)}if(m&&!g){var y=e.constructor,_=t.constructor;y==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof _&&_ instanceof _||(m=!1)}return o.delete(e),o.delete(t),m}},4840:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},2:(e,t,n)=>{var r=n(2199),s=n(4664),a=n(5950);e.exports=function(e){return r(e,a,s)}},2651:(e,t,n)=>{var r=n(4218);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},776:(e,t,n)=>{var r=n(756),s=n(5950);e.exports=function(e){for(var t=s(e),n=t.length;n--;){var a=t[n],i=e[a];t[n]=[a,i,r(i)]}return t}},6110:(e,t,n)=>{var r=n(5083),s=n(392);e.exports=function(e,t){var n=s(e,t);return r(n)?n:void 0}},8879:(e,t,n)=>{var r=n(4335)(Object.getPrototypeOf,Object);e.exports=r},659:(e,t,n)=>{var r=n(1873),s=Object.prototype,a=s.hasOwnProperty,i=s.toString,o=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch(e){}var s=i.call(e);return r&&(t?e[o]=n:delete e[o]),s}},4664:(e,t,n)=>{var r=n(9770),s=n(3345),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,o=i?function(e){return null==e?[]:(e=Object(e),r(i(e),(function(t){return a.call(e,t)})))}:s;e.exports=o},5861:(e,t,n)=>{var r=n(5580),s=n(8223),a=n(2804),i=n(6545),o=n(8303),l=n(2552),c=n(7473),u="[object Map]",d="[object Promise]",p="[object Set]",h="[object WeakMap]",f="[object DataView]",m=c(r),g=c(s),v=c(a),b=c(i),w=c(o),y=l;(r&&y(new r(new ArrayBuffer(1)))!=f||s&&y(new s)!=u||a&&y(a.resolve())!=d||i&&y(new i)!=p||o&&y(new o)!=h)&&(y=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case m:return f;case g:return u;case v:return d;case b:return p;case w:return h}return t}),e.exports=y},392:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},9326:(e,t,n)=>{var r=n(1769),s=n(2428),a=n(6449),i=n(361),o=n(294),l=n(7797);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c<u;){var p=l(t[c]);if(!(d=null!=e&&n(e,p)))break;e=e[p]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&o(u)&&i(p,u)&&(a(e)||s(e))}},2032:(e,t,n)=>{var r=n(1042);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},3862:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},6721:(e,t,n)=>{var r=n(1042),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return s.call(t,e)?t[e]:void 0}},2749:(e,t,n)=>{var r=n(1042),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:s.call(t,e)}},5749:(e,t,n)=>{var r=n(1042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},5529:(e,t,n)=>{var r=n(9344),s=n(8879),a=n(5527);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:r(s(e))}},361:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},6800:(e,t,n)=>{var r=n(5288),s=n(4894),a=n(361),i=n(3805);e.exports=function(e,t,n){if(!i(n))return!1;var o=typeof t;return!!("number"==o?s(n)&&a(t,n.length):"string"==o&&t in n)&&r(n[t],e)}},8586:(e,t,n)=>{var r=n(6449),s=n(4394),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!s(e))||i.test(e)||!a.test(e)||null!=t&&e in Object(t)}},4218:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7296:(e,t,n)=>{var r,s=n(5481),a=(r=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!a&&a in e}},5527:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},756:(e,t,n)=>{var r=n(3805);e.exports=function(e){return e==e&&!r(e)}},3702:e=>{e.exports=function(){this.__data__=[],this.size=0}},80:(e,t,n)=>{var r=n(6025),s=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():s.call(t,n,1),--this.size,0))}},4739:(e,t,n)=>{var r=n(6025);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},8655:(e,t,n)=>{var r=n(6025);e.exports=function(e){return r(this.__data__,e)>-1}},1175:(e,t,n)=>{var r=n(6025);e.exports=function(e,t){var n=this.__data__,s=r(n,e);return s<0?(++this.size,n.push([e,t])):n[s][1]=t,this}},3040:(e,t,n)=>{var r=n(1549),s=n(79),a=n(8223);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||s),string:new r}}},7670:(e,t,n)=>{var r=n(2651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},289:(e,t,n)=>{var r=n(2651);e.exports=function(e){return r(this,e).get(e)}},4509:(e,t,n)=>{var r=n(2651);e.exports=function(e){return r(this,e).has(e)}},2949:(e,t,n)=>{var r=n(2651);e.exports=function(e,t){var n=r(this,e),s=n.size;return n.set(e,t),this.size+=n.size==s?0:1,this}},317:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},7197:e=>{e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},2224:(e,t,n)=>{var r=n(104);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},1042:(e,t,n)=>{var r=n(6110)(Object,"create");e.exports=r},3650:(e,t,n)=>{var r=n(4335)(Object.keys,Object);e.exports=r},181:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},6009:(e,t,n)=>{e=n.nmd(e);var r=n(4840),s=t&&!t.nodeType&&t,a=s&&e&&!e.nodeType&&e,i=a&&a.exports===s&&r.process,o=function(){try{return a&&a.require&&a.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=o},9350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},4335:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},6757:(e,t,n)=>{var r=n(1033),s=Math.max;e.exports=function(e,t,n){return t=s(void 0===t?e.length-1:t,0),function(){for(var a=arguments,i=-1,o=s(a.length-t,0),l=Array(o);++i<o;)l[i]=a[t+i];i=-1;for(var c=Array(t+1);++i<t;)c[i]=a[i];return c[t]=n(l),r(e,this,c)}}},9325:(e,t,n)=>{var r=n(4840),s="object"==typeof self&&self&&self.Object===Object&&self,a=r||s||Function("return this")();e.exports=a},4974:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},1380:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1459:e=>{e.exports=function(e){return this.__data__.has(e)}},4247:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},2865:(e,t,n)=>{var r=n(9570),s=n(1811)(r);e.exports=s},1811:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var s=t(),a=16-(s-r);if(r=s,a>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},1420:(e,t,n)=>{var r=n(79);e.exports=function(){this.__data__=new r,this.size=0}},938:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},3605:e=>{e.exports=function(e){return this.__data__.get(e)}},9817:e=>{e.exports=function(e){return this.__data__.has(e)}},945:(e,t,n)=>{var r=n(79),s=n(8223),a=n(3661);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!s||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(i)}return n.set(e,t),this.size=n.size,this}},1802:(e,t,n)=>{var r=n(2224),s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,i=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(s,(function(e,n,r,s){t.push(r?s.replace(a,"$1"):n||e)})),t}));e.exports=i},7797:(e,t,n)=>{var r=n(4394);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},7473:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},1800:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},6139:(e,t,n)=>{var r=n(6547),s=n(1791),a=n(999),i=n(4894),o=n(5527),l=n(5950),c=Object.prototype.hasOwnProperty,u=a((function(e,t){if(o(t)||i(t))s(t,l(t),e);else for(var n in t)c.call(t,n)&&r(e,n,t[n])}));e.exports=u},7334:e=>{e.exports=function(e){return function(){return e}}},8221:(e,t,n)=>{var r=n(3805),s=n(124),a=n(9374),i=Math.max,o=Math.min;e.exports=function(e,t,n){var l,c,u,d,p,h,f=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=l,r=c;return l=c=void 0,f=t,d=e.apply(r,n)}function w(e){var n=e-h;return void 0===h||n>=t||n<0||g&&e-f>=u}function y(){var e=s();if(w(e))return _(e);p=setTimeout(y,function(e){var n=t-(e-h);return g?o(n,u-(e-f)):n}(e))}function _(e){return p=void 0,v&&l?b(e):(l=c=void 0,d)}function x(){var e=s(),n=w(e);if(l=arguments,c=this,h=e,n){if(void 0===p)return function(e){return f=e,p=setTimeout(y,t),m?b(e):d}(h);if(g)return clearTimeout(p),p=setTimeout(y,t),b(h)}return void 0===p&&(p=setTimeout(y,t)),d}return t=a(t)||0,r(n)&&(m=!!n.leading,u=(g="maxWait"in n)?i(a(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),x.cancel=function(){void 0!==p&&clearTimeout(p),f=0,l=h=c=p=void 0},x.flush=function(){return void 0===p?d:_(s())},x}},5288:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},7612:(e,t,n)=>{var r=n(9770),s=n(6574),a=n(5389),i=n(6449);e.exports=function(e,t){return(i(e)?r:s)(e,a(t,3))}},7309:(e,t,n)=>{var r=n(2006)(n(4713));e.exports=r},4713:(e,t,n)=>{var r=n(2523),s=n(5389),a=n(1489),i=Math.max;e.exports=function(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var l=null==n?0:a(n);return l<0&&(l=i(o+l,0)),r(e,s(t,3),l)}},8156:(e,t,n)=>{var r=n(7422);e.exports=function(e,t,n){var s=null==e?void 0:r(e,t);return void 0===s?n:s}},631:(e,t,n)=>{var r=n(8077),s=n(9326);e.exports=function(e,t){return null!=e&&s(e,t,r)}},3488:e=>{e.exports=function(e){return e}},2428:(e,t,n)=>{var r=n(7534),s=n(346),a=Object.prototype,i=a.hasOwnProperty,o=a.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return s(e)&&i.call(e,"callee")&&!o.call(e,"callee")};e.exports=l},6449:e=>{var t=Array.isArray;e.exports=t},4894:(e,t,n)=>{var r=n(1882),s=n(294);e.exports=function(e){return null!=e&&s(e.length)&&!r(e)}},3693:(e,t,n)=>{var r=n(4894),s=n(346);e.exports=function(e){return s(e)&&r(e)}},3656:(e,t,n)=>{e=n.nmd(e);var r=n(9325),s=n(9935),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,o=i&&i.exports===a?r.Buffer:void 0,l=(o?o.isBuffer:void 0)||s;e.exports=l},2193:(e,t,n)=>{var r=n(8984),s=n(5861),a=n(2428),i=n(6449),o=n(4894),l=n(3656),c=n(5527),u=n(7167),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(o(e)&&(i(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||a(e)))return!e.length;var t=s(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},1882:(e,t,n)=>{var r=n(2552),s=n(3805);e.exports=function(e){if(!s(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},294:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},3805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},1331:(e,t,n)=>{var r=n(2552),s=n(8879),a=n(346),i=Function.prototype,o=Object.prototype,l=i.toString,c=o.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=r(e))return!1;var t=s(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},5015:(e,t,n)=>{var r=n(2552),s=n(6449),a=n(346);e.exports=function(e){return"string"==typeof e||!s(e)&&a(e)&&"[object String]"==r(e)}},4394:(e,t,n)=>{var r=n(2552),s=n(346);e.exports=function(e){return"symbol"==typeof e||s(e)&&"[object Symbol]"==r(e)}},7167:(e,t,n)=>{var r=n(4901),s=n(7301),a=n(6009),i=a&&a.isTypedArray,o=i?s(i):r;e.exports=o},5950:(e,t,n)=>{var r=n(695),s=n(8984),a=n(4894);e.exports=function(e){return a(e)?r(e):s(e)}},7241:(e,t,n)=>{var r=n(695),s=n(2903),a=n(4894);e.exports=function(e){return a(e)?r(e,!0):s(e)}},104:(e,t,n)=>{var r=n(3661);function s(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,s=t?t.apply(this,r):r[0],a=n.cache;if(a.has(s))return a.get(s);var i=e.apply(this,r);return n.cache=a.set(s,i)||a,i};return n.cache=new(s.Cache||r),n}s.Cache=r,e.exports=s},6924:(e,t,n)=>{var r=n(5250),s=n(999)((function(e,t,n,s){r(e,t,n,s)}));e.exports=s},124:(e,t,n)=>{var r=n(9325);e.exports=function(){return r.Date.now()}},583:(e,t,n)=>{var r=n(7237),s=n(7255),a=n(8586),i=n(7797);e.exports=function(e){return a(e)?r(i(e)):s(e)}},3560:(e,t,n)=>{var r=n(3170);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},2426:(e,t,n)=>{var r=n(4248),s=n(5389),a=n(916),i=n(6449),o=n(6800);e.exports=function(e,t,n){var l=i(e)?r:a;return n&&o(e,t,n)&&(t=void 0),l(e,s(t,3))}},3345:e=>{e.exports=function(){return[]}},9935:e=>{e.exports=function(){return!1}},7400:(e,t,n)=>{var r=n(9374),s=1/0;e.exports=function(e){return e?(e=r(e))===s||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},1489:(e,t,n)=>{var r=n(7400);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},9374:(e,t,n)=>{var r=n(4128),s=n(3805),a=n(4394),i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return NaN;if(s(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=s(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=o.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):i.test(e)?NaN:+e}},9884:(e,t,n)=>{var r=n(1791),s=n(7241);e.exports=function(e){return r(e,s(e))}},3222:(e,t,n)=>{var r=n(7556);e.exports=function(e){return null==e?"":r(e)}},7784:function(e,t,n){var r;r=function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var s=t[r]={i:r,l:!1,exports:{}};return e[r].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t,n){"use strict";var r=n(5)();e.exports=function(e){return e!==r&&null!==e}},function(e,t,n){"use strict";e.exports=n(18)()?Symbol:n(20)},function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DateRange=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],_n=!0,r=!1,s=void 0;try{for(var a,i=e[Symbol.iterator]();!(_n=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,s=e}finally{try{!_n&&i.return&&i.return()}finally{if(r)throw s}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.extendMoment=function(e){return e.range=function(t,n){return u.hasOwnProperty(t)?new d(e(this).startOf(t),e(this).endOf(t)):new d(t,n)},e.rangeFromInterval=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e();if(e.isMoment(r)||(r=e(r)),!r.isValid())throw new Error("Invalid date.");var s=r.clone().add(n,t),a=[];return a.push(e.min(r,s)),a.push(e.max(r,s)),new d(a)},e.parseZoneRange=function(t){var n=p(t),r=e.parseZone(n[0]),s=e.parseZone(n[1]);return new d(r,s)},e.fn.range=e.range,e.range.constructor=d,e.isRange=function(e){return e instanceof d},e.fn.within=function(e){return e.contains(this.toDate())},e};var i=l(n(2)),o=l(n(1));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u={year:!0,quarter:!0,month:!0,week:!0,day:!0,hour:!0,minute:!0,second:!0},d=t.DateRange=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var a=t,o=n;if(1===arguments.length||void 0===n)if("object"===(void 0===t?"undefined":s(t))&&2===t.length){var l=r(t,2);a=l[0],o=l[1]}else if("string"==typeof t){var c=p(t),u=r(c,2);a=u[0],o=u[1]}this.start=a||0===a?(0,i.default)(a):(0,i.default)(-864e13),this.end=o||0===o?(0,i.default)(o):(0,i.default)(864e13)}return a(e,[{key:"adjacent",value:function(e){var t=this.start.isSame(e.end),n=this.end.isSame(e.start);return t&&e.start.valueOf()<=this.start.valueOf()||n&&e.end.valueOf()>=this.end.valueOf()}},{key:"add",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{adjacent:!1};return this.overlaps(e,t)?new this.constructor(i.default.min(this.start,e.start),i.default.max(this.end,e.end)):null}},{key:"by",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{exclusive:!1,step:1},n=this;return c({},o.default.iterator,(function(){var r=t.exclusive||!1,s=t.step||1,a=Math.abs(n.start.diff(n.end,e))/s,i=0;return{next:function(){var t=n.start.clone().add(i*s,e),o=r?!(i<a):!(i<=a);return i++,{done:o,value:o?void 0:t}}}}))}},{key:"byRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{exclusive:!1,step:1},n=this,r=t.step||1,s=this.valueOf()/e.valueOf()/r,a=t.exclusive||!1,l=Math.floor(s),u=0;return c({},o.default.iterator,(function(){return l===1/0?{done:!0}:{next:function(){var t=(0,i.default)(n.start.valueOf()+e.valueOf()*u*r),o=l===s&&a?!(u<l):!(u<=l);return u++,{done:o,value:o?void 0:t}}}}))}},{key:"center",value:function(){var e=this.start.valueOf()+this.diff()/2;return(0,i.default)(e)}},{key:"clone",value:function(){return new this.constructor(this.start,this.end)}},{key:"contains",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{exclusive:!1},r=this.start.valueOf(),s=this.end.valueOf(),a=t.valueOf(),i=t.valueOf();t instanceof e&&(a=t.start.valueOf(),i=t.end.valueOf());var o=r<a||r<=a&&!n.exclusive,l=s>i||s>=i&&!n.exclusive;return o&&l}},{key:"diff",value:function(e,t){return this.end.diff(this.start,e,t)}},{key:"duration",value:function(e,t){return this.diff(e,t)}},{key:"intersect",value:function(e){var t=this.start.valueOf(),n=this.end.valueOf(),r=e.start.valueOf(),s=e.end.valueOf();if(t==n){if(t==r||t==s)return null;if(t>r&&t<s)return this}else if(r==s){if(r==t||r==n)return null;if(r>t&&r<n)return e}return t<=r&&r<n&&n<s?new this.constructor(r,n):r<t&&t<s&&s<=n?new this.constructor(t,s):r<t&&t<=n&&n<s?this:t<=r&&r<=s&&s<=n?e:null}},{key:"isEqual",value:function(e){return this.start.isSame(e.start)&&this.end.isSame(e.end)}},{key:"isSame",value:function(e){return this.isEqual(e)}},{key:"overlaps",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{adjacent:!1},n=null!==this.intersect(e);return t.adjacent&&!n?this.adjacent(e):n}},{key:"reverseBy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{exclusive:!1,step:1},n=this;return c({},o.default.iterator,(function(){var r=t.exclusive||!1,s=t.step||1,a=Math.abs(n.start.diff(n.end,e))/s,i=0;return{next:function(){var t=n.end.clone().subtract(i*s,e),o=r?!(i<a):!(i<=a);return i++,{done:o,value:o?void 0:t}}}}))}},{key:"reverseByRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{exclusive:!1,step:1},n=this,r=t.step||1,s=this.valueOf()/e.valueOf()/r,a=t.exclusive||!1,l=Math.floor(s),u=0;return c({},o.default.iterator,(function(){return l===1/0?{done:!0}:{next:function(){var t=(0,i.default)(n.end.valueOf()-e.valueOf()*u*r),o=l===s&&a?!(u<l):!(u<=l);return u++,{done:o,value:o?void 0:t}}}}))}},{key:"subtract",value:function(e){var t=this.start.valueOf(),n=this.end.valueOf(),r=e.start.valueOf(),s=e.end.valueOf();return null===this.intersect(e)?[this]:r<=t&&t<n&&n<=s?[]:r<=t&&t<s&&s<n?[new this.constructor(s,n)]:t<r&&r<n&&n<=s?[new this.constructor(t,r)]:t<r&&r<s&&s<n?[new this.constructor(t,r),new this.constructor(s,n)]:t<r&&r<n&&s<n?[new this.constructor(t,r),new this.constructor(r,n)]:[]}},{key:"toDate",value:function(){return[this.start.toDate(),this.end.toDate()]}},{key:"toString",value:function(){return this.start.format()+"/"+this.end.format()}},{key:"valueOf",value:function(){return this.end.valueOf()-this.start.valueOf()}}]),e}();function p(e){return e.split("/")}},function(e,t,n){"use strict";var r,s=n(6),a=n(13),i=n(9),o=n(15);r=e.exports=function(e,t){var n,r,i,l,c;return arguments.length<2||"string"!=typeof e?(l=t,t=e,e=null):l=arguments[2],null==e?(n=i=!0,r=!1):(n=o.call(e,"c"),r=o.call(e,"e"),i=o.call(e,"w")),c={value:t,configurable:n,enumerable:r,writable:i},l?s(a(l),c):c},r.gs=function(e,t,n){var r,l,c,u;return"string"!=typeof e?(c=n,n=t,t=e,e=null):c=arguments[3],null==t?t=void 0:i(t)?null==n?n=void 0:i(n)||(c=n,n=void 0):(c=t,t=n=void 0),null==e?(r=!0,l=!1):(r=o.call(e,"c"),l=o.call(e,"e")),u={get:t,set:n,configurable:r,enumerable:l},c?s(a(c),u):u}},function(e,t,n){"use strict";e.exports=function(){}},function(e,t,n){"use strict";e.exports=n(7)()?Object.assign:n(8)},function(e,t,n){"use strict";e.exports=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}},function(e,t,n){"use strict";var r=n(10),s=n(14),a=Math.max;e.exports=function(e,t){var n,i,o,l=a(arguments.length,2);for(e=Object(s(e)),o=function(r){try{e[r]=t[r]}catch(e){n||(n=e)}},i=1;i<l;++i)r(t=arguments[i]).forEach(o);if(void 0!==n)throw n;return e}},function(e,t,n){"use strict";e.exports=function(e){return"function"==typeof e}},function(e,t,n){"use strict";e.exports=n(11)()?Object.keys:n(12)},function(e,t,n){"use strict";e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}},function(e,t,n){"use strict";var r=n(0),s=Object.keys;e.exports=function(e){return s(r(e)?Object(e):e)}},function(e,t,n){"use strict";var r=n(0),s=Array.prototype.forEach,a=Object.create;e.exports=function(e){var t=a(null);return s.call(arguments,(function(e){r(e)&&function(e,t){var n;for(n in e)t[n]=e[n]}(Object(e),t)})),t}},function(e,t,n){"use strict";var r=n(0);e.exports=function(e){if(!r(e))throw new TypeError("Cannot use null or undefined");return e}},function(e,t,n){"use strict";e.exports=n(16)()?String.prototype.contains:n(17)},function(e,t,n){"use strict";var r="razdwatrzy";e.exports=function(){return"function"==typeof r.contains&&!0===r.contains("dwa")&&!1===r.contains("foo")}},function(e,t,n){"use strict";var r=String.prototype.indexOf;e.exports=function(e){return r.call(this,e,arguments[1])>-1}},function(e,t,n){"use strict";var r={object:!0,symbol:!0};e.exports=function(){var e;if("function"!=typeof Symbol)return!1;e=Symbol("test symbol");try{String(e)}catch(e){return!1}return!!r[typeof Symbol.iterator]&&!!r[typeof Symbol.toPrimitive]&&!!r[typeof Symbol.toStringTag]}},function(e,t,n){"use strict";e.exports=function(e){return!!e&&("symbol"==typeof e||!!e.constructor&&"Symbol"===e.constructor.name&&"Symbol"===e[e.constructor.toStringTag])}},function(e,t,n){"use strict";var r,s,a,i,o=n(4),l=n(21),c=Object.create,u=Object.defineProperties,d=Object.defineProperty,p=Object.prototype,h=c(null);if("function"==typeof Symbol){r=Symbol;try{String(r()),i=!0}catch(e){}}var f,m=(f=c(null),function(e){for(var t,n,r=0;f[e+(r||"")];)++r;return f[e+=r||""]=!0,d(p,t="@@"+e,o.gs(null,(function(e){n||(n=!0,d(this,t,o(e)),n=!1)}))),t});a=function(e){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return s(e)},e.exports=s=function e(t){var n;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return i?r(t):(n=c(a.prototype),t=void 0===t?"":String(t),u(n,{__description__:o("",t),__name__:o("",m(t))}))},u(s,{for:o((function(e){return h[e]?h[e]:h[e]=s(String(e))})),keyFor:o((function(e){var t;for(t in l(e),h)if(h[t]===e)return t})),hasInstance:o("",r&&r.hasInstance||s("hasInstance")),isConcatSpreadable:o("",r&&r.isConcatSpreadable||s("isConcatSpreadable")),iterator:o("",r&&r.iterator||s("iterator")),match:o("",r&&r.match||s("match")),replace:o("",r&&r.replace||s("replace")),search:o("",r&&r.search||s("search")),species:o("",r&&r.species||s("species")),split:o("",r&&r.split||s("split")),toPrimitive:o("",r&&r.toPrimitive||s("toPrimitive")),toStringTag:o("",r&&r.toStringTag||s("toStringTag")),unscopables:o("",r&&r.unscopables||s("unscopables"))}),u(a.prototype,{constructor:o(s),toString:o("",(function(){return this.__name__}))}),u(s.prototype,{toString:o((function(){return"Symbol ("+l(this).__description__+")"})),valueOf:o((function(){return l(this)}))}),d(s.prototype,s.toPrimitive,o("",(function(){var e=l(this);return"symbol"==typeof e?e:e.toString()}))),d(s.prototype,s.toStringTag,o("c","Symbol")),d(a.prototype,s.toStringTag,o("c",s.prototype[s.toStringTag])),d(a.prototype,s.toPrimitive,o("c",s.prototype[s.toPrimitive]))},function(e,t,n){"use strict";var r=n(19);e.exports=function(e){if(!r(e))throw new TypeError(e+" is not a symbol");return e}}])},e.exports=r(n(6154))},7736:(e,t,n)=>{"use strict";n.d(t,{Lz:()=>m,wg:()=>w,IW:()=>E,$n:()=>st,Zp:()=>it,wi:()=>Zt,Q5:()=>Qt,xA:()=>un,Pj:()=>rn,uC:()=>an,H7:()=>cn,aF:()=>dn,qV:()=>hn,$T:()=>bn,du:()=>yn,I2:()=>kn,X3:()=>Pn,Yq:()=>zn,pe:()=>qn,xt:()=>Vn,E$:()=>Gn,JL:()=>Wt});var r={};n.r(r),n.d(r,{BrowserRouter:()=>Ue,HashRouter:()=>Ge,Link:()=>Qe,MemoryRouter:()=>ne,NavLink:()=>tt,Prompt:()=>se,Redirect:()=>ce,Route:()=>fe,Router:()=>te,StaticRouter:()=>ye,Switch:()=>_e,generatePath:()=>le,matchPath:()=>he,useHistory:()=>Se,useLocation:()=>Ee,useParams:()=>je,useRouteMatch:()=>Ce,withRouter:()=>xe});var s=n(6087),a=n(6942),i=n.n(a),o=n(790),l=n(6427),c=n(7677),u=n(5573);const d=(0,o.jsx)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(u.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})}),p=(0,o.jsx)(u.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)(u.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})}),h=(0,o.jsx)(u.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)(u.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})});class f extends s.Component{state={expanded:!1};componentDidUpdate(e){!e.collapse&&this.props.collapse&&this.state.expanded&&this.setState({expanded:!1})}render(){const{badge:e,className:t,checkbox:n,children:r,disabled:s,title:a,description:u,handoff:f,editLink:m,href:g,notification:v,notificationLevel:b,notificationHTML:w,actionContent:y,actionText:_,secondaryActionText:x,secondaryDestructive:k,image:S,imageLink:E,indent:j,isSmall:C,isMedium:T,simple:M,onClick:P,onSecondaryActionClick:A,isWaiting:I,titleLink:O,toggleChecked:L,toggleOnChange:D,hasGreyHeader:z,hasWhiteHeader:N,isPending:R,expandable:B=!1,isButtonEnabled:$=!1}=this.props,{expanded:F}=this.state,H=v||r,q=i()("newspack-action-card",M&&"newspack-card--is-clickable",z&&"newspack-card--has-grey-header",N&&"newspack-card--has-white-header",H&&"newspack-card--has-children",j&&"newspack-card--indent",C&&"is-small",T&&"is-medium",n&&"has-checkbox",B&&"is-expandable",y&&"has-action-content",t),V=!D||O||s?{}:{onClick:()=>D(!L),tabIndex:"0"},U=g&&0!==g.indexOf("http"),G=x&&A,W=!Array.isArray(e)&&e?[e]:e;return(0,o.jsxs)(it,{className:q,onClick:M&&P,children:[(0,o.jsxs)("div",{className:"newspack-action-card__region newspack-action-card__region-top",children:[D&&(0,o.jsx)(l.ToggleControl,{checked:L,onChange:D,disabled:s}),S&&!D&&(0,o.jsx)("div",{className:"newspack-action-card__region newspack-action-card__region-left",children:(0,o.jsx)("a",{href:E,children:(0,o.jsx)("div",{className:"newspack-action-card__image",style:(Y=S,Y?{backgroundImage:`url(${Y})`}:{})})})}),n&&!D&&(0,o.jsx)("div",{className:"newspack-action-card__region newspack-action-card__region-left",children:(0,o.jsx)("span",{className:i()("newspack-checkbox-icon","is-primary","checked"===n&&"newspack-checkbox-icon--checked",R&&"newspack-checkbox-icon--pending"),children:"checked"===n&&(0,o.jsx)(c.A,{icon:d})})}),(0,o.jsx)("div",{className:"newspack-action-card__region newspack-action-card__region-center",children:(0,o.jsxs)(un,{columns:1,gutter:8,noMargin:!0,children:[(0,o.jsxs)("h2",{children:[(0,o.jsxs)("span",{className:"newspack-action-card__title",...V,children:[O&&(0,o.jsx)("a",{href:O,children:a}),!O&&B&&(0,o.jsx)(st,{isLink:!0,onClick:()=>this.setState({expanded:!F}),children:a}),!O&&!B&&a]}),W?.length&&W.map(((e,t)=>(0,o.jsx)("span",{className:"newspack-action-card__badge",children:e},`badge-${t}`)))]}),u&&(0,o.jsxs)("p",{children:["string"==typeof u&&u,"function"==typeof u&&u()]})]})}),!B&&(_||G||y)&&(0,o.jsxs)("div",{className:"newspack-action-card__region newspack-action-card__region-right",children:[y&&y,_&&(f?(0,o.jsx)(rn,{plugin:f,editLink:m,compact:!0,isLink:!0,children:_}):P||U?(0,o.jsx)(st,{disabled:s&&!$,isLink:!0,href:g,onClick:P,className:"newspack-action-card__primary_button",children:_}):g?(0,o.jsx)(l.ExternalLink,{href:g,className:"newspack-action-card__primary_button",children:_}):(0,o.jsxs)("div",{className:"newspack-action-card__container",children:[_,I&&(0,o.jsx)(Gn,{isRight:!0})]})),G&&(0,o.jsx)(st,{isLink:!0,onClick:A,className:"newspack-action-card__secondary_button",isDestructive:k,children:x})]}),B&&(0,o.jsx)(st,{onClick:()=>this.setState({expanded:!F}),children:(0,o.jsx)(c.A,{icon:F?p:h,height:24,width:24})})]}),v&&(0,o.jsxs)("div",{className:"newspack-action-card__notification newspack-action-card__region-children",children:["error"===b&&(0,o.jsx)(bn,{noticeText:v,isError:!0,rawHTML:w}),"info"===b&&(0,o.jsx)(bn,{noticeText:v,rawHTML:w}),"success"===b&&(0,o.jsx)(bn,{noticeText:v,isSuccess:!0,rawHTML:w}),"warning"===b&&(0,o.jsx)(bn,{noticeText:v,isWarning:!0,rawHTML:w})]}),r&&(B&&F||!B)&&(0,o.jsx)("div",{className:"newspack-action-card__region-children",children:r})]});var Y}}f.defaultProps={toggleChecked:!1};const m=f;var g=n(8221),v=n.n(g);class b extends s.Component{constructor(e){super(e),this.state={suggestions:[],validValues:{},loading:this.isFetchingInfoOnLoad()},this.debouncedUpdateSuggestions=v()(this.updateSuggestions,500)}isFetchingInfoOnLoad=()=>{const{tokens:e,fetchSavedInfo:t}=this.props;return Boolean(e.length&&t)};componentDidMount(){if(this.isFetchingInfoOnLoad()){const{tokens:e,fetchSavedInfo:t}=this.props;t(e).then((e=>{const{validValues:t}=this.state;e.forEach((e=>{t[e.value]=e.label})),this.setState({validValues:t,loading:!1})}))}}componentDidUpdate(e){const{tokens:t,fetchSavedInfo:n}=this.props;t!==e.tokens&&this.isFetchingInfoOnLoad()&&n(t).then((e=>{const{validValues:t}=this.state;e.forEach((e=>{t[e.value]=e.label})),this.setState({validValues:t,loading:!1})}))}componentWillUnmount(){delete this.suggestionsRequest,this.debouncedUpdateSuggestions.cancel()}getLabelsForValues(e){const{validValues:t}=this.state;return e.reduce(((e,n)=>n?n.label?[...e,n.label]:t[n]?[...e,t[n]]:e:e),[])}getValuesForLabels(e){const{returnFullObjects:t}=this.props,{validValues:n}=this.state;return t?e.reduce(((e,t)=>(Object.keys(n).forEach((r=>{if(n[r]===t){const n=isNaN(parseInt(r))?r.toString():parseInt(r);e.push({value:n,label:t})}})),e)),[]):e.map((e=>Object.keys(n).map((e=>isNaN(parseInt(e))?e.toString():parseInt(e))).find((t=>n[t]===e))))}updateSuggestions(e){const{fetchSuggestions:t}=this.props;t&&this.setState({loading:!0},(()=>{const n=t(e);n.then((e=>{if(this.suggestionsRequest!==n)return;const{validValues:t}=this.state,r=[...e];e.forEach((e=>{t[e.value]=e.label})),this.setState({suggestions:r,validValues:t,loading:!1})})).catch((()=>{this.suggestionsRequest===n&&this.setState({loading:!1})})),this.suggestionsRequest=n}))}handleOnChange(e){const{onChange:t}=this.props;t(this.getValuesForLabels(e))}getTokens(){const{tokens:e}=this.props;return this.getLabelsForValues(e)}render(){const{help:e,label:t="",placeholder:n="",maxLength:r}=this.props,{suggestions:s,loading:a}=this.state,i=["newspack-autocomplete-tokenfield__input-container"];return t&&i.push("has-label"),(0,o.jsxs)("div",{className:"newspack-autocomplete-tokenfield",children:[(0,o.jsxs)("div",{className:i.join(" "),children:[(0,o.jsx)(l.FormTokenField,{value:this.getTokens(),suggestions:s.map((e=>e.label)),onChange:e=>this.handleOnChange(e),onInputChange:e=>this.debouncedUpdateSuggestions(e),label:t,maxLength:r,placeholder:n}),a&&(0,o.jsx)(l.Spinner,{})]}),e&&(0,o.jsx)("p",{className:"newspack-autocomplete-tokenfield__help",children:e})]})}}const w=b;var y=n(1455),_=n.n(y),x=n(8537),k=n(7723),S=n(3832);const E=({fetchSavedPosts:e=!1,fetchSuggestions:t=!1,help:n=(0,k.__)("Begin typing search term, click autocomplete result to select.","newspack-plugin"),hideHelp:r=!1,label:a=(0,k.__)("Search","newspack-plugin"),maxItemsToSuggest:i=0,multiSelect:c=!1,onChange:u=!1,onPostTypeChange:d=!1,postTypes:p=[{slug:"post",label:"Post"}],postTypeLabel:h=(0,k.__)("item","newspack-plugin"),postTypeLabelPlural:f=(0,k.__)("items","newspack-plugin"),selectedItems:m=[],selectedPost:g=0,suggestionsToFetch:v=10})=>{const[b,y]=(0,s.useState)(!0),[E,j]=(0,s.useState)(!1),[C,T]=(0,s.useState)([]),[M,P]=(0,s.useState)(0),[A,I]=(0,s.useState)(p[0].slug),O=["newspack-autocomplete-with-suggestions"];r&&O.push("hide-help"),(0,s.useEffect)((()=>{d&&d(A),y(!0),D(null,0,A).then((e=>{0<e.length&&T(e)})).finally((()=>y(!1)))}),[A]),(0,s.useEffect)((()=>{E&&D(null,C.length,A).then((e=>{0<e.length&&T(C.concat(e))})).finally((()=>j(!1)))}),[E]);const L=e||(async(e=[],t=null)=>{const n=t||A,r="post"===n||"page"===n?n+"s":n;return(await _()({path:(0,S.addQueryArgs)("/wp/v2/"+r,{per_page:100,include:e.join(","),_fields:"id,title"})})).map((e=>({value:parseInt(e.id),label:(0,x.decodeEntities)(e.title)||(0,k.__)("(no title)","newspack-plugin")})))}),D=t||(async(e=null,t=0,n=null)=>{const r=n||A,s="post"===r||"page"===r?r+"s":r,a=await _()({parse:!1,path:(0,S.addQueryArgs)("/wp/v2/"+s,{search:e,offset:t,per_page:v,_fields:"id,title"})}),i=parseInt(a.headers.get("x-wp-total")||0),o=await a.json();return P(i),o.reduce(((e,t)=>(e.push({value:parseInt(t.id),label:(0,x.decodeEntities)(t?.title.rendered)||(0,k.__)("(no title)","newspack-plugin")}),e)),[])}),z=e=>{if(!c)return u(e);const t=g?[...m,g]:[...m];e.forEach((e=>{const n=t.findIndex((t=>parseInt(t.value)===parseInt(e.value)));-1<n?t.splice(n,1):t.push(e)})),u(t.map((e=>({...e,postType:A}))))},N=e=>{if(c){const t=!!(g?[...m,g]:[...m]).find((t=>parseInt(t.value)===parseInt(e.value)&&t.label===e.label));return(0,o.jsx)(l.CheckboxControl,{checked:t,onChange:()=>z([e]),label:e.label},e.value)}return(0,o.jsx)(l.Button,{isLink:!0,onClick:()=>z([e]),children:e.label},e.value)};return(0,o.jsxs)("div",{className:O.join(" "),children:[0<m.length&&(()=>{const e=g?[...m,g]:m,t=c?(0,k.sprintf)(