lookbook 0.8.0.beta.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,2 +1,2 @@
1
- (()=>{function e(e){return e&&e.__esModule?e.default:e}class t{constructor(e){this.children=[],this.parent=e}delete(e){const t=this.children.indexOf(e);return-1!==t&&(this.children=this.children.slice(0,t).concat(this.children.slice(t+1)),0===this.children.length&&this.parent.delete(this),!0)}add(e){return this.children.push(e),this}}class n{constructor(e){this.parent=null,this.children={},this.parent=e||null}get(e){return this.children[e]}insert(e){let i=this;for(let r=0;r<e.length;r+=1){const o=e[r];let s=i.get(o);if(r===e.length-1)return s instanceof n&&(i.delete(s),s=null),s||(s=new t(i),i.children[o]=s),s;s instanceof t&&(s=null),s||(s=new n(i),i.children[o]=s),i=s}return i}delete(e){for(const t in this.children){if(this.children[t]===e){const e=delete this.children[t];return 0===Object.keys(this.children).length&&this.parent&&this.parent.delete(this),e}}return!1}}function i(e){if(!(e instanceof HTMLElement))return!1;const t=e.nodeName.toLowerCase(),n=(e.getAttribute("type")||"").toLowerCase();return"select"===t||"textarea"===t||"input"===t&&"submit"!==n&&"reset"!==n&&"checkbox"!==n&&"radio"!==n||e.isContentEditable}function r(e){const t=e.code.startsWith("Key")&&e.shiftKey&&e.key.toUpperCase()===e.key;return`${e.ctrlKey?"Control+":""}${e.altKey?"Alt+":""}${e.metaKey?"Meta+":""}${e.shiftKey&&!t?"Shift+":""}${e.key}`}const o=new n,s=new WeakMap;let a=o,c=null,u=[];function l(){u=[],c=null,a=o}function f(e){if(e.defaultPrevented)return;if(!(e.target instanceof Node))return;if(i(e.target)){const t=e.target;if(!t.id)return;if(!t.ownerDocument.querySelector(`[data-hotkey-scope="${t.id}"]`))return}null!=c&&window.clearTimeout(c),c=window.setTimeout(l,1500);const n=a.get(r(e));if(n){if(u.push(r(e)),a=n,n instanceof t){const t=e.target;let r,o=!1;const s=i(t);for(let e=n.children.length-1;e>=0;e-=1){r=n.children[e];const i=r.getAttribute("data-hotkey-scope");if(!s&&!i||s&&t.id===i){o=!0;break}}r&&o&&(!function(e,t){const n=new CustomEvent("hotkey-fire",{cancelable:!0,detail:{path:t}});!e.dispatchEvent(n)||(i(e)?e.focus():e.click())}(r,u),e.preventDefault()),l()}}else l()}function d(e,t){0===Object.keys(o.children).length&&document.addEventListener("keydown",f);const n=function(e){return e.split(",").map((e=>e.split(" ")))}(t||e.getAttribute("data-hotkey")||""),i=n.map((t=>o.insert(t).add(e)));s.set(e,i)}var p,h,m,g,v=!1,y=!1,b=[];function w(e){!function(e){b.includes(e)||b.push(e);y||v||(v=!0,queueMicrotask(_))}(e)}function x(e){let t=b.indexOf(e);-1!==t&&b.splice(t,1)}function _(){v=!1,y=!0;for(let e=0;e<b.length;e++)b[e]();b.length=0,y=!1}var O=!0;function E(e){h=e}var k=[],S=[],A=[];function T(e,t){"function"==typeof t?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,S.push(t))}function C(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach((([n,i])=>{(void 0===t||t.includes(n))&&(i.forEach((e=>e())),delete e._x_attributeCleanups[n])}))}var M=new MutationObserver(I),j=!1;function L(){M.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),j=!0}function P(){(D=D.concat(M.takeRecords())).length&&!R&&(R=!0,queueMicrotask((()=>{I(D),D.length=0,R=!1}))),M.disconnect(),j=!1}var D=[],R=!1;function z(e){if(!j)return e();P();let t=e();return L(),t}var W=!1,$=[];function I(e){if(W)return void($=$.concat(e));let t=[],n=[],i=new Map,r=new Map;for(let o=0;o<e.length;o++)if(!e[o].target._x_ignoreMutationObserver&&("childList"===e[o].type&&(e[o].addedNodes.forEach((e=>1===e.nodeType&&t.push(e))),e[o].removedNodes.forEach((e=>1===e.nodeType&&n.push(e)))),"attributes"===e[o].type)){let t=e[o].target,n=e[o].attributeName,s=e[o].oldValue,a=()=>{i.has(t)||i.set(t,[]),i.get(t).push({name:n,value:t.getAttribute(n)})},c=()=>{r.has(t)||r.set(t,[]),r.get(t).push(n)};t.hasAttribute(n)&&null===s?a():t.hasAttribute(n)?(c(),a()):c()}r.forEach(((e,t)=>{C(t,e)})),i.forEach(((e,t)=>{k.forEach((n=>n(t,e)))}));for(let e of n)if(!t.includes(e)&&(S.forEach((t=>t(e))),e._x_cleanups))for(;e._x_cleanups.length;)e._x_cleanups.pop()();t.forEach((e=>{e._x_ignoreSelf=!0,e._x_ignore=!0}));for(let e of t)n.includes(e)||e.isConnected&&(delete e._x_ignoreSelf,delete e._x_ignore,A.forEach((t=>t(e))),e._x_ignore=!0,e._x_ignoreSelf=!0);t.forEach((e=>{delete e._x_ignoreSelf,delete e._x_ignore})),t=null,n=null,i=null,r=null}function N(e){return B(F(e))}function H(e,t,n){return e._x_dataStack=[t,...F(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter((e=>e!==t))}}function V(e,t){let n=e._x_dataStack[0];Object.entries(t).forEach((([e,t])=>{n[e]=t}))}function F(e){return e._x_dataStack?e._x_dataStack:"function"==typeof ShadowRoot&&e instanceof ShadowRoot?F(e.host):e.parentNode?F(e.parentNode):[]}function B(e){let t=new Proxy({},{ownKeys:()=>Array.from(new Set(e.flatMap((e=>Object.keys(e))))),has:(t,n)=>e.some((e=>e.hasOwnProperty(n))),get:(n,i)=>(e.find((e=>{if(e.hasOwnProperty(i)){let n=Object.getOwnPropertyDescriptor(e,i);if(n.get&&n.get._x_alreadyBound||n.set&&n.set._x_alreadyBound)return!0;if((n.get||n.set)&&n.enumerable){let r=n.get,o=n.set,s=n;r=r&&r.bind(t),o=o&&o.bind(t),r&&(r._x_alreadyBound=!0),o&&(o._x_alreadyBound=!0),Object.defineProperty(e,i,{...s,get:r,set:o})}return!0}return!1}))||{})[i],set:(t,n,i)=>{let r=e.find((e=>e.hasOwnProperty(n)));return r?r[n]=i:e[e.length-1][n]=i,!0}});return t}function q(e){let t=(n,i="")=>{Object.entries(Object.getOwnPropertyDescriptors(n)).forEach((([r,{value:o,enumerable:s}])=>{if(!1===s||void 0===o)return;let a=""===i?r:`${i}.${r}`;var c;"object"==typeof o&&null!==o&&o._x_interceptor?n[r]=o.initialize(e,a,r):"object"!=typeof(c=o)||Array.isArray(c)||null===c||o===n||o instanceof Element||t(o,a)}))};return t(e)}function G(e,t=(()=>{})){let n={initialValue:void 0,_x_interceptor:!0,initialize(t,n,i){return e(this.initialValue,(()=>function(e,t){return t.split(".").reduce(((e,t)=>e[t]),e)}(t,n)),(e=>U(t,n,e)),n,i)}};return t(n),e=>{if("object"==typeof e&&null!==e&&e._x_interceptor){let t=n.initialize.bind(n);n.initialize=(i,r,o)=>{let s=e.initialize(i,r,o);return n.initialValue=s,t(i,r,o)}}else n.initialValue=e;return n}}function U(e,t,n){if("string"==typeof t&&(t=t.split(".")),1!==t.length){if(0===t.length)throw error;return e[t[0]]||(e[t[0]]={}),U(e[t[0]],t.slice(1),n)}e[t[0]]=n}var X={};function Y(e,t){X[e]=t}function K(e,t){return Object.entries(X).forEach((([n,i])=>{Object.defineProperty(e,`$${n}`,{get(){let[e,n]=pe(t);return e={interceptor:G,...e},T(t,n),i(t,e)},enumerable:!1})})),e}function J(e,t,n,...i){try{return n(...i)}catch(n){Z(n,e,t)}}function Z(e,t,n){Object.assign(e,{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message}\n\n${n?'Expression: "'+n+'"\n\n':""}`,t),setTimeout((()=>{throw e}),0)}function Q(e,t,n={}){let i;return ee(e,t)((e=>i=e),n),i}function ee(...e){return te(...e)}var te=ne;function ne(e,t){let n={};K(n,e);let i=[n,...F(e)];if("function"==typeof t)return function(e,t){return(n=(()=>{}),{scope:i={},params:r=[]}={})=>{re(n,t.apply(B([i,...e]),r))}}(i,t);let r=function(e,t,n){let i=function(e,t){if(ie[e])return ie[e];let n=Object.getPrototypeOf((async function(){})).constructor,i=/^[\n\s]*if.*\(.*\)/.test(e)||/^(let|const)\s/.test(e)?`(() => { ${e} })()`:e;let r=(()=>{try{return new n(["__self","scope"],`with (scope) { __self.result = ${i} }; __self.finished = true; return __self.result;`)}catch(n){return Z(n,t,e),Promise.resolve()}})();return ie[e]=r,r}(t,n);return(r=(()=>{}),{scope:o={},params:s=[]}={})=>{i.result=void 0,i.finished=!1;let a=B([o,...e]);if("function"==typeof i){let e=i(i,a).catch((e=>Z(e,n,t)));i.finished?(re(r,i.result,a,s,n),i.result=void 0):e.then((e=>{re(r,e,a,s,n)})).catch((e=>Z(e,n,t))).finally((()=>i.result=void 0))}}}(i,t,e);return J.bind(null,e,t,r)}var ie={};function re(e,t,n,i,r){if("function"==typeof t){let o=t.apply(n,i);o instanceof Promise?o.then((t=>re(e,t,n,i))).catch((e=>Z(e,r,t))):e(o)}else e(t)}var oe="x-";function se(e=""){return oe+e}var ae={};function ce(e,t){ae[e]=t}function ue(e,t,n){let i={},r=Array.from(t).map(me(((e,t)=>i[e]=t))).filter(ye).map(function(e,t){return({name:n,value:i})=>{let r=n.match(be()),o=n.match(/:([a-zA-Z0-9\-:]+)/),s=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=t||e[n]||n;return{type:r?r[1]:null,value:o?o[1]:null,modifiers:s.map((e=>e.replace(".",""))),expression:i,original:a}}}(i,n)).sort(_e);return r.map((t=>function(e,t){let n=()=>{},i=ae[t.type]||n,[r,o]=pe(e);!function(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}(e,t.original,o);let s=()=>{e._x_ignore||e._x_ignoreSelf||(i.inline&&i.inline(e,t,r),i=i.bind(i,e,t,r),le?fe.get(de).push(i):i())};return s.runCleanups=o,s}(e,t)))}var le=!1,fe=new Map,de=Symbol();function pe(e){let t=[],[n,i]=function(e){let t=()=>{};return[n=>{let i=h(n);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach((e=>e()))}),e._x_effects.add(i),t=()=>{void 0!==i&&(e._x_effects.delete(i),m(i))},i},()=>{t()}]}(e);t.push(i);return[{Alpine:rt,effect:n,cleanup:e=>t.push(e),evaluateLater:ee.bind(ee,e),evaluate:Q.bind(Q,e)},()=>t.forEach((e=>e()))]}var he=(e,t)=>({name:n,value:i})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:i});function me(e=(()=>{})){return({name:t,value:n})=>{let{name:i,value:r}=ge.reduce(((e,t)=>t(e)),{name:t,value:n});return i!==t&&e(i,t),{name:i,value:r}}}var ge=[];function ve(e){ge.push(e)}function ye({name:e}){return be().test(e)}var be=()=>new RegExp(`^${oe}([^:^.]+)\\b`);var we="DEFAULT",xe=["ignore","ref","data","id","bind","init","for","model","modelable","transition","show","if",we,"teleport","element"];function _e(e,t){let n=-1===xe.indexOf(e.type)?we:e.type,i=-1===xe.indexOf(t.type)?we:t.type;return xe.indexOf(n)-xe.indexOf(i)}function Oe(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}var Ee=[],ke=!1;function Se(e){Ee.push(e),queueMicrotask((()=>{ke||setTimeout((()=>{Ae()}))}))}function Ae(){for(ke=!1;Ee.length;)Ee.shift()()}function Te(e,t){if("function"==typeof ShadowRoot&&e instanceof ShadowRoot)return void Array.from(e.children).forEach((e=>Te(e,t)));let n=!1;if(t(e,(()=>n=!0)),n)return;let i=e.firstElementChild;for(;i;)Te(i,t),i=i.nextElementSibling}function Ce(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var Me=[],je=[];function Le(){return Me.map((e=>e()))}function Pe(){return Me.concat(je).map((e=>e()))}function De(e){Me.push(e)}function Re(e){je.push(e)}function ze(e,t=!1){return We(e,(e=>{if((t?Pe():Le()).some((t=>e.matches(t))))return!0}))}function We(e,t){if(e){if(t(e))return e;if(e._x_teleportBack&&(e=e._x_teleportBack),e.parentElement)return We(e.parentElement,t)}}function $e(e,t=Te){!function(e){le=!0;let t=Symbol();de=t,fe.set(t,[]);let n=()=>{for(;fe.get(t).length;)fe.get(t).shift()();fe.delete(t)};e(n),le=!1,n()}((()=>{t(e,((e,t)=>{ue(e,e.attributes).forEach((e=>e())),e._x_ignore&&t()}))}))}function Ie(e,t){return Array.isArray(t)?Ne(e,t.join(" ")):"object"==typeof t&&null!==t?function(e,t){let n=e=>e.split(" ").filter(Boolean),i=Object.entries(t).flatMap((([e,t])=>!!t&&n(e))).filter(Boolean),r=Object.entries(t).flatMap((([e,t])=>!t&&n(e))).filter(Boolean),o=[],s=[];return r.forEach((t=>{e.classList.contains(t)&&(e.classList.remove(t),s.push(t))})),i.forEach((t=>{e.classList.contains(t)||(e.classList.add(t),o.push(t))})),()=>{s.forEach((t=>e.classList.add(t))),o.forEach((t=>e.classList.remove(t)))}}(e,t):"function"==typeof t?Ie(e,t()):Ne(e,t)}function Ne(e,t){return t=!0===t?t="":t||"",n=t.split(" ").filter((t=>!e.classList.contains(t))).filter(Boolean),e.classList.add(...n),()=>{e.classList.remove(...n)};var n}function He(e,t){return"object"==typeof t&&null!==t?function(e,t){let n={};return Object.entries(t).forEach((([t,i])=>{n[t]=e.style[t],t.startsWith("--")||(t=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()),e.style.setProperty(t,i)})),setTimeout((()=>{0===e.style.length&&e.removeAttribute("style")})),()=>{He(e,n)}}(e,t):function(e,t){let n=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",n||"")}}(e,t)}function Ve(e,t=(()=>{})){let n=!1;return function(){n?t.apply(this,arguments):(n=!0,e.apply(this,arguments))}}function Fe(e,t,n={}){e._x_transition||(e._x_transition={enter:{during:n,start:n,end:n},leave:{during:n,start:n,end:n},in(n=(()=>{}),i=(()=>{})){qe(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end},n,i)},out(n=(()=>{}),i=(()=>{})){qe(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end},n,i)}})}function Be(e){let t=e.parentNode;if(t)return t._x_hidePromise?t:Be(t)}function qe(e,t,{during:n,start:i,end:r}={},o=(()=>{}),s=(()=>{})){if(e._x_transitioning&&e._x_transitioning.cancel(),0===Object.keys(n).length&&0===Object.keys(i).length&&0===Object.keys(r).length)return o(),void s();let a,c,u;!function(e,t){let n,i,r,o=Ve((()=>{z((()=>{n=!0,i||t.before(),r||(t.end(),Ae()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning}))}));e._x_transitioning={beforeCancels:[],beforeCancel(e){this.beforeCancels.push(e)},cancel:Ve((function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();o()})),finish:o},z((()=>{t.start(),t.during()})),ke=!0,requestAnimationFrame((()=>{if(n)return;let o=1e3*Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s","")),s=1e3*Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""));0===o&&(o=1e3*Number(getComputedStyle(e).animationDuration.replace("s",""))),z((()=>{t.before()})),i=!0,requestAnimationFrame((()=>{n||(z((()=>{t.end()})),Ae(),setTimeout(e._x_transitioning.finish,o+s),r=!0)}))}))}(e,{start(){a=t(e,i)},during(){c=t(e,n)},before:o,end(){a(),u=t(e,r)},after:s,cleanup(){c(),u()}})}function Ge(e,t,n){if(-1===e.indexOf(t))return n;const i=e[e.indexOf(t)+1];if(!i)return n;if("scale"===t&&isNaN(i))return n;if("duration"===t){let e=i.match(/([0-9]+)ms/);if(e)return e[1]}return"origin"===t&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[i,e[e.indexOf(t)+2]].join(" "):i}ce("transition",((e,{value:t,modifiers:n,expression:i},{evaluate:r})=>{"function"==typeof i&&(i=r(i)),i?function(e,t,n){Fe(e,Ie,""),{enter:t=>{e._x_transition.enter.during=t},"enter-start":t=>{e._x_transition.enter.start=t},"enter-end":t=>{e._x_transition.enter.end=t},leave:t=>{e._x_transition.leave.during=t},"leave-start":t=>{e._x_transition.leave.start=t},"leave-end":t=>{e._x_transition.leave.end=t}}[n](t)}(e,i,t):function(e,t,n){Fe(e,He);let i=!t.includes("in")&&!t.includes("out")&&!n,r=i||t.includes("in")||["enter"].includes(n),o=i||t.includes("out")||["leave"].includes(n);t.includes("in")&&!i&&(t=t.filter(((e,n)=>n<t.indexOf("out"))));t.includes("out")&&!i&&(t=t.filter(((e,n)=>n>t.indexOf("out"))));let s=!t.includes("opacity")&&!t.includes("scale"),a=s||t.includes("opacity"),c=s||t.includes("scale"),u=a?0:1,l=c?Ge(t,"scale",95)/100:1,f=Ge(t,"delay",0),d=Ge(t,"origin","center"),p="opacity, transform",h=Ge(t,"duration",150)/1e3,m=Ge(t,"duration",75)/1e3,g="cubic-bezier(0.4, 0.0, 0.2, 1)";r&&(e._x_transition.enter.during={transformOrigin:d,transitionDelay:f,transitionProperty:p,transitionDuration:`${h}s`,transitionTimingFunction:g},e._x_transition.enter.start={opacity:u,transform:`scale(${l})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"});o&&(e._x_transition.leave.during={transformOrigin:d,transitionDelay:f,transitionProperty:p,transitionDuration:`${m}s`,transitionTimingFunction:g},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:u,transform:`scale(${l})`})}(e,n,t)})),window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,n,i){let r=()=>{"visible"===document.visibilityState?requestAnimationFrame(n):setTimeout(n)};t?e._x_transition&&(e._x_transition.enter||e._x_transition.leave)?e._x_transition.enter&&(Object.entries(e._x_transition.enter.during).length||Object.entries(e._x_transition.enter.start).length||Object.entries(e._x_transition.enter.end).length)?e._x_transition.in(n):r():e._x_transition?e._x_transition.in(n):r():(e._x_hidePromise=e._x_transition?new Promise(((t,n)=>{e._x_transition.out((()=>{}),(()=>t(i))),e._x_transitioning.beforeCancel((()=>n({isFromCancelledTransition:!0})))})):Promise.resolve(i),queueMicrotask((()=>{let t=Be(e);t?(t._x_hideChildren||(t._x_hideChildren=[]),t._x_hideChildren.push(e)):queueMicrotask((()=>{let t=e=>{let n=Promise.all([e._x_hidePromise,...(e._x_hideChildren||[]).map(t)]).then((([e])=>e()));return delete e._x_hidePromise,delete e._x_hideChildren,n};t(e).catch((e=>{if(!e.isFromCancelledTransition)throw e}))}))})))};var Ue=!1;function Xe(e,t=(()=>{})){return(...n)=>Ue?t(...n):e(...n)}function Ye(e,t,n,i=[]){switch(e._x_bindings||(e._x_bindings=p({})),e._x_bindings[t]=n,t=i.includes("camel")?t.toLowerCase().replace(/-(\w)/g,((e,t)=>t.toUpperCase())):t){case"value":!function(e,t){if("radio"===e.type)void 0===e.attributes.value&&(e.value=t),window.fromModel&&(e.checked=Ke(e.value,t));else if("checkbox"===e.type)Number.isInteger(t)?e.value=t:Number.isInteger(t)||Array.isArray(t)||"boolean"==typeof t||[null,void 0].includes(t)?Array.isArray(t)?e.checked=t.some((t=>Ke(t,e.value))):e.checked=!!t:e.value=String(t);else if("SELECT"===e.tagName)!function(e,t){const n=[].concat(t).map((e=>e+""));Array.from(e.options).forEach((e=>{e.selected=n.includes(e.value)}))}(e,t);else{if(e.value===t)return;e.value=t}}(e,n);break;case"style":!function(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles();e._x_undoAddedStyles=He(e,t)}(e,n);break;case"class":!function(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses();e._x_undoAddedClasses=Ie(e,t)}(e,n);break;default:!function(e,t,n){[null,void 0,!1].includes(n)&&function(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}(t)?e.removeAttribute(t):(Je(t)&&(n=t),function(e,t,n){e.getAttribute(t)!=n&&e.setAttribute(t,n)}(e,t,n))}(e,t,n)}}function Ke(e,t){return e==t}function Je(e){return["disabled","checked","required","readonly","hidden","open","selected","autofocus","itemscope","multiple","novalidate","allowfullscreen","allowpaymentrequest","formnovalidate","autoplay","controls","loop","muted","playsinline","default","ismap","reversed","async","defer","nomodule"].includes(e)}function Ze(e,t){var n;return function(){var i=this,r=arguments,o=function(){n=null,e.apply(i,r)};clearTimeout(n),n=setTimeout(o,t)}}function Qe(e,t){let n;return function(){let i=this,r=arguments;n||(e.apply(i,r),n=!0,setTimeout((()=>n=!1),t))}}var et={},tt=!1;var nt={};var it={};var rt={get reactive(){return p},get release(){return m},get effect(){return h},get raw(){return g},version:"3.9.5",flushAndStopDeferringMutations:function(){W=!1,I($),$=[]},disableEffectScheduling:function(e){O=!1,e(),O=!0},setReactivityEngine:function(e){p=e.reactive,m=e.release,h=t=>e.effect(t,{scheduler:e=>{O?w(e):e()}}),g=e.raw},closestDataStack:F,skipDuringClone:Xe,addRootSelector:De,addInitSelector:Re,addScopeToNode:H,deferMutations:function(){W=!0},mapAttributes:ve,evaluateLater:ee,setEvaluator:function(e){te=e},mergeProxies:B,findClosest:We,closestRoot:ze,interceptor:G,transition:qe,setStyles:He,mutateDom:z,directive:ce,throttle:Qe,debounce:Ze,evaluate:Q,initTree:$e,nextTick:Se,prefixed:se,prefix:function(e){oe=e},plugin:function(e){e(rt)},magic:Y,store:function(e,t){if(tt||(et=p(et),tt=!0),void 0===t)return et[e];et[e]=t,"object"==typeof t&&null!==t&&t.hasOwnProperty("init")&&"function"==typeof t.init&&et[e].init(),q(et[e])},start:function(){var e;document.body||Ce("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),Oe(document,"alpine:init"),Oe(document,"alpine:initializing"),L(),e=e=>$e(e,Te),A.push(e),T((e=>{Te(e,(e=>C(e)))})),function(e){k.push(e)}(((e,t)=>{ue(e,t).forEach((e=>e()))})),Array.from(document.querySelectorAll(Pe())).filter((e=>!ze(e.parentElement,!0))).forEach((e=>{$e(e)})),Oe(document,"alpine:initialized")},clone:function(e,t){t._x_dataStack||(t._x_dataStack=e._x_dataStack),Ue=!0,function(e){let t=h;E(((e,n)=>{let i=t(e);return m(i),()=>{}})),e(),E(t)}((()=>{!function(e){let t=!1;$e(e,((e,n)=>{Te(e,((e,i)=>{if(t&&function(e){return Le().some((t=>e.matches(t)))}(e))return i();t=!0,n(e,i)}))}))}(t)})),Ue=!1},bound:function(e,t,n){if(e._x_bindings&&void 0!==e._x_bindings[t])return e._x_bindings[t];let i=e.getAttribute(t);return null===i?"function"==typeof n?n():n:Je(t)?!![t,"true"].includes(i):""===i||i},$data:N,data:function(e,t){it[e]=t},bind:function(e,t){nt[e]="function"!=typeof t?()=>t:t}};function ot(e,t){const n=Object.create(null),i=e.split(",");for(let e=0;e<i.length;e++)n[i[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}var st,at=Object.freeze({}),ct=(Object.freeze([]),Object.assign),ut=Object.prototype.hasOwnProperty,lt=(e,t)=>ut.call(e,t),ft=Array.isArray,dt=e=>"[object Map]"===gt(e),pt=e=>"symbol"==typeof e,ht=e=>null!==e&&"object"==typeof e,mt=Object.prototype.toString,gt=e=>mt.call(e),vt=e=>gt(e).slice(8,-1),yt=e=>"string"==typeof e&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,bt=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},wt=/-(\w)/g,xt=(bt((e=>e.replace(wt,((e,t)=>t?t.toUpperCase():"")))),/\B([A-Z])/g),_t=(bt((e=>e.replace(xt,"-$1").toLowerCase())),bt((e=>e.charAt(0).toUpperCase()+e.slice(1)))),Ot=(bt((e=>e?`on${_t(e)}`:"")),(e,t)=>e!==t&&(e==e||t==t)),Et=new WeakMap,kt=[],St=Symbol("iterate"),At=Symbol("Map key iterate");var Tt=0;function Ct(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}var Mt=!0,jt=[];function Lt(){const e=jt.pop();Mt=void 0===e||e}function Pt(e,t,n){if(!Mt||void 0===st)return;let i=Et.get(e);i||Et.set(e,i=new Map);let r=i.get(n);r||i.set(n,r=new Set),r.has(st)||(r.add(st),st.deps.push(r),st.options.onTrack&&st.options.onTrack({effect:st,target:e,type:t,key:n}))}function Dt(e,t,n,i,r,o){const s=Et.get(e);if(!s)return;const a=new Set,c=e=>{e&&e.forEach((e=>{(e!==st||e.allowRecurse)&&a.add(e)}))};if("clear"===t)s.forEach(c);else if("length"===n&&ft(e))s.forEach(((e,t)=>{("length"===t||t>=i)&&c(e)}));else switch(void 0!==n&&c(s.get(n)),t){case"add":ft(e)?yt(n)&&c(s.get("length")):(c(s.get(St)),dt(e)&&c(s.get(At)));break;case"delete":ft(e)||(c(s.get(St)),dt(e)&&c(s.get(At)));break;case"set":dt(e)&&c(s.get(St))}a.forEach((s=>{s.options.onTrigger&&s.options.onTrigger({effect:s,target:e,key:n,type:t,newValue:i,oldValue:r,oldTarget:o}),s.options.scheduler?s.options.scheduler(s):s()}))}var Rt=ot("__proto__,__v_isRef,__isVue"),zt=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(pt)),Wt=Vt(),$t=Vt(!1,!0),It=Vt(!0),Nt=Vt(!0,!0),Ht={};function Vt(e=!1,t=!1){return function(n,i,r){if("__v_isReactive"===i)return!e;if("__v_isReadonly"===i)return e;if("__v_raw"===i&&r===(e?t?yn:vn:t?gn:mn).get(n))return n;const o=ft(n);if(!e&&o&&lt(Ht,i))return Reflect.get(Ht,i,r);const s=Reflect.get(n,i,r);if(pt(i)?zt.has(i):Rt(i))return s;if(e||Pt(n,"get",i),t)return s;if(On(s)){return!o||!yt(i)?s.value:s}return ht(s)?e?wn(s):bn(s):s}}function Ft(e=!1){return function(t,n,i,r){let o=t[n];if(!e&&(i=_n(i),o=_n(o),!ft(t)&&On(o)&&!On(i)))return o.value=i,!0;const s=ft(t)&&yt(n)?Number(n)<t.length:lt(t,n),a=Reflect.set(t,n,i,r);return t===_n(r)&&(s?Ot(i,o)&&Dt(t,"set",n,i,o):Dt(t,"add",n,i)),a}}["includes","indexOf","lastIndexOf"].forEach((e=>{const t=Array.prototype[e];Ht[e]=function(...e){const n=_n(this);for(let e=0,t=this.length;e<t;e++)Pt(n,"get",e+"");const i=t.apply(n,e);return-1===i||!1===i?t.apply(n,e.map(_n)):i}})),["push","pop","shift","unshift","splice"].forEach((e=>{const t=Array.prototype[e];Ht[e]=function(...e){jt.push(Mt),Mt=!1;const n=t.apply(this,e);return Lt(),n}}));var Bt={get:Wt,set:Ft(),deleteProperty:function(e,t){const n=lt(e,t),i=e[t],r=Reflect.deleteProperty(e,t);return r&&n&&Dt(e,"delete",t,void 0,i),r},has:function(e,t){const n=Reflect.has(e,t);return pt(t)&&zt.has(t)||Pt(e,"has",t),n},ownKeys:function(e){return Pt(e,"iterate",ft(e)?"length":St),Reflect.ownKeys(e)}},qt={get:It,set:(e,t)=>(console.warn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0),deleteProperty:(e,t)=>(console.warn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0)},Gt=(ct({},Bt,{get:$t,set:Ft(!0)}),ct({},qt,{get:Nt}),e=>ht(e)?bn(e):e),Ut=e=>ht(e)?wn(e):e,Xt=e=>e,Yt=e=>Reflect.getPrototypeOf(e);function Kt(e,t,n=!1,i=!1){const r=_n(e=e.__v_raw),o=_n(t);t!==o&&!n&&Pt(r,"get",t),!n&&Pt(r,"get",o);const{has:s}=Yt(r),a=i?Xt:n?Ut:Gt;return s.call(r,t)?a(e.get(t)):s.call(r,o)?a(e.get(o)):void(e!==r&&e.get(t))}function Jt(e,t=!1){const n=this.__v_raw,i=_n(n),r=_n(e);return e!==r&&!t&&Pt(i,"has",e),!t&&Pt(i,"has",r),e===r?n.has(e):n.has(e)||n.has(r)}function Zt(e,t=!1){return e=e.__v_raw,!t&&Pt(_n(e),"iterate",St),Reflect.get(e,"size",e)}function Qt(e){e=_n(e);const t=_n(this);return Yt(t).has.call(t,e)||(t.add(e),Dt(t,"add",e,e)),this}function en(e,t){t=_n(t);const n=_n(this),{has:i,get:r}=Yt(n);let o=i.call(n,e);o?hn(n,i,e):(e=_n(e),o=i.call(n,e));const s=r.call(n,e);return n.set(e,t),o?Ot(t,s)&&Dt(n,"set",e,t,s):Dt(n,"add",e,t),this}function tn(e){const t=_n(this),{has:n,get:i}=Yt(t);let r=n.call(t,e);r?hn(t,n,e):(e=_n(e),r=n.call(t,e));const o=i?i.call(t,e):void 0,s=t.delete(e);return r&&Dt(t,"delete",e,void 0,o),s}function nn(){const e=_n(this),t=0!==e.size,n=dt(e)?new Map(e):new Set(e),i=e.clear();return t&&Dt(e,"clear",void 0,void 0,n),i}function rn(e,t){return function(n,i){const r=this,o=r.__v_raw,s=_n(o),a=t?Xt:e?Ut:Gt;return!e&&Pt(s,"iterate",St),o.forEach(((e,t)=>n.call(i,a(e),a(t),r)))}}function on(e,t,n){return function(...i){const r=this.__v_raw,o=_n(r),s=dt(o),a="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,u=r[e](...i),l=n?Xt:t?Ut:Gt;return!t&&Pt(o,"iterate",c?At:St),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:a?[l(e[0]),l(e[1])]:l(e),done:t}},[Symbol.iterator](){return this}}}}function sn(e){return function(...t){{const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${_t(e)} operation ${n}failed: target is readonly.`,_n(this))}return"delete"!==e&&this}}var an={get(e){return Kt(this,e)},get size(){return Zt(this)},has:Jt,add:Qt,set:en,delete:tn,clear:nn,forEach:rn(!1,!1)},cn={get(e){return Kt(this,e,!1,!0)},get size(){return Zt(this)},has:Jt,add:Qt,set:en,delete:tn,clear:nn,forEach:rn(!1,!0)},un={get(e){return Kt(this,e,!0)},get size(){return Zt(this,!0)},has(e){return Jt.call(this,e,!0)},add:sn("add"),set:sn("set"),delete:sn("delete"),clear:sn("clear"),forEach:rn(!0,!1)},ln={get(e){return Kt(this,e,!0,!0)},get size(){return Zt(this,!0)},has(e){return Jt.call(this,e,!0)},add:sn("add"),set:sn("set"),delete:sn("delete"),clear:sn("clear"),forEach:rn(!0,!0)};function fn(e,t){const n=t?e?ln:cn:e?un:an;return(t,i,r)=>"__v_isReactive"===i?!e:"__v_isReadonly"===i?e:"__v_raw"===i?t:Reflect.get(lt(n,i)&&i in t?n:t,i,r)}["keys","values","entries",Symbol.iterator].forEach((e=>{an[e]=on(e,!1,!1),un[e]=on(e,!0,!1),cn[e]=on(e,!1,!0),ln[e]=on(e,!0,!0)}));var dn={get:fn(!1,!1)},pn=(fn(!1,!0),{get:fn(!0,!1)});fn(!0,!0);function hn(e,t,n){const i=_n(n);if(i!==n&&t.call(e,i)){const t=vt(e);console.warn(`Reactive ${t} contains both the raw and reactive versions of the same object${"Map"===t?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var mn=new WeakMap,gn=new WeakMap,vn=new WeakMap,yn=new WeakMap;function bn(e){return e&&e.__v_isReadonly?e:xn(e,!1,Bt,dn,mn)}function wn(e){return xn(e,!0,qt,pn,vn)}function xn(e,t,n,i,r){if(!ht(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const s=(a=e).__v_skip||!Object.isExtensible(a)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(vt(a));var a;if(0===s)return e;const c=new Proxy(e,2===s?i:n);return r.set(e,c),c}function _n(e){return e&&_n(e.__v_raw)||e}function On(e){return Boolean(e&&!0===e.__v_isRef)}Y("nextTick",(()=>Se)),Y("dispatch",(e=>Oe.bind(Oe,e))),Y("watch",((e,{evaluateLater:t,effect:n})=>(i,r)=>{let o,s=t(i),a=!0,c=n((()=>s((e=>{JSON.stringify(e),a?o=e:queueMicrotask((()=>{r(e,o),o=e})),a=!1}))));e._x_effects.delete(c)})),Y("store",(function(){return et})),Y("data",(e=>N(e))),Y("root",(e=>ze(e))),Y("refs",(e=>(e._x_refs_proxy||(e._x_refs_proxy=B(function(e){let t=[],n=e;for(;n;)n._x_refs&&t.push(n._x_refs),n=n.parentNode;return t}(e))),e._x_refs_proxy)));var En={};function kn(e){return En[e]||(En[e]=0),++En[e]}Y("id",(e=>(t,n=null)=>{let i=function(e,t){return We(e,(e=>{if(e._x_ids&&e._x_ids[t])return!0}))}(e,t),r=i?i._x_ids[t]:kn(t);return n?`${t}-${r}-${n}`:`${t}-${r}`})),Y("el",(e=>e)),ce("modelable",((e,{expression:t},{effect:n,evaluateLater:i})=>{let r=i(t),o=()=>{let e;return r((t=>e=t)),e},s=i(`${t} = __placeholder`),a=e=>s((()=>{}),{scope:{__placeholder:e}}),c=o();a(c),queueMicrotask((()=>{if(!e._x_model)return;e._x_removeModelListeners.default();let t=e._x_model.get,i=e._x_model.set;n((()=>a(t()))),n((()=>i(o())))}))})),ce("teleport",((e,{expression:t},{cleanup:n})=>{"template"!==e.tagName.toLowerCase()&&Ce("x-teleport can only be used on a <template> tag",e);let i=document.querySelector(t);i||Ce(`Cannot find x-teleport element for selector: "${t}"`);let r=e.content.cloneNode(!0).firstElementChild;e._x_teleport=r,r._x_teleportBack=e,e._x_forwardEvents&&e._x_forwardEvents.forEach((t=>{r.addEventListener(t,(t=>{t.stopPropagation(),e.dispatchEvent(new t.constructor(t.type,t))}))})),H(r,{},e),z((()=>{i.appendChild(r),$e(r),r._x_ignore=!0})),n((()=>r.remove()))}));var Sn=()=>{};function An(e,t,n,i){let r=e,o=e=>i(e),s={},a=(e,t)=>n=>t(e,n);if(n.includes("dot")&&(t=t.replace(/-/g,".")),n.includes("camel")&&(t=function(e){return e.toLowerCase().replace(/-(\w)/g,((e,t)=>t.toUpperCase()))}(t)),n.includes("passive")&&(s.passive=!0),n.includes("capture")&&(s.capture=!0),n.includes("window")&&(r=window),n.includes("document")&&(r=document),n.includes("prevent")&&(o=a(o,((e,t)=>{t.preventDefault(),e(t)}))),n.includes("stop")&&(o=a(o,((e,t)=>{t.stopPropagation(),e(t)}))),n.includes("self")&&(o=a(o,((t,n)=>{n.target===e&&t(n)}))),(n.includes("away")||n.includes("outside"))&&(r=document,o=a(o,((t,n)=>{e.contains(n.target)||!1!==n.target.isConnected&&(e.offsetWidth<1&&e.offsetHeight<1||!1!==e._x_isShown&&t(n))}))),n.includes("once")&&(o=a(o,((e,n)=>{e(n),r.removeEventListener(t,o,s)}))),o=a(o,((e,i)=>{(function(e){return["keydown","keyup"].includes(e)})(t)&&function(e,t){let n=t.filter((e=>!["window","document","prevent","stop","once"].includes(e)));if(n.includes("debounce")){let e=n.indexOf("debounce");n.splice(e,Tn((n[e+1]||"invalid-wait").split("ms")[0])?2:1)}if(0===n.length)return!1;if(1===n.length&&Cn(e.key).includes(n[0]))return!1;const i=["ctrl","shift","alt","meta","cmd","super"].filter((e=>n.includes(e)));if(n=n.filter((e=>!i.includes(e))),i.length>0){if(i.filter((t=>("cmd"!==t&&"super"!==t||(t="meta"),e[`${t}Key`]))).length===i.length&&Cn(e.key).includes(n[0]))return!1}return!0}(i,n)||e(i)})),n.includes("debounce")){let e=n[n.indexOf("debounce")+1]||"invalid-wait",t=Tn(e.split("ms")[0])?Number(e.split("ms")[0]):250;o=Ze(o,t)}if(n.includes("throttle")){let e=n[n.indexOf("throttle")+1]||"invalid-wait",t=Tn(e.split("ms")[0])?Number(e.split("ms")[0]):250;o=Qe(o,t)}return r.addEventListener(t,o,s),()=>{r.removeEventListener(t,o,s)}}function Tn(e){return!Array.isArray(e)&&!isNaN(e)}function Cn(e){if(!e)return[];e=e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase();let t={ctrl:"control",slash:"/",space:"-",spacebar:"-",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",equal:"="};return t[e]=e,Object.keys(t).map((n=>{if(t[n]===e)return n})).filter((e=>e))}function Mn(e){let t=e?parseFloat(e):null;return n=t,Array.isArray(n)||isNaN(n)?e:t;var n}function jn(e,t,n,i){let r={};if(/^\[.*\]$/.test(e.item)&&Array.isArray(t)){e.item.replace("[","").replace("]","").split(",").map((e=>e.trim())).forEach(((e,n)=>{r[e]=t[n]}))}else if(/^\{.*\}$/.test(e.item)&&!Array.isArray(t)&&"object"==typeof t){e.item.replace("{","").replace("}","").split(",").map((e=>e.trim())).forEach((e=>{r[e]=t[e]}))}else r[e.item]=t;return e.index&&(r[e.index]=n),e.collection&&(r[e.collection]=i),r}function Ln(){}Sn.inline=(e,{modifiers:t},{cleanup:n})=>{t.includes("self")?e._x_ignoreSelf=!0:e._x_ignore=!0,n((()=>{t.includes("self")?delete e._x_ignoreSelf:delete e._x_ignore}))},ce("ignore",Sn),ce("effect",((e,{expression:t},{effect:n})=>n(ee(e,t)))),ce("model",((e,{modifiers:t,expression:n},{effect:i,cleanup:r})=>{let o=ee(e,n),s=ee(e,`${n} = rightSideOfExpression($event, ${n})`);var a="select"===e.tagName.toLowerCase()||["checkbox","radio"].includes(e.type)||t.includes("lazy")?"change":"input";let c=function(e,t,n){"radio"===e.type&&z((()=>{e.hasAttribute("name")||e.setAttribute("name",n)}));return(n,i)=>z((()=>{if(n instanceof CustomEvent&&void 0!==n.detail)return n.detail||n.target.value;if("checkbox"===e.type){if(Array.isArray(i)){let e=t.includes("number")?Mn(n.target.value):n.target.value;return n.target.checked?i.concat([e]):i.filter((t=>!(t==e)))}return n.target.checked}if("select"===e.tagName.toLowerCase()&&e.multiple)return t.includes("number")?Array.from(n.target.selectedOptions).map((e=>Mn(e.value||e.text))):Array.from(n.target.selectedOptions).map((e=>e.value||e.text));{let e=n.target.value;return t.includes("number")?Mn(e):t.includes("trim")?e.trim():e}}))}(e,t,n),u=An(e,a,t,(e=>{s((()=>{}),{scope:{$event:e,rightSideOfExpression:c}})}));e._x_removeModelListeners||(e._x_removeModelListeners={}),e._x_removeModelListeners.default=u,r((()=>e._x_removeModelListeners.default()));let l=ee(e,`${n} = __placeholder`);e._x_model={get(){let e;return o((t=>e=t)),e},set(e){l((()=>{}),{scope:{__placeholder:e}})}},e._x_forceModelUpdate=()=>{o((t=>{void 0===t&&n.match(/\./)&&(t=""),window.fromModel=!0,z((()=>Ye(e,"value",t))),delete window.fromModel}))},i((()=>{t.includes("unintrusive")&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate()}))})),ce("cloak",(e=>queueMicrotask((()=>z((()=>e.removeAttribute(se("cloak")))))))),Re((()=>`[${se("init")}]`)),ce("init",Xe(((e,{expression:t},{evaluate:n})=>"string"==typeof t?!!t.trim()&&n(t,{},!1):n(t,{},!1)))),ce("text",((e,{expression:t},{effect:n,evaluateLater:i})=>{let r=i(t);n((()=>{r((t=>{z((()=>{e.textContent=t}))}))}))})),ce("html",((e,{expression:t},{effect:n,evaluateLater:i})=>{let r=i(t);n((()=>{r((t=>{z((()=>{e.innerHTML=t,e._x_ignoreSelf=!0,$e(e),delete e._x_ignoreSelf}))}))}))})),ve(he(":",se("bind:"))),ce("bind",((e,{value:t,modifiers:n,expression:i,original:r},{effect:o})=>{if(!t)return function(e,t,n,i){let r={};o=r,Object.entries(nt).forEach((([e,t])=>{Object.defineProperty(o,e,{get:()=>(...e)=>t(...e)})}));var o;let s=ee(e,t),a=[];for(;a.length;)a.pop()();s((t=>{let i=Object.entries(t).map((([e,t])=>({name:e,value:t}))),r=function(e){return Array.from(e).map(me()).filter((e=>!ye(e)))}(i);i=i.map((e=>r.find((t=>t.name===e.name))?{name:`x-bind:${e.name}`,value:`"${e.value}"`}:e)),ue(e,i,n).map((e=>{a.push(e.runCleanups),e()}))}),{scope:r})}(e,i,r);if("key"===t)return function(e,t){e._x_keyExpression=t}(e,i);let s=ee(e,i);o((()=>s((r=>{void 0===r&&i.match(/\./)&&(r=""),z((()=>Ye(e,t,r,n)))}))))})),De((()=>`[${se("data")}]`)),ce("data",Xe(((e,{expression:t},{cleanup:n})=>{t=""===t?"{}":t;let i={};K(i,e);let r={};var o,s;o=r,s=i,Object.entries(it).forEach((([e,t])=>{Object.defineProperty(o,e,{get:()=>(...e)=>t.bind(s)(...e),enumerable:!1})}));let a=Q(e,t,{scope:r});void 0===a&&(a={}),K(a,e);let c=p(a);q(c);let u=H(e,c);c.init&&Q(e,c.init),n((()=>{c.destroy&&Q(e,c.destroy),u()}))}))),ce("show",((e,{modifiers:t,expression:n},{effect:i})=>{let r,o=ee(e,n),s=()=>z((()=>{e.style.display="none",e._x_isShown=!1})),a=()=>z((()=>{1===e.style.length&&"none"===e.style.display?e.removeAttribute("style"):e.style.removeProperty("display"),e._x_isShown=!0})),c=()=>setTimeout(a),u=Ve((e=>e?a():s()),(t=>{"function"==typeof e._x_toggleAndCascadeWithTransitions?e._x_toggleAndCascadeWithTransitions(e,t,a,s):t?c():s()})),l=!0;i((()=>o((e=>{(l||e!==r)&&(t.includes("immediate")&&(e?c():s()),u(e),r=e,l=!1)}))))})),ce("for",((e,{expression:t},{effect:n,cleanup:i})=>{let r=function(e){let t=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,n=/^\s*\(|\)\s*$/g,i=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,r=e.match(i);if(!r)return;let o={};o.items=r[2].trim();let s=r[1].replace(n,"").trim(),a=s.match(t);a?(o.item=s.replace(t,"").trim(),o.index=a[1].trim(),a[2]&&(o.collection=a[2].trim())):o.item=s;return o}(t),o=ee(e,r.items),s=ee(e,e._x_keyExpression||"index");e._x_prevKeys=[],e._x_lookup={},n((()=>function(e,t,n,i){let r=e=>"object"==typeof e&&!Array.isArray(e),o=e;n((n=>{var s;s=n,!Array.isArray(s)&&!isNaN(s)&&n>=0&&(n=Array.from(Array(n).keys(),(e=>e+1))),void 0===n&&(n=[]);let a=e._x_lookup,c=e._x_prevKeys,u=[],l=[];if(r(n))n=Object.entries(n).map((([e,r])=>{let o=jn(t,r,e,n);i((e=>l.push(e)),{scope:{index:e,...o}}),u.push(o)}));else for(let e=0;e<n.length;e++){let r=jn(t,n[e],e,n);i((e=>l.push(e)),{scope:{index:e,...r}}),u.push(r)}let f=[],d=[],h=[],m=[];for(let e=0;e<c.length;e++){let t=c[e];-1===l.indexOf(t)&&h.push(t)}c=c.filter((e=>!h.includes(e)));let g="template";for(let e=0;e<l.length;e++){let t=l[e],n=c.indexOf(t);if(-1===n)c.splice(e,0,t),f.push([g,e]);else if(n!==e){let t=c.splice(e,1)[0],i=c.splice(n-1,1)[0];c.splice(e,0,i),c.splice(n,0,t),d.push([t,i])}else m.push(t);g=t}for(let e=0;e<h.length;e++){let t=h[e];a[t]._x_effects&&a[t]._x_effects.forEach(x),a[t].remove(),a[t]=null,delete a[t]}for(let e=0;e<d.length;e++){let[t,n]=d[e],i=a[t],r=a[n],o=document.createElement("div");z((()=>{r.after(o),i.after(r),r._x_currentIfEl&&r.after(r._x_currentIfEl),o.before(i),i._x_currentIfEl&&i.after(i._x_currentIfEl),o.remove()})),V(r,u[l.indexOf(n)])}for(let e=0;e<f.length;e++){let[t,n]=f[e],i="template"===t?o:a[t];i._x_currentIfEl&&(i=i._x_currentIfEl);let r=u[n],s=l[n],c=document.importNode(o.content,!0).firstElementChild;H(c,p(r),o),z((()=>{i.after(c),$e(c)})),"object"==typeof s&&Ce("x-for key cannot be an object, it must be a string or an integer",o),a[s]=c}for(let e=0;e<m.length;e++)V(a[m[e]],u[l.indexOf(m[e])]);o._x_prevKeys=l}))}(e,r,o,s))),i((()=>{Object.values(e._x_lookup).forEach((e=>e.remove())),delete e._x_prevKeys,delete e._x_lookup}))})),Ln.inline=(e,{expression:t},{cleanup:n})=>{let i=ze(e);i._x_refs||(i._x_refs={}),i._x_refs[t]=e,n((()=>delete i._x_refs[t]))},ce("ref",Ln),ce("if",((e,{expression:t},{effect:n,cleanup:i})=>{let r=ee(e,t);n((()=>r((t=>{t?(()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let t=e.content.cloneNode(!0).firstElementChild;H(t,{},e),z((()=>{e.after(t),$e(t)})),e._x_currentIfEl=t,e._x_undoIf=()=>{Te(t,(e=>{e._x_effects&&e._x_effects.forEach(x)})),t.remove(),delete e._x_currentIfEl}})():e._x_undoIf&&(e._x_undoIf(),delete e._x_undoIf)})))),i((()=>e._x_undoIf&&e._x_undoIf()))})),ce("id",((e,{expression:t},{evaluate:n})=>{n(t).forEach((t=>function(e,t){e._x_ids||(e._x_ids={}),e._x_ids[t]||(e._x_ids[t]=kn(t))}(e,t)))})),ve(he("@",se("on:"))),ce("on",Xe(((e,{value:t,modifiers:n,expression:i},{cleanup:r})=>{let o=i?ee(e,i):()=>{};"template"===e.tagName.toLowerCase()&&(e._x_forwardEvents||(e._x_forwardEvents=[]),e._x_forwardEvents.includes(t)||e._x_forwardEvents.push(t));let s=An(e,t,n,(e=>{o((()=>{}),{scope:{$event:e},params:[e]})}));r((()=>s()))}))),rt.setEvaluator(ne),rt.setReactivityEngine({reactive:bn,effect:function(e,t=at){(function(e){return e&&!0===e._isEffect})(e)&&(e=e.raw);const n=function(e,t){const n=function(){if(!n.active)return e();if(!kt.includes(n)){Ct(n);try{return jt.push(Mt),Mt=!0,kt.push(n),st=n,e()}finally{kt.pop(),Lt(),st=kt[kt.length-1]}}};return n.id=Tt++,n.allowRecurse=!!t.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}(e,t);return t.lazy||n(),n},release:function(e){e.active&&(Ct(e),e.options.onStop&&e.options.onStop(),e.active=!1)},raw:_n});var Pn=rt;var Dn=function(e){let t=()=>{let t,n=localStorage;return e.interceptor(((i,r,o,s,a)=>{let c=t||`_x_${s}`,u=function(e,t){return null!==t.getItem(e)}(c,n)?function(e,t){return JSON.parse(t.getItem(e,t))}(c,n):i;return o(u),e.effect((()=>{let e=r();!function(e,t,n){n.setItem(e,JSON.stringify(t))}(c,e,n),o(e)})),u}),(e=>{e.as=n=>(t=n,e),e.using=t=>(n=t,e)}))};Object.defineProperty(e,"$persist",{get:()=>t()}),e.magic("persist",t)};function Rn(e){return new class{el=void 0;constructor(e){this.el=e}traversals={first:"firstElementChild",next:"nextElementSibling",parent:"parentElement"};nodes(){return this.traversals={first:"firstChild",next:"nextSibling",parent:"parentNode"},this}first(){return this.teleportTo(this.el[this.traversals.first])}next(){return this.teleportTo(this.teleportBack(this.el[this.traversals.next]))}before(e){return this.el[this.traversals.parent].insertBefore(e,this.el),e}replace(e){return this.el[this.traversals.parent].replaceChild(e,this.el),e}append(e){return this.el.appendChild(e),e}teleportTo(e){return e&&e._x_teleport?e._x_teleport:e}teleportBack(e){return e&&e._x_teleportBack?e._x_teleportBack:e}}(e)}var zn=()=>{},Wn=()=>{};async function $n(e,t,n){let i,r,o,s,a,c,u,l,f,d,p;function h(e){if(p)return Wn((e||"").replace("\n","\\n"),i,r),new Promise((e=>zn=()=>e()))}async function m(e,t){if(function(e,t){return e.nodeType!=t.nodeType||e.nodeName!=t.nodeName||g(e)!=g(t)}(e,t)){let n=function(e,t){if(In(u,e))return;let n=t.cloneNode(!0);if(In(f,n))return;Rn(e).replace(n),l(e),d(n)}(e,t);return await h("Swap elements"),n}let n=!1;if(!In(a,e,t,(()=>n=!0))){if(window.Alpine&&function(e,t,n){if(1!==e.nodeType)return;e._x_dataStack&&window.Alpine.clone(e,t)}(e,t),3===(i=t).nodeType||8===i.nodeType)return await async function(e,t){let n=t.nodeValue;e.nodeValue!==n&&(e.nodeValue=n,await h("Change text node to: "+n))}(e,t),void c(e,t);var i;n||await async function(e,t){if(e._x_isShown&&!t._x_isShown)return;if(!e._x_isShown&&t._x_isShown)return;let n=Array.from(e.attributes),i=Array.from(t.attributes);for(let i=n.length-1;i>=0;i--){let r=n[i].name;t.hasAttribute(r)||(e.removeAttribute(r),await h("Remove attribute"))}for(let t=i.length-1;t>=0;t--){let n=i[t].name,r=i[t].value;e.getAttribute(n)!==r&&(e.setAttribute(n,r),await h(`Set [${n}] attribute to: "${r}"`))}}(e,t),c(e,t),await async function(e,t){let n=e.childNodes,i=(v(t.childNodes),v(n)),r=Rn(t).nodes().first(),o=Rn(e).nodes().first(),a={};for(;r;){let t=g(r),n=g(o);if(!o){if(!t||!a[t]){let t=y(r,e)||{};await h("Add element: "+(t.outerHTML||t.nodeValue)),r=Rn(r).nodes().next();continue}{let n=a[t];Rn(e).append(n),o=n,await h("Add element (from key)")}}if(s){let e=Rn(r).next(),t=!1;for(;!t&&e;)o.isEqualNode(e)&&(t=!0,o=b(r,o),n=g(o),await h("Move element (lookahead)")),e=Rn(e).next()}if(t!==n){if(!t&&n){a[n]=o,o=b(r,o),a[n].remove(),o=Rn(o).nodes().next(),r=Rn(r).nodes().next(),await h('No "to" key');continue}if(t&&!n&&i[t]&&(o=Rn(o).replace(i[t]),await h('No "from" key')),t&&n){a[n]=o;let e=i[t];if(!e){a[n]=o,o=b(r,o),a[n].remove(),o=Rn(o).next(),r=Rn(r).next(),await h("Swap elements with keys");continue}o=Rn(o).replace(e),await h('Move "from" key')}}let c=o&&Rn(o).nodes().next();await m(o,r),r=r&&Rn(r).nodes().next(),o=c}let c=[];for(;o;)In(u,o)||c.push(o),o=Rn(o).nodes().next();for(;c.length;){let e=c.shift();e.remove(),await h("remove el"),l(e)}}(e,t)}}function g(e){return e&&1===e.nodeType&&o(e)}function v(e){let t={};return e.forEach((e=>{let n=g(e);n&&(t[n]=e)})),t}function y(e,t){if(!In(f,e)){let n=e.cloneNode(!0);return Rn(t).append(n),d(n),n}return null}function b(e,t){if(!In(f,e)){let n=e.cloneNode(!0);return Rn(t).before(n),d(n),n}return t}var w;return function(e={}){let t=()=>{};a=e.updating||t,c=e.updated||t,u=e.removing||t,l=e.removed||t,f=e.adding||t,d=e.added||t,o=e.key||(e=>e.getAttribute("key")),s=e.lookahead||!1,p=e.debug||!1}(n),i=e,w=t,r=document.createRange().createContextualFragment(w).firstElementChild,window.Alpine&&window.Alpine.closestDataStack&&!e._x_dataStack&&(r._x_dataStack=window.Alpine.closestDataStack(e),r._x_dataStack&&window.Alpine.clone(e,r)),await h(),await m(e,r),i=void 0,r=void 0,e}function In(e,...t){let n=!1;return e(...t,(()=>n=!0)),n}$n.step=()=>zn(),$n.log=e=>{Wn=e};var Nn,Hn,Vn=function(e){e.morph=$n},Fn=Object.create,Bn=Object.defineProperty,qn=Object.getPrototypeOf,Gn=Object.prototype.hasOwnProperty,Un=Object.getOwnPropertyNames,Xn=Object.getOwnPropertyDescriptor,Yn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Kn=Yn((e=>{function t(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function n(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function i(e){var t=n(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function r(e){return e instanceof n(e).Element||e instanceof Element}function o(e){return e instanceof n(e).HTMLElement||e instanceof HTMLElement}function s(e){return"undefined"!=typeof ShadowRoot&&(e instanceof n(e).ShadowRoot||e instanceof ShadowRoot)}function a(e){return e?(e.nodeName||"").toLowerCase():null}function c(e){return((r(e)?e.ownerDocument:e.document)||window.document).documentElement}function u(e){return t(c(e)).left+i(e).scrollLeft}function l(e){return n(e).getComputedStyle(e)}function f(e){var t=l(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function d(e,r,s){void 0===s&&(s=!1);var l,d,p=c(r),h=t(e),m=o(r),g={scrollLeft:0,scrollTop:0},v={x:0,y:0};return(m||!m&&!s)&&(("body"!==a(r)||f(p))&&(g=(l=r)!==n(l)&&o(l)?{scrollLeft:(d=l).scrollLeft,scrollTop:d.scrollTop}:i(l)),o(r)?((v=t(r)).x+=r.clientLeft,v.y+=r.clientTop):p&&(v.x=u(p))),{x:h.left+g.scrollLeft-v.x,y:h.top+g.scrollTop-v.y,width:h.width,height:h.height}}function p(e){var n=t(e),i=e.offsetWidth,r=e.offsetHeight;return Math.abs(n.width-i)<=1&&(i=n.width),Math.abs(n.height-r)<=1&&(r=n.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:r}}function h(e){return"html"===a(e)?e:e.assignedSlot||e.parentNode||(s(e)?e.host:null)||c(e)}function m(e){return["html","body","#document"].indexOf(a(e))>=0?e.ownerDocument.body:o(e)&&f(e)?e:m(h(e))}function g(e,t){var i;void 0===t&&(t=[]);var r=m(e),o=r===(null==(i=e.ownerDocument)?void 0:i.body),s=n(r),a=o?[s].concat(s.visualViewport||[],f(r)?r:[]):r,c=t.concat(a);return o?c:c.concat(g(h(a)))}function v(e){return["table","td","th"].indexOf(a(e))>=0}function y(e){return o(e)&&"fixed"!==l(e).position?e.offsetParent:null}function b(e){for(var t=n(e),i=y(e);i&&v(i)&&"static"===l(i).position;)i=y(i);return i&&("html"===a(i)||"body"===a(i)&&"static"===l(i).position)?t:i||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&o(e)&&"fixed"===l(e).position)return null;for(var n=h(e);o(n)&&["html","body"].indexOf(a(n))<0;){var i=l(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}Object.defineProperty(e,"__esModule",{value:!0});var w="top",x="bottom",_="right",O="left",E="auto",k=[w,x,_,O],S="start",A="end",T="viewport",C="popper",M=k.reduce((function(e,t){return e.concat([t+"-"+S,t+"-"+A])}),[]),j=[].concat(k,[E]).reduce((function(e,t){return e.concat([t,t+"-"+S,t+"-"+A])}),[]),L=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function P(e){var t=new Map,n=new Set,i=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var i=t.get(e);i&&r(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),i}function D(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return[].concat(n).reduce((function(e,t){return e.replace(/%s/,t)}),e)}var R='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',z=["name","enabled","phase","fn","effect","requires","options"];function W(e){return e.split("-")[0]}var $=Math.max,I=Math.min,N=Math.round;function H(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&s(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function V(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function F(e,r){return r===T?V(function(e){var t=n(e),i=c(e),r=t.visualViewport,o=i.clientWidth,s=i.clientHeight,a=0,l=0;return r&&(o=r.width,s=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,l=r.offsetTop)),{width:o,height:s,x:a+u(e),y:l}}(e)):o(r)?function(e){var n=t(e);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(r):V(function(e){var t,n=c(e),r=i(e),o=null==(t=e.ownerDocument)?void 0:t.body,s=$(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=$(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),f=-r.scrollLeft+u(e),d=-r.scrollTop;return"rtl"===l(o||n).direction&&(f+=$(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:a,x:f,y:d}}(c(e)))}function B(e,t,n){var i="clippingParents"===t?function(e){var t=g(h(e)),n=["absolute","fixed"].indexOf(l(e).position)>=0&&o(e)?b(e):e;return r(n)?t.filter((function(e){return r(e)&&H(e,n)&&"body"!==a(e)})):[]}(e):[].concat(t),s=[].concat(i,[n]),c=s[0],u=s.reduce((function(t,n){var i=F(e,n);return t.top=$(i.top,t.top),t.right=I(i.right,t.right),t.bottom=I(i.bottom,t.bottom),t.left=$(i.left,t.left),t}),F(e,c));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function q(e){return e.split("-")[1]}function G(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function U(e){var t,n=e.reference,i=e.element,r=e.placement,o=r?W(r):null,s=r?q(r):null,a=n.x+n.width/2-i.width/2,c=n.y+n.height/2-i.height/2;switch(o){case w:t={x:a,y:n.y-i.height};break;case x:t={x:a,y:n.y+n.height};break;case _:t={x:n.x+n.width,y:c};break;case O:t={x:n.x-i.width,y:c};break;default:t={x:n.x,y:n.y}}var u=o?G(o):null;if(null!=u){var l="y"===u?"height":"width";switch(s){case S:t[u]=t[u]-(n[l]/2-i[l]/2);break;case A:t[u]=t[u]+(n[l]/2-i[l]/2)}}return t}function X(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Y(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function K(e,n){void 0===n&&(n={});var i=n,o=i.placement,s=void 0===o?e.placement:o,a=i.boundary,u=void 0===a?"clippingParents":a,l=i.rootBoundary,f=void 0===l?T:l,d=i.elementContext,p=void 0===d?C:d,h=i.altBoundary,m=void 0!==h&&h,g=i.padding,v=void 0===g?0:g,y=X("number"!=typeof v?v:Y(v,k)),b=p===C?"reference":C,O=e.elements.reference,E=e.rects.popper,S=e.elements[m?b:p],A=B(r(S)?S:S.contextElement||c(e.elements.popper),u,f),M=t(O),j=U({reference:M,element:E,strategy:"absolute",placement:s}),L=V(Object.assign({},E,j)),P=p===C?L:M,D={top:A.top-P.top+y.top,bottom:P.bottom-A.bottom+y.bottom,left:A.left-P.left+y.left,right:P.right-A.right+y.right},R=e.modifiersData.offset;if(p===C&&R){var z=R[s];Object.keys(D).forEach((function(e){var t=[_,x].indexOf(e)>=0?1:-1,n=[w,x].indexOf(e)>=0?"y":"x";D[e]+=z[n]*t}))}return D}var J="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Z={placement:"bottom",modifiers:[],strategy:"absolute"};function Q(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function ee(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,o=t.defaultOptions,s=void 0===o?Z:o;return function(e,t,n){void 0===n&&(n=s);var o,a,c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Z,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],f=!1,h={state:c,setOptions:function(n){m(),c.options=Object.assign({},s,c.options,n),c.scrollParents={reference:r(e)?g(e):e.contextElement?g(e.contextElement):[],popper:g(t)};var o,a,f,d=function(e){var t=P(e);return L.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(i,c.options.modifiers)));(c.orderedModifiers=d.filter((function(e){return e.enabled})),function(e){e.forEach((function(t){Object.keys(t).forEach((function(n){switch(n){case"name":"string"!=typeof t.name&&console.error(D(R,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(D(R,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));case"phase":L.indexOf(t.phase)<0&&console.error(D(R,t.name,'"phase"',"either "+L.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(D(R,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":"function"!=typeof t.effect&&console.error(D(R,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":Array.isArray(t.requires)||console.error(D(R,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(D(R,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+z.map((function(e){return'"'+e+'"'})).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach((function(n){null==e.find((function(e){return e.name===n}))&&console.error(D('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),n,n))}))}))}))}((o=[].concat(d,c.options.modifiers),a=function(e){return e.name},f=new Set,o.filter((function(e){var t=a(e);if(!f.has(t))return f.add(t),!0})))),W(c.options.placement)===E)&&(c.orderedModifiers.find((function(e){return"flip"===e.name}))||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" ")));var p=l(t);return[p.marginTop,p.marginRight,p.marginBottom,p.marginLeft].some((function(e){return parseFloat(e)}))&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" ")),c.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,r=e.effect;if("function"==typeof r){var o=r({state:c,name:t,instance:h,options:i}),s=function(){};u.push(o||s)}})),h.update()},forceUpdate:function(){if(!f){var e=c.elements,t=e.reference,n=e.popper;if(Q(t,n)){c.rects={reference:d(t,b(n),"fixed"===c.options.strategy),popper:p(n)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach((function(e){return c.modifiersData[e.name]=Object.assign({},e.data)}));for(var i=0,r=0;r<c.orderedModifiers.length;r++){if((i+=1)>100){console.error("Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.");break}if(!0!==c.reset){var o=c.orderedModifiers[r],s=o.fn,a=o.options,u=void 0===a?{}:a,l=o.name;"function"==typeof s&&(c=s({state:c,options:u,name:l,instance:h})||c)}else c.reset=!1,r=-1}}else console.error(J)}},update:(o=function(){return new Promise((function(e){h.forceUpdate(),e(c)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){m(),f=!0}};if(!Q(e,t))return console.error(J),h;function m(){u.forEach((function(e){return e()})),u=[]}return h.setOptions(n).then((function(e){!f&&n.onFirstUpdate&&n.onFirstUpdate(e)})),h}}var te={passive:!0};var ne={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,r=e.options,o=r.scroll,s=void 0===o||o,a=r.resize,c=void 0===a||a,u=n(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&l.forEach((function(e){e.addEventListener("scroll",i.update,te)})),c&&u.addEventListener("resize",i.update,te),function(){s&&l.forEach((function(e){e.removeEventListener("scroll",i.update,te)})),c&&u.removeEventListener("resize",i.update,te)}},data:{}};var ie={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=U({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},re={top:"auto",right:"auto",bottom:"auto",left:"auto"};function oe(e){var t,i=e.popper,r=e.popperRect,o=e.placement,s=e.offsets,a=e.position,u=e.gpuAcceleration,f=e.adaptive,d=e.roundOffsets,p=!0===d?function(e){var t=e.x,n=e.y,i=window.devicePixelRatio||1;return{x:N(N(t*i)/i)||0,y:N(N(n*i)/i)||0}}(s):"function"==typeof d?d(s):s,h=p.x,m=void 0===h?0:h,g=p.y,v=void 0===g?0:g,y=s.hasOwnProperty("x"),E=s.hasOwnProperty("y"),k=O,S=w,A=window;if(f){var T=b(i),C="clientHeight",M="clientWidth";T===n(i)&&"static"!==l(T=c(i)).position&&(C="scrollHeight",M="scrollWidth"),o===w&&(S=x,v-=T[C]-r.height,v*=u?1:-1),o===O&&(k=_,m-=T[M]-r.width,m*=u?1:-1)}var j,L=Object.assign({position:a},f&&re);return u?Object.assign({},L,((j={})[S]=E?"0":"",j[k]=y?"0":"",j.transform=(A.devicePixelRatio||1)<2?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",j)):Object.assign({},L,((t={})[S]=E?v+"px":"",t[k]=y?m+"px":"",t.transform="",t))}var se={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=void 0===i||i,o=n.adaptive,s=void 0===o||o,a=n.roundOffsets,c=void 0===a||a,u=l(t.elements.popper).transitionProperty||"";s&&["transform","top","right","bottom","left"].some((function(e){return u.indexOf(e)>=0}))&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "));var f={placement:W(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,oe(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,oe(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var ae={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},r=t.elements[e];o(r)&&a(r)&&(Object.assign(r.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],r=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});o(i)&&a(i)&&(Object.assign(i.style,s),Object.keys(r).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]};var ce={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.offset,o=void 0===r?[0,0]:r,s=j.reduce((function(e,n){return e[n]=function(e,t,n){var i=W(e),r=[O,w].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*r,[O,_].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,o),e}),{}),a=s[t.placement],c=a.x,u=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[i]=s}},ue={left:"right",right:"left",bottom:"top",top:"bottom"};function le(e){return e.replace(/left|right|bottom|top/g,(function(e){return ue[e]}))}var fe={start:"end",end:"start"};function de(e){return e.replace(/start|end/g,(function(e){return fe[e]}))}var pe={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=n.mainAxis,o=void 0===r||r,s=n.altAxis,a=void 0===s||s,c=n.fallbackPlacements,u=n.padding,l=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=W(g),y=c||(v===g||!h?[le(g)]:function(e){if(W(e)===E)return[];var t=le(e);return[de(e),t,de(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(W(n)===E?function(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,u=void 0===c?j:c,l=q(i),f=l?a?M:M.filter((function(e){return q(e)===l})):k,d=f.filter((function(e){return u.indexOf(e)>=0}));0===d.length&&(d=f,console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var p=d.reduce((function(t,n){return t[n]=K(e,{placement:n,boundary:r,rootBoundary:o,padding:s})[W(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:l,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),A=t.rects.reference,T=t.rects.popper,C=new Map,L=!0,P=b[0],D=0;D<b.length;D++){var R=b[D],z=W(R),$=q(R)===S,I=[w,x].indexOf(z)>=0,N=I?"width":"height",H=K(t,{placement:R,boundary:l,rootBoundary:f,altBoundary:d,padding:u}),V=I?$?_:O:$?x:w;A[N]>T[N]&&(V=le(V));var F=le(V),B=[];if(o&&B.push(H[z]<=0),a&&B.push(H[V]<=0,H[F]<=0),B.every((function(e){return e}))){P=R,L=!1;break}C.set(R,B)}if(L)for(var G=function(e){var t=b.find((function(t){var n=C.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return P=t,"break"},U=h?3:1;U>0;U--){if("break"===G(U))break}t.placement!==P&&(t.modifiersData[i]._skip=!0,t.placement=P,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function he(e,t,n){return $(e,I(t,n))}var me={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.mainAxis,o=void 0===r||r,s=n.altAxis,a=void 0!==s&&s,c=n.boundary,u=n.rootBoundary,l=n.altBoundary,f=n.padding,d=n.tether,h=void 0===d||d,m=n.tetherOffset,g=void 0===m?0:m,v=K(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:l}),y=W(t.placement),E=q(t.placement),k=!E,A=G(y),T="x"===A?"y":"x",C=t.modifiersData.popperOffsets,M=t.rects.reference,j=t.rects.popper,L="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,P={x:0,y:0};if(C){if(o||a){var D="y"===A?w:O,R="y"===A?x:_,z="y"===A?"height":"width",N=C[A],H=C[A]+v[D],V=C[A]-v[R],F=h?-j[z]/2:0,B=E===S?M[z]:j[z],U=E===S?-j[z]:-M[z],X=t.elements.arrow,Y=h&&X?p(X):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Z=J[D],Q=J[R],ee=he(0,M[z],Y[z]),te=k?M[z]/2-F-ee-Z-L:B-ee-Z-L,ne=k?-M[z]/2+F+ee+Q+L:U+ee+Q+L,ie=t.elements.arrow&&b(t.elements.arrow),re=ie?"y"===A?ie.clientTop||0:ie.clientLeft||0:0,oe=t.modifiersData.offset?t.modifiersData.offset[t.placement][A]:0,se=C[A]+te-oe-re,ae=C[A]+ne-oe;if(o){var ce=he(h?I(H,se):H,N,h?$(V,ae):V);C[A]=ce,P[A]=ce-N}if(a){var ue="x"===A?w:O,le="x"===A?x:_,fe=C[T],de=fe+v[ue],pe=fe-v[le],me=he(h?I(de,se):de,fe,h?$(pe,ae):pe);C[T]=me,P[T]=me-fe}}t.modifiersData[i]=P}},requiresIfExists:["offset"]};var ge={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,r=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=W(n.placement),c=G(a),u=[O,_].indexOf(a)>=0?"height":"width";if(o&&s){var l=function(e,t){return X("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Y(e,k))}(r.padding,n),f=p(o),d="y"===c?w:O,h="y"===c?x:_,m=n.rects.reference[u]+n.rects.reference[c]-s[c]-n.rects.popper[u],g=s[c]-n.rects.reference[c],v=b(o),y=v?"y"===c?v.clientHeight||0:v.clientWidth||0:0,E=m/2-g/2,S=l[d],A=y-f[u]-l[h],T=y/2-f[u]/2+E,C=he(S,T,A),M=c;n.modifiersData[i]=((t={})[M]=C,t.centerOffset=C-T,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&(o(i)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" ")),H(t.elements.popper,i)?t.elements.arrow=i:console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" ")))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ve(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ye(e){return[w,_,x,O].some((function(t){return e[t]>=0}))}var be={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,s=K(t,{elementContext:"reference"}),a=K(t,{altBoundary:!0}),c=ve(s,i),u=ve(a,r,o),l=ye(c),f=ye(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":f})}},we=ee({defaultModifiers:[ne,ie,se,ae]}),xe=[ne,ie,se,ae,ce,pe,me,ge,be],_e=ee({defaultModifiers:xe});e.applyStyles=ae,e.arrow=ge,e.computeStyles=se,e.createPopper=_e,e.createPopperLite=we,e.defaultModifiers=xe,e.detectOverflow=K,e.eventListeners=ne,e.flip=pe,e.hide=be,e.offset=ce,e.popperGenerator=ee,e.popperOffsets=ie,e.preventOverflow=me})),Jn=Yn((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Kn(),n="tippy-content",i="tippy-backdrop",r="tippy-arrow",o="tippy-svg-arrow",s={passive:!0,capture:!0};function a(e,t,n){if(Array.isArray(e)){var i=e[t];return null==i?Array.isArray(n)?n[t]:n:i}return e}function c(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function u(e,t){return"function"==typeof e?e.apply(void 0,t):e}function l(e,t){return 0===t?e:function(i){clearTimeout(n),n=setTimeout((function(){e(i)}),t)};var n}function f(e,t){var n=Object.assign({},e);return t.forEach((function(e){delete n[e]})),n}function d(e){return[].concat(e)}function p(e,t){-1===e.indexOf(t)&&e.push(t)}function h(e){return e.split("-")[0]}function m(e){return[].slice.call(e)}function g(){return document.createElement("div")}function v(e){return["Element","Fragment"].some((function(t){return c(e,t)}))}function y(e){return c(e,"MouseEvent")}function b(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function w(e){return v(e)?[e]:function(e){return c(e,"NodeList")}(e)?m(e):Array.isArray(e)?e:m(document.querySelectorAll(e))}function x(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function _(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function O(e){var t,n=d(e)[0];return(null==n||null==(t=n.ownerDocument)?void 0:t.body)?n.ownerDocument:document}function E(e,t,n){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[i](t,n)}))}var k={isTouch:!1},S=0;function A(){k.isTouch||(k.isTouch=!0,window.performance&&document.addEventListener("mousemove",T))}function T(){var e=performance.now();e-S<20&&(k.isTouch=!1,document.removeEventListener("mousemove",T)),S=e}function C(){var e=document.activeElement;if(b(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var M,j="undefined"!=typeof window&&"undefined"!=typeof document?navigator.userAgent:"",L=/MSIE |Trident\//.test(j);function P(e){return[e+"() was called on a"+("destroy"===e?"n already-":" ")+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function D(e){return e.replace(/[ \t]{2,}/g," ").replace(/^[ \t]*/gm,"").trim()}function R(e){return D("\n %ctippy.js\n\n %c"+D(e)+"\n\n %c👷‍ This is a development-only message. It will be removed in production.\n ")}function z(e){return[R(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}function W(e,t){var n;e&&!M.has(t)&&(M.add(t),(n=console).warn.apply(n,z(t)))}function $(e,t){var n;e&&!M.has(t)&&(M.add(t),(n=console).error.apply(n,z(t)))}M=new Set;var I={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},N=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},I,{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),H=Object.keys(N);function V(e){var t=(e.plugins||[]).reduce((function(t,n){var i=n.name,r=n.defaultValue;return i&&(t[i]=void 0!==e[i]?e[i]:r),t}),{});return Object.assign({},e,{},t)}function F(e,t){var n=Object.assign({},t,{content:u(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(V(Object.assign({},N,{plugins:t}))):H).reduce((function(t,n){var i=(e.getAttribute("data-tippy-"+n)||"").trim();if(!i)return t;if("content"===n)t[n]=i;else try{t[n]=JSON.parse(i)}catch(e){t[n]=i}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},N.aria,{},n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function B(e,t){void 0===e&&(e={}),void 0===t&&(t=[]),Object.keys(e).forEach((function(e){var n,i,r=f(N,Object.keys(I)),o=(n=r,i=e,!{}.hasOwnProperty.call(n,i));o&&(o=0===t.filter((function(t){return t.name===e})).length),W(o,["`"+e+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.","\n\n","All props: https://atomiks.github.io/tippyjs/v6/all-props/\n","Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))}))}function q(e,t){e.innerHTML=t}function G(e){var t=g();return!0===e?t.className=r:(t.className=o,v(e)?t.appendChild(e):q(t,e)),t}function U(e,t){v(t.content)?(q(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?q(e,t.content):e.textContent=t.content)}function X(e){var t=e.firstElementChild,s=m(t.children);return{box:t,content:s.find((function(e){return e.classList.contains(n)})),arrow:s.find((function(e){return e.classList.contains(r)||e.classList.contains(o)})),backdrop:s.find((function(e){return e.classList.contains(i)}))}}function Y(e){var t=g(),i=g();i.className="tippy-box",i.setAttribute("data-state","hidden"),i.setAttribute("tabindex","-1");var r=g();function o(n,i){var r=X(t),o=r.box,s=r.content,a=r.arrow;i.theme?o.setAttribute("data-theme",i.theme):o.removeAttribute("data-theme"),"string"==typeof i.animation?o.setAttribute("data-animation",i.animation):o.removeAttribute("data-animation"),i.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof i.maxWidth?i.maxWidth+"px":i.maxWidth,i.role?o.setAttribute("role",i.role):o.removeAttribute("role"),n.content===i.content&&n.allowHTML===i.allowHTML||U(s,e.props),i.arrow?a?n.arrow!==i.arrow&&(o.removeChild(a),o.appendChild(G(i.arrow))):o.appendChild(G(i.arrow)):a&&o.removeChild(a)}return r.className=n,r.setAttribute("data-state","hidden"),U(r,e.props),t.appendChild(i),i.appendChild(r),o(e.props,e.props),{popper:t,onUpdate:o}}Y.$$tippy=!0;var K=1,J=[],Z=[];function Q(e,n){var i,r,o,c,f,v,b,w,S,A=F(e,Object.assign({},N,{},V((i=n,Object.keys(i).reduce((function(e,t){return void 0!==i[t]&&(e[t]=i[t]),e}),{}))))),T=!1,C=!1,M=!1,j=!1,D=[],R=l(xe,A.interactiveDebounce),z=K++,I=(S=A.plugins).filter((function(e,t){return S.indexOf(e)===t})),H={id:z,reference:e,popper:g(),popperInstance:null,props:A,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:I,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(c)},setProps:function(t){W(H.state.isDestroyed,P("setProps"));if(H.state.isDestroyed)return;ae("onBeforeUpdate",[H,t]),be();var n=H.props,i=F(e,Object.assign({},H.props,{},t,{ignoreAttributes:!0}));H.props=i,ye(),n.interactiveDebounce!==i.interactiveDebounce&&(le(),R=l(xe,i.interactiveDebounce));n.triggerTarget&&!i.triggerTarget?d(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):i.triggerTarget&&e.removeAttribute("aria-expanded");ue(),se(),G&&G(n,i);H.popperInstance&&(ke(),Ae().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));ae("onAfterUpdate",[H,t])},setContent:function(e){H.setProps({content:e})},show:function(){W(H.state.isDestroyed,P("show"));var e=H.state.isVisible,t=H.state.isDestroyed,n=!H.state.isEnabled,i=k.isTouch&&!H.props.touch,r=a(H.props.duration,0,N.duration);if(e||t||n||i)return;if(ne().hasAttribute("disabled"))return;if(ae("onShow",[H],!1),!1===H.props.onShow(H))return;H.state.isVisible=!0,te()&&(q.style.visibility="visible");se(),he(),H.state.isMounted||(q.style.transition="none");if(te()){var o=re(),s=o.box,c=o.content;x([s,c],0)}b=function(){var e;if(H.state.isVisible&&!j){if(j=!0,q.offsetHeight,q.style.transition=H.props.moveTransition,te()&&H.props.animation){var t=re(),n=t.box,i=t.content;x([n,i],r),_([n,i],"visible")}ce(),ue(),p(Z,H),null==(e=H.popperInstance)||e.forceUpdate(),H.state.isMounted=!0,ae("onMount",[H]),H.props.animation&&te()&&function(e,t){ge(e,t)}(r,(function(){H.state.isShown=!0,ae("onShown",[H])}))}},function(){var e,t=H.props.appendTo,n=ne();e=H.props.interactive&&t===N.appendTo||"parent"===t?n.parentNode:u(t,[n]);e.contains(q)||e.appendChild(q);ke(),W(H.props.interactive&&t===N.appendTo&&n.nextElementSibling!==q,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.","\n\n","Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.","\n\n","Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.","\n\n","See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}()},hide:function(){W(H.state.isDestroyed,P("hide"));var e=!H.state.isVisible,t=H.state.isDestroyed,n=!H.state.isEnabled,i=a(H.props.duration,1,N.duration);if(e||t||n)return;if(ae("onHide",[H],!1),!1===H.props.onHide(H))return;H.state.isVisible=!1,H.state.isShown=!1,j=!1,T=!1,te()&&(q.style.visibility="hidden");if(le(),me(),se(),te()){var r=re(),o=r.box,s=r.content;H.props.animation&&(x([o,s],i),_([o,s],"hidden"))}ce(),ue(),H.props.animation?te()&&function(e,t){ge(e,(function(){!H.state.isVisible&&q.parentNode&&q.parentNode.contains(q)&&t()}))}(i,H.unmount):H.unmount()},hideWithInteractivity:function(e){W(H.state.isDestroyed,P("hideWithInteractivity"));ie().addEventListener("mousemove",R),p(J,R),R(e)},enable:function(){H.state.isEnabled=!0},disable:function(){H.hide(),H.state.isEnabled=!1},unmount:function(){W(H.state.isDestroyed,P("unmount"));H.state.isVisible&&H.hide();if(!H.state.isMounted)return;Se(),Ae().forEach((function(e){e._tippy.unmount()})),q.parentNode&&q.parentNode.removeChild(q);Z=Z.filter((function(e){return e!==H})),H.state.isMounted=!1,ae("onHidden",[H])},destroy:function(){W(H.state.isDestroyed,P("destroy"));if(H.state.isDestroyed)return;H.clearDelayTimeouts(),H.unmount(),be(),delete e._tippy,H.state.isDestroyed=!0,ae("onDestroy",[H])}};if(!A.render)return $(!0,"render() function has not been supplied."),H;var B=A.render(H),q=B.popper,G=B.onUpdate;q.setAttribute("data-tippy-root",""),q.id="tippy-"+H.id,H.popper=q,e._tippy=H,q._tippy=H;var U=I.map((function(e){return e.fn(H)})),Y=e.hasAttribute("aria-expanded");return ye(),ue(),se(),ae("onCreate",[H]),A.showOnCreate&&Te(),q.addEventListener("mouseenter",(function(){H.props.interactive&&H.state.isVisible&&H.clearDelayTimeouts()})),q.addEventListener("mouseleave",(function(e){H.props.interactive&&H.props.trigger.indexOf("mouseenter")>=0&&(ie().addEventListener("mousemove",R),R(e))})),H;function Q(){var e=H.props.touch;return Array.isArray(e)?e:[e,0]}function ee(){return"hold"===Q()[0]}function te(){var e;return!!(null==(e=H.props.render)?void 0:e.$$tippy)}function ne(){return w||e}function ie(){var e=ne().parentNode;return e?O(e):document}function re(){return X(q)}function oe(e){return H.state.isMounted&&!H.state.isVisible||k.isTouch||f&&"focus"===f.type?0:a(H.props.delay,e?0:1,N.delay)}function se(){q.style.pointerEvents=H.props.interactive&&H.state.isVisible?"":"none",q.style.zIndex=""+H.props.zIndex}function ae(e,t,n){var i;(void 0===n&&(n=!0),U.forEach((function(n){n[e]&&n[e].apply(void 0,t)})),n)&&(i=H.props)[e].apply(i,t)}function ce(){var t=H.props.aria;if(t.content){var n="aria-"+t.content,i=q.id;d(H.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(H.state.isVisible)e.setAttribute(n,t?t+" "+i:i);else{var r=t&&t.replace(i,"").trim();r?e.setAttribute(n,r):e.removeAttribute(n)}}))}}function ue(){!Y&&H.props.aria.expanded&&d(H.props.triggerTarget||e).forEach((function(e){H.props.interactive?e.setAttribute("aria-expanded",H.state.isVisible&&e===ne()?"true":"false"):e.removeAttribute("aria-expanded")}))}function le(){ie().removeEventListener("mousemove",R),J=J.filter((function(e){return e!==R}))}function fe(e){if(!(k.isTouch&&(M||"mousedown"===e.type)||H.props.interactive&&q.contains(e.target))){if(ne().contains(e.target)){if(k.isTouch)return;if(H.state.isVisible&&H.props.trigger.indexOf("click")>=0)return}else ae("onClickOutside",[H,e]);!0===H.props.hideOnClick&&(H.clearDelayTimeouts(),H.hide(),C=!0,setTimeout((function(){C=!1})),H.state.isMounted||me())}}function de(){M=!0}function pe(){M=!1}function he(){var e=ie();e.addEventListener("mousedown",fe,!0),e.addEventListener("touchend",fe,s),e.addEventListener("touchstart",pe,s),e.addEventListener("touchmove",de,s)}function me(){var e=ie();e.removeEventListener("mousedown",fe,!0),e.removeEventListener("touchend",fe,s),e.removeEventListener("touchstart",pe,s),e.removeEventListener("touchmove",de,s)}function ge(e,t){var n=re().box;function i(e){e.target===n&&(E(n,"remove",i),t())}if(0===e)return t();E(n,"remove",v),E(n,"add",i),v=i}function ve(t,n,i){void 0===i&&(i=!1),d(H.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,i),D.push({node:e,eventType:t,handler:n,options:i})}))}function ye(){var e;ee()&&(ve("touchstart",we,{passive:!0}),ve("touchend",_e,{passive:!0})),(e=H.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(ve(e,we),e){case"mouseenter":ve("mouseleave",_e);break;case"focus":ve(L?"focusout":"blur",Oe);break;case"focusin":ve("focusout",Oe)}}))}function be(){D.forEach((function(e){var t=e.node,n=e.eventType,i=e.handler,r=e.options;t.removeEventListener(n,i,r)})),D=[]}function we(e){var t,n=!1;if(H.state.isEnabled&&!Ee(e)&&!C){var i="focus"===(null==(t=f)?void 0:t.type);f=e,w=e.currentTarget,ue(),!H.state.isVisible&&y(e)&&J.forEach((function(t){return t(e)})),"click"===e.type&&(H.props.trigger.indexOf("mouseenter")<0||T)&&!1!==H.props.hideOnClick&&H.state.isVisible?n=!0:Te(e),"click"===e.type&&(T=!n),n&&!i&&Ce(e)}}function xe(e){var t=e.target,n=ne().contains(t)||q.contains(t);"mousemove"===e.type&&n||function(e,t){var n=t.clientX,i=t.clientY;return e.every((function(e){var t=e.popperRect,r=e.popperState,o=e.props.interactiveBorder,s=h(r.placement),a=r.modifiersData.offset;if(!a)return!0;var c="bottom"===s?a.top.y:0,u="top"===s?a.bottom.y:0,l="right"===s?a.left.x:0,f="left"===s?a.right.x:0,d=t.top-i+c>o,p=i-t.bottom-u>o,m=t.left-n+l>o,g=n-t.right-f>o;return d||p||m||g}))}(Ae().concat(q).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:A}:null})).filter(Boolean),e)&&(le(),Ce(e))}function _e(e){Ee(e)||H.props.trigger.indexOf("click")>=0&&T||(H.props.interactive?H.hideWithInteractivity(e):Ce(e))}function Oe(e){H.props.trigger.indexOf("focusin")<0&&e.target!==ne()||H.props.interactive&&e.relatedTarget&&q.contains(e.relatedTarget)||Ce(e)}function Ee(e){return!!k.isTouch&&ee()!==e.type.indexOf("touch")>=0}function ke(){Se();var n=H.props,i=n.popperOptions,r=n.placement,o=n.offset,s=n.getReferenceClientRect,a=n.moveTransition,c=te()?X(q).arrow:null,u=s?{getBoundingClientRect:s,contextElement:s.contextElement||ne()}:e,l=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(te()){var n=re().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];te()&&c&&l.push({name:"arrow",options:{element:c,padding:3}}),l.push.apply(l,(null==i?void 0:i.modifiers)||[]),H.popperInstance=t.createPopper(u,q,Object.assign({},i,{placement:r,onFirstUpdate:b,modifiers:l}))}function Se(){H.popperInstance&&(H.popperInstance.destroy(),H.popperInstance=null)}function Ae(){return m(q.querySelectorAll("[data-tippy-root]"))}function Te(e){H.clearDelayTimeouts(),e&&ae("onTrigger",[H,e]),he();var t=oe(!0),n=Q(),i=n[0],o=n[1];k.isTouch&&"hold"===i&&o&&(t=o),t?r=setTimeout((function(){H.show()}),t):H.show()}function Ce(e){if(H.clearDelayTimeouts(),ae("onUntrigger",[H,e]),H.state.isVisible){if(!(H.props.trigger.indexOf("mouseenter")>=0&&H.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&T)){var t=oe(!1);t?o=setTimeout((function(){H.state.isVisible&&H.hide()}),t):c=requestAnimationFrame((function(){H.hide()}))}}else me()}}function ee(e,t){void 0===t&&(t={});var n=N.plugins.concat(t.plugins||[]);!function(e){var t=!e,n="[object Object]"===Object.prototype.toString.call(e)&&!e.addEventListener;$(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),$(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}(e),B(t,n),document.addEventListener("touchstart",A,s),window.addEventListener("blur",C);var i=Object.assign({},t,{plugins:n}),r=w(e),o=v(i.content),a=r.length>1;W(o&&a,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.","\n\n","Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.","\n\n","1) content: element.innerHTML\n","2) content: () => element.cloneNode(true)"].join(" "));var c=r.reduce((function(e,t){var n=t&&Q(t,i);return n&&e.push(n),e}),[]);return v(e)?c[0]:c}ee.defaultProps=N,ee.setDefaultProps=function(e){B(e,[]),Object.keys(e).forEach((function(t){N[t]=e[t]}))},ee.currentInput=k;var te=Object.assign({},t.applyStyles,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),ne={mouseover:"mouseenter",focusin:"focus",click:"click"};var ie={name:"animateFill",defaultValue:!1,fn:function(e){var t;if(!(null==(t=e.props.render)?void 0:t.$$tippy))return $(e.props.animateFill,"The `animateFill` plugin requires the default render function."),{};var n=X(e.popper),r=n.box,o=n.content,s=e.props.animateFill?function(){var e=g();return e.className=i,_([e],"hidden"),e}():null;return{onCreate:function(){s&&(r.insertBefore(s,r.firstElementChild),r.setAttribute("data-animatefill",""),r.style.overflow="hidden",e.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(s){var e=r.style.transitionDuration,t=Number(e.replace("ms",""));o.style.transitionDelay=Math.round(t/10)+"ms",s.style.transitionDuration=e,_([s],"visible")}},onShow:function(){s&&(s.style.transitionDuration="0ms")},onHide:function(){s&&_([s],"hidden")}}}};var re={clientX:0,clientY:0},oe=[];function se(e){var t=e.clientX,n=e.clientY;re={clientX:t,clientY:n}}var ae={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,n=O(e.props.triggerTarget||t),i=!1,r=!1,o=!0,s=e.props;function a(){return"initial"===e.props.followCursor&&e.state.isVisible}function c(){n.addEventListener("mousemove",f)}function u(){n.removeEventListener("mousemove",f)}function l(){i=!0,e.setProps({getReferenceClientRect:null}),i=!1}function f(n){var i=!n.target||t.contains(n.target),r=e.props.followCursor,o=n.clientX,s=n.clientY,a=t.getBoundingClientRect(),c=o-a.left,u=s-a.top;!i&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),n=o,i=s;"initial"===r&&(n=e.left+c,i=e.top+u);var a="horizontal"===r?e.top:i,l="vertical"===r?e.right:n,f="horizontal"===r?e.bottom:i,d="vertical"===r?e.left:n;return{width:l-d,height:f-a,top:a,right:l,bottom:f,left:d}}})}function d(){e.props.followCursor&&(oe.push({instance:e,doc:n}),function(e){e.addEventListener("mousemove",se)}(n))}function p(){0===(oe=oe.filter((function(t){return t.instance!==e}))).filter((function(e){return e.doc===n})).length&&function(e){e.removeEventListener("mousemove",se)}(n)}return{onCreate:d,onDestroy:p,onBeforeUpdate:function(){s=e.props},onAfterUpdate:function(t,n){var o=n.followCursor;i||void 0!==o&&s.followCursor!==o&&(p(),o?(d(),!e.state.isMounted||r||a()||c()):(u(),l()))},onMount:function(){e.props.followCursor&&!r&&(o&&(f(re),o=!1),a()||c())},onTrigger:function(e,t){y(t)&&(re={clientX:t.clientX,clientY:t.clientY}),r="focus"===t.type},onHidden:function(){e.props.followCursor&&(l(),u(),o=!0)}}}};var ce={name:"inlinePositioning",defaultValue:!1,fn:function(e){var t,n=e.reference;var i=-1,r=!1,o={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(r){var o=r.state;e.props.inlinePositioning&&(t!==o.placement&&e.setProps({getReferenceClientRect:function(){return function(e,t,n,i){if(n.length<2||null===e)return t;if(2===n.length&&i>=0&&n[0].left>n[1].right)return n[i]||t;switch(e){case"top":case"bottom":var r=n[0],o=n[n.length-1],s="top"===e,a=r.top,c=o.bottom,u=s?r.left:o.left,l=s?r.right:o.right;return{top:a,bottom:c,left:u,right:l,width:l-u,height:c-a};case"left":case"right":var f=Math.min.apply(Math,n.map((function(e){return e.left}))),d=Math.max.apply(Math,n.map((function(e){return e.right}))),p=n.filter((function(t){return"left"===e?t.left===f:t.right===d})),h=p[0].top,m=p[p.length-1].bottom;return{top:h,bottom:m,left:f,right:d,width:d-f,height:m-h};default:return t}}(h(o.placement),n.getBoundingClientRect(),m(n.getClientRects()),i)}}),t=o.placement)}};function s(){var t;r||(t=function(e,t){var n;return{popperOptions:Object.assign({},e.popperOptions,{modifiers:[].concat(((null==(n=e.popperOptions)?void 0:n.modifiers)||[]).filter((function(e){return e.name!==t.name})),[t])})}}(e.props,o),r=!0,e.setProps(t),r=!1)}return{onCreate:s,onAfterUpdate:s,onTrigger:function(t,n){if(y(n)){var r=m(e.reference.getClientRects()),o=r.find((function(e){return e.left-2<=n.clientX&&e.right+2>=n.clientX&&e.top-2<=n.clientY&&e.bottom+2>=n.clientY}));i=r.indexOf(o)}},onUntrigger:function(){i=-1}}}};var ue={name:"sticky",defaultValue:!1,fn:function(e){var t=e.reference,n=e.popper;function i(t){return!0===e.props.sticky||e.props.sticky===t}var r=null,o=null;function s(){var a=i("reference")?(e.popperInstance?e.popperInstance.state.elements.reference:t).getBoundingClientRect():null,c=i("popper")?n.getBoundingClientRect():null;(a&&le(r,a)||c&&le(o,c))&&e.popperInstance&&e.popperInstance.update(),r=a,o=c,e.state.isMounted&&requestAnimationFrame(s)}return{onMount:function(){e.props.sticky&&s()}}}};function le(e,t){return!e||!t||(e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left)}ee.setDefaultProps({render:Y}),e.animateFill=ie,e.createSingleton=function(e,t){var n;void 0===t&&(t={}),$(!Array.isArray(e),["The first argument passed to createSingleton() must be an array of","tippy instances. The passed value was",String(e)].join(" "));var i,r=e,o=[],s=t.overrides,a=[],c=!1;function u(){o=r.map((function(e){return e.reference}))}function l(e){r.forEach((function(t){e?t.enable():t.disable()}))}function d(e){return r.map((function(t){var n=t.setProps;return t.setProps=function(r){n(r),t.reference===i&&e.setProps(r)},function(){t.setProps=n}}))}function p(e,t){var n=o.indexOf(t);if(t!==i){i=t;var a=(s||[]).concat("content").reduce((function(e,t){return e[t]=r[n].props[t],e}),{});e.setProps(Object.assign({},a,{getReferenceClientRect:"function"==typeof a.getReferenceClientRect?a.getReferenceClientRect:function(){return t.getBoundingClientRect()}}))}}l(!1),u();var h={fn:function(){return{onDestroy:function(){l(!0)},onHidden:function(){i=null},onClickOutside:function(e){e.props.showOnCreate&&!c&&(c=!0,i=null)},onShow:function(e){e.props.showOnCreate&&!c&&(c=!0,p(e,o[0]))},onTrigger:function(e,t){p(e,t.currentTarget)}}}},m=ee(g(),Object.assign({},f(t,["overrides"]),{plugins:[h].concat(t.plugins||[]),triggerTarget:o,popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat((null==(n=t.popperOptions)?void 0:n.modifiers)||[],[te])})})),v=m.show;m.show=function(e){if(v(),!i&&null==e)return p(m,o[0]);if(!i||null!=e){if("number"==typeof e)return o[e]&&p(m,o[e]);if(r.includes(e)){var t=e.reference;return p(m,t)}return o.includes(e)?p(m,e):void 0}},m.showNext=function(){var e=o[0];if(!i)return m.show(0);var t=o.indexOf(i);m.show(o[t+1]||e)},m.showPrevious=function(){var e=o[o.length-1];if(!i)return m.show(e);var t=o.indexOf(i),n=o[t-1]||e;m.show(n)};var y=m.setProps;return m.setProps=function(e){s=e.overrides||s,y(e)},m.setInstances=function(e){l(!0),a.forEach((function(e){return e()})),r=e,l(!1),u(),d(m),m.setProps({triggerTarget:o})},a=d(m),m},e.default=ee,e.delegate=function(e,t){$(!(t&&t.target),["You must specity a `target` prop indicating a CSS selector string matching","the target elements that should receive a tippy."].join(" "));var n=[],i=[],r=!1,o=t.target,a=f(t,["target"]),c=Object.assign({},a,{trigger:"manual",touch:!1}),u=Object.assign({},a,{showOnCreate:!0}),l=ee(e,c);function p(e){if(e.target&&!r){var n=e.target.closest(o);if(n){var s=n.getAttribute("data-tippy-trigger")||t.trigger||N.trigger;if(!n._tippy&&!("touchstart"===e.type&&"boolean"==typeof u.touch||"touchstart"!==e.type&&s.indexOf(ne[e.type])<0)){var a=ee(n,u);a&&(i=i.concat(a))}}}}function h(e,t,i,r){void 0===r&&(r=!1),e.addEventListener(t,i,r),n.push({node:e,eventType:t,handler:i,options:r})}return d(l).forEach((function(e){var t=e.destroy,o=e.enable,a=e.disable;e.destroy=function(e){void 0===e&&(e=!0),e&&i.forEach((function(e){e.destroy()})),i=[],n.forEach((function(e){var t=e.node,n=e.eventType,i=e.handler,r=e.options;t.removeEventListener(n,i,r)})),n=[],t()},e.enable=function(){o(),i.forEach((function(e){return e.enable()})),r=!1},e.disable=function(){a(),i.forEach((function(e){return e.disable()})),r=!0},function(e){var t=e.reference;h(t,"touchstart",p,s),h(t,"mouseover",p),h(t,"focusin",p),h(t,"click",p)}(e)})),l},e.followCursor=ae,e.hideAll=function(e){var t=void 0===e?{}:e,n=t.exclude,i=t.duration;Z.forEach((function(e){var t=!1;if(n&&(t=b(n)?e.reference===n:e.popper===n.popper),!t){var r=e.props.duration;e.setProps({duration:i}),e.hide(),e.state.isDestroyed||e.setProps({duration:r})}}))},e.inlinePositioning=ce,e.roundArrow='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',e.sticky=ue})),Zn=(Nn=Jn(),((e,t,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of Un(t))Gn.call(e,i)||"default"===i||Bn(e,i,{get:()=>t[i],enumerable:!(n=Xn(t,i))||n.enumerable});return e})((Hn=Bn(null!=Nn?Fn(qn(Nn)):{},"default",Nn&&Nn.__esModule&&"default"in Nn?{get:()=>Nn.default,enumerable:!0}:{value:Nn,enumerable:!0}),Bn(Hn,"__esModule",{value:!0})),Nn));var Qn=e=>{const t={plugins:[]};if(e.includes("duration")&&(t.duration=parseInt(e[e.indexOf("duration")+1])),e.includes("delay")&&(t.delay=parseInt(e[e.indexOf("delay")+1])),e.includes("cursor")){t.plugins.push(Zn.followCursor);const n=e[e.indexOf("cursor")+1]??null;["x","initial"].includes(n)?t.followCursor="x"===n?"horizontal":"initial":t.followCursor=!0}return e.includes("on")&&(t.trigger=e[e.indexOf("on")+1]),e.includes("arrowless")&&(t.arrow=!1),e.includes("html")&&(t.allowHTML=!0),e.includes("interactive")&&(t.interactive=!0),e.includes("border")&&t.interactive&&(t.interactiveBorder=parseInt(e[e.indexOf("border")+1])),e.includes("debounce")&&t.interactive&&(t.interactiveDebounce=parseInt(e[e.indexOf("debounce")+1])),e.includes("max-width")&&(t.maxWidth=parseInt(e[e.indexOf("max-width")+1])),e.includes("theme")&&(t.theme=e[e.indexOf("theme")+1]),t},ei=function(e){e.directive("tooltip",((e,{modifiers:t,expression:n},{evaluateLater:i,effect:r})=>{const o=i(n),s=t.length>0?Qn(t):{};r((()=>{o((t=>{e.__x_tippy||(e.__x_tippy=(0,Zn.default)(e,s)),e.__x_tippy.setContent(t)}))}))}))},ti={};!function(e){"use strict";var t={logger:self.console,WebSocket:self.WebSocket},n={log:function(){if(this.enabled){for(var e,n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];i.push(Date.now()),(e=t.logger).log.apply(e,["[ActionCable]"].concat(i))}}},i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=function(){return(new Date).getTime()},a=function(e){return(s()-e)/1e3},c=function(e,t,n){return Math.max(t,Math.min(n,e))},u=function(){function e(t){r(this,e),this.visibilityDidChange=this.visibilityDidChange.bind(this),this.connection=t,this.reconnectAttempts=0}return e.prototype.start=function(){this.isRunning()||(this.startedAt=s(),delete this.stoppedAt,this.startPolling(),addEventListener("visibilitychange",this.visibilityDidChange),n.log("ConnectionMonitor started. pollInterval = "+this.getPollInterval()+" ms"))},e.prototype.stop=function(){this.isRunning()&&(this.stoppedAt=s(),this.stopPolling(),removeEventListener("visibilitychange",this.visibilityDidChange),n.log("ConnectionMonitor stopped"))},e.prototype.isRunning=function(){return this.startedAt&&!this.stoppedAt},e.prototype.recordPing=function(){this.pingedAt=s()},e.prototype.recordConnect=function(){this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,n.log("ConnectionMonitor recorded connect")},e.prototype.recordDisconnect=function(){this.disconnectedAt=s(),n.log("ConnectionMonitor recorded disconnect")},e.prototype.startPolling=function(){this.stopPolling(),this.poll()},e.prototype.stopPolling=function(){clearTimeout(this.pollTimeout)},e.prototype.poll=function(){var e=this;this.pollTimeout=setTimeout((function(){e.reconnectIfStale(),e.poll()}),this.getPollInterval())},e.prototype.getPollInterval=function(){var e=this.constructor.pollInterval,t=e.min,n=e.max,i=e.multiplier*Math.log(this.reconnectAttempts+1);return Math.round(1e3*c(i,t,n))},e.prototype.reconnectIfStale=function(){this.connectionIsStale()&&(n.log("ConnectionMonitor detected stale connection. reconnectAttempts = "+this.reconnectAttempts+", pollInterval = "+this.getPollInterval()+" ms, time disconnected = "+a(this.disconnectedAt)+" s, stale threshold = "+this.constructor.staleThreshold+" s"),this.reconnectAttempts++,this.disconnectedRecently()?n.log("ConnectionMonitor skipping reopening recent disconnect"):(n.log("ConnectionMonitor reopening"),this.connection.reopen()))},e.prototype.connectionIsStale=function(){return a(this.pingedAt?this.pingedAt:this.startedAt)>this.constructor.staleThreshold},e.prototype.disconnectedRecently=function(){return this.disconnectedAt&&a(this.disconnectedAt)<this.constructor.staleThreshold},e.prototype.visibilityDidChange=function(){var e=this;"visible"===document.visibilityState&&setTimeout((function(){!e.connectionIsStale()&&e.connection.isOpen()||(n.log("ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = "+document.visibilityState),e.connection.reopen())}),200)},e}();u.pollInterval={min:3,max:30,multiplier:5},u.staleThreshold=6;var l={message_types:{welcome:"welcome",disconnect:"disconnect",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},disconnect_reasons:{unauthorized:"unauthorized",invalid_request:"invalid_request",server_restart:"server_restart"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]},f=l.message_types,d=l.protocols,p=d.slice(0,d.length-1),h=[].indexOf,m=function(){function e(t){r(this,e),this.open=this.open.bind(this),this.consumer=t,this.subscriptions=this.consumer.subscriptions,this.monitor=new u(this),this.disconnected=!0}return e.prototype.send=function(e){return!!this.isOpen()&&(this.webSocket.send(JSON.stringify(e)),!0)},e.prototype.open=function(){return this.isActive()?(n.log("Attempted to open WebSocket, but existing socket is "+this.getState()),!1):(n.log("Opening WebSocket, current state is "+this.getState()+", subprotocols: "+d),this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new t.WebSocket(this.consumer.url,d),this.installEventHandlers(),this.monitor.start(),!0)},e.prototype.close=function(){if((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{allowReconnect:!0}).allowReconnect||this.monitor.stop(),this.isActive())return this.webSocket.close()},e.prototype.reopen=function(){if(n.log("Reopening WebSocket, current state is "+this.getState()),!this.isActive())return this.open();try{return this.close()}catch(e){n.log("Failed to reopen WebSocket",e)}finally{n.log("Reopening WebSocket in "+this.constructor.reopenDelay+"ms"),setTimeout(this.open,this.constructor.reopenDelay)}},e.prototype.getProtocol=function(){if(this.webSocket)return this.webSocket.protocol},e.prototype.isOpen=function(){return this.isState("open")},e.prototype.isActive=function(){return this.isState("open","connecting")},e.prototype.isProtocolSupported=function(){return h.call(p,this.getProtocol())>=0},e.prototype.isState=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return h.call(t,this.getState())>=0},e.prototype.getState=function(){if(this.webSocket)for(var e in t.WebSocket)if(t.WebSocket[e]===this.webSocket.readyState)return e.toLowerCase();return null},e.prototype.installEventHandlers=function(){for(var e in this.events){var t=this.events[e].bind(this);this.webSocket["on"+e]=t}},e.prototype.uninstallEventHandlers=function(){for(var e in this.events)this.webSocket["on"+e]=function(){}},e}();m.reopenDelay=500,m.prototype.events={message:function(e){if(this.isProtocolSupported()){var t=JSON.parse(e.data),i=t.identifier,r=t.message,o=t.reason,s=t.reconnect;switch(t.type){case f.welcome:return this.monitor.recordConnect(),this.subscriptions.reload();case f.disconnect:return n.log("Disconnecting. Reason: "+o),this.close({allowReconnect:s});case f.ping:return this.monitor.recordPing();case f.confirmation:return this.subscriptions.confirmSubscription(i),this.subscriptions.notify(i,"connected");case f.rejection:return this.subscriptions.reject(i);default:return this.subscriptions.notify(i,"received",r)}}},open:function(){if(n.log("WebSocket onopen event, using '"+this.getProtocol()+"' subprotocol"),this.disconnected=!1,!this.isProtocolSupported())return n.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close:function(e){if(n.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error:function(){n.log("WebSocket onerror event")}};var g=function(e,t){if(null!=t)for(var n in t){var i=t[n];e[n]=i}return e},v=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments[2];r(this,e),this.consumer=t,this.identifier=JSON.stringify(n),g(this,i)}return e.prototype.perform=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.action=e,this.send(t)},e.prototype.send=function(e){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(e)})},e.prototype.unsubscribe=function(){return this.consumer.subscriptions.remove(this)},e}(),y=function(){function e(t){r(this,e),this.subscriptions=t,this.pendingSubscriptions=[]}return e.prototype.guarantee=function(e){-1==this.pendingSubscriptions.indexOf(e)?(n.log("SubscriptionGuarantor guaranteeing "+e.identifier),this.pendingSubscriptions.push(e)):n.log("SubscriptionGuarantor already guaranteeing "+e.identifier),this.startGuaranteeing()},e.prototype.forget=function(e){n.log("SubscriptionGuarantor forgetting "+e.identifier),this.pendingSubscriptions=this.pendingSubscriptions.filter((function(t){return t!==e}))},e.prototype.startGuaranteeing=function(){this.stopGuaranteeing(),this.retrySubscribing()},e.prototype.stopGuaranteeing=function(){clearTimeout(this.retryTimeout)},e.prototype.retrySubscribing=function(){var e=this;this.retryTimeout=setTimeout((function(){e.subscriptions&&"function"==typeof e.subscriptions.subscribe&&e.pendingSubscriptions.map((function(t){n.log("SubscriptionGuarantor resubscribing "+t.identifier),e.subscriptions.subscribe(t)}))}),500)},e}(),b=function(){function e(t){r(this,e),this.consumer=t,this.guarantor=new y(this),this.subscriptions=[]}return e.prototype.create=function(e,t){var n=e,r="object"===(void 0===n?"undefined":i(n))?n:{channel:n},o=new v(this.consumer,r,t);return this.add(o)},e.prototype.add=function(e){return this.subscriptions.push(e),this.consumer.ensureActiveConnection(),this.notify(e,"initialized"),this.subscribe(e),e},e.prototype.remove=function(e){return this.forget(e),this.findAll(e.identifier).length||this.sendCommand(e,"unsubscribe"),e},e.prototype.reject=function(e){var t=this;return this.findAll(e).map((function(e){return t.forget(e),t.notify(e,"rejected"),e}))},e.prototype.forget=function(e){return this.guarantor.forget(e),this.subscriptions=this.subscriptions.filter((function(t){return t!==e})),e},e.prototype.findAll=function(e){return this.subscriptions.filter((function(t){return t.identifier===e}))},e.prototype.reload=function(){var e=this;return this.subscriptions.map((function(t){return e.subscribe(t)}))},e.prototype.notifyAll=function(e){for(var t=this,n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return this.subscriptions.map((function(n){return t.notify.apply(t,[n,e].concat(i))}))},e.prototype.notify=function(e,t){for(var n=arguments.length,i=Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];return("string"==typeof e?this.findAll(e):[e]).map((function(e){return"function"==typeof e[t]?e[t].apply(e,i):void 0}))},e.prototype.subscribe=function(e){this.sendCommand(e,"subscribe")&&this.guarantor.guarantee(e)},e.prototype.confirmSubscription=function(e){var t=this;n.log("Subscription confirmed "+e),this.findAll(e).map((function(e){return t.guarantor.forget(e)}))},e.prototype.sendCommand=function(e,t){var n=e.identifier;return this.consumer.send({command:t,identifier:n})},e}(),w=function(){function e(t){r(this,e),this._url=t,this.subscriptions=new b(this),this.connection=new m(this)}return e.prototype.send=function(e){return this.connection.send(e)},e.prototype.connect=function(){return this.connection.open()},e.prototype.disconnect=function(){return this.connection.close({allowReconnect:!1})},e.prototype.ensureActiveConnection=function(){if(!this.connection.isActive())return this.connection.open()},o(e,[{key:"url",get:function(){return x(this._url)}}]),e}();function x(e){if("function"==typeof e&&(e=e()),e&&!/^wss?:/i.test(e)){var t=document.createElement("a");return t.href=e,t.href=t.href,t.protocol=t.protocol.replace("http","ws"),t.href}return e}function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O("url")||l.default_mount_path;return new w(e)}function O(e){var t=document.head.querySelector("meta[name='action-cable-"+e+"']");if(t)return t.getAttribute("content")}e.Connection=m,e.ConnectionMonitor=u,e.Consumer=w,e.INTERNAL=l,e.Subscription=v,e.Subscriptions=b,e.SubscriptionGuarantor=y,e.adapters=t,e.createWebSocketURL=x,e.logger=n,e.createConsumer=_,e.getConfig=O,Object.defineProperty(e,"__esModule",{value:!0})}(ti);var ni;function ii(e,t,n){var i,r,o,s,a;function c(){var u=Date.now()-s;u<t&&u>=0?i=setTimeout(c,t-u):(i=null,n||(a=e.apply(o,r),o=r=null))}null==t&&(t=100);var u=function(){o=this,r=arguments,s=Date.now();var u=n&&!i;return i||(i=setTimeout(c,t)),u&&(a=e.apply(o,r),o=r=null),a};return u.clear=function(){i&&(clearTimeout(i),i=null)},u.flush=function(){i&&(a=e.apply(o,r),o=r=null,clearTimeout(i),i=null)},u}ii.debounce=ii,ni=ii;const ri={key:e=>e.getAttribute("key")?e.getAttribute("key"):e.id,lookahead:!1,updating(e,t,n,i){if(e.getAttribute&&"replace"===e.getAttribute("data-morph-strategy"))return e.innerHTML=t.innerHTML,i()}};var oi=function(e,t){return Number(e.slice(0,-1*t.length))},si=function(e){return e.endsWith("px")?{value:e,type:"px",numeric:oi(e,"px")}:e.endsWith("fr")?{value:e,type:"fr",numeric:oi(e,"fr")}:e.endsWith("%")?{value:e,type:"%",numeric:oi(e,"%")}:"auto"===e?{value:e,type:"auto"}:null},ai=function(e){return e.split(" ").map(si)},ci=function(e,t,n){return t.concat(n).map((function(t){return t.style[e]})).filter((function(e){return void 0!==e&&""!==e}))},ui=function(e){for(var t=0;t<e.length;t++)if(e[t].numeric>0)return t;return null},li=function(){return!1},fi=function(e,t,n){e.style[t]=n},di=function(e,t,n){var i=e[t];return void 0!==i?i:n};function pi(e){var t;return(t=[]).concat.apply(t,Array.from(e.ownerDocument.styleSheets).map((function(e){var t=[];try{t=Array.from(e.cssRules||[])}catch(e){}return t}))).filter((function(t){var n=!1;try{n=e.matches(t.selectorText)}catch(e){}return n}))}var hi=function(e,t,n){this.direction=e,this.element=t.element,this.track=t.track,"column"===e?(this.gridTemplateProp="grid-template-columns",this.gridGapProp="grid-column-gap",this.cursor=di(n,"columnCursor",di(n,"cursor","col-resize")),this.snapOffset=di(n,"columnSnapOffset",di(n,"snapOffset",30)),this.dragInterval=di(n,"columnDragInterval",di(n,"dragInterval",1)),this.clientAxis="clientX",this.optionStyle=di(n,"gridTemplateColumns")):"row"===e&&(this.gridTemplateProp="grid-template-rows",this.gridGapProp="grid-row-gap",this.cursor=di(n,"rowCursor",di(n,"cursor","row-resize")),this.snapOffset=di(n,"rowSnapOffset",di(n,"snapOffset",30)),this.dragInterval=di(n,"rowDragInterval",di(n,"dragInterval",1)),this.clientAxis="clientY",this.optionStyle=di(n,"gridTemplateRows")),this.onDragStart=di(n,"onDragStart",li),this.onDragEnd=di(n,"onDragEnd",li),this.onDrag=di(n,"onDrag",li),this.writeStyle=di(n,"writeStyle",fi),this.startDragging=this.startDragging.bind(this),this.stopDragging=this.stopDragging.bind(this),this.drag=this.drag.bind(this),this.minSizeStart=t.minSizeStart,this.minSizeEnd=t.minSizeEnd,t.element&&(this.element.addEventListener("mousedown",this.startDragging),this.element.addEventListener("touchstart",this.startDragging))};hi.prototype.getDimensions=function(){var e=this.grid.getBoundingClientRect(),t=e.width,n=e.height,i=e.top,r=e.bottom,o=e.left,s=e.right;"column"===this.direction?(this.start=i,this.end=r,this.size=n):"row"===this.direction&&(this.start=o,this.end=s,this.size=t)},hi.prototype.getSizeAtTrack=function(e,t){return function(e,t,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var r=i?e+1:e;return t.slice(0,r).reduce((function(e,t){return e+t.numeric}),0)+(n?e*n:0)}(e,this.computedPixels,this.computedGapPixels,t)},hi.prototype.getSizeOfTrack=function(e){return this.computedPixels[e].numeric},hi.prototype.getRawTracks=function(){var e=ci(this.gridTemplateProp,[this.grid],pi(this.grid));if(!e.length){if(this.optionStyle)return this.optionStyle;throw Error("Unable to determine grid template tracks from styles.")}return e[0]},hi.prototype.getGap=function(){var e=ci(this.gridGapProp,[this.grid],pi(this.grid));return e.length?e[0]:null},hi.prototype.getRawComputedTracks=function(){return window.getComputedStyle(this.grid)[this.gridTemplateProp]},hi.prototype.getRawComputedGap=function(){return window.getComputedStyle(this.grid)[this.gridGapProp]},hi.prototype.setTracks=function(e){this.tracks=e.split(" "),this.trackValues=ai(e)},hi.prototype.setComputedTracks=function(e){this.computedTracks=e.split(" "),this.computedPixels=ai(e)},hi.prototype.setGap=function(e){this.gap=e},hi.prototype.setComputedGap=function(e){var t,n;this.computedGap=e,this.computedGapPixels=(t="px",((n=this.computedGap).endsWith(t)?Number(n.slice(0,-1*t.length)):null)||0)},hi.prototype.getMousePosition=function(e){return"touches"in e?e.touches[0][this.clientAxis]:e[this.clientAxis]},hi.prototype.startDragging=function(e){if(!("button"in e)||0===e.button){e.preventDefault(),this.element?this.grid=this.element.parentNode:this.grid=e.target.parentNode,this.getDimensions(),this.setTracks(this.getRawTracks()),this.setComputedTracks(this.getRawComputedTracks()),this.setGap(this.getGap()),this.setComputedGap(this.getRawComputedGap());var t=this.trackValues.filter((function(e){return"%"===e.type})),n=this.trackValues.filter((function(e){return"fr"===e.type}));if(this.totalFrs=n.length,this.totalFrs){var i=ui(n);null!==i&&(this.frToPixels=this.computedPixels[i].numeric/n[i].numeric)}if(t.length){var r=ui(t);null!==r&&(this.percentageToPixels=this.computedPixels[r].numeric/t[r].numeric)}var o=this.getSizeAtTrack(this.track,!1)+this.start;if(this.dragStartOffset=this.getMousePosition(e)-o,this.aTrack=this.track-1,!(this.track<this.tracks.length-1))throw Error("Invalid track index: "+this.track+". Track must be between two other tracks and only "+this.tracks.length+" tracks were found.");this.bTrack=this.track+1,this.aTrackStart=this.getSizeAtTrack(this.aTrack,!1)+this.start,this.bTrackEnd=this.getSizeAtTrack(this.bTrack,!0)+this.start,this.dragging=!0,window.addEventListener("mouseup",this.stopDragging),window.addEventListener("touchend",this.stopDragging),window.addEventListener("touchcancel",this.stopDragging),window.addEventListener("mousemove",this.drag),window.addEventListener("touchmove",this.drag),this.grid.addEventListener("selectstart",li),this.grid.addEventListener("dragstart",li),this.grid.style.userSelect="none",this.grid.style.webkitUserSelect="none",this.grid.style.MozUserSelect="none",this.grid.style.pointerEvents="none",this.grid.style.cursor=this.cursor,window.document.body.style.cursor=this.cursor,this.onDragStart(this.direction,this.track)}},hi.prototype.stopDragging=function(){this.dragging=!1,this.cleanup(),this.onDragEnd(this.direction,this.track),this.needsDestroy&&(this.element&&(this.element.removeEventListener("mousedown",this.startDragging),this.element.removeEventListener("touchstart",this.startDragging)),this.destroyCb(),this.needsDestroy=!1,this.destroyCb=null)},hi.prototype.drag=function(e){var t=this.getMousePosition(e),n=this.getSizeOfTrack(this.track),i=this.aTrackStart+this.minSizeStart+this.dragStartOffset+this.computedGapPixels,r=this.bTrackEnd-this.minSizeEnd-this.computedGapPixels-(n-this.dragStartOffset);t<i+this.snapOffset&&(t=i),t>r-this.snapOffset&&(t=r),t<i?t=i:t>r&&(t=r);var o=t-this.aTrackStart-this.dragStartOffset-this.computedGapPixels,s=this.bTrackEnd-t+this.dragStartOffset-n-this.computedGapPixels;if(this.dragInterval>1){var a=Math.round(o/this.dragInterval)*this.dragInterval;s-=a-o,o=a}if(o<this.minSizeStart&&(o=this.minSizeStart),s<this.minSizeEnd&&(s=this.minSizeEnd),"px"===this.trackValues[this.aTrack].type)this.tracks[this.aTrack]=o+"px";else if("fr"===this.trackValues[this.aTrack].type)if(1===this.totalFrs)this.tracks[this.aTrack]="1fr";else{var c=o/this.frToPixels;this.tracks[this.aTrack]=c+"fr"}else if("%"===this.trackValues[this.aTrack].type){var u=o/this.percentageToPixels;this.tracks[this.aTrack]=u+"%"}if("px"===this.trackValues[this.bTrack].type)this.tracks[this.bTrack]=s+"px";else if("fr"===this.trackValues[this.bTrack].type)if(1===this.totalFrs)this.tracks[this.bTrack]="1fr";else{var l=s/this.frToPixels;this.tracks[this.bTrack]=l+"fr"}else if("%"===this.trackValues[this.bTrack].type){var f=s/this.percentageToPixels;this.tracks[this.bTrack]=f+"%"}var d=this.tracks.join(" ");this.writeStyle(this.grid,this.gridTemplateProp,d),this.onDrag(this.direction,this.track,d)},hi.prototype.cleanup=function(){window.removeEventListener("mouseup",this.stopDragging),window.removeEventListener("touchend",this.stopDragging),window.removeEventListener("touchcancel",this.stopDragging),window.removeEventListener("mousemove",this.drag),window.removeEventListener("touchmove",this.drag),this.grid&&(this.grid.removeEventListener("selectstart",li),this.grid.removeEventListener("dragstart",li),this.grid.style.userSelect="",this.grid.style.webkitUserSelect="",this.grid.style.MozUserSelect="",this.grid.style.pointerEvents="",this.grid.style.cursor=""),window.document.body.style.cursor=""},hi.prototype.destroy=function(e,t){void 0===e&&(e=!0),e||!1===this.dragging?(this.cleanup(),this.element&&(this.element.removeEventListener("mousedown",this.startDragging),this.element.removeEventListener("touchstart",this.startDragging)),t&&t()):(this.needsDestroy=!0,t&&(this.destroyCb=t))};var mi=function(e,t,n){return t in e?e[t]:n},gi=function(e,t){return function(n){if(n.track<1)throw Error("Invalid track index: "+n.track+". Track must be between two other tracks.");var i="column"===e?t.columnMinSizes||{}:t.rowMinSizes||{},r="column"===e?"columnMinSize":"rowMinSize";return new hi(e,Object.assign({},{minSizeStart:mi(i,n.track-1,di(t,r,di(t,"minSize",0))),minSizeEnd:mi(i,n.track+1,di(t,r,di(t,"minSize",0)))},n),t)}},vi=function(e){var t=this;this.columnGutters={},this.rowGutters={},this.options=Object.assign({},{columnGutters:e.columnGutters||[],rowGutters:e.rowGutters||[],columnMinSizes:e.columnMinSizes||{},rowMinSizes:e.rowMinSizes||{}},e),this.options.columnGutters.forEach((function(e){t.columnGutters[e.track]=gi("column",t.options)(e)})),this.options.rowGutters.forEach((function(e){t.rowGutters[e.track]=gi("row",t.options)(e)}))};vi.prototype.addColumnGutter=function(e,t){this.columnGutters[t]&&this.columnGutters[t].destroy(),this.columnGutters[t]=gi("column",this.options)({element:e,track:t})},vi.prototype.addRowGutter=function(e,t){this.rowGutters[t]&&this.rowGutters[t].destroy(),this.rowGutters[t]=gi("row",this.options)({element:e,track:t})},vi.prototype.removeColumnGutter=function(e,t){var n=this;void 0===t&&(t=!0),this.columnGutters[e]&&this.columnGutters[e].destroy(t,(function(){delete n.columnGutters[e]}))},vi.prototype.removeRowGutter=function(e,t){var n=this;void 0===t&&(t=!0),this.rowGutters[e]&&this.rowGutters[e].destroy(t,(function(){delete n.rowGutters[e]}))},vi.prototype.handleDragStart=function(e,t,n){"column"===t?(this.columnGutters[n]&&this.columnGutters[n].destroy(),this.columnGutters[n]=gi("column",this.options)({track:n}),this.columnGutters[n].startDragging(e)):"row"===t&&(this.rowGutters[n]&&this.rowGutters[n].destroy(),this.rowGutters[n]=gi("row",this.options)({track:n}),this.rowGutters[n].startDragging(e))},vi.prototype.destroy=function(e){var t=this;void 0===e&&(e=!0),Object.keys(this.columnGutters).forEach((function(n){return t.columnGutters[n].destroy(e,(function(){delete t.columnGutters[n]}))})),Object.keys(this.rowGutters).forEach((function(n){return t.rowGutters[n].destroy(e,(function(){delete t.rowGutters[n]}))}))};var yi=function(e){return new vi(e)};function bi(e){return e?(e.nodeName||"").toLowerCase():null}function wi(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function xi(e){return e instanceof wi(e).Element||e instanceof Element}function _i(e){return e instanceof wi(e).HTMLElement||e instanceof HTMLElement}function Oi(e){return"undefined"!=typeof ShadowRoot&&(e instanceof wi(e).ShadowRoot||e instanceof ShadowRoot)}var Ei={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},r=t.elements[e];_i(r)&&bi(r)&&(Object.assign(r.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],r=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});_i(i)&&bi(i)&&(Object.assign(i.style,o),Object.keys(r).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]},ki=Math.max,Si=Math.min,Ai=Math.round;function Ti(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),i=1,r=1;if(_i(e)&&t){var o=e.offsetHeight,s=e.offsetWidth;s>0&&(i=Ai(n.width)/s||1),o>0&&(r=Ai(n.height)/o||1)}return{width:n.width/i,height:n.height/r,top:n.top/r,right:n.right/i,bottom:n.bottom/r,left:n.left/i,x:n.left/i,y:n.top/r}}function Ci(e){var t=wi(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Mi(e){return((xi(e)?e.ownerDocument:e.document)||window.document).documentElement}function ji(e){return Ti(Mi(e)).left+Ci(e).scrollLeft}function Li(e){return wi(e).getComputedStyle(e)}function Pi(e){var t=Li(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function Di(e,t,n){void 0===n&&(n=!1);var i,r,o=_i(t),s=_i(t)&&function(e){var t=e.getBoundingClientRect(),n=Ai(t.width)/e.offsetWidth||1,i=Ai(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),a=Mi(t),c=Ti(e,s),u={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!n)&&(("body"!==bi(t)||Pi(a))&&(u=(i=t)!==wi(i)&&_i(i)?{scrollLeft:(r=i).scrollLeft,scrollTop:r.scrollTop}:Ci(i)),_i(t)?((l=Ti(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=ji(a))),{x:c.left+u.scrollLeft-l.x,y:c.top+u.scrollTop-l.y,width:c.width,height:c.height}}function Ri(e){var t=Ti(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function zi(e){return"html"===bi(e)?e:e.assignedSlot||e.parentNode||(Oi(e)?e.host:null)||Mi(e)}function Wi(e){return["html","body","#document"].indexOf(bi(e))>=0?e.ownerDocument.body:_i(e)&&Pi(e)?e:Wi(zi(e))}function $i(e,t){var n;void 0===t&&(t=[]);var i=Wi(e),r=i===(null==(n=e.ownerDocument)?void 0:n.body),o=wi(i),s=r?[o].concat(o.visualViewport||[],Pi(i)?i:[]):i,a=t.concat(s);return r?a:a.concat($i(zi(s)))}function Ii(e){return["table","td","th"].indexOf(bi(e))>=0}function Ni(e){return _i(e)&&"fixed"!==Li(e).position?e.offsetParent:null}function Hi(e){for(var t=wi(e),n=Ni(e);n&&Ii(n)&&"static"===Li(n).position;)n=Ni(n);return n&&("html"===bi(n)||"body"===bi(n)&&"static"===Li(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&_i(e)&&"fixed"===Li(e).position)return null;var n=zi(e);for(Oi(n)&&(n=n.host);_i(n)&&["html","body"].indexOf(bi(n))<0;){var i=Li(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}var Vi="top",Fi="bottom",Bi="right",qi="left",Gi="auto",Ui=[Vi,Fi,Bi,qi],Xi="start",Yi="end",Ki="viewport",Ji="popper",Zi=Ui.reduce((function(e,t){return e.concat([t+"-"+Xi,t+"-"+Yi])}),[]),Qi=[].concat(Ui,[Gi]).reduce((function(e,t){return e.concat([t,t+"-"+Xi,t+"-"+Yi])}),[]),er=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function tr(e){var t=new Map,n=new Set,i=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var i=t.get(e);i&&r(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),i}var nr={placement:"bottom",modifiers:[],strategy:"absolute"};function ir(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function rr(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,r=t.defaultOptions,o=void 0===r?nr:r;return function(e,t,n){void 0===n&&(n=o);var r,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},nr,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],u=!1,l={state:a,setOptions:function(n){var r="function"==typeof n?n(a.options):n;f(),a.options=Object.assign({},o,a.options,r),a.scrollParents={reference:xi(e)?$i(e):e.contextElement?$i(e.contextElement):[],popper:$i(t)};var s=function(e){var t=tr(e);return er.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(i,a.options.modifiers)));return a.orderedModifiers=s.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,r=e.effect;if("function"==typeof r){var o=r({state:a,name:t,instance:l,options:i}),s=function(){};c.push(o||s)}})),l.update()},forceUpdate:function(){if(!u){var e=a.elements,t=e.reference,n=e.popper;if(ir(t,n)){a.rects={reference:Di(t,Hi(n),"fixed"===a.options.strategy),popper:Ri(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var r=a.orderedModifiers[i],o=r.fn,s=r.options,c=void 0===s?{}:s,f=r.name;"function"==typeof o&&(a=o({state:a,options:c,name:f,instance:l})||a)}else a.reset=!1,i=-1}}},update:(r=function(){return new Promise((function(e){l.forceUpdate(),e(a)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(r())}))}))),s}),destroy:function(){f(),u=!0}};if(!ir(e,t))return l;function f(){c.forEach((function(e){return e()})),c=[]}return l.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var or={passive:!0};function sr(e){return e.split("-")[0]}function ar(e){return e.split("-")[1]}function cr(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ur(e){var t,n=e.reference,i=e.element,r=e.placement,o=r?sr(r):null,s=r?ar(r):null,a=n.x+n.width/2-i.width/2,c=n.y+n.height/2-i.height/2;switch(o){case Vi:t={x:a,y:n.y-i.height};break;case Fi:t={x:a,y:n.y+n.height};break;case Bi:t={x:n.x+n.width,y:c};break;case qi:t={x:n.x-i.width,y:c};break;default:t={x:n.x,y:n.y}}var u=o?cr(o):null;if(null!=u){var l="y"===u?"height":"width";switch(s){case Xi:t[u]=t[u]-(n[l]/2-i[l]/2);break;case Yi:t[u]=t[u]+(n[l]/2-i[l]/2)}}return t}var lr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function fr(e){var t,n=e.popper,i=e.popperRect,r=e.placement,o=e.variation,s=e.offsets,a=e.position,c=e.gpuAcceleration,u=e.adaptive,l=e.roundOffsets,f=e.isFixed,d=s.x,p=void 0===d?0:d,h=s.y,m=void 0===h?0:h,g="function"==typeof l?l({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var v=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),b=qi,w=Vi,x=window;if(u){var _=Hi(n),O="clientHeight",E="clientWidth";if(_===wi(n)&&"static"!==Li(_=Mi(n)).position&&"absolute"===a&&(O="scrollHeight",E="scrollWidth"),r===Vi||(r===qi||r===Bi)&&o===Yi)w=Fi,m-=(f&&_===x&&x.visualViewport?x.visualViewport.height:_[O])-i.height,m*=c?1:-1;if(r===qi||(r===Vi||r===Fi)&&o===Yi)b=Bi,p-=(f&&_===x&&x.visualViewport?x.visualViewport.width:_[E])-i.width,p*=c?1:-1}var k,S=Object.assign({position:a},u&&lr),A=!0===l?function(e){var t=e.x,n=e.y,i=window.devicePixelRatio||1;return{x:Ai(t*i)/i||0,y:Ai(n*i)/i||0}}({x:p,y:m}):{x:p,y:m};return p=A.x,m=A.y,c?Object.assign({},S,((k={})[w]=y?"0":"",k[b]=v?"0":"",k.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",k)):Object.assign({},S,((t={})[w]=y?m+"px":"",t[b]=v?p+"px":"",t.transform="",t))}var dr={left:"right",right:"left",bottom:"top",top:"bottom"};function pr(e){return e.replace(/left|right|bottom|top/g,(function(e){return dr[e]}))}var hr={start:"end",end:"start"};function mr(e){return e.replace(/start|end/g,(function(e){return hr[e]}))}function gr(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Oi(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function vr(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function yr(e,t){return t===Ki?vr(function(e){var t=wi(e),n=Mi(e),i=t.visualViewport,r=n.clientWidth,o=n.clientHeight,s=0,a=0;return i&&(r=i.width,o=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=i.offsetLeft,a=i.offsetTop)),{width:r,height:o,x:s+ji(e),y:a}}(e)):xi(t)?function(e){var t=Ti(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):vr(function(e){var t,n=Mi(e),i=Ci(e),r=null==(t=e.ownerDocument)?void 0:t.body,o=ki(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=ki(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-i.scrollLeft+ji(e),c=-i.scrollTop;return"rtl"===Li(r||n).direction&&(a+=ki(n.clientWidth,r?r.clientWidth:0)-o),{width:o,height:s,x:a,y:c}}(Mi(e)))}function br(e,t,n){var i="clippingParents"===t?function(e){var t=$i(zi(e)),n=["absolute","fixed"].indexOf(Li(e).position)>=0&&_i(e)?Hi(e):e;return xi(n)?t.filter((function(e){return xi(e)&&gr(e,n)&&"body"!==bi(e)})):[]}(e):[].concat(t),r=[].concat(i,[n]),o=r[0],s=r.reduce((function(t,n){var i=yr(e,n);return t.top=ki(i.top,t.top),t.right=Si(i.right,t.right),t.bottom=Si(i.bottom,t.bottom),t.left=ki(i.left,t.left),t}),yr(e,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function wr(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function xr(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function _r(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=void 0===i?e.placement:i,o=n.boundary,s=void 0===o?"clippingParents":o,a=n.rootBoundary,c=void 0===a?Ki:a,u=n.elementContext,l=void 0===u?Ji:u,f=n.altBoundary,d=void 0!==f&&f,p=n.padding,h=void 0===p?0:p,m=wr("number"!=typeof h?h:xr(h,Ui)),g=l===Ji?"reference":Ji,v=e.rects.popper,y=e.elements[d?g:l],b=br(xi(y)?y:y.contextElement||Mi(e.elements.popper),s,c),w=Ti(e.elements.reference),x=ur({reference:w,element:v,strategy:"absolute",placement:r}),_=vr(Object.assign({},v,x)),O=l===Ji?_:w,E={top:b.top-O.top+m.top,bottom:O.bottom-b.bottom+m.bottom,left:b.left-O.left+m.left,right:O.right-b.right+m.right},k=e.modifiersData.offset;if(l===Ji&&k){var S=k[r];Object.keys(E).forEach((function(e){var t=[Bi,Fi].indexOf(e)>=0?1:-1,n=[Vi,Fi].indexOf(e)>=0?"y":"x";E[e]+=S[n]*t}))}return E}function Or(e,t,n){return ki(e,Si(t,n))}function Er(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function kr(e){return[Vi,Bi,Fi,qi].some((function(t){return e[t]>=0}))}var Sr=rr({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,r=i.scroll,o=void 0===r||r,s=i.resize,a=void 0===s||s,c=wi(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach((function(e){e.addEventListener("scroll",n.update,or)})),a&&c.addEventListener("resize",n.update,or),function(){o&&u.forEach((function(e){e.removeEventListener("scroll",n.update,or)})),a&&c.removeEventListener("resize",n.update,or)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=ur({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=void 0===i||i,o=n.adaptive,s=void 0===o||o,a=n.roundOffsets,c=void 0===a||a,u={placement:sr(t.placement),variation:ar(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,fr(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,fr(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Ei,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.offset,o=void 0===r?[0,0]:r,s=Qi.reduce((function(e,n){return e[n]=function(e,t,n){var i=sr(e),r=[qi,Vi].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*r,[qi,Bi].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,o),e}),{}),a=s[t.placement],c=a.x,u=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[i]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=n.mainAxis,o=void 0===r||r,s=n.altAxis,a=void 0===s||s,c=n.fallbackPlacements,u=n.padding,l=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=sr(g),y=c||(v===g||!h?[pr(g)]:function(e){if(sr(e)===Gi)return[];var t=pr(e);return[mr(e),t,mr(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(sr(n)===Gi?function(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,u=void 0===c?Qi:c,l=ar(i),f=l?a?Zi:Zi.filter((function(e){return ar(e)===l})):Ui,d=f.filter((function(e){return u.indexOf(e)>=0}));0===d.length&&(d=f);var p=d.reduce((function(t,n){return t[n]=_r(e,{placement:n,boundary:r,rootBoundary:o,padding:s})[sr(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:l,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,x=t.rects.popper,_=new Map,O=!0,E=b[0],k=0;k<b.length;k++){var S=b[k],A=sr(S),T=ar(S)===Xi,C=[Vi,Fi].indexOf(A)>=0,M=C?"width":"height",j=_r(t,{placement:S,boundary:l,rootBoundary:f,altBoundary:d,padding:u}),L=C?T?Bi:qi:T?Fi:Vi;w[M]>x[M]&&(L=pr(L));var P=pr(L),D=[];if(o&&D.push(j[A]<=0),a&&D.push(j[L]<=0,j[P]<=0),D.every((function(e){return e}))){E=S,O=!1;break}_.set(S,D)}if(O)for(var R=function(e){var t=b.find((function(t){var n=_.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},z=h?3:1;z>0;z--){if("break"===R(z))break}t.placement!==E&&(t.modifiersData[i]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.mainAxis,o=void 0===r||r,s=n.altAxis,a=void 0!==s&&s,c=n.boundary,u=n.rootBoundary,l=n.altBoundary,f=n.padding,d=n.tether,p=void 0===d||d,h=n.tetherOffset,m=void 0===h?0:h,g=_r(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:l}),v=sr(t.placement),y=ar(t.placement),b=!y,w=cr(v),x="x"===w?"y":"x",_=t.modifiersData.popperOffsets,O=t.rects.reference,E=t.rects.popper,k="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,S="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(_){if(o){var C,M="y"===w?Vi:qi,j="y"===w?Fi:Bi,L="y"===w?"height":"width",P=_[w],D=P+g[M],R=P-g[j],z=p?-E[L]/2:0,W=y===Xi?O[L]:E[L],$=y===Xi?-E[L]:-O[L],I=t.elements.arrow,N=p&&I?Ri(I):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=H[M],F=H[j],B=Or(0,O[L],N[L]),q=b?O[L]/2-z-B-V-S.mainAxis:W-B-V-S.mainAxis,G=b?-O[L]/2+z+B+F+S.mainAxis:$+B+F+S.mainAxis,U=t.elements.arrow&&Hi(t.elements.arrow),X=U?"y"===w?U.clientTop||0:U.clientLeft||0:0,Y=null!=(C=null==A?void 0:A[w])?C:0,K=P+G-Y,J=Or(p?Si(D,P+q-Y-X):D,P,p?ki(R,K):R);_[w]=J,T[w]=J-P}if(a){var Z,Q="x"===w?Vi:qi,ee="x"===w?Fi:Bi,te=_[x],ne="y"===x?"height":"width",ie=te+g[Q],re=te-g[ee],oe=-1!==[Vi,qi].indexOf(v),se=null!=(Z=null==A?void 0:A[x])?Z:0,ae=oe?ie:te-O[ne]-E[ne]-se+S.altAxis,ce=oe?te+O[ne]+E[ne]-se-S.altAxis:re,ue=p&&oe?function(e,t,n){var i=Or(e,t,n);return i>n?n:i}(ae,te,ce):Or(p?ae:ie,te,p?ce:re);_[x]=ue,T[x]=ue-te}t.modifiersData[i]=T}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,r=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=sr(n.placement),c=cr(a),u=[qi,Bi].indexOf(a)>=0?"height":"width";if(o&&s){var l=function(e,t){return wr("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:xr(e,Ui))}(r.padding,n),f=Ri(o),d="y"===c?Vi:qi,p="y"===c?Fi:Bi,h=n.rects.reference[u]+n.rects.reference[c]-s[c]-n.rects.popper[u],m=s[c]-n.rects.reference[c],g=Hi(o),v=g?"y"===c?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,b=l[d],w=v-f[u]-l[p],x=v/2-f[u]/2+y,_=Or(b,x,w),O=c;n.modifiersData[i]=((t={})[O]=_,t.centerOffset=_-x,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&gr(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,s=_r(t,{elementContext:"reference"}),a=_r(t,{altBoundary:!0}),c=Er(s,i),u=Er(a,r,o),l=kr(c),f=kr(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":f})}}]}),Ar="tippy-content",Tr="tippy-backdrop",Cr="tippy-arrow",Mr="tippy-svg-arrow",jr={passive:!0,capture:!0},Lr=function(){return document.body};function Pr(e,t,n){if(Array.isArray(e)){var i=e[t];return null==i?Array.isArray(n)?n[t]:n:i}return e}function Dr(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function Rr(e,t){return"function"==typeof e?e.apply(void 0,t):e}function zr(e,t){return 0===t?e:function(i){clearTimeout(n),n=setTimeout((function(){e(i)}),t)};var n}function Wr(e){return[].concat(e)}function $r(e,t){-1===e.indexOf(t)&&e.push(t)}function Ir(e){return e.split("-")[0]}function Nr(e){return[].slice.call(e)}function Hr(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function Vr(){return document.createElement("div")}function Fr(e){return["Element","Fragment"].some((function(t){return Dr(e,t)}))}function Br(e){return Dr(e,"MouseEvent")}function qr(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function Gr(e){return Fr(e)?[e]:function(e){return Dr(e,"NodeList")}(e)?Nr(e):Array.isArray(e)?e:Nr(document.querySelectorAll(e))}function Ur(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function Xr(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function Yr(e){var t,n=Wr(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function Kr(e,t,n){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[i](t,n)}))}function Jr(e,t){for(var n=t;n;){var i;if(e.contains(n))return!0;n=null==n.getRootNode||null==(i=n.getRootNode())?void 0:i.host}return!1}var Zr={isTouch:!1},Qr=0;function eo(){Zr.isTouch||(Zr.isTouch=!0,window.performance&&document.addEventListener("mousemove",to))}function to(){var e=performance.now();e-Qr<20&&(Zr.isTouch=!1,document.removeEventListener("mousemove",to)),Qr=e}function no(){var e=document.activeElement;if(qr(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var io=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var ro={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},oo=Object.assign({appendTo:Lr,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},ro,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),so=Object.keys(oo);function ao(e){var t=(e.plugins||[]).reduce((function(t,n){var i,r=n.name,o=n.defaultValue;r&&(t[r]=void 0!==e[r]?e[r]:null!=(i=oo[r])?i:o);return t}),{});return Object.assign({},e,t)}function co(e,t){var n=Object.assign({},t,{content:Rr(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(ao(Object.assign({},oo,{plugins:t}))):so).reduce((function(t,n){var i=(e.getAttribute("data-tippy-"+n)||"").trim();if(!i)return t;if("content"===n)t[n]=i;else try{t[n]=JSON.parse(i)}catch(e){t[n]=i}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},oo.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function uo(e,t){e.innerHTML=t}function lo(e){var t=Vr();return!0===e?t.className=Cr:(t.className=Mr,Fr(e)?t.appendChild(e):uo(t,e)),t}function fo(e,t){Fr(t.content)?(uo(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?uo(e,t.content):e.textContent=t.content)}function po(e){var t=e.firstElementChild,n=Nr(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(Ar)})),arrow:n.find((function(e){return e.classList.contains(Cr)||e.classList.contains(Mr)})),backdrop:n.find((function(e){return e.classList.contains(Tr)}))}}function ho(e){var t=Vr(),n=Vr();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var i=Vr();function r(n,i){var r=po(t),o=r.box,s=r.content,a=r.arrow;i.theme?o.setAttribute("data-theme",i.theme):o.removeAttribute("data-theme"),"string"==typeof i.animation?o.setAttribute("data-animation",i.animation):o.removeAttribute("data-animation"),i.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof i.maxWidth?i.maxWidth+"px":i.maxWidth,i.role?o.setAttribute("role",i.role):o.removeAttribute("role"),n.content===i.content&&n.allowHTML===i.allowHTML||fo(s,e.props),i.arrow?a?n.arrow!==i.arrow&&(o.removeChild(a),o.appendChild(lo(i.arrow))):o.appendChild(lo(i.arrow)):a&&o.removeChild(a)}return i.className=Ar,i.setAttribute("data-state","hidden"),fo(i,e.props),t.appendChild(n),n.appendChild(i),r(e.props,e.props),{popper:t,onUpdate:r}}ho.$$tippy=!0;var mo=1,go=[],vo=[];function yo(e,t){var n,i,r,o,s,a,c,u,l=co(e,Object.assign({},oo,ao(Hr(t)))),f=!1,d=!1,p=!1,h=!1,m=[],g=zr(U,l.interactiveDebounce),v=mo++,y=(u=l.plugins).filter((function(e,t){return u.indexOf(e)===t})),b={id:v,reference:e,popper:Vr(),popperInstance:null,props:l,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(i),cancelAnimationFrame(r)},setProps:function(t){0;if(b.state.isDestroyed)return;P("onBeforeUpdate",[b,t]),q();var n=b.props,i=co(e,Object.assign({},n,Hr(t),{ignoreAttributes:!0}));b.props=i,B(),n.interactiveDebounce!==i.interactiveDebounce&&(z(),g=zr(U,i.interactiveDebounce));n.triggerTarget&&!i.triggerTarget?Wr(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):i.triggerTarget&&e.removeAttribute("aria-expanded");R(),L(),_&&_(n,i);b.popperInstance&&(J(),Q().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));P("onAfterUpdate",[b,t])},setContent:function(e){b.setProps({content:e})},show:function(){0;var e=b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,i=Zr.isTouch&&!b.props.touch,r=Pr(b.props.duration,0,oo.duration);if(e||t||n||i)return;if(T().hasAttribute("disabled"))return;if(P("onShow",[b],!1),!1===b.props.onShow(b))return;b.state.isVisible=!0,A()&&(x.style.visibility="visible");L(),N(),b.state.isMounted||(x.style.transition="none");if(A()){var o=M(),s=o.box,c=o.content;Ur([s,c],0)}a=function(){var e;if(b.state.isVisible&&!h){if(h=!0,x.offsetHeight,x.style.transition=b.props.moveTransition,A()&&b.props.animation){var t=M(),n=t.box,i=t.content;Ur([n,i],r),Xr([n,i],"visible")}D(),R(),$r(vo,b),null==(e=b.popperInstance)||e.forceUpdate(),P("onMount",[b]),b.props.animation&&A()&&function(e,t){V(e,t)}(r,(function(){b.state.isShown=!0,P("onShown",[b])}))}},function(){var e,t=b.props.appendTo,n=T();e=b.props.interactive&&t===Lr||"parent"===t?n.parentNode:Rr(t,[n]);e.contains(x)||e.appendChild(x);b.state.isMounted=!0,J(),!1}()},hide:function(){0;var e=!b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,i=Pr(b.props.duration,1,oo.duration);if(e||t||n)return;if(P("onHide",[b],!1),!1===b.props.onHide(b))return;b.state.isVisible=!1,b.state.isShown=!1,h=!1,f=!1,A()&&(x.style.visibility="hidden");if(z(),H(),L(!0),A()){var r=M(),o=r.box,s=r.content;b.props.animation&&(Ur([o,s],i),Xr([o,s],"hidden"))}D(),R(),b.props.animation?A()&&function(e,t){V(e,(function(){!b.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&t()}))}(i,b.unmount):b.unmount()},hideWithInteractivity:function(e){0;C().addEventListener("mousemove",g),$r(go,g),g(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){0;b.state.isVisible&&b.hide();if(!b.state.isMounted)return;Z(),Q().forEach((function(e){e._tippy.unmount()})),x.parentNode&&x.parentNode.removeChild(x);vo=vo.filter((function(e){return e!==b})),b.state.isMounted=!1,P("onHidden",[b])},destroy:function(){0;if(b.state.isDestroyed)return;b.clearDelayTimeouts(),b.unmount(),q(),delete e._tippy,b.state.isDestroyed=!0,P("onDestroy",[b])}};if(!l.render)return b;var w=l.render(b),x=w.popper,_=w.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+b.id,b.popper=x,e._tippy=b,x._tippy=b;var O=y.map((function(e){return e.fn(b)})),E=e.hasAttribute("aria-expanded");return B(),R(),L(),P("onCreate",[b]),l.showOnCreate&&ee(),x.addEventListener("mouseenter",(function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()})),x.addEventListener("mouseleave",(function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&C().addEventListener("mousemove",g)})),b;function k(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function S(){return"hold"===k()[0]}function A(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function T(){return c||e}function C(){var e=T().parentNode;return e?Yr(e):document}function M(){return po(x)}function j(e){return b.state.isMounted&&!b.state.isVisible||Zr.isTouch||o&&"focus"===o.type?0:Pr(b.props.delay,e?0:1,oo.delay)}function L(e){void 0===e&&(e=!1),x.style.pointerEvents=b.props.interactive&&!e?"":"none",x.style.zIndex=""+b.props.zIndex}function P(e,t,n){var i;(void 0===n&&(n=!0),O.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(i=b.props)[e].apply(i,t)}function D(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,i=x.id;Wr(b.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+i:i);else{var r=t&&t.replace(i,"").trim();r?e.setAttribute(n,r):e.removeAttribute(n)}}))}}function R(){!E&&b.props.aria.expanded&&Wr(b.props.triggerTarget||e).forEach((function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===T()?"true":"false"):e.removeAttribute("aria-expanded")}))}function z(){C().removeEventListener("mousemove",g),go=go.filter((function(e){return e!==g}))}function W(t){if(!Zr.isTouch||!p&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!Jr(x,n)){if(Wr(b.props.triggerTarget||e).some((function(e){return Jr(e,n)}))){if(Zr.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else P("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),d=!0,setTimeout((function(){d=!1})),b.state.isMounted||H())}}}function $(){p=!0}function I(){p=!1}function N(){var e=C();e.addEventListener("mousedown",W,!0),e.addEventListener("touchend",W,jr),e.addEventListener("touchstart",I,jr),e.addEventListener("touchmove",$,jr)}function H(){var e=C();e.removeEventListener("mousedown",W,!0),e.removeEventListener("touchend",W,jr),e.removeEventListener("touchstart",I,jr),e.removeEventListener("touchmove",$,jr)}function V(e,t){var n=M().box;function i(e){e.target===n&&(Kr(n,"remove",i),t())}if(0===e)return t();Kr(n,"remove",s),Kr(n,"add",i),s=i}function F(t,n,i){void 0===i&&(i=!1),Wr(b.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,i),m.push({node:e,eventType:t,handler:n,options:i})}))}function B(){var e;S()&&(F("touchstart",G,{passive:!0}),F("touchend",X,{passive:!0})),(e=b.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(F(e,G),e){case"mouseenter":F("mouseleave",X);break;case"focus":F(io?"focusout":"blur",Y);break;case"focusin":F("focusout",Y)}}))}function q(){m.forEach((function(e){var t=e.node,n=e.eventType,i=e.handler,r=e.options;t.removeEventListener(n,i,r)})),m=[]}function G(e){var t,n=!1;if(b.state.isEnabled&&!K(e)&&!d){var i="focus"===(null==(t=o)?void 0:t.type);o=e,c=e.currentTarget,R(),!b.state.isVisible&&Br(e)&&go.forEach((function(t){return t(e)})),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||f)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:ee(e),"click"===e.type&&(f=!n),n&&!i&&te(e)}}function U(e){var t=e.target,n=T().contains(t)||x.contains(t);"mousemove"===e.type&&n||function(e,t){var n=t.clientX,i=t.clientY;return e.every((function(e){var t=e.popperRect,r=e.popperState,o=e.props.interactiveBorder,s=Ir(r.placement),a=r.modifiersData.offset;if(!a)return!0;var c="bottom"===s?a.top.y:0,u="top"===s?a.bottom.y:0,l="right"===s?a.left.x:0,f="left"===s?a.right.x:0,d=t.top-i+c>o,p=i-t.bottom-u>o,h=t.left-n+l>o,m=n-t.right-f>o;return d||p||h||m}))}(Q().concat(x).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:l}:null})).filter(Boolean),e)&&(z(),te(e))}function X(e){K(e)||b.props.trigger.indexOf("click")>=0&&f||(b.props.interactive?b.hideWithInteractivity(e):te(e))}function Y(e){b.props.trigger.indexOf("focusin")<0&&e.target!==T()||b.props.interactive&&e.relatedTarget&&x.contains(e.relatedTarget)||te(e)}function K(e){return!!Zr.isTouch&&S()!==e.type.indexOf("touch")>=0}function J(){Z();var t=b.props,n=t.popperOptions,i=t.placement,r=t.offset,o=t.getReferenceClientRect,s=t.moveTransition,c=A()?po(x).arrow:null,u=o?{getBoundingClientRect:o,contextElement:o.contextElement||T()}:e,l=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(A()){var n=M().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];A()&&c&&l.push({name:"arrow",options:{element:c,padding:3}}),l.push.apply(l,(null==n?void 0:n.modifiers)||[]),b.popperInstance=Sr(u,x,Object.assign({},n,{placement:i,onFirstUpdate:a,modifiers:l}))}function Z(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Q(){return Nr(x.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&P("onTrigger",[b,e]),N();var t=j(!0),i=k(),r=i[0],o=i[1];Zr.isTouch&&"hold"===r&&o&&(t=o),t?n=setTimeout((function(){b.show()}),t):b.show()}function te(e){if(b.clearDelayTimeouts(),P("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&f)){var t=j(!1);t?i=setTimeout((function(){b.state.isVisible&&b.hide()}),t):r=requestAnimationFrame((function(){b.hide()}))}}else H()}}function bo(e,t){void 0===t&&(t={});var n=oo.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",eo,jr),window.addEventListener("blur",no);var i=Object.assign({},t,{plugins:n}),r=Gr(e).reduce((function(e,t){var n=t&&yo(t,i);return n&&e.push(n),e}),[]);return Fr(e)?r[0]:r}bo.defaultProps=oo,bo.setDefaultProps=function(e){Object.keys(e).forEach((function(t){oo[t]=e[t]}))},bo.currentInput=Zr;Object.assign({},Ei,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});bo.setDefaultProps({render:ho});var wo=bo;var xo={};!function(e){if("undefined"!=typeof window){var t,n=0,i=!1,r=!1,o="message".length,s="[iFrameSizer]",a=s.length,c=null,u=window.requestAnimationFrame,l={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},f={},d=null,p={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){_("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}},h={};window.jQuery&&((t=window.jQuery).fn?t.fn.iFrameResize||(t.fn.iFrameResize=function(e){return this.filter("iframe").each((function(t,n){z(n,e)})).end()}):x("","Unable to bind to jQuery, it is not fully loaded.")),"function"==typeof define&&define.amd?define([],H):"object"==typeof xo&&(xo=H()),window.iFrameResize=window.iFrameResize||H()}function m(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function g(e,t,n){e.addEventListener(t,n,!1)}function v(e,t,n){e.removeEventListener(t,n,!1)}function y(e){return s+"["+function(e){var t="Host page: "+e;return window.top!==window.self&&(t=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),t}(e)+"]"}function b(e){return f[e]?f[e].log:i}function w(e,t){O("log",e,t,b(e))}function x(e,t){O("info",e,t,b(e))}function _(e,t){O("warn",e,t,!0)}function O(e,t,n,i){!0===i&&"object"==typeof window.console&&console[e](y(t),n)}function E(e){function t(){r("Height"),r("Width"),P((function(){L(H),C(V),b("onResized",H)}),H,"init")}function n(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}function i(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}function r(e){var t=Number(f[V]["max"+e]),n=Number(f[V]["min"+e]),i=e.toLowerCase(),r=Number(H[i]);w(V,"Checking "+i+" is in range "+n+"-"+t),r<n&&(r=n,w(V,"Set "+i+" to min value")),r>t&&(r=t,w(V,"Set "+i+" to max value")),H[i]=""+r}function u(e){return N.substr(N.indexOf(":")+o+e)}function l(e,t){var n,i,r;n=function(){var n,i;D("Send Page Info","pageInfo:"+(n=document.body.getBoundingClientRect(),i=H.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:i.height,iframeWidth:i.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(i.top-n.top,10),offsetLeft:parseInt(i.left-n.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,t)},i=32,h[r=t]||(h[r]=setTimeout((function(){h[r]=null,n()}),i))}function d(e){var t=e.getBoundingClientRect();return T(V),{x:Math.floor(Number(t.left)+Number(c.x)),y:Math.floor(Number(t.top)+Number(c.y))}}function p(e){var t=e?d(H.iframe):{x:0,y:0},n={x:Number(H.width)+t.x,y:Number(H.height)+t.y};w(V,"Reposition requested from iFrame (offset x:"+t.x+" y:"+t.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](n.x,n.y):_(V,"Unable to scroll to requested position, window.parentIFrame not found"):(c=n,m(),w(V,"--"))}function m(){!1!==b("onScroll",c)?C(V):M()}function y(e){var t={};if(0===Number(H.width)&&0===Number(H.height)){var n=u(9).split(":");t={x:n[1],y:n[0]}}else t={x:H.width,y:H.height};b(e,{iframe:H.iframe,screenX:Number(t.x),screenY:Number(t.y),type:H.type})}function b(e,t){return k(V,e,t)}var O,E,S,z,W,$,I,N=e.data,H={},V=null;"[iFrameResizerChild]Ready"===N?function(){for(var e in f)D("iFrame requested init",R(e),f[e].iframe,e)}():s===(""+N).substr(0,a)&&N.substr(a).split(":")[0]in f?(z=N.substr(a).split(":"),W=z[1]?parseInt(z[1],10):0,$=f[z[0]]&&f[z[0]].iframe,I=getComputedStyle($),H={iframe:$,id:z[0],height:W+n(I)+i(I),width:z[2],type:z[3]},V=H.id,f[V]&&(f[V].loaded=!0),(S=H.type in{true:1,false:1,undefined:1})&&w(V,"Ignoring init message from meta parent page"),!S&&(E=!0,f[O=V]||(E=!1,_(H.type+" No settings for "+O+". Message was: "+N)),E)&&(w(V,"Received: "+N),function(){var e=!0;return null===H.iframe&&(_(V,"IFrame ("+H.id+") not found"),e=!1),e}()&&function(){var t,n=e.origin,i=f[V]&&f[V].checkOrigin;if(i&&""+n!="null"&&!(i.constructor===Array?function(){var e=0,t=!1;for(w(V,"Checking connection is from allowed list of origins: "+i);e<i.length;e++)if(i[e]===n){t=!0;break}return t}():(t=f[V]&&f[V].remoteHost,w(V,"Checking connection is from: "+t),n===t)))throw new Error("Unexpected message received from: "+n+" for "+H.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(f[V]&&f[V].firstRun&&f[V]&&(f[V].firstRun=!1),H.type){case"close":A(H.iframe);break;case"message":e=u(6),w(V,"onMessage passed: {iframe: "+H.iframe.id+", message: "+e+"}"),b("onMessage",{iframe:H.iframe,message:JSON.parse(e)}),w(V,"--");break;case"mouseenter":y("onMouseEnter");break;case"mouseleave":y("onMouseLeave");break;case"autoResize":f[V].autoResize=JSON.parse(u(9));break;case"scrollTo":p(!1);break;case"scrollToOffset":p(!0);break;case"pageInfo":l(f[V]&&f[V].iframe,V),function(){function e(e,i){function r(){f[n]?l(f[n].iframe,n):t()}["scroll","resize"].forEach((function(t){w(n,e+t+" listener for sendPageInfo"),i(window,t,r)}))}function t(){e("Remove ",v)}var n=V;e("Add ",g),f[n]&&(f[n].stopPageInfo=t)}();break;case"pageInfoStop":f[V]&&f[V].stopPageInfo&&(f[V].stopPageInfo(),delete f[V].stopPageInfo);break;case"inPageLink":!function(e){var t,n=e.split("#")[1]||"",i=decodeURIComponent(n),r=document.getElementById(i)||document.getElementsByName(i)[0];r?(t=d(r),w(V,"Moving to in page link (#"+n+") at x: "+t.x+" y: "+t.y),c={x:t.x,y:t.y},m(),w(V,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(n):w(V,"In page link #"+n+" not found and window.parentIFrame not found"):w(V,"In page link #"+n+" not found")}(u(9));break;case"reset":j(H);break;case"init":t(),b("onInit",H.iframe);break;default:0===Number(H.width)&&0===Number(H.height)?_("Unsupported message received ("+H.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):t()}var e}())):x(V,"Ignored: "+N)}function k(e,t,n){var i=null,r=null;if(f[e]){if("function"!=typeof(i=f[e][t]))throw new TypeError(t+" on iFrame["+e+"] is not a function");r=i(n)}return r}function S(e){var t=e.id;delete f[t]}function A(e){var t=e.id;if(!1!==k(t,"onClose",t)){w(t,"Removing iFrame: "+t);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){_(e)}k(t,"onClosed",t),w(t,"--"),S(e)}else w(t,"Close iframe cancelled by onClose event")}function T(t){null===c&&w(t,"Get page position: "+(c={x:window.pageXOffset!==e?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==e?window.pageYOffset:document.documentElement.scrollTop}).x+","+c.y)}function C(e){null!==c&&(window.scrollTo(c.x,c.y),w(e,"Set page position: "+c.x+","+c.y),M())}function M(){c=null}function j(e){w(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),T(e.id),P((function(){L(e),D("reset","reset",e.iframe,e.id)}),e,"reset")}function L(e){function t(t){r||"0"!==e[t]||(r=!0,w(i,"Hidden iFrame detected, creating visibility listener"),function(){function e(){function e(e){function t(t){return"0px"===(f[e]&&f[e].iframe.style[t])}function n(e){return null!==e.offsetParent}f[e]&&n(f[e].iframe)&&(t("height")||t("width"))&&D("Visibility change","resize",f[e].iframe,e)}Object.keys(f).forEach((function(t){e(t)}))}function t(t){w("window","Mutation observed: "+t[0].target+" "+t[0].type),W(e,16)}function n(){var e=document.querySelector("body"),n={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0};new i(t).observe(e,n)}var i=m();i&&n()}())}function n(n){!function(t){e.id?(e.iframe.style[t]=e[t]+"px",w(e.id,"IFrame ("+i+") "+t+" set to "+e[t]+"px")):w("undefined","messageData id not set")}(n),t(n)}var i=e.iframe.id;f[i]&&(f[i].sizeHeight&&n("height"),f[i].sizeWidth&&n("width"))}function P(e,t,n){n!==t.type&&u&&!window.jasmine?(w(t.id,"Requesting animation frame"),u(e)):e()}function D(e,t,n,i,r){var o=!1;i=i||n.id,f[i]&&(n&&"contentWindow"in n&&null!==n.contentWindow?function(){var r=f[i]&&f[i].targetOrigin;w(i,"["+e+"] Sending msg to iframe["+i+"] ("+t+") targetOrigin: "+r),n.contentWindow.postMessage(s+t,r)}():_(i,"["+e+"] IFrame("+i+") not found"),r&&f[i]&&f[i].warningTimeout&&(f[i].msgTimeout=setTimeout((function(){!f[i]||f[i].loaded||o||(o=!0,_(i,"IFrame has not responded within "+f[i].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),f[i].warningTimeout)))}function R(e){return e+":"+f[e].bodyMarginV1+":"+f[e].sizeWidth+":"+f[e].log+":"+f[e].interval+":"+f[e].enablePublicMethods+":"+f[e].autoResize+":"+f[e].bodyMargin+":"+f[e].heightCalculationMethod+":"+f[e].bodyBackground+":"+f[e].bodyPadding+":"+f[e].tolerance+":"+f[e].inPageLinks+":"+f[e].resizeFrom+":"+f[e].widthCalculationMethod+":"+f[e].mouseEvents}function z(t,r){function o(e){var t=e.split("Callback");if(2===t.length){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],_(v,"Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}var s,a,c,u,d,h,v=(""===(s=t.id)&&(t.id=(a=r&&r.id||p.id+n++,null!==document.getElementById(a)&&(a+=n++),s=a),i=(r||{}).log,w(s,"Added missing iframe ID: "+s+" ("+t.src+")")),s);v in f&&"iFrameResizer"in t?_(v,"Ignored iFrame, already setup."):(d=(d=r)||{},f[v]={firstRun:!0,iframe:t,remoteHost:t.src&&t.src.split("/").slice(0,3).join("/")},function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(d),Object.keys(d).forEach(o,d),function(e){for(var t in p)Object.prototype.hasOwnProperty.call(p,t)&&(f[v][t]=Object.prototype.hasOwnProperty.call(e,t)?e[t]:p[t])}(d),f[v]&&(f[v].targetOrigin=!0===f[v].checkOrigin?""===(h=f[v].remoteHost)||null!==h.match(/^(about:blank|javascript:|file:\/\/)/)?"*":h:"*"),function(){switch(w(v,"IFrame scrolling "+(f[v]&&f[v].scrolling?"enabled":"disabled")+" for "+v),t.style.overflow=!1===(f[v]&&f[v].scrolling)?"hidden":"auto",f[v]&&f[v].scrolling){case"omit":break;case!0:t.scrolling="yes";break;case!1:t.scrolling="no";break;default:t.scrolling=f[v]?f[v].scrolling:"no"}}(),function(){function e(e){var n=f[v][e];1/0!==n&&0!==n&&(t.style[e]="number"==typeof n?n+"px":n,w(v,"Set "+e+" = "+t.style[e]))}function n(e){if(f[v]["min"+e]>f[v]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),e("maxHeight"),e("minHeight"),e("maxWidth"),e("minWidth")}(),"number"!=typeof(f[v]&&f[v].bodyMargin)&&"0"!==(f[v]&&f[v].bodyMargin)||(f[v].bodyMarginV1=f[v].bodyMargin,f[v].bodyMargin=f[v].bodyMargin+"px"),c=R(v),(u=m())&&function(e){t.parentNode&&new e((function(e){e.forEach((function(e){Array.prototype.slice.call(e.removedNodes).forEach((function(e){e===t&&A(t)}))}))})).observe(t.parentNode,{childList:!0})}(u),g(t,"load",(function(){var n,i;D("iFrame.onload",c,t,e,!0),n=f[v]&&f[v].firstRun,i=f[v]&&f[v].heightCalculationMethod in l,!n&&i&&j({iframe:t,height:0,width:0,type:"init"})})),D("init",c,t,e,!0),f[v]&&(f[v].iframe.iFrameResizer={close:A.bind(null,f[v].iframe),removeListeners:S.bind(null,f[v].iframe),resize:D.bind(null,"Window resize","resize",f[v].iframe),moveToAnchor:function(e){D("Move to anchor","moveToAnchor:"+e,f[v].iframe,v)},sendMessage:function(e){D("Send Message","message:"+(e=JSON.stringify(e)),f[v].iframe,v)}}))}function W(e,t){null===d&&(d=setTimeout((function(){d=null,e()}),t))}function $(){"hidden"!==document.visibilityState&&(w("document","Trigger event: Visiblity change"),W((function(){I("Tab Visable","resize")}),16))}function I(e,t){Object.keys(f).forEach((function(n){(function(e){return f[e]&&"parent"===f[e].resizeFrom&&f[e].autoResize&&!f[e].firstRun})(n)&&D(e,t,f[n].iframe,n)}))}function N(){g(window,"message",E),g(window,"resize",(function(){var e;w("window","Trigger event: "+(e="resize")),W((function(){I("Window "+e,"resize")}),16)})),g(document,"visibilitychange",$),g(document,"-webkit-visibilitychange",$)}function H(){function t(e,t){t&&(!function(){if(!t.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==t.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+t.tagName+">")}(),z(t,e),n.push(t))}var n;return function(){var e,t=["moz","webkit","o","ms"];for(e=0;e<t.length&&!u;e+=1)u=window[t[e]+"RequestAnimationFrame"];u?u=u.bind(window):w("setup","RequestAnimationFrame not supported")}(),N(),function(i,r){switch(n=[],function(e){e&&e.enablePublicMethods&&_("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(i),typeof r){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(r||"iframe"),t.bind(e,i));break;case"object":t(i,r);break;default:throw new TypeError("Unexpected data type ("+typeof r+")")}return n}}}();var _o=768,Oo={defaultWidth:280,minWidth:200,maxWidth:350},Eo={drawer:{orientation:"horizontal",defaultPanel:"source",defaultHeight:300,defaultWidth:500,minWidth:350,minHeight:200},preview:{defaultPanel:"preview"}};Pn.plugin(Dn),Pn.plugin(Vn),Pn.plugin(ei),Pn.store("filter",function(e){return{raw:e.$persist("").as("filter-text"),get text(){return this.raw.replace(/\s/g,"").toLowerCase()},get active(){return this.text.length>0}}}(Pn)),Pn.store("layout",{init(){this.desktop=window.innerWidth>=_o},reflowing:!1,desktop:!0,desktopWidth:_o,get mobile(){return!this.desktop}}),Pn.store("nav",function(e){return{open:e.$persist([]).as("nav-open"),active:e.$persist(null).as("nav-active"),isOpen(e){return this.open.includes(e)},setOpen(e){this.open.push(e)},setClosed(e){const t=this.open.indexOf(e);t>-1&&this.open.splice(t,1)},toggle(e){this.isOpen(e)?this.setClosed(e):this.setOpen(e)}}}(Pn)),Pn.store("sidebar",function(e){const{defaultWidth:t,minWidth:n,maxWidth:i}=Oo;return{open:e.$persist(!0).as("sidebar-open"),width:e.$persist(t).as("sidebar-width"),panelSplits:e.$persist([1,1]).as("sidebar-panel-splits"),minWidth:n,maxWidth:i,toggle(){e.store("sidebar").open=!e.store("sidebar").open}}}(Pn)),Pn.store("inspector",function(e){const{drawer:t,preview:n}=Eo;return{drawer:{hidden:e.$persist(!1).as("drawer-hidden"),orientation:e.$persist(t.orientation).as("drawer-orientation"),panel:e.$persist(t.defaultPanel).as("drawer-panel"),height:e.$persist(t.defaultHeight).as("drawer-height"),width:e.$persist(t.defaultWidth).as("drawer-width"),minWidth:t.minWidth,minHeight:t.minHeight,visibleTabCount:1/0},preview:{width:e.$persist("100%").as("preview-width"),height:e.$persist("100%").as("preview-height"),panel:e.$persist(n.defaultPanel).as("preview-panel"),lastWidth:null,lastHeight:null,resizing:!1}}}(Pn)),Pn.store("pages",{embeds:{}}),Pn.data("app",(function(){return{init(){if(window.SOCKET_PATH){(function(t){const n=(Date.now()+(100*Math.random()|0)).toString(),i=ti.createConsumer(`${t}?uid=${n}`);return{addListener(t,n){i.subscriptions.create(t,{received:e(ni)((e=>{console.log("Lookbook files changed"),n(e)}),200),connected(){console.log("Lookbook websocket connected")},disconnected(){console.log("Lookbook websocket disconnected")}})}}})(window.SOCKET_PATH).addListener("Lookbook::ReloadChannel",(()=>this.refresh()))}},async update(){const e=await fetch(window.document.location);if(!e.ok)return window.location.reload();const t=await e.text(),n=(new DOMParser).parseFromString(t,"text/html");this.morph(n),document.title=n.title},setLocation(e){let t;e instanceof Event?(t=e.currentTarget.href,e.preventDefault()):t=e,history.pushState({},null,t),this.$dispatch("popstate")},refresh(){this.$dispatch("refresh")},morph(e){const t=e.getElementById(this.$root.id).outerHTML;Alpine.morph(this.$root,t,ri),this.$dispatch("page:morphed")}}})),Pn.data("page",(function(){return{init(){},scrollToTop(){this.$refs.scroller.scrollTop=0},checkForNavigation(e){const t=e.target.closest("a[href]");t&&!function(e){const t=document.createElement("a");return t.href=e,t.host!==window.location.host}(t.href)&&"_blank"!==t.getAttribute("target")&&(e.preventDefault(),this.setLocation(t.href))}}})),Pn.data("sidebar",(function(){return{init(){this.$nextTick((()=>this.setActiveNavItem()))},setActiveNavItem(){const e=this.$el.querySelector(`[data-path="${window.location.pathname}"]`);this.$store.nav.active=e?e.id:""},setSplits(e){e.length&&(this.$store.sidebar.panelSplits=[e[0]||1,e[2]||1])}}})),Pn.data("splitter",(function(e,t={}){return{splits:[],init(){const n=("vertical"===e?"column":"row")+"Gutters",i=this.$el;yi({[n]:[{track:1,element:i}],minSize:t.minSize||0,writeStyle(){},onDrag:(e,t,n)=>{this.splits=n.split(" ").map((e=>parseFloat(e,10)))},onDragStart:()=>{this.$store.layout.reflowing=!0},onDragEnd:()=>{this.$store.layout.reflowing=!1}})}}})),Pn.data("previewWindow",(function(){return{get store(){return this.$store.inspector.preview},get maxWidth(){return"100%"===this.store.width?"100%":`${this.store.width}px`},get maxHeight(){return"100%"===this.store.height?"100%":`${this.store.height}px`},get parentWidth(){return Math.round(this.$root.parentElement.clientWidth)},get parentHeight(){return Math.round(this.$root.parentElement.clientHeight)},start(){this.$store.layout.reflowing=!0,this.store.resizing=!0},end(){this.$store.layout.reflowing=!1,this.store.resizing=!1},onResizeStart(e){this.onResizeWidthStart(e),this.onResizeHeightStart(e)},toggleFullSize(){const{height:e,width:t}=this.store;"100%"===e&&"100%"===t?(this.toggleFullHeight(),this.toggleFullWidth()):("100%"!==e&&this.toggleFullHeight(),"100%"!==t&&this.toggleFullWidth())},onResizeWidth(e){const t=this.resizeStartWidth-2*(this.resizeStartPositionX-e.pageX),n=Math.min(Math.max(Math.round(t),200),this.parentWidth);this.store.width=n===this.parentWidth?"100%":n},onResizeWidthStart(e){this.start(),this.onResizeWidth=this.onResizeWidth.bind(this),this.onResizeWidthEnd=this.onResizeWidthEnd.bind(this),this.resizeStartPositionX=e.pageX,this.resizeStartWidth=this.$root.clientWidth,window.addEventListener("pointermove",this.onResizeWidth),window.addEventListener("pointerup",this.onResizeWidthEnd)},onResizeWidthEnd(){window.removeEventListener("pointermove",this.onResizeWidth),window.removeEventListener("pointerup",this.onResizeWidthEnd),this.end()},toggleFullWidth(){const{width:e,lastWidth:t}=this.store;"100%"===e&&t?this.store.width=t:(this.store.lastWidth=e,this.store.width="100%")},onResizeHeight(e){const t=this.resizeStartHeight-(this.resizeStartPositionY-e.pageY),n=Math.min(Math.max(Math.round(t),200),this.parentHeight);this.$store.inspector.preview.height=n===this.parentHeight?"100%":n},onResizeHeightStart(e){this.start(),this.onResizeHeight=this.onResizeHeight.bind(this),this.onResizeHeightEnd=this.onResizeHeightEnd.bind(this),this.resizeStartPositionY=e.pageY,this.resizeStartHeight=this.$root.clientHeight,window.addEventListener("pointermove",this.onResizeHeight),window.addEventListener("pointerup",this.onResizeHeightEnd)},onResizeHeightEnd(){window.removeEventListener("pointermove",this.onResizeHeight),window.removeEventListener("pointerup",this.onResizeHeightEnd),this.end()},toggleFullHeight(){const{height:e,lastHeight:t}=this.store;"100%"===e&&t?this.store.height=t:(this.store.lastHeight=e,this.store.height="100%")}}})),Pn.data("copy",(function(){return{get content(){const e=document.getElementById(this.$root.getAttribute("data-target")),t=document.createElement("textarea");return t.innerHTML=e?e.innerHTML:"",t.value.trim()},done:!1,async save(){await window.navigator.clipboard.writeText(this.content),this.done=!0,setTimeout((()=>{this.done=!1}),1e3)}}})),Pn.data("code",(function(){return{wrap:!1}})),Pn.data("inspector",(function(){return{width:0,height:0,init(){new ResizeObserver((e=>{const t=e[0].contentRect;this.width=Math.round(t.width),this.height=Math.round(t.height)})).observe(this.$el),this.width=Math.round(this.$el.clientWidth),this.height=Math.round(this.$el.clientHeight)},get orientation(){return this.$store.inspector.drawer.orientation},get view(){return this.$store.inspector.preview.view},get horizontal(){return!this.canBeVertical||"horizontal"===this.orientation},get vertical(){return!this.horizontal},get canBeVertical(){return this.width>800},get drawerHidden(){return this.$store.inspector.drawer.hidden},get maxDrawerHeight(){return Math.round(.7*this.height)},get maxDrawerWidth(){return Math.round(.7*this.width)},isActiveDrawerPanel(e){return this.$store.inspector.drawer.panel===e},switchDrawerPanel(e){this.$store.inspector.drawer.panel=e},isActivePreviewPanel(e){return this.$store.inspector.preview.panel===e},switchPreviewPanel(e){this.$store.inspector.preview.panel=e},toggleOrientation(){this.$store.inspector.drawer.orientation="horizontal"===this.orientation?"vertical":"horizontal"},toggleDrawer(){this.$store.inspector.drawer.hidden=!this.$store.inspector.drawer.hidden},preview:{width:null,height:null}}})),Pn.data("filter",(function(){return{get active(){return this.$store.filter.active},focussed:!1,checkEsc(e){"Escape"===e.key&&(this.active?this.clear():this.blur())},clear(){this.$store.filter.raw=""},focus(e){e&&"INPUT"===e.target.tagName||setTimeout((()=>{this.$dispatch("filter:focus"),this.$nextTick((()=>{this.focussed=!0,this.$refs.input.focus()}))}),0)},blur(){setTimeout((()=>{this.focussed=!1,this.$refs.input.blur(),this.$dispatch("filter:blur")}),0)}}})),Pn.data("param",(function(t,n,i={}){return{name:t,value:n,updating:!1,init(){i.debounce?this.$watch("value",e(ni)((()=>this.updateIfValid()),i.debounce)):this.$watch("value",(()=>this.updateIfValid()))},setFocus(){setTimeout((()=>this.$root.focus()),0)},updateIfValid(){this.validate()&&this.update()},update(){const e=new URLSearchParams(window.location.search);e.set(this.name,this.value);const t=location.href.replace(location.search,"");this.setLocation(`${t}?${e.toString()}`)},validate(){return!this.$root.reportValidity||this.$root.reportValidity()}}})),Pn.data("sizes",(function(){return{width:0,height:0,init(){new ResizeObserver((e=>{const t=e[0].contentRect;this.width=Math.round(t.width),this.height=Math.round(t.height)})).observe(this.$el),this.width=Math.round(this.$el.clientWidth),this.height=Math.round(this.$el.clientHeight)}}})),Pn.data("nav",(function(e=!0){return{empty:!1,init(){e&&(this.$watch("$store.filter.text",(()=>this.filter())),this.$nextTick((()=>{this.filter()})))},filter(){this.empty=!0,this.getChildren().forEach((e=>{const t=Alpine.$data(e);t.filter(this.$store.filter.text),t.hidden||(this.empty=!1)}))},getChildren(){return this.$refs.items?Array.from(this.$refs.items.querySelectorAll(":scope > li > div")):[]}}})),Pn.data("tabs",(function(){return{width:0,tabsWidth:0,init(){new ResizeObserver((e=>{this.width=Math.round(e[0].contentRect.width)})).observe(this.$refs.tabs),this.dropdown=wo(this.$refs.toggle,{allowHTML:!0,interactive:!0,trigger:"click",placement:"bottom-end",theme:"menu",content:this.$refs.dropdown})},get tabs(){return Array.from(this.$refs.tabs?this.$refs.tabs.querySelectorAll(":scope > a"):[])},get visibleTabCount(){let e=0;for(let t=0;t<this.tabs.length;t++){const n=this.tabs[t],i=parseInt(window.getComputedStyle(n).getPropertyValue("margin-left").replace("px",""),10);if(e+=n.clientWidth+i,e>this.width)return this.tabsWidth=e-n.clientWidth,t}return this.tabs.length},get hiddenTabs(){return this.tabs.slice(this.visibleTabCount,-1)},hideDropdown(){this.dropdown.hide()}}})),Pn.data("navItem",(function(e){return{hidden:!1,get id(){return this.$root.id},get path(){return this.$root.getAttribute("data-path")},get active(){return this.$store.nav.active===this.id},navigate(){this.setLocation(this.path),this.$store.layout.mobile&&(this.$store.sidebar.open=!1)},filter(t){if(this.hidden=!1,t.length){const n=e.map((e=>e.includes(t)));this.hidden=!n.filter((e=>e)).length}else this.hidden=!1}}})),Pn.data("navGroup",(function(){return{hidden:!1,children:[],get id(){return this.$root.id},get open(){return this.$store.nav.isOpen(this.id)},toggle(){this.$store.nav.toggle(this.id)},getChildren(){return this.$refs.items?Array.from(this.$refs.items.querySelectorAll(":scope > li > div")):[]},navigateToFirstChild(){if(this.open){const e=this.firstVisibleChild();if(e){const t=e.querySelector(":scope > a.nav-link");t&&this.setLocation(t.getAttribute("href"))}}},filter(e){this.hidden=!0,this.getChildren().forEach((t=>{const n=Alpine.$data(t);n.filter(e),n.hidden||(this.hidden=!1)}))},firstVisibleChild(){return this.getChildren().find((e=>!1===Alpine.$data(e).hidden))}}})),Pn.data("embed",(function(){return{init(){this.$store.pages.embeds[this.$root.id]||(this.$store.pages.embeds[this.$root.id]={width:"100%"})},lastWidth:null,reflowing:!1,get resizer(){return this.$refs.iframe?(this.$refs.iframe.iFrameResizer||window.iFrameResize({heightCalculationMethod:"lowestElement",onResized:this.onIframeResized.bind(this)},this.$refs.iframe),this.$refs.iframe.iFrameResizer):null},set width(e){this.store.width=e},get width(){return this.store.width||"100%"},get height(){return this.store.height},get parentWidth(){return Math.round(this.$root.parentElement.clientWidth)},get maxWidth(){return"100%"===this.width?"100%":`${this.width}px`},get store(){return this.$store.pages.embeds[this.$root.id]},recaclulateIframeHeight(){this.resizer&&this.resizer.resize()},onIframeResized({iframe:e,height:t}){e.isSameNode(this.$refs.iframe)&&(this.store.height=t)},onResizeWidth(e){const t=this.resizeStartWidth-(this.resizeStartPositionX-e.pageX),n=Math.min(Math.max(Math.round(t),200),this.parentWidth);this.width=n===this.parentWidth?"100%":n,this.recaclulateIframeHeight()},onResizeWidthStart(e){this.reflowing=!0,this.onResizeWidth=this.onResizeWidth.bind(this),this.onResizeWidthEnd=this.onResizeWidthEnd.bind(this),this.resizeStartPositionX=e.pageX,this.resizeStartWidth=this.$refs.resizer.clientWidth,window.addEventListener("pointermove",this.onResizeWidth),window.addEventListener("pointerup",this.onResizeWidthEnd)},onResizeWidthEnd(){window.removeEventListener("pointermove",this.onResizeWidth),window.removeEventListener("pointerup",this.onResizeWidthEnd),this.reflowing=!1},toggleFullWidth(){"100%"===this.width&&this.lastWidth?this.width=this.lastWidth:(this.lastWidth=this.width,this.width="100%"),this.$nextTick((()=>this.recaclulateIframeHeight()))}}}));for(const e of document.querySelectorAll("[data-hotkey]"))d(e);window.Alpine=Pn,Pn.start()})();
1
+ (()=>{function e(e){return e&&e.__esModule?e.default:e}class t{constructor(e){this.children=[],this.parent=e}delete(e){const t=this.children.indexOf(e);return-1!==t&&(this.children=this.children.slice(0,t).concat(this.children.slice(t+1)),0===this.children.length&&this.parent.delete(this),!0)}add(e){return this.children.push(e),this}}class n{constructor(e){this.parent=null,this.children={},this.parent=e||null}get(e){return this.children[e]}insert(e){let i=this;for(let r=0;r<e.length;r+=1){const o=e[r];let s=i.get(o);if(r===e.length-1)return s instanceof n&&(i.delete(s),s=null),s||(s=new t(i),i.children[o]=s),s;s instanceof t&&(s=null),s||(s=new n(i),i.children[o]=s),i=s}return i}delete(e){for(const t in this.children){if(this.children[t]===e){const e=delete this.children[t];return 0===Object.keys(this.children).length&&this.parent&&this.parent.delete(this),e}}return!1}}function i(e){if(!(e instanceof HTMLElement))return!1;const t=e.nodeName.toLowerCase(),n=(e.getAttribute("type")||"").toLowerCase();return"select"===t||"textarea"===t||"input"===t&&"submit"!==n&&"reset"!==n&&"checkbox"!==n&&"radio"!==n||e.isContentEditable}function r(e){const t=e.code.startsWith("Key")&&e.shiftKey&&e.key.toUpperCase()===e.key;return`${e.ctrlKey?"Control+":""}${e.altKey?"Alt+":""}${e.metaKey?"Meta+":""}${e.shiftKey&&!t?"Shift+":""}${e.key}`}const o=new n,s=new WeakMap;let a=o,c=null,u=[];function l(){u=[],c=null,a=o}function f(e){if(e.defaultPrevented)return;if(!(e.target instanceof Node))return;if(i(e.target)){const t=e.target;if(!t.id)return;if(!t.ownerDocument.querySelector(`[data-hotkey-scope="${t.id}"]`))return}null!=c&&window.clearTimeout(c),c=window.setTimeout(l,1500);const n=a.get(r(e));if(n){if(u.push(r(e)),a=n,n instanceof t){const t=e.target;let r,o=!1;const s=i(t);for(let e=n.children.length-1;e>=0;e-=1){r=n.children[e];const i=r.getAttribute("data-hotkey-scope");if(!s&&!i||s&&t.id===i){o=!0;break}}r&&o&&(!function(e,t){const n=new CustomEvent("hotkey-fire",{cancelable:!0,detail:{path:t}});!e.dispatchEvent(n)||(i(e)?e.focus():e.click())}(r,u),e.preventDefault()),l()}}else l()}function d(e,t){0===Object.keys(o.children).length&&document.addEventListener("keydown",f);const n=function(e){return e.split(",").map((e=>e.split(" ")))}(t||e.getAttribute("data-hotkey")||""),i=n.map((t=>o.insert(t).add(e)));s.set(e,i)}var p,h,m,g,v=!1,y=!1,b=[];function w(e){!function(e){b.includes(e)||b.push(e);y||v||(v=!0,queueMicrotask(_))}(e)}function x(e){let t=b.indexOf(e);-1!==t&&b.splice(t,1)}function _(){v=!1,y=!0;for(let e=0;e<b.length;e++)b[e]();b.length=0,y=!1}var O=!0;function E(e){h=e}var k=[],S=[],A=[];function T(e,t){"function"==typeof t?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,S.push(t))}function C(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach((([n,i])=>{(void 0===t||t.includes(n))&&(i.forEach((e=>e())),delete e._x_attributeCleanups[n])}))}var M=new MutationObserver(I),j=!1;function L(){M.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),j=!0}function P(){(D=D.concat(M.takeRecords())).length&&!R&&(R=!0,queueMicrotask((()=>{I(D),D.length=0,R=!1}))),M.disconnect(),j=!1}var D=[],R=!1;function z(e){if(!j)return e();P();let t=e();return L(),t}var W=!1,$=[];function I(e){if(W)return void($=$.concat(e));let t=[],n=[],i=new Map,r=new Map;for(let o=0;o<e.length;o++)if(!e[o].target._x_ignoreMutationObserver&&("childList"===e[o].type&&(e[o].addedNodes.forEach((e=>1===e.nodeType&&t.push(e))),e[o].removedNodes.forEach((e=>1===e.nodeType&&n.push(e)))),"attributes"===e[o].type)){let t=e[o].target,n=e[o].attributeName,s=e[o].oldValue,a=()=>{i.has(t)||i.set(t,[]),i.get(t).push({name:n,value:t.getAttribute(n)})},c=()=>{r.has(t)||r.set(t,[]),r.get(t).push(n)};t.hasAttribute(n)&&null===s?a():t.hasAttribute(n)?(c(),a()):c()}r.forEach(((e,t)=>{C(t,e)})),i.forEach(((e,t)=>{k.forEach((n=>n(t,e)))}));for(let e of n)if(!t.includes(e)&&(S.forEach((t=>t(e))),e._x_cleanups))for(;e._x_cleanups.length;)e._x_cleanups.pop()();t.forEach((e=>{e._x_ignoreSelf=!0,e._x_ignore=!0}));for(let e of t)n.includes(e)||e.isConnected&&(delete e._x_ignoreSelf,delete e._x_ignore,A.forEach((t=>t(e))),e._x_ignore=!0,e._x_ignoreSelf=!0);t.forEach((e=>{delete e._x_ignoreSelf,delete e._x_ignore})),t=null,n=null,i=null,r=null}function N(e){return B(F(e))}function H(e,t,n){return e._x_dataStack=[t,...F(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter((e=>e!==t))}}function V(e,t){let n=e._x_dataStack[0];Object.entries(t).forEach((([e,t])=>{n[e]=t}))}function F(e){return e._x_dataStack?e._x_dataStack:"function"==typeof ShadowRoot&&e instanceof ShadowRoot?F(e.host):e.parentNode?F(e.parentNode):[]}function B(e){let t=new Proxy({},{ownKeys:()=>Array.from(new Set(e.flatMap((e=>Object.keys(e))))),has:(t,n)=>e.some((e=>e.hasOwnProperty(n))),get:(n,i)=>(e.find((e=>{if(e.hasOwnProperty(i)){let n=Object.getOwnPropertyDescriptor(e,i);if(n.get&&n.get._x_alreadyBound||n.set&&n.set._x_alreadyBound)return!0;if((n.get||n.set)&&n.enumerable){let r=n.get,o=n.set,s=n;r=r&&r.bind(t),o=o&&o.bind(t),r&&(r._x_alreadyBound=!0),o&&(o._x_alreadyBound=!0),Object.defineProperty(e,i,{...s,get:r,set:o})}return!0}return!1}))||{})[i],set:(t,n,i)=>{let r=e.find((e=>e.hasOwnProperty(n)));return r?r[n]=i:e[e.length-1][n]=i,!0}});return t}function q(e){let t=(n,i="")=>{Object.entries(Object.getOwnPropertyDescriptors(n)).forEach((([r,{value:o,enumerable:s}])=>{if(!1===s||void 0===o)return;let a=""===i?r:`${i}.${r}`;var c;"object"==typeof o&&null!==o&&o._x_interceptor?n[r]=o.initialize(e,a,r):"object"!=typeof(c=o)||Array.isArray(c)||null===c||o===n||o instanceof Element||t(o,a)}))};return t(e)}function G(e,t=(()=>{})){let n={initialValue:void 0,_x_interceptor:!0,initialize(t,n,i){return e(this.initialValue,(()=>function(e,t){return t.split(".").reduce(((e,t)=>e[t]),e)}(t,n)),(e=>U(t,n,e)),n,i)}};return t(n),e=>{if("object"==typeof e&&null!==e&&e._x_interceptor){let t=n.initialize.bind(n);n.initialize=(i,r,o)=>{let s=e.initialize(i,r,o);return n.initialValue=s,t(i,r,o)}}else n.initialValue=e;return n}}function U(e,t,n){if("string"==typeof t&&(t=t.split(".")),1!==t.length){if(0===t.length)throw error;return e[t[0]]||(e[t[0]]={}),U(e[t[0]],t.slice(1),n)}e[t[0]]=n}var X={};function Y(e,t){X[e]=t}function K(e,t){return Object.entries(X).forEach((([n,i])=>{Object.defineProperty(e,`$${n}`,{get(){let[e,n]=pe(t);return e={interceptor:G,...e},T(t,n),i(t,e)},enumerable:!1})})),e}function J(e,t,n,...i){try{return n(...i)}catch(n){Z(n,e,t)}}function Z(e,t,n){Object.assign(e,{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message}\n\n${n?'Expression: "'+n+'"\n\n':""}`,t),setTimeout((()=>{throw e}),0)}function Q(e,t,n={}){let i;return ee(e,t)((e=>i=e),n),i}function ee(...e){return te(...e)}var te=ne;function ne(e,t){let n={};K(n,e);let i=[n,...F(e)];if("function"==typeof t)return function(e,t){return(n=(()=>{}),{scope:i={},params:r=[]}={})=>{re(n,t.apply(B([i,...e]),r))}}(i,t);let r=function(e,t,n){let i=function(e,t){if(ie[e])return ie[e];let n=Object.getPrototypeOf((async function(){})).constructor,i=/^[\n\s]*if.*\(.*\)/.test(e)||/^(let|const)\s/.test(e)?`(() => { ${e} })()`:e;let r=(()=>{try{return new n(["__self","scope"],`with (scope) { __self.result = ${i} }; __self.finished = true; return __self.result;`)}catch(n){return Z(n,t,e),Promise.resolve()}})();return ie[e]=r,r}(t,n);return(r=(()=>{}),{scope:o={},params:s=[]}={})=>{i.result=void 0,i.finished=!1;let a=B([o,...e]);if("function"==typeof i){let e=i(i,a).catch((e=>Z(e,n,t)));i.finished?(re(r,i.result,a,s,n),i.result=void 0):e.then((e=>{re(r,e,a,s,n)})).catch((e=>Z(e,n,t))).finally((()=>i.result=void 0))}}}(i,t,e);return J.bind(null,e,t,r)}var ie={};function re(e,t,n,i,r){if("function"==typeof t){let o=t.apply(n,i);o instanceof Promise?o.then((t=>re(e,t,n,i))).catch((e=>Z(e,r,t))):e(o)}else e(t)}var oe="x-";function se(e=""){return oe+e}var ae={};function ce(e,t){ae[e]=t}function ue(e,t,n){let i={},r=Array.from(t).map(me(((e,t)=>i[e]=t))).filter(ye).map(function(e,t){return({name:n,value:i})=>{let r=n.match(be()),o=n.match(/:([a-zA-Z0-9\-:]+)/),s=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=t||e[n]||n;return{type:r?r[1]:null,value:o?o[1]:null,modifiers:s.map((e=>e.replace(".",""))),expression:i,original:a}}}(i,n)).sort(_e);return r.map((t=>function(e,t){let n=()=>{},i=ae[t.type]||n,[r,o]=pe(e);!function(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}(e,t.original,o);let s=()=>{e._x_ignore||e._x_ignoreSelf||(i.inline&&i.inline(e,t,r),i=i.bind(i,e,t,r),le?fe.get(de).push(i):i())};return s.runCleanups=o,s}(e,t)))}var le=!1,fe=new Map,de=Symbol();function pe(e){let t=[],[n,i]=function(e){let t=()=>{};return[n=>{let i=h(n);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach((e=>e()))}),e._x_effects.add(i),t=()=>{void 0!==i&&(e._x_effects.delete(i),m(i))},i},()=>{t()}]}(e);t.push(i);return[{Alpine:rt,effect:n,cleanup:e=>t.push(e),evaluateLater:ee.bind(ee,e),evaluate:Q.bind(Q,e)},()=>t.forEach((e=>e()))]}var he=(e,t)=>({name:n,value:i})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:i});function me(e=(()=>{})){return({name:t,value:n})=>{let{name:i,value:r}=ge.reduce(((e,t)=>t(e)),{name:t,value:n});return i!==t&&e(i,t),{name:i,value:r}}}var ge=[];function ve(e){ge.push(e)}function ye({name:e}){return be().test(e)}var be=()=>new RegExp(`^${oe}([^:^.]+)\\b`);var we="DEFAULT",xe=["ignore","ref","data","id","bind","init","for","model","modelable","transition","show","if",we,"teleport","element"];function _e(e,t){let n=-1===xe.indexOf(e.type)?we:e.type,i=-1===xe.indexOf(t.type)?we:t.type;return xe.indexOf(n)-xe.indexOf(i)}function Oe(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}var Ee=[],ke=!1;function Se(e){Ee.push(e),queueMicrotask((()=>{ke||setTimeout((()=>{Ae()}))}))}function Ae(){for(ke=!1;Ee.length;)Ee.shift()()}function Te(e,t){if("function"==typeof ShadowRoot&&e instanceof ShadowRoot)return void Array.from(e.children).forEach((e=>Te(e,t)));let n=!1;if(t(e,(()=>n=!0)),n)return;let i=e.firstElementChild;for(;i;)Te(i,t),i=i.nextElementSibling}function Ce(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var Me=[],je=[];function Le(){return Me.map((e=>e()))}function Pe(){return Me.concat(je).map((e=>e()))}function De(e){Me.push(e)}function Re(e){je.push(e)}function ze(e,t=!1){return We(e,(e=>{if((t?Pe():Le()).some((t=>e.matches(t))))return!0}))}function We(e,t){if(e){if(t(e))return e;if(e._x_teleportBack&&(e=e._x_teleportBack),e.parentElement)return We(e.parentElement,t)}}function $e(e,t=Te){!function(e){le=!0;let t=Symbol();de=t,fe.set(t,[]);let n=()=>{for(;fe.get(t).length;)fe.get(t).shift()();fe.delete(t)};e(n),le=!1,n()}((()=>{t(e,((e,t)=>{ue(e,e.attributes).forEach((e=>e())),e._x_ignore&&t()}))}))}function Ie(e,t){return Array.isArray(t)?Ne(e,t.join(" ")):"object"==typeof t&&null!==t?function(e,t){let n=e=>e.split(" ").filter(Boolean),i=Object.entries(t).flatMap((([e,t])=>!!t&&n(e))).filter(Boolean),r=Object.entries(t).flatMap((([e,t])=>!t&&n(e))).filter(Boolean),o=[],s=[];return r.forEach((t=>{e.classList.contains(t)&&(e.classList.remove(t),s.push(t))})),i.forEach((t=>{e.classList.contains(t)||(e.classList.add(t),o.push(t))})),()=>{s.forEach((t=>e.classList.add(t))),o.forEach((t=>e.classList.remove(t)))}}(e,t):"function"==typeof t?Ie(e,t()):Ne(e,t)}function Ne(e,t){return t=!0===t?t="":t||"",n=t.split(" ").filter((t=>!e.classList.contains(t))).filter(Boolean),e.classList.add(...n),()=>{e.classList.remove(...n)};var n}function He(e,t){return"object"==typeof t&&null!==t?function(e,t){let n={};return Object.entries(t).forEach((([t,i])=>{n[t]=e.style[t],t.startsWith("--")||(t=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()),e.style.setProperty(t,i)})),setTimeout((()=>{0===e.style.length&&e.removeAttribute("style")})),()=>{He(e,n)}}(e,t):function(e,t){let n=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",n||"")}}(e,t)}function Ve(e,t=(()=>{})){let n=!1;return function(){n?t.apply(this,arguments):(n=!0,e.apply(this,arguments))}}function Fe(e,t,n={}){e._x_transition||(e._x_transition={enter:{during:n,start:n,end:n},leave:{during:n,start:n,end:n},in(n=(()=>{}),i=(()=>{})){qe(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end},n,i)},out(n=(()=>{}),i=(()=>{})){qe(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end},n,i)}})}function Be(e){let t=e.parentNode;if(t)return t._x_hidePromise?t:Be(t)}function qe(e,t,{during:n,start:i,end:r}={},o=(()=>{}),s=(()=>{})){if(e._x_transitioning&&e._x_transitioning.cancel(),0===Object.keys(n).length&&0===Object.keys(i).length&&0===Object.keys(r).length)return o(),void s();let a,c,u;!function(e,t){let n,i,r,o=Ve((()=>{z((()=>{n=!0,i||t.before(),r||(t.end(),Ae()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning}))}));e._x_transitioning={beforeCancels:[],beforeCancel(e){this.beforeCancels.push(e)},cancel:Ve((function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();o()})),finish:o},z((()=>{t.start(),t.during()})),ke=!0,requestAnimationFrame((()=>{if(n)return;let o=1e3*Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s","")),s=1e3*Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""));0===o&&(o=1e3*Number(getComputedStyle(e).animationDuration.replace("s",""))),z((()=>{t.before()})),i=!0,requestAnimationFrame((()=>{n||(z((()=>{t.end()})),Ae(),setTimeout(e._x_transitioning.finish,o+s),r=!0)}))}))}(e,{start(){a=t(e,i)},during(){c=t(e,n)},before:o,end(){a(),u=t(e,r)},after:s,cleanup(){c(),u()}})}function Ge(e,t,n){if(-1===e.indexOf(t))return n;const i=e[e.indexOf(t)+1];if(!i)return n;if("scale"===t&&isNaN(i))return n;if("duration"===t){let e=i.match(/([0-9]+)ms/);if(e)return e[1]}return"origin"===t&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[i,e[e.indexOf(t)+2]].join(" "):i}ce("transition",((e,{value:t,modifiers:n,expression:i},{evaluate:r})=>{"function"==typeof i&&(i=r(i)),i?function(e,t,n){Fe(e,Ie,""),{enter:t=>{e._x_transition.enter.during=t},"enter-start":t=>{e._x_transition.enter.start=t},"enter-end":t=>{e._x_transition.enter.end=t},leave:t=>{e._x_transition.leave.during=t},"leave-start":t=>{e._x_transition.leave.start=t},"leave-end":t=>{e._x_transition.leave.end=t}}[n](t)}(e,i,t):function(e,t,n){Fe(e,He);let i=!t.includes("in")&&!t.includes("out")&&!n,r=i||t.includes("in")||["enter"].includes(n),o=i||t.includes("out")||["leave"].includes(n);t.includes("in")&&!i&&(t=t.filter(((e,n)=>n<t.indexOf("out"))));t.includes("out")&&!i&&(t=t.filter(((e,n)=>n>t.indexOf("out"))));let s=!t.includes("opacity")&&!t.includes("scale"),a=s||t.includes("opacity"),c=s||t.includes("scale"),u=a?0:1,l=c?Ge(t,"scale",95)/100:1,f=Ge(t,"delay",0),d=Ge(t,"origin","center"),p="opacity, transform",h=Ge(t,"duration",150)/1e3,m=Ge(t,"duration",75)/1e3,g="cubic-bezier(0.4, 0.0, 0.2, 1)";r&&(e._x_transition.enter.during={transformOrigin:d,transitionDelay:f,transitionProperty:p,transitionDuration:`${h}s`,transitionTimingFunction:g},e._x_transition.enter.start={opacity:u,transform:`scale(${l})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"});o&&(e._x_transition.leave.during={transformOrigin:d,transitionDelay:f,transitionProperty:p,transitionDuration:`${m}s`,transitionTimingFunction:g},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:u,transform:`scale(${l})`})}(e,n,t)})),window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,n,i){let r=()=>{"visible"===document.visibilityState?requestAnimationFrame(n):setTimeout(n)};t?e._x_transition&&(e._x_transition.enter||e._x_transition.leave)?e._x_transition.enter&&(Object.entries(e._x_transition.enter.during).length||Object.entries(e._x_transition.enter.start).length||Object.entries(e._x_transition.enter.end).length)?e._x_transition.in(n):r():e._x_transition?e._x_transition.in(n):r():(e._x_hidePromise=e._x_transition?new Promise(((t,n)=>{e._x_transition.out((()=>{}),(()=>t(i))),e._x_transitioning.beforeCancel((()=>n({isFromCancelledTransition:!0})))})):Promise.resolve(i),queueMicrotask((()=>{let t=Be(e);t?(t._x_hideChildren||(t._x_hideChildren=[]),t._x_hideChildren.push(e)):queueMicrotask((()=>{let t=e=>{let n=Promise.all([e._x_hidePromise,...(e._x_hideChildren||[]).map(t)]).then((([e])=>e()));return delete e._x_hidePromise,delete e._x_hideChildren,n};t(e).catch((e=>{if(!e.isFromCancelledTransition)throw e}))}))})))};var Ue=!1;function Xe(e,t=(()=>{})){return(...n)=>Ue?t(...n):e(...n)}function Ye(e,t,n,i=[]){switch(e._x_bindings||(e._x_bindings=p({})),e._x_bindings[t]=n,t=i.includes("camel")?t.toLowerCase().replace(/-(\w)/g,((e,t)=>t.toUpperCase())):t){case"value":!function(e,t){if("radio"===e.type)void 0===e.attributes.value&&(e.value=t),window.fromModel&&(e.checked=Ke(e.value,t));else if("checkbox"===e.type)Number.isInteger(t)?e.value=t:Number.isInteger(t)||Array.isArray(t)||"boolean"==typeof t||[null,void 0].includes(t)?Array.isArray(t)?e.checked=t.some((t=>Ke(t,e.value))):e.checked=!!t:e.value=String(t);else if("SELECT"===e.tagName)!function(e,t){const n=[].concat(t).map((e=>e+""));Array.from(e.options).forEach((e=>{e.selected=n.includes(e.value)}))}(e,t);else{if(e.value===t)return;e.value=t}}(e,n);break;case"style":!function(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles();e._x_undoAddedStyles=He(e,t)}(e,n);break;case"class":!function(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses();e._x_undoAddedClasses=Ie(e,t)}(e,n);break;default:!function(e,t,n){[null,void 0,!1].includes(n)&&function(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}(t)?e.removeAttribute(t):(Je(t)&&(n=t),function(e,t,n){e.getAttribute(t)!=n&&e.setAttribute(t,n)}(e,t,n))}(e,t,n)}}function Ke(e,t){return e==t}function Je(e){return["disabled","checked","required","readonly","hidden","open","selected","autofocus","itemscope","multiple","novalidate","allowfullscreen","allowpaymentrequest","formnovalidate","autoplay","controls","loop","muted","playsinline","default","ismap","reversed","async","defer","nomodule"].includes(e)}function Ze(e,t){var n;return function(){var i=this,r=arguments,o=function(){n=null,e.apply(i,r)};clearTimeout(n),n=setTimeout(o,t)}}function Qe(e,t){let n;return function(){let i=this,r=arguments;n||(e.apply(i,r),n=!0,setTimeout((()=>n=!1),t))}}var et={},tt=!1;var nt={};var it={};var rt={get reactive(){return p},get release(){return m},get effect(){return h},get raw(){return g},version:"3.9.5",flushAndStopDeferringMutations:function(){W=!1,I($),$=[]},disableEffectScheduling:function(e){O=!1,e(),O=!0},setReactivityEngine:function(e){p=e.reactive,m=e.release,h=t=>e.effect(t,{scheduler:e=>{O?w(e):e()}}),g=e.raw},closestDataStack:F,skipDuringClone:Xe,addRootSelector:De,addInitSelector:Re,addScopeToNode:H,deferMutations:function(){W=!0},mapAttributes:ve,evaluateLater:ee,setEvaluator:function(e){te=e},mergeProxies:B,findClosest:We,closestRoot:ze,interceptor:G,transition:qe,setStyles:He,mutateDom:z,directive:ce,throttle:Qe,debounce:Ze,evaluate:Q,initTree:$e,nextTick:Se,prefixed:se,prefix:function(e){oe=e},plugin:function(e){e(rt)},magic:Y,store:function(e,t){if(tt||(et=p(et),tt=!0),void 0===t)return et[e];et[e]=t,"object"==typeof t&&null!==t&&t.hasOwnProperty("init")&&"function"==typeof t.init&&et[e].init(),q(et[e])},start:function(){var e;document.body||Ce("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),Oe(document,"alpine:init"),Oe(document,"alpine:initializing"),L(),e=e=>$e(e,Te),A.push(e),T((e=>{Te(e,(e=>C(e)))})),function(e){k.push(e)}(((e,t)=>{ue(e,t).forEach((e=>e()))})),Array.from(document.querySelectorAll(Pe())).filter((e=>!ze(e.parentElement,!0))).forEach((e=>{$e(e)})),Oe(document,"alpine:initialized")},clone:function(e,t){t._x_dataStack||(t._x_dataStack=e._x_dataStack),Ue=!0,function(e){let t=h;E(((e,n)=>{let i=t(e);return m(i),()=>{}})),e(),E(t)}((()=>{!function(e){let t=!1;$e(e,((e,n)=>{Te(e,((e,i)=>{if(t&&function(e){return Le().some((t=>e.matches(t)))}(e))return i();t=!0,n(e,i)}))}))}(t)})),Ue=!1},bound:function(e,t,n){if(e._x_bindings&&void 0!==e._x_bindings[t])return e._x_bindings[t];let i=e.getAttribute(t);return null===i?"function"==typeof n?n():n:Je(t)?!![t,"true"].includes(i):""===i||i},$data:N,data:function(e,t){it[e]=t},bind:function(e,t){nt[e]="function"!=typeof t?()=>t:t}};function ot(e,t){const n=Object.create(null),i=e.split(",");for(let e=0;e<i.length;e++)n[i[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}var st,at=Object.freeze({}),ct=(Object.freeze([]),Object.assign),ut=Object.prototype.hasOwnProperty,lt=(e,t)=>ut.call(e,t),ft=Array.isArray,dt=e=>"[object Map]"===gt(e),pt=e=>"symbol"==typeof e,ht=e=>null!==e&&"object"==typeof e,mt=Object.prototype.toString,gt=e=>mt.call(e),vt=e=>gt(e).slice(8,-1),yt=e=>"string"==typeof e&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,bt=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},wt=/-(\w)/g,xt=(bt((e=>e.replace(wt,((e,t)=>t?t.toUpperCase():"")))),/\B([A-Z])/g),_t=(bt((e=>e.replace(xt,"-$1").toLowerCase())),bt((e=>e.charAt(0).toUpperCase()+e.slice(1)))),Ot=(bt((e=>e?`on${_t(e)}`:"")),(e,t)=>e!==t&&(e==e||t==t)),Et=new WeakMap,kt=[],St=Symbol("iterate"),At=Symbol("Map key iterate");var Tt=0;function Ct(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}var Mt=!0,jt=[];function Lt(){const e=jt.pop();Mt=void 0===e||e}function Pt(e,t,n){if(!Mt||void 0===st)return;let i=Et.get(e);i||Et.set(e,i=new Map);let r=i.get(n);r||i.set(n,r=new Set),r.has(st)||(r.add(st),st.deps.push(r),st.options.onTrack&&st.options.onTrack({effect:st,target:e,type:t,key:n}))}function Dt(e,t,n,i,r,o){const s=Et.get(e);if(!s)return;const a=new Set,c=e=>{e&&e.forEach((e=>{(e!==st||e.allowRecurse)&&a.add(e)}))};if("clear"===t)s.forEach(c);else if("length"===n&&ft(e))s.forEach(((e,t)=>{("length"===t||t>=i)&&c(e)}));else switch(void 0!==n&&c(s.get(n)),t){case"add":ft(e)?yt(n)&&c(s.get("length")):(c(s.get(St)),dt(e)&&c(s.get(At)));break;case"delete":ft(e)||(c(s.get(St)),dt(e)&&c(s.get(At)));break;case"set":dt(e)&&c(s.get(St))}a.forEach((s=>{s.options.onTrigger&&s.options.onTrigger({effect:s,target:e,key:n,type:t,newValue:i,oldValue:r,oldTarget:o}),s.options.scheduler?s.options.scheduler(s):s()}))}var Rt=ot("__proto__,__v_isRef,__isVue"),zt=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(pt)),Wt=Vt(),$t=Vt(!1,!0),It=Vt(!0),Nt=Vt(!0,!0),Ht={};function Vt(e=!1,t=!1){return function(n,i,r){if("__v_isReactive"===i)return!e;if("__v_isReadonly"===i)return e;if("__v_raw"===i&&r===(e?t?yn:vn:t?gn:mn).get(n))return n;const o=ft(n);if(!e&&o&&lt(Ht,i))return Reflect.get(Ht,i,r);const s=Reflect.get(n,i,r);if(pt(i)?zt.has(i):Rt(i))return s;if(e||Pt(n,"get",i),t)return s;if(On(s)){return!o||!yt(i)?s.value:s}return ht(s)?e?wn(s):bn(s):s}}function Ft(e=!1){return function(t,n,i,r){let o=t[n];if(!e&&(i=_n(i),o=_n(o),!ft(t)&&On(o)&&!On(i)))return o.value=i,!0;const s=ft(t)&&yt(n)?Number(n)<t.length:lt(t,n),a=Reflect.set(t,n,i,r);return t===_n(r)&&(s?Ot(i,o)&&Dt(t,"set",n,i,o):Dt(t,"add",n,i)),a}}["includes","indexOf","lastIndexOf"].forEach((e=>{const t=Array.prototype[e];Ht[e]=function(...e){const n=_n(this);for(let e=0,t=this.length;e<t;e++)Pt(n,"get",e+"");const i=t.apply(n,e);return-1===i||!1===i?t.apply(n,e.map(_n)):i}})),["push","pop","shift","unshift","splice"].forEach((e=>{const t=Array.prototype[e];Ht[e]=function(...e){jt.push(Mt),Mt=!1;const n=t.apply(this,e);return Lt(),n}}));var Bt={get:Wt,set:Ft(),deleteProperty:function(e,t){const n=lt(e,t),i=e[t],r=Reflect.deleteProperty(e,t);return r&&n&&Dt(e,"delete",t,void 0,i),r},has:function(e,t){const n=Reflect.has(e,t);return pt(t)&&zt.has(t)||Pt(e,"has",t),n},ownKeys:function(e){return Pt(e,"iterate",ft(e)?"length":St),Reflect.ownKeys(e)}},qt={get:It,set:(e,t)=>(console.warn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0),deleteProperty:(e,t)=>(console.warn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0)},Gt=(ct({},Bt,{get:$t,set:Ft(!0)}),ct({},qt,{get:Nt}),e=>ht(e)?bn(e):e),Ut=e=>ht(e)?wn(e):e,Xt=e=>e,Yt=e=>Reflect.getPrototypeOf(e);function Kt(e,t,n=!1,i=!1){const r=_n(e=e.__v_raw),o=_n(t);t!==o&&!n&&Pt(r,"get",t),!n&&Pt(r,"get",o);const{has:s}=Yt(r),a=i?Xt:n?Ut:Gt;return s.call(r,t)?a(e.get(t)):s.call(r,o)?a(e.get(o)):void(e!==r&&e.get(t))}function Jt(e,t=!1){const n=this.__v_raw,i=_n(n),r=_n(e);return e!==r&&!t&&Pt(i,"has",e),!t&&Pt(i,"has",r),e===r?n.has(e):n.has(e)||n.has(r)}function Zt(e,t=!1){return e=e.__v_raw,!t&&Pt(_n(e),"iterate",St),Reflect.get(e,"size",e)}function Qt(e){e=_n(e);const t=_n(this);return Yt(t).has.call(t,e)||(t.add(e),Dt(t,"add",e,e)),this}function en(e,t){t=_n(t);const n=_n(this),{has:i,get:r}=Yt(n);let o=i.call(n,e);o?hn(n,i,e):(e=_n(e),o=i.call(n,e));const s=r.call(n,e);return n.set(e,t),o?Ot(t,s)&&Dt(n,"set",e,t,s):Dt(n,"add",e,t),this}function tn(e){const t=_n(this),{has:n,get:i}=Yt(t);let r=n.call(t,e);r?hn(t,n,e):(e=_n(e),r=n.call(t,e));const o=i?i.call(t,e):void 0,s=t.delete(e);return r&&Dt(t,"delete",e,void 0,o),s}function nn(){const e=_n(this),t=0!==e.size,n=dt(e)?new Map(e):new Set(e),i=e.clear();return t&&Dt(e,"clear",void 0,void 0,n),i}function rn(e,t){return function(n,i){const r=this,o=r.__v_raw,s=_n(o),a=t?Xt:e?Ut:Gt;return!e&&Pt(s,"iterate",St),o.forEach(((e,t)=>n.call(i,a(e),a(t),r)))}}function on(e,t,n){return function(...i){const r=this.__v_raw,o=_n(r),s=dt(o),a="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,u=r[e](...i),l=n?Xt:t?Ut:Gt;return!t&&Pt(o,"iterate",c?At:St),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:a?[l(e[0]),l(e[1])]:l(e),done:t}},[Symbol.iterator](){return this}}}}function sn(e){return function(...t){{const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${_t(e)} operation ${n}failed: target is readonly.`,_n(this))}return"delete"!==e&&this}}var an={get(e){return Kt(this,e)},get size(){return Zt(this)},has:Jt,add:Qt,set:en,delete:tn,clear:nn,forEach:rn(!1,!1)},cn={get(e){return Kt(this,e,!1,!0)},get size(){return Zt(this)},has:Jt,add:Qt,set:en,delete:tn,clear:nn,forEach:rn(!1,!0)},un={get(e){return Kt(this,e,!0)},get size(){return Zt(this,!0)},has(e){return Jt.call(this,e,!0)},add:sn("add"),set:sn("set"),delete:sn("delete"),clear:sn("clear"),forEach:rn(!0,!1)},ln={get(e){return Kt(this,e,!0,!0)},get size(){return Zt(this,!0)},has(e){return Jt.call(this,e,!0)},add:sn("add"),set:sn("set"),delete:sn("delete"),clear:sn("clear"),forEach:rn(!0,!0)};function fn(e,t){const n=t?e?ln:cn:e?un:an;return(t,i,r)=>"__v_isReactive"===i?!e:"__v_isReadonly"===i?e:"__v_raw"===i?t:Reflect.get(lt(n,i)&&i in t?n:t,i,r)}["keys","values","entries",Symbol.iterator].forEach((e=>{an[e]=on(e,!1,!1),un[e]=on(e,!0,!1),cn[e]=on(e,!1,!0),ln[e]=on(e,!0,!0)}));var dn={get:fn(!1,!1)},pn=(fn(!1,!0),{get:fn(!0,!1)});fn(!0,!0);function hn(e,t,n){const i=_n(n);if(i!==n&&t.call(e,i)){const t=vt(e);console.warn(`Reactive ${t} contains both the raw and reactive versions of the same object${"Map"===t?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var mn=new WeakMap,gn=new WeakMap,vn=new WeakMap,yn=new WeakMap;function bn(e){return e&&e.__v_isReadonly?e:xn(e,!1,Bt,dn,mn)}function wn(e){return xn(e,!0,qt,pn,vn)}function xn(e,t,n,i,r){if(!ht(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const s=(a=e).__v_skip||!Object.isExtensible(a)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(vt(a));var a;if(0===s)return e;const c=new Proxy(e,2===s?i:n);return r.set(e,c),c}function _n(e){return e&&_n(e.__v_raw)||e}function On(e){return Boolean(e&&!0===e.__v_isRef)}Y("nextTick",(()=>Se)),Y("dispatch",(e=>Oe.bind(Oe,e))),Y("watch",((e,{evaluateLater:t,effect:n})=>(i,r)=>{let o,s=t(i),a=!0,c=n((()=>s((e=>{JSON.stringify(e),a?o=e:queueMicrotask((()=>{r(e,o),o=e})),a=!1}))));e._x_effects.delete(c)})),Y("store",(function(){return et})),Y("data",(e=>N(e))),Y("root",(e=>ze(e))),Y("refs",(e=>(e._x_refs_proxy||(e._x_refs_proxy=B(function(e){let t=[],n=e;for(;n;)n._x_refs&&t.push(n._x_refs),n=n.parentNode;return t}(e))),e._x_refs_proxy)));var En={};function kn(e){return En[e]||(En[e]=0),++En[e]}Y("id",(e=>(t,n=null)=>{let i=function(e,t){return We(e,(e=>{if(e._x_ids&&e._x_ids[t])return!0}))}(e,t),r=i?i._x_ids[t]:kn(t);return n?`${t}-${r}-${n}`:`${t}-${r}`})),Y("el",(e=>e)),ce("modelable",((e,{expression:t},{effect:n,evaluateLater:i})=>{let r=i(t),o=()=>{let e;return r((t=>e=t)),e},s=i(`${t} = __placeholder`),a=e=>s((()=>{}),{scope:{__placeholder:e}}),c=o();a(c),queueMicrotask((()=>{if(!e._x_model)return;e._x_removeModelListeners.default();let t=e._x_model.get,i=e._x_model.set;n((()=>a(t()))),n((()=>i(o())))}))})),ce("teleport",((e,{expression:t},{cleanup:n})=>{"template"!==e.tagName.toLowerCase()&&Ce("x-teleport can only be used on a <template> tag",e);let i=document.querySelector(t);i||Ce(`Cannot find x-teleport element for selector: "${t}"`);let r=e.content.cloneNode(!0).firstElementChild;e._x_teleport=r,r._x_teleportBack=e,e._x_forwardEvents&&e._x_forwardEvents.forEach((t=>{r.addEventListener(t,(t=>{t.stopPropagation(),e.dispatchEvent(new t.constructor(t.type,t))}))})),H(r,{},e),z((()=>{i.appendChild(r),$e(r),r._x_ignore=!0})),n((()=>r.remove()))}));var Sn=()=>{};function An(e,t,n,i){let r=e,o=e=>i(e),s={},a=(e,t)=>n=>t(e,n);if(n.includes("dot")&&(t=t.replace(/-/g,".")),n.includes("camel")&&(t=function(e){return e.toLowerCase().replace(/-(\w)/g,((e,t)=>t.toUpperCase()))}(t)),n.includes("passive")&&(s.passive=!0),n.includes("capture")&&(s.capture=!0),n.includes("window")&&(r=window),n.includes("document")&&(r=document),n.includes("prevent")&&(o=a(o,((e,t)=>{t.preventDefault(),e(t)}))),n.includes("stop")&&(o=a(o,((e,t)=>{t.stopPropagation(),e(t)}))),n.includes("self")&&(o=a(o,((t,n)=>{n.target===e&&t(n)}))),(n.includes("away")||n.includes("outside"))&&(r=document,o=a(o,((t,n)=>{e.contains(n.target)||!1!==n.target.isConnected&&(e.offsetWidth<1&&e.offsetHeight<1||!1!==e._x_isShown&&t(n))}))),n.includes("once")&&(o=a(o,((e,n)=>{e(n),r.removeEventListener(t,o,s)}))),o=a(o,((e,i)=>{(function(e){return["keydown","keyup"].includes(e)})(t)&&function(e,t){let n=t.filter((e=>!["window","document","prevent","stop","once"].includes(e)));if(n.includes("debounce")){let e=n.indexOf("debounce");n.splice(e,Tn((n[e+1]||"invalid-wait").split("ms")[0])?2:1)}if(0===n.length)return!1;if(1===n.length&&Cn(e.key).includes(n[0]))return!1;const i=["ctrl","shift","alt","meta","cmd","super"].filter((e=>n.includes(e)));if(n=n.filter((e=>!i.includes(e))),i.length>0){if(i.filter((t=>("cmd"!==t&&"super"!==t||(t="meta"),e[`${t}Key`]))).length===i.length&&Cn(e.key).includes(n[0]))return!1}return!0}(i,n)||e(i)})),n.includes("debounce")){let e=n[n.indexOf("debounce")+1]||"invalid-wait",t=Tn(e.split("ms")[0])?Number(e.split("ms")[0]):250;o=Ze(o,t)}if(n.includes("throttle")){let e=n[n.indexOf("throttle")+1]||"invalid-wait",t=Tn(e.split("ms")[0])?Number(e.split("ms")[0]):250;o=Qe(o,t)}return r.addEventListener(t,o,s),()=>{r.removeEventListener(t,o,s)}}function Tn(e){return!Array.isArray(e)&&!isNaN(e)}function Cn(e){if(!e)return[];e=e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase();let t={ctrl:"control",slash:"/",space:"-",spacebar:"-",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",equal:"="};return t[e]=e,Object.keys(t).map((n=>{if(t[n]===e)return n})).filter((e=>e))}function Mn(e){let t=e?parseFloat(e):null;return n=t,Array.isArray(n)||isNaN(n)?e:t;var n}function jn(e,t,n,i){let r={};if(/^\[.*\]$/.test(e.item)&&Array.isArray(t)){e.item.replace("[","").replace("]","").split(",").map((e=>e.trim())).forEach(((e,n)=>{r[e]=t[n]}))}else if(/^\{.*\}$/.test(e.item)&&!Array.isArray(t)&&"object"==typeof t){e.item.replace("{","").replace("}","").split(",").map((e=>e.trim())).forEach((e=>{r[e]=t[e]}))}else r[e.item]=t;return e.index&&(r[e.index]=n),e.collection&&(r[e.collection]=i),r}function Ln(){}Sn.inline=(e,{modifiers:t},{cleanup:n})=>{t.includes("self")?e._x_ignoreSelf=!0:e._x_ignore=!0,n((()=>{t.includes("self")?delete e._x_ignoreSelf:delete e._x_ignore}))},ce("ignore",Sn),ce("effect",((e,{expression:t},{effect:n})=>n(ee(e,t)))),ce("model",((e,{modifiers:t,expression:n},{effect:i,cleanup:r})=>{let o=ee(e,n),s=ee(e,`${n} = rightSideOfExpression($event, ${n})`);var a="select"===e.tagName.toLowerCase()||["checkbox","radio"].includes(e.type)||t.includes("lazy")?"change":"input";let c=function(e,t,n){"radio"===e.type&&z((()=>{e.hasAttribute("name")||e.setAttribute("name",n)}));return(n,i)=>z((()=>{if(n instanceof CustomEvent&&void 0!==n.detail)return n.detail||n.target.value;if("checkbox"===e.type){if(Array.isArray(i)){let e=t.includes("number")?Mn(n.target.value):n.target.value;return n.target.checked?i.concat([e]):i.filter((t=>!(t==e)))}return n.target.checked}if("select"===e.tagName.toLowerCase()&&e.multiple)return t.includes("number")?Array.from(n.target.selectedOptions).map((e=>Mn(e.value||e.text))):Array.from(n.target.selectedOptions).map((e=>e.value||e.text));{let e=n.target.value;return t.includes("number")?Mn(e):t.includes("trim")?e.trim():e}}))}(e,t,n),u=An(e,a,t,(e=>{s((()=>{}),{scope:{$event:e,rightSideOfExpression:c}})}));e._x_removeModelListeners||(e._x_removeModelListeners={}),e._x_removeModelListeners.default=u,r((()=>e._x_removeModelListeners.default()));let l=ee(e,`${n} = __placeholder`);e._x_model={get(){let e;return o((t=>e=t)),e},set(e){l((()=>{}),{scope:{__placeholder:e}})}},e._x_forceModelUpdate=()=>{o((t=>{void 0===t&&n.match(/\./)&&(t=""),window.fromModel=!0,z((()=>Ye(e,"value",t))),delete window.fromModel}))},i((()=>{t.includes("unintrusive")&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate()}))})),ce("cloak",(e=>queueMicrotask((()=>z((()=>e.removeAttribute(se("cloak")))))))),Re((()=>`[${se("init")}]`)),ce("init",Xe(((e,{expression:t},{evaluate:n})=>"string"==typeof t?!!t.trim()&&n(t,{},!1):n(t,{},!1)))),ce("text",((e,{expression:t},{effect:n,evaluateLater:i})=>{let r=i(t);n((()=>{r((t=>{z((()=>{e.textContent=t}))}))}))})),ce("html",((e,{expression:t},{effect:n,evaluateLater:i})=>{let r=i(t);n((()=>{r((t=>{z((()=>{e.innerHTML=t,e._x_ignoreSelf=!0,$e(e),delete e._x_ignoreSelf}))}))}))})),ve(he(":",se("bind:"))),ce("bind",((e,{value:t,modifiers:n,expression:i,original:r},{effect:o})=>{if(!t)return function(e,t,n,i){let r={};o=r,Object.entries(nt).forEach((([e,t])=>{Object.defineProperty(o,e,{get:()=>(...e)=>t(...e)})}));var o;let s=ee(e,t),a=[];for(;a.length;)a.pop()();s((t=>{let i=Object.entries(t).map((([e,t])=>({name:e,value:t}))),r=function(e){return Array.from(e).map(me()).filter((e=>!ye(e)))}(i);i=i.map((e=>r.find((t=>t.name===e.name))?{name:`x-bind:${e.name}`,value:`"${e.value}"`}:e)),ue(e,i,n).map((e=>{a.push(e.runCleanups),e()}))}),{scope:r})}(e,i,r);if("key"===t)return function(e,t){e._x_keyExpression=t}(e,i);let s=ee(e,i);o((()=>s((r=>{void 0===r&&i.match(/\./)&&(r=""),z((()=>Ye(e,t,r,n)))}))))})),De((()=>`[${se("data")}]`)),ce("data",Xe(((e,{expression:t},{cleanup:n})=>{t=""===t?"{}":t;let i={};K(i,e);let r={};var o,s;o=r,s=i,Object.entries(it).forEach((([e,t])=>{Object.defineProperty(o,e,{get:()=>(...e)=>t.bind(s)(...e),enumerable:!1})}));let a=Q(e,t,{scope:r});void 0===a&&(a={}),K(a,e);let c=p(a);q(c);let u=H(e,c);c.init&&Q(e,c.init),n((()=>{c.destroy&&Q(e,c.destroy),u()}))}))),ce("show",((e,{modifiers:t,expression:n},{effect:i})=>{let r,o=ee(e,n),s=()=>z((()=>{e.style.display="none",e._x_isShown=!1})),a=()=>z((()=>{1===e.style.length&&"none"===e.style.display?e.removeAttribute("style"):e.style.removeProperty("display"),e._x_isShown=!0})),c=()=>setTimeout(a),u=Ve((e=>e?a():s()),(t=>{"function"==typeof e._x_toggleAndCascadeWithTransitions?e._x_toggleAndCascadeWithTransitions(e,t,a,s):t?c():s()})),l=!0;i((()=>o((e=>{(l||e!==r)&&(t.includes("immediate")&&(e?c():s()),u(e),r=e,l=!1)}))))})),ce("for",((e,{expression:t},{effect:n,cleanup:i})=>{let r=function(e){let t=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,n=/^\s*\(|\)\s*$/g,i=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,r=e.match(i);if(!r)return;let o={};o.items=r[2].trim();let s=r[1].replace(n,"").trim(),a=s.match(t);a?(o.item=s.replace(t,"").trim(),o.index=a[1].trim(),a[2]&&(o.collection=a[2].trim())):o.item=s;return o}(t),o=ee(e,r.items),s=ee(e,e._x_keyExpression||"index");e._x_prevKeys=[],e._x_lookup={},n((()=>function(e,t,n,i){let r=e=>"object"==typeof e&&!Array.isArray(e),o=e;n((n=>{var s;s=n,!Array.isArray(s)&&!isNaN(s)&&n>=0&&(n=Array.from(Array(n).keys(),(e=>e+1))),void 0===n&&(n=[]);let a=e._x_lookup,c=e._x_prevKeys,u=[],l=[];if(r(n))n=Object.entries(n).map((([e,r])=>{let o=jn(t,r,e,n);i((e=>l.push(e)),{scope:{index:e,...o}}),u.push(o)}));else for(let e=0;e<n.length;e++){let r=jn(t,n[e],e,n);i((e=>l.push(e)),{scope:{index:e,...r}}),u.push(r)}let f=[],d=[],h=[],m=[];for(let e=0;e<c.length;e++){let t=c[e];-1===l.indexOf(t)&&h.push(t)}c=c.filter((e=>!h.includes(e)));let g="template";for(let e=0;e<l.length;e++){let t=l[e],n=c.indexOf(t);if(-1===n)c.splice(e,0,t),f.push([g,e]);else if(n!==e){let t=c.splice(e,1)[0],i=c.splice(n-1,1)[0];c.splice(e,0,i),c.splice(n,0,t),d.push([t,i])}else m.push(t);g=t}for(let e=0;e<h.length;e++){let t=h[e];a[t]._x_effects&&a[t]._x_effects.forEach(x),a[t].remove(),a[t]=null,delete a[t]}for(let e=0;e<d.length;e++){let[t,n]=d[e],i=a[t],r=a[n],o=document.createElement("div");z((()=>{r.after(o),i.after(r),r._x_currentIfEl&&r.after(r._x_currentIfEl),o.before(i),i._x_currentIfEl&&i.after(i._x_currentIfEl),o.remove()})),V(r,u[l.indexOf(n)])}for(let e=0;e<f.length;e++){let[t,n]=f[e],i="template"===t?o:a[t];i._x_currentIfEl&&(i=i._x_currentIfEl);let r=u[n],s=l[n],c=document.importNode(o.content,!0).firstElementChild;H(c,p(r),o),z((()=>{i.after(c),$e(c)})),"object"==typeof s&&Ce("x-for key cannot be an object, it must be a string or an integer",o),a[s]=c}for(let e=0;e<m.length;e++)V(a[m[e]],u[l.indexOf(m[e])]);o._x_prevKeys=l}))}(e,r,o,s))),i((()=>{Object.values(e._x_lookup).forEach((e=>e.remove())),delete e._x_prevKeys,delete e._x_lookup}))})),Ln.inline=(e,{expression:t},{cleanup:n})=>{let i=ze(e);i._x_refs||(i._x_refs={}),i._x_refs[t]=e,n((()=>delete i._x_refs[t]))},ce("ref",Ln),ce("if",((e,{expression:t},{effect:n,cleanup:i})=>{let r=ee(e,t);n((()=>r((t=>{t?(()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let t=e.content.cloneNode(!0).firstElementChild;H(t,{},e),z((()=>{e.after(t),$e(t)})),e._x_currentIfEl=t,e._x_undoIf=()=>{Te(t,(e=>{e._x_effects&&e._x_effects.forEach(x)})),t.remove(),delete e._x_currentIfEl}})():e._x_undoIf&&(e._x_undoIf(),delete e._x_undoIf)})))),i((()=>e._x_undoIf&&e._x_undoIf()))})),ce("id",((e,{expression:t},{evaluate:n})=>{n(t).forEach((t=>function(e,t){e._x_ids||(e._x_ids={}),e._x_ids[t]||(e._x_ids[t]=kn(t))}(e,t)))})),ve(he("@",se("on:"))),ce("on",Xe(((e,{value:t,modifiers:n,expression:i},{cleanup:r})=>{let o=i?ee(e,i):()=>{};"template"===e.tagName.toLowerCase()&&(e._x_forwardEvents||(e._x_forwardEvents=[]),e._x_forwardEvents.includes(t)||e._x_forwardEvents.push(t));let s=An(e,t,n,(e=>{o((()=>{}),{scope:{$event:e},params:[e]})}));r((()=>s()))}))),rt.setEvaluator(ne),rt.setReactivityEngine({reactive:bn,effect:function(e,t=at){(function(e){return e&&!0===e._isEffect})(e)&&(e=e.raw);const n=function(e,t){const n=function(){if(!n.active)return e();if(!kt.includes(n)){Ct(n);try{return jt.push(Mt),Mt=!0,kt.push(n),st=n,e()}finally{kt.pop(),Lt(),st=kt[kt.length-1]}}};return n.id=Tt++,n.allowRecurse=!!t.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}(e,t);return t.lazy||n(),n},release:function(e){e.active&&(Ct(e),e.options.onStop&&e.options.onStop(),e.active=!1)},raw:_n});var Pn=rt;var Dn=function(e){let t=()=>{let t,n=localStorage;return e.interceptor(((i,r,o,s,a)=>{let c=t||`_x_${s}`,u=function(e,t){return null!==t.getItem(e)}(c,n)?function(e,t){return JSON.parse(t.getItem(e,t))}(c,n):i;return o(u),e.effect((()=>{let e=r();!function(e,t,n){n.setItem(e,JSON.stringify(t))}(c,e,n),o(e)})),u}),(e=>{e.as=n=>(t=n,e),e.using=t=>(n=t,e)}))};Object.defineProperty(e,"$persist",{get:()=>t()}),e.magic("persist",t)};function Rn(e){return new class{el=void 0;constructor(e){this.el=e}traversals={first:"firstElementChild",next:"nextElementSibling",parent:"parentElement"};nodes(){return this.traversals={first:"firstChild",next:"nextSibling",parent:"parentNode"},this}first(){return this.teleportTo(this.el[this.traversals.first])}next(){return this.teleportTo(this.teleportBack(this.el[this.traversals.next]))}before(e){return this.el[this.traversals.parent].insertBefore(e,this.el),e}replace(e){return this.el[this.traversals.parent].replaceChild(e,this.el),e}append(e){return this.el.appendChild(e),e}teleportTo(e){return e&&e._x_teleport?e._x_teleport:e}teleportBack(e){return e&&e._x_teleportBack?e._x_teleportBack:e}}(e)}var zn=()=>{},Wn=()=>{};async function $n(e,t,n){let i,r,o,s,a,c,u,l,f,d,p;function h(e){if(p)return Wn((e||"").replace("\n","\\n"),i,r),new Promise((e=>zn=()=>e()))}async function m(e,t){if(function(e,t){return e.nodeType!=t.nodeType||e.nodeName!=t.nodeName||g(e)!=g(t)}(e,t)){let n=function(e,t){if(In(u,e))return;let n=t.cloneNode(!0);if(In(f,n))return;Rn(e).replace(n),l(e),d(n)}(e,t);return await h("Swap elements"),n}let n=!1;if(!In(a,e,t,(()=>n=!0))){if(window.Alpine&&function(e,t,n){if(1!==e.nodeType)return;e._x_dataStack&&window.Alpine.clone(e,t)}(e,t),3===(i=t).nodeType||8===i.nodeType)return await async function(e,t){let n=t.nodeValue;e.nodeValue!==n&&(e.nodeValue=n,await h("Change text node to: "+n))}(e,t),void c(e,t);var i;n||await async function(e,t){if(e._x_isShown&&!t._x_isShown)return;if(!e._x_isShown&&t._x_isShown)return;let n=Array.from(e.attributes),i=Array.from(t.attributes);for(let i=n.length-1;i>=0;i--){let r=n[i].name;t.hasAttribute(r)||(e.removeAttribute(r),await h("Remove attribute"))}for(let t=i.length-1;t>=0;t--){let n=i[t].name,r=i[t].value;e.getAttribute(n)!==r&&(e.setAttribute(n,r),await h(`Set [${n}] attribute to: "${r}"`))}}(e,t),c(e,t),await async function(e,t){let n=e.childNodes,i=(v(t.childNodes),v(n)),r=Rn(t).nodes().first(),o=Rn(e).nodes().first(),a={};for(;r;){let t=g(r),n=g(o);if(!o){if(!t||!a[t]){let t=y(r,e)||{};await h("Add element: "+(t.outerHTML||t.nodeValue)),r=Rn(r).nodes().next();continue}{let n=a[t];Rn(e).append(n),o=n,await h("Add element (from key)")}}if(s){let e=Rn(r).next(),t=!1;for(;!t&&e;)o.isEqualNode(e)&&(t=!0,o=b(r,o),n=g(o),await h("Move element (lookahead)")),e=Rn(e).next()}if(t!==n){if(!t&&n){a[n]=o,o=b(r,o),a[n].remove(),o=Rn(o).nodes().next(),r=Rn(r).nodes().next(),await h('No "to" key');continue}if(t&&!n&&i[t]&&(o=Rn(o).replace(i[t]),await h('No "from" key')),t&&n){a[n]=o;let e=i[t];if(!e){a[n]=o,o=b(r,o),a[n].remove(),o=Rn(o).next(),r=Rn(r).next(),await h("Swap elements with keys");continue}o=Rn(o).replace(e),await h('Move "from" key')}}let c=o&&Rn(o).nodes().next();await m(o,r),r=r&&Rn(r).nodes().next(),o=c}let c=[];for(;o;)In(u,o)||c.push(o),o=Rn(o).nodes().next();for(;c.length;){let e=c.shift();e.remove(),await h("remove el"),l(e)}}(e,t)}}function g(e){return e&&1===e.nodeType&&o(e)}function v(e){let t={};return e.forEach((e=>{let n=g(e);n&&(t[n]=e)})),t}function y(e,t){if(!In(f,e)){let n=e.cloneNode(!0);return Rn(t).append(n),d(n),n}return null}function b(e,t){if(!In(f,e)){let n=e.cloneNode(!0);return Rn(t).before(n),d(n),n}return t}var w;return function(e={}){let t=()=>{};a=e.updating||t,c=e.updated||t,u=e.removing||t,l=e.removed||t,f=e.adding||t,d=e.added||t,o=e.key||(e=>e.getAttribute("key")),s=e.lookahead||!1,p=e.debug||!1}(n),i=e,w=t,r=document.createRange().createContextualFragment(w).firstElementChild,window.Alpine&&window.Alpine.closestDataStack&&!e._x_dataStack&&(r._x_dataStack=window.Alpine.closestDataStack(e),r._x_dataStack&&window.Alpine.clone(e,r)),await h(),await m(e,r),i=void 0,r=void 0,e}function In(e,...t){let n=!1;return e(...t,(()=>n=!0)),n}$n.step=()=>zn(),$n.log=e=>{Wn=e};var Nn,Hn,Vn=function(e){e.morph=$n},Fn=Object.create,Bn=Object.defineProperty,qn=Object.getPrototypeOf,Gn=Object.prototype.hasOwnProperty,Un=Object.getOwnPropertyNames,Xn=Object.getOwnPropertyDescriptor,Yn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Kn=Yn((e=>{function t(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function n(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function i(e){var t=n(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function r(e){return e instanceof n(e).Element||e instanceof Element}function o(e){return e instanceof n(e).HTMLElement||e instanceof HTMLElement}function s(e){return"undefined"!=typeof ShadowRoot&&(e instanceof n(e).ShadowRoot||e instanceof ShadowRoot)}function a(e){return e?(e.nodeName||"").toLowerCase():null}function c(e){return((r(e)?e.ownerDocument:e.document)||window.document).documentElement}function u(e){return t(c(e)).left+i(e).scrollLeft}function l(e){return n(e).getComputedStyle(e)}function f(e){var t=l(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function d(e,r,s){void 0===s&&(s=!1);var l,d,p=c(r),h=t(e),m=o(r),g={scrollLeft:0,scrollTop:0},v={x:0,y:0};return(m||!m&&!s)&&(("body"!==a(r)||f(p))&&(g=(l=r)!==n(l)&&o(l)?{scrollLeft:(d=l).scrollLeft,scrollTop:d.scrollTop}:i(l)),o(r)?((v=t(r)).x+=r.clientLeft,v.y+=r.clientTop):p&&(v.x=u(p))),{x:h.left+g.scrollLeft-v.x,y:h.top+g.scrollTop-v.y,width:h.width,height:h.height}}function p(e){var n=t(e),i=e.offsetWidth,r=e.offsetHeight;return Math.abs(n.width-i)<=1&&(i=n.width),Math.abs(n.height-r)<=1&&(r=n.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:r}}function h(e){return"html"===a(e)?e:e.assignedSlot||e.parentNode||(s(e)?e.host:null)||c(e)}function m(e){return["html","body","#document"].indexOf(a(e))>=0?e.ownerDocument.body:o(e)&&f(e)?e:m(h(e))}function g(e,t){var i;void 0===t&&(t=[]);var r=m(e),o=r===(null==(i=e.ownerDocument)?void 0:i.body),s=n(r),a=o?[s].concat(s.visualViewport||[],f(r)?r:[]):r,c=t.concat(a);return o?c:c.concat(g(h(a)))}function v(e){return["table","td","th"].indexOf(a(e))>=0}function y(e){return o(e)&&"fixed"!==l(e).position?e.offsetParent:null}function b(e){for(var t=n(e),i=y(e);i&&v(i)&&"static"===l(i).position;)i=y(i);return i&&("html"===a(i)||"body"===a(i)&&"static"===l(i).position)?t:i||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&o(e)&&"fixed"===l(e).position)return null;for(var n=h(e);o(n)&&["html","body"].indexOf(a(n))<0;){var i=l(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}Object.defineProperty(e,"__esModule",{value:!0});var w="top",x="bottom",_="right",O="left",E="auto",k=[w,x,_,O],S="start",A="end",T="viewport",C="popper",M=k.reduce((function(e,t){return e.concat([t+"-"+S,t+"-"+A])}),[]),j=[].concat(k,[E]).reduce((function(e,t){return e.concat([t,t+"-"+S,t+"-"+A])}),[]),L=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function P(e){var t=new Map,n=new Set,i=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var i=t.get(e);i&&r(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),i}function D(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return[].concat(n).reduce((function(e,t){return e.replace(/%s/,t)}),e)}var R='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',z=["name","enabled","phase","fn","effect","requires","options"];function W(e){return e.split("-")[0]}var $=Math.max,I=Math.min,N=Math.round;function H(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&s(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function V(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function F(e,r){return r===T?V(function(e){var t=n(e),i=c(e),r=t.visualViewport,o=i.clientWidth,s=i.clientHeight,a=0,l=0;return r&&(o=r.width,s=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,l=r.offsetTop)),{width:o,height:s,x:a+u(e),y:l}}(e)):o(r)?function(e){var n=t(e);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(r):V(function(e){var t,n=c(e),r=i(e),o=null==(t=e.ownerDocument)?void 0:t.body,s=$(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=$(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),f=-r.scrollLeft+u(e),d=-r.scrollTop;return"rtl"===l(o||n).direction&&(f+=$(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:a,x:f,y:d}}(c(e)))}function B(e,t,n){var i="clippingParents"===t?function(e){var t=g(h(e)),n=["absolute","fixed"].indexOf(l(e).position)>=0&&o(e)?b(e):e;return r(n)?t.filter((function(e){return r(e)&&H(e,n)&&"body"!==a(e)})):[]}(e):[].concat(t),s=[].concat(i,[n]),c=s[0],u=s.reduce((function(t,n){var i=F(e,n);return t.top=$(i.top,t.top),t.right=I(i.right,t.right),t.bottom=I(i.bottom,t.bottom),t.left=$(i.left,t.left),t}),F(e,c));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function q(e){return e.split("-")[1]}function G(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function U(e){var t,n=e.reference,i=e.element,r=e.placement,o=r?W(r):null,s=r?q(r):null,a=n.x+n.width/2-i.width/2,c=n.y+n.height/2-i.height/2;switch(o){case w:t={x:a,y:n.y-i.height};break;case x:t={x:a,y:n.y+n.height};break;case _:t={x:n.x+n.width,y:c};break;case O:t={x:n.x-i.width,y:c};break;default:t={x:n.x,y:n.y}}var u=o?G(o):null;if(null!=u){var l="y"===u?"height":"width";switch(s){case S:t[u]=t[u]-(n[l]/2-i[l]/2);break;case A:t[u]=t[u]+(n[l]/2-i[l]/2)}}return t}function X(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Y(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function K(e,n){void 0===n&&(n={});var i=n,o=i.placement,s=void 0===o?e.placement:o,a=i.boundary,u=void 0===a?"clippingParents":a,l=i.rootBoundary,f=void 0===l?T:l,d=i.elementContext,p=void 0===d?C:d,h=i.altBoundary,m=void 0!==h&&h,g=i.padding,v=void 0===g?0:g,y=X("number"!=typeof v?v:Y(v,k)),b=p===C?"reference":C,O=e.elements.reference,E=e.rects.popper,S=e.elements[m?b:p],A=B(r(S)?S:S.contextElement||c(e.elements.popper),u,f),M=t(O),j=U({reference:M,element:E,strategy:"absolute",placement:s}),L=V(Object.assign({},E,j)),P=p===C?L:M,D={top:A.top-P.top+y.top,bottom:P.bottom-A.bottom+y.bottom,left:A.left-P.left+y.left,right:P.right-A.right+y.right},R=e.modifiersData.offset;if(p===C&&R){var z=R[s];Object.keys(D).forEach((function(e){var t=[_,x].indexOf(e)>=0?1:-1,n=[w,x].indexOf(e)>=0?"y":"x";D[e]+=z[n]*t}))}return D}var J="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Z={placement:"bottom",modifiers:[],strategy:"absolute"};function Q(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function ee(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,o=t.defaultOptions,s=void 0===o?Z:o;return function(e,t,n){void 0===n&&(n=s);var o,a,c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Z,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],f=!1,h={state:c,setOptions:function(n){m(),c.options=Object.assign({},s,c.options,n),c.scrollParents={reference:r(e)?g(e):e.contextElement?g(e.contextElement):[],popper:g(t)};var o,a,f,d=function(e){var t=P(e);return L.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(i,c.options.modifiers)));(c.orderedModifiers=d.filter((function(e){return e.enabled})),function(e){e.forEach((function(t){Object.keys(t).forEach((function(n){switch(n){case"name":"string"!=typeof t.name&&console.error(D(R,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(D(R,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));case"phase":L.indexOf(t.phase)<0&&console.error(D(R,t.name,'"phase"',"either "+L.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(D(R,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":"function"!=typeof t.effect&&console.error(D(R,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":Array.isArray(t.requires)||console.error(D(R,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(D(R,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+z.map((function(e){return'"'+e+'"'})).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach((function(n){null==e.find((function(e){return e.name===n}))&&console.error(D('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),n,n))}))}))}))}((o=[].concat(d,c.options.modifiers),a=function(e){return e.name},f=new Set,o.filter((function(e){var t=a(e);if(!f.has(t))return f.add(t),!0})))),W(c.options.placement)===E)&&(c.orderedModifiers.find((function(e){return"flip"===e.name}))||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" ")));var p=l(t);return[p.marginTop,p.marginRight,p.marginBottom,p.marginLeft].some((function(e){return parseFloat(e)}))&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" ")),c.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,r=e.effect;if("function"==typeof r){var o=r({state:c,name:t,instance:h,options:i}),s=function(){};u.push(o||s)}})),h.update()},forceUpdate:function(){if(!f){var e=c.elements,t=e.reference,n=e.popper;if(Q(t,n)){c.rects={reference:d(t,b(n),"fixed"===c.options.strategy),popper:p(n)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach((function(e){return c.modifiersData[e.name]=Object.assign({},e.data)}));for(var i=0,r=0;r<c.orderedModifiers.length;r++){if((i+=1)>100){console.error("Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.");break}if(!0!==c.reset){var o=c.orderedModifiers[r],s=o.fn,a=o.options,u=void 0===a?{}:a,l=o.name;"function"==typeof s&&(c=s({state:c,options:u,name:l,instance:h})||c)}else c.reset=!1,r=-1}}else console.error(J)}},update:(o=function(){return new Promise((function(e){h.forceUpdate(),e(c)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){m(),f=!0}};if(!Q(e,t))return console.error(J),h;function m(){u.forEach((function(e){return e()})),u=[]}return h.setOptions(n).then((function(e){!f&&n.onFirstUpdate&&n.onFirstUpdate(e)})),h}}var te={passive:!0};var ne={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,r=e.options,o=r.scroll,s=void 0===o||o,a=r.resize,c=void 0===a||a,u=n(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&l.forEach((function(e){e.addEventListener("scroll",i.update,te)})),c&&u.addEventListener("resize",i.update,te),function(){s&&l.forEach((function(e){e.removeEventListener("scroll",i.update,te)})),c&&u.removeEventListener("resize",i.update,te)}},data:{}};var ie={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=U({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},re={top:"auto",right:"auto",bottom:"auto",left:"auto"};function oe(e){var t,i=e.popper,r=e.popperRect,o=e.placement,s=e.offsets,a=e.position,u=e.gpuAcceleration,f=e.adaptive,d=e.roundOffsets,p=!0===d?function(e){var t=e.x,n=e.y,i=window.devicePixelRatio||1;return{x:N(N(t*i)/i)||0,y:N(N(n*i)/i)||0}}(s):"function"==typeof d?d(s):s,h=p.x,m=void 0===h?0:h,g=p.y,v=void 0===g?0:g,y=s.hasOwnProperty("x"),E=s.hasOwnProperty("y"),k=O,S=w,A=window;if(f){var T=b(i),C="clientHeight",M="clientWidth";T===n(i)&&"static"!==l(T=c(i)).position&&(C="scrollHeight",M="scrollWidth"),o===w&&(S=x,v-=T[C]-r.height,v*=u?1:-1),o===O&&(k=_,m-=T[M]-r.width,m*=u?1:-1)}var j,L=Object.assign({position:a},f&&re);return u?Object.assign({},L,((j={})[S]=E?"0":"",j[k]=y?"0":"",j.transform=(A.devicePixelRatio||1)<2?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",j)):Object.assign({},L,((t={})[S]=E?v+"px":"",t[k]=y?m+"px":"",t.transform="",t))}var se={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=void 0===i||i,o=n.adaptive,s=void 0===o||o,a=n.roundOffsets,c=void 0===a||a,u=l(t.elements.popper).transitionProperty||"";s&&["transform","top","right","bottom","left"].some((function(e){return u.indexOf(e)>=0}))&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "));var f={placement:W(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,oe(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,oe(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var ae={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},r=t.elements[e];o(r)&&a(r)&&(Object.assign(r.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],r=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});o(i)&&a(i)&&(Object.assign(i.style,s),Object.keys(r).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]};var ce={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.offset,o=void 0===r?[0,0]:r,s=j.reduce((function(e,n){return e[n]=function(e,t,n){var i=W(e),r=[O,w].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*r,[O,_].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,o),e}),{}),a=s[t.placement],c=a.x,u=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[i]=s}},ue={left:"right",right:"left",bottom:"top",top:"bottom"};function le(e){return e.replace(/left|right|bottom|top/g,(function(e){return ue[e]}))}var fe={start:"end",end:"start"};function de(e){return e.replace(/start|end/g,(function(e){return fe[e]}))}var pe={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=n.mainAxis,o=void 0===r||r,s=n.altAxis,a=void 0===s||s,c=n.fallbackPlacements,u=n.padding,l=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=W(g),y=c||(v===g||!h?[le(g)]:function(e){if(W(e)===E)return[];var t=le(e);return[de(e),t,de(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(W(n)===E?function(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,u=void 0===c?j:c,l=q(i),f=l?a?M:M.filter((function(e){return q(e)===l})):k,d=f.filter((function(e){return u.indexOf(e)>=0}));0===d.length&&(d=f,console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var p=d.reduce((function(t,n){return t[n]=K(e,{placement:n,boundary:r,rootBoundary:o,padding:s})[W(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:l,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),A=t.rects.reference,T=t.rects.popper,C=new Map,L=!0,P=b[0],D=0;D<b.length;D++){var R=b[D],z=W(R),$=q(R)===S,I=[w,x].indexOf(z)>=0,N=I?"width":"height",H=K(t,{placement:R,boundary:l,rootBoundary:f,altBoundary:d,padding:u}),V=I?$?_:O:$?x:w;A[N]>T[N]&&(V=le(V));var F=le(V),B=[];if(o&&B.push(H[z]<=0),a&&B.push(H[V]<=0,H[F]<=0),B.every((function(e){return e}))){P=R,L=!1;break}C.set(R,B)}if(L)for(var G=function(e){var t=b.find((function(t){var n=C.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return P=t,"break"},U=h?3:1;U>0;U--){if("break"===G(U))break}t.placement!==P&&(t.modifiersData[i]._skip=!0,t.placement=P,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function he(e,t,n){return $(e,I(t,n))}var me={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.mainAxis,o=void 0===r||r,s=n.altAxis,a=void 0!==s&&s,c=n.boundary,u=n.rootBoundary,l=n.altBoundary,f=n.padding,d=n.tether,h=void 0===d||d,m=n.tetherOffset,g=void 0===m?0:m,v=K(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:l}),y=W(t.placement),E=q(t.placement),k=!E,A=G(y),T="x"===A?"y":"x",C=t.modifiersData.popperOffsets,M=t.rects.reference,j=t.rects.popper,L="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,P={x:0,y:0};if(C){if(o||a){var D="y"===A?w:O,R="y"===A?x:_,z="y"===A?"height":"width",N=C[A],H=C[A]+v[D],V=C[A]-v[R],F=h?-j[z]/2:0,B=E===S?M[z]:j[z],U=E===S?-j[z]:-M[z],X=t.elements.arrow,Y=h&&X?p(X):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Z=J[D],Q=J[R],ee=he(0,M[z],Y[z]),te=k?M[z]/2-F-ee-Z-L:B-ee-Z-L,ne=k?-M[z]/2+F+ee+Q+L:U+ee+Q+L,ie=t.elements.arrow&&b(t.elements.arrow),re=ie?"y"===A?ie.clientTop||0:ie.clientLeft||0:0,oe=t.modifiersData.offset?t.modifiersData.offset[t.placement][A]:0,se=C[A]+te-oe-re,ae=C[A]+ne-oe;if(o){var ce=he(h?I(H,se):H,N,h?$(V,ae):V);C[A]=ce,P[A]=ce-N}if(a){var ue="x"===A?w:O,le="x"===A?x:_,fe=C[T],de=fe+v[ue],pe=fe-v[le],me=he(h?I(de,se):de,fe,h?$(pe,ae):pe);C[T]=me,P[T]=me-fe}}t.modifiersData[i]=P}},requiresIfExists:["offset"]};var ge={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,r=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=W(n.placement),c=G(a),u=[O,_].indexOf(a)>=0?"height":"width";if(o&&s){var l=function(e,t){return X("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Y(e,k))}(r.padding,n),f=p(o),d="y"===c?w:O,h="y"===c?x:_,m=n.rects.reference[u]+n.rects.reference[c]-s[c]-n.rects.popper[u],g=s[c]-n.rects.reference[c],v=b(o),y=v?"y"===c?v.clientHeight||0:v.clientWidth||0:0,E=m/2-g/2,S=l[d],A=y-f[u]-l[h],T=y/2-f[u]/2+E,C=he(S,T,A),M=c;n.modifiersData[i]=((t={})[M]=C,t.centerOffset=C-T,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&(o(i)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" ")),H(t.elements.popper,i)?t.elements.arrow=i:console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" ")))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ve(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ye(e){return[w,_,x,O].some((function(t){return e[t]>=0}))}var be={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,s=K(t,{elementContext:"reference"}),a=K(t,{altBoundary:!0}),c=ve(s,i),u=ve(a,r,o),l=ye(c),f=ye(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":f})}},we=ee({defaultModifiers:[ne,ie,se,ae]}),xe=[ne,ie,se,ae,ce,pe,me,ge,be],_e=ee({defaultModifiers:xe});e.applyStyles=ae,e.arrow=ge,e.computeStyles=se,e.createPopper=_e,e.createPopperLite=we,e.defaultModifiers=xe,e.detectOverflow=K,e.eventListeners=ne,e.flip=pe,e.hide=be,e.offset=ce,e.popperGenerator=ee,e.popperOffsets=ie,e.preventOverflow=me})),Jn=Yn((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Kn(),n="tippy-content",i="tippy-backdrop",r="tippy-arrow",o="tippy-svg-arrow",s={passive:!0,capture:!0};function a(e,t,n){if(Array.isArray(e)){var i=e[t];return null==i?Array.isArray(n)?n[t]:n:i}return e}function c(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function u(e,t){return"function"==typeof e?e.apply(void 0,t):e}function l(e,t){return 0===t?e:function(i){clearTimeout(n),n=setTimeout((function(){e(i)}),t)};var n}function f(e,t){var n=Object.assign({},e);return t.forEach((function(e){delete n[e]})),n}function d(e){return[].concat(e)}function p(e,t){-1===e.indexOf(t)&&e.push(t)}function h(e){return e.split("-")[0]}function m(e){return[].slice.call(e)}function g(){return document.createElement("div")}function v(e){return["Element","Fragment"].some((function(t){return c(e,t)}))}function y(e){return c(e,"MouseEvent")}function b(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function w(e){return v(e)?[e]:function(e){return c(e,"NodeList")}(e)?m(e):Array.isArray(e)?e:m(document.querySelectorAll(e))}function x(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function _(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function O(e){var t,n=d(e)[0];return(null==n||null==(t=n.ownerDocument)?void 0:t.body)?n.ownerDocument:document}function E(e,t,n){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[i](t,n)}))}var k={isTouch:!1},S=0;function A(){k.isTouch||(k.isTouch=!0,window.performance&&document.addEventListener("mousemove",T))}function T(){var e=performance.now();e-S<20&&(k.isTouch=!1,document.removeEventListener("mousemove",T)),S=e}function C(){var e=document.activeElement;if(b(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var M,j="undefined"!=typeof window&&"undefined"!=typeof document?navigator.userAgent:"",L=/MSIE |Trident\//.test(j);function P(e){return[e+"() was called on a"+("destroy"===e?"n already-":" ")+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function D(e){return e.replace(/[ \t]{2,}/g," ").replace(/^[ \t]*/gm,"").trim()}function R(e){return D("\n %ctippy.js\n\n %c"+D(e)+"\n\n %c👷‍ This is a development-only message. It will be removed in production.\n ")}function z(e){return[R(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}function W(e,t){var n;e&&!M.has(t)&&(M.add(t),(n=console).warn.apply(n,z(t)))}function $(e,t){var n;e&&!M.has(t)&&(M.add(t),(n=console).error.apply(n,z(t)))}M=new Set;var I={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},N=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},I,{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),H=Object.keys(N);function V(e){var t=(e.plugins||[]).reduce((function(t,n){var i=n.name,r=n.defaultValue;return i&&(t[i]=void 0!==e[i]?e[i]:r),t}),{});return Object.assign({},e,{},t)}function F(e,t){var n=Object.assign({},t,{content:u(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(V(Object.assign({},N,{plugins:t}))):H).reduce((function(t,n){var i=(e.getAttribute("data-tippy-"+n)||"").trim();if(!i)return t;if("content"===n)t[n]=i;else try{t[n]=JSON.parse(i)}catch(e){t[n]=i}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},N.aria,{},n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function B(e,t){void 0===e&&(e={}),void 0===t&&(t=[]),Object.keys(e).forEach((function(e){var n,i,r=f(N,Object.keys(I)),o=(n=r,i=e,!{}.hasOwnProperty.call(n,i));o&&(o=0===t.filter((function(t){return t.name===e})).length),W(o,["`"+e+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.","\n\n","All props: https://atomiks.github.io/tippyjs/v6/all-props/\n","Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))}))}function q(e,t){e.innerHTML=t}function G(e){var t=g();return!0===e?t.className=r:(t.className=o,v(e)?t.appendChild(e):q(t,e)),t}function U(e,t){v(t.content)?(q(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?q(e,t.content):e.textContent=t.content)}function X(e){var t=e.firstElementChild,s=m(t.children);return{box:t,content:s.find((function(e){return e.classList.contains(n)})),arrow:s.find((function(e){return e.classList.contains(r)||e.classList.contains(o)})),backdrop:s.find((function(e){return e.classList.contains(i)}))}}function Y(e){var t=g(),i=g();i.className="tippy-box",i.setAttribute("data-state","hidden"),i.setAttribute("tabindex","-1");var r=g();function o(n,i){var r=X(t),o=r.box,s=r.content,a=r.arrow;i.theme?o.setAttribute("data-theme",i.theme):o.removeAttribute("data-theme"),"string"==typeof i.animation?o.setAttribute("data-animation",i.animation):o.removeAttribute("data-animation"),i.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof i.maxWidth?i.maxWidth+"px":i.maxWidth,i.role?o.setAttribute("role",i.role):o.removeAttribute("role"),n.content===i.content&&n.allowHTML===i.allowHTML||U(s,e.props),i.arrow?a?n.arrow!==i.arrow&&(o.removeChild(a),o.appendChild(G(i.arrow))):o.appendChild(G(i.arrow)):a&&o.removeChild(a)}return r.className=n,r.setAttribute("data-state","hidden"),U(r,e.props),t.appendChild(i),i.appendChild(r),o(e.props,e.props),{popper:t,onUpdate:o}}Y.$$tippy=!0;var K=1,J=[],Z=[];function Q(e,n){var i,r,o,c,f,v,b,w,S,A=F(e,Object.assign({},N,{},V((i=n,Object.keys(i).reduce((function(e,t){return void 0!==i[t]&&(e[t]=i[t]),e}),{}))))),T=!1,C=!1,M=!1,j=!1,D=[],R=l(xe,A.interactiveDebounce),z=K++,I=(S=A.plugins).filter((function(e,t){return S.indexOf(e)===t})),H={id:z,reference:e,popper:g(),popperInstance:null,props:A,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:I,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(c)},setProps:function(t){W(H.state.isDestroyed,P("setProps"));if(H.state.isDestroyed)return;ae("onBeforeUpdate",[H,t]),be();var n=H.props,i=F(e,Object.assign({},H.props,{},t,{ignoreAttributes:!0}));H.props=i,ye(),n.interactiveDebounce!==i.interactiveDebounce&&(le(),R=l(xe,i.interactiveDebounce));n.triggerTarget&&!i.triggerTarget?d(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):i.triggerTarget&&e.removeAttribute("aria-expanded");ue(),se(),G&&G(n,i);H.popperInstance&&(ke(),Ae().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));ae("onAfterUpdate",[H,t])},setContent:function(e){H.setProps({content:e})},show:function(){W(H.state.isDestroyed,P("show"));var e=H.state.isVisible,t=H.state.isDestroyed,n=!H.state.isEnabled,i=k.isTouch&&!H.props.touch,r=a(H.props.duration,0,N.duration);if(e||t||n||i)return;if(ne().hasAttribute("disabled"))return;if(ae("onShow",[H],!1),!1===H.props.onShow(H))return;H.state.isVisible=!0,te()&&(q.style.visibility="visible");se(),he(),H.state.isMounted||(q.style.transition="none");if(te()){var o=re(),s=o.box,c=o.content;x([s,c],0)}b=function(){var e;if(H.state.isVisible&&!j){if(j=!0,q.offsetHeight,q.style.transition=H.props.moveTransition,te()&&H.props.animation){var t=re(),n=t.box,i=t.content;x([n,i],r),_([n,i],"visible")}ce(),ue(),p(Z,H),null==(e=H.popperInstance)||e.forceUpdate(),H.state.isMounted=!0,ae("onMount",[H]),H.props.animation&&te()&&function(e,t){ge(e,t)}(r,(function(){H.state.isShown=!0,ae("onShown",[H])}))}},function(){var e,t=H.props.appendTo,n=ne();e=H.props.interactive&&t===N.appendTo||"parent"===t?n.parentNode:u(t,[n]);e.contains(q)||e.appendChild(q);ke(),W(H.props.interactive&&t===N.appendTo&&n.nextElementSibling!==q,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.","\n\n","Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.","\n\n","Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.","\n\n","See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}()},hide:function(){W(H.state.isDestroyed,P("hide"));var e=!H.state.isVisible,t=H.state.isDestroyed,n=!H.state.isEnabled,i=a(H.props.duration,1,N.duration);if(e||t||n)return;if(ae("onHide",[H],!1),!1===H.props.onHide(H))return;H.state.isVisible=!1,H.state.isShown=!1,j=!1,T=!1,te()&&(q.style.visibility="hidden");if(le(),me(),se(),te()){var r=re(),o=r.box,s=r.content;H.props.animation&&(x([o,s],i),_([o,s],"hidden"))}ce(),ue(),H.props.animation?te()&&function(e,t){ge(e,(function(){!H.state.isVisible&&q.parentNode&&q.parentNode.contains(q)&&t()}))}(i,H.unmount):H.unmount()},hideWithInteractivity:function(e){W(H.state.isDestroyed,P("hideWithInteractivity"));ie().addEventListener("mousemove",R),p(J,R),R(e)},enable:function(){H.state.isEnabled=!0},disable:function(){H.hide(),H.state.isEnabled=!1},unmount:function(){W(H.state.isDestroyed,P("unmount"));H.state.isVisible&&H.hide();if(!H.state.isMounted)return;Se(),Ae().forEach((function(e){e._tippy.unmount()})),q.parentNode&&q.parentNode.removeChild(q);Z=Z.filter((function(e){return e!==H})),H.state.isMounted=!1,ae("onHidden",[H])},destroy:function(){W(H.state.isDestroyed,P("destroy"));if(H.state.isDestroyed)return;H.clearDelayTimeouts(),H.unmount(),be(),delete e._tippy,H.state.isDestroyed=!0,ae("onDestroy",[H])}};if(!A.render)return $(!0,"render() function has not been supplied."),H;var B=A.render(H),q=B.popper,G=B.onUpdate;q.setAttribute("data-tippy-root",""),q.id="tippy-"+H.id,H.popper=q,e._tippy=H,q._tippy=H;var U=I.map((function(e){return e.fn(H)})),Y=e.hasAttribute("aria-expanded");return ye(),ue(),se(),ae("onCreate",[H]),A.showOnCreate&&Te(),q.addEventListener("mouseenter",(function(){H.props.interactive&&H.state.isVisible&&H.clearDelayTimeouts()})),q.addEventListener("mouseleave",(function(e){H.props.interactive&&H.props.trigger.indexOf("mouseenter")>=0&&(ie().addEventListener("mousemove",R),R(e))})),H;function Q(){var e=H.props.touch;return Array.isArray(e)?e:[e,0]}function ee(){return"hold"===Q()[0]}function te(){var e;return!!(null==(e=H.props.render)?void 0:e.$$tippy)}function ne(){return w||e}function ie(){var e=ne().parentNode;return e?O(e):document}function re(){return X(q)}function oe(e){return H.state.isMounted&&!H.state.isVisible||k.isTouch||f&&"focus"===f.type?0:a(H.props.delay,e?0:1,N.delay)}function se(){q.style.pointerEvents=H.props.interactive&&H.state.isVisible?"":"none",q.style.zIndex=""+H.props.zIndex}function ae(e,t,n){var i;(void 0===n&&(n=!0),U.forEach((function(n){n[e]&&n[e].apply(void 0,t)})),n)&&(i=H.props)[e].apply(i,t)}function ce(){var t=H.props.aria;if(t.content){var n="aria-"+t.content,i=q.id;d(H.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(H.state.isVisible)e.setAttribute(n,t?t+" "+i:i);else{var r=t&&t.replace(i,"").trim();r?e.setAttribute(n,r):e.removeAttribute(n)}}))}}function ue(){!Y&&H.props.aria.expanded&&d(H.props.triggerTarget||e).forEach((function(e){H.props.interactive?e.setAttribute("aria-expanded",H.state.isVisible&&e===ne()?"true":"false"):e.removeAttribute("aria-expanded")}))}function le(){ie().removeEventListener("mousemove",R),J=J.filter((function(e){return e!==R}))}function fe(e){if(!(k.isTouch&&(M||"mousedown"===e.type)||H.props.interactive&&q.contains(e.target))){if(ne().contains(e.target)){if(k.isTouch)return;if(H.state.isVisible&&H.props.trigger.indexOf("click")>=0)return}else ae("onClickOutside",[H,e]);!0===H.props.hideOnClick&&(H.clearDelayTimeouts(),H.hide(),C=!0,setTimeout((function(){C=!1})),H.state.isMounted||me())}}function de(){M=!0}function pe(){M=!1}function he(){var e=ie();e.addEventListener("mousedown",fe,!0),e.addEventListener("touchend",fe,s),e.addEventListener("touchstart",pe,s),e.addEventListener("touchmove",de,s)}function me(){var e=ie();e.removeEventListener("mousedown",fe,!0),e.removeEventListener("touchend",fe,s),e.removeEventListener("touchstart",pe,s),e.removeEventListener("touchmove",de,s)}function ge(e,t){var n=re().box;function i(e){e.target===n&&(E(n,"remove",i),t())}if(0===e)return t();E(n,"remove",v),E(n,"add",i),v=i}function ve(t,n,i){void 0===i&&(i=!1),d(H.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,i),D.push({node:e,eventType:t,handler:n,options:i})}))}function ye(){var e;ee()&&(ve("touchstart",we,{passive:!0}),ve("touchend",_e,{passive:!0})),(e=H.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(ve(e,we),e){case"mouseenter":ve("mouseleave",_e);break;case"focus":ve(L?"focusout":"blur",Oe);break;case"focusin":ve("focusout",Oe)}}))}function be(){D.forEach((function(e){var t=e.node,n=e.eventType,i=e.handler,r=e.options;t.removeEventListener(n,i,r)})),D=[]}function we(e){var t,n=!1;if(H.state.isEnabled&&!Ee(e)&&!C){var i="focus"===(null==(t=f)?void 0:t.type);f=e,w=e.currentTarget,ue(),!H.state.isVisible&&y(e)&&J.forEach((function(t){return t(e)})),"click"===e.type&&(H.props.trigger.indexOf("mouseenter")<0||T)&&!1!==H.props.hideOnClick&&H.state.isVisible?n=!0:Te(e),"click"===e.type&&(T=!n),n&&!i&&Ce(e)}}function xe(e){var t=e.target,n=ne().contains(t)||q.contains(t);"mousemove"===e.type&&n||function(e,t){var n=t.clientX,i=t.clientY;return e.every((function(e){var t=e.popperRect,r=e.popperState,o=e.props.interactiveBorder,s=h(r.placement),a=r.modifiersData.offset;if(!a)return!0;var c="bottom"===s?a.top.y:0,u="top"===s?a.bottom.y:0,l="right"===s?a.left.x:0,f="left"===s?a.right.x:0,d=t.top-i+c>o,p=i-t.bottom-u>o,m=t.left-n+l>o,g=n-t.right-f>o;return d||p||m||g}))}(Ae().concat(q).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:A}:null})).filter(Boolean),e)&&(le(),Ce(e))}function _e(e){Ee(e)||H.props.trigger.indexOf("click")>=0&&T||(H.props.interactive?H.hideWithInteractivity(e):Ce(e))}function Oe(e){H.props.trigger.indexOf("focusin")<0&&e.target!==ne()||H.props.interactive&&e.relatedTarget&&q.contains(e.relatedTarget)||Ce(e)}function Ee(e){return!!k.isTouch&&ee()!==e.type.indexOf("touch")>=0}function ke(){Se();var n=H.props,i=n.popperOptions,r=n.placement,o=n.offset,s=n.getReferenceClientRect,a=n.moveTransition,c=te()?X(q).arrow:null,u=s?{getBoundingClientRect:s,contextElement:s.contextElement||ne()}:e,l=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(te()){var n=re().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];te()&&c&&l.push({name:"arrow",options:{element:c,padding:3}}),l.push.apply(l,(null==i?void 0:i.modifiers)||[]),H.popperInstance=t.createPopper(u,q,Object.assign({},i,{placement:r,onFirstUpdate:b,modifiers:l}))}function Se(){H.popperInstance&&(H.popperInstance.destroy(),H.popperInstance=null)}function Ae(){return m(q.querySelectorAll("[data-tippy-root]"))}function Te(e){H.clearDelayTimeouts(),e&&ae("onTrigger",[H,e]),he();var t=oe(!0),n=Q(),i=n[0],o=n[1];k.isTouch&&"hold"===i&&o&&(t=o),t?r=setTimeout((function(){H.show()}),t):H.show()}function Ce(e){if(H.clearDelayTimeouts(),ae("onUntrigger",[H,e]),H.state.isVisible){if(!(H.props.trigger.indexOf("mouseenter")>=0&&H.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&T)){var t=oe(!1);t?o=setTimeout((function(){H.state.isVisible&&H.hide()}),t):c=requestAnimationFrame((function(){H.hide()}))}}else me()}}function ee(e,t){void 0===t&&(t={});var n=N.plugins.concat(t.plugins||[]);!function(e){var t=!e,n="[object Object]"===Object.prototype.toString.call(e)&&!e.addEventListener;$(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),$(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}(e),B(t,n),document.addEventListener("touchstart",A,s),window.addEventListener("blur",C);var i=Object.assign({},t,{plugins:n}),r=w(e),o=v(i.content),a=r.length>1;W(o&&a,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.","\n\n","Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.","\n\n","1) content: element.innerHTML\n","2) content: () => element.cloneNode(true)"].join(" "));var c=r.reduce((function(e,t){var n=t&&Q(t,i);return n&&e.push(n),e}),[]);return v(e)?c[0]:c}ee.defaultProps=N,ee.setDefaultProps=function(e){B(e,[]),Object.keys(e).forEach((function(t){N[t]=e[t]}))},ee.currentInput=k;var te=Object.assign({},t.applyStyles,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),ne={mouseover:"mouseenter",focusin:"focus",click:"click"};var ie={name:"animateFill",defaultValue:!1,fn:function(e){var t;if(!(null==(t=e.props.render)?void 0:t.$$tippy))return $(e.props.animateFill,"The `animateFill` plugin requires the default render function."),{};var n=X(e.popper),r=n.box,o=n.content,s=e.props.animateFill?function(){var e=g();return e.className=i,_([e],"hidden"),e}():null;return{onCreate:function(){s&&(r.insertBefore(s,r.firstElementChild),r.setAttribute("data-animatefill",""),r.style.overflow="hidden",e.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(s){var e=r.style.transitionDuration,t=Number(e.replace("ms",""));o.style.transitionDelay=Math.round(t/10)+"ms",s.style.transitionDuration=e,_([s],"visible")}},onShow:function(){s&&(s.style.transitionDuration="0ms")},onHide:function(){s&&_([s],"hidden")}}}};var re={clientX:0,clientY:0},oe=[];function se(e){var t=e.clientX,n=e.clientY;re={clientX:t,clientY:n}}var ae={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,n=O(e.props.triggerTarget||t),i=!1,r=!1,o=!0,s=e.props;function a(){return"initial"===e.props.followCursor&&e.state.isVisible}function c(){n.addEventListener("mousemove",f)}function u(){n.removeEventListener("mousemove",f)}function l(){i=!0,e.setProps({getReferenceClientRect:null}),i=!1}function f(n){var i=!n.target||t.contains(n.target),r=e.props.followCursor,o=n.clientX,s=n.clientY,a=t.getBoundingClientRect(),c=o-a.left,u=s-a.top;!i&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),n=o,i=s;"initial"===r&&(n=e.left+c,i=e.top+u);var a="horizontal"===r?e.top:i,l="vertical"===r?e.right:n,f="horizontal"===r?e.bottom:i,d="vertical"===r?e.left:n;return{width:l-d,height:f-a,top:a,right:l,bottom:f,left:d}}})}function d(){e.props.followCursor&&(oe.push({instance:e,doc:n}),function(e){e.addEventListener("mousemove",se)}(n))}function p(){0===(oe=oe.filter((function(t){return t.instance!==e}))).filter((function(e){return e.doc===n})).length&&function(e){e.removeEventListener("mousemove",se)}(n)}return{onCreate:d,onDestroy:p,onBeforeUpdate:function(){s=e.props},onAfterUpdate:function(t,n){var o=n.followCursor;i||void 0!==o&&s.followCursor!==o&&(p(),o?(d(),!e.state.isMounted||r||a()||c()):(u(),l()))},onMount:function(){e.props.followCursor&&!r&&(o&&(f(re),o=!1),a()||c())},onTrigger:function(e,t){y(t)&&(re={clientX:t.clientX,clientY:t.clientY}),r="focus"===t.type},onHidden:function(){e.props.followCursor&&(l(),u(),o=!0)}}}};var ce={name:"inlinePositioning",defaultValue:!1,fn:function(e){var t,n=e.reference;var i=-1,r=!1,o={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(r){var o=r.state;e.props.inlinePositioning&&(t!==o.placement&&e.setProps({getReferenceClientRect:function(){return function(e,t,n,i){if(n.length<2||null===e)return t;if(2===n.length&&i>=0&&n[0].left>n[1].right)return n[i]||t;switch(e){case"top":case"bottom":var r=n[0],o=n[n.length-1],s="top"===e,a=r.top,c=o.bottom,u=s?r.left:o.left,l=s?r.right:o.right;return{top:a,bottom:c,left:u,right:l,width:l-u,height:c-a};case"left":case"right":var f=Math.min.apply(Math,n.map((function(e){return e.left}))),d=Math.max.apply(Math,n.map((function(e){return e.right}))),p=n.filter((function(t){return"left"===e?t.left===f:t.right===d})),h=p[0].top,m=p[p.length-1].bottom;return{top:h,bottom:m,left:f,right:d,width:d-f,height:m-h};default:return t}}(h(o.placement),n.getBoundingClientRect(),m(n.getClientRects()),i)}}),t=o.placement)}};function s(){var t;r||(t=function(e,t){var n;return{popperOptions:Object.assign({},e.popperOptions,{modifiers:[].concat(((null==(n=e.popperOptions)?void 0:n.modifiers)||[]).filter((function(e){return e.name!==t.name})),[t])})}}(e.props,o),r=!0,e.setProps(t),r=!1)}return{onCreate:s,onAfterUpdate:s,onTrigger:function(t,n){if(y(n)){var r=m(e.reference.getClientRects()),o=r.find((function(e){return e.left-2<=n.clientX&&e.right+2>=n.clientX&&e.top-2<=n.clientY&&e.bottom+2>=n.clientY}));i=r.indexOf(o)}},onUntrigger:function(){i=-1}}}};var ue={name:"sticky",defaultValue:!1,fn:function(e){var t=e.reference,n=e.popper;function i(t){return!0===e.props.sticky||e.props.sticky===t}var r=null,o=null;function s(){var a=i("reference")?(e.popperInstance?e.popperInstance.state.elements.reference:t).getBoundingClientRect():null,c=i("popper")?n.getBoundingClientRect():null;(a&&le(r,a)||c&&le(o,c))&&e.popperInstance&&e.popperInstance.update(),r=a,o=c,e.state.isMounted&&requestAnimationFrame(s)}return{onMount:function(){e.props.sticky&&s()}}}};function le(e,t){return!e||!t||(e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left)}ee.setDefaultProps({render:Y}),e.animateFill=ie,e.createSingleton=function(e,t){var n;void 0===t&&(t={}),$(!Array.isArray(e),["The first argument passed to createSingleton() must be an array of","tippy instances. The passed value was",String(e)].join(" "));var i,r=e,o=[],s=t.overrides,a=[],c=!1;function u(){o=r.map((function(e){return e.reference}))}function l(e){r.forEach((function(t){e?t.enable():t.disable()}))}function d(e){return r.map((function(t){var n=t.setProps;return t.setProps=function(r){n(r),t.reference===i&&e.setProps(r)},function(){t.setProps=n}}))}function p(e,t){var n=o.indexOf(t);if(t!==i){i=t;var a=(s||[]).concat("content").reduce((function(e,t){return e[t]=r[n].props[t],e}),{});e.setProps(Object.assign({},a,{getReferenceClientRect:"function"==typeof a.getReferenceClientRect?a.getReferenceClientRect:function(){return t.getBoundingClientRect()}}))}}l(!1),u();var h={fn:function(){return{onDestroy:function(){l(!0)},onHidden:function(){i=null},onClickOutside:function(e){e.props.showOnCreate&&!c&&(c=!0,i=null)},onShow:function(e){e.props.showOnCreate&&!c&&(c=!0,p(e,o[0]))},onTrigger:function(e,t){p(e,t.currentTarget)}}}},m=ee(g(),Object.assign({},f(t,["overrides"]),{plugins:[h].concat(t.plugins||[]),triggerTarget:o,popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat((null==(n=t.popperOptions)?void 0:n.modifiers)||[],[te])})})),v=m.show;m.show=function(e){if(v(),!i&&null==e)return p(m,o[0]);if(!i||null!=e){if("number"==typeof e)return o[e]&&p(m,o[e]);if(r.includes(e)){var t=e.reference;return p(m,t)}return o.includes(e)?p(m,e):void 0}},m.showNext=function(){var e=o[0];if(!i)return m.show(0);var t=o.indexOf(i);m.show(o[t+1]||e)},m.showPrevious=function(){var e=o[o.length-1];if(!i)return m.show(e);var t=o.indexOf(i),n=o[t-1]||e;m.show(n)};var y=m.setProps;return m.setProps=function(e){s=e.overrides||s,y(e)},m.setInstances=function(e){l(!0),a.forEach((function(e){return e()})),r=e,l(!1),u(),d(m),m.setProps({triggerTarget:o})},a=d(m),m},e.default=ee,e.delegate=function(e,t){$(!(t&&t.target),["You must specity a `target` prop indicating a CSS selector string matching","the target elements that should receive a tippy."].join(" "));var n=[],i=[],r=!1,o=t.target,a=f(t,["target"]),c=Object.assign({},a,{trigger:"manual",touch:!1}),u=Object.assign({},a,{showOnCreate:!0}),l=ee(e,c);function p(e){if(e.target&&!r){var n=e.target.closest(o);if(n){var s=n.getAttribute("data-tippy-trigger")||t.trigger||N.trigger;if(!n._tippy&&!("touchstart"===e.type&&"boolean"==typeof u.touch||"touchstart"!==e.type&&s.indexOf(ne[e.type])<0)){var a=ee(n,u);a&&(i=i.concat(a))}}}}function h(e,t,i,r){void 0===r&&(r=!1),e.addEventListener(t,i,r),n.push({node:e,eventType:t,handler:i,options:r})}return d(l).forEach((function(e){var t=e.destroy,o=e.enable,a=e.disable;e.destroy=function(e){void 0===e&&(e=!0),e&&i.forEach((function(e){e.destroy()})),i=[],n.forEach((function(e){var t=e.node,n=e.eventType,i=e.handler,r=e.options;t.removeEventListener(n,i,r)})),n=[],t()},e.enable=function(){o(),i.forEach((function(e){return e.enable()})),r=!1},e.disable=function(){a(),i.forEach((function(e){return e.disable()})),r=!0},function(e){var t=e.reference;h(t,"touchstart",p,s),h(t,"mouseover",p),h(t,"focusin",p),h(t,"click",p)}(e)})),l},e.followCursor=ae,e.hideAll=function(e){var t=void 0===e?{}:e,n=t.exclude,i=t.duration;Z.forEach((function(e){var t=!1;if(n&&(t=b(n)?e.reference===n:e.popper===n.popper),!t){var r=e.props.duration;e.setProps({duration:i}),e.hide(),e.state.isDestroyed||e.setProps({duration:r})}}))},e.inlinePositioning=ce,e.roundArrow='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',e.sticky=ue})),Zn=(Nn=Jn(),((e,t,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of Un(t))Gn.call(e,i)||"default"===i||Bn(e,i,{get:()=>t[i],enumerable:!(n=Xn(t,i))||n.enumerable});return e})((Hn=Bn(null!=Nn?Fn(qn(Nn)):{},"default",Nn&&Nn.__esModule&&"default"in Nn?{get:()=>Nn.default,enumerable:!0}:{value:Nn,enumerable:!0}),Bn(Hn,"__esModule",{value:!0})),Nn));var Qn=e=>{const t={plugins:[]};if(e.includes("duration")&&(t.duration=parseInt(e[e.indexOf("duration")+1])),e.includes("delay")&&(t.delay=parseInt(e[e.indexOf("delay")+1])),e.includes("cursor")){t.plugins.push(Zn.followCursor);const n=e[e.indexOf("cursor")+1]??null;["x","initial"].includes(n)?t.followCursor="x"===n?"horizontal":"initial":t.followCursor=!0}return e.includes("on")&&(t.trigger=e[e.indexOf("on")+1]),e.includes("arrowless")&&(t.arrow=!1),e.includes("html")&&(t.allowHTML=!0),e.includes("interactive")&&(t.interactive=!0),e.includes("border")&&t.interactive&&(t.interactiveBorder=parseInt(e[e.indexOf("border")+1])),e.includes("debounce")&&t.interactive&&(t.interactiveDebounce=parseInt(e[e.indexOf("debounce")+1])),e.includes("max-width")&&(t.maxWidth=parseInt(e[e.indexOf("max-width")+1])),e.includes("theme")&&(t.theme=e[e.indexOf("theme")+1]),t},ei=function(e){e.directive("tooltip",((e,{modifiers:t,expression:n},{evaluateLater:i,effect:r})=>{const o=i(n),s=t.length>0?Qn(t):{};r((()=>{o((t=>{e.__x_tippy||(e.__x_tippy=(0,Zn.default)(e,s)),e.__x_tippy.setContent(t)}))}))}))},ti={};!function(e){"use strict";var t={logger:self.console,WebSocket:self.WebSocket},n={log:function(){if(this.enabled){for(var e,n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];i.push(Date.now()),(e=t.logger).log.apply(e,["[ActionCable]"].concat(i))}}},i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=function(){return(new Date).getTime()},a=function(e){return(s()-e)/1e3},c=function(e,t,n){return Math.max(t,Math.min(n,e))},u=function(){function e(t){r(this,e),this.visibilityDidChange=this.visibilityDidChange.bind(this),this.connection=t,this.reconnectAttempts=0}return e.prototype.start=function(){this.isRunning()||(this.startedAt=s(),delete this.stoppedAt,this.startPolling(),addEventListener("visibilitychange",this.visibilityDidChange),n.log("ConnectionMonitor started. pollInterval = "+this.getPollInterval()+" ms"))},e.prototype.stop=function(){this.isRunning()&&(this.stoppedAt=s(),this.stopPolling(),removeEventListener("visibilitychange",this.visibilityDidChange),n.log("ConnectionMonitor stopped"))},e.prototype.isRunning=function(){return this.startedAt&&!this.stoppedAt},e.prototype.recordPing=function(){this.pingedAt=s()},e.prototype.recordConnect=function(){this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,n.log("ConnectionMonitor recorded connect")},e.prototype.recordDisconnect=function(){this.disconnectedAt=s(),n.log("ConnectionMonitor recorded disconnect")},e.prototype.startPolling=function(){this.stopPolling(),this.poll()},e.prototype.stopPolling=function(){clearTimeout(this.pollTimeout)},e.prototype.poll=function(){var e=this;this.pollTimeout=setTimeout((function(){e.reconnectIfStale(),e.poll()}),this.getPollInterval())},e.prototype.getPollInterval=function(){var e=this.constructor.pollInterval,t=e.min,n=e.max,i=e.multiplier*Math.log(this.reconnectAttempts+1);return Math.round(1e3*c(i,t,n))},e.prototype.reconnectIfStale=function(){this.connectionIsStale()&&(n.log("ConnectionMonitor detected stale connection. reconnectAttempts = "+this.reconnectAttempts+", pollInterval = "+this.getPollInterval()+" ms, time disconnected = "+a(this.disconnectedAt)+" s, stale threshold = "+this.constructor.staleThreshold+" s"),this.reconnectAttempts++,this.disconnectedRecently()?n.log("ConnectionMonitor skipping reopening recent disconnect"):(n.log("ConnectionMonitor reopening"),this.connection.reopen()))},e.prototype.connectionIsStale=function(){return a(this.pingedAt?this.pingedAt:this.startedAt)>this.constructor.staleThreshold},e.prototype.disconnectedRecently=function(){return this.disconnectedAt&&a(this.disconnectedAt)<this.constructor.staleThreshold},e.prototype.visibilityDidChange=function(){var e=this;"visible"===document.visibilityState&&setTimeout((function(){!e.connectionIsStale()&&e.connection.isOpen()||(n.log("ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = "+document.visibilityState),e.connection.reopen())}),200)},e}();u.pollInterval={min:3,max:30,multiplier:5},u.staleThreshold=6;var l={message_types:{welcome:"welcome",disconnect:"disconnect",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},disconnect_reasons:{unauthorized:"unauthorized",invalid_request:"invalid_request",server_restart:"server_restart"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]},f=l.message_types,d=l.protocols,p=d.slice(0,d.length-1),h=[].indexOf,m=function(){function e(t){r(this,e),this.open=this.open.bind(this),this.consumer=t,this.subscriptions=this.consumer.subscriptions,this.monitor=new u(this),this.disconnected=!0}return e.prototype.send=function(e){return!!this.isOpen()&&(this.webSocket.send(JSON.stringify(e)),!0)},e.prototype.open=function(){return this.isActive()?(n.log("Attempted to open WebSocket, but existing socket is "+this.getState()),!1):(n.log("Opening WebSocket, current state is "+this.getState()+", subprotocols: "+d),this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new t.WebSocket(this.consumer.url,d),this.installEventHandlers(),this.monitor.start(),!0)},e.prototype.close=function(){if((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{allowReconnect:!0}).allowReconnect||this.monitor.stop(),this.isActive())return this.webSocket.close()},e.prototype.reopen=function(){if(n.log("Reopening WebSocket, current state is "+this.getState()),!this.isActive())return this.open();try{return this.close()}catch(e){n.log("Failed to reopen WebSocket",e)}finally{n.log("Reopening WebSocket in "+this.constructor.reopenDelay+"ms"),setTimeout(this.open,this.constructor.reopenDelay)}},e.prototype.getProtocol=function(){if(this.webSocket)return this.webSocket.protocol},e.prototype.isOpen=function(){return this.isState("open")},e.prototype.isActive=function(){return this.isState("open","connecting")},e.prototype.isProtocolSupported=function(){return h.call(p,this.getProtocol())>=0},e.prototype.isState=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return h.call(t,this.getState())>=0},e.prototype.getState=function(){if(this.webSocket)for(var e in t.WebSocket)if(t.WebSocket[e]===this.webSocket.readyState)return e.toLowerCase();return null},e.prototype.installEventHandlers=function(){for(var e in this.events){var t=this.events[e].bind(this);this.webSocket["on"+e]=t}},e.prototype.uninstallEventHandlers=function(){for(var e in this.events)this.webSocket["on"+e]=function(){}},e}();m.reopenDelay=500,m.prototype.events={message:function(e){if(this.isProtocolSupported()){var t=JSON.parse(e.data),i=t.identifier,r=t.message,o=t.reason,s=t.reconnect;switch(t.type){case f.welcome:return this.monitor.recordConnect(),this.subscriptions.reload();case f.disconnect:return n.log("Disconnecting. Reason: "+o),this.close({allowReconnect:s});case f.ping:return this.monitor.recordPing();case f.confirmation:return this.subscriptions.confirmSubscription(i),this.subscriptions.notify(i,"connected");case f.rejection:return this.subscriptions.reject(i);default:return this.subscriptions.notify(i,"received",r)}}},open:function(){if(n.log("WebSocket onopen event, using '"+this.getProtocol()+"' subprotocol"),this.disconnected=!1,!this.isProtocolSupported())return n.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close:function(e){if(n.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error:function(){n.log("WebSocket onerror event")}};var g=function(e,t){if(null!=t)for(var n in t){var i=t[n];e[n]=i}return e},v=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments[2];r(this,e),this.consumer=t,this.identifier=JSON.stringify(n),g(this,i)}return e.prototype.perform=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.action=e,this.send(t)},e.prototype.send=function(e){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(e)})},e.prototype.unsubscribe=function(){return this.consumer.subscriptions.remove(this)},e}(),y=function(){function e(t){r(this,e),this.subscriptions=t,this.pendingSubscriptions=[]}return e.prototype.guarantee=function(e){-1==this.pendingSubscriptions.indexOf(e)?(n.log("SubscriptionGuarantor guaranteeing "+e.identifier),this.pendingSubscriptions.push(e)):n.log("SubscriptionGuarantor already guaranteeing "+e.identifier),this.startGuaranteeing()},e.prototype.forget=function(e){n.log("SubscriptionGuarantor forgetting "+e.identifier),this.pendingSubscriptions=this.pendingSubscriptions.filter((function(t){return t!==e}))},e.prototype.startGuaranteeing=function(){this.stopGuaranteeing(),this.retrySubscribing()},e.prototype.stopGuaranteeing=function(){clearTimeout(this.retryTimeout)},e.prototype.retrySubscribing=function(){var e=this;this.retryTimeout=setTimeout((function(){e.subscriptions&&"function"==typeof e.subscriptions.subscribe&&e.pendingSubscriptions.map((function(t){n.log("SubscriptionGuarantor resubscribing "+t.identifier),e.subscriptions.subscribe(t)}))}),500)},e}(),b=function(){function e(t){r(this,e),this.consumer=t,this.guarantor=new y(this),this.subscriptions=[]}return e.prototype.create=function(e,t){var n=e,r="object"===(void 0===n?"undefined":i(n))?n:{channel:n},o=new v(this.consumer,r,t);return this.add(o)},e.prototype.add=function(e){return this.subscriptions.push(e),this.consumer.ensureActiveConnection(),this.notify(e,"initialized"),this.subscribe(e),e},e.prototype.remove=function(e){return this.forget(e),this.findAll(e.identifier).length||this.sendCommand(e,"unsubscribe"),e},e.prototype.reject=function(e){var t=this;return this.findAll(e).map((function(e){return t.forget(e),t.notify(e,"rejected"),e}))},e.prototype.forget=function(e){return this.guarantor.forget(e),this.subscriptions=this.subscriptions.filter((function(t){return t!==e})),e},e.prototype.findAll=function(e){return this.subscriptions.filter((function(t){return t.identifier===e}))},e.prototype.reload=function(){var e=this;return this.subscriptions.map((function(t){return e.subscribe(t)}))},e.prototype.notifyAll=function(e){for(var t=this,n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return this.subscriptions.map((function(n){return t.notify.apply(t,[n,e].concat(i))}))},e.prototype.notify=function(e,t){for(var n=arguments.length,i=Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];return("string"==typeof e?this.findAll(e):[e]).map((function(e){return"function"==typeof e[t]?e[t].apply(e,i):void 0}))},e.prototype.subscribe=function(e){this.sendCommand(e,"subscribe")&&this.guarantor.guarantee(e)},e.prototype.confirmSubscription=function(e){var t=this;n.log("Subscription confirmed "+e),this.findAll(e).map((function(e){return t.guarantor.forget(e)}))},e.prototype.sendCommand=function(e,t){var n=e.identifier;return this.consumer.send({command:t,identifier:n})},e}(),w=function(){function e(t){r(this,e),this._url=t,this.subscriptions=new b(this),this.connection=new m(this)}return e.prototype.send=function(e){return this.connection.send(e)},e.prototype.connect=function(){return this.connection.open()},e.prototype.disconnect=function(){return this.connection.close({allowReconnect:!1})},e.prototype.ensureActiveConnection=function(){if(!this.connection.isActive())return this.connection.open()},o(e,[{key:"url",get:function(){return x(this._url)}}]),e}();function x(e){if("function"==typeof e&&(e=e()),e&&!/^wss?:/i.test(e)){var t=document.createElement("a");return t.href=e,t.href=t.href,t.protocol=t.protocol.replace("http","ws"),t.href}return e}function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O("url")||l.default_mount_path;return new w(e)}function O(e){var t=document.head.querySelector("meta[name='action-cable-"+e+"']");if(t)return t.getAttribute("content")}e.Connection=m,e.ConnectionMonitor=u,e.Consumer=w,e.INTERNAL=l,e.Subscription=v,e.Subscriptions=b,e.SubscriptionGuarantor=y,e.adapters=t,e.createWebSocketURL=x,e.logger=n,e.createConsumer=_,e.getConfig=O,Object.defineProperty(e,"__esModule",{value:!0})}(ti);var ni;function ii(e,t,n){var i,r,o,s,a;function c(){var u=Date.now()-s;u<t&&u>=0?i=setTimeout(c,t-u):(i=null,n||(a=e.apply(o,r),o=r=null))}null==t&&(t=100);var u=function(){o=this,r=arguments,s=Date.now();var u=n&&!i;return i||(i=setTimeout(c,t)),u&&(a=e.apply(o,r),o=r=null),a};return u.clear=function(){i&&(clearTimeout(i),i=null)},u.flush=function(){i&&(a=e.apply(o,r),o=r=null,clearTimeout(i),i=null)},u}ii.debounce=ii,ni=ii;const ri={key:e=>e.getAttribute("key")?e.getAttribute("key"):e.id,lookahead:!1,updating(e,t,n,i){if(e.getAttribute&&"replace"===e.getAttribute("data-morph-strategy"))return e.innerHTML=t.innerHTML,i()}};var oi=function(e,t){return Number(e.slice(0,-1*t.length))},si=function(e){return e.endsWith("px")?{value:e,type:"px",numeric:oi(e,"px")}:e.endsWith("fr")?{value:e,type:"fr",numeric:oi(e,"fr")}:e.endsWith("%")?{value:e,type:"%",numeric:oi(e,"%")}:"auto"===e?{value:e,type:"auto"}:null},ai=function(e){return e.split(" ").map(si)},ci=function(e,t,n){return t.concat(n).map((function(t){return t.style[e]})).filter((function(e){return void 0!==e&&""!==e}))},ui=function(e){for(var t=0;t<e.length;t++)if(e[t].numeric>0)return t;return null},li=function(){return!1},fi=function(e,t,n){e.style[t]=n},di=function(e,t,n){var i=e[t];return void 0!==i?i:n};function pi(e){var t;return(t=[]).concat.apply(t,Array.from(e.ownerDocument.styleSheets).map((function(e){var t=[];try{t=Array.from(e.cssRules||[])}catch(e){}return t}))).filter((function(t){var n=!1;try{n=e.matches(t.selectorText)}catch(e){}return n}))}var hi=function(e,t,n){this.direction=e,this.element=t.element,this.track=t.track,"column"===e?(this.gridTemplateProp="grid-template-columns",this.gridGapProp="grid-column-gap",this.cursor=di(n,"columnCursor",di(n,"cursor","col-resize")),this.snapOffset=di(n,"columnSnapOffset",di(n,"snapOffset",30)),this.dragInterval=di(n,"columnDragInterval",di(n,"dragInterval",1)),this.clientAxis="clientX",this.optionStyle=di(n,"gridTemplateColumns")):"row"===e&&(this.gridTemplateProp="grid-template-rows",this.gridGapProp="grid-row-gap",this.cursor=di(n,"rowCursor",di(n,"cursor","row-resize")),this.snapOffset=di(n,"rowSnapOffset",di(n,"snapOffset",30)),this.dragInterval=di(n,"rowDragInterval",di(n,"dragInterval",1)),this.clientAxis="clientY",this.optionStyle=di(n,"gridTemplateRows")),this.onDragStart=di(n,"onDragStart",li),this.onDragEnd=di(n,"onDragEnd",li),this.onDrag=di(n,"onDrag",li),this.writeStyle=di(n,"writeStyle",fi),this.startDragging=this.startDragging.bind(this),this.stopDragging=this.stopDragging.bind(this),this.drag=this.drag.bind(this),this.minSizeStart=t.minSizeStart,this.minSizeEnd=t.minSizeEnd,t.element&&(this.element.addEventListener("mousedown",this.startDragging),this.element.addEventListener("touchstart",this.startDragging))};hi.prototype.getDimensions=function(){var e=this.grid.getBoundingClientRect(),t=e.width,n=e.height,i=e.top,r=e.bottom,o=e.left,s=e.right;"column"===this.direction?(this.start=i,this.end=r,this.size=n):"row"===this.direction&&(this.start=o,this.end=s,this.size=t)},hi.prototype.getSizeAtTrack=function(e,t){return function(e,t,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var r=i?e+1:e;return t.slice(0,r).reduce((function(e,t){return e+t.numeric}),0)+(n?e*n:0)}(e,this.computedPixels,this.computedGapPixels,t)},hi.prototype.getSizeOfTrack=function(e){return this.computedPixels[e].numeric},hi.prototype.getRawTracks=function(){var e=ci(this.gridTemplateProp,[this.grid],pi(this.grid));if(!e.length){if(this.optionStyle)return this.optionStyle;throw Error("Unable to determine grid template tracks from styles.")}return e[0]},hi.prototype.getGap=function(){var e=ci(this.gridGapProp,[this.grid],pi(this.grid));return e.length?e[0]:null},hi.prototype.getRawComputedTracks=function(){return window.getComputedStyle(this.grid)[this.gridTemplateProp]},hi.prototype.getRawComputedGap=function(){return window.getComputedStyle(this.grid)[this.gridGapProp]},hi.prototype.setTracks=function(e){this.tracks=e.split(" "),this.trackValues=ai(e)},hi.prototype.setComputedTracks=function(e){this.computedTracks=e.split(" "),this.computedPixels=ai(e)},hi.prototype.setGap=function(e){this.gap=e},hi.prototype.setComputedGap=function(e){var t,n;this.computedGap=e,this.computedGapPixels=(t="px",((n=this.computedGap).endsWith(t)?Number(n.slice(0,-1*t.length)):null)||0)},hi.prototype.getMousePosition=function(e){return"touches"in e?e.touches[0][this.clientAxis]:e[this.clientAxis]},hi.prototype.startDragging=function(e){if(!("button"in e)||0===e.button){e.preventDefault(),this.element?this.grid=this.element.parentNode:this.grid=e.target.parentNode,this.getDimensions(),this.setTracks(this.getRawTracks()),this.setComputedTracks(this.getRawComputedTracks()),this.setGap(this.getGap()),this.setComputedGap(this.getRawComputedGap());var t=this.trackValues.filter((function(e){return"%"===e.type})),n=this.trackValues.filter((function(e){return"fr"===e.type}));if(this.totalFrs=n.length,this.totalFrs){var i=ui(n);null!==i&&(this.frToPixels=this.computedPixels[i].numeric/n[i].numeric)}if(t.length){var r=ui(t);null!==r&&(this.percentageToPixels=this.computedPixels[r].numeric/t[r].numeric)}var o=this.getSizeAtTrack(this.track,!1)+this.start;if(this.dragStartOffset=this.getMousePosition(e)-o,this.aTrack=this.track-1,!(this.track<this.tracks.length-1))throw Error("Invalid track index: "+this.track+". Track must be between two other tracks and only "+this.tracks.length+" tracks were found.");this.bTrack=this.track+1,this.aTrackStart=this.getSizeAtTrack(this.aTrack,!1)+this.start,this.bTrackEnd=this.getSizeAtTrack(this.bTrack,!0)+this.start,this.dragging=!0,window.addEventListener("mouseup",this.stopDragging),window.addEventListener("touchend",this.stopDragging),window.addEventListener("touchcancel",this.stopDragging),window.addEventListener("mousemove",this.drag),window.addEventListener("touchmove",this.drag),this.grid.addEventListener("selectstart",li),this.grid.addEventListener("dragstart",li),this.grid.style.userSelect="none",this.grid.style.webkitUserSelect="none",this.grid.style.MozUserSelect="none",this.grid.style.pointerEvents="none",this.grid.style.cursor=this.cursor,window.document.body.style.cursor=this.cursor,this.onDragStart(this.direction,this.track)}},hi.prototype.stopDragging=function(){this.dragging=!1,this.cleanup(),this.onDragEnd(this.direction,this.track),this.needsDestroy&&(this.element&&(this.element.removeEventListener("mousedown",this.startDragging),this.element.removeEventListener("touchstart",this.startDragging)),this.destroyCb(),this.needsDestroy=!1,this.destroyCb=null)},hi.prototype.drag=function(e){var t=this.getMousePosition(e),n=this.getSizeOfTrack(this.track),i=this.aTrackStart+this.minSizeStart+this.dragStartOffset+this.computedGapPixels,r=this.bTrackEnd-this.minSizeEnd-this.computedGapPixels-(n-this.dragStartOffset);t<i+this.snapOffset&&(t=i),t>r-this.snapOffset&&(t=r),t<i?t=i:t>r&&(t=r);var o=t-this.aTrackStart-this.dragStartOffset-this.computedGapPixels,s=this.bTrackEnd-t+this.dragStartOffset-n-this.computedGapPixels;if(this.dragInterval>1){var a=Math.round(o/this.dragInterval)*this.dragInterval;s-=a-o,o=a}if(o<this.minSizeStart&&(o=this.minSizeStart),s<this.minSizeEnd&&(s=this.minSizeEnd),"px"===this.trackValues[this.aTrack].type)this.tracks[this.aTrack]=o+"px";else if("fr"===this.trackValues[this.aTrack].type)if(1===this.totalFrs)this.tracks[this.aTrack]="1fr";else{var c=o/this.frToPixels;this.tracks[this.aTrack]=c+"fr"}else if("%"===this.trackValues[this.aTrack].type){var u=o/this.percentageToPixels;this.tracks[this.aTrack]=u+"%"}if("px"===this.trackValues[this.bTrack].type)this.tracks[this.bTrack]=s+"px";else if("fr"===this.trackValues[this.bTrack].type)if(1===this.totalFrs)this.tracks[this.bTrack]="1fr";else{var l=s/this.frToPixels;this.tracks[this.bTrack]=l+"fr"}else if("%"===this.trackValues[this.bTrack].type){var f=s/this.percentageToPixels;this.tracks[this.bTrack]=f+"%"}var d=this.tracks.join(" ");this.writeStyle(this.grid,this.gridTemplateProp,d),this.onDrag(this.direction,this.track,d)},hi.prototype.cleanup=function(){window.removeEventListener("mouseup",this.stopDragging),window.removeEventListener("touchend",this.stopDragging),window.removeEventListener("touchcancel",this.stopDragging),window.removeEventListener("mousemove",this.drag),window.removeEventListener("touchmove",this.drag),this.grid&&(this.grid.removeEventListener("selectstart",li),this.grid.removeEventListener("dragstart",li),this.grid.style.userSelect="",this.grid.style.webkitUserSelect="",this.grid.style.MozUserSelect="",this.grid.style.pointerEvents="",this.grid.style.cursor=""),window.document.body.style.cursor=""},hi.prototype.destroy=function(e,t){void 0===e&&(e=!0),e||!1===this.dragging?(this.cleanup(),this.element&&(this.element.removeEventListener("mousedown",this.startDragging),this.element.removeEventListener("touchstart",this.startDragging)),t&&t()):(this.needsDestroy=!0,t&&(this.destroyCb=t))};var mi=function(e,t,n){return t in e?e[t]:n},gi=function(e,t){return function(n){if(n.track<1)throw Error("Invalid track index: "+n.track+". Track must be between two other tracks.");var i="column"===e?t.columnMinSizes||{}:t.rowMinSizes||{},r="column"===e?"columnMinSize":"rowMinSize";return new hi(e,Object.assign({},{minSizeStart:mi(i,n.track-1,di(t,r,di(t,"minSize",0))),minSizeEnd:mi(i,n.track+1,di(t,r,di(t,"minSize",0)))},n),t)}},vi=function(e){var t=this;this.columnGutters={},this.rowGutters={},this.options=Object.assign({},{columnGutters:e.columnGutters||[],rowGutters:e.rowGutters||[],columnMinSizes:e.columnMinSizes||{},rowMinSizes:e.rowMinSizes||{}},e),this.options.columnGutters.forEach((function(e){t.columnGutters[e.track]=gi("column",t.options)(e)})),this.options.rowGutters.forEach((function(e){t.rowGutters[e.track]=gi("row",t.options)(e)}))};vi.prototype.addColumnGutter=function(e,t){this.columnGutters[t]&&this.columnGutters[t].destroy(),this.columnGutters[t]=gi("column",this.options)({element:e,track:t})},vi.prototype.addRowGutter=function(e,t){this.rowGutters[t]&&this.rowGutters[t].destroy(),this.rowGutters[t]=gi("row",this.options)({element:e,track:t})},vi.prototype.removeColumnGutter=function(e,t){var n=this;void 0===t&&(t=!0),this.columnGutters[e]&&this.columnGutters[e].destroy(t,(function(){delete n.columnGutters[e]}))},vi.prototype.removeRowGutter=function(e,t){var n=this;void 0===t&&(t=!0),this.rowGutters[e]&&this.rowGutters[e].destroy(t,(function(){delete n.rowGutters[e]}))},vi.prototype.handleDragStart=function(e,t,n){"column"===t?(this.columnGutters[n]&&this.columnGutters[n].destroy(),this.columnGutters[n]=gi("column",this.options)({track:n}),this.columnGutters[n].startDragging(e)):"row"===t&&(this.rowGutters[n]&&this.rowGutters[n].destroy(),this.rowGutters[n]=gi("row",this.options)({track:n}),this.rowGutters[n].startDragging(e))},vi.prototype.destroy=function(e){var t=this;void 0===e&&(e=!0),Object.keys(this.columnGutters).forEach((function(n){return t.columnGutters[n].destroy(e,(function(){delete t.columnGutters[n]}))})),Object.keys(this.rowGutters).forEach((function(n){return t.rowGutters[n].destroy(e,(function(){delete t.rowGutters[n]}))}))};var yi=function(e){return new vi(e)};function bi(e){return e?(e.nodeName||"").toLowerCase():null}function wi(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function xi(e){return e instanceof wi(e).Element||e instanceof Element}function _i(e){return e instanceof wi(e).HTMLElement||e instanceof HTMLElement}function Oi(e){return"undefined"!=typeof ShadowRoot&&(e instanceof wi(e).ShadowRoot||e instanceof ShadowRoot)}var Ei={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},r=t.elements[e];_i(r)&&bi(r)&&(Object.assign(r.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],r=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});_i(i)&&bi(i)&&(Object.assign(i.style,o),Object.keys(r).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]},ki=Math.max,Si=Math.min,Ai=Math.round;function Ti(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),i=1,r=1;if(_i(e)&&t){var o=e.offsetHeight,s=e.offsetWidth;s>0&&(i=Ai(n.width)/s||1),o>0&&(r=Ai(n.height)/o||1)}return{width:n.width/i,height:n.height/r,top:n.top/r,right:n.right/i,bottom:n.bottom/r,left:n.left/i,x:n.left/i,y:n.top/r}}function Ci(e){var t=wi(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Mi(e){return((xi(e)?e.ownerDocument:e.document)||window.document).documentElement}function ji(e){return Ti(Mi(e)).left+Ci(e).scrollLeft}function Li(e){return wi(e).getComputedStyle(e)}function Pi(e){var t=Li(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function Di(e,t,n){void 0===n&&(n=!1);var i,r,o=_i(t),s=_i(t)&&function(e){var t=e.getBoundingClientRect(),n=Ai(t.width)/e.offsetWidth||1,i=Ai(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),a=Mi(t),c=Ti(e,s),u={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!n)&&(("body"!==bi(t)||Pi(a))&&(u=(i=t)!==wi(i)&&_i(i)?{scrollLeft:(r=i).scrollLeft,scrollTop:r.scrollTop}:Ci(i)),_i(t)?((l=Ti(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=ji(a))),{x:c.left+u.scrollLeft-l.x,y:c.top+u.scrollTop-l.y,width:c.width,height:c.height}}function Ri(e){var t=Ti(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function zi(e){return"html"===bi(e)?e:e.assignedSlot||e.parentNode||(Oi(e)?e.host:null)||Mi(e)}function Wi(e){return["html","body","#document"].indexOf(bi(e))>=0?e.ownerDocument.body:_i(e)&&Pi(e)?e:Wi(zi(e))}function $i(e,t){var n;void 0===t&&(t=[]);var i=Wi(e),r=i===(null==(n=e.ownerDocument)?void 0:n.body),o=wi(i),s=r?[o].concat(o.visualViewport||[],Pi(i)?i:[]):i,a=t.concat(s);return r?a:a.concat($i(zi(s)))}function Ii(e){return["table","td","th"].indexOf(bi(e))>=0}function Ni(e){return _i(e)&&"fixed"!==Li(e).position?e.offsetParent:null}function Hi(e){for(var t=wi(e),n=Ni(e);n&&Ii(n)&&"static"===Li(n).position;)n=Ni(n);return n&&("html"===bi(n)||"body"===bi(n)&&"static"===Li(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&_i(e)&&"fixed"===Li(e).position)return null;var n=zi(e);for(Oi(n)&&(n=n.host);_i(n)&&["html","body"].indexOf(bi(n))<0;){var i=Li(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}var Vi="top",Fi="bottom",Bi="right",qi="left",Gi="auto",Ui=[Vi,Fi,Bi,qi],Xi="start",Yi="end",Ki="viewport",Ji="popper",Zi=Ui.reduce((function(e,t){return e.concat([t+"-"+Xi,t+"-"+Yi])}),[]),Qi=[].concat(Ui,[Gi]).reduce((function(e,t){return e.concat([t,t+"-"+Xi,t+"-"+Yi])}),[]),er=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function tr(e){var t=new Map,n=new Set,i=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var i=t.get(e);i&&r(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),i}var nr={placement:"bottom",modifiers:[],strategy:"absolute"};function ir(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function rr(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,r=t.defaultOptions,o=void 0===r?nr:r;return function(e,t,n){void 0===n&&(n=o);var r,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},nr,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],u=!1,l={state:a,setOptions:function(n){var r="function"==typeof n?n(a.options):n;f(),a.options=Object.assign({},o,a.options,r),a.scrollParents={reference:xi(e)?$i(e):e.contextElement?$i(e.contextElement):[],popper:$i(t)};var s=function(e){var t=tr(e);return er.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(i,a.options.modifiers)));return a.orderedModifiers=s.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,r=e.effect;if("function"==typeof r){var o=r({state:a,name:t,instance:l,options:i}),s=function(){};c.push(o||s)}})),l.update()},forceUpdate:function(){if(!u){var e=a.elements,t=e.reference,n=e.popper;if(ir(t,n)){a.rects={reference:Di(t,Hi(n),"fixed"===a.options.strategy),popper:Ri(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var r=a.orderedModifiers[i],o=r.fn,s=r.options,c=void 0===s?{}:s,f=r.name;"function"==typeof o&&(a=o({state:a,options:c,name:f,instance:l})||a)}else a.reset=!1,i=-1}}},update:(r=function(){return new Promise((function(e){l.forceUpdate(),e(a)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(r())}))}))),s}),destroy:function(){f(),u=!0}};if(!ir(e,t))return l;function f(){c.forEach((function(e){return e()})),c=[]}return l.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var or={passive:!0};function sr(e){return e.split("-")[0]}function ar(e){return e.split("-")[1]}function cr(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ur(e){var t,n=e.reference,i=e.element,r=e.placement,o=r?sr(r):null,s=r?ar(r):null,a=n.x+n.width/2-i.width/2,c=n.y+n.height/2-i.height/2;switch(o){case Vi:t={x:a,y:n.y-i.height};break;case Fi:t={x:a,y:n.y+n.height};break;case Bi:t={x:n.x+n.width,y:c};break;case qi:t={x:n.x-i.width,y:c};break;default:t={x:n.x,y:n.y}}var u=o?cr(o):null;if(null!=u){var l="y"===u?"height":"width";switch(s){case Xi:t[u]=t[u]-(n[l]/2-i[l]/2);break;case Yi:t[u]=t[u]+(n[l]/2-i[l]/2)}}return t}var lr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function fr(e){var t,n=e.popper,i=e.popperRect,r=e.placement,o=e.variation,s=e.offsets,a=e.position,c=e.gpuAcceleration,u=e.adaptive,l=e.roundOffsets,f=e.isFixed,d=s.x,p=void 0===d?0:d,h=s.y,m=void 0===h?0:h,g="function"==typeof l?l({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var v=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),b=qi,w=Vi,x=window;if(u){var _=Hi(n),O="clientHeight",E="clientWidth";if(_===wi(n)&&"static"!==Li(_=Mi(n)).position&&"absolute"===a&&(O="scrollHeight",E="scrollWidth"),r===Vi||(r===qi||r===Bi)&&o===Yi)w=Fi,m-=(f&&_===x&&x.visualViewport?x.visualViewport.height:_[O])-i.height,m*=c?1:-1;if(r===qi||(r===Vi||r===Fi)&&o===Yi)b=Bi,p-=(f&&_===x&&x.visualViewport?x.visualViewport.width:_[E])-i.width,p*=c?1:-1}var k,S=Object.assign({position:a},u&&lr),A=!0===l?function(e){var t=e.x,n=e.y,i=window.devicePixelRatio||1;return{x:Ai(t*i)/i||0,y:Ai(n*i)/i||0}}({x:p,y:m}):{x:p,y:m};return p=A.x,m=A.y,c?Object.assign({},S,((k={})[w]=y?"0":"",k[b]=v?"0":"",k.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",k)):Object.assign({},S,((t={})[w]=y?m+"px":"",t[b]=v?p+"px":"",t.transform="",t))}var dr={left:"right",right:"left",bottom:"top",top:"bottom"};function pr(e){return e.replace(/left|right|bottom|top/g,(function(e){return dr[e]}))}var hr={start:"end",end:"start"};function mr(e){return e.replace(/start|end/g,(function(e){return hr[e]}))}function gr(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Oi(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function vr(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function yr(e,t){return t===Ki?vr(function(e){var t=wi(e),n=Mi(e),i=t.visualViewport,r=n.clientWidth,o=n.clientHeight,s=0,a=0;return i&&(r=i.width,o=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=i.offsetLeft,a=i.offsetTop)),{width:r,height:o,x:s+ji(e),y:a}}(e)):xi(t)?function(e){var t=Ti(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):vr(function(e){var t,n=Mi(e),i=Ci(e),r=null==(t=e.ownerDocument)?void 0:t.body,o=ki(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=ki(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-i.scrollLeft+ji(e),c=-i.scrollTop;return"rtl"===Li(r||n).direction&&(a+=ki(n.clientWidth,r?r.clientWidth:0)-o),{width:o,height:s,x:a,y:c}}(Mi(e)))}function br(e,t,n){var i="clippingParents"===t?function(e){var t=$i(zi(e)),n=["absolute","fixed"].indexOf(Li(e).position)>=0&&_i(e)?Hi(e):e;return xi(n)?t.filter((function(e){return xi(e)&&gr(e,n)&&"body"!==bi(e)})):[]}(e):[].concat(t),r=[].concat(i,[n]),o=r[0],s=r.reduce((function(t,n){var i=yr(e,n);return t.top=ki(i.top,t.top),t.right=Si(i.right,t.right),t.bottom=Si(i.bottom,t.bottom),t.left=ki(i.left,t.left),t}),yr(e,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function wr(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function xr(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function _r(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=void 0===i?e.placement:i,o=n.boundary,s=void 0===o?"clippingParents":o,a=n.rootBoundary,c=void 0===a?Ki:a,u=n.elementContext,l=void 0===u?Ji:u,f=n.altBoundary,d=void 0!==f&&f,p=n.padding,h=void 0===p?0:p,m=wr("number"!=typeof h?h:xr(h,Ui)),g=l===Ji?"reference":Ji,v=e.rects.popper,y=e.elements[d?g:l],b=br(xi(y)?y:y.contextElement||Mi(e.elements.popper),s,c),w=Ti(e.elements.reference),x=ur({reference:w,element:v,strategy:"absolute",placement:r}),_=vr(Object.assign({},v,x)),O=l===Ji?_:w,E={top:b.top-O.top+m.top,bottom:O.bottom-b.bottom+m.bottom,left:b.left-O.left+m.left,right:O.right-b.right+m.right},k=e.modifiersData.offset;if(l===Ji&&k){var S=k[r];Object.keys(E).forEach((function(e){var t=[Bi,Fi].indexOf(e)>=0?1:-1,n=[Vi,Fi].indexOf(e)>=0?"y":"x";E[e]+=S[n]*t}))}return E}function Or(e,t,n){return ki(e,Si(t,n))}function Er(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function kr(e){return[Vi,Bi,Fi,qi].some((function(t){return e[t]>=0}))}var Sr=rr({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,r=i.scroll,o=void 0===r||r,s=i.resize,a=void 0===s||s,c=wi(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach((function(e){e.addEventListener("scroll",n.update,or)})),a&&c.addEventListener("resize",n.update,or),function(){o&&u.forEach((function(e){e.removeEventListener("scroll",n.update,or)})),a&&c.removeEventListener("resize",n.update,or)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=ur({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=void 0===i||i,o=n.adaptive,s=void 0===o||o,a=n.roundOffsets,c=void 0===a||a,u={placement:sr(t.placement),variation:ar(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,fr(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,fr(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Ei,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.offset,o=void 0===r?[0,0]:r,s=Qi.reduce((function(e,n){return e[n]=function(e,t,n){var i=sr(e),r=[qi,Vi].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*r,[qi,Bi].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,o),e}),{}),a=s[t.placement],c=a.x,u=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[i]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=n.mainAxis,o=void 0===r||r,s=n.altAxis,a=void 0===s||s,c=n.fallbackPlacements,u=n.padding,l=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=sr(g),y=c||(v===g||!h?[pr(g)]:function(e){if(sr(e)===Gi)return[];var t=pr(e);return[mr(e),t,mr(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(sr(n)===Gi?function(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,u=void 0===c?Qi:c,l=ar(i),f=l?a?Zi:Zi.filter((function(e){return ar(e)===l})):Ui,d=f.filter((function(e){return u.indexOf(e)>=0}));0===d.length&&(d=f);var p=d.reduce((function(t,n){return t[n]=_r(e,{placement:n,boundary:r,rootBoundary:o,padding:s})[sr(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:l,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,x=t.rects.popper,_=new Map,O=!0,E=b[0],k=0;k<b.length;k++){var S=b[k],A=sr(S),T=ar(S)===Xi,C=[Vi,Fi].indexOf(A)>=0,M=C?"width":"height",j=_r(t,{placement:S,boundary:l,rootBoundary:f,altBoundary:d,padding:u}),L=C?T?Bi:qi:T?Fi:Vi;w[M]>x[M]&&(L=pr(L));var P=pr(L),D=[];if(o&&D.push(j[A]<=0),a&&D.push(j[L]<=0,j[P]<=0),D.every((function(e){return e}))){E=S,O=!1;break}_.set(S,D)}if(O)for(var R=function(e){var t=b.find((function(t){var n=_.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},z=h?3:1;z>0;z--){if("break"===R(z))break}t.placement!==E&&(t.modifiersData[i]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.mainAxis,o=void 0===r||r,s=n.altAxis,a=void 0!==s&&s,c=n.boundary,u=n.rootBoundary,l=n.altBoundary,f=n.padding,d=n.tether,p=void 0===d||d,h=n.tetherOffset,m=void 0===h?0:h,g=_r(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:l}),v=sr(t.placement),y=ar(t.placement),b=!y,w=cr(v),x="x"===w?"y":"x",_=t.modifiersData.popperOffsets,O=t.rects.reference,E=t.rects.popper,k="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,S="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(_){if(o){var C,M="y"===w?Vi:qi,j="y"===w?Fi:Bi,L="y"===w?"height":"width",P=_[w],D=P+g[M],R=P-g[j],z=p?-E[L]/2:0,W=y===Xi?O[L]:E[L],$=y===Xi?-E[L]:-O[L],I=t.elements.arrow,N=p&&I?Ri(I):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=H[M],F=H[j],B=Or(0,O[L],N[L]),q=b?O[L]/2-z-B-V-S.mainAxis:W-B-V-S.mainAxis,G=b?-O[L]/2+z+B+F+S.mainAxis:$+B+F+S.mainAxis,U=t.elements.arrow&&Hi(t.elements.arrow),X=U?"y"===w?U.clientTop||0:U.clientLeft||0:0,Y=null!=(C=null==A?void 0:A[w])?C:0,K=P+G-Y,J=Or(p?Si(D,P+q-Y-X):D,P,p?ki(R,K):R);_[w]=J,T[w]=J-P}if(a){var Z,Q="x"===w?Vi:qi,ee="x"===w?Fi:Bi,te=_[x],ne="y"===x?"height":"width",ie=te+g[Q],re=te-g[ee],oe=-1!==[Vi,qi].indexOf(v),se=null!=(Z=null==A?void 0:A[x])?Z:0,ae=oe?ie:te-O[ne]-E[ne]-se+S.altAxis,ce=oe?te+O[ne]+E[ne]-se-S.altAxis:re,ue=p&&oe?function(e,t,n){var i=Or(e,t,n);return i>n?n:i}(ae,te,ce):Or(p?ae:ie,te,p?ce:re);_[x]=ue,T[x]=ue-te}t.modifiersData[i]=T}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,r=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=sr(n.placement),c=cr(a),u=[qi,Bi].indexOf(a)>=0?"height":"width";if(o&&s){var l=function(e,t){return wr("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:xr(e,Ui))}(r.padding,n),f=Ri(o),d="y"===c?Vi:qi,p="y"===c?Fi:Bi,h=n.rects.reference[u]+n.rects.reference[c]-s[c]-n.rects.popper[u],m=s[c]-n.rects.reference[c],g=Hi(o),v=g?"y"===c?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,b=l[d],w=v-f[u]-l[p],x=v/2-f[u]/2+y,_=Or(b,x,w),O=c;n.modifiersData[i]=((t={})[O]=_,t.centerOffset=_-x,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&gr(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,s=_r(t,{elementContext:"reference"}),a=_r(t,{altBoundary:!0}),c=Er(s,i),u=Er(a,r,o),l=kr(c),f=kr(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":f})}}]}),Ar="tippy-content",Tr="tippy-backdrop",Cr="tippy-arrow",Mr="tippy-svg-arrow",jr={passive:!0,capture:!0},Lr=function(){return document.body};function Pr(e,t,n){if(Array.isArray(e)){var i=e[t];return null==i?Array.isArray(n)?n[t]:n:i}return e}function Dr(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function Rr(e,t){return"function"==typeof e?e.apply(void 0,t):e}function zr(e,t){return 0===t?e:function(i){clearTimeout(n),n=setTimeout((function(){e(i)}),t)};var n}function Wr(e){return[].concat(e)}function $r(e,t){-1===e.indexOf(t)&&e.push(t)}function Ir(e){return e.split("-")[0]}function Nr(e){return[].slice.call(e)}function Hr(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function Vr(){return document.createElement("div")}function Fr(e){return["Element","Fragment"].some((function(t){return Dr(e,t)}))}function Br(e){return Dr(e,"MouseEvent")}function qr(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function Gr(e){return Fr(e)?[e]:function(e){return Dr(e,"NodeList")}(e)?Nr(e):Array.isArray(e)?e:Nr(document.querySelectorAll(e))}function Ur(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function Xr(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function Yr(e){var t,n=Wr(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function Kr(e,t,n){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[i](t,n)}))}function Jr(e,t){for(var n=t;n;){var i;if(e.contains(n))return!0;n=null==n.getRootNode||null==(i=n.getRootNode())?void 0:i.host}return!1}var Zr={isTouch:!1},Qr=0;function eo(){Zr.isTouch||(Zr.isTouch=!0,window.performance&&document.addEventListener("mousemove",to))}function to(){var e=performance.now();e-Qr<20&&(Zr.isTouch=!1,document.removeEventListener("mousemove",to)),Qr=e}function no(){var e=document.activeElement;if(qr(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var io=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var ro={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},oo=Object.assign({appendTo:Lr,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},ro,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),so=Object.keys(oo);function ao(e){var t=(e.plugins||[]).reduce((function(t,n){var i,r=n.name,o=n.defaultValue;r&&(t[r]=void 0!==e[r]?e[r]:null!=(i=oo[r])?i:o);return t}),{});return Object.assign({},e,t)}function co(e,t){var n=Object.assign({},t,{content:Rr(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(ao(Object.assign({},oo,{plugins:t}))):so).reduce((function(t,n){var i=(e.getAttribute("data-tippy-"+n)||"").trim();if(!i)return t;if("content"===n)t[n]=i;else try{t[n]=JSON.parse(i)}catch(e){t[n]=i}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},oo.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function uo(e,t){e.innerHTML=t}function lo(e){var t=Vr();return!0===e?t.className=Cr:(t.className=Mr,Fr(e)?t.appendChild(e):uo(t,e)),t}function fo(e,t){Fr(t.content)?(uo(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?uo(e,t.content):e.textContent=t.content)}function po(e){var t=e.firstElementChild,n=Nr(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(Ar)})),arrow:n.find((function(e){return e.classList.contains(Cr)||e.classList.contains(Mr)})),backdrop:n.find((function(e){return e.classList.contains(Tr)}))}}function ho(e){var t=Vr(),n=Vr();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var i=Vr();function r(n,i){var r=po(t),o=r.box,s=r.content,a=r.arrow;i.theme?o.setAttribute("data-theme",i.theme):o.removeAttribute("data-theme"),"string"==typeof i.animation?o.setAttribute("data-animation",i.animation):o.removeAttribute("data-animation"),i.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof i.maxWidth?i.maxWidth+"px":i.maxWidth,i.role?o.setAttribute("role",i.role):o.removeAttribute("role"),n.content===i.content&&n.allowHTML===i.allowHTML||fo(s,e.props),i.arrow?a?n.arrow!==i.arrow&&(o.removeChild(a),o.appendChild(lo(i.arrow))):o.appendChild(lo(i.arrow)):a&&o.removeChild(a)}return i.className=Ar,i.setAttribute("data-state","hidden"),fo(i,e.props),t.appendChild(n),n.appendChild(i),r(e.props,e.props),{popper:t,onUpdate:r}}ho.$$tippy=!0;var mo=1,go=[],vo=[];function yo(e,t){var n,i,r,o,s,a,c,u,l=co(e,Object.assign({},oo,ao(Hr(t)))),f=!1,d=!1,p=!1,h=!1,m=[],g=zr(U,l.interactiveDebounce),v=mo++,y=(u=l.plugins).filter((function(e,t){return u.indexOf(e)===t})),b={id:v,reference:e,popper:Vr(),popperInstance:null,props:l,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(i),cancelAnimationFrame(r)},setProps:function(t){0;if(b.state.isDestroyed)return;P("onBeforeUpdate",[b,t]),q();var n=b.props,i=co(e,Object.assign({},n,Hr(t),{ignoreAttributes:!0}));b.props=i,B(),n.interactiveDebounce!==i.interactiveDebounce&&(z(),g=zr(U,i.interactiveDebounce));n.triggerTarget&&!i.triggerTarget?Wr(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):i.triggerTarget&&e.removeAttribute("aria-expanded");R(),L(),_&&_(n,i);b.popperInstance&&(J(),Q().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));P("onAfterUpdate",[b,t])},setContent:function(e){b.setProps({content:e})},show:function(){0;var e=b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,i=Zr.isTouch&&!b.props.touch,r=Pr(b.props.duration,0,oo.duration);if(e||t||n||i)return;if(T().hasAttribute("disabled"))return;if(P("onShow",[b],!1),!1===b.props.onShow(b))return;b.state.isVisible=!0,A()&&(x.style.visibility="visible");L(),N(),b.state.isMounted||(x.style.transition="none");if(A()){var o=M(),s=o.box,c=o.content;Ur([s,c],0)}a=function(){var e;if(b.state.isVisible&&!h){if(h=!0,x.offsetHeight,x.style.transition=b.props.moveTransition,A()&&b.props.animation){var t=M(),n=t.box,i=t.content;Ur([n,i],r),Xr([n,i],"visible")}D(),R(),$r(vo,b),null==(e=b.popperInstance)||e.forceUpdate(),P("onMount",[b]),b.props.animation&&A()&&function(e,t){V(e,t)}(r,(function(){b.state.isShown=!0,P("onShown",[b])}))}},function(){var e,t=b.props.appendTo,n=T();e=b.props.interactive&&t===Lr||"parent"===t?n.parentNode:Rr(t,[n]);e.contains(x)||e.appendChild(x);b.state.isMounted=!0,J(),!1}()},hide:function(){0;var e=!b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,i=Pr(b.props.duration,1,oo.duration);if(e||t||n)return;if(P("onHide",[b],!1),!1===b.props.onHide(b))return;b.state.isVisible=!1,b.state.isShown=!1,h=!1,f=!1,A()&&(x.style.visibility="hidden");if(z(),H(),L(!0),A()){var r=M(),o=r.box,s=r.content;b.props.animation&&(Ur([o,s],i),Xr([o,s],"hidden"))}D(),R(),b.props.animation?A()&&function(e,t){V(e,(function(){!b.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&t()}))}(i,b.unmount):b.unmount()},hideWithInteractivity:function(e){0;C().addEventListener("mousemove",g),$r(go,g),g(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){0;b.state.isVisible&&b.hide();if(!b.state.isMounted)return;Z(),Q().forEach((function(e){e._tippy.unmount()})),x.parentNode&&x.parentNode.removeChild(x);vo=vo.filter((function(e){return e!==b})),b.state.isMounted=!1,P("onHidden",[b])},destroy:function(){0;if(b.state.isDestroyed)return;b.clearDelayTimeouts(),b.unmount(),q(),delete e._tippy,b.state.isDestroyed=!0,P("onDestroy",[b])}};if(!l.render)return b;var w=l.render(b),x=w.popper,_=w.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+b.id,b.popper=x,e._tippy=b,x._tippy=b;var O=y.map((function(e){return e.fn(b)})),E=e.hasAttribute("aria-expanded");return B(),R(),L(),P("onCreate",[b]),l.showOnCreate&&ee(),x.addEventListener("mouseenter",(function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()})),x.addEventListener("mouseleave",(function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&C().addEventListener("mousemove",g)})),b;function k(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function S(){return"hold"===k()[0]}function A(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function T(){return c||e}function C(){var e=T().parentNode;return e?Yr(e):document}function M(){return po(x)}function j(e){return b.state.isMounted&&!b.state.isVisible||Zr.isTouch||o&&"focus"===o.type?0:Pr(b.props.delay,e?0:1,oo.delay)}function L(e){void 0===e&&(e=!1),x.style.pointerEvents=b.props.interactive&&!e?"":"none",x.style.zIndex=""+b.props.zIndex}function P(e,t,n){var i;(void 0===n&&(n=!0),O.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(i=b.props)[e].apply(i,t)}function D(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,i=x.id;Wr(b.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+i:i);else{var r=t&&t.replace(i,"").trim();r?e.setAttribute(n,r):e.removeAttribute(n)}}))}}function R(){!E&&b.props.aria.expanded&&Wr(b.props.triggerTarget||e).forEach((function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===T()?"true":"false"):e.removeAttribute("aria-expanded")}))}function z(){C().removeEventListener("mousemove",g),go=go.filter((function(e){return e!==g}))}function W(t){if(!Zr.isTouch||!p&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!Jr(x,n)){if(Wr(b.props.triggerTarget||e).some((function(e){return Jr(e,n)}))){if(Zr.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else P("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),d=!0,setTimeout((function(){d=!1})),b.state.isMounted||H())}}}function $(){p=!0}function I(){p=!1}function N(){var e=C();e.addEventListener("mousedown",W,!0),e.addEventListener("touchend",W,jr),e.addEventListener("touchstart",I,jr),e.addEventListener("touchmove",$,jr)}function H(){var e=C();e.removeEventListener("mousedown",W,!0),e.removeEventListener("touchend",W,jr),e.removeEventListener("touchstart",I,jr),e.removeEventListener("touchmove",$,jr)}function V(e,t){var n=M().box;function i(e){e.target===n&&(Kr(n,"remove",i),t())}if(0===e)return t();Kr(n,"remove",s),Kr(n,"add",i),s=i}function F(t,n,i){void 0===i&&(i=!1),Wr(b.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,i),m.push({node:e,eventType:t,handler:n,options:i})}))}function B(){var e;S()&&(F("touchstart",G,{passive:!0}),F("touchend",X,{passive:!0})),(e=b.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(F(e,G),e){case"mouseenter":F("mouseleave",X);break;case"focus":F(io?"focusout":"blur",Y);break;case"focusin":F("focusout",Y)}}))}function q(){m.forEach((function(e){var t=e.node,n=e.eventType,i=e.handler,r=e.options;t.removeEventListener(n,i,r)})),m=[]}function G(e){var t,n=!1;if(b.state.isEnabled&&!K(e)&&!d){var i="focus"===(null==(t=o)?void 0:t.type);o=e,c=e.currentTarget,R(),!b.state.isVisible&&Br(e)&&go.forEach((function(t){return t(e)})),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||f)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:ee(e),"click"===e.type&&(f=!n),n&&!i&&te(e)}}function U(e){var t=e.target,n=T().contains(t)||x.contains(t);"mousemove"===e.type&&n||function(e,t){var n=t.clientX,i=t.clientY;return e.every((function(e){var t=e.popperRect,r=e.popperState,o=e.props.interactiveBorder,s=Ir(r.placement),a=r.modifiersData.offset;if(!a)return!0;var c="bottom"===s?a.top.y:0,u="top"===s?a.bottom.y:0,l="right"===s?a.left.x:0,f="left"===s?a.right.x:0,d=t.top-i+c>o,p=i-t.bottom-u>o,h=t.left-n+l>o,m=n-t.right-f>o;return d||p||h||m}))}(Q().concat(x).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:l}:null})).filter(Boolean),e)&&(z(),te(e))}function X(e){K(e)||b.props.trigger.indexOf("click")>=0&&f||(b.props.interactive?b.hideWithInteractivity(e):te(e))}function Y(e){b.props.trigger.indexOf("focusin")<0&&e.target!==T()||b.props.interactive&&e.relatedTarget&&x.contains(e.relatedTarget)||te(e)}function K(e){return!!Zr.isTouch&&S()!==e.type.indexOf("touch")>=0}function J(){Z();var t=b.props,n=t.popperOptions,i=t.placement,r=t.offset,o=t.getReferenceClientRect,s=t.moveTransition,c=A()?po(x).arrow:null,u=o?{getBoundingClientRect:o,contextElement:o.contextElement||T()}:e,l=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(A()){var n=M().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];A()&&c&&l.push({name:"arrow",options:{element:c,padding:3}}),l.push.apply(l,(null==n?void 0:n.modifiers)||[]),b.popperInstance=Sr(u,x,Object.assign({},n,{placement:i,onFirstUpdate:a,modifiers:l}))}function Z(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Q(){return Nr(x.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&P("onTrigger",[b,e]),N();var t=j(!0),i=k(),r=i[0],o=i[1];Zr.isTouch&&"hold"===r&&o&&(t=o),t?n=setTimeout((function(){b.show()}),t):b.show()}function te(e){if(b.clearDelayTimeouts(),P("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&f)){var t=j(!1);t?i=setTimeout((function(){b.state.isVisible&&b.hide()}),t):r=requestAnimationFrame((function(){b.hide()}))}}else H()}}function bo(e,t){void 0===t&&(t={});var n=oo.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",eo,jr),window.addEventListener("blur",no);var i=Object.assign({},t,{plugins:n}),r=Gr(e).reduce((function(e,t){var n=t&&yo(t,i);return n&&e.push(n),e}),[]);return Fr(e)?r[0]:r}bo.defaultProps=oo,bo.setDefaultProps=function(e){Object.keys(e).forEach((function(t){oo[t]=e[t]}))},bo.currentInput=Zr;Object.assign({},Ei,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});bo.setDefaultProps({render:ho});var wo=bo;var xo={};!function(e){if("undefined"!=typeof window){var t,n=0,i=!1,r=!1,o="message".length,s="[iFrameSizer]",a=s.length,c=null,u=window.requestAnimationFrame,l={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},f={},d=null,p={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){_("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}},h={};window.jQuery&&((t=window.jQuery).fn?t.fn.iFrameResize||(t.fn.iFrameResize=function(e){return this.filter("iframe").each((function(t,n){z(n,e)})).end()}):x("","Unable to bind to jQuery, it is not fully loaded.")),"function"==typeof define&&define.amd?define([],H):"object"==typeof xo&&(xo=H()),window.iFrameResize=window.iFrameResize||H()}function m(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function g(e,t,n){e.addEventListener(t,n,!1)}function v(e,t,n){e.removeEventListener(t,n,!1)}function y(e){return s+"["+function(e){var t="Host page: "+e;return window.top!==window.self&&(t=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),t}(e)+"]"}function b(e){return f[e]?f[e].log:i}function w(e,t){O("log",e,t,b(e))}function x(e,t){O("info",e,t,b(e))}function _(e,t){O("warn",e,t,!0)}function O(e,t,n,i){!0===i&&"object"==typeof window.console&&console[e](y(t),n)}function E(e){function t(){r("Height"),r("Width"),P((function(){L(H),C(V),b("onResized",H)}),H,"init")}function n(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}function i(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}function r(e){var t=Number(f[V]["max"+e]),n=Number(f[V]["min"+e]),i=e.toLowerCase(),r=Number(H[i]);w(V,"Checking "+i+" is in range "+n+"-"+t),r<n&&(r=n,w(V,"Set "+i+" to min value")),r>t&&(r=t,w(V,"Set "+i+" to max value")),H[i]=""+r}function u(e){return N.substr(N.indexOf(":")+o+e)}function l(e,t){var n,i,r;n=function(){var n,i;D("Send Page Info","pageInfo:"+(n=document.body.getBoundingClientRect(),i=H.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:i.height,iframeWidth:i.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(i.top-n.top,10),offsetLeft:parseInt(i.left-n.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,t)},i=32,h[r=t]||(h[r]=setTimeout((function(){h[r]=null,n()}),i))}function d(e){var t=e.getBoundingClientRect();return T(V),{x:Math.floor(Number(t.left)+Number(c.x)),y:Math.floor(Number(t.top)+Number(c.y))}}function p(e){var t=e?d(H.iframe):{x:0,y:0},n={x:Number(H.width)+t.x,y:Number(H.height)+t.y};w(V,"Reposition requested from iFrame (offset x:"+t.x+" y:"+t.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](n.x,n.y):_(V,"Unable to scroll to requested position, window.parentIFrame not found"):(c=n,m(),w(V,"--"))}function m(){!1!==b("onScroll",c)?C(V):M()}function y(e){var t={};if(0===Number(H.width)&&0===Number(H.height)){var n=u(9).split(":");t={x:n[1],y:n[0]}}else t={x:H.width,y:H.height};b(e,{iframe:H.iframe,screenX:Number(t.x),screenY:Number(t.y),type:H.type})}function b(e,t){return k(V,e,t)}var O,E,S,z,W,$,I,N=e.data,H={},V=null;"[iFrameResizerChild]Ready"===N?function(){for(var e in f)D("iFrame requested init",R(e),f[e].iframe,e)}():s===(""+N).substr(0,a)&&N.substr(a).split(":")[0]in f?(z=N.substr(a).split(":"),W=z[1]?parseInt(z[1],10):0,$=f[z[0]]&&f[z[0]].iframe,I=getComputedStyle($),H={iframe:$,id:z[0],height:W+n(I)+i(I),width:z[2],type:z[3]},V=H.id,f[V]&&(f[V].loaded=!0),(S=H.type in{true:1,false:1,undefined:1})&&w(V,"Ignoring init message from meta parent page"),!S&&(E=!0,f[O=V]||(E=!1,_(H.type+" No settings for "+O+". Message was: "+N)),E)&&(w(V,"Received: "+N),function(){var e=!0;return null===H.iframe&&(_(V,"IFrame ("+H.id+") not found"),e=!1),e}()&&function(){var t,n=e.origin,i=f[V]&&f[V].checkOrigin;if(i&&""+n!="null"&&!(i.constructor===Array?function(){var e=0,t=!1;for(w(V,"Checking connection is from allowed list of origins: "+i);e<i.length;e++)if(i[e]===n){t=!0;break}return t}():(t=f[V]&&f[V].remoteHost,w(V,"Checking connection is from: "+t),n===t)))throw new Error("Unexpected message received from: "+n+" for "+H.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(f[V]&&f[V].firstRun&&f[V]&&(f[V].firstRun=!1),H.type){case"close":A(H.iframe);break;case"message":e=u(6),w(V,"onMessage passed: {iframe: "+H.iframe.id+", message: "+e+"}"),b("onMessage",{iframe:H.iframe,message:JSON.parse(e)}),w(V,"--");break;case"mouseenter":y("onMouseEnter");break;case"mouseleave":y("onMouseLeave");break;case"autoResize":f[V].autoResize=JSON.parse(u(9));break;case"scrollTo":p(!1);break;case"scrollToOffset":p(!0);break;case"pageInfo":l(f[V]&&f[V].iframe,V),function(){function e(e,i){function r(){f[n]?l(f[n].iframe,n):t()}["scroll","resize"].forEach((function(t){w(n,e+t+" listener for sendPageInfo"),i(window,t,r)}))}function t(){e("Remove ",v)}var n=V;e("Add ",g),f[n]&&(f[n].stopPageInfo=t)}();break;case"pageInfoStop":f[V]&&f[V].stopPageInfo&&(f[V].stopPageInfo(),delete f[V].stopPageInfo);break;case"inPageLink":!function(e){var t,n=e.split("#")[1]||"",i=decodeURIComponent(n),r=document.getElementById(i)||document.getElementsByName(i)[0];r?(t=d(r),w(V,"Moving to in page link (#"+n+") at x: "+t.x+" y: "+t.y),c={x:t.x,y:t.y},m(),w(V,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(n):w(V,"In page link #"+n+" not found and window.parentIFrame not found"):w(V,"In page link #"+n+" not found")}(u(9));break;case"reset":j(H);break;case"init":t(),b("onInit",H.iframe);break;default:0===Number(H.width)&&0===Number(H.height)?_("Unsupported message received ("+H.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):t()}var e}())):x(V,"Ignored: "+N)}function k(e,t,n){var i=null,r=null;if(f[e]){if("function"!=typeof(i=f[e][t]))throw new TypeError(t+" on iFrame["+e+"] is not a function");r=i(n)}return r}function S(e){var t=e.id;delete f[t]}function A(e){var t=e.id;if(!1!==k(t,"onClose",t)){w(t,"Removing iFrame: "+t);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){_(e)}k(t,"onClosed",t),w(t,"--"),S(e)}else w(t,"Close iframe cancelled by onClose event")}function T(t){null===c&&w(t,"Get page position: "+(c={x:window.pageXOffset!==e?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==e?window.pageYOffset:document.documentElement.scrollTop}).x+","+c.y)}function C(e){null!==c&&(window.scrollTo(c.x,c.y),w(e,"Set page position: "+c.x+","+c.y),M())}function M(){c=null}function j(e){w(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),T(e.id),P((function(){L(e),D("reset","reset",e.iframe,e.id)}),e,"reset")}function L(e){function t(t){r||"0"!==e[t]||(r=!0,w(i,"Hidden iFrame detected, creating visibility listener"),function(){function e(){function e(e){function t(t){return"0px"===(f[e]&&f[e].iframe.style[t])}function n(e){return null!==e.offsetParent}f[e]&&n(f[e].iframe)&&(t("height")||t("width"))&&D("Visibility change","resize",f[e].iframe,e)}Object.keys(f).forEach((function(t){e(t)}))}function t(t){w("window","Mutation observed: "+t[0].target+" "+t[0].type),W(e,16)}function n(){var e=document.querySelector("body"),n={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0};new i(t).observe(e,n)}var i=m();i&&n()}())}function n(n){!function(t){e.id?(e.iframe.style[t]=e[t]+"px",w(e.id,"IFrame ("+i+") "+t+" set to "+e[t]+"px")):w("undefined","messageData id not set")}(n),t(n)}var i=e.iframe.id;f[i]&&(f[i].sizeHeight&&n("height"),f[i].sizeWidth&&n("width"))}function P(e,t,n){n!==t.type&&u&&!window.jasmine?(w(t.id,"Requesting animation frame"),u(e)):e()}function D(e,t,n,i,r){var o=!1;i=i||n.id,f[i]&&(n&&"contentWindow"in n&&null!==n.contentWindow?function(){var r=f[i]&&f[i].targetOrigin;w(i,"["+e+"] Sending msg to iframe["+i+"] ("+t+") targetOrigin: "+r),n.contentWindow.postMessage(s+t,r)}():_(i,"["+e+"] IFrame("+i+") not found"),r&&f[i]&&f[i].warningTimeout&&(f[i].msgTimeout=setTimeout((function(){!f[i]||f[i].loaded||o||(o=!0,_(i,"IFrame has not responded within "+f[i].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),f[i].warningTimeout)))}function R(e){return e+":"+f[e].bodyMarginV1+":"+f[e].sizeWidth+":"+f[e].log+":"+f[e].interval+":"+f[e].enablePublicMethods+":"+f[e].autoResize+":"+f[e].bodyMargin+":"+f[e].heightCalculationMethod+":"+f[e].bodyBackground+":"+f[e].bodyPadding+":"+f[e].tolerance+":"+f[e].inPageLinks+":"+f[e].resizeFrom+":"+f[e].widthCalculationMethod+":"+f[e].mouseEvents}function z(t,r){function o(e){var t=e.split("Callback");if(2===t.length){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],_(v,"Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}var s,a,c,u,d,h,v=(""===(s=t.id)&&(t.id=(a=r&&r.id||p.id+n++,null!==document.getElementById(a)&&(a+=n++),s=a),i=(r||{}).log,w(s,"Added missing iframe ID: "+s+" ("+t.src+")")),s);v in f&&"iFrameResizer"in t?_(v,"Ignored iFrame, already setup."):(d=(d=r)||{},f[v]={firstRun:!0,iframe:t,remoteHost:t.src&&t.src.split("/").slice(0,3).join("/")},function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(d),Object.keys(d).forEach(o,d),function(e){for(var t in p)Object.prototype.hasOwnProperty.call(p,t)&&(f[v][t]=Object.prototype.hasOwnProperty.call(e,t)?e[t]:p[t])}(d),f[v]&&(f[v].targetOrigin=!0===f[v].checkOrigin?""===(h=f[v].remoteHost)||null!==h.match(/^(about:blank|javascript:|file:\/\/)/)?"*":h:"*"),function(){switch(w(v,"IFrame scrolling "+(f[v]&&f[v].scrolling?"enabled":"disabled")+" for "+v),t.style.overflow=!1===(f[v]&&f[v].scrolling)?"hidden":"auto",f[v]&&f[v].scrolling){case"omit":break;case!0:t.scrolling="yes";break;case!1:t.scrolling="no";break;default:t.scrolling=f[v]?f[v].scrolling:"no"}}(),function(){function e(e){var n=f[v][e];1/0!==n&&0!==n&&(t.style[e]="number"==typeof n?n+"px":n,w(v,"Set "+e+" = "+t.style[e]))}function n(e){if(f[v]["min"+e]>f[v]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),e("maxHeight"),e("minHeight"),e("maxWidth"),e("minWidth")}(),"number"!=typeof(f[v]&&f[v].bodyMargin)&&"0"!==(f[v]&&f[v].bodyMargin)||(f[v].bodyMarginV1=f[v].bodyMargin,f[v].bodyMargin=f[v].bodyMargin+"px"),c=R(v),(u=m())&&function(e){t.parentNode&&new e((function(e){e.forEach((function(e){Array.prototype.slice.call(e.removedNodes).forEach((function(e){e===t&&A(t)}))}))})).observe(t.parentNode,{childList:!0})}(u),g(t,"load",(function(){var n,i;D("iFrame.onload",c,t,e,!0),n=f[v]&&f[v].firstRun,i=f[v]&&f[v].heightCalculationMethod in l,!n&&i&&j({iframe:t,height:0,width:0,type:"init"})})),D("init",c,t,e,!0),f[v]&&(f[v].iframe.iFrameResizer={close:A.bind(null,f[v].iframe),removeListeners:S.bind(null,f[v].iframe),resize:D.bind(null,"Window resize","resize",f[v].iframe),moveToAnchor:function(e){D("Move to anchor","moveToAnchor:"+e,f[v].iframe,v)},sendMessage:function(e){D("Send Message","message:"+(e=JSON.stringify(e)),f[v].iframe,v)}}))}function W(e,t){null===d&&(d=setTimeout((function(){d=null,e()}),t))}function $(){"hidden"!==document.visibilityState&&(w("document","Trigger event: Visiblity change"),W((function(){I("Tab Visable","resize")}),16))}function I(e,t){Object.keys(f).forEach((function(n){(function(e){return f[e]&&"parent"===f[e].resizeFrom&&f[e].autoResize&&!f[e].firstRun})(n)&&D(e,t,f[n].iframe,n)}))}function N(){g(window,"message",E),g(window,"resize",(function(){var e;w("window","Trigger event: "+(e="resize")),W((function(){I("Window "+e,"resize")}),16)})),g(document,"visibilitychange",$),g(document,"-webkit-visibilitychange",$)}function H(){function t(e,t){t&&(!function(){if(!t.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==t.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+t.tagName+">")}(),z(t,e),n.push(t))}var n;return function(){var e,t=["moz","webkit","o","ms"];for(e=0;e<t.length&&!u;e+=1)u=window[t[e]+"RequestAnimationFrame"];u?u=u.bind(window):w("setup","RequestAnimationFrame not supported")}(),N(),function(i,r){switch(n=[],function(e){e&&e.enablePublicMethods&&_("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(i),typeof r){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(r||"iframe"),t.bind(e,i));break;case"object":t(i,r);break;default:throw new TypeError("Unexpected data type ("+typeof r+")")}return n}}}();var _o=768,Oo={defaultWidth:280,minWidth:200,maxWidth:350},Eo={drawer:{orientation:"horizontal",defaultPanel:"source",defaultHeight:300,defaultWidth:500,minWidth:350,minHeight:200},preview:{defaultPanel:"preview"}};Pn.plugin(Dn),Pn.plugin(Vn),Pn.plugin(ei),Pn.store("filter",function(e){return{raw:e.$persist("").as("filter-text"),get text(){return this.raw.replace(/\s/g,"").toLowerCase()},get active(){return this.text.length>0}}}(Pn)),Pn.store("layout",{init(){this.desktop=window.innerWidth>=_o},reflowing:!1,desktop:!0,desktopWidth:_o,get mobile(){return!this.desktop}}),Pn.store("nav",function(e){return{open:e.$persist([]).as("nav-open"),active:e.$persist(null).as("nav-active"),isOpen(e){return this.open.includes(e)},setOpen(e){this.open.push(e)},setClosed(e){const t=this.open.indexOf(e);t>-1&&this.open.splice(t,1)},toggle(e){this.isOpen(e)?this.setClosed(e):this.setOpen(e)}}}(Pn)),Pn.store("sidebar",function(e){const{defaultWidth:t,minWidth:n,maxWidth:i}=Oo;return{openDesktop:e.$persist(!0).as("sidebar-open-desktop"),openMobile:e.$persist(!1).as("sidebar-open-mobile"),width:e.$persist(t).as("sidebar-width"),panelSplits:e.$persist([1,1]).as("sidebar-panel-splits"),minWidth:n,maxWidth:i,get open(){return e.store("sidebar")[e.store("layout").desktop?"openDesktop":"openMobile"]},toggle(){const t=e.store("sidebar");e.store("layout").desktop?t.openDesktop=!t.openDesktop:t.openMobile=!t.openMobile}}}(Pn)),Pn.store("inspector",function(e){const{drawer:t,preview:n}=Eo;return{drawer:{hidden:e.$persist(!1).as("drawer-hidden"),orientation:e.$persist(t.orientation).as("drawer-orientation"),panel:e.$persist(t.defaultPanel).as("drawer-panel"),height:e.$persist(t.defaultHeight).as("drawer-height"),width:e.$persist(t.defaultWidth).as("drawer-width"),minWidth:t.minWidth,minHeight:t.minHeight,visibleTabCount:1/0},preview:{width:e.$persist("100%").as("preview-width"),height:e.$persist("100%").as("preview-height"),panel:e.$persist(n.defaultPanel).as("preview-panel"),lastWidth:null,lastHeight:null,resizing:!1}}}(Pn)),Pn.store("pages",{embeds:{}}),Pn.data("app",(function(){return{init(){if(window.SOCKET_PATH){(function(t){const n=(Date.now()+(100*Math.random()|0)).toString(),i=ti.createConsumer(`${t}?uid=${n}`);return{addListener(t,n){i.subscriptions.create(t,{received:e(ni)((e=>{console.log("Lookbook files changed"),n(e)}),200),connected(){console.log("Lookbook websocket connected")},disconnected(){console.log("Lookbook websocket disconnected")}})}}})(window.SOCKET_PATH).addListener("Lookbook::ReloadChannel",(()=>this.refresh()))}},async update(){const e=await fetch(window.document.location);if(!e.ok)return window.location.reload();const t=await e.text(),n=(new DOMParser).parseFromString(t,"text/html");this.morph(n),document.title=n.title},setLocation(e){let t;e instanceof Event?(t=e.currentTarget.href,e.preventDefault()):t=e,history.pushState({},null,t),this.$dispatch("popstate")},refresh(){this.$dispatch("refresh")},morph(e){const t=e.getElementById(this.$root.id).outerHTML;Alpine.morph(this.$root,t,ri),this.$dispatch("page:morphed")}}})),Pn.data("page",(function(){return{init(){},scrollToTop(){this.$refs.scroller.scrollTop=0},checkForNavigation(e){const t=e.target.closest("a[href]");t&&!function(e){const t=document.createElement("a");return t.href=e,t.host!==window.location.host}(t.href)&&"_blank"!==t.getAttribute("target")&&(e.preventDefault(),this.setLocation(t.href))}}})),Pn.data("sidebar",(function(){return{init(){this.$nextTick((()=>this.setActiveNavItem()))},setActiveNavItem(){const e=this.$el.querySelector(`[data-path="${window.location.pathname}"]`);this.$store.nav.active=e?e.id:""},setSplits(e){e.length&&(this.$store.sidebar.panelSplits=[e[0]||1,e[2]||1])}}})),Pn.data("splitter",(function(e,t={}){return{splits:[],init(){const n=("vertical"===e?"column":"row")+"Gutters",i=this.$el;yi({[n]:[{track:1,element:i}],minSize:t.minSize||0,writeStyle(){},onDrag:(e,t,n)=>{this.splits=n.split(" ").map((e=>parseFloat(e,10)))},onDragStart:()=>{this.$store.layout.reflowing=!0},onDragEnd:()=>{this.$store.layout.reflowing=!1}})}}})),Pn.data("previewWindow",(function(){return{get store(){return this.$store.inspector.preview},get maxWidth(){return"100%"===this.store.width?"100%":`${this.store.width}px`},get maxHeight(){return"100%"===this.store.height?"100%":`${this.store.height}px`},get parentWidth(){return Math.round(this.$root.parentElement.clientWidth)},get parentHeight(){return Math.round(this.$root.parentElement.clientHeight)},start(){this.$store.layout.reflowing=!0,this.store.resizing=!0},end(){this.$store.layout.reflowing=!1,this.store.resizing=!1},onResizeStart(e){this.onResizeWidthStart(e),this.onResizeHeightStart(e)},toggleFullSize(){const{height:e,width:t}=this.store;"100%"===e&&"100%"===t?(this.toggleFullHeight(),this.toggleFullWidth()):("100%"!==e&&this.toggleFullHeight(),"100%"!==t&&this.toggleFullWidth())},onResizeWidth(e){const t=this.resizeStartWidth-2*(this.resizeStartPositionX-e.pageX),n=Math.min(Math.max(Math.round(t),200),this.parentWidth);this.store.width=n===this.parentWidth?"100%":n},onResizeWidthStart(e){this.start(),this.onResizeWidth=this.onResizeWidth.bind(this),this.onResizeWidthEnd=this.onResizeWidthEnd.bind(this),this.resizeStartPositionX=e.pageX,this.resizeStartWidth=this.$root.clientWidth,window.addEventListener("pointermove",this.onResizeWidth),window.addEventListener("pointerup",this.onResizeWidthEnd)},onResizeWidthEnd(){window.removeEventListener("pointermove",this.onResizeWidth),window.removeEventListener("pointerup",this.onResizeWidthEnd),this.end()},toggleFullWidth(){const{width:e,lastWidth:t}=this.store;"100%"===e&&t?this.store.width=t:(this.store.lastWidth=e,this.store.width="100%")},onResizeHeight(e){const t=this.resizeStartHeight-(this.resizeStartPositionY-e.pageY),n=Math.min(Math.max(Math.round(t),200),this.parentHeight);this.$store.inspector.preview.height=n===this.parentHeight?"100%":n},onResizeHeightStart(e){this.start(),this.onResizeHeight=this.onResizeHeight.bind(this),this.onResizeHeightEnd=this.onResizeHeightEnd.bind(this),this.resizeStartPositionY=e.pageY,this.resizeStartHeight=this.$root.clientHeight,window.addEventListener("pointermove",this.onResizeHeight),window.addEventListener("pointerup",this.onResizeHeightEnd)},onResizeHeightEnd(){window.removeEventListener("pointermove",this.onResizeHeight),window.removeEventListener("pointerup",this.onResizeHeightEnd),this.end()},toggleFullHeight(){const{height:e,lastHeight:t}=this.store;"100%"===e&&t?this.store.height=t:(this.store.lastHeight=e,this.store.height="100%")}}})),Pn.data("copy",(function(){return{get content(){const e=document.getElementById(this.$root.getAttribute("data-target")),t=document.createElement("textarea");return t.innerHTML=e?e.innerHTML:"",t.value.trim()},done:!1,async save(){await window.navigator.clipboard.writeText(this.content),this.done=!0,setTimeout((()=>{this.done=!1}),1e3)}}})),Pn.data("code",(function(){return{wrap:!1}})),Pn.data("inspector",(function(){return{width:0,height:0,init(){new ResizeObserver((e=>{const t=e[0].contentRect;this.width=Math.round(t.width),this.height=Math.round(t.height)})).observe(this.$el),this.width=Math.round(this.$el.clientWidth),this.height=Math.round(this.$el.clientHeight)},get orientation(){return this.$store.inspector.drawer.orientation},get view(){return this.$store.inspector.preview.view},get horizontal(){return!this.canBeVertical||"horizontal"===this.orientation},get vertical(){return!this.horizontal},get canBeVertical(){return this.width>800},get drawerHidden(){return this.$store.inspector.drawer.hidden},get maxDrawerHeight(){return Math.round(.7*this.height)},get maxDrawerWidth(){return Math.round(.7*this.width)},isActiveDrawerPanel(e){return this.$store.inspector.drawer.panel===e},switchDrawerPanel(e){this.$store.inspector.drawer.panel=e},isActivePreviewPanel(e){return this.$store.inspector.preview.panel===e},switchPreviewPanel(e){this.$store.inspector.preview.panel=e},toggleOrientation(){this.$store.inspector.drawer.orientation="horizontal"===this.orientation?"vertical":"horizontal"},toggleDrawer(){this.$store.inspector.drawer.hidden=!this.$store.inspector.drawer.hidden},preview:{width:null,height:null}}})),Pn.data("filter",(function(){return{get active(){return this.$store.filter.active},focussed:!1,checkEsc(e){"Escape"===e.key&&(this.active?this.clear():this.blur())},clear(){this.$store.filter.raw=""},focus(e){e&&"INPUT"===e.target.tagName||setTimeout((()=>{this.$dispatch("filter:focus"),this.$nextTick((()=>{this.focussed=!0,this.$refs.input.focus()}))}),0)},blur(){setTimeout((()=>{this.focussed=!1,this.$refs.input.blur(),this.$dispatch("filter:blur")}),0)}}})),Pn.data("param",(function(t,n,i={}){return{name:t,value:n,updating:!1,init(){i.debounce?this.$watch("value",e(ni)((()=>this.updateIfValid()),i.debounce)):this.$watch("value",(()=>this.updateIfValid()))},setFocus(){setTimeout((()=>this.$root.focus()),0)},updateIfValid(){this.validate()&&this.update()},update(){const e=new URLSearchParams(window.location.search);e.set(this.name,this.value);const t=location.href.replace(location.search,"");this.setLocation(`${t}?${e.toString()}`)},validate(){return!this.$root.reportValidity||this.$root.reportValidity()}}})),Pn.data("sizes",(function(){return{width:0,height:0,init(){new ResizeObserver((e=>{const t=e[0].contentRect;this.width=Math.round(t.width),this.height=Math.round(t.height)})).observe(this.$el),this.width=Math.round(this.$el.clientWidth),this.height=Math.round(this.$el.clientHeight)}}})),Pn.data("nav",(function(e=!0){return{empty:!1,init(){e&&(this.$watch("$store.filter.text",(()=>this.filter())),this.$nextTick((()=>{this.filter()})))},filter(){this.empty=!0,this.getChildren().forEach((e=>{const t=Alpine.$data(e);t.filter(this.$store.filter.text),t.hidden||(this.empty=!1)}))},getChildren(){return this.$refs.items?Array.from(this.$refs.items.querySelectorAll(":scope > li > div")):[]}}})),Pn.data("tabs",(function(){return{width:0,tabsWidth:0,init(){new ResizeObserver((e=>{this.width=Math.round(e[0].contentRect.width)})).observe(this.$refs.tabs),this.dropdown=wo(this.$refs.toggle,{allowHTML:!0,interactive:!0,trigger:"click",placement:"bottom-end",theme:"menu",content:this.$refs.dropdown})},get tabs(){return Array.from(this.$refs.tabs?this.$refs.tabs.querySelectorAll(":scope > a"):[])},get visibleTabCount(){let e=0;for(let t=0;t<this.tabs.length;t++){const n=this.tabs[t],i=parseInt(window.getComputedStyle(n).getPropertyValue("margin-left").replace("px",""),10);if(e+=n.clientWidth+i,e>this.width)return this.tabsWidth=e-n.clientWidth,t}return this.tabs.length},get hiddenTabs(){return this.tabs.slice(this.visibleTabCount,-1)},hideDropdown(){this.dropdown.hide()}}})),Pn.data("navItem",(function(e){return{hidden:!1,get id(){return this.$root.id},get path(){return this.$root.getAttribute("data-path")},get active(){return this.$store.nav.active===this.id},navigate(){this.setLocation(this.path),this.$store.layout.mobile&&(this.$store.sidebar.open=!1)},filter(t){if(this.hidden=!1,t.length){const n=e.map((e=>e.includes(t)));this.hidden=!n.filter((e=>e)).length}else this.hidden=!1}}})),Pn.data("navGroup",(function(){return{hidden:!1,children:[],get id(){return this.$root.id},get open(){return this.$store.nav.isOpen(this.id)},toggle(){this.$store.nav.toggle(this.id)},getChildren(){return this.$refs.items?Array.from(this.$refs.items.querySelectorAll(":scope > li > div")):[]},navigateToFirstChild(){if(this.open){const e=this.firstVisibleChild();if(e){const t=e.querySelector(":scope > a.nav-link");t&&this.setLocation(t.getAttribute("href"))}}},filter(e){this.hidden=!0,this.getChildren().forEach((t=>{const n=Alpine.$data(t);n.filter(e),n.hidden||(this.hidden=!1)}))},firstVisibleChild(){return this.getChildren().find((e=>!1===Alpine.$data(e).hidden))}}})),Pn.data("embed",(function(){return{init(){this.$store.pages.embeds[this.$root.id]||(this.$store.pages.embeds[this.$root.id]={width:"100%"})},lastWidth:null,reflowing:!1,get resizer(){return this.$refs.iframe?(this.$refs.iframe.iFrameResizer||window.iFrameResize({heightCalculationMethod:"lowestElement",onResized:this.onIframeResized.bind(this)},this.$refs.iframe),this.$refs.iframe.iFrameResizer):null},set width(e){this.store.width=e},get width(){return this.store.width||"100%"},get height(){return this.store.height},get parentWidth(){return Math.round(this.$root.parentElement.clientWidth)},get maxWidth(){return"100%"===this.width?"100%":`${this.width}px`},get store(){return this.$store.pages.embeds[this.$root.id]},recaclulateIframeHeight(){this.resizer&&this.resizer.resize()},onIframeResized({iframe:e,height:t}){e.isSameNode(this.$refs.iframe)&&(this.store.height=t)},onResizeWidth(e){const t=this.resizeStartWidth-(this.resizeStartPositionX-e.pageX),n=Math.min(Math.max(Math.round(t),200),this.parentWidth);this.width=n===this.parentWidth?"100%":n,this.recaclulateIframeHeight()},onResizeWidthStart(e){this.reflowing=!0,this.onResizeWidth=this.onResizeWidth.bind(this),this.onResizeWidthEnd=this.onResizeWidthEnd.bind(this),this.resizeStartPositionX=e.pageX,this.resizeStartWidth=this.$refs.resizer.clientWidth,window.addEventListener("pointermove",this.onResizeWidth),window.addEventListener("pointerup",this.onResizeWidthEnd)},onResizeWidthEnd(){window.removeEventListener("pointermove",this.onResizeWidth),window.removeEventListener("pointerup",this.onResizeWidthEnd),this.reflowing=!1},toggleFullWidth(){"100%"===this.width&&this.lastWidth?this.width=this.lastWidth:(this.lastWidth=this.width,this.width="100%"),this.$nextTick((()=>this.recaclulateIframeHeight()))}}}));for(const e of document.querySelectorAll("[data-hotkey]"))d(e);window.Alpine=Pn,Pn.start()})();
2
2
  //# sourceMappingURL=app.js.map