bloom-player 2.19.6 → 2.19.7-alpha.2
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.
|
@@ -15,7 +15,7 @@ object-assign
|
|
|
15
15
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
16
16
|
* @license MIT
|
|
17
17
|
*/var J0=function(e){return e!=null&&e.constructor!=null&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)},Q0=xy,tx=J0,ro=Object.prototype.toString;function Sy(t){return ro.call(t)==="[object Array]"}function ex(t){return ro.call(t)==="[object ArrayBuffer]"}function nx(t){return typeof FormData<"u"&&t instanceof FormData}function ax(t){var e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function ix(t){return typeof t=="string"}function rx(t){return typeof t=="number"}function ox(t){return typeof t>"u"}function Cy(t){return t!==null&&typeof t=="object"}function sx(t){return ro.call(t)==="[object Date]"}function lx(t){return ro.call(t)==="[object File]"}function ux(t){return ro.call(t)==="[object Blob]"}function Ty(t){return ro.call(t)==="[object Function]"}function cx(t){return Cy(t)&&Ty(t.pipe)}function dx(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}function fx(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function hx(){return typeof navigator<"u"&&navigator.product==="ReactNative"?!1:typeof window<"u"&&typeof document<"u"}function yh(t,e){if(!(t===null||typeof t>"u"))if(typeof t!="object"&&(t=[t]),Sy(t))for(var n=0,a=t.length;n<a;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}function Ey(){var t={};function e(i,r){typeof t[r]=="object"&&typeof i=="object"?t[r]=Ey(t[r],i):t[r]=i}for(var n=0,a=arguments.length;n<a;n++)yh(arguments[n],e);return t}function px(t,e,n){return yh(e,function(i,r){n&&typeof i=="function"?t[r]=Q0(i,n):t[r]=i}),t}var la={isArray:Sy,isArrayBuffer:ex,isBuffer:tx,isFormData:nx,isArrayBufferView:ax,isString:ix,isNumber:rx,isObject:Cy,isUndefined:ox,isDate:sx,isFile:lx,isBlob:ux,isFunction:Ty,isStream:cx,isURLSearchParams:dx,isStandardBrowserEnv:hx,forEach:yh,merge:Ey,extend:px,trim:fx},gx=la,mx=function(e,n){gx.forEach(e,function(i,r){r!==n&&r.toUpperCase()===n.toUpperCase()&&(e[n]=i,delete e[r])})},Mc,Lg;function vx(){return Lg||(Lg=1,Mc=function(e,n,a,i,r){return e.config=n,a&&(e.code=a),e.request=i,e.response=r,e}),Mc}var Ac,zg;function Py(){if(zg)return Ac;zg=1;var t=vx();return Ac=function(n,a,i,r,s){var l=new Error(n);return t(l,a,i,r,s)},Ac}var Nc,Bg;function yx(){if(Bg)return Nc;Bg=1;var t=Py();return Nc=function(n,a,i){var r=i.config.validateStatus;!i.status||!r||r(i.status)?n(i):a(t("Request failed with status code "+i.status,i.config,null,i.request,i))},Nc}var Lc,Ig;function bx(){if(Ig)return Lc;Ig=1;var t=la;function e(n){return encodeURIComponent(n).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}return Lc=function(a,i,r){if(!i)return a;var s;if(r)s=r(i);else if(t.isURLSearchParams(i))s=i.toString();else{var l=[];t.forEach(i,function(h,m){h===null||typeof h>"u"||(t.isArray(h)?m=m+"[]":h=[h],t.forEach(h,function(w){t.isDate(w)?w=w.toISOString():t.isObject(w)&&(w=JSON.stringify(w)),l.push(e(m)+"="+e(w))}))}),s=l.join("&")}return s&&(a+=(a.indexOf("?")===-1?"?":"&")+s),a},Lc}var zc,Dg;function wx(){if(Dg)return zc;Dg=1;var t=la,e=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return zc=function(a){var i={},r,s,l;return a&&t.forEach(a.split(`
|
|
18
|
-
`),function(h){if(l=h.indexOf(":"),r=t.trim(h.substr(0,l)).toLowerCase(),s=t.trim(h.substr(l+1)),r){if(i[r]&&e.indexOf(r)>=0)return;r==="set-cookie"?i[r]=(i[r]?i[r]:[]).concat([s]):i[r]=i[r]?i[r]+", "+s:s}}),i},zc}var Bc,jg;function kx(){if(jg)return Bc;jg=1;var t=la;return Bc=t.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a"),i;function r(s){var l=s;return n&&(a.setAttribute("href",l),l=a.href),a.setAttribute("href",l),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return i=r(window.location.href),function(l){var c=t.isString(l)?r(l):l;return c.protocol===i.protocol&&c.host===i.host}}():function(){return function(){return!0}}(),Bc}var Ic,Rg;function xx(){if(Rg)return Ic;Rg=1;var t=la;return Ic=t.isStandardBrowserEnv()?function(){return{write:function(a,i,r,s,l,c){var h=[];h.push(a+"="+encodeURIComponent(i)),t.isNumber(r)&&h.push("expires="+new Date(r).toGMTString()),t.isString(s)&&h.push("path="+s),t.isString(l)&&h.push("domain="+l),c===!0&&h.push("secure"),document.cookie=h.join("; ")},read:function(a){var i=document.cookie.match(new RegExp("(^|;\\s*)("+a+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(a){this.write(a,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Ic}var Dc,Og;function Kg(){if(Og)return Dc;Og=1;var t=la,e=yx(),n=bx(),a=wx(),i=kx(),r=Py();return Dc=function(l){return new Promise(function(h,m){var k=l.data,w=l.headers;t.isFormData(k)&&delete w["Content-Type"];var P=new XMLHttpRequest;if(l.auth){var E=l.auth.username||"",z=l.auth.password||"";w.Authorization="Basic "+btoa(E+":"+z)}if(P.open(l.method.toUpperCase(),n(l.url,l.params,l.paramsSerializer),!0),P.timeout=l.timeout,P.onreadystatechange=function(){if(!(!P||P.readyState!==4)&&!(P.status===0&&!(P.responseURL&&P.responseURL.indexOf("file:")===0))){var N="getAllResponseHeaders"in P?a(P.getAllResponseHeaders()):null,L=!l.responseType||l.responseType==="text"?P.responseText:P.response,j={data:L,status:P.status,statusText:P.statusText,headers:N,config:l,request:P};e(h,m,j),P=null}},P.onerror=function(){m(r("Network Error",l,null,P)),P=null},P.ontimeout=function(){m(r("timeout of "+l.timeout+"ms exceeded",l,"ECONNABORTED",P)),P=null},t.isStandardBrowserEnv()){var A=xx(),x=(l.withCredentials||i(l.url))&&l.xsrfCookieName?A.read(l.xsrfCookieName):void 0;x&&(w[l.xsrfHeaderName]=x)}if("setRequestHeader"in P&&t.forEach(w,function(N,L){typeof k>"u"&&L.toLowerCase()==="content-type"?delete w[L]:P.setRequestHeader(L,N)}),l.withCredentials&&(P.withCredentials=!0),l.responseType)try{P.responseType=l.responseType}catch(S){if(l.responseType!=="json")throw S}typeof l.onDownloadProgress=="function"&&P.addEventListener("progress",l.onDownloadProgress),typeof l.onUploadProgress=="function"&&P.upload&&P.upload.addEventListener("progress",l.onUploadProgress),l.cancelToken&&l.cancelToken.promise.then(function(N){P&&(P.abort(),m(N),P=null)}),k===void 0&&(k=null),P.send(k)})},Dc}var jn=la,Sx=mx,Cx={"Content-Type":"application/x-www-form-urlencoded"};function $g(t,e){!jn.isUndefined(t)&&jn.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function Tx(){var t;return(typeof XMLHttpRequest<"u"||typeof process<"u")&&(t=Kg()),t}var Cu={adapter:Tx(),transformRequest:[function(e,n){return Sx(n,"Content-Type"),jn.isFormData(e)||jn.isArrayBuffer(e)||jn.isBuffer(e)||jn.isStream(e)||jn.isFile(e)||jn.isBlob(e)?e:jn.isArrayBufferView(e)?e.buffer:jn.isURLSearchParams(e)?($g(n,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):jn.isObject(e)?($g(n,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if(typeof e=="string")try{e=JSON.parse(e)}catch{}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};Cu.headers={common:{Accept:"application/json, text/plain, */*"}};jn.forEach(["delete","get","head"],function(e){Cu.headers[e]={}});jn.forEach(["post","put","patch"],function(e){Cu.headers[e]=jn.merge(Cx)});var bh=Cu,Ex=la;function Tu(){this.handlers=[]}Tu.prototype.use=function(e,n){return this.handlers.push({fulfilled:e,rejected:n}),this.handlers.length-1};Tu.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};Tu.prototype.forEach=function(e){Ex.forEach(this.handlers,function(a){a!==null&&e(a)})};var Px=Tu,Mx=la,Ax=function(e,n,a){return Mx.forEach(a,function(r){e=r(e,n)}),e},jc,qg;function My(){return qg||(qg=1,jc=function(e){return!!(e&&e.__CANCEL__)}),jc}var Nx=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)},Lx=function(e,n){return n?e.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):e},Hg=la,Rc=Ax,zx=My(),Bx=bh,Ix=Nx,Dx=Lx;function Oc(t){t.cancelToken&&t.cancelToken.throwIfRequested()}var jx=function(e){Oc(e),e.baseURL&&!Ix(e.url)&&(e.url=Dx(e.baseURL,e.url)),e.headers=e.headers||{},e.data=Rc(e.data,e.headers,e.transformRequest),e.headers=Hg.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),Hg.forEach(["delete","get","head","post","put","patch","common"],function(i){delete e.headers[i]});var n=e.adapter||Bx.adapter;return n(e).then(function(i){return Oc(e),i.data=Rc(i.data,i.headers,e.transformResponse),i},function(i){return zx(i)||(Oc(e),i&&i.response&&(i.response.data=Rc(i.response.data,i.response.headers,e.transformResponse))),Promise.reject(i)})},Rx=bh,Zr=la,Fg=Px,Ox=jx;function Eu(t){this.defaults=t,this.interceptors={request:new Fg,response:new Fg}}Eu.prototype.request=function(e){typeof e=="string"&&(e=Zr.merge({url:arguments[0]},arguments[1])),e=Zr.merge(Rx,{method:"get"},this.defaults,e),e.method=e.method.toLowerCase();var n=[Ox,void 0],a=Promise.resolve(e);for(this.interceptors.request.forEach(function(r){n.unshift(r.fulfilled,r.rejected)}),this.interceptors.response.forEach(function(r){n.push(r.fulfilled,r.rejected)});n.length;)a=a.then(n.shift(),n.shift());return a};Zr.forEach(["delete","get","head","options"],function(e){Eu.prototype[e]=function(n,a){return this.request(Zr.merge(a||{},{method:e,url:n}))}});Zr.forEach(["post","put","patch"],function(e){Eu.prototype[e]=function(n,a,i){return this.request(Zr.merge(i||{},{method:e,url:n,data:a}))}});var Kx=Eu,Kc,Wg;function Ay(){if(Wg)return Kc;Wg=1;function t(e){this.message=e}return t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,Kc=t,Kc}var $c,_g;function $x(){if(_g)return $c;_g=1;var t=Ay();function e(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var a;this.promise=new Promise(function(s){a=s});var i=this;n(function(s){i.reason||(i.reason=new t(s),a(i.reason))})}return e.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},e.source=function(){var a,i=new e(function(s){a=s});return{token:i,cancel:a}},$c=e,$c}var qc,Vg;function qx(){return Vg||(Vg=1,qc=function(e){return function(a){return e.apply(null,a)}}),qc}var Xd=la,Hx=xy,bl=Kx,Ny=bh;function Ly(t){var e=new bl(t),n=Hx(bl.prototype.request,e);return Xd.extend(n,bl.prototype,e),Xd.extend(n,e),n}var oi=Ly(Ny);oi.Axios=bl;oi.create=function(e){return Ly(Xd.merge(Ny,e))};oi.Cancel=Ay();oi.CancelToken=$x();oi.isCancel=My();oi.all=function(e){return Promise.all(e)};oi.spread=qx();vh.exports=oi;vh.exports.default=oi;var Fx=vh.exports,Wx=Fx;const ni=Ds(Wx);var zy={},wh={};function Gg(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function kh(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(function(n){typeof t[n]>"u"?t[n]=e[n]:Gg(e[n])&&Gg(t[n])&&Object.keys(e[n]).length>0&&kh(t[n],e[n])})}var va=typeof document<"u"?document:{},By={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};kh(va,By);var ya=typeof window<"u"?window:{},_x={document:By,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}}};kh(ya,_x);class pe{constructor(e){const n=this;for(let a=0;a<e.length;a+=1)n[a]=e[a];return n.length=e.length,this}}function kt(t,e){const n=[];let a=0;if(t&&!e&&t instanceof pe)return t;if(t){if(typeof t=="string"){let i,r;const s=t.trim();if(s.indexOf("<")>=0&&s.indexOf(">")>=0){let l="div";for(s.indexOf("<li")===0&&(l="ul"),s.indexOf("<tr")===0&&(l="tbody"),(s.indexOf("<td")===0||s.indexOf("<th")===0)&&(l="tr"),s.indexOf("<tbody")===0&&(l="table"),s.indexOf("<option")===0&&(l="select"),r=va.createElement(l),r.innerHTML=s,a=0;a<r.childNodes.length;a+=1)n.push(r.childNodes[a])}else for(!e&&t[0]==="#"&&!t.match(/[ .<>:~]/)?i=[va.getElementById(t.trim().split("#")[1])]:i=(e||va).querySelectorAll(t.trim()),a=0;a<i.length;a+=1)i[a]&&n.push(i[a])}else if(t.nodeType||t===ya||t===va)n.push(t);else if(t.length>0&&t[0].nodeType)for(a=0;a<t.length;a+=1)n.push(t[a])}return new pe(n)}kt.fn=pe.prototype;kt.Class=pe;kt.Dom7=pe;function xh(t){const e=[];for(let n=0;n<t.length;n+=1)e.indexOf(t[n])===-1&&e.push(t[n]);return e}function Vx(t){if(typeof t>"u")return this;const e=t.split(" ");for(let n=0;n<e.length;n+=1)for(let a=0;a<this.length;a+=1)typeof this[a]<"u"&&typeof this[a].classList<"u"&&this[a].classList.add(e[n]);return this}function Gx(t){const e=t.split(" ");for(let n=0;n<e.length;n+=1)for(let a=0;a<this.length;a+=1)typeof this[a]<"u"&&typeof this[a].classList<"u"&&this[a].classList.remove(e[n]);return this}function Ux(t){return this[0]?this[0].classList.contains(t):!1}function Yx(t){const e=t.split(" ");for(let n=0;n<e.length;n+=1)for(let a=0;a<this.length;a+=1)typeof this[a]<"u"&&typeof this[a].classList<"u"&&this[a].classList.toggle(e[n]);return this}function Xx(t,e){if(arguments.length===1&&typeof t=="string")return this[0]?this[0].getAttribute(t):void 0;for(let n=0;n<this.length;n+=1)if(arguments.length===2)this[n].setAttribute(t,e);else for(const a in t)this[n][a]=t[a],this[n].setAttribute(a,t[a]);return this}function Zx(t){for(let e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this}function Jx(t,e){let n;if(typeof e>"u"){if(n=this[0],n){if(n.dom7ElementDataStorage&&t in n.dom7ElementDataStorage)return n.dom7ElementDataStorage[t];const a=n.getAttribute(`data-${t}`);return a||void 0}return}for(let a=0;a<this.length;a+=1)n=this[a],n.dom7ElementDataStorage||(n.dom7ElementDataStorage={}),n.dom7ElementDataStorage[t]=e;return this}function Qx(t){for(let e=0;e<this.length;e+=1){const n=this[e].style;n.webkitTransform=t,n.transform=t}return this}function tS(t){typeof t!="string"&&(t=`${t}ms`);for(let e=0;e<this.length;e+=1){const n=this[e].style;n.webkitTransitionDuration=t,n.transitionDuration=t}return this}function eS(...t){let[e,n,a,i]=t;typeof t[1]=="function"&&([e,a,i]=t,n=void 0),i||(i=!1);function r(h){const m=h.target;if(!m)return;const k=h.target.dom7EventData||[];if(k.indexOf(h)<0&&k.unshift(h),kt(m).is(n))a.apply(m,k);else{const w=kt(m).parents();for(let P=0;P<w.length;P+=1)kt(w[P]).is(n)&&a.apply(w[P],k)}}function s(h){const m=h&&h.target?h.target.dom7EventData||[]:[];m.indexOf(h)<0&&m.unshift(h),a.apply(this,m)}const l=e.split(" ");let c;for(let h=0;h<this.length;h+=1){const m=this[h];if(n)for(c=0;c<l.length;c+=1){const k=l[c];m.dom7LiveListeners||(m.dom7LiveListeners={}),m.dom7LiveListeners[k]||(m.dom7LiveListeners[k]=[]),m.dom7LiveListeners[k].push({listener:a,proxyListener:r}),m.addEventListener(k,r,i)}else for(c=0;c<l.length;c+=1){const k=l[c];m.dom7Listeners||(m.dom7Listeners={}),m.dom7Listeners[k]||(m.dom7Listeners[k]=[]),m.dom7Listeners[k].push({listener:a,proxyListener:s}),m.addEventListener(k,s,i)}}return this}function nS(...t){let[e,n,a,i]=t;typeof t[1]=="function"&&([e,a,i]=t,n=void 0),i||(i=!1);const r=e.split(" ");for(let s=0;s<r.length;s+=1){const l=r[s];for(let c=0;c<this.length;c+=1){const h=this[c];let m;if(!n&&h.dom7Listeners?m=h.dom7Listeners[l]:n&&h.dom7LiveListeners&&(m=h.dom7LiveListeners[l]),m&&m.length)for(let k=m.length-1;k>=0;k-=1){const w=m[k];a&&w.listener===a||a&&w.listener&&w.listener.dom7proxy&&w.listener.dom7proxy===a?(h.removeEventListener(l,w.proxyListener,i),m.splice(k,1)):a||(h.removeEventListener(l,w.proxyListener,i),m.splice(k,1))}}}return this}function aS(...t){const e=t[0].split(" "),n=t[1];for(let a=0;a<e.length;a+=1){const i=e[a];for(let r=0;r<this.length;r+=1){const s=this[r];let l;try{l=new ya.CustomEvent(i,{detail:n,bubbles:!0,cancelable:!0})}catch{l=va.createEvent("Event"),l.initEvent(i,!0,!0),l.detail=n}s.dom7EventData=t.filter((c,h)=>h>0),s.dispatchEvent(l),s.dom7EventData=[],delete s.dom7EventData}}return this}function iS(t){const e=["webkitTransitionEnd","transitionend"],n=this;let a;function i(r){if(r.target===this)for(t.call(this,r),a=0;a<e.length;a+=1)n.off(e[a],i)}if(t)for(a=0;a<e.length;a+=1)n.on(e[a],i);return this}function rS(t){if(this.length>0){if(t){const e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function oS(t){if(this.length>0){if(t){const e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function sS(){if(this.length>0){const t=this[0],e=t.getBoundingClientRect(),n=va.body,a=t.clientTop||n.clientTop||0,i=t.clientLeft||n.clientLeft||0,r=t===ya?ya.scrollY:t.scrollTop,s=t===ya?ya.scrollX:t.scrollLeft;return{top:e.top+r-a,left:e.left+s-i}}return null}function lS(){return this[0]?ya.getComputedStyle(this[0],null):{}}function uS(t,e){let n;if(arguments.length===1)if(typeof t=="string"){if(this[0])return ya.getComputedStyle(this[0],null).getPropertyValue(t)}else{for(n=0;n<this.length;n+=1)for(let a in t)this[n].style[a]=t[a];return this}if(arguments.length===2&&typeof t=="string"){for(n=0;n<this.length;n+=1)this[n].style[t]=e;return this}return this}function cS(t){if(!t)return this;for(let e=0;e<this.length;e+=1)if(t.call(this[e],e,this[e])===!1)return this;return this}function dS(t){if(typeof t>"u")return this[0]?this[0].innerHTML:void 0;for(let e=0;e<this.length;e+=1)this[e].innerHTML=t;return this}function fS(t){if(typeof t>"u")return this[0]?this[0].textContent.trim():null;for(let e=0;e<this.length;e+=1)this[e].textContent=t;return this}function hS(t){const e=this[0];let n,a;if(!e||typeof t>"u")return!1;if(typeof t=="string"){if(e.matches)return e.matches(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);for(n=kt(t),a=0;a<n.length;a+=1)if(n[a]===e)return!0;return!1}else{if(t===va)return e===va;if(t===ya)return e===ya}if(t.nodeType||t instanceof pe){for(n=t.nodeType?[t]:t,a=0;a<n.length;a+=1)if(n[a]===e)return!0;return!1}return!1}function pS(){let t=this[0],e;if(t){for(e=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(e+=1);return e}}function gS(t){if(typeof t>"u")return this;const e=this.length;let n;return t>e-1?new pe([]):t<0?(n=e+t,n<0?new pe([]):new pe([this[n]])):new pe([this[t]])}function mS(...t){let e;for(let n=0;n<t.length;n+=1){e=t[n];for(let a=0;a<this.length;a+=1)if(typeof e=="string"){const i=va.createElement("div");for(i.innerHTML=e;i.firstChild;)this[a].appendChild(i.firstChild)}else if(e instanceof pe)for(let i=0;i<e.length;i+=1)this[a].appendChild(e[i]);else this[a].appendChild(e)}return this}function vS(t){let e,n;for(e=0;e<this.length;e+=1)if(typeof t=="string"){const a=va.createElement("div");for(a.innerHTML=t,n=a.childNodes.length-1;n>=0;n-=1)this[e].insertBefore(a.childNodes[n],this[e].childNodes[0])}else if(t instanceof pe)for(n=0;n<t.length;n+=1)this[e].insertBefore(t[n],this[e].childNodes[0]);else this[e].insertBefore(t,this[e].childNodes[0]);return this}function yS(t){return this.length>0?t?this[0].nextElementSibling&&kt(this[0].nextElementSibling).is(t)?new pe([this[0].nextElementSibling]):new pe([]):this[0].nextElementSibling?new pe([this[0].nextElementSibling]):new pe([]):new pe([])}function bS(t){const e=[];let n=this[0];if(!n)return new pe([]);for(;n.nextElementSibling;){const a=n.nextElementSibling;t?kt(a).is(t)&&e.push(a):e.push(a),n=a}return new pe(e)}function wS(t){if(this.length>0){const e=this[0];return t?e.previousElementSibling&&kt(e.previousElementSibling).is(t)?new pe([e.previousElementSibling]):new pe([]):e.previousElementSibling?new pe([e.previousElementSibling]):new pe([])}return new pe([])}function kS(t){const e=[];let n=this[0];if(!n)return new pe([]);for(;n.previousElementSibling;){const a=n.previousElementSibling;t?kt(a).is(t)&&e.push(a):e.push(a),n=a}return new pe(e)}function xS(t){const e=[];for(let n=0;n<this.length;n+=1)this[n].parentNode!==null&&(t?kt(this[n].parentNode).is(t)&&e.push(this[n].parentNode):e.push(this[n].parentNode));return kt(xh(e))}function SS(t){const e=[];for(let n=0;n<this.length;n+=1){let a=this[n].parentNode;for(;a;)t?kt(a).is(t)&&e.push(a):e.push(a),a=a.parentNode}return kt(xh(e))}function CS(t){let e=this;return typeof t>"u"?new pe([]):(e.is(t)||(e=e.parents(t).eq(0)),e)}function TS(t){const e=[];for(let n=0;n<this.length;n+=1){const a=this[n].querySelectorAll(t);for(let i=0;i<a.length;i+=1)e.push(a[i])}return new pe(e)}function ES(t){const e=[];for(let n=0;n<this.length;n+=1){const a=this[n].childNodes;for(let i=0;i<a.length;i+=1)t?a[i].nodeType===1&&kt(a[i]).is(t)&&e.push(a[i]):a[i].nodeType===1&&e.push(a[i])}return new pe(xh(e))}function PS(){for(let t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}function MS(...t){const e=this;let n,a;for(n=0;n<t.length;n+=1){const i=kt(t[n]);for(a=0;a<i.length;a+=1)e[e.length]=i[a],e.length+=1}return e}var ne=typeof document>"u"?{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document,Mt=typeof window>"u"?{document:ne,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window;const Ug={addClass:Vx,removeClass:Gx,hasClass:Ux,toggleClass:Yx,attr:Xx,removeAttr:Zx,data:Jx,transform:Qx,transition:tS,on:eS,off:nS,trigger:aS,transitionEnd:iS,outerWidth:rS,outerHeight:oS,offset:sS,css:uS,each:cS,html:dS,text:fS,is:hS,index:pS,eq:gS,append:mS,prepend:vS,next:yS,nextAll:bS,prev:wS,prevAll:kS,parent:xS,parents:SS,closest:CS,find:TS,children:ES,remove:PS,add:MS,styles:lS};Object.keys(Ug).forEach(t=>{kt.fn[t]=kt.fn[t]||Ug[t]});const yt={deleteProps(t){const e=t;Object.keys(e).forEach(n=>{try{e[n]=null}catch{}try{delete e[n]}catch{}})},nextTick(t,e=0){return setTimeout(t,e)},now(){return Date.now()},getTranslate(t,e="x"){let n,a,i;const r=Mt.getComputedStyle(t,null);return Mt.WebKitCSSMatrix?(a=r.transform||r.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(s=>s.replace(",",".")).join(", ")),i=new Mt.WebKitCSSMatrix(a==="none"?"":a)):(i=r.MozTransform||r.OTransform||r.MsTransform||r.msTransform||r.transform||r.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=i.toString().split(",")),e==="x"&&(Mt.WebKitCSSMatrix?a=i.m41:n.length===16?a=parseFloat(n[12]):a=parseFloat(n[4])),e==="y"&&(Mt.WebKitCSSMatrix?a=i.m42:n.length===16?a=parseFloat(n[13]):a=parseFloat(n[5])),a||0},parseUrlQuery(t){const e={};let n=t||Mt.location.href,a,i,r,s;if(typeof n=="string"&&n.length)for(n=n.indexOf("?")>-1?n.replace(/\S*\?/,""):"",i=n.split("&").filter(l=>l!==""),s=i.length,a=0;a<s;a+=1)r=i[a].replace(/#\S+/g,"").split("="),e[decodeURIComponent(r[0])]=typeof r[1]>"u"?void 0:decodeURIComponent(r[1])||"";return e},isObject(t){return typeof t=="object"&&t!==null&&t.constructor&&t.constructor===Object},extend(...t){const e=Object(t[0]);for(let n=1;n<t.length;n+=1){const a=t[n];if(a!=null){const i=Object.keys(Object(a));for(let r=0,s=i.length;r<s;r+=1){const l=i[r],c=Object.getOwnPropertyDescriptor(a,l);c!==void 0&&c.enumerable&&(yt.isObject(e[l])&&yt.isObject(a[l])?yt.extend(e[l],a[l]):!yt.isObject(e[l])&&yt.isObject(a[l])?(e[l]={},yt.extend(e[l],a[l])):e[l]=a[l])}}}return e}},$t=function(){const e=ne.createElement("div");return{touch:Mt.Modernizr&&Mt.Modernizr.touch===!0||function(){return!!(Mt.navigator.maxTouchPoints>0||"ontouchstart"in Mt||Mt.DocumentTouch&&ne instanceof Mt.DocumentTouch)}(),pointerEvents:!!(Mt.navigator.pointerEnabled||Mt.PointerEvent||"maxTouchPoints"in Mt.navigator&&Mt.navigator.maxTouchPoints>0),prefixedPointerEvents:!!Mt.navigator.msPointerEnabled,transition:function(){const a=e.style;return"transition"in a||"webkitTransition"in a||"MozTransition"in a}(),transforms3d:Mt.Modernizr&&Mt.Modernizr.csstransforms3d===!0||function(){const a=e.style;return"webkitPerspective"in a||"MozPerspective"in a||"OPerspective"in a||"MsPerspective"in a||"perspective"in a}(),flexbox:function(){const a=e.style,i="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" ");for(let r=0;r<i.length;r+=1)if(i[r]in a)return!0;return!1}(),observer:function(){return"MutationObserver"in Mt||"WebkitMutationObserver"in Mt}(),passiveListener:function(){let a=!1;try{const i=Object.defineProperty({},"passive",{get(){a=!0}});Mt.addEventListener("testPassiveListener",null,i)}catch{}return a}(),gestures:function(){return"ongesturestart"in Mt}()}}(),$a=function(){function e(){const n=Mt.navigator.userAgent.toLowerCase();return n.indexOf("safari")>=0&&n.indexOf("chrome")<0&&n.indexOf("android")<0}return{isIE:!!Mt.navigator.userAgent.match(/Trident/g)||!!Mt.navigator.userAgent.match(/MSIE/g),isEdge:!!Mt.navigator.userAgent.match(/Edge/g),isSafari:e(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(Mt.navigator.userAgent)}}();class Yg{constructor(e={}){const n=this;n.params=e,n.eventsListeners={},n.params&&n.params.on&&Object.keys(n.params.on).forEach(a=>{n.on(a,n.params.on[a])})}on(e,n,a){const i=this;if(typeof n!="function")return i;const r=a?"unshift":"push";return e.split(" ").forEach(s=>{i.eventsListeners[s]||(i.eventsListeners[s]=[]),i.eventsListeners[s][r](n)}),i}once(e,n,a){const i=this;if(typeof n!="function")return i;function r(...s){n.apply(i,s),i.off(e,r),r.f7proxy&&delete r.f7proxy}return r.f7proxy=n,i.on(e,r,a)}off(e,n){const a=this;return a.eventsListeners&&e.split(" ").forEach(i=>{typeof n>"u"?a.eventsListeners[i]=[]:a.eventsListeners[i]&&a.eventsListeners[i].length&&a.eventsListeners[i].forEach((r,s)=>{(r===n||r.f7proxy&&r.f7proxy===n)&&a.eventsListeners[i].splice(s,1)})}),a}emit(...e){const n=this;if(!n.eventsListeners)return n;let a,i,r;return typeof e[0]=="string"||Array.isArray(e[0])?(a=e[0],i=e.slice(1,e.length),r=n):(a=e[0].events,i=e[0].data,r=e[0].context||n),(Array.isArray(a)?a:a.split(" ")).forEach(l=>{if(n.eventsListeners&&n.eventsListeners[l]){const c=[];n.eventsListeners[l].forEach(h=>{c.push(h)}),c.forEach(h=>{h.apply(r,i)})}}),n}useModulesParams(e){const n=this;n.modules&&Object.keys(n.modules).forEach(a=>{const i=n.modules[a];i.params&&yt.extend(e,i.params)})}useModules(e={}){const n=this;n.modules&&Object.keys(n.modules).forEach(a=>{const i=n.modules[a],r=e[a]||{};i.instance&&Object.keys(i.instance).forEach(s=>{const l=i.instance[s];typeof l=="function"?n[s]=l.bind(n):n[s]=l}),i.on&&n.on&&Object.keys(i.on).forEach(s=>{n.on(s,i.on[s])}),i.create&&i.create.bind(n)(r)})}static set components(e){const n=this;n.use&&n.use(e)}static installModule(e,...n){const a=this;a.prototype.modules||(a.prototype.modules={});const i=e.name||`${Object.keys(a.prototype.modules).length}_${yt.now()}`;return a.prototype.modules[i]=e,e.proto&&Object.keys(e.proto).forEach(r=>{a.prototype[r]=e.proto[r]}),e.static&&Object.keys(e.static).forEach(r=>{a[r]=e.static[r]}),e.install&&e.install.apply(a,n),a}static use(e,...n){const a=this;return Array.isArray(e)?(e.forEach(i=>a.installModule(i)),a):a.installModule(e,...n)}}function AS(){const t=this;let e,n;const a=t.$el;typeof t.params.width<"u"?e=t.params.width:e=a[0].clientWidth,typeof t.params.height<"u"?n=t.params.height:n=a[0].clientHeight,!(e===0&&t.isHorizontal()||n===0&&t.isVertical())&&(e=e-parseInt(a.css("padding-left"),10)-parseInt(a.css("padding-right"),10),n=n-parseInt(a.css("padding-top"),10)-parseInt(a.css("padding-bottom"),10),yt.extend(t,{width:e,height:n,size:t.isHorizontal()?e:n}))}function NS(){const t=this,e=t.params,{$wrapperEl:n,size:a,rtlTranslate:i,wrongRTL:r}=t,s=t.virtual&&e.virtual.enabled,l=s?t.virtual.slides.length:t.slides.length,c=n.children(`.${t.params.slideClass}`),h=s?t.virtual.slides.length:c.length;let m=[];const k=[],w=[];let P=e.slidesOffsetBefore;typeof P=="function"&&(P=e.slidesOffsetBefore.call(t));let E=e.slidesOffsetAfter;typeof E=="function"&&(E=e.slidesOffsetAfter.call(t));const z=t.snapGrid.length,A=t.snapGrid.length;let x=e.spaceBetween,S=-P,N=0,L=0;if(typeof a>"u")return;typeof x=="string"&&x.indexOf("%")>=0&&(x=parseFloat(x.replace("%",""))/100*a),t.virtualSize=-x,i?c.css({marginLeft:"",marginTop:""}):c.css({marginRight:"",marginBottom:""});let j;e.slidesPerColumn>1&&(Math.floor(h/e.slidesPerColumn)===h/t.params.slidesPerColumn?j=h:j=Math.ceil(h/e.slidesPerColumn)*e.slidesPerColumn,e.slidesPerView!=="auto"&&e.slidesPerColumnFill==="row"&&(j=Math.max(j,e.slidesPerView*e.slidesPerColumn)));let f;const U=e.slidesPerColumn,_=j/U,F=Math.floor(h/e.slidesPerColumn);for(let dt=0;dt<h;dt+=1){f=0;const ot=c.eq(dt);if(e.slidesPerColumn>1){let X,$,o;if(e.slidesPerColumnFill==="column"||e.slidesPerColumnFill==="row"&&e.slidesPerGroup>1){if(e.slidesPerColumnFill==="column")$=Math.floor(dt/U),o=dt-$*U,($>F||$===F&&o===U-1)&&(o+=1,o>=U&&(o=0,$+=1));else{const tt=Math.floor(dt/e.slidesPerGroup);o=Math.floor(dt/e.slidesPerView)-tt*e.slidesPerColumn,$=dt-o*e.slidesPerView-tt*e.slidesPerView}X=$+o*j/U,ot.css({"-webkit-box-ordinal-group":X,"-moz-box-ordinal-group":X,"-ms-flex-order":X,"-webkit-order":X,order:X})}else o=Math.floor(dt/_),$=dt-o*_;ot.css(`margin-${t.isHorizontal()?"top":"left"}`,o!==0&&e.spaceBetween&&`${e.spaceBetween}px`).attr("data-swiper-column",$).attr("data-swiper-row",o)}if(ot.css("display")!=="none"){if(e.slidesPerView==="auto"){const X=Mt.getComputedStyle(ot[0],null),$=ot[0].style.transform,o=ot[0].style.webkitTransform;if($&&(ot[0].style.transform="none"),o&&(ot[0].style.webkitTransform="none"),e.roundLengths)f=t.isHorizontal()?ot.outerWidth(!0):ot.outerHeight(!0);else if(t.isHorizontal()){const tt=parseFloat(X.getPropertyValue("width")),v=parseFloat(X.getPropertyValue("padding-left")),Q=parseFloat(X.getPropertyValue("padding-right")),st=parseFloat(X.getPropertyValue("margin-left")),ft=parseFloat(X.getPropertyValue("margin-right")),D=X.getPropertyValue("box-sizing");D&&D==="border-box"&&!$a.isIE?f=tt+st+ft:f=tt+v+Q+st+ft}else{const tt=parseFloat(X.getPropertyValue("height")),v=parseFloat(X.getPropertyValue("padding-top")),Q=parseFloat(X.getPropertyValue("padding-bottom")),st=parseFloat(X.getPropertyValue("margin-top")),ft=parseFloat(X.getPropertyValue("margin-bottom")),D=X.getPropertyValue("box-sizing");D&&D==="border-box"&&!$a.isIE?f=tt+st+ft:f=tt+v+Q+st+ft}$&&(ot[0].style.transform=$),o&&(ot[0].style.webkitTransform=o),e.roundLengths&&(f=Math.floor(f))}else f=(a-(e.slidesPerView-1)*x)/e.slidesPerView,e.roundLengths&&(f=Math.floor(f)),c[dt]&&(t.isHorizontal()?c[dt].style.width=`${f}px`:c[dt].style.height=`${f}px`);c[dt]&&(c[dt].swiperSlideSize=f),w.push(f),e.centeredSlides?(S=S+f/2+N/2+x,N===0&&dt!==0&&(S=S-a/2-x),dt===0&&(S=S-a/2-x),Math.abs(S)<1/1e3&&(S=0),e.roundLengths&&(S=Math.floor(S)),L%e.slidesPerGroup===0&&m.push(S),k.push(S)):(e.roundLengths&&(S=Math.floor(S)),L%e.slidesPerGroup===0&&m.push(S),k.push(S),S=S+f+x),t.virtualSize+=f+x,N=f,L+=1}}t.virtualSize=Math.max(t.virtualSize,a)+E;let gt;if(i&&r&&(e.effect==="slide"||e.effect==="coverflow")&&n.css({width:`${t.virtualSize+e.spaceBetween}px`}),(!$t.flexbox||e.setWrapperSize)&&(t.isHorizontal()?n.css({width:`${t.virtualSize+e.spaceBetween}px`}):n.css({height:`${t.virtualSize+e.spaceBetween}px`})),e.slidesPerColumn>1&&(t.virtualSize=(f+e.spaceBetween)*j,t.virtualSize=Math.ceil(t.virtualSize/e.slidesPerColumn)-e.spaceBetween,t.isHorizontal()?n.css({width:`${t.virtualSize+e.spaceBetween}px`}):n.css({height:`${t.virtualSize+e.spaceBetween}px`}),e.centeredSlides)){gt=[];for(let dt=0;dt<m.length;dt+=1){let ot=m[dt];e.roundLengths&&(ot=Math.floor(ot)),m[dt]<t.virtualSize+m[0]&>.push(ot)}m=gt}if(!e.centeredSlides){gt=[];for(let dt=0;dt<m.length;dt+=1){let ot=m[dt];e.roundLengths&&(ot=Math.floor(ot)),m[dt]<=t.virtualSize-a&>.push(ot)}m=gt,Math.floor(t.virtualSize-a)-Math.floor(m[m.length-1])>1&&m.push(t.virtualSize-a)}if(m.length===0&&(m=[0]),e.spaceBetween!==0&&(t.isHorizontal()?i?c.css({marginLeft:`${x}px`}):c.css({marginRight:`${x}px`}):c.css({marginBottom:`${x}px`})),e.centerInsufficientSlides){let dt=0;if(w.forEach(ot=>{dt+=ot+(e.spaceBetween?e.spaceBetween:0)}),dt-=e.spaceBetween,dt<a){const ot=(a-dt)/2;m.forEach((X,$)=>{m[$]=X-ot}),k.forEach((X,$)=>{k[$]=X+ot})}}yt.extend(t,{slides:c,snapGrid:m,slidesGrid:k,slidesSizesGrid:w}),h!==l&&t.emit("slidesLengthChange"),m.length!==z&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),k.length!==A&&t.emit("slidesGridLengthChange"),(e.watchSlidesProgress||e.watchSlidesVisibility)&&t.updateSlidesOffset()}function LS(t){const e=this,n=[];let a=0,i;if(typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed),e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)for(i=0;i<Math.ceil(e.params.slidesPerView);i+=1){const r=e.activeIndex+i;if(r>e.slides.length)break;n.push(e.slides.eq(r)[0])}else n.push(e.slides.eq(e.activeIndex)[0]);for(i=0;i<n.length;i+=1)if(typeof n[i]<"u"){const r=n[i].offsetHeight;a=r>a?r:a}a&&e.$wrapperEl.css("height",`${a}px`)}function zS(){const t=this,e=t.slides;for(let n=0;n<e.length;n+=1)e[n].swiperSlideOffset=t.isHorizontal()?e[n].offsetLeft:e[n].offsetTop}function BS(t=this&&this.translate||0){const e=this,n=e.params,{slides:a,rtlTranslate:i}=e;if(a.length===0)return;typeof a[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let r=-t;i&&(r=t),a.removeClass(n.slideVisibleClass),e.visibleSlidesIndexes=[],e.visibleSlides=[];for(let s=0;s<a.length;s+=1){const l=a[s],c=(r+(n.centeredSlides?e.minTranslate():0)-l.swiperSlideOffset)/(l.swiperSlideSize+n.spaceBetween);if(n.watchSlidesVisibility){const h=-(r-l.swiperSlideOffset),m=h+e.slidesSizesGrid[s];(h>=0&&h<e.size-1||m>1&&m<=e.size||h<=0&&m>=e.size)&&(e.visibleSlides.push(l),e.visibleSlidesIndexes.push(s),a.eq(s).addClass(n.slideVisibleClass))}l.progress=i?-c:c}e.visibleSlides=kt(e.visibleSlides)}function IS(t=this&&this.translate||0){const e=this,n=e.params,a=e.maxTranslate()-e.minTranslate();let{progress:i,isBeginning:r,isEnd:s}=e;const l=r,c=s;a===0?(i=0,r=!0,s=!0):(i=(t-e.minTranslate())/a,r=i<=0,s=i>=1),yt.extend(e,{progress:i,isBeginning:r,isEnd:s}),(n.watchSlidesProgress||n.watchSlidesVisibility)&&e.updateSlidesProgress(t),r&&!l&&e.emit("reachBeginning toEdge"),s&&!c&&e.emit("reachEnd toEdge"),(l&&!r||c&&!s)&&e.emit("fromEdge"),e.emit("progress",i)}function DS(){const t=this,{slides:e,params:n,$wrapperEl:a,activeIndex:i,realIndex:r}=t,s=t.virtual&&n.virtual.enabled;e.removeClass(`${n.slideActiveClass} ${n.slideNextClass} ${n.slidePrevClass} ${n.slideDuplicateActiveClass} ${n.slideDuplicateNextClass} ${n.slideDuplicatePrevClass}`);let l;s?l=t.$wrapperEl.find(`.${n.slideClass}[data-swiper-slide-index="${i}"]`):l=e.eq(i),l.addClass(n.slideActiveClass),n.loop&&(l.hasClass(n.slideDuplicateClass)?a.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${r}"]`).addClass(n.slideDuplicateActiveClass):a.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${r}"]`).addClass(n.slideDuplicateActiveClass));let c=l.nextAll(`.${n.slideClass}`).eq(0).addClass(n.slideNextClass);n.loop&&c.length===0&&(c=e.eq(0),c.addClass(n.slideNextClass));let h=l.prevAll(`.${n.slideClass}`).eq(0).addClass(n.slidePrevClass);n.loop&&h.length===0&&(h=e.eq(-1),h.addClass(n.slidePrevClass)),n.loop&&(c.hasClass(n.slideDuplicateClass)?a.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicateNextClass):a.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicateNextClass),h.hasClass(n.slideDuplicateClass)?a.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${h.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicatePrevClass):a.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${h.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicatePrevClass))}function jS(t){const e=this,n=e.rtlTranslate?e.translate:-e.translate,{slidesGrid:a,snapGrid:i,params:r,activeIndex:s,realIndex:l,snapIndex:c}=e;let h=t,m;if(typeof h>"u"){for(let w=0;w<a.length;w+=1)typeof a[w+1]<"u"?n>=a[w]&&n<a[w+1]-(a[w+1]-a[w])/2?h=w:n>=a[w]&&n<a[w+1]&&(h=w+1):n>=a[w]&&(h=w);r.normalizeSlideIndex&&(h<0||typeof h>"u")&&(h=0)}if(i.indexOf(n)>=0?m=i.indexOf(n):m=Math.floor(h/r.slidesPerGroup),m>=i.length&&(m=i.length-1),h===s){m!==c&&(e.snapIndex=m,e.emit("snapIndexChange"));return}const k=parseInt(e.slides.eq(h).attr("data-swiper-slide-index")||h,10);yt.extend(e,{snapIndex:m,realIndex:k,previousIndex:s,activeIndex:h}),e.emit("activeIndexChange"),e.emit("snapIndexChange"),l!==k&&e.emit("realIndexChange"),(e.initialized||e.runCallbacksOnInit)&&e.emit("slideChange")}function RS(t){const e=this,n=e.params,a=kt(t.target).closest(`.${n.slideClass}`)[0];let i=!1;if(a)for(let r=0;r<e.slides.length;r+=1)e.slides[r]===a&&(i=!0);if(a&&i)e.clickedSlide=a,e.virtual&&e.params.virtual.enabled?e.clickedIndex=parseInt(kt(a).attr("data-swiper-slide-index"),10):e.clickedIndex=kt(a).index();else{e.clickedSlide=void 0,e.clickedIndex=void 0;return}n.slideToClickedSlide&&e.clickedIndex!==void 0&&e.clickedIndex!==e.activeIndex&&e.slideToClickedSlide()}var OS={updateSize:AS,updateSlides:NS,updateAutoHeight:LS,updateSlidesOffset:zS,updateSlidesProgress:BS,updateProgress:IS,updateSlidesClasses:DS,updateActiveIndex:jS,updateClickedSlide:RS};function KS(t=this.isHorizontal()?"x":"y"){const e=this,{params:n,rtlTranslate:a,translate:i,$wrapperEl:r}=e;if(n.virtualTranslate)return a?-i:i;let s=yt.getTranslate(r[0],t);return a&&(s=-s),s||0}function $S(t,e){const n=this,{rtlTranslate:a,params:i,$wrapperEl:r,progress:s}=n;let l=0,c=0;const h=0;n.isHorizontal()?l=a?-t:t:c=t,i.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),i.virtualTranslate||($t.transforms3d?r.transform(`translate3d(${l}px, ${c}px, ${h}px)`):r.transform(`translate(${l}px, ${c}px)`)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:c;let m;const k=n.maxTranslate()-n.minTranslate();k===0?m=0:m=(t-n.minTranslate())/k,m!==s&&n.updateProgress(t),n.emit("setTranslate",n.translate,e)}function qS(){return-this.snapGrid[0]}function HS(){return-this.snapGrid[this.snapGrid.length-1]}var FS={getTranslate:KS,setTranslate:$S,minTranslate:qS,maxTranslate:HS};function WS(t,e){const n=this;n.$wrapperEl.transition(t),n.emit("setTransition",t,e)}function _S(t=!0,e){const n=this,{activeIndex:a,params:i,previousIndex:r}=n;i.autoHeight&&n.updateAutoHeight();let s=e;if(s||(a>r?s="next":a<r?s="prev":s="reset"),n.emit("transitionStart"),t&&a!==r){if(s==="reset"){n.emit("slideResetTransitionStart");return}n.emit("slideChangeTransitionStart"),s==="next"?n.emit("slideNextTransitionStart"):n.emit("slidePrevTransitionStart")}}function VS(t=!0,e){const n=this,{activeIndex:a,previousIndex:i}=n;n.animating=!1,n.setTransition(0);let r=e;if(r||(a>i?r="next":a<i?r="prev":r="reset"),n.emit("transitionEnd"),t&&a!==i){if(r==="reset"){n.emit("slideResetTransitionEnd");return}n.emit("slideChangeTransitionEnd"),r==="next"?n.emit("slideNextTransitionEnd"):n.emit("slidePrevTransitionEnd")}}var GS={setTransition:WS,transitionStart:_S,transitionEnd:VS};function US(t=0,e=this.params.speed,n=!0,a){const i=this;let r=t;r<0&&(r=0);const{params:s,snapGrid:l,slidesGrid:c,previousIndex:h,activeIndex:m,rtlTranslate:k}=i;if(i.animating&&s.preventInteractionOnTransition)return!1;let w=Math.floor(r/s.slidesPerGroup);w>=l.length&&(w=l.length-1),(m||s.initialSlide||0)===(h||0)&&n&&i.emit("beforeSlideChangeStart");const P=-l[w];if(i.updateProgress(P),s.normalizeSlideIndex)for(let z=0;z<c.length;z+=1)-Math.floor(P*100)>=Math.floor(c[z]*100)&&(r=z);if(i.initialized&&r!==m&&(!i.allowSlideNext&&P<i.translate&&P<i.minTranslate()||!i.allowSlidePrev&&P>i.translate&&P>i.maxTranslate()&&(m||0)!==r))return!1;let E;return r>m?E="next":r<m?E="prev":E="reset",k&&-P===i.translate||!k&&P===i.translate?(i.updateActiveIndex(r),s.autoHeight&&i.updateAutoHeight(),i.updateSlidesClasses(),s.effect!=="slide"&&i.setTranslate(P),E!=="reset"&&(i.transitionStart(n,E),i.transitionEnd(n,E)),!1):(e===0||!$t.transition?(i.setTransition(0),i.setTranslate(P),i.updateActiveIndex(r),i.updateSlidesClasses(),i.emit("beforeTransitionStart",e,a),i.transitionStart(n,E),i.transitionEnd(n,E)):(i.setTransition(e),i.setTranslate(P),i.updateActiveIndex(r),i.updateSlidesClasses(),i.emit("beforeTransitionStart",e,a),i.transitionStart(n,E),i.animating||(i.animating=!0,i.onSlideToWrapperTransitionEnd||(i.onSlideToWrapperTransitionEnd=function(A){!i||i.destroyed||A.target===this&&(i.$wrapperEl[0].removeEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.$wrapperEl[0].removeEventListener("webkitTransitionEnd",i.onSlideToWrapperTransitionEnd),i.onSlideToWrapperTransitionEnd=null,delete i.onSlideToWrapperTransitionEnd,i.transitionEnd(n,E))}),i.$wrapperEl[0].addEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.$wrapperEl[0].addEventListener("webkitTransitionEnd",i.onSlideToWrapperTransitionEnd))),!0)}function YS(t=0,e=this.params.speed,n=!0,a){const i=this;let r=t;return i.params.loop&&(r+=i.loopedSlides),i.slideTo(r,e,n,a)}function XS(t=this.params.speed,e=!0,n){const a=this,{params:i,animating:r}=a;return i.loop?r?!1:(a.loopFix(),a._clientLeft=a.$wrapperEl[0].clientLeft,a.slideTo(a.activeIndex+i.slidesPerGroup,t,e,n)):a.slideTo(a.activeIndex+i.slidesPerGroup,t,e,n)}function ZS(t=this.params.speed,e=!0,n){const a=this,{params:i,animating:r,snapGrid:s,slidesGrid:l,rtlTranslate:c}=a;if(i.loop){if(r)return!1;a.loopFix(),a._clientLeft=a.$wrapperEl[0].clientLeft}const h=c?a.translate:-a.translate;function m(z){return z<0?-Math.floor(Math.abs(z)):Math.floor(z)}const k=m(h),w=s.map(z=>m(z));l.map(z=>m(z)),s[w.indexOf(k)];const P=s[w.indexOf(k)-1];let E;return typeof P<"u"&&(E=l.indexOf(P),E<0&&(E=a.activeIndex-1)),a.slideTo(E,t,e,n)}function JS(t=this.params.speed,e=!0,n){const a=this;return a.slideTo(a.activeIndex,t,e,n)}function QS(t=this.params.speed,e=!0,n){const a=this;let i=a.activeIndex;const r=Math.floor(i/a.params.slidesPerGroup);if(r<a.snapGrid.length-1){const s=a.rtlTranslate?a.translate:-a.translate,l=a.snapGrid[r],c=a.snapGrid[r+1];s-l>(c-l)/2&&(i=a.params.slidesPerGroup)}return a.slideTo(i,t,e,n)}function t1(){const t=this,{params:e,$wrapperEl:n}=t,a=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let i=t.clickedIndex,r;if(e.loop){if(t.animating)return;r=parseInt(kt(t.clickedSlide).attr("data-swiper-slide-index"),10),e.centeredSlides?i<t.loopedSlides-a/2||i>t.slides.length-t.loopedSlides+a/2?(t.loopFix(),i=n.children(`.${e.slideClass}[data-swiper-slide-index="${r}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),yt.nextTick(()=>{t.slideTo(i)})):t.slideTo(i):i>t.slides.length-a?(t.loopFix(),i=n.children(`.${e.slideClass}[data-swiper-slide-index="${r}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),yt.nextTick(()=>{t.slideTo(i)})):t.slideTo(i)}else t.slideTo(i)}var e1={slideTo:US,slideToLoop:YS,slideNext:XS,slidePrev:ZS,slideReset:JS,slideToClosest:QS,slideToClickedSlide:t1};function n1(){const t=this,{params:e,$wrapperEl:n}=t;n.children(`.${e.slideClass}.${e.slideDuplicateClass}`).remove();let a=n.children(`.${e.slideClass}`);if(e.loopFillGroupWithBlank){const s=e.slidesPerGroup-a.length%e.slidesPerGroup;if(s!==e.slidesPerGroup){for(let l=0;l<s;l+=1){const c=kt(ne.createElement("div")).addClass(`${e.slideClass} ${e.slideBlankClass}`);n.append(c)}a=n.children(`.${e.slideClass}`)}}e.slidesPerView==="auto"&&!e.loopedSlides&&(e.loopedSlides=a.length),t.loopedSlides=parseInt(e.loopedSlides||e.slidesPerView,10),t.loopedSlides+=e.loopAdditionalSlides,t.loopedSlides>a.length&&(t.loopedSlides=a.length);const i=[],r=[];a.each((s,l)=>{const c=kt(l);s<t.loopedSlides&&r.push(l),s<a.length&&s>=a.length-t.loopedSlides&&i.push(l),c.attr("data-swiper-slide-index",s)});for(let s=0;s<r.length;s+=1)n.append(kt(r[s].cloneNode(!0)).addClass(e.slideDuplicateClass));for(let s=i.length-1;s>=0;s-=1)n.prepend(kt(i[s].cloneNode(!0)).addClass(e.slideDuplicateClass))}function a1(){const t=this,{params:e,activeIndex:n,slides:a,loopedSlides:i,allowSlidePrev:r,allowSlideNext:s,snapGrid:l,rtlTranslate:c}=t;let h;t.allowSlidePrev=!0,t.allowSlideNext=!0;const k=-l[n]-t.getTranslate();n<i?(h=a.length-i*3+n,h+=i,t.slideTo(h,0,!1,!0)&&k!==0&&t.setTranslate((c?-t.translate:t.translate)-k)):(e.slidesPerView==="auto"&&n>=i*2||n>=a.length-i)&&(h=-a.length+n+i,h+=i,t.slideTo(h,0,!1,!0)&&k!==0&&t.setTranslate((c?-t.translate:t.translate)-k)),t.allowSlidePrev=r,t.allowSlideNext=s}function i1(){const t=this,{$wrapperEl:e,params:n,slides:a}=t;e.children(`.${n.slideClass}.${n.slideDuplicateClass},.${n.slideClass}.${n.slideBlankClass}`).remove(),a.removeAttr("data-swiper-slide-index")}var r1={loopCreate:n1,loopFix:a1,loopDestroy:i1};function o1(t){const e=this;if($t.touch||!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked)return;const n=e.el;n.style.cursor="move",n.style.cursor=t?"-webkit-grabbing":"-webkit-grab",n.style.cursor=t?"-moz-grabbin":"-moz-grab",n.style.cursor=t?"grabbing":"grab"}function s1(){const t=this;$t.touch||t.params.watchOverflow&&t.isLocked||(t.el.style.cursor="")}var l1={setGrabCursor:o1,unsetGrabCursor:s1};function u1(t){const e=this,{$wrapperEl:n,params:a}=e;if(a.loop&&e.loopDestroy(),typeof t=="object"&&"length"in t)for(let i=0;i<t.length;i+=1)t[i]&&n.append(t[i]);else n.append(t);a.loop&&e.loopCreate(),a.observer&&$t.observer||e.update()}function c1(t){const e=this,{params:n,$wrapperEl:a,activeIndex:i}=e;n.loop&&e.loopDestroy();let r=i+1;if(typeof t=="object"&&"length"in t){for(let s=0;s<t.length;s+=1)t[s]&&a.prepend(t[s]);r=i+t.length}else a.prepend(t);n.loop&&e.loopCreate(),n.observer&&$t.observer||e.update(),e.slideTo(r,0,!1)}function d1(t,e){const n=this,{$wrapperEl:a,params:i,activeIndex:r}=n;let s=r;i.loop&&(s-=n.loopedSlides,n.loopDestroy(),n.slides=a.children(`.${i.slideClass}`));const l=n.slides.length;if(t<=0){n.prependSlide(e);return}if(t>=l){n.appendSlide(e);return}let c=s>t?s+1:s;const h=[];for(let m=l-1;m>=t;m-=1){const k=n.slides.eq(m);k.remove(),h.unshift(k)}if(typeof e=="object"&&"length"in e){for(let m=0;m<e.length;m+=1)e[m]&&a.append(e[m]);c=s>t?s+e.length:s}else a.append(e);for(let m=0;m<h.length;m+=1)a.append(h[m]);i.loop&&n.loopCreate(),i.observer&&$t.observer||n.update(),i.loop?n.slideTo(c+n.loopedSlides,0,!1):n.slideTo(c,0,!1)}function f1(t){const e=this,{params:n,$wrapperEl:a,activeIndex:i}=e;let r=i;n.loop&&(r-=e.loopedSlides,e.loopDestroy(),e.slides=a.children(`.${n.slideClass}`));let s=r,l;if(typeof t=="object"&&"length"in t){for(let c=0;c<t.length;c+=1)l=t[c],e.slides[l]&&e.slides.eq(l).remove(),l<s&&(s-=1);s=Math.max(s,0)}else l=t,e.slides[l]&&e.slides.eq(l).remove(),l<s&&(s-=1),s=Math.max(s,0);n.loop&&e.loopCreate(),n.observer&&$t.observer||e.update(),n.loop?e.slideTo(s+e.loopedSlides,0,!1):e.slideTo(s,0,!1)}function h1(){const t=this,e=[];for(let n=0;n<t.slides.length;n+=1)e.push(n);t.removeSlide(e)}var p1={appendSlide:u1,prependSlide:c1,addSlide:d1,removeSlide:f1,removeAllSlides:h1};const yn=function(){const e=Mt.navigator.userAgent,n={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:Mt.cordova||Mt.phonegap,phonegap:Mt.cordova||Mt.phonegap},a=e.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),i=e.match(/(Android);?[\s\/]+([\d.]+)?/),r=e.match(/(iPad).*OS\s([\d_]+)/),s=e.match(/(iPod)(.*OS\s([\d_]+))?/),l=!r&&e.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(a&&(n.os="windows",n.osVersion=a[2],n.windows=!0),i&&!a&&(n.os="android",n.osVersion=i[2],n.android=!0,n.androidChrome=e.toLowerCase().indexOf("chrome")>=0),(r||l||s)&&(n.os="ios",n.ios=!0),l&&!s&&(n.osVersion=l[2].replace(/_/g,"."),n.iphone=!0),r&&(n.osVersion=r[2].replace(/_/g,"."),n.ipad=!0),s&&(n.osVersion=s[3]?s[3].replace(/_/g,"."):null,n.iphone=!0),n.ios&&n.osVersion&&e.indexOf("Version/")>=0&&n.osVersion.split(".")[0]==="10"&&(n.osVersion=e.toLowerCase().split("version/")[1].split(" ")[0]),n.desktop=!(n.os||n.android||n.webView),n.webView=(l||r||s)&&e.match(/.*AppleWebKit(?!.*Safari)/i),n.os&&n.os==="ios"){const c=n.osVersion.split("."),h=ne.querySelector('meta[name="viewport"]');n.minimalUi=!n.webView&&(s||l)&&(c[0]*1===7?c[1]*1>=1:c[0]*1>7)&&h&&h.getAttribute("content").indexOf("minimal-ui")>=0}return n.pixelRatio=Mt.devicePixelRatio||1,n}();function g1(t){const e=this,n=e.touchEventsData,{params:a,touches:i}=e;if(e.animating&&a.preventInteractionOnTransition)return;let r=t;if(r.originalEvent&&(r=r.originalEvent),n.isTouchEvent=r.type==="touchstart",!n.isTouchEvent&&"which"in r&&r.which===3||!n.isTouchEvent&&"button"in r&&r.button>0||n.isTouched&&n.isMoved)return;if(a.noSwiping&&kt(r.target).closest(a.noSwipingSelector?a.noSwipingSelector:`.${a.noSwipingClass}`)[0]){e.allowClick=!0;return}if(a.swipeHandler&&!kt(r).closest(a.swipeHandler)[0])return;i.currentX=r.type==="touchstart"?r.targetTouches[0].pageX:r.pageX,i.currentY=r.type==="touchstart"?r.targetTouches[0].pageY:r.pageY;const s=i.currentX,l=i.currentY,c=a.edgeSwipeDetection||a.iOSEdgeSwipeDetection,h=a.edgeSwipeThreshold||a.iOSEdgeSwipeThreshold;if(!(c&&(s<=h||s>=Mt.screen.width-h))){if(yt.extend(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),i.startX=s,i.startY=l,n.touchStartTime=yt.now(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,a.threshold>0&&(n.allowThresholdMove=!1),r.type!=="touchstart"){let m=!0;kt(r.target).is(n.formElements)&&(m=!1),ne.activeElement&&kt(ne.activeElement).is(n.formElements)&&ne.activeElement!==r.target&&ne.activeElement.blur();const k=m&&e.allowTouchMove&&a.touchStartPreventDefault;(a.touchStartForcePreventDefault||k)&&r.preventDefault()}e.emit("touchStart",r)}}function m1(t){const e=this,n=e.touchEventsData,{params:a,touches:i,rtlTranslate:r}=e;let s=t;if(s.originalEvent&&(s=s.originalEvent),!n.isTouched){n.startMoving&&n.isScrolling&&e.emit("touchMoveOpposite",s);return}if(n.isTouchEvent&&s.type==="mousemove")return;const l=s.type==="touchmove"?s.targetTouches[0].pageX:s.pageX,c=s.type==="touchmove"?s.targetTouches[0].pageY:s.pageY;if(s.preventedByNestedSwiper){i.startX=l,i.startY=c;return}if(!e.allowTouchMove){e.allowClick=!1,n.isTouched&&(yt.extend(i,{startX:l,startY:c,currentX:l,currentY:c}),n.touchStartTime=yt.now());return}if(n.isTouchEvent&&a.touchReleaseOnEdges&&!a.loop){if(e.isVertical()){if(c<i.startY&&e.translate<=e.maxTranslate()||c>i.startY&&e.translate>=e.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else if(l<i.startX&&e.translate<=e.maxTranslate()||l>i.startX&&e.translate>=e.minTranslate())return}if(n.isTouchEvent&&ne.activeElement&&s.target===ne.activeElement&&kt(s.target).is(n.formElements)){n.isMoved=!0,e.allowClick=!1;return}if(n.allowTouchCallbacks&&e.emit("touchMove",s),s.targetTouches&&s.targetTouches.length>1)return;i.currentX=l,i.currentY=c;const h=i.currentX-i.startX,m=i.currentY-i.startY;if(e.params.threshold&&Math.sqrt(h**2+m**2)<e.params.threshold)return;if(typeof n.isScrolling>"u"){let E;e.isHorizontal()&&i.currentY===i.startY||e.isVertical()&&i.currentX===i.startX?n.isScrolling=!1:h*h+m*m>=25&&(E=Math.atan2(Math.abs(m),Math.abs(h))*180/Math.PI,n.isScrolling=e.isHorizontal()?E>a.touchAngle:90-E>a.touchAngle)}if(n.isScrolling&&e.emit("touchMoveOpposite",s),typeof n.startMoving>"u"&&(i.currentX!==i.startX||i.currentY!==i.startY)&&(n.startMoving=!0),n.isScrolling){n.isTouched=!1;return}if(!n.startMoving)return;e.allowClick=!1,s.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&s.stopPropagation(),n.isMoved||(a.loop&&e.loopFix(),n.startTranslate=e.getTranslate(),e.setTransition(0),e.animating&&e.$wrapperEl.trigger("webkitTransitionEnd transitionend"),n.allowMomentumBounce=!1,a.grabCursor&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!0),e.emit("sliderFirstMove",s)),e.emit("sliderMove",s),n.isMoved=!0;let k=e.isHorizontal()?h:m;i.diff=k,k*=a.touchRatio,r&&(k=-k),e.swipeDirection=k>0?"prev":"next",n.currentTranslate=k+n.startTranslate;let w=!0,P=a.resistanceRatio;if(a.touchReleaseOnEdges&&(P=0),k>0&&n.currentTranslate>e.minTranslate()?(w=!1,a.resistance&&(n.currentTranslate=e.minTranslate()-1+(-e.minTranslate()+n.startTranslate+k)**P)):k<0&&n.currentTranslate<e.maxTranslate()&&(w=!1,a.resistance&&(n.currentTranslate=e.maxTranslate()+1-(e.maxTranslate()-n.startTranslate-k)**P)),w&&(s.preventedByNestedSwiper=!0),!e.allowSlideNext&&e.swipeDirection==="next"&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!e.allowSlidePrev&&e.swipeDirection==="prev"&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),a.threshold>0)if(Math.abs(k)>a.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,i.startX=i.currentX,i.startY=i.currentY,n.currentTranslate=n.startTranslate,i.diff=e.isHorizontal()?i.currentX-i.startX:i.currentY-i.startY;return}}else{n.currentTranslate=n.startTranslate;return}a.followFinger&&((a.freeMode||a.watchSlidesProgress||a.watchSlidesVisibility)&&(e.updateActiveIndex(),e.updateSlidesClasses()),a.freeMode&&(n.velocities.length===0&&n.velocities.push({position:i[e.isHorizontal()?"startX":"startY"],time:n.touchStartTime}),n.velocities.push({position:i[e.isHorizontal()?"currentX":"currentY"],time:yt.now()})),e.updateProgress(n.currentTranslate),e.setTranslate(n.currentTranslate))}function v1(t){const e=this,n=e.touchEventsData,{params:a,touches:i,rtlTranslate:r,$wrapperEl:s,slidesGrid:l,snapGrid:c}=e;let h=t;if(h.originalEvent&&(h=h.originalEvent),n.allowTouchCallbacks&&e.emit("touchEnd",h),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&a.grabCursor&&e.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}a.grabCursor&&n.isMoved&&n.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const m=yt.now(),k=m-n.touchStartTime;if(e.allowClick&&(e.updateClickedSlide(h),e.emit("tap",h),k<300&&m-n.lastClickTime>300&&(n.clickTimeout&&clearTimeout(n.clickTimeout),n.clickTimeout=yt.nextTick(()=>{!e||e.destroyed||e.emit("click",h)},300)),k<300&&m-n.lastClickTime<300&&(n.clickTimeout&&clearTimeout(n.clickTimeout),e.emit("doubleTap",h))),n.lastClickTime=yt.now(),yt.nextTick(()=>{e.destroyed||(e.allowClick=!0)}),!n.isTouched||!n.isMoved||!e.swipeDirection||i.diff===0||n.currentTranslate===n.startTranslate){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let w;if(a.followFinger?w=r?e.translate:-e.translate:w=-n.currentTranslate,a.freeMode){if(w<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(w>-e.maxTranslate()){e.slides.length<c.length?e.slideTo(c.length-1):e.slideTo(e.slides.length-1);return}if(a.freeModeMomentum){if(n.velocities.length>1){const U=n.velocities.pop(),_=n.velocities.pop(),F=U.position-_.position,gt=U.time-_.time;e.velocity=F/gt,e.velocity/=2,Math.abs(e.velocity)<a.freeModeMinimumVelocity&&(e.velocity=0),(gt>150||yt.now()-U.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=a.freeModeMomentumVelocityRatio,n.velocities.length=0;let A=1e3*a.freeModeMomentumRatio;const x=e.velocity*A;let S=e.translate+x;r&&(S=-S);let N=!1,L;const j=Math.abs(e.velocity)*20*a.freeModeMomentumBounceRatio;let f;if(S<e.maxTranslate())a.freeModeMomentumBounce?(S+e.maxTranslate()<-j&&(S=e.maxTranslate()-j),L=e.maxTranslate(),N=!0,n.allowMomentumBounce=!0):S=e.maxTranslate(),a.loop&&a.centeredSlides&&(f=!0);else if(S>e.minTranslate())a.freeModeMomentumBounce?(S-e.minTranslate()>j&&(S=e.minTranslate()+j),L=e.minTranslate(),N=!0,n.allowMomentumBounce=!0):S=e.minTranslate(),a.loop&&a.centeredSlides&&(f=!0);else if(a.freeModeSticky){let U;for(let _=0;_<c.length;_+=1)if(c[_]>-S){U=_;break}Math.abs(c[U]-S)<Math.abs(c[U-1]-S)||e.swipeDirection==="next"?S=c[U]:S=c[U-1],S=-S}if(f&&e.once("transitionEnd",()=>{e.loopFix()}),e.velocity!==0)r?A=Math.abs((-S-e.translate)/e.velocity):A=Math.abs((S-e.translate)/e.velocity);else if(a.freeModeSticky){e.slideToClosest();return}a.freeModeMomentumBounce&&N?(e.updateProgress(L),e.setTransition(A),e.setTranslate(S),e.transitionStart(!0,e.swipeDirection),e.animating=!0,s.transitionEnd(()=>{!e||e.destroyed||!n.allowMomentumBounce||(e.emit("momentumBounce"),e.setTransition(a.speed),e.setTranslate(L),s.transitionEnd(()=>{!e||e.destroyed||e.transitionEnd()}))})):e.velocity?(e.updateProgress(S),e.setTransition(A),e.setTranslate(S),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,s.transitionEnd(()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(S),e.updateActiveIndex(),e.updateSlidesClasses()}else if(a.freeModeSticky){e.slideToClosest();return}(!a.freeModeMomentum||k>=a.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses());return}let P=0,E=e.slidesSizesGrid[0];for(let A=0;A<l.length;A+=a.slidesPerGroup)typeof l[A+a.slidesPerGroup]<"u"?w>=l[A]&&w<l[A+a.slidesPerGroup]&&(P=A,E=l[A+a.slidesPerGroup]-l[A]):w>=l[A]&&(P=A,E=l[l.length-1]-l[l.length-2]);const z=(w-l[P])/E;if(k>a.longSwipesMs){if(!a.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(z>=a.longSwipesRatio?e.slideTo(P+a.slidesPerGroup):e.slideTo(P)),e.swipeDirection==="prev"&&(z>1-a.longSwipesRatio?e.slideTo(P+a.slidesPerGroup):e.slideTo(P))}else{if(!a.shortSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&e.slideTo(P+a.slidesPerGroup),e.swipeDirection==="prev"&&e.slideTo(P)}}function Iy(){const t=this,{params:e,el:n}=t;if(n&&n.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:a,allowSlidePrev:i,snapGrid:r}=t;if(t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),e.freeMode){const s=Math.min(Math.max(t.translate,t.maxTranslate()),t.minTranslate());t.setTranslate(s),t.updateActiveIndex(),t.updateSlidesClasses(),e.autoHeight&&t.updateAutoHeight()}else t.updateSlidesClasses(),(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0);t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.run(),t.allowSlidePrev=i,t.allowSlideNext=a,t.params.watchOverflow&&r!==t.snapGrid&&t.checkOverflow()}function y1(t){const e=this;e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation()))}function b1(){const t=this,{params:e,touchEvents:n,el:a,wrapperEl:i}=t;t.onTouchStart=g1.bind(t),t.onTouchMove=m1.bind(t),t.onTouchEnd=v1.bind(t),t.onClick=y1.bind(t);const r=e.touchEventsTarget==="container"?a:i,s=!!e.nested;{if(!$t.touch&&($t.pointerEvents||$t.prefixedPointerEvents))r.addEventListener(n.start,t.onTouchStart,!1),ne.addEventListener(n.move,t.onTouchMove,s),ne.addEventListener(n.end,t.onTouchEnd,!1);else{if($t.touch){const l=n.start==="touchstart"&&$t.passiveListener&&e.passiveListeners?{passive:!0,capture:!1}:!1;r.addEventListener(n.start,t.onTouchStart,l),r.addEventListener(n.move,t.onTouchMove,$t.passiveListener?{passive:!1,capture:s}:s),r.addEventListener(n.end,t.onTouchEnd,l)}(e.simulateTouch&&!yn.ios&&!yn.android||e.simulateTouch&&!$t.touch&&yn.ios)&&(r.addEventListener("mousedown",t.onTouchStart,!1),ne.addEventListener("mousemove",t.onTouchMove,s),ne.addEventListener("mouseup",t.onTouchEnd,!1))}(e.preventClicks||e.preventClicksPropagation)&&r.addEventListener("click",t.onClick,!0)}t.on(yn.ios||yn.android?"resize orientationchange observerUpdate":"resize observerUpdate",Iy,!0)}function w1(){const t=this,{params:e,touchEvents:n,el:a,wrapperEl:i}=t,r=e.touchEventsTarget==="container"?a:i,s=!!e.nested;{if(!$t.touch&&($t.pointerEvents||$t.prefixedPointerEvents))r.removeEventListener(n.start,t.onTouchStart,!1),ne.removeEventListener(n.move,t.onTouchMove,s),ne.removeEventListener(n.end,t.onTouchEnd,!1);else{if($t.touch){const l=n.start==="onTouchStart"&&$t.passiveListener&&e.passiveListeners?{passive:!0,capture:!1}:!1;r.removeEventListener(n.start,t.onTouchStart,l),r.removeEventListener(n.move,t.onTouchMove,s),r.removeEventListener(n.end,t.onTouchEnd,l)}(e.simulateTouch&&!yn.ios&&!yn.android||e.simulateTouch&&!$t.touch&&yn.ios)&&(r.removeEventListener("mousedown",t.onTouchStart,!1),ne.removeEventListener("mousemove",t.onTouchMove,s),ne.removeEventListener("mouseup",t.onTouchEnd,!1))}(e.preventClicks||e.preventClicksPropagation)&&r.removeEventListener("click",t.onClick,!0)}t.off(yn.ios||yn.android?"resize orientationchange observerUpdate":"resize observerUpdate",Iy)}var k1={attachEvents:b1,detachEvents:w1};function x1(){const t=this,{activeIndex:e,initialized:n,loopedSlides:a=0,params:i}=t,r=i.breakpoints;if(!r||r&&Object.keys(r).length===0)return;const s=t.getBreakpoint(r);if(s&&t.currentBreakpoint!==s){const l=s in r?r[s]:void 0;l&&["slidesPerView","spaceBetween","slidesPerGroup"].forEach(k=>{const w=l[k];typeof w>"u"||(k==="slidesPerView"&&(w==="AUTO"||w==="auto")?l[k]="auto":k==="slidesPerView"?l[k]=parseFloat(w):l[k]=parseInt(w,10))});const c=l||t.originalParams,h=c.direction&&c.direction!==i.direction,m=i.loop&&(c.slidesPerView!==i.slidesPerView||h);h&&n&&t.changeDirection(),yt.extend(t.params,c),yt.extend(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),t.currentBreakpoint=s,m&&n&&(t.loopDestroy(),t.loopCreate(),t.updateSlides(),t.slideTo(e-a+t.loopedSlides,0,!1)),t.emit("breakpoint",c)}}function S1(t){const e=this;if(!t)return;let n=!1;const a=[];Object.keys(t).forEach(i=>{a.push(i)}),a.sort((i,r)=>parseInt(i,10)-parseInt(r,10));for(let i=0;i<a.length;i+=1){const r=a[i];e.params.breakpointsInverse?r<=Mt.innerWidth&&(n=r):r>=Mt.innerWidth&&!n&&(n=r)}return n||"max"}var C1={setBreakpoint:x1,getBreakpoint:S1};function T1(){const t=this,{classNames:e,params:n,rtl:a,$el:i}=t,r=[];r.push("initialized"),r.push(n.direction),n.freeMode&&r.push("free-mode"),$t.flexbox||r.push("no-flexbox"),n.autoHeight&&r.push("autoheight"),a&&r.push("rtl"),n.slidesPerColumn>1&&r.push("multirow"),yn.android&&r.push("android"),yn.ios&&r.push("ios"),($a.isIE||$a.isEdge)&&($t.pointerEvents||$t.prefixedPointerEvents)&&r.push(`wp8-${n.direction}`),r.forEach(s=>{e.push(n.containerModifierClass+s)}),i.addClass(e.join(" "))}function E1(){const t=this,{$el:e,classNames:n}=t;e.removeClass(n.join(" "))}var P1={addClasses:T1,removeClasses:E1};function M1(t,e,n,a,i,r){let s;function l(){r&&r()}(!t.complete||!i)&&e?(s=new Mt.Image,s.onload=l,s.onerror=l,a&&(s.sizes=a),n&&(s.srcset=n),e&&(s.src=e)):l()}function A1(){const t=this;t.imagesToLoad=t.$el.find("img");function e(){typeof t>"u"||t===null||!t||t.destroyed||(t.imagesLoaded!==void 0&&(t.imagesLoaded+=1),t.imagesLoaded===t.imagesToLoad.length&&(t.params.updateOnImagesReady&&t.update(),t.emit("imagesReady")))}for(let n=0;n<t.imagesToLoad.length;n+=1){const a=t.imagesToLoad[n];t.loadImage(a,a.currentSrc||a.getAttribute("src"),a.srcset||a.getAttribute("srcset"),a.sizes||a.getAttribute("sizes"),!0,e)}}var N1={loadImage:M1,preloadImages:A1};function L1(){const t=this,e=t.isLocked;t.isLocked=t.snapGrid.length===1,t.allowSlideNext=!t.isLocked,t.allowSlidePrev=!t.isLocked,e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock"),e&&e!==t.isLocked&&(t.isEnd=!1,t.navigation.update())}var z1={checkOverflow:L1},Xg={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsInverse:!1,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!0,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0};const Hc={update:OS,translate:FS,transition:GS,slide:e1,loop:r1,grabCursor:l1,manipulation:p1,events:k1,breakpoints:C1,checkOverflow:z1,classes:P1,images:N1},Fc={};class En extends Yg{constructor(...e){let n,a;e.length===1&&e[0].constructor&&e[0].constructor===Object?a=e[0]:[n,a]=e,a||(a={}),a=yt.extend({},a),n&&!a.el&&(a.el=n),super(a),Object.keys(Hc).forEach(c=>{Object.keys(Hc[c]).forEach(h=>{En.prototype[h]||(En.prototype[h]=Hc[c][h])})});const i=this;typeof i.modules>"u"&&(i.modules={}),Object.keys(i.modules).forEach(c=>{const h=i.modules[c];if(h.params){const m=Object.keys(h.params)[0],k=h.params[m];if(typeof k!="object"||k===null||!(m in a&&"enabled"in k))return;a[m]===!0&&(a[m]={enabled:!0}),typeof a[m]=="object"&&!("enabled"in a[m])&&(a[m].enabled=!0),a[m]||(a[m]={enabled:!1})}});const r=yt.extend({},Xg);i.useModulesParams(r),i.params=yt.extend({},r,Fc,a),i.originalParams=yt.extend({},i.params),i.passedParams=yt.extend({},a),i.$=kt;const s=kt(i.params.el);if(n=s[0],!n)return;if(s.length>1){const c=[];return s.each((h,m)=>{const k=yt.extend({},a,{el:m});c.push(new En(k))}),c}n.swiper=i,s.data("swiper",i);const l=s.children(`.${i.params.wrapperClass}`);return yt.extend(i,{$el:s,el:n,$wrapperEl:l,wrapperEl:l[0],classNames:[],slides:kt(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return i.params.direction==="horizontal"},isVertical(){return i.params.direction==="vertical"},rtl:n.dir.toLowerCase()==="rtl"||s.css("direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(n.dir.toLowerCase()==="rtl"||s.css("direction")==="rtl"),wrongRTL:l.css("display")==="-webkit-box",activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev,touchEvents:function(){const h=["touchstart","touchmove","touchend"];let m=["mousedown","mousemove","mouseup"];return $t.pointerEvents?m=["pointerdown","pointermove","pointerup"]:$t.prefixedPointerEvents&&(m=["MSPointerDown","MSPointerMove","MSPointerUp"]),i.touchEventsTouch={start:h[0],move:h[1],end:h[2]},i.touchEventsDesktop={start:m[0],move:m[1],end:m[2]},$t.touch||!i.params.simulateTouch?i.touchEventsTouch:i.touchEventsDesktop}(),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,formElements:"input, select, option, textarea, button, video",lastClickTime:yt.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.useModules(),i.params.init&&i.init(),i}slidesPerViewDynamic(){const e=this,{params:n,slides:a,slidesGrid:i,size:r,activeIndex:s}=e;let l=1;if(n.centeredSlides){let c=a[s].swiperSlideSize,h;for(let m=s+1;m<a.length;m+=1)a[m]&&!h&&(c+=a[m].swiperSlideSize,l+=1,c>r&&(h=!0));for(let m=s-1;m>=0;m-=1)a[m]&&!h&&(c+=a[m].swiperSlideSize,l+=1,c>r&&(h=!0))}else for(let c=s+1;c<a.length;c+=1)i[c]-i[s]<r&&(l+=1);return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:n,params:a}=e;a.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function i(){const s=e.rtlTranslate?e.translate*-1:e.translate,l=Math.min(Math.max(s,e.maxTranslate()),e.minTranslate());e.setTranslate(l),e.updateActiveIndex(),e.updateSlidesClasses()}let r;e.params.freeMode?(i(),e.params.autoHeight&&e.updateAutoHeight()):((e.params.slidesPerView==="auto"||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?r=e.slideTo(e.slides.length-1,0,!1,!0):r=e.slideTo(e.activeIndex,0,!1,!0),r||i()),a.watchOverflow&&n!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,n=!0){const a=this,i=a.params.direction;return e||(e=i==="horizontal"?"vertical":"horizontal"),e===i||e!=="horizontal"&&e!=="vertical"||(a.$el.removeClass(`${a.params.containerModifierClass}${i} wp8-${i}`).addClass(`${a.params.containerModifierClass}${e}`),($a.isIE||$a.isEdge)&&($t.pointerEvents||$t.prefixedPointerEvents)&&a.$el.addClass(`${a.params.containerModifierClass}wp8-${e}`),a.params.direction=e,a.slides.each((r,s)=>{e==="vertical"?s.style.width="":s.style.height=""}),a.emit("changeDirection"),n&&a.update()),a}init(){const e=this;e.initialized||(e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.params.loop&&e.loopCreate(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.setGrabCursor(),e.params.preloadImages&&e.preloadImages(),e.params.loop?e.slideTo(e.params.initialSlide+e.loopedSlides,0,e.params.runCallbacksOnInit):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit),e.attachEvents(),e.initialized=!0,e.emit("init"))}destroy(e=!0,n=!0){const a=this,{params:i,$el:r,$wrapperEl:s,slides:l}=a;return typeof a.params>"u"||a.destroyed||(a.emit("beforeDestroy"),a.initialized=!1,a.detachEvents(),i.loop&&a.loopDestroy(),n&&(a.removeClasses(),r.removeAttr("style"),s.removeAttr("style"),l&&l.length&&l.removeClass([i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")),a.emit("destroy"),Object.keys(a.eventsListeners).forEach(c=>{a.off(c)}),e!==!1&&(a.$el[0].swiper=null,a.$el.data("swiper",null),yt.deleteProps(a)),a.destroyed=!0),null}static extendDefaults(e){yt.extend(Fc,e)}static get extendedDefaults(){return Fc}static get defaults(){return Xg}static get Class(){return Yg}static get $(){return kt}}var B1={name:"device",proto:{device:yn},static:{device:yn}},I1={name:"support",proto:{support:$t},static:{support:$t}},D1={name:"browser",proto:{browser:$a},static:{browser:$a}},j1={name:"resize",create(){const t=this;yt.extend(t,{resize:{resizeHandler(){!t||t.destroyed||!t.initialized||(t.emit("beforeResize"),t.emit("resize"))},orientationChangeHandler(){!t||t.destroyed||!t.initialized||t.emit("orientationchange")}}})},on:{init(){const t=this;Mt.addEventListener("resize",t.resize.resizeHandler),Mt.addEventListener("orientationchange",t.resize.orientationChangeHandler)},destroy(){const t=this;Mt.removeEventListener("resize",t.resize.resizeHandler),Mt.removeEventListener("orientationchange",t.resize.orientationChangeHandler)}}};const wl={func:Mt.MutationObserver||Mt.WebkitMutationObserver,attach(t,e={}){const n=this,a=wl.func,i=new a(r=>{if(r.length===1){n.emit("observerUpdate",r[0]);return}const s=function(){n.emit("observerUpdate",r[0])};Mt.requestAnimationFrame?Mt.requestAnimationFrame(s):Mt.setTimeout(s,0)});i.observe(t,{attributes:typeof e.attributes>"u"?!0:e.attributes,childList:typeof e.childList>"u"?!0:e.childList,characterData:typeof e.characterData>"u"?!0:e.characterData}),n.observer.observers.push(i)},init(){const t=this;if(!(!$t.observer||!t.params.observer)){if(t.params.observeParents){const e=t.$el.parents();for(let n=0;n<e.length;n+=1)t.observer.attach(e[n])}t.observer.attach(t.$el[0],{childList:t.params.observeSlideChildren}),t.observer.attach(t.$wrapperEl[0],{attributes:!1})}},destroy(){const t=this;t.observer.observers.forEach(e=>{e.disconnect()}),t.observer.observers=[]}};var R1={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create(){const t=this;yt.extend(t,{observer:{init:wl.init.bind(t),attach:wl.attach.bind(t),destroy:wl.destroy.bind(t),observers:[]}})},on:{init(){this.observer.init()},destroy(){this.observer.destroy()}}};const kr={update(t){const e=this,{slidesPerView:n,slidesPerGroup:a,centeredSlides:i}=e.params,{addSlidesBefore:r,addSlidesAfter:s}=e.params.virtual,{from:l,to:c,slides:h,slidesGrid:m,renderSlide:k,offset:w}=e.virtual;e.updateActiveIndex();const P=e.activeIndex||0;let E;e.rtlTranslate?E="right":E=e.isHorizontal()?"left":"top";let z,A;i?(z=Math.floor(n/2)+a+r,A=Math.floor(n/2)+a+s):(z=n+(a-1)+r,A=a+s);const x=Math.max((P||0)-A,0),S=Math.min((P||0)+z,h.length-1),N=(e.slidesGrid[x]||0)-(e.slidesGrid[0]||0);yt.extend(e.virtual,{from:x,to:S,offset:N,slidesGrid:e.slidesGrid});function L(){e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.lazy&&e.params.lazy.enabled&&e.lazy.load()}if(l===x&&c===S&&!t){e.slidesGrid!==m&&N!==w&&e.slides.css(E,`${N}px`),e.updateProgress();return}if(e.params.virtual.renderExternal){e.params.virtual.renderExternal.call(e,{offset:N,from:x,to:S,slides:function(){const _=[];for(let F=x;F<=S;F+=1)_.push(h[F]);return _}()}),L();return}const j=[],f=[];if(t)e.$wrapperEl.find(`.${e.params.slideClass}`).remove();else for(let U=l;U<=c;U+=1)(U<x||U>S)&&e.$wrapperEl.find(`.${e.params.slideClass}[data-swiper-slide-index="${U}"]`).remove();for(let U=0;U<h.length;U+=1)U>=x&&U<=S&&(typeof c>"u"||t?f.push(U):(U>c&&f.push(U),U<l&&j.push(U)));f.forEach(U=>{e.$wrapperEl.append(k(h[U],U))}),j.sort((U,_)=>_-U).forEach(U=>{e.$wrapperEl.prepend(k(h[U],U))}),e.$wrapperEl.children(".swiper-slide").css(E,`${N}px`),L()},renderSlide(t,e){const n=this,a=n.params.virtual;if(a.cache&&n.virtual.cache[e])return n.virtual.cache[e];const i=a.renderSlide?kt(a.renderSlide.call(n,t,e)):kt(`<div class="${n.params.slideClass}" data-swiper-slide-index="${e}">${t}</div>`);return i.attr("data-swiper-slide-index")||i.attr("data-swiper-slide-index",e),a.cache&&(n.virtual.cache[e]=i),i},appendSlide(t){const e=this;if(typeof t=="object"&&"length"in t)for(let n=0;n<t.length;n+=1)t[n]&&e.virtual.slides.push(t[n]);else e.virtual.slides.push(t);e.virtual.update(!0)},prependSlide(t){const e=this,n=e.activeIndex;let a=n+1,i=1;if(Array.isArray(t)){for(let r=0;r<t.length;r+=1)t[r]&&e.virtual.slides.unshift(t[r]);a=n+t.length,i=t.length}else e.virtual.slides.unshift(t);if(e.params.virtual.cache){const r=e.virtual.cache,s={};Object.keys(r).forEach(l=>{s[parseInt(l,10)+i]=r[l]}),e.virtual.cache=s}e.virtual.update(!0),e.slideTo(a,0)},removeSlide(t){const e=this;if(typeof t>"u"||t===null)return;let n=e.activeIndex;if(Array.isArray(t))for(let a=t.length-1;a>=0;a-=1)e.virtual.slides.splice(t[a],1),e.params.virtual.cache&&delete e.virtual.cache[t[a]],t[a]<n&&(n-=1),n=Math.max(n,0);else e.virtual.slides.splice(t,1),e.params.virtual.cache&&delete e.virtual.cache[t],t<n&&(n-=1),n=Math.max(n,0);e.virtual.update(!0),e.slideTo(n,0)},removeAllSlides(){const t=this;t.virtual.slides=[],t.params.virtual.cache&&(t.virtual.cache={}),t.virtual.update(!0),t.slideTo(0,0)}};var O1={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create(){const t=this;yt.extend(t,{virtual:{update:kr.update.bind(t),appendSlide:kr.appendSlide.bind(t),prependSlide:kr.prependSlide.bind(t),removeSlide:kr.removeSlide.bind(t),removeAllSlides:kr.removeAllSlides.bind(t),renderSlide:kr.renderSlide.bind(t),slides:t.params.virtual.slides,cache:{}}})},on:{beforeInit(){const t=this;if(!t.params.virtual.enabled)return;t.classNames.push(`${t.params.containerModifierClass}virtual`);const e={watchSlidesProgress:!0};yt.extend(t.params,e),yt.extend(t.originalParams,e),t.params.initialSlide||t.virtual.update()},setTranslate(){const t=this;t.params.virtual.enabled&&t.virtual.update()}}};const Wc={handle(t){const e=this,{rtlTranslate:n}=e;let a=t;a.originalEvent&&(a=a.originalEvent);const i=a.keyCode||a.charCode;if(!e.allowSlideNext&&(e.isHorizontal()&&i===39||e.isVertical()&&i===40||i===34)||!e.allowSlidePrev&&(e.isHorizontal()&&i===37||e.isVertical()&&i===38||i===33))return!1;if(!(a.shiftKey||a.altKey||a.ctrlKey||a.metaKey)&&!(ne.activeElement&&ne.activeElement.nodeName&&(ne.activeElement.nodeName.toLowerCase()==="input"||ne.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(i===33||i===34||i===37||i===39||i===38||i===40)){let r=!1;if(e.$el.parents(`.${e.params.slideClass}`).length>0&&e.$el.parents(`.${e.params.slideActiveClass}`).length===0)return;const s=Mt.innerWidth,l=Mt.innerHeight,c=e.$el.offset();n&&(c.left-=e.$el[0].scrollLeft);const h=[[c.left,c.top],[c.left+e.width,c.top],[c.left,c.top+e.height],[c.left+e.width,c.top+e.height]];for(let m=0;m<h.length;m+=1){const k=h[m];k[0]>=0&&k[0]<=s&&k[1]>=0&&k[1]<=l&&(r=!0)}if(!r)return}e.isHorizontal()?((i===33||i===34||i===37||i===39)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),((i===34||i===39)&&!n||(i===33||i===37)&&n)&&e.slideNext(),((i===33||i===37)&&!n||(i===34||i===39)&&n)&&e.slidePrev()):((i===33||i===34||i===38||i===40)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),(i===34||i===40)&&e.slideNext(),(i===33||i===38)&&e.slidePrev()),e.emit("keyPress",i)}},enable(){const t=this;t.keyboard.enabled||(kt(ne).on("keydown",t.keyboard.handle),t.keyboard.enabled=!0)},disable(){const t=this;t.keyboard.enabled&&(kt(ne).off("keydown",t.keyboard.handle),t.keyboard.enabled=!1)}};var K1={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create(){const t=this;yt.extend(t,{keyboard:{enabled:!1,enable:Wc.enable.bind(t),disable:Wc.disable.bind(t),handle:Wc.handle.bind(t)}})},on:{init(){const t=this;t.params.keyboard.enabled&&t.keyboard.enable()},destroy(){const t=this;t.keyboard.enabled&&t.keyboard.disable()}}};function $1(){const t="onwheel";let e=t in ne;if(!e){const n=ne.createElement("div");n.setAttribute(t,"return;"),e=typeof n[t]=="function"}return!e&&ne.implementation&&ne.implementation.hasFeature&&ne.implementation.hasFeature("","")!==!0&&(e=ne.implementation.hasFeature("Events.wheel","3.0")),e}const Na={lastScrollTime:yt.now(),event:function(){return Mt.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":$1()?"wheel":"mousewheel"}(),normalize(t){let i=0,r=0,s=0,l=0;return"detail"in t&&(r=t.detail),"wheelDelta"in t&&(r=-t.wheelDelta/120),"wheelDeltaY"in t&&(r=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(i=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(i=r,r=0),s=i*10,l=r*10,"deltaY"in t&&(l=t.deltaY),"deltaX"in t&&(s=t.deltaX),(s||l)&&t.deltaMode&&(t.deltaMode===1?(s*=40,l*=40):(s*=800,l*=800)),s&&!i&&(i=s<1?-1:1),l&&!r&&(r=l<1?-1:1),{spinX:i,spinY:r,pixelX:s,pixelY:l}},handleMouseEnter(){const t=this;t.mouseEntered=!0},handleMouseLeave(){const t=this;t.mouseEntered=!1},handle(t){let e=t;const n=this,a=n.params.mousewheel;if(!n.mouseEntered&&!a.releaseOnEdges)return!0;e.originalEvent&&(e=e.originalEvent);let i=0;const r=n.rtlTranslate?-1:1,s=Na.normalize(e);if(a.forceToAxis)if(n.isHorizontal())if(Math.abs(s.pixelX)>Math.abs(s.pixelY))i=s.pixelX*r;else return!0;else if(Math.abs(s.pixelY)>Math.abs(s.pixelX))i=s.pixelY;else return!0;else i=Math.abs(s.pixelX)>Math.abs(s.pixelY)?-s.pixelX*r:-s.pixelY;if(i===0)return!0;if(a.invert&&(i=-i),n.params.freeMode){n.params.loop&&n.loopFix();let l=n.getTranslate()+i*a.sensitivity;const c=n.isBeginning,h=n.isEnd;if(l>=n.minTranslate()&&(l=n.minTranslate()),l<=n.maxTranslate()&&(l=n.maxTranslate()),n.setTransition(0),n.setTranslate(l),n.updateProgress(),n.updateActiveIndex(),n.updateSlidesClasses(),(!c&&n.isBeginning||!h&&n.isEnd)&&n.updateSlidesClasses(),n.params.freeModeSticky&&(clearTimeout(n.mousewheel.timeout),n.mousewheel.timeout=yt.nextTick(()=>{n.slideToClosest()},300)),n.emit("scroll",e),n.params.autoplay&&n.params.autoplayDisableOnInteraction&&n.autoplay.stop(),l===n.minTranslate()||l===n.maxTranslate())return!0}else{if(yt.now()-n.mousewheel.lastScrollTime>60){if(i<0){if((!n.isEnd||n.params.loop)&&!n.animating)n.slideNext(),n.emit("scroll",e);else if(a.releaseOnEdges)return!0}else if((!n.isBeginning||n.params.loop)&&!n.animating)n.slidePrev(),n.emit("scroll",e);else if(a.releaseOnEdges)return!0}n.mousewheel.lastScrollTime=new Mt.Date().getTime()}return e.preventDefault?e.preventDefault():e.returnValue=!1,!1},enable(){const t=this;if(!Na.event||t.mousewheel.enabled)return!1;let e=t.$el;return t.params.mousewheel.eventsTarged!=="container"&&(e=kt(t.params.mousewheel.eventsTarged)),e.on("mouseenter",t.mousewheel.handleMouseEnter),e.on("mouseleave",t.mousewheel.handleMouseLeave),e.on(Na.event,t.mousewheel.handle),t.mousewheel.enabled=!0,!0},disable(){const t=this;if(!Na.event||!t.mousewheel.enabled)return!1;let e=t.$el;return t.params.mousewheel.eventsTarged!=="container"&&(e=kt(t.params.mousewheel.eventsTarged)),e.off(Na.event,t.mousewheel.handle),t.mousewheel.enabled=!1,!0}};var q1={name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create(){const t=this;yt.extend(t,{mousewheel:{enabled:!1,enable:Na.enable.bind(t),disable:Na.disable.bind(t),handle:Na.handle.bind(t),handleMouseEnter:Na.handleMouseEnter.bind(t),handleMouseLeave:Na.handleMouseLeave.bind(t),lastScrollTime:yt.now()}})},on:{init(){const t=this;t.params.mousewheel.enabled&&t.mousewheel.enable()},destroy(){const t=this;t.mousewheel.enabled&&t.mousewheel.disable()}}};const xo={update(){const t=this,e=t.params.navigation;if(t.params.loop)return;const{$nextEl:n,$prevEl:a}=t.navigation;a&&a.length>0&&(t.isBeginning?a.addClass(e.disabledClass):a.removeClass(e.disabledClass),a[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](e.lockClass)),n&&n.length>0&&(t.isEnd?n.addClass(e.disabledClass):n.removeClass(e.disabledClass),n[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](e.lockClass))},onPrevClick(t){const e=this;t.preventDefault(),!(e.isBeginning&&!e.params.loop)&&e.slidePrev()},onNextClick(t){const e=this;t.preventDefault(),!(e.isEnd&&!e.params.loop)&&e.slideNext()},init(){const t=this,e=t.params.navigation;if(!(e.nextEl||e.prevEl))return;let n,a;e.nextEl&&(n=kt(e.nextEl),t.params.uniqueNavElements&&typeof e.nextEl=="string"&&n.length>1&&t.$el.find(e.nextEl).length===1&&(n=t.$el.find(e.nextEl))),e.prevEl&&(a=kt(e.prevEl),t.params.uniqueNavElements&&typeof e.prevEl=="string"&&a.length>1&&t.$el.find(e.prevEl).length===1&&(a=t.$el.find(e.prevEl))),n&&n.length>0&&n.on("click",t.navigation.onNextClick),a&&a.length>0&&a.on("click",t.navigation.onPrevClick),yt.extend(t.navigation,{$nextEl:n,nextEl:n&&n[0],$prevEl:a,prevEl:a&&a[0]})},destroy(){const t=this,{$nextEl:e,$prevEl:n}=t.navigation;e&&e.length&&(e.off("click",t.navigation.onNextClick),e.removeClass(t.params.navigation.disabledClass)),n&&n.length&&(n.off("click",t.navigation.onPrevClick),n.removeClass(t.params.navigation.disabledClass))}};var H1={name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create(){const t=this;yt.extend(t,{navigation:{init:xo.init.bind(t),update:xo.update.bind(t),destroy:xo.destroy.bind(t),onNextClick:xo.onNextClick.bind(t),onPrevClick:xo.onPrevClick.bind(t)}})},on:{init(){const t=this;t.navigation.init(),t.navigation.update()},toEdge(){this.navigation.update()},fromEdge(){this.navigation.update()},destroy(){this.navigation.destroy()},click(t){const e=this,{$nextEl:n,$prevEl:a}=e.navigation;if(e.params.navigation.hideOnClick&&!kt(t.target).is(a)&&!kt(t.target).is(n)){let i;n?i=n.hasClass(e.params.navigation.hiddenClass):a&&(i=a.hasClass(e.params.navigation.hiddenClass)),i===!0?e.emit("navigationShow",e):e.emit("navigationHide",e),n&&n.toggleClass(e.params.navigation.hiddenClass),a&&a.toggleClass(e.params.navigation.hiddenClass)}}}};const Qs={update(){const t=this,e=t.rtl,n=t.params.pagination;if(!n.el||!t.pagination.el||!t.pagination.$el||t.pagination.$el.length===0)return;const a=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,i=t.pagination.$el;let r;const s=t.params.loop?Math.ceil((a-t.loopedSlides*2)/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(r=Math.ceil((t.activeIndex-t.loopedSlides)/t.params.slidesPerGroup),r>a-1-t.loopedSlides*2&&(r-=a-t.loopedSlides*2),r>s-1&&(r-=s),r<0&&t.params.paginationType!=="bullets"&&(r=s+r)):typeof t.snapIndex<"u"?r=t.snapIndex:r=t.activeIndex||0,n.type==="bullets"&&t.pagination.bullets&&t.pagination.bullets.length>0){const l=t.pagination.bullets;let c,h,m;if(n.dynamicBullets&&(t.pagination.bulletSize=l.eq(0)[t.isHorizontal()?"outerWidth":"outerHeight"](!0),i.css(t.isHorizontal()?"width":"height",`${t.pagination.bulletSize*(n.dynamicMainBullets+4)}px`),n.dynamicMainBullets>1&&t.previousIndex!==void 0&&(t.pagination.dynamicBulletIndex+=r-t.previousIndex,t.pagination.dynamicBulletIndex>n.dynamicMainBullets-1?t.pagination.dynamicBulletIndex=n.dynamicMainBullets-1:t.pagination.dynamicBulletIndex<0&&(t.pagination.dynamicBulletIndex=0)),c=r-t.pagination.dynamicBulletIndex,h=c+(Math.min(l.length,n.dynamicMainBullets)-1),m=(h+c)/2),l.removeClass(`${n.bulletActiveClass} ${n.bulletActiveClass}-next ${n.bulletActiveClass}-next-next ${n.bulletActiveClass}-prev ${n.bulletActiveClass}-prev-prev ${n.bulletActiveClass}-main`),i.length>1)l.each((k,w)=>{const P=kt(w),E=P.index();E===r&&P.addClass(n.bulletActiveClass),n.dynamicBullets&&(E>=c&&E<=h&&P.addClass(`${n.bulletActiveClass}-main`),E===c&&P.prev().addClass(`${n.bulletActiveClass}-prev`).prev().addClass(`${n.bulletActiveClass}-prev-prev`),E===h&&P.next().addClass(`${n.bulletActiveClass}-next`).next().addClass(`${n.bulletActiveClass}-next-next`))});else if(l.eq(r).addClass(n.bulletActiveClass),n.dynamicBullets){const w=l.eq(c),P=l.eq(h);for(let E=c;E<=h;E+=1)l.eq(E).addClass(`${n.bulletActiveClass}-main`);w.prev().addClass(`${n.bulletActiveClass}-prev`).prev().addClass(`${n.bulletActiveClass}-prev-prev`),P.next().addClass(`${n.bulletActiveClass}-next`).next().addClass(`${n.bulletActiveClass}-next-next`)}if(n.dynamicBullets){const k=Math.min(l.length,n.dynamicMainBullets+4),w=(t.pagination.bulletSize*k-t.pagination.bulletSize)/2-m*t.pagination.bulletSize,P=e?"right":"left";l.css(t.isHorizontal()?P:"top",`${w}px`)}}if(n.type==="fraction"&&(i.find(`.${n.currentClass}`).text(n.formatFractionCurrent(r+1)),i.find(`.${n.totalClass}`).text(n.formatFractionTotal(s))),n.type==="progressbar"){let l;n.progressbarOpposite?l=t.isHorizontal()?"vertical":"horizontal":l=t.isHorizontal()?"horizontal":"vertical";const c=(r+1)/s;let h=1,m=1;l==="horizontal"?h=c:m=c,i.find(`.${n.progressbarFillClass}`).transform(`translate3d(0,0,0) scaleX(${h}) scaleY(${m})`).transition(t.params.speed)}n.type==="custom"&&n.renderCustom?(i.html(n.renderCustom(t,r+1,s)),t.emit("paginationRender",t,i[0])):t.emit("paginationUpdate",t,i[0]),i[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](n.lockClass)},render(){const t=this,e=t.params.pagination;if(!e.el||!t.pagination.el||!t.pagination.$el||t.pagination.$el.length===0)return;const n=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,a=t.pagination.$el;let i="";if(e.type==="bullets"){const r=t.params.loop?Math.ceil((n-t.loopedSlides*2)/t.params.slidesPerGroup):t.snapGrid.length;for(let s=0;s<r;s+=1)e.renderBullet?i+=e.renderBullet.call(t,s,e.bulletClass):i+=`<${e.bulletElement} class="${e.bulletClass}"></${e.bulletElement}>`;a.html(i),t.pagination.bullets=a.find(`.${e.bulletClass}`)}e.type==="fraction"&&(e.renderFraction?i=e.renderFraction.call(t,e.currentClass,e.totalClass):i=`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`,a.html(i)),e.type==="progressbar"&&(e.renderProgressbar?i=e.renderProgressbar.call(t,e.progressbarFillClass):i=`<span class="${e.progressbarFillClass}"></span>`,a.html(i)),e.type!=="custom"&&t.emit("paginationRender",t.pagination.$el[0])},init(){const t=this,e=t.params.pagination;if(!e.el)return;let n=kt(e.el);n.length!==0&&(t.params.uniqueNavElements&&typeof e.el=="string"&&n.length>1&&t.$el.find(e.el).length===1&&(n=t.$el.find(e.el)),e.type==="bullets"&&e.clickable&&n.addClass(e.clickableClass),n.addClass(e.modifierClass+e.type),e.type==="bullets"&&e.dynamicBullets&&(n.addClass(`${e.modifierClass}${e.type}-dynamic`),t.pagination.dynamicBulletIndex=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),e.type==="progressbar"&&e.progressbarOpposite&&n.addClass(e.progressbarOppositeClass),e.clickable&&n.on("click",`.${e.bulletClass}`,function(i){i.preventDefault();let r=kt(this).index()*t.params.slidesPerGroup;t.params.loop&&(r+=t.loopedSlides),t.slideTo(r)}),yt.extend(t.pagination,{$el:n,el:n[0]}))},destroy(){const t=this,e=t.params.pagination;if(!e.el||!t.pagination.el||!t.pagination.$el||t.pagination.$el.length===0)return;const n=t.pagination.$el;n.removeClass(e.hiddenClass),n.removeClass(e.modifierClass+e.type),t.pagination.bullets&&t.pagination.bullets.removeClass(e.bulletActiveClass),e.clickable&&n.off("click",`.${e.bulletClass}`)}};var F1={name:"pagination",params:{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:t=>t,formatFractionTotal:t=>t,bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create(){const t=this;yt.extend(t,{pagination:{init:Qs.init.bind(t),render:Qs.render.bind(t),update:Qs.update.bind(t),destroy:Qs.destroy.bind(t),dynamicBulletIndex:0}})},on:{init(){const t=this;t.pagination.init(),t.pagination.render(),t.pagination.update()},activeIndexChange(){const t=this;(t.params.loop||typeof t.snapIndex>"u")&&t.pagination.update()},snapIndexChange(){const t=this;t.params.loop||t.pagination.update()},slidesLengthChange(){const t=this;t.params.loop&&(t.pagination.render(),t.pagination.update())},snapGridLengthChange(){const t=this;t.params.loop||(t.pagination.render(),t.pagination.update())},destroy(){this.pagination.destroy()},click(t){const e=this;e.params.pagination.el&&e.params.pagination.hideOnClick&&e.pagination.$el.length>0&&!kt(t.target).hasClass(e.params.pagination.bulletClass)&&(e.pagination.$el.hasClass(e.params.pagination.hiddenClass)===!0?e.emit("paginationShow",e):e.emit("paginationHide",e),e.pagination.$el.toggleClass(e.params.pagination.hiddenClass))}}};const Jn={setTranslate(){const t=this;if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e,rtlTranslate:n,progress:a}=t,{dragSize:i,trackSize:r,$dragEl:s,$el:l}=e,c=t.params.scrollbar;let h=i,m=(r-i)*a;n?(m=-m,m>0?(h=i-m,m=0):-m+i>r&&(h=r+m)):m<0?(h=i+m,m=0):m+i>r&&(h=r-m),t.isHorizontal()?($t.transforms3d?s.transform(`translate3d(${m}px, 0, 0)`):s.transform(`translateX(${m}px)`),s[0].style.width=`${h}px`):($t.transforms3d?s.transform(`translate3d(0px, ${m}px, 0)`):s.transform(`translateY(${m}px)`),s[0].style.height=`${h}px`),c.hide&&(clearTimeout(t.scrollbar.timeout),l[0].style.opacity=1,t.scrollbar.timeout=setTimeout(()=>{l[0].style.opacity=0,l.transition(400)},1e3))},setTransition(t){const e=this;!e.params.scrollbar.el||!e.scrollbar.el||e.scrollbar.$dragEl.transition(t)},updateSize(){const t=this;if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e}=t,{$dragEl:n,$el:a}=e;n[0].style.width="",n[0].style.height="";const i=t.isHorizontal()?a[0].offsetWidth:a[0].offsetHeight,r=t.size/t.virtualSize,s=r*(i/t.size);let l;t.params.scrollbar.dragSize==="auto"?l=i*r:l=parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?n[0].style.width=`${l}px`:n[0].style.height=`${l}px`,r>=1?a[0].style.display="none":a[0].style.display="",t.params.scrollbar.hide&&(a[0].style.opacity=0),yt.extend(e,{trackSize:i,divider:r,moveDivider:s,dragSize:l}),e.$el[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](t.params.scrollbar.lockClass)},getPointerPosition(t){return this.isHorizontal()?t.type==="touchstart"||t.type==="touchmove"?t.targetTouches[0].pageX:t.pageX||t.clientX:t.type==="touchstart"||t.type==="touchmove"?t.targetTouches[0].pageY:t.pageY||t.clientY},setDragPosition(t){const e=this,{scrollbar:n,rtlTranslate:a}=e,{$el:i,dragSize:r,trackSize:s,dragStartPos:l}=n;let c;c=(n.getPointerPosition(t)-i.offset()[e.isHorizontal()?"left":"top"]-(l!==null?l:r/2))/(s-r),c=Math.max(Math.min(c,1),0),a&&(c=1-c);const h=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*c;e.updateProgress(h),e.setTranslate(h),e.updateActiveIndex(),e.updateSlidesClasses()},onDragStart(t){const e=this,n=e.params.scrollbar,{scrollbar:a,$wrapperEl:i}=e,{$el:r,$dragEl:s}=a;e.scrollbar.isTouched=!0,e.scrollbar.dragStartPos=t.target===s[0]||t.target===s?a.getPointerPosition(t)-t.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,t.preventDefault(),t.stopPropagation(),i.transition(100),s.transition(100),a.setDragPosition(t),clearTimeout(e.scrollbar.dragTimeout),r.transition(0),n.hide&&r.css("opacity",1),e.emit("scrollbarDragStart",t)},onDragMove(t){const e=this,{scrollbar:n,$wrapperEl:a}=e,{$el:i,$dragEl:r}=n;e.scrollbar.isTouched&&(t.preventDefault?t.preventDefault():t.returnValue=!1,n.setDragPosition(t),a.transition(0),i.transition(0),r.transition(0),e.emit("scrollbarDragMove",t))},onDragEnd(t){const e=this,n=e.params.scrollbar,{scrollbar:a}=e,{$el:i}=a;e.scrollbar.isTouched&&(e.scrollbar.isTouched=!1,n.hide&&(clearTimeout(e.scrollbar.dragTimeout),e.scrollbar.dragTimeout=yt.nextTick(()=>{i.css("opacity",0),i.transition(400)},1e3)),e.emit("scrollbarDragEnd",t),n.snapOnRelease&&e.slideToClosest())},enableDraggable(){const t=this;if(!t.params.scrollbar.el)return;const{scrollbar:e,touchEventsTouch:n,touchEventsDesktop:a,params:i}=t,s=e.$el[0],l=$t.passiveListener&&i.passiveListeners?{passive:!1,capture:!1}:!1,c=$t.passiveListener&&i.passiveListeners?{passive:!0,capture:!1}:!1;$t.touch?(s.addEventListener(n.start,t.scrollbar.onDragStart,l),s.addEventListener(n.move,t.scrollbar.onDragMove,l),s.addEventListener(n.end,t.scrollbar.onDragEnd,c)):(s.addEventListener(a.start,t.scrollbar.onDragStart,l),ne.addEventListener(a.move,t.scrollbar.onDragMove,l),ne.addEventListener(a.end,t.scrollbar.onDragEnd,c))},disableDraggable(){const t=this;if(!t.params.scrollbar.el)return;const{scrollbar:e,touchEventsTouch:n,touchEventsDesktop:a,params:i}=t,s=e.$el[0],l=$t.passiveListener&&i.passiveListeners?{passive:!1,capture:!1}:!1,c=$t.passiveListener&&i.passiveListeners?{passive:!0,capture:!1}:!1;$t.touch?(s.removeEventListener(n.start,t.scrollbar.onDragStart,l),s.removeEventListener(n.move,t.scrollbar.onDragMove,l),s.removeEventListener(n.end,t.scrollbar.onDragEnd,c)):(s.removeEventListener(a.start,t.scrollbar.onDragStart,l),ne.removeEventListener(a.move,t.scrollbar.onDragMove,l),ne.removeEventListener(a.end,t.scrollbar.onDragEnd,c))},init(){const t=this;if(!t.params.scrollbar.el)return;const{scrollbar:e,$el:n}=t,a=t.params.scrollbar;let i=kt(a.el);t.params.uniqueNavElements&&typeof a.el=="string"&&i.length>1&&n.find(a.el).length===1&&(i=n.find(a.el));let r=i.find(`.${t.params.scrollbar.dragClass}`);r.length===0&&(r=kt(`<div class="${t.params.scrollbar.dragClass}"></div>`),i.append(r)),yt.extend(e,{$el:i,el:i[0],$dragEl:r,dragEl:r[0]}),a.draggable&&e.enableDraggable()},destroy(){this.scrollbar.disableDraggable()}};var W1={name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create(){const t=this;yt.extend(t,{scrollbar:{init:Jn.init.bind(t),destroy:Jn.destroy.bind(t),updateSize:Jn.updateSize.bind(t),setTranslate:Jn.setTranslate.bind(t),setTransition:Jn.setTransition.bind(t),enableDraggable:Jn.enableDraggable.bind(t),disableDraggable:Jn.disableDraggable.bind(t),setDragPosition:Jn.setDragPosition.bind(t),getPointerPosition:Jn.getPointerPosition.bind(t),onDragStart:Jn.onDragStart.bind(t),onDragMove:Jn.onDragMove.bind(t),onDragEnd:Jn.onDragEnd.bind(t),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init(){const t=this;t.scrollbar.init(),t.scrollbar.updateSize(),t.scrollbar.setTranslate()},update(){this.scrollbar.updateSize()},resize(){this.scrollbar.updateSize()},observerUpdate(){this.scrollbar.updateSize()},setTranslate(){this.scrollbar.setTranslate()},setTransition(t){this.scrollbar.setTransition(t)},destroy(){this.scrollbar.destroy()}}};const _c={setTransform(t,e){const n=this,{rtl:a}=n,i=kt(t),r=a?-1:1,s=i.attr("data-swiper-parallax")||"0";let l=i.attr("data-swiper-parallax-x"),c=i.attr("data-swiper-parallax-y");const h=i.attr("data-swiper-parallax-scale"),m=i.attr("data-swiper-parallax-opacity");if(l||c?(l=l||"0",c=c||"0"):n.isHorizontal()?(l=s,c="0"):(c=s,l="0"),l.indexOf("%")>=0?l=`${parseInt(l,10)*e*r}%`:l=`${l*e*r}px`,c.indexOf("%")>=0?c=`${parseInt(c,10)*e}%`:c=`${c*e}px`,typeof m<"u"&&m!==null){const k=m-(m-1)*(1-Math.abs(e));i[0].style.opacity=k}if(typeof h>"u"||h===null)i.transform(`translate3d(${l}, ${c}, 0px)`);else{const k=h-(h-1)*(1-Math.abs(e));i.transform(`translate3d(${l}, ${c}, 0px) scale(${k})`)}},setTranslate(){const t=this,{$el:e,slides:n,progress:a,snapGrid:i}=t;e.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((r,s)=>{t.parallax.setTransform(s,a)}),n.each((r,s)=>{let l=s.progress;t.params.slidesPerGroup>1&&t.params.slidesPerView!=="auto"&&(l+=Math.ceil(r/2)-a*(i.length-1)),l=Math.min(Math.max(l,-1),1),kt(s).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((c,h)=>{t.parallax.setTransform(h,l)})})},setTransition(t=this.params.speed){const e=this,{$el:n}=e;n.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((a,i)=>{const r=kt(i);let s=parseInt(r.attr("data-swiper-parallax-duration"),10)||t;t===0&&(s=0),r.transition(s)})}};var _1={name:"parallax",params:{parallax:{enabled:!1}},create(){const t=this;yt.extend(t,{parallax:{setTransform:_c.setTransform.bind(t),setTranslate:_c.setTranslate.bind(t),setTransition:_c.setTransition.bind(t)}})},on:{beforeInit(){const t=this;t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)},init(){const t=this;t.params.parallax.enabled&&t.parallax.setTranslate()},setTranslate(){const t=this;t.params.parallax.enabled&&t.parallax.setTranslate()},setTransition(t){const e=this;e.params.parallax.enabled&&e.parallax.setTransition(t)}}};const Zd={getDistanceBetweenTouches(t){if(t.targetTouches.length<2)return 1;const e=t.targetTouches[0].pageX,n=t.targetTouches[0].pageY,a=t.targetTouches[1].pageX,i=t.targetTouches[1].pageY;return Math.sqrt((a-e)**2+(i-n)**2)},onGestureStart(t){const e=this,n=e.params.zoom,a=e.zoom,{gesture:i}=a;if(a.fakeGestureTouched=!1,a.fakeGestureMoved=!1,!$t.gestures){if(t.type!=="touchstart"||t.type==="touchstart"&&t.targetTouches.length<2)return;a.fakeGestureTouched=!0,i.scaleStart=Zd.getDistanceBetweenTouches(t)}if((!i.$slideEl||!i.$slideEl.length)&&(i.$slideEl=kt(t.target).closest(".swiper-slide"),i.$slideEl.length===0&&(i.$slideEl=e.slides.eq(e.activeIndex)),i.$imageEl=i.$slideEl.find("img, svg, canvas"),i.$imageWrapEl=i.$imageEl.parent(`.${n.containerClass}`),i.maxRatio=i.$imageWrapEl.attr("data-swiper-zoom")||n.maxRatio,i.$imageWrapEl.length===0)){i.$imageEl=void 0;return}i.$imageEl.transition(0),e.zoom.isScaling=!0},onGestureChange(t){const e=this,n=e.params.zoom,a=e.zoom,{gesture:i}=a;if(!$t.gestures){if(t.type!=="touchmove"||t.type==="touchmove"&&t.targetTouches.length<2)return;a.fakeGestureMoved=!0,i.scaleMove=Zd.getDistanceBetweenTouches(t)}!i.$imageEl||i.$imageEl.length===0||($t.gestures?a.scale=t.scale*a.currentScale:a.scale=i.scaleMove/i.scaleStart*a.currentScale,a.scale>i.maxRatio&&(a.scale=i.maxRatio-1+(a.scale-i.maxRatio+1)**.5),a.scale<n.minRatio&&(a.scale=n.minRatio+1-(n.minRatio-a.scale+1)**.5),i.$imageEl.transform(`translate3d(0,0,0) scale(${a.scale})`))},onGestureEnd(t){const e=this,n=e.params.zoom,a=e.zoom,{gesture:i}=a;if(!$t.gestures){if(!a.fakeGestureTouched||!a.fakeGestureMoved||t.type!=="touchend"||t.type==="touchend"&&t.changedTouches.length<2&&!yn.android)return;a.fakeGestureTouched=!1,a.fakeGestureMoved=!1}!i.$imageEl||i.$imageEl.length===0||(a.scale=Math.max(Math.min(a.scale,i.maxRatio),n.minRatio),i.$imageEl.transition(e.params.speed).transform(`translate3d(0,0,0) scale(${a.scale})`),a.currentScale=a.scale,a.isScaling=!1,a.scale===1&&(i.$slideEl=void 0))},onTouchStart(t){const n=this.zoom,{gesture:a,image:i}=n;!a.$imageEl||a.$imageEl.length===0||i.isTouched||(yn.android&&t.preventDefault(),i.isTouched=!0,i.touchesStart.x=t.type==="touchstart"?t.targetTouches[0].pageX:t.pageX,i.touchesStart.y=t.type==="touchstart"?t.targetTouches[0].pageY:t.pageY)},onTouchMove(t){const e=this,n=e.zoom,{gesture:a,image:i,velocity:r}=n;if(!a.$imageEl||a.$imageEl.length===0||(e.allowClick=!1,!i.isTouched||!a.$slideEl))return;i.isMoved||(i.width=a.$imageEl[0].offsetWidth,i.height=a.$imageEl[0].offsetHeight,i.startX=yt.getTranslate(a.$imageWrapEl[0],"x")||0,i.startY=yt.getTranslate(a.$imageWrapEl[0],"y")||0,a.slideWidth=a.$slideEl[0].offsetWidth,a.slideHeight=a.$slideEl[0].offsetHeight,a.$imageWrapEl.transition(0),e.rtl&&(i.startX=-i.startX,i.startY=-i.startY));const s=i.width*n.scale,l=i.height*n.scale;if(!(s<a.slideWidth&&l<a.slideHeight)){if(i.minX=Math.min(a.slideWidth/2-s/2,0),i.maxX=-i.minX,i.minY=Math.min(a.slideHeight/2-l/2,0),i.maxY=-i.minY,i.touchesCurrent.x=t.type==="touchmove"?t.targetTouches[0].pageX:t.pageX,i.touchesCurrent.y=t.type==="touchmove"?t.targetTouches[0].pageY:t.pageY,!i.isMoved&&!n.isScaling){if(e.isHorizontal()&&(Math.floor(i.minX)===Math.floor(i.startX)&&i.touchesCurrent.x<i.touchesStart.x||Math.floor(i.maxX)===Math.floor(i.startX)&&i.touchesCurrent.x>i.touchesStart.x)){i.isTouched=!1;return}if(!e.isHorizontal()&&(Math.floor(i.minY)===Math.floor(i.startY)&&i.touchesCurrent.y<i.touchesStart.y||Math.floor(i.maxY)===Math.floor(i.startY)&&i.touchesCurrent.y>i.touchesStart.y)){i.isTouched=!1;return}}t.preventDefault(),t.stopPropagation(),i.isMoved=!0,i.currentX=i.touchesCurrent.x-i.touchesStart.x+i.startX,i.currentY=i.touchesCurrent.y-i.touchesStart.y+i.startY,i.currentX<i.minX&&(i.currentX=i.minX+1-(i.minX-i.currentX+1)**.8),i.currentX>i.maxX&&(i.currentX=i.maxX-1+(i.currentX-i.maxX+1)**.8),i.currentY<i.minY&&(i.currentY=i.minY+1-(i.minY-i.currentY+1)**.8),i.currentY>i.maxY&&(i.currentY=i.maxY-1+(i.currentY-i.maxY+1)**.8),r.prevPositionX||(r.prevPositionX=i.touchesCurrent.x),r.prevPositionY||(r.prevPositionY=i.touchesCurrent.y),r.prevTime||(r.prevTime=Date.now()),r.x=(i.touchesCurrent.x-r.prevPositionX)/(Date.now()-r.prevTime)/2,r.y=(i.touchesCurrent.y-r.prevPositionY)/(Date.now()-r.prevTime)/2,Math.abs(i.touchesCurrent.x-r.prevPositionX)<2&&(r.x=0),Math.abs(i.touchesCurrent.y-r.prevPositionY)<2&&(r.y=0),r.prevPositionX=i.touchesCurrent.x,r.prevPositionY=i.touchesCurrent.y,r.prevTime=Date.now(),a.$imageWrapEl.transform(`translate3d(${i.currentX}px, ${i.currentY}px,0)`)}},onTouchEnd(){const e=this.zoom,{gesture:n,image:a,velocity:i}=e;if(!n.$imageEl||n.$imageEl.length===0)return;if(!a.isTouched||!a.isMoved){a.isTouched=!1,a.isMoved=!1;return}a.isTouched=!1,a.isMoved=!1;let r=300,s=300;const l=i.x*r,c=a.currentX+l,h=i.y*s,m=a.currentY+h;i.x!==0&&(r=Math.abs((c-a.currentX)/i.x)),i.y!==0&&(s=Math.abs((m-a.currentY)/i.y));const k=Math.max(r,s);a.currentX=c,a.currentY=m;const w=a.width*e.scale,P=a.height*e.scale;a.minX=Math.min(n.slideWidth/2-w/2,0),a.maxX=-a.minX,a.minY=Math.min(n.slideHeight/2-P/2,0),a.maxY=-a.minY,a.currentX=Math.max(Math.min(a.currentX,a.maxX),a.minX),a.currentY=Math.max(Math.min(a.currentY,a.maxY),a.minY),n.$imageWrapEl.transition(k).transform(`translate3d(${a.currentX}px, ${a.currentY}px,0)`)},onTransitionEnd(){const t=this,e=t.zoom,{gesture:n}=e;n.$slideEl&&t.previousIndex!==t.activeIndex&&(n.$imageEl.transform("translate3d(0,0,0) scale(1)"),n.$imageWrapEl.transform("translate3d(0,0,0)"),e.scale=1,e.currentScale=1,n.$slideEl=void 0,n.$imageEl=void 0,n.$imageWrapEl=void 0)},toggle(t){const n=this.zoom;n.scale&&n.scale!==1?n.out():n.in(t)},in(t){const e=this,n=e.zoom,a=e.params.zoom,{gesture:i,image:r}=n;if(i.$slideEl||(i.$slideEl=e.clickedSlide?kt(e.clickedSlide):e.slides.eq(e.activeIndex),i.$imageEl=i.$slideEl.find("img, svg, canvas"),i.$imageWrapEl=i.$imageEl.parent(`.${a.containerClass}`)),!i.$imageEl||i.$imageEl.length===0)return;i.$slideEl.addClass(`${a.zoomedSlideClass}`);let s,l,c,h,m,k,w,P,E,z,A,x,S,N,L,j,f,U;typeof r.touchesStart.x>"u"&&t?(s=t.type==="touchend"?t.changedTouches[0].pageX:t.pageX,l=t.type==="touchend"?t.changedTouches[0].pageY:t.pageY):(s=r.touchesStart.x,l=r.touchesStart.y),n.scale=i.$imageWrapEl.attr("data-swiper-zoom")||a.maxRatio,n.currentScale=i.$imageWrapEl.attr("data-swiper-zoom")||a.maxRatio,t?(f=i.$slideEl[0].offsetWidth,U=i.$slideEl[0].offsetHeight,c=i.$slideEl.offset().left,h=i.$slideEl.offset().top,m=c+f/2-s,k=h+U/2-l,E=i.$imageEl[0].offsetWidth,z=i.$imageEl[0].offsetHeight,A=E*n.scale,x=z*n.scale,S=Math.min(f/2-A/2,0),N=Math.min(U/2-x/2,0),L=-S,j=-N,w=m*n.scale,P=k*n.scale,w<S&&(w=S),w>L&&(w=L),P<N&&(P=N),P>j&&(P=j)):(w=0,P=0),i.$imageWrapEl.transition(300).transform(`translate3d(${w}px, ${P}px,0)`),i.$imageEl.transition(300).transform(`translate3d(0,0,0) scale(${n.scale})`)},out(){const t=this,e=t.zoom,n=t.params.zoom,{gesture:a}=e;a.$slideEl||(a.$slideEl=t.clickedSlide?kt(t.clickedSlide):t.slides.eq(t.activeIndex),a.$imageEl=a.$slideEl.find("img, svg, canvas"),a.$imageWrapEl=a.$imageEl.parent(`.${n.containerClass}`)),!(!a.$imageEl||a.$imageEl.length===0)&&(e.scale=1,e.currentScale=1,a.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),a.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),a.$slideEl.removeClass(`${n.zoomedSlideClass}`),a.$slideEl=void 0)},enable(){const t=this,e=t.zoom;if(e.enabled)return;e.enabled=!0;const n=t.touchEvents.start==="touchstart"&&$t.passiveListener&&t.params.passiveListeners?{passive:!0,capture:!1}:!1;$t.gestures?(t.$wrapperEl.on("gesturestart",".swiper-slide",e.onGestureStart,n),t.$wrapperEl.on("gesturechange",".swiper-slide",e.onGestureChange,n),t.$wrapperEl.on("gestureend",".swiper-slide",e.onGestureEnd,n)):t.touchEvents.start==="touchstart"&&(t.$wrapperEl.on(t.touchEvents.start,".swiper-slide",e.onGestureStart,n),t.$wrapperEl.on(t.touchEvents.move,".swiper-slide",e.onGestureChange,n),t.$wrapperEl.on(t.touchEvents.end,".swiper-slide",e.onGestureEnd,n)),t.$wrapperEl.on(t.touchEvents.move,`.${t.params.zoom.containerClass}`,e.onTouchMove)},disable(){const t=this,e=t.zoom;if(!e.enabled)return;t.zoom.enabled=!1;const n=t.touchEvents.start==="touchstart"&&$t.passiveListener&&t.params.passiveListeners?{passive:!0,capture:!1}:!1;$t.gestures?(t.$wrapperEl.off("gesturestart",".swiper-slide",e.onGestureStart,n),t.$wrapperEl.off("gesturechange",".swiper-slide",e.onGestureChange,n),t.$wrapperEl.off("gestureend",".swiper-slide",e.onGestureEnd,n)):t.touchEvents.start==="touchstart"&&(t.$wrapperEl.off(t.touchEvents.start,".swiper-slide",e.onGestureStart,n),t.$wrapperEl.off(t.touchEvents.move,".swiper-slide",e.onGestureChange,n),t.$wrapperEl.off(t.touchEvents.end,".swiper-slide",e.onGestureEnd,n)),t.$wrapperEl.off(t.touchEvents.move,`.${t.params.zoom.containerClass}`,e.onTouchMove)}};var V1={name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create(){const t=this,e={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{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:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach(a=>{e[a]=Zd[a].bind(t)}),yt.extend(t,{zoom:e});let n=1;Object.defineProperty(t.zoom,"scale",{get(){return n},set(a){if(n!==a){const i=t.zoom.gesture.$imageEl?t.zoom.gesture.$imageEl[0]:void 0,r=t.zoom.gesture.$slideEl?t.zoom.gesture.$slideEl[0]:void 0;t.emit("zoomChange",a,i,r)}n=a}})},on:{init(){const t=this;t.params.zoom.enabled&&t.zoom.enable()},destroy(){this.zoom.disable()},touchStart(t){const e=this;e.zoom.enabled&&e.zoom.onTouchStart(t)},touchEnd(t){const e=this;e.zoom.enabled&&e.zoom.onTouchEnd(t)},doubleTap(t){const e=this;e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&e.zoom.toggle(t)},transitionEnd(){const t=this;t.zoom.enabled&&t.params.zoom.enabled&&t.zoom.onTransitionEnd()}}};const Zg={loadInSlide(t,e=!0){const n=this,a=n.params.lazy;if(typeof t>"u"||n.slides.length===0)return;const r=n.virtual&&n.params.virtual.enabled?n.$wrapperEl.children(`.${n.params.slideClass}[data-swiper-slide-index="${t}"]`):n.slides.eq(t);let s=r.find(`.${a.elementClass}:not(.${a.loadedClass}):not(.${a.loadingClass})`);r.hasClass(a.elementClass)&&!r.hasClass(a.loadedClass)&&!r.hasClass(a.loadingClass)&&(s=s.add(r[0])),s.length!==0&&s.each((l,c)=>{const h=kt(c);h.addClass(a.loadingClass);const m=h.attr("data-background"),k=h.attr("data-src"),w=h.attr("data-srcset"),P=h.attr("data-sizes");n.loadImage(h[0],k||m,w,P,!1,()=>{if(!(typeof n>"u"||n===null||!n||n&&!n.params||n.destroyed)){if(m?(h.css("background-image",`url("${m}")`),h.removeAttr("data-background")):(w&&(h.attr("srcset",w),h.removeAttr("data-srcset")),P&&(h.attr("sizes",P),h.removeAttr("data-sizes")),k&&(h.attr("src",k),h.removeAttr("data-src"))),h.addClass(a.loadedClass).removeClass(a.loadingClass),r.find(`.${a.preloaderClass}`).remove(),n.params.loop&&e){const E=r.attr("data-swiper-slide-index");if(r.hasClass(n.params.slideDuplicateClass)){const z=n.$wrapperEl.children(`[data-swiper-slide-index="${E}"]:not(.${n.params.slideDuplicateClass})`);n.lazy.loadInSlide(z.index(),!1)}else{const z=n.$wrapperEl.children(`.${n.params.slideDuplicateClass}[data-swiper-slide-index="${E}"]`);n.lazy.loadInSlide(z.index(),!1)}}n.emit("lazyImageReady",r[0],h[0])}}),n.emit("lazyImageLoad",r[0],h[0])})},load(){const t=this,{$wrapperEl:e,params:n,slides:a,activeIndex:i}=t,r=t.virtual&&n.virtual.enabled,s=n.lazy;let l=n.slidesPerView;l==="auto"&&(l=0);function c(m){if(r){if(e.children(`.${n.slideClass}[data-swiper-slide-index="${m}"]`).length)return!0}else if(a[m])return!0;return!1}function h(m){return r?kt(m).attr("data-swiper-slide-index"):kt(m).index()}if(t.lazy.initialImageLoaded||(t.lazy.initialImageLoaded=!0),t.params.watchSlidesVisibility)e.children(`.${n.slideVisibleClass}`).each((m,k)=>{const w=r?kt(k).attr("data-swiper-slide-index"):kt(k).index();t.lazy.loadInSlide(w)});else if(l>1)for(let m=i;m<i+l;m+=1)c(m)&&t.lazy.loadInSlide(m);else t.lazy.loadInSlide(i);if(s.loadPrevNext)if(l>1||s.loadPrevNextAmount&&s.loadPrevNextAmount>1){const m=s.loadPrevNextAmount,k=l,w=Math.min(i+k+Math.max(m,k),a.length),P=Math.max(i-Math.max(k,m),0);for(let E=i+l;E<w;E+=1)c(E)&&t.lazy.loadInSlide(E);for(let E=P;E<i;E+=1)c(E)&&t.lazy.loadInSlide(E)}else{const m=e.children(`.${n.slideNextClass}`);m.length>0&&t.lazy.loadInSlide(h(m));const k=e.children(`.${n.slidePrevClass}`);k.length>0&&t.lazy.loadInSlide(h(k))}}};var G1={name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create(){const t=this;yt.extend(t,{lazy:{initialImageLoaded:!1,load:Zg.load.bind(t),loadInSlide:Zg.loadInSlide.bind(t)}})},on:{beforeInit(){const t=this;t.params.lazy.enabled&&t.params.preloadImages&&(t.params.preloadImages=!1)},init(){const t=this;t.params.lazy.enabled&&!t.params.loop&&t.params.initialSlide===0&&t.lazy.load()},scroll(){const t=this;t.params.freeMode&&!t.params.freeModeSticky&&t.lazy.load()},resize(){const t=this;t.params.lazy.enabled&&t.lazy.load()},scrollbarDragMove(){const t=this;t.params.lazy.enabled&&t.lazy.load()},transitionStart(){const t=this;t.params.lazy.enabled&&(t.params.lazy.loadOnTransitionStart||!t.params.lazy.loadOnTransitionStart&&!t.lazy.initialImageLoaded)&&t.lazy.load()},transitionEnd(){const t=this;t.params.lazy.enabled&&!t.params.lazy.loadOnTransitionStart&&t.lazy.load()}}};const Uo={LinearSpline:function(e,n){const a=function(){let l,c,h;return(m,k)=>{for(c=-1,l=m.length;l-c>1;)h=l+c>>1,m[h]<=k?c=h:l=h;return l}}();this.x=e,this.y=n,this.lastIndex=e.length-1;let i,r;return this.interpolate=function(l){return l?(r=a(this.x,l),i=r-1,(l-this.x[i])*(this.y[r]-this.y[i])/(this.x[r]-this.x[i])+this.y[i]):0},this},getInterpolateFunction(t){const e=this;e.controller.spline||(e.controller.spline=e.params.loop?new Uo.LinearSpline(e.slidesGrid,t.slidesGrid):new Uo.LinearSpline(e.snapGrid,t.snapGrid))},setTranslate(t,e){const n=this,a=n.controller.control;let i,r;function s(l){const c=n.rtlTranslate?-n.translate:n.translate;n.params.controller.by==="slide"&&(n.controller.getInterpolateFunction(l),r=-n.controller.spline.interpolate(-c)),(!r||n.params.controller.by==="container")&&(i=(l.maxTranslate()-l.minTranslate())/(n.maxTranslate()-n.minTranslate()),r=(c-n.minTranslate())*i+l.minTranslate()),n.params.controller.inverse&&(r=l.maxTranslate()-r),l.updateProgress(r),l.setTranslate(r,n),l.updateActiveIndex(),l.updateSlidesClasses()}if(Array.isArray(a))for(let l=0;l<a.length;l+=1)a[l]!==e&&a[l]instanceof En&&s(a[l]);else a instanceof En&&e!==a&&s(a)},setTransition(t,e){const n=this,a=n.controller.control;let i;function r(s){s.setTransition(t,n),t!==0&&(s.transitionStart(),s.params.autoHeight&&yt.nextTick(()=>{s.updateAutoHeight()}),s.$wrapperEl.transitionEnd(()=>{a&&(s.params.loop&&n.params.controller.by==="slide"&&s.loopFix(),s.transitionEnd())}))}if(Array.isArray(a))for(i=0;i<a.length;i+=1)a[i]!==e&&a[i]instanceof En&&r(a[i]);else a instanceof En&&e!==a&&r(a)}};var U1={name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create(){const t=this;yt.extend(t,{controller:{control:t.params.controller.control,getInterpolateFunction:Uo.getInterpolateFunction.bind(t),setTranslate:Uo.setTranslate.bind(t),setTransition:Uo.setTransition.bind(t)}})},on:{update(){const t=this;t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)},resize(){const t=this;t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)},observerUpdate(){const t=this;t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)},setTranslate(t,e){const n=this;n.controller.control&&n.controller.setTranslate(t,e)},setTransition(t,e){const n=this;n.controller.control&&n.controller.setTransition(t,e)}}};const Jg={makeElFocusable(t){return t.attr("tabIndex","0"),t},addElRole(t,e){return t.attr("role",e),t},addElLabel(t,e){return t.attr("aria-label",e),t},disableEl(t){return t.attr("aria-disabled",!0),t},enableEl(t){return t.attr("aria-disabled",!1),t},onEnterKey(t){const e=this,n=e.params.a11y;if(t.keyCode!==13)return;const a=kt(t.target);e.navigation&&e.navigation.$nextEl&&a.is(e.navigation.$nextEl)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?e.a11y.notify(n.lastSlideMessage):e.a11y.notify(n.nextSlideMessage)),e.navigation&&e.navigation.$prevEl&&a.is(e.navigation.$prevEl)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?e.a11y.notify(n.firstSlideMessage):e.a11y.notify(n.prevSlideMessage)),e.pagination&&a.is(`.${e.params.pagination.bulletClass}`)&&a[0].click()},notify(t){const n=this.a11y.liveRegion;n.length!==0&&(n.html(""),n.html(t))},updateNavigation(){const t=this;if(t.params.loop)return;const{$nextEl:e,$prevEl:n}=t.navigation;n&&n.length>0&&(t.isBeginning?t.a11y.disableEl(n):t.a11y.enableEl(n)),e&&e.length>0&&(t.isEnd?t.a11y.disableEl(e):t.a11y.enableEl(e))},updatePagination(){const t=this,e=t.params.a11y;t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.bullets.each((n,a)=>{const i=kt(a);t.a11y.makeElFocusable(i),t.a11y.addElRole(i,"button"),t.a11y.addElLabel(i,e.paginationBulletMessage.replace(/{{index}}/,i.index()+1))})},init(){const t=this;t.$el.append(t.a11y.liveRegion);const e=t.params.a11y;let n,a;t.navigation&&t.navigation.$nextEl&&(n=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(a=t.navigation.$prevEl),n&&(t.a11y.makeElFocusable(n),t.a11y.addElRole(n,"button"),t.a11y.addElLabel(n,e.nextSlideMessage),n.on("keydown",t.a11y.onEnterKey)),a&&(t.a11y.makeElFocusable(a),t.a11y.addElRole(a,"button"),t.a11y.addElLabel(a,e.prevSlideMessage),a.on("keydown",t.a11y.onEnterKey)),t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.$el.on("keydown",`.${t.params.pagination.bulletClass}`,t.a11y.onEnterKey)},destroy(){const t=this;t.a11y.liveRegion&&t.a11y.liveRegion.length>0&&t.a11y.liveRegion.remove();let e,n;t.navigation&&t.navigation.$nextEl&&(e=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(n=t.navigation.$prevEl),e&&e.off("keydown",t.a11y.onEnterKey),n&&n.off("keydown",t.a11y.onEnterKey),t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.$el.off("keydown",`.${t.params.pagination.bulletClass}`,t.a11y.onEnterKey)}};var Y1={name:"a11y",params:{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}}"}},create(){const t=this;yt.extend(t,{a11y:{liveRegion:kt(`<span class="${t.params.a11y.notificationClass}" aria-live="assertive" aria-atomic="true"></span>`)}}),Object.keys(Jg).forEach(e=>{t.a11y[e]=Jg[e].bind(t)})},on:{init(){const t=this;t.params.a11y.enabled&&(t.a11y.init(),t.a11y.updateNavigation())},toEdge(){const t=this;t.params.a11y.enabled&&t.a11y.updateNavigation()},fromEdge(){const t=this;t.params.a11y.enabled&&t.a11y.updateNavigation()},paginationUpdate(){const t=this;t.params.a11y.enabled&&t.a11y.updatePagination()},destroy(){const t=this;t.params.a11y.enabled&&t.a11y.destroy()}}};const Xa={init(){const t=this;if(!t.params.history)return;if(!Mt.history||!Mt.history.pushState){t.params.history.enabled=!1,t.params.hashNavigation.enabled=!0;return}const e=t.history;e.initialized=!0,e.paths=Xa.getPathValues(),!(!e.paths.key&&!e.paths.value)&&(e.scrollToSlide(0,e.paths.value,t.params.runCallbacksOnInit),t.params.history.replaceState||Mt.addEventListener("popstate",t.history.setHistoryPopState))},destroy(){const t=this;t.params.history.replaceState||Mt.removeEventListener("popstate",t.history.setHistoryPopState)},setHistoryPopState(){const t=this;t.history.paths=Xa.getPathValues(),t.history.scrollToSlide(t.params.speed,t.history.paths.value,!1)},getPathValues(){const t=Mt.location.pathname.slice(1).split("/").filter(i=>i!==""),e=t.length,n=t[e-2],a=t[e-1];return{key:n,value:a}},setHistory(t,e){const n=this;if(!n.history.initialized||!n.params.history.enabled)return;const a=n.slides.eq(e);let i=Xa.slugify(a.attr("data-history"));Mt.location.pathname.includes(t)||(i=`${t}/${i}`);const r=Mt.history.state;r&&r.value===i||(n.params.history.replaceState?Mt.history.replaceState({value:i},null,i):Mt.history.pushState({value:i},null,i))},slugify(t){return t.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide(t,e,n){const a=this;if(e)for(let i=0,r=a.slides.length;i<r;i+=1){const s=a.slides.eq(i);if(Xa.slugify(s.attr("data-history"))===e&&!s.hasClass(a.params.slideDuplicateClass)){const c=s.index();a.slideTo(c,t,n)}}else a.slideTo(0,t,n)}};var X1={name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create(){const t=this;yt.extend(t,{history:{init:Xa.init.bind(t),setHistory:Xa.setHistory.bind(t),setHistoryPopState:Xa.setHistoryPopState.bind(t),scrollToSlide:Xa.scrollToSlide.bind(t),destroy:Xa.destroy.bind(t)}})},on:{init(){const t=this;t.params.history.enabled&&t.history.init()},destroy(){const t=this;t.params.history.enabled&&t.history.destroy()},transitionEnd(){const t=this;t.history.initialized&&t.history.setHistory(t.params.history.key,t.activeIndex)}}};const tl={onHashCange(){const t=this,e=ne.location.hash.replace("#",""),n=t.slides.eq(t.activeIndex).attr("data-hash");if(e!==n){const a=t.$wrapperEl.children(`.${t.params.slideClass}[data-hash="${e}"]`).index();if(typeof a>"u")return;t.slideTo(a)}},setHash(){const t=this;if(!(!t.hashNavigation.initialized||!t.params.hashNavigation.enabled))if(t.params.hashNavigation.replaceState&&Mt.history&&Mt.history.replaceState)Mt.history.replaceState(null,null,`#${t.slides.eq(t.activeIndex).attr("data-hash")}`||"");else{const e=t.slides.eq(t.activeIndex),n=e.attr("data-hash")||e.attr("data-history");ne.location.hash=n||""}},init(){const t=this;if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;t.hashNavigation.initialized=!0;const e=ne.location.hash.replace("#","");if(e)for(let a=0,i=t.slides.length;a<i;a+=1){const r=t.slides.eq(a);if((r.attr("data-hash")||r.attr("data-history"))===e&&!r.hasClass(t.params.slideDuplicateClass)){const l=r.index();t.slideTo(l,0,t.params.runCallbacksOnInit,!0)}}t.params.hashNavigation.watchState&&kt(Mt).on("hashchange",t.hashNavigation.onHashCange)},destroy(){const t=this;t.params.hashNavigation.watchState&&kt(Mt).off("hashchange",t.hashNavigation.onHashCange)}};var Z1={name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create(){const t=this;yt.extend(t,{hashNavigation:{initialized:!1,init:tl.init.bind(t),destroy:tl.destroy.bind(t),setHash:tl.setHash.bind(t),onHashCange:tl.onHashCange.bind(t)}})},on:{init(){const t=this;t.params.hashNavigation.enabled&&t.hashNavigation.init()},destroy(){const t=this;t.params.hashNavigation.enabled&&t.hashNavigation.destroy()},transitionEnd(){const t=this;t.hashNavigation.initialized&&t.hashNavigation.setHash()}}};const el={run(){const t=this,e=t.slides.eq(t.activeIndex);let n=t.params.autoplay.delay;e.attr("data-swiper-autoplay")&&(n=e.attr("data-swiper-autoplay")||t.params.autoplay.delay),clearTimeout(t.autoplay.timeout),t.autoplay.timeout=yt.nextTick(()=>{t.params.autoplay.reverseDirection?t.params.loop?(t.loopFix(),t.slidePrev(t.params.speed,!0,!0),t.emit("autoplay")):t.isBeginning?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(t.slideTo(t.slides.length-1,t.params.speed,!0,!0),t.emit("autoplay")):(t.slidePrev(t.params.speed,!0,!0),t.emit("autoplay")):t.params.loop?(t.loopFix(),t.slideNext(t.params.speed,!0,!0),t.emit("autoplay")):t.isEnd?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(t.slideTo(0,t.params.speed,!0,!0),t.emit("autoplay")):(t.slideNext(t.params.speed,!0,!0),t.emit("autoplay"))},n)},start(){const t=this;return typeof t.autoplay.timeout<"u"||t.autoplay.running?!1:(t.autoplay.running=!0,t.emit("autoplayStart"),t.autoplay.run(),!0)},stop(){const t=this;return!t.autoplay.running||typeof t.autoplay.timeout>"u"?!1:(t.autoplay.timeout&&(clearTimeout(t.autoplay.timeout),t.autoplay.timeout=void 0),t.autoplay.running=!1,t.emit("autoplayStop"),!0)},pause(t){const e=this;e.autoplay.running&&(e.autoplay.paused||(e.autoplay.timeout&&clearTimeout(e.autoplay.timeout),e.autoplay.paused=!0,t===0||!e.params.autoplay.waitForTransition?(e.autoplay.paused=!1,e.autoplay.run()):(e.$wrapperEl[0].addEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].addEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd))))}};var J1={name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create(){const t=this;yt.extend(t,{autoplay:{running:!1,paused:!1,run:el.run.bind(t),start:el.start.bind(t),stop:el.stop.bind(t),pause:el.pause.bind(t),onTransitionEnd(e){!t||t.destroyed||!t.$wrapperEl||e.target===this&&(t.$wrapperEl[0].removeEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].removeEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd),t.autoplay.paused=!1,t.autoplay.running?t.autoplay.run():t.autoplay.stop())}}})},on:{init(){const t=this;t.params.autoplay.enabled&&t.autoplay.start()},beforeTransitionStart(t,e){const n=this;n.autoplay.running&&(e||!n.params.autoplay.disableOnInteraction?n.autoplay.pause(t):n.autoplay.stop())},sliderFirstMove(){const t=this;t.autoplay.running&&(t.params.autoplay.disableOnInteraction?t.autoplay.stop():t.autoplay.pause())},destroy(){const t=this;t.autoplay.running&&t.autoplay.stop()}}};const Qg={setTranslate(){const t=this,{slides:e}=t;for(let n=0;n<e.length;n+=1){const a=t.slides.eq(n);let r=-a[0].swiperSlideOffset;t.params.virtualTranslate||(r-=t.translate);let s=0;t.isHorizontal()||(s=r,r=0);const l=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(a[0].progress),0):1+Math.min(Math.max(a[0].progress,-1),0);a.css({opacity:l}).transform(`translate3d(${r}px, ${s}px, 0px)`)}},setTransition(t){const e=this,{slides:n,$wrapperEl:a}=e;if(n.transition(t),e.params.virtualTranslate&&t!==0){let i=!1;n.transitionEnd(()=>{if(i||!e||e.destroyed)return;i=!0,e.animating=!1;const r=["webkitTransitionEnd","transitionend"];for(let s=0;s<r.length;s+=1)a.trigger(r[s])})}}};var Q1={name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create(){const t=this;yt.extend(t,{fadeEffect:{setTranslate:Qg.setTranslate.bind(t),setTransition:Qg.setTransition.bind(t)}})},on:{beforeInit(){const t=this;if(t.params.effect!=="fade")return;t.classNames.push(`${t.params.containerModifierClass}fade`);const e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};yt.extend(t.params,e),yt.extend(t.originalParams,e)},setTranslate(){const t=this;t.params.effect==="fade"&&t.fadeEffect.setTranslate()},setTransition(t){const e=this;e.params.effect==="fade"&&e.fadeEffect.setTransition(t)}}};const tm={setTranslate(){const t=this,{$el:e,$wrapperEl:n,slides:a,width:i,height:r,rtlTranslate:s,size:l}=t,c=t.params.cubeEffect,h=t.isHorizontal(),m=t.virtual&&t.params.virtual.enabled;let k=0,w;c.shadow&&(h?(w=n.find(".swiper-cube-shadow"),w.length===0&&(w=kt('<div class="swiper-cube-shadow"></div>'),n.append(w)),w.css({height:`${i}px`})):(w=e.find(".swiper-cube-shadow"),w.length===0&&(w=kt('<div class="swiper-cube-shadow"></div>'),e.append(w))));for(let E=0;E<a.length;E+=1){const z=a.eq(E);let A=E;m&&(A=parseInt(z.attr("data-swiper-slide-index"),10));let x=A*90,S=Math.floor(x/360);s&&(x=-x,S=Math.floor(-x/360));const N=Math.max(Math.min(z[0].progress,1),-1);let L=0,j=0,f=0;A%4===0?(L=-S*4*l,f=0):(A-1)%4===0?(L=0,f=-S*4*l):(A-2)%4===0?(L=l+S*4*l,f=l):(A-3)%4===0&&(L=-l,f=3*l+l*4*S),s&&(L=-L),h||(j=L,L=0);const U=`rotateX(${h?0:-x}deg) rotateY(${h?x:0}deg) translate3d(${L}px, ${j}px, ${f}px)`;if(N<=1&&N>-1&&(k=A*90+N*90,s&&(k=-A*90-N*90)),z.transform(U),c.slideShadows){let _=h?z.find(".swiper-slide-shadow-left"):z.find(".swiper-slide-shadow-top"),F=h?z.find(".swiper-slide-shadow-right"):z.find(".swiper-slide-shadow-bottom");_.length===0&&(_=kt(`<div class="swiper-slide-shadow-${h?"left":"top"}"></div>`),z.append(_)),F.length===0&&(F=kt(`<div class="swiper-slide-shadow-${h?"right":"bottom"}"></div>`),z.append(F)),_.length&&(_[0].style.opacity=Math.max(-N,0)),F.length&&(F[0].style.opacity=Math.max(N,0))}}if(n.css({"-webkit-transform-origin":`50% 50% -${l/2}px`,"-moz-transform-origin":`50% 50% -${l/2}px`,"-ms-transform-origin":`50% 50% -${l/2}px`,"transform-origin":`50% 50% -${l/2}px`}),c.shadow)if(h)w.transform(`translate3d(0px, ${i/2+c.shadowOffset}px, ${-i/2}px) rotateX(90deg) rotateZ(0deg) scale(${c.shadowScale})`);else{const E=Math.abs(k)-Math.floor(Math.abs(k)/90)*90,z=1.5-(Math.sin(E*2*Math.PI/360)/2+Math.cos(E*2*Math.PI/360)/2),A=c.shadowScale,x=c.shadowScale/z,S=c.shadowOffset;w.transform(`scale3d(${A}, 1, ${x}) translate3d(0px, ${r/2+S}px, ${-r/2/x}px) rotateX(-90deg)`)}const P=$a.isSafari||$a.isUiWebView?-l/2:0;n.transform(`translate3d(0px,0,${P}px) rotateX(${t.isHorizontal()?0:k}deg) rotateY(${t.isHorizontal()?-k:0}deg)`)},setTransition(t){const e=this,{$el:n,slides:a}=e;a.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),e.params.cubeEffect.shadow&&!e.isHorizontal()&&n.find(".swiper-cube-shadow").transition(t)}};var tC={name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create(){const t=this;yt.extend(t,{cubeEffect:{setTranslate:tm.setTranslate.bind(t),setTransition:tm.setTransition.bind(t)}})},on:{beforeInit(){const t=this;if(t.params.effect!=="cube")return;t.classNames.push(`${t.params.containerModifierClass}cube`),t.classNames.push(`${t.params.containerModifierClass}3d`);const e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};yt.extend(t.params,e),yt.extend(t.originalParams,e)},setTranslate(){const t=this;t.params.effect==="cube"&&t.cubeEffect.setTranslate()},setTransition(t){const e=this;e.params.effect==="cube"&&e.cubeEffect.setTransition(t)}}};const em={setTranslate(){const t=this,{slides:e,rtlTranslate:n}=t;for(let a=0;a<e.length;a+=1){const i=e.eq(a);let r=i[0].progress;t.params.flipEffect.limitRotation&&(r=Math.max(Math.min(i[0].progress,1),-1));const s=i[0].swiperSlideOffset;let c=-180*r,h=0,m=-s,k=0;if(t.isHorizontal()?n&&(c=-c):(k=m,m=0,h=-c,c=0),i[0].style.zIndex=-Math.abs(Math.round(r))+e.length,t.params.flipEffect.slideShadows){let w=t.isHorizontal()?i.find(".swiper-slide-shadow-left"):i.find(".swiper-slide-shadow-top"),P=t.isHorizontal()?i.find(".swiper-slide-shadow-right"):i.find(".swiper-slide-shadow-bottom");w.length===0&&(w=kt(`<div class="swiper-slide-shadow-${t.isHorizontal()?"left":"top"}"></div>`),i.append(w)),P.length===0&&(P=kt(`<div class="swiper-slide-shadow-${t.isHorizontal()?"right":"bottom"}"></div>`),i.append(P)),w.length&&(w[0].style.opacity=Math.max(-r,0)),P.length&&(P[0].style.opacity=Math.max(r,0))}i.transform(`translate3d(${m}px, ${k}px, 0px) rotateX(${h}deg) rotateY(${c}deg)`)}},setTransition(t){const e=this,{slides:n,activeIndex:a,$wrapperEl:i}=e;if(n.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),e.params.virtualTranslate&&t!==0){let r=!1;n.eq(a).transitionEnd(function(){if(r||!e||e.destroyed)return;r=!0,e.animating=!1;const l=["webkitTransitionEnd","transitionend"];for(let c=0;c<l.length;c+=1)i.trigger(l[c])})}}};var eC={name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create(){const t=this;yt.extend(t,{flipEffect:{setTranslate:em.setTranslate.bind(t),setTransition:em.setTransition.bind(t)}})},on:{beforeInit(){const t=this;if(t.params.effect!=="flip")return;t.classNames.push(`${t.params.containerModifierClass}flip`),t.classNames.push(`${t.params.containerModifierClass}3d`);const e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};yt.extend(t.params,e),yt.extend(t.originalParams,e)},setTranslate(){const t=this;t.params.effect==="flip"&&t.flipEffect.setTranslate()},setTransition(t){const e=this;e.params.effect==="flip"&&e.flipEffect.setTransition(t)}}};const nm={setTranslate(){const t=this,{width:e,height:n,slides:a,$wrapperEl:i,slidesSizesGrid:r}=t,s=t.params.coverflowEffect,l=t.isHorizontal(),c=t.translate,h=l?-c+e/2:-c+n/2,m=l?s.rotate:-s.rotate,k=s.depth;for(let w=0,P=a.length;w<P;w+=1){const E=a.eq(w),z=r[w],A=E[0].swiperSlideOffset,x=(h-A-z/2)/z*s.modifier;let S=l?m*x:0,N=l?0:m*x,L=-k*Math.abs(x),j=l?0:s.stretch*x,f=l?s.stretch*x:0;Math.abs(f)<.001&&(f=0),Math.abs(j)<.001&&(j=0),Math.abs(L)<.001&&(L=0),Math.abs(S)<.001&&(S=0),Math.abs(N)<.001&&(N=0);const U=`translate3d(${f}px,${j}px,${L}px) rotateX(${N}deg) rotateY(${S}deg)`;if(E.transform(U),E[0].style.zIndex=-Math.abs(Math.round(x))+1,s.slideShadows){let _=l?E.find(".swiper-slide-shadow-left"):E.find(".swiper-slide-shadow-top"),F=l?E.find(".swiper-slide-shadow-right"):E.find(".swiper-slide-shadow-bottom");_.length===0&&(_=kt(`<div class="swiper-slide-shadow-${l?"left":"top"}"></div>`),E.append(_)),F.length===0&&(F=kt(`<div class="swiper-slide-shadow-${l?"right":"bottom"}"></div>`),E.append(F)),_.length&&(_[0].style.opacity=x>0?x:0),F.length&&(F[0].style.opacity=-x>0?-x:0)}}if($t.pointerEvents||$t.prefixedPointerEvents){const w=i[0].style;w.perspectiveOrigin=`${h}px 50%`}},setTransition(t){this.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t)}};var nC={name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create(){const t=this;yt.extend(t,{coverflowEffect:{setTranslate:nm.setTranslate.bind(t),setTransition:nm.setTransition.bind(t)}})},on:{beforeInit(){const t=this;t.params.effect==="coverflow"&&(t.classNames.push(`${t.params.containerModifierClass}coverflow`),t.classNames.push(`${t.params.containerModifierClass}3d`),t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)},setTranslate(){const t=this;t.params.effect==="coverflow"&&t.coverflowEffect.setTranslate()},setTransition(t){const e=this;e.params.effect==="coverflow"&&e.coverflowEffect.setTransition(t)}}};const Vc={init(){const t=this,{thumbs:e}=t.params,n=t.constructor;e.swiper instanceof n?(t.thumbs.swiper=e.swiper,yt.extend(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),yt.extend(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):yt.isObject(e.swiper)&&(t.thumbs.swiper=new n(yt.extend({},e.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),t.thumbs.swiperCreated=!0),t.thumbs.swiper.$el.addClass(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",t.thumbs.onThumbClick)},onThumbClick(){const t=this,e=t.thumbs.swiper;if(!e)return;const n=e.clickedIndex,a=e.clickedSlide;if(a&&kt(a).hasClass(t.params.thumbs.slideThumbActiveClass)||typeof n>"u"||n===null)return;let i;if(e.params.loop?i=parseInt(kt(e.clickedSlide).attr("data-swiper-slide-index"),10):i=n,t.params.loop){let r=t.activeIndex;t.slides.eq(r).hasClass(t.params.slideDuplicateClass)&&(t.loopFix(),t._clientLeft=t.$wrapperEl[0].clientLeft,r=t.activeIndex);const s=t.slides.eq(r).prevAll(`[data-swiper-slide-index="${i}"]`).eq(0).index(),l=t.slides.eq(r).nextAll(`[data-swiper-slide-index="${i}"]`).eq(0).index();typeof s>"u"?i=l:typeof l>"u"?i=s:l-r<r-s?i=l:i=s}t.slideTo(i)},update(t){const e=this,n=e.thumbs.swiper;if(!n)return;const a=n.params.slidesPerView==="auto"?n.slidesPerViewDynamic():n.params.slidesPerView;if(e.realIndex!==n.realIndex){let s=n.activeIndex,l;if(n.params.loop){n.slides.eq(s).hasClass(n.params.slideDuplicateClass)&&(n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft,s=n.activeIndex);const c=n.slides.eq(s).prevAll(`[data-swiper-slide-index="${e.realIndex}"]`).eq(0).index(),h=n.slides.eq(s).nextAll(`[data-swiper-slide-index="${e.realIndex}"]`).eq(0).index();typeof c>"u"?l=h:typeof h>"u"?l=c:h-s===s-c?l=s:h-s<s-c?l=h:l=c}else l=e.realIndex;n.visibleSlidesIndexes&&n.visibleSlidesIndexes.indexOf(l)<0&&(n.params.centeredSlides?l>s?l=l-Math.floor(a/2)+1:l=l+Math.floor(a/2)-1:l>s&&(l=l-a+1),n.slideTo(l,t?0:void 0))}let i=1;const r=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(i=e.params.slidesPerView),n.slides.removeClass(r),n.params.loop||n.params.virtual)for(let s=0;s<i;s+=1)n.$wrapperEl.children(`[data-swiper-slide-index="${e.realIndex+s}"]`).addClass(r);else for(let s=0;s<i;s+=1)n.slides.eq(e.realIndex+s).addClass(r)}};var aC={name:"thumbs",params:{thumbs:{swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create(){const t=this;yt.extend(t,{thumbs:{swiper:null,init:Vc.init.bind(t),update:Vc.update.bind(t),onThumbClick:Vc.onThumbClick.bind(t)}})},on:{beforeInit(){const t=this,{thumbs:e}=t.params;!e||!e.swiper||(t.thumbs.init(),t.thumbs.update(!0))},slideChange(){const t=this;t.thumbs.swiper&&t.thumbs.update()},update(){const t=this;t.thumbs.swiper&&t.thumbs.update()},resize(){const t=this;t.thumbs.swiper&&t.thumbs.update()},observerUpdate(){const t=this;t.thumbs.swiper&&t.thumbs.update()},setTransition(t){const n=this.thumbs.swiper;n&&n.setTransition(t)},beforeDestroy(){const t=this,e=t.thumbs.swiper;e&&t.thumbs.swiperCreated&&e&&e.destroy()}}};const iC=[B1,I1,D1,j1,R1,O1,K1,q1,H1,F1,W1,_1,V1,G1,U1,Y1,X1,Z1,J1,Q1,tC,eC,nC,aC];typeof En.use>"u"&&(En.use=En.Class.use,En.installModule=En.Class.installModule);En.use(iC);const rC=Object.freeze(Object.defineProperty({__proto__:null,default:En},Symbol.toStringTag,{value:"Module"})),oC=ky(rC);var oo={};Object.defineProperty(oo,"__esModule",{value:!0});var kl=Mn();oo.classNames=function(t){return typeof t=="string"?t.split(".").join(" ").trim():t instanceof HTMLElement?t.className:""};oo.validateChildren=function(t){var e=!0;return Array.isArray(t)?kl.Children.forEach(t,function(n){kl.isValidElement(n)||(e=!1)}):e=kl.isValidElement(t),e};oo.isReactElement=function(t){return kl.isValidElement(t)&&(typeof t.type=="string"||typeof t.type=="function"||typeof t.type=="object")};oo.isModuleAvailable=function(t,e){for(var n=!1,a=0;a<t.length;a++)if(t[a].name===e){n=!0;break}return n};var Jd=ii&&ii.__assign||function(){return Jd=Object.assign||function(t){for(var e,n=1,a=arguments.length;n<a;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Jd.apply(this,arguments)},sC=ii&&ii.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e},Dy=ii&&ii.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(wh,"__esModule",{value:!0});var Sn=sC(Mn()),lC=Dy(oC),uC=Dy(mh),Ji=oo,Sh=function(t){var e=t.activeSlideKey,n=t.ContainerEl,a=t.children,i=t.containerClass,r=t.getSwiper,s=t.navigation,l=t.noSwiping,c=t.pagination,h=t.parallax,m=t.parallaxEl,k=t.WrapperEl,w=t.wrapperClass,P=t.rebuildOnUpdate,E=t.renderScrollbar,z=t.renderPagination,A=t.renderPrevButton,x=t.renderNextButton,S=t.renderParallax,N=t.rtl,L=t.scrollbar,j=t.shouldSwiperUpdate,f=t.slideClass,U=t.loop,_=Sn.createRef(),F=Sn.useRef(null);if(!a||!n||!k)return null;if(!Ji.validateChildren(a))return console.warn("Children should be react element or an array of react element!!"),null;var gt=function(){if(!e)return null;var v=0,Q=U?1:0;return Sn.Children.forEach(a,function(st){Sn.isValidElement(st)&&(st.key===e&&(v=Q),Q+=1)}),v},dt=function(v){typeof r=="function"&&r(v)},ot=function(){F.current!==null&&(F.current.destroy(!0,!0),F.current=null,dt(F.current))},X=function(){_.current&&F.current===null&&(F.current=new lC.default(_.current,uC.default({},t)),dt(F.current))},$=function(){ot(),X()},o=function(){F.current!==null&&(F.current.update(),dt(F.current))},tt=function(v){if(!Ji.isReactElement(v))return null;var Q=[f,v.props.className];return l&&Q.push("swiper-no-swiping"),Sn.cloneElement(v,Jd({},v.props,{className:Q.join(" ").trim()}))};return Sn.useEffect(function(){X();var v=gt();return F.current!==null&&v!==null&&F.current.slideTo(v),function(){return ot()}},[]),Sn.useEffect(function(){if(F.current!==null){if(P)$();else if(j){o();var v=F.current.slides.length;if(v<=F.current.activeIndex){var Q=Math.max(v-1,0);F.current.slideTo(Q)}}var st=gt();st!==null&&F.current.slideTo(st)}}),Sn.default.createElement(n,{className:i,dir:N&&"rtl",ref:_},h&&m&&S&&S(t),Sn.default.createElement(k,{className:w},Sn.Children.map(a,tt)),c&&c.el&&z&&z(t),L&&L.el&&E&&E(t),s&&s.nextEl&&x&&x(t),s&&s.prevEl&&A&&A(t))};Sh.defaultProps={containerClass:"swiper-container",wrapperClass:"swiper-wrapper",slideClass:"swiper-slide",ContainerEl:"div",WrapperEl:"div",renderScrollbar:function(t){var e=t.scrollbar;return e?Sn.default.createElement("div",{className:Ji.classNames(e.el)}):null},renderPagination:function(t){var e=t.pagination;return e?Sn.default.createElement("div",{className:Ji.classNames(e.el)}):null},renderPrevButton:function(t){var e=t.navigation;return e?Sn.default.createElement("div",{className:Ji.classNames(e.prevEl)}):null},renderNextButton:function(t){var e=t.navigation;return e?Sn.default.createElement("div",{className:Ji.classNames(e.nextEl)}):null},renderParallax:function(t){var e=t.parallaxEl;return e?Sn.default.createElement("div",{className:Ji.classNames(e.el),"data-swiper-parallax":e.value}):null}};Sh.displayName="ReactIdSwiper";wh.default=Sh;var cC=ii&&ii.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(zy,"__esModule",{value:!0});var dC=cC(wh),fC=zy.default=dC.default;(function(){function t(N,L){var j=N.search(P);if(j===-1)return{b:L+" "+N,a:""};if(N[j]===",")return{b:L+" "+N.substr(0,j),a:N.substr(j+1)};var f=!0,U=!1;j=N.search(/\S/);var _=0;t:for(;j<N.length;++j){var F=N[j];switch(F){case"[":F=w.exec(N.substr(j)),j+=(F?F[0].length:1)-1;continue;case"(":++_;continue;case":":if(f)if(E.test(N.substr(j))){if(_)return null}else continue;else continue;N=N.substring(0,j)+L+N.substr(j+6),j+=L.length,U=!0,--j;continue;case")":_&&--_;continue}if(!_)switch(F){case",":break t;case" ":case">":case"~":case"+":f&&(f=!1)}}return{b:(U?"":L+" ")+N.substr(0,j),a:N.substr(j+1)}}function e(N,L,j,f){if(N instanceof CSSMediaRule)for(j=N.cssRules.length,f=0;f<j;++f)e(N.cssRules[f],L,N,f);else if(N instanceof CSSStyleRule){t:{for(var U=N.selectorText,_=[];U;){if(U=t(U,L),U===null){L=":not(*)";break t}_.push(U.b),U=U.a}L=_.join(", ")}m?N.selectorText=L:(N=N.style.cssText,j.deleteRule(f),j.insertRule(L+" {"+N+"}",f))}}function n(N,L){var j=N.parentStyleSheet,f;for(f=0;f<j.rules.length&&j.rules[f]!==N;++f);return j.removeRule(f),j.insertRule(L,f),j.rules[f]}function a(N){var L=null;try{L=N.cssRules}catch(j){if(j instanceof DOMException)return j;throw j}return L?null:{code:DOMException.SECURITY_ERR}}function i(N,L,j){j?N.setAttribute(L,""):N.removeAttribute(L)}function r(N,L,j){j?N.classList.add(L):N.classList.remove(L)}function s(N){var L=N.scoped&&document.body.contains(N)?N.parentNode:null,j=k.get(N);if(j){if(L)N.sheet&&z(N.sheet,j.prefix);else{k.delete(N);var f=N.textContent;N.textContent="",N.textContent=f}return j.parent!==L&&(j.parent&&A(j.parent,j.attrName,!1),L&&A(L,j.attrName,!0),j.parent=L),!1}L&&(j=""+h.prefix+ ++x,f=A===i?"["+j+"]":"."+j,k.set(N,{attrName:j,prefix:f,parent:N.parentNode}),z(N.sheet,f),A(L,j,!0))}function l(){var N=window.scopedCSS;if(typeof N=="object"){for(var L in h)L in N&&(h[L]=N[L]);h.applyToClass&&(A=r)}for(S.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["scoped"]}),N=document.body.getElementsByTagName("style"),L=0;L<N.length;++L)s(N[L])}var c=document.createElement("style");if(!("scoped"in c)){var h={applyToClass:!1,prefix:"__scoped_"};c.textContent=".x{color:red;}",document.head.appendChild(c),c.sheet.cssRules[0].selectorText=".change";var m=c.sheet.cssRules[0].selectorText===".change";document.head.removeChild(c),Object.defineProperty(HTMLStyleElement.prototype,"scoped",{enumerable:!0,get:function(){return this.hasAttribute("scoped")},set:function(N){N?this.setAttribute("scoped",this.getAttribute("scoped")||""):this.removeAttribute("scoped")}});var k=new Map,w=/^\[.*?(?:(["'])(?:.|\\\1)*\1.*)*\]/,P=/([([,]|:scope\b)/,E=/^:scope\b/,z=function(){function N(_,F){if(L.get(_)!==F){var gt=a(_);if(gt)switch(gt.code){case DOMException.SECURITY_ERR:var dt=new XMLHttpRequest;dt.responseType="blob",dt.open("GET",_.href);var ot=n(_.ownerRule,"@import url('data:text/css;base64,')");dt.onload=function(){var o=URL.createObjectURL(dt.response),tt=n(ot,"@import '"+o+"'");j.set(tt,F),U(),URL.revokeObjectURL(o)},dt.send();return;case DOMException.INVALID_ACCESS_ERR:f.set(_,F),U();return;default:throw gt}L.set(_,F),gt=_.cssRules.length;for(var X=0;X<gt;++X){var $=_.cssRules[X];$ instanceof CSSImportRule?$.styleSheet?N($.styleSheet,F):(j.set($,F),U()):e($,F,_,X)}return!0}}var L=new WeakMap,j=new Map,f=new Map,U=function(){function _(){var gt=!1;F=0,j.forEach(function(dt,ot){if(ot.styleSheet)N(ot.styleSheet,dt);else{t:{for(dt=ot.parentStyleSheet;dt;){if(dt.ownerNode){dt=dt.ownerNode;break t}dt=dt.parentStyleSheet}dt=null}if(dt){gt=!0;return}}j.delete(ot)}),f.forEach(function(dt,ot){a(ot)?gt=!0:(N(ot,dt),f.delete(ot))}),gt&&(F=window.requestAnimationFrame(_))}var F=0;return function(){F=F||window.requestAnimationFrame(_)}}();return N}(),A=i,x=0,S=new MutationObserver(function(N){function L(f){for(var U=f?f.length:0;U;){var _=f[--U];if(_ instanceof HTMLElement)if(_ instanceof HTMLStyleElement)j.add(_);else{_=_.getElementsByTagName("style");for(var F=_.length;F;)j.add(_[--F])}}}var j=new Set;N.forEach(function(f){f.target instanceof HTMLStyleElement?j.add(f.target):(L(f.addedNodes),L(f.removedNodes))}),j.forEach(s)});document.readyState==="loading"?window.addEventListener("DOMContentLoaded",l):l()}})();class ur{constructor(){this.handlers=[]}subscribe(e){this.handlers.indexOf(e)===-1&&this.handlers.push(e)}unsubscribe(e){this.handlers=this.handlers.filter(n=>n!==e)}raise(e){this.handlers.slice(0).forEach(n=>n(e))}}class hC{static getActualUrlFromCSSPropertyValue(e){const n=e.match(/.*url\((['"])(.*?)\1\).*/i);return n?n[2]:""}}const Ma=class Ma{constructor(){this.animationDuration=3e3,this.animatableCanvas=null,window.addEventListener("orientationchange",()=>window.setTimeout(()=>this.adjustAnimationWrapper(this.currentPage),200))}static pageHasAnimation(e){return!!Ma.getAnimatableCanvas(e)}static getAnimationCanvas(e){if(e.firstElementChild&&e.firstElementChild.classList.contains("bloom-animationBackground")){const n=e.firstElementChild;if(n.firstElementChild&&n.firstElementChild.classList.contains(Ma.wrapperClassName)){const a=n.firstElementChild;if(a.firstElementChild&&a.firstElementChild.hasAttribute("data-initialrect"))return a.firstElementChild}}return null}static getAnimatableCanvas(e){const n=[].slice.call(e.getElementsByClassName("bloom-canvas")).find(a=>!a.closest(".bloom-animationBackground")&&!!a.dataset.initialrect);return n||[].slice.call(e.getElementsByClassName("bloom-imageContainer")).find(a=>!!a.dataset.initialrect)}HandlePageBeforeVisible(e){this.shouldAnimate(e)||this.removeAnimationWrappers(e)}HandlePageVisible(e,n){this.shouldAnimate(e)&&(this.currentPage=e,this.animatableCanvas=Ma.getAnimatableCanvas(e),this.currentPage===this.lastDurationPage&&this.setupAnimation(e,n))}HandlePageDurationAvailable(e,n,a){this.shouldAnimate(e)&&(this.animationDuration=n,this.lastDurationPage=e,this.currentPage===this.lastDurationPage&&this.setupAnimation(e,a))}resumeAnimation(){!this.PlayAnimations||!this.animationEngine||this.animationEngine.resume()}PauseAnimation(){!this.PlayAnimations||!this.animationEngine||this.animationEngine.pause()}setupAnimation(e,n){if(!this.PlayAnimations||!this.animatableCanvas)return;let a=e.firstElementChild,i=null;if(!a||!a.classList.contains("bloom-animationBackground")){a=document.createElement("div");for(let l=0;l<this.animatableCanvas.classList.length;l++)a.classList.add(this.animatableCanvas.classList[l]);a.classList.add("bloom-animationBackground");const r=this.animatableCanvas.cloneNode(!0),s=()=>{const l=this.animatableCanvas.style.backgroundImage;l?r.style.backgroundImage=l:requestAnimationFrame(s)};r.hasAttribute("data-imgsizebasedon")||requestAnimationFrame(s),i=document.createElement("div"),i.classList.add(Ma.wrapperClassName),i.appendChild(r),i.style.visibility="hidden",a.appendChild(i),e.insertBefore(a,e.firstChild),this.applyCanvasAspectRatioToAnimationWrapper(e,i,r,n)}else i=a.firstElementChild,i.hasAttribute("data-aspectRatio")?(this.placeAnimationWrapper(i),this.createAndPlayAnimation(e,n)):this.applyCanvasAspectRatioToAnimationWrapper(e,i,i.firstElementChild,n)}createAndPlayAnimation(e,n){const a=Ma.getAnimationCanvas(e);if(this.animationEngine&&this.animationEngine.endAnimation(),a){const i=a.getAttribute("data-initialrect"),r=a.getAttribute("data-finalrect");this.animationEngine=new pC(i,r,this.animationDuration,a),n?this.animationEngine.setCurrentAnimationFrame():this.animationEngine.startAnimation()}}applyCanvasAspectRatioToAnimationWrapper(e,n,a,i){if(e.hasAttribute("data-aspectRatio"))this.placeAnimationWrapper(n),this.createAndPlayAnimation(e,i);else if(a.hasAttribute("data-imgsizebasedon")){const r=a.getAttribute("data-imgsizebasedon").split(",").map(parseFloat);n.setAttribute("data-aspectRatio",(r[0]/r[1]).toString()),this.placeAnimationWrapper(n),this.createAndPlayAnimation(e,i)}else{const r=()=>{if(a.style.backgroundImage){const s=new Image;s.addEventListener("load",()=>{n.setAttribute("data-aspectRatio",(s.naturalWidth/s.naturalHeight).toString()),this.placeAnimationWrapper(n),this.createAndPlayAnimation(e,i)}),s.src=hC.getActualUrlFromCSSPropertyValue(a.style.backgroundImage)}else requestAnimationFrame(r)};requestAnimationFrame(r)}}placeAnimationWrapper(e){const n=parseFloat(e.getAttribute("data-aspectRatio")),a=e.parentElement,i=a.clientWidth,r=a.clientHeight,s=i/r;if(n<s){const l=r*n;e.style.height="100%",e.style.width=`${l}px`,e.style.left=`${(i-l)/2}px`}else{const l=i/n;e.style.width="100%",e.style.height=`${l}px`,e.style.top=`${(r-l)/2}px`}e.style.overflow="hidden",e.style.visibility="visible",this.placeCanvasByScale(e,e.firstElementChild)}placeCanvasByScale(e,n){if(n.hasAttribute("data-imgsizebasedon")){const a=n.getAttribute("data-imgsizebasedon").split(",").map(parseFloat),i=[e.clientWidth,e.clientHeight];n.style.width=`${a[0]}px`,n.style.height=`${a[1]}px`,n.style.scale=`${i[0]/a[0]}`,n.style.top=`${(i[1]-a[1])/2}px`,n.style.left=`${(i[0]-a[0])/2}px`}}adjustAnimationWrapper(e){if(!e)return;if(!this.shouldAnimate(e)){this.removeAnimationWrappers(e);return}const n=this.getAnimationWrapper(e);n&&this.placeAnimationWrapper(n)}getAnimationWrapper(e){if(!e)return null;const n=Ma.getAnimationCanvas(e);if(!n||n.children.length!==1)return null;const a=n.firstElementChild;return a.classList.contains(Ma.wrapperClassName)?a:null}removeAnimationWrappers(e){e.firstElementChild&&e.firstElementChild.classList.contains("bloom-animationBackground")&&e.removeChild(e.firstElementChild)}shouldAnimate(e){return this.PlayAnimations&&e.getAttribute("class").indexOf("Landscape")>=0}};Ma.wrapperClassName="bloom-ui-animationWrapper";let Kl=Ma;class pC{constructor(e,n,a,i){this.duration=a*1e3,this.totalElapsedTime=0,this.lastFrameTime=Date.now(),this.paused=!0,this.canvasToAnimate=i;const r=e.split(" ").map(parseFloat),s=n.split(" ").map(parseFloat);r.length!=4||s.length!=4||Math.min(...s)<0||Math.min(...r)<0||r[0]+r[2]>1.01||r[1]+r[3]>1.01||s[0]+s[2]>1.01||s[1]+s[3]>1.01?(this.initialScale=1,this.finalScale=1,this.initialLeft=0,this.finalLeft=0,this.initialTop=0,this.finalTop=0):(r[0],s[0],r[1],s[1],this.initialScale=1/Math.min(r[2],r[3]),this.initialScale==1&&(this.initialScale=1.0001),this.finalScale=1/Math.min(s[2],s[3]),this.finalScale==1&&(this.finalScale=1.0001),this.initialLeft=this.initialScale*100*(.5-(.5*r[2]+r[0])),this.initialTop=this.initialScale*100*(.5-(.5*r[3]+r[1])),this.finalLeft=this.finalScale*100*(.5-(.5*s[2]+s[0])),this.finalTop=this.finalScale*100*(.5-(.5*s[3]+s[1])))}getScaleAndPosition(){let e=this.totalElapsedTime/this.duration;e=Math.min(1,Math.max(0,e));const n=this.easingFunction(e),a=this.initialScale+(this.finalScale-this.initialScale)*n,i=this.initialLeft+(this.finalLeft-this.initialLeft)*n,r=this.initialTop+(this.finalTop-this.initialTop)*n;return{scale:a,left:i,top:r}}easingFunction(e){return-1*(Math.cos(e*Math.PI)-1)/2}advanceAnimation(){if(this.paused)return;const e=Date.now();this.totalElapsedTime+=e-this.lastFrameTime,!(this.totalElapsedTime>=this.duration)&&(this.setCurrentAnimationFrame(),this.lastFrameTime=e,requestAnimationFrame(()=>this.advanceAnimation()))}setCurrentAnimationFrame(){const{scale:e,left:n,top:a}=this.getScaleAndPosition();this.canvasToAnimate.style.transform=`translate(${n}%, ${a}%) scale(${e})`}pause(){this.paused=!0}resume(){this.paused=!1,this.lastFrameTime=Date.now(),this.advanceAnimation()}startAnimation(){this.paused=!1,this.totalElapsedTime=0,this.lastFrameTime=Date.now(),this.advanceAnimation()}endAnimation(){this.totalElapsedTime=this.duration+1}}var Ge=(t=>(t[t.NewPage=0]="NewPage",t[t.NewPageMediaPaused=1]="NewPageMediaPaused",t[t.VideoPlaying=2]="VideoPlaying",t[t.VideoPaused=3]="VideoPaused",t[t.AudioPlaying=4]="AudioPlaying",t[t.AudioPaused=5]="AudioPaused",t[t.MediaFinished=6]="MediaFinished",t))(Ge||{});let mn=0;function Tn(t){mn=t}let Qd;function gC(t){Qd=t}let xl;function mC(t){xl=t}let jy=()=>{};function vC(t){jy=t??(()=>{})}let tf="";function yC(t){tf=t}function bC(t){const e=t.lastIndexOf("/");return t.substring(0,e)}function Ch(){return tf||bC(window.location.href)}function wC(t){const e=t.map((n,a)=>({tabindex:kC(n),index:a,item:n}));return e.sort((n,a)=>!n.tabindex||!a.tabindex||n.tabindex===a.tabindex?n.index-a.index:parseInt(n.tabindex,10)-parseInt(a.tabindex,10)),e.map(n=>n.item)}function kC(t){let e=t;for(;e&&!e.classList.contains("bloom-translationGroup");)e=e.parentElement;return e&&e.getAttribute("tabindex")||"999"}const xC="bloom-highlightSegment",Ry="ui-enableHighlight",Th="ui-disableHighlight",Gc="ui-suppressHighlight";let $l=3;function SC(t){$l=t}const ql="audio-sentence",Oy="bloom-imageDescription";let Li=null,Oo=0;function Ky(t){t!==Li&&(Oo&&clearTimeout(Oo),Oo=setTimeout(()=>{Oo=0},3e3),Li=t)}function $y(){return Li}let Eh,Hl,Yo="",La=[],ki=[];const na=new ur,Qa=new ur,Ar=new ur,za=new ur;let hs=0,qy=!0;function CC(t){qy=t}let Fl=null;function Hy(t,e){if(!t&&!Li)return;const n=t??Li;Pu(Lh(n,e),n)}function Pu(t,e){Ky(e),Hl=t;const n=zi();n&&(t.length==0&&n.pause(),n.currentTime=0),++hs,TC(t),La=wC(t).reverse();const a=La.length;if(a===0){Qa&&(Qa==null||Qa.raise(e)),Tn(4),na&&(Eh=window.setTimeout(()=>{Tn(6),na==null||na.raise(e)},$l*1e3));return}const i=La[a-1];Xy(i,!0),Tn(4),Vy()}const Fy=/[ \u00a0\u200b]{3,}/,nl=new RegExp(Fy,"g");function TC(t){t.forEach(e=>{Nh("span[id]:not(.bloom-linebreak)",e,!0).forEach(a=>{Wy(a),!!a.innerText.match(Fy)&&_y(a,a)})})}function Wy(t){t.classList.remove(Th),t.classList.remove(Ry),Array.from(t.children).forEach(e=>{Wy(e)})}function _y(t,e){if(!(t.nodeType===Node.ELEMENT_NODE&&t.classList.contains(Th)))if(t.nodeType===Node.TEXT_NODE){EC(t,e);return}else Array.from(t.childNodes).forEach(a=>{_y(a,e)})}function EC(t,e){if(t.nodeType!==Node.TEXT_NODE)throw new Error("Invalid argument to fixMultiSpaceInTextNode: node must be a TextNode");if(!t.nodeValue)return;nl.lastIndex=0;const n=[];let a;for(;(a=nl.exec(t.nodeValue))!=null;)a.forEach(s=>{n.push({text:s,startIndex:nl.lastIndex-s.length,endIndex:nl.lastIndex})});const i=[];if(n.length===0)i.push(Uc(t.nodeValue));else{let s=0;for(let l=0;l<n.length;++l){const c=n[l],h=t.nodeValue.slice(s,c.startIndex);if(s=c.endIndex,h&&i.push(Uc(h)),i.push(document.createTextNode(c.text)),l===n.length-1){const m=t.nodeValue.slice(c.endIndex);m&&i.push(Uc(m))}}}const r=t;if(r.parentNode&&i&&i.length>0){for(let s=0;s<i.length;++s){const l=i[s];r.parentNode.insertBefore(l,r)}r.parentNode.removeChild(r),e.classList.add(Th)}}function Uc(t){const e=document.createElement("span");return e.classList.add(Ry),e.appendChild(document.createTextNode(t)),e}function Vy(){if(mn===4){const t=zi();if(t){const e=$y().querySelector(`#${Yo}`);if(!e||!KC()){Mu();return}ki=[];const n=e.getAttribute("data-audioRecordingEndTimes");if(n){const r=e.querySelectorAll(`span.${xC}`),s=n.split(" "),l=Math.min(s.length,r.length);for(let c=l-1;c>=0;--c){const h=Number(s[c]);isNaN(h)||ki.push([r.item(c),h])}}const a=e;a&&za&&(za==null||za.raise(Gy(a))),ef=!1;const i=t.play();++hs,Fl=new Date().getTime(),Ph(hs),Uy(i)}}}function Gy(t){return t.closest("."+Oy)!==null}function Uy(t,e){t&&t.catch&&t.catch(n=>{console.log("could not play sound: "+n+" "+"unknown"),n&&n.toString().includes("The play() request was interrupted by a call to pause().")&&console.log("See comment in narration.ts for possibly useful information regarding this error."),n.name==="NotAllowedError"&&Ar&&(Ar==null||Ar.raise())})}function Ph(t,e=0){const n=ki.length;if(n<=0)return;const a=ki[n-1],i=a[0],r=a[1];Zy({newElement:i,shouldScrollToElement:!0,disableHighlightIfNoAudio:!1});let l=document.getElementById("bloom-audio-player").currentTime;l<=0&&(l=e);const c=Math.max(r-l,.1);setTimeout(()=>{Yy(t)},c*1e3)}function Yy(t){if(t!==hs||mn===5)return;const e=ki.length;if(e<=0)return;const n=document.getElementById("bloom-audio-player");if(n.ended||n.error)return;const a=n.currentTime,r=ki[e-1][1];if(a&&a<r){const s=r-a;setTimeout(()=>{Yy(t)},s*1e3);return}ki.pop(),Ph(t,r)}function Mh(t=document.body){const e=Array.from(t.ownerDocument.getElementsByClassName("ui-audioCurrent"));for(let a=0;a<e.length;a++)e[a].classList.remove("ui-audioCurrent");const n=t.ownerDocument.getElementsByClassName("ui-audioCurrentImg")[0];n&&n.classList.remove("ui-audioCurrentImg")}function Xy(t,e,n){AC(t),Zy({newElement:t,shouldScrollToElement:!0,disableHighlightIfNoAudio:e,oldElement:n})}function Zy({newElement:t,shouldScrollToElement:e,disableHighlightIfNoAudio:n,oldElement:a}){if(e)try{PC(t)}catch(l){console.error(l)}if(a===t)return;Mh(a||t);const i=zi(),r=i.error!==null;!r&&n&&(i.currentTime>0||(t.classList.add(Gc),i.addEventListener("playing",()=>{t.classList.remove(Gc)}),i.addEventListener("error",()=>{t.classList.remove("ui-audioCurrent"),t.classList.remove(Gc)}))),r||t.classList.add("ui-audioCurrent");const s=t.closest(".bloom-translationGroup");if(s&&s.classList.contains(Oy)){const l=s.closest(".bloom-imageContainer, .bloom-canvas");l&&l.classList.add("ui-audioCurrentImg")}}function PC(t){var n,a;if(xl!=null&&xl()||Oo){const i=MC(t);i&&(i.scrollTop=0);return}let e=t;if(window.getComputedStyle(t.parentElement).position!=="static"){const i=t;e=document.createElement("div"),e.style.position="absolute",e.style.top=i.offsetTop+"px";const r=i.getBoundingClientRect(),s=i.parentElement,l=s==null?void 0:s.getBoundingClientRect(),c=l.width/s.offsetWidth,h=(r.left-l.left)/c;e.style.left=h+i.offsetWidth/2+"px",e.style.height=i.offsetHeight+"px",e.style.width="0",(n=t.parentElement)==null||n.insertBefore(e,t)}e.scrollIntoView({behavior:"smooth",block:"nearest"}),e!==t&&((a=e.parentElement)==null||a.removeChild(e))}function MC(t){return t.classList.contains("bloom-editable")?t:t.closest(".bloom-editable")}function AC(t){const e=NC(t),n=e?e.id:t.id;zC(n)}function NC(t){const e=LC(t);return!e||e.length===0?null:e[0]}function LC(t){const e=[];if(t)if(t.classList.contains(ql))e.push(t);else{const n=t.getElementsByClassName(ql);for(let a=0;a<n.length;++a){const i=n.item(a);i&&e.push(i)}}return e}function zC(t){(!Yo||Yo!==t)&&(Yo=t,BC())}function BC(){const t=zi();if(!t)return;t.currentTime>0&&!t.paused&&!t.ended&&Ah();const e=IC(Yo);jy(e),t.setAttribute("src",e+"?nocache="+new Date().getTime()+"&optional=true")}function IC(t){return Ch()+"/audio/"+t+".mp3"}function zi(){return OC("bloom-audio-player",e=>{e.addEventListener("ended",DC),e.addEventListener("error",$C)})}function DC(){Mu()}function jC(){mn===4&&Mu(!1)}function Mu(t=!0){if(za&&(za==null||za.raise(!1)),Ah(),La&&La.length>0){const e=La.pop(),n=La.length;if(n>0&&t){const a=La[n-1];Xy(a,!0),Vy()}else RC(),Mh(e),zi().pause()}}function RC(){La=[],ki=[],Mh(),na==null||na.raise(Li),Qa==null||Qa.raise()}function Ah(){if(!Fl||!Qd)return;const e=(new Date().getTime()-Fl)/1e3;Qd(e)}function OC(t,e){let n=document.querySelector("#"+t);return n&&!n.play&&(n.remove(),n=null),n||(n=document.createElement("audio"),n.setAttribute("id",t),document.body.appendChild(n),e(n)),n}function KC(t){return!0}let ef=!1;function $C(){if(ef){console.log("Already got error playing, not handling again");return}ef=!0,console.log("Error playing, handling"),setTimeout(()=>{Mu()},100)}function Nh(t,e,n=!1){const a=[].slice.call((e||document).querySelectorAll(t));return n&&e&&e.matches(t)&&a.push(e),qy?a:a.filter(i=>!Gy(i))}function qC(t,e){var n=Nh(".bloom-editable",t).filter(a=>window.getComputedStyle(a).display!=="none");return e&&(n=n.filter(a=>!e.contains(a))),n}function HC(t,e){return qC(t||Li,e)}function Lh(t,e){return[].concat.apply([],HC(t,e).map(n=>Nh(".audio-sentence",n,!0)))}function FC(t){return!!Lh(t).length}function WC(){if(mn!==4){if(Tn(4),Hl.length&&zi())if(La.length){Uy(zi().play()),Fl=new Date().getTime(),Ph(hs);return}else{Hy(null);return}na==null||na.raise(Li)}}function _C(){mn!==5&&(VC(),Tn(5))}function VC(){const t=zi();clearTimeout(Eh),Hl&&Hl.length&&t&&(t.currentTime>0&&!t.paused&&!t.ended&&Ah(),t.pause())}function am(t){let e=0;return Lh(t).forEach(n=>{const a=n.getAttribute("data-duration");a&&(e+=parseFloat(a))}),e<$l&&(e=$l),e}function GC(){clearTimeout(Eh),zh()}let Nr=0,Lr;function zh(){Nr++,Lr&&(Lr.pause(),Lr.currentTime=0,Lr=void 0)}function Jy(t,e=()=>!0){let n=!1;const a=()=>{if(n||!t.paused)return;const i=()=>{window.clearTimeout(r),e()&&setTimeout(()=>{e()&&t.pause()},4)};t.addEventListener("playing",i,{once:!0});const r=window.setTimeout(()=>{t.removeEventListener("playing",i)},1e3),s=t.play();s&&s.catch&&s.catch(()=>{window.clearTimeout(r),t.removeEventListener("playing",i)})};if(t.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA)a();else{let i;const r=()=>{t.removeEventListener("play",i),a()};i=()=>{n=!0,t.removeEventListener("loadeddata",r),t.removeEventListener("play",i)},t.addEventListener("play",i,{once:!0}),t.addEventListener("loadeddata",r,{once:!0})}}function Qy(t,e){const n=++Nr;Sl(t,e,n)}function Sl(t,e,n){if(n!==Nr)return;if(t.length===0){Lr=void 0,e();return}const a=t[0];Lr=a,a.networkState===HTMLMediaElement.NETWORK_NO_SOURCE&&a.readyState===HTMLMediaElement.HAVE_NOTHING?(Wl(a),Sl(t.slice(1),e,n)):(tb(a),Tn(2),a.play().then(()=>{n===Nr&&a.addEventListener("ended",()=>{n===Nr&&Sl(t.slice(1),e,n)},{once:!0})}).catch(r=>{n===Nr&&(console.error("Video play failed",r),Wl(a),Sl(t.slice(1),e,n))}))}const UC="Sorry, this video cannot be played in this browser.";function Wl(t){const e=t.parentElement;if(e&&e.getElementsByClassName("video-error-message").length===0){const a=e.ownerDocument.createElement("div");a.className="video-error-message normal-style",a.textContent=UC,a.style.display="block",a.style.color="black",a.style.backgroundColor="rgba(255, 255, 255, 0.5)",a.style.position="absolute",a.style.left="10%",a.style.top="10%",a.style.width="80%",a.style.fontSize="x-large",e.appendChild(a)}}function tb(t){const e=t.parentElement;if(e){const n=e.getElementsByClassName("video-error-message");for(;n.length>0;)e.removeChild(n[0])}}const YC=t=>{const e=document.createElement("div");return e.innerHTML=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
18
|
+
`),function(h){if(l=h.indexOf(":"),r=t.trim(h.substr(0,l)).toLowerCase(),s=t.trim(h.substr(l+1)),r){if(i[r]&&e.indexOf(r)>=0)return;r==="set-cookie"?i[r]=(i[r]?i[r]:[]).concat([s]):i[r]=i[r]?i[r]+", "+s:s}}),i},zc}var Bc,jg;function kx(){if(jg)return Bc;jg=1;var t=la;return Bc=t.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a"),i;function r(s){var l=s;return n&&(a.setAttribute("href",l),l=a.href),a.setAttribute("href",l),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return i=r(window.location.href),function(l){var c=t.isString(l)?r(l):l;return c.protocol===i.protocol&&c.host===i.host}}():function(){return function(){return!0}}(),Bc}var Ic,Rg;function xx(){if(Rg)return Ic;Rg=1;var t=la;return Ic=t.isStandardBrowserEnv()?function(){return{write:function(a,i,r,s,l,c){var h=[];h.push(a+"="+encodeURIComponent(i)),t.isNumber(r)&&h.push("expires="+new Date(r).toGMTString()),t.isString(s)&&h.push("path="+s),t.isString(l)&&h.push("domain="+l),c===!0&&h.push("secure"),document.cookie=h.join("; ")},read:function(a){var i=document.cookie.match(new RegExp("(^|;\\s*)("+a+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(a){this.write(a,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Ic}var Dc,Og;function Kg(){if(Og)return Dc;Og=1;var t=la,e=yx(),n=bx(),a=wx(),i=kx(),r=Py();return Dc=function(l){return new Promise(function(h,m){var k=l.data,w=l.headers;t.isFormData(k)&&delete w["Content-Type"];var P=new XMLHttpRequest;if(l.auth){var E=l.auth.username||"",z=l.auth.password||"";w.Authorization="Basic "+btoa(E+":"+z)}if(P.open(l.method.toUpperCase(),n(l.url,l.params,l.paramsSerializer),!0),P.timeout=l.timeout,P.onreadystatechange=function(){if(!(!P||P.readyState!==4)&&!(P.status===0&&!(P.responseURL&&P.responseURL.indexOf("file:")===0))){var N="getAllResponseHeaders"in P?a(P.getAllResponseHeaders()):null,L=!l.responseType||l.responseType==="text"?P.responseText:P.response,j={data:L,status:P.status,statusText:P.statusText,headers:N,config:l,request:P};e(h,m,j),P=null}},P.onerror=function(){m(r("Network Error",l,null,P)),P=null},P.ontimeout=function(){m(r("timeout of "+l.timeout+"ms exceeded",l,"ECONNABORTED",P)),P=null},t.isStandardBrowserEnv()){var A=xx(),x=(l.withCredentials||i(l.url))&&l.xsrfCookieName?A.read(l.xsrfCookieName):void 0;x&&(w[l.xsrfHeaderName]=x)}if("setRequestHeader"in P&&t.forEach(w,function(N,L){typeof k>"u"&&L.toLowerCase()==="content-type"?delete w[L]:P.setRequestHeader(L,N)}),l.withCredentials&&(P.withCredentials=!0),l.responseType)try{P.responseType=l.responseType}catch(S){if(l.responseType!=="json")throw S}typeof l.onDownloadProgress=="function"&&P.addEventListener("progress",l.onDownloadProgress),typeof l.onUploadProgress=="function"&&P.upload&&P.upload.addEventListener("progress",l.onUploadProgress),l.cancelToken&&l.cancelToken.promise.then(function(N){P&&(P.abort(),m(N),P=null)}),k===void 0&&(k=null),P.send(k)})},Dc}var jn=la,Sx=mx,Cx={"Content-Type":"application/x-www-form-urlencoded"};function $g(t,e){!jn.isUndefined(t)&&jn.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function Tx(){var t;return(typeof XMLHttpRequest<"u"||typeof process<"u")&&(t=Kg()),t}var Cu={adapter:Tx(),transformRequest:[function(e,n){return Sx(n,"Content-Type"),jn.isFormData(e)||jn.isArrayBuffer(e)||jn.isBuffer(e)||jn.isStream(e)||jn.isFile(e)||jn.isBlob(e)?e:jn.isArrayBufferView(e)?e.buffer:jn.isURLSearchParams(e)?($g(n,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):jn.isObject(e)?($g(n,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if(typeof e=="string")try{e=JSON.parse(e)}catch{}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};Cu.headers={common:{Accept:"application/json, text/plain, */*"}};jn.forEach(["delete","get","head"],function(e){Cu.headers[e]={}});jn.forEach(["post","put","patch"],function(e){Cu.headers[e]=jn.merge(Cx)});var bh=Cu,Ex=la;function Tu(){this.handlers=[]}Tu.prototype.use=function(e,n){return this.handlers.push({fulfilled:e,rejected:n}),this.handlers.length-1};Tu.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};Tu.prototype.forEach=function(e){Ex.forEach(this.handlers,function(a){a!==null&&e(a)})};var Px=Tu,Mx=la,Ax=function(e,n,a){return Mx.forEach(a,function(r){e=r(e,n)}),e},jc,qg;function My(){return qg||(qg=1,jc=function(e){return!!(e&&e.__CANCEL__)}),jc}var Nx=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)},Lx=function(e,n){return n?e.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):e},Hg=la,Rc=Ax,zx=My(),Bx=bh,Ix=Nx,Dx=Lx;function Oc(t){t.cancelToken&&t.cancelToken.throwIfRequested()}var jx=function(e){Oc(e),e.baseURL&&!Ix(e.url)&&(e.url=Dx(e.baseURL,e.url)),e.headers=e.headers||{},e.data=Rc(e.data,e.headers,e.transformRequest),e.headers=Hg.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),Hg.forEach(["delete","get","head","post","put","patch","common"],function(i){delete e.headers[i]});var n=e.adapter||Bx.adapter;return n(e).then(function(i){return Oc(e),i.data=Rc(i.data,i.headers,e.transformResponse),i},function(i){return zx(i)||(Oc(e),i&&i.response&&(i.response.data=Rc(i.response.data,i.response.headers,e.transformResponse))),Promise.reject(i)})},Rx=bh,Zr=la,Fg=Px,Ox=jx;function Eu(t){this.defaults=t,this.interceptors={request:new Fg,response:new Fg}}Eu.prototype.request=function(e){typeof e=="string"&&(e=Zr.merge({url:arguments[0]},arguments[1])),e=Zr.merge(Rx,{method:"get"},this.defaults,e),e.method=e.method.toLowerCase();var n=[Ox,void 0],a=Promise.resolve(e);for(this.interceptors.request.forEach(function(r){n.unshift(r.fulfilled,r.rejected)}),this.interceptors.response.forEach(function(r){n.push(r.fulfilled,r.rejected)});n.length;)a=a.then(n.shift(),n.shift());return a};Zr.forEach(["delete","get","head","options"],function(e){Eu.prototype[e]=function(n,a){return this.request(Zr.merge(a||{},{method:e,url:n}))}});Zr.forEach(["post","put","patch"],function(e){Eu.prototype[e]=function(n,a,i){return this.request(Zr.merge(i||{},{method:e,url:n,data:a}))}});var Kx=Eu,Kc,Wg;function Ay(){if(Wg)return Kc;Wg=1;function t(e){this.message=e}return t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,Kc=t,Kc}var $c,_g;function $x(){if(_g)return $c;_g=1;var t=Ay();function e(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var a;this.promise=new Promise(function(s){a=s});var i=this;n(function(s){i.reason||(i.reason=new t(s),a(i.reason))})}return e.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},e.source=function(){var a,i=new e(function(s){a=s});return{token:i,cancel:a}},$c=e,$c}var qc,Vg;function qx(){return Vg||(Vg=1,qc=function(e){return function(a){return e.apply(null,a)}}),qc}var Xd=la,Hx=xy,bl=Kx,Ny=bh;function Ly(t){var e=new bl(t),n=Hx(bl.prototype.request,e);return Xd.extend(n,bl.prototype,e),Xd.extend(n,e),n}var oi=Ly(Ny);oi.Axios=bl;oi.create=function(e){return Ly(Xd.merge(Ny,e))};oi.Cancel=Ay();oi.CancelToken=$x();oi.isCancel=My();oi.all=function(e){return Promise.all(e)};oi.spread=qx();vh.exports=oi;vh.exports.default=oi;var Fx=vh.exports,Wx=Fx;const ni=Ds(Wx);var zy={},wh={};function Gg(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function kh(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(function(n){typeof t[n]>"u"?t[n]=e[n]:Gg(e[n])&&Gg(t[n])&&Object.keys(e[n]).length>0&&kh(t[n],e[n])})}var va=typeof document<"u"?document:{},By={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};kh(va,By);var ya=typeof window<"u"?window:{},_x={document:By,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}}};kh(ya,_x);class pe{constructor(e){const n=this;for(let a=0;a<e.length;a+=1)n[a]=e[a];return n.length=e.length,this}}function kt(t,e){const n=[];let a=0;if(t&&!e&&t instanceof pe)return t;if(t){if(typeof t=="string"){let i,r;const s=t.trim();if(s.indexOf("<")>=0&&s.indexOf(">")>=0){let l="div";for(s.indexOf("<li")===0&&(l="ul"),s.indexOf("<tr")===0&&(l="tbody"),(s.indexOf("<td")===0||s.indexOf("<th")===0)&&(l="tr"),s.indexOf("<tbody")===0&&(l="table"),s.indexOf("<option")===0&&(l="select"),r=va.createElement(l),r.innerHTML=s,a=0;a<r.childNodes.length;a+=1)n.push(r.childNodes[a])}else for(!e&&t[0]==="#"&&!t.match(/[ .<>:~]/)?i=[va.getElementById(t.trim().split("#")[1])]:i=(e||va).querySelectorAll(t.trim()),a=0;a<i.length;a+=1)i[a]&&n.push(i[a])}else if(t.nodeType||t===ya||t===va)n.push(t);else if(t.length>0&&t[0].nodeType)for(a=0;a<t.length;a+=1)n.push(t[a])}return new pe(n)}kt.fn=pe.prototype;kt.Class=pe;kt.Dom7=pe;function xh(t){const e=[];for(let n=0;n<t.length;n+=1)e.indexOf(t[n])===-1&&e.push(t[n]);return e}function Vx(t){if(typeof t>"u")return this;const e=t.split(" ");for(let n=0;n<e.length;n+=1)for(let a=0;a<this.length;a+=1)typeof this[a]<"u"&&typeof this[a].classList<"u"&&this[a].classList.add(e[n]);return this}function Gx(t){const e=t.split(" ");for(let n=0;n<e.length;n+=1)for(let a=0;a<this.length;a+=1)typeof this[a]<"u"&&typeof this[a].classList<"u"&&this[a].classList.remove(e[n]);return this}function Ux(t){return this[0]?this[0].classList.contains(t):!1}function Yx(t){const e=t.split(" ");for(let n=0;n<e.length;n+=1)for(let a=0;a<this.length;a+=1)typeof this[a]<"u"&&typeof this[a].classList<"u"&&this[a].classList.toggle(e[n]);return this}function Xx(t,e){if(arguments.length===1&&typeof t=="string")return this[0]?this[0].getAttribute(t):void 0;for(let n=0;n<this.length;n+=1)if(arguments.length===2)this[n].setAttribute(t,e);else for(const a in t)this[n][a]=t[a],this[n].setAttribute(a,t[a]);return this}function Zx(t){for(let e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this}function Jx(t,e){let n;if(typeof e>"u"){if(n=this[0],n){if(n.dom7ElementDataStorage&&t in n.dom7ElementDataStorage)return n.dom7ElementDataStorage[t];const a=n.getAttribute(`data-${t}`);return a||void 0}return}for(let a=0;a<this.length;a+=1)n=this[a],n.dom7ElementDataStorage||(n.dom7ElementDataStorage={}),n.dom7ElementDataStorage[t]=e;return this}function Qx(t){for(let e=0;e<this.length;e+=1){const n=this[e].style;n.webkitTransform=t,n.transform=t}return this}function tS(t){typeof t!="string"&&(t=`${t}ms`);for(let e=0;e<this.length;e+=1){const n=this[e].style;n.webkitTransitionDuration=t,n.transitionDuration=t}return this}function eS(...t){let[e,n,a,i]=t;typeof t[1]=="function"&&([e,a,i]=t,n=void 0),i||(i=!1);function r(h){const m=h.target;if(!m)return;const k=h.target.dom7EventData||[];if(k.indexOf(h)<0&&k.unshift(h),kt(m).is(n))a.apply(m,k);else{const w=kt(m).parents();for(let P=0;P<w.length;P+=1)kt(w[P]).is(n)&&a.apply(w[P],k)}}function s(h){const m=h&&h.target?h.target.dom7EventData||[]:[];m.indexOf(h)<0&&m.unshift(h),a.apply(this,m)}const l=e.split(" ");let c;for(let h=0;h<this.length;h+=1){const m=this[h];if(n)for(c=0;c<l.length;c+=1){const k=l[c];m.dom7LiveListeners||(m.dom7LiveListeners={}),m.dom7LiveListeners[k]||(m.dom7LiveListeners[k]=[]),m.dom7LiveListeners[k].push({listener:a,proxyListener:r}),m.addEventListener(k,r,i)}else for(c=0;c<l.length;c+=1){const k=l[c];m.dom7Listeners||(m.dom7Listeners={}),m.dom7Listeners[k]||(m.dom7Listeners[k]=[]),m.dom7Listeners[k].push({listener:a,proxyListener:s}),m.addEventListener(k,s,i)}}return this}function nS(...t){let[e,n,a,i]=t;typeof t[1]=="function"&&([e,a,i]=t,n=void 0),i||(i=!1);const r=e.split(" ");for(let s=0;s<r.length;s+=1){const l=r[s];for(let c=0;c<this.length;c+=1){const h=this[c];let m;if(!n&&h.dom7Listeners?m=h.dom7Listeners[l]:n&&h.dom7LiveListeners&&(m=h.dom7LiveListeners[l]),m&&m.length)for(let k=m.length-1;k>=0;k-=1){const w=m[k];a&&w.listener===a||a&&w.listener&&w.listener.dom7proxy&&w.listener.dom7proxy===a?(h.removeEventListener(l,w.proxyListener,i),m.splice(k,1)):a||(h.removeEventListener(l,w.proxyListener,i),m.splice(k,1))}}}return this}function aS(...t){const e=t[0].split(" "),n=t[1];for(let a=0;a<e.length;a+=1){const i=e[a];for(let r=0;r<this.length;r+=1){const s=this[r];let l;try{l=new ya.CustomEvent(i,{detail:n,bubbles:!0,cancelable:!0})}catch{l=va.createEvent("Event"),l.initEvent(i,!0,!0),l.detail=n}s.dom7EventData=t.filter((c,h)=>h>0),s.dispatchEvent(l),s.dom7EventData=[],delete s.dom7EventData}}return this}function iS(t){const e=["webkitTransitionEnd","transitionend"],n=this;let a;function i(r){if(r.target===this)for(t.call(this,r),a=0;a<e.length;a+=1)n.off(e[a],i)}if(t)for(a=0;a<e.length;a+=1)n.on(e[a],i);return this}function rS(t){if(this.length>0){if(t){const e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function oS(t){if(this.length>0){if(t){const e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function sS(){if(this.length>0){const t=this[0],e=t.getBoundingClientRect(),n=va.body,a=t.clientTop||n.clientTop||0,i=t.clientLeft||n.clientLeft||0,r=t===ya?ya.scrollY:t.scrollTop,s=t===ya?ya.scrollX:t.scrollLeft;return{top:e.top+r-a,left:e.left+s-i}}return null}function lS(){return this[0]?ya.getComputedStyle(this[0],null):{}}function uS(t,e){let n;if(arguments.length===1)if(typeof t=="string"){if(this[0])return ya.getComputedStyle(this[0],null).getPropertyValue(t)}else{for(n=0;n<this.length;n+=1)for(let a in t)this[n].style[a]=t[a];return this}if(arguments.length===2&&typeof t=="string"){for(n=0;n<this.length;n+=1)this[n].style[t]=e;return this}return this}function cS(t){if(!t)return this;for(let e=0;e<this.length;e+=1)if(t.call(this[e],e,this[e])===!1)return this;return this}function dS(t){if(typeof t>"u")return this[0]?this[0].innerHTML:void 0;for(let e=0;e<this.length;e+=1)this[e].innerHTML=t;return this}function fS(t){if(typeof t>"u")return this[0]?this[0].textContent.trim():null;for(let e=0;e<this.length;e+=1)this[e].textContent=t;return this}function hS(t){const e=this[0];let n,a;if(!e||typeof t>"u")return!1;if(typeof t=="string"){if(e.matches)return e.matches(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);for(n=kt(t),a=0;a<n.length;a+=1)if(n[a]===e)return!0;return!1}else{if(t===va)return e===va;if(t===ya)return e===ya}if(t.nodeType||t instanceof pe){for(n=t.nodeType?[t]:t,a=0;a<n.length;a+=1)if(n[a]===e)return!0;return!1}return!1}function pS(){let t=this[0],e;if(t){for(e=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(e+=1);return e}}function gS(t){if(typeof t>"u")return this;const e=this.length;let n;return t>e-1?new pe([]):t<0?(n=e+t,n<0?new pe([]):new pe([this[n]])):new pe([this[t]])}function mS(...t){let e;for(let n=0;n<t.length;n+=1){e=t[n];for(let a=0;a<this.length;a+=1)if(typeof e=="string"){const i=va.createElement("div");for(i.innerHTML=e;i.firstChild;)this[a].appendChild(i.firstChild)}else if(e instanceof pe)for(let i=0;i<e.length;i+=1)this[a].appendChild(e[i]);else this[a].appendChild(e)}return this}function vS(t){let e,n;for(e=0;e<this.length;e+=1)if(typeof t=="string"){const a=va.createElement("div");for(a.innerHTML=t,n=a.childNodes.length-1;n>=0;n-=1)this[e].insertBefore(a.childNodes[n],this[e].childNodes[0])}else if(t instanceof pe)for(n=0;n<t.length;n+=1)this[e].insertBefore(t[n],this[e].childNodes[0]);else this[e].insertBefore(t,this[e].childNodes[0]);return this}function yS(t){return this.length>0?t?this[0].nextElementSibling&&kt(this[0].nextElementSibling).is(t)?new pe([this[0].nextElementSibling]):new pe([]):this[0].nextElementSibling?new pe([this[0].nextElementSibling]):new pe([]):new pe([])}function bS(t){const e=[];let n=this[0];if(!n)return new pe([]);for(;n.nextElementSibling;){const a=n.nextElementSibling;t?kt(a).is(t)&&e.push(a):e.push(a),n=a}return new pe(e)}function wS(t){if(this.length>0){const e=this[0];return t?e.previousElementSibling&&kt(e.previousElementSibling).is(t)?new pe([e.previousElementSibling]):new pe([]):e.previousElementSibling?new pe([e.previousElementSibling]):new pe([])}return new pe([])}function kS(t){const e=[];let n=this[0];if(!n)return new pe([]);for(;n.previousElementSibling;){const a=n.previousElementSibling;t?kt(a).is(t)&&e.push(a):e.push(a),n=a}return new pe(e)}function xS(t){const e=[];for(let n=0;n<this.length;n+=1)this[n].parentNode!==null&&(t?kt(this[n].parentNode).is(t)&&e.push(this[n].parentNode):e.push(this[n].parentNode));return kt(xh(e))}function SS(t){const e=[];for(let n=0;n<this.length;n+=1){let a=this[n].parentNode;for(;a;)t?kt(a).is(t)&&e.push(a):e.push(a),a=a.parentNode}return kt(xh(e))}function CS(t){let e=this;return typeof t>"u"?new pe([]):(e.is(t)||(e=e.parents(t).eq(0)),e)}function TS(t){const e=[];for(let n=0;n<this.length;n+=1){const a=this[n].querySelectorAll(t);for(let i=0;i<a.length;i+=1)e.push(a[i])}return new pe(e)}function ES(t){const e=[];for(let n=0;n<this.length;n+=1){const a=this[n].childNodes;for(let i=0;i<a.length;i+=1)t?a[i].nodeType===1&&kt(a[i]).is(t)&&e.push(a[i]):a[i].nodeType===1&&e.push(a[i])}return new pe(xh(e))}function PS(){for(let t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}function MS(...t){const e=this;let n,a;for(n=0;n<t.length;n+=1){const i=kt(t[n]);for(a=0;a<i.length;a+=1)e[e.length]=i[a],e.length+=1}return e}var ne=typeof document>"u"?{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document,Mt=typeof window>"u"?{document:ne,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window;const Ug={addClass:Vx,removeClass:Gx,hasClass:Ux,toggleClass:Yx,attr:Xx,removeAttr:Zx,data:Jx,transform:Qx,transition:tS,on:eS,off:nS,trigger:aS,transitionEnd:iS,outerWidth:rS,outerHeight:oS,offset:sS,css:uS,each:cS,html:dS,text:fS,is:hS,index:pS,eq:gS,append:mS,prepend:vS,next:yS,nextAll:bS,prev:wS,prevAll:kS,parent:xS,parents:SS,closest:CS,find:TS,children:ES,remove:PS,add:MS,styles:lS};Object.keys(Ug).forEach(t=>{kt.fn[t]=kt.fn[t]||Ug[t]});const yt={deleteProps(t){const e=t;Object.keys(e).forEach(n=>{try{e[n]=null}catch{}try{delete e[n]}catch{}})},nextTick(t,e=0){return setTimeout(t,e)},now(){return Date.now()},getTranslate(t,e="x"){let n,a,i;const r=Mt.getComputedStyle(t,null);return Mt.WebKitCSSMatrix?(a=r.transform||r.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(s=>s.replace(",",".")).join(", ")),i=new Mt.WebKitCSSMatrix(a==="none"?"":a)):(i=r.MozTransform||r.OTransform||r.MsTransform||r.msTransform||r.transform||r.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=i.toString().split(",")),e==="x"&&(Mt.WebKitCSSMatrix?a=i.m41:n.length===16?a=parseFloat(n[12]):a=parseFloat(n[4])),e==="y"&&(Mt.WebKitCSSMatrix?a=i.m42:n.length===16?a=parseFloat(n[13]):a=parseFloat(n[5])),a||0},parseUrlQuery(t){const e={};let n=t||Mt.location.href,a,i,r,s;if(typeof n=="string"&&n.length)for(n=n.indexOf("?")>-1?n.replace(/\S*\?/,""):"",i=n.split("&").filter(l=>l!==""),s=i.length,a=0;a<s;a+=1)r=i[a].replace(/#\S+/g,"").split("="),e[decodeURIComponent(r[0])]=typeof r[1]>"u"?void 0:decodeURIComponent(r[1])||"";return e},isObject(t){return typeof t=="object"&&t!==null&&t.constructor&&t.constructor===Object},extend(...t){const e=Object(t[0]);for(let n=1;n<t.length;n+=1){const a=t[n];if(a!=null){const i=Object.keys(Object(a));for(let r=0,s=i.length;r<s;r+=1){const l=i[r],c=Object.getOwnPropertyDescriptor(a,l);c!==void 0&&c.enumerable&&(yt.isObject(e[l])&&yt.isObject(a[l])?yt.extend(e[l],a[l]):!yt.isObject(e[l])&&yt.isObject(a[l])?(e[l]={},yt.extend(e[l],a[l])):e[l]=a[l])}}}return e}},$t=function(){const e=ne.createElement("div");return{touch:Mt.Modernizr&&Mt.Modernizr.touch===!0||function(){return!!(Mt.navigator.maxTouchPoints>0||"ontouchstart"in Mt||Mt.DocumentTouch&&ne instanceof Mt.DocumentTouch)}(),pointerEvents:!!(Mt.navigator.pointerEnabled||Mt.PointerEvent||"maxTouchPoints"in Mt.navigator&&Mt.navigator.maxTouchPoints>0),prefixedPointerEvents:!!Mt.navigator.msPointerEnabled,transition:function(){const a=e.style;return"transition"in a||"webkitTransition"in a||"MozTransition"in a}(),transforms3d:Mt.Modernizr&&Mt.Modernizr.csstransforms3d===!0||function(){const a=e.style;return"webkitPerspective"in a||"MozPerspective"in a||"OPerspective"in a||"MsPerspective"in a||"perspective"in a}(),flexbox:function(){const a=e.style,i="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" ");for(let r=0;r<i.length;r+=1)if(i[r]in a)return!0;return!1}(),observer:function(){return"MutationObserver"in Mt||"WebkitMutationObserver"in Mt}(),passiveListener:function(){let a=!1;try{const i=Object.defineProperty({},"passive",{get(){a=!0}});Mt.addEventListener("testPassiveListener",null,i)}catch{}return a}(),gestures:function(){return"ongesturestart"in Mt}()}}(),$a=function(){function e(){const n=Mt.navigator.userAgent.toLowerCase();return n.indexOf("safari")>=0&&n.indexOf("chrome")<0&&n.indexOf("android")<0}return{isIE:!!Mt.navigator.userAgent.match(/Trident/g)||!!Mt.navigator.userAgent.match(/MSIE/g),isEdge:!!Mt.navigator.userAgent.match(/Edge/g),isSafari:e(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(Mt.navigator.userAgent)}}();class Yg{constructor(e={}){const n=this;n.params=e,n.eventsListeners={},n.params&&n.params.on&&Object.keys(n.params.on).forEach(a=>{n.on(a,n.params.on[a])})}on(e,n,a){const i=this;if(typeof n!="function")return i;const r=a?"unshift":"push";return e.split(" ").forEach(s=>{i.eventsListeners[s]||(i.eventsListeners[s]=[]),i.eventsListeners[s][r](n)}),i}once(e,n,a){const i=this;if(typeof n!="function")return i;function r(...s){n.apply(i,s),i.off(e,r),r.f7proxy&&delete r.f7proxy}return r.f7proxy=n,i.on(e,r,a)}off(e,n){const a=this;return a.eventsListeners&&e.split(" ").forEach(i=>{typeof n>"u"?a.eventsListeners[i]=[]:a.eventsListeners[i]&&a.eventsListeners[i].length&&a.eventsListeners[i].forEach((r,s)=>{(r===n||r.f7proxy&&r.f7proxy===n)&&a.eventsListeners[i].splice(s,1)})}),a}emit(...e){const n=this;if(!n.eventsListeners)return n;let a,i,r;return typeof e[0]=="string"||Array.isArray(e[0])?(a=e[0],i=e.slice(1,e.length),r=n):(a=e[0].events,i=e[0].data,r=e[0].context||n),(Array.isArray(a)?a:a.split(" ")).forEach(l=>{if(n.eventsListeners&&n.eventsListeners[l]){const c=[];n.eventsListeners[l].forEach(h=>{c.push(h)}),c.forEach(h=>{h.apply(r,i)})}}),n}useModulesParams(e){const n=this;n.modules&&Object.keys(n.modules).forEach(a=>{const i=n.modules[a];i.params&&yt.extend(e,i.params)})}useModules(e={}){const n=this;n.modules&&Object.keys(n.modules).forEach(a=>{const i=n.modules[a],r=e[a]||{};i.instance&&Object.keys(i.instance).forEach(s=>{const l=i.instance[s];typeof l=="function"?n[s]=l.bind(n):n[s]=l}),i.on&&n.on&&Object.keys(i.on).forEach(s=>{n.on(s,i.on[s])}),i.create&&i.create.bind(n)(r)})}static set components(e){const n=this;n.use&&n.use(e)}static installModule(e,...n){const a=this;a.prototype.modules||(a.prototype.modules={});const i=e.name||`${Object.keys(a.prototype.modules).length}_${yt.now()}`;return a.prototype.modules[i]=e,e.proto&&Object.keys(e.proto).forEach(r=>{a.prototype[r]=e.proto[r]}),e.static&&Object.keys(e.static).forEach(r=>{a[r]=e.static[r]}),e.install&&e.install.apply(a,n),a}static use(e,...n){const a=this;return Array.isArray(e)?(e.forEach(i=>a.installModule(i)),a):a.installModule(e,...n)}}function AS(){const t=this;let e,n;const a=t.$el;typeof t.params.width<"u"?e=t.params.width:e=a[0].clientWidth,typeof t.params.height<"u"?n=t.params.height:n=a[0].clientHeight,!(e===0&&t.isHorizontal()||n===0&&t.isVertical())&&(e=e-parseInt(a.css("padding-left"),10)-parseInt(a.css("padding-right"),10),n=n-parseInt(a.css("padding-top"),10)-parseInt(a.css("padding-bottom"),10),yt.extend(t,{width:e,height:n,size:t.isHorizontal()?e:n}))}function NS(){const t=this,e=t.params,{$wrapperEl:n,size:a,rtlTranslate:i,wrongRTL:r}=t,s=t.virtual&&e.virtual.enabled,l=s?t.virtual.slides.length:t.slides.length,c=n.children(`.${t.params.slideClass}`),h=s?t.virtual.slides.length:c.length;let m=[];const k=[],w=[];let P=e.slidesOffsetBefore;typeof P=="function"&&(P=e.slidesOffsetBefore.call(t));let E=e.slidesOffsetAfter;typeof E=="function"&&(E=e.slidesOffsetAfter.call(t));const z=t.snapGrid.length,A=t.snapGrid.length;let x=e.spaceBetween,S=-P,N=0,L=0;if(typeof a>"u")return;typeof x=="string"&&x.indexOf("%")>=0&&(x=parseFloat(x.replace("%",""))/100*a),t.virtualSize=-x,i?c.css({marginLeft:"",marginTop:""}):c.css({marginRight:"",marginBottom:""});let j;e.slidesPerColumn>1&&(Math.floor(h/e.slidesPerColumn)===h/t.params.slidesPerColumn?j=h:j=Math.ceil(h/e.slidesPerColumn)*e.slidesPerColumn,e.slidesPerView!=="auto"&&e.slidesPerColumnFill==="row"&&(j=Math.max(j,e.slidesPerView*e.slidesPerColumn)));let f;const U=e.slidesPerColumn,_=j/U,F=Math.floor(h/e.slidesPerColumn);for(let dt=0;dt<h;dt+=1){f=0;const ot=c.eq(dt);if(e.slidesPerColumn>1){let X,$,o;if(e.slidesPerColumnFill==="column"||e.slidesPerColumnFill==="row"&&e.slidesPerGroup>1){if(e.slidesPerColumnFill==="column")$=Math.floor(dt/U),o=dt-$*U,($>F||$===F&&o===U-1)&&(o+=1,o>=U&&(o=0,$+=1));else{const tt=Math.floor(dt/e.slidesPerGroup);o=Math.floor(dt/e.slidesPerView)-tt*e.slidesPerColumn,$=dt-o*e.slidesPerView-tt*e.slidesPerView}X=$+o*j/U,ot.css({"-webkit-box-ordinal-group":X,"-moz-box-ordinal-group":X,"-ms-flex-order":X,"-webkit-order":X,order:X})}else o=Math.floor(dt/_),$=dt-o*_;ot.css(`margin-${t.isHorizontal()?"top":"left"}`,o!==0&&e.spaceBetween&&`${e.spaceBetween}px`).attr("data-swiper-column",$).attr("data-swiper-row",o)}if(ot.css("display")!=="none"){if(e.slidesPerView==="auto"){const X=Mt.getComputedStyle(ot[0],null),$=ot[0].style.transform,o=ot[0].style.webkitTransform;if($&&(ot[0].style.transform="none"),o&&(ot[0].style.webkitTransform="none"),e.roundLengths)f=t.isHorizontal()?ot.outerWidth(!0):ot.outerHeight(!0);else if(t.isHorizontal()){const tt=parseFloat(X.getPropertyValue("width")),v=parseFloat(X.getPropertyValue("padding-left")),Q=parseFloat(X.getPropertyValue("padding-right")),st=parseFloat(X.getPropertyValue("margin-left")),ft=parseFloat(X.getPropertyValue("margin-right")),D=X.getPropertyValue("box-sizing");D&&D==="border-box"&&!$a.isIE?f=tt+st+ft:f=tt+v+Q+st+ft}else{const tt=parseFloat(X.getPropertyValue("height")),v=parseFloat(X.getPropertyValue("padding-top")),Q=parseFloat(X.getPropertyValue("padding-bottom")),st=parseFloat(X.getPropertyValue("margin-top")),ft=parseFloat(X.getPropertyValue("margin-bottom")),D=X.getPropertyValue("box-sizing");D&&D==="border-box"&&!$a.isIE?f=tt+st+ft:f=tt+v+Q+st+ft}$&&(ot[0].style.transform=$),o&&(ot[0].style.webkitTransform=o),e.roundLengths&&(f=Math.floor(f))}else f=(a-(e.slidesPerView-1)*x)/e.slidesPerView,e.roundLengths&&(f=Math.floor(f)),c[dt]&&(t.isHorizontal()?c[dt].style.width=`${f}px`:c[dt].style.height=`${f}px`);c[dt]&&(c[dt].swiperSlideSize=f),w.push(f),e.centeredSlides?(S=S+f/2+N/2+x,N===0&&dt!==0&&(S=S-a/2-x),dt===0&&(S=S-a/2-x),Math.abs(S)<1/1e3&&(S=0),e.roundLengths&&(S=Math.floor(S)),L%e.slidesPerGroup===0&&m.push(S),k.push(S)):(e.roundLengths&&(S=Math.floor(S)),L%e.slidesPerGroup===0&&m.push(S),k.push(S),S=S+f+x),t.virtualSize+=f+x,N=f,L+=1}}t.virtualSize=Math.max(t.virtualSize,a)+E;let gt;if(i&&r&&(e.effect==="slide"||e.effect==="coverflow")&&n.css({width:`${t.virtualSize+e.spaceBetween}px`}),(!$t.flexbox||e.setWrapperSize)&&(t.isHorizontal()?n.css({width:`${t.virtualSize+e.spaceBetween}px`}):n.css({height:`${t.virtualSize+e.spaceBetween}px`})),e.slidesPerColumn>1&&(t.virtualSize=(f+e.spaceBetween)*j,t.virtualSize=Math.ceil(t.virtualSize/e.slidesPerColumn)-e.spaceBetween,t.isHorizontal()?n.css({width:`${t.virtualSize+e.spaceBetween}px`}):n.css({height:`${t.virtualSize+e.spaceBetween}px`}),e.centeredSlides)){gt=[];for(let dt=0;dt<m.length;dt+=1){let ot=m[dt];e.roundLengths&&(ot=Math.floor(ot)),m[dt]<t.virtualSize+m[0]&>.push(ot)}m=gt}if(!e.centeredSlides){gt=[];for(let dt=0;dt<m.length;dt+=1){let ot=m[dt];e.roundLengths&&(ot=Math.floor(ot)),m[dt]<=t.virtualSize-a&>.push(ot)}m=gt,Math.floor(t.virtualSize-a)-Math.floor(m[m.length-1])>1&&m.push(t.virtualSize-a)}if(m.length===0&&(m=[0]),e.spaceBetween!==0&&(t.isHorizontal()?i?c.css({marginLeft:`${x}px`}):c.css({marginRight:`${x}px`}):c.css({marginBottom:`${x}px`})),e.centerInsufficientSlides){let dt=0;if(w.forEach(ot=>{dt+=ot+(e.spaceBetween?e.spaceBetween:0)}),dt-=e.spaceBetween,dt<a){const ot=(a-dt)/2;m.forEach((X,$)=>{m[$]=X-ot}),k.forEach((X,$)=>{k[$]=X+ot})}}yt.extend(t,{slides:c,snapGrid:m,slidesGrid:k,slidesSizesGrid:w}),h!==l&&t.emit("slidesLengthChange"),m.length!==z&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),k.length!==A&&t.emit("slidesGridLengthChange"),(e.watchSlidesProgress||e.watchSlidesVisibility)&&t.updateSlidesOffset()}function LS(t){const e=this,n=[];let a=0,i;if(typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed),e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)for(i=0;i<Math.ceil(e.params.slidesPerView);i+=1){const r=e.activeIndex+i;if(r>e.slides.length)break;n.push(e.slides.eq(r)[0])}else n.push(e.slides.eq(e.activeIndex)[0]);for(i=0;i<n.length;i+=1)if(typeof n[i]<"u"){const r=n[i].offsetHeight;a=r>a?r:a}a&&e.$wrapperEl.css("height",`${a}px`)}function zS(){const t=this,e=t.slides;for(let n=0;n<e.length;n+=1)e[n].swiperSlideOffset=t.isHorizontal()?e[n].offsetLeft:e[n].offsetTop}function BS(t=this&&this.translate||0){const e=this,n=e.params,{slides:a,rtlTranslate:i}=e;if(a.length===0)return;typeof a[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let r=-t;i&&(r=t),a.removeClass(n.slideVisibleClass),e.visibleSlidesIndexes=[],e.visibleSlides=[];for(let s=0;s<a.length;s+=1){const l=a[s],c=(r+(n.centeredSlides?e.minTranslate():0)-l.swiperSlideOffset)/(l.swiperSlideSize+n.spaceBetween);if(n.watchSlidesVisibility){const h=-(r-l.swiperSlideOffset),m=h+e.slidesSizesGrid[s];(h>=0&&h<e.size-1||m>1&&m<=e.size||h<=0&&m>=e.size)&&(e.visibleSlides.push(l),e.visibleSlidesIndexes.push(s),a.eq(s).addClass(n.slideVisibleClass))}l.progress=i?-c:c}e.visibleSlides=kt(e.visibleSlides)}function IS(t=this&&this.translate||0){const e=this,n=e.params,a=e.maxTranslate()-e.minTranslate();let{progress:i,isBeginning:r,isEnd:s}=e;const l=r,c=s;a===0?(i=0,r=!0,s=!0):(i=(t-e.minTranslate())/a,r=i<=0,s=i>=1),yt.extend(e,{progress:i,isBeginning:r,isEnd:s}),(n.watchSlidesProgress||n.watchSlidesVisibility)&&e.updateSlidesProgress(t),r&&!l&&e.emit("reachBeginning toEdge"),s&&!c&&e.emit("reachEnd toEdge"),(l&&!r||c&&!s)&&e.emit("fromEdge"),e.emit("progress",i)}function DS(){const t=this,{slides:e,params:n,$wrapperEl:a,activeIndex:i,realIndex:r}=t,s=t.virtual&&n.virtual.enabled;e.removeClass(`${n.slideActiveClass} ${n.slideNextClass} ${n.slidePrevClass} ${n.slideDuplicateActiveClass} ${n.slideDuplicateNextClass} ${n.slideDuplicatePrevClass}`);let l;s?l=t.$wrapperEl.find(`.${n.slideClass}[data-swiper-slide-index="${i}"]`):l=e.eq(i),l.addClass(n.slideActiveClass),n.loop&&(l.hasClass(n.slideDuplicateClass)?a.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${r}"]`).addClass(n.slideDuplicateActiveClass):a.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${r}"]`).addClass(n.slideDuplicateActiveClass));let c=l.nextAll(`.${n.slideClass}`).eq(0).addClass(n.slideNextClass);n.loop&&c.length===0&&(c=e.eq(0),c.addClass(n.slideNextClass));let h=l.prevAll(`.${n.slideClass}`).eq(0).addClass(n.slidePrevClass);n.loop&&h.length===0&&(h=e.eq(-1),h.addClass(n.slidePrevClass)),n.loop&&(c.hasClass(n.slideDuplicateClass)?a.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicateNextClass):a.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicateNextClass),h.hasClass(n.slideDuplicateClass)?a.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${h.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicatePrevClass):a.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${h.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicatePrevClass))}function jS(t){const e=this,n=e.rtlTranslate?e.translate:-e.translate,{slidesGrid:a,snapGrid:i,params:r,activeIndex:s,realIndex:l,snapIndex:c}=e;let h=t,m;if(typeof h>"u"){for(let w=0;w<a.length;w+=1)typeof a[w+1]<"u"?n>=a[w]&&n<a[w+1]-(a[w+1]-a[w])/2?h=w:n>=a[w]&&n<a[w+1]&&(h=w+1):n>=a[w]&&(h=w);r.normalizeSlideIndex&&(h<0||typeof h>"u")&&(h=0)}if(i.indexOf(n)>=0?m=i.indexOf(n):m=Math.floor(h/r.slidesPerGroup),m>=i.length&&(m=i.length-1),h===s){m!==c&&(e.snapIndex=m,e.emit("snapIndexChange"));return}const k=parseInt(e.slides.eq(h).attr("data-swiper-slide-index")||h,10);yt.extend(e,{snapIndex:m,realIndex:k,previousIndex:s,activeIndex:h}),e.emit("activeIndexChange"),e.emit("snapIndexChange"),l!==k&&e.emit("realIndexChange"),(e.initialized||e.runCallbacksOnInit)&&e.emit("slideChange")}function RS(t){const e=this,n=e.params,a=kt(t.target).closest(`.${n.slideClass}`)[0];let i=!1;if(a)for(let r=0;r<e.slides.length;r+=1)e.slides[r]===a&&(i=!0);if(a&&i)e.clickedSlide=a,e.virtual&&e.params.virtual.enabled?e.clickedIndex=parseInt(kt(a).attr("data-swiper-slide-index"),10):e.clickedIndex=kt(a).index();else{e.clickedSlide=void 0,e.clickedIndex=void 0;return}n.slideToClickedSlide&&e.clickedIndex!==void 0&&e.clickedIndex!==e.activeIndex&&e.slideToClickedSlide()}var OS={updateSize:AS,updateSlides:NS,updateAutoHeight:LS,updateSlidesOffset:zS,updateSlidesProgress:BS,updateProgress:IS,updateSlidesClasses:DS,updateActiveIndex:jS,updateClickedSlide:RS};function KS(t=this.isHorizontal()?"x":"y"){const e=this,{params:n,rtlTranslate:a,translate:i,$wrapperEl:r}=e;if(n.virtualTranslate)return a?-i:i;let s=yt.getTranslate(r[0],t);return a&&(s=-s),s||0}function $S(t,e){const n=this,{rtlTranslate:a,params:i,$wrapperEl:r,progress:s}=n;let l=0,c=0;const h=0;n.isHorizontal()?l=a?-t:t:c=t,i.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),i.virtualTranslate||($t.transforms3d?r.transform(`translate3d(${l}px, ${c}px, ${h}px)`):r.transform(`translate(${l}px, ${c}px)`)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:c;let m;const k=n.maxTranslate()-n.minTranslate();k===0?m=0:m=(t-n.minTranslate())/k,m!==s&&n.updateProgress(t),n.emit("setTranslate",n.translate,e)}function qS(){return-this.snapGrid[0]}function HS(){return-this.snapGrid[this.snapGrid.length-1]}var FS={getTranslate:KS,setTranslate:$S,minTranslate:qS,maxTranslate:HS};function WS(t,e){const n=this;n.$wrapperEl.transition(t),n.emit("setTransition",t,e)}function _S(t=!0,e){const n=this,{activeIndex:a,params:i,previousIndex:r}=n;i.autoHeight&&n.updateAutoHeight();let s=e;if(s||(a>r?s="next":a<r?s="prev":s="reset"),n.emit("transitionStart"),t&&a!==r){if(s==="reset"){n.emit("slideResetTransitionStart");return}n.emit("slideChangeTransitionStart"),s==="next"?n.emit("slideNextTransitionStart"):n.emit("slidePrevTransitionStart")}}function VS(t=!0,e){const n=this,{activeIndex:a,previousIndex:i}=n;n.animating=!1,n.setTransition(0);let r=e;if(r||(a>i?r="next":a<i?r="prev":r="reset"),n.emit("transitionEnd"),t&&a!==i){if(r==="reset"){n.emit("slideResetTransitionEnd");return}n.emit("slideChangeTransitionEnd"),r==="next"?n.emit("slideNextTransitionEnd"):n.emit("slidePrevTransitionEnd")}}var GS={setTransition:WS,transitionStart:_S,transitionEnd:VS};function US(t=0,e=this.params.speed,n=!0,a){const i=this;let r=t;r<0&&(r=0);const{params:s,snapGrid:l,slidesGrid:c,previousIndex:h,activeIndex:m,rtlTranslate:k}=i;if(i.animating&&s.preventInteractionOnTransition)return!1;let w=Math.floor(r/s.slidesPerGroup);w>=l.length&&(w=l.length-1),(m||s.initialSlide||0)===(h||0)&&n&&i.emit("beforeSlideChangeStart");const P=-l[w];if(i.updateProgress(P),s.normalizeSlideIndex)for(let z=0;z<c.length;z+=1)-Math.floor(P*100)>=Math.floor(c[z]*100)&&(r=z);if(i.initialized&&r!==m&&(!i.allowSlideNext&&P<i.translate&&P<i.minTranslate()||!i.allowSlidePrev&&P>i.translate&&P>i.maxTranslate()&&(m||0)!==r))return!1;let E;return r>m?E="next":r<m?E="prev":E="reset",k&&-P===i.translate||!k&&P===i.translate?(i.updateActiveIndex(r),s.autoHeight&&i.updateAutoHeight(),i.updateSlidesClasses(),s.effect!=="slide"&&i.setTranslate(P),E!=="reset"&&(i.transitionStart(n,E),i.transitionEnd(n,E)),!1):(e===0||!$t.transition?(i.setTransition(0),i.setTranslate(P),i.updateActiveIndex(r),i.updateSlidesClasses(),i.emit("beforeTransitionStart",e,a),i.transitionStart(n,E),i.transitionEnd(n,E)):(i.setTransition(e),i.setTranslate(P),i.updateActiveIndex(r),i.updateSlidesClasses(),i.emit("beforeTransitionStart",e,a),i.transitionStart(n,E),i.animating||(i.animating=!0,i.onSlideToWrapperTransitionEnd||(i.onSlideToWrapperTransitionEnd=function(A){!i||i.destroyed||A.target===this&&(i.$wrapperEl[0].removeEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.$wrapperEl[0].removeEventListener("webkitTransitionEnd",i.onSlideToWrapperTransitionEnd),i.onSlideToWrapperTransitionEnd=null,delete i.onSlideToWrapperTransitionEnd,i.transitionEnd(n,E))}),i.$wrapperEl[0].addEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.$wrapperEl[0].addEventListener("webkitTransitionEnd",i.onSlideToWrapperTransitionEnd))),!0)}function YS(t=0,e=this.params.speed,n=!0,a){const i=this;let r=t;return i.params.loop&&(r+=i.loopedSlides),i.slideTo(r,e,n,a)}function XS(t=this.params.speed,e=!0,n){const a=this,{params:i,animating:r}=a;return i.loop?r?!1:(a.loopFix(),a._clientLeft=a.$wrapperEl[0].clientLeft,a.slideTo(a.activeIndex+i.slidesPerGroup,t,e,n)):a.slideTo(a.activeIndex+i.slidesPerGroup,t,e,n)}function ZS(t=this.params.speed,e=!0,n){const a=this,{params:i,animating:r,snapGrid:s,slidesGrid:l,rtlTranslate:c}=a;if(i.loop){if(r)return!1;a.loopFix(),a._clientLeft=a.$wrapperEl[0].clientLeft}const h=c?a.translate:-a.translate;function m(z){return z<0?-Math.floor(Math.abs(z)):Math.floor(z)}const k=m(h),w=s.map(z=>m(z));l.map(z=>m(z)),s[w.indexOf(k)];const P=s[w.indexOf(k)-1];let E;return typeof P<"u"&&(E=l.indexOf(P),E<0&&(E=a.activeIndex-1)),a.slideTo(E,t,e,n)}function JS(t=this.params.speed,e=!0,n){const a=this;return a.slideTo(a.activeIndex,t,e,n)}function QS(t=this.params.speed,e=!0,n){const a=this;let i=a.activeIndex;const r=Math.floor(i/a.params.slidesPerGroup);if(r<a.snapGrid.length-1){const s=a.rtlTranslate?a.translate:-a.translate,l=a.snapGrid[r],c=a.snapGrid[r+1];s-l>(c-l)/2&&(i=a.params.slidesPerGroup)}return a.slideTo(i,t,e,n)}function t1(){const t=this,{params:e,$wrapperEl:n}=t,a=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let i=t.clickedIndex,r;if(e.loop){if(t.animating)return;r=parseInt(kt(t.clickedSlide).attr("data-swiper-slide-index"),10),e.centeredSlides?i<t.loopedSlides-a/2||i>t.slides.length-t.loopedSlides+a/2?(t.loopFix(),i=n.children(`.${e.slideClass}[data-swiper-slide-index="${r}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),yt.nextTick(()=>{t.slideTo(i)})):t.slideTo(i):i>t.slides.length-a?(t.loopFix(),i=n.children(`.${e.slideClass}[data-swiper-slide-index="${r}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),yt.nextTick(()=>{t.slideTo(i)})):t.slideTo(i)}else t.slideTo(i)}var e1={slideTo:US,slideToLoop:YS,slideNext:XS,slidePrev:ZS,slideReset:JS,slideToClosest:QS,slideToClickedSlide:t1};function n1(){const t=this,{params:e,$wrapperEl:n}=t;n.children(`.${e.slideClass}.${e.slideDuplicateClass}`).remove();let a=n.children(`.${e.slideClass}`);if(e.loopFillGroupWithBlank){const s=e.slidesPerGroup-a.length%e.slidesPerGroup;if(s!==e.slidesPerGroup){for(let l=0;l<s;l+=1){const c=kt(ne.createElement("div")).addClass(`${e.slideClass} ${e.slideBlankClass}`);n.append(c)}a=n.children(`.${e.slideClass}`)}}e.slidesPerView==="auto"&&!e.loopedSlides&&(e.loopedSlides=a.length),t.loopedSlides=parseInt(e.loopedSlides||e.slidesPerView,10),t.loopedSlides+=e.loopAdditionalSlides,t.loopedSlides>a.length&&(t.loopedSlides=a.length);const i=[],r=[];a.each((s,l)=>{const c=kt(l);s<t.loopedSlides&&r.push(l),s<a.length&&s>=a.length-t.loopedSlides&&i.push(l),c.attr("data-swiper-slide-index",s)});for(let s=0;s<r.length;s+=1)n.append(kt(r[s].cloneNode(!0)).addClass(e.slideDuplicateClass));for(let s=i.length-1;s>=0;s-=1)n.prepend(kt(i[s].cloneNode(!0)).addClass(e.slideDuplicateClass))}function a1(){const t=this,{params:e,activeIndex:n,slides:a,loopedSlides:i,allowSlidePrev:r,allowSlideNext:s,snapGrid:l,rtlTranslate:c}=t;let h;t.allowSlidePrev=!0,t.allowSlideNext=!0;const k=-l[n]-t.getTranslate();n<i?(h=a.length-i*3+n,h+=i,t.slideTo(h,0,!1,!0)&&k!==0&&t.setTranslate((c?-t.translate:t.translate)-k)):(e.slidesPerView==="auto"&&n>=i*2||n>=a.length-i)&&(h=-a.length+n+i,h+=i,t.slideTo(h,0,!1,!0)&&k!==0&&t.setTranslate((c?-t.translate:t.translate)-k)),t.allowSlidePrev=r,t.allowSlideNext=s}function i1(){const t=this,{$wrapperEl:e,params:n,slides:a}=t;e.children(`.${n.slideClass}.${n.slideDuplicateClass},.${n.slideClass}.${n.slideBlankClass}`).remove(),a.removeAttr("data-swiper-slide-index")}var r1={loopCreate:n1,loopFix:a1,loopDestroy:i1};function o1(t){const e=this;if($t.touch||!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked)return;const n=e.el;n.style.cursor="move",n.style.cursor=t?"-webkit-grabbing":"-webkit-grab",n.style.cursor=t?"-moz-grabbin":"-moz-grab",n.style.cursor=t?"grabbing":"grab"}function s1(){const t=this;$t.touch||t.params.watchOverflow&&t.isLocked||(t.el.style.cursor="")}var l1={setGrabCursor:o1,unsetGrabCursor:s1};function u1(t){const e=this,{$wrapperEl:n,params:a}=e;if(a.loop&&e.loopDestroy(),typeof t=="object"&&"length"in t)for(let i=0;i<t.length;i+=1)t[i]&&n.append(t[i]);else n.append(t);a.loop&&e.loopCreate(),a.observer&&$t.observer||e.update()}function c1(t){const e=this,{params:n,$wrapperEl:a,activeIndex:i}=e;n.loop&&e.loopDestroy();let r=i+1;if(typeof t=="object"&&"length"in t){for(let s=0;s<t.length;s+=1)t[s]&&a.prepend(t[s]);r=i+t.length}else a.prepend(t);n.loop&&e.loopCreate(),n.observer&&$t.observer||e.update(),e.slideTo(r,0,!1)}function d1(t,e){const n=this,{$wrapperEl:a,params:i,activeIndex:r}=n;let s=r;i.loop&&(s-=n.loopedSlides,n.loopDestroy(),n.slides=a.children(`.${i.slideClass}`));const l=n.slides.length;if(t<=0){n.prependSlide(e);return}if(t>=l){n.appendSlide(e);return}let c=s>t?s+1:s;const h=[];for(let m=l-1;m>=t;m-=1){const k=n.slides.eq(m);k.remove(),h.unshift(k)}if(typeof e=="object"&&"length"in e){for(let m=0;m<e.length;m+=1)e[m]&&a.append(e[m]);c=s>t?s+e.length:s}else a.append(e);for(let m=0;m<h.length;m+=1)a.append(h[m]);i.loop&&n.loopCreate(),i.observer&&$t.observer||n.update(),i.loop?n.slideTo(c+n.loopedSlides,0,!1):n.slideTo(c,0,!1)}function f1(t){const e=this,{params:n,$wrapperEl:a,activeIndex:i}=e;let r=i;n.loop&&(r-=e.loopedSlides,e.loopDestroy(),e.slides=a.children(`.${n.slideClass}`));let s=r,l;if(typeof t=="object"&&"length"in t){for(let c=0;c<t.length;c+=1)l=t[c],e.slides[l]&&e.slides.eq(l).remove(),l<s&&(s-=1);s=Math.max(s,0)}else l=t,e.slides[l]&&e.slides.eq(l).remove(),l<s&&(s-=1),s=Math.max(s,0);n.loop&&e.loopCreate(),n.observer&&$t.observer||e.update(),n.loop?e.slideTo(s+e.loopedSlides,0,!1):e.slideTo(s,0,!1)}function h1(){const t=this,e=[];for(let n=0;n<t.slides.length;n+=1)e.push(n);t.removeSlide(e)}var p1={appendSlide:u1,prependSlide:c1,addSlide:d1,removeSlide:f1,removeAllSlides:h1};const yn=function(){const e=Mt.navigator.userAgent,n={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:Mt.cordova||Mt.phonegap,phonegap:Mt.cordova||Mt.phonegap},a=e.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),i=e.match(/(Android);?[\s\/]+([\d.]+)?/),r=e.match(/(iPad).*OS\s([\d_]+)/),s=e.match(/(iPod)(.*OS\s([\d_]+))?/),l=!r&&e.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(a&&(n.os="windows",n.osVersion=a[2],n.windows=!0),i&&!a&&(n.os="android",n.osVersion=i[2],n.android=!0,n.androidChrome=e.toLowerCase().indexOf("chrome")>=0),(r||l||s)&&(n.os="ios",n.ios=!0),l&&!s&&(n.osVersion=l[2].replace(/_/g,"."),n.iphone=!0),r&&(n.osVersion=r[2].replace(/_/g,"."),n.ipad=!0),s&&(n.osVersion=s[3]?s[3].replace(/_/g,"."):null,n.iphone=!0),n.ios&&n.osVersion&&e.indexOf("Version/")>=0&&n.osVersion.split(".")[0]==="10"&&(n.osVersion=e.toLowerCase().split("version/")[1].split(" ")[0]),n.desktop=!(n.os||n.android||n.webView),n.webView=(l||r||s)&&e.match(/.*AppleWebKit(?!.*Safari)/i),n.os&&n.os==="ios"){const c=n.osVersion.split("."),h=ne.querySelector('meta[name="viewport"]');n.minimalUi=!n.webView&&(s||l)&&(c[0]*1===7?c[1]*1>=1:c[0]*1>7)&&h&&h.getAttribute("content").indexOf("minimal-ui")>=0}return n.pixelRatio=Mt.devicePixelRatio||1,n}();function g1(t){const e=this,n=e.touchEventsData,{params:a,touches:i}=e;if(e.animating&&a.preventInteractionOnTransition)return;let r=t;if(r.originalEvent&&(r=r.originalEvent),n.isTouchEvent=r.type==="touchstart",!n.isTouchEvent&&"which"in r&&r.which===3||!n.isTouchEvent&&"button"in r&&r.button>0||n.isTouched&&n.isMoved)return;if(a.noSwiping&&kt(r.target).closest(a.noSwipingSelector?a.noSwipingSelector:`.${a.noSwipingClass}`)[0]){e.allowClick=!0;return}if(a.swipeHandler&&!kt(r).closest(a.swipeHandler)[0])return;i.currentX=r.type==="touchstart"?r.targetTouches[0].pageX:r.pageX,i.currentY=r.type==="touchstart"?r.targetTouches[0].pageY:r.pageY;const s=i.currentX,l=i.currentY,c=a.edgeSwipeDetection||a.iOSEdgeSwipeDetection,h=a.edgeSwipeThreshold||a.iOSEdgeSwipeThreshold;if(!(c&&(s<=h||s>=Mt.screen.width-h))){if(yt.extend(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),i.startX=s,i.startY=l,n.touchStartTime=yt.now(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,a.threshold>0&&(n.allowThresholdMove=!1),r.type!=="touchstart"){let m=!0;kt(r.target).is(n.formElements)&&(m=!1),ne.activeElement&&kt(ne.activeElement).is(n.formElements)&&ne.activeElement!==r.target&&ne.activeElement.blur();const k=m&&e.allowTouchMove&&a.touchStartPreventDefault;(a.touchStartForcePreventDefault||k)&&r.preventDefault()}e.emit("touchStart",r)}}function m1(t){const e=this,n=e.touchEventsData,{params:a,touches:i,rtlTranslate:r}=e;let s=t;if(s.originalEvent&&(s=s.originalEvent),!n.isTouched){n.startMoving&&n.isScrolling&&e.emit("touchMoveOpposite",s);return}if(n.isTouchEvent&&s.type==="mousemove")return;const l=s.type==="touchmove"?s.targetTouches[0].pageX:s.pageX,c=s.type==="touchmove"?s.targetTouches[0].pageY:s.pageY;if(s.preventedByNestedSwiper){i.startX=l,i.startY=c;return}if(!e.allowTouchMove){e.allowClick=!1,n.isTouched&&(yt.extend(i,{startX:l,startY:c,currentX:l,currentY:c}),n.touchStartTime=yt.now());return}if(n.isTouchEvent&&a.touchReleaseOnEdges&&!a.loop){if(e.isVertical()){if(c<i.startY&&e.translate<=e.maxTranslate()||c>i.startY&&e.translate>=e.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else if(l<i.startX&&e.translate<=e.maxTranslate()||l>i.startX&&e.translate>=e.minTranslate())return}if(n.isTouchEvent&&ne.activeElement&&s.target===ne.activeElement&&kt(s.target).is(n.formElements)){n.isMoved=!0,e.allowClick=!1;return}if(n.allowTouchCallbacks&&e.emit("touchMove",s),s.targetTouches&&s.targetTouches.length>1)return;i.currentX=l,i.currentY=c;const h=i.currentX-i.startX,m=i.currentY-i.startY;if(e.params.threshold&&Math.sqrt(h**2+m**2)<e.params.threshold)return;if(typeof n.isScrolling>"u"){let E;e.isHorizontal()&&i.currentY===i.startY||e.isVertical()&&i.currentX===i.startX?n.isScrolling=!1:h*h+m*m>=25&&(E=Math.atan2(Math.abs(m),Math.abs(h))*180/Math.PI,n.isScrolling=e.isHorizontal()?E>a.touchAngle:90-E>a.touchAngle)}if(n.isScrolling&&e.emit("touchMoveOpposite",s),typeof n.startMoving>"u"&&(i.currentX!==i.startX||i.currentY!==i.startY)&&(n.startMoving=!0),n.isScrolling){n.isTouched=!1;return}if(!n.startMoving)return;e.allowClick=!1,s.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&s.stopPropagation(),n.isMoved||(a.loop&&e.loopFix(),n.startTranslate=e.getTranslate(),e.setTransition(0),e.animating&&e.$wrapperEl.trigger("webkitTransitionEnd transitionend"),n.allowMomentumBounce=!1,a.grabCursor&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!0),e.emit("sliderFirstMove",s)),e.emit("sliderMove",s),n.isMoved=!0;let k=e.isHorizontal()?h:m;i.diff=k,k*=a.touchRatio,r&&(k=-k),e.swipeDirection=k>0?"prev":"next",n.currentTranslate=k+n.startTranslate;let w=!0,P=a.resistanceRatio;if(a.touchReleaseOnEdges&&(P=0),k>0&&n.currentTranslate>e.minTranslate()?(w=!1,a.resistance&&(n.currentTranslate=e.minTranslate()-1+(-e.minTranslate()+n.startTranslate+k)**P)):k<0&&n.currentTranslate<e.maxTranslate()&&(w=!1,a.resistance&&(n.currentTranslate=e.maxTranslate()+1-(e.maxTranslate()-n.startTranslate-k)**P)),w&&(s.preventedByNestedSwiper=!0),!e.allowSlideNext&&e.swipeDirection==="next"&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!e.allowSlidePrev&&e.swipeDirection==="prev"&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),a.threshold>0)if(Math.abs(k)>a.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,i.startX=i.currentX,i.startY=i.currentY,n.currentTranslate=n.startTranslate,i.diff=e.isHorizontal()?i.currentX-i.startX:i.currentY-i.startY;return}}else{n.currentTranslate=n.startTranslate;return}a.followFinger&&((a.freeMode||a.watchSlidesProgress||a.watchSlidesVisibility)&&(e.updateActiveIndex(),e.updateSlidesClasses()),a.freeMode&&(n.velocities.length===0&&n.velocities.push({position:i[e.isHorizontal()?"startX":"startY"],time:n.touchStartTime}),n.velocities.push({position:i[e.isHorizontal()?"currentX":"currentY"],time:yt.now()})),e.updateProgress(n.currentTranslate),e.setTranslate(n.currentTranslate))}function v1(t){const e=this,n=e.touchEventsData,{params:a,touches:i,rtlTranslate:r,$wrapperEl:s,slidesGrid:l,snapGrid:c}=e;let h=t;if(h.originalEvent&&(h=h.originalEvent),n.allowTouchCallbacks&&e.emit("touchEnd",h),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&a.grabCursor&&e.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}a.grabCursor&&n.isMoved&&n.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const m=yt.now(),k=m-n.touchStartTime;if(e.allowClick&&(e.updateClickedSlide(h),e.emit("tap",h),k<300&&m-n.lastClickTime>300&&(n.clickTimeout&&clearTimeout(n.clickTimeout),n.clickTimeout=yt.nextTick(()=>{!e||e.destroyed||e.emit("click",h)},300)),k<300&&m-n.lastClickTime<300&&(n.clickTimeout&&clearTimeout(n.clickTimeout),e.emit("doubleTap",h))),n.lastClickTime=yt.now(),yt.nextTick(()=>{e.destroyed||(e.allowClick=!0)}),!n.isTouched||!n.isMoved||!e.swipeDirection||i.diff===0||n.currentTranslate===n.startTranslate){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let w;if(a.followFinger?w=r?e.translate:-e.translate:w=-n.currentTranslate,a.freeMode){if(w<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(w>-e.maxTranslate()){e.slides.length<c.length?e.slideTo(c.length-1):e.slideTo(e.slides.length-1);return}if(a.freeModeMomentum){if(n.velocities.length>1){const U=n.velocities.pop(),_=n.velocities.pop(),F=U.position-_.position,gt=U.time-_.time;e.velocity=F/gt,e.velocity/=2,Math.abs(e.velocity)<a.freeModeMinimumVelocity&&(e.velocity=0),(gt>150||yt.now()-U.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=a.freeModeMomentumVelocityRatio,n.velocities.length=0;let A=1e3*a.freeModeMomentumRatio;const x=e.velocity*A;let S=e.translate+x;r&&(S=-S);let N=!1,L;const j=Math.abs(e.velocity)*20*a.freeModeMomentumBounceRatio;let f;if(S<e.maxTranslate())a.freeModeMomentumBounce?(S+e.maxTranslate()<-j&&(S=e.maxTranslate()-j),L=e.maxTranslate(),N=!0,n.allowMomentumBounce=!0):S=e.maxTranslate(),a.loop&&a.centeredSlides&&(f=!0);else if(S>e.minTranslate())a.freeModeMomentumBounce?(S-e.minTranslate()>j&&(S=e.minTranslate()+j),L=e.minTranslate(),N=!0,n.allowMomentumBounce=!0):S=e.minTranslate(),a.loop&&a.centeredSlides&&(f=!0);else if(a.freeModeSticky){let U;for(let _=0;_<c.length;_+=1)if(c[_]>-S){U=_;break}Math.abs(c[U]-S)<Math.abs(c[U-1]-S)||e.swipeDirection==="next"?S=c[U]:S=c[U-1],S=-S}if(f&&e.once("transitionEnd",()=>{e.loopFix()}),e.velocity!==0)r?A=Math.abs((-S-e.translate)/e.velocity):A=Math.abs((S-e.translate)/e.velocity);else if(a.freeModeSticky){e.slideToClosest();return}a.freeModeMomentumBounce&&N?(e.updateProgress(L),e.setTransition(A),e.setTranslate(S),e.transitionStart(!0,e.swipeDirection),e.animating=!0,s.transitionEnd(()=>{!e||e.destroyed||!n.allowMomentumBounce||(e.emit("momentumBounce"),e.setTransition(a.speed),e.setTranslate(L),s.transitionEnd(()=>{!e||e.destroyed||e.transitionEnd()}))})):e.velocity?(e.updateProgress(S),e.setTransition(A),e.setTranslate(S),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,s.transitionEnd(()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(S),e.updateActiveIndex(),e.updateSlidesClasses()}else if(a.freeModeSticky){e.slideToClosest();return}(!a.freeModeMomentum||k>=a.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses());return}let P=0,E=e.slidesSizesGrid[0];for(let A=0;A<l.length;A+=a.slidesPerGroup)typeof l[A+a.slidesPerGroup]<"u"?w>=l[A]&&w<l[A+a.slidesPerGroup]&&(P=A,E=l[A+a.slidesPerGroup]-l[A]):w>=l[A]&&(P=A,E=l[l.length-1]-l[l.length-2]);const z=(w-l[P])/E;if(k>a.longSwipesMs){if(!a.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(z>=a.longSwipesRatio?e.slideTo(P+a.slidesPerGroup):e.slideTo(P)),e.swipeDirection==="prev"&&(z>1-a.longSwipesRatio?e.slideTo(P+a.slidesPerGroup):e.slideTo(P))}else{if(!a.shortSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&e.slideTo(P+a.slidesPerGroup),e.swipeDirection==="prev"&&e.slideTo(P)}}function Iy(){const t=this,{params:e,el:n}=t;if(n&&n.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:a,allowSlidePrev:i,snapGrid:r}=t;if(t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),e.freeMode){const s=Math.min(Math.max(t.translate,t.maxTranslate()),t.minTranslate());t.setTranslate(s),t.updateActiveIndex(),t.updateSlidesClasses(),e.autoHeight&&t.updateAutoHeight()}else t.updateSlidesClasses(),(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0);t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.run(),t.allowSlidePrev=i,t.allowSlideNext=a,t.params.watchOverflow&&r!==t.snapGrid&&t.checkOverflow()}function y1(t){const e=this;e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation()))}function b1(){const t=this,{params:e,touchEvents:n,el:a,wrapperEl:i}=t;t.onTouchStart=g1.bind(t),t.onTouchMove=m1.bind(t),t.onTouchEnd=v1.bind(t),t.onClick=y1.bind(t);const r=e.touchEventsTarget==="container"?a:i,s=!!e.nested;{if(!$t.touch&&($t.pointerEvents||$t.prefixedPointerEvents))r.addEventListener(n.start,t.onTouchStart,!1),ne.addEventListener(n.move,t.onTouchMove,s),ne.addEventListener(n.end,t.onTouchEnd,!1);else{if($t.touch){const l=n.start==="touchstart"&&$t.passiveListener&&e.passiveListeners?{passive:!0,capture:!1}:!1;r.addEventListener(n.start,t.onTouchStart,l),r.addEventListener(n.move,t.onTouchMove,$t.passiveListener?{passive:!1,capture:s}:s),r.addEventListener(n.end,t.onTouchEnd,l)}(e.simulateTouch&&!yn.ios&&!yn.android||e.simulateTouch&&!$t.touch&&yn.ios)&&(r.addEventListener("mousedown",t.onTouchStart,!1),ne.addEventListener("mousemove",t.onTouchMove,s),ne.addEventListener("mouseup",t.onTouchEnd,!1))}(e.preventClicks||e.preventClicksPropagation)&&r.addEventListener("click",t.onClick,!0)}t.on(yn.ios||yn.android?"resize orientationchange observerUpdate":"resize observerUpdate",Iy,!0)}function w1(){const t=this,{params:e,touchEvents:n,el:a,wrapperEl:i}=t,r=e.touchEventsTarget==="container"?a:i,s=!!e.nested;{if(!$t.touch&&($t.pointerEvents||$t.prefixedPointerEvents))r.removeEventListener(n.start,t.onTouchStart,!1),ne.removeEventListener(n.move,t.onTouchMove,s),ne.removeEventListener(n.end,t.onTouchEnd,!1);else{if($t.touch){const l=n.start==="onTouchStart"&&$t.passiveListener&&e.passiveListeners?{passive:!0,capture:!1}:!1;r.removeEventListener(n.start,t.onTouchStart,l),r.removeEventListener(n.move,t.onTouchMove,s),r.removeEventListener(n.end,t.onTouchEnd,l)}(e.simulateTouch&&!yn.ios&&!yn.android||e.simulateTouch&&!$t.touch&&yn.ios)&&(r.removeEventListener("mousedown",t.onTouchStart,!1),ne.removeEventListener("mousemove",t.onTouchMove,s),ne.removeEventListener("mouseup",t.onTouchEnd,!1))}(e.preventClicks||e.preventClicksPropagation)&&r.removeEventListener("click",t.onClick,!0)}t.off(yn.ios||yn.android?"resize orientationchange observerUpdate":"resize observerUpdate",Iy)}var k1={attachEvents:b1,detachEvents:w1};function x1(){const t=this,{activeIndex:e,initialized:n,loopedSlides:a=0,params:i}=t,r=i.breakpoints;if(!r||r&&Object.keys(r).length===0)return;const s=t.getBreakpoint(r);if(s&&t.currentBreakpoint!==s){const l=s in r?r[s]:void 0;l&&["slidesPerView","spaceBetween","slidesPerGroup"].forEach(k=>{const w=l[k];typeof w>"u"||(k==="slidesPerView"&&(w==="AUTO"||w==="auto")?l[k]="auto":k==="slidesPerView"?l[k]=parseFloat(w):l[k]=parseInt(w,10))});const c=l||t.originalParams,h=c.direction&&c.direction!==i.direction,m=i.loop&&(c.slidesPerView!==i.slidesPerView||h);h&&n&&t.changeDirection(),yt.extend(t.params,c),yt.extend(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),t.currentBreakpoint=s,m&&n&&(t.loopDestroy(),t.loopCreate(),t.updateSlides(),t.slideTo(e-a+t.loopedSlides,0,!1)),t.emit("breakpoint",c)}}function S1(t){const e=this;if(!t)return;let n=!1;const a=[];Object.keys(t).forEach(i=>{a.push(i)}),a.sort((i,r)=>parseInt(i,10)-parseInt(r,10));for(let i=0;i<a.length;i+=1){const r=a[i];e.params.breakpointsInverse?r<=Mt.innerWidth&&(n=r):r>=Mt.innerWidth&&!n&&(n=r)}return n||"max"}var C1={setBreakpoint:x1,getBreakpoint:S1};function T1(){const t=this,{classNames:e,params:n,rtl:a,$el:i}=t,r=[];r.push("initialized"),r.push(n.direction),n.freeMode&&r.push("free-mode"),$t.flexbox||r.push("no-flexbox"),n.autoHeight&&r.push("autoheight"),a&&r.push("rtl"),n.slidesPerColumn>1&&r.push("multirow"),yn.android&&r.push("android"),yn.ios&&r.push("ios"),($a.isIE||$a.isEdge)&&($t.pointerEvents||$t.prefixedPointerEvents)&&r.push(`wp8-${n.direction}`),r.forEach(s=>{e.push(n.containerModifierClass+s)}),i.addClass(e.join(" "))}function E1(){const t=this,{$el:e,classNames:n}=t;e.removeClass(n.join(" "))}var P1={addClasses:T1,removeClasses:E1};function M1(t,e,n,a,i,r){let s;function l(){r&&r()}(!t.complete||!i)&&e?(s=new Mt.Image,s.onload=l,s.onerror=l,a&&(s.sizes=a),n&&(s.srcset=n),e&&(s.src=e)):l()}function A1(){const t=this;t.imagesToLoad=t.$el.find("img");function e(){typeof t>"u"||t===null||!t||t.destroyed||(t.imagesLoaded!==void 0&&(t.imagesLoaded+=1),t.imagesLoaded===t.imagesToLoad.length&&(t.params.updateOnImagesReady&&t.update(),t.emit("imagesReady")))}for(let n=0;n<t.imagesToLoad.length;n+=1){const a=t.imagesToLoad[n];t.loadImage(a,a.currentSrc||a.getAttribute("src"),a.srcset||a.getAttribute("srcset"),a.sizes||a.getAttribute("sizes"),!0,e)}}var N1={loadImage:M1,preloadImages:A1};function L1(){const t=this,e=t.isLocked;t.isLocked=t.snapGrid.length===1,t.allowSlideNext=!t.isLocked,t.allowSlidePrev=!t.isLocked,e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock"),e&&e!==t.isLocked&&(t.isEnd=!1,t.navigation.update())}var z1={checkOverflow:L1},Xg={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsInverse:!1,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!0,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0};const Hc={update:OS,translate:FS,transition:GS,slide:e1,loop:r1,grabCursor:l1,manipulation:p1,events:k1,breakpoints:C1,checkOverflow:z1,classes:P1,images:N1},Fc={};class En extends Yg{constructor(...e){let n,a;e.length===1&&e[0].constructor&&e[0].constructor===Object?a=e[0]:[n,a]=e,a||(a={}),a=yt.extend({},a),n&&!a.el&&(a.el=n),super(a),Object.keys(Hc).forEach(c=>{Object.keys(Hc[c]).forEach(h=>{En.prototype[h]||(En.prototype[h]=Hc[c][h])})});const i=this;typeof i.modules>"u"&&(i.modules={}),Object.keys(i.modules).forEach(c=>{const h=i.modules[c];if(h.params){const m=Object.keys(h.params)[0],k=h.params[m];if(typeof k!="object"||k===null||!(m in a&&"enabled"in k))return;a[m]===!0&&(a[m]={enabled:!0}),typeof a[m]=="object"&&!("enabled"in a[m])&&(a[m].enabled=!0),a[m]||(a[m]={enabled:!1})}});const r=yt.extend({},Xg);i.useModulesParams(r),i.params=yt.extend({},r,Fc,a),i.originalParams=yt.extend({},i.params),i.passedParams=yt.extend({},a),i.$=kt;const s=kt(i.params.el);if(n=s[0],!n)return;if(s.length>1){const c=[];return s.each((h,m)=>{const k=yt.extend({},a,{el:m});c.push(new En(k))}),c}n.swiper=i,s.data("swiper",i);const l=s.children(`.${i.params.wrapperClass}`);return yt.extend(i,{$el:s,el:n,$wrapperEl:l,wrapperEl:l[0],classNames:[],slides:kt(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return i.params.direction==="horizontal"},isVertical(){return i.params.direction==="vertical"},rtl:n.dir.toLowerCase()==="rtl"||s.css("direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(n.dir.toLowerCase()==="rtl"||s.css("direction")==="rtl"),wrongRTL:l.css("display")==="-webkit-box",activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev,touchEvents:function(){const h=["touchstart","touchmove","touchend"];let m=["mousedown","mousemove","mouseup"];return $t.pointerEvents?m=["pointerdown","pointermove","pointerup"]:$t.prefixedPointerEvents&&(m=["MSPointerDown","MSPointerMove","MSPointerUp"]),i.touchEventsTouch={start:h[0],move:h[1],end:h[2]},i.touchEventsDesktop={start:m[0],move:m[1],end:m[2]},$t.touch||!i.params.simulateTouch?i.touchEventsTouch:i.touchEventsDesktop}(),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,formElements:"input, select, option, textarea, button, video",lastClickTime:yt.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.useModules(),i.params.init&&i.init(),i}slidesPerViewDynamic(){const e=this,{params:n,slides:a,slidesGrid:i,size:r,activeIndex:s}=e;let l=1;if(n.centeredSlides){let c=a[s].swiperSlideSize,h;for(let m=s+1;m<a.length;m+=1)a[m]&&!h&&(c+=a[m].swiperSlideSize,l+=1,c>r&&(h=!0));for(let m=s-1;m>=0;m-=1)a[m]&&!h&&(c+=a[m].swiperSlideSize,l+=1,c>r&&(h=!0))}else for(let c=s+1;c<a.length;c+=1)i[c]-i[s]<r&&(l+=1);return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:n,params:a}=e;a.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function i(){const s=e.rtlTranslate?e.translate*-1:e.translate,l=Math.min(Math.max(s,e.maxTranslate()),e.minTranslate());e.setTranslate(l),e.updateActiveIndex(),e.updateSlidesClasses()}let r;e.params.freeMode?(i(),e.params.autoHeight&&e.updateAutoHeight()):((e.params.slidesPerView==="auto"||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?r=e.slideTo(e.slides.length-1,0,!1,!0):r=e.slideTo(e.activeIndex,0,!1,!0),r||i()),a.watchOverflow&&n!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,n=!0){const a=this,i=a.params.direction;return e||(e=i==="horizontal"?"vertical":"horizontal"),e===i||e!=="horizontal"&&e!=="vertical"||(a.$el.removeClass(`${a.params.containerModifierClass}${i} wp8-${i}`).addClass(`${a.params.containerModifierClass}${e}`),($a.isIE||$a.isEdge)&&($t.pointerEvents||$t.prefixedPointerEvents)&&a.$el.addClass(`${a.params.containerModifierClass}wp8-${e}`),a.params.direction=e,a.slides.each((r,s)=>{e==="vertical"?s.style.width="":s.style.height=""}),a.emit("changeDirection"),n&&a.update()),a}init(){const e=this;e.initialized||(e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.params.loop&&e.loopCreate(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.setGrabCursor(),e.params.preloadImages&&e.preloadImages(),e.params.loop?e.slideTo(e.params.initialSlide+e.loopedSlides,0,e.params.runCallbacksOnInit):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit),e.attachEvents(),e.initialized=!0,e.emit("init"))}destroy(e=!0,n=!0){const a=this,{params:i,$el:r,$wrapperEl:s,slides:l}=a;return typeof a.params>"u"||a.destroyed||(a.emit("beforeDestroy"),a.initialized=!1,a.detachEvents(),i.loop&&a.loopDestroy(),n&&(a.removeClasses(),r.removeAttr("style"),s.removeAttr("style"),l&&l.length&&l.removeClass([i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")),a.emit("destroy"),Object.keys(a.eventsListeners).forEach(c=>{a.off(c)}),e!==!1&&(a.$el[0].swiper=null,a.$el.data("swiper",null),yt.deleteProps(a)),a.destroyed=!0),null}static extendDefaults(e){yt.extend(Fc,e)}static get extendedDefaults(){return Fc}static get defaults(){return Xg}static get Class(){return Yg}static get $(){return kt}}var B1={name:"device",proto:{device:yn},static:{device:yn}},I1={name:"support",proto:{support:$t},static:{support:$t}},D1={name:"browser",proto:{browser:$a},static:{browser:$a}},j1={name:"resize",create(){const t=this;yt.extend(t,{resize:{resizeHandler(){!t||t.destroyed||!t.initialized||(t.emit("beforeResize"),t.emit("resize"))},orientationChangeHandler(){!t||t.destroyed||!t.initialized||t.emit("orientationchange")}}})},on:{init(){const t=this;Mt.addEventListener("resize",t.resize.resizeHandler),Mt.addEventListener("orientationchange",t.resize.orientationChangeHandler)},destroy(){const t=this;Mt.removeEventListener("resize",t.resize.resizeHandler),Mt.removeEventListener("orientationchange",t.resize.orientationChangeHandler)}}};const wl={func:Mt.MutationObserver||Mt.WebkitMutationObserver,attach(t,e={}){const n=this,a=wl.func,i=new a(r=>{if(r.length===1){n.emit("observerUpdate",r[0]);return}const s=function(){n.emit("observerUpdate",r[0])};Mt.requestAnimationFrame?Mt.requestAnimationFrame(s):Mt.setTimeout(s,0)});i.observe(t,{attributes:typeof e.attributes>"u"?!0:e.attributes,childList:typeof e.childList>"u"?!0:e.childList,characterData:typeof e.characterData>"u"?!0:e.characterData}),n.observer.observers.push(i)},init(){const t=this;if(!(!$t.observer||!t.params.observer)){if(t.params.observeParents){const e=t.$el.parents();for(let n=0;n<e.length;n+=1)t.observer.attach(e[n])}t.observer.attach(t.$el[0],{childList:t.params.observeSlideChildren}),t.observer.attach(t.$wrapperEl[0],{attributes:!1})}},destroy(){const t=this;t.observer.observers.forEach(e=>{e.disconnect()}),t.observer.observers=[]}};var R1={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create(){const t=this;yt.extend(t,{observer:{init:wl.init.bind(t),attach:wl.attach.bind(t),destroy:wl.destroy.bind(t),observers:[]}})},on:{init(){this.observer.init()},destroy(){this.observer.destroy()}}};const kr={update(t){const e=this,{slidesPerView:n,slidesPerGroup:a,centeredSlides:i}=e.params,{addSlidesBefore:r,addSlidesAfter:s}=e.params.virtual,{from:l,to:c,slides:h,slidesGrid:m,renderSlide:k,offset:w}=e.virtual;e.updateActiveIndex();const P=e.activeIndex||0;let E;e.rtlTranslate?E="right":E=e.isHorizontal()?"left":"top";let z,A;i?(z=Math.floor(n/2)+a+r,A=Math.floor(n/2)+a+s):(z=n+(a-1)+r,A=a+s);const x=Math.max((P||0)-A,0),S=Math.min((P||0)+z,h.length-1),N=(e.slidesGrid[x]||0)-(e.slidesGrid[0]||0);yt.extend(e.virtual,{from:x,to:S,offset:N,slidesGrid:e.slidesGrid});function L(){e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.lazy&&e.params.lazy.enabled&&e.lazy.load()}if(l===x&&c===S&&!t){e.slidesGrid!==m&&N!==w&&e.slides.css(E,`${N}px`),e.updateProgress();return}if(e.params.virtual.renderExternal){e.params.virtual.renderExternal.call(e,{offset:N,from:x,to:S,slides:function(){const _=[];for(let F=x;F<=S;F+=1)_.push(h[F]);return _}()}),L();return}const j=[],f=[];if(t)e.$wrapperEl.find(`.${e.params.slideClass}`).remove();else for(let U=l;U<=c;U+=1)(U<x||U>S)&&e.$wrapperEl.find(`.${e.params.slideClass}[data-swiper-slide-index="${U}"]`).remove();for(let U=0;U<h.length;U+=1)U>=x&&U<=S&&(typeof c>"u"||t?f.push(U):(U>c&&f.push(U),U<l&&j.push(U)));f.forEach(U=>{e.$wrapperEl.append(k(h[U],U))}),j.sort((U,_)=>_-U).forEach(U=>{e.$wrapperEl.prepend(k(h[U],U))}),e.$wrapperEl.children(".swiper-slide").css(E,`${N}px`),L()},renderSlide(t,e){const n=this,a=n.params.virtual;if(a.cache&&n.virtual.cache[e])return n.virtual.cache[e];const i=a.renderSlide?kt(a.renderSlide.call(n,t,e)):kt(`<div class="${n.params.slideClass}" data-swiper-slide-index="${e}">${t}</div>`);return i.attr("data-swiper-slide-index")||i.attr("data-swiper-slide-index",e),a.cache&&(n.virtual.cache[e]=i),i},appendSlide(t){const e=this;if(typeof t=="object"&&"length"in t)for(let n=0;n<t.length;n+=1)t[n]&&e.virtual.slides.push(t[n]);else e.virtual.slides.push(t);e.virtual.update(!0)},prependSlide(t){const e=this,n=e.activeIndex;let a=n+1,i=1;if(Array.isArray(t)){for(let r=0;r<t.length;r+=1)t[r]&&e.virtual.slides.unshift(t[r]);a=n+t.length,i=t.length}else e.virtual.slides.unshift(t);if(e.params.virtual.cache){const r=e.virtual.cache,s={};Object.keys(r).forEach(l=>{s[parseInt(l,10)+i]=r[l]}),e.virtual.cache=s}e.virtual.update(!0),e.slideTo(a,0)},removeSlide(t){const e=this;if(typeof t>"u"||t===null)return;let n=e.activeIndex;if(Array.isArray(t))for(let a=t.length-1;a>=0;a-=1)e.virtual.slides.splice(t[a],1),e.params.virtual.cache&&delete e.virtual.cache[t[a]],t[a]<n&&(n-=1),n=Math.max(n,0);else e.virtual.slides.splice(t,1),e.params.virtual.cache&&delete e.virtual.cache[t],t<n&&(n-=1),n=Math.max(n,0);e.virtual.update(!0),e.slideTo(n,0)},removeAllSlides(){const t=this;t.virtual.slides=[],t.params.virtual.cache&&(t.virtual.cache={}),t.virtual.update(!0),t.slideTo(0,0)}};var O1={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create(){const t=this;yt.extend(t,{virtual:{update:kr.update.bind(t),appendSlide:kr.appendSlide.bind(t),prependSlide:kr.prependSlide.bind(t),removeSlide:kr.removeSlide.bind(t),removeAllSlides:kr.removeAllSlides.bind(t),renderSlide:kr.renderSlide.bind(t),slides:t.params.virtual.slides,cache:{}}})},on:{beforeInit(){const t=this;if(!t.params.virtual.enabled)return;t.classNames.push(`${t.params.containerModifierClass}virtual`);const e={watchSlidesProgress:!0};yt.extend(t.params,e),yt.extend(t.originalParams,e),t.params.initialSlide||t.virtual.update()},setTranslate(){const t=this;t.params.virtual.enabled&&t.virtual.update()}}};const Wc={handle(t){const e=this,{rtlTranslate:n}=e;let a=t;a.originalEvent&&(a=a.originalEvent);const i=a.keyCode||a.charCode;if(!e.allowSlideNext&&(e.isHorizontal()&&i===39||e.isVertical()&&i===40||i===34)||!e.allowSlidePrev&&(e.isHorizontal()&&i===37||e.isVertical()&&i===38||i===33))return!1;if(!(a.shiftKey||a.altKey||a.ctrlKey||a.metaKey)&&!(ne.activeElement&&ne.activeElement.nodeName&&(ne.activeElement.nodeName.toLowerCase()==="input"||ne.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(i===33||i===34||i===37||i===39||i===38||i===40)){let r=!1;if(e.$el.parents(`.${e.params.slideClass}`).length>0&&e.$el.parents(`.${e.params.slideActiveClass}`).length===0)return;const s=Mt.innerWidth,l=Mt.innerHeight,c=e.$el.offset();n&&(c.left-=e.$el[0].scrollLeft);const h=[[c.left,c.top],[c.left+e.width,c.top],[c.left,c.top+e.height],[c.left+e.width,c.top+e.height]];for(let m=0;m<h.length;m+=1){const k=h[m];k[0]>=0&&k[0]<=s&&k[1]>=0&&k[1]<=l&&(r=!0)}if(!r)return}e.isHorizontal()?((i===33||i===34||i===37||i===39)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),((i===34||i===39)&&!n||(i===33||i===37)&&n)&&e.slideNext(),((i===33||i===37)&&!n||(i===34||i===39)&&n)&&e.slidePrev()):((i===33||i===34||i===38||i===40)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),(i===34||i===40)&&e.slideNext(),(i===33||i===38)&&e.slidePrev()),e.emit("keyPress",i)}},enable(){const t=this;t.keyboard.enabled||(kt(ne).on("keydown",t.keyboard.handle),t.keyboard.enabled=!0)},disable(){const t=this;t.keyboard.enabled&&(kt(ne).off("keydown",t.keyboard.handle),t.keyboard.enabled=!1)}};var K1={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create(){const t=this;yt.extend(t,{keyboard:{enabled:!1,enable:Wc.enable.bind(t),disable:Wc.disable.bind(t),handle:Wc.handle.bind(t)}})},on:{init(){const t=this;t.params.keyboard.enabled&&t.keyboard.enable()},destroy(){const t=this;t.keyboard.enabled&&t.keyboard.disable()}}};function $1(){const t="onwheel";let e=t in ne;if(!e){const n=ne.createElement("div");n.setAttribute(t,"return;"),e=typeof n[t]=="function"}return!e&&ne.implementation&&ne.implementation.hasFeature&&ne.implementation.hasFeature("","")!==!0&&(e=ne.implementation.hasFeature("Events.wheel","3.0")),e}const Na={lastScrollTime:yt.now(),event:function(){return Mt.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":$1()?"wheel":"mousewheel"}(),normalize(t){let i=0,r=0,s=0,l=0;return"detail"in t&&(r=t.detail),"wheelDelta"in t&&(r=-t.wheelDelta/120),"wheelDeltaY"in t&&(r=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(i=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(i=r,r=0),s=i*10,l=r*10,"deltaY"in t&&(l=t.deltaY),"deltaX"in t&&(s=t.deltaX),(s||l)&&t.deltaMode&&(t.deltaMode===1?(s*=40,l*=40):(s*=800,l*=800)),s&&!i&&(i=s<1?-1:1),l&&!r&&(r=l<1?-1:1),{spinX:i,spinY:r,pixelX:s,pixelY:l}},handleMouseEnter(){const t=this;t.mouseEntered=!0},handleMouseLeave(){const t=this;t.mouseEntered=!1},handle(t){let e=t;const n=this,a=n.params.mousewheel;if(!n.mouseEntered&&!a.releaseOnEdges)return!0;e.originalEvent&&(e=e.originalEvent);let i=0;const r=n.rtlTranslate?-1:1,s=Na.normalize(e);if(a.forceToAxis)if(n.isHorizontal())if(Math.abs(s.pixelX)>Math.abs(s.pixelY))i=s.pixelX*r;else return!0;else if(Math.abs(s.pixelY)>Math.abs(s.pixelX))i=s.pixelY;else return!0;else i=Math.abs(s.pixelX)>Math.abs(s.pixelY)?-s.pixelX*r:-s.pixelY;if(i===0)return!0;if(a.invert&&(i=-i),n.params.freeMode){n.params.loop&&n.loopFix();let l=n.getTranslate()+i*a.sensitivity;const c=n.isBeginning,h=n.isEnd;if(l>=n.minTranslate()&&(l=n.minTranslate()),l<=n.maxTranslate()&&(l=n.maxTranslate()),n.setTransition(0),n.setTranslate(l),n.updateProgress(),n.updateActiveIndex(),n.updateSlidesClasses(),(!c&&n.isBeginning||!h&&n.isEnd)&&n.updateSlidesClasses(),n.params.freeModeSticky&&(clearTimeout(n.mousewheel.timeout),n.mousewheel.timeout=yt.nextTick(()=>{n.slideToClosest()},300)),n.emit("scroll",e),n.params.autoplay&&n.params.autoplayDisableOnInteraction&&n.autoplay.stop(),l===n.minTranslate()||l===n.maxTranslate())return!0}else{if(yt.now()-n.mousewheel.lastScrollTime>60){if(i<0){if((!n.isEnd||n.params.loop)&&!n.animating)n.slideNext(),n.emit("scroll",e);else if(a.releaseOnEdges)return!0}else if((!n.isBeginning||n.params.loop)&&!n.animating)n.slidePrev(),n.emit("scroll",e);else if(a.releaseOnEdges)return!0}n.mousewheel.lastScrollTime=new Mt.Date().getTime()}return e.preventDefault?e.preventDefault():e.returnValue=!1,!1},enable(){const t=this;if(!Na.event||t.mousewheel.enabled)return!1;let e=t.$el;return t.params.mousewheel.eventsTarged!=="container"&&(e=kt(t.params.mousewheel.eventsTarged)),e.on("mouseenter",t.mousewheel.handleMouseEnter),e.on("mouseleave",t.mousewheel.handleMouseLeave),e.on(Na.event,t.mousewheel.handle),t.mousewheel.enabled=!0,!0},disable(){const t=this;if(!Na.event||!t.mousewheel.enabled)return!1;let e=t.$el;return t.params.mousewheel.eventsTarged!=="container"&&(e=kt(t.params.mousewheel.eventsTarged)),e.off(Na.event,t.mousewheel.handle),t.mousewheel.enabled=!1,!0}};var q1={name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create(){const t=this;yt.extend(t,{mousewheel:{enabled:!1,enable:Na.enable.bind(t),disable:Na.disable.bind(t),handle:Na.handle.bind(t),handleMouseEnter:Na.handleMouseEnter.bind(t),handleMouseLeave:Na.handleMouseLeave.bind(t),lastScrollTime:yt.now()}})},on:{init(){const t=this;t.params.mousewheel.enabled&&t.mousewheel.enable()},destroy(){const t=this;t.mousewheel.enabled&&t.mousewheel.disable()}}};const xo={update(){const t=this,e=t.params.navigation;if(t.params.loop)return;const{$nextEl:n,$prevEl:a}=t.navigation;a&&a.length>0&&(t.isBeginning?a.addClass(e.disabledClass):a.removeClass(e.disabledClass),a[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](e.lockClass)),n&&n.length>0&&(t.isEnd?n.addClass(e.disabledClass):n.removeClass(e.disabledClass),n[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](e.lockClass))},onPrevClick(t){const e=this;t.preventDefault(),!(e.isBeginning&&!e.params.loop)&&e.slidePrev()},onNextClick(t){const e=this;t.preventDefault(),!(e.isEnd&&!e.params.loop)&&e.slideNext()},init(){const t=this,e=t.params.navigation;if(!(e.nextEl||e.prevEl))return;let n,a;e.nextEl&&(n=kt(e.nextEl),t.params.uniqueNavElements&&typeof e.nextEl=="string"&&n.length>1&&t.$el.find(e.nextEl).length===1&&(n=t.$el.find(e.nextEl))),e.prevEl&&(a=kt(e.prevEl),t.params.uniqueNavElements&&typeof e.prevEl=="string"&&a.length>1&&t.$el.find(e.prevEl).length===1&&(a=t.$el.find(e.prevEl))),n&&n.length>0&&n.on("click",t.navigation.onNextClick),a&&a.length>0&&a.on("click",t.navigation.onPrevClick),yt.extend(t.navigation,{$nextEl:n,nextEl:n&&n[0],$prevEl:a,prevEl:a&&a[0]})},destroy(){const t=this,{$nextEl:e,$prevEl:n}=t.navigation;e&&e.length&&(e.off("click",t.navigation.onNextClick),e.removeClass(t.params.navigation.disabledClass)),n&&n.length&&(n.off("click",t.navigation.onPrevClick),n.removeClass(t.params.navigation.disabledClass))}};var H1={name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create(){const t=this;yt.extend(t,{navigation:{init:xo.init.bind(t),update:xo.update.bind(t),destroy:xo.destroy.bind(t),onNextClick:xo.onNextClick.bind(t),onPrevClick:xo.onPrevClick.bind(t)}})},on:{init(){const t=this;t.navigation.init(),t.navigation.update()},toEdge(){this.navigation.update()},fromEdge(){this.navigation.update()},destroy(){this.navigation.destroy()},click(t){const e=this,{$nextEl:n,$prevEl:a}=e.navigation;if(e.params.navigation.hideOnClick&&!kt(t.target).is(a)&&!kt(t.target).is(n)){let i;n?i=n.hasClass(e.params.navigation.hiddenClass):a&&(i=a.hasClass(e.params.navigation.hiddenClass)),i===!0?e.emit("navigationShow",e):e.emit("navigationHide",e),n&&n.toggleClass(e.params.navigation.hiddenClass),a&&a.toggleClass(e.params.navigation.hiddenClass)}}}};const Qs={update(){const t=this,e=t.rtl,n=t.params.pagination;if(!n.el||!t.pagination.el||!t.pagination.$el||t.pagination.$el.length===0)return;const a=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,i=t.pagination.$el;let r;const s=t.params.loop?Math.ceil((a-t.loopedSlides*2)/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(r=Math.ceil((t.activeIndex-t.loopedSlides)/t.params.slidesPerGroup),r>a-1-t.loopedSlides*2&&(r-=a-t.loopedSlides*2),r>s-1&&(r-=s),r<0&&t.params.paginationType!=="bullets"&&(r=s+r)):typeof t.snapIndex<"u"?r=t.snapIndex:r=t.activeIndex||0,n.type==="bullets"&&t.pagination.bullets&&t.pagination.bullets.length>0){const l=t.pagination.bullets;let c,h,m;if(n.dynamicBullets&&(t.pagination.bulletSize=l.eq(0)[t.isHorizontal()?"outerWidth":"outerHeight"](!0),i.css(t.isHorizontal()?"width":"height",`${t.pagination.bulletSize*(n.dynamicMainBullets+4)}px`),n.dynamicMainBullets>1&&t.previousIndex!==void 0&&(t.pagination.dynamicBulletIndex+=r-t.previousIndex,t.pagination.dynamicBulletIndex>n.dynamicMainBullets-1?t.pagination.dynamicBulletIndex=n.dynamicMainBullets-1:t.pagination.dynamicBulletIndex<0&&(t.pagination.dynamicBulletIndex=0)),c=r-t.pagination.dynamicBulletIndex,h=c+(Math.min(l.length,n.dynamicMainBullets)-1),m=(h+c)/2),l.removeClass(`${n.bulletActiveClass} ${n.bulletActiveClass}-next ${n.bulletActiveClass}-next-next ${n.bulletActiveClass}-prev ${n.bulletActiveClass}-prev-prev ${n.bulletActiveClass}-main`),i.length>1)l.each((k,w)=>{const P=kt(w),E=P.index();E===r&&P.addClass(n.bulletActiveClass),n.dynamicBullets&&(E>=c&&E<=h&&P.addClass(`${n.bulletActiveClass}-main`),E===c&&P.prev().addClass(`${n.bulletActiveClass}-prev`).prev().addClass(`${n.bulletActiveClass}-prev-prev`),E===h&&P.next().addClass(`${n.bulletActiveClass}-next`).next().addClass(`${n.bulletActiveClass}-next-next`))});else if(l.eq(r).addClass(n.bulletActiveClass),n.dynamicBullets){const w=l.eq(c),P=l.eq(h);for(let E=c;E<=h;E+=1)l.eq(E).addClass(`${n.bulletActiveClass}-main`);w.prev().addClass(`${n.bulletActiveClass}-prev`).prev().addClass(`${n.bulletActiveClass}-prev-prev`),P.next().addClass(`${n.bulletActiveClass}-next`).next().addClass(`${n.bulletActiveClass}-next-next`)}if(n.dynamicBullets){const k=Math.min(l.length,n.dynamicMainBullets+4),w=(t.pagination.bulletSize*k-t.pagination.bulletSize)/2-m*t.pagination.bulletSize,P=e?"right":"left";l.css(t.isHorizontal()?P:"top",`${w}px`)}}if(n.type==="fraction"&&(i.find(`.${n.currentClass}`).text(n.formatFractionCurrent(r+1)),i.find(`.${n.totalClass}`).text(n.formatFractionTotal(s))),n.type==="progressbar"){let l;n.progressbarOpposite?l=t.isHorizontal()?"vertical":"horizontal":l=t.isHorizontal()?"horizontal":"vertical";const c=(r+1)/s;let h=1,m=1;l==="horizontal"?h=c:m=c,i.find(`.${n.progressbarFillClass}`).transform(`translate3d(0,0,0) scaleX(${h}) scaleY(${m})`).transition(t.params.speed)}n.type==="custom"&&n.renderCustom?(i.html(n.renderCustom(t,r+1,s)),t.emit("paginationRender",t,i[0])):t.emit("paginationUpdate",t,i[0]),i[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](n.lockClass)},render(){const t=this,e=t.params.pagination;if(!e.el||!t.pagination.el||!t.pagination.$el||t.pagination.$el.length===0)return;const n=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,a=t.pagination.$el;let i="";if(e.type==="bullets"){const r=t.params.loop?Math.ceil((n-t.loopedSlides*2)/t.params.slidesPerGroup):t.snapGrid.length;for(let s=0;s<r;s+=1)e.renderBullet?i+=e.renderBullet.call(t,s,e.bulletClass):i+=`<${e.bulletElement} class="${e.bulletClass}"></${e.bulletElement}>`;a.html(i),t.pagination.bullets=a.find(`.${e.bulletClass}`)}e.type==="fraction"&&(e.renderFraction?i=e.renderFraction.call(t,e.currentClass,e.totalClass):i=`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`,a.html(i)),e.type==="progressbar"&&(e.renderProgressbar?i=e.renderProgressbar.call(t,e.progressbarFillClass):i=`<span class="${e.progressbarFillClass}"></span>`,a.html(i)),e.type!=="custom"&&t.emit("paginationRender",t.pagination.$el[0])},init(){const t=this,e=t.params.pagination;if(!e.el)return;let n=kt(e.el);n.length!==0&&(t.params.uniqueNavElements&&typeof e.el=="string"&&n.length>1&&t.$el.find(e.el).length===1&&(n=t.$el.find(e.el)),e.type==="bullets"&&e.clickable&&n.addClass(e.clickableClass),n.addClass(e.modifierClass+e.type),e.type==="bullets"&&e.dynamicBullets&&(n.addClass(`${e.modifierClass}${e.type}-dynamic`),t.pagination.dynamicBulletIndex=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),e.type==="progressbar"&&e.progressbarOpposite&&n.addClass(e.progressbarOppositeClass),e.clickable&&n.on("click",`.${e.bulletClass}`,function(i){i.preventDefault();let r=kt(this).index()*t.params.slidesPerGroup;t.params.loop&&(r+=t.loopedSlides),t.slideTo(r)}),yt.extend(t.pagination,{$el:n,el:n[0]}))},destroy(){const t=this,e=t.params.pagination;if(!e.el||!t.pagination.el||!t.pagination.$el||t.pagination.$el.length===0)return;const n=t.pagination.$el;n.removeClass(e.hiddenClass),n.removeClass(e.modifierClass+e.type),t.pagination.bullets&&t.pagination.bullets.removeClass(e.bulletActiveClass),e.clickable&&n.off("click",`.${e.bulletClass}`)}};var F1={name:"pagination",params:{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:t=>t,formatFractionTotal:t=>t,bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create(){const t=this;yt.extend(t,{pagination:{init:Qs.init.bind(t),render:Qs.render.bind(t),update:Qs.update.bind(t),destroy:Qs.destroy.bind(t),dynamicBulletIndex:0}})},on:{init(){const t=this;t.pagination.init(),t.pagination.render(),t.pagination.update()},activeIndexChange(){const t=this;(t.params.loop||typeof t.snapIndex>"u")&&t.pagination.update()},snapIndexChange(){const t=this;t.params.loop||t.pagination.update()},slidesLengthChange(){const t=this;t.params.loop&&(t.pagination.render(),t.pagination.update())},snapGridLengthChange(){const t=this;t.params.loop||(t.pagination.render(),t.pagination.update())},destroy(){this.pagination.destroy()},click(t){const e=this;e.params.pagination.el&&e.params.pagination.hideOnClick&&e.pagination.$el.length>0&&!kt(t.target).hasClass(e.params.pagination.bulletClass)&&(e.pagination.$el.hasClass(e.params.pagination.hiddenClass)===!0?e.emit("paginationShow",e):e.emit("paginationHide",e),e.pagination.$el.toggleClass(e.params.pagination.hiddenClass))}}};const Jn={setTranslate(){const t=this;if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e,rtlTranslate:n,progress:a}=t,{dragSize:i,trackSize:r,$dragEl:s,$el:l}=e,c=t.params.scrollbar;let h=i,m=(r-i)*a;n?(m=-m,m>0?(h=i-m,m=0):-m+i>r&&(h=r+m)):m<0?(h=i+m,m=0):m+i>r&&(h=r-m),t.isHorizontal()?($t.transforms3d?s.transform(`translate3d(${m}px, 0, 0)`):s.transform(`translateX(${m}px)`),s[0].style.width=`${h}px`):($t.transforms3d?s.transform(`translate3d(0px, ${m}px, 0)`):s.transform(`translateY(${m}px)`),s[0].style.height=`${h}px`),c.hide&&(clearTimeout(t.scrollbar.timeout),l[0].style.opacity=1,t.scrollbar.timeout=setTimeout(()=>{l[0].style.opacity=0,l.transition(400)},1e3))},setTransition(t){const e=this;!e.params.scrollbar.el||!e.scrollbar.el||e.scrollbar.$dragEl.transition(t)},updateSize(){const t=this;if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e}=t,{$dragEl:n,$el:a}=e;n[0].style.width="",n[0].style.height="";const i=t.isHorizontal()?a[0].offsetWidth:a[0].offsetHeight,r=t.size/t.virtualSize,s=r*(i/t.size);let l;t.params.scrollbar.dragSize==="auto"?l=i*r:l=parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?n[0].style.width=`${l}px`:n[0].style.height=`${l}px`,r>=1?a[0].style.display="none":a[0].style.display="",t.params.scrollbar.hide&&(a[0].style.opacity=0),yt.extend(e,{trackSize:i,divider:r,moveDivider:s,dragSize:l}),e.$el[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](t.params.scrollbar.lockClass)},getPointerPosition(t){return this.isHorizontal()?t.type==="touchstart"||t.type==="touchmove"?t.targetTouches[0].pageX:t.pageX||t.clientX:t.type==="touchstart"||t.type==="touchmove"?t.targetTouches[0].pageY:t.pageY||t.clientY},setDragPosition(t){const e=this,{scrollbar:n,rtlTranslate:a}=e,{$el:i,dragSize:r,trackSize:s,dragStartPos:l}=n;let c;c=(n.getPointerPosition(t)-i.offset()[e.isHorizontal()?"left":"top"]-(l!==null?l:r/2))/(s-r),c=Math.max(Math.min(c,1),0),a&&(c=1-c);const h=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*c;e.updateProgress(h),e.setTranslate(h),e.updateActiveIndex(),e.updateSlidesClasses()},onDragStart(t){const e=this,n=e.params.scrollbar,{scrollbar:a,$wrapperEl:i}=e,{$el:r,$dragEl:s}=a;e.scrollbar.isTouched=!0,e.scrollbar.dragStartPos=t.target===s[0]||t.target===s?a.getPointerPosition(t)-t.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,t.preventDefault(),t.stopPropagation(),i.transition(100),s.transition(100),a.setDragPosition(t),clearTimeout(e.scrollbar.dragTimeout),r.transition(0),n.hide&&r.css("opacity",1),e.emit("scrollbarDragStart",t)},onDragMove(t){const e=this,{scrollbar:n,$wrapperEl:a}=e,{$el:i,$dragEl:r}=n;e.scrollbar.isTouched&&(t.preventDefault?t.preventDefault():t.returnValue=!1,n.setDragPosition(t),a.transition(0),i.transition(0),r.transition(0),e.emit("scrollbarDragMove",t))},onDragEnd(t){const e=this,n=e.params.scrollbar,{scrollbar:a}=e,{$el:i}=a;e.scrollbar.isTouched&&(e.scrollbar.isTouched=!1,n.hide&&(clearTimeout(e.scrollbar.dragTimeout),e.scrollbar.dragTimeout=yt.nextTick(()=>{i.css("opacity",0),i.transition(400)},1e3)),e.emit("scrollbarDragEnd",t),n.snapOnRelease&&e.slideToClosest())},enableDraggable(){const t=this;if(!t.params.scrollbar.el)return;const{scrollbar:e,touchEventsTouch:n,touchEventsDesktop:a,params:i}=t,s=e.$el[0],l=$t.passiveListener&&i.passiveListeners?{passive:!1,capture:!1}:!1,c=$t.passiveListener&&i.passiveListeners?{passive:!0,capture:!1}:!1;$t.touch?(s.addEventListener(n.start,t.scrollbar.onDragStart,l),s.addEventListener(n.move,t.scrollbar.onDragMove,l),s.addEventListener(n.end,t.scrollbar.onDragEnd,c)):(s.addEventListener(a.start,t.scrollbar.onDragStart,l),ne.addEventListener(a.move,t.scrollbar.onDragMove,l),ne.addEventListener(a.end,t.scrollbar.onDragEnd,c))},disableDraggable(){const t=this;if(!t.params.scrollbar.el)return;const{scrollbar:e,touchEventsTouch:n,touchEventsDesktop:a,params:i}=t,s=e.$el[0],l=$t.passiveListener&&i.passiveListeners?{passive:!1,capture:!1}:!1,c=$t.passiveListener&&i.passiveListeners?{passive:!0,capture:!1}:!1;$t.touch?(s.removeEventListener(n.start,t.scrollbar.onDragStart,l),s.removeEventListener(n.move,t.scrollbar.onDragMove,l),s.removeEventListener(n.end,t.scrollbar.onDragEnd,c)):(s.removeEventListener(a.start,t.scrollbar.onDragStart,l),ne.removeEventListener(a.move,t.scrollbar.onDragMove,l),ne.removeEventListener(a.end,t.scrollbar.onDragEnd,c))},init(){const t=this;if(!t.params.scrollbar.el)return;const{scrollbar:e,$el:n}=t,a=t.params.scrollbar;let i=kt(a.el);t.params.uniqueNavElements&&typeof a.el=="string"&&i.length>1&&n.find(a.el).length===1&&(i=n.find(a.el));let r=i.find(`.${t.params.scrollbar.dragClass}`);r.length===0&&(r=kt(`<div class="${t.params.scrollbar.dragClass}"></div>`),i.append(r)),yt.extend(e,{$el:i,el:i[0],$dragEl:r,dragEl:r[0]}),a.draggable&&e.enableDraggable()},destroy(){this.scrollbar.disableDraggable()}};var W1={name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create(){const t=this;yt.extend(t,{scrollbar:{init:Jn.init.bind(t),destroy:Jn.destroy.bind(t),updateSize:Jn.updateSize.bind(t),setTranslate:Jn.setTranslate.bind(t),setTransition:Jn.setTransition.bind(t),enableDraggable:Jn.enableDraggable.bind(t),disableDraggable:Jn.disableDraggable.bind(t),setDragPosition:Jn.setDragPosition.bind(t),getPointerPosition:Jn.getPointerPosition.bind(t),onDragStart:Jn.onDragStart.bind(t),onDragMove:Jn.onDragMove.bind(t),onDragEnd:Jn.onDragEnd.bind(t),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init(){const t=this;t.scrollbar.init(),t.scrollbar.updateSize(),t.scrollbar.setTranslate()},update(){this.scrollbar.updateSize()},resize(){this.scrollbar.updateSize()},observerUpdate(){this.scrollbar.updateSize()},setTranslate(){this.scrollbar.setTranslate()},setTransition(t){this.scrollbar.setTransition(t)},destroy(){this.scrollbar.destroy()}}};const _c={setTransform(t,e){const n=this,{rtl:a}=n,i=kt(t),r=a?-1:1,s=i.attr("data-swiper-parallax")||"0";let l=i.attr("data-swiper-parallax-x"),c=i.attr("data-swiper-parallax-y");const h=i.attr("data-swiper-parallax-scale"),m=i.attr("data-swiper-parallax-opacity");if(l||c?(l=l||"0",c=c||"0"):n.isHorizontal()?(l=s,c="0"):(c=s,l="0"),l.indexOf("%")>=0?l=`${parseInt(l,10)*e*r}%`:l=`${l*e*r}px`,c.indexOf("%")>=0?c=`${parseInt(c,10)*e}%`:c=`${c*e}px`,typeof m<"u"&&m!==null){const k=m-(m-1)*(1-Math.abs(e));i[0].style.opacity=k}if(typeof h>"u"||h===null)i.transform(`translate3d(${l}, ${c}, 0px)`);else{const k=h-(h-1)*(1-Math.abs(e));i.transform(`translate3d(${l}, ${c}, 0px) scale(${k})`)}},setTranslate(){const t=this,{$el:e,slides:n,progress:a,snapGrid:i}=t;e.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((r,s)=>{t.parallax.setTransform(s,a)}),n.each((r,s)=>{let l=s.progress;t.params.slidesPerGroup>1&&t.params.slidesPerView!=="auto"&&(l+=Math.ceil(r/2)-a*(i.length-1)),l=Math.min(Math.max(l,-1),1),kt(s).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((c,h)=>{t.parallax.setTransform(h,l)})})},setTransition(t=this.params.speed){const e=this,{$el:n}=e;n.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((a,i)=>{const r=kt(i);let s=parseInt(r.attr("data-swiper-parallax-duration"),10)||t;t===0&&(s=0),r.transition(s)})}};var _1={name:"parallax",params:{parallax:{enabled:!1}},create(){const t=this;yt.extend(t,{parallax:{setTransform:_c.setTransform.bind(t),setTranslate:_c.setTranslate.bind(t),setTransition:_c.setTransition.bind(t)}})},on:{beforeInit(){const t=this;t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)},init(){const t=this;t.params.parallax.enabled&&t.parallax.setTranslate()},setTranslate(){const t=this;t.params.parallax.enabled&&t.parallax.setTranslate()},setTransition(t){const e=this;e.params.parallax.enabled&&e.parallax.setTransition(t)}}};const Zd={getDistanceBetweenTouches(t){if(t.targetTouches.length<2)return 1;const e=t.targetTouches[0].pageX,n=t.targetTouches[0].pageY,a=t.targetTouches[1].pageX,i=t.targetTouches[1].pageY;return Math.sqrt((a-e)**2+(i-n)**2)},onGestureStart(t){const e=this,n=e.params.zoom,a=e.zoom,{gesture:i}=a;if(a.fakeGestureTouched=!1,a.fakeGestureMoved=!1,!$t.gestures){if(t.type!=="touchstart"||t.type==="touchstart"&&t.targetTouches.length<2)return;a.fakeGestureTouched=!0,i.scaleStart=Zd.getDistanceBetweenTouches(t)}if((!i.$slideEl||!i.$slideEl.length)&&(i.$slideEl=kt(t.target).closest(".swiper-slide"),i.$slideEl.length===0&&(i.$slideEl=e.slides.eq(e.activeIndex)),i.$imageEl=i.$slideEl.find("img, svg, canvas"),i.$imageWrapEl=i.$imageEl.parent(`.${n.containerClass}`),i.maxRatio=i.$imageWrapEl.attr("data-swiper-zoom")||n.maxRatio,i.$imageWrapEl.length===0)){i.$imageEl=void 0;return}i.$imageEl.transition(0),e.zoom.isScaling=!0},onGestureChange(t){const e=this,n=e.params.zoom,a=e.zoom,{gesture:i}=a;if(!$t.gestures){if(t.type!=="touchmove"||t.type==="touchmove"&&t.targetTouches.length<2)return;a.fakeGestureMoved=!0,i.scaleMove=Zd.getDistanceBetweenTouches(t)}!i.$imageEl||i.$imageEl.length===0||($t.gestures?a.scale=t.scale*a.currentScale:a.scale=i.scaleMove/i.scaleStart*a.currentScale,a.scale>i.maxRatio&&(a.scale=i.maxRatio-1+(a.scale-i.maxRatio+1)**.5),a.scale<n.minRatio&&(a.scale=n.minRatio+1-(n.minRatio-a.scale+1)**.5),i.$imageEl.transform(`translate3d(0,0,0) scale(${a.scale})`))},onGestureEnd(t){const e=this,n=e.params.zoom,a=e.zoom,{gesture:i}=a;if(!$t.gestures){if(!a.fakeGestureTouched||!a.fakeGestureMoved||t.type!=="touchend"||t.type==="touchend"&&t.changedTouches.length<2&&!yn.android)return;a.fakeGestureTouched=!1,a.fakeGestureMoved=!1}!i.$imageEl||i.$imageEl.length===0||(a.scale=Math.max(Math.min(a.scale,i.maxRatio),n.minRatio),i.$imageEl.transition(e.params.speed).transform(`translate3d(0,0,0) scale(${a.scale})`),a.currentScale=a.scale,a.isScaling=!1,a.scale===1&&(i.$slideEl=void 0))},onTouchStart(t){const n=this.zoom,{gesture:a,image:i}=n;!a.$imageEl||a.$imageEl.length===0||i.isTouched||(yn.android&&t.preventDefault(),i.isTouched=!0,i.touchesStart.x=t.type==="touchstart"?t.targetTouches[0].pageX:t.pageX,i.touchesStart.y=t.type==="touchstart"?t.targetTouches[0].pageY:t.pageY)},onTouchMove(t){const e=this,n=e.zoom,{gesture:a,image:i,velocity:r}=n;if(!a.$imageEl||a.$imageEl.length===0||(e.allowClick=!1,!i.isTouched||!a.$slideEl))return;i.isMoved||(i.width=a.$imageEl[0].offsetWidth,i.height=a.$imageEl[0].offsetHeight,i.startX=yt.getTranslate(a.$imageWrapEl[0],"x")||0,i.startY=yt.getTranslate(a.$imageWrapEl[0],"y")||0,a.slideWidth=a.$slideEl[0].offsetWidth,a.slideHeight=a.$slideEl[0].offsetHeight,a.$imageWrapEl.transition(0),e.rtl&&(i.startX=-i.startX,i.startY=-i.startY));const s=i.width*n.scale,l=i.height*n.scale;if(!(s<a.slideWidth&&l<a.slideHeight)){if(i.minX=Math.min(a.slideWidth/2-s/2,0),i.maxX=-i.minX,i.minY=Math.min(a.slideHeight/2-l/2,0),i.maxY=-i.minY,i.touchesCurrent.x=t.type==="touchmove"?t.targetTouches[0].pageX:t.pageX,i.touchesCurrent.y=t.type==="touchmove"?t.targetTouches[0].pageY:t.pageY,!i.isMoved&&!n.isScaling){if(e.isHorizontal()&&(Math.floor(i.minX)===Math.floor(i.startX)&&i.touchesCurrent.x<i.touchesStart.x||Math.floor(i.maxX)===Math.floor(i.startX)&&i.touchesCurrent.x>i.touchesStart.x)){i.isTouched=!1;return}if(!e.isHorizontal()&&(Math.floor(i.minY)===Math.floor(i.startY)&&i.touchesCurrent.y<i.touchesStart.y||Math.floor(i.maxY)===Math.floor(i.startY)&&i.touchesCurrent.y>i.touchesStart.y)){i.isTouched=!1;return}}t.preventDefault(),t.stopPropagation(),i.isMoved=!0,i.currentX=i.touchesCurrent.x-i.touchesStart.x+i.startX,i.currentY=i.touchesCurrent.y-i.touchesStart.y+i.startY,i.currentX<i.minX&&(i.currentX=i.minX+1-(i.minX-i.currentX+1)**.8),i.currentX>i.maxX&&(i.currentX=i.maxX-1+(i.currentX-i.maxX+1)**.8),i.currentY<i.minY&&(i.currentY=i.minY+1-(i.minY-i.currentY+1)**.8),i.currentY>i.maxY&&(i.currentY=i.maxY-1+(i.currentY-i.maxY+1)**.8),r.prevPositionX||(r.prevPositionX=i.touchesCurrent.x),r.prevPositionY||(r.prevPositionY=i.touchesCurrent.y),r.prevTime||(r.prevTime=Date.now()),r.x=(i.touchesCurrent.x-r.prevPositionX)/(Date.now()-r.prevTime)/2,r.y=(i.touchesCurrent.y-r.prevPositionY)/(Date.now()-r.prevTime)/2,Math.abs(i.touchesCurrent.x-r.prevPositionX)<2&&(r.x=0),Math.abs(i.touchesCurrent.y-r.prevPositionY)<2&&(r.y=0),r.prevPositionX=i.touchesCurrent.x,r.prevPositionY=i.touchesCurrent.y,r.prevTime=Date.now(),a.$imageWrapEl.transform(`translate3d(${i.currentX}px, ${i.currentY}px,0)`)}},onTouchEnd(){const e=this.zoom,{gesture:n,image:a,velocity:i}=e;if(!n.$imageEl||n.$imageEl.length===0)return;if(!a.isTouched||!a.isMoved){a.isTouched=!1,a.isMoved=!1;return}a.isTouched=!1,a.isMoved=!1;let r=300,s=300;const l=i.x*r,c=a.currentX+l,h=i.y*s,m=a.currentY+h;i.x!==0&&(r=Math.abs((c-a.currentX)/i.x)),i.y!==0&&(s=Math.abs((m-a.currentY)/i.y));const k=Math.max(r,s);a.currentX=c,a.currentY=m;const w=a.width*e.scale,P=a.height*e.scale;a.minX=Math.min(n.slideWidth/2-w/2,0),a.maxX=-a.minX,a.minY=Math.min(n.slideHeight/2-P/2,0),a.maxY=-a.minY,a.currentX=Math.max(Math.min(a.currentX,a.maxX),a.minX),a.currentY=Math.max(Math.min(a.currentY,a.maxY),a.minY),n.$imageWrapEl.transition(k).transform(`translate3d(${a.currentX}px, ${a.currentY}px,0)`)},onTransitionEnd(){const t=this,e=t.zoom,{gesture:n}=e;n.$slideEl&&t.previousIndex!==t.activeIndex&&(n.$imageEl.transform("translate3d(0,0,0) scale(1)"),n.$imageWrapEl.transform("translate3d(0,0,0)"),e.scale=1,e.currentScale=1,n.$slideEl=void 0,n.$imageEl=void 0,n.$imageWrapEl=void 0)},toggle(t){const n=this.zoom;n.scale&&n.scale!==1?n.out():n.in(t)},in(t){const e=this,n=e.zoom,a=e.params.zoom,{gesture:i,image:r}=n;if(i.$slideEl||(i.$slideEl=e.clickedSlide?kt(e.clickedSlide):e.slides.eq(e.activeIndex),i.$imageEl=i.$slideEl.find("img, svg, canvas"),i.$imageWrapEl=i.$imageEl.parent(`.${a.containerClass}`)),!i.$imageEl||i.$imageEl.length===0)return;i.$slideEl.addClass(`${a.zoomedSlideClass}`);let s,l,c,h,m,k,w,P,E,z,A,x,S,N,L,j,f,U;typeof r.touchesStart.x>"u"&&t?(s=t.type==="touchend"?t.changedTouches[0].pageX:t.pageX,l=t.type==="touchend"?t.changedTouches[0].pageY:t.pageY):(s=r.touchesStart.x,l=r.touchesStart.y),n.scale=i.$imageWrapEl.attr("data-swiper-zoom")||a.maxRatio,n.currentScale=i.$imageWrapEl.attr("data-swiper-zoom")||a.maxRatio,t?(f=i.$slideEl[0].offsetWidth,U=i.$slideEl[0].offsetHeight,c=i.$slideEl.offset().left,h=i.$slideEl.offset().top,m=c+f/2-s,k=h+U/2-l,E=i.$imageEl[0].offsetWidth,z=i.$imageEl[0].offsetHeight,A=E*n.scale,x=z*n.scale,S=Math.min(f/2-A/2,0),N=Math.min(U/2-x/2,0),L=-S,j=-N,w=m*n.scale,P=k*n.scale,w<S&&(w=S),w>L&&(w=L),P<N&&(P=N),P>j&&(P=j)):(w=0,P=0),i.$imageWrapEl.transition(300).transform(`translate3d(${w}px, ${P}px,0)`),i.$imageEl.transition(300).transform(`translate3d(0,0,0) scale(${n.scale})`)},out(){const t=this,e=t.zoom,n=t.params.zoom,{gesture:a}=e;a.$slideEl||(a.$slideEl=t.clickedSlide?kt(t.clickedSlide):t.slides.eq(t.activeIndex),a.$imageEl=a.$slideEl.find("img, svg, canvas"),a.$imageWrapEl=a.$imageEl.parent(`.${n.containerClass}`)),!(!a.$imageEl||a.$imageEl.length===0)&&(e.scale=1,e.currentScale=1,a.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),a.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),a.$slideEl.removeClass(`${n.zoomedSlideClass}`),a.$slideEl=void 0)},enable(){const t=this,e=t.zoom;if(e.enabled)return;e.enabled=!0;const n=t.touchEvents.start==="touchstart"&&$t.passiveListener&&t.params.passiveListeners?{passive:!0,capture:!1}:!1;$t.gestures?(t.$wrapperEl.on("gesturestart",".swiper-slide",e.onGestureStart,n),t.$wrapperEl.on("gesturechange",".swiper-slide",e.onGestureChange,n),t.$wrapperEl.on("gestureend",".swiper-slide",e.onGestureEnd,n)):t.touchEvents.start==="touchstart"&&(t.$wrapperEl.on(t.touchEvents.start,".swiper-slide",e.onGestureStart,n),t.$wrapperEl.on(t.touchEvents.move,".swiper-slide",e.onGestureChange,n),t.$wrapperEl.on(t.touchEvents.end,".swiper-slide",e.onGestureEnd,n)),t.$wrapperEl.on(t.touchEvents.move,`.${t.params.zoom.containerClass}`,e.onTouchMove)},disable(){const t=this,e=t.zoom;if(!e.enabled)return;t.zoom.enabled=!1;const n=t.touchEvents.start==="touchstart"&&$t.passiveListener&&t.params.passiveListeners?{passive:!0,capture:!1}:!1;$t.gestures?(t.$wrapperEl.off("gesturestart",".swiper-slide",e.onGestureStart,n),t.$wrapperEl.off("gesturechange",".swiper-slide",e.onGestureChange,n),t.$wrapperEl.off("gestureend",".swiper-slide",e.onGestureEnd,n)):t.touchEvents.start==="touchstart"&&(t.$wrapperEl.off(t.touchEvents.start,".swiper-slide",e.onGestureStart,n),t.$wrapperEl.off(t.touchEvents.move,".swiper-slide",e.onGestureChange,n),t.$wrapperEl.off(t.touchEvents.end,".swiper-slide",e.onGestureEnd,n)),t.$wrapperEl.off(t.touchEvents.move,`.${t.params.zoom.containerClass}`,e.onTouchMove)}};var V1={name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create(){const t=this,e={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{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:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach(a=>{e[a]=Zd[a].bind(t)}),yt.extend(t,{zoom:e});let n=1;Object.defineProperty(t.zoom,"scale",{get(){return n},set(a){if(n!==a){const i=t.zoom.gesture.$imageEl?t.zoom.gesture.$imageEl[0]:void 0,r=t.zoom.gesture.$slideEl?t.zoom.gesture.$slideEl[0]:void 0;t.emit("zoomChange",a,i,r)}n=a}})},on:{init(){const t=this;t.params.zoom.enabled&&t.zoom.enable()},destroy(){this.zoom.disable()},touchStart(t){const e=this;e.zoom.enabled&&e.zoom.onTouchStart(t)},touchEnd(t){const e=this;e.zoom.enabled&&e.zoom.onTouchEnd(t)},doubleTap(t){const e=this;e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&e.zoom.toggle(t)},transitionEnd(){const t=this;t.zoom.enabled&&t.params.zoom.enabled&&t.zoom.onTransitionEnd()}}};const Zg={loadInSlide(t,e=!0){const n=this,a=n.params.lazy;if(typeof t>"u"||n.slides.length===0)return;const r=n.virtual&&n.params.virtual.enabled?n.$wrapperEl.children(`.${n.params.slideClass}[data-swiper-slide-index="${t}"]`):n.slides.eq(t);let s=r.find(`.${a.elementClass}:not(.${a.loadedClass}):not(.${a.loadingClass})`);r.hasClass(a.elementClass)&&!r.hasClass(a.loadedClass)&&!r.hasClass(a.loadingClass)&&(s=s.add(r[0])),s.length!==0&&s.each((l,c)=>{const h=kt(c);h.addClass(a.loadingClass);const m=h.attr("data-background"),k=h.attr("data-src"),w=h.attr("data-srcset"),P=h.attr("data-sizes");n.loadImage(h[0],k||m,w,P,!1,()=>{if(!(typeof n>"u"||n===null||!n||n&&!n.params||n.destroyed)){if(m?(h.css("background-image",`url("${m}")`),h.removeAttr("data-background")):(w&&(h.attr("srcset",w),h.removeAttr("data-srcset")),P&&(h.attr("sizes",P),h.removeAttr("data-sizes")),k&&(h.attr("src",k),h.removeAttr("data-src"))),h.addClass(a.loadedClass).removeClass(a.loadingClass),r.find(`.${a.preloaderClass}`).remove(),n.params.loop&&e){const E=r.attr("data-swiper-slide-index");if(r.hasClass(n.params.slideDuplicateClass)){const z=n.$wrapperEl.children(`[data-swiper-slide-index="${E}"]:not(.${n.params.slideDuplicateClass})`);n.lazy.loadInSlide(z.index(),!1)}else{const z=n.$wrapperEl.children(`.${n.params.slideDuplicateClass}[data-swiper-slide-index="${E}"]`);n.lazy.loadInSlide(z.index(),!1)}}n.emit("lazyImageReady",r[0],h[0])}}),n.emit("lazyImageLoad",r[0],h[0])})},load(){const t=this,{$wrapperEl:e,params:n,slides:a,activeIndex:i}=t,r=t.virtual&&n.virtual.enabled,s=n.lazy;let l=n.slidesPerView;l==="auto"&&(l=0);function c(m){if(r){if(e.children(`.${n.slideClass}[data-swiper-slide-index="${m}"]`).length)return!0}else if(a[m])return!0;return!1}function h(m){return r?kt(m).attr("data-swiper-slide-index"):kt(m).index()}if(t.lazy.initialImageLoaded||(t.lazy.initialImageLoaded=!0),t.params.watchSlidesVisibility)e.children(`.${n.slideVisibleClass}`).each((m,k)=>{const w=r?kt(k).attr("data-swiper-slide-index"):kt(k).index();t.lazy.loadInSlide(w)});else if(l>1)for(let m=i;m<i+l;m+=1)c(m)&&t.lazy.loadInSlide(m);else t.lazy.loadInSlide(i);if(s.loadPrevNext)if(l>1||s.loadPrevNextAmount&&s.loadPrevNextAmount>1){const m=s.loadPrevNextAmount,k=l,w=Math.min(i+k+Math.max(m,k),a.length),P=Math.max(i-Math.max(k,m),0);for(let E=i+l;E<w;E+=1)c(E)&&t.lazy.loadInSlide(E);for(let E=P;E<i;E+=1)c(E)&&t.lazy.loadInSlide(E)}else{const m=e.children(`.${n.slideNextClass}`);m.length>0&&t.lazy.loadInSlide(h(m));const k=e.children(`.${n.slidePrevClass}`);k.length>0&&t.lazy.loadInSlide(h(k))}}};var G1={name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create(){const t=this;yt.extend(t,{lazy:{initialImageLoaded:!1,load:Zg.load.bind(t),loadInSlide:Zg.loadInSlide.bind(t)}})},on:{beforeInit(){const t=this;t.params.lazy.enabled&&t.params.preloadImages&&(t.params.preloadImages=!1)},init(){const t=this;t.params.lazy.enabled&&!t.params.loop&&t.params.initialSlide===0&&t.lazy.load()},scroll(){const t=this;t.params.freeMode&&!t.params.freeModeSticky&&t.lazy.load()},resize(){const t=this;t.params.lazy.enabled&&t.lazy.load()},scrollbarDragMove(){const t=this;t.params.lazy.enabled&&t.lazy.load()},transitionStart(){const t=this;t.params.lazy.enabled&&(t.params.lazy.loadOnTransitionStart||!t.params.lazy.loadOnTransitionStart&&!t.lazy.initialImageLoaded)&&t.lazy.load()},transitionEnd(){const t=this;t.params.lazy.enabled&&!t.params.lazy.loadOnTransitionStart&&t.lazy.load()}}};const Uo={LinearSpline:function(e,n){const a=function(){let l,c,h;return(m,k)=>{for(c=-1,l=m.length;l-c>1;)h=l+c>>1,m[h]<=k?c=h:l=h;return l}}();this.x=e,this.y=n,this.lastIndex=e.length-1;let i,r;return this.interpolate=function(l){return l?(r=a(this.x,l),i=r-1,(l-this.x[i])*(this.y[r]-this.y[i])/(this.x[r]-this.x[i])+this.y[i]):0},this},getInterpolateFunction(t){const e=this;e.controller.spline||(e.controller.spline=e.params.loop?new Uo.LinearSpline(e.slidesGrid,t.slidesGrid):new Uo.LinearSpline(e.snapGrid,t.snapGrid))},setTranslate(t,e){const n=this,a=n.controller.control;let i,r;function s(l){const c=n.rtlTranslate?-n.translate:n.translate;n.params.controller.by==="slide"&&(n.controller.getInterpolateFunction(l),r=-n.controller.spline.interpolate(-c)),(!r||n.params.controller.by==="container")&&(i=(l.maxTranslate()-l.minTranslate())/(n.maxTranslate()-n.minTranslate()),r=(c-n.minTranslate())*i+l.minTranslate()),n.params.controller.inverse&&(r=l.maxTranslate()-r),l.updateProgress(r),l.setTranslate(r,n),l.updateActiveIndex(),l.updateSlidesClasses()}if(Array.isArray(a))for(let l=0;l<a.length;l+=1)a[l]!==e&&a[l]instanceof En&&s(a[l]);else a instanceof En&&e!==a&&s(a)},setTransition(t,e){const n=this,a=n.controller.control;let i;function r(s){s.setTransition(t,n),t!==0&&(s.transitionStart(),s.params.autoHeight&&yt.nextTick(()=>{s.updateAutoHeight()}),s.$wrapperEl.transitionEnd(()=>{a&&(s.params.loop&&n.params.controller.by==="slide"&&s.loopFix(),s.transitionEnd())}))}if(Array.isArray(a))for(i=0;i<a.length;i+=1)a[i]!==e&&a[i]instanceof En&&r(a[i]);else a instanceof En&&e!==a&&r(a)}};var U1={name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create(){const t=this;yt.extend(t,{controller:{control:t.params.controller.control,getInterpolateFunction:Uo.getInterpolateFunction.bind(t),setTranslate:Uo.setTranslate.bind(t),setTransition:Uo.setTransition.bind(t)}})},on:{update(){const t=this;t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)},resize(){const t=this;t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)},observerUpdate(){const t=this;t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)},setTranslate(t,e){const n=this;n.controller.control&&n.controller.setTranslate(t,e)},setTransition(t,e){const n=this;n.controller.control&&n.controller.setTransition(t,e)}}};const Jg={makeElFocusable(t){return t.attr("tabIndex","0"),t},addElRole(t,e){return t.attr("role",e),t},addElLabel(t,e){return t.attr("aria-label",e),t},disableEl(t){return t.attr("aria-disabled",!0),t},enableEl(t){return t.attr("aria-disabled",!1),t},onEnterKey(t){const e=this,n=e.params.a11y;if(t.keyCode!==13)return;const a=kt(t.target);e.navigation&&e.navigation.$nextEl&&a.is(e.navigation.$nextEl)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?e.a11y.notify(n.lastSlideMessage):e.a11y.notify(n.nextSlideMessage)),e.navigation&&e.navigation.$prevEl&&a.is(e.navigation.$prevEl)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?e.a11y.notify(n.firstSlideMessage):e.a11y.notify(n.prevSlideMessage)),e.pagination&&a.is(`.${e.params.pagination.bulletClass}`)&&a[0].click()},notify(t){const n=this.a11y.liveRegion;n.length!==0&&(n.html(""),n.html(t))},updateNavigation(){const t=this;if(t.params.loop)return;const{$nextEl:e,$prevEl:n}=t.navigation;n&&n.length>0&&(t.isBeginning?t.a11y.disableEl(n):t.a11y.enableEl(n)),e&&e.length>0&&(t.isEnd?t.a11y.disableEl(e):t.a11y.enableEl(e))},updatePagination(){const t=this,e=t.params.a11y;t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.bullets.each((n,a)=>{const i=kt(a);t.a11y.makeElFocusable(i),t.a11y.addElRole(i,"button"),t.a11y.addElLabel(i,e.paginationBulletMessage.replace(/{{index}}/,i.index()+1))})},init(){const t=this;t.$el.append(t.a11y.liveRegion);const e=t.params.a11y;let n,a;t.navigation&&t.navigation.$nextEl&&(n=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(a=t.navigation.$prevEl),n&&(t.a11y.makeElFocusable(n),t.a11y.addElRole(n,"button"),t.a11y.addElLabel(n,e.nextSlideMessage),n.on("keydown",t.a11y.onEnterKey)),a&&(t.a11y.makeElFocusable(a),t.a11y.addElRole(a,"button"),t.a11y.addElLabel(a,e.prevSlideMessage),a.on("keydown",t.a11y.onEnterKey)),t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.$el.on("keydown",`.${t.params.pagination.bulletClass}`,t.a11y.onEnterKey)},destroy(){const t=this;t.a11y.liveRegion&&t.a11y.liveRegion.length>0&&t.a11y.liveRegion.remove();let e,n;t.navigation&&t.navigation.$nextEl&&(e=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(n=t.navigation.$prevEl),e&&e.off("keydown",t.a11y.onEnterKey),n&&n.off("keydown",t.a11y.onEnterKey),t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.$el.off("keydown",`.${t.params.pagination.bulletClass}`,t.a11y.onEnterKey)}};var Y1={name:"a11y",params:{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}}"}},create(){const t=this;yt.extend(t,{a11y:{liveRegion:kt(`<span class="${t.params.a11y.notificationClass}" aria-live="assertive" aria-atomic="true"></span>`)}}),Object.keys(Jg).forEach(e=>{t.a11y[e]=Jg[e].bind(t)})},on:{init(){const t=this;t.params.a11y.enabled&&(t.a11y.init(),t.a11y.updateNavigation())},toEdge(){const t=this;t.params.a11y.enabled&&t.a11y.updateNavigation()},fromEdge(){const t=this;t.params.a11y.enabled&&t.a11y.updateNavigation()},paginationUpdate(){const t=this;t.params.a11y.enabled&&t.a11y.updatePagination()},destroy(){const t=this;t.params.a11y.enabled&&t.a11y.destroy()}}};const Xa={init(){const t=this;if(!t.params.history)return;if(!Mt.history||!Mt.history.pushState){t.params.history.enabled=!1,t.params.hashNavigation.enabled=!0;return}const e=t.history;e.initialized=!0,e.paths=Xa.getPathValues(),!(!e.paths.key&&!e.paths.value)&&(e.scrollToSlide(0,e.paths.value,t.params.runCallbacksOnInit),t.params.history.replaceState||Mt.addEventListener("popstate",t.history.setHistoryPopState))},destroy(){const t=this;t.params.history.replaceState||Mt.removeEventListener("popstate",t.history.setHistoryPopState)},setHistoryPopState(){const t=this;t.history.paths=Xa.getPathValues(),t.history.scrollToSlide(t.params.speed,t.history.paths.value,!1)},getPathValues(){const t=Mt.location.pathname.slice(1).split("/").filter(i=>i!==""),e=t.length,n=t[e-2],a=t[e-1];return{key:n,value:a}},setHistory(t,e){const n=this;if(!n.history.initialized||!n.params.history.enabled)return;const a=n.slides.eq(e);let i=Xa.slugify(a.attr("data-history"));Mt.location.pathname.includes(t)||(i=`${t}/${i}`);const r=Mt.history.state;r&&r.value===i||(n.params.history.replaceState?Mt.history.replaceState({value:i},null,i):Mt.history.pushState({value:i},null,i))},slugify(t){return t.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide(t,e,n){const a=this;if(e)for(let i=0,r=a.slides.length;i<r;i+=1){const s=a.slides.eq(i);if(Xa.slugify(s.attr("data-history"))===e&&!s.hasClass(a.params.slideDuplicateClass)){const c=s.index();a.slideTo(c,t,n)}}else a.slideTo(0,t,n)}};var X1={name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create(){const t=this;yt.extend(t,{history:{init:Xa.init.bind(t),setHistory:Xa.setHistory.bind(t),setHistoryPopState:Xa.setHistoryPopState.bind(t),scrollToSlide:Xa.scrollToSlide.bind(t),destroy:Xa.destroy.bind(t)}})},on:{init(){const t=this;t.params.history.enabled&&t.history.init()},destroy(){const t=this;t.params.history.enabled&&t.history.destroy()},transitionEnd(){const t=this;t.history.initialized&&t.history.setHistory(t.params.history.key,t.activeIndex)}}};const tl={onHashCange(){const t=this,e=ne.location.hash.replace("#",""),n=t.slides.eq(t.activeIndex).attr("data-hash");if(e!==n){const a=t.$wrapperEl.children(`.${t.params.slideClass}[data-hash="${e}"]`).index();if(typeof a>"u")return;t.slideTo(a)}},setHash(){const t=this;if(!(!t.hashNavigation.initialized||!t.params.hashNavigation.enabled))if(t.params.hashNavigation.replaceState&&Mt.history&&Mt.history.replaceState)Mt.history.replaceState(null,null,`#${t.slides.eq(t.activeIndex).attr("data-hash")}`||"");else{const e=t.slides.eq(t.activeIndex),n=e.attr("data-hash")||e.attr("data-history");ne.location.hash=n||""}},init(){const t=this;if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;t.hashNavigation.initialized=!0;const e=ne.location.hash.replace("#","");if(e)for(let a=0,i=t.slides.length;a<i;a+=1){const r=t.slides.eq(a);if((r.attr("data-hash")||r.attr("data-history"))===e&&!r.hasClass(t.params.slideDuplicateClass)){const l=r.index();t.slideTo(l,0,t.params.runCallbacksOnInit,!0)}}t.params.hashNavigation.watchState&&kt(Mt).on("hashchange",t.hashNavigation.onHashCange)},destroy(){const t=this;t.params.hashNavigation.watchState&&kt(Mt).off("hashchange",t.hashNavigation.onHashCange)}};var Z1={name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create(){const t=this;yt.extend(t,{hashNavigation:{initialized:!1,init:tl.init.bind(t),destroy:tl.destroy.bind(t),setHash:tl.setHash.bind(t),onHashCange:tl.onHashCange.bind(t)}})},on:{init(){const t=this;t.params.hashNavigation.enabled&&t.hashNavigation.init()},destroy(){const t=this;t.params.hashNavigation.enabled&&t.hashNavigation.destroy()},transitionEnd(){const t=this;t.hashNavigation.initialized&&t.hashNavigation.setHash()}}};const el={run(){const t=this,e=t.slides.eq(t.activeIndex);let n=t.params.autoplay.delay;e.attr("data-swiper-autoplay")&&(n=e.attr("data-swiper-autoplay")||t.params.autoplay.delay),clearTimeout(t.autoplay.timeout),t.autoplay.timeout=yt.nextTick(()=>{t.params.autoplay.reverseDirection?t.params.loop?(t.loopFix(),t.slidePrev(t.params.speed,!0,!0),t.emit("autoplay")):t.isBeginning?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(t.slideTo(t.slides.length-1,t.params.speed,!0,!0),t.emit("autoplay")):(t.slidePrev(t.params.speed,!0,!0),t.emit("autoplay")):t.params.loop?(t.loopFix(),t.slideNext(t.params.speed,!0,!0),t.emit("autoplay")):t.isEnd?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(t.slideTo(0,t.params.speed,!0,!0),t.emit("autoplay")):(t.slideNext(t.params.speed,!0,!0),t.emit("autoplay"))},n)},start(){const t=this;return typeof t.autoplay.timeout<"u"||t.autoplay.running?!1:(t.autoplay.running=!0,t.emit("autoplayStart"),t.autoplay.run(),!0)},stop(){const t=this;return!t.autoplay.running||typeof t.autoplay.timeout>"u"?!1:(t.autoplay.timeout&&(clearTimeout(t.autoplay.timeout),t.autoplay.timeout=void 0),t.autoplay.running=!1,t.emit("autoplayStop"),!0)},pause(t){const e=this;e.autoplay.running&&(e.autoplay.paused||(e.autoplay.timeout&&clearTimeout(e.autoplay.timeout),e.autoplay.paused=!0,t===0||!e.params.autoplay.waitForTransition?(e.autoplay.paused=!1,e.autoplay.run()):(e.$wrapperEl[0].addEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].addEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd))))}};var J1={name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create(){const t=this;yt.extend(t,{autoplay:{running:!1,paused:!1,run:el.run.bind(t),start:el.start.bind(t),stop:el.stop.bind(t),pause:el.pause.bind(t),onTransitionEnd(e){!t||t.destroyed||!t.$wrapperEl||e.target===this&&(t.$wrapperEl[0].removeEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].removeEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd),t.autoplay.paused=!1,t.autoplay.running?t.autoplay.run():t.autoplay.stop())}}})},on:{init(){const t=this;t.params.autoplay.enabled&&t.autoplay.start()},beforeTransitionStart(t,e){const n=this;n.autoplay.running&&(e||!n.params.autoplay.disableOnInteraction?n.autoplay.pause(t):n.autoplay.stop())},sliderFirstMove(){const t=this;t.autoplay.running&&(t.params.autoplay.disableOnInteraction?t.autoplay.stop():t.autoplay.pause())},destroy(){const t=this;t.autoplay.running&&t.autoplay.stop()}}};const Qg={setTranslate(){const t=this,{slides:e}=t;for(let n=0;n<e.length;n+=1){const a=t.slides.eq(n);let r=-a[0].swiperSlideOffset;t.params.virtualTranslate||(r-=t.translate);let s=0;t.isHorizontal()||(s=r,r=0);const l=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(a[0].progress),0):1+Math.min(Math.max(a[0].progress,-1),0);a.css({opacity:l}).transform(`translate3d(${r}px, ${s}px, 0px)`)}},setTransition(t){const e=this,{slides:n,$wrapperEl:a}=e;if(n.transition(t),e.params.virtualTranslate&&t!==0){let i=!1;n.transitionEnd(()=>{if(i||!e||e.destroyed)return;i=!0,e.animating=!1;const r=["webkitTransitionEnd","transitionend"];for(let s=0;s<r.length;s+=1)a.trigger(r[s])})}}};var Q1={name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create(){const t=this;yt.extend(t,{fadeEffect:{setTranslate:Qg.setTranslate.bind(t),setTransition:Qg.setTransition.bind(t)}})},on:{beforeInit(){const t=this;if(t.params.effect!=="fade")return;t.classNames.push(`${t.params.containerModifierClass}fade`);const e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};yt.extend(t.params,e),yt.extend(t.originalParams,e)},setTranslate(){const t=this;t.params.effect==="fade"&&t.fadeEffect.setTranslate()},setTransition(t){const e=this;e.params.effect==="fade"&&e.fadeEffect.setTransition(t)}}};const tm={setTranslate(){const t=this,{$el:e,$wrapperEl:n,slides:a,width:i,height:r,rtlTranslate:s,size:l}=t,c=t.params.cubeEffect,h=t.isHorizontal(),m=t.virtual&&t.params.virtual.enabled;let k=0,w;c.shadow&&(h?(w=n.find(".swiper-cube-shadow"),w.length===0&&(w=kt('<div class="swiper-cube-shadow"></div>'),n.append(w)),w.css({height:`${i}px`})):(w=e.find(".swiper-cube-shadow"),w.length===0&&(w=kt('<div class="swiper-cube-shadow"></div>'),e.append(w))));for(let E=0;E<a.length;E+=1){const z=a.eq(E);let A=E;m&&(A=parseInt(z.attr("data-swiper-slide-index"),10));let x=A*90,S=Math.floor(x/360);s&&(x=-x,S=Math.floor(-x/360));const N=Math.max(Math.min(z[0].progress,1),-1);let L=0,j=0,f=0;A%4===0?(L=-S*4*l,f=0):(A-1)%4===0?(L=0,f=-S*4*l):(A-2)%4===0?(L=l+S*4*l,f=l):(A-3)%4===0&&(L=-l,f=3*l+l*4*S),s&&(L=-L),h||(j=L,L=0);const U=`rotateX(${h?0:-x}deg) rotateY(${h?x:0}deg) translate3d(${L}px, ${j}px, ${f}px)`;if(N<=1&&N>-1&&(k=A*90+N*90,s&&(k=-A*90-N*90)),z.transform(U),c.slideShadows){let _=h?z.find(".swiper-slide-shadow-left"):z.find(".swiper-slide-shadow-top"),F=h?z.find(".swiper-slide-shadow-right"):z.find(".swiper-slide-shadow-bottom");_.length===0&&(_=kt(`<div class="swiper-slide-shadow-${h?"left":"top"}"></div>`),z.append(_)),F.length===0&&(F=kt(`<div class="swiper-slide-shadow-${h?"right":"bottom"}"></div>`),z.append(F)),_.length&&(_[0].style.opacity=Math.max(-N,0)),F.length&&(F[0].style.opacity=Math.max(N,0))}}if(n.css({"-webkit-transform-origin":`50% 50% -${l/2}px`,"-moz-transform-origin":`50% 50% -${l/2}px`,"-ms-transform-origin":`50% 50% -${l/2}px`,"transform-origin":`50% 50% -${l/2}px`}),c.shadow)if(h)w.transform(`translate3d(0px, ${i/2+c.shadowOffset}px, ${-i/2}px) rotateX(90deg) rotateZ(0deg) scale(${c.shadowScale})`);else{const E=Math.abs(k)-Math.floor(Math.abs(k)/90)*90,z=1.5-(Math.sin(E*2*Math.PI/360)/2+Math.cos(E*2*Math.PI/360)/2),A=c.shadowScale,x=c.shadowScale/z,S=c.shadowOffset;w.transform(`scale3d(${A}, 1, ${x}) translate3d(0px, ${r/2+S}px, ${-r/2/x}px) rotateX(-90deg)`)}const P=$a.isSafari||$a.isUiWebView?-l/2:0;n.transform(`translate3d(0px,0,${P}px) rotateX(${t.isHorizontal()?0:k}deg) rotateY(${t.isHorizontal()?-k:0}deg)`)},setTransition(t){const e=this,{$el:n,slides:a}=e;a.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),e.params.cubeEffect.shadow&&!e.isHorizontal()&&n.find(".swiper-cube-shadow").transition(t)}};var tC={name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create(){const t=this;yt.extend(t,{cubeEffect:{setTranslate:tm.setTranslate.bind(t),setTransition:tm.setTransition.bind(t)}})},on:{beforeInit(){const t=this;if(t.params.effect!=="cube")return;t.classNames.push(`${t.params.containerModifierClass}cube`),t.classNames.push(`${t.params.containerModifierClass}3d`);const e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};yt.extend(t.params,e),yt.extend(t.originalParams,e)},setTranslate(){const t=this;t.params.effect==="cube"&&t.cubeEffect.setTranslate()},setTransition(t){const e=this;e.params.effect==="cube"&&e.cubeEffect.setTransition(t)}}};const em={setTranslate(){const t=this,{slides:e,rtlTranslate:n}=t;for(let a=0;a<e.length;a+=1){const i=e.eq(a);let r=i[0].progress;t.params.flipEffect.limitRotation&&(r=Math.max(Math.min(i[0].progress,1),-1));const s=i[0].swiperSlideOffset;let c=-180*r,h=0,m=-s,k=0;if(t.isHorizontal()?n&&(c=-c):(k=m,m=0,h=-c,c=0),i[0].style.zIndex=-Math.abs(Math.round(r))+e.length,t.params.flipEffect.slideShadows){let w=t.isHorizontal()?i.find(".swiper-slide-shadow-left"):i.find(".swiper-slide-shadow-top"),P=t.isHorizontal()?i.find(".swiper-slide-shadow-right"):i.find(".swiper-slide-shadow-bottom");w.length===0&&(w=kt(`<div class="swiper-slide-shadow-${t.isHorizontal()?"left":"top"}"></div>`),i.append(w)),P.length===0&&(P=kt(`<div class="swiper-slide-shadow-${t.isHorizontal()?"right":"bottom"}"></div>`),i.append(P)),w.length&&(w[0].style.opacity=Math.max(-r,0)),P.length&&(P[0].style.opacity=Math.max(r,0))}i.transform(`translate3d(${m}px, ${k}px, 0px) rotateX(${h}deg) rotateY(${c}deg)`)}},setTransition(t){const e=this,{slides:n,activeIndex:a,$wrapperEl:i}=e;if(n.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),e.params.virtualTranslate&&t!==0){let r=!1;n.eq(a).transitionEnd(function(){if(r||!e||e.destroyed)return;r=!0,e.animating=!1;const l=["webkitTransitionEnd","transitionend"];for(let c=0;c<l.length;c+=1)i.trigger(l[c])})}}};var eC={name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create(){const t=this;yt.extend(t,{flipEffect:{setTranslate:em.setTranslate.bind(t),setTransition:em.setTransition.bind(t)}})},on:{beforeInit(){const t=this;if(t.params.effect!=="flip")return;t.classNames.push(`${t.params.containerModifierClass}flip`),t.classNames.push(`${t.params.containerModifierClass}3d`);const e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};yt.extend(t.params,e),yt.extend(t.originalParams,e)},setTranslate(){const t=this;t.params.effect==="flip"&&t.flipEffect.setTranslate()},setTransition(t){const e=this;e.params.effect==="flip"&&e.flipEffect.setTransition(t)}}};const nm={setTranslate(){const t=this,{width:e,height:n,slides:a,$wrapperEl:i,slidesSizesGrid:r}=t,s=t.params.coverflowEffect,l=t.isHorizontal(),c=t.translate,h=l?-c+e/2:-c+n/2,m=l?s.rotate:-s.rotate,k=s.depth;for(let w=0,P=a.length;w<P;w+=1){const E=a.eq(w),z=r[w],A=E[0].swiperSlideOffset,x=(h-A-z/2)/z*s.modifier;let S=l?m*x:0,N=l?0:m*x,L=-k*Math.abs(x),j=l?0:s.stretch*x,f=l?s.stretch*x:0;Math.abs(f)<.001&&(f=0),Math.abs(j)<.001&&(j=0),Math.abs(L)<.001&&(L=0),Math.abs(S)<.001&&(S=0),Math.abs(N)<.001&&(N=0);const U=`translate3d(${f}px,${j}px,${L}px) rotateX(${N}deg) rotateY(${S}deg)`;if(E.transform(U),E[0].style.zIndex=-Math.abs(Math.round(x))+1,s.slideShadows){let _=l?E.find(".swiper-slide-shadow-left"):E.find(".swiper-slide-shadow-top"),F=l?E.find(".swiper-slide-shadow-right"):E.find(".swiper-slide-shadow-bottom");_.length===0&&(_=kt(`<div class="swiper-slide-shadow-${l?"left":"top"}"></div>`),E.append(_)),F.length===0&&(F=kt(`<div class="swiper-slide-shadow-${l?"right":"bottom"}"></div>`),E.append(F)),_.length&&(_[0].style.opacity=x>0?x:0),F.length&&(F[0].style.opacity=-x>0?-x:0)}}if($t.pointerEvents||$t.prefixedPointerEvents){const w=i[0].style;w.perspectiveOrigin=`${h}px 50%`}},setTransition(t){this.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t)}};var nC={name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create(){const t=this;yt.extend(t,{coverflowEffect:{setTranslate:nm.setTranslate.bind(t),setTransition:nm.setTransition.bind(t)}})},on:{beforeInit(){const t=this;t.params.effect==="coverflow"&&(t.classNames.push(`${t.params.containerModifierClass}coverflow`),t.classNames.push(`${t.params.containerModifierClass}3d`),t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)},setTranslate(){const t=this;t.params.effect==="coverflow"&&t.coverflowEffect.setTranslate()},setTransition(t){const e=this;e.params.effect==="coverflow"&&e.coverflowEffect.setTransition(t)}}};const Vc={init(){const t=this,{thumbs:e}=t.params,n=t.constructor;e.swiper instanceof n?(t.thumbs.swiper=e.swiper,yt.extend(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),yt.extend(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):yt.isObject(e.swiper)&&(t.thumbs.swiper=new n(yt.extend({},e.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),t.thumbs.swiperCreated=!0),t.thumbs.swiper.$el.addClass(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",t.thumbs.onThumbClick)},onThumbClick(){const t=this,e=t.thumbs.swiper;if(!e)return;const n=e.clickedIndex,a=e.clickedSlide;if(a&&kt(a).hasClass(t.params.thumbs.slideThumbActiveClass)||typeof n>"u"||n===null)return;let i;if(e.params.loop?i=parseInt(kt(e.clickedSlide).attr("data-swiper-slide-index"),10):i=n,t.params.loop){let r=t.activeIndex;t.slides.eq(r).hasClass(t.params.slideDuplicateClass)&&(t.loopFix(),t._clientLeft=t.$wrapperEl[0].clientLeft,r=t.activeIndex);const s=t.slides.eq(r).prevAll(`[data-swiper-slide-index="${i}"]`).eq(0).index(),l=t.slides.eq(r).nextAll(`[data-swiper-slide-index="${i}"]`).eq(0).index();typeof s>"u"?i=l:typeof l>"u"?i=s:l-r<r-s?i=l:i=s}t.slideTo(i)},update(t){const e=this,n=e.thumbs.swiper;if(!n)return;const a=n.params.slidesPerView==="auto"?n.slidesPerViewDynamic():n.params.slidesPerView;if(e.realIndex!==n.realIndex){let s=n.activeIndex,l;if(n.params.loop){n.slides.eq(s).hasClass(n.params.slideDuplicateClass)&&(n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft,s=n.activeIndex);const c=n.slides.eq(s).prevAll(`[data-swiper-slide-index="${e.realIndex}"]`).eq(0).index(),h=n.slides.eq(s).nextAll(`[data-swiper-slide-index="${e.realIndex}"]`).eq(0).index();typeof c>"u"?l=h:typeof h>"u"?l=c:h-s===s-c?l=s:h-s<s-c?l=h:l=c}else l=e.realIndex;n.visibleSlidesIndexes&&n.visibleSlidesIndexes.indexOf(l)<0&&(n.params.centeredSlides?l>s?l=l-Math.floor(a/2)+1:l=l+Math.floor(a/2)-1:l>s&&(l=l-a+1),n.slideTo(l,t?0:void 0))}let i=1;const r=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(i=e.params.slidesPerView),n.slides.removeClass(r),n.params.loop||n.params.virtual)for(let s=0;s<i;s+=1)n.$wrapperEl.children(`[data-swiper-slide-index="${e.realIndex+s}"]`).addClass(r);else for(let s=0;s<i;s+=1)n.slides.eq(e.realIndex+s).addClass(r)}};var aC={name:"thumbs",params:{thumbs:{swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create(){const t=this;yt.extend(t,{thumbs:{swiper:null,init:Vc.init.bind(t),update:Vc.update.bind(t),onThumbClick:Vc.onThumbClick.bind(t)}})},on:{beforeInit(){const t=this,{thumbs:e}=t.params;!e||!e.swiper||(t.thumbs.init(),t.thumbs.update(!0))},slideChange(){const t=this;t.thumbs.swiper&&t.thumbs.update()},update(){const t=this;t.thumbs.swiper&&t.thumbs.update()},resize(){const t=this;t.thumbs.swiper&&t.thumbs.update()},observerUpdate(){const t=this;t.thumbs.swiper&&t.thumbs.update()},setTransition(t){const n=this.thumbs.swiper;n&&n.setTransition(t)},beforeDestroy(){const t=this,e=t.thumbs.swiper;e&&t.thumbs.swiperCreated&&e&&e.destroy()}}};const iC=[B1,I1,D1,j1,R1,O1,K1,q1,H1,F1,W1,_1,V1,G1,U1,Y1,X1,Z1,J1,Q1,tC,eC,nC,aC];typeof En.use>"u"&&(En.use=En.Class.use,En.installModule=En.Class.installModule);En.use(iC);const rC=Object.freeze(Object.defineProperty({__proto__:null,default:En},Symbol.toStringTag,{value:"Module"})),oC=ky(rC);var oo={};Object.defineProperty(oo,"__esModule",{value:!0});var kl=Mn();oo.classNames=function(t){return typeof t=="string"?t.split(".").join(" ").trim():t instanceof HTMLElement?t.className:""};oo.validateChildren=function(t){var e=!0;return Array.isArray(t)?kl.Children.forEach(t,function(n){kl.isValidElement(n)||(e=!1)}):e=kl.isValidElement(t),e};oo.isReactElement=function(t){return kl.isValidElement(t)&&(typeof t.type=="string"||typeof t.type=="function"||typeof t.type=="object")};oo.isModuleAvailable=function(t,e){for(var n=!1,a=0;a<t.length;a++)if(t[a].name===e){n=!0;break}return n};var Jd=ii&&ii.__assign||function(){return Jd=Object.assign||function(t){for(var e,n=1,a=arguments.length;n<a;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Jd.apply(this,arguments)},sC=ii&&ii.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e},Dy=ii&&ii.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(wh,"__esModule",{value:!0});var Sn=sC(Mn()),lC=Dy(oC),uC=Dy(mh),Ji=oo,Sh=function(t){var e=t.activeSlideKey,n=t.ContainerEl,a=t.children,i=t.containerClass,r=t.getSwiper,s=t.navigation,l=t.noSwiping,c=t.pagination,h=t.parallax,m=t.parallaxEl,k=t.WrapperEl,w=t.wrapperClass,P=t.rebuildOnUpdate,E=t.renderScrollbar,z=t.renderPagination,A=t.renderPrevButton,x=t.renderNextButton,S=t.renderParallax,N=t.rtl,L=t.scrollbar,j=t.shouldSwiperUpdate,f=t.slideClass,U=t.loop,_=Sn.createRef(),F=Sn.useRef(null);if(!a||!n||!k)return null;if(!Ji.validateChildren(a))return console.warn("Children should be react element or an array of react element!!"),null;var gt=function(){if(!e)return null;var v=0,Q=U?1:0;return Sn.Children.forEach(a,function(st){Sn.isValidElement(st)&&(st.key===e&&(v=Q),Q+=1)}),v},dt=function(v){typeof r=="function"&&r(v)},ot=function(){F.current!==null&&(F.current.destroy(!0,!0),F.current=null,dt(F.current))},X=function(){_.current&&F.current===null&&(F.current=new lC.default(_.current,uC.default({},t)),dt(F.current))},$=function(){ot(),X()},o=function(){F.current!==null&&(F.current.update(),dt(F.current))},tt=function(v){if(!Ji.isReactElement(v))return null;var Q=[f,v.props.className];return l&&Q.push("swiper-no-swiping"),Sn.cloneElement(v,Jd({},v.props,{className:Q.join(" ").trim()}))};return Sn.useEffect(function(){X();var v=gt();return F.current!==null&&v!==null&&F.current.slideTo(v),function(){return ot()}},[]),Sn.useEffect(function(){if(F.current!==null){if(P)$();else if(j){o();var v=F.current.slides.length;if(v<=F.current.activeIndex){var Q=Math.max(v-1,0);F.current.slideTo(Q)}}var st=gt();st!==null&&F.current.slideTo(st)}}),Sn.default.createElement(n,{className:i,dir:N&&"rtl",ref:_},h&&m&&S&&S(t),Sn.default.createElement(k,{className:w},Sn.Children.map(a,tt)),c&&c.el&&z&&z(t),L&&L.el&&E&&E(t),s&&s.nextEl&&x&&x(t),s&&s.prevEl&&A&&A(t))};Sh.defaultProps={containerClass:"swiper-container",wrapperClass:"swiper-wrapper",slideClass:"swiper-slide",ContainerEl:"div",WrapperEl:"div",renderScrollbar:function(t){var e=t.scrollbar;return e?Sn.default.createElement("div",{className:Ji.classNames(e.el)}):null},renderPagination:function(t){var e=t.pagination;return e?Sn.default.createElement("div",{className:Ji.classNames(e.el)}):null},renderPrevButton:function(t){var e=t.navigation;return e?Sn.default.createElement("div",{className:Ji.classNames(e.prevEl)}):null},renderNextButton:function(t){var e=t.navigation;return e?Sn.default.createElement("div",{className:Ji.classNames(e.nextEl)}):null},renderParallax:function(t){var e=t.parallaxEl;return e?Sn.default.createElement("div",{className:Ji.classNames(e.el),"data-swiper-parallax":e.value}):null}};Sh.displayName="ReactIdSwiper";wh.default=Sh;var cC=ii&&ii.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(zy,"__esModule",{value:!0});var dC=cC(wh),fC=zy.default=dC.default;(function(){function t(N,L){var j=N.search(P);if(j===-1)return{b:L+" "+N,a:""};if(N[j]===",")return{b:L+" "+N.substr(0,j),a:N.substr(j+1)};var f=!0,U=!1;j=N.search(/\S/);var _=0;t:for(;j<N.length;++j){var F=N[j];switch(F){case"[":F=w.exec(N.substr(j)),j+=(F?F[0].length:1)-1;continue;case"(":++_;continue;case":":if(f)if(E.test(N.substr(j))){if(_)return null}else continue;else continue;N=N.substring(0,j)+L+N.substr(j+6),j+=L.length,U=!0,--j;continue;case")":_&&--_;continue}if(!_)switch(F){case",":break t;case" ":case">":case"~":case"+":f&&(f=!1)}}return{b:(U?"":L+" ")+N.substr(0,j),a:N.substr(j+1)}}function e(N,L,j,f){if(N instanceof CSSMediaRule)for(j=N.cssRules.length,f=0;f<j;++f)e(N.cssRules[f],L,N,f);else if(N instanceof CSSStyleRule){t:{for(var U=N.selectorText,_=[];U;){if(U=t(U,L),U===null){L=":not(*)";break t}_.push(U.b),U=U.a}L=_.join(", ")}m?N.selectorText=L:(N=N.style.cssText,j.deleteRule(f),j.insertRule(L+" {"+N+"}",f))}}function n(N,L){var j=N.parentStyleSheet,f;for(f=0;f<j.rules.length&&j.rules[f]!==N;++f);return j.removeRule(f),j.insertRule(L,f),j.rules[f]}function a(N){var L=null;try{L=N.cssRules}catch(j){if(j instanceof DOMException)return j;throw j}return L?null:{code:DOMException.SECURITY_ERR}}function i(N,L,j){j?N.setAttribute(L,""):N.removeAttribute(L)}function r(N,L,j){j?N.classList.add(L):N.classList.remove(L)}function s(N){var L=N.scoped&&document.body.contains(N)?N.parentNode:null,j=k.get(N);if(j){if(L)N.sheet&&z(N.sheet,j.prefix);else{k.delete(N);var f=N.textContent;N.textContent="",N.textContent=f}return j.parent!==L&&(j.parent&&A(j.parent,j.attrName,!1),L&&A(L,j.attrName,!0),j.parent=L),!1}L&&(j=""+h.prefix+ ++x,f=A===i?"["+j+"]":"."+j,k.set(N,{attrName:j,prefix:f,parent:N.parentNode}),z(N.sheet,f),A(L,j,!0))}function l(){var N=window.scopedCSS;if(typeof N=="object"){for(var L in h)L in N&&(h[L]=N[L]);h.applyToClass&&(A=r)}for(S.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["scoped"]}),N=document.body.getElementsByTagName("style"),L=0;L<N.length;++L)s(N[L])}var c=document.createElement("style");if(!("scoped"in c)){var h={applyToClass:!1,prefix:"__scoped_"};c.textContent=".x{color:red;}",document.head.appendChild(c),c.sheet.cssRules[0].selectorText=".change";var m=c.sheet.cssRules[0].selectorText===".change";document.head.removeChild(c),Object.defineProperty(HTMLStyleElement.prototype,"scoped",{enumerable:!0,get:function(){return this.hasAttribute("scoped")},set:function(N){N?this.setAttribute("scoped",this.getAttribute("scoped")||""):this.removeAttribute("scoped")}});var k=new Map,w=/^\[.*?(?:(["'])(?:.|\\\1)*\1.*)*\]/,P=/([([,]|:scope\b)/,E=/^:scope\b/,z=function(){function N(_,F){if(L.get(_)!==F){var gt=a(_);if(gt)switch(gt.code){case DOMException.SECURITY_ERR:var dt=new XMLHttpRequest;dt.responseType="blob",dt.open("GET",_.href);var ot=n(_.ownerRule,"@import url('data:text/css;base64,')");dt.onload=function(){var o=URL.createObjectURL(dt.response),tt=n(ot,"@import '"+o+"'");j.set(tt,F),U(),URL.revokeObjectURL(o)},dt.send();return;case DOMException.INVALID_ACCESS_ERR:f.set(_,F),U();return;default:throw gt}L.set(_,F),gt=_.cssRules.length;for(var X=0;X<gt;++X){var $=_.cssRules[X];$ instanceof CSSImportRule?$.styleSheet?N($.styleSheet,F):(j.set($,F),U()):e($,F,_,X)}return!0}}var L=new WeakMap,j=new Map,f=new Map,U=function(){function _(){var gt=!1;F=0,j.forEach(function(dt,ot){if(ot.styleSheet)N(ot.styleSheet,dt);else{t:{for(dt=ot.parentStyleSheet;dt;){if(dt.ownerNode){dt=dt.ownerNode;break t}dt=dt.parentStyleSheet}dt=null}if(dt){gt=!0;return}}j.delete(ot)}),f.forEach(function(dt,ot){a(ot)?gt=!0:(N(ot,dt),f.delete(ot))}),gt&&(F=window.requestAnimationFrame(_))}var F=0;return function(){F=F||window.requestAnimationFrame(_)}}();return N}(),A=i,x=0,S=new MutationObserver(function(N){function L(f){for(var U=f?f.length:0;U;){var _=f[--U];if(_ instanceof HTMLElement)if(_ instanceof HTMLStyleElement)j.add(_);else{_=_.getElementsByTagName("style");for(var F=_.length;F;)j.add(_[--F])}}}var j=new Set;N.forEach(function(f){f.target instanceof HTMLStyleElement?j.add(f.target):(L(f.addedNodes),L(f.removedNodes))}),j.forEach(s)});document.readyState==="loading"?window.addEventListener("DOMContentLoaded",l):l()}})();class ur{constructor(){this.handlers=[]}subscribe(e){this.handlers.indexOf(e)===-1&&this.handlers.push(e)}unsubscribe(e){this.handlers=this.handlers.filter(n=>n!==e)}raise(e){this.handlers.slice(0).forEach(n=>n(e))}}class hC{static getActualUrlFromCSSPropertyValue(e){const n=e.match(/.*url\((['"])(.*?)\1\).*/i);return n?n[2]:""}}const Ma=class Ma{constructor(){this.animationDuration=3e3,this.animatableCanvas=null,window.addEventListener("orientationchange",()=>window.setTimeout(()=>this.adjustAnimationWrapper(this.currentPage),200))}static pageHasAnimation(e){return!!Ma.getAnimatableCanvas(e)}static getAnimationCanvas(e){if(e.firstElementChild&&e.firstElementChild.classList.contains("bloom-animationBackground")){const n=e.firstElementChild;if(n.firstElementChild&&n.firstElementChild.classList.contains(Ma.wrapperClassName)){const a=n.firstElementChild;if(a.firstElementChild&&a.firstElementChild.hasAttribute("data-initialrect"))return a.firstElementChild}}return null}static getAnimatableCanvas(e){const n=[].slice.call(e.getElementsByClassName("bloom-canvas")).find(a=>!a.closest(".bloom-animationBackground")&&!!a.dataset.initialrect);return n||[].slice.call(e.getElementsByClassName("bloom-imageContainer")).find(a=>!!a.dataset.initialrect)}HandlePageBeforeVisible(e){this.shouldAnimate(e)||this.removeAnimationWrappers(e)}HandlePageVisible(e,n){this.shouldAnimate(e)&&(this.currentPage=e,this.animatableCanvas=Ma.getAnimatableCanvas(e),this.currentPage===this.lastDurationPage&&this.setupAnimation(e,n))}HandlePageDurationAvailable(e,n,a){this.shouldAnimate(e)&&(this.animationDuration=n,this.lastDurationPage=e,this.currentPage===this.lastDurationPage&&this.setupAnimation(e,a))}resumeAnimation(){!this.PlayAnimations||!this.animationEngine||this.animationEngine.resume()}PauseAnimation(){!this.PlayAnimations||!this.animationEngine||this.animationEngine.pause()}setupAnimation(e,n){if(!this.PlayAnimations||!this.animatableCanvas)return;let a=e.firstElementChild,i=null;if(!a||!a.classList.contains("bloom-animationBackground")){a=document.createElement("div");for(let l=0;l<this.animatableCanvas.classList.length;l++)a.classList.add(this.animatableCanvas.classList[l]);a.classList.add("bloom-animationBackground");const r=this.animatableCanvas.cloneNode(!0),s=()=>{const l=this.animatableCanvas.style.backgroundImage;l?r.style.backgroundImage=l:requestAnimationFrame(s)};r.hasAttribute("data-imgsizebasedon")||requestAnimationFrame(s),i=document.createElement("div"),i.classList.add(Ma.wrapperClassName),i.appendChild(r),i.style.visibility="hidden",a.appendChild(i),e.insertBefore(a,e.firstChild),this.applyCanvasAspectRatioToAnimationWrapper(e,i,r,n)}else i=a.firstElementChild,i.hasAttribute("data-aspectRatio")?(this.placeAnimationWrapper(i),this.createAndPlayAnimation(e,n)):this.applyCanvasAspectRatioToAnimationWrapper(e,i,i.firstElementChild,n)}createAndPlayAnimation(e,n){const a=Ma.getAnimationCanvas(e);if(this.animationEngine&&this.animationEngine.endAnimation(),a){const i=a.getAttribute("data-initialrect"),r=a.getAttribute("data-finalrect");this.animationEngine=new pC(i,r,this.animationDuration,a),n?this.animationEngine.setCurrentAnimationFrame():this.animationEngine.startAnimation()}}applyCanvasAspectRatioToAnimationWrapper(e,n,a,i){if(e.hasAttribute("data-aspectRatio"))this.placeAnimationWrapper(n),this.createAndPlayAnimation(e,i);else if(a.hasAttribute("data-imgsizebasedon")){const r=a.getAttribute("data-imgsizebasedon").split(",").map(parseFloat);n.setAttribute("data-aspectRatio",(r[0]/r[1]).toString()),this.placeAnimationWrapper(n),this.createAndPlayAnimation(e,i)}else{const r=()=>{if(a.style.backgroundImage){const s=new Image;s.addEventListener("load",()=>{n.setAttribute("data-aspectRatio",(s.naturalWidth/s.naturalHeight).toString()),this.placeAnimationWrapper(n),this.createAndPlayAnimation(e,i)}),s.src=hC.getActualUrlFromCSSPropertyValue(a.style.backgroundImage)}else requestAnimationFrame(r)};requestAnimationFrame(r)}}placeAnimationWrapper(e){const n=parseFloat(e.getAttribute("data-aspectRatio")),a=e.parentElement,i=a.clientWidth,r=a.clientHeight,s=i/r;if(n<s){const l=r*n;e.style.height="100%",e.style.width=`${l}px`,e.style.left=`${(i-l)/2}px`}else{const l=i/n;e.style.width="100%",e.style.height=`${l}px`,e.style.top=`${(r-l)/2}px`}e.style.overflow="hidden",e.style.visibility="visible",this.placeCanvasByScale(e,e.firstElementChild)}placeCanvasByScale(e,n){if(n.hasAttribute("data-imgsizebasedon")){const a=n.getAttribute("data-imgsizebasedon").split(",").map(parseFloat),i=[e.clientWidth,e.clientHeight];n.style.width=`${a[0]}px`,n.style.height=`${a[1]}px`,n.style.scale=`${i[0]/a[0]}`,n.style.top=`${(i[1]-a[1])/2}px`,n.style.left=`${(i[0]-a[0])/2}px`}}adjustAnimationWrapper(e){if(!e)return;if(!this.shouldAnimate(e)){this.removeAnimationWrappers(e);return}const n=this.getAnimationWrapper(e);n&&this.placeAnimationWrapper(n)}getAnimationWrapper(e){if(!e)return null;const n=Ma.getAnimationCanvas(e);if(!n||n.children.length!==1)return null;const a=n.firstElementChild;return a.classList.contains(Ma.wrapperClassName)?a:null}removeAnimationWrappers(e){e.firstElementChild&&e.firstElementChild.classList.contains("bloom-animationBackground")&&e.removeChild(e.firstElementChild)}shouldAnimate(e){return this.PlayAnimations&&e.getAttribute("class").indexOf("Landscape")>=0}};Ma.wrapperClassName="bloom-ui-animationWrapper";let Kl=Ma;class pC{constructor(e,n,a,i){this.duration=a*1e3,this.totalElapsedTime=0,this.lastFrameTime=Date.now(),this.paused=!0,this.canvasToAnimate=i;const r=e.split(" ").map(parseFloat),s=n.split(" ").map(parseFloat);r.length!=4||s.length!=4||Math.min(...s)<0||Math.min(...r)<0||r[0]+r[2]>1.01||r[1]+r[3]>1.01||s[0]+s[2]>1.01||s[1]+s[3]>1.01?(this.initialScale=1,this.finalScale=1,this.initialLeft=0,this.finalLeft=0,this.initialTop=0,this.finalTop=0):(r[0],s[0],r[1],s[1],this.initialScale=1/Math.min(r[2],r[3]),this.initialScale==1&&(this.initialScale=1.0001),this.finalScale=1/Math.min(s[2],s[3]),this.finalScale==1&&(this.finalScale=1.0001),this.initialLeft=this.initialScale*100*(.5-(.5*r[2]+r[0])),this.initialTop=this.initialScale*100*(.5-(.5*r[3]+r[1])),this.finalLeft=this.finalScale*100*(.5-(.5*s[2]+s[0])),this.finalTop=this.finalScale*100*(.5-(.5*s[3]+s[1])))}getScaleAndPosition(){let e=this.totalElapsedTime/this.duration;e=Math.min(1,Math.max(0,e));const n=this.easingFunction(e),a=this.initialScale+(this.finalScale-this.initialScale)*n,i=this.initialLeft+(this.finalLeft-this.initialLeft)*n,r=this.initialTop+(this.finalTop-this.initialTop)*n;return{scale:a,left:i,top:r}}easingFunction(e){return-1*(Math.cos(e*Math.PI)-1)/2}advanceAnimation(){if(this.paused)return;const e=Date.now();this.totalElapsedTime+=e-this.lastFrameTime,!(this.totalElapsedTime>=this.duration)&&(this.setCurrentAnimationFrame(),this.lastFrameTime=e,requestAnimationFrame(()=>this.advanceAnimation()))}setCurrentAnimationFrame(){const{scale:e,left:n,top:a}=this.getScaleAndPosition();this.canvasToAnimate.style.transform=`translate(${n}%, ${a}%) scale(${e})`}pause(){this.paused=!0}resume(){this.paused=!1,this.lastFrameTime=Date.now(),this.advanceAnimation()}startAnimation(){this.paused=!1,this.totalElapsedTime=0,this.lastFrameTime=Date.now(),this.advanceAnimation()}endAnimation(){this.totalElapsedTime=this.duration+1}}var Ge=(t=>(t[t.NewPage=0]="NewPage",t[t.NewPageMediaPaused=1]="NewPageMediaPaused",t[t.VideoPlaying=2]="VideoPlaying",t[t.VideoPaused=3]="VideoPaused",t[t.AudioPlaying=4]="AudioPlaying",t[t.AudioPaused=5]="AudioPaused",t[t.MediaFinished=6]="MediaFinished",t))(Ge||{});let mn=0;function Tn(t){mn=t}let Qd;function gC(t){Qd=t}let xl;function mC(t){xl=t}let jy=()=>{};function vC(t){jy=t??(()=>{})}let tf="";function yC(t){tf=t}function bC(t){const e=t.lastIndexOf("/");return t.substring(0,e)}function Ch(){return tf||bC(window.location.href)}function wC(t){const e=t.map((n,a)=>({tabindex:kC(n),index:a,item:n}));return e.sort((n,a)=>!n.tabindex||!a.tabindex||n.tabindex===a.tabindex?n.index-a.index:parseInt(n.tabindex,10)-parseInt(a.tabindex,10)),e.map(n=>n.item)}function kC(t){let e=t;for(;e&&!e.classList.contains("bloom-translationGroup");)e=e.parentElement;return e&&e.getAttribute("tabindex")||"999"}const xC="bloom-highlightSegment",Ry="ui-enableHighlight",Th="ui-disableHighlight",Gc="ui-suppressHighlight";let $l=3;function SC(t){$l=t}const ql="audio-sentence",Oy="bloom-imageDescription";let Li=null,Oo=0;function Ky(t){t!==Li&&(Oo&&clearTimeout(Oo),Oo=setTimeout(()=>{Oo=0},3e3),Li=t)}function $y(){return Li}let Eh,Hl,Yo="",La=[],ki=[];const na=new ur,Qa=new ur,Ar=new ur,za=new ur;let hs=0,qy=!0;function CC(t){qy=t}let Fl=null;function Hy(t,e){if(!t&&!Li)return;const n=t??Li;Pu(Lh(n,e),n)}function Pu(t,e){Ky(e),Hl=t;const n=zi();n&&(t.length==0&&n.pause(),n.currentTime=0),++hs,TC(t),La=wC(t).reverse();const a=La.length;if(a===0){Qa&&(Qa==null||Qa.raise(e)),Tn(4),na&&(Eh=window.setTimeout(()=>{Tn(6),na==null||na.raise(e)},$l*1e3));return}const i=La[a-1];Xy(i,!0),Tn(4),Vy()}const Fy=/[ \u00a0\u200b]{3,}/,nl=new RegExp(Fy,"g");function TC(t){t.forEach(e=>{Nh("span[id]:not(.bloom-linebreak)",e,!0).forEach(a=>{Wy(a),!!a.innerText.match(Fy)&&_y(a,a)})})}function Wy(t){t.classList.remove(Th),t.classList.remove(Ry),Array.from(t.children).forEach(e=>{Wy(e)})}function _y(t,e){if(!(t.nodeType===Node.ELEMENT_NODE&&t.classList.contains(Th)))if(t.nodeType===Node.TEXT_NODE){EC(t,e);return}else Array.from(t.childNodes).forEach(a=>{_y(a,e)})}function EC(t,e){if(t.nodeType!==Node.TEXT_NODE)throw new Error("Invalid argument to fixMultiSpaceInTextNode: node must be a TextNode");if(!t.nodeValue)return;nl.lastIndex=0;const n=[];let a;for(;(a=nl.exec(t.nodeValue))!=null;)a.forEach(s=>{n.push({text:s,startIndex:nl.lastIndex-s.length,endIndex:nl.lastIndex})});const i=[];if(n.length===0)i.push(Uc(t.nodeValue));else{let s=0;for(let l=0;l<n.length;++l){const c=n[l],h=t.nodeValue.slice(s,c.startIndex);if(s=c.endIndex,h&&i.push(Uc(h)),i.push(document.createTextNode(c.text)),l===n.length-1){const m=t.nodeValue.slice(c.endIndex);m&&i.push(Uc(m))}}}const r=t;if(r.parentNode&&i&&i.length>0){for(let s=0;s<i.length;++s){const l=i[s];r.parentNode.insertBefore(l,r)}r.parentNode.removeChild(r),e.classList.add(Th)}}function Uc(t){const e=document.createElement("span");return e.classList.add(Ry),e.appendChild(document.createTextNode(t)),e}function Vy(){if(mn===4){const t=zi();if(t){const e=$y().querySelector(`#${Yo}`);if(!e||!KC()){Mu();return}ki=[];const n=e.getAttribute("data-audioRecordingEndTimes");if(n){const r=e.querySelectorAll(`span.${xC}`),s=n.split(" "),l=Math.min(s.length,r.length);for(let c=l-1;c>=0;--c){const h=Number(s[c]);isNaN(h)||ki.push([r.item(c),h])}}const a=e;a&&za&&(za==null||za.raise(Gy(a))),ef=!1;const i=t.play();++hs,Fl=new Date().getTime(),Ph(hs),Uy(i)}}}function Gy(t){return t.closest("."+Oy)!==null}function Uy(t,e){t&&t.catch&&t.catch(n=>{console.log("could not play sound: "+n+" "+"unknown"),n&&n.toString().includes("The play() request was interrupted by a call to pause().")&&console.log("See comment in narration.ts for possibly useful information regarding this error."),n.name==="NotAllowedError"&&Ar&&(Ar==null||Ar.raise())})}function Ph(t,e=0){const n=ki.length;if(n<=0)return;const a=ki[n-1],i=a[0],r=a[1];Zy({newElement:i,shouldScrollToElement:!0,disableHighlightIfNoAudio:!1});let l=document.getElementById("bloom-audio-player").currentTime;l<=0&&(l=e);const c=Math.max(r-l,.1);setTimeout(()=>{Yy(t)},c*1e3)}function Yy(t){if(t!==hs||mn===5)return;const e=ki.length;if(e<=0)return;const n=document.getElementById("bloom-audio-player");if(n.ended||n.error)return;const a=n.currentTime,r=ki[e-1][1];if(a&&a<r){const s=r-a;setTimeout(()=>{Yy(t)},s*1e3);return}ki.pop(),Ph(t,r)}function Mh(t=document.body){const e=Array.from(t.ownerDocument.getElementsByClassName("ui-audioCurrent"));for(let a=0;a<e.length;a++)e[a].classList.remove("ui-audioCurrent");const n=t.ownerDocument.getElementsByClassName("ui-audioCurrentImg")[0];n&&n.classList.remove("ui-audioCurrentImg")}function Xy(t,e,n){AC(t),Zy({newElement:t,shouldScrollToElement:!0,disableHighlightIfNoAudio:e,oldElement:n})}function Zy({newElement:t,shouldScrollToElement:e,disableHighlightIfNoAudio:n,oldElement:a}){if(e)try{PC(t)}catch(l){console.error(l)}if(a===t)return;Mh(a||t);const i=zi(),r=i.error!==null;!r&&n&&(i.currentTime>0||(t.classList.add(Gc),i.addEventListener("playing",()=>{t.classList.remove(Gc)}),i.addEventListener("error",()=>{t.classList.remove("ui-audioCurrent"),t.classList.remove(Gc)}))),r||t.classList.add("ui-audioCurrent");const s=t.closest(".bloom-translationGroup");if(s&&s.classList.contains(Oy)){const l=s.closest(".bloom-imageContainer, .bloom-canvas");l&&l.classList.add("ui-audioCurrentImg")}}function PC(t){var n,a;if(xl!=null&&xl()||Oo){const i=MC(t);i&&(i.scrollTop=0);return}let e=t;if(window.getComputedStyle(t.parentElement).position!=="static"){const i=t;e=document.createElement("div"),e.style.position="absolute",e.style.top=i.offsetTop+"px";const r=i.getBoundingClientRect(),s=i.parentElement,l=s==null?void 0:s.getBoundingClientRect(),c=l.width/s.offsetWidth,h=(r.left-l.left)/c;e.style.left=h+i.offsetWidth/2+"px",e.style.height=i.offsetHeight+"px",e.style.width="0",(n=t.parentElement)==null||n.insertBefore(e,t)}e.scrollIntoView({behavior:"smooth",block:"nearest"}),e!==t&&((a=e.parentElement)==null||a.removeChild(e))}function MC(t){return t.classList.contains("bloom-editable")?t:t.closest(".bloom-editable")}function AC(t){const e=NC(t),n=e?e.id:t.id;zC(n)}function NC(t){const e=LC(t);return!e||e.length===0?null:e[0]}function LC(t){const e=[];if(t)if(t.classList.contains(ql))e.push(t);else{const n=t.getElementsByClassName(ql);for(let a=0;a<n.length;++a){const i=n.item(a);i&&e.push(i)}}return e}function zC(t){(!Yo||Yo!==t)&&(Yo=t,BC())}function BC(){const t=zi();if(!t)return;t.currentTime>0&&!t.paused&&!t.ended&&Ah();const e=IC(Yo);jy(e),t.setAttribute("src",e+"?nocache="+new Date().getTime()+"&optional=true")}function IC(t){return Ch()+"/audio/"+t+".mp3"}function zi(){return OC("bloom-audio-player",e=>{e.addEventListener("ended",DC),e.addEventListener("error",$C)})}function DC(){Mu()}function jC(){mn===4&&Mu(!1)}function Mu(t=!0){if(za&&(za==null||za.raise(!1)),Ah(),La&&La.length>0){const e=La.pop(),n=La.length;if(n>0&&t){const a=La[n-1];Xy(a,!0),Vy()}else RC(),Mh(e),zi().pause()}}function RC(){La=[],ki=[],Mh(),na==null||na.raise(Li),Qa==null||Qa.raise()}function Ah(){if(!Fl||!Qd)return;const e=(new Date().getTime()-Fl)/1e3;Qd(e)}function OC(t,e){let n=document.querySelector("#"+t);return n&&!n.play&&(n.remove(),n=null),n||(n=document.createElement("audio"),n.setAttribute("id",t),document.body.appendChild(n),e(n)),n}function KC(t){return!0}let ef=!1;function $C(){if(ef){console.log("Already got error playing, not handling again");return}ef=!0,console.log("Error playing, handling"),setTimeout(()=>{Mu()},100)}function Nh(t,e,n=!1){const a=[].slice.call((e||document).querySelectorAll(t));return n&&e&&e.matches(t)&&a.push(e),qy?a:a.filter(i=>!Gy(i))}function qC(t,e){var n=Nh(".bloom-editable",t).filter(a=>window.getComputedStyle(a).display!=="none");return e&&(n=n.filter(a=>!e.contains(a))),n}function HC(t,e){return qC(t||Li,e)}function Lh(t,e){return[].concat.apply([],HC(t,e).map(n=>Nh(".audio-sentence",n,!0)))}function FC(t){return!!Lh(t).length}function WC(){if(mn!==4){if(Tn(4),Hl.length&&zi())if(La.length){Uy(zi().play()),Fl=new Date().getTime(),Ph(hs);return}else{Hy(null);return}na==null||na.raise(Li)}}function _C(){mn!==5&&(VC(),Tn(5))}function VC(){const t=zi();clearTimeout(Eh),Hl&&Hl.length&&t&&(t.currentTime>0&&!t.paused&&!t.ended&&Ah(),t.pause())}function am(t){let e=0;return Lh(t).forEach(n=>{const a=n.getAttribute("data-duration");a&&(e+=parseFloat(a))}),e<$l&&(e=$l),e}function GC(){clearTimeout(Eh),zh()}let Nr=0,Lr;function zh(){Nr++,Lr&&(Lr.pause(),Lr.currentTime=0,Lr=void 0)}function Jy(t,e=()=>!0){let n=!1;const a=()=>{if(n||!t.paused)return;const i=()=>{if(window.clearTimeout(r),!e())return;const l=()=>{e()&&t.pause()},c=t.requestVideoFrameCallback;c?c.call(t,()=>{l()}):setTimeout(()=>{l()},4)};t.addEventListener("playing",i,{once:!0});const r=window.setTimeout(()=>{t.removeEventListener("playing",i)},1e3),s=t.play();s&&s.catch&&s.catch(()=>{window.clearTimeout(r),t.removeEventListener("playing",i)})};if(t.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA)a();else{let i;const r=()=>{t.removeEventListener("play",i),a()};i=()=>{n=!0,t.removeEventListener("loadeddata",r),t.removeEventListener("play",i)},t.addEventListener("play",i,{once:!0}),t.addEventListener("loadeddata",r,{once:!0})}}function Qy(t,e){const n=++Nr;Sl(t,e,n)}function Sl(t,e,n){if(n!==Nr)return;if(t.length===0){Lr=void 0,e();return}const a=t[0];Lr=a,a.networkState===HTMLMediaElement.NETWORK_NO_SOURCE&&a.readyState===HTMLMediaElement.HAVE_NOTHING?(Wl(a),Sl(t.slice(1),e,n)):(tb(a),Tn(2),a.play().then(()=>{n===Nr&&a.addEventListener("ended",()=>{n===Nr&&Sl(t.slice(1),e,n)},{once:!0})}).catch(r=>{n===Nr&&(console.error("Video play failed",r),Wl(a),Sl(t.slice(1),e,n))}))}const UC="Sorry, this video cannot be played in this browser.";function Wl(t){const e=t.parentElement;if(e&&e.getElementsByClassName("video-error-message").length===0){const a=e.ownerDocument.createElement("div");a.className="video-error-message normal-style",a.textContent=UC,a.style.display="block",a.style.color="black",a.style.backgroundColor="rgba(255, 255, 255, 0.5)",a.style.position="absolute",a.style.left="10%",a.style.top="10%",a.style.width="80%",a.style.fontSize="x-large",e.appendChild(a)}}function tb(t){const e=t.parentElement;if(e){const n=e.getElementsByClassName("video-error-message");for(;n.length>0;)e.removeChild(n[0])}}const YC=t=>{const e=document.createElement("div");return e.innerHTML=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
19
19
|
<path d="M8 5v14l11-7z" fill="${t}"/>
|
|
20
20
|
</svg>`,e.firstChild},XC=t=>{const e=document.createElement("div");return e.innerHTML=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
21
21
|
<path d="M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z" fill="${t}"/>
|
|
@@ -8044,7 +8044,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
8044
8044
|
display:none !important;
|
|
8045
8045
|
}
|
|
8046
8046
|
`.replace(`
|
|
8047
|
-
`,"").replace("\r","")}const uc=[];function OB(){return uc.length>0}function KB(t){const e=uc.pop();if(e)return{bookUrl:t===e.bookId?void 0:hh(e.bookId),pageId:e.pageId}}function $B(t,e,n){const a=t.target.closest("[href], [data-href]");if(!a)return;t.preventDefault(),t.stopPropagation();const i=(a.getAttribute("href")||a.getAttribute("data-href"))??void 0;if(!i)return;if(i.startsWith("http://")||i.startsWith("https://")){window.open(i,"_blank","noreferrer");return}let r,s;if(i==="back"){const c=uc.pop();return c?{bookUrl:e===c.bookId?void 0:hh(c.bookId),pageId:c.pageId}:void 0}else if(i.startsWith("/book/")){const c=qB(i);r=c.bookId,s=c.pageId,c.bookId===e&&(r=void 0)}else i.startsWith("#")&&(s=i.substring(1));const l=n();if(r)return fy(e,l),{bookUrl:hh(r),pageId:s};if(s)return fy(e,l),{pageId:s}}function fy(t,e,n){uc.push({bookId:t,pageId:e})}function hh(t){return`/book/${t}/index.htm`}function qB(t){try{const e=new URL(t,window.location.origin);if(!e.pathname.startsWith("/book/"))throw new Error("Invalid book URL format");const n=e.pathname.replace("/book/",""),a=e.hash.replace("#","");return{bookId:n,pageId:a}}catch(e){return console.error("Error parsing book URL:",e),{bookId:void 0,pageId:void 0}}}const HB="bloom-player",FB="A library for displaying Bloom books in iframes or WebViews",WB="SIL Global",_B="MIT",VB="2.19.6",GB=!1,UB={type:"git",url:"git+https://github.com/BloomBooks/bloom-player.git"},YB="module",XB="lib/shared.es.js",ZB="lib/index.d.ts",JB={".":{types:"./lib/index.d.ts",import:"./lib/shared.es.js",default:"./lib/shared.es.js"}},QB={"// COMMENTS: make the action a space rather than empty string so `yarn run` can list the scripts":" ","//":" ","// 'yarn dev' will build, watch, start a server, and open the player in a brower":" ","// You can edit index-for-developing.html to point to different books":" ","// Or just use 'yarn storybook' and skip this dev approach entirely":" ",dev:"vite","build:standalone":"vite build","build:sharedlib":"vite build --mode lib",test:"vitest","// blame.ignoreRevsFile - This allows blame to see through commits that are only there to format code.":" ",prepare:"husky install && git config blame.ignoreRevsFile .git-blame-ignore-revs",storybook:"storybook dev -p 6006","// run this when working with stories that use an iframe and bloomplayer.htm instead of the raw react components":" ",watchForStorybook:"yarn vite build --watch --mode development","strings:download":"crowdin download --config src/l10n/crowdin.yml && yarn strings:compile","strings:upload":"crowdin upload --config src/l10n/crowdin.yml","strings:compile":"yarn tsx ./src/l10n/compileL10Strings.ts","strings:sync":"yarn strings:upload && yarn strings:download"},tI={"@material-ui/core":"^4.12.3","@material-ui/icons":"^4.11.2",axios:"^0.18.0","compare-versions":"^6.1.1","dynamic-import-polyfill":"^0.1.1","jquery.nicescroll":"^3.7.6",react:"^17.0.2","react-dom":"^17.0.2","react-id-swiper":"2.3.2","style-scoped":"^0.2.1",swiper:"^4.5.0"},eI={"@crowdin/cli":"^4.13.0","@storybook/addon-essentials":"8.4.6","@storybook/addon-interactions":"^8.4.6","@storybook/addon-links":"8.4.6","@storybook/blocks":"8.4.6","@storybook/react":"8.4.6","@storybook/react-vite":"8.4.6","@storybook/test":"8.4.6","@types/jquery":"^3.5.5","@types/jquery.nicescroll":"^3.7.1","@types/node":"^22.7.6","@types/react":"^17.0.2","@types/react-dom":"^17.0.2",editorconfig:"^2.0.0",eslint:"^9.12.0","eslint-plugin-storybook":"^0.11.1",glob:"^10",husky:"8.0.3",jsdom:"^25.0.1",less:"^4.2.0",prettier:"^3.3.3",storybook:"8.4.6",tsx:"^4.19.1",typescript:"*",vite:"^5.4.9","vite-plugin-dts":"^4.5.3","vite-plugin-html":"^3.2.2","vite-plugin-static-copy":"^2.0.0",vitest:"^2.1.3"},nI=["dist/*.js","dist/bloomplayer.htm","dist/*.mp3","lib/*.js","lib/*.d.ts","lib/*.js.map","src/shared/event.ts","src/shared/narration.ts","src/shared/dragActivityRuntime.ts","src/shared/scrolling.ts","src/shared/index.ts","dist/*.css","dist/*.tsv"],aI={node:"24.13.0",yarn:"1.22.19"},iI={name:HB,description:FB,author:WB,license:_B,version:VB,private:!1,"// sideeffects might need to be ['*.css'] to avoid 'shaking' our CSS, if we ever get tree shaking working":"",sideEffects:GB,repository:UB,type:YB,module:XB,types:ZB,exports:JB,scripts:QB,dependencies:tI,devDependencies:eI,"// The four src/ files are directly exported so BloomDesktop can consume them as shared code.":"",files:nI,volta:aI},vi="#d65649",rI="#2e2e2e",oI="#febf00",e0=vs({palette:{primary:{main:rI,contrastText:vi},secondary:{main:vi}}});function n0(){var t=iI.version;return t}const sI=({getBookInstanceId:t})=>{const[e,n]=B.useState(!1),a=n0(),i=new Date("2026-04-20T16:11:48.798Z").toLocaleDateString();if(B.useEffect(()=>{const s=c=>{c.key==="Control"&&n(!0)},l=c=>{c.key==="Control"&&n(!1)};return window.addEventListener("keydown",s),window.addEventListener("keyup",l),()=>{window.removeEventListener("keydown",s),window.removeEventListener("keyup",l)}},[]),!e)return null;const r=t==null?void 0:t();return wt.createElement("div",{className:"diagnostic-info-control",style:{color:vi,fontFamily:"sans-serif",padding:"5px",zIndex:1e3,lineHeight:"1.5"}},wt.createElement("div",null,"Bloom Player v",a," (built ",i,")"),wt.createElement("div",null,"Book ID: ",r??""))},lI=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,hy=t=>{if(typeof t!="string")throw new TypeError("Invalid argument expected string");const e=t.match(lI);if(!e)throw new Error(`Invalid argument not valid semver ('${t}' received)`);return e.shift(),e},py=t=>t==="*"||t==="x"||t==="X",gy=t=>{const e=parseInt(t,10);return isNaN(e)?t:e},uI=(t,e)=>typeof t!=typeof e?[String(t),String(e)]:[t,e],cI=(t,e)=>{if(py(t)||py(e))return 0;const[n,a]=uI(gy(t),gy(e));return n>a?1:n<a?-1:0},my=(t,e)=>{for(let n=0;n<Math.max(t.length,e.length);n++){const a=cI(t[n]||"0",e[n]||"0");if(a!==0)return a}return 0},vy=(t,e)=>{const n=hy(t),a=hy(e),i=n.pop(),r=a.pop(),s=my(n,a);return s!==0?s:i&&r?my(i.split("."),r.split(".")):i||r?i?-1:1:0},ph=new ur;class Te extends B.Component{constructor(e,n){super(e,n),this.activityManager=new oz,this.initialPages=["loading..."],this.initialStyleRules="",this.originalPageClass="Device16x9Portrait",this.bookInfo=new fh,this.bookInteraction=new IB,this.mustUseOriginalPageSize=!1,this.indicesOfPagesWhereWeShouldPreserveDOMState={},this.startingUpSwiper=!0,this.state={pages:this.initialPages,pageIdToIndexMap:{},styleRules:this.initialStyleRules,importedBodyAttributes:{},currentSwiperIndex:0,isLoading:!0,loadFailed:!1,loadErrorHtml:"",ignorePhonyClick:!1,isFinishUpForNewBookComplete:!1,inPauseForced:!1,bookUrl:""},this.isPagesLocalized=!1,this.currentPageHidesNavigationButtons=!1,this.handleDocumentLevelKeyDown=i=>{i.key==="Home"&&(this.goToFirstPage(),i.preventDefault()),i.key==="End"&&(this.goToLastPage(),i.preventDefault())},this.distributionSource="",this.finishUpCalled=!1,this.hasImageDescriptions=!1,this.handlePageVideoComplete=i=>{i.page===Te.currentPage&&this.playAudioAndAnimation(i.page)},this.handlePlayFailed=()=>{this.setState({inPauseForced:!0}),this.props.setForcedPausedCallback&&this.props.setForcedPausedCallback(!0)},this.handlePlayCompleted=()=>{Tn(Ge.MediaFinished),this.props.imageDescriptionCallback(!1)},this.handleToggleImageDescription=i=>{this.props.imageDescriptionCallback(i)},this.handlePageNarrationComplete=i=>{if(i&&(Tn(Ge.MediaFinished),this.shouldAutoPlay())){const r=this.props.autoplayCount??0,s=this.state.startPageIndex??0,l=this.swiperInstance.slides.length-1;let c=this.props.autoplayCount?Math.min(s+r-1,l):l;this.swiperInstance.activeIndex>=c?(this.music.pause(),this.props.shouldReportSoundLog&&QC(),ZC(),KT({})):this.swiperInstance.slideNext()}},this.skipAutoPlay=!1,this.sentBloomNotification=!1;const a=e.url.startsWith("http")?new URL(e.url):new URL(e.url,window.location.origin);a.hash?(this.state.startPageId=a.hash.substring(1),a.hash=""):this.state.startPageIndex=e.startPageIndex,this.state.bookUrl=a.href,Te.currentPagePlayer=this,this.legacyQuestionHandler=new lz(e.locationOfDistFolder)}componentDidMount(){He.setUp(),window.addEventListener("focus",()=>this.handleWindowFocus()),window.addEventListener("blur",()=>this.handleWindowBlur()),document.addEventListener("keydown",e=>this.handleDocumentLevelKeyDown(e)),document.addEventListener("pointerdown",e=>{(e.target.closest("[href], [data-href]")||e.target.closest(".bloom-videoContainer")&&!e.target.closest("[data-draggable-id]"))&&(e.stopPropagation(),e.preventDefault())},{capture:!0}),document.addEventListener("dragstart",e=>{this.activityManager.getActivityAbsorbsDragging()||e.preventDefault()},{capture:!0}),this.componentDidUpdate(this.props,this.state)}CanGoBack(){return OB()}HandleBackButtonClickedIfHavePlayerHistory(){const e=this.getBookIdFromBookUrlForHistory(this.state.bookUrl)||this.bookInfo.bookInstanceId,n=KB(e);return n?(this.navigate(n.bookUrl,n.pageId),!0):!1}navigate(e,n){if(e){const a=new URL(e,this.state.bookUrl);this.setState({bookUrl:a.href,startPageId:n,startPageIndex:void 0})}else if(n!==void 0){const a=this.state.pageIdToIndexMap[n];this.swiperInstance.slideTo(a)}}getBookIdFromBookUrlForHistory(e){if(e)try{const a=new URL(e,window.location.href).pathname.match(/^\/book\/([^/]+)\/index\.htm$/i);return a?a[1]:void 0}catch{return}}handleWindowFocus(){const e=localStorage.getItem(_l),n=localStorage.getItem(om);e&&n==this.sourceUrl&&(this.bookInteraction.beginReadTime=Date.now()-parseInt(e,10))}handleWindowBlur(){const e=Date.now()-this.bookInteraction.beginReadTime;localStorage.setItem(_l,e.toString()),localStorage.setItem(om,this.sourceUrl)}getRequiredVersionMessage(e){var c;const n=(c=e.querySelector('meta[name="FeatureRequirement"]'))==null?void 0:c.getAttribute("content");if(!n)return"";const a=/BloomPlayerMinVersion":"(.*?)".*?"FeatureId":"(.*?)"/g;let i,r=null,s=null;for(;(i=a.exec(n))!==null;){const h=i[1];(!r||vy(h,r)>0)&&(r=h,s=i[2])}if(!r||!s)return"";const l=n0();if(vy(l,r)>=0)return"";if(window.location.hostname.toLowerCase().indexOf("bloomlibrary.org")>=0)return He.getTranslation("Version.Problem.Web",this.props.preferredUiLanguages,"This book uses the feature {feature}. Unfortunately, {hostname} is not ready to display this book yet. Please check back again later or write to issues@bloomlibrary.org if you think this is unexpected.").replace("{feature}",s).replace("{hostname}",window.location.hostname);{let h=ma("host","");switch(h){case"bloomreader":h="Bloom Reader";break;case"bloompubviewer":h="BloomPUB Viewer";break;case"readerapp":h="";break}return h?He.getTranslation("Version.Problem.Host",this.props.preferredUiLanguages,"This book uses the feature {feature} and requires a newer version of {host} to read it. Please upgrade to the latest version.").replace("{feature}",s).replace("{host}",h):He.getTranslation("Version.Problem.NoHost",this.props.preferredUiLanguages,"This book uses the feature {feature} and requires a newer version of the program you are using to read it. Please upgrade to the latest version.").replace("{feature}",s)}}componentDidUpdate(e,n){var a;try{if(!this.props.url||this.state.loadFailed&&n.bookUrl===this.state.bookUrl)return;this.initializeMedia();const i=this.preprocessUrl();if(i&&i!=="/working"&&i!==this.sourceUrl){this.finishUpCalled=!1,this.setState({isLoading:!0,loadFailed:!1}),this.metaDataObject=void 0,this.htmlElement=void 0,this.sourceUrl=i;const r=this.sourceUrl.lastIndexOf("/"),s=this.sourceUrl.lastIndexOf("%2f");let l;r>s?l=this.sourceUrl.substring(r+1,this.sourceUrl.length):l=this.sourceUrl.substring(s+3,this.sourceUrl.length);const c=l.endsWith(".htm"),h=c?this.sourceUrl:this.sourceUrl+"/"+l+".htm";this.urlPrefix=c?this.sourceUrl.substring(0,Math.max(r,s)):this.sourceUrl,this.music.urlPrefix=this.urlPrefix,yC(this.music.urlPrefix);const m=ni.get(this.fullUrl(".distribution")).then(P=>P,P=>({data:""})),k=ni.get(h),w=ni.get(this.fullUrl("meta.json"));Promise.all([k,w,m]).then(P=>{const[E,z,A]=P;this.metaDataObject=z==null?void 0:z.data,this.distributionSource=A.data;const S=new DOMParser().parseFromString(E==null?void 0:E.data,"text/html"),N=S.documentElement,L=this.getRequiredVersionMessage(S);this.setState({requiredVersion:L});const j=N.getElementsByTagName("body")[0];this.mustUseOriginalPageSize=this.computeMustUseOriginalPageSize(j),this.bookInfo.setSomeBookInfoFromBody(j),this.localizeOnce(),this.props.shouldReportSoundLog&&(this.videoList=this.getVideoList(S)),this.animation.PlayAnimations=this.bookInfo.playAnimations,this.collectBodyAttributes(j),this.makeNonEditable(j),this.htmlElement=N;const f=N.getElementsByClassName("bloom-page")[0];this.originalPageClass="Device16x9Portrait",f&&(this.originalPageClass=Te.getPageSizeClass(f)),this.legacyQuestionHandler.generateQuizPagesFromLegacyJSON(this.urlPrefix,j,this.originalPageClass,()=>{this.finishUp()})}).catch(P=>this.HandleLoadingError(P))}else if(e.landscape!==this.props.landscape||e.useOriginalPageSize!==this.props.useOriginalPageSize||e.autoplay!==this.props.autoplay){const r=document.getElementsByClassName("bloom-page");for(let s=0;s<r.length;s++){const l=r[s];this.setPageSizeClass(l)}}!this.state.isLoading&&(n.isLoading||e.activeLanguageCode!==this.props.activeLanguageCode)&&(this.updateDivVisibilityByLangCode(n.isLoading),this.updateOverlayPositionsByLangCode(),this.finishUpCalled&&this.finishUp(!1)),this.state.currentSwiperIndex!=n.currentSwiperIndex&&((a=this.rootDiv)==null||a.querySelectorAll(Xp).forEach(r=>{const s=Is(r).getNiceScroll();s&&s.length>0&&s.remove()})),!this.state.isLoading&&(n.isLoading||e.shouldReadImageDescriptions!==this.props.shouldReadImageDescriptions)&&this.finishUpCalled&&(this.setIndex(this.state.currentSwiperIndex),this.showingPage(this.state.currentSwiperIndex)),this.state.isFinishUpForNewBookComplete&&e.landscape!==this.props.landscape&&(this.setIndex(this.state.currentSwiperIndex),this.showingPage(this.state.currentSwiperIndex)),e.paused!==this.props.paused&&this.handlePausePlay(),this.swiperInstance&&this.swiperInstance.lazy.load()}catch(i){this.setState({isLoading:!1,loadFailed:!0,loadErrorHtml:i.message})}}collectBodyAttributes(e){for(var n={},a=0;a<e.attributes.length;a++)n[e.attributes.item(a).nodeName]=e.attributes.item(a).nodeValue;this.setState({importedBodyAttributes:n})}HandleLoadingError(e){var r;let a=`<p>There was a problem displaying this book: ${e.message}<p>`;const i=!!((r=e.config)!=null&&r.url)&&new URL(e.config.url,window.location.href).pathname.startsWith("/book/");i?a="<p>We could not find that book.</p>":(e.config&&e.config.url&&e.config.url.startsWith("file://")||e.message.indexOf("404")>=0)&&(a="<p>This book (or some part of it) was not found.<p>",e.config&&e.config.url&&(a+=`<p class='errorDetails'>${dI(e.config.url)}</p>`)),this.setState({isLoading:!1,loadFailed:!0,loadErrorHtml:a}),i&&ph.raise()}async finishUp(e=!0){if(this.finishUpCalled=!0,!this.htmlElement)return;Xo.setAllVideoPostersTo1x1TransparentPNG(this.htmlElement);const n=this.htmlElement.getElementsByClassName("bloom-page"),a=[];e&&(this.bookInfo.totalNumberedPages=0,this.bookInfo.questionCount=0,this.activityManager.collectActivityContextForBook(n),this.bookInteraction.clearPagesShown(),this.music.processAllMusicForBook(n));const i=this.bookInfo.getPreferredTranslationLanguages(),r=i[0]===this.props.activeLanguageCode||!this.props.activeLanguageCode,s={},l=h=>h.classList.contains("bloom-interactive-page")||h.classList.contains("simple-comprehension-quiz")||h.getAttribute("data-activity")=="iframe"||h.getElementsByClassName("questions").length>0;s.length=0,s.cover=0;for(let h=0;h<n.length;h++){const m=n[h],k=m.getAttribute("id");k&&(s[k]=h);const w=this.setPageSizeClass(m);m.setAttribute("data-index",h.toString(10)),h===0&&this.props.reportBookProperties&&this.props.reportBookProperties({landscape:w,canRotate:this.bookInfo.canRotate,preferredLanguages:i,pageNumbers:Array.from(n).map(E=>E.getAttribute("data-page-number")??""),isRtl:this.metaDataObject.isRtl,internalUrl:this.state.bookUrl}),e&&(this.fixRelativeUrls(m),m.classList.contains("numberedPage")&&(this.indexOflastNumberedPage=h,this.bookInfo.totalNumberedPages++),(m.getAttribute("data-analyticscategories")||m.getAttribute("data-analyticsCategories"))==="comprehension"&&this.bookInfo.questionCount++),this.showOrHideL1OnlyText(m,r);const P=l(m);P&&this.activityManager.initializePageHtml(this.urlPrefix,m,a.length),(!this.props.skipActivities||!P)&&a.push(m.outerHTML)}if(e){const h=this.htmlElement.getElementsByTagName("head")[0];this.bookInfo.setSomeBookInfoFromHead(h);const m=this.htmlElement.getElementsByTagName("body")[0];if(this.metaDataObject&&(this.bookInfo.setSomeBookInfoFromMetadata(this.metaDataObject,m),this.reportBookOpened(m)),this.props.controlsCallback){const k=gs.createLangDataArrayFromDomAndMetadata(m,this.metaDataObject);this.hasImageDescriptions=fI(m),this.props.controlsCallback(k,this.hasImageDescriptions,w=>{var P;(P=this.swiperInstance)==null||P.slideTo(w)})}}if(e){var c;try{c=await DB(this.htmlElement,this.urlPrefix,this.bookInfo,()=>this.legacyQuestionHandler.getPromiseForAnyQuizCss())}catch(h){this.HandleLoadingError(h),c=""}if(this.startingUpSwiper=!0,this.state.startPageId){if(s[this.state.startPageId]===void 0)throw new Error(`Page ID ${this.state.startPageId} not found in the current pageIdToIndexMap`);this.setState({startPageIndex:s[this.state.startPageId]})}this.setState({pages:a,pageIdToIndexMap:s,styleRules:c,isLoading:!1,currentSwiperIndex:this.state.startPageIndex??0})}else this.setState({pages:a,isLoading:!1});this.props.pageStylesAreNowInstalled(),e?window.setTimeout(()=>{this.setState({isFinishUpForNewBookComplete:!0});const h=this.startingUpSwiper;this.startingUpSwiper=!1;var m=this.state.startPageIndex??0;this.setIndex(m),this.showingPage(m),h&&this.addScrollbarsToPageWhenReady(this.swiperInstance.activeIndex);const k=document.getElementsByClassName("swiper-button-next")[0],w=document.getElementsByClassName("swiper-button-prev")[0];w==null||w.setAttribute("tabindex","4"),k==null||k.setAttribute("tabindex","5"),this.shouldFocusNextButtonForNewBook()&&(k==null||k.focus())},500):Te.currentPage&&window.setTimeout(()=>{this.setIndex(Te.currentPageIndex),this.showingPage(Te.currentPageIndex)},200)}shouldFocusNextButtonForNewBook(){return window.self===window.top||document.referrer.startsWith("http://localhost:")?!0:document.referrer.includes("bloomlibrary.org/player/")}showOrHideL1OnlyText(e,n){e.querySelectorAll(".coverBottomBookTopic, .coverBottomLangName").forEach(a=>{n||a.classList.contains("bloom-content1")?a.classList.remove("do-not-display"):a.classList.add("do-not-display")})}localizeOnce(){!this.isPagesLocalized&&this.state.pages!==this.initialPages&&this.state.styleRules!==this.initialStyleRules&&(He.localizePages(document.body,this.bookInfo.getPreferredTranslationLanguages()),this.isPagesLocalized=!0)}initializeMedia(){this.video||(this.video=new Xo,this.video.PageVideoComplete=new ur,this.video.PageVideoComplete.subscribe(this.handlePageVideoComplete)),this.animation||(this.animation=new Kl),na.subscribe(this.handlePageNarrationComplete),Ar.subscribe(this.handlePlayFailed),Qa.subscribe(this.handlePlayCompleted),gC(this.storeAudioAnalytics.bind(this)),za.subscribe(this.handleToggleImageDescription.bind(this)),mC(()=>{var e;return(e=this.swiperInstance)==null?void 0:e.animating}),vC(e=>eb(e,1)),this.music||(this.music=new tT,this.music.PlayFailed=new ur,this.music.PlayFailed.subscribe(()=>{this.setState({inPauseForced:!0}),this.props.setForcedPausedCallback&&this.props.setForcedPausedCallback(!0)}))}preprocessUrl(){let e=this.state.bookUrl;if(e===void 0||e.trim()==="")throw new Error("The url parameter was empty. It should point to the url of a book.");return e.endsWith("/")&&(e=e.substring(0,e.length-1)),e.endsWith("%2f")&&(e=e.substring(0,e.length-3)),e}handlePausePlay(){this.props.paused?this.pauseAllMultimedia():Te.currentPage!==$y()||mn===Ge.MediaFinished?this.resetForNewPageAndPlay(Te.currentPage):mn===Ge.VideoPaused?this.video.play():(WC(),this.animation.resumeAnimation(),this.music.play())}getAllBloomCanvasElementsOnPage(){var a,i;const e=(a=this.htmlElement)==null?void 0:a.ownerDocument.getElementsByClassName("bloom-canvas");if(e&&e.length>0)return Array.from(e);const n=(i=this.htmlElement)==null?void 0:i.ownerDocument.getElementsByClassName("bloom-imageContainer");return n?Array.from(n).filter(r=>r.parentElement.closest(".bloom-imageContainer")===null):[]}computeMustUseOriginalPageSize(e){return this.props.useOriginalPageSize||e.querySelector(".bloom-canvas-element")?!0:!!e.querySelector(".bloom-textOverPicture")}updateOverlayPositionsByLangCode(){if(!(!this.props.activeLanguageCode||!this.htmlElement))try{const e=this.props.activeLanguageCode;this.getAllBloomCanvasElementsOnPage().forEach(n=>{Array.from(n.querySelectorAll(Bs)).forEach(i=>{const r=Array.from(i.getElementsByClassName("bloom-editable")).find(s=>s.getAttribute("lang")===e);if(r){const s=r.getAttribute("data-bubble-alternate");if(s){const l=JSON.parse(s.replace(/`/g,'"'));i.setAttribute("style",l.style)}}});const a=Array.from(n.getElementsByClassName("comical-alternate")).find(i=>i.getAttribute("data-lang")===e);if(a){const i=n.getElementsByClassName("comical-generated")[0];i&&(i.classList.remove("comical-generated"),i.classList.add("comical-alternate"),i.style.display="none"),a.classList.remove("comical-alternate"),a.classList.add("comical-generated"),a.style.removeProperty("display")}})}catch(e){console.error(e)}}updateDivVisibilityByLangCode(e){if(!this.props.activeLanguageCode||!this.htmlElement)return;const a=this.bookInfo.getPreferredTranslationLanguages()[0]===this.props.activeLanguageCode||!this.props.activeLanguageCode,i=this.props.activeLanguageCode,r=this.htmlElement.ownerDocument.evaluate(".//div[contains(@class, 'bloom-translationGroup')]",this.htmlElement,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null),s="bloom-visibility-code-on";for(let l=0;l<r.snapshotLength;l++){const c=r.snapshotItem(l),h=c.getAttribute("data-default-languages"),m=h?h.split(/,| /):[],k=m==null||m.length===0||!m[0]||m.includes("V")||m.includes("L1")||Te.areStringsEqualInvariantCultureIgnoreCase(m[0],"auto"),w=c.childNodes;for(let P=0;P<w.length;P++){const E=w.item(P);!E||!E.classList||!E.classList.contains("bloom-editable")||(e&&E.setAttribute("data-original-class",E.getAttribute("class")||""),a?E.setAttribute("class",E.getAttribute("data-original-class")||""):k&&(E.getAttribute("lang")===i?(E.classList.add(s),Array.from(E.classList).forEach(A=>{A.startsWith("bloom-content")&&E.classList.remove(A)}),E.classList.add("bloom-content1"),E.classList.add("bloom-contentFirst")):E.classList.remove(s)))}}}static areStringsEqualInvariantCultureIgnoreCase(e,n){return e.localeCompare(n,"en-US",{sensitivity:"accent"})===0}static isDivInL2(e){return e.classList.contains("bloom-contentNational1")}static isDivInL3(e){return e.classList.contains("bloom-contentNational2")}componentWillUnmount(){this.pauseAllMultimedia(),document.removeEventListener("keydown",e=>this.handleDocumentLevelKeyDown(e)),this.unsubscribeAllEvents()}unsubscribeAllEvents(){this.video.PageVideoComplete.unsubscribe(this.handlePageVideoComplete),na.unsubscribe(this.handlePageNarrationComplete),Ar.unsubscribe(this.handlePlayFailed),Qa.unsubscribe(this.handlePlayCompleted),za.unsubscribe(this.handleToggleImageDescription)}pauseAllMultimedia(){mn===Ge.VideoPlaying?this.video.pause():mn===Ge.AudioPlaying&&(_C(),this.animation.PauseAnimation()),this.music.pause()}reportBookOpened(e){const n=this.bookInfo.getAmbientAnalyticsProps();this.distributionSource&&(n.distributionSource=this.distributionSource),RT(n),ab("BookOrShelf opened",{})}sendUpdateOfBookProgressReportToExternalContext(){const e=this.bookInteraction.getProgressReportPropertiesForAnalytics();$T("Pages Read",e)}makeNonEditable(e){const n=e.ownerDocument.evaluate(".//*[@contenteditable]",e,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);for(let a=0;a<n.snapshotLength;a++)n.snapshotItem(a).removeAttribute("contenteditable")}setPageSizeClass(e){return Te.setPageSizeClass(e,this.bookInfo.canRotate,this.props.landscape,this.mustUseOriginalPageSize,this.originalPageClass)}static getPageSizeClass(e){const a=(e.getAttribute("class")||"").match(/\b\S*?(Portrait|Landscape)\b/);return a&&a.length?a[0]:""}static setPageSizeClass(e,n,a,i,r){let s=!1;const l=this.getPageSizeClass(e);if(l){s=n?a:l.endsWith("Landscape");let c="";i?c=s?r.replace("Portrait","Landscape"):r.replace("Landscape","Portrait"):c=s?"Device16x9Landscape":"Device16x9Portrait",l!==c&&(e.classList.remove(l),e.classList.add(c))}return s}goToFirstPage(){this.swiperInstance.slideTo(0)}goToLastPage(){this.swiperInstance.slideTo(99999)}fixRelativeUrls(e){const n=e.ownerDocument.evaluate(".//*[@src]",e,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);for(let r=0;r<n.snapshotLength;r++){const s=n.snapshotItem(r);if(!s)continue;const l=s.getAttribute("src"),c=this.fullUrl(l);s.setAttribute("src",c)}const a=e.ownerDocument.evaluate(".//*[@style]",e,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null),i=new RegExp(/background-image:url\(['"](.*)['"]\)/);for(let r=0;r<a.snapshotLength;r++){const s=a.snapshotItem(r);if(!s)continue;const l=s.getAttribute("style")||"",c=i.exec(l);if(!c)continue;const h=this.fullUrl(c[1]),m=l.replace(i,"");s.setAttribute("style",m),s.setAttribute("data-background",h),s.classList.add("swiper-lazy")}}fullUrl(e){return this.urlPrefix+"/"+e}getRootDiv(){return this.rootDiv}slideNext(){this.swiperInstance&&this.swiperInstance.slideNext()}slidePrevious(){this.swiperInstance&&this.swiperInstance.slidePrev()}getBookInstanceId(){return this.bookInfo.bookInstanceId}getPlayerOptionsForPage(e){if(!e)return;let n=e.getAttribute("data-player-options");if(n)try{return n=n.replace(/'/g,'"'),JSON.parse(n)}catch(a){console.log("getPlayerOptionsForPage failed to parse json: "+n+" with error "+a.message);return}}render(){var i;const e=this.activityManager.getActivityAbsorbsDragging();if(this.state.isLoading)return B.createElement(Nz,{className:"loadingSpinner",color:"secondary"});if(this.state.loadFailed)return B.createElement(B.Fragment,null,B.createElement(bk,{className:"loadFailedIcon",color:"secondary"}),B.createElement("div",{className:"loadErrorMessage",dangerouslySetInnerHTML:{__html:this.state.loadErrorHtml}}));if(this.state.requiredVersion)return B.createElement("div",{className:"requiredVersionMessage"},this.state.requiredVersion);CC(this.props.shouldReadImageDescriptions&&this.hasImageDescriptions);const n={getSwiper:r=>{var s,l;this.swiperInstance=r,(s=this.metaDataObject)!=null&&s.isRtl&&this.swiperInstance&&((l=this.swiperInstance.el)==null||l.setAttribute("dir","rtl"),this.swiperInstance.rtl=!0,this.swiperInstance.rtlTranslate=!0)},simulateTouch:!0,touchStartPreventDefault:!1,on:{slideChange:()=>{this.state.inPauseForced&&this.props.setForcedPausedCallback&&this.props.setForcedPausedCallback(!1),this.setState({inPauseForced:!1}),this.startingUpSwiper||this.showingPage(this.swiperInstance.activeIndex)},slideChangeTransitionStart:()=>{this.startingUpSwiper||this.setIndex(this.swiperInstance.activeIndex)},slideChangeTransitionEnd:()=>{this.addScrollbarsToPageWhenReady(this.swiperInstance.activeIndex)}},keyboard:{enabled:!0,onlyInViewport:!1},preloadImages:!1,lazy:{loadPrevNext:!0,loadOnTransitionStart:!0,loadPrevNextAmount:2},shouldSwiperUpdate:!0};this.startingUpSwiper&&(n.activeSlideKey=(i=this.state.startPageIndex)==null?void 0:i.toString());let a="bloomPlayer";return this.currentPageHidesNavigationButtons?a+=" hideNextPrevButtons extraScalingForChrome85Bug":(this.props.outsideButtonPageClass&&(a+=" "+this.props.outsideButtonPageClass),e&&(a+=" showNavigationButtonsEvenOnTouchDevices")),B.createElement("div",{"aria-label":"Player Content",className:a+(this.props.extraClassNames?" "+this.props.extraClassNames:""),ref:r=>this.rootDiv=r},B.createElement(fC,{key:this.shouldAutoPlay()?"fade":"slide",...n,effect:this.shouldAutoPlay()?"fade":"slide"},this.state.pages.map((r,s)=>{const c=Math.abs(s-this.state.currentSwiperIndex)<2||this.indicesOfPagesWhereWeShouldPreserveDOMState[s];return B.createElement("div",{key:s,className:"page-preview-slide",onClick:h=>this.handlePageClick(h)},c?B.createElement(B.Fragment,null,B.createElement("style",{scoped:!0},this.state.styleRules),B.createElement("div",{...this.state.importedBodyAttributes,className:`bloomPlayer-page ${this.bookInfo.hasAppearanceSystem?"appearance-system":""} ${this.state.importedBodyAttributes.class??""}`,dangerouslySetInnerHTML:{__html:r}})):"")})),B.createElement("div",{className:"swiper-button-prev "+(this.metaDataObject.isRtl?"swiper-button-right":"swiper-button-left")+(this.props.hideSwiperButtons||this.state.currentSwiperIndex===0?" swiper-button-disabled":""),onClick:()=>this.slidePrevious(),onTouchStart:r=>{this.setState({ignorePhonyClick:!0})}},B.createElement(Aa,{className:"nav-button",disableRipple:!0},this.metaDataObject.isRtl?B.createElement(sh,{titleAccess:He.getTranslation("Button.Prev",this.props.preferredUiLanguages,"Previous Page")}):B.createElement(oh,{titleAccess:He.getTranslation("Button.Prev",this.props.preferredUiLanguages,"Previous Page")}))),B.createElement("div",{className:"swiper-button-next "+(this.metaDataObject.isRtl?"swiper-button-left":"swiper-button-right")+(this.props.hideSwiperButtons||this.state.currentSwiperIndex>=this.state.pages.length-1?" swiper-button-disabled":""),onClick:()=>this.slideNext(),onTouchStart:r=>{this.setState({ignorePhonyClick:!0})}},B.createElement(Aa,{className:"nav-button",disableRipple:!0},this.metaDataObject.isRtl?B.createElement(oh,{titleAccess:He.getTranslation("Button.Next",this.props.preferredUiLanguages,"Next Page")}):B.createElement(sh,{titleAccess:He.getTranslation("Button.Next",this.props.preferredUiLanguages,"Next Page")}))))}shouldAutoPlay(){var e=this.bookInfo.autoAdvance&&this.props.landscape;return this.props.autoplay==="yes"?e=!0:this.props.autoplay==="no"&&(e=!1),e&&!this.skipAutoPlay}setIndex(e){if(this.state.isLoading||this.startingUpSwiper)return;this.setState({currentSwiperIndex:e});const n=this.getPageAtSwiperIndex(e);n&&(this.setPageSizeClass(n),this.animation.HandlePageBeforeVisible(n),this.video.hidingPage(),this.video.HandlePageBeforeVisible(n),GC(),this.music.hidingPage(),mn===Ge.AudioPaused||mn===Ge.VideoPaused?Tn(Ge.NewPageMediaPaused):(this.skipAutoPlay=!0,jC(),this.skipAutoPlay=!1,Tn(Ge.NewPage)))}getPageAtSwiperIndex(e){if(this.swiperInstance==null)return null;const n=this.swiperInstance.slides[e];return n?n.getElementsByClassName("bloom-page")[0]:null}getPageIdFromIndex(e){const n=this.getPageAtSwiperIndex(e);if(!n)throw new Error("No bloomPage at index "+e);return n.getAttribute("id")}static getCurrentPage(){return Te.currentPage}isXmatterPage(){const e=Te.currentPage;if(!e)return!0;const n=e.getAttribute("class");return!n||n.indexOf("bloom-page")<0||n.indexOf("bloom-backMatter")>=0||n.indexOf("bloom-frontMatter")>=0?!0:e.hasAttribute("data-xmatter-page")}showingPage(e){if(this.state.isLoading||this.startingUpSwiper)return;this.props.pageChanged&&this.props.pageChanged(e);const n=this.getPageAtSwiperIndex(e);if(!n){window.setTimeout(()=>this.showingPage(e),50);return}const a=this.getPlayerOptionsForPage(n);this.currentPageHidesNavigationButtons=!!(a&&a.hideNavigation),this.props.hidingNavigationButtonsCallback&&this.props.hidingNavigationButtonsCallback(this.currentPageHidesNavigationButtons),this.activityManager.showingPage(e,n)&&(this.indicesOfPagesWhereWeShouldPreserveDOMState[e]=!0),window.setTimeout(()=>{Te.currentPage=n,Te.currentPageIndex=e,Te.currentPageHasVideo=Xo.pageHasVideo(n),this.setPageSizeClass(n),this.resetForNewPageAndPlay(n),this.props.paused&&this.animation.shouldAnimate(n)&&(this.animation.HandlePageBeforeVisible(n),this.animation.HandlePageVisible(n,this.props.paused),this.animation.HandlePageDurationAvailable(n,am(n),this.props.paused)),this.isXmatterPage()||(this.bookInteraction.pageShown(e),e===this.indexOflastNumberedPage&&(this.bookInteraction.lastNumberedPageWasRead=!0)),this.props.reportPageProperties&&this.props.reportPageProperties({hasAudio:FC(n),hasMusic:this.music.pageHasMusic(n),hasVideo:Te.currentPageHasVideo}),this.bookInteraction.reportedAudioOnCurrentPage=!1,this.bookInteraction.reportedVideoOnCurrentPage=!1,this.sendUpdateOfBookProgressReportToExternalContext(),this.swiperInstance.params.noSwiping=this.activityManager.getActivityAbsorbsDragging(),this.swiperInstance.params.touchRatio=this.activityManager.getActivityAbsorbsDragging()?0:1,this.activityManager.getActivityAbsorbsTyping()?this.swiperInstance.keyboard.disable():this.swiperInstance.keyboard.enable(),Array.from(n.querySelectorAll("[data-sound]")).forEach(r=>{r.addEventListener("click",Gp)})},0)}addScrollbarsToPageWhenReady(e){if(this.state.isLoading||this.startingUpSwiper)return;const n=this.getPageAtSwiperIndex(e);if(!n){window.setTimeout(()=>this.addScrollbarsToPageWhenReady(e),50);return}FL(n,Te.handlePointerMoveEvent)}static handlePointerMoveEvent(e){var n;e.pointerType==="mouse"&&((n=e.target)!=null&&n.closest(".nicescroll-cursors"))&&e.stopPropagation()}storeAudioAnalytics(e){e<.001||Number.isNaN(e)||(this.bookInteraction.totalAudioDuration+=e,!this.isXmatterPage()&&(this.bookInteraction.reportedAudioOnCurrentPage||(this.bookInteraction.reportedAudioOnCurrentPage=!0,this.bookInteraction.audioPageShown(Te.currentPageIndex)),this.sendUpdateOfBookProgressReportToExternalContext()))}static storeVideoAnalytics(e){if(e<.001)return;const n=Te.currentPagePlayer;n.bookInteraction.totalVideoDuration+=e,!n.bookInteraction.reportedVideoOnCurrentPage&&!n.isXmatterPage()&&(n.bookInteraction.reportedVideoOnCurrentPage=!0,n.bookInteraction.videoPageShown(Te.currentPageIndex)),n.sendUpdateOfBookProgressReportToExternalContext()}resetForNewPageAndPlay(e){if(this.props.paused){this.video.HandlePageVisible(e,()=>this.props.paused);return}if(Ky(e),Te.currentPageHasVideo){const n=()=>{this.video.HandlePageVisible(e,()=>this.props.paused),this.music.pause()};if(Tn(Ge.VideoPlaying),!this.sentBloomNotification&&(this.sentBloomNotification=!0,this.props.shouldReportSoundLog)){nf("/publish/av/startRecording",this.videoList).then(n);return}n()}else this.playAudioAndAnimation(e)}playAudioAndAnimation(e){if(this.activityManager.getActivityManagesSound()){this.activityManager.doInitialSoundAndAnimation();return}if(Tn(Ge.AudioPlaying),!e)return;const n=am(e);this.animation.HandlePageDurationAvailable(e,n,this.props.paused);const a=()=>{Kl.pageHasAnimation(e)&&this.animation.HandlePageBeforeVisible(e),this.animation.HandlePageVisible(e,this.props.paused),Hy(e,this.animation.animatableCanvas),this.music.HandlePageVisible(e)};if(!this.sentBloomNotification&&(this.sentBloomNotification=!0,this.props.shouldReportSoundLog)){nf("/publish/av/startRecording",this.videoList).then(a);return}a()}getVideoList(e){let n="";for(const r of Array.from(e.getElementsByTagName("video"))){var a=r,i=a.getElementsByTagName("source")[0].getAttribute("src");n&&(n+="|"),n+=i}return n}handlePageClick(e){if(!this.state.ignorePhonyClick&&(!this.activityManager.getActivityAbsorbsClicking()||e.target.closest("[data-href]")&&e.target.closest(".bloom-canvas"))&&!e.target.closest(".bloom-videoContainer")){const n=$B(e.nativeEvent,this.bookInfo.bookInstanceId,()=>this.getPageIdFromIndex(this.state.currentSwiperIndex));n?(this.navigate(n.bookUrl,n.pageId),e.stopPropagation(),e.preventDefault()):this.props.onContentClick&&this.props.onContentClick(e)}this.setState({ignorePhonyClick:!1})}}function dI(t){return t.replace("%23","#").replace(/[\u00A0-\u9999<>\&]/gim,e=>"&#"+e.charCodeAt(0)+";")}function fI(t){return t.ownerDocument.evaluate("//div[contains(@class, 'bloom-imageDescription')]/div[contains(@class, 'bloom-editable') and contains(@class, 'bloom-visibility-code-on')]//*[contains(@class, 'audio-sentence') or contains(@class, 'bloom-highlightSegment')]",t,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null).snapshotLength>0?!0:t.ownerDocument.evaluate("//div[contains(@class, 'bloom-imageDescription')]/div[contains(@class, 'bloom-editable') and contains(@class, 'bloom-visibility-code-on') and @data-audiorecordingmode='TextBox']/p[text()]",t,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null).snapshotLength>0}var Zp={},hI=wa,pI=ka;Object.defineProperty(Zp,"__esModule",{value:!0});var a0=Zp.default=void 0,gI=pI(Mn()),mI=hI(xa()),vI=(0,mI.default)(gI.createElement("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBack");a0=Zp.default=vI;var Jp={},yI=wa,bI=ka;Object.defineProperty(Jp,"__esModule",{value:!0});var i0=Jp.default=void 0,wI=bI(Mn()),kI=yI(xa()),xI=(0,kI.default)(wI.createElement("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz");i0=Jp.default=xI;var Qp={},SI=wa,CI=ka;Object.defineProperty(Qp,"__esModule",{value:!0});var tg=Qp.default=void 0,TI=CI(Mn()),EI=SI(xa()),PI=(0,EI.default)(TI.createElement("path",{d:"M10 16.5l6-4.5-6-4.5v9zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"PlayCircleOutline");tg=Qp.default=PI;var eg={},MI=wa,AI=ka;Object.defineProperty(eg,"__esModule",{value:!0});var r0=eg.default=void 0,NI=AI(Mn()),LI=MI(xa()),zI=(0,LI.default)(NI.createElement("path",{d:"M9 16h2V8H9v8zm3-14C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm1-4h2V8h-2v8z"}),"PauseCircleOutline");r0=eg.default=zI;var ng={},BI=wa,II=ka;Object.defineProperty(ng,"__esModule",{value:!0});var o0=ng.default=void 0,DI=II(Mn()),jI=BI(xa()),RI=(0,jI.default)(DI.createElement("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z"}),"Language");o0=ng.default=RI;var ag={},OI=wa,KI=ka;Object.defineProperty(ag,"__esModule",{value:!0});var s0=ag.default=void 0,$I=KI(Mn()),qI=OI(xa()),HI=(0,qI.default)($I.createElement("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}),"Fullscreen");s0=ag.default=HI;var ig={},FI=wa,WI=ka;Object.defineProperty(ig,"__esModule",{value:!0});var l0=ig.default=void 0,_I=WI(Mn()),VI=FI(xa()),GI=(0,VI.default)(_I.createElement("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"}),"FullscreenExit");l0=ig.default=GI;function UI(t){return wt.createElement(rh,{...t,width:"21",height:"20",viewBox:"0 0 21 20"},wt.createElement("path",{d:"M20.6181 9.909C20.6181 9.909 17.3581 3.70568 10.2454 3.70568C10.1127 3.70568 9.9821 3.70851 9.8522 3.71275L9.23133 0.590958L8.27889 0.807585L8.87136 3.78574C2.72807 4.50344 0 9.86355 0 9.86355C0 9.86355 0.566707 11.0581 1.77366 12.4165L1.27674 9.91983C1.26639 9.90052 1.26089 9.89016 1.26089 9.89016C1.26089 9.89016 1.45882 9.53343 1.86833 9.01188L2.73952 13.3918C3.09729 13.7179 3.49205 14.0383 3.92423 14.3419L2.68074 8.09074C2.92754 7.84068 3.20826 7.58049 3.52199 7.32171L5.05787 15.0424C5.40441 15.2277 5.77033 15.3993 6.15474 15.5514L4.38901 6.67725C4.6772 6.48487 4.98565 6.29932 5.31568 6.12485L7.26481 15.9206C7.59924 16.0118 7.94578 16.0871 8.30509 16.146L7.56314 12.4167C7.89823 12.8518 8.32205 13.2046 8.80465 13.4464L9.36563 16.2656C9.59813 16.2802 9.83459 16.2891 10.0765 16.2891C10.1734 16.2891 10.2694 16.2873 10.3654 16.2844L9.86541 13.773C10.0112 13.7923 10.1591 13.8033 10.3099 13.8033C10.4957 13.8033 10.6783 13.7883 10.8559 13.7588L11.9801 19.4091L12.9321 19.1924L12.3108 16.0683C17.848 14.9378 20.6181 9.909 20.6181 9.909ZM6.88084 8.9881L6.22651 5.69889C6.53386 5.57339 6.8575 5.45942 7.19546 5.35982L7.6228 7.50844C7.28066 7.93015 7.02351 8.43381 6.88084 8.9881ZM8.46692 6.74577L8.14503 5.12836C8.45547 5.06785 8.77691 5.01958 9.11002 4.9859L9.3773 6.32923C9.05322 6.42294 8.74741 6.56375 8.46692 6.74577ZM10.3467 6.19713L10.0944 4.93033C10.1472 4.92963 10.1998 4.92845 10.2533 4.92845C10.4858 4.92845 10.713 4.93599 10.9365 4.94941C13.2188 5.33628 14.964 7.44981 14.964 9.99965C14.964 12.1188 13.7579 13.9352 12.0406 14.7106L11.7914 13.4565C13.0153 12.8558 13.8654 11.5342 13.8654 9.99942C13.8652 7.91226 12.2936 6.21856 10.3467 6.19713ZM14.5336 14.0984C15.4349 13.0056 15.9823 11.5718 15.9823 9.99942C15.9823 8.35399 15.3821 6.8595 14.405 5.74928C17.7771 7.16772 19.3574 9.92642 19.3574 9.92642C19.3574 9.92642 17.7491 12.6074 14.5336 14.0984Z"}))}var rg={},YI=wa,XI=ka;Object.defineProperty(rg,"__esModule",{value:!0});var u0=rg.default=void 0,ZI=XI(Mn()),JI=YI(xa()),QI=(0,JI.default)(ZI.createElement("path",{d:"M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"}),"VolumeUp");u0=rg.default=QI;const tD=t=>{const[e,n]=B.useState((t.languages.filter(s=>s.IsSelected)[0]||t.languages[0]).Code),a=s=>{const l=s.target.value;n(l),t.onClose(l)},i=()=>{t.onClose("")},r=()=>{const s=t.languages.map(l=>wt.createElement("div",{className:"chooserItem",key:l.Code},wt.createElement(lB,{value:l.Code,control:wt.createElement(kB,null),label:l.Name,checked:l.Code===e}),wt.createElement("span",{className:"spacer"}),wt.createElement(u0,{className:"icon",visibility:l.HasAudio?"inherit":"hidden"})));return wt.createElement("div",{className:"radioGroupDiv"},s)};return wt.createElement(Uz,{className:"languageMenu",onClose:i,"aria-labelledby":"language-menu-title",open:!0,scroll:"paper"},wt.createElement(tB,{id:"language-menu-title"},"Languages in this book:"),wt.createElement(rB,{component:"fieldset"},wt.createElement(xB,{className:"radioGroup","aria-label":"languages",name:"languages",value:e,onChange:a},r())),wt.createElement(Zz,null,wt.createElement(Cz,{onClick:i,color:"secondary"},"Close")))};var Go=(t=>(t[t.showArrow=0]="showArrow",t[t.showEllipsis=1]="showEllipsis",t[t.showNothing=2]="showNothing",t))(Go||{});const eD=t=>{const[e,n]=B.useState(!1),a="button"+(t.bookLanguages.length<2?" disabled":""),i=E=>{n(!1),E!==""&&(t.onLanguageChanged(E),s({lang:E}))},r=()=>{try{document.fullscreenElement!=null||document.webkitFullscreenElement!=null?document.exitFullscreen?document.exitFullscreen():document.webkitExitFullScreen&&document.webkitExitFullScreen():document.documentElement.requestFullscreen?document.documentElement.requestFullscreen():document.documentElement.webkitRequestFullscreen&&document.documentElement.webkitRequestFullscreen()}catch(E){console.error("RequestFullScreen failed: ",E)}},s=E=>{if(!t.videoPreviewMode)return;const z={lang:t.activeLanguageCode,imageDescriptions:t.readImageDescriptions,...E};nf("publish/av/videoSettings",encodeURIComponent(JSON.stringify(z)))},l=He.getTranslation("Audio.Pause",t.preferredLanguages,"Pause"),c=t.paused?wt.createElement(tg,{titleAccess:t.playLabel}):wt.createElement(r0,{titleAccess:l}),h=He.getTranslation("Button.ReadImageDescriptions",t.preferredLanguages,"Read Image Descriptions"),m=He.getTranslation("Button.IgnoreImageDescriptions",t.preferredLanguages,"Ignore Image Descriptions"),k=vs({palette:{primary:{main:oI},secondary:{main:e0.palette.secondary.main}}}),w=wt.createElement(Yl,{theme:k},wt.createElement(UI,{"aria-label":t.readImageDescriptions?"Read image descriptions":"Ignore image descriptions",titleAccess:t.readImageDescriptions?m:h,opacity:t.readImageDescriptions?1:.38,color:t.nowReadingImageDescription?"primary":"secondary"})),P=t.extraButtons?t.extraButtons.map(E=>wt.createElement(Aa,{key:E.id,color:"secondary",title:E.description,onClick:()=>qa({messageType:E.id})},wt.createElement("img",{style:{maxHeight:"24px",maxWidth:"24px"},src:E.iconUrl}))):void 0;return wt.createElement(pz,{color:"primary",className:`control-bar ${t.visible?", visible":""}`,id:"control-bar",elevation:0,position:"relative"},wt.createElement(BB,null,!t.videoPreviewMode&&wt.createElement(Aa,{color:"secondary",onClick:()=>{t.backClicked&&t.backClicked()},"data-testid":"history-back-button",disabled:t.getBackButtonState()===2},t.getBackButtonState()===0?wt.createElement(a0,{"aria-label":"Go Back",titleAccess:He.getTranslation("Button.Back",t.preferredLanguages,"Back")}):t.getBackButtonState()===1&&wt.createElement(i0,{"aria-label":"More Menu",titleAccess:He.getTranslation("Button.More",t.preferredLanguages,"More")})),wt.createElement("div",{className:"filler"}),t.bookHasImageDescriptions&&wt.createElement(Aa,{onClick:()=>{t.onReadImageDescriptionToggled(),s({imageDescriptions:!t.readImageDescriptions})}},w),t.bookLanguages.length>1&&wt.createElement(Aa,{className:a,"aria-label":"Choose Language",color:"secondary",onClick:()=>{n(!0)}},wt.createElement(o0,{titleAccess:He.getTranslation("Button.ChooseLanguage",t.preferredLanguages,"Choose Language")})),e&&wt.createElement(tD,{languages:t.bookLanguages,onClose:i}),!t.videoPreviewMode&&wt.createElement(Aa,{color:"secondary","aria-label":"PlayPause",onClick:()=>{t.pausedChanged&&t.pausedChanged(!t.paused)}},t.showPlayPause?c:null),P,document.fullscreenEnabled&&t.canShowFullScreen&&!t.videoPreviewMode&&wt.createElement(Aa,{color:"secondary",onClick:()=>r()},document.fullscreenElement==null?wt.createElement(s0,{"aria-label":"Full Screen",titleAccess:He.getTranslation("Button.FullScreen",t.preferredLanguages,"Full Screen")}):wt.createElement(l0,{"aria-label":"Exit Full Screen",titleAccess:He.getTranslation("Button.ExitFullScreen",t.preferredLanguages,"Exit Full Screen")}))))};function Gd(t,e){return Math.round(t/e)*e}function nD(t){if(!(!t||t==="cover")){if(/^\d+$/.test(t))return t;try{return t.replace(new RegExp("(?![0-9])\\p{Nd}","gu"),e=>{const n=e.charCodeAt(0);return(n&15)-6*(new RegExp("\\p{Nd}","u").test(String.fromCodePoint(n|15))?1:0)})}catch{return}}}let Ud=!1,gh=t=>{};function aD(t){gh&&gh(t)}let yy=0,by=0;function wy(){const t=/iPad|iPhone|iPod/.test(navigator.platform);let e,n,a;t&&(e=document.getElementsByClassName("bloomPlayer")[0],n=e.parentElement,a=e.nextSibling,n.removeChild(e));const i=document.documentElement.clientWidth,r=document.documentElement.clientHeight;return t&&n.insertBefore(e,a),{width:i,height:r}}const iD=t=>{const[e,n]=B.useState(t.autoplay),a=t.centerVertically===void 0?!0:t.centerVertically;_T(ut=>{ut.pause?(Ud=!j,f(!0)):ut.resume&&Ud?f(!1):ut.play?(f(!1),ut.autoplay&&n(ut.autoplay)):ut.reset?(m(t.startPage??0),Qe.current&&Qe.current(t.startPage??0)):ut.controlAction&&mt(ut.controlAction)});const[i,r]=B.useState(!1),[s,l]=B.useState(t.initiallyShowAppBar),[,c]=B.useState(0);B.useEffect(()=>{const ut=()=>{l(!0),c(Ut=>Ut+1)};return ph.subscribe(ut),()=>{ph.unsubscribe(ut)}},[]);const[h,m]=B.useState(t.startPage??0),[k,w]=B.useState([""]),[P,E]=B.useState(!1),[z,A]=B.useState(!1),[x,S]=B.useState(""),[N,L]=B.useState("Device16x9Portrait");B.useEffect(()=>{l(t.initiallyShowAppBar)},[t.initiallyShowAppBar]),B.useEffect(()=>{s?HT():FT()},[s]),B.useEffect(()=>{f(t.paused)},[t.paused]);const[j,f]=B.useState(t.paused),[U,_]=B.useState(!1),F=He.getBloomUiLanguage(),gt=F==="en"?[F]:[F,"en"],[dt,ot]=B.useState(gt);B.useEffect(()=>{j||(Ud=!1)},[j]);const[X,$]=B.useState(!1),[o,tt]=B.useState(!1),[v,Q]=B.useState(!1),[st,ft]=B.useState(!1),[D,lt]=B.useState(!1),[pt,Ct]=B.useState(0),[St,Dt]=B.useState(9/16),Ht=[],[Vt,Gt]=B.useState(Ht),[Se,dn]=B.useState(""),Qe=B.useRef(),[be,me]=B.useState(!0),[Ue,Tt]=B.useState(!1),[Ce,$n]=B.useState(!1),[We,T]=B.useState(0),I=()=>{T(ut=>ut+1)},[W,Z]=B.useState("");B.useEffect(()=>{Ft()},[D,We,X,t.useOriginalPageSize]),B.useEffect(()=>()=>{const ut=document.getElementById("scale-style-sheet");ut&&ut.parentNode.removeChild(ut)},[]);const nt=B.useRef(),mt=ut=>{switch(ut){case"navigate-to-next-page":nt&&nt.current&&nt.current.slideNext();break;case"navigate-to-previous-page":nt&&nt.current&&nt.current.slidePrevious();break;default:console.log("'handleControlMessage' received an unknown message.");return}},Ft=()=>{const ut=document.getElementsByClassName("swiper-slide-active")[0];let Ut=null;if(ut&&(Ut=ut.getElementsByClassName("bloom-page")[0]),!Ut||!D){window.setTimeout(I,100);return}let qe=document.getElementById("scale-style-sheet");qe||(qe=document.createElement("style"),qe.setAttribute("type","text/css"),qe.setAttribute("id","scale-style-sheet"),document.head.appendChild(qe));let Jt=pt,te=St;const Et=Te.getPageSizeClass(Ut);(t.url!==x||Et!==N)&&(S(t.url),L(Et),window.onresize=()=>{const{width:da,height:Pa}=wy();(Pa!==by||da!==yy)&&I()},Jt=Math.max(Ut.offsetHeight,Ut.offsetWidth),te=Math.min(Ut.offsetHeight,Ut.offsetWidth)/Jt,Dt(te),Ct(Jt));const{width:Lt,height:Qt}=wy();yy=Lt,by=Qt;const we=Lt>Qt;if(we!==X){$(we);return}let fe=0,xn=0;const re=window.getComputedStyle(document.body);re&&re.marginTop&&(fe=parseInt(re.marginTop,10)),re&&re.marginBottom&&(xn=parseInt(re.marginBottom,10));const Fa=Ut.getAttribute("class").indexOf("Landscape")>=0,fn=Fa?Jt*te:Jt,ca=Fa?Jt:Jt*te;let Yn=fe+xn;if(s){const da=document.getElementById("control-bar");da&&(Yn+=da.offsetHeight);const Pa=document.getElementById("pageNumberControl");Pa&&(Yn+=Pa.offsetHeight)}const li=Qt-Yn,yr=se({pageWidth:ca,pageHeight:fn,desiredPageHeight:li}),Wa=le(ca);let de=Math.min(yr,Wa);const Ta=fn*de;let ui=Ta*te/de;Fa&&(ui=Ta/te/de);const Xn=Lt/de-ui;let Ea="",_a=Math.max((Lt-ca*de)/2,0);t.roundMarginToNearestK&&(_a=Gd(_a,t.roundMarginToNearestK));const ho=_a,cc=de,Fs=30;if(Xn>100*2)Ea="largeOutsideButtons";else if(Xn>Fs*2)Ea="smallOutsideButtons";else if(Lt>407&&navigator.userAgent.includes("Chrome")&&!t.hideSwiperButtons){const Pa=new RegExp(" Chrome/([0-9]+).").exec(navigator.userAgent),po=parseInt(Pa[1]);po&&po<90&&(de*=.9,_a=Math.max((Lt-ca*de)/2,0),Ea="smallOutsideButtons extraScalingForChrome85Bug")}Ea!==W&&Z(Ea);let br="";if(a){const da=(Qt-Ta-Yn)/2;da>0&&(br=`translate(0, ${da.toFixed(0)}px) `)}qe.innerText=`.bloomPlayer {
|
|
8047
|
+
`,"").replace("\r","")}const uc=[];function OB(){return uc.length>0}function KB(t){const e=uc.pop();if(e)return{bookUrl:t===e.bookId?void 0:hh(e.bookId),pageId:e.pageId}}function $B(t,e,n){const a=t.target.closest("[href], [data-href]");if(!a)return;t.preventDefault(),t.stopPropagation();const i=(a.getAttribute("href")||a.getAttribute("data-href"))??void 0;if(!i)return;if(i.startsWith("http://")||i.startsWith("https://")){window.open(i,"_blank","noreferrer");return}let r,s;if(i==="back"){const c=uc.pop();return c?{bookUrl:e===c.bookId?void 0:hh(c.bookId),pageId:c.pageId}:void 0}else if(i.startsWith("/book/")){const c=qB(i);r=c.bookId,s=c.pageId,c.bookId===e&&(r=void 0)}else i.startsWith("#")&&(s=i.substring(1));const l=n();if(r)return fy(e,l),{bookUrl:hh(r),pageId:s};if(s)return fy(e,l),{pageId:s}}function fy(t,e,n){uc.push({bookId:t,pageId:e})}function hh(t){return`/book/${t}/index.htm`}function qB(t){try{const e=new URL(t,window.location.origin);if(!e.pathname.startsWith("/book/"))throw new Error("Invalid book URL format");const n=e.pathname.replace("/book/",""),a=e.hash.replace("#","");return{bookId:n,pageId:a}}catch(e){return console.error("Error parsing book URL:",e),{bookId:void 0,pageId:void 0}}}const HB="bloom-player",FB="A library for displaying Bloom books in iframes or WebViews",WB="SIL Global",_B="MIT",VB="2.19.7-alpha.2",GB=!1,UB={type:"git",url:"git+https://github.com/BloomBooks/bloom-player.git"},YB="module",XB="lib/shared.es.js",ZB="lib/index.d.ts",JB={".":{types:"./lib/index.d.ts",import:"./lib/shared.es.js",default:"./lib/shared.es.js"}},QB={"// COMMENTS: make the action a space rather than empty string so `yarn run` can list the scripts":" ","//":" ","// 'yarn dev' will build, watch, start a server, and open the player in a brower":" ","// You can edit index-for-developing.html to point to different books":" ","// Or just use 'yarn storybook' and skip this dev approach entirely":" ",dev:"vite","build:standalone":"vite build","build:sharedlib":"vite build --mode lib",test:"vitest","// blame.ignoreRevsFile - This allows blame to see through commits that are only there to format code.":" ",prepare:"husky install && git config blame.ignoreRevsFile .git-blame-ignore-revs",storybook:"storybook dev -p 6006","// run this when working with stories that use an iframe and bloomplayer.htm instead of the raw react components":" ",watchForStorybook:"yarn vite build --watch --mode development","strings:download":"crowdin download --config src/l10n/crowdin.yml && yarn strings:compile","strings:upload":"crowdin upload --config src/l10n/crowdin.yml","strings:compile":"yarn tsx ./src/l10n/compileL10Strings.ts","strings:sync":"yarn strings:upload && yarn strings:download"},tI={"@material-ui/core":"^4.12.3","@material-ui/icons":"^4.11.2",axios:"^0.18.0","compare-versions":"^6.1.1","dynamic-import-polyfill":"^0.1.1","jquery.nicescroll":"^3.7.6",react:"^17.0.2","react-dom":"^17.0.2","react-id-swiper":"2.3.2","style-scoped":"^0.2.1",swiper:"^4.5.0"},eI={"@crowdin/cli":"^4.13.0","@storybook/addon-essentials":"8.4.6","@storybook/addon-interactions":"^8.4.6","@storybook/addon-links":"8.4.6","@storybook/blocks":"8.4.6","@storybook/react":"8.4.6","@storybook/react-vite":"8.4.6","@storybook/test":"8.4.6","@types/jquery":"^3.5.5","@types/jquery.nicescroll":"^3.7.1","@types/node":"^22.7.6","@types/react":"^17.0.2","@types/react-dom":"^17.0.2",editorconfig:"^2.0.0",eslint:"^9.12.0","eslint-plugin-storybook":"^0.11.1",glob:"^10",husky:"8.0.3",jsdom:"^25.0.1",less:"^4.2.0",prettier:"^3.3.3",storybook:"8.4.6",tsx:"^4.19.1",typescript:"*",vite:"^5.4.9","vite-plugin-dts":"^4.5.3","vite-plugin-html":"^3.2.2","vite-plugin-static-copy":"^2.0.0",vitest:"^2.1.3"},nI=["dist/*.js","dist/bloomplayer.htm","dist/*.mp3","lib/*.js","lib/*.d.ts","lib/*.js.map","src/shared/event.ts","src/shared/narration.ts","src/shared/dragActivityRuntime.ts","src/shared/scrolling.ts","src/shared/index.ts","dist/*.css","dist/*.tsv"],aI={node:"24.13.0",yarn:"1.22.19"},iI={name:HB,description:FB,author:WB,license:_B,version:VB,private:!1,"// sideeffects might need to be ['*.css'] to avoid 'shaking' our CSS, if we ever get tree shaking working":"",sideEffects:GB,repository:UB,type:YB,module:XB,types:ZB,exports:JB,scripts:QB,dependencies:tI,devDependencies:eI,"// The four src/ files are directly exported so BloomDesktop can consume them as shared code.":"",files:nI,volta:aI},vi="#d65649",rI="#2e2e2e",oI="#febf00",e0=vs({palette:{primary:{main:rI,contrastText:vi},secondary:{main:vi}}});function n0(){var t=iI.version;return t}const sI=({getBookInstanceId:t})=>{const[e,n]=B.useState(!1),a=n0(),i=new Date("2026-04-20T20:48:46.041Z").toLocaleDateString();if(B.useEffect(()=>{const s=c=>{c.key==="Control"&&n(!0)},l=c=>{c.key==="Control"&&n(!1)};return window.addEventListener("keydown",s),window.addEventListener("keyup",l),()=>{window.removeEventListener("keydown",s),window.removeEventListener("keyup",l)}},[]),!e)return null;const r=t==null?void 0:t();return wt.createElement("div",{className:"diagnostic-info-control",style:{color:vi,fontFamily:"sans-serif",padding:"5px",zIndex:1e3,lineHeight:"1.5"}},wt.createElement("div",null,"Bloom Player v",a," (built ",i,")"),wt.createElement("div",null,"Book ID: ",r??""))},lI=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,hy=t=>{if(typeof t!="string")throw new TypeError("Invalid argument expected string");const e=t.match(lI);if(!e)throw new Error(`Invalid argument not valid semver ('${t}' received)`);return e.shift(),e},py=t=>t==="*"||t==="x"||t==="X",gy=t=>{const e=parseInt(t,10);return isNaN(e)?t:e},uI=(t,e)=>typeof t!=typeof e?[String(t),String(e)]:[t,e],cI=(t,e)=>{if(py(t)||py(e))return 0;const[n,a]=uI(gy(t),gy(e));return n>a?1:n<a?-1:0},my=(t,e)=>{for(let n=0;n<Math.max(t.length,e.length);n++){const a=cI(t[n]||"0",e[n]||"0");if(a!==0)return a}return 0},vy=(t,e)=>{const n=hy(t),a=hy(e),i=n.pop(),r=a.pop(),s=my(n,a);return s!==0?s:i&&r?my(i.split("."),r.split(".")):i||r?i?-1:1:0},ph=new ur;class Te extends B.Component{constructor(e,n){super(e,n),this.activityManager=new oz,this.initialPages=["loading..."],this.initialStyleRules="",this.originalPageClass="Device16x9Portrait",this.bookInfo=new fh,this.bookInteraction=new IB,this.mustUseOriginalPageSize=!1,this.indicesOfPagesWhereWeShouldPreserveDOMState={},this.startingUpSwiper=!0,this.state={pages:this.initialPages,pageIdToIndexMap:{},styleRules:this.initialStyleRules,importedBodyAttributes:{},currentSwiperIndex:0,isLoading:!0,loadFailed:!1,loadErrorHtml:"",ignorePhonyClick:!1,isFinishUpForNewBookComplete:!1,inPauseForced:!1,bookUrl:""},this.isPagesLocalized=!1,this.currentPageHidesNavigationButtons=!1,this.handleDocumentLevelKeyDown=i=>{i.key==="Home"&&(this.goToFirstPage(),i.preventDefault()),i.key==="End"&&(this.goToLastPage(),i.preventDefault())},this.distributionSource="",this.finishUpCalled=!1,this.hasImageDescriptions=!1,this.handlePageVideoComplete=i=>{i.page===Te.currentPage&&this.playAudioAndAnimation(i.page)},this.handlePlayFailed=()=>{this.setState({inPauseForced:!0}),this.props.setForcedPausedCallback&&this.props.setForcedPausedCallback(!0)},this.handlePlayCompleted=()=>{Tn(Ge.MediaFinished),this.props.imageDescriptionCallback(!1)},this.handleToggleImageDescription=i=>{this.props.imageDescriptionCallback(i)},this.handlePageNarrationComplete=i=>{if(i&&(Tn(Ge.MediaFinished),this.shouldAutoPlay())){const r=this.props.autoplayCount??0,s=this.state.startPageIndex??0,l=this.swiperInstance.slides.length-1;let c=this.props.autoplayCount?Math.min(s+r-1,l):l;this.swiperInstance.activeIndex>=c?(this.music.pause(),this.props.shouldReportSoundLog&&QC(),ZC(),KT({})):this.swiperInstance.slideNext()}},this.skipAutoPlay=!1,this.sentBloomNotification=!1;const a=e.url.startsWith("http")?new URL(e.url):new URL(e.url,window.location.origin);a.hash?(this.state.startPageId=a.hash.substring(1),a.hash=""):this.state.startPageIndex=e.startPageIndex,this.state.bookUrl=a.href,Te.currentPagePlayer=this,this.legacyQuestionHandler=new lz(e.locationOfDistFolder)}componentDidMount(){He.setUp(),window.addEventListener("focus",()=>this.handleWindowFocus()),window.addEventListener("blur",()=>this.handleWindowBlur()),document.addEventListener("keydown",e=>this.handleDocumentLevelKeyDown(e)),document.addEventListener("pointerdown",e=>{(e.target.closest("[href], [data-href]")||e.target.closest(".bloom-videoContainer")&&!e.target.closest("[data-draggable-id]"))&&(e.stopPropagation(),e.preventDefault())},{capture:!0}),document.addEventListener("dragstart",e=>{this.activityManager.getActivityAbsorbsDragging()||e.preventDefault()},{capture:!0}),this.componentDidUpdate(this.props,this.state)}CanGoBack(){return OB()}HandleBackButtonClickedIfHavePlayerHistory(){const e=this.getBookIdFromBookUrlForHistory(this.state.bookUrl)||this.bookInfo.bookInstanceId,n=KB(e);return n?(this.navigate(n.bookUrl,n.pageId),!0):!1}navigate(e,n){if(e){const a=new URL(e,this.state.bookUrl);this.setState({bookUrl:a.href,startPageId:n,startPageIndex:void 0})}else if(n!==void 0){const a=this.state.pageIdToIndexMap[n];this.swiperInstance.slideTo(a)}}getBookIdFromBookUrlForHistory(e){if(e)try{const a=new URL(e,window.location.href).pathname.match(/^\/book\/([^/]+)\/index\.htm$/i);return a?a[1]:void 0}catch{return}}handleWindowFocus(){const e=localStorage.getItem(_l),n=localStorage.getItem(om);e&&n==this.sourceUrl&&(this.bookInteraction.beginReadTime=Date.now()-parseInt(e,10))}handleWindowBlur(){const e=Date.now()-this.bookInteraction.beginReadTime;localStorage.setItem(_l,e.toString()),localStorage.setItem(om,this.sourceUrl)}getRequiredVersionMessage(e){var c;const n=(c=e.querySelector('meta[name="FeatureRequirement"]'))==null?void 0:c.getAttribute("content");if(!n)return"";const a=/BloomPlayerMinVersion":"(.*?)".*?"FeatureId":"(.*?)"/g;let i,r=null,s=null;for(;(i=a.exec(n))!==null;){const h=i[1];(!r||vy(h,r)>0)&&(r=h,s=i[2])}if(!r||!s)return"";const l=n0();if(vy(l,r)>=0)return"";if(window.location.hostname.toLowerCase().indexOf("bloomlibrary.org")>=0)return He.getTranslation("Version.Problem.Web",this.props.preferredUiLanguages,"This book uses the feature {feature}. Unfortunately, {hostname} is not ready to display this book yet. Please check back again later or write to issues@bloomlibrary.org if you think this is unexpected.").replace("{feature}",s).replace("{hostname}",window.location.hostname);{let h=ma("host","");switch(h){case"bloomreader":h="Bloom Reader";break;case"bloompubviewer":h="BloomPUB Viewer";break;case"readerapp":h="";break}return h?He.getTranslation("Version.Problem.Host",this.props.preferredUiLanguages,"This book uses the feature {feature} and requires a newer version of {host} to read it. Please upgrade to the latest version.").replace("{feature}",s).replace("{host}",h):He.getTranslation("Version.Problem.NoHost",this.props.preferredUiLanguages,"This book uses the feature {feature} and requires a newer version of the program you are using to read it. Please upgrade to the latest version.").replace("{feature}",s)}}componentDidUpdate(e,n){var a;try{if(!this.props.url||this.state.loadFailed&&n.bookUrl===this.state.bookUrl)return;this.initializeMedia();const i=this.preprocessUrl();if(i&&i!=="/working"&&i!==this.sourceUrl){this.finishUpCalled=!1,this.setState({isLoading:!0,loadFailed:!1}),this.metaDataObject=void 0,this.htmlElement=void 0,this.sourceUrl=i;const r=this.sourceUrl.lastIndexOf("/"),s=this.sourceUrl.lastIndexOf("%2f");let l;r>s?l=this.sourceUrl.substring(r+1,this.sourceUrl.length):l=this.sourceUrl.substring(s+3,this.sourceUrl.length);const c=l.endsWith(".htm"),h=c?this.sourceUrl:this.sourceUrl+"/"+l+".htm";this.urlPrefix=c?this.sourceUrl.substring(0,Math.max(r,s)):this.sourceUrl,this.music.urlPrefix=this.urlPrefix,yC(this.music.urlPrefix);const m=ni.get(this.fullUrl(".distribution")).then(P=>P,P=>({data:""})),k=ni.get(h),w=ni.get(this.fullUrl("meta.json"));Promise.all([k,w,m]).then(P=>{const[E,z,A]=P;this.metaDataObject=z==null?void 0:z.data,this.distributionSource=A.data;const S=new DOMParser().parseFromString(E==null?void 0:E.data,"text/html"),N=S.documentElement,L=this.getRequiredVersionMessage(S);this.setState({requiredVersion:L});const j=N.getElementsByTagName("body")[0];this.mustUseOriginalPageSize=this.computeMustUseOriginalPageSize(j),this.bookInfo.setSomeBookInfoFromBody(j),this.localizeOnce(),this.props.shouldReportSoundLog&&(this.videoList=this.getVideoList(S)),this.animation.PlayAnimations=this.bookInfo.playAnimations,this.collectBodyAttributes(j),this.makeNonEditable(j),this.htmlElement=N;const f=N.getElementsByClassName("bloom-page")[0];this.originalPageClass="Device16x9Portrait",f&&(this.originalPageClass=Te.getPageSizeClass(f)),this.legacyQuestionHandler.generateQuizPagesFromLegacyJSON(this.urlPrefix,j,this.originalPageClass,()=>{this.finishUp()})}).catch(P=>this.HandleLoadingError(P))}else if(e.landscape!==this.props.landscape||e.useOriginalPageSize!==this.props.useOriginalPageSize||e.autoplay!==this.props.autoplay){const r=document.getElementsByClassName("bloom-page");for(let s=0;s<r.length;s++){const l=r[s];this.setPageSizeClass(l)}}!this.state.isLoading&&(n.isLoading||e.activeLanguageCode!==this.props.activeLanguageCode)&&(this.updateDivVisibilityByLangCode(n.isLoading),this.updateOverlayPositionsByLangCode(),this.finishUpCalled&&this.finishUp(!1)),this.state.currentSwiperIndex!=n.currentSwiperIndex&&((a=this.rootDiv)==null||a.querySelectorAll(Xp).forEach(r=>{const s=Is(r).getNiceScroll();s&&s.length>0&&s.remove()})),!this.state.isLoading&&(n.isLoading||e.shouldReadImageDescriptions!==this.props.shouldReadImageDescriptions)&&this.finishUpCalled&&(this.setIndex(this.state.currentSwiperIndex),this.showingPage(this.state.currentSwiperIndex)),this.state.isFinishUpForNewBookComplete&&e.landscape!==this.props.landscape&&(this.setIndex(this.state.currentSwiperIndex),this.showingPage(this.state.currentSwiperIndex)),e.paused!==this.props.paused&&this.handlePausePlay(),this.swiperInstance&&this.swiperInstance.lazy.load()}catch(i){this.setState({isLoading:!1,loadFailed:!0,loadErrorHtml:i.message})}}collectBodyAttributes(e){for(var n={},a=0;a<e.attributes.length;a++)n[e.attributes.item(a).nodeName]=e.attributes.item(a).nodeValue;this.setState({importedBodyAttributes:n})}HandleLoadingError(e){var r;let a=`<p>There was a problem displaying this book: ${e.message}<p>`;const i=!!((r=e.config)!=null&&r.url)&&new URL(e.config.url,window.location.href).pathname.startsWith("/book/");i?a="<p>We could not find that book.</p>":(e.config&&e.config.url&&e.config.url.startsWith("file://")||e.message.indexOf("404")>=0)&&(a="<p>This book (or some part of it) was not found.<p>",e.config&&e.config.url&&(a+=`<p class='errorDetails'>${dI(e.config.url)}</p>`)),this.setState({isLoading:!1,loadFailed:!0,loadErrorHtml:a}),i&&ph.raise()}async finishUp(e=!0){if(this.finishUpCalled=!0,!this.htmlElement)return;Xo.setAllVideoPostersTo1x1TransparentPNG(this.htmlElement);const n=this.htmlElement.getElementsByClassName("bloom-page"),a=[];e&&(this.bookInfo.totalNumberedPages=0,this.bookInfo.questionCount=0,this.activityManager.collectActivityContextForBook(n),this.bookInteraction.clearPagesShown(),this.music.processAllMusicForBook(n));const i=this.bookInfo.getPreferredTranslationLanguages(),r=i[0]===this.props.activeLanguageCode||!this.props.activeLanguageCode,s={},l=h=>h.classList.contains("bloom-interactive-page")||h.classList.contains("simple-comprehension-quiz")||h.getAttribute("data-activity")=="iframe"||h.getElementsByClassName("questions").length>0;s.length=0,s.cover=0;for(let h=0;h<n.length;h++){const m=n[h],k=m.getAttribute("id");k&&(s[k]=h);const w=this.setPageSizeClass(m);m.setAttribute("data-index",h.toString(10)),h===0&&this.props.reportBookProperties&&this.props.reportBookProperties({landscape:w,canRotate:this.bookInfo.canRotate,preferredLanguages:i,pageNumbers:Array.from(n).map(E=>E.getAttribute("data-page-number")??""),isRtl:this.metaDataObject.isRtl,internalUrl:this.state.bookUrl}),e&&(this.fixRelativeUrls(m),m.classList.contains("numberedPage")&&(this.indexOflastNumberedPage=h,this.bookInfo.totalNumberedPages++),(m.getAttribute("data-analyticscategories")||m.getAttribute("data-analyticsCategories"))==="comprehension"&&this.bookInfo.questionCount++),this.showOrHideL1OnlyText(m,r);const P=l(m);P&&this.activityManager.initializePageHtml(this.urlPrefix,m,a.length),(!this.props.skipActivities||!P)&&a.push(m.outerHTML)}if(e){const h=this.htmlElement.getElementsByTagName("head")[0];this.bookInfo.setSomeBookInfoFromHead(h);const m=this.htmlElement.getElementsByTagName("body")[0];if(this.metaDataObject&&(this.bookInfo.setSomeBookInfoFromMetadata(this.metaDataObject,m),this.reportBookOpened(m)),this.props.controlsCallback){const k=gs.createLangDataArrayFromDomAndMetadata(m,this.metaDataObject);this.hasImageDescriptions=fI(m),this.props.controlsCallback(k,this.hasImageDescriptions,w=>{var P;(P=this.swiperInstance)==null||P.slideTo(w)})}}if(e){var c;try{c=await DB(this.htmlElement,this.urlPrefix,this.bookInfo,()=>this.legacyQuestionHandler.getPromiseForAnyQuizCss())}catch(h){this.HandleLoadingError(h),c=""}if(this.startingUpSwiper=!0,this.state.startPageId){if(s[this.state.startPageId]===void 0)throw new Error(`Page ID ${this.state.startPageId} not found in the current pageIdToIndexMap`);this.setState({startPageIndex:s[this.state.startPageId]})}this.setState({pages:a,pageIdToIndexMap:s,styleRules:c,isLoading:!1,currentSwiperIndex:this.state.startPageIndex??0})}else this.setState({pages:a,isLoading:!1});this.props.pageStylesAreNowInstalled(),e?window.setTimeout(()=>{this.setState({isFinishUpForNewBookComplete:!0});const h=this.startingUpSwiper;this.startingUpSwiper=!1;var m=this.state.startPageIndex??0;this.setIndex(m),this.showingPage(m),h&&this.addScrollbarsToPageWhenReady(this.swiperInstance.activeIndex);const k=document.getElementsByClassName("swiper-button-next")[0],w=document.getElementsByClassName("swiper-button-prev")[0];w==null||w.setAttribute("tabindex","4"),k==null||k.setAttribute("tabindex","5"),this.shouldFocusNextButtonForNewBook()&&(k==null||k.focus())},500):Te.currentPage&&window.setTimeout(()=>{this.setIndex(Te.currentPageIndex),this.showingPage(Te.currentPageIndex)},200)}shouldFocusNextButtonForNewBook(){return window.self===window.top||document.referrer.startsWith("http://localhost:")?!0:document.referrer.includes("bloomlibrary.org/player/")}showOrHideL1OnlyText(e,n){e.querySelectorAll(".coverBottomBookTopic, .coverBottomLangName").forEach(a=>{n||a.classList.contains("bloom-content1")?a.classList.remove("do-not-display"):a.classList.add("do-not-display")})}localizeOnce(){!this.isPagesLocalized&&this.state.pages!==this.initialPages&&this.state.styleRules!==this.initialStyleRules&&(He.localizePages(document.body,this.bookInfo.getPreferredTranslationLanguages()),this.isPagesLocalized=!0)}initializeMedia(){this.video||(this.video=new Xo,this.video.PageVideoComplete=new ur,this.video.PageVideoComplete.subscribe(this.handlePageVideoComplete)),this.animation||(this.animation=new Kl),na.subscribe(this.handlePageNarrationComplete),Ar.subscribe(this.handlePlayFailed),Qa.subscribe(this.handlePlayCompleted),gC(this.storeAudioAnalytics.bind(this)),za.subscribe(this.handleToggleImageDescription.bind(this)),mC(()=>{var e;return(e=this.swiperInstance)==null?void 0:e.animating}),vC(e=>eb(e,1)),this.music||(this.music=new tT,this.music.PlayFailed=new ur,this.music.PlayFailed.subscribe(()=>{this.setState({inPauseForced:!0}),this.props.setForcedPausedCallback&&this.props.setForcedPausedCallback(!0)}))}preprocessUrl(){let e=this.state.bookUrl;if(e===void 0||e.trim()==="")throw new Error("The url parameter was empty. It should point to the url of a book.");return e.endsWith("/")&&(e=e.substring(0,e.length-1)),e.endsWith("%2f")&&(e=e.substring(0,e.length-3)),e}handlePausePlay(){this.props.paused?this.pauseAllMultimedia():Te.currentPage!==$y()||mn===Ge.MediaFinished?this.resetForNewPageAndPlay(Te.currentPage):mn===Ge.VideoPaused?this.video.play():(WC(),this.animation.resumeAnimation(),this.music.play())}getAllBloomCanvasElementsOnPage(){var a,i;const e=(a=this.htmlElement)==null?void 0:a.ownerDocument.getElementsByClassName("bloom-canvas");if(e&&e.length>0)return Array.from(e);const n=(i=this.htmlElement)==null?void 0:i.ownerDocument.getElementsByClassName("bloom-imageContainer");return n?Array.from(n).filter(r=>r.parentElement.closest(".bloom-imageContainer")===null):[]}computeMustUseOriginalPageSize(e){return this.props.useOriginalPageSize||e.querySelector(".bloom-canvas-element")?!0:!!e.querySelector(".bloom-textOverPicture")}updateOverlayPositionsByLangCode(){if(!(!this.props.activeLanguageCode||!this.htmlElement))try{const e=this.props.activeLanguageCode;this.getAllBloomCanvasElementsOnPage().forEach(n=>{Array.from(n.querySelectorAll(Bs)).forEach(i=>{const r=Array.from(i.getElementsByClassName("bloom-editable")).find(s=>s.getAttribute("lang")===e);if(r){const s=r.getAttribute("data-bubble-alternate");if(s){const l=JSON.parse(s.replace(/`/g,'"'));i.setAttribute("style",l.style)}}});const a=Array.from(n.getElementsByClassName("comical-alternate")).find(i=>i.getAttribute("data-lang")===e);if(a){const i=n.getElementsByClassName("comical-generated")[0];i&&(i.classList.remove("comical-generated"),i.classList.add("comical-alternate"),i.style.display="none"),a.classList.remove("comical-alternate"),a.classList.add("comical-generated"),a.style.removeProperty("display")}})}catch(e){console.error(e)}}updateDivVisibilityByLangCode(e){if(!this.props.activeLanguageCode||!this.htmlElement)return;const a=this.bookInfo.getPreferredTranslationLanguages()[0]===this.props.activeLanguageCode||!this.props.activeLanguageCode,i=this.props.activeLanguageCode,r=this.htmlElement.ownerDocument.evaluate(".//div[contains(@class, 'bloom-translationGroup')]",this.htmlElement,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null),s="bloom-visibility-code-on";for(let l=0;l<r.snapshotLength;l++){const c=r.snapshotItem(l),h=c.getAttribute("data-default-languages"),m=h?h.split(/,| /):[],k=m==null||m.length===0||!m[0]||m.includes("V")||m.includes("L1")||Te.areStringsEqualInvariantCultureIgnoreCase(m[0],"auto"),w=c.childNodes;for(let P=0;P<w.length;P++){const E=w.item(P);!E||!E.classList||!E.classList.contains("bloom-editable")||(e&&E.setAttribute("data-original-class",E.getAttribute("class")||""),a?E.setAttribute("class",E.getAttribute("data-original-class")||""):k&&(E.getAttribute("lang")===i?(E.classList.add(s),Array.from(E.classList).forEach(A=>{A.startsWith("bloom-content")&&E.classList.remove(A)}),E.classList.add("bloom-content1"),E.classList.add("bloom-contentFirst")):E.classList.remove(s)))}}}static areStringsEqualInvariantCultureIgnoreCase(e,n){return e.localeCompare(n,"en-US",{sensitivity:"accent"})===0}static isDivInL2(e){return e.classList.contains("bloom-contentNational1")}static isDivInL3(e){return e.classList.contains("bloom-contentNational2")}componentWillUnmount(){this.pauseAllMultimedia(),document.removeEventListener("keydown",e=>this.handleDocumentLevelKeyDown(e)),this.unsubscribeAllEvents()}unsubscribeAllEvents(){this.video.PageVideoComplete.unsubscribe(this.handlePageVideoComplete),na.unsubscribe(this.handlePageNarrationComplete),Ar.unsubscribe(this.handlePlayFailed),Qa.unsubscribe(this.handlePlayCompleted),za.unsubscribe(this.handleToggleImageDescription)}pauseAllMultimedia(){mn===Ge.VideoPlaying?this.video.pause():mn===Ge.AudioPlaying&&(_C(),this.animation.PauseAnimation()),this.music.pause()}reportBookOpened(e){const n=this.bookInfo.getAmbientAnalyticsProps();this.distributionSource&&(n.distributionSource=this.distributionSource),RT(n),ab("BookOrShelf opened",{})}sendUpdateOfBookProgressReportToExternalContext(){const e=this.bookInteraction.getProgressReportPropertiesForAnalytics();$T("Pages Read",e)}makeNonEditable(e){const n=e.ownerDocument.evaluate(".//*[@contenteditable]",e,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);for(let a=0;a<n.snapshotLength;a++)n.snapshotItem(a).removeAttribute("contenteditable")}setPageSizeClass(e){return Te.setPageSizeClass(e,this.bookInfo.canRotate,this.props.landscape,this.mustUseOriginalPageSize,this.originalPageClass)}static getPageSizeClass(e){const a=(e.getAttribute("class")||"").match(/\b\S*?(Portrait|Landscape)\b/);return a&&a.length?a[0]:""}static setPageSizeClass(e,n,a,i,r){let s=!1;const l=this.getPageSizeClass(e);if(l){s=n?a:l.endsWith("Landscape");let c="";i?c=s?r.replace("Portrait","Landscape"):r.replace("Landscape","Portrait"):c=s?"Device16x9Landscape":"Device16x9Portrait",l!==c&&(e.classList.remove(l),e.classList.add(c))}return s}goToFirstPage(){this.swiperInstance.slideTo(0)}goToLastPage(){this.swiperInstance.slideTo(99999)}fixRelativeUrls(e){const n=e.ownerDocument.evaluate(".//*[@src]",e,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);for(let r=0;r<n.snapshotLength;r++){const s=n.snapshotItem(r);if(!s)continue;const l=s.getAttribute("src"),c=this.fullUrl(l);s.setAttribute("src",c)}const a=e.ownerDocument.evaluate(".//*[@style]",e,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null),i=new RegExp(/background-image:url\(['"](.*)['"]\)/);for(let r=0;r<a.snapshotLength;r++){const s=a.snapshotItem(r);if(!s)continue;const l=s.getAttribute("style")||"",c=i.exec(l);if(!c)continue;const h=this.fullUrl(c[1]),m=l.replace(i,"");s.setAttribute("style",m),s.setAttribute("data-background",h),s.classList.add("swiper-lazy")}}fullUrl(e){return this.urlPrefix+"/"+e}getRootDiv(){return this.rootDiv}slideNext(){this.swiperInstance&&this.swiperInstance.slideNext()}slidePrevious(){this.swiperInstance&&this.swiperInstance.slidePrev()}getBookInstanceId(){return this.bookInfo.bookInstanceId}getPlayerOptionsForPage(e){if(!e)return;let n=e.getAttribute("data-player-options");if(n)try{return n=n.replace(/'/g,'"'),JSON.parse(n)}catch(a){console.log("getPlayerOptionsForPage failed to parse json: "+n+" with error "+a.message);return}}render(){var i;const e=this.activityManager.getActivityAbsorbsDragging();if(this.state.isLoading)return B.createElement(Nz,{className:"loadingSpinner",color:"secondary"});if(this.state.loadFailed)return B.createElement(B.Fragment,null,B.createElement(bk,{className:"loadFailedIcon",color:"secondary"}),B.createElement("div",{className:"loadErrorMessage",dangerouslySetInnerHTML:{__html:this.state.loadErrorHtml}}));if(this.state.requiredVersion)return B.createElement("div",{className:"requiredVersionMessage"},this.state.requiredVersion);CC(this.props.shouldReadImageDescriptions&&this.hasImageDescriptions);const n={getSwiper:r=>{var s,l;this.swiperInstance=r,(s=this.metaDataObject)!=null&&s.isRtl&&this.swiperInstance&&((l=this.swiperInstance.el)==null||l.setAttribute("dir","rtl"),this.swiperInstance.rtl=!0,this.swiperInstance.rtlTranslate=!0)},simulateTouch:!0,touchStartPreventDefault:!1,on:{slideChange:()=>{this.state.inPauseForced&&this.props.setForcedPausedCallback&&this.props.setForcedPausedCallback(!1),this.setState({inPauseForced:!1}),this.startingUpSwiper||this.showingPage(this.swiperInstance.activeIndex)},slideChangeTransitionStart:()=>{this.startingUpSwiper||this.setIndex(this.swiperInstance.activeIndex)},slideChangeTransitionEnd:()=>{this.addScrollbarsToPageWhenReady(this.swiperInstance.activeIndex)}},keyboard:{enabled:!0,onlyInViewport:!1},preloadImages:!1,lazy:{loadPrevNext:!0,loadOnTransitionStart:!0,loadPrevNextAmount:2},shouldSwiperUpdate:!0};this.startingUpSwiper&&(n.activeSlideKey=(i=this.state.startPageIndex)==null?void 0:i.toString());let a="bloomPlayer";return this.currentPageHidesNavigationButtons?a+=" hideNextPrevButtons extraScalingForChrome85Bug":(this.props.outsideButtonPageClass&&(a+=" "+this.props.outsideButtonPageClass),e&&(a+=" showNavigationButtonsEvenOnTouchDevices")),B.createElement("div",{"aria-label":"Player Content",className:a+(this.props.extraClassNames?" "+this.props.extraClassNames:""),ref:r=>this.rootDiv=r},B.createElement(fC,{key:this.shouldAutoPlay()?"fade":"slide",...n,effect:this.shouldAutoPlay()?"fade":"slide"},this.state.pages.map((r,s)=>{const c=Math.abs(s-this.state.currentSwiperIndex)<2||this.indicesOfPagesWhereWeShouldPreserveDOMState[s];return B.createElement("div",{key:s,className:"page-preview-slide",onClick:h=>this.handlePageClick(h)},c?B.createElement(B.Fragment,null,B.createElement("style",{scoped:!0},this.state.styleRules),B.createElement("div",{...this.state.importedBodyAttributes,className:`bloomPlayer-page ${this.bookInfo.hasAppearanceSystem?"appearance-system":""} ${this.state.importedBodyAttributes.class??""}`,dangerouslySetInnerHTML:{__html:r}})):"")})),B.createElement("div",{className:"swiper-button-prev "+(this.metaDataObject.isRtl?"swiper-button-right":"swiper-button-left")+(this.props.hideSwiperButtons||this.state.currentSwiperIndex===0?" swiper-button-disabled":""),onClick:()=>this.slidePrevious(),onTouchStart:r=>{this.setState({ignorePhonyClick:!0})}},B.createElement(Aa,{className:"nav-button",disableRipple:!0},this.metaDataObject.isRtl?B.createElement(sh,{titleAccess:He.getTranslation("Button.Prev",this.props.preferredUiLanguages,"Previous Page")}):B.createElement(oh,{titleAccess:He.getTranslation("Button.Prev",this.props.preferredUiLanguages,"Previous Page")}))),B.createElement("div",{className:"swiper-button-next "+(this.metaDataObject.isRtl?"swiper-button-left":"swiper-button-right")+(this.props.hideSwiperButtons||this.state.currentSwiperIndex>=this.state.pages.length-1?" swiper-button-disabled":""),onClick:()=>this.slideNext(),onTouchStart:r=>{this.setState({ignorePhonyClick:!0})}},B.createElement(Aa,{className:"nav-button",disableRipple:!0},this.metaDataObject.isRtl?B.createElement(oh,{titleAccess:He.getTranslation("Button.Next",this.props.preferredUiLanguages,"Next Page")}):B.createElement(sh,{titleAccess:He.getTranslation("Button.Next",this.props.preferredUiLanguages,"Next Page")}))))}shouldAutoPlay(){var e=this.bookInfo.autoAdvance&&this.props.landscape;return this.props.autoplay==="yes"?e=!0:this.props.autoplay==="no"&&(e=!1),e&&!this.skipAutoPlay}setIndex(e){if(this.state.isLoading||this.startingUpSwiper)return;this.setState({currentSwiperIndex:e});const n=this.getPageAtSwiperIndex(e);n&&(this.setPageSizeClass(n),this.animation.HandlePageBeforeVisible(n),this.video.hidingPage(),this.video.HandlePageBeforeVisible(n),GC(),this.music.hidingPage(),mn===Ge.AudioPaused||mn===Ge.VideoPaused?Tn(Ge.NewPageMediaPaused):(this.skipAutoPlay=!0,jC(),this.skipAutoPlay=!1,Tn(Ge.NewPage)))}getPageAtSwiperIndex(e){if(this.swiperInstance==null)return null;const n=this.swiperInstance.slides[e];return n?n.getElementsByClassName("bloom-page")[0]:null}getPageIdFromIndex(e){const n=this.getPageAtSwiperIndex(e);if(!n)throw new Error("No bloomPage at index "+e);return n.getAttribute("id")}static getCurrentPage(){return Te.currentPage}isXmatterPage(){const e=Te.currentPage;if(!e)return!0;const n=e.getAttribute("class");return!n||n.indexOf("bloom-page")<0||n.indexOf("bloom-backMatter")>=0||n.indexOf("bloom-frontMatter")>=0?!0:e.hasAttribute("data-xmatter-page")}showingPage(e){if(this.state.isLoading||this.startingUpSwiper)return;this.props.pageChanged&&this.props.pageChanged(e);const n=this.getPageAtSwiperIndex(e);if(!n){window.setTimeout(()=>this.showingPage(e),50);return}const a=this.getPlayerOptionsForPage(n);this.currentPageHidesNavigationButtons=!!(a&&a.hideNavigation),this.props.hidingNavigationButtonsCallback&&this.props.hidingNavigationButtonsCallback(this.currentPageHidesNavigationButtons),this.activityManager.showingPage(e,n)&&(this.indicesOfPagesWhereWeShouldPreserveDOMState[e]=!0),window.setTimeout(()=>{Te.currentPage=n,Te.currentPageIndex=e,Te.currentPageHasVideo=Xo.pageHasVideo(n),this.setPageSizeClass(n),this.resetForNewPageAndPlay(n),this.props.paused&&this.animation.shouldAnimate(n)&&(this.animation.HandlePageBeforeVisible(n),this.animation.HandlePageVisible(n,this.props.paused),this.animation.HandlePageDurationAvailable(n,am(n),this.props.paused)),this.isXmatterPage()||(this.bookInteraction.pageShown(e),e===this.indexOflastNumberedPage&&(this.bookInteraction.lastNumberedPageWasRead=!0)),this.props.reportPageProperties&&this.props.reportPageProperties({hasAudio:FC(n),hasMusic:this.music.pageHasMusic(n),hasVideo:Te.currentPageHasVideo}),this.bookInteraction.reportedAudioOnCurrentPage=!1,this.bookInteraction.reportedVideoOnCurrentPage=!1,this.sendUpdateOfBookProgressReportToExternalContext(),this.swiperInstance.params.noSwiping=this.activityManager.getActivityAbsorbsDragging(),this.swiperInstance.params.touchRatio=this.activityManager.getActivityAbsorbsDragging()?0:1,this.activityManager.getActivityAbsorbsTyping()?this.swiperInstance.keyboard.disable():this.swiperInstance.keyboard.enable(),Array.from(n.querySelectorAll("[data-sound]")).forEach(r=>{r.addEventListener("click",Gp)})},0)}addScrollbarsToPageWhenReady(e){if(this.state.isLoading||this.startingUpSwiper)return;const n=this.getPageAtSwiperIndex(e);if(!n){window.setTimeout(()=>this.addScrollbarsToPageWhenReady(e),50);return}FL(n,Te.handlePointerMoveEvent)}static handlePointerMoveEvent(e){var n;e.pointerType==="mouse"&&((n=e.target)!=null&&n.closest(".nicescroll-cursors"))&&e.stopPropagation()}storeAudioAnalytics(e){e<.001||Number.isNaN(e)||(this.bookInteraction.totalAudioDuration+=e,!this.isXmatterPage()&&(this.bookInteraction.reportedAudioOnCurrentPage||(this.bookInteraction.reportedAudioOnCurrentPage=!0,this.bookInteraction.audioPageShown(Te.currentPageIndex)),this.sendUpdateOfBookProgressReportToExternalContext()))}static storeVideoAnalytics(e){if(e<.001)return;const n=Te.currentPagePlayer;n.bookInteraction.totalVideoDuration+=e,!n.bookInteraction.reportedVideoOnCurrentPage&&!n.isXmatterPage()&&(n.bookInteraction.reportedVideoOnCurrentPage=!0,n.bookInteraction.videoPageShown(Te.currentPageIndex)),n.sendUpdateOfBookProgressReportToExternalContext()}resetForNewPageAndPlay(e){if(this.props.paused){this.video.HandlePageVisible(e,()=>this.props.paused);return}if(Ky(e),Te.currentPageHasVideo){const n=()=>{this.video.HandlePageVisible(e,()=>this.props.paused),this.music.pause()};if(Tn(Ge.VideoPlaying),!this.sentBloomNotification&&(this.sentBloomNotification=!0,this.props.shouldReportSoundLog)){nf("/publish/av/startRecording",this.videoList).then(n);return}n()}else this.playAudioAndAnimation(e)}playAudioAndAnimation(e){if(this.activityManager.getActivityManagesSound()){this.activityManager.doInitialSoundAndAnimation();return}if(Tn(Ge.AudioPlaying),!e)return;const n=am(e);this.animation.HandlePageDurationAvailable(e,n,this.props.paused);const a=()=>{Kl.pageHasAnimation(e)&&this.animation.HandlePageBeforeVisible(e),this.animation.HandlePageVisible(e,this.props.paused),Hy(e,this.animation.animatableCanvas),this.music.HandlePageVisible(e)};if(!this.sentBloomNotification&&(this.sentBloomNotification=!0,this.props.shouldReportSoundLog)){nf("/publish/av/startRecording",this.videoList).then(a);return}a()}getVideoList(e){let n="";for(const r of Array.from(e.getElementsByTagName("video"))){var a=r,i=a.getElementsByTagName("source")[0].getAttribute("src");n&&(n+="|"),n+=i}return n}handlePageClick(e){if(!this.state.ignorePhonyClick&&(!this.activityManager.getActivityAbsorbsClicking()||e.target.closest("[data-href]")&&e.target.closest(".bloom-canvas"))&&!e.target.closest(".bloom-videoContainer")){const n=$B(e.nativeEvent,this.bookInfo.bookInstanceId,()=>this.getPageIdFromIndex(this.state.currentSwiperIndex));n?(this.navigate(n.bookUrl,n.pageId),e.stopPropagation(),e.preventDefault()):this.props.onContentClick&&this.props.onContentClick(e)}this.setState({ignorePhonyClick:!1})}}function dI(t){return t.replace("%23","#").replace(/[\u00A0-\u9999<>\&]/gim,e=>"&#"+e.charCodeAt(0)+";")}function fI(t){return t.ownerDocument.evaluate("//div[contains(@class, 'bloom-imageDescription')]/div[contains(@class, 'bloom-editable') and contains(@class, 'bloom-visibility-code-on')]//*[contains(@class, 'audio-sentence') or contains(@class, 'bloom-highlightSegment')]",t,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null).snapshotLength>0?!0:t.ownerDocument.evaluate("//div[contains(@class, 'bloom-imageDescription')]/div[contains(@class, 'bloom-editable') and contains(@class, 'bloom-visibility-code-on') and @data-audiorecordingmode='TextBox']/p[text()]",t,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null).snapshotLength>0}var Zp={},hI=wa,pI=ka;Object.defineProperty(Zp,"__esModule",{value:!0});var a0=Zp.default=void 0,gI=pI(Mn()),mI=hI(xa()),vI=(0,mI.default)(gI.createElement("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBack");a0=Zp.default=vI;var Jp={},yI=wa,bI=ka;Object.defineProperty(Jp,"__esModule",{value:!0});var i0=Jp.default=void 0,wI=bI(Mn()),kI=yI(xa()),xI=(0,kI.default)(wI.createElement("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz");i0=Jp.default=xI;var Qp={},SI=wa,CI=ka;Object.defineProperty(Qp,"__esModule",{value:!0});var tg=Qp.default=void 0,TI=CI(Mn()),EI=SI(xa()),PI=(0,EI.default)(TI.createElement("path",{d:"M10 16.5l6-4.5-6-4.5v9zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"PlayCircleOutline");tg=Qp.default=PI;var eg={},MI=wa,AI=ka;Object.defineProperty(eg,"__esModule",{value:!0});var r0=eg.default=void 0,NI=AI(Mn()),LI=MI(xa()),zI=(0,LI.default)(NI.createElement("path",{d:"M9 16h2V8H9v8zm3-14C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm1-4h2V8h-2v8z"}),"PauseCircleOutline");r0=eg.default=zI;var ng={},BI=wa,II=ka;Object.defineProperty(ng,"__esModule",{value:!0});var o0=ng.default=void 0,DI=II(Mn()),jI=BI(xa()),RI=(0,jI.default)(DI.createElement("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z"}),"Language");o0=ng.default=RI;var ag={},OI=wa,KI=ka;Object.defineProperty(ag,"__esModule",{value:!0});var s0=ag.default=void 0,$I=KI(Mn()),qI=OI(xa()),HI=(0,qI.default)($I.createElement("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}),"Fullscreen");s0=ag.default=HI;var ig={},FI=wa,WI=ka;Object.defineProperty(ig,"__esModule",{value:!0});var l0=ig.default=void 0,_I=WI(Mn()),VI=FI(xa()),GI=(0,VI.default)(_I.createElement("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"}),"FullscreenExit");l0=ig.default=GI;function UI(t){return wt.createElement(rh,{...t,width:"21",height:"20",viewBox:"0 0 21 20"},wt.createElement("path",{d:"M20.6181 9.909C20.6181 9.909 17.3581 3.70568 10.2454 3.70568C10.1127 3.70568 9.9821 3.70851 9.8522 3.71275L9.23133 0.590958L8.27889 0.807585L8.87136 3.78574C2.72807 4.50344 0 9.86355 0 9.86355C0 9.86355 0.566707 11.0581 1.77366 12.4165L1.27674 9.91983C1.26639 9.90052 1.26089 9.89016 1.26089 9.89016C1.26089 9.89016 1.45882 9.53343 1.86833 9.01188L2.73952 13.3918C3.09729 13.7179 3.49205 14.0383 3.92423 14.3419L2.68074 8.09074C2.92754 7.84068 3.20826 7.58049 3.52199 7.32171L5.05787 15.0424C5.40441 15.2277 5.77033 15.3993 6.15474 15.5514L4.38901 6.67725C4.6772 6.48487 4.98565 6.29932 5.31568 6.12485L7.26481 15.9206C7.59924 16.0118 7.94578 16.0871 8.30509 16.146L7.56314 12.4167C7.89823 12.8518 8.32205 13.2046 8.80465 13.4464L9.36563 16.2656C9.59813 16.2802 9.83459 16.2891 10.0765 16.2891C10.1734 16.2891 10.2694 16.2873 10.3654 16.2844L9.86541 13.773C10.0112 13.7923 10.1591 13.8033 10.3099 13.8033C10.4957 13.8033 10.6783 13.7883 10.8559 13.7588L11.9801 19.4091L12.9321 19.1924L12.3108 16.0683C17.848 14.9378 20.6181 9.909 20.6181 9.909ZM6.88084 8.9881L6.22651 5.69889C6.53386 5.57339 6.8575 5.45942 7.19546 5.35982L7.6228 7.50844C7.28066 7.93015 7.02351 8.43381 6.88084 8.9881ZM8.46692 6.74577L8.14503 5.12836C8.45547 5.06785 8.77691 5.01958 9.11002 4.9859L9.3773 6.32923C9.05322 6.42294 8.74741 6.56375 8.46692 6.74577ZM10.3467 6.19713L10.0944 4.93033C10.1472 4.92963 10.1998 4.92845 10.2533 4.92845C10.4858 4.92845 10.713 4.93599 10.9365 4.94941C13.2188 5.33628 14.964 7.44981 14.964 9.99965C14.964 12.1188 13.7579 13.9352 12.0406 14.7106L11.7914 13.4565C13.0153 12.8558 13.8654 11.5342 13.8654 9.99942C13.8652 7.91226 12.2936 6.21856 10.3467 6.19713ZM14.5336 14.0984C15.4349 13.0056 15.9823 11.5718 15.9823 9.99942C15.9823 8.35399 15.3821 6.8595 14.405 5.74928C17.7771 7.16772 19.3574 9.92642 19.3574 9.92642C19.3574 9.92642 17.7491 12.6074 14.5336 14.0984Z"}))}var rg={},YI=wa,XI=ka;Object.defineProperty(rg,"__esModule",{value:!0});var u0=rg.default=void 0,ZI=XI(Mn()),JI=YI(xa()),QI=(0,JI.default)(ZI.createElement("path",{d:"M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"}),"VolumeUp");u0=rg.default=QI;const tD=t=>{const[e,n]=B.useState((t.languages.filter(s=>s.IsSelected)[0]||t.languages[0]).Code),a=s=>{const l=s.target.value;n(l),t.onClose(l)},i=()=>{t.onClose("")},r=()=>{const s=t.languages.map(l=>wt.createElement("div",{className:"chooserItem",key:l.Code},wt.createElement(lB,{value:l.Code,control:wt.createElement(kB,null),label:l.Name,checked:l.Code===e}),wt.createElement("span",{className:"spacer"}),wt.createElement(u0,{className:"icon",visibility:l.HasAudio?"inherit":"hidden"})));return wt.createElement("div",{className:"radioGroupDiv"},s)};return wt.createElement(Uz,{className:"languageMenu",onClose:i,"aria-labelledby":"language-menu-title",open:!0,scroll:"paper"},wt.createElement(tB,{id:"language-menu-title"},"Languages in this book:"),wt.createElement(rB,{component:"fieldset"},wt.createElement(xB,{className:"radioGroup","aria-label":"languages",name:"languages",value:e,onChange:a},r())),wt.createElement(Zz,null,wt.createElement(Cz,{onClick:i,color:"secondary"},"Close")))};var Go=(t=>(t[t.showArrow=0]="showArrow",t[t.showEllipsis=1]="showEllipsis",t[t.showNothing=2]="showNothing",t))(Go||{});const eD=t=>{const[e,n]=B.useState(!1),a="button"+(t.bookLanguages.length<2?" disabled":""),i=E=>{n(!1),E!==""&&(t.onLanguageChanged(E),s({lang:E}))},r=()=>{try{document.fullscreenElement!=null||document.webkitFullscreenElement!=null?document.exitFullscreen?document.exitFullscreen():document.webkitExitFullScreen&&document.webkitExitFullScreen():document.documentElement.requestFullscreen?document.documentElement.requestFullscreen():document.documentElement.webkitRequestFullscreen&&document.documentElement.webkitRequestFullscreen()}catch(E){console.error("RequestFullScreen failed: ",E)}},s=E=>{if(!t.videoPreviewMode)return;const z={lang:t.activeLanguageCode,imageDescriptions:t.readImageDescriptions,...E};nf("publish/av/videoSettings",encodeURIComponent(JSON.stringify(z)))},l=He.getTranslation("Audio.Pause",t.preferredLanguages,"Pause"),c=t.paused?wt.createElement(tg,{titleAccess:t.playLabel}):wt.createElement(r0,{titleAccess:l}),h=He.getTranslation("Button.ReadImageDescriptions",t.preferredLanguages,"Read Image Descriptions"),m=He.getTranslation("Button.IgnoreImageDescriptions",t.preferredLanguages,"Ignore Image Descriptions"),k=vs({palette:{primary:{main:oI},secondary:{main:e0.palette.secondary.main}}}),w=wt.createElement(Yl,{theme:k},wt.createElement(UI,{"aria-label":t.readImageDescriptions?"Read image descriptions":"Ignore image descriptions",titleAccess:t.readImageDescriptions?m:h,opacity:t.readImageDescriptions?1:.38,color:t.nowReadingImageDescription?"primary":"secondary"})),P=t.extraButtons?t.extraButtons.map(E=>wt.createElement(Aa,{key:E.id,color:"secondary",title:E.description,onClick:()=>qa({messageType:E.id})},wt.createElement("img",{style:{maxHeight:"24px",maxWidth:"24px"},src:E.iconUrl}))):void 0;return wt.createElement(pz,{color:"primary",className:`control-bar ${t.visible?", visible":""}`,id:"control-bar",elevation:0,position:"relative"},wt.createElement(BB,null,!t.videoPreviewMode&&wt.createElement(Aa,{color:"secondary",onClick:()=>{t.backClicked&&t.backClicked()},"data-testid":"history-back-button",disabled:t.getBackButtonState()===2},t.getBackButtonState()===0?wt.createElement(a0,{"aria-label":"Go Back",titleAccess:He.getTranslation("Button.Back",t.preferredLanguages,"Back")}):t.getBackButtonState()===1&&wt.createElement(i0,{"aria-label":"More Menu",titleAccess:He.getTranslation("Button.More",t.preferredLanguages,"More")})),wt.createElement("div",{className:"filler"}),t.bookHasImageDescriptions&&wt.createElement(Aa,{onClick:()=>{t.onReadImageDescriptionToggled(),s({imageDescriptions:!t.readImageDescriptions})}},w),t.bookLanguages.length>1&&wt.createElement(Aa,{className:a,"aria-label":"Choose Language",color:"secondary",onClick:()=>{n(!0)}},wt.createElement(o0,{titleAccess:He.getTranslation("Button.ChooseLanguage",t.preferredLanguages,"Choose Language")})),e&&wt.createElement(tD,{languages:t.bookLanguages,onClose:i}),!t.videoPreviewMode&&wt.createElement(Aa,{color:"secondary","aria-label":"PlayPause",onClick:()=>{t.pausedChanged&&t.pausedChanged(!t.paused)}},t.showPlayPause?c:null),P,document.fullscreenEnabled&&t.canShowFullScreen&&!t.videoPreviewMode&&wt.createElement(Aa,{color:"secondary",onClick:()=>r()},document.fullscreenElement==null?wt.createElement(s0,{"aria-label":"Full Screen",titleAccess:He.getTranslation("Button.FullScreen",t.preferredLanguages,"Full Screen")}):wt.createElement(l0,{"aria-label":"Exit Full Screen",titleAccess:He.getTranslation("Button.ExitFullScreen",t.preferredLanguages,"Exit Full Screen")}))))};function Gd(t,e){return Math.round(t/e)*e}function nD(t){if(!(!t||t==="cover")){if(/^\d+$/.test(t))return t;try{return t.replace(new RegExp("(?![0-9])\\p{Nd}","gu"),e=>{const n=e.charCodeAt(0);return(n&15)-6*(new RegExp("\\p{Nd}","u").test(String.fromCodePoint(n|15))?1:0)})}catch{return}}}let Ud=!1,gh=t=>{};function aD(t){gh&&gh(t)}let yy=0,by=0;function wy(){const t=/iPad|iPhone|iPod/.test(navigator.platform);let e,n,a;t&&(e=document.getElementsByClassName("bloomPlayer")[0],n=e.parentElement,a=e.nextSibling,n.removeChild(e));const i=document.documentElement.clientWidth,r=document.documentElement.clientHeight;return t&&n.insertBefore(e,a),{width:i,height:r}}const iD=t=>{const[e,n]=B.useState(t.autoplay),a=t.centerVertically===void 0?!0:t.centerVertically;_T(ut=>{ut.pause?(Ud=!j,f(!0)):ut.resume&&Ud?f(!1):ut.play?(f(!1),ut.autoplay&&n(ut.autoplay)):ut.reset?(m(t.startPage??0),Qe.current&&Qe.current(t.startPage??0)):ut.controlAction&&mt(ut.controlAction)});const[i,r]=B.useState(!1),[s,l]=B.useState(t.initiallyShowAppBar),[,c]=B.useState(0);B.useEffect(()=>{const ut=()=>{l(!0),c(Ut=>Ut+1)};return ph.subscribe(ut),()=>{ph.unsubscribe(ut)}},[]);const[h,m]=B.useState(t.startPage??0),[k,w]=B.useState([""]),[P,E]=B.useState(!1),[z,A]=B.useState(!1),[x,S]=B.useState(""),[N,L]=B.useState("Device16x9Portrait");B.useEffect(()=>{l(t.initiallyShowAppBar)},[t.initiallyShowAppBar]),B.useEffect(()=>{s?HT():FT()},[s]),B.useEffect(()=>{f(t.paused)},[t.paused]);const[j,f]=B.useState(t.paused),[U,_]=B.useState(!1),F=He.getBloomUiLanguage(),gt=F==="en"?[F]:[F,"en"],[dt,ot]=B.useState(gt);B.useEffect(()=>{j||(Ud=!1)},[j]);const[X,$]=B.useState(!1),[o,tt]=B.useState(!1),[v,Q]=B.useState(!1),[st,ft]=B.useState(!1),[D,lt]=B.useState(!1),[pt,Ct]=B.useState(0),[St,Dt]=B.useState(9/16),Ht=[],[Vt,Gt]=B.useState(Ht),[Se,dn]=B.useState(""),Qe=B.useRef(),[be,me]=B.useState(!0),[Ue,Tt]=B.useState(!1),[Ce,$n]=B.useState(!1),[We,T]=B.useState(0),I=()=>{T(ut=>ut+1)},[W,Z]=B.useState("");B.useEffect(()=>{Ft()},[D,We,X,t.useOriginalPageSize]),B.useEffect(()=>()=>{const ut=document.getElementById("scale-style-sheet");ut&&ut.parentNode.removeChild(ut)},[]);const nt=B.useRef(),mt=ut=>{switch(ut){case"navigate-to-next-page":nt&&nt.current&&nt.current.slideNext();break;case"navigate-to-previous-page":nt&&nt.current&&nt.current.slidePrevious();break;default:console.log("'handleControlMessage' received an unknown message.");return}},Ft=()=>{const ut=document.getElementsByClassName("swiper-slide-active")[0];let Ut=null;if(ut&&(Ut=ut.getElementsByClassName("bloom-page")[0]),!Ut||!D){window.setTimeout(I,100);return}let qe=document.getElementById("scale-style-sheet");qe||(qe=document.createElement("style"),qe.setAttribute("type","text/css"),qe.setAttribute("id","scale-style-sheet"),document.head.appendChild(qe));let Jt=pt,te=St;const Et=Te.getPageSizeClass(Ut);(t.url!==x||Et!==N)&&(S(t.url),L(Et),window.onresize=()=>{const{width:da,height:Pa}=wy();(Pa!==by||da!==yy)&&I()},Jt=Math.max(Ut.offsetHeight,Ut.offsetWidth),te=Math.min(Ut.offsetHeight,Ut.offsetWidth)/Jt,Dt(te),Ct(Jt));const{width:Lt,height:Qt}=wy();yy=Lt,by=Qt;const we=Lt>Qt;if(we!==X){$(we);return}let fe=0,xn=0;const re=window.getComputedStyle(document.body);re&&re.marginTop&&(fe=parseInt(re.marginTop,10)),re&&re.marginBottom&&(xn=parseInt(re.marginBottom,10));const Fa=Ut.getAttribute("class").indexOf("Landscape")>=0,fn=Fa?Jt*te:Jt,ca=Fa?Jt:Jt*te;let Yn=fe+xn;if(s){const da=document.getElementById("control-bar");da&&(Yn+=da.offsetHeight);const Pa=document.getElementById("pageNumberControl");Pa&&(Yn+=Pa.offsetHeight)}const li=Qt-Yn,yr=se({pageWidth:ca,pageHeight:fn,desiredPageHeight:li}),Wa=le(ca);let de=Math.min(yr,Wa);const Ta=fn*de;let ui=Ta*te/de;Fa&&(ui=Ta/te/de);const Xn=Lt/de-ui;let Ea="",_a=Math.max((Lt-ca*de)/2,0);t.roundMarginToNearestK&&(_a=Gd(_a,t.roundMarginToNearestK));const ho=_a,cc=de,Fs=30;if(Xn>100*2)Ea="largeOutsideButtons";else if(Xn>Fs*2)Ea="smallOutsideButtons";else if(Lt>407&&navigator.userAgent.includes("Chrome")&&!t.hideSwiperButtons){const Pa=new RegExp(" Chrome/([0-9]+).").exec(navigator.userAgent),po=parseInt(Pa[1]);po&&po<90&&(de*=.9,_a=Math.max((Lt-ca*de)/2,0),Ea="smallOutsideButtons extraScalingForChrome85Bug")}Ea!==W&&Z(Ea);let br="";if(a){const da=(Qt-Ta-Yn)/2;da>0&&(br=`translate(0, ${da.toFixed(0)}px) `)}qe.innerText=`.bloomPlayer {
|
|
8048
8048
|
width: ${ui}px;
|
|
8049
8049
|
transform-origin: left top 0;
|
|
8050
8050
|
transform: ${br}scale(${de});
|
|
@@ -8057,4 +8057,4 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
8057
8057
|
}
|
|
8058
8058
|
}
|
|
8059
8059
|
.bloomPlayer-page {height: ${Ta/de}px; overflow: hidden;}`,VL(Ut,de),i||r(!0)},se=ut=>{const{pageWidth:Ut,pageHeight:qe,desiredPageHeight:Jt}=ut,te=Jt/qe;if(!t.roundPageWidthToNearestK)return te;const Et=Ut*te;return Gd(Et,t.roundPageWidthToNearestK)/Ut},le=ut=>{let Ut=document.body.offsetWidth;return t.roundPageWidthToNearestK&&(Ut=Gd(Ut,t.roundPageWidthToNearestK)),Ut/ut};B.useEffect(()=>{U&&!j&&_(!1);const ut=document.getElementById("root");ut&&(gh=Ut=>{(Ut.key===" "||Ut.key==="ArrowRight"&&U)&&(Ut.preventDefault(),Ut.stopImmediatePropagation(),f(!j),_(!1))},ut.addEventListener("keydown",aD,{capture:!0}))});const Rt=ut=>{Se!==ut&&(gs.selectNewLanguageCode(Vt,ut),dn(ut))},Ie=(ut,Ut,qe)=>{Qe.current=qe;let Jt;if(t.videoSettings){const te=JSON.parse(t.videoSettings);Jt=te.lang,me(te.imageDescriptions??!1)}t.initialLanguageCode&&(Jt=t.initialLanguageCode),Jt&&ut.map(te=>te.Code).includes(Jt)?gs.selectNewLanguageCode(ut,Jt):Jt=ut.length>0?ut[0].Code:"",dn(Jt),Gt(ut),Tt(Ut),t.videoPreviewMode&&!s&&l(!0)},_e=He.getTranslation("Audio.Play",dt,"Play"),Nn=He.getTranslation("Audio.ReadAloud",dt,"Read Aloud"),tn=o?Nn:_e,{allowToggleAppBar:Sa,showBackButton:Ca,initiallyShowAppBar:Ye,locationOfDistFolder:Pt,hideFullScreenButton:on,...H}=t,zt=vs({palette:{primary:{main:"#000",contrastText:"#FFF"},secondary:{main:"#FFF"}}}),Xt=ut=>{$n(ut)},Oe=Re({root:{color:vi,height:2,padding:"15px 0"},active:{},valueLabel:{left:"calc(50% - 16px)",top:-31,"& *":{background:vi,color:"white"}},track:{height:4,opacity:.5},rail:{height:2,opacity:.5,backgroundColor:vi},mark:{backgroundColor:"transparent"},markActive:{backgroundColor:"transparent"},markLabel:{top:20,fontSize:"0.6rem",color:vi},markLabelActive:{top:20,fontSize:"0.6rem",color:vi}})(NB),De=vs({direction:"rtl"}),ve=wt.createElement(Oe,{valueLabelDisplay:"on",min:1,max:k.length,step:1,disabled:z,defaultValue:h+1,onChangeCommitted:(ut,Ut)=>{Ut-1!=h&&(m(Ut-1),Qe.current&&Qe.current(Ut-1))},valueLabelFormat:(ut,Ut)=>k[ut-1],marks:[{value:k.length,label:k.length.toString()}]});return wt.createElement("div",{className:"reactRoot"},U&&wt.createElement(wt.Fragment,null,wt.createElement("div",{className:"bigButtonOverlay"},wt.createElement(Yl,{theme:zt},wt.createElement(Aa,{color:"secondary",onClick:()=>{_(!1),f(!1)}},wt.createElement(tg,{titleAccess:tn,preserveAspectRatio:"xMidYMid meet"})))),wt.createElement("div",{className:"behindBigButtonOverlay"})),wt.createElement(eD,{getBackButtonState:()=>{var ut;return(ut=nt.current)!=null&&ut.CanGoBack()?Go.showArrow:Ca?window===window.top?Go.showArrow:Go.showEllipsis:Go.showNothing},visible:s,paused:j,pausedChanged:ut=>f(ut),playLabel:tn,preferredLanguages:dt,backClicked:()=>{var ut;(ut=nt.current)!=null&&ut.HandleBackButtonClickedIfHavePlayerHistory()||qT()},showPlayPause:o||v||st,bookLanguages:Vt,activeLanguageCode:Se,onLanguageChanged:Rt,canShowFullScreen:!t.hideFullScreenButton,extraButtons:t.extraButtons,bookHasImageDescriptions:Ue,readImageDescriptions:be,onReadImageDescriptionToggled:()=>me(!be),nowReadingImageDescription:Ce,videoPreviewMode:t.videoPreviewMode}),wt.createElement(sI,{getBookInstanceId:()=>{var ut;return((ut=nt.current)==null?void 0:ut.getBookInstanceId())??""}}),wt.createElement(Te,{ref:nt,url:t.url,landscape:X,paused:j,preferredUiLanguages:dt,pageStylesAreNowInstalled:()=>{lt(!0)},locationOfDistFolder:t.locationOfDistFolder,reportBookProperties:ut=>{const Ut={landscape:ut.landscape,canRotate:ut.canRotate};OT(Ut),ot([F].concat(ut.preferredLanguages)),w(ut.pageNumbers),E(ut.isRtl),ut.internalUrl!=Yd&&(Yd&&I(),Yd=ut.internalUrl)},controlsCallback:Ie,setForcedPausedCallback:ut=>{ut?(f(ut),_(!0)):_(!1)},reportPageProperties:ut=>{tt(ut.hasAudio),Q(ut.hasMusic),ft(ut.hasVideo)},onContentClick:ut=>{t.allowToggleAppBar&&(l(!s),window.setTimeout(I,300+50))},activeLanguageCode:Se,useOriginalPageSize:t.useOriginalPageSize,hideSwiperButtons:t.hideSwiperButtons,autoplay:e,skipActivities:t.skipActivities,outsideButtonPageClass:W,extraClassNames:i?"":"hidePlayer",shouldReadImageDescriptions:be,imageDescriptionCallback:Xt,pageChanged:ut=>{ut!=h&&m(ut)},hidingNavigationButtonsCallback:ut=>{ut!=z&&A(ut)},shouldReportSoundLog:t.shouldReportSoundLog,startPageIndex:t.startPage,autoplayCount:t.autoplayCount}),s&&!t.videoPreviewMode&&wt.createElement("div",{id:"pageNumberControl",className:"MuiToolbar-gutters"},P?wt.createElement(Yl,{theme:De},ve):ve))};function rD(){const t=ma("extraButtons");if(!t)return[];const e=decodeURIComponent(t);try{return JSON.parse(e)}catch(n){return console.error("Failed to parse extra button info "+JSON.stringify(n)),WT("error decoding extraButtons param "+t+": "+n),[]}}function oD(){SC(parseFloat(ma("defaultDuration","3.0")));const t=ma("autoplay","motion"),e=ma("start-page"),n=nD(e),a=n?parseInt(n):void 0,i=ma("autoplay-count"),r=e?parseInt(i):void 0,s=_n("paused",!1);qi.render(wt.createElement(Yl,{theme:e0},wt.createElement(iD,{url:ma("url"),allowToggleAppBar:_n("allowToggleAppBar",!1),showBackButton:_n("showBackButton",!1),initiallyShowAppBar:_n("initiallyShowAppBar",!0),centerVertically:_n("centerVertically",!0),initialLanguageCode:ma("lang"),videoSettings:ma("videoSettings"),paused:s,locationOfDistFolder:"",useOriginalPageSize:_n("useOriginalPageSize",!1),hideFullScreenButton:_n("hideFullScreenButton",!1),autoplay:t,skipActivities:_n("skipActivities",!1),videoPreviewMode:_n("videoPreviewMode",!1),hideSwiperButtons:_n("hideNavButtons",!1),extraButtons:rD(),shouldReportSoundLog:_n("reportSoundLog",!1),startPage:a,autoplayCount:r,roundPageWidthToNearestK:rm("roundPageWidthToNearestK"),roundMarginToNearestK:rm("roundMarginToNearestK")})),document.getElementById("root"))}let Yd="";oD();
|
|
8060
|
-
//# sourceMappingURL=bloomPlayer.
|
|
8060
|
+
//# sourceMappingURL=bloomPlayer.RGLLtVS6.js.map
|