(()=>{var e,t,a,n,o={5336:(e,t,a)=>{"use strict";a.d(t,{Qv:()=>u,ZR:()=>l});const n=/(was)? ?(not)? ?@([a-z]+) ?(.*)?/,o=/(?:was )?(?:not )?@[a-z]+ ?.*?(?:(?= and (?:was )?(?:not )?@[a-z])|$)/g,r=e=>void 0===e||"true"===e||"false"!==e&&e,c=e=>{const[,t,a,o,c]=e.match(n);return[o,r(c),"not"===a,"was"===t]},d=(e,t)=>{const a={matches:!1,active:!1,onchange:function(){},start:()=>{a.active||(a.active=!0,n.forEach((e=>e.forEach((e=>e.addListener(r))))),r())},stop:()=>{a.active=!1,n.forEach((e=>e.forEach((e=>{e.removeListener&&e.removeListener(r)}))))},destroy:()=>{a.stop(),n.length=0}},n=e.split(" or ").map((e=>(e=>e.match(o).map(c))(e).map((e=>((e,t,a)=>(e.invert=t,e.retain=a,e.matched=!1,e))(((e,t,a)=>{const n=b("monitor").find((e=>e.name===t));if(!n)throw new Error(`Conditioner: Cannot find monitor with name "@${t}". Only the "@media" monitor is always available. Custom monitors can be added with the \`addPlugin\` method using the \`monitors\` key. The name of the custom monitor should not include the "@" symbol.`);return n.create(a,e)})(t,...e),...e.splice(2)))))),r=()=>{const e=n.reduce(((e,t)=>!!e||t.reduce(((e,t)=>{if(!e)return!1;const a=t.invert?!t.matches:t.matches;return a&&(t.matched=!0),!(!t.retain||!t.matched)||a}),!0)),!1);a.matches=e,a.onchange(e)};return a},i=(e,t)=>{const a=d(e,t.element);return a.onchange=e=>e?t.mount():t.unmount(),a.start(),a},f=e=>{const t=((e,t)=>{const a=h("moduleGetName",e),n=p("moduleSetName",a),o={destruct:null,mounting:!1},r={alias:a,name:n,element:e,mounted:!1,unmount:()=>{o.destruct&&r.mounted&&(m("moduleWillUnmount",r),o.destruct(),r.mounted=!1,m("moduleDidUnmount",r),r.onunmount.apply(e))},mount:()=>{if(!r.mounted&&!o.mounting)return o.mounting=!0,m("moduleWillMount",r),h("moduleImport",n).then((t=>{o.destruct=h("moduleGetDestructor",h("moduleGetConstructor",t)(...h("moduleSetConstructorArguments",n,e))),o.mounting=!1,r.mounted=!0,m("moduleDidMount",r),r.onmount.apply(e,[r])})).catch((t=>{throw o.mounting=!1,m("moduleDidCatch",t,r),r.onmounterror.apply(e,[t,r]),new Error(`Conditioner: ${t}`)})),r},destroy:function(){m("moduleWillDestroy",r),r.unmount(),m("moduleDidDestroy",r),r.ondestroy.apply(e),t()},onmounterror:function(){},onmount:function(){},onunmount:function(){},ondestroy:function(){}};return r})(e,(()=>n&&n.destroy())),a=h("moduleGetContext",e),n=a&&i(a,t);return a?t:t.mount()},u=e=>[...h("moduleSelector",e)].map(f),s=[],l=e=>s.push(e),b=e=>s.filter((t=>{return a=Object.keys(t),n=e,a.indexOf(n)>-1;var a,n})).map((t=>t[e])),m=(e,...t)=>b(e).forEach((e=>e(...t))),p=(e,...t)=>b(e).reduce(((e,t)=>[t(...e)]),t).shift(),h=(e,...t)=>b(e).pop()(...t);l({moduleSelector:e=>e.querySelectorAll("[data-module]"),moduleGetContext:e=>e.dataset.context,moduleImport:e=>new Promise(((t,a)=>{if(self[e])return t(self[e]);a(`Cannot find module with name "${e}". By default Conditioner will import modules from the global scope, make sure a function named "${e}" is defined on the window object. The scope of a function defined with \`let\` or \`const\` is limited to the