PageSourceSearch

https://prepr.io/_next/static/immutable/chunks/41fc46mbyhaas.js

js prepr.io collected 2026-09-26 00:16:41 UTC 416,308 bytes, 276 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,584446,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0})},222792,(e,t,i)=>{"use strict";let r;Object.defineProperty(i,"__esModule",{value:!0}),i.parseCookie=u,i.parse=u,i.stringifyCookie=function(e,t){let i=t?.encode||encodeURIComponent,r=[];for(let t of Object.keys(e)){let a=e[t];if(void 0===a)continue;if(!n.test(t))throw TypeError(`cookie name is invalid: ${t}`);let o=i(a);if(!s.test(o))throw TypeError(`cookie val is invalid: ${a}`);r.push(`${t}=${o}`)}return r.join("; ")},i.stringifySetCookie=h,i.serialize=h,i.parseSetCookie=function(e,t){let i=t?.decode||g,r=e.length,n=p(e,0,r),s=m(e,0,n),a=-1===s?{name:"",value:i(f(e,0,n))}:{name:f(e,0,s),value:i(f(e,s+1,n))},o=n+1;for(;o<r;){let t=p(e,o,r),i=m(e,o,t),n=-1===i?f(e,o,t):f(e,o,i),s=-1===i?void 0:f(e,i+1,t);switch(n.toLowerCase()){case"httponly":a.httpOnly=!0;break;case"secure":a.secure=!0;break;case"partitioned":a.partitioned=!0;break;case"domain":a.domain=s;break;case"path":a.path=s;break;case"max-age":s&&l.test(s)&&(a.maxAge=Number(s));break;case"expires":if(!s)break;let c=new Date(s);Number.isFinite(c.valueOf())&&(a.expires=c);break;case"priority":if(!s)break;let d=s.toLowerCase();("low"===d||"medium"===d||"high"===d)&&(a.priority=d);break;case"samesite":if(!s)break;let u=s.toLowerCase();("lax"===u||"strict"===u||"none"===u)&&(a.sameSite=u)}o=t+1}return a},i.stringifySetCookie=h,i.serialize=h;let n=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,s=/^[\u0021-\u003A\u003C-\u007E]*$/,a=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,o=/^[\u0020-\u003A\u003D-\u007E]*$/,l=/^-?\d+$/,c=Object.prototype.toString,d=((r=function(){}).prototype=Object.create(null),r);function u(e,t){let i=new d,r=e.length;if(r<2)return i;let n=t?.decode||g,s=0;do{let t=m(e,s,r);if(-1===t)break;let a=p(e,s,r);if(t>a){s=e.lastIndexOf(";",t-1)+1;continue}let o=f(e,s,t);void 0===i[o]&&(i[o]=n(f(e,t+1,a))),s=a+1}while(s<r)return i}function h(e,t,i){let r="object"==typeof e?e:{...i,name:e,value:String(t)},l=("object"==typeof t?t:i)?.encode||encodeURIComponent;if(!n.test(r.name))throw TypeError(`argument name is invalid: ${r.name}`);let d=r.value?l(r.value):"";if(!s.test(d))throw TypeError(`argument val is invalid: ${r.value}`);let u=r.name+"="+d;if(void 0!==r.maxAge){if(!Number.isInteger(r.maxAge))throw TypeError(`option maxAge is invalid: ${r.maxAge}`);u+="; Max-Age="+r.maxAge}if(r.domain){if(!a.test(r.domain))throw TypeError(`option domain is invalid: ${r.domain}`);u+="; Domain="+r.domain}if(r.path){if(!o.test(r.path))throw TypeError(`option path is invalid: ${r.path}`);u+="; Path="+r.path}if(r.expires){var h;if(h=r.expires,"[object Date]"!==c.call(h)||!Number.isFinite(r.expires.valueOf()))throw TypeError(`option expires is invali
1d: ${r.expires}`);u+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(u+="; HttpOnly"),r.secure&&(u+="; Secure"),r.partitioned&&(u+="; Partitioned"),r.priority)switch("string"==typeof r.priority?r.priority.toLowerCase():void 0){case"low":u+="; Priority=Low";break;case"medium":u+="; Priority=Medium";break;case"high":u+="; Priority=High";break;default:throw TypeError(`option priority is invalid: ${r.priority}`)}if(r.sameSite)switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:case"strict":u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"none":u+="; SameSite=None";break;default:throw TypeError(`option sameSite is invalid: ${r.sameSite}`)}return u}function p(e,t,i){let r=e.indexOf(";",t);return -1===r?i:r}function m(e,t,i){let r=e.indexOf("=",t);return r<i?r:-1}function f(e,t,i){let r=t,n=i;do{let t=e.charCodeAt(r);if(32!==t&&9!==t)break}while(++r<n)for(;n>r;){let t=e.charCodeAt(n-1);if(32!==t&&9!==t)break;n--}return e.slice(r,n)}function g(e){if(-1===e.indexOf("%"))return e;try{return decodeURIComponent(e)}catch(t){return e}}},245337,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getRenderPhase=i.isClientSide=i.decode=i.stringify=void 0,i.stringify=function(e){try{if("string"==typeof e)return e;return JSON.stringify(e)}catch(t){return e}},i.decode=function(e){return e?e.replace(/(%[0-9A-Z]{2}
1)+/g,decodeURIComponent):e},i.isClientSide=function(e){return!(null==e?void 0:e.req)&&!(null==e?void 0:e.res)&&!(e&&"cookies"in e&&(null==e?void 0:e.cookies))},i.getRenderPhase=function(){return"u"<typeof window?"server":"client"}},871376,(e,t,i)=>{"use strict";var r=e.e&&e.e.__assign||function(){return(r=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};Object.defineProperty(i,"__esModule",{value:!0}),i.revalidateCookies=i.hasCookie=i.deleteCookie=i.setCookie=i.getCookie=i.getCookies=void 0;var n=e.r(222792),s=e.r(245337),a=function(e){if(!(0,s.isClientSide)(e))throw Error("You are trying to access cookies on the server side. Please, use the server-side import with `cookies-next/server` instead.")},o=function(e){if(a(e),"server"!==(0,s.getRenderPhase)()){for(var t={},i=document.cookie?document.cookie.split("; "):[],r=0,n=i.length;r<n;r++){var o=i[r].split("="),l=o.slice(1).join("=");t[o[0]]=l}return t}};i.getCookies=o,i.getCookie=function(e,t){a(t);var i=o(t),r=null==i?void 0:i[e];if(void 0!==r)return(0,s.decode)(r)};var l=function(e,t,i){if(a(i),"server"!==(0,s.getRenderPhase)()){var o=(0,n.serialize)(e,(0,s.stringify)(t),r({path:"/"},i||{}));document.cookie=o}};i.setCookie=l,i.deleteCookie=function(e,t){a(t),l(e,"",r(r({},t),{maxAge:-1}))},i.hasCookie=function(e,t){if(a(t),!e)return!1;var i=o(t);return!!i&&Object.prototype.hasOwnProperty.call(i,e)},i.revalidateCookies=function(e,t){if(a(),"server"!==(0,s.getRenderPhase)()){var i=o();Object.keys(r(r({},i),t)).some(function(e){return(null==i?void 0:i[e])!==(null==t?void 0:t[e])})&&(e(i),t=i)}}},472396,(e,t,i)=>{"use strict";var r=e.e&&e.e.__assign||function(){return(r=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},n=e.e&&e.e.__createBinding||(Object.create?function(e,t,i,r){void 0===r&&(r=i);var n=Object.getOwnPropertyDescriptor(t,i);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,r,n)}:function(e,t,i,r){void 0===r&&(r=i),e[r]=t[i]}),s=e.e&&e.e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=e.e&&e.e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return s(t,e),t};Object.defineProperty(i,"__esModule",{value:!0}),i.CookieProvider=i.CookieContext=void 0;var o=a(e.r(838406)),l=e.r(284395),c=e.r(245337);i.CookieContext=(0,o.createContext)(null),i.CookieProvider=function(e){var t=e.children,n=e.pollingOptions,s=(0,o.useState)({}),a=s[0],d=s[1];(0,o.useEffect)(function(){var e=(0,l.getCookies)();e&&d(e)},[]),(0,l.useCookiesPolling)(function(e){e&&d(e)},n);var u=(0,o.useMemo)(function(){return{cookies:a,set:function(e,t){d(function(i){var n;return r(r({},i),((n={})[e]=encodeURIComponent((0,c.stringify)(t)),n))})},get:function(e){return null==a?void 0:a[e]},getAll:function(){return a},has:function(e){return a.hasOwnProperty(e)},delete:function(e){a.hasOwnProperty(e)&&d(function(t){var i=r({},t);return delete i[e],i})},revalidateCookiesState:function(){(0,l.revalidateCookies)(function(e){e&&d(e)},a)}}},[a]);return o.default.createElement(i.CookieContext.Provider,{value:u},t)}},907220,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.useRevalidateCookiesState=i.useReactiveHasCookie=i.useReactiveDeleteCookie=i.useReactiveSetCookie=i.useReactiveGetCookie=i.useReactiveGetCookies=i.useReactiveCookiesNext=i.useCookiesNext=i.useHasCookie=i.useDeleteCookie=i.useSetCookie=i.useGetCookie=i.useGetCookies=i.useCookiesPolling=void 0;var r=e.r(472396),n=e.r(838406),s=e.r(871376),a=function(e){var t=(0,n.useState)(!1),i=t[0],r=t[1];return(0,n.useEffect)(function(){r(!0)},[]),i?e:function(){}},o=function(){var e=(0,n.useContext)(r.CookieContext);
1if(!e)throw Error("useCookieContext must be used within a CookieProvider");return e};i.useCookiesPolling=function(e,t){var i=t||{},r=i.intervalMs,a=void 0===r?1e3:r,o=i.enabled,l=void 0!==o&&o;(0,n.useEffect)(function(){if(l){var t=(0,s.getCookies)(),i=setInterval(function(){(0,s.revalidateCookies)(e,t)},a);return function(){return clearInterval(i)}}},[e,a])};var l=function(){return a(s.getCookies)};i.useGetCookies=l;var c=function(){return a(s.getCookie)};i.useGetCookie=c;var d=function(){return a(s.hasCookie)};i.useHasCookie=d;var u=function(){return a(s.setCookie)};i.useSetCookie=u;var h=function(){return a(s.deleteCookie)};i.useDeleteCookie=h,i.useCookiesNext=function(){return{getCookies:l(),getCookie:c(),hasCookie:d(),setCookie:u(),deleteCookie:h()}};var p=function(){var e=o();return function(){return null==e?void 0:e.getAll()}};i.useReactiveGetCookies=p;var m=function(){var e=o();return function(t){return null==e?void 0:e.get(t)}};i.useReactiveGetCookie=m;var f=function(){var e=o();return function(t,i,r){return null==e||e.set(t,i),(0,s.setCookie)(t,i,r)}};i.useReactiveSetCookie=f;var g=function(){var e=o();return function(t,i){return null==e||e.delete(t),(0,s.deleteCookie)(t,i)}};i.useReactiveDeleteCookie=g;var v=function(){var e=o();return function(t){return null==e?void 0:e.has(t)}};i.useReactiveHasCookie=v;var y=function(){var e=o();return function(){null==e||e.revalidateCookiesState()}};i.useRevalidateCookiesState=y,i.useReactiveCookiesNext=function(){return{getCookies:p(),getCookie:m(),hasCookie:v(),setCookie:f(),deleteCookie:g(),revalidateCookiesState:y()}}},284395,(e,t,i)=>{"use strict";var r=e.e&&e.e.__createBinding||(Object.create?function(e,t,i,r){void 0===r&&(r=i);var n=Object.getOwnPropertyDescriptor(t,i);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,r,n)}:function(e,t,i,r){void 0===r&&(r=i),e[r]=t[i]}),n=e.e&&e.e.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||r(t,e,i)};Object.defineProperty(i,"__esModule",{value:!0}),i.CookiesNextProvider=void 0,n(e.r(584446),i),n(e.r(871376),i);var s=e.r(472396);Object.defineProperty(i,"CookiesNextProvider",{enumerable:!0,get:function(){return s.CookieProvider}}),n(e.r(907220),i)},926601,(e,t,i)=>{"use strict";var r=e.e&&e.e.__assign||function(){return(r=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},n=e.e&&e.e.__createBinding||(Object.create?function(e,t,i,r){void 0===r&&(r=i);var n=Object.getOwnPropertyDescriptor(t,i);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,r,n)}:function(e,t,i,r){void 0===r&&(r=i),e[r]=t[i]}),s=e.e&&e.e.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)},a=e.e&&e.e.__awaiter||function(e,t,i,r){return new(i||(i=Promise))(function(n,s){function a(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(a,o)}l((r=r.apply(e,t||[])).next())})},o=e.e&&e.e.__generator||function(e,t){var i,r,n,s,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(o){return function(l){var c=[o,l];if(i)throw TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(a=0)),a;)try{if(i=1,r&&(n=2&c[0]?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(n=(n=a.trys).length>0&&n[n.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!n||c[1]>n[0]&&c[1]<n[3])){a.label=c[1];break}if(6===c[0]&&a.label<n[1]){a.label=n[1],n=c;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(c);break}n[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e],r=0}finally{i=n=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}},l=e.e&&e.e.__rest||function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)0>t.indexOf(r[n])&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(i[r[n]]=e[r[n]]);return i};Object.defineProperty(i,"__esModule",{value:!0}),i.hasCookie=i.deleteCookie=i.setCookie=i.getCookie=i.getCookies=void 0;var c=e.r(222792),d=e.r(245337),u=function(e){if((0,d.isClientSide)(e))throw Error("You are trying to access cookies on the client side. Please, use the client-side import with `cookies-next/client` instead.")},h=function(e){return!!e&&"getAll"in e&&"set"in e&&"function"==typeof e.getAll&&"function"==typeof e.set}
1,p=function(e){return!!(null==e?void 0:e.req)&&"cookies"in e.req&&h(e.req.cookies)||!!(null==e?void 0:e.res)&&"cookies"in e.res&&h(e.res.cookies)||!!e&&"cookies"in e&&"function"==typeof e.cookies},m=function(e){var t={};return e.getAll().forEach(function(e){var i=e.name,r=e.value;t[i]=r}),t},f=function(e){return a(void 0,void 0,void 0,function(){var t,i;return o(this,function(r){switch(r.label){case 0:if(u(e),!p(e))return[3,2];if(e.req)return[2,m(e.req.cookies)];if(e.res)return[2,m(e.res.cookies)];if(!e.cookies)return[3,2];return t=m,[4,e.cookies()];case 1:return[2,t.apply(void 0,[r.sent()])];case 2:if((null==e?void 0:e.req)&&(i=e.req),null==i?void 0:i.cookies)return[2,i.cookies];if(null==i?void 0:i.headers.cookie)return[2,(0,c.parse)(i.headers.cookie)];return[2,{}]}})})};i.getCookies=f,i.getCookie=function(e,t){return a(void 0,void 0,void 0,function(){var i;return o(this,function(r){switch(r.label){case 0:return u(t),[4,f(t)];case 1:if(void 0===(i=r.sent()[e]))return[2,void 0];return[2,(0,d.decode)(i)]}})})};var g=function(e,t,i){return a(void 0,void 0,void 0,function(){var n,s,a,h,m,f,g,v,y,x,b,w,C,S,k;return o(this,function(o){switch(o.label){case 0:if(u(i),!p(i))return[3,3];if(n=i.req,s=i.res,a=i.cookies,h=l(i,["req","res","cookies"]),m=r({name:e,value:(0,d.stringify)(t)},h),n&&n.cookies.set(m),s&&s.cookies.set(m),!a)return[3,2];return[4,a()];case 1:o.sent().set(m),o.label=2;case 2:return[2];case 3:return f={},i&&(x=(y=i).req,b=y.res,w=l(y,["req","res"]),g=x,v=b,f=w),C=(0,c.serialize)(e,(0,d.stringify)(t),r({path:"/"},f)),v&&g&&(Array.isArray(S=v.getHeader("Set-Cookie"))||(S=S?[String(S)]:[]),v.setHeader("Set-Cookie",S.concat(C)),g&&g.cookies&&(k=g.cookies,""===t?delete k[e]:k[e]=(0,d.stringify)(t)),g&&g.headers&&g.headers.cookie&&(k=(0,c.parse)(g.headers.cookie),""===t?delete k[e]:k[e]=(0,d.stringify)(t),g.headers.cookie=Object.entries(k).reduce(function(e,t){return e.concat("".concat(t[0],"=").concat(t[1],";"))},""))),[2]}})})};i.setCookie=g,i.deleteCookie=function(e,t){return a(void 0,void 0,void 0,function(){return o(this,function(i){return u(t),[2,g(e,"",r(r({},t),{maxAge:-1}))]})})},i.hasCookie=function(e,t){return a(void 0,void 0,void 0,function(){return o(this,function(i){switch(i.label){case 0:if(u(t),!e)return[2,!1];return[4,f(t)];case 1:return[2,i.sent().hasOwnProperty(e)]}})})},s(e.r(584446),i)},314704,(e,t,i)=>{"use strict";var r=e.e&&e.e.__createBinding||(Object.create?function(e,t,i,r){void 0===r&&(r=i);var n=Object.getOwnPropertyDescriptor(t,i);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,r,n)}:function(e,t,i,r){void 0===r&&(r=i),e[r]=t[i]}),n=e.e&&e.e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=e.e&&e.e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t},a=e.e&&e.e.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||r(t,e,i)};Object.defineProperty(i,"__esModule",{value:!0}),i.CookiesNextProvider=i.useReactiveCookiesNext=i.useReactiveHasCookie=i.useReactiveDeleteCookie=i.useReactiveSetCookie=i.useReactiveGetCookie=i.useReactiveGetCookies=i.useCookiesNext=i.useDeleteCookie=i.useGetCookie=i.useSetCookie=i.useHasCookie=i.useGetCookies=i.hasCookie=i.deleteCookie=i.setCookie=i.getCookie=i.getCookies=void 0;var o=s(e.r(284395)),l=s(e.r(926601));a(e.r(584446),i);var c=e.r(245337);i.getCookies=function(e){return(0,c.isClientSide)(e)?o.getCookies(e):l.getCookies(e)},i.getCookie=function(e,t){return(0,c.isClientSide)(t)?o.getCookie(e,t):l.getCookie(e,t)},i.setCookie=function(e,t,i){return(0,c.isClientSide)(i)?o.setCookie(e,t,i):l.setCookie(e,t,i)},i.deleteCookie=function(e,t){return(0,c.isClientSide)(t)?o.deleteCookie(e,t):l.deleteCookie(e,t)},i.hasCookie=function(e,t){return(0,c.isClientSide)(t)?o.hasCookie(e,t):l.hasCookie(e,t)};var d=e.r(284395);Object.defineProperty(i,"useGetCookies",{enumerable:!0,get:function(){return d.useGetCookies}}),Object.defineProperty(i,"useHasCookie",{enumerable:!0,get:function(){return d.useHasCookie}}),Object.defineProperty(i,"useSetCookie",{enumerable:!0,get:function(){return d.useSetCookie}}),Object.defineProperty(i,"useGetCookie",{enumerable:!0,get:function(){return d.useGetCookie}}),Object.defineProperty(i,"useDeleteCookie",{enumerable:!0,get:function(){return d.useDeleteCookie}}),Object.defineProperty(i,"useCookiesNext",{enumerable:!0,get:function(){return d.useCookiesNext}}),Object.defineProperty(i,"useReactiveGetCookies",{enumerable:!0,get:function(){return d.useReactiveGetCookies}}),Object.defineProperty(i,"useReactiveGetCookie",{enumerable:!0,get:function(){return d.useReactiveGetCookie}}
1),Object.defineProperty(i,"useReactiveSetCookie",{enumerable:!0,get:function(){return d.useReactiveSetCookie}}),Object.defineProperty(i,"useReactiveDeleteCookie",{enumerable:!0,get:function(){return d.useReactiveDeleteCookie}}),Object.defineProperty(i,"useReactiveHasCookie",{enumerable:!0,get:function(){return d.useReactiveHasCookie}}),Object.defineProperty(i,"useReactiveCookiesNext",{enumerable:!0,get:function(){return d.useReactiveCookiesNext}}),Object.defineProperty(i,"CookiesNextProvider",{enumerable:!0,get:function(){return d.CookiesNextProvider}})},661823,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r={bindSnapshot:function(){return c},createAsyncLocalStorage:function(){return l},createSnapshot:function(){return d}};for(var n in r)Object.defineProperty(i,n,{enumerable:!0,get:r[n]});let s=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class a{disable(){throw s}getStore(){}run(){throw s}exit(){throw s}enterWith(){throw s}static bind(e){return e}}let o="u">typeof globalThis&&globalThis.AsyncLocalStorage;function l(){return o?new o:new a}function c(e){return o?o.bind(e):a.bind(e)}function d(){return o?o.snapshot():function(e,...t){return e(...t)}}},942159,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"workAsyncStorageInstance",{enumerable:!0,get:function(){return r}});let r=(0,e.r(661823).createAsyncLocalStorage)()},914488,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"workAsyncStorage",{enumerable:!0,get:function(){return r.workAsyncStorageInstance}});let r=e.r(942159)},329548,(e,t,i)=>{"use strict";function r(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"encodeURIPath",{enumerable:!0,get:function(){return r}})},62241,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"BailoutToCSR",{enumerable:!0,get:function(){return n}});let r=e.r(175607);function n({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new r.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},652351,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"PreloadChunks",{enumerable:!0,get:function(){return l}});let r=e.r(250465),n=e.r(602821),s=e.r(914488),a=e.r(329548),o=e.r(258339);function l({moduleIds:e}){if("u">typeof window)return null;let t=s.workAsyncStorage.getStore();if(void 0===t)return null;let i=[];if(t.reactLoadableManifest&&e){let r=t.reactLoadableManifest;for(let t of e){if(!r[t])continue;let e=r[t].files;i.push(...e)}}if(0===i.length)return null;let c=(0,o.getAssetTokenQuery)();return(0,r.jsx)(r.Fragment,{children:i.map(e=>{let i=`${t.assetPrefix}/_next/${(0,a.encodeURIPath)(e)}${c}`;return e.endsWith(".css")?(0,r.jsx)("link",{precedence:"dynamic",href:i,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,n.preload)(i,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},33214,(e,t,i)=>{self,t.exports=(()=>{var e={594(e,t){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){void 0===e&&(e="="),this._paddingCharacter=e}return e.prototype.encodedLength=function(e){return this._paddingCharacter?(e+2)/3*4|0:(8*e+5)/6|0},e.prototype.encode=function(e){for(var t="",i=0;i<e.length-2;i+=3){var r=e[i]<<16|e[i+1]<<8|e[i+2];t+=this._encodeByte(r>>>18&63),t+=this._encodeByte(r>>>12&63),t+=this._encodeByte(r>>>6&63),t+=this._encodeByte(r>>>0&63)}var n=e.length-i;if(n>0){var r=e[i]<<16|(2===n?e[i+1]<<8:0);t+=this._encodeByte(r>>>18&63),t+=this._encodeByte(r>>>12&63),2===n?t+=this._encodeByte(r>>>6&63):t+=this._paddingCharacter||"",t+=this._paddingCharacter||""}return t},e.prototype.maxDecodedLength=function(e){return this._paddingCharacter?e/4*3|0:(6*e+7)/8|0},e.prototype.decodedLength=function(e){return this.maxDecodedLength(e.length-this._getPaddingLength(e))},e.prototype.decode=function(e){if(0===e.length)return new Uint8Array(0);for(var t=this._getPaddingLength(e),i=e.length-t,r=new Uint8Array(this.maxDecodedLength(i)),n=0,s=0,a=0,o=0,l=0,c=0,d=0;s<i-4;s+=4)o=this._decodeChar(e.charCodeAt(s+0)),l=this._decodeChar(e.charCodeAt(s+1)),c=this._decodeChar(e.charCodeAt(s+2)),d=this._decodeChar(e.charCodeAt(s+3)),r[n++]=o<<2|l>>>4,r[n++]=l<<4|c>>>2,r[n++]=c<<6|d,a|=256&o,a|=256&l,a|=256&c,a|=256&d;if(s<i-1&&(o=this._decodeChar(e.charCodeAt(s)),l=this._decodeChar(e.charCodeAt(s+1)),r[n++]=o<<2|l>>>4,a|=256&o,a|=256&l),s<i-2&&(c=this._decodeChar(e.charCodeAt(s+2)),r[n++]=l<<4|c>>>2,a|=256&c),s<i-3&&(d=this._decodeChar(e.charCodeAt(s+3)),r[n++]=c<<6|d,a|=256&d),0!==a)throw Error("Base64Coder: incorrect characters for decoding");return r},e.prototype._encodeByte=function(e){var t=e;return t+=65,t+=25-e>>>8&6,t+=51-e>>>8&-75,t+=61-e>>>8&-15,String.fromCharCode(t+=62-e>>>8&3)},e.prototype._decodeChar=function(e){return 256+((42-e&e-44)>>>8&-256+e-43+62)+((46-e&e-48)>>>8&-256+e-47+63)+((47-e&e-58)>>>8&-256+e-48+52)+((64-e&e-91)>>>8&-256+e-65+0)+((96-e&e-123)>>>8&-256+e-97+26)},e.prototype._getPaddingLength=function(e){var t=0;if(this._paddingCharacter){for(var i=e.length-1;i>=0&&e[i]===this._paddingCharacter;i--)t++;if(e.length<4||t>2)throw Error("Base64Coder: incorrect padding")}return t},e}();t.Coder=n;var s=new n;t.encode=function(e){return s.encode(e)},t.decode=function(e){return s.decode(e)};var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype._encodeByte=function(e){var t=e;return t+=65,t+=25-e>>>8&6,t+=51-e>>>8&-75,t+=61-e>>>8&-13,String.fromCharCode(t+=62-e>>>8&49)},t.prototype._decodeChar=function(e){return 256+((44-e&e-46)>>>8&-256+e-45+62)+((94-e&e-96)>>>8&-256+e-95+63)+((47-e&e-58)>>>8&-256+e-48+52)+((64-e&e-91)>>>8&-256+e-65+0)+((96-e&e-123)>>>8&-256+e-97+26)},t}(n);t.URLSafeCoder=a;var o=new a;t.encodeURLSafe=function(e){return o.encode(e)},t.decodeURLSafe=function(e){return o.decode(e)},t.encodedLength=function(e){return s.encodedLength(e)},t.maxDecodedLength=function(e){return s.maxDecodedLength(e)},t.decodedLength=function(e){return s.decodedLength(e)}},978(e,t){"use strict";var i="utf8: invalid source encoding";t.D4=function(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(128&n){var s=void 0;if(n<224){if(r>=e.length)throw Error(i);var a=e[++r];
1if((192&a)!=128)throw Error(i);n=(31&n)<<6|63&a,s=128}else if(n<240){if(r>=e.length-1)throw Error(i);var a=e[++r],o=e[++r];if((192&a)!=128||(192&o)!=128)throw Error(i);n=(15&n)<<12|(63&a)<<6|63&o,s=2048}else if(n<248){if(r>=e.length-2)throw Error(i);var a=e[++r],o=e[++r],l=e[++r];if((192&a)!=128||(192&o)!=128||(192&l)!=128)throw Error(i);n=(15&n)<<18|(63&a)<<12|(63&o)<<6|63&l,s=65536}else throw Error(i);if(n<s||n>=55296&&n<=57343)throw Error(i);if(n>=65536){if(n>1114111)throw Error(i);n-=65536,t.push(String.fromCharCode(55296|n>>10)),n=56320|1023&n}}t.push(String.fromCharCode(n))}return t.join("")}},721(e,t,i){e.exports=i(207).default},207(e,t,i){"use strict";i.d(t,{default:()=>to});class r{constructor(e,t){this.lastId=0,this.prefix=e,this.name=t}create(e){this.lastId++;var t=this.lastId,i=this.prefix+t,r=this.name+"["+t+"]",n=!1,s=function(){n||(e.apply(null,arguments),n=!0)};return this[t]=s,{number:t,id:i,name:r,callback:s}}remove(e){delete this[e.number]}}var n,s,a,o,l,c,d=new r("_pusher_script_","Pusher.ScriptReceivers");let u="8.5.0",h={endpoint:"/pusher/user-auth",transport:"ajax"},p={endpoint:"/pusher/auth",transport:"ajax"};var m=new r("_pusher_dependencies","Pusher.DependenciesReceivers"),f=new class{constructor(e){this.options=e,this.receivers=e.receivers||d,this.loading={}}load(e,t,i){var r=this;if(r.loading[e]&&r.loading[e].length>0)r.loading[e].push(i);else{r.loading[e]=[i];var n=e3.createScriptRequest(r.getPath(e,t)),s=r.receivers.create(function(t){if(r.receivers.remove(s),r.loading[e]){var i=r.loading[e];delete r.loading[e];for(var a=function(e){e||n.cleanup()},o=0;o<i.length;o++)i[o](t,a)}});n.send(s)}}getRoot(e){var t=e3.getDocument().location.protocol;return(e&&e.useTLS||"https:"===t?this.options.cdn_https:this.options.cdn_http).replace(/\/*$/,"")+"/"+this.options.version}getPath(e,t){return this.getRoot(t)+"/"+e+this.options.suffix+".js"}}({cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",version:u,suffix:"",receivers:m});let g={authenticationEndpoint:{path:"/docs/channels/server_api/authenticating_users"},authorizationEndpoint:{path:"/docs/channels/server_api/authorizing-users/"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"},encryptedChannelSupport:{fullUrl:"https://github.com/pusher/pusher-js/tree/cc491015371a4bde5743d1c87a0fbac0feb53195#encrypted-channel-support"}},v=function(e){let t,i=g[e];return i&&(i.fullUrl?t=i.fullUrl:i.path&&(t="https://pusher.com"+i.path),t)?`See: ${t}`:""};(n=o||(o={})).UserAuthentication="user-authentication",n.ChannelAuthorization="channel-authorization";class y extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class x extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class b extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class w extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class C extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class S extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class k extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class T extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class E extends Error{constructor(e,t){super(t),this.status=e,Object.setPrototypeOf(this,new.target.prototype)}}let P=function(e,t,i,r,n){let s=e3.createXHR();for(var a in s.open("POST",i.endpoint,!0),s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.headers)s.setRequestHeader(a,i.headers[a]);if(null!=i.headersProvider){let e=i.headersProvider();for(var a in e)s.setRequestHeader(a,e[a])}return s.onreadystatechange=function(){if(4===s.readyState)if(200===s.status){let e,t=!1;try{e=JSON.parse(s.responseText),t=!0}catch(e){n(new E(200,`JSON returned from ${r.toString()}
1 endpoint was invalid, yet status code was 200. Data was: ${s.responseText}`),null)}t&&n(null,e)}else{let e="";switch(r){case o.UserAuthentication:e=v("authenticationEndpoint");break;case o.ChannelAuthorization:e=`Clients must be authorized to join private or presence channels. ${v("authorizationEndpoint")}`}n(new E(s.status,`Unable to retrieve auth string from ${r.toString()} endpoint - received status: ${s.status} from ${i.endpoint}. ${e}`),null)}},s.send(t),s};for(var j=String.fromCharCode,_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",M={},A=0,N=_.length;A<N;A++)M[_.charAt(A)]=A;var L=function(e){var t=e.charCodeAt(0);return t<128?e:t<2048?j(192|t>>>6)+j(128|63&t):j(224|t>>>12&15)+j(128|t>>>6&63)+j(128|63&t)},O=function(e){var t=[0,2,1][e.length%3],i=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[_.charAt(i>>>18),_.charAt(i>>>12&63),t>=2?"=":_.charAt(i>>>6&63),t>=1?"=":_.charAt(63&i)].join("")},D=window.btoa||function(e){return e.replace(/[\s\S]{1,3}/g,O)};let R=class{constructor(e,t,i,r){this.clear=t,this.timer=e(()=>{this.timer&&(this.timer=r(this.timer))},i)}isRunning(){return null!==this.timer}ensureAborted(){this.timer&&(this.clear(this.timer),this.timer=null)}};function I(e){window.clearTimeout(e)}function F(e){window.clearInterval(e)}class z extends R{constructor(e,t){super(setTimeout,I,e,function(e){return t(),null})}}class B extends R{constructor(e,t){super(setInterval,F,e,function(e){return t(),e})}}let V={now:()=>Date.now?Date.now():new Date().valueOf(),defer:e=>new z(0,e),method(e){var t=Array.prototype.slice.call(arguments,1);return function(i){return i[e].apply(i,t.concat(arguments))}}};function $(e,...t){for(var i=0;i<t.length;i++){var r=t[i];for(var n in r)r[n]&&r[n].constructor&&r[n].constructor===Object?e[n]=$(e[n]||{},r[n]):e[n]=r[n]}return e}function H(){for(var e=["Pusher"],t=0;t<arguments.length;t++)"string"==typeof arguments[t]?e.push(arguments[t]):e.push(J(arguments[t]));return e.join(" : ")}function U(e,t){var i=Array.prototype.indexOf;if(null===e)return -1;if(i&&e.indexOf===i)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}function G(e,t){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t(e[i],i,e)}function q(e){var t=[];return G(e,function(e,i){t.push(i)}),t}function W(e,t,i){for(var r=0;r<e.length;r++)t.call(i||window,e[r],r,e)}function X(e,t){for(var i=[],r=0;r<e.length;r++)i.push(t(e[r],r,e,i));return i}function Y(e,t){t=t||function(e){return!!e};for(var i=[],r=0;r<e.length;r++)t(e[r],r,e,i)&&i.push(e[r]);return i}function K(e,t){var i={};return G(e,function(r,n){(t&&t(r,n,e,i)||r)&&(i[n]=r)}),i}function Z(e,t){for(var i=0;i<e.length;i++)if(t(e[i],i,e))return!0;return!1}function J(e){try{return JSON.stringify(e)}catch(r){var t,i;return JSON.stringify((t=[],i=[],function e(r,n){var s,a,o;switch(typeof r){case"object":if(!r)return null;for(s=0;s<t.length;s+=1)if(t[s]===r)return{$ref:i[s]};if(t.push(r),i.push(n),"[object Array]"===Object.prototype.toString.apply(r))for(s=0,o=[];s<r.length;s+=1)o[s]=e(r[s],n+"["+s+"]");else for(a in o={},r)Object.prototype.hasOwnProperty.call(r,a)&&(o[a]=e(r[a],n+"["+JSON.stringify(a)+"]"));return o;case"number":case"string":case"boolean":return r}}(e,"$")))}}let Q=new class{constructor(){this.globalLog=e=>{window.console&&window.console.log&&window.console.log(e)}}debug(...e){this.log(this.globalLog,e)}warn(...e){this.log(this.globalLogWarn,e)}error(...e){this.log(this.globalLogError,e)}globalLogWarn(e){window.console&&window.console.warn?window.console.warn(e):this.globalLog(e)}globalLogError(e){window.console&&window.console.error?window.console.error(e):this.globalLogWarn(e)}log(e){var t=H.apply(this,arguments);to.log?to.log(t):to.logToConsole&&e.bind(this)(t)}},ee=function(e,t,i,r,n){(void 0!==i.headers||null!=i.headersProvider)&&Q.warn(`To send headers with the ${r.toString()} request, you must use AJAX, rather than JSONP.`);var s=e.nextAuthCallbackID.toString();e.nextAuthCallbackID++;var a=e.getDocument(),o=a.createElement("script");e.auth_callbacks[s]=function(e){n(null,e)},o.src=i.endpoint+"?callback="+encodeURIComponent("Pusher.auth_callbacks['"+s+"']")+"&"+t;var l=a.getElementsByTagName("head")[0]||a.documentElement;l.insertBefore(o,l.firstChild)};class et{constructor(e){this.src=e}send(e){var t=this,i="Error loading "+t.src;t.script=document.createElement("script"),t.script.id=e.id,t.script.src=t.src,t.script.type="text/javascript",t.script.charset="UTF-8",t.script.addEventListener?(t.script.onerror=function(){e.callback(i)},t.script.onload=function(){e.callback(null)}):t.script.onreadystatechange=function(){("loaded"===t.script.readyState||"complete"===t.script.readyState)&&e.callback(null)},void 0===t.script.async&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(t.errorScript=document.createElement("script"),t.errorScript.id=e.id+"_error",t.errorScript.text=e.name+"('"+i+"');",t.script.async=t.errorScript.async=!1):t.script.async=!0;var r=document.getElementsByTagName("head")[0];r.insertBefore(t.script,r.firstChild),t.errorScript&&r.insertBefore(t.errorScript,t.script.nextSibling)}cleanup(){this.script&&(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&&this.script.parentNode&&this.script.parentNode.removeChild(this.script),this.errorScript&&this.errorScript.parentNode&&this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null}}class ei{constructor(e,t){this.url=e,this.data=t}send(e){if(!this.request){var t,i,r,n,s=X((t=K(this.data,function(e){return void 0!==e}),i=function(e){return"object"==typeof e&&(e=J(e)),encodeURIComponent(D(e.toString().replace(/[^\x00-\x7F]/g,L)))},r={},G(t,function(e,t){r[t]=i(e)}),n=[],G(r,function(e,t){n.push([t,e])}),n),V.method("join","=")).join("&"),a=this.url+"/"+e.number+"?"+s;this.request=e3.createScriptRequest(a),this.request.send(e)}}cleanup(){this.request&&this.request.cleanup()}}function er(e,t,i){return e+(t.useTLS?"s":"")+"://"+(t.useTLS?t.hostTLS:t.hostNonTLS)+i}
1function en(e,t){return"/app/"+e+"?protocol=7&client=js&version="+u+(t?"&"+t:"")}class es{constructor(){this._callbacks={}}get(e){return this._callbacks["_"+e]}add(e,t,i){var r="_"+e;this._callbacks[r]=this._callbacks[r]||[],this._callbacks[r].push({fn:t,context:i})}remove(e,t,i){if(!e&&!t&&!i){this._callbacks={};return}var r=e?["_"+e]:q(this._callbacks);t||i?this.removeCallback(r,t,i):this.removeAllCallbacks(r)}removeCallback(e,t,i){W(e,function(e){this._callbacks[e]=Y(this._callbacks[e]||[],function(e){return t&&t!==e.fn||i&&i!==e.context}),0===this._callbacks[e].length&&delete this._callbacks[e]},this)}removeAllCallbacks(e){W(e,function(e){delete this._callbacks[e]},this)}}class ea{constructor(e){this.callbacks=new es,this.global_callbacks=[],this.failThrough=e}bind(e,t,i){return this.callbacks.add(e,t,i),this}bind_global(e){return this.global_callbacks.push(e),this}unbind(e,t,i){return this.callbacks.remove(e,t,i),this}unbind_global(e){return e?this.global_callbacks=Y(this.global_callbacks||[],t=>t!==e):this.global_callbacks=[],this}unbind_all(){return this.unbind(),this.unbind_global(),this}emit(e,t,i){for(var r=0;r<this.global_callbacks.length;r++)this.global_callbacks[r](e,t);var n=this.callbacks.get(e),s=[];if(i?s.push(t,i):t&&s.push(t),n&&n.length>0)for(var r=0;r<n.length;r++)n[r].fn.apply(n[r].context||window,s);else this.failThrough&&this.failThrough(e,t);return this}}class eo extends ea{constructor(e,t,i,r,n){super(),this.initialize=e3.transportConnectionInitializer,this.hooks=e,this.name=t,this.priority=i,this.key=r,this.options=n,this.state="new",this.timeline=n.timeline,this.activityTimeout=n.activityTimeout,this.id=this.timeline.generateUniqueID()}handlesActivityChecks(){return!!this.hooks.handlesActivityChecks}supportsPing(){return!!this.hooks.supportsPing}connect(){if(this.socket||"initialized"!==this.state)return!1;var e=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(e,this.options)}catch(e){return V.defer(()=>{this.onError(e),this.changeState("closed")}),!1}return this.bindListeners(),Q.debug("Connecting",{transport:this.name,url:e}),this.changeState("connecting"),!0}close(){return!!this.socket&&(this.socket.close(),!0)}send(e){return"open"===this.state&&(V.defer(()=>{this.socket&&this.socket.send(e)}),!0)}ping(){"open"===this.state&&this.supportsPing()&&this.socket.ping()}onOpen(){this.hooks.beforeOpen&&this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0}onError(e){this.emit("error",{type:"WebSocketError",error:e}),this.timeline.error(this.buildTimelineMessage({error:e.toString()}))}onClose(e){e?this.changeState("closed",{code:e.code,reason:e.reason,wasClean:e.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0}onMessage(e){this.emit("message",e)}onActivity(){this.emit("activity")}bindListeners(){this.socket.onopen=()=>{this.onOpen()},this.socket.onerror=e=>{this.onError(e)},this.socket.onclose=e=>{this.onClose(e)},this.socket.onmessage=e=>{this.onMessage(e)},this.supportsPing()&&(this.socket.onactivity=()=>{this.onActivity()})}unbindListeners(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))}changeState(e,t){this.state=e,this.timeline.info(this.buildTimelineMessage({state:e,params:t})),this.emit(e,t)}buildTimelineMessage(e){return $({cid:this.id},e)}}
1class el{constructor(e){this.hooks=e}isSupported(e){return this.hooks.isSupported(e)}createConnection(e,t,i,r){return new eo(this.hooks,e,t,i,r)}}var ec=new el({urls:{getInitial:function(e,t){var i=(t.httpPath||"")+en(e,"flash=false");return er("ws",t,i)}},handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return!!e3.getWebSocketAPI()},isSupported:function(){return!!e3.getWebSocketAPI()},getSocket:function(e){return e3.createWebSocket(e)}}),ed={urls:{getInitial:function(e,t){var i=(t.httpPath||"/pusher")+en(e);return er("http",t,i)}},handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},eu=$({getSocket:function(e){return e3.HTTPFactory.createStreamingSocket(e)}},ed),eh=$({getSocket:function(e){return e3.HTTPFactory.createPollingSocket(e)}},ed),ep={isSupported:function(){return e3.isXHRSupported()}};let em={ws:ec,xhr_streaming:new el($({},eu,ep)),xhr_polling:new el($({},eh,ep))};var ef=new el({file:"sockjs",urls:{getInitial:function(e,t){return er("http",t,t.httpPath||"/pusher")},getPath:function(e,t){return en(e)}},handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return void 0!==window.SockJS},getSocket:function(e,t){return new window.SockJS(e,null,{js_path:f.getPath("sockjs",{useTLS:t.useTLS}),ignore_null_origin:t.ignoreNullOrigin})},beforeOpen:function(e,t){e.send(JSON.stringify({path:t}))}}),eg={isSupported:function(e){return e3.isXDRSupported(e.useTLS)}},ev=new el($({},eu,eg)),ey=new el($({},eh,eg));em.xdr_streaming=ev,em.xdr_polling=ey,em.sockjs=ef;var ex=new class extends ea{constructor(){super();var e=this;void 0!==window.addEventListener&&(window.addEventListener("online",function(){e.emit("online")},!1),window.addEventListener("offline",function(){e.emit("offline")},!1))}isOnline(){return void 0===window.navigator.onLine||window.navigator.onLine}};class eb{constructor(e,t,i){this.manager=e,this.transport=t,this.minPingDelay=i.minPingDelay,this.maxPingDelay=i.maxPingDelay,this.pingDelay=void 0}createConnection(e,t,i,r){r=$({},r,{activityTimeout:this.pingDelay});var n=this.transport.createConnection(e,t,i,r),s=null,a=function(){n.unbind("open",a),n.bind("closed",o),s=V.now()},o=e=>{if(n.unbind("closed",o),1002===e.code||1003===e.code)this.manager.reportDeath();else if(!e.wasClean&&s){var t=V.now()-s;t<2*this.maxPingDelay&&(this.manager.reportDeath(),this.pingDelay=Math.max(t/2,this.minPingDelay))}};return n.bind("open",a),n}isSupported(e){return this.manager.isAlive()&&this.transport.isSupported(e)}}let ew={decodeMessage:function(e){try{var t=JSON.parse(e.data),i=t.data;if("string"==typeof i)try{i=JSON.parse(t.data)}catch(e){}var r={event:t.event,channel:t.channel,data:i};return t.user_id&&(r.user_id=t.user_id),r}catch(t){throw{type:"MessageParseError",error:t,data:e.data}}},encodeMessage:function(e){return JSON.stringify(e)},processHandshake:function(e){var t=ew.decodeMessage(e);if("pusher:connection_established"===t.event){if(!t.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:t.data.socket_id,activityTimeout:1e3*t.data.activity_timeout}}if("pusher:error"===t.event)return{action:this.getCloseAction(t.data),error:this.getCloseError(t.data)};throw"Invalid handshake"},getCloseAction:function(e){if(e.code<4e3)if(e.code>=1002&&e.code<=1004)return"backoff";else return null;return 4e3===e.code?"tls_only":e.code<4100?"refused":e.code<4200?"backoff":e.code<4300?"retry":"refused"},getCloseError:function(e){return 1e3!==e.code&&1001!==e.code?{type:"PusherError",data:{code:e.code,message:e.reason||e.message}}:null}};class eC extends ea{constructor(e,t){super(),this.id=e,this.transport=t,this.activityTimeout=t.activityTimeout,this.bindListeners()}handlesActivityChecks(){return this.transport.handlesActivityChecks()}send(e){return this.transport.send(e)}send_event(e,t,i){var r={event:e,data:t};return i&&(r.channel=i),Q.debug("Event sent",r),this.send(ew.encodeMessage(r))}ping(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})}close(){this.transport.close()}bindListeners(){var e={message:e=>{var t;try{t=ew.decodeMessage(e)}
vendor: 4,876 bytes, line 1
1catch(t){this.emit("error",{type:"MessageParseError",error:t,data:e.data})}if(void 0!==t){switch(Q.debug("Event recd",t),t.event){case"pusher:error":this.emit("error",{type:"PusherError",data:t.data});break;case"pusher:ping":this.emit("ping");break;case"pusher:pong":this.emit("pong")}this.emit("message",t)}},activity:()=>{this.emit("activity")},error:e=>{this.emit("error",e)},closed:e=>{t(),e&&e.code&&this.handleCloseEvent(e),this.transport=null,this.emit("closed")}},t=()=>{G(e,(e,t)=>{this.transport.unbind(t,e)})};G(e,(e,t)=>{this.transport.bind(t,e)})}handleCloseEvent(e){var t=ew.getCloseAction(e),i=ew.getCloseError(e);i&&this.emit("error",i),t&&this.emit(t,{action:t,error:i})}}class eS{constructor(e,t){this.transport=e,this.callback=t,this.bindListeners()}close(){this.unbindListeners(),this.transport.close()}bindListeners(){this.onMessage=e=>{var t;this.unbindListeners();try{t=ew.processHandshake(e)}catch(e){this.finish("error",{error:e}),this.transport.close();return}"connected"===t.action?this.finish("connected",{connection:new eC(t.id,this.transport),activityTimeout:t.activityTimeout}):(this.finish(t.action,{error:t.error}),this.transport.close())},this.onClosed=e=>{this.unbindListeners();var t=ew.getCloseAction(e)||"backoff",i=ew.getCloseError(e);this.finish(t,{error:i})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)}unbindListeners(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)}finish(e,t){this.callback($({transport:this.transport,action:e},t))}}class ek{constructor(e,t){this.timeline=e,this.options=t||{}}send(e,t){this.timeline.isEmpty()||this.timeline.send(e3.TimelineTransport.getAgent(this,e),t)}}class eT extends ea{constructor(e,t){super(function(t,i){Q.debug("No callbacks on "+e+" for "+t)}),this.name=e,this.pusher=t,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}authorize(e,t){return t(null,{auth:""})}trigger(e,t){if(0!==e.indexOf("client-"))throw new y("Event '"+e+"' does not start with 'client-'");if(!this.subscribed){var i=v("triggeringClientEvents");Q.warn(`Client event triggered before channel 'subscription_succeeded' event . ${i}`)}return this.pusher.send_event(e,t,this.name)}disconnect(){this.subscribed=!1,this.subscriptionPending=!1}handleEvent(e){var t=e.event,i=e.data;"pusher_internal:subscription_succeeded"===t?this.handleSubscriptionSucceededEvent(e):"pusher_internal:subscription_count"===t?this.handleSubscriptionCountEvent(e):0!==t.indexOf("pusher_internal:")&&this.emit(t,i,{})}handleSubscriptionSucceededEvent(e){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",e.data)}handleSubscriptionCountEvent(e){e.data.subscription_count&&(this.subscriptionCount=e.data.subscription_count),this.emit("pusher:subscription_count",e.data)}subscribe(){this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(e,t)=>{e?(this.subscriptionPending=!1,Q.error(e.toString()),this.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:e.message},e instanceof E?{status:e.status}:{}))):this.pusher.send_event("pusher:subscribe",{auth:t.auth,channel_data:t.channel_data,channel:this.name})}))}unsubscribe(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})}cancelSubscription(){this.subscriptionCancelled=!0}reinstateSubscription(){this.subscriptionCancelled=!1}}class eE extends eT{authorize(e,t){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:e},t)}}class eP{constructor(){this.reset()}get(e){return Object.prototype.hasOwnProperty.call(this.members,e)?{id:e,info:this.members[e]}:null}each(e){G(this.members,(t,i)=>{e(this.get(i))})}setMyID(e){this.myID=e}onSubscription(e){this.members=e.presence.hash,this.count=e.presence.count,this.me=this.get(this.myID)}addMember(e){return null===this.get(e.user_id)&&this.count++,this.members[e.user_id]=e.user_info,this.get(e.user_id)}removeMember(e){var t=this.get(e.user_id);return t&&(delete this.members[e.user_id],this.count--),t}reset(){this.members={},this.count=0,this.myID=null,this.me=null}}class ej extends eE{constructor(e,t){super(e,t),this.members=new eP}authorize(e,t){super.authorize(e,(e,i)=>{var r,n,s,a;return r=this,n=void 0,s=void 0,a=function*(){if(!e)if(null!=i.channel_data){var r=JSON.parse(i.channel_data);this.members.setMyID(r.user_id)}else if(yield this.pusher.user.signinDonePromise,null!=this.pusher.user.user_data)this.members.setMyID(this.pusher.user.user_data.id);else{let e=v("authorizationEndpoint");Q.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${e}, or the user should be signed in.`),t("Invalid auth response");return}t(e,i)}
1,new(s||(s=Promise))(function(e,t){function i(e){try{l(a.next(e))}catch(e){t(e)}}function o(e){try{l(a.throw(e))}catch(e){t(e)}}function l(t){var r;t.done?e(t.value):((r=t.value)instanceof s?r:new s(function(e){e(r)})).then(i,o)}l((a=a.apply(r,n||[])).next())})})}handleEvent(e){var t=e.event;if(0===t.indexOf("pusher_internal:"))this.handleInternalEvent(e);else{var i=e.data,r={};e.user_id&&(r.user_id=e.user_id),this.emit(t,i,r)}}handleInternalEvent(e){var t=e.event,i=e.data;switch(t){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(e);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(e);break;case"pusher_internal:member_added":var r=this.members.addMember(i);this.emit("pusher:member_added",r);break;case"pusher_internal:member_removed":var n=this.members.removeMember(i);n&&this.emit("pusher:member_removed",n)}}handleSubscriptionSucceededEvent(e){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(e.data),this.emit("pusher:subscription_succeeded",this.members))}disconnect(){this.members.reset(),super.disconnect()}}var e_=i(978),eM=i(594);class eA extends eE{constructor(e,t,i){super(e,t),this.key=null,this.nacl=i}authorize(e,t){super.authorize(e,(e,i)=>{if(e)return void t(e,i);let r=i.shared_secret;r?(this.key=(0,eM.decode)(r),delete i.shared_secret,t(null,i)):t(Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`),null)})}trigger(e,t){throw new S("Client events are not currently supported for encrypted channels")}handleEvent(e){var t=e.event,i=e.data;0===t.indexOf("pusher_internal:")||0===t.indexOf("pusher:")?super.handleEvent(e):this.handleEncryptedEvent(t,i)}handleEncryptedEvent(e,t){if(!this.key)return void Q.debug("Received encrypted event before key has been retrieved from the authEndpoint");if(!t.ciphertext||!t.nonce)return void Q.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+t);let i=(0,eM.decode)(t.ciphertext);if(i.length<this.nacl.secretbox.overheadLength)return void Q.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${i.length}`);let r=(0,eM.decode)(t.nonce);if(r.length<this.nacl.secretbox.nonceLength)return void Q.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${r.length}`);let n=this.nacl.secretbox.open(i,r,this.key);if(null===n){Q.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),this.authorize(this.pusher.connection.socket_id,(t,s)=>{t?Q.error(`Failed to make a request to the authEndpoint: ${s}. Unable to fetch new key, so dropping encrypted event`):null===(n=this.nacl.secretbox.open(i,r,this.key))?Q.error("Failed to decrypt event with new key. Dropping encrypted event"):this.emit(e,this.getDataToEmit(n))});return}this.emit(e,this.getDataToEmit(n))}getDataToEmit(e){let t=(0,e_.D4)(e);try{return JSON.parse(t)}catch(e){return t}}}class eN extends ea{constructor(e,t){super(),this.state="initialized",this.connection=null,this.key=e,this.options=t,this.timeline=this.options.timeline,this.usingTLS=this.options.useTLS,this.errorCallbacks=this.buildErrorCallbacks(),this.connectionCallbacks=this.buildConnectionCallbacks(this.errorCallbacks),this.handshakeCallbacks=this.buildHandshakeCallbacks(this.errorCallbacks);var i=e3.getNetwork();i.bind("online",()=>{this.timeline.info({netinfo:"online"}),("connecting"===this.state||"unavailable"===this.state)&&this.retryIn(0)}),i.bind("offline",()=>{this.timeline.info({netinfo:"offline"}),this.connection&&this.sendActivityCheck()}),this.updateStrategy()}switchCluster(e){this.key=e,this.updateStrategy(),this.retryIn(0)}connect(){if(!this.connection&&!this.runner){if(!this.strategy.isSupported())return void this.updateState("failed");this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()}}send(e){return!!this.connection&&this.connection.send(e)}send_event(e,t,i){return!!this.connection&&this.connection.send_event(e,t,i)}disconnect(){this.disconnectInternally(),this.updateState("disconnected")}isUsingTLS(){return this.usingTLS}startConnecting(){var e=(t,i)=>{t?this.runner=this.strategy.connect(0,e):"error"===i.action?(this.emit
vendor: 4,116 bytes, line 1
1("error",{type:"HandshakeError",error:i.error}),this.timeline.error({handshakeError:i.error})):(this.abortConnecting(),this.handshakeCallbacks[i.action](i))};this.runner=this.strategy.connect(0,e)}abortConnecting(){this.runner&&(this.runner.abort(),this.runner=null)}disconnectInternally(){this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection&&this.abandonConnection().close()}updateStrategy(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})}retryIn(e){this.timeline.info({action:"retry",delay:e}),e>0&&this.emit("connecting_in",Math.round(e/1e3)),this.retryTimer=new z(e||0,()=>{this.disconnectInternally(),this.connect()})}clearRetryTimer(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)}setUnavailableTimer(){this.unavailableTimer=new z(this.options.unavailableTimeout,()=>{this.updateState("unavailable")})}clearUnavailableTimer(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()}sendActivityCheck(){this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new z(this.options.pongTimeout,()=>{this.timeline.error({pong_timed_out:this.options.pongTimeout}),this.retryIn(0)})}resetActivityCheck(){this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new z(this.activityTimeout,()=>{this.sendActivityCheck()}))}stopActivityCheck(){this.activityTimer&&this.activityTimer.ensureAborted()}buildConnectionCallbacks(e){return $({},e,{message:e=>{this.resetActivityCheck(),this.emit("message",e)},ping:()=>{this.send_event("pusher:pong",{})},activity:()=>{this.resetActivityCheck()},error:e=>{this.emit("error",e)},closed:()=>{this.abandonConnection(),this.shouldRetry()&&this.retryIn(1e3)}})}buildHandshakeCallbacks(e){return $({},e,{connected:e=>{this.activityTimeout=Math.min(this.options.activityTimeout,e.activityTimeout,e.connection.activityTimeout||1/0),this.clearUnavailableTimer(),this.setConnection(e.connection),this.socket_id=this.connection.id,this.updateState("connected",{socket_id:this.socket_id})}})}buildErrorCallbacks(){let e=e=>t=>{t.error&&this.emit("error",{type:"WebSocketError",error:t.error}),e(t)};return{tls_only:e(()=>{this.usingTLS=!0,this.updateStrategy(),this.retryIn(0)}),refused:e(()=>{this.disconnect()}),backoff:e(()=>{this.retryIn(1e3)}),retry:e(()=>{this.retryIn(0)})}}setConnection(e){for(var t in this.connection=e,this.connectionCallbacks)this.connection.bind(t,this.connectionCallbacks[t]);this.resetActivityCheck()}abandonConnection(){if(this.connection){for(var e in this.stopActivityCheck(),this.connectionCallbacks)this.connection.unbind(e,this.connectionCallbacks[e]);var t=this.connection;return this.connection=null,t}}updateState(e,t){var i=this.state;if(this.state=e,i!==e){var r=e;"connected"===r&&(r+=" with new socket ID "+t.socket_id),Q.debug("State changed",i+" -> "+r),this.timeline.info({state:e,params:t}),this.emit("state_change",{previous:i,current:e}),this.emit(e,t)}}shouldRetry(){return"connecting"===this.state||"connected"===this.state}}class eL{constructor(){this.channels={}}add(e,t){return this.channels[e]||(this.channels[e]=function(e,t){if(0===e.indexOf("private-encrypted-")){if(t.config.nacl)return eO.createEncryptedChannel(e,t,t.config.nacl);let i=v("encryptedChannelSupport");throw new S(`Tried to subscribe to a private-encrypted- channel but no nacl implementation available. ${i}`)}if(0===e.indexOf("private-"))return eO.createPrivateChannel(e,t);if(0===e.indexOf("presence-"))return eO.createPresenceChannel(e,t);if(0!==e.indexOf("#"))return eO.createChannel(e,t);throw new x('Cannot create a channel with name "'+e+'".')}(e,t)),this.channels[e]}all(){var e,t;return e=this.channels,t=[],G(e,function(e){t.push(e)}),t}find(e){return this.channels[e]}remove(e){var t=this.channels[e];return delete this.channels[e],t}disconnect(){G(this.channels,function(e){e.disconnect()})}}let eO={createChannels:()=>new eL,createConnectionManager:(e,t)=>new eN(e,t),createChannel:(e,t)=>new eT(e,t),createPrivateChannel:(e,t)=>new eE(e,t),createPresenceChannel:(e,t)=>
1new ej(e,t),createEncryptedChannel:(e,t,i)=>new eA(e,t,i),createTimelineSender:(e,t)=>new ek(e,t),createHandshake:(e,t)=>new eS(e,t),createAssistantToTheTransportManager:(e,t,i)=>new eb(e,t,i)};class eD{constructor(e){this.options=e||{},this.livesLeft=this.options.lives||1/0}getAssistant(e){return eO.createAssistantToTheTransportManager(this,e,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})}isAlive(){return this.livesLeft>0}reportDeath(){this.livesLeft-=1}}class eR{constructor(e,t){this.strategies=e,this.loop=!!t.loop,this.failFast=!!t.failFast,this.timeout=t.timeout,this.timeoutLimit=t.timeoutLimit}isSupported(){return Z(this.strategies,V.method("isSupported"))}connect(e,t){var i=this.strategies,r=0,n=this.timeout,s=null,a=(o,l)=>{l?t(null,l):(r+=1,this.loop&&(r%=i.length),r<i.length?(n&&(n*=2,this.timeoutLimit&&(n=Math.min(n,this.timeoutLimit))),s=this.tryStrategy(i[r],e,{timeout:n,failFast:this.failFast},a)):t(!0))};return s=this.tryStrategy(i[r],e,{timeout:n,failFast:this.failFast},a),{abort:function(){s.abort()},forceMinPriority:function(t){e=t,s&&s.forceMinPriority(t)}}}tryStrategy(e,t,i,r){var n=null,s=null;return i.timeout>0&&(n=new z(i.timeout,function(){s.abort(),r(!0)})),s=e.connect(t,function(e,t){(!(e&&n&&n.isRunning())||i.failFast)&&(n&&n.ensureAborted(),r(e,t))}),{abort:function(){n&&n.ensureAborted(),s.abort()},forceMinPriority:function(e){s.forceMinPriority(e)}}}}class eI{constructor(e){this.strategies=e}isSupported(){return Z(this.strategies,V.method("isSupported"))}connect(e,t){var i,r,n,s;return i=this.strategies,r=e,n=function(e,i){return function(r,n){if(i[e].error=r,r){(function(e){for(var t=0;t<e.length;t++)if(!e[t].error)return!1;return!0})(i)&&t(!0);return}W(i,function(e){e.forceMinPriority(n.transport.priority)}),t(null,n)}},s=X(i,function(e,t,i,s){return e.connect(r,n(t,s))}),{abort:function(){W(s,eF)},forceMinPriority:function(e){W(s,function(t){t.forceMinPriority(e)})}}}}function eF(e){e.error||e.aborted||(e.abort(),e.aborted=!0)}class ez{constructor(e,t,i){this.strategy=e,this.transports=t,this.ttl=i.ttl||18e5,this.usingTLS=i.useTLS,this.timeline=i.timeline}isSupported(){return this.strategy.isSupported()}connect(e,t){var i=this.usingTLS,r=function(e){var t=e3.getLocalStorage();if(t)try{var i=t[eB(e)];if(i)return JSON.parse(i)}catch(t){eV(e)}return null}(i),n=r&&r.cacheSkipCount?r.cacheSkipCount:0,s=[this.strategy];if(r&&r.timestamp+this.ttl>=V.now()){var a=this.transports[r.transport];a&&(["ws","wss"].includes(r.transport)||n>3?(this.timeline.info({cached:!0,transport:r.transport,latency:r.latency}),s.push(new eR([a],{timeout:2*r.latency+1e3,failFast:!0}))):n++)}var o=V.now(),l=s.pop().connect(e,function r(a,c){a?(eV(i),s.length>0?(o=V.now(),l=s.pop().connect(e,r)):t(a)):(function(e,t,i,r){var n=e3.getLocalStorage();if(n)try{n[eB(e)]=J({timestamp:V.now(),transport:t,latency:i,cacheSkipCount:r})}catch(e){}}(i,c.transport.name,V.now()-o,n),t(null,c))});return{abort:function(){l.abort()},forceMinPriority:function(t){e=t,l&&l.forceMinPriority(t)}}}}function eB(e){return"pusherTransport"+(e?"TLS":"NonTLS")}function eV(e){var t=e3.getLocalStorage();if(t)try{delete t[eB(e)]}catch(e){}}class e${constructor(e,{delay:t}){this.strategy=e,this.options={delay:t}}isSupported(){return this.strategy.isSupported()}connect(e,t){var i,r=this.strategy,n=new z(this.options.delay,function(){i=r.connect(e,t)});return{abort:function(){n.ensureAborted(),i&&i.abort()},forceMinPriority:function(t){e=t,i&&i.forceMinPriority(t)}}}}class eH{constructor(e,t,i){this.test=e,this.trueBranch=t,this.falseBranch=i}isSupported(){return(this.test()?this.trueBranch:this.falseBranch).isSupported()}connect(e,t){return(this.test()?this.trueBranch:this.falseBranch).connect(e,t)}}class eU{constructor(e){this.strategy=e}isSupported(){return this.strategy.isSupported()}connect(e,t){var i=this.strategy.connect(e,function(e,r){r&&i.abort(),t(e,r)});return i}}function eG(e){return function(){return e.isSupported()}}let eq={getRequest:function(e){var t=new window.XDomainRequest;return t.ontimeout=function(){e.emit("error",new b),e.close()},t.onerror=function(t){e.emit("error",t),e.close()},t.onprogress=function(){t.responseText&&t.responseText.length>0&&e.onChunk(200,t.responseText)},t.onload=function(){t.responseText&&t.responseText.length>0&&e.onChunk(200,t.responseText),e.emit("finished",200),e.close()},t},abortRequest:function(e){e.ontimeout=e.onerror=e.onprogress=e.onload=null,e.abort()}};class eW extends ea{constructor(e,t,i){super(),this.hooks=e,this.method=t,this.url=i}
1start(e){this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=()=>{this.close()},e3.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(e)}close(){this.unloader&&(e3.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)}onChunk(e,t){for(;;){var i=this.advanceBuffer(t);if(i)this.emit("chunk",{status:e,data:i});else break}this.isBufferTooLong(t)&&this.emit("buffer_too_long")}advanceBuffer(e){var t=e.slice(this.position),i=t.indexOf("\n");return -1!==i?(this.position+=i+1,t.slice(0,i)):null}isBufferTooLong(e){return this.position===e.length&&e.length>262144}}(s=l||(l={}))[s.CONNECTING=0]="CONNECTING",s[s.OPEN=1]="OPEN",s[s.CLOSED=3]="CLOSED";let eX=l;var eY=1;function eK(e){var t=-1===e.indexOf("?")?"?":"&";return e+t+"t="+ +new Date+"&n="+eY++}function eZ(e){return e3.randomInt(e)}let eJ=class{constructor(e,t){this.hooks=e,this.session=eZ(1e3)+"/"+function(){for(var e=[],t=0;t<8;t++)e.push(eZ(32).toString(32));return e.join("")}(),this.location=function(e){var t=/([^\?]*)\/*(\??.*)/.exec(e);return{base:t[1],queryString:t[2]}}(t),this.readyState=eX.CONNECTING,this.openStream()}send(e){return this.sendRaw(JSON.stringify([e]))}ping(){this.hooks.sendHeartbeat(this)}close(e,t){this.onClose(e,t,!0)}sendRaw(e){if(this.readyState!==eX.OPEN)return!1;try{var t,i;return e3.createSocketRequest("POST",eK((t=this.location,i=this.session,t.base+"/"+i+"/xhr_send"))).start(e),!0}catch(e){return!1}}reconnect(){this.closeStream(),this.openStream()}onClose(e,t,i){this.closeStream(),this.readyState=eX.CLOSED,this.onclose&&this.onclose({code:e,reason:t,wasClean:i})}onChunk(e){if(200===e.status){var t;switch(this.readyState===eX.OPEN&&this.onActivity(),e.data.slice(0,1)){case"o":t=JSON.parse(e.data.slice(1)||"{}"),this.onOpen(t);break;case"a":t=JSON.parse(e.data.slice(1)||"[]");for(var i=0;i<t.length;i++)this.onEvent(t[i]);break;case"m":t=JSON.parse(e.data.slice(1)||"null"),this.onEvent(t);break;case"h":this.hooks.onHeartbeat(this);break;case"c":t=JSON.parse(e.data.slice(1)||"[]"),this.onClose(t[0],t[1],!0)}}}onOpen(e){var t,i,r;this.readyState===eX.CONNECTING?(e&&e.hostname&&(this.location.base=(t=this.location.base,i=e.hostname,(r=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(t))[1]+i+r[3])),this.readyState=eX.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent(e){this.readyState===eX.OPEN&&this.onmessage&&this.onmessage({data:e})}onActivity(){this.onactivity&&this.onactivity()}onError(e){this.onerror&&this.onerror(e)}openStream(){this.stream=e3.createSocketRequest("POST",eK(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",e=>{this.onChunk(e)}),this.stream.bind("finished",e=>{this.hooks.onFinished(this,e)}),this.stream.bind("buffer_too_long",()=>{this.reconnect()});try{this.stream.start()}catch(e){V.defer(()=>{this.onError(e),this.onClose(1006,"Could not start streaming",!1)})}}closeStream(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}},eQ={getReceiveURL:function(e,t){return e.base+"/"+t+"/xhr_streaming"+e.queryString},onHeartbeat:function(e){e.sendRaw("[]")},sendHeartbeat:function(e){e.sendRaw("[]")},onFinished:function(e,t){e.onClose(1006,"Connection interrupted ("+t+")",!1)}},e0={getReceiveURL:function(e,t){return e.base+"/"+t+"/xhr"+e.queryString},onHeartbeat:function(){},sendHeartbeat:function(e){e.sendRaw("[]")},onFinished:function(e,t){200===t?e.reconnect():e.onClose(1006,"Connection interrupted ("+t+")",!1)}},e1={getRequest:function(e){var t=new(e3.getXHRAPI());return t.onreadystatechange=t.onprogress=function(){switch(t.readyState){case 3:t.responseText&&t.responseText.length>0&&e.onChunk(t.status,t.responseText);break;case 4:t.responseText&&t.responseText.length>0&&e.onChunk(t.status,t.responseText),e.emit("finished",t.status),e.close()}},t},abortRequest:function(e){e.onreadystatechange=null,e.abort()}},e2={createStreamingSocket(e){return this.createSocket(eQ,e)},createPollingSocket(e){return this.createSocket(e0,e)},createSocket:(e,t)=>new eJ(e,t),createXHR(e,t){return this.createRequest(e1,e,t)},createRequest:(e,t,i)=>new eW(e,t,i)};e2.createXDR=function(e,t){return this.createRequest(eq,e,t)};let e3={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:d,DependenciesReceivers:m,getDefaultStrategy:function(e,t,i){var r,n={};function s(t,r,s,a,o){var l=i(e,t,r,s,a,o);return n[t]=l,l}var a=Object.assign({},t,{hostNonTLS:e.wsHost+":"+e.wsPort,hostTLS:e.wsHost+":"+e.wssPort,httpPath:e.wsPath}),o=Object.assign({},a,{useTLS:!0}),l=Object.assign({},t,{hostNonTLS:e.httpHost+":"+e.httpPort,hostTLS:e.httpHost+":"+e.httpsPort,httpPath:e.httpPath}),c={loop:!0,timeout:15e3,timeoutLimit:6e4},d=new eD({minPingDelay:1e4,maxPingDelay:e.activityTimeout}),u=new eD({lives:2,minPingDelay:1e4,maxPingDelay:e.activityTimeout}),h=s("ws","ws",3,a,d),p=s("wss","ws",3,o,d),m=s("sockjs","sockjs",1,l),f=s("xhr_streaming","xhr_streaming",1,l,u),g=s("xdr_streaming","xdr_streaming",1,l,u),v=s("xhr_polling","xhr_polling",1,l),y=s("xdr_polling","xdr_polling",1,l),x=new eR([h],c),b=new eR([p],c),w=new eR([m],c),C=new eR([new eH(eG(f),f,g)],c),S=new eR([new eH(eG(v),v,y)],c
1),k=new eR([new eH(eG(C),new eI([C,new e$(S,{delay:4e3})]),S)],c),T=new eH(eG(k),k,w);return r=new eI(t.useTLS?[x,new e$(T,{delay:2e3})]:[x,new e$(b,{delay:2e3}),new e$(T,{delay:5e3})]),new ez(new eU(new eH(eG(h),r,T)),n,{ttl:18e5,timeline:t.timeline,useTLS:t.useTLS})},Transports:em,transportConnectionInitializer:function(){var e=this;e.timeline.info(e.buildTimelineMessage({transport:e.name+(e.options.useTLS?"s":"")})),e.hooks.isInitialized()?e.changeState("initialized"):e.hooks.file?(e.changeState("initializing"),f.load(e.hooks.file,{useTLS:e.options.useTLS},function(t,i){e.hooks.isInitialized()?(e.changeState("initialized"),i(!0)):(t&&e.onError(t),e.onClose(),i(!1))})):e.onClose()},HTTPFactory:e2,TimelineTransport:{name:"jsonp",getAgent:function(e,t){return function(i,r){var n="http"+(t?"s":"")+"://"+(e.host||e.options.host)+e.options.path,s=e3.createJSONPRequest(n,i),a=e3.ScriptReceivers.create(function(t,i){d.remove(a),s.cleanup(),i&&i.host&&(e.host=i.host),r&&r(t,i)});s.send(a)}}},getXHRAPI:()=>window.XMLHttpRequest,getWebSocketAPI:()=>window.WebSocket||window.MozWebSocket,setup(e){window.Pusher=e;var t=()=>{this.onDocumentBody(e.ready)};window.JSON?t():f.load("json2",{},t)},getDocument:()=>document,getProtocol(){return this.getDocument().location.protocol},getAuthorizers:()=>({ajax:P,jsonp:ee}),onDocumentBody(e){document.body?e():setTimeout(()=>{this.onDocumentBody(e)},0)},createJSONPRequest:(e,t)=>new ei(e,t),createScriptRequest:e=>new et(e),getLocalStorage(){try{return window.localStorage}catch(e){return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){return new(this.getXHRAPI())},createMicrosoftXHR:()=>new ActiveXObject("Microsoft.XMLHTTP"),getNetwork:()=>ex,createWebSocket(e){return new(this.getWebSocketAPI())(e)},createSocketRequest(e,t){if(this.isXHRSupported())return this.HTTPFactory.createXHR(e,t);if(this.isXDRSupported(0===t.indexOf("https:")))return this.HTTPFactory.createXDR(e,t);throw"Cross-origin HTTP requests are not supported"},isXHRSupported(){var e=this.getXHRAPI();return!!e&&void 0!==new e().withCredentials},isXDRSupported(e){var t=this.getProtocol();return!!window.XDomainRequest&&t===(e?"https:":"http:")},addUnloadListener(e){void 0!==window.addEventListener?window.addEventListener("unload",e,!1):void 0!==window.attachEvent&&window.attachEvent("onunload",e)},removeUnloadListener(e){void 0!==window.addEventListener?window.removeEventListener("unload",e,!1):void 0!==window.detachEvent&&window.detachEvent("onunload",e)},randomInt:e=>Math.floor((window.crypto||window.msCrypto).getRandomValues(new Uint32Array(1))[0]/0x100000000*e)};(a=c||(c={}))[a.ERROR=3]="ERROR",a[a.INFO=6]="INFO",a[a.DEBUG=7]="DEBUG";let e4=c;class e5{constructor(e,t,i){this.key=e,this.session=t,this.events=[],this.options=i||{},this.sent=0,this.uniqueID=0}log(e,t){e<=this.options.level&&(this.events.push($({},t,{timestamp:V.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())}error(e){this.log(e4.ERROR,e)}info(e){this.log(e4.INFO,e)}debug(e){this.log(e4.DEBUG,e)}isEmpty(){return 0===this.events.length}send(e,t){var i=$({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],e(i,(e,i)=>{!e&&this.sent++,t&&t(e,i)}),!0}generateUniqueID(){return this.uniqueID++,this.uniqueID}}class e6{constructor(e,t,i,r){this.name=e,this.priority=t,this.transport=i,this.options=r||{}}isSupported(){return this.transport.isSupported({useTLS:this.options.useTLS})}connect(e,t){if(!this.isSupported())return e8(new T,t);if(this.priority<e)return e8(new w,t);var i=!1,r=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),n=null,s=function(){r.unbind("initialized",s),r.connect()},a=function(){n=eO.createHandshake(r,function(e){i=!0,c(),t(null,e)})},o=function(e){c(),t(e)},l=function(){c(),t(new C(J(r)))},c=function(){r.unbind("initialized",s),r.unbind("open",a),r.unbind("error",o),r.unbind("closed",l)};return r.bind("initialized",s),r.bind("open",a),r.bind("error",o),r.bind("closed",l),r.initialize(),{abort:()=>{i||(c(),n?n.close():r.close())},forceMinPriority:e=>{!i&&this.priority<e&&(n?n.close():r.close())}}}}function e8(e,t){return V.defer(function(){t(e)}),{abort:function(){},forceMinPriority:function(){}}}let{Transports:e7}=e3;var e9=function(e,t,i,r,n,s){var a,o=e7[i];if(!o)throw new k(i);return e.enabledTransports&&-1===U(e.enabledTransports,t)||e.disabledTransports&&-1!==U(e.disabledTransports,t)?a=te:(n=Object.assign({ignoreNullOrigin:e.ignoreNullOrigin},n),a=new e6(t,r,s?s.getAssistant(o):o,n)),a},te={isSupported:function(){return!1},connect:function(e,t){var i=V.defer(function(){t(new T)});return{abort:function(){i.ensureAborted()},forceMinPriority:function(){}}}};function tt(e,t){var i,r,n,s;let a={activityTimeout:e.activityTimeout||12e4,cluster:e.cluster,httpPath:e.httpPath||"/pusher",httpPort:e.httpPort||80,httpsPort:e.httpsPort||443,pongTimeout:e.pongTimeout||3e4,statsHost:e.statsHost||"stats.pusher.com",unavailableTimeout:e.unavailableTimeout||1e4,wsPath:e.wsPath||"",wsPort:e.wsPort||80,wssPort:e.wssPort||443,enableStats:"enableStats"in(i=e)?i.enableStats:"disableStats"in i&&!i.disableStats,httpHost:(r=e).httpHost?r.httpHost:r.cluster?`sockjs-${r.cluster}.pusher.com`:"sockjs.pusher.com",useTLS:function(e){if("https:"===e3.getProtocol());else if(!1===e.forceTLS)return!1;return!0}(e),wsHost:(n=e).wsHost?n.wsHost:(s=n.cluster,`ws-${s}.pusher.com`),userAuthenticator:function(e){let t=Object.assign(Object.assign({},h),e.userAuthentication);if(ti(t))return t.customHandler;if(void 0===e3.getAuthorizers()[t.transport])throw`'${t.transport}' is not a recognized auth transport`;return(e,i)=>{let r=((e,t)=>{var i="socket_id="+encodeURIComponent(e.socketId);for(var r in t.params)i+="&"+encodeURIComponent(r)+"="+encodeURIComponent(t.params[r]);if(null!=t.paramsProvider){let e=t.paramsProvider();for(var r in e)i+="&"+encodeURIComponent(r)+"="+encodeURIComponent(e[r])}return i})(e,t);e3.getAuthorizers()[t.transport](e3,r,t,o.UserAuthentication,i)}}(e),channelAuthorizer:function(e,t){let i=function(e,t){let i;if("channelAuthorization"in e)i=Object.assign(Object.assign({},p),e.channelAuthorization);else if(i={transport:e.authTransport||"ajax",endpoint:e.authEndpoint||"/pusher/auth"},"auth"in e&&("params"in e.auth&&(i.params=e.auth.params),"headers"in e.auth&&(i.headers=e.auth.headers)),"authorizer"in e){var r,n;let s;return{customHandler:(r=i,n=e.authorizer,s={authTransport:r.transport,authEndpoint:r.endpoint,auth:{params:r.params,headers:r.headers}},(e,i)=>{n(t.channel(e.channelName),s).authorize(e.socketId,i)})}}return i}(e,t);if(ti(i))return i.customHandler;if(void 0===e3.getAuthorizers()[i.transport])throw`'${i.transport}' is not a recognized auth transport`;return(e,t)=>{let r=((e,t)=>{var i="socket_id="+encodeURIComponent(e.socketId);for(var r in i+="&channel_name="+encodeURIComponent(e.channelName),t.params)i+="&"+encodeURIComponent(r)+"="+encodeURIComponent(t.params[r]);if(null!=t.paramsProvider){let e=t.paramsProvider();for(var r in e)i+="&"+encodeURIComponent(r)+"="+encodeURIComponent(e[r])}return i})(e,i);e3.getAuthorizers()[i.transport](e3,r,i,o.ChannelAuthorization,t)}}(e,t)};return"disabledTransports"in e&&(a.disabledTransports=e.disabledTransports),"enabledTransports"in e&&(a.enabledTransports=e.enabledTransports),"ignoreNullOrigin"in e&&(a.ignoreNullOrigin=e.ignoreNullOrigin),"timelineParams"in e&&(a.timelineParams=e.timelineParams),"nacl"in e&&(a.nacl=e.nacl),a}let ti=e=>"customHandler"in e&&null!=e.customHandler;class tr extends ea{constructor(e){super(function(e,t){Q.debug(`No callbacks on watchlist events for ${e}`)}),this.pusher=e,this.bindWatchlistInternalEvent()}
1handleEvent(e){e.data.events.forEach(e=>{this.emit(e.name,e)})}bindWatchlistInternalEvent(){this.pusher.connection.bind("message",e=>{"pusher_internal:watchlist_events"===e.event&&this.handleEvent(e)})}}let tn=function(){let e,t;return{promise:new Promise((i,r)=>{e=i,t=r}),resolve:e,reject:t}};class ts extends ea{constructor(e){super(function(e,t){Q.debug("No callbacks on user for "+e)}),this.signin_requested=!1,this.user_data=null,this.serverToUserChannel=null,this.signinDonePromise=null,this._signinDoneResolve=null,this._onAuthorize=(e,t)=>{if(e){Q.warn(`Error during signin: ${e}`),this._cleanup();return}this.pusher.send_event("pusher:signin",{auth:t.auth,user_data:t.user_data})},this.pusher=e,this.pusher.connection.bind("state_change",({previous:e,current:t})=>{"connected"!==e&&"connected"===t&&this._signin(),"connected"===e&&"connected"!==t&&(this._cleanup(),this._newSigninPromiseIfNeeded())}),this.watchlist=new tr(e),this.pusher.connection.bind("message",e=>{"pusher:signin_success"===e.event&&this._onSigninSuccess(e.data),this.serverToUserChannel&&this.serverToUserChannel.name===e.channel&&this.serverToUserChannel.handleEvent(e)})}signin(){this.signin_requested||(this.signin_requested=!0,this._signin())}_signin(){this.signin_requested&&(this._newSigninPromiseIfNeeded(),"connected"===this.pusher.connection.state&&this.pusher.config.userAuthenticator({socketId:this.pusher.connection.socket_id},this._onAuthorize))}_onSigninSuccess(e){try{this.user_data=JSON.parse(e.user_data)}catch(t){Q.error(`Failed parsing user data after signin: ${e.user_data}`),this._cleanup();return}if("string"!=typeof this.user_data.id||""===this.user_data.id){Q.error(`user_data doesn't contain an id. user_data: ${this.user_data}`),this._cleanup();return}this._signinDoneResolve(),this._subscribeChannels()}_subscribeChannels(){let e=e=>{e.subscriptionPending&&e.subscriptionCancelled?e.reinstateSubscription():e.subscriptionPending||"connected"!==this.pusher.connection.state||e.subscribe()};this.serverToUserChannel=new eT(`#server-to-user-${this.user_data.id}`,this.pusher),this.serverToUserChannel.bind_global((e,t)=>{0!==e.indexOf("pusher_internal:")&&0!==e.indexOf("pusher:")&&this.emit(e,t)}),e(this.serverToUserChannel)}_cleanup(){this.user_data=null,this.serverToUserChannel&&(this.serverToUserChannel.unbind_all(),this.serverToUserChannel.disconnect(),this.serverToUserChannel=null),this.signin_requested&&this._signinDoneResolve()}_newSigninPromiseIfNeeded(){if(!this.signin_requested||this.signinDonePromise&&!this.signinDonePromise.done)return;let{promise:e,resolve:t,reject:i}=tn();e.done=!1;let r=()=>{e.done=!0};e.then(r).catch(r),this.signinDonePromise=e,this._signinDoneResolve=t}}class ta{static ready(){ta.isReady=!0;for(var e=0,t=ta.instances.length;e<t;e++)ta.instances[e].connect()}static getClientFeatures(){return q(K({ws:e3.Transports.ws},function(e){return e.isSupported({})}))}constructor(e,t){(function(e){if(null==e)throw"You must pass your app key when you instantiate Pusher."})(e),function(e){if(null==e)throw"You must pass an options object";if(null==e.cluster)throw"Options object must provide a cluster";"disableStats"in e&&Q.warn("The disableStats option is deprecated in favor of enableStats")}(t),this.key=e,this.options=t,this.config=tt(this.options,this),this.channels=eO.createChannels(),this.global_emitter=new ea,this.sessionID=e3.randomInt(1e9),this.timeline=new e5(this.key,this.sessionID,{cluster:this.config.cluster,features:ta.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:e4.INFO,version:u}),this.config.enableStats&&(this.timelineSender=eO.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+e3.TimelineTransport.name}));var i=e=>e3.getDefaultStrategy(this.config,e,e9);this.connection=eO.createConnectionManager(this.key,{getStrategy:i,timeline:this.timeline,activityTimeout:this.config.activityTimeout,pongTimeout:this.config.pongTimeout,unavailableTimeout:this.config.unavailableTimeout,useTLS:!!this.config.useTLS}),this.connection.bind("connected",()=>{this.subscribeAll(),this.timelineSender&&this.timelineSender.send(this.connection.isUsingTLS())}),this.connection.bind("message",e=>{var t=0===e.event.indexOf("pusher_internal:");if(e.channel){var i=this.channel(e.channel);i&&i.handleEvent(e)}t||this.global_emitter.emit(e.event,e.data)}),this.connection.bind("connecting",()=>{this.channels.disconnect()}),this.connection.bind("disconnected",()=>{this.channels.disconnect()}),this.connection.bind("error",e=>{Q.warn(e)}),ta.instances.push(this),this.timeline.info({instances:ta.instances.length}),this.user=new ts(this),ta.isReady&&this.connect()}switchCluster(e){let{appKey:t,cluster:i}=e;this.key=t,this.options=Object.assign(Object.assign({},this.options),{cluster:i}),this.config=tt(this.options,this),this.connection.switchCluster(this.key)}channel(e){return this.channels.find(e)}allChannels(){return this.channels.all()}connect(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var e=this.connection.isUsingTLS(),t=this.timelineSender;this.timelineSenderTimer=new B(6e4,function(){t.send(e)})}}disconnect(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)}bind(e,t,i){return this.global_emitter.bind(e,t,i),this}unbind(e,t,i){return this.global_emitter.unbind(e,t,i),this}bind_global(e){return this.global_emitter.bind_global(e),this}unbind_global(e){return this.global_emitter.unbind_global(e),this}unbind_all(e){return this.global_emitter.unbind_all(),this}subscribeAll(){var e;
1for(e in this.channels.channels)this.channels.channels.hasOwnProperty(e)&&this.subscribe(e)}subscribe(e){var t=this.channels.add(e,this);return t.subscriptionPending&&t.subscriptionCancelled?t.reinstateSubscription():t.subscriptionPending||"connected"!==this.connection.state||t.subscribe(),t}unsubscribe(e){var t=this.channels.find(e);t&&t.subscriptionPending?t.cancelSubscription():(t=this.channels.remove(e))&&t.subscribed&&t.unsubscribe()}send_event(e,t,i){return this.connection.send_event(e,t,i)}shouldUseTLS(){return this.config.useTLS}signin(){this.user.signin()}}ta.instances=[],ta.isReady=!1,ta.logToConsole=!1,ta.Runtime=e3,ta.ScriptReceivers=e3.ScriptReceivers,ta.DependenciesReceivers=e3.DependenciesReceivers,ta.auth_callbacks=e3.auth_callbacks;let to=ta;e3.setup(ta)}},t={};function i(r){var n=t[r];if(void 0!==n)return n.exports;var s=t[r]={exports:{}};return e[r].call(s.exports,s,s.exports,i),s.exports}return i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i(721)})()},700742,(e,t,i)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,s=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,o=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,d=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,h=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,m=r?Symbol.for("react.suspense"):60113,f=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,x=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function C(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case h:case a:case l:case o:case m:return e;default:switch(e=e&&e.$$typeof){case d:case p:case v:case g:case c:return e;default:return t}}case s:return t}}}function S(e){return C(e)===h}i.AsyncMode=u,i.ConcurrentMode=h,i.ContextConsumer=d,i.ContextProvider=c,i.Element=n,i.ForwardRef=p,i.Fragment=a,i.Lazy=v,i.Memo=g,i.Portal=s,i.Profiler=l,i.StrictMode=o,i.Suspense=m,i.isAsyncMode=function(e){return S(e)||C(e)===u},i.isConcurrentMode=S,i.isContextConsumer=function(e){return C(e)===d},i.isContextProvider=function(e){return C(e)===c},i.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},i.isForwardRef=function(e){return C(e)===p},i.isFragment=function(e){return C(e)===a},i.isLazy=function(e){return C(e)===v},i.isMemo=function(e){return C(e)===g},i.isPortal=function(e){return C(e)===s},i.isProfiler=function(e){return C(e)===l},i.isStrictMode=function(e){return C(e)===o},i.isSuspense=function(e){return C(e)===m},i.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===h||e===l||e===o||e===m||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===c||e.$$typeof===d||e.$$typeof===p||e.$$typeof===x||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},i.typeOf=C},127142,(e,t,i)=>{"use strict";e.i(794243),t.exports=e.r(700742)},705927,(e,t,i)=>{"use strict";var r=e.r(127142),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function l(e){return r.isMemo(e)?a:o[e.$$typeof]||n}o[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[r.Memo]=a;var c=Object.defineProperty,d=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;t.exports=function e(t,i,r){if("string"!=typeof i){if(m){var n=p(i);n&&n!==m&&e(t,n,r)}var a=d(i);u&&(a=a.concat(u(i)));for(var o=l(t),f=l(i),g=0;g<a.length;++g){var v=a[g];if(!s[v]&&!(r&&r[v])&&!(f&&f[v])&&!(o&&o[v])){var y=h(i,v);try{c(t,v,y)}catch(e){}}}}return t}},782113,e=>{"use strict";var t=e.i(250465);e.i(621311);var i=e.i(347664);e.i(480234);var r=e.i(769303),n=e.i(451647),s=e.i(13589),a=e.i(374647);let o=(0,e.i(54189).graphql)(`
2    fragment CFaqF on ComponentFAQ {
3        question
4        answer
5    }
6`);e.s(["default",0,function(e){let l=(0,i.getFragmentData)(o,e.content);return(0,t.jsx)("div",{children:(0,t.jsx)(s.Disclosure,{children:({open:e})=>(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)(s.Disclosure.Button,{className:"flex items-center justify-center gap-6 text-center",children:[e?(0,t.jsx)(a.HiMinus,{className:"size-4 transform text-blue-600 ease-in-out"}):(0,t.jsx)(a.HiPlus,{className:"size-4 transform text-blue-600 ease-in-out"}),(0,t.jsx)(n.Heading,{heading:"h6",className:"text-lg font-bold",children:l.question})]}),(0,t.jsx)(s.Disclosure.Panel,{className:"pl-10 text-gray",children:(0,t.jsx)(r.BodyText,{color:"gray",type:"small",className:"prose prose-a:text-blue-600 hover:prose-a:text-blue-700",dangerouslySetInnerHTML:{__html:l.answer||""}})})]})})})}],782113)},168986,e=>{"use strict";var t=e.i(250465),i=e.i(122789);e.s(["VideoPlayer",0,({playBackId:e,className:r,poster:n})=>{let s=!n?.startsWith("https://image.mux.com/");return(0,t.jsxs)("div",{children:[(0,t.jsx)("style",{children:s?`
7          mux-player::part(center play button) {
8            background-color: #FF7640;
9            outline: white solid 8px;
10
11          }
12
13          mux-player::part(center play button):hover {
14            background-color: #E46735;
15          }
16        `:`
17          mux-player::part(center play button) {
18            background-color: #5237E6;
19            outline: white solid 8px;
20
21          }
22
23          mux-player::part(center play button):hover {
24            background-color: #3319C3
25          }
26        `}),(0,t.jsx)("mux-player",{"playback-id":e,poster:n,"accent-color":s?"#FF7640":"#5237E6",style:{borderRadius:"var(--radius-2xl)",overflow:"hidden"},className:"mux-player aspect-video size-full "+r}),(0,t.jsx)(i.default,{strategy:"afterInteractive",src:"https://cdn.jsdelivr.net/npm/@mux/mux-player"})]})}])},742950,e=>{"use strict";var t=e.i(250465),i=e.i(838406),r=e.i(859898),n=e.i(347782);e.s(["default",0,function(){let[e,s]=(0,i.useState)([]);return(0,i.useEffect)(()=>{let e=[];document.querySelectorAll("div[id]").forEach(t=>{t.firstElementChild&&("H2"===t.firstElementChild.tagName||"H3"===t.firstElementChild.tagName)&&("H2"===t.firstElementChild.tagName&&e.push({type:t.firstElementChild.tagName,text:t.firstElementChild.textContent,href:t.getAttribute("id")}),"H3"===t.firstElementChild.tagName&&(e[e.length-1].subheadings=e[e.length-1].subheadings||[],e[e.length-1].subheadings.push({type:t.firstElementChild.tagName,text:t.firstElementChild.textContent,href:t.getAttribute("id")})))}),s(e)},[]),(0,t.jsxs)("div",{className:"not-prose mx-auto max-w-prose space-y-4 rounded-2xl bg-blue-100 px-8 pb-10 pt-6 md:px-12 lg:px-16 lg:pb-16 lg:pt-10",children:[(0,t.jsx)("span",{className:"text-[1rem] font-bold uppercase leading-[1.25rem] tracking-wider text-blue-600 lg:text-[1rem] lg:leading-[1.5rem]",children:"TABLE OF CONTENTS"}),!e.length&&(0,t.jsxs)("div",{className:"mt-6 space-y-4",children:[(0,t.jsx)("div",{className:"mt-8 h-7 w-full animate-pulse rounded-lg bg-blue-400"}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("div",{className:"h-5 w-[90%] animate-pulse rounded-lg bg-blue-300"}),(0,t.jsx)("div",{className:"h-5 w-[75%] animate-pulse rounded-lg bg-blue-300"}),(0,t.jsx)("div",{className:"h-5 w-[60%] animate-pulse rounded-lg bg-blue-300"}),(0,t.jsx)("div",{className:"h-5 w-[80%] animate-pulse rounded-lg bg-blue-300"})]}),(0,t.jsx)("div",{className:"mt-8 h-7 w-full animate-pulse rounded-lg bg-blue-400"}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("div",{className:"h-5 w-[90%] animate-pulse rounded-lg bg-blue-300"}),(0,t.jsx)("div",{className:"h-5 w-[80%] animate-pulse rounded-lg bg-blue-300"})]}),(0,t.jsx)("div",{className:"mt-8 h-7 w-full animate-pulse rounded-lg bg-blue-400"}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("div",{className:"h-5 w-[90%] animate-pulse rounded-lg bg-blue-300"}),(0,t.jsx)("div",{className:"h-5 w-[75%] animate-pulse rounded-lg bg-blue-300"}),(0,t.jsx)("div",{className:"h-5 w-[85%] animate-pulse rounded-lg bg-blue-300"}),(0,t.jsx)("div",{className:"h-5 w-[80%] animate-pulse rounded-lg bg-blue-300"})]})]}),e.map(e=>(0,t.jsxs)("div",{className:"mt-6 space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2 text-balance pt-4 text-2xl font-bold hover:cursor-pointer hover:text-blue-600 lg:text-3xl",children:[(0,t.jsx)(n.Link,{href:`#${e.href}`,children:e.text},e.href),(0,t.jsx)(r.FaChevronRight,{className:"h-3 max-w-5 flex-grow-0 justify-self-end text-gray"})]}),(0,t.jsx)("ul",{className:"flex list-disc flex-col space-y-4 pl-6 decoration-gray-900",children:e.subheadings?.map(e=>(0,t.jsx)("li",{className:"w-full",children:(0,t.jsxs)("div",{className:"inline-flex w-full flex-grow flex-nowrap items-center justify-between gap-2 text-balance text-lg font-bold hover:cursor-pointer hover:text-blue-600 lg:text-xl",children:[(0,t.jsx)(n.Link,{href:`#${e.href}`,className:"inline-flex",children:e.text}),(0,t.jsx)(r.FaChevronRight,{className:"h-3 max-w-5 flex-grow-0 justify-self-end text-gray opacity-50"})]})},e.href))})]},e.href))]})}])},543108,e=>{"use strict";var t=e.i(250465),i=e.i(838406),r=e.i(314704);e.i(480234);var n=e.i(451647),s=e.i(103189),a=e.i(310458),o=e.i(66362),l=e.i(88709),c=e.i(627940),d=e.i(26294),u=e.i(599926),h=e.i(46951);e.i(102719);var p=e.i(207285);let m={message:"",success:!1,errors:{email:[],first_name:[],last_name:[],phone:[],message:[]}};function f({type:e="text",name:i,placeholder:r,error:n,required:a=!1}){return(0,t.jsxs)("div",{children:[(0,t.jsx)("input",{type:e,name:i,id:i,placeholder:r,className:s.INPUT_FIELD_CLASSES,required:a}),n&&(0,t.jsx)("p",{className:"mt-2 text-sm text-red-600",id:"email-error",children:n})]})}function g({name:e,placeholder:i,error:r,required:n=!1}){return(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)("textarea",{rows:4,name:e,id:e,placeholder:i,className:s.INPUT_FIELD_CLASSES,required:n}),r&&(0,t.jsx)("p",{className:"mt-2 text-sm text-red-600",id:"email-error",children:r})]})}e.s(["default",0,function(e){let[s,v,y]=(0,i.useActionState)(e.action,m),[x,b]=(0,i.useState)(""),[w,C]=i.default.useState(""),[S,k]=i.default.useState(""),[T,E]=i.default.useState(""),{executeRecaptcha:P}=(0,p.useReCaptcha)(),j={email:s?.errors.email||[],first_name:s?.errors.first_name||[],last_name:s?.errors.last_name||[],phone:s?.errors.phone||[],message:s?.errors.message||[]},{setFormType:_,setFirstName:M,setLastName:A,setEmail:N,setPhone:L,setMessage:O,setSendToMixpanel:D,email:R,first_name:I,last_name:F,phone:z}=(0,i.useContext)(d.MixpanelFormdataContext);
26_(e.formType),(0,i.useEffect)(()=>{C(document.title),k(window.location.href),E((0,r.getCookie)("hubspotutk")||"")},[]);let B=e.fields.map((e,i)=>{let r;("default"===e.type||"textarea"===e.type)&&(r=e.name.replace("-","_"));let n=(0,h.cn)(1===e.width?"col-span-1":"col-span-2");switch(e.type){case"textarea":return(0,t.jsx)("div",{className:n,children:(0,t.jsx)(g,{name:e.name,placeholder:e.placeholder,error:s.errors[e.name]&&s?.errors[e.name][0]||void 0,required:e.required},e.name)},e.name);case"phone":return(0,t.jsx)("div",{className:n,children:(0,t.jsx)(a.default,{error:e.error},i)},e.type);case"default":return(0,t.jsx)("div",{className:n,children:(0,t.jsx)(f,{type:e.inputType,name:e.name,placeholder:e.placeholder,error:j[r]&&j[r][0]||void 0,required:e.required},e.name)},e.name)}}),V=async t=>{if(t.preventDefault(),b(""),!P)return void console.error("ReCAPTCHA not available");let r=await P("formSend");try{if((await o.default.post("/api/recaptchaVerify",{gRecaptchaToken:r},{headers:{Accept:"application/json","Content-Type":"application/json"}})).data.success){let r,n,s=I+" "+F;switch(e.formType){case"ask-a-question":r="Ask a Question",n="Ask a Question";break;case"contact-sales":r="Contact Sales Request",n="Contact Sales";break;case"demo-signup":r="Demo Request",n="Demo";break;case"partner":r="Become a Partner Request",n="Partner";break;case"streekportaal-demo-signup":r="Demo Request",n="Streekportaal";break;
26default:r="Form Submission",n="Form Submission"}u.default.identify(u.default.get_distinct_id()),u.default.people.set({$email:R,$name:s}),u.default.track(r,{$email:R,$name:s,"Demo Type":n}),(0,i.startTransition)(async()=>{v(new FormData(t.target))})}else b("Spam detected. Please try again.")}catch(e){b("ReCaptcha verification failed")}};return(0,t.jsxs)("form",{className:"rounded-2xl bg-white p-6 lg:p-10",method:"POST",onChange:({currentTarget:e})=>{let t=new FormData(e);M(t.get("first-name")),A(t.get("last-name")),N(t.get("email")),L(t.get("phone-number")),O(t.get("message")),D(!1)},onSubmit:V,children:[x&&(0,t.jsx)("p",{className:"mt-2 text-sm text-red-600",id:"email-error",children:x}),(0,t.jsx)("input",{id:"hutk",name:"hutk",value:T,type:"hidden"}),(0,t.jsx)("input",{id:"pageTitle",name:"pageTitle",value:w,type:"hidden"}),(0,t.jsx)("input",{id:"pageUri",name:"pageUri",value:S,type:"hidden"}),(0,t.jsx)(n.Heading,{heading:"h4",className:"mb-8",children:e.title}),(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsx)("input",{type:"hidden",name:"email2",value:""}),(0,t.jsx)("div",{className:"flex flex-col gap-4 lg:grid lg:grid-cols-2 lg:flex-col xl:flex-col",children:B}),(0,t.jsx)(c.default,{})]}),(0,t.jsx)(l.default,{className:"mt-6","data-prepr-variant-event":"Click",children:e.submitText||"Submit"})]})}])},542132,e=>{"use strict";var t=e.i(250465);e.i(480234);var i=e.i(769303),r=e.i(451647),n=e.i(838406),s=e.i(271780);let a=(0,s.createServerReference)("60282cbe5f54ca22b24ef65f3dea52c4a89f6a9faf",s.callServer,void 0,s.findSourceMapURL,"sendLeadCaptureForm");var o=e.i(347782),l=e.i(599926),c=e.i(26294),d=e.i(627940),u=e.i(314704),h=e.i(66362),p=e.i(88709);e.i(102719);var m=e.i(207285);let f="w-full p-4 rounded-xl border-[1px] border-input_gray_border bg-input_gray focus:border-blue-500 text-gray",g={message:"",errors:{email:[],name:[],phone:[]}},v=()=>
26(0,t.jsxs)("div",{className:"flex items-start gap-4 rounded-2xl bg-blue-100 px-6 py-4",children:[(0,t.jsx)("div",{children:(0,t.jsxs)("svg",{className:"animate-spin",width:"41",height:"40",viewBox:"0 0 41 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{opacity:"0.3",d:"M40.0176 20.0007C40.0176 31.0467 31.0633 40.0014 20.0176 40.0014C8.97188 40.0014 0.0175781 31.0467 0.0175781 20.0007C0.0175781 8.95461 8.97188 0 20.0176 0C31.0633 0 40.0176 8.95461 40.0176 20.0007ZM6.25392 20.0007C6.25392 27.6024 12.4161 33.7648 20.0176 33.7648C27.619 33.7648 33.7812 27.6024 33.7812 20.0007C33.7812 12.399 27.619 6.23655 20.0176 6.23655C12.4161 6.23655 6.25392 12.399 6.25392 20.0007Z",fill:"#5237E6"}),(0,t.jsx)("path",{d:"M36.8994 20.0007C38.6215 20.0007 40.0424 18.5963 39.775 16.8951C39.5302 15.3373 39.1014 13.8103 38.4952 12.3467C37.4901 9.92016 36.0169 7.7153 34.1597 5.85806C32.3025 4.00083 30.0978 2.52759 27.6712 1.52246C26.2078 0.916244 24.6809 0.487467 23.1233 0.24261C21.422 -0.0248262 20.0176 1.3961 20.0176 3.11827V3.11827C20.0176 4.84045 21.4311 6.20143 23.1093 6.58829C23.8507 6.75921 24.5784 6.99172 25.2847 7.28428C26.9546 7.97599 28.4719 8.98985 29.75 10.268C31.028 11.5461 32.0419 13.0634 32.7335 14.7334C33.0261 15.4397 33.2586 16.1676 33.4296 16.9091C33.8163 18.5872 35.1773 20.0007 36.8994 20.0007V20.0007Z",fill:"#5237E6"})]})}),(0,t.jsxs)("div",{className:"mt-2",children:[(0,t.jsx)("h4",{className:"text-lg font-semibold text-dark_gray",children:"Thank you for the registration!"}),(0,t.jsx)(i.BodyText,{color:"dark_gray",type:"small",className:"max-w-xs",children:"You are being redirected to the webinar page, where you will be able to watch the full webinar."})]})]}),y=({slug:e})=>
26(0,t.jsxs)("div",{className:"flex items-start gap-4 rounded-2xl bg-blue-100 px-6 py-4",children:[(0,t.jsx)("div",{children:(0,t.jsx)("svg",{width:"42",height:"40",viewBox:"0 0 42 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M21 40C13.8125 40 7.25 36.25 3.65625 30C0.0625 23.8281 0.0625 16.25 3.65625 10C7.25 3.82812 13.8125 0 21 0C28.1094 0 34.6719 3.82812 38.2656 10C41.8594 16.25 41.8594 23.8281 38.2656 30C34.6719 36.25 28.1094 40 21 40ZM29.8281 16.3281H29.75C30.5312 15.625 30.5312 14.4531 29.75 13.6719C29.0469 12.9688 27.875 12.9688 27.1719 13.6719L18.5 22.4219L14.8281 18.75C14.0469 17.9688 12.875 17.9688 12.1719 18.75C11.3906 19.4531 11.3906 20.625 12.1719 21.3281L17.1719 26.3281C17.875 27.1094 19.0469 27.1094 19.8281 26.3281L29.8281 16.3281Z",fill:"#5237E6"})})}),(0,t.jsxs)("div",{className:"mt-2",children:[(0,t.jsx)("h4",{className:"text-lg font-semibold text-dark_gray",children:"You're All Set!"}),(0,t.jsx)(i.BodyText,{color:"dark_gray",type:"small",className:"max-w-xs",children:"Thanks for registering. We'll send you a confirmation email with everything you need to know."})]})]}),x=({slug:e})=>{let[r,s]=(0,n.useState)(!1),a=`/resources/${e}/download`;return(0,n.useEffect)(()=>{let e=setTimeout(()=>{let e=document.getElementById("download");e?.click(),s(!0)},300);return()=>clearTimeout(e)}
26,[]),(0,t.jsxs)("div",{className:"flex items-start gap-4 rounded-2xl bg-blue-100 px-6 py-4",children:[(0,t.jsx)("div",{children:r?(0,t.jsx)("svg",{width:"42",height:"40",viewBox:"0 0 42 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M21 40C13.8125 40 7.25 36.25 3.65625 30C0.0625 23.8281 0.0625 16.25 3.65625 10C7.25 3.82812 13.8125 0 21 0C28.1094 0 34.6719 3.82812 38.2656 10C41.8594 16.25 41.8594 23.8281 38.2656 30C34.6719 36.25 28.1094 40 21 40ZM29.8281 16.3281H29.75C30.5312 15.625 30.5312 14.4531 29.75 13.6719C29.0469 12.9688 27.875 12.9688 27.1719 13.6719L18.5 22.4219L14.8281 18.75C14.0469 17.9688 12.875 17.9688 12.1719 18.75C11.3906 19.4531 11.3906 20.625 12.1719 21.3281L17.1719 26.3281C17.875 27.1094 19.0469 27.1094 19.8281 26.3281L29.8281 16.3281Z",fill:"#5237E6"})}):(0,t.jsxs)("svg",{className:"animate-spin",width:"41",height:"40",viewBox:"0 0 41 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{opacity:"0.3",d:"M40.0176 20.0007C40.0176 31.0467 31.0633 40.0014 20.0176 40.0014C8.97188 40.0014 0.0175781 31.0467 0.0175781 20.0007C0.0175781 8.95461 8.97188 0 20.0176 0C31.0633 0 40.0176 8.95461 40.0176 20.0007ZM6.25392 20.0007C6.25392 27.6024 12.4161 33.7648 20.0176 33.7648C27.619 33.7648 33.7812 27.6024 33.7812 20.0007C33.7812 12.399 27.619 6.23655 20.0176 6.23655C12.4161 6.23655 6.25392 12.399 6.25392 20.0007Z",fill:"#5237E6"}),(0,t.jsx)("path",{d:"M36.8994 20.0007C38.6215 20.0007 40.0424 18.5963 39.775 16.8951C39.5302 15.3373 39.1014 13.8103 38.4952 12.3467C37.4901 9.92016 36.0169 7.7153 34.1597 5.85806C32.3025 4.00083 30.0978 2.52759 27.6712 1.52246C26.2078 0.916244 24.6809 0.487467 23.1233 0.24261C21.422 -0.0248262 20.0176 1.3961 20.0176 3.11827V3.11827C20.0176 4.84045 21.4311 6.20143 23.1093 6.58829C23.8507 6.75921 24.5784 6.99172 25.2847 7.28428C26.9546 7.97599 28.4719 8.98985 29.75 10.268C31.028 11.5461 32.0419 13.0634 32.7335 14.7334C33.0261 15.4397 33.2586 16.1676 33.4296 16.9091C33.8163 18.5872 35.1773 20.0007 36.8994 20.0007V20.0007Z",fill:"#5237E6"})]})}),(0,t.jsxs)("div",{className:"mt-2",children:[(0,t.jsx)("h4",{className:"text-lg font-semibold text-dark_gray",children:r?"Download started":"Downloading..."}),(0,t.jsxs)(i.BodyText,{color:"dark_gray",type:"small",className:"max-w-xs",children:["The download will start automatically. If the download does not start,"," ",(0,t.jsxs)(o.Link,{href:a,id:"download",className:"text-blue-600 hover:underline",children:["click here."," "]})]})]})]})};e.s(["INPUT_FIELD_CLASSES",0,f,"default",0,function({slug:e,demoType:i,formType:s,webinarPage:o}){let[b,w]=(0,n.useActionState)(a,g),[C,S]=(0,n.useState)(""),[k,T]=n.default.useState(""),[E,P]=n.default.useState(""),[j,_]=n.default.useState(""),{executeRecaptcha:M}=(0,m.useReCaptcha)(),[A,N]=(0,n.useState)(!1),{setName:L,setEmail:O,email:D,name:R,setFormType:I}=(0,n.useContext)(c.MixpanelFormdataContext),F=async t=>{if(t.preventDefault(),S(""),!M)return void console.error("ReCAPTCHA not available");let r=await M("formSend");try{(await h.default.post("/api/recaptchaVerify",{gRecaptchaToken:r},{headers:{Accept:"application/json","Content-Type":"application/json"}})).data.success?(0,n.startTransition)(()=>{w(new FormData(t.target)),setTimeout(function(){l.default.identify(l.default.get_distinct_id()),l.default.people.set({$email:D,$name:R}),"event_registration"===s?(l.default.track("Event Registration",{$email:D,$name:R,resource:e,type:i}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"event_registration"})):(l.default.track("Resource Download",{$email:D,$name:R,resource:e,type:i}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"resource_download"})),N(!0),I(s)},500)}):S("Spam detected. Please try again.")}catch(e){S("An error occurred. Please try again.")}};return(0,n.useEffect)(()=>{T(document.title),P(window.location.href),_((0,u.getCookie)("hubspotutk")||"")},[]),(0,t.jsxs)("div",{className:"rounded-2xl bg-white p-6 lg:p-10",children:[(0,t.jsxs)(r.Heading,{heading:"h4",className:"mb-8",children:["download"===s&&"Download Guide","event_registration"===s&&o&&"Get instant access","event_registration"===s&&!o&&"Register now"]}),A?(0,t.jsxs)("div",{children:["event_registration"===s&&o&&(0,t.jsx)(v,{}
26),"event_registration"===s&&!o&&(0,t.jsx)(y,{slug:e}),"download"===s&&(0,t.jsx)(x,{slug:e})]}):(0,t.jsxs)("form",{className:"flex flex-col",method:"POST",onChange:({currentTarget:e})=>{let t=new FormData(e);L(t.get("name")),O(t.get("email"))},onSubmit:F,children:[C&&(0,t.jsx)("p",{className:"mt-2 text-sm text-red-600",id:"email-error",children:C}),(0,t.jsx)("input",{type:"hidden",name:"email2",value:""}),(0,t.jsx)("input",{id:"hutk",name:"hutk",value:j,type:"hidden"}),(0,t.jsx)("input",{id:"pageTitle",name:"pageTitle",value:k,type:"hidden"}),(0,t.jsx)("input",{id:"pageUri",name:"pageUri",value:E,type:"hidden"}),(0,t.jsx)("input",{id:"webinarPage",name:"webinarPage",value:o||[],type:"hidden"}),(0,t.jsx)("input",{type:"text",defaultValue:i,name:"type",hidden:!0}),(0,t.jsx)("input",{type:"text",defaultValue:e,name:"slug",hidden:!0}),(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row lg:flex-col",children:[(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)("input",{type:"text",name:"name",placeholder:"Your name *",required:!0,className:f}),b?.errors?.name&&(0,t.jsx)("p",{className:"mt-2 text-sm text-red-600",id:"email-error",children:b?.errors?.name[0]})]}),(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)("input",{type:"email",name:"email",placeholder:"Email *",required:!0,className:f}),b?.errors?.email&&(0,t.jsx)("p",{className:"mt-2 text-sm text-red-600",id:"email-error",children:b?.errors?.email[0]})]})]}),(0,t.jsx)(d.default,{})]}),(0,t.jsx)("p",{"aria-live":"polite",className:"sr-only",children:b?.message}),(0,t.jsx)("div",{children:(0,t.jsxs)(p.default,{className:"mt-8 ",children:["download"===s&&"Download","event_registration"===s&&o&&"Start watching","event_registration"===s&&!o&&"Register"]})})]})]})}],542132)},103189,310458,e=>{"use strict";e.s(["default",()=>Y],310458);var t,i,r=e.i(250465);e.i(480234),e.i(451647);var n=e.i(838406),s=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["Andorra","ad","376"],["Angola","ao","244"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54",{default:"(..) .... ....","/^11/":"(..) .... ....","/^15/":"(..) ... ....","/^(2|3|4|5)/":"(.) .... ....","/^9/":"(.) .... ....."},0],["Armenia","am","374",".. ......"],["Aruba","aw","297"],["Australia","au","61",{default:". .... ....","/^4/":"... ... ...","/^5(?!50)/":"... ... ...","/^1(3|8)00/":".... ... ...","/^13/":".. .. ..","/^180/":"... ...."},0,[]],["Austria","at","43"],["Azerbaijan","az","994","(..) ... .. .."],["Bahamas","bs","1242"],["Bahrain","bh","973",".... ...."],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375","(..) ... .. .."],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55","(..) .....-...."],["British Indian Ocean Territory","io","246"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599","",1],["Cayman Islands","ky","1","... ... ....",4,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","... .... ...."],["Colombia","co","57","... ... ...."],["Comoros","km","269"],["Congo","cd","243"],["Congo","cg","242"],["Costa Rica","cr","506","....-...."],["Côte d'Ivoire","ci","225",".. .. .. .. .."],["Croatia","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599","",0],["Cyprus","cy","357",".. ......"],["Czech Republic","cz","420","... ... ..."],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253",".. .. ...."],["Dominica","dm","1767"],["Dominican Republic","do","1","(...) ...-....",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372",".... ......"],["Ethiopia","et","251",".. ... ...."],["Faroe Islands","fo","298",".. .. .."],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594","... .. .. .."],["French Polynesia","pf","689",{"/^44/":".. .. ..","/^80[0-5]/":"... .. .. ..",default:".. .. .. .."}],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49","... ........."],["Ghana","gh","233"],["G
26ibraltar","gi","350"],["Greece","gr","30"],["Greenland","gl","299",".. .. .."],["Grenada","gd","1473"],["Guadeloupe","gp","590","... .. .. ..",0],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["India","in","91",".....-....."],["Indonesia","id","62"],["Iran","ir","98","... ... ...."],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972","... ... ...."],["Italy","it","39","... .......",0],["Jamaica","jm","1876"],["Japan","jp","81",".. .... ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-..",0],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965",".... ...."],["Kyrgyzstan","kg","996","... ... ..."],["Laos","la","856"],["Latvia","lv","371",".. ... ..."],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596","... .. .. .."],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mayotte","yt","262","... .. .. ..",1,["269","639"]],["Mexico","mx","52","... ... ....",0],["Micronesia","fm","691"],["Moldova","md","373","(..) ..-..-.."],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",{"/^06/":"(.). .........","/^6/":". .........","/^0(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":"(.).. ........","/^(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":".. ........","/^0/":"(.)... .......",default:"... ......."}],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["North Korea","kp","850"],["Norway","no","47","... .. ..."],["Oman","om","968",".... ...."],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63","... ... ...."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","(...) ...-....",3,["787","939"]],["Qatar","qa","974",".... ...."],["Réunion","re","262","... .. .. ..",0],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Pierre & Miquelon","pm","508",{"/^708/":"... ... ...","/^8/":"... .. .. ..",default:".. .. .."}],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe","st","239"],["Saudi Arabia","sa","966",".. ... ...."],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82","... .... ...."],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Swaziland","sz","268"],["Sweden","se","46","... ... ..."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380","(..) ... .. .."],["United Arab Emirates","ae","971",{default:".. ... ....","/^5[024568]/":".. ... ....","/^[234679]/":". ... ...."}],["United Kingdom","gb","44",".... ......"],["United States","us","1","(...) ...-....",0],["Uruguay","uy","598"],["Uzbekistan","uz","998",".. ... .. .."],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ....",1],["Venezuela","ve","58"],["Vietnam","vn","84"],["Wallis & Futuna","wf","681",".. .. .."],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],a=(...e)=>e.filter(e=>!!e).join(" ").trim(),o=({addPrefix:e,rawClassNames:t})=>a(((...e)=>a(...e).split(" ").map(e=>`react-international-phone-${e}`).join(" "))(...e),...t),l=e=>!!e&&/^\d+$/.test(e),c=({phone:e,prefix:t})=>e?`${t}${e.replace(/\D/g,"")}`:"";function d({value:e,country:t,insertDialCodeOnEmpty:i,trimNonDigitsEnd:r,countries:n,prefix:s,charAfterDialCode:a,forceDialCode:o,disableDialCodeAndPrefix:l,defaultMask:u,countryGuessingEnabled:p,disableFormatting:m,allowMaskOverflow:f}){let g=e;l&&(g=g.startsWith(`${s}`)?g:`${s}${t.dialCode}${g}`);let v=p?M({phone:g,countries:n,currentCountryIso2:t?.iso2}):void 0,y=v?.country??t,x=((e,t)=>{let i,r=!t.disableDialCodeAndPrefix&&t.forceDialCode,n=!t.disableDialCodeAndPrefix&&t.insertDialCodeOnEmpty,s=e,a=e=>t.trimNonDigitsEnd?e.trim():e;if(!s)return a(n&&!s.length||r?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:s);if((s=s.replace(/\D/g,""))===t.dialCode&&!t.disableDialCodeAndPrefix)return a(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(t.dialCode.startsWith(s)&&!t.disableDialCodeAndPrefix)return a(r?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:`${t.prefix}${s}`);if(!s.startsWith(t.dialCode)&&!t.disableDialCodeAndPrefix){if(r)return a(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(s.length<t.dialCode.length)return a(`${t.prefix}${s}`)}let{phoneLeftSide:o,phoneRightSide:l}=(i=t.dialCode.length,{phoneLeftSide:s.slice(0,i),phoneRightSide:s.slice(i)});return o=`${t.prefix}${o}${t.charAfterDialCode}`,l=(({value:e,mask:t,maskSymbol:i,offset:r=0,trimNonMaskCharsLeftover:n=!1,allowMaskOverflow:s=!1}
26)=>{if(e.length<r)return e;let a=e.slice(0,r),o=e.slice(r),l=t.split("").filter(e=>e===i).length,c=o.slice(0,l),d=s?o.slice(l):"",u=a,h=0;for(let e of t.split("")){if(h>=c.length){if(!n&&e!==i){u+=e;continue}break}e===i?(u+=c[h],h+=1):u+=e}return u+d})({value:l,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&0===l.length,allowMaskOverflow:t.allowMaskOverflow}),t.disableDialCodeAndPrefix&&(o=""),a(`${o}${l}`)})(g,{prefix:s,mask:P({phone:g,country:y,defaultMask:u,disableFormatting:m}),maskChar:h,dialCode:y.dialCode,trimNonDigitsEnd:r,charAfterDialCode:a,forceDialCode:o,insertDialCodeOnEmpty:i,disableDialCodeAndPrefix:l,allowMaskOverflow:f}),b=p&&!v?.fullDialCodeMatch?t:y;return{phone:c({phone:l?`${b.dialCode}${x}`:x,prefix:s}),inputValue:x,country:b}}var u={size:20,overrideLastItemDebounceMS:-1},h=".",p="us",m="",f="+",g="............",v=" ",y=200,x=!1,b=!1,w=!1,C=!1,S=!1,k=!1,T=s,E=({defaultCountry:e=p,value:t=m,countries:i=T,prefix:r=f,defaultMask:s=g,charAfterDialCode:a=v,historySaveDebounceMS:o=y,disableCountryGuess:h=x,disableDialCodePrefill:E=b,forceDialCode:P=w,disableDialCodeAndPrefix:j=C,disableFormatting:M=S,allowMaskOverflow:A=k,onChange:N,inputRef:L})=>{let O={countries:i,prefix:r,charAfterDialCode:a,forceDialCode:!j&&P,disableDialCodeAndPrefix:j,defaultMask:s,countryGuessingEnabled:!h,disableFormatting:M,allowMaskOverflow:A},D=(0,n.useRef)(null),R=L||D,I=e=>{Promise.resolve().then(()=>{typeof window>"u"||R.current!==document?.activeElement||R.current?.setSelectionRange(e,e)})},F=(0,n.useCallback)(e=>_({value:e,field:"iso2",countries:i}),[i]),[{phone:z,inputValue:B,country:V},$,H,U]=function(e,t){let i,r,s,{size:a,overrideLastItemDebounceMS:o,onChange:l}={...u,...t},[c,d]=(0,n.useState)(e),h=(0,n.useRef)([c]),p=(0,n.useRef)(0),m=(i=(0,n.useRef)(),r=(0,n.useRef)(Date.now()),s=(0,n.useCallback)(()=>{let e=Date.now(),t=i.current?e-r.current:void 0;return i.current=r.current,r.current=e,t},[]),(0,n.useMemo)(()=>({check:s}),[s]));return[c,(0,n.useCallback)((e,t)=>{let i=h.current[p.current];if(e===i||"object"==typeof e&&"object"==typeof i&&((e,t)=>{let i=Object.keys(e),r=Object.keys(t);if(i.length!==r.length)return!1;for(let r of i)if(e[r]!==t[r])return!1;return!0})(e,i))return;let r=o>0,n=m.check(),s=!r||void 0===n||n>o;if(t?.overrideLastItem!==void 0?t.overrideLastItem:!s)h.current=[...h.current.slice(0,p.current),e];else{let t=h.current.length>=a;h.current=[...h.current.slice(+!!t,p.current+1),e],t||(p.current+=1)}d(e),l?.(e)},[l,o,a,m]),(0,n.useCallback)(()=>{if(p.current<=0)return{success:!1};let e=h.current[p.current-1];return d(e),p.current-=1,l?.(e),{success:!0,value:e}},[l]),(0,n.useCallback)(()=>{if(p.current+1>=h.current.length)return{success:!1};let e=h.current[p.current+1];return d(e),p.current+=1,l?.(e),{success:!0,value:e}},[l])]}(()=>{let r=_({value:e,field:"iso2",countries:i});r||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let{phone:n,inputValue:s,country:a}=d({value:t,country:r||_({value:"us",field:"iso2",countries:i}),insertDialCodeOnEmpty:!E,...O});return I(s.length),{phone:n,inputValue:s,country:a.iso2}},{overrideLastItemDebounceMS:o,onChange:(0,n.useCallback)(({inputValue:e,phone:t,country:i})=>{N&&N({phone:t,inputValue:e,country:F(i)})},[F,N])}),G=(0,n.useMemo)(()=>F(V),[V,F]);(0,n.useEffect)(()=>{let e=R.current;if(!e)return;let t=e=>{if(!e.key)return;let t=e.ctrlKey,i=e.metaKey,r=e.shiftKey;if("z"===e.key.toLowerCase()){if(!(typeof window>"u")&&window.navigator.userAgent.toLowerCase().includes("macintosh")){if(!i)return}else if(!t)return;r?U():H()}};return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}},[R,H,U]);let q=(0,n.useCallback)((e,t={focusOnInput:!1})=>{let n=_({value:e,field:"iso2",countries:i});n?($({inputValue:j?"":`${r}${n.dialCode}${a}`,phone:`${r}${n.dialCode}`,country:n.iso2}),t.focusOnInput&&Promise.resolve().then(()=>{R.current?.focus()})):console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`)}
26,[i,j,r,a,$,R]),[W,X]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{if(!W){X(!0),t!==z&&N?.({inputValue:B,phone:z,country:G});return}if(t===z)return;let{phone:e,inputValue:i,country:r}=d({value:t,country:G,insertDialCodeOnEmpty:!E,...O});$({phone:e,inputValue:i,country:r.iso2})},[t]),{phone:z,inputValue:B,country:G,setCountry:q,handlePhoneValueChange:e=>{e.preventDefault();let{phone:i,inputValue:r,country:n,cursorPosition:s}=((e,{country:t,insertDialCodeOnEmpty:i,phoneBeforeInput:r,prefix:n,charAfterDialCode:s,forceDialCode:a,disableDialCodeAndPrefix:o,countryGuessingEnabled:u,defaultMask:h,disableFormatting:p,countries:m,allowMaskOverflow:f})=>{let g=e.nativeEvent,v=g.inputType,y=(e=>{if(e?.toLocaleLowerCase().includes("delete"))return e?.toLocaleLowerCase().includes("forward")?"forward":"backward"})(v),x=!!v?.startsWith("insertFrom"),b="insertText"===v,w=g?.data||void 0,C=e.target.value,S=e.target.selectionStart??0;if(v?.includes("history"))return{inputValue:r,phone:c({phone:r,prefix:n}),cursorPosition:r.length,country:t};if(b&&!l(w)&&C!==n)return{inputValue:r,phone:c({phone:o?`${t.dialCode}${r}`:r,prefix:n}),cursorPosition:S-(w?.length??0),country:t};if(a&&!C.startsWith(`${n}${t.dialCode}`)&&!x){let e=C?r:`${n}${t.dialCode}${s}`;return{inputValue:e,phone:c({phone:e,prefix:n}),cursorPosition:n.length+t.dialCode.length+s.length,country:t}}let{phone:k,inputValue:T,country:E}=d({value:C,country:t,trimNonDigitsEnd:"backward"===y,insertDialCodeOnEmpty:i,countryGuessingEnabled:u,countries:m,prefix:n,charAfterDialCode:s,forceDialCode:a,disableDialCodeAndPrefix:o,disableFormatting:p,defaultMask:h,allowMaskOverflow:f}),P=(({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:i,cursorPositionAfterInput:r,leftOffset:n=0,deletion:s})=>{if(r<n)return n;if(!e)return i.length;let a=null;for(let e=r-1;e>=0;e-=1)if(l(t[e])){a=e;break}if(null===a){for(let e=0;e<t.length;e+=1)if(l(i[e]))return e;return t.length}let o=0;for(let e=0;e<a;e+=1)l(t[e])&&(o+=1);let c=0,d=0;for(let e=0;e<i.length&&(c+=1,l(i[e])&&(d+=1),!(d>=o+1));e+=1);if("backward"!==s)for(;!l(i[c])&&c<i.length;)c+=1;return c})({cursorPositionAfterInput:S,phoneBeforeInput:r,phoneAfterInput:C,phoneAfterFormatted:T,leftOffset:a?n.length+t.dialCode.length+s.length:0,deletion:y});return{phone:k,inputValue:T,cursorPosition:P,country:E}})(e,{country:G,phoneBeforeInput:B,insertDialCodeOnEmpty:!1,...O});return $({inputValue:r,phone:i,country:n.iso2}),I(s),t},inputRef:R}},P=({phone:e,country:t,defaultMask:i="............",disableFormatting:r=!1})=>{let n=t.format,s=e=>r?e.replace(RegExp(`[^${h}]`,"g"),""):e;if(!n)return s(i);if("string"==typeof n)return s(n);if(!n.default)return console.error(`[react-international-phone]: default mask for ${t.iso2} is not provided`),s(i);let a=Object.keys(n).find(i=>{if("default"===i)return!1;if("/"!==i.charAt(0)||"/"!==i.charAt(i.length-1))return console.error(`[react-international-phone]: format regex "${i}" for ${t.iso2} is not valid`),!1;let r=new RegExp(i.substring(1,i.length-1)),n=e.replace(t.dialCode,"");return r.test(n.replace(/\D/g,""))});return s(a?n[a]:n.default)},j=e=>{let[t,i,r,n,s,a]=e;return{name:t,iso2:i,dialCode:r,format:n,priority:s,areaCodes:a}},_=({field:e,value:t,countries:i=s})=>{if(["priority"].includes(e))throw Error(`Field "${e}" is not supported`);let r=i.find(i=>t===j(i)[e]);if(r)return j(r)},M=({phone:e,countries:t=s,currentCountryIso2:i})=>{let r={country:void 0,fullDialCodeMatch:!1};if(!e)return r;let n=e.replace(/\D/g,"");if(!n)return r;let a=r,o=({country:e,fullDialCodeMatch:t})=>{let i=e.dialCode===a.country?.dialCode,r=(e.priority??0)<(a.country?.priority??0);(!i||r)&&(a={country:e,fullDialCodeMatch:t})};for(let e of t){let t=j(e),{dialCode:i,areaCodes:r}=t;if(n.startsWith(i)){let e=!a.country||Number(i)>=Number(a.country.dialCode);if(r){let e=n.substring(i.length);for(let i of r)if(e.startsWith(i))return{country:t,fullDialCodeMatch:!0}}(e||i===n||!a.fullDialCodeMatch)&&o({country:t,fullDialCodeMatch:!0})}a.fullDialCodeMatch||n.length<i.length&&i.startsWith(n)&&(!a.country||Number(i)<=Number(a.country.dialCode))&&o({country:t,fullDialCodeMatch:!1})}if(i){let e=_({value:i,field:"iso2",countries:t});if(!e)return a;let r=!!e&&(e=>{if(!e?.areaCodes)return!1;let t=n.substring(e.dialCode.length);return e.areaCodes.some(e=>e.startsWith(t))})(e);a&&a.country?.dialCode===e.dialCode&&a.country!==e&&a.fullDialCodeMatch&&(!e.areaCodes||r)&&(a={country:e,fullDialCodeMatch:!0})}return a},A="abcdefghijklmnopqrstuvwxyz".split("").reduce((e,t,i)=>({...e,[t]:Number(parseInt("1f1e6",16)+i).toString(16)}),{}),N=({iso2:e,size:t,src:i,protocol:r="https",disableLazyLoading:s,className:a,style:l,...c})=>e?n.default.createElement("img",{className:o({addPrefix:["flag-emoji"],rawClassNames:[a]}),src:(()=>
26{if(i)return i;let t=[A[e[0]],A[e[1]]].join("-");return`${r}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${t}.svg`})(),width:t,height:t,draggable:!1,"data-country":e,loading:s?void 0:"lazy",style:{width:t,height:t,...l},alt:"",...c}):n.default.createElement("img",{className:o({addPrefix:["flag-emoji"],rawClassNames:[a]}),width:t,height:t,...c}),L=({show:e,dialCodePrefix:t="+",selectedCountry:i,countries:r=s,preferredCountries:a=[],flags:l,onSelect:c,onClose:d,...u})=>{let h=(0,n.useRef)(null),p=(0,n.useRef)(),m=(0,n.useMemo)(()=>{if(!a||!a.length)return r;let e=[],t=[...r];for(let i of a){let r=t.findIndex(e=>j(e).iso2===i);if(-1!==r){let i=t.splice(r,1)[0];e.push(i)}}return e.concat(t)},[r,a]),f=(0,n.useRef)({updatedAt:void 0,value:""}),g=(0,n.useCallback)(e=>m.findIndex(t=>j(t).iso2===e),[m]),[v,y]=(0,n.useState)(g(i)),x=()=>{p.current!==i&&y(g(i))},b=(0,n.useCallback)(e=>{y(g(e.iso2)),c?.(e)},[c,g]),w=e=>{let t=m.length-1;y(i=>{let r="prev"===e?i-1:"next"===e?i+1:"last"===e?t:0;return r<0?0:r>t?t:r})},C=(0,n.useCallback)(()=>{var e;let t,i,r,n,s;if(!h.current||void 0===v)return;let a=j(m[v]).iso2;if(a===p.current)return;let o=h.current.querySelector(`[data-country="${a}"]`);o&&(e=h.current,"block"!==(t=e.style.display)&&(e.style.display="block"),i=e.getBoundingClientRect(),n=(r=o.getBoundingClientRect()).top-i.top,s=i.bottom-r.bottom,n>=0&&s>=0||(Math.abs(n)<Math.abs(s)?e.scrollTop+=n:e.scrollTop-=s),e.style.display=t,p.current=a)},[v,m]);return(0,n.useEffect)(()=>{C()},[v,C]),(0,n.useEffect)(()=>{h.current&&(e?h.current.focus():x())},[e]),(0,n.useEffect)(()=>{x()},[i]),n.default.createElement("ul",{ref:h,role:"listbox",className:o({addPrefix:["country-selector-dropdown"],rawClassNames:[u.className]}),style:{display:e?"block":"none",...u.style},onKeyDown:e=>{var t;let i,r;if(e.stopPropagation(),"Enter"===e.key){e.preventDefault(),b(j(m[v]));return}if("Escape"===e.key)return void d?.();if("ArrowUp"===e.key){e.preventDefault(),w("prev");return}if("ArrowDown"===e.key){e.preventDefault(),w("next");return}if("PageUp"===e.key){e.preventDefault(),w("first");return}if("PageDown"===e.key){e.preventDefault(),w("last");return}" "===e.key&&e.preventDefault(),1!==e.key.length||e.altKey||e.ctrlKey||e.metaKey||(t=e.key.toLocaleLowerCase(),i=f.current.updatedAt&&new Date().getTime()-f.current.updatedAt.getTime()>1e3,f.current={value:i?t:`${f.current.value}${t}`,updatedAt:new Date},-1!==(r=m.findIndex(e=>j(e).name.toLowerCase().startsWith(f.current.value)))&&y(r))},onBlur:d,tabIndex:-1,"aria-activedescendant":`react-international-phone__${j(m[v]).iso2}-option`},m.map((e,r)=>{let s=j(e),c=s.iso2===i,d=r===v,h=a.includes(s.iso2),p=r===a.length-1,m=l?.find(e=>e.iso2===s.iso2);return n.default.createElement(n.default.Fragment,{key:s.iso2},n.default.createElement("li",{"data-country":s.iso2,role:"option","aria-selected":c,"aria-label":`${s.name} ${t}${s.dialCode}`,id:`react-international-phone__${s.iso2}-option`,className:o({addPrefix:["country-selector-dropdown__list-item",h&&"country-selector-dropdown__list-item--preferred",c&&"country-selector-dropdown__list-item--selected",d&&"country-selector-dropdown__list-item--focused"],rawClassNames:[u.listItemClassName,h&&u.listItemPreferredClassName,c&&u.listItemSelectedClassName,d&&u.listItemFocusedClassName]}),onClick:()=>b(s),style:u.listItemStyle,title:s.name},n.default.createElement(N,{iso2:s.iso2,src:m?.src,className:o({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[u.listItemFlagClassName]}),style:u.listItemFlagStyle}),n.default.createElement("span",{className:o({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[u.listItemCountryNameClassName]}),style:u.listItemCountryNameStyle},s.name),n.default.createElement("span",{className:o({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[u.listItemDialCodeClassName]}),style:u.listItemDialCodeStyle},t,s.dialCode)),p?n.default.createElement("hr",{className:o({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[u.preferredListDividerClassName]}),style:u.preferredListDividerStyle}):null)}))},O=n.default.memo(({selectedCountry:e,onSelect:t,disabled:i,hideDropdown:r,countries:a=s,preferredCountries:l=[],flags:c,renderButtonWrapper:d,...u})=>
26{let h,p,[m,f]=(0,n.useState)(!1),g=(0,n.useMemo)(()=>{if(e)return _({value:e,field:"iso2",countries:a})},[a,e]),v=(0,n.useRef)(null);return n.default.createElement("div",{className:o({addPrefix:["country-selector"],rawClassNames:[u.className]}),style:u.style,ref:v},(h={title:g?.name,onClick:()=>f(e=>!e),onMouseDown:e=>e.preventDefault(),onKeyDown:e=>{e.key&&["ArrowUp","ArrowDown"].includes(e.key)&&(e.preventDefault(),f(!0))},disabled:r||i,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":m},p=n.default.createElement("div",{className:o({addPrefix:["country-selector-button__button-content"],rawClassNames:[u.buttonContentWrapperClassName]}),style:u.buttonContentWrapperStyle},n.default.createElement(N,{iso2:e,src:c?.find(t=>t.iso2===e)?.src,className:o({addPrefix:["country-selector-button__flag-emoji",i&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[u.flagClassName]}),style:{visibility:e?"visible":"hidden",...u.flagStyle}}),!r&&n.default.createElement("div",{className:o({addPrefix:["country-selector-button__dropdown-arrow",i&&"country-selector-button__dropdown-arrow--disabled",m&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[u.dropdownArrowClassName]}),style:u.dropdownArrowStyle})),d?d({children:p,rootProps:h}):n.default.createElement("button",{...h,type:"button",className:o({addPrefix:["country-selector-button",m&&"country-selector-button--active",i&&"country-selector-button--disabled",r&&"country-selector-button--hide-dropdown"],rawClassNames:[u.buttonClassName]}),"data-country":e,style:u.buttonStyle},p)),n.default.createElement(L,{show:m,countries:a,preferredCountries:l,flags:c,onSelect:e=>{f(!1),t?.(e)},selectedCountry:e,onClose:()=>{f(!1)},...u.dropdownStyleProps}))}),D=({dialCode:e,prefix:t,disabled:i,style:r,className:s})=>n.default.createElement("div",{className:o({addPrefix:["dial-code-preview",i&&"dial-code-preview--disabled"],rawClassNames:[s]}),style:r},`${t}${e}`);(0,n.forwardRef)(({value:e,onChange:t,countries:i=s,preferredCountries:r,hideDropdown:a,showDisabledDialCodeAndPrefix:l,disableFocusAfterCountrySelect:c,flags:d,style:u,className:h,inputStyle:p,inputClassName:m,countrySelectorStyleProps:f,dialCodePreviewStyleProps:g,inputProps:v,placeholder:y,disabled:x,name:b,onFocus:w,onBlur:C,required:S,autoFocus:k,...T},P)=>{let j=(0,n.useCallback)(e=>{t?.(e.phone,{country:e.country,inputValue:e.inputValue})},[t]),{phone:_,inputValue:M,inputRef:A,country:N,setCountry:L,handlePhoneValueChange:R}=E({value:e,countries:i,...T,onChange:j}),I=T.disableDialCodeAndPrefix&&l&&N?.dialCode,F=(0,n.useCallback)(e=>{L(e.iso2,{focusOnInput:!c})},[L,c]);return(0,n.useImperativeHandle)(P,()=>A.current?Object.assign(A.current,{setCountry:L,state:{phone:_,inputValue:M,country:N}}):null,[A,L,_,M,N]),n.default.createElement("div",{ref:P,className:o({addPrefix:["input-container"],rawClassNames:[h]}),style:u},n.default.createElement(O,{onSelect:F,flags:d,selectedCountry:N?.iso2,countries:i,preferredCountries:r,disabled:x,hideDropdown:a,...f}),I&&n.default.createElement(D,{dialCode:N.dialCode,prefix:T.prefix??"+",disabled:x,...g}),n.default.createElement("input",{onChange:R,value:M,type:"tel",ref:A,className:o({addPrefix:["input",x&&"input--disabled"],rawClassNames:[m]}),placeholder:y,disabled:x,style:p,name:b,onFocus:w,onBlur:C,autoFocus:k,required:S,...v}))});var R=e.i(271780);R.callServer,R.findSourceMapURL,e.i(26294),e.i(627940),e.i(314704),e.i(599926);var I=e.i(304153),F=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function z(){return(z=Object.assign.bind()).apply(this,arguments)}function B(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V(e,t){return(V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var $=function(e){function t(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(B(t)),t.handleErrored=t.handleErrored.bind(B(t)),t.handleChange=t.handleChange.bind(B(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(B(t)),t}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,V(t,e);var i=t.prototype;return i.getCaptchaFunction=function(e){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[e]:this.props.grecaptcha[e]:null},i.getValue=function(){var e=this.getCaptchaFunction("getResponse");return e&&void 0!==this._widgetId?e(this._widgetId):null},i.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},i.execute=function(){var e=this.getCaptchaFunction("execute");
26if(e&&void 0!==this._widgetId)return e(this._widgetId);this._executeRequested=!0},i.executeAsync=function(){var e=this;return new Promise(function(t,i){e.executionResolve=t,e.executionReject=i,e.execute()})},i.reset=function(){var e=this.getCaptchaFunction("reset");e&&void 0!==this._widgetId&&e(this._widgetId)},i.forceReset=function(){var e=this.getCaptchaFunction("reset");e&&e()},i.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},i.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},i.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},i.explicitRender=function(){var e=this.getCaptchaFunction("render");if(e&&void 0===this._widgetId){var t=document.createElement("div");this._widgetId=e(t,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(t)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},i.componentDidMount=function(){this.explicitRender()},i.componentDidUpdate=function(){this.explicitRender()},i.handleRecaptchaRef=function(e){this.captcha=e},i.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,e.isolated,function(e,t){if(null==e)return{};var i,r,n={},s=Object.keys(e);for(r=0;r<s.length;r++)i=s[r],t.indexOf(i)>=0||(n[i]=e[i]);return n}(e,F));return n.createElement("div",z({},t,{ref:this.handleRecaptchaRef}))},t}(n.Component);$.displayName="ReCAPTCHA",$.propTypes={sitekey:I.default.string.isRequired,onChange:I.default.func,grecaptcha:I.default.object,theme:I.default.oneOf(["dark","light"]),type:I.default.oneOf(["image","audio"]),tabindex:I.default.number,onExpired:I.default.func,onErrored:I.default.func,size:I.default.oneOf(["compact","normal","invisible"]),stoken:I.default.string,hl:I.default.string,badge:I.default.oneOf(["bottomright","bottomleft","inline"]),isolated:I.default.bool},$.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var H=e.i(705927);function U(){return(U=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e}).apply(this,arguments)}var G={},q=0,W="onloadcallback";function X(){return"u">typeof window&&window.recaptchaOptions||{}}function Y({errors:e,error:t}){let{inputValue:i,phone:n,country:s,setCountry:a,handlePhoneValueChange:o,inputRef:l}=E({defaultCountry:"nl",value:"+31"});return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("div",{className:"absolute inset-y-0 left-0 flex h-full items-stretch border-r border-input_gray_border",children:(0,r.jsx)(O,{selectedCountry:s.iso2,className:"flex h-full items-stretch rounded-md !bg-transparent p-4",buttonClassName:"!h-full !border-none",buttonStyle:{backgroundColor:"transparent"},dropdownArrowClassName:"!hidden",onSelect:({iso2:e})=>a(e)})}),(0,r.jsx)("input",{type:"text",name:"phone-number",id:"phone-number",value:i,className:"w-full p-4 rounded-xl border-[1px] border-input_gray_border bg-input_gray focus:border-blue-500 text-gray pl-20",placeholder:"+31 6",onChange:o})]}),t&&(0,r.jsx)("p",{className:"mt-2 text-sm text-red-600",id:"phone-error",children:t}),e?.phone&&(0,r.jsx)("p",{className:"mt-2 text-sm text-red-600",id:"phone-error",children:e?.phone[0]})]})}(t=function(){var e=X(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+W+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+W+"&render=explicit"},i=i={callbackName:W,globalName:"grecaptcha",attributes:X().nonce?{nonce:X().nonce}:{}},function(e){var r=e.displayName||e.name||"Component",s=function(r){function s(e,t){var i;return(i=r.call(this,e,t)||this).state={},i.__scriptURL="",i}s.prototype=Object.create(r.prototype),s.prototype.constructor=s,s.__proto__=r;var a=s.prototype;return a.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+q++),this.__scriptLoaderID},a.setupScriptURL=function(){return this.__scriptURL="function"==typeof t?t():t,this.__scriptURL},a.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)})},a.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=G[this.__scriptURL];if(!e||!e.loaded)throw Error("Script is not loaded.");for(var t in e.observers)e.observers[t](e);delete window[i.callbackName]},a.componentDidMount=function(){var e=this,t=this.setupScriptURL(),r=this.asyncScriptLoaderGetScriptLoaderID(),n=i,s=n.globalName,a=n.callbackName,o=n.scriptId;if(s&&void 0!==window[s]&&(G[t]={loaded:!0,observers:{}}),G[t]){var l=G[t];return l&&(l.loaded||l.errored)?void this.asyncScriptLoaderHandleLoad(l):void(l.observers[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var c={};c[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)},G[t]={loaded:!1,observers:c};var d=document.createElement("script");for(var u in d.src=t,d.async=!0,i.attributes)d.setAttribute(u,i.attributes[u]);o&&(d.id=o);var h=function(e){if(G[t]){var i=G[t].observers;for(var r in i)e(i[r])&&delete i[r]}};a&&"u">typeof window&&(window[a]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),d.onload=function(){var e=G[t];e&&(e.loaded=!0,h(function(t){return!a&&(t(e),!0)}))},d.onerror=function(){var e=G[t];e&&(e.errored=!0,h(function(t){return t(e),!0}))},document.body.appendChild(d)},a.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===i.removeOnUnmount)for(var t=document.getElementsByTagName("script"),r=0;r<t.length;r+=1)t[r].src.indexOf(e)>-1&&t[r].parentNode&&t[r].parentNode.removeChild(t[r]);var n=G[e];n&&(delete n.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===i.removeOnUnmount&&delete G[e])},a.render=function(){var t=i.globalName,r=this.props,s=(r.asyncScriptOnLoad,r.forwardedRef),a=function(e,t){if(null==e)return{};var i,r,n={},s=Object.keys(e);for(r=0;r<s.length;r++)t.indexOf(i=s[r])>=0||(n[i]=e[i]);return n}(r,["asyncScriptOnLoad","forwardedRef"]);return t&&"u">typeof window&&(a[t]=void 0!==window[t]?window[t]:void 0),a.ref=s,(0,n.createElement)(e,a)},s}(n.Component),a=(0,n.forwardRef)(function(e,t){return(0,n.createElement)(s,U({},e,{forwardedRef:t}))});return a.displayName="AsyncScriptLoader("+r+")",a.propTypes={asyncScriptOnLoad:I.default.func},(0,H.default)(a,e)})($),R.callServer,R.findSourceMapURL,e.i(659315),e.i(602821),e.i(46951),R.callServer,R.findSourceMapURL,e.s(["INPUT_FIELD_CLASSES",0,"w-full p-4 rounded-xl border-[1px] border-input_gray_border bg-input_gray focus:border-blue-500 text-gray"],103189)},225340,48457,678469,885321,e=>{"use strict";var t=e.i(250465),i=e.i(46951);
26e.s(["default",0,function({name:e,checked:r=!0,className:n,onChange:s}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:(0,i.cn)(r?"bg-blue-600":"bg-gray-200","relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-blue-600 focus:ring-offset-2"),children:[(0,t.jsx)("span",{className:"sr-only",children:"Use setting"}),(0,t.jsx)("span",{"aria-hidden":"true",className:(0,i.cn)(r?"translate-x-5":"translate-x-0","pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out")})]}),(0,t.jsx)("input",{type:"checkbox",name:e,value:"true",className:"hidden",id:e,defaultChecked:r,onChange:s})]})}],225340),e.i(621311);var r=e.i(347664),n=e.i(489373);e.s(["default",0,function(e){let s,a=(0,r.getFragmentData)(n.COMPONENT_PROJECT_FEATURE_FRAGMENT,e.feature),o={community:a?.community,medium:a?.medium,enterprise:a?.enterprise};switch(e.selector){case"community":s=o.community;break;case"FLEX":s=o.medium;break;case"enterprise":s=o.enterprise}return(0,t.jsxs)("li",{className:(0,i.cn)("flex items-center",e.popular?"text-white":"text-dark_gray"),children:[(0,t.jsx)("svg",{viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:(0,i.cn)("mr-2.5 size-3.5",e.popular?"fill-white":"fill-blue-600"),children:(0,t.jsx)("path",{d:"M14.6875 1.3125C15.0938 1.6875 15.0938 2.34375 14.6875 2.71875L6.6875 10.7188C6.3125 11.125 5.65625 11.125 5.28125 10.7188L1.28125 6.71875C0.875 6.34375 0.875 5.6875 1.28125 5.3125C1.65625 4.90625 2.3125 4.90625 2.6875 5.3125L5.96875 8.59375L13.2812 1.3125C13.6562 0.90625 14.3125 0.90625 14.6875 1.3125Z"})}),s&&s," ",a?.headline]})}],48457);var s=e.i(54189);let a=(0,s.graphql)(`
27    fragment CProjectSizeF on ProjectSize {
28        _id
29        headline
30        text
31        price
32        price_monthly
33        price_annually
34        price_helptext
35        cta {
36            ...ButtonF
37        }
38        features_title
39        features {
40            ...CProjectFeatureF
41        }
42        selector
43    }
44`);e.s(["COMPONENT_PROJECT_SIZE_FRAGMENT",0,a],678469);let o=(0,s.graphql)(`
45    fragment SPricingCalculatorF on SectionPricingCalculator {
46        _id
47        plan {
48            ...CProjectSizeF
49        }
50        add_on_helptext
51        service_level {
52            ...CServiceLevelF
53        }
54        button: cta {
55            ...ButtonF
56        }
57        button_sales: contact_sales_button {
58            ...ButtonF
59        }
60    }
61`),l=(0,s.graphql)(`
62    fragment SPricingF on SectionPricing {
63        plans {
64            ...CProjectSizeF
65        }
66        add_ons_headline
67        add_ons {
68            ...CAddonsF
69        }
70    }
71`);e.s(["SECTION_PRICING_CALCULATOR_FRAGMENT",0,o,"SECTION_PRICING_FRAGMENT",0,l],885321)},649721,e=>{"use strict";var t=e.i(250465),i=e.i(838406),r=e.i(594055);e.i(621311);var n=e.i(347664),s=e.i(683429),a=e.i(278928),o=e.i(365807),l=e.i(356383),c=e.i(279149),d=e.i(46951);let u=(0,e.i(54189).graphql)(`
72    fragment CFeatureTooltipF on ComponentTooltip {
73        headline
74        text
75        cta {
76            ...ButtonF
77        }
78    }
79`);e.s(["default",0,e=>{let h=(0,i.useRef)(void 0),p=(0,i.useRef)(void 0),m=(0,i.useRef)(null),f=(0,i.useRef)(null),g=(0,n.getFragmentData)(u,e.content),{refs:v,floatingStyles:y,context:x,middlewareData:b}=(0,o.useFloating)({middleware:[(0,s.offset)(20),(0,l.flip)(),(0,l.shift)(),(0,l.autoPlacement)(),(0,s.arrow)({element:m})],whileElementsMounted:a.autoUpdate}),w=(0,o.useClick)(x),C=(0,o.useHover)(x),S=(0,o.useDismiss)(x),k=(0,o.useRole)(x),{getReferenceProps:T,getFloatingProps:E}=(0,o.useInteractions)([C,w,S,k]);return(0,t.jsx)(t.Fragment,{children:g&&(g.headline||g.text)&&(0,t.jsx)(r.Popover,{className:"relative",ref:f,as:"span",children:({open:i,close:n})=>(0,t.jsxs)("span",{onMouseEnter:()=>{clearTimeout(p.current),i||h.current?.click()},onMouseLeave:()=>{p.current=setTimeout(()=>{i&&h.current?.click()},120)},children:[(0,t.jsx)("span",{className:"hidden md:inline",ref:v.setReference,...T(),children:(0,t.jsx)(r.Po
79pover.Button,{ref:h,as:"span",children:(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",className:(0,d.cn)("inline size-3.5 fill-blue-400 hover:fill-blue-600","group-[.disabled]/addons:fill-[#E2E2E2]",e.className),children:(0,t.jsx)("path",{d:"M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336c-13.3 0-24 10.7-24 24s10.7 24 24 24h80c13.3 0 24-10.7 24-24s-10.7-24-24-24h-8V248c0-13.3-10.7-24-24-24H216c-13.3 0-24 10.7-24 24s10.7 24 24 24h24v64H216zm40-144a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"})})})}),(0,t.jsx)(o.FloatingFocusManager,{context:x,modal:!1,children:(0,t.jsxs)(r.Popover.Panel,{className:"z-10 flex w-screen max-w-[380px]",ref:v.setFloating,style:y,...E(),children:[(0,t.jsx)(o.FloatingArrow,{ref:m,context:x,fill:"#1A202C"}),(0,t.jsx)("div",{className:"flex w-[378px] not-prose flex-col rounded-xl bg-dark_gray text-white shadow-[rgba(84,_84,_84,_0.45)_0px_3px_16px_0px]",children:(0,t.jsx)("div",{className:"w-full",children:(0,t.jsxs)("div",{className:"flex flex-col gap-1 p-6",children:[g.headline?.trim()&&(0,t.jsx)("h4",{className:"not-prose text-lg font-bold leading-5 text-white!",children:g.headline}),g.text&&(0,t.jsx)("p",{className:"text-wrap text-sm font-normal text-white/80",children:g.text}),g.cta&&(0,t.jsx)(c.default,{className:"text-sm",button:g.cta})]})})})]})})]})})})}],649721)},138921,e=>{"use strict";var t=e.i(250465);e.i(380610);var i=e.i(853770),r=e.i(375061);e.i(621311);var n=e.i(347664),s=e.i(838406);e.i(480234);var a=e.i(769303),o=e.i(451647),l=e.i(48457),c=e.i(46951),d=e.i(225340);function u({children:e,className:i}){return(0,t.jsx)("div",{className:(0,c.cn)("flex items-center border-b-2 border-blue-200 bg-blue-100 p-6 first:mt-6 first:rounded-t-lg last:rounded-b-lg last:border-0",i),children:(0,t.jsx)("div",{className:"w-full",children:e})})}var h=e.i(649721);function p(e){return(0,t.jsx)("div",{className:"w-full text-base font-bold tracking-[0%] text-dark_gray lg:text-lg lg:leading-[1.5rem]",children:(0,t.jsxs)("div",{className:"flex items-center",children:[e.headline," ",e.label&&(0,t.jsx)("span",{className:"ml-2.5 rounded bg-white px-2 py-1 text-base font-normal leading-6",children:e.label}),e.tooltip&&(0,t.jsx)(h.default,{content:e.tooltip,className:"ml-2.5"}),0!==e.price&&void 0!==e.price&&(0,t.jsxs)("div",{className:"ml-auto font-semibold tabular-nums group-[.disabled]/addons:hidden",children:["€",e.price]})]})})}function m({children:e}){return(0,t.jsx)("div",{className:"mt-2 flex w-full flex-col gap-4 md:flex-row md:flex-wrap lg:mt-4",children:e})}function f({name:e,checked:i=!1,className:r,onChange:n}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:(0,c.cn)("size-5 shrink-0 overflow-hidden rounded-[3px] border-2 border-blue-400 bg-white group-has-[.selected]:border-blue-600 group-has-[:hover]:border-blue-600",r,i&&"selected","group-[.disabled]/addons:!border-light_gray"),children:(0,t.jsx)("div",{className:(0,c.cn)("flex h-full w-full items-center group-has-[.selected]:bg-blue-600 group-has-[:hover.selected]:bg-blue-600","group-[.disabled]/addons:hidden"),children:(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",className:"mx-auto size-3.5 fill-current text-transparent group-has-[.selected]:text-white group-has-[:hover.selected]:text-white",children:(0,t.jsx)("path",{d:"M448 130L431 147 177.5 399.2l-16.9 16.9-16.9-16.9L17 273.1 0 256.2l33.9-34 17 16.9L160.6 348.3 397.1 112.9l17-16.9L448 130z"})})})}),(0,t.jsx)("input",{type:"checkbox",name:e,value:"true",className:"hidden",id:e,checked:i,onChange:n})]})}let g=s.default.forwardRef(function({children:e,htmlFor:i,className:r},n){return(0,t.jsx)("label",{className:(0,c.cn)("group flex shrink-0 select-none flex-wrap items-center gap-2 text-nowrap rounded-lg border-2 border-transparent bg-white px-3 py-2 text-[1rem] font-bold hover:border-blue-600 group-[.disabled]/addons:cursor-not-allowed group-[.disabled]/addons:border-transparent group-[.disabled]/addons:text-gray has-[.checked]:border-blue-600 has-[.selected]:border-blue-600 lg:gap-3 lg:px-6 lg:py-4",r),htmlFor:i,ref:n,children:e})});function v({name:e,display:i,checked:r=!1,min:n=0,value:a=0,className:o,onChange:l}
79){let[d,u]=(0,s.useState)(a);s.default.useEffect(()=>{u(a)},[a]);let h=t=>{u(t),l&&l({target:{name:e,value:t,checked:r}})};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex flex-nowrap items-center gap-1.5 text-sm md:gap-3 lg:text-base",children:[(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",className:(0,c.cn)("size-5 shrink-0 fill-current lg:size-6",n===d&&"text-blue-200",n!==d&&"cursor-pointer text-blue-400 hover:text-blue-500","group-[.disabled]/addons:cursor-not-allowed group-[.disabled]/addons:text-light_gray"),onClick:()=>{h(Math.max(d-1,n))},children:(0,t.jsx)("path",{d:"M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM184 232c-13.3 0-24 10.7-24 24s10.7 24 24 24H328c13.3 0 24-10.7 24-24s-10.7-24-24-24H184z"})}),(0,t.jsx)("span",{className:"tabular-nums",children:a})," ",(0,t.jsx)("span",{className:"hidden lg:inline",children:i}),(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",className:(0,c.cn)("size-5 shrink-0 cursor-pointer fill-current text-blue-400 hover:text-blue-500 disabled:text-blue-200 lg:size-6","group-[.disabled]/addons:cursor-not-allowed group-[.disabled]/addons:text-light_gray"),onClick:()=>{h(d+1)},children:(0,t.jsx)("path",{d:"M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM232 344c0 13.3 10.7 24 24 24s24-10.7 24-24V280h64c13.3 0 24-10.7 24-24s-10.7-24-24-24H280V168c0-13.3-10.7-24-24-24s-24 10.7-24 24v64H168c-13.3 0-24 10.7-24 24s10.7 24 24 24h64v64z"})})]}),(0,t.jsx)("input",{type:"number",name:e,value:d,className:(0,c.cn)("hidden",d>n&&" checked"),id:e,onChange:l})]})}function y({children:e,className:i}){return(0,t.jsx)("div",{className:(0,c.cn)("text-nowrap rounded bg-blue-100 px-2 py-1 text-sm font-normal tabular-nums leading-5 lg:text-base",i,"group-[.disabled]/addons:bg-[#F2F2F2] group-[.disabled]/addons:text-gray"),children:e})}var x=e.i(448213),b=e.i(448018);function w({name:e,value:i,className:r,onChange:n,onClick:s,checked:a,disabled:o}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:(0,c.cn)("shrink-0 rounded-full border-2 border-blue-600 bg-white",r,o&&"border-light_gray",a&&"selected","group-[.disabled]/addons:border-light_gray"),children:(0,t.jsx)("div",{className:(0,c.cn)("m-[3px] size-2.5 shrink-0 rounded-full group-hover:bg-blue-300 group-has-[.selected]:bg-blue-600",o&&"group-hover:bg-transparent","group-[.disabled]/addons:!bg-transparent","group-has-[:disabled]:invisible")})}),(0,t.jsx)("input",{type:"radio",name:e,value:i,className:"hidden",id:e+"-"+i,defaultChecked:a,onChange:n,onClick:s,disabled:o})]})}function C({children:e,htmlFor:i,className:r}){return(0,t.jsx)("label",{className:(0,c.cn)("group flex w-full select-none flex-col gap-2 rounded-lg border-2 border-transparent bg-white p-6 hover:border-blue-600 group-[.disabled]/addons:cursor-not-allowed group-[.disabled]/addons:border-transparent group-[.disabled]/addons:text-gray has-[.checked]:border-blue-600 has-[.selected]:border-blue-600 lg:gap-3",r),htmlFor:i,children:e})}var S=e.i(54189);let k=(0,S.graphql)(`
80    fragment CServiceLevelFeatureF on ServiceLevelFeature {
81        __typename
82        _slug
83        headline
84        self_service
85        basic
86        professional
87        enterprise
88        tooltip {
89            ...CFeatureTooltipF
90        }
91    }
92`);function T(e){let i=(0,n.getFragmentData)(k,e.feature),r={self_service:i?.self_service,basic:i?.basic,professional:i?.professional,enterprise:i?.enterprise};return(0,t.jsxs)("li",{className:"flex items-center",children:[(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",className:"mr-2.5 size-3.5 shrink-0 fill-blue-400 group-has-[:disabled]:fill-gray",children:(0,t.jsx)("path",{d:"M441 103c9.4 9.4 9.4 24.6 0 33.9L177 401c-9.4 9.4-24.6 9.4-33.9 0L7 265c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l119 119L407 103c9.4-9.4 24.6-9.4 33.9 0z"})}),e.selector&&r[e.selector]," ",i?.headline,i.tooltip&&(0,t.jsx)(h.default,{content:i.tooltip,className:"ml-2"})]})}
92var E=e.i(659315),P=e.i(347782),j=e.i(279149),_=e.i(314704),M=e.i(623881),A=e.i(885321);function N(e){let r=(0,n.getFragmentData)(A.SECTION_PRICING_CALCULATOR_FRAGMENT,e.content),l=(0,b.useSearchParams)();(0,b.usePathname)();let[d,u]=(0,s.useState)(!1),[h,p]=(0,s.useState)(!1);(0,s.useEffect)(()=>{let e=document.getElementById("flexible-projectSize"),t=()=>{e&&((e?.getBoundingClientRect()).top<=0?u(!0):u(!1))};return window.addEventListener("scroll",t),()=>{window.removeEventListener("scroll",t)}});let m=(0,n.getFragmentData)(M.BUTTON_FRAGMENT,r?.button);if(m&&m.url){let t=new URL(m.url),i=new URLSearchParams(t.search),r=l.get("agency");r&&i.set("agency",r);let n=l.get("access_token");n&&i.set("access_token",n);let s=l.get("upgrade");s&&i.set("upgrade",s);let a=(0,_.getCookie)("hubspotutk");a&&i.set("hutk",a),i.set("is_annual",e.isAnnual?"true":"false"),e.pricingState&&Object.entries(e.pricingState).forEach(([e,t])=>{i.set(e,String(t))}),t.search=i.toString(),m.url=t.href}return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:(0,c.cn)("sticky bottom-0 z-50 transform bg-blue-600 transition-all duration-500 ","visible translate-y-[0px] opacity-100"),children:(0,t.jsx)(i.DefaultMaxWidthWrapper,{children:(0,t.jsx)("div",{className:"px-5 py-4 md:px-10 lg:px-16 xl:px-25",children:(0,t.jsxs)("div",{className:"flex flex-wrap items-center",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(o.Heading,{heading:"h5",color:"white",children:"Your plan"}),(0,t.jsxs)(a.BodyText,{className:"flex items-center text-blue-400",type:"small",children:[e.totalPrice?.enterprise&&(0,t.jsx)(t.Fragment,{children:"Get advice on customising your plan"}),!e.totalPrice?.enterprise&&(0,t.jsxs)(t.Fragment,{children:["Need some help?",(0,t.jsx)(P.Link,{href:"/contact-sales",children:(0,t.jsx)(E.Button,{buttonType:"text",className:"ml-2.5 text-sm text-orange-500 hover:text-orange-700 group-hover:text-orange-700",children:"Contact sales"})})]})]})]}),(0,t.jsx)("div",{className:"ml-auto flex flex-col items-center",children:e.totalPrice?.enterprise?(0,t.jsx)("div",{className:"relative",children:(0,t.jsx)(o.Heading,{heading:"h4",color:"white",className:"tabular-nums",children:"Custom"})}):(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)(o.Heading,{heading:"h4",color:"white",className:"tabular-nums",children:["€ ",e.totalPrice?.total,(0,t.jsxs)("span",{className:"text-base font-normal",children:[" ",(0,t.jsx)("span",{className:"hidden md:inline",children:"/ month"}),(0,t.jsx)("span",{className:"inline md:hidden",children:"/ mo"})]})]}),(0,t.jsx)("div",{className:(0,c.cn)("absolute -bottom-2.5 self-start text-xs leading-none text-blue-400 transition-opacity duration-300 ease-in-out",e.isAnnual?"opacity-100":"opacity-0"),children:"Billed annually"})]})}),(0,t.jsxs)("div",{className:"mt-4 flex w-full md:ml-10 md:mt-0 md:w-auto",children:[e.totalPrice?.enterprise&&r?.button_sales&&(0,t.jsx)(j.default,{className:"!w-full",button:r.button_sales}),!e.totalPrice?.enterprise&&m&&(0,t.jsx)(j.default,{className:"!w-full",button:m})]})]})})})})})}var L=e.i(678469);let O=(0,S.graphql)(`
93    fragment CServiceLevelF on ServiceLevel {
94        _id
95        headline
96        text
97        selector
98        sorting_order
99        features {
100            ...CServiceLevelFeatureF
101        }
102    }
103`);function D(e){let{features:t}=(0,s.useContext)(x.PricingFeatureContext);return t.filter(t=>t._slug===e)[0]}function R(e,t){let i=D(e)?.headline;if(i)if(1!==t)return i;else return i.endsWith("s")?i.slice(0,-1):i;return""}e.s(["PricingPageWrapper",0,function(e){let x=(0,n.getFragmentData)(A.SECTION_PRICING_CALCULATOR_FRAGMENT,e.content),S=(0,n.getFragmentData)(L.COMPONENT_PROJECT_SIZE_FRAGMENT,x.plan)[0],k=(0,n.getFragmentData)(O,x.service_level).filter(e=>"PROFESSIONAL"===e.selector)[0],E=(0,b.useSearchParams)(),{slug:P}=(0,b.useParams)(),[j,_]=(0,s.useState)(!E.has("is_annual")||E.get("is_annual")?.toLowerCase()==="true"),[M,I]=(0,s.useState)({project_size:"flex",users:1,users_sso:!1,locales:3,bandwidth:"500",search:!1,service_level:!1}),[F,z]=(0,s.useState)({project_size:j?S?.price_annually||0:S?.price_monthly||0,users:0,locales:0,bandwidth:0,search:0,service_level:0,total:0,enterprise:!1}),B=e=>{let{name:t,type:i,checked:r,value:n}=e.target;I(e=>({...e,[t]:"checkbox"===i?r:n}))},V=(0,s.useRef)(null),$=e=>{M.bandwidth===e.currentTarget.value&&V.current&&(e.preventDefault(),V.current.click())};return(0,s.useEffect)(()=>{(e=>{let t=0,i=0,r=0,n=0,s=0,a=0,o=!1;switch(t=j?S?.price_annually||0:S?.price_monthly||0,(e.users||e.users_sso)&&(i=(e.users-1)*(j?15:17),e.users_sso&&(i+=e.users*(j?9:10))),e.locales&&(r=(e.locales-3)*(j?125:138)),e.bandwidth){case"500":default:n=0;break;case"1000":n=j?80:89;break;case"1500":n=j?150:167;break;case"2500":n=j?285:317}e.search&&(s=j?100:110),e.service_level&&(a=j?300:333),e.users>35&&(o=!0),e.locales>10&&(o=!0),z({project_size:t,users:i,locales:r,bandwidth:n,search:s,service_level:a,total:t+i+r+n+s+a,enterprise:o})})(M)},[M,j]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.DefaultSectionWrapper,{background_color:"blue",children:(0,t.jsx)(i.DefaultMaxWidthWrapper,{children:(0,t.jsxs)("div",{className:"rounded-2xl bg-white p-12",children:[(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsxs)(o.Heading,{heading:"h3",children:[S?.headline," Plan"]}),(0,t.jsx)("div",{className:"ml-auto flex items-center",children:(0,t.jsxs)("label",{htmlFor:"annual",className:"mx-auto flex cursor-pointer items-center gap-3",children:[(0,t.jsx)("span",{className:(0,
103c.cn)("text-sm font-bold transition-colors",!j&&"text-dark_gray",j&&"text-light_gray"),children:"Monthly"}),(0,t.jsx)(d.default,{name:"annual",checked:j,onChange:()=>{_(!j)}}),(0,t.jsx)("span",{className:(0,c.cn)("text-sm font-bold transition-colors",j&&"text-dark_gray",!j&&"text-light_gray"),children:"Annual"}),(0,t.jsx)("div",{className:(0,c.cn)(j&&"bg-orange-300 text-orange-700",!j&&"bg-gray-200 text-gray-400","rounded-lg px-3 py-2 text-xs font-medium leading-5 transition-colors md:block"),children:"Save up to 10%"})]})})]}),(0,t.jsx)(a.BodyText,{color:"gray",type:"small",className:"mt-2",children:S?.text}),S?.features&&(0,t.jsxs)("div",{className:"mt-8 flex flex-col gap-x-25 gap-y-2 text-nowrap xl:flex-row",children:[(0,t.jsx)("ul",{className:"space-y-2",children:S.features.slice(0,3).map((e,i)=>(0,t.jsx)(l.default,{feature:e,selector:"FLEX"},i))}),(0,t.jsx)("ul",{className:"space-y-2",children:S.features.slice(3,6).map((e,i)=>(0,t.jsx)(l.default,{feature:e,selector:"FLEX"},i))}),(0,t.jsx)("ul",{className:"space-y-2",children:S.features.slice(6,9).map((e,i)=>(0,t.jsx)(l.default,{feature:e,selector:"FLEX"},i))})]}),(0,t.jsx)(a.BodyText,{color:"dark_gray",type:"small",className:"mt-9",children:x.add_on_helptext}),(0,t.jsxs)("ul",{id:"AddonOptions",className:"mt-6",children:[(0,t.jsxs)(u,{children:[(0,t.jsx)(p,{headline:"Users",price:F.users}),(0,t.jsxs)(m,{children:[(0,t.jsxs)(g,{children:[(0,t.jsx)(v,{name:"users",display:R("users",M.users),min:1,value:M.users,onChange:B}),j?(0,t.jsx)(y,{children:"+ € 15 per user"}):(0,t.jsx)(y,{children:"+ € 17 per user"}),(0,t.jsx)(h.default,{content:D("users")?.tooltip})]}),(0,t.jsxs)(g,{className:"cursor-pointer",children:[(0,t.jsx)(f,{name:"users_sso",checked:M.users_sso,onChange:B}),(0,t.jsx)("span",{className:" text-sm lg:text-base",children:D("sso")?.headline}),j?(0,t.jsx)(y,{children:"+ € 9 per user"}):(0,t.jsx)(y,{children:"+ € 10 per user"}),(0,t.jsx)(h.default,{content:D("sso")?.tooltip})]})]})]}),(0,t.jsxs)(u,{children:[(0,t.jsx)(p,{headline:"Locales",price:F.locales}),(0,t.jsx)(m,{children:(0,t.jsxs)(g,{children:[(0,t.jsx)(v,{name:"locales",display:R("locales",M.locales),min:3,value:M.locales,onChange:B}),j?(0,t.jsx)(y,{children:"+ € 125 per locale"}):(0,t.jsx)(y,{children:"+ € 138 per locale"}),(0,t.jsx)(h.default,{content:D("locales")?.tooltip})]})})]}),(0,t.jsxs)(u,{children:[(0,t.jsx)(p,{headline:D("bandwidth")?.headline,label:"500 GB included",tooltip:D("bandwidth")?.tooltip,price:F.bandwidth}),(0,t.jsxs)(m,{children:[(0,t.jsxs)(g,{htmlFor:"bandwidth-500",className:"hidden cursor-pointer",ref:V,children:[(0,t.jsx)(w,{name:"bandwidth",value:"500",checked:"500"===M.bandwidth,onChange:B,onClick:$}),(0,t.jsx)("span",{className:" text-sm lg:text-base",children:"500 GB"})]}),(0,t.jsxs)(g,{htmlFor:"bandwidth-1000",className:"cursor-pointer",children:[(0,t.jsx)(w,{name:"bandwidth",value:"1000",checked:"1000"===M.bandwidth,onChange:B,onClick:$}),(0,t.jsx)("span",{className:" text-sm lg:text-base",children:"+ 500 GB"}),j?(0,t.jsx)(y,{children:"+ € 80"}):(0,t.jsx)(y,{children:"+ € 89"})]}),(0,t.jsxs)(g,{htmlFor:"bandwidth-1500",className:"cursor-pointer",children:[(0,t.jsx)(w,{name:"bandwidth",value:"1500",checked:"1500"===M.bandwidth,onChange:B,onClick:$}),(0,t.jsx)("span",{className:" text-sm lg:text-base",children:"+ 1 TB"}),j?(0,t.jsx)(y,{children:"+ € 150"}):(0,t.jsx)(y,{children:"+ € 167"})]}),(0,t.jsxs)(g,{htmlFor:"bandwidth-2500",className:"cursor-pointer",children:[(0,t.jsx)(w,{name:"bandwidth",value:"2500",checked:"2500"===M.bandwidth,onChange:B,onClick:$}),(0,t.jsx)("span",{className:" text-sm lg:text-base",children:"+ 2 TB"}),j?(0,t.jsx)(y,{children:"+ € 285"}):(0,t.jsx)(y,{children:"+ € 317"})]})]})]}),(0,t.jsxs)(u,{children:[(0,t.jsx)(p,{headline:"Advanced Search",price:F.search}),(0,t.jsx)(m,{children:(0,t.jsxs)(g,{className:"cursor-pointer",children:[(0,t.jsx)(f,{name:"search",checked:M.search,onChange:B}),(0,t.jsx)("span",{className:" text-sm lg:text-base",children:D("algolia-typesense")?.headline}),j?(0,t.jsx)(y,{children:"+ € 100"}):(0,t.jsx)(y,{children:"+ € 110"}),(0,t.jsx)(h.default,{content:D("algolia-typesense")?.tooltip})]})})]}),(0,t.jsxs)(u,{children:[(0,t.jsx)(p,{headline:"Service level",price:F.service_level,tooltip:D("select-service-level")?.tooltip}),(0,t.jsx)(m,{children:(0,t.jsxs)(C,{className:"cursor-pointer",htmlFor:"service_level",children:[(0,t.jsxs)("div",{className:"group flex shrink-0 select-none flex-wrap items-center gap-2 text-nowrap text-[1rem] font-bold lg:gap-3",children:[(0,t.jsx)(f,{name:"service_level",checked:M.service_level,onChange:B}),(0,t.jsx)("span",{className:" text-sm lg:text-base",children:D("premium-support")?.headline}),j?(0,t.jsx)(y,{children:"+ € 300"}):(0,t.jsx)(y,{children:"+ € 333"})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-4 md:ml-8 md:gap-8 2xl:gap-16",children:[(0,t.jsx)(a.BodyText,{color:"dark_gray",type:"small",className:"w-96",children:D("premium-support")?.headline_helptext}),(0,t.jsx)("ul",{className:"mb-auto grid grid-cols-1 gap-2 text-nowrap 2xl:shrink-0 2xl:grid-cols-2 2xl:gap-3 2xl:gap-x-16",children:k?.features.map((e,i)=>(0,t.jsx)(T,{feature:e,selector:"professional"},i))})]})]})})]})]})]})})}),S&&F.total>
1030&&(0,t.jsx)(N,{content:e.content,isAnnual:j,pricingState:M,totalPrice:F})]})}],138921)},250486,e=>{"use strict";var t=e.i(250465);e.i(621311);var i=e.i(347664);e.i(380610);var r=e.i(782302),r=r,n=e.i(563500),n=n,s=e.i(375061),a=e.i(842841),a=a,o=e.i(46951);let l=({children:e,className:i,background_color:r,padding:n})=>{let s=(0,o.cn)("white"===r&&"bg-white","light_blue"===r&&"bg-blue-100","blue"===r&&"bg-blue-600",n&&"px-5 py-6 lg:p-20","rounded-2xl items-center overflow-hidden",i);return(0,t.jsx)("div",{className:s,children:e})};var c=e.i(321799);let d=({src:e,alt:i,fullSize:r,width:n=1e3,height:s=1e3,className:a,priority:l})=>{let d=(0,o.cn)(r&&"object-cover overflow-hidden w-full h-full",!r&&"px-6 py-0 md:p-10 justify-self-center",a);return(0,t.jsx)(c.default,{src:e,alt:i,width:n,height:s,className:d,priority:l})};e.i(480234);var u=e.i(769303),h=e.i(231368),p=e.i(632306),m=e.i(451647),f=e.i(749312),g=e.i(279149),v=e.i(940019);function y(e){return(0,v.GenIcon)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"},child:[]}]})(e)}var x=e.i(594055),b=e.i(683429),w=e.i(278928),C=e.i(365807),S=e.i(838406),k=e.i(356383),T=e.i(54189);let E=(0,T.graphql)(`
104    fragment SectionCtaImageAssetF on Asset {
105        _type
106        url(width: 1680)
107        mime_type
108        description
109        caption
110        playback_id
111        width
112        height
113        cover
114    }
115`),P=(0,T.graphql)(`
116    fragment CtaImageF on SectionCtaImage {
117        label
118        headline
119        style
120        _context {
121            variant_id
122            variant_key
123            group_id
124        }
125        text
126        cta {
127            ...ButtonF
128        }
129        image {
130            ...SectionCtaImageAssetF
131        }
132        background_color {
133            color
134        }
135        image_position
136        image_width {
137            width
138        }
139        cover
140    }
141`);var j=e.i(623881);let _=()=>{let e=(0,S.useRef)(void 0),i=(0,S.useRef)(void 0),r=(0,S.useRef)(null),n=(0,S.useRef)(null),{refs:s,floatingStyles:a,context:o,middlewareData:l}=(0,C.useFloating)({middleware:[(0,b.offset)(20),(0,k.shift)(),(0,k.autoPlacement)(),(0,b.arrow)({element:r})],whileElementsMounted:w.autoUpdate}),c=(0,C.useClick)(o),d=(0,C.useHover)(o),p=(0,C.useDismiss)(o),f=(0,C.useRole)(o),{getReferenceProps:g,getFloatingProps:v}=(0,C.useInteractions)([d,c,p,f]),T={...a,boxShadow:"0px 0px 1px 0px rgba(23, 15, 73, 0.10), 0px 1px 1px 0px rgba(23, 15, 73, 0.10), 0px 5px 14px 0px rgba(8, 15, 52, 0.15)"};return(0,t.jsx)(x.Popover,{className:"",ref:n,children:({open:n,close:a})=>(0,t.jsxs)("div",{onMouseEnter:()=>{clearTimeout(i.current),n||e.current?.click()},onMouseLeave:()=>{i.current=setTimeout(()=>{n&&e.current?.click()},120)},children:[(0,t.jsx)("div",{className:"hover:cursor-pointer",ref:s.setReference,...g(),children:(0,t.jsxs)(x.Popover.Button,{ref:e,id:"button",as:"div",className:"flex items-center gap-2.5 rounded-full bg-blue-200 px-4 py-2 font-bold leading-[32px] text-blue-700",children:["Personalized",(0,t.jsx)(y,{})]})}),(0,t.jsx)(C.FloatingFocusManager,{context:o,modal:!1,children:(0,t.jsxs)(x.Popover.Panel,{ref:s.setFloating,id:"tooltip",style:T,...v(),children:[(0,t.jsx)(C.FloatingArrow,{ref:r,context:o,fill:"#fff"}),(0,t.jsxs)("div",{className:"w-[630px] space-y-6 rounded-2xl bg-white p-8",children:[(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)(m.Heading,{heading:"h5",className:"text-neutral-800",children:"Personalized for you"}),(0,t.jsx)(u.BodyText,{color:"gray",type:"small",children:"This section is tailored based on the pages you visited, showcasing the powerful personalization features of Prepr CMS. Personalization greatly enhances the customer experience and significantly boosts click-through rates."})]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-8",children:[(0,t.jsx)(h.ButtonLink,{text:"Learn about Personalization",href:"/product/personalization",className:"shrink-0"}),(0,t.jsx)(h.ButtonLink,{text:"Get a Demo",type:"text",href:"/get-a-demo",className:"shrink-0"})]})]})]})})]})})};e.s(["CTAImagePopover",0,_,"default",0,function(e){let c=(0,i.getFragmentData)(P,e.content),h=(0,i.getFragmentData)(j.BUTTON_FRAGMENT,c.cta),v=(0,i.getFragmentData)(E,c.image),{imageWidth:y,contentWidth:x}=function(e){let t,i;switch(e){case"one_third":t=2,i=4;break;case"half":default:t=3,i=3;break;case"two_thirds":t=4,i=2}return{imageWidth:t,contentWidth:i}}(c.image_width?.width||"half"),b=(0,o.cn)(c.image_position?"md:pl-4 lg:pl-8":"md:pr-4 lg:pr-8"),w=function(e){let t;switch(e){case"light_blue":t="blue";break;case"light_gray":t="light_gray";break;default:t="white"}return t}(c?.background_color?.color||""),C=c.style,S=c._context?.variant_id,k=c._context?.variant_key;return(0,t.jsx)("div",{"data-prepr-variant-key":k,children:(0,t.jsxs)(s.DefaultSectionWrapper,{background_color:w,className:"relative",children:[S&&"ALL_OTHER_USERS"!==S&&(0,t.jsxs)("div",{className:"mb-4 flex items-end justify-end gap-3",children:[(0,t.jsx)("div",{className:"max-h-[50%] justify-self-end",children:(0,t.jsx)("svg",{width:"51",height:"29",viewBox:"0 0 51 29",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M50 1.5H14.5C10.0817 1.5 6.5 5.08172 6.5 9.5V28M6.5 28L12.5 21.5M6.5 28L1 21.5",stroke:"#5237E6",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,t.jsx)(_,{})]}),(0,t.jsx)(l,{background_color:C?"blue":"light_blue",children:(0,t.jsxs)(a.default,{className:"!gap-0 lg:gap-8",children:[c.image&&c.image_position&&(0,t.jsx)(r.default,{column:y,className:"order-last flex items-center md:order-none",children:(0,t.jsx)(d,{src:v.url||"",alt:v.description||"",width:v.width||1e3,height:v.height||1e3,fullSize:c.cover||!0})}),(0,t.jsx)(r.default,{column:x,children:(0,t.jsxs)(n.default,{className:b,padding:!0,children:[c.label&&(0,t.jsx)(f.Label,{color:C?"orange":"blue",className:"mb-2 md:mb-4 lg:mb-6",children:c.label}),c.headline&&(0,t.jsx)(m.Heading,{heading:"h3",color:C?"white":"dark_gray",className:"mb-4 md:mb-6 lg:mb-8",children:c.headline}),c.text&&(0,t.jsx)(u.BodyText,{color:C?"blue":"gray",className:"mb-6 md:mb-8 lg:mb-12",dangerouslySetInnerHTML:{__html:c.text}}),h&&(0,t.jsx)(p.ButtonRow,{children:h.map((e,i)=>(0,t.jsx)("span",{"data-prepr-variant-event":!0,children:(0,t.jsx)(g.default,{button:e},i)},i))})]})}),c.image&&!c.image_position&&(0,t.jsx)(r.default,{column:y,className:"order-last md:order-none",children:(0,t.jsx)(d,{src:v.url||"",alt:v.description||"",width:v.width||1e3,height:v.height||1e3,fullSize:!0})})]})})]})})}],250486)},308092,e=>{"use strict";var t=e.i(250465);e.i(621311);var i=e.i(347664);e.i(380610);var r=e.i(853770),n=e.i(898864),s=e.i(432631),a=e.i(340961),o=e.i(111329),l=e.i(280845),c=e.i(838406),d=e.i(46951),u=e.i(279149),h=e.i(103189);function p({button:e,inputRef:i,websiteUrl:r,setWebsiteUrl:n,handleButtonClick:s,error:a}){return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"mt-4 flex flex-wrap items-start gap-4 md:mt-0 md:flex-nowrap md:gap-8",children:[(0,t.jsxs)("div",{className:"flex w-full flex-col",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1",children:[(0,t.jsx)("input",{type:"url",name:"website",ref:i,className:(0,d.cn)(h.INPUT_FIELD_CLASSES,"col
141-start-1 row-start-1 block h-[64px]",a?"border-red-500  bg-red-50/50 text-red-900 focus:border-red-500 focus:ring-red-500":"focus:border-blue-500"),placeholder:"https://",value:r,onChange:n,onKeyDown:e=>{"Enter"===e.key&&s()}}),a&&(0,t.jsx)("svg",{className:"pointer-events-none col-start-1 row-start-1 mr-3 size-5 self-center justify-self-end text-red-500",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon",children:(0,t.jsx)("path",{"fill-rule":"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14ZM8 4a.75.75 0 0 1 .75.75v3a.75.75 0 0 1-1.5 0v-3A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z","clip-rule":"evenodd"})})]}),a&&(0,t.jsx)("p",{className:"mt-2 text-left text-sm text-red-600",id:"email-error",children:a})]}),e&&(0,t.jsx)(u.default,{button:e,onClick:s})]})})}var m=e.i(448018),f=e.i(66362),g=e.i(294949);e.i(480234);var v=e.i(769303),y=e.i(451647);function x({currentStep:e,totalSteps:i,done:r,error:n}){let[s,a]=(0,c.useState)(0);(0,c.useEffect)(()=>{r?a(100):a(e/(i-1)*95)},[e,i,r]);let o=`${s.toFixed(0)}%`;return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:`mx-auto w-3/4 rounded-full md:w-96 ${n?"bg-red-100":"bg-blue-200"}`,children:(0,t.jsx)("div",{className:`relative h-2 rounded-full transition-all ease-linear ${n?"bg-red-500":"bg-blue-600"}`,style:{width:o},children:(0,t.jsxs)("span",{className:"relative ml-auto flex size-7",children:[!r&&(0,t.jsx)("span",{className:`absolute -mt-2.5 inline-flex h-full w-full rounded-full ${n?"bg-red-500":"animate-ping bg-blue-600"}`}),(0,t.jsx)("span",{className:`relative -mt-2.5 inline-flex size-7 items-center rounded-full ${n?"bg-red-500":"bg-blue-600"}`,children:r?(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",className:"mx-auto size-3.5 fill-white","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"})}):n?(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",className:"mx-auto size-3.5 fill-white","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"})}):(0,t.jsx)("span",{className:"mx-auto size-2 rounded-full bg-blue-200"})})]})})})})}var b=e.i(54189);let w=(0,b.graphql)(`
142    fragment PersonalizationPlannerModalStory on PersonalizationPlannerModalStory {
143        image {
144            url
145        }
146        headline
147        text
148        footer_text
149        milliseconds
150    }
151`);function C({modals:e,isDone:r,isOpen:n,handleClose:s,isError:a,currentStep:o}){let l=(0,i.getFragmentData)(w,e[o]);return(0,t.jsxs)(g.Dialog,{open:n,onClose:()=>{a&&s()},className:"relative z-[200]",children:[(0,t.jsx)(g.DialogBackdrop,{transition:!0,className:"fixed inset-0 bg-gray-950/25 transition-opacity data-[closed]:opacity-0 data-[enter]:duration-300 data-[leave]:duration-200 data-[enter]:ease-out data-[leave]:ease-in"}),(0,t.jsx)("div",{className:"fixed inset-0 z-10 w-screen overflow-y-auto",children:(0,t.jsx)("div",{className:"flex min-h-full items-start justify-center p-4 text-center sm:p-0",children:(0,t.jsxs)(g.DialogPanel,{transition:!0,className:"relative mx-4 my-16 flex w-full transform items-center overflow-hidden rounded-3xl bg-white px-6 py-8 shadow-xl transition-all data-[closed]:translate-y-4 data-[closed]:opacity-0 data-[enter]:duration-300 data-[leave]:duration-200 data-[enter]:ease-out  data-[leave]:ease-in data-[closed]:sm:translate-y-0 data-[closed]:sm:scale-95 md:my-32 md:max-w-xl md:px-12 md:py-16 lg:max-w-3xl xl:max-w-4xl",children:[a&&(0,t.jsx)("div",{className:"absolute right-0 top-0 pr-4 pt-4",children:(0,t.jsxs)("button",{type:"button",onClick:()=>s(),className:"focus:outline-hidden rounded-md bg-white text-gray-400 hover:text-gray-500 focus:ring-2 focus:ring-blue-500 focus:ring-offset-2",children:[(0,t.jsx)("span",{className:"sr-only",children:"Close"}),(0,t.jsx)("svg",{className:"size-6",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon",children:(0,t.jsx)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 
15118 6M6 6l12 12"})})]})}),(0,t.jsxs)("div",{className:"mx-auto flex max-w-prose flex-col justify-center gap-10 self-center",children:[(0,t.jsx)("div",{className:`mx-auto flex aspect-[167/97] h-[194px] shrink-0 grow-0 items-center justify-center rounded-2xl bg-cover ${a?"bg-red-100":"bg-blue-100"}`,style:a?void 0:{backgroundImage:`url(${l?.image?.url})`},children:a&&(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",className:"size-24 fill-red-300",children:(0,t.jsx)("path",{d:"M256 0c53 0 96 43 96 96l0 3.6c0 15.7-12.7 28.4-28.4 28.4l-135.1 0c-15.7 0-28.4-12.7-28.4-28.4l0-3.6c0-53 43-96 96-96zM41.4 105.4c12.5-12.5 32.8-12.5 45.3 0l64 64c.7 .7 1.3 1.4 1.9 2.1c14.2-7.3 30.4-11.4 47.5-11.4l112 0c17.1 0 33.2 4.1 47.5 11.4c.6-.7 1.2-1.4 1.9-2.1l64-64c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-64 64c-.7 .7-1.4 1.3-2.1 1.9c6.2 12 10.1 25.3 11.1 39.5l64.3 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0c0 24.6-5.5 47.8-15.4 68.6c2.2 1.3 4.2 2.9 6 4.8l64 64c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0l-63.1-63.1c-24.5 21.8-55.8 36.2-90.3 39.6L272 240c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 239.2c-34.5-3.4-65.8-17.8-90.3-39.6L86.6 502.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l64-64c1.9-1.9 3.9-3.4 6-4.8C101.5 367.8 96 344.6 96 320l-64 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l64.3 0c1.1-14.1 5-27.5 11.1-39.5c-.7-.6-1.4-1.2-2.1-1.9l-64-64c-12.5-12.5-12.5-32.8 0-45.3z"})})}),(0,t.jsxs)("div",{children:[(0,t.jsx)(y.Heading,{heading:"h4",children:a?"Something went wrong":l?.headline}),(0,t.jsx)(v.BodyText,{color:"gray",className:"mx-auto mt-3 md:w-3/4",children:a?"We couldn’t complete your personalization plan this time. But don’t worry, you can try again in a moment.":l?.text})]}),(0,t.jsx)(x,{currentStep:o,totalSteps:e.length,done:r,error:a}),(0,t.jsx)(v.BodyText,{color:"dark_gray",type:"medium-semibold",children:a?"Every great transformation takes time—we’ll get you there.":l?.footer_text})]})]})})})]})}var S=e.i(599926);let k=new(e.i(33214)).default("5b51cfef9f889169fba1",{cluster:"eu",forceTLS:!0});var T=e.i(321799);let E=(0,b.graphql)(`
152    fragment SPersonalizationPlanner on SectionPersonalizationPlanner {
153        label
154        _context {
155            variant_key
156        }
157        headline
158        headline_style {
159            style
160        }
161        _context {
162            variant_key
163            variant_id
164            group_id
165        }
166        text
167        cta {
168            ...ButtonF
169        }
170        modals {
171            ...PersonalizationPlannerModalStory
172        }
173    }
174`);e.s(["default",0,function(e){let u=(0,i.getFragmentData)(E,e.content),h=(0,m.useRouter)(),g=(0,m.usePathname)(),v=(0,m.useSearchParams)(),y=(0,c.useRef)(null),[x,b]=(0,c.useState)(v.get("url")||""),[P,j]=(0,c.useState)(),[_,M]=(0,c.useState)(!1),[A,N]=(0,c.useState)(!1),[L,O]=(0,c.useState)(!1),[D,R]=(0,c.useState)(0),[I,F]=(0,c.useState)(!1),[z,B]=(0,c.useState)(null),[V,$]=(0,c.useState)(!1),[H,U]=(0,c.useState)(null),G=(0,i.getFragmentData)(w,u.modals[D]);(0,c.useEffect)(()=>{let e;if(_&&D===u.modals.length-1&&x){let t=x;t.startsWith("http://")||t.startsWith("https://")||(t=`https://${t}`),$(!0),e=setInterval(async()=>{try{let e=await fetch("https://openai.prepr.it/api/personalization-planner/watchdog",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:t})});e.ok||console.error(e);let i=await e.json();B(i),$(!1)}catch(e){U("An error occurred while polling data"),$(!1)}},3e3)}return()=>{e&&clearInterval(e)}},[_,D,x]);let q=async()=>{let e=y.current?.value||x;if(!e||!(0,d.isValidUrl)(e))return void j("Please enter a valid URL");e.startsWith("http://")||e.startsWith("https://")||(e=`https://${e}`);try{S.default.track("URL Submit",{$url:e});let t=await fetch("https://openai.prepr.it/api/personalization-planner/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e})});if(!t.ok){let e=await t.json();j(e.error||"An unknown error occurred");return}}catch(e){console.error("Validation error:",e),j("An error occurred while validating the URL");return}M(!0),F(!0),h.push(g+"?url="+e);try{let t=await f.default.post("https://openai.prepr.it/api/personalization-planner/kickoff",{url:e});if(200===t.status){let{channel:e}=t.data;e&&(e=>{if(!k)return console.error("Pusher instance is not available");if(!e)return console.error("channelName is not available");let t=k.subscribe(e);return t.bind("error",()=>{O(!0)}),()=>{t.unbind_all(),t.unsubscribe()}})(e)}}catch(e){O(!0)}};(0,c.useEffect)(()=>
174{if(!_||L)return;let e=setInterval(()=>{D<u.modals.length-1&&D<u.modals.length-1&&R(e=>e+1)},G.milliseconds||1e3);return()=>clearInterval(e)},[D,_,L]),_&&D===u.modals.length-1&&z?.redirect&&!A&&(N(!0),B(null),setTimeout(()=>{h.push(`/personalization-planner/${z.redirect}`)},2500));let W=u._context?.variant_key;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.default,{"data-prepr-variant-key":W,background_color:"blue",children:(0,t.jsx)("div",{className:"flex flex-col gap-6 md:gap-8 lg:gap-20",children:(0,t.jsx)(r.NarrowMaxWidthWrapper,{children:(0,t.jsxs)(n.default,{children:[(0,t.jsxs)("div",{className:"flex flex-col gap-6",children:[u.label&&(0,t.jsx)(s.default,{color:"blue",children:u.label}),u.headline&&(0,t.jsx)(a.default,{heading:u.headline_style?.style||"h2",color:"dark_gray",children:u.headline})]}),u.text&&(0,t.jsx)(o.default,{color:"gray",className:"blog-text mt-4 text-balance lg:mt-8",dangerouslySetInnerHTML:{__html:u.text}}),(0,t.jsxs)("div",{className:"relative mt-5 w-full rounded-2xl bg-white px-6 py-8 md:mt-10 md:w-3/4 md:p-12",children:[(0,t.jsxs)("div",{className:"absolute top-0 flex items-center text-nowrap rounded-b-lg bg-blue-200 px-6 py-2 text-xs font-bold text-blue-600",children:[(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",className:"mr-2 size-3 fill-blue-600",children:(0,t.jsx)("path",{d:"M234.7 42.7L197 56.8c-3 1.1-5 4-5 7.2s2 6.1 5 7.2l37.7 14.1L248.8 123c1.1 3 4 5 7.2 5s6.1-2 7.2-5l14.1-37.7L315 71.2c3-1.1 5-4 5-7.2s-2-6.1-5-7.2L277.3 42.7 263.2 5c-1.1-3-4-5-7.2-5s-6.1 2-7.2 5L234.7 42.7zM46.1 395.4c-18.7 18.7-18.7 49.1 0 67.9l34.6 34.6c18.7 18.7 49.1 18.7 67.9 0L529.9 116.5c18.7-18.7 18.7-49.1 0-67.9L495.3 14.1c-18.7-18.7-49.1-18.7-67.9 0L46.1 395.4zM484.6 82.6l-105 105-23.3-23.3 105-105 23.3 23.3zM7.5 117.2C3 118.9 0 123.2 0 128s3 9.1 7.5 10.8L64 160l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L128 160l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L128 96 106.8 39.5C105.1 35 100.8 32 96 32s-9.1 3-10.8 7.5L64 96 7.5 117.2zm352 256c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L416 416l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L480 416l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L480 352l-21.2-56.5c-1.7-4.5-6-7.5-10.8-7.5s-9.1 3-10.8 7.5L416 352l-56.5 21.2z"})}),"AI Powered"]}),(0,t.jsx)(p,{button:u.cta?.[0]||null,inputRef:y,websiteUrl:x,setWebsiteUrl:e=>{let{value:t}=e.target;b(t)},handleButtonClick:q,error:P})]})]})})})}),(0,t.jsx)(C,{modals:u.modals,isDone:A,isOpen:_,handleClose:()=>{M(!1),setTimeout(()=>{O(!1)},500)},isError:L,currentStep:D}),_&&(0,t.jsx)(T.default,{src:`/api/personalization-planner/screenshot?url=${x}`,alt:"Website Screenshot",className:"size-0",width:976,height:634,quality:100})]})}],308092)},640152,e=>{"use strict";var t=e.i(250465);e.i(621311);var i=e.i(347664),r=e.i(280845);e.i(480234);var n=e.i(451647),s=e.i(46951),a=e.i(838406),o=e.i(225340);let l=(0,e.i(54189).graphql)(`
175    fragment CAddonsF on Addon {
176        _id
177        headline
178        text
179        price_monthly
180        price_annually
181    }
182`);function c(e){let r=(0,i.getFragmentData)(l,e.addon);return(0,t.jsxs)("div",{className:"flex flex-col gap-6 rounded-2xl bg-white px-12 py-10",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsxs)("div",{className:"mr-auto flex items-center text-blue-600",children:[(0,t.jsx)("svg",{viewBox:"0 0 14 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"size-4 fill-current",children:(0,t.jsx)("path",{d:"M11.2695 1.83203L8.5625 8.16016H12.5C12.957 8.16016 13.3789 8.44141 13.5547 8.86328C13.6953 9.32031 13.5898 9.8125 13.2383 10.1289L4.23828 18.0039C3.81641 18.3203 3.25391 18.3555 2.83203 18.0391C2.41016 17.7578 2.23438 17.1953 2.44531 16.7031L5.15234 10.375H1.25C0.757812 10.375 0.335938 10.0938 0.195312 9.67188C0.0195312 9.21484 0.125 8.72266 0.476562 8.40625L9.47656 0.53125C9.89844 0.214844 10.4609 0.179688 10.8828 0.496094C11.3047 0.777344 11.4805 1.33984 11.2695 1.83203Z"})}),(0,t.jsx)("div",{className:"ml-1 font-bold",children:"Add-on"})]}),(0,t.jsxs)("div",{className:"flex w-36 items-center justify-center text-nowrap",children:[(0,t.jsxs)("div",{className:"font-semibold text-dark_gray",children:["+ €"," ",e.isAnnual?r.price_annually:r.price_monthly]}),(0,t.jsx)("div",{className:"ml-1 text-gray",children:"per month"})]})]}),(0,t.jsx)("div",{className:"text-2xl font-semibold text-dark_gray",children:r.headline}),(0,t.jsx)("div",{className:"text-dark_gray",children:r.text})]})}var d=e.i(111329),u=e.i(279149),h=e.i(48457),p=e.i(448018),m=e.i(314704),f=e.i(623881),g=e.i(678469);function v(e){let r=(0,i.getFragmentData)(g.COMPONENT_PROJECT_SIZE_FRAGMENT,e.plan),a=(0,p.useSearchParams)(),{slug:o}=(0,p.useParams)(),l=(0,i.getFragmentData)(f.BUTTON_FRAGMENT,r.cta);if(l&&(l.url||l.reference&&l.reference[0]._slug)){let t=new URL(l.url||"/"+l.reference[0]._slug,"https://prepr.io"),i=new URLSearchParams(t.search);(o.includes("agencies")||o.includes("agency"))&&i.set("agency","true");let r=a.get("access_token");r&&i.set("access_token",r),o.includes("upgrade")&&i.set("upgrade","true");let n=(0,m.getCookie)("hubspotutk");n&&i.set("hutk",n),i.set("is_annual",e.isAnnual?"true":"false"),t.search=i.toString(),l.url=t.href,l.reference=[]}return(0,t.jsx)("div",{className:(0,s.cn)("rounded-2xl px-12 py-10",e.popular?"bg-blue-600":"bg-white"),children:(0,t.jsxs)("div",{className:(0,s.cn)("flex flex-col gap-4"),children:[(0,t.jsxs)("div",{className:"flex items-center",children:[r.headline&&(0,t.jsx)(n.Heading,{className:"",heading:"h3",color:e.popular?"white":"dark_gray",children:r.headline}),e.popular&&(0,t.jsx)("div",{className:"ml-auto rounded-lg bg-blue-700 px-3 py-2 text-xs font-bold leading-[normal] text-blue-400",children:"Popular"})]}),r.text&&(0,t.jsx)(d.default,{className:"lg:line-clamp-5 lg:h-[120px] xl:line-clamp-3 xl:h-[72px] 2xl:line-clamp-2 2xl:h-12",color:e.popular?"blue-400":"gray",type:"small",children:r.text}),(0,t.jsxs)("div",{children:[(0,t.jsx)(n.Heading,{heading:"h2",color:e.popular?"white":"dark_gray",children:"enterprise"==r.selector?(0,t.jsx)(t.Fragment,{children:"Custom"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-2xl font-normal",children:"€"}),e.isAnnual?r.price_annually:r.price_monthly]})}),(0,t.jsxs)(d.default,{className:"line-clamp-1",color:e.popular?"blue-400":"gray",type:"small",children:[r.price_helptext||" ","FLEX"===r.selector&&e.isAnnual&&" (billed annually)"]})]}),(0,t.jsx)("div",{children:l&&(0,t.jsx)(u.default,{className:"!w-full",button:l})}),(0,t.jsxs)("div",{className:"mt-6",children:[r.features_title&&(0,t.jsx)(d.default,{className:"line-clamp-1",color:e.popular?"white":"dark_gray",type:"medium-semibold",children:r.features_title}),(0,t.jsx)("ul",{className:"mt-4 space-y-1",children:r.features&&r.features.map((i,n)=>(0,t.jsx)(h.default,{feature:i,selector:r.selector,popular:e.popular},n))})]})]})})}var y=e.i(885321);e.s(["default",0,function(e){let l=(0,i.getFragmentData)(y.SECTION_PRICING_FRAGMENT,e.content),d=(0,i.getFragmentData)(g.COMPONENT_PROJECT_SIZE_FRAGMENT,l.plans),[u,h]=(0,a.useState)(!0),p=d.filter(e=>"community"===e.selector)[0],m=d.filter(e=>"FLEX"===e.selector)[0],f=d.filter(e=>"enterprise"===e.selector)[0];return(0,t.jsxs)(r.default,{background_color:"blue",className:"!pt-0",children:[(0,t.jsx)("div",{className:"mb-10 flex items-center",children:(0,t.jsxs)("label",{htmlFor:"annual",className:"mx-auto flex cursor-pointer items-center gap-3",children:[(0,t.jsx)("span",{className:(0,s.cn)("text-sm font-bold transition-colors",!u&&"text-dark_gray",u&&"text-light_gray"),children:"Monthly"}),(0,t.jsx)(o.default,{name:"annual",checked:u,onChange:()=>{h(!u)}}),(0,t.jsx)("span",{className:(0,s.cn)("text-sm font-bold transition-colors",u&&"text-dark_gray",!u&&"text-light_gray"),children:"Annual"}),(0,t.jsx)("div",{className:(0,s.cn)(u&&"bg-orange-300 text-orange-700",!u&&"bg-gray-200 text-gray-400","rounded-lg px-3 py-2 text-xs font-medium leading-5 transition-colors md:block"),children:"Save up to 10%"})]})}),(0,t.jsxs)("div",{className:(0,s.cn)("grid grid-cols-1 gap-8 pb-25",2===d.length?"lg:grid-cols-2":" lg:grid-cols-3"),children:[p&&(0,t.jsx)(v,{plan:
182p,isAnnual:u}),m&&(0,t.jsx)(v,{plan:m,isAnnual:u,popular:!0}),f&&(0,t.jsx)(v,{plan:f,isAnnual:u})]}),(0,t.jsxs)("div",{className:"pt-10",children:[(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsx)(n.Heading,{heading:"h3",children:l.add_ons_headline})}),(0,t.jsx)("div",{className:"mt-10 grid grid-cols-1 gap-8 lg:grid-cols-2 2xl:grid-cols-4",children:l.add_ons&&l.add_ons?.map((e,i)=>(0,t.jsx)(c,{addon:e,isAnnual:u},i))})]})]})}],640152)},519038,e=>{"use strict";let t,i,r,n;var s,a=e.i(250465);e.i(621311);var o=e.i(347664);e.i(380610);var l=e.i(375061),c=e.i(863914),d=e.i(863892),d=d;e.i(480234);var u=e.i(769303),h=e.i(451647),p=e.i(749312),m=e.i(279149),f=e.i(838406),g=e.i(46951),v=e.i(321799);let y=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],x=new Set(y),b=(e,t,i)=>i>t?t:i<e?e:i,w={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},C={...w,transform:e=>b(0,1,e)},S={...w,default:1},k=e=>Math.round(1e5*e)/1e5,T=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,E=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,P=(e,t)=>i=>!!("string"==typeof i&&E.test(i)&&i.startsWith(e)||t&&null!=i&&Object.prototype.hasOwnProperty.call(i,t)),j=(e,t,i)=>r=>{if("string"!=typeof r)return r;let[n,s,a,o]=r.match(T);return{[e]:parseFloat(n),[t]:parseFloat(s),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},_={...w,transform:e=>Math.round(b(0,255,e))},M={test:P("rgb","red"),parse:j("red","green","blue"),transform:({red:e,green:t,blue:i,alpha:r=1})=>"rgba("+_.transform(e)+", "+_.transform(t)+", "+_.transform(i)+", "+k(C.transform(r))+")"},A={test:P("#"),parse:function(e){let t="",i="",r="",n="";return e.length>5?(t=e.substring(1,3),i=e.substring(3,5),r=e.substring(5,7),n=e.substring(7,9)):(t=e.substring(1,2),i=e.substring(2,3),r=e.substring(3,4),n=e.substring(4,5),t+=t,i+=i,r+=r,n+=n),{red:parseInt(t,16),green:parseInt(i,16),blue:parseInt(r,16),alpha:n?parseInt(n,16)/255:1}},transform:M.transform},N=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),L=N("deg"),O=N("%"),D=N("px"),R=N("vh"),I=N("vw"),F={...O,parse:e=>O.parse(e)/100,transform:e=>O.transform(100*e)},z={test:P("hsl","hue"),parse:j("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:i,alpha:r=1})=>"hsla("+Math.round(e)+", "+O.transform(k(t))+", "+O.transform(k(i))+", "+k(C.transform(r))+")"},B={test:e=>M.test(e)||A.test(e)||z.test(e),parse:e=>M.test(e)?M.parse(e):z.test(e)?z.parse(e):A.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?M.transform(e):z.transform(e),getAnimatableNone:e=>{let t=B.parse(e);return t.alpha=0,B.transform(t)}},V=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,$="number",H="color",U=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function G(e){let t=e.toString(),i=[],r={color:[],number:[],var:[]},n=[],s=0,a=t.replace(U,e=>(B.test(e)?(r.color.push(s),n.push(H),i.push(B.parse(e))):e.startsWith("var(")?(r.var.push(s),n.push("var"),i.push(e)):(r.number.push(s),n.push($),i.push(parseFloat(e))),++s,"${}")).split("${}");return{values:i,split:a,indexes:r,types:n}}function q({split:e,types:t}){let i=e.length;return r=>{let n="";for(let s=0;s<i;s++)if(n+=e[s],void 0!==r[s]){let e=t[s];e===$?n+=k(r[s]):e===H?n+=B.transform(r[s]):n+=r[s]}return n}}let W={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(T)?.length||0)+(e.match(V)?.length||0)>0},parse:function(e){return G(e).values},createTransformer:function(e){return q(G(e))},getAnimatableNone:function(e){let t=G(e);return q(t)(t.values.map((e,i)=>((e,t)=>"number"==typeof e?t?.trim().endsWith("/")?e:0:"number"==typeof e?0:B.test(e)?B.getAnimatableNone(e):e)(e,t.split[i])))}},X=new Set(["brightness","contrast","saturate","opacity"]);function Y(e){let[t,i]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=i.match(T)||[];if(!r)return e;let n=i.replace(r,""),s=+!!X.has(t);return r!==i&&(s*=100),t+"("+s+n+")"}let K=/\b([a-z-]*)\(.*?\)/gu,Z={...W,getAnimatableNone:e=>{let t=e.match(K);return t?t.map(Y).join(" "):e}},J={...W,getAnimatableNone:e=>{let t=W.parse(e);return W.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},Q={...w,transform:Math.round},ee={borderWidth:D,borderTopWidth:D,borderRightWidth:D,borderBottomWidth:D,borderLeftWidth:D,borderRadius:D,borderTopLeftRadius:D,borderTopRightRadius:D,borderBottomRightRadius:D,borderBottomLeftRadius:D,width:D,maxWidth:D,height:D,maxHeight:D,top:D,right:D,bottom:D,left:D,inset:D,insetBlock:D,insetBlockStart:D,insetBlockEnd:D,insetInline:D,insetInlineStart:D,insetInlineEnd:D,padding:D,paddingTop:D,paddingRight:D,paddingBottom:D,paddingLeft:D,paddingBlock:D,paddingBlockStart:D,paddingBlockEnd:D,paddingInline:D,paddingInlineStart:D,paddingInlineEnd:D,margin:D,marginTop:D,marginRight:D,marginBottom:D,marginLeft:D,marginBlock:D,marginBlockStart:D,marginBlockEnd:D,marginInline:D,marginInlineStart:D,marginInlineEnd:D,fontSize:D,backgroundPositionX:D,backgroundPositionY:D,rotate:L,rotateX:L,rotateY:L,rotateZ:L,scale:S,scaleX:S,scaleY:S,scaleZ:S,skew:L,skewX:L,skewY:L,distance:D,translateX:D,translateY:D,translateZ:D,x:D,y:D,z:D,perspective:D,transformPerspective:D,opacity:C,originX:F,originY:F,originZ:D,zIndex:Q,fillOpacity:C,strokeOpacity:C,numOctaves:Q},et={...ee,color:B,backgroundColor:B,outlineColor:B,fill:B,stroke:B,borderColor:B,borderTopColor:B,borderRightColor:B,borderBottomColor:B,borderLeftColor:B,filter:Z,WebkitFilter:Z,mask:J,WebkitMask:J},ei=e=>et[e],er=()=>({translate:0,scale:1,origin:0,originPoint:0}),en=()=>({x:er(),y:er()}),es=()=>({min:0,max:0}),ea=()=>({x:es(),y:es()}),eo=e=>!!(e&&e.getVelocity),el=new Set(["width","height","top","left","right","bottom",...y]),ec=e=>t=>t.test(e),ed=[w,D,O,L,I,R,{test:e=>"auto"===e,parse:e=>e}],eu=e=>ed.find(ec(e));var eh=e.i(794243);let ep=()=>{},em=()=>{};eh.default;let ef=e=>t=>"string"==typeof t&&t.startsWith(e),eg=ef("--"),ev=ef("var(--"),ey=e=>!!ev(e)&&ex.test(e.split("/*")[0].trim()),ex=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function eb(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}let ew=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,eC=e=>180*e/Math.PI,eS=e=>eT(eC(Math.atan2(e[1],e[0]))),ek={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:eS,rotateZ:eS,skewX:e=>eC(Math.atan(e[1])),skewY:e=>eC(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},eT=e=>((e%=360)<0&&(e+=360),e),eE=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),eP=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ej={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:e
182E,scaleY:eP,scale:e=>(eE(e)+eP(e))/2,rotateX:e=>eT(eC(Math.atan2(e[6],e[5]))),rotateY:e=>eT(eC(Math.atan2(-e[2],e[0]))),rotateZ:eS,rotate:eS,skewX:e=>eC(Math.atan(e[4])),skewY:e=>eC(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function e_(e){return+!!e.includes("scale")}function eM(e,t){let i,r;if(!e||"none"===e)return e_(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(n)i=ej,r=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=ek,r=t}if(!r)return e_(t);let s=i[t],a=r[1].split(",").map(eA);return"function"==typeof s?s(a):a[s]}function eA(e){return parseFloat(e.trim())}let eN=e=>e===w||e===D,eL=new Set(["x","y","z"]),eO=y.filter(e=>!eL.has(e)),eD={width:({x:e},{paddingLeft:t="0",paddingRight:i="0",boxSizing:r})=>{let n=e.max-e.min;return"border-box"===r?n:n-parseFloat(t)-parseFloat(i)},height:({y:e},{paddingTop:t="0",paddingBottom:i="0",boxSizing:r})=>{let n=e.max-e.min;return"border-box"===r?n:n-parseFloat(t)-parseFloat(i)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>eM(t,"x"),y:(e,{transform:t})=>eM(t,"y")};eD.translateX=eD.x,eD.translateY=eD.y;let eR=e=>e,eI={},eF=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function ez(e,t){let i=!1,r=!0,n={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,a=eF.reduce((e,i)=>(e[i]=function(e,t){let i=new Set,r=new Set,n=!1,s=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1},l=0;function c(t){a.has(t)&&(d.schedule(t),e()),l++,t(o)}let d={schedule:(e,t=!1,s=!1)=>{let o=s&&n?i:r;return t&&a.add(e),o.add(e),e},cancel:e=>{r.delete(e),a.delete(e)},process:e=>{if(o=e,n){s=!0;return}n=!0;let a=i;i=r,r=a,i.forEach(c),t,l=0,i.clear(),n=!1,s&&(s=!1,d.process(e))}};return d}(s,t?i:void 0),e),{}),{setup:o,read:l,resolveKeyframes:c,preUpdate:d,update:u,preRender:h,render:p,postRender:m}=a,f=()=>{let s=eI.useManualTiming,a=s?n.timestamp:performance.now();i=!1,s||(n.delta=r?1e3/60:Math.max(Math.min(a-n.timestamp,40),1)),n.timestamp=a,n.isProcessing=!0,o.process(n),l.process(n),c.process(n),d.process(n),u.process(n),h.process(n),p.process(n),m.process(n),n.isProcessing=!1,i&&t&&(r=!1,e(f))};return{schedule:eF.reduce((t,s)=>{let o=a[s];return t[s]=(t,s=!1,a=!1)=>(!i&&(i=!0,r=!0,n.isProcessing||e(f)),o.schedule(t,s,a)),t},{}),cancel:e=>{for(let t=0;t<eF.length;t++)a[eF[t]].cancel(e)},state:n,steps:a}}let{schedule:eB,cancel:eV,state:e$,steps:eH}=ez("u">typeof requestAnimationFrame?requestAnimationFrame:eR,!0),eU=new Set,eG=!1,eq=!1,eW=!1;function eX(){if(eq){let e=Array.from(eU).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),i=new Map;t.forEach(e=>{let t,r=(t=[],eO.forEach(i=>{let r=e.getValue(i);void 0!==r&&(t.push([i,r.get()]),r.set(+!!i.startsWith("scale")))}),t);r.length&&(i.set(e,r),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=i.get(e);t&&t.forEach(([t,i])=>{e.getValue(t)?.set(i)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}eq=!1,eG=!1,eU.forEach(e=>e.complete(eW)),eU.clear()}function eY(){eU.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(eq=!0)})}class eK{constructor(e,t,i,r,n,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=i,this.motionValue=r,this.element=n,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(eU.add(this),eG||(eG=!0,eB.read(eY),eB.resolveKeyframes(eX))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:i,motionValue:r}=this;if(null===e[0]){let n=r?.get(),s=e[e.length-1];if(void 0!==n)e[0]=n;else if(i&&t){let r=i.readValue(t,s);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=s),r&&void 0===n&&r.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),eU.delete(this)}cancel(){"scheduled"===this.state&&(eU.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let eZ=new Set([Z,J]);function eJ(e,t){let i=ei(e);return eZ.has(i)||(i=W),i.getAnimatableNone?i.getAnimatableNone(t):void 0}
182let eQ=new Set(["auto","none","0"]);class e0 extends eK{constructor(e,t,i,r,n){super(e,t,i,r,n,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:i}=this;if(!t||!t.current)return;super.readKeyframes();for(let i=0;i<e.length;i++){let r=e[i];if("string"==typeof r&&ey(r=r.trim())){let n=function e(t,i,r=1){em(`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[n,s]=function(e){let t=ew.exec(e);if(!t)return[,];let[,i,r,n]=t;return[`--${i??r}`,n]}(t);if(!n)return;let a=window.getComputedStyle(i).getPropertyValue(n);if(a){let e=a.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return ey(s)?e(s,i,r+1):s}(r,t.current);void 0!==n&&(e[i]=n),i===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!el.has(i)||2!==e.length)return;let[r,n]=e,s=eu(r),a=eu(n);if(eb(r)!==eb(n)&&eD[i]){this.needsMeasurement=!0;return}if(s!==a)if(eN(s)&&eN(a))for(let t=0;t<e.length;t++){let i=e[t];"string"==typeof i&&(e[t]=parseFloat(i))}else eD[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,i=[];for(let t=0;t<e.length;t++)(null===e[t]||function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)}(e[t]))&&i.push(t);i.length&&function(e,t,i){let r,n=0;for(;n<e.length&&!r;){let t=e[n];"string"==typeof t&&!eQ.has(t)&&G(t).values.length&&(r=e[n]),n++}if(r&&i)for(let n of t)e[n]=eJ(i,r)}(e,i,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:i}=this;if(!e||!e.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=eD[i](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];void 0!==r&&e.getValue(i,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:i}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let n=i.length-1,s=i[n];i[n]=eD[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
182h(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}let e1=e=>1e3*e;function e2(e,t){-1===e.indexOf(t)&&e.push(t)}function e3(e,t){let i=e.indexOf(t);i>-1&&e.splice(i,1)}class e4{constructor(){this.subscriptions=[]}add(e){return e2(this.subscriptions,e),()=>e3(this.subscriptions,e)}notify(e,t,i){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,i);else for(let n=0;n<r;n++){let r=this.subscriptions[n];r&&r(e,t,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function e5(e,t,i){t.startsWith("--")?e.style.setProperty(t,i):e.style[t]=i}function e6(e){let t;return()=>(void 0===t&&(t=e()),t)}let e8={};function e7(e,t){let i=e6(e);return()=>e8[t]??i()}let e9=e7(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),te=e=>null!==e;function tt(e,{repeat:t,repeatType:i="loop"},r,n=1){let s=e.filter(te),a=n<0||t&&"loop"!==i&&t%2==1?0:s.length-1;return a&&void 0!==r?r:s[a]}class ti{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let tr={layout:0,mainThread:0,waapi:0},tn=e=>Array.isArray(e)&&"number"==typeof e[0],ts=e7(()=>{try{document.createElement("div").animate({opacity:0}
182,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),ta=(e,t,i=10)=>{let r="",n=Math.max(Math.round(t/i),2);for(let t=0;t<n;t++)r+=Math.round(1e4*e(t/(n-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},to=([e,t,i,r])=>`cubic-bezier(${e}, ${t}, ${i}, ${r})`,tl={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:to([0,.65,.55,1]),circOut:to([.55,0,1,.45]),backIn:to([.31,.01,.66,-.59]),backOut:to([.33,1.53,.69,.99])};function tc(e){return"function"==typeof e&&"applyToOptions"in e}class td extends ti{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:i,keyframes:r,pseudoElement:n,allowFlatten:s=!1,finalKeyframe:a,onComplete:o}=e;this.isPseudoElement=!!n,this.allowFlatten=s,this.options=e,em(e.type);const l=function({type:e,...t}){return tc(e)&&ts()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,i,{delay:r=0,duration:n=300,repeat:s=0,repeatType:a="loop",ease:o="easeOut",times:l}={},c){let d={[t]:i};l&&(d.offset=l);let u=function e(t,i){if(t)return"function"==typeof t?ts()?ta(t,i):"ease-out":tn(t)?to(t):Array.isArray(t)?t.map(t=>e(t,i)||tl.easeOut):tl[t]}(o,n);Array.isArray(u)&&(d.easing=u);let h={delay:r,duration:n,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:s+1,direction:"reverse"===a?"alternate":"normal"};c&&(h.pseudoElement=c);let p=e.animate(d,h);return p}(t,i,r,l,n),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let e=tt(r,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(e),e5(t,i,e),this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){let t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=e1(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:i,observe:r}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&e9())?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),i&&(this.animation.rangeEnd=i),eR):r(this)}}let tu=new Set(["opacity","clipPath","filter","transform"]),{schedule:th}=ez(queueMicrotask,!1);function tp(){t=void 0}let tm={now:()=>(void 0===t&&tm.set(e$.isProcessing||eI.useManualTiming?e$.timestamp:performance.now()),t),set:e=>{t=e,queueMicrotask(tp)}};class tf{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=tm.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=tm.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new e4);let i=this.events[e].add(t);return"change"===e?()=>{i(),eB.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,i){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return n&&n.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=tm.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*e:0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function tg(e,t){return new tf(e,t)}let tv=[...ed,B,W],ty=new WeakMap;function tx(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function tb(e){return"string"==typeof e||Array.isArray(e)}let tw=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tC=["initial",...tw];function tS(e){return tx(e.animate)||tC.some(t=>tb(e[t]))}function tk(e){return!!(tS(e)||e.variants)}let tT={current:null},tE={current:!1},tP="u">typeof window;function tj(e){let t=[{},{}];
182return e?.values.forEach((e,i)=>{t[0][i]=e.get(),t[1][i]=e.getVelocity()}),t}function t_(e,t,i,r){if("function"==typeof t){let[n,s]=tj(r);t=t(void 0!==i?i:e.custom,n,s)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[n,s]=tj(r);t=t(void 0!==i?i:e.custom,n,s)}return t}let tM=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],tA={};class tN{scrapeMotionValuesFromProps(e,t,i){return{}}constructor({parent:e,props:t,presenceContext:i,reducedMotionConfig:r,skipAnimations:n,blockInitialAnimation:s,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=eK,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=tm.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,eB.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=t,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=n,this.options=o,this.blockInitialAnimation=!!s,this.isControllingVariants=tS(t),this.isVariantNode=tk(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:d,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in u){const t=u[e];void 0!==l[e]&&eo(t)&&t.set(l[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,ty.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(tE.current||function(){if(tE.current=!0,tP)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>tT.current=e.matches;e.addEventListener("change",t),t()}else tT.current=!1}(),this.shouldReduceMotion=tT.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),eV(this.notifyUpdate),eV(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let i;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&tu.has(e)&&this.current instanceof HTMLElement){let{factory:i,keyframes:r,times:n,ease:s,duration:a}=t.accelerate,o=new td({element:this.current,name:e,keyframes:r,times:n,ease:s,duration:e1(a)}),l=i(o);this.valueSubscriptions.set(e,()=>{l(),o.cancel()});return}let r=x.has(e);r&&this.onBindTransform&&this.onBindTransform();let n=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&eB.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{n(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in tA){let t=tA[e];if(!t)continue;let{isEnabled:i,Feature:r}=t;if(!this.features[e]&&r&&i(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];
182t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ea()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<tM.length;t++){let i=tM[t];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let r=e["on"+i];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=function(e,t,i){for(let r in t){let n=t[r],s=i[r];if(eo(n))e.addValue(r,n);else if(eo(s))e.addValue(r,tg(n,{owner:e}));else if(s!==n)if(e.hasValue(r)){let t=e.getValue(r);!0===t.liveStyle?t.jump(n):t.hasAnimated||t.set(n)}else{let t=e.getStaticValue(r);e.addValue(r,tg(void 0!==t?t:n,{owner:e}))}}for(let r in i)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let i=this.values.get(e);t!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return void 0===i&&void 0!==t&&(i=tg(null===t?void 0:t,{owner:this}),this.addValue(e,i)),i}readValue(e,t){let i=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=i){let r,n;if("string"==typeof i&&(r=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(r)||(n=i,/^0[^.\s]+$/u.test(n))))i=parseFloat(i);else{let r;r=i,!tv.find(ec(r))&&W.test(t)&&(i=eJ(e,t))}this.setBaseTarget(e,eo(i)?i.get():i)}return eo(i)?i.get():i}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let r=t_(this.props,i,this.presenceContext?.custom);r&&(t=r[e])}if(i&&void 0!==t)return t;let r=this.getBaseTargetFromProps(this.props,e);return void 0===r||eo(r)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new e4),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){th.render(this.render)}}class tL extends tN{constructor(){super(...arguments),this.KeyframeResolver=e0}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let i=e.style;return i?i[t]:void 0}removeValueFromRenderState(e,{vars:t,style:i}){delete t[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;eo(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function tO(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let tD=(e,t)=>t&&"number"==typeof e?t.transform(e):e,tR={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tI=y.length;function tF(e,t,i){let{style:r,vars:n,transformOrigin:s}=e,a=!1,o=!1;for(let e in t){let i=t[e];if(x.has(e)){a=!0;continue}if(eg(e)){n[e]=i;continue}{let t=tD(i,ee[e]);e.startsWith("origin")?(o=!0,s[e]=t):r[e]=t}}if(!t.transform&&(a||i?r.transform=function(e,t,i){let r="",n=!0;for(let s=0;s<tI;s++){let a=y[s],o=e[a];if(void 0===o)continue;let l=!0;if("number"==typeof o)l=o===+!!a.startsWith("scale");else{let e=parseFloat(o);l=a.startsWith("scale")?1===e:0===e}if(!l||i){let e=tD(o,ee[a]);if(!l){n=!1;let t=tR[a]||a;r+=`${t}(${e}) `}i&&(t[a]=e)}}return r=r.trim(),i?r=i(t,n?"":r):n&&(r="none"),r}(t,e.transform,i):r.transform&&(r.transform="none")),o){let{originX:e="50%",originY:t="50%",originZ:i=0}=s;r.transformOrigin=`${e} ${t} ${i}`}}let tz={offset:"stroke-dashoffset",array:"stroke-dasharray"},tB={offset:"strokeDashoffset",array:"strokeDasharray"},tV=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function t$(e,{attrX:t,attrY:i,attrScale:r,pathLength:n,pathSpacing:s=1,pathOffset:a=0,...o}
182,l,c,d){if(tF(e,o,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:u,style:h}=e;for(let e of(u.transform&&(h.transform=u.transform,delete u.transform),(h.transform||u.transformOrigin)&&(h.transformOrigin=u.transformOrigin??"50% 50%",delete u.transformOrigin),h.transform&&(h.transformBox=d?.transformBox??"fill-box",delete u.transformBox),tV))void 0!==u[e]&&(h[e]=u[e],delete u[e]);void 0!==t&&(u.x=t),void 0!==i&&(u.y=i),void 0!==r&&(u.scale=r),void 0!==n&&function(e,t,i=1,r=0,n=!0){e.pathLength=1;let s=n?tz:tB;e[s.offset]=`${-r}`,e[s.array]=`${t} ${i}`}(u,n,s,a,!1)}let tH=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),tU=e=>"string"==typeof e&&"svg"===e.toLowerCase();function tG(e,{style:t,vars:i},r,n){let s,a=e.style;for(s in t)a[s]=t[s];for(s in n?.applyProjectionStyles(a,r),i)a.setProperty(s,i[s])}function tq(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let tW={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!D.test(e))return e;else e=parseFloat(e);let i=tq(e,t.target.x),r=tq(e,t.target.y);return`${i}% ${r}%`}},tX=(e,t,i)=>e+(t-e)*i,tY={borderRadius:{...tW,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tW,borderTopRightRadius:tW,borderBottomLeftRadius:tW,borderBottomRightRadius:tW,boxShadow:{correct:(e,{treeScale:t,projectionDelta:i})=>{let r=W.parse(e);if(r.length>5)return e;let n=W.createTransformer(e),s=+("number"!=typeof r[0]),a=i.x.scale*t.x,o=i.y.scale*t.y;r[0+s]/=a,r[1+s]/=o;let l=tX(a,o,.5);return"number"==typeof r[2+s]&&(r[2+s]/=l),"number"==typeof r[3+s]&&(r[3+s]/=l),n(r)}}};function tK(e,{layout:t,layoutId:i}){return x.has(e)||e.startsWith("origin")||(t||void 0!==i)&&(!!tY[e]||"opacity"===e)}function tZ(e,t,i){let r=e.style,n=t?.style,s={};if(!r)return s;for(let t in r)(eo(r[t])||n&&eo(n[t])||tK(t,e)||i?.getValue(t)?.liveStyle!==void 0)&&(s[t]=r[t]);return s}function tJ(e,t,i){let r=tZ(e,t,i);for(let i in e)(eo(e[i])||eo(t[i]))&&(r[-1!==y.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=e[i]);return r}class tQ extends tL{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ea}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(x.has(t)){let e=ei(t);return e&&e.default||0}return t=tH.has(t)?t:tO(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,i){return tJ(e,t,i)}build(e,t,i){t$(e,t,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,t,i,r){for(let i in tG(e,t,void 0,r),t.attrs)e.setAttribute(tH.has(i)?i:tO(i),t.attrs[i])}mount(e){this.isSVGTag=tU(e.tagName),super.mount(e)}}function t0({top:e,left:t,right:i,bottom:r}){return{x:{min:t,max:i},y:{min:e,max:r}}}function t1(e){return void 0===e||1===e}function t2({scale:e,scaleX:t,scaleY:i}){return!t1(e)||!t1(t)||!t1(i)}function t3(e){return t2(e)||t4(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function t4(e){var t,i;return(t=e.x)&&"0%"!==t||(i=e.y)&&"0%"!==i}function t5(e,t,i,r,n){return void 0!==n&&(e=r+n*(e-r)),r+i*(e-r)+t}function t6(e,t=0,i=1,r,n){e.min=t5(e.min,t,i,r,n),e.max=t5(e.max,t,i,r,n)}function t8(e,{x:t,y:i}){t6(e.x,t.translate,t.scale,t.originPoint),t6(e.y,i.translate,i.scale,i.originPoint)}function t7(e,t){e.min+=t,e.max+=t}function t9(e,t,i,r,n=.5){let s=tX(e.min,e.max,n);t6(e,t,i,s,r)}function ie(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function it(e,t,i){let r=i??e;t9(e.x,ie(t.x,r.x),t.scaleX,t.scale,t.originX),t9(e.y,ie(t.y,r.y),t.scaleY,t.scale,t.originY)}function ii(e,t){return t0(function(e,t){if(!t)return e;let i=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:i.y,left:i.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}class ir extends tL{constructor(){super(...arguments),this.type="html",this.renderInstance=tG}readValueFromInstance(e,t){if(x.has(t))return this.projection?.isProjecting?e_(t):((e,t)=>{let{transform:i="none"}=getComputedStyle(e);return eM(i,t)})(e,t);{let i=window.getComputedStyle(e),r=(eg(t)?i.getPropertyValue(t):i[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return ii(e,t)}build(e,t,i){tF(e,t,i.transformTemplate)}scrapeMotionValuesFromProps(e,t,i){return tZ(e,t,i)}}let is=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ia(e){if("string"!=typeof e||e.includes("-"));else if(is.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let io=(0,f.createContext)({}),il=(0,f.createContext)({strict:!1}),ic=(0,f.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),id=(0,f.createContext)({});function iu(e){return Array.isArray(e)?e.join(" "):e}let ih=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ip(e,t,i){for(let r in t)eo(t[r])||tK(r,i)||(e[r]=t[r])}let im=()=>({...ih(),attrs:{}}),ig=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function iv(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ig.has(e)}let iy=e=>!iv(e);try{s=(()=>{let e=Error("Cannot find module '@emotion/is-prop-valid'");throw e.code="MODULE_NOT_FOUND",e})().default,"function"==typeof s&&(iy=e=>e.startsWith("on")?!iv(e):s(e))}catch{}function ix(e){return eo(e)?e.get():e}let ib=(0,f.createContext)(null);function iw(e){let t=(0,f.useRef)(null);return null===t.current&&(t.current=e()),t.current}let iC=e=>(t,i)=>{let r=(0,f.useContext)(id),n=(0,f.useContext)(ib),s=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},i,r,n){return{latestValues:function(e,t,i,r){let n={},s=r(e,{});for(let e in s)n[e]=ix(s[e]);let{initial:a,animate:o}=e,l=tS(e),c=tk(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===o&&(o=t.animate));let d=!!i&&!1===i.initial,u=(d=d||!1===a)?o:a;if(u&&"boolean"!=typeof u&&!tx(u)){let t=Array.isArray(u)?u:[u];for(let i=0;i<t.length;i++){let r=t_(e,t[i]);if(r){let{transitionEnd:e,transition:t,...i}=r;for(let e in i){let t=i[e];if(Array.isArray(t)){let e=d?t.length-1:0;t=t[e]}null!==t&&(n[e]=t)}for(let t in e)n[t]=e[t]}}}return n}(i,r,n,e),renderState:t()}})(e,t,r,n);return i?s():iw(s)},iS=iC({scrapeMotionValuesFromProps:tZ,createRenderState:ih}),ik=iC({scrapeMotionValuesFromProps:tJ,createRenderState:im}),iT={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},iE=!1;function iP(){return!function(){if(iE)return;let e={};for(let t in iT)e[t]={isEnabled:e=>iT[t].some(t=>!!e[t])};tA=e,iE=!0}(),tA}let ij=Symbol.for("motionComponentSymbol"),i_="data-"+tO("framerAppearId"),iM=(0,f.createContext)({});function iA(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let iN="u">typeof window?f.useLayoutEffect:f.useEffect;function iL(e,{forwardMotionProps:t=!1,type:i}={},r,n){r&&function(e){let t=iP();for(let i in e)t[i]={...t[i],...e[i]};tA=t}(r);let s=i?"svg"===i:ia(e),o=s?ik:iS;function l(i,r){var l;let c,d,u,h={...(0,f.useContext)(ic),...i,layoutId:function({layoutId:e}){let t=(0,f.useContext)(io).id;return t&&void 0!==e?t+"-"+e:e}(i)},{isStatic:p}=h,m=function(e){let{initial:t,animate:i}=function(e,t){if(tS(e)){let{initial:t,animate:i}=e;return{initial:!1===t||tb(t)?t:void 0,animate:tb(i)?i:void 0}}return!1!==e.inherit?t:{}}(e,(0,f.useContext)(id));return(0,f.useMemo)(()=>({initial:t,animate:i}),[iu(t),iu(i)])}(i),g=o(i,p);if(!p&&"u">typeof window){(0,f.useContext)(il).strict;let t=function(e){let{drag:t,layout:i}=iP();if(!t&&!i)return{};let r={...t,...i};return{MeasureLayout:t?.isEnabled(e)||i?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}
182(h);c=t.MeasureLayout,m.visualElement=function(e,t,i,r,n,s){let{visualElement:a}=(0,f.useContext)(id),o=(0,f.useContext)(il),l=(0,f.useContext)(ib),c=(0,f.useContext)(ic),d=c.reducedMotion,u=c.skipAnimations,h=(0,f.useRef)(null),p=(0,f.useRef)(!1);r=r||o.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:a,props:i,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:d,skipAnimations:u,isSVG:s}),p.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));let m=h.current,g=(0,f.useContext)(iM);m&&!m.projection&&n&&("html"===m.type||"svg"===m.type)&&function(e,t,i,r){let{layoutId:n,layout:s,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:c,layoutAnchor:d,layoutCrossfade:u}=t;e.projection=new i(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:n,layout:s,alwaysMeasureLayout:!!a||o&&iA(o),visualElement:e,animationType:"string"==typeof s?s:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:l,layoutRoot:c,layoutAnchor:d})}(h.current,i,n,g);let v=(0,f.useRef)(!1);(0,f.useInsertionEffect)(()=>{m&&v.current&&m.update(i,l)});let y=i[i_],x=(0,f.useRef)(!!y&&"u">typeof window&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return iN(()=>{p.current=!0,m&&(v.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),x.current&&m.animationState&&m.animationState.animateChanges())}),(0,f.useEffect)(()=>{m&&(!x.current&&m.animationState&&m.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),x.current=!1),m.enteringChildren=void 0)}),m}(e,g,h,n,t.ProjectionNode,s)}return(0,a.jsxs)(id.Provider,{value:m,children:[c&&m.visualElement?(0,a.jsx)(c,{visualElement:m.visualElement,...h}):null,function(e,t,i,{latestValues:r},n,s=!1,a){let o=(a??ia(e)?function(e,t,i,r){let n=(0,f.useMemo)(()=>{let i=im();return t$(i,t,tU(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){let t={};ip(t,e.style,e),n.style={...t,...n.style}}return n}:function(e,t){let i,r,n={},s=(i=e.style||{},ip(r={},i,e),Object.assign(r,function({transformTemplate:e},t){return(0,f.useMemo)(()=>{let i=ih();return tF(i,t,e),Object.assign({},i.vars,i.style)},[t])}(e,t)),r);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=s,n})(t,r,n,e),l=function(e,t,i){let r={};for(let n in e)("values"!==n||"object"!=typeof e.values)&&!eo(e[n])&&(iy(n)||!0===i&&iv(n)||!t&&!iv(n)||e.draggable&&n.startsWith("onDrag"))&&(r[n]=e[n]);return r}(t,"string"==typeof e,s),c=e!==f.Fragment?{...l,...o,ref:i}:{},{children:d}=t,u=(0,f.useMemo)(()=>eo(d)?d.get():d,[d]);return(0,f.createElement)(e,{...c,children:u})}(e,i,(l=m.visualElement,d=(0,f.useRef)(r),(0,f.useInsertionEffect)(()=>{d.current=r}),u=(0,f.useRef)(null),(0,f.useCallback)(e=>{e&&g.onMount?.(e);let t=d.current;if("function"==typeof t)if(e){let i=t(e);"function"==typeof i&&(u.current=i)}else u.current?(u.current(),u.current=null):t(e);else t&&(t.current=e);l&&(e?l.mount(e):l.unmount())},[l])),g,p,t,s)]})}l.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let c=(0,f.forwardRef)(l);return c[ij]=e,c}class iO{constructor(e){this.isMounted=!1,this.node=e}update(){}}function iD(e,t,i){let r=e.getProps();return t_(r,t,void 0!==i?i:r.custom,e)}function iR(e,t){if(e?.inherit&&t){let{inherit:i,...r}=e;return{...t,...r}}return e}function iI(e,t){let i=e?.[t]??e?.default??e;return i!==e?iR(i,e):i}let iF=e=>Array.isArray(e);function iz(e,t){let i=e.getValue("willChange");if(eo(i)&&i.add)return i.add(t);if(!i&&eI.WillChange){let i=new eI.WillChange("auto");e.addValue("willChange",i),i.add(t)}}let iB=(e,t)=>i=>t(e(i)),iV=(...e)=>e.reduce(iB);function i$(e,t,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?e+(t-e)*6*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function iH(e,t){return i=>i>0?t:e}let iU=(e,t,i)=>{let r=e*e,n=i*(t*t-r)+r;return n<0?0:Math.sqrt(n)},iG=[A,M,z];function iq(e){let t=iG.find(t=>t.test(e));if(ep(`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let i=t.parse(e);return t===z&&(i=function({hue:e,saturation:t,lightness:i,alpha:r}){e/=360,i/=100;let n=0,s=0,a=0;if(t/=100){let r=i<.5?i*(1+t):i+t-i*t,o=2*i-r;n=i$(o,r,e+1/3),s=i$(o,r,e),a=i$(o,r,e-1/3)}else n=s=a=i;return{red:Math.round(255*n),green:Math.round(255*s),blue:Math.round(255*a),alpha:r}}(i)),i}let iW=(e,t)=>
182{let i=iq(e),r=iq(t);if(!i||!r)return iH(e,t);let n={...i};return e=>(n.red=iU(i.red,r.red,e),n.green=iU(i.green,r.green,e),n.blue=iU(i.blue,r.blue,e),n.alpha=tX(i.alpha,r.alpha,e),M.transform(n))},iX=new Set(["none","hidden"]);function iY(e,t){return i=>tX(e,t,i)}function iK(e){return"number"==typeof e?iY:"string"==typeof e?ey(e)?iH:B.test(e)?iW:iQ:Array.isArray(e)?iZ:"object"==typeof e?B.test(e)?iW:iJ:iH}function iZ(e,t){let i=[...e],r=i.length,n=e.map((e,i)=>iK(e)(e,t[i]));return e=>{for(let t=0;t<r;t++)i[t]=n[t](e);return i}}function iJ(e,t){let i={...e,...t},r={};for(let n in i)void 0!==e[n]&&void 0!==t[n]&&(r[n]=iK(e[n])(e[n],t[n]));return e=>{for(let t in r)i[t]=r[t](e);return i}}let iQ=(e,t)=>{let i=W.createTransformer(t),r=G(e),n=G(t);if(!(r.indexes.var.length===n.indexes.var.length&&r.indexes.color.length===n.indexes.color.length&&r.indexes.number.length>=n.indexes.number.length))return ep(`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),iH(e,t);if(iX.has(e)&&!n.values.length||iX.has(t)&&!r.values.length)return iX.has(e)?i=>i<=0?e:t:i=>i>=1?t:e;return iV(iZ(function(e,t){let i=[],r={color:0,var:0,number:0};for(let n=0;n<t.values.length;n++){let s=t.types[n],a=e.indexes[s][r[s]],o=e.values[a]??0;i[n]=o,r[s]++}return i}(r,n),n.values),i)};function i0(e,t,i){return"number"==typeof e&&"number"==typeof t&&"number"==typeof i?tX(e,t,i):iK(e)(e,t)}let i1=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>eB.update(t,e),stop:()=>eV(t),now:()=>e$.isProcessing?e$.timestamp:tm.now()}};function i2(e){let t=0,i=e.next(t);for(;!i.done&&t<2e4;)t+=50,i=e.next(t);return t>=2e4?1/0:t}let i3=.01,i4=2,i5=.005,i6=.5;function i8(e,t){return e*Math.sqrt(1-t*t)}let i7=["duration","bounce"],i9=["stiffness","damping","mass"];function re(e,t){return t.some(t=>void 0!==e[t])}function rt(e=.3,t=.3){let i,r,n,s,a,o,l="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:c,restDelta:d}=l,u=l.keyframes[0],h=l.keyframes[l.keyframes.length-1],p={done:!1,value:u},{stiffness:m,damping:f,mass:g,duration:v,velocity:y,isResolvedFromDuration:x}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!re(e,i9)&&re(e,i7))if(t.velocity=0,e.visualDuration){let i=2*Math.PI/(1.2*e.visualDuration),r=i*i,n=2*b(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:1,stiffness:r,damping:n}}else{let i=function({duration:e=800,bounce:t=.3,velocity:i=0,mass:r=1}){let n,s;ep(e1(10));let a=1-t;a=b(.05,1,a),e=b(.01,10,e/1e3),a<1?(n=t=>{let r=t*a,n=r*e;return .001-(r-i)/i8(t,a)*Math.exp(-n)},s=t=>{let r=t*a*e,s=Math.pow(a,2)*Math.pow(t,2)*e,o=Math.exp(-r),l=i8(Math.pow(t,2),a);return(r*i+i-s)*o*(-n(t)+.001>0?-1:1)/l}):(n=t=>-.001+Math.exp(-t*e)*((t-i)*e+1),s=t=>e*e*(i-t)*Math.exp(-t*e));let o=function(e,t,i){let r=i;for(let i=1;i<12;i++)r-=e(r)/t(r);return r}(n,s,5/e);if(e=e1(e),isNaN(o))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(o,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}({...e,velocity:0});(t={...t,...i,mass:1}).isResolvedFromDuration=!0}return t}({...l,velocity:-((l.velocity||0)/1e3)}),w=y||0,C=f/(2*Math.sqrt(m*g)),S=h-u,k=Math.sqrt(m/g)/1e3,T=5>Math.abs(S);if(c||(c=T?i3:i4),d||(d=T?i5:i6),C<1)n=i8(k,C),s=(w+C*k*S)/n,i=e=>h-Math.exp(-C*k*e)*(s*Math.sin(n*e)+S*Math.cos(n*e)),a=C*k*s+S*n,o=C*k*S-s*n,r=e=>Math.exp(-C*k*e)*(a*Math.sin(n*e)+o*Math.cos(n*e));else if(1===C){i=e=>h-Math.exp(-k*e)*(S+(w+k*S)*e);let e=w+k*S;r=t=>Math.exp(-k*t)*(k*e*t-w)}else{let e=k*Math.sqrt(C*C-1);i=t=>{let i=Math.exp(-C*k*t),r=Math.min(e*t,300);return h-i*((w+C*k*S)*Math.sinh(r)+e*S*Math.cosh(r))/e};let t=(w+C*k*S)/e,n=C*k*t-S*e,s=C*k*S-t*e;r=t=>{let i=Math.exp(-C*k*t),r=Math.min(e*t,300);return i*(n*Math.sinh(r)+s*Math.cosh(r))}}let E={calculatedDuration:x&&v||null,velocity:e=>e1(r(e)),next:e=>{if(!x&&C<1){let t=Math.exp(-C*k*e),i=Math.sin(n*e),r=Math.cos(n*e),l=h-t*(s*i+S*r);return p.done=Math.abs(e1(t*(a*i+o*r)))<=c&&Math.abs(h-l)<=d,p.value=p.done?h:l,p}let t=i(e);return x?p.done=e>=v:p.done=Math.abs(e1(r(e)))<=c&&Math.abs(h-t)<=d,p.value=p.done?h:t,p},toString:()=>{let e=Math.min(i2(E),2e4),t=ta(t=>E.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return E}function ri(e,t,i){var r,n;let s=Math.max(t-5,0);return r=i-e(s),(n=t-s)?1e3/n*r:0}function rr({keyframes:e,velocity:t=0,power:i=.8,timeConstant:r=325,bounceDamping:n=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:l,restDelta:c=.5,restSpeed:d}){let u,h,p=e[0],m={done:!1,value:p},f=i*t,g=p+f,v=void 0===a?g:a(g);v!==g&&(f=v-p);let y=e=>-f*Math.exp(-e/r),x=e=>v+y(e),b=e=>{let t=y(e),i=x(e);m.done=Math.abs(t)<=c,m.value=m.done?v:i},w=e=>{let t;if(t=m.value,void 0!==o&&t<o||void 0!==l&&t>l){var i;u=e,h=rt({keyframes:[m.value,(i=m.value,void 0===o?l:void 0===l||Math.abs(o-i)<Math.abs(l-i)?o:l)],velocity:ri(x,e,m.value),damping:n,stiffness:s,restDelta:c,restSpeed:d})}};return w(0),{calculatedDuration:null,next:e=>{let t=!1;
182return(h||void 0!==u||(t=!0,b(e),w(e)),void 0!==u&&e>=u)?h.next(e-u):(t||b(e),m)}}}rt.applyToOptions=e=>{let t=function(e,t=100,i){let r=i({...e,keyframes:[0,t]}),n=Math.min(i2(r),2e4);return{type:"keyframes",ease:e=>r.next(n*e).value/t,duration:n/1e3}}(e,100,rt);return e.ease=t.ease,e.duration=e1(t.duration),e.type="keyframes",e};let rn=(e,t,i)=>(((1-3*i+3*t)*e+(3*i-6*t))*e+3*t)*e;function rs(e,t,i,r){return e===t&&i===r?eR:n=>0===n||1===n?n:rn(function(e,t,i,r,n){let s,a,o=0;do(s=rn(a=t+(i-t)/2,r,n)-e)>0?i=a:t=a;while(Math.abs(s)>1e-7&&++o<12)return a}(n,0,1,e,i),t,r)}let ra=rs(.42,0,1,1),ro=rs(0,0,.58,1),rl=rs(.42,0,.58,1),rc=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,rd=e=>t=>1-e(1-t),ru=rs(.33,1.53,.69,.99),rh=rd(ru),rp=rc(rh),rm=e=>e>=1?1:(e*=2)<1?.5*rh(e):.5*(2-Math.pow(2,-10*(e-1))),rf=e=>1-Math.sin(Math.acos(e)),rg=rd(rf),rv=rc(rf),ry={linear:eR,easeIn:ra,easeInOut:rl,easeOut:ro,circIn:rf,circInOut:rv,circOut:rg,backIn:rh,backInOut:rp,backOut:ru,anticipate:rm},rx=e=>{if(tn(e)){em(e.length);let[t,i,r,n]=e;return rs(t,i,r,n)}return"string"==typeof e?(em(ry[e],`Invalid easing type '${e}'`),ry[e]):e},rb=(e,t,i)=>{let r=t-e;return 0===r?1:(i-e)/r};function rw({duration:e=300,keyframes:t,times:i,ease:r="easeInOut"}){var n;let s,a=Array.isArray(r)&&"number"!=typeof r[0]?r.map(rx):rx(r),o={done:!1,value:t[0]},l=function(e,t,{clamp:i=!0,ease:r,mixer:n}={}){let s=e.length;if(em(t.length),1===s)return()=>t[0];if(2===s&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());let o=function(e,t,i){let r=[],n=i||eI.mix||i0,s=e.length-1;for(let i=0;i<s;i++){let s=n(e[i],e[i+1]);t&&(s=iV(Array.isArray(t)?t[i]||eR:t,s)),r.push(s)}return r}(t,r,n),l=o.length,c=i=>{if(a&&i<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(i<e[r+1]);r++);let n=rb(e[r],e[r+1],i);return o[r](n)};return i?t=>c(b(e[0],e[s-1],t)):c}((n=i&&i.length===t.length?i:(!function(e,t){let i=e[e.length-1];for(let r=1;r<=t;r++){let n=rb(0,t,r);e.push(tX(i,1,n))}}(s=[0],t.length-1),s),n.map(t=>t*e)),t,{ease:Array.isArray(a)?a:t.map(()=>a||rl).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=l(t),o.done=t>=e,o)}}let rC={decay:rr,inertia:rr,tween:rw,keyframes:rw,spring:rt};function rS(e){"string"==typeof e.type&&(e.type=rC[e.type])}let rk=e=>e/100;class rT extends ti{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==tm.now()&&this.tick(tm.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},tr.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;rS(e);let{type:t=rw,repeat:i=0,repeatDelay:r=0,repeatType:n,velocity:s=0}=e,{keyframes:a}=e,o=t||rw;o!==rw&&"number"!=typeof a[0]&&(this.mixKeyframes=iV(rk,i0(a[0],a[1])),a=[0,100]);let l=o({...e,keyframes:a});"mirror"===n&&(this.mirroredGenerator=o({...e,keyframes:[...a].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=i2(l));let{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+r,this.totalDuration=this.resolvedDuration*(i+1)-r,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let i,{generator:r,totalDuration:n,mixKeyframes:s,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:l}=this;if(null===this.startTime)return r.next(0);let{delay:c=0,keyframes:d,repeat:u,repeatType:h,repeatDelay:p,type:m,onUpdate:f,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-n/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let v=this.currentTime-c*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?v<0:v>n;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let x=this.currentTime,w=r;if(u){let e=Math.min(this.currentTime,n)/o,t=Math.floor(e),i=e%1;!i&&e>=1&&(i=1),1===i&&t--,(t=Math.min(t,u+1))%2&&("reverse"===h?(i=1-i,p&&(i-=p/o)):"mirror"===h&&(w=a)),x=b(0,1,i)*o}y?(this.delayState.value=d[0],i=this.delayState):i=w.next(x),s&&!y&&(i.value=s(i.value));let{done:C}=i;y||null===l||(C=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&C);return S&&m!==rr&&(i.value=tt(d,this.options,g,this.speed)),f&&f(i.value),S&&this.finish(),i}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return this.currentTime/1e3}set time(e){e=e1(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return ri(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(tm.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=i1,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=t??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(tm.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,tr.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}let rE={anticipate:rm,backInOut:rp,circInOut:rv};class rP extends td{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in rE&&(e.ease=rE[e.ease])}(e),rS(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:i,onComplete:r,element:n,...s}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let a=new rT({...s,autoplay:!1}),o=Math.max(10,tm.now()-this.startTime),l=b(0,10,o-10),c=a.sample(o).value,{name:d}=this.options;n&&d&&e5(n,d,c),t.setWithVelocity(a.sample(Math.max(0,o-l)).value,c,l),a.stop()}}let rj=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(W.test(e)||"0"===e)&&!e.startsWith("url("));function r_(e){e.duration=0,e.type="keyframes"}let rM=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,rA=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),rN=e6(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class rL extends ti{constructor({autoplay:e=!0,delay:t=0,type:i="keyframes",repeat:r=0,repeatDelay:n=0,repeatType:s="loop",keyframes:a,name:o,motionValue:l,element:c,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tm.now();const u={autoplay:e,delay:t,type:i,repeat:r,repeatDelay:n,repeatType:s,name:o,motionValue:l,element:c,...d},h=c?.KeyframeResolver||eK;this.keyframeResolver=new h(a,(e,t,i)=>this.onKeyframesResolved(e,t,u,!i),o,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,i,r){let n;this.keyframeResolver=void 0;let{name:s,type:a,velocity:o,delay:l,isHandoff:c,onUpdate:d}=i;this.resolvedAt=tm.now();let u=!0;!function(e,t,i,r){let n=e[0];if(null===n)return!1;if("display"===t||"visibility"===t)return!0;let s=e[e.length-1],a=rj(n,t),o=rj(s,t);return ep(`You are trying to animate ${t} from "${n}" to "${s}". "${a?s:n}" is not an animatable value.`),!!a&&!!o&&(function(e){let t=e[0];if(1===e.length)return!0;for(let i=0;i<e.length;i++)if(e[i]!==t)return!0}(e)||("spring"===i||tc(i))&&r)}(e,s,a,o)&&(u=!1,(eI.instantAnimations||!l)&&d?.(tt(e,i,t)),e[0]=e[e.length-1],r_
182(i),i.repeat=0);let h={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...i,keyframes:e},p=u&&!c&&function(e){let{motionValue:t,name:i,repeatDelay:r,repeatType:n,damping:s,type:a,keyframes:o}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:c}=t.owner.getProps();return rN()&&i&&(tu.has(i)||rA.has(i)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&rM.test(e[t]))return!0;return!1}(o))&&("transform"!==i||!c)&&!l&&!r&&"mirror"!==n&&0!==s&&"inertia"!==a}(h),m=h.motionValue?.owner?.current;if(p)try{n=new rP({...h,element:m})}catch{n=new rT(h)}else n=new rT(h);n.finished.then(()=>{this.notifyFinished()}).catch(eR),this.pendingTimeline&&(this.stopTimeline=n.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=n}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),eW=!0,eY(),eX(),eW=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let rO={type:"spring",stiffness:500,damping:25,restSpeed:10},rD={type:"keyframes",duration:.8},rR={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rI=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),rF=(e,t,i,r={},n,s)=>a=>{let o=iI(r,e)||{},l=o.delay||r.delay||0,{elapsed:c=0}=r;c-=e1(l);let d={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-c,onUpdate:e=>{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:s?void 0:n};!function(e){for(let t in e)if(!rI.has(t))return!0;return!1}(o)&&Object.assign(d,((e,{keyframes:t})=>t.length>2?rD:x.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:rO:rR)(e,d)),d.duration&&(d.duration=e1(d.duration)),d.repeatDelay&&(d.repeatDelay=e1(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let u=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(r_(d),0===d.delay&&(u=!0)),(eI.instantAnimations||eI.skipAnimations||n?.shouldSkipAnimations)&&(u=!0,r_(d),d.delay=0),d.allowFlatten=!o.type&&!o.ease,u&&!s&&void 0!==t.get()){let e=tt(d.keyframes,o);if(void 0!==e)return void eB.update(()=>{d.onUpdate(e),d.onComplete()})}return o.isSync?new rT(d):new rL(d)};function rz(e,t,{delay:i=0,transitionOverride:r,type:n}={}){let{transition:s,transitionEnd:a,...o}=t,l=e.getDefaultTransition();s=s?iR(s,l):l;let c=s?.reduceMotion;r&&(s=r);let d=[],u=n&&e.animationState&&e.animationState.getState()[n];for(let t in o){let r=e.getValue(t,e.latestValues[t]??null),n=o[t];if(void 0===n||u&&function({protectedKeys:e,needsAnimating:t},i){let r=e.hasOwnProperty(i)&&!0!==t[i];return t[i]=!1,r}(u,t))continue;let a={delay:i,...iI(s||{},t)},l=r.get();if(void 0!==l&&!r.isAnimating()&&!Array.isArray(n)&&n===l&&!a.velocity){eB.update(()=>r.set(n));continue}let h=!1;if(window.MotionHandoffAnimation){let i=e.props[i_];if(i){let e=window.MotionHandoffAnimation(i,t,eB);null!==e&&(a.startTime=e,h=!0)}}iz(e,t);let p=c??e.shouldReduceMotion;r.start(rF(t,r,n,p&&el.has(t)?{type:!1}:a,e,h));let m=r.animation;m&&d.push(m)}if(a){let t=()=>eB.update(()=>{a&&function(e,t){let{transitionEnd:i={},transition:r={},...n}=iD(e,t)||{};for(let t in n={...n,...i}){var s;let i=iF(s=n[t])?s[s.length-1]||0:s;e.hasValue(t)?e.getValue(t).set(i):e.addValue(t,tg(i))}}(e,a)});d.length?Promise.all(d).then(t):t()}return d}function rB(e,t,i,r=0,n=1){let s=Array.from(e).sort((e,t)=>
182e.sortNodePosition(t)).indexOf(t),a=e.size,o=(a-1)*r;return"function"==typeof i?i(s,a):1===n?s*r:o-s*r}function rV(e,t,i={}){let r=iD(e,t,"exit"===i.type?e.presenceContext?.custom:void 0),{transition:n=e.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(n=i.transitionOverride);let s=r?()=>Promise.all(rz(e,r,i)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:s=0,staggerChildren:a,staggerDirection:o}=n;return function(e,t,i=0,r=0,n=0,s=1,a){let o=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),o.push(rV(l,t,{...a,delay:i+("function"==typeof r?0:r)+rB(e.variantChildren,l,r,n,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(o)}(e,t,r,s,a,o,i)}:()=>Promise.resolve(),{when:o}=n;if(!o)return Promise.all([s(),a(i.delay)]);{let[e,t]="beforeChildren"===o?[s,a]:[a,s];return e().then(()=>t())}}let r$=tC.length;function rH(e,t){if(!Array.isArray(t))return!1;let i=t.length;if(i!==e.length)return!1;for(let r=0;r<i;r++)if(t[r]!==e[r])return!1;return!0}let rU=[...tw].reverse(),rG=tw.length;function rq(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rW(){return{animate:rq(!0),whileInView:rq(),whileHover:rq(),whileTap:rq(),whileDrag:rq(),whileFocus:rq(),exit:rq()}}let rX=0;function rY(e){return[e("x"),e("y")]}function rK(e,t,i,r={passive:!0}){return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i)}let rZ={x:!1,y:!1};function rJ(e){return e.max-e.min}function rQ(e,t,i,r=.5){e.origin=r,e.originPoint=tX(t.min,t.max,e.origin),e.scale=rJ(i)/rJ(t),e.translate=tX(i.min,i.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function r0(e,t,i,r){rQ(e.x,t.x,i.x,r?r.originX:void 0),rQ(e.y,t.y,i.y,r?r.originY:void 0)}function r1(e,t,i,r=0){e.min=(r?tX(i.min,i.max,r):i.min)+t.min,e.max=e.min+rJ(t)}function r2(e,t,i,r=0){let n=r?tX(i.min,i.max,r):i.min;e.min=t.min-n,e.max=e.min+rJ(t)}function r3(e,t,i,r){r2(e.x,t.x,i.x,r?.x),r2(e.y,t.y,i.y,r?.y)}function r4(e){return"object"==typeof e&&null!==e}function r5(e){return r4(e)&&"ownerSVGElement"in e}function r6(e,t,i){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let r=document;t&&(r=t.current);let n=i?.[e]??r.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e).filter(e=>null!=e)}let r8=new WeakMap,r7=(e,t,i)=>(r,n)=>n&&n[0]?n[0][e+"Size"]:r5(r)&&"getBBox"in r?r.getBBox()[t]:r[i],r9=r7("inline","width","offsetWidth"),ne=r7("block","height","offsetHeight");function nt({target:e,borderBoxSize:t}){r8.get(e)?.forEach(i=>{i(e,{get width(){return r9(e,t)},get height(){return ne(e,t)}})})}function ni(e){e.forEach(nt)}let nr=new Set;function nn(e,t){let n;return"function"==typeof e?(nr.add(e),r||(r=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};nr.forEach(t=>t(e))},window.addEventListener("resize",r)),()=>{nr.delete(e),nr.size||"function"!=typeof r||(window.removeEventListener("resize",r),r=void 0)}):(!i&&"u">typeof ResizeObserver&&(i=new ResizeObserver(ni)),(n=r6(e)).forEach(e=>{let r=r8.get(e);r||(r=new Set,r8.set(e,r)),r.add(t),i?.observe(e)}),()=>{n.forEach(e=>{let r=r8.get(e);r?.delete(t),r?.size||i?.unobserve(e)})})}let ns=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),na=new Set(["INPUT","SELECT","TEXTAREA"]),no=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function nl(e){return{point:{x:e.pageX,y:e.pageY}}}function nc(e,t,i,r){return rK(e,t,e=>no(e)&&i(e,nl(e)),r)}let nd=({current:e})=>e?e.ownerDocument.defaultView:null,nu=(e,t)=>Math.abs(e-t),nh=new Set(["auto","scroll"]);class np{constructor(e,t,{transformPagePoint:i,contextWindow:r=window,dragSnapToOrigin:n=!1,distanceThreshold:s=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=nm(this.lastRawMoveEventInfo,this.transformPagePoint));let i=ng(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,n=(e=i.offset,t={x:0,y:0},Math.sqrt(nu(e.x,t.x)**2+nu(e.y,t.y)**2)>=this.distanceThreshold);if(!r&&!n)return;let{point:s}=i,{timestamp:a}=e$;this.history.push({...s,timestamp:a});
182let{onStart:o,onMove:l}=this.handlers;r||(o&&o(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=nm(t,this.transformPagePoint),eB.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:i,onSessionEnd:r,resumeAnimation:n}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=ng("pointercancel"===e.type?this.lastMoveEventInfo:nm(t,this.transformPagePoint),this.history);this.startEvent&&i&&i(e,s),r&&r(e,s)},!no(e))return;this.dragSnapToOrigin=n,this.handlers=t,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=r||window;const o=nm(nl(e),this.transformPagePoint),{point:l}=o,{timestamp:c}=e$;this.history=[{...l,timestamp:c}];const{onSessionStart:d}=t;d&&d(e,ng(o,this.history)),this.removeListeners=iV(nc(this.contextWindow,"pointermove",this.handlePointerMove),nc(this.contextWindow,"pointerup",this.handlePointerUp),nc(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(nh.has(e.overflowX)||nh.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let i=e===window,r=i?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},n={x:r.x-t.x,y:r.y-t.y};(0!==n.x||0!==n.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=n.x,this.lastMoveEventInfo.point.y+=n.y):this.history.length>0&&(this.history[0].x-=n.x,this.history[0].y-=n.y),this.scrollPositions.set(e,r),eB.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),eV(this.updatePoint)}}function nm(e,t){return t?{point:t(e.point)}:e}function nf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ng({point:e},t){return{point:e,delta:nf(e,nv(t)),offset:nf(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,i=null,r=nv(e);for(;t>=0&&(i=e[t],!(r.timestamp-i.timestamp>e1(.1)));)t--;if(!i)return{x:0,y:0};i===e[0]&&e.length>2&&r.timestamp-i.timestamp>2*e1(.1)&&(i=e[1]);let n=(r.timestamp-i.timestamp)/1e3;if(0===n)return{x:0,y:0};let s={x:(r.x-i.x)/n,y:(r.y-i.y)/n};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(t)}}function nv(e){return e[e.length-1]}function ny(e,t,i){return{min:void 0!==t?e.min+t:void 0,max:void 0!==i?e.max+i-(e.max-e.min):void 0}}function nx(e,t){let i=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([i,r]=[r,i]),{min:i,max:r}}function nb(e,t,i){return{min:nw(e,t),max:nw(e,i)}}function nw(e,t){return"number"==typeof e?e:e[t]||0}let nC=new WeakMap;class nS{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ea(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:i}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let n=e=>{t&&this.snapToCursor(nl(e).point),this.stopAnimation()},s=(e,t)=>{let{drag:i,dragPropagation:r,onDragStart:n}=this.getProps();if(i&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(rZ[e])return null;else return rZ[e]=!0,()=>{rZ[e]=!1};return rZ.x||rZ.y?null:(rZ.x=rZ.y=!0,()=>{rZ.x=rZ.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rY(e=>{let t=this.getAxisMotionValue(e).get()||0;if(O.test(t)){let{projection:i}=this.visualElement;if(i&&i.layout){let r=i.layout.layoutBox[e];r&&(t=rJ(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),n&&eB.update(()=>n(e,t),!1,!0),iz(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:i,dragDirectionLock:r,onDirectionLock:n,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let i=null;return Math.abs(e.y)>t?i="y":Math.abs(e.x)>t&&(i="x"),i}(a),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),s&&eB.update(()=>s(e,t),!1,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new np(e,{onSessionStart:n,onStart:s,onMove:a,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:i,contextWindow:nd(this.visualElement),element:this.visualElement.current})}stop(e,t){let i=e||this.latestPointerEvent,r=t||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!r||!i)return;let{velocity:s}=r;this.startAnimation(s);let{onDragEnd:a}=this.getProps();a&&eB.postRender(()=>a(i,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,i){let{drag:r}=this.getProps();if(!i||!nT(e,r,this.currentDirection))return;let n=this.getAxisMotionValue(e),s=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(s=function(e,{min:t,max:i},r){return void 0!==t&&e<t?e=r?tX(t,e,r.min):Math.max(e,t):void 0!==i&&e>i&&(e=r?tX(i,e,r.max):Math.min(e,i)),e}(s,this.constraints[e],this.elastic[e])),n.set(s)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&iA(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=function(e,{top:t,left:i,bottom:r,right:n}){return{x:ny(e.x,i,n),y:ny(e.y,t,r)}}(i.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:nb(e,"left","right"),y:nb(e,"top","bottom")}}(t),r!==this.constraints&&!iA(e)&&i&&this.constraints&&!this.hasMutatedConstraints&&rY(e=>{var t,r;let n;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=i.layoutBox[e],r=this.constraints[e],n={},void 0!==r.min&&(n.min=r.min-t.min),void 0!==r.max&&(n.max=r.max-t.min),n))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:i}=this.getProps();if(!t||!iA(t))return!1;let r=t.current;em();let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let s=function(e,t,i){let r=ii(e,i),{scroll:n}=t;return n&&(t7(r.x,n.offset.x),t7(r.y,n.offset.y)),r}(r,n.root,this.visualElement.getTransformPagePoint()),a=(e=n.layout.layoutBox,{x:nx(e.x,s.x),y:nx(e.y,s.y)});if(i){let e=i(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=t0(e))}return a}startAnimation(e){let{drag:t,dragMomentum:i,dragElastic:r,dragTransition:n,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(rY(a=>{if(!nT(a,t,this.currentDirection))return;let l=o&&o[a]||{};(!0===s||s===a)&&(l={min:0,max:0});let c={type:"inertia",velocity:i?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(a,c)})).then(a)}startAxisValueAnimation(e,t){let i=this.getAxisMotionValue(e);return iz(this.visualElement,e),i.start(rF(e,i,0,t,this.visualElement,!1))}stopAnimation(){rY(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps();return i[t]||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){rY(t=>{let{drag:i}=this.getProps();if(!nT(t,i,this.currentDirection))return;let{projection:r}=this.visualElement,n=this.getAxisMotionValue(t);if(r&&r.layout){let{min:i,max:s}=r.layout.layoutBox[t],a=n.get()||0;n.set(e[t]-tX(i,s,.5)+a)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:i}=this.visualElement;if(!iA(t)||!i||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};rY(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var i,n;let s,a,o,l=t.get();r[e]=(i={min:l,max:l}
182,n=this.constraints[e],s=.5,a=rJ(i),(o=rJ(n))>a?s=rb(n.min,n.max-a,i.min):a>o&&(s=rb(i.min,i.max-o,n.min)),b(0,1,s))}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),rY(t=>{if(!nT(t,e,null))return;let i=this.getAxisMotionValue(t),{min:n,max:s}=this.constraints[t];i.set(tX(n,s,r[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;nC.set(this.visualElement,this);let t=this.visualElement.current,i=nc(t,"pointerdown",e=>{let{drag:i,dragListener:r=!0}=this.getProps(),n=e.target,s=n!==t&&(na.has(n.tagName)||!0===n.isContentEditable);i&&r&&!s&&this.start(e)}),r=()=>{var i,r,n;let s,a,{dragConstraints:o}=this.getProps();iA(o)&&o.current&&(this.constraints=this.resolveRefConstraints(),e||(i=t,r=o.current,s=nn(i,nk(n=()=>this.scalePositionWithinConstraints())),a=nn(r,nk(n)),e=()=>{s(),a()}))},{projection:n}=this.visualElement,s=n.addEventListener("measure",r);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),eB.read(r);let a=rK(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(rY(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{a(),i(),s(),o&&o(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:n=!1,dragElastic:s=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:i,dragPropagation:r,dragConstraints:n,dragElastic:s,dragMomentum:a}}}function nk(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function nT(e,t,i){return(!0===t||t===e)&&(null===i||i===e)}let nE=e=>(t,i)=>{e&&eB.update(()=>e(t,i),!1,!0)},nP={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var nj=f;function n_(e=!0){let t=(0,f.useContext)(ib);if(null===t)return[!0,null];let{isPresent:i,onExitComplete:r,register:n}=t,s=(0,f.useId)();(0,f.useEffect)(()=>{if(e)return n(s)},[e]);let a=(0,f.useCallback)(()=>e&&r&&r(s),[s,r,e]);return!i&&r?[!1,a]:[!0]}let nM=!1;class nA extends nj.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i,layoutId:r}=this.props,{projection:n}=e;n&&(t.group&&t.group.add(n),i&&i.register&&r&&i.register(n),nM&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),nP.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:i,drag:r,isPresent:n}=this.props,{projection:s}=i;return s&&(s.isPresent=n,e.layoutDependency!==t&&s.setOptions({...s.options,layoutDependency:t}),nM=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==n?s.willUpdate():this.safeToRemove(),e.isPresent!==n&&(n?s.promote():s.relegate()||eB.postRender(()=>{let e=s.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:i}=e;i&&(i.options.layoutAnchor=t,i.root.didUpdate(),th.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i}=this.props,{projection:r}=e;nM=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function nN(e){let[t,i]=n_(),r=(0,nj.useContext)(io);return(0,a.jsx)(nA,{...e,layoutGroup:r,switchLayoutGroup:(0,nj.useContext)(iM),isPresent:t,safeToRemove:i})}let nL=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],nO=nL.length,nD=e=>"string"==typeof e?parseFloat(e):e,nR=e=>"number"==typeof e||D.test(e);function nI(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let nF=nB(0,.5,rg),nz=nB(.5,.95,eR);function nB(e,t,i){return r=>r<e?0:r>t?1:i(rb(e,t,r))}function nV(e,t){e.min=t.min,e.max=t.max}function n$(e,t){nV(e.x,t.x),nV(e.y,t.y)}function nH(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function nU(e,t,i,r,n){return e-=t,e=r+1/i*(e-r),void 0!==n&&(e=r+1/n*(e-r)),e}function nG(e,t,[i,r,n],s,a){!function(e,t=0,i=1,r=.5,n,s=e,a=e){if(O.test(t)&&(t=parseFloat(t),t=tX(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let o=tX(s.min,s.max,r);e===s&&(o-=t),e.min=nU(e.min,t,i,o,n),e.max=nU(e.max,t,i,o,n)}(e,t[i],t[r],t[n],t.scale,s,a)}let nq=["x","scaleX","originX"],nW=["y","scaleY","originY"];function nX(e,t,i,r){nG(e.x,t,nq,i?i.x:void 0,r?r.x:void 0),nG(e.y,t,nW,i?i.y:void 0,r?r.y:void 0)}function nY(e){return 0===e.translate&&1===e.scale}function nK(e){return nY(e.x)&&nY(e.y)}function nZ(e,t){return e.min===t.min&&e.max===t.max}function nJ(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function nQ(e,t){return nJ(e.x,t.x)&&nJ(e.y,t.y)}function n0(e){return rJ(e.x)/rJ(e.y)}function n1(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class n2{constructor(){this.members=[]}add(e){e2(this.members,e);for(let t=this.members.length-1;t>=0;t--){let i=this.members[t];if(i===e||i===this.lead||i===this.prevLead)continue;let r=i.instance;r&&!1!==r.isConnected||i.snapshot||(e3(this.members,i),i.unmount())}e.scheduleRender()}remove(e){if(e3(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(!1!==e.isPresent&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=i.options,{layoutDependency:n}=e.options;(void 0===r||r!==n)&&(e.resumeFrom=i,t&&(i.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root?.isU
182pdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let n3=(e,t)=>e.depth-t.depth;class n4{constructor(){this.children=[],this.isDirty=!1}add(e){e2(this.children,e),this.isDirty=!0}remove(e){e3(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(n3),this.isDirty=!1,this.children.forEach(e)}}let n5=["","X","Y","Z"],n6=0;function n8(e,t,i,r){let{latestValues:n}=t;n[e]&&(i[e]=n[e],t.setStaticValue(e,0),r&&(r[e]=0))}function n7({attachResizeListener:e,defaultParent:t,measureScroll:i,checkIsScrollRoot:r,resetTransform:n}){return class{constructor(e={},i=t?.()){this.id=n6++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(st),this.nodes.forEach(sd),this.nodes.forEach(su),this.nodes.forEach(si)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new n4)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new e4),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let i=this.eventHandlers.get(e);i&&i.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=r5(t)&&!(r5(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:i,layout:r,visualElement:n}=this.options;if(n&&!n.current&&n.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||i)&&(this.isLayoutDirty=!0),e){let i,r=0,n=()=>this.root.updateBlockedByResize=!1;eB.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==r){let t,s;r=e,this.root.updateBlockedByResize=!0,i&&i(),t=tm.now(),s=({timestamp:e})=>{let i=e-t;i>=250&&(eV(s),n())},eB.setup(s,!0),i=()=>eV(s),nP.hasAnimatedSinceResize&&(nP.hasAnimatedSinceResize=!1,this.nodes.forEach(sc))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&n&&(i||r)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:i,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||n.getDefaultTransition()||sv,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=n.getProps(),l=!this.targetLayout||!nQ(this.targetLayout,r),c=!t&&i;if(this.options.layoutRoot||this.resumeFrom||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...iI(s,"layout"),onPlay:a,onComplete:o};(n.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,c)}else t||sc(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),eV(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
182h(sh),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:i}=t.options;if(!i)return;let r=i.props[i_];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",eB,!(e||i))}let{parent:n}=t;n&&!n.hasCheckedOptimisedAppear&&e(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,("string"==typeof t.latestValues.x||"string"==typeof t.latestValues.y)&&(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:i}=this.options;if(void 0===t&&!i)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(ss),this.nodes.forEach(sn);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(sa);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(so),this.nodes.forEach(sl),this.nodes.forEach(n9),this.nodes.forEach(se)):this.nodes.forEach(sa),this.clearAllSnapshots();let e=tm.now();e$.delta=b(0,1e3/60,e-e$.timestamp),e$.timestamp=e,e$.isProcessing=!0,eH.update.process(e$),eH.preRender.process(e$),eH.render.process(e$),e$.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,th.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(sr),this.sharedNodes.forEach(sp)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,eB.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){eB.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||rJ(this.snapshot.measuredBox.x)||rJ(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=ea()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!n)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!nK(this.projectionDelta),i=this.getTransformTemplate(),r=i?i(this.latestValues,""):void 0,s=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||t3(this.latestValues)||s)&&(n(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let i=this.measurePageBox(),r=this.removeElementScroll(i);return e&&(r=this.removeTransform(r)),sb((t=r).x),sb(t.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return ea();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(sC))){let{scroll:e}=this.root;e&&(t7(t.x,e.offset.x),t7(t.y,e.offset.y))}return t}removeElementScroll(e){let t=ea();if(n$(t,e),this.scroll?.wasRoot)return t;for(let i=0;i<this.path.length;i++){let r=this.path[i],{scroll:n,options:s}=r;r!==this.root&&n&&s.layoutScroll&&(n.wasRoot&&n$(t,e),t7(t.x,n.offset.x),t7(t.y,n.offset.y))}return t}applyTransform(e,t=!1,i){let r=i||ea();n$(r,e);for(let e=0;e<this.path.length;e++){let i=this.path[e];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(t7(r.x,-i.scroll.offset.x),t7(r.y,-i.scroll.offset.y)),t3(i.latestValues)&&it(r,i.latestValues,i.layout?.layoutBox)}return t3(this.latestValues)&&it(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=ea();n$(t,e);for(let e=0;e<this.path.length;e++){let i,r=this.path[e];t3(r.latestValues)&&(r.instance&&(t2(r.latestValues)&&r.updateSnapshot(),n$(i=ea(),r.measurePageBox())),nX(t,r.latestValues,r.snapshot?.layoutBox,i))}return t3(this.latestValues)&&nX(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==e$.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
182isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==t;if(!(e||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:n}=this.options;if(!this.layout||!(r||n))return;this.resolvedRelativeTargetAt=e$.timestamp;let s=this.getClosestProjectingParent();if(s&&this.linkedParentVersion!==s.layoutVersion&&!s.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&s&&s.layout?this.createRelativeTarget(s,this.layout.layoutBox,s.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=ea(),this.targetWithTransforms=ea()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var a,o,l,c;this.forceRelativeParentToResolveTarget(),a=this.target,o=this.relativeTarget,l=this.relativeParent.target,c=this.options.layoutAnchor||void 0,r1(a.x,o.x,l.x,c?.x),r1(a.y,o.y,l.y,c?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):n$(this.target,this.layout.layoutBox),t8(this.target,this.targetDelta)):n$(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&s&&!!s.resumingFrom==!!this.resumingFrom&&!s.options.layoutScroll&&s.target&&1!==this.animationProgress?this.createRelativeTarget(s,this.target,s.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||t2(this.parent.latestValues)||t4(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,i){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ea(),this.relativeTargetOrigin=ea(),r3(this.relativeTargetOrigin,t,i,this.options.layoutAnchor||void 0),n$(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===e$.timestamp&&(i=!1),i)return;let{layout:r,layoutId:n}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||n))return;n$(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,a=this.treeScale.y;!function(e,t,i,r=!1){let n,s,a=i.length;if(a){t.x=t.y=1;for(let o=0;o<a;o++){s=(n=i[o]).projectionDelta;let{visualElement:a}=n.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(r&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(t7(e.x,-n.scroll.offset.x),t7(e.y,-n.scroll.offset.y)),s&&(t.x*=s.x.scale,t.y*=s.y.scale,t8(e,s)),r&&t3(n.latestValues)&&it(e,n.latestValues,n.layout?.layoutBox))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=ea());let{target:o}=e;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nH(this.prevProjectionDelta.x,this.projectionDelta.x),nH(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),r0(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===s&&this.treeScale.y===a&&n1(this.projectionDelta.x,this.prevProjectionDelta.x)&&n1(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=en(),this.projectionDelta=en(),this.projectionDeltaWithTransform=en()}setAnimationOrigin(e,t=!1){let i,r=this.snapshot,n=r?r.latestValues:{},s={...this.latestValues},a=en();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=ea(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),d=!c||c.members.length<=1,u=!!(l&&!d&&!0===this.options.crossfade&&!this.path.some(sg));this.animationProgress=0,this.mixTargetDelta=t=>{let r=t/1e3;if(sm(a.x,e.x,r),sm(a.y,e.y,r),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var c,h,p,m,f,g;r3(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),p=this.relativeTarget,m=this.relativeTargetOrigin,f=o,g=r,sf(p.x,m.x,f.x,g),sf(p.y,m.y,f.y,g),i&&(c=this.relativeTarget,h=i,nZ(c.x,h.x)&&nZ(c.y,h.y))&&(this.isProjectionDirty=!1),i||(i=ea()),n$(i,this.relativeTarget)}l&&(this.animationValues=s,function(e,t,i,r,n,s){n?(e.opacity=tX(0,i.opacity??1,nF(r)),e.opacityExit=tX(t.opacity??1,0,nz(r))):s&&(e.opacity=tX(t.opacity??1,i.opacity??1,r));for(let n=0;n<nO;n++){let s=nL[n],a=nI(t,s),o=nI(i,s);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||nR(a)===nR(o)?(e[s]=Math.max(tX(nD(a),nD(o),r),0),(O.test(o)||O.test(a))&&(e[s]+="
182%")):e[s]=o)}(t.rotate||i.rotate)&&(e.rotate=tX(t.rotate||0,i.rotate||0,r))}(s,n,this.latestValues,r,u,d)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(eV(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=eB.update(()=>{var t,i,r;let n;nP.hasAnimatedSinceResize=!0,tr.layout++,this.motionValue||(this.motionValue=tg(0)),this.motionValue.jump(0,!1),this.currentAnimation=(t=this.motionValue,i=[0,1e3],r={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{tr.layout--},onComplete:()=>{tr.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}},(n=eo(t)?t:tg(t)).start(rF("",n,i,r)),n.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:i,layout:r,latestValues:n}=e;if(t&&i&&r){if(this!==e&&this.layout&&r&&sw(this.options.animationType,this.layout.layoutBox,r.layoutBox)){i=this.target||ea();let t=rJ(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let r=rJ(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+r}n$(t,i),it(t,n),r0(this.projectionDeltaWithTransform,this.layoutCorrected,t,n)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new n2),this.sharedNodes.get(e).add(t);let i=t.options.initialPromotionConfig;t.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:i}={}){let r=this.getStack();r&&r.promote(this,i),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:i}=e;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(t=!0),!t)return;let r={};i.z&&n8("z",e,r,this.animationValues);for(let t=0;t<n5.length;t++)n8(`rotate${n5[t]}`,e,r,this.animationValues),n8(`skew${n5[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=ix(t?.pointerEvents)||"",e.transform=i?i(this.latestValues,""):"none";return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=ix(t?.pointerEvents)||""),this.hasProjected&&!t3(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1);return}e.visibility="";let n=r.animationValues||r.latestValues;this.applyTransformsToTarget();let s=function(e,t,i){let r="",n=e.x.translate/t.x,s=e.y.translate/t.y,a=i?.z||0;if((n||s||a)&&(r=`translate3d(${n}px, ${s}px, ${a}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),i){let{transformPerspective:e,rotate:t,rotateX:n,rotateY:s,skewX:a,skewY:o}=i;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),n&&(r+=`rotateX(${n}deg) `),s&&(r+=`rotateY(${s}deg) `),a&&(r+=`skewX(${a}deg) `),o&&(r+=`skewY(${o}deg) `)}let o=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==o||1!==l)&&(r+=`scale(${o}, ${l}
182)`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,n);i&&(s=i(n,s)),e.transform=s;let{x:a,y:o}=this.projectionDelta;for(let t in e.transformOrigin=`${100*a.origin}% ${100*o.origin}% 0`,r.animationValues?e.opacity=r===this?n.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:n.opacityExit:e.opacity=r===this?void 0!==n.opacity?n.opacity:"":void 0!==n.opacityExit?n.opacityExit:0,tY){if(void 0===n[t])continue;let{correct:i,applyTo:a,isCSSVariable:o}=tY[t],l="none"===s?n[t]:i(n[t],r);if(a){let t=a.length;for(let i=0;i<t;i++)e[a[i]]=l}else o?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=r===this?ix(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(sn),this.root.sharedNodes.clear()}}}function n9(e){e.updateLayout()}function se(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:r}=e.layout,{animationType:n}=e.options,s=t.source!==e.layout.source;if("size"===n)rY(e=>{let r=s?t.measuredBox[e]:t.layoutBox[e],n=rJ(r);r.min=i[e].min,r.max=r.min+n});else if("x"===n||"y"===n){let e="x"===n?"y":"x";nV(s?t.measuredBox[e]:t.layoutBox[e],i[e])}else sw(n,t.layoutBox,i)&&rY(r=>{let n=s?t.measuredBox[r]:t.layoutBox[r],a=rJ(i[r]);n.max=n.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)});let a=en();r0(a,i,t.layoutBox);let o=en();s?r0(o,e.applyTransform(r,!0),t.measuredBox):r0(o,i,t.layoutBox);let l=!nK(a),c=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:n,layout:s}=r;if(n&&s){let a=e.options.layoutAnchor||void 0,o=ea();r3(o,t.layoutBox,n.layoutBox,a);let l=ea();r3(l,i,s.layoutBox,a),nQ(o,l)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=o,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:t,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function st(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function si(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function sr(e){e.clearSnapshot()}function sn(e){e.clearMeasurements()}function ss(e){e.isLayoutDirty=!0,e.updateLayout()}function sa(e){e.isLayoutDirty=!1}function so(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function sl(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function sc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function sd(e){e.resolveTargetDelta()}function su(e){e.calcProjection()}function sh(e){e.resetSkewAndRotation()}function sp(e){e.removeLeadSnapshot()}function sm(e,t,i){e.translate=tX(t.translate,0,i),e.scale=tX(t.scale,1,i),e.origin=t.origin,e.originPoint=t.originPoint}function sf(e,t,i,r){e.min=tX(t.min,i.min,r),e.max=tX(t.max,i.max,r)}function sg(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let sv={duration:.45,ease:[.4,0,.1,1]},sy=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),sx=sy("applewebkit/")&&!sy("chrome/")?Math.round:eR;function sb(e){e.min=sx(e.min),e.max=sx(e.max)}function sw(e,t,i){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(n0(t)-n0(i)))}function sC(e){return e!==e.root&&e.scroll?.wasRoot}let sS=n7({attachResizeListener:(e,t)=>rK(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),sk={current:void 0},sT=n7({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sk.current){let e=new sS({});e.mount(window),e.setOptions({layoutScroll:!0}),sk.current=e}return sk.current},resetTransform:(e,t)=>
182{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function sE(e,t){let i=r6(e),r=new AbortController;return[i,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function sP(e,t,i){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===i);let n=r["onHover"+i];n&&eB.postRender(()=>n(t,nl(t)))}function sj(e){return r4(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}let s_=(e,t)=>!!t&&(e===t||s_(e,t.parentElement)),sM=new WeakSet;function sA(e){return t=>{"Enter"===t.key&&e(t)}}function sN(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function sL(e){return no(e)&&!(rZ.x||rZ.y)}let sO=new WeakSet;function sD(e,t,i){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===i);let n=r["onTap"+("End"===i?"":i)];n&&eB.postRender(()=>n(t,nl(t)))}let sR=new WeakMap,sI=new WeakMap,sF=e=>{let t=sR.get(e.target);t&&t(e)},sz=e=>{e.forEach(sF)},sB={some:0,all:1},sV=function(e,t){if("u"<typeof Proxy)return iL;let i=new Map,r=(i,r)=>iL(i,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(n,s)=>"create"===s?r:(i.has(s)||i.set(s,iL(s,void 0,e,t)),i.get(s))})}({animation:{Feature:class extends iO{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:i})=>(function(e,t,i={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>rV(e,t,i)));else if("string"==typeof t)r=rV(e,t,i);else{let n="function"==typeof t?iD(e,t,i.custom):t;
182r=Promise.all(rz(e,n,i))}return r.then(()=>{e.notify("AnimationComplete",t)})})(e,t,i))),i=rW(),r=!0,n=!1,s=t=>(i,r)=>{let n=iD(e,r,"exit"===t?e.presenceContext?.custom:void 0);if(n){let{transition:e,transitionEnd:t,...r}=n;i={...i,...r,...t}}return i};function a(a){let{props:o}=e,l=function e(t){if(!t)return;if(!t.isControllingVariants){let i=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(i.initial=t.props.initial),i}let i={};for(let e=0;e<r$;e++){let r=tC[e],n=t.props[r];(tb(n)||!1===n)&&(i[r]=n)}return i}(e.parent)||{},c=[],d=new Set,u={},h=1/0;for(let t=0;t<rG;t++){var p,m;let f=rU[t],g=i[f],v=void 0!==o[f]?o[f]:l[f],y=tb(v),x=f===a?g.isActive:null;!1===x&&(h=t);let b=v===l[f]&&v!==o[f]&&y;if(b&&(r||n)&&e.manuallyAnimateOnMount&&(b=!1),g.protectedKeys={...u},!g.isActive&&null===x||!v&&!g.prevProp||tx(v)||"boolean"==typeof v)continue;if("exit"===f&&g.isActive&&!0!==x){g.prevResolvedValues&&(u={...u,...g.prevResolvedValues});continue}let w=(p=g.prevProp,"string"==typeof(m=v)?m!==p:!!Array.isArray(m)&&!rH(m,p)),C=w||f===a&&g.isActive&&!b&&y||t>h&&y,S=!1,k=Array.isArray(v)?v:[v],T=k.reduce(s(f),{});!1===x&&(T={});let{prevResolvedValues:E={}}=g,P={...E,...T},j=t=>{C=!0,d.has(t)&&(S=!0,d.delete(t)),g.needsAnimating[t]=!0;let i=e.getValue(t);i&&(i.liveStyle=!1)};for(let e in P){let t=T[e],i=E[e];if(!u.hasOwnProperty(e))(iF(t)&&iF(i)?rH(t,i):t===i)?void 0!==t&&d.has(e)?j(e):g.protectedKeys[e]=!0:null!=t?j(e):d.add(e)}g.prevProp=v,g.prevResolvedValues=T,g.isActive&&(u={...u,...T}),(r||n)&&e.blockInitialAnimation&&(C=!1);let _=b&&w,M=!_||S;C&&M&&c.push(...k.map(t=>{let i={type:f};if("string"==typeof t&&(r||n)&&!_&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,n=iD(r,t);if(r.enteringChildren&&n){let{delayChildren:t}=n.transition||{};i.delay=rB(r.enteringChildren,e,t)}}return{animation:t,options:i}}))}if(d.size){let t={};if("boolean"!=typeof o.initial){let i=iD(e,Array.isArray(o.initial)?o.initial[0]:o.initial);i&&i.transition&&(t.transition=i.transition)}d.forEach(i=>{let r=e.getBaseTarget(i),n=e.getValue(i);n&&(n.liveStyle=!0),t[i]=r??null}),c.push({animation:t})}let f=!!c.length;return r&&(!1===o.initial||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(f=!1),r=!1,n=!1,f?t(c):Promise.resolve()}return{animateChanges:a,setActive:function(t,r){if(i[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),i[t].isActive=r;let n=a(t);for(let e in i)i[e].protectedKeys={};return n},setAnimateFunction:function(i){t=i(e)},getState:()=>i,reset:()=>{i=rW(),n=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();tx(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends iO{constructor(){super(...arguments),this.id=rX++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;if(e&&!1===i){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if("string"==typeof e){let i=iD(this.node,e,t);if(i){let{transition:e,transitionEnd:t,...r}=i;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends iO{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.stopObserver?.();let{viewport:i={}}=this.node.getProps(),{root:r,margin:n,amount:s="some",once:a}=i,o={root:r?r.current:void 0,rootMargin:n,threshold:"number"==typeof s?s:sB[s]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,a&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:i,onViewportLeave:r}=this.node.getProps(),n=t?i:r;n&&n(e)};this.stopObserver=(e=this.node.current,t=function({root:e,...t}){let i=e||document;sI.has(i)||sI.set(i,{});let r=sI.get(i),n=JSON.stringify(t);return r[n]||(r[n]=new IntersectionObserver(sz,{root:e,...t})),r[n]}(o),sR.set(e,l),t.observe(e),()=>{sR.delete(e),t.unobserve(e)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return i=>e[i]!==t[i]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends iO{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:i}=this.node.props;this.unmount=function(e,t,i={}){let[r,n,s]=sE(e,i),a=e=>{let r=e.currentTarget;if(!sL(e)||sO.has(e))return;sM.add(r),i.stopPropagation&&sO.add(e);let s=t(r,e),a=(e,t)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),sM.has(r)&&sM.delete(r),sL(e)&&"function"==typeof s&&s(e,{success:t})},o=e=>{a(e,r===window||r===document||i.useGlobalTarget||s_(r,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",o,n),window.addEventListener("pointercancel",l,n)};
182return r.forEach(e=>{((i.useGlobalTarget?window:e).addEventListener("pointerdown",a,n),sj(e))&&(e.addEventListener("focus",e=>((e,t)=>{let i=e.currentTarget;if(!i)return;let r=sA(()=>{if(sM.has(i))return;sN(i,"down");let e=sA(()=>{sN(i,"up")});i.addEventListener("keyup",e,t),i.addEventListener("blur",()=>sN(i,"cancel"),t)});i.addEventListener("keydown",r,t),i.addEventListener("blur",()=>i.removeEventListener("keydown",r),t)})(e,n)),ns.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),s}(e,(e,t)=>(sD(this.node,t,"Start"),(e,{success:t})=>sD(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends iO{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=iV(rK(this.node.current,"focus",()=>this.onFocus()),rK(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends iO{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,i={}){let[r,n,s]=sE(e,i);return r.forEach(e=>{let i,r=!1,s=!1,a=t=>{i&&(i(t),i=void 0),e.removeEventListener("pointerleave",l)},o=e=>{r=!1,window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",o),s&&(s=!1,a(e))},l=e=>{if("touch"!==e.pointerType){if(r){s=!0;return}a(e)}};e.addEventListener("pointerenter",r=>{if("touch"===r.pointerType||rZ.x||rZ.y)return;s=!1;let a=t(e,r);"function"==typeof a&&(i=a,e.addEventListener("pointerleave",l,n))},n),e.addEventListener("pointerdown",()=>{r=!0,window.addEventListener("pointerup",o,n),window.addEventListener("pointercancel",o,n)},n)}),s}(e,(e,t)=>(sP(this.node,t,"Start"),e=>sP(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends iO{constructor(){super(...arguments),this.removePointerDownListener=eR}onPointerDown(e){this.session=new np(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nd(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:nE(e),onStart:nE(t),onMove:nE(i),onEnd:(e,t)=>{delete this.session,r&&eB.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=nc(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends iO{constructor(e){super(e),this.removeGroupControls=eR,this.removeListeners=eR,this.controls=new nS(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||eR}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:sT,MeasureLayout:nN},layout:{ProjectionNode:sT,MeasureLayout:nN}},(e,t)=>t.isSVG??ia(e)?new tQ(t):new ir(t,{allowProjection:e!==f.Fragment}));var s$=f;function sH(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class sU extends s$.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(sj(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,i=sj(e)&&e.offsetWidth||0,r=sj(e)&&e.offsetHeight||0,n=getComputedStyle(t),s=this.props.sizeRef.current;s.height=parseFloat(n.height),s.width=parseFloat(n.width),s.top=t.offsetTop,s.left=t.offsetLeft,s.right=i-s.width-s.left,s.bottom=r-s.height-s.top}return null}componentDidUpdate(){}render(){return this.props.children}}function sG({children:e,isPresent:t,anchorX:i,anchorY:r,root:n,pop:s}){let o=(0,s$.useId)(),l=(0,s$.useRef)(null),c=(0,s$.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:d}=(0,s$.useContext)(ic),u=function(...e){return f.useCallback(function(...e){return t=>{let i=!1,r=e.map(e=>{let r=sH(e,t);return i||"function"!=typeof r||(i=!0),r});if(i)return()=>{for(let t=0;t<r.length;t++){let i=r[t];"function"==typeof i?i():sH(e[t],null)}}}}(...e),e)}(l,e.props?.ref??e?.ref);return(0,s$.useInsertionEffect)(()=>{let{width:e,height:a,top:u,left:h,right:p,bottom:m}=c.current;if(t||!1===s||!l.current||!e||!a)return;let f="left"===i?`left: ${h}`:`right: ${p}`,g="bottom"===r?`bottom: ${m}`:`top: ${u}`;l.current.dataset.motionPopId=o;
182let v=document.createElement("style");d&&(v.nonce=d);let y=n??document.head;return y.appendChild(v),v.sheet&&v.sheet.insertRule(`
183          [data-motion-pop-id="${o}"] {
184            position: absolute !important;
185            width: ${e}px !important;
186            height: ${a}px !important;
187            ${f}px !important;
188            ${g}px !important;
189          }
190        `),()=>{l.current?.removeAttribute("data-motion-pop-id"),y.contains(v)&&y.removeChild(v)}},[t]),(0,a.jsx)(sU,{isPresent:t,childRef:l,sizeRef:c,pop:s,children:!1===s?e:s$.cloneElement(e,{ref:u})})}let sq=({children:e,initial:t,isPresent:i,onExitComplete:r,custom:n,presenceAffectsLayout:s,mode:o,anchorX:l,anchorY:c,root:d})=>{let u=iw(sW),h=(0,f.useId)(),p=!0,m=(0,f.useMemo)(()=>(p=!1,{id:h,initial:t,isPresent:i,custom:n,onExitComplete:e=>{for(let t of(u.set(e,!0),u.values()))if(!t)return;r&&r()},register:e=>(u.set(e,!1),()=>u.delete(e))}),[i,u,r]);return s&&p&&(m={...m}),(0,f.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[i]),f.useEffect(()=>{i||u.size||!r||r()},[i]),e=(0,a.jsx)(sG,{pop:"popLayout"===o,isPresent:i,anchorX:l,anchorY:c,root:d,children:e}),(0,a.jsx)(ib.Provider,{value:m,children:e})};function sW(){return new Map}let sX=e=>e.key||"";function sY(e){let t=[];return f.Children.forEach(e,e=>{(0,f.isValidElement)(e)&&t.push(e)}),t}let sK=({children:e,custom:t,initial:i=!0,onExitComplete:r,presenceAffectsLayout:n=!0,mode:s="sync",propagate:o=!1,anchorX:l="left",anchorY:c="top",root:d})=>{let[u,h]=n_(o),p=(0,f.useMemo)(()=>sY(e),[e]),m=o&&!u?[]:p.map(sX),g=(0,f.useRef)(!0),v=(0,f.useRef)(p),y=iw(()=>new Map),x=(0,f.useRef)(new Set),[b,w]=(0,f.useState)(p),[C,S]=(0,f.useState)(p);iN(()=>{g.current=!1,v.current=p;for(let e=0;e<C.length;e++){let t=sX(C[e]);m.includes(t)?(y.delete(t),x.current.delete(t)):!0!==y.get(t)&&y.set(t,!1)}},[C,m.length,m.join("-")]);let k=[];if(p!==b){let e=[...p];for(let t=0;t<C.length;t++){let i=C[t],r=sX(i);m.includes(r)||(e.splice(t,0,i),k.push(i))}return"wait"===s&&k.length&&(e=k),S(sY(e)),w(p),null}let{forceRender:T}=(0,f.useContext)(io);return(0,a.jsx)(a.Fragment,{children:C.map(e=>{let f=sX(e),b=(!o||!!u)&&(p===C||m.includes(f));return(0,a.jsx)(sq,{isPresent:b,initial:(!g.current||!!i)&&void 0,custom:t,presenceAffectsLayout:n,mode:s,root:d,onExitComplete:b?void 0:()=>{if(x.current.has(f)||!y.has(f))return;x.current.add(f),y.set(f,!0);let e=!0;y.forEach(t=>{t||(e=!1)}),e&&(T?.(),S(v.current),o&&h?.(),r&&r())},anchorX:l,anchorY:c,children:e},f)})})};var sZ=e.i(54189);let sJ=(0,sZ.graphql)(`
191    fragment SectionTabsF on SectionTabs {
192        label
193        headline
194        text
195        header_cta: cta {
196            ...ButtonF
197        }
198        tabs {
199            ...CTabItemF
200        }
201        background_color {
202            color
203        }
204        alignment
205        headline_style {
206            style
207        }
208        display_type
209    }
210`),sQ=(0,sZ.graphql)(`
211    fragment CTabItemF on ComponentTabItem {
212        label
213        icon {
214            ...ImageF
215        }
216        content_headline
217        content_text
218        content_image {
219            ...ImageF
220        }
221        content_cta {
222            ...ButtonF
223        }
224    }
225`);var s0=e.i(982106),s1=e.i(623881),s2=e.i(612816),s3=e.i(859898);let s4=({html:e})=>{let t,i=/<ul>([\s\S]*?)<\/ul>/g,r=/<li>([\s\S]*?)<\/li>/g,n=[],s=0;for(;null!==(t=i.exec(e));){let i;t.index>s&&n.push((0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:e.slice(s,t.index)}},s));let o=[];for(;null!==(i=r.exec(t[1]));)o.push((0,a.jsxs)("li",{className:"flex items-center gap-4 text-2xl font-medium leading-9 text-dark_gray",children:[(0,a.jsx)(s3.FaCircleCheck,{className:"shrink-0 text-blue-600"}),(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:i[1]}})]},i.index));n.push((0,a.jsx)("ul",{className:"mt-6 flex flex-col gap-4 list-none p-0",children:o},t.index)),s=t.index+t[0].length}return s<e.length&&n.push((0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:e.slice(s)}},s)),(0,a.jsx)("div",{className:"text-2xl font-medium leading-9 text-dark_gray [&_a]:text-blue-600 [&_a]:underline hover:[&_a]:text-blue-700",children:n})},s5=e=>{let t=(0,o.getFragmentData)(sJ,e.content),i=t.alignment,r=t.headline_style,n=(0,o.getFragmentData)(s1.BUTTON_FRAGMENT,t.header_cta);return t.headline||t.text||t.label?(0,a.jsxs)("div",{children:["left"===i&&(0,a.jsxs)(d.default,{className:"flex-wrap gap-8 md:flex-nowrap",children:[(0,a.jsxs)("div",{className:"max-w-[61.25rem]",children:[t.label&&(0,a.jsx)(p.Label,{color:"blue",className:"mb-6",children:t.label}),t.headline&&(0,a.jsx)(h.Heading,{heading:r?.style?.toLowerCase()||"h2",color:"dark_gray",children:t.headline}),t.text&&(0,a.jsx)(u.BodyText,{color:"gray",className:"blog-text mt-8",dangerouslySetInnerHTML:{__html:t.text}})]}),t.header_cta&&(0,a.jsx)("div",{className:"flex w-full flex-shrink-0 flex-col items-end md:w-auto md:flex-row",children:(0,a.jsx)(m.default,{button:t.header_cta})})]}),"center"===i&&(0,a.jsxs)(c.ItemsCentered,{children:[(0,a.jsxs)("div",{className:"max-w-[61.25rem] text-center",children:[t.label&&(0,a.jsx)(p.Label,{color:"blue",className:"mb-2 md:mb-6",children:t.label}),t.headline&&(0,a.jsx)(h.Heading,{heading:r?.style?.toLowerCase()||"h2",color:"dark_gray",children:t.headline}),t.text&&(0,a.jsx)(u.BodyText,{color:"gray",className:"blog-text mt-6 md:mt-8",dangerouslySetInnerHTML:{__html:t.text}})]}),n&&n?.text&&t.header_cta&&(0,a.jsx)("div",{className:"mt-6 flex w-full flex-shrink-0 flex-col items-center md:mt-6 md:w-auto md:flex-row",children:(0,a.jsx)(m.default,{button:t.header_cta})})]})]}):null},s6=e=>{let t=(0,o.getFragmentData)(sJ,e.content),[i,r]=(0,f.useState)(0);return(0,a.jsxs)("div",{className:"space-y-10 md:space-y-14",children:[(0,a.jsx)(s5,{content:e.content}),t.tabs&&t.tabs.length>0&&(0,a.jsx)("div",{className:"overflow-x-auto scrollbar-hide",children:(0,a.jsx)("div",{className:"inline-flex min-w-full gap-0 border-b-2 text-balance border-[#
225ECECEC] md:flex md:gap-8",children:t.tabs.map((e,t)=>(0,a.jsx)(s9,{item:e,isActive:i===t,onClick:()=>{r(t)}},t))})}),t.tabs&&t.tabs.length>0&&t.tabs[i]&&(0,a.jsx)(sK,{mode:"wait",children:(0,a.jsx)(sV.div,{variants:{initial:{opacity:0,y:20,transition:{duration:.3,ease:"easeOut"}},animate:{opacity:1,y:0,transition:{duration:.3,ease:"easeOut"}},exit:{opacity:0,y:0,transition:{duration:.2,ease:"easeIn"}}},initial:"initial",animate:"animate",exit:"exit",children:(0,a.jsx)(ae,{item:t.tabs[i]})},i)})]})},s8=e=>{let t=(0,o.getFragmentData)(sJ,e.content),[i,r]=(0,f.useState)(0),n=t.tabs?.[i]?(0,o.getFragmentData)(s0.IMAGE_FRAGMENT,(0,o.getFragmentData)(sQ,t.tabs[i]).content_image):null;return(0,a.jsxs)("div",{className:"space-y-10 md:space-y-20",children:[(0,a.jsx)(s5,{content:e.content}),t.tabs&&t.tabs.length>0&&(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-14 lg:grid-cols-2 lg:gap-14",children:[(0,a.jsx)("div",{className:"flex flex-col gap-10",children:t.tabs.map((e,t)=>(0,a.jsx)(s7,{item:e,isActive:i===t,onClick:()=>{r(t)}},t))}),(0,a.jsx)("div",{className:"hidden lg:block",children:(0,a.jsx)(sK,{mode:"wait",children:n?.url&&(0,a.jsx)(sV.div,{variants:{initial:{opacity:0,scale:1,transition:{duration:.3,ease:"easeOut"}},animate:{opacity:1,scale:1,transition:{duration:.3,ease:"easeOut"}},exit:{opacity:0,scale:1,transition:{duration:.2,ease:"easeIn"}}},initial:"initial",animate:"animate",exit:"exit",className:"overflow-hidden rounded-2xl",children:(0,a.jsx)(v.default,{src:n.url,alt:n.description||"Tab content",width:1e3,height:1e3,className:"w-full"})},i)})})]})]})},s7=e=>{let t=(0,o.getFragmentData)(sQ,e.item),i=(0,o.getFragmentData)(s0.IMAGE_FRAGMENT,t.content_image);return(0,a.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,a.jsxs)("button",{onClick:e.onClick,className:"flex w-full items-start justify-between gap-8 text-left",children:[(0,a.jsx)("h3",{className:"text-2xl font-bold text-balance leading-8 tracking-[-0.24px] text-dark_gray md:text-[28px] md:leading-[1.4] md:tracking-[-0.28px]",children:t.content_headline||t.label}),(0,a.jsx)(sV.div,{animate:{rotate:180*!!e.isActive},transition:{duration:.3},className:"flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full bg-blue-100",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"h-6 w-6 text-blue-700",children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z",clipRule:"evenodd"})})})]}),(0,a.jsx)(sK,{initial:!1,children:e.isActive&&(0,a.jsx)(sV.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3},className:"overflow-hidden",children:(0,a.jsxs)("div",{className:"flex flex-col gap-6",children:[t.content_text&&(0,a.jsx)(s4,{html:t.content_text}),i?.url&&(0,a.jsx)("div",{className:"mt-2 overflow-hidden rounded-2xl lg:hidden",children:(0,a.jsx)(v.default,{src:i.url,alt:i.description||t.content_headline||"",width:1e3,height:1e3,className:"h-full w-full object-cover"})})]})})})]})},s9=e=>{let t=(0,o.getFragmentData)(sQ,e.item),i=(0,o.getFragmentData)(s0.IMAGE_FRAGMENT,t.icon),r=(0,g.cn)("relative flex cursor-pointer flex-col items-start gap-2 pb-2 pr-10 transition-all duration-200 md:gap-2 md:pr-16","min-w-fit whitespace-nowrap");return(0,a.jsxs)("button",{className:r,onClick:e.onClick,children:[i?.url&&(0,a.jsx)("div",{className:"relative h-10 w-10 shrink-0 md:h-14 md:w-14",children:(0,a.jsx)(v.default,{src:i.url,alt:i.description||t.label||"",width:56,height:56,className:"h-full w-full object-contain"})}),(0,a.jsx)("p",{className:(0,g.cn)("text-left text-lg font-bold leading-8 md:text-xl",e.isActive?"text-dark_gray":"text-gray"),children:t.label}),e.isActive&&(0,a.jsx)(sV.div,{layoutId:"tab-indicator",className:"absolute -bottom-0.5 left-0 right-0 h-0.5 bg-blue-600",initial:!1,transition:{type:"spring",stiffness:500,damping:30}})]})},ae=e=>{let t=(0,o.getFragmentData)(sQ,e.item),i=(0,o.getFragmentData)(s0.IMAGE_FRAGMENT,t.content_image);return(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-8 md:gap-12 lg:grid-cols-2 lg:gap-16",children:[(0,a.jsxs)("div",{className:"flex flex-col space-y-4 md:space-y-6",children:[t.content_headline&&(0,a.jsx)(h.Heading,{heading:"h3",color:"dark_gray",className:"text-balance",children:t.content_headline}),t.content_text&&(0,a.jsx)(s4,{html:t.content_text}),t.content_cta&&(0,a.jsx)("div",{className:"mt-2 md:mt-4",children:(0,a.jsx)(m.default,{button:t.content_cta}
225)})]}),i?.url&&(0,a.jsx)("div",{className:"overflow-hidden rounded-2xl lg:order-last",children:(0,a.jsx)(v.default,{src:i.url,alt:i.description||t.content_headline||"",width:1e3,height:1e3})})]})};e.s(["default",0,function(e){let t=(0,o.getFragmentData)(sJ,e.content),i=t.display_type||s2.TabsDisplayType.Tabs,r=t.background_color?.color;return(0,a.jsx)(l.DefaultSectionWrapper,{background_color:"light_blue"===r?"blue":"white",children:i===s2.TabsDisplayType.Accordion?(0,a.jsx)(s8,{content:e.content}):(0,a.jsx)(s6,{content:e.content})})}],519038)},292440,e=>{"use strict";let t,i,r;var n=e.i(250465);e.i(621311);var s=e.i(347664);e.i(380610);var a=e.i(375061),o=e.i(838406);function l(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function c(e={},t={}){let i=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>0>i.indexOf(e)).forEach(i=>{void 0===e[i]?e[i]=t[i]:l(t[i])&&l(e[i])&&Object.keys(t[i]).length>0&&c(e[i],t[i])})}let d={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function u(){let e="u">typeof document?document:{};return c(e,d),e}let h={document:d,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"u"<typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"u">typeof setTimeout&&clearTimeout(e)}};function p(){let e="u">typeof window?window:{};return c(e,h),e}function m(e,t=0){return setTimeout(e,t)}function f(){return Date.now()}function g(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function v(...e){let t=Object(e[0]);for(let i=1;i<e.length;i+=1){let r=e[i];if(null!=r&&("u">typeof window&&void 0!==window.HTMLElement?!(r instanceof HTMLElement):!r||1!==r.nodeType&&11!==r.nodeType)){let e=Object.keys(Object(r)).filter(e=>"__proto__"!==e&&"constructor"!==e&&"prototype"!==e);for(let i=0,n=e.length;i<n;i+=1){let n=e[i],s=Object.getOwnPropertyDescriptor(r,n);void 0!==s&&s.enumerable&&(g(t[n])&&g(r[n])?r[n].__swiper__?t[n]=r[n]:v(t[n],r[n]):!g(t[n])&&g(r[n])?(t[n]={},r[n].__swiper__?t[n]=r[n]:v(t[n],r[n])):t[n]=r[n])}}}return t}function y(e,t,i){e.style.setProperty(t,i)}function x({swiper:e,targetPosition:t,side:i}){let r,n=p(),s=-e.translate,a=null,o=e.params.speed;e.wrapperEl.style.scrollSnapType="none",n.cancelAnimationFrame(e.cssModeFrameID);let l=t>s?"next":"prev",c=(e,t)=>"next"===l&&e>=t||"prev"===l&&e<=t,d=()=>{r=new Date().getTime(),null===a&&(a=r);let l=s+(.5-Math.cos(Math.max(Math.min((r-a)/o,1),0)*Math.PI)/2)*(t-s);if(c(l,t)&&(l=t),e.wrapperEl.scrollTo({[i]:l}),c(l,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[i]:l})}),n.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=n.requestAnimationFrame(d)};d()}function b(e,t=""){let i=p(),r=[...e.children];return(i.HTMLSlotElement&&e instanceof HTMLSlotElement&&r.push(...e.assignedElements()),t)?r.filter(e=>e.matches(t)):r}function w(e){try{console.warn(e);return}catch(e){}}function C(e,t=[]){let i=document.createElement(e);return i.classList.add(...Array.isArray(t)?t:function(e=""){return e.trim().split(" ").filter(e=>!!e.trim())}(t)),i}function S(e,t){return p().getComputedStyle(e,null).getPropertyValue(t)}function k(e){let t,i=e;if(i){for(t=0;null!==(i=i.previousSibling);)1===i.nodeType&&(t+=1);return t}}function T(e,t){let i=[],r=e.parentElement;for(;r;)t?r.matches(t)&&i.push(r):i.push(r),r=r.parentElement;return i}function E(e,t,i){let r=p();return i?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function P(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function j(e,t=""){"u">typeof trustedTypes?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:e=>e}).createHTML(t):e.innerHTML=t}function _(){let e,i;return t||(e=p(),t={smoothScroll:(i=u()).documentElement&&i.documentElement.style&&"scrollBehavior"in i.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&i instanceof e.DocumentTouch)}),t}function M(e={}
225){return i||(i=function({userAgent:e}={}){let t=_(),i=p(),r=i.navigator.platform,n=e||i.navigator.userAgent,s={ios:!1,android:!1},a=i.screen.width,o=i.screen.height,l=n.match(/(Android);?[\s\/]+([\d.]+)?/),c=n.match(/(iPad)(?!\1).*OS\s([\d_]+)/),d=n.match(/(iPod)(.*OS\s([\d_]+))?/),u=!c&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h="MacIntel"===r;return!c&&h&&t.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${a}x${o}`)>=0&&((c=n.match(/(Version)\/([\d.]+)/))||(c=[0,1,"13_0_0"]),h=!1),l&&"Win32"!==r&&(s.os="android",s.android=!0),(c||u||d)&&(s.os="ios",s.ios=!0),s}(e)),i}function A(){return r||(r=function(){let e=p(),t=M(),i=!1;function r(){let t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&0>t.indexOf("chrome")&&0>t.indexOf("android")}if(r()){let t=String(e.navigator.userAgent);if(t.includes("Version/")){let[e,r]=t.split("Version/")[1].split(" ")[0].split(".").map(e=>Number(e));i=e<16||16===e&&r<2}}let n=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),s=r(),a=s||n&&t.ios;return{isSafari:i||s,needPerspectiveFix:i,need3dFix:a,isWebView:n}}()),r}let N=(e,t,i)=>{t&&!e.classList.contains(i)?e.classList.add(i):!t&&e.classList.contains(i)&&e.classList.remove(i)},L=(e,t,i)=>{t&&!e.classList.contains(i)?e.classList.add(i):!t&&e.classList.contains(i)&&e.classList.remove(i)},O=(e,t)=>{if(!e||e.destroyed||!e.params)return;let i=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(i){let t=i.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(i.shadowRoot?t=i.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{i.shadowRoot&&(t=i.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`))&&!t.lazyPreloaderManaged&&t.remove()})),t&&!t.lazyPreloaderManaged&&t.remove()}},D=(e,t)=>{if(!e.slides[t])return;let i=e.slides[t].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},R=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext,i=e.slides.length;if(!i||!t||t<0)return;t=Math.min(t,i);let r="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),n=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){let i=[n-t];i.push(...Array.from({length:t}).map((e,t)=>n+r+t)),e.slides.forEach((t,r)=>{i.includes(t.column)&&D(e,r)});return}let s=n+r-1;if(e.params.rewind||e.params.loop)for(let r=n-t;r<=s+t;r+=1){let t=(r%i+i)%i;(t<n||t>s)&&D(e,t)}else for(let r=Math.max(n-t,0);r<=Math.min(s+t,i-1);r+=1)r!==n&&(r>s||r<n)&&D(e,r)};function I({swiper:e,runCallbacks:t,direction:i,step:r}){let{activeIndex:n,previousIndex:s}=e,a=i;a||(a=n>s?"next":n<s?"prev":"reset"),e.emit(`transition${r}`),t&&"reset"===a?e.emit(`slideResetTransition${r}`):t&&n!==s&&(e.emit(`slideChangeTransition${r}`),"next"===a?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`))}function F(e,t,i){let r=p(),{params:n}=e,s=n.edgeSwipeDetection,a=n.edgeSwipeThreshold;return!s||!(i<=a)&&!(i>=r.innerWidth-a)||"prevent"===s&&(t.preventDefault(),!0)}function z(e){var t,i;let r,n,s=u(),a=e;a.originalEvent&&(a=a.originalEvent);let o=this.touchEventsData;if("pointerdown"===a.type){if(null!==o.pointerId&&o.pointerId!==a.pointerId)return;o.pointerId=a.pointerId}else"touchstart"===a.type&&1===a.targetTouches.length&&(o.touchId=a.targetTouches[0].identifier);if("touchstart"===a.type)return void F(this,a,a.targetTouches[0].pageX);let{params:l,touches:c,enabled:d}=this;if(!d||!l.simulateTouch&&"mouse"===a.pointerType||this.animating&&l.preventInteractionOnTransition)return;!this.animating&&l.cssMode&&l.loop&&this.loopFix();let h=a.target;if("wrapper"===l.touchEventsTarget&&(t=h,i=this.wrapperEl,r=p(),!(n=i.contains(t))&&r.HTMLSlotElement&&i instanceof HTMLSlotElement&&((n=[...i.assignedElements()].includes(t))||(n=function(e,t){let i=[t];for(;i.length>0;){let t=i.shift();if(e===t)return!0;i.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}}(t,i))),!n)||"which"in a&&3===a.which||"button"in a&&a.button>0||o.isTouched&&o.isMoved)return;let m=!!l.noSwipingClass&&""!==l.noSwipingClass,g=a.composedPath?a.composedPath():a.path;m&&a.target&&a.target.shadowRoot&&g&&(h=g[0]);let v=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}
225`,y=!!(a.target&&a.target.shadowRoot);if(l.noSwiping&&(y?function(e,t=this){return function t(i){if(!i||i===u()||i===p())return null;i.assignedSlot&&(i=i.assignedSlot);let r=i.closest(e);return r||i.getRootNode?r||t(i.getRootNode().host):null}(t)}(v,h):h.closest(v))){this.allowClick=!0;return}if(l.swipeHandler&&!h.closest(l.swipeHandler))return;c.currentX=a.pageX,c.currentY=a.pageY;let x=c.currentX,b=c.currentY;if(!F(this,a,x))return;Object.assign(o,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),c.startX=x,c.startY=b,o.touchStartTime=f(),this.allowClick=!0,this.updateSize(),this.swipeDirection=void 0,l.threshold>0&&(o.allowThresholdMove=!1);let w=!0;h.matches(o.focusableElements)&&(w=!1,"SELECT"===h.nodeName&&(o.isTouched=!1)),s.activeElement&&s.activeElement.matches(o.focusableElements)&&s.activeElement!==h&&("mouse"===a.pointerType||"mouse"!==a.pointerType&&!h.matches(o.focusableElements))&&s.activeElement.blur();let C=w&&this.allowTouchMove&&l.touchStartPreventDefault;(l.touchStartForcePreventDefault||C)&&!h.isContentEditable&&a.preventDefault(),l.freeMode&&l.freeMode.enabled&&this.freeMode&&this.animating&&!l.cssMode&&this.freeMode.onTouchStart(),this.emit("touchStart",a)}function B(e){let t,i,r=u(),n=this.touchEventsData,{params:s,touches:a,rtlTranslate:o,enabled:l}=this;if(!l||!s.simulateTouch&&"mouse"===e.pointerType)return;let c=e;if(c.originalEvent&&(c=c.originalEvent),"pointermove"===c.type&&(null!==n.touchId||c.pointerId!==n.pointerId))return;if("touchmove"===c.type){if(!(t=[...c.changedTouches].find(e=>e.identifier===n.touchId))||t.identifier!==n.touchId)return}else t=c;if(!n.isTouched){n.startMoving&&n.isScrolling&&this.emit("touchMoveOpposite",c);return}let d=t.pageX,h=t.pageY;if(c.preventedByNestedSwiper){a.startX=d,a.startY=h;return}if(!this.allowTouchMove){c.target.matches(n.focusableElements)||(this.allowClick=!1),n.isTouched&&(Object.assign(a,{startX:d,startY:h,currentX:d,currentY:h}),n.touchStartTime=f());return}if(s.touchReleaseOnEdges&&!s.loop){if(this.isVertical()){if(h<a.startY&&this.translate<=this.maxTranslate()||h>a.startY&&this.translate>=this.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else if(o&&(d>a.startX&&-this.translate<=this.maxTranslate()||d<a.startX&&-this.translate>=this.minTranslate()))return;else if(!o&&(d<a.startX&&this.translate<=this.maxTranslate()||d>a.startX&&this.translate>=this.minTranslate()))return}if(r.activeElement&&r.activeElement.matches(n.focusableElements)&&r.activeElement!==c.target&&"mouse"!==c.pointerType&&r.activeElement.blur(),r.activeElement&&c.target===r.activeElement&&c.target.matches(n.focusableElements)){n.isMoved=!0,this.allowClick=!1;return}n.allowTouchCallbacks&&this.emit("touchMove",c),a.previousX=a.currentX,a.previousY=a.currentY,a.currentX=d,a.currentY=h;let p=a.currentX-a.startX,m=a.currentY-a.startY;if(this.params.threshold&&Math.sqrt(p**2+m**2)<this.params.threshold)return;if(void 0===n.isScrolling){let e;this.isHorizontal()&&a.currentY===a.startY||this.isVertical()&&a.currentX===a.startX?n.isScrolling=!1:p*p+m*m>=25&&(e=180*Math.atan2(Math.abs(m),Math.abs(p))/Math.PI,n.isScrolling=this.isHorizontal()?e>s.touchAngle:90-e>s.touchAngle)}if(n.isScrolling&&this.emit("touchMoveOpposite",c),void 0===n.startMoving&&(a.currentX!==a.startX||a.currentY!==a.startY)&&(n.startMoving=!0),n.isScrolling||"touchmove"===c.type&&n.preventTouchMoveFromPointerMove){n.isTouched=!1;return}if(!n.startMoving)return;this.allowClick=!1,!s.cssMode&&c.cancelable&&c.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&c.stopPropagation();let g=this.isHorizontal()?p:m,v=this.isHorizontal()?a.currentX-a.previousX:a.currentY-a.previousY;s.oneWayMovement&&(g=Math.abs(g)*(o?1:-1),v=Math.abs(v)*(o?1:-1)),a.diff=g,g*=s.touchRatio,o&&(g=-g,v=-v);let y=this.touchesDirection;this.swipeDirection=g>0?"prev":"next",this.touchesDirection=v>0?"prev":"next";let x=this.params.loop&&!s.cssMode,b="next"===this.touchesDirection&&this.allowSlideNext||"prev"===this.touchesDirection&&this.allowSlidePrev;if(!n.isMoved){if(x&&b&&this.loopFix({direction:this.swipeDirection}),n.startTranslate=this.getTranslate(),this.setTransition(0),this.animating){let e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});
225this.wrapperEl.dispatchEvent(e)}n.allowMomentumBounce=!1,s.grabCursor&&(!0===this.allowSlideNext||!0===this.allowSlidePrev)&&this.setGrabCursor(!0),this.emit("sliderFirstMove",c)}if(new Date().getTime(),!1!==s._loopSwapReset&&n.isMoved&&n.allowThresholdMove&&y!==this.touchesDirection&&x&&b&&Math.abs(g)>=1){Object.assign(a,{startX:d,startY:h,currentX:d,currentY:h,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,n.startTranslate=n.currentTranslate;return}this.emit("sliderMove",c),n.isMoved=!0,n.currentTranslate=g+n.startTranslate;let w=!0,C=s.resistanceRatio;if(s.touchReleaseOnEdges&&(C=0),g>0?(x&&b&&!i&&n.allowThresholdMove&&n.currentTranslate>(s.centeredSlides?this.minTranslate()-this.slidesSizesGrid[this.activeIndex+1]-("auto"!==s.slidesPerView&&this.slides.length-s.slidesPerView>=2?this.slidesSizesGrid[this.activeIndex+1]+this.params.spaceBetween:0)-this.params.spaceBetween:this.minTranslate())&&this.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>this.minTranslate()&&(w=!1,s.resistance&&(n.currentTranslate=this.minTranslate()-1+(-this.minTranslate()+n.startTranslate+g)**C))):g<0&&(x&&b&&!i&&n.allowThresholdMove&&n.currentTranslate<(s.centeredSlides?this.maxTranslate()+this.slidesSizesGrid[this.slidesSizesGrid.length-1]+this.params.spaceBetween+("auto"!==s.slidesPerView&&this.slides.length-s.slidesPerView>=2?this.slidesSizesGrid[this.slidesSizesGrid.length-1]+this.params.spaceBetween:0):this.maxTranslate())&&this.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:this.slides.length-("auto"===s.slidesPerView?this.slidesPerViewDynamic():Math.ceil(parseFloat(s.slidesPerView,10)))}),n.currentTranslate<this.maxTranslate()&&(w=!1,s.resistance&&(n.currentTranslate=this.maxTranslate()+1-(this.maxTranslate()-n.startTranslate-g)**C))),w&&(c.preventedByNestedSwiper=!0),!this.allowSlideNext&&"next"===this.swipeDirection&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!this.allowSlidePrev&&"prev"===this.swipeDirection&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),this.allowSlidePrev||this.allowSlideNext||(n.currentTranslate=n.startTranslate),s.threshold>0)if(Math.abs(g)>s.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,n.currentTranslate=n.startTranslate,a.diff=this.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY;return}}else{n.currentTranslate=n.startTranslate;return}s.followFinger&&!s.cssMode&&((s.freeMode&&s.freeMode.enabled&&this.freeMode||s.watchSlidesProgress)&&(this.updateActiveIndex(),this.updateSlidesClasses()),s.freeMode&&s.freeMode.enabled&&this.freeMode&&this.freeMode.onTouchMove(),this.updateProgress(n.currentTranslate),this.setTranslate(n.currentTranslate))}function V(e){let t,i,r=this,n=r.touchEventsData,s=e;if(s.originalEvent&&(s=s.originalEvent),"touchend"===s.type||"touchcancel"===s.type){if(!(t=[...s.changedTouches].find(e=>e.identifier===n.touchId))||t.identifier!==n.touchId)return}else{if(null!==n.touchId||s.pointerId!==n.pointerId)return;t=s}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(s.type)&&!(["pointercancel","contextmenu"].includes(s.type)&&(r.browser.isSafari||r.browser.isWebView)))return;n.pointerId=null,n.touchId=null;let{params:a,touches:o,rtlTranslate:l,slidesGrid:c,enabled:d}=r;if(!d||!a.simulateTouch&&"mouse"===s.pointerType)return;if(n.allowTouchCallbacks&&r.emit("touchEnd",s),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&a.grabCursor&&r.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}a.grabCursor&&n.isMoved&&n.isTouched&&(!0===r.allowSlideNext||!0===r.allowSlidePrev)&&r.setGrabCursor(!1);let u=f(),h=u-n.touchStartTime;if(r.allowClick){let e=s.path||s.composedPath&&s.composedPath();r.updateClickedSlide(e&&e[0]||s.target,e),r.emit("tap click",s),h<300&&u-n.lastClickTime<300&&r.emit("doubleTap doubleClick",s)}if(n.lastClickTime=f(),m(()=>{r.destroyed||(r.allowClick=!0)}),!n.isTouched||!n.isMoved||!r.swipeDirection||0===o.diff&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,i=a.followFinger?l?r.translate:-r.translate:-n.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled)return void r.freeMode.onTouchEnd({currentPos:i});let p=i>=-r.maxTranslate()&&!r.params.loop,g=0,v=r.slidesSizesGrid[0];for(let e=0;e<c.length;e+=e<a.slidesPerGroupSkip?1:a.slidesPerGroup){let t=e<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;void 0!==c[e+t]?(p||i>
225=c[e]&&i<c[e+t])&&(g=e,v=c[e+t]-c[e]):(p||i>=c[e])&&(g=e,v=c[c.length-1]-c[c.length-2])}let y=null,x=null;a.rewind&&(r.isBeginning?x=a.virtual&&a.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1:r.isEnd&&(y=0));let b=(i-c[g])/v,w=g<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(h>a.longSwipesMs){if(!a.longSwipes)return void r.slideTo(r.activeIndex);"next"===r.swipeDirection&&(b>=a.longSwipesRatio?r.slideTo(a.rewind&&r.isEnd?y:g+w):r.slideTo(g)),"prev"===r.swipeDirection&&(b>1-a.longSwipesRatio?r.slideTo(g+w):null!==x&&b<0&&Math.abs(b)>a.longSwipesRatio?r.slideTo(x):r.slideTo(g))}else{if(!a.shortSwipes)return void r.slideTo(r.activeIndex);r.navigation&&(s.target===r.navigation.nextEl||s.target===r.navigation.prevEl)?s.target===r.navigation.nextEl?r.slideTo(g+w):r.slideTo(g):("next"===r.swipeDirection&&r.slideTo(null!==y?y:g+w),"prev"===r.swipeDirection&&r.slideTo(null!==x?x:g))}}function $(){let e=this,{params:t,el:i}=e;if(i&&0===i.offsetWidth)return;t.breakpoints&&e.setBreakpoint();let{allowSlideNext:r,allowSlidePrev:n,snapGrid:s}=e,a=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();let o=a&&t.loop;if("auto"!==t.slidesPerView&&!(t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||o)e.params.loop&&!a?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);else{let t=a?e.virtual.slides:e.slides;e.slideTo(t.length-1,0,!1,!0)}e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=n,e.allowSlideNext=r,e.params.watchOverflow&&s!==e.snapGrid&&e.checkOverflow()}function H(e){this.enabled&&!this.allowClick&&(this.params.preventClicks&&e.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function U(){let{wrapperEl:e,rtlTranslate:t,enabled:i}=this;if(!i)return;this.previousTranslate=this.translate,this.isHorizontal()?this.translate=-e.scrollLeft:this.translate=-e.scrollTop,0===this.translate&&(this.translate=0),this.updateActiveIndex(),this.updateSlidesClasses();let r=this.maxTranslate()-this.minTranslate();(0===r?0:(this.translate-this.minTranslate())/r)!==this.progress&&this.updateProgress(t?-this.translate:this.translate),this.emit("setTranslate",this.translate,!1)}function G(e){O(this,e.target),!this.params.cssMode&&("auto"===this.params.slidesPerView||this.params.autoHeight)&&this.update()}function q(){!this.documentTouchHandlerProceeded&&(this.documentTouchHandlerProceeded=!0,this.params.touchReleaseOnEdges&&(this.el.style.touchAction="auto"))}let W=(e,t)=>{let i=u(),{params:r,el:n,wrapperEl:s,device:a}=e,o=!!r.nested,l="on"===t?"addEventListener":"removeEventListener";n&&"string"!=typeof n&&(i[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:o}),n[l]("touchstart",e.onTouchStart,{passive:!1}),n[l]("pointerdown",e.onTouchStart,{passive:!1}),i[l]("touchmove",e.onTouchMove,{passive:!1,capture:o}),i[l]("pointermove",e.onTouchMove,{passive:!1,capture:o}),i[l]("touchend",e.onTouchEnd,{passive:!0}),i[l]("pointerup",e.onTouchEnd,{passive:!0}),i[l]("pointercancel",e.onTouchEnd,{passive:!0}),i[l]("touchcancel",e.onTouchEnd,{passive:!0}),i[l]("pointerout",e.onTouchEnd,{passive:!0}),i[l]("pointerleave",e.onTouchEnd,{passive:!0}),i[l]("contextmenu",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&n[l]("click",e.onClick,!0),r.cssMode&&s[l]("scroll",e.onScroll),r.updateOnWindowResize?e[t](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",$,!0):e[t]("observerUpdate",$,!0),n[l]("load",e.onLoad,{capture:!0}))},X=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var Y={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",
225spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,snapToSlideEdge:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};let K={eventsEmitter:{on(e,t,i){let r=this;if(!r.eventsListeners||r.destroyed||"function"!=typeof t)return r;let n=i?"unshift":"push";return e.split(" ").forEach(e=>{r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][n](t)}),r},once(e,t,i){let r=this;if(!r.eventsListeners||r.destroyed||"function"!=typeof t)return r;function n(...i){r.off(e,n),n.__emitterProxy&&delete n.__emitterProxy,t.apply(r,i)}return n.__emitterProxy=t,r.on(e,n,i)},onAny(e,t){return!this.eventsListeners||this.destroyed||"function"!=typeof e||0>this.eventsAnyListeners.indexOf(e)&&this.eventsAnyListeners[t?"unshift":"push"](e),this},offAny(e){if(!this.eventsListeners||this.destroyed||!this.eventsAnyListeners)return this;let t=this.eventsAnyListeners.indexOf(e);return t>=0&&this.eventsAnyListeners.splice(t,1),this},off(e,t){let i=this;return i.eventsListeners&&!i.destroyed&&i.eventsListeners&&e.split(" ").forEach(e=>{void 0===t?i.eventsListeners[e]=[]:i.eventsListeners[e]&&i.eventsListeners[e].forEach((r,n)=>{(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&i.eventsListeners[e].splice(n,1)})}),i},emit(...e){let t,i,r,n=this;return n.eventsListeners&&!n.destroyed&&n.eventsListeners&&("string"==typeof e[0]||Array.isArray(e[0])?(t=e[0],i=e.slice(1,e.length),r=n):(t=e[0].events,i=e[0].data,r=e[0].context||n),i.unshift(r),(Array.isArray(t)?t:t.split(" ")).forEach(e=>{n.eventsAnyListeners&&n.eventsAnyListeners.length&&n.eventsAnyListeners.forEach(t=>{t.apply(r,[e,...i])}),n.eventsListeners&&n.eventsListeners[e]&&n.eventsListeners[e].forEach(e=>{e.apply(r,i)})})),n}},update:{updateSize:function(){let e,t,i=this.el;e=void 0!==this.params.width&&null!==this.params.width?this.params.width:i.clientWidth,t=void 0!==this.params.height&&null!==this.params.height?this.params.height:i.clientHeight,0===e&&this.isHorizontal()||0===t&&this.isVertical()||(e=e-parseInt(S(i,"padding-left")||0,10)-parseInt(S(i,"padding-right")||0,10),t=t-parseInt(S(i,"padding-top")||0,10)-parseInt(S(i,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),Object.assign(this,{width:e,height:t,size:this.isHorizontal()?e:t}))},updateSlides:function(){let e,t=this;function i(e,i){return parseFloat(e.getPropertyValue(t.getDirectionLabel(i))||0)}let r=t.params,{wrapperEl:n,slidesEl:s,rtlTranslate:a,wrongRTL:o}=t,l=t.virtual&&r.virtual.enabled,c=l?t.virtual.slides.length:t.slides.length,d=b(s,`.${t.params.slideClass}, swiper-slide`),u=l?t.virtual.slides.length:d.length,h=[],p=[],m=[],f=r.slidesOffsetBefore;"function"==typeof f&&(f=r.slidesOffsetBefore.call(t));let g=r.slidesOffsetAfter;"function"==typeof g&&(g=r.slidesOffsetAfter.call(t));let v=t.snapGrid.length,x=t.slidesGrid.length,w=t.size-f-g,C=r.spaceBetween,k=-f,T=0,P=0;if(void 0===w)return;"string"==typeof C&&C.indexOf("%")>=0?C=parseFloat(C.replace("%",""))/100*w:"string"==typeof C&&(C=parseFloat(C)),t.virtualSize=-C-f-g,d.forEach(e
225=>{a?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),r.centeredSlides&&r.cssMode&&(y(n,"--swiper-centered-offset-before",""),y(n,"--swiper-centered-offset-after","")),r.cssMode&&(y(n,"--swiper-slides-offset-before",`${f}px`),y(n,"--swiper-slides-offset-after",`${g}px`));let j=r.grid&&r.grid.rows>1&&t.grid;j?t.grid.initSlides(d):t.grid&&t.grid.unsetSlides();let _="auto"===r.slidesPerView&&r.breakpoints&&Object.keys(r.breakpoints).filter(e=>void 0!==r.breakpoints[e].slidesPerView).length>0;for(let n=0;n<u;n+=1){e=0;let s=d[n];if(!s||(j&&t.grid.updateSlide(n,s,d),"none"!==S(s,"display"))){if(l&&"auto"===r.slidesPerView)r.virtual.slidesPerViewAutoSlideSize&&(e=r.virtual.slidesPerViewAutoSlideSize),e&&s&&(r.roundLengths&&(e=Math.floor(e)),s.style[t.getDirectionLabel("width")]=`${e}px`);else if("auto"===r.slidesPerView){_&&(s.style[t.getDirectionLabel("width")]="");let n=getComputedStyle(s),a=s.style.transform,o=s.style.webkitTransform;if(a&&(s.style.transform="none"),o&&(s.style.webkitTransform="none"),r.roundLengths)e=t.isHorizontal()?E(s,"width",!0):E(s,"height",!0);else{let t=i(n,"width"),r=i(n,"padding-left"),a=i(n,"padding-right"),o=i(n,"margin-left"),l=i(n,"margin-right"),c=n.getPropertyValue("box-sizing");if(c&&"border-box"===c)e=t+o+l;else{let{clientWidth:i,offsetWidth:n}=s;e=t+r+a+o+l+(n-i)}}a&&(s.style.transform=a),o&&(s.style.webkitTransform=o),r.roundLengths&&(e=Math.floor(e))}else e=(w-(r.slidesPerView-1)*C)/r.slidesPerView,r.roundLengths&&(e=Math.floor(e)),s&&(s.style[t.getDirectionLabel("width")]=`${e}px`);s&&(s.swiperSlideSize=e),m.push(e),r.centeredSlides?(k=k+e/2+T/2+C,0===T&&0!==n&&(k=k-w/2-C),0===n&&(k=k-w/2-C),.001>Math.abs(k)&&(k=0),r.roundLengths&&(k=Math.floor(k)),P%r.slidesPerGroup==0&&h.push(k),p.push(k)):(r.roundLengths&&(k=Math.floor(k)),(P-Math.min(t.params.slidesPerGroupSkip,P))%t.params.slidesPerGroup==0&&h.push(k),p.push(k),k=k+e+C),t.virtualSize+=e+C,T=e,P+=1}}if(t.virtualSize=Math.max(t.virtualSize,w)+g,a&&o&&("slide"===r.effect||"coverflow"===r.effect)&&(n.style.width=`${t.virtualSize+C}px`),r.setWrapperSize&&(n.style[t.getDirectionLabel("width")]=`${t.virtualSize+C}px`),j&&t.grid.updateWrapperSize(e,h),!r.centeredSlides){let e="auto"!==r.slidesPerView&&r.slidesPerView%1!=0,i=r.snapToSlideEdge&&!r.loop&&("auto"===r.slidesPerView||e),n=h.length;if(i){let e;if("auto"===r.slidesPerView){e=1;let t=0;for(let i=m.length-1;i>=0;i-=1)if((t+=m[i]+(i<m.length-1?C:0))<=w)e=m.length-i;else break}else e=Math.floor(r.slidesPerView);n=Math.max(u-e,0)}let s=[];for(let e=0;e<h.length;e+=1){let a=h[e];r.roundLengths&&(a=Math.floor(a)),i?e<=n&&s.push(a):h[e]<=t.virtualSize-w&&s.push(a)}h=s,Math.floor(t.virtualSize-w)-Math.floor(h[h.length-1])>1&&!i&&h.push(t.virtualSize-w)}if(l&&r.loop){let e=m[0]+C;if(r.slidesPerGroup>1){let i=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/r.slidesPerGroup),n=e*r.slidesPerGroup;for(let e=0;e<i;e+=1)h.push(h[h.length-1]+n)}for(let i=0;i<t.virtual.slidesBefore+t.virtual.slidesAfter;i+=1)1===r.slidesPerGroup&&h.push(h[h.length-1]+e),p.push(p[p.length-1]+e),t.virtualSize+=e}if(0===h.length&&(h=[0]),0!==C){let e=t.isHorizontal()&&a?"marginLeft":t.getDirectionLabel("marginRight");d.filter((e,t)=>!r.cssMode||!!r.loop||t!==d.length-1).forEach(t=>{t.style[e]=`${C}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let e=0;m.forEach(t=>{e+=t+(C||0)});let t=(e-=C)>w?e-w:0;h=h.map(e=>e<=0?-f:e>t?t+g:e)}if(r.centerInsufficientSlides){let e=0;if(m.forEach(t=>{e+=t+(C||0)}),(e-=C)<w){let t=(w-e)/2;h.forEach((e,i)=>{h[i]=e-t}),p.forEach((e,i)=>{p[i]=e+t})}}if(Object.assign(t,{slides:d,snapGrid:h,slidesGrid:p,slidesSizesGrid:m}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){y(n,"--swiper-centered-offset-before",`${-h[0]}px`),y(n,"--swiper-centered-offset-after",`${t.size/2-m[m.length-1]/2}px`);let e=-t.snapGrid[0],i=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(t=>t+e),t.slidesGrid=t.slidesGrid.map(e=>e+i)}if(u!==c&&t.emit("slidesLengthChange"),h.length!==v&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),p.length!==x&&t.emit("slidesGridLengthChange"),r.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!l&&!r.cssMode&&("slide"===r.effect||"fade"===r.effect)){let e=`${r.containerModifierClass}backface-hidden`,i=t.el.classList.contains(e);u<=r.maxBackfaceHiddenSlides?i||t.el.classList.add(e):i&&t.el.classList.remove(e)}},updateAutoHeight:function(e){let t,i=this,r=[],n=i.virtual&&i.params.virtual.enabled,s=0;"number"==typeof e?i.setTransition(e):!0===e&&i.setTransition(i.params.speed);let a=e=>n?i.slides[i.getSlideIndexByData(e)]:i.slides[e];if("auto"!==i.params.slidesPerView&&i.params.slidesPerView>
2251)if(i.params.centeredSlides)(i.visibleSlides||[]).forEach(e=>{r.push(e)});else for(t=0;t<Math.ceil(i.params.slidesPerView);t+=1){let e=i.activeIndex+t;if(e>i.slides.length&&!n)break;r.push(a(e))}else r.push(a(i.activeIndex));for(t=0;t<r.length;t+=1)if(void 0!==r[t]){let e=r[t].offsetHeight;s=e>s?e:s}(s||0===s)&&(i.wrapperEl.style.height=`${s}px`)},updateSlidesOffset:function(){let e=this.slides,t=this.isElement?this.isHorizontal()?this.wrapperEl.offsetLeft:this.wrapperEl.offsetTop:0;for(let i=0;i<e.length;i+=1)e[i].swiperSlideOffset=(this.isHorizontal()?e[i].offsetLeft:e[i].offsetTop)-t-this.cssOverflowAdjustment()},updateSlidesProgress:function(e=this&&this.translate||0){let t=this.params,{slides:i,rtlTranslate:r,snapGrid:n}=this;if(0===i.length)return;void 0===i[0].swiperSlideOffset&&this.updateSlidesOffset();let s=-e;r&&(s=e),this.visibleSlidesIndexes=[],this.visibleSlides=[];let a=t.spaceBetween;"string"==typeof a&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*this.size:"string"==typeof a&&(a=parseFloat(a));for(let e=0;e<i.length;e+=1){let o=i[e],l=o.swiperSlideOffset;t.cssMode&&t.centeredSlides&&(l-=i[0].swiperSlideOffset);let c=(s+(t.centeredSlides?this.minTranslate():0)-l)/(o.swiperSlideSize+a),d=(s-n[0]+(t.centeredSlides?this.minTranslate():0)-l)/(o.swiperSlideSize+a),u=-(s-l),h=u+this.slidesSizesGrid[e],p=u>=0&&u<=this.size-this.slidesSizesGrid[e],m=u>=0&&u<this.size-1||h>1&&h<=this.size||u<=0&&h>=this.size;m&&(this.visibleSlides.push(o),this.visibleSlidesIndexes.push(e)),N(o,m,t.slideVisibleClass),N(o,p,t.slideFullyVisibleClass),o.progress=r?-c:c,o.originalProgress=r?-d:d}},updateProgress:function(e){if(void 0===e){let t=this.rtlTranslate?-1:1;e=this&&this.translate&&this.translate*t||0}let t=this.params,i=this.maxTranslate()-this.minTranslate(),{progress:r,isBeginning:n,isEnd:s,progressLoop:a}=this,o=n,l=s;if(0===i)r=0,n=!0,s=!0;else{r=(e-this.minTranslate())/i;let t=1>Math.abs(e-this.minTranslate()),a=1>Math.abs(e-this.maxTranslate());n=t||r<=0,s=a||r>=1,t&&(r=0),a&&(r=1)}if(t.loop){let t=this.getSlideIndexByData(0),i=this.getSlideIndexByData(this.slides.length-1),r=this.slidesGrid[t],n=this.slidesGrid[i],s=this.slidesGrid[this.slidesGrid.length-1],o=Math.abs(e);(a=o>=r?(o-r)/s:(o+s-n)/s)>1&&(a-=1)}Object.assign(this,{progress:r,progressLoop:a,isBeginning:n,isEnd:s}),(t.watchSlidesProgress||t.centeredSlides&&t.autoHeight)&&this.updateSlidesProgress(e),n&&!o&&this.emit("reachBeginning toEdge"),s&&!l&&this.emit("reachEnd toEdge"),(o&&!n||l&&!s)&&this.emit("fromEdge"),this.emit("progress",r)},updateSlidesClasses:function(){let e,t,i,{slides:r,params:n,slidesEl:s,activeIndex:a}=this,o=this.virtual&&n.virtual.enabled,l=this.grid&&n.grid&&n.grid.rows>1,c=e=>b(s,`.${n.slideClass}${e}, swiper-slide${e}`)[0];if(o)if(n.loop){let t=a-this.virtual.slidesBefore;t<0&&(t=this.virtual.slides.length+t),t>=this.virtual.slides.length&&(t-=this.virtual.slides.length),e=c(`[data-swiper-slide-index="${t}"]`)}else e=c(`[data-swiper-slide-index="${a}"]`);else l?(e=r.find(e=>e.column===a),i=r.find(e=>e.column===a+1),t=r.find(e=>e.column===a-1)):e=r[a];e&&!l&&(i=function(e,t){let i=[];for(;e.nextElementSibling;){let r=e.nextElementSibling;t?r.matches(t)&&i.push(r):i.push(r),e=r}return i}(e,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!i&&(i=r[0]),t=function(e,t){let i=[];for(;e.previousElementSibling;){let r=e.previousElementSibling;t?r.matches(t)&&i.push(r):i.push(r),e=r}return i}(e,`.${n.slideClass}, swiper-slide`)[0],n.loop),r.forEach(r=>{L(r,r===e,n.slideActiveClass),L(r,r===i,n.slideNextClass),L(r,r===t,n.slidePrevClass)}),this.emitSlidesClasses()},updateActiveIndex:function(e){let t,i,r=this,n=r.rtlTranslate?r.translate:-r.translate,{snapGrid:s,params:a,activeIndex:o,realIndex:l,snapIndex:c}=r,d=e,u=e=>{let t=e-r.virtual.slidesBefore;return t<0&&(t=r.virtual.slides.length+t),t>=r.virtual.slides.length&&(t-=r.virtual.slides.length),t};if(void 0===d&&(d=function(e){let t,{slidesGrid:i,params:r}=e,n=e.rtlTranslate?e.translate:-e.translate;for(let e=0;e<i.length;e+=1)void 0!==i[e+1]?n>=i[e]&&n<i[e+1]-(i[e+1]-i[e])/2?t=e:n>=i[e]&&n<i[e+1]&&(t=e+1):n>=i[e]&&(t=e);return r.normalizeSlideIndex&&(t<0||void 0===t)&&(t=0),t}(r)),s.indexOf(n)>=0)t=s.indexOf(n);else{let e=Math.min(a.slidesPerGroupSkip,d);
225t=e+Math.floor((d-e)/a.slidesPerGroup)}if(t>=s.length&&(t=s.length-1),d===o&&!r.params.loop){t!==c&&(r.snapIndex=t,r.emit("snapIndexChange"));return}if(d===o&&r.params.loop&&r.virtual&&r.params.virtual.enabled){r.realIndex=u(d);return}let h=r.grid&&a.grid&&a.grid.rows>1;if(r.virtual&&a.virtual.enabled)i=a.loop?u(d):d;else if(h){let e=r.slides.find(e=>e.column===d),t=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(t)&&(t=Math.max(r.slides.indexOf(e),0)),i=Math.floor(t/a.grid.rows)}else if(r.slides[d]){let e=r.slides[d].getAttribute("data-swiper-slide-index");i=e?parseInt(e,10):d}else i=d;Object.assign(r,{previousSnapIndex:c,snapIndex:t,previousRealIndex:l,realIndex:i,previousIndex:o,activeIndex:d}),r.initialized&&R(r),r.emit("activeIndexChange"),r.emit("snapIndexChange"),(r.initialized||r.params.runCallbacksOnInit)&&(l!==i&&r.emit("realIndexChange"),r.emit("slideChange"))},updateClickedSlide:function(e,t){let i,r=this.params,n=e.closest(`.${r.slideClass}, swiper-slide`);!n&&this.isElement&&t&&t.length>
2251&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!n&&e.matches&&e.matches(`.${r.slideClass}, swiper-slide`)&&(n=e)});let s=!1;if(n){for(let e=0;e<this.slides.length;e+=1)if(this.slides[e]===n){s=!0,i=e;break}}if(n&&s)this.clickedSlide=n,this.virtual&&this.params.virtual.enabled?this.clickedIndex=parseInt(n.getAttribute("data-swiper-slide-index"),10):this.clickedIndex=i;else{this.clickedSlide=void 0,this.clickedIndex=void 0;return}r.slideToClickedSlide&&void 0!==this.clickedIndex&&this.clickedIndex!==this.activeIndex&&this.slideToClickedSlide()}},translate:{getTranslate:function(e=this.isHorizontal()?"x":"y"){let{params:t,rtlTranslate:i,translate:r,wrapperEl:n}=this;if(t.virtualTranslate)return i?-r:r;if(t.cssMode)return r;let s=function(e,t="x"){let i,r,n,s,a,o=p(),l=((a=p()).getComputedStyle&&(s=a.getComputedStyle(e,null)),!s&&e.currentStyle&&(s=e.currentStyle),s||(s=e.style),s);return o.WebKitCSSMatrix?((r=l.transform||l.webkitTransform).split(",").length>6&&(r=r.split(", ").map(e=>e.replace(",",".")).join(", ")),n=new o.WebKitCSSMatrix("none"===r?"":r)):i=(n=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===t&&(r=o.WebKitCSSMatrix?n.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(r=o.WebKitCSSMatrix?n.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),r||0}(n,e);return s+=this.cssOverflowAdjustment(),i&&(s=-s),s||0},setTranslate:function(e,t){let{rtlTranslate:i,params:r,wrapperEl:n,progress:s}=this,a=0,o=0;this.isHorizontal()?a=i?-e:e:o=e,r.roundLengths&&(a=Math.floor(a),o=Math.floor(o)),this.previousTranslate=this.translate,this.translate=this.isHorizontal()?a:o,r.cssMode?n[this.isHorizontal()?"scrollLeft":"scrollTop"]=this.isHorizontal()?-a:-o:r.virtualTranslate||(this.isHorizontal()?a-=this.cssOverflowAdjustment():o-=this.cssOverflowAdjustment(),n.style.transform=`translate3d(${a}px, ${o}px, 0px)`);let l=this.maxTranslate()-this.minTranslate();(0===l?0:(e-this.minTranslate())/l)!==s&&this.updateProgress(e),this.emit("setTranslate",this.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e=0,t=this.params.speed,i=!0,r=!0,n){let s,a=this,{params:o,wrapperEl:l}=a;if(a.animating&&o.preventInteractionOnTransition)return!1;let c=a.minTranslate(),d=a.maxTranslate();if(s=r&&e>c?c:r&&e<d?d:e,a.updateProgress(s),o.cssMode){let e=a.isHorizontal();if(0===t)l[e?"scrollLeft":"scrollTop"]=-s;else{if(!a.support.smoothScroll)return x({swiper:a,targetPosition:-s,side:e?"left":"top"}),!0;l.scrollTo({[e?"left":"top"]:-s,behavior:"smooth"})}return!0}return 0===t?(a.setTransition(0),a.setTranslate(s),i&&(a.emit("beforeTransitionStart",t,n),a.emit("transitionEnd"))):(a.setTransition(t),a.setTranslate(s),i&&(a.emit("beforeTransitionStart",t,n),a.emit("transitionStart")),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||(a.onTranslateToWrapperTransitionEnd=function(e){!a||a.destroyed||e.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,a.animating=!1,i&&a.emit("transitionEnd"))}),a.wrapperEl.addEventListener("transitionend",a.onTranslateToWrapperTransitionEnd))),!0}},transition:{setTransition:function(e,t){this.params.cssMode||(this.wrapperEl.style.transitionDuration=`${e}ms`,this.wrapperEl.style.transitionDelay=0===e?"0ms":""),this.emit("setTransition",e,t)},transitionStart:function(e=!0,t){let{params:i}=this;i.cssMode||(i.autoHeight&&this.updateAutoHeight(),I({swiper:this,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e=!0,t){let{params:i}=this;this.animating=!1,i.cssMode||(this.setTransition(0),I({swiper:this,runCallbacks:e,direction:t,step:"End"}))}},slide:{slideTo:function(e=0,t,i=!0,r,n){let s;"string"==typeof e&&(e=parseInt(e,10));let a=this,o=e;o<0&&(o=0);let{params:l,snapGrid:c,slidesGrid:d,previousIndex:u,activeIndex:h,rtlTranslate:p,wrapperEl:m,enabled:f}=a;if(!f&&!r&&!n||a.destroyed||a.animating&&l.preventInteractionOnTransition)return!1;void 0===t&&(t=a.params.speed);let g=Math.min(a.params.slidesPerGroupSkip,o),v=g+Math.floor((o-g)/a.params.slidesPerGroup);v>=c.length&&(v=c.length-1);let y=-c[v];if(l.normalizeSlideIndex)for(let e=0;e<d.length;e+=1){let t=-Math.floor(100*y),i=Math.floor(100*d[e]),r=Math.floor(100*d[e+1]);void 0!==d[e+1]?t>=i&&t<r-(r-i)/2?o=e:t>=i&&t<r&&(o=e+1):t>=i&&(o=e)}if(a.initialized&&o!==h&&(!a.allowSlideNext&&(p?y>a.translate&&y>a.minTranslate():y<a.translate&&y<a.minTranslate())||!a.allowSlidePrev&&y>a.translate&&y>a.maxTranslate()&&(h||0)!==o))return!1;o!==(u||0)&&i&&a.emit("beforeSlideChangeStart"),a.updateProgress(y),s=o>h?"next":o<h?"prev":"reset";let b=a.virtual&&a.params.virtual.enabled;if(!(b&&n)&&(p&&-y===a.translate||!p&&y===a.translate))return a.updateActiveIndex(o),l.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),"slide"!==l.effect&&a.setTranslate(y),"reset"!==s&&(a.transitionStart(i,s),a.transitionEnd(i,s)),!1;if(l.cssMode){let e=a.isHorizontal(),i=p?y:-y;if(0===t)b&&(a.wrapperEl.style.scrollSnapType="none",a._immediateVirtual=!0),b&&!a._cssModeVirtualInitialSet&&a.params.initialSlide>0?(a._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{m[e?"scrollLeft":"scrollTop"]=i})):m[e?"scrollLeft":"scrollTop"]=i,b&&requestAnimationFrame(()=>{a.wrapperEl.style.scrollSnapType="",a._immediateVirtual=!1});else{if(!a.support.smoothScroll)return x({swiper:a,targetPosition:i,side:e?"left"
225:"top"}),!0;m.scrollTo({[e?"left":"top"]:i,behavior:"smooth"})}return!0}let w=A().isSafari;return b&&!n&&w&&a.isElement&&a.virtual.update(!1,!1,o),a.setTransition(t),a.setTranslate(y),a.updateActiveIndex(o),a.updateSlidesClasses(),a.emit("beforeTransitionStart",t,r),a.transitionStart(i,s),0===t?a.transitionEnd(i,s):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(e){!a||a.destroyed||e.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(i,s))}),a.wrapperEl.addEventListener("transitionend",a.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e=0,t,i=!0,r){"string"==typeof e&&(e=parseInt(e,10));let n=this;if(n.destroyed)return;void 0===t&&(t=n.params.speed);let s=n.grid&&n.params.grid&&n.params.grid.rows>1,a=e;if(n.params.loop)if(n.virtual&&n.params.virtual.enabled)a+=n.virtual.slidesBefore;else{let e;if(s){let t=a*n.params.grid.rows;e=n.slides.find(e=>+e.getAttribute("data-swiper-slide-index")===t).column}else e=n.getSlideIndexByData(a);let t=s?Math.ceil(n.slides.length/n.params.grid.rows):n.slides.length,{centeredSlides:i,slidesOffsetBefore:o,slidesOffsetAfter:l}=n.params,c=i||!!o||!!l,d=n.params.slidesPerView;"auto"===d?d=n.slidesPerViewDynamic():(d=Math.ceil(parseFloat(n.params.slidesPerView,10)),c&&d%2==0&&(d+=1));let u=t-e<d;if(c&&(u=u||e<Math.ceil(d/2)),r&&c&&"auto"!==n.params.slidesPerView&&!s&&(u=!1),u){let i=c?e<n.activeIndex?"prev":"next":e-n.activeIndex-1<n.params.slidesPerView?"next":"prev";n.loopFix({direction:i,slideTo:!0,activeSlideIndex:"next"===i?e+1:e-t+1,slideRealIndex:"next"===i?n.realIndex:void 0})}if(s){let e=a*n.params.grid.rows;a=n.slides.find(t=>+t.getAttribute("data-swiper-slide-index")===e).column}else a=n.getSlideIndexByData(a)}return requestAnimationFrame(()=>{n.slideTo(a,t,i,r)}),n},slideNext:function(e,t=!0,i){let r=this,{enabled:n,params:s,animating:a}=r;if(!n||r.destroyed)return r;void 0===e&&(e=r.params.speed);let o=s.slidesPerGroup;"auto"===s.slidesPerView&&1===s.slidesPerGroup&&s.slidesPerGroupAuto&&(o=Math.max(r.slidesPerViewDynamic("current",!0),1));let l=r.activeIndex<s.slidesPerGroupSkip?1:o,c=r.virtual&&s.virtual.enabled;if(s.loop){if(a&&!c&&s.loopPreventsSliding)return!1;if(r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft,r.activeIndex===r.slides.length-1&&s.cssMode)return requestAnimationFrame(()=>{r.slideTo(r.activeIndex+l,e,t,i)}),!0}return s.rewind&&r.isEnd?r.slideTo(0,e,t,i):r.slideTo(r.activeIndex+l,e,t,i)},slidePrev:function(e,t=!0,i){let r=this,{params:n,snapGrid:s,slidesGrid:a,rtlTranslate:o,enabled:l,animating:c}=r;if(!l||r.destroyed)return r;void 0===e&&(e=r.params.speed);let d=r.virtual&&n.virtual.enabled;if(n.loop){if(c&&!d&&n.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}let h=u(o?r.translate:-r.translate),p=s.map(e=>u(e)),m=n.freeMode&&n.freeMode.enabled,f=s[p.indexOf(h)-1];if(void 0===f&&(n.cssMode||m)){let e;
225s.forEach((t,i)=>{h>=t&&(e=i)}),void 0!==e&&(f=m?s[e]:s[e>0?e-1:e])}let g=0;if(void 0!==f&&((g=a.indexOf(f))<0&&(g=r.activeIndex-1),"auto"===n.slidesPerView&&1===n.slidesPerGroup&&n.slidesPerGroupAuto&&(g=Math.max(g=g-r.slidesPerViewDynamic("previous",!0)+1,0))),n.rewind&&r.isBeginning){let n=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(n,e,t,i)}return n.loop&&0===r.activeIndex&&n.cssMode?(requestAnimationFrame(()=>{r.slideTo(g,e,t,i)}),!0):r.slideTo(g,e,t,i)},slideReset:function(e,t=!0,i){if(!this.destroyed)return void 0===e&&(e=this.params.speed),this.slideTo(this.activeIndex,e,t,i)},slideToClosest:function(e,t=!0,i,r=.5){if(this.destroyed)return;void 0===e&&(e=this.params.speed);let n=this.activeIndex,s=Math.min(this.params.slidesPerGroupSkip,n),a=s+Math.floor((n-s)/this.params.slidesPerGroup),o=this.rtlTranslate?this.translate:-this.translate;if(o>=this.snapGrid[a]){let e=this.snapGrid[a];o-e>(this.snapGrid[a+1]-e)*r&&(n+=this.params.slidesPerGroup)}else{let e=this.snapGrid[a-1];o-e<=(this.snapGrid[a]-e)*r&&(n-=this.params.slidesPerGroup)}return n=Math.min(n=Math.max(n,0),this.slidesGrid.length-1),this.slideTo(n,e,t,i)},slideToClickedSlide:function(){let e,t=this;if(t.destroyed)return;let{params:i,slidesEl:r}=t,n="auto"===i.slidesPerView?t.slidesPerViewDynamic():i.slidesPerView,s=t.getSlideIndexWhenGrid(t.clickedIndex),a=t.isElement?"swiper-slide":`.${i.slideClass}`,o=t.grid&&t.params.grid&&t.params.grid.rows>1;if(i.loop){if(t.animating)return;e=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),i.centeredSlides?t.slideToLoop(e):s>(o?(t.slides.length-n)/2-(t.params.grid.rows-1):t.slides.length-n)?(t.loopFix(),s=t.getSlideIndex(b(r,`${a}[data-swiper-slide-index="${e}"]`)[0]),m(()=>{t.slideTo(s)})):t.slideTo(s)}else t.slideTo(s)}},loop:{loopCreate:function(e,t){let i,r=this,{params:n,slidesEl:s}=r;if(!n.loop||r.virtual&&r.params.virtual.enabled)return;let a=r.grid&&n.grid&&n.grid.rows>1;n.loopAddBlankSlides&&(n.slidesPerGroup>1||a)&&((i=b(s,`.${n.slideBlankClass}
225`)).forEach(e=>{e.remove()}),i.length>0&&(r.recalcSlides(),r.updateSlides()));let o=n.slidesPerGroup*(a?n.grid.rows:1),l=r.slides.length%o!=0,c=a&&r.slides.length%n.grid.rows!=0,d=e=>{for(let t=0;t<e;t+=1){let e=r.isElement?C("swiper-slide",[n.slideBlankClass]):C("div",[n.slideClass,n.slideBlankClass]);r.slidesEl.append(e)}};l?n.loopAddBlankSlides?(d(o-r.slides.length%o),r.recalcSlides(),r.updateSlides()):w("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)"):c&&(n.loopAddBlankSlides?(d(n.grid.rows-r.slides.length%n.grid.rows),r.recalcSlides(),r.updateSlides()):w("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)")),b(s,`.${n.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t)});let u=n.centeredSlides||!!n.slidesOffsetBefore||!!n.slidesOffsetAfter;r.loopFix({slideRealIndex:e,direction:u?void 0:"next",initial:t})},loopFix:function({slideRealIndex:e,slideTo:t=!0,direction:i,setTranslate:r,activeSlideIndex:n,initial:s,byController:a,byMousewheel:o}={}){let l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");let{slides:c,allowSlidePrev:d,allowSlideNext:u,slidesEl:h,params:p}=l,{centeredSlides:m,slidesOffsetBefore:f,slidesOffsetAfter:g,initialSlide:v}=p,y=m||!!f||!!g;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&p.virtual.enabled){t&&(y||0!==l.snapIndex?y&&l.snapIndex<p.slidesPerView?l.slideTo(l.virtual.slides.length+l.snapIndex,0,!1,!0):l.snapIndex===l.snapGrid.length-1&&l.slideTo(l.virtual.slidesBefore,0,!1,!0):l.slideTo(l.virtual.slides.length,0,!1,!0)),l.allowSlidePrev=d,l.allowSlideNext=u,l.emit("loopFix");return}let x=p.slidesPerView;"auto"===x?x=l.slidesPerViewDynamic():(x=Math.ceil(parseFloat(p.slidesPerView,10)),y&&x%2==0&&(x+=1));let b=p.slidesPerGroupAuto?x:p.slidesPerGroup,C=y?Math.max(b,Math.ceil(x/2)):b;C%b!=0&&(C+=b-C%b),l.loopedSlides=C+=p.loopAdditionalSlides;let S=l.grid&&p.grid&&p.grid.rows>1;c.length<x+C||"cards"===l.params.effect&&c.length<x+2*C?w("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):S&&"row"===p.grid.fill&&w("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");let k=[],T=[],E=S?Math.ceil(c.length/p.grid.rows):c.length,P=s&&E-v<x&&!y,j=P?v:l.activeIndex;void 0===n?n=l.getSlideIndex(c.find(e=>e.classList.contains(p.slideActiveClass))):j=n;let _="next"===i||!i,M="prev"===i||!i,A=0,N=0,L=(S?c[n].column:n)+(y&&void 0===r?-x/2+.5:0);if(L<C){A=Math.max(C-L,b);for(let e=0;e<C-L;e+=1){let t=e-Math.floor(e/E)*E;if(S){let e=E-t-1;for(let t=c.length-1;t>=0;t-=1)c[t].column===e&&k.push(t)}else k.push(E-t-1)}}else if(L+x>E-C){N=Math.max(L-(E-2*C),b),P&&(N=Math.max(N,x-E+v+1));for(let e=0;e<N;e+=1){let t=e-Math.floor(e/E)*E;S?c.forEach((e,i)=>{e.column===t&&T.push(i)}):T.push(t)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}),"cards"===l.params.effect&&c.length<x+2*C&&(T.includes(n)&&T.splice(T.indexOf(n),1),k.includes(n)&&k.splice(k.indexOf(n),1)),M&&k.forEach(e=>{c[e].swiperLoopMoveDOM=!0,h.prepend(c[e]),c[e].swiperLoopMoveDOM=!1}),_&&T.forEach(e=>{c[e].swiperLoopMoveDOM=!0,h.append(c[e]),c[e].swiperLoopMoveDOM=!1}),l.recalcSlides(),"auto"===p.slidesPerView?l.updateSlides():S&&(k.length>0&&M||T.length>0&&_)&&l.slides.forEach((e,t)=>{l.grid.updateSlide(t,e,l.slides)}),p.watchSlidesProgress&&l.updateSlidesOffset(),t){if(k.length>0&&M){if(void 0===e){let e=l.slidesGrid[j],t=l.slidesGrid[j+A]-e;o?l.setTranslate(l.translate-t):(l.slideTo(j+Math.ceil(A),0,!1,!0),r&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else if(r){let e=S?k.length/p.grid.rows:k.length;l.slideTo(l.activeIndex+e,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(T.length>0&&_)if(void 0===e){let e=l.slidesGrid[j],t=l.slidesGrid[j-N]-e;o?l.setTranslate(l.translate-t):(l.slideTo(j-N,0,!1,!0),r&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else{let e=S?T.length/p.grid.rows:T.length;l.slideTo(l.activeIndex-e,0,!1,!0)}}if(l.allowSlidePrev=d,l.allowSlideNext=u,l.controller&&l.controller.control&&!a){let s={slideRealIndex:e,direction:i,setTranslate:r,activeSlideIndex:n,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(e
225=>{!e.destroyed&&e.params.loop&&e.loopFix({...s,slideTo:e.params.slidesPerView===p.slidesPerView&&t})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...s,slideTo:l.controller.control.params.slidesPerView===p.slidesPerView&&t})}l.emit("loopFix")},loopDestroy:function(){let{params:e,slidesEl:t}=this;if(!e.loop||!t||this.virtual&&this.params.virtual.enabled)return;this.recalcSlides();let i=[];this.slides.forEach(e=>{i[void 0===e.swiperSlideIndex?+e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex]=e}),this.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),i.forEach(e=>{t.append(e)}),this.recalcSlides(),this.slideTo(this.realIndex,0)}},grabCursor:{setGrabCursor:function(e){let t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;let i="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})},unsetGrabCursor:function(){let e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}},events:{attachEvents:function(){let{params:e}=this;this.onTouchStart=z.bind(this),this.onTouchMove=B.bind(this),this.onTouchEnd=V.bind(this),this.onDocumentTouchStart=q.bind(this),e.cssMode&&(this.onScroll=U.bind(this)),this.onClick=H.bind(this),this.onLoad=G.bind(this),W(this,"on")},detachEvents:function(){W(this,"off")}},breakpoints:{setBreakpoint:function(){let e=this,{realIndex:t,initialized:i,params:r,el:n}=e,s=r.breakpoints;if(!s||s&&0===Object.keys(s).length)return;let a=u(),o="window"!==r.breakpointsBase&&r.breakpointsBase?"container":r.breakpointsBase,l=["window","container"].includes(r.breakpointsBase)||!r.breakpointsBase?e.el:a.querySelector(r.breakpointsBase),c=e.getBreakpoint(s,o,l);if(!c||e.currentBreakpoint===c)return;let d=(c in s?s[c]:void 0)||e.originalParams,h=X(e,r),p=X(e,d),m=e.params.grabCursor,f=d.grabCursor,g=r.enabled;h&&!p?(n.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!h&&p&&(n.classList.add(`${r.containerModifierClass}grid`),(d.grid.fill&&"column"===d.grid.fill||!d.grid.fill&&"column"===r.grid.fill)&&n.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),m&&!f?e.unsetGrabCursor():!m&&f&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(t=>{if(void 0===d[t])return;let i=r[t]&&r[t].enabled,n=d[t]&&d[t].enabled;i&&!n&&e[t].disable(),!i&&n&&e[t].enable()});let y=d.direction&&d.direction!==r.direction,x=r.loop&&(d.slidesPerView!==r.slidesPerView||y),b=r.loop;y&&i&&e.changeDirection(),v(e.params,d);let w=e.params.enabled,C=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),g&&!w?e.disable():!g&&w&&e.enable(),e.currentBreakpoint=c,e.emit("_beforeBreakpoint",d),i&&(x?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!b&&C?(e.loopCreate(t),e.updateSlides()):b&&!C&&e.loopDestroy()),e.emit("breakpoint",d)},getBreakpoint:function(e,t="window",i){if(!e||"container"===t&&!i)return;let r=!1,n=p(),s="window"===t?n.innerHeight:i.clientHeight,a=Object.keys(e).map(e=>"string"==typeof e&&0===e.indexOf("@")?{value:s*parseFloat(e.substr(1)),point:e}:{value:e,point:e});a.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<a.length;e+=1){let{point:s,value:o}=a[e];"window"===t?n.matchMedia(`(min-width: ${o}px)`).matches&&(r=s):o<=i.clientWidth&&(r=s)}return r||"max"}},checkOverflow:{checkOverflow:function(){let{isLocked:e,params:t}=this,{slidesOffsetBefore:i}=t;if(i){let e=this.slides.length-1,t=this.slidesGrid[e]+this.slidesSizesGrid[e]+2*i;this.isLocked=this.size>t}else this.isLocked=1===this.snapGrid.length;!0===t.allowSlideNext&&(this.allowSlideNext=!this.isLocked),!0===t.allowSlidePrev&&(this.allowSlidePrev=!this.isLocked),e&&e!==this.isLocked&&(this.isEnd=!1),e!==this.isLocked&&this.emit
225(this.isLocked?"lock":"unlock")}},classes:{addClasses:function(){var e,t;let i,{classNames:r,params:n,rtl:s,el:a,device:o}=this,l=(e=["initialized",n.direction,{"free-mode":this.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:s},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&"column"===n.grid.fill},{android:o.android},{ios:o.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],t=n.containerModifierClass,i=[],e.forEach(e=>{"object"==typeof e?Object.keys(e).forEach(r=>{e[r]&&i.push(t+r)}):"string"==typeof e&&i.push(t+e)}),i);r.push(...l),a.classList.add(...r),this.emitContainerClasses()},removeClasses:function(){let{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}}},Z={};class J{constructor(...e){let t,i;1===e.length&&e[0].constructor&&"Object"===Object.prototype.toString.call(e[0]).slice(8,-1)?i=e[0]:[t,i]=e,i||(i={}),i=v({},i),t&&!i.el&&(i.el=t);const r=u();if(i.el&&"string"==typeof i.el&&r.querySelectorAll(i.el).length>1){const e=[];return r.querySelectorAll(i.el).forEach(t=>{let r=v({},i,{el:t});e.push(new J(r))}),e}const n=this;n.__swiper__=!0,n.support=_(),n.device=M({userAgent:i.userAgent}),n.browser=A(),n.eventsListeners={},n.eventsAnyListeners=[],n.modules=[...n.__modules__],i.modules&&Array.isArray(i.modules)&&i.modules.forEach(e=>{"function"==typeof e&&0>n.modules.indexOf(e)&&n.modules.push(e)});const s={};n.modules.forEach(e=>{var t;e({params:i,swiper:n,extendParams:(t=i,function(e={}){let i=Object.keys(e)[0],r=e[i];"object"!=typeof r||null===r||(!0===t[i]&&(t[i]={enabled:!0}),"navigation"===i&&t[i]&&t[i].enabled&&!t[i].prevEl&&!t[i].nextEl&&(t[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&t[i]&&t[i].enabled&&!t[i].el&&(t[i].auto=!0),i in t&&"enabled"in r&&("object"!=typeof t[i]||"enabled"in t[i]||(t[i].enabled=!0),t[i]||(t[i]={enabled:!1}))),v(s,e)}),on:n.on.bind(n),once:n.once.bind(n),off:n.off.bind(n),emit:n.emit.bind(n)})});const a=v({},Y,s);return n.params=v({},a,Z,i),n.originalParams=v({},n.params),n.passedParams=v({}
225,i),n.params&&n.params.on&&Object.keys(n.params.on).forEach(e=>{n.on(e,n.params.on[e])}),n.params&&n.params.onAny&&n.onAny(n.params.onAny),Object.assign(n,{enabled:n.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===n.params.direction,isVertical:()=>"vertical"===n.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return 8388608*Math.trunc(this.translate/8388608)},allowSlideNext:n.params.allowSlideNext,allowSlidePrev:n.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:n.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:n.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),n.emit("_swiper"),n.params.init&&n.init(),n}getDirectionLabel(e){return this.isHorizontal()?e:({width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"})[e]}getSlideIndex(e){let{slidesEl:t,params:i}=this,r=k(b(t,`.${i.slideClass}, swiper-slide`)[0]);return k(e)-r}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(t=>+t.getAttribute("data-swiper-slide-index")===e))}getSlideIndexWhenGrid(e){return this.grid&&this.params.grid&&this.params.grid.rows>1&&("column"===this.params.grid.fill?e=Math.floor(e/this.params.grid.rows):"row"===this.params.grid.fill&&(e%=Math.ceil(this.slides.length/this.params.grid.rows))),e}recalcSlides(){let{slidesEl:e,params:t}=this;this.slides=b(e,`.${t.slideClass}, swiper-slide`)}enable(){this.enabled||(this.enabled=!0,this.params.grabCursor&&this.setGrabCursor(),this.emit("enable"))}disable(){this.enabled&&(this.enabled=!1,this.params.grabCursor&&this.unsetGrabCursor(),this.emit("disable"))}setProgress(e,t){e=Math.min(Math.max(e,0),1);let i=this.minTranslate(),r=(this.maxTranslate()-i)*e+i;this.translateTo(r,void 0===t?0:t),this.updateActiveIndex(),this.updateSlidesClasses()}emitContainerClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=e.el.className.split(" ").filter(t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){let t=this;return t.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=[];e.slides.forEach(i=>{let r=e.getSlideClasses(i);t.push({slideEl:i,classNames:r}),e.emit("_slideClass",i,r)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e="current",t=!1){let{params:i,slides:r,slidesGrid:n,slidesSizesGrid:s,size:a,activeIndex:o}=this,l=1;if("number"==typeof i.slidesPerView)return i.slidesPerView;if(i.centeredSlides){let e,t=r[o]?Math.ceil(r[o].swiperSlideSize):0;for(let i=o+1;i<r.length;i+=1)r[i]&&!e&&(t+=Math.ceil(r[i].swiperSlideSize),l+=1,t>a&&(e=!0));for(let i=o-1;i>=0;i-=1)r[i]&&!e&&(t+=r[i].swiperSlideSize,l+=1,t>a&&(e=!0))}else if("current"===e)for(let e=o+1;e<r.length;e+=1)(t?n[e]+s[e]-n[o]<a:n[e]-n[o]<a)&&(l+=1);else for(let e=o-1;e>=0;e-=1)n[o]-n[e]<a&&(l+=1);return l}update(){let e,t=this;if(!t||t.destroyed)return;let{snapGrid:i,params:r}=t;function n(){let e=Math.min(Math.max(t.rtlTranslate?-1*t.translate:t.translate,t.maxTranslate()),t.minTranslate());t.setTranslate(e),t.updateActiveIndex(),t.updateSlidesClasses()}if(r.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(e=>{e.complete&&O(t,e)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),r.freeMode&&r.freeMode.enabled&&!r.cssMode)n(),r.autoHeight&&t.updateAutoHeight();else{if(("auto"===r.slidesPerView||r.slidesPerView>1)&&t.isEnd&&!r.centeredSlides){let i=t.virtual&&r.virtual.enabled?t.virtual.slides:t.slides;
225e=t.slideTo(i.length-1,0,!1,!0)}else e=t.slideTo(t.activeIndex,0,!1,!0);e||n()}r.watchOverflow&&i!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(e,t=!0){let i=this.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e||(this.el.classList.remove(`${this.params.containerModifierClass}${i}`),this.el.classList.add(`${this.params.containerModifierClass}${e}`),this.emitContainerClasses(),this.params.direction=e,this.slides.forEach(t=>{"vertical"===e?t.style.width="":t.style.height=""}),this.emit("changeDirection"),t&&this.update()),this}changeLanguageDirection(e){(!this.rtl||"rtl"!==e)&&(this.rtl||"ltr"!==e)&&(this.rtl="rtl"===e,this.rtlTranslate="horizontal"===this.params.direction&&this.rtl,this.rtl?(this.el.classList.add(`${this.params.containerModifierClass}rtl`),this.el.dir="rtl"):(this.el.classList.remove(`${this.params.containerModifierClass}rtl`),this.el.dir="ltr"),this.update())}mount(e){let t=this;if(t.mounted)return!0;let i=e||t.params.el;if("string"==typeof i&&(i=document.querySelector(i)),!i)return!1;i.swiper=t,i.parentNode&&i.parentNode.host&&i.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);let r=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`,n=i&&i.shadowRoot&&i.shadowRoot.querySelector?i.shadowRoot.querySelector(r()):b(i,r())[0];return!n&&t.params.createElements&&(n=C("div",t.params.wrapperClass),i.append(n),b(i,`.${t.params.slideClass}`).forEach(e=>{n.append(e)})),Object.assign(t,{el:i,wrapperEl:n,slidesEl:t.isElement&&!i.parentNode.host.slideSlots?i.parentNode.host:n,hostEl:t.isElement?i.parentNode.host:i,mounted:!0,rtl:"rtl"===i.dir.toLowerCase()||"rtl"===S(i,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===S(i,"direction")),wrongRTL:"-webkit-box"===S(n,"display")}),!0}init(e){let t=this;if(t.initialized||!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(void 0,!0),t.attachEvents();let i=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&i.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),i.forEach(e=>{e.complete?O(t,e):e.addEventListener("load",e=>{O(t,e.target)})}),R(t),t.initialized=!0,R(t),t.emit("init"),t.emit("afterInit"),t}destroy(e=!0,t=!0){let i=this,{params:r,el:n,wrapperEl:s,slides:a}=i;if(void 0===i.params||i.destroyed)return null;(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),r.loop&&i.loopDestroy(),t&&(i.removeClasses(),n&&"string"!=typeof n&&n.removeAttribute("style"),s&&s.removeAttribute("style"),a&&a.length&&a.forEach(e=>{e.classList.remove(r.slideVisibleClass,r.slideFullyVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")})),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(e=>{i.off(e)}),!1!==e)&&(i.el&&"string"!=typeof i.el&&(i.el.swiper=null),Object.keys(i).forEac
225h(e=>{try{i[e]=null}catch(e){}try{delete i[e]}catch(e){}}));return i.destroyed=!0,null}static extendDefaults(e){v(Z,e)}static get extendedDefaults(){return Z}static get defaults(){return Y}static installModule(e){J.prototype.__modules__||(J.prototype.__modules__=[]);let t=J.prototype.__modules__;"function"==typeof e&&0>t.indexOf(e)&&t.push(e)}static use(e){return Array.isArray(e)?e.forEach(e=>J.installModule(e)):J.installModule(e),J}}Object.keys(K).forEach(e=>{Object.keys(K[e]).forEach(t=>{J.prototype[t]=K[e][t]})}),J.use([function({swiper:e,on:t,emit:i}){let r=p(),n=null,s=null,a=()=>{e&&!e.destroyed&&e.initialized&&(i("beforeResize"),i("resize"))},o=()=>{e&&!e.destroyed&&e.initialized&&i("orientationchange")};t("init",()=>{e.params.resizeObserver&&void 0!==r.ResizeObserver?e&&!e.destroyed&&e.initialized&&(n=new ResizeObserver(t=>{s=r.requestAnimationFrame(()=>{let{width:i,height:r}=e,n=i,s=r;t.forEach(({contentBoxSize:t,contentRect:i,target:r})=>{r&&r!==e.el||(n=i?i.width:(t[0]||t).inlineSize,s=i?i.height:(t[0]||t).blockSize)}),(n!==i||s!==r)&&a()})})).observe(e.el):(r.addEventListener("resize",a),r.addEventListener("orientationchange",o))}),t("destroy",()=>{s&&r.cancelAnimationFrame(s),n&&n.unobserve&&e.el&&(n.unobserve(e.el),n=null),r.removeEventListener("resize",a),r.removeEventListener("orientationchange",o)})},function({swiper:e,extendParams:t,on:i,emit:r}){let n=[],s=p(),a=(t,i={})=>{let a=new(s.MutationObserver||s.WebkitMutationObserver)(t=>{if(e.__preventObserver__)return;if(1===t.length)return void r("observerUpdate",t[0]);let i=function(){r("observerUpdate",t[0])};s.requestAnimationFrame?s.requestAnimationFrame(i):s.setTimeout(i,0)});a.observe(t,{attributes:void 0===i.attributes||i.attributes,childList:e.isElement||(void 0===i.childList||i).childList,characterData:void 0===i.characterData||i.characterData}),n.push(a)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",()=>{if(e.params.observer){if(e.params.observeParents){let t=T(e.hostEl);for(let e=0;e<t.length;e+=1)a(t[e])}a(e.hostEl,{childList:e.params.observeSlideChildren}),a(e.wrapperEl,{attributes:!1})}}),i("destroy",()=>{n.forEach(e=>{e.disconnect()}),n.splice(0,n.length)})}]);let Q=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_snapToSlideEdge","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function ee(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)&&!e.__swiper__}function et(e,t){let i=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>0>
225i.indexOf(e)).forEach(i=>{void 0===e[i]?e[i]=t[i]:ee(t[i])&&ee(e[i])&&Object.keys(t[i]).length>0?t[i].__swiper__?e[i]=t[i]:et(e[i],t[i]):e[i]=t[i]})}function ei(e={}){return e.navigation&&void 0===e.navigation.nextEl&&void 0===e.navigation.prevEl}function er(e={}){return e.pagination&&void 0===e.pagination.el}function en(e={}){return e.scrollbar&&void 0===e.scrollbar.el}function es(e=""){let t=e.split(" ").map(e=>e.trim()).filter(e=>!!e),i=[];return t.forEach(e=>{0>i.indexOf(e)&&i.push(e)}),i.join(" ")}function ea(){return(ea=Object.assign.bind()).apply(this,arguments)}function eo(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function el(e,t){return"u"<typeof window?(0,o.useEffect)(e,t):(0,o.useLayoutEffect)(e,t)}let ec=(0,o.createContext)(null),ed=(0,o.createContext)(null),eu=(0,o.forwardRef)(({className:e,tag:t="div",wrapperTag:i="div",children:r,onSwiper:n,...s}={},a)=>{let l,c,d=!1,[u,h]=(0,o.useState)("swiper"),[p,m]=(0,o.useState)(null),[f,g]=(0,o.useState)(!1),v=(0,o.useRef)(!1),y=(0,o.useRef)(null),x=(0,o.useRef)(null),b=(0,o.useRef)(null),w=(0,o.useRef)(null),C=(0,o.useRef)(null),S=(0,o.useRef)(null),k=(0,o.useRef)(null),T=(0,o.useRef)(null),{params:E,passedParams:P,rest:_,events:M}=function(e={},t=!0){let i={on:{}},r={},n={};et(i,Y),i._emitClasses=!0,i.init=!1;let s={},a=Q.map(e=>e.replace(/_/,""));return Object.keys(Object.assign({},e)).forEach(o=>{void 0!==e[o]&&(a.indexOf(o)>=0?ee(e[o])?(i[o]={},n[o]={},et(i[o],e[o]),et(n[o],e[o])):(i[o]=e[o],n[o]=e[o]):0===o.search(/on[A-Z]/)&&"function"==typeof e[o]?t?r[`${o[2].toLowerCase()}${o.substr(3)}`]=e[o]:i.on[`${o[2].toLowerCase()}${o.substr(3)}`]=e[o]:s[o]=e[o])}),["navigation","pagination","scrollbar"].forEach(e=>{!0===i[e]&&(i[e]={}),!1===i[e]&&delete i[e]}),{params:i,passedParams:n,rest:s,events:r}}(s),{slides:A,slots:N}=(l=[],c={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]},o.default.Children.toArray(r).forEach(e=>{if(eo(e))l.push(e);else if(e.props&&e.props.slot&&c[e.props.slot])c[e.props.slot].push(e);else if(e.props&&e.props.children){let t=function e(t){let i=[];return o.default.Children.toArray(t).forEach(t=>{eo(t)?i.push(t):t.props&&t.props.children&&e(t.props.children).forEach(e=>i.push(e))}),i}(e.props.children);t.length>0?t.forEach(e=>l.push(e)):c["container-end"].push(e)}else c["container-end"].push(e)}),{slides:l,slots:c}),L=()=>{g(!f)};Object.assign(E.on,{_containerClasses(e,t){h(t)}});let O=()=>{Object.assign(E.on,M),d=!0;let e={...E};if(delete e.wrapperClass,x.current=new J(e),x.current.virtual&&x.current.params.virtual.enabled){x.current.virtual.slides=A;let e={cache:!1,slides:A,renderExternal:m,renderExternalUpdate:!1};et(x.current.params.virtual,e),et(x.current.originalParams.virtual,e)}};return y.current||O(),x.current&&x.current.on("_beforeBreakpoint",L),(0,o.useEffect)(()=>()=>{x.current&&x.current.off("_beforeBreakpoint",L)}),(0,o.useEffect)(()=>{!v.current&&x.current&&(x.current.emitSlidesClasses(),v.current=!0)}),el(()=>{if(a&&(a.current=y.current),y.current)return x.current.destroyed&&O(),!function({el:e,nextEl:t,prevEl:i,paginationEl:r,scrollbarEl:n,swiper:s},a){ei(a)&&t&&i&&(s.params.navigation.nextEl=t,s.originalParams.navigation.nextEl=t,s.params.navigation.prevEl=i,s.originalParams.navigation.prevEl=i),er(a)&&r&&(s.params.pagination.el=r,s.originalParams.pagination.el=r),en(a)&&n&&(s.params.scrollbar.el=n,s.originalParams.scrollbar.el=n),s.init(e)}({el:y.current,nextEl:C.current,prevEl:S.current,paginationEl:k.current,scrollbarEl:T.current,swiper:x.current},E),n&&!x.current.destroyed&&n(x.current),()=>{x.current&&!x.current.destroyed&&x.current.destroy(!0,!1)}},[]),el(()=>{!d&&M&&x.current&&Object.keys(M).forEach(e=>{x.current.on(e,M[e])});let e=function(e,t,i,r,n){let s=[];if(!t)return s;let a=e=>{0>s.indexOf(e)&&s.push(e)};if(i&&r){let e=r.map(n),t=i.map(n);e.join("")!==t.join("")&&a("children"),r.length!==i.length&&a("children")}return Q.filter(e=>"_"===e[0]).map(e=>e.replace(/_/,"")).forEach(i=>{if(i in e&&i in t)if(ee(e[i])&&ee(t[i])){let r=Object.keys(e[i]),n=Object.keys(t[i]);r.length!==n.length?a(i):(r.forEach(r=>{e[i][r]!==t[i][r]&&a(i)}
225),n.forEach(r=>{e[i][r]!==t[i][r]&&a(i)}))}else e[i]!==t[i]&&a(i)}),s}(P,b.current,A,w.current,e=>e.key);return b.current=P,w.current=A,e.length&&x.current&&!x.current.destroyed&&function({swiper:e,slides:t,passedParams:i,changedParams:r,nextEl:n,prevEl:s,scrollbarEl:a,paginationEl:o}){let l,c,d,u,h,p,m,f,g=r.filter(e=>"children"!==e&&"direction"!==e&&"wrapperClass"!==e),{params:v,pagination:y,navigation:x,scrollbar:b,virtual:w,thumbs:C}=e;r.includes("thumbs")&&i.thumbs&&i.thumbs.swiper&&!i.thumbs.swiper.destroyed&&v.thumbs&&(!v.thumbs.swiper||v.thumbs.swiper.destroyed)&&(l=!0),r.includes("controller")&&i.controller&&i.controller.control&&v.controller&&!v.controller.control&&(c=!0),r.includes("pagination")&&i.pagination&&(i.pagination.el||o)&&(v.pagination||!1===v.pagination)&&y&&!y.el&&(d=!0),r.includes("scrollbar")&&i.scrollbar&&(i.scrollbar.el||a)&&(v.scrollbar||!1===v.scrollbar)&&b&&!b.el&&(u=!0),r.includes("navigation")&&i.navigation&&(i.navigation.prevEl||s)&&(i.navigation.nextEl||n)&&(v.navigation||!1===v.navigation)&&x&&!x.prevEl&&!x.nextEl&&(h=!0);let S=t=>{e[t]&&(e[t].destroy(),"navigation"===t?(e.isElement&&(e[t].prevEl.remove(),e[t].nextEl.remove()),v[t].prevEl=void 0,v[t].nextEl=void 0,e[t].prevEl=void 0,e[t].nextEl=void 0):(e.isElement&&e[t].el.remove(),v[t].el=void 0,e[t].el=void 0))};r.includes("loop")&&e.isElement&&(v.loop&&!i.loop?p=!0:!v.loop&&i.loop?m=!0:f=!0),g.forEach(e=>{if(ee(v[e])&&ee(i[e]))Object.assign(v[e],i[e]),("navigation"===e||"pagination"===e||"scrollbar"===e)&&"enabled"in i[e]&&!i[e].enabled&&S(e);else{let t=i[e];(!0===t||!1===t)&&("navigation"===e||"pagination"===e||"scrollbar"===e)?!1===t&&S(e):v[e]=i[e]}}),g.includes("controller")&&!c&&e.controller&&e.controller.control&&v.controller&&v.controller.control&&(e.controller.control=v.controller.control),r.includes("children")&&t&&w&&v.virtual.enabled?(w.slides=t,w.update(!0)):r.includes("virtual")&&w&&v.virtual.enabled&&(t&&(w.slides=t),w.update(!0)),r.includes("children")&&t&&v.loop&&(f=!0),l&&C.init()&&C.update(!0),c&&(e.controller.control=v.controller.control),d&&(e.isElement&&(!o||"string"==typeof o)&&((o=document.createElement("div")).classList.add("swiper-pagination"),o.part.add("pagination"),e.el.appendChild(o)),o&&(v.pagination.el=o),y.init(),y.render(),y.update()),u&&(e.isElement&&(!a||"string"==typeof a)&&((a=document.createElement("div")).classList.add("swiper-scrollbar"),a.part.add("scrollbar"),e.el.appendChild(a)),a&&(v.scrollbar.el=a),b.init(),b.updateSize(),b.setTranslate()),h&&(e.isElement&&(n&&"string"!=typeof n||((n=document.createElement("div")).classList.add("swiper-button-next"),j(n,e.navigation.arrowSvg),n.part.add("button-next"),e.el.appendChild(n)),s&&"string"!=typeof s||((s=document.createElement("div")).classList.add("swiper-button-prev"),j(s,e.navigation.arrowSvg),s.part.add("button-prev"),e.el.appendChild(s))),n&&(v.navigation.nextEl=n),s&&(v.navigation.prevEl=s),x.init(),x.update()),r.includes("allowSlideNext")&&(e.allowSlideNext=i.allowSlideNext),r.includes("allowSlidePrev")&&(e.allowSlidePrev=i.allowSlidePrev),r.includes("direction")&&e.changeDirection(i.direction,!1),(p||f)&&e.loopDestroy(),(m||f)&&e.loopCreate(),e.update()}({swiper:x.current,slides:A,passedParams:P,changedParams:e,nextEl:C.current,prevEl:S.current,scrollbarEl:T.current,paginationEl:k.current}),()=>{M&&x.current&&Object.keys(M).forEach(e=>{x.current.off(e,M[e])})}}),el(()=>{var e;(e=x.current)&&!e.destroyed&&e.params.virtual&&(!e.params.virtual||e.params.virtual.enabled)&&(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.emit("_virtualUpdated"),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())},[p]),o.default.createElement(t,ea({ref:y,className:es(`${u}${e?` ${e}`:""}`)},_),o.default.createElement(ed.Provider,{value:x.current},N["container-start"],o.default.createElement(i,{className:function(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}(E.wrapperClass)},N["wrapper-start"],E.virtual?function(e,t,i){if(!i)return null;let r=e=>{let i=e;return e<0?i=t.length+e:i>=t.length&&(i-=t.length),i},n=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:s,to:a}=i,l=e.params.loop?-t.length:0,c=e.params.loop?2*t.length:t.length,d=[];for(let e=l;e<c;e+=1)e>=s&&e<=a&&d.push(t[r(e)]);return d.map((t,i)=>o.default.cloneElement(t,{swiper:e,style:n,key:t.props.virtualIndex||t.key||`slide-${i}`}))}(x.current,A,p):A.map((e,t)=>o.default.cloneElement(e,{swiper:x.current,swiperSlideIndex:t})),N["wrapper-end"]),ei(E)&&o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{ref:S,className:"swiper-button-prev"}),o.default.createElement("div",{ref:C,className:"swiper-button-next"})),en(E)&&o.default.createElement("div",{ref:T,className:"swiper-scrollbar"}),er(E)&&o.default.createElement("div",{ref:k,className:"swiper-pagination"}),N["container-end"]))});eu.displayName="Swiper";let eh=(0,o.forwardRef)(({tag:e="div",children:t,className:i="",swiper:r,zoom:n,lazy:s,virtualIndex:a,swiperSlideIndex:l,...c}={},d)=>{let u=(0,o.useRef)(null),[h,p]=(0,o.useState)("swiper-slide"),[m,f]=(0,o.useState)(!1);function g(e,t,i){t===u.current&&p(i)}el(()=>{if(void 0!==l&&(u.current.swiperSlideIndex=l),d&&(d.current=u.current),u.current&&r){if(r.destroyed){"swiper-slide"!==h&&p("swiper-slide");return}return r.on("_slideClass",g),()=>{r&&r.off("_slideClass",g)}}}),el(()=>{r&&u.current&&!r.destroyed&&p(r.getSlideClasses(u.current))},[r]);let v={isActive:h.indexOf("swiper-slide-active")>=0,isVisible:h.indexOf("swiper-slide-visible")>=0,isPrev:h.indexOf("swiper-slide-prev")>=0,isNext:h.indexOf("swiper-slide-next")>=0},y=()=>"function"==typeof t?t(v):t;return o.default.createElement(e,ea({ref:u,className:es(`${h}${i?` ${i}`:""}`),"data-swiper-slide-index":a,onLoad:()=>{f(!0)}},c),n&&o.default.createElement(ec.Provider,{value:v},o.default.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":"number"==typeof n?n:void 0},y(),s&&!m&&o.default.createElement("div",{className:"swiper-lazy-preloader",ref:e=>{e&&(e.lazyPreloaderManaged=!0)}}))),!n&&o.default.createElement(ec.Provider,{value:v},y(),s&&!m&&o.default.createElement("div",{className:"swiper-lazy-preloader",ref:e=>{e&&(e.lazyPreloaderManaged=!0)}})))});eh.displayName="SwiperSlide";var ep=e.i(46951);e.i(340961);var em=e.i(111329),ef=e.i(321799),eg=e.i(681913);let ev=({children:e,color:t="white",className:i})=>{let r=(0,ep.cn)("flex gap-x-8 gap-y-4 md:gap-y-2 px-8 py-8 md:py-16 md:px-16 rounded-2xl items-center","white"===t&&"bg-white","blue"===t&&"bg-blue-100",i);return(0,n.jsx)("div",{className:r,children:e})},ey=({color:e="white"})=>{let t=(0,ep.cn)("size-8 md:size-16 shrink-0 md:mb-24","white"===e&&"text-blue-600","blue"===e&&"text-blue-100");return(0,n.jsx)("span",{className:t,children:(0,n.jsx)(eg.default,{})})},ex=({children:e,className:t})=>{let i=(0,ep.cn)("flex flex-col md:mb-12 gap-8 max-w-[52.5rem] items-stretch lg:items-start flex-wrap",t);return(0,n.jsx)("div",{className:i,children:e})},eb=({children:e})=>(0,n.jsx)("div",{className:"flex w-full flex-row items-center justify-start gap-4 whitespace-normal text-balance md:ml-auto md:max-w-[220px] md:flex-col",children:e}),ew=({src:e,alt:t})=>(0,n.jsx)("div",{className:"flex aspect-square size-16 shrink-0 overflow-hidden rounded-full md:size-40 lg:size-52",children:(0,n.jsx)(ef.default,{src:e,alt:t,width:440,height:440,sizes:"(min-width: 1024px) 208px, (min-width: 768px) 160px, 64px",quality:100,className:"size-full object-cover"})}),eC=({name:e,role:t,company:i})=>(0,n.jsxs)("div",{className:"flex flex-col items-start gap-1 md:items-center md:text-center",children:[(0,n.jsx)(em.default,{type:"medium-semibold",color:"dark_gray",children:e}),(t||i)&&(0,n.jsxs)(em.default,{color:"gray",type:"small",children:[t," at ",i]})]});var eS=e.i(54189);let ek=(0,eS.graphql)(`
226    fragment AuthorF on Person {
227        role
228        name
229        image {
230            ...AuthorImageF
231        }
232        company
233        bio
234        linkedin_type
235        linkedin_url
236    }
237`);var eT=e.i(982106);let eE=(0,eS.graphql)(`
238    fragment TestimonialF on Testimonial {
239        headline
240        quote
241        person {
242            ...AuthorF
243        }
244        rating
245        logo {
246            ...ImageF
247        }
248    }
249`),eP=e=>{let t=(0,s.getFragmentData)(ek,e.author),i=(0,s.getFragmentData)(eT.AUTHOR_IMAGE_FRAGMENT,t?.image);return(0,n.jsxs)(eb,{children:[i&&(0,n.jsx)(ew,{src:i.url||"",alt:i.description||""}),(0,n.jsx)(eC,{name:t?.name||"",role:t?.role||"",company:t?.company||""})]})};function ej(e,t,i,r){return e.params.createElements&&Object.keys(r).forEach(n=>{if(!i[n]&&!0===i.auto){let s=b(e.el,`.${r[n]}`)[0];s||((s=C("div",r[n])).className=r[n],e.el.append(s)),i[n]=s,t[n]=s}}),i}let e_='<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>';function eM({swiper:e,extendParams:t,on:i,emit:r}){function n(t){let i;return t&&"string"==typeof t&&e.isElement&&(i=e.el.querySelector(t)||e.hostEl.querySelector(t))?i:(t&&("string"==typeof t&&(i=[...document.querySelectorAll(t)]),e.params.uniqueNavElements&&"string"==typeof t&&i&&i.length>1&&1===e.el.querySelectorAll(t).length?i=e.el.querySelector(t):i&&1===i.length&&(i=i[0])),t&&!i)?t:i}function s(t,i){let r=e.params.navigation;
249(t=P(t)).forEach(t=>{t&&(t.classList[i?"add":"remove"](...r.disabledClass.split(" ")),"BUTTON"===t.tagName&&(t.disabled=i),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](r.lockClass))})}function a(){let{nextEl:t,prevEl:i}=e.navigation;if(e.params.loop){s(i,!1),s(t,!1);return}s(i,e.isBeginning&&!e.params.rewind),s(t,e.isEnd&&!e.params.rewind)}function o(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&(e.slidePrev(),r("navigationPrev"))}function l(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&(e.slideNext(),r("navigationNext"))}function c(){let t=e.params.navigation;if(e.params.navigation=ej(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(t.nextEl||t.prevEl))return;let i=n(t.nextEl),r=n(t.prevEl);Object.assign(e.navigation,{nextEl:i,prevEl:r}),i=P(i),r=P(r);let s=(i,r)=>{if(i){if(t.addIcons&&i.matches(".swiper-button-next,.swiper-button-prev")&&!i.querySelector("svg")){let e=document.createElement("div");j(e,e_),i.appendChild(e.querySelector("svg")),e.remove()}i.addEventListener("click","next"===r?l:o)}!e.enabled&&i&&i.classList.add(...t.lockClass.split(" "))};i.forEach(e=>s(e,"next")),r.forEach(e=>s(e,"prev"))}function d(){let{nextEl:t,prevEl:i}=e.navigation;t=P(t),i=P(i);let r=(t,i)=>{t.removeEventListener("click","next"===i?l:o),t.classList.remove(...e.params.navigation.disabledClass.split(" "))};t.forEach(e=>r(e,"next")),i.forEach(e=>r(e,"prev"))}t({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null,arrowSvg:e_},i("init",()=>{!1===e.params.navigation.enabled?u():(c(),a())}),i("toEdge fromEdge lock unlock",()=>{a()}),i("destroy",()=>{d()}),i("enable disable",()=>{let{nextEl:t,prevEl:i}=e.navigation;(t=P(t),i=P(i),e.enabled)?a():[...t,...i].filter(e=>!!e).forEach(t=>t.classList.add(e.params.navigation.lockClass))}),i("click",(t,i)=>{let{nextEl:n,prevEl:s}=e.navigation;n=P(n),s=P(s);let a=i.target,o=s.includes(a)||n.includes(a);if(e.isElement&&!o){let e=i.path||i.composedPath&&i.composedPath();e&&(o=e.find(e=>n.includes(e)||s.includes(e)))}if(e.params.navigation.hideOnClick&&!o){let t;if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===a||e.pagination.el.contains(a)))return;n.length?t=n[0].classList.contains(e.params.navigation.hiddenClass):s.length&&(t=s[0].classList.contains(e.params.navigation.hiddenClass)),!0===t?r("navigationShow"):r("navigationHide"),[...n,...s].filter(e=>!!e).forEach(t=>t.classList.toggle(e.params.navigation.hiddenClass))}});let u=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),d()};Object.assign(e.navigation,{enable:()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),c(),a()},disable:u,update:a,init:c,destroy:d})}function eA(e=""){return`.${e.trim().replace(/([\.:!+\/()[\]#>~*^$|=,'"@{}\\])/g,"\\$1").replace(/ /g,".")}`}function eN({swiper:e,extendParams:t,on:i,emit:r}){let n,s="swiper-pagination";t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${s}-bullet`,bulletActiveClass:`${s}-bullet-active`,modifierClass:`${s}-`,currentClass:`${s}-current`,totalClass:`${s}-total`,hiddenClass:`${s}-hidden`,progressbarFillClass:`${s}-progressbar-fill`,progressbarOppositeClass:`${s}-progressbar-opposite`,clickableClass:`${s}-clickable`,lockClass:`${s}-lock`,horizontalClass:`${s}-horizontal`,verticalClass:`${s}-vertical`,paginationDisabledClass:`${s}-disabled`}}),e.pagination={el:null,bullets:[]};let a=0;function o(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&0===e.pagination.el.length}function l(t,i){let{bulletActiveClass:r}=e.params.pagination;t&&(t=t[`${"prev"===i?"previous":"next"}ElementSibling`])&&(t.classList.add(`${r}-${i}`),(t=t[`${"prev"===i?"previous":"next"}ElementSibling`])&&t.classList.add(`${r}-${i}-${i}`))}function c(t){let i=t.target.closest(eA(e.params.pagination.bulletClass));if(!i)return;t.preventDefault();let r=k(i)*e.params.slidesPerGroup;if(e.params.loop){var n,s,a;if(e.realIndex===r)return;let t=(n=e.realIndex,s=r,(n%=a=e.slides.length,(s%=a)===n+1)?"next":s===n-1?"previous":void 0);"next"===t?e.slideNext():"previous"===t?e.slidePrev():e.slideToLoop(r)}else e.slideTo(r)}function d(){let t,i,s=e.rtl,c=e.params.pagination;if(o())return;let d=e.pagination.el;d=P(d);let u=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,h=e.params.loop?Math.
249ceil(u/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(i=e.previousRealIndex||0,t=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):void 0!==e.snapIndex?(t=e.snapIndex,i=e.previousSnapIndex):(i=e.previousIndex||0,t=e.activeIndex||0),"bullets"===c.type&&e.pagination.bullets&&e.pagination.bullets.length>0){let r,o,u,h=e.pagination.bullets;if(c.dynamicBullets&&(n=E(h[0],e.isHorizontal()?"width":"height",!0),d.forEach(t=>{t.style[e.isHorizontal()?"width":"height"]=`${n*(c.dynamicMainBullets+4)}px`}),c.dynamicMainBullets>1&&void 0!==i&&((a+=t-(i||0))>c.dynamicMainBullets-1?a=c.dynamicMainBullets-1:a<0&&(a=0)),u=((o=(r=Math.max(t-a,0))+(Math.min(h.length,c.dynamicMainBullets)-1))+r)/2),h.forEach(e=>{let t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>`${c.bulletActiveClass}${e}`)].map(e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e).flat();e.classList.remove(...t)}),d.length>1)h.forEach(i=>{let n=k(i);n===t?i.classList.add(...c.bulletActiveClass.split(" ")):e.isElement&&i.setAttribute("part","bullet"),c.dynamicBullets&&(n>=r&&n<=o&&i.classList.add(...`${c.bulletActiveClass}-main`.split(" ")),n===r&&l(i,"prev"),n===o&&l(i,"next"))});else{let i=h[t];if(i&&i.classList.add(...c.bulletActiveClass.split(" ")),e.isElement&&h.forEach((e,i)=>{e.setAttribute("part",i===t?"bullet-active":"bullet")}),c.dynamicBullets){let e=h[r],t=h[o];for(let e=r;e<=o;e+=1)h[e]&&h[e].classList.add(...`${c.bulletActiveClass}-main`.split(" "));l(e,"prev"),l(t,"next")}}if(c.dynamicBullets){let t=Math.min(h.length,c.dynamicMainBullets+4),i=(n*t-n)/2-u*n,r=s?"right":"left";h.forEach(t=>{t.style[e.isHorizontal()?r:"top"]=`${i}px`})}}d.forEach((i,n)=>{if("fraction"===c.type&&(i.querySelectorAll(eA(c.currentClass)).forEach(e=>{e.textContent=c.formatFractionCurrent(t+1)}),i.querySelectorAll(eA(c.totalClass)).forEach(e=>{e.textContent=c.formatFractionTotal(h)})),"progressbar"===c.type){let r;r=c.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";let n=(t+1)/h,s=1,a=1;"horizontal"===r?s=n:a=n,i.querySelectorAll(eA(c.progressbarFillClass)).forEach(t=>{t.style.transform=`translate3d(0,0,0) scaleX(${s}) scaleY(${a})`,t.style.transitionDuration=`${e.params.speed}ms`})}"custom"===c.type&&c.renderCustom?(j(i,c.renderCustom(e,t+1,h)),0===n&&r("paginationRender",i)):(0===n&&r("paginationRender",i),r("paginationUpdate",i)),e.params.watchOverflow&&e.enabled&&i.classList[e.isLocked?"add":"remove"](c.lockClass)})}function u(){let t=e.params.pagination;if(o())return;let i=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length,n=e.pagination.el;n=P(n);let s="";if("bullets"===t.type){let r=e.params.loop?Math.ceil(i/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&r>i&&(r=i);for(let i=0;i<r;i+=1)t.renderBullet?s+=t.renderBullet.call(e,i,t.bulletClass):s+=`<${t.bulletElement} ${e.isElement?'part="bullet"':""} class="${t.bulletClass}"></${t.bulletElement}>`}"fraction"===t.type&&(s=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`),"progressbar"===t.type&&(s=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`),e.pagination.bullets=[],n.forEach(i=>{"custom"!==t.type&&j(i,s||""),"bullets"===t.type&&e.pagination.bullets.push(...i.querySelectorAll(eA(t.bulletClass)))}),"custom"!==t.type&&r("paginationRender",n[0])}function h(){let t;e.params.pagination=ej(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});let i=e.params.pagination;!i.el||("string"==typeof i.el&&e.isElement&&(t=e.el.querySelector(i.el)),t||"string"!=typeof i.el||(t=[...document.querySelectorAll(i.el)]),t||(t=i.el),t&&0!==t.length&&(e.params.uniqueNavElements&&"string"==typeof i.el&&Array.isArray(t)&&t.length>1&&(t=[...e.el.querySelectorAll(i.el)]).length>1&&(t=t.find(t=>T(t,".swiper")[0]===e.el)),Array.isArray(t)&&1===t.length&&(t=t[0]),Object.assign(e.pagination,{el:t}
249),(t=P(t)).forEach(t=>{"bullets"===i.type&&i.clickable&&t.classList.add(...(i.clickableClass||"").split(" ")),t.classList.add(i.modifierClass+i.type),t.classList.add(e.isHorizontal()?i.horizontalClass:i.verticalClass),"bullets"===i.type&&i.dynamicBullets&&(t.classList.add(`${i.modifierClass}${i.type}-dynamic`),a=0,i.dynamicMainBullets<1&&(i.dynamicMainBullets=1)),"progressbar"===i.type&&i.progressbarOpposite&&t.classList.add(i.progressbarOppositeClass),i.clickable&&t.addEventListener("click",c),e.enabled||t.classList.add(i.lockClass)})))}function p(){let t=e.params.pagination;if(o())return;let i=e.pagination.el;i&&(i=P(i)).forEach(i=>{i.classList.remove(t.hiddenClass),i.classList.remove(t.modifierClass+t.type),i.classList.remove(e.isHorizontal()?t.horizontalClass:t.verticalClass),t.clickable&&(i.classList.remove(...(t.clickableClass||"").split(" ")),i.removeEventListener("click",c))}),e.pagination.bullets&&e.pagination.bullets.forEach(e=>e.classList.remove(...t.bulletActiveClass.split(" ")))}i("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;let t=e.params.pagination,{el:i}=e.pagination;(i=P(i)).forEach(i=>{i.classList.remove(t.horizontalClass,t.verticalClass),i.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),i("init",()=>{!1===e.params.pagination.enabled?m():(h(),u(),d())}),i("activeIndexChange",()=>{void 0===e.snapIndex&&d()}),i("snapIndexChange",()=>{d()}),i("snapGridLengthChange",()=>{u(),d()}),i("destroy",()=>{p()}),i("enable disable",()=>{let{el:t}=e.pagination;t&&(t=P(t)).forEach(t=>t.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass))}),i("lock unlock",()=>{d()}),i("click",(t,i)=>{let n=i.target,s=P(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&s&&s.length>0&&!n.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&n===e.navigation.nextEl||e.navigation.prevEl&&n===e.navigation.prevEl))return;!0===s[0].classList.contains(e.params.pagination.hiddenClass)?r("paginationShow"):r("paginationHide"),s.forEach(t=>t.classList.toggle(e.params.pagination.hiddenClass))}});let m=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=P(t)).forEach(t=>t.classList.add(e.params.pagination.paginationDisabledClass)),p()};Object.assign(e.pagination,{enable:()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=P(t)).forEach(t=>t.classList.remove(e.params.pagination.paginationDisabledClass)),h(),u(),d()},disable:m,render:u,update:d,init:h,destroy:p})}e.i(480234);var eL=e.i(769303),eO=e.i(451647),eD=e.i(749312);let eR=(0,eS.graphql)(`
250    fragment STestimonialCarouselF on STestimonialCarousel {
251        label
252        headline
253        _context {
254            variant_key
255        }
256        text
257        testimonials {
258            ...TestimonialF
259        }
260    }
261`);e.s(["default",0,function(e){let t=(0,s.getFragmentData)(eR,e.section),i=(0,s.getFragmentData)(eE,t.testimonials);return(0,n.jsxs)(a.DefaultSectionWrapper,{className:"space-y-12","data-prepr-variant-key":t._context?.variant_key,children:[(0,n.jsxs)("div",{children:[t.label&&(0,n.jsx)(eD.Label,{color:"blue",className:"mb-6",children:t.label}),t.headline&&(0,n.jsx)(eO.Heading,{heading:"h2",color:"dark_gray",className:"mb-8",children:t.headline}),t?.text&&(0,n.jsx)(eL.BodyText,{type:"large",color:"gray",className:"blog-text",dangerouslySetInnerHTML:{__html:t?.text||""}})]}),(0,n.jsx)(eu,{spaceBetween:50,pagination:{dynamicBullets:!0},navigation:!0,modules:[eN,eM],className:"testimonialSwiper",children:i.map((e,t)=>(0,n.jsx)(eh,{className:"px-10 md:px-12 lg:px-14",children:(0,n.jsxs)(ev,{className:"flex-wrap md:flex-nowrap",color:"blue",children:[(0,n.jsx)(ey,{color:"white"}),(0,n.jsx)(ex,{children:(0,n.jsx)("div",{className:"flex flex-col gap-4",children:e.quote&&(0,n.jsx)("h4",{className:"whitespace-normal text-balance text-[1.25rem] font-bold md:text-[1.5rem] lg:text-[28px]",children:e.quote})})}),e.person[0]&&(0,n.jsx)(eP,{author:e.person[0]})]})},t))})]})}],292440)},448213,e=>{"use strict";var t=e.i(250465),i=e.i(838406);e.i(621311);var r=e.i(347664),n=e.i(489373);let s=(0,i.createContext)([]);e.s(["PricingFeatureContext",0,s,"default",0,function({children:e,items:i}){let a=(0,r.getFragmentData)(n.COMPONENT_PROJECT_FEATURE_FRAGMENT,i);return(0,t.jsx)(s.Provider,{value:{features:a},children:e})}])},489373,e=>{"use strict";e.i(621311);let t=(0,e.i(54189).graphql)(`
262    fragment CProjectFeatureF on ProjectFeature {
263        __typename
264        _slug
265        headline
266        headline_helptext
267        community
268        small
269        medium
270        large
271        enterprise
272        tooltip {
273            ...CFeatureTooltipF
274        }
275    }
276`);e.s(["COMPONENT_PROJECT_FEATURE_FRAGMENT",0,t])}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.