PageSourceSearch

https://www.treccani.it/_next/static/chunks/pages/_app-2f31a7dfae9bf15d.js

js treccani.it collected 2026-09-24 08:26:25 UTC 836,519 bytes, 115 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{1519:e=>{e.exports={heroCarousel:"HeroCarousel_heroCarousel__bVlzZ",fadeIn:"HeroCarousel_fadeIn__RHN7i",container:"HeroCarousel_container__E7jN2",content:"HeroCarousel_content__fLL1x",author:"HeroCarousel_author__uajeQ",title:"HeroCarousel_title__PyUO9",headline:"HeroCarousel_headline__bGa_W",heroCarouselSlide:"HeroCarousel_heroCarouselSlide__mZx9q",boxColor:"HeroCarousel_boxColor__R9Mkz",boxImg:"HeroCarousel_boxImg__n_uVm",img:"HeroCarousel_img__btwZM",scrollDown:"HeroCarousel_scrollDown___2QGo",navigation:"HeroCarousel_navigation__vP6zU",fadeOut:"HeroCarousel_fadeOut__cix_A",rotation:"HeroCarousel_rotation__5CjMC"}},1923:(e,t,n)=>{"use strict";n.d(t,{M:()=>o});var r=n(56752);let i=()=>"Scopri di pi\xf9",o=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r.F9&&!1===r.S$)return globalThis.__paraglide_ssr.button_discovermore1(t);let o=null!=(e=n.locale)?e:(0,r.JK)();return((0,r.fQ)("button_discovermore1",o),"it"===o)?i(t):"button_discoverMore"}},1983:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},2331:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}Object.defineProperty(t,"__esModule",{value:!0});var o={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(function(e){o[e]=new i(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,s=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(s)throw r}}return o}}(e,2)||function(e,t){if(e){if("string"==typeof e)return r(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=t[0],a=t[1];o[n]=new i(n,1,!1,a,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){o[e]=new i(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){o[e]=new i(e,2,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(e){o[e]=new i(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){o[e]=new i(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){o[e]=new i(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){o[e]=new i(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){o[e]=new i(e,5,!1,e.toLowerCase(),null,!1,!1)});var a=/[\-\:]([a-z])/g,s=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode
1-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(e){var t=e.replace(a,s);o[t]=new i(t,1,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(a,s);o[t]=new i(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(a,s);o[t]=new i(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){o[e]=new i(e,1,!1,e.toLowerCase(),null,!1,!1)}),o.xlinkHref=new i("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){o[e]=new i(e,1,!1,e.toLowerCase(),null,!0,!0)});var l=n(12910),u=l.CAMELCASE,c=l.SAME,d=l.possibleStandardNames,h=RegExp.prototype.test.bind(RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),p=Object.keys(d).reduce(function(e,t){var n=d[t];return n===c?e[t]=t:n===u?e[t.toLowerCase()]=t:e[t]=n,e},{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return o.hasOwnProperty(e)?o[e]:null},t.isCustomAttribute=h,t.possibleStandardNames=p},3126:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(55729),i=n(59716);function o(...e){return r.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{(0,i.A)(e,t)})},e)}},4140:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4769:(e,t,n)=>{"use strict";n.r(t),n.d(t,{fromUtf8:()=>o,toUtf8:()=>a});var r=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e.charCodeAt(n);if(i<128)t.push(i);else if(i<2048)t.push(i>>6|192,63&i|128);else if(n+1<e.length&&(64512&i)==55296&&(64512&e.charCodeAt(n+1))==56320){var o=65536+((1023&i)<<10)+(1023&e.charCodeAt(++n));t.push(o>>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}else t.push(i>>12|224,i>>6&63|128,63&i|128)}return Uint8Array.from(t)},i=function(e){for(var t="",n=0,r=e.length;n<r;n++){var i=e[n];i<128?t+=String.fromCharCode(i):192<=i&&i<224?t+=String.fromCharCode((31&i)<<6|63&e[++n]):240<=i&&i<365?t+=decodeURIComponent("%"+[i,e[++n],e[++n],e[++n]].map(function(e){return e.toString(16)}).join("%")):t+=String.fromCharCode((15&i)<<12|(63&e[++n])<<6|63&e[++n])}return t},o=function(e){return"function"==typeof TextEncoder?new TextEncoder().encode(e):r(e)},a=function(e){return"function"==typeof TextDecoder?new TextDecoder("utf-8").decode(e):i(e)}},4894:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(99410),i=n(1983),o=n(82299),a=n(25060),s=n(93479),l=n(32790);let u=["ownerState"],c=["variants"],d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function h(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}let p=(0,s.A)(),f=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function m({defaultTheme:e,theme:t,themeId:n}){return 0===Object.keys(t).length?e:t[n]||t}function g(e,t){let{ownerState:n}=t,o=(0,i.A)(t,u),a="function"==typeof e?e((0,r.A)({ownerState:n},o)):e;if(Array.isArray(a))return a.flatMap(e=>g(e,(0,r.A)({ownerState:n},o)));if(a&&"object"==typeof a&&Array.isArray(a.variants)){let{variants:e=[]}=a,t=(0,i.A)(a,c);return e.forEach(e=>{let i=!0;"function"==typeof e.props?i=e.props((0,r.A)({ownerState:n},o,n)):Object.keys(e.props).forEach(t=>{(null==n?void 0:n[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)}),i&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,r.A)({ownerState:n},o,n)):e.style))}),t}return a}let v=function(e={}){let{themeId:t,defaultTheme:n=p,rootShouldForwardProp:s=h,slotShouldForwardProp:u=h}=e,c=e=>(0,l.A)((0,r.A)({},e,{theme:m((0,r.A)({},e,{defaultTheme:n,themeId:t}))}));return c.__mui_systemSx=!0,(e,l={})=>{var p;let v;(0,o.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));let{name:y,slot:b,skipVariantsResolver:w,skipSx:S,overridesResolver:x=!(p=f(b))?null:(e,t)=>
1t[p]}=l,A=(0,i.A)(l,d),k=void 0!==w?w:b&&"Root"!==b&&"root"!==b||!1,E=S||!1,C=h;"Root"===b||"root"===b?C=s:b?C=u:"string"==typeof e&&e.charCodeAt(0)>96&&(C=void 0);let T=(0,o.default)(e,(0,r.A)({shouldForwardProp:C,label:v},A)),_=e=>"function"==typeof e&&e.__emotion_real!==e||(0,a.Q)(e)?i=>g(e,(0,r.A)({},i,{theme:m({theme:i.theme,defaultTheme:n,themeId:t})})):e,P=(i,...o)=>{let a=_(i),s=o?o.map(_):[];y&&x&&s.push(e=>{let i=m((0,r.A)({},e,{defaultTheme:n,themeId:t}));if(!i.components||!i.components[y]||!i.components[y].styleOverrides)return null;let o=i.components[y].styleOverrides,a={};return Object.entries(o).forEach(([t,n])=>{a[t]=g(n,(0,r.A)({},e,{theme:i}))}),x(e,a)}),y&&!k&&s.push(e=>{var i;let o=m((0,r.A)({},e,{defaultTheme:n,themeId:t}));return g({variants:null==o||null==(i=o.components)||null==(i=i[y])?void 0:i.variants},(0,r.A)({},e,{theme:o}))}),E||s.push(c);let l=s.length-o.length;if(Array.isArray(i)&&l>0){let e=Array(l).fill("");(a=[...i,...e]).raw=[...i.raw,...e]}let u=T(a,...s);return e.muiName&&(u.muiName=e.muiName),u};return T.withConfig&&(P.withConfig=T.withConfig),P}}()},4940:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>c,p0:()=>s});var r=n(1983),i=n(99410);let o=["duration","easing","delay"],a={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},s={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function l(e){return"".concat(Math.round(e),"ms")}function u(e){if(!e)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function c(e){let t=(0,i.A)({},a,e.easing),n=(0,i.A)({},s,e.duration);return(0,i.A)({getAutoHeightDuration:u,create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{duration:a=n.standard,easing:s=t.easeInOut,delay:u=0}=i;return(0,r.A)(i,o),(Array.isArray(e)?e:[e]).map(e=>"".concat(e," ").concat("string"==typeof a?a:l(a)," ").concat(s," ").concat("string"==typeof u?u:l(u))).join(",")}},e,{easing:t,duration:n})}},5284:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numToUint8=void 0,t.numToUint8=function(e){return new Uint8Array([(0xff000000&e)>>24,(0xff0000&e)>>16,(65280&e)>>8,255&e])}},5327:(e,t,n)=>{"use strict";n.d(t,{BW:()=>a,VE:()=>s,cE:()=>l});var r=n(72570),i=n(97139);let o=e=>e.replace(/style=".*?"/g,""),a=(e,t)=>{if(e)return(0,r.Ay)((0,i.sanitize)(o(e),{ADD_TAGS:["iframe"],ADD_ATTR:["allow","allowfullscreen","frameborder","scrolling"]}),t)},s=e=>null==e?void 0:e.replace(/<\/?[^>]+(>|$)/g,""),l=e=>null==e?void 0:e.replace(/[\u{1F300}-\u{1F6FF}\u{1F900}-\u{1F9FF}\u{2600}-\u{26FF}\u{2700}-\u{27BF}]+/gu,"")},5440:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=n(55729).createContext(null)},5470:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(55729),i=n(42752);let o=function(e){let t=r.useRef(e);return(0,i.A)(()=>{t.current=e}),r.useRef((...e)=>(0,t.current)(...e)).current}},5584:(e,t,n)=>{"use strict";n.d(t,{x:()=>c});var r=n(55729),i=n(3126),o=n(5470),a=n(70964),s=n(78002),l=n(6029);function u(e){return e.substring(2).toLowerCase()}function c(e){let{children:t,disableReactTree:n=!1,mouseEvent:c="onClick",onClickAway:d,touchEvent:h="onTouchEnd"}=e,p=r.useRef(!1),f=r.useRef(null),m=r.useRef(!1),g=r.useRef(!1);r.useEffect(()=>(setTimeout(()=>{m.current=!0},0),()=>{m.current=!1}),[]);let v=(0,i.A)((0,s.A)(t),f),y=(0,o.A)(e=>{let t,r=g.current;g.current=!1;let i=(0,a.A)(f.current);if(!(!m.current||!f.current||"clientX"in e&&(i.documentElement.clientWidth<e.clientX||i.documentElement.clientHeight<e.clientY))){if(p.current){p.current=!1;return}(e.composedPath?e.composedPath().indexOf(f.current)>-1:!i.documentElement.contains(e.target)||f.current.contains(e.target))||!n&&r||d(e)}}),b=e=>n=>{g.current=!0;let r=t.props[e];r&&r(n)},w={ref:v};return!1!==h&&(w[h]=b(h)),r.useEffect(()=>{if(!1!==h){let e=u(h),t=(0,a.A)(f.current),n=()=>{p.current=!0};return t.addEventListener(e,y),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,y),t.removeEventListener("touchmove",n)}}},[y,h]),!1!==c&&(w[c]=b(c)),r.useEffect(()=>{if(!1!==c){let e=u(c),t=(0,a.A)(f.current);return t.addEventListener(e,y),()=>{t.removeEventListener(e,y)}}},[y,c]),(0,l.jsx)(r.Fragment,{children:r.cloneElement(t,w)})}}
1,6033:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=n(5470).A},6421:e=>{var t,n="html",r="head",i="body",o=/<([a-zA-Z]+[0-9]?)/,a=/<head[^]*>/i,s=/<body[^]*>/i,l=function(){throw Error("This browser does not support `document.implementation.createHTMLDocument`")},u=function(){throw Error("This browser does not support `DOMParser.prototype.parseFromString`")},c="object"==typeof window&&window.DOMParser;if("function"==typeof c){var d=new c;l=u=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),d.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var h=document.implementation.createHTMLDocument();l=function(e,t){return t?h.documentElement.querySelector(t).innerHTML=e:h.documentElement.innerHTML=e,h}}var p="object"==typeof document?document.createElement("template"):{};p.content&&(t=function(e){return p.innerHTML=e,p.content.childNodes}),e.exports=function(e){var c,d,h,p,f=e.match(o);switch(f&&f[1]&&(c=f[1].toLowerCase()),c){case n:return d=u(e),!a.test(e)&&(h=d.querySelector(r))&&h.parentNode.removeChild(h),!s.test(e)&&(h=d.querySelector(i))&&h.parentNode.removeChild(h),d.querySelectorAll(n);case r:case i:if(p=(d=l(e)).querySelectorAll(c),s.test(e)&&a.test(e))return p[0].parentNode.childNodes;return p;default:if(t)return t(e);return(h=l(e,i).querySelector(i)).childNodes}}},6495:(e,t,n)=>{"use strict";n.d(t,{A:()=>H});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t));var t,n=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(n);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else n.appendChild(document.createTextNode(e));this.ctr++}
vendor: 8,828 bytes, line 1
1,t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),i=Math.abs,o=String.fromCharCode,a=Object.assign;function s(e,t,n){return e.replace(t,n)}function l(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function c(e,t,n){return e.slice(t,n)}function d(e){return e.length}function h(e,t){return t.push(e),e}var p=1,f=1,m=0,g=0,v=0,y="";function b(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:p,column:f,length:a,return:""}}function w(e,t){return a(b("",null,null,"",null,null,0),e,{length:-e.length},t)}function S(){return v=g<m?u(y,g++):0,f++,10===v&&(f=1,p++),v}function x(){return u(y,g)}function A(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function k(e){return p=f=1,m=d(y=e),g=0,[]}function E(e){var t,n;return(t=g-1,n=function e(t){for(;S();)switch(v){case t:return g;case 34:case 39:34!==t&&39!==t&&e(v);break;case 40:41===t&&e(t);break;case 92:S()}return g}(91===e?e+2:40===e?e+1:e),c(y,t,n)).trim()}var C="-ms-",T="-moz-",_="-webkit-",P="comm",M="rule",I="decl",O="@keyframes";function R(e,t){for(var n="",r=e.length,i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function D(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case I:return e.return=e.return||e.value;case P:return"";case O:return e.return=e.value+"{"+R(e.children,r)+"}";case M:e.value=e.props.join(",")}return d(n=R(e.children,r))?e.return=e.value+"{"+n+"}":""}function L(e,t,n,r,o,a,l,u,d,h,p){for(var f=o-1,m=0===o?a:[""],g=m.length,v=0,y=0,w=0;v<r;++v)for(var S=0,x=c(e,f+1,f=i(y=l[v])),A=e;S<g;++S)(A=(y>0?m[S]+" "+x:s(x,/&\f/g,m[S])).trim())&&(d[w++]=A);return b(e,t,n,0===o?M:u,d,h,p)}function j(e,t,n,r){return b(e,t,n,I,c(e,0,r),c(e,r+1,-1),r)}var U=function(e,t,n){for(var r=0,i=0;r=i,i=x(),38===r&&12===i&&(t[n]=1),!A(i);)S();return c(y,e,g)},N=function(e,t){var n=-1,r=44;do switch(A(r)){case 0:38===r&&12===x()&&(t[n]=1),e[n]+=U(g-1,t,n);break;case 2:e[n]+=E(r);break;case 4:if(44===r){e[++n]=58===x()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}while(r=S());return e},F=function(e,t){var n;return n=N(k(e),t),y="",n},B=new WeakMap,z=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||B.get(n))&&!r){B.set(e,!0);for(var i=[],o=F(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[u]):a[u]+" "+o[s]}}},$=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},V=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case I:e.return=function e(t,n){switch(45^u(t,0)?(((n<<2^u(t,0))<<2^u(t,1))<<2^u(t,2))<<2^u(t,3):0){case 5103:return _+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return _+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return _+t+T+t+C+t+t;case 6828:case 4268:return _+t+C+t+t;case 6165:return _+t+C+"flex-"+t+t;case 5187:return _+t+s(t,/(\w+).+(:[^]+)/,_+"box-$1$2"+C+"flex-$1$2")+t;case 5443:return _+t+C+"flex-item-"+s(t,/flex-|-self/,"")+t;case 4675:return _+t+C+"flex-line-pack"+s(t,/align-content|flex-|-self/,"")+t;case 5548:return _+t+C+s(t,"shrink","negative")+t;case 5292:return _+t+C+s(t,"basis","preferred-size")+t;case 6060:return _+"box-"+s(t,"-grow","")+_+t+C+s(t,"grow","positive")+t;case 4554:return _+s(t,/([^-])(transform)/g,"$1"+_+"$2")+t;case 6187:return s(s(s(t,/(zoom-|grab)/,_+"$1"),/(image-set)/,_+"$1"),t,"")+t;case 5495:case 3959:return s(t,/(image-set\([^]*)/,_+"$1$`$1");case 4968:return s(s(t,/(.+:)(flex-)?(.*)/,_+"box-pack:$3"+C+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_+t+t;case 4095:case 3583:case 4068:case 2532:return s(t,/(.+)-inline(.+)/,_+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(d(t)-1-n>6)switch(u(t,n+1)){case 109:if(45!==u(t,n+4))break;case 102:return s(t,/(.+:)(.+)-([^]+)/,"$1"+_+"$2-$3$1"+T+(108==u(t,n+3)?"$3":"$2-$3"))+t;case 115:return~l(t,"stretch")?e(s(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==u(t,n+1))break;case 6444:switch(u(t,d(t)-3-(~l(t,"!important")&&10))){case 107:return s(t,":",":"+_)+t;case 101:return s(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+_+(45===u(t,14)?"inline-":"")+"box$3$1"+_+"$2$3$1"+C+"$2box$3")+t}break;case 5936:switch(u(t,n+11)){case 114:return _+t+C+s(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return _+t+C+s(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return _+t+C+s(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return _+t+C+t+t}return t}(e.value,e.length);break;case O:return R([w(e,{value:s(e.value,"@","@"+_)})],r);case M:if(e.length){var i,o;return i=e.props,o=function(t){var n;switch(n=t,(n=/(::plac\w+|:read-\w+)/.exec(n))?n[0]:n){case":read-only":case":read-write":return R([w(e,{props:[s(t,/:(read-\w+)/,":"+T+"$1")]})],r);case"::placeholder":return R([w(e,{props:[s(t,/:(plac\w+)/,":"+_+"input-$1")]}),w(e,{props:[s(t,/:(plac\w+)/,":"+T+"$1")]}),w(e,{props:[s(t,/:(plac\w+)/,C+"input-$1")]})],r)}return""},i.map(o).join("")}}}],H=function(e){var t,n,i,a,m,w=e.key;if("css"===w){var C=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(C,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var T=e.stylisPlugins||V,_={},M=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+w+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)_[t[n]]=!0;M.push(e)});var I=(n=(t=[z,$].concat(T,[D,(i=function(e){m.insert(e)},function(e){!e.root&&(e=e.return)&&i(e)})])).length,function(e,r,i,o){for(var a="",s=0;s<n;s++)a+=t[s](e,r,i,o)||"";return a}),O=function(e){var t,n;return R((n=function e(t,n,r,i,a,m,w,k,C){for(var T,_=0,M=0,I=w,O=0,R=0,D=0,U=1,N=1,F=1,B=0,z="",$=a,V=m,H=i,W=z;N;)switch(D=B,B=S()){case 40:if(108!=D&&58==u(W,I-1)){-1!=l(W+=s(E(B),"&","&\f"),"&\f")&&(F=-1);break}case 34:case 39:case 91:W+=E(B);break;case 9:case 10:case 13:case 32:W+=function(e){for(;v=x();)if(v<33)S();else break;return A(e)>2||A(v)>3?"":" "}(D);break;case 92:W+=function(e,t){for(var n;--t&&S()&&!(v<48)&&!(v>102)&&(!(v>57)||!(v<65))&&(!(v>70)||!(v<97)););return n=g+(t<6&&32==x()&&32==S()),c(y,e,n)}(g-1,7);continue;case 47:switch(x()){case 42:case 47:h((T=function(e,t){for(;S();)if(e+v===57)break;else if(e+v===84&&47===x())break;return"/*"+c(y,t,g-1)+"*"+o(47===e?e:S())}(S(),g),b(T,n,r,P,o(v),c(T,2,-2),0)),C);break;default:W+="/"}break;case 123*U:k[_++]=d(W)*F;case 125*U:case 59:case 0:switch(B){case 0:case 125:N=0;case 59+M:-1==F&&(W=s(W,/\f/g,"")),R>0&&d(W)-I&&h(R>32?j(W+";",i,r,I-1):j(s(W," ","")+";",i,r,I-2),C);break;case 59:W+=";";default:if(h(H=L(W,n,r,_,M,a,k,z,$=[],V=[],I),m),123===B)if(0===M)e(W,n,H,H,$,m,I,k,V);else switch(99===O&&110===u(W,3)?100:O){case 100:case 108:case 109:case 115:e(t,H,H,i&&h(L(t,H,H,0,0,a,k,z,a,$=[],I),V),a,V,I,k,i?$:V);break;default:e(W,H,H,H,[""],V,0,k,V)}}_=M=R=0,U=F=1,z=W="",I=w;break;case 58:I=1+d(W),R=D;default:if(U<1){if(123==B)--U;else if(125==B&&0==U++&&125==(v=g>0?u(y,--g):0,f--,10===v&&(f=1,p--),v))continue}switch(W+=o(B),B*U){case 38:F=M>0?1:(W+="\f",-1);break;case 44:k[_++]=(d(W)-1)*F,F=1;break;case 64:45===x()&&(W+=E(S())),O=x(),M=I=d(z=W+=function(e){for(;!A(x());)S();return c(y,e,g)}(g)),B++;break;case 45:45===D&&2==d(W)&&(U=0)}}return m}("",null,null,null,[""],t=k(t=e),0,[0],t),y="",n),I)},U={key:w,sheet:new r({key:w,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:_,registered:{},insert:function(e,t,n,r){m=n,O(e?e+"{"+t.styles+"}":t.styles),r&&(U.inserted[t.name]=!0)}};return U.sheet.hydrate(M),U}},6580:(e,t,n)=>{"use strict";n.d(t,{Dp:()=>O,YB:()=>A,_8:()=>U,CA:()=>I,K1:()=>k,YV:()=>z,kY:()=>$});var r=n(55729);let i=!1,o=[],a=e=>new Promise((t,n)=>{if(typeof window>"u"||(window.storyblokRegisterEvent=e=>{if(window.location===window.parent.location)return void console.warn("You are not in Draft Mode or in the Visual Editor.");i?e():o.push(e)},document.getElementById("storyblok-javascript-bridge")))return;let r=document.createElement("script");r.async=!0,r.src=e,r.id="storyblok-javascript-bridge",r.onerror=e=>n(e),r.onload=e=>
1{o.forEach(e=>e()),i=!0,t(e)},document.getElementsByTagName("head")[0].appendChild(r)});var s=Object.defineProperty,l=(e,t,n)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,u=(e,t,n)=>(l(e,"symbol"!=typeof t?t+"":t,n),n);function c(e){return e==e&&e!==1/0&&e!==-1/0}class d{constructor(){u(this,"isCDNUrl",(e="")=>e.indexOf("/cdn/")>-1),u(this,"getOptionsPage",(e,t=25,n=1)=>({...e,per_page:t,page:n})),u(this,"delay",e=>new Promise(t=>setTimeout(t,e))),u(this,"arrayFrom",(e=0,t)=>[...Array(e)].map(t)),u(this,"range",(e=0,t=e)=>{let n=Math.abs(t-e)||0,r=e<t?1:-1;return this.arrayFrom(n,(t,n)=>n*r+e)}),u(this,"asyncMap",async(e,t)=>Promise.all(e.map(t))),u(this,"flatMap",(e=[],t)=>e.map(t).reduce((e,t)=>[...e,...t],[])),u(this,"escapeHTML",function(e){let t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},n=/[&<>"']/g,r=RegExp(n.source);return e&&r.test(e)?e.replace(n,e=>t[e]):e})}stringify(e,t,n){let r=[];for(let i in e){let o;if(!Object.prototype.hasOwnProperty.call(e,i))continue;let a=e[i],s=n?"":encodeURIComponent(i);o="object"==typeof a?this.stringify(a,t?t+encodeURIComponent("["+s+"]"):s,Array.isArray(a)):(t?t+encodeURIComponent("["+s+"]"):s)+"="+encodeURIComponent(a),r.push(o)}return r.join("&")}getRegionURL(e){switch(e){case"us":return"api-us.storyblok.com";case"cn":return"app.storyblokchina.cn";default:return"api.storyblok.com"}}}let h=function(e,t){let n={};for(let r in e){let i=e[r];t.indexOf(r)>-1&&null!==i&&(n[r]=i)}return n},p=e=>"email"===e,f={nodes:{horizontal_rule:()=>({singleTag:"hr"}),blockquote:()=>({tag:"blockquote"}),bullet_list:()=>({tag:"ul"}),code_block:e=>({tag:["pre",{tag:"code",attrs:e.attrs}]}),hard_break:()=>({singleTag:"br"}),heading:e=>({tag:`h${e.attrs.level}`}),image:e=>({singleTag:[{tag:"img",attrs:h(e.attrs,["src","alt","title"])}]}),list_item:()=>({tag:"li"}),ordered_list:()=>({tag:"ol"}),paragraph:()=>({tag:"p"}),emoji:e=>({tag:[{tag:"span",attrs:{"data-type":"emoji","data-name":e.attrs.name,emoji:e.attrs.emoji}}]})},marks:{bold:()=>({tag:"b"}),strike:()=>({tag:"strike"}),underline:()=>({tag:"u"}),strong:()=>({tag:"strong"}),code:()=>({tag:"code"}),italic:()=>({tag:"i"}),link:e=>{let t=new d().escapeHTML,n={...e.attrs},{linktype:r="url"}=e.attrs;if(n.href&&(n.href=t(e.attrs.href||"")),p(r)&&(n.href=`mailto:${n.href}`),n.anchor&&(n.href=`${n.href}#${n.anchor}`,delete n.anchor),n.custom){for(let e in n.custom)n[e]=n.custom[e];delete n.custom}return{tag:[{tag:"a",attrs:n}]}},styled:e=>({tag:[{tag:"span",attrs:e.attrs}]}),subscript:()=>({tag:"sub"}),superscript:()=>({tag:"sup"}),anchor:e=>({tag:[{tag:"span",attrs:e.attrs}]}),highlight:e=>{var t;return null!=(t=e.attrs)&&t.color?{tag:[{tag:"span",attrs:{style:`background-color:${e.attrs.color};`}}]}:{tag:""}},textStyle:e=>{var t;return null!=(t=e.attrs)&&t.color?{tag:[{tag:"span",attrs:{style:`color:${e.attrs.color}`}}]}:{tag:""}}}},m=function(e){let t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},n=/[&<>"']/g,r=RegExp(n.source);return e&&r.test(e)?e.replace(n,e=>t[e]):e};class g{constructor(e){u(this,"marks"),u(this,"nodes"),e||(e=f),this.marks=e.marks||[],this.nodes=e.nodes||[]}addNode(e,t){this.nodes[e]=t}addMark(e,t){this.marks[e]=t}render(e,t={optimizeImages:!1}){if(e&&e.content&&Array.isArray(e.content)){let n="";return e.content.forEach(e=>{n+=this.renderNode(e)}),t.optimizeImages?this.optimizeImages(n,t.optimizeImages):n}return console.warn(`The render method must receive an Object with a "content" field.
2			The "content" field must be an array of nodes as the type ISbRichtext.
3			ISbRichtext:
4				content?: ISbRichtext[]
5				marks?: ISbRichtext[]
6				attrs?: any
7				text?: string
8				type: string
9				
10				Example:
11				{
12					content: [
13						{
14							content: [
15								{
16									text: 'Hello World',
17									type: 'text'
18								}
19							],
20							type: 'paragraph'
21						}
22					],
23					type: 'doc'
24				}`),""}optimizeImages(e,t){let n=0,r=0,i="",o="";"boolean"!=typeof t&&("number"==typeof t.width&&t.width>0&&(i+=`width="${t.width}" `,n=t.width),"number"==typeof t.height&&t.height>0&&(i+=`height="${t.height}" `,r=t.height),("lazy"===t.loading||"eager"===t.loading)&&(i+=`loading="${t.loading}" `),"string"==typeof t.class&&t.class.length>0&&(i+=`class="${t.class}" `),t.filters&&("number"==typeof t.filters.blur&&t.filters.blur>=0&&t.filters.blur<=100&&(o+=`:blur(${t.filters.blur})`),"number"==typeof t.filters.brightness&&t.filters.brightness>=-100&&t.filters.brightness<=100&&(o+=`:brightness(${t.filters.brightness})`),t.filters.fill&&(t.filters.fill.match(/[0-9A-Fa-f]{6}/g)||"transparent"===t.filters.fill)&&(o+=`:fill(${t.filters.fill})`),t.filters.format&&["webp","png","jpeg"].includes(t.filters.format)&&(o+=`:format(${t.filters.format})`),"boolean"==typeof t.filters.grayscale&&t.filters.grayscale&&(o+=":grayscale()"),"number"==typeof t.filters.quality&&t.filters.quality>=0&&t.filters.quality<=100&&(o+=`:quality(${t.filters.quality})`),t.filters.rotate&&[90,180,270].includes(t.filters.rotate)&&(o+=`:rotate(${t.filters.rotate})`),o.length>0&&(o="/filters"+o))),i.length>0&&(e=e.replace(/<img/g,`<img ${i.trim()}`));let a=n>0||r>0||o.length>0?`${n}x${r}${o}`:"";return e=e.replace(/a.storyblok.com\/f\/(\d+)\/([^.]+)\.(gif|jpg|jpeg|png|tif|tiff|bmp)/g,`a.storyblok.com/f/$1/$2.$3/m/${a}`),"boolean"!=typeof t&&(t.sizes||t.srcset)&&(e=e.replace(/<img.*?src=["|'](.*?)["|']/g,e=>{var n,r;let i=e.match(/a.storyblok.com\/f\/(\d+)\/([^.]+)\.(gif|jpg|jpeg|png|tif|tiff|bmp)/g);if(i&&i.length>0){let a={srcset:null==(n=t.srcset)?void 0:n.map(e=>{if("number"==typeof e)return`//${i}/m/${e}x0${o} ${e}w`;if("object"==typeof e&&2===e.length){let t=0,n=0;return"number"==typeof e[0]&&(t=e[0]),"number"==typeof e[1]&&(n=e[1]),`//${i}/m/${t}x${n}${o} ${t}w`}}).join(", "),sizes:null==(r=t.sizes)?void 0:r.map(e=>e).join(", ")},s="";return a.srcset&&(s+=`srcset="${a.srcset}" `),a.sizes&&(s+=`sizes="${a.sizes}" `),e.replace(/<img/g,`<img ${s.trim()}`)}return e})),e}renderNode(e){let t=[];
24e.marks&&e.marks.forEach(e=>{let n=this.getMatchingMark(e);n&&""!==n.tag&&t.push(this.renderOpeningTag(n.tag))});let n=this.getMatchingNode(e);return n&&n.tag&&t.push(this.renderOpeningTag(n.tag)),e.content?e.content.forEach(e=>{t.push(this.renderNode(e))}):e.text?t.push(m(e.text)):n&&n.singleTag?t.push(this.renderTag(n.singleTag," /")):n&&n.html?t.push(n.html):"emoji"===e.type&&t.push(this.renderEmoji(e)),n&&n.tag&&t.push(this.renderClosingTag(n.tag)),e.marks&&e.marks.slice(0).reverse().forEach(e=>{let n=this.getMatchingMark(e);n&&""!==n.tag&&t.push(this.renderClosingTag(n.tag))}),t.join("")}renderTag(e,t){return e.constructor===String?`<${e}${t}>`:e.map(e=>{if(e.constructor===String)return`<${e}${t}>`;{let n=`<${e.tag}`;if(e.attrs)for(let t in e.attrs){let r=e.attrs[t];null!==r&&(n+=` ${t}="${r}"`)}return`${n}${t}>`}}).join("")}renderOpeningTag(e){return this.renderTag(e,"")}renderClosingTag(e){return e.constructor===String?`</${e}>`:e.slice(0).reverse().map(e=>e.constructor===String?`</${e}>`:`</${e.tag}>`).join("")}getMatchingNode(e){let t=this.nodes[e.type];if("function"==typeof t)return t(e)}getMatchingMark(e){let t=this.marks[e.type];if("function"==typeof t)return t(e)}renderEmoji(e){if(e.attrs.emoji)return e.attrs.emoji;let t=[{tag:"img",attrs:{src:e.attrs.fallbackImage,draggable:"false",loading:"lazy",align:"absmiddle"}}];return this.renderTag(t," /")}}class v{constructor(e){u(this,"baseURL"),u(this,"timeout"),u(this,"headers"),u(this,"responseInterceptor"),u(this,"fetch"),u(this,"ejectInterceptor"),u(this,"url"),u(this,"parameters"),this.baseURL=e.baseURL,this.headers=e.headers||new Headers,this.timeout=null!=e&&e.timeout?1e3*e.timeout:0,this.responseInterceptor=e.responseInterceptor,this.fetch=(...t)=>e.fetch?e.fetch(...t):fetch(...t),this.ejectInterceptor=!1,this.url="",this.parameters={}}get(e,t){return this.url=e,this.parameters=t,this._methodHandler("get")}post(e,t){return this.url=e,this.parameters=t,this._methodHandler("post")}put(e,t){return this.url=e,this.parameters=t,this._methodHandler("put")}delete(e,t){return this.url=e,this.parameters=t,this._methodHandler("delete")}async _responseHandler(e){let t=[],n={data:{},headers:{},status:0,statusText:""};for(let r of(204!==e.status&&await e.json().then(e=>{n.data=e}),e.headers.entries()))t[r[0]]=r[1];return n.headers={...t},n.status=e.status,n.statusText=e.statusText,n}async _methodHandler(e){let t,n=`${this.baseURL}${this.url}`,r=null;if("get"===e){let e=new d;n=`${this.baseURL}${this.url}?${e.stringify(this.parameters)}`}else r=JSON.stringify(this.parameters);let i=new URL(n),o=new AbortController,{signal:a}=o;this.timeout&&(t=setTimeout(()=>o.abort(),this.timeout));try{let n=await this.fetch(`${i}`,{method:e,headers:this.headers,body:r,signal:a});this.timeout&&clearTimeout(t);let o=await this._responseHandler(n);return this.responseInterceptor&&!this.ejectInterceptor?this._statusHandler(this.responseInterceptor(o)):this._statusHandler(o)}catch(e){return{message:e}}}eject(){this.ejectInterceptor=!0}_statusHandler(e){let t=/20[0-6]/g;return new Promise(n=>{if(t.test(`${e.status}`))return n(e);throw Error(JSON.stringify({message:e.statusText,status:e.status,response:Array.isArray(e.data)?e.data[0]:e.data.error||e.data.slug}))})}}let y="SB-Agent",b={defaultAgentName:"SB-JS-CLIENT",defaultAgentVersion:"SB-Agent-Version",packageVersion:"5.14.2"},w={},S={};class x{constructor(e,t){u(this,"client"),u(this,"maxRetries"),u(this,"throttle"),u(this,"accessToken"),u(this,"cache"),u(this,"helpers"),u(this,"resolveCounter"),u(this,"relations"),u(this,"links"),u(this,"richTextResolver"),u(this,"resolveNestedRelations");let n=e.endpoint||t;if(!n){let t=new d().getRegionURL,r=!1===e.https?"http":"https";n=e.oauthToken?`${r}://${t(e.region)}/v1`:`${r}://${t(e.region)}/v2`}let r=new Headers;if(r.set("Content-Type","application/json"),r.set("Accept","application/json"),e.headers)for(let t in e.headers)r.set(t,e.headers[t]);r.has(y)||(r.set(y,b.defaultAgentName),r.set(b.defaultAgentVersion,b.packageVersion));let i=5;e.oauthToken&&(r.set("Authorization",e.oauthToken),i=3),e.rateLimit&&(i=e.rateLimit),e.richTextSchema?this.richTextResolver=new g(e.richTextSchema):this.richTextResolver=new g,e.componentResolver&&this.setComponentResolver(e.componentResolver),this.maxRetries=e.maxRetries||5,this.throttle=function(e,t,n){if(!c(t))throw TypeError("Expected `limit` to be a finite number");if(!c(1e3))throw TypeError("Expected `interval` to be a finite number");let r=[],i=[],o=0,a=function(){o++;let t=setTimeout(function(){o--,r.length>0&&a(),i=i.filter(function(e){return e!==t})},1e3);0>i.indexOf(t)&&i.push(t);let n=r.shift();n.resolve(e.apply(n.self,n.args))},s=function(...e){let n=this;return new Promise(function(i,s){r.push({resolve:i,reject:s,args:e,self:n}),o<t&&a()})};
24return s.abort=function(){i.forEach(clearTimeout),i=[],r.forEach(function(e){e.reject(function(){Error.call(this,"Throttled function aborted"),this.name="AbortError"})}),r.length=0},s}(this.throttledRequest,i,1e3),this.accessToken=e.accessToken||"",this.relations={},this.links={},this.cache=e.cache||{clear:"manual"},this.helpers=new d,this.resolveCounter=0,this.resolveNestedRelations=e.resolveNestedRelations||!0,this.client=new v({baseURL:n,timeout:e.timeout||0,headers:r,responseInterceptor:e.responseInterceptor,fetch:e.fetch})}setComponentResolver(e){this.richTextResolver.addNode("blok",t=>{let n="";return t.attrs.body&&t.attrs.body.forEach(t=>{n+=e(t.component,t)}),{html:n}})}parseParams(e){return e.version||(e.version="published"),e.token||(e.token=this.getToken()),e.cv||(e.cv=S[e.token]),Array.isArray(e.resolve_relations)&&(e.resolve_relations=e.resolve_relations.join(",")),e}factoryParamOptions(e,t){return this.helpers.isCDNUrl(e)?this.parseParams(t):t}makeRequest(e,t,n,r){let i=this.factoryParamOptions(e,this.helpers.getOptionsPage(t,n,r));return this.cacheResponse(e,i)}get(e,t){t||(t={});let n=`/${e}`,r=this.factoryParamOptions(n,t);return this.cacheResponse(n,r)}async getAll(e,t,n){let r=(null==t?void 0:t.per_page)||25,i=`/${e}`,o=i.split("/"),a=n||o[o.length-1],s=await this.makeRequest(i,t,r,1),l=s.total?Math.ceil(s.total/r):1,u=await this.helpers.asyncMap(this.helpers.range(1,l),e=>this.makeRequest(i,t,r,e+1));return this.helpers.flatMap([s,...u],e=>Object.values(e.data[a]))}post(e,t){let n=`/${e}`;return Promise.resolve(this.throttle("post",n,t))}put(e,t){let n=`/${e}`;return Promise.resolve(this.throttle("put",n,t))}delete(e,t){let n=`/${e}`;return Promise.resolve(this.throttle("delete",n,t))}getStories(e){return this.get("cdn/stories",e)}getStory(e,t){return this.get(`cdn/stories/${e}`,t)}getToken(){return this.accessToken}ejectInterceptor(){this.client.eject()}_cleanCopy(e){return JSON.parse(JSON.stringify(e))}_insertLinks(e,t,n){let r=e[t];r&&"multilink"==r.fieldtype&&"story"==r.linktype&&"string"==typeof r.id&&this.links[n][r.id]?r.story=this._cleanCopy(this.links[n][r.id]):r&&"story"===r.linktype&&"string"==typeof r.uuid&&this.links[n][r.uuid]&&(r.story=this._cleanCopy(this.links[n][r.uuid]))}_insertRelations(e,t,n,r){if(n.indexOf(`${e.component}.${t}`)>-1){if("string"==typeof e[t])this.relations[r][e[t]]&&(e[t]=this._cleanCopy(this.relations[r][e[t]]));else if(e[t]&&e[t].constructor===Array){let n=[];e[t].forEach(e=>{this.relations[r][e]&&n.push(this._cleanCopy(this.relations[r][e]))}),e[t]=n}}}iterateTree(e,t,n){let r=e=>{if(null!=e){if(e.constructor===Array)for(let t=0;t<e.length;t++)r(e[t]);else if(e.constructor===Object){if(e._stopResolving)return;for(let i in e)(e.component&&e._uid||"link"===e.type)&&(this._insertRelations(e,i,t,n),this._insertLinks(e,i,n)),r(e[i])}}};r(e.content)}async resolveLinks(e,t,n){let r=[];if(e.link_uuids){let n=e.link_uuids.length,i=[];for(let t=0;t<n;t+=50){let r=Math.min(n,t+50);i.push(e.link_uuids.slice(t,r))}for(let e=0;e<i.length;
24e++)(await this.getStories({per_page:50,language:t.language,version:t.version,by_uuids:i[e].join(",")})).data.stories.forEach(e=>{r.push(e)})}else r=e.links;r.forEach(e=>{this.links[n][e.uuid]={...e,_stopResolving:!0}})}async resolveRelations(e,t,n){let r=[];if(e.rel_uuids){let n=e.rel_uuids.length,i=[];for(let t=0;t<n;t+=50){let r=Math.min(n,t+50);i.push(e.rel_uuids.slice(t,r))}for(let e=0;e<i.length;e++)(await this.getStories({per_page:50,language:t.language,version:t.version,by_uuids:i[e].join(",")})).data.stories.forEach(e=>{r.push(e)})}else r=e.rels;r&&r.length>0&&r.forEach(e=>{this.relations[n][e.uuid]={...e,_stopResolving:!0}})}async resolveStories(e,t,n){var r,i;let o=[];if(this.links[n]={},this.relations[n]={},"u">typeof t.resolve_relations&&t.resolve_relations.length>0&&("string"==typeof t.resolve_relations&&(o=t.resolve_relations.split(",")),await this.resolveRelations(e,t,n)),t.resolve_links&&["1","story","url","link"].indexOf(t.resolve_links)>-1&&(null!=(r=e.links)&&r.length||null!=(i=e.link_uuids)&&i.length)&&await this.resolveLinks(e,t,n),this.resolveNestedRelations)for(let e in this.relations[n])this.iterateTree(this.relations[n][e],o,n);e.story?this.iterateTree(e.story,o,n):e.stories.forEach(e=>{this.iterateTree(e,o,n)}),delete this.links[n],delete this.relations[n]}async cacheResponse(e,t,n){(typeof n>"u"||!n)&&(n=0);let r=this.helpers.stringify({url:e,params:t}),i=this.cacheProvider();if("auto"===this.cache.clear&&"draft"===t.version&&await this.flushCache(),"published"===t.version&&"/cdn/spaces/me"!=e){let e=await i.get(r);if(e)return Promise.resolve(e)}return new Promise(async(o,a)=>{var s;try{let n=await this.throttle("get",e,t);if(200!==n.status)return a(n);let l={data:n.data,headers:n.headers};if(null!=(s=n.headers)&&s["per-page"]&&(l=Object.assign({},l,{perPage:n.headers["per-page"]?parseInt(n.headers["per-page"]):0,total:n.headers["per-page"]?parseInt(n.headers.total):0})),l.data.story||l.data.stories){let e=this.resolveCounter=++this.resolveCounter%1e3;await this.resolveStories(l.data,t,`${e}`)}return"published"===t.version&&"/cdn/spaces/me"!=e&&await i.set(r,l),l.data.cv&&t.token&&("draft"==t.version&&S[t.token]!=l.data.cv&&await this.flushCache(),S[t.token]=l.data.cv),o(l)}catch(r){if(r.response&&429===r.response.status&&(n=n?n+1:0)<this.maxRetries)return console.log(`Hit rate limit. Retrying in ${n} seconds.`),await this.helpers.delay(1e3*n),this.cacheResponse(e,t,n).then(o).catch(a);a(r.message)}})}throttledRequest(e,t,n){return this.client[e](t,n)}cacheVersions(){return S}cacheVersion(){return S[this.accessToken]}setCacheVersion(e){this.accessToken&&(S[this.accessToken]=e)}cacheProvider(){switch(this.cache.type){case"memory":return{get:e=>Promise.resolve(w[e]),getAll:()=>Promise.resolve(w),set:(e,t)=>(w[e]=t,Promise.resolve(void 0)),flush:()=>(w={},Promise.resolve(void 0))};case"custom":if(this.cache.custom)return this.cache.custom;default:return{get:()=>Promise.resolve(void 0),getAll:()=>Promise.resolve(void 0),set:()=>Promise.resolve(void 0),flush:()=>Promise.resolve(void 0)}}}async flushCache(){return await this.cacheProvider().flush(),this}}let A=(e={})=>{let{apiOptions:t}=e;return t.accessToken?{storyblokApi:new x(t)}:void console.error("You need to provide an access token to interact with Storyblok API. Read https://www.storyblok.com/docs/api/content-delivery#topics/authentication")},k=e=>{if("object"!=typeof e||typeof e._editable>"u")return{};let t=JSON.parse(e._editable.replace(/^<!--#storyblok#/,"").replace(/-->$/,""));return t?{"data-blok-c":JSON.stringify(t),"data-blok-uid":t.id+"-"+t.uid}:{}},E,C="https://app.storyblok.com/f/storyblok-v2-latest.js",T=(e,t,n={})=>{var r;let i=!(typeof window>"u")&&"u">typeof window.storyblokRegisterEvent,o=+new URL(null==(r=window.location)?void 0:r.href).searchParams.get("_storyblok")===e;if(!(!i||!o)){if(!e)return void console.warn("Story ID is not defined. Please provide a valid ID.");window.storyblokRegisterEvent(()=>{new window.StoryblokBridge(n).on(["input","published","change"],n=>{"input"===n.action&&n.story.id===e?t(n.story):("change"===n.action||"published"===n.action)&&n.storyId===e&&window.location.reload()})})}},_=(e={})=>{var t,n;let{bridge:r,accessToken:i,use:o=[],apiOptions:s={},richText:l={},bridgeUrl:u}=e;s.accessToken=s.accessToken||i;let c={bridge:r,apiOptions:s},d={};
24o.forEach(e=>{d={...d,...e(c)}}),u&&(C=u);let h=!(typeof window>"u")&&(null==(n=null==(t=window.location)?void 0:t.search)?void 0:n.includes("_storyblok_tk"));return!1!==r&&h&&a(C),E=new g(l.schema),l.resolver&&P(E,l.resolver),d},P=(e,t)=>{e.addNode("blok",e=>{let n="";return e.attrs.body.forEach(e=>{n+=t(e.component,e)}),{html:n}})},M=e=>!e||!(null!=e&&e.content.some(e=>e.content||"blok"===e.type||"horizontal_rule"===e.type)),I=(e,t,n)=>{let r=n||E;return r?M(e)?"":(t&&(r=new g(t.schema),t.resolver&&P(r,t.resolver)),r.render(e)):void console.error("Please initialize the Storyblok SDK before calling the renderRichText function")},O=(0,r.forwardRef)(({blok:e,...t},n)=>{if(!e)return console.error("Please provide a 'blok' property to the StoryblokComponent"),r.createElement("div",null,"Please provide a blok property to the StoryblokComponent");let i=N(e.component);if(i)return r.createElement(i,{ref:n,blok:e,...t});if(F()){let n=B();return n?r.createElement(n,{blok:e,...t}):r.createElement(r.Fragment,null,r.createElement("p",null,"Component could not be found for blok"," ",r.createElement("strong",null,e.component),"! Is it configured correctly?"))}return r.createElement("div",null)});O.displayName="StoryblokComponent";let R=null,D={},L=!1,j=null,U=()=>(R||console.error("You can't use getStoryblokApi if you're not loading apiPlugin."),R),N=e=>D[e]?D[e]:(console.error(`Component ${e} doesn't exist.`),!1),F=()=>L,B=()=>j,z=(e={})=>{let{storyblokApi:t}=_(e);R=t,D=e.components,L=e.enableFallbackComponent,j=e.customFallbackComponent},$=(e=null,t={})=>{let[n,i]=(0,r.useState)(e),o="u">typeof window&&"u">typeof window.storyblokRegisterEvent;return(0,r.useEffect)(()=>{if(!o||!e)return;let r=n.internalId||n.id;i(e),T(r,e=>i(e),t)},[e,o,n]),o&&e?n:e}},6587:(e,t,n)=>{"use strict";function r(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function i(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach(n=>{void 0===e[n]?e[n]=t[n]:r(t[n])&&r(e[n])&&Object.keys(t[n]).length>0&&i(e[n],t[n])})}n.d(t,{a:()=>l,g:()=>a});let o={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 a(){let e="undefined"!=typeof document?document:{};return i(e,o),e}let s={document:o,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function l(){let e="undefined"!=typeof window?window:{};return i(e,s),e}},7021:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"}},7206:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(6029),i=n(26927),o=n(87755),a=n(5327),s=n(72570),l=n(46800);n(55729);var u=n(31607),c=n(67757);let d=e=>{let{text:t}=e;return t=t.replace(/<p><iframe/g,"<iframe").replace(/<\/iframe><\/p>/g,"</iframe>"),(0,r.jsx)(r.Fragment,{children:(0,a.BW)(t,h)})},h={replace:e=>{if("text"===e.type){let{parent:t}=e;return(null==t?void 0:t.type)==="tag"&&(null==t?void 0:t.name)==="li"?(0,r.jsx)(l.A,{component:"span",variant:"bodyL",children:e.data}):null}let{name:t,attribs:n,children:a}=e;switch(t){case"br":return(0,r.jsx)("br",{});case"h1":return(0,r.jsx)(l.A,{mt:i.A.spacing(64),mb:i.A.spacing(24),variant:"h1",component:"h1",children:(0,s.zd)(a,h)});case"h2":return(0,r.jsx)(l.A,{mt:i.A.spacing(64),mb:i.A.spacing(24),variant:"h2",component:"h2",children:(0,s.zd)(a,h)});case"h3":return(0,r.jsx)(l.A,{mt:i.A.spacing(64),mb:i.A.spacing(24),variant:"h3",component:"h3",children:(0,s.zd)(a,h)});case"h4":return(0,r.jsx)(l.A,{mt:i.A.spacing(64),mb:i.A.spacing(24),variant:"h4",component:"h4",children:(0,s.zd)(a,h)});case"h5":return(0,r.jsx)(l.A,{mt:i.A.spacing(64),mb:i.A.spacing(24),variant:"h5",component:"h5",children:(0,s.zd)(a,h)});case"h6":return(0,r.jsx)(l.A,{mt:i.A.spacing(64),mb:i.A.spacing(24),variant:"h6",component:"h6",children:(0,s.zd)(a,h)});case"p":return(0,r.jsx)(l.A,{variant:"leadP",component:"p",sx:{"&:not(:last-of-type)":{mb:i.A.spacing(24)}},children:(0,s.zd)(a,h)});case"i":case"em":return(0,r.jsx)(l.A,{component:"em",fontStyle:"italic",fontSize:"inherit",children:(0,s.zd)(a,h)});case"b":case"strong":return(0,r.jsx)(l.A,{component:"strong",fontWeight:700,fontSize:"inherit",children:(0,s.zd)(a,h)});case"ul":return(0,r.jsx)(o.A,{component:"ul",pl:i.A.spacing(20),my:i.A.spacing(40),children:(0,s.zd)(a,h)});case"ol":return(0,r.jsx)(o.A,{component:"ol",pl:i.A.spacing(20),my:i.A.spacing(40),children:(0,s.zd)(a,h)});case"li":return(0,r.jsx)("li",{children:(0,s.zd)(a,h)});case"iframe":return(0,r.jsx)(o.A,{component:"iframe",border:"none",loading:"lazy",...n,style:{width:"100%",border:0,minHeight:i.A.spacing(600)}});case"a":let{href:d,target:p,rel:f}=n;return(0,r.jsx)(u.A,{component:"a",variant:"text",color:"secondary",sx:{verticalAlign:"baseline",fontSize:"inherit"},rel:f,href:(0,c.cY)(d),target:p,children:(0,s.zd)(a,h)});case"img":let{src:m,alt:g}=n;return(0,r.jsx)(o.A,{style:{height:i.A.spacing(570),position:"relative",display:"block"},component:"span",children:(0,r.jsx)("img",{src:m,alt:g,style:{objectFit:"contain"}})});default:return null}}}},7836:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(22538)}
24,8289:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(99410),i=n(1983),o=n(55729),a=n(50212),s=n(17582),l=n(50787),u=n(52526),c=n(37597),d=n(16492),h=n(46720);function p(e){return(0,h.Ay)("MuiIcon",e)}(0,d.A)("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var f=n(6029);let m=["baseClassName","className","color","component","fontSize"],g=e=>{let{color:t,fontSize:n,classes:r}=e,i={root:["root","inherit"!==t&&"color".concat((0,c.A)(t)),"fontSize".concat((0,c.A)(n))]};return(0,s.A)(i,p,r)},v=(0,l.Ay)("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t["color".concat((0,c.A)(n.color))],t["fontSize".concat((0,c.A)(n.fontSize))]]}})(e=>{let{theme:t,ownerState:n}=e;return{userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:({inherit:"inherit",small:t.typography.pxToRem(20),medium:t.typography.pxToRem(24),large:t.typography.pxToRem(36)})[n.fontSize],color:({primary:(t.vars||t).palette.primary.main,secondary:(t.vars||t).palette.secondary.main,info:(t.vars||t).palette.info.main,success:(t.vars||t).palette.success.main,warning:(t.vars||t).palette.warning.main,action:(t.vars||t).palette.action.active,error:(t.vars||t).palette.error.main,disabled:(t.vars||t).palette.action.disabled,inherit:void 0})[n.color]}}),y=o.forwardRef(function(e,t){let n=(0,u.b)({props:e,name:"MuiIcon"}),{baseClassName:o="material-icons",className:s,color:l="inherit",component:c="span",fontSize:d="medium"}=n,h=(0,i.A)(n,m),p=(0,r.A)({},n,{baseClassName:o,color:l,component:c,fontSize:d}),y=g(p);return(0,f.jsx)(v,(0,r.A)({as:c,className:(0,a.A)(o,"notranslate",y.root,s),ownerState:p,"aria-hidden":!0,ref:t},h))});y.muiName="Icon";let b=y},8563:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});let r=e=>e},9221:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:()=>o,__asyncDelegator:()=>w,__asyncGenerator:()=>b,__asyncValues:()=>S,__await:()=>y,__awaiter:()=>c,__classPrivateFieldGet:()=>E,__classPrivateFieldSet:()=>C,__createBinding:()=>h,__decorate:()=>s,__exportStar:()=>p,__extends:()=>i,__generator:()=>d,__importDefault:()=>k,__importStar:()=>
24A,__makeTemplateObject:()=>x,__metadata:()=>u,__param:()=>l,__read:()=>m,__rest:()=>a,__spread:()=>g,__spreadArrays:()=>v,__values:()=>f});var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function s(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function l(e,t){return function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function d(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){var l=[o,s];if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&l[0]?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){a.label=l[1];break}if(6===l[0]&&a.label<i[1]){a.label=i[1],i=l;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(l);break}i[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],r=0}finally{n=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}function h(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}function p(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function f(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function v(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function b(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||s(e,t)})})}function s(e,t){try{var n;(n=i[e](t)).value instanceof y?Promise.resolve(n.value.v).then(l,u):c(o[0][2],n)}catch(e){c(o[0][3],e)}}function l(e){s("next",e)}function u(e){s("throw",e)}function c(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:y(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function S(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){var o,a,s;o=r,a=i,s=(t=e[n](t)).done,Promise.resolve(t.value).then(function(e){o({value:e,done:s})},a)})}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}
24function A(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function k(e){return e&&e.__esModule?e:{default:e}}function E(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}function C(e,t,n){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},9329:(e,t,n)=>{"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{_:()=>r})},9718:(e,t,n)=>{"use strict";var r=n(48948);t.X4=function(e,t){return e=s(e),t=a(t),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,l(e)},t.e$=c,t.tL=function(e,t=.15){return u(e)>.5?c(e,t):d(e,t)},t.eM=function(e,t){let n=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},t.a=d;var i=r(n(98509)),o=r(n(38995));function a(e,t=0,n=1){return(0,o.default)(e,t,n)}function s(e){let t;if(e.type)return e;if("#"===e.charAt(0))return s(function(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));let n=e.indexOf("("),r=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw Error((0,i.default)(9,e));let o=e.substring(n+1,e.length-1);if("color"===r){if(t=(o=o.split(" ")).shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(t))throw Error((0,i.default)(10,t))}else o=o.split(",");return{type:r,values:o=o.map(e=>parseFloat(e)),colorSpace:t}}function l(e){let{type:t,colorSpace:n}=e,{values:r}=e;return -1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function u(e){let t="hsl"===(e=s(e)).type||"hsla"===e.type?s(function(e){let{values:t}=e=s(e),n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(e,t=(e+n/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1),u="rgb",c=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),l({type:u,values:c})}(e)).values:e.values;return Number((.2126*(t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)))[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function c(e,t){if(e=s(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return l(e)}function d(e,t){if(e=s(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return l(e)}},10306:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(42734).A)()},10679:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,private_createBreakpoints:()=>i.A,unstable_applyStyles:()=>o.A});var r=n(93479),i=n(76047),o=n(13053)}
24,10802:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(1983),i=n(99410),o=n(35987),a=n(49737),s=n(55729),l=n(5440);function u(e,t){var n=Object.create(null);return e&&s.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=t&&(0,s.isValidElement)(e)?t(e):e}),n}function c(e,t,n){return null!=n[t]?n[t]:e.props[t]}var d=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},h=function(e){function t(t,n){var r=e.call(this,t,n)||this,i=r.handleExited.bind((0,o.A)(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}(0,a.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,o=t.handleExited;return{children:t.firstRender?u(e.children,function(t){return(0,s.cloneElement)(t,{onExited:o.bind(null,t),in:!0,appear:c(t,"appear",e),enter:c(t,"enter",e),exit:c(t,"exit",e)})}):(Object.keys(r=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var u=i[l][r];s[i[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(i,n=u(e.children))).forEach(function(t){var a=r[t];if((0,s.isValidElement)(a)){var l=t in i,u=t in n,d=i[t],h=(0,s.isValidElement)(d)&&!d.props.in;u&&(!l||h)?r[t]=(0,s.cloneElement)(a,{onExited:o.bind(null,a),in:!0,exit:c(a,"exit",e),enter:c(a,"enter",e)}):u||!l||h?u&&l&&(0,s.isValidElement)(d)&&(r[t]=(0,s.cloneElement)(a,{onExited:o.bind(null,a),in:d.props.in,exit:c(a,"exit",e),enter:c(a,"enter",e)})):r[t]=(0,s.cloneElement)(a,{in:!1})}}),r),firstRender:!1}},n.handleExited=function(e,t){var n=u(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=(0,i.A)({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,i=(0,r.A)(e,["component","childFactory"]),o=this.state.contextValue,a=d(this.state.children).map(n);return(delete i.appear,delete i.enter,delete i.exit,null===t)?s.createElement(l.A.Provider,{value:o},a):s.createElement(l.A.Provider,{value:o},s.createElement(t,i,a))},t}(s.Component);h.propTypes={},h.defaultProps={component:"div",childFactory:function(e){return e}};let p=h},10884:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let r=n(55729);function i(e,t){let n=(0,r.useRef)(null),i=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(null===r){let e=n.current;e&&(n.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(n.current=o(e,r)),t&&(i.current=o(t,r))},[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let n=e(t);return"function"==typeof n?n:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12639:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=n(3126).A},12910:(e,t)=>{t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInl
24ine:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode
24-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},13046:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(99410),i=n(1983),o=n(55729),a=n(50878),s=n(78002),l=n(57964),u=n(38353),c=n(12639),d=n(6029);let h=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],p={entering:{opacity:1},entered:{opacity:1}},f=o.forwardRef(function(e,t){let n=(0,l.A)(),f={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:m,appear:g=!0,children:v,easing:y,in:b,onEnter:w,onEntered:S,onEntering:x,onExit:A,onExited:k,onExiting:E,style:C,timeout:T=f,TransitionComponent:_=a.Ay}=e,P=(0,i.A)(e,h),M=o.useRef(null),I=(0,c.A)(M,(0,s.A)(v),t),O=e=>t=>{if(e){let n=M.current;void 0===t?e(n):e(n,t)}},R=O(x),D=O((e,t)=>{(0,u.q)(e);let r=(0,u.c)({style:C,timeout:T,easing:y},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),w&&w(e,t)}),L=O(S),j=O(E),U=O(e=>{let t=(0,u.c)({style:C,timeout:T,easing:y},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),A&&A(e)}),N=O(k);return(0,d.jsx)(_,(0,r.A)({appear:g,in:b,nodeRef:M,onEnter:D,onEntered:L,onEntering:R,onExit:U,onExited:N,onExiting:j,addEndListener:e=>{m&&m(M.current,e)},timeout:T},P,{children:(e,t)=>o.cloneElement(v,(0,r.A)({style:(0,r.A)({opacity:0,visibility:"exited"!==e||b?void 0:"hidden"},p[e],C,v.props.style),ref:I},t))}))})},13053:(e,t,n)=>{"use strict";function r(e,t){return this.vars&&"function"==typeof this.getColorSchemeSelector?{[this.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:this.palette.mode===e?t:{}}n.d(t,{A:()=>r})},13396:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>tq});var r=n(6029),i=n(81278),o=n(55729),a=n(71024),s=n.n(a),l=n(99410),u=n(1983);let c=o.createContext(null);function d(){return o.useContext(c)}let h="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",p=function(e){let{children:t,theme:n}=e,i=d(),a=o.useMemo(()=>{var e,t;let r=null===i?n:(e=i,"function"==typeof(t=n)?t(e):(0,l.A)({},e,t));return null!=r&&(r[h]=null!==i),r},[n,i]);return(0,r.jsx)(c.Provider,{value:a,children:t})};var f=n(87905),m=n(15546),g=n(64593),v=n(30108);let y={};function b(e,t,n,r=!1){return o.useMemo(()=>{let i=e&&t[e]||t;if("function"==typeof n){let o=n(i),a=e?(0,l.A)({},t,{[e]:o}):o;return r?()=>a:a}return e?(0,l.A)({},t,{[e]:n}):(0,l.A)({},t,n)},[e,t,n,r])}let w=function(e){let{children:t,theme:n,themeId:i}=e,o=(0,m.A)(y),a=d()||y,s=b(i,o,n),l=b(i,a,n,!0),u="rtl"===s.direction;return(0,r.jsx)(p,{theme:l,children:(0,r.jsx)(f.T.Provider,{value:s,children:(0,r.jsx)(g.A,{value:u,children:(0,r.jsx)(v.A,{value:null==s?void 0:s.components,children:t})})})})};var S=n(14443);let x=["theme"];function A(e){let{theme:t}=e,n=(0,u.A)(e,x),i=t[S.A],o=i||t;return"function"!=typeof t&&(i&&!i.vars?o=(0,l.A)({},i,{vars:null}):t&&!t.vars&&(o=(0,l.A)({},t,{vars:null}))),(0,r.jsx)(w,(0,l.A)({},n,{themeId:i?S.A:void 0,theme:o}))}n(97191);var k=n(33904),E=n(6580),C=n(15962),T=n(87755),_=n(31607),P=n(8289),M=n(17377),I=n(26927),O=n(1519),R=n.n(O),D=n(56529),L=n(92114);n(99087);var j=n(79637),U=n(34837),N=n(44316),F=n(46800),B=n(7206),z=n(67757),$=n(4093
246),V=n(82203),H=n.n(V),W=n(56752);let G=()=>"Leggi",q=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(W.F9&&!1===W.S$)return globalThis.__paraglide_ssr.label_read(t);let r=null!=(e=n.locale)?e:(0,W.JK)();return((0,W.fQ)("label_read",r),"it"===r)?G(t):"label_read"};var Y=n(96068);let K=e=>{var t,n,i,o;let{slide:a}=e,s=(0,C.A)(I.A.breakpoints.down("lg")),l=a.authorLink?(null==(t=a.authorLink)?void 0:t.includes((0,Y.gj)()))?"a":H():"div",u=a.labelLink?(null==(n=a.labelLink)?void 0:n.includes((0,Y.gj)()))?"a":H():"div";return(0,r.jsx)(j.A,{sx:{backgroundColor:a.bgColor},className:R().heroCarouselSlide,children:(0,r.jsxs)(U.A,{children:[(0,r.jsxs)(T.A,{className:R().boxImg,children:[(0,r.jsx)(T.A,{sx:{backgroundColor:a.bgColorBox},className:R().boxColor}),(0,r.jsx)(T.A,{className:R().img,sx:{backgroundImage:"url(".concat(a.img.url,")")}})]}),(0,r.jsx)(N.Ay,{className:R().container,mt:{xs:I.A.spacing(8),lg:0},item:!0,xs:12,lg:7,position:"relative",children:(0,r.jsxs)($.A,{children:[(0,r.jsx)(U.A,{className:R().contentTop,children:(0,r.jsxs)(N.Ay,{item:!0,xs:12,children:[a.label&&(0,r.jsx)(T.A,{className:R().labelLink,component:u,...a.labelLink&&{href:(0,z.cY)(null==a?void 0:a.labelLink)},children:(0,r.jsx)(F.A,{mb:{xs:I.A.spacing(16),lg:I.A.spacing(32)},variant:"overlineLabel",color:I.A.palette.common.white,children:a.label})}),a.tag&&(0,r.jsx)(F.A,{ml:I.A.spacing(24),mb:I.A.spacing(16),variant:"overlineTag",color:I.A.palette.common.white,children:a.tag}),(0,r.jsx)(F.A,{pl:{xs:0,lg:"3vw"},variant:"h1",component:"h1",className:R().title,color:I.A.palette.common.white,dangerouslySetInnerHTML:{__html:a.title}})]})}),(0,r.jsx)(U.A,{className:R().content,mt:I.A.spacing(8),children:(0,r.jsxs)(N.Ay,{item:!0,xs:12,lg:8,ml:{xs:0,lg:"7vw"},children:[a.author&&(0,r.jsxs)(T.A,{pb:{xs:I.A.spacing(24),md:I.A.spacing(8)},children:[(0,r.jsx)(T.A,{className:R().author,component:l,...a.authorLink&&{href:(0,z.cY)(null==a?void 0:a.authorLink)},children:(0,r.jsx)(F.A,{variant:"bodyM",display:{xs:"block",lg:"block"},color:I.A.palette.common.white,children:"di "+a.author})}),(null==(i=a.coAuthor)?void 0:i.length)?a.coAuthor.map((e,t)=>{var n,i;let o=null==(i=e.autore)||null==(n=i.story)?void 0:n.content;return(null==o?void 0:o.cognome)?(0,r.jsx)(T.A,{component:(0,z.sH)(e.autore).includes((0,Y.gj)())?"a":H(),className:R().author,href:(0,z.sH)(e.autore),style:{textDecoration:"none",color:I.A.palette.common.white,paddingLeft:0==t?0:I.A.spacing(4)},children:(0,r.jsx)(F.A,{variant:"bodyM",color:I.A.palette.common.white,children:((null==o?void 0:o.nome)||(null==o?void 0:o.cognome))&&"".concat(0==t?", ":""," ").concat(o.nome," ").concat(o.cognome).concat(t<a.coAuthor.length-1?",":"")})},t):null}):null]}),a.headline&&(0,r.jsx)(F.A,{variant:"leadP",component:"div",display:{xs:"none",md:"block"},color:I.A.palette.common.white,className:R().headline,children:"HeroCarouselItemCustom"==a.component?(0,r.jsx)(B.A,{text:(0,E.CA)(a.headline)}):a.headline}),(null==(o=a.link)?void 0:o.url)&&(0,r.jsx)(_.A,{size:s?"small":"large",sx:{mt:{xs:0,md:I.A.spacing(24),lg:I.A.spacing(32)}},color:"primaryOnDark",href:(0,z.sH)(a.link),children:q()})]})})]})})]})})};var J=n(61062);let X=e=>{let{blok:t}=e;t=(0,o.useMemo)(()=>t.slide,[t]);let n={brown:{bgColor:I.A.palette.brown["800"],bgColorBox:I.A.palette.brown["600"]},violet:{bgColor:I.A.palette.violet["800"],bgColorBox:I.A.palette.violet["900"]},"light-sky-blue":{bgColor:I.A.palette.lightSkyBlue["800"],bgColorBox:I.A.palette.lightSkyBlue["700"]}},i=(0,o.useMemo)(()=>{var e,r,i,o,a;let s=n.hasOwnProperty(null==t?void 0:t.bgColor)?n[null==t?void 0:t.bgColor]:n.brown;return{component:null==t?void 0:t.component,title:(null==t?void 0:t.title)||"",headline:null==t?void 0:t.headline,tag:null==t?void 0:t.tag,label:null==t?void 0:t.label,labelLink:(null==t||null==(e=t.label_link)?void 0:e.cached_url)?(0,z.sH)(null==t?void 0:t.label_link):null,author:null==t?void 0:t.author,authorLink:(null==t||null==(r=t.author_link)?void 0:r.cached_url)?(0,z.sH)(null==t?void 0:t.author_link):null,coAuthor:null==t?void 0:t.CoAutore,bgColor:null==s?void 0:s.bgColor,bgColorBox:null==s?void 0:s.bgColorBox,link:{title:null==t||null==(i=t.link)?void 0:i.title,url:(0,z.sH)(null==t?void 0:t.link)},img:{title:null==t||null==(o=t.image)?void 0:o.title,url:(0,J.z)(null==t||null==(a=t.image)?void 0:a.filename)}}},[t]);return i?(0,r.jsx)(K,{slide:i}):null};var Z=n(67368),Q=n(26786);let ee=e=>{let{blok:t}=e,n=(0,o.useMemo)(()=>t.data,[t]),i={brown:{bgColor:I.A.palette.brown["800"],bgColorBox:I.A.palette.brown["600"]},violet:{bgColor:I.A.palette.violet["800"],bgColorBox:I.A.palette.violet["900"]},"light-sky-blue":{bgColor:I.A.palette.lightSkyBlue["800"],bgColorBox:I.A.palette.lightSkyBlue["700"]}},a=(0,o.useMemo)(()=>{var e,r,o,a,s,l,u,c,d,h,p,f,m;let g=i.hasOwnProperty(null==t||null==(e=t.slide)?void 0:e.bgColor)?i[null==t||null==(r=t.slide)?void 0:r.bgColor]:i.brown,v=n.published_images[0];return{component:null==t||null==(o=t.slide)?void 0:o.component,title:(null==n?void 0:n.title)||"",headline:null==n||null==(s=n.meta)||null==(a=s.html)?void 0:a.title,label:null==n||null==(l=n.categories[0])?void 0:l.cat2_label,labelLink:null==n||null==(u=n.categories[0])?void 0:u.cat2_label,tag:null==t||null==(d=t.slide)||null==(c=d.lemma)?void 0:c.url.split("/")[0],author:null==n?void 0:n.author,bgColor:null==g?void 0:g.bgColor,bgColorBox:null==g?void 0:g.bgColorBox,link:{title:null==t||null==(p=t.slide)||null==(h=p.link)?void 0:h.title,url:null==t||null==(m
24=t.slide)||null==(f=m.lemma)?void 0:f.url},img:{title:null==v?void 0:v.description,url:v?"".concat(Z._w).concat(v.path):(0,Q.w7)(null==n?void 0:n.content)||null}}},[t,n]);return a?(0,r.jsx)(K,{slide:a}):null},et=e=>{let{blok:t}=e,n=(0,o.useMemo)(()=>t.data,[t]),i={brown:{bgColor:I.A.palette.brown["800"],bgColorBox:I.A.palette.brown["600"]},violet:{bgColor:I.A.palette.violet["800"],bgColorBox:I.A.palette.violet["900"]},"light-sky-blue":{bgColor:I.A.palette.lightSkyBlue["800"],bgColorBox:I.A.palette.lightSkyBlue["700"]}},a=(0,o.useMemo)(()=>{var e,r,o,a,s,l,u,c,d,h,p,f,m,g,v,y,b,w,S,x,A,k,E,C,T,_,P,M,I,O,R,D,L,j,U,N,F;let B=i.hasOwnProperty(null==t||null==(e=t.slide)?void 0:e.bg_color)?i[null==t||null==(r=t.slide)?void 0:r.bg_color]:i.brown;return{component:null==t||null==(o=t.slide)?void 0:o.component,title:(null==n||null==(a=n.content)?void 0:a.titolo)||"",headline:null==n||null==(s=n.content)?void 0:s.sottotitolo,label:null==t||null==(d=t.slide)||null==(c=d.article)||null==(u=c.story)||null==(l=u.full_slug)?void 0:l.split("/")[1].replace(/_/g," "),labelLink:"/magazine/".concat(null==t||null==(f=t.slide)||null==(p=f.article)||null==(h=p.full_slug)?void 0:h.split("/")[1].replaceAll("_"," ")),tag:null==n||null==(m=n.content)?void 0:m.occhiello,author:(null==n||null==(v=n.content)||null==(g=v.autore)?void 0:g.story)?(null==n||null==(S=n.content)||null==(w=S.autore)||null==(b=w.story)||null==(y=b.content)?void 0:y.nome)+" "+(null==n||null==(E=n.content)||null==(k=E.autore)||null==(A=k.story)||null==(x=A.content)?void 0:x.cognome):(null==n?void 0:n.nomeAutore)||(null==n||null==(C=n.content)?void 0:C.nomeAutore)||"",authorLink:(null==n||null==(_=n.content)||null==(T=_.autore)?void 0:T.url)||(null==n||null==(M=n.content)||null==(P=M.autore)?void 0:P.cached_url)||"",coAuthor:null==n||null==(I=n.content)?void 0:I.CoAutore,bgColor:null==B?void 0:B.bgColor,bgColorBox:null==B?void 0:B.bgColorBox,link:{title:"",url:null==n?void 0:n.full_slug},img:{title:(null==n||null==(O=n.content)?void 0:O.immagine)?null==n||null==(L=n.content)||null==(D=L.immagine[0])||null==(R=D.immagine)?void 0:R.filename:"",url:(null==n||null==(j=n.content)?void 0:j.immagine.length)?(0,J.z)(null==n||null==(F=n.content)||null==(N=F.immagine[0])||null==(U=N.immagine)?void 0:U.filename):""}}},[t,n]);return a?(0,r.jsx)(K,{slide:a}):null};var en=n(13453);let er=()=>"Scorri in basso",ei=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(W.F9&&!1===W.S$)return globalThis.__paraglide_ssr.button_scrolldown1(t);let r=null!=(e=n.locale)?e:(0,W.JK)();return((0,W.fQ)("button_scrolldown1",r),"it"===r)?er(t):"button_scrollDown"};var eo=n(84089),ea=n(95818),es=n(25937),el=n(39661),eu=n(86146),ec=n.n(eu),ed=n(60448),eh=n(74312),ep=n.n(eh),ef=n(21015),em=n.n(ef),eg=n(74060),ev=n.n(eg),ey=n(59255),eb=n.n(ey),ew=n(13597),eS=n.n(ew),ex=n(80594);ep().extend(ev()),ep().extend(eb()),ep().extend(eS());let eA=(0,ex.f)(["Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale"]),ek={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},eE={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},eC="Missing UTC plugin\nTo be able to use UTC or timezones, you have to enable the `utc` plugin\nFind more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc",eT="Missing timezone plugin\nTo be able to use timezones, you have to enable both the `utc` and the `timezone` plugin\nFind more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone",e_=(e,t)=>
24t?(...n)=>e(...n).locale(t):e;class eP{constructor({locale:e,formats:t,instance:n}={}){var r;this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.rawDayJsInstance=void 0,this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=ek,this.setLocaleToValue=e=>{let t=this.getCurrentLocaleCode();return t===e.locale()?e:e.locale(t)},this.hasUTCPlugin=()=>void 0!==ep().utc,this.hasTimezonePlugin=()=>void 0!==ep().tz,this.isSame=(e,t,n)=>{let r=this.setTimezone(t,this.getTimezone(e));return e.format(n)===r.format(n)},this.cleanTimezone=e=>{switch(e){case"default":return;case"system":return ep().tz.guess();default:return e}},this.createSystemDate=e=>{if(this.rawDayJsInstance)return this.rawDayJsInstance(e);if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){let t=ep().tz.guess();if("UTC"!==t)return ep().tz(e,t)}return ep()(e)},this.createUTCDate=e=>{if(!this.hasUTCPlugin())throw Error(eC);return ep().utc(e)},this.createTZDate=(e,t)=>{if(!this.hasUTCPlugin())throw Error(eC);if(!this.hasTimezonePlugin())throw Error(eT);let n=void 0!==e&&!e.endsWith("Z");return ep()(e).tz(this.cleanTimezone(t),n)},this.getLocaleFormats=()=>{let e=ep().Ls,t=e[this.locale||"en"];return void 0===t&&(eA(),t=e.en),t.formats},this.adjustOffset=e=>{if(!this.hasTimezonePlugin())return e;let t=this.getTimezone(e);if("UTC"!==t){var n,r;let i=e.tz(this.cleanTimezone(t),!0);if((null!=(n=i.$offset)?n:0)===(null!=(r=e.$offset)?r:0))return e;e.$offset=i.$offset}return e},this.date=e=>null===e?null:this.dayjs(e),this.dateWithTimezone=(e,t)=>{let n;return null===e?null:(n="UTC"===t?this.createUTCDate(e):"system"!==t&&("default"!==t||this.hasTimezonePlugin())?this.createTZDate(e,t):this.createSystemDate(e),void 0===this.locale)?n:n.locale(this.locale)},this.getTimezone=e=>{if(this.hasTimezonePlugin()){var t;let n=null==(t=e.$x)?void 0:t.$timezone;if(n)return n}return this.hasUTCPlugin()&&e.isUTC()?"UTC":"system"},this.setTimezone=(e,t)=>{if(this.getTimezone(e)===t)return e;if("UTC"===t){if(!this.hasUTCPlugin())throw Error(eC);return e.utc()}if("system"===t)return e.local();if(!this.hasTimezonePlugin()){if("default"===t)return e;throw Error(eT)}return ep().tz(e,this.cleanTimezone(t))},this.toJsDate=e=>e.toDate(),this.parseISO=e=>this.dayjs(e),this.toISO=e=>e.toISOString(),this.parse=(e,t)=>""===e?null:this.dayjs(e,t,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=e=>{let t=this.getLocaleFormats(),n=e=>e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(e,t,n)=>t||n.slice(1));return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(e,r,i)=>{let o=i&&i.toUpperCase();return r||t[i]||n(t[o])})},this.getFormatHelperText=e=>this.expandFormat(e).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=e=>null===e,this.isValid=e=>this.dayjs(e).isValid(),this.format=(e,t)=>this.formatByString(e,this.formats[t]),this.formatByString=(e,t)=>this.dayjs(e).format(t),this.formatNumber=e=>e,this.getDiff=(e,t,n)=>e.diff(t,n),this.isEqual=(e,t)=>null===e&&null===t||this.dayjs(e).toDate().getTime()===this.dayjs(t).toDate().getTime(),this.isSameYear=(e,t)=>this.isSame(e,t,"YYYY"),this.isSameMonth=(e,t)=>this.isSame(e,t,"YYYY-MM"),this.isSameDay=(e,t)=>this.isSame(e,t,"YYYY-MM-DD"),this.isSameHour=(e,t)=>e.isSame(t,"hour"),this.isAfter=(e,t)=>e>t,this.isAfterYear=(e,t)=>this.hasUTCPlugin()?!this.isSameYear(e,t)&&e.utc()>t.utc():e.isAfter(t,"year"),this.isAfterDay=(e,t)=>this.hasUTCPlugin()?!this.isSameDay(e,t)&&e.utc()>t.utc():e.isAfter(t,"day"),this.isBefore=(e,t)=>e<t,this.isBeforeYear=(e,t)=>this.hasUTCPlugin()?!this.isSameYear(e,t)&&e.utc()<t.utc():e.isBefore(t,"year"),this.isBeforeDay=(e,t)=>this.hasUTCPlugin()?!this.isSameDay(e,t)&&e.utc()<t.utc():e.isBefore(t,"day"),this.isWithinRange=(e,[t,n])=>e>=t&&e<=n,this.startOfYear=e=>this.adjustOffset(e.startOf("year")),this.startOfMonth=e=>this.adjustOffset(e.startOf("month")),this.startOfWeek=e=>this.adjustOffset(e.startOf("week")),this.startOfDay=e=>this.adjustOffset(e.startOf("day")),this.endOfYear=e=>
24this.adjustOffset(e.endOf("year")),this.endOfMonth=e=>this.adjustOffset(e.endOf("month")),this.endOfWeek=e=>this.adjustOffset(e.endOf("week")),this.endOfDay=e=>this.adjustOffset(e.endOf("day")),this.addYears=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"year"):e.add(t,"year")),this.addMonths=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"month"):e.add(t,"month")),this.addWeeks=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"week"):e.add(t,"week")),this.addDays=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"day"):e.add(t,"day")),this.addHours=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"hour"):e.add(t,"hour")),this.addMinutes=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"minute"):e.add(t,"minute")),this.addSeconds=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"second"):e.add(t,"second")),this.getYear=e=>e.year(),this.getMonth=e=>e.month(),this.getDate=e=>e.date(),this.getHours=e=>e.hour(),this.getMinutes=e=>e.minute(),this.getSeconds=e=>e.second(),this.getMilliseconds=e=>e.millisecond(),this.setYear=(e,t)=>this.adjustOffset(e.set("year",t)),this.setMonth=(e,t)=>this.adjustOffset(e.set("month",t)),this.setDate=(e,t)=>this.adjustOffset(e.set("date",t)),this.setHours=(e,t)=>this.adjustOffset(e.set("hour",t)),this.setMinutes=(e,t)=>this.adjustOffset(e.set("minute",t)),this.setSeconds=(e,t)=>this.adjustOffset(e.set("second",t)),this.setMilliseconds=(e,t)=>this.adjustOffset(e.set("millisecond",t)),this.getDaysInMonth=e=>e.daysInMonth(),this.getNextMonth=e=>this.addMonths(e,1),this.getPreviousMonth=e=>this.addMonths(e,-1),this.getMonthArray=e=>{let t=[e.startOf("year")];for(;t.length<12;){let e=t[t.length-1];t.push(this.addMonths(e,1))}return t},this.mergeDateAndTime=(e,t)=>e.hour(t.hour()).minute(t.minute()).second(t.second()),this.getWeekdays=()=>{let e=this.dayjs().startOf("week");return[0,1,2,3,4,5,6].map(t=>this.formatByString(this.addDays(e,t),"dd"))},this.getWeekArray=e=>{let t=this.setLocaleToValue(e),n=t.startOf("month").startOf("week"),r=t.endOf("month").endOf("week"),i=0,o=n,a=[];for(;o<r;){let e=Math.floor(i/7);a[e]=a[e]||[],a[e].push(o),o=this.addDays(o,1),i+=1}return a},this.getWeekNumber=e=>e.week(),this.getYearRange=(e,t)=>{let n=e.startOf("year"),r=t.endOf("year"),i=[],o=n;for(;o<r;)i.push(o),o=this.addYears(o,1);return i},this.getMeridiemText=e=>"am"===e?"AM":"PM",this.rawDayJsInstance=n,this.dayjs=e_(null!=(r=this.rawDayJsInstance)?r:ep(),e),this.locale=e,this.formats=(0,l.A)({},eE,t),ep().extend(em())}}var eM=n(65750),eI=n(62447),eO=n(90316);let eR=s()(()=>n.e(4828).then(n.bind(n,44828)),{loadableGenerated:{webpack:()=>[44828]}}),eD=s()(()=>n.e(1784).then(n.bind(n,81784)),{loadableGenerated:{webpack:()=>[81784]}}),eL=s()(()=>Promise.all([n.e(5916),n.e(5599),n.e(4766),n.e(148)]).then(n.bind(n,70148)),{loadableGenerated:{webpack:()=>[70148]}}),ej=s()(()=>Promise.all([n.e(5916),n.e(5599),n.e(4766),n.e(148),n.e(2998)]).then(n.bind(n,22998)),{loadableGenerated:{webpack:()=>[22998]}}),eU=s()(()=>Promise.all([n.e(5916),n.e(5599),n.e(4766),n.e(148),n.e(320)]).then(n.bind(n,90320)),{loadableGenerated:{webpack:()=>[90320]}}),eN=s()(()=>n.e(6476).then(n.bind(n,56476)),{loadableGenerated:{webpack:()=>[56476]}}),eF=s()(()=>n.e(9564).then(n.bind(n,79564)),{loadableGenerated:{webpack:()=>[79564]}}),eB=s()(()=>Promise.all([n.e(5916),n.e(5599),n.e(2298),n.e(6508)]).then(n.bind(n,6508)),{loadableGenerated:{webpack:()=>[6508]}}),ez=s()(()=>Promise.all([n.e(646),n.e(6516),n.e(4389),n.e(5439)]).then(n.bind(n,82076)),{loadableGenerated:{webpack:()=>[82076]}}),e$=s()(()=>Promise.all([n.e(5916),n.e(5599),n.e(4766),n.e(2298),n.e(6848),n.e(7443),n.e(5514),n.e(5285)]).then(n.bind(n,25285)),{loadableGenerated:{webpack:()=>[25285]}}),eV=s()(()=>Promise.all([n.e(5283),n.e(4193)]).then(n.bind(n,33125)),{loadableGenerated:{webpack:()=>[33125]}}),eH=s()(()=>Promise.all([n.e(8679),n.e(8520)]).then(n.bind(n,38520)),{loadableGenerated:{webpack:()=>[38520]}}),eW=s()(()=>n.e(1609).then(n.bind(n,61609)),{loadableGenerated:{webpack:()=>[61609]}}),eG=s()(()=>Promise.all([n.e(5916),n.e(5599),n.e(4766),n.e(2298),n.e(94),n.e(7443),n.e(7145),n.e(6576)]).then(n.bind(n,56576)),{loadableGenerated:{webpack:()=>[56576]}}),eq=s()(()=>Promise.all([n.e(8554),n.e(5916),n.e(5599),n.e(4766),n.e(2298),n.e(6848),n.e(3102),n.e(2584),n.e(7443),n.e(5514),n.e(860)]).then(n.bind(n,14176)),{loadableGenerated:{webpack:()=>[14176]}}),eY=s()(()=>Promise.all([n.e(5916),n.e(5599),n.e(4766),n.e(2298),n.e(6848),n.e(7443),n.e(5514),n.e(8465)]).then(n.bind(n,24732)),{loadableGenerated:{webpack:()=>[24732]}
24}),eK=s()(()=>n.e(9735).then(n.bind(n,59735)),{loadableGenerated:{webpack:()=>[59735]}}),eJ=s()(()=>n.e(3521).then(n.bind(n,23521)),{loadableGenerated:{webpack:()=>[23521]}}),eX=s()(()=>Promise.all([n.e(5916),n.e(5599),n.e(4248),n.e(964),n.e(6793),n.e(3710),n.e(6743),n.e(8990),n.e(4766),n.e(2298),n.e(6848),n.e(8957),n.e(6724),n.e(5180),n.e(2229),n.e(7251),n.e(6485),n.e(7443),n.e(5514),n.e(4192),n.e(9449),n.e(118),n.e(1596),n.e(3905),n.e(4235)]).then(n.bind(n,54235)),{loadableGenerated:{webpack:()=>[54235]}}),eZ=s()(()=>Promise.all([n.e(4248),n.e(5916),n.e(5599),n.e(964),n.e(3710),n.e(6743),n.e(8990),n.e(4766),n.e(2298),n.e(6848),n.e(6724),n.e(5180),n.e(6485),n.e(7443),n.e(5514),n.e(4192),n.e(9449),n.e(118),n.e(1596),n.e(3905),n.e(4084)]).then(n.bind(n,87323)),{loadableGenerated:{webpack:()=>[87323]}}),eQ=s()(()=>Promise.all([n.e(5916),n.e(5599),n.e(4766),n.e(2298),n.e(7443),n.e(8827)]).then(n.bind(n,28827)),{loadableGenerated:{webpack:()=>[28827]}}),e0=s()(()=>Promise.all([n.e(7801),n.e(4766),n.e(2401),n.e(2096)]).then(n.bind(n,52109)),{loadableGenerated:{webpack:()=>[52109]}}),e1=s()(()=>Promise.all([n.e(7487),n.e(3102),n.e(2016)]).then(n.bind(n,22577)),{loadableGenerated:{webpack:()=>[22577]}}),e2=s()(()=>Promise.all([n.e(5916),n.e(5599),n.e(281)]).then(n.bind(n,50281)),{loadableGenerated:{webpack:()=>[50281]}}),e5=s()(()=>Promise.all([n.e(5916),n.e(5599),n.e(2298),n.e(7443),n.e(1029)]).then(n.bind(n,11029)),{loadableGenerated:{webpack:()=>[11029]}}),e4=s()(()=>Promise.all([n.e(5916),n.e(5599),n.e(2298),n.e(7443),n.e(8581)]).then(n.bind(n,88581)),{loadableGenerated:{webpack:()=>[88581]}}),e3=s()(()=>Promise.all([n.e(5916),n.e(5599),n.e(3153)]).then(n.bind(n,33153)),{loadableGenerated:{webpack:()=>[33153]}}),e6=s()(()=>Promise.all([n.e(2653),n.e(2729)]).then(n.bind(n,32729)),{loadableGenerated:{webpack:()=>[32729]}}),e9=s()(()=>n.e(2171).then(n.bind(n,52171)),{loadableGenerated:{webpack:()=>[52171]}}),e8=s()(()=>Promise.all([n.e(964),n.e(5916),n.e(5599),n.e(4766),n.e(2298),n.e(6848),n.e(7443),n.e(5514),n.e(9449),n.e(118),n.e(9120)]).then(n.bind(n,60118)),{loadableGenerated:{webpack:()=>[60118]}}),e7=s()(()=>Promise.all([n.e(8911),n.e(5916),n.e(5599),n.e(964),n.e(4766),n.e(2298),n.e(6848),n.e(7443),n.e(5514),n.e(9449),n.e(118),n.e(2228)]).then(n.bind(n,43373)),{loadableGenerated:{webpack:()=>[43373]}}),te=s()(()=>Promise.all([n.e(8789),n.e(5916),n.e(5599),n.e(3710),n.e(4766),n.e(2298),n.e(6724),n.e(3755),n.e(3978),n.e(7443),n.e(6980),n.e(6139),n.e(1291)]).then(n.bind(n,36139)),{loadableGenerated:{webpack:()=>[36139]}}),tt=s()(()=>Promise.all([n.e(5916),n.e(5599),n.e(3710),n.e(7774),n.e(5525)]).then(n.bind(n,75525)),{loadableGenerated:{webpack:()=>[75525]}}),tn=s()(()=>Promise.all([n.e(5916),n.e(5599),n.e(3710),n.e(6743),n.e(8990),n.e(4766),n.e(2298),n.e(6848),n.e(8957),n.e(6724),n.e(6485),n.e(7443),n.e(9307),n.e(5514),n.e(4192),n.e(9772)]).then(n.bind(n,29772)),{loadableGenerated:{webpack:()=>[29772]}}),tr=s()(()=>Promise.all([n.e(5916),n.e(5599),n.e(3710),n.e(4766),n.e(6724),n.e(4192),n.e(7774),n.e(6079)]).then(n.bind(n,16079)),{loadableGenerated:{webpack:()=>[16079]}}),ti=s()(()=>n.e(6809).then(n.bind(n,76809)),{loadableGenerated:{webpack:()=>[76809]}}),to=s()(()=>Promise.all([n.e(2463),n.e(4766),n.e(493)]).then(n.bind(n,70493)),{loadableGenerated:{webpack:()=>[70493]}}),ta=s()(()=>Promise.all([n.e(5151),n.e(1597)]).then(n.bind(n,83978)),{loadableGenerated:{webpack:()=>[83978]}}),ts=s()(()=>n.e(7899).then(n.bind(n,57899)),{loadableGenerated:{webpack:()=>[57899]}}),tl=s()(()=>Promise.all([n.e(5916),n.e(5599),n.e(3710),n.e(6743),n.e(8990),n.e(4766),n.e(2298),n.e(6848),n.e(63),n.e(6485),n.e(7443),n.e(9307),n.e(5514),n.e(174)]).then(n.bind(n,20174)),{loadableGenerated:{webpack:()=>[20174]}}),tu=s()(()=>Promise.all([n.e(5916),n.e(5599),n.e(3710),n.e(4766),n.e(2298),n.e(8859),n.e(7443),n.e(7145),n.e(83)]).then(n.bind(n,20083)),{loadableGenerated:{webpack:()=>[20083]}}),tc=s()(()=>Promise.all([n.e(5916),n.e(5599),n.e(4766),n.e(2298),n.e(6848),n.e(9694),n.e(7443),n.e(5514),n.e(6303),n.e(5159)]).then(n.bind(n,68479)),{loadableGenerated:{webpack:()=>[68479]}}),td=s()(()=>Promise.all([n.e(5916),n.e(5599),n.e(3710),n.e(4766),n.e(2298),n.e(6571),n.e(7443),n.e(3835)]).then(n.bind(n,53835)),{loadableGenerated:{webpack:()=>[53835]}}),th=s()(()=>Promise.all([n.e(4248),n.e(9131),n.e(5916),n.e(5599),n.e(964),n.e(646),n.e(6516),n.e(3710),n.e(6743),n.e(8990),n.e(4766),n.e(2298),n.e(6848),n.e(9694),n.e(5180),n.e(4389),n.e(5490),n.e(6485),n.e(7443),n.e(5514),n.e(9449),n.e(118),n.e(1596),n.e(1744)]).then(n.bind(n,18457)),{loadableGenerated:{webpack:()=>[18457]}}),tp=s()(()=>Promise.all([n.e(5916),n.e(5599),n.e(964),n.e(3710),n.e(6743),n.e(8990),n.e(4766),n.e(2298),n.e(6848),n.e(6724),n.e(6485),n.e(7443),n.e(9307),n.e(5514),n.e(4192),n.e(9449),n.e(118),n.e(3905),n.e(1795)]).then(n.bind(n,46594)),{loadableGenerated:{webpack:()=>[46594]}}),tf=s()(()=>Promise.all([n.e(4248),n.e(5916),n.e(5599),n.e(3710),n.e(6743),n.e(8990),n.e(4766),n.e(2298),n.e(6848),n.e(8957),n.e(5180),n.e(2229),n.e(6485),n.e(7443),n.e(5514),n.e(1596),n.e(3373)]).then(n.bind(n,63373)),{loadableGenerated:{webpack:()=>[63373]}}),tm=s()(()=>Promise.all([n.e(5916),n.e(5599),n.e(4766),n.e(2298),n.e(6848),n.e(9694),n.e(4316),n.e(7443),n.e(5514),n.e(3123),n.e(1362)]).then(n.bind(n,3123)),{loadableGenerated:{webpack:()=>[3123]}}),tg=s()(()=>n.e(5275).then(n.bind(n,45275)),{loadableGenerated:{webpack:()=>[45275]}}),tv=s()(()=>Promise.all([n.e(5916),n.e(5599),n.e(3710),n.e(6743),n.e(8990),n.e(4766),n.e(2298),n.e(6848),n.e(8957),n.e(9694),n.e(6724),n.e(4316),n.e(6485),n.e(7443),n.e(9307),n.e(5514),n.e(4192),n.e(3123),n.e(1425)]).then(n.bind(n,21425)),{loadableGenerated:{webpack:()=>[21425]}}),ty=s()(()=>Promise.all([n.e(964),n.e(5916),n.e(5599),n.e(1687),n.e(3710),n.e(4766),n.e(2298),n.e(6848),n.e(3755),n.e(7443),n.e(5514),n.e(9449),n.e(118),n.e(1500)]).then(n.bind(n,8438)),{loadableGenerated:{webpack:()=>[8438]}}),tb=s()(()=>Promise.all([n.e(5916),n.e(5599),n.e(3710),n.e(6743),n.e(8990),n.e(4766),n.e(2298),n.e(6848),n.e(8957),n.e(6485),n.e(7443),n.e(9307),n.e(5514),n.e(2333)]).then(n.bind(n,82333)),{loadableGenerated:{webpack:()=>[82333]}}),tw=s()(()=>Promise.all([n.e(5916),n.e(5599),n.e(964),n.e(3710),n.e(4766),n.e(2298),n.e(6848),n.e(8957),n.e(9694),n.e(6724),n.e(4316),n.e(7443),n.e(5514),n.e(4192),n.e(9449),n.e(9196)]).then(n.bind(n,58253)),{loadableGenerated:{webpack:()=>[58253]}}),tS=s()(()=>Promise.all([n.e(5916),n.e(5599),n.e(3710),n.e(6743),n.e(8990),n.e(4766),n.e(2298),n.e(7008),n.e(6485),n.e(7443),n.e(9307),n.e(2303)]).then(n.bind(n,62303)),{loadableGenerated:{webpack:()=>[62303]}}),tx=s()(()=>Promise.all([n.e(4248),n.e(2463),n.e(5916),n.e(5599),n.e(3710),n.e(6743),n.e(8990),n.e(4766),n.e(8957),n.e(9694),n.e(6724),n.e(4316),n.e(5180),n.e(6485),n.e(4192),n.e(1596),n.e(4894)]).then(n.bind(n,62214)),{loadableGenerated:{webpack:()=>[62214]}}),tA=s()(()=>n.e(1525).then(n.bind(n,91525)),{loadableGenerated:{webpack:()=>[91525]}}),tk=s()(()=>Promise.all([n.e(4248),n.e(5916),n.e(5599),n.e(3710),n.e(6743),n.e(8990),n.e(4766),n.e(2298),n.e(6848),n.e(8957),n.e(9694),n.e(6724),n.e(4316),n.e(5180),n.e(4473),n.e(3658),n.e(6485),n.e(7443),n.e(5514),n.e(4192),n.e(1596),n.e(7203)]).then(n.bind(n,77203)),{loadableGenerated:{webpack:()=>[77203]}}),tE=s()(()=>Promise.all([n.e(7966),n.e(5916),n.e(5599),n.e(3710),n.e(6743),n.e(8990),n.e(4766),n.e(2298),n.e(6848),n.e(8957),n.e(6724),n.e(6485),n.e(7443),n.e(9307),n.e(5514),n.e(4192),n.e(2047)]).then(n.bind(n,22047)),{loadableGenerated:{webpack:()=>[22047]}}),tC=s()(()=>Promise.all([n.e(4248),n.e(5916),n.e(5599),n.e(3710),n.e(6743),n.e(8990),n.e(4766),n.e(2298),n.e(6848),n.e(8957),n.e(9694),n.e(6724),n.e(4316),n.e(5180),n.e(3658),n.e(6485),n.e(7443),n.e(5514),n.e(4192),n.e(1596),n.e(5585)]).then(n.bind(n,55585)),{loadableGenerated:{webpack:()=>[55585]}}),tT=s()(()=>Promise.all([n.e(5916),n.e(5599),n.e(3710),n.e(6743),n.e(8990),n.e(4766),n.e(2298),n.e(6848),n.e(8957),n.e(6485),n.e(7443),n.e(9307),n.e(5514),n.e(7869)]).then(n.bind(n,57869)),{loadableGenerated:{webpack:()=>[57869]}}),t_=s()(()=>Promise.all([n.e(5916),n.e(5599),n.e(4248),n.e(3710),n.e(6743),n.e(8990),n.e(4766),n.e(2298),n.e(6848),n.e(8957),n.e(6724),n.e(5180),n.e(6485),n.e(7443),n.e(5514),n.e(4192),n.e(1596),n.e(7145),n.e(4507)]).then(n.bind(n,84507)),{loadableGenerated:{webpack:()=>[84507]}}),tP=s()(()=>Promise.all([n.e(2027),n.e(4766),n.e(9993)]).then(n.bind(n,99993)),{loadableGenerated:{webpack:()=>[99993]}}),tM=s()(()=>n.e(2119).then(n.bind(n,2119)),{loadableGenerated:{webpack:()=>[2119]}}),tI=s()(()=>Promise.all([n.e(4248),n.e(5916),n.e(5599),n.e(964),n.e(3710),n.e(6743),n.e(8990),n.e(4766),n.e(2298),n.e(6848),n.e(6724),n.e(5180),n.e(6485),n.e(7443),n.e(5514),n.e(4192),n.e(9449),n.e(118),n.e(1596),n.e(9232),n.e(2885)]).then(n.bind(n,35909)),{loadableGenerated:{webpack:()=>[35909]}}),tO=s()(()=>Promise.all([n.e(7989),n.e(2229),n.e(3102),n.e(1717),n.e(4819)]).then(n.bind(n,64819)),{loadableGenerated:{webpack:()=>[64819]}}),tR=s()(()=>Promise.all([n.e(5916),n.e(5599),n.e(4766),n.e(2298),n.e(8952),n.e(7443),n.e(6704)]).then(n.bind(n,46704)),{loadableGenerated:{webpack:()=>[46704]}}),tD=s()(()=>Promise.all([n.e(964),n.e(5916),n.e(5599),n.e(4766),n.e(2298),n.e(6848),n.e(7443),n.e(5514),n.e(9449),n.e(118),n.e(7030)]).then(n.bind(n,70665)),{loadableGenerated:{webpack:()=>[70665]}}),tL=s()(()=>Promise.all([n.e(5916),n.e(5599),n.e(4248),n.e(964),n.e(3710),n.e(6743),n.e(8990),n.e(4766),n.e(2298),n.e(6848),n.e(6724),n.e(5180),n.e(6485),n.e(7443),n.e(5514),n.e(4192),n.e(9449),n.e(118),n.e(1596),n.e(265)]).then(n.bind(n,18696)),{loadableGenerated:{webpack:()=>[18696]}}),tj=s()(()=>n.e(7815).then(n.bind(n,67815)),{loadableGenerated:{webpack:()=>[67815]}}),tU=s()(()=>Promise.all([n.e(1692),n.e(6947)]).then(n.bind(n,6947)),{loadableGenerated:{webpack:()=>[6947]}}),tN=s()(()=>n.e(5747).then(n.bind(n,45747)),{loadableGenerated:{webpack:()=>[45747]}}),tF=s()(()=>n.e(4543).then(n.bind(n,14543)),{loadableGenerated:{webpack:()=>[14543]}}),tB=s()(()=>n.e(9967).then(n.bind(n,39967)),{loadableGenerated:{webpack:()=>[39967]}}),tz=s()(()=>Promise.all([n.e(8554),n.e(5916),n.e(5599),n.e(4766),n.e(2298),n.e(6848),n.e(3102),n.e(2584),n.e(7443),n.e(5514),n.e(860),n.e(5623)]).then(n.bind(n,45623)),{loadableGenerated:{webpack:()=>[45623]}}),t$=s()(()=>Promise.all([n.e(3988),n.e(6743),n.e(4766),n.e(9694),n.e(4316),n.e(6238),n.e(2940),n.e(4473),n.e(3102),n.e(8588),n.e(7634),n.e(3681),n.e(3300),n.e(8210),n.e(1692),n.e(6954)]).then(n.bind(n,66954)),{loadableGenerated:{webpack:()=>[66954]}}),tV=s()(()=>Promise.all([n.e(5916),n.e(5599),n.e(4248),n.e(3710),n.e(6743),n.e(8990),n.e(5180),n.e(6485),n.e(9307),n.e(1596),n.e(6796)]).then(n.bind(n,33564)),{loadableGenerated:{webpack:()=>[33564]}}),tH=s()(()=>Promise.all([n.e(5916),n.e(5599),n.e(3710),n.e(6743),n.e(4766),n.e(2298),n.e(6848),n.e(9694),n.e(4316),n.e(6238),n.e(4473),n.e(818),n.e(223),n.e(7634),n.e(7697),n.e(3241),n.e(7443),n.e(5514),n.e(6303),n.e(8156)]).then(n.bind(n,88156)),{loadableGenerated:{webpack:()=>[88156]}}),tW=s()(()=>Promise.all([n.e(5916),n.e(5599),n.e(4766),n.e(2298),n.e(6848),n.e(7443),n.e(5514),n.e(9065)]).then(n.bind(n,35198)),{loadableGenerated:{webpack:()=>[35198]}}
24),tG={accessToken:"VDWjQh1wjTybRQj7vxB5bwtt",use:[E.YB],components:{Index:tz,page:tV,Articolo:eX,IndexLemma:te,IndexCentenario:tt,IndexPodcast:tH,IndexMagazine:tr,IndexGalassia:tr,RichtextPage:tu,IndexNeologismi:tu,IndexListArticoli:tn,ListStorytellings:tT,Storytelling:td,IndexLanci:tr,PresentazioneSito:tr,Poem:tl,IndexMap:tS,IndexCards:ty,IndexAutori:tv,IndexParoleValgono:tx,ParoleValgonoClassifica:tI,ListAutori:tv,Evento:eZ,Notizia:tL,ListEventi:tk,ListEventiCustom:tk,ListNotizie:tC,MainArea:t_,ListMainArea:tE,Gallery:eX,IndexCatalogo:tb,ItemCatalogo:eX,PdfView:th,Neologismo:tM,WorkWithUs:eY,GridLayout:tN,BoxLancio:eG,feature:tF,grid:tB,layout:t$,HeroCarousel:e=>{let{blok:t}=e;(0,C.A)(I.A.breakpoints.down("lg"));let[n,i]=(0,o.useState)(null),a=(0,o.useRef)(null),s=(0,o.useRef)(null),l=(0,o.useRef)(null),[u,c]=(0,o.useState)([]),d=(0,E._8)(),h=async()=>{c((await Promise.all(t.items.map(async(e,t)=>{let n=v[e.component];if(!n)return null;{var r,i,o,a;let t=null;if("HeroCarouselItemCustom"===e.component)t=e;else if("HeroCarouselItemLemma"===e.component)try{t=(await (0,es.J)("term/".concat(null==e||null==(r=e.lemma)?void 0:r.url)).catch(e=>e.response)).data}catch(e){console.error("Errore nella chiamata asincrona:",e)}else if("HeroCarouselItemMagazineArticle"===e.component)try{t=null==(a=(await d.get("cdn/stories/".concat(null==e||null==(o=e.article)||null==(i=o.story)?void 0:i.id),en.YF)).data)?void 0:a.story}catch(e){console.error("Errore nella chiamata a Storyblok API:",e)}return t?{SlideComponent:n,slide:e,data:t}:null}}))).filter(e=>null!==e))};(0,o.useEffect)(()=>{h()},[t.items]);let p={slidesPerView:1,spaceBetween:0,modules:[L.Vx,L.Ij],loop:!0,draggable:!0,simulateTouch:!0,allowTouchMove:!0,touchMoveStopPropagation:!0,navigation:{prevEl:s.current?s.current:void 0,nextEl:l.current?l.current:void 0},breakpoints:{992:{slidesPerView:1,spaceBetween:0,autoPlay:!0}},onBeforeInit:e=>{a.current=e,i(e.activeIndex)},onSlideChange:e=>{i(e.activeIndex)}},f=(0,o.useRef)(null),[m,g]=(0,o.useState)(null);(0,o.useEffect)(()=>{f.current&&f.current.nextElementSibling&&g(f.current.nextElementSibling)},[]);let v={HeroCarouselItemCustom:X,HeroCarouselItemLemma:ee,HeroCarouselItemMagazineArticle:et};return(0,r.jsx)(T.A,{...(0,E.K1)(t),sx:{marginBottom:{lg:"-4vh"}},children:(0,r.jsxs)(D.RC,{...p,className:R().heroCarousel,children:[u.map((e,t)=>{var n;let i=v[null==(n=e.slide)?void 0:n.component];return(0,r.jsx)(D.qr,{children:i&&(0,r.jsx)(i,{blok:e})},"slide-"+t)}),(0,r.jsx)(_.A,{variant:"text",color:"primaryOnDark",endIcon:(0,r.jsx)(P.A,{className:"icon-arrow-down"}),ref:l,onClick:()=>{window.scrollBy({top:window.innerHeight/1.06,left:0,behavior:"smooth"})},className:R().scrollDown,"aria-label":ei()}),u.length>1?(0,r.jsxs)(M.A,{className:R().navigation,direction:"row",spacing:16,children:[(0,r.jsx)(_.A,{variant:"text",color:"primaryOnDark",endIcon:(0,r.jsx)(P.A,{className:"icon-left-arrow"}),ref:s,onClick:()=>{var e;return null==(e=a.current)?void 0:e.slidePrev()},"aria-label":eo.I()}),(0,r.jsx)(_.A,{variant:"text",color:"primaryOnDark",endIcon:(0,r.jsx)(P.A,{className:"icon-right-arrow"}),ref:l,onClick:()=>{var e;return null==(e=a.current)?void 0:e.slideNext()},"aria-label":ea.p()})]}):null]})})},Avviso:e9,Carousel:e8,Lanci:e0,LancioSingolo:to,Quote:e2,ImageText:eQ,VideoText:e5,Poesia:e4,EmbedSpreaker:e3,ListItems:e1,DoppioLancio:e$,MasonryCardLemma:eU,MasonryCardArticle:ej,CarouselAreeTematiche:tc,AlternateImageText:e6,GridCards:e7,Container:eD,Text:eN,Title:eF,Intro:ti,IntroWithIcon:tA,ModuloTesto:ta,Accordions:eV,Numeri:ts,NumeriItem:eW,Masonry:eH,MasonryCard:eL,Adv:eR,PdfViewer:ez,Tabella:eB,Autore:tf,Today:tD,Marquee:tP,Cards:tm,Embedded:tg,WebTv:tp,Playlist:tp,VideoListing:tw,PricingTable:tO,Subscription:tR,HPPresentation:eq,QuadGrid:tW,BannerWithLogoTreccani:eK,StepList:tj,StepListItem:eJ,DownloadAppLinks:tU},apiOptions:{region:""}};(0,E.YV)(tG);let tq=function(e){let{Component:t,pageProps:n}=e,a={...en.YF,preventClicks:!0},s=(0,i.useRouter)();(0,o.useEffect)(()=>{document.querySelectorAll('\n          td.richtext-table-cell div[data-component-name="paragraph-container"],\n          td.richtext-table-cell div[data-component-name="paragraph-grid-container"],\n          td.richtext-table-cell div[data-component-name="paragraph-grid-item"],\n          td.poem-richtext-table-cell div[data-component-name="paragraph-container"],\n          td.poem-richtext-table-cell div[data-component-name="paragraph-grid-container"],\n          td.poem-richtext-table-cell div[data-component-name="paragraph-grid-item"]\n      ').forEach(e
24=>{e.className=""}),document.body.classList.remove("data-hero-color");let e=()=>{document.body.classList.remove("invertHeader")};return s.events.on("routeChangeStart",e),()=>{s.events.off("routeChangeStart",e)}},[s]);let[l,u]=(0,o.useState)(null);if(n.preview)if("function"==typeof window.StoryblokBridge){let e=new window.StoryblokBridge(a);e.on(["published","change"],()=>{location.reload()}),e.on(["input"],e=>{u(e)})}else console.error("La libreria StoryblokBridge non \xe8 caricata.");return(0,r.jsx)(eM.G3,{reCaptchaKey:"6LdJ-nYqAAAAAD_9WaYbprXGzvnL_F2eNLkkFimL",scriptProps:{async:!1,defer:!1,appendTo:"head",nonce:void 0},children:(0,r.jsx)(ed.$,{localeText:eI.N.components.MuiLocalizationProvider.defaultProps.localeText,dateAdapter:eP,adapterLocale:"it",children:(0,r.jsx)(el.O,{children:(0,r.jsxs)(A,{theme:k.A,children:[(0,r.jsx)(ec(),{options:{easing:"ease",speed:500,showSpinner:!1},height:3,color:"#584446",startPosition:.3,stopDelayMs:200,showOnShallow:!0}),(0,r.jsx)(eO.n,{children:(0,r.jsx)(t$,{story:l?l.config:null==n?void 0:n.config,children:l?(0,r.jsx)(t,{...l}):(0,r.jsx)(t,{...n})})})]})})})})}},13453:(e,t,n)=>{"use strict";n.d(t,{II:()=>a,L4:()=>o,RT:()=>h,Wi:()=>d,YF:()=>r,ay:()=>l,ey:()=>u,gM:()=>i,ht:()=>c,iD:()=>s});let r={version:"published",resolve_links:"story"},i={...r,content_type:"WebTv",starts_with:"magazine/webtv/videos",page:1,per_page:4,sort_by:"first_published_at:desc",excluding_ids:"382936772",filter_query:{videoId:{not_in:""}}},o={...r,content_type:"WebTv",starts_with:"magazine/webtv/videos",page:1,per_page:4,sort_by:"content.views:desc",excluding_ids:"382936772",filter_query:{videoId:{not_in:""},views:{not_in:""}}},a=(e,t)=>({...r,content_type:"WebTv",starts_with:"magazine/webtv/videos",page:1,per_page:4,sort_by:"first_published_at:desc",excluding_ids:"382936772,".concat(t),filter_query:{videoId:{not_in:""},sezioni:{in:e}}});({...r,starts_with:"istituto/chi-siamo/profilo/persone/autori",content_type:"Autore"});let s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{...r,per_page:100,starts_with:e,is_startpage:!1,sort_by:"content.peso:asc",filter_query:{component:{in:"ParoleValgonoParola"}}}},l=(e,t,n,i,o)=>({...r,starts_with:"magazine/webtv/".concat(e),content_type:t,per_page:o,page:n,sort_by:i}),u=(e,t,n,i,o)=>({...r,starts_with:"magazine/webtv/".concat(e),per_page:o,page:n,filter_query:{component:{in:t}},sort_by:i}),c=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3?arguments[3]:void 0;return{...r,per_page:t,page:e,starts_with:n,sort_by:"first_published_at:desc",filter_query:{component:{in:i}}}},d=e=>({...r,...e}),h=()=>({...r})},13597:function(e){e.exports=function(e,t,n){t.prototype.isBetween=function(e,t,r,i){var o=n(e),a=n(t),s="("===(i=i||"()")[0],l=")"===i[1];return(s?this.isAfter(o,r):!this.isBefore(o,r))&&(l?this.isBefore(a,r):!this.isAfter(a,r))||(s?this.isBefore(o,r):!this.isAfter(o,r))&&(l?this.isAfter(a,r):!this.isBefore(a,r))}}},14443:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r="$$material"},15368:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,BO:()=>a,Yn:()=>o});var r=n(22538),i=n(93537);function o(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){let n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function a(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:o(e,n)||r,t&&(i=t(i,r,e)),i}let s=function(e){let{prop:t,cssProperty:n=e.prop,themeKey:s,transform:l}=e,u=e=>{if(null==e[t])return null;let u=e[t],c=o(e.theme,s)||{};return(0,i.NI)(e,u,e=>{let i=a(c,l,e);return(e===i&&"string"==typeof e&&(i=a(c,l,`${t}${"default"===e?"":(0,r.A)(e)}`,e)),!1===n)?i:{[n]:i}})};return u.propTypes={},u.filterProps=[t],u}},15546:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(55729),i=n(87905);let o=function(e=null){let t=r.useContext(i.T);return t&&0!==Object.keys(t).length?t:e}},15800:(e,t,n)=>{"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>r})}
24,15962:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r,i=n(55729),o=n(42752),a=n(48241),s=n(15546);let l=(r||(r=n.t(i,2))).useSyncExternalStore;function u(e,t={}){let n=(0,s.A)(),r="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:c=!1,matchMedia:d=r?window.matchMedia:null,ssrMatchMedia:h=null,noSsr:p=!1}=(0,a.A)({name:"MuiUseMediaQuery",props:t,theme:n}),f="function"==typeof e?e(n):e;return(void 0!==l?function(e,t,n,r,o){let a=i.useCallback(()=>t,[t]),s=i.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(null!==r){let{matches:t}=r(e);return()=>t}return a},[a,e,r,o,n]),[u,c]=i.useMemo(()=>{if(null===n)return[a,()=>()=>{}];let t=n(e);return[()=>t.matches,e=>(t.addListener(e),()=>{t.removeListener(e)})]},[a,n,e]);return l(c,u,s)}:function(e,t,n,r,a){let[s,l]=i.useState(()=>a&&n?n(e).matches:r?r(e).matches:t);return(0,o.A)(()=>{let t=!0;if(!n)return;let r=n(e),i=()=>{t&&l(r.matches)};return i(),r.addListener(i),()=>{t=!1,r.removeListener(i)}},[e,n]),s})(f=f.replace(/^@media( ?)/m,""),c,d,h,p)}},16361:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}},16492:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(46720);function i(e,t,n="Mui"){let o={};return t.forEach(t=>{o[t]=(0,r.Ay)(e,t,n)}),o}},17377:(e,t,n)=>{"use strict";n.d(t,{A:()=>E});var r=n(1983),i=n(99410),o=n(55729),a=n(50212),s=n(25060),l=n(46720),u=n(17582),c=n(4894),d=n(21446),h=n(21834),p=n(93479),f=n(93537),m=n(71405),g=n(6029);let v=["component","direction","spacing","divider","children","className","useFlexGap"],y=(0,p.A)(),b=(0,c.A)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function w(e){return(0,d.A)({props:e,name:"MuiStack",defaultTheme:y})}let S=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],x=({ownerState:e,theme:t})=>{let n=(0,i.A)({display:"flex",flexDirection:"column"},(0,f.NI)({theme:t},(0,f.kW)({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e})));if(e.spacing){let r=(0,m.LX)(t),i=Object.keys(t.breakpoints.values).reduce((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t),{}),o=(0,f.kW)({values:e.direction,base:i}),a=(0,f.kW)({values:e.spacing,base:i});"object"==typeof o&&Object.keys(o).forEach((e,t,n)=>{if(!o[e]){let r=t>0?o[n[t-1]]:"column";o[e]=r}}),n=(0,s.A)(n,(0,f.NI)({theme:t},a,(t,n)=>e.useFlexGap?{gap:(0,m._W)(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${S(n?o[n]:e.direction)}`]:(0,m._W)(r,t)}}))}return(0,f.iZ)(t.breakpoints,n)};var A=n(50787),k=n(52526);let E=function(e={}){let{createStyledComponent:t=b,useThemeProps:n=w,componentName:s="MuiStack"}=e,c=()=>(0,u.A)({root:["root"]},e=>(0,l.Ay)(s,e),{}),d=t(x);return o.forwardRef(function(e,t){let s=n(e),l=(0,h.A)(s),{component:u="div",direction:p="column",spacing:f=0,divider:m,children:y,className:b,useFlexGap:w=!1}=l,S=(0,r.A)(l,v),x=c();return(0,g.jsx)(d,(0,i.A)({as:u,ownerState:{direction:p,spacing:f,useFlexGap:w},ref:t,className:(0,a.A)(x.root,b)},S,{children:m?function(e,t){let n=o.Children.toArray(e).filter(Boolean);return n.reduce((e,r,i)=>(e.push(r),i<n.length-1&&e.push(o.cloneElement(t,{key:`separator-${i}`})),e),[])}(y,m):y}))})}({createStyledComponent:(0,A.Ay)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,k.b)({props:e,name:"MuiStack"})})},17582:(e,t,n)=>{"use strict";function r(e,t,n){let r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((e,r)=>{if(r){let i=t(r);""!==i&&e.push(i),n&&n[r]&&e.push(n[r])}return e},[]).join(" ")}),r}n.d(t,{A:()=>r})},19375:e=>{"use strict";let{entries:t,setPrototypeOf:n,isFrozen:r,getPrototypeOf:i,getOwnPropertyDescriptor:o}=Object,{freeze:a,seal:s,create:l}=Object,{apply:u,construct:c}="undefined"!=typeof Reflect&&Reflect;a||(a=function(e){return e}),s||(s=function(e){return e}),u||(u=function(e,t,n){return e.apply(t,n)}),c||(c=function(e,t){return new e(...t)});let d=E(Array.prototype.forEach),h=E(Array.prototype.lastIndexOf),p=E(Array.prototype.pop),f=E(Array.prototype.push),m=E(Array.prototype.splice),g=E(String.prototype.toLowerCase),v=E(String.prototype.toString),y=E(String.prototype.match),b=E(String.prototype.replace),w=E(String.prototype.indexOf),S=E(String.prototype.trim),x=E(Object.prototype.hasOwnProperty),A=E(RegExp.prototype.test),k=(K=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return c(K,t)});function E(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return u(e,t,r)}}function C(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;n&&n(e,null);let o=t.length;for(;o--;){let n=t[o];if("string"==typeof n){let e=i(n);e!==n&&(r(t)||(t[o]=e),n=e)}e[n]=!0}return e}function T(e){let n=l(null);for(let[r,i]of t(e))x(e,r)&&(Array.isArray(i)?n[r]=function(e){for(let t=0;t<e.length;t++)x(e,t)||(e[t]=null);return e}(i):i&&"object"==typeof i&&i.constructor===Object?n[r]=T(i):n[r]=i);return n}function _(e,t){for(;null!==e;){let n=o(e,t);if(n){if(n.get)return E(n.get);if("function"==typeof n.value)return E(n.value)}e=i(e)}return function(){return null}}let P=a(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),M=a(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),I=a(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),O=a(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),R=a(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),D=a(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),L=a(["#text"]),j=a(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
24spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),U=a(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),N=a(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),F=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),B=s(/\{\{[\w\W]*|[\w\W]*\}\}/gm),z=s(/<%[\w\W]*|[\w\W]*%>/gm),$=s(/\$\{[\w\W]*/gm),V=s(/^data-[\-\w.\u00B7-\uFFFF]+$/),H=s(/^aria-[\-\w]+$/),W=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),G=s(/^(?:\w+script|data):/i),q=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Y=s(/^html$/i);var K,J=Object.freeze({__proto__:null,ARIA_ATTR:H,ATTR_WHITESPACE:q,CUSTOM_ELEMENT:s(/^[a-z][.\w]*(-[.\w]+)+$/i),DATA_ATTR:V,DOCTYPE_NAME:Y,ERB_EXPR:z,IS_ALLOWED_URI:W,IS_SCRIPT_OR_DATA:G,MUSTACHE_EXPR:B,TMPLIT_EXPR:$});let X={element:1,text:3,progressingInstruction:7,comment:8,document:9},Z=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}},Q=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};e.exports=function e(){let n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,i=t=>e(t);if(i.version="3.2.5",i.removed=[],!r||!r.document||r.document.nodeType!==X.document||!r.Element)return i.isSupported=!1,i;let{document:o}=r,s=o,u=s.currentScript,{DocumentFragment:c,HTMLTemplateElement:E,Node:B,Element:z,NodeFilter:$,NamedNodeMap:V=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:H,DOMParser:G,trustedTypes:q}=r,K=z.prototype,ee=_(K,"cloneNode"),et=_(K,"remove"),en=_(K,"nextSibling"),er=_(K,"childNodes"),ei=_(K,"parentNode");if("function"==typeof E){let e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let eo="",{implementation:ea,createNodeIterator:es,createDocumentFragment:el,getElementsByTagName:eu}=o,{importNode:ec}=s,ed=Q();i.isSupported="function"==typeof t&&"function"==typeof ei&&ea&&void 0!==ea.createHTMLDocument;let{MUSTACHE_EXPR:eh,ERB_EXPR:ep,TMPLIT_EXPR:ef,DATA_ATTR:em,ARIA_ATTR:eg,IS_SCRIPT_OR_DATA:ev,ATTR_WHITESPACE:ey,CUSTOM_ELEMENT:eb}=J,{IS_ALLOWED_URI:ew}=J,eS=null,ex=C({},[...P,...M,...I,...R,...L]),eA=null,ek=C({}
24,[...j,...U,...N,...F]),eE=Object.seal(l(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),eC=null,eT=null,e_=!0,eP=!0,eM=!1,eI=!0,eO=!1,eR=!0,eD=!1,eL=!1,ej=!1,eU=!1,eN=!1,eF=!1,eB=!0,ez=!1,e$=!0,eV=!1,eH={},eW=null,eG=C({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),eq=null,eY=C({},["audio","video","img","source","image","track"]),eK=null,eJ=C({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),eX="http://www.w3.org/1998/Math/MathML",eZ="http://www.w3.org/2000/svg",eQ="http://www.w3.org/1999/xhtml",e0=eQ,e1=!1,e2=null,e5=C({},[eX,eZ,eQ],v),e4=C({},["mi","mo","mn","ms","mtext"]),e3=C({},["annotation-xml"]),e6=C({},["title","style","font","a","script"]),e9=null,e8=["application/xhtml+xml","text/html"],e7=null,te=null,tt=o.createElement("form"),tn=function(e){return e instanceof RegExp||e instanceof Function},tr=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!te||te!==e){if(e&&"object"==typeof e||(e={}),e=T(e),e7="application/xhtml+xml"===(e9=-1===e8.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?v:g,eS=x(e,"ALLOWED_TAGS")?C({},e.ALLOWED_TAGS,e7):ex,eA=x(e,"ALLOWED_ATTR")?C({},e.ALLOWED_ATTR,e7):ek,e2=x(e,"ALLOWED_NAMESPACES")?C({},e.ALLOWED_NAMESPACES,v):e5,eK=x(e,"ADD_URI_SAFE_ATTR")?C(T(eJ),e.ADD_URI_SAFE_ATTR,e7):eJ,eq=x(e,"ADD_DATA_URI_TAGS")?C(T(eY),e.ADD_DATA_URI_TAGS,e7):eY,eW=x(e,"FORBID_CONTENTS")?C({},e.FORBID_CONTENTS,e7):eG,eC=x(e,"FORBID_TAGS")?C({},e.FORBID_TAGS,e7):{},eT=x(e,"FORBID_ATTR")?C({},e.FORBID_ATTR,e7):{},eH=!!x(e,"USE_PROFILES")&&e.USE_PROFILES,e_=!1!==e.ALLOW_ARIA_ATTR,eP=!1!==e.ALLOW_DATA_ATTR,eM=e.ALLOW_UNKNOWN_PROTOCOLS||!1,eI=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,eO=e.SAFE_FOR_TEMPLATES||!1,eR=!1!==e.SAFE_FOR_XML,eD=e.WHOLE_DOCUMENT||!1,eU=e.RETURN_DOM||!1,eN=e.RETURN_DOM_FRAGMENT||!1,eF=e.RETURN_TRUSTED_TYPE||!1,ej=e.FORCE_BODY||!1,eB=!1!==e.SANITIZE_DOM,ez=e.SANITIZE_NAMED_PROPS||!1,e$=!1!==e.KEEP_CONTENT,eV=e.IN_PLACE||!1,ew=e.ALLOWED_URI_REGEXP||W,e0=e.NAMESPACE||eQ,e4=e.MATHML_TEXT_INTEGRATION_POINTS||e4,e3=e.HTML_INTEGRATION_POINTS||e3,eE=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&tn(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(eE.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&tn(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(eE.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(eE.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),eO&&(eP=!1),eN&&(eU=!0),eH&&(eS=C({},L),eA=[],!0===eH.html&&(C(eS,P),C(eA,j)),!0===eH.svg&&(C(eS,M),C(eA,U),C(eA,F)),!0===eH.svgFilters&&(C(eS,I),C(eA,U),C(eA,F)),!0===eH.mathMl&&(C(eS,R),C(eA,N),C(eA,F))),e.ADD_TAGS&&(eS===ex&&(eS=T(eS)),C(eS,e.ADD_TAGS,e7)),e.ADD_ATTR&&(eA===ek&&(eA=T(eA)),C(eA,e.ADD_ATTR,e7)),e.ADD_URI_SAFE_ATTR&&C(eK,e.ADD_URI_SAFE_ATTR,e7),e.FORBID_CONTENTS&&(eW===eG&&(eW=T(eW)),C(eW,e.FORBID_CONTENTS,e7)),e$&&(eS["#text"]=!0),eD&&C(eS,["html","head","body"]),eS.table&&(C(eS,["tbody"]),delete eC.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw k('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw k('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');eo=(n=e.TRUSTED_TYPES_POLICY).createHTML("")}else void 0===n&&(n=Z(q,u)),null!==n&&"string"==typeof eo&&(eo=n.createHTML(""));a&&a(e),te=e}},ti=C({},[...M,...I,...O]),to=C({},[...R,...D]),ta=function(e){let t=ei(e);t&&t.tagName||(t={namespaceURI:e0,tagName:"template"});let n=g(e.tagName),r=g(t.tagName);return!!e2[e.namespaceURI]&&(e.namespaceURI===eZ?t.namespaceURI===eQ?"svg"===n:t.namespaceURI===eX?"svg"===n&&("annotation-xml"===r||e4[r]):!!ti[n]:e.namespaceURI===eX?t.namespaceURI===eQ?"math"===n:t.namespaceURI===eZ?"math"===n&&e3[r]:!!to[n]:e.namespaceURI===eQ?(t.namespaceURI!==eZ||!!e3[r])&&(t.namespaceURI!==eX||!!e4[r])&&!to[n]&&(e6[n]||!ti[n]):"application/xhtml+xml"===e9&&!!e2[e.namespaceURI])},ts=function(e){f(i.removed,{element:e});try{ei(e).removeChild(e)}catch(t){et(e)}},tl=function(e,t){try{f(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){f(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(eU||eN)try{ts(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},tu=function(e){let t=null,r=null;if(ej)e="<remove></remove>"+e;else{let t=y(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===e9&&e0===eQ&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let i=n?n.createHTML(e):e;if(e0===eQ)try{t=new G().parseFromString(i,e9)}catch(e){}if(!t||!t.documentElement){t=ea.createDocument(e0,"template",null);try{t.documentElement.innerHTML=e1?eo:i}catch(e){}}let a=t.body||t.documentElement;return(e&&r&&a.insertBefore(o.createTextNode(r),a.childNodes[0]||null),e0===eQ)?eu.call(t,eD?"html":"body")[0]:eD?t.documentElement:a},tc=function(e){return es.call(e.ownerDocument||e,e,$.SHOW_ELEMENT|$.SHOW_COMMENT|$.SHOW_TEXT|$.SHOW_PROCESSING_INSTRUCTION|$.SHOW_CDATA_SECTION,null)},td=function(e){return e instanceof H&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof V)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},th=function(e){return"function"==typeof B&&e instanceof B};function tp(e,t,n){d(e,e=>{e.call(i,t,n,te)})}let tf=function(e){let t=null;if(tp(ed.beforeSanitizeElements,e,null),td(e))return ts(e),!0;let n=e7(e.nodeName);if(tp(ed.uponSanitizeElement,e,{tagName:n,allowedTags:eS}),e.hasChildNodes()&&!th(e.firstElementChild)&&A(/<[/\w!]/g,e.innerHTML)&&A(/<[/\w!]/g,e.textContent)||e.nodeType===X.progressingInstruction||eR&&e.nodeType===X.comment&&A(/<[/\w]/g,e.data))return ts(e),!0;if(!eS[n]||eC[n]){if(!eC[n]&&tg(n)&&(eE.tagNameCheck instanceof RegExp&&A(eE.tagNameCheck,n)||eE.tagNameCheck instanceof Function&&eE.tagNameCheck(n)))return!1;if(e$&&!eW[n]){let t=ei(e)||e.parentNode,n=er(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=ee(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,en(e))}}}return ts(e),!0}return e instanceof z&&!ta(e)||("noscript"===n||"noembed"===n||"noframes"===n)&&A(/<\/no(script|embed|frames)/i,e.innerHTML)?(ts(e),!0):(eO&&e.nodeType===X.text&&(t=e.textContent,d([eh,ep,ef],e=>{t=b(t,e," ")}),e.textContent!==t&&(f(i.removed,{element:e.cloneNode()}),e.textContent=t)),tp(ed.afterSanitizeElements,e,null),!1)},tm=function(e,t,n){if(eB&&("id"===t||"name"===t)&&(n in o||n in tt))return!1;if(eP&&!eT[t]&&A(em,t));else if(e_&&A(eg,t));else if(!eA[t]||eT[t]){if(!(tg(e)&&(eE.tagNameCheck instanceof RegExp&&A(eE.tagNameCheck,e)||eE.tagNameCheck instanceof Function&&eE.tagNameCheck(e))&&(eE.attributeNameCheck instanceof RegExp&&A(eE.attributeNameCheck,t)||eE.attributeNameCheck instanceof Function&&eE.attributeNameCheck(t))||"is"===t&&eE.allowCustomizedBuiltInElements&&(eE.tagNameCheck instanceof RegExp&&A(eE.tagNameCheck,n)||eE.tagNameCheck instanceof Function&&eE.tagNameCheck(n))))return!1}else if(eK[t]);else if(A(ew,b(n,ey,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===w(n,"data:")&&eq[e]);else if(eM&&!A(ev,b(n,ey,"")));else if(n)return!1;return!0},tg=function(e){return"annotation-xml"!==e&&y(e,eb)},tv=function(e){tp(ed.beforeSanitizeAttributes,e,null);let{attributes:t}=e;if(!t||td(e))return;let r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:eA,forceKeepAttr:void 0},o=t.length;for(;o--;){let{name:a,namespaceURI:s,value:l}=t[o],u=e7(a),c="value"===a?l:S(l);if(r.attrName=u,r.attrValue=c,r.keepAttr=!0,r.forceKeepAttr=void 0,tp(ed.uponSanitizeAttribute,e,r),c=r.attrValue,ez&&("id"===u||"name"===u)&&(tl(a,e),c="user-content-"+c),eR&&A(/((--!?|])>)|<\/(style|title)/i,c)){tl(a,e);continue}if(r.forceKeepAttr||(tl(a,e),!r.keepAttr))continue;if(!eI&&A(/\/>/i,c)){tl(a,e);continue}eO&&d([eh,ep,ef],e=>{c=b(c,e," ")});let h=e7(e.nodeName);if(tm(h,u,c)){if(n&&"object"==typeof q&&"function"==typeof q.getAttributeType)if(s);else switch(q.getAttributeType(h,u)){case"TrustedHTML":c=n.createHTML(c);break;case"TrustedScriptURL":c=n.createScriptURL(c)}try{s?e.setAttributeNS(s,a,c):e.setAttribute(a,c),td(e)?ts(e):p(i.removed)}catch(e){}}}tp(ed.afterSanitizeAttributes,e,null)},ty=function e(t){let n=null,r=tc(t);for(tp(ed.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)tp(ed.uponSanitizeShadowNode,n,null),tf(n),tv(n),n.content instanceof c&&e(n.content);tp(ed.afterSanitizeShadowDOM,t,null)};return i.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,o=null,a=null,l=null;if((e1=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!th(e))if("function"==typeof e.toString){if("string"!=typeof(e=e.toString()))throw k("dirty is not a string, aborting")}else throw k("toString is not a function");if(!i.isSupported)return e;if(eL||tr(t),i.removed=[],"string"==typeof e&&(eV=!1),eV){if(e.nodeName){let t=e7(e.nodeName);if(!eS[t]||eC[t])throw k("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof B)(o=(r=tu("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType===X.element&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o);else{if(!eU&&!eO&&!eD&&-1===e.indexOf("<"))return n&&eF?n.createHTML(e):e;if(!(r=tu(e)))return eU?null:eF?eo:""}r&&ej&&ts(r.firstChild);let u=tc(eV?e:r);for(;a=u.nextNode();)tf(a),tv(a),a.content instanceof c&&ty(a.content);if(eV)return e;
24if(eU){if(eN)for(l=el.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(eA.shadowroot||eA.shadowrootmode)&&(l=ec.call(s,l,!0)),l}let h=eD?r.outerHTML:r.innerHTML;return eD&&eS["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&A(Y,r.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+h),eO&&d([eh,ep,ef],e=>{h=b(h,e," ")}),n&&eF?n.createHTML(h):h},i.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};tr(e),eL=!0},i.clearConfig=function(){te=null,eL=!1},i.isValidAttribute=function(e,t,n){return te||tr({}),tm(e7(e),e7(t),n)},i.addHook=function(e,t){"function"==typeof t&&f(ed[e],t)},i.removeHook=function(e,t){if(void 0!==t){let n=h(ed[e],t);return -1===n?void 0:m(ed[e],n,1)[0]}return p(ed[e])},i.removeHooks=function(e){ed[e]=[]},i.removeAllHooks=function(){ed=Q()},i}()},19783:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=n(55729).createContext(void 0)},20023:()=>{},20618:(e,t,n)=>{"use strict";n.d(t,{x:()=>o});var r=n(74312),i=n.n(r);let o=e=>{if(!e||(null==e?void 0:e.length)===0)return{};let t=e.map(e=>{let[t,n,r,o,s,l,u,c,d]=e.split("_");return n&&r&&o&&s&&l&&u&&c&&d?{codeName:n,name:a(n),duration:r,transactionId:o,startDate:i()(s).format("DD/MM/YYYY"),expirationDate:i()(l).format("DD/MM/YYYY"),renewalOn:"RENEWAL-ON"===u,price:(parseInt(c)/100).toFixed(2).replace(".",","),currency:d.toLowerCase()}:null}).filter(e=>null!==e&&s(null==e?void 0:e.expirationDate)),n={};return t.forEach(e=>n[e.codeName]={...e}),n},a=e=>"ZEROADS"===e?"Zero pubblicit\xe0":e,s=e=>!!e&&(i()().isSame(i()(e,"DD/MM/YYYY"),"day")||i()().isBefore(i()(e,"DD/MM/YYYY")))},21015:function(e){e.exports=function(){"use strict";var e="week",t="year";return function(n,r,i){var o=r.prototype;o.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var o=i(this).startOf(t).add(1,t).date(r),a=i(this).endOf(e);if(o.isBefore(a))return 1}var s=i(this).startOf(t).date(r).startOf(e).subtract(1,"millisecond"),l=this.diff(s,e,!0);return l<0?i(this).startOf("week").week():Math.ceil(l)},o.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()},21446:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(48241),i=n(43795);function o({props:e,name:t,defaultTheme:n,themeId:o}){let a=(0,i.A)(n);return o&&(a=a[o]||a),(0,r.A)({theme:a,name:t,props:e})}},21834:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(99410),i=n(1983),o=n(25060),a=n(93978);let s=["sx"],l=e=>{var t,n;let r={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:a.A;return Object.keys(e).forEach(t=>{i[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]}),r};function u(e){let t,{sx:n}=e,{systemProps:a,otherProps:u}=l((0,i.A)(e,s));return t=Array.isArray(n)?[a,...n]:"function"==typeof n?(...e)=>{let t=n(...e);return(0,o.Q)(t)?(0,r.A)({},a,t):a}:(0,r.A)({},a,n),(0,r.A)({},u,{sx:t})}},22284:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return r}});let r=n(14761)._(n(55729)).default.createContext(null)},22538:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(49484);function i(e){if("string"!=typeof e)throw Error((0,r.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},25060:(e,t,n)=>{"use strict";n.d(t,{A:()=>function e(t,n,a={clone:!0}){let s=a.clone?(0,r.A)({},t):t;return o(t)&&o(n)&&Object.keys(n).forEach(r=>{i.isValidElement(n[r])?s[r]=n[r]:o(n[r])&&Object.prototype.hasOwnProperty.call(t,r)&&o(t[r])?s[r]=e(t[r],n[r],a):a.clone?s[r]=o(n[r])?function e(t){if(i.isValidElement(t)||!o(t))return t;let n={};return Object.keys(t).forEach(r=>{n[r]=e(t[r])}),n}(n[r]):n[r]:s[r]=n[r]}),s},Q:()=>o});var r=n(99410),i=n(55729);function o(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}},25814:(e,t,n)=>{"use strict";n.d(t,{E:()=>a,A:()=>s});var r=n(55729);let i={},o=[];class a{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new a}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function s(){var e;let t=function(e,t){let n=r.useRef(i);return n.current===i&&(n.current=e(void 0)),n}(a.create).current;return e=t.disposeEffect,r.useEffect(e,o),t}},25937:(e,t,n)=>{"use strict";n.d(t,{J:()=>
24o,b:()=>a});var r=n(75119);let i="it-IT",o=(e,t)=>{let n={...t,lang:i};return r.A.get("https://frontend-api.treccani.it/"+e,{params:n})},a=(e,t,n)=>{let o={...t,lang:i};return r.A.post("https://frontend-api.treccani.it/"+e,o,n)}},26786:(e,t,n)=>{"use strict";n.d(t,{CG:()=>v,Ho:()=>c,PA:()=>w,Q0:()=>d,VE:()=>g,XJ:()=>o,Yn:()=>f,Zr:()=>u,dS:()=>m,eZ:()=>b,l:()=>h,lG:()=>a,nj:()=>s,tL:()=>p,w7:()=>y,yb:()=>l});var r=n(26927),i=n(72570);let o=()=>{let e=document.createElement("div");e.style.visibility="hidden",e.style.overflowY="scroll",document.body.appendChild(e);let t=document.createElement("div");e.appendChild(t);let n=e.offsetWidth-t.offsetWidth;return e.parentNode.removeChild(e),n},a=e=>Math.ceil(e.split(/\s+/).length/225),s=e=>{var t,n,i;let o=null==e||null==(t=e.split(" "))?void 0:t.filter(Boolean),a="";return(null==o?void 0:o.length)>0&&(a+=null==(n=o[0][0])?void 0:n.toUpperCase(),o.length>1&&(a+=null==(i=o[1][0])?void 0:i.toUpperCase())),{sx:{bgcolor:r.A.palette.common.white,color:r.A.palette.common.black},children:a}},l=e=>e.split("/").pop().split(".")[0].replace(/[_-]/g," "),u=e=>{var t,n;return(null==e||null==(t=e.charAt(0))?void 0:t.toUpperCase())+(null==e||null==(n=e.slice(1))?void 0:n.toLowerCase())},c=(e,t)=>{let n=(e.startsWith("/")?e.split("/"):"/".concat(e).split("/"))[2],r=t?t.replace(/\s+/g,"-").toLowerCase():"";return t&&n?"/enciclopedia/tag/".concat(r,"/").concat(u(n)):""},d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return(null==e?void 0:e.toString())===""?e:(e=e?null==e?void 0:e.toString().replace(/<img.*?\/>/g,""):null)?(null==e?void 0:e.length)<=t?e:"".concat(null==e?void 0:e.substring(0,t),"..."):null},h=e=>e.split("/").filter(e=>""!==e.trim()).length,p=(e,t,n)=>{var r=RegExp("([?&])"+t+"=.*?(&|$)","i"),i=-1!==e.indexOf("?")?"&":"?";return e.match(r)?e.replace(r,"$1"+t+"="+n+"$2"):e+i+t+"="+n},f=e=>{try{return new URL(e,window.location.origin).pathname}catch(e){return null}},m=e=>e?function e(t){return"string"==typeof t?t:Array.isArray(t)?t.map(e).join(""):t.props&&t.props.children?e(t.props.children):""}((0,i.Ay)(e,{replace:e=>{if("b"===e.name)return e.children}})):"",g=e=>new DOMParser().parseFromString(e,"text/html").body.textContent||"",v=(e,t,n)=>{let r=e.includes("?")?"&":"?";return"".concat(e).concat(r).concat(t,"=").concat(n)},y=e=>{let t=document.createElement("div");t.innerHTML=e;let n=t.querySelector("img");return n?n.getAttribute("src"):null},b=e=>{let[t,n,r]=e.match(/\w\w/g).map(e=>parseInt(e,16));return .299*t+.587*n+.114*r>128?"common.black":"common.white"},w=(e,t)=>{let n=document.getElementById(e),r=n&&n.getBoundingClientRect().top+window.scrollY;n&&window.scrollTo({top:r-t,behavior:"smooth"})}},26927:(e,t,n)=>{"use strict";n.d(t,{A:()=>F});var r=n(42734),i=n(62447);let o=e=>({borderRadius:e.spacing(80),minWidth:"auto",fontFamily:"Montserrat, sans-serif",display:"inline-flex",alignItems:"center",justifyContent:"center",textTransform:"uppercase",".buttonText":{padding:e.spacing(1.5,0)}}),a=(e,t)=>({margin:0,svg:{width:t.spacing(24),height:t.spacing(24)},justifyContent:"center",alignItems:"center",transition:"background .1s ease-in-out",flexShrink:0,..."outlined"===e.variant&&{"&:hover":{svg:{path:{fill:"red"}}}},..."text"===e.variant&&{borderWidth:t.spacing(1),borderStyle:"solid",borderRadius:"50%",width:t.spacing(48),height:t.spacing(48)}}),s=e=>({defaultProps:{variant:"outlined",color:"primary",size:"large"},styleOverrides:{root:t=>{let{ownerState:n}=t,r=n.disabled;r?e.palette.alphaBlack["30"]:e.palette.common.white;let i={};switch(n.color){case"primary":i={...i,color:e.palette.black["900"],borderColor:e.palette.primary.main,"&.hover, :hover, :focus-visible":{backgroundColor:e.palette.common.black,borderColor:e.palette.common.black,color:"text"===n.variant?e.palette.black["900"]:e.palette.common.white},":disabled":{color:e.palette.black["400"],borderColor:e.palette.black["400"]},":after":{backgroundColor:e.palette.common.black},..."outlined"===n.variant&&{...(n.startIcon||n.endIcon)&&{"&:hover":{svg:{fill:e.palette.common.white,path:{fill:e.palette.common.white}}}}},..."text"===n.variant&&{flexDirection:"column","&.hover, :hover":{fontWeight:"600"},"&:before":{content:'"'.concat(n.children,'"'),height:0,visibility:"hidden",overflow:"hidden",userSelect:"none",pointerEvents:"none",fontWeight:"600"},"&:after":{height:n.startIcon||n.endIcon?0:e.spacing(1)},...(n.startIcon||n.endIcon)&&{flexDirection:"row",fontWeight:"normal",gap:e.spacing(8),".MuiButton-startIcon,.Mu
24iButton-endIcon":{borderColor:r?e.palette.alphaBlack["30"]:e.palette.common.black},"&:before":{content:"none"},"&.hover, :hover":{fontWeight:"normal",backgroundColor:"transparent",".MuiButton-startIcon,.MuiButton-endIcon":{backgroundColor:e.palette.common.black,color:e.palette.common.white}}}},..."inline"===n.variant&&{"&.hover, :hover, :focus-visible":{backgroundColor:"transparent",color:e.palette.alphaBlack["80"]}},..."nude"===n.variant&&{border:"none !important"},..."action"===n.variant&&{border:"transparent !important",backgroundColor:"transparent !important",padding:0,svg:{width:e.spacing(48),height:e.spacing(48)},"&.hover, :hover, :focus-visible":{backgroundColor:"transparent !important",color:"inherit !important"},"*":{borderColor:"transparent"}}};break;case"primaryOnDark":i={...i,color:e.palette.common.white,borderColor:e.palette.common.white,"&.hover, :hover, :focus-visible":{backgroundColor:e.palette.common.white,borderColor:e.palette.common.white,color:"text"===n.variant?e.palette.common.white:e.palette.common.black},":disabled":{color:e.palette.alphaWhite["50"],borderColor:e.palette.alphaWhite["50"]},":after":{backgroundColor:e.palette.common.white},..."text"===n.variant&&{flexDirection:"column",".hover, :hover":{fontWeight:"600"},"&:before":{content:'"'.concat(n.children,'"'),height:0,visibility:"hidden",overflow:"hidden",userSelect:"none",pointerEvents:"none",fontWeight:"600"},"&:after":{height:n.startIcon||n.endIcon?0:e.spacing(1)},...(n.startIcon||n.endIcon)&&{flexDirection:"row",fontWeight:"normal",gap:e.spacing(8),borderColor:r?e.palette.alphaBlack["30"]:e.palette.common.white,".MuiButton-startIcon,.MuiButton-endIcon":{borderColor:r?e.palette.alphaBlack["30"]:e.palette.common.white},"&:before":{content:"none"},":disabled":{color:e.palette.alphaWhite["50"],".MuiButton-startIcon,.MuiButton-endIcon":{borderColor:e.palette.alphaWhite["50"],color:e.palette.alphaWhite["50"]}},"&.hover, :hover":{fontWeight:"normal",backgroundColor:"transparent",".MuiButton-startIcon,.MuiButton-endIcon":{backgroundColor:e.palette.common.white,color:e.palette.common.black}}}},..."inline"===n.variant&&{"&.hover, :hover, :focus-visible":{backgroundColor:"transparent",color:e.palette.common.white}}};break;case"secondary":i={...i,color:e.palette.black["900"],borderColor:"transparent","&.hover, :hover, :focus-visible":{backgroundColor:e.palette.common.black,borderColor:e.palette.common.black,color:e.palette.common.white},":disabled":{color:e.palette.black["400"],borderColor:"transparent"},..."text"===n.variant&&{fontWeight:"600","&.hover, :hover":{color:e.palette.common.black},"&:before":{content:"none"},"&:after":{height:e.spacing(0)},...(n.startIcon||n.endIcon)&&{gap:e.spacing(8),".MuiButton-startIcon,.MuiButton-endIcon":{border:"none",borderColor:r?e.palette.alphaBlack["30"]:e.palette.common.black,width:"auto",height:"auto"},"&.hover, :hover":{color:e.palette.common.black,".MuiButton-startIcon,.MuiButton-endIcon":{color:e.palette.common.black}}}}};break;case"secondaryOnDark":i={...i,color:e.palette.common.white,borderColor:"transparent","&.hover, :hover, :focus-visible":{backgroundColor:e.palette.common.white,borderColor:e.palette.common.white,color:e.palette.common.black},":disabled":{color:e.palette.black["400"],borderColor:"transparent"},..."text"===n.variant&&{fontWeight:"600",":hover":{color:e.palette.common.white},"&:before":{content:"none"},"&:after":{height:e.spacing(0)},...(n.startIcon||n.endIcon)&&{gap:e.spacing(8),".MuiButton-startIcon,.MuiButton-endIcon":{border:"none",borderColor:r?e.palette.alphaBlack["30"]:e.palette.common.white,width:"auto",height:"auto"},":hover":{color:e.palette.common.white,".MuiButton-startIcon,.MuiButton-endIcon":{color:e.palette.common.white}}}}}}return i},startIcon:t=>{let{ownerState:n}=t;return a(n,e)},endIcon:t=>{let{ownerState:n}=t;return a(n,e)}},variants:[{props:{variant:"outlined"},style:{...o(e)}},{props:{variant:"text"},style:{...o(e),padding:0,fontSize:e.spacing(14),lineHeight:e.spacing(22),minWidth:"unset",position:"relative",display:"inline-flex",alignItems:"center","&.hover, :hover, :active, :focus-within, .active":{".buttonText:after":{transform:"scale(1)",borderBottomColor:e.palette.primary.main}},".buttonText":{position:"relative","&:after":{content:'""',position:"absolute",width:"100%",borderBottom:"".concat(e.spacing(2)," solid transparent"),bottom:e.spacing(-6),left:0,transform:"scale(0)",transition:"transform 0.25s"}},"&:after":{display:"block",position:"absolute",bottom:0,left:"50%",transform:"translateX(-50%)",content:'""',width:e.spacing(24),opacity:0,transition:"opacity .25s"},"&.hover, :hover, :focus-visible":{backgroundColor:"transparent",svg:{color:e.palette.common.black},"&:after":{opacity:1}},"&.Mui-disabled":{color:e.palette.black["30"],svg:{color:e.palette.black["30"]}}}},{props:{variant:"outlined",size:"large"},style:{...o(e),fontSize:e.spacing(32),padding:e.spacing(7,24,5),lineHeight:e.spacing(32)}},{props:{variant:"outlined",size:"small"},style:{...o(e),fontSize:e.spacing(22),lineHeight:e.spacing(22),padding:e.spacing(7,24,5),minWidth:"auto",".buttonText":{padding:"0"}}},{props:{variant:"inline"},style:{...o(e),display:"inline",padding:0,textTransform:"unset",fontSize:"1em",lineHeight:"inherit",fontFamily:"inherit",textDecoration:"underline",verticalAlign:"baseline",minWidth:0,"&.hover, &:hover":{textDecoration:"underline"}}},{props:{variant:"fab"},style:{...o(e),display:"inline-flex",minWidth:"unset",width:"auto"}}]}),l=e=>({variants:[{props:{variant:"accordionMenuLight"},style:{padding:e.spacing(10,8),background:e.palette.common.white,color:e.palette.common.black,svg:{color:e.palette.primary.main}}},{props:{variant:"accordionMenuDark"},style:{padding:e.spacing(10,8),background:e.palette.common.black,color:e.palette.common.white,svg:{color:e.palette.common.white}}},{props:{variant:"accordionLemma"},style:{padding:0,marginTop:0,background:e.palette.common.white,color:e.palette.common.black,svg:{color:e.palette.common.black},"&:before":{display:"none"},".MuiAccordionSummary-content":{marginTop:0,fontFamily:"Montserrat",fontSize:"0.875rem",fontWeight:600},".MuiAccordionSummary-root":{minHeight:"auto"}}}]}),u=e=>({onLight:{color:e.palette.black["900"]},onDark:{color:e.palette.common.white}}),c=e=>({onLight:{"&:not(.Mui-disabled):hover":{svg:{color:e.palette.primary["900"]}}
24,"&.Mui-disabled":{".MuiFormControlLabel-label":{color:e.palette.black["200"]},svg:{color:e.palette.black["200"]}}},onDark:{"&:not(.Mui-disabled):hover":{".MuiFormControlLabel-label":{color:e.palette.black["200"]},".MuiCheckbox-root.Mui-checked:before":{backgroundColor:e.palette.primary["900"]},svg:{color:e.palette.black["100"]}},"&.Mui-disabled":{".MuiFormControlLabel-label":{color:e.palette.black["700"]},".MuiCheckbox-root.Mui-checked:before":{backgroundColor:e.palette.alphaWhite["30"]},svg:{color:e.palette.black["700"]}}}}),d=e=>({styleOverrides:{root:t=>{let{ownerState:n}=t;return{...c(e)[n.color||"onLight"]}},label:t=>{let{ownerState:n}=t;return{...e.typography.bodyS,...u(e)[n.color||"onLight"]}}}}),h=e=>({primary:{color:e.palette.primary.main},primaryOnDark:{color:e.palette.common.white,":before":{content:'""',position:"absolute",left:e.spacing(13),top:e.spacing(13),backgroundColor:e.palette.primary.main,width:"calc(100% - ".concat(e.spacing(26),")"),height:"calc(100% - ".concat(e.spacing(26),")")},":hover":{color:e.palette.black["100"]},":hover:before":{backgroundColor:e.palette.primary["900"]},":not(&.Mui-checked):before, &.Mui-disabled:before":{backgroundColor:"transparent"}}}),p=e=>({styleOverrides:{root:t=>{let{ownerState:n}=t;return{marginRight:e.spacing(7),...h(e)[n.color||"primary"],svg:{position:"relative"}}}}}),f=e=>({primary:{color:e.palette.primary.main},primaryOnDark:{color:e.palette.common.white}}),m=e=>{let t=f(e);return{styleOverrides:{root:e=>{let{ownerState:n}=e;return{..."primary"===n.color&&t.primary,..."primaryOnDark"===n.color&&t.primaryOnDark}}}}},g=e=>({primary:{boxShadow:"0 ".concat(e.spacing(2)," ").concat(e.spacing(8)," rgba(0,0,0,.16)")},primaryOnDark:{boxShadow:"none"}}),v=e=>({primary:{backgroundColor:e.palette.black["500"]},primaryOnDark:{backgroundColor:e.palette.black["400"]}}),y=e=>({primary:{"&:not(.Mui-disabled) + .MuiSwitch-track":{backgroundColor:e.palette.black["700"]},"&:not(.Mui-disabled).Mui-checked":{".MuiSwitch-thumb":{backgroundColor:e.palette.common.white},"+ .MuiSwitch-track":{backgroundColor:e.palette.primary.main,opacity:1},":hover + .MuiSwitch-track":{backgroundColor:e.palette.primary["900"]}},"&.Mui-disabled":{".MuiSwitch-thumb":{boxShadow:"none",backgroundColor:e.palette.black["300"]}},"&.Mui-disabled + .MuiSwitch-track":{opacity:1,backgroundColor:e.palette.black["200"]}},primaryOnDark:{":hover:not(.Mui-disabled) + .MuiSwitch-track":{backgroundColor:e.palette.black["600"],opacity:1},"&:not(.Mui-disabled).Mui-checked":{".MuiSwitch-thumb":{backgroundColor:e.palette.common.white}},"&.Mui-disabled":{".MuiSwitch-thumb":{backgroundColor:e.palette.alphaWhite["70"]},".MuiSwitch-track":{backgroundColor:e.palette.alphaWhite["10"]}},"&.Mui-disabled + .MuiSwitch.track":{}}}),b=e=>{let t=y(e),n=g(e),r=v(e);return{styleOverrides:{switchBase:e=>{let{ownerState:n}=e;return{..."primary"===n.color&&t.primary,..."primaryOnDark"===n.color&&t.primaryOnDark}},thumb:e=>{let{ownerState:t}=e;return{..."primary"===t.color&&n.primary,..."primaryOnDark"===t.color&&n.primaryOnDark}},track:e=>{let{ownerState:t}=e;return{opacity:1,..."primary"===t.color&&r.primary,..."primaryOnDark"===t.color&&r.primaryOnDark}}}}},w=e=>({defaultProps:{variant:"outlined",fullWidth:!0},styleOverrides:{root:t=>{let{ownerState:n}=t;return"search"===n.id&&"primary"===n.color?{"& .MuiInputBase-root":{paddingLeft:e.spacing(24),paddingRight:e.spacing(24),color:e.palette.common.white,gap:e.spacing(8),fontWeight:400,backgroundColor:"transparent",borderWidth:"0px !important",transition:"all 0.25s ease-in-out",".MuiInputBase-input":{"&::placeholder, &::-webkit-input-placeholder":{color:"white",opacity:1}},".MuiInputAdornment-root":{color:e.palette.common.white}},"&.open":{"& .MuiInputBase-root":{color:e.palette.common.black},".MuiInputBase-input":{"&::placeholder, &::-webkit-input-placeholder":{color:e.palette.common.black}},".MuiInputAdornment-root":{color:e.palette.common.black}},fieldset:{borderWidth:"0px !important"}}:{"& .MuiInputBase-root":{borderRadius:e.spacing(32),paddingLeft:e.spacing(16),paddingRight:e.spacing(16),borderWidth:e.spacing(1),"&.Mui-disabled":{"*":{color:e.palette.grey["400"]+" !important",opacity:.5},fieldset:{"&:hover":{color:e.palette.grey["400"]+" !important"}}}}}}}}),S=e=>{let t={".Mui-focused.MuiInputLabel-root, &:hover .MuiInputLabel-root":{color:e.palette.black["900"]},".MuiInput-root":{marginTop:e.spacing(12),"&:before, &:after":{borderBottom:"".concat(e.spacing(1)," solid ").concat(e.palette.black["600"])},"&.Mui-focused:after, &.Mui-focused:before":{borderBottomColor:e.palette.black["900"]},"&.Mui-disabled:after, &.Mui-disabled:before":{borderBottomColor:e.palette.black["400"]},".MuiIcon-root":{color:e.palette.primary.main},"&.Mui-disabled .MuiIcon-root":{color:e.palette.black["400"]}},".MuiInputBase-input":{...e.typography.bodyL},".MuiInputLabel-standard":{...e.typography.bodyL,color:e.palette.black["600"],"&.MuiFormLabel-filled":{color:e.palette.black["900"]},"&.Mui-focused + .MuiInput-root > .MuiInputBase-input":{color:e.palette.black["600"]},"&:not(.Mui-focused).Mui-filled  + .MuiInput-root > .MuiInputBase-input":{color:e.palette.black["900"]},"&.Mui-disabled":{color:e.palette.black["400"],".MuiIcon-root":{color:e.palette.black["400"]}}},".MuiFormHelperText-root":{...e.typography.caption,marginTop:e.spacing(4),color:e.palette.black["500"],"&.Mui-disabled":{color:e.palette.black["400"]}},".MuiInputBase-root":{borderRadius:e.spacing(32),maxHeight:e.spacing(54),paddingLeft:e.spacing(10),minHeight:e.spacing(54),"&.MuiInputBase-multiline":{maxHeight:"none"},".MuiSelect-select":{}},".MuiOutlinedInput-notchedOutline":{fontFamily:"Montserrat, sans-serif",borderColor:e.palette.black["700"]}},n={".Mui-focused.MuiInputLabel-root, &:hover .MuiInputLabel-root":{color:e.palette.common.white},".MuiInput-root:not(.Mui-disabled)":{marginTop:e.spacing(12),".MuiIcon-root":{color:e.palette.common.white},"&:before, &:after":{borderBottom:"".concat(e.spacing(1)," solid ").concat(e.palette.alphaWhite["80"])},"&.Mui-focused:not(.Mui-error):after, &.Mui-focused:not(.Mui-error):before":{borderBottomColor:e.palette.common.white}},".MuiInput-root.Mui-disabled":{"&:after, &:before":{borderBottom:"".concat(e.spacing(1)," solid ").concat(e.palette.alphaWhite["30"])}},".MuiInputBase-root:not(.Mui-error)":{backgroundColor:e.palette.alphaWhite["20"],borderRadius:e.spacing(32),maxHeight:e.spacing(54),paddingLeft:e.spacing(10),"&.MuiInputBase-multiline":{maxHeight:"none"},".MuiSelect-select":{padding:e.spacing(12)},".MuiInputAdornment-root":{color:e.palette.common.white},".MuiOutlinedInput-notchedOutline":{fontFamily:"Montserrat, sans-serif",borderColor:e.palette.alphaWhite["70"]}},":hover":{"> .MuiInputBase-root:not(.Mui-error)":{"> .MuiInput-root:not(.Mui-disabled)":{"&:before, &:after":{borderBottom:"".concat(e.spacing(1)," solid ").concat(e.palette.common.white)}}}},".MuiInputBase-input":{...e.typography.bodyL,color:e.palette.alphaWhite["80"],"&.Mui-disabled + .MuiInputAdornment-root > .MuiIcon-root":{color:e.palette.alphaWhite["30"]}},".MuiInputLabel-standard":{...e.typography.bodyL,color:e.palette.alphaWhite["80"],"&.Mui-focused + .MuiInput-root > .MuiInputBase-input":{color:e.palette.common.white},"&.Mui-disabled":{color:e.palette.alphaWhite["30"],".MuiIcon-root":{color:e.palette.alphaWhite["30"]}}},".MuiFormHelperText-root":{...e.typography.caption,marginTop:e.spacing(4),color:e.palette.alphaWhite["80"],"&.Mui-disabled":{color:e.palette.alphaWhite["30"]}}};return{primary:t,primaryOnDark:n,success:{...t,":hover .MuiFormLabel-root, .Mui-focused.MuiFormLabel-root, .MuiFormLabel-filled.MuiFormLabel-root, .MuiFormLabel-root, .MuiFormHelperText-root":{color:e.palette.success.main},".MuiInput-root:not(.Mui-disabled)":{"&:before, &:after":{borderBottom:"".concat(e.spacing(1)," solid ").concat(e.palette.success.main)},".MuiIcon-root":{color:e.palette.success.main}}},successOnDark:{...n,":hover .MuiFormLabel-root, .Mui-focused.MuiFormLabel-root, .MuiFormLabel-filled.MuiFormLabel-root, .MuiFormLabel-root, .MuiFormHelperText-root":{color:e.palette.success.light},".MuiInput-root:not(.Mui-disabled)":{"&:before, &:after":{borderBottom:"".concat(e.spacing(1)," solid ").concat(e.palette.success.light)},".MuiIcon-root":{color:e.palette.success.light}}}}},x=e=>({defaultProps:{variant:"standard",fullWidth:!0},styleOverrides:{root:t=>{let{ownerState:n}=t,r={top:e.spacing(2),left:"0",fontFamily:e.typography.bodyL.fontFamily,fontSize:e.typography.bodyL.fontSize,"&[data-shrink=true]":{top:e.spacing(0,0)}};return(null==n?void 0:n.role)==="combobox"&&(r={lineHeight:"normal",left:e.spacing(20),fontSize:e.typography.bodyL.fontSize,fontFamily:e.typography.bodyL.fontFamily,"&.Mui-focused":{zIndex:99,backgroundColor:e.palette.common.white},"&.MuiInputLabel-shrink":{zIndex:99,backgroundColor:e.palette.common.white,padding:"0 ".concat(e.spacing(4))}}),{...S[n.color],".MuiFormLabel-root.Mui-error, .MuiFormHelperText-root.Mui-error":{color:e.palette.error.dark},".MuiInputLabel-outlined[data-shrink=false]":{left:e.spacing(10)+" !important"},".MuiInput-root.Mui-error":{"&:before, &:after":{borderBottom:"".concat(e.spacing(1)," solid ").concat(e.palette.error.dark)},".MuiIcon-root":{color:e.palette.error.dark}},".MuiFormLabel-root":r}}}}),A=e=>
24({styleOverrides:{root:{"&.Mui-selected":{backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.main}}}}}),k=e=>({styleOverrides:{root:{marginTop:e.spacing(32),[e.breakpoints.up("lg")]:{marginTop:e.spacing(80)}},ul:{justifyContent:"center"}},variants:[{props:{variant:"onLight"},style:{"& .MuiPaginationItem-root":{color:e.palette.common.black,"&.Mui-selected":{color:e.palette.common.white}}}},{props:{variant:"onDark"},style:{"& .MuiPaginationItem-root":{color:e.palette.common.white}}}]}),E=e=>({styleOverrides:{root:{height:"unset",padding:e.spacing(3,12)},label:{padding:0,...e.typography.caption}},variants:[{props:{variant:"light"},style:{backgroundColor:e.palette.secondary["50"],color:e.palette.black["700"]}},{props:{variant:"dark"},style:{backgroundColor:e.palette.secondary["900"],color:e.palette.common.white,":hover":{backgroundColor:e.palette.secondary["800"]}}}]}),C=e=>({variants:[{props:{variant:"separator"},style:{height:e.spacing(16),alignSelf:"unset"}}]}),T=e=>({styleOverrides:{paper:{borderRadius:e.borderRadius.card,boxShadow:e.boxShadows.elevationLight400},list:{padding:0,display:"flex",flexFlow:"column nowrap",".MuiMenuItem-root":{borderRadius:e.spacing(4),padding:e.spacing(16),'&[role="option"]':{padding:e.spacing(4),fontFamily:"Montserrat, sans-serif"}}}}}),_=e=>({styleOverrides:{root:{color:e.palette.common.black,width:"100%",maxWidth:"unset","&.Mui-selected":{fontWeight:"bold"}}}}),P=e=>({styleOverrides:{root:{minHeight:"unset",backgroundColor:"transparent"},indicator:{width:"100%",backgroundColor:e.palette.common.white},scroller:{backgroundColor:e.palette.alphaWhite[40]},flexContainer:{position:"relative",zIndex:2}}}),M={styleOverrides:{}},I=e=>({styleOverrides:{input:{"&.MuiInput-input":{padding:e.spacing(12,0)}}}}),O={defaultProps:{baseClassName:""}},R={defaultProps:{variant:"outlined",fullWidth:!0}},D=e=>({defaultProps:{},styleOverrides:{root:t=>{let{ownerState:n}=t;return{"&.MuiPaper-root":{borderRadius:e.spacing(0),"&.MuiPaper-rounded":{borderRadius:e.spacing(24)},"*":{fontFamily:"Montserrat, sans-serif"},"& .MuiList-root":{padding:e.spacing(12)}}}}}}),L=e=>(e.typography.h1={fontWeight:400,fontFamily:"Imprint, Times New Roman",letterSpacing:"-.3vw",fontSize:e.spacing(48),lineHeight:e.spacing(48),[e.breakpoints.up("lg")]:{fontSize:e.spacing(103),lineHeight:e.spacing(103)}},e.typography.h1Secondary={...e.typography.h1,fontWeight:300,display:"block",textTransform:"unset"},e.typography.h2={fontWeight:400,fontFamily:"Imprint, Times New Roman",letterSpacing:"-4%",textTransform:"uppercase",fontSize:e.spacing(40),lineHeight:e.spacing(40),[e.breakpoints.up("lg")]:{fontSize:e.spacing(78),lineHeight:e.spacing(78)},[e.breakpoints.down("xs")]:{fontSize:e.spacing(30),lineHeight:e.spacing(30)}},e.typography.h2Secondary={...e.typography.h2,fontFamily:"Montserrat, sans-serif",letterSpacing:"-2%"},e.typography.h3={fontWeight:400,fontFamily:"Imprint, Times New Roman",letterSpacing:"-4%",textTransform:"uppercase",fontSize:e.spacing(33),lineHeight:e.spacing(43),[e.breakpoints.up("lg")]:{fontSize:e.spacing(59),lineHeight:e.spacing(63)}},e.typography.h3Secondary={...e.typography.h3,fontFamily:"Montserrat, sans-serif",letterSpacing:"-2%"},e.typography.h4={fontWeight:400,fontFamily:"Imprint, Times New Roman",letterSpacing:"-4%",textTransform:"uppercase",fontSize:e.spacing(28),lineHeight:e.spacing(38),[e.breakpoints.up("lg")]:{fontSize:e.spacing(45),lineHeight:e.spacing(50)}},e.typography.h4Secondary={...e.typography.h4,fontFamily:"Montserrat, sans-serif",letterSpacing:"-2%",fontWeight:500,fontSize:e.spacing(26),lineHeight:e.spacing(38),[e.breakpoints.up("lg")]:{fontSize:e.spacing(41),lineHeight:e.spacing(50)}},e.typography.h5={fontWeight:600,fontFamily:"Montserrat, sans-serif",letterSpacing:"-2%",textTransform:"uppercase",fontSize:e.spacing(23),lineHeight:e.spacing(32),[e.breakpoints.up("lg")]:{fontSize:e.spacing(34),lineHeight:e.spacing(40)}},e.typography.h6={fontWeight:600,fontFamily:"Montserrat, sans-serif",letterSpacing:"auto",fontSize:e.spacing(18),lineHeight:e.spacing(30),[e.breakpoints.up("sm")]:{fontSize:e.spacing(22),lineHeight:e.spacing(33)},[e.breakpoints.up("lg")]:{fontSize:e.spacing(22),lineHeight:e.spacing(36)}},e.typography.leadP={fontWeight:500,fontFamily:"Montserrat, sans-serif",letterSpacing:"auto",fontSize:e.spacing(18),lineHeight:e.spacing(29),[e.breakpoints.up("lg")]:{fontSize:e.spacing(24),lineHeight:e.spacing(36)}},e.typography.leadPSecondary={...e.typography.leadP,fontFamily:"Montserrat, sans-serif",letterSpacing:"-2%",fontWeight:600,textTransform:"uppercase"},e.typography.subtitle={fontWeight:600,fontFamily:"Montserrat, sans-serif",letterSpacing:"auto",fontSize:e.spacing(17),lineHeight:e.spacing(27),[e.breakpoints.up("sm")]:{fontSize:e.spacing(19),lineHeight:e.spacing(30)},[e.breakpoints.up("lg")]:{fontSize:e.spacing(20),lineHeight:e.spacing(33)}},e.typography.subtitleBold={...e.typography.subtitle,fontWeight:600},e.typography.bodyL={fontWeight:400,fontFamily:"Montserrat, sans-serif",letterSpacing:"-2%",fontSize:e.spacing(16),lineHeight:e.spacing(28),[e.breakpoints.up("lg")]:{fontSize:e.spacing(18),lineHeight:e.spacing(32)}},e.typography.bodyLBold={...e.typography.bodyL,fontWeight:600},e.typography.bodyM={fontWeight:400,fontFamily:"Montserrat, sans-serif",letterSpacing:"-2%",fontSize:e.spacing(14),lineHeight:e.spacing(22),[e.breakpoints.up("lg")]:{fontSize:e.spacing(16),lineHeight:e.spacing(28)}},e.typography.bodyMBold={...e.typography.bodyM,fontWeight:700},e.typography.bodyS={fontWeight:600,fontFamily:"Montserrat, sans-serif",letterSpacing:"-2%",fontSize:e.spacing(12),lineHeight:e.spacing(18),[e.breakpoints.up("lg")]:{fontSize:e.spacing(13),lineHeight:e.spacing(22),fontWeight:400}},e.typography.bodySBold={...e.typography.bodyS,fontWeight:700,[e.breakpoints.up("lg")]:{fontSize:e.spacing(13),lineHeight:e.spacing(22),fontWeight:700}},e.typography.overline={fontWeight:700,textTransform:"uppercase",fontFamily:"Montserrat, sans-serif",letterSpacing:"-2%",fontSize:e.spacing(14),lineHeight:e.spacing(18),[e.breakpoints.up("lg")]:{fontSize:e.spacing(16),lineHeight:e.spacing(20)}},e.typography.overlineLabel={...e.typography.overline,backgroundColor:e.palette.alphaBlack["30"],padding:"".concat(e.spacing(6)," ").concat(e.spacing(16)," ").concat(e.spacing(1)),[e.breakpoints.down("lg")]:{paddingBottom:e.spacing(4)},lineHeight:"1em",display:"inline-flex"},e.typography.italic={fontStyle:"italic"},e.typography.overlineTag={...e.typography.overline,display:"inline-flex",alignItems:"center",paddingTop:e.spacing(4),":before":{content:'"•"',marginRight:e.spacing(8)}},e.typography.caption={fontWeight:400,fontFamily:"Montserrat, sans-serif",letterSpacing:"auto",fontSize:e.spacing(12),lineHeight:e.spacing(18)},e.typography.captionMedium={...e.typography.caption,fontWeight:600},{defaultProps:{variantMapping:{h1:"h1",h1Secondary:"h1",h2:"h2",h2Secondary:"h2",h3:"h3",h3Secondary:"h3",h4:"h4",h4Secondary:"h4",h5:"h5",leadP:"p",leadPSecondary:"p"}},...e}),j=e=>({styleOverrides:{root:{...e.typography.overlineLabel,borderRadius:e.spacing(16),display:"flex",width:"fit-content",alignItems:"center",a:{display:"inline-flex",fontSize:e.spacing(12),justifyContent:"center",alignItems:"center"}}}}),U={styleOverrides:{root:{textDecoration:"none"}}},N=(0,r.A)({breakpoints:{keys:["xs","sm","md","lg","xlg","xl","xxl"],values:{xs:0,xsm:420,sm:576,md:768,lg:992,xlg:1200,xxlg:1300,xl:1400,xxl:1921}},typography:{fontFamily:'"Montserrat", sans-serif',htmlFontSize:16},spacing:e=>"".concat(e/16,"rem"),palette:{common:{black:"#000000",white:"#ffffff"}
24,primary:{main:"#000",light:"#FFF",dark:"#000",contrastText:"#ffffff",900:"#000)",800:"#272727",700:"#3D3D3D",600:"#545454",500:"#7D7D7D",400:"#9A9999",300:"#B1AFAF",200:"#CBCBCB",100:"#E6E5E5",50:"#FFF"},black:{900:"#000",800:"#272727",700:"#3D3D3D",600:"#545454",500:"#7D7D7D",400:"#9A9999",300:"#B1AFAF",200:"#CBCBCB",100:"#E6E5E5",50:"#FFF"},success:{main:"#3B8A27",light:"#72C242",dark:"#4F9E30",contrastText:"#D5EDC6"},successOnDark:{main:"#3B8A27",light:"#72C242",dark:"#4F9E30",contrastText:"#D5EDC6"},warning:{main:"#E57300",light:"#FFBE16",dark:"#FF8C00",contrastText:"#FFE8AD"},error:{main:"#800000",light:"#FD0000",dark:"#CC0000",contrastText:"#FFCCCC"},info:{main:"#88A2AA",light:"#CDD8DB",dark:"#43575D",contrastText:"#E3E9EB"},alphaBlack:{90:"rgba(0, 0, 0, .9)",80:"rgba(0, 0, 0, .8)",70:"rgba(0, 0, 0, .7)",60:"rgba(0, 0, 0, .6)",50:"rgba(0, 0, 0, .5)",40:"rgba(0, 0, 0, .4)",30:"rgba(0, 0, 0, .3)",20:"rgba(0, 0, 0, .2)",10:"rgba(0, 0, 0, .1)"},alphaWhite:{90:"rgba(255, 255, 255, .9)",80:"rgba(255, 255, 255, .8)",70:"rgba(255, 255, 255, .7)",60:"rgba(255, 255, 255, .6)",50:"rgba(255, 255, 255, .5)",40:"rgba(255, 255, 255, .4)",30:"rgba(255, 255, 255, .3)",20:"rgba(255, 255, 255, .2)",10:"rgba(255, 255, 255, .1)"},red:{900:"#93282C",800:"#B32128",700:"#C5232B",600:"#DA291C",500:"#F32415",400:"#F7473A",300:"#FB6E65",200:"#FB9C95",100:"#FFC6C3",50:"#FFDDDC"},violet:{900:"#4D2244",800:"#612C51",700:"#6E3459",600:"#7C3B61",500:"#893B67",400:"#9D5A7C",300:"#B77A98",200:"#D49DB6",100:"#E8BFD2",50:"#F9D5E4"},yellow:{900:"#C69214",800:"#D69C04",700:"#EAAA00",600:"#ECBE0E",500:"#EACA1C",400:"#E9D234",300:"#EBDC58",200:"#EFE48C",100:"#F5EFBC",50:"#FBF9E9"},orange:{900:"#7D190F",800:"#8B2A10",700:"#A9431E",600:"#CB4313",500:"#E64C02",400:"#FE5000",300:"#FF7E5D",200:"#FD9B7F",100:"#FFC6B6",50:"#FFE4DC"},lightGreen:{900:"#647200",800:"#7A9A01",700:"#88B10B",600:"#93C71C",500:"#9ED924",400:"#A8DD46",300:"#B5E467",200:"#C5EA8B",100:"#D7EEB0",50:"#E6F3D1"},darkGreen:{900:"#001E1A",800:"#203F3A",700:"#3E5D58",600:"#51716B",500:"#799A94",400:"#96B8B1",300:"#B9DCD5",200:"#C7EAE3",100:"#DEFBF4",50:"#F0FFFB"},darkSkyBlue:{900:"#273131",800:"#385153",700:"#416367",600:"#46767C",500:"#4F868E",400:"#578E94",300:"#6A979C",200:"#8EB2B7",100:"#BAD4D8",50:"#D7E8EC"},lightSkyBlue:{900:"#01312B",800:"#01463E",700:"#416367",600:"#027D6E",500:"#027D6E",400:"#039482",300:"#02AF9A",200:"#00C7B1",100:"#A3DBCB",50:"#CFF0E8"},darkBlue:{900:"#000F50",800:"#012169",700:"#02288C",600:"#0236AF",500:"#0D4CD0",400:"#2465F1",300:"#4581FF",200:"#709FFD",100:"#9ABCFF",50:"#C1D6FF"},lightBlue:{900:"#003868",800:"#034D82",700:"#00629B",600:"#3174B4",500:"#428CCB",400:"#559EE0",300:"#6DB8F9",200:"#92CAFF",100:"#BCDFFF",50:"#D8EEFF"},pink:{900:"#462714",800:"#55341E",700:"#614024",600:"#714E2F",500:"#7C5734",400:"#937151",300:"#A9886C",200:"#C6A992",100:"#E6D9C0",50:"#FDF1E1"},brown:{900:"#352426",800:"#584446",700:"#796466",600:"#8D7779",500:"#B8A1A3",400:"#D7BFC1",300:"#FCE3E5",200:"#FFF1F3",100:"#FFF7F9",50:"#FFFDFF"},primaryOnDark:{main:"#fff"},secondaryOnDark:{main:"#fff"}},boxShadows:{backgroundTransitionDarkToLight:"0px -8px 24px rgba(102, 50, 50, 0.1), 0px 24px 56px rgba(0, 0, 0, 0.4)",backgroundTransitionLightToDark:"0px -24px 56px rgba(0, 0, 0, 0.2);",elevationLight200:"0px 4px 6px -4px rgba(36, 36, 36, 0.05), 0px 8px 8px -4px rgba(36, 36, 36, 0.05)",elevationLight400:"0px 6px 12px -6px rgba(36, 36, 36, 0.1), 0px 8px 24px -4px rgba(36, 36, 36, 0.1)",elevationLight600:"0px 8px 18px -6px rgba(36, 36, 36, 0.1), 0px 12px 42px -4px rgba(36, 36, 36, 0.1)",elevationLight800:"0px 8px 28px -6px rgba(36, 36, 36, 0.1), 0px 18px 88px -4px rgba(36, 36, 36, 0.1)",elevationDark200:"0px 4px 6px -4px rgba(255, 255, 255, 0.1), 0px 8px 8px -4px rgba(255, 255, 255, 0.1)",elevationDark400:"0px 6px 12px -6px rgba(255, 255, 255, 0.2), 0px 8px 24px -4px rgba(255, 255, 255, 0.2)",elevationDark600:"0px 8px 18px -6px rgba(255, 255, 255, 0.3), 0px 12px 42px -4px rgba(255, 255, 255, 0.3)",elevationDark800:"0px 8px 28px -6px rgba(255, 255, 255, 0.5), 0px 18px 88px -4px rgba(255, 255, 255, 0.5)"}},i.N,{components:{MuiBreadcrumbs:{defaultProps:{expandText:"Visualizza percorso"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>"first"===e?"Vai alla prima pagina":"last"===e?"Vai all'ultima pagina":"next"===e?"Vai alla pagina successiva":"Vai alla pagina precedente",labelRowsPerPage:"Righe per pagina:",labelDisplayedRows:e=>{let{from:t,to:n,count:r}=e;return"".concat(t,"–").concat(n," di ").concat(-1!==r?r:"pi\xf9 di ".concat(n))}}},MuiRating:{defaultProps:{getLabelText:e=>"".concat(e," Stell").concat(1!==e?"e":"a"),emptyLabelText:"Vuoto"}},MuiAutocomplete:{defaultProps:{clearText:"Svuota",closeText:"Chiudi",loadingText:"Caricamento in corso…",noOptionsText:"Nessuna opzione",openText:"Apri"}},MuiAlert:{defaultProps:{closeText:"Chiudi"}},MuiPagination:{defaultProps:{"aria-label":"Navigazione impaginata",getItemAriaLabel:(e,t,n
24)=>"page"===e?"".concat(n?"":"Vai alla ","pagina ").concat(t):"first"===e?"Vai alla prima pagina":"last"===e?"Vai all'ultima pagina":"next"===e?"Vai alla pagina successiva":"Vai alla pagina precedente"}}}});N.borderRadius={tag:N.spacing(4),button:N.spacing(8),fullImageCard:N.spacing(16),card:N.spacing(24),surface:N.spacing(64)},N.components=function(e){return{MuiAccordion:l(e),MuiButton:s(e),MuiCheckbox:p(e),MuiChip:E(e),MuiInput:M,MuiAutocomplete:I(e),MuiDivider:C(e),MuiFormControl:x(e),MuiFormControlLabel:d(e),MuiIcon:O,MuiMenu:T(e),MuiTab:_(e),MuiTabs:P(e),MuiPagination:k(e),MuiPaginationItem:A(e),MuiRadio:m(e),MuiSwitch:b(e),MuiTextField:w(e),MuiSelect:R,MuiPaper:D(e),MuiTypography:L(e),MuiBreadcrumbs:j(e),MuiLink:U}}(N);let F=N},27300:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,a:()=>a});var r=n(6029),i=n(87543),o=n(74095);let a=e=>{let{active:t}=e;return(0,r.jsx)(o.A,{sx:{color:"#fff",zIndex:e=>e.zIndex.drawer+1},open:t,children:(0,r.jsx)(i.A,{color:"inherit"})})},s=a},27420:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var i=r(n(91129)),o=n(72756);t.default=function(e,t){var n={};return e&&"string"==typeof e&&(0,i.default)(e,function(e,r){e&&r&&(n[(0,o.camelCase)(e,t)]=r)}),n}},27530:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l,getFunctionName:()=>o});var r=n(55572);let i=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function o(e){let t=`${e}`.match(i);return t&&t[1]||""}function a(e,t=""){return e.displayName||e.name||o(e)||t}function s(e,t,n){let r=a(t);return e.displayName||(""!==r?`${n}(${r})`:n)}function l(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return a(e,"Component");if("object"==typeof e)switch(e.$$typeof){case r.vM:return s(e,e.render,"ForwardRef");case r.lD:return s(e,e.type,"memo")}}}},27623:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_HASHABLE_LENGTH=t.INIT=t.KEY=t.DIGEST_LENGTH=t.BLOCK_SIZE=void 0,t.BLOCK_SIZE=64,t.DIGEST_LENGTH=32,t.KEY=new Uint32Array([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]),t.INIT=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19],t.MAX_HASHABLE_LENGTH=0x1fffffffffffff},30108:(e,t,n)=>{"use strict";n.d(t,{A:()=>l,b:()=>s});var r=n(55729),i=n(35142),o=n(6029);let a=r.createContext(void 0);function s({props:e,name:t}){let{theme:n,name:o,props:s}={props:e,name:t,theme:{components:r.useContext(a)}};if(!n||!n.components||!n.components[o])return s;let l=n.components[o];return l.defaultProps?(0,i.A)(l.defaultProps,s):l.styleOverrides||l.variants?s:(0,i.A)(l,s)}let l=function({value:e,children:t}){return(0,o.jsx)(a.Provider,{value:e,children:t})}},30377:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let r=n(55729),i=n(83244),o="function"==typeof IntersectionObserver,a=new Map,s=[];function l(e){let{rootRef:t,rootMargin:n,disabled:l}=e,u=l||!o,[c,d]=(0,r.useState)(!1),h=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{h.current=e},[]);return(0,r.useEffect)(()=>{if(o){if(u||c)return;let e=h.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:i,elements:o}=function(e){let t,n={root:e.root||null,margin:e.rootMargin||""},r=s.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let i=new Map;return t={id:n,observer:new IntersectionObserver(e=>
24{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:i},s.push(n),a.set(n,t),t}(n);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),a.delete(r);let e=s.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,n,t,c,h.current]),[p,c,(0,r.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},31179:(e,t,n)=>{"use strict";var r=n(74353),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={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},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(f){var i=p(n);i&&i!==f&&e(t,i,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var v=a[g];if(!o[v]&&!(r&&r[v])&&!(m&&m[v])&&!(s&&s[v])){var y=h(n,v);try{u(t,v,y)}catch(e){}}}}return t}},31602:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var r=n(9221),i=n(27623),o=n(94515),a=n(84609);t.Sha256=function(){function e(e){if(this.hash=new o.RawSha256,e){this.outer=new o.RawSha256;var t=function(e){var t=(0,a.convertToBuffer)(e);if(t.byteLength>i.BLOCK_SIZE){var n=new o.RawSha256;n.update(t),t=n.digest()}var r=new Uint8Array(i.BLOCK_SIZE);return r.set(t),r}(e),n=new Uint8Array(i.BLOCK_SIZE);n.set(t);for(var r=0;r<i.BLOCK_SIZE;r++)t[r]^=54,n[r]^=92;this.hash.update(t),this.outer.update(n);for(var r=0;r<t.byteLength;r++)t[r]=0}}return e.prototype.update=function(e){if(!(0,a.isEmptyData)(e)&&!this.error)try{this.hash.update((0,a.convertToBuffer)(e))}catch(e){this.error=e}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return(0,r.__awaiter)(this,void 0,void 0,function(){return(0,r.__generator)(this,function(e){return[2,this.digestSync()]})})},e}()},31607:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var r=n(1983),i=n(99410),o=n(55729),a=n(50212),s=n(35142),l=n(17582),u=n(9718),c=n(50787),d=n(96121),h=n(52526),p=n(39159),f=n(37597),m=n(16492),g=n(46720);function v(e){return(0,g.Ay)("MuiButton",e)}let y=(0,m.A)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var b=n(68423),w=n(19783),S=n(6029);let x=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],A=e=>{let{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:s}=e,u={root:["root",a,"".concat(a).concat((0,f.A)(t)),"size".concat((0,f.A)(o)),"".concat(a,"Size").concat((0,f.A)(o)),"color".concat((0,f.A)(t)),n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon","iconSize".concat((0,f.A)(o))],endIcon:["icon","endIcon","iconSize".concat((0,f.A)(o))]},c=(0,l.A)(u,v,s);return(0,i.A)({},s,c)},k=e=>(0,i.A)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),E=(0,c.Ay)(p.A,{shouldForwardProp:e=>(0,d.A)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t["".concat(n.variant).concat((0,f.A)(n.color))],t["size".concat((0,f.A)(n.size))],t["".concat(n.variant,"Size").concat((0,f.A)(n.size))],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(e=>{var t,n;let{theme:r,ownerState:o}=e,a="light"===r.palette.mode?r.palette.grey[300]:r.palette.grey[800],s="light"===r.palette.mode?r.palette.grey.A100:r.palette.grey[700];return(0,i.A)({},r.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(r.vars||r).shape.borderRadius,transition:r.transitions.create(["background-color","box-shadow","border-color","color"],{duration:r.transitions.duration.short}),"&:hover":(0,i.A)({textDecoration:"none",backgroundColor:r.vars?"rgba(".concat(r.vars.palette.text.primaryChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):(0,u.X4)(r.palette.text.primary,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===o.variant&&"inherit"!==o.color&&{backgroundColor:r.vars?"rgba(".concat(r.vars.palette[o.
24color].mainChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):(0,u.X4)(r.palette[o.color].main,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===o.variant&&"inherit"!==o.color&&{border:"1px solid ".concat((r.vars||r).palette[o.color].main),backgroundColor:r.vars?"rgba(".concat(r.vars.palette[o.color].mainChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):(0,u.X4)(r.palette[o.color].main,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===o.variant&&{backgroundColor:r.vars?r.vars.palette.Button.inheritContainedHoverBg:s,boxShadow:(r.vars||r).shadows[4],"@media (hover: none)":{boxShadow:(r.vars||r).shadows[2],backgroundColor:(r.vars||r).palette.grey[300]}},"contained"===o.variant&&"inherit"!==o.color&&{backgroundColor:(r.vars||r).palette[o.color].dark,"@media (hover: none)":{backgroundColor:(r.vars||r).palette[o.color].main}}),"&:active":(0,i.A)({},"contained"===o.variant&&{boxShadow:(r.vars||r).shadows[8]}),["&.".concat(y.focusVisible)]:(0,i.A)({},"contained"===o.variant&&{boxShadow:(r.vars||r).shadows[6]}),["&.".concat(y.disabled)]:(0,i.A)({color:(r.vars||r).palette.action.disabled},"outlined"===o.variant&&{border:"1px solid ".concat((r.vars||r).palette.action.disabledBackground)},"contained"===o.variant&&{color:(r.vars||r).palette.action.disabled,boxShadow:(r.vars||r).shadows[0],backgroundColor:(r.vars||r).palette.action.disabledBackground})},"text"===o.variant&&{padding:"6px 8px"},"text"===o.variant&&"inherit"!==o.color&&{color:(r.vars||r).palette[o.color].main},"outlined"===o.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===o.variant&&"inherit"!==o.color&&{color:(r.vars||r).palette[o.color].main,border:r.vars?"1px solid rgba(".concat(r.vars.palette[o.
24color].mainChannel," / 0.5)"):"1px solid ".concat((0,u.X4)(r.palette[o.color].main,.5))},"contained"===o.variant&&{color:r.vars?r.vars.palette.text.primary:null==(t=(n=r.palette).getContrastText)?void 0:t.call(n,r.palette.grey[300]),backgroundColor:r.vars?r.vars.palette.Button.inheritContainedBg:a,boxShadow:(r.vars||r).shadows[2]},"contained"===o.variant&&"inherit"!==o.color&&{color:(r.vars||r).palette[o.color].contrastText,backgroundColor:(r.vars||r).palette[o.color].main},"inherit"===o.color&&{color:"inherit",borderColor:"currentColor"},"small"===o.size&&"text"===o.variant&&{padding:"4px 5px",fontSize:r.typography.pxToRem(13)},"large"===o.size&&"text"===o.variant&&{padding:"8px 11px",fontSize:r.typography.pxToRem(15)},"small"===o.size&&"outlined"===o.variant&&{padding:"3px 9px",fontSize:r.typography.pxToRem(13)},"large"===o.size&&"outlined"===o.variant&&{padding:"7px 21px",fontSize:r.typography.pxToRem(15)},"small"===o.size&&"contained"===o.variant&&{padding:"4px 10px",fontSize:r.typography.pxToRem(13)},"large"===o.size&&"contained"===o.variant&&{padding:"8px 22px",fontSize:r.typography.pxToRem(15)},o.fullWidth&&{width:"100%"})},e=>{let{ownerState:t}=e;return t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},["&.".concat(y.focusVisible)]:{boxShadow:"none"},"&:active":{boxShadow:"none"},["&.".concat(y.disabled)]:{boxShadow:"none"}}}),C=(0,c.Ay)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.startIcon,t["iconSize".concat((0,f.A)(n.size))]]}})(e=>{let{ownerState:t}=e;return(0,i.A)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},k(t))}),T=(0,c.Ay)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.endIcon,t["iconSize".concat((0,f.A)(n.size))]]}})(e=>{let{ownerState:t}=e;return(0,i.A)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},k(t))}),_=o.forwardRef(function(e,t){let n=o.useContext(b.A),l=o.useContext(w.A),u=(0,s.A)(n,e),c=(0,h.b)({props:u,name:"MuiButton"}),{children:d,color:p="primary",component:f="button",className:m,disabled:g=!1,disableElevation:v=!1,disableFocusRipple:y=!1,endIcon:k,focusVisibleClassName:_,fullWidth:P=!1,size:M="medium",startIcon:I,type:O,variant:R="text"}=c,D=(0,r.A)(c,x),L=(0,i.A)({},c,{color:p,component:f,disabled:g,disableElevation:v,disableFocusRipple:y,fullWidth:P,size:M,type:O,variant:R}),j=A(L),U=I&&(0,S.jsx)(C,{className:j.startIcon,ownerState:L,children:I}),N=k&&(0,S.jsx)(T,{className:j.endIcon,ownerState:L,children:k});return(0,S.jsxs)(E,(0,i.A)({ownerState:L,className:(0,a.A)(n.className,j.root,m,l||""),component:f,disabled:g,focusRipple:!y,focusVisibleClassName:(0,a.A)(j.focusVisible,_),ref:t,type:O},D,{classes:j,children:[U,d,N]}))})},31662:(e,t,n)=>{"use strict";n.d(t,{y:()=>o});var r=n(56752);let i=()=>"Notizia",o=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r.F9&&!1===r.S$)return globalThis.__paraglide_ssr.label_notizia(t);let o=null!=(e=n.locale)?e:(0,r.JK)();return((0,r.fQ)("label_notizia",o),"it"===o)?i(t):"label_notizia"}},31838:(e,t)=>{t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,d=n?i-1:0,h=n?-1:1,p=e[t+d];for(d+=h,o=p&(1<<-c)-1,p>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=h,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=h,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=u}return(p?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,d=c>>1,h=5960464477539062e-23*(23===i),p=r?0:o-1,f=r?1:-1,m=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+d>=1?t+=h/l:t+=h*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=f,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+p]=255&a,p+=f,a/=256,u-=8);e[n+p-f]|=128*m}},32790:(e,t,n)=>{"use strict";n.d(t,{A:()=>c,k:()=>l});var r=n(22538),i=n(85937),o=n(15368),a=n(93537),s=n(93978);function l(){function e(e,t,n,i){let s={[e]:t,theme:n},l=i[e];if(!l)return{[e]:t};let{cssProperty:u=e,themeKey:c,transform:d,style:h}=l;if(null==t)return null;if("typography"===c&&"inherit"===t)return{[e]:t};let p=(0,o.Yn)(n,c)||{};return h?h(s):(0,a.NI)(s,t,t=>{let n=(0,o.BO)(p,d,t);return(t===n&&"string"==typeof t&&(n=(0,o.BO)(p,d,`${e}${"default"===t?"":(0,r.A)(t)}`,t)),!1===u)?n:{[u]:n}})}return function t(n){var r;let{sx:o,theme:l={}}=n||{};if(!o)return null;let u=null!=(r=l.unstable_sxConfig)?r:s.A;function c(n){let r=n;if("function"==typeof n)r=n(l);else if("object"!=typeof n)return n;if(!r)return null;let o=(0,a.EU)(l.breakpoints),s=Object.keys(o),c=o;return Object.keys(r).forEach(n=>{var o;let s=(o=r[n],"function"==typeof o?o(l):o);if(null!=s)if("object"==typeof s)if(u[n])c=(0,i.A)(c,e(n,s,l,u));else{let e=(0,a.NI)({theme:l},s,e=>({[n]:e}));!function(...e){let t=new Set(e.reduce((e,t)=>
24e.concat(Object.keys(t)),[]));return e.every(e=>t.size===Object.keys(e).length)}(e,s)?c=(0,i.A)(c,e):c[n]=t({sx:s,theme:l})}else c=(0,i.A)(c,e(n,s,l,u))}),(0,a.vf)(s,c)}return Array.isArray(o)?o.map(c):c(o)}}let u=l();u.filterProps=["sx"];let c=u},33403:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(99410),i=n(55729),o=n(1983),a=n(50212),s=n(17582),l=n(37597),u=n(52526),c=n(50787),d=n(16492),h=n(46720);function p(e){return(0,h.Ay)("MuiSvgIcon",e)}(0,d.A)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var f=n(6029);let m=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],g=e=>{let{color:t,fontSize:n,classes:r}=e,i={root:["root","inherit"!==t&&"color".concat((0,l.A)(t)),"fontSize".concat((0,l.A)(n))]};return(0,s.A)(i,p,r)},v=(0,c.Ay)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t["color".concat((0,l.A)(n.color))],t["fontSize".concat((0,l.A)(n.fontSize))]]}})(e=>{var t,n,r,i,o,a,s,l,u,c,d,h,p;let{theme:f,ownerState:m}=e;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:m.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(t=f.transitions)||null==(n=t.create)?void 0:n.call(t,"fill",{duration:null==(r=f.transitions)||null==(r=r.duration)?void 0:r.shorter}),fontSize:({inherit:"inherit",small:(null==(i=f.typography)||null==(o=i.pxToRem)?void 0:o.call(i,20))||"1.25rem",medium:(null==(a=f.typography)||null==(s=a.pxToRem)?void 0:s.call(a,24))||"1.5rem",large:(null==(l=f.typography)||null==(u=l.pxToRem)?void 0:u.call(l,35))||"2.1875rem"})[m.fontSize],color:null!=(c=null==(d=(f.vars||f).palette)||null==(d=d[m.color])?void 0:d.main)?c:({action:null==(h=(f.vars||f).palette)||null==(h=h.action)?void 0:h.active,disabled:null==(p=(f.vars||f).palette)||null==(p=p.action)?void 0:p.disabled,inherit:void 0})[m.color]}}),y=i.forwardRef(function(e,t){let n=(0,u.b)({props:e,name:"MuiSvgIcon"}),{children:s,className:l,color:c="inherit",component:d="svg",fontSize:h="medium",htmlColor:p,inheritViewBox:y=!1,titleAccess:b,viewBox:w="0 0 24 24"}=n,S=(0,o.A)(n,m),x=i.isValidElement(s)&&"svg"===s.type,A=(0,r.A)({},n,{color:c,component:d,fontSize:h,instanceFontSize:e.fontSize,inheritViewBox:y,viewBox:w,hasSvgAsChild:x}),k={};y||(k.viewBox=w);let E=g(A);return(0,f.jsxs)(v,(0,r.A)({as:d,className:(0,a.A)(E.root,l),focusable:"false",color:p,"aria-hidden":!b||void 0,role:b?"img":void 0,ref:t},k,S,x&&s.props,{ownerState:A,children:[x?s.props.children:s,b?(0,f.jsx)("title",{children:b}):null]}))});function b(e,t){function n(n,i){return(0,f.jsx)(y,(0,r.A)({"data-testid":"".concat(t,"Icon"),ref:i},n,{children:e}))}return n.muiName=y.muiName,i.memo(i.forwardRef(n))}y.muiName="SvgIcon"},33904:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(42734),i=n(26927);let o=(0,r.A)({...i.A,palette:{...i.A.palette}})},34837:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6029),i=n(44316);let o=(0,n(55729).forwardRef)(function(e,t){return(0,r.jsx)(i.Ay,{ref:t,container:!0,columns:e.columns||12,columnSpacing:{xs:8,md:16,xl:24},...e})})},35142:(e,t,n)=>{"use strict";n.d(t,{A:()=>function e(t,n){let i=(0,r.A)({},n);return Object.keys(t).forEach(o=>{if(o.toString().match(/^(components|slots)$/))i[o]=(0,r.A)({},t[o],i[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){let a=t[o]||{},s=n[o];i[o]={},s&&Object.keys(s)?a&&Object.keys(a)?(i[o]=(0,r.A)({},s),Object.keys(a).forEach(t=>{i[o][t]=e(a[t],s[t])})):i[o]=s:i[o]=a}else void 0===i[o]&&(i[o]=t[o])}),i}});var r=n(99410)},35786:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(99410),i=n(50212),o=n(77290);let a=function(e){if(void 0===e)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t},s=function(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:s,externalForwardedProps:l,className:u}=e;if(!t){let e=(0,i.A)(null==n?void 0:n.className,u,null==l?void 0:l.className,null==s?void 0:s.className),t=(0,r.A)({},null==n?void 0:n.style,null==l?void 0:l.style,null==s?void 0:s.style),o=(0,r.A)({},n,l,s);return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}let c=(0,o.A)((0,r.A)({},l,s)),d=a(s),h=a(l),p=t(c),f=(0,i.A)(null==p?void 0:p.className,null==n?void 0:n.className,u,null==l?void 0:l.className,null==s?void 0:s.className),m=(0,r.A)({},null==p?void 0:p.style,null==n?void 0:n.style,null==l?void 0:l.style,null==s?void 0:s.style),g=(0,r.A)({},p,n,h,d);return f.length>0&&(g.className=f),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:p.ref}}},35987:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},36021:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(13396)}])},37597:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=n(22538).A},37990:(e,t,n)=>{for(var r,i=n(69124),o=n(52055).CASE_SENSITIVE_TAG_NAMES,a=i.Comment,s=i.Element,l=i.ProcessingInstruction,u=i.Text,c={},d=0,h=o.length;d<h;d++)c[(r=o[d]).toLowerCase()]=r;function p(e){for(var t,n={},r=0,i=e.length;r<i;r++)n[(t=e[r]).name]=t.value;return n}t.formatAttributes=p,t.formatDOM=function e(t,n,r){n=n||null;for(var i=[],o=0,d=t.length;o<d;o++){var h,f,m=t[o];switch(m.nodeType){case 1:(f=new s(h=function(e){var t=c[e=e.toLowerCase()];return t||e}
24(m.nodeName),p(m.attributes))).children=e("template"===h?m.content.childNodes:m.childNodes,f);break;case 3:f=new u(m.nodeValue);break;case 8:f=new a(m.nodeValue);break;default:continue}var g=i[o-1]||null;g&&(g.next=f),f.parent=n,f.prev=g,f.next=null,i.push(f)}return r&&((f=new l(r.substring(0,r.indexOf(" ")).toLowerCase(),r)).next=i[0]||null,f.parent=n,i.unshift(f),i[1]&&(i[1].prev=i[0])),i}},38260:(e,t,n)=>{"use strict";n.d(t,{J:()=>f});var r,i={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=n(15800),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!=typeof e},c=(0,o.A)(function(e){return l(e)?e:e.replace(a,"-$&").toLowerCase()}),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,function(e,t,n){return r={name:t,styles:n,next:r},t})}return 1===i[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"};function h(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return r={name:n.name,styles:n.styles,next:r},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)r={name:i.name,styles:i.styles,next:r},i=i.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=h(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":u(a)&&(r+=c(o)+":"+d(o,a)+";");else if(Array.isArray(a)&&"string"==typeof a[0]&&(null==t||void 0===t[a[0]]))for(var s=0;s<a.length;s++)u(a[s])&&(r+=c(o)+":"+d(o,a[s])+";");else{var l=h(e,t,a);switch(o){case"animation":case"animationName":r+=c(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}}return r}(e,t,n);case"function":if(void 0!==e){var o=r,a=n(e);return r=o,h(e,t,a)}}if(null==t)return n;var s=t[n];return void 0!==s?s:n}var p=/label:\s*([^\s;{]+)\s*(;|$)/g;function f(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i,o=!0,a="";r=void 0;var s=e[0];null==s||void 0===s.raw?(o=!1,a+=h(n,t,s)):a+=s[0];for(var l=1;l<e.length;l++)a+=h(n,t,e[l]),o&&(a+=s[l]);p.lastIndex=0;for(var u="";null!==(i=p.exec(a));)u+="-"+i[1];return{name:function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*0x5bd1e995+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)^(65535&n)*0x5bd1e995+((n>>>16)*59797<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*0x5bd1e995+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*0x5bd1e995+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)}(a)+u,styles:a,next:r}}},38353:(e,t,n)=>{"use strict";n.d(t,{c:()=>i,q:()=>r});let r=e=>e.scrollTop;function i(e,t){var n,r;let{timeout:i,easing:o,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof i?i:i[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof o?o[t.mode]:o,delay:a.transitionDelay}}},38995:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(62100)},39159:(e,t,n)=>{"use strict";let r,i,o,a;n.d(t,{A:()=>z});var s=n(99410),l=n(1983),u=n(55729),c=n(50212),d=n(17582),h=n(50787),p=n(52526),f=n(12639),m=n(6033),g=n(53159),v=n(9329),y=n(10802),b=n(83004),w=n(25814),S=n(6029),x=n(16492);let A=(0,x.A)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);function k(){let e=(0,v._)(["\n  0% {\n    transform: scale(0);\n    opacity: 0.1;\n  }\n\n  100% {\n    transform: scale(1);\n    opacity: 0.3;\n  }\n"]);return k=function(){return e},e}function E(){let e=(0,v._)(["\n  0% {\n    opacity: 1;\n  }\n\n  100% {\n    opacity: 0;\n  }\n"]);return E=function(){return e},e}function C(){let e=(0,v._)(["\n  0% {\n    transform: scale(1);\n  }\n\n  50% {\n    transform: scale(0.92);\n  }\n\n  100% {\n    transform: scale(1);\n  }\n"]);return C=function(){return e},e}function T(){let e=(0,v._)(["\n  opacity: 0;\n  position: absolute;\n\n  &."," {\n    opacity: 0.3;\n    transform: scale(1);\n    animation-name: ",";\n    animation-duration: ","ms;\n    animation-timing-function: ",";\n  }\n\n  &."," {\n    animation-duration: ","ms;\n  }\n\n  & ."," {\n    opacity: 1;\n    display: block;\n    width: 100%;\n    height: 100%;\n    border-radius: 50%;\n    background-color: currentColor;\n  }\n\n  & ."," {\n    opacity: 0;\n    animation-name: ",";\n    animation-duration: ","ms;\n    animation-timing-function: ",";\n  }\n\n  & ."," {\n    position: absolute;\n    /* @noflip */\n    left: 0px;\n    top: 0;\n    animation-name: ",";\n    animation-duration: 2500ms;\n    animation-timing-function: ",";\n    animation-iteration-count: infinite;\n    animation-delay: 200ms;\n  }\n"]);return T=function(){return e},e}let _=["center","classes","className"],P=(0,b.i7)(r||(r=k())),M=(0,b.i7)(i||(i=E())),I=(0,b.i7)(o||(o=C())),O=(0,h.Ay)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),R=(0,h.Ay)(function(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:a,in:s,onExited:l,timeout:d}=e,[h,p]=u.useState(!1),f=(0,c.A)(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),m=(0,c.A)(n.child,h&&n.childLeaving,r&&n.childPulsate);return s||h||p(!0),u.useEffect(()=>{if(!s&&null!=l){let e=setTimeout(l,d);return()=>{clearTimeout(e)}}},[l,s,d]),(0,S.jsx)("span",{className:f,style:{width:a,height:a,top:-(a/2)+o,left:-(a/2)+i},children:(0,S.jsx)("span",{className:m})})},{name:"MuiTouchRipple",slot:"Ripple"})(a||(a=T()),A.rippleVisible,P,550,e=>{let{theme:t}=e;return t.transitions.easing.easeInOut},A.ripplePulsate,e=>{let{theme:t}=e;return t.transitions.duration.shorter},A.child,A.childLeaving,M,550,e=>{let{theme:t}=e;return t.transitions.easing.easeInOut},A.childPulsate,I,e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),D=u.forwardRef(function(e,t){let n=(0,p.b)({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:o}=n,a=(0,l.A)(n,_),[d,h]=u.useState([]),f=u.useRef(0),m=u.useRef(null);u.useEffect(()=>{m.current&&(m.current(),m.current=null)},[d]);let g=u.useRef(!1),v=(0,w.A)(),b=u.useRef(null),x=u.useRef(null),k=u.useCallback(e=>{let{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:a}=e;h(e=>[...e,(0,S.jsx)(R,{classes:{ripple:(0,c.A)(i.ripple,A.ripple),rippleVisible:(0,c.A)(i.rippleVisible,A.rippleVisible),ripplePulsate:(0,c.A)(i.ripplePulsate,A.ripplePulsate),
24child:(0,c.A)(i.child,A.child),childLeaving:(0,c.A)(i.childLeaving,A.childLeaving),childPulsate:(0,c.A)(i.childPulsate,A.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},f.current)]),f.current+=1,m.current=a},[i]),E=u.useCallback(function(){let e,t,n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},{pulsate:s=!1,center:l=r||o.pulsate,fakeElement:u=!1}=o;if((null==i?void 0:i.type)==="mousedown"&&g.current){g.current=!1;return}(null==i?void 0:i.type)==="touchstart"&&(g.current=!0);let c=u?null:x.current,d=c?c.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(!l&&void 0!==i&&(0!==i.clientX||0!==i.clientY)&&(i.clientX||i.touches)){let{clientX:n,clientY:r}=i.touches&&i.touches.length>0?i.touches[0]:i;e=Math.round(n-d.left),t=Math.round(r-d.top)}else e=Math.round(d.width/2),t=Math.round(d.height/2);l?(n=Math.sqrt((2*d.width**2+d.height**2)/3))%2==0&&(n+=1):n=Math.sqrt((2*Math.max(Math.abs((c?c.clientWidth:0)-e),e)+2)**2+(2*Math.max(Math.abs((c?c.clientHeight:0)-t),t)+2)**2),null!=i&&i.touches?null===b.current&&(b.current=()=>{k({pulsate:s,rippleX:e,rippleY:t,rippleSize:n,cb:a})},v.start(80,()=>{b.current&&(b.current(),b.current=null)})):k({pulsate:s,rippleX:e,rippleY:t,rippleSize:n,cb:a})},[r,k,v]),C=u.useCallback(()=>{E({},{pulsate:!0})},[E]),T=u.useCallback((e,t)=>{if(v.clear(),(null==e?void 0:e.type)==="touchend"&&b.current){b.current(),b.current=null,v.start(0,()=>{T(e,t)});return}b.current=null,h(e=>e.length>0?e.slice(1):e),m.current=t},[v]);return u.useImperativeHandle(t,()=>({pulsate:C,start:E,stop:T}),[C,E,T]),(0,S.jsx)(O,(0,s.A)({className:(0,c.A)(A.root,i.root,o),ref:x},a,{children:(0,S.jsx)(y.A,{component:null,exit:!0,children:d})}))});var L=n(46720);function j(e){return(0,L.Ay)("MuiButtonBase",e)}let U=(0,x.A)("MuiButtonBase",["root","disabled","focusVisible"]),N=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],F=e=>{let{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o=(0,d.A)({root:["root",t&&"disabled",n&&"focusVisible"]},j,i);return n&&r&&(o.root+=" ".concat(r)),o},B=(0,h.Ay)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(U.disabled)]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),z=u.forwardRef(function(e,t){let n=(0,p.b)({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:o,className:a,component:d="button",disabled:h=!1,disableRipple:v=!1,disableTouchRipple:y=!1,focusRipple:b=!1,LinkComponent:w="a",onBlur:x,onClick:A,onContextMenu:k,onDragLeave:E,onFocus:C,onFocusVisible:T,onKeyDown:_,onKeyUp:P,onMouseDown:M,onMouseLeave:I,onMouseUp:O,onTouchEnd:R,onTouchMove:L,onTouchStart:j,tabIndex:U=0,TouchRippleProps:z,touchRippleRef:$,type:V}=n,H=(0,l.A)(n,N),W=u.useRef(null),G=u.useRef(null),q=(0,f.A)(G,$),{isFocusVisibleRef:Y,onFocus:K,onBlur:J,ref:X}=(0,g.A)(),[Z,Q]=u.useState(!1);h&&Z&&Q(!1),u.useImperativeHandle(r,()=>({focusVisible:()=>{Q(!0),W.current.focus()}}),[]);let[ee,et]=u.useState(!1);u.useEffect(()=>{et(!0)},[]);let en=ee&&!v&&!h;function er(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;return(0,m.A)(r=>(t&&t(r),!n&&G.current&&G.current[e](r),!0))}u.useEffect(()=>{Z&&b&&!v&&ee&&G.current.pulsate()},[v,b,Z,ee]);let ei=er("start",M),eo=er("stop",k),ea=er("stop",E),es=er("stop",O),el=er("stop",e=>{Z&&e.preventDefault(),I&&I(e)}),eu=er("start",j),ec=er("stop",R),ed=er("stop",L),eh=er("stop",e=>{J(e),!1===Y.current&&Q(!1),x&&x(e)},!1),ep=(0,m.A)(e=>{W.current||(W.current=e.currentTarget),K(e),!0===Y.current&&(Q(!0),T&&T(e)),C&&C(e)}),ef=()=>{let e=W.current;return d&&"button"!==d&&!("A"===e.tagName&&e.href)},em=u.useRef(!1),eg=(0,m.A)(e=>{b&&!em.current&&Z&&G.current&&" "===e.key&&(em.current=!0,G.current.stop(e,()=>{G.current.start(e)})),e.target===e.currentTarget&&ef()&&" "===e.key&&e.preventDefault(),_&&_(e),e.target===e.currentTarget&&ef()&&"Enter"===e.key&&!h&&(e.preventDefault(),A&&A(e))}),ev=(0,m.A)(e=>{b&&" "===e.key&&G.current&&Z&&!e.defaultPrevented&&(em.current=!1,G.current.stop(e,()=>{G.current.pulsate(e)})),P&&P(e),A&&e.target===e.currentTarget&&ef()&&" "===e.key&&!e.defaultPrevented&&A(e)}),ey=d;"button"===ey&&(H.href||H.to)&&(ey=w);let eb={};"button"===ey?(eb.type=void 0===V?"button":V,eb.disabled=h):(H.href||H.to||(eb.role="button"),h&&(eb["aria-disabled"]=h));let ew=(0,f.A)(t,X,W),eS=(0,s.A)({},n,{centerRipple:i,component:d,disabled:h,disableRipple:v,disableTouchRipple:y,focusRipple:b,tabIndex:U,focusVisible:Z}),ex=F(eS);
24return(0,S.jsxs)(B,(0,s.A)({as:ey,className:(0,c.A)(ex.root,a),ownerState:eS,onBlur:eh,onClick:A,onContextMenu:eo,onFocus:ep,onKeyDown:eg,onKeyUp:ev,onMouseDown:ei,onMouseLeave:el,onMouseUp:es,onDragLeave:ea,onTouchEnd:ec,onTouchMove:ed,onTouchStart:eu,ref:ew,tabIndex:h?-1:U,type:V},eb,H,{children:[o,en?(0,S.jsx)(D,(0,s.A)({ref:q,center:i},z)):null]}))})},39661:(e,t,n)=>{"use strict";n.d(t,{O:()=>nq,A:()=>nG});var r,i,o,a,s,l,u,c,d,h,p,f,m,g,v,y,b,w,S,x,A,k,E,C,T=n(6029);function _(e){return e&&!!["provider"].find(function(t){return e.hasOwnProperty(t)})}function P(e){return void 0!==e.redirectSignIn}!function(e){e.Cognito="COGNITO",e.Google="Google",e.Facebook="Facebook",e.Amazon="LoginWithAmazon",e.Apple="SignInWithApple"}(r||(r={})),!function(e){e.NoConfig="noConfig",e.MissingAuthConfig="missingAuthConfig",e.EmptyUsername="emptyUsername",e.InvalidUsername="invalidUsername",e.EmptyPassword="emptyPassword",e.EmptyCode="emptyCode",e.SignUpError="signUpError",e.NoMFA="noMFA",e.InvalidMFA="invalidMFA",e.EmptyChallengeResponse="emptyChallengeResponse",e.NoUserSession="noUserSession",e.Default="default",e.DeviceConfig="deviceConfig",e.NetworkError="networkError",e.AutoSignInError="autoSignInError"}(i||(i={})),!function(e){e.API_KEY="API_KEY",e.AWS_IAM="AWS_IAM",e.OPENID_CONNECT="OPENID_CONNECT",e.AMAZON_COGNITO_USER_POOLS="AMAZON_COGNITO_USER_POOLS",e.AWS_LAMBDA="AWS_LAMBDA"}(o||(o={}));var M=n(27300),I=n(80051),O=n(82826);let R=["/magazine/atlante/","/magazine/lingua_italiana/"];var D=n(64273),L=function(e,t){return(L=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function j(e,t){function n(){this.constructor=e}L(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var U=function(){return(U=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function N(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function F(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){var l=[o,s];if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&l[0]?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){a.label=l[1];break}if(6===l[0]&&a.label<i[1]){a.label=i[1],i=l;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(l);break}i[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],r=0}finally{n=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}function B(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}var z=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},$=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},V=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},H={VERBOSE:1,DEBUG:2,INFO:3,WARN:4,ERROR:5};!function(e){e.DEBUG="DEBUG",e.ERROR="ERROR",e.INFO="INFO",e.WARN="WARN",e.VERBOSE="VERBOSE"}(a||(a={}));var W=function(){function e(e,t){void 0===t&&(t=a.WARN),this.name=e,this.level=t,this._pluggables=[]}return e.prototype._padding=function(e){return e<10?"0"+e:""+e},e.prototype._ts=function(){var e=new Date;return[this._padding(e.getMinutes()),this._padding(e.getSeconds())].join(":")+"."+e.getMilliseconds()},e.prototype.configure=function(e){return e&&(this._config=e),this._config},e.prototype._log=function(t){for(var n,r,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];var s=this.level;e.LOG_LEVEL&&(s=e.LOG_LEVEL),"undefined"!=typeof window&&window.LOG_LEVEL&&(s=window.LOG_LEVEL);var l=H[s];if(H[t]>=l){var u=console.log.bind(console);t===a.ERROR&&console.error&&(u=console.error.bind(console)),t===a.WARN&&console.warn&&(u=console.warn.bind(console));var c="[".concat(t,"] ").concat(this._ts()," ").concat(this.name),d="";if(1===i.length&&"string"==typeof i[0])u(d="".concat(c," - ").concat(i[0]));else if(1===i.length)d="".concat(c," ").concat(i[0]),u(c,i[0]);else if("string"==typeof i[0]){var h=i.slice(1);1===h.length&&(h=h[0]),d="".concat(c," - ").concat(i[0]," ").concat(h),u("".concat(c," - ").concat(i[0]),h)}else d="".concat(c," ").concat(i),u(c,i);try{for(var p=z(this._pluggables),f=p.next();!f.done;f=p.next()){var m=f.value,g={message:d,timestamp:Date.now()};m.pushLogs([g])}}catch(e){n={error:e}}finally{try{f&&!f.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}}},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._log.apply(this,V([a.INFO],$(e),!1))},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._log.apply(this,V([a.INFO],$(e),!1))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._log.apply(this,V([a.WARN],$(e),!1))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._log.apply(this,V([a.ERROR],$(e),!1))},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._log.apply(this,V([a.DEBUG],$(e),!1))},e.prototype.verbose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._log.apply(this,V([a.VERBOSE],$(e),!1))},e.prototype.addPluggable=function(e){e&&"Logging"===e.getCategoryName()&&(this._pluggables.push(e),e.configure(this._config))},e.prototype.listPluggables=function(){return this._pluggables},e.LOG_LEVEL=null,e}(),G=function(){return(G=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},q=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Y=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},K=new W("Hub"),J="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",X=new(function(){function e(e){this.listeners=[],this.patterns=[],this.protectedChannels=["core","auth","api","analytics","interactions","pubsub","storage","ui","xr"],this.name=e}return e.prototype._remove=function(e,t){if(e instanceof RegExp){var n=this.patterns.find(function(t){return t.pattern.source===e.source});if(!n)return void K.warn("No listeners for ".concat(e));
24this.patterns=Y([],q(this.patterns.filter(function(e){return e!==n})),!1)}else{var r=this.listeners[e];if(!r)return void K.warn("No listeners for ".concat(e));this.listeners[e]=Y([],q(r.filter(function(e){return e.callback!==t})),!1)}},e.prototype.remove=function(e,t){this._remove(e,t)},e.prototype.dispatch=function(e,t,n,r){void 0===n&&(n=""),this.protectedChannels.indexOf(e)>-1&&r!==J&&K.warn("WARNING: ".concat(e," is protected and dispatching on it can have unintended consequences"));var i={channel:e,payload:G({},t),source:n,patternInfo:[]};try{this._toListeners(i)}catch(e){K.error(e)}},e.prototype.listen=function(e,t,n){var r,i=this;if(void 0===n&&(n="noname"),void 0!==t.onHubCapsule)K.warn("WARNING onHubCapsule is Deprecated. Please pass in a callback."),r=t.onHubCapsule.bind(t);else if("function"!=typeof t)throw Error("No callback supplied to Hub");else r=t;if(e instanceof RegExp)this.patterns.push({pattern:e,callback:r});else{var o=this.listeners[e];o||(o=[],this.listeners[e]=o),o.push({name:n,callback:r})}return function(){i._remove(e,r)}},e.prototype._toListeners=function(e){var t=e.channel,n=e.payload,r=this.listeners[t];if(r&&r.forEach(function(r){K.debug("Dispatching to ".concat(t," with "),n);try{r.callback(e)}catch(e){K.error(e)}}),this.patterns.length>0){if(!n.message)return void K.warn("Cannot perform pattern matching without a message 
24key");var i=n.message;this.patterns.forEach(function(t){var n=i.match(t.pattern);if(n){var r=q(n).slice(1),o=G(G({},e),{patternInfo:r});try{t.callback(o)}catch(e){K.error(e)}}})}},e}())("__default__"),Z={},Q=function(){function e(){}return e.setItem=function(e,t){return Z[e]=t,Z[e]},e.getItem=function(e){return Object.prototype.hasOwnProperty.call(Z,e)?Z[e]:void 0},e.removeItem=function(e){return delete Z[e]},e.clear=function(){return Z={}},e}(),ee=function(){function e(){try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.amplify.test-ls",1),this.storageWindow.removeItem("aws.amplify.test-ls")}catch(e){this.storageWindow=Q}}return e.prototype.getStorage=function(){return this.storageWindow},e}(),et=n(29143),en=function(e){if(e.isResolved)return e;var t=!0,n=!1,r=!1,i=e.then(function(e){return r=!0,t=!1,e},function(e){throw n=!0,t=!1,e});return i.isFullfilled=function(){return r},i.isPending=function(){return t},i.isRejected=function(){return n},i},er=function(){return{isBrowser:"undefined"!=typeof window&&void 0!==window.document,isNode:void 0!==et&&null!=et.versions&&null!=et.versions.node}},ei=function(){var e=function(t,n){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),eo=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})},ea=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},es=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},el=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},eu=new W("Util"),ec=function(e){function t(t){var n=e.call(this,t)||this;return n.nonRetryable=!0,n}return ei(t,e),t}(Error);function ed(e){return void 0===e&&(e=3e5),function(t){var n=100*Math.pow(2,t)+100*Math.random();return!(n>e)&&n}}var eh=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},ep=new W("CognitoCredentials"),ef=new Promise(function(e,t){return er().isBrowser?(window.gapi&&window.gapi.auth2?window.gapi.auth2:null)?(ep.debug("google api already loaded"),e()):void setTimeout(function(){return e()},2e3):(ep.debug("not in the browser, directly resolved"),e())}),em=function(){function e(){this.initialized=!1,this.refreshGoogleToken=this.refreshGoogleToken.bind(this),this._refreshGoogleTokenImpl=this._refreshGoogleTokenImpl.bind(this)}return e.prototype.refreshGoogleToken=function(){var e,t,n,r;return e=this,t=void 0,n=void 0,r=function(){return eh(this,function(e){switch(e.label){case 0:if(this.initialized)return[3,2];return ep.debug("need to wait for the Google SDK loaded"),[4,ef];case 1:e.sent(),this.initialized=!0,ep.debug("finish waiting"),e.label=2;case 2:return[2,this._refreshGoogleTokenImpl()]}})}
24,new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})},e.prototype._refreshGoogleTokenImpl=function(){var e=null;return(er().isBrowser&&(e=window.gapi&&window.gapi.auth2?window.gapi.auth2:null),e)?new Promise(function(t,n){e.getAuthInstance().then(function(e){e||(ep.debug("google Auth undefined"),n(new ec("google Auth undefined")));var r=e.currentUser.get();r.isSignedIn()?(ep.debug("refreshing the google access token"),r.reloadAuthResponse().then(function(e){t({token:e.id_token,expires_at:e.expires_at})}).catch(function(e){e&&"network_error"===e.error?n("Network error reloading google auth response"):n(new ec("Failed to reload google auth response"))})):n(new ec("User is not signed in with Google"))}).catch(function(e){ep.debug("Failed to refresh google token",e),n(new ec("Failed to refresh google token"))})}):(ep.debug("no gapi auth2 available"),Promise.reject("no gapi auth2 available"))},e}(),eg=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},ev=new W("CognitoCredentials"),ey=new Promise(function(e,t){return er().isBrowser?window.FB?(ev.debug("FB SDK already loaded"),e()):void setTimeout(function(){return e()},2e3):(ev.debug("not in the browser, directly resolved"),e())}),eb=function(){function e(){this.initialized=!1,this.refreshFacebookToken=this.refreshFacebookToken.bind(this),this._refreshFacebookTokenImpl=this._refreshFacebookTokenImpl.bind(this)}return e.prototype.refreshFacebookToken=function(){var e,t,n,r;return e=this,t=void 0,n=void 0,r=function(){return eg(this,function(e){switch(e.label){case 0:if(this.initialized)return[3,2];return ev.debug("need to wait for the Facebook SDK loaded"),[4,ey];case 1:e.sent(),this.initialized=!0,ev.debug("finish waiting"),e.label=2;case 2:return[2,this._refreshFacebookTokenImpl()]}})},new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})},e.prototype._refreshFacebookTokenImpl=function(){var e=null;if(er().isBrowser&&(e=window.FB),!e){var t="no fb sdk available";return ev.debug(t),Promise.reject(new ec(t))}return new Promise(function(t,n){e.getLoginStatus(function(e){if(e&&e.authResponse){var r=e.authResponse,i=r.accessToken,o=1e3*r.expiresIn+new Date().getTime();if(!i){var a="the jwtToken is undefined";ev.debug(a),n(new ec(a))}t({token:i,expires_at:o})}else{var a="no response from facebook when refreshing the jwt token";ev.debug(a),n(new ec(a))}},{scope:"public_profile,email"})})},e}(),ew=new em,eS=new eb,ex=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},eA=new W("Amplify"),ek=new(function(){function e(){this._components=[],this._config={},this._modules={},this.Auth=null,this.Analytics=null,this.API=null,this.Credentials=null,this.Storage=null,this.I18n=null,this.Cache=null,this.PubSub=null,this.Interactions=null,this.Pushnotification=null,this.UI=null,this.XR=null,this.Predictions=null,this.DataStore=null,this.Geo=null,this.Notifications=null,this.Logger=W,this.ServiceWorker=null}return e.prototype.register=function(e){eA.debug("component registered in amplify",e),this._components.push(e),"function"==typeof e.getModuleName?(this._modules[e.getModuleName()]=e,this[e.getModuleName()]=e):eA.debug("no getModuleName method for component",e),e.configure(this._config)},e.prototype.configure=function(e){var t=this;return e&&(this._config=Object.assign(this._config,e),eA.debug("amplify config",this._config),Object.entries(this._modules).forEac
24h(function(e){var n=ex(e,2),r=(n[0],n[1]);Object.keys(r).forEach(function(e){t._modules[e]&&(r[e]=t._modules[e])})}),this._components.map(function(e){e.configure(t._config)})),this._config},e.prototype.addPluggable=function(e){e&&e.getCategory&&"function"==typeof e.getCategory&&this._components.map(function(t){t.addPluggable&&"function"==typeof t.addPluggable&&t.addPluggable(e)})},e}()),eE={id:"aws",outputs:{dnsSuffix:"amazonaws.com"},regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",regions:["aws-global"]},eC={partitions:[eE,{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn"},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:["aws-cn-global"]}]},eT=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},e_=function(e){var t,n,r=eC.partitions;try{for(var i=eT(r),o=i.next();!o.done;o=i.next()){var a=o.value,s=a.regions,l=a.outputs,u=a.regionRegex,c=new RegExp(u);if(s.includes(e)||c.test(e))return l.dnsSuffix}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return eE.outputs.dnsSuffix},eP=function(){return(eP=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},eM=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},eI=function(e,t){if(null==t?void 0:t.aborted)return Promise.resolve();var n,r,i=new Promise(function(t){r=t,n=setTimeout(t,e)});return null==t||t.addEventListener("abort",function e(i){clearTimeout(n),null==t||t.removeEventListener("abort",e),r()}),i},eO=function(e,t){var n;"[object Object]"===Object.prototype.toString.call(e)&&(e.$metadata=eP(eP({},null!=(n=e.$metadata)?n:{}),{attempts:t}))},eR=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},eD=function(e,t){return function(n,r){for(var i={},o=function(t){return e(t,r)},a=t.length-1;a>=0;a--)o=(0,t[a])(r)(o,i);return o(n)}};n(63083);var eL=function(e){var t;return function(){return t||(t=e()),t}},ej=function(){return(ej=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},eU=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},eN=eD(function(e,t){var n,r,i,o,a=e.url,s=e.method,l=e.headers,u=e.body,c=t.abortSignal;return n=void 0,r=void 0,i=void 0,o=function(){var e,t,n,r,i,o,d;return eU(this,function(h){switch(h.label){case 0:return h.trys.push([0,2,,3]),[4,fetch(a,{method:s,headers:l,body:["HEAD","GET","DELETE"].includes(s.toUpperCase())?void 0:u,signal:c})];case 1:return e=h.sent(),[3,3];case 2:if((t=h.sent())instanceof TypeError)throw Error("Network error");throw t;case 3:return n={},null==(o=e.headers)||o.forEach(function(e,t){n[t.toLowerCase()]=e}),r={statusCode:e.status,headers:n,body:null},i=Object.assign(null!=(d=e.body)?d:{},{text:eL(function(){return e.text()}),blob:eL(function(){return e.blob()}),json:eL(function(){return e.json()})}),[2,ej(ej({},r),{body:i})]}})}
24,new(i||(i=Promise))(function(e,t){function a(e){try{l(o.next(e))}catch(e){t(e)}}function s(e){try{l(o.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):((n=t.value)instanceof i?n:new i(function(e){e(n)})).then(a,s)}l((o=o.apply(n,r||[])).next())})},[function(e){var t=e.userAgentHeader,n=void 0===t?"x-amz-user-agent":t,r=e.userAgentValue,i=void 0===r?"":r;return function(e){return function(t){var r,o,a,s;return r=this,o=void 0,a=void 0,s=function(){var r;return eR(this,function(o){switch(o.label){case 0:if(0!==i.trim().length)return[3,2];return[4,e(t)];case 1:case 3:return[2,o.sent()];case 2:return r=n.toLowerCase(),t.headers[r]=t.headers[r]?"".concat(t.headers[r]," ").concat(i):i,[4,e(t)]}})},new(a||(a=Promise))(function(e,t){function n(e){try{l(s.next(e))}catch(e){t(e)}}function i(e){try{l(s.throw(e))}catch(e){t(e)}}function l(t){var r;t.done?e(t.value):((r=t.value)instanceof a?r:new a(function(e){e(r)})).then(n,i)}l((s=s.apply(r,o||[])).next())})}}},function(e){var t=e.maxAttempts,n=void 0===t?3:t,r=e.retryDecider,i=e.computeDelay,o=e.abortSignal;if(n<1)throw Error("maxAttempts must be greater than 0");return function(e,t){return function(a){var s,l,u,c,d;return l=this,u=void 0,c=void 0,d=function(){var l,u,c,d;return eM(this,function(h){switch(h.label){case 0:u=null!=(s=t.attemptsCount)?s:0,d=function(){if(c)return eO(c,u),c;throw eO(l,u),l},h.label=1;case 1:if(!(!(null==o?void 0:o.aborted)&&u<n))return[3,11];h.label=2;case 2:return h.trys.push([2,4,,5]),[4,e(a)];case 3:return c=h.sent(),l=void 0,[3,5];case 4:return l=h.sent(),c=void 0,[3,5];case 5:return u=t.attemptsCount>u?t.attemptsCount:u+1,t.attemptsCount=u,[4,r(c,l)];case 6:if(!h.sent())return[3,9];if(!(!(null==o?void 0:o.aborted)&&u<n))return[3,8];return[4,eI(i(u),o)];case 7:h.sent(),h.label=8;case 8:case 10:return[3,1];case 9:return[2,d()];case 11:if(null==o||!o.aborted)return[2,d()];throw Error("Request aborted.")}})},new(c||(c=Promise))(function(e,t){function n(e){try{i(d.next(e))}catch(e){t(e)}}function r(e){try{i(d.throw(e))}catch(e){t(e)}}function i(t){var i;t.done?e(t.value):((i=t.value)instanceof c?i:new c(function(e){e(i)})).then(n,r)}i((d=d.apply(l,u||[])).next())})}}}]),eF=function(){return(eF=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},eB=function(e){var t,n,r=e.headers,i=e.statusCode;return eF(eF({},ez(e)?e.$metadata:{}),{httpStatusCode:i,requestId:null!=(n=null!=(t=r["x-amzn-requestid"])?t:r["x-amzn-request-id"])?n:r["x-amz-request-id"],extendedRequestId:r["x-amz-id-2"],cfId:r["x-amz-cf-id"]})},ez=function(e){return"object"==typeof(null==e?void 0:e.$metadata)},e$=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})},eV=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},eH=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},eW=function(e){return e$(void 0,void 0,void 0,function(){var t,n,r,i,o,a,s;return eV(this,function(l){switch(l.label){case 0:if(!e||e.statusCode<300)return[2];return[4,eG(e)];case 1:var u;return t=l.sent(),n=(u=eH((null!=(o=null!=(i=null!=(r=e.headers["x-amzn-errortype"])?r:t.code)?i:t.__type)?o:"UnknownError").toString().split(/[\,\:]+/),1)[0]).includes("#")?u.split("#")[1]:u,[2,Object.assign(Error(null!=(s=null!=(a=t.message)?a:t.Message)?s:"Unknown error"),{name:n,$metadata:eB(e)})]}})})},eG=function(e){return e$(void 0,void 0,void 0,function(){return eV(this,function(t){switch(t.label){case 0:if(!e.body)throw Error("Missing response payload");return[4,e.body.json()];case 1:return[2,Object.assign(t.sent(),{$metadata:eB(e)})]}})})},eq=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch","BadRequestException"],eY=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},eK=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException"],eJ=["TimeoutError","RequestTimeout","RequestTimeoutException"];!function(e){e.WebUnknown="0",e.React="1",e.NextJs="2",e.Angular="3",e.VueJs="4",e.Nuxt="5",e.Svelte="6",e.ServerSideUnknown="100",e.ReactSSR="101",e.NextJsSSR="102",e.AngularSSR="103",e.VueJsSSR="104",e.NuxtSSR="105",e.SvelteSSR="106",e.ReactNative="201",e.Expo="202"}(s||(s={})),function(e){e.API="api",e.Auth="auth",e.Analytics="analytics",e.DataStore="datastore",e.Geo="geo",e.InAppMessaging="inappmessaging",e.Interactions="interactions",e.Predictions="predictions",e.PubSub="pubsub",e.PushNotification="pushnotification",e.Storage="storage"}(l||(l={})),function(e){e.Record="1",e.UpdateEndpoint="2"}(u||(u={})),function(e){e.GraphQl="1",e.Get="2",e.Post="3",e.Put="4",e.Patch="5",e.Del="6",e.Head="7"}(c||(c={})),(d||(d={})).FederatedSignIn="30",function(e){e.Subscribe="1",e.GraphQl="2"}(h||(h={})),(p||(p={})).None="0",(f||(f={})).None="0",(m||(m={})).None="0",function(e){e.Convert="1",e.Identify="2",e.Interpret="3"}(g||(g={})),(v||(v={})).Subscribe="1",(y||(y={})).None="0",function(e){e.Put="1",e.Get="2",e.List="3",e.Copy="4",e.Remove="5",e.GetProperties="6"}(b||(b={}));var eX="5.3.26",eZ=n(29143),eQ=function(){return void 0!==n.g},e0=function(){return"undefined"!=typeof window},e1=function(){return"undefined"!=typeof document},e2=function(){return void 0!==eZ},e5=function(e,t){return!!Object.keys(e).find(function(e){return e.startsWith(t)})},e4=n(29143),e3=n(29143),e6=n(29143),e9=[{platform:s.Expo,detectionMethod:function(){return eQ()&&void 0!==n.g.expo}},{platform:s.ReactNative,detectionMethod:function(){return"undefined"!=typeof navigator&&void 0!==navigator.product&&"ReactNative"===navigator.product}},{platform:s.NextJs,detectionMethod:function(){return e0()&&window.next&&"object"==typeof window.next}},{platform:s.Nuxt,detectionMethod:function(){return e0()&&(void 0!==window.__NUXT__||void 0!==window.$nuxt)}},{platform:s.Angular,detectionMethod:function(){var e=!!(e1()&&document.querySelector("[ng-version]")),t=!!(e0()&&void 0!==window.ng);return e||t}},{platform:s.React,detectionMethod:function(){var e=function(e){return e.startsWith("_react")||e.startsWith("__react")};return e1()&&Array.from(document.querySelectorAll("[id]")).some(function(t){return Object.keys(t).find(e)})}},{platform:s.VueJs,detectionMethod:function(){return e0()&&e5(window,"__VUE")}},{platform:s.Svelte,detectionMethod:function(){return e0()&&e5(window,"__SVELTE")}},{platform:s.WebUnknown,detectionMethod:function(){return e0()}},{platform:s.NextJsSSR,detectionMethod:function(){return eQ()&&(e5(n.g,"__next")||e5(n.g,"__NEXT"))}},{platform:s.NuxtSSR,detectionMethod:function(){return eQ()&&void 0!==n.g.__NUXT_PATHS__}},{platform:s.ReactSSR,detectionMethod:function(){return e2()&&void 0!==e4.env&&!!Object.keys(e4.env).find(function(e){return e.includes("react")})}},{platform:s.VueJsSSR,detectionMethod:function(){return eQ()&&e5(n.g,"__VUE")}},{platform:s.AngularSSR,detectionMethod:function(){var e;return e2()&&"object"==typeof e6.env&&(null==(e=e6.env.npm_lifecycle_script)?void 0:e.startsWith("ng "))||!1}},{platform:s.SvelteSSR,detectionMethod:function(){return e2()&&void 0!==e3.env&&!!Object.keys(e3.env).find(function(e){return e.includes("svelte")})}}],e8=[],e7=!1,te=function(){if(!w){var e;if(w=(null==(e=e9.find(function(e){return e.detectionMethod()}))?void 0:e.platform)||s.ServerSideUnknown,e7)for(;e8.length;)e8.pop()();else e8.forEach(function(e){return e()});tn(s.ServerSideUnknown,10),tn(s.WebUnknown,10)}return w},tt=function(e){e7||e8.push(e)};function tn(e,t){w!==e||e7||setTimeout(function(){w=void 0,e7=!0,setTimeout(te,1e3)}
24,t)}var tr=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},ti="aws-amplify",to=new(function(){function e(){this.userAgent="".concat(ti,"/").concat(eX)}return Object.defineProperty(e.prototype,"framework",{get:function(){return te()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isReactNative",{get:function(){return this.framework===s.ReactNative||this.framework===s.Expo},enumerable:!1,configurable:!0}),e.prototype.observeFrameworkChanges=function(e){tt(e)},e}()),ta=function(e){var t=void 0===e?{}:e,n=t.category,r=t.action;t.framework;var i=[[ti,eX]];return n&&i.push([n,r]),i.push(["framework",te()]),i},ts=function(e){return ta(e).map(function(e){var t=tr(e,2),n=t[0],r=t[1];return"".concat(n,"/").concat(r)}).join(" ")},tl=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},tu=eD(eN,[function(){return function(e,t){return function(t){var n,r,i,o;return n=this,r=void 0,i=void 0,o=function(){return tl(this,function(n){return t.headers["cache-control"]="no-store",[2,e(t)]})},new(i||(i=Promise))(function(e,t){function a(e){try{l(o.next(e))}catch(e){t(e)}}function s(e){try{l(o.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):((n=t.value)instanceof i?n:new i(function(e){e(n)})).then(a,s)}l((o=o.apply(n,r||[])).next())})}}}]),tc={service:"cognito-identity",endpointResolver:function(e){var t=e.region;return{url:new URL("https://cognito-identity.".concat(t,".").concat(e_(t)))}},retryDecider:function(e,t){var n,r,i,o;return n=void 0,r=void 0,i=void 0,o=function(){var n,r,i,o;return eY(this,function(a){switch(a.label){case 0:if(null==t)return[3,1];return r=t,[3,3];case 1:return[4,eW(e)];case 2:r=a.sent(),a.label=3;case 3:var s,l,u,c,d;return n=(null!=(o=r)?o:{}).name,i=null==e?void 0:e.statusCode,[2,(null==(s=t)?void 0:s.name)==="Network error"||(l=i,u=n,429===l||eK.includes(u))||eq.includes(n)||(c=i,d=n,[500,502,503,504].includes(c)||eJ.includes(d))]}})},new(i||(i=Promise))(function(e,t){function a(e){try{l(o.next(e))}catch(e){t(e)}}function s(e){try{l(o.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):((n=t.value)instanceof i?n:new i(function(e){e(n)})).then(a,s)}l((o=o.apply(n,r||[])).next())})},computeDelay:function(e){var t=ed(3e5)(e);return!1===t?3e5:t},userAgentValue:ts()};tt(function(){tc.userAgentValue=ts()});var td=function(e){return{"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.".concat(e)}},th=function(e,t,n){return{headers:t,url:e.url,body:n,method:"POST"}},tp=function(){return(tp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},tf=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},tm=function(e,t,n,r){return function(i,o){var a,s,l,u;return a=void 0,s=void 0,l=void 0,u=function(){var a;return tf(this,function(s){switch(s.label){case 0:return[4,(a=tp(tp({},r),i)).endpointResolver(a,o)];case 1:return[4,t(o,s.sent())];case 2:return[4,e(s.sent(),tp({},a))];case 3:return[4,n(s.sent())];case 4:return[2,s.sent()]}})},new(l||(l=Promise))(function(e,t){function n(e){try{i(u.next(e))}catch(e){t(e)}}function r(e){try{i(u.throw(e))}catch(e){t(e)}}function i(t){var i;t.done?e(t.value):((i=t.value)instanceof l?i:new l(function(e){e(i)})).then(n,r)}i((u=u.apply(a,s||[])).next())})}},tg=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},tv=tm(tu,function(e,t){return th(t,td("GetId"),JSON.stringify(e))},function(e){var t,n,r,i;return t=void 0,n=void 0,r=void 0,i=function(){return tg(this,function(t){switch(t.label){case 0:if(!(e.statusCode>=300))return[3,2];return[4,eW(e)];case 1:throw t.sent();case 2:return[4,eG(e)];case 3:return[2,{IdentityId:t.sent().IdentityId,$metadata:eB(e)}]}})},new(r||(r=Promise))(function(e,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(t){var n;t.done?e(t.value):((n=t.value)instanceof r?n:new r(function(e){e(n)})).then(a,s)}l((i=i.apply(t,n||[])).next())})},tc),ty=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},tb=tm(tu,function(e,t){return th(t,td("GetCredentialsForIdentity"),JSON.stringify(e))},function(e){var t,n,r,i;return t=void 0,n=void 0,r=void 0,i=function(){var t;return ty(this,function(n){switch(n.label){case 0:if(!(e.statusCode>=300))return[3,2];return[4,eW(e)];case 1:throw n.sent();case 2:return[4,eG(e)];case 3:var r;return[2,{IdentityId:(t=n.sent()).IdentityId,Credentials:(void 0===(r=t.Credentials)&&(r={}),{AccessKeyId:r.AccessKeyId,SecretKey:r.SecretKey,SessionToken:r.SessionToken,Expiration:new Date(1e3*r.Expiration)}),$metadata:eB(e)}]}})},new(r||(r=Promise))(function(e,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(t){var n;t.done?e(t.value):((n=t.value)instanceof r?n:new r(function(e){e(n)})).then(a,s)}l((i=i.apply(t,n||[])).next())})},tc),tw=function(){return(tw=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},tS=new W("Parser"),tx=function(e){var t,n={};
24return e.aws_mobile_analytics_app_id&&(n.Analytics={AWSPinpoint:{appId:e.aws_mobile_analytics_app_id,region:e.aws_mobile_analytics_app_region}}),(e.aws_cognito_identity_pool_id||e.aws_user_pools_id)&&(n.Auth={userPoolId:e.aws_user_pools_id,userPoolWebClientId:e.aws_user_pools_web_client_id,region:e.aws_cognito_region,identityPoolId:e.aws_cognito_identity_pool_id,identityPoolRegion:e.aws_cognito_region,mandatorySignIn:"enable"===e.aws_mandatory_sign_in,signUpVerificationMethod:e.aws_cognito_sign_up_verification_method||"code"}),t=e.aws_user_files_s3_bucket?{AWSS3:{bucket:e.aws_user_files_s3_bucket,region:e.aws_user_files_s3_bucket_region,dangerouslyConnectToHttpEndpointForTesting:e.aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing}}:e?e.Storage||e:{},e.Logging&&(n.Logging=tw(tw({},e.Logging),{region:e.aws_project_region})),e.geo&&(n.Geo=Object.assign({},e.geo),e.geo.amazon_location_service&&(n.Geo={AmazonLocationService:e.geo.amazon_location_service})),n.Analytics=Object.assign({},n.Analytics,e.Analytics),n.Auth=Object.assign({},n.Auth,e.Auth),n.Storage=Object.assign({},t),n.Logging=Object.assign({},n.Logging,e.Logging),tS.debug("parse config",e,"to amplifyconfig",n),n},tA=function(){return(tA=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},tk=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})},tE=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},tC=new W("Credentials"),tT="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",t_=function(e,t,n){X.dispatch("core",{event:e,data:t,message:n},"Credentials",tT)},tP=new(function(){function e(e){this._gettingCredPromise=null,this._refreshHandlers={},this.Auth=void 0,this.configure(e),this._refreshHandlers.google=ew.refreshGoogleToken,this._refreshHandlers.facebook=eS.refreshFacebookToken}return e.prototype.getModuleName=function(){return"Credentials"},e.prototype.getCredSource=function(){return this._credentials_source},e.prototype.configure=function(e){if(!e)return this._config||{};this._config=Object.assign({},this._config,e);var t=this._config.refreshHandlers;return t&&(this._refreshHandlers=tA(tA({},this._refreshHandlers),t)),this._storage=this._config.storage,this._storage||(this._storage=new ee().getStorage()),this._storageSync=Promise.resolve(),"function"==typeof this._storage.sync&&(this._storageSync=this._storage.sync()),t_("credentials_configured",null,"Credentials has been configured successfully"),this._config},e.prototype.get=function(){return tC.debug("getting credentials"),this._pickupCredentials()},e.prototype._getCognitoIdentityIdStorageKey=function(e){return"".concat("CognitoIdentityId-").concat(e)},e.prototype._pickupCredentials=function(){return tC.debug("picking up credentials"),this._gettingCredPromise&&this._gettingCredPromise.isPending()?tC.debug("getting old cred promise"):(tC.debug("getting new cred promise"),this._gettingCredPromise=en(this._keepAlive())),this._gettingCredPromise},e.prototype._keepAlive=function(){return tk(this,void 0,void 0,function(){var e,t,n,r,i,o;return tE(this,function(a){switch(a.label){case 0:if(tC.debug("checking if credentials exists and not expired"),(e=this._credentials)&&!this._isExpired(e)&&!this._isPastTTL())return tC.debug("credentials not changed and not expired, directly return"),[2,Promise.resolve(e)];if(tC.debug("need to get a new credential or refresh the existing one"),!(n=void 0===(t=this.Auth)?ek.Auth:t)||"function"!=typeof n.currentUserCredentials)return[2,this._setCredentialsForGuest()];
24if(!(!this._isExpired(e)&&this._isPastTTL()))return[3,6];tC.debug("ttl has passed but token is not yet expired"),a.label=1;case 1:return a.trys.push([1,5,,6]),[4,n.currentUserPoolUser()];case 2:return r=a.sent(),[4,n.currentSession()];case 3:return i=a.sent().refreshToken,[4,new Promise(function(e,t){r.refreshSession(i,function(n,r){return n?t(n):e(r)})})];case 4:return a.sent(),[3,6];case 5:return o=a.sent(),tC.debug("Error attempting to refreshing the session",o),[3,6];case 6:return[2,n.currentUserCredentials()]}})})},e.prototype.refreshFederatedToken=function(e){tC.debug("Getting federated credentials");var t=e.provider,n=e.user,r=e.token,i=e.identity_id,o=e.expires_at;return(o=1970===new Date(o).getFullYear()?1e3*o:o,tC.debug("checking if federated jwt token expired"),o>new Date().getTime())?(tC.debug("token not expired"),this._setCredentialsFromFederation({provider:t,token:r,user:n,identity_id:i,expires_at:o})):this._refreshHandlers[t]&&"function"==typeof this._refreshHandlers[t]?(tC.debug("getting refreshed jwt token from federation provider"),this._providerRefreshWithRetry({refreshHandler:this._refreshHandlers[t],provider:t,user:n})):(tC.debug("no refresh handler for provider:",t),this.clear(),Promise.reject("no refresh handler for provider"))},e.prototype._providerRefreshWithRetry=function(e){var t=this,n=e.refreshHandler,r=e.provider,i=e.user;return(function(e,t,n,r){return eo(this,void 0,void 0,function(){var i=this;return ea(this,function(o){if("function"!=typeof e)throw Error("functionToRetry must be a function");return[2,new Promise(function(o,a){return eo(i,void 0,void 0,function(){var i,s,l,u,c,d,h;return ea(this,function(p){switch(p.label){case 0:i=0,s=!1,u=function(){},r&&r.then(function(){s=!0,clearTimeout(l),u()}),d=function(){var r,d,h,p;return ea(this,function(f){switch(f.label){case 0:i++,eu.debug("".concat(e.name," attempt #").concat(i," with this vars: ").concat(JSON.stringify(t))),f.label=1;case 1:return f.trys.push([1,3,,7]),r={},d=o,[4,e.apply(void 0,el([],es(t),!1))];case 2:return[2,(r.value=d.apply(void 0,[f.sent()]),r)];case 3:if(c=h=f.sent(),eu.debug("error on ".concat(e.name),h),h&&h.nonRetryable)return eu.debug("".concat(e.name," non retryable error"),h),[2,{value:a(h)}];if(p=n(i,t,h),eu.debug("".concat(e.name," retrying in ").concat(p," ms")),!(!1===p||s))return[3,4];return[2,{value:a(h)}];case 4:return[4,new Promise(function(e){l=setTimeout(u=e,p)})];case 5:f.sent(),f.label=6;case 6:return[3,7];case 7:return[2]}})},p.label=1;case 1:if(s)return[3,3];return[5,d()];case 2:if("object"==typeof(h=p.sent()))return[2,h.value];return[3,1];case 3:return a(c),[2]}})})})]})})})(n,[],ed(1e4),void 0).then(function(e){return tC.debug("refresh federated token sucessfully",e),t._setCredentialsFromFederation({provider:r,token:e.token,user:i,identity_id:e.identity_id,expires_at:e.expires_at})}).catch(function(e){return("string"!=typeof e||0!==e.toLowerCase().lastIndexOf("network error",e.length))&&t.clear(),tC.debug("refresh federated token failed",e),Promise.reject("refreshing federation token failed: "+e)})},e.prototype._isExpired=function(e){if(!e)return tC.debug("no credentials for expiration check"),!0;tC.debug("are these credentials expired?",e);var t=Date.now();return e.expiration.getTime()<=t},e.prototype._isPastTTL=function(){return this._nextCredentialsRefresh<=Date.now()},e.prototype._setCredentialsForGuest=function(){var e;return tk(this,void 0,void 0,function(){var t,n,r,i,o,a,s,l,u,c=this;return tE(this,function(d){switch(d.label){case 0:if(tC.debug("setting credentials for guest"),(null==(e=this._config)?void 0:e.identityPoolId)||(this._config=Object.assign({},this._config,tx(this._config||{}).Auth)),n=(t=this._config).identityPoolId,r=t.region,i=t.mandatorySignIn,o=t.identityPoolRegion,i)return[2,Promise.reject("cannot get guest credentials when mandatory signin enabled")];if(!n)return tC.debug("No Cognito Identity pool provided for unauthenticated access"),[2,Promise.reject("No Cognito Identity pool provided for unauthenticated access")];if(!o&&!r)return tC.debug("region is not configured for getting the credentials"),[2,Promise.reject("region is not configured for getting the credentials")];return s=this,[4,this._getGuestIdentityId()];
24case 1:return a=s._identityId=d.sent(),l={region:null!=o?o:r},u=tk(c,void 0,void 0,function(){var e,t;return tE(this,function(r){switch(r.label){case 0:if(a)return[3,2];return[4,tv(l,{IdentityPoolId:n})];case 1:e=r.sent().IdentityId,this._identityId=e,r.label=2;case 2:return[4,tb(l,{IdentityId:this._identityId})];case 3:return t=r.sent().Credentials,[2,{identityId:this._identityId,accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretKey,sessionToken:t.SessionToken,expiration:t.Expiration}]}})}).catch(function(e){return tk(c,void 0,void 0,function(){return tE(this,function(t){throw e})})}),[2,this._loadCredentials(u,"guest",!1,null).then(function(e){return e}).catch(function(e){return tk(c,void 0,void 0,function(){var t=this;return tE(this,function(r){switch(r.label){case 0:if("ResourceNotFoundException"!==e.name||e.message!=="Identity '".concat(a,"' not found."))return[3,2];return tC.debug("Failed to load guest credentials"),[4,this._removeGuestIdentityId()];case 1:return r.sent(),u=tk(t,void 0,void 0,function(){var e,t;return tE(this,function(r){switch(r.label){case 0:return[4,tv(l,{IdentityPoolId:n})];case 1:return e=r.sent().IdentityId,this._identityId=e,[4,tb(l,{IdentityId:e})];case 2:return t=r.sent().Credentials,[2,{identityId:e,accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretKey,sessionToken:t.SessionToken,expiration:t.Expiration}]}})}).catch(function(e){return tk(t,void 0,void 0,function(){return tE(this,function(t){throw e})})}),[2,this._loadCredentials(u,"guest",!1,null)];case 2:return[2,e]}})})})]}})})},e.prototype._setCredentialsFromFederation=function(e){var t=this,n=e.provider,r=e.token,i=e.identity_id,o={google:"accounts.google.com",facebook:"graph.facebook.com",amazon:"www.amazon.com",developer:"cognito-identity.amazonaws.com"}[n]||n;if(!o)return Promise.reject("You must specify a federated provider");var a={};a[o]=r;var s=this._config,l=s.identityPoolId,u=s.region,c=s.identityPoolRegion;if(!l)return tC.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!c&&!u)return tC.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var d={region:null!=c?c:u},h=tk(t,void 0,void 0,function(){var e;return tE(this,function(t){switch(t.label){case 0:if(i)return[3,2];return[4,tv(d,{IdentityPoolId:l,Logins:a})];case 1:i=t.sent().IdentityId,t.label=2;case 2:return[4,tb(d,{IdentityId:i,Logins:a})];case 3:return e=t.sent().Credentials,[2,{identityId:i,accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretKey,sessionToken:e.SessionToken,expiration:e.Expiration}]}})}).catch(function(e){return tk(t,void 0,void 0,function(){return tE(this,function(t){throw e})})});return this._loadCredentials(h,"federated",!0,e)},e.prototype._setCredentialsFromSession=function(e){var t=this;tC.debug("set credentials from session");var n=e.getIdToken().getJwtToken(),r=this._config,i=r.region,o=r.userPoolId,a=r.identityPoolId,s=r.identityPoolRegion;if(!a)return tC.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!s&&!i)return tC.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var l={};l["cognito-idp."+i+".amazonaws.com/"+o]=n;var u={region:null!=s?s:i},c=tk(t,void 0,void 0,function(){var e,t,n,r,i,o,s,c,d;return tE(this,function(h){switch(h.label){case 0:return[4,this._getGuestIdentityId()];case 1:if(e=h.sent())return[3,3];return[4,tv(u,{IdentityPoolId:a,Logins:l})];case 2:t=h.sent().IdentityId,h.label=3;case 3:return[4,tb(u,{IdentityId:e||t,Logins:l})];case 4:if(i=(r=(n=h.sent()).Credentials).AccessKeyId,o=r.Expiration,s=r.SecretKey,c=r.SessionToken,d=n.IdentityId,this._identityId=d,!e)return[3,6];return tC.debug("The guest identity ".concat(e," has been successfully linked to the logins")),e===d&&tC.debug("The guest identity ".concat(e," has become the primary identity")),[4,this._removeGuestIdentityId()];case 5:h.sent(),h.label=6;case 6:return[2,{accessKeyId:i,secretAccessKey:s,sessionToken:c,expiration:o,identityId:d}]}})}).catch(function(e){return tk(t,void 0,void 0,function(){return tE(this,function(t){throw e})})});return this._loadCredentials(c,"userPool",!0,null)},e.prototype._loadCredentials=function(e,t,n,r){var i=this,o=this;return new Promise(function(a,s){e.then(function(e){return tk(i,void 0,void 0,function(){var i,s,l,u,c;return tE(this,function(d){switch(d.label){case 0:if(tC.debug("Load credentials successfully",e),this._identityId&&!e.identityId&&(e.identityId=this._identityId),o._credentials=e,o._credentials.authenticated=n,o._credentials_source=t,o._nextCredentialsRefresh=new Date().getTime()+3e6,"federated"===t){i=Object.assign({id:this._credentials.identityId},r.user),s=r.provider,l=r.token,u=r.expires_at,c=r.identity_id;try{this._storage.setItem("aws-amplify-federatedInfo",JSON.stringify({provider:s,token:l,user:i,expires_at:u,identity_id:c}))}catch(e){tC.debug("Failed to put federated info into auth storage",e)}}if("guest"!==t)return[3,2];return[4,this._setGuestIdentityId(e.identityId)];case 1:d.sent(),d.label=2;case 2:return a(o._credentials),[2]}})})}).catch(function(t){if(t){tC.debug("Failed to load credentials",e),tC.debug("Error loading credentials",t),s(t);return}})})},e.prototype.set=function(e,t){return"session"===t?this._setCredentialsFromSession(e):"federation"===t?this._setCredentialsFromFederation(e):"guest"===t?this._setCredentialsForGuest():(tC.debug("no source specified for setting credentials"),Promise.reject("invalid source"))},e.prototype.clear=function(){return tk(this,void 0,void 0,function(){return tE(this,function(e){return this._credentials=null,this._credentials_source=null,tC.debug("removing aws-amplify-federatedInfo from storage"),this._storage.removeItem("aws-amplify-federatedInfo"),[2]})})},e.prototype._getGuestIdentityId=function(){return tk(this,void 0,void 0,function(){var e,t;return tE(this,function(n){switch(n.label){case 0:e=this._config.identityPoolId,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this._storageSync];case 2:return n.sent(),[2,this._storage.getItem(this._getCognitoIdentityIdStorageKey(e))];case 3:return t=n.sent(),tC.debug("Failed to get the cached guest identityId",t),[3,4];case 4:return[2]}})})},e.prototype._setGuestIdentityId=function(e){return tk(this,void 0,void 0,function(){var t,n;return tE(this,function(r){switch(r.label){case 0:t=this._config.identityPoolId,r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this._storageSync];case 2:return r.sent(),this._storage.setItem(this._getCognitoIdentityIdStorageKey(t),e),[3,4];case 3:return n=r.sent(),tC.debug("Failed to cache guest identityId",n),[3,4];case 4:return[2]}})})},e.prototype._removeGuestIdentityId=function(){return tk(this,void 0,void 0,function(){var e;return tE(this,function(t){return e=this._config.identityPoolId,tC.debug("removing ".concat(this._getCognitoIdentityIdStorageKey(e)," from storage")),this._storage.removeItem(this._getCognitoIdentityIdStorageKey(e)),[2]})})},e.prototype.shear=function(e){return{accessKeyId:e.accessKeyId,sessionToken:e.sessionToken,secretAccessKey:e.secretAccessKey,identityId:e.identityId,authenticated:e.authenticated}},e}())(null);ek.register(tP);var tM={},tI=function(){if(S)return tM;S=1,tM.parse=function(e,n){if("string"!=typeof e)throw TypeError("argument str must be a string");var r={},i=e.length;if(i<2)return r;var o=n&&n.decode||l,u=0,c=0,d=0;do{if(-1===(c=e.indexOf("=",u)))break;if(-1===(d=e.indexOf(";",u)))d=i;else if(c>d){u=e.lastIndexOf(";",c-1)+1;continue}var h=a(e,u,c),p=s(e,c,h),f=e.slice(h,p);if(!t.call(r,f)){var m=a(e,c+1,d),g=s(e,d,m);34===e.charCodeAt(m)&&34===e.charCodeAt(g-1)&&(m++,g--);var v=e.slice(m,g);r[f]=function(e,t){try{return t(e)}catch(t){return e}}(v,o)}u=d+1}while(u<i);return r},tM.serialize=function(t,a,s){var l=s&&s.encode||encodeURIComponent;if("function"!=typeof l)throw TypeError("option encode is invali
24d");if(!n.test(t))throw TypeError("argument name is invalid");var u=l(a);if(!r.test(u))throw TypeError("argument val is invalid");var c=t+"="+u;if(!s)return c;if(null!=s.maxAge){var d=Math.floor(s.maxAge);if(!isFinite(d))throw TypeError("option maxAge is invalid");c+="; Max-Age="+d}if(s.domain){if(!i.test(s.domain))throw TypeError("option domain is invalid");c+="; Domain="+s.domain}if(s.path){if(!o.test(s.path))throw TypeError("option path is invalid");c+="; Path="+s.path}if(s.expires){var h,p=s.expires;if(h=p,"[object Date]"!==e.call(h)||isNaN(p.valueOf()))throw TypeError("option expires is invalid");c+="; Expires="+p.toUTCString()}if(s.httpOnly&&(c+="; HttpOnly"),s.secure&&(c+="; Secure"),s.partitioned&&(c+="; Partitioned"),s.priority)switch("string"==typeof s.priority?s.priority.toLowerCase():s.priority){case"low":c+="; Priority=Low";break;case"medium":c+="; Priority=Medium";break;case"high":c+="; Priority=High";break;default:throw TypeError("option priority is invalid")}if(s.sameSite)switch("string"==typeof s.sameSite?s.sameSite.toLowerCase():s.sameSite){case!0:case"strict":c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"none":c+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return c};var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty,n=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,r=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,i=/^([.]?[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]*$/;function a(e,t,n){do{var r=e.charCodeAt(t);if(32!==r&&9!==r)return t}while(++t<n);return n}function s(e,t,n){for(;t>n;){var r=e.charCodeAt(--t);if(32!==r&&9!==r)return t+1}return n}
24function l(e){return -1!==e.indexOf("%")?decodeURIComponent(e):e}return tM}();function tO(e,t={}){var n;let r=(n=e)&&"j"===n[0]&&":"===n[1]?n.substr(2):n;if(!t.doNotParse)try{return JSON.parse(r)}catch(e){}return e}class tR{constructor(e,t={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;let e=this.cookies;this.cookies=tI.parse(document.cookie),this._checkChanges(e)};let n="undefined"==typeof document?"":document.cookie;this.cookies=function(e){return"string"==typeof e?tI.parse(e):"object"==typeof e&&null!==e?e:{}}(e||n),this.defaultSetOptions=t,this.HAS_DOCUMENT_COOKIE=function(){let e="undefined"==typeof global?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return"boolean"==typeof e?e:"object"==typeof document&&"string"==typeof document.cookie}()}_emitChange(e){for(let t=0;t<this.changeListeners.length;++t)this.changeListeners[t](e)}_checkChanges(e){new Set(Object.keys(e).concat(Object.keys(this.cookies))).forEach(t=>{e[t]!==this.cookies[t]&&this._emitChange({name:t,value:tO(this.cookies[t])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(e,t={}){return t.doNotUpdate||this.update(),tO(this.cookies[e],t)}getAll(e={}){e.doNotUpdate||this.update();let t={};for(let n in this.cookies)t[n]=tO(this.cookies[n],e);return t}set(e,t,n){n=n?Object.assign(Object.assign({},this.defaultSetOptions),n):this.defaultSetOptions;let r="string"==typeof t?t:JSON.stringify(t);this.cookies=Object.assign(Object.assign({},this.cookies),{[e]:r}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=tI.serialize(e,r,n)),this._emitChange({name:e,value:t,options:n})}remove(e,t){let n=t=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),t),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=tI.serialize(e,"",n)),this._emitChange({name:e,value:void 0,options:t})}addChangeListener(e){this.changeListeners.push(e),this.HAS_DOCUMENT_COOKIE&&1===this.changeListeners.length&&("object"==typeof window&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(e){let t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1),this.HAS_DOCUMENT_COOKIE&&0===this.changeListeners.length&&("object"==typeof window&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}var tD=function(){return(tD=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},tL=er().isBrowser,tj=function(){function e(e){void 0===e&&(e={}),this.cookies=new tR,this.store=tL?window.localStorage:Object.create(null),this.cookies=e.req?new tR(decodeURIComponent(e.req.headers.cookie)):new tR,Object.assign(this.store,this.cookies.getAll())}return Object.defineProperty(e.prototype,"length",{get:function(){return Object.entries(this.store).length},enumerable:!1,configurable:!0}),e.prototype.clear=function(){var e=this;Array.from(Array(this.length)).map(function(t,n){return e.key(n)}).forEach(function(t){return e.removeItem(t)})},e.prototype.getItem=function(e){return this.getLocalItem(e)},e.prototype.getLocalItem=function(e){return Object.prototype.hasOwnProperty.call(this.store,e)?this.store[e]:null},e.prototype.getUniversalItem=function(e){return this.cookies.get(e)},e.prototype.key=function(e){return Object.keys(this.store)[e]},e.prototype.removeItem=function(e){this.removeLocalItem(e),this.removeUniversalItem(e)},e.prototype.removeLocalItem=function(e){delete this.store[e]},e.prototype.removeUniversalItem=function(e){this.cookies.remove(e,{path:"/"})},e.prototype.setItem=function(e,t){this.setLocalItem(e,t);var n=e.split(".").pop();["LastAuthUser","accessToken","refreshToken","idToken"].includes(null!=n?n:"")&&this.setUniversalItem(e,t,{expires:new Date(Date.now()+31536e6)})},e.prototype.setLocalItem=function(e,t){this.store[e]=t},e.prototype.setUniversalItem=function(e,t,n){void 0===n&&(n={}),this.cookies.set(e,t,tD(tD({},n),{path:"/",sameSite:!0,secure:!tL||"localhost"!==window.location.hostname}))},e}(),tU=function(){function e(e){var t=e||{},n=t.ValidationData,r=t.Username,i=t.Password,o=t.AuthParameters,a=t.ClientMetadata;this.validationData=n||{},this.authParameters=o||{},this.clientMetadata=a||{},this.username=r,this.password=i}var t=e.prototype;return t.getUsername=function(){return this.username},t.getPassword=function(){return this.password},t.getValidationData=function(){return this.validationData},t.getAuthParameters=function(){return this.authParameters},t.getClientMetadata=function(){return this.clientMetadata},e}(),tN=n(51642);if("undefined"!=typeof window&&window.crypto&&(x=window.crypto),!x&&"undefined"!=typeof window&&window.msCrypto&&(x=window.msCrypto),!x&&void 0!==n.g&&n.g.crypto&&(x=n.g.crypto),!x)try{x=n(20023)}catch(e){}var tF=function(){function e(e,t){e=this.words=e||[],void 0!=t?this.sigBytes=t:this.sigBytes=4*e.length}var t=e.prototype;return t.random=function(t){for(var n=[],r=0;r<t;r+=4)n.push(function(){if(x){if("function"==typeof x.getRandomValues)try{return x.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof x.randomBytes)try{return x.randomBytes(4).readInt32LE()}catch(e){}}throw Error("Native crypto module could not be used to get secure random number.")}());return new e(n,t)},t.toString=function(){return function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")}(this)},e}(),tB=n(61478);function tz(e,t){null!=e&&this.fromString(e,t)}function t$(){return new tz(null)}var tV="undefined"!=typeof navigator;tV&&"Microsoft Internet Explorer"==navigator.appName?(tz.prototype.am=function(e,t,n,r,i,o){for(var a=32767&t,s=t>>
vendor: 4,855 bytes, line 24
2415;--o>=0;){var l=32767&this[e],u=this[e++]>>15,c=s*l+u*a;i=((l=a*l+((32767&c)<<15)+n[r]+(0x3fffffff&i))>>>30)+(c>>>15)+s*u+(i>>>30),n[r++]=0x3fffffff&l}return i},A=30):tV&&"Netscape"!=navigator.appName?(tz.prototype.am=function(e,t,n,r,i,o){for(;--o>=0;){var a=t*this[e++]+n[r]+i;i=Math.floor(a/0x4000000),n[r++]=0x3ffffff&a}return i},A=26):(tz.prototype.am=function(e,t,n,r,i,o){for(var a=16383&t,s=t>>14;--o>=0;){var l=16383&this[e],u=this[e++]>>14,c=s*l+u*a;i=((l=a*l+((16383&c)<<14)+n[r]+i)>>28)+(c>>14)+s*u,n[r++]=0xfffffff&l}return i},A=28),tz.prototype.DB=A,tz.prototype.DM=(1<<A)-1,tz.prototype.DV=1<<A,tz.prototype.FV=0x10000000000000,tz.prototype.F1=52-A,tz.prototype.F2=2*A-52;var tH=[];for(E=0,k=48;E<=9;++E)tH[k++]=E;for(E=10,k=97;E<36;++E)tH[k++]=E;for(E=10,k=65;E<36;++E)tH[k++]=E;function tW(e){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e)}function tG(e){var t=t$();return t.fromInt(e),t}function tq(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}function tY(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function tK(e){return tN.hp.from(new tF().random(e).toString(),"hex")}tY.prototype.convert=function(e){var t=t$();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(tz.ZERO)>0&&this.m.subTo(t,t),t},tY.prototype.revert=function(e){var t=t$();return e.copyTo(t),this.reduce(t),t},tY.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=32767&e[t],r=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(n=t+this.m.t,e[n]+=this.m.am(0,r,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},tY.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},tY.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},tz.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},tz.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},tz.prototype.fromString=function(e,t){if(16==t)n=4;else if(8==t)n=3;else if(2==t)n=1;else if(32==t)n=5;else if(4==t)n=2;else throw Error("Only radix 2, 4, 8, 16, 32 are supported");this.t=0,this.s=0;for(var n,r=e.length,i=!1,o=0;--r>=0;){var a=function(e,t){var n=tH[e.charCodeAt(t)];return null==n?-1:n}(e,r);if(a<0){"-"==e.charAt(r)&&(i=!0);continue}i=!1,0==o?this[this.t++]=a:o+n>this.DB?(this[this.t-1]|=(a&(1<<this.DB-o)-1)<<o,this[this.t++]=a>>this.DB-o):this[this.t-1]|=a<<o,(o+=n)>=this.DB&&(o-=this.DB)}this.clamp(),i&&tz.ZERO.subTo(this,this)},tz.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},tz.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},tz.prototype.drShiftTo=function(e,t){for(var n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s},tz.prototype.lShiftTo=function(e,t){var n,r=e%this.DB,i=this.DB-r,o=(1<<i)-1,a=Math.floor(e/this.DB),s=this.s<<r&this.DM;for(n=this.t-1;n>=0;--n)t[n+a+1]=this[n]>>i|s,s=(this[n]&o)<<r;for(n=a-1;n>=0;--n)t[n]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()},tz.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t){t.t=0;return}var r=e%this.DB,i=this.DB-r,o=(1<<r)-1;t[0]=this[n]>>r;for(var a=n+1;a<this.t;++a)t[a-n-1]|=(this[a]&o)<<i,t[a-n]=this[a]>>r;r>0&&(t[this.t-n-1]|=(this.s&o)<<i),t.t=this.t-n,t.clamp()},tz.prototype.subTo=function(e,t){for(var n=0,r=0,i=Math.min(e.t,this.t);n<i;)r+=this[n]-e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r-=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r-=e[n],t[n++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()},tz.prototype.multiplyTo=function(e,t){var n=this.abs(),r=e.abs(),i=n.t;for(t.t=i+r.t;--i>=0;)t[i]=0;for(i=0;i<r.t;++i)t[i+n.t]=n.am(0,r[i],t,i,0,n.t);t.s=0,t.clamp(),this.s!=e.s&&tz.ZERO.subTo(t,t)},tz.prototype.squareTo=function(e){for(var t=this.abs(),n=e.t=2*t.t;--n>=0;)e[n]=0;for(n=0;n<t.t-1;++n){var r=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,r,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},tz.prototype.divRemTo=function(e,t,n){var r=e.abs();if(!(r.t<=0)){var i=this.abs();if(i.t<r.t){null!=t&&t.fromInt(0),null!=n&&this.copyTo(n);return}null==n&&(n=t$());var o=t$(),a=this.s,s=e.s,l=this.DB-tq(r[r.t-1]);l>0?(r.lShiftTo(l,o),i.lShiftTo(l,n)):(r.copyTo(o),i.copyTo(n));var u=o.t,c=o[u-1];if(0!=c){var d=c*(1<<this.F1)+(u>1?o[u-2]>>this.F2:0),h=this.FV/d,p=(1<<this.F1)/d,f=1<<this.F2,m=n.t,g=m-u,v=null==t?t$():t;
24for(o.dlShiftTo(g,v),n.compareTo(v)>=0&&(n[n.t++]=1,n.subTo(v,n)),tz.ONE.dlShiftTo(u,v),v.subTo(o,o);o.t<u;)o[o.t++]=0;for(;--g>=0;){var y=n[--m]==c?this.DM:Math.floor(n[m]*h+(n[m-1]+f)*p);if((n[m]+=o.am(0,y,n,g,0,u))<y)for(o.dlShiftTo(g,v),n.subTo(v,n);n[m]<--y;)n.subTo(v,n)}null!=t&&(n.drShiftTo(u,t),a!=s&&tz.ZERO.subTo(t,t)),n.t=u,n.clamp(),l>0&&n.rShiftTo(l,n),a<0&&tz.ZERO.subTo(n,n)}}},tz.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if((1&e)==0)return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},tz.prototype.addTo=function(e,t){for(var n=0,r=0,i=Math.min(e.t,this.t);n<i;)r+=this[n]+e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r+=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r+=e[n],t[n++]=r&this.DM,r>>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()},tz.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else if(4==e)t=2;else throw Error("Only radix 2, 4, 8, 16, 32 are supported");var t,n,r=(1<<t)-1,i=!1,o="",a=this.t,s=this.DB-a*this.DB%t;if(a-- >0)for(s<this.DB&&(n=this[a]>>s)>0&&(i=!0,o=tW(n));a>=0;)s<t?n=(this[a]&(1<<s)-1)<<t-s|this[--a]>>(s+=this.DB-t):(n=this[a]>>(s-=t)&r,s<=0&&(s+=this.DB,--a)),n>0&&(i=!0),i&&(o+=tW(n));return i?o:"0"},tz.prototype.negate=function(){var e=t$();return tz.ZERO.subTo(this,e),e},tz.prototype.abs=function(){return this.s<0?this.negate():this},tz.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;--n>=0;)if(0!=(t=this[n]-e[n]))return t;return 0},tz.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+tq(this[this.t-1]^this.s&this.DM)},tz.prototype.mod=function(e){var t=t$();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(tz.ZERO)>0&&e.subTo(t,t),t},tz.prototype.equals=function(e){return 0==this.compareTo(e)},tz.prototype.add=function(e){var t=t$();return this.addTo(e,t),t},tz.prototype.subtract=function(e){var t=t$();return this.subTo(e,t),t},tz.prototype.multiply=function(e){var t=t$();return this.multiplyTo(e,t),t},tz.prototype.divide=function(e){var t=t$();return this.divRemTo(e,t,null),t},tz.prototype.modPow=function(e,t,n){var r,i=e.bitLength(),o=tG(1),a=new tY(t);if(i<=0)return o;var s=[],l=3,u=(r=i<18?1:i<48?3:i<144?4:i<768?5:6)-1,c=(1<<r)-1;if(s[1]=a.convert(this),r>1){var d=t$();for(a.sqrTo(s[1],d);l<=c;)s[l]=t$(),a.mulTo(d,s[l-2],s[l]),l+=2}var h,p,f=e.t-1,m=!0,g=t$();for(i=tq(e[f])-1;f>=0;){for(i>=u?h=e[f]>>i-u&c:(h=(e[f]&(1<<i+1)-1)<<u-i,f>0&&(h|=e[f-1]>>this.DB+i-u)),l=r;(1&h)==0;)h>>=1,--l;if((i-=l)<0&&(i+=this.DB,--f),m)s[h].copyTo(o),m=!1;else{for(;l>1;)a.sqrTo(o,g),a.sqrTo(g,o),l-=2;l>0?a.sqrTo(o,g):(p=o,o=g,g=p),a.mulTo(g,s[h],o)}for(;f>=0&&(e[f]&1<<i)==0;)a.sqrTo(o,g),p=o,o=g,g=p,--i<0&&(i=this.DB-1,--f)}var v=a.revert(o);return n(null,v),v},tz.ZERO=tG(0),tz.ONE=tG(1);var tJ=/^[89a-f]/i,tX=function(){function e(e){this.N=new tz("FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF",16),this.g=new tz("2",16),this.k=new tz(this.hexHash(""+this.padHex(this.N)+this.padHex(this.g)),16),this.smallAValue=this.generateRandomSmallA(),this.getLargeAValue(function(){}),this.infoBits=tN.hp.from("Caldera Derived Key","utf8"),this.poolName=e}var t=e.prototype;return t.getSmallAValue=function(){return this.smallAValue},t.getLargeAValue=function(e){var t=this;this.largeAValue?e(null,this.largeAValue):this.calculateA(this.smallAValue,function(n,r){n&&e(n,null),t.largeAValue=r,e(null,t.largeAValue)})},t.generateRandomSmallA=function(){return new tz(tK(128).toString("hex"),16)},t.generateRandomString=function(){return tK(40).toString("base64")},t.getRandomPassword=function(){return this.randomPassword},t.getSaltDevices=function(){return this.SaltToHashDevices},t.getVerifierDevices=function(){return this.verifierDevices},t.generateHashDevice=function(e,t,n){var r=this;this.randomPassword=this.generateRandomString();var i=""+e+t+":"+this.randomPassword,o=this.hash(i),a=tK(16).toString("hex");this.SaltToHashDevices=this.padHex(new tz(a,16)),this.g.modPow(new tz(this.hexHash(this.SaltToHashDevices+o),16),this.N,function(e,t){e&&n(e,null),r.verifierDevices=r.padHex(t),n(null,null)})},t.calculateA=function(e,t){var n=this;this.g.modPow(e,this.N,function(e,r){e&&t(e,null),r.mod(n.N).equals(tz.ZERO)&&t(Error("Illegal paramater. A mod N cannot be 0."),null),t(null,r)}
24)},t.calculateU=function(e,t){return this.UHexHash=this.hexHash(this.padHex(e)+this.padHex(t)),new tz(this.UHexHash,16)},t.hash=function(e){var t=new tB.Sha256;t.update(e);var n=t.digestSync(),r=tN.hp.from(n).toString("hex");return Array(64-r.length).join("0")+r},t.hexHash=function(e){return this.hash(tN.hp.from(e,"hex"))},t.computehkdf=function(e,t){var n=tN.hp.concat([this.infoBits,tN.hp.from("\x01","utf8")]),r=new tB.Sha256(t);r.update(e);var i=r.digestSync(),o=new tB.Sha256(i);return o.update(n),o.digestSync().slice(0,16)},t.getPasswordAuthenticationKey=function(e,t,n,r,i){var o=this;if(n.mod(this.N).equals(tz.ZERO))throw Error("B cannot be zero.");if(this.UValue=this.calculateU(this.largeAValue,n),this.UValue.equals(tz.ZERO))throw Error("U cannot be zero.");var a=""+this.poolName+e+":"+t,s=this.hash(a),l=new tz(this.hexHash(this.padHex(r)+s),16);this.calculateS(l,n,function(e,t){e&&i(e,null),i(null,o.computehkdf(tN.hp.from(o.padHex(t),"hex"),tN.hp.from(o.padHex(o.UValue),"hex")))})},t.calculateS=function(e,t,n){var r=this;this.g.modPow(e,this.N,function(i,o){i&&n(i,null),t.subtract(r.k.multiply(o)).modPow(r.smallAValue.add(r.UValue.multiply(e)),r.N,function(e,t){e&&n(e,null),n(null,t.mod(r.N))})})},t.getNewPasswordRequiredChallengeUserAttributePrefix=function(){return"userAttributes."},t.padHex=function(e){if(!(e instanceof tz))throw Error("Not a BigInteger");var t=0>e.compareTo(tz.ZERO),n=e.abs().toString(16);return n=n.length%2!=0?"0"+n:n,n=tJ.test(n)?"00"+n:n,t&&(n=new tz(n.split("").map(function(e){var t=15&~parseInt(e,16);return"0123456789ABCDEF".charAt(t)}).join(""),16).add(tz.ONE).toString(16)).toUpperCase().startsWith("FF8")&&(n=n.substring(2)),n},e}(),tZ=function(){function e(e){this.jwtToken=e||"",this.payload=this.decodePayload()}var t=e.prototype;return t.getJwtToken=function(){return this.jwtToken},t.getExpiration=function(){return this.payload.exp},t.getIssuedAt=function(){return this.payload.iat},t.decodePayload=function(){var e=this.jwtToken.split(".")[1];try{return JSON.parse(tN.hp.from(e,"base64").toString("utf8"))}catch(e){return{}}},e}();function tQ(e,t){return(tQ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var t0=function(e){function t(t){var n=(void 0===t?{}:t).AccessToken;return e.call(this,n||"")||this}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,tQ(t,e),t}(tZ);function t1(e,t){return(t1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var t2=function(e){function t(t){var n=(void 0===t?{}:t).IdToken;return e.call(this,n||"")||this}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t1(t,e),t}(tZ),t5=function(){function e(e){var t=(void 0===e?{}:e).RefreshToken;this.token=t||""}return e.prototype.getToken=function(){return this.token},e}(),t4={userAgent:"aws-amplify/5.0.4",isReactNative:"undefined"!=typeof navigator&&"ReactNative"===navigator.product},t3=function(){function e(e){var t=void 0===e?{}:e,n=t.IdToken,r=t.RefreshToken,i=t.AccessToken,o=t.ClockDrift;if(null==i||null==n)throw Error("Id token and Access Token must be present.");this.idToken=n,this.refreshToken=r,this.accessToken=i,this.clockDrift=void 0===o?this.calculateClockDrift():o}var t=e.prototype;return t.getIdToken=function(){return this.idToken},t.getRefreshToken=function(){return this.refreshToken},t.getAccessToken=function(){return this.accessToken},t.getClockDrift=function(){return this.clockDrift},t.calculateClockDrift=function(){return Math.floor(new Date/1e3)-Math.min(this.accessToken.getIssuedAt(),this.idToken.getIssuedAt())},t.isValid=function(){var e=Math.floor(new Date/1e3)-this.clockDrift;return e<this.accessToken.getExpiration()&&e<this.idToken.getExpiration()},e}(),t6=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],t9=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],t8=function(){function e(){}return e.prototype.getNowString=function(){var e=new Date,t=t9[e.getUTCDay()],n=t6[e.getUTCMonth()],r=e.getUTCDate(),i=e.getUTCHours();i<10&&(i="0"+i);var o=e.getUTCMinutes();o<10&&(o="0"+o);var a=e.getUTCSeconds();return a<10&&(a="0"+a),t+" "+n+" "+r+" "+i+":"+o+":"+a+" UTC "+e.getUTCFullYear()},e}(),t7=function(){function e(e){var t=void 0===e?{}:e,n=t.Name,r=t.Value;this.Name=n||"",this.Value=r||""}var t=e.prototype;return t.getValue=function(){return this.Value},t.setValue=function(e){return this.Value=e,this},t.getName=function(){return this.Name},t.setName=function(e){return this.Name=e,this},t.toString=function(){return JSON.stringify(this)},t.toJSON=function(){return{Name:this.Name,Value:this.Value}},e}(),ne={},nt=function(){function e(){}return e.setItem=function(e,t){return ne[e]=t,ne[e]},e.getItem=function(e){return Object.prototype.hasOwnProperty.call(ne,e)?ne[e]:void 0},e.removeItem=function(e){return delete ne[e]},e.clear=function(){return ne={}},e}(),nn=function(){function e(){try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.cognito.test-ls",1),this.storageWindow.removeItem("aws.cognito.test-ls")}catch(e){this.storageWindow=nt}}return e.prototype.getStorage=function(){return this.storageWindow},e}(),nr="undefined"!=typeof navigator?t4.isReactNative?"react-native":navigator.userAgent:"nodejs",ni=function(){function e(e){if(null==e||null==e.Username||null==e.Pool)throw Error("Username and Pool information are required.");this.username=e.Username||"",this.pool=e.Pool,this.Session=null,this.client=e.Pool.client,this.signInUserSession=null,this.authenticationFlowType="USER_SRP_AUTH",this.storage=e.Storage||new nn().getStorage(),this.keyPrefix="CognitoIdentityServiceProvider."+this.pool.getClientId(),this.userDataKey=this.keyPrefix+"."+this.username+".userData"}var t=e.prototype;return t.setSignInUserSession=function(e){this.clearCachedUserData(),this.signInUserSession=e,this.cacheTokens()},t.getSignInUserSession=function(){return this.signInUserSession},t.getUsername=function(){return this.username},t.getAuthenticationFlowType=function(){return this.authenticationFlowType},t.setAuthenticationFlowType=function(e){this.authenticationFlowType=e},t.initiateAuth=function(e,t){var n=this,r=e.getAuthParameters();r.USERNAME=this.username;var i=0!==Object.keys(e.getValidationData()).length?e.getValidationData():e.getClientMetadata(),o={AuthFlow:"CUSTOM_AUTH",ClientId:this.pool.getClientId(),AuthParameters:r,ClientMetadata:i};this.getUserContextData()&&(o.UserContextData=this.getUserContextData()),this.client.request("InitiateAuth",o,function(e,r){if(e)return t.onFailure(e);var i=r.ChallengeName,o=r.ChallengeParameters;return"CUSTOM_CHALLENGE"===i?(n.Session=r.Session,t.customChallenge(o)):(n.signInUserSession=n.getCognitoUserSession(r.AuthenticationResult),n.cacheTokens(),t.onSuccess(n.signInUserSession))})},t.authenticateUser=function(e,t){return"USER_PASSWORD_AUTH"===this.authenticationFlowType?this.authenticateUserPlainUsernamePassword(e,t):"USER_SRP_AUTH"===this.authenticationFlowType||"CUSTOM_AUTH"===this.authenticationFlowType?this.authenticateUserDefaultAuth(e,t):t.onFailure(Error("Authentication flow type is invali
24d."))},t.authenticateUserDefaultAuth=function(e,t){var n,r,i=this,o=new tX(this.pool.getUserPoolName()),a=new t8,s={};null!=this.deviceKey&&(s.DEVICE_KEY=this.deviceKey),s.USERNAME=this.username,o.getLargeAValue(function(l,u){l&&t.onFailure(l),s.SRP_A=u.toString(16),"CUSTOM_AUTH"===i.authenticationFlowType&&(s.CHALLENGE_NAME="SRP_A");var c=0!==Object.keys(e.getValidationData()).length?e.getValidationData():e.getClientMetadata(),d={AuthFlow:i.authenticationFlowType,ClientId:i.pool.getClientId(),AuthParameters:s,ClientMetadata:c};i.getUserContextData(i.username)&&(d.UserContextData=i.getUserContextData(i.username)),i.client.request("InitiateAuth",d,function(s,l){if(s)return t.onFailure(s);var u=l.ChallengeParameters;i.username=u.USER_ID_FOR_SRP,i.userDataKey=i.keyPrefix+"."+i.username+".userData",n=new tz(u.SRP_B,16),r=new tz(u.SALT,16),i.getCachedDeviceKeyAndPassword(),o.getPasswordAuthenticationKey(i.username,e.getPassword(),n,r,function(e,n){e&&t.onFailure(e);var r=a.getNowString(),s=tN.hp.concat([tN.hp.from(i.pool.getUserPoolName(),"utf8"),tN.hp.from(i.username,"utf8"),tN.hp.from(u.SECRET_BLOCK,"base64"),tN.hp.from(r,"utf8")]),d=new tB.Sha256(n);d.update(s);var h=d.digestSync(),p=tN.hp.from(h).toString("base64"),f={};f.USERNAME=i.username,f.PASSWORD_CLAIM_SECRET_BLOCK=u.SECRET_BLOCK,f.TIMESTAMP=r,f.PASSWORD_CLAIM_SIGNATURE=p,null!=i.deviceKey&&(f.DEVICE_KEY=i.deviceKey);var m=function(e,t){return i.client.request("RespondToAuthChallenge",e,function(n,r){return n&&"ResourceNotFoundException"===n.code&&-1!==n.message.toLowerCase().indexOf("device")?(f.DEVICE_KEY=null,i.deviceKey=null,i.randomPassword=null,i.deviceGroupKey=null,i.clearCachedDeviceKeyAndPassword(),m(e,t)):t(n,r)})},g={ChallengeName:"PASSWORD_VERIFIER",ClientId:i.pool.getClientId(),ChallengeResponses:f,Session:l.Session,ClientMetadata:c};i.getUserContextData()&&(g.UserContextData=i.getUserContextData()),m(g,function(e,n){return e?t.onFailure(e):i.authenticateUserInternal(n,o,t)})})})})},t.authenticateUserPlainUsernamePassword=function(e,t){var n=this,r={};if(r.USERNAME=this.username,r.PASSWORD=e.getPassword(),!r.PASSWORD)return void t.onFailure(Error("PASSWORD parameter is required"));var i=new tX(this.pool.getUserPoolName());this.getCachedDeviceKeyAndPassword(),null!=this.deviceKey&&(r.DEVICE_KEY=this.deviceKey);var o=0!==Object.keys(e.getValidationData()).length?e.getValidationData():e.getClientMetadata(),a={AuthFlow:"USER_PASSWORD_AUTH",ClientId:this.pool.getClientId(),AuthParameters:r,ClientMetadata:o};this.getUserContextData(this.username)&&(a.UserContextData=this.getUserContextData(this.username)),this.client.request("InitiateAuth",a,function(e,r){return e?t.onFailure(e):n.authenticateUserInternal(r,i,t)})},t.authenticateUserInternal=function(e,t,n){var r=this,i=e.ChallengeName,o=e.ChallengeParameters;if("SMS_MFA"===i)return this.Session=e.Session,n.mfaRequired(i,o);if("SELECT_MFA_TYPE"===i)return this.Session=e.Session,n.selectMFAType(i,o);if("MFA_SETUP"===i)return this.Session=e.Session,n.mfaSetup(i,o);if("SOFTWARE_TOKEN_MFA"===i)return this.Session=e.Session,n.totpRequired(i,o);if("CUSTOM_CHALLENGE"===i)return this.Session=e.Session,n.customChallenge(o);if("NEW_PASSWORD_REQUIRED"===i){this.Session=e.Session;var a=null,s=null,l=[],u=t.getNewPasswordRequiredChallengeUserAttributePrefix();if(o&&(a=JSON.parse(e.ChallengeParameters.userAttributes),s=JSON.parse(e.ChallengeParameters.requiredAttributes)),s)for(var c=0;c<s.length;c++)l[c]=s[c].substr(u.length);return n.newPasswordRequired(a,l)}if("DEVICE_SRP_AUTH"===i){this.Session=e.Session,this.getDeviceResponse(n);return}this.signInUserSession=this.getCognitoUserSession(e.AuthenticationResult),this.challengeName=i,this.cacheTokens();var d=e.AuthenticationResult.NewDeviceMetadata;if(null==d)return n.onSuccess(this.signInUserSession);t.generateHashDevice(e.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,e.AuthenticationResult.NewDeviceMetadata.DeviceKey,function(i){if(i)return n.onFailure(i);var o={Salt:tN.hp.from(t.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:tN.hp.from(t.getVerifierDevices(),"hex").toString("base64")};r.verifierDevices=o.PasswordVerifier,r.deviceGroupKey=d.DeviceGroupKey,r.randomPassword=t.getRandomPassword(),r.client.request("ConfirmDevice",{DeviceKey:d.DeviceKey,AccessToken:r.signInUserSession.getAccessToken().getJwtToken(),DeviceSecretVerifierConfig:o,DeviceName:nr},function(t,i){return t?n.onFailure(t):(r.deviceKey=e.AuthenticationResult.
24NewDeviceMetadata.DeviceKey,r.cacheDeviceKeyAndPassword(),!0===i.UserConfirmationNecessary)?n.onSuccess(r.signInUserSession,i.UserConfirmationNecessary):n.onSuccess(r.signInUserSession)})})},t.completeNewPasswordChallenge=function(e,t,n,r){var i=this;if(!e)return n.onFailure(Error("New password is required."));var o=new tX(this.pool.getUserPoolName()),a=o.getNewPasswordRequiredChallengeUserAttributePrefix(),s={};t&&Object.keys(t).forEach(function(e){s[a+e]=t[e]}),s.NEW_PASSWORD=e,s.USERNAME=this.username;var l={ChallengeName:"NEW_PASSWORD_REQUIRED",ClientId:this.pool.getClientId(),ChallengeResponses:s,Session:this.Session,ClientMetadata:r};this.getUserContextData()&&(l.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",l,function(e,t){return e?n.onFailure(e):i.authenticateUserInternal(t,o,n)})},t.getDeviceResponse=function(e,t){var n=this,r=new tX(this.deviceGroupKey),i=new t8,o={};o.USERNAME=this.username,o.DEVICE_KEY=this.deviceKey,r.getLargeAValue(function(a,s){a&&e.onFailure(a),o.SRP_A=s.toString(16);var l={ChallengeName:"DEVICE_SRP_AUTH",ClientId:n.pool.getClientId(),ChallengeResponses:o,ClientMetadata:t,Session:n.Session};n.getUserContextData()&&(l.UserContextData=n.getUserContextData()),n.client.request("RespondToAuthChallenge",l,function(t,o){if(t)return e.onFailure(t);var a=o.ChallengeParameters,s=new tz(a.SRP_B,16),l=new tz(a.SALT,16);r.getPasswordAuthenticationKey(n.deviceKey,n.randomPassword,s,l,function(t,r){if(t)return e.onFailure(t);var s=i.getNowString(),l=tN.hp.concat([tN.hp.from(n.deviceGroupKey,"utf8"),tN.hp.from(n.deviceKey,"utf8"),tN.hp.from(a.SECRET_BLOCK,"base64"),tN.hp.from(s,"utf8")]),u=new tB.Sha256(r);u.update(l);var c=u.digestSync(),d=tN.hp.from(c).toString("base64"),h={};h.USERNAME=n.username,h.PASSWORD_CLAIM_SECRET_BLOCK=a.SECRET_BLOCK,h.TIMESTAMP=s,h.PASSWORD_CLAIM_SIGNATURE=d,h.DEVICE_KEY=n.deviceKey;var p={ChallengeName:"DEVICE_PASSWORD_VERIFIER",ClientId:n.pool.getClientId(),ChallengeResponses:h,Session:o.Session};n.getUserContextData()&&(p.UserContextData=n.getUserContextData()),n.client.request("RespondToAuthChallenge",p,function(t,r){return t?e.onFailure(t):(n.signInUserSession=n.getCognitoUserSession(r.AuthenticationResult),n.cacheTokens(),e.onSuccess(n.signInUserSession))})})})})},t.confirmRegistration=function(e,t,n,r){var i={ClientId:this.pool.getClientId(),ConfirmationCode:e,Username:this.username,ForceAliasCreation:t,ClientMetadata:r};this.getUserContextData()&&(i.UserContextData=this.getUserContextData()),this.client.request("ConfirmSignUp",i,function(e){return e?n(e,null):n(null,"SUCCESS")})},t.sendCustomChallengeAnswer=function(e,t,n){var r=this,i={};i.USERNAME=this.username,i.ANSWER=e;var o=new tX(this.pool.getUserPoolName());this.getCachedDeviceKeyAndPassword(),null!=this.deviceKey&&(i.DEVICE_KEY=this.deviceKey);var a={ChallengeName:"CUSTOM_CHALLENGE",ChallengeResponses:i,ClientId:this.pool.getClientId(),Session:this.Session,ClientMetadata:n};this.getUserContextData()&&(a.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",a,function(e,n){return e?t.onFailure(e):r.authenticateUserInternal(n,o,t)})},t.sendMFACode=function(e,t,n,r){var i=this,o={};o.USERNAME=this.username,o.SMS_MFA_CODE=e;var a=n||"SMS_MFA";"SOFTWARE_TOKEN_MFA"===a&&(o.SOFTWARE_TOKEN_MFA_CODE=e),null!=this.deviceKey&&(o.DEVICE_KEY=this.deviceKey);var s={ChallengeName:a,ChallengeResponses:o,ClientId:this.pool.getClientId(),Session:this.Session,ClientMetadata:r};this.getUserContextData()&&(s.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",s,function(e,n){if(e)return t.onFailure(e);
24if("DEVICE_SRP_AUTH"===n.ChallengeName)return void i.getDeviceResponse(t);if(i.signInUserSession=i.getCognitoUserSession(n.AuthenticationResult),i.cacheTokens(),null==n.AuthenticationResult.NewDeviceMetadata)return t.onSuccess(i.signInUserSession);var r=new tX(i.pool.getUserPoolName());r.generateHashDevice(n.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,n.AuthenticationResult.NewDeviceMetadata.DeviceKey,function(e){if(e)return t.onFailure(e);var o={Salt:tN.hp.from(r.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:tN.hp.from(r.getVerifierDevices(),"hex").toString("base64")};i.verifierDevices=o.PasswordVerifier,i.deviceGroupKey=n.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,i.randomPassword=r.getRandomPassword(),i.client.request("ConfirmDevice",{DeviceKey:n.AuthenticationResult.NewDeviceMetadata.DeviceKey,AccessToken:i.signInUserSession.getAccessToken().getJwtToken(),DeviceSecretVerifierConfig:o,DeviceName:nr},function(e,r){return e?t.onFailure(e):(i.deviceKey=n.AuthenticationResult.NewDeviceMetadata.DeviceKey,i.cacheDeviceKeyAndPassword(),!0===r.UserConfirmationNecessary)?t.onSuccess(i.signInUserSession,r.UserConfirmationNecessary):t.onSuccess(i.signInUserSession)})})})},t.changePassword=function(e,t,n,r){if(!(null!=this.signInUserSession&&this.signInUserSession.isValid()))return n(Error("User is not authenticated"),null);this.client.request("ChangePassword",{PreviousPassword:e,ProposedPassword:t,AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:r},function(e){return e?n(e,null):n(null,"SUCCESS")})},t.enableMFA=function(e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e(Error("User is not authenticated"),null);var t=[];t.push({DeliveryMedium:"SMS",AttributeName:"phone_number"}),this.client.request("SetUserSettings",{MFAOptions:t,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(t){return t?e(t,null):e(null,"SUCCESS")})},t.setUserMfaPreference=function(e,t,n){if(null==this.signInUserSession||!this.signInUserSession.isValid())return n(Error("User is not authenticated"),null);this.client.request("SetUserMFAPreference",{SMSMfaSettings:e,SoftwareTokenMfaSettings:t,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(e){return e?n(e,null):n(null,"SUCCESS")})},t.disableMFA=function(e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e(Error("User is not authenticated"),null);this.client.request("SetUserSettings",{MFAOptions:[],AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(t){return t?e(t,null):e(null,"SUCCESS")})},t.deleteUser=function(e,t){var n=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return e(Error("User is not authenticated"),null);this.client.request("DeleteUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:t},function(t){return t?e(t,null):(n.clearCachedUser(),e(null,"SUCCESS"))})},t.updateAttributes=function(e,t,n){var r=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return t(Error("User is not authenticated"),null);this.client.request("UpdateUserAttributes",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),UserAttributes:e,ClientMetadata:n},function(e,n){return e?t(e,null):r.getUserData(function(){return t(null,"SUCCESS",n)},{bypassCache:!0})})},t.getUserAttributes=function(e){if(!(null!=this.signInUserSession&&this.signInUserSession.isValid()))return e(Error("User is not authenticated"),null);this.client.request("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(t,n){if(t)return e(t,null);for(var r=[],i=0;i<n.UserAttributes.length;i++){var o=new t7({Name:n.UserAttributes[i].Name,Value:n.UserAttributes[i].Value});r.push(o)}return e(null,r)})},t.getMFAOptions=function(e){if(!(null!=this.signInUserSession&&this.signInUserSession.isValid()))return e(Error("User is not authenticated"),null);this.client.request("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()}
24,function(t,n){return t?e(t,null):e(null,n.MFAOptions)})},t.createGetUserRequest=function(){return this.client.promisifyRequest("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()})},t.refreshSessionIfPossible=function(e){var t=this;return void 0===e&&(e={}),new Promise(function(n){var r=t.signInUserSession.getRefreshToken();r&&r.getToken()?t.refreshSession(r,n,e.clientMetadata):n()})},t.getUserData=function(e,t){var n=this;if(!(null!=this.signInUserSession&&this.signInUserSession.isValid()))return this.clearCachedUserData(),e(Error("User is not authenticated"),null);var r=this.getUserDataFromCache();if(!r)return void this.fetchUserData().then(function(t){e(null,t)}).catch(e);if(this.isFetchUserDataAndTokenRequired(t))return void this.fetchUserData().then(function(e){return n.refreshSessionIfPossible(t).then(function(){return e})}).then(function(t){return e(null,t)}).catch(e);try{e(null,JSON.parse(r));return}catch(t){this.clearCachedUserData(),e(t,null);return}},t.getUserDataFromCache=function(){return this.storage.getItem(this.userDataKey)},t.isFetchUserDataAndTokenRequired=function(e){var t=(e||{}).bypassCache;return void 0!==t&&t},t.fetchUserData=function(){var e=this;return this.createGetUserRequest().then(function(t){return e.cacheUserData(t),t})},t.deleteAttributes=function(e,t){var n=this;if(!(null!=this.signInUserSession&&this.signInUserSession.isValid()))return t(Error("User is not authenticated"),null);this.client.request("DeleteUserAttributes",{UserAttributeNames:e,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(e){return e?t(e,null):n.getUserData(function(){return t(null,"SUCCESS")},{bypassCache:!0})})},t.resendConfirmationCode=function(e,t){var n={ClientId:this.pool.getClientId(),Username:this.username,ClientMetadata:t};this.client.request("ResendConfirmationCode",n,function(t,n){return t?e(t,null):e(null,n)})},t.getSession=function(e,t){if(void 0===t&&(t={}),null==this.username)return e(Error("Username is null. Cannot retrieve a new session"),null);if(null!=this.signInUserSession&&this.signInUserSession.isValid())return e(null,this.signInUserSession);var n="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,r=n+".idToken";if(this.storage.getItem(r)){var i=new t2({IdToken:this.storage.getItem(r)}),o=new t0({AccessToken:this.storage.getItem(n+".accessToken")}),a=new t5({RefreshToken:this.storage.getItem(n+".refreshToken")}),s=new t3({IdToken:i,AccessToken:o,RefreshToken:a,ClockDrift:parseInt(this.storage.getItem(n+".clockDrift"),0)||0});if(s.isValid())return this.signInUserSession=s,e(null,this.signInUserSession);if(!a.getToken())return e(Error("Cannot retrieve a new session. Please authenticate."),null);this.refreshSession(a,e,t.clientMetadata)}else e(Error("Local storage is missing an ID Token, Please authenticate"),null)},t.refreshSession=function(e,t,n){var r=this,i=this.pool.wrapRefreshSessionCallback?this.pool.wrapRefreshSessionCallback(t):t,o={};o.REFRESH_TOKEN=e.getToken();var a="CognitoIdentityServiceProvider."+this.pool.getClientId(),s=a+".LastAuthUser";if(this.storage.getItem(s)){this.username=this.storage.getItem(s);var l=a+"."+this.username+".deviceKey";this.deviceKey=this.storage.getItem(l),o.DEVICE_KEY=this.deviceKey}var u={ClientId:this.pool.getClientId(),AuthFlow:"REFRESH_TOKEN_AUTH",AuthParameters:o,ClientMetadata:n};this.getUserContextData()&&(u.UserContextData=this.getUserContextData()),this.client.requestWithRetry("InitiateAuth",u,function(t,n){if(t)return"NotAuthorizedException"===t.code&&r.clearCachedUser(),i(t,null);if(n){var o=n.AuthenticationResult;return Object.prototype.hasOwnProperty.call(o,"RefreshToken")||(o.RefreshToken=e.getToken()),r.signInUserSession=r.getCognitoUserSession(o),r.cacheTokens(),i(null,r.signInUserSession)}})},t.cacheTokens=function(){var e="CognitoIdentityServiceProvider."+this.pool.getClientId(),t=e+"."+this.username+".idToken",n=e+"."+this.username+".accessToken",r=e+"."+this.username+".refreshToken",i=e+"."+this.username+".clockDrift";this.storage.setItem(t,this.signInUserSession.getIdToken().getJwtToken()),this.storage.setItem(n,this.signInUserSession.getAccessToken().getJwtToken()),this.storage.setItem(r,this.signInUserSession.getRefreshToken().getToken()),this.storage.setItem(i,""+this.signInUserSession.getClockDrift()),this.storage.setItem(e+".LastAuthUser",this.username)},t.cacheUserData=function(e){this.storage.setItem(this.userDataKey,JSON.stringify(e))},t.clearCachedUserData=function(){this.storage.removeItem(this.userDataKey)},t.clearCachedUser=function(){this.clearCachedTokens(),this.clearCachedUserData()}
24,t.cacheDeviceKeyAndPassword=function(){var e="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username;this.storage.setItem(e+".deviceKey",this.deviceKey),this.storage.setItem(e+".randomPasswordKey",this.randomPassword),this.storage.setItem(e+".deviceGroupKey",this.deviceGroupKey)},t.getCachedDeviceKeyAndPassword=function(){var e="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,t=e+".deviceKey";this.storage.getItem(t)&&(this.deviceKey=this.storage.getItem(t),this.randomPassword=this.storage.getItem(e+".randomPasswordKey"),this.deviceGroupKey=this.storage.getItem(e+".deviceGroupKey"))},t.clearCachedDeviceKeyAndPassword=function(){var e="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username;this.storage.removeItem(e+".deviceKey"),this.storage.removeItem(e+".randomPasswordKey"),this.storage.removeItem(e+".deviceGroupKey")},t.clearCachedTokens=function(){var e="CognitoIdentityServiceProvider."+this.pool.getClientId(),t=e+"."+this.username+".idToken",n=e+"."+this.username+".accessToken",r=e+"."+this.username+".refreshToken",i=e+"."+this.username+".clockDrift";this.storage.removeItem(t),this.storage.removeItem(n),this.storage.removeItem(r),this.storage.removeItem(e+".LastAuthUser"),this.storage.removeItem(i)},t.getCognitoUserSession=function(e){return new t3({IdToken:new t2(e),AccessToken:new t0(e),RefreshToken:new t5(e)})},t.forgotPassword=function(e,t){var n={ClientId:this.pool.getClientId(),Username:this.username,ClientMetadata:t};this.getUserContextData()&&(n.UserContextData=this.getUserContextData()),this.client.request("ForgotPassword",n,function(t,n){return t?e.onFailure(t):"function"==typeof e.inputVerificationCode?e.inputVerificationCode(n):e.onSuccess(n)})},t.confirmPassword=function(e,t,n,r){var i={ClientId:this.pool.getClientId(),Username:this.username,ConfirmationCode:e,Password:t,ClientMetadata:r};this.getUserContextData()&&(i.UserContextData=this.getUserContextData()),this.client.request("ConfirmForgotPassword",i,function(e){return e?n.onFailure(e):n.onSuccess("SUCCESS")})},t.getAttributeVerificationCode=function(e,t,n){if(null==this.signInUserSession||!this.signInUserSession.isValid())return t.onFailure(Error("User is not authenticated"));this.client.request("GetUserAttributeVerificationCode",{AttributeName:e,AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:n},function(e,n){return e?t.onFailure(e):"function"==typeof t.inputVerificationCode?t.inputVerificationCode(n):t.onSuccess("SUCCESS")})},t.verifyAttribute=function(e,t,n){if(null==this.signInUserSession||!this.signInUserSession.isValid())return n.onFailure(Error("User is not authenticated"));this.client.request("VerifyUserAttribute",{AttributeName:e,Code:t,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(e){return e?n.onFailure(e):n.onSuccess("SUCCESS")})},t.getDevice=function(e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e.onFailure(Error("User is not authenticated"));this.client.request("GetDevice",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey},function(t,n){return t?e.onFailure(t):e.onSuccess(n)})},t.forgetSpecificDevice=function(e,t){if(null==this.signInUserSession||!this.signInUserSession.isValid())return t.onFailure(Error("User is not authenticated"));this.client.request("ForgetDevice",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:e},function(e){return e?t.onFailure(e):t.onSuccess("SUCCESS")})},t.forgetDevice=function(e){var t=this;this.forgetSpecificDevice(this.deviceKey,{onFailure:e.onFailure,onSuccess:function(n){return t.deviceKey=null,t.deviceGroupKey=null,t.randomPassword=null,t.clearCachedDeviceKeyAndPassword(),e.onSuccess(n)}})},t.setDeviceStatusRemembered=function(e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e.onFailure(Error("User is not authenticated"));this.client.request("UpdateDeviceStatus",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey,DeviceRememberedStatus:"remembered"},function(t){return t?e.onFailure(t):e.onSuccess("SUCCESS")})},t.setDeviceStatusNotRemembered=function(e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e.onFailure(Error("User is not authenticated"));this.client.request("UpdateDeviceStatus",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey,DeviceRememberedStatus:"not_remembered"},function(t){return t?e.onFailure(t):e.onSuccess("SUCCESS")})},t.listDevices=function(e,t,n){if(null==this.signInUserSession||!this.signInUserSession.isValid())return n.onFailure(Error("User is not authenticated"));var r={AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),Limit:e};t&&(r.PaginationToken=t),this.client.request("ListDevices",r,function(e,t){return e?n.onFailure(e):n.onSuccess(t)})},t.globalSignOut=function(e){var t=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return e.onFailure(Error("User is not authenticated"));this.client.request("GlobalSignOut",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(n){return n?e.onFailure(n):(t.clearCachedUser(),e.onSuccess("SUCCESS"))})},t.signOut=function(e){var t=this;if(!e||"function"!=typeof e)return void this.cleanClientData();
24this.getSession(function(n,r){if(n)return e(n);t.revokeTokens(function(n){t.cleanClientData(),e(n)})})},t.revokeTokens=function(e){if(void 0===e&&(e=function(){}),"function"!=typeof e)throw Error("Invalid revokeTokenCallback. It should be a function.");if(!this.signInUserSession)return e(Error("User is not authenticated"));if(!this.signInUserSession.getAccessToken())return e(Error("No Access token available"));var t=this.signInUserSession.getRefreshToken().getToken(),n=this.signInUserSession.getAccessToken();if(this.isSessionRevocable(n)&&t)return this.revokeToken({token:t,callback:e});e()},t.isSessionRevocable=function(e){if(e&&"function"==typeof e.decodePayload)try{return!!e.decodePayload().origin_jti}catch(e){}return!1},t.cleanClientData=function(){this.signInUserSession=null,this.clearCachedUser()},t.revokeToken=function(e){var t=e.token,n=e.callback;this.client.requestWithRetry("RevokeToken",{Token:t,ClientId:this.pool.getClientId()},function(e){if(e)return n(e);n()})},t.sendMFASelectionAnswer=function(e,t){var n=this,r={};r.USERNAME=this.username,r.ANSWER=e;var i={ChallengeName:"SELECT_MFA_TYPE",ChallengeResponses:r,ClientId:this.pool.getClientId(),Session:this.Session};this.getUserContextData()&&(i.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",i,function(r,i){return r?t.onFailure(r):(n.Session=i.Session,"SMS_MFA"===e)?t.mfaRequired(i.ChallengeName,i.ChallengeParameters):"SOFTWARE_TOKEN_MFA"===e?t.totpRequired(i.ChallengeName,i.ChallengeParameters):void 0})},t.getUserContextData=function(){return this.pool.getUserContextData(this.username)},t.associateSoftwareToken=function(e){var t=this;null!=this.signInUserSession&&this.signInUserSession.isValid()?this.client.request("AssociateSoftwareToken",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(t,n){return t?e.onFailure(t):e.associateSecretCode(n.SecretCode)}):this.client.request("AssociateSoftwareToken",{Session:this.Session},function(n,r){return n?e.onFailure(n):(t.Session=r.Session,e.associateSecretCode(r.SecretCode))})},t.verifySoftwareToken=function(e,t,n){var r=this;null!=this.signInUserSession&&this.signInUserSession.isValid()?this.client.request("VerifySoftwareToken",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),UserCode:e,FriendlyDeviceName:t},function(e,t){return e?n.onFailure(e):n.onSuccess(t)}):this.client.request("VerifySoftwareToken",{Session:this.Session,UserCode:e,FriendlyDeviceName:t},function(e,t){if(e)return n.onFailure(e);r.Session=t.Session;var i={};i.USERNAME=r.username;var o={ChallengeName:"MFA_SETUP",ClientId:r.pool.getClientId(),ChallengeResponses:i,Session:r.Session};r.getUserContextData()&&(o.UserContextData=r.getUserContextData()),r.client.request("RespondToAuthChallenge",o,function(e,t){return e?n.onFailure(e):(r.signInUserSession=r.getCognitoUserSession(t.AuthenticationResult),r.cacheTokens(),n.onSuccess(r.signInUserSession))})})},e}();function no(){}no.prototype.userAgent=t4.userAgent;var na=function(){no.category="auth"},ns=function(e){no.framework=e},nl=function(e){var t=no.category?" "+no.category:"",n=no.framework?" framework/"+no.framework:"";return""+no.prototype.userAgent+t+n};function nu(e){var t="function"==typeof Map?new Map:void 0;return(nu=function(e){if(null===e||!function(e){try{return -1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(nc())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&nd(i,n.prototype),i}(e,arguments,nh(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),nd(n,e)})(e)}function nc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(nc=function(){return!!e})()}
24function nd(e,t){return(nd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nh(e){return(nh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var np=function(e){function t(t,n,r,i){var o;return(o=e.call(this,t)||this).code=n,o.name=r,o.statusCode=i,o}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,nd(t,e),t}(nu(Error)),nf=function(){function e(e,t,n){this.endpoint=t||"https://cognito-idp."+e+".amazonaws.com/";var r=(n||{}).credentials;this.fetchOptions=r?{credentials:r}:{}}var t=e.prototype;return t.promisifyRequest=function(e,t){var n=this;return new Promise(function(r,i){n.request(e,t,function(e,t){e?i(new np(e.message,e.code,e.name,e.statusCode)):r(t)})})},t.requestWithRetry=function(e,t,n){var r,i,o=this;(r=5e3,function e(t,n,r,i){if(void 0===i&&(i=1),"function"!=typeof t)throw Error("functionToRetry must be a function");return nm.debug(t.name+" attempt #"+i+" with args: "+JSON.stringify(n)),t.apply(void 0,n).catch(function(o){if(nm.debug("error on "+t.name,o),o&&o.nonRetryable)throw nm.debug(t.name+" non retryable error",o),o;var a=r(i,n,o);if(nm.debug(t.name+" retrying in "+a+" ms"),!1!==a)return new Promise(function(e){return setTimeout(e,a)}).then(function(){return e(t,n,r,i+1)});throw o})}(function(t){return new Promise(function(n,r){o.request(e,t,function(e,t){e?r(e):n(t)})})},[t],(i=r,function(e){var t=100*Math.pow(2,e)+100*Math.random();return!(t>i)&&t}))).then(function(e){return n(null,e)}).catch(function(e){return n(e)})},t.request=function(e,t,n){var r,i={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityProviderService."+e,"X-Amz-User-Agent":nl(),"Cache-Control":"no-store"},o=Object.assign({},this.fetchOptions,{headers:i,method:"POST",mode:"cors",body:JSON.stringify(t)});fetch(this.endpoint,o).then(function(e){return r=e,e},function(e){if(e instanceof TypeError)throw Error("Network error");throw e}).then(function(e){return e.json().catch(function(){return{}})}).then(function(e){if(r.ok)return n(null,e);var t=(e.__type||e.code).split("#").pop(),i=Error(e.message||e.Message||null);return i.name=t,i.code=t,n(i)}).catch(function(e){if(r&&r.headers&&r.headers.get("x-amzn-errortype"))try{var t=r.headers.get("x-amzn-errortype").split(":")[0],i=Error(r.status?r.status.toString():null);return i.code=t,i.name=t,i.statusCode=r.status,n(i)}catch(e){}else e instanceof Error&&"Network error"===e.message&&(e.code="NetworkError");return n(e)})},e}(),nm={debug:function(){}},ng=function(){function e(e,t){var n=e||{},r=n.UserPoolId,i=n.ClientId,o=n.endpoint,a=n.fetchOptions,s=n.AdvancedSecurityDataCollectionFlag;if(!r||!i)throw Error("Both UserPoolId and ClientId are required.");if(r.length>55||!/^[\w-]+_[0-9a-zA-Z]+$/.test(r))throw Error("Invalid UserPoolId format.");var l=r.split("_")[0];this.userPoolId=r,this.clientId=i,this.client=new nf(l,o,a),this.advancedSecurityDataCollectionFlag=!1!==s,this.storage=e.Storage||new nn().getStorage(),t&&(this.wrapRefreshSessionCallback=t)}var t=e.prototype;return t.getUserPoolId=function(){return this.userPoolId},t.getUserPoolName=function(){return this.getUserPoolId().split("_")[1]},t.getClientId=function(){return this.clientId},t.signUp=function(e,t,n,r,i,o){var a=this,s={ClientId:this.clientId,Username:e,Password:t,UserAttributes:n,ValidationData:r,ClientMetadata:o};this.getUserContextData(e)&&(s.UserContextData=this.getUserContextData(e)),this.client.request("SignUp",s,function(t,n){return t?i(t,null):i(null,{user:new ni({Username:e,Pool:a,Storage:a.storage}),userConfirmed:n.UserConfirmed,userSub:n.UserSub,codeDeliveryDetails:n.CodeDeliveryDetails})})},t.getCurrentUser=function(){var e="CognitoIdentityServiceProvider."+this.clientId+".LastAuthUser",t=this.storage.getItem(e);return t?new ni({Username:t,Pool:this,Storage:this.storage}):null},t.getUserContextData=function(e){if("undefined"!=typeof AmazonCognitoAdvancedSecurityData){var t=AmazonCognitoAdvancedSecurityData;if(this.advancedSecurityDataCollectionFlag){var n=t.getData(e,this.userPoolId,this.clientId);if(n)return{EncodedData:n}}return{}}},e}(),nv=n(80834),ny=function(){function e(e){if(void 0===e&&(e={}),e.domain&&(this.domain=e.domain),e.path?this.path=e.path:this.path="/",Object.prototype.hasOwnProperty.call(e,"expires")?this.expires=e.expires:this.expires=365,Object.prototype.hasOwnProperty.call(e,"secure")?this.secure=e.secure:this.secure=!0,Object.prototype.hasOwnProperty.call(e,"sameSite")){if(!["strict","lax","none"].includes(e.sameSite))throw Error('The sameSite value of cookieStorage must be "lax", "strict" or "none".');if("none"===e.sameSite&&!this.secure)throw Error("sameSite = None requires the Secure attribute in latest browser versions.");this.sameSite=e.sameSite}else this.sameSite=null}var t=e.prototype;return t.setItem=function(e,t){var n={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};return this.sameSite&&(n.sameSite=this.sameSite),nv.set(e,t,n),nv.get(e)},t.getItem=function(e){return nv.get(e)},t.removeItem=function(e){var t={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};return this.sameSite&&(t.sameSite=this.sameSite),nv.remove(e,t)},t.clear=function(){for(var e=nv.get(),t=Object.keys(e).length,n=0;n<t;++n)this.removeItem(Object.keys(e)[n]);return{}},e}(),nb=n(40252),nw=function(e){var t=window.open(e,"_self");
24return t?Promise.resolve(t):Promise.reject()},nS=function(e){window.sessionStorage.setItem("oauth_state",e)},nx=function(){var e=window.sessionStorage.getItem("oauth_state");return window.sessionStorage.removeItem("oauth_state"),e},nA=function(e){window.sessionStorage.setItem("ouath_pkce_key",e)},nk=function(){var e=window.sessionStorage.getItem("ouath_pkce_key");return window.sessionStorage.removeItem("ouath_pkce_key"),e};"undefined"!=typeof Symbol&&"function"==typeof Symbol.for&&Symbol.for("INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER");var nE="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",nC=function(e,t,n){X.dispatch("auth",{event:e,data:t,message:n},"Auth",nE)},nT=new W("OAuth"),n_=function(){function e(e){var t=e.config,n=e.cognitoClientId,r=e.scopes,i=void 0===r?[]:r;if(this._urlOpener=t.urlOpener||nw,this._config=t,this._cognitoClientId=n,!this.isValidScopes(i))throw Error("scopes must be a String Array");this._scopes=i}return e.prototype.isValidScopes=function(e){return Array.isArray(e)&&e.every(function(e){return"string"==typeof e})},e.prototype.oauthSignIn=function(e,t,n,i,o,a){void 0===e&&(e="code"),void 0===o&&(o=r.Cognito);var s=this._generateState(32),l=a?s+"-"+a.split("").map(function(e){return e.charCodeAt(0).toString(16).padStart(2,"0")}).join(""):s;nS(l);var u=this._generateRandom(128);nA(u);var c=this._generateChallenge(u),d=this._scopes.join(" "),h="https://"+t+"/oauth2/authorize?"+Object.entries(U(U({redirect_uri:n,response_type:e,client_id:i,identity_provider:o,scope:d,state:l},"code"===e?{code_challenge:c}:{}),"code"===e?{code_challenge_method:"S256"}:{})).map(function(e){var t=B(e,2),n=t[0],r=t[1];return encodeURIComponent(n)+"="+encodeURIComponent(r)}).join("&");nT.debug("Redirecting to "+h),this._urlOpener(h,n)},e.prototype._handleCodeFlow=function(e){return N(this,void 0,void 0,function(){var t,n,r,i,o,a,s,u,c,h,p,f,m,g,v,y;return F(this,function(b){switch(b.label){case 0:if(t=((0,nb.parse)(e).query||"").split("&").map(function(e){return e.split("=")}).reduce(function(e,t){var n,r=B(t,2),i=r[0],o=r[1];return U(U({},e),((n={})[i]=o,n))},{code:void 0}).code,n=(0,nb.parse)(e).pathname||"/",r=(0,nb.parse)(this._config.redirectSignIn).pathname||"/",!t||n!==r)return[2];return nC("codeFlow",{},"Retrieving tokens from "+(i="https://"+this._config.domain+"/oauth2/token")),o=P(this._config)?this._cognitoClientId:this._config.clientID,a=P(this._config)?this._config.redirectSignIn:this._config.redirectUri,s=nk(),u=U({grant_type:"authorization_code",code:t,client_id:o,redirect_uri:a},s?{code_verifier:s}:{}),nT.debug("Calling token endpoint: "+i+" with",u),c=Object.entries(u).map(function(e){var t=B(e,2),n=t[0],r=t[1];return encodeURIComponent(n)+"="+encodeURIComponent(r)}).join("&"),h={category:l.Auth,action:d.FederatedSignIn},[4,fetch(i,{method:"POST",headers:((y={"Content-Type":"application/x-www-form-urlencoded"})["x-amz-user-agent"]=ts(h),y),body:c})];case 1:return[4,b.sent().json()];case 2:if(f=(p=b.sent()).access_token,m=p.refresh_token,g=p.id_token,v=p.error)throw Error(v);return[2,{accessToken:f,refreshToken:m,idToken:g}]}})})},e.prototype._handleImplicitFlow=function(e){return N(this,void 0,void 0,function(){var t,n,r;return F(this,function(i){return n=(t=((0,nb.parse)(e).hash||"#").substr(1).split("&").map(function(e){return e.split("=")}).reduce(function(e,t){var n,r=B(t,2),i=r[0],o=r[1];return U(U({},e),((n={})[i]=o,n))},{id_token:void 0,access_token:void 0})).id_token,r=t.access_token,nC("implicitFlow",{},"Got tokens from "+e),nT.debug("Retrieving implicit tokens from "+e+" with"),[2,{accessToken:r,idToken:n,refreshToken:null}]})})},e.prototype.handleAuthResponse=function(e){return N(this,void 0,void 0,function(){var t,n,r,i,o,a,s;return F(this,function(l){switch(l.label){case 0:if(l.trys.push([0,5,,6]),n=(t=e?U(U({},((0,nb.parse)(e).hash||"#").substr(1).split("&").map(function(e){return e.split("=")}).reduce(function(e,t){var n=B(t,2),r=n[0],i=n[1];return e[r]=i,e},{})),((0,nb.parse)(e).query||"").split("&").map(function(e){return e.split("=")}).reduce(function(e,t){var n=B(t,2),r=n[0],i=n[1];return e[r]=i,e},{})):{}).error,r=t.error_description,n)throw Error(r);
24if(i=this._validateState(t),nT.debug("Starting "+this._config.responseType+" flow with "+e),"code"!==this._config.responseType)return[3,2];return o=[{}],[4,this._handleCodeFlow(e)];case 1:return[2,U.apply(void 0,[U.apply(void 0,o.concat([l.sent()])),{state:i}])];case 2:return a=[{}],[4,this._handleImplicitFlow(e)];case 3:return[2,U.apply(void 0,[U.apply(void 0,a.concat([l.sent()])),{state:i}])];case 4:return[3,6];case 5:throw s=l.sent(),nT.debug("Error handling auth response.",s),s;case 6:return[2]}})})},e.prototype._validateState=function(e){if(e){var t=nx(),n=e.state;if(t&&t!==n)throw Error("Invalid state in OAuth flow");return n}},e.prototype.signOut=function(){return N(this,void 0,void 0,function(){var e,t,n;return F(this,function(r){return e="https://"+this._config.domain+"/logout?",t=P(this._config)?this._cognitoClientId:this._config.oauth.clientID,n=P(this._config)?this._config.redirectSignOut:this._config.returnTo,nC("oAuthSignOut",{oAuth:"signOut"},"Signing out from "+(e+=Object.entries({client_id:t,logout_uri:encodeURIComponent(n)}).map(function(e){var t=B(e,2);return t[0]+"="+t[1]}).join("&"))),nT.debug("Signing out from "+e),[2,this._urlOpener(e,n)]})})},e.prototype._generateState=function(e){for(var t="",n=e,r="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";n>0;--n)t+=r[Math.round(Math.random()*(r.length-1))];return t},e.prototype._generateChallenge=function(e){var t=new tB.Sha256;t.update(e);var n=t.digestSync(),r=tN.hp.from(n).toString("base64");return this._base64URL(r)},e.prototype._base64URL=function(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},e.prototype._generateRandom=function(e){var t=new Uint8Array(e);if("undefined"!=typeof window&&window.crypto)window.crypto.getRandomValues(t);else for(var n=0;n<e;n+=1)t[n]=66*Math.random()|0;return this._bufferToString(t)},e.prototype._bufferToString=function(e){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=[],r=0;r<e.byteLength;r+=1){var i=e[r]%t.length;n.push(t[i])}return n.join("")},e}();let nP=function(e){if(er().isBrowser&&window.location)e({url:window.location.href});else if(er().isNode);else throw Error("Not supported")};!function(e){e.DEFAULT_MSG="Authentication Error",e.EMPTY_EMAIL="Email cannot be empty",e.EMPTY_PHONE="Phone number cannot be empty",e.EMPTY_USERNAME="Username cannot be empty",e.INVALID_USERNAME="The username should either be a string or one of the sign in types",e.EMPTY_PASSWORD="Password cannot be empty",e.EMPTY_CODE="Confirmation code cannot be empty",e.SIGN_UP_ERROR="Error creating account",e.NO_MFA="No valid MFA method provided",e.INVALID_MFA="Invalid MFA type",e.EMPTY_CHALLENGE="Challenge response cannot be empty",e.NO_USER_SESSION="Failed to get the session because the user is empty",e.NETWORK_ERROR="Network Error",e.DEVICE_CONFIG="Device tracking has not been configured in this User Pool",e.AUTOSIGNIN_ERROR="Please use your credentials to sign in"}(C||(C={}));var nM=new W("AuthError"),nI=function(e){function t(n){var r=this,i=nR[n],o=i.message,a=i.log;return(r=e.call(this,o)||this).constructor=t,Object.setPrototypeOf(r,t.prototype),r.name="AuthError",r.log=a||o,nM.error(r.log),r}return j(t,e),t}(Error),nO=function(e){function t(n){var r=e.call(this,n)||this;return r.constructor=t,Object.setPrototypeOf(r,t.prototype),r.name="NoUserPoolError",r}return j(t,e),t}(nI),nR={noConfig:{message:C.DEFAULT_MSG,log:"\n            Error: Amplify has not been configured correctly.\n            This error is typically caused by one of the following scenarios:\n\n            1. Make sure you're passing the awsconfig object to Amplify.configure() in your app's entry point\n                See https://aws-amplify.github.io/docs/js/authentication#configure-your-app for more information\n            \n            2. There might be multiple conflicting versions of amplify packages in your node_modules.\n				Refer to our docs site for help upgrading Amplify packages (https://docs.amplify.aws/lib/troubleshooting/upgrading/q/platform/js)\n        "},missingAuthConfig:{message:C.DEFAULT_MSG,log:"\n            Error: Amplify has not been configured correctly. \n            The configuration object is missing required auth properties.\n            This error is typically caused by one of the following scenarios:\n\n            1. Did you run `amplify push` after adding auth via `amplify add auth`?\n                See https://aws-amplify.github.io/docs/js/authentication#amplify-project-setup for more information\n\n            2. This could also be caused by multiple conflicting versions of amplify packages, see (https://docs.amplify.aws/lib/troubleshooting/upgrading/q/platform/js) for help upgrading Amplify packages.\n        "},emptyUsername:{message:C.EMPTY_USERNAME},invalidUsername:{message:C.INVALID_USERNAME},emptyPassword:{message:C.EMPTY_PASSWORD},emptyCode:{message:C.EMPTY_CODE},signUpError:{message:C.SIGN_UP_ERROR,log:"The first parameter should either be non-null string or object"},noMFA:{message:C.NO_MFA},invalidMFA:{message:C.INVALID_MFA},emptyChallengeResponse:{message:C.EMPTY_CHALLENGE},noUserSession:{message:C.NO_USER_SESSION},deviceConfig:{message:C.DEVICE_CONFIG}
24,networkError:{message:C.NETWORK_ERROR},autoSignInError:{message:C.AUTOSIGNIN_ERROR},default:{message:C.DEFAULT_MSG}},nD=new W("AuthClass"),nL="aws.cognito.signin.user.admin",nj="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",nU=function(e,t,n){X.dispatch("auth",{event:e,data:t,message:n},"Auth",nj)},nN=new(function(){function e(e){var t=this;this.userPool=null,this.user=null,this.oAuthFlowInProgress=!1,this.autoSignInInitiated=!1,this.inflightSessionPromise=null,this.inflightSessionPromiseCounter=0,this.Credentials=tP,this.wrapRefreshSessionCallback=function(e){return function(t,n){return n?nU("tokenRefresh",void 0,"New token retrieved"):nU("tokenRefresh_failure",t,"Failed to retrieve new token"),e(t,n)}},this.configure(e),this.currentCredentials=this.currentCredentials.bind(this),this.currentUserCredentials=this.currentUserCredentials.bind(this),X.listen("auth",function(e){switch(e.payload.event){case"verify":case"signIn":t._storage.setItem("amplify-signin-with-hostedUI","false");break;case"signOut":t._storage.removeItem("amplify-signin-with-hostedUI");break;case"cognitoHostedUI":t._storage.setItem("amplify-signin-with-hostedUI","true")}}),na(),ns(to.framework),to.observeFrameworkChanges(function(){ns(to.framework)})}return e.prototype.getModuleName=function(){return"Auth"},e.prototype.configure=function(e){var t=this;if(!e)return this._config||{};nD.debug("configure Auth");var n=Object.assign({},this._config,tx(e).Auth,e);this._config=n;var r=this._config,o=r.userPoolId,a=r.userPoolWebClientId,s=r.cookieStorage,l=r.oauth,u=r.region,c=r.identityPoolId,d=r.mandatorySignIn,h=r.refreshHandlers,p=r.identityPoolRegion,f=r.clientMetadata,m=r.endpoint,g=r.storage;if(g){if(!this._isValidAuthStorage(g))throw nD.error("The storage in the Auth config is not valid!"),Error("Empty storage object");this._storage=g}else s?this._storage=new ny(s):this._storage=e.ssr?new tj:new ee().getStorage();if(this._storageSync=Promise.resolve(),"function"==typeof this._storage.sync&&(this._storageSync=this._storage.sync()),o){var v={UserPoolId:o,ClientId:a,endpoint:m};v.Storage=this._storage,this.userPool=new ng(v,this.wrapRefreshSessionCallback)}this.Credentials.configure({mandatorySignIn:d,region:u,userPoolId:o,identityPoolId:c,refreshHandlers:h,storage:this._storage,identityPoolRegion:p});var y=l?P(this._config.oauth)?l:l.awsCognito:void 0;if(y){var b=Object.assign({cognitoClientId:a,UserPoolId:o,domain:y.domain,scopes:y.scope,redirectSignIn:y.redirectSignIn,redirectSignOut:y.redirectSignOut,responseType:y.responseType,Storage:this._storage,urlOpener:y.urlOpener,clientMetadata:f},y.options);this._oAuthHandler=new n_({scopes:b.scopes,config:b,cognitoClientId:b.cognitoClientId});var w={};nP(function(e){var n=e.url;w[n]||(w[n]=!0,t._handleAuthResponse(n))})}return nU("configured",null,"The Auth category has been configured successfully"),this.autoSignInInitiated||"function"!=typeof this._storage.getItem||(this.isTrueStorageValue("amplify-polling-started")&&(nU("autoSignIn_failure",null,i.AutoSignInError),this._storage.removeItem("amplify-auto-sign-in")),this._storage.removeItem("amplify-polling-started")),this._config},e.prototype.signUp=function(e){for(var t,n,r,o,a=this,s=[],l=1;l<arguments.length;l++)s[l-1]=arguments[l];if(!this.userPool)return this.rejectNoUserPool();var u=null,c=null,d=[],h=null,p={enabled:!1},f={},m={};if(e&&"string"==typeof e){u=e,c=s?s[0]:null;var g=s?s[1]:null,v=s?s[2]:null;g&&d.push(new t7({Name:"email",Value:g})),v&&d.push(new t7({Name:"phone_number",Value:v}))}else{if(!e||"object"!=typeof e)return this.rejectAuthError(i.SignUpError);u=e.username,c=e.password,e&&e.clientMetadata?o=e.clientMetadata:this._config.clientMetadata&&(o=this._config.clientMetadata);var y=e.attributes;y&&Object.keys(y).map(function(e){d.push(new t7({Name:e,Value:y[e]}))});var b=e.validationData;b&&(h=[],Object.keys(b).map(function(e){h.push(new t7({Name:e,Value:b[e]}))})),(p=null!=(t=e.autoSignIn)?t:{enabled:!1}).enabled&&(this._storage.setItem("amplify-auto-sign-in","true"),f=null!=(n=p.validationData)?n:{},m=null!=(r=p.clientMetaData)?r:{})}return u?c?(nD.debug("signUp attrs:",d),nD.debug("signUp validation data:",h),new Promise(function(e,t){a.userPool.signUp(u,c,d,h,function(n,r){n?(nU("signUp_failure",n,u+" failed to signup"),t(n)):(nU("signUp",r,u+" has signed up successfully"),p.enabled&&a.handleAutoSignIn(u,c,f,m,r),e(r))},o)})):this.rejectAuthError(i.EmptyPassword):this.rejectAuthError(i.EmptyUsername)}
24,e.prototype.handleAutoSignIn=function(e,t,n,r,i){this.autoSignInInitiated=!0;var o=new tU({Username:e,Password:t,ValidationData:n,ClientMetadata:r});i.userConfirmed?this.signInAfterUserConfirmed(o):"link"===this._config.signUpVerificationMethod?this.handleLinkAutoSignIn(o):this.handleCodeAutoSignIn(o)},e.prototype.handleCodeAutoSignIn=function(e){var t=this,n=function(r){"confirmSignUp"===r.payload.event&&t.signInAfterUserConfirmed(e,n)};X.listen("auth",n)},e.prototype.handleLinkAutoSignIn=function(e){var t=this;this._storage.setItem("amplify-polling-started","true");var n=Date.now(),r=setInterval(function(){Date.now()-n>18e4?(clearInterval(r),nU("autoSignIn_failure",null,"Please confirm your account and use your credentials to sign in."),t._storage.removeItem("amplify-auto-sign-in")):t.signInAfterUserConfirmed(e,null,r)},5e3)},e.prototype.signInAfterUserConfirmed=function(e,t,n){return N(this,void 0,void 0,function(){var r,i,o=this;return F(this,function(a){switch(a.label){case 0:r=this.createCognitoUser(e.getUsername()),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,r.authenticateUser(e,this.authCallbacks(r,function(r){nU("autoSignIn",r,e.getUsername()+" has signed in successfully"),t&&X.remove("auth",t),n&&(clearInterval(n),o._storage.removeItem("amplify-polling-started")),o._storage.removeItem("amplify-auto-sign-in")},function(e){nD.error(e),o._storage.removeItem("amplify-auto-sign-in")}))];case 2:return a.sent(),[3,4];case 3:return i=a.sent(),nD.error(i),[3,4];case 4:return[2]}})})},e.prototype.confirmSignUp=function(e,t,n){var r,o=this;if(!this.userPool)return this.rejectNoUserPool();if(!e)return this.rejectAuthError(i.EmptyUsername);if(!t)return this.rejectAuthError(i.EmptyCode);var a=this.createCognitoUser(e),s=!n||"boolean"!=typeof n.forceAliasCreation||n.forceAliasCreation;return n&&n.clientMetadata?r=n.clientMetadata:this._config.clientMetadata&&(r=this._config.clientMetadata),new Promise(function(n,l){a.confirmRegistration(t,s,function(t,r){t?l(t):(nU("confirmSignUp",r,e+" has been confirmed successfully"),o.isTrueStorageValue("amplify-auto-sign-in")&&!o.autoSignInInitiated&&(nU("autoSignIn_failure",null,i.AutoSignInError),o._storage.removeItem("amplify-auto-sign-in")),n(r))},r)})},e.prototype.isTrueStorageValue=function(e){var t=this._storage.getItem(e);return!!t&&"true"===t},e.prototype.resendSignUp=function(e,t){if(void 0===t&&(t=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();if(!e)return this.rejectAuthError(i.EmptyUsername);var n=this.createCognitoUser(e);return new Promise(function(e,r){n.resendConfirmationCode(function(t,n){t?r(t):e(n)},t)})},e.prototype.signIn=function(e,t,n){if(void 0===n&&(n=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();var r=null,o=null,a={};if("string"==typeof e)r=e,o=t;else{if(!e.username)return this.rejectAuthError(i.InvalidUsername);void 0!==t&&nD.warn("The password should be defined under the first parameter object!"),r=e.username,o=e.password,a=e.validationData}if(!r)return this.rejectAuthError(i.EmptyUsername);var s=new tU({Username:r,Password:o,ValidationData:a,ClientMetadata:n});return o?this.signInWithPassword(s):this.signInWithoutPassword(s)},e.prototype.authCallbacks=function(e,t,n){var r=this,i=this;return{onSuccess:function(o){return N(r,void 0,void 0,function(){var r,a,s,l;return F(this,function(u){switch(u.label){case 0:nD.debug(o),delete e.challengeName,delete e.challengeParam,u.label=1;case 1:return u.trys.push([1,4,5,9]),[4,this.Credentials.clear()];case 2:return u.sent(),[4,this.Credentials.set(o,"session")];case 3:return r=u.sent(),nD.debug("succeed to get cognito credentials",r),[3,9];case 4:return a=u.sent(),nD.debug("cannot get cognito credentials",a),[3,9];case 5:return u.trys.push([5,7,,8]),[4,this.currentUserPoolUser()];case 6:return i.user=s=u.sent(),nU("signIn",s,"A user "+e.getUsername()+" has been signed in"),t(s),[3,8];case 7:return l=u.sent(),nD.error("Failed to get the signed in user",l),n(l),[3,8];case 8:return[7];case 9:return[2]}})})},onFailure:function(t){nD.debug("signIn failure",t),nU("signIn_failure",t,e.getUsername()+" failed to signin"),n(t)},customChallenge:function(n){nD.debug("signIn custom challenge answer required"),e.challengeName="CUSTOM_CHALLENGE",e.challengeParam=n,t(e)},mfaRequired:function(n,r){nD.debug("signIn MFA required"),e.challengeName=n,e.challengeParam=r,t(e)},mfaSetup:function(n,r){nD.debug("signIn mfa setup",n),e.challengeName=n,e.challengeParam=r,t(e)},newPasswordRequired:function(n,r){nD.debug("signIn new password"),e.challengeName="NEW_PASSWORD_REQUIRED",e.challengeParam={userAttributes:n,requiredAttributes:r},t(e)},totpRequired:function(n,r){nD.debug("signIn totpRequired"),e.challengeName=n,e.challengeParam=r,t(e)},selectMFAType:function(n,r){nD.debug("signIn selectMFAType",n),e.challengeName=n,e.challengeParam=r,t(e)}}},e.prototype.signInWithPassword=function(e){var t=this;if(this.pendingSignIn)throw Error("Pending sign-in attempt already in progress");var n=this.createCognitoUser(e.getUsername());return this.pendingSignIn=new Promise(function(r,i){n.authenticateUser(e,t.authCallbacks(n,function(e){t.pendingSignIn=null,r(e)},function(e){t.pendingSignIn=null,i(e)}))}),this.pendingSignIn},e.prototype.signInWithoutPassword=function(e){var t=this,n=this.createCognitoUser(e.getUsername());return n.setAuthenticationFlowType("CUSTOM_AUTH"),new Promise(function(r,i){n.initiateAuth(e,t.authCallbacks(n,r,i))})},e.prototype.getMFAOptions=function(e){return new Promise(function(t,n){e.getMFAOptions(function(e,r){if(e){nD.debug("get MFA Options failed",e),n(e);return}nD.debug("get MFA options success",r),t(r)})})},e.prototype.getPreferredMFA=function(e,t){var n=this,r=this;return new Promise(function(i,o){var a=n._config.clientMetadata,s=!!t&&t.bypassCache;e.getUserData(function(t,a){return N(n,void 0,void 0,function(){var n,s;return F(this,function(l){switch(l.label){case 0:if(!t)return[3,5];if(nD.debug("getting preferred mfa failed",t),!this.isSessionInvalid(t))return[3,4];l.label=1;case 1:return l.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(e)];case 2:return l.sent(),[3,4];
24case 3:return n=l.sent(),o(Error("Session is invalid due to: "+t.message+" and failed to clean up invalid session: "+n.message)),[2];case 4:return o(t),[2];case 5:if(!(s=r._getMfaTypeFromUserData(a)))return o("invalid MFA Type"),[2];return i(s),[2]}})})},{bypassCache:s,clientMetadata:a})})},e.prototype._getMfaTypeFromUserData=function(e){var t=null,n=e.PreferredMfaSetting;if(n)t=n;else{var r=e.UserMFASettingList;r?0===r.length?t="NOMFA":nD.debug("invalid case for getPreferredMFA",e):t=e.MFAOptions?"SMS_MFA":"NOMFA"}return t},e.prototype._getUserData=function(e,t){var n=this;return new Promise(function(r,i){e.getUserData(function(t,o){return N(n,void 0,void 0,function(){var n;return F(this,function(a){switch(a.label){case 0:if(!t)return[3,5];if(nD.debug("getting user data failed",t),!this.isSessionInvalid(t))return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(e)];case 2:return a.sent(),[3,4];case 3:return n=a.sent(),i(Error("Session is invalid due to: "+t.message+" and failed to clean up invalid session: "+n.message)),[2];case 4:return i(t),[2];case 5:r(o),a.label=6;case 6:return[2]}})})},t)})},e.prototype.setPreferredMFA=function(e,t){return N(this,void 0,void 0,function(){var n,r,o,a,s,l,u=this;return F(this,function(c){switch(c.label){case 0:return n=this._config.clientMetadata,[4,this._getUserData(e,{bypassCache:!0,clientMetadata:n})];case 1:switch(r=c.sent(),o=null,a=null,t){case"TOTP":case"SOFTWARE_TOKEN_MFA":return[3,2];case"SMS":case"SMS_MFA":return[3,3];case"NOMFA":return[3,4]}return[3,6];case 2:return a={PreferredMfa:!0,Enabled:!0},[3,7];case 3:return o={PreferredMfa:!0,Enabled:!0},[3,7];case 4:return s=r.UserMFASettingList,[4,this._getMfaTypeFromUserData(r)];case 5:if("NOMFA"===(l=c.sent()))return[2,Promise.resolve("No change for mfa type")];if("SMS_MFA"===l)o={PreferredMfa:!1,Enabled:!1};else{if("SOFTWARE_TOKEN_MFA"!==l)return[2,this.rejectAuthError(i.InvalidMFA)];a={PreferredMfa:!1,Enabled:!1}}return s&&0!==s.length&&s.forEach(function(e){"SMS_MFA"===e?o={PreferredMfa:!1,Enabled:!1}:"SOFTWARE_TOKEN_MFA"===e&&(a={PreferredMfa:!1,Enabled:!1})}),[3,7];case 6:return nD.debug("no validmfa method provided"),[2,this.rejectAuthError(i.NoMFA)];case 7:return[2,new Promise(function(t,r){e.setUserMfaPreference(o,a,function(i,o){if(i)return nD.debug("Set user mfa preference error",i),r(i);nD.debug("Set user mfa success",o),nD.debug("Caching the latest user data into local"),e.getUserData(function(n,i){return N(u,void 0,void 0,function(){var i;return F(this,function(a){switch(a.label){case 0:if(!n)return[3,5];if(nD.debug("getting user data failed",n),!this.isSessionInvalid(n))return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(e)];case 2:return a.sent(),[3,4];case 3:return i=a.sent(),r(Error("Session is invalid due to: "+n.message+" and failed to clean up invalid session: "+i.message)),[2];case 4:return[2,r(n)];case 5:return[2,t(o)]}})})},{bypassCache:!0,clientMetadata:n})})})]}})})},e.prototype.disableSMS=function(e){return new Promise(function(t,n){e.disableMFA(function(e,r){if(e){nD.debug("disable mfa failed",e),n(e);return}nD.debug("disable mfa succeed",r),t(r)})})},e.prototype.enableSMS=function(e){return new Promise(function(t,n){e.enableMFA(function(e,r){if(e){nD.debug("enable mfa failed",e),n(e);return}nD.debug("enable mfa succeed",r),t(r)})})},e.prototype.setupTOTP=function(e){return new Promise(function(t,n){e.associateSoftwareToken({onFailure:function(e){nD.debug("associateSoftwareToken failed",e),n(e)},associateSecretCode:function(e){nD.debug("associateSoftwareToken success",e),t(e)}})})},e.prototype.verifyTotpToken=function(e,t){nD.debug("verification totp token",e,t),e&&"function"==typeof e.getSignInUserSession&&(n=e.getSignInUserSession());var n,r=null==n?void 0:n.isValid();return new Promise(function(n,i){e.verifySoftwareToken(t,"My TOTP device",{onFailure:function(e){nD.debug("verifyTotpToken failed",e),i(e)},onSuccess:function(t){r||nU("signIn",e,"A user "+e.getUsername()+" has been signed in"),nU("verify",e,"A user "+e.getUsername()+" has been verified"),nD.debug("verifyTotpToken success",t),n(t)}})})},e.prototype.confirmSignIn=function(e,t,n,r){var o=this;if(void 0===r&&(r=this._config.clientMetadata),!t)return this.rejectAuthError(i.EmptyCode);var a=this;return new Promise(function(i,s){e.sendMFACode(t,{onSuccess:function(t){return N(o,void 0,void 0,function(){var n,r,o;return F(this,function(s){switch(s.label){case 0:nD.debug(t),s.label=1;case 1:return s.trys.push([1,4,5,10]),[4,this.Credentials.clear()];case 2:return s.sent(),[4,this.Credentials.set(t,"session")];case 3:return n=s.sent(),nD.debug("succeed to get cognito credentials",n),[3,10];case 4:return r=s.sent(),nD.debug("cannot get cognito credentials",r),[3,10];case 5:a.user=e,s.label=6;case 6:return s.trys.push([6,8,,9]),[4,this.currentUserPoolUser()];case 7:return e.attributes=s.sent().attributes,[3,9];case 8:return o=s.sent(),nD.debug("cannot get updated Cognito User",o),[3,9];case 9:return nU("signIn",e,"A user "+e.getUsername()+" has been signed in"),i(e),[7];case 10:return[2]}})})}
24,onFailure:function(e){nD.debug("confirm signIn failure",e),s(e)}},n,r)})},e.prototype.completeNewPassword=function(e,t,n,r){var o=this;if(void 0===n&&(n={}),void 0===r&&(r=this._config.clientMetadata),!t)return this.rejectAuthError(i.EmptyPassword);var a=this;return new Promise(function(i,s){e.completeNewPasswordChallenge(t,n,{onSuccess:function(t){return N(o,void 0,void 0,function(){var n,r;return F(this,function(o){switch(o.label){case 0:nD.debug(t),o.label=1;case 1:return o.trys.push([1,4,5,6]),[4,this.Credentials.clear()];case 2:return o.sent(),[4,this.Credentials.set(t,"session")];case 3:return n=o.sent(),nD.debug("succeed to get cognito credentials",n),[3,6];case 4:return r=o.sent(),nD.debug("cannot get cognito credentials",r),[3,6];case 5:return a.user=e,nU("signIn",e,"A user "+e.getUsername()+" has been signed in"),i(e),[7];case 6:return[2]}})})},onFailure:function(e){nD.debug("completeNewPassword failure",e),nU("completeNewPassword_failure",e,o.user+" failed to complete the new password flow"),s(e)},mfaRequired:function(t,n){nD.debug("signIn MFA required"),e.challengeName=t,e.challengeParam=n,i(e)},mfaSetup:function(t,n){nD.debug("signIn mfa setup",t),e.challengeName=t,e.challengeParam=n,i(e)},totpRequired:function(t,n){nD.debug("signIn mfa setup",t),e.challengeName=t,e.challengeParam=n,i(e)}},r)})},e.prototype.sendCustomChallengeAnswer=function(e,t,n){var r=this;return(void 0===n&&(n=this._config.clientMetadata),this.userPool)?t?new Promise(function(i,o){e.sendCustomChallengeAnswer(t,r.authCallbacks(e,i,o),n)}):this.rejectAuthError(i.EmptyChallengeResponse):this.rejectNoUserPool()},e.prototype.deleteUserAttributes=function(e,t){var n=this;return new Promise(function(r,i){n.userSession(e).then(function(n){e.deleteAttributes(t,function(e,t){return e?i(e):r(t)})})})},e.prototype.deleteUser=function(){return N(this,void 0,void 0,function(){var e,t,n=this;return F(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this._storageSync];case 1:return r.sent(),[3,3];case 2:throw e=r.sent(),nD.debug("Failed to sync cache info into memory",e),Error(e);case 3:return t=this._oAuthHandler&&"true"===this._storage.getItem("amplify-signin-with-hostedUI"),[2,new Promise(function(e,r){return N(n,void 0,void 0,function(){var n,i=this;return F(this,function(o){if(this.userPool){if(!(n=this.userPool.getCurrentUser()))return nD.debug("Failed to get user from user pool"),[2,r(Error("No current user."))];n.getSession(function(o,a){return N(i,void 0,void 0,function(){var i,a=this;return F(this,function(s){switch(s.label){case 0:if(!o)return[3,5];if(nD.debug("Failed to get the user session",o),!this.isSessionInvalid(o))return[3,4];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(n)];case 2:return s.sent(),[3,4];case 3:return i=s.sent(),r(Error("Session is invalid due to: "+o.message+" and failed to clean up invalid session: "+i.message)),[2];case 4:return[2,r(o)];case 5:n.deleteUser(function(i,o){if(i)r(i);else{nU("userDeleted",o,"The authenticated user has been deleted."),n.signOut(),a.user=null;try{a.cleanCachedItems()}catch(e){nD.debug("failed to clear cached items")}t?a.oAuthSignOutRedirect(e,r):(nU("signOut",a.user,"A user has been signed out"),e(o))}}),s.label=6;case 6:return[2]}})})})}else nD.debug("no Congito User pool"),r(Error("Cognito User pool does not exist"));return[2]})})})]}})})},e.prototype.updateUserAttributes=function(e,t,n){var r=this;void 0===n&&(n=this._config.clientMetadata);var i=[],o=this;return new Promise(function(a,s){o.userSession(e).then(function(o){for(var l in t)if("sub"!==l&&0>l.indexOf("_verified")){var u={Name:l,Value:t[l]};i.push(u)}e.updateAttributes(i,function(e,n,i){return e?(nU("updateUserAttributes_failure",e,"Failed to update attributes"),s(e)):(nU("updateUserAttributes",r.createUpdateAttributesResultList(t,null==i?void 0:i.CodeDeliveryDetailsList),"Attributes successfully updated"),a(n))},n)})})},e.prototype.createUpdateAttributesResultList=function(e,t){var n={};return Object.keys(e).forEach(function(e){n[e]={isUpdated:!0};var r=null==t?void 0:t.find(function(t){return t.AttributeName===e});r&&(n[e].isUpdated=!1,n[e].codeDeliveryDetails=r)}),n},e.prototype.userAttributes=function(e){var t=this;return new Promise(function(n,r){t.userSession(e).then(function(t){e.getUserAttributes(function(e,t){e?r(e):n(t)})})})},e.prototype.verifiedContact=function(e){var t=this;return this.userAttributes(e).then(function(e){var n=t.attributesToObject(e),r={},i={};return n.email&&(n.email_verified?i.email=n.email:r.email=n.email),n.phone_number&&(n.phone_number_verified?i.phone_number=n.phone_number:r.phone_number=n.phone_number),{verified:i,unverified:r}})},e.prototype.isErrorWithMessage=function(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"message")},e.prototype.isTokenRevokedError=function(e){return this.isErrorWithMessage(e)&&"Access Token has been revoked"===e.message},e.prototype.isRefreshTokenRevokedError=function(e){return this.isErrorWithMessage(e)&&"Refresh Token has been revoked"===e.message},e.prototype.isUserDisabledError=function(e){return this.isErrorWithMessage(e)&&"User is disabled."===e.message},e.prototype.isUserDoesNotExistError=function(e){return this.isErrorWithMessage(e)&&"User does not exist."===e.message},e.prototype.isRefreshTokenExpiredError=function(e){return this.isErrorWithMessage(e)&&"Refresh Token has expired"===e.message},e.prototype.isPasswordResetRequiredError=function(e){return this.isErrorWithMessage(e)&&"Password reset required for the user"===e.message},e.prototype.isSignedInHostedUI=function(){return this._oAuthHandler&&"true"===this._storage.getItem("amplify-signin-with-hostedUI")},e.prototype.isSessionInvalid=function(e){return this.isUserDisabledError(e)||this.isUserDoesNotExistError(e)||this.isTokenRevokedError(e)||this.isRefreshTokenRevokedError(e)||this.isRefreshTokenExpiredError(e)||this.isPasswordResetRequiredError(e)},e.prototype.cleanUpInvalidSession=function(e){return N(this,void 0,void 0,function(){var t=this;return F(this,function(n){switch(n.label){case 0:e.signOut(),this.user=null,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.cleanCachedItems()];case 2:return n.sent(),[3,4];case 3:return n.sent(),nD.debug("failed to clear cached items"),[3,4];case 4:if(this.isSignedInHostedUI())return[2,new Promise(function(e,n){t.oAuthSignOutRedirect(e,n)})];return nU("signOut",this.user,"A user has been signed out"),[2]}})})},e.prototype.currentUserPoolUser=function(e){var t=this;return this.userPool?new Promise(function(n,r){t._storageSync.then(function(){return N(t,void 0,void 0,function(){var t,i,o,a,s,l=this;return F(this,function(u){switch(u.label){case 0:if(!this.isOAuthInProgress())return[3,2];return nD.debug("OAuth signIn in progress, waiting for resolution..."),[4,new Promise(function(e){var t=setTimeout(function(){nD.debug("OAuth signIn in progress timeout"),X.remove("auth",n),e()},1e4);function n(r){var i=r.payload.event;("cognitoHostedUI"===i||"cognitoHostedUI_failure"===i)&&(nD.debug("OAuth signIn resolved: "+i),clearTimeout(t),X.remove("auth",n),e())}X.listen("auth",n)})];case 1:u.sent(),u.label=2;case 2:if(!(t=this.userPool.getCurrentUser()))return nD.debug("Failed to get user from user pool"),r("No current user"),[2];u.label=3;case 3:return u.trys.push([3,7,,8]),[4,this._userSession(t)];case 4:if(i=u.sent(),!(o=!!e&&e.bypassCache))return[3,6];return[4,this.Credentials.clear()];case 5:u.sent(),u.label=6;case 6:if(a=this._config.clientMetadata,!(void 0===(s=i.getAccessToken().decodePayload().scope)?""
24:s).split(" ").includes(nL))return nD.debug("Unable to get the user data because the "+nL+" is not in the scopes of the access token"),[2,n(t)];return t.getUserData(function(e,i){return N(l,void 0,void 0,function(){var o,a,s,l,u,c;return F(this,function(d){switch(d.label){case 0:if(!e)return[3,7];if(nD.debug("getting user data failed",e),!this.isSessionInvalid(e))return[3,5];d.label=1;case 1:return d.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(t)];case 2:return d.sent(),[3,4];case 3:return o=d.sent(),r(Error("Session is invalid due to: "+e.message+" and failed to clean up invalid session: "+o.message)),[2];case 4:return r(e),[3,6];case 5:n(t),d.label=6;case 6:return[2];case 7:for(l=0,a=i.PreferredMfaSetting||"NOMFA",s=[];l<i.UserAttributes.length;l++)u=new t7({Name:i.UserAttributes[l].Name,Value:i.UserAttributes[l].Value}),s.push(u);return c=this.attributesToObject(s),Object.assign(t,{attributes:c,preferredMFA:a}),[2,n(t)]}})})},{bypassCache:o,clientMetadata:a}),[3,8];case 7:return r(u.sent()),[3,8];case 8:return[2]}})})}).catch(function(e){return nD.debug("Failed to sync cache info into memory",e),r(e)})}):this.rejectNoUserPool()},e.prototype.isOAuthInProgress=function(){return this.oAuthFlowInProgress},e.prototype.currentAuthenticatedUser=function(e){return N(this,void 0,void 0,function(){var t,n,r,i,o;return F(this,function(a){switch(a.label){case 0:nD.debug("getting current authenticated user"),t=null,a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this._storageSync];case 2:return a.sent(),[3,4];case 3:throw n=a.sent(),nD.debug("Failed to sync cache info into memory",n),n;case 4:try{(r=JSON.parse(this._storage.getItem("aws-amplify-federatedInfo")))&&(t=U(U({},r.user),{token:r.token}))}catch(e){nD.debug("cannot load federated user from auth storage")}if(!t)return[3,5];return this.user=t,nD.debug("get current authenticated federated user",this.user),[2,this.user];case 5:nD.debug("get current authenticated userpool user"),i=null,a.label=6;case 6:return a.trys.push([6,8,,9]),[4,this.currentUserPoolUser(e)];case 7:return i=a.sent(),[3,9];case 8:return"No userPool"===(o=a.sent())&&nD.error("Cannot get the current user because the user pool is missing. Please make sure the Auth module is configured with a valid Cognito User Pool ID"),nD.debug("The user is not authenticated by the error",o),[2,Promise.reject("The user is not authenticated")];case 9:return this.user=i,[2,this.user]}})})},e.prototype.currentSession=function(){var e=this;return(nD.debug("Getting current session"),this.userPool)?new Promise(function(t,n){e.currentUserPoolUser().then(function(r){e.userSession(r).then(function(e){t(e)}).catch(function(e){nD.debug("Failed to get the current session",e),n(e)})}).catch(function(e){nD.debug("Failed to get the current user",e),n(e)})}):Promise.reject(Error("No User Pool in the configuration."))},e.prototype._userSession=function(e){return N(this,void 0,void 0,function(){var t,n,r=this;return F(this,function(o){switch(o.label){case 0:if(!e)return nD.debug("the user is null"),[2,this.rejectAuthError(i.NoUserSession)];t=this._config.clientMetadata,0===this.inflightSessionPromiseCounter&&(this.inflightSessionPromise=new Promise(function(n,i){e.getSession(function(t,o){return N(r,void 0,void 0,function(){var r;return F(this,function(a){switch(a.label){case 0:if(!t)return[3,5];if(nD.debug("Failed to get the session from user",e),!this.isSessionInvalid(t))return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(e)];case 2:return a.sent(),[3,4];case 3:return r=a.sent(),i(Error("Session is invalid due to: "+t.message+" and failed to clean up invalid session: "+r.message)),[2];case 4:return i(t),[2];case 5:return nD.debug("Succeed to get the user session",o),n(o),[2]}})})},{clientMetadata:t})})),this.inflightSessionPromiseCounter++,o.label=1;case 1:return o.trys.push([1,,3,4]),[4,this.inflightSessionPromise];case 2:return e.signInUserSession=n=o.sent(),[2,n];case 3:return this.inflightSessionPromiseCounter--,[7];case 4:return[2]}})})},e.prototype.userSession=function(e){return this._userSession(e)},e.prototype.currentUserCredentials=function(){return N(this,void 0,void 0,function(){var e,t,n=this;return F(this,function(r){switch(r.label){case 0:nD.debug("Getting current user credentials"),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this._storageSync];case 2:return r.sent(),[3,4];case 3:throw e=r.sent(),nD.debug("Failed to sync cache info into memory",e),e;case 4:t=null;try{t=JSON.parse(this._storage.getItem("aws-amplify-federatedInfo"))}catch(e){nD.debug("failed to get or parse item aws-amplify-federatedInfo",e)}if(t)return[2,this.Credentials.refreshFederatedToken(t)];return[2,this.currentSession().then(function(e){return nD.debug("getting session success",e),n.Credentials.set(e,"session")}
24).catch(function(){return nD.debug("getting guest credentials"),n.Credentials.set(null,"guest")})]}})})},e.prototype.currentCredentials=function(){return nD.debug("getting current credentials"),this.Credentials.get()},e.prototype.verifyUserAttribute=function(e,t,n){return void 0===n&&(n=this._config.clientMetadata),new Promise(function(r,i){e.getAttributeVerificationCode(t,{onSuccess:function(e){return r(e)},onFailure:function(e){return i(e)}},n)})},e.prototype.verifyUserAttributeSubmit=function(e,t,n){return n?new Promise(function(r,i){e.verifyAttribute(t,n,{onSuccess:function(e){r(e)},onFailure:function(e){i(e)}})}):this.rejectAuthError(i.EmptyCode)},e.prototype.verifyCurrentUserAttribute=function(e){var t=this;return t.currentUserPoolUser().then(function(n){return t.verifyUserAttribute(n,e)})},e.prototype.verifyCurrentUserAttributeSubmit=function(e,t){var n=this;return n.currentUserPoolUser().then(function(r){return n.verifyUserAttributeSubmit(r,e,t)})},e.prototype.cognitoIdentitySignOut=function(e,t){return N(this,void 0,void 0,function(){var n,r,i=this;return F(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this._storageSync];case 1:return o.sent(),[3,3];case 2:throw n=o.sent(),nD.debug("Failed to sync cache info into memory",n),n;case 3:return r=this._oAuthHandler&&"true"===this._storage.getItem("amplify-signin-with-hostedUI"),[2,new Promise(function(n,o){if(e&&e.global){nD.debug("user global sign out",t);var a=i._config.clientMetadata;t.getSession(function(e,a){return N(i,void 0,void 0,function(){var i,a=this;return F(this,function(s){switch(s.label){case 0:if(!e)return[3,5];if(nD.debug("failed to get the user session",e),!this.isSessionInvalid(e))return[3,4];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(t)];case 2:return s.sent(),[3,4];case 3:return i=s.sent(),o(Error("Session is invalid due to: "+e.message+" and failed to clean up invalid session: "+i.message)),[2];case 4:return[2,o(e)];case 5:return t.globalSignOut({onSuccess:function(e){if(nD.debug("global sign out success"),!r)return n();a.oAuthSignOutRedirect(n,o)},onFailure:function(e){return nD.debug("global sign out failed",e),o(e)}}),[2]}})})},{clientMetadata:a})}else nD.debug("user sign out",t),t.signOut(function(){if(!r)return n();i.oAuthSignOutRedirect(n,o)})})]}})})},e.prototype.oAuthSignOutRedirect=function(e,t){er().isBrowser?this.oAuthSignOutRedirectOrReject(t):this.oAuthSignOutAndResolve(e)},e.prototype.oAuthSignOutAndResolve=function(e){this._oAuthHandler.signOut(),e()},e.prototype.oAuthSignOutRedirectOrReject=function(e){this._oAuthHandler.signOut(),setTimeout(function(){return e(Error("Signout timeout fail"))},3e3)},e.prototype.signOut=function(e){return void 0===e&&(e={}),N(this,void 0,void 0,function(){var t,n;return F(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.cleanCachedItems()];case 1:return r.sent(),[3,3];case 2:return r.sent(),nD.debug("failed to clear cached items"),[3,3];case 3:if(!this.userPool)return[3,11];r.label=4;case 4:return r.trys.push([4,6,,7]),[4,this._storageSync];case 5:return r.sent(),[3,7];case 6:throw t=r.sent(),nD.debug("Failed to sync cache info into memory",t),t;case 7:if(!(n=this.userPool.getCurrentUser()))return[3,9];return[4,this.cognitoIdentitySignOut(e,n)];case 8:return r.sent(),[3,10];case 9:nD.debug("no current Cognito user"),r.label=10;case 10:return[3,12];case 11:nD.debug("no Cognito User pool"),r.label=12;case 12:return nU("signOut",this.user,"A user has been signed out"),this.user=null,[2]}})})},e.prototype.cleanCachedItems=function(){return N(this,void 0,void 0,function(){return F(this,function(e){switch(e.label){case 0:return[4,this.Credentials.clear()];case 1:return e.sent(),[2]}})})},e.prototype.changePassword=function(e,t,n,r){var i=this;return void 0===r&&(r=this._config.clientMetadata),new Promise(function(o,a){i.userSession(e).then(function(i){e.changePassword(t,n,function(e,t){return e?(nD.debug("change password failure",e),a(e)):o(t)},r)})})},e.prototype.forgotPassword=function(e,t){if(void 0===t&&(t=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();if(!e)return this.rejectAuthError(i.EmptyUsername);var n=this.createCognitoUser(e);return new Promise(function(r,i){n.forgotPassword({onSuccess:function(){r()},onFailure:function(t){nD.debug("forgot password failure",t),nU("forgotPassword_failure",t,e+" forgotPassword failed"),i(t)},inputVerificationCode:function(t){nU("forgotPassword",n,e+" has initiated forgot password flow"),r(t)}},t)})},e.prototype.forgotPasswordSubmit=function(e,t,n,r){if(void 0===r&&(r=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();if(!e)return this.rejectAuthError(i.EmptyUsername);if(!t)return this.rejectAuthError(i.EmptyCode);if(!n)return this.rejectAuthError(i.EmptyPassword);var o=this.createCognitoUser(e);return new Promise(function(i,a){o.confirmPassword(t,n,{onSuccess:function(t){nU("forgotPasswordSubmit",o,e+" forgotPasswordSubmit successful"),i(t)}
24,onFailure:function(t){nU("forgotPasswordSubmit_failure",t,e+" forgotPasswordSubmit failed"),a(t)}},r)})},e.prototype.currentUserInfo=function(){return N(this,void 0,void 0,function(){var e,t,n,r,i,o,a;return F(this,function(s){switch(s.label){case 0:if(!(!(e=this.Credentials.getCredSource())||"aws"===e||"userPool"===e))return[3,9];return[4,this.currentUserPoolUser().catch(function(e){return nD.error(e)})];case 1:if(!(t=s.sent()))return[2,null];s.label=2;case 2:return s.trys.push([2,8,,9]),[4,this.userAttributes(t)];case 3:n=s.sent(),r=this.attributesToObject(n),i=null,s.label=4;case 4:return s.trys.push([4,6,,7]),[4,this.currentCredentials()];case 5:return i=s.sent(),[3,7];case 6:return o=s.sent(),nD.debug("Failed to retrieve credentials while getting current user info",o),[3,7];case 7:return[2,{id:i?i.identityId:void 0,username:t.getUsername(),attributes:r}];case 8:return a=s.sent(),nD.error("currentUserInfo error",a),[2,{}];case 9:if("federated"===e)return[2,(t=this.user)||{}];return[2]}})})},e.prototype.federatedSignIn=function(e,t,n){return N(this,void 0,void 0,function(){var i,o,a,s,l,u,c,d,h,p,f;return F(this,function(m){switch(m.label){case 0:if(!this._config.identityPoolId&&!this._config.userPoolId)throw Error("Federation requires either a User Pool or Identity Pool in config");if(void 0===e&&this._config.identityPoolId&&!this._config.userPoolId)throw Error("Federation with Identity Pools requires tokens passed as arguments");if(!(_(e)||e&&["customProvider"].find(function(t){return e.hasOwnProperty(t)})||e&&["customState"].find(function(t){return e.hasOwnProperty(t)})||void 0===e))return[3,1];return o=_(i=e||{provider:r.Cognito})?i.provider:i.customProvider,_(i),a=i.customState,this._config.userPoolId&&(s=P(this._config.oauth)?this._config.userPoolWebClientId:this._config.oauth.clientID,l=P(this._config.oauth)?this._config.oauth.redirectSignIn:this._config.oauth.redirectUri,this._oAuthHandler.oauthSignIn(this._config.oauth.responseType,this._config.oauth.domain,l,s,o,a)),[3,4];case 1:o=e;try{(u=JSON.stringify(JSON.parse(this._storage.getItem("aws-amplify-federatedInfo")).user))&&nD.warn("There is already a signed in user: "+u+" in your app.\n																	You should not call Auth.federatedSignIn method again as it may cause unexpected behavior.")}catch(e){}return c=t.token,d=t.identity_id,h=t.expires_at,[4,this.Credentials.set({provider:o,token:c,identity_id:d,user:n,expires_at:h},"federation")];case 2:return p=m.sent(),[4,this.currentAuthenticatedUser()];case 3:return nU("signIn",f=m.sent(),"A user "+f.username+" has been signed in"),nD.debug("federated sign in credentials",p),[2,p];case 4:return[2]}})})},e.prototype._handleAuthResponse=function(e){return N(this,void 0,void 0,function(){var t,n,r,i,o,a,s,l,u,c,d,h,p;return F(this,function(f){switch(f.label){case 0:if(this.oAuthFlowInProgress)return nD.debug("Skipping URL "+e+" current flow in progress"),[2];f.label=1;case 1:if(f.trys.push([1,,8,9]),this.oAuthFlowInProgress=!0,!this._config.userPoolId)throw Error("OAuth responses require a User Pool defined in config");if(nU("parsingCallbackUrl",{url:e},"The callback url is being parsed"),t=e||(er().isBrowser?window.location.href:""),n=!!((0,nb.parse)(t).query||"").split("&").map(function(e){return e.split("=")}).find(function(e){var t=B(e,1)[0];return"code"===t||"error"===t}),r=!!((0,nb.parse)(t).hash||"#").substr(1).split("&").map(function(e){return e.split("=")}).find(function(e){var t=B(e,1)[0];return"access_token"===t||"error"===t}),!(n||r))return[3,7];this._storage.setItem("amplify-redirected-from-hosted-ui","true"),f.label=2;case 2:return f.trys.push([2,6,,7]),[4,this._oAuthHandler.handleAuthResponse(t)];case 3:if(o=(i=f.sent()).accessToken,a=i.idToken,s=i.refreshToken,l=i.state,u=new t3({IdToken:new t2({IdToken:a}),RefreshToken:new t5({RefreshToken:s}),AccessToken:new t0({AccessToken:o})}),c=void 0,!this._config.identityPoolId)return[3,5];return[4,this.Credentials.set(u,"session")];case 4:c=f.sent(),nD.debug("AWS credentials",c),f.label=5;case 5:return d=/-/.test(l),(h=this.createCognitoUser(u.getIdToken().decodePayload()["cognito:username"])).setSignInUserSession(u),window&&void 0!==window.history&&window.history.replaceState(window.history.state,"",this._config.oauth.redirectSignIn),nU("signIn",h,"A user "+h.getUsername()+" has been signed in"),nU("cognitoHostedUI",h,"A user "+h.getUsername()+" has been signed in via Cognito Hosted UI"),d&&nU("customOAuthState",l.split("-").splice(1).join("-").match(/.{2}/g).map(function(e){return String.fromCharCode(parseInt(e,16))}).join(""),"State for user "+h.getUsername()),[2,c];case 6:return p=f.sent(),nD.debug("Error in cognito hosted auth response",p),window&&void 0!==window.history&&window.history.replaceState(window.history.state,"",this._config.oauth.redirectSignIn),nU("signIn_failure",p,"The OAuth response flow failed"),nU("cognitoHostedUI_failure",p,"A failure occurred when returning to the Cognito Hosted UI"),nU("customState_failure",p,"A failure occurred when returning state"),[3,7];case 7:return[3,9];case 8:return this.oAuthFlowInProgress=!1,[7];case 9:return[2]}})})},e.prototype.essentialCredentials=function(e){return{accessKeyId:e.accessKeyId,sessionToken:e.sessionToken,secretAccessKey:e.secretAccessKey,identityId:e.identityId,authenticated:e.authenticated}},e.prototype.attributesToObject=function(e){var t=this,n={};return e&&e.map(function(e){"email_verified"===e.Name||"phone_number_verified"===e.Name?n[e.Name]=t.isTruthyString(e.Value)||!0===e.Value:n[e.Name]=e.Value}),n},e.prototype.isTruthyString=function(e){return"function"==typeof e.toLowerCase&&"true"===e.toLowerCase()},e.prototype.createCognitoUser=function(e){var t={Username:e,Pool:this.userPool};t.Storage=this._storage;var n=this._config.authenticationFlowType,r=new ni(t);return n&&r.setAuthenticationFlowType(n),r},e.prototype._isValidAuthStorage=function(e){return!!e&&"function"==typeof e.getItem&&"function"==typeof e.setItem&&"function"==typeof e.removeItem&&"function"==typeof e.clear},e.prototype.noUserPoolErrorHandler=function(e){return!e||e.userPoolId&&e.identityPoolId?i.NoConfig:i.MissingAuthConfig},e.prototype.rejectAuthError=function(e){return Promise.reject(new nI(e))},e.prototype.rejectNoUserPool=function(){return Promise.reject(new nO(this.noUserPoolErrorHandler(this._config)))},e.prototype.rememberDevice=function(){return N(this,void 0,void 0,function(){var e,t;return F(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.currentUserPoolUser()];case 1:return e=n.sent(),[3,3];case 2:return t=n.sent(),nD.debug("The user is not authenticated by the error",t),[2,Promise.reject("The user is not authenticated")];case 3:return e.getCachedDeviceKeyAndPassword(),[2,new Promise(function(t,n){e.setDeviceStatusRemembered({onSuccess:function(e){t(e)},onFailure:function(e){"InvalidParameterException"===e.code?n(new nI(i.DeviceConfig)):"NetworkError"===e.code?n(new nI(i.NetworkError)):n(e)}})})]}})})},e.prototype.forgetDevice=function(){return N(this,void 0,void 0,function(){var e,t;return F(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.currentUserPoolUser()];case 1:return e=n.sent(),[3,3];case 2:return t=n.sent(),nD.debug("The user is not authenticated by the error",t),[2,Promise.reject("The user is not authenticated")];case 3:return e.getCachedDeviceKeyAndPassword(),[2,new Promise(function(t,n){e.forgetDevice({onSuccess:function(e){t(e)},onFailure:function(e){"InvalidParameterException"===e.code?n(new nI(i.DeviceConfig)):"NetworkError"===e.code?n(new nI(i.NetworkError)):n(e)}})})]}})})},e.prototype.fetchDevices=function(){return N(this,void 0,void 0,function(){var e,t;return F(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.currentUserPoolUser()];case 1:return e=n.sent(),[3,3];case 2:throw t=n.sent(),nD.debug("The user is not authenticated by the error",t),Error("The user is not authenticated");case 3:return e.getCachedDeviceKeyAndPassword(),[2,new Promise(function(t,n){e.listDevices(60,null,{onSuccess:function(e){t(e.Devices.map(function(e){var t=e.DeviceAttributes.find(function(e){return"device_name"===e.Name})||{};return{id:e.DeviceKey,name:t.Value}}))},onFailure:function(e){"InvalidParameterException"===e.code?n(new nI(i.DeviceConfig)):"NetworkError"===e.code?n(new nI(i.NetworkError)):n(e)}})})]}})})},e}())(null);ek.register(nN);var nF=n(75119),nB=n(57067),nz=n(81278),n$=n(55729),nV=n(20618),nH=n(25937);nN.configure({region:"eu-south-1",userPoolId:"eu-south-1_D0od2abQY",userPoolWebClientId:"9madpe2v48vchmkqju1rinfu8",identityPoolId:"eu-south-1:0aa1767a-cce6-4895-99c0-caf522755729",authenticationFlowType:"USER_PASSWORD_AUTH",oauth:{domain:"auth.treccani.it",scope:["email","profile","openid","aws.cognito.signin.user.admin"],redirectSignIn:"https://www.treccani.it/",redirectSignOut:"https://www.treccani.it/",responseType:"code"}});let nW=(0,n$.createContext)(void 0),nG=()=>{let e=(0,n$.useContext)(nW);if(!e)throw Error("useAuth deve essere utilizzato all'interno di un AuthProvider");return e},nq=e=>{var t;let{children:n}=e,i=(0,nz.useRouter)(),[o,a]=(0,n$.useState)(null),[s,l]=(0,n$.useState)(!1),[u,c]=(0,n$.useState)(null),[d,h]=(0,n$.useState)(null);(0,n$.useEffect)(()=>{(async()=>
24{l(!0);try{let e=localStorage.getItem("authenticatedUser");e?a(JSON.parse(e)):await p()}catch(e){a(null)}finally{l(!1)}})()},[]),(0,n$.useEffect)(()=>{(async()=>{try{if(!localStorage.getItem("authenticatedUser"))return;let e=Date.now();if(parseInt(localStorage.getItem("lastUpdateUserTime")||"0")+6e5>=e)return;await p(!0)}catch(e){a(null)}})()},[]),(0,n$.useEffect)(()=>{"/user/completeAccount/"!==i.asPath&&o&&(null==o?void 0:o.completed)===!1&&i.push("/user/completeAccount/")},[i,o]);let p=(0,n$.useCallback)(async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e||!s)try{let e=await nN.currentAuthenticatedUser(),n=(await e.getSignInUserSession()).getIdToken().jwtToken,r=await fetch("https://frontend-api.treccani.it/user/me",{method:"GET",headers:{Authorization:n}});if(r.ok&&200===r.status){var t;let n=await r.json();if(!n)throw Error("user not defined");let i=localStorage.getItem("authenticatedUser");if(localStorage.setItem("lastUpdateUserTime",Date.now().toString()),i===JSON.stringify({...n,user_id:e.username}))return;a({...n,user_id:e.username}),localStorage.setItem("authenticatedUser",JSON.stringify({...n,user_id:e.username}));let o=(null==n||null==(t=n.current_subscription)?void 0:t.enc)||!1,s=window.location.hostname.split(".").slice(1).join("."),l={domain:s?"."+s:""};o?(0,nB.setCookie)("subscription_data",o,l):(0,nB.deleteCookie)("subscription_data",l)}else throw Error()}catch(e){"The user is not authenticated"===e?a(null):h({message:"Login fallito "+e.message,type:"error"}),y()}},[s]),f=async()=>{l(!0),c(null);try{await p()}catch(n){let{name:e,message:t}=n;console.error("error login",e,t)}finally{l(!1)}},m=async e=>{let{username:t,password:n}=e;l(!0),c(null);try{await nN.signIn(t,n),await p(),R.some(e=>i.asPath.includes(e))?i.reload():i.push(i.asPath),(0,D.o)({event:"login",sign_up_method:"form"}),i.reload()}catch(n){let{name:e,message:t}=n;console.error("error login",e,t),("UserNotFoundException"===e||"NotAuthorizedException"===e)&&c({login:"Email o Password errati"}),"UserNotConfirmedException"===e&&c({pending:"La mail inserita risulta gi\xe0 registrata ma non ancora attiva. Controlla la mail e conferma la registrazione."})}finally{l(!1)}},g=async e=>{l(!0);try{let t={facebook:r.Facebook,google:r.Google,amazon:r.Amazon,apple:r.Apple}[e];if(t)try{await nN.federatedSignIn({provider:t}),await p(),(0,D.o)({event:"login",sign_up_method:"".concat(e,"__sign_in")})}catch(e){console.error("Error signing in with social provider:",e),c({...u,social:e})}}catch(e){console.error("error signing in",e)}finally{l(!1)}},v=async e=>{let{responseType:t,clientId:n,scope:r}=e;l(!0);try{localStorage.removeItem("sso");let e=await nN.currentAuthenticatedUser(),i=await e.getSignInUserSession(),o=await i.getIdToken().jwtToken,a=await fetch("https://frontend-api.treccani.it/sso/authorize",{method:"POST",headers:{Authorization:o},body:JSON.stringify({responseType:t,clientId:n,scope:r})}).then(e=>e.json());if(a.redirectUri)window.location.href=a.redirectUri;else throw Error((null==a?void 0:a.Message)||"Authorization failed")}catch(e){console.error("error authorizing authentication",e),h({message:e.message,type:"error"})}finally{l(!1)}},y=async()=>{l(!0);try{let e=window.location.hostname.split(".").slice(1).join(".");(0,nB.deleteCookie)("subscription_data",{domain:e?"."+e:""}),localStorage.removeItem("authenticatedUser"),localStorage.removeItem("lastUpdateUserTime"),a(null),await nN.signOut(),o&&R.some(e=>i.asPath.includes(e))?i.reload():"/user/"===i.asPath&&i.push("/")}catch(e){console.error("error signing out: ",e)}finally{l(!1)}},b=async(e,t)=>{c(null),l(!0);try{let n=await fetch("https://frontend-api.treccani.it/user/register",{method:"POST",headers:{"X-Recaptcha-Token":t},body:JSON.stringify(e)});if(n.ok)i.push({pathname:"/user/confirmaccount",query:{username:e.login.email}}),(0,D.o)({event:"sign_up",sign_up_method:"form"});else{let e=await n.json();throw Error(e.message)}}catch(e){"Email Already Registered"===e.message?(c({...u,email:"Email gi\xe0 registrata"}),h({message:"Email gi\xe0 registrata",type:"error"})):h({message:e.message,type:"error"})}finally{l(!1)}},w=async e=>{let{username:t}=e;try{await nN.resendSignUp(t)}catch(n){let{name:e,message:t}=n;console.error("error resending code: ",e,t),"LimitExceededException"===e&&c({confirmation:"limite raggiunto, attendi qualche minuto"})}},S=async e=>{let{username:t,code:n}=e;try{await nN.confirmSignUp(t,n)}catch(e){console.error("error confirming sign up",e)}},x=async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];l(!0);try{let t=await nN.currentAuthenticatedUser(),n=(await t.getSignInUserSession()).getIdToken().jwtToken;await fetch("https://frontend-api.treccani.it/user/me",{method:"POST",body:JSON.stringify(e),headers:{Authorization:n}}),await p(),h({message:"Dati salvati correttamente",type:"success"})}catch(e){console.error("Errore durante l'aggiornamento degli attributi dell'utente:",e)}finally{l(!1),t&&(window.location.href="/")}},A=async()=>
24{l(!0);try{localStorage.removeItem("authenticatedUser"),a(null),await nN.deleteUser()}catch(e){console.error("Error deleting user",e)}finally{l(!1)}},k=(0,n$.useCallback)(async()=>{if(!s){var e=null;try{let e=await nN.currentAuthenticatedUser(),t=(await e.getSignInUserSession()).getIdToken().jwtToken;await nF.A.delete("https://frontend-api.treccani.it/user/me",{headers:{Authorization:t}}),await y(),i.push("/")}catch(t){e=t}return e}},[s]),E=async e=>{l(!0),c(null);try{let t=await nN.forgotPassword(e);return h({message:"Mail inviata con successo",type:"success"}),t}catch(n){let{name:e,message:t}=n;"UserNotFoundException"===e?h({message:"Utente non trovato",type:"error"}):"LimitExceededException"===e&&h({message:"Hai superato il numero massimo di tentativi. Riprova pi\xf9 tardi.",type:"error"})}finally{l(!1)}},C=async(e,t,n)=>{l(!0);try{return await nN.forgotPasswordSubmit(e,t,n)}catch(e){console.error("Errore durante il cambio password",e)}finally{l(!1)}},_=async e=>{let{password:t,newPassword:n}=e;l(!0);try{let e=await nN.currentAuthenticatedUser(),r=await nN.changePassword(e,t,n);"SUCCESS"===r&&h({message:"Password aggiornata correttamente",type:"success"})}catch(e){console.error("Errore durante il cambio password",e),c({changePassword:"LimitExceededException"===e.name?"limite raggiunto, attendi qualche minuto":["NotAuthorizedException","UserNotFoundException"].includes(e.name)?"Email o Password errati":"Si \xe8 verificato un errore durante il cambio password"})}finally{l(!1)}},P=async()=>{let e=await nN.currentAuthenticatedUser(),t=(await e.getSignInUserSession()).getIdToken().jwtToken;try{var n;let e=await (0,nH.b)("subscription/checkout",{price_id:(0,nB.getCookie)("stripeSubscription"),success_url:"".concat("https://www.treccani.it/","user/subscriptionSuccess"),cancel_url:"".concat("https://www.treccani.it/","user/subscriptionCancel")},{headers:{Authorization:t}}).catch(e=>e.response);(0,nB.deleteCookie)("stripeSubscription"),i.push(null==e||null==(n=e.data)?void 0:n.redirect_url)}catch(e){h({message:"si \xe8 verificato un errore nell'attivazione dell'abbonamento, si prega di riprovare pi\xf9 tardi"})}},L={isAuthenticated:!!o,user:o,membership:(0,nV.x)(null==o?void 0:o.membership),authError:u,subscriptionSuccess:f,signIn:m,socialSignIn:g,authorize:v,signOut:y,signUp:b,deleteUser:A,deleteCognitoUser:k,confirmSignUp:S,resendConfirmationCode:w,forgotPassword:E,forgotPasswordSubmit:C,updateUserAttributes:x,changePassword:_,startCheckout:P};return(0,T.jsxs)(nW.Provider,{value:L,children:[n,(0,T.jsx)(M.a,{active:s}),d&&(0,T.jsx)(O.A,{open:!!d,autoHideDuration:6e3,onClose:()=>{h(null)},anchorOrigin:{vertical:"bottom",horizontal:"right"},children:(0,T.jsx)(I.A,{variant:"filled",onClose:()=>{h(null)},severity:null!=(t=d.type)?t:"info",children:d.message})}),(null==u?void 0:u.changePassword)&&(0,T.jsx)(O.A,{open:!!u.changePassword,autoHideDuration:6e3,onClose:()=>{c(e=>({...e,changePassword:null}))},anchorOrigin:{vertical:"bottom",horizontal:"right"},children:(0,T.jsx)(I.A,{variant:"filled",onClose:()=>{c(e=>({...e,changePassword:null}))},severity:"error",children:u.changePassword})})]})}},40252:(e,t,n)=>{!function(){var t={452:function(e){"use strict";e.exports=n(70954)}},r={};function i(e){var n=r[e];if(void 0!==n)return n.exports;var o=r[e]={exports:{}},a=!0;try{t[e](o,o.exports,i),a=!1}finally{a&&delete r[e]}return o.exports}i.ab="//";var o={};!function(){var e,t=(e=i(452))&&"object"==typeof e&&"default"in e?e.default:e,n=/https?|ftp|gopher|file/;function r(e){"string"==typeof e&&(e=v(e));var r,i,o,a,s,l,u,c,d,h=(i=(r=e).auth,o=r.hostname,a=r.protocol||"",s=r.pathname||"",l=r.hash||"",u=r.query||"",c=!1,i=i?encodeURIComponent(i).replace(/%3A/i,":")+"@":"",r.host?c=i+r.host:o&&(c=i+(~o.indexOf(":")?"["+o+"]":o),r.port&&(c+=":"+r.port)),u&&"object"==typeof u&&(u=t.encode(u)),d=r.search||u&&"?"+u||"",a&&":"!==a.substr(-1)&&(a+=":"),r.slashes||(!a||n.test(a))&&!1!==c?(c="//"+(c||""),s&&"/"!==s[0]&&(s="/"+s)):c||(c=""),l&&"#"!==l[0]&&(l="#"+l),d&&"?"!==d[0]&&(d="?"+d),{protocol:a,host:c,pathname:s=s.replace(/[?#]/g,encodeURIComponent),search:d=d.replace("#","%23"),hash:l});return""+h.protocol+h.host+h.pathname+h.search+h.hash}var a="http://",s=a+"w.w",l=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,u=/https?|ftp|gopher|file/;function c(e,t){var n="string"==typeof e?v(e):e;e="object"==typeof e?r(e):e;var i=v(t),o="";n.protocol&&!n.slashes&&(o=n.protocol,e=e.replace(n.protocol,""),o+="/"===t[0]||"/"===e[0]?"/":""),o&&i.protocol&&(o="",i.slashes||(o=i.protocol,t=t.replace(i.protocol,"")));var c=e.match(l);c&&!i.protocol&&(e=e.substr((o=c[1]+(c[2]||"")).length),/^\/\/[^/]/.test(t)&&(o=o.slice(0,-1)));var d=new URL(e,s+"/"),h=new URL(t,d).toString().replace(s,""),p=i.protocol||n.protocol;return p+=n.slashes||i.slashes?"//":"",!o&&p?h=h.replace(a,p):o&&(h=h.replace(a,"")),u.test(h)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==h.slice(-1)||(h=h.slice(0,-1)),o&&(h=o+("/"===h[0]?h.substr(1):h)),h}function d(){}d.prototype.parse=v,d.prototype.format=r,d.prototype.resolve=c,d.prototype.resolveObject=c;var h=/^https?|ftp|gopher|file/,p=/^(.*?)([#?].*)/,f=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,m=/^([a-z0-9.+-]*:)?\/\/\/*/i,g=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function v(e,n,i){if(void 0===n&&(n=!1),void 0===i&&(i=!1),e&&"object"==typeof e&&e instanceof d)return e;var o=(e=e.trim()).match(p);e=o?o[1].replace(/\\/g,"/")+o[2]:e.replace(/\\/g,"/"),g.test(e)&&"/"!==e.slice(-1)&&(e+="/");var a=!/(^javascript)/.test(e)&&e.match(f),l=m.test(e),u="";a&&(h.test(a[1])||(u=a[1].toLowerCase(),e=""+a[2]+a[3]),a[2]||(l=!1,h.test(a[1])?(u=a[1],e=""+a[3]):e="//"+a[3]),3!==a[2].length&&1!==a[2].length||(u=a[1],e="/"+a[3]));var c,v=(o?o[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),y=v&&v[1],b=new d,w="",S="";try{c=new URL(e)}catch(t){w=t,u||i||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(S="/",e=e.substr(1));try{c=new URL(e,s)}catch(e){return b.protocol=u,b.href=u,b}}b.slashes=l&&!S,b.host="w.w"===c.host?"":c.host,b.hostname="w.w"===c.hostname?"":c.hostname.replace(/(\[|\])/g,""),b.protocol=w?u||null:c.protocol,b.search=c.search.replace(/\\/g,"%5C"),b.hash=c.hash.replace(/\\/g,"%5C");var x=e.split("#");!b.search&&~x[0].indexOf("?")&&(b.search="?"),b.hash||""!==x[1]||(b.hash="#"),b.query=n?t.decode(c.search.substr(1)):b.search.substr(1),b.pathname=S+(a?c.pathname.replace(/['^|`]/g,function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(e,t){try{return decodeURIComponent(t).split("").map(function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()}).join("")}catch(e){return t}}):c.pathname),"about:"===b.protocol&&"blank"===b.pathname&&(b.protocol="",b.pathname=""),w&&"/"!==e[0]&&(b.pathname=b.pathname.substr(1)),u&&!h.test(u)&&"/"!==e.slice(-1)&&"/"===b.pathname&&(b.pathname=""),b.path=b.pathname+b.search,b.auth=[c.username,c.password].map(decodeURIComponent).filter(
24Boolean).join(":"),b.port=c.port,y&&!b.host.endsWith(y)&&(b.host+=y,b.port=y.slice(1)),b.href=S?""+b.pathname+b.search+b.hash:r(b);var A=/^(file)/.test(b.href)?["host","hostname"]:[];return Object.keys(b).forEach(function(e){~A.indexOf(e)||(b[e]=b[e]||null)}),b}o.parse=v,o.format=r,o.resolve=c,o.resolveObject=function(e,t){return v(c(e,t))},o.Url=d}(),e.exports=o}()},40936:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(6029),i=n(15962),o=n(26927),a=n(77213);let s=e=>{let{children:t,once:n=!0}=e,s=!(0,i.A)(o.A.breakpoints.up("lg"));return(0,r.jsx)(a.P.div,{initial:{opacity:0,y:40},transition:{duration:.5},viewport:{once:n,margin:s?"0px 0px -50px 0px":"0px 0px -200px 0px"},whileInView:{opacity:1,y:0},children:t})}},41940:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},42024:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,extendSxProp:()=>i.A,unstable_createStyleFunctionSx:()=>r.k,unstable_defaultSxConfig:()=>o.A});var r=n(32790),i=n(21834),o=n(93978)},42330:(e,t,n)=>{"use strict";n.d(t,{$:()=>i,V:()=>o});var r=n(8563);let i=r.l,o=r.l},42734:(e,t,n)=>{"use strict";n.d(t,{A:()=>I});var r=n(99410),i=n(1983),o=n(49484),a=n(25060),s=n(93978),l=n(32790),u=n(93479),c=n(9718);let d={black:"#000",white:"#fff"};var h=n(7021);let p={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},f={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},m={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},g={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},v={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},y={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},b=["mode","contrastThreshold","tonalOffset"],w={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:d.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},S={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:d.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function x(e,t,n,r){let i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,c.a)(e.main,i):"dark"===t&&(e.dark=(0,c.e$)(e.main,o)))}let A=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"],k={textTransform:"uppercase"},E='"Roboto", "Helvetica", "Arial", sans-serif';function C(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return["".concat(t[0],"px ").concat(t[1],"px ").concat(t[2],"px ").concat(t[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(t[4],"px ").concat(t[5],"px ").concat(t[6],"px ").concat(t[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(t[8],"px ").concat(t[9],"px ").concat(t[10],"px ").concat(t[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}let T=["none",C(0,2,1,-1,0,1,1,0,0,1,3,0),C(0,3,1,-2,0,2,2,0,0,1,5,0),C(0,3,3,-2,0,3,4,0,0,1,8,0),C(0,2,4,-1,0,4,5,0,0,1,10,0),C(0,3,5,-1,0,5,8,0,0,1,14,0),C(0,3,5,-1,0,6,10,0,0,1,18,0),C(0,4,5,-2,0,7,10,1,0,2,16,1),
24C(0,5,5,-3,0,8,10,1,0,3,14,2),C(0,5,6,-3,0,9,12,1,0,3,16,2),C(0,6,6,-3,0,10,14,1,0,4,18,3),C(0,6,7,-4,0,11,15,1,0,4,20,3),C(0,7,8,-4,0,12,17,2,0,5,22,4),C(0,7,8,-4,0,13,19,2,0,5,24,4),C(0,7,9,-4,0,14,21,2,0,5,26,4),C(0,8,9,-5,0,15,22,2,0,6,28,5),C(0,8,10,-5,0,16,24,2,0,6,30,5),C(0,8,11,-5,0,17,26,2,0,6,32,5),C(0,9,11,-5,0,18,28,2,0,7,34,6),C(0,9,12,-6,0,19,29,2,0,7,36,6),C(0,10,13,-6,0,20,31,3,0,8,38,7),C(0,10,13,-6,0,21,33,3,0,8,40,7),C(0,10,14,-6,0,22,35,3,0,8,42,7),C(0,11,14,-7,0,23,36,3,0,9,44,8),C(0,11,15,-7,0,24,38,3,0,9,46,8)];var _=n(4940);let P={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},M=["breakpoints","mixins","spacing","palette","transitions","typography","shape"],I=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t,n=arguments.length,C=Array(n>1?n-1:0),I=1;I<n;I++)C[I-1]=arguments[I];let{mixins:O={},palette:R={},transitions:D={},typography:L={}}=e,j=(0,i.A)(e,M);if(e.vars&&void 0===e.generateCssVars)throw Error((0,o.A)(18));let U=function(e){let{mode:t="light",contrastThreshold:n=3,tonalOffset:s=.2}=e,l=(0,i.A)(e,b),u=e.primary||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:g[200],light:g[50],dark:g[400]}:{main:g[700],light:g[400],dark:g[800]}}(t),A=e.secondary||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:p[200],light:p[50],dark:p[400]}:{main:p[500],light:p[300],dark:p[700]}}(t),k=e.error||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:f[500],light:f[300],dark:f[700]}:{main:f[700],light:f[400],dark:f[800]}}(t),E=e.info||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:v[400],light:v[300],dark:v[700]}:{main:v[700],light:v[500],dark:v[900]}}(t),C=e.success||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:y[400],light:y[300],dark:y[700]}:{main:y[800],light:y[500],dark:y[900]}}(t),T=e.warning||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:m[400],light:m[300],dark:m[700]}:{main:"#ed6c02",light:m[500],dark:m[900]}}(t);function _(e){return(0,c.eM)(e,S.text.primary)>=n?S.text.primary:w.text.primary}let P=e=>{let{color:t,name:n,mainShade:i=500,lightShade:a=300,darkShade:l=700}=e;if(!(t=(0,r.A)({},t)).main&&t[i]&&(t.main=t[i]),!t.hasOwnProperty("main"))throw Error((0,o.A)(11,n?" (".concat(n,")"):"",i));if("string"!=typeof t.main)throw Error((0,o.A)(12,n?" (".concat(n,")"):"",JSON.stringify(t.main)));return x(t,"light",a,s),x(t,"dark",l,s),t.contrastText||(t.contrastText=_(t.main)),t};return(0,a.A)((0,r.A)({common:(0,r.A)({},d),mode:t,primary:P({color:u,name:"primary"}),secondary:P({color:A,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:P({color:k,name:"error"}),warning:P({color:T,name:"warning"}),info:P({color:E,name:"info"}),success:P({color:C,name:"success"}),grey:h.A,contrastThreshold:n,getContrastText:_,augmentColor:P,tonalOffset:s},{dark:S,light:w}[t]),l)}(R),N=(0,u.A)(e),F=(0,a.A)(N,{mixins:(t=N.breakpoints,(0,r.A)({toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}}},O)),palette:U,shadows:T.slice(),typography:function(e,t){let n="function"==typeof t?t(e):t,{fontFamily:o=E,fontSize:s=14,fontWeightLight:l=300,fontWeightRegular:u=400,fontWeightMedium:c=500,fontWeightBold:d=700,htmlFontSize:h=16,allVariants:p,pxToRem:f}=n,m=(0,i.A)(n,A),g=s/14,v=f||(e=>"".concat(e/h*g,"rem")),y=(e,t,n,i,a)=>(0,r.A)({fontFamily:o,fontWeight:e,fontSize:v(t),lineHeight:n},o===E?{letterSpacing:"".concat(Math.round(i/t*1e5)/1e5,"em")}:{},a,p),b={h1:y(l,96,1.167,-1.5),h2:y(l,60,1.2,-.5),h3:y(u,48,1.167,0),h4:y(u,34,1.235,.25),h5:y(u,24,1.334,0),h6:y(c,20,1.6,.15),subtitle1:y(u,16,1.75,.15),subtitle2:y(c,14,1.57,.1),body1:y(u,16,1.5,.15),body2:y(u,14,1.43,.15),button:y(c,14,1.75,.4,k),caption:y(u,12,1.66,.4),overline:y(u,12,2.66,1,k),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,a.A)((0,r.A)({htmlFontSize:h,pxToRem:v,fontFamily:o,fontSize:s,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:c,fontWeightBold:d},b),m,{clone:!1})}(U,L),transitions:(0,_.Ay)(D),zIndex:(0,r.A)({},P)});return F=(0,a.A)(F,j),(F=C.reduce((e,t)=>
24(0,a.A)(e,t),F)).unstable_sxConfig=(0,r.A)({},s.A,null==j?void 0:j.unstable_sxConfig),F.unstable_sx=function(e){return(0,l.A)({sx:e,theme:this})},F}},42752:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(55729);let i="undefined"!=typeof window?r.useLayoutEffect:r.useEffect},43226:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(21446),i=n(10306),o=n(14443);function a(e){let{props:t,name:n}=e;return(0,r.A)({props:t,name:n,defaultTheme:i.A,themeId:o.A})}},43795:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(93479),i=n(15546);let o=(0,r.A)(),a=function(e=o){return(0,i.A)(e)}},43869:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(1983),i=n(99410),o=n(55729),a=n(50212),s=n(17582),l=n(9718),u=n(50787);let c=e=>{let t;return((e<1?5.11916*e**2:4.5*Math.log(e+1)+2)/100).toFixed(2)};var d=n(52526),h=n(16492),p=n(46720);function f(e){return(0,p.Ay)("MuiPaper",e)}(0,h.A)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var m=n(6029);let g=["className","component","elevation","square","variant"],v=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return(0,s.A)({root:["root",r,!t&&"rounded","elevation"===r&&"elevation".concat(n)]},f,i)},y=(0,u.Ay)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t["elevation".concat(n.elevation)]]}})(e=>{var t;let{theme:n,ownerState:r}=e;return(0,i.A)({backgroundColor:(n.vars||n).palette.background.paper,color:(n.vars||n).palette.text.primary,transition:n.transitions.create("box-shadow")},!r.square&&{borderRadius:n.shape.borderRadius},"outlined"===r.variant&&{border:"1px solid ".concat((n.vars||n).palette.divider)},"elevation"===r.variant&&(0,i.A)({boxShadow:(n.vars||n).shadows[r.elevation]},!n.vars&&"dark"===n.palette.mode&&{backgroundImage:"linear-gradient(".concat((0,l.X4)("#fff",c(r.elevation)),", ").concat((0,l.X4)("#fff",c(r.elevation)),")")},n.vars&&{backgroundImage:null==(t=n.vars.overlays)?void 0:t[r.elevation]}))}),b=o.forwardRef(function(e,t){let n=(0,d.b)({props:e,name:"MuiPaper"}),{className:o,component:s="div",elevation:l=1,square:u=!1,variant:c="elevation"}=n,h=(0,r.A)(n,g),p=(0,i.A)({},n,{component:s,elevation:l,square:u,variant:c}),f=v(p);return(0,m.jsx)(y,(0,i.A)({as:s,ownerState:p,className:(0,a.A)(f.root,o),ref:t},h))})},44316:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>E});var r=n(1983),i=n(99410),o=n(55729),a=n(50212),s=n(93537),l=n(21834),u=n(17582),c=n(50787),d=n(52526),h=n(57964);let p=o.createContext();var f=n(16492),m=n(46720);function g(e){return(0,m.Ay)("MuiGrid",e)}let v=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],y=(0,f.A)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map(e=>"spacing-xs-".concat(e)),...["column-reverse","column","row-reverse","row"].map(e=>"direction-xs-".concat(e)),...["nowrap","wrap-reverse","wrap"].map(e=>"wrap-xs-".concat(e)),...v.map(e=>"grid-xs-".concat(e)),...v.map(e=>"grid-sm-".concat(e)),...v.map(e=>"grid-md-".concat(e)),...v.map(e=>"grid-lg-".concat(e)),...v.map(e=>"grid-xl-".concat(e))]);var b=n(6029);let w=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function S(e){let t=parseFloat(e);return"".concat(t).concat(String(e).replace(String(t),"")||"px")}function x(e){let{breakpoints:t,values:n}=e,r="";Object.keys(n).forEach(e=>{""===r&&0!==n[e]&&(r=e)});let i=Object.keys(t).sort((e,n)=>t[e]-t[n]);return i.slice(0,i.indexOf(r))}let A=(0,c.Ay)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e,{container:r,direction:i,item:o,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:u}=n,c=[];r&&(c=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[n["spacing-xs-".concat(String(e))]];let r=[];return t.forEach(t=>{let i=e[t];Number(i)>0&&r.push(n["spacing-".concat(t,"-").concat(String(i))])}),r}(a,u,t));let d=[];
24return u.forEach(e=>{let r=n[e];r&&d.push(t["grid-".concat(e,"-").concat(String(r))])}),[t.root,r&&t.container,o&&t.item,l&&t.zeroMinWidth,...c,"row"!==i&&t["direction-xs-".concat(String(i))],"wrap"!==s&&t["wrap-xs-".concat(String(s))],...d]}})(e=>{let{ownerState:t}=e;return(0,i.A)({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},"wrap"!==t.wrap&&{flexWrap:t.wrap})},function(e){let{theme:t,ownerState:n}=e,r=(0,s.kW)({values:n.direction,breakpoints:t.breakpoints.values});return(0,s.NI)({theme:t},r,e=>{let t={flexDirection:e};return 0===e.indexOf("column")&&(t["& > .".concat(y.item)]={maxWidth:"none"}),t})},function(e){let{theme:t,ownerState:n}=e,{container:r,rowSpacing:i}=n,o={};if(r&&0!==i){let e,n=(0,s.kW)({values:i,breakpoints:t.breakpoints.values});"object"==typeof n&&(e=x({breakpoints:t.breakpoints.values,values:n})),o=(0,s.NI)({theme:t},n,(n,r)=>{var i;let o=t.spacing(n);return"0px"!==o?{marginTop:"-".concat(S(o)),["& > .".concat(y.item)]:{paddingTop:S(o)}}:null!=(i=e)&&i.includes(r)?{}:{marginTop:0,["& > .".concat(y.item)]:{paddingTop:0}}})}return o},function(e){let{theme:t,ownerState:n}=e,{container:r,columnSpacing:i}=n,o={};if(r&&0!==i){let e,n=(0,s.kW)({values:i,breakpoints:t.breakpoints.values});"object"==typeof n&&(e=x({breakpoints:t.breakpoints.values,values:n})),o=(0,s.NI)({theme:t},n,(n,r)=>{var i;let o=t.spacing(n);return"0px"!==o?{width:"calc(100% + ".concat(S(o),")"),marginLeft:"-".concat(S(o)),["& > .".concat(y.item)]:{paddingLeft:S(o)}}:null!=(i=e)&&i.includes(r)?{}:{width:"100%",marginLeft:0,["& > .".concat(y.item)]:{paddingLeft:0}}})}return o},function(e){let t,{theme:n,ownerState:r}=e;return n.breakpoints.keys.reduce((e,o)=>{let a={};if(r[o]&&(t=r[o]),!t)return e;if(!0===t)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===t)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{let l=(0,s.kW)({values:r.columns,breakpoints:n.breakpoints.values}),u="object"==typeof l?l[o]:l;if(null==u)return e;let c="".concat(Math.round(t/u*1e8)/1e6,"%"),d={};if(r.container&&r.item&&0!==r.columnSpacing){let e=n.spacing(r.columnSpacing);if("0px"!==e){let t="calc(".concat(c," + ").concat(S(e),")");d={flexBasis:t,maxWidth:t}}}a=(0,i.A)({flexBasis:c,flexGrow:0,maxWidth:c},d)}return 0===n.breakpoints.values[o]?Object.assign(e,a):e[n.breakpoints.up(o)]=a,e},{})}),k=e=>{let{classes:t,container:n,direction:r,item:i,spacing:o,wrap:a,zeroMinWidth:s,breakpoints:l}=e,c=[];n&&(c=function(e,t){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return["spacing-xs-".concat(String(e))];let n=[];return t.forEach(t=>{let r=e[t];if(Number(r)>0){let e="spacing-".concat(t,"-").concat(String(r));n.push(e)}}),n}(o,l));let d=[];l.forEach(t=>{let n=e[t];n&&d.push("grid-".concat(t,"-").concat(String(n)))});let h={root:["root",n&&"container",i&&"item",s&&"zeroMinWidth",...c,"row"!==r&&"direction-xs-".concat(String(r)),"wrap"!==a&&"wrap-xs-".concat(String(a)),...d]};return(0,u.A)(h,g,t)},E=o.forwardRef(function(e,t){let n=(0,d.b)({props:e,name:"MuiGrid"}),{breakpoints:s}=(0,h.A)(),u=(0,l.A)(n),{className:c,columns:f,columnSpacing:m,component:g="div",container:v=!1,direction:y="row",item:S=!1,rowSpacing:x,spacing:E=0,wrap:C="wrap",zeroMinWidth:T=!1}=u,_=(0,r.A)(u,w),P=x||E,M=m||E,I=o.useContext(p),O=v?f||12:I,R={},D=(0,i.A)({},_);s.keys.forEach(e=>{null!=_[e]&&(R[e]=_[e],delete D[e])});let L=(0,i.A)({},u,{columns:O,container:v,direction:y,item:S,rowSpacing:P,columnSpacing:M,wrap:C,zeroMinWidth:T,spacing:E},R,{breakpoints:s.keys}),j=k(L);return(0,b.jsx)(p.Provider,{value:O,children:(0,b.jsx)(A,(0,i.A)({ownerState:L,className:(0,a.A)(j.root,c),as:g,ref:t},D))})})},44574:function(e,t,n){var r,i;void 0===(i="function"==typeof(r=function(){var e,t,n,r={};r.version="0.2.0";var i=r.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function o(e,t,n){return e<t?t:e>n?n:e}r.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(i[t]=n);return this},r.status=null,r.set=function(e){var t=r.isStarted();r.status=1===(e=o(e,i.minimum,1))?null:e;var n=r.render(!t),l=n.querySelector(i.barSelector),u=i.speed,c=i.easing;return n.offsetWidth,a(function(t){var o,a,d,h;""===i.positionUsing&&(i.positionUsing=r.getPositioningCSS()),s(l,(o=e,a=u,d=c,(h="translate3d"===i.positionUsing?{transform:"translate3d("+(-1+o)*100+"%,0,0)"}:"translate"===i.positionUsing?{transform:"translate("+(-1+o)*100+"%,0)"}:{"margin-left":(-1+o)*100+"%"}).transition="all "+a+"ms "+d,h)),1===e?(s(n,{transition:"none",opacity:1}),n.offsetWidth,setTimeout(function(){s(n,{transition:"all "+u+"ms linear",opacity:0}
24),setTimeout(function(){r.remove(),t()},u)},u)):setTimeout(t,u)}),this},r.isStarted=function(){return"number"==typeof r.status},r.start=function(){r.status||r.set(0);var e=function(){setTimeout(function(){r.status&&(r.trickle(),e())},i.trickleSpeed)};return i.trickle&&e(),this},r.done=function(e){return e||r.status?r.inc(.3+.5*Math.random()).set(1):this},r.inc=function(e){var t=r.status;return t?("number"!=typeof e&&(e=(1-t)*o(Math.random()*t,.1,.95)),t=o(t+e,0,.994),r.set(t)):r.start()},r.trickle=function(){return r.inc(Math.random()*i.trickleRate)},e=0,t=0,r.promise=function(n){return n&&"resolved"!==n.state()&&(0===t&&r.start(),e++,t++,n.always(function(){0==--t?(e=0,r.done()):r.set((e-t)/e)})),this},r.render=function(e){if(r.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=i.template;var n,o=t.querySelector(i.barSelector),a=e?"-100":(-1+(r.status||0))*100,l=document.querySelector(i.parent);return s(o,{transition:"all 0 linear",transform:"translate3d("+a+"%,0,0)"}),!i.showSpinner&&(n=t.querySelector(i.spinnerSelector))&&h(n),l!=document.body&&u(l,"nprogress-custom-parent"),l.appendChild(t),t},r.remove=function(){c(document.documentElement,"nprogress-busy"),c(document.querySelector(i.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&h(e)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var a=(n=[],function(e){n.push(e),1==n.length&&function e(){var t=n.shift();t&&t(e)}()}),s=function(){var e=["Webkit","O","Moz","ms"],t={};function n(n,r,i){var o;r=t[o=(o=r).replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})]||(t[o]=function(t){var n=document.body.style;if(t in n)return t;for(var r,i=e.length,o=t.charAt(0).toUpperCase()+t.slice(1);i--;)if((r=e[i]+o)in n)return r;return t}(o)),n.style[r]=i}return function(e,t){var r,i,o=arguments;if(2==o.length)for(r in t)void 0!==(i=t[r])&&t.hasOwnProperty(r)&&n(e,r,i);else n(e,o[1],o[2])}}();function l(e,t){return("string"==typeof e?e:d(e)).indexOf(" "+t+" ")>=0}function u(e,t){var n=d(e),r=n+t;l(n,t)||(e.className=r.substring(1))}function c(e,t){var n,r=d(e);l(e,t)&&(e.className=(n=r.replace(" "+t+" "," ")).substring(1,n.length-1))}function d(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function h(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return r})?r.call(t,n,t,e):r)||(e.exports=i)},44930:(e,t,n)=>{"use strict";n.d(t,{i:()=>s,s:()=>a});var r,i=n(55729),o=!!(r||(r=n.t(i,2))).useInsertionEffect&&(r||(r=n.t(i,2))).useInsertionEffect,a=o||function(e){return e()},s=o||i.useLayoutEffect},46456:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(99410),i=n(1983),o=n(55729),a=n(25814),s=n(78002),l=n(50878),u=n(57964),c=n(38353),d=n(12639),h=n(6029);let p=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function f(e){return"scale(".concat(e,", ").concat(e**2,")")}let m={entering:{opacity:1,transform:f(1)},entered:{opacity:1,transform:"none"}},g="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),v=o.forwardRef(function(e,t){let{addEndListener:n,appear:v=!0,children:y,easing:b,in:w,onEnter:S,onEntered:x,onEntering:A,onExit:k,onExited:E,onExiting:C,style:T,timeout:_="auto",TransitionComponent:P=l.Ay}=e,M=(0,i.A)(e,p),I=(0,a.A)(),O=o.useRef(),R=(0,u.A)(),D=o.useRef(null),L=(0,d.A)(D,(0,s.A)(y),t),j=e=>t=>{if(e){let n=D.current;void 0===t?e(n):e(n,t)}},U=j(A),N=j((e,t)=>{let n;(0,c.q)(e);let{duration:r,delay:i,easing:o}=(0,c.c)({style:T,timeout:_,easing:b},{mode:"enter"});"auto"===_?O.current=n=R.transitions.getAutoHeightDuration(e.clientHeight):n=r,e.
24style.transition=[R.transitions.create("opacity",{duration:n,delay:i}),R.transitions.create("transform",{duration:g?n:.666*n,delay:i,easing:o})].join(","),S&&S(e,t)}),F=j(x),B=j(C),z=j(e=>{let t,{duration:n,delay:r,easing:i}=(0,c.c)({style:T,timeout:_,easing:b},{mode:"exit"});"auto"===_?O.current=t=R.transitions.getAutoHeightDuration(e.clientHeight):t=n,e.style.transition=[R.transitions.create("opacity",{duration:t,delay:r}),R.transitions.create("transform",{duration:g?t:.666*t,delay:g?r:r||.333*t,easing:i})].join(","),e.style.opacity=0,e.style.transform=f(.75),k&&k(e)}),$=j(E);return(0,h.jsx)(P,(0,r.A)({appear:v,in:w,nodeRef:D,onEnter:N,onEntered:F,onEntering:U,onExit:z,onExited:$,onExiting:B,addEndListener:e=>{"auto"===_&&I.start(O.current||0,e),n&&n(D.current,e)},timeout:"auto"===_?null:_},M,{children:(e,t)=>o.cloneElement(y,(0,r.A)({style:(0,r.A)({opacity:0,transform:f(.75),visibility:"exited"!==e||w?void 0:"hidden"},m[e],T,y.props.style),ref:L},t))}))});v.muiSupportAuto=!0;let y=v},46720:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>o});var r=n(64314);let i={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function o(e,t,n="Mui"){let a=i[t];return a?`${n}-${a}`:`${r.A.generate(e)}-${t}`}},46800:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(1983),i=n(99410),o=n(55729),a=n(50212),s=n(21834),l=n(17582),u=n(50787),c=n(52526),d=n(37597),h=n(16492),p=n(46720);function f(e){return(0,p.Ay)("MuiTypography",e)}(0,h.A)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);var m=n(6029);let g=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],v=e=>{let{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e,s={root:["root",o,"inherit"!==e.align&&"align".concat((0,d.A)(t)),n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return(0,l.A)(s,f,a)},y=(0,u.Ay)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t["align".concat((0,d.A)(n.align))],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(e=>{let{theme:t,ownerState:n}=e;return(0,i.A)({margin:0},"inherit"===n.variant&&{font:"inherit"},"inherit"!==n.variant&&t.typography[n.variant],"inherit"!==n.align&&{textAlign:n.align},n.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n.gutterBottom&&{marginBottom:"0.35em"},n.paragraph&&{marginBottom:16})}),b={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},w={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},S=e=>w[e]||e,x=o.forwardRef(function(e,t){let n=(0,c.b)({props:e,name:"MuiTypography"}),o=S(n.color),l=(0,s.A)((0,i.A)({},n,{color:o})),{align:u="inherit",className:d,component:h,gutterBottom:p=!1,noWrap:f=!1,paragraph:w=!1,variant:x="body1",variantMapping:A=b}=l,k=(0,r.A)(l,g),E=(0,i.A)({},l,{align:u,color:o,className:d,component:h,gutterBottom:p,noWrap:f,paragraph:w,variant:x,variantMapping:A}),C=h||(w?"p":A[x]||b[x])||"span",T=v(E);return(0,m.jsx)(y,(0,i.A)({as:C,ref:t,ownerState:E,className:(0,a.A)(T.root,d)},k))})},47370:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return x},useLinkStatus:function(){return S}});let r=n(13514),i=n(6029),o=r._(n(55729)),a=n(75416),s=n(91930),l=n(57891),u=n(87197),c=n(48046),d=n(5351),h=n(30377),p=n(78250),f=n(93743),m=n(10884);n(77358);let g=new Set;function v(e,t,n,r){if((0,s.isLocalURL)(t)){if(!r.bypassPrefetchedCheck){let i=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(g.has(i))return;g.add(i)}e.prefetch(t,n,r).catch(e=>{})}}function y(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let b=o.default.forwardRef(function(e,t){let n,r,{href:l,as:g,children:b,prefetch:w=null,passHref:S,replace:x,shallow:A,scroll:k,locale:E,onClick:C,onNavigate:T,onMouseEnter:_,onTouchStart:P,legacyBehavior:M=!1,...I}=e;n=b,M&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let O=o.default.useContext(d.RouterContext),R=!1!==w,{href:D,as:L}=o.default.useMemo(()=>
24{if(!O){let e=y(l);return{href:e,as:g?y(g):e}}let[e,t]=(0,a.resolveHref)(O,l,!0);return{href:e,as:g?(0,a.resolveHref)(O,g):t||e}},[O,l,g]),j=o.default.useRef(D),U=o.default.useRef(L);M&&(r=o.default.Children.only(n));let N=M?r&&"object"==typeof r&&r.ref:t,[F,B,z]=(0,h.useIntersection)({rootMargin:"200px"}),$=o.default.useCallback(e=>{(U.current!==L||j.current!==D)&&(z(),U.current=L,j.current=D),F(e)},[L,D,z,F]),V=(0,m.useMergedRef)($,N);o.default.useEffect(()=>{O&&B&&R&&v(O,D,L,{locale:E})},[L,D,B,E,R,null==O?void 0:O.locale,O]);let H={ref:V,onClick(e){M||"function"!=typeof C||C(e),M&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),O&&(e.defaultPrevented||function(e,t,n,r,i,o,a,l,u){let{nodeName:c}=e.currentTarget;if(!("A"===c.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||e.currentTarget.hasAttribute("download"))){if(!(0,s.isLocalURL)(n)){i&&(e.preventDefault(),location.replace(n));return}e.preventDefault(),(()=>{if(u){let e=!1;if(u({preventDefault:()=>{e=!0}}),e)return}let e=null==a||a;"beforePopState"in t?t[i?"replace":"push"](n,r,{shallow:o,locale:l,scroll:e}):t[i?"replace":"push"](r||n,{scroll:e})})()}}(e,O,D,L,x,A,k,E,T))},onMouseEnter(e){M||"function"!=typeof _||_(e),M&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),O&&v(O,D,L,{locale:E,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:function(e){M||"function"!=typeof P||P(e),M&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),O&&v(O,D,L,{locale:E,priority:!0,bypassPrefetchedCheck:!0})}};if((0,u.isAbsoluteUrl)(L))H.href=L;else if(!M||S||"a"===r.type&&!("href"in r.props)){let e=void 0!==E?E:null==O?void 0:O.locale;H.href=(null==O?void 0:O.isLocaleDomain)&&(0,p.getDomainLocale)(L,e,null==O?void 0:O.locales,null==O?void 0:O.domainLocales)||(0,f.addBasePath)((0,c.addLocale)(L,e,null==O?void 0:O.defaultLocale))}return M?o.default.cloneElement(r,H):(0,i.jsx)("a",{...I,...H,children:n})}),w=(0,o.createContext)({pending:!1}),S=()=>(0,o.useContext)(w),x=b;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},48241:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(35142);function i(e){let{theme:t,name:n,props:i}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,r.A)(t.components[n].defaultProps,i):i}},48948:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},48983:(e,t)=>{"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,o=l(e),a=o[0],s=o[1],u=new i((a+s)*3/4-s),c=0,d=s>0?a-4:a;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=0,s=r-i;a<s;a+=16383)o.push(function(e,t,r){for(var i,o=[],a=t;a<r;a+=3)i=(e[a]<<16&0xff0000)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(n[i>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&o.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r[45]=62,r[95]=63},49484:(e,t,n)=>{"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}n.d(t,{A:()=>r})},49737:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(73818);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.A)(e,t)}}
24,50212:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=function(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r);return i}(e))&&(r&&(r+=" "),r+=t);return r}},50787:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s});var r=n(72588),i=n(10306),o=n(14443),a=n(96121);let s=(0,r.Ay)({themeId:o.A,defaultTheme:i.A,rootShouldForwardProp:a.A})},50878:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>v});var r=n(1983),i=n(49737),o=n(55729),a=n(56760);let s={disabled:!1};var l=n(5440),u=n(69478),c="unmounted",d="exited",h="entering",p="entered",f="exiting",m=function(e){function t(t,n){var r,i=e.call(this,t,n)||this,o=n&&!n.isMounting?t.enter:t.appear;return i.appearStatus=null,t.in?o?(r=d,i.appearStatus=h):r=p:r=t.unmountOnExit||t.mountOnEnter?c:d,i.state={status:r},i.nextCallback=null,i}(0,i.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===c?{status:d}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==h&&n!==p&&(t=h):(n===h||n===p)&&(t=f)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===h){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this);n&&(0,u.F)(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===d&&this.setState({status:c})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[a.findDOMNode(this),r],o=i[0],l=i[1],u=this.getTimeouts(),c=r?u.appear:u.enter;if(!e&&!n||s.disabled)return void this.safeSetState({status:p},function(){t.props.onEntered(o)});this.props.onEnter(o,l),this.safeSetState({status:h},function(){t.props.onEntering(o,l),t.onTransitionEnd(c,function(){t.safeSetState({status:p},function(){t.props.onEntered(o,l)})})})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:a.findDOMNode(this);if(!t||s.disabled)return void this.safeSetState({status:d},function(){e.props.onExited(r)});this.props.onExit(r),this.safeSetState({status:f},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:d},function(){e.props.onExited(r)})})})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(!n||r)return void setTimeout(this.nextCallback,0);if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],s=i[1];this.props.addEndListener(o,s)}null!=e&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===c)return null;var t=this.props,n=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,r.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return o.createElement(l.A.Provider,{value:null},"function"==typeof n?n(e,i):o.cloneElement(o.Children.only(n),i))},t}(o.Component);function g(){}m.contextType=l.A,m.propTypes={},m.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter
24:!0,exit:!0,onEnter:g,onEntering:g,onEntered:g,onExit:g,onExiting:g,onExited:g},m.UNMOUNTED=c,m.EXITED=d,m.ENTERING=h,m.ENTERED=p,m.EXITING=f;let v=m},51642:(e,t,n)=>{"use strict";var r=n(48983),i=n(31838),o=n(65123);function a(){return l.TYPED_ARRAY_SUPPORT?0x7fffffff:0x3fffffff}function s(e,t){if(a()<t)throw RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!l.TYPED_ARRAY_SUPPORT&&!(this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw Error("If encoding is specified then the first argument must be a string");return d(this,e)}return u(this,e,t,n)}function u(e,t,n,r){if("number"==typeof t)throw TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=h(e,t),e}(e,t,n,r):"string"==typeof t?function(e,t,n){if(("string"!=typeof n||""===n)&&(n="utf8"),!l.isEncoding(n))throw TypeError('"encoding" must be a valid string encoding');var r=0|f(t,n),i=(e=s(e,r)).write(t,n);return i!==r&&(e=e.slice(0,i)),e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n,r=0|p(t.length);return 0===(e=s(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t){return"number"!=typeof t.length||(n=t.length)!=n?s(e,0):h(e,t)}if("Buffer"===t.type&&o(t.data))return h(e,t.data)}throw TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw TypeError('"size" argument must be a number');if(e<0)throw RangeError('"size" argument must not be negative')}function d(e,t){if(c(t),e=s(e,t<0?0:0|p(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t){var n=t.length<0?0:0|p(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=a())throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function f(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return _(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return M(e).length;default:if(r)return _(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var i,o,a,s=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r,i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var o="",a=t;a<n;++a){o+=(r=e[a])<16?"0"+r.toString(16):r.toString(16)}return o}(this,t,n);case"utf8":case"utf-8":return b(this,t,n);case"ascii":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}(this,t,n);case"latin1":case"binary":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}(this,t,n);case"base64":return i=this,o=t,a=n,0===o&&a===i.length?r.fromByteArray(i):r.fromByteArray(i.slice(o,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}(this,t,n);default:if(s)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return -1;if("string"==typeof n?(r=n,n=0):n>0x7fffffff?n=0x7fffffff:n<-0x80000000&&(n=-0x80000000),isNaN(n*=1)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length)if(i)return -1;else n=e.length-1;else if(n<0)if(!i)return -1;else n=0;if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t){if(t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,n);else return Uint8Array.prototype.lastIndexOf.call(e,t,n);return y(e,[t],n,r,i)}throw TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;
24a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;o<s;o++)if(u(e,o)===u(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*a}else -1!==c&&(o-=o-c),c=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var d=!0,h=0;h<l;h++)if(u(e,o+h)!==u(t,h)){d=!1;break}if(d)return o}return -1}t.hp=l,t.IS=50,l.TYPED_ARRAY_SUPPORT=void 0!==n.g.TYPED_ARRAY_SUPPORT?n.g.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),a(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return u(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return(c(e),e<=0)?s(null,e):void 0!==t?"string"==typeof n?s(null,e).fill(t,n):s(null,e).fill(t):s(null,e)},l.allocUnsafe=function(e){return d(null,e)},l.allocUnsafeSlow=function(e){return d(null,e)},l.isBuffer=function(e){return!!(null!=e&&e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:+(r<n)},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!o(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);if(void 0===t)for(n=0,t=0;n<e.length;++n)t+=e[n].length;var n,r=l.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!l.isBuffer(a))throw TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},l.byteLength=f,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0==arguments.length?b(this,0,e):m.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.IS;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,i){if(!l.isBuffer(e))throw TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,s=Math.min(o,a),u=this.slice(r,i),c=e.slice(t,n),d=0;d<s;++d)if(u[d]!==c[d]){o=u[d],a=c[d];break}return o<a?-1:+(a<o)},l.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)};function b(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,l,u=e[i],c=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}var h=r,p=h.length;if(p<=4096)return String.fromCharCode.apply(String,h);for(var f="",m=0;m<p;)f+=String.fromCharCode.apply(String,h.slice(m,m+=4096));return f}function w(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function S(e,t,n,r,i,o){if(!l.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(n+r>e.length)throw RangeError("Index out of range")}function x(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>(r?i:1-i)*8}function A(e,t,n,r){t<0&&(t=0xffffffff+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>(r?i:3-i)*8&255}function k(e,t,n,r,i,o){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function E(e,t,n,r,o){return o||k(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function C(e,t,n,r,o){return o||k(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else if(isFinite(t))t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,l,u,c,d,h=this.length-t;if((void 0===n||n>h)&&(n=h),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var p=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))break;e[n+a]=s}return a}(this,e,t,n);case"utf8":case"utf-8":return i=t,o=n,I(_(e,this.length-i),this,i,o);case"ascii":return a=t,s=n,I(P(e),this,a,s);case"latin1":case"binary":return function(e,t,n,r){return I(P(t),e,n,r)}(this,e,t,n);case"base64":return l=t,u=n,I(M(e),this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=t,d=n,I(function(e,t){for(var n,r,i=[],o=0;o<e.length&&!((t-=2)<0);++o)r=(n=e.charCodeAt(o))>>8,i.push(n%256),i.push(r);return i}(e,this.length-c),this,c,d);default:if(p)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),p=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var i=t-e;n=new l(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||w(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||w(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUInt8=function(e,t){return t||w(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||w(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||w(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||w(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||w(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||w(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return(t||w(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},l.prototype.readInt16LE=function(e,t){t||w(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?0xffff0000|n:n},l.prototype.readInt16BE=function(e,t){t||w(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?0xffff0000|n:n},l.prototype.readInt32LE=function(e,t){return t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||w(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||w(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||w(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||w(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){if(e*=1,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;S(this,e,t,n,i,0)}var o=1,a=0;for(this[t]=255&e;++a<n&&(o*=256);)this[t+a]=e/o&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){if(e*=1,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;S(this,e,t,n,i,0)}var o=n-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e*=1,t|=0,n||S(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e*=1,t|=0,n||S(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):x(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e*=1,t|=0,n||S(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):x(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e*=1,t|=0,n||S(this,e,t,4,0xffffffff,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):A(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e*=1,t|=0,n||S(this,e,t,4,0xffffffff,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):A(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e*=1,t|=0,!r){var i=Math.pow(2,8*n-1);S(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e*=1,t|=0,!r){var i=Math.pow(2,8*n-1);S(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e*=1,t|=0,n||S(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e*=1,t|=0,n||S(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):x(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e*=1,t|=0,n||S(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):x(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e*=1,t|=0,n||S(this,e,t,4,0x7fffffff,-0x80000000),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):A(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e*=1,t|=0,n||S(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):A(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return E(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return E(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return C(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return C(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("sourceStart out of bounds");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i,o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=l.isBuffer(e)?e:_(new l(e,r).toString()),s=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};var T=/[^+\/0-9A-Za-z-_]/g;function _(e,t){t=t||1/0;for(var n,r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319||a+1===r){(t-=3)>
24-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return o}function P(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function M(e){return r.toByteArray(function(e){var t;if((e=((t=e).trim?t.trim():t.replace(/^\s+|\s+$/g,"")).replace(T,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function I(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}},52055:(e,t)=>{t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]},52526:(e,t,n)=>{"use strict";n.d(t,{b:()=>i}),n(55729);var r=n(30108);function i(e){return(0,r.b)(e)}n(6029)},53159:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(55729),i=n(25814);let o=!0,a=!1,s=new i.E,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function u(e){e.metaKey||e.altKey||e.ctrlKey||(o=!0)}function c(){o=!1}function d(){"hidden"===this.visibilityState&&a&&(o=!0)}let h=function(){let e=r.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",u,!0),t.addEventListener("mousedown",c,!0),t.addEventListener("pointerdown",c,!0),t.addEventListener("touchstart",c,!0),t.addEventListener("visibilitychange",d,!0))},[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!function(e){let{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return o||function(e){let{type:t,tagName:n}=e;return"INPUT"===n&&!!l[t]&&!e.readOnly||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(a=!0,s.start(100,()=>{a=!1}),t.current=!1,!0)},ref:e}}},53957:(e,t,n)=>{var r=n(2331),i=n(69103),o=["checked","value"],a=["input","select","textarea"],s={reset:!0,submit:!0};function l(e){return r.possibleStandardNames[e]}e.exports=function(e,t){var n,u,c,d,h,p={},f=(e=e||{}).type&&s[e.type];for(n in e){if(c=e[n],r.isCustomAttribute(n)){p[n]=c;continue}if(d=l(u=n.toLowerCase())){switch(h=r.getPropertyInfo(d),-1!==o.indexOf(d)&&-1!==a.indexOf(t)&&!f&&(d=l("default"+u)),p[d]=c,h&&h.type){case r.BOOLEAN:p[d]=!0;break;case r.OVERLOADED_BOOLEAN:""===c&&(p[d]=!0)}continue}i.PRESERVE_CUSTOM_ATTRIBUTES&&(p[n]=c)}return i.setStyleProp(e.style,p),p}},55572:(e,t)=>{"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler");Symbol.for("react.provider");var s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition");Symbol.for("react.client.reference");t.vM=u,t.lD=h},55687:(e,t,n)=>{var r=n(69124),i=n(86754),o=n(53957),a=n(74441);i="function"==typeof i.default?i.default:i;var s={lowerCaseAttributeNames:!1};function l(e,t){if("string"!=typeof e)throw TypeError("First argument must be a string");return""===e?[]:a(i(e,(t=t||{}).htmlparser2||s),t)}l.domToReact=a,l.htmlToDOM=i,l.attributesToProps=o,l.Comment=r.Comment,l.Element=r.Element,l.ProcessingInstruction=r.ProcessingInstruction,l.Text=r.Text,e.exports=l,l.default=l},56121:(e,t,n)=>{e.exports=n(61847)()}
24,56529:(e,t,n)=>{"use strict";let r,i,o;n.d(t,{RC:()=>$,qr:()=>V});var a=n(55729),s=n(6587),l=n(89974);function u(){return r||(r=function(){let e=(0,s.a)(),t=(0,s.g)();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),r}let c=(e,t)=>{if(!e||e.destroyed||!e.params)return;let n=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(n){let t=n.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(n.shadowRoot?t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`))&&t.remove()})),t&&t.remove()}},d=(e,t)=>{if(!e.slides[t])return;let n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},h=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext,n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);let r="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){let n=[i-t];n.push(...Array.from({length:t}).map((e,t)=>i+r+t)),e.slides.forEach((t,r)=>{n.includes(t.column)&&d(e,r)});return}let o=i+r-1;if(e.params.rewind||e.params.loop)for(let r=i-t;r<=o+t;r+=1){let t=(r%n+n)%n;(t<i||t>o)&&d(e,t)}else for(let r=Math.max(i-t,0);r<=Math.min(o+t,n-1);r+=1)r!==i&&(r>o||r<i)&&d(e,r)};function p(e){let{swiper:t,runCallbacks:n,direction:r,step:i}=e,{activeIndex:o,previousIndex:a}=t,s=r;if(s||(s=o>a?"next":o<a?"prev":"reset"),t.emit(`transition${i}`),n&&o!==a){if("reset"===s)return void t.emit(`slideResetTransition${i}`);t.emit(`slideChangeTransition${i}`),"next"===s?t.emit(`slideNextTransition${i}`):t.emit(`slidePrevTransition${i}`)}}function f(e){let t=(0,s.g)(),n=(0,s.a)(),r=this.touchEventsData;r.evCache.push(e);let{params:i,touches:o,enabled:a}=this;if(!a||!i.simulateTouch&&"mouse"===e.pointerType||this.animating&&i.preventInteractionOnTransition)return;!this.animating&&i.cssMode&&i.loop&&this.loopFix();let u=e;u.originalEvent&&(u=u.originalEvent);let c=u.target;if("wrapper"===i.touchEventsTarget&&!this.wrapperEl.contains(c)||"which"in u&&3===u.which||"button"in u&&u.button>0||r.isTouched&&r.isMoved)return;let d=!!i.noSwipingClass&&""!==i.noSwipingClass,h=e.composedPath?e.composedPath():e.path;d&&u.target&&u.target.shadowRoot&&h&&(c=h[0]);let p=i.noSwipingSelector?i.noSwipingSelector:`.${i.noSwipingClass}`,f=!!(u.target&&u.target.shadowRoot);if(i.noSwiping&&(f?function(e,t){return void 0===t&&(t=this),function t(n){if(!n||n===(0,s.g)()||n===(0,s.a)())return null;n.assignedSlot&&(n=n.assignedSlot);let r=n.closest(e);return r||n.getRootNode?r||t(n.getRootNode().host):null}(t)}(p,c):c.closest(p))){this.allowClick=!0;return}if(i.swipeHandler&&!c.closest(i.swipeHandler))return;o.currentX=u.pageX,o.currentY=u.pageY;let m=o.currentX,g=o.currentY,v=i.edgeSwipeDetection||i.iOSEdgeSwipeDetection,y=i.edgeSwipeThreshold||i.iOSEdgeSwipeThreshold;if(v&&(m<=y||m>=n.innerWidth-y))if("prevent"!==v)return;else e.preventDefault();Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=m,o.startY=g,r.touchStartTime=(0,l.d)(),this.allowClick=!0,this.updateSize(),this.swipeDirection=void 0,i.threshold>0&&(r.allowThresholdMove=!1);let b=!0;c.matches(r.focusableElements)&&(b=!1,"SELECT"===c.nodeName&&(r.isTouched=!1)),t.activeElement&&t.activeElement.matches(r.focusableElements)&&t.activeElement!==c&&t.activeElement.blur();let w=b&&this.allowTouchMove&&i.touchStartPreventDefault;(i.touchStartForcePreventDefault||w)&&!c.isContentEditable&&u.preventDefault(),i.freeMode&&i.freeMode.enabled&&this.freeMode&&this.animating&&!i.cssMode&&this.freeMode.onTouchStart(),this.emit("touchStart",u)}function m(e){let t,n=(0,s.g)(),r=this.touchEventsData,{params:i,touches:o,rtlTranslate:a,enabled:u}=this;if(!u||!i.simulateTouch&&"mouse"===e.pointerType)return;let c=e;if(c.originalEvent&&(c=c.originalEvent),!r.isTouched){r.startMoving&&r.isScrolling&&this.emit
24("touchMoveOpposite",c);return}let d=r.evCache.findIndex(e=>e.pointerId===c.pointerId);d>=0&&(r.evCache[d]=c);let h=r.evCache.length>1?r.evCache[0]:c,p=h.pageX,f=h.pageY;if(c.preventedByNestedSwiper){o.startX=p,o.startY=f;return}if(!this.allowTouchMove){c.target.matches(r.focusableElements)||(this.allowClick=!1),r.isTouched&&(Object.assign(o,{startX:p,startY:f,prevX:this.touches.currentX,prevY:this.touches.currentY,currentX:p,currentY:f}),r.touchStartTime=(0,l.d)());return}if(i.touchReleaseOnEdges&&!i.loop){if(this.isVertical()){if(f<o.startY&&this.translate<=this.maxTranslate()||f>o.startY&&this.translate>=this.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(p<o.startX&&this.translate<=this.maxTranslate()||p>o.startX&&this.translate>=this.minTranslate())return}if(n.activeElement&&c.target===n.activeElement&&c.target.matches(r.focusableElements)){r.isMoved=!0,this.allowClick=!1;return}if(r.allowTouchCallbacks&&this.emit("touchMove",c),c.targetTouches&&c.targetTouches.length>1)return;o.currentX=p,o.currentY=f;let m=o.currentX-o.startX,g=o.currentY-o.startY;if(this.params.threshold&&Math.sqrt(m**2+g**2)<this.params.threshold)return;if(void 0===r.isScrolling){let e;this.isHorizontal()&&o.currentY===o.startY||this.isVertical()&&o.currentX===o.startX?r.isScrolling=!1:m*m+g*g>=25&&(e=180*Math.atan2(Math.abs(g),Math.abs(m))/Math.PI,r.isScrolling=this.isHorizontal()?e>i.touchAngle:90-e>i.touchAngle)}if(r.isScrolling&&this.emit("touchMoveOpposite",c),void 0===r.startMoving&&(o.currentX!==o.startX||o.currentY!==o.startY)&&(r.startMoving=!0),r.isScrolling||this.zoom&&this.params.zoom&&this.params.zoom.enabled&&r.evCache.length>1){r.isTouched=!1;return}if(!r.startMoving)return;this.allowClick=!1,!i.cssMode&&c.cancelable&&c.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&c.stopPropagation();let v=this.isHorizontal()?m:g,y=this.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;i.oneWayMovement&&(v=Math.abs(v)*(a?1:-1),y=Math.abs(y)*(a?1:-1)),o.diff=v,v*=i.touchRatio,a&&(v=-v,y=-y);let b=this.touchesDirection;this.swipeDirection=v>0?"prev":"next",this.touchesDirection=y>0?"prev":"next";let w=this.params.loop&&!i.cssMode,S="next"===this.swipeDirection&&this.allowSlideNext||"prev"===this.swipeDirection&&this.allowSlidePrev;if(!r.isMoved){if(w&&S&&this.loopFix({direction:this.swipeDirection}),r.startTranslate=this.getTranslate(),this.setTransition(0),this.animating){let e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});this.wrapperEl.dispatchEvent(e)}r.allowMomentumBounce=!1,i.grabCursor&&(!0===this.allowSlideNext||!0===this.allowSlidePrev)&&this.setGrabCursor(!0),this.emit("sliderFirstMove",c)}r.isMoved&&b!==this.touchesDirection&&w&&S&&Math.abs(v)>=1&&(this.loopFix({direction:this.swipeDirection,setTranslate:!0}),t=!0),this.emit("sliderMove",c),r.isMoved=!0,r.currentTranslate=v+r.startTranslate;let x=!0,A=i.resistanceRatio;if(i.touchReleaseOnEdges&&(A=0),v>0?(w&&S&&!t&&r.currentTranslate>(i.centeredSlides?this.minTranslate()-this.size/2:this.minTranslate())&&this.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>this.minTranslate()&&(x=!1,i.resistance&&(r.currentTranslate=this.minTranslate()-1+(-this.minTranslate()+r.startTranslate+v)**A))):v<0&&(w&&S&&!t&&r.currentTranslate<(i.centeredSlides?this.maxTranslate()+this.size/2:this.maxTranslate())&&this.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:this.slides.length-("auto"===i.slidesPerView?this.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),r.currentTranslate<this.maxTranslate()&&(x=!1,i.resistance&&(r.currentTranslate=this.maxTranslate()+1-(this.maxTranslate()-r.startTranslate-v)**A))),x&&(c.preventedByNestedSwiper=!0),!this.allowSlideNext&&"next"===this.swipeDirection&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!this.allowSlidePrev&&"prev"===this.swipeDirection&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),this.allowSlidePrev||this.allowSlideNext||(r.currentTranslate=r.startTranslate),i.threshold>0)if(Math.abs(v)>i.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,r.currentTranslate=r.startTranslate,o.diff=this.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY;return}}else{r.currentTranslate=r.startTranslate;return}i.followFinger&&!i.cssMode&&((i.freeMode&&i.freeMode.enabled&&this.freeMode||i.watchSlidesProgress)&&(this.updateActiveIndex(),this.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&this.freeMode&&this.freeMode.onTouchMove(),this.updateProgress(r.currentTranslate),this.setTranslate(r.currentTranslate))}function g(e){let t,n=this,r=n.touchEventsData,i=r.evCache.findIndex(t=>t.pointerId===e.pointerId);if(i>=0&&r.evCache.splice(i,1),["pointercancel","pointerout","pointerleave","contextmenu"].includes(e.type)&&!(["pointercancel","contextmenu"].includes(e.type)&&(n.browser.isSafari||n.browser.isWebView)))return;let{params:o,touches:a,rtlTranslate:s,slidesGrid:u,enabled:c}=n;if(!c||!o.simulateTouch&&"mouse"===e.pointerType)return;let d=e;if(d.originalEvent&&(d=d.originalEvent),r.allowTouchCallbacks&&n.emit("touchEnd",d),r.allowTouchCallbacks=!1,!r.isTouched){r.isMoved&&o.grabCursor&&n.setGrabCursor(!1),r.isMoved=!1,r.startMoving=!1;return}o.grabCursor&&r.isMoved&&r.isTouched&&(!0===n.allowSlideNext||!0===n.allowSlidePrev)&&n.setGrabCursor(!1);let h=(0,l.d)(),p=h-r.touchStartTime;if(n.allowClick){let e=d.path||d.composedPath&&d.composedPath();n.updateClickedSlide(e&&e[0]||d.target,e),n.emit("tap click",d),p<300&&h-r.lastClickTime<300&&n.emit("doubleTap doubleClick",d)}if(r.lastClickTime=(0,l.d)(),(0,l.n)(()=>{n.destroyed||(n.allowClick=!0)}),!r.isTouched||!r.isMoved||!n.swipeDirection||0===a.diff||r.currentTranslate===r.startTranslate){r.isTouched=!1,r.isMoved=!1,r.startMoving=!1;return}if(r.isTouched=!1,r.isMoved=!1,r.startMoving=!1,t=o.followFinger?s?n.translate:-n.translate:-r.currentTranslate,o.cssMode)return;if(o.freeMode&&o.freeMode.enabled)return void n.freeMode.onTouchEnd({currentPos:t});let f=0,m=n.slidesSizesGrid[0];for(let e=0;e<u.length;e+=e<o.slidesPerGroupSkip?1:o.slidesPerGroup){let n=e<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;void 0!==u[e+n]?t>=u[e]&&t<u[e+n]&&(f=e,m=u[e+n]-u[e]):t>=u[e]&&(f=e,m=u[u.length-1]-u[u.length-2])}let g=null,v=null;o.rewind&&(n.isBeginning?v=o.virtual&&o.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1:n.isEnd&&(g=0));let y=(t-u[f])/m,b=f<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;if(p>o.longSwipesMs){if(!o.longSwipes)return void n.slideTo(n.activeIndex);"next"===n.swipeDirection&&(y>=o.longSwipesRatio?n.slideTo(o.rewind&&n.isEnd?g:f+b):n.slideTo(f)),"prev"===n.swipeDirection&&(y>1-o.longSwipesRatio?n.slideTo(f+b):null!==v&&y<0&&Math.abs(y)>o.longSwipesRatio?n.slideTo(v):n.slideTo(f))}else{if(!o.shortSwipes)return void n.slideTo(n.activeIndex);n.navigation&&(d.target===n.navigation.nextEl||d.target===n.navigation.prevEl)?d.target===n.navigation.nextEl?n.slideTo(f+b):n.slideTo(f):("next"===n.swipeDirection&&n.slideTo(null!==g?g:f+b),"prev"===n.swipeDirection&&n.slideTo(null!==v?v:f))}}function v(){let e=this,{params:t,el:n}=e;if(n&&0===n.offsetWidth)return;t.breakpoints&&e.setBreakpoint();let{allowSlideNext:r,allowSlidePrev:i,snapGrid:o}=e,a=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();let s=a&&t.loop;"auto"!==t.slidesPerView&&!(t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||s?e.params.loop&&!a?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}function y(e){this.enabled&&!this.allowClick&&(this.params.preventClicks&&e.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function b(){let e,{wrapperEl:t,rtlTranslate:n,enabled:r}=this;if(!r)return;this.previousTranslate=this.translate,this.isHorizontal()?this.translate=-t.scrollLeft:this.translate=-t.scrollTop,0===this.translate&&(this.translate=0),this.updateActiveIndex(),this.updateSlidesClasses();let i=this.maxTranslate()-this.minTranslate();(0===i?0:(this.translate-this.minTranslate())/i)!==this.progress&&this.updateProgress(n?-this.translate:this.translate),this.emit
24("setTranslate",this.translate,!1)}function w(e){c(this,e.target),!this.params.cssMode&&("auto"===this.params.slidesPerView||this.params.autoHeight)&&this.update()}let S=!1;function x(){}let A=(e,t)=>{let n=(0,s.g)(),{params:r,el:i,wrapperEl:o,device:a}=e,l=!!r.nested,u="on"===t?"addEventListener":"removeEventListener";i[u]("pointerdown",e.onTouchStart,{passive:!1}),n[u]("pointermove",e.onTouchMove,{passive:!1,capture:l}),n[u]("pointerup",e.onTouchEnd,{passive:!0}),n[u]("pointercancel",e.onTouchEnd,{passive:!0}),n[u]("pointerout",e.onTouchEnd,{passive:!0}),n[u]("pointerleave",e.onTouchEnd,{passive:!0}),n[u]("contextmenu",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&i[u]("click",e.onClick,!0),r.cssMode&&o[u]("scroll",e.onScroll),r.updateOnWindowResize?e[t](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",v,!0):e[t]("observerUpdate",v,!0),i[u]("load",e.onLoad,{capture:!0})},k=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var E={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,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",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};let C={eventsEmitter:{on(e,t,n){let r=this;if(!r.eventsListeners||r.destroyed||"function"!=typeof t)return r;let i=n?"unshift":"push";return e.split(" ").forEach(e=>{r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][i](t)}),r},once(e,t,n){let r=this;if(!r.eventsListeners||r.destroyed||"function"!=typeof t)return r;function i(){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy;for(var n=arguments.length,o=Array(n),a=0;a<n;a++)o[a]=arguments[a];t.apply(r,o)}return i.__emitterProxy=t,r.on(e,i,n)},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 n=this;return n.eventsListeners&&!n.destroyed&&n.eventsListeners&&e.split(" ").forEach(e=>{void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((r,i)=>{(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&n.eventsListeners[e].splice(i,1)})}),n},emit(){let e,t,n,r=this;if(!r.eventsListeners||r.destroyed||!r.eventsListeners)return r;for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return"string"==typeof o[0]||Array.isArray(o[0])?(e=o[0],t=o.slice(1,o.length),n=r):(e=o[0].events,t=o[0].data,n=o[0].context||r),t.unshift(n),(Array.isArray(e)?e:e.split(" ")).forEac
24h(e=>{r.eventsAnyListeners&&r.eventsAnyListeners.length&&r.eventsAnyListeners.forEach(r=>{r.apply(n,[e,...t])}),r.eventsListeners&&r.eventsListeners[e]&&r.eventsListeners[e].forEach(e=>{e.apply(n,t)})}),r}},update:{updateSize:function(){let e,t,n=this.el;e=void 0!==this.params.width&&null!==this.params.width?this.params.width:n.clientWidth,t=void 0!==this.params.height&&null!==this.params.height?this.params.height:n.clientHeight,0===e&&this.isHorizontal()||0===t&&this.isVertical()||(e=e-parseInt((0,l.l)(n,"padding-left")||0,10)-parseInt((0,l.l)(n,"padding-right")||0,10),t=t-parseInt((0,l.l)(n,"padding-top")||0,10)-parseInt((0,l.l)(n,"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 n(e){return t.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]}function r(e,t){return parseFloat(e.getPropertyValue(n(t))||0)}let i=t.params,{wrapperEl:o,slidesEl:a,size:s,rtlTranslate:u,wrongRTL:c}=t,d=t.virtual&&i.virtual.enabled,h=d?t.virtual.slides.length:t.slides.length,p=(0,l.e)(a,`.${t.params.slideClass}, swiper-slide`),f=d?t.virtual.slides.length:p.length,m=[],g=[],v=[],y=i.slidesOffsetBefore;"function"==typeof y&&(y=i.slidesOffsetBefore.call(t));let b=i.slidesOffsetAfter;"function"==typeof b&&(b=i.slidesOffsetAfter.call(t));let w=t.snapGrid.length,S=t.slidesGrid.length,x=i.spaceBetween,A=-y,k=0,E=0;if(void 0===s)return;"string"==typeof x&&x.indexOf("%")>=0?x=parseFloat(x.replace("%",""))/100*s:"string"==typeof x&&(x=parseFloat(x)),t.virtualSize=-x,p.forEach(e=>{u?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),i.centeredSlides&&i.cssMode&&((0,l.s)(o,"--swiper-centered-offset-before",""),(0,l.s)(o,"--swiper-centered-offset-after",""));let C=i.grid&&i.grid.rows>1&&t.grid;C&&t.grid.initSlides(f);let T="auto"===i.slidesPerView&&i.breakpoints&&Object.keys(i.breakpoints).filter(e=>void 0!==i.breakpoints[e].slidesPerView).length>0;for(let o=0;o<f;o+=1){let a;if(e=0,p[o]&&(a=p[o]),C&&t.grid.updateSlide(o,a,f,n),!p[o]||"none"!==(0,l.l)(a,"display")){if("auto"===i.slidesPerView){T&&(p[o].style[n("width")]="");let s=getComputedStyle(a),u=a.style.transform,c=a.style.webkitTransform;if(u&&(a.style.transform="none"),c&&(a.style.webkitTransform="none"),i.roundLengths)e=t.isHorizontal()?(0,l.f)(a,"width",!0):(0,l.f)(a,"height",!0);else{let t=r(s,"width"),n=r(s,"padding-left"),i=r(s,"padding-right"),o=r(s,"margin-left"),l=r(s,"margin-right"),u=s.getPropertyValue("box-sizing");if(u&&"border-box"===u)e=t+o+l;else{let{clientWidth:r,offsetWidth:s}=a;e=t+n+i+o+l+(s-r)}}u&&(a.style.transform=u),c&&(a.style.webkitTransform=c),i.roundLengths&&(e=Math.floor(e))}else e=(s-(i.slidesPerView-1)*x)/i.slidesPerView,i.roundLengths&&(e=Math.floor(e)),p[o]&&(p[o].style[n("width")]=`${e}px`);p[o]&&(p[o].swiperSlideSize=e),v.push(e),i.centeredSlides?(A=A+e/2+k/2+x,0===k&&0!==o&&(A=A-s/2-x),0===o&&(A=A-s/2-x),.001>Math.abs(A)&&(A=0),i.roundLengths&&(A=Math.floor(A)),E%i.slidesPerGroup==0&&m.push(A),g.push(A)):(i.roundLengths&&(A=Math.floor(A)),(E-Math.min(t.params.slidesPerGroupSkip,E))%t.params.slidesPerGroup==0&&m.push(A),g.push(A),A=A+e+x),t.virtualSize+=e+x,k=e,E+=1}}if(t.virtualSize=Math.max(t.virtualSize,s)+b,u&&c&&("slide"===i.effect||"coverflow"===i.effect)&&(o.style.width=`${t.virtualSize+x}px`),i.setWrapperSize&&(o.style[n("width")]=`${t.virtualSize+x}px`),C&&t.grid.updateWrapperSize(e,m,n),!i.centeredSlides){let e=[];for(let n=0;n<m.length;n+=1){let r=m[n];i.roundLengths&&(r=Math.floor(r)),m[n]<=t.virtualSize-s&&e.push(r)}m=e,Math.floor(t.virtualSize-s)-Math.floor(m[m.length-1])>1&&m.push(t.virtualSize-s)}if(d&&i.loop){let e=v[0]+x;if(i.slidesPerGroup>1){let n=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),r=e*i.slidesPerGroup;for(let e=0;e<n;e+=1)m.push(m[m.length-1]+r)}for(let n=0;n<t.virtual.slidesBefore+t.virtual.slidesAfter;n+=1)1===i.slidesPerGroup&&m.push(m[m.length-1]+e),g.push(g[g.length-1]+e),t.virtualSize+=e}if(0===m.length&&(m=[0]),0!==x){let e=t.isHorizontal()&&u?"marginLeft":n("marginRight");p.filter((e,t)=>
24!i.cssMode||!!i.loop||t!==p.length-1).forEach(t=>{t.style[e]=`${x}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let e=0;v.forEach(t=>{e+=t+(x||0)});let t=(e-=x)-s;m=m.map(e=>e<=0?-y:e>t?t+b:e)}if(i.centerInsufficientSlides){let e=0;if(v.forEach(t=>{e+=t+(x||0)}),(e-=x)<s){let t=(s-e)/2;m.forEach((e,n)=>{m[n]=e-t}),g.forEach((e,n)=>{g[n]=e+t})}}if(Object.assign(t,{slides:p,snapGrid:m,slidesGrid:g,slidesSizesGrid:v}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){(0,l.s)(o,"--swiper-centered-offset-before",`${-m[0]}px`),(0,l.s)(o,"--swiper-centered-offset-after",`${t.size/2-v[v.length-1]/2}px`);let e=-t.snapGrid[0],n=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(t=>t+e),t.slidesGrid=t.slidesGrid.map(e=>e+n)}if(f!==h&&t.emit("slidesLengthChange"),m.length!==w&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),g.length!==S&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),!d&&!i.cssMode&&("slide"===i.effect||"fade"===i.effect)){let e=`${i.containerModifierClass}backface-hidden`,n=t.el.classList.contains(e);f<=i.maxBackfaceHiddenSlides?n||t.el.classList.add(e):n&&t.el.classList.remove(e)}},updateAutoHeight:function(e){let t,n=this,r=[],i=n.virtual&&n.params.virtual.enabled,o=0;"number"==typeof e?n.setTransition(e):!0===e&&n.setTransition(n.params.speed);let a=e=>i?n.slides[n.getSlideIndexByData(e)]:n.slides[e];if("auto"!==n.params.slidesPerView&&n.params.slidesPerView>1)if(n.params.centeredSlides)(n.visibleSlides||[]).forEach(e=>{r.push(e)});else for(t=0;t<Math.ceil(n.params.slidesPerView);t+=1){let e=n.activeIndex+t;if(e>n.slides.length&&!i)break;r.push(a(e))}else r.push(a(n.activeIndex));for(t=0;t<r.length;t+=1)if(void 0!==r[t]){let e=r[t].offsetHeight;o=e>o?e:o}(o||0===o)&&(n.wrapperEl.style.height=`${o}px`)},updateSlidesOffset:function(){let e=this.slides,t=this.isElement?this.isHorizontal()?this.wrapperEl.offsetLeft:this.wrapperEl.offsetTop:0;for(let n=0;n<e.length;n+=1)e[n].swiperSlideOffset=(this.isHorizontal()?e[n].offsetLeft:e[n].offsetTop)-t-this.cssOverflowAdjustment()},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);let t=this.params,{slides:n,rtlTranslate:r,snapGrid:i}=this;if(0===n.length)return;void 0===n[0].swiperSlideOffset&&this.updateSlidesOffset();let o=-e;r&&(o=e),n.forEach(e=>{e.classList.remove(t.slideVisibleClass)}),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<n.length;e+=1){let s=n[e],l=s.swiperSlideOffset;t.cssMode&&t.centeredSlides&&(l-=n[0].swiperSlideOffset);let u=(o+(t.centeredSlides?this.minTranslate():0)-l)/(s.swiperSlideSize+a),c=(o-i[0]+(t.centeredSlides?this.minTranslate():0)-l)/(s.swiperSlideSize+a),d=-(o-l),h=d+this.slidesSizesGrid[e];(d>=0&&d<this.size-1||h>1&&h<=this.size||d<=0&&h>=this.size)&&(this.visibleSlides.push(s),this.visibleSlidesIndexes.push(e),n[e].classList.add(t.slideVisibleClass)),s.progress=r?-u:u,s.originalProgress=r?-c:c}},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,n=this.maxTranslate()-this.minTranslate(),{progress:r,isBeginning:i,isEnd:o,progressLoop:a}=this,s=i,l=o;if(0===n)r=0,i=!0,o=!0;else{r=(e-this.minTranslate())/n;let t=1>Math.abs(e-this.minTranslate()),a=1>Math.abs(e-this.maxTranslate());i=t||r<=0,o=a||r>=1,t&&(r=0),a&&(r=1)}if(t.loop){let t=this.getSlideIndexByData(0),n=this.getSlideIndexByData(this.slides.length-1),r=this.slidesGrid[t],i=this.slidesGrid[n],o=this.slidesGrid[this.slidesGrid.length-1],s=Math.abs(e);(a=s>=r?(s-r)/o:(s+o-i)/o)>1&&(a-=1)}Object.assign(this,{progress:r,progressLoop:a,isBeginning:i,isEnd:o}),(t.watchSlidesProgress||t.centeredSlides&&t.autoHeight)&&this.updateSlidesProgress(e),i&&
24!s&&this.emit("reachBeginning toEdge"),o&&!l&&this.emit("reachEnd toEdge"),(s&&!i||l&&!o)&&this.emit("fromEdge"),this.emit("progress",r)},updateSlidesClasses:function(){let e,{slides:t,params:n,slidesEl:r,activeIndex:i}=this,o=this.virtual&&n.virtual.enabled,a=e=>(0,l.e)(r,`.${n.slideClass}${e}, swiper-slide${e}`)[0];if(t.forEach(e=>{e.classList.remove(n.slideActiveClass,n.slideNextClass,n.slidePrevClass)}),o)if(n.loop){let t=i-this.virtual.slidesBefore;t<0&&(t=this.virtual.slides.length+t),t>=this.virtual.slides.length&&(t-=this.virtual.slides.length),e=a(`[data-swiper-slide-index="${t}"]`)}else e=a(`[data-swiper-slide-index="${i}"]`);else e=t[i];if(e){e.classList.add(n.slideActiveClass);let r=(0,l.m)(e,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!r&&(r=t[0]),r&&r.classList.add(n.slideNextClass);let i=(0,l.o)(e,`.${n.slideClass}, swiper-slide`)[0];n.loop,i&&i.classList.add(n.slidePrevClass)}this.emitSlidesClasses()},updateActiveIndex:function(e){let t,n,r=this,i=r.rtlTranslate?r.translate:-r.translate,{snapGrid:o,params:a,activeIndex:s,realIndex:l,snapIndex:u}=r,c=e,d=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===c&&(c=function(e){let t,{slidesGrid:n,params:r}=e,i=e.rtlTranslate?e.translate:-e.translate;for(let e=0;e<n.length;e+=1)void 0!==n[e+1]?i>=n[e]&&i<n[e+1]-(n[e+1]-n[e])/2?t=e:i>=n[e]&&i<n[e+1]&&(t=e+1):i>=n[e]&&(t=e);return r.normalizeSlideIndex&&(t<0||void 0===t)&&(t=0),t}(r)),o.indexOf(i)>=0)t=o.indexOf(i);else{let e=Math.min(a.slidesPerGroupSkip,c);t=e+Math.floor((c-e)/a.slidesPerGroup)}if(t>=o.length&&(t=o.length-1),c===s){t!==u&&(r.snapIndex=t,r.emit("snapIndexChange")),r.params.loop&&r.virtual&&r.params.virtual.enabled&&(r.realIndex=d(c));return}n=r.virtual&&a.virtual.enabled&&a.loop?d(c):r.slides[c]?parseInt(r.slides[c].getAttribute("data-swiper-slide-index")||c,10):c,Object.assign(r,{previousSnapIndex:u,snapIndex:t,previousRealIndex:l,realIndex:n,previousIndex:s,activeIndex:c}),r.initialized&&h(r),r.emit("activeIndexChange"),r.emit("snapIndexChange"),(r.initialized||r.params.runCallbacksOnInit)&&(l!==n&&r.emit("realIndexChange"),r.emit("slideChange"))},updateClickedSlide:function(e,t){let n,r=this.params,i=e.closest(`.${r.slideClass}, swiper-slide`);!i&&this.isElement&&t&&t.length>
241&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!i&&e.matches&&e.matches(`.${r.slideClass}, swiper-slide`)&&(i=e)});let o=!1;if(i){for(let e=0;e<this.slides.length;e+=1)if(this.slides[e]===i){o=!0,n=e;break}}if(i&&o)this.clickedSlide=i,this.virtual&&this.params.virtual.enabled?this.clickedIndex=parseInt(i.getAttribute("data-swiper-slide-index"),10):this.clickedIndex=n;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){void 0===e&&(e=this.isHorizontal()?"x":"y");let{params:t,rtlTranslate:n,translate:r,wrapperEl:i}=this;if(t.virtualTranslate)return n?-r:r;if(t.cssMode)return r;let o=(0,l.h)(i,e);return o+=this.cssOverflowAdjustment(),n&&(o=-o),o||0},setTranslate:function(e,t){let n,{rtlTranslate:r,params:i,wrapperEl:o,progress:a}=this,s=0,l=0;this.isHorizontal()?s=r?-e:e:l=e,i.roundLengths&&(s=Math.floor(s),l=Math.floor(l)),this.previousTranslate=this.translate,this.translate=this.isHorizontal()?s:l,i.cssMode?o[this.isHorizontal()?"scrollLeft":"scrollTop"]=this.isHorizontal()?-s:-l:i.virtualTranslate||(this.isHorizontal()?s-=this.cssOverflowAdjustment():l-=this.cssOverflowAdjustment(),o.style.transform=`translate3d(${s}px, ${l}px, 0px)`);let u=this.maxTranslate()-this.minTranslate();(0===u?0:(e-this.minTranslate())/u)!==a&&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,t,n,r,i){let o;void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0),void 0===r&&(r=!0);let a=this,{params:s,wrapperEl:u}=a;if(a.animating&&s.preventInteractionOnTransition)return!1;let c=a.minTranslate(),d=a.maxTranslate();if(o=r&&e>c?c:r&&e<d?d:e,a.updateProgress(o),s.cssMode){let e=a.isHorizontal();if(0===t)u[e?"scrollLeft":"scrollTop"]=-o;else{if(!a.support.smoothScroll)return(0,l.p)({swiper:a,targetPosition:-o,side:e?"left":"top"}),!0;u.scrollTo({[e?"left":"top"]:-o,behavior:"smooth"})}return!0}return 0===t?(a.setTransition(0),a.setTranslate(o),n&&(a.emit("beforeTransitionStart",t,i),a.emit("transitionEnd"))):(a.setTransition(t),a.setTranslate(o),n&&(a.emit("beforeTransitionStart",t,i),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,n&&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,t){void 0===e&&(e=!0);let{params:n}=this;n.cssMode||(n.autoHeight&&this.updateAutoHeight(),p({swiper:this,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);let{params:n}=this;this.animating=!1,n.cssMode||(this.setTransition(0),p({swiper:this,runCallbacks:e,direction:t,step:"End"}))}},slide:{slideTo:function(e,t,n,r,i){let o;void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0),"string"==typeof e&&(e=parseInt(e,10));let a=this,s=e;s<0&&(s=0);let{params:u,snapGrid:c,slidesGrid:d,previousIndex:h,activeIndex:p,rtlTranslate:f,wrapperEl:m,enabled:g}=a;if(a.animating&&u.preventInteractionOnTransition||!g&&!r&&!i)return!1;let v=Math.min(a.params.slidesPerGroupSkip,s),y=v+Math.floor((s-v)/a.params.slidesPerGroup);y>=c.length&&(y=c.length-1);let b=-c[y];if(u.normalizeSlideIndex)for(let e=0;e<d.length;e+=1){let t=-Math.floor(100*b),n=Math.floor(100*d[e]),r=Math.floor(100*d[e+1]);void 0!==d[e+1]?t>=n&&t<r-(r-n)/2?s=e:t>=n&&t<r&&(s=e+1):t>=n&&(s=e)}if(a.initialized&&s!==p&&(!a.allowSlideNext&&(f?b>a.translate&&b>a.minTranslate():b<a.translate&&b<a.minTranslate())||!a.allowSlidePrev&&b>a.translate&&b>a.maxTranslate()&&(p||0)!==s))return!1;if(s!==(h||0)&&n&&a.emit("beforeSlideChangeStart"),a.updateProgress(b),o=s>p?"next":s<p?"prev":"reset",f&&-b===a.translate||!f&&b===a.translate)return a.updateActiveIndex(s),u.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),"slide"!==u.effect&&a.setTranslate(b),"reset"!==o&&(a.transitionStart(n,o),a.transitionEnd(n,o)),!1;if(u.cssMode){let e=a.isHorizontal(),n=f?b:-b;if(0===t){let t=a.virtual&&a.params.virtual.enabled;t&&(a.wrapperEl.style.scrollSnapType="none",a._immediateVirtual=!0),t&&!a._cssModeVirtualInitialSet&&a.params.initialSlide>0?(a._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{m[e?"scrollLeft":"scrollTop"]=n})):m[e?"scrollLeft":"scrollTop"]=n,t&&requestAnimationFrame(()=>{a.wrapperEl.style.scrollSnapType="",a._immediateVirtual=!1})}else{if(!a.support.smoothScroll)return(0,l.p)({swiper:a,targetPosition:n,side:e?"left"
24:"top"}),!0;m.scrollTo({[e?"left":"top"]:n,behavior:"smooth"})}return!0}return a.setTransition(t),a.setTranslate(b),a.updateActiveIndex(s),a.updateSlidesClasses(),a.emit("beforeTransitionStart",t,r),a.transitionStart(n,o),0===t?a.transitionEnd(n,o):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(n,o))}),a.wrapperEl.addEventListener("transitionend",a.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,n,r){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0),"string"==typeof e&&(e=parseInt(e,10));let i=e;return this.params.loop&&(this.virtual&&this.params.virtual.enabled?i+=this.virtual.slidesBefore:i=this.getSlideIndexByData(i)),this.slideTo(i,t,n,r)},slideNext:function(e,t,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);let r=this,{enabled:i,params:o,animating:a}=r;if(!i)return r;let s=o.slidesPerGroup;"auto"===o.slidesPerView&&1===o.slidesPerGroup&&o.slidesPerGroupAuto&&(s=Math.max(r.slidesPerViewDynamic("current",!0),1));let l=r.activeIndex<o.slidesPerGroupSkip?1:s,u=r.virtual&&o.virtual.enabled;if(o.loop){if(a&&!u&&o.loopPreventsSliding)return!1;if(r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft,r.activeIndex===r.slides.length-1&&o.cssMode)return requestAnimationFrame(()=>{r.slideTo(r.activeIndex+l,e,t,n)}),!0}return o.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+l,e,t,n)},slidePrev:function(e,t,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);let r=this,{params:i,snapGrid:o,slidesGrid:a,rtlTranslate:s,enabled:l,animating:u}=r;if(!l)return r;let c=r.virtual&&i.virtual.enabled;if(i.loop){if(u&&!c&&i.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}function d(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}let h=d(s?r.translate:-r.translate),p=o.map(e=>d(e)),f=o[p.indexOf(h)-1];if(void 0===f&&i.cssMode){let e;o.forEach((t,n)=>{h>=t&&(e=n)}),void 0!==e&&(f=o[e>0?e-1:e])}let m=0;if(void 0!==f&&((m=a.indexOf(f))<0&&(m=r.activeIndex-1),"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(m=Math.max(m=m-r.slidesPerViewDynamic("previous",!0)+1,0))),i.rewind&&r.isBeginning){let i=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(i,e,t,n)}return i.loop&&0===r.activeIndex&&i.cssMode?(requestAnimationFrame(()=>{r.slideTo(m,e,t,n)}),!0):r.slideTo(m,e,t,n)},slideReset:function(e,t,n){return void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),this.slideTo(this.activeIndex,e,t,n)},slideToClosest:function(e,t,n,r){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===r&&(r=.5);let i=this.activeIndex,o=Math.min(this.params.slidesPerGroupSkip,i),a=o+Math.floor((i-o)/this.params.slidesPerGroup),s=this.rtlTranslate?this.translate:-this.translate;if(s>=this.snapGrid[a]){let e=this.snapGrid[a];s-e>(this.snapGrid[a+1]-e)*r&&(i+=this.params.slidesPerGroup)}else{let e=this.snapGrid[a-1];s-e<=(this.snapGrid[a]-e)*r&&(i-=this.params.slidesPerGroup)}return i=Math.min(i=Math.max(i,0),this.slidesGrid.length-1),this.slideTo(i,e,t,n)},slideToClickedSlide:function(){let e,t=this,{params:n,slidesEl:r}=t,i="auto"===n.slidesPerView?t.slidesPerViewDynamic():n.slidesPerView,o=t.clickedIndex,a=t.isElement?"swiper-slide":`.${n.slideClass}`;if(n.loop){if(t.animating)return;e=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),n.centeredSlides?o<t.loopedSlides-i/2||o>t.slides.length-t.loopedSlides+i/2?(t.loopFix(),o=t.getSlideIndex((0,l.e)(r,`${a}[data-swiper-slide-index="${e}"]`)[0]),(0,l.n)(()=>{t.slideTo(o)})):t.slideTo(o):o>t.slides.length-i?(t.loopFix(),o=t.getSlideIndex((0,l.e)(r,`${a}[data-swiper-slide-index="${e}"]`)[0]),(0,l.n)(()=>{t.slideTo(o)})):t.slideTo(o)}else t.slideTo(o)}},loop:{loopCreate:function(e){let{params:t,slidesEl:n}=this;!t.loop||this.virtual&&this.params.virtual.enabled||((0,l.e)(n,`.${t.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t)}),this.loopFix({slideRealIndex:e,direction:t.centeredSlides?void 0:"next"}))},loopFix:function(e){let{slideRealIndex:t,slideTo:n=!0,direction:r,setTranslate:i,activeSlideIndex:o,b
24yController:a,byMousewheel:s}=void 0===e?{}:e,l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");let{slides:u,allowSlidePrev:c,allowSlideNext:d,slidesEl:h,params:p}=l;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&p.virtual.enabled){n&&(p.centeredSlides||0!==l.snapIndex?p.centeredSlides&&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=c,l.allowSlideNext=d,l.emit("loopFix");return}let f="auto"===p.slidesPerView?l.slidesPerViewDynamic():Math.ceil(parseFloat(p.slidesPerView,10)),m=p.loopedSlides||f;m%p.slidesPerGroup!=0&&(m+=p.slidesPerGroup-m%p.slidesPerGroup),l.loopedSlides=m;let g=[],v=[],y=l.activeIndex;void 0===o?o=l.getSlideIndex(l.slides.filter(e=>e.classList.contains(p.slideActiveClass))[0]):y=o;let b="next"===r||!r,w="prev"===r||!r,S=0,x=0;if(o<m){S=Math.max(m-o,p.slidesPerGroup);for(let e=0;e<m-o;e+=1){let t=e-Math.floor(e/u.length)*u.length;g.push(u.length-t-1)}}else if(o>l.slides.length-2*m){x=Math.max(o-(l.slides.length-2*m),p.slidesPerGroup);for(let e=0;e<x;e+=1){let t=e-Math.floor(e/u.length)*u.length;v.push(t)}}if(w&&g.forEach(e=>{l.slides[e].swiperLoopMoveDOM=!0,h.prepend(l.slides[e]),l.slides[e].swiperLoopMoveDOM=!1}),b&&v.forEach(e=>{l.slides[e].swiperLoopMoveDOM=!0,h.append(l.slides[e]),l.slides[e].swiperLoopMoveDOM=!1}),l.recalcSlides(),"auto"===p.slidesPerView&&l.updateSlides(),p.watchSlidesProgress&&l.updateSlidesOffset(),n){if(g.length>0&&w)if(void 0===t){let e=l.slidesGrid[y],t=l.slidesGrid[y+S]-e;s?l.setTranslate(l.translate-t):(l.slideTo(y+S,0,!1,!0),i&&(l.touches[l.isHorizontal()?"startX":"startY"]+=t,l.touchEventsData.currentTranslate=l.translate))}else i&&(l.slideToLoop(t,0,!1,!0),l.touchEventsData.currentTranslate=l.translate);else if(v.length>0&&b)if(void 0===t){let e=l.slidesGrid[y],t=l.slidesGrid[y-x]-e;s?l.setTranslate(l.translate-t):(l.slideTo(y-x,0,!1,!0),i&&(l.touches[l.isHorizontal()?"startX":"startY"]+=t,l.touchEventsData.currentTranslate=l.translate))}else l.slideToLoop(t,0,!1,!0)}if(l.allowSlidePrev=c,l.allowSlideNext=d,l.controller&&l.controller.control&&!a){let e={slideRealIndex:t,direction:r,setTranslate:i,activeSlideIndex:o,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===p.slidesPerView&&n})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...e,slideTo:l.controller.control.params.slidesPerView===p.slidesPerView&&n})}l.emit("loopFix")},loopDestroy:function(){let{params:e,slidesEl:t}=this;if(!e.loop||this.virtual&&this.params.virtual.enabled)return;this.recalcSlides();let n=[];this.slides.forEach(e=>{n[void 0===e.swiperSlideIndex?+e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex]=e}),this.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),n.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 n="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})},unsetGrabCursor:function(){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 e=(0,s.g)(),{params:t}=this;this.onTouchStart=f.bind(this),this.onTouchMove=m.bind(this),this.onTouchEnd=g.bind(this),t.cssMode&&(this.onScroll=b.bind(this)),this.onClick=y.bind(this),this.onLoad=w.bind(this),S||(e.addEventListener("touchstart",x),S=!0),A(this,"on")},detachEvents:function(){A(this,"off")}},breakpoints:{setBreakpoint:function(){let e=this,{realIndex:t,initialized:n,params:r,el:i}=e,o=r.breakpoints;if(!o||o&&0===Object.keys(o).length)return;
24let a=e.getBreakpoint(o,e.params.breakpointsBase,e.el);if(!a||e.currentBreakpoint===a)return;let s=(a in o?o[a]:void 0)||e.originalParams,u=k(e,r),c=k(e,s),d=r.enabled;u&&!c?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!u&&c&&(i.classList.add(`${r.containerModifierClass}grid`),(s.grid.fill&&"column"===s.grid.fill||!s.grid.fill&&"column"===r.grid.fill)&&i.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(t=>{if(void 0===s[t])return;let n=r[t]&&r[t].enabled,i=s[t]&&s[t].enabled;n&&!i&&e[t].disable(),!n&&i&&e[t].enable()});let h=s.direction&&s.direction!==r.direction,p=r.loop&&(s.slidesPerView!==r.slidesPerView||h),f=r.loop;h&&n&&e.changeDirection(),(0,l.q)(e.params,s);let m=e.params.enabled,g=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),d&&!m?e.disable():!d&&m&&e.enable(),e.currentBreakpoint=a,e.emit("_beforeBreakpoint",s),n&&(p?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!f&&g?(e.loopCreate(t),e.updateSlides()):f&&!g&&e.loopDestroy()),e.emit("breakpoint",s)},getBreakpoint:function(e,t,n){if(void 0===t&&(t="window"),!e||"container"===t&&!n)return;let r=!1,i=(0,s.a)(),o="window"===t?i.innerHeight:n.clientHeight,a=Object.keys(e).map(e=>"string"==typeof e&&0===e.indexOf("@")?{value:o*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:o,value:s}=a[e];"window"===t?i.matchMedia(`(min-width: ${s}px)`).matches&&(r=o):s<=n.clientWidth&&(r=o)}return r||"max"}},checkOverflow:{checkOverflow:function(){let{isLocked:e,params:t}=this,{slidesOffsetBefore:n}=t;if(n){let e=this.slides.length-1,t=this.slidesGrid[e]+this.slidesSizesGrid[e]+2*n;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(this.isLocked?"lock":"unlock")}},classes:{addClasses:function(){let{classNames:e,params:t,rtl:n,el:r,device:i}=this,o=function(e,t){let n=[];return e.forEach(e=>{"object"==typeof e?Object.keys(e).forEach(r=>{e[r]&&n.push(t+r)}):"string"==typeof e&&n.push(t+e)}),n}(["initialized",t.direction,{"free-mode":this.params.freeMode&&t.freeMode.enabled},{autoheight:t.autoHeight},{rtl:n},{grid:t.grid&&t.grid.rows>1},{"grid-column":t.grid&&t.grid.rows>1&&"column"===t.grid.fill},{android:i.android},{ios:i.ios},{"css-mode":t.cssMode},{centered:t.cssMode&&t.centeredSlides},{"watch-progress":t.watchSlidesProgress}],t.containerModifierClass);e.push(...o),r.classList.add(...e),this.emitContainerClasses()},removeClasses:function(){let{el:e,classNames:t}=this;e.classList.remove(...t),this.emitContainerClasses()}}},T={};class _{constructor(){let e,t;for(var n=arguments.length,r=Array(n),a=0;a<n;a++)r[a]=arguments[a];1===r.length&&r[0].constructor&&"Object"===Object.prototype.toString.call(r[0]).slice(8,-1)?t=r[0]:[e,t]=r,t||(t={}),t=(0,l.q)({},t),e&&!t.el&&(t.el=e);let c=(0,s.g)();if(t.el&&"string"==typeof t.el&&c.querySelectorAll(t.el).length>1){let e=[];return c.querySelectorAll(t.el).forEach(n=>{let r=(0,l.q)({},t,{el:n});e.push(new _(r))}),e}let d=this;d.__swiper__=!0,d.support=u(),d.device=function(e){return void 0===e&&(e={}),i||(i=function(e){let{userAgent:t}=void 0===e?{}:e,n=u(),r=(0,s.a)(),i=r.navigator.platform,o=t||r.navigator.userAgent,a={ios:!1,android:!1},l=r.screen.width,c=r.screen.height,d=o.match(/(Android);?[\s\/]+([\d.]+)?/),h=o.match(/(iPad).*OS\s([\d_]+)/),p=o.match(/(iPod)(.*OS\s([\d_]+))?/),f=!h&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m="MacIntel"===i;return!h&&m&&n.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${l}x${c}`)>=0&&((h=o.match(/(Version)\/([\d.]+)/))||(h=[0,1,"13_0_0"]),m=!1),d&&"Win32"!==i&&(a.os="android",a.android=!0),(h||f||p)&&(a.os="ios",a.ios=!0),a}(e)),i}({userAgent:t.userAgent}),o||(o=function(){let e=(0,s.a)(),t=!1;function n(){let t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&0>t.indexOf("chrome")&&0>t.indexOf("android")}if(n()){let n=String(e.navigator.userAgent);if(n.includes("Version/")){let[e,r]=n.split("Version/")[1].split(" ")[0].split(".").map(e=>Number(e));t=e<16||16===e&&r<2}}return{isSafari:t||n(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWeb
24Kit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),d.browser=o,d.eventsListeners={},d.eventsAnyListeners=[],d.modules=[...d.__modules__],t.modules&&Array.isArray(t.modules)&&d.modules.push(...t.modules);let h={};d.modules.forEach(e=>{e({params:t,swiper:d,extendParams:function(e,t){return function(n){void 0===n&&(n={});let r=Object.keys(n)[0],i=n[r];return"object"!=typeof i||null===i?void(0,l.q)(t,n):(!0===e[r]&&(e[r]={enabled:!0}),"navigation"===r&&e[r]&&e[r].enabled&&!e[r].prevEl&&!e[r].nextEl&&(e[r].auto=!0),["pagination","scrollbar"].indexOf(r)>=0&&e[r]&&e[r].enabled&&!e[r].el&&(e[r].auto=!0),r in e&&"enabled"in i)?void("object"==typeof e[r]&&!("enabled"in e[r])&&(e[r].enabled=!0),!e[r]&&(e[r]={enabled:!1}),(0,l.q)(t,n)):void(0,l.q)(t,n)}}(t,h),on:d.on.bind(d),once:d.once.bind(d),off:d.off.bind(d),emit:d.emit.bind(d)})});let p=(0,l.q)({},E,h);return d.params=(0,l.q)({},p,T,t),d.originalParams=(0,l.q)({},d.params),d.passedParams=(0,l.q)({},t),d.params&&d.params.on&&Object.keys(d.params.on).forEach(e=>{d.on(e,d.params.on[e])}),d.params&&d.params.onAny&&d.onAny(d.params.onAny),Object.assign(d,{enabled:d.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===d.params.direction,isVertical:()=>"vertical"===d.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:d.params.allowSlideNext,allowSlidePrev:d.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:d.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:d.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),d.emit("_swiper"),d.params.init&&d.init(),d}getSlideIndex(e){let{slidesEl:t,params:n}=this,r=(0,l.e)(t,`.${n.slideClass}, swiper-slide`),i=(0,l.g)(r[0]);return(0,l.g)(e)-i}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(t=>+t.getAttribute("data-swiper-slide-index")===e)[0])}recalcSlides(){let{slidesEl:e,params:t}=this;this.slides=(0,l.e)(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 n=this.minTranslate(),r=(this.maxTranslate()-n)*e+n;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(n=>{let r=e.getSlideClasses(n);t.push({slideEl:n,classNames:r}),e.emit("_slideClass",n,r)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);let{params:n,slides:r,slidesGrid:i,slidesSizesGrid:o,size:a,activeIndex:s}=this,l=1;if("number"==typeof n.slidesPerView)return n.slidesPerView;if(n.centeredSlides){let e,t=r[s]?r[s].swiperSlideSize:0;for(let n=s+1;n<r.length;n+=1)r[n]&&!e&&(t+=r[n].swiperSlideSize,l+=1,t>a&&(e=!0));for(let n=s-1;n>=0;n-=1)r[n]&&!e&&(t+=r[n].swiperSlideSize,l+=1,t>a&&(e=!0))}else if("current"===e)for(let e=s+1;e<r.length;e+=1)(t?i[e]+o[e]-i[s]<a:i[e]-i[s]<a)&&(l+=1);else for(let e=s-1;e>=0;e-=1)i[s]-i[e]<a&&(l+=1);return l}update(){let e,t=this;if(!t||t.destroyed)return;let{snapGrid:n,params:r}=t;function i(){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"]')].forEac
24h(e=>{e.complete&&c(t,e)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),r.freeMode&&r.freeMode.enabled&&!r.cssMode)i(),r.autoHeight&&t.updateAutoHeight();else{if(("auto"===r.slidesPerView||r.slidesPerView>1)&&t.isEnd&&!r.centeredSlides){let n=t.virtual&&r.virtual.enabled?t.virtual.slides:t.slides;e=t.slideTo(n.length-1,0,!1,!0)}else e=t.slideTo(t.activeIndex,0,!1,!0);e||i()}r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);let n=this.params.direction;return e||(e="horizontal"===n?"vertical":"horizontal"),e===n||"horizontal"!==e&&"vertical"!==e||(this.el.classList.remove(`${this.params.containerModifierClass}${n}`),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 n=e||t.params.el;if("string"==typeof n&&(n=document.querySelector(n)),!n)return!1;n.swiper=t,n.parentNode&&n.parentNode.host&&"SWIPER-CONTAINER"===n.parentNode.host.nodeName&&(t.isElement=!0);let r=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`,i=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(r()):(0,l.e)(n,r())[0];return!i&&t.params.createElements&&(i=(0,l.c)("div",t.params.wrapperClass),n.append(i),(0,l.e)(n,`.${t.params.slideClass}`).forEach(e=>{i.append(e)})),Object.assign(t,{el:n,wrapperEl:i,slidesEl:t.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:i,hostEl:t.isElement?n.parentNode.host:n,mounted:!0,rtl:"rtl"===n.dir.toLowerCase()||"rtl"===(0,l.l)(n,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===n.dir.toLowerCase()||"rtl"===(0,l.l)(n,"direction")),wrongRTL:"-webkit-box"===(0,l.l)(i,"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(),t.attachEvents();let n=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&n.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach(e=>{e.complete?c(t,e):e.addEventListener("load",e=>{c(t,e.target)})}),h(t),t.initialized=!0,h(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);let n=this,{params:r,el:i,wrapperEl:o,slides:a}=n;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),t&&(n.removeClasses(),i.removeAttribute("style"),o.removeAttribute("style"),a&&a.length&&a.forEach(e=>{e.classList.remove(r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(e=>{n.off(e)}),!1!==e&&(n.el.swiper=null,(0,l.r)(n)),n.destroyed=!0),null}static extendDefaults(e){(0,l.q)(T,e)}static get extendedDefaults(){return T}static get defaults(){return E}static installModule(e){_.prototype.__modules__||(_.prototype.__modules__=[]);let t=_.prototype.__modules__;"function"==typeof e&&0>t.indexOf(e)&&t.push(e)}static use(e){return Array.isArray(e)?e.forEach(e=>_.installModule(e)):_.installModule(e),_}}Object.keys(C).forEach(e=>{Object.keys(C[e]).forEach(t=>{_.prototype[t]=C[e][t]})}),_.use([function(e){let{swiper:t,on:n,emit:r}=e,i=(0,s.a)(),o=null,a=null,l=()=>{t&&!t.destroyed&&t.initialized&&(r("beforeResize"),r("resize"))},u=()=>{t&&!t.destroyed&&t.initialized&&(o=new ResizeObserver(e=>{a=i.requestAnimationFrame(()=>{let{width:n,height:r}=t,i=n,o=r;
24e.forEach(e=>{let{contentBoxSize:n,contentRect:r,target:a}=e;a&&a!==t.el||(i=r?r.width:(n[0]||n).inlineSize,o=r?r.height:(n[0]||n).blockSize)}),(i!==n||o!==r)&&l()})})).observe(t.el)},c=()=>{a&&i.cancelAnimationFrame(a),o&&o.unobserve&&t.el&&(o.unobserve(t.el),o=null)},d=()=>{t&&!t.destroyed&&t.initialized&&r("orientationchange")};n("init",()=>{if(t.params.resizeObserver&&void 0!==i.ResizeObserver)return void u();i.addEventListener("resize",l),i.addEventListener("orientationchange",d)}),n("destroy",()=>{c(),i.removeEventListener("resize",l),i.removeEventListener("orientationchange",d)})},function(e){let{swiper:t,extendParams:n,on:r,emit:i}=e,o=[],a=(0,s.a)(),u=function(e,n){void 0===n&&(n={});let r=new(a.MutationObserver||a.WebkitMutationObserver)(e=>{if(t.__preventObserver__)return;if(1===e.length)return void i("observerUpdate",e[0]);let n=function(){i("observerUpdate",e[0])};a.requestAnimationFrame?a.requestAnimationFrame(n):a.setTimeout(n,0)});r.observe(e,{attributes:void 0===n.attributes||n.attributes,childList:void 0===n.childList||n.childList,characterData:void 0===n.characterData||n.characterData}),o.push(r)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",()=>{if(t.params.observer){if(t.params.observeParents){let e=(0,l.a)(t.hostEl);for(let t=0;t<e.length;t+=1)u(e[t])}u(t.hostEl,{childList:t.params.observeSlideChildren}),u(t.wrapperEl,{attributes:!1})}}),r("destroy",()=>{o.forEach(e=>{e.disconnect()}),o.splice(0,o.length)})}]);let P=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","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","_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","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","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 M(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)&&!e.__swiper__}function I(e,t){let n=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>0>n.indexOf(e)).forEach(n=>{void 0===e[n]?e[n]=t[n]:M(t[n])&&M(e[n])&&Object.keys(t[n]).length>0?t[n].__swiper__?e[n]=t[n]:I(e[n],t[n]):e[n]=t[n]})}function O(e){return void 0===e&&(e={}),e.navigation&&void 0===e.navigation.nextEl&&void 0===e.navigation.prevEl}function R(e){return void 0===e&&(e={}),e.pagination&&void 0===e.pagination.el}function D(e){return void 0===e&&(e={}),e.scrollbar&&void 0===e.scrollbar.el}function L(e){void 0===e&&(e="");let t=e.split(" ").map(e=>e.trim()).filter(e=>!!e),n=[];return t.forEach(e=>{0>n.indexOf(e)&&n.push(e)}),n.join(" ")}let j=e=>{e&&!e.destroyed&&e.params.virtual&&(!e.params.virtual||e.params.virtual.enabled)&&(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function U(){return(U=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function N(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function F(e,t){return"undefined"==typeof window?(0,a.useEffect)(e,t):(0,a.useLayoutEffect)(e,t)}let B=(0,a.createContext)(null),z=(0,a.createContext)(null),$=(0,a.forwardRef)(function(e,t){var n;let{className:r,tag:i="div",wrapperTag:o="div",children:s,onSwiper:l,...u}=void 0===e?{}:e,c=!1,[d,h]=(0,a.useState)("swiper"),[p,f]=(0,a.useState)(null),[m,g]=(0,a.useState)(!1),v=(0,a.useRef)(!1),y=(0,a.useRef)(null),b=(0,a.useRef)(null),w=(0,a.useRef)(null),S=(0,a.useRef)(null),x=(0,a.useRef)(null),A=(0,a.useRef)(null),k=(0,a.useRef)(null),C=(0,a.useRef)(null),{params:T,passedParams:B,rest:$,events:V}=function(e,t){void 0===e&&(e={}),void 0===t&&(t=!0);let n={on:{}},r={},i={};I(n,E),n._emitClasses=!0,n.init=!1;let o={},a=P.map(e=>e.replace(/_/,""));return Object.keys(Object.assign({}
24,e)).forEach(s=>{void 0!==e[s]&&(a.indexOf(s)>=0?M(e[s])?(n[s]={},i[s]={},I(n[s],e[s]),I(i[s],e[s])):(n[s]=e[s],i[s]=e[s]):0===s.search(/on[A-Z]/)&&"function"==typeof e[s]?t?r[`${s[2].toLowerCase()}${s.substr(3)}`]=e[s]:n.on[`${s[2].toLowerCase()}${s.substr(3)}`]=e[s]:o[s]=e[s])}),["navigation","pagination","scrollbar"].forEach(e=>{!0===n[e]&&(n[e]={}),!1===n[e]&&delete n[e]}),{params:n,passedParams:i,rest:o,events:r}}(u),{slides:H,slots:W}=function(e){let t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return a.Children.toArray(e).forEach(e=>{if(N(e))t.push(e);else if(e.props&&e.props.slot&&n[e.props.slot])n[e.props.slot].push(e);else if(e.props&&e.props.children){let r=function e(t){let n=[];return a.Children.toArray(t).forEach(t=>{N(t)?n.push(t):t.props&&t.props.children&&e(t.props.children).forEach(e=>n.push(e))}),n}(e.props.children);r.length>0?r.forEach(e=>t.push(e)):n["container-end"].push(e)}else n["container-end"].push(e)}),{slides:t,slots:n}}(s),G=()=>{g(!m)};Object.assign(T.on,{_containerClasses(e,t){h(t)}});let q=()=>{Object.assign(T.on,V),c=!0;let e={...T};if(delete e.wrapperClass,b.current=new _(e),b.current.virtual&&b.current.params.virtual.enabled){b.current.virtual.slides=H;let e={cache:!1,slides:H,renderExternal:f,renderExternalUpdate:!1};I(b.current.params.virtual,e),I(b.current.originalParams.virtual,e)}};y.current||q(),b.current&&b.current.on("_beforeBreakpoint",G);let Y=()=>{!c&&V&&b.current&&Object.keys(V).forEach(e=>{b.current.on(e,V[e])})},K=()=>{V&&b.current&&Object.keys(V).forEach(e=>{b.current.off(e,V[e])})};return(0,a.useEffect)(()=>()=>{b.current&&b.current.off("_beforeBreakpoint",G)}),(0,a.useEffect)(()=>{!v.current&&b.current&&(b.current.emitSlidesClasses(),v.current=!0)}),F(()=>{if(t&&(t.current=y.current),y.current)return b.current.destroyed&&q(),!function(e,t){let{el:n,nextEl:r,prevEl:i,paginationEl:o,scrollbarEl:a,swiper:s}=e;O(t)&&r&&i&&(s.params.navigation.nextEl=r,s.originalParams.navigation.nextEl=r,s.params.navigation.prevEl=i,s.originalParams.navigation.prevEl=i),R(t)&&o&&(s.params.pagination.el=o,s.originalParams.pagination.el=o),D(t)&&a&&(s.params.scrollbar.el=a,s.originalParams.scrollbar.el=a),s.init(n)}({el:y.current,nextEl:x.current,prevEl:A.current,paginationEl:k.current,scrollbarEl:C.current,swiper:b.current},T),l&&l(b.current),()=>{b.current&&!b.current.destroyed&&b.current.destroy(!0,!1)}},[]),F(()=>{Y();let e=function(e,t,n,r,i){let o=[];if(!t)return o;let a=e=>{0>o.indexOf(e)&&o.push(e)};if(n&&r){let e=r.map(i),t=n.map(i);e.join("")!==t.join("")&&a("children"),r.length!==n.length&&a("children")}return P.filter(e=>"_"===e[0]).map(e=>e.replace(/_/,"")).forEach(n=>{if(n in e&&n in t)if(M(e[n])&&M(t[n])){let r=Object.keys(e[n]),i=Object.keys(t[n]);r.length!==i.length?a(n):(r.forEach(r=>{e[n][r]!==t[n][r]&&a(n)}
24),i.forEach(r=>{e[n][r]!==t[n][r]&&a(n)}))}else e[n]!==t[n]&&a(n)}),o}(B,w.current,H,S.current,e=>e.key);return w.current=B,S.current=H,e.length&&b.current&&!b.current.destroyed&&function(e){let t,n,r,i,o,a,s,l,{swiper:u,slides:c,passedParams:d,changedParams:h,nextEl:p,prevEl:f,scrollbarEl:m,paginationEl:g}=e,v=h.filter(e=>"children"!==e&&"direction"!==e&&"wrapperClass"!==e),{params:y,pagination:b,navigation:w,scrollbar:S,virtual:x,thumbs:A}=u;h.includes("thumbs")&&d.thumbs&&d.thumbs.swiper&&y.thumbs&&!y.thumbs.swiper&&(t=!0),h.includes("controller")&&d.controller&&d.controller.control&&y.controller&&!y.controller.control&&(n=!0),h.includes("pagination")&&d.pagination&&(d.pagination.el||g)&&(y.pagination||!1===y.pagination)&&b&&!b.el&&(r=!0),h.includes("scrollbar")&&d.scrollbar&&(d.scrollbar.el||m)&&(y.scrollbar||!1===y.scrollbar)&&S&&!S.el&&(i=!0),h.includes("navigation")&&d.navigation&&(d.navigation.prevEl||f)&&(d.navigation.nextEl||p)&&(y.navigation||!1===y.navigation)&&w&&!w.prevEl&&!w.nextEl&&(o=!0);let k=e=>{u[e]&&(u[e].destroy(),"navigation"===e?(u.isElement&&(u[e].prevEl.remove(),u[e].nextEl.remove()),y[e].prevEl=void 0,y[e].nextEl=void 0,u[e].prevEl=void 0,u[e].nextEl=void 0):(u.isElement&&u[e].el.remove(),y[e].el=void 0,u[e].el=void 0))};h.includes("loop")&&u.isElement&&(y.loop&&!d.loop?a=!0:!y.loop&&d.loop?s=!0:l=!0),v.forEach(e=>{if(M(y[e])&&M(d[e]))I(y[e],d[e]),("navigation"===e||"pagination"===e||"scrollbar"===e)&&"enabled"in d[e]&&!d[e].enabled&&k(e);else{let t=d[e];(!0===t||!1===t)&&("navigation"===e||"pagination"===e||"scrollbar"===e)?!1===t&&k(e):y[e]=d[e]}}),v.includes("controller")&&!n&&u.controller&&u.controller.control&&y.controller&&y.controller.control&&(u.controller.control=y.controller.control),h.includes("children")&&c&&x&&y.virtual.enabled&&(x.slides=c,x.update(!0)),h.includes("children")&&c&&y.loop&&(l=!0),t&&A.init()&&A.update(!0),n&&(u.controller.control=y.controller.control),r&&(u.isElement&&(!g||"string"==typeof g)&&((g=document.createElement("div")).classList.add("swiper-pagination"),g.part.add("pagination"),u.el.appendChild(g)),g&&(y.pagination.el=g),b.init(),b.render(),b.update()),i&&(u.isElement&&(!m||"string"==typeof m)&&((m=document.createElement("div")).classList.add("swiper-scrollbar"),m.part.add("scrollbar"),u.el.appendChild(m)),m&&(y.scrollbar.el=m),S.init(),S.updateSize(),S.setTranslate()),o&&(u.isElement&&(p&&"string"!=typeof p||((p=document.createElement("div")).classList.add("swiper-button-next"),p.innerHTML=u.hostEl.constructor.nextButtonSvg,p.part.add("button-next"),u.el.appendChild(p)),f&&"string"!=typeof f||((f=document.createElement("div")).classList.add("swiper-button-prev"),f.innerHTML=u.hostEl.constructor.prevButtonSvg,f.part.add("button-prev"),u.el.appendChild(f))),p&&(y.navigation.nextEl=p),f&&(y.navigation.prevEl=f),w.init(),w.update()),h.includes("allowSlideNext")&&(u.allowSlideNext=d.allowSlideNext),h.includes("allowSlidePrev")&&(u.allowSlidePrev=d.allowSlidePrev),h.includes("direction")&&u.changeDirection(d.direction,!1),(a||l)&&u.loopDestroy(),(s||l)&&u.loopCreate(),u.update()}({swiper:b.current,slides:H,passedParams:B,changedParams:e,nextEl:x.current,prevEl:A.current,scrollbarEl:C.current,paginationEl:k.current}),()=>{K()}}),F(()=>{j(b.current)},[p]),a.createElement(i,U({ref:y,className:L(`${d}${r?` ${r}`:""}`)},$),a.createElement(z.Provider,{value:b.current},W["container-start"],a.createElement(o,{className:(void 0===(n=T.wrapperClass)&&(n=""),n)?n.includes("swiper-wrapper")?n:`swiper-wrapper ${n}`:"swiper-wrapper"},W["wrapper-start"],T.virtual?function(e,t,n){if(!n)return null;let r=e=>{let n=e;return e<0?n=t.length+e:n>=t.length&&(n-=t.length),n},i=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:o,to:s}=n,l=e.params.loop?-t.length:0,u=e.params.loop?2*t.length:t.length,c=[];for(let e=l;e<u;e+=1)e>=o&&e<=s&&c.push(t[r(e)]);return c.map((t,n)=>a.cloneElement(t,{swiper:e,style:i,key:`slide-${n}`}))}(b.current,H,p):H.map((e,t)=>a.cloneElement(e,{swiper:b.current,swiperSlideIndex:t})),W["wrapper-end"]),O(T)&&a.createElement(a.Fragment,null,a.createElement("div",{ref:A,className:"swiper-button-prev"}),a.createElement("div",{ref:x,className:"swiper-button-next"})),D(T)&&a.createElement("div",{ref:C,className:"swiper-scrollbar"}),R(T)&&a.createElement("div",{ref:k,className:"swiper-pagination"}),W["container-end"]))});$.displayName="Swiper";let V=(0,a.forwardRef)(function(e,t){let{tag:n="div",children:r,className:i="",swiper:o,zoom:s,lazy:l,virtualIndex:u,swiperSlideIndex:c,...d}=void 0===e?{}:e,h=(0,a.useRef)(null),[p,f]=(0,a.useState)("swiper-slide"),[m,g]=(0,a.useState)(!1);function v(e,t,n){t===h.current&&f(n)}F(()=>
24{if(void 0!==c&&(h.current.swiperSlideIndex=c),t&&(t.current=h.current),h.current&&o){if(o.destroyed){"swiper-slide"!==p&&f("swiper-slide");return}return o.on("_slideClass",v),()=>{o&&o.off("_slideClass",v)}}}),F(()=>{o&&h.current&&!o.destroyed&&f(o.getSlideClasses(h.current))},[o]);let y={isActive:p.indexOf("swiper-slide-active")>=0,isVisible:p.indexOf("swiper-slide-visible")>=0,isPrev:p.indexOf("swiper-slide-prev")>=0,isNext:p.indexOf("swiper-slide-next")>=0},b=()=>"function"==typeof r?r(y):r;return a.createElement(n,U({ref:h,className:L(`${p}${i?` ${i}`:""}`),"data-swiper-slide-index":u,onLoad:()=>{g(!0)}},d),s&&a.createElement(B.Provider,{value:y},a.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":"number"==typeof s?s:void 0},b(),l&&!m&&a.createElement("div",{className:"swiper-lazy-preloader"}))),!s&&a.createElement(B.Provider,{value:y},b(),l&&!m&&a.createElement("div",{className:"swiper-lazy-preloader"})))});V.displayName="SwiperSlide"},56752:(e,t,n)=>{"use strict";let r,i;n.d(t,{F9:()=>l,JK:()=>d,S$:()=>u,fQ:()=>m});let o=["it"],a="PARAGLIDE_LOCALE",s=["cookie","globalVariable","baseLocale"],l=!1,u=!1;globalThis.__paraglide={};let c=!1,d=()=>{var e;let t;if(i){let t=null==i||null==(e=i.getStore())?void 0:e.locale;if(t)return t}for(let e of s)if("cookie"!==e?"baseLocale"===e?t="it":"globalVariable"===e&&void 0!==r&&(t=r):t=function(){if("undefined"==typeof document||!document.cookie)return;let e=document.cookie.match(new RegExp("(^| )".concat(a,"=([^;]+)"))),t=null==e?void 0:e[2];if(f(t))return t}(),void 0!==t){let e=function(e){if(!1===f(e))throw Error("Invalid locale: ".concat(e,". Expected one of: ").concat(o.join(", ")));return e}(t);return c||(r=e,c=!0,h(e,{reload:!1})),e}throw Error("No locale found. Read the docs https://inlang.com/m/gerre34r/library-inlang-paraglideJs/errors#no-locale-found")},h=(e,t)=>{let n,i,o={reload:!0,...t};try{n=d()}catch(e){}for(let t of s)if("globalVariable"!==t)if("cookie"!==t){if("baseLocale"===t)continue}else{if(u||"undefined"==typeof document)continue;let t=window.location.hostname;document.cookie="".concat(a,"=").concat(e,"; path=/; max-age=").concat(3456e4,"; domain=").concat(t)}else r=e;!u&&o.reload&&window.location&&e!==n&&(i?window.location.href=i:window.location.reload())},p=()=>{if(i){var e,t;return null!=(t=null==(e=i.getStore())?void 0:e.origin)?t:"http://fallback.com"}return window.location.origin};function f(e){return!!e&&o.includes(e)}function m(e,t){if(!1===u)return;let n=null==i?void 0:i.getStore();if(n){var r;null==(r=n.messageCalls)||r.add("".concat(e,":").concat(t))}}},57067:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};Object.defineProperty(t,"__esModule",{value:!0}),t.hasCookie=t.deleteCookie=t.setCookie=t.getCookie=t.getCookies=void 0;var o=n(68678),a=function(){return"undefined"!=typeof window},s=function(e){return!!e&&"getAll"in e&&"set"in e&&"function"==typeof e.getAll&&"function"==typeof e.set},l=function(e){return!!(null==e?void 0:e.req)&&"cookies"in e.req&&s(null==e?void 0:e.req.cookies)||!!(null==e?void 0:e.res)&&"cookies"in e.res&&s(null==e?void 0:e.res.cookies)||!!(null==e?void 0:e.cookies)&&s(e.cookies())},u=function(e){var t={};return e.getAll().forEach(function(e){var n=e.name,r=e.value;t[n]=r}),t},c=function(e){try{if("string"==typeof e)return e;return JSON.stringify(e)}catch(t){return e}};t.getCookies=function(e){if(l(e)){if(null==e?void 0:e.req)return u(e.req.cookies);if(null==e?void 0:e.cookies)return u(e.cookies())}if(e&&(t=e.req),!a())return t&&t.cookies?t.cookies:t&&t.headers.cookie?(0,o.parse)(t.headers.cookie):{};for(var t,n={},r=document.cookie?document.cookie.split("; "):[],i=0,s=r.length;i<s;i++){var c=r[i].split("="),d=c.slice(1).join("=");n[c[0]]=d}return n},t.getCookie=function(e,n){var r=(0,t.getCookies)(n)[e];if(void 0!==r)return r?r.replace(/(%[0-9A-Z]{2}
24)+/g,decodeURIComponent):r},t.setCookie=function(e,t,n){if(l(n)){var s,u,d,h=n.req,p=n.res,f=n.cookies,m=i(n,["req","res","cookies"]),g=r({name:e,value:c(t)},m);h&&h.cookies.set(g),p&&p.cookies.set(g),f&&f().set(g);return}if(n){var h=n.req,p=n.res,v=i(n,["req","res"]);u=h,d=p,s=v}var y=(0,o.serialize)(e,c(t),r({path:"/"},s));if(a())document.cookie=y;else if(d&&u){var b=d.getHeader("Set-Cookie");if(Array.isArray(b)||(b=b?[String(b)]:[]),d.setHeader("Set-Cookie",b.concat(y)),u&&u.cookies){var w=u.cookies;""===t?delete w[e]:w[e]=c(t)}if(u&&u.headers&&u.headers.cookie){var w=(0,o.parse)(u.headers.cookie);""===t?delete w[e]:w[e]=c(t),u.headers.cookie=Object.entries(w).reduce(function(e,t){return e.concat("".concat(t[0],"=").concat(t[1],";"))},"")}}},t.deleteCookie=function(e,n){return(0,t.setCookie)(e,"",r(r({},n),{maxAge:-1}))},t.hasCookie=function(e,n){return!!e&&(0,t.getCookies)(n).hasOwnProperty(e)}},57964:(e,t,n)=>{"use strict";n.d(t,{A:()=>a}),n(55729);var r=n(43795),i=n(10306),o=n(14443);function a(){let e=(0,r.A)(i.A);return e[o.A]||e}},59255:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,n,r){var i=n.prototype,o=i.format;r.en.formats=e,i.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var n,r,i=this.$locale().formats,a=(n=t,r=void 0===i?{}:i,n.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,i){var o=i&&i.toUpperCase();return n||r[i]||e[i]||r[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})}));return o.call(this,a)}}}()},59716:(e,t,n)=>{"use strict";function r(e,t){"function"==typeof e?e(t):e&&(e.current=t)}n.d(t,{A:()=>r})},60448:(e,t,n)=>{"use strict";n.d(t,{$:()=>c,F:()=>u});var r=n(99410),i=n(1983),o=n(55729),a=n(43226),s=n(6029);let l=["localeText"],u=o.createContext(null),c=function(e){var t;let{localeText:n}=e,c=(0,i.A)(e,l),{utils:d,localeText:h}=null!=(t=o.useContext(u))?t:{utils:void 0,localeText:void 0},{children:p,dateAdapter:f,dateFormats:m,dateLibInstance:g,adapterLocale:v,localeText:y}=(0,a.A)({props:c,name:"MuiLocalizationProvider"}),b=o.useMemo(()=>(0,r.A)({},y,h,n),[y,h,n]),w=o.useMemo(()=>{if(!f)return d||null;let e=new f({locale:v,formats:m,instance:g});if(!e.isMUIAdapter)throw Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
25`));return e},[f,v,m,g,d]),S=o.useMemo(()=>w?{minDate:w.date("1900-01-01T00:00:00.000"),maxDate:w.date("2099-12-31T00:00:00.000")}:null,[w]),x=o.useMemo(()=>({utils:w,defaultDates:S,localeText:b}),[S,w,b]);return(0,s.jsx)(u.Provider,{value:x,children:p})}},61062:(e,t,n)=>{"use strict";n.d(t,{z:()=>i});var r=n(67368);let i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!e)return null;if(null==e||!e.startsWith(r._m))return e.replace("https://www.treccani.it","https://static.treccani.it").replace("https://treccani.it","https://static.treccani.it").replace("static.treccani.it/sites/default/","static.treccani.it/export/sites/default/").replace("static.treccani.it/immagini/","static.treccani.it/export/sites/default/immagini/").replace("static.treccani.it/immagini_","static.treccani.it/export/sites/default/immagini_").replace("static.treccani.it/magazine/","static.treccani.it/export/sites/default/magazine/").replace("static.treccani.it/biografico/","static.treccani.it/export/sites/default/biografico/").replace("static.treccani.it/catalogo/","static.treccani.it/export/sites/default/catalogo/").replace("static.treccani.it/cultura/","static.treccani.it/export/sites/default/cultura/").replace("static.treccani.it/gallery/","static.treccani.it/export/sites/default/gallery/").replace("static.treccani.it/images/","static.treccani.it/export/sites/default/images/").replace("static.treccani.it/istituto/","static.treccani.it/export/sites/default/istituto/");{let n=e.replace("/m/","");return"".concat(n,"/m/").concat(t)}}},61478:(e,t,n)=>{"use strict";
25Object.defineProperty(t,"__esModule",{value:!0}),(0,n(9221).__exportStar)(n(31602),t)},61847:(e,t,n)=>{"use strict";var r=n(4140);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},61912:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(99410),i=n(1983),o=n(3126),a=n(92410),s=n(35786),l=n(80404);let u=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"],c=function(e){var t;let{elementType:n,externalSlotProps:c,ownerState:d,skipResolvingSlotProps:h=!1}=e,p=(0,i.A)(e,u),f=h?{}:(0,l.A)(c,d),{props:m,internalRef:g}=(0,s.A)((0,r.A)({},p,{externalSlotProps:f})),v=(0,o.A)(g,null==f?void 0:f.ref,null==(t=e.additionalProps)?void 0:t.ref);return(0,a.A)(n,(0,r.A)({},m,{ref:v}),d)}},62076:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var a=n(41940),s=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),x(this,e)},e}();t.Node=s;var l=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return i(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(s);t.DataNode=l;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Text,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(l);t.Text=u;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Comment,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(l);t.Comment=c;var d=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=a.ElementType.Directive,r}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(l);t.ProcessingInstruction=d;var h=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return i(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!=(e=this.children[0])?e:null}
25,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=h;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(h);t.CDATA=p;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(h);t.Document=f;var m=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var o=e.call(this,r)||this;return o.name=t,o.attribs=n,o.type=i,o}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map(function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null==(n=e["x-attribsNamespace"])?void 0:n[t],prefix:null==(r=e["x-attribsPrefix"])?void 0:r[t]}})},enumerable:!1,configurable:!0}),t}(h);function g(e){return(0,a.isTag)(e)}function v(e){return e.type===a.ElementType.CDATA}function y(e){return e.type===a.ElementType.Text}function b(e){return e.type===a.ElementType.Comment}function w(e){return e.type===a.ElementType.Directive}function S(e){return e.type===a.ElementType.Root}function x(e,t){if(void 0===t&&(t=!1),y(e))n=new u(e.data);else if(b(e))n=new c(e.data);else if(g(e)){var n,r=t?A(e.children):[],i=new m(e.name,o({},e.attribs),r);r.forEach(function(e){return e.parent=i}),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),n=i}else if(v(e)){var r=t?A(e.children):[],a=new p(r);r.forEach(function(e){return e.parent=a}),n=a}else if(S(e)){var r=t?A(e.children):[],s=new f(r);r.forEach(function(e){return e.parent=s}),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else if(w(e)){var l=new d(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}else throw Error("Not implemented yet: ".concat(e.type));return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function A(e){for(var t=e.map(function(e){return x(e,!0)}),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=m,t.isTag=g,t.isCDATA=v,t.isText=y,t.isComment=b,t.isDirective=w,t.isDocument=S,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=x},62100:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}},62447:(e,t,n)=>{"use strict";n.d(t,{N:()=>o});var r=n(95919);let i={hours:"le ore",minutes:"i minuti",seconds:"i secondi",meri
25diem:"il meridiano"},o=(0,r.r)({previousMonth:"Mese precedente",nextMonth:"Mese successivo",openPreviousView:"apri la vista precedente",openNextView:"apri la vista successiva",calendarViewSwitchingButtonAriaLabel:e=>"year"===e?"la vista dell'anno \xe8 aperta, passare alla vista del calendario":"la vista dell'calendario \xe8 aperta, passare alla vista dell'anno",start:"Inizio",end:"Fine",cancelButtonLabel:"Cancellare",clearButtonLabel:"Sgomberare",okButtonLabel:"OK",todayButtonLabel:"Oggi",datePickerToolbarTitle:"Seleziona data",dateTimePickerToolbarTitle:"Seleziona data e orario",timePickerToolbarTitle:"Seleziona orario",dateRangePickerToolbarTitle:"Seleziona intervallo di date",clockLabelText:(e,t,n)=>`Seleziona ${i[e]}. ${null===t?"Nessun orario selezionato":`L'ora selezionata \xe8 ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} ore`,minutesClockNumberText:e=>`${e} minuti`,secondsClockNumberText:e=>`${e} secondi`,selectViewText:e=>`Seleziona ${i[e]}`,calendarWeekNumberHeaderLabel:"Numero settimana",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Settimana ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>
25null!==e&&t.isValid(e)?`Scegli la data, la data selezionata \xe8 ${t.format(e,"fullDate")}`:"Scegli la data",openTimePickerDialogue:(e,t)=>null!==e&&t.isValid(e)?`Scegli l'ora, l'ora selezionata \xe8 ${t.format(e,"fullTime")}`:"Scegli l'ora",timeTableLabel:"scegli un'ora",dateTableLabel:"scegli una data",fieldYearPlaceholder:e=>"A".repeat(e.digitAmount),fieldMonthPlaceholder:e=>"letter"===e.contentType?"MMMM":"MM",fieldDayPlaceholder:()=>"GG",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"})},63083:e=>{"use strict";e.exports=self.fetch.bind(self),e.exports.default=e.exports},63844:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void 0,t.isEmptyData=function(e){return"string"==typeof e?0===e.length:0===e.byteLength}},64273:(e,t,n)=>{"use strict";n.d(t,{o:()=>r});let r=e=>{var t;window.dataLayer=window.dataLayer||[],null==(t=window.dataLayer)||t.push(e)}},64314:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});let r=e=>e,i=(()=>{let e=r;return{configure(t){e=t},generate:t=>e(t),reset(){e=r}}})()},64593:(e,t,n)=>{"use strict";n.d(t,{A:()=>c,I:()=>u});var r=n(99410),i=n(1983),o=n(55729),a=n(6029);let s=["value"],l=o.createContext(),u=()=>{let e=o.useContext(l);return null!=e&&e},c=function(e){let{value:t}=e,n=(0,i.A)(e,s);return(0,a.jsx)(l.Provider,(0,r.A)({value:null==t||t},n))}},65123:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},65492:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=function(e){return"string"==typeof e}},65750:(e,t,n)=>{"use strict";n.d(t,{G3:()=>h,_Y:()=>p});var r,i=n(55729),o=n(29143),a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},s=function(e){var t;e?function(e){if(e)for(;e.lastChild;)e.lastChild.remove()}("string"==typeof e?document.getElementById(e):e):(t=document.querySelector(".grecaptcha-badge"))&&t.parentNode&&document.body.removeChild(t.parentNode)},l=function(e,t){s(t),window.___grecaptcha_cfg=void 0;var n,r=document.querySelector("#"+e);r&&r.remove(),(n=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))&&n.remove()},u=function(e){var t=e.render,n=e.onLoadCallbackName,r=e.language,i=e.onLoad,o=e.useRecaptchaNet,a=e.useEnterprise,s=e.scriptProps,l=void 0===s?{}:s,u=l.nonce,c=void 0===u?"":u,d=l.defer,h=l.async,p=l.id,f=l.appendTo,m=(void 0===p?"":p)||"google-recaptcha-v3";if(document.querySelector("#"+m))i();else{var g,v="https://www."+((g={useEnterprise:a,useRecaptchaNet:o}).useRecaptchaNet?"recaptcha.net":"google.com")+"/recaptcha/"+(g.useEnterprise?"enterprise.js":"api.js"),y=document.createElement("script");y.id=m,y.src=v+"?render="+t+("explicit"===t?"&onload="+n:"")+(r?"&hl="+r:""),c&&(y.nonce=c),y.defer=!!(void 0!==d&&d),y.async=!!(void 0!==h&&h),y.onload=i,("body"===f?document.body:document.getElementsByTagName("head")[0]).appendChild(y)}},c=function(e){void 0===o||o.env,console.warn(e)};(r||(r={})).SCRIPT_NOT_AVAILABLE="Recaptcha script is not available";var d=(0,i.createContext)({executeRecaptcha:function(){throw Error("GoogleReCaptcha Context has not yet been implemented, if you are using useGoogleReCaptcha hook, make sure the hook is called inside component wrapped by GoogleRecaptchaProvider")}});function h(e){var t=e.reCaptchaKey,n=e.useEnterprise,o=void 0!==n&&n,s=e.useRecaptchaNet,h=void 0!==s&&s,p=e.scriptProps,f=e.language,m=e.container,g=e.children,v=(0,i.useState)(null),y=v[0],b=v[1],w=(0,i.useRef)(t),S=JSON.stringify(p),x=JSON.stringify(null==m?void 0:m.parameters);(0,i.useEffect)(function(){if(t){var e=(null==p?void 0:p.id)||"google-recaptcha-v3",n=(null==p?void 0:p.onLoadCallbackName)||"onRecaptchaLoadCallback";return window[n]=function(){var e=o?window.grecaptcha.enterprise:window.grecaptcha,n=a({badge:"inline",size:"invisible",sitekey:t},(null==m?void 0:m.parameters)||{});w.current=e.render(null==m?void 0:m.element,n)},u({render:(null==m?void 0:m.element)?"explicit":t,onLoadCallbackName:n,useEnterprise:o,useRecaptchaNet:h,scriptProps:p,language:f,onLoad:function(){if(window&&window.grecaptcha){var e=o?window.grecaptcha.enterprise:window.grecaptcha;e.ready(function(){b(e)})}else c("<GoogleRecaptchaProvider /> "+r.SCRIPT_NOT_AVAILABLE)},onError:function(){c("Error loading google recaptcha script")}}),function(){l(e,null==m?void 0:m.element)}}c("<GoogleReCaptchaProvider /> recaptcha key not provided")},[o,h,S,x,f,t,null==m?void 0:m.element]);var A=(0,i.useCallback)(function(e){if(!y||!y.execute)throw Error("<GoogleReCaptchaProvider /> Google Recaptcha has not been loaded");return y.execute(w.current,{action:e})},[y,w]),k=(0,i.useMemo)(function(){return{executeRecaptcha:y?A:void 0,container:null==m?void 0:m.element}},[A,y,null==m?void 0:m.element]);return i.createElement(d.Provider,{value:k},g)}d.Consumer;var p=function(){return(0,i.useContext)(d)};function f(e,t){return e(t={exports:{}},t.exports),t.exports}var m="function"==typeof Symbol&&Symbol.for,g=m?Symbol.for("react.element"):60103,v=m?Symbol.for("react.portal"):60106,y=m?Symbol.for("react.fragment"):60107,b=m?Symbol.for("react.strict_mode"):60108,w=m?Symbol.for("react.profiler"):60114,S=m?Symbol.for("react.provider"):60109,x=m?Symbol.for("react.context"):60110,A=m?Symbol.for("react.async_mode"):60111,k=m?Symbol.for("react.concurrent_mode"):60111,E=m?Symbol.for("react.forward_ref"):60112,C=m?Symbol.for("react.suspense"):60113,T=m?Symbol.for("react.suspense_list"):60120,_=m?Symbol.for("react.memo"):60115,P=m?Symbol.for("react.lazy"):60116,M=m?Symbol.for("react.block"):60121,I=m?Symbol.for("react.fundamental"):60117,O=m?Symbol.for("react.responder"):60118,R=m?Symbol.for("react.scope"):60119;function D(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case g:switch(e=e.type){case A:case k:case y:case w:case b:case C:return e;default:switch(e=e&&e.$$typeof){case x:case E:case P:case _:case S:return e;default:return t}}case v:return t}}}function L(e){return D(e)===k}var j={AsyncMode:A,ConcurrentMode:k,ContextConsumer:x,ContextProvider:S,Element:g,ForwardRef:E,Fragment:y,Lazy:P,Memo:_,Portal:v,Profiler:w,StrictMode:b,Suspense:C,isA
25syncMode:function(e){return L(e)||D(e)===A},isConcurrentMode:L,isContextConsumer:function(e){return D(e)===x},isContextProvider:function(e){return D(e)===S},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===g},isForwardRef:function(e){return D(e)===E},isFragment:function(e){return D(e)===y},isLazy:function(e){return D(e)===P},isMemo:function(e){return D(e)===_},isPortal:function(e){return D(e)===v},isProfiler:function(e){return D(e)===w},isStrictMode:function(e){return D(e)===b},isSuspense:function(e){return D(e)===C},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===y||e===k||e===w||e===b||e===C||e===T||"object"==typeof e&&null!==e&&(e.$$typeof===P||e.$$typeof===_||e.$$typeof===S||e.$$typeof===x||e.$$typeof===E||e.$$typeof===I||e.$$typeof===O||e.$$typeof===R||e.$$typeof===M)},typeOf:D},U=f(function(e,t){}),N=(U.AsyncMode,U.ConcurrentMode,U.ContextConsumer,U.ContextProvider,U.Element,U.ForwardRef,U.Fragment,U.Lazy,U.Memo,U.Portal,U.Profiler,U.StrictMode,U.Suspense,U.isAsyncMode,U.isConcurrentMode,U.isContextConsumer,U.isContextProvider,U.isElement,U.isForwardRef,U.isFragment,U.isLazy,U.isMemo,U.isPortal,U.isProfiler,U.isStrictMode,U.isSuspense,U.isValidElementType,U.typeOf,f(function(e){e.exports=j})),F={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},B={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},z={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},$={};function V(e){return N.isMemo(e)?z:$[e.$$typeof]||F}$[N.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},$[N.Memo]=z;var H=Object.defineProperty,W=Object.getOwnPropertyNames,G=Object.getOwnPropertySymbols,q=Object.getOwnPropertyDescriptor,Y=Object.getPrototypeOf,K=Object.prototype},67368:(e,t,n)=>{"use strict";n.d(t,{Ai:()=>l,Es:()=>u,_m:()=>r,_w:()=>i,jD:()=>o,jE:()=>a,ve:()=>s});let r="https://a.storyblok.com",i="https://images.treccani.it/ext-tool/extra/thumbs_medium/",o=["/magazine/strumenti/","/istituto/chi-siamo/profilo/","/istituto/chi-siamo/profilo/persone/","/giochi/cruciverba/"],a=["/magazine/strumenti/una_poesia_al_giorno/"],s={biografico:"Dizionario biografico",parolevalgono:"Le parole valgono",videos:"Tutti i video"},l={register:"/user/register",login:"/user/login"},u="/abbonamenti"},67757:(e,t,n)=>{"use strict";n.d(t,{cY:()=>S,td:()=>b,sH:()=>w,Zy:()=>x,Ih:()=>A});var r=n(67368),i=n(6580),o=n(13453),a=n(26786),s=n(73373),l=n(5327),u=n(96068),c=n(77687),d=n(56752);let h=()=>"Autore Treccani",p=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(d.F9&&!1===d.S$)return globalThis.__paraglide_ssr.label_autoretreccani1(t);let r=null!=(e=n.locale)?e:(0,d.JK)();return((0,d.fQ)("label_autoretreccani1",r),"it"===r)?h(t):"label_autoreTreccani"};var f=n(1923),m=n(31662),g=n(25937),v=n(76572);let y=new(n(79914))({accessToken:"YOUR_TOKEN"});function b(e){return{__html:y.richTextResolver.render(e)}}let w=e=>{let t=(null==e?void 0:e.url)&&"string"==typeof(null==e?void 0:e.url)?null==e?void 0:e.url:"";"string"==typeof e&&(t=e);let n=(null==e?void 0:e.cached_url)&&"string"==typeof(null==e?void 0:e.cached_url)?null==e?void 0:e.cached_url:"";t=S(t),n=S(n);let r=/^https?:\/\/(?:www\.)?treccani\.it/i;if((null==e?void 0:e.linktype)!="story"&&!t&&!n)return null;if(null==r?void 0:r.test(t))return t.replace("http://www.treccani.it","").replace("https://www.treccani.it","");if((null==t?void 0:t.startsWith("www."))&&(t=t.replace("www.","http://www.")),(null==t?void 0:t.startsWith("http://"))||(null==t?void 0:t.startsWith("https://")))return t;if((null==n?void 0:n.startsWith("www."))&&(n=n.replace("www.","http://www.")),(null==n?void 0:n.startsWith("http://"))||(null==n?void 0:n.startsWith("https://")))return n;if((null==e?void 0:e.linktype)==="story"){var i,o,a,s,l,u,c;if(null==n?void 0:n.startsWith("/"))return n;if(""!==n&&!(null==n?void 0:n.startsWith("/")))return"/"+n;if(null==e||null==(o=e.story)||null==(i=o.full_slug)?void 0:i.startsWith("/"))return null==e||null==(u=e.story)?void 0:u.full_slug;else if((null==e||null==(a=e.story)?void 0:a.full_slug)&&!(null==e||null==(l=e.story)||null==(s=l.full_slug)?void 0:s.startsWith("/")))return"/"+(null==e||null==(c=e.story)?void 0:c.full_slug);else return null}{let e=/^(https?:\/\/)?[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+(?:\/|$)/.test(t),n=/^\/\//.test(t);return e||n||t.startsWith("/")?t:"".concat("https://www.treccani.it/").concat(t)}},S=e=>{var t="";try{t=new URL(e).pathname}catch(n){t=e}if(!(e&&!e.includes("#")&&(null==e?void 0:e.charAt(e.length-1))!="/"&&(!(null==e?void 0:e.includes("://"))||(null==e?void 0:e.includes("www.treccani.it")))))return e;{let n=!1,r=t.split("/").pop();return(r.includes(".")&&"html"!==r.split(".").pop()&&(n=!0),n)?e:e.startsWith("/")||(null==e?void 0:e.includes("www.treccani.it"))?"".concat(e,"/"):"/".concat(e,"/")}},x=async(e,t)=>{var n,d,h,y,b,S,x,k,E,C,T,_,P,M,I,O,R,D,L,j,U,N,F,B,z,$,V,H,W,G,q,Y,K,J,X,Z,Q,ee,et,en,er,ei,eo,ea,es,el,eu,ec,ed,eh,ep,ef,em,eg,ev,ey,eb,ew,eS,ex,eA,ek,eE,eC,eT,e_,eP,eM,eI,eO,eR,eD,eL,ej,eU,eN,eF,eB,ez,e$,eV,eH,eW,eG,eq,eY,eK,eJ,eX,eZ,eQ,e0,e1,e2,e5,e4,e3,e6,e9,e8,e7,te,tt,tn,tr,ti,to,ta,ts,tl,tu,tc,td,th,tp,tf,tm,tg,tv,ty,tb,tw,tS,tx,tA,tk,tE,tC,tT,t_,tP,tM,tI,tO,tR,tD,tL,tj,tU,tN,tF,tB,tz,t$,tV,tH,tW,tG,tq,tY,tK,tJ,tX,tZ,tQ,t0,t1,t2,t5,t4,t3,t6,t9,t8,t7,ne,nt,nn,nr,ni,no,na,ns,nl,nu,nc,nd,nh,np,nf,nm,ng,nv,ny,nb,nw,nS,nx,nA,nk,nE,nC,nT,n_,nP,nM,nI,nO,nR,nD,nL,nj,nU,nN,nF,nB,nz,n$,nV,nH,nW,nG,nq,nY,nK,nJ,nX,nZ,nQ,n0,n1,n2,n5,n4,n3,n6,n9,n8,n7,re,rt,rn,rr,ri,ro,ra,rs,rl,ru,rc;let rd=!!location&&(null==(n=location)?void 0:n.pathname.includes("magazine/agenda")),rh=null!=(d=null==t?void 0:t.layout)?d:"basic",rp=async e=>{try{var t,n,i,o,s,l,u;let c="/".concat(null==(t=e.link)?void 0:t.url).replace("//","/"),d=(await (0,g.J)("term".concat(c)).catch(e=>e.response)).data,h=d.published_images[0];return{title:(null==d?void 0:d.title)||"",description:null==d||null==(i=d.meta)||null==(n=i.html)?void 0:n.title,abstract:(null==d?void 0:d.content)||"",label:null==d||null==(o=d.categories[0])?void 0:o.cat2_label,labelLink:"/".concat(null==d||null==(s=d.categories[0])?void 0:s.cat2_label),tag:c.split("/")[1],link:{title:(null==d?void 0:d.title)||"Lemma",url:c},variant:rh,image:{filename:(null==e||null==(l=e.image_override)?void 0:l.filename)?null==e||null==(u=e.image_override)?void 0:u.filename:h?"".concat(r._w).concat(h.path):(0,a.w7)(null==d?void 0:d.content)||""},component:null==e?void 0:e.component,layout:rh}}catch(e){return console.error("Errore nella chiamata lemma Card:",e),null}};try{let t,n=null,r=e.component||(null==(h=e.content)?void 0:h.component),d=(null==e?void 0:e.image)&&(null==e||null==(y=e.image)?void 0:y.filename)?null==e?void 0:e.image:null;switch(r){case"ItemSteppedContained":case"ItemCustom":case"ItemCustomGalassia":n={...e,component:r,description:(0,i.CA)(null==e?void 0:e.description_ric
25htext)?(0,i.CA)(null==e?void 0:e.description_richtext):(null==e?void 0:e.description)||"",author:(null==e?void 0:e.author)?"".concat(c.v()," ").concat(null==e?void 0:e.author):"",...(0,v.G7)("hasAuthorLink")&&{authorLink:(null==e||null==(b=e.author_link)?void 0:b.cached_url)?w(null==e?void 0:e.author_link):null},coAuthor:null==e?void 0:e.CoAutore,labelLink:(null==e||null==(S=e.label_link)?void 0:S.cached_url)?w(null==e?void 0:e.label_link):null,link:{title:(null==e||null==(x=e.link)?void 0:x.title)||"",url:w(null==e?void 0:e.link)||""}};break;case"ItemLemma":n=await rp(e);break;case"MainArea":t=e,n={component:r,title:(null==t||null==(k=t.content)?void 0:k.nome)||"",label:null==t||null==(E=t.content)?void 0:E.component,tag:(null==t||null==(C=t.content)?void 0:C.occhiello)||"",description:(0,i.CA)(null==(T=t.content)?void 0:T.descrizioneLunga)||"",link:{title:"".concat((null==t||null==(_=t.content)?void 0:_.nome)||""," ").concat((null==t||null==(P=t.content)?void 0:P.cognome)||"")||"",url:(null==t?void 0:t.full_slug)||""},image:(null==t||null==(M=t.content)?void 0:M.immagini)?Array.isArray(null==t||null==(I=t.content)?void 0:I.immagini)&&(null==t||null==(R=t.content)||null==(O=R.immagini)?void 0:O.length)>0?null==t||null==(L=t.content)||null==(D=L.immagini[0])?void 0:D.immagine:null==t||null==(j=t.content)?void 0:j.immagine:null};break;case"ItemAutore":t=(null==(U=e.link)?void 0:U.story)||(null==(N=e.target)?void 0:N.story),n={component:r,title:"".concat((null==(F=t.content)?void 0:F.nome)||""," ").concat((null==(B=t.content)?void 0:B.cognome)||"")||"",label:null==(z=t.content)?void 0:z.component,tag:(null==($=t.content)?void 0:$.occhiello)||"",description:(0,i.CA)(null==(V=t.content)?void 0:V.biografia)||"",link:{title:"".concat((null==(H=t.content)?void 0:H.nome)||""," ").concat((null==(W=t.content)?void 0:W.cognome)||"")||"",url:(null==t?void 0:t.full_slug)||""},image:null==t||null==(G=t.content)?void 0:G.immagine};break;case"Autore":t=e,n={component:r,title:"".concat((null==(q=t.content)?void 0:q.nome)||""," ").concat((null==(Y=t.content)?void 0:Y.cognome)||"")||"",label:null==(K=t.content)?void 0:K.component,tag:(null==(J=t.content)?void 0:J.occhiello)||"",description:p(),link:{title:"".concat((null==(X=t.content)?void 0:X.nome)||""," ").concat((null==(Z=t.content)?void 0:Z.cognome)||"")||"",url:(null==t?void 0:t.full_slug)||""},image:null==t||null==(Q=t.content)?void 0:Q.immagine};break;case"ItemCatalogo":t=e,n={component:r,title:null==t||null==(ee=t.content)?void 0:ee.titolo,description:(0,i.CA)(null==t||null==(et=t.content)?void 0:et.abstract),link:{title:null==t||null==(en=t.content)?void 0:en.titolo,url:A(t)},image:null==t||null==(er=t.content)?void 0:er.immagine,variant:"card3"};break;case"ArticoloCorrelato":if(!(t=(null==e||null==(ei=e.link)?void 0:ei.story)||(null==e||null==(eo=e.target)?void 0:eo.story))){let n=(0,i._8)();t=(await n.get("cdn/stories/".concat((null==e||null==(eT=e.link)?void 0:eT.cached_url)||(null==e||null==(e_=e.target)?void 0:e_.cached_url)),o.YF)).data.story}let g=(null==t||null==(es=t.content)||null==(ea=es.autore)?void 0:ea.story)?"".concat((null==t||null==(ed=t.content)||null==(ec=ed.autore)||null==(eu=ec.story)||null==(el=eu.content)?void 0:el.nome)||""," ").concat((null==t||null==(em=t.content)||null==(ef=em.autore)||null==(ep=ef.story)||null==(eh=ep.content)?void 0:eh.cognome)||""):(null==(eg=t.content)?void 0:eg.nomeAutore)||"";n={component:r,title:(null==t||null==(ev=t.content)?void 0:ev.titolo)||"",label:null==t||null==(ey=t.content)?void 0:ey.component,tag:(null==t||null==(eb=t.content)?void 0:eb.occhiello)||"",description:g||(null==t||null==(ew=t.content)?void 0:ew.nomeAutore)?null==(eS=t.content)?void 0:eS.nomeAutore:"",link:{title:"",url:(null==t?void 0:t.full_slug)||""},image:d||((null==t||null==(ex=t.content)?void 0:ex.immagine)?null==t||null==(ek=t.content)||null==(eA=ek.immagine[0])?void 0:eA.immagine:null==t||null==(eC=t.content)||null==(eE=eC.immagini[0])?void 0:eE.immagine)};break;case"ItemMagazineArticle":t=null==(eP=e.link)?void 0:eP.story,n={component:r,title:(null==t||null==(eM=t.content)?void 0:eM.component)=="TimelineEvent"?(null==t?void 0:t.name)||"":(null==t||null==(eI=t.content)?void 0:eI.titolo_breve)||(null==t||null==(eO=t.content)?void 0:eO.titolo)||"",description:(null==t||null==(eR=t.content)?void 0:eR.sottotitolo)?null==t||null==(eD=t.content)?void 0:eD.sottotitolo:(null==t||null==(eL=t.content)?void 0:eL.abstract)&&0===Object.keys(null==t||null==(ej=t.content)?void 0:ej.abstract).length?null:rd?(0,i.CA)(null==t||null==(eU=t.content)?void 0:eU.abstract):null,author:(null==t||null==(ez=t.content)||null==(eB=ez.autore)||null==(eF=eB.story)||null==(eN=eF.content)?void 0:eN.nome)?"".concat(c.v()," ").concat(null==t||null==(eW=t.content)||null==(eH=eW.autore)||null==(eV=eH.story)||null==(e$=eV.content)?void 0:e$.nome," ").concat(null==t||null==(eK=t.content)||null==(eY=eK.autore)||null==(eq=eY.story)||null==(eG=eq.content)?void 0:eG.cognome):(null==t||null==(eJ=t.content)?void 0:eJ.nomeAutore)?"".concat(c.v()," ").concat(null==t||null==(eX=t.content)?void 0:eX.nomeAutore):(null==t?void 0:t.nomeAutore)?"".concat(c.v()," ").concat(null==t?void 0:t.nomeAutore):"",...(0,v.G7)("hasAuthorLink")&&{authorLink:w(null==t||null==(eZ=t.content)?void 0:eZ.autore)||""},coAuthor:null==t||null==(eQ=t.content)?void 0:eQ.CoAutore,label:null==t||null==(e1=t.full_slug)||null==(e0=e1.split("/")[1])?void 0:e0.replaceAll("_"," "),labelLink:"".concat((0,u.Gn)(),"/").concat(null==t?void 0:t.full_slug.split("/")[1]),tag:null==t||null==(e2=t.content)?void 0:e2.occhiello,link:{title:(null==(e5=e.link)?void 0:e5.title)||f.M(),url:null==t?void 0:t.full_slug},variant:rh,image:d||((null==t||null==(e4=t.content)?void 0:e4.immagine)?null==t||null==(e6=t.content)||null==(e3=e6.immagine[0])?void 0:e3.immagine:null==t||null==(e8=t.content)||null==(e9=e8.immagini[0])?void 0:e9.immagine),hideSubtitle:null==t||null==(e7=t.content)?void 0:e7.hideSubtitle};break;case"Immagine":n={component:r,title:(null==e?void 0:e.titolo)||"",description:null==e?void 0:e.didascali
25a,author:null!=(te=null==e?void 0:e.nomeAutore)?te:"",link:null,variant:rh,image:null==e?void 0:e.immagine};break;case"PlaylistCarouselItem":n={items:[null==e||null==(tn=e.link)||null==(tt=tn.story)?void 0:tt.full_slug],title:null==e||null==(ti=e.link)||null==(tr=ti.story)?void 0:tr.name,variant:rh,layout:rh,link:{url:null==e||null==(to=e.link)?void 0:to.cached_url,title:null==e||null==(ts=e.link)||null==(ta=ts.story)?void 0:ta.name},descrizione:""};break;case"Articolo":t=e,n={component:r,title:(null==(tl=t.content)?void 0:tl.titolo)||"",abstract:null==t||null==(tu=t.content)?void 0:tu.testo,description:null==t||null==(tc=t.content)?void 0:tc.sottotitolo,author:(null==t||null==(tf=t.content)||null==(tp=tf.autore)||null==(th=tp.story)||null==(td=th.content)?void 0:td.nome)?"".concat(c.v()," ").concat(null==t||null==(ty=t.content)||null==(tv=ty.autore)||null==(tg=tv.story)||null==(tm=tg.content)?void 0:tm.nome," ").concat(null==t||null==(tx=t.content)||null==(tS=tx.autore)||null==(tw=tS.story)||null==(tb=tw.content)?void 0:tb.cognome):(null==t||null==(tA=t.content)?void 0:tA.nomeAutore)?"".concat(c.v()," ").concat(null==t||null==(tk=t.content)?void 0:tk.nomeAutore):(null==t?void 0:t.nomeAutore)?"".concat(c.v()," ").concat(null==t?void 0:t.nomeAutore):"",...(0,v.G7)("hasAuthorLink")&&{authorLink:w(null==t||null==(tE=t.content)?void 0:tE.autore)||""},coAuthor:null==t||null==(tC=t.content)?void 0:tC.CoAutore,label:t.full_slug.split("/")[1].replaceAll("_"," "),labelLink:"".concat((0,u.Gn)(),"/").concat(null==t?void 0:t.full_slug.split("/")[1]),tag:null==(tT=t.content)?void 0:tT.occhiello,link:{title:(null==(t_=t.content)?void 0:t_.titolo)||"",url:t.full_slug},variant:rh,image:(null==t||null==(tP=t.content)?void 0:tP.immagine)?null==t||null==(tI=t.content)||null==(tM=tI.immagine[0])?void 0:tM.immagine:null};break;case"ItemEvento":case"Evento":n={id:(t="ItemEvento"==r?null==(tO=e.link)?void 0:tO.story:e).id,image:null,title:(null==t||null==(tR=t.content)?void 0:tR.titolo)||(null==t?void 0:t.name)||"",sottotitolo:null==t||null==(tD=t.content)?void 0:tD.sottotitolo,description:(0,l.VE)((0,i.CA)(null==t||null==(tL=t.content)?void 0:tL.descrizione)),dataInizio:(null==t||null==(tj=t.content)?void 0:tj.dataInizio)?(0,s.a6)(null==t||null==(tU=t.content)?void 0:tU.dataInizio):"",dataFine:(null==t||null==(tN=t.content)?void 0:tN.dataFine)?(0,s.a6)(null==t||null==(tF=t.content)?void 0:tF.dataFine):"",label:null==t||null==(tB=t.content)?void 0:tB.citta,link:{url:(null==t||null==(t$=t.content)||null==(tz=t$.link)?void 0:tz.url)?w(null==t||null==(tV=t.content)?void 0:tV.link):null==t?void 0:t.full_slug},tipoEvento:null==t||null==(tH=t.content)?void 0:tH.tipoEvento,categoria:null==t||null==(tW=t.content)?void 0:tW.categoria,progetto:null==t||null==(tG=t.content)?void 0:tG.progetto,citta:null==t||null==(tq=t.content)?void 0:tq.citta};break;case"ItemNotizia":n={id:(t=null==e||null==(tY=e.link)?void 0:tY.story).id,image:null==t||null==(tK=t.content)?void 0:tK.immagine,title:(null==t||null==(tJ=t.content)?void 0:tJ.titolo)||(null==t?void 0:t.name)||"",sottotitolo:null==t||null==(tX=t.content)?void 0:tX.sottotitolo,description:(0,l.VE)((0,i.CA)(null==t||null==(tZ=t.content)?void 0:tZ.descrizione)),data:(null==t||null==(tQ=t.content)?void 0:tQ.data)?(0,s.a6)(null==t||null==(t0=t.content)?void 0:t0.data):"",label:m.y(),link:{url:(null==t||null==(t2=t.content)||null==(t1=t2.link)?void 0:t1.url)?w(null==t||null==(t5=t.content)?void 0:t5.link):null==t?void 0:t.full_slug},tag:null==t||null==(t4=t.content)?void 0:t4.tema};break;case"ParoleValgonoClassifica":n={component:null==(t=e)||null==(t3=t.content)?void 0:t3.component,title:(null==(t6=t.content)?void 0:t6.titolo)?null==(t9=t.content)?void 0:t9.titolo:(null==(t8=t.content)?void 0:t8.title)?null==(t7=t.content)?void 0:t7.title:"",description:(null==(ne=t.content)?void 0:ne.sottotitolo)?null==(nt=t.content)?void 0:nt.sottotitolo:(null==(nn=t.content)?void 0:nn.subtitle)?null==(nr=t.content)?void 0:nr.subtitle:"",author:(null==t||null==(ns=t.content)||null==(na=ns.autore)||null==(no=na.story)||null==(ni=no.content)?void 0:ni.nome)?"".concat(c.v()," ").concat(null==t||null==(nd=t.content)||null==(nc=nd.autore)||null==(nu=nc.story)||null==(nl=nu.content)?void 0:nl.nome," ").concat(null==t||null==(nm=t.content)||null==(nf=nm.autore)||null==(np=nf.story)||null==(nh=np.content)?void 0:nh.cognome):(null==t||null==(ng=t.content)?void 0:ng.nomeAutore)?"".concat(c.v()," ").concat(null==t||null==(nv=t.content)?void 0:nv.nomeAutore):(null==t?void 0:t.nomeAutore)?"".concat(c.v()," ").concat(null==t?void 0:t.nomeAutore):(null==t||null==(ny=t.content)?void 0:ny.autore)?"di ".concat(null==t||null==(nb=t.content)?void 0:nb.autore):"",...(0,v.G7)("hasAuthorLink")&&{authorLink:(null==t||null==(nw=t.content)?void 0:nw.linkAutore)?w(null==t||null==(nS=t.content)?void 0:nS.linkAutore):w(null==t||null==(nx=t.content)?void 0:nx.autore)||""},label:"parolevalgono"===t.full_slug.split("/")[1]?"Le parole valgono":t.full_slug.split("/")[1],labelLink:"".concat((0,u.Gn)(),"/").concat(null==t?void 0:t.full_slug.split("/")[1]),link:{title:(null==(nA=t.content)?void 0:nA.titolo)?null==(nk=t.content)?void 0:nk.titolo:(null==(nE=t.content)?void 0:nE.title)?null==(nC=t.content)?void 0:nC.titolo:"",url:t.full_slug},variant:rh,image:(null==t||null==(nT=t.content)?void 0:nT.immagine)?null==t||null==(nP=t.content)||null==(n_=nP.immagine[0])?void 0:n_.immagine:(null==t||null==(nM=t.content)?void 0:nM.image)?null==t||null==(nI=t.content)?void 0:nI.image:null};break;case"ItemPodcast":t=null==e?void 0:e.relatedPodcast[0],n={component:r,title:(null==t||null==(nR=t.content)||null==(nO=nR.podcastItem[0])?void 0:nO.title)||"",tag:null==t||null==(nj=t.content)||null==(nL=nj.podcastItem[0])||null==(nD=nL.tagList)?void 0:nD[0],description:(0,a.Q0)((0,i.CA)(null==t||null==(nN=t.content)||null==(nU=nN.podcastItem[0])?void 0:nU.description),100)||"",link:{title:"",url:(null==t?void 0:t.full_slug)||""},image:null==t||null==(nB=t.content)||null==(nF=nB.podcastItem[0])?void 0:nF.coverImage};break;default:t=e,n={component:"defaultItem",title:(null==(nz=t.content)?void 0:nz.titolo)?null==(n$=t.content)?void 0:n$.titolo:(null==(nV=t.content)?void 0:nV.title)?null==(nH=t.content)?void 0:nH.title:"",description:(null==(nW=t.content)?void 0:nW.sottotitolo)?null==(nG=t.content)?void 0:nG.sottotitolo:(null==(nq=t.content)?void 0:nq.subtitle)?null==(nY=t.content)?void 0:nY.subtitle:"",author:(null==t||null==(nZ=t.content)||null==(nX=nZ.autore)||null==(nJ=nX.story)||null==(nK=nJ.content)?void 0:nK.nome)?"".concat(c.v()," ").concat(null==t||null==(n2=t.content)||null==(n1=n2.autore)||null==(n0=n1.story)||null==(nQ=n0.content)?void 0:nQ.nome," ").concat(null==t||null==(n6=t.content)||null==(n3=n6.autore)||null==(n4=n3.story)||null==(n5=n4.content)?void 0:n5.cognome):(null==t||null==(n9=t.content)?void 0:n9.nomeAutore)?"".concat(c.v()," ").concat(null==t||null==(n8=t.content)?void 0:n8.nomeAutore):(null==t?void 0:t.nomeAutore)?"".concat(c.v()," ").concat(null==t?void 0:t.nomeAutore):"",...(0,v.G7)("hasAuthorLink")&&{authorLink:w(null==t||null==(n7=t.content)?void 0:n7.autore)||""},coAuthor:null==t||null==(re=t.content)?void 0:re.CoAutore,label:t.full_slug.split("/")[1],tag:null==(rt=t.content)?void 0:rt.occhiello,link:{title:(null==(rn=t.content)?void 0:rn.titolo)?null==(rr=t.content)?void 0:rr.titolo:(null==(ri=t.content)?void 0:ri.title)?null==(ro=t.content)?void 0:ro.title:"",url:t.full_slug},variant:rh,image:(null==t||null==(ra=t.content)?void 0:ra.immagine)?null==t||null==(rl=t.content)||null==(rs=rl.immagine[0])?void 0:rs.immagine:(null==t||null==(ru=t.content)?void 0:ru.image)?null==t||null==(rc=t.content)?void 0:rc.image:null}}return n?{...n}:null}catch(e){return console.error("Errore nella generazione della card:",e),null}},A=e=>(null==e?void 0:e.is_startpage)?"/".concat(e.full_slug):"/".concat(null==e?void 0:e.full_slug,".html")}
25,68423:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=n(55729).createContext({})},68678:(e,t)=>{"use strict";t.parse=function(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");var n={},i=e.length;if(i<2)return n;var o=t&&t.decode||c,a=0,s=0,d=0;do{if(-1===(s=e.indexOf("=",a)))break;if(-1===(d=e.indexOf(";",a)))d=i;else if(s>d){a=e.lastIndexOf(";",s-1)+1;continue}var h=l(e,a,s),p=u(e,s,h),f=e.slice(h,p);if(!r.call(n,f)){var m=l(e,s+1,d),g=u(e,d,m);34===e.charCodeAt(m)&&34===e.charCodeAt(g-1)&&(m++,g--);var v=e.slice(m,g);n[f]=function(e,t){try{return t(e)}catch(t){return e}}(v,o)}a=d+1}while(a<i);return n},t.serialize=function(e,t,r){var l=r&&r.encode||encodeURIComponent;if("function"!=typeof l)throw TypeError("option encode is invalid");if(!i.test(e))throw TypeError("argument name is invalid");var u=l(t);if(!o.test(u))throw TypeError("argument val is invalid");var c=e+"="+u;if(!r)return c;if(null!=r.maxAge){var d=Math.floor(r.maxAge);if(!isFinite(d))throw TypeError("option maxAge is invalid");c+="; Max-Age="+d}if(r.domain){if(!a.test(r.domain))throw TypeError("option domain is invalid");c+="; Domain="+r.domain}if(r.path){if(!s.test(r.path))throw TypeError("option path is invalid");c+="; Path="+r.path}if(r.expires){var h,p=r.expires;if(h=p,"[object Date]"!==n.call(h)||isNaN(p.valueOf()))throw TypeError("option expires is invali
25d");c+="; Expires="+p.toUTCString()}if(r.httpOnly&&(c+="; HttpOnly"),r.secure&&(c+="; Secure"),r.partitioned&&(c+="; Partitioned"),r.priority)switch("string"==typeof r.priority?r.priority.toLowerCase():r.priority){case"low":c+="; Priority=Low";break;case"medium":c+="; Priority=Medium";break;case"high":c+="; Priority=High";break;default:throw TypeError("option priority is invalid")}if(r.sameSite)switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:case"strict":c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"none":c+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return c};var n=Object.prototype.toString,r=Object.prototype.hasOwnProperty,i=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,o=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,a=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,s=/^[\u0020-\u003A\u003D-\u007E]*$/;function l(e,t,n){do{var r=e.charCodeAt(t);if(32!==r&&9!==r)return t}while(++t<n);return n}function u(e,t,n){for(;t>n;){var r=e.charCodeAt(--t);if(32!==r&&9!==r)return t+1}return n}
25function c(e){return -1!==e.indexOf("%")?decodeURIComponent(e):e}},69103:(e,t,n)=>{var r=n(55729),i=n(27420).default,o={reactCompat:!0},a=r.version.split(".")[0]>=16,s=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:a,invertObject:function(e,t){if(!e||"object"!=typeof e)throw TypeError("First argument must be an object");var n,r,i="function"==typeof t,o={},a={};for(n in e){if(r=e[n],i&&(o=t(n,r))&&2===o.length){a[o[0]]=o[1];continue}"string"==typeof r&&(a[r]=n)}return a},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=i(e,o)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!s.has(e.name)},elementsWithNoTextChildren:s}},69124:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var o=n(41940),a=n(62076);i(n(62076),t);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=s),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:s,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?o.ElementType.Tag:void 0,r=new a.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===o.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new a.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===o.ElementType.Comment){this.lastNode.data+=e;return}var t=new a.Comment(e);this.addNode(t),this.lastNode=t},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new a.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},69478:(e,t,n)=>{"use strict";n.d(t,{F:()=>r});var r=function(e){return e.scrollTop}},70477:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return s},noSSR:function(){return a}});let r=n(14761);n(6029),n(55729);let i=r._(n(90026));function o(e){return{default:(null==e?void 0:e.default)||e}}function a(e,t){return delete t.webpack,delete t.modules,e(t)}function s(e,t){let n=i.default,r={loading:e=>{let{error:t,isLoading:n,pastDelay:r}=e;return null}};e instanceof Promise?r.loader=()=>e:"function"==typeof e?r.loader=e:"object"==typeof e&&(r={...r,...e});let s=(r={...r,...t}).loader;return(r.loadableGenerated&&(r={...r,...r.loadableGenerated},delete r.loadableGenerated),"boolean"!=typeof r.ssr||r.ssr)?n({...r,loader:()=>null!=s?s().then(o):Promise.resolve(o(()=>null))}):(delete r.webpack,delete r.modules,a(n,r))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
25dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},70717:(e,t,n)=>{"use strict";var r=n(51642).hp;Object.defineProperty(t,"__esModule",{value:!0}),t.convertToBuffer=void 0;var i=n(4769),o=void 0!==r&&r.from?function(e){return r.from(e,"utf8")}:i.fromUtf8;t.convertToBuffer=function(e){return e instanceof Uint8Array?e:"string"==typeof e?o(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}},70954:e=>{!function(){"use strict";var t={815:function(e){e.exports=function(e,n,r,i){n=n||"&",r=r||"=";var o={};if("string"!=typeof e||0===e.length)return o;var a=/\+/g;e=e.split(n);var s=1e3;i&&"number"==typeof i.maxKeys&&(s=i.maxKeys);var l=e.length;s>0&&l>s&&(l=s);for(var u=0;u<l;++u){var c,d,h,p,f=e[u].replace(a,"%20"),m=f.indexOf(r);(m>=0?(c=f.substr(0,m),d=f.substr(m+1)):(c=f,d=""),h=decodeURIComponent(c),p=decodeURIComponent(d),Object.prototype.hasOwnProperty.call(o,h))?t(o[h])?o[h].push(p):o[h]=[o[h],p]:o[h]=p}return o};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,o,a,s){return(o=o||"&",a=a||"=",null===e&&(e=void 0),"object"==typeof e)?r(i(e),function(i){var s=encodeURIComponent(t(i))+a;return n(e[i])?r(e[i],function(e){return s+encodeURIComponent(t(e))}).join(o):s+encodeURIComponent(t(e[i]))}).join(o):s?encodeURIComponent(t(s))+a+encodeURIComponent(t(e)):""};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function r(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var i=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},a=!0;try{t[e](o,o.exports,r),a=!1}finally{a&&delete n[e]}return o.exports}r.ab="//";var i={};i.decode=i.parse=r(815),i.encode=i.stringify=r(577),e.exports=i}()},70964:(e,t,n)=>{"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{A:()=>r})},71024:(e,t,n)=>{e.exports=n(70477)},71405:(e,t,n)=>{"use strict";n.d(t,{LX:()=>f,MA:()=>p,_W:()=>m,Lc:()=>v,Ms:()=>y});var r=n(93537),i=n(15368),o=n(85937);let a={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},u=function(e){let t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2)if(!l[e])return[e];else e=l[e];let[t,n]=e.split(""),r=a[t],i=s[n]||"";return Array.isArray(i)?i.map(e=>r+e):[r+i]}),c=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],h=[...c,...d];function p(e,t,n,r){var o;let a=null!=(o=(0,i.Yn)(e,t,!1))?o:n;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>void 0}function f(e){return p(e,"spacing",8,"spacing")}function m(e,t){if("string"==typeof t||null==t)return t;let n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function g(e,t){let n=f(e.theme);return Object.keys(e).map(i=>(function(e,t,n,i){var o;if(-1===t.indexOf(n))return null;let a=(o=u(n),e=>o.reduce((t,n)=>(t[n]=m(i,e),t),{})),s=e[n];return(0,r.NI)(e,s,a)})(e,t,i,n)).reduce(o.A,{})}function v(e){return g(e,c)}function y(e){return g(e,d)}function b(e){return g(e,h)}v.propTypes={},v.filterProps=c,y.propTypes={},y.filterProps=d,b.propTypes={},b.filterProps=h},72570:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>o,zd:()=>i});var r=n(55687),i=r.domToReact;r.htmlToDOM,r.attributesToProps,r.Comment,r.Element,r.ProcessingInstruction,r.Text;let o=r}
25,72588:(e,t,n)=>{"use strict";var r=n(48948);t.Ay=function(e={}){let{themeId:t,defaultTheme:n=m,rootShouldForwardProp:r=f,slotShouldForwardProp:l=f}=e,c=e=>(0,u.default)((0,i.default)({},e,{theme:v((0,i.default)({},e,{defaultTheme:n,themeId:t}))}));return c.__mui_systemSx=!0,(e,u={})=>{var d;let p;(0,a.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));let{name:m,slot:b,skipVariantsResolver:w,skipSx:S,overridesResolver:x=!(d=g(b))?null:(e,t)=>t[d]}=u,A=(0,o.default)(u,h),k=void 0!==w?w:b&&"Root"!==b&&"root"!==b||!1,E=S||!1,C=f;"Root"===b||"root"===b?C=r:b?C=l:"string"==typeof e&&e.charCodeAt(0)>96&&(C=void 0);let T=(0,a.default)(e,(0,i.default)({shouldForwardProp:C,label:p},A)),_=e=>"function"==typeof e&&e.__emotion_real!==e||(0,s.isPlainObject)(e)?r=>y(e,(0,i.default)({},r,{theme:v({theme:r.theme,defaultTheme:n,themeId:t})})):e,P=(r,...o)=>{let a=_(r),s=o?o.map(_):[];m&&x&&s.push(e=>{let r=v((0,i.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[m]||!r.components[m].styleOverrides)return null;let o=r.components[m].styleOverrides,a={};return Object.entries(o).forEach(([t,n])=>{a[t]=y(n,(0,i.default)({},e,{theme:r}))}),x(e,a)}),m&&!k&&s.push(e=>{var r;let o=v((0,i.default)({},e,{defaultTheme:n,themeId:t}));return y({variants:null==o||null==(r=o.components)||null==(r=r[m])?void 0:r.variants},(0,i.default)({},e,{theme:o}))}),E||s.push(c);let l=s.length-o.length;if(Array.isArray(r)&&l>0){let e=Array(l).fill("");(a=[...r,...e]).raw=[...r.raw,...e]}let u=T(a,...s);return e.muiName&&(u.muiName=e.muiName),u};return T.withConfig&&(P.withConfig=T.withConfig),P}};var i=r(n(87168)),o=r(n(97093)),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(82299)),s=n(80266);r(n(7836)),r(n(27530));var l=r(n(10679)),u=r(n(42024));let c=["ownerState"],d=["variants"],h=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function f(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}let m=(0,l.default)(),g=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function v({defaultTheme:e,theme:t,themeId:n}){return 0===Object.keys(t).length?e:t[n]||t}function y(e,t){let{ownerState:n}=t,r=(0,o.default)(t,c),a="function"==typeof e?e((0,i.default)({ownerState:n},r)):e;if(Array.isArray(a))return a.flatMap(e=>y(e,(0,i.default)({ownerState:n},r)));if(a&&"object"==typeof a&&Array.isArray(a.variants)){let{variants:e=[]}=a,t=(0,o.default)(a,d);return e.forEach(e=>{let o=!0;"function"==typeof e.props?o=e.props((0,i.default)({ownerState:n},r,n)):Object.keys(e.props).forEach(t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)}),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,i.default)({ownerState:n},r,n)):e.style))}),t}return a}},72756:(e,t)=>{"use strict";t.__esModule=!0,t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var u;return(void 0===t&&(t={}),!(u=e)||i.test(u)||n.test(u))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,l):e.replace(o,l)).replace(r,s))}},73373:(e,t,n)=>{"use strict";n.d(t,{Yq:()=>o,a6:()=>l,dG:()=>a,fA:()=>s});var r=n(74312),i=n.n(r);let o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"it";return new Date(e).toLocaleString(t,{day:"2-digit",month:"long",year:"numeric"})},a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"it-IT";return new Date(e).toLocaleString(t,{hour:"2-digit",minute:"2-digit"})},s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2010;for(var t=new Date().getFullYear(),n=[],r=t;r>=e;r--)n.push(r);return n};function l(e){return e.includes("T")?new Date(i()(e).format("YYYY-MM-DD")+"T"+a(e)+":00.000Z").toISOString():e}},73818:(e,t,n)=>{"use strict";function r(e,t){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,{A:()=>r})},74060:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,a={},s=function(e){return(e*=1)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e||"Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],c=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=a.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},h={A:[o,function(e){this.afternoon=d(e,!1)}],a:[o,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,l("seconds")],ss:[i,l("seconds")],m:[i,l("minutes")],mm:[i,l("minutes")],H:[i,l("hours")],h:[i,l("hours")],HH:[i,l("hours")],hh:[i,l("hours")],D:[i,l("day")],DD:[r,l("day")],Do:[o,function(e){var t=a.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],w:[i,l("week")],ww:[r,l("week")],M:[i,l("month")],MM:[r,l("month")],MM
25M:[o,function(e){var t=c("months"),n=(c("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[o,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,l("year")],Z:u,ZZ:u};return function(n,r,i){i.p.customParseFormat=!0,n&&n.parseTwoDigitYear&&(s=n.parseTwoDigitYear);var o=r.prototype,l=o.parse;o.parse=function(n){var r=n.date,o=n.utc,s=n.args;this.$u=o;var u=s[1];if("string"==typeof u){var c=!0===s[2],d=!0===s[3],p=s[2];d&&(p=s[2]),a=this.$locale(),!c&&p&&(a=i.Ls[p]),this.$d=function(n,r,i,o){try{if(["x","X"].indexOf(r)>-1)return new Date(("X"===r?1e3:1)*n);var s=(function(n){var r,i;r=n,i=a&&a.formats;for(var o=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})).match(t),s=o.length,l=0;l<s;l+=1){var u=o[l],c=h[u],d=c&&c[0],p=c&&c[1];o[l]=p?{regex:d,parser:p}:u.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;
25n+=1){var i=o[n];if("string"==typeof i)r+=i.length;else{var a=i.regex,l=i.parser,u=e.slice(r),c=a.exec(u)[0];l.call(t,c),e=e.replace(c,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}})(r)(n),l=s.year,u=s.month,c=s.day,d=s.hours,p=s.minutes,f=s.seconds,m=s.milliseconds,g=s.zone,v=s.week,y=new Date,b=c||(l||u?1:y.getDate()),w=l||y.getFullYear(),S=0;l&&!u||(S=u>0?u-1:y.getMonth());var x,A=d||0,k=p||0,E=f||0,C=m||0;return g?new Date(Date.UTC(w,S,b,A,k,E,C+60*g.offset*1e3)):i?new Date(Date.UTC(w,S,b,A,k,E,C)):(x=new Date(w,S,b,A,k,E,C),v&&(x=o(x).week(v).toDate()),x)}catch(e){return new Date("")}}(r,u,o,i),this.init(),p&&!0!==p&&(this.$L=this.locale(p).$L),(c||d)&&r!=this.format(u)&&(this.$d=new Date("")),a={}}else if(u instanceof Array)for(var f=u.length,m=1;m<=f;m+=1){s[1]=u[m-1];var g=i.apply(this,s);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}m===f&&(this.$d=new Date(""))}else l.call(this,n)}}}()},74077:(e,t,n)=>{"use strict";n.d(t,{A:()=>o}),n(55729);var r=n(33403),i=n(6029);let o=(0,r.A)((0,i.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},74095:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(1983),i=n(99410),o=n(55729),a=n(50212),s=n(17582),l=n(50787),u=n(52526),c=n(13046),d=n(16492),h=n(46720);function p(e){return(0,h.Ay)("MuiBackdrop",e)}(0,d.A)("MuiBackdrop",["root","invisible"]);var f=n(6029);let m=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],g=e=>{let{classes:t,invisible:n}=e;return(0,s.A)({root:["root",n&&"invisible"]},p,t)},v=(0,l.Ay)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(e=>{let{ownerState:t}=e;return(0,i.A)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})}),y=o.forwardRef(function(e,t){var n,o,s;let l=(0,u.b)({props:e,name:"MuiBackdrop"}),{children:d,className:h,component:p="div",components:y={},componentsProps:b={},invisible:w=!1,open:S,slotProps:x={},slots:A={},TransitionComponent:k=c.A,transitionDuration:E}=l,C=(0,r.A)(l,m),T=(0,i.A)({},l,{component:p,invisible:w}),_=g(T),P=null!=(n=x.root)?n:b.root;return(0,f.jsx)(k,(0,i.A)({in:S,timeout:E},C,{children:(0,f.jsx)(v,(0,i.A)({"aria-hidden":!0},P,{as:null!=(o=null!=(s=A.root)?s:y.Root)?o:p,className:(0,a.A)(_.root,h,null==P?void 0:P.className),ownerState:(0,i.A)({},T,null==P?void 0:P.ownerState),classes:_,ref:t,children:d}))}))})},74312:function(e){e.exports=function(){"use strict";var e="millisecond",t="second",n="minute",r="hour",i="week",o="month",a="quarter",s="year",l="date",u="Invalid Date",c=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},p="en",f={};f[p]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}};var m="$isDayjsObject",g=function(e){return e instanceof w||!(!e||!e[m])},v=function e(t,n,r){var i;if(!t)return p;if("string"==typeof t){var o=t.toLowerCase();f[o]&&(i=o),n&&(f[o]=n,i=o);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var s=t.name;f[s]=t,i=s}return!r&&i&&(p=i),i||!r&&p},y=function(e,t){if(g(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new w(n)},b={s:h,z:function(e){var t=-e.utcOffset(),n=Math.abs(t);return(t<=0?"+":"-")+h(Math.floor(n/60),2,"0")+":"+h(n%60,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,o),a=n-i<0,s=t.clone().add(r+(a?-1:1),o);return+(-(r+(n-i)/(a?i-s:s-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(u){return({M:o,y:s,w:i,d:"day",D:l,h:r,m:n,s:t,ms:e,Q:a})[u]||String(u||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};b.l=v,b.i=g,b.w=function(e,t){return y(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var w=function(){function h(e){this.$L=v(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[m]=!0}var p=h.prototype;return p.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(b.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(c);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},p.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},p.$utils=function(){return b},p.isValid=function(){return this.$d.toString()!==u},p.isSame=function(e,t){var n=y(e);return this.startOf(t)<=n&&n<=this.endOf(t)},p.isAfter=function(e,t){return y(e)<this.startOf(t)},p.isBefore=function(e,t){return this.endOf(t)<y(e)},p.$g=function(e,t,n){return b.u(e)?this[t]:this.set(n,e)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(e,a){var u=this,c=!!b.u(a)||a,d=b.p(e),h=function(e,t){var n=b.w(u.$u?Date.UTC(u.$y,t,e):new Date(u.$y,t,e),u);return c?n:n.endOf("day")},p=function(e,t){return b.w(u.toDate()[e].apply(u.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),u)},f=this.$W,m=this.$M,g=this.$D,v="set"+(this.$u?"UTC":"");switch(d){case s:return c?h(1,0):h(31,11);case o:return c?h(1,m):h(0,m+1);case i:var y=this.$locale().weekStart||0,w=(f<y?f+7:f)-y;return h(c?g-w:g+(6-w),m);case"day":case l:return p(v+"Hours",0);case r:return p(v+"Minutes",1);case n:return p(v+"Seconds",2);case t:return p(v+"Milliseconds",3);default:return this.clone()}},p.endOf=function(e){return this.startOf(e,!1)},p.$set=function(i,a){var u,c=b.p(i),d="set"+(this.$u?"UTC":""),h=((u={}).day=d+"Date",u[l]=d+"Date",u[o]=d+"Month",u[s]=d+"FullYear",u[r]=d+"Hours",u[n]=d+"Minutes",u[t]=d+"Seconds",u[e]=d+"Milliseconds",u)[c],p="day"===c?this.$D+(a-this.$W):a;if(c===o||c===s){var f=this.clone().set(l,1);f.$d[h](p),f.init(),this.$d=f.set(l,Math.min(this.$D,f.daysInMonth())).$d}else h&&this.$d[h](p);return this.init(),this},p.set=function(e,t){return this.clone().$set(e,t)},p.get=function(e){return this[b.p(e)]()},p.add=function(e,a){var l,u=this;e=Number(e);var c=b.p(a),d=function(t){var n=y(u);return b.w(n.date(n.date()+Math.round(t*e)),u)};if(c===o)return this.set(o,this.$M+e);if(c===s)return this.set(s,this.$y+e);if("day"===c)return d(1);if(c===i)return d(7);var h=((l={})[n]=6e4,l[r]=36e5,l[t]=1e3,l)[c]||1,p=this.$d.getTime()+e*h;return b.w(p,this)},p.subtract=function(e,t){return this.add(-1*e,t)},p.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||u;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=b.z(this),o=this.$H,a=this.$m,s=this.$M,l=n.weekdays,c=n.months,h=n.meridiem,p=function(e,n,i,o){return e&&(e[
25n]||e(t,r))||i[n].slice(0,o)},f=function(e){return b.s(o%12||12,e,"0")},m=h||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(d,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return b.s(t.$y,4,"0");case"M":return s+1;case"MM":return b.s(s+1,2,"0");case"MMM":return p(n.monthsShort,s,c,3);case"MMMM":return p(c,s);case"D":return t.$D;case"DD":return b.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return p(n.weekdaysMin,t.$W,l,2);case"ddd":return p(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(o);case"HH":return b.s(o,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return m(o,a,!0);case"A":return m(o,a,!1);case"m":return String(a);case"mm":return b.s(a,2,"0");case"s":return String(t.$s);case"ss":return b.s(t.$s,2,"0");case"SSS":return b.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},p.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},p.diff=function(e,l,u){var c,d=this,h=b.p(l),p=y(e),f=(p.utcOffset()-this.utcOffset())*6e4,m=this-p,g=function(){return b.m(d,p)};switch(h){case s:c=g()/12;break;case o:c=g();break;case a:c=g()/3;break;case i:c=(m-f)/6048e5;break;case"day":c=(m-f)/864e5;break;case r:c=m/36e5;break;case n:c=m/6e4;break;case t:c=m/1e3;break;default:c=m}return u?c:b.a(c)},p.daysInMonth=function(){return this.endOf(o).$D},p.$locale=function(){return f[this.$L]},p.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=v(e,t,!0);return r&&(n.$L=r),n},p.clone=function(){return b.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},h}(),S=w.prototype;return y.prototype=S,[["$ms",e],["$s",t],["$m",n],["$H",r],["$W","day"],["$M",o],["$y",s],["$D",l]].forEach(function(e){S[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),y.extend=function(e,t){return e.$i||(e(t,w,y),e.$i=!0),y},y.locale=v,y.isDayjs=g,y.unix=function(e){return y(1e3*e)},y.en=f[p],y.Ls=f,y.p={},y}()},74353:(e,t,n)=>{"use strict";e.exports=n(92858)},74441:(e,t,n)=>{var r=n(55729),i=n(53957),o=n(69103),a=o.setStyleProp,s=o.canTextBeChildOfNode;e.exports=function e(t,n){for(var l,u,c,d,h,p,f=(n=n||{}).library||r,m=f.cloneElement,g=f.createElement,v=f.isValidElement,y=[],b="function"==typeof n.replace,w=n.trim,S=0,x=t.length;S<x;S++){if(u=t[S],b&&v(d=n.replace(u))){x>1&&(d=m(d,{key:d.key||S})),y.push(d);continue}if("text"===u.type){if((c=!u.data.trim().length)&&u.parent&&!s(u.parent)||w&&c)continue;y.push(u.data);continue}switch(h=u.attribs,(l=u,o.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===l.type&&o.isCustomComponent(l.name,l.attribs))?a(h.style,h):h&&(h=i(h,u.name)),p=null,u.type){case"script":case"style":u.children[0]&&(h.dangerouslySetInnerHTML={__html:u.children[0].data});break;case"tag":"textarea"===u.name&&u.children[0]?h.defaultValue=u.children[0].data:u.children&&u.children.length&&(p=e(u.children,n));break;default:continue}x>1&&(h.key=S),y.push(g(u.name,h,p))}return 1===y.length?y[0]:y}},75119:(e,t,n)=>{"use strict";let r;n.d(t,{A:()=>ts});var i,o,a,s={};function l(e,t){return function(){return e.apply(t,arguments)}}n.r(s),n.d(s,{hasBrowserEnv:()=>ec,hasStandardBrowserEnv:()=>eh,hasStandardBrowserWebWorkerEnv:()=>ep,navigator:()=>ed,origin:()=>ef});var u=n(29143);let{toString:c}=Object.prototype,{getPrototypeOf:d}=Object,h=(e=>t=>{let n=c.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),p=e=>(e=e.toLowerCase(),t=>h(t)===e),f=e=>t=>typeof t===e,{isArray:m}=Array,g=f("undefined"),v=p("ArrayBuffer"),y=f("string"),b=f("function"),w=f("number"),S=e=>null!==e&&"object"==typeof e,x=e=>{if("object"!==h(e))return!1;let t=d(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},A=p("Date"),k=p("File"),E=p("Blob"),C=p("FileList"),T=p("URLSearchParams"),[_,P,M,I]=["ReadableStream","Request","Response","Headers"].map(p);function O(e,t,{allOwnKeys:n=!1}={}){let r,i;if(null!=e)if("object"!=typeof e&&(e=[e]),m(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{let i,o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;for(r=0;r<a;r++)i=o[r],t.call(null,e[i],i,e)}}function R(e,t){let n;t=t.toLowerCase();let r=Object.keys(e),i=r.length;for(;i-- >0;)if(t===(n=r[i]).toLowerCase())return n;return null}let D="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,L=e=>!g(e)&&e!==D,j=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&d(Uint8Array)),U=p("HTMLFormElement"),N=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),F=p("RegExp"),B=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};O(n,(n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)}),Object.defineProperties(e,r)},z=p("AsyncFunction"),$=(i="function"==typeof setImmediate,o=b(D.postMessage),i?setImmediate:o?((e,t)=>
25(D.addEventListener("message",({source:n,data:r})=>{n===D&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),D.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e)),V="undefined"!=typeof queueMicrotask?queueMicrotask.bind(D):void 0!==u&&u.nextTick||$,H={isArray:m,isArrayBuffer:v,isBuffer:function(e){return null!==e&&!g(e)&&null!==e.constructor&&!g(e.constructor)&&b(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||b(e.append)&&("formdata"===(t=h(e))||"object"===t&&b(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&v(e.buffer)},isString:y,isNumber:w,isBoolean:e=>!0===e||!1===e,isObject:S,isPlainObject:x,isReadableStream:_,isRequest:P,isResponse:M,isHeaders:I,isUndefined:g,isDate:A,isFile:k,isBlob:E,isRegExp:F,isFunction:b,isStream:e=>S(e)&&b(e.pipe),isURLSearchParams:T,isTypedArray:j,isFileList:C,forEach:O,merge:function e(){let{caseless:t}=L(this)&&this||{},n={},r=(r,i)=>{let o=t&&R(n,i)||i;x(n[o])&&x(r)?n[o]=e(n[o],r):x(r)?n[o]=e({},r):m(r)?n[o]=r.slice():n[o]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&O(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(O(t,(t,r)=>{n&&b(t)?e[r]=l(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,a,s={};if(t=t||{},null==e)return t;do{for(o=(i=Object.getOwnPropertyNames(e)).length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==n&&d(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:h,kindOfTest:p,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return -1!==r&&r===n},toArray:e=>{if(!e)return null;if(m(e))return e;let t=e.length;if(!w(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{let n,r=(e&&e[Symbol.iterator]).call(e);for(;(n=r.next())&&!n.done;){let r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let n,r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:U,hasOwnProperty:N,hasOwnProp:N,reduceDescriptors:B,freezeMethods:e=>{B(e,(t,n)=>{if(b(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;if(b(e[n])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(e,t)=>{let n={};return(m(e)?e:String(e).split(t)).forEach(e=>{n[e]=!0}),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:R,global:D,isContextDefined:L,isSpecCompliantForm:function(e){return!!(e&&b(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{let t=Array(10),n=(e,r)=>
25{if(S(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;let i=m(e)?[]:{};return O(e,(e,t)=>{let o=n(e,r+1);g(o)||(i[t]=o)}),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:z,isThenable:e=>e&&(S(e)||b(e))&&b(e.then)&&b(e.catch),setImmediate:$,asap:V};function W(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}H.inherits(W,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:H.toJSONObject(this.config),code:this.code,status:this.status}}});let G=W.prototype,q={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{q[e]={value:e}}),Object.defineProperties(W,q),Object.defineProperty(G,"isAxiosError",{value:!0}),W.from=(e,t,n,r,i,o)=>{let a=Object.create(G);return H.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),W.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};var Y=n(51642).hp;function K(e){return H.isPlainObject(e)||H.isArray(e)}function J(e){return H.endsWith(e,"[]")?e.slice(0,-2):e}function X(e,t,n){return e?e.concat(t).map(function(e,t){return e=J(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let Z=H.toFlatObject(H,{},null,function(e){return/^is[A-Z]/.test(e)}),Q=function(e,t,n){if(!H.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let r=(n=H.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!H.isUndefined(t[e])})).metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&H.isSpecCompliantForm(t);if(!H.isFunction(i))throw TypeError("visitor must be a function");function l(e){if(null===e)return"";if(H.isDate(e))return e.toISOString();if(!s&&H.isBlob(e))throw new W("Blob is not supported. Use a Buffer instead.");return H.isArrayBuffer(e)||H.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Y.from(e):e}function u(e,n,i){let s=e;if(e&&!i&&"object"==typeof e)if(H.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else{var u;if(H.isArray(e)&&(u=e,H.isArray(u)&&!u.some(K))||(H.isFileList(e)||H.endsWith(n,"[]"))&&(s=H.toArray(e)))return n=J(n),s.forEach(function(e,r){H.isUndefined(e)||null===e||t.append(!0===a?X([n],r,o):null===a?n:n+"[]",l(e))}),!1}return!!K(e)||(t.append(X(i,n,o),l(e)),!1)}let c=[],d=Object.assign(Z,{defaultVisitor:u,convertValue:l,isVisitable:K});if(!H.isObject(e))throw TypeError("data must be an object");return!function e(n,r){if(!H.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),H.forEach(n,function(n,o){!0===(!(H.isUndefined(n)||null===n)&&i.call(t,n,H.isString(o)?o.trim():o,r,d))&&e(n,r?r.concat(o):[o])}),c.pop()}}(e),t};function ee(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function et(e,t){this._pairs=[],e&&Q(e,this,t)}let en=et.prototype;function er(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ei(e,t,n){let r;if(!t)return e;let i=n&&n.encode||er;H.isFunction(n)&&(n={serialize:n});let o=n&&n.serialize;if(r=o?o(t,n):H.isURLSearchParams(t)?t.toString():new et(t,n).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}en.append=function(e,t){this._pairs.push([e,t])},en.toString=function(e){let t=e?function(t){return e.call(this,t,ee)}:ee;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class eo{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){H.forEach(this.handlers,function(t){null!==t&&e(t)})}}let ea={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},es="undefined"!=typeof URLSearchParams?URLSearchParams:et,el="undefined"!=typeof FormData?FormData:null,eu="undefined"!=typeof Blob?Blob:null,ec="undefined"!=typeof window&&"undefined"!=typeof document,ed="object"==typeof navigator&&navigator||void 0,eh=ec&&(!ed||0>["ReactNative","NativeScript","NS"].indexOf(ed.product)),ep="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ef=ec&&window.location.href||"http://localhost",em={...s,isBrowser:!0,classes:{
25URLSearchParams:es,FormData:el,Blob:eu},protocols:["http","https","file","blob","url","data"]},eg=function(e){if(H.isFormData(e)&&H.isFunction(e.entries)){let t={};return H.forEachEntry(e,(e,n)=>{!function e(t,n,r,i){let o=t[i++];if("__proto__"===o)return!0;let a=Number.isFinite(+o),s=i>=t.length;return(o=!o&&H.isArray(r)?r.length:o,s)?H.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n:(r[o]&&H.isObject(r[o])||(r[o]=[]),e(t,n,r[o],i)&&H.isArray(r[o])&&(r[o]=function(e){let t,n,r={},i=Object.keys(e),o=i.length;for(t=0;t<o;t++)r[n=i[t]]=e[n];return r}(r[o]))),!a}(H.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),n,t,0)}),t}return null},ev={transitional:ea,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n,r=t.getContentType()||"",i=r.indexOf("application/json")>-1,o=H.isObject(e);if(o&&H.isHTMLForm(e)&&(e=new FormData(e)),H.isFormData(e))return i?JSON.stringify(eg(e)):e;if(H.isArrayBuffer(e)||H.isBuffer(e)||H.isStream(e)||H.isFile(e)||H.isBlob(e)||H.isReadableStream(e))return e;if(H.isArrayBufferView(e))return e.buffer;if(H.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1){var a,s;return(a=e,s=this.formSerializer,Q(a,new em.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return em.isNode&&H.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},s))).toString()}if((n=H.isFileList(e))||r.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return Q(n?{"files[]":e}:e,t&&new t,this.formSerializer)}}if(o||i){t.setContentType("application/json",!1);var l=e;if(H.isString(l))try{return(0,JSON.parse)(l),H.trim(l)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(l)}return e}],transformResponse:[function(e){let t=this.transitional||ev.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(H.isResponse(e)||H.isReadableStream(e))return e;if(e&&H.isString(e)&&(n&&!this.responseType||r)){let n=t&&t.silentJSONParsing;try{return JSON.parse(e)}catch(e){if(!n&&r){if("SyntaxError"===e.name)throw W.from(e,W.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:em.classes.FormData,Blob:em.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};H.forEach(["delete","get","head","post","put","patch"],e=>{ev.headers[e]={}});let ey=H.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),eb=e=>{let t,n,r,i={};return e&&e.split("\n").forEach(function(e){r=e.indexOf(":"),t=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!t||i[t]&&ey[t]||("set-cookie"===t?i[t]?i[t].push(n):i[t]=[n]:i[t]=i[t]?i[t]+", "+n:n)}),i},ew=Symbol("internals");function eS(e){return e&&String(e).trim().toLowerCase()}function ex(e){return!1===e||null==e?e:H.isArray(e)?e.map(ex):String(e)}let eA=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ek(e,t,n,r,i){if(H.isFunction(r))return r.call(this,t,n);if(i&&(t=n),H.isString(t)){if(H.isString(r))return -1!==t.indexOf(r);if(H.isRegExp(r))return r.test(t)}}class eE{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=eS(t);if(!i)throw Error("header name must be a non-empty string");let o=H.findKey(r,i);o&&void 0!==r[o]&&!0!==n&&(void 0!==n||!1===r[o])||(r[o||t]=ex(e))}let o=(e,t)=>H.forEach(e,(e,n)=>i(e,n,t));if(H.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(H.isString(e)&&(e=e.trim())&&!eA(e))o(eb(e),t);else if(H.isHeaders(e))for(let[t,r]of e.entries())i(r,t,n);else null!=e&&i(t,e,n);return this}get(e,t){if(e=eS(e)){let n=H.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(!0===t){let t,n=Object.create(null),r=/([^\s,;
25=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=r.exec(e);)n[t[1]]=t[2];return n}if(H.isFunction(t))return t.call(this,e,n);if(H.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=eS(e)){let n=H.findKey(this,e);return!!(n&&void 0!==this[n]&&(!t||ek(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=eS(e)){let i=H.findKey(n,e);i&&(!t||ek(n,n[i],i,t))&&(delete n[i],r=!0)}}return H.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||ek(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return H.forEach(this,(r,i)=>{let o=H.findKey(n,i);if(o){t[o]=ex(r),delete t[i];return}let a=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n):String(i).trim();a!==i&&delete t[i],t[a]=ex(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return H.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&H.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[ew]=this[ew]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=eS(e);if(!t[r]){let i=H.toCamelCase(" "+e);["get","set","has"].forEach(t=>{Object.defineProperty(n,t+i,{value:function(n,r,i){return this[t].call(this,e,n,r,i)},configurable:!0})}),t[r]=!0}}return H.isArray(e)?e.forEach(r):r(e),this}}function eC(e,t){let n=this||ev,r=t||n,i=eE.from(r.headers),o=r.data;return H.forEach(e,function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function eT(e){return!!(e&&e.__CANCEL__)}function e_(e,t,n){W.call(this,null==e?"canceled":e,W.ERR_CANCELED,t,n),this.name="CanceledError"}function eP(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new W("Request failed with status code "+n.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}eE.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),H.reduceDescriptors(eE.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),H.freezeMethods(eE),H.inherits(e_,W,{__CANCEL__:!0});let eM=function(e,t){let n,r=Array(e=e||10),i=Array(e),o=0,a=0;return t=void 0!==t?t:1e3,function(s){let l=Date.now(),u=i[a];n||(n=l),r[o]=s,i[o]=l;let c=a,d=0;for(;c!==o;)d+=r[c++],c%=e;if((o=(o+1)%e)===a&&(a=(a+1)%e),l-n<t)return;let h=u&&l-u;return h?Math.round(1e3*d/h):void 0}},eI=function(e,t){let n,r,i=0,o=1e3/t,a=(t,o=Date.now())=>{i=o,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{let t=Date.now(),s=t-i;s>=o?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},o-s)))},()=>n&&a(n)]},eO=(e,t,n=3)=>{let r=0,i=eM(50,250);return eI(n=>{let o=n.loaded,a=n.lengthComputable?n.total:void 0,s=o-r,l=i(s);r=o,e({loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&o<=a?(a-o)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},eR=(e,t)=>{let n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},eD=e=>(...t)=>H.asap(()=>e(...t)),eL=em.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,em.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(em.origin),em.navigator&&/(msie|trident)/i.test(em.navigator.userAgent)):()=>!0,ej=em.hasStandardBrowserEnv?{write(e,t,n,r,i,o){let a=[e+"="+encodeURIComponent(t)];H.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),H.isString(r)&&a.push("path="+r),H.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){let t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};
25function eU(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||!1==n)?t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e:t}let eN=e=>e instanceof eE?{...e}:e;function eF(e,t){t=t||{};let n={};function r(e,t,n,r){return H.isPlainObject(e)&&H.isPlainObject(t)?H.merge.call({caseless:r},e,t):H.isPlainObject(t)?H.merge({},t):H.isArray(t)?t.slice():t}function i(e,t,n,i){return H.isUndefined(t)?H.isUndefined(e)?void 0:r(void 0,e,n,i):r(e,t,n,i)}function o(e,t){if(!H.isUndefined(t))return r(void 0,t)}function a(e,t){return H.isUndefined(t)?H.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}let l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>i(eN(e),eN(t),n,!0)};return H.forEach(Object.keys(Object.assign({},e,t)),function(r){let o=l[r]||i,a=o(e[r],t[r],r);H.isUndefined(a)&&o!==s||(n[r]=a)}),n}let eB=e=>{let t,n=eF({},e),{data:r,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=n;if(n.headers=s=eE.from(s),n.url=ei(eU(n.baseURL,n.url,n.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),H.isFormData(r)){if(em.hasStandardBrowserEnv||em.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(t=s.getContentType())){let[e,...n]=t?t.split(";").map(e=>e.trim()).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...n].join("; "))}}if(em.hasStandardBrowserEnv&&(i&&H.isFunction(i)&&(i=i(n)),i||!1!==i&&eL(n.url))){let e=o&&a&&ej.read(a);e&&s.set(o,e)}return n},ez="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let r,i,o,a,s,l=eB(e),u=l.data,c=eE.from(l.headers).normalize(),{responseType:d,onUploadProgress:h,onDownloadProgress:p}=l;function f(){a&&a(),s&&s(),l.cancelToken&&l.cancelToken.unsubscribe(r),l.signal&&l.signal.removeEventListener("abort",r)}let m=new XMLHttpRequest;function g(){if(!m)return;let r=eE.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());eP(function(e){t(e),f()},function(e){n(e),f()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(l.method.toUpperCase(),l.url,!0),m.timeout=l.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new W("Request aborted",W.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new W("Network Error",W.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded",r=l.transitional||ea;l.timeoutErrorMessage&&(t=l.timeoutErrorMessage),n(new W(t,r.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,m)),m=null},void 0===u&&c.setContentType(null),"setRequestHeader"in m&&H.forEach(c.toJSON(),function(e,t){m.setRequestHeader(t,e)}),H.isUndefined(l.withCredentials)||(m.withCredentials=!!l.withCredentials),d&&"json"!==d&&(m.responseType=l.responseType),p&&([o,s]=eO(p,!0),m.addEventListener("progress",o)),h&&m.upload&&([i,a]=eO(h),m.upload.addEventListener("progress",i),m.upload.addEventListener("loadend",a)),(l.cancelToken||l.signal)&&(r=t=>{m&&(n(!t||t.type?new e_(null,e,m):t),m.abort(),m=null)},l.cancelToken&&l.cancelToken.subscribe(r),l.signal&&(l.signal.aborted?r():l.signal.addEventListener("abort",r)));let v=function(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(l.url);if(v&&-1===em.protocols.indexOf(v))return void n(new W("Unsupported protocol "+v+":",W.ERR_BAD_REQUEST,e));m.send(u||null)})},e$=(e,t)=>{let{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController,i=function(e){if(!n){n=!0,a();let t=e instanceof Error?e:this.reason;r.abort(t instanceof W?t:new e_(t instanceof Error?t.message:t))}},o=t&&setTimeout(()=>{o=null,i(new W(`timeout ${t} of ms exceeded`,W.ETIMEDOUT))},t),a=()=>
25{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>e.addEventListener("abort",i));let{signal:s}=r;return s.unsubscribe=()=>H.asap(a),s}},eV=function*(e,t){let n,r=e.byteLength;if(!t||r<t)return void(yield e);let i=0;for(;i<r;)n=i+t,yield e.slice(i,n),i=n},eH=async function*(e,t){for await(let n of eW(e))yield*eV(n,t)},eW=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},eG=(e,t,n,r)=>{let i,o=eH(e,t),a=0,s=e=>{!i&&(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await o.next();if(t){s(),e.close();return}let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},eq="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,eY=eq&&"function"==typeof ReadableStream,eK=eq&&("function"==typeof TextEncoder?(r=new TextEncoder,e=>r.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer())),eJ=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},eX=eY&&eJ(()=>{let e=!1,t=new Request(em.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),eZ=eY&&eJ(()=>H.isReadableStream(new Response("").body)),eQ={stream:eZ&&(e=>e.body)};eq&&(a=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{eQ[e]||(eQ[e]=H.isFunction(a[e])?t=>t[e]():(t,n)=>{throw new W(`Response type '${e}' is not supported`,W.ERR_NOT_SUPPORT,n)})}));let e0=async e=>{if(null==e)return 0;if(H.isBlob(e))return e.size;if(H.isSpecCompliantForm(e)){let t=new Request(em.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return H.isArrayBufferView(e)||H.isArrayBuffer(e)?e.byteLength:(H.isURLSearchParams(e)&&(e+=""),H.isString(e))?(await eK(e)).byteLength:void 0},e1=async(e,t)=>{let n=H.toFiniteNumber(e.getContentLength());return null==n?e0(t):n},e2={http:null,xhr:ez,fetch:eq&&(async e=>{let t,n,{url:r,method:i,data:o,signal:a,cancelToken:s,timeout:l,onDownloadProgress:u,onUploadProgress:c,responseType:d,headers:h,withCredentials:p="same-origin",fetchOptions:f}=eB(e);d=d?(d+"").toLowerCase():"text";let m=e$([a,s&&s.toAbortSignal()],l),g=m&&m.unsubscribe&&(()=>{m.unsubscribe()});try{if(c&&eX&&"get"!==i&&"head"!==i&&0!==(n=await e1(h,o))){let e,t=new Request(r,{method:"POST",body:o,duplex:"half"});if(H.isFormData(o)&&(e=t.headers.get("content-type"))&&h.setContentType(e),t.body){let[e,r]=eR(n,eO(eD(c)));o=eG(t.body,65536,e,r)}}H.isString(p)||(p=p?"include":"omit");let a="credentials"in Request.prototype;t=new Request(r,{...f,signal:m,method:i.toUpperCase(),headers:h.normalize().toJSON(),body:o,duplex:"half",credentials:a?p:void 0});let s=await fetch(t),l=eZ&&("stream"===d||"response"===d);if(eZ&&(u||l&&g)){let e={};["status","statusText","headers"].forEach(t=>{e[t]=s[t]});let t=H.toFiniteNumber(s.headers.get("content-length")),[n,r]=u&&eR(t,eO(eD(u),!0))||[];s=new Response(eG(s.body,65536,n,()=>{r&&r(),g&&g()}),e)}d=d||"text";let v=await eQ[H.findKey(eQ,d)||"text"](s,e);return!l&&g&&g(),await new Promise((n,r)=>{eP(n,r,{data:v,headers:eE.from(s.headers),status:s.status,statusText:s.statusText,config:e,request:t})})}catch(n){if(g&&g(),n&&"TypeError"===n.name&&/fetch/i.test(n.message))throw Object.assign(new W("Network Error",W.ERR_NETWORK,e,t),{cause:n.cause||n});throw W.from(n,n&&n.code,e,t)}})};H.forEach(e2,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let e5=e=>`- ${e}`,e4=e=>H.isFunction(e)||null===e||!1===e,e3={getAdapter:e=>{let t,n,{length:r}=e=H.isArray(e)?e:[e],i={};for(let o=0;o<r;o++){let r;if(n=t=e[o],!e4(t)&&void 0===(n=e2[(r=String(t)).toLowerCase()]))throw new W(`Unknown adapter '${r}'`);if(n)break;i[r||"#"+o]=n}if(!n){let e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new W("There is no suitable adapter to dispatch the request "+(r?e.length>
251?"since :\n"+e.map(e5).join("\n"):" "+e5(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n}};function e6(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new e_(null,e)}function e9(e){return e6(e),e.headers=eE.from(e.headers),e.data=eC.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),e3.getAdapter(e.adapter||ev.adapter)(e).then(function(t){return e6(e),t.data=eC.call(e,e.transformResponse,t),t.headers=eE.from(t.headers),t},function(t){return!eT(t)&&(e6(e),t&&t.response&&(t.response.data=eC.call(e,e.transformResponse,t.response),t.response.headers=eE.from(t.response.headers))),Promise.reject(t)})}let e8="1.8.4",e7={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{e7[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let te={};e7.transitional=function(e,t,n){function r(e,t){return"[Axios v"+e8+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new W(r(i," has been removed"+(t?" in "+t:"")),W.ERR_DEPRECATED);return t&&!te[i]&&(te[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}},e7.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};let tt={assertOptions:function(e,t,n){if("object"!=typeof e)throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let o=r[i],a=t[o];if(a){let t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new W("option "+o+" must be "+n,W.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new W("Unknown option "+o,W.ERR_BAD_OPTION)}},validators:e7},tn=tt.validators;class tr{constructor(e){this.defaults=e,this.interceptors={request:new eo,response:new eo}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){let n,r;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:i,paramsSerializer:o,headers:a}=t=eF(this.defaults,t);void 0!==i&&tt.assertOptions(i,{silentJSONParsing:tn.transitional(tn.boolean),forcedJSONParsing:tn.transitional(tn.boolean),clarifyTimeoutError:tn.transitional(tn.boolean)},!1),null!=o&&(H.isFunction(o)?t.paramsSerializer={serialize:o}:tt.assertOptions(o,{encode:tn.function,serialize:tn.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),tt.assertOptions(t,{baseUrl:tn.spelling("baseURL"),withXsrfToken:tn.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=a&&H.merge(a.common,a[t.method]);a&&H.forEach(["delete","get","head","post","put","patch","common"],e=>{delete a[e]}),t.headers=eE.concat(s,a);let l=[],u=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(u=u&&e.synchronous,l.unshift(e.fulfilled,e.rejected))});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let d=0;if(!u){let e=[e9.bind(this),void 0];for(e.unshift.apply(e,l),e.push.apply(e,c),r=e.length,n=Promise.resolve(t);d<r;)n=n.then(e[d++],e[d++]);return n}r=l.length;let h=t;for(d=0;d<r;){let e=l[d++],t=l[d++];try{h=e(h)}catch(e){t.call(this,e);break}}try{n=e9.call(this,h)}catch(e){return Promise.reject(e)}for(d=0,r=c.length;d<r;)n=n.then(c[d++],c[d++]);return n}getUri(e){return ei(eU((e=eF(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}H.forEach(["delete","get","head","options"],function(e){tr.prototype[e]=function(t,n){return this.request(eF(n||{},{method:e,url:t,data:(n||{}).data}))}}),H.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,i){return this.request(eF(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}tr.prototype[e]=t(),tr.prototype[e+"Form"]=t(!0)});class ti{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new e_(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
25subscribe(e){if(this.reason)return void e(this.reason);this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new ti(function(t){e=t}),cancel:e}}}let to={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(to).forEach(([e,t])=>{to[t]=e});let ta=function e(t){let n=new tr(t),r=l(tr.prototype.request,n);return H.extend(r,tr.prototype,n,{allOwnKeys:!0}),H.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(eF(t,n))},r}(ev);ta.Axios=tr,ta.CanceledError=e_,ta.CancelToken=ti,ta.isCancel=eT,ta.VERSION=e8,ta.toFormData=Q,ta.AxiosError=W,ta.Cancel=ta.CanceledError,ta.all=function(e){return Promise.all(e)},ta.spread=function(e){return function(t){return e.apply(null,t)}},ta.isAxiosError=function(e){return H.isObject(e)&&!0===e.isAxiosError},ta.mergeConfig=eF,ta.AxiosHeaders=eE,ta.formToJSON=e=>eg(H.isHTMLForm(e)?new FormData(e):e),ta.getAdapter=e3.getAdapter,ta.HttpStatusCode=to,ta.default=ta;let ts=ta},75233:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(1983),i=n(99410),o=n(55729),a=n(50212),s=n(46720),l=n(17582),u=n(22538),c=n(21446),d=n(4894),h=n(93479),p=n(6029);let f=["className","component","disableGutters","fixed","maxWidth","classes"],m=(0,h.A)(),g=(0,d.A)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`maxWidth${(0,u.A)(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),v=e=>(0,c.A)({props:e,name:"MuiContainer",defaultTheme:m}),y=(e,t)=>{let{classes:n,fixed:r,disableGutters:i,maxWidth:o}=e,a={root:["root",o&&`maxWidth${(0,u.A)(String(o))}`,r&&"fixed",i&&"disableGutters"]};return(0,l.A)(a,e=>(0,s.Ay)(t,e),n)};var b=n(37597),w=n(50787),S=n(52526);let x=function(e={}){let{createStyledComponent:t=g,useThemeProps:n=v,componentName:s="MuiContainer"}=e,l=t(({theme:e,ownerState:t})=>(0,i.A)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}),({theme:e,ownerState:t})=>t.fixed&&Object.keys(e.breakpoints.values).reduce((t,n)=>{let r=e.breakpoints.values[n];return 0!==r&&(t[e.breakpoints.up(n)]={maxWidth:`${r}${e.breakpoints.unit}`}),t},{}),({theme:e,ownerState:t})=>(0,i.A)({},"xs"===t.maxWidth&&{[e.breakpoints.up("xs")]:{maxWidth:Math.max(e.breakpoints.values.xs,444)}},t.maxWidth&&"xs"!==t.maxWidth&&{[e.breakpoints.up(t.maxWidth)]:{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`}}));return o.forwardRef(function(e,t){let o=n(e),{className:u,component:c="div",disableGutters:d=!1,fixed:h=!1,maxWidth:m="lg"}=o,g=(0,r.A)(o,f),v=(0,i.A)({},o,{component:c,disableGutters:d,fixed:h,maxWidth:m}),b=y(v,s);return(0,p.jsx)(l,(0,i.A)({as:c,ownerState:v,className:(0,a.A)(b.root,u),ref:t},g))})}({createStyledComponent:(0,w.Ay)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t["maxWidth".concat((0,b.A)(String(n.maxWidth)))],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>(0,S.b)({props:e,name:"MuiContainer"})})},76047:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1983),i=n(99410);let o=["values","unit","step"],a=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}
25))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>(0,i.A)({},e,{[t.key]:t.val}),{})};function s(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:s=5}=e,l=(0,r.A)(e,o),u=a(t),c=Object.keys(u);function d(e){let r="number"==typeof t[e]?t[e]:e;return`@media (min-width:${r}${n})`}function h(e){let r="number"==typeof t[e]?t[e]:e;return`@media (max-width:${r-s/100}${n})`}function p(e,r){let i=c.indexOf(r);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[c[i]]?t[c[i]]:r)-s/100}${n})`}return(0,i.A)({keys:c,values:u,up:d,down:h,between:p,only:function(e){return c.indexOf(e)+1<c.length?p(e,c[c.indexOf(e)+1]):d(e)},not:function(e){let t=c.indexOf(e);return 0===t?d(c[1]):t===c.length-1?h(c[t]):p(e,c[c.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},l)}},76572:(e,t,n)=>{"use strict";n.d(t,{G7:()=>s,uV:()=>l});let r=()=>"it-IT".split("-")[0]||"it",i={websites:{it:{language:"it",domain:"treccani.it",features:{userLogin:!0,enhancedSearchBar:!1,emporium:!0,hasEncyclopaedia:!0,hasVocabulary:!0,hasSynonyms:!0,hasBiographical:!0,hasAuthorLink:!0,hasDownloadAppLinks:!0}},en:{language:"en",domain:"treccani.com",features:{userLogin:!1,enhancedSearchBar:!1,emporium:!0,hasEncyclopaedia:!0,hasVocabulary:!1,hasSynonyms:!1,hasBiographical:!1,hasAuthorLink:!1,hasDownloadAppLinks:!1}}}},o=()=>r(),a=e=>{let t=e||o();return i.websites[t]||i.websites.it},s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a(t.forLanguage).features[e]},l=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return s(e,r)?t:n}},77213:(e,t,n)=>{"use strict";n.d(t,{P:()=>iq});var r=n(55729);let i=(0,r.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),o=(0,r.createContext)({}),a=(0,r.createContext)(null),s="undefined"!=typeof document,l=s?r.useLayoutEffect:r.useEffect,u=(0,r.createContext)({strict:!1}),c=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),d="data-"+c("framerAppearId");function h(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function p(e){return"string"==typeof e||Array.isArray(e)}function f(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}let m=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],g=["initial",...m];function v(e){return f(e.animate)||g.some(t=>p(e[t]))}function y(e){return!!(v(e)||e.variants)}function b(e){return Array.isArray(e)?e.join(" "):e}let w={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"]},S={};for(let e in w)S[e]={isEnabled:t=>w[e].some(e=>!!t[e])};let x=(0,r.createContext)({}),A=(0,r.createContext)({}),k=Symbol.for("motionComponentSymbol"),E=["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 C(e){if("string"!=typeof e||e.includes("-"));else if(E.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let T={},_=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],P=new Set(_);function M(e,{layout:t,layoutId:n}){return P.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!T[e]||"opacity"===e)}let I=e=>!!(e&&e.getVelocity),O={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},R=_.length,D=e=>t=>"string"==typeof t&&t.startsWith(e),L=D("--"),j=D("var(--"),U=(e,t)=>t&&"number"==typeof e?t.transform(e):e,N=(e,t,n)=>Math.min(Math.max(n,e),t),F={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},B={...F,transform:e=>N(0,1,e)},z={...F,default:1},$=e=>
25Math.round(1e5*e)/1e5,V=/(-)?([\d]*\.?[\d])+/g,H=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,W=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function G(e){return"string"==typeof e}let q=e=>({test:t=>G(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Y=q("deg"),K=q("%"),J=q("px"),X=q("vh"),Z=q("vw"),Q={...K,parse:e=>K.parse(e)/100,transform:e=>K.transform(100*e)},ee={...F,transform:Math.round},et={borderWidth:J,borderTopWidth:J,borderRightWidth:J,borderBottomWidth:J,borderLeftWidth:J,borderRadius:J,radius:J,borderTopLeftRadius:J,borderTopRightRadius:J,borderBottomRightRadius:J,borderBottomLeftRadius:J,width:J,maxWidth:J,height:J,maxHeight:J,size:J,top:J,right:J,bottom:J,left:J,padding:J,paddingTop:J,paddingRight:J,paddingBottom:J,paddingLeft:J,margin:J,marginTop:J,marginRight:J,marginBottom:J,marginLeft:J,rotate:Y,rotateX:Y,rotateY:Y,rotateZ:Y,scale:z,scaleX:z,scaleY:z,scaleZ:z,skew:Y,skewX:Y,skewY:Y,distance:J,translateX:J,translateY:J,translateZ:J,x:J,y:J,z:J,perspective:J,transformPerspective:J,opacity:B,originX:Q,originY:Q,originZ:J,zIndex:ee,fillOpacity:B,strokeOpacity:B,numOctaves:ee};function en(e,t,n,r){let{style:i,vars:o,transform:a,transformOrigin:s}=e,l=!1,u=!1,c=!0;for(let e in t){let n=t[e];if(L(e)){o[e]=n;continue}let r=et[e],d=U(n,r);if(P.has(e)){if(l=!0,a[e]=d,!c)continue;n!==(r.default||0)&&(c=!1)}else e.startsWith("origin")?(u=!0,s[e]=d):i[e]=d}if(!t.transform&&(l||r?i.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let t=0;t<R;t++){let n=_[t];if(void 0!==e[n]){let t=O[n]||n;o+=`${t}(${e[n]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,r?"":o):n&&r&&(o="none"),o}(e.transform,n,c,r):i.transform&&(i.transform="none")),u){let{originX:e="50%",originY:t="50%",originZ:n=0}=s;i.transformOrigin=`${e} ${t} ${n}`}}let er=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ei(e,t,n){for(let r in t)I(t[r])||M(r,n)||(e[r]=t[r])}let eo=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ea(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||eo.has(e)}let es=e=>!ea(e);try{!function(e){e&&(es=t=>t.startsWith("on")?!ea(t):e(t))}(require("@emotion/is-prop-valid").default)}catch(e){}function el(e,t,n){return"string"==typeof e?e:J.transform(t+n*e)}let eu={offset:"stroke-dashoffset",array:"stroke-dasharray"},ec={offset:"strokeDashoffset",array:"strokeDasharray"};function ed(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},c,d,h){if(en(e,u,c,h),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:p,style:f,dimensions:m}=e;p.transform&&(m&&(f.transform=p.transform),delete p.transform),m&&(void 0!==i||void 0!==o||f.transform)&&(f.transformOrigin=function(e,t,n){let r=el(t,e.x,e.width),i=el(n,e.y,e.height);return`${r} ${i}`}(m,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==t&&(p.x=t),void 0!==n&&(p.y=n),void 0!==r&&(p.scale=r),void 0!==a&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let o=i?eu:ec;e[o.offset]=J.transform(-r);let a=J.transform(t),s=J.transform(n);e[o.array]=`${a} ${s}`}(p,a,s,l,!1)}let eh=()=>({...er(),attrs:{}}),ep=e=>"string"==typeof e&&"svg"===e.toLowerCase();function ef(e,{style:t,vars:n},r,i){for(let o in Object.assign(e.style,t,i&&i.getProjectionStyles(r)),n)e.style.setProperty(o,n[o])}let em=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"]);function eg(e,t,n,r){for(let n in ef(e,t,void 0,r),t.attrs)e.setAttribute(em.has(n)?n:c(n),t.attrs[n])}function ev(e,t){let{style:n}=e,r={};for(let i in n)(I(n[i])||t.style&&I(t.style[i])||M(i,e))&&(r[i]=n[i]);return r}function ey(e,t){let n=ev(e,t);for(let r in e)(I(e[r])||I(t[r]))&&(n[-1!==_.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return n}function eb(e,t,n,r={},i={}
25){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),t}let ew=e=>Array.isArray(e),eS=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),ex=e=>ew(e)?e[e.length-1]||0:e;function eA(e){let t=I(e)?e.get():e;return eS(t)?t.toValue():t}let ek=e=>(t,n)=>{let i=(0,r.useContext)(o),s=(0,r.useContext)(a),l=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){let a={latestValues:function(e,t,n,r){let i={},o=r(e,{});for(let e in o)i[e]=eA(o[e]);let{initial:a,animate:s}=e,l=v(e),u=y(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial,d=(c=c||!1===a)?s:a;return d&&"boolean"!=typeof d&&!f(d)&&(Array.isArray(d)?d:[d]).forEach(t=>{let n=eb(e,t);if(!n)return;let{transitionEnd:r,transition:o,...a}=n;for(let e in a){let t=a[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let e in r)i[e]=r[e]}),i}(r,i,o,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a})(e,t,i,s);return n?l():function(e){let t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}(l)};var eE=n(8563);class eC{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){let t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}let eT=["prepare","read","update","preRender","render","postRender"],{schedule:e_,cancel:eP,state:eM,steps:eI}=function(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},o=eT.reduce((e,t)=>(e[t]=function(e){let t=new eC,n=new eC,r=0,i=!1,o=!1,a=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{let l=s&&i,u=l?t:n;return o&&a.add(e),u.add(e)&&l&&i&&(r=t.order.length),e},cancel:e=>{n.remove(e),a.delete(e)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length)for(let n=0;n<r;n++){let r=t.order[n];r(l),a.has(r)&&(s.schedule(r),e())}i=!1,o&&(o=!1,s.process(l))}};return s}(()=>n=!0),e),{}),a=e=>o[e].process(i),s=()=>{let o=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,40),1),i.timestamp=o,i.isProcessing=!0,eT.forEach(a),i.isProcessing=!1,n&&t&&(r=!1,e(s))},l=()=>{n=!0,r=!0,i.isProcessing||e(s)};return{schedule:eT.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||l(),r.schedule(e,t,i)),e},{}),cancel:e=>eT.forEach(t=>o[t].cancel(e)),state:i,steps:o}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:eE.l,!0),eO={useVisualState:ek({scrapeMotionValuesFromProps:ey,createRenderState:eh,onMount:(e,t,{renderState:n,latestValues:r})=>{e_.read(()=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}}),e_.render(()=>{ed(n,r,{enableHardwareAcceleration:!1},ep(t.tagName),e.transformTemplate),eg(t,n)})}})},eR={useVisualState:ek({scrapeMotionValuesFromProps:ev,createRenderState:er})};function eD(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}let eL=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function ej(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}let eU=e=>t=>eL(t)&&e(t,ej(t));function eN(e,t,n,r){return eD(e,t,eU(n),r)}let eF=(e,t)=>n=>t(e(n)),eB=(...e)=>e.reduce(eF);function ez(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let e$=ez("dragHorizontal"),eV=ez("dragVertical");function eH(e){let t=!1;if("y"===e)t=eV();else if("x"===e)t=e$();else{let e=e$(),n=eV();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function eW(){let e=eH(!0);return!e||(e(),!1)}class eG{constructor(e){this.isMounted=!1,this.node=e}update(){}}function eq(e,t){let n="onHover"+(t?"Start":"End");return eN(e.current,"pointer"+(t?"enter":"leave"),(r,i)=>{if("touch"===r.pointerType||eW())return;let o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",t),o[n]&&e_.update(()=>o[n](r,i))},{passive:!e.getProps()[n]})}class eY extends eG{mount(){this.unmount=eB(eq(this.node,!0),eq(this.node,!1))}unmount(){}}class eK extends eG{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=eB(eD(this.node.current,"focus",()=>this.onFocus()),eD(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let eJ=(e,t)=>
25!!t&&(e===t||eJ(e,t.parentElement));function eX(e,t){if(!t)return;let n=new PointerEvent("pointer"+e);t(n,ej(n))}class eZ extends eG{constructor(){super(...arguments),this.removeStartListeners=eE.l,this.removeEndListeners=eE.l,this.removeAccessibleListeners=eE.l,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();let n=this.node.getProps(),r=eN(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;let{onTap:n,onTapCancel:r,globalTapTarget:i}=this.node.getProps();e_.update(()=>{i||eJ(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)})},{passive:!(n.onTap||n.onPointerUp)}),i=eN(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=eB(r,i),this.startPress(e,t)},this.startAccessiblePress=()=>{let e=eD(this.node.current,"keydown",e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=eD(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&eX("up",(e,t)=>{let{onTap:n}=this.node.getProps();n&&e_.update(()=>n(e,t))})}),eX("down",(e,t)=>{this.startPress(e,t)}))}),t=eD(this.node.current,"blur",()=>{this.isPressing&&eX("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=eB(e,t)}}startPress(e,t){this.isPressing=!0;let{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&e_.update(()=>n(e,t))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!eW()}cancelPress(e,t){if(!this.checkPressEnd())return;let{onTapCancel:n}=this.node.getProps();n&&e_.update(()=>n(e,t))}mount(){let e=this.node.getProps(),t=eN(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=eD(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=eB(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let eQ=new WeakMap,e0=new WeakMap,e1=e=>{let t=eQ.get(e.target);t&&t(e)},e2=e=>{e.forEach(e1)},e5={some:0,all:1};class e4 extends eG{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:e5[r]};return function(e,t,n){let r=function({root:e,...t}){let n=e||document;e0.has(n)||e0.set(n,{});let r=e0.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(e2,{root:e,...t})),r[i]}(t);return eQ.set(e,n),r.observe(e),()=>{eQ.delete(e),r.unobserve(e)}}(this.node.current,o,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=t?n:r;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}function e3(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function e6(e,t,n){let r=e.getProps();return eb(r,t,void 0!==n?n:r.custom,function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.get()),t}(e),function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.getVelocity()),t}(e))}var e9=n(42330);let e8=e=>1e3*e,e7=e=>e/1e3,te={current:!1},tt=e=>Array.isArray(e)&&"number"==typeof e[0],tn=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,tr={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tn([0,.65,.55,1]),circOut:tn([.55,0,1,.45]),backIn:tn([.31,.01,.66,-.59]),backOut:tn([.33,1.53,.69,.99])},ti=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function to(e,t,n,r){if(e===t&&n===r)return eE.l;let i=t=>(function(e,t,n,r,i){let o,a,s=0;do(o=ti(a=t+(n-t)/2,r,i)-e)>
250?n=a:t=a;while(Math.abs(o)>1e-7&&++s<12);return a})(t,0,1,e,n);return e=>0===e||1===e?e:ti(i(e),t,r)}let ta=to(.42,0,1,1),ts=to(0,0,.58,1),tl=to(.42,0,.58,1),tu=e=>Array.isArray(e)&&"number"!=typeof e[0],tc=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,td=e=>t=>1-e(1-t),th=e=>1-Math.sin(Math.acos(e)),tp=td(th),tf=tc(th),tm=to(.33,1.53,.69,.99),tg=td(tm),tv=tc(tg),ty={linear:eE.l,easeIn:ta,easeInOut:tl,easeOut:ts,circIn:th,circInOut:tf,circOut:tp,backIn:tg,backInOut:tv,backOut:tm,anticipate:e=>(e*=2)<1?.5*tg(e):.5*(2-Math.pow(2,-10*(e-1)))},tb=e=>{if(Array.isArray(e)){(0,e9.V)(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,r,i]=e;return to(t,n,r,i)}return"string"==typeof e?((0,e9.V)(void 0!==ty[e],`Invalid easing type '${e}'`),ty[e]):e},tw=(e,t)=>n=>!!(G(n)&&W.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),tS=(e,t,n)=>r=>{if(!G(r))return r;let[i,o,a,s]=r.match(V);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},tx=e=>N(0,255,e),tA={...F,transform:e=>Math.round(tx(e))},tk={test:tw("rgb","red"),parse:tS("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+tA.transform(e)+", "+tA.transform(t)+", "+tA.transform(n)+", "+$(B.transform(r))+")"},tE={test:tw("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:tk.transform},tC={test:tw("hsl","hue"),parse:tS("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+K.transform($(t))+", "+K.transform($(n))+", "+$(B.transform(r))+")"},tT={test:e=>tk.test(e)||tE.test(e)||tC.test(e),parse:e=>tk.test(e)?tk.parse(e):tC.test(e)?tC.parse(e):tE.parse(e),transform:e=>G(e)?e:e.hasOwnProperty("red")?tk.transform(e):tC.transform(e)},t_=(e,t,n)=>-n*e+n*t+e;function tP(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}let tM=(e,t,n)=>{let r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},tI=[tE,tk,tC],tO=e=>tI.find(t=>t.test(e));function tR(e){let t=tO(e);(0,e9.V)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===tC&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,a=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=tP(s,r,e+1/3),o=tP(s,r,e),a=tP(s,r,e-1/3)}else i=o=a=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}(n)),n}let tD=(e,t)=>{let n=tR(e),r=tR(t),i={...n};return e=>(i.red=tM(n.red,r.red,e),i.green=tM(n.green,r.green,e),i.blue=tM(n.blue,r.blue,e),i.alpha=t_(n.alpha,r.alpha,e),tk.transform(i))}
25,tL={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:eE.l},tj={regex:H,countKey:"Colors",token:"${c}",parse:tT.parse},tU={regex:V,countKey:"Numbers",token:"${n}",parse:F.parse};function tN(e,{regex:t,countKey:n,token:r,parse:i}){let o=e.tokenised.match(t);o&&(e["num"+n]=o.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...o.map(i)))}function tF(e){let t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&tN(n,tL),tN(n,tj),tN(n,tU),n}function tB(e){return tF(e).values}function tz(e){let{values:t,numColors:n,numVars:r,tokenised:i}=tF(e),o=t.length;return e=>{let t=i;for(let i=0;i<o;i++)t=i<r?t.replace(tL.token,e[i]):i<r+n?t.replace(tj.token,tT.transform(e[i])):t.replace(tU.token,$(e[i]));return t}}let t$=e=>"number"==typeof e?0:e,tV={test:function(e){var t,n;return isNaN(e)&&G(e)&&((null==(t=e.match(V))?void 0:t.length)||0)+((null==(n=e.match(H))?void 0:n.length)||0)>0},parse:tB,createTransformer:tz,getAnimatableNone:function(e){let t=tB(e);return tz(e)(t.map(t$))}},tH=(e,t)=>n=>`${n>0?t:e}`;function tW(e,t){return"number"==typeof e?n=>t_(e,t,n):tT.test(e)?tD(e,t):e.startsWith("var(")?tH(e,t):tY(e,t)}let tG=(e,t)=>{let n=[...e],r=n.length,i=e.map((e,n)=>tW(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}},tq=(e,t)=>{let n={...e,...t},r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=tW(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}},tY=(e,t)=>{let n=tV.createTransformer(t),r=tF(e),i=tF(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?eB(tG(r.values,i.values),n):((0,e9.$)(!0,`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.`),tH(e,t))},tK=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r},tJ=(e,t)=>n=>t_(e,t,n);function tX(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let o=e.length;if((0,e9.V)(o===t.length,"Both input and output ranges must be the same length"),1===o)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=function(e,t,n){let r=[],i=n||function(e){if("number"==typeof e);else if("string"==typeof e)return tT.test(e)?tD:tY;else if(Array.isArray(e))return tG;else if("object"==typeof e)return tq;return tJ}(e[0]),o=e.length-1;for(let n=0;n<o;n++){let o=i(e[n],e[n+1]);t&&(o=eB(Array.isArray(t)?t[n]||eE.l:t,o)),r.push(o)}return r}(t,r,i),s=a.length,l=t=>{let n=0;if(s>1)for(;n<e.length-2&&!(t<e[n+1]);n++);let r=tK(e[n],e[n+1],t);return a[n](r)};return n?t=>l(N(e[0],e[o-1],t)):l}function tZ({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){var i;let o=tu(r)?r.map(tb):tb(r),a={done:!1,value:t[0]},s=tX((i=n&&n.length===t.length?n:function(e){let t=[0];return!function(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=tK(0,t,r);e.push(t_(n,1,i))}}(t,e.length-1),t}(t),i.map(t=>t*e)),t,{ease:Array.isArray(o)?o:t.map(()=>o||tl).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(a.value=s(t),a.done=t>=e,a)}}function tQ(e,t,n){var r,i;let o=Math.max(t-5,0);return r=n-e(o),(i=t-o)?1e3/i*r:0}function t0(e,t){return e*Math.sqrt(1-t*t)}let t1=["duration","bounce"],t2=["stiffness","damping","mass"];function t5(e,t){return t.some(t=>void 0!==e[t])}function t4({keyframes:e,restDelta:t,restSpeed:n,...r}){let i,o=e[0],a=e[e.length-1],s={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:d,velocity:h,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!t5(e,t2)&&t5(e,t1)){let n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;(0,e9.$)(e<=e8(10),"Spring duration must be 10 seconds or less");let a=1-t;a=N(.05,1,a),e=N(.01,10,e7(e)),a<1?(i=t=>{let r=t*a,i=r*e;return .001-(r-n)/t0(t,a)*Math.exp(-i)},o=t=>{let r=t*a*e,o=Math.pow(a,2)*Math.pow(t,2)*e,s=Math.exp(-r),l=t0(Math.pow(t,2),a);return(r*n+n-o)*s*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),o=t=>e*e*(n-t)*Math.exp(-t*e));let s=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,o,5/e);if(e=e8(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(s,2)*r;
25return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}(e);(t={...t,...n,mass:1}).isResolvedFromDuration=!0}return t}({...r,velocity:-e7(r.velocity||0)}),f=h||0,m=u/(2*Math.sqrt(l*c)),g=a-o,v=e7(Math.sqrt(l/c)),y=5>Math.abs(g);if(n||(n=y?.01:2),t||(t=y?.005:.5),m<1){let e=t0(v,m);i=t=>a-Math.exp(-m*v*t)*((f+m*v*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}else if(1===m)i=e=>a-Math.exp(-v*e)*(g+(f+v*g)*e);else{let e=v*Math.sqrt(m*m-1);i=t=>{let n=Math.exp(-m*v*t),r=Math.min(e*t,300);return a-n*((f+m*v*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}return{calculatedDuration:p&&d||null,next:e=>{let r=i(e);if(p)s.done=e>=d;else{let o=f;0!==e&&(o=m<1?tQ(i,e,r):0);let l=Math.abs(a-r)<=t;s.done=Math.abs(o)<=n&&l}return s.value=s.done?a:r,s}}}function t3({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){let d,h,p=e[0],f={done:!1,value:p},m=e=>void 0!==s&&e<s||void 0!==l&&e>l,g=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l,v=n*t,y=p+v,b=void 0===a?y:a(y);b!==y&&(v=b-p);let w=e=>-v*Math.exp(-e/r),S=e=>b+w(e),x=e=>{let t=w(e),n=S(e);f.done=Math.abs(t)<=u,f.value=f.done?b:n},A=e=>{m(f.value)&&(d=e,h=t4({keyframes:[f.value,g(f.value)],velocity:tQ(S,e,f.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return A(0),{calculatedDuration:null,next:e=>{let t=!1;return(h||void 0!==d||(t=!0,x(e),A(e)),void 0!==d&&e>d)?h.next(e-d):(t||x(e),f)}}}let t6=e=>{let t=({timestamp:t})=>e(t);return{start:()=>e_.update(t,!0),stop:()=>eP(t),now:()=>eM.isProcessing?eM.timestamp:performance.now()}};function t9(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}let t8={decay:t3,inertia:t3,tween:tZ,keyframes:tZ,spring:t4};function t7({autoplay:e=!0,delay:t=0,driver:n=t6,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...h}){let p,f,m,g,v,y=1,b=!1,w=()=>{f=new Promise(e=>{p=e})};w();let S=t8[i]||tZ;S!==tZ&&"number"!=typeof r[0]&&(g=tX([0,100],r,{clamp:!1}),r=[0,100]);let x=S({...h,keyframes:r});"mirror"===s&&(v=S({...h,keyframes:[...r].reverse(),velocity:-(h.velocity||0)}));let A="idle",k=null,E=null,C=null;null===x.calculatedDuration&&o&&(x.calculatedDuration=t9(x));let{calculatedDuration:T}=x,_=1/0,P=1/0;null!==T&&(P=(_=T+a)*(o+1)-a);let M=0,I=e=>{if(null===E)return;y>0&&(E=Math.min(E,e)),y<0&&(E=Math.min(e-P/y,E));let n=(M=null!==k?k:Math.round(e-E)*y)-t*(y>=0?1:-1),i=y>=0?n<0:n>P;M=Math.max(n,0),"finished"===A&&null===k&&(M=P);let l=M,u=x;if(o){let e=Math.min(M,P)/_,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,o+1))%2&&("reverse"===s?(n=1-n,a&&(n-=a/_)):"mirror"===s&&(u=v)),l=N(0,1,n)*_}let c=i?{done:!1,value:r[0]}:u.next(l);g&&(c.value=g(c.value));let{done:h}=c;i||null===T||(h=y>=0?M>=P:M<=0);let p=null===k&&("finished"===A||"running"===A&&h);return d&&d(c.value),p&&D(),c},O=()=>{m&&m.stop(),m=void 0},R=()=>{A="idle",O(),p(),w(),E=C=null},D=()=>{A="finished",c&&c(),O(),p()},L=()=>
25{if(b)return;m||(m=n(I));let e=m.now();l&&l(),null!==k?E=e-k:E&&"finished"!==A||(E=e),"finished"===A&&w(),C=E,k=null,A="running",m.start()};e&&L();let j={then:(e,t)=>f.then(e,t),get time(){return e7(M)},set time(newTime){M=newTime=e8(newTime),null===k&&m&&0!==y?E=m.now()-newTime/y:k=newTime},get duration(){return e7(null===x.calculatedDuration?t9(x):x.calculatedDuration)},get speed(){return y},set speed(newSpeed){if(newSpeed===y||!m)return;y=newSpeed,j.time=e7(M)},get state(){return A},play:L,pause:()=>{A="paused",k=M},stop:()=>{b=!0,"idle"!==A&&(A="idle",u&&u(),R())},cancel:()=>{null!==C&&I(C),R()},complete:()=>{A="finished"},sample:e=>(E=0,I(e))};return j}let ne=function(e){let t;return()=>(void 0===t&&(t=e()),t)}(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),nt=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),nn=(e,t)=>"spring"===t.type||"backgroundColor"===e||!function e(t){return!!(!t||"string"==typeof t&&tr[t]||tt(t)||Array.isArray(t)&&t.every(e))}(t.ease),nr={type:"spring",stiffness:500,damping:25,restSpeed:10},ni=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),no={type:"keyframes",duration:.8},na={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ns=(e,{keyframes:t})=>t.length>2?no:P.has(e)?e.startsWith("scale")?ni(t[1]):nr:na,nl=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tV.test(t)||"0"===t)&&!t.startsWith("url(")),nu=new Set(["brightness","contrast","saturate","opacity"]);function nc(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(V)||[];if(!r)return e;let i=n.replace(r,""),o=+!!nu.has(t);return r!==n&&(o*=100),t+"("+o+i+")"}let nd=/([a-z-]*)\(.*?\)/g,nh={...tV,getAnimatableNone:e=>{let t=e.match(nd);return t?t.map(nc).join(" "):e}},np={...et,color:tT,backgroundColor:tT,outlineColor:tT,fill:tT,stroke:tT,borderColor:tT,borderTopColor:tT,borderRightColor:tT,borderBottomColor:tT,borderLeftColor:tT,filter:nh,WebkitFilter:nh},nf=e=>np[e];function nm(e,t){let n=nf(e);return n!==nh&&(n=tV),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let ng=e=>/^0[^.\s]+$/.test(e);function nv(e,t){return e[t]||e.default||e}let ny={skipAnimations:!1},nb=(e,t,n,r={})=>i=>{let o=nv(r,e)||{},a=o.delay||r.delay||0,{elapsed:s=0}=r;s-=e8(a);let l=function(e,t,n,r){let i,o,a=nl(t,n);i=Array.isArray(n)?[...n]:[null,n];let s=void 0!==r.from?r.from:e.get(),l=[];for(let e=0;e<i.length;e++){var u;null===i[e]&&(i[e]=0===e?s:i[e-1]),("number"==typeof(u=i[e])?0===u:null!==u?"none"===u||"0"===u||ng(u):void 0)&&l.push(e),"string"==typeof i[e]&&"none"!==i[e]&&"0"!==i[e]&&(o=i[e])}if(a&&l.length&&o)for(let e=0;e<l.length;e++)i[l[e]]=nm(t,o);return i}(t,e,n,o),u=l[0],c=l[l.length-1],d=nl(e,u),h=nl(e,c);(0,e9.$)(d===h,`You are trying to animate ${e} from "${u}" to "${c}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${c} via the \`style\` property.`);let p={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-s,onUpdate:e=>{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(o)&&(p={...p,...ns(e,p)}),p.duration&&(p.duration=e8(p.duration)),p.repeatDelay&&(p.repeatDelay=e8(p.repeatDelay)),!d||!h||te.current||!1===o.type||ny.skipAnimations)return function({keyframes:e,delay:t,onUpdate:n,onComplete:r}){let i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:eE.l,pause:eE.l,stop:eE.l,then:e=>(e(),Promise.resolve()),cancel:eE.l,complete:eE.l});return t?t7({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}(te.current?{...p,delay:0}:p);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){let n=function(e,t,{onUpdate:n,onComplete:r,...i}){let o,a;if(!(ne()&&nt.has(t)&&!i.repeatDelay&&"mirror"!==i.repeatType&&0!==i.damping&&"inertia"!==i.type))return!1;let s=!1,l=!1,u=()=>{a=new Promise(e=>{o=e})};u();let{keyframes:c,duration:d=300,ease:h,times:p}=i;if(nn(t,i)){let e=t7({...i,repeat:0,delay:0}),t={done:!1,value:c[0]},n=[],r=0;for(;!t.done&&r<2e4;
25)t=e.sample(r),n.push(t.value),r+=10;p=void 0,c=n,d=r-10,h="linear"}let f=function(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:a="loop",ease:s,times:l}={}){let u={[t]:n};l&&(u.offset=l);let c=function e(t){if(t)return tt(t)?tn(t):Array.isArray(t)?t.map(e):tr[t]}(s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,t,c,{...i,duration:d,ease:h,times:p}),m=()=>{l=!1,f.cancel()},g=()=>{l=!0,e_.update(m),o(),u()};return f.onfinish=()=>{l||(e.set(function(e,{repeat:t,repeatType:n="loop"}){let r=t&&"loop"!==n&&t%2==1?0:e.length-1;return e[r]}(c,i)),r&&r(),g())},{then:(e,t)=>a.then(e,t),attachTimeline:e=>(f.timeline=e,f.onfinish=null,eE.l),get time(){return e7(f.currentTime||0)},set time(newTime){f.currentTime=e8(newTime)},get speed(){return f.playbackRate},set speed(newSpeed){f.playbackRate=newSpeed},get duration(){return e7(d)},play:()=>{s||(f.play(),eP(m))},pause:()=>f.pause(),stop:()=>{if(s=!0,"idle"===f.playState)return;let{currentTime:t}=f;if(t){let n=t7({...i,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}g()},complete:()=>{l||f.finish()},cancel:g}}(t,e,p);if(n)return n}return t7(p)};function nw(e){return!!(I(e)&&e.add)}let nS=e=>/^\-?\d*\.?\d+$/.test(e);function nx(e,t){-1===e.indexOf(t)&&e.push(t)}function nA(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class nk{constructor(){this.subscriptions=[]}add(e){return nx(this.subscriptions,e),()=>nA(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let nE=e=>!isNaN(parseFloat(e)),nC={current:void 0};class nT{constructor(e,t={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;let{delta:n,timestamp:r}=eM;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,e_.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>e_.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=nE(this.current),this.owner=t.owner}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new nk);let n=this.events[e].add(t);return"change"===e?()=>{n(),e_.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return nC.current&&nC.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e,t;return this.canTrackVelocity?(e=parseFloat(this.current)-parseFloat(this.prev),(t=this.timeDelta)?1e3/t*e:0):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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function n_(e,t){return new nT(e,t)}let nP=e=>t=>t.test(e),nM=[F,J,K,Y,Z,X,{test:e=>"auto"===e,parse:e=>e}],nI=e=>nM.find(nP(e)),nO=[...nM,tT,tV],nR=e=>nO.find(nP(e));function nD(e,t){let n=e6(e,t),{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};for(let t in o={...o,...r}){let n=ex(o[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,n_(n))}}function nL(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:a,...s}=e.makeTargetAnimatable(t),l=e.getValue("willChange");r&&(o=r);let u=[],c=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t),i=s[t];if(!r||void 0===i||c&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(c,t))continue;let a={delay:n,elapsed:0,...nv(o||{},t)};if(window.HandoffAppearAnimations){let n=e.getProps()[d];if(n){let e=window.HandoffAppearAnimations(n,t,r,e_);null!==e&&(a.elapsed=e,a.isHandoff=!0)}}let h=!a.isHandoff&&!function(e,t){let n=e.get();if(!Array.isArray(t))return n!==t;for(let e=0;e<t.length;e++)if(t[e]!==n)return!0}(r,i);if("spring"===a.type&&(r.getVelocity()||a.velocity)&&(h=!1),r.animation&&(h=!1),h)continue;r.start(nb(t,r,i,e.shouldReduceMotion&&P.has(t)?{type:!1}:a));let p=r.animation;nw(l)&&(l.add(t),p.then(()=>l.remove(t))),u.push(p)}return a&&Promise.all(u).then(()=>{a&&nD(e,a)}),u}function nj(e,t,n={}){let r=e6(e,t,n.custom),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let o=r?()=>Promise.all(nL(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,n=0,r=0,i=1,o){let a=[],s=(e.variantChildren.size-1)*r,l=1===i?(e=0)=>e*r:(e=0)=>s-e*r;
25return Array.from(e.variantChildren).sort(nU).forEach((e,r)=>{e.notify("AnimationStart",t),a.push(nj(e,t,{...o,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,o+r,a,s,n)}:()=>Promise.resolve(),{when:s}=i;if(!s)return Promise.all([o(),a(n.delay)]);{let[e,t]="beforeChildren"===s?[o,a]:[a,o];return e().then(()=>t())}}function nU(e,t){return e.sortNodePosition(t)}let nN=[...m].reverse(),nF=m.length;function nB(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}class nz extends eG{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>nj(e,t,n)));else if("string"==typeof t)r=nj(e,t,n);else{let i="function"==typeof t?e6(e,t,n.custom):t;r=Promise.all(nL(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))})(e,t,n))),n={animate:nB(!0),whileInView:nB(),whileHover:nB(),whileTap:nB(),whileDrag:nB(),whileFocus:nB(),exit:nB()},r=!0,i=(t,n)=>{let r=e6(e,n);if(r){let{transition:e,transitionEnd:n,...i}=r;t={...t,...i,...n}}return t};function o(o,a){let s=e.getProps(),l=e.getVariantContext(!0)||{},u=[],c=new Set,d={},h=1/0;for(let t=0;t<nF;t++){var m,g;let v=nN[t],y=n[v],b=void 0!==s[v]?s[v]:l[v],w=p(b),S=v===a?y.isActive:null;!1===S&&(h=t);let x=b===l[v]&&b!==s[v]&&w;if(x&&r&&e.manuallyAnimateOnMount&&(x=!1),y.protectedKeys={...d},!y.isActive&&null===S||!b&&!y.prevProp||f(b)||"boolean"==typeof b)continue;let A=(m=y.prevProp,("string"==typeof(g=b)?g!==m:!!Array.isArray(g)&&!e3(g,m))||v===a&&y.isActive&&!x&&w||t>h&&w),k=!1,E=Array.isArray(b)?b:[b],C=E.reduce(i,{});!1===S&&(C={});let{prevResolvedValues:T={}}=y,_={...T,...C},P=e=>{A=!0,c.has(e)&&(k=!0,c.delete(e)),y.needsAnimating[e]=!0};for(let e in _){let t=C[e],n=T[e];if(d.hasOwnProperty(e))continue;let r=!1;(ew(t)&&ew(n)?e3(t,n):t===n)?void 0!==t&&c.has(e)?P(e):y.protectedKeys[e]=!0:void 0!==t?P(e):c.add(e)}y.prevProp=b,y.prevResolvedValues=C,y.isActive&&(d={...d,...C}),r&&e.blockInitialAnimation&&(A=!1),A&&(!x||k)&&u.push(...E.map(e=>({animation:e,options:{type:v,...o}})))}if(c.size){let t={};
25c.forEach(n=>{let r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)}),u.push({animation:t})}let v=!!u.length;return r&&(!1===s.initial||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(u):Promise.resolve()}return{animateChanges:o,setActive:function(t,r,i){var a;if(n[t].isActive===r)return Promise.resolve();null==(a=e.variantChildren)||a.forEach(e=>{var n;return null==(n=e.animationState)?void 0:n.setActive(t,r)}),n[t].isActive=r;let s=o(i,t);for(let e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();this.unmount(),f(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}let n$=0;class nV extends eG{constructor(){super(...arguments),this.id=n$++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;let i=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});t&&!e&&i.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}let nH=(e,t)=>Math.abs(e-t);class nW{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=nY(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){return Math.sqrt(nH(e.x,t.x)**2+nH(e.y,t.y)**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=eM;this.history.push({...r,timestamp:i});let{onStart:o,onMove:a}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=nG(t,this.transformPagePoint),e_.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=nY("pointercancel"===e.type?this.lastMoveEventInfo:nG(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!eL(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;let o=nG(ej(e),this.transformPagePoint),{point:a}=o,{timestamp:s}=eM;this.history=[{...a,timestamp:s}];let{onSessionStart:l}=t;l&&l(e,nY(o,this.history)),this.removeListeners=eB(eN(this.contextWindow,"pointermove",this.handlePointerMove),eN(this.contextWindow,"pointerup",this.handlePointerUp),eN(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),eP(this.updatePoint)}}function nG(e,t){return t?{point:t(e.point)}:e}function nq(e,t){return{x:e.x-t.x,y:e.y-t.y}}function nY({point:e},t){return{point:e,delta:nq(e,nK(t)),offset:nq(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=nK(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>e8(.1)));)n--;if(!r)return{x:0,y:0};let o=e7(i.timestamp-r.timestamp);if(0===o)return{x:0,y:0};let a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,.1)}}function nK(e){return e[e.length-1]}function nJ(e){return e.max-e.min}function nX(e,t=0,n=.01){return Math.abs(e-t)<=n}function nZ(e,t,n,r=.5){e.origin=r,e.originPoint=t_(t.min,t.max,e.origin),e.scale=nJ(n)/nJ(t),(nX(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=t_(n.min,n.max,e.origin)-e.originPoint,(nX(e.translate)||isNaN(e.translate))&&(e.translate=0)}function nQ(e,t,n,r){nZ(e.x,t.x,n.x,r?r.originX:void 0),nZ(e.y,t.y,n.y,r?r.originY:void 0)}function n0(e,t,n){e.min=n.min+t.min,e.max=e.min+nJ(t)}function n1(e,t,n){e.min=t.min-n.min,e.max=e.min+nJ(t)}function n2(e,t,n){n1(e.x,t.x,n.x),n1(e.y,t.y,n.y)}
25function n5(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function n4(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function n3(e,t,n){return{min:n6(e,t),max:n6(e,n)}}function n6(e,t){return"number"==typeof e?e:e[t]||0}let n9=()=>({translate:0,scale:1,origin:0,originPoint:0}),n8=()=>({x:n9(),y:n9()}),n7=()=>({min:0,max:0}),re=()=>({x:n7(),y:n7()});function rt(e){return[e("x"),e("y")]}function rn({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function rr(e){return void 0===e||1===e}function ri({scale:e,scaleX:t,scaleY:n}){return!rr(e)||!rr(t)||!rr(n)}function ro(e){return ri(e)||ra(e)||e.z||e.rotate||e.rotateX||e.rotateY}function ra(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function rs(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function rl(e,t=0,n=1,r,i){e.min=rs(e.min,t,n,r,i),e.max=rs(e.max,t,n,r,i)}function ru(e,{x:t,y:n}){rl(e.x,t.translate,t.scale,t.originPoint),rl(e.y,n.translate,n.scale,n.originPoint)}function rc(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function rd(e,t){e.min=e.min+t,e.max=e.max+t}function rh(e,t,[n,r,i]){let o=void 0!==t[i]?t[i]:.5,a=t_(e.min,e.max,o);rl(e,t[n],t[r],a,t.scale)}let rp=["x","scaleX","originX"],rf=["y","scaleY","originY"];function rm(e,t){rh(e.x,t,rp),rh(e.y,t,rf)}function rg(e,t){return rn(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}let rv=({current:e})=>e?e.ownerDocument.defaultView:null,ry=new WeakMap;class rb{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=re(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let{dragSnapToOrigin:r}=this.getProps();this.panSession=new nW(e,{onSessionStart:e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(ej(e,"page").point)},onStart:(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=eH(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rt(e=>{let t=this.getAxisMotionValue(e).get()||0;if(K.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=nJ(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&e_.update(()=>i(e,t),!1,!0);let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:a}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>rt(e=>{var t;return"paused"===this.getAnimationState(e)&&(null==(t=this.getAxisMotionValue(e).animation)?void 0:t.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:rv(this.visualElement)})}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:i}=this.getProps();i&&e_.update(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!rw(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?t_(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?t_(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(e=this.visualElement.projection)?void 0:e.layout,i=this.constraints;t&&h(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:n5(e.x,n,i),y:n5(e.y,t,r)}}(r.layoutBox,t):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:n3(e,"left","right"),y:n3(e,"top","bottom")}}(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&rt(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!h(t))return!1;let r=t.current;(0,e9.V)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(e,t,n){let r=rg(e,n),{scroll:i}=t;return i&&(rd(r.x,i.offset.x),rd(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a=(e=i.layout.layoutBox,{x:n4(e.x,o.x),y:n4(e.y,o.y)});if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=rn(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{};return Promise.all(rt(a=>{if(!rw(a,t,this.currentDirection))return;let l=s&&s[a]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:n?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return n.start(nb(e,n,0,t))}stopAnimation(){rt(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){rt(e=>{var t;return null==(t=this.getAxisMotionValue(e).animation)?void 0:t.pause()})}getAnimationState(e){var t;return null==(t=this.getAxisMotionValue(e).animation)?void 0:t.state}getAxisMotionValue(e){let t="_drag"+e.toUpperCase(),n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){rt(t=>{let{drag:n}=this.getProps();if(!rw(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:o}=r.layout.layoutBox[t];i.set(e[t]-t_(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!h(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};rt(e=>{let t=this.getAxisMotionValue(e);if(t){let n=t.get();r[e]=function(e,t){let n=.5,r=nJ(e),i=nJ(t);return i>r?n=tK(t.min,t.max-r,e.min):r>i&&(n=tK(e.min,e.max-i,t.min)),N(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),rt(t=>{if(!rw(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];n.set(t_(i,o,r[t]))})}addListeners(){if(!this.visualElement.current)return;ry.set(this.visualElement,this);let e=eN(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:n=!0}
25=this.getProps();t&&n&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();h(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),t();let i=eD(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(rt(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),e(),r(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function rw(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}class rS extends eG{constructor(e){super(e),this.removeGroupControls=eE.l,this.removeListeners=eE.l,this.controls=new rb(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||eE.l}unmount(){this.removeGroupControls(),this.removeListeners()}}let rx=e=>(t,n)=>{e&&e_.update(()=>e(t,n))};class rA extends eG{constructor(){super(...arguments),this.removePointerDownListener=eE.l}onPointerDown(e){this.session=new nW(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rv(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:rx(e),onStart:rx(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&e_.update(()=>r(e,t))}}}mount(){this.removePointerDownListener=eN(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let rk={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rE(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let rC={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!J.test(e))return e;else e=parseFloat(e);let n=rE(e,t.target.x),r=rE(e,t.target.y);return`${n}% ${r}%`}};class rT extends r.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;Object.assign(T,rP),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),rk.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,o=n.projection;return o&&(o.isPresent=i,r||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||e_.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function r_(e){let[t,n]=function(){let e=(0,r.useContext)(a);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:n,register:i}=e,o=(0,r.useId)();return(0,r.useEffect)(()=>i(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}(),i=(0,r.useContext)(x);return r.createElement(rT,{...e,layoutGroup:i,switchLayoutGroup:(0,r.useContext)(A),isPresent:t,safeToRemove:n})}let rP={borderRadius:{...rC,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:rC,borderTopRightRadius:rC,borderBottomLeftRadius:rC,borderBottomRightRadius:rC,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=tV.parse(e);if(r.length>5)return e;let i=tV.createTransformer(e),o=+("number"!=typeof r[0]),a=n.x.scale*t.x,s=n.y.scale*t.y;r[0+o]/=a,r[1+o]/=s;let l=t_(a,s,.5);return"number"==typeof r[2+o]&&(r[2+o]/=l),"number"==typeof r[3+o]&&(r[3+o]/=l),i(r)}}},rM=["TopLeft","TopRight","BottomLeft","BottomRight"],rI=rM.length,rO=e=>"string"==typeof e?parseFloat(e):e,rR=e=>"number"==typeof e||J.test(e);function rD(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let rL=rU(0,.5,tp),rj=rU(.5,.95,eE.l);function rU(e,t,n){return r=>r<e?0:r>t?1:n(tK(e,t,r))}function rN(e,t){e.min=t.min,e.max=t.max}function rF(e,t){rN(e.x,t.x),rN(e.y,t.y)}function rB(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function rz(e,t,[n,r,i],o,a){!function(e,t=0,n=1,r=.5,i,o=e,a=e){if(K.test(t)&&(t=parseFloat(t),t=t_(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let s=t_(o.min,o.max,r);e===o&&(s-=t),e.min=rB(e.min,t,n,s,i),e.max=rB(e.max,t,n,s,i)}(e,t[n],t[r],t[i],t.scale,o,a)}let r$=["x","scaleX","originX"],rV=["y","scaleY","originY"];function rH(e,t,n,r){rz(e.x,t,r$,n?n.x:void 0,r?r.x:void 0),rz(e.y,t,rV,n?n.y:void 0,r?r.y:void 0)}function rW(e){return 0===e.translate&&1===e.scale}function rG(e){return rW(e.x)&&rW(e.y)}function rq(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function rY(e){return nJ(e.x)/nJ(e.y)}class rK{constructor(){this.members=[]}add(e){nx(this.members,e),e.scheduleRender()}remove(e){if(nA(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){let t,n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;!1===r&&n.hide()}}
25exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function rJ(e,t,n){let r="",i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{rotate:e,rotateX:t,rotateY:i}=n;e&&(r+=`rotate(${e}deg) `),t&&(r+=`rotateX(${t}deg) `),i&&(r+=`rotateY(${i}deg) `)}let a=e.x.scale*t.x,s=e.y.scale*t.y;return(1!==a||1!==s)&&(r+=`scale(${a}, ${s})`),r||"none"}let rX=(e,t)=>e.depth-t.depth;class rZ{constructor(){this.children=[],this.isDirty=!1}add(e){nx(this.children,e),this.isDirty=!0}remove(e){nA(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(rX),this.isDirty=!1,this.children.forEach(e)}}let rQ=["","X","Y","Z"],r0={visibility:"hidden"},r1=0,r2={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function r5({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=null==t?void 0:t()){this.id=r1++,this.animationId=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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,r2.totalNodes=r2.resolvedTargetDeltas=r2.recalculatedProjection=0,this.nodes.forEach(r6),this.nodes.forEach(ii),this.nodes.forEach(io),this.nodes.forEach(r9),window.MotionDebug&&window.MotionDebug.record(r2)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new rZ)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new nk),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;let{layoutId:r,layout:i,visualElement:o}=this.options;if(o&&!o.current&&o.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||r)&&(this.isLayoutDirty=!0),e){let n,r=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){let n=performance.now(),r=({timestamp:t})=>{let i=t-n;i>=250&&(eP(r),e(i-250))};return e_.read(r,!0),()=>eP(r)}(r,250),rk.hasAnimatedSinceResize&&(rk.hasAnimatedSinceResize=!1,this.nodes.forEach(ir))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&o&&(r||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||o.getDefaultTransition()||id,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=o.getProps(),l=!this.targetLayout||!rq(this.targetLayout,r)||n,u=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);let t={...nv(i,"layout"),onPlay:a,onComplete:s};(o.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||ir(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,eP(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
25h(ia),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(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,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)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()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(r7);return}this.isUpdating||this.nodes.forEach(ie),this.isUpdating=!1,this.nodes.forEach(it),this.nodes.forEach(r4),this.nodes.forEach(r3),this.clearAllSnapshots();let e=performance.now();eM.delta=N(0,1e3/60,e-eM.timestamp),eM.timestamp=e,eM.isProcessing=!0,eI.update.process(eM),eI.preRender.process(eM),eI.render.process(eM),eM.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(r8),this.sharedNodes.forEach(is)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,e_.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){e_.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}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.layoutCorrected=re(),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);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!rG(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&(t||ro(this.latestValues)||o)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),im((t=r).x),im(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return re();let t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(rd(t.x,n.offset.x),rd(t.y,n.offset.y)),t}removeElementScroll(e){let t=re();rF(t,e);for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:o}=r;if(r!==this.root&&i&&o.layoutScroll){if(i.isRoot){rF(t,e);let{scroll:n}=this.root;n&&(rd(t.x,-n.offset.x),rd(t.y,-n.offset.y))}rd(t.x,i.offset.x),rd(t.y,i.offset.y)}}return t}applyTransform(e,t=!1){let n=re();rF(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&rm(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),ro(r.latestValues)&&rm(n,r.latestValues)}return ro(this.latestValues)&&rm(n,this.latestValues),n}removeTransform(e){let t=re();rF(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!ro(n.latestValues))continue;ri(n.latestValues)&&n.updateSnapshot();let r=re();rF(r,n.measurePageBox()),rH(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return ro(this.latestValues)&&rH(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!==eM.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t,n,r,i;let o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let a=!!this.resumingFrom||this!==o;if(!(e||a&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;let{layout:s,layoutId:l}=this.options;if(this.layout&&(s||l)){if(this.resolvedRelativeTargetAt=eM.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=re(),this.relativeTargetOrigin=re(),n2(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),rF(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=re(),this.targetWithTransforms=re()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),n=this.target,r=this.relativeTarget,i=this.relativeParent.target,n0(n.x,r.x,i.x),n0(n.y,r.y,i.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rF(this.target,this.layout.layoutBox),ru(this.target,this.targetDelta)):rF(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=re(),this.relativeTargetOrigin=re(),n2(this.relativeTargetOrigin,this.target,e.target),rF(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}r2.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||ri(this.parent.latestValues)||ra(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)}calcProjection(){var e;let t=this.getLead(),n=!!this.resumingFrom||this!==t,r=!0;if((this.isProjectionDirty||(null==(e=this.parent)?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===eM.timestamp&&(r=!1),r)return;let{layout:i,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||o))return;rF(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,r=!1){let i,o,a=n.length;if(a){t.x=t.y=1;for(let s=0;s<a;s++){o=(i=n[s]).projectionDelta;let a=i.instance;(!a||!a.style||"contents"!==a.style.display)&&(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&rm(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,ru(e,o)),r&&ro(i.latestValues)&&rm(e,i.latestValues))}t.x=rc(t.x),t.y=rc(t.y)}}(this.layoutCorrected,this.treeScale,this.path,n),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox);let{target:l}=t;if(!l){this.projectionTransform&&(this.projectionDelta=n8(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=n8(),this.projectionDeltaWithTransform=n8());let u=this.projectionTransform;nQ(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=rJ(this.projectionDelta,this.treeScale),(this.projectionTransform!==u||this.treeScale.x!==a||this.treeScale.y!==s)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),r2.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){let n,r=this.snapshot,i=r?r.latestValues:{},o={...this.latestValues},a=n8();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=re(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(ic));this.animationProgress=0,this.mixTargetDelta=t=>{let r=t/1e3;if(il(a.x,e.x,r),il(a.y,e.y,r),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,h,p,f,m,g;n2(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,m=s,g=r,iu(p.x,f.x,m.x,g),iu(p.y,f.y,m.y,g),n&&(u=this.relativeTarget,h=n,u.x.min===h.x.min&&u.x.max===h.x.max&&u.y.min===
25h.y.min&&u.y.max===h.y.max)&&(this.isProjectionDirty=!1),n||(n=re()),rF(n,this.relativeTarget)}l&&(this.animationValues=o,function(e,t,n,r,i,o){i?(e.opacity=t_(0,void 0!==n.opacity?n.opacity:1,rL(r)),e.opacityExit=t_(void 0!==t.opacity?t.opacity:1,0,rj(r))):o&&(e.opacity=t_(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let i=0;i<rI;i++){let o=`border${rM[i]}Radius`,a=rD(t,o),s=rD(n,o);(void 0!==a||void 0!==s)&&(a||(a=0),s||(s=0),0===a||0===s||rR(a)===rR(s)?(e[o]=Math.max(t_(rO(a),rO(s),r),0),(K.test(s)||K.test(a))&&(e[o]+="%")):e[o]=s)}(t.rotate||n.rotate)&&(e.rotate=t_(t.rotate||0,n.rotate||0,r))}(o,i,this.latestValues,r,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(eP(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=e_.update(()=>{rk.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){let r=I(0)?0:n_(e);return r.start(nb("",r,1e3,n)),r.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),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:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&ig(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||re();let t=nJ(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=nJ(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}rF(t,n),rm(t,i),nQ(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new rK),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null==(e=this.getStack())?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null==(e=this.getStack())?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(t=!0),!t)return;let r={};for(let t=0;t<rQ.length;t++){let i="rotate"+rQ[t];n[i]&&(r[i]=n[i],e.setStaticValue(i,0))}for(let t in e.render(),r)e.setStaticValue(t,r[t]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return r0;let r={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=eA(null==e?void 0:e.pointerEvents)||"",r.transform=i?i(this.latestValues,""):"none",r;let o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=eA(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!ro(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1),t}let a=o.animationValues||o.latestValues;this.applyTransformsToTarget(),r.transform=rJ(this.projectionDeltaWithTransform,this.treeScale,a),i&&(r.transform=i(a,r.transform));let{x:s,y:l}=this.projectionDelta;for(let e in r.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,o.animationValues?r.opacity=o===this?null!=(n=null!=(t=a.opacity)?t:this.latestValues.opacity)?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=o===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,T){if(void 0===a[e])continue;let{correct:t,applyTo:n}=T[e],i="none"===r.transform?a[e]:t(a[e],o);if(n){let e=n.length;for(let t=0;t<e;t++)r[n[t]]=i}else r[e]=i}return this.options.layoutId&&(r.pointerEvents=o===this?eA(null==e?void 0:e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}
25resetTree(){this.root.nodes.forEach(e=>{var t;return null==(t=e.currentAnimation)?void 0:t.stop()}),this.root.nodes.forEach(r7),this.root.sharedNodes.clear()}}}function r4(e){e.updateLayout()}function r3(e){var t;let n=(null==(t=e.resumeFrom)?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:r}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;"size"===i?rt(e=>{let r=o?n.measuredBox[e]:n.layoutBox[e],i=nJ(r);r.min=t[e].min,r.max=r.min+i}):ig(i,n.layoutBox,t)&&rt(r=>{let i=o?n.measuredBox[r]:n.layoutBox[r],a=nJ(t[r]);i.max=i.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)});let a=n8();nQ(a,t,n.layoutBox);let s=n8();o?nQ(s,e.applyTransform(r,!0),n.measuredBox):nQ(s,t,n.layoutBox);let l=!rG(a),u=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:o}=r;if(i&&o){let a=re();n2(a,n.layoutBox,i.layoutBox);let s=re();n2(s,t,o.layoutBox),rq(a,s)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function r6(e){r2.totalNodes++,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 r9(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function r8(e){e.clearSnapshot()}function r7(e){e.clearMeasurements()}function ie(e){e.isLayoutDirty=!1}function it(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ir(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ii(e){e.resolveTargetDelta()}function io(e){e.calcProjection()}function ia(e){e.resetRotation()}function is(e){e.removeLeadSnapshot()}function il(e,t,n){e.translate=t_(t.translate,0,n),e.scale=t_(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function iu(e,t,n,r){e.min=t_(t.min,n.min,r),e.max=t_(t.max,n.max,r)}function ic(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let id={duration:.45,ease:[.4,0,.1,1]},ih=e=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(e),ip=ih("applewebkit/")&&!ih("chrome/")?Math.round:eE.l;function im(e){e.min=ip(e.min),e.max=ip(e.max)}function ig(e,t,n){return"position"===e||"preserve-aspect"===e&&!nX(rY(t),rY(n),.2)}let iv=r5({attachResizeListener:(e,t)=>eD(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),iy={current:void 0},ib=r5({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!iy.current){let e=new iv({});e.mount(window),e.setOptions({layoutScroll:!0}),iy.current=e}return iy.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),iw=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function iS(e,t,n=1){(0,e9.V)(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,i]=function(e){let t=iw.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]}(e);if(!r)return;let o=window.getComputedStyle(t).getPropertyValue(r);if(o){let e=o.trim();return nS(e)?parseFloat(e):e}return j(i)?iS(i,t,n+1):i}let ix=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),iA=e=>ix.has(e),ik=e=>Object.keys(e).some(iA),iE=e=>e===F||e===J,iC=(e,t)=>parseFloat(e.split(", ")[t]),iT=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/);if(i)return iC(i[1],t);{let t=r.match(/^matrix\((.+)\)$/);return t?iC(t[1],e):0}},i_=new Set(["x","y","z"]),iP=_.filter(e=>!i_.has(e)),iM={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),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:iT(4,13),y:iT(5,14)};iM.translateX=iM.x,iM.translateY=iM.y;let iI=(e,t,n)=>{let r=t.measureViewportBox(),i=getComputedStyle(t.current),{display:o}=i,a={};"none"===o&&t.setStaticValue("display",e.display||"block"),n.forEac
25h(e=>{a[e]=iM[e](r,i)}),t.render();let s=t.measureViewportBox();return n.forEach(n=>{let r=t.getValue(n);r&&r.jump(a[n]),e[n]=iM[n](s,i)}),e},iO=(e,t,n={},r={})=>{t={...t},r={...r};let i=Object.keys(t).filter(iA),o=[],a=!1,l=[];if(i.forEach(i=>{let s,u=e.getValue(i);if(!e.hasValue(i))return;let c=n[i],d=nI(c),h=t[i];if(ew(h)){let e=h.length,t=+(null===h[0]);d=nI(c=h[t]);for(let n=t;n<e&&null!==h[n];n++)s?(0,e9.V)(nI(h[n])===s,"All keyframes must be of the same type"):(s=nI(h[n]),(0,e9.V)(s===d||iE(d)&&iE(s),"Keyframes must be of the same dimension as the current value"))}else s=nI(h);if(d!==s)if(iE(d)&&iE(s)){let e=u.get();"string"==typeof e&&u.set(parseFloat(e)),"string"==typeof h?t[i]=parseFloat(h):Array.isArray(h)&&s===J&&(t[i]=h.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==s?void 0:s.transform)&&(0===c||0===h)?0===c?u.set(s.transform(c)):t[i]=d.transform(h):(a||(o=function(e){let t=[];return iP.forEach(n=>{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(+!!n.startsWith("scale")))}),t.length&&e.render(),t}(e),a=!0),l.push(i),r[i]=void 0!==r[i]?r[i]:t[i],u.jump(h))}),!l.length)return{target:t,transitionEnd:r};{let n=l.indexOf("height")>=0?window.pageYOffset:null,i=iI(t,e,l);return o.length&&o.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),s&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}},iR=(e,t,n,r)=>{let i=function(e,{...t},n){let r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};for(let i in n&&(n={...n}),e.values.forEach(e=>{let t=e.get();if(!j(t))return;let n=iS(t,r);n&&e.set(n)}),t){let e=t[i];if(!j(e))continue;let o=iS(e,r);o&&(t[i]=o,n||(n={}),void 0===n[i]&&(n[i]=e))}return{target:t,transitionEnd:n}}(e,t,r);return function(e,t,n,r){return ik(t)?iO(e,t,n,r):{target:t,transitionEnd:r}}(e,t=i.target,n,r=i.transitionEnd)},iD={current:null},iL={current:!1},ij=new WeakMap,iU=Object.keys(S),iN=iU.length,iF=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],iB=g.length;class iz{constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},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.scheduleRender=()=>e_.render(this.render,!1,!0);let{latestValues:a,renderState:s}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=s,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.isControllingVariants=v(t),this.isVariantNode=y(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:l,...u}=this.scrapeMotionValuesFromProps(t,{});for(let e in u){let t=u[e];void 0!==a[e]&&I(t)&&(t.set(a[e],!1),nw(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,ij.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)),iL.current||function(){if(iL.current=!0,s)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>iD.current=e.matches;e.addListener(t),t()}else iD.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||iD.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in ij.delete(this.current),this.projection&&this.projection.unmount(),eP(this.notifyUpdate),eP(this.render),this.valueSubscriptions.forEach(e
25=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){let n=P.has(e),r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&e_.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{r(),i()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,r,i){let o,a;for(let e=0;e<iN;e++){let n=iU[e],{isEnabled:r,Feature:i,ProjectionNode:s,MeasureLayout:l}=S[n];s&&(o=s),r(t)&&(!this.features[n]&&i&&(this.features[n]=new i(this)),l&&(a=l))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&o){this.projection=new o(this.latestValues,this.parent&&this.parent.projection);let{layoutId:e,layout:n,drag:r,dragConstraints:a,layoutScroll:s,layoutRoot:l}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:!!r||a&&h(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:i,layoutScroll:s,layoutRoot:l})}return a}updateFeatures(){for(let e in this.features){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):re()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,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<iF.length;t++){let n=iF[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){let{willChange:r}=t;for(let i in t){let o=t[i],a=n[i];if(I(o))e.addValue(i,o),nw(r)&&r.add(i);else if(I(a))e.addValue(i,n_(o,{owner:e})),nw(r)&&r.remove(i);else if(a!==o)if(e.hasValue(i)){let t=e.getValue(i);t.hasAnimated||t.set(o)}else{let t=e.getStaticValue(i);e.addValue(i,n_(void 0!==t?t:o,{owner:e}))}}for(let r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),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}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}let t={};for(let e=0;e<iB;e++){let n=g[e],r=this.props[n];(p(r)||!1===r)&&(t[n]=r)}return t}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(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 n=this.values.get(e);return void 0===n&&void 0!==t&&(n=n_(t,{owner:this}),this.addValue(e,n)),n}readValue(e){var t;return void 0===this.latestValues[e]&&this.current?null!=(t=this.getBaseTargetFromProps(this.props,e))?t:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null==(t=eb(this.props,n))?void 0:t[e]:void 0;if(n&&void 0!==r)return r;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||I(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new nk),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class i$ extends iz{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:r},i){let o=function(e,t,n){let r={};for(let i in e){let e=function(e,t){if(t)return(t[e]||t.default||t).from}(i,t);if(void 0!==e)r[i]=e;else{let e=n.getValue(i);e&&(r[i]=e.get())}}return r}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),o&&(o=r(o))),i){!function(e,t,n){var r,i;let o=Object.keys(t).filter(t=>!e.hasValue(t)),a=o.length;if(a)for(let s=0;s<a;s++){let a=o[s],l=t[a],u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!=(i=null!=(r=n[a])?r:e.readValue(a))?i:t[a]),null!=u&&("string"==typeof u&&(nS(u)||ng(u))?u=parseFloat(u):!nR(u)&&tV.test(l)&&(u=nm(a,l)),e.addValue(a,n_(u,{owner:e})),void 0===n[a]&&(n[a]=u),null!==u&&e.setBaseTarget(a,u))}}(this,n,o);let e=iR(this,n,o,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class iV extends i${constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,t){if(P.has(t)){let e=nf(t);return e&&e.default||0}{let n=window.getComputedStyle(e),r=(L(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return rg(e,t)}build(e,t,n,r){en(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t){return ev(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;I(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,n,r){ef(e,t,n,r)}}class iH extends i${constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(P.has(t)){let e=nf(t);return e&&e.default||0}return t=em.has(t)?t:c(t),e.getAttribute(t)}measureInstanceViewportBox(){return re()}scrapeMotionValuesFromProps(e,t){return ey(e,t)}build(e,t,n,r){ed(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){eg(e,t,n,r)}mount(e){this.isSVGTag=ep(e.tagName),super.mount(e)}}let iW=(e,t)=>
25C(e)?new iH(t,{enableHardwareAcceleration:!1}):new iV(t,{enableHardwareAcceleration:!0}),iG={animation:{Feature:nz},exit:{Feature:nV},inView:{Feature:e4},tap:{Feature:eZ},focus:{Feature:eK},hover:{Feature:eY},pan:{Feature:rA},drag:{Feature:rS,ProjectionNode:ib,MeasureLayout:r_},layout:{ProjectionNode:ib,MeasureLayout:r_}},iq=function(e){function t(n,c={}){return function({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:c,Component:f}){e&&function(e){for(let t in e)S[t]={...S[t],...e[t]}}(e);let m=(0,r.forwardRef)(function(m,g){var y;let w,S={...(0,r.useContext)(i),...m,layoutId:function({layoutId:e}){let t=(0,r.useContext)(x).id;return t&&void 0!==e?t+"-"+e:e}(m)},{isStatic:k}=S,E=function(e){let{initial:t,animate:n}=function(e,t){if(v(e)){let{initial:t,animate:n}=e;return{initial:!1===t||p(t)?t:void 0,animate:p(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,r.useContext)(o));return(0,r.useMemo)(()=>({initial:t,animate:n}),[b(t),b(n)])}(m),C=c(m,k);if(!k&&s){E.visualElement=function(e,t,n,s){let{visualElement:c}=(0,r.useContext)(o),h=(0,r.useContext)(u),p=(0,r.useContext)(a),f=(0,r.useContext)(i).reducedMotion,m=(0,r.useRef)();s=s||h.renderer,!m.current&&s&&(m.current=s(e,{visualState:t,parent:c,props:n,presenceContext:p,blockInitialAnimation:!!p&&!1===p.initial,reducedMotionConfig:f}));let g=m.current;(0,r.useInsertionEffect)(()=>{g&&g.update(n,p)});let v=(0,r.useRef)(!!(n[d]&&!window.HandoffComplete));return l(()=>{g&&(g.render(),v.current&&g.animationState&&g.animationState.animateChanges())}),(0,r.useEffect)(()=>{g&&(g.updateFeatures(),!v.current&&g.animationState&&g.animationState.animateChanges(),v.current&&(v.current=!1,window.HandoffComplete=!0))}),g}(f,C,S,t);let n=(0,r.useContext)(A),s=(0,r.useContext)(u).strict;E.visualElement&&(w=E.visualElement.loadFeatures(S,s,e,n))}return r.createElement(o.Provider,{value:E},w&&E.visualElement?r.createElement(w,{visualElement:E.visualElement,...S}):null,n(f,m,(y=E.visualElement,(0,r.useCallback)(e=>{e&&C.mount&&C.mount(e),y&&(e?y.mount(e):y.unmount()),g&&("function"==typeof g?g(e):h(g)&&(g.current=e))},[y])),C,k,E.visualElement))});return m[k]=f,m}(e(n,c))}if("undefined"==typeof Proxy)return t;let n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}((e,t)=>(function(e,{forwardMotionProps:t=!1},n,i){return{...C(e)?eO:eR,preloadedFeatures:n,useRender:function(e=!1){return(t,n,i,{latestValues:o},a)=>{let s=(C(t)?function(e,t,n,i){let o=(0,r.useMemo)(()=>{let n=eh();return ed(n,t,{enableHardwareAcceleration:!1},ep(i),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};ei(t,e.style,e),o.style={...t,...o.style}}return o}:function(e,t,n){let i={},o=function(e,t,n){let i=e.style||{},o={};return ei(o,i,e),Object.assign(o,function({transformTemplate:e},t,n){return(0,r.useMemo)(()=>{let r=er();return en(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}(e,t,n)),e.transformValues?e.transformValues(o):o}
25(e,t,n);return e.drag&&!1!==e.dragListener&&(i.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=o,i})(n,o,a,t),l={...function(e,t,n){let r={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(es(i)||!0===n&&ea(i)||!t&&!ea(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),...s,ref:i},{children:u}=n,c=(0,r.useMemo)(()=>I(u)?u.get():u,[u]);return(0,r.createElement)(t,{...l,children:c})}}(t),createVisualElement:i,Component:e}})(e,t,iG,iW))},77290:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=function(e,t=[]){if(void 0===e)return{};let n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}},77358:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},77687:(e,t,n)=>{"use strict";n.d(t,{v:()=>o});var r=n(56752);let i=()=>"di",o=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r.F9&&!1===r.S$)return globalThis.__paraglide_ssr.alternateimagetext_by2(t);let o=null!=(e=n.locale)?e:(0,r.JK)();return((0,r.fQ)("alternateimagetext_by2",o),"it"===o)?i(t):"alternateImageText_by"}},78002:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(55729);function i(e){if(parseInt(r.version,10)>=19){var t;return(null==e||null==(t=e.props)?void 0:t.ref)||null}return(null==e?void 0:e.ref)||null}},78250:(e,t,n)=>{"use strict";function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(31996),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},79637:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6029),i=n(75233);let o=(0,n(55729).forwardRef)(function(e,t){return(0,r.jsx)(i.A,{...e,ref:t,maxWidth:!1,sx:{...e.sx,px:{xs:27,xxl:64}}})})},79914:function(e){e.exports=function(){"use strict";var e=Object.defineProperty,t=(t,n,r)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,n=(e,n,r)=>(t(e,"symbol"!=typeof n?n+"":n,r),r);function r(e){return e==e&&e!==1/0&&e!==-1/0}class i{constructor(){n(this,"isCDNUrl",(e="")=>e.indexOf("/cdn/")>-1),n(this,"getOptionsPage",(e,t=25,n=1)=>({...e,per_page:t,page:n})),n(this,"delay",e=>new Promise(t=>setTimeout(t,e))),n(this,"arrayFrom",(e=0,t)=>[...Array(e)].map(t)),n(this,"range",(e=0,t=e)=>{let n=Math.abs(t-e)||0,r=e<t?1:-1;return this.arrayFrom(n,(t,n)=>n*r+e)}),n(this,"asyncMap",async(e,t)=>Promise.all(e.map(t))),n(this,"flatMap",(e=[],t)=>e.map(t).reduce((e,t)=>[...e,...t],[])),n(this,"escapeHTML",function(e){let t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},n=/[&<>"']/g,r=RegExp(n.source);return e&&r.test(e)?e.replace(n,e=>t[e]):e})}stringify(e,t,n){let r=[];for(let i in e){let o;if(!Object.prototype.hasOwnProperty.call(e,i))continue;let a=e[i],s=n?"":encodeURIComponent(i);o="object"==typeof a?this.stringify(a,t?t+encodeURIComponent("["+s+"]"):s,Array.isArray(a)):(t?t+encodeURIComponent("["+s+"]"):s)+"="+encodeURIComponent(a),r.push(o)}return r.join("&")}getRegionURL(e){switch(e){case"us":return"api-us.storyblok.com";case"cn":return"app.storyblokchina.cn";default:return"api.storyblok.com"}}}let o=Object.freeze(Object.defineProperty({__proto__:null,SbHelpers:i},Symbol.toStringTag,{value:"Module"})),a=function(e,t){let n={};for(let r in e){let i=e[r];t.indexOf(r)>-1&&null!==i&&(n[r]=i)}return n},s=e=>"email"===e,l={nodes:{horizontal_rule:()=>({singleTag:"hr"}),blockquote:()=>({tag:"blockquote"}),bullet_list:()=>({tag:"ul"}),code_block:e=>({tag:["pre",{tag:"code",attrs:e.attrs}]}),hard_break:()=>({singleTag:"br"}),heading:e=>({tag:`h${e.attrs.level}`}),image:e=>({singleTag:[{tag:"img",attrs:a(e.attrs,["src","alt","title"])}]}),list_item:()=>({tag:"li"}),ordered_list:()=>({tag:"ol"}),paragraph:()=>({tag:"p"}
25),emoji:e=>({tag:[{tag:"span",attrs:{"data-type":"emoji","data-name":e.attrs.name,emoji:e.attrs.emoji}}]})},marks:{bold:()=>({tag:"b"}),strike:()=>({tag:"strike"}),underline:()=>({tag:"u"}),strong:()=>({tag:"strong"}),code:()=>({tag:"code"}),italic:()=>({tag:"i"}),link:e=>{if(!e.attrs)return{tag:""};let t=new i().escapeHTML,n={...e.attrs},{linktype:r="url"}=e.attrs;if(delete n.linktype,n.href&&(n.href=t(e.attrs.href||"")),s(r)&&(n.href=`mailto:${n.href}`),n.anchor&&(n.href=`${n.href}#${n.anchor}`,delete n.anchor),n.custom){for(let e in n.custom)n[e]=n.custom[e];delete n.custom}return{tag:[{tag:"a",attrs:n}]}},styled:e=>({tag:[{tag:"span",attrs:e.attrs}]}),subscript:()=>({tag:"sub"}),superscript:()=>({tag:"sup"}),anchor:e=>({tag:[{tag:"span",attrs:e.attrs}]}),highlight:e=>{var t;return null!=(t=e.attrs)&&t.color?{tag:[{tag:"span",attrs:{style:`background-color:${e.attrs.color};`}}]}:{tag:""}},textStyle:e=>{var t;return null!=(t=e.attrs)&&t.color?{tag:[{tag:"span",attrs:{style:`color:${e.attrs.color}`}}]}:{tag:""}}}},u=function(e){let t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},n=/[&<>"']/g,r=RegExp(n.source);return e&&r.test(e)?e.replace(n,e=>t[e]):e};class c{constructor(e){n(this,"marks"),n(this,"nodes"),e||(e=l),this.marks=e.marks||[],this.nodes=e.nodes||[]}addNode(e,t){this.nodes[e]=t}addMark(e,t){this.marks[e]=t}render(e,t={optimizeImages:!1}){if(e&&e.content&&Array.isArray(e.content)){let n="";return e.content.forEach(e=>{n+=this.renderNode(e)}),t.optimizeImages?this.optimizeImages(n,t.optimizeImages):n}return console.warn(`The render method must receive an Object with a "content" field.
26			The "content" field must be an array of nodes as the type ISbRichtext.
27			ISbRichtext:
28				content?: ISbRichtext[]
29				marks?: ISbRichtext[]
30				attrs?: any
31				text?: string
32				type: string
33				
34				Example:
35				{
36					content: [
37						{
38							content: [
39								{
40									text: 'Hello World',
41									type: 'text'
42								}
43							],
44							type: 'paragraph'
45						}
46					],
47					type: 'doc'
48				}`),""}optimizeImages(e,t){let n=0,r=0,i="",o="";"boolean"!=typeof t&&("number"==typeof t.width&&t.width>0&&(i+=`width="${t.width}" `,n=t.width),"number"==typeof t.height&&t.height>0&&(i+=`height="${t.height}" `,r=t.height),("lazy"===t.loading||"eager"===t.loading)&&(i+=`loading="${t.loading}" `),"string"==typeof t.class&&t.class.length>0&&(i+=`class="${t.class}" `),t.filters&&("number"==typeof t.filters.blur&&t.filters.blur>=0&&t.filters.blur<=100&&(o+=`:blur(${t.filters.blur})`),"number"==typeof t.filters.brightness&&t.filters.brightness>=-100&&t.filters.brightness<=100&&(o+=`:brightness(${t.filters.brightness})`),t.filters.fill&&(t.filters.fill.match(/[0-9A-Fa-f]{6}/g)||"transparent"===t.filters.fill)&&(o+=`:fill(${t.filters.fill})`),t.filters.format&&["webp","png","jpeg"].includes(t.filters.format)&&(o+=`:format(${t.filters.format})`),"boolean"==typeof t.filters.grayscale&&t.filters.grayscale&&(o+=":grayscale()"),"number"==typeof t.filters.quality&&t.filters.quality>=0&&t.filters.quality<=100&&(o+=`:quality(${t.filters.quality})`),t.filters.rotate&&[90,180,270].includes(t.filters.rotate)&&(o+=`:rotate(${t.filters.rotate})`),o.length>0&&(o="/filters"+o))),i.length>0&&(e=e.replace(/<img/g,`<img ${i.trim()}`));let a=n>0||r>0||o.length>0?`${n}x${r}${o}`:"";return e=e.replace(/a.storyblok.com\/f\/(\d+)\/([^.]+)\.(gif|jpg|jpeg|png|tif|tiff|bmp)/g,`a.storyblok.com/f/$1/$2.$3/m/${a}`),"boolean"!=typeof t&&(t.sizes||t.srcset)&&(e=e.replace(/<img.*?src=["|'](.*?)["|']/g,e=>{var n,r;let i=e.match(/a.storyblok.com\/f\/(\d+)\/([^.]+)\.(gif|jpg|jpeg|png|tif|tiff|bmp)/g);if(i&&i.length>0){let a={srcset:null==(n=t.srcset)?void 0:n.map(e=>{if("number"==typeof e)return`//${i}/m/${e}x0${o} ${e}w`;if("object"==typeof e&&2===e.length){let t=0,n=0;return"number"==typeof e[0]&&(t=e[0]),"number"==typeof e[1]&&(n=e[1]),`//${i}/m/${t}x${n}${o} ${t}w`}}).join(", "),sizes:null==(r=t.sizes)?void 0:r.map(e=>e).join(", ")},s="";return a.srcset&&(s+=`srcset="${a.srcset}" `),a.sizes&&(s+=`sizes="${a.sizes}" `),e.replace(/<img/g,`<img ${s.trim()}`)}return e})),e}renderNode(e){let t=[];
48e.marks&&e.marks.forEach(e=>{let n=this.getMatchingMark(e);n&&""!==n.tag&&t.push(this.renderOpeningTag(n.tag))});let n=this.getMatchingNode(e);return n&&n.tag&&t.push(this.renderOpeningTag(n.tag)),e.content?e.content.forEach(e=>{t.push(this.renderNode(e))}):e.text?t.push(u(e.text)):n&&n.singleTag?t.push(this.renderTag(n.singleTag," /")):n&&n.html?t.push(n.html):"emoji"===e.type&&t.push(this.renderEmoji(e)),n&&n.tag&&t.push(this.renderClosingTag(n.tag)),e.marks&&e.marks.slice(0).reverse().forEach(e=>{let n=this.getMatchingMark(e);n&&""!==n.tag&&t.push(this.renderClosingTag(n.tag))}),t.join("")}renderTag(e,t){return e.constructor===String?`<${e}${t}>`:e.map(e=>{if(e.constructor===String)return`<${e}${t}>`;{let n=`<${e.tag}`;if(e.attrs)for(let t in e.attrs){let r=e.attrs[t];null!==r&&(n+=` ${t}="${r}"`)}return`${n}${t}>`}}).join("")}renderOpeningTag(e){return this.renderTag(e,"")}renderClosingTag(e){return e.constructor===String?`</${e}>`:e.slice(0).reverse().map(e=>e.constructor===String?`</${e}>`:`</${e.tag}>`).join("")}getMatchingNode(e){let t=this.nodes[e.type];if("function"==typeof t)return t(e)}getMatchingMark(e){let t=this.marks[e.type];if("function"==typeof t)return t(e)}renderEmoji(e){if(e.attrs.emoji)return e.attrs.emoji;let t=[{tag:"img",attrs:{src:e.attrs.fallbackImage,draggable:"false",loading:"lazy",align:"absmiddle"}}];return this.renderTag(t," /")}}class d{constructor(e){n(this,"baseURL"),n(this,"timeout"),n(this,"headers"),n(this,"responseInterceptor"),n(this,"fetch"),n(this,"ejectInterceptor"),n(this,"url"),n(this,"parameters"),this.baseURL=e.baseURL,this.headers=e.headers||new Headers,this.timeout=null!=e&&e.timeout?1e3*e.timeout:0,this.responseInterceptor=e.responseInterceptor,this.fetch=(...t)=>e.fetch?e.fetch(...t):fetch(...t),this.ejectInterceptor=!1,this.url="",this.parameters={}}get(e,t){return this.url=e,this.parameters=t,this._methodHandler("get")}post(e,t){return this.url=e,this.parameters=t,this._methodHandler("post")}put(e,t){return this.url=e,this.parameters=t,this._methodHandler("put")}delete(e,t){return this.url=e,this.parameters=t,this._methodHandler("delete")}async _responseHandler(e){let t=[],n={data:{},headers:{},status:0,statusText:""};for(let r of(204!==e.status&&await e.json().then(e=>{n.data=e}),e.headers.entries()))t[r[0]]=r[1];return n.headers={...t},n.status=e.status,n.statusText=e.statusText,n}async _methodHandler(e){let t,n=`${this.baseURL}${this.url}`,r=null;if("get"===e){let e=new i;n=`${this.baseURL}${this.url}?${e.stringify(this.parameters)}`}else r=JSON.stringify(this.parameters);let o=new URL(n),a=new AbortController,{signal:s}=a;this.timeout&&(t=setTimeout(()=>a.abort(),this.timeout));try{let n=await this.fetch(`${o}`,{method:e,headers:this.headers,body:r,signal:s});this.timeout&&clearTimeout(t);let i=await this._responseHandler(n);return this.responseInterceptor&&!this.ejectInterceptor?this._statusHandler(this.responseInterceptor(i)):this._statusHandler(i)}catch(e){return{message:e}}}eject(){this.ejectInterceptor=!0}_statusHandler(e){let t=/20[0-6]/g;return new Promise((n,r)=>{if(t.test(`${e.status}`))return n(e);r({message:Error(e.statusText),status:e.status,response:Array.isArray(e.data)?e.data[0]:e.data.error||e.data.slug})})}}let h="SB-Agent",p={defaultAgentName:"SB-JS-CLIENT",defaultAgentVersion:"SB-Agent-Version",packageVersion:"5.14.4"},f={},m={};class g{constructor(e,t){n(this,"client"),n(this,"maxRetries"),n(this,"throttle"),n(this,"accessToken"),n(this,"cache"),n(this,"helpers"),n(this,"resolveCounter"),n(this,"relations"),n(this,"links"),n(this,"richTextResolver"),n(this,"resolveNestedRelations");let o=e.endpoint||t;if(!o){let t=new i().getRegionURL,n=!1===e.https?"http":"https";o=e.oauthToken?`${n}://${t(e.region)}/v1`:`${n}://${t(e.region)}/v2`}let a=new Headers;if(a.set("Content-Type","application/json"),a.set("Accept","application/json"),e.headers)for(let t in e.headers)a.set(t,e.headers[t]);a.has(h)||(a.set(h,p.defaultAgentName),a.set(p.defaultAgentVersion,p.packageVersion));let s=5;e.oauthToken&&(a.set("Authorization",e.oauthToken),s=3),e.rateLimit&&(s=e.rateLimit),e.richTextSchema?this.richTextResolver=new c(e.richTextSchema):this.richTextResolver=new c,e.componentResolver&&this.setComponentResolver(e.componentResolver),this.maxRetries=e.maxRetries||5,this.throttle=function(e,t,n){if(!r(t))throw TypeError("Expected `limit` to be a finite number");if(!r(1e3))throw TypeError("Expected `interval` to be a finite number");let i=[],o=[],a=0,s=function(){a++;let t=setTimeout(function(){a--,i.length>0&&s(),o=o.filter(function(e){return e!==t})},1e3);0>o.indexOf(t)&&o.push(t);let n=i.shift();n.resolve(e.apply(n.self,n.args))},l=function(...e){let n=this;return new Promise(function(r,o){i.push({resolve:r,reject:o,args:e,self:n}),a<t&&s()})};
48return l.abort=function(){o.forEach(clearTimeout),o=[],i.forEach(function(e){e.reject(function(){Error.call(this,"Throttled function aborted"),this.name="AbortError"})}),i.length=0},l}(this.throttledRequest,s,1e3),this.accessToken=e.accessToken||"",this.relations={},this.links={},this.cache=e.cache||{clear:"manual"},this.helpers=new i,this.resolveCounter=0,this.resolveNestedRelations=e.resolveNestedRelations||!0,this.client=new d({baseURL:o,timeout:e.timeout||0,headers:a,responseInterceptor:e.responseInterceptor,fetch:e.fetch})}setComponentResolver(e){this.richTextResolver.addNode("blok",t=>{let n="";return t.attrs.body&&t.attrs.body.forEach(t=>{n+=e(t.component,t)}),{html:n}})}parseParams(e){return e.version||(e.version="published"),e.token||(e.token=this.getToken()),e.cv||(e.cv=m[e.token]),Array.isArray(e.resolve_relations)&&(e.resolve_relations=e.resolve_relations.join(",")),e}factoryParamOptions(e,t){return this.helpers.isCDNUrl(e)?this.parseParams(t):t}makeRequest(e,t,n,r){let i=this.factoryParamOptions(e,this.helpers.getOptionsPage(t,n,r));return this.cacheResponse(e,i)}get(e,t){t||(t={});let n=`/${e}`,r=this.factoryParamOptions(n,t);return this.cacheResponse(n,r)}async getAll(e,t,n){let r=(null==t?void 0:t.per_page)||25,i=`/${e}`,o=i.split("/"),a=n||o[o.length-1],s=await this.makeRequest(i,t,r,1),l=s.total?Math.ceil(s.total/r):1,u=await this.helpers.asyncMap(this.helpers.range(1,l),e=>this.makeRequest(i,t,r,e+1));return this.helpers.flatMap([s,...u],e=>Object.values(e.data[a]))}post(e,t){let n=`/${e}`;return Promise.resolve(this.throttle("post",n,t))}put(e,t){let n=`/${e}`;return Promise.resolve(this.throttle("put",n,t))}delete(e,t){let n=`/${e}`;return Promise.resolve(this.throttle("delete",n,t))}getStories(e){return this.get("cdn/stories",e)}getStory(e,t){return this.get(`cdn/stories/${e}`,t)}getToken(){return this.accessToken}ejectInterceptor(){this.client.eject()}_cleanCopy(e){return JSON.parse(JSON.stringify(e))}_insertLinks(e,t,n){let r=e[t];r&&"multilink"==r.fieldtype&&"story"==r.linktype&&"string"==typeof r.id&&this.links[n][r.id]?r.story=this._cleanCopy(this.links[n][r.id]):r&&"story"===r.linktype&&"string"==typeof r.uuid&&this.links[n][r.uuid]&&(r.story=this._cleanCopy(this.links[n][r.uuid]))}_insertRelations(e,t,n,r){if(n.indexOf(`${e.component}.${t}`)>-1){if("string"==typeof e[t])this.relations[r][e[t]]&&(e[t]=this._cleanCopy(this.relations[r][e[t]]));else if(e[t]&&e[t].constructor===Array){let n=[];e[t].forEach(e=>{this.relations[r][e]&&n.push(this._cleanCopy(this.relations[r][e]))}),e[t]=n}}}iterateTree(e,t,n){let r=e=>{if(null!=e){if(e.constructor===Array)for(let t=0;t<e.length;t++)r(e[t]);else if(e.constructor===Object){if(e._stopResolving)return;for(let i in e)(e.component&&e._uid||"link"===e.type)&&(this._insertRelations(e,i,t,n),this._insertLinks(e,i,n)),r(e[i])}}};r(e.content)}async resolveLinks(e,t,n){let r=[];if(e.link_uuids){let n=e.link_uuids.length,i=[];for(let t=0;t<n;t+=50){let r=Math.min(n,t+50);i.push(e.link_uuids.slice(t,r))}for(let e=0;e<i.length;
48e++)(await this.getStories({per_page:50,language:t.language,version:t.version,by_uuids:i[e].join(",")})).data.stories.forEach(e=>{r.push(e)})}else r=e.links;r.forEach(e=>{this.links[n][e.uuid]={...e,_stopResolving:!0}})}async resolveRelations(e,t,n){let r=[];if(e.rel_uuids){let n=e.rel_uuids.length,i=[];for(let t=0;t<n;t+=50){let r=Math.min(n,t+50);i.push(e.rel_uuids.slice(t,r))}for(let e=0;e<i.length;e++)(await this.getStories({per_page:50,language:t.language,version:t.version,by_uuids:i[e].join(",")})).data.stories.forEach(e=>{r.push(e)})}else r=e.rels;r&&r.length>0&&r.forEach(e=>{this.relations[n][e.uuid]={...e,_stopResolving:!0}})}async resolveStories(e,t,n){var r,i;let o=[];if(this.links[n]={},this.relations[n]={},"u">typeof t.resolve_relations&&t.resolve_relations.length>0&&("string"==typeof t.resolve_relations&&(o=t.resolve_relations.split(",")),await this.resolveRelations(e,t,n)),t.resolve_links&&["1","story","url","link"].indexOf(t.resolve_links)>-1&&(null!=(r=e.links)&&r.length||null!=(i=e.link_uuids)&&i.length)&&await this.resolveLinks(e,t,n),this.resolveNestedRelations)for(let e in this.relations[n])this.iterateTree(this.relations[n][e],o,n);e.story?this.iterateTree(e.story,o,n):e.stories.forEach(e=>{this.iterateTree(e,o,n)}),delete this.links[n],delete this.relations[n]}async cacheResponse(e,t,n){(typeof n>"u"||!n)&&(n=0);let r=this.helpers.stringify({url:e,params:t}),i=this.cacheProvider();if("auto"===this.cache.clear&&"draft"===t.version&&await this.flushCache(),"published"===t.version&&"/cdn/spaces/me"!=e){let e=await i.get(r);if(e)return Promise.resolve(e)}return new Promise(async(o,a)=>{var s;try{let n=await this.throttle("get",e,t);if(200!==n.status)return a(n);let l={data:n.data,headers:n.headers};if(null!=(s=n.headers)&&s["per-page"]&&(l=Object.assign({},l,{perPage:n.headers["per-page"]?parseInt(n.headers["per-page"]):0,total:n.headers["per-page"]?parseInt(n.headers.total):0})),l.data.story||l.data.stories){let e=this.resolveCounter=++this.resolveCounter%1e3;await this.resolveStories(l.data,t,`${e}`)}return"published"===t.version&&"/cdn/spaces/me"!=e&&await i.set(r,l),l.data.cv&&t.token&&("draft"==t.version&&m[t.token]!=l.data.cv&&await this.flushCache(),m[t.token]=l.data.cv),o(l)}catch(r){if(r.response&&429===r.response.status&&(n=n?n+1:0)<this.maxRetries)return console.log(`Hit rate limit. Retrying in ${n} seconds.`),await this.helpers.delay(1e3*n),this.cacheResponse(e,t,n).then(o).catch(a);a(r.message)}})}throttledRequest(e,t,n){return this.client[e](t,n)}cacheVersions(){return m}cacheVersion(){return m[this.accessToken]}setCacheVersion(e){this.accessToken&&(m[this.accessToken]=e)}cacheProvider(){switch(this.cache.type){case"memory":return{get:e=>Promise.resolve(f[e]),getAll:()=>Promise.resolve(f),set:(e,t)=>(f[e]=t,Promise.resolve(void 0)),flush:()=>(f={},Promise.resolve(void 0))};case"custom":if(this.cache.custom)return this.cache.custom;default:return{get:()=>Promise.resolve(void 0),getAll:()=>Promise.resolve(void 0),set:()=>Promise.resolve(void 0),flush:()=>Promise.resolve(void 0)}}}async flushCache(){return await this.cacheProvider().flush(),this}}let v=(e,t)=>{for(let n in t)e[n]=t[n]};return v(g,{RichtextResolver:c,SbFetch:d,RichTextSchema:l}),v(g,o),g}()},80051:(e,t,n)=>{"use strict";n.d(t,{A:()=>R});var r=n(1983),i=n(99410),o=n(55729),a=n(50212),s=n(17582),l=n(9718),u=n(50787),c=n(52526),d=n(97506),h=n(37597),p=n(43869),f=n(16492),m=n(46720);function g(e){return(0,m.Ay)("MuiAlert",e)}let v=(0,f.A)("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);var y=n(80824),b=n(33403),w=n(6029);let S=(0,b.A)((0,w.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}
48),"SuccessOutlined"),x=(0,b.A)((0,w.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),A=(0,b.A)((0,w.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),k=(0,b.A)((0,w.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined");var E=n(74077);let C=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],T=e=>{let{variant:t,color:n,severity:r,classes:i}=e,o={root:["root","color".concat((0,h.A)(n||r)),"".concat(t).concat((0,h.A)(n||r)),"".concat(t)],icon:["icon"],message:["message"],action:["action"]};return(0,s.A)(o,g,i)},_=(0,u.Ay)(p.A,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t["".concat(n.variant).concat((0,h.A)(n.color||n.severity))]]}})(e=>{let{theme:t}=e,n="light"===t.palette.mode?l.e$:l.a,r="light"===t.palette.mode?l.a:l.e$;return(0,i.A)({},t.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(t.palette).filter(e=>{let[,t]=e;return t.main&&t.light}).map(e=>{let[i]=e;return{props:{colorSeverity:i,variant:"standard"},style:{color:t.vars?t.vars.palette.Alert["".concat(i,"Color")]:n(t.palette[i].light,.6),backgroundColor:t.vars?t.vars.palette.Alert["".concat(i,"StandardBg")]:r(t.palette[i].light,.9),["& .".concat(v.icon)]:t.vars?{color:t.vars.palette.Alert["".concat(i,"IconColor")]}:{color:t.palette[i].main}}}}),...Object.entries(t.palette).filter(e=>{let[,t]=e;return t.main&&t.light}).map(e=>{let[r]=e;return{props:{colorSeverity:r,variant:"outlined"},style:{color:t.vars?t.vars.palette.Alert["".concat(r,"Color")]:n(t.palette[r].light,.6),border:"1px solid ".concat((t.vars||t).palette[r].light),["& .".concat(v.icon)]:t.vars?{color:t.vars.palette.Alert["".concat(r,"IconColor")]}:{color:t.palette[r].main}}}}),...Object.entries(t.palette).filter(e=>{let[,t]=e;return t.main&&t.dark}).map(e=>{let[n]=e;return{props:{colorSeverity:n,variant:"filled"},style:(0,i.A)({fontWeight:t.typography.fontWeightMedium},t.vars?{color:t.vars.palette.Alert["".concat(n,"FilledColor")],backgroundColor:t.vars.palette.Alert["".concat(n,"FilledBg")]}:{backgroundColor:"dark"===t.palette.mode?t.palette[n].dark:t.palette[n].main,color:t.palette.getContrastText(t.palette[n].main)})}})]})}),P=(0,u.Ay)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),M=(0,u.Ay)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),I=(0,u.Ay)("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),O={success:(0,w.jsx)(S,{fontSize:"inherit"}),warning:(0,w.jsx)(x,{fontSize:"inherit"}),error:(0,w.jsx)(A,{fontSize:"inherit"}),info:(0,w.jsx)(k,{fontSize:"inherit"})},R=o.forwardRef(function(e,t){let n=(0,c.b)({props:e,name:"MuiAlert"}),{action:o,children:s,className:l,closeText:u="Close",color:h,components:p={},componentsProps:f={},icon:m,iconMapping:g=O,onClose:v,role:b="alert",severity:S="success",slotProps:x={},slots:A={},variant:k="standard"}=n,R=(0,r.A)(n,C),D=(0,i.A)({},n,{color:h,severity:S,variant:k,colorSeverity:h||S}),L=T(D),j={slots:(0,i.A)({closeButton:p.CloseButton,closeIcon:p.CloseIcon},A),slotProps:(0,i.A)({},f,x)},[U,N]=(0,d.A)("closeButton",{elementType:y.A,externalForwardedProps:j,ownerState:D}),[F,B]=(0,d.A)("closeIcon",{elementType:E.A,externalForwardedProps:j,ownerState:D});return(0,w.jsxs)(_,(0,i.A)({role:b,elevation:0,ownerState:D,className:(0,a.A)(L.root,l),ref:t},R,{children:[!1!==m?(0,w.jsx)(P,{ownerState:D,className:L.icon,children:m||g[S]||O[S]}):null,(0,w.jsx)(M,{ownerState:D,className:L.message,children:s}),null!=o?(0,w.jsx)(I,{ownerState:D,className:L.action,children:o}):null,null==o&&v?(0,w.jsx)(I,{ownerState:D,className:L.action,children:(0,w.jsx)(U,(0,i.A)({size:"small","aria-label":u,title:u,color:"inherit",onClick:v},N,{children:(0,w.jsx)(F,(0,i.A)({fontSize:"small"},B))}))}):null]}))})},80266:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,isPlainObject:()=>r.Q});var r=n(25060)}
48,80404:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=function(e,t,n){return"function"==typeof e?e(t,n):e}},80594:(e,t,n)=>{"use strict";n.d(t,{f:()=>r});let r=(e,t="warning")=>{let n=!1,r=Array.isArray(e)?e.join("\n"):e;return()=>{n||(n=!0,"error"===t?console.error(r):console.warn(r))}}},80824:(e,t,n)=>{"use strict";n.d(t,{A:()=>S});var r=n(1983),i=n(99410),o=n(55729),a=n(50212),s=n(17582),l=n(9718),u=n(50787),c=n(52526),d=n(39159),h=n(37597),p=n(16492),f=n(46720);function m(e){return(0,f.Ay)("MuiIconButton",e)}let g=(0,p.A)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);var v=n(6029);let y=["edge","children","className","color","disabled","disableFocusRipple","size"],b=e=>{let{classes:t,disabled:n,color:r,edge:i,size:o}=e,a={root:["root",n&&"disabled","default"!==r&&"color".concat((0,h.A)(r)),i&&"edge".concat((0,h.A)(i)),"size".concat((0,h.A)(o))]};return(0,s.A)(a,m,t)},w=(0,u.Ay)(d.A,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,"default"!==n.color&&t["color".concat((0,h.A)(n.color))],n.edge&&t["edge".concat((0,h.A)(n.edge))],t["size".concat((0,h.A)(n.size))]]}})(e=>{let{theme:t,ownerState:n}=e;return(0,i.A)({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,l.X4)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===n.edge&&{marginLeft:"small"===n.size?-3:-12},"end"===n.edge&&{marginRight:"small"===n.size?-3:-12})},e=>{var t;let{theme:n,ownerState:r}=e,o=null==(t=(n.vars||n).palette)?void 0:t[r.color];return(0,i.A)({},"inherit"===r.color&&{color:"inherit"},"inherit"!==r.color&&"default"!==r.color&&(0,i.A)({color:null==o?void 0:o.main},!r.disableRipple&&{"&:hover":(0,i.A)({},o&&{backgroundColor:n.vars?"rgba(".concat(o.mainChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,l.X4)(o.main,n.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===r.size&&{padding:5,fontSize:n.typography.pxToRem(18)},"large"===r.size&&{padding:12,fontSize:n.typography.pxToRem(28)},{["&.".concat(g.disabled)]:{backgroundColor:"transparent",color:(n.vars||n).palette.action.disabled}})}),S=o.forwardRef(function(e,t){let n=(0,c.b)({props:e,name:"MuiIconButton"}),{edge:o=!1,children:s,className:l,color:u="default",disabled:d=!1,disableFocusRipple:h=!1,size:p="medium"}=n,f=(0,r.A)(n,y),m=(0,i.A)({},n,{edge:o,color:u,disabled:d,disableFocusRipple:h,size:p}),g=b(m);return(0,v.jsx)(w,(0,i.A)({className:(0,a.A)(g.root,l),centerRipple:!0,focusRipple:!h,disabled:d,ref:t},f,{ownerState:m,children:s}))})},80834:(e,t,n)=>{var r,i;!function(o){var a;void 0===(i="function"==typeof(r=o)?r.call(t,n,t,e):r)||(e.exports=i),e.exports=o()}(function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2}
48)+/g,decodeURIComponent)}return function n(r){function i(){}function o(t,n,o){if("undefined"!=typeof document){"number"==typeof(o=e({path:"/"},i.defaults,o)).expires&&(o.expires=new Date(new Date*1+864e5*o.expires)),o.expires=o.expires?o.expires.toUTCString():"";try{var a=JSON.stringify(n);/^[\{\[]/.test(a)&&(n=a)}catch(e){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,!0!==o[l]&&(s+="="+o[l].split(";")[0]));return document.cookie=t+"="+n+s}}function a(e,n){if("undefined"!=typeof document){for(var i={},o=document.cookie?document.cookie.split("; "):[],a=0;a<o.length;a++){var s=o[a].split("="),l=s.slice(1).join("=");n||'"'!==l.charAt(0)||(l=l.slice(1,-1));try{var u=t(s[0]);if(l=(r.read||r)(l,u)||t(l),n)try{l=JSON.parse(l)}catch(e){}if(i[u]=l,e===u)break}catch(e){}}return e?i[e]:i}}return i.set=o,i.get=function(e){return a(e,!1)},i.getJSON=function(e){return a(e,!0)},i.remove=function(t,n){o(t,"",e(n,{expires:-1}))},i.defaults={},i.withConverter=n,i}(function(){})})},81278:(e,t,n)=>{e.exports=n(33023)},82203:(e,t,n)=>{e.exports=n(47370)}
48,82299:(e,t,n)=>{"use strict";let r;n.r(t),n.d(t,{GlobalStyles:()=>x.A,StyledEngineProvider:()=>S,ThemeContext:()=>o.T,css:()=>y.AH,default:()=>A,internal_processStyles:()=>k,keyframes:()=>y.i7});var i=n(99410),o=n(87905),a=n(38260),s=n(44930),l=n(97248),u=n(55729),c=n(15800),d=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,h=(0,c.A)(function(e){return d.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),p=function(e){return"theme"!==e},f=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?h:p},m=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},g=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,l.SF)(t,n,r),(0,s.s)(function(){return(0,l.sk)(t,n,r)}),null},v=(function e(t,n){var r,s,c=t.__emotion_real===t,d=c&&t.__emotion_base||t;void 0!==n&&(r=n.label,s=n.target);
48var h=m(t,n,c),p=h||f(d),v=!p("as");return function(){var y=arguments,b=c&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&b.push("label:"+r+";"),null==y[0]||void 0===y[0].raw)b.push.apply(b,y);else{var w=y[0];b.push(w[0]);for(var S=y.length,x=1;x<S;x++)b.push(y[x],w[x])}var A=(0,o.w)(function(e,t,n){var r=v&&e.as||d,i="",c=[],m=e;if(null==e.theme){for(var y in m={},e)m[y]=e[y];m.theme=u.useContext(o.T)}"string"==typeof e.className?i=(0,l.Rk)(t.registered,c,e.className):null!=e.className&&(i=e.className+" ");var w=(0,a.J)(b.concat(c),t.registered,m);i+=t.key+"-"+w.name,void 0!==s&&(i+=" "+s);var S=v&&void 0===h?f(r):p,x={};for(var A in e)(!v||"as"!==A)&&S(A)&&(x[A]=e[A]);return x.className=i,n&&(x.ref=n),u.createElement(u.Fragment,null,u.createElement(g,{cache:t,serialized:w,isStringTag:"string"==typeof r}),u.createElement(r,x))});return A.displayName=void 0!==r?r:"Styled("+("string"==typeof d?d:d.displayName||d.name||"Component")+")",A.defaultProps=t.defaultProps,A.__emotion_real=A,A.__emotion_base=d,A.__emotion_styles=b,A.__emotion_forwardProp=h,Object.defineProperty(A,"toString",{value:function(){return"."+s}}),A.withComponent=function(t,r){return e(t,(0,i.A)({},n,r,{shouldForwardProp:m(A,r,!0)})).apply(void 0,b)},A}}).bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){v[e]=v(e)});var y=n(83004),b=n(6495),w=n(6029);function S(e){let{injectFirst:t,children:n}=e;return t&&r?(0,w.jsx)(o.C,{value:r,children:n}):n}"object"==typeof document&&(r=(0,b.A)({key:"css",prepend:!0}));var x=n(95785);function A(e,t){return v(e,t)}let k=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},82826:(e,t,n)=>{"use strict";n.d(t,{A:()=>j});var r=n(1983),i=n(99410),o=n(55729),a=n(17582),s=n(61912),l=n(25814),u=n(5470),c=n(77290);let d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:a,resumeHideDuration:s}=e,d=(0,l.A)();o.useEffect(()=>{if(a)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||null==r||r(e,"escapeKeyDown")}},[a,r]);let h=(0,u.A)((e,t)=>{null==r||r(e,t)}),p=(0,u.A)(e=>{r&&null!=e&&d.start(e,()=>{h(null,"timeout")})});o.useEffect(()=>(a&&p(t),d.clear),[a,t,p,d]);let f=d.clear,m=o.useCallback(()=>{null!=t&&p(null!=s?s:.5*t)},[t,s,p]),g=e=>t=>{let n=e.onBlur;null==n||n(t),m()},v=e=>t=>{let n=e.onFocus;null==n||n(t),f()},y=e=>t=>{let n=e.onMouseEnter;null==n||n(t),f()},b=e=>t=>{let n=e.onMouseLeave;null==n||n(t),m()};return o.useEffect(()=>{if(!n&&a)return window.addEventListener("focus",m),window.addEventListener("blur",f),()=>{window.removeEventListener("focus",m),window.removeEventListener("blur",f)}},[n,a,m,f]),{getRootProps:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(0,i.A)({},(0,c.A)(e),(0,c.A)(t));return(0,i.A)({role:"presentation"},t,n,{onBlur:g(n),onFocus:v(n),onMouseEnter:y(n),onMouseLeave:b(n)})},onClickAway:e=>{null==r||r(e,"clickaway")}}};var h=n(5584),p=n(50787),f=n(57964),m=n(52526),g=n(37597),v=n(46456),y=n(50212),b=n(9718),w=n(43869),S=n(16492),x=n(46720);function A(e){return(0,x.Ay)("MuiSnackbarContent",e)}(0,S.A)("MuiSnackbarContent",["root","message","action"]);var k=n(6029);let E=["action","className","message","role"],C=e=>{let{classes:t}=e;return(0,a.A)({root:["root"],action:["action"],message:["message"]},A,t)},T=(0,p.Ay)(w.A,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(e=>{let{theme:t}=e,n="light"===t.palette.mode?.8:.98,r=(0,b.tL)(t.palette.background.default,n);return(0,i.A)({},t.typography.body2,{color:t.vars?t.vars.palette.SnackbarContent.color:t.palette.getContrastText(r),backgroundColor:t.vars?t.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,flexGrow:1,[t.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),_=(0,p.Ay)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),P=(0,p.Ay)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),M=o.forwardRef(function(e,t){let n=(0,m.b)({props:e,name:"MuiSnackbarContent"}),{action:o,className:a,message:s,role:l="alert"}=n,u=(0,r.A)(n,E),c=C(n);return(0,k.jsxs)(T,(0,i.A)({role:l,square:!0,elevation:6,className:(0,y.A)(c.root,a),ownerState:n,ref:t},u,{children:[(0,k.jsx)(_,{className:c.message,ownerState:n,children:s}),o?(0,k.jsx)(P,{className:c.action,ownerState:n,children:o}):null]}))});function I(e){return(0,x.Ay)("MuiSnackbar",e)}
48(0,S.A)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);let O=["onEnter","onExited"],R=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],D=e=>{let{classes:t,anchorOrigin:n}=e,r={root:["root","anchorOrigin".concat((0,g.A)(n.vertical)).concat((0,g.A)(n.horizontal))]};return(0,a.A)(r,I,t)},L=(0,p.Ay)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t["anchorOrigin".concat((0,g.A)(n.anchorOrigin.vertical)).concat((0,g.A)(n.anchorOrigin.horizontal))]]}})(e=>{let{theme:t,ownerState:n}=e;return(0,i.A)({zIndex:(t.vars||t).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===n.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===n.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===n.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[t.breakpoints.up("sm")]:(0,i.A)({},"top"===n.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===n.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===n.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===n.anchorOrigin.horizontal&&{right:24,left:"auto"})})}),j=o.forwardRef(function(e,t){let n=(0,m.b)({props:e,name:"MuiSnackbar"}),a=(0,f.A)(),l={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:u,anchorOrigin:{vertical:c,horizontal:p}={vertical:"bottom",horizontal:"left"},autoHideDuration:g=null,children:y,className:b,ClickAwayListenerProps:w,ContentProps:S,disableWindowBlurListener:x=!1,message:A,open:E,TransitionComponent:C=v.A,transitionDuration:T=l,TransitionProps:{onEnter:_,onExited:P}={}}=n,I=(0,r.A)(n.TransitionProps,O),j=(0,r.A)(n,R),U=(0,i.A)({},n,{anchorOrigin:{vertical:c,horizontal:p},autoHideDuration:g,disableWindowBlurListener:x,TransitionComponent:C,transitionDuration:T}),N=D(U),{getRootProps:F,onClickAway:B}=d((0,i.A)({},U)),[z,$]=o.useState(!0),V=(0,s.A)({elementType:L,getSlotProps:F,externalForwardedProps:j,ownerState:U,additionalProps:{ref:t},className:[N.root,b]});return!E&&z?null:(0,k.jsx)(h.x,(0,i.A)({onClickAway:B},w,{children:(0,k.jsx)(L,(0,i.A)({},V,{children:(0,k.jsx)(C,(0,i.A)({appear:!0,in:E,timeout:T,direction:"top"===c?"down":"up",onEnter:(e,t)=>{$(!1),_&&_(e,t)},onExited:e=>{$(!0),P&&P(e)}},I,{children:y||(0,k.jsx)(M,(0,i.A)({message:A,action:u},S))}))}))}))})},83004:(e,t,n)=>{"use strict";n.d(t,{AH:()=>c,i7:()=>d,mL:()=>u});
48var r=n(87905),i=n(55729),o=n(97248),a=n(44930),s=n(38260);n(6495),n(31179);var l=function(e,t){var n=arguments;if(null==t||!r.h.call(t,"css"))return i.createElement.apply(void 0,n);var o=n.length,a=Array(o);a[0]=r.E,a[1]=(0,r.c)(e,t);for(var s=2;s<o;s++)a[s]=n[s];return i.createElement.apply(null,a)};!function(e){var t;t||(t=e.JSX||(e.JSX={}))}(l||(l={}));var u=(0,r.w)(function(e,t){var n=e.styles,l=(0,s.J)([n],void 0,i.useContext(r.T)),u=i.useRef();return(0,a.i)(function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,i=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(r=!0,i.setAttribute("data-emotion",e),n.hydrate([i])),u.current=[n,r],function(){n.flush()}},[t]),(0,a.i)(function(){var e=u.current,n=e[0];if(e[1]){e[1]=!1;return}if(void 0!==l.next&&(0,o.sk)(t,l.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",l,n,!1)},[t,l.name]),null});function c(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,s.J)(t)}function d(){var e=c.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},83807:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=void 0,t.uint32ArrayFrom=function(e){if(!Array.from){for(var t=new Uint32Array(e.length);0<e.length;)t[0]=e[0];return t}return Uint32Array.from(e)}},84089:(e,t,n)=>{"use strict";n.d(t,{I:()=>o});var r=n(56752);let i=()=>"Scorri a sinistra",o=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r.F9&&!1===r.S$)return globalThis.__paraglide_ssr.button_scrollleft1(t);let o=null!=(e=n.locale)?e:(0,r.JK)();return((0,r.fQ)("button_scrollleft1",o),"it"===o)?i(t):"button_scrollLeft"}},84609:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=t.numToUint8=t.isEmptyData=t.convertToBuffer=void 0;var r=n(70717);Object.defineProperty(t,"convertToBuffer",{enumerable:!0,get:function(){return r.convertToBuffer}});var i=n(63844);Object.defineProperty(t,"isEmptyData",{enumerable:!0,get:function(){return i.isEmptyData}});var o=n(5284);Object.defineProperty(t,"numToUint8",{enumerable:!0,get:function(){return o.numToUint8}});var a=n(83807);Object.defineProperty(t,"uint32ArrayFrom",{enumerable:!0,get:function(){return a.uint32ArrayFrom}})},85937:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(25060);let i=function(e,t){return t?(0,r.A)(e,t,{clone:!1}):e}},86146:(e,t,n)=>{var r=Object.create,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=e=>i(e,"__esModule",{value:!0}),c=(e,t)=>i(e,"name",{value:t,configurable:!0}),d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of a(t))!l.call(e,s)&&(n||"default"!==s)&&i(e,s,{get:()=>t[s],enumerable:!(r=o(t,s))||r.enumerable});return e},h=(e,t)=>d(u(i(null!=e?r(s(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),p=(e=>(t,n)=>e&&e.get(t)||(n=d(u({}),t,1),e&&e.set(t,n),n))("undefined"!=typeof WeakMap?new WeakMap:0),f={};((e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})})(f,{default:()=>w});var m=h(n(81278)),g=h(n(44574)),v=h(n(56121)),y=h(n(55729)),b=c(({color:e="#29D",startPosition:t=.3,stopDelayMs:n=200,height:r=3,showOnShallow:i=!0,options:o,nonce:a,transformCSS:s=c(e=>y.createElement("style",{nonce:a},e),"transformCSS")})=>{let l=null;y.useEffect(()=>(o&&g.configure(o),m.default.events.on("routeChangeStart",u),m.default.events.on("routeChangeComplete",d),m.default.events.on("routeChangeError",h),()=>{m.default.events.off("routeChangeStart",u),m.default.events.off("routeChangeComplete",d),m.default.events.off("routeChangeError",h)}),[]);let u=c((e,{shallow:n})=>{(!n||i)&&(g.set(t),g.start())},"routeChangeStart"),d=c((e,{shallow:t})=>{(!t||i)&&(l&&clearTimeout(l),l=setTimeout(()=>{g.done(!0)},n))},"routeChangeEnd"),h=c((e,t,{shallow:r})=>{(!r||i)&&(l&&clearTimeout(l),l=setTimeout(()=>{g.done(!0)},n))},"routeChangeError");return s(`
49    #nprogress {
50      pointer-events: none;
51    }
52    #nprogress .bar {
53      background: ${e};
54      position: fixed;
55      z-index: 9999;
56      top: 0;
57      left: 0;
58      width: 100%;
59      height: ${r}px;
60    }
61    #nprogress .peg {
62      display: block;
63      position: absolute;
64      right: 0px;
65      width: 100px;
66      height: 100%;
67      box-shadow: 0 0 10px ${e}, 0 0 5px ${e};
68      opacity: 1;
69      -webkit-transform: rotate(3deg) translate(0px, -4px);
70      -ms-transform: rotate(3deg) translate(0px, -4px);
71      transform: rotate(3deg) translate(0px, -4px);
72    }
73    #nprogress .spinner {
74      display: block;
75      position: fixed;
76      z-index: 1031;
77      top: 15px;
78      right: 15px;
79    }
80    #nprogress .spinner-icon {
81      width: 18px;
82      height: 18px;
83      box-sizing: border-box;
84      border: solid 2px transparent;
85      border-top-color: ${e};
86      border-left-color: ${e};
87      border-radius: 50%;
88      -webkit-animation: nprogresss-spinner 400ms linear infinite;
89      animation: nprogress-spinner 400ms linear infinite;
90    }
91    .nprogress-custom-parent {
92      overflow: hidden;
93      position: relative;
94    }
95    .nprogress-custom-parent #nprogress .spinner,
96    .nprogress-custom-parent #nprogress .bar {
97      position: absolute;
98    }
99    @-webkit-keyframes nprogress-spinner {
100      0% {
101        -webkit-transform: rotate(0deg);
102      }
103      100% {
104        -webkit-transform: rotate(360deg);
105      }
106    }
107    @keyframes nprogress-spinner {
108      0% {
109        transform: rotate(0deg);
110      }
111      100% {
112        transform: rotate(360deg);
113      }
114    }
115  `)},"NextNProgress");b.propTypes={color:v.string,startPosition:v.number,stopDelayMs:v.number,height:v.number,showOnShallow:v.bool,options:v.object,nonce:v.string,transformCSS:v.func};var w=y.memo(b);e.exports=p(f)},86754:(e,t,n)=>{var r=n(6421),i=n(37990).formatDOM,o=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw TypeError("First argument must be a string");if(""===e)return[];var t,n=e.match(o);return n&&n[1]&&(t=n[1]),i(r(e),null,t)}},87168:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},87543:(e,t,n)=>{"use strict";n.d(t,{A:()=>R});var r=n(9329),i=n(1983),o=n(99410),a=n(55729),s=n(50212),l=n(17582),u=n(83004),c=n(37597),d=n(52526),h=n(50787),p=n(16492),f=n(46720);function m(e){return(0,f.Ay)("MuiCircularProgress",e)}(0,p.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var g=n(6029);function v(){let e=(0,r._)(["\n  0% {\n    transform: rotate(0deg);\n  }\n\n  100% {\n    transform: rotate(360deg);\n  }\n"]);return v=function(){return e},e}function y(){let e=(0,r._)(["\n  0% {\n    stroke-dasharray: 1px, 200px;\n    stroke-dashoffset: 0;\n  }\n\n  50% {\n    stroke-dasharray: 100px, 200px;\n    stroke-dashoffset: -15px;\n  }\n\n  100% {\n    stroke-dasharray: 100px, 200px;\n    stroke-dashoffset: -125px;\n  }\n"]);return y=function(){return e},e}function b(){let e=(0,r._)(["\n      animation: "," 1.4s linear infinite;\n    "]);return b=function(){return e},e}function w(){let e=(0,r._)(["\n      animation: "," 1.4s ease-in-out infinite;\n    "]);return w=function(){return e},e}let S=["className","color","disableShrink","size","style","thickness","value","variant"],x=e=>e,A,k,E,C,T=(0,u.i7)(A||(A=x(v()))),_=(0,u.i7)(k||(k=x(y()))),P=e=>{let{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,"color".concat((0,c.A)(r))],svg:["svg"],circle:["circle","circle".concat((0,c.A)(n)),i&&"circleDisableShrink"]};return(0,l.A)(o,m,t)},M=(0,h.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t["color".concat((0,c.A)(n.color))]]}})(e=>{let{ownerState:t,theme:n}=e;return(0,o.A)({display:"inline-block"},"determinate"===t.variant&&{transition:n.transitions.create("transform")},"inherit"!==t.color&&{color:(n.vars||n).palette[t.color].main})},e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&(0,u.AH)(E||(E=x(b(),0)),T)}),I=(0,h.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),O=(0,h.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.circle,t["circle".concat((0,c.A)(n.variant))],n.disableShrink&&t.circleDisableShrink]}})(e=>{let{ownerState:t,theme:n}=e;return(0,o.A)({stroke:"currentColor"},"determinate"===t.variant&&{transition:n.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})},e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&(0,u.AH)(C||(C=x(w(),0)),_)}),R=a.forwardRef(function(e,t){let n=(0,d.b)({props:e,name:"MuiCircularProgress"}),{className:r,color:a="primary",disableShrink:l=!1,size:u=40,style:c,thickness:h=3.6,value:p=0,variant:f="indeterminate"}=n,m=(0,i.A)(n,S),v=(0,o.A)({},n,{color:a,disableShrink:l,size:u,thickness:h,value:p,variant:f}),y=P(v),b={},w={},x={};if("determinate"===f){let e=2*Math.PI*((44-h)/2);b.strokeDasharray=e.toFixed(3),x["aria-valuenow"]=Math.round(p),b.strokeDashoffset="".concat(((100-p)/100*e).toFixed(3),"px"),w.transform="rotate(-90deg)"}return(0,g.jsx)(M,(0,o.A)({className:(0,s.A)(y.root,r),style:(0,o.A)({width:u,height:u},w,c),ownerState:v,ref:t,role:"progressbar"},x,m,{children:(0,g.jsx)(I,{className:y.svg,ownerState:v,viewBox:"".concat(22," ").concat(22," ").concat(44," ").concat(44),children:(0,g.jsx)(O,{className:y.circle,style:b,ownerState:v,cx:44,cy:44,r:(44-h)/2,fill:"none",strokeWidth:h})})}))})},87755:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(99410),i=n(1983),o=n(55729),a=n(50212),s=n(82299),l=n(32790),u=n(21834),c=n(43795),d=n(6029);let h=["className","component"];var p=n(64314),f=n(42734),m=n(14443);let g=(0,n(16492).A)("MuiBox",["root"]),v=(0,f.A)(),y=function(e={}){let{themeId:t,defaultTheme:n,defaultClassName:p="MuiBox-root",generateClassName:f}=e,m=(0,s.default)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(l.A);return o.forwardRef(function(e,o){let s=(0,c.A)(n),l=(0,u.A)(e),{className:g,component:v="div"}=l,y=(0,i.A)(l,h);return(0,d.jsx)(m,(0,r.A)({as:v,ref:o,className:(0,a.A)(g,f?f(p):p),theme:t&&s[t]||s},y))})}({themeId:m.A,defaultTheme:v,defaultClassName:g.root,generateClassName:p.A.generate})},87905:(e,t,n)=>{"use strict";n.d(t,{C:()=>u,E:()=>g,T:()=>d,c:()=>f,h:()=>h,w:()=>c});
115var r=n(55729),i=n(6495),o=n(97248),a=n(38260),s=n(44930),l=r.createContext("undefined"!=typeof HTMLElement?(0,i.A)({key:"css"}):null),u=l.Provider,c=function(e){return(0,r.forwardRef)(function(t,n){return e(t,(0,r.useContext)(l),n)})},d=r.createContext({}),h={}.hasOwnProperty,p="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",f=function(e,t){var n={};for(var r in t)h.call(t,r)&&(n[r]=t[r]);return n[p]=e,n},m=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,o.SF)(t,n,r),(0,s.s)(function(){return(0,o.sk)(t,n,r)}),null},g=c(function(e,t,n){var i=e.css;"string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var s=e[p],l=[i],u="";"string"==typeof e.className?u=(0,o.Rk)(t.registered,l,e.className):null!=e.className&&(u=e.className+" ");var c=(0,a.J)(l,void 0,r.useContext(d));u+=t.key+"-"+c.name;var f={};for(var g in e)h.call(e,g)&&"css"!==g&&g!==p&&(f[g]=e[g]);return f.className=u,n&&(f.ref=n),r.createElement(r.Fragment,null,r.createElement(m,{cache:t,serialized:c,isStringTag:"string"==typeof s}),r.createElement(s,f))})},89974:(e,t,n)=>{"use strict";n.d(t,{a:()=>y,b:()=>p,c:()=>h,d:()=>a,e:()=>d,f:()=>b,g:()=>v,h:()=>s,l:()=>g,m:()=>m,n:()=>o,o:()=>f,p:()=>c,q:()=>function e(){let t=Object(arguments.length<=0?void 0:arguments[0]),n=["__proto__","constructor","prototype"];for(let r=1;r<arguments.length;r+=1){let i=r<0||arguments.length<=r?void 0:arguments[r];if(null!=i&&("undefined"!=typeof window&&void 0!==window.HTMLElement?!(i instanceof HTMLElement):!i||1!==i.nodeType&&11!==i.nodeType)){let r=Object.keys(Object(i)).filter(e=>0>n.indexOf(e));for(let n=0,o=r.length;n<o;n+=1){let o=r[n],a=Object.getOwnPropertyDescriptor(i,o);void 0!==a&&a.enumerable&&(l(t[o])&&l(i[o])?i[o].__swiper__?t[o]=i[o]:e(t[o],i[o]):!l(t[o])&&l(i[o])?(t[o]={},i[o].__swiper__?t[o]=i[o]:e(t[o],i[o])):t[o]=i[o])}}}return t},r:()=>i,s:()=>u});var r=n(6587);function i(e){Object.keys(e).forEach(t=>{try{e[t]=null}catch(e){}try{delete e[t]}catch(e){}})}function o(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function a(){return Date.now()}function s(e,t){let n,i,o;void 0===t&&(t="x");let a=(0,r.a)(),s=function(e){let t,n=(0,r.a)();return n.getComputedStyle&&(t=n.getComputedStyle(e,null)),!t&&e.currentStyle&&(t=e.currentStyle),t||(t=e.style),t}(e);return a.WebKitCSSMatrix?((i=s.transform||s.webkitTransform).split(",").length>6&&(i=i.split(", ").map(e=>e.replace(",",".")).join(", ")),o=new a.WebKitCSSMatrix("none"===i?"":i)):n=(o=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===t&&(i=a.WebKitCSSMatrix?o.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===t&&(i=a.WebKitCSSMatrix?o.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),i||0}function l(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function u(e,t,n){e.style.setProperty(t,n)}function c(e){let t,{swiper:n,targetPosition:i,side:o}=e,a=(0,r.a)(),s=-n.translate,l=null,u=n.params.speed;n.wrapperEl.style.scrollSnapType="none",a.cancelAnimationFrame(n.cssModeFrameID);let c=i>s?"next":"prev",d=(e,t)=>"next"===c&&e>=t||"prev"===c&&e<=t,h=()=>{t=new Date().getTime(),null===l&&(l=t);let e=s+(.5-Math.cos(Math.max(Math.min((t-l)/u,1),0)*Math.PI)/2)*(i-s);if(d(e,i)&&(e=i),n.wrapperEl.scrollTo({[o]:e}),d(e,i)){n.wrapperEl.style.overflow="hidden",n.wrapperEl.style.scrollSnapType="",setTimeout(()=>{n.wrapperEl.style.overflow="",n.wrapperEl.scrollTo({[o]:e})}),a.cancelAnimationFrame(n.cssModeFrameID);return}n.cssModeFrameID=a.requestAnimationFrame(h)};h()}function d(e,t){return void 0===t&&(t=""),[...e.children].filter(e=>e.matches(t))}function h(e,t){void 0===t&&(t=[]);let n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:[t]),n}function p(e){let t=(0,r.a)(),n=(0,r.g)(),i=e.getBoundingClientRect(),o=n.body,a=e.clientTop||o.clientTop||0,s=e.clientLeft||o.clientLeft||0,l=e===t?t.scrollY:e.scrollTop,u=e===t?t.scrollX:e.scrollLeft;return{top:i.top+l-a,left:i.left+u-s}}function f(e,t){let n=[];for(;e.previousElementSibling;){let r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function m(e,t){let n=[];for(;e.nextElementSibling;){let r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function g(e,t){return(0,r.a)().getComputedStyle(e,null).getPropertyValue(t)}function v(e){let t,n=e;if(n){for(t=0;null!==(n=n.previousSibling);)1===n.nodeType&&(t+=1);return t}}function y(e,t){let n=[],r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function b(e,t,n){let i=(0,r.a)();
115return n?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(i.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(i.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}},90026:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let r=n(14761)._(n(55729)),i=n(22284),o=[],a=[],s=!1;function l(e){let t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(e=>(n.loading=!1,n.loaded=e,e)).catch(e=>{throw n.loading=!1,n.error=e,e}),n}class u{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function c(e){return function(e,t){let n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),o=null;function l(){if(!o){let t=new u(e,n);o={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return o.promise()}if(!s){let e=n.webpack&&1?n.webpack():n.modules;e&&a.push(t=>{for(let n of e)if(t.includes(n))return l()})}function c(e,t){l();let a=r.default.useContext(i.LoadableContext);a&&Array.isArray(n.modules)&&n.modules.forEach(e=>{a(e)});let s=r.default.useSyncExternalStore(o.subscribe,o.getCurrentValue,o.getCurrentValue);return r.default.useImperativeHandle(t,()=>({retry:o.retry}),[]),r.default.useMemo(()=>{var t;return s.loading||s.error?r.default.createElement(n.loading,{isLoading:s.loading,pastDelay:s.pastDelay,timedOut:s.timedOut,error:s.error,retry:o.retry}):s.loaded?r.default.createElement((t=s.loaded)&&t.default?t.default:t,e):null},[e,s])}return c.preload=()=>l(),c.displayName="LoadableComponent",r.default.forwardRef(c)}(l,e)}function d(e,t){let n=[];for(;e.length;){let r=e.pop();n.push(r(t))}return Promise.all(n).then(()=>{if(e.length)return d(e,t)})}c.preloadAll=()=>new Promise((e,t)=>{d(o).then(e,t)}),c.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let n=()=>(s=!0,t());d(a,e).then(n,n)})),window.__NEXT_PRELOADREADY=c.preloadReady;let h=c},90316:(e,t,n)=>{"use strict";n.d(t,{n:()=>E,d:()=>C});var r=n(6029),i=n(55729),o=n(80051),a=n(82826),s=n(99410),l=n(1983),u=n(50212),c=n(17582),d=n(50787),h=n(52526),p=n(46800),f=n(16492),m=n(46720);function g(e){return(0,m.Ay)("MuiAlertTitle",e)}(0,f.A)("MuiAlertTitle",["root"]);let v=["className"],y=e=>{let{classes:t}=e;return(0,c.A)({root:["root"]},g,t)},b=(0,d.Ay)(p.A,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})(e=>{let{theme:t}=e;return{fontWeight:t.typography.fontWeightMedium,marginTop:-2}}),w=i.forwardRef(function(e,t){let n=(0,h.b)({props:e,name:"MuiAlertTitle"}),{className:i}=n,o=(0,l.A)(n,v),a=y(n);return(0,r.jsx)(b,(0,s.A)({gutterBottom:!0,component:"div",ownerState:n,ref:t,className:(0,u.A)(a.root,i)},o))});var S=n(26927);let x={vertical:"bottom",horizontal:"right"},A=(0,i.memo)(e=>{var t;let{open:n,message:i,severity:s,onClose:l,alertTitle:u=!1}=e;return(0,r.jsx)(a.A,{open:n,anchorOrigin:x,autoHideDuration:6e3,children:(0,r.jsxs)(o.A,{severity:s,onClose:l,variant:"filled",sx:{borderRadius:S.A.spacing(4)+"!important"},children:[u&&(0,r.jsx)(w,{children:null!=(t=({success:"Success",error:"Error",info:"Info",warning:"Warning"})[s])?t:""}),i]})})});A.displayName="AppSnackbar";let k=(0,i.createContext)(void 0),E=e=>{let{children:t}=e,[n,o]=(0,i.useState)(!1),[a,s]=(0,i.useState)(""),[l,u]=(0,i.useState)("info"),c=()=>{o(!1)};return(0,r.jsxs)(k.Provider,{value:{showSnackbar:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info";s(e),u(t),o(!0)},hideSnackbar:c},children:[t,(0,r.jsx)(A,{open:n,severity:l,message:a,onClose:c})]})},C=()=>{let e=(0,i.useContext)(k);if(void 0===e)throw Error("useSnackbar must be used within a SnackbarProvider");return e}}
115,91129:(e,t,n)=>{var r=n(93409);function i(e,t){var n,i,o,a=null;if(!e||"string"!=typeof e)return a;for(var s=r(e),l="function"==typeof t,u=0,c=s.length;u<c;u++)i=(n=s[u]).property,o=n.value,l?t(i,o,n):o&&(a||(a={}),a[i]=o);return a}e.exports=i,e.exports.default=i},92114:(e,t,n)=>{"use strict";n.d(t,{Jq:()=>c,Ij:()=>d,s3:()=>o,Vx:()=>s,dK:()=>u});var r=n(6587),i=n(89974);function o(e){let{swiper:t,extendParams:n,on:o,emit:a}=e,s=(0,r.g)(),l=(0,r.a)();function u(e){if(!t.enabled)return;let{rtlTranslate:n}=t,r=e;r.originalEvent&&(r=r.originalEvent);let o=r.keyCode||r.charCode,u=t.params.keyboard.pageUpDown,c=u&&33===o,d=u&&34===o,h=37===o,p=39===o,f=38===o,m=40===o;if(!t.allowSlideNext&&(t.isHorizontal()&&p||t.isVertical()&&m||d)||!t.allowSlidePrev&&(t.isHorizontal()&&h||t.isVertical()&&f||c))return!1;if(!r.shiftKey&&!r.altKey&&!r.ctrlKey&&!r.metaKey&&(!s.activeElement||!s.activeElement.nodeName||"input"!==s.activeElement.nodeName.toLowerCase()&&"textarea"!==s.activeElement.nodeName.toLowerCase())){if(t.params.keyboard.onlyInViewport&&(c||d||h||p||f||m)){let e=!1;if((0,i.a)(t.el,`.${t.params.slideClass}, swiper-slide`).length>0&&0===(0,i.a)(t.el,`.${t.params.slideActiveClass}`).length)return;let r=t.el,o=r.clientWidth,a=r.clientHeight,s=l.innerWidth,u=l.innerHeight,c=(0,i.b)(r);n&&(c.left-=r.scrollLeft);let d=[[c.left,c.top],[c.left+o,c.top],[c.left,c.top+a],[c.left+o,c.top+a]];for(let t=0;t<d.length;t+=1){let n=d[t];if(n[0]>=0&&n[0]<=s&&n[1]>=0&&n[1]<=u){if(0===n[0]&&0===n[1])continue;e=!0}}if(!e)return}t.isHorizontal()?((c||d||h||p)&&(r.preventDefault?r.preventDefault():r.returnValue=!1),((d||p)&&!n||(c||h)&&n)&&t.slideNext(),((c||h)&&!n||(d||p)&&n)&&t.slidePrev()):((c||d||f||m)&&(r.preventDefault?r.preventDefault():r.returnValue=!1),(d||m)&&t.slideNext(),(c||f)&&t.slidePrev()),a("keyPress",o)}}function c(){t.keyboard.enabled||(s.addEventListener("keydown",u),t.keyboard.enabled=!0)}function d(){t.keyboard.enabled&&(s.removeEventListener("keydown",u),t.keyboard.enabled=!1)}t.keyboard={enabled:!1},n({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),o("init",()=>{t.params.keyboard.enabled&&c()}),o("destroy",()=>{t.keyboard.enabled&&d()}),Object.assign(t.keyboard,{enable:c,disable:d})}function a(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(o=>{if(!n[o]&&!0===n.auto){let a=(0,i.e)(e.el,`.${r[o]}`)[0];a||((a=(0,i.c)("div",r[o])).className=r[o],e.el.append(a)),n[o]=a,t[o]=a}}),n}function s(e){let{swiper:t,extendParams:n,on:r,emit:i}=e;n({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null};let o=e=>(Array.isArray(e)?e:[e]).filter(e=>!!e);function s(e){let n;return e&&"string"==typeof e&&t.isElement&&(n=t.el.querySelector(e))?n:(e&&("string"==typeof e&&(n=[...document.querySelectorAll(e)]),t.params.uniqueNavElements&&"string"==typeof e&&n.length>1&&1===t.el.querySelectorAll(e).length&&(n=t.el.querySelector(e))),e&&!n)?e:n}function l(e,n){let r=t.params.navigation;(e=o(e)).forEach(e=>{e&&(e.classList[n?"add":"remove"](...r.disabledClass.split(" ")),"BUTTON"===e.tagName&&(e.disabled=n),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](r.lockClass))})}function u(){let{nextEl:e,prevEl:n}=t.navigation;if(t.params.loop){l(n,!1),l(e,!1);return}l(n,t.isBeginning&&!t.params.rewind),l(e,t.isEnd&&!t.params.rewind)}function c(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),i("navigationPrev"))}function d(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),i("navigationNext"))}function h(){let e=t.params.navigation;if(t.params.navigation=a(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(e.nextEl||e.prevEl))return;let n=s(e.nextEl),r=s(e.prevEl);Object.assign(t.navigation,{nextEl:n,prevEl:r}),n=o(n),r=o(r);let i=(n,r)=>{n&&n.addEventListener("click","next"===r?d:c),!t.enabled&&n&&n.classList.add(...e.lockClass.split(" "))};
115n.forEach(e=>i(e,"next")),r.forEach(e=>i(e,"prev"))}function p(){let{nextEl:e,prevEl:n}=t.navigation;e=o(e),n=o(n);let r=(e,n)=>{e.removeEventListener("click","next"===n?d:c),e.classList.remove(...t.params.navigation.disabledClass.split(" "))};e.forEach(e=>r(e,"next")),n.forEach(e=>r(e,"prev"))}r("init",()=>{!1===t.params.navigation.enabled?f():(h(),u())}),r("toEdge fromEdge lock unlock",()=>{u()}),r("destroy",()=>{p()}),r("enable disable",()=>{let{nextEl:e,prevEl:n}=t.navigation;if(e=o(e),n=o(n),t.enabled)return void u();[...e,...n].filter(e=>!!e).forEach(e=>e.classList.add(t.params.navigation.lockClass))}),r("click",(e,n)=>{let{nextEl:r,prevEl:a}=t.navigation;r=o(r),a=o(a);let s=n.target;if(t.params.navigation.hideOnClick&&!a.includes(s)&&!r.includes(s)){let e;if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===s||t.pagination.el.contains(s)))return;r.length?e=r[0].classList.contains(t.params.navigation.hiddenClass):a.length&&(e=a[0].classList.contains(t.params.navigation.hiddenClass)),!0===e?i("navigationShow"):i("navigationHide"),[...r,...a].filter(e=>!!e).forEach(e=>e.classList.toggle(t.params.navigation.hiddenClass))}});let f=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),p()};Object.assign(t.navigation,{enable:()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),h(),u()},disable:f,update:u,init:h,destroy:p})}function l(e){return void 0===e&&(e=""),`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function u(e){let t,{swiper:n,extendParams:r,on:o,emit:s}=e,u="swiper-pagination";r({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:`${u}-bullet`,bulletActiveClass:`${u}-bullet-active`,modifierClass:`${u}-`,currentClass:`${u}-current`,totalClass:`${u}-total`,hiddenClass:`${u}-hidden`,progressbarFillClass:`${u}-progressbar-fill`,progressbarOppositeClass:`${u}-progressbar-opposite`,clickableClass:`${u}-clickable`,lockClass:`${u}-lock`,horizontalClass:`${u}-horizontal`,verticalClass:`${u}-vertical`,paginationDisabledClass:`${u}-disabled`}}),n.pagination={el:null,bullets:[]};let c=0,d=e=>(Array.isArray(e)?e:[e]).filter(e=>!!e);function h(){return!n.params.pagination.el||!n.pagination.el||Array.isArray(n.pagination.el)&&0===n.pagination.el.length}function p(e,t){let{bulletActiveClass:r}=n.params.pagination;e&&(e=e[`${"prev"===t?"previous":"next"}ElementSibling`])&&(e.classList.add(`${r}-${t}`),(e=e[`${"prev"===t?"previous":"next"}ElementSibling`])&&e.classList.add(`${r}-${t}-${t}`))}function f(e){let t=e.target.closest(l(n.params.pagination.bulletClass));if(!t)return;e.preventDefault();let r=(0,i.g)(t)*n.params.slidesPerGroup;if(n.params.loop){if(n.realIndex===r)return;let e=n.realIndex,t=n.getSlideIndexByData(r),i=n.getSlideIndexByData(n.realIndex),o=r=>{let i=n.activeIndex;n.loopFix({direction:r,activeSlideIndex:t,slideTo:!1}),i===n.activeIndex&&n.slideToLoop(e,0,!1,!0)};t>n.slides.length-n.loopedSlides?o(t>i?"next":"prev"):n.params.centeredSlides&&t<Math.floor(("auto"===n.params.slidesPerView?n.slidesPerViewDynamic():Math.ceil(parseFloat(n.params.slidesPerView,10)))/2)&&o("prev"),n.slideToLoop(r)}else n.slideTo(r)}function m(){let e,r,o=n.rtl,a=n.params.pagination;if(h())return;let u=n.pagination.el;u=d(u);let f=n.virtual&&n.params.virtual.enabled?n.virtual.slides.length:n.slides.length,m=n.params.loop?Math.ceil(f/n.params.slidesPerGroup):n.snapGrid.length;if(n.params.loop?(r=n.previousRealIndex||0,e=n.params.slidesPerGroup>1?Math.floor(n.realIndex/n.params.slidesPerGroup):n.realIndex):void 0!==n.snapIndex?(e=n.snapIndex,r=n.previousSnapIndex):(r=n.previousIndex||0,e=n.activeIndex||0),"bullets"===a.type&&n.pagination.bullets&&n.pagination.bullets.length>0){let s,l,d,h=n.pagination.bullets;if(a.dynamicBullets&&(t=(0,i.f)(h[0],n.isHorizontal()?"width":"height",!0),u.forEach(e
115=>{e.style[n.isHorizontal()?"width":"height"]=`${t*(a.dynamicMainBullets+4)}px`}),a.dynamicMainBullets>1&&void 0!==r&&((c+=e-(r||0))>a.dynamicMainBullets-1?c=a.dynamicMainBullets-1:c<0&&(c=0)),d=((l=(s=Math.max(e-c,0))+(Math.min(h.length,a.dynamicMainBullets)-1))+s)/2),h.forEach(e=>{let t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>`${a.bulletActiveClass}${e}`)].map(e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e).flat();e.classList.remove(...t)}),u.length>1)h.forEach(t=>{let r=(0,i.g)(t);r===e?t.classList.add(...a.bulletActiveClass.split(" ")):n.isElement&&t.setAttribute("part","bullet"),a.dynamicBullets&&(r>=s&&r<=l&&t.classList.add(...`${a.bulletActiveClass}-main`.split(" ")),r===s&&p(t,"prev"),r===l&&p(t,"next"))});else{let t=h[e];if(t&&t.classList.add(...a.bulletActiveClass.split(" ")),n.isElement&&h.forEach((t,n)=>{t.setAttribute("part",n===e?"bullet-active":"bullet")}),a.dynamicBullets){let e=h[s],t=h[l];for(let e=s;e<=l;e+=1)h[e]&&h[e].classList.add(...`${a.bulletActiveClass}-main`.split(" "));p(e,"prev"),p(t,"next")}}if(a.dynamicBullets){let e=Math.min(h.length,a.dynamicMainBullets+4),r=(t*e-t)/2-d*t,i=o?"right":"left";h.forEach(e=>{e.style[n.isHorizontal()?i:"top"]=`${r}px`})}}u.forEach((t,r)=>{if("fraction"===a.type&&(t.querySelectorAll(l(a.currentClass)).forEach(t=>{t.textContent=a.formatFractionCurrent(e+1)}),t.querySelectorAll(l(a.totalClass)).forEach(e=>{e.textContent=a.formatFractionTotal(m)})),"progressbar"===a.type){let r;r=a.progressbarOpposite?n.isHorizontal()?"vertical":"horizontal":n.isHorizontal()?"horizontal":"vertical";let i=(e+1)/m,o=1,s=1;"horizontal"===r?o=i:s=i,t.querySelectorAll(l(a.progressbarFillClass)).forEach(e=>{e.style.transform=`translate3d(0,0,0) scaleX(${o}) scaleY(${s})`,e.style.transitionDuration=`${n.params.speed}ms`})}"custom"===a.type&&a.renderCustom?(t.innerHTML=a.renderCustom(n,e+1,m),0===r&&s("paginationRender",t)):(0===r&&s("paginationRender",t),s("paginationUpdate",t)),n.params.watchOverflow&&n.enabled&&t.classList[n.isLocked?"add":"remove"](a.lockClass)})}function g(){let e=n.params.pagination;if(h())return;let t=n.virtual&&n.params.virtual.enabled?n.virtual.slides.length:n.slides.length,r=n.pagination.el;r=d(r);let i="";if("bullets"===e.type){let r=n.params.loop?Math.ceil(t/n.params.slidesPerGroup):n.snapGrid.length;n.params.freeMode&&n.params.freeMode.enabled&&r>t&&(r=t);for(let t=0;t<r;t+=1)e.renderBullet?i+=e.renderBullet.call(n,t,e.bulletClass):i+=`<${e.bulletElement} ${n.isElement?'part="bullet"':""} class="${e.bulletClass}"></${e.bulletElement}>`}"fraction"===e.type&&(i=e.renderFraction?e.renderFraction.call(n,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`),"progressbar"===e.type&&(i=e.renderProgressbar?e.renderProgressbar.call(n,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`),n.pagination.bullets=[],r.forEach(t=>{"custom"!==e.type&&(t.innerHTML=i||""),"bullets"===e.type&&n.pagination.bullets.push(...t.querySelectorAll(l(e.bulletClass)))}),"custom"!==e.type&&s("paginationRender",r[0])}function v(){let e;n.params.pagination=a(n,n.originalParams.pagination,n.params.pagination,{el:"swiper-pagination"});let t=n.params.pagination;t.el&&("string"==typeof t.el&&n.isElement&&(e=n.el.querySelector(t.el)),e||"string"!=typeof t.el||(e=[...document.querySelectorAll(t.el)]),e||(e=t.el),e&&0!==e.length&&(n.params.uniqueNavElements&&"string"==typeof t.el&&Array.isArray(e)&&e.length>1&&(e=[...n.el.querySelectorAll(t.el)]).length>1&&(e=e.filter(e=>(0,i.a)(e,".swiper")[0]===n.el)[0]),Array.isArray(e)&&1===e.length&&(e=e[0]),Object.assign(n.pagination,{el:e}),(e=d(e)).forEach(e=>{"bullets"===t.type&&t.clickable&&e.classList.add(...(t.clickableClass||"").split(" ")),e.classList.add(t.modifierClass+t.type),e.classList.add(n.isHorizontal()?t.horizontalClass:t.verticalClass),"bullets"===t.type&&t.dynamicBullets&&(e.classList.add(`${t.modifierClass}${t.type}-dynamic`),c=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&e.classList.add(t.progressbarOppositeClass),t.clickable&&e.addEventListener("click",f),n.enabled||e.classList.add(t.lockClass)})))}function y(){let e=n.params.pagination;if(h())return;let t=n.pagination.el;
115t&&(t=d(t)).forEach(t=>{t.classList.remove(e.hiddenClass),t.classList.remove(e.modifierClass+e.type),t.classList.remove(n.isHorizontal()?e.horizontalClass:e.verticalClass),e.clickable&&(t.classList.remove(...(e.clickableClass||"").split(" ")),t.removeEventListener("click",f))}),n.pagination.bullets&&n.pagination.bullets.forEach(t=>t.classList.remove(...e.bulletActiveClass.split(" ")))}o("changeDirection",()=>{if(!n.pagination||!n.pagination.el)return;let e=n.params.pagination,{el:t}=n.pagination;(t=d(t)).forEach(t=>{t.classList.remove(e.horizontalClass,e.verticalClass),t.classList.add(n.isHorizontal()?e.horizontalClass:e.verticalClass)})}),o("init",()=>{!1===n.params.pagination.enabled?b():(v(),g(),m())}),o("activeIndexChange",()=>{void 0===n.snapIndex&&m()}),o("snapIndexChange",()=>{m()}),o("snapGridLengthChange",()=>{g(),m()}),o("destroy",()=>{y()}),o("enable disable",()=>{let{el:e}=n.pagination;e&&(e=d(e)).forEach(e=>e.classList[n.enabled?"remove":"add"](n.params.pagination.lockClass))}),o("lock unlock",()=>{m()}),o("click",(e,t)=>{let r=t.target,i=d(n.pagination.el);if(n.params.pagination.el&&n.params.pagination.hideOnClick&&i&&i.length>0&&!r.classList.contains(n.params.pagination.bulletClass)){if(n.navigation&&(n.navigation.nextEl&&r===n.navigation.nextEl||n.navigation.prevEl&&r===n.navigation.prevEl))return;!0===i[0].classList.contains(n.params.pagination.hiddenClass)?s("paginationShow"):s("paginationHide"),i.forEach(e=>e.classList.toggle(n.params.pagination.hiddenClass))}});let b=()=>{n.el.classList.add(n.params.pagination.paginationDisabledClass);let{el:e}=n.pagination;e&&(e=d(e)).forEach(e=>e.classList.add(n.params.pagination.paginationDisabledClass)),y()};Object.assign(n.pagination,{enable:()=>{n.el.classList.remove(n.params.pagination.paginationDisabledClass);let{el:e}=n.pagination;e&&(e=d(e)).forEach(e=>e.classList.remove(n.params.pagination.paginationDisabledClass)),v(),g(),m()},disable:b,render:g,update:m,init:v,destroy:y})}function c(e){let{swiper:t,extendParams:n,on:r}=e;n({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),t.a11y={clicked:!1};let o=null;function a(e){let t=o;0!==t.length&&(t.innerHTML="",t.innerHTML=e)}let s=e=>(Array.isArray(e)?e:[e]).filter(e=>!!e);function u(e){(e=s(e)).forEach(e=>{e.setAttribute("tabIndex","0")})}function c(e){(e=s(e)).forEach(e=>{e.setAttribute("tabIndex","-1")})}function d(e,t){(e=s(e)).forEach(e=>{e.setAttribute("role",t)})}function h(e,t){(e=s(e)).forEach(e=>{e.setAttribute("aria-roledescription",t)})}function p(e,t){(e=s(e)).forEach(e=>{e.setAttribute("aria-label",t)})}function f(e){(e=s(e)).forEach(e=>{e.setAttribute("aria-disabled",!0)})}function m(e){(e=s(e)).forEach(e=>{e.setAttribute("aria-disabled",!1)})}function g(e){if(13!==e.keyCode&&32!==e.keyCode)return;let n=t.params.a11y,r=e.target;(!(t.pagination&&t.pagination.el&&(r===t.pagination.el||t.pagination.el.contains(e.target)))||e.target.matches(l(t.params.pagination.bulletClass)))&&(t.navigation&&t.navigation.nextEl&&r===t.navigation.nextEl&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?a(n.lastSlideMessage):a(n.nextSlideMessage)),t.navigation&&t.navigation.prevEl&&r===t.navigation.prevEl&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?a(n.firstSlideMessage):a(n.prevSlideMessage)),t.pagination&&r.matches(l(t.params.pagination.bulletClass))&&r.click())}function v(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function y(){return v()&&t.params.pagination.clickable}let b=(e,t,n)=>{var r;u(e),"BUTTON"!==e.tagName&&(d(e,"button"),e.addEventListener("keydown",g)),p(e,n),(r=s(r=e)).forEach(e=>{e.setAttribute("aria-controls",t)})},w=()=>{t.a11y.clicked=!0},S=()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.destroyed||(t.a11y.clicked=!1)})})},x=e=>{if(t.a11y.clicked)return;let n=e.target.closest(`.${t.params.slideClass}, swiper-slide`);if(!n||!t.slides.includes(n))return;let r=t.slides.indexOf(n)===t.activeIndex,i=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(n);!r&&!i&&(e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,t.slideTo(t.slides.indexOf(n),0)))},A=()=>{let e=t.params.a11y;e.itemRoleDescriptionMessage&&h(t.slides,e.itemRoleDescriptionMessage),e.slideRole&&d(t.slides,e.slideRole);let n=t.slides.length;
115e.slideLabelMessage&&t.slides.forEach((r,i)=>{let o=t.params.loop?parseInt(r.getAttribute("data-swiper-slide-index"),10):i;p(r,e.slideLabelMessage.replace(/\{\{index\}\}/,o+1).replace(/\{\{slidesLength\}\}/,n))})},k=()=>{var e,n;let r=t.params.a11y;t.el.append(o);let i=t.el;r.containerRoleDescriptionMessage&&h(i,r.containerRoleDescriptionMessage),r.containerMessage&&p(i,r.containerMessage);let a=t.wrapperEl,l=r.id||a.getAttribute("id")||`swiper-wrapper-${"x".repeat(16).replace(/x/g,()=>Math.round(16*Math.random()).toString(16))}`,u=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";(e=s(e=a)).forEach(e=>{e.setAttribute("id",l)}),(n=s(n=a)).forEach(e=>{e.setAttribute("aria-live",u)}),A();let{nextEl:c,prevEl:d}=t.navigation?t.navigation:{};c=s(c),d=s(d),c&&c.forEach(e=>b(e,l,r.nextSlideMessage)),d&&d.forEach(e=>b(e,l,r.prevSlideMessage)),y()&&(Array.isArray(t.pagination.el)?t.pagination.el:[t.pagination.el]).forEach(e=>{e.addEventListener("keydown",g)}),t.el.addEventListener("focus",x,!0),t.el.addEventListener("pointerdown",w,!0),t.el.addEventListener("pointerup",S,!0)};r("beforeInit",()=>{(o=(0,i.c)("span",t.params.a11y.notificationClass)).setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true")}),r("afterInit",()=>{t.params.a11y.enabled&&k()}),r("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{t.params.a11y.enabled&&A()}),r("fromEdge toEdge afterInit lock unlock",()=>{t.params.a11y.enabled&&function(){if(t.params.loop||t.params.rewind||!t.navigation)return;let{nextEl:e,prevEl:n}=t.navigation;n&&(t.isBeginning?(f(n),c(n)):(m(n),u(n))),e&&(t.isEnd?(f(e),c(e)):(m(e),u(e)))}()}),r("paginationUpdate",()=>{if(t.params.a11y.enabled){let e=t.params.a11y;v()&&t.pagination.bullets.forEach(n=>{t.params.pagination.clickable&&(u(n),t.params.pagination.renderBullet||(d(n,"button"),p(n,e.paginationBulletMessage.replace(/\{\{index\}\}/,(0,i.g)(n)+1)))),n.matches(l(t.params.pagination.bulletActiveClass))?n.setAttribute("aria-current","true"):n.removeAttribute("aria-current")})}}),r("destroy",()=>{t.params.a11y.enabled&&function(){o&&o.remove();let{nextEl:e,prevEl:n}=t.navigation?t.navigation:{};e=s(e),n=s(n),e&&e.forEach(e=>e.removeEventListener("keydown",g)),n&&n.forEach(e=>e.removeEventListener("keydown",g)),y()&&(Array.isArray(t.pagination.el)?t.pagination.el:[t.pagination.el]).forEach(e=>{e.removeEventListener("keydown",g)}),t.el.removeEventListener("focus",x,!0),t.el.removeEventListener("pointerdown",w,!0),t.el.removeEventListener("pointerup",S,!0)}()})}function d(e){let t,n,i,o,a,s,l,u,c,{swiper:d,extendParams:h,on:p,emit:f,params:m}=e;d.autoplay={running:!1,paused:!1,timeLeft:0},h({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let g=m&&m.autoplay?m.autoplay.delay:3e3,v=m&&m.autoplay?m.autoplay.delay:3e3,y=new Date().getTime;function b(e){d&&!d.destroyed&&d.wrapperEl&&e.target===d.wrapperEl&&(d.wrapperEl.removeEventListener("transitionend",b),C())}let w=()=>{if(d.destroyed||!d.autoplay.running)return;d.autoplay.paused?o=!0:o&&(v=i,o=!1);let e=d.autoplay.paused?i:y+v-new Date().getTime();d.autoplay.timeLeft=e,f("autoplayTimeLeft",e,e/g),n=requestAnimationFrame(()=>{w()})},S=()=>{let e;if(e=d.virtual&&d.params.virtual.enabled?d.slides.filter(e=>e.classList.contains("swiper-slide-active"))[0]:d.slides[d.activeIndex])return parseInt(e.getAttribute("data-swiper-autoplay"),10)},x=e=>{if(d.destroyed||!d.autoplay.running)return;cancelAnimationFrame(n),w();let r=void 0===e?d.params.autoplay.delay:e;g=d.params.autoplay.delay,v=d.params.autoplay.delay;let o=S();!Number.isNaN(o)&&o>0&&void 0===e&&(r=o,g=o,v=o),i=r;let a=d.params.speed,s=()=>{d&&!d.destroyed&&(d.params.autoplay.reverseDirection?!d.isBeginning||d.params.loop||d.params.rewind?(d.slidePrev(a,!0,!0),f("autoplay")):d.params.autoplay.stopOnLastSlide||(d.slideTo(d.slides.length-1,a,!0,!0),f("autoplay")):!d.isEnd||d.params.loop||d.params.rewind?(d.slideNext(a,!0,!0),f("autoplay")):d.params.autoplay.stopOnLastSlide||(d.slideTo(0,a,!0,!0),f("autoplay")),d.params.cssMode&&(y=new Date().getTime(),requestAnimationFrame(()=>{x()})))};return r>0?(clearTimeout(t),t=setTimeout(()=>{s()},r)):requestAnimationFrame(()=>{s()}),r},A=()=>{d.autoplay.running=!0,x(),f("autoplayStart")},k=()=>
115{d.autoplay.running=!1,clearTimeout(t),cancelAnimationFrame(n),f("autoplayStop")},E=(e,n)=>{if(d.destroyed||!d.autoplay.running)return;clearTimeout(t),e||(c=!0);let r=()=>{f("autoplayPause"),d.params.autoplay.waitForTransition?d.wrapperEl.addEventListener("transitionend",b):C()};if(d.autoplay.paused=!0,n){u&&(i=d.params.autoplay.delay),u=!1,r();return}i=(i||d.params.autoplay.delay)-(new Date().getTime()-y),d.isEnd&&i<0&&!d.params.loop||(i<0&&(i=0),r())},C=()=>{d.isEnd&&i<0&&!d.params.loop||d.destroyed||!d.autoplay.running||(y=new Date().getTime(),c?(c=!1,x(i)):x(),d.autoplay.paused=!1,f("autoplayResume"))},T=()=>{if(d.destroyed||!d.autoplay.running)return;let e=(0,r.g)();"hidden"===e.visibilityState&&(c=!0,E(!0)),"visible"===e.visibilityState&&C()},_=e=>{"mouse"===e.pointerType&&(c=!0,d.animating||d.autoplay.paused||E(!0))},P=e=>{"mouse"===e.pointerType&&d.autoplay.paused&&C()},M=()=>{d.params.autoplay.pauseOnMouseEnter&&(d.el.addEventListener("pointerenter",_),d.el.addEventListener("pointerleave",P))},I=()=>{d.el.removeEventListener("pointerenter",_),d.el.removeEventListener("pointerleave",P)},O=()=>{(0,r.g)().addEventListener("visibilitychange",T)},R=()=>{(0,r.g)().removeEventListener("visibilitychange",T)};p("init",()=>{d.params.autoplay.enabled&&(M(),O(),y=new Date().getTime(),A())}),p("destroy",()=>{I(),R(),d.autoplay.running&&k()}),p("beforeTransitionStart",(e,t,n)=>{!d.destroyed&&d.autoplay.running&&(n||!d.params.autoplay.disableOnInteraction?E(!0,!0):k())}),p("sliderFirstMove",()=>{if(!d.destroyed&&d.autoplay.running){if(d.params.autoplay.disableOnInteraction)return void k();a=!0,s=!1,c=!1,l=setTimeout(()=>{c=!0,s=!0,E(!0)},200)}}),p("touchEnd",()=>{if(!d.destroyed&&d.autoplay.running&&a){if(clearTimeout(l),clearTimeout(t),d.params.autoplay.disableOnInteraction){s=!1,a=!1;return}s&&d.params.cssMode&&C(),s=!1,a=!1}}),p("slideChange",()=>{!d.destroyed&&d.autoplay.running&&(u=!0)}),Object.assign(d.autoplay,{start:A,stop:k,pause:E,resume:C})}},92410:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(99410),i=n(65492);let o=function(e,t,n){return void 0===e||(0,i.A)(e)?t:(0,r.A)({},t,{ownerState:(0,r.A)({},t.ownerState,n)})}},92858:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case h:case g:case m:case l:return e;default:return t}}case i:return t}}}function x(e){return S(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=h,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return x(e)||S(e)===c},t.isConcurrentMode=x,t.isContextConsumer=function(e){return S(e)===u},t.isContextProvider=function(e){return S(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return S(e)===h},t.isFragment=function(e){return S(e)===o},t.isLazy=function(e){return S(e)===g},t.isMemo=function(e){return S(e)===m},t.isPortal=function(e){return S(e)===i},t.isProfiler=function(e){return S(e)===s},t.isStrictMode=function(e){return S(e)===a},t.isSuspense=function(e){return S(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===h||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=S},93409:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;
115\s]*/,l=/^\s+|\s+$/g;function u(e){return e?e.replace(l,""):""}e.exports=function(e,l){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];l=l||{};var c=1,d=1;function h(e){var t=e.match(n);t&&(c+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function p(){var e={line:c,column:d};return function(t){return t.position=new f(e),v(r),t}}function f(e){this.start=e,this.end={line:c,column:d},this.source=l.source}f.prototype.content=e;var m=[];function g(t){var n=Error(l.source+":"+c+":"+d+": "+t);if(n.reason=t,n.filename=l.source,n.line=c,n.column=d,n.source=e,l.silent)m.push(n);else throw n}function v(t){var n=t.exec(e);if(n){var r=n[0];return h(r),e=e.slice(r.length),n}}function y(e){var t;for(e=e||[];t=b();)!1!==t&&e.push(t);return e}function b(){var t=p();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return d+=2,h(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}v(r);var w,S=[];for(y(S);w=function(){var e=p(),n=v(i);if(n){if(b(),!v(o))return g("property missing ':'");var r=v(a),l=e({type:"declaration",property:u(n[0].replace(t,"")),value:r?u(r[0].replace(t,"")):""});return v(s),l}}();)!1!==w&&(S.push(w),y(S));return S}},93479:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(99410),i=n(1983),o=n(25060),a=n(76047);let s={borderRadius:4};var l=n(71405),u=n(32790),c=n(93978),d=n(13053);let h=["breakpoints","palette","spacing","shape"],p=function(e={},...t){let{breakpoints:n={},palette:p={},spacing:f,shape:m={}}=e,g=(0,i.A)(e,h),v=(0,a.A)(n),y=function(e=8){if(e.mui)return e;let t=(0,l.LX)({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map(e=>{let n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}(f),b=(0,o.A)({breakpoints:v,direction:"ltr",components:{},palette:(0,r.A)({mode:"light"},p),spacing:y,shape:(0,r.A)({},s,m)},g);return b.applyStyles=d.A,(b=t.reduce((e,t)=>(0,o.A)(e,t),b)).unstable_sxConfig=(0,r.A)({},c.A,null==g?void 0:g.unstable_sxConfig),b.unstable_sx=function(e){return(0,u.A)({sx:e,theme:this})},b}},93537:(e,t,n)=>{"use strict";n.d(t,{EU:()=>s,NI:()=>a,iZ:()=>u,kW:()=>c,vf:()=>l,zu:()=>i});var r=n(25060);let i={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${i[e]}px)`};function a(e,t,n){let r=e.theme||{};if(Array.isArray(t)){let e=r.breakpoints||o;return t.reduce((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r),{})}if("object"==typeof t){let e=r.breakpoints||o;return Object.keys(t).reduce((r,o)=>(-1!==Object.keys(e.values||i).indexOf(o)?r[e.up(o)]=n(t[o],o):r[o]=t[o],r),{})}return n(t)}function s(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{}))||{}}function l(e,t){return e.reduce((e,t)=>{let n=e[t];return n&&0!==Object.keys(n).length||delete e[t],e},t)}function u(e,...t){let n=s(e),i=[n,...t].reduce((e,t)=>(0,r.A)(e,t),{});return l(Object.keys(n),i)}function c({values:e,breakpoints:t,base:n}){let r,i=Object.keys(n||function(e,t){if("object"!=typeof e)return{};let n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((t,r)=>{r<e.length&&(n[t]=!0)}):r.forEach(t=>{null!=e[t]&&(n[t]=!0)}),n}(e,t));return 0===i.length?e:i.reduce((t,n,i)=>(Array.isArray(e)?(t[n]=null!=e[i]?e[i]:e[r],r=i):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[r],r=n):t[n]=e,t),{})}},93978:(e,t,n)=>{"use strict";n.d(t,{A:()=>$});var r=n(71405),i=n(15368),o=n(85937);let a=function(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?(0,o.A)(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n};var s=n(93537);function l(e){return"number"!=typeof e?e:`${e}px solid`}function u(e,t){return(0,i.Ay)({prop:e,themeKey:"borders",transform:t})}let c=u("border",l),d=u("borderTop",l),h=u("borderRight",l),p=u("borderBottom",l),f=u("borderLeft",l),m=u("borderColor"),g=u("borderTopColor"),v=u("borderRightColor"),y=u("borderBottomColor"),b=u("borderLeftColor"),w=u("outline",l),S=u("outlineColor"),x=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){let t=(0,r.MA)(e.theme,"shape.borderRadius",4,"borderRadius");return(0,s.NI)(e,e.borderRadius,e=>({borderRadius:(0,r._W)(t,e)}))}return null};x.propTypes={},x.filterProps=["borderRadius"],a(c,d,h,p,f,m,g,v,y,b,x,w,S);let A=e=>{if(void 0!==e.gap&&null!==e.gap){let t=(0,r.MA)(e.theme,"spacing",8,"gap");return(0,s.NI)(e,e.gap,e=>({gap:(0,r._W)(t,e)}))}return null};A.propTypes={},A.filterProps=["gap"];let k=e=>
115{if(void 0!==e.columnGap&&null!==e.columnGap){let t=(0,r.MA)(e.theme,"spacing",8,"columnGap");return(0,s.NI)(e,e.columnGap,e=>({columnGap:(0,r._W)(t,e)}))}return null};k.propTypes={},k.filterProps=["columnGap"];let E=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){let t=(0,r.MA)(e.theme,"spacing",8,"rowGap");return(0,s.NI)(e,e.rowGap,e=>({rowGap:(0,r._W)(t,e)}))}return null};E.propTypes={},E.filterProps=["rowGap"];let C=(0,i.Ay)({prop:"gridColumn"}),T=(0,i.Ay)({prop:"gridRow"}),_=(0,i.Ay)({prop:"gridAutoFlow"}),P=(0,i.Ay)({prop:"gridAutoColumns"}),M=(0,i.Ay)({prop:"gridAutoRows"}),I=(0,i.Ay)({prop:"gridTemplateColumns"}),O=(0,i.Ay)({prop:"gridTemplateRows"});function R(e,t){return"grey"===t?t:e}a(A,k,E,C,T,_,P,M,I,O,(0,i.Ay)({prop:"gridTemplateAreas"}),(0,i.Ay)({prop:"gridArea"}));let D=(0,i.Ay)({prop:"color",themeKey:"palette",transform:R});function L(e){return e<=1&&0!==e?`${100*e}%`:e}a(D,(0,i.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:R}),(0,i.Ay)({prop:"backgroundColor",themeKey:"palette",transform:R}));let j=(0,i.Ay)({prop:"width",transform:L}),U=e=>void 0!==e.maxWidth&&null!==e.maxWidth?(0,s.NI)(e,e.maxWidth,t=>{var n,r;let i=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||s.zu[t];return i?(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:L(t)}}):null;U.filterProps=["maxWidth"];let N=(0,i.Ay)({prop:"minWidth",transform:L}),F=(0,i.Ay)({prop:"height",transform:L}),B=(0,i.Ay)({prop:"maxHeight",transform:L}),z=(0,i.Ay)({prop:"minHeight",transform:L});(0,i.Ay)({prop:"size",cssProperty:"width",transform:L}),(0,i.Ay)({prop:"size",cssProperty:"height",transform:L}),a(j,U,N,F,B,z,(0,i.Ay)({prop:"boxSizing"}));let $={border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:x},color:{themeKey:"palette",transform:R},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:R},backgroundColor:{themeKey:"palette",transform:R},p:{style:r.Ms},pt:{style:r.Ms},pr:{style:r.Ms},pb:{style:r.Ms},pl:{style:r.Ms},px:{style:r.Ms},py:{style:r.Ms},padding:{style:r.Ms},paddingTop:{style:r.Ms},paddingRight:{style:r.Ms},paddingBottom:{style:r.Ms},paddingLeft:{style:r.Ms},paddingX:{style:r.Ms},paddingY:{style:r.Ms},paddingInline:{style:r.Ms},paddingInlineStart:{style:r.Ms},paddingInlineEnd:{style:r.Ms},paddingBlock:{style:r.Ms},paddingBlockStart:{style:r.Ms},paddingBlockEnd:{style:r.Ms},m:{style:r.Lc},mt:{style:r.Lc},mr:{style:r.Lc},mb:{style:r.Lc},ml:{style:r.Lc},mx:{style:r.Lc},my:{style:r.Lc},margin:{style:r.Lc},marginTop:{style:r.Lc},marginRight:{style:r.Lc},marginBottom:{style:r.Lc},marginLeft:{style:r.Lc},marginX:{style:r.Lc},marginY:{style:r.Lc},marginInline:{style:r.Lc},marginInlineStart:{style:r.Lc},marginInlineEnd:{style:r.Lc},marginBlock:{style:r.Lc},marginBlockStart:{style:r.Lc},marginBlockEnd:{style:r.Lc},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:A},rowGap:{style:E},columnGap:{style:k},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:L},maxWidth:{style:U},minWidth:{transform:L},height:{transform:L},maxHeight:{transform:L},minHeight:{transform:L},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}}},94515:(e,t,n)=>{"use strict";
115Object.defineProperty(t,"__esModule",{value:!0}),t.RawSha256=void 0;var r=n(27623);t.RawSha256=function(){function e(){this.state=Int32Array.from(r.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(this.finished)throw Error("Attempted to update an already finished hash.");var t=0,n=e.byteLength;if(this.bytesHashed+=n,8*this.bytesHashed>r.MAX_HASHABLE_LENGTH)throw Error("Cannot hash more than 2^53 - 1 bits");for(;n>0;)this.buffer[this.bufferLength++]=e[t++],n--,this.bufferLength===r.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(t.setUint8(this.bufferLength++,128),n%r.BLOCK_SIZE>=r.BLOCK_SIZE-8){for(var i=this.bufferLength;i<r.BLOCK_SIZE;i++)t.setUint8(i,0);this.hashBuffer(),this.bufferLength=0}for(var i=this.bufferLength;i<r.BLOCK_SIZE-8;i++)t.setUint8(i,0);t.setUint32(r.BLOCK_SIZE-8,Math.floor(e/0x100000000),!0),t.setUint32(r.BLOCK_SIZE-4,e),this.hashBuffer(),this.finished=!0}for(var o=new Uint8Array(r.DIGEST_LENGTH),i=0;i<8;i++)o[4*i]=this.state[i]>>>24&255,o[4*i+1]=this.state[i]>>>16&255,o[4*i+2]=this.state[i]>>>8&255,o[4*i+3]=this.state[i]>>>0&255;return o},e.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],c=t[7],d=0;d<r.BLOCK_SIZE;d++){if(d<16)this.temp[d]=(255&e[4*d])<<24|(255&e[4*d+1])<<16|(255&e[4*d+2])<<8|255&e[4*d+3];else{var h=this.temp[d-2],p=(h>>>17|h<<15)^(h>>>19|h<<13)^h>>>10,f=((h=this.temp[d-15])>>>7|h<<25)^(h>>>18|h<<14)^h>>>3;this.temp[d]=(p+this.temp[d-7]|0)+(f+this.temp[d-16]|0)}var m=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&l^~s&u)|0)+(c+(r.KEY[d]+this.temp[d]|0)|0)|0,g=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&i^n&o^i&o)|0;c=u,u=l,l=s,s=a+m|0,a=o,o=i,i=n,n=m+g|0}t[0]+=n,t[1]+=i,t[2]+=o,t[3]+=a,t[4]+=s,t[5]+=l,t[6]+=u,t[7]+=c},e}()},95785:(e,t,n)=>{"use strict";n.d(t,{A:()=>o}),n(55729);var r=n(83004),i=n(6029);function o(e){let{styles:t,defaultTheme:n={}}=e,o="function"==typeof t?e=>t(null==e||0===Object.keys(e).length?n:e):t;return(0,i.jsx)(r.mL,{styles:o})}},95818:(e,t,n)=>{"use strict";n.d(t,{p:()=>o});var r=n(56752);let i=()=>"Scorri a destra",o=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r.F9&&!1===r.S$)return globalThis.__paraglide_ssr.button_scrollright1(t);let o=null!=(e=n.locale)?e:(0,r.JK)();return((0,r.fQ)("button_scrollright1",o),"it"===o)?i(t):"button_scrollRight"}},95919:(e,t,n)=>{"use strict";n.d(t,{r:()=>i});var r=n(99410);let i=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:(0,r.A)({},e)}}}})},96068:(e,t,n)=>{"use strict";n.d(t,{zY:()=>c,gj:()=>a,kh:()=>h,_0:()=>d,MD:()=>m,Gn:()=>l,iS:()=>p,uF:()=>u,vM:()=>f,gl:()=>s});let r={paths:{encyclopedia:{"treccani-it":"/enciclopedia/","treccani-com":"/encyclopaedia/"},vocabulary:{"treccani-it":"/vocabolario/","treccani-com":"/vocabulary/"},magazine:{"treccani-it":"/magazine/","treccani-com":"/magazine/"},authors:{"treccani-it":"/autori/","treccani-com":"/authors/"},videos:{"treccani-it":"/videos/","treccani-com":"/videos/"},synonyms:{"treccani-it":"/sinonimi/","treccani-com":"/synonyms/"},biographical:{"treccani-it":"/biografico/","treccani-com":"/biographical/"},magazineAtlanteNews:{"treccani-it":"/magazine/atlante/notizie/","treccani-com":"/magazine/atlante/news/"},encyclopediaSearch:{"treccani-it":"/enciclopedia/ricerca/","treccani-com":"/encyclopaedia/search/"},search:{"treccani-it":"/ricerca/","treccani-com":"/search/"},user:{"treccani-it":"/user/","treccani-com":"/user/"},podcast:{"treccani-it":"treccani-podcast/","treccani-com":"treccani-podcast/"}}},i=()=>"treccani-it",o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i(),o=r.paths[e][n];return t.asSegment&&(t.removeTrailingSlash=!0,t.removeLeadingSlash=!0),t.removeTrailingSlash&&o.endsWith("/")&&(o=o.slice(0,-1)),t.removeLeadingSlash&&o.startsWith("/")&&(o=o.slice(1)),o},a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o("encyclopedia",e)},s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o("vocabulary",e)},l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o("magazine",e)},u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o("synonyms",e)},c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o("biographical",e)},d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o("magazineAtlanteNews",e)},h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o("encyclopediaSearch",e)},p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o("search",e)},f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o("user",e)},m=()=>
115o("magazineAtlanteNews",{asSegment:!0})},96121:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(16361);let i=e=>(0,r.A)(e)&&"classes"!==e},97093:e=>{e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports},97139:(e,t,n)=>{e.exports=window.DOMPurify||(window.DOMPurify=n(19375).default||n(19375))},97191:()=>{},97248:(e,t,n)=>{"use strict";function r(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}n.d(t,{Rk:()=>r,SF:()=>i,sk:()=>o});var i=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},o=function(e,t,n){i(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next;while(void 0!==o)}}},97506:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(99410),i=n(1983),o=n(3126),a=n(92410),s=n(80404),l=n(35786);let u=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],c=["component","slots","slotProps"],d=["component"];function h(e,t){let{className:n,elementType:h,ownerState:p,externalForwardedProps:f,getSlotOwnerState:m,internalForwardedProps:g}=t,v=(0,i.A)(t,u),{component:y,slots:b={[e]:void 0},slotProps:w={[e]:void 0}}=f,S=(0,i.A)(f,c),x=b[e]||h,A=(0,s.A)(w[e],p),k=(0,l.A)((0,r.A)({className:n},v,{externalForwardedProps:"root"===e?S:void 0,externalSlotProps:A})),{props:{component:E},internalRef:C}=k,T=(0,i.A)(k.props,d),_=(0,o.A)(C,null==A?void 0:A.ref,t.ref),P=m?m(T):{},M=(0,r.A)({},p,P),I="root"===e?E||y:E,O=(0,a.A)(x,(0,r.A)({},"root"===e&&!y&&!b[e]&&g,"root"!==e&&!b[e]&&g,T,I&&{as:I},{ref:_}),M);return Object.keys(P).forEach(e=>{delete O[e]}),[x,O]}},98509:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(49484)},99087:()=>{},99410:(e,t,n)=>{"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}n.d(t,{A:()=>r})}},e=>{var t=t=>e(e.s=t);e.O(0,[6593,8792],()=>(t(36021),t(33023))),_N_E=e.O()}]);

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.