UNPKG

@bentoproject/accordion

Version:

Displays content sections that can be collapsed and expanded.

1 lines 51.6 kB
function t(t,n,i){return n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function n(t,n){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);n&&(e=e.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),i.push.apply(i,e)}return i}function i(i){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(n){t(i,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(i,t,Object.getOwnPropertyDescriptor(r,t))}))}return i}var{isArray:e}=Array;function r(t){return e(t)?t:[t]}function o(t,n){return t.indexOf(n)<0&&(t.push(n),!0)}function s(t,n){const i=t.indexOf(n);return-1!=i&&(t.splice(i,1),!0)}function l(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,e=new Array(n);i<n;i++)e[i]=t[i];return e}function u(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=function(t,n){if(t){if("string"==typeof t)return l(t,n);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?l(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var e=0;return function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var{hasOwnProperty:c,toString:a}=Object.prototype;function h(t){const n=Object.create(null);return t&&Object.assign(n,t),n}function f(t){return t||{}}function d(t,n){return Object.keys(t).reduce(((i,e)=>(n.includes(e)||(i[e]=t[e]),i)),{})}function p(t,n,i){let e=t[n];return void 0===e&&(e=i(t,n),t[n]=e),e}function v(t){return 1==(null==t?void 0:t.nodeType)}function m(t,n,i,e,r,o,s,l,u,c,a){return t}function y(t,n){return t}function b(t){return(t.ownerDocument||t).defaultView}function g(t,n){return t.replace(/^|,/g,`$&${n} `)}function _(t){m(/^[\w-]+$/.test(t))}function A(t,n){return t.querySelector(g(n,":scope"))}function w(t,n){const i=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector;return!!i&&i.call(t,n)}function P(t,n){return _(n),A(t,`> [${n}]`)}function k(t){return function(t,n){const i=[];for(let n=t.firstChild;n;n=n.nextSibling)!function(t){if(function(t){let n;return"string"==typeof t?n=t:t.nodeType===Node.ELEMENT_NODE&&(n=y(t).tagName),!!n&&n.toLowerCase().startsWith("i-")}(t))return!0;if(t.nodeType!==Node.ELEMENT_NODE)return!1;const n=y(t);return n.hasAttribute("placeholder")||n.hasAttribute("fallback")||n.hasAttribute("overflow")}(n)&&i.push(n);return i}(t)}var S,M={bubbles:!0,cancelable:!0};function x(t,n,i){return function(t,n){for(const i in n)t.setAttribute(i,n[i]);return t}(t.createElement(n),i)}function E(t,n,i,e){const r=i||{},o=m(t.ownerDocument).createEvent("Event");o.data=r;const{bubbles:s,cancelable:l}=e||M;o.initEvent(n,s,l),t.dispatchEvent(o)}function I(){return S||(S=Promise.resolve(void 0))}var R,T,C,V,O,j,z,$,L,N,H=class{constructor(){this.promise=new Promise(((t,n)=>{this.resolve=t,this.reject=n}))}},U={},W=[],q=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function D(t,n){for(var i in n)t[i]=n[i];return t}function F(t){var n=t.parentNode;n&&n.removeChild(t)}function Y(t,n,i){var e,r,o,s={};for(o in n)"key"==o?e=n[o]:"ref"==o?r=n[o]:s[o]=n[o];if(arguments.length>2&&(s.children=arguments.length>3?R.call(arguments,2):i),"function"==typeof t&&null!=t.defaultProps)for(o in t.defaultProps)void 0===s[o]&&(s[o]=t.defaultProps[o]);return B(t,s,e,r,null)}function B(t,n,i,e,r){var o={type:t,props:n,key:i,ref:e,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++C:r};return null==r&&null!=T.vnode&&T.vnode(o),o}function Z(t){return t.children}function G(t,n){this.props=t,this.context=n}function Q(t,n){if(null==n)return t.__?Q(t.__,t.__.__k.indexOf(t)+1):null;for(var i;n<t.__k.length;n++)if(null!=(i=t.__k[n])&&null!=i.__e)return i.__e;return"function"==typeof t.type?Q(t):null}function X(t){var n,i;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(i=t.__k[n])&&null!=i.__e){t.__e=t.__c.base=i.__e;break}return X(t)}}function J(t){(!t.__d&&(t.__d=!0)&&V.push(t)&&!K.__r++||j!==T.debounceRendering)&&((j=T.debounceRendering)||O)(K)}function K(){for(var t;K.__r=V.length;)t=V.sort((function(t,n){return t.__v.__b-n.__v.__b})),V=[],t.some((function(t){var n,i,e,r,o,s;t.__d&&(o=(r=(n=t).__v).__e,(s=n.__P)&&(i=[],(e=D({},r)).__v=r.__v+1,lt(s,r,e,n.__n,void 0!==s.ownerSVGElement,null!=r.__h?[o]:null,i,null==o?Q(r):o,r.__h),ut(i,r),r.__e!=o&&X(r)))}))}function tt(t,n,i,e,r,o,s,l,u,c){var a,h,f,d,p,v,m,y=e&&e.__k||W,b=y.length;for(i.__k=[],a=0;a<n.length;a++)if(null!=(d=i.__k[a]=null==(d=n[a])||"boolean"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?B(null,d,null,null,d):Array.isArray(d)?B(Z,{children:d},null,null,null):d.__b>0?B(d.type,d.props,d.key,null,d.__v):d)){if(d.__=i,d.__b=i.__b+1,null===(f=y[a])||f&&d.key==f.key&&d.type===f.type)y[a]=void 0;else for(h=0;h<b;h++){if((f=y[h])&&d.key==f.key&&d.type===f.type){y[h]=void 0;break}f=null}lt(t,d,f=f||U,r,o,s,l,u,c),p=d.__e,(h=d.ref)&&f.ref!=h&&(m||(m=[]),f.ref&&m.push(f.ref,null,d),m.push(h,d.__c||p,d)),null!=p?(null==v&&(v=p),"function"==typeof d.type&&d.__k===f.__k?d.__d=u=nt(d,u,t):u=it(t,d,f,y,p,u),"function"==typeof i.type&&(i.__d=u)):u&&f.__e==u&&u.parentNode!=t&&(u=Q(f))}for(i.__e=v,a=b;a--;)null!=y[a]&&("function"==typeof i.type&&null!=y[a].__e&&y[a].__e==i.__d&&(i.__d=Q(e,a+1)),at(y[a],y[a]));if(m)for(a=0;a<m.length;a++)ct(m[a],m[++a],m[++a])}function nt(t,n,i){for(var e,r=t.__k,o=0;r&&o<r.length;o++)(e=r[o])&&(e.__=t,n="function"==typeof e.type?nt(e,n,i):it(i,e,e,r,e.__e,n));return n}function it(t,n,i,e,r,o){var s,l,u;if(void 0!==n.__d)s=n.__d,n.__d=void 0;else if(null==i||r!=o||null==r.parentNode)t:if(null==o||o.parentNode!==t)t.appendChild(r),s=null;else{for(l=o,u=0;(l=l.nextSibling)&&u<e.length;u+=2)if(l==r)break t;t.insertBefore(r,o),s=o}return void 0!==s?s:r.nextSibling}function et(t,n,i){"-"===n[0]?t.setProperty(n,i):t[n]=null==i?"":"number"!=typeof i||q.test(n)?i:i+"px"}function rt(t,n,i,e,r){var o;t:if("style"===n)if("string"==typeof i)t.style.cssText=i;else{if("string"==typeof e&&(t.style.cssText=e=""),e)for(n in e)i&&n in i||et(t.style,n,"");if(i)for(n in i)e&&i[n]===e[n]||et(t.style,n,i[n])}else if("o"===n[0]&&"n"===n[1])o=n!==(n=n.replace(/Capture$/,"")),n=n.toLowerCase()in t?n.toLowerCase().slice(2):n.slice(2),t.l||(t.l={}),t.l[n+o]=i,i?e||t.addEventListener(n,o?st:ot,o):t.removeEventListener(n,o?st:ot,o);else if("dangerouslySetInnerHTML"!==n){if(r)n=n.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==n&&"list"!==n&&"form"!==n&&"tabIndex"!==n&&"download"!==n&&n in t)try{t[n]=null==i?"":i;break t}catch(t){}"function"==typeof i||(null!=i&&(!1!==i||"a"===n[0]&&"r"===n[1])?t.setAttribute(n,i):t.removeAttribute(n))}}function ot(t){this.l[t.type+!1](T.event?T.event(t):t)}function st(t){this.l[t.type+!0](T.event?T.event(t):t)}function lt(t,n,i,e,r,o,s,l,u){var c,a,h,f,d,p,v,m,y,b,g,_=n.type;if(void 0!==n.constructor)return null;null!=i.__h&&(u=i.__h,l=n.__e=i.__e,n.__h=null,o=[l]),(c=T.__b)&&c(n);try{t:if("function"==typeof _){if(m=n.props,y=(c=_.contextType)&&e[c.__c],b=c?y?y.props.value:c.__:e,i.__c?v=(a=n.__c=i.__c).__=a.__E:("prototype"in _&&_.prototype.render?n.__c=a=new _(m,b):(n.__c=a=new G(m,b),a.constructor=_,a.render=ht),y&&y.sub(a),a.props=m,a.state||(a.state={}),a.context=b,a.__n=e,h=a.__d=!0,a.__h=[]),null==a.__s&&(a.__s=a.state),null!=_.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=D({},a.__s)),D(a.__s,_.getDerivedStateFromProps(m,a.__s))),f=a.props,d=a.state,h)null==_.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(null==_.getDerivedStateFromProps&&m!==f&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(m,b),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(m,a.__s,b)||n.__v===i.__v){a.props=m,a.state=a.__s,n.__v!==i.__v&&(a.__d=!1),a.__v=n,n.__e=i.__e,n.__k=i.__k,n.__k.forEach((function(t){t&&(t.__=n)})),a.__h.length&&s.push(a);break t}null!=a.componentWillUpdate&&a.componentWillUpdate(m,a.__s,b),null!=a.componentDidUpdate&&a.__h.push((function(){a.componentDidUpdate(f,d,p)}))}a.context=b,a.props=m,a.state=a.__s,(c=T.__r)&&c(n),a.__d=!1,a.__v=n,a.__P=t,c=a.render(a.props,a.state,a.context),a.state=a.__s,null!=a.getChildContext&&(e=D(D({},e),a.getChildContext())),h||null==a.getSnapshotBeforeUpdate||(p=a.getSnapshotBeforeUpdate(f,d)),g=null!=c&&c.type===Z&&null==c.key?c.props.children:c,tt(t,Array.isArray(g)?g:[g],n,i,e,r,o,s,l,u),a.base=n.__e,n.__h=null,a.__h.length&&s.push(a),v&&(a.__E=a.__=null),a.__e=!1}else null==o&&n.__v===i.__v?(n.__k=i.__k,n.__e=i.__e):n.__e=function(t,n,i,e,r,o,s,l){var u,c,a,h=i.props,f=n.props,d=n.type,p=0;if("svg"===d&&(r=!0),null!=o)for(;p<o.length;p++)if((u=o[p])&&(u===t||(d?u.localName==d:3==u.nodeType))){t=u,o[p]=null;break}if(null==t){if(null===d)return document.createTextNode(f);t=r?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,f.is&&f),o=null,l=!1}if(null===d)h===f||l&&t.data===f||(t.data=f);else{if(o=o&&R.call(t.childNodes),c=(h=i.props||U).dangerouslySetInnerHTML,a=f.dangerouslySetInnerHTML,!l){if(null!=o)for(h={},p=0;p<t.attributes.length;p++)h[t.attributes[p].name]=t.attributes[p].value;(a||c)&&(a&&(c&&a.__html==c.__html||a.__html===t.innerHTML)||(t.innerHTML=a&&a.__html||""))}if(function(t,n,i,e,r){var o;for(o in i)"children"===o||"key"===o||o in n||rt(t,o,null,i[o],e);for(o in n)r&&"function"!=typeof n[o]||"children"===o||"key"===o||"value"===o||"checked"===o||i[o]===n[o]||rt(t,o,n[o],i[o],e)}(t,f,h,r,l),a)n.__k=[];else if(p=n.props.children,tt(t,Array.isArray(p)?p:[p],n,i,e,r&&"foreignObject"!==d,o,s,o?o[0]:i.__k&&Q(i,0),l),null!=o)for(p=o.length;p--;)null!=o[p]&&F(o[p]);l||("value"in f&&void 0!==(p=f.value)&&(p!==t.value||"progress"===d&&!p)&&rt(t,"value",p,h.value,!1),"checked"in f&&void 0!==(p=f.checked)&&p!==t.checked&&rt(t,"checked",p,h.checked,!1))}return t}(i.__e,n,i,e,r,o,s,u);(c=T.diffed)&&c(n)}catch(t){n.__v=null,(u||null!=o)&&(n.__e=l,n.__h=!!u,o[o.indexOf(l)]=null),T.__e(t,n,i)}}function ut(t,n){T.__c&&T.__c(n,t),t.some((function(n){try{t=n.__h,n.__h=[],t.some((function(t){t.call(n)}))}catch(t){T.__e(t,n.__v)}}))}function ct(t,n,i){try{"function"==typeof t?t(n):t.current=n}catch(t){T.__e(t,i)}}function at(t,n,i){var e,r;if(T.unmount&&T.unmount(t),(e=t.ref)&&(e.current&&e.current!==t.__e||ct(e,null,n)),null!=(e=t.__c)){if(e.componentWillUnmount)try{e.componentWillUnmount()}catch(t){T.__e(t,n)}e.base=e.__P=null}if(e=t.__k)for(r=0;r<e.length;r++)e[r]&&at(e[r],n,"function"!=typeof t.type);i||null==t.__e||F(t.__e),t.__e=t.__d=void 0}function ht(t,n,i){return this.constructor(t,i)}function ft(t,n,i){var e,r,o;T.__&&T.__(t,n),r=(e="function"==typeof i)?null:i&&i.__k||n.__k,o=[],lt(n,t=(!e&&i||n).__k=Y(Z,null,[t]),r||U,U,void 0!==n.ownerSVGElement,!e&&i?[i]:r?null:n.firstChild?R.call(n.childNodes):null,o,!e&&i?i:r?r.__e:n.firstChild,e),ut(o,t)}function dt(t,n){ft(t,n,dt)}R=W.slice,T={__e:function(t,n){for(var i,e,r;n=n.__;)if((i=n.__c)&&!i.__)try{if((e=i.constructor)&&null!=e.getDerivedStateFromError&&(i.setState(e.getDerivedStateFromError(t)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(t),r=i.__d),r)return i.__E=i}catch(n){t=n}throw t}},C=0,G.prototype.setState=function(t,n){var i;i=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=D({},this.state),"function"==typeof t&&(t=t(D({},i),this.props)),t&&D(i,t),null!=t&&this.__v&&(n&&this.__h.push(n),J(this))},G.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),J(this))},G.prototype.render=Z,V=[],O="function"==typeof Promise?Promise.prototype.then.bind(I()):setTimeout,K.__r=0,z=0;var pt=0,vt=[],mt=T.__b,yt=T.__r,bt=T.diffed,gt=T.__c,_t=T.unmount;function At(t,n){T.__h&&T.__h(L,t,pt||n),pt=0;var i=L.__H||(L.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({}),i.__[t]}function wt(t,n){var i=At($++,4);!T.__s&&Et(i.__H,n)&&(i.__=t,i.__H=n,L.__h.push(i))}function Pt(t,n){var i=At($++,7);return Et(i.__H,n)&&(i.__=t(),i.__H=n,i.__h=t),i.__}function kt(){vt.forEach((function(t){if(t.__P)try{t.__H.__h.forEach(Mt),t.__H.__h.forEach(xt),t.__H.__h=[]}catch(n){t.__H.__h=[],T.__e(n,t.__v)}})),vt=[]}T.__b=function(t){L=null,mt&&mt(t)},T.__r=function(t){yt&&yt(t),$=0;var n=(L=t.__c).__H;n&&(n.__h.forEach(Mt),n.__h.forEach(xt),n.__h=[])},T.diffed=function(t){bt&&bt(t);var n=t.__c;n&&n.__H&&n.__H.__h.length&&(1!==vt.push(n)&&N===T.requestAnimationFrame||((N=T.requestAnimationFrame)||function(t){var n,i=function(){clearTimeout(e),St&&cancelAnimationFrame(n),setTimeout(t)},e=setTimeout(i,100);St&&(n=requestAnimationFrame(i))})(kt)),L=null},T.__c=function(t,n){n.some((function(t){try{t.__h.forEach(Mt),t.__h=t.__h.filter((function(t){return!t.__||xt(t)}))}catch(i){n.some((function(t){t.__h&&(t.__h=[])})),n=[],T.__e(i,t.__v)}})),gt&&gt(t,n)},T.unmount=function(t){_t&&_t(t);var n=t.__c;if(n&&n.__H)try{n.__H.__.forEach(Mt)}catch(t){T.__e(t,n.__v)}};var St="function"==typeof requestAnimationFrame;function Mt(t){var n=L;"function"==typeof t.__c&&t.__c(),L=n}function xt(t){var n=L;t.__c=t.__(),L=n}function Et(t,n){return!t||t.length!==n.length||n.some((function(n,i){return n!==t[i]}))}function It(t,n){return"function"==typeof n?n(t):n}function Rt(t,n,i){return Y.apply(void 0,arguments)}function Tt(t,n,i){ft(t,n,i)}function Ct(t){return(i={__c:n="__cC"+z++,__:t,Consumer:function(t,n){return t.children(n)},Provider:function(t){var i,e;return this.getChildContext||(i=[],(e={})[n]=this,this.getChildContext=function(){return e},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&i.some(J)},this.sub=function(t){i.push(t);var n=t.componentWillUnmount;t.componentWillUnmount=function(){i.splice(i.indexOf(t),1),n&&n.call(t)}}),t.children}}).Provider.__=i.Consumer.contextType=i;var n,i}function Vt(t){return pt=1,n=It,i=t,(e=At($++,2)).t=n,e.__c||(e.__=[It(void 0,i),function(t){var n=e.t(e.__[0],t);e.__[0]!==n&&(e.__=[n,e.__[1]],e.__c.setState({}))}],e.__c=L),e.__;var n,i,e}function Ot(t){return n=t,pt=5,Pt((function(){return{current:n}}),[]);var n}function jt(t,n){var i,e,r;i=t,e=n,r=At($++,3),!T.__s&&Et(r.__H,e)&&(r.__=i,r.__H=e,L.__H.__h.push(r))}function zt(t,n){wt(t,n)}function $t(t){return n=t,i=L.context[n.__c],(e=At($++,9)).c=n,i?(null==e.__&&(e.__=!0,i.sub(L)),i.props.value):n.__;var n,i,e}function Lt(t,n){return Pt(t,n)}function Nt(t,n){return i=t,pt=8,Pt((function(){return i}),n);var i}function Ht(t,n,i){return e=t,r=n,pt=6,void wt((function(){"function"==typeof e?e(r()):e&&(e.current=r())}),null==(o=i)?o:o.concat(e));var e,r,o}var Ut=["auto","lazy","eager","unload"],Wt={auto:0,lazy:1,eager:2,unload:3};function qt(t,n){const i=Wt[t]||0,e=Wt[n]||0,r=Math.max(i,e);return Ut[r]}function Dt(){}function Ft(t,n=null){let i=!1;const e=()=>{i=!1,t()};return t=>{i||(i=!0,(t||n)(e))}}function Yt(t){const n=Object.getOwnPropertyDescriptor(t,"message");if(null!=n&&n.writable)return t;const{message:i,stack:e}=t,r=new Error(i);for(const n in t)r[n]=t[n];return r.stack=e,r}function Bt(t){let n=null,i="";for(var e,r=u(arguments,!0);!(e=r()).done;){const t=e.value;t instanceof Error&&!n?n=Yt(t):(i&&(i+=" "),i+=t)}return n?i&&(n.message=i+": "+n.message):n=new Error(i),n}function Zt(t){var n,i;null===(n=(i=self).__AMP_REPORT_ERROR)||void 0===n||n.call(i,t)}function Gt(t){const n=Bt.apply(null,arguments);setTimeout((()=>{throw Zt(n),n}))}function Qt(t,...n){try{return t.apply(null,n)}catch(t){Gt(t)}}function Xt(t,n,i,e=!0,r=!0){if(r){const r=n(t,i,e);r&&Xt(t,n,i,r,!1)}else if(t.children)for(var o,s=u(t.children,!0);!(o=s()).done;)Xt(o.value,n,i,e,!0)}Dt.prototype.key,Dt.prototype.type,Dt.prototype.deps,Dt.prototype.recursive,Dt.prototype.compute,Dt.prototype.defaultValue;var Jt=[],Kt=()=>{};function tn(){}function nn(){}function en(t,n){return t.values.scan(n)}function rn(t,n,i){return t.values.scanAll(i)}function on(t,n){return t.values.has(n)}function sn(t){return!!t.recursive}function ln(t){return void 0!==t}tn.prototype.values,tn.prototype.setters,nn.prototype.prop,nn.prototype.subscribers,nn.prototype.value,nn.prototype.pending,nn.prototype.counter,nn.prototype.depValues,nn.prototype.parentValue,nn.prototype.parentContextNode,nn.prototype.ping,nn.prototype.pingDep,nn.prototype.pingParent;var un=class{static get(t){let n=t.__AMP_NODE;return n||(n=new un(t,null),t.__AMP_NODE=n),n}static closest(t,n=!0){let i=t;for(;i;){if(i!=t||n){if(i.__AMP_NODE)return i.__AMP_NODE;const{nodeType:t}=i;if(9==t||11==t||1==t&&y(i).tagName.startsWith("AMP-"))return un.get(i)}i=i.__AMP_ASSIGNED_SLOT||i.assignedSlot||i.parentNode}return null}static assignSlot(t,n){t.__AMP_ASSIGNED_SLOT!=n&&(t.__AMP_ASSIGNED_SLOT=n,cn(t))}static unassignSlot(t,n){t.__AMP_ASSIGNED_SLOT==n&&(t.__AMP_ASSIGNED_SLOT=void 0,cn(t))}static rediscoverChildren(t){var n;const i=t.__AMP_NODE;null==i||null===(n=i.children)||void 0===n||n.forEach(an)}constructor(t,n){this.node=t,this.name=n,this.isRoot=9==t.nodeType,this.root=this.isRoot?this:null,this.parent=null,this.children=null,this.groups=null,this.values=new class{constructor(t){this.Ze=t,this.v=null,this.m=null,this.el=Ft(this.el.bind(this),setTimeout)}set(t,n,i){m(n),m(void 0!==i);const{key:e}=t,r=this.v||(this.v=new Map);let o=r.get(e);o||(o={values:[],setters:[]},r.set(e,o));const s=o.setters.indexOf(n),l=-1==s||o.values[s]!==i;-1==s?(o.setters.push(n),o.values.push(i)):l&&(o.values[s]=i),l&&(this.ping(t,!1),sn(t)&&Xt(this.Ze,en,t,!0,!1))}remove(t,n){m(n);const{key:i}=t,e=this.v,r=null==e?void 0:e.get(i);if(r){const o=r.setters.indexOf(n);-1!=o&&(r.setters.splice(o,1),r.values.splice(o,1),0==r.setters.length&&e.delete(i),Xt(this.Ze,en,t))}}has(t){var n;return!(null===(n=this.v)||void 0===n||!n.has(t.key))}subscribe(t,n){const i=this.ka(t);if(!o(i.subscribers,n))return;const e=i.value;ln(e)&&this.hi()&&n(e)}unsubscribe(t,n){var i;const e=null===(i=this.m)||void 0===i?void 0:i.get(t.key);e&&s(e.subscribers,n)&&this.Sa(e)}ping(t,n){var i,e;null===(i=this.m)||void 0===i||null===(e=i.get(t.key))||void 0===e||e.ping(n)}parentUpdated(){this.hi()&&Xt(this.Ze,rn,void 0,Jt)}rootUpdated(){const t=this.m;t&&(this.hi()?t.forEach((t=>{const{prop:n}=t;this.ping(n,!0)})):t.forEach((t=>{const{prop:n}=t;sn(n)&&this.Ia(t,null)})))}scan(t){return this.ping(t,!0),!!sn(t)&&!this.has(t)}scanAll(t){let n=null;const i=this.m;return i&&i.forEach((i=>{const{prop:e}=i,{key:r}=e;-1==(n||t).indexOf(r)&&(this.ping(e,!0),this.Ze.children&&this.has(e)&&(n||(n=t.slice(0)),n.push(r)))})),n||t}hi(){return!!this.Ze.root}ka(t){const{deps:n,key:i}=t,e=this.m||(this.m=new Map);let r=e.get(i);return r||(r={prop:t,subscribers:[],value:void 0,pending:0,counter:0,depValues:n.length>0?n.map(Kt):Jt,parentValue:void 0,parentContextNode:null,ping:t=>{if(this.hi()){const n=t?2:1;r.pending=Math.max(r.pending,n),this.el()}},pingDep:n.length>0?n.map(((t,n)=>t=>{r.depValues[n]=t,r.ping()})):Jt,pingParent:sn(t)?t=>{r.parentValue=t,r.ping()}:null},e.set(i,r),n.forEach(((t,n)=>this.subscribe(t,r.pingDep[n]))),r.ping(!1)),r}Sa(t){if(t.subscribers.length>0)return;const{pingDep:n,prop:i}=t,{deps:e,key:r}=i;this.m.delete(r),this.Ia(t,null),e.length>0&&e.forEach(((t,i)=>{this.unsubscribe(t,n[i])}))}el(){if(!this.hi())return;const t=this.m;if(!t)return;let n;t.forEach((t=>{t.counter=0}));do{n=0,t.forEach((t=>{if(0!=t.pending){const{key:i}=t.prop;if(t.counter++,t.counter>5)return Gt(`cyclical prop: ${i}`),void(t.pending=0);n++,this.Ra(t)}}))}while(n>0)}Ra(t){const n=2==t.pending;let i;try{i=this.Ca(t,n)}catch(t){Gt(t)}t.pending=0,this.Va(t,i)}Va(t,n){const{prop:i,value:e}=t,{key:r}=i,o=this.m;if(e===n||t!==(null==o?void 0:o.get(r))||!this.hi())return;t.value=n;const{subscribers:s}=t;for(var l,c=u(s,!0);!(l=c()).done;)(0,l.value)(n)}Ca(t,n){var i,e;m(this.hi());const{depValues:r,prop:o}=t,{compute:s,defaultValue:l,key:u}=o,c=null===(i=this.v)||void 0===i||null===(e=i.get(u))||void 0===e?void 0:e.values,a=function(t,n){const{compute:i,recursive:e}=t;return"function"==typeof e?!n||e(n):!(e&&n&&!i)&&e}(o,c);if(n||a!=Boolean(t.parentContextNode)){const n=a?function(t,n,i,e=!0){for(let r=e?t:t.parent;r;r=r.parent)if(n(r,i))return r;return null}(this.Ze,on,o,!1):null;this.Ia(t,n)}const h=ln(t.parentValue)?t.parentValue:a&&!t.parentContextNode?l:void 0;let f;if(r.every(ln)&&(!a||ln(h))){const{node:t}=this.Ze;c&&!s?f=c[0]:sn(o)?c||r.length>0?f=function(t,n,i,e,r){switch(r.length){case 0:return t(n,i,e);case 1:return t(n,i,e,r[0]);case 2:return t(n,i,e,r[0],r[1]);case 3:return t(n,i,e,r[0],r[1],r[2]);default:return t.apply(null,[n,i,e].concat(r))}}(s,t,c||Jt,h,r):ln(h)&&(f=h):s&&(f=function(t,n,i,e){switch(e.length){case 0:return t(n,i);case 1:return t(n,i,e[0]);case 2:return t(n,i,e[0],e[1]);case 3:return t(n,i,e[0],e[1],e[2]);default:return t.apply(null,[n,i].concat(e))}}(s,t,c||Jt,r))}return f}Ia(t,n){const{parentContextNode:i,pingParent:e,prop:r}=t;n!=i&&(t.parentContextNode=n,t.parentValue=void 0,i&&i.values.unsubscribe(r,m(e)),n&&n.values.subscribe(r,m(e)))}}(this),this.Oa=null,this.ja=!1,this.za=Ft(this.$a.bind(this),setTimeout),11==t.nodeType&&t.addEventListener("slotchange",(t=>{var n,i;const e=t.target;e.assignedNodes().forEach(cn),null===(n=un.closest(e))||void 0===n||null===(i=n.children)||void 0===i||i.forEach(an)})),this.discover()}discover(){this.isDiscoverable()?this.za():this.name&&this.children&&this.children.forEach(an)}isDiscoverable(){return!this.isRoot&&!this.ja}setParent(t){const n=null!=t&&t.nodeType?un.get(t):t;this.La(n,null!=t)}setIsRoot(t){var n,i;this.isRoot=t;const e=t?this:null!==(n=null===(i=this.parent)||void 0===i?void 0:i.root)&&void 0!==n?n:null;this.updateRoot(e)}updateRoot(t){m(!t||t.isRoot);const n=this.root;var i,e;t!=n&&(this.root=t,this.values.rootUpdated(),null===(i=this.Oa)||void 0===i||i.forEach((t=>t.rootUpdated())),null===(e=this.children)||void 0===e||e.forEach((n=>n.updateRoot(t))))}addGroup(t,n,i){const e=this.groups||(this.groups=new Map),{children:r,node:o}=this,s=new un(o,t);return e.set(t,{cn:s,match:n,weight:i}),s.setParent(this),null==r||r.forEach(an),s}group(t){var n,i;return(null===(n=this.groups)||void 0===n||null===(i=n.get(t))||void 0===i?void 0:i.cn)||null}findGroup(t){const{groups:n}=this;if(!n)return null;let i=null,e=Number.NEGATIVE_INFINITY;return n.forEach((({cn:n,match:r,weight:o})=>{r(t,this.node)&&o>e&&(i=n,e=o)})),i}subscribe(t,n,i,e){const r=this.Oa||(this.Oa=new Map);let o=r.get(t);o||(o=new n(this,i,e),r.set(t,o))}unsubscribe(t){const n=this.Oa,i=null==n?void 0:n.get(t);i&&(i.dispose(),n.delete(t))}$a(){if(!this.isDiscoverable())return;const t=un.closest(this.node,!1),n=(null==t?void 0:t.findGroup(this.node))||t;this.La(n,!1)}La(t,n){var i;this.ja=n;const e=this.parent;if(t!=e){if(this.parent=t,null!=e&&e.children&&s(m(e.children),this),t){const n=t.children||(t.children=[]);o(n,this);for(var r,l=u(n,!0);!(r=l()).done;){const t=r.value;t!=this&&t.isDiscoverable()&&t.discover()}}this.values.parentUpdated()}this.updateRoot(null!==(i=null==t?void 0:t.root)&&void 0!==i?i:null)}};function cn(t){!function(t,n,i=!0){const e=un.closest(t,i);if(e)if(e.node==t)n(e);else if(e.children)for(var r,o=u(e.children,!0);!(r=o()).done;){const i=r.value;t.contains(i.node)&&n(i)}}(t,an)}function an(t){t.discover()}var hn=[];function fn(t,n){const e=i({key:t,type:null,deps:hn,recursive:!1,compute:null,defaultValue:void 0},n);return m(0==e.deps.length||e.compute),e}var dn=[],pn=()=>{};function vn(t,n,i){n=r(n);const e=i;un.get(t).subscribe(e,yn,i,n)}var mn,yn=class{constructor(t,n,i){if(this.contextNode=t,this.Na=n,this.Ha=i,this.Ua=i.length>0?i.map(pn):dn,this.Wa=i.length>0?i.map(((t,n)=>t=>{this.Ua[n]=t,this.qa()})):dn,this._s=!1,this.Da=null,this.qa=Ft(this.qa.bind(this),setTimeout),i.length>0){const{values:t}=this.contextNode;i.forEach(((n,i)=>t.subscribe(n,this.Wa[i])))}this.hi()&&this.qa()}dispose(){if(this.Ha.length>0){const{values:t}=this.contextNode;this.Ha.forEach(((n,i)=>t.unsubscribe(n,this.Wa[i])))}this.de()}rootUpdated(){const t=this.hi();this.de(),t&&this.qa()}hi(){return!!this.contextNode.root}qa(){this.hi()&&(this.Ua.every(bn)?(this._s=!0,this.Fa()):this._s&&(this._s=!1,this.de()))}Fa(){this.Da&&(Qt(this.Da),this.Da=null);const t=this.Na;this.Da=function(t,n){switch(n.length){case 0:return t();case 1:return t(n[0]);case 2:return t(n[0],n[1]);case 3:return t(n[0],n[1],n[2]);default:return t.apply(null,n)}}(t,this.Ua)}de(){this.Da&&(Qt(this.Da),this.Da=null)}};function bn(t){return void 0!==t}function gn(t){un.get(t).discover()}function _n(t,n,i,e){un.get(t).values.set(n,i,e)}function An(t,n,i){un.get(t).values.remove(n,i)}function wn(t,n){return[{query:t.matchMedia(n),value:"1"},{query:null,value:""}]}function Pn(t,n){return n.split(",").map((n=>{if(0==(n=n.replace(/\s+/g," ").trim()).length)return;let i,e,r;if(")"==n.charAt(n.length-1)){let t=1;for(r=n.length-2;r>=0;r--){const i=n.charAt(r);if("("==i?t--:")"==i&&t++,0==t)break}const i=r-1;if(r>0)for(r--;r>=0;r--){const t=n.charAt(r);if(!("%"==t||"-"==t||"_"==t||t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"))break}if(r>=i)return null}else for(r=n.length-2;r>=0;r--){const t=n.charAt(r);if(!("%"==t||"."==t||t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"))break}return r>=0?(i=n.substring(0,r+1).trim(),e=n.substring(r+1).trim()):(e=n,i=void 0),e?{query:i?t.matchMedia(i):null,value:e}:null})).filter(Boolean)}function kn(t,n,i){for(let e=0;e<t.length;e++){const{query:r}=t[e];r&&(void 0!==r.onchange?r.onchange=i?n:null:i?r.addListener(n):r.removeListener(n))}}var Sn=["Webkit","webkit","Moz","moz","ms","O","o"],Mn={"getPropertyPriority":()=>"","getPropertyValue":()=>""};function xn(t,n,i){if(Tn(n))return n;mn||(mn=h());let e=mn[n];if(!e||i){if(e=n,void 0===t[n]){const i=function(t){return t.charAt(0).toUpperCase()+t.slice(1)}(n),r=function(t,n){for(let i=0;i<Sn.length;i++){const e=Sn[i]+n;if(void 0!==t[e])return e}return""}(t,i);void 0!==t[r]&&(e=r)}i||(mn[n]=e)}return e}function En(t,n,i,e,r){const o=xn(t.style,n,r);if(!o)return;const s=e?i+e:i;Tn(o)?t.style.setProperty(o,s):t.style[o]=s}function In(t,n,i){const e=xn(t.style,n,i);if(e)return Tn(e)?t.style.getPropertyValue(e):t.style[e]}function Rn(t,n){for(const i in n)En(t,i,n[i])}function Tn(t){return t.startsWith("--")}var Cn,Vn,On=/vertical/,jn=new WeakMap,zn=new WeakMap,$n=new WeakMap;function Ln(t){let n=jn.get(t);return n||(n=new t.ResizeObserver(Nn),jn.set(t,n)),n}function Nn(t){const n=new Set;for(let i=t.length-1;i>=0;i--){const e=t[i],{target:r}=e;if(n.has(r))continue;n.add(r);const o=zn.get(r);if(o){$n.set(r,e);for(let t=0;t<o.length;t++){const{callback:n,type:i}=o[t];Hn(i,n,e)}}}}function Hn(t,n,i){if(0==t){const{contentRect:t}=i,{height:e,width:r}=t;Qt(n,{width:r,height:e})}else if(1==t){const{borderBoxSize:t}=i;let e;if(t)e=t.length>0?t[0]:{inlineSize:0,blockSize:0};else{const{target:t}=i,n=b(t),r=On.test(function(t,n){return t.getComputedStyle(n)||Mn}(n,t)["writing-mode"]),{offsetHeight:o,offsetWidth:s}=t;let l,u;r?(u=s,l=o):(l=s,u=o),e={inlineSize:l,blockSize:u}}Qt(n,e)}}if("undefined"!=typeof AMP&&AMP.BaseElement)Cn=AMP.BaseElement;else{let t;class n{constructor(t){this.element=t,this.win=b(t)}static"CustomElement"(n){return t||(t=HTMLElement),class extends t{constructor(){super(),this.implementation=new n(this)}connectedCallback(){this.classList.add("i-amphtml-built"),this.implementation.mountCallback(),this.implementation.buildCallback()}disconnectedCallback(){this.implementation.unmountCallback()}getApi(){return this.implementation.getApi()}}}mutateElement(t){I().then(t)}isLayoutSupported(){return!0}mountCallback(){}unmountCallback(){}buildCallback(){}}Cn=n}function Un(){return Vn||(Vn=Ct({renderable:!0,playable:!0,loading:"auto"}))}function Wn({children:t,loading:n="auto",notify:i,playable:e=!0,renderable:r=!0}){const o=qn(),s=r&&o.renderable,l=s&&e&&o.playable,u=qt(s?"auto":"lazy",qt(n,o.loading)),c=i||o.notify,a=Lt((()=>({renderable:s,playable:l,loading:u,notify:c})),[s,l,u,c]);return Rt(Un().Provider,{children:t,value:a})}function qn(){return $t(Un())}var Dn=fn("CanRender",{defaultValue:!0,recursive:t=>t.reduce(Bn),compute:(t,n,i)=>i&&n.reduce(Bn,!0)||!1}),Fn=fn("CanPlay",{defaultValue:!0,recursive:t=>t.reduce(Bn),deps:[Dn],compute:(t,n,i,e)=>e&&i&&n.reduce(Bn,!0)||!1}),Yn=fn("Loading",{defaultValue:"auto",recursive:!0,deps:[Dn],compute:(t,n,i,e)=>qt(e?"auto":"lazy",qt(i||"auto",n.reduce(qt,"auto")))}),Bn=(t,n)=>t&&n;function Zn(){let t=0;return()=>String(++t)}var Gn=t=>t.ensureLoaded(),Qn=t=>t.pause(),Xn=t=>t.unmount();function Jn(t,n=!0){ni(t,n,!1,Gn)}function Kn(t,n=!0){ni(t,n,!0,Qn)}function ti(t,n=!0){ni(t,n,!0,Xn)}function ni(t,n,i,e){const o=r(t);for(let t=0;t<o.length;t++)ii(o[t],n,i,e)}function ii(t,n,i,e){if(n&&t.classList.contains("i-amphtml-element")){const n=t;if(Qt(e,n),!i){const t=n.getPlaceholder();return void(t&&ii(t,!0,!1,e))}}const r=t.getElementsByClassName("i-amphtml-element");let o=null;for(let t=0;t<r.length;t++){const n=r[t];if(i)Qt(e,n);else{o=o||[];let t=!1;for(let i=0;i<o.length;i++)if(o[i].contains(n)){t=!0;break}t||(o.push(n),Qt(e,n))}}}var ei={},ri=new WeakMap;function oi(t,n,e,r=!1){if(t.setAttribute("slot",n),!r)return Rt(si,i(i({},e||ei),{},{name:n}));const o=ri.get(t);if(o&&function(t,n){if(null==t||null==n)return t===n;for(const i in t)if(t[i]!==n[i])return!1;for(const i in n)if(n[i]!==t[i])return!1;return!0}(o.oldProps,e))return o.component;function s(t){return Rt(si,i(i({},e||ei),{},{name:n},t))}return ri.set(t,{oldProps:e,component:s}),s}function si(t){const n=Ot(null);return li(n,t),jt((()=>{t.postRender&&t.postRender()})),Rt("slot",i(i({},t),{},{ref:n}))}function li(t,n){const{"loading":i}=n||ei,e=qn();zt((()=>{const n=t.current;return m(v(n)),_n(n,Dn,si,e.renderable),_n(n,Fn,si,e.playable),_n(n,Yn,si,e.loading),e.playable||ui(n,Kn,!0),()=>{var t;An(n,Dn,si),An(n,Fn,si),An(n,Yn,si),t=n,un.rediscoverChildren(t)}}),[t,e]),zt((()=>{const n=t.current;return m(v(n)),"lazy"!=i&&ui(n,Jn,!0),()=>{ui(n,ti,!1)}}),[t,i])}function ui(t,n,i){const e=t.assignedElements?t.assignedElements():t;if(Array.isArray(e)&&0==e.length)return;if(!i)return void n(e);const r=t.ownerDocument.defaultView;r&&(r.requestIdleCallback||r.setTimeout)((()=>n(e)))}var ci={"position":"absolute","top":"0","left":"0","width":"100%","height":"100%"},ai=Zn();function hi(t,n){return Object.values(t).some(n)}var fi=t=>"string"==typeof t||!!t.selector,di=t=>3===t.nodeType&&0===t.nodeValue.trim().length;function pi(t,n,e,r,o){const{"layoutSizeDefined":s,"lightDomTag":l,"props":u}=t;o&&o.start();const c=i(i({},r),{},{ref:e});return l&&(c["i-amphtml-rendered"]=!0,c.__AMP_RENDERED=!0,c.as=l),s&&(t.usesShadowDom?c.style=ci:c.class="i-amphtml-fill-content"),vi(t,c,u,n,o),o&&o.complete(),c}function vi(t,n,i,e,r){if(hi(i,fi)){const o=k(e);for(let e=0;e<o.length;e++){const s=o[e],l=yi(s,i);if(!l)continue;const u=i[l],{as:c=!1,single:a,name:h=l,clone:f,props:d={}}=u;m(f||t.usesShadowDom);const p={};if(vi(t,p,d,s,r),a)n[h]=oi(s,s.getAttribute("slot")||`i-amphtml-${h}`,p,c);else{const t=n[h]||(n[h]=[]);m(!c),t.push(f?mi(s):oi(s,s.getAttribute("slot")||`i-amphtml-${h}-${ai()}`,p))}}}for(const s in i){const l=i[s];let u;if(m(!!l.attr+!!l.attrs+!!l.attrMatches+!!l.selector+!!l.passthrough+!!l.passthroughNonEmpty<=1),l.passthrough?(m(t.usesShadowDom),u=[Rt(si,{loading:"lazy"})]):l.passthroughNonEmpty?(m(t.usesShadowDom),u=k(e).every(di)?null:[Rt(si,{loading:"lazy"})]):l.attr?(u=e.getAttribute(l.attr),l.media&&null!=u&&(u=r.resolveListQuery(String(u)))):l.parseAttrs&&(m(l.attrs||l.attrMatches),u=l.parseAttrs(e)),null==u)null!=l.default&&(n[s]=l.default);else{const t="number"==l.type?parseFloat(u):"boolean"==l.type?null==(o=u)?void 0:"false"!==o:u;n[s]=t}}var o}function mi(t){const n={"key":t},{attributes:i,localName:e}=t,{length:r}=i;for(let t=0;t<r;t++){const{name:e,value:r}=i[t];n[e]=r}return Rt(e,n)}function yi(t,n){for(const i in n){const e=n[i];if(w(t,"string"==typeof e?e:e.selector))return i}return null}var bi=self.AMP_CONFIG||{},gi=("string"==typeof bi.thirdPartyFrameRegex?new RegExp(bi.thirdPartyFrameRegex):bi.thirdPartyFrameRegex,("string"==typeof bi.cdnProxyRegex?new RegExp(bi.cdnProxyRegex):bi.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/);function _i(t){if(!self.document||!self.document.head)return null;if(self.location&&gi.test(self.location.origin))return null;const n=self.document.head.querySelector(`meta[name="${t}"]`);return n&&n.getAttribute("content")||null}bi.thirdPartyUrl,bi.thirdPartyFrameHost,bi.cdnUrl||_i("runtime-host"),bi.errorReportingUrl,bi.betaErrorReportingUrl,bi.localDev,bi.geoApiUrl||_i("amp-geo-api"),self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG;var Ai=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)";new RegExp("(-shadowcsshost"+Ai,"gim"),new RegExp("(-shadowcsscontext"+Ai,"gim"),new RegExp("-shadowcsshost","gim"),new RegExp("-shadowcsscontext","gim");var wi={childList:!0},Pi={childList:!0,characterData:!0},ki={childList:!0},Si=f({"style":"display: contents; background: inherit;","part":"c"}),Mi=f({"name":"i-amphtml-svc"}),xi=f({"i-amphtml-rendered":""}),Ei=()=>!0,Ii=t=>!!t.media,Ri=t=>!(!t.passthrough&&!t.passthroughNonEmpty),Ti=class extends Cn{static R1(){return!0}static requiresShadowDom(){return this.usesShadowDom}static usesLoading(){return this.loadable}static prerenderAllowed(){return!this.usesLoading()}constructor(t){super(t),this.Ya=f({"loading":"auto","onReadyState":(t,n)=>{this.Ba(t,n)},"onPlayingState":t=>{this.Za(t)},"onLoading":()=>{this.handleOnLoading()},"onLoad":()=>{this.handleOnLoad()},"onError":()=>{this.handleOnError()}}),this.Ga={renderable:!1,playable:!0,loading:"auto",notify:()=>this.mutateElement((()=>{}))},this.Qa=!1,this.Xa=null,this.Ja=null,this.Ka=t=>{null!==t&&(this.Xa?this.tf(t):this.nf(t)),this.Ja=t,this.if()},this.ef=null,this.rf=null,this.sf=null,this.lf=!1,this.uf=null,this.cf=()=>{this.lf=!1,this.af()},this.hf=!1,this.ui=!1,this.observer=null,this.ff=new class{constructor(t){this.df=t,this.pf=!1,this.vf=!1,this.mf=this.mf.bind(this)}updatePlaying(t){t!==this.pf&&(this.pf=t,t?(this.vf=!1,function(t,n){!function(t,n,i){const e=t.ownerDocument.defaultView;if(!e)return;let r=zn.get(t);if(r||(r=[],zn.set(t,r),Ln(e).observe(t)),!r.some((t=>t.callback===i&&1===t.type))){r.push({type:1,callback:i});const n=$n.get(t);n&&setTimeout((()=>Hn(1,i,n)))}}(t,0,n)}(this.df,this.mf)):function(t,n){!function(t,n,i){const e=zn.get(t);if(e&&(function(t,n){const e=[];let r=0;for(let n=0;n<t.length;n++){const s=t[n];(o=s).callback===i&&1===o.type?e.push(s):(r<n&&(t[r]=s),r++)}var o;r<t.length&&(t.length=r)}(e),0==e.length)){zn.delete(t),$n.delete(t);const n=t.ownerDocument.defaultView;n&&Ln(n).unobserve(t)}}(t,0,n)}(this.df,this.mf))}mf({blockSize:t,inlineSize:n}){const i=n>0&&t>0;if(i===this.vf)return;this.vf=i;const e=this.df;i||e.pause()}}(t),this.Ti=null}init(){}isLayoutSupported(t){return this.constructor.layoutSizeDefined?function(t){return"fixed"==t||"fixed-height"==t||"responsive"==t||"fill"==t||"flex-item"==t||"fluid"==t||"intrinsic"==t}(t)||"container"==t:super.isLayoutSupported(t)}buildCallback(){const t=this.constructor;this.observer=new MutationObserver((t=>this.yf(t)));const n=t.props,e=hi(n,fi)?wi:null,r=hi(n,Ri)?Pi:null,o=t.usesTemplate?ki:null;this.observer.observe(this.element,i(i(i({attributes:!0},e),r),o)),this.Ti=hi(n,Ii)?new class{constructor(t,n){this.Wt=t,this.o=n,this.Li={},this.Ui=null}start(){this.Ui=this.Li,this.Li={}}resolveMatchQuery(t){return"1"===this.$i(t,wn,"1")}resolveListQuery(t){return this.$i(t,Pn,"")}complete(){for(const t in this.Ui)t in this.Li||kn(this.Ui[t],this.o,!1);this.Ui=null}dispose(){for(const t in this.Li)kn(this.Li[t],this.o,!1);this.Li={}}$i(t,n,i){if(!t.trim())return i;let e=this.Li[t]||m(this.Ui)[t];return e||(e=n(this.Wt,t),kn(e,this.o,!0)),this.Li[t]=e,function(t){for(let n=0;n<t.length;n++){const{query:i,value:e}=t[n];if(!i||i.matches)return e}return""}(e)}}(this.win,(()=>this.bf())):null;const s=t.staticProps,l=this.init();Object.assign(this.Ya,s,l),this.checkPropsPostMutations(),vn(this.element,[],(()=>()=>{this.ui=!1,this.sf&&Tt(null,this.sf)})),vn(this.element,[Dn,Fn,Yn],((t,n,i)=>{this.Ga.renderable=t,this.Ga.playable=n,this.Ga.loading=i,this.ui=!0,this.bf()}));const u=t.useContexts;var c;return 0!=u.length&&vn(this.element,u,((...t)=>{this.rf=t,this.bf()})),this.uf=new H,this.bf(),t.loadable&&(null===(c=this.setReadyState)||void 0===c||c.call(this,"loading")),this.if(),this.uf.promise}ensureLoaded(){this.constructor.loadable&&(this.mutateProps(f({"loading":"eager"})),this.Qa=!0)}mountCallback(){gn(this.element),this.constructor.loadable&&"auto"!=this.getProp("loading")&&(this.mutateProps({"loading":"auto"}),this.Qa=!1)}unmountCallback(){var t;gn(this.element),this.constructor.loadable&&this.mutateProps({"loading":"unload"}),this.Za(!1),null===(t=this.Ti)||void 0===t||t.dispose()}mutatedAttributesCallback(){this.sf&&this.bf()}attemptChangeHeight(t){return super.attemptChangeHeight(t).catch((t=>{throw this.getOverflowElement&&!this.getOverflowElement()&&console.warn("[overflow] element not found. Provide one to enable resizing to full contents.",this.element),t}))}mutateProps(t){Object.assign(this.Ya,t),this.bf()}api(){return m(this.Ja)}registerApiAction(t,n,i=2){var e;null===(e=this.registerAction)||void 0===e||e.call(this,t,(t=>n(this.api(),t)),i)}mutationObserverCallback(t){}checkPropsPostMutations(){}updatePropsForRendering(t){}isReady(t){return!0}yf(t){const n=this.constructor;this.mutationObserverCallback(t);const i=t.some((t=>function(t,n){const{type:i}=n;if("attributes"==i){if(t.usesTemplate&&"template"==n.attributeName)return!0;const i=t.props;for(const t in i){var e;const r=i[t];if(n.attributeName==r.attr||r.attrs&&r.attrs.includes(m(n.attributeName))||null!==(e=r.attrMatches)&&void 0!==e&&e.call(r,n.attributeName))return!0}return!1}return"childList"==i&&(Vi(n.addedNodes)||Vi(n.removedNodes))}(n,t)));i&&(this.checkPropsPostMutations(),this.bf())}bf(){this.lf||(this.lf=!0,this.mutateElement(this.cf))}if(){const{Ja:t}=this,n=null==t?void 0:t.readyState;n&&n!==this.element.readyState&&this.Ba(n)}Ba(t,n){var i;null===(i=this.setReadyState)||void 0===i||i.call(this,t,n),this.constructor.unloadOnPause&&this.Za("complete"==t),this.Qa&&(this.Qa=!1,this.mutateProps({"loading":"auto"}))}handleOnLoad(){var t,n,i;null===(t=this.toggleLoading)||void 0===t||t.call(this,!1),null===(n=this.toggleFallback)||void 0===n||n.call(this,!1),null===(i=this.togglePlaceholder)||void 0===i||i.call(this,!1)}handleOnLoading(){var t;null===(t=this.toggleLoading)||void 0===t||t.call(this,!0)}handleOnError(){var t,n,i,e,r;null===(t=this.toggleLoading)||void 0===t||t.call(this,!1),null!==(n=this.getFallback)&&void 0!==n&&n.call(this)?(null===(i=this.toggleFallback)||void 0===i||i.call(this,!0),null===(e=this.togglePlaceholder)||void 0===e||e.call(this,!1)):null===(r=this.togglePlaceholder)||void 0===r||r.call(this,!0)}af(){if(!this.ui)return;const t=this.constructor,n=t.usesShadowDom,e=n?null:t.lightDomTag,r=t.detached;if(!this.sf){const i=this.win.document;if(n){m(!r);let{shadowRoot:n}=this.element,e=n&&(d=n,_("c"),A(d,"> c"));if(e)this.hf=!0;else{var o,s,l,u,c,a;n=this.element.attachShadow({mode:"open",delegatesFocus:t.delegatesFocus});const r=t.shadowCss;r&&function(t,n,i){const e=t.ownerDocument,r=e.defaultView;if(void 0!==t.adoptedStyleSheets&&void 0!==r.CSSStyleSheet.prototype.replaceSync){const e=r.__AMP_SHADOW_CSS||(r.__AMP_SHADOW_CSS={});let o=e[n];o||(o=new r.CSSStyleSheet,o.replaceSync(i),e[n]=o),t.adoptedStyleSheets=t.adoptedStyleSheets.concat(o)}else{const r=e.createElement("style");r.setAttribute("data-name",n),r.textContent=i,t.appendChild(r)}}(n,this.element.tagName,r),e=x(i,"c",Si),n.appendChild(e);const h=x(i,"slot",Mi);n.appendChild(h),null===(o=this.getPlaceholder)||void 0===o||null===(s=o.call(this))||void 0===s||s.setAttribute("slot","i-amphtml-svc"),null===(l=this.getFallback)||void 0===l||null===(u=l.call(this))||void 0===u||u.setAttribute("slot","i-amphtml-svc"),null===(c=this.getOverflowElement)||void 0===c||null===(a=c.call(this))||void 0===a||a.setAttribute("slot","i-amphtml-svc")}this.sf=e,function(t,n){un.get(t).setParent(n)}(n,this.element),function(t,n,i,e=0){un.get(t).addGroup(n,i,e)}(this.element,"unslotted",Ei,-1),h=this.element,f=Dn,un.get(h).group("unslotted").values.set(f,this,!1)}else if(e){this.sf=this.element;const n=P(this.sf,"i-amphtml-rendered")||x(i,e,xi);n.__AMP_RENDERED=!0,t.layoutSizeDefined&&n.classList.add("i-amphtml-fill-content"),this.sf.appendChild(n)}else{const t=i.createElement("i-amphtml-c");this.sf=t,t.classList.add("i-amphtml-fill-content"),r||this.element.appendChild(t)}}var h,f,d;const p=t.useContexts,v=this.rf;if(0!=p.length&&null==v)return;const y=pi(t,this.element,this.Ka,this.Ya,this.Ti);if(this.updatePropsForRendering(y),!this.isReady(y))return;let b=Rt(t.Component,y);for(let t=0;t<p.length;t++){const n=p[t].type,i=v[t];i&&(b=Rt(n.Provider,{value:i},b))}const g=Rt(Wn,i({},this.Ga),b);if(this.hf)this.hf=!1,dt(g,this.sf);else{const t=e?P(this.sf,"i-amphtml-rendered"):null;t&&(t.__AMP_RENDERED=!0),Tt(g,this.sf,t)}n||r||this.mutateElement((()=>E(this.element,"amp:dom-update",null))),this.uf&&(this.uf.resolve(),this.uf=null)}getProp(t,n){return i=this.Ya,e=t,c.call(i,e)?this.Ya[t]:n;var i,e}getApi(){const t=this.Xa;return t?Promise.resolve(t):(this.ef||(this.ef=new H),this.ef.promise)}nf(t){const n=h(),i=Object.keys(t);for(let t=0;t<i.length;t++)Ci(this,n,i[t]);this.Xa=n,this.ef&&(this.ef.resolve(n),this.ef=null)}tf(t){}triggerEvent(t,n,i){E(t,n,i)}pauseCallback(){if(this.constructor.unloadOnPause)this.mutateProps(f({"loading":"unload"})),this.Qa=!0;else{var t;const{Ja:n}=this;null==n||null===(t=n.pause)||void 0===t||t.call(n)}}Za(t){this.ff.updatePlaying(t)}};function Ci(t,n,i){Object.defineProperty(n,i,{configurable:!0,get:()=>t.Ja[i],set(n){t.Ja[i]=n}})}function Vi(t){for(let n=0;n<t.length;n++){const i=t[n];if(v(i)){if(i.__AMP_RENDERED||i.tagName.startsWith("I-")||"i-amphtml-svc"==i.getAttribute("slot"))continue;return!0}if(3==i.nodeType)return!0}return!1}function Oi(t,n){if(null==t)return{};var i,e,r={},o=Object.keys(t);for(e=0;e<o.length;e++)i=o[e],n.indexOf(i)>=0||(r[i]=t[i]);return r}Ti.Component=function(){m(!1)},Ti.staticProps=void 0,Ti.useContexts=[],Ti.loadable=!1,Ti.unloadOnPause=!1,Ti.layoutSizeDefined=!1,Ti.lightDomTag="",Ti.usesTemplate=!1,Ti.shadowCss=null,Ti.usesShadowDom=!1,Ti.detached=!1,Ti.delegatesFocus=!1,Ti.props={};var ji,zi=["ref"],$i="undefined"!=typeof Symbol&&(null===(ji=Symbol.for)||void 0===ji?void 0:ji.call(Symbol,"react.forward_ref"))||3911,Li=T.__b;function Ni(t){function n(n){const{ref:i}=n,e=Oi(n,zi);return t(e,i)}return n.$$typeof=$i,n.render=n,n.prototype.isReactComponent=!0,n.gf=!0,n}function Hi(t){return(Hi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ui(t){var n=function(t,n){if("object"!==Hi(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var e=i.call(t,"string");if("object"!==Hi(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Hi(n)?n:String(n)}T.__b=function(t){var n;null!==(n=t.type)&&void 0!==n&&n.gf&&t.ref&&(t.props.ref=t.ref,t.ref=null),null==Li||Li(t)};var Wi=[null,"paint","layout","content","size","size paint","size layout","strict"],qi={"position":"relative","width":"100%","height":"100%"};function Di(t,n,i){t.classList.add("i-amphtml-animating");let e=n();return e.onfinish=e.oncancel=()=>{e=null,i&&i(),t.classList.remove("i-amphtml-animating")},()=>{e&&e.cancel()}}function Fi(t){const n=window.innerHeight,i=Math.abs(t)/n*500;return Math.min(Math.max(i,200),500)}Ni((function(t,n){let e="class",{as:r="div",children:o,contentAs:s="div",contentClassName:l,contentProps:u,contentRef:c,contentStyle:a,layout:h=!1,paint:f=!1,size:d=!1,"style":p,wrapperClassName:v,wrapperStyle:m,[e]:y}=t;const b=(d?4:0)+(h?2:0)+(f?1:0);return Rt(r,i(i({},Oi(t,["as","children","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle",e].map(Ui))),{},{ref:n,class:`${y||""} ${v||""}`.trim()||null,style:i(i(i({},p),m),{},{contain:Wi[b]})}),Rt(s,i(i({},u),{},{ref:c,class:l,style:i(i({},d&&qi),{},{"overflow":f?"hidden":"visible"},a)}),o))})),Ni((function(t,n){let e="class",{as:r="div",children:o,"style":s,wrapperClassName:l,wrapperStyle:u,[e]:c}=t;return Rt(r,i(i({},Oi(t,["as","children","style","wrapperClassName","wrapperStyle",e].map(Ui))),{},{ref:n,class:`${c||""} ${l||""}`.trim()||null,style:i(i({},s),u)}),o)}));var Yi=["animate","as","children","expandSingleSection","id"],Bi=["animate","as","children","expanded","id","onExpandStateChange"],Zi=Ct({}),Gi=Ct({}),Qi={},Xi={},Ji=Zn(),Ki=()=>String(Math.floor(1e5*Math.random())),te=Ni((function(t,n){let{animate:e=!1,as:r="section",children:o,expandSingleSection:s=!1,id:l}=t,u=Oi(t,Yi);const[c,a]=Vt(Qi),h=Ot(Xi),[f]=Vt(Ki),p=l||`a${f}`;jt((()=>{s&&a((t=>{const n={};let i=0;for(const e in t)n[e]=t[e]&&0==i++;return n}))}),[s]);const v=Nt(((t,n,{current:e})=>(a((i=>ne(t,n,i,s))),h.current=i(i({},h.current),{},{[t]:e}),()=>{a((n=>d(n,t))),h.current=d(h.current,t)})),[s]),m=Nt(((t,n)=>{a((i=>{const e=null!=n?n:!i[t],r=ne(t,e,i,s);return I().then((()=>{for(const t in i){const n=h.current[t];n&&i[t]!=r[t]&&n(r[t])}})),r}))}),[s]),y=Nt(((t,n)=>{var i;return null!==(i=c[t])&&void 0!==i?i:n}),[c]),b=Nt((t=>{if(t)t in c&&m(t);else if(!s)for(const t in c)m(t)}),[c,m,s]),g=Nt((t=>{if(t)y(t,!0)||m(t);else if(!s)for(const t in c)y(t,!0)||m(t)}),[c,m,y,s]),_=Nt((t=>{if(t)y(t,!1)&&m(t);else for(const t in c)y(t,!1)&&m(t)}),[c,m,y]);Ht(n,(()=>({toggle:b,expand:g,collapse:_})),[b,_,g]);const A=Lt((()=>({registerSection:v,toggleExpanded:m,isExpanded:y,animate:e,prefix:p})),[v,m,y,e,p]);return Rt(r,i({id:l},u),Rt(Zi.Provider,{value:A},o))}));function ne(t,n,e,r){let o;if(r&&n){o={[t]:n};for(const n in e)n!=t&&(o[n]=!1)}else o=i(i({},e),{},{[t]:n});return o}function ie(t){let{animate:n=!1,as:e="section",children:r,expanded:o=!1,id:s,onExpandStateChange:l}=t,u=Oi(t,Bi);const[c]=Vt(Ji),a=s||c,[h]=Vt(Ki),[f,d]=Vt(o),[p,v]=Vt(null),[m,y]=Vt(null),{animate:b,isExpanded:g,prefix:_,registerSection:A,toggleExpanded:w}=$t(Zi),P=g?g(a,o):f,k=null!=b?b:n,S=p||`${_||"a"}-content-${a}-${h}`,M=m||`${_||"a"}-header-${a}-${h}`,x=Ot(null);x.current=l,zt((()=>{if(A)return A(a,o,x)}),[A,a,o]);const E=Nt((t=>{w?w(a,t):d((n=>{const i=null!=t?t:!n;return I().then((()=>{const t=x.current;t&&t(i)})),i}))}),[a,w]),R=Lt((()=>({animate:k,contentId:S,headerId:M,expanded:P,toggleHandler:E,setContentId:v,setHeaderId:y})),[k,S,M,P,E]);return Rt(e,i({},u),Rt(Gi.Provider,{value:R},r))}function ee(t){let n="class",e="tabIndex",{as:r="div",children:o,id:s,role:l="button",[n]:u="",[e]:c=0}=t,a=Oi(t,["as","children","id","role",n,e].map(Ui));const{contentId:h,expanded:f,headerId:d,setHeaderId:p,toggleHandler:v}=$t(Gi);return zt((()=>{p&&p(s)}),[p,s]),Rt(r,i(i({},a),{},{id:d,role:l,class:`${u} section-child-00fce3c header-00fce3c`,tabIndex:c,"aria-controls":h,onClick:()=>v(),"aria-expanded":String(f)}),o)}function re(t){let n="class",{as:e="div",children:r,id:o,role:s="region",[n]:l=""}=t,u=Oi(t,["as","children","id","role",n].map(Ui));const c=Ot(null),a=Ot(!1),{animate:h,contentId:f,expanded:d,headerId:p,setContentId:v}=$t(Gi);return jt((()=>(a.current=!0,()=>a.current=!1)),[]),zt((()=>{v&&v(o)}),[v,o]),zt((()=>{const t=a.current,n=c.current;if(h&&t&&n&&n.animate)return d?function(t){return Di(t,(()=>{const n=In(t,"height"),i=In(t,"opacity"),e=In(t,"overflowY");Rn(t,{height:0,opacity:0,overflowY:"auto"});const r=t.scrollHeight;Rn(t,{height:n,opacity:i,overflowY:e});const o=Fi(r);return t.animate([{height:0,opacity:0,overflowY:"hidden"},{height:r+"px",opacity:1,overflowY:"hidden"}],{easing:"cubic-bezier(0.47, 0, 0.745, 0.715)",duration:o})}))}(n):function(t){return Di(t,(()=>{const n=t.offsetHeight,i=Fi(n);return t.animate([{height:n+"px",opacity:1,overflowY:"hidden"},{height:"0",opacity:0,overflowY:"hidden"}],{easing:"cubic-bezier(0.39, 0.575, 0.565, 1)",duration:i})}))}(n)}),[d,h]),Rt(Wn,{renderable:d},Rt(e,i(i({},u),{},{ref:c,class:l+" section-child-00fce3c"+(d?"":" content-hidden-00fce3c"),id:f,"aria-labelledby":p,role:s}),r))}te.displayName="Accordion";var oe=class extends Ti{init(){const t=t=>n=>{var i;!function(t,n,i){const e=t.hasAttribute(n),r=void 0!==i?i:!e;r!==e&&(r?t.setAttribute(n,""):t.removeAttribute(n))}(t,"expanded",n),null===(i=t.__AMP_PR)||void 0===i||i.call(t),this.triggerEvent(t,n?"expand":"collapse")},{element:n}=this,i=new MutationObserver((()=>{this.mutateProps(se(n,i,t))}));i.observe(n,{attributeFilter:["expanded","id"],subtree:!0,childList:!0});const{"children":e}=se(n,i,t);return f({"children":e})}};function se(t,n,e){var r;const o=(s=t,l="section",_(l),"> section",(r=s.querySelectorAll(g("> section",":scope")))?Array.prototype.slice.call(r):[]).map((t=>{t.__AMP_PR||(t.__AMP_PR=()=>n.takeRecords());const r=p(t,"__AMP_H_SHIM",ue),o=p(t,"__AMP_C_SHIM",ae),s=p(t,"__AMP_EXPAND_STATE_SHIM",e),l=f({"key":t,"expanded":t.hasAttribute("expanded"),"id":t.getAttribute("id"),"onExpandStateChange":s}),u=f({"as":r,"id":t.firstElementChild.getAttribute("id"),"role":t.firstElementChild.getAttribute("role")||void 0}),c=f({"as":o,"id":t.lastElementChild.getAttri