48 lines
356 KiB
JavaScript
48 lines
356 KiB
JavaScript
!function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){"use strict";var t,e,n,r,i=!1,o=!1,a=[],s=-1;function u(t){!function(t){a.includes(t)||a.push(t);o||i||(i=!0,queueMicrotask(l))}(t)}function c(t){let e=a.indexOf(t);-1!==e&&e>s&&a.splice(e,1)}function l(){i=!1,o=!0;for(let t=0;t<a.length;t++)a[t](),s=t;a.length=0,s=-1,o=!1}var f=!0;function h(t){e=t}var d=[],p=[],v=[];function g(t,e){"function"==typeof e?(t._x_cleanups||(t._x_cleanups=[]),t._x_cleanups.push(e)):(e=t,p.push(e))}function y(t,e){t._x_attributeCleanups&&Object.entries(t._x_attributeCleanups).forEach((([n,r])=>{(void 0===e||e.includes(n))&&(r.forEach((t=>t())),delete t._x_attributeCleanups[n])}))}var m=new MutationObserver(T),b=!1;function w(){m.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),b=!0}function _(){(x=x.concat(m.takeRecords())).length&&!E&&(E=!0,queueMicrotask((()=>{T(x),x.length=0,E=!1}))),m.disconnect(),b=!1}var x=[],E=!1;function S(t){if(!b)return t();_();let e=t();return w(),e}var O=!1,k=[];function T(t){if(O)return void(k=k.concat(t));let e=[],n=[],r=new Map,i=new Map;for(let o=0;o<t.length;o++)if(!t[o].target._x_ignoreMutationObserver&&("childList"===t[o].type&&(t[o].addedNodes.forEach((t=>1===t.nodeType&&e.push(t))),t[o].removedNodes.forEach((t=>1===t.nodeType&&n.push(t)))),"attributes"===t[o].type)){let e=t[o].target,n=t[o].attributeName,a=t[o].oldValue,s=()=>{r.has(e)||r.set(e,[]),r.get(e).push({name:n,value:e.getAttribute(n)})},u=()=>{i.has(e)||i.set(e,[]),i.get(e).push(n)};e.hasAttribute(n)&&null===a?s():e.hasAttribute(n)?(u(),s()):u()}i.forEach(((t,e)=>{y(e,t)})),r.forEach(((t,e)=>{d.forEach((n=>n(e,t)))}));for(let t of n)if(!e.includes(t)&&(p.forEach((e=>e(t))),t._x_cleanups))for(;t._x_cleanups.length;)t._x_cleanups.pop()();e.forEach((t=>{t._x_ignoreSelf=!0,t._x_ignore=!0}));for(let t of e)n.includes(t)||t.isConnected&&(delete t._x_ignoreSelf,delete t._x_ignore,v.forEach((e=>e(t))),t._x_ignore=!0,t._x_ignoreSelf=!0);e.forEach((t=>{delete t._x_ignoreSelf,delete t._x_ignore})),e=null,n=null,r=null,i=null}function P(t){return j(A(t))}function C(t,e,n){return t._x_dataStack=[e,...A(n||t)],()=>{t._x_dataStack=t._x_dataStack.filter((t=>t!==e))}}function A(t){return t._x_dataStack?t._x_dataStack:"function"==typeof ShadowRoot&&t instanceof ShadowRoot?A(t.host):t.parentNode?A(t.parentNode):[]}function j(t){let e=new Proxy({},{ownKeys:()=>Array.from(new Set(t.flatMap((t=>Object.keys(t))))),has:(e,n)=>t.some((t=>t.hasOwnProperty(n))),get:(n,r)=>(t.find((t=>{if(t.hasOwnProperty(r)){let n=Object.getOwnPropertyDescriptor(t,r);if(n.get&&n.get._x_alreadyBound||n.set&&n.set._x_alreadyBound)return!0;if((n.get||n.set)&&n.enumerable){let i=n.get,o=n.set,a=n;i=i&&i.bind(e),o=o&&o.bind(e),i&&(i._x_alreadyBound=!0),o&&(o._x_alreadyBound=!0),Object.defineProperty(t,r,{...a,get:i,set:o})}return!0}return!1}))||{})[r],set:(e,n,r)=>{let i=t.find((t=>t.hasOwnProperty(n)));return i?i[n]=r:t[t.length-1][n]=r,!0}});return e}function N(t){let e=(n,r="")=>{Object.entries(Object.getOwnPropertyDescriptors(n)).forEach((([i,{value:o,enumerable:a}])=>{if(!1===a||void 0===o)return;let s=""===r?i:`${r}.${i}`;var u;"object"==typeof o&&null!==o&&o._x_interceptor?n[i]=o.initialize(t,s,i):"object"!=typeof(u=o)||Array.isArray(u)||null===u||o===n||o instanceof Element||e(o,s)}))};return e(t)}function M(t,e=(()=>{})){let n={initialValue:void 0,_x_interceptor:!0,initialize(e,n,r){return t(this.initialValue,(()=>function(t,e){return e.split(".").reduce(((t,e)=>t[e]),t)}(e,n)),(t=>R(e,n,t)),n,r)}};return e(n),t=>{if("object"==typeof t&&null!==t&&t._x_interceptor){let e=n.initialize.bind(n);n.initialize=(r,i,o)=>{let a=t.initialize(r,i,o);return n.initialValue=a,e(r,i,o)}}else n.initialValue=t;return n}}function R(t,e,n){if("string"==typeof e&&(e=e.split(".")),1!==e.length){if(0===e.length)throw error;return t[e[0]]||(t[e[0]]={}),R(t[e[0]],e.slice(1),n)}t[e[0]]=n}var D={};function L(t,e){D[t]=e}function I(t,e){return Object.entries(D).forEach((([n,r])=>{let i=null;Object.defineProperty(t,`$${n}`,{get:()=>r(e,function(){if(i)return i;{let[t,n]=nt(e);return i={interceptor:M,...t},g(e,n),i}}()),enumerable:!1})})),t}function U(t,e,n,...r){try{return n(...r)}catch(n){F(n,t,e)}}function F(t,e,n=void 0){Object.assign(t,{el:e,expression:n}),console.warn(`Alpine Expression Error: ${t.message}\n\n${n?'Expression: "'+n+'"\n\n':""}`,e),setTimeout((()=>{throw t}),0)}var B=!0;function z(t,e,n={}){let r;return q(t,e)((t=>r=t),n),r}function q(...t){return H(...t)}var H=W;function W(t,e){let n={};I(n,t);let r=[n,...A(t)],i="function"==typeof e?function(t,e){return(n=(()=>{}),{scope:r={},params:i=[]}={})=>{$(n,e.apply(j([r,...t]),i))}}(r,e):function(t,e,n){let r=function(t,e){if(Y[t])return Y[t];let n=Object.getPrototypeOf((async function(){})).constructor,r=/^[\n\s]*if.*\(.*\)/.test(t)||/^(let|const)\s/.test(t)?`(async()=>{ ${t} })()`:t;const i=()=>{try{return new n(["__self","scope"],`with (scope) { __self.result = ${r} }; __self.finished = true; return __self.result;`)}catch(n){return F(n,e,t),Promise.resolve()}};let o=i();return Y[t]=o,o}(e,n);return(i=(()=>{}),{scope:o={},params:a=[]}={})=>{r.result=void 0,r.finished=!1;let s=j([o,...t]);if("function"==typeof r){let t=r(r,s).catch((t=>F(t,n,e)));r.finished?($(i,r.result,s,a,n),r.result=void 0):t.then((t=>{$(i,t,s,a,n)})).catch((t=>F(t,n,e))).finally((()=>r.result=void 0))}}}(r,e,t);return U.bind(null,t,e,i)}var Y={};function $(t,e,n,r,i){if(B&&"function"==typeof e){let o=e.apply(n,r);o instanceof Promise?o.then((e=>$(t,e,n,r))).catch((t=>F(t,i,e))):t(o)}else"object"==typeof e&&e instanceof Promise?e.then((e=>t(e))):t(e)}var V="x-";function J(t=""){return V+t}var X={};function G(t,e){return X[t]=e,{before(e){if(!X[e])return void console.warn("Cannot find directive `${directive}`. `${name}` will use the default order of execution");const n=lt.indexOf(e);lt.splice(n>=0?n:lt.indexOf("DEFAULT"),0,t)}}}function Z(t,e,n){if(e=Array.from(e),t._x_virtualDirectives){let n=Object.entries(t._x_virtualDirectives).map((([t,e])=>({name:t,value:e}))),r=K(n);n=n.map((t=>r.find((e=>e.name===t.name))?{name:`x-bind:${t.name}`,value:`"${t.value}"`}:t)),e=e.concat(n)}let r={},i=e.map(it(((t,e)=>r[t]=e))).filter(st).map(function(t,e){return({name:n,value:r})=>{let i=n.match(ut()),o=n.match(/:([a-zA-Z0-9\-:]+)/),a=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],s=e||t[n]||n;return{type:i?i[1]:null,value:o?o[1]:null,modifiers:a.map((t=>t.replace(".",""))),expression:r,original:s}}}(r,n)).sort(ft);return i.map((e=>function(t,e){let n=()=>{},r=X[e.type]||n,[i,o]=nt(t);!function(t,e,n){t._x_attributeCleanups||(t._x_attributeCleanups={}),t._x_attributeCleanups[e]||(t._x_attributeCleanups[e]=[]),t._x_attributeCleanups[e].push(n)}(t,e.original,o);let a=()=>{t._x_ignore||t._x_ignoreSelf||(r.inline&&r.inline(t,e,i),r=r.bind(r,t,e,i),Q?tt.get(et).push(r):r())};return a.runCleanups=o,a}(t,e)))}function K(t){return Array.from(t).map(it()).filter((t=>!st(t)))}var Q=!1,tt=new Map,et=Symbol();function nt(t){let r=[],[i,o]=function(t){let r=()=>{};return[i=>{let o=e(i);return t._x_effects||(t._x_effects=new Set,t._x_runEffects=()=>{t._x_effects.forEach((t=>t()))}),t._x_effects.add(o),r=()=>{void 0!==o&&(t._x_effects.delete(o),n(o))},o},()=>{r()}]}(t);r.push(o);return[{Alpine:Qt,effect:i,cleanup:t=>r.push(t),evaluateLater:q.bind(q,t),evaluate:z.bind(z,t)},()=>r.forEach((t=>t()))]}var rt=(t,e)=>({name:n,value:r})=>(n.startsWith(t)&&(n=n.replace(t,e)),{name:n,value:r});function it(t=(()=>{})){return({name:e,value:n})=>{let{name:r,value:i}=ot.reduce(((t,e)=>e(t)),{name:e,value:n});return r!==e&&t(r,e),{name:r,value:i}}}var ot=[];function at(t){ot.push(t)}function st({name:t}){return ut().test(t)}var ut=()=>new RegExp(`^${V}([^:^.]+)\\b`);var ct="DEFAULT",lt=["ignore","ref","data","id","bind","init","for","model","modelable","transition","show","if",ct,"teleport"];function ft(t,e){let n=-1===lt.indexOf(t.type)?ct:t.type,r=-1===lt.indexOf(e.type)?ct:e.type;return lt.indexOf(n)-lt.indexOf(r)}function ht(t,e,n={}){t.dispatchEvent(new CustomEvent(e,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}function dt(t,e){if("function"==typeof ShadowRoot&&t instanceof ShadowRoot)return void Array.from(t.children).forEach((t=>dt(t,e)));let n=!1;if(e(t,(()=>n=!0)),n)return;let r=t.firstElementChild;for(;r;)dt(r,e),r=r.nextElementSibling}function pt(t,...e){console.warn(`Alpine Warning: ${t}`,...e)}var vt=!1;var gt=[],yt=[];function mt(){return gt.map((t=>t()))}function bt(){return gt.concat(yt).map((t=>t()))}function wt(t){gt.push(t)}function _t(t){yt.push(t)}function xt(t,e=!1){return Et(t,(t=>{if((e?bt():mt()).some((e=>t.matches(e))))return!0}))}function Et(t,e){if(t){if(e(t))return t;if(t._x_teleportBack&&(t=t._x_teleportBack),t.parentElement)return Et(t.parentElement,e)}}var St=[];function Ot(t,e=dt,n=(()=>{})){!function(t){Q=!0;let e=Symbol();et=e,tt.set(e,[]);let n=()=>{for(;tt.get(e).length;)tt.get(e).shift()();tt.delete(e)};t(n),Q=!1,n()}((()=>{e(t,((t,e)=>{n(t,e),St.forEach((n=>n(t,e))),Z(t,t.attributes).forEach((t=>t())),t._x_ignore&&e()}))}))}function kt(t){dt(t,(t=>y(t)))}var Tt=[],Pt=!1;function Ct(t=(()=>{})){return queueMicrotask((()=>{Pt||setTimeout((()=>{At()}))})),new Promise((e=>{Tt.push((()=>{t(),e()}))}))}function At(){for(Pt=!1;Tt.length;)Tt.shift()()}function jt(t,e){return Array.isArray(e)?Nt(t,e.join(" ")):"object"==typeof e&&null!==e?function(t,e){let n=t=>t.split(" ").filter(Boolean),r=Object.entries(e).flatMap((([t,e])=>!!e&&n(t))).filter(Boolean),i=Object.entries(e).flatMap((([t,e])=>!e&&n(t))).filter(Boolean),o=[],a=[];return i.forEach((e=>{t.classList.contains(e)&&(t.classList.remove(e),a.push(e))})),r.forEach((e=>{t.classList.contains(e)||(t.classList.add(e),o.push(e))})),()=>{a.forEach((e=>t.classList.add(e))),o.forEach((e=>t.classList.remove(e)))}}(t,e):"function"==typeof e?jt(t,e()):Nt(t,e)}function Nt(t,e){return e=!0===e?e="":e||"",n=e.split(" ").filter((e=>!t.classList.contains(e))).filter(Boolean),t.classList.add(...n),()=>{t.classList.remove(...n)};var n}function Mt(t,e){return"object"==typeof e&&null!==e?function(t,e){let n={};return Object.entries(e).forEach((([e,r])=>{n[e]=t.style[e],e.startsWith("--")||(e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()),t.style.setProperty(e,r)})),setTimeout((()=>{0===t.style.length&&t.removeAttribute("style")})),()=>{Mt(t,n)}}(t,e):function(t,e){let n=t.getAttribute("style",e);return t.setAttribute("style",e),()=>{t.setAttribute("style",n||"")}}(t,e)}function Rt(t,e=(()=>{})){let n=!1;return function(){n?e.apply(this,arguments):(n=!0,t.apply(this,arguments))}}function Dt(t,e,n={}){t._x_transition||(t._x_transition={enter:{during:n,start:n,end:n},leave:{during:n,start:n,end:n},in(n=(()=>{}),r=(()=>{})){It(t,e,{during:this.enter.during,start:this.enter.start,end:this.enter.end},n,r)},out(n=(()=>{}),r=(()=>{})){It(t,e,{during:this.leave.during,start:this.leave.start,end:this.leave.end},n,r)}})}function Lt(t){let e=t.parentNode;if(e)return e._x_hidePromise?e:Lt(e)}function It(t,e,{during:n,start:r,end:i}={},o=(()=>{}),a=(()=>{})){if(t._x_transitioning&&t._x_transitioning.cancel(),0===Object.keys(n).length&&0===Object.keys(r).length&&0===Object.keys(i).length)return o(),void a();let s,u,c;!function(t,e){let n,r,i,o=Rt((()=>{S((()=>{n=!0,r||e.before(),i||(e.end(),At()),e.after(),t.isConnected&&e.cleanup(),delete t._x_transitioning}))}));t._x_transitioning={beforeCancels:[],beforeCancel(t){this.beforeCancels.push(t)},cancel:Rt((function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();o()})),finish:o},S((()=>{e.start(),e.during()})),Pt=!0,requestAnimationFrame((()=>{if(n)return;let o=1e3*Number(getComputedStyle(t).transitionDuration.replace(/,.*/,"").replace("s","")),a=1e3*Number(getComputedStyle(t).transitionDelay.replace(/,.*/,"").replace("s",""));0===o&&(o=1e3*Number(getComputedStyle(t).animationDuration.replace("s",""))),S((()=>{e.before()})),r=!0,requestAnimationFrame((()=>{n||(S((()=>{e.end()})),At(),setTimeout(t._x_transitioning.finish,o+a),i=!0)}))}))}(t,{start(){s=e(t,r)},during(){u=e(t,n)},before:o,end(){s(),c=e(t,i)},after:a,cleanup(){u(),c()}})}function Ut(t,e,n){if(-1===t.indexOf(e))return n;const r=t[t.indexOf(e)+1];if(!r)return n;if("scale"===e&&isNaN(r))return n;if("duration"===e||"delay"===e){let t=r.match(/([0-9]+)ms/);if(t)return t[1]}return"origin"===e&&["top","right","left","center","bottom"].includes(t[t.indexOf(e)+2])?[r,t[t.indexOf(e)+2]].join(" "):r}G("transition",((t,{value:e,modifiers:n,expression:r},{evaluate:i})=>{"function"==typeof r&&(r=i(r)),!1!==r&&(r&&"boolean"!=typeof r?function(t,e,n){Dt(t,jt,"");let r={enter:e=>{t._x_transition.enter.during=e},"enter-start":e=>{t._x_transition.enter.start=e},"enter-end":e=>{t._x_transition.enter.end=e},leave:e=>{t._x_transition.leave.during=e},"leave-start":e=>{t._x_transition.leave.start=e},"leave-end":e=>{t._x_transition.leave.end=e}};r[n](e)}(t,r,e):function(t,e,n){Dt(t,Mt);let r=!e.includes("in")&&!e.includes("out")&&!n,i=r||e.includes("in")||["enter"].includes(n),o=r||e.includes("out")||["leave"].includes(n);e.includes("in")&&!r&&(e=e.filter(((t,n)=>n<e.indexOf("out"))));e.includes("out")&&!r&&(e=e.filter(((t,n)=>n>e.indexOf("out"))));let a=!e.includes("opacity")&&!e.includes("scale"),s=a||e.includes("opacity"),u=a||e.includes("scale"),c=s?0:1,l=u?Ut(e,"scale",95)/100:1,f=Ut(e,"delay",0)/1e3,h=Ut(e,"origin","center"),d="opacity, transform",p=Ut(e,"duration",150)/1e3,v=Ut(e,"duration",75)/1e3,g="cubic-bezier(0.4, 0.0, 0.2, 1)";i&&(t._x_transition.enter.during={transformOrigin:h,transitionDelay:`${f}s`,transitionProperty:d,transitionDuration:`${p}s`,transitionTimingFunction:g},t._x_transition.enter.start={opacity:c,transform:`scale(${l})`},t._x_transition.enter.end={opacity:1,transform:"scale(1)"});o&&(t._x_transition.leave.during={transformOrigin:h,transitionDelay:`${f}s`,transitionProperty:d,transitionDuration:`${v}s`,transitionTimingFunction:g},t._x_transition.leave.start={opacity:1,transform:"scale(1)"},t._x_transition.leave.end={opacity:c,transform:`scale(${l})`})}(t,n,e))})),window.Element.prototype._x_toggleAndCascadeWithTransitions=function(t,e,n,r){const i="visible"===document.visibilityState?requestAnimationFrame:setTimeout;let o=()=>i(n);e?t._x_transition&&(t._x_transition.enter||t._x_transition.leave)?t._x_transition.enter&&(Object.entries(t._x_transition.enter.during).length||Object.entries(t._x_transition.enter.start).length||Object.entries(t._x_transition.enter.end).length)?t._x_transition.in(n):o():t._x_transition?t._x_transition.in(n):o():(t._x_hidePromise=t._x_transition?new Promise(((e,n)=>{t._x_transition.out((()=>{}),(()=>e(r))),t._x_transitioning.beforeCancel((()=>n({isFromCancelledTransition:!0})))})):Promise.resolve(r),queueMicrotask((()=>{let e=Lt(t);e?(e._x_hideChildren||(e._x_hideChildren=[]),e._x_hideChildren.push(t)):i((()=>{let e=t=>{let n=Promise.all([t._x_hidePromise,...(t._x_hideChildren||[]).map(e)]).then((([t])=>t()));return delete t._x_hidePromise,delete t._x_hideChildren,n};e(t).catch((t=>{if(!t.isFromCancelledTransition)throw t}))}))})))};var Ft=!1;function Bt(t,e=(()=>{})){return(...n)=>Ft?e(...n):t(...n)}function zt(e,n,r,i=[]){switch(e._x_bindings||(e._x_bindings=t({})),e._x_bindings[n]=r,n=i.includes("camel")?n.toLowerCase().replace(/-(\w)/g,((t,e)=>e.toUpperCase())):n){case"value":!function(t,e){if("radio"===t.type)void 0===t.attributes.value&&(t.value=e),window.fromModel&&(t.checked=Ht(t.value,e));else if("checkbox"===t.type)Number.isInteger(e)?t.value=e:Number.isInteger(e)||Array.isArray(e)||"boolean"==typeof e||[null,void 0].includes(e)?Array.isArray(e)?t.checked=e.some((e=>Ht(e,t.value))):t.checked=!!e:t.value=String(e);else if("SELECT"===t.tagName)!function(t,e){const n=[].concat(e).map((t=>t+""));Array.from(t.options).forEach((t=>{t.selected=n.includes(t.value)}))}(t,e);else{if(t.value===e)return;t.value=e}}(e,r);break;case"style":!function(t,e){t._x_undoAddedStyles&&t._x_undoAddedStyles();t._x_undoAddedStyles=Mt(t,e)}(e,r);break;case"class":!function(t,e){t._x_undoAddedClasses&&t._x_undoAddedClasses();t._x_undoAddedClasses=jt(t,e)}(e,r);break;case"selected":case"checked":!function(t,e,n){qt(t,e,n),function(t,e,n){t[e]!==n&&(t[e]=n)}(t,e,n)}(e,n,r);break;default:qt(e,n,r)}}function qt(t,e,n){[null,void 0,!1].includes(n)&&function(t){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(t)}(e)?t.removeAttribute(e):(Wt(e)&&(n=e),function(t,e,n){t.getAttribute(e)!=n&&t.setAttribute(e,n)}(t,e,n))}function Ht(t,e){return t==e}function Wt(t){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(t)}function Yt(t,e){var n;return function(){var r=this,i=arguments;clearTimeout(n),n=setTimeout((function(){n=null,t.apply(r,i)}),e)}}function $t(t,e){let n;return function(){let r=this,i=arguments;n||(t.apply(r,i),n=!0,setTimeout((()=>n=!1),e))}}var Vt={},Jt=!1;var Xt={};function Gt(t,e,n){let r=[];for(;r.length;)r.pop()();let i=Object.entries(e).map((([t,e])=>({name:t,value:e}))),o=K(i);i=i.map((t=>o.find((e=>e.name===t.name))?{name:`x-bind:${t.name}`,value:`"${t.value}"`}:t)),Z(t,i,n).map((t=>{r.push(t.runCleanups),t()}))}var Zt={};var Kt={get reactive(){return t},get release(){return n},get effect(){return e},get raw(){return r},version:"3.12.2",flushAndStopDeferringMutations:function(){O=!1,T(k),k=[]},dontAutoEvaluateFunctions:function(t){let e=B;B=!1,t(),B=e},disableEffectScheduling:function(t){f=!1,t(),f=!0},startObservingMutations:w,stopObservingMutations:_,setReactivityEngine:function(i){t=i.reactive,n=i.release,e=t=>i.effect(t,{scheduler:t=>{f?u(t):t()}}),r=i.raw},closestDataStack:A,skipDuringClone:Bt,onlyDuringClone:function(t){return(...e)=>Ft&&t(...e)},addRootSelector:wt,addInitSelector:_t,addScopeToNode:C,deferMutations:function(){O=!0},mapAttributes:at,evaluateLater:q,interceptInit:function(t){St.push(t)},setEvaluator:function(t){H=t},mergeProxies:j,findClosest:Et,closestRoot:xt,destroyTree:kt,interceptor:M,transition:It,setStyles:Mt,mutateDom:S,directive:G,throttle:$t,debounce:Yt,evaluate:z,initTree:Ot,nextTick:Ct,prefixed:J,prefix:function(t){V=t},plugin:function(t){(Array.isArray(t)?t:[t]).forEach((t=>t(Qt)))},magic:L,store:function(e,n){if(Jt||(Vt=t(Vt),Jt=!0),void 0===n)return Vt[e];Vt[e]=n,"object"==typeof n&&null!==n&&n.hasOwnProperty("init")&&"function"==typeof n.init&&Vt[e].init(),N(Vt[e])},start:function(){var t;vt&&pt("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),vt=!0,document.body||pt("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),ht(document,"alpine:init"),ht(document,"alpine:initializing"),w(),t=t=>Ot(t,dt),v.push(t),g((t=>kt(t))),function(t){d.push(t)}(((t,e)=>{Z(t,e).forEach((t=>t()))})),Array.from(document.querySelectorAll(bt())).filter((t=>!xt(t.parentElement,!0))).forEach((t=>{Ot(t)})),ht(document,"alpine:initialized")},clone:function(t,r){r._x_dataStack||(r._x_dataStack=t._x_dataStack),Ft=!0,function(t){let r=e;h(((t,e)=>{let i=r(t);return n(i),()=>{}})),t(),h(r)}((()=>{!function(t){let e=!1;Ot(t,((t,n)=>{dt(t,((t,r)=>{if(e&&function(t){return mt().some((e=>t.matches(e)))}(t))return r();e=!0,n(t,r)}))}))}(r)})),Ft=!1},bound:function(t,e,n){if(t._x_bindings&&void 0!==t._x_bindings[e])return t._x_bindings[e];let r=t.getAttribute(e);return null===r?"function"==typeof n?n():n:""===r||(Wt(e)?!![e,"true"].includes(r):r)},$data:P,walk:dt,data:function(t,e){Zt[t]=e},bind:function(t,e){let n="function"!=typeof e?()=>e:e;t instanceof Element?Gt(t,n()):Xt[t]=n}},Qt=Kt;function te(t,e){const n=Object.create(null),r=t.split(",");for(let t=0;t<r.length;t++)n[r[t]]=!0;return e?t=>!!n[t.toLowerCase()]:t=>!!n[t]}var ee=Object.freeze({});Object.freeze([]);var ne,re=Object.assign,ie=Object.prototype.hasOwnProperty,oe=(t,e)=>ie.call(t,e),ae=Array.isArray,se=t=>"[object Map]"===fe(t),ue=t=>"symbol"==typeof t,ce=t=>null!==t&&"object"==typeof t,le=Object.prototype.toString,fe=t=>le.call(t),he=t=>fe(t).slice(8,-1),de=t=>"string"==typeof t&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,pe=(t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))})((t=>t.charAt(0).toUpperCase()+t.slice(1))),ve=(t,e)=>t!==e&&(t==t||e==e),ge=new WeakMap,ye=[],me=Symbol("iterate"),be=Symbol("Map key iterate");var we=0;function _e(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}var xe=!0,Ee=[];function Se(){const t=Ee.pop();xe=void 0===t||t}function Oe(t,e,n){if(!xe||void 0===ne)return;let r=ge.get(t);r||ge.set(t,r=new Map);let i=r.get(n);i||r.set(n,i=new Set),i.has(ne)||(i.add(ne),ne.deps.push(i),ne.options.onTrack&&ne.options.onTrack({effect:ne,target:t,type:e,key:n}))}function ke(t,e,n,r,i,o){const a=ge.get(t);if(!a)return;const s=new Set,u=t=>{t&&t.forEach((t=>{(t!==ne||t.allowRecurse)&&s.add(t)}))};if("clear"===e)a.forEach(u);else if("length"===n&&ae(t))a.forEach(((t,e)=>{("length"===e||e>=r)&&u(t)}));else switch(void 0!==n&&u(a.get(n)),e){case"add":ae(t)?de(n)&&u(a.get("length")):(u(a.get(me)),se(t)&&u(a.get(be)));break;case"delete":ae(t)||(u(a.get(me)),se(t)&&u(a.get(be)));break;case"set":se(t)&&u(a.get(me))}s.forEach((a=>{a.options.onTrigger&&a.options.onTrigger({effect:a,target:t,key:n,type:e,newValue:r,oldValue:i,oldTarget:o}),a.options.scheduler?a.options.scheduler(a):a()}))}var Te=te("__proto__,__v_isRef,__isVue"),Pe=new Set(Object.getOwnPropertyNames(Symbol).map((t=>Symbol[t])).filter(ue)),Ce=Re(),Ae=Re(!1,!0),je=Re(!0),Ne=Re(!0,!0),Me={};function Re(t=!1,e=!1){return function(n,r,i){if("__v_isReactive"===r)return!t;if("__v_isReadonly"===r)return t;if("__v_raw"===r&&i===(t?e?ln:cn:e?un:sn).get(n))return n;const o=ae(n);if(!t&&o&&oe(Me,r))return Reflect.get(Me,r,i);const a=Reflect.get(n,r,i);if(ue(r)?Pe.has(r):Te(r))return a;if(t||Oe(n,"get",r),e)return a;if(vn(a)){return!o||!de(r)?a.value:a}return ce(a)?t?hn(a):fn(a):a}}function De(t=!1){return function(e,n,r,i){let o=e[n];if(!t&&(r=pn(r),o=pn(o),!ae(e)&&vn(o)&&!vn(r)))return o.value=r,!0;const a=ae(e)&&de(n)?Number(n)<e.length:oe(e,n),s=Reflect.set(e,n,r,i);return e===pn(i)&&(a?ve(r,o)&&ke(e,"set",n,r,o):ke(e,"add",n,r)),s}}["includes","indexOf","lastIndexOf"].forEach((t=>{const e=Array.prototype[t];Me[t]=function(...t){const n=pn(this);for(let t=0,e=this.length;t<e;t++)Oe(n,"get",t+"");const r=e.apply(n,t);return-1===r||!1===r?e.apply(n,t.map(pn)):r}})),["push","pop","shift","unshift","splice"].forEach((t=>{const e=Array.prototype[t];Me[t]=function(...t){Ee.push(xe),xe=!1;const n=e.apply(this,t);return Se(),n}}));var Le={get:Ce,set:De(),deleteProperty:function(t,e){const n=oe(t,e),r=t[e],i=Reflect.deleteProperty(t,e);return i&&n&&ke(t,"delete",e,void 0,r),i},has:function(t,e){const n=Reflect.has(t,e);return ue(e)&&Pe.has(e)||Oe(t,"has",e),n},ownKeys:function(t){return Oe(t,"iterate",ae(t)?"length":me),Reflect.ownKeys(t)}},Ie={get:je,set:(t,e)=>(console.warn(`Set operation on key "${String(e)}" failed: target is readonly.`,t),!0),deleteProperty:(t,e)=>(console.warn(`Delete operation on key "${String(e)}" failed: target is readonly.`,t),!0)};re({},Le,{get:Ae,set:De(!0)}),re({},Ie,{get:Ne});var Ue=t=>ce(t)?fn(t):t,Fe=t=>ce(t)?hn(t):t,Be=t=>t,ze=t=>Reflect.getPrototypeOf(t);function qe(t,e,n=!1,r=!1){const i=pn(t=t.__v_raw),o=pn(e);e!==o&&!n&&Oe(i,"get",e),!n&&Oe(i,"get",o);const{has:a}=ze(i),s=r?Be:n?Fe:Ue;return a.call(i,e)?s(t.get(e)):a.call(i,o)?s(t.get(o)):void(t!==i&&t.get(e))}function He(t,e=!1){const n=this.__v_raw,r=pn(n),i=pn(t);return t!==i&&!e&&Oe(r,"has",t),!e&&Oe(r,"has",i),t===i?n.has(t):n.has(t)||n.has(i)}function We(t,e=!1){return t=t.__v_raw,!e&&Oe(pn(t),"iterate",me),Reflect.get(t,"size",t)}function Ye(t){t=pn(t);const e=pn(this);return ze(e).has.call(e,t)||(e.add(t),ke(e,"add",t,t)),this}function $e(t,e){e=pn(e);const n=pn(this),{has:r,get:i}=ze(n);let o=r.call(n,t);o?an(n,r,t):(t=pn(t),o=r.call(n,t));const a=i.call(n,t);return n.set(t,e),o?ve(e,a)&&ke(n,"set",t,e,a):ke(n,"add",t,e),this}function Ve(t){const e=pn(this),{has:n,get:r}=ze(e);let i=n.call(e,t);i?an(e,n,t):(t=pn(t),i=n.call(e,t));const o=r?r.call(e,t):void 0,a=e.delete(t);return i&&ke(e,"delete",t,void 0,o),a}function Je(){const t=pn(this),e=0!==t.size,n=se(t)?new Map(t):new Set(t),r=t.clear();return e&&ke(t,"clear",void 0,void 0,n),r}function Xe(t,e){return function(n,r){const i=this,o=i.__v_raw,a=pn(o),s=e?Be:t?Fe:Ue;return!t&&Oe(a,"iterate",me),o.forEach(((t,e)=>n.call(r,s(t),s(e),i)))}}function Ge(t,e,n){return function(...r){const i=this.__v_raw,o=pn(i),a=se(o),s="entries"===t||t===Symbol.iterator&&a,u="keys"===t&&a,c=i[t](...r),l=n?Be:e?Fe:Ue;return!e&&Oe(o,"iterate",u?be:me),{next(){const{value:t,done:e}=c.next();return e?{value:t,done:e}:{value:s?[l(t[0]),l(t[1])]:l(t),done:e}},[Symbol.iterator](){return this}}}}function Ze(t){return function(...e){{const n=e[0]?`on key "${e[0]}" `:"";console.warn(`${pe(t)} operation ${n}failed: target is readonly.`,pn(this))}return"delete"!==t&&this}}var Ke={get(t){return qe(this,t)},get size(){return We(this)},has:He,add:Ye,set:$e,delete:Ve,clear:Je,forEach:Xe(!1,!1)},Qe={get(t){return qe(this,t,!1,!0)},get size(){return We(this)},has:He,add:Ye,set:$e,delete:Ve,clear:Je,forEach:Xe(!1,!0)},tn={get(t){return qe(this,t,!0)},get size(){return We(this,!0)},has(t){return He.call(this,t,!0)},add:Ze("add"),set:Ze("set"),delete:Ze("delete"),clear:Ze("clear"),forEach:Xe(!0,!1)},en={get(t){return qe(this,t,!0,!0)},get size(){return We(this,!0)},has(t){return He.call(this,t,!0)},add:Ze("add"),set:Ze("set"),delete:Ze("delete"),clear:Ze("clear"),forEach:Xe(!0,!0)};function nn(t,e){const n=e?t?en:Qe:t?tn:Ke;return(e,r,i)=>"__v_isReactive"===r?!t:"__v_isReadonly"===r?t:"__v_raw"===r?e:Reflect.get(oe(n,r)&&r in e?n:e,r,i)}["keys","values","entries",Symbol.iterator].forEach((t=>{Ke[t]=Ge(t,!1,!1),tn[t]=Ge(t,!0,!1),Qe[t]=Ge(t,!1,!0),en[t]=Ge(t,!0,!0)}));var rn={get:nn(!1,!1)},on={get:nn(!0,!1)};function an(t,e,n){const r=pn(n);if(r!==n&&e.call(t,r)){const e=he(t);console.warn(`Reactive ${e} contains both the raw and reactive versions of the same object${"Map"===e?" 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 sn=new WeakMap,un=new WeakMap,cn=new WeakMap,ln=new WeakMap;function fn(t){return t&&t.__v_isReadonly?t:dn(t,!1,Le,rn,sn)}function hn(t){return dn(t,!0,Ie,on,cn)}function dn(t,e,n,r,i){if(!ce(t))return console.warn(`value cannot be made reactive: ${String(t)}`),t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const o=i.get(t);if(o)return o;const a=(s=t).__v_skip||!Object.isExtensible(s)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(he(s));var s;if(0===a)return t;const u=new Proxy(t,2===a?r:n);return i.set(t,u),u}function pn(t){return t&&pn(t.__v_raw)||t}function vn(t){return Boolean(t&&!0===t.__v_isRef)}L("nextTick",(()=>Ct)),L("dispatch",(t=>ht.bind(ht,t))),L("watch",((t,{evaluateLater:e,effect:n})=>(r,i)=>{let o,a=e(r),s=!0,u=n((()=>a((t=>{JSON.stringify(t),s?o=t:queueMicrotask((()=>{i(t,o),o=t})),s=!1}))));t._x_effects.delete(u)})),L("store",(function(){return Vt})),L("data",(t=>P(t))),L("root",(t=>xt(t))),L("refs",(t=>(t._x_refs_proxy||(t._x_refs_proxy=j(function(t){let e=[],n=t;for(;n;)n._x_refs&&e.push(n._x_refs),n=n.parentNode;return e}(t))),t._x_refs_proxy)));var gn={};function yn(t){return gn[t]||(gn[t]=0),++gn[t]}function mn(t,e,n){L(e,(e=>pt(`You can't use [$${directiveName}] without first installing the "${t}" plugin here: https://alpinejs.dev/plugins/${n}`,e)))}L("id",(t=>(e,n=null)=>{let r=function(t,e){return Et(t,(t=>{if(t._x_ids&&t._x_ids[e])return!0}))}(t,e),i=r?r._x_ids[e]:yn(e);return n?`${e}-${i}-${n}`:`${e}-${i}`})),L("el",(t=>t)),mn("Focus","focus","focus"),mn("Persist","persist","persist"),G("modelable",((t,{expression:r},{effect:i,evaluateLater:o,cleanup:a})=>{let s=o(r),u=()=>{let t;return s((e=>t=e)),t},c=o(`${r} = __placeholder`),l=t=>c((()=>{}),{scope:{__placeholder:t}}),f=u();l(f),queueMicrotask((()=>{if(!t._x_model)return;t._x_removeModelListeners.default();let r=t._x_model.get,i=t._x_model.set,o=function({get:t,set:r},{get:i,set:o}){let a,s,u=!0,c=e((()=>{let e,n;u?(e=t(),o(e),n=i(),u=!1):(e=t(),n=i(),s=JSON.stringify(e),JSON.stringify(n),s!==a?(n=i(),o(e),n=e):(r(n),e=n)),a=JSON.stringify(e),JSON.stringify(n)}));return()=>{n(c)}}({get:()=>r(),set(t){i(t)}},{get:()=>u(),set(t){l(t)}});a(o)}))}));var bn=document.createElement("div");G("teleport",((t,{modifiers:e,expression:n},{cleanup:r})=>{"template"!==t.tagName.toLowerCase()&&pt("x-teleport can only be used on a <template> tag",t);let i=Bt((()=>document.querySelector(n)),(()=>bn))();i||pt(`Cannot find x-teleport element for selector: "${n}"`);let o=t.content.cloneNode(!0).firstElementChild;t._x_teleport=o,o._x_teleportBack=t,t._x_forwardEvents&&t._x_forwardEvents.forEach((e=>{o.addEventListener(e,(e=>{e.stopPropagation(),t.dispatchEvent(new e.constructor(e.type,e))}))})),C(o,{},t),S((()=>{e.includes("prepend")?i.parentNode.insertBefore(o,i):e.includes("append")?i.parentNode.insertBefore(o,i.nextSibling):i.appendChild(o),Ot(o),o._x_ignore=!0})),r((()=>o.remove()))}));var wn=()=>{};function _n(t,e,n,r){let i=t,o=t=>r(t),a={},s=(t,e)=>n=>e(t,n);if(n.includes("dot")&&(e=e.replace(/-/g,".")),n.includes("camel")&&(e=function(t){return t.toLowerCase().replace(/-(\w)/g,((t,e)=>e.toUpperCase()))}(e)),n.includes("passive")&&(a.passive=!0),n.includes("capture")&&(a.capture=!0),n.includes("window")&&(i=window),n.includes("document")&&(i=document),n.includes("debounce")){let t=n[n.indexOf("debounce")+1]||"invalid-wait",e=xn(t.split("ms")[0])?Number(t.split("ms")[0]):250;o=Yt(o,e)}if(n.includes("throttle")){let t=n[n.indexOf("throttle")+1]||"invalid-wait",e=xn(t.split("ms")[0])?Number(t.split("ms")[0]):250;o=$t(o,e)}return n.includes("prevent")&&(o=s(o,((t,e)=>{e.preventDefault(),t(e)}))),n.includes("stop")&&(o=s(o,((t,e)=>{e.stopPropagation(),t(e)}))),n.includes("self")&&(o=s(o,((e,n)=>{n.target===t&&e(n)}))),(n.includes("away")||n.includes("outside"))&&(i=document,o=s(o,((e,n)=>{t.contains(n.target)||!1!==n.target.isConnected&&(t.offsetWidth<1&&t.offsetHeight<1||!1!==t._x_isShown&&e(n))}))),n.includes("once")&&(o=s(o,((t,n)=>{t(n),i.removeEventListener(e,o,a)}))),o=s(o,((t,r)=>{(function(t){return["keydown","keyup"].includes(t)})(e)&&function(t,e){let n=e.filter((t=>!["window","document","prevent","stop","once","capture"].includes(t)));if(n.includes("debounce")){let t=n.indexOf("debounce");n.splice(t,xn((n[t+1]||"invalid-wait").split("ms")[0])?2:1)}if(n.includes("throttle")){let t=n.indexOf("throttle");n.splice(t,xn((n[t+1]||"invalid-wait").split("ms")[0])?2:1)}if(0===n.length)return!1;if(1===n.length&&En(t.key).includes(n[0]))return!1;const r=["ctrl","shift","alt","meta","cmd","super"].filter((t=>n.includes(t)));if(n=n.filter((t=>!r.includes(t))),r.length>0){if(r.filter((e=>("cmd"!==e&&"super"!==e||(e="meta"),t[`${e}Key`]))).length===r.length&&En(t.key).includes(n[0]))return!1}return!0}(r,n)||t(r)})),i.addEventListener(e,o,a),()=>{i.removeEventListener(e,o,a)}}function xn(t){return!Array.isArray(t)&&!isNaN(t)}function En(t){if(!t)return[];var e;t=[" ","_"].includes(e=t)?e:e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase();let n={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",equal:"=",minus:"-",underscore:"_"};return n[t]=t,Object.keys(n).map((e=>{if(n[e]===t)return e})).filter((t=>t))}function Sn(t){let e=t?parseFloat(t):null;return n=e,Array.isArray(n)||isNaN(n)?t:e;var n}function On(t){return null!==t&&"object"==typeof t&&"function"==typeof t.get&&"function"==typeof t.set}function kn(t,e,n,r){let i={};if(/^\[.*\]$/.test(t.item)&&Array.isArray(e)){t.item.replace("[","").replace("]","").split(",").map((t=>t.trim())).forEach(((t,n)=>{i[t]=e[n]}))}else if(/^\{.*\}$/.test(t.item)&&!Array.isArray(e)&&"object"==typeof e){t.item.replace("{","").replace("}","").split(",").map((t=>t.trim())).forEach((t=>{i[t]=e[t]}))}else i[t.item]=e;return t.index&&(i[t.index]=n),t.collection&&(i[t.collection]=r),i}function Tn(){}function Pn(t,e,n){G(e,(r=>pt(`You can't use [x-${e}] without first installing the "${t}" plugin here: https://alpinejs.dev/plugins/${n}`,r)))}wn.inline=(t,{modifiers:e},{cleanup:n})=>{e.includes("self")?t._x_ignoreSelf=!0:t._x_ignore=!0,n((()=>{e.includes("self")?delete t._x_ignoreSelf:delete t._x_ignore}))},G("ignore",wn),G("effect",((t,{expression:e},{effect:n})=>n(q(t,e)))),G("model",((t,{modifiers:e,expression:n},{effect:r,cleanup:i})=>{let o=t;e.includes("parent")&&(o=t.parentNode);let a,s=q(o,n);a="string"==typeof n?q(o,`${n} = __placeholder`):"function"==typeof n&&"string"==typeof n()?q(o,`${n()} = __placeholder`):()=>{};let u=()=>{let t;return s((e=>t=e)),On(t)?t.get():t},c=t=>{let e;s((t=>e=t)),On(e)?e.set(t):a((()=>{}),{scope:{__placeholder:t}})};"string"==typeof n&&"radio"===t.type&&S((()=>{t.hasAttribute("name")||t.setAttribute("name",n)}));var l="select"===t.tagName.toLowerCase()||["checkbox","radio"].includes(t.type)||e.includes("lazy")?"change":"input";let f=Ft?()=>{}:_n(t,l,e,(n=>{c(function(t,e,n,r){return S((()=>{if(n instanceof CustomEvent&&void 0!==n.detail)return n.detail??n.target.value;if("checkbox"===t.type){if(Array.isArray(r)){let t=e.includes("number")?Sn(n.target.value):n.target.value;return n.target.checked?r.concat([t]):r.filter((e=>!(e==t)))}return n.target.checked}if("select"===t.tagName.toLowerCase()&&t.multiple)return e.includes("number")?Array.from(n.target.selectedOptions).map((t=>Sn(t.value||t.text))):Array.from(n.target.selectedOptions).map((t=>t.value||t.text));{let t=n.target.value;return e.includes("number")?Sn(t):e.includes("trim")?t.trim():t}}))}(t,e,n,u()))}));if(e.includes("fill")&&[null,""].includes(u())&&t.dispatchEvent(new Event(l,{})),t._x_removeModelListeners||(t._x_removeModelListeners={}),t._x_removeModelListeners.default=f,i((()=>t._x_removeModelListeners.default())),t.form){let e=_n(t.form,"reset",[],(e=>{Ct((()=>t._x_model&&t._x_model.set(t.value)))}));i((()=>e()))}t._x_model={get:()=>u(),set(t){c(t)}},t._x_forceModelUpdate=e=>{void 0===(e=void 0===e?u():e)&&"string"==typeof n&&n.match(/\./)&&(e=""),window.fromModel=!0,S((()=>zt(t,"value",e))),delete window.fromModel},r((()=>{let n=u();e.includes("unintrusive")&&document.activeElement.isSameNode(t)||t._x_forceModelUpdate(n)}))})),G("cloak",(t=>queueMicrotask((()=>S((()=>t.removeAttribute(J("cloak")))))))),_t((()=>`[${J("init")}]`)),G("init",Bt(((t,{expression:e},{evaluate:n})=>"string"==typeof e?!!e.trim()&&n(e,{},!1):n(e,{},!1)))),G("text",((t,{expression:e},{effect:n,evaluateLater:r})=>{let i=r(e);n((()=>{i((e=>{S((()=>{t.textContent=e}))}))}))})),G("html",((t,{expression:e},{effect:n,evaluateLater:r})=>{let i=r(e);n((()=>{i((e=>{S((()=>{t.innerHTML=e,t._x_ignoreSelf=!0,Ot(t),delete t._x_ignoreSelf}))}))}))})),at(rt(":",J("bind:"))),G("bind",((t,{value:e,modifiers:n,expression:r,original:i},{effect:o})=>{if(!e){let e={};return function(t){Object.entries(Xt).forEach((([e,n])=>{Object.defineProperty(t,e,{get:()=>(...t)=>n(...t)})}))}(e),void q(t,r)((e=>{Gt(t,e,i)}),{scope:e})}if("key"===e)return function(t,e){t._x_keyExpression=e}(t,r);let a=q(t,r);o((()=>a((i=>{void 0===i&&"string"==typeof r&&r.match(/\./)&&(i=""),S((()=>zt(t,e,i,n)))}))))})),wt((()=>`[${J("data")}]`)),G("data",Bt(((e,{expression:n},{cleanup:r})=>{n=""===n?"{}":n;let i={};I(i,e);let o={};!function(t,e){Object.entries(Zt).forEach((([n,r])=>{Object.defineProperty(t,n,{get:()=>(...t)=>r.bind(e)(...t),enumerable:!1})}))}(o,i);let a=z(e,n,{scope:o});void 0!==a&&!0!==a||(a={}),I(a,e);let s=t(a);N(s);let u=C(e,s);s.init&&z(e,s.init),r((()=>{s.destroy&&z(e,s.destroy),u()}))}))),G("show",((t,{modifiers:e,expression:n},{effect:r})=>{let i=q(t,n);t._x_doHide||(t._x_doHide=()=>{S((()=>{t.style.setProperty("display","none",e.includes("important")?"important":void 0)}))}),t._x_doShow||(t._x_doShow=()=>{S((()=>{1===t.style.length&&"none"===t.style.display?t.removeAttribute("style"):t.style.removeProperty("display")}))});let o,a=()=>{t._x_doHide(),t._x_isShown=!1},s=()=>{t._x_doShow(),t._x_isShown=!0},u=()=>setTimeout(s),c=Rt((t=>t?s():a()),(e=>{"function"==typeof t._x_toggleAndCascadeWithTransitions?t._x_toggleAndCascadeWithTransitions(t,e,s,a):e?u():a()})),l=!0;r((()=>i((t=>{(l||t!==o)&&(e.includes("immediate")&&(t?u():a()),c(t),o=t,l=!1)}))))})),G("for",((e,{expression:n},{effect:r,cleanup:i})=>{let o=function(t){let e=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,n=/^\s*\(|\)\s*$/g,r=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,i=t.match(r);if(!i)return;let o={};o.items=i[2].trim();let a=i[1].replace(n,"").trim(),s=a.match(e);s?(o.item=a.replace(e,"").trim(),o.index=s[1].trim(),s[2]&&(o.collection=s[2].trim())):o.item=a;return o}(n),a=q(e,o.items),s=q(e,e._x_keyExpression||"index");e._x_prevKeys=[],e._x_lookup={},r((()=>function(e,n,r,i){let o=t=>"object"==typeof t&&!Array.isArray(t),a=e;r((r=>{var s;s=r,!Array.isArray(s)&&!isNaN(s)&&r>=0&&(r=Array.from(Array(r).keys(),(t=>t+1))),void 0===r&&(r=[]);let u=e._x_lookup,l=e._x_prevKeys,f=[],h=[];if(o(r))r=Object.entries(r).map((([t,e])=>{let o=kn(n,e,t,r);i((t=>h.push(t)),{scope:{index:t,...o}}),f.push(o)}));else for(let t=0;t<r.length;t++){let e=kn(n,r[t],t,r);i((t=>h.push(t)),{scope:{index:t,...e}}),f.push(e)}let d=[],p=[],v=[],g=[];for(let t=0;t<l.length;t++){let e=l[t];-1===h.indexOf(e)&&v.push(e)}l=l.filter((t=>!v.includes(t)));let y="template";for(let t=0;t<h.length;t++){let e=h[t],n=l.indexOf(e);if(-1===n)l.splice(t,0,e),d.push([y,t]);else if(n!==t){let e=l.splice(t,1)[0],r=l.splice(n-1,1)[0];l.splice(t,0,r),l.splice(n,0,e),p.push([e,r])}else g.push(e);y=e}for(let t=0;t<v.length;t++){let e=v[t];u[e]._x_effects&&u[e]._x_effects.forEach(c),u[e].remove(),u[e]=null,delete u[e]}for(let t=0;t<p.length;t++){let[e,n]=p[t],r=u[e],i=u[n],o=document.createElement("div");S((()=>{i||pt('x-for ":key" is undefined or invalid',a),i.after(o),r.after(i),i._x_currentIfEl&&i.after(i._x_currentIfEl),o.before(r),r._x_currentIfEl&&r.after(r._x_currentIfEl),o.remove()})),i._x_refreshXForScope(f[h.indexOf(n)])}for(let e=0;e<d.length;e++){let[n,r]=d[e],i="template"===n?a:u[n];i._x_currentIfEl&&(i=i._x_currentIfEl);let o=f[r],s=h[r],c=document.importNode(a.content,!0).firstElementChild,l=t(o);C(c,l,a),c._x_refreshXForScope=t=>{Object.entries(t).forEach((([t,e])=>{l[t]=e}))},S((()=>{i.after(c),Ot(c)})),"object"==typeof s&&pt("x-for key cannot be an object, it must be a string or an integer",a),u[s]=c}for(let t=0;t<g.length;t++)u[g[t]]._x_refreshXForScope(f[h.indexOf(g[t])]);a._x_prevKeys=h}))}(e,o,a,s))),i((()=>{Object.values(e._x_lookup).forEach((t=>t.remove())),delete e._x_prevKeys,delete e._x_lookup}))})),Tn.inline=(t,{expression:e},{cleanup:n})=>{let r=xt(t);r._x_refs||(r._x_refs={}),r._x_refs[e]=t,n((()=>delete r._x_refs[e]))},G("ref",Tn),G("if",((t,{expression:e},{effect:n,cleanup:r})=>{let i=q(t,e);n((()=>i((e=>{e?(()=>{if(t._x_currentIfEl)return t._x_currentIfEl;let e=t.content.cloneNode(!0).firstElementChild;C(e,{},t),S((()=>{t.after(e),Ot(e)})),t._x_currentIfEl=e,t._x_undoIf=()=>{dt(e,(t=>{t._x_effects&&t._x_effects.forEach(c)})),e.remove(),delete t._x_currentIfEl}})():t._x_undoIf&&(t._x_undoIf(),delete t._x_undoIf)})))),r((()=>t._x_undoIf&&t._x_undoIf()))})),G("id",((t,{expression:e},{evaluate:n})=>{n(e).forEach((e=>function(t,e){t._x_ids||(t._x_ids={}),t._x_ids[e]||(t._x_ids[e]=yn(e))}(t,e)))})),at(rt("@",J("on:"))),G("on",Bt(((t,{value:e,modifiers:n,expression:r},{cleanup:i})=>{let o=r?q(t,r):()=>{};"template"===t.tagName.toLowerCase()&&(t._x_forwardEvents||(t._x_forwardEvents=[]),t._x_forwardEvents.includes(e)||t._x_forwardEvents.push(e));let a=_n(t,e,n,(t=>{o((()=>{}),{scope:{$event:t},params:[t]})}));i((()=>a()))}))),Pn("Collapse","collapse","collapse"),Pn("Intersect","intersect","intersect"),Pn("Focus","trap","focus"),Pn("Mask","mask","mask"),Qt.setEvaluator(W),Qt.setReactivityEngine({reactive:fn,effect:function(t,e=ee){(function(t){return t&&!0===t._isEffect})(t)&&(t=t.raw);const n=function(t,e){const n=function(){if(!n.active)return t();if(!ye.includes(n)){_e(n);try{return Ee.push(xe),xe=!0,ye.push(n),ne=n,t()}finally{ye.pop(),Se(),ne=ye[ye.length-1]}}};return n.id=we++,n.allowRecurse=!!e.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=t,n.deps=[],n.options=e,n}(t,e);return e.lazy||n(),n},release:function(t){t.active&&(_e(t),t.options.onStop&&t.options.onStop(),t.active=!1)},raw:pn});var Cn=Qt,An="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function jn(t,e){return function(){return t.apply(e,arguments)}}const{toString:Nn}=Object.prototype,{getPrototypeOf:Mn}=Object,Rn=(Dn=Object.create(null),t=>{const e=Nn.call(t);return Dn[e]||(Dn[e]=e.slice(8,-1).toLowerCase())});var Dn;const Ln=t=>(t=t.toLowerCase(),e=>Rn(e)===t),In=t=>e=>typeof e===t,{isArray:Un}=Array,Fn=In("undefined");const Bn=Ln("ArrayBuffer");const zn=In("string"),qn=In("function"),Hn=In("number"),Wn=t=>null!==t&&"object"==typeof t,Yn=t=>{if("object"!==Rn(t))return!1;const e=Mn(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},$n=Ln("Date"),Vn=Ln("File"),Jn=Ln("Blob"),Xn=Ln("FileList"),Gn=Ln("URLSearchParams");function Zn(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,i;if("object"!=typeof t&&(t=[t]),Un(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let a;for(r=0;r<o;r++)a=i[r],e.call(null,t[a],a,t)}}function Kn(t,e){e=e.toLowerCase();const n=Object.keys(t);let r,i=n.length;for(;i-- >0;)if(r=n[i],e===r.toLowerCase())return r;return null}const Qn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:An,tr=t=>!Fn(t)&&t!==Qn;const er=(nr="undefined"!=typeof Uint8Array&&Mn(Uint8Array),t=>nr&&t instanceof nr);var nr;const rr=Ln("HTMLFormElement"),ir=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),or=Ln("RegExp"),ar=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Zn(n,((n,i)=>{!1!==e(n,i,t)&&(r[i]=n)})),Object.defineProperties(t,r)},sr="abcdefghijklmnopqrstuvwxyz",ur="0123456789",cr={DIGIT:ur,ALPHA:sr,ALPHA_DIGIT:sr+sr.toUpperCase()+ur};const lr=Ln("AsyncFunction");var fr={isArray:Un,isArrayBuffer:Bn,isBuffer:function(t){return null!==t&&!Fn(t)&&null!==t.constructor&&!Fn(t.constructor)&&qn(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||qn(t.append)&&("formdata"===(e=Rn(t))||"object"===e&&qn(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&Bn(t.buffer),e},isString:zn,isNumber:Hn,isBoolean:t=>!0===t||!1===t,isObject:Wn,isPlainObject:Yn,isUndefined:Fn,isDate:$n,isFile:Vn,isBlob:Jn,isRegExp:or,isFunction:qn,isStream:t=>Wn(t)&&qn(t.pipe),isURLSearchParams:Gn,isTypedArray:er,isFileList:Xn,forEach:Zn,merge:function t(){const{caseless:e}=tr(this)&&this||{},n={},r=(r,i)=>{const o=e&&Kn(n,i)||i;Yn(n[o])&&Yn(r)?n[o]=t(n[o],r):Yn(r)?n[o]=t({},r):Un(r)?n[o]=r.slice():n[o]=r};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&Zn(arguments[t],r);return n},extend:(t,e,n,{allOwnKeys:r}={})=>(Zn(e,((e,r)=>{n&&qn(e)?t[r]=jn(e,n):t[r]=e}),{allOwnKeys:r}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,r)=>{let i,o,a;const s={};if(e=e||{},null==t)return e;do{for(i=Object.getOwnPropertyNames(t),o=i.length;o-- >0;)a=i[o],r&&!r(a,t,e)||s[a]||(e[a]=t[a],s[a]=!0);t=!1!==n&&Mn(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:Rn,kindOfTest:Ln,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return-1!==r&&r===n},toArray:t=>{if(!t)return null;if(Un(t))return t;let e=t.length;if(!Hn(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=n.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const r=[];for(;null!==(n=t.exec(e));)r.push(n);return r},isHTMLForm:rr,hasOwnProperty:ir,hasOwnProp:ir,reduceDescriptors:ar,freezeMethods:t=>{ar(t,((e,n)=>{if(qn(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=t[n];qn(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(t,e)=>{const n={},r=t=>{t.forEach((t=>{n[t]=!0}))};return Un(t)?r(t):r(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(t,e)=>(t=+t,Number.isFinite(t)?t:e),findKey:Kn,global:Qn,isContextDefined:tr,ALPHABET:cr,generateString:(t=16,e=cr.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n},isSpecCompliantForm:function(t){return!!(t&&qn(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),n=(t,r)=>{if(Wn(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[r]=t;const i=Un(t)?[]:{};return Zn(t,((t,e)=>{const o=n(t,r+1);!Fn(o)&&(i[e]=o)})),e[r]=void 0,i}}return t};return n(t,0)},isAsyncFn:lr,isThenable:t=>t&&(Wn(t)||qn(t))&&qn(t.then)&&qn(t.catch)},hr=[],dr=[],pr="undefined"!=typeof Uint8Array?Uint8Array:Array,vr=!1;function gr(){vr=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0;e<64;++e)hr[e]=t[e],dr[t.charCodeAt(e)]=e;dr["-".charCodeAt(0)]=62,dr["_".charCodeAt(0)]=63}function yr(t,e,n){for(var r,i,o=[],a=e;a<n;a+=3)r=(t[a]<<16)+(t[a+1]<<8)+t[a+2],o.push(hr[(i=r)>>18&63]+hr[i>>12&63]+hr[i>>6&63]+hr[63&i]);return o.join("")}function mr(t){var e;vr||gr();for(var n=t.length,r=n%3,i="",o=[],a=16383,s=0,u=n-r;s<u;s+=a)o.push(yr(t,s,s+a>u?u:s+a));return 1===r?(e=t[n-1],i+=hr[e>>2],i+=hr[e<<4&63],i+="=="):2===r&&(e=(t[n-2]<<8)+t[n-1],i+=hr[e>>10],i+=hr[e>>4&63],i+=hr[e<<2&63],i+="="),o.push(i),o.join("")}function br(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,c=u>>1,l=-7,f=n?i-1:0,h=n?-1:1,d=t[e+f];for(f+=h,o=d&(1<<-l)-1,d>>=-l,l+=s;l>0;o=256*o+t[e+f],f+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+t[e+f],f+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=c}return(d?-1:1)*a*Math.pow(2,o-r)}function wr(t,e,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<<c)-1,f=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,v=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(e*u-1)*Math.pow(2,i),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;t[n+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;t[n+d]=255&a,d+=p,a/=256,c-=8);t[n+d-p]|=128*v}var _r={}.toString,xr=Array.isArray||function(t){return"[object Array]"==_r.call(t)};function Er(){return Or.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Sr(t,e){if(Er()<e)throw new RangeError("Invalid typed array length");return Or.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=Or.prototype:(null===t&&(t=new Or(e)),t.length=e),t}function Or(t,e,n){if(!(Or.TYPED_ARRAY_SUPPORT||this instanceof Or))return new Or(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return Pr(this,t)}return kr(this,t,e,n)}function kr(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r);Or.TYPED_ARRAY_SUPPORT?(t=e).__proto__=Or.prototype:t=Cr(t,e);return t}(t,e,n,r):"string"==typeof e?function(t,e,n){"string"==typeof n&&""!==n||(n="utf8");if(!Or.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|Nr(e,n);t=Sr(t,r);var i=t.write(e,n);i!==r&&(t=t.slice(0,i));return t}(t,e,n):function(t,e){if(jr(e)){var n=0|Ar(e.length);return 0===(t=Sr(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?Sr(t,0):Cr(t,e);if("Buffer"===e.type&&xr(e.data))return Cr(t,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function Tr(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function Pr(t,e){if(Tr(e),t=Sr(t,e<0?0:0|Ar(e)),!Or.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function Cr(t,e){var n=e.length<0?0:0|Ar(e.length);t=Sr(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function Ar(t){if(t>=Er())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Er().toString(16)+" bytes");return 0|t}function jr(t){return!(null==t||!t._isBuffer)}function Nr(t,e){if(jr(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return oi(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return ai(t).length;default:if(r)return oi(t).length;e=(""+e).toLowerCase(),r=!0}}function Mr(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return Jr(this,e,n);case"utf8":case"utf-8":return Wr(this,e,n);case"ascii":return $r(this,e,n);case"latin1":case"binary":return Vr(this,e,n);case"base64":return Hr(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Xr(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function Rr(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function Dr(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=Or.from(e,r)),jr(e))return 0===e.length?-1:Lr(t,e,n,r,i);if("number"==typeof e)return e&=255,Or.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):Lr(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function Lr(t,e,n,r,i){var o,a=1,s=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var l=-1;for(o=n;o<s;o++)if(c(t,o)===c(e,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(n+u>s&&(n=s-u),o=n;o>=0;o--){for(var f=!0,h=0;h<u;h++)if(c(t,o+h)!==c(e,h)){f=!1;break}if(f)return o}return-1}function Ir(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function Ur(t,e,n,r){return si(oi(e,t.length-n),t,n,r)}function Fr(t,e,n,r){return si(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function Br(t,e,n,r){return Fr(t,e,n,r)}function zr(t,e,n,r){return si(ai(e),t,n,r)}function qr(t,e,n,r){return si(function(t,e){for(var n,r,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)r=(n=t.charCodeAt(a))>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function Hr(t,e,n){return 0===e&&n===t.length?mr(t):mr(t.slice(e,n))}function Wr(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o,a,s,u,c=t[i],l=null,f=c>239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return function(t){var e=t.length;if(e<=Yr)return String.fromCharCode.apply(String,t);var n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=Yr));return n}(r)}Or.TYPED_ARRAY_SUPPORT=void 0===An.TYPED_ARRAY_SUPPORT||An.TYPED_ARRAY_SUPPORT,Er(),Or.poolSize=8192,Or._augment=function(t){return t.__proto__=Or.prototype,t},Or.from=function(t,e,n){return kr(null,t,e,n)},Or.TYPED_ARRAY_SUPPORT&&(Or.prototype.__proto__=Uint8Array.prototype,Or.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Or[Symbol.species]),Or.alloc=function(t,e,n){return function(t,e,n,r){return Tr(e),e<=0?Sr(t,e):void 0!==n?"string"==typeof r?Sr(t,e).fill(n,r):Sr(t,e).fill(n):Sr(t,e)}(null,t,e,n)},Or.allocUnsafe=function(t){return Pr(null,t)},Or.allocUnsafeSlow=function(t){return Pr(null,t)},Or.isBuffer=function(t){return null!=t&&(!!t._isBuffer||ui(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&ui(t.slice(0,0))}(t))},Or.compare=function(t,e){if(!jr(t)||!jr(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},Or.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Or.concat=function(t,e){if(!xr(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return Or.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=Or.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var o=t[n];if(!jr(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},Or.byteLength=Nr,Or.prototype._isBuffer=!0,Or.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)Rr(this,e,e+1);return this},Or.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)Rr(this,e,e+3),Rr(this,e+1,e+2);return this},Or.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)Rr(this,e,e+7),Rr(this,e+1,e+6),Rr(this,e+2,e+5),Rr(this,e+3,e+4);return this},Or.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?Wr(this,0,t):Mr.apply(this,arguments)},Or.prototype.equals=function(t){if(!jr(t))throw new TypeError("Argument must be a Buffer");return this===t||0===Or.compare(this,t)},Or.prototype.inspect=function(){var t="";return this.length>0&&(t=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(t+=" ... ")),"<Buffer "+t+">"},Or.prototype.compare=function(t,e,n,r,i){if(!jr(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),u=this.slice(r,i),c=t.slice(e,n),l=0;l<s;++l)if(u[l]!==c[l]){o=u[l],a=c[l];break}return o<a?-1:a<o?1:0},Or.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},Or.prototype.indexOf=function(t,e,n){return Dr(this,t,e,n,!0)},Or.prototype.lastIndexOf=function(t,e,n){return Dr(this,t,e,n,!1)},Or.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return Ir(this,t,e,n);case"utf8":case"utf-8":return Ur(this,t,e,n);case"ascii":return Fr(this,t,e,n);case"latin1":case"binary":return Br(this,t,e,n);case"base64":return zr(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return qr(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},Or.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Yr=4096;function $r(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function Vr(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function Jr(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=ii(t[o]);return i}function Xr(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function Gr(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function Zr(t,e,n,r,i,o){if(!jr(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function Kr(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function Qr(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function ti(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function ei(t,e,n,r,i){return i||ti(t,0,n,4),wr(t,e,n,r,23,4),n+4}function ni(t,e,n,r,i){return i||ti(t,0,n,8),wr(t,e,n,r,52,8),n+8}Or.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),Or.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=Or.prototype;else{var i=e-t;n=new Or(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},Or.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||Gr(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},Or.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||Gr(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},Or.prototype.readUInt8=function(t,e){return e||Gr(t,1,this.length),this[t]},Or.prototype.readUInt16LE=function(t,e){return e||Gr(t,2,this.length),this[t]|this[t+1]<<8},Or.prototype.readUInt16BE=function(t,e){return e||Gr(t,2,this.length),this[t]<<8|this[t+1]},Or.prototype.readUInt32LE=function(t,e){return e||Gr(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},Or.prototype.readUInt32BE=function(t,e){return e||Gr(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},Or.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||Gr(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*e)),r},Or.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||Gr(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},Or.prototype.readInt8=function(t,e){return e||Gr(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},Or.prototype.readInt16LE=function(t,e){e||Gr(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},Or.prototype.readInt16BE=function(t,e){e||Gr(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},Or.prototype.readInt32LE=function(t,e){return e||Gr(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},Or.prototype.readInt32BE=function(t,e){return e||Gr(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},Or.prototype.readFloatLE=function(t,e){return e||Gr(t,4,this.length),br(this,t,!0,23,4)},Or.prototype.readFloatBE=function(t,e){return e||Gr(t,4,this.length),br(this,t,!1,23,4)},Or.prototype.readDoubleLE=function(t,e){return e||Gr(t,8,this.length),br(this,t,!0,52,8)},Or.prototype.readDoubleBE=function(t,e){return e||Gr(t,8,this.length),br(this,t,!1,52,8)},Or.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||Zr(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},Or.prototype.writeUIntBE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||Zr(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},Or.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||Zr(this,t,e,1,255,0),Or.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},Or.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||Zr(this,t,e,2,65535,0),Or.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Kr(this,t,e,!0),e+2},Or.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||Zr(this,t,e,2,65535,0),Or.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Kr(this,t,e,!1),e+2},Or.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||Zr(this,t,e,4,4294967295,0),Or.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):Qr(this,t,e,!0),e+4},Or.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||Zr(this,t,e,4,4294967295,0),Or.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Qr(this,t,e,!1),e+4},Or.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);Zr(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<n&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},Or.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);Zr(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},Or.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||Zr(this,t,e,1,127,-128),Or.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},Or.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||Zr(this,t,e,2,32767,-32768),Or.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Kr(this,t,e,!0),e+2},Or.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||Zr(this,t,e,2,32767,-32768),Or.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Kr(this,t,e,!1),e+2},Or.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||Zr(this,t,e,4,2147483647,-2147483648),Or.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):Qr(this,t,e,!0),e+4},Or.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||Zr(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),Or.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Qr(this,t,e,!1),e+4},Or.prototype.writeFloatLE=function(t,e,n){return ei(this,t,e,!0,n)},Or.prototype.writeFloatBE=function(t,e,n){return ei(this,t,e,!1,n)},Or.prototype.writeDoubleLE=function(t,e,n){return ni(this,t,e,!0,n)},Or.prototype.writeDoubleBE=function(t,e,n){return ni(this,t,e,!1,n)},Or.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!Or.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},Or.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!Or.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{var a=jr(t)?t:oi(new Or(t,r).toString()),s=a.length;for(o=0;o<n-e;++o)this[o+e]=a[o%s]}return this};var ri=/[^+\/0-9A-Za-z-_]/g;function ii(t){return t<16?"0"+t.toString(16):t.toString(16)}function oi(t,e){var n;e=e||1/0;for(var r=t.length,i=null,o=[],a=0;a<r;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function ai(t){return function(t){var e,n,r,i,o,a;vr||gr();var s=t.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===t[s-2]?2:"="===t[s-1]?1:0,a=new pr(3*s/4-o),r=o>0?s-4:s;var u=0;for(e=0,n=0;e<r;e+=4,n+=3)i=dr[t.charCodeAt(e)]<<18|dr[t.charCodeAt(e+1)]<<12|dr[t.charCodeAt(e+2)]<<6|dr[t.charCodeAt(e+3)],a[u++]=i>>16&255,a[u++]=i>>8&255,a[u++]=255&i;return 2===o?(i=dr[t.charCodeAt(e)]<<2|dr[t.charCodeAt(e+1)]>>4,a[u++]=255&i):1===o&&(i=dr[t.charCodeAt(e)]<<10|dr[t.charCodeAt(e+1)]<<4|dr[t.charCodeAt(e+2)]>>2,a[u++]=i>>8&255,a[u++]=255&i),a}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(ri,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function si(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function ui(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function ci(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}fr.inherits(ci,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:fr.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const li=ci.prototype,fi={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{fi[t]={value:t}})),Object.defineProperties(ci,fi),Object.defineProperty(li,"isAxiosError",{value:!0}),ci.from=(t,e,n,r,i,o)=>{const a=Object.create(li);return fr.toFlatObject(t,a,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),ci.call(a,t.message,e,n,r,i),a.cause=t,a.name=t.name,o&&Object.assign(a,o),a};function hi(t){return fr.isPlainObject(t)||fr.isArray(t)}function di(t){return fr.endsWith(t,"[]")?t.slice(0,-2):t}function pi(t,e,n){return t?t.concat(e).map((function(t,e){return t=di(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}const vi=fr.toFlatObject(fr,{},null,(function(t){return/^is[A-Z]/.test(t)}));function gi(t,e,n){if(!fr.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const r=(n=fr.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!fr.isUndefined(e[t])}))).metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&fr.isSpecCompliantForm(e);if(!fr.isFunction(i))throw new TypeError("visitor must be a function");function u(t){if(null===t)return"";if(fr.isDate(t))return t.toISOString();if(!s&&fr.isBlob(t))throw new ci("Blob is not supported. Use a Buffer instead.");return fr.isArrayBuffer(t)||fr.isTypedArray(t)?s&&"function"==typeof Blob?new Blob([t]):Or.from(t):t}function c(t,n,i){let s=t;if(t&&!i&&"object"==typeof t)if(fr.endsWith(n,"{}"))n=r?n:n.slice(0,-2),t=JSON.stringify(t);else if(fr.isArray(t)&&function(t){return fr.isArray(t)&&!t.some(hi)}(t)||(fr.isFileList(t)||fr.endsWith(n,"[]"))&&(s=fr.toArray(t)))return n=di(n),s.forEach((function(t,r){!fr.isUndefined(t)&&null!==t&&e.append(!0===a?pi([n],r,o):null===a?n:n+"[]",u(t))})),!1;return!!hi(t)||(e.append(pi(i,n,o),u(t)),!1)}const l=[],f=Object.assign(vi,{defaultVisitor:c,convertValue:u,isVisitable:hi});if(!fr.isObject(t))throw new TypeError("data must be an object");return function t(n,r){if(!fr.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),fr.forEach(n,(function(n,o){!0===(!(fr.isUndefined(n)||null===n)&&i.call(e,n,fr.isString(o)?o.trim():o,r,f))&&t(n,r?r.concat(o):[o])})),l.pop()}}(t),e}function yi(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function mi(t,e){this._pairs=[],t&&gi(t,this,e)}const bi=mi.prototype;function wi(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function _i(t,e,n){if(!e)return t;const r=n&&n.encode||wi,i=n&&n.serialize;let o;if(o=i?i(e,n):fr.isURLSearchParams(e)?e.toString():new mi(e,n).toString(r),o){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}bi.append=function(t,e){this._pairs.push([t,e])},bi.toString=function(t){const e=t?function(e){return t.call(this,e,yi)}:yi;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};var xi=class{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){fr.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},Ei={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var Si={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:mi,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:(()=>{let t;return("undefined"==typeof navigator||"ReactNative"!==(t=navigator.product)&&"NativeScript"!==t&&"NS"!==t)&&("undefined"!=typeof window&&"undefined"!=typeof document)})(),isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]};function Oi(t){function e(t,n,r,i){let o=t[i++];const a=Number.isFinite(+o),s=i>=t.length;if(o=!o&&fr.isArray(r)?r.length:o,s)return fr.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a;r[o]&&fr.isObject(r[o])||(r[o]=[]);return e(t,n,r[o],i)&&fr.isArray(r[o])&&(r[o]=function(t){const e={},n=Object.keys(t);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],e[o]=t[o];return e}(r[o])),!a}if(fr.isFormData(t)&&fr.isFunction(t.entries)){const n={};return fr.forEachEntry(t,((t,r)=>{e(function(t){return fr.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),r,n,0)})),n}return null}const ki={"Content-Type":void 0};const Ti={transitional:Ei,adapter:["xhr","http"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,i=fr.isObject(t);i&&fr.isHTMLForm(t)&&(t=new FormData(t));if(fr.isFormData(t))return r&&r?JSON.stringify(Oi(t)):t;if(fr.isArrayBuffer(t)||fr.isBuffer(t)||fr.isStream(t)||fr.isFile(t)||fr.isBlob(t))return t;if(fr.isArrayBufferView(t))return t.buffer;if(fr.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return gi(t,new Si.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,r){return Si.isNode&&fr.isBuffer(t)?(this.append(e,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((o=fr.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return gi(o?{"files[]":t}:t,e&&new e,this.formSerializer)}}return i||r?(e.setContentType("application/json",!1),function(t,e,n){if(fr.isString(t))try{return(e||JSON.parse)(t),fr.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||Ti.transitional,n=e&&e.forcedJSONParsing,r="json"===this.responseType;if(t&&fr.isString(t)&&(n&&!this.responseType||r)){const n=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(t){if(n){if("SyntaxError"===t.name)throw ci.from(t,ci.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Si.classes.FormData,Blob:Si.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};fr.forEach(["delete","get","head"],(function(t){Ti.headers[t]={}})),fr.forEach(["post","put","patch"],(function(t){Ti.headers[t]=fr.merge(ki)}));var Pi=Ti;const Ci=fr.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const Ai=Symbol("internals");function ji(t){return t&&String(t).trim().toLowerCase()}function Ni(t){return!1===t||null==t?t:fr.isArray(t)?t.map(Ni):String(t)}function Mi(t,e,n,r,i){return fr.isFunction(r)?r.call(this,e,n):(i&&(e=n),fr.isString(e)?fr.isString(r)?-1!==e.indexOf(r):fr.isRegExp(r)?r.test(e):void 0:void 0)}class Ri{constructor(t){t&&this.set(t)}set(t,e,n){const r=this;function i(t,e,n){const i=ji(e);if(!i)throw new Error("header name must be a non-empty string");const o=fr.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||e]=Ni(t))}const o=(t,e)=>fr.forEach(t,((t,n)=>i(t,n,e)));return fr.isPlainObject(t)||t instanceof this.constructor?o(t,e):fr.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim())?o((t=>{const e={};let n,r,i;return t&&t.split("\n").forEach((function(t){i=t.indexOf(":"),n=t.substring(0,i).trim().toLowerCase(),r=t.substring(i+1).trim(),!n||e[n]&&Ci[n]||("set-cookie"===n?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)})),e})(t),e):null!=t&&i(e,t,n),this}get(t,e){if(t=ji(t)){const n=fr.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}(t);if(fr.isFunction(e))return e.call(this,t,n);if(fr.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=ji(t)){const n=fr.findKey(this,t);return!(!n||void 0===this[n]||e&&!Mi(0,this[n],n,e))}return!1}delete(t,e){const n=this;let r=!1;function i(t){if(t=ji(t)){const i=fr.findKey(n,t);!i||e&&!Mi(0,n[i],i,e)||(delete n[i],r=!0)}}return fr.isArray(t)?t.forEach(i):i(t),r}clear(t){const e=Object.keys(this);let n=e.length,r=!1;for(;n--;){const i=e[n];t&&!Mi(0,this[i],i,t,!0)||(delete this[i],r=!0)}return r}normalize(t){const e=this,n={};return fr.forEach(this,((r,i)=>{const o=fr.findKey(n,i);if(o)return e[o]=Ni(r),void delete e[i];const a=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,n)=>e.toUpperCase()+n))}(i):String(i).trim();a!==i&&delete e[i],e[a]=Ni(r),n[a]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return fr.forEach(this,((n,r)=>{null!=n&&!1!==n&&(e[r]=t&&fr.isArray(n)?n.join(", "):n)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach((t=>n.set(t))),n}static accessor(t){const e=(this[Ai]=this[Ai]={accessors:{}}).accessors,n=this.prototype;function r(t){const r=ji(t);e[r]||(!function(t,e){const n=fr.toCamelCase(" "+e);["get","set","has"].forEach((r=>{Object.defineProperty(t,r+n,{value:function(t,n,i){return this[r].call(this,e,t,n,i)},configurable:!0})}))}(n,t),e[r]=!0)}return fr.isArray(t)?t.forEach(r):r(t),this}}Ri.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),fr.freezeMethods(Ri.prototype),fr.freezeMethods(Ri);var Di=Ri;function Li(t,e){const n=this||Pi,r=e||n,i=Di.from(r.headers);let o=r.data;return fr.forEach(t,(function(t){o=t.call(n,o,i.normalize(),e?e.status:void 0)})),i.normalize(),o}function Ii(t){return!(!t||!t.__CANCEL__)}function Ui(t,e,n){ci.call(this,null==t?"canceled":t,ci.ERR_CANCELED,e,n),this.name="CanceledError"}fr.inherits(Ui,ci,{__CANCEL__:!0});var Fi=Si.isStandardBrowserEnv?{write:function(t,e,n,r,i,o){const a=[];a.push(t+"="+encodeURIComponent(e)),fr.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),fr.isString(r)&&a.push("path="+r),fr.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Bi(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}var zi=Si.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let n;function r(n){let r=n;return t&&(e.setAttribute("href",r),r=e.href),e.setAttribute("href",r),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return n=r(window.location.href),function(t){const e=fr.isString(t)?r(t):t;return e.protocol===n.protocol&&e.host===n.host}}():function(){return!0};function qi(t,e){let n=0;const r=function(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i,o=0,a=0;return e=void 0!==e?e:1e3,function(s){const u=Date.now(),c=r[a];i||(i=u),n[o]=s,r[o]=u;let l=a,f=0;for(;l!==o;)f+=n[l++],l%=t;if(o=(o+1)%t,o===a&&(a=(a+1)%t),u-i<e)return;const h=c&&u-c;return h?Math.round(1e3*f/h):void 0}}(50,250);return i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-n,u=r(s);n=o;const c={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:u||void 0,estimated:u&&a&&o<=a?(a-o)/u:void 0,event:i};c[e?"download":"upload"]=!0,t(c)}}var Hi="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,n){let r=t.data;const i=Di.from(t.headers).normalize(),o=t.responseType;let a;function s(){t.cancelToken&&t.cancelToken.unsubscribe(a),t.signal&&t.signal.removeEventListener("abort",a)}fr.isFormData(r)&&(Si.isStandardBrowserEnv||Si.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",n=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(e+":"+n))}const c=Bi(t.baseURL,t.url);function l(){if(!u)return;const r=Di.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(t,e,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(new ci("Request failed with status code "+n.status,[ci.ERR_BAD_REQUEST,ci.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}((function(t){e(t),s()}),(function(t){n(t),s()}),{data:o&&"text"!==o&&"json"!==o?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:t,request:u}),u=null}if(u.open(t.method.toUpperCase(),_i(c,t.params,t.paramsSerializer),!0),u.timeout=t.timeout,"onloadend"in u?u.onloadend=l:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(l)},u.onabort=function(){u&&(n(new ci("Request aborted",ci.ECONNABORTED,t,u)),u=null)},u.onerror=function(){n(new ci("Network Error",ci.ERR_NETWORK,t,u)),u=null},u.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const r=t.transitional||Ei;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(new ci(e,r.clarifyTimeoutError?ci.ETIMEDOUT:ci.ECONNABORTED,t,u)),u=null},Si.isStandardBrowserEnv){const e=(t.withCredentials||zi(c))&&t.xsrfCookieName&&Fi.read(t.xsrfCookieName);e&&i.set(t.xsrfHeaderName,e)}void 0===r&&i.setContentType(null),"setRequestHeader"in u&&fr.forEach(i.toJSON(),(function(t,e){u.setRequestHeader(e,t)})),fr.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),o&&"json"!==o&&(u.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&u.addEventListener("progress",qi(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",qi(t.onUploadProgress)),(t.cancelToken||t.signal)&&(a=e=>{u&&(n(!e||e.type?new Ui(null,t,u):e),u.abort(),u=null)},t.cancelToken&&t.cancelToken.subscribe(a),t.signal&&(t.signal.aborted?a():t.signal.addEventListener("abort",a)));const f=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(c);f&&-1===Si.protocols.indexOf(f)?n(new ci("Unsupported protocol "+f+":",ci.ERR_BAD_REQUEST,t)):u.send(r||null)}))};const Wi={http:null,xhr:Hi};fr.forEach(Wi,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));var Yi=t=>{t=fr.isArray(t)?t:[t];const{length:e}=t;let n,r;for(let i=0;i<e&&(n=t[i],!(r=fr.isString(n)?Wi[n.toLowerCase()]:n));i++);if(!r){if(!1===r)throw new ci(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT");throw new Error(fr.hasOwnProp(Wi,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`)}if(!fr.isFunction(r))throw new TypeError("adapter is not a function");return r};function $i(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Ui(null,t)}function Vi(t){$i(t),t.headers=Di.from(t.headers),t.data=Li.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return Yi(t.adapter||Pi.adapter)(t).then((function(e){return $i(t),e.data=Li.call(t,t.transformResponse,e),e.headers=Di.from(e.headers),e}),(function(e){return Ii(e)||($i(t),e&&e.response&&(e.response.data=Li.call(t,t.transformResponse,e.response),e.response.headers=Di.from(e.response.headers))),Promise.reject(e)}))}const Ji=t=>t instanceof Di?t.toJSON():t;function Xi(t,e){e=e||{};const n={};function r(t,e,n){return fr.isPlainObject(t)&&fr.isPlainObject(e)?fr.merge.call({caseless:n},t,e):fr.isPlainObject(e)?fr.merge({},e):fr.isArray(e)?e.slice():e}function i(t,e,n){return fr.isUndefined(e)?fr.isUndefined(t)?void 0:r(void 0,t,n):r(t,e,n)}function o(t,e){if(!fr.isUndefined(e))return r(void 0,e)}function a(t,e){return fr.isUndefined(e)?fr.isUndefined(t)?void 0:r(void 0,t):r(void 0,e)}function s(n,i,o){return o in e?r(n,i):o in t?r(void 0,n):void 0}const u={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(t,e)=>i(Ji(t),Ji(e),!0)};return fr.forEach(Object.keys(Object.assign({},t,e)),(function(r){const o=u[r]||i,a=o(t[r],e[r],r);fr.isUndefined(a)&&o!==s||(n[r]=a)})),n}const Gi="1.4.0",Zi={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{Zi[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const Ki={};Zi.transitional=function(t,e,n){function r(t,e){return"[Axios v1.4.0] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,i,o)=>{if(!1===t)throw new ci(r(i," has been removed"+(e?" in "+e:"")),ci.ERR_DEPRECATED);return e&&!Ki[i]&&(Ki[i]=!0,console.warn(r(i," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,i,o)}};var Qi={assertOptions:function(t,e,n){if("object"!=typeof t)throw new ci("options must be an object",ci.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const o=r[i],a=e[o];if(a){const e=t[o],n=void 0===e||a(e,o,t);if(!0!==n)throw new ci("option "+o+" must be "+n,ci.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new ci("Unknown option "+o,ci.ERR_BAD_OPTION)}},validators:Zi};const to=Qi.validators;class eo{constructor(t){this.defaults=t,this.interceptors={request:new xi,response:new xi}}request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=Xi(this.defaults,e);const{transitional:n,paramsSerializer:r,headers:i}=e;let o;void 0!==n&&Qi.assertOptions(n,{silentJSONParsing:to.transitional(to.boolean),forcedJSONParsing:to.transitional(to.boolean),clarifyTimeoutError:to.transitional(to.boolean)},!1),null!=r&&(fr.isFunction(r)?e.paramsSerializer={serialize:r}:Qi.assertOptions(r,{encode:to.function,serialize:to.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase(),o=i&&fr.merge(i.common,i[e.method]),o&&fr.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete i[t]})),e.headers=Di.concat(o,i);const a=[];let s=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(s=s&&t.synchronous,a.unshift(t.fulfilled,t.rejected))}));const u=[];let c;this.interceptors.response.forEach((function(t){u.push(t.fulfilled,t.rejected)}));let l,f=0;if(!s){const t=[Vi.bind(this),void 0];for(t.unshift.apply(t,a),t.push.apply(t,u),l=t.length,c=Promise.resolve(e);f<l;)c=c.then(t[f++],t[f++]);return c}l=a.length;let h=e;for(f=0;f<l;){const t=a[f++],e=a[f++];try{h=t(h)}catch(t){e.call(this,t);break}}try{c=Vi.call(this,h)}catch(t){return Promise.reject(t)}for(f=0,l=u.length;f<l;)c=c.then(u[f++],u[f++]);return c}getUri(t){return _i(Bi((t=Xi(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}fr.forEach(["delete","get","head","options"],(function(t){eo.prototype[t]=function(e,n){return this.request(Xi(n||{},{method:t,url:e,data:(n||{}).data}))}})),fr.forEach(["post","put","patch"],(function(t){function e(e){return function(n,r,i){return this.request(Xi(i||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}eo.prototype[t]=e(),eo.prototype[t+"Form"]=e(!0)}));var no=eo;class ro{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const n=this;this.promise.then((t=>{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null})),this.promise.then=t=>{let e;const r=new Promise((t=>{n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t,r,i){n.reason||(n.reason=new Ui(t,r,i),e(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;return{token:new ro((function(e){t=e})),cancel:t}}}var oo=ro;const ao={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ao).forEach((([t,e])=>{ao[e]=t}));var so=ao;const uo=function t(e){const n=new no(e),r=jn(no.prototype.request,n);return fr.extend(r,no.prototype,n,{allOwnKeys:!0}),fr.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return t(Xi(e,n))},r}(Pi);uo.Axios=no,uo.CanceledError=Ui,uo.CancelToken=oo,uo.isCancel=Ii,uo.VERSION=Gi,uo.toFormData=gi,uo.AxiosError=ci,uo.Cancel=uo.CanceledError,uo.all=function(t){return Promise.all(t)},uo.spread=function(t){return function(e){return t.apply(null,e)}},uo.isAxiosError=function(t){return fr.isObject(t)&&!0===t.isAxiosError},uo.mergeConfig=Xi,uo.AxiosHeaders=Di,uo.formToJSON=t=>Oi(fr.isHTMLForm(t)?new FormData(t):t),uo.HttpStatusCode=so,uo.default=uo;var co=uo;function lo(t){return lo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lo(t)}function fo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ho(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function po(t,e,n){return e&&ho(t.prototype,e),n&&ho(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function vo(){return vo=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},vo.apply(this,arguments)}function go(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&mo(t,e)}function yo(t){return yo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},yo(t)}function mo(t,e){return mo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},mo(t,e)}function bo(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function wo(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=yo(t);if(e){var i=yo(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return bo(this,n)}}var _o=function(){function t(){fo(this,t)}return po(t,[{key:"listenForWhisper",value:function(t,e){return this.listen(".client-"+t,e)}},{key:"notification",value:function(t){return this.listen(".Illuminate\\Notifications\\Events\\BroadcastNotificationCreated",t)}},{key:"stopListeningForWhisper",value:function(t,e){return this.stopListening(".client-"+t,e)}}]),t}(),xo=function(){function t(e){fo(this,t),this.setNamespace(e)}return po(t,[{key:"format",value:function(t){return"."===t.charAt(0)||"\\"===t.charAt(0)?t.substr(1):(this.namespace&&(t=this.namespace+"."+t),t.replace(/\./g,"\\"))}},{key:"setNamespace",value:function(t){this.namespace=t}}]),t}(),Eo=function(t){go(n,t);var e=wo(n);function n(t,r,i){var o;return fo(this,n),(o=e.call(this)).name=r,o.pusher=t,o.options=i,o.eventFormatter=new xo(o.options.namespace),o.subscribe(),o}return po(n,[{key:"subscribe",value:function(){this.subscription=this.pusher.subscribe(this.name)}},{key:"unsubscribe",value:function(){this.pusher.unsubscribe(this.name)}},{key:"listen",value:function(t,e){return this.on(this.eventFormatter.format(t),e),this}},{key:"listenToAll",value:function(t){var e=this;return this.subscription.bind_global((function(n,r){if(!n.startsWith("pusher:")){var i=e.options.namespace.replace(/\./g,"\\"),o=n.startsWith(i)?n.substring(i.length+1):"."+n;t(o,r)}})),this}},{key:"stopListening",value:function(t,e){return e?this.subscription.unbind(this.eventFormatter.format(t),e):this.subscription.unbind(this.eventFormatter.format(t)),this}},{key:"stopListeningToAll",value:function(t){return t?this.subscription.unbind_global(t):this.subscription.unbind_global(),this}},{key:"subscribed",value:function(t){return this.on("pusher:subscription_succeeded",(function(){t()})),this}},{key:"error",value:function(t){return this.on("pusher:subscription_error",(function(e){t(e)})),this}},{key:"on",value:function(t,e){return this.subscription.bind(t,e),this}}]),n}(_o),So=function(t){go(n,t);var e=wo(n);function n(){return fo(this,n),e.apply(this,arguments)}return po(n,[{key:"whisper",value:function(t,e){return this.pusher.channels.channels[this.name].trigger("client-".concat(t),e),this}}]),n}(Eo),Oo=function(t){go(n,t);var e=wo(n);function n(){return fo(this,n),e.apply(this,arguments)}return po(n,[{key:"whisper",value:function(t,e){return this.pusher.channels.channels[this.name].trigger("client-".concat(t),e),this}}]),n}(Eo),ko=function(t){go(n,t);var e=wo(n);function n(){return fo(this,n),e.apply(this,arguments)}return po(n,[{key:"here",value:function(t){return this.on("pusher:subscription_succeeded",(function(e){t(Object.keys(e.members).map((function(t){return e.members[t]})))})),this}},{key:"joining",value:function(t){return this.on("pusher:member_added",(function(e){t(e.info)})),this}},{key:"whisper",value:function(t,e){return this.pusher.channels.channels[this.name].trigger("client-".concat(t),e),this}},{key:"leaving",value:function(t){return this.on("pusher:member_removed",(function(e){t(e.info)})),this}}]),n}(Eo),To=function(t){go(n,t);var e=wo(n);function n(t,r,i){var o;return fo(this,n),(o=e.call(this)).events={},o.listeners={},o.name=r,o.socket=t,o.options=i,o.eventFormatter=new xo(o.options.namespace),o.subscribe(),o}return po(n,[{key:"subscribe",value:function(){this.socket.emit("subscribe",{channel:this.name,auth:this.options.auth||{}})}},{key:"unsubscribe",value:function(){this.unbind(),this.socket.emit("unsubscribe",{channel:this.name,auth:this.options.auth||{}})}},{key:"listen",value:function(t,e){return this.on(this.eventFormatter.format(t),e),this}},{key:"stopListening",value:function(t,e){return this.unbindEvent(this.eventFormatter.format(t),e),this}},{key:"subscribed",value:function(t){return this.on("connect",(function(e){t(e)})),this}},{key:"error",value:function(t){return this}},{key:"on",value:function(t,e){var n=this;return this.listeners[t]=this.listeners[t]||[],this.events[t]||(this.events[t]=function(e,r){n.name===e&&n.listeners[t]&&n.listeners[t].forEach((function(t){return t(r)}))},this.socket.on(t,this.events[t])),this.listeners[t].push(e),this}},{key:"unbind",value:function(){var t=this;Object.keys(this.events).forEach((function(e){t.unbindEvent(e)}))}},{key:"unbindEvent",value:function(t,e){this.listeners[t]=this.listeners[t]||[],e&&(this.listeners[t]=this.listeners[t].filter((function(t){return t!==e}))),e&&0!==this.listeners[t].length||(this.events[t]&&(this.socket.removeListener(t,this.events[t]),delete this.events[t]),delete this.listeners[t])}}]),n}(_o),Po=function(t){go(n,t);var e=wo(n);function n(){return fo(this,n),e.apply(this,arguments)}return po(n,[{key:"whisper",value:function(t,e){return this.socket.emit("client event",{channel:this.name,event:"client-".concat(t),data:e}),this}}]),n}(To),Co=function(t){go(n,t);var e=wo(n);function n(){return fo(this,n),e.apply(this,arguments)}return po(n,[{key:"here",value:function(t){return this.on("presence:subscribed",(function(e){t(e.map((function(t){return t.user_info})))})),this}},{key:"joining",value:function(t){return this.on("presence:joining",(function(e){return t(e.user_info)})),this}},{key:"whisper",value:function(t,e){return this.socket.emit("client event",{channel:this.name,event:"client-".concat(t),data:e}),this}},{key:"leaving",value:function(t){return this.on("presence:leaving",(function(e){return t(e.user_info)})),this}}]),n}(Po),Ao=function(t){go(n,t);var e=wo(n);function n(){return fo(this,n),e.apply(this,arguments)}return po(n,[{key:"subscribe",value:function(){}},{key:"unsubscribe",value:function(){}},{key:"listen",value:function(t,e){return this}},{key:"listenToAll",value:function(t){return this}},{key:"stopListening",value:function(t,e){return this}},{key:"subscribed",value:function(t){return this}},{key:"error",value:function(t){return this}},{key:"on",value:function(t,e){return this}}]),n}(_o),jo=function(t){go(n,t);var e=wo(n);function n(){return fo(this,n),e.apply(this,arguments)}return po(n,[{key:"whisper",value:function(t,e){return this}}]),n}(Ao),No=function(t){go(n,t);var e=wo(n);function n(){return fo(this,n),e.apply(this,arguments)}return po(n,[{key:"here",value:function(t){return this}},{key:"joining",value:function(t){return this}},{key:"whisper",value:function(t,e){return this}},{key:"leaving",value:function(t){return this}}]),n}(Ao),Mo=function(){function t(e){fo(this,t),this._defaultOptions={auth:{headers:{}},authEndpoint:"/broadcasting/auth",userAuthentication:{endpoint:"/broadcasting/user-auth",headers:{}},broadcaster:"pusher",csrfToken:null,bearerToken:null,host:null,key:null,namespace:"App.Events"},this.setOptions(e),this.connect()}return po(t,[{key:"setOptions",value:function(t){this.options=vo(this._defaultOptions,t);var e=this.csrfToken();return e&&(this.options.auth.headers["X-CSRF-TOKEN"]=e,this.options.userAuthentication.headers["X-CSRF-TOKEN"]=e),(e=this.options.bearerToken)&&(this.options.auth.headers.Authorization="Bearer "+e,this.options.userAuthentication.headers.Authorization="Bearer "+e),t}},{key:"csrfToken",value:function(){var t;return"undefined"!=typeof window&&window.Laravel&&window.Laravel.csrfToken?window.Laravel.csrfToken:this.options.csrfToken?this.options.csrfToken:"undefined"!=typeof document&&"function"==typeof document.querySelector&&(t=document.querySelector('meta[name="csrf-token"]'))?t.getAttribute("content"):null}}]),t}(),Ro=function(t){go(n,t);var e=wo(n);function n(){var t;return fo(this,n),(t=e.apply(this,arguments)).channels={},t}return po(n,[{key:"connect",value:function(){void 0!==this.options.client?this.pusher=this.options.client:this.options.Pusher?this.pusher=new this.options.Pusher(this.options.key,this.options):this.pusher=new Pusher(this.options.key,this.options)}},{key:"signin",value:function(){this.pusher.signin()}},{key:"listen",value:function(t,e,n){return this.channel(t).listen(e,n)}},{key:"channel",value:function(t){return this.channels[t]||(this.channels[t]=new Eo(this.pusher,t,this.options)),this.channels[t]}},{key:"privateChannel",value:function(t){return this.channels["private-"+t]||(this.channels["private-"+t]=new So(this.pusher,"private-"+t,this.options)),this.channels["private-"+t]}},{key:"encryptedPrivateChannel",value:function(t){return this.channels["private-encrypted-"+t]||(this.channels["private-encrypted-"+t]=new Oo(this.pusher,"private-encrypted-"+t,this.options)),this.channels["private-encrypted-"+t]}},{key:"presenceChannel",value:function(t){return this.channels["presence-"+t]||(this.channels["presence-"+t]=new ko(this.pusher,"presence-"+t,this.options)),this.channels["presence-"+t]}},{key:"leave",value:function(t){var e=this;[t,"private-"+t,"private-encrypted-"+t,"presence-"+t].forEach((function(t,n){e.leaveChannel(t)}))}},{key:"leaveChannel",value:function(t){this.channels[t]&&(this.channels[t].unsubscribe(),delete this.channels[t])}},{key:"socketId",value:function(){return this.pusher.connection.socket_id}},{key:"disconnect",value:function(){this.pusher.disconnect()}}]),n}(Mo),Do=function(t){go(n,t);var e=wo(n);function n(){var t;return fo(this,n),(t=e.apply(this,arguments)).channels={},t}return po(n,[{key:"connect",value:function(){var t=this,e=this.getSocketIO();return this.socket=e(this.options.host,this.options),this.socket.on("reconnect",(function(){Object.values(t.channels).forEach((function(t){t.subscribe()}))})),this.socket}},{key:"getSocketIO",value:function(){if(void 0!==this.options.client)return this.options.client;if("undefined"!=typeof io)return io;throw new Error("Socket.io client not found. Should be globally available or passed via options.client")}},{key:"listen",value:function(t,e,n){return this.channel(t).listen(e,n)}},{key:"channel",value:function(t){return this.channels[t]||(this.channels[t]=new To(this.socket,t,this.options)),this.channels[t]}},{key:"privateChannel",value:function(t){return this.channels["private-"+t]||(this.channels["private-"+t]=new Po(this.socket,"private-"+t,this.options)),this.channels["private-"+t]}},{key:"presenceChannel",value:function(t){return this.channels["presence-"+t]||(this.channels["presence-"+t]=new Co(this.socket,"presence-"+t,this.options)),this.channels["presence-"+t]}},{key:"leave",value:function(t){var e=this;[t,"private-"+t,"presence-"+t].forEach((function(t){e.leaveChannel(t)}))}},{key:"leaveChannel",value:function(t){this.channels[t]&&(this.channels[t].unsubscribe(),delete this.channels[t])}},{key:"socketId",value:function(){return this.socket.id}},{key:"disconnect",value:function(){this.socket.disconnect()}}]),n}(Mo),Lo=function(t){go(n,t);var e=wo(n);function n(){var t;return fo(this,n),(t=e.apply(this,arguments)).channels={},t}return po(n,[{key:"connect",value:function(){}},{key:"listen",value:function(t,e,n){return new Ao}},{key:"channel",value:function(t){return new Ao}},{key:"privateChannel",value:function(t){return new jo}},{key:"encryptedPrivateChannel",value:function(t){return new jo}},{key:"presenceChannel",value:function(t){return new No}},{key:"leave",value:function(t){}},{key:"leaveChannel",value:function(t){}},{key:"socketId",value:function(){return"fake-socket-id"}},{key:"disconnect",value:function(){}}]),n}(Mo),Io=function(){function t(e){fo(this,t),this.options=e,this.connect(),this.options.withoutInterceptors||this.registerInterceptors()}return po(t,[{key:"channel",value:function(t){return this.connector.channel(t)}},{key:"connect",value:function(){"pusher"==this.options.broadcaster?this.connector=new Ro(this.options):"socket.io"==this.options.broadcaster?this.connector=new Do(this.options):"null"==this.options.broadcaster?this.connector=new Lo(this.options):"function"==typeof this.options.broadcaster&&(this.connector=new this.options.broadcaster(this.options))}},{key:"disconnect",value:function(){this.connector.disconnect()}},{key:"join",value:function(t){return this.connector.presenceChannel(t)}},{key:"leave",value:function(t){this.connector.leave(t)}},{key:"leaveChannel",value:function(t){this.connector.leaveChannel(t)}},{key:"leaveAllChannels",value:function(){for(var t in this.connector.channels)this.leaveChannel(t)}},{key:"listen",value:function(t,e,n){return this.connector.listen(t,e,n)}},{key:"private",value:function(t){return this.connector.privateChannel(t)}},{key:"encryptedPrivate",value:function(t){return this.connector.encryptedPrivateChannel(t)}},{key:"socketId",value:function(){return this.connector.socketId()}},{key:"registerInterceptors",value:function(){"function"==typeof Vue&&Vue.http&&this.registerVueRequestInterceptor(),"function"==typeof axios&&this.registerAxiosRequestInterceptor(),"function"==typeof jQuery&&this.registerjQueryAjaxSetup(),"object"===("undefined"==typeof Turbo?"undefined":lo(Turbo))&&this.registerTurboRequestInterceptor()}},{key:"registerVueRequestInterceptor",value:function(){var t=this;Vue.http.interceptors.push((function(e,n){t.socketId()&&e.headers.set("X-Socket-ID",t.socketId()),n()}))}},{key:"registerAxiosRequestInterceptor",value:function(){var t=this;axios.interceptors.request.use((function(e){return t.socketId()&&(e.headers["X-Socket-Id"]=t.socketId()),e}))}},{key:"registerjQueryAjaxSetup",value:function(){var t=this;void 0!==jQuery.ajax&&jQuery.ajaxPrefilter((function(e,n,r){t.socketId()&&r.setRequestHeader("X-Socket-Id",t.socketId())}))}},{key:"registerTurboRequestInterceptor",value:function(){var t=this;document.addEventListener("turbo:before-fetch-request",(function(e){e.detail.fetchOptions.headers["X-Socket-Id"]=t.socketId()}))}}]),t}(),Uo="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Fo(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Bo,zo={};window,Bo=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=2)}([function(t,e,n){var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=256,a=function(){function t(t){void 0===t&&(t="="),this._paddingCharacter=t}return t.prototype.encodedLength=function(t){return this._paddingCharacter?(t+2)/3*4|0:(8*t+5)/6|0},t.prototype.encode=function(t){for(var e="",n=0;n<t.length-2;n+=3){var r=t[n]<<16|t[n+1]<<8|t[n+2];e+=this._encodeByte(r>>>18&63),e+=this._encodeByte(r>>>12&63),e+=this._encodeByte(r>>>6&63),e+=this._encodeByte(r>>>0&63)}var i=t.length-n;return i>0&&(r=t[n]<<16|(2===i?t[n+1]<<8:0),e+=this._encodeByte(r>>>18&63),e+=this._encodeByte(r>>>12&63),e+=2===i?this._encodeByte(r>>>6&63):this._paddingCharacter||"",e+=this._paddingCharacter||""),e},t.prototype.maxDecodedLength=function(t){return this._paddingCharacter?t/4*3|0:(6*t+7)/8|0},t.prototype.decodedLength=function(t){return this.maxDecodedLength(t.length-this._getPaddingLength(t))},t.prototype.decode=function(t){if(0===t.length)return new Uint8Array(0);for(var e=this._getPaddingLength(t),n=t.length-e,r=new Uint8Array(this.maxDecodedLength(n)),i=0,a=0,s=0,u=0,c=0,l=0,f=0;a<n-4;a+=4)u=this._decodeChar(t.charCodeAt(a+0)),c=this._decodeChar(t.charCodeAt(a+1)),l=this._decodeChar(t.charCodeAt(a+2)),f=this._decodeChar(t.charCodeAt(a+3)),r[i++]=u<<2|c>>>4,r[i++]=c<<4|l>>>2,r[i++]=l<<6|f,s|=u&o,s|=c&o,s|=l&o,s|=f&o;if(a<n-1&&(u=this._decodeChar(t.charCodeAt(a)),c=this._decodeChar(t.charCodeAt(a+1)),r[i++]=u<<2|c>>>4,s|=u&o,s|=c&o),a<n-2&&(l=this._decodeChar(t.charCodeAt(a+2)),r[i++]=c<<4|l>>>2,s|=l&o),a<n-3&&(f=this._decodeChar(t.charCodeAt(a+3)),r[i++]=l<<6|f,s|=f&o),0!==s)throw new Error("Base64Coder: incorrect characters for decoding");return r},t.prototype._encodeByte=function(t){var e=t;return e+=65,e+=25-t>>>8&6,e+=51-t>>>8&-75,e+=61-t>>>8&-15,e+=62-t>>>8&3,String.fromCharCode(e)},t.prototype._decodeChar=function(t){var e=o;return e+=(42-t&t-44)>>>8&-256+t-43+62,e+=(46-t&t-48)>>>8&-256+t-47+63,e+=(47-t&t-58)>>>8&-256+t-48+52,e+=(64-t&t-91)>>>8&-256+t-65+0,e+=(96-t&t-123)>>>8&-256+t-97+26},t.prototype._getPaddingLength=function(t){var e=0;if(this._paddingCharacter){for(var n=t.length-1;n>=0&&t[n]===this._paddingCharacter;n--)e++;if(t.length<4||e>2)throw new Error("Base64Coder: incorrect padding")}return e},t}();e.Coder=a;var s=new a;e.encode=function(t){return s.encode(t)},e.decode=function(t){return s.decode(t)};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._encodeByte=function(t){var e=t;return e+=65,e+=25-t>>>8&6,e+=51-t>>>8&-75,e+=61-t>>>8&-13,e+=62-t>>>8&49,String.fromCharCode(e)},e.prototype._decodeChar=function(t){var e=o;return e+=(44-t&t-46)>>>8&-256+t-45+62,e+=(94-t&t-96)>>>8&-256+t-95+63,e+=(47-t&t-58)>>>8&-256+t-48+52,e+=(64-t&t-91)>>>8&-256+t-65+0,e+=(96-t&t-123)>>>8&-256+t-97+26},e}(a);e.URLSafeCoder=u;var c=new u;e.encodeURLSafe=function(t){return c.encode(t)},e.decodeURLSafe=function(t){return c.decode(t)},e.encodedLength=function(t){return s.encodedLength(t)},e.maxDecodedLength=function(t){return s.maxDecodedLength(t)},e.decodedLength=function(t){return s.decodedLength(t)}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r="utf8: invalid string",i="utf8: invalid source encoding";function o(t){for(var e=0,n=0;n<t.length;n++){var i=t.charCodeAt(n);if(i<128)e+=1;else if(i<2048)e+=2;else if(i<55296)e+=3;else{if(!(i<=57343))throw new Error(r);if(n>=t.length-1)throw new Error(r);n++,e+=4}}return e}e.encode=function(t){for(var e=new Uint8Array(o(t)),n=0,r=0;r<t.length;r++){var i=t.charCodeAt(r);i<128?e[n++]=i:i<2048?(e[n++]=192|i>>6,e[n++]=128|63&i):i<55296?(e[n++]=224|i>>12,e[n++]=128|i>>6&63,e[n++]=128|63&i):(r++,i=(1023&i)<<10,i|=1023&t.charCodeAt(r),i+=65536,e[n++]=240|i>>18,e[n++]=128|i>>12&63,e[n++]=128|i>>6&63,e[n++]=128|63&i)}return e},e.encodedLength=o,e.decode=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(128&r){var o=void 0;if(r<224){if(n>=t.length)throw new Error(i);if(128!=(192&(a=t[++n])))throw new Error(i);r=(31&r)<<6|63&a,o=128}else if(r<240){if(n>=t.length-1)throw new Error(i);var a=t[++n],s=t[++n];if(128!=(192&a)||128!=(192&s))throw new Error(i);r=(15&r)<<12|(63&a)<<6|63&s,o=2048}else{if(!(r<248))throw new Error(i);if(n>=t.length-2)throw new Error(i);a=t[++n],s=t[++n];var u=t[++n];if(128!=(192&a)||128!=(192&s)||128!=(192&u))throw new Error(i);r=(15&r)<<18|(63&a)<<12|(63&s)<<6|63&u,o=65536}if(r<o||r>=55296&&r<=57343)throw new Error(i);if(r>=65536){if(r>1114111)throw new Error(i);r-=65536,e.push(String.fromCharCode(55296|r>>10)),r=56320|1023&r}}e.push(String.fromCharCode(r))}return e.join("")}},function(t,e,n){t.exports=n(3).default},function(t,e,n){n.r(e);var r,i=function(){function t(t,e){this.lastId=0,this.prefix=t,this.name=e}return t.prototype.create=function(t){this.lastId++;var e=this.lastId,n=this.prefix+e,r=this.name+"["+e+"]",i=!1,o=function(){i||(t.apply(null,arguments),i=!0)};return this[e]=o,{number:e,id:n,name:r,callback:o}},t.prototype.remove=function(t){delete this[t.number]},t}(),o=new i("_pusher_script_","Pusher.ScriptReceivers"),a={VERSION:"7.6.0",PROTOCOL:7,wsPort:80,wssPort:443,wsPath:"",httpHost:"sockjs.pusher.com",httpPort:80,httpsPort:443,httpPath:"/pusher",stats_host:"stats.pusher.com",authEndpoint:"/pusher/auth",authTransport:"ajax",activityTimeout:12e4,pongTimeout:3e4,unavailableTimeout:1e4,cluster:"mt1",userAuthentication:{endpoint:"/pusher/user-auth",transport:"ajax"},channelAuthorization:{endpoint:"/pusher/auth",transport:"ajax"},cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""},s=function(){function t(t){this.options=t,this.receivers=t.receivers||o,this.loading={}}return t.prototype.load=function(t,e,n){var r=this;if(r.loading[t]&&r.loading[t].length>0)r.loading[t].push(n);else{r.loading[t]=[n];var i=He.createScriptRequest(r.getPath(t,e)),o=r.receivers.create((function(e){if(r.receivers.remove(o),r.loading[t]){var n=r.loading[t];delete r.loading[t];for(var a=function(t){t||i.cleanup()},s=0;s<n.length;s++)n[s](e,a)}}));i.send(o)}},t.prototype.getRoot=function(t){var e=He.getDocument().location.protocol;return(t&&t.useTLS||"https:"===e?this.options.cdn_https:this.options.cdn_http).replace(/\/*$/,"")+"/"+this.options.version},t.prototype.getPath=function(t,e){return this.getRoot(e)+"/"+t+this.options.suffix+".js"},t}(),u=new i("_pusher_dependencies","Pusher.DependenciesReceivers"),c=new s({cdn_http:a.cdn_http,cdn_https:a.cdn_https,version:a.VERSION,suffix:a.dependency_suffix,receivers:u}),l={baseUrl:"https://pusher.com",urls:{authenticationEndpoint:{path:"/docs/channels/server_api/authenticating_users"},authorizationEndpoint:{path:"/docs/channels/server_api/authorizing-users/"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"},encryptedChannelSupport:{fullUrl:"https://github.com/pusher/pusher-js/tree/cc491015371a4bde5743d1c87a0fbac0feb53195#encrypted-channel-support"}}},f=function(t){var e,n=l.urls[t];return n?(n.fullUrl?e=n.fullUrl:n.path&&(e=l.baseUrl+n.path),e?"See: "+e:""):""};!function(t){t.UserAuthentication="user-authentication",t.ChannelAuthorization="channel-authorization"}(r||(r={}));var h,d=(h=function(t,e){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},h(t,e)},function(t,e){function n(){this.constructor=t}h(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return Object.setPrototypeOf(r,n.prototype),r}return d(e,t),e}(Error),v=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return Object.setPrototypeOf(r,n.prototype),r}return d(e,t),e}(Error),g=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return Object.setPrototypeOf(r,n.prototype),r}return d(e,t),e}(Error),y=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return Object.setPrototypeOf(r,n.prototype),r}return d(e,t),e}(Error),m=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return Object.setPrototypeOf(r,n.prototype),r}return d(e,t),e}(Error),b=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return Object.setPrototypeOf(r,n.prototype),r}return d(e,t),e}(Error),w=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return Object.setPrototypeOf(r,n.prototype),r}return d(e,t),e}(Error),_=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return Object.setPrototypeOf(r,n.prototype),r}return d(e,t),e}(Error),x=function(t){function e(e,n){var r=this.constructor,i=t.call(this,n)||this;return i.status=e,Object.setPrototypeOf(i,r.prototype),i}return d(e,t),e}(Error),E=function(t,e,n,i,o){var a=He.createXHR();for(var s in a.open("POST",n.endpoint,!0),a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.headers)a.setRequestHeader(s,n.headers[s]);if(null!=n.headersProvider){var u=n.headersProvider();for(var s in u)a.setRequestHeader(s,u[s])}return a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status){var t=void 0,e=!1;try{t=JSON.parse(a.responseText),e=!0}catch(t){o(new x(200,"JSON returned from "+i.toString()+" endpoint was invalid, yet status code was 200. Data was: "+a.responseText),null)}e&&o(null,t)}else{var s="";switch(i){case r.UserAuthentication:s=f("authenticationEndpoint");break;case r.ChannelAuthorization:s="Clients must be authorized to join private or presence channels. "+f("authorizationEndpoint")}o(new x(a.status,"Unable to retrieve auth string from "+i.toString()+" endpoint - received status: "+a.status+" from "+n.endpoint+". "+s),null)}},a.send(e),a},S=String.fromCharCode,O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",k=function(t){var e=t.charCodeAt(0);return e<128?t:e<2048?S(192|e>>>6)+S(128|63&e):S(224|e>>>12&15)+S(128|e>>>6&63)+S(128|63&e)},T=function(t){return t.replace(/[^\x00-\x7F]/g,k)},P=function(t){var e=[0,2,1][t.length%3],n=t.charCodeAt(0)<<16|(t.length>1?t.charCodeAt(1):0)<<8|(t.length>2?t.charCodeAt(2):0);return[O.charAt(n>>>18),O.charAt(n>>>12&63),e>=2?"=":O.charAt(n>>>6&63),e>=1?"=":O.charAt(63&n)].join("")},C=window.btoa||function(t){return t.replace(/[\s\S]{1,3}/g,P)},A=function(){function t(t,e,n,r){var i=this;this.clear=e,this.timer=t((function(){i.timer&&(i.timer=r(i.timer))}),n)}return t.prototype.isRunning=function(){return null!==this.timer},t.prototype.ensureAborted=function(){this.timer&&(this.clear(this.timer),this.timer=null)},t}(),j=A,N=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function M(t){window.clearTimeout(t)}function R(t){window.clearInterval(t)}var D=function(t){function e(e,n){return t.call(this,setTimeout,M,e,(function(t){return n(),null}))||this}return N(e,t),e}(j),L=function(t){function e(e,n){return t.call(this,setInterval,R,e,(function(t){return n(),t}))||this}return N(e,t),e}(j),I={now:function(){return Date.now?Date.now():(new Date).valueOf()},defer:function(t){return new D(0,t)},method:function(t){var e=Array.prototype.slice.call(arguments,1);return function(n){return n[t].apply(n,e.concat(arguments))}}},U=I;function F(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r++){var i=e[r];for(var o in i)i[o]&&i[o].constructor&&i[o].constructor===Object?t[o]=F(t[o]||{},i[o]):t[o]=i[o]}return t}function B(){for(var t=["Pusher"],e=0;e<arguments.length;e++)"string"==typeof arguments[e]?t.push(arguments[e]):t.push(Z(arguments[e]));return t.join(" : ")}function z(t,e){var n=Array.prototype.indexOf;if(null===t)return-1;if(n&&t.indexOf===n)return t.indexOf(e);for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}function q(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(t[n],n,t)}function H(t){var e=[];return q(t,(function(t,n){e.push(n)})),e}function W(t,e,n){for(var r=0;r<t.length;r++)e.call(n||window,t[r],r,t)}function Y(t,e){for(var n=[],r=0;r<t.length;r++)n.push(e(t[r],r,t,n));return n}function $(t,e){e=e||function(t){return!!t};for(var n=[],r=0;r<t.length;r++)e(t[r],r,t,n)&&n.push(t[r]);return n}function V(t,e){var n={};return q(t,(function(r,i){(e&&e(r,i,t,n)||Boolean(r))&&(n[i]=r)})),n}function J(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n,t))return!0;return!1}function X(t){return e=function(t){return"object"==typeof t&&(t=Z(t)),encodeURIComponent((e=t.toString(),C(T(e))));var e},n={},q(t,(function(t,r){n[r]=e(t)})),n;var e,n}function G(t){var e,n,r=V(t,(function(t){return void 0!==t}));return Y((e=X(r),n=[],q(e,(function(t,e){n.push([e,t])})),n),U.method("join","=")).join("&")}function Z(t){try{return JSON.stringify(t)}catch(r){return JSON.stringify((e=[],n=[],function t(r,i){var o,a,s;switch(typeof r){case"object":if(!r)return null;for(o=0;o<e.length;o+=1)if(e[o]===r)return{$ref:n[o]};if(e.push(r),n.push(i),"[object Array]"===Object.prototype.toString.apply(r))for(s=[],o=0;o<r.length;o+=1)s[o]=t(r[o],i+"["+o+"]");else for(a in s={},r)Object.prototype.hasOwnProperty.call(r,a)&&(s[a]=t(r[a],i+"["+JSON.stringify(a)+"]"));return s;case"number":case"string":case"boolean":return r}}(t,"$")))}var e,n}var K=function(){function t(){this.globalLog=function(t){window.console&&window.console.log&&window.console.log(t)}}return t.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.log(this.globalLog,t)},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.log(this.globalLogWarn,t)},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.log(this.globalLogError,t)},t.prototype.globalLogWarn=function(t){window.console&&window.console.warn?window.console.warn(t):this.globalLog(t)},t.prototype.globalLogError=function(t){window.console&&window.console.error?window.console.error(t):this.globalLogWarn(t)},t.prototype.log=function(t){var e=B.apply(this,arguments);mn.log?mn.log(e):mn.logToConsole&&t.bind(this)(e)},t}(),Q=new K,tt=function(t,e,n,r,i){void 0===n.headers&&null==n.headersProvider||Q.warn("To send headers with the "+r.toString()+" request, you must use AJAX, rather than JSONP.");var o=t.nextAuthCallbackID.toString();t.nextAuthCallbackID++;var a=t.getDocument(),s=a.createElement("script");t.auth_callbacks[o]=function(t){i(null,t)};var u="Pusher.auth_callbacks['"+o+"']";s.src=n.endpoint+"?callback="+encodeURIComponent(u)+"&"+e;var c=a.getElementsByTagName("head")[0]||a.documentElement;c.insertBefore(s,c.firstChild)},et=function(){function t(t){this.src=t}return t.prototype.send=function(t){var e=this,n="Error loading "+e.src;e.script=document.createElement("script"),e.script.id=t.id,e.script.src=e.src,e.script.type="text/javascript",e.script.charset="UTF-8",e.script.addEventListener?(e.script.onerror=function(){t.callback(n)},e.script.onload=function(){t.callback(null)}):e.script.onreadystatechange=function(){"loaded"!==e.script.readyState&&"complete"!==e.script.readyState||t.callback(null)},void 0===e.script.async&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(e.errorScript=document.createElement("script"),e.errorScript.id=t.id+"_error",e.errorScript.text=t.name+"('"+n+"');",e.script.async=e.errorScript.async=!1):e.script.async=!0;var r=document.getElementsByTagName("head")[0];r.insertBefore(e.script,r.firstChild),e.errorScript&&r.insertBefore(e.errorScript,e.script.nextSibling)},t.prototype.cleanup=function(){this.script&&(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&&this.script.parentNode&&this.script.parentNode.removeChild(this.script),this.errorScript&&this.errorScript.parentNode&&this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null},t}(),nt=function(){function t(t,e){this.url=t,this.data=e}return t.prototype.send=function(t){if(!this.request){var e=G(this.data),n=this.url+"/"+t.number+"?"+e;this.request=He.createScriptRequest(n),this.request.send(t)}},t.prototype.cleanup=function(){this.request&&this.request.cleanup()},t}(),rt=nt,it={name:"jsonp",getAgent:function(t,e){return function(n,r){var i="http"+(e?"s":"")+"://"+(t.host||t.options.host)+t.options.path,a=He.createJSONPRequest(i,n),s=He.ScriptReceivers.create((function(e,n){o.remove(s),a.cleanup(),n&&n.host&&(t.host=n.host),r&&r(e,n)}));a.send(s)}}},ot=it;function at(t,e,n){return t+(e.useTLS?"s":"")+"://"+(e.useTLS?e.hostTLS:e.hostNonTLS)+n}function st(t,e){return"/app/"+t+"?protocol="+a.PROTOCOL+"&client=js&version="+a.VERSION+(e?"&"+e:"")}var ut={getInitial:function(t,e){return at("ws",e,(e.httpPath||"")+st(t,"flash=false"))}},ct={getInitial:function(t,e){return at("http",e,(e.httpPath||"/pusher")+st(t))}},lt={getInitial:function(t,e){return at("http",e,e.httpPath||"/pusher")},getPath:function(t,e){return st(t)}},ft=function(){function t(){this._callbacks={}}return t.prototype.get=function(t){return this._callbacks[dt(t)]},t.prototype.add=function(t,e,n){var r=dt(t);this._callbacks[r]=this._callbacks[r]||[],this._callbacks[r].push({fn:e,context:n})},t.prototype.remove=function(t,e,n){if(t||e||n){var r=t?[dt(t)]:H(this._callbacks);e||n?this.removeCallback(r,e,n):this.removeAllCallbacks(r)}else this._callbacks={}},t.prototype.removeCallback=function(t,e,n){W(t,(function(t){this._callbacks[t]=$(this._callbacks[t]||[],(function(t){return e&&e!==t.fn||n&&n!==t.context})),0===this._callbacks[t].length&&delete this._callbacks[t]}),this)},t.prototype.removeAllCallbacks=function(t){W(t,(function(t){delete this._callbacks[t]}),this)},t}(),ht=ft;function dt(t){return"_"+t}var pt=function(){function t(t){this.callbacks=new ht,this.global_callbacks=[],this.failThrough=t}return t.prototype.bind=function(t,e,n){return this.callbacks.add(t,e,n),this},t.prototype.bind_global=function(t){return this.global_callbacks.push(t),this},t.prototype.unbind=function(t,e,n){return this.callbacks.remove(t,e,n),this},t.prototype.unbind_global=function(t){return t?(this.global_callbacks=$(this.global_callbacks||[],(function(e){return e!==t})),this):(this.global_callbacks=[],this)},t.prototype.unbind_all=function(){return this.unbind(),this.unbind_global(),this},t.prototype.emit=function(t,e,n){for(var r=0;r<this.global_callbacks.length;r++)this.global_callbacks[r](t,e);var i=this.callbacks.get(t),o=[];if(n?o.push(e,n):e&&o.push(e),i&&i.length>0)for(r=0;r<i.length;r++)i[r].fn.apply(i[r].context||window,o);else this.failThrough&&this.failThrough(t,e);return this},t}(),vt=pt,gt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yt=function(t){function e(e,n,r,i,o){var a=t.call(this)||this;return a.initialize=He.transportConnectionInitializer,a.hooks=e,a.name=n,a.priority=r,a.key=i,a.options=o,a.state="new",a.timeline=o.timeline,a.activityTimeout=o.activityTimeout,a.id=a.timeline.generateUniqueID(),a}return gt(e,t),e.prototype.handlesActivityChecks=function(){return Boolean(this.hooks.handlesActivityChecks)},e.prototype.supportsPing=function(){return Boolean(this.hooks.supportsPing)},e.prototype.connect=function(){var t=this;if(this.socket||"initialized"!==this.state)return!1;var e=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(e,this.options)}catch(e){return U.defer((function(){t.onError(e),t.changeState("closed")})),!1}return this.bindListeners(),Q.debug("Connecting",{transport:this.name,url:e}),this.changeState("connecting"),!0},e.prototype.close=function(){return!!this.socket&&(this.socket.close(),!0)},e.prototype.send=function(t){var e=this;return"open"===this.state&&(U.defer((function(){e.socket&&e.socket.send(t)})),!0)},e.prototype.ping=function(){"open"===this.state&&this.supportsPing()&&this.socket.ping()},e.prototype.onOpen=function(){this.hooks.beforeOpen&&this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0},e.prototype.onError=function(t){this.emit("error",{type:"WebSocketError",error:t}),this.timeline.error(this.buildTimelineMessage({error:t.toString()}))},e.prototype.onClose=function(t){t?this.changeState("closed",{code:t.code,reason:t.reason,wasClean:t.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0},e.prototype.onMessage=function(t){this.emit("message",t)},e.prototype.onActivity=function(){this.emit("activity")},e.prototype.bindListeners=function(){var t=this;this.socket.onopen=function(){t.onOpen()},this.socket.onerror=function(e){t.onError(e)},this.socket.onclose=function(e){t.onClose(e)},this.socket.onmessage=function(e){t.onMessage(e)},this.supportsPing()&&(this.socket.onactivity=function(){t.onActivity()})},e.prototype.unbindListeners=function(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))},e.prototype.changeState=function(t,e){this.state=t,this.timeline.info(this.buildTimelineMessage({state:t,params:e})),this.emit(t,e)},e.prototype.buildTimelineMessage=function(t){return F({cid:this.id},t)},e}(vt),mt=yt,bt=function(){function t(t){this.hooks=t}return t.prototype.isSupported=function(t){return this.hooks.isSupported(t)},t.prototype.createConnection=function(t,e,n,r){return new mt(this.hooks,t,e,n,r)},t}(),wt=new bt({urls:ut,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return Boolean(He.getWebSocketAPI())},isSupported:function(){return Boolean(He.getWebSocketAPI())},getSocket:function(t){return He.createWebSocket(t)}}),_t={urls:ct,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},xt=F({getSocket:function(t){return He.HTTPFactory.createStreamingSocket(t)}},_t),Et=F({getSocket:function(t){return He.HTTPFactory.createPollingSocket(t)}},_t),St={isSupported:function(){return He.isXHRSupported()}},Ot={ws:wt,xhr_streaming:new bt(F({},xt,St)),xhr_polling:new bt(F({},Et,St))},kt=new bt({file:"sockjs",urls:lt,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return void 0!==window.SockJS},getSocket:function(t,e){return new window.SockJS(t,null,{js_path:c.getPath("sockjs",{useTLS:e.useTLS}),ignore_null_origin:e.ignoreNullOrigin})},beforeOpen:function(t,e){t.send(JSON.stringify({path:e}))}}),Tt={isSupported:function(t){return He.isXDRSupported(t.useTLS)}},Pt=new bt(F({},xt,Tt)),Ct=new bt(F({},Et,Tt));Ot.xdr_streaming=Pt,Ot.xdr_polling=Ct,Ot.sockjs=kt;var At=Ot,jt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Nt=new(function(t){function e(){var e=t.call(this)||this,n=e;return void 0!==window.addEventListener&&(window.addEventListener("online",(function(){n.emit("online")}),!1),window.addEventListener("offline",(function(){n.emit("offline")}),!1)),e}return jt(e,t),e.prototype.isOnline=function(){return void 0===window.navigator.onLine||window.navigator.onLine},e}(vt)),Mt=function(){function t(t,e,n){this.manager=t,this.transport=e,this.minPingDelay=n.minPingDelay,this.maxPingDelay=n.maxPingDelay,this.pingDelay=void 0}return t.prototype.createConnection=function(t,e,n,r){var i=this;r=F({},r,{activityTimeout:this.pingDelay});var o=this.transport.createConnection(t,e,n,r),a=null,s=function(){o.unbind("open",s),o.bind("closed",u),a=U.now()},u=function(t){if(o.unbind("closed",u),1002===t.code||1003===t.code)i.manager.reportDeath();else if(!t.wasClean&&a){var e=U.now()-a;e<2*i.maxPingDelay&&(i.manager.reportDeath(),i.pingDelay=Math.max(e/2,i.minPingDelay))}};return o.bind("open",s),o},t.prototype.isSupported=function(t){return this.manager.isAlive()&&this.transport.isSupported(t)},t}(),Rt={decodeMessage:function(t){try{var e=JSON.parse(t.data),n=e.data;if("string"==typeof n)try{n=JSON.parse(e.data)}catch(t){}var r={event:e.event,channel:e.channel,data:n};return e.user_id&&(r.user_id=e.user_id),r}catch(e){throw{type:"MessageParseError",error:e,data:t.data}}},encodeMessage:function(t){return JSON.stringify(t)},processHandshake:function(t){var e=Rt.decodeMessage(t);if("pusher:connection_established"===e.event){if(!e.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:e.data.socket_id,activityTimeout:1e3*e.data.activity_timeout}}if("pusher:error"===e.event)return{action:this.getCloseAction(e.data),error:this.getCloseError(e.data)};throw"Invalid handshake"},getCloseAction:function(t){return t.code<4e3?t.code>=1002&&t.code<=1004?"backoff":null:4e3===t.code?"tls_only":t.code<4100?"refused":t.code<4200?"backoff":t.code<4300?"retry":"refused"},getCloseError:function(t){return 1e3!==t.code&&1001!==t.code?{type:"PusherError",data:{code:t.code,message:t.reason||t.message}}:null}},Dt=Rt,Lt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),It=function(t){function e(e,n){var r=t.call(this)||this;return r.id=e,r.transport=n,r.activityTimeout=n.activityTimeout,r.bindListeners(),r}return Lt(e,t),e.prototype.handlesActivityChecks=function(){return this.transport.handlesActivityChecks()},e.prototype.send=function(t){return this.transport.send(t)},e.prototype.send_event=function(t,e,n){var r={event:t,data:e};return n&&(r.channel=n),Q.debug("Event sent",r),this.send(Dt.encodeMessage(r))},e.prototype.ping=function(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})},e.prototype.close=function(){this.transport.close()},e.prototype.bindListeners=function(){var t=this,e={message:function(e){var n;try{n=Dt.decodeMessage(e)}catch(n){t.emit("error",{type:"MessageParseError",error:n,data:e.data})}if(void 0!==n){switch(Q.debug("Event recd",n),n.event){case"pusher:error":t.emit("error",{type:"PusherError",data:n.data});break;case"pusher:ping":t.emit("ping");break;case"pusher:pong":t.emit("pong")}t.emit("message",n)}},activity:function(){t.emit("activity")},error:function(e){t.emit("error",e)},closed:function(e){n(),e&&e.code&&t.handleCloseEvent(e),t.transport=null,t.emit("closed")}},n=function(){q(e,(function(e,n){t.transport.unbind(n,e)}))};q(e,(function(e,n){t.transport.bind(n,e)}))},e.prototype.handleCloseEvent=function(t){var e=Dt.getCloseAction(t),n=Dt.getCloseError(t);n&&this.emit("error",n),e&&this.emit(e,{action:e,error:n})},e}(vt),Ut=It,Ft=function(){function t(t,e){this.transport=t,this.callback=e,this.bindListeners()}return t.prototype.close=function(){this.unbindListeners(),this.transport.close()},t.prototype.bindListeners=function(){var t=this;this.onMessage=function(e){var n;t.unbindListeners();try{n=Dt.processHandshake(e)}catch(e){return t.finish("error",{error:e}),void t.transport.close()}"connected"===n.action?t.finish("connected",{connection:new Ut(n.id,t.transport),activityTimeout:n.activityTimeout}):(t.finish(n.action,{error:n.error}),t.transport.close())},this.onClosed=function(e){t.unbindListeners();var n=Dt.getCloseAction(e)||"backoff",r=Dt.getCloseError(e);t.finish(n,{error:r})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)},t.prototype.unbindListeners=function(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)},t.prototype.finish=function(t,e){this.callback(F({transport:this.transport,action:t},e))},t}(),Bt=function(){function t(t,e){this.timeline=t,this.options=e||{}}return t.prototype.send=function(t,e){this.timeline.isEmpty()||this.timeline.send(He.TimelineTransport.getAgent(this,t),e)},t}(),zt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qt=function(t){function e(e,n){var r=t.call(this,(function(t,n){Q.debug("No callbacks on "+e+" for "+t)}))||this;return r.name=e,r.pusher=n,r.subscribed=!1,r.subscriptionPending=!1,r.subscriptionCancelled=!1,r}return zt(e,t),e.prototype.authorize=function(t,e){return e(null,{auth:""})},e.prototype.trigger=function(t,e){if(0!==t.indexOf("client-"))throw new p("Event '"+t+"' does not start with 'client-'");if(!this.subscribed){var n=f("triggeringClientEvents");Q.warn("Client event triggered before channel 'subscription_succeeded' event . "+n)}return this.pusher.send_event(t,e,this.name)},e.prototype.disconnect=function(){this.subscribed=!1,this.subscriptionPending=!1},e.prototype.handleEvent=function(t){var e=t.event,n=t.data;"pusher_internal:subscription_succeeded"===e?this.handleSubscriptionSucceededEvent(t):"pusher_internal:subscription_count"===e?this.handleSubscriptionCountEvent(t):0!==e.indexOf("pusher_internal:")&&this.emit(e,n,{})},e.prototype.handleSubscriptionSucceededEvent=function(t){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",t.data)},e.prototype.handleSubscriptionCountEvent=function(t){t.data.subscription_count&&(this.subscriptionCount=t.data.subscription_count),this.emit("pusher:subscription_count",t.data)},e.prototype.subscribe=function(){var t=this;this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(function(e,n){e?(t.subscriptionPending=!1,Q.error(e.toString()),t.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:e.message},e instanceof x?{status:e.status}:{}))):t.pusher.send_event("pusher:subscribe",{auth:n.auth,channel_data:n.channel_data,channel:t.name})})))},e.prototype.unsubscribe=function(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})},e.prototype.cancelSubscription=function(){this.subscriptionCancelled=!0},e.prototype.reinstateSubscription=function(){this.subscriptionCancelled=!1},e}(vt),Ht=qt,Wt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Wt(e,t),e.prototype.authorize=function(t,e){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:t},e)},e}(Ht),$t=Yt,Vt=function(){function t(){this.reset()}return t.prototype.get=function(t){return Object.prototype.hasOwnProperty.call(this.members,t)?{id:t,info:this.members[t]}:null},t.prototype.each=function(t){var e=this;q(this.members,(function(n,r){t(e.get(r))}))},t.prototype.setMyID=function(t){this.myID=t},t.prototype.onSubscription=function(t){this.members=t.presence.hash,this.count=t.presence.count,this.me=this.get(this.myID)},t.prototype.addMember=function(t){return null===this.get(t.user_id)&&this.count++,this.members[t.user_id]=t.user_info,this.get(t.user_id)},t.prototype.removeMember=function(t){var e=this.get(t.user_id);return e&&(delete this.members[t.user_id],this.count--),e},t.prototype.reset=function(){this.members={},this.count=0,this.myID=null,this.me=null},t}(),Jt=Vt,Xt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gt=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},Zt=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},Kt=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.members=new Jt,r}return Xt(e,t),e.prototype.authorize=function(e,n){var r=this;t.prototype.authorize.call(this,e,(function(t,e){return Gt(r,void 0,void 0,(function(){var r,i;return Zt(this,(function(o){switch(o.label){case 0:return t?[3,3]:null==e.channel_data?[3,1]:(r=JSON.parse(e.channel_data),this.members.setMyID(r.user_id),[3,3]);case 1:return[4,this.pusher.user.signinDonePromise];case 2:if(o.sent(),null==this.pusher.user.user_data)return i=f("authorizationEndpoint"),Q.error("Invalid auth response for channel '"+this.name+"', expected 'channel_data' field. "+i+", or the user should be signed in."),n("Invalid auth response"),[2];this.members.setMyID(this.pusher.user.user_data.id),o.label=3;case 3:return n(t,e),[2]}}))}))}))},e.prototype.handleEvent=function(t){var e=t.event;if(0===e.indexOf("pusher_internal:"))this.handleInternalEvent(t);else{var n=t.data,r={};t.user_id&&(r.user_id=t.user_id),this.emit(e,n,r)}},e.prototype.handleInternalEvent=function(t){var e=t.event,n=t.data;switch(e){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(t);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(t);break;case"pusher_internal:member_added":var r=this.members.addMember(n);this.emit("pusher:member_added",r);break;case"pusher_internal:member_removed":var i=this.members.removeMember(n);i&&this.emit("pusher:member_removed",i)}},e.prototype.handleSubscriptionSucceededEvent=function(t){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(t.data),this.emit("pusher:subscription_succeeded",this.members))},e.prototype.disconnect=function(){this.members.reset(),t.prototype.disconnect.call(this)},e}($t),Qt=Kt,te=n(1),ee=n(0),ne=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),re=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.key=null,i.nacl=r,i}return ne(e,t),e.prototype.authorize=function(e,n){var r=this;t.prototype.authorize.call(this,e,(function(t,e){if(t)n(t,e);else{var i=e.shared_secret;i?(r.key=Object(ee.decode)(i),delete e.shared_secret,n(null,e)):n(new Error("No shared_secret key in auth payload for encrypted channel: "+r.name),null)}}))},e.prototype.trigger=function(t,e){throw new b("Client events are not currently supported for encrypted channels")},e.prototype.handleEvent=function(e){var n=e.event,r=e.data;0!==n.indexOf("pusher_internal:")&&0!==n.indexOf("pusher:")?this.handleEncryptedEvent(n,r):t.prototype.handleEvent.call(this,e)},e.prototype.handleEncryptedEvent=function(t,e){var n=this;if(this.key)if(e.ciphertext&&e.nonce){var r=Object(ee.decode)(e.ciphertext);if(r.length<this.nacl.secretbox.overheadLength)Q.error("Expected encrypted event ciphertext length to be "+this.nacl.secretbox.overheadLength+", got: "+r.length);else{var i=Object(ee.decode)(e.nonce);if(i.length<this.nacl.secretbox.nonceLength)Q.error("Expected encrypted event nonce length to be "+this.nacl.secretbox.nonceLength+", got: "+i.length);else{var o=this.nacl.secretbox.open(r,i,this.key);if(null===o)return Q.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),void this.authorize(this.pusher.connection.socket_id,(function(e,a){e?Q.error("Failed to make a request to the authEndpoint: "+a+". Unable to fetch new key, so dropping encrypted event"):null!==(o=n.nacl.secretbox.open(r,i,n.key))?n.emit(t,n.getDataToEmit(o)):Q.error("Failed to decrypt event with new key. Dropping encrypted event")}));this.emit(t,this.getDataToEmit(o))}}}else Q.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+e);else Q.debug("Received encrypted event before key has been retrieved from the authEndpoint")},e.prototype.getDataToEmit=function(t){var e=Object(te.decode)(t);try{return JSON.parse(e)}catch(t){return e}},e}($t),ie=re,oe=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ae=function(t){function e(e,n){var r=t.call(this)||this;r.state="initialized",r.connection=null,r.key=e,r.options=n,r.timeline=r.options.timeline,r.usingTLS=r.options.useTLS,r.errorCallbacks=r.buildErrorCallbacks(),r.connectionCallbacks=r.buildConnectionCallbacks(r.errorCallbacks),r.handshakeCallbacks=r.buildHandshakeCallbacks(r.errorCallbacks);var i=He.getNetwork();return i.bind("online",(function(){r.timeline.info({netinfo:"online"}),"connecting"!==r.state&&"unavailable"!==r.state||r.retryIn(0)})),i.bind("offline",(function(){r.timeline.info({netinfo:"offline"}),r.connection&&r.sendActivityCheck()})),r.updateStrategy(),r}return oe(e,t),e.prototype.connect=function(){this.connection||this.runner||(this.strategy.isSupported()?(this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()):this.updateState("failed"))},e.prototype.send=function(t){return!!this.connection&&this.connection.send(t)},e.prototype.send_event=function(t,e,n){return!!this.connection&&this.connection.send_event(t,e,n)},e.prototype.disconnect=function(){this.disconnectInternally(),this.updateState("disconnected")},e.prototype.isUsingTLS=function(){return this.usingTLS},e.prototype.startConnecting=function(){var t=this,e=function(n,r){n?t.runner=t.strategy.connect(0,e):"error"===r.action?(t.emit("error",{type:"HandshakeError",error:r.error}),t.timeline.error({handshakeError:r.error})):(t.abortConnecting(),t.handshakeCallbacks[r.action](r))};this.runner=this.strategy.connect(0,e)},e.prototype.abortConnecting=function(){this.runner&&(this.runner.abort(),this.runner=null)},e.prototype.disconnectInternally=function(){this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection&&this.abandonConnection().close()},e.prototype.updateStrategy=function(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})},e.prototype.retryIn=function(t){var e=this;this.timeline.info({action:"retry",delay:t}),t>0&&this.emit("connecting_in",Math.round(t/1e3)),this.retryTimer=new D(t||0,(function(){e.disconnectInternally(),e.connect()}))},e.prototype.clearRetryTimer=function(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)},e.prototype.setUnavailableTimer=function(){var t=this;this.unavailableTimer=new D(this.options.unavailableTimeout,(function(){t.updateState("unavailable")}))},e.prototype.clearUnavailableTimer=function(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()},e.prototype.sendActivityCheck=function(){var t=this;this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new D(this.options.pongTimeout,(function(){t.timeline.error({pong_timed_out:t.options.pongTimeout}),t.retryIn(0)}))},e.prototype.resetActivityCheck=function(){var t=this;this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new D(this.activityTimeout,(function(){t.sendActivityCheck()})))},e.prototype.stopActivityCheck=function(){this.activityTimer&&this.activityTimer.ensureAborted()},e.prototype.buildConnectionCallbacks=function(t){var e=this;return F({},t,{message:function(t){e.resetActivityCheck(),e.emit("message",t)},ping:function(){e.send_event("pusher:pong",{})},activity:function(){e.resetActivityCheck()},error:function(t){e.emit("error",t)},closed:function(){e.abandonConnection(),e.shouldRetry()&&e.retryIn(1e3)}})},e.prototype.buildHandshakeCallbacks=function(t){var e=this;return F({},t,{connected:function(t){e.activityTimeout=Math.min(e.options.activityTimeout,t.activityTimeout,t.connection.activityTimeout||1/0),e.clearUnavailableTimer(),e.setConnection(t.connection),e.socket_id=e.connection.id,e.updateState("connected",{socket_id:e.socket_id})}})},e.prototype.buildErrorCallbacks=function(){var t=this,e=function(e){return function(n){n.error&&t.emit("error",{type:"WebSocketError",error:n.error}),e(n)}};return{tls_only:e((function(){t.usingTLS=!0,t.updateStrategy(),t.retryIn(0)})),refused:e((function(){t.disconnect()})),backoff:e((function(){t.retryIn(1e3)})),retry:e((function(){t.retryIn(0)}))}},e.prototype.setConnection=function(t){for(var e in this.connection=t,this.connectionCallbacks)this.connection.bind(e,this.connectionCallbacks[e]);this.resetActivityCheck()},e.prototype.abandonConnection=function(){if(this.connection){for(var t in this.stopActivityCheck(),this.connectionCallbacks)this.connection.unbind(t,this.connectionCallbacks[t]);var e=this.connection;return this.connection=null,e}},e.prototype.updateState=function(t,e){var n=this.state;if(this.state=t,n!==t){var r=t;"connected"===r&&(r+=" with new socket ID "+e.socket_id),Q.debug("State changed",n+" -> "+r),this.timeline.info({state:t,params:e}),this.emit("state_change",{previous:n,current:t}),this.emit(t,e)}},e.prototype.shouldRetry=function(){return"connecting"===this.state||"connected"===this.state},e}(vt),se=ae,ue=function(){function t(){this.channels={}}return t.prototype.add=function(t,e){return this.channels[t]||(this.channels[t]=function(t,e){if(0===t.indexOf("private-encrypted-")){if(e.config.nacl)return fe.createEncryptedChannel(t,e,e.config.nacl);var n="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",r=f("encryptedChannelSupport");throw new b(n+". "+r)}if(0===t.indexOf("private-"))return fe.createPrivateChannel(t,e);if(0===t.indexOf("presence-"))return fe.createPresenceChannel(t,e);if(0===t.indexOf("#"))throw new v('Cannot create a channel with name "'+t+'".');return fe.createChannel(t,e)}(t,e)),this.channels[t]},t.prototype.all=function(){return function(t){var e=[];return q(t,(function(t){e.push(t)})),e}(this.channels)},t.prototype.find=function(t){return this.channels[t]},t.prototype.remove=function(t){var e=this.channels[t];return delete this.channels[t],e},t.prototype.disconnect=function(){q(this.channels,(function(t){t.disconnect()}))},t}(),ce=ue,le={createChannels:function(){return new ce},createConnectionManager:function(t,e){return new se(t,e)},createChannel:function(t,e){return new Ht(t,e)},createPrivateChannel:function(t,e){return new $t(t,e)},createPresenceChannel:function(t,e){return new Qt(t,e)},createEncryptedChannel:function(t,e,n){return new ie(t,e,n)},createTimelineSender:function(t,e){return new Bt(t,e)},createHandshake:function(t,e){return new Ft(t,e)},createAssistantToTheTransportManager:function(t,e,n){return new Mt(t,e,n)}},fe=le,he=function(){function t(t){this.options=t||{},this.livesLeft=this.options.lives||1/0}return t.prototype.getAssistant=function(t){return fe.createAssistantToTheTransportManager(this,t,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})},t.prototype.isAlive=function(){return this.livesLeft>0},t.prototype.reportDeath=function(){this.livesLeft-=1},t}(),de=function(){function t(t,e){this.strategies=t,this.loop=Boolean(e.loop),this.failFast=Boolean(e.failFast),this.timeout=e.timeout,this.timeoutLimit=e.timeoutLimit}return t.prototype.isSupported=function(){return J(this.strategies,U.method("isSupported"))},t.prototype.connect=function(t,e){var n=this,r=this.strategies,i=0,o=this.timeout,a=null,s=function(u,c){c?e(null,c):(i+=1,n.loop&&(i%=r.length),i<r.length?(o&&(o*=2,n.timeoutLimit&&(o=Math.min(o,n.timeoutLimit))),a=n.tryStrategy(r[i],t,{timeout:o,failFast:n.failFast},s)):e(!0))};return a=this.tryStrategy(r[i],t,{timeout:o,failFast:this.failFast},s),{abort:function(){a.abort()},forceMinPriority:function(e){t=e,a&&a.forceMinPriority(e)}}},t.prototype.tryStrategy=function(t,e,n,r){var i=null,o=null;return n.timeout>0&&(i=new D(n.timeout,(function(){o.abort(),r(!0)}))),o=t.connect(e,(function(t,e){t&&i&&i.isRunning()&&!n.failFast||(i&&i.ensureAborted(),r(t,e))})),{abort:function(){i&&i.ensureAborted(),o.abort()},forceMinPriority:function(t){o.forceMinPriority(t)}}},t}(),pe=function(){function t(t){this.strategies=t}return t.prototype.isSupported=function(){return J(this.strategies,U.method("isSupported"))},t.prototype.connect=function(t,e){return function(t,e,n){var r=Y(t,(function(t,r,i,o){return t.connect(e,n(r,o))}));return{abort:function(){W(r,ge)},forceMinPriority:function(t){W(r,(function(e){e.forceMinPriority(t)}))}}}(this.strategies,t,(function(t,n){return function(r,i){n[t].error=r,r?function(t){return function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n,t))return!1;return!0}(t,(function(t){return Boolean(t.error)}))}(n)&&e(!0):(W(n,(function(t){t.forceMinPriority(i.transport.priority)})),e(null,i))}}))},t}(),ve=pe;function ge(t){t.error||t.aborted||(t.abort(),t.aborted=!0)}var ye=function(){function t(t,e,n){this.strategy=t,this.transports=e,this.ttl=n.ttl||18e5,this.usingTLS=n.useTLS,this.timeline=n.timeline}return t.prototype.isSupported=function(){return this.strategy.isSupported()},t.prototype.connect=function(t,e){var n=this.usingTLS,r=function(t){var e=He.getLocalStorage();if(e)try{var n=e[be(t)];if(n)return JSON.parse(n)}catch(e){we(t)}return null}(n),i=[this.strategy];if(r&&r.timestamp+this.ttl>=U.now()){var o=this.transports[r.transport];o&&(this.timeline.info({cached:!0,transport:r.transport,latency:r.latency}),i.push(new de([o],{timeout:2*r.latency+1e3,failFast:!0})))}var a=U.now(),s=i.pop().connect(t,(function r(o,u){o?(we(n),i.length>0?(a=U.now(),s=i.pop().connect(t,r)):e(o)):(function(t,e,n){var r=He.getLocalStorage();if(r)try{r[be(t)]=Z({timestamp:U.now(),transport:e,latency:n})}catch(t){}}(n,u.transport.name,U.now()-a),e(null,u))}));return{abort:function(){s.abort()},forceMinPriority:function(e){t=e,s&&s.forceMinPriority(e)}}},t}(),me=ye;function be(t){return"pusherTransport"+(t?"TLS":"NonTLS")}function we(t){var e=He.getLocalStorage();if(e)try{delete e[be(t)]}catch(t){}}var _e=function(){function t(t,e){var n=e.delay;this.strategy=t,this.options={delay:n}}return t.prototype.isSupported=function(){return this.strategy.isSupported()},t.prototype.connect=function(t,e){var n,r=this.strategy,i=new D(this.options.delay,(function(){n=r.connect(t,e)}));return{abort:function(){i.ensureAborted(),n&&n.abort()},forceMinPriority:function(e){t=e,n&&n.forceMinPriority(e)}}},t}(),xe=function(){function t(t,e,n){this.test=t,this.trueBranch=e,this.falseBranch=n}return t.prototype.isSupported=function(){return(this.test()?this.trueBranch:this.falseBranch).isSupported()},t.prototype.connect=function(t,e){return(this.test()?this.trueBranch:this.falseBranch).connect(t,e)},t}(),Ee=xe,Se=function(){function t(t){this.strategy=t}return t.prototype.isSupported=function(){return this.strategy.isSupported()},t.prototype.connect=function(t,e){var n=this.strategy.connect(t,(function(t,r){r&&n.abort(),e(t,r)}));return n},t}();function Oe(t){return function(){return t.isSupported()}}var ke,Te=function(t,e,n){var r={};function i(e,i,o,a,s){var u=n(t,e,i,o,a,s);return r[e]=u,u}var o,a=Object.assign({},e,{hostNonTLS:t.wsHost+":"+t.wsPort,hostTLS:t.wsHost+":"+t.wssPort,httpPath:t.wsPath}),s=Object.assign({},a,{useTLS:!0}),u=Object.assign({},e,{hostNonTLS:t.httpHost+":"+t.httpPort,hostTLS:t.httpHost+":"+t.httpsPort,httpPath:t.httpPath}),c={loop:!0,timeout:15e3,timeoutLimit:6e4},l=new he({lives:2,minPingDelay:1e4,maxPingDelay:t.activityTimeout}),f=new he({lives:2,minPingDelay:1e4,maxPingDelay:t.activityTimeout}),h=i("ws","ws",3,a,l),d=i("wss","ws",3,s,l),p=i("sockjs","sockjs",1,u),v=i("xhr_streaming","xhr_streaming",1,u,f),g=i("xdr_streaming","xdr_streaming",1,u,f),y=i("xhr_polling","xhr_polling",1,u),m=i("xdr_polling","xdr_polling",1,u),b=new de([h],c),w=new de([d],c),_=new de([p],c),x=new de([new Ee(Oe(v),v,g)],c),E=new de([new Ee(Oe(y),y,m)],c),S=new de([new Ee(Oe(x),new ve([x,new _e(E,{delay:4e3})]),E)],c),O=new Ee(Oe(S),S,_);return o=e.useTLS?new ve([b,new _e(O,{delay:2e3})]):new ve([b,new _e(w,{delay:2e3}),new _e(O,{delay:5e3})]),new me(new Se(new Ee(Oe(h),o,O)),r,{ttl:18e5,timeline:e.timeline,useTLS:e.useTLS})},Pe={getRequest:function(t){var e=new window.XDomainRequest;return e.ontimeout=function(){t.emit("error",new g),t.close()},e.onerror=function(e){t.emit("error",e),t.close()},e.onprogress=function(){e.responseText&&e.responseText.length>0&&t.onChunk(200,e.responseText)},e.onload=function(){e.responseText&&e.responseText.length>0&&t.onChunk(200,e.responseText),t.emit("finished",200),t.close()},e},abortRequest:function(t){t.ontimeout=t.onerror=t.onprogress=t.onload=null,t.abort()}},Ce=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ae=function(t){function e(e,n,r){var i=t.call(this)||this;return i.hooks=e,i.method=n,i.url=r,i}return Ce(e,t),e.prototype.start=function(t){var e=this;this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=function(){e.close()},He.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(t)},e.prototype.close=function(){this.unloader&&(He.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)},e.prototype.onChunk=function(t,e){for(;;){var n=this.advanceBuffer(e);if(!n)break;this.emit("chunk",{status:t,data:n})}this.isBufferTooLong(e)&&this.emit("buffer_too_long")},e.prototype.advanceBuffer=function(t){var e=t.slice(this.position),n=e.indexOf("\n");return-1!==n?(this.position+=n+1,e.slice(0,n)):null},e.prototype.isBufferTooLong=function(t){return this.position===t.length&&t.length>262144},e}(vt),je=Ae;!function(t){t[t.CONNECTING=0]="CONNECTING",t[t.OPEN=1]="OPEN",t[t.CLOSED=3]="CLOSED"}(ke||(ke={}));var Ne=ke,Me=1;function Re(t){var e=-1===t.indexOf("?")?"?":"&";return t+e+"t="+ +new Date+"&n="+Me++}function De(t){return He.randomInt(t)}var Le,Ie=function(){function t(t,e){this.hooks=t,this.session=De(1e3)+"/"+function(t){for(var e=[],n=0;n<t;n++)e.push(De(32).toString(32));return e.join("")}(8),this.location=function(t){var e=/([^\?]*)\/*(\??.*)/.exec(t);return{base:e[1],queryString:e[2]}}(e),this.readyState=Ne.CONNECTING,this.openStream()}return t.prototype.send=function(t){return this.sendRaw(JSON.stringify([t]))},t.prototype.ping=function(){this.hooks.sendHeartbeat(this)},t.prototype.close=function(t,e){this.onClose(t,e,!0)},t.prototype.sendRaw=function(t){if(this.readyState!==Ne.OPEN)return!1;try{return He.createSocketRequest("POST",Re((e=this.location,n=this.session,e.base+"/"+n+"/xhr_send"))).start(t),!0}catch(t){return!1}var e,n},t.prototype.reconnect=function(){this.closeStream(),this.openStream()},t.prototype.onClose=function(t,e,n){this.closeStream(),this.readyState=Ne.CLOSED,this.onclose&&this.onclose({code:t,reason:e,wasClean:n})},t.prototype.onChunk=function(t){var e;if(200===t.status)switch(this.readyState===Ne.OPEN&&this.onActivity(),t.data.slice(0,1)){case"o":e=JSON.parse(t.data.slice(1)||"{}"),this.onOpen(e);break;case"a":e=JSON.parse(t.data.slice(1)||"[]");for(var n=0;n<e.length;n++)this.onEvent(e[n]);break;case"m":e=JSON.parse(t.data.slice(1)||"null"),this.onEvent(e);break;case"h":this.hooks.onHeartbeat(this);break;case"c":e=JSON.parse(t.data.slice(1)||"[]"),this.onClose(e[0],e[1],!0)}},t.prototype.onOpen=function(t){var e,n,r;this.readyState===Ne.CONNECTING?(t&&t.hostname&&(this.location.base=(e=this.location.base,n=t.hostname,(r=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(e))[1]+n+r[3])),this.readyState=Ne.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)},t.prototype.onEvent=function(t){this.readyState===Ne.OPEN&&this.onmessage&&this.onmessage({data:t})},t.prototype.onActivity=function(){this.onactivity&&this.onactivity()},t.prototype.onError=function(t){this.onerror&&this.onerror(t)},t.prototype.openStream=function(){var t=this;this.stream=He.createSocketRequest("POST",Re(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",(function(e){t.onChunk(e)})),this.stream.bind("finished",(function(e){t.hooks.onFinished(t,e)})),this.stream.bind("buffer_too_long",(function(){t.reconnect()}));try{this.stream.start()}catch(e){U.defer((function(){t.onError(e),t.onClose(1006,"Could not start streaming",!1)}))}},t.prototype.closeStream=function(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)},t}(),Ue={getReceiveURL:function(t,e){return t.base+"/"+e+"/xhr_streaming"+t.queryString},onHeartbeat:function(t){t.sendRaw("[]")},sendHeartbeat:function(t){t.sendRaw("[]")},onFinished:function(t,e){t.onClose(1006,"Connection interrupted ("+e+")",!1)}},Fe={getReceiveURL:function(t,e){return t.base+"/"+e+"/xhr"+t.queryString},onHeartbeat:function(){},sendHeartbeat:function(t){t.sendRaw("[]")},onFinished:function(t,e){200===e?t.reconnect():t.onClose(1006,"Connection interrupted ("+e+")",!1)}},Be={getRequest:function(t){var e=new(He.getXHRAPI());return e.onreadystatechange=e.onprogress=function(){switch(e.readyState){case 3:e.responseText&&e.responseText.length>0&&t.onChunk(e.status,e.responseText);break;case 4:e.responseText&&e.responseText.length>0&&t.onChunk(e.status,e.responseText),t.emit("finished",e.status),t.close()}},e},abortRequest:function(t){t.onreadystatechange=null,t.abort()}},ze={createStreamingSocket:function(t){return this.createSocket(Ue,t)},createPollingSocket:function(t){return this.createSocket(Fe,t)},createSocket:function(t,e){return new Ie(t,e)},createXHR:function(t,e){return this.createRequest(Be,t,e)},createRequest:function(t,e,n){return new je(t,e,n)},createXDR:function(t,e){return this.createRequest(Pe,t,e)}},qe={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:o,DependenciesReceivers:u,getDefaultStrategy:Te,Transports:At,transportConnectionInitializer:function(){var t=this;t.timeline.info(t.buildTimelineMessage({transport:t.name+(t.options.useTLS?"s":"")})),t.hooks.isInitialized()?t.changeState("initialized"):t.hooks.file?(t.changeState("initializing"),c.load(t.hooks.file,{useTLS:t.options.useTLS},(function(e,n){t.hooks.isInitialized()?(t.changeState("initialized"),n(!0)):(e&&t.onError(e),t.onClose(),n(!1))}))):t.onClose()},HTTPFactory:ze,TimelineTransport:ot,getXHRAPI:function(){return window.XMLHttpRequest},getWebSocketAPI:function(){return window.WebSocket||window.MozWebSocket},setup:function(t){var e=this;window.Pusher=t;var n=function(){e.onDocumentBody(t.ready)};window.JSON?n():c.load("json2",{},n)},getDocument:function(){return document},getProtocol:function(){return this.getDocument().location.protocol},getAuthorizers:function(){return{ajax:E,jsonp:tt}},onDocumentBody:function(t){var e=this;document.body?t():setTimeout((function(){e.onDocumentBody(t)}),0)},createJSONPRequest:function(t,e){return new rt(t,e)},createScriptRequest:function(t){return new et(t)},getLocalStorage:function(){try{return window.localStorage}catch(t){return}},createXHR:function(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest:function(){return new(this.getXHRAPI())},createMicrosoftXHR:function(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork:function(){return Nt},createWebSocket:function(t){return new(this.getWebSocketAPI())(t)},createSocketRequest:function(t,e){if(this.isXHRSupported())return this.HTTPFactory.createXHR(t,e);if(this.isXDRSupported(0===e.indexOf("https:")))return this.HTTPFactory.createXDR(t,e);throw"Cross-origin HTTP requests are not supported"},isXHRSupported:function(){var t=this.getXHRAPI();return Boolean(t)&&void 0!==(new t).withCredentials},isXDRSupported:function(t){var e=t?"https:":"http:",n=this.getProtocol();return Boolean(window.XDomainRequest)&&n===e},addUnloadListener:function(t){void 0!==window.addEventListener?window.addEventListener("unload",t,!1):void 0!==window.attachEvent&&window.attachEvent("onunload",t)},removeUnloadListener:function(t){void 0!==window.addEventListener?window.removeEventListener("unload",t,!1):void 0!==window.detachEvent&&window.detachEvent("onunload",t)},randomInt:function(t){return Math.floor((window.crypto||window.msCrypto).getRandomValues(new Uint32Array(1))[0]/Math.pow(2,32)*t)}},He=qe;!function(t){t[t.ERROR=3]="ERROR",t[t.INFO=6]="INFO",t[t.DEBUG=7]="DEBUG"}(Le||(Le={}));var We=Le,Ye=function(){function t(t,e,n){this.key=t,this.session=e,this.events=[],this.options=n||{},this.sent=0,this.uniqueID=0}return t.prototype.log=function(t,e){t<=this.options.level&&(this.events.push(F({},e,{timestamp:U.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())},t.prototype.error=function(t){this.log(We.ERROR,t)},t.prototype.info=function(t){this.log(We.INFO,t)},t.prototype.debug=function(t){this.log(We.DEBUG,t)},t.prototype.isEmpty=function(){return 0===this.events.length},t.prototype.send=function(t,e){var n=this,r=F({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],t(r,(function(t,r){t||n.sent++,e&&e(t,r)})),!0},t.prototype.generateUniqueID=function(){return this.uniqueID++,this.uniqueID},t}(),$e=Ye,Ve=function(){function t(t,e,n,r){this.name=t,this.priority=e,this.transport=n,this.options=r||{}}return t.prototype.isSupported=function(){return this.transport.isSupported({useTLS:this.options.useTLS})},t.prototype.connect=function(t,e){var n=this;if(!this.isSupported())return Je(new _,e);if(this.priority<t)return Je(new y,e);var r=!1,i=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),o=null,a=function(){i.unbind("initialized",a),i.connect()},s=function(){o=fe.createHandshake(i,(function(t){r=!0,l(),e(null,t)}))},u=function(t){l(),e(t)},c=function(){var t;l(),t=Z(i),e(new m(t))},l=function(){i.unbind("initialized",a),i.unbind("open",s),i.unbind("error",u),i.unbind("closed",c)};return i.bind("initialized",a),i.bind("open",s),i.bind("error",u),i.bind("closed",c),i.initialize(),{abort:function(){r||(l(),o?o.close():i.close())},forceMinPriority:function(t){r||n.priority<t&&(o?o.close():i.close())}}},t}();function Je(t,e){return U.defer((function(){e(t)})),{abort:function(){},forceMinPriority:function(){}}}var Xe=He.Transports,Ge=function(t,e,n,r,i,o){var a,s=Xe[n];if(!s)throw new w(n);return t.enabledTransports&&-1===z(t.enabledTransports,e)||t.disabledTransports&&-1!==z(t.disabledTransports,e)?a=Ze:(i=Object.assign({ignoreNullOrigin:t.ignoreNullOrigin},i),a=new Ve(e,r,o?o.getAssistant(s):s,i)),a},Ze={isSupported:function(){return!1},connect:function(t,e){var n=U.defer((function(){e(new _)}));return{abort:function(){n.ensureAborted()},forceMinPriority:function(){}}}},Ke=function(t){if(void 0===He.getAuthorizers()[t.transport])throw"'"+t.transport+"' is not a recognized auth transport";return function(e,n){var i=function(t,e){var n="socket_id="+encodeURIComponent(t.socketId);for(var r in e.params)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(e.params[r]);if(null!=e.paramsProvider){var i=e.paramsProvider();for(var r in i)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(i[r])}return n}(e,t);He.getAuthorizers()[t.transport](He,i,t,r.UserAuthentication,n)}},Qe=function(t){if(void 0===He.getAuthorizers()[t.transport])throw"'"+t.transport+"' is not a recognized auth transport";return function(e,n){var i=function(t,e){var n="socket_id="+encodeURIComponent(t.socketId);for(var r in n+="&channel_name="+encodeURIComponent(t.channelName),e.params)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(e.params[r]);if(null!=e.paramsProvider){var i=e.paramsProvider();for(var r in i)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(i[r])}return n}(e,t);He.getAuthorizers()[t.transport](He,i,t,r.ChannelAuthorization,n)}},tn=function(t,e,n){var r={authTransport:e.transport,authEndpoint:e.endpoint,auth:{params:e.params,headers:e.headers}};return function(e,i){var o=t.channel(e.channelName);n(o,r).authorize(e.socketId,i)}},en=function(){return en=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},en.apply(this,arguments)};function nn(t){return t.httpHost?t.httpHost:t.cluster?"sockjs-"+t.cluster+".pusher.com":a.httpHost}function rn(t){return t.wsHost?t.wsHost:t.cluster?on(t.cluster):on(a.cluster)}function on(t){return"ws-"+t+".pusher.com"}function an(t){return"https:"===He.getProtocol()||!1!==t.forceTLS}function sn(t){return"enableStats"in t?t.enableStats:"disableStats"in t&&!t.disableStats}function un(t){var e=en(en({},a.userAuthentication),t.userAuthentication);return"customHandler"in e&&null!=e.customHandler?e.customHandler:Ke(e)}function cn(t,e){var n=function(t,e){var n;return"channelAuthorization"in t?n=en(en({},a.channelAuthorization),t.channelAuthorization):(n={transport:t.authTransport||a.authTransport,endpoint:t.authEndpoint||a.authEndpoint},"auth"in t&&("params"in t.auth&&(n.params=t.auth.params),"headers"in t.auth&&(n.headers=t.auth.headers)),"authorizer"in t&&(n.customHandler=tn(e,n,t.authorizer))),n}(t,e);return"customHandler"in n&&null!=n.customHandler?n.customHandler:Qe(n)}var ln=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fn=function(t){function e(e){var n=t.call(this,(function(t,e){Q.debug("No callbacks on watchlist events for "+t)}))||this;return n.pusher=e,n.bindWatchlistInternalEvent(),n}return ln(e,t),e.prototype.handleEvent=function(t){var e=this;t.data.events.forEach((function(t){e.emit(t.name,t)}))},e.prototype.bindWatchlistInternalEvent=function(){var t=this;this.pusher.connection.bind("message",(function(e){"pusher_internal:watchlist_events"===e.event&&t.handleEvent(e)}))},e}(vt),hn=fn,dn=function(){var t,e;return{promise:new Promise((function(n,r){t=n,e=r})),resolve:t,reject:e}},pn=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vn=function(t){function e(e){var n=t.call(this,(function(t,e){Q.debug("No callbacks on user for "+t)}))||this;return n.signin_requested=!1,n.user_data=null,n.serverToUserChannel=null,n.signinDonePromise=null,n._signinDoneResolve=null,n._onAuthorize=function(t,e){if(t)return Q.warn("Error during signin: "+t),void n._cleanup();n.pusher.send_event("pusher:signin",{auth:e.auth,user_data:e.user_data})},n.pusher=e,n.pusher.connection.bind("state_change",(function(t){var e=t.previous,r=t.current;"connected"!==e&&"connected"===r&&n._signin(),"connected"===e&&"connected"!==r&&(n._cleanup(),n._newSigninPromiseIfNeeded())})),n.watchlist=new hn(e),n.pusher.connection.bind("message",(function(t){"pusher:signin_success"===t.event&&n._onSigninSuccess(t.data),n.serverToUserChannel&&n.serverToUserChannel.name===t.channel&&n.serverToUserChannel.handleEvent(t)})),n}return pn(e,t),e.prototype.signin=function(){this.signin_requested||(this.signin_requested=!0,this._signin())},e.prototype._signin=function(){this.signin_requested&&(this._newSigninPromiseIfNeeded(),"connected"===this.pusher.connection.state&&this.pusher.config.userAuthenticator({socketId:this.pusher.connection.socket_id},this._onAuthorize))},e.prototype._onSigninSuccess=function(t){try{this.user_data=JSON.parse(t.user_data)}catch(e){return Q.error("Failed parsing user data after signin: "+t.user_data),void this._cleanup()}if("string"!=typeof this.user_data.id||""===this.user_data.id)return Q.error("user_data doesn't contain an id. user_data: "+this.user_data),void this._cleanup();this._signinDoneResolve(),this._subscribeChannels()},e.prototype._subscribeChannels=function(){var t,e=this;this.serverToUserChannel=new Ht("#server-to-user-"+this.user_data.id,this.pusher),this.serverToUserChannel.bind_global((function(t,n){0!==t.indexOf("pusher_internal:")&&0!==t.indexOf("pusher:")&&e.emit(t,n)})),(t=this.serverToUserChannel).subscriptionPending&&t.subscriptionCancelled?t.reinstateSubscription():t.subscriptionPending||"connected"!==e.pusher.connection.state||t.subscribe()},e.prototype._cleanup=function(){this.user_data=null,this.serverToUserChannel&&(this.serverToUserChannel.unbind_all(),this.serverToUserChannel.disconnect(),this.serverToUserChannel=null),this.signin_requested&&this._signinDoneResolve()},e.prototype._newSigninPromiseIfNeeded=function(){if(this.signin_requested&&(!this.signinDonePromise||this.signinDonePromise.done)){var t=dn(),e=t.promise,n=t.resolve;e.done=!1;var r=function(){e.done=!0};e.then(r).catch(r),this.signinDonePromise=e,this._signinDoneResolve=n}},e}(vt),gn=vn,yn=function(){function t(e,n){var r=this;if(function(t){if(null==t)throw"You must pass your app key when you instantiate Pusher."}(e),!(n=n||{}).cluster&&!n.wsHost&&!n.httpHost){var i=f("javascriptQuickStart");Q.warn("You should always specify a cluster when connecting. "+i)}"disableStats"in n&&Q.warn("The disableStats option is deprecated in favor of enableStats"),this.key=e,this.config=function(t,e){var n={activityTimeout:t.activityTimeout||a.activityTimeout,cluster:t.cluster||a.cluster,httpPath:t.httpPath||a.httpPath,httpPort:t.httpPort||a.httpPort,httpsPort:t.httpsPort||a.httpsPort,pongTimeout:t.pongTimeout||a.pongTimeout,statsHost:t.statsHost||a.stats_host,unavailableTimeout:t.unavailableTimeout||a.unavailableTimeout,wsPath:t.wsPath||a.wsPath,wsPort:t.wsPort||a.wsPort,wssPort:t.wssPort||a.wssPort,enableStats:sn(t),httpHost:nn(t),useTLS:an(t),wsHost:rn(t),userAuthenticator:un(t),channelAuthorizer:cn(t,e)};return"disabledTransports"in t&&(n.disabledTransports=t.disabledTransports),"enabledTransports"in t&&(n.enabledTransports=t.enabledTransports),"ignoreNullOrigin"in t&&(n.ignoreNullOrigin=t.ignoreNullOrigin),"timelineParams"in t&&(n.timelineParams=t.timelineParams),"nacl"in t&&(n.nacl=t.nacl),n}(n,this),this.channels=fe.createChannels(),this.global_emitter=new vt,this.sessionID=He.randomInt(1e9),this.timeline=new $e(this.key,this.sessionID,{cluster:this.config.cluster,features:t.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:We.INFO,version:a.VERSION}),this.config.enableStats&&(this.timelineSender=fe.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+He.TimelineTransport.name})),this.connection=fe.createConnectionManager(this.key,{getStrategy:function(t){return He.getDefaultStrategy(r.config,t,Ge)},timeline:this.timeline,activityTimeout:this.config.activityTimeout,pongTimeout:this.config.pongTimeout,unavailableTimeout:this.config.unavailableTimeout,useTLS:Boolean(this.config.useTLS)}),this.connection.bind("connected",(function(){r.subscribeAll(),r.timelineSender&&r.timelineSender.send(r.connection.isUsingTLS())})),this.connection.bind("message",(function(t){var e=0===t.event.indexOf("pusher_internal:");if(t.channel){var n=r.channel(t.channel);n&&n.handleEvent(t)}e||r.global_emitter.emit(t.event,t.data)})),this.connection.bind("connecting",(function(){r.channels.disconnect()})),this.connection.bind("disconnected",(function(){r.channels.disconnect()})),this.connection.bind("error",(function(t){Q.warn(t)})),t.instances.push(this),this.timeline.info({instances:t.instances.length}),this.user=new gn(this),t.isReady&&this.connect()}return t.ready=function(){t.isReady=!0;for(var e=0,n=t.instances.length;e<n;e++)t.instances[e].connect()},t.getClientFeatures=function(){return H(V({ws:He.Transports.ws},(function(t){return t.isSupported({})})))},t.prototype.channel=function(t){return this.channels.find(t)},t.prototype.allChannels=function(){return this.channels.all()},t.prototype.connect=function(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var t=this.connection.isUsingTLS(),e=this.timelineSender;this.timelineSenderTimer=new L(6e4,(function(){e.send(t)}))}},t.prototype.disconnect=function(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)},t.prototype.bind=function(t,e,n){return this.global_emitter.bind(t,e,n),this},t.prototype.unbind=function(t,e,n){return this.global_emitter.unbind(t,e,n),this},t.prototype.bind_global=function(t){return this.global_emitter.bind_global(t),this},t.prototype.unbind_global=function(t){return this.global_emitter.unbind_global(t),this},t.prototype.unbind_all=function(t){return this.global_emitter.unbind_all(),this},t.prototype.subscribeAll=function(){var t;for(t in this.channels.channels)this.channels.channels.hasOwnProperty(t)&&this.subscribe(t)},t.prototype.subscribe=function(t){var e=this.channels.add(t,this);return e.subscriptionPending&&e.subscriptionCancelled?e.reinstateSubscription():e.subscriptionPending||"connected"!==this.connection.state||e.subscribe(),e},t.prototype.unsubscribe=function(t){var e=this.channels.find(t);e&&e.subscriptionPending?e.cancelSubscription():(e=this.channels.remove(t))&&e.subscribed&&e.unsubscribe()},t.prototype.send_event=function(t,e,n){return this.connection.send_event(t,e,n)},t.prototype.shouldUseTLS=function(){return this.config.useTLS},t.prototype.signin=function(){this.user.signin()},t.instances=[],t.isReady=!1,t.logToConsole=!1,t.Runtime=He,t.ScriptReceivers=He.ScriptReceivers,t.DependenciesReceivers=He.DependenciesReceivers,t.auth_callbacks=He.auth_callbacks,t}(),mn=e.default=yn;He.setup(yn)}])},{get exports(){return zo},set exports(t){zo=t}}.exports=Bo();var qo=Fo(zo),Ho=function(t){return t&&t.Math==Math&&t},Wo=Ho("object"==typeof globalThis&&globalThis)||Ho("object"==typeof window&&window)||Ho("object"==typeof self&&self)||Ho("object"==typeof Uo&&Uo)||function(){return this}()||Uo||Function("return this")(),Yo={},$o=function(t){try{return!!t()}catch(t){return!0}},Vo=!$o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Jo=!$o((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),Xo=Jo,Go=Function.prototype.call,Zo=Xo?Go.bind(Go):function(){return Go.apply(Go,arguments)},Ko={},Qo={}.propertyIsEnumerable,ta=Object.getOwnPropertyDescriptor,ea=ta&&!Qo.call({1:2},1);Ko.f=ea?function(t){var e=ta(this,t);return!!e&&e.enumerable}:Qo;var na,ra,ia=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},oa=Jo,aa=Function.prototype,sa=aa.call,ua=oa&&aa.bind.bind(sa,sa),ca=oa?ua:function(t){return function(){return sa.apply(t,arguments)}},la=ca,fa=la({}.toString),ha=la("".slice),da=function(t){return ha(fa(t),8,-1)},pa=$o,va=da,ga=Object,ya=ca("".split),ma=pa((function(){return!ga("z").propertyIsEnumerable(0)}))?function(t){return"String"==va(t)?ya(t,""):ga(t)}:ga,ba=function(t){return null==t},wa=ba,_a=TypeError,xa=function(t){if(wa(t))throw _a("Can't call method on "+t);return t},Ea=ma,Sa=xa,Oa=function(t){return Ea(Sa(t))},ka="object"==typeof document&&document.all,Ta={all:ka,IS_HTMLDDA:void 0===ka&&void 0!==ka},Pa=Ta.all,Ca=Ta.IS_HTMLDDA?function(t){return"function"==typeof t||t===Pa}:function(t){return"function"==typeof t},Aa=Ca,ja=Ta.all,Na=Ta.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:Aa(t)||t===ja}:function(t){return"object"==typeof t?null!==t:Aa(t)},Ma=Wo,Ra=Ca,Da=function(t,e){return arguments.length<2?(n=Ma[t],Ra(n)?n:void 0):Ma[t]&&Ma[t][e];var n},La=ca({}.isPrototypeOf),Ia="undefined"!=typeof navigator&&String(navigator.userAgent)||"",Ua=Wo,Fa=Ia,Ba=Ua.process,za=Ua.Deno,qa=Ba&&Ba.versions||za&&za.version,Ha=qa&&qa.v8;Ha&&(ra=(na=Ha.split("."))[0]>0&&na[0]<4?1:+(na[0]+na[1])),!ra&&Fa&&(!(na=Fa.match(/Edge\/(\d+)/))||na[1]>=74)&&(na=Fa.match(/Chrome\/(\d+)/))&&(ra=+na[1]);var Wa=ra,Ya=Wa,$a=$o,Va=Wo.String,Ja=!!Object.getOwnPropertySymbols&&!$a((function(){var t=Symbol();return!Va(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Ya&&Ya<41})),Xa=Ja&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ga=Da,Za=Ca,Ka=La,Qa=Object,ts=Xa?function(t){return"symbol"==typeof t}:function(t){var e=Ga("Symbol");return Za(e)&&Ka(e.prototype,Qa(t))},es=String,ns=function(t){try{return es(t)}catch(t){return"Object"}},rs=Ca,is=ns,os=TypeError,as=function(t){if(rs(t))return t;throw os(is(t)+" is not a function")},ss=as,us=ba,cs=function(t,e){var n=t[e];return us(n)?void 0:ss(n)},ls=Zo,fs=Ca,hs=Na,ds=TypeError,ps={},vs={get exports(){return ps},set exports(t){ps=t}},gs=Wo,ys=Object.defineProperty,ms=function(t,e){try{ys(gs,t,{value:e,configurable:!0,writable:!0})}catch(n){gs[t]=e}return e},bs=ms,ws="__core-js_shared__",_s=Wo[ws]||bs(ws,{}),xs=_s;(vs.exports=function(t,e){return xs[t]||(xs[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.30.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Es=xa,Ss=Object,Os=function(t){return Ss(Es(t))},ks=Os,Ts=ca({}.hasOwnProperty),Ps=Object.hasOwn||function(t,e){return Ts(ks(t),e)},Cs=ca,As=0,js=Math.random(),Ns=Cs(1..toString),Ms=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Ns(++As+js,36)},Rs=ps,Ds=Ps,Ls=Ms,Is=Ja,Us=Xa,Fs=Wo.Symbol,Bs=Rs("wks"),zs=Us?Fs.for||Fs:Fs&&Fs.withoutSetter||Ls,qs=function(t){return Ds(Bs,t)||(Bs[t]=Is&&Ds(Fs,t)?Fs[t]:zs("Symbol."+t)),Bs[t]},Hs=Zo,Ws=Na,Ys=ts,$s=cs,Vs=function(t,e){var n,r;if("string"===e&&fs(n=t.toString)&&!hs(r=ls(n,t)))return r;if(fs(n=t.valueOf)&&!hs(r=ls(n,t)))return r;if("string"!==e&&fs(n=t.toString)&&!hs(r=ls(n,t)))return r;throw ds("Can't convert object to primitive value")},Js=TypeError,Xs=qs("toPrimitive"),Gs=function(t,e){if(!Ws(t)||Ys(t))return t;var n,r=$s(t,Xs);if(r){if(void 0===e&&(e="default"),n=Hs(r,t,e),!Ws(n)||Ys(n))return n;throw Js("Can't convert object to primitive value")}return void 0===e&&(e="number"),Vs(t,e)},Zs=Gs,Ks=ts,Qs=function(t){var e=Zs(t,"string");return Ks(e)?e:e+""},tu=Na,eu=Wo.document,nu=tu(eu)&&tu(eu.createElement),ru=function(t){return nu?eu.createElement(t):{}},iu=ru,ou=!Vo&&!$o((function(){return 7!=Object.defineProperty(iu("div"),"a",{get:function(){return 7}}).a})),au=Vo,su=Zo,uu=Ko,cu=ia,lu=Oa,fu=Qs,hu=Ps,du=ou,pu=Object.getOwnPropertyDescriptor;Yo.f=au?pu:function(t,e){if(t=lu(t),e=fu(e),du)try{return pu(t,e)}catch(t){}if(hu(t,e))return cu(!su(uu.f,t,e),t[e])};var vu={},gu=Vo&&$o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),yu=Na,mu=String,bu=TypeError,wu=function(t){if(yu(t))return t;throw bu(mu(t)+" is not an object")},_u=Vo,xu=ou,Eu=gu,Su=wu,Ou=Qs,ku=TypeError,Tu=Object.defineProperty,Pu=Object.getOwnPropertyDescriptor,Cu="enumerable",Au="configurable",ju="writable";vu.f=_u?Eu?function(t,e,n){if(Su(t),e=Ou(e),Su(n),"function"==typeof t&&"prototype"===e&&"value"in n&&ju in n&&!n[ju]){var r=Pu(t,e);r&&r[ju]&&(t[e]=n.value,n={configurable:Au in n?n[Au]:r[Au],enumerable:Cu in n?n[Cu]:r[Cu],writable:!1})}return Tu(t,e,n)}:Tu:function(t,e,n){if(Su(t),e=Ou(e),Su(n),xu)try{return Tu(t,e,n)}catch(t){}if("get"in n||"set"in n)throw ku("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var Nu=vu,Mu=ia,Ru=Vo?function(t,e,n){return Nu.f(t,e,Mu(1,n))}:function(t,e,n){return t[e]=n,t},Du={},Lu={get exports(){return Du},set exports(t){Du=t}},Iu=Vo,Uu=Ps,Fu=Function.prototype,Bu=Iu&&Object.getOwnPropertyDescriptor,zu=Uu(Fu,"name"),qu={EXISTS:zu,PROPER:zu&&"something"===function(){}.name,CONFIGURABLE:zu&&(!Iu||Iu&&Bu(Fu,"name").configurable)},Hu=Ca,Wu=_s,Yu=ca(Function.toString);Hu(Wu.inspectSource)||(Wu.inspectSource=function(t){return Yu(t)});var $u,Vu,Ju,Xu=Wu.inspectSource,Gu=Ca,Zu=Wo.WeakMap,Ku=Gu(Zu)&&/native code/.test(String(Zu)),Qu=Ms,tc=ps("keys"),ec=function(t){return tc[t]||(tc[t]=Qu(t))},nc={},rc=Ku,ic=Wo,oc=Na,ac=Ru,sc=Ps,uc=_s,cc=ec,lc=nc,fc="Object already initialized",hc=ic.TypeError,dc=ic.WeakMap;if(rc||uc.state){var pc=uc.state||(uc.state=new dc);pc.get=pc.get,pc.has=pc.has,pc.set=pc.set,$u=function(t,e){if(pc.has(t))throw hc(fc);return e.facade=t,pc.set(t,e),e},Vu=function(t){return pc.get(t)||{}},Ju=function(t){return pc.has(t)}}else{var vc=cc("state");lc[vc]=!0,$u=function(t,e){if(sc(t,vc))throw hc(fc);return e.facade=t,ac(t,vc,e),e},Vu=function(t){return sc(t,vc)?t[vc]:{}},Ju=function(t){return sc(t,vc)}}var gc={set:$u,get:Vu,has:Ju,enforce:function(t){return Ju(t)?Vu(t):$u(t,{})},getterFor:function(t){return function(e){var n;if(!oc(e)||(n=Vu(e)).type!==t)throw hc("Incompatible receiver, "+t+" required");return n}}},yc=ca,mc=$o,bc=Ca,wc=Ps,_c=Vo,xc=qu.CONFIGURABLE,Ec=Xu,Sc=gc.enforce,Oc=gc.get,kc=String,Tc=Object.defineProperty,Pc=yc("".slice),Cc=yc("".replace),Ac=yc([].join),jc=_c&&!mc((function(){return 8!==Tc((function(){}),"length",{value:8}).length})),Nc=String(String).split("String"),Mc=Lu.exports=function(t,e,n){"Symbol("===Pc(kc(e),0,7)&&(e="["+Cc(kc(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!wc(t,"name")||xc&&t.name!==e)&&(_c?Tc(t,"name",{value:e,configurable:!0}):t.name=e),jc&&n&&wc(n,"arity")&&t.length!==n.arity&&Tc(t,"length",{value:n.arity});try{n&&wc(n,"constructor")&&n.constructor?_c&&Tc(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=Sc(t);return wc(r,"source")||(r.source=Ac(Nc,"string"==typeof e?e:"")),t};Function.prototype.toString=Mc((function(){return bc(this)&&Oc(this).source||Ec(this)}),"toString");var Rc=Ca,Dc=vu,Lc=Du,Ic=ms,Uc=function(t,e,n,r){r||(r={});var i=r.enumerable,o=void 0!==r.name?r.name:e;if(Rc(n)&&Lc(n,o,r),r.global)i?t[e]=n:Ic(e,n);else{try{r.unsafe?t[e]&&(i=!0):delete t[e]}catch(t){}i?t[e]=n:Dc.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},Fc={},Bc=Math.ceil,zc=Math.floor,qc=Math.trunc||function(t){var e=+t;return(e>0?zc:Bc)(e)},Hc=function(t){var e=+t;return e!=e||0===e?0:qc(e)},Wc=Hc,Yc=Math.max,$c=Math.min,Vc=function(t,e){var n=Wc(t);return n<0?Yc(n+e,0):$c(n,e)},Jc=Hc,Xc=Math.min,Gc=function(t){return t>0?Xc(Jc(t),9007199254740991):0},Zc=Gc,Kc=function(t){return Zc(t.length)},Qc=Oa,tl=Vc,el=Kc,nl=function(t){return function(e,n,r){var i,o=Qc(e),a=el(o),s=tl(r,a);if(t&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},rl={includes:nl(!0),indexOf:nl(!1)},il=Ps,ol=Oa,al=rl.indexOf,sl=nc,ul=ca([].push),cl=function(t,e){var n,r=ol(t),i=0,o=[];for(n in r)!il(sl,n)&&il(r,n)&&ul(o,n);for(;e.length>i;)il(r,n=e[i++])&&(~al(o,n)||ul(o,n));return o},ll=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],fl=cl,hl=ll.concat("length","prototype");Fc.f=Object.getOwnPropertyNames||function(t){return fl(t,hl)};var dl={};dl.f=Object.getOwnPropertySymbols;var pl,vl=Da,gl=Fc,yl=dl,ml=wu,bl=ca([].concat),wl=vl("Reflect","ownKeys")||function(t){var e=gl.f(ml(t)),n=yl.f;return n?bl(e,n(t)):e},_l=Ps,xl=wl,El=Yo,Sl=vu,Ol=function(t,e,n){for(var r=xl(e),i=Sl.f,o=El.f,a=0;a<r.length;a++){var s=r[a];_l(t,s)||n&&_l(n,s)||i(t,s,o(e,s))}},kl=$o,Tl=Ca,Pl=/#|\.prototype\./,Cl=function(t,e){var n=jl[Al(t)];return n==Ml||n!=Nl&&(Tl(e)?kl(e):!!e)},Al=Cl.normalize=function(t){return String(t).replace(Pl,".").toLowerCase()},jl=Cl.data={},Nl=Cl.NATIVE="N",Ml=Cl.POLYFILL="P",Rl=Cl,Dl=Wo,Ll=Yo.f,Il=Ru,Ul=Uc,Fl=ms,Bl=Ol,zl=Rl,ql=function(t,e){var n,r,i,o,a,s=t.target,u=t.global,c=t.stat;if(n=u?Dl:c?Dl[s]||Fl(s,{}):(Dl[s]||{}).prototype)for(r in e){if(o=e[r],i=t.dontCallGetSet?(a=Ll(n,r))&&a.value:n[r],!zl(u?r:s+(c?".":"#")+r,t.forced)&&void 0!==i){if(typeof o==typeof i)continue;Bl(o,i)}(t.sham||i&&i.sham)&&Il(o,"sham",!0),Ul(n,r,o,t)}},Hl=cl,Wl=ll,Yl=Object.keys||function(t){return Hl(t,Wl)},$l=Os,Vl=Yl;ql({target:"Object",stat:!0,forced:$o((function(){Vl(1)}))},{keys:function(t){return Vl($l(t))}});var Jl=document.querySelector(".basement-chat-box"),Xl=JSON.parse(null!==(pl=null==Jl?void 0:Jl.getAttribute("data-echo-options"))&&void 0!==pl?pl:"{}");function Gl(t){if(t.includes("full"))return.99;if(t.includes("half"))return.5;if(!t.includes("threshold"))return 0;let e=t[t.indexOf("threshold")+1];return"100"===e?1:"0"===e?0:Number(`.${e}`)}function Zl(t){let e=t.match(/^(-?[0-9]+)(px|%)?$/);return e?e[1]+(e[2]||"px"):void 0}function Kl(t){const e="0px 0px 0px 0px",n=t.indexOf("margin");if(-1===n)return e;let r=[];for(let e=1;e<5;e++)r.push(Zl(t[n+e]||""));return r=r.filter((t=>void 0!==t)),r.length?r.join(" ").trim():e}window.Alpine=Cn,window.axios=co,window.Pusher=qo,window.Echo=new Io(Xl);var Ql=function(t){t.directive("intersect",((t,{value:e,expression:n,modifiers:r},{evaluateLater:i,cleanup:o})=>{let a=i(n),s={rootMargin:Kl(r),threshold:Gl(r)},u=new IntersectionObserver((t=>{t.forEach((t=>{t.isIntersecting!==("leave"===e)&&(a(),r.includes("once")&&u.disconnect())}))}),s);u.observe(t),o((()=>{u.disconnect()}))}))},tf=ca([].slice),ef=ca,nf=as,rf=Na,of=Ps,af=tf,sf=Jo,uf=Function,cf=ef([].concat),lf=ef([].join),ff={},hf=sf?uf.bind:function(t){var e=nf(this),n=e.prototype,r=af(arguments,1),i=function(){var n=cf(r,af(arguments));return this instanceof i?function(t,e,n){if(!of(ff,e)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";ff[e]=uf("C,a","return new C("+lf(r,",")+")")}return ff[e](t,n)}(e,n.length,n):e.apply(t,n)};return rf(n)&&(i.prototype=n),i},df=hf;ql({target:"Function",proto:!0,forced:Function.bind!==df},{bind:df});var pf={};
|
||
/**
|
||
* @license
|
||
*
|
||
* Push v1.0.9
|
||
* =========
|
||
* A compact, cross-browser solution for the JavaScript Notifications API
|
||
*
|
||
* Credits
|
||
* -------
|
||
* Tsvetan Tsvetkov (ttsvetko)
|
||
* Alex Gibson (alexgibson)
|
||
*
|
||
* License
|
||
* -------
|
||
*
|
||
* The MIT License (MIT)
|
||
*
|
||
* Copyright (c) 2015-2017 Tyler Nickerson
|
||
*
|
||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||
* of this software and associated documentation files (the "Software"), to deal
|
||
* in the Software without restriction, including without limitation the rights
|
||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||
* copies of the Software, and to permit persons to whom the Software is
|
||
* furnished to do so, subject to the following conditions:
|
||
*
|
||
* The above copyright notice and this permission notice shall be included in
|
||
* all copies or substantial portions of the Software.
|
||
*
|
||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||
* THE SOFTWARE.
|
||
*/
|
||
!function(t,e){t.exports=function(){var t={errors:{incompatible:"".concat("PushError:"," Push.js is incompatible with browser."),invalid_plugin:"".concat("PushError:"," plugin class missing from plugin manifest (invalid plugin). Please check the documentation."),invalid_title:"".concat("PushError:"," title of notification must be a string"),permission_denied:"".concat("PushError:"," permission request declined"),sw_notification_error:"".concat("PushError:"," could not show a ServiceWorker notification due to the following reason: "),sw_registration_error:"".concat("PushError:"," could not register the ServiceWorker due to the following reason: "),unknown_interface:"".concat("PushError:"," unable to create notification: unknown interface")}};function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}var c=function(){function t(e){n(this,t),this._win=e,this.GRANTED="granted",this.DEFAULT="default",this.DENIED="denied",this._permissions=[this.GRANTED,this.DEFAULT,this.DENIED]}return i(t,[{key:"request",value:function(t,e){return arguments.length>0?this._requestWithCallback.apply(this,arguments):this._requestAsPromise()}},{key:"_requestWithCallback",value:function(t,e){var n,r=this,i=this.get(),o=!1,a=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r._win.Notification.permission;o||(o=!0,void 0===n&&r._win.webkitNotifications&&(n=r._win.webkitNotifications.checkPermission()),n===r.GRANTED||0===n?t&&t():e&&e())};i!==this.DEFAULT?a(i):this._win.webkitNotifications&&this._win.webkitNotifications.checkPermission?this._win.webkitNotifications.requestPermission(a):this._win.Notification&&this._win.Notification.requestPermission?(n=this._win.Notification.requestPermission(a))&&n.then&&n.then(a).catch((function(){e&&e()})):t&&t()}},{key:"_requestAsPromise",value:function(){var t=this,e=this.get(),n=e!==this.DEFAULT,r=this._win.Notification&&this._win.Notification.requestPermission,i=this._win.webkitNotifications&&this._win.webkitNotifications.checkPermission;return new Promise((function(o,a){var s,u=!1,c=function(e){u||(u=!0,function(e){return e===t.GRANTED||0===e}(e)?o():a())};n?c(e):i?t._win.webkitNotifications.requestPermission((function(t){c(t)})):r?(s=t._win.Notification.requestPermission(c))&&s.then&&s.then(c).catch(a):o()}))}},{key:"has",value:function(){return this.get()===this.GRANTED}},{key:"get",value:function(){return this._win.Notification&&this._win.Notification.permission?this._win.Notification.permission:this._win.webkitNotifications&&this._win.webkitNotifications.checkPermission?this._permissions[this._win.webkitNotifications.checkPermission()]:navigator.mozNotification?this.GRANTED:this._win.external&&this._win.external.msIsSiteMode?this._win.external.msIsSiteMode()?this.GRANTED:this.DEFAULT:this.GRANTED}}]),t}(),l=function(){function t(){n(this,t)}return i(t,null,[{key:"isUndefined",value:function(t){return void 0===t}},{key:"isNull",value:function(t){return null===obj}},{key:"isString",value:function(t){return"string"==typeof t}},{key:"isFunction",value:function(t){return t&&"[object Function]"==={}.toString.call(t)}},{key:"isObject",value:function(t){return"object"===e(t)}},{key:"objectMerge",value:function(t,e){for(var n in e)t.hasOwnProperty(n)&&this.isObject(t[n])&&this.isObject(e[n])?this.objectMerge(t[n],e[n]):t[n]=e[n]}}]),t}(),f=function t(e){n(this,t),this._win=e},h=function(t){function e(){return n(this,e),u(this,a(e).apply(this,arguments))}return o(e,f),i(e,[{key:"isSupported",value:function(){return void 0!==this._win.Notification}},{key:"create",value:function(t,e){return new this._win.Notification(t,{icon:l.isString(e.icon)||l.isUndefined(e.icon)||l.isNull(e.icon)?e.icon:e.icon.x32,body:e.body,tag:e.tag,requireInteraction:e.requireInteraction})}},{key:"close",value:function(t){t.close()}}]),e}(),d=function(e){function r(){return n(this,r),u(this,a(r).apply(this,arguments))}return o(r,f),i(r,[{key:"isSupported",value:function(){return void 0!==this._win.navigator&&void 0!==this._win.navigator.serviceWorker}},{key:"getFunctionBody",value:function(t){var e=t.toString().match(/function[^{]+{([\s\S]*)}$/);return null!=e&&e.length>1?e[1]:null}},{key:"create",value:function(e,n,r,i,o){var a=this;this._win.navigator.serviceWorker.register(i),this._win.navigator.serviceWorker.ready.then((function(i){var s={id:e,link:r.link,origin:document.location.href,onClick:l.isFunction(r.onClick)?a.getFunctionBody(r.onClick):"",onClose:l.isFunction(r.onClose)?a.getFunctionBody(r.onClose):""};void 0!==r.data&&null!==r.data&&(s=Object.assign(s,r.data)),i.showNotification(n,{icon:r.icon,body:r.body,vibrate:r.vibrate,tag:r.tag,data:s,requireInteraction:r.requireInteraction,silent:r.silent}).then((function(){i.getNotifications().then((function(t){i.active.postMessage(""),o(t)}))})).catch((function(e){throw new Error(t.errors.sw_notification_error+e.message)}))})).catch((function(e){throw new Error(t.errors.sw_registration_error+e.message)}))}},{key:"close",value:function(){}}]),r}(),p=function(t){function e(){return n(this,e),u(this,a(e).apply(this,arguments))}return o(e,f),i(e,[{key:"isSupported",value:function(){return void 0!==this._win.navigator.mozNotification}},{key:"create",value:function(t,e){var n=this._win.navigator.mozNotification.createNotification(t,e.body,e.icon);return n.show(),n}}]),e}(),v=function(t){function e(){return n(this,e),u(this,a(e).apply(this,arguments))}return o(e,f),i(e,[{key:"isSupported",value:function(){return void 0!==this._win.external&&void 0!==this._win.external.msIsSiteMode}},{key:"create",value:function(t,e){return this._win.external.msSiteModeClearIconOverlay(),this._win.external.msSiteModeSetIconOverlay(l.isString(e.icon)||l.isUndefined(e.icon)?e.icon:e.icon.x16,t),this._win.external.msSiteModeActivate(),null}},{key:"close",value:function(){this._win.external.msSiteModeClearIconOverlay()}}]),e}(),g=function(t){function e(){return n(this,e),u(this,a(e).apply(this,arguments))}return o(e,f),i(e,[{key:"isSupported",value:function(){return void 0!==this._win.webkitNotifications}},{key:"create",value:function(t,e){var n=this._win.webkitNotifications.createNotification(e.icon,t,e.body);return n.show(),n}},{key:"close",value:function(t){t.cancel()}}]),e}();return new(function(){function e(t){n(this,e),this._currentId=0,this._notifications={},this._win=t,this.Permission=new c(t),this._agents={desktop:new h(t),chrome:new d(t),firefox:new p(t),ms:new v(t),webkit:new g(t)},this._configuration={serviceWorker:"/serviceWorker.min.js",fallback:function(t){}}}return i(e,[{key:"_closeNotification",value:function(e){var n=!0,r=this._notifications[e];if(void 0!==r){if(n=this._removeNotification(e),this._agents.desktop.isSupported())this._agents.desktop.close(r);else if(this._agents.webkit.isSupported())this._agents.webkit.close(r);else{if(!this._agents.ms.isSupported())throw n=!1,new Error(t.errors.unknown_interface);this._agents.ms.close()}return n}return!1}},{key:"_addNotification",value:function(t){var e=this._currentId;return this._notifications[e]=t,this._currentId++,e}},{key:"_removeNotification",value:function(t){var e=!1;return this._notifications.hasOwnProperty(t)&&(delete this._notifications[t],e=!0),e}},{key:"_prepareNotification",value:function(t,e){var n,r=this;return n={get:function(){return r._notifications[t]},close:function(){r._closeNotification(t)}},e.timeout&&setTimeout((function(){n.close()}),e.timeout),n}},{key:"_serviceWorkerCallback",value:function(t,e,n){var r=this,i=this._addNotification(t[t.length-1]);navigator&&navigator.serviceWorker&&(navigator.serviceWorker.addEventListener("message",(function(t){var e=JSON.parse(t.data);"close"===e.action&&Number.isInteger(e.id)&&r._removeNotification(e.id)})),n(this._prepareNotification(i,e))),n(null)}},{key:"_createCallback",value:function(t,e,n){var r,i=this,o=null;if(e=e||{},r=function(t){i._removeNotification(t),l.isFunction(e.onClose)&&e.onClose.call(i,o)},this._agents.desktop.isSupported())try{o=this._agents.desktop.create(t,e)}catch(r){var a=this._currentId,s=this.config().serviceWorker;this._agents.chrome.isSupported()&&this._agents.chrome.create(a,t,e,s,(function(t){return i._serviceWorkerCallback(t,e,n)}))}else this._agents.webkit.isSupported()?o=this._agents.webkit.create(t,e):this._agents.firefox.isSupported()?this._agents.firefox.create(t,e):this._agents.ms.isSupported()?o=this._agents.ms.create(t,e):(e.title=t,this.config().fallback(e));if(null!==o){var u=this._addNotification(o),c=this._prepareNotification(u,e);l.isFunction(e.onShow)&&o.addEventListener("show",e.onShow),l.isFunction(e.onError)&&o.addEventListener("error",e.onError),l.isFunction(e.onClick)&&o.addEventListener("click",e.onClick),o.addEventListener("close",(function(){r(u)})),o.addEventListener("cancel",(function(){r(u)})),n(c)}n(null)}},{key:"create",value:function(e,n){var r,i=this;if(!l.isString(e))throw new Error(t.errors.invalid_title);return r=this.Permission.has()?function(t,r){try{i._createCallback(e,n,t)}catch(t){r(t)}}:function(r,o){i.Permission.request().then((function(){i._createCallback(e,n,r)})).catch((function(){o(t.errors.permission_denied)}))},new Promise(r)}},{key:"count",value:function(){var t,e=0;for(t in this._notifications)this._notifications.hasOwnProperty(t)&&e++;return e}},{key:"close",value:function(t){var e;for(e in this._notifications)if(this._notifications.hasOwnProperty(e)&&this._notifications[e].tag===t)return this._closeNotification(e)}},{key:"clear",value:function(){var t,e=!0;for(t in this._notifications)this._notifications.hasOwnProperty(t)&&(e=e&&this._closeNotification(t));return e}},{key:"supported",value:function(){var t=!1;for(var e in this._agents)this._agents.hasOwnProperty(e)&&(t=t||this._agents[e].isSupported());return t}},{key:"config",value:function(t){return(void 0!==t||null!==t&&l.isObject(t))&&l.objectMerge(this._configuration,t),this._configuration}},{key:"extend",value:function(e){var n,r={}.hasOwnProperty;if(!r.call(e,"plugin"))throw new Error(t.errors.invalid_plugin);for(var i in r.call(e,"config")&&l.isObject(e.config)&&null!==e.config&&this.config(e.config),n=new e.plugin(this.config()))r.call(n,i)&&l.isFunction(n[i])&&(this[i]=n[i])}}]),e}())("undefined"!=typeof window?window:Uo)}()}({get exports(){return pf},set exports(t){pf=t}});var vf=pf;function gf(){throw new Error("setTimeout has not been defined")}function yf(){throw new Error("clearTimeout has not been defined")}var mf=gf,bf=yf;function wf(t){if(mf===setTimeout)return setTimeout(t,0);if((mf===gf||!mf)&&setTimeout)return mf=setTimeout,setTimeout(t,0);try{return mf(t,0)}catch(e){try{return mf.call(null,t,0)}catch(e){return mf.call(this,t,0)}}}"function"==typeof An.setTimeout&&(mf=setTimeout),"function"==typeof An.clearTimeout&&(bf=clearTimeout);var _f,xf=[],Ef=!1,Sf=-1;function Of(){Ef&&_f&&(Ef=!1,_f.length?xf=_f.concat(xf):Sf=-1,xf.length&&kf())}function kf(){if(!Ef){var t=wf(Of);Ef=!0;for(var e=xf.length;e;){for(_f=xf,xf=[];++Sf<e;)_f&&_f[Sf].run();Sf=-1,e=xf.length}_f=null,Ef=!1,function(t){if(bf===clearTimeout)return clearTimeout(t);if((bf===yf||!bf)&&clearTimeout)return bf=clearTimeout,clearTimeout(t);try{return bf(t)}catch(e){try{return bf.call(null,t)}catch(e){return bf.call(this,t)}}}(t)}}function Tf(t,e){this.fun=t,this.array=e}Tf.prototype.run=function(){this.fun.apply(null,this.array)};function Pf(){}var Cf=Pf,Af=Pf,jf=Pf,Nf=Pf,Mf=Pf,Rf=Pf,Df=Pf;var Lf=An.performance||{},If=Lf.now||Lf.mozNow||Lf.msNow||Lf.oNow||Lf.webkitNow||function(){return(new Date).getTime()};var Uf=new Date;var Ff={nextTick:function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];xf.push(new Tf(t,e)),1!==xf.length||Ef||wf(kf)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Cf,addListener:Af,once:jf,off:Nf,removeListener:Mf,removeAllListeners:Rf,emit:Df,binding:function(t){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(t){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(t){var e=.001*If.call(Lf),n=Math.floor(e),r=Math.floor(e%1*1e9);return t&&(n-=t[0],(r-=t[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Uf)/1e3}},Bf="top",zf="bottom",qf="right",Hf="left",Wf="auto",Yf=[Bf,zf,qf,Hf],$f="start",Vf="end",Jf="clippingParents",Xf="viewport",Gf="popper",Zf="reference",Kf=Yf.reduce((function(t,e){return t.concat([e+"-"+$f,e+"-"+Vf])}),[]),Qf=[].concat(Yf,[Wf]).reduce((function(t,e){return t.concat([e,e+"-"+$f,e+"-"+Vf])}),[]),th=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function eh(t){return t?(t.nodeName||"").toLowerCase():null}function nh(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function rh(t){return t instanceof nh(t).Element||t instanceof Element}function ih(t){return t instanceof nh(t).HTMLElement||t instanceof HTMLElement}function oh(t){return"undefined"!=typeof ShadowRoot&&(t instanceof nh(t).ShadowRoot||t instanceof ShadowRoot)}var ah={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},r=e.attributes[t]||{},i=e.elements[t];ih(i)&&eh(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(t){var e=r[t];!1===e?i.removeAttribute(t):i.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var r=e.elements[t],i=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});ih(r)&&eh(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(t){r.removeAttribute(t)})))}))}},requires:["computeStyles"]};function sh(t){return t.split("-")[0]}var uh=Math.max,ch=Math.min,lh=Math.round;function fh(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function hh(){return!/^((?!chrome|android).)*safari/i.test(fh())}function dh(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var r=t.getBoundingClientRect(),i=1,o=1;e&&ih(t)&&(i=t.offsetWidth>0&&lh(r.width)/t.offsetWidth||1,o=t.offsetHeight>0&&lh(r.height)/t.offsetHeight||1);var a=(rh(t)?nh(t):window).visualViewport,s=!hh()&&n,u=(r.left+(s&&a?a.offsetLeft:0))/i,c=(r.top+(s&&a?a.offsetTop:0))/o,l=r.width/i,f=r.height/o;return{width:l,height:f,top:c,right:u+l,bottom:c+f,left:u,x:u,y:c}}function ph(t){var e=dh(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function vh(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&oh(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function gh(t){return nh(t).getComputedStyle(t)}function yh(t){return["table","td","th"].indexOf(eh(t))>=0}function mh(t){return((rh(t)?t.ownerDocument:t.document)||window.document).documentElement}function bh(t){return"html"===eh(t)?t:t.assignedSlot||t.parentNode||(oh(t)?t.host:null)||mh(t)}function wh(t){return ih(t)&&"fixed"!==gh(t).position?t.offsetParent:null}function _h(t){for(var e=nh(t),n=wh(t);n&&yh(n)&&"static"===gh(n).position;)n=wh(n);return n&&("html"===eh(n)||"body"===eh(n)&&"static"===gh(n).position)?e:n||function(t){var e=/firefox/i.test(fh());if(/Trident/i.test(fh())&&ih(t)&&"fixed"===gh(t).position)return null;var n=bh(t);for(oh(n)&&(n=n.host);ih(n)&&["html","body"].indexOf(eh(n))<0;){var r=gh(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||e&&"filter"===r.willChange||e&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(t)||e}function xh(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Eh(t,e,n){return uh(t,ch(e,n))}function Sh(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function Oh(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}var kh={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,r=t.name,i=t.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=sh(n.placement),u=xh(s),c=[Hf,qf].indexOf(s)>=0?"height":"width";if(o&&a){var l=function(t,e){return Sh("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:Oh(t,Yf))}(i.padding,n),f=ph(o),h="y"===u?Bf:Hf,d="y"===u?zf:qf,p=n.rects.reference[c]+n.rects.reference[u]-a[u]-n.rects.popper[c],v=a[u]-n.rects.reference[u],g=_h(o),y=g?"y"===u?g.clientHeight||0:g.clientWidth||0:0,m=p/2-v/2,b=l[h],w=y-f[c]-l[d],_=y/2-f[c]/2+m,x=Eh(b,_,w),E=u;n.modifiersData[r]=((e={})[E]=x,e.centerOffset=x-_,e)}},effect:function(t){var e=t.state,n=t.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=e.elements.popper.querySelector(r)))&&vh(e.elements.popper,r)&&(e.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Th(t){return t.split("-")[1]}var Ph={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ch(t){var e,n=t.popper,r=t.popperRect,i=t.placement,o=t.variation,a=t.offsets,s=t.position,u=t.gpuAcceleration,c=t.adaptive,l=t.roundOffsets,f=t.isFixed,h=a.x,d=void 0===h?0:h,p=a.y,v=void 0===p?0:p,g="function"==typeof l?l({x:d,y:v}):{x:d,y:v};d=g.x,v=g.y;var y=a.hasOwnProperty("x"),m=a.hasOwnProperty("y"),b=Hf,w=Bf,_=window;if(c){var x=_h(n),E="clientHeight",S="clientWidth";if(x===nh(n)&&"static"!==gh(x=mh(n)).position&&"absolute"===s&&(E="scrollHeight",S="scrollWidth"),i===Bf||(i===Hf||i===qf)&&o===Vf)w=zf,v-=(f&&x===_&&_.visualViewport?_.visualViewport.height:x[E])-r.height,v*=u?1:-1;if(i===Hf||(i===Bf||i===zf)&&o===Vf)b=qf,d-=(f&&x===_&&_.visualViewport?_.visualViewport.width:x[S])-r.width,d*=u?1:-1}var O,k=Object.assign({position:s},c&&Ph),T=!0===l?function(t,e){var n=t.x,r=t.y,i=e.devicePixelRatio||1;return{x:lh(n*i)/i||0,y:lh(r*i)/i||0}}({x:d,y:v},nh(n)):{x:d,y:v};return d=T.x,v=T.y,u?Object.assign({},k,((O={})[w]=m?"0":"",O[b]=y?"0":"",O.transform=(_.devicePixelRatio||1)<=1?"translate("+d+"px, "+v+"px)":"translate3d("+d+"px, "+v+"px, 0)",O)):Object.assign({},k,((e={})[w]=m?v+"px":"",e[b]=y?d+"px":"",e.transform="",e))}var Ah={passive:!0};var jh={left:"right",right:"left",bottom:"top",top:"bottom"};function Nh(t){return t.replace(/left|right|bottom|top/g,(function(t){return jh[t]}))}var Mh={start:"end",end:"start"};function Rh(t){return t.replace(/start|end/g,(function(t){return Mh[t]}))}function Dh(t){var e=nh(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Lh(t){return dh(mh(t)).left+Dh(t).scrollLeft}function Ih(t){var e=gh(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Uh(t){return["html","body","#document"].indexOf(eh(t))>=0?t.ownerDocument.body:ih(t)&&Ih(t)?t:Uh(bh(t))}function Fh(t,e){var n;void 0===e&&(e=[]);var r=Uh(t),i=r===(null==(n=t.ownerDocument)?void 0:n.body),o=nh(r),a=i?[o].concat(o.visualViewport||[],Ih(r)?r:[]):r,s=e.concat(a);return i?s:s.concat(Fh(bh(a)))}function Bh(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function zh(t,e,n){return e===Xf?Bh(function(t,e){var n=nh(t),r=mh(t),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,u=0;if(i){o=i.width,a=i.height;var c=hh();(c||!c&&"fixed"===e)&&(s=i.offsetLeft,u=i.offsetTop)}return{width:o,height:a,x:s+Lh(t),y:u}}(t,n)):rh(e)?function(t,e){var n=dh(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(e,n):Bh(function(t){var e,n=mh(t),r=Dh(t),i=null==(e=t.ownerDocument)?void 0:e.body,o=uh(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=uh(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Lh(t),u=-r.scrollTop;return"rtl"===gh(i||n).direction&&(s+=uh(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:u}}(mh(t)))}function qh(t,e,n,r){var i="clippingParents"===e?function(t){var e=Fh(bh(t)),n=["absolute","fixed"].indexOf(gh(t).position)>=0&&ih(t)?_h(t):t;return rh(n)?e.filter((function(t){return rh(t)&&vh(t,n)&&"body"!==eh(t)})):[]}(t):[].concat(e),o=[].concat(i,[n]),a=o[0],s=o.reduce((function(e,n){var i=zh(t,n,r);return e.top=uh(i.top,e.top),e.right=ch(i.right,e.right),e.bottom=ch(i.bottom,e.bottom),e.left=uh(i.left,e.left),e}),zh(t,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Hh(t){var e,n=t.reference,r=t.element,i=t.placement,o=i?sh(i):null,a=i?Th(i):null,s=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(o){case Bf:e={x:s,y:n.y-r.height};break;case zf:e={x:s,y:n.y+n.height};break;case qf:e={x:n.x+n.width,y:u};break;case Hf:e={x:n.x-r.width,y:u};break;default:e={x:n.x,y:n.y}}var c=o?xh(o):null;if(null!=c){var l="y"===c?"height":"width";switch(a){case $f:e[c]=e[c]-(n[l]/2-r[l]/2);break;case Vf:e[c]=e[c]+(n[l]/2-r[l]/2)}}return e}function Wh(t,e){void 0===e&&(e={});var n=e,r=n.placement,i=void 0===r?t.placement:r,o=n.strategy,a=void 0===o?t.strategy:o,s=n.boundary,u=void 0===s?Jf:s,c=n.rootBoundary,l=void 0===c?Xf:c,f=n.elementContext,h=void 0===f?Gf:f,d=n.altBoundary,p=void 0!==d&&d,v=n.padding,g=void 0===v?0:v,y=Sh("number"!=typeof g?g:Oh(g,Yf)),m=h===Gf?Zf:Gf,b=t.rects.popper,w=t.elements[p?m:h],_=qh(rh(w)?w:w.contextElement||mh(t.elements.popper),u,l,a),x=dh(t.elements.reference),E=Hh({reference:x,element:b,strategy:"absolute",placement:i}),S=Bh(Object.assign({},b,E)),O=h===Gf?S:x,k={top:_.top-O.top+y.top,bottom:O.bottom-_.bottom+y.bottom,left:_.left-O.left+y.left,right:O.right-_.right+y.right},T=t.modifiersData.offset;if(h===Gf&&T){var P=T[i];Object.keys(k).forEach((function(t){var e=[qf,zf].indexOf(t)>=0?1:-1,n=[Bf,zf].indexOf(t)>=0?"y":"x";k[t]+=P[n]*e}))}return k}function Yh(t,e){void 0===e&&(e={});var n=e,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,c=void 0===u?Qf:u,l=Th(r),f=l?s?Kf:Kf.filter((function(t){return Th(t)===l})):Yf,h=f.filter((function(t){return c.indexOf(t)>=0}));0===h.length&&(h=f);var d=h.reduce((function(e,n){return e[n]=Wh(t,{placement:n,boundary:i,rootBoundary:o,padding:a})[sh(n)],e}),{});return Object.keys(d).sort((function(t,e){return d[t]-d[e]}))}var $h={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,u=n.fallbackPlacements,c=n.padding,l=n.boundary,f=n.rootBoundary,h=n.altBoundary,d=n.flipVariations,p=void 0===d||d,v=n.allowedAutoPlacements,g=e.options.placement,y=sh(g),m=u||(y===g||!p?[Nh(g)]:function(t){if(sh(t)===Wf)return[];var e=Nh(t);return[Rh(t),e,Rh(e)]}(g)),b=[g].concat(m).reduce((function(t,n){return t.concat(sh(n)===Wf?Yh(e,{placement:n,boundary:l,rootBoundary:f,padding:c,flipVariations:p,allowedAutoPlacements:v}):n)}),[]),w=e.rects.reference,_=e.rects.popper,x=new Map,E=!0,S=b[0],O=0;O<b.length;O++){var k=b[O],T=sh(k),P=Th(k)===$f,C=[Bf,zf].indexOf(T)>=0,A=C?"width":"height",j=Wh(e,{placement:k,boundary:l,rootBoundary:f,altBoundary:h,padding:c}),N=C?P?qf:Hf:P?zf:Bf;w[A]>_[A]&&(N=Nh(N));var M=Nh(N),R=[];if(o&&R.push(j[T]<=0),s&&R.push(j[N]<=0,j[M]<=0),R.every((function(t){return t}))){S=k,E=!1;break}x.set(k,R)}if(E)for(var D=function(t){var e=b.find((function(e){var n=x.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return S=e,"break"},L=p?3:1;L>0;L--){if("break"===D(L))break}e.placement!==S&&(e.modifiersData[r]._skip=!0,e.placement=S,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Vh(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Jh(t){return[Bf,qf,zf,Hf].some((function(e){return t[e]>=0}))}var Xh={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,r=t.name,i=n.offset,o=void 0===i?[0,0]:i,a=Qf.reduce((function(t,n){return t[n]=function(t,e,n){var r=sh(t),i=[Hf,Bf].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},e,{placement:t})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Hf,qf].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,e.rects,o),t}),{}),s=a[e.placement],u=s.x,c=s.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=a}};var Gh={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,u=n.boundary,c=n.rootBoundary,l=n.altBoundary,f=n.padding,h=n.tether,d=void 0===h||h,p=n.tetherOffset,v=void 0===p?0:p,g=Wh(e,{boundary:u,rootBoundary:c,padding:f,altBoundary:l}),y=sh(e.placement),m=Th(e.placement),b=!m,w=xh(y),_="x"===w?"y":"x",x=e.modifiersData.popperOffsets,E=e.rects.reference,S=e.rects.popper,O="function"==typeof v?v(Object.assign({},e.rects,{placement:e.placement})):v,k="number"==typeof O?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),T=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,P={x:0,y:0};if(x){if(o){var C,A="y"===w?Bf:Hf,j="y"===w?zf:qf,N="y"===w?"height":"width",M=x[w],R=M+g[A],D=M-g[j],L=d?-S[N]/2:0,I=m===$f?E[N]:S[N],U=m===$f?-S[N]:-E[N],F=e.elements.arrow,B=d&&F?ph(F):{width:0,height:0},z=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},q=z[A],H=z[j],W=Eh(0,E[N],B[N]),Y=b?E[N]/2-L-W-q-k.mainAxis:I-W-q-k.mainAxis,$=b?-E[N]/2+L+W+H+k.mainAxis:U+W+H+k.mainAxis,V=e.elements.arrow&&_h(e.elements.arrow),J=V?"y"===w?V.clientTop||0:V.clientLeft||0:0,X=null!=(C=null==T?void 0:T[w])?C:0,G=M+$-X,Z=Eh(d?ch(R,M+Y-X-J):R,M,d?uh(D,G):D);x[w]=Z,P[w]=Z-M}if(s){var K,Q="x"===w?Bf:Hf,tt="x"===w?zf:qf,et=x[_],nt="y"===_?"height":"width",rt=et+g[Q],it=et-g[tt],ot=-1!==[Bf,Hf].indexOf(y),at=null!=(K=null==T?void 0:T[_])?K:0,st=ot?rt:et-E[nt]-S[nt]-at+k.altAxis,ut=ot?et+E[nt]+S[nt]-at-k.altAxis:it,ct=d&&ot?function(t,e,n){var r=Eh(t,e,n);return r>n?n:r}(st,et,ut):Eh(d?st:rt,et,d?ut:it);x[_]=ct,P[_]=ct-et}e.modifiersData[r]=P}},requiresIfExists:["offset"]};function Zh(t,e,n){void 0===n&&(n=!1);var r,i,o=ih(e),a=ih(e)&&function(t){var e=t.getBoundingClientRect(),n=lh(e.width)/t.offsetWidth||1,r=lh(e.height)/t.offsetHeight||1;return 1!==n||1!==r}(e),s=mh(e),u=dh(t,a,n),c={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!n)&&(("body"!==eh(e)||Ih(s))&&(c=(r=e)!==nh(r)&&ih(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:Dh(r)),ih(e)?((l=dh(e,!0)).x+=e.clientLeft,l.y+=e.clientTop):s&&(l.x=Lh(s))),{x:u.left+c.scrollLeft-l.x,y:u.top+c.scrollTop-l.y,width:u.width,height:u.height}}function Kh(t){var e=new Map,n=new Set,r=[];function i(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var r=e.get(t);r&&i(r)}})),r.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||i(t)})),r}var Qh={placement:"bottom",modifiers:[],strategy:"absolute"};function td(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function ed(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,r=void 0===n?[]:n,i=e.defaultOptions,o=void 0===i?Qh:i;return function(t,e,n){void 0===n&&(n=o);var i,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Qh,o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},u=[],c=!1,l={state:s,setOptions:function(n){var i="function"==typeof n?n(s.options):n;f(),s.options=Object.assign({},o,s.options,i),s.scrollParents={reference:rh(t)?Fh(t):t.contextElement?Fh(t.contextElement):[],popper:Fh(e)};var a,c,h=function(t){var e=Kh(t);return th.reduce((function(t,n){return t.concat(e.filter((function(t){return t.phase===n})))}),[])}((a=[].concat(r,s.options.modifiers),c=a.reduce((function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t}),{}),Object.keys(c).map((function(t){return c[t]}))));return s.orderedModifiers=h.filter((function(t){return t.enabled})),s.orderedModifiers.forEach((function(t){var e=t.name,n=t.options,r=void 0===n?{}:n,i=t.effect;if("function"==typeof i){var o=i({state:s,name:e,instance:l,options:r}),a=function(){};u.push(o||a)}})),l.update()},forceUpdate:function(){if(!c){var t=s.elements,e=t.reference,n=t.popper;if(td(e,n)){s.rects={reference:Zh(e,_h(n),"fixed"===s.options.strategy),popper:ph(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(t){return s.modifiersData[t.name]=Object.assign({},t.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var i=s.orderedModifiers[r],o=i.fn,a=i.options,u=void 0===a?{}:a,f=i.name;"function"==typeof o&&(s=o({state:s,options:u,name:f,instance:l})||s)}else s.reset=!1,r=-1}}},update:(i=function(){return new Promise((function(t){l.forceUpdate(),t(s)}))},function(){return a||(a=new Promise((function(t){Promise.resolve().then((function(){a=void 0,t(i())}))}))),a}),destroy:function(){f(),c=!0}};if(!td(t,e))return l;function f(){u.forEach((function(t){return t()})),u=[]}return l.setOptions(n).then((function(t){!c&&n.onFirstUpdate&&n.onFirstUpdate(t)})),l}}var nd=ed({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,u=nh(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach((function(t){t.addEventListener("scroll",n.update,Ah)})),s&&u.addEventListener("resize",n.update,Ah),function(){o&&c.forEach((function(t){t.removeEventListener("scroll",n.update,Ah)})),s&&u.removeEventListener("resize",n.update,Ah)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=Hh({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,u=void 0===s||s,c={placement:sh(e.placement),variation:Th(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,Ch(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:u})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,Ch(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},ah,Xh,$h,Gh,kh,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,a=Wh(e,{elementContext:"reference"}),s=Wh(e,{altBoundary:!0}),u=Vh(a,r),c=Vh(s,i,o),l=Jh(u),f=Jh(c);e.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":f})}}]}),rd="tippy-content",id="tippy-backdrop",od="tippy-arrow",ad="tippy-svg-arrow",sd={passive:!0,capture:!0},ud=function(){return document.body};function cd(t,e,n){if(Array.isArray(t)){var r=t[e];return null==r?Array.isArray(n)?n[e]:n:r}return t}function ld(t,e){var n={}.toString.call(t);return 0===n.indexOf("[object")&&n.indexOf(e+"]")>-1}function fd(t,e){return"function"==typeof t?t.apply(void 0,e):t}function hd(t,e){return 0===e?t:function(r){clearTimeout(n),n=setTimeout((function(){t(r)}),e)};var n}function dd(t,e){var n=Object.assign({},t);return e.forEach((function(t){delete n[t]})),n}function pd(t){return[].concat(t)}function vd(t,e){-1===t.indexOf(e)&&t.push(e)}function gd(t){return[].slice.call(t)}function yd(t){return Object.keys(t).reduce((function(e,n){return void 0!==t[n]&&(e[n]=t[n]),e}),{})}function md(){return document.createElement("div")}function bd(t){return["Element","Fragment"].some((function(e){return ld(t,e)}))}function wd(t){return bd(t)?[t]:function(t){return ld(t,"NodeList")}(t)?gd(t):Array.isArray(t)?t:gd(document.querySelectorAll(t))}function _d(t,e){t.forEach((function(t){t&&(t.style.transitionDuration=e+"ms")}))}function xd(t,e){t.forEach((function(t){t&&t.setAttribute("data-state",e)}))}function Ed(t,e,n){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(e){t[r](e,n)}))}function Sd(t,e){for(var n=e;n;){var r;if(t.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var Od={isTouch:!1},kd=0;function Td(){Od.isTouch||(Od.isTouch=!0,window.performance&&document.addEventListener("mousemove",Pd))}function Pd(){var t=performance.now();t-kd<20&&(Od.isTouch=!1,document.removeEventListener("mousemove",Pd)),kd=t}function Cd(){var t,e=document.activeElement;if((t=e)&&t._tippy&&t._tippy.reference===t){var n=e._tippy;e.blur&&!n.state.isVisible&&e.blur()}}var Ad,jd=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;function Nd(t){return[t+"() was called on a"+("destroy"===t?"n already-":" ")+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function Md(t){return t.replace(/[ \t]{2,}/g," ").replace(/^[ \t]*/gm,"").trim()}function Rd(t){return Md("\n %ctippy.js\n\n %c"+Md(t)+"\n\n %c👷 This is a development-only message. It will be removed in production.\n ")}function Dd(t){return[Rd(t),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}function Ld(t,e){var n;t&&!Ad.has(e)&&(Ad.add(e),(n=console).warn.apply(n,Dd(e)))}function Id(t,e){var n;t&&!Ad.has(e)&&(Ad.add(e),(n=console).error.apply(n,Dd(e)))}"production"!==Ff.env.NODE_ENV&&(Ad=new Set);var Ud={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Fd=Object.assign({appendTo:ud,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},Ud,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Bd=Object.keys(Fd);function zd(t){var e=(t.plugins||[]).reduce((function(e,n){var r,i=n.name,o=n.defaultValue;i&&(e[i]=void 0!==t[i]?t[i]:null!=(r=Fd[i])?r:o);return e}),{});return Object.assign({},t,e)}function qd(t,e){var n=Object.assign({},e,{content:fd(e.content,[t])},e.ignoreAttributes?{}:function(t,e){return(e?Object.keys(zd(Object.assign({},Fd,{plugins:e}))):Bd).reduce((function(e,n){var r=(t.getAttribute("data-tippy-"+n)||"").trim();if(!r)return e;if("content"===n)e[n]=r;else try{e[n]=JSON.parse(r)}catch(t){e[n]=r}return e}),{})}(t,e.plugins));return n.aria=Object.assign({},Fd.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?e.interactive:n.aria.expanded,content:"auto"===n.aria.content?e.interactive?null:"describedby":n.aria.content},n}function Hd(t,e){void 0===t&&(t={}),void 0===e&&(e=[]),Object.keys(t).forEach((function(t){var n=!function(t,e){return{}.hasOwnProperty.call(t,e)}(dd(Fd,Object.keys(Ud)),t);n&&(n=0===e.filter((function(e){return e.name===t})).length),Ld(n,["`"+t+"`","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(" "))}))}var Wd=function(){return"innerHTML"};function Yd(t,e){t[Wd()]=e}function $d(t){var e=md();return!0===t?e.className=od:(e.className=ad,bd(t)?e.appendChild(t):Yd(e,t)),e}function Vd(t,e){bd(e.content)?(Yd(t,""),t.appendChild(e.content)):"function"!=typeof e.content&&(e.allowHTML?Yd(t,e.content):t.textContent=e.content)}function Jd(t){var e=t.firstElementChild,n=gd(e.children);return{box:e,content:n.find((function(t){return t.classList.contains(rd)})),arrow:n.find((function(t){return t.classList.contains(od)||t.classList.contains(ad)})),backdrop:n.find((function(t){return t.classList.contains(id)}))}}function Xd(t){var e=md(),n=md();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=md();function i(n,r){var i=Jd(e),o=i.box,a=i.content,s=i.arrow;r.theme?o.setAttribute("data-theme",r.theme):o.removeAttribute("data-theme"),"string"==typeof r.animation?o.setAttribute("data-animation",r.animation):o.removeAttribute("data-animation"),r.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?o.setAttribute("role",r.role):o.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||Vd(a,t.props),r.arrow?s?n.arrow!==r.arrow&&(o.removeChild(s),o.appendChild($d(r.arrow))):o.appendChild($d(r.arrow)):s&&o.removeChild(s)}return r.className=rd,r.setAttribute("data-state","hidden"),Vd(r,t.props),e.appendChild(n),n.appendChild(r),i(t.props,t.props),{popper:e,onUpdate:i}}Xd.$$tippy=!0;var Gd=1,Zd=[],Kd=[];function Qd(t,e){var n,r,i,o,a,s,u,c,l=qd(t,Object.assign({},Fd,zd(yd(e)))),f=!1,h=!1,d=!1,p=!1,v=[],g=hd(V,l.interactiveDebounce),y=Gd++,m=(c=l.plugins).filter((function(t,e){return c.indexOf(t)===e})),b={id:y,reference:t,popper:md(),popperInstance:null,props:l,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:m,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(i)},setProps:function(e){"production"!==Ff.env.NODE_ENV&&Ld(b.state.isDestroyed,Nd("setProps"));if(b.state.isDestroyed)return;M("onBeforeUpdate",[b,e]),Y();var n=b.props,r=qd(t,Object.assign({},n,yd(e),{ignoreAttributes:!0}));b.props=r,W(),n.interactiveDebounce!==r.interactiveDebounce&&(L(),g=hd(V,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?pd(n.triggerTarget).forEach((function(t){t.removeAttribute("aria-expanded")})):r.triggerTarget&&t.removeAttribute("aria-expanded");D(),N(),x&&x(n,r);b.popperInstance&&(Z(),Q().forEach((function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)})));M("onAfterUpdate",[b,e])},setContent:function(t){b.setProps({content:t})},show:function(){"production"!==Ff.env.NODE_ENV&&Ld(b.state.isDestroyed,Nd("show"));var t=b.state.isVisible,e=b.state.isDestroyed,n=!b.state.isEnabled,r=Od.isTouch&&!b.props.touch,i=cd(b.props.duration,0,Fd.duration);if(t||e||n||r)return;if(P().hasAttribute("disabled"))return;if(M("onShow",[b],!1),!1===b.props.onShow(b))return;b.state.isVisible=!0,T()&&(_.style.visibility="visible");N(),B(),b.state.isMounted||(_.style.transition="none");if(T()){var o=A();_d([o.box,o.content],0)}s=function(){var t;if(b.state.isVisible&&!p){if(p=!0,_.offsetHeight,_.style.transition=b.props.moveTransition,T()&&b.props.animation){var e=A(),n=e.box,r=e.content;_d([n,r],i),xd([n,r],"visible")}R(),D(),vd(Kd,b),null==(t=b.popperInstance)||t.forceUpdate(),M("onMount",[b]),b.props.animation&&T()&&function(t,e){q(t,e)}(i,(function(){b.state.isShown=!0,M("onShown",[b])}))}},function(){var t,e=b.props.appendTo,n=P();t=b.props.interactive&&e===ud||"parent"===e?n.parentNode:fd(e,[n]);t.contains(_)||t.appendChild(_);b.state.isMounted=!0,Z(),"production"!==Ff.env.NODE_ENV&&Ld(b.props.interactive&&e===Fd.appendTo&&n.nextElementSibling!==_,["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(){"production"!==Ff.env.NODE_ENV&&Ld(b.state.isDestroyed,Nd("hide"));var t=!b.state.isVisible,e=b.state.isDestroyed,n=!b.state.isEnabled,r=cd(b.props.duration,1,Fd.duration);if(t||e||n)return;if(M("onHide",[b],!1),!1===b.props.onHide(b))return;b.state.isVisible=!1,b.state.isShown=!1,p=!1,f=!1,T()&&(_.style.visibility="hidden");if(L(),z(),N(!0),T()){var i=A(),o=i.box,a=i.content;b.props.animation&&(_d([o,a],r),xd([o,a],"hidden"))}R(),D(),b.props.animation?T()&&function(t,e){q(t,(function(){!b.state.isVisible&&_.parentNode&&_.parentNode.contains(_)&&e()}))}(r,b.unmount):b.unmount()},hideWithInteractivity:function(t){"production"!==Ff.env.NODE_ENV&&Ld(b.state.isDestroyed,Nd("hideWithInteractivity"));C().addEventListener("mousemove",g),vd(Zd,g),g(t)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){"production"!==Ff.env.NODE_ENV&&Ld(b.state.isDestroyed,Nd("unmount"));b.state.isVisible&&b.hide();if(!b.state.isMounted)return;K(),Q().forEach((function(t){t._tippy.unmount()})),_.parentNode&&_.parentNode.removeChild(_);Kd=Kd.filter((function(t){return t!==b})),b.state.isMounted=!1,M("onHidden",[b])},destroy:function(){"production"!==Ff.env.NODE_ENV&&Ld(b.state.isDestroyed,Nd("destroy"));if(b.state.isDestroyed)return;b.clearDelayTimeouts(),b.unmount(),Y(),delete t._tippy,b.state.isDestroyed=!0,M("onDestroy",[b])}};if(!l.render)return"production"!==Ff.env.NODE_ENV&&Id(!0,"render() function has not been supplied."),b;var w=l.render(b),_=w.popper,x=w.onUpdate;_.setAttribute("data-tippy-root",""),_.id="tippy-"+b.id,b.popper=_,t._tippy=b,_._tippy=b;var E=m.map((function(t){return t.fn(b)})),S=t.hasAttribute("aria-expanded");return W(),D(),N(),M("onCreate",[b]),l.showOnCreate&&tt(),_.addEventListener("mouseenter",(function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()})),_.addEventListener("mouseleave",(function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&C().addEventListener("mousemove",g)})),b;function O(){var t=b.props.touch;return Array.isArray(t)?t:[t,0]}function k(){return"hold"===O()[0]}function T(){var t;return!(null==(t=b.props.render)||!t.$$tippy)}function P(){return u||t}function C(){var t,e,n=P().parentNode;return n?null!=(e=pd(n)[0])&&null!=(t=e.ownerDocument)&&t.body?e.ownerDocument:document:document}function A(){return Jd(_)}function j(t){return b.state.isMounted&&!b.state.isVisible||Od.isTouch||o&&"focus"===o.type?0:cd(b.props.delay,t?0:1,Fd.delay)}function N(t){void 0===t&&(t=!1),_.style.pointerEvents=b.props.interactive&&!t?"":"none",_.style.zIndex=""+b.props.zIndex}function M(t,e,n){var r;(void 0===n&&(n=!0),E.forEach((function(n){n[t]&&n[t].apply(n,e)})),n)&&(r=b.props)[t].apply(r,e)}function R(){var e=b.props.aria;if(e.content){var n="aria-"+e.content,r=_.id;pd(b.props.triggerTarget||t).forEach((function(t){var e=t.getAttribute(n);if(b.state.isVisible)t.setAttribute(n,e?e+" "+r:r);else{var i=e&&e.replace(r,"").trim();i?t.setAttribute(n,i):t.removeAttribute(n)}}))}}function D(){!S&&b.props.aria.expanded&&pd(b.props.triggerTarget||t).forEach((function(t){b.props.interactive?t.setAttribute("aria-expanded",b.state.isVisible&&t===P()?"true":"false"):t.removeAttribute("aria-expanded")}))}function L(){C().removeEventListener("mousemove",g),Zd=Zd.filter((function(t){return t!==g}))}function I(e){if(!Od.isTouch||!d&&"mousedown"!==e.type){var n=e.composedPath&&e.composedPath()[0]||e.target;if(!b.props.interactive||!Sd(_,n)){if(pd(b.props.triggerTarget||t).some((function(t){return Sd(t,n)}))){if(Od.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else M("onClickOutside",[b,e]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),h=!0,setTimeout((function(){h=!1})),b.state.isMounted||z())}}}function U(){d=!0}function F(){d=!1}function B(){var t=C();t.addEventListener("mousedown",I,!0),t.addEventListener("touchend",I,sd),t.addEventListener("touchstart",F,sd),t.addEventListener("touchmove",U,sd)}function z(){var t=C();t.removeEventListener("mousedown",I,!0),t.removeEventListener("touchend",I,sd),t.removeEventListener("touchstart",F,sd),t.removeEventListener("touchmove",U,sd)}function q(t,e){var n=A().box;function r(t){t.target===n&&(Ed(n,"remove",r),e())}if(0===t)return e();Ed(n,"remove",a),Ed(n,"add",r),a=r}function H(e,n,r){void 0===r&&(r=!1),pd(b.props.triggerTarget||t).forEach((function(t){t.addEventListener(e,n,r),v.push({node:t,eventType:e,handler:n,options:r})}))}function W(){var t;k()&&(H("touchstart",$,{passive:!0}),H("touchend",J,{passive:!0})),(t=b.props.trigger,t.split(/\s+/).filter(Boolean)).forEach((function(t){if("manual"!==t)switch(H(t,$),t){case"mouseenter":H("mouseleave",J);break;case"focus":H(jd?"focusout":"blur",X);break;case"focusin":H("focusout",X)}}))}function Y(){v.forEach((function(t){var e=t.node,n=t.eventType,r=t.handler,i=t.options;e.removeEventListener(n,r,i)})),v=[]}function $(t){var e,n=!1;if(b.state.isEnabled&&!G(t)&&!h){var r="focus"===(null==(e=o)?void 0:e.type);o=t,u=t.currentTarget,D(),!b.state.isVisible&&ld(t,"MouseEvent")&&Zd.forEach((function(e){return e(t)})),"click"===t.type&&(b.props.trigger.indexOf("mouseenter")<0||f)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:tt(t),"click"===t.type&&(f=!n),n&&!r&&et(t)}}function V(t){var e=t.target,n=P().contains(e)||_.contains(e);if("mousemove"!==t.type||!n){var r=Q().concat(_).map((function(t){var e,n=null==(e=t._tippy.popperInstance)?void 0:e.state;return n?{popperRect:t.getBoundingClientRect(),popperState:n,props:l}:null})).filter(Boolean);(function(t,e){var n=e.clientX,r=e.clientY;return t.every((function(t){var e=t.popperRect,i=t.popperState,o=t.props.interactiveBorder,a=i.placement.split("-")[0],s=i.modifiersData.offset;if(!s)return!0;var u="bottom"===a?s.top.y:0,c="top"===a?s.bottom.y:0,l="right"===a?s.left.x:0,f="left"===a?s.right.x:0,h=e.top-r+u>o,d=r-e.bottom-c>o,p=e.left-n+l>o,v=n-e.right-f>o;return h||d||p||v}))})(r,t)&&(L(),et(t))}}function J(t){G(t)||b.props.trigger.indexOf("click")>=0&&f||(b.props.interactive?b.hideWithInteractivity(t):et(t))}function X(t){b.props.trigger.indexOf("focusin")<0&&t.target!==P()||b.props.interactive&&t.relatedTarget&&_.contains(t.relatedTarget)||et(t)}function G(t){return!!Od.isTouch&&k()!==t.type.indexOf("touch")>=0}function Z(){K();var e=b.props,n=e.popperOptions,r=e.placement,i=e.offset,o=e.getReferenceClientRect,a=e.moveTransition,u=T()?Jd(_).arrow:null,c=o?{getBoundingClientRect:o,contextElement:o.contextElement||P()}:t,l={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;if(T()){var n=A().box;["placement","reference-hidden","escaped"].forEach((function(t){"placement"===t?n.setAttribute("data-placement",e.placement):e.attributes.popper["data-popper-"+t]?n.setAttribute("data-"+t,""):n.removeAttribute("data-"+t)})),e.attributes.popper={}}}},f=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},l];T()&&u&&f.push({name:"arrow",options:{element:u,padding:3}}),f.push.apply(f,(null==n?void 0:n.modifiers)||[]),b.popperInstance=nd(c,_,Object.assign({},n,{placement:r,onFirstUpdate:s,modifiers:f}))}function K(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Q(){return gd(_.querySelectorAll("[data-tippy-root]"))}function tt(t){b.clearDelayTimeouts(),t&&M("onTrigger",[b,t]),B();var e=j(!0),r=O(),i=r[0],o=r[1];Od.isTouch&&"hold"===i&&o&&(e=o),e?n=setTimeout((function(){b.show()}),e):b.show()}function et(t){if(b.clearDelayTimeouts(),M("onUntrigger",[b,t]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&f)){var e=j(!1);e?r=setTimeout((function(){b.state.isVisible&&b.hide()}),e):i=requestAnimationFrame((function(){b.hide()}))}}else z()}}function tp(t,e){void 0===e&&(e={});var n=Fd.plugins.concat(e.plugins||[]);"production"!==Ff.env.NODE_ENV&&(!function(t){var e=!t,n="[object Object]"===Object.prototype.toString.call(t)&&!t.addEventListener;Id(e,["tippy() was passed","`"+String(t)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),Id(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}(t),Hd(e,n)),document.addEventListener("touchstart",Td,sd),window.addEventListener("blur",Cd);var r=Object.assign({},e,{plugins:n}),i=wd(t);if("production"!==Ff.env.NODE_ENV){var o=bd(r.content),a=i.length>1;Ld(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 s=i.reduce((function(t,e){var n=e&&Qd(e,r);return n&&t.push(n),t}),[]);return bd(t)?s[0]:s}tp.defaultProps=Fd,tp.setDefaultProps=function(t){"production"!==Ff.env.NODE_ENV&&Hd(t,[]),Object.keys(t).forEach((function(e){Fd[e]=t[e]}))},tp.currentInput=Od,Object.assign({},ah,{effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow)}});var ep,np={mouseover:"mouseenter",focusin:"focus",click:"click"};function rp(t,e){"production"!==Ff.env.NODE_ENV&&Id(!(e&&e.target),["You must specity a `target` prop indicating a CSS selector string matching","the target elements that should receive a tippy."].join(" "));var n=[],r=[],i=!1,o=e.target,a=dd(e,["target"]),s=Object.assign({},a,{trigger:"manual",touch:!1}),u=Object.assign({touch:Fd.touch},a,{showOnCreate:!0}),c=tp(t,s);function l(t){if(t.target&&!i){var n=t.target.closest(o);if(n){var a=n.getAttribute("data-tippy-trigger")||e.trigger||Fd.trigger;if(!n._tippy&&!("touchstart"===t.type&&"boolean"==typeof u.touch||"touchstart"!==t.type&&a.indexOf(np[t.type])<0)){var s=tp(n,u);s&&(r=r.concat(s))}}}}function f(t,e,r,i){void 0===i&&(i=!1),t.addEventListener(e,r,i),n.push({node:t,eventType:e,handler:r,options:i})}return pd(c).forEach((function(t){var e=t.destroy,o=t.enable,a=t.disable;t.destroy=function(t){void 0===t&&(t=!0),t&&r.forEach((function(t){t.destroy()})),r=[],n.forEach((function(t){var e=t.node,n=t.eventType,r=t.handler,i=t.options;e.removeEventListener(n,r,i)})),n=[],e()},t.enable=function(){o(),r.forEach((function(t){return t.enable()})),i=!1},t.disable=function(){a(),r.forEach((function(t){return t.disable()})),i=!0},function(t){var e=t.reference;f(e,"touchstart",l,sd),f(e,"mouseover",l),f(e,"focusin",l),f(e,"click",l)}(t)})),c}tp.setDefaultProps({render:Xd}),function(t){t.Allowed="ALLOWED",t.Muted="MUTED"}(ep||(ep={}));var ip=ep,op=function(){return{isMinimized:!0,isContactOpened:!0,isMessageBoxOpened:!1,isNotificationAllowed:window.localStorage.getItem("basement.notification")===ip.Allowed,hasNotificationPermission:vf.Permission.has(),online:!0,totalUnreadMessages:0,init:function(){var t=this;window.axios.get("/sanctum/csrf-cookie"),window.addEventListener("online",(function(){t.online=!0})),window.addEventListener("offline",(function(){t.online=!1})),this.$watch("isNotificationAllowed",this.watchNotificationStatus.bind(this)),this.$el.addEventListener("send-push-notification",this.sendPushNotification.bind(this)),this.registerTippy()},requestNotificationPermission:function(){var t=this;vf.Permission.request((function(){t.isNotificationAllowed=!0,t.hasNotificationPermission=!0}),(function(){t.hasNotificationPermission=!1}))},sendPushNotification:function(t){!1!==this.isNotificationAllowed&&vf.create(t.detail.title,{body:t.detail.body,icon:t.detail.icon,timeout:4e3,onClick:function(){window.focus(),this.close()}})},registerTippy:function(){rp(this.$el,{animation:"fade",arrow:!0,target:".basement [data-title]",onShow:function(t){var e=t.reference.getAttribute("data-title");null!==e&&t.setContent(e)}})},watchNotificationStatus:function(t){var e=!0===t?ip.Allowed:ip.Muted;window.localStorage.setItem("basement.notification",e)}}};function ap(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function sp(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ap(Object(n),!0).forEach((function(e){pp(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ap(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function up(){up=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var o=e&&e.prototype instanceof h?e:h,a=Object.create(o.prototype),s=new O(i||[]);return r(a,"_invoke",{value:_(t,n,s)}),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f={};function h(){}function d(){}function p(){}var v={};u(v,o,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(k([])));y&&y!==e&&n.call(y,o)&&(v=y);var m=p.prototype=h.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function i(r,o,a,s){var u=l(t[r],t,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return i("throw",t,a,s)}))}s(u.arg)}var o;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return o=o?o.then(r,r):r()}})}function _(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return T()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,f;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:T}}function T(){return{value:void 0,done:!0}}return d.prototype=p,r(m,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:d,configurable:!0}),d.displayName=u(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,s,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},b(w.prototype),u(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new w(c(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(m),u(m,s,"Generator"),u(m,o,(function(){return this})),u(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=k,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function cp(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function lp(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){cp(o,r,i,a,s,"next",t)}function s(t){cp(o,r,i,a,s,"throw",t)}a(void 0)}))}}function fp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hp(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,yp(r.key),r)}}function dp(t,e,n){return e&&hp(t.prototype,e),n&&hp(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function pp(t,e,n){return(e=yp(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function vp(t){return function(t){if(Array.isArray(t))return gp(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return gp(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gp(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gp(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function yp(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var mp=da,bp=ca,wp=function(t){if("Function"===mp(t))return bp(t)},_p=as,xp=Jo,Ep=wp(wp.bind),Sp=function(t,e){return _p(t),void 0===e?t:xp?Ep(t,e):function(){return t.apply(e,arguments)}},Op=da,kp=Array.isArray||function(t){return"Array"==Op(t)},Tp={};Tp[qs("toStringTag")]="z";var Pp="[object z]"===String(Tp),Cp=Pp,Ap=Ca,jp=da,Np=qs("toStringTag"),Mp=Object,Rp="Arguments"==jp(function(){return arguments}()),Dp=Cp?jp:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Mp(t),Np))?n:Rp?jp(e):"Object"==(r=jp(e))&&Ap(e.callee)?"Arguments":r},Lp=ca,Ip=$o,Up=Ca,Fp=Dp,Bp=Xu,zp=function(){},qp=[],Hp=Da("Reflect","construct"),Wp=/^\s*(?:class|function)\b/,Yp=Lp(Wp.exec),$p=!Wp.exec(zp),Vp=function(t){if(!Up(t))return!1;try{return Hp(zp,qp,t),!0}catch(t){return!1}},Jp=function(t){if(!Up(t))return!1;switch(Fp(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return $p||!!Yp(Wp,Bp(t))}catch(t){return!0}};Jp.sham=!0;var Xp=!Hp||Ip((function(){var t;return Vp(Vp.call)||!Vp(Object)||!Vp((function(){t=!0}))||t}))?Jp:Vp,Gp=kp,Zp=Xp,Kp=Na,Qp=qs("species"),tv=Array,ev=function(t){var e;return Gp(t)&&(e=t.constructor,(Zp(e)&&(e===tv||Gp(e.prototype))||Kp(e)&&null===(e=e[Qp]))&&(e=void 0)),void 0===e?tv:e},nv=function(t,e){return new(ev(t))(0===e?0:e)},rv=Sp,iv=ma,ov=Os,av=Kc,sv=nv,uv=ca([].push),cv=function(t){var e=1==t,n=2==t,r=3==t,i=4==t,o=6==t,a=7==t,s=5==t||o;return function(u,c,l,f){for(var h,d,p=ov(u),v=iv(p),g=rv(c,l),y=av(v),m=0,b=f||sv,w=e?b(u,y):n||a?b(u,0):void 0;y>m;m++)if((s||m in v)&&(d=g(h=v[m],m,p),t))if(e)w[m]=d;else if(d)switch(t){case 3:return!0;case 5:return h;case 6:return m;case 2:uv(w,h)}else switch(t){case 4:return!1;case 7:uv(w,h)}return o?-1:r||i?i:w}},lv={forEach:cv(0),map:cv(1),filter:cv(2),some:cv(3),every:cv(4),find:cv(5),findIndex:cv(6),filterReject:cv(7)},fv=$o,hv=Wa,dv=qs("species"),pv=function(t){return hv>=51||!fv((function(){var e=[];return(e.constructor={})[dv]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},vv=lv.map;ql({target:"Array",proto:!0,forced:!pv("map")},{map:function(t){return vv(this,t,arguments.length>1?arguments[1]:void 0)}});var gv=Dp,yv=String,mv=function(t){if("Symbol"===gv(t))throw TypeError("Cannot convert a Symbol value to a string");return yv(t)},bv=wu,wv=$o,_v=Wo.RegExp,xv=wv((function(){var t=_v("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Ev=xv||wv((function(){return!_v("a","y").sticky})),Sv={BROKEN_CARET:xv||wv((function(){var t=_v("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:Ev,UNSUPPORTED_Y:xv},Ov={},kv=Vo,Tv=gu,Pv=vu,Cv=wu,Av=Oa,jv=Yl;Ov.f=kv&&!Tv?Object.defineProperties:function(t,e){Cv(t);for(var n,r=Av(e),i=jv(e),o=i.length,a=0;o>a;)Pv.f(t,n=i[a++],r[n]);return t};var Nv,Mv=Da("document","documentElement"),Rv=wu,Dv=Ov,Lv=ll,Iv=nc,Uv=Mv,Fv=ru,Bv="prototype",zv="script",qv=ec("IE_PROTO"),Hv=function(){},Wv=function(t){return"<"+zv+">"+t+"</"+zv+">"},Yv=function(t){t.write(Wv("")),t.close();var e=t.parentWindow.Object;return t=null,e},$v=function(){try{Nv=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;$v="undefined"!=typeof document?document.domain&&Nv?Yv(Nv):(e=Fv("iframe"),n="java"+zv+":",e.style.display="none",Uv.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Wv("document.F=Object")),t.close(),t.F):Yv(Nv);for(var r=Lv.length;r--;)delete $v[Bv][Lv[r]];return $v()};Iv[qv]=!0;var Vv,Jv,Xv=Object.create||function(t,e){var n;return null!==t?(Hv[Bv]=Rv(t),n=new Hv,Hv[Bv]=null,n[qv]=t):n=$v(),void 0===e?n:Dv.f(n,e)},Gv=$o,Zv=Wo.RegExp,Kv=Gv((function(){var t=Zv(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Qv=$o,tg=Wo.RegExp,eg=Qv((function(){var t=tg("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),ng=Zo,rg=ca,ig=mv,og=function(){var t=bv(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},ag=Sv,sg=Xv,ug=gc.get,cg=Kv,lg=eg,fg=ps("native-string-replace",String.prototype.replace),hg=RegExp.prototype.exec,dg=hg,pg=rg("".charAt),vg=rg("".indexOf),gg=rg("".replace),yg=rg("".slice),mg=(Jv=/b*/g,ng(hg,Vv=/a/,"a"),ng(hg,Jv,"a"),0!==Vv.lastIndex||0!==Jv.lastIndex),bg=ag.BROKEN_CARET,wg=void 0!==/()??/.exec("")[1];(mg||wg||bg||cg||lg)&&(dg=function(t){var e,n,r,i,o,a,s,u=this,c=ug(u),l=ig(t),f=c.raw;if(f)return f.lastIndex=u.lastIndex,e=ng(dg,f,l),u.lastIndex=f.lastIndex,e;var h=c.groups,d=bg&&u.sticky,p=ng(og,u),v=u.source,g=0,y=l;if(d&&(p=gg(p,"y",""),-1===vg(p,"g")&&(p+="g"),y=yg(l,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==pg(l,u.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",p)),wg&&(n=new RegExp("^"+v+"$(?!\\s)",p)),mg&&(r=u.lastIndex),i=ng(hg,d?n:u,y),d?i?(i.input=yg(i.input,g),i[0]=yg(i[0],g),i.index=u.lastIndex,u.lastIndex+=i[0].length):u.lastIndex=0:mg&&i&&(u.lastIndex=u.global?i.index+i[0].length:r),wg&&i&&i.length>1&&ng(fg,i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&h)for(i.groups=a=sg(null),o=0;o<h.length;o++)a[(s=h[o])[0]]=i[s[1]];return i});var _g=dg;ql({target:"RegExp",proto:!0,forced:/./.exec!==_g},{exec:_g});var xg=wp,Eg=Uc,Sg=_g,Og=$o,kg=qs,Tg=Ru,Pg=kg("species"),Cg=RegExp.prototype,Ag=function(t,e,n,r){var i=kg(t),o=!Og((function(){var e={};return e[i]=function(){return 7},7!=""[t](e)})),a=o&&!Og((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[Pg]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return e=!0,null},n[i](""),!e}));if(!o||!a||n){var s=xg(/./[i]),u=e(i,""[t],(function(t,e,n,r,i){var a=xg(t),u=e.exec;return u===Sg||u===Cg.exec?o&&!i?{done:!0,value:s(e,n,r)}:{done:!0,value:a(n,e,r)}:{done:!1}}));Eg(String.prototype,t,u[0]),Eg(Cg,i,u[1])}r&&Tg(Cg[i],"sham",!0)},jg=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e},Ng=Zo,Mg=wu,Rg=Ca,Dg=da,Lg=_g,Ig=TypeError,Ug=function(t,e){var n=t.exec;if(Rg(n)){var r=Ng(n,t,e);return null!==r&&Mg(r),r}if("RegExp"===Dg(t))return Ng(Lg,t,e);throw Ig("RegExp#exec called on incompatible receiver")},Fg=Zo,Bg=wu,zg=ba,qg=xa,Hg=jg,Wg=mv,Yg=cs,$g=Ug;Ag("search",(function(t,e,n){return[function(e){var n=qg(this),r=zg(e)?void 0:Yg(e,t);return r?Fg(r,e,n):new RegExp(e)[t](Wg(n))},function(t){var r=Bg(this),i=Wg(t),o=n(e,r,i);if(o.done)return o.value;var a=r.lastIndex;Hg(a,0)||(r.lastIndex=0);var s=$g(r,i);return Hg(r.lastIndex,a)||(r.lastIndex=a),null===s?-1:s.index}]}));var Vg=lv.filter;ql({target:"Array",proto:!0,forced:!pv("filter")},{filter:function(t){return Vg(this,t,arguments.length>1?arguments[1]:void 0)}});var Jg=Dp,Xg=Pp?{}.toString:function(){return"[object "+Jg(this)+"]"};Pp||Uc(Object.prototype,"toString",Xg,{unsafe:!0});var Gg=Du,Zg=vu,Kg=function(t,e,n){return n.get&&Gg(n.get,e,{getter:!0}),n.set&&Gg(n.set,e,{setter:!0}),Zg.f(t,e,n)},Qg=Vo,ty=qu.EXISTS,ey=ca,ny=Kg,ry=Function.prototype,iy=ey(ry.toString),oy=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ay=ey(oy.exec);Qg&&!ty&&ny(ry,"name",{configurable:!0,get:function(){try{return ay(oy,iy(this))[1]}catch(t){return""}}});var sy=qs,uy=Xv,cy=vu.f,ly=sy("unscopables"),fy=Array.prototype;null==fy[ly]&&cy(fy,ly,{configurable:!0,value:uy(null)});var hy=function(t){fy[ly][t]=!0},dy=rl.includes,py=hy;ql({target:"Array",proto:!0,forced:$o((function(){return!Array(1).includes()}))},{includes:function(t){return dy(this,t,arguments.length>1?arguments[1]:void 0)}}),py("includes");var vy=Na,gy=da,yy=qs("match"),my=function(t){var e;return vy(t)&&(void 0!==(e=t[yy])?!!e:"RegExp"==gy(t))},by=TypeError,wy=qs("match"),_y=ql,xy=function(t){if(my(t))throw by("The method doesn't accept regular expressions");return t},Ey=xa,Sy=mv,Oy=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[wy]=!1,"/./"[t](e)}catch(t){}}return!1},ky=ca("".indexOf);_y({target:"String",proto:!0,forced:!Oy("includes")},{includes:function(t){return!!~ky(Sy(Ey(this)),Sy(xy(t)),arguments.length>1?arguments[1]:void 0)}});var Ty=ql,Py=lv.findIndex,Cy=hy,Ay="findIndex",jy=!0;Ay in[]&&Array(1)[Ay]((function(){jy=!1})),Ty({target:"Array",proto:!0,forced:jy},{findIndex:function(t){return Py(this,t,arguments.length>1?arguments[1]:void 0)}}),Cy(Ay);var Ny=Os,My=Kc,Ry=Hc,Dy=hy;ql({target:"Array",proto:!0},{at:function(t){var e=Ny(this),n=My(e),r=Ry(t),i=r>=0?r:n+r;return i<0||i>=n?void 0:e[i]}}),Dy("at");var Ly=ql,Iy=xa,Uy=Hc,Fy=mv,By=$o,zy=ca("".charAt);Ly({target:"String",proto:!0,forced:By((function(){return"\ud842"!=="𠮷".at(-2)}))},{at:function(t){var e=Fy(Iy(this)),n=e.length,r=Uy(t),i=r>=0?r:n+r;return i<0||i>=n?void 0:zy(e,i)}});var qy=$o,Hy=function(t,e){var n=[][t];return!!n&&qy((function(){n.call(null,e||function(){return 1},1)}))},Wy=lv.forEach,Yy=Hy("forEach")?[].forEach:function(t){return Wy(this,t,arguments.length>1?arguments[1]:void 0)};ql({target:"Array",proto:!0,forced:[].forEach!=Yy},{forEach:Yy});var $y={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Vy=ru("span").classList,Jy=Vy&&Vy.constructor&&Vy.constructor.prototype,Xy=Jy===Object.prototype?void 0:Jy,Gy=Wo,Zy=$y,Ky=Xy,Qy=Yy,tm=Ru,em=function(t){if(t&&t.forEach!==Qy)try{tm(t,"forEach",Qy)}catch(e){t.forEach=Qy}};for(var nm in Zy)Zy[nm]&&em(Gy[nm]&&Gy[nm].prototype);em(Ky);var rm=Vo,im=kp,om=TypeError,am=Object.getOwnPropertyDescriptor,sm=rm&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}()?function(t,e){if(im(t)&&!am(t,"length").writable)throw om("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},um=TypeError,cm=function(t){if(t>9007199254740991)throw um("Maximum allowed index exceeded");return t},lm=Os,fm=Kc,hm=sm,dm=cm;ql({target:"Array",proto:!0,arity:1,forced:$o((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=lm(this),n=fm(e),r=arguments.length;dm(n+r);for(var i=0;i<r;i++)e[n]=arguments[i],n++;return hm(e,n),n}});var pm=ql,vm=ma,gm=Oa,ym=Hy,mm=ca([].join);pm({target:"Array",proto:!0,forced:vm!=Object||!ym("join",",")},{join:function(t){return mm(gm(this),void 0===t?",":t)}});var bm=Qs,wm=vu,_m=ia,xm=function(t,e,n){var r=bm(e);r in t?wm.f(t,r,_m(0,n)):t[r]=n},Em=ns,Sm=TypeError,Om=function(t,e){if(!delete t[e])throw Sm("Cannot delete property "+Em(e)+" of "+Em(t))},km=ql,Tm=Os,Pm=Vc,Cm=Hc,Am=Kc,jm=sm,Nm=cm,Mm=nv,Rm=xm,Dm=Om,Lm=pv("splice"),Im=Math.max,Um=Math.min;km({target:"Array",proto:!0,forced:!Lm},{splice:function(t,e){var n,r,i,o,a,s,u=Tm(this),c=Am(u),l=Pm(t,c),f=arguments.length;for(0===f?n=r=0:1===f?(n=0,r=c-l):(n=f-2,r=Um(Im(Cm(e),0),c-l)),Nm(c+n-r),i=Mm(u,r),o=0;o<r;o++)(a=l+o)in u&&Rm(i,o,u[a]);if(i.length=r,n<r){for(o=l;o<c-r;o++)s=o+n,(a=o+r)in u?u[s]=u[a]:Dm(u,s);for(o=c;o>c-r+n;o--)Dm(u,o-1)}else if(n>r)for(o=c-r;o>l;o--)s=o+n-1,(a=o+r-1)in u?u[s]=u[a]:Dm(u,s);for(o=0;o<n;o++)u[o+l]=arguments[o+2];return jm(u,c-r+n),i}});var Fm=Os,Bm=Kc,zm=sm,qm=Om,Hm=cm;ql({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(t){return t instanceof TypeError}}()},{unshift:function(t){var e=Fm(this),n=Bm(e),r=arguments.length;if(r){Hm(n+r);for(var i=n;i--;){var o=i+r;i in e?e[o]=e[i]:qm(e,o)}for(var a=0;a<r;a++)e[a]=arguments[a]}return zm(e,n+r)}});var Wm=Wo,Ym=ca,$m=as,Vm=Ca,Jm=String,Xm=TypeError,Gm=function(t,e,n){try{return Ym($m(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}},Zm=wu,Km=function(t){if("object"==typeof t||Vm(t))return t;throw Xm("Can't set "+Jm(t)+" as a prototype")},Qm=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Gm(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Zm(n),Km(r),e?t(n,r):n.__proto__=r,n}}():void 0),tb=Ca,eb=Na,nb=Qm,rb=function(t,e,n){var r,i;return nb&&tb(r=e.constructor)&&r!==n&&eb(i=r.prototype)&&i!==n.prototype&&nb(t,i),t},ib=ca(1..valueOf),ob="\t\n\v\f\r \u2028\u2029\ufeff",ab=xa,sb=mv,ub=ob,cb=ca("".replace),lb=RegExp("^["+ub+"]+"),fb=RegExp("(^|[^"+ub+"])["+ub+"]+$"),hb=function(t){return function(e){var n=sb(ab(e));return 1&t&&(n=cb(n,lb,"")),2&t&&(n=cb(n,fb,"$1")),n}},db={start:hb(1),end:hb(2),trim:hb(3)},pb=ql,vb=Vo,gb=Wo,yb=Wm,mb=ca,bb=Rl,wb=Ps,_b=rb,xb=La,Eb=ts,Sb=Gs,Ob=$o,kb=Fc.f,Tb=Yo.f,Pb=vu.f,Cb=ib,Ab=db.trim,jb="Number",Nb=gb[jb];yb[jb];var Mb=Nb.prototype,Rb=gb.TypeError,Db=mb("".slice),Lb=mb("".charCodeAt),Ib=function(t){var e,n,r,i,o,a,s,u,c=Sb(t,"number");if(Eb(c))throw Rb("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=Ab(c),43===(e=Lb(c,0))||45===e){if(88===(n=Lb(c,2))||120===n)return NaN}else if(48===e){switch(Lb(c,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+c}for(a=(o=Db(c,2)).length,s=0;s<a;s++)if((u=Lb(o,s))<48||u>i)return NaN;return parseInt(o,r)}return+c},Ub=bb(jb,!Nb(" 0o1")||!Nb("0b1")||Nb("+0x1")),Fb=function(t){var e,n=arguments.length<1?0:Nb(function(t){var e=Sb(t,"number");return"bigint"==typeof e?e:Ib(e)}(t));return xb(Mb,e=this)&&Ob((function(){Cb(e)}))?_b(Object(n),this,Fb):n};Fb.prototype=Mb,Ub&&(Mb.constructor=Fb),pb({global:!0,constructor:!0,wrap:!0,forced:Ub},{Number:Fb});Ub&&function(t,e){for(var n,r=vb?kb(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;r.length>i;i++)wb(e,n=r[i])&&!wb(t,n)&&Pb(t,n,Tb(e,n))}(yb[jb],Nb);var Bb=as,zb=Os,qb=ma,Hb=Kc,Wb=TypeError,Yb=function(t){return function(e,n,r,i){Bb(n);var o=zb(e),a=qb(o),s=Hb(o),u=t?s-1:0,c=t?-1:1;if(r<2)for(;;){if(u in a){i=a[u],u+=c;break}if(u+=c,t?u<0:s<=u)throw Wb("Reduce of empty array with no initial value")}for(;t?u>=0:s>u;u+=c)u in a&&(i=n(i,a[u],u,o));return i}},$b={left:Yb(!1),right:Yb(!0)},Vb=void 0!==Ff&&"process"==da(Ff),Jb=$b.left;ql({target:"Array",proto:!0,forced:!Vb&&Wa>79&&Wa<83||!Hy("reduce")},{reduce:function(t){var e=arguments.length;return Jb(this,t,e,e>1?arguments[1]:void 0)}});var Xb={},Gb={get exports(){return Xb},set exports(t){Xb=t}},Zb={},Kb={get exports(){return Zb},set exports(t){Zb=t}},Qb={};!function(t){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports}({get exports(){return Qb},set exports(t){Qb=t}});var tw={},ew={get exports(){return tw},set exports(t){tw=t}},nw={},rw={get exports(){return nw},set exports(t){nw=t}},iw={};!function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}({get exports(){return iw},set exports(t){iw=t}});var ow={};!function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")},t.exports=e.default}({get exports(){return ow},set exports(t){ow=t}},ow),function(t,e){var n=Qb.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,i.default)(1,arguments),t instanceof Date||"object"===(0,r.default)(t)&&"[object Date]"===Object.prototype.toString.call(t)};var r=n(iw),i=n(ow);t.exports=e.default}(rw,nw);var aw={};!function(t,e){var n=Qb.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){(0,i.default)(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===(0,r.default)(t)&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))};var r=n(iw),i=n(ow);t.exports=e.default}({get exports(){return aw},set exports(t){aw=t}},aw),function(t,e){var n=Qb.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if((0,o.default)(1,arguments),!(0,r.default)(t)&&"number"!=typeof t)return!1;var e=(0,i.default)(t);return!isNaN(Number(e))};var r=n(nw),i=n(aw),o=n(ow);t.exports=e.default}(ew,tw);var sw={},uw={get exports(){return sw},set exports(t){sw=t}},cw={},lw={get exports(){return cw},set exports(t){cw=t}},fw={};!function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);if(isNaN(e))return e;return e<0?Math.ceil(e):Math.floor(e)},t.exports=e.default}({get exports(){return fw},set exports(t){fw=t}},fw),function(t,e){var n=Qb.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){(0,o.default)(2,arguments);var n=(0,i.default)(t).getTime(),a=(0,r.default)(e);return new Date(n+a)};var r=n(fw),i=n(aw),o=n(ow);t.exports=e.default}(lw,cw),function(t,e){var n=Qb.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){(0,i.default)(2,arguments);var n=(0,o.default)(e);return(0,r.default)(t,-n)};var r=n(cw),i=n(ow),o=n(fw);t.exports=e.default}(uw,sw);var hw={},dw={get exports(){return hw},set exports(t){hw=t}},pw={};!function(t,e){var n=Qb.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){(0,i.default)(1,arguments);var e=(0,r.default)(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var a=e.getTime(),s=n-a;return Math.floor(s/o)+1};var r=n(aw),i=n(ow),o=864e5;t.exports=e.default}({get exports(){return pw},set exports(t){pw=t}},pw);var vw={},gw={get exports(){return vw},set exports(t){vw=t}},yw={};!function(t,e){var n=Qb.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){(0,i.default)(1,arguments);var e=(0,r.default)(t),n=e.getUTCDay(),o=(n<1?7:0)+n-1;return e.setUTCDate(e.getUTCDate()-o),e.setUTCHours(0,0,0,0),e};var r=n(aw),i=n(ow);t.exports=e.default}({get exports(){return yw},set exports(t){yw=t}},yw);var mw={},bw={get exports(){return mw},set exports(t){mw=t}},ww={};!function(t,e){var n=Qb.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){(0,i.default)(1,arguments);var e=(0,r.default)(t),n=e.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(n+1,0,4),a.setUTCHours(0,0,0,0);var s=(0,o.default)(a),u=new Date(0);u.setUTCFullYear(n,0,4),u.setUTCHours(0,0,0,0);var c=(0,o.default)(u);return e.getTime()>=s.getTime()?n+1:e.getTime()>=c.getTime()?n:n-1};var r=n(aw),i=n(ow),o=n(yw);t.exports=e.default}({get exports(){return ww},set exports(t){ww=t}},ww),function(t,e){var n=Qb.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){(0,o.default)(1,arguments);var e=(0,r.default)(t),n=new Date(0);return n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0),(0,i.default)(n)};var r=n(ww),i=n(yw),o=n(ow);t.exports=e.default}(bw,mw),function(t,e){var n=Qb.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){(0,a.default)(1,arguments);var e=(0,r.default)(t),n=(0,i.default)(e).getTime()-(0,o.default)(e).getTime();return Math.round(n/s)+1};var r=n(aw),i=n(yw),o=n(mw),a=n(ow),s=6048e5;t.exports=e.default}(gw,vw);var _w={},xw={get exports(){return _w},set exports(t){_w=t}},Ew={},Sw={get exports(){return Ew},set exports(t){Ew=t}},Ow={};Object.defineProperty(Ow,"__esModule",{value:!0}),Ow.getDefaultOptions=function(){return kw},Ow.setDefaultOptions=function(t){kw=t};var kw={};!function(t,e){var n=Qb.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n,s,u,c,l,f,h,d;(0,i.default)(1,arguments);var p=(0,a.getDefaultOptions)(),v=(0,o.default)(null!==(n=null!==(s=null!==(u=null!==(c=null==e?void 0:e.weekStartsOn)&&void 0!==c?c:null==e||null===(l=e.locale)||void 0===l||null===(f=l.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==u?u:p.weekStartsOn)&&void 0!==s?s:null===(h=p.locale)||void 0===h||null===(d=h.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==n?n:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,r.default)(t),y=g.getUTCDay(),m=(y<v?7:0)+y-v;return g.setUTCDate(g.getUTCDate()-m),g.setUTCHours(0,0,0,0),g};var r=n(aw),i=n(ow),o=n(fw),a=Ow;t.exports=e.default}(Sw,Ew);var Tw={},Pw={get exports(){return Tw},set exports(t){Tw=t}},Cw={};!function(t,e){var n=Qb.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n,u,c,l,f,h,d,p;(0,i.default)(1,arguments);var v=(0,r.default)(t),g=v.getUTCFullYear(),y=(0,s.getDefaultOptions)(),m=(0,a.default)(null!==(n=null!==(u=null!==(c=null!==(l=null==e?void 0:e.firstWeekContainsDate)&&void 0!==l?l:null==e||null===(f=e.locale)||void 0===f||null===(h=f.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==c?c:y.firstWeekContainsDate)&&void 0!==u?u:null===(d=y.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==n?n:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(g+1,0,m),b.setUTCHours(0,0,0,0);var w=(0,o.default)(b,e),_=new Date(0);_.setUTCFullYear(g,0,m),_.setUTCHours(0,0,0,0);var x=(0,o.default)(_,e);return v.getTime()>=w.getTime()?g+1:v.getTime()>=x.getTime()?g:g-1};var r=n(aw),i=n(ow),o=n(Ew),a=n(fw),s=Ow;t.exports=e.default}({get exports(){return Cw},set exports(t){Cw=t}},Cw),function(t,e){var n=Qb.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n,u,c,l,f,h,d,p;(0,i.default)(1,arguments);var v=(0,s.getDefaultOptions)(),g=(0,a.default)(null!==(n=null!==(u=null!==(c=null!==(l=null==e?void 0:e.firstWeekContainsDate)&&void 0!==l?l:null==e||null===(f=e.locale)||void 0===f||null===(h=f.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==c?c:v.firstWeekContainsDate)&&void 0!==u?u:null===(d=v.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==n?n:1),y=(0,r.default)(t,e),m=new Date(0);return m.setUTCFullYear(y,0,g),m.setUTCHours(0,0,0,0),(0,o.default)(m,e)};var r=n(Cw),i=n(ow),o=n(Ew),a=n(fw),s=Ow;t.exports=e.default}(Pw,Tw),function(t,e){var n=Qb.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){(0,a.default)(1,arguments);var n=(0,r.default)(t),u=(0,i.default)(n,e).getTime()-(0,o.default)(n,e).getTime();return Math.round(u/s)+1};var r=n(aw),i=n(Ew),o=n(Tw),a=n(ow),s=6048e5;t.exports=e.default}(xw,_w);var Aw={};!function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=t<0?"-":"",r=Math.abs(t).toString();for(;r.length<e;)r="0"+r;return n+r},t.exports=e.default}({get exports(){return Aw},set exports(t){Aw=t}},Aw);var jw={};!function(t,e){var n=Qb.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(Aw),i={y:function(t,e){var n=t.getUTCFullYear(),i=n>0?n:1-n;return(0,r.default)("yy"===e?i%100:i,e.length)},M:function(t,e){var n=t.getUTCMonth();return"M"===e?String(n+1):(0,r.default)(n+1,2)},d:function(t,e){return(0,r.default)(t.getUTCDate(),e.length)},a:function(t,e){var n=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(t,e){return(0,r.default)(t.getUTCHours()%12||12,e.length)},H:function(t,e){return(0,r.default)(t.getUTCHours(),e.length)},m:function(t,e){return(0,r.default)(t.getUTCMinutes(),e.length)},s:function(t,e){return(0,r.default)(t.getUTCSeconds(),e.length)},S:function(t,e){var n=e.length,i=t.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,n-3));return(0,r.default)(o,e.length)}};e.default=i,t.exports=e.default}({get exports(){return jw},set exports(t){jw=t}},jw),function(t,e){var n=Qb.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(pw),i=n(vw),o=n(ww),a=n(_w),s=n(Cw),u=n(Aw),c=n(jw),l="midnight",f="noon",h="morning",d="afternoon",p="evening",v="night",g={G:function(t,e,n){var r=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if("yo"===e){var r=t.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return c.default.y(t,e)},Y:function(t,e,n,r){var i=(0,s.default)(t,r),o=i>0?i:1-i;if("YY"===e){var a=o%100;return(0,u.default)(a,2)}return"Yo"===e?n.ordinalNumber(o,{unit:"year"}):(0,u.default)(o,e.length)},R:function(t,e){var n=(0,o.default)(t);return(0,u.default)(n,e.length)},u:function(t,e){var n=t.getUTCFullYear();return(0,u.default)(n,e.length)},Q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return(0,u.default)(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return(0,u.default)(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){var r=t.getUTCMonth();switch(e){case"M":case"MM":return c.default.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){var r=t.getUTCMonth();switch(e){case"L":return String(r+1);case"LL":return(0,u.default)(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){var i=(0,a.default)(t,r);return"wo"===e?n.ordinalNumber(i,{unit:"week"}):(0,u.default)(i,e.length)},I:function(t,e,n){var r=(0,i.default)(t);return"Io"===e?n.ordinalNumber(r,{unit:"week"}):(0,u.default)(r,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):c.default.d(t,e)},D:function(t,e,n){var i=(0,r.default)(t);return"Do"===e?n.ordinalNumber(i,{unit:"dayOfYear"}):(0,u.default)(i,e.length)},E:function(t,e,n){var r=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){var i=t.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return(0,u.default)(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){var i=t.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return(0,u.default)(o,e.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,n){var r=t.getUTCDay(),i=0===r?7:r;switch(e){case"i":return String(i);case"ii":return(0,u.default)(i,e.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,e,n){var r,i=t.getUTCHours();switch(r=12===i?f:0===i?l:i/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,n){var r,i=t.getUTCHours();switch(r=i>=17?p:i>=12?d:i>=4?h:v,e){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,n){if("ho"===e){var r=t.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return c.default.h(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):c.default.H(t,e)},K:function(t,e,n){var r=t.getUTCHours()%12;return"Ko"===e?n.ordinalNumber(r,{unit:"hour"}):(0,u.default)(r,e.length)},k:function(t,e,n){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===e?n.ordinalNumber(r,{unit:"hour"}):(0,u.default)(r,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):c.default.m(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):c.default.s(t,e)},S:function(t,e){return c.default.S(t,e)},X:function(t,e,n,r){var i=(r._originalDate||t).getTimezoneOffset();if(0===i)return"Z";switch(e){case"X":return m(i);case"XXXX":case"XX":return b(i);default:return b(i,":")}},x:function(t,e,n,r){var i=(r._originalDate||t).getTimezoneOffset();switch(e){case"x":return m(i);case"xxxx":case"xx":return b(i);default:return b(i,":")}},O:function(t,e,n,r){var i=(r._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+y(i,":");default:return"GMT"+b(i,":")}},z:function(t,e,n,r){var i=(r._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+y(i,":");default:return"GMT"+b(i,":")}},t:function(t,e,n,r){var i=r._originalDate||t,o=Math.floor(i.getTime()/1e3);return(0,u.default)(o,e.length)},T:function(t,e,n,r){var i=(r._originalDate||t).getTime();return(0,u.default)(i,e.length)}};function y(t,e){var n=t>0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var a=e||"";return n+String(i)+a+(0,u.default)(o,2)}function m(t,e){return t%60==0?(t>0?"-":"+")+(0,u.default)(Math.abs(t)/60,2):b(t,e)}function b(t,e){var n=e||"",r=t>0?"-":"+",i=Math.abs(t);return r+(0,u.default)(Math.floor(i/60),2)+n+(0,u.default)(i%60,2)}var w=g;e.default=w,t.exports=e.default}(dw,hw);var Nw={};!function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},r=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},i={p:r,P:function(t,e){var i,o=t.match(/(P+)(p+)?/)||[],a=o[1],s=o[2];if(!s)return n(t,e);switch(a){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;default:i=e.dateTime({width:"full"})}return i.replace("{{date}}",n(a,e)).replace("{{time}}",r(s,e))}},o=i;e.default=o,t.exports=e.default}({get exports(){return Nw},set exports(t){Nw=t}},Nw);var Mw={};!function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()},t.exports=e.default}({get exports(){return Mw},set exports(t){Mw=t}},Mw);var Rw={};Object.defineProperty(Rw,"__esModule",{value:!0}),Rw.isProtectedDayOfYearToken=function(t){return-1!==Dw.indexOf(t)},Rw.isProtectedWeekYearToken=function(t){return-1!==Lw.indexOf(t)},Rw.throwProtectedError=function(t,e,n){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))};var Dw=["D","DD"],Lw=["YY","YYYY"];var Iw={},Uw={get exports(){return Iw},set exports(t){Iw=t}},Fw={},Bw={get exports(){return Fw},set exports(t){Fw=t}},zw={};!function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=function(t,e,r){var i,o=n[t];return i="string"==typeof o?o:1===e?o.one:o.other.replace("{{count}}",e.toString()),null!=r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};e.default=r,t.exports=e.default}({get exports(){return zw},set exports(t){zw=t}},zw);var qw={},Hw={get exports(){return qw},set exports(t){qw=t}},Ww={};!function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}},t.exports=e.default}({get exports(){return Ww},set exports(t){Ww=t}},Ww),function(t,e){var n=Qb.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(Ww),i={date:(0,r.default)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,r.default)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,r.default)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};e.default=i,t.exports=e.default}(Hw,qw);var Yw={};!function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},r=function(t,e,r,i){return n[t]};e.default=r,t.exports=e.default}({get exports(){return Yw},set exports(t){Yw=t}},Yw);var $w={},Vw={get exports(){return $w},set exports(t){$w=t}},Jw={};!function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(e,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&t.formattingValues){var i=t.defaultFormattingWidth||t.defaultWidth,o=null!=n&&n.width?String(n.width):i;r=t.formattingValues[o]||t.formattingValues[i]}else{var a=t.defaultWidth,s=null!=n&&n.width?String(n.width):t.defaultWidth;r=t.values[s]||t.values[a]}return r[t.argumentCallback?t.argumentCallback(e):e]}},t.exports=e.default}({get exports(){return Jw},set exports(t){Jw=t}},Jw),function(t,e){var n=Qb.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(Jw),i={ordinalNumber:function(t,e){var n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:(0,r.default)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,r.default)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:(0,r.default)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,r.default)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,r.default)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};e.default=i,t.exports=e.default}(Vw,$w);var Xw={},Gw={get exports(){return Xw},set exports(t){Xw=t}},Zw={};!function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],o=e.match(i);if(!o)return null;var a,s=o[0],u=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(u)?function(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n;return}(u,(function(t){return t.test(s)})):function(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n;return}(u,(function(t){return t.test(s)}));return a=t.valueCallback?t.valueCallback(c):c,{value:a=n.valueCallback?n.valueCallback(a):a,rest:e.slice(s.length)}}},t.exports=e.default}({get exports(){return Zw},set exports(t){Zw=t}},Zw);var Kw={};!function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.match(t.matchPattern);if(!r)return null;var i=r[0],o=e.match(t.parsePattern);if(!o)return null;var a=t.valueCallback?t.valueCallback(o[0]):o[0];return{value:a=n.valueCallback?n.valueCallback(a):a,rest:e.slice(i.length)}}},t.exports=e.default}({get exports(){return Kw},set exports(t){Kw=t}},Kw),function(t,e){var n=Qb.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(Zw),i={ordinalNumber:(0,n(Kw).default)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:(0,r.default)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,r.default)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:(0,r.default)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,r.default)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,r.default)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};e.default=i,t.exports=e.default}(Gw,Xw),function(t,e){var n=Qb.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(zw),i=n(qw),o=n(Yw),a=n($w),s=n(Xw),u={code:"en-US",formatDistance:r.default,formatLong:i.default,formatRelative:o.default,localize:a.default,match:s.default,options:{weekStartsOn:0,firstWeekContainsDate:1}};e.default=u,t.exports=e.default}(Bw,Fw),function(t,e){var n=Qb.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(Fw).default;e.default=r,t.exports=e.default}(Uw,Iw),function(t,e){var n=Qb.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var b,w,_,x,E,S,O,k,T,P,C,A,j,N,M,R,D,L;(0,f.default)(2,arguments);var I=String(e),U=(0,h.getDefaultOptions)(),F=null!==(b=null!==(w=null==n?void 0:n.locale)&&void 0!==w?w:U.locale)&&void 0!==b?b:d.default,B=(0,l.default)(null!==(_=null!==(x=null!==(E=null!==(S=null==n?void 0:n.firstWeekContainsDate)&&void 0!==S?S:null==n||null===(O=n.locale)||void 0===O||null===(k=O.options)||void 0===k?void 0:k.firstWeekContainsDate)&&void 0!==E?E:U.firstWeekContainsDate)&&void 0!==x?x:null===(T=U.locale)||void 0===T||null===(P=T.options)||void 0===P?void 0:P.firstWeekContainsDate)&&void 0!==_?_:1);if(!(B>=1&&B<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var z=(0,l.default)(null!==(C=null!==(A=null!==(j=null!==(N=null==n?void 0:n.weekStartsOn)&&void 0!==N?N:null==n||null===(M=n.locale)||void 0===M||null===(R=M.options)||void 0===R?void 0:R.weekStartsOn)&&void 0!==j?j:U.weekStartsOn)&&void 0!==A?A:null===(D=U.locale)||void 0===D||null===(L=D.options)||void 0===L?void 0:L.weekStartsOn)&&void 0!==C?C:0);if(!(z>=0&&z<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!F.localize)throw new RangeError("locale must contain localize property");if(!F.formatLong)throw new RangeError("locale must contain formatLong property");var q=(0,o.default)(t);if(!(0,r.default)(q))throw new RangeError("Invalid time value");var H=(0,u.default)(q),W=(0,i.default)(q,H),Y={firstWeekContainsDate:B,weekStartsOn:z,locale:F,_originalDate:q};return I.match(v).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,s.default[e])(t,F.formatLong):t})).join("").match(p).map((function(r){if("''"===r)return"'";var i=r[0];if("'"===i)return function(t){var e=t.match(g);if(!e)return t;return e[1].replace(y,"'")}(r);var o=a.default[i];if(o)return null!=n&&n.useAdditionalWeekYearTokens||!(0,c.isProtectedWeekYearToken)(r)||(0,c.throwProtectedError)(r,e,String(t)),null!=n&&n.useAdditionalDayOfYearTokens||!(0,c.isProtectedDayOfYearToken)(r)||(0,c.throwProtectedError)(r,e,String(t)),o(W,r,F.localize,Y);if(i.match(m))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return r})).join("")};var r=n(tw),i=n(sw),o=n(aw),a=n(hw),s=n(Nw),u=n(Mw),c=Rw,l=n(fw),f=n(ow),h=Ow,d=n(Iw),p=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,v=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,g=/^'([^]*?)'?$/,y=/''/g,m=/[a-zA-Z]/;t.exports=e.default}(Kb,Zb);var Qw={},t_={get exports(){return Qw},set exports(t){Qw=t}},e_={};!function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var r=function(t,e,n){if(n&&!n.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:e,timeZoneName:t})}(t,n.timeZone,n.locale);return r.formatToParts?function(t,e){for(var n=t.formatToParts(e),r=n.length-1;r>=0;--r)if("timeZoneName"===n[r].type)return n[r].value}(r,e):function(t,e){var n=t.format(e).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}(r,e)},t.exports=e.default}({get exports(){return e_},set exports(t){e_=t}},e_);var n_={},r_={get exports(){return n_},set exports(t){n_=t}},i_={};!function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var i=function(t){if(!r[t]){var e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n="06/25/2014, 00:00:00"===e||"06/25/2014 00:00:00"===e;r[t]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return r[t]}(e);return i.formatToParts?function(t,e){try{for(var r=t.formatToParts(e),i=[],o=0;o<r.length;o++){var a=n[r[o].type];a>=0&&(i[a]=parseInt(r[o].value,10))}return i}catch(t){if(t instanceof RangeError)return[NaN];throw t}}(i,t):function(t,e){var n=t.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}(i,t)};var n={year:0,month:1,day:2,hour:3,minute:4,second:5};var r={};t.exports=e.default}({get exports(){return i_},set exports(t){i_=t}},i_);var o_={};!function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r,i,o,a){var s=new Date(0);return s.setUTCFullYear(t,e,n),s.setUTCHours(r,i,o,a),s},t.exports=e.default}({get exports(){return o_},set exports(t){o_=t}},o_),function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var i,f,h;if(!t)return 0;if(i=s.timezoneZ.exec(t))return 0;if(i=s.timezoneHH.exec(t))return c(h=parseInt(i[1],10))?-h*o:NaN;if(i=s.timezoneHHMM.exec(t)){h=parseInt(i[1],10);var d=parseInt(i[2],10);return c(h,d)?(f=Math.abs(h)*o+d*a,h>0?-f:f):NaN}if(function(t){if(l[t])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:t}),l[t]=!0,!0}catch(t){return!1}}(t)){e=new Date(e||Date.now());var p=n?e:function(t){return(0,r.default)(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}(e),v=u(p,t),g=n?v:function(t,e,n){var r=t.getTime(),i=r-e,o=u(new Date(i),n);if(e===o)return e;i-=o-e;var a=u(new Date(i),n);if(o===a)return o;return Math.max(o,a)}(e,v,t);return-g}return NaN};var n=i(i_),r=i(o_);function i(t){return t&&t.__esModule?t:{default:t}}var o=36e5,a=6e4,s={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function u(t,e){var i=(0,n.default)(t,e),o=(0,r.default)(i[0],i[1]-1,i[2],i[3]%24,i[4],i[5],0).getTime(),a=t.getTime(),s=a%1e3;return o-(a-=s>=0?s:1e3+s)}function c(t,e){return-23<=t&&t<=23&&(null==e||0<=e&&e<=59)}var l={};t.exports=e.default}(r_,n_),function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(e_),r=i(n_);function i(t){return t&&t.__esModule?t:{default:t}}var o={X:function(t,e,n,r){var i=a(r.timeZone,r._originalDate||t);if(0===i)return"Z";switch(e){case"X":return c(i);case"XXXX":case"XX":return u(i);default:return u(i,":")}},x:function(t,e,n,r){var i=a(r.timeZone,r._originalDate||t);switch(e){case"x":return c(i);case"xxxx":case"xx":return u(i);default:return u(i,":")}},O:function(t,e,n,r){var i=a(r.timeZone,r._originalDate||t);switch(e){case"O":case"OO":case"OOO":return"GMT"+function(t,e){var n=t>0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var a=e||"";return n+String(i)+a+s(o,2)}(i,":");default:return"GMT"+u(i,":")}},z:function(t,e,r,i){var o=i._originalDate||t;switch(e){case"z":case"zz":case"zzz":return(0,n.default)("short",o,i);default:return(0,n.default)("long",o,i)}}};function a(t,e){var n=t?(0,r.default)(t,e,!0)/6e4:e.getTimezoneOffset();if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+t);return n}function s(t,e){for(var n=t<0?"-":"",r=Math.abs(t).toString();r.length<e;)r="0"+r;return n+r}function u(t,e){var n=e||"",r=t>0?"-":"+",i=Math.abs(t);return r+s(Math.floor(i/60),2)+n+s(Math.floor(i%60),2)}function c(t,e){return t%60==0?(t>0?"-":"+")+s(Math.abs(t)/60,2):u(t,e)}var l=o;e.default=l,t.exports=e.default}(t_,Qw);var a_={},s_={get exports(){return a_},set exports(t){a_=t}},u_={};!function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;e.default=n,t.exports=e.default}({get exports(){return u_},set exports(t){u_=t}},u_),function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===t)return new Date(NaN);var o=e||{},a=null==o.additionalDigits?c:(0,n.default)(o.additionalDigits);if(2!==a&&1!==a&&0!==a)throw new RangeError("additionalDigits must be 0, 1 or 2");if(t instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t))return new Date(t.getTime());if("number"==typeof t||"[object Number]"===Object.prototype.toString.call(t))return new Date(t);if("string"!=typeof t&&"[object String]"!==Object.prototype.toString.call(t))return new Date(NaN);var h=function(t){var e,n={},r=l.dateTimePattern.exec(t);r?(n.date=r[1],e=r[3]):(r=l.datePattern.exec(t))?(n.date=r[1],e=r[2]):(n.date=null,e=t);if(e){var i=l.timeZone.exec(e);i?(n.time=e.replace(i[1],""),n.timeZone=i[1].trim()):n.time=e}return n}(t),d=function(t,e){var n,r=l.YYY[e],i=l.YYYYY[e];if(n=l.YYYY.exec(t)||i.exec(t)){var o=n[1];return{year:parseInt(o,10),restDateString:t.slice(o.length)}}if(n=l.YY.exec(t)||r.exec(t)){var a=n[1];return{year:100*parseInt(a,10),restDateString:t.slice(a.length)}}return{year:null}}(h.date,a),m=d.year,b=function(t,e){if(null===e)return null;var n,r,i,o;if(0===t.length)return(r=new Date(0)).setUTCFullYear(e),r;if(n=l.MM.exec(t))return r=new Date(0),v(e,i=parseInt(n[1],10)-1)?(r.setUTCFullYear(e,i),r):new Date(NaN);if(n=l.DDD.exec(t)){r=new Date(0);var a=parseInt(n[1],10);return function(t,e){if(e<1)return!1;var n=p(t);if(n&&e>366)return!1;if(!n&&e>365)return!1;return!0}(e,a)?(r.setUTCFullYear(e,0,a),r):new Date(NaN)}if(n=l.MMDD.exec(t)){r=new Date(0),i=parseInt(n[1],10)-1;var s=parseInt(n[2],10);return v(e,i,s)?(r.setUTCFullYear(e,i,s),r):new Date(NaN)}if(n=l.Www.exec(t))return g(e,o=parseInt(n[1],10)-1)?f(e,o):new Date(NaN);if(n=l.WwwD.exec(t)){o=parseInt(n[1],10)-1;var u=parseInt(n[2],10)-1;return g(e,o,u)?f(e,o,u):new Date(NaN)}return null}(d.restDateString,m);if(isNaN(b))return new Date(NaN);if(b){var w,_=b.getTime(),x=0;if(h.time&&(x=function(t){var e,n,r;if(e=l.HH.exec(t))return y(n=parseFloat(e[1].replace(",",".")))?n%24*s:NaN;if(e=l.HHMM.exec(t))return y(n=parseInt(e[1],10),r=parseFloat(e[2].replace(",",".")))?n%24*s+r*u:NaN;if(e=l.HHMMSS.exec(t)){n=parseInt(e[1],10),r=parseInt(e[2],10);var i=parseFloat(e[3].replace(",","."));return y(n,r,i)?n%24*s+r*u+1e3*i:NaN}return null}(h.time),isNaN(x)))return new Date(NaN);if(h.timeZone||o.timeZone){if(w=(0,i.default)(h.timeZone||o.timeZone,new Date(_+x)),isNaN(w))return new Date(NaN)}else w=(0,r.default)(new Date(_+x)),w=(0,r.default)(new Date(_+x+w));return new Date(_+x+w)}return new Date(NaN)};var n=a(fw),r=a(Mw),i=a(n_),o=a(u_);function a(t){return t&&t.__esModule?t:{default:t}}var s=36e5,u=6e4,c=2,l={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:o.default};function f(t,e,n){e=e||0,n=n||0;var r=new Date(0);r.setUTCFullYear(t,0,4);var i=7*e+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+i),r}var h=[31,28,31,30,31,30,31,31,30,31,30,31],d=[31,29,31,30,31,30,31,31,30,31,30,31];function p(t){return t%400==0||t%4==0&&t%100!=0}function v(t,e,n){if(e<0||e>11)return!1;if(null!=n){if(n<1)return!1;var r=p(t);if(r&&n>d[e])return!1;if(!r&&n>h[e])return!1}return!0}function g(t,e,n){return!(e<0||e>52)&&(null==n||!(n<0||n>6))}function y(t,e,n){return(null==t||!(t<0||t>=25))&&((null==e||!(e<0||e>=60))&&(null==n||!(n<0||n>=60)))}t.exports=e.default}(s_,a_),function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,o){var s=String(e),u=o||{},c=s.match(a);if(c){var l=(0,i.default)(t,u);s=c.reduce((function(t,e){if("'"===e[0])return t;var n=t.indexOf(e),i="'"===t[n-1],o=t.replace(e,"'"+r.default[e[0]](l,e,null,u)+"'");return i?o.substring(0,n-1)+o.substring(n+1):o}),s)}return(0,n.default)(t,s,u)};var n=o(Zb),r=o(Qw),i=o(a_);function o(t){return t&&t.__esModule?t:{default:t}}var a=/([xXOz]+)|''|'(''|[^'])+('|$)/g;t.exports=e.default}(Gb,Xb);var c_={},l_={get exports(){return c_},set exports(t){c_=t}},f_={},h_={get exports(){return f_},set exports(t){f_=t}},d_={};!function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},t.exports=e.default}({get exports(){return d_},set exports(t){d_=t}},d_),function(t,e){var n=Qb.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,r.default)({},t)};var r=n(d_);t.exports=e.default}(h_,f_);var p_={};!function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,i){var o=(0,r.default)(t,i),a=(0,n.default)(e,o,!0),s=new Date(o.getTime()-a),u=new Date(0);return u.setFullYear(s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate()),u.setHours(s.getUTCHours(),s.getUTCMinutes(),s.getUTCSeconds(),s.getUTCMilliseconds()),u};var n=i(n_),r=i(a_);function i(t){return t&&t.__esModule?t:{default:t}}t.exports=e.default}({get exports(){return p_},set exports(t){p_=t}},p_),function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,o,a){var s=(0,n.default)(a);return s.timeZone=e,(0,r.default)((0,i.default)(t,e),o,s)};var n=o(f_),r=o(Xb),i=o(p_);function o(t){return t&&t.__esModule?t:{default:t}}t.exports=e.default}(l_,c_);var v_={};!function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return-(0,n.default)(t,e)};var n=function(t){return t&&t.__esModule?t:{default:t}}(n_);t.exports=e.default}({get exports(){return v_},set exports(t){v_=t}},v_);var g_={};!function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,s){if("string"==typeof t&&!t.match(i.default)){var u=(0,n.default)(s);return u.timeZone=e,(0,r.default)(t,u)}var c=(0,r.default)(t,s),l=(0,a.default)(c.getFullYear(),c.getMonth(),c.getDate(),c.getHours(),c.getMinutes(),c.getSeconds(),c.getMilliseconds()).getTime(),f=(0,o.default)(e,new Date(l));return new Date(l+f)};var n=s(f_),r=s(a_),i=s(u_),o=s(n_),a=s(o_);function s(t){return t&&t.__esModule?t:{default:t}}t.exports=e.default}({get exports(){return g_},set exports(t){g_=t}},g_);var y_,m_={format:Xb,formatInTimeZone:c_,getTimezoneOffset:v_,toDate:a_,utcToZonedTime:p_,zonedTimeToUtc:g_};!function(t){t.Document="DOCUMENT",t.Text="TEXT"}(y_||(y_={}));var b_=y_;function w_(t){return w_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w_(t)}function __(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function x_(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function E_(t){x_(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===w_(t)&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function S_(t){x_(1,arguments);var e=E_(t);return e.setHours(0,0,0,0),e}function O_(t,e){x_(2,arguments);var n=S_(t),r=S_(e);return n.getTime()===r.getTime()}function k_(t,e,n){var r,i,o;return x_(1,arguments),void 0===(o=e)||"locale"in o?n=e:i=e,new Intl.DateTimeFormat(null===(r=n)||void 0===r?void 0:r.locale,i).format(t)}function T_(t,e){return x_(2,arguments),function(t,e){x_(2,arguments);var n=E_(t),r=__(e);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}(t,-__(e))}var P_=function(){function t(e){fp(this,t),pp(this,"date",void 0),pp(this,"dateFormat",{day:"numeric",month:"long",year:"numeric"}),pp(this,"shortDateFormat",{day:"numeric",month:"numeric",year:"2-digit"}),pp(this,"timeFormat",{hour:"numeric",hour12:!0,minute:"numeric"}),pp(this,"dateTimeFormat",sp(sp({},this.dateFormat),this.timeFormat)),pp(this,"dayDateTimeFormat",sp(sp({weekday:"long"},this.dateFormat),this.timeFormat)),this.date=e}return dp(t,[{key:"withinDifferenceDateFormat",get:function(){return null===this.date?"":!0===function(t){return x_(1,arguments),O_(t,Date.now())}(this.date)?k_(this.date,this.timeFormat):!0===function(t){return x_(1,arguments),O_(t,T_(Date.now(),1))}(this.date)?"Yesterday":k_(this.date,this.shortDateFormat)}},{key:"withinDateFormat",get:function(){return null===this.date?"":k_(this.date,this.dateFormat)}},{key:"withinTimeFormat",get:function(){return null===this.date?"":k_(this.date,this.timeFormat)}},{key:"withinDateTimeFormat",get:function(){return null===this.date?"":k_(this.date,this.dateTimeFormat)}},{key:"withinDayDateTimeFormat",get:function(){return null===this.date?"":k_(this.date,this.dayDateTimeFormat)}}]),t}(),C_=function(){function t(e,n,r,i,o,a,s){fp(this,t),pp(this,"id",void 0),pp(this,"receiverId",void 0),pp(this,"senderId",void 0),pp(this,"type",void 0),pp(this,"value",void 0),pp(this,"createdAt",void 0),pp(this,"readAt",void 0),this.id=e,this.receiverId=n,this.senderId=r,this.type=i,this.value=o,this.createdAt=a,this.readAt=s}return dp(t,[{key:"setReadAtTime",value:function(e){this.readAt=new P_(m_.utcToZonedTime(e,t.timeZone))}}],[{key:"from",value:function(e){return new this(e.id,e.receiver_id,e.sender_id,b_[{DOCUMENT:"Document",TEXT:"Text"}[e.type]],e.value,new P_(m_.utcToZonedTime(e.created_at,t.timeZone)),new P_(null!==e.read_at?m_.utcToZonedTime(e.read_at,t.timeZone):null))}}]),t}();pp(C_,"timeZone",Intl.DateTimeFormat().resolvedOptions().timeZone);var A_,j_,N_,M_=function(){function t(e,n,r,i,o){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=arguments.length>6&&void 0!==arguments[6]&&arguments[6];fp(this,t),pp(this,"id",void 0),pp(this,"name",void 0),pp(this,"avatar",void 0),pp(this,"unreadMessages",void 0),pp(this,"lastPrivateMessage",void 0),pp(this,"isOnline",void 0),pp(this,"typing",void 0),this.id=e,this.name=n,this.avatar=r,this.unreadMessages=i,this.lastPrivateMessage=o,this.isOnline=a,this.typing=s}return dp(t,null,[{key:"from",value:function(t){return new this(t.id,t.name,t.avatar,t.unread_messages,null!==t.last_private_message?C_.from(t.last_private_message):null)}}]),t}(),R_=function(){return{contacts:[],search:"",unreadMessages:0,url:document.querySelector(".basement-contacts").getAttribute("data-url"),init:function(){this.$watch("contacts",this.watchContacts.bind(this)),this.$refs.basementChatBox.addEventListener("update-last-private-message-received",this.updateLastPrivateMessageReceived.bind(this)),this.$refs.basementChatBox.addEventListener("update-last-private-message-sent",this.updateLastPrivateMessageSent.bind(this)),this.$refs.basementChatBox.addEventListener("update-currently-typing-contact",this.updateCurrentlyTypingContact.bind(this)),this.$refs.basementChatBox.addEventListener("update-unread-messages",this.updateUnreadMessages.bind(this))},mount:function(){var t=this;return lp(up().mark((function e(){var n;return up().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,window.axios.get(t.url).then((function(t){return t.data}));case 2:n=e.sent,t.contacts=n.data.map((function(t){return M_.from(t)})),t.registerEchoEventListeners();case 5:case"end":return e.stop()}}),e)})))()},get filteredContacts(){var t=this;return""===this.search?this.contacts:this.contacts.filter((function(e){return e.name.toLowerCase().includes(t.search.toLowerCase())}))},findSameContact:function(t){var e=this.contacts.findIndex((function(e){return e.id===t}));return-1===e?{index:null,contact:null}:{index:e,contact:this.contacts.at(e)}},onHere:function(t){var e=this;t.forEach((function(t){var n=e.findSameContact(t.id).contact;null!==n&&(n.isOnline=!0)}))},onSomeoneJoining:function(t){var e=this.findSameContact(t.id).contact;if(null!==e)e.isOnline=!0;else{var n=M_.from(t);n.isOnline=!0,this.contacts.push(n)}},onSomeoneLeaving:function(t){var e=this.findSameContact(t.id).contact;null!==e&&(e.isOnline=!1)},registerEchoEventListeners:function(){window.Echo.join("basement.contacts").here(this.onHere.bind(this)).joining(this.onSomeoneJoining.bind(this)).leaving(this.onSomeoneLeaving.bind(this))},updateLastPrivateMessageReceived:function(t){var e=this.findSameContact(t.detail.senderId).index;if(null!==e){var n=this.contacts.splice(e,1).at(0);n.lastPrivateMessage=t.detail,n.id!==t.detail.receiverId&&(n.unreadMessages+=1),this.contacts.unshift(n)}},updateLastPrivateMessageSent:function(t){var e=this.findSameContact(t.detail.receiverId).index;if(null!==e){var n=this.contacts.splice(e,1).at(0);n.lastPrivateMessage=t.detail,this.contacts.unshift(n)}},updateReceiver:function(t){this.$dispatch("update-receiver",t)},updateCurrentlyTypingContact:function(t){var e=this.findSameContact(t.detail.contact.id).contact;null!==e&&(e.typing=t.detail.contact.typing)},updateUnreadMessages:function(t){var e=this;t.detail.messages.forEach((function(t){var n=t.sender_id,r=t.total,i=e.findSameContact(Number(n)).contact;null!==i&&(i.unreadMessages-=r)}))},watchContacts:function(t){this.unreadMessages=t.reduce((function(t,e){return t+e.unreadMessages}),0)}}},D_={},L_=!$o((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),I_=Ps,U_=Ca,F_=Os,B_=L_,z_=ec("IE_PROTO"),q_=Object,H_=q_.prototype,W_=B_?q_.getPrototypeOf:function(t){var e=F_(t);if(I_(e,z_))return e[z_];var n=e.constructor;return U_(n)&&e instanceof n?n.prototype:e instanceof q_?H_:null},Y_=$o,$_=Ca,V_=Na,J_=W_,X_=Uc,G_=qs("iterator"),Z_=!1;[].keys&&("next"in(N_=[].keys())?(j_=J_(J_(N_)))!==Object.prototype&&(A_=j_):Z_=!0);var K_=!V_(A_)||Y_((function(){var t={};return A_[G_].call(t)!==t}));K_&&(A_={}),$_(A_[G_])||X_(A_,G_,(function(){return this}));var Q_={IteratorPrototype:A_,BUGGY_SAFARI_ITERATORS:Z_},tx=vu.f,ex=Ps,nx=qs("toStringTag"),rx=function(t,e,n){t&&!n&&(t=t.prototype),t&&!ex(t,nx)&&tx(t,nx,{configurable:!0,value:e})},ix=Q_.IteratorPrototype,ox=Xv,ax=ia,sx=rx,ux=D_,cx=function(){return this},lx=ql,fx=Zo,hx=Ca,dx=function(t,e,n,r){var i=e+" Iterator";return t.prototype=ox(ix,{next:ax(+!r,n)}),sx(t,i,!1),ux[i]=cx,t},px=W_,vx=Qm,gx=rx,yx=Ru,mx=Uc,bx=D_,wx=qu.PROPER,_x=qu.CONFIGURABLE,xx=Q_.IteratorPrototype,Ex=Q_.BUGGY_SAFARI_ITERATORS,Sx=qs("iterator"),Ox="keys",kx="values",Tx="entries",Px=function(){return this},Cx=function(t,e,n,r,i,o,a){dx(n,e,r);var s,u,c,l=function(t){if(t===i&&v)return v;if(!Ex&&t in d)return d[t];switch(t){case Ox:case kx:case Tx:return function(){return new n(this,t)}}return function(){return new n(this)}},f=e+" Iterator",h=!1,d=t.prototype,p=d[Sx]||d["@@iterator"]||i&&d[i],v=!Ex&&p||l(i),g="Array"==e&&d.entries||p;if(g&&(s=px(g.call(new t)))!==Object.prototype&&s.next&&(px(s)!==xx&&(vx?vx(s,xx):hx(s[Sx])||mx(s,Sx,Px)),gx(s,f,!0)),wx&&i==kx&&p&&p.name!==kx&&(_x?yx(d,"name",kx):(h=!0,v=function(){return fx(p,this)})),i)if(u={values:l(kx),keys:o?v:l(Ox),entries:l(Tx)},a)for(c in u)(Ex||h||!(c in d))&&mx(d,c,u[c]);else lx({target:e,proto:!0,forced:Ex||h},u);return d[Sx]!==v&&mx(d,Sx,v,{name:i}),bx[e]=v,u},Ax=function(t,e){return{value:t,done:e}},jx=Oa,Nx=hy,Mx=D_,Rx=gc,Dx=vu.f,Lx=Cx,Ix=Ax,Ux=Vo,Fx="Array Iterator",Bx=Rx.set,zx=Rx.getterFor(Fx),qx=Lx(Array,"Array",(function(t,e){Bx(this,{type:Fx,target:jx(t),index:0,kind:e})}),(function(){var t=zx(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,Ix(void 0,!0)):Ix("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values"),Hx=Mx.Arguments=Mx.Array;if(Nx("keys"),Nx("values"),Nx("entries"),Ux&&"values"!==Hx.name)try{Dx(Hx,"name",{value:"values"})}catch(t){}var Wx={},Yx={get exports(){return Wx},set exports(t){Wx=t}},$x={},Vx=Vc,Jx=Kc,Xx=xm,Gx=Array,Zx=Math.max,Kx=da,Qx=Oa,tE=Fc.f,eE=function(t,e,n){for(var r=Jx(t),i=Vx(e,r),o=Vx(void 0===n?r:n,r),a=Gx(Zx(o-i,0)),s=0;i<o;i++,s++)Xx(a,s,t[i]);return a.length=s,a},nE="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];$x.f=function(t){return nE&&"Window"==Kx(t)?function(t){try{return tE(t)}catch(t){return eE(nE)}}(t):tE(Qx(t))};var rE=$o((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),iE=$o,oE=Na,aE=da,sE=rE,uE=Object.isExtensible,cE=iE((function(){uE(1)}))||sE?function(t){return!!oE(t)&&((!sE||"ArrayBuffer"!=aE(t))&&(!uE||uE(t)))}:uE,lE=!$o((function(){return Object.isExtensible(Object.preventExtensions({}))})),fE=ql,hE=ca,dE=nc,pE=Na,vE=Ps,gE=vu.f,yE=Fc,mE=$x,bE=cE,wE=lE,_E=!1,xE=Ms("meta"),EE=0,SE=function(t){gE(t,xE,{value:{objectID:"O"+EE++,weakData:{}}})},OE=Yx.exports={enable:function(){OE.enable=function(){},_E=!0;var t=yE.f,e=hE([].splice),n={};n[xE]=1,t(n).length&&(yE.f=function(n){for(var r=t(n),i=0,o=r.length;i<o;i++)if(r[i]===xE){e(r,i,1);break}return r},fE({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:mE.f}))},fastKey:function(t,e){if(!pE(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!vE(t,xE)){if(!bE(t))return"F";if(!e)return"E";SE(t)}return t[xE].objectID},getWeakData:function(t,e){if(!vE(t,xE)){if(!bE(t))return!0;if(!e)return!1;SE(t)}return t[xE].weakData},onFreeze:function(t){return wE&&_E&&bE(t)&&!vE(t,xE)&&SE(t),t}};dE[xE]=!0;var kE=D_,TE=qs("iterator"),PE=Array.prototype,CE=Dp,AE=cs,jE=ba,NE=D_,ME=qs("iterator"),RE=function(t){if(!jE(t))return AE(t,ME)||AE(t,"@@iterator")||NE[CE(t)]},DE=Zo,LE=as,IE=wu,UE=ns,FE=RE,BE=TypeError,zE=Zo,qE=wu,HE=cs,WE=Sp,YE=Zo,$E=wu,VE=ns,JE=function(t){return void 0!==t&&(kE.Array===t||PE[TE]===t)},XE=Kc,GE=La,ZE=function(t,e){var n=arguments.length<2?FE(t):e;if(LE(n))return IE(DE(n,t));throw BE(UE(t)+" is not iterable")},KE=RE,QE=function(t,e,n){var r,i;qE(t);try{if(!(r=HE(t,"return"))){if("throw"===e)throw n;return n}r=zE(r,t)}catch(t){i=!0,r=t}if("throw"===e)throw n;if(i)throw r;return qE(r),n},tS=TypeError,eS=function(t,e){this.stopped=t,this.result=e},nS=eS.prototype,rS=function(t,e,n){var r,i,o,a,s,u,c,l=n&&n.that,f=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_RECORD),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),v=WE(e,l),g=function(t){return r&&QE(r,"normal",t),new eS(!0,t)},y=function(t){return f?($E(t),p?v(t[0],t[1],g):v(t[0],t[1])):p?v(t,g):v(t)};if(h)r=t.iterator;else if(d)r=t;else{if(!(i=KE(t)))throw tS(VE(t)+" is not iterable");if(JE(i)){for(o=0,a=XE(t);a>o;o++)if((s=y(t[o]))&&GE(nS,s))return s;return new eS(!1)}r=ZE(t,i)}for(u=h?t.next:r.next;!(c=YE(u,r)).done;){try{s=y(c.value)}catch(t){QE(r,"throw",t)}if("object"==typeof s&&s&&GE(nS,s))return s}return new eS(!1)},iS=La,oS=TypeError,aS=function(t,e){if(iS(e,t))return t;throw oS("Incorrect invocation")},sS=qs("iterator"),uS=!1;try{var cS=0,lS={next:function(){return{done:!!cS++}},return:function(){uS=!0}};lS[sS]=function(){return this},Array.from(lS,(function(){throw 2}))}catch(t){}var fS=ql,hS=Wo,dS=ca,pS=Rl,vS=Uc,gS=Wx,yS=rS,mS=aS,bS=Ca,wS=ba,_S=Na,xS=$o,ES=function(t,e){if(!e&&!uS)return!1;var n=!1;try{var r={};r[sS]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},SS=rx,OS=rb,kS=Uc,TS=Da,PS=Kg,CS=Vo,AS=qs("species"),jS=Xv,NS=Kg,MS=function(t,e,n){for(var r in e)kS(t,r,e[r],n);return t},RS=Sp,DS=aS,LS=ba,IS=rS,US=Cx,FS=Ax,BS=function(t){var e=TS(t);CS&&e&&!e[AS]&&PS(e,AS,{configurable:!0,get:function(){return this}})},zS=Vo,qS=Wx.fastKey,HS=gc.set,WS=gc.getterFor,YS={getConstructor:function(t,e,n,r){var i=t((function(t,i){DS(t,o),HS(t,{type:e,index:jS(null),first:void 0,last:void 0,size:0}),zS||(t.size=0),LS(i)||IS(i,t[r],{that:t,AS_ENTRIES:n})})),o=i.prototype,a=WS(e),s=function(t,e,n){var r,i,o=a(t),s=u(t,e);return s?s.value=n:(o.last=s={index:i=qS(e,!0),key:e,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=s),r&&(r.next=s),zS?o.size++:t.size++,"F"!==i&&(o.index[i]=s)),t},u=function(t,e){var n,r=a(t),i=qS(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==e)return n};return MS(o,{clear:function(){for(var t=a(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,zS?t.size=0:this.size=0},delete:function(t){var e=this,n=a(e),r=u(e,t);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first==r&&(n.first=i),n.last==r&&(n.last=o),zS?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=a(this),r=RS(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!u(this,t)}}),MS(o,n?{get:function(t){var e=u(this,t);return e&&e.value},set:function(t,e){return s(this,0===t?0:t,e)}}:{add:function(t){return s(this,t=0===t?0:t,t)}}),zS&&NS(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(t,e,n){var r=e+" Iterator",i=WS(e),o=WS(r);US(t,e,(function(t,e){HS(this,{type:r,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?FS("keys"==e?n.key:"values"==e?n.value:[n.key,n.value],!1):(t.target=void 0,FS(void 0,!0))}),n?"entries":"values",!n,!0),BS(e)}};(function(t,e,n){var r=-1!==t.indexOf("Map"),i=-1!==t.indexOf("Weak"),o=r?"set":"add",a=hS[t],s=a&&a.prototype,u=a,c={},l=function(t){var e=dS(s[t]);vS(s,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(i&&!_S(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return i&&!_S(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(i&&!_S(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(pS(t,!bS(a)||!(i||s.forEach&&!xS((function(){(new a).entries().next()})))))u=n.getConstructor(e,t,r,o),gS.enable();else if(pS(t,!0)){var f=new u,h=f[o](i?{}:-0,1)!=f,d=xS((function(){f.has(1)})),p=ES((function(t){new a(t)})),v=!i&&xS((function(){for(var t=new a,e=5;e--;)t[o](e,e);return!t.has(-0)}));p||((u=e((function(t,e){mS(t,s);var n=OS(new a,t,u);return wS(e)||yS(e,n[o],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=u),(d||v)&&(l("delete"),l("has"),r&&l("get")),(v||h)&&l(o),i&&s.clear&&delete s.clear}c[t]=u,fS({global:!0,constructor:!0,forced:u!=a},c),SS(u,t),i||n.setStrong(u,t,r)})("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),YS);var $S=ca,VS=Hc,JS=mv,XS=xa,GS=$S("".charAt),ZS=$S("".charCodeAt),KS=$S("".slice),QS=function(t){return function(e,n){var r,i,o=JS(XS(e)),a=VS(n),s=o.length;return a<0||a>=s?t?"":void 0:(r=ZS(o,a))<55296||r>56319||a+1===s||(i=ZS(o,a+1))<56320||i>57343?t?GS(o,a):r:t?KS(o,a,a+2):i-56320+(r-55296<<10)+65536}},tO={codeAt:QS(!1),charAt:QS(!0)},eO=tO.charAt,nO=mv,rO=gc,iO=Cx,oO=Ax,aO="String Iterator",sO=rO.set,uO=rO.getterFor(aO);iO(String,"String",(function(t){sO(this,{type:aO,string:nO(t),index:0})}),(function(){var t,e=uO(this),n=e.string,r=e.index;return r>=n.length?oO(void 0,!0):(t=eO(n,r),e.index+=t.length,oO(t,!1))}));var cO=Wo,lO=$y,fO=Xy,hO=qx,dO=Ru,pO=qs,vO=pO("iterator"),gO=pO("toStringTag"),yO=hO.values,mO=function(t,e){if(t){if(t[vO]!==yO)try{dO(t,vO,yO)}catch(e){t[vO]=yO}if(t[gO]||dO(t,gO,e),lO[e])for(var n in hO)if(t[n]!==hO[n])try{dO(t,n,hO[n])}catch(e){t[n]=hO[n]}}};for(var bO in lO)mO(cO[bO]&&cO[bO].prototype,bO);mO(fO,"DOMTokenList");var wO=Jo,_O=Function.prototype,xO=_O.apply,EO=_O.call,SO="object"==typeof Reflect&&Reflect.apply||(wO?EO.bind(xO):function(){return EO.apply(xO,arguments)}),OO="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,kO=TypeError,TO=Wo,PO=SO,CO=Ca,AO=OO,jO=Ia,NO=tf,MO=function(t,e){if(t<e)throw kO("Not enough arguments");return t},RO=TO.Function,DO=/MSIE .\./.test(jO)||AO&&function(){var t=TO.Bun.version.split(".");return t.length<3||0==t[0]&&(t[1]<3||3==t[1]&&0==t[2])}(),LO=function(t,e){var n=e?2:1;return DO?function(r,i){var o=MO(arguments.length,1)>n,a=CO(r)?r:RO(r),s=o?NO(arguments,n):[],u=o?function(){PO(a,this,s)}:a;return e?t(u,i):t(u)}:t},IO=ql,UO=Wo,FO=LO(UO.setInterval,!0);IO({global:!0,bind:!0,forced:UO.setInterval!==FO},{setInterval:FO});var BO=ql,zO=Wo,qO=LO(zO.setTimeout,!0);BO({global:!0,bind:!0,forced:zO.setTimeout!==qO},{setTimeout:qO});var HO=qu.PROPER,WO=$o,YO=ob,$O=db.trim;ql({target:"String",proto:!0,forced:function(t){return WO((function(){return!!YO[t]()||"
"!=="
"[t]()||HO&&YO[t].name!==t}))}("trim")},{trim:function(){return $O(this)}});var VO=vu.f,JO=mv,XO=function(t,e){return void 0===t?arguments.length<2?"":e:JO(t)},GO=Na,ZO=Ru,KO=Error,QO=ca("".replace),tk=String(KO("zxcasd").stack),ek=/\n\s*at [^:]*:[^\n]*/,nk=ek.test(tk),rk=ia,ik=!$o((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",rk(1,7)),7!==t.stack)})),ok=Ru,ak=function(t,e){if(nk&&"string"==typeof t&&!KO.prepareStackTrace)for(;e--;)t=QO(t,ek,"");return t},sk=ik,uk=Error.captureStackTrace,ck=Da,lk=Ps,fk=Ru,hk=La,dk=Qm,pk=Ol,vk=function(t,e,n){n in t||VO(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})},gk=rb,yk=XO,mk=function(t,e){GO(e)&&"cause"in e&&ZO(t,"cause",e.cause)},bk=function(t,e,n,r){sk&&(uk?uk(t,e):ok(t,"stack",ak(n,r)))},wk=Vo,_k=ql,xk=SO,Ek=function(t,e,n,r){var i="stackTraceLimit",o=r?2:1,a=t.split("."),s=a[a.length-1],u=ck.apply(null,a);if(u){var c=u.prototype;if(lk(c,"cause")&&delete c.cause,!n)return u;var l=ck("Error"),f=e((function(t,e){var n=yk(r?e:t,void 0),i=r?new u(t):new u;return void 0!==n&&fk(i,"message",n),bk(i,f,i.stack,2),this&&hk(c,this)&&gk(i,this,f),arguments.length>o&&mk(i,arguments[o]),i}));f.prototype=c,"Error"!==s?dk?dk(f,l):pk(f,l,{name:!0}):wk&&i in u&&(vk(f,u,i),vk(f,u,"prepareStackTrace")),pk(f,u);try{c.name!==s&&fk(c,"name",s),c.constructor=f}catch(t){}return f}},Sk="WebAssembly",Ok=Wo[Sk],kk=7!==Error("e",{cause:7}).cause,Tk=function(t,e){var n={};n[t]=Ek(t,e,kk),_k({global:!0,constructor:!0,arity:1,forced:kk},n)},Pk=function(t,e){if(Ok&&Ok[t]){var n={};n[t]=Ek(Sk+"."+t,e,kk),_k({target:Sk,stat:!0,constructor:!0,arity:1,forced:kk},n)}};Tk("Error",(function(t){return function(e){return xk(t,this,arguments)}})),Tk("EvalError",(function(t){return function(e){return xk(t,this,arguments)}})),Tk("RangeError",(function(t){return function(e){return xk(t,this,arguments)}})),Tk("ReferenceError",(function(t){return function(e){return xk(t,this,arguments)}})),Tk("SyntaxError",(function(t){return function(e){return xk(t,this,arguments)}})),Tk("TypeError",(function(t){return function(e){return xk(t,this,arguments)}})),Tk("URIError",(function(t){return function(e){return xk(t,this,arguments)}})),Pk("CompileError",(function(t){return function(e){return xk(t,this,arguments)}})),Pk("LinkError",(function(t){return function(e){return xk(t,this,arguments)}})),Pk("RuntimeError",(function(t){return function(e){return xk(t,this,arguments)}}));var Ck=Vo,Ak=$o,jk=wu,Nk=Xv,Mk=XO,Rk=Error.prototype.toString,Dk=Uc,Lk=Ak((function(){if(Ck){var t=Nk(Object.defineProperty({},"name",{get:function(){return this===t}}));if("true"!==Rk.call(t))return!0}return"2: 1"!==Rk.call({message:1,name:2})||"Error"!==Rk.call({})}))?function(){var t=jk(this),e=Mk(t.name,"Error"),n=Mk(t.message);return e?n?e+": "+n:e:n}:Rk,Ik=Error.prototype;Ik.toString!==Lk&&Dk(Ik,"toString",Lk);var Uk=ql,Fk=kp,Bk=ca([].reverse),zk=[1,2];Uk({target:"Array",proto:!0,forced:String(zk)===String(zk.reverse())},{reverse:function(){return Fk(this)&&(this.length=this.length),Bk(this)}});var qk=ql,Hk=lv.find,Wk=hy,Yk="find",$k=!0;Yk in[]&&Array(1)[Yk]((function(){$k=!1})),qk({target:"Array",proto:!0,forced:$k},{find:function(t){return Hk(this,t,arguments.length>1?arguments[1]:void 0)}}),Wk(Yk);var Vk=lv.some;ql({target:"Array",proto:!0,forced:!Hy("some")},{some:function(t){return Vk(this,t,arguments.length>1?arguments[1]:void 0)}});var Jk=tO.charAt,Xk=ca,Gk=Os,Zk=Math.floor,Kk=Xk("".charAt),Qk=Xk("".replace),tT=Xk("".slice),eT=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,nT=/\$([$&'`]|\d{1,2})/g,rT=SO,iT=Zo,oT=ca,aT=Ag,sT=$o,uT=wu,cT=Ca,lT=ba,fT=Hc,hT=Gc,dT=mv,pT=xa,vT=function(t,e,n){return e+(n?Jk(t,e).length:1)},gT=cs,yT=function(t,e,n,r,i,o){var a=n+t.length,s=r.length,u=nT;return void 0!==i&&(i=Gk(i),u=eT),Qk(o,u,(function(o,u){var c;switch(Kk(u,0)){case"$":return"$";case"&":return t;case"`":return tT(e,0,n);case"'":return tT(e,a);case"<":c=i[tT(u,1,-1)];break;default:var l=+u;if(0===l)return o;if(l>s){var f=Zk(l/10);return 0===f?o:f<=s?void 0===r[f-1]?Kk(u,1):r[f-1]+Kk(u,1):o}c=r[l-1]}return void 0===c?"":c}))},mT=Ug,bT=qs("replace"),wT=Math.max,_T=Math.min,xT=oT([].concat),ET=oT([].push),ST=oT("".indexOf),OT=oT("".slice),kT="$0"==="a".replace(/./,"$0"),TT=!!/./[bT]&&""===/./[bT]("a","$0");aT("replace",(function(t,e,n){var r=TT?"$":"$0";return[function(t,n){var r=pT(this),i=lT(t)?void 0:gT(t,bT);return i?iT(i,t,r,n):iT(e,dT(r),t,n)},function(t,i){var o=uT(this),a=dT(t);if("string"==typeof i&&-1===ST(i,r)&&-1===ST(i,"$<")){var s=n(e,o,a,i);if(s.done)return s.value}var u=cT(i);u||(i=dT(i));var c=o.global;if(c){var l=o.unicode;o.lastIndex=0}for(var f=[];;){var h=mT(o,a);if(null===h)break;if(ET(f,h),!c)break;""===dT(h[0])&&(o.lastIndex=vT(a,hT(o.lastIndex),l))}for(var d,p="",v=0,g=0;g<f.length;g++){for(var y=dT((h=f[g])[0]),m=wT(_T(fT(h.index),a.length),0),b=[],w=1;w<h.length;w++)ET(b,void 0===(d=h[w])?d:String(d));var _=h.groups;if(u){var x=xT([y],b,m,a);void 0!==_&&ET(x,_);var E=dT(rT(i,void 0,x))}else E=yT(y,a,m,b,_,i);m>=v&&(p+=OT(a,v,m)+E,v=m+y.length)}return p+OT(a,v)}]}),!!sT((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!kT||TT);var PT={};
|
||
/*!***************************************************
|
||
* mark.js v8.11.1
|
||
* https://markjs.io/
|
||
* Copyright (c) 2014–2018, Julian Kühnel
|
||
* Released under the MIT license https://git.io/vwTVl
|
||
*****************************************************/
|
||
!function(t,e){t.exports=function(){var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},n=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=function(){function t(n){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5e3;e(this,t),this.ctx=n,this.iframes=r,this.exclude=i,this.iframesTimeout=o}return n(t,[{key:"getContexts",value:function(){var t=[];return(void 0!==this.ctx&&this.ctx?NodeList.prototype.isPrototypeOf(this.ctx)?Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?this.ctx:"string"==typeof this.ctx?Array.prototype.slice.call(document.querySelectorAll(this.ctx)):[this.ctx]:[]).forEach((function(e){var n=t.filter((function(t){return t.contains(e)})).length>0;-1!==t.indexOf(e)||n||t.push(e)})),t}},{key:"getIframeContents",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},r=void 0;try{var i=t.contentWindow;if(r=i.document,!i||!r)throw new Error("iframe inaccessible")}catch(t){n()}r&&e(r)}},{key:"isIframeBlank",value:function(t){var e="about:blank",n=t.getAttribute("src").trim();return t.contentWindow.location.href===e&&n!==e&&n}},{key:"observeIframeLoad",value:function(t,e,n){var r=this,i=!1,o=null,a=function a(){if(!i){i=!0,clearTimeout(o);try{r.isIframeBlank(t)||(t.removeEventListener("load",a),r.getIframeContents(t,e,n))}catch(t){n()}}};t.addEventListener("load",a),o=setTimeout(a,this.iframesTimeout)}},{key:"onIframeReady",value:function(t,e,n){try{"complete"===t.contentWindow.document.readyState?this.isIframeBlank(t)?this.observeIframeLoad(t,e,n):this.getIframeContents(t,e,n):this.observeIframeLoad(t,e,n)}catch(t){n()}}},{key:"waitForIframes",value:function(t,e){var n=this,r=0;this.forEachIframe(t,(function(){return!0}),(function(t){r++,n.waitForIframes(t.querySelector("html"),(function(){--r||e()}))}),(function(t){t||e()}))}},{key:"forEachIframe",value:function(e,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},a=e.querySelectorAll("iframe"),s=a.length,u=0;a=Array.prototype.slice.call(a);var c=function(){--s<=0&&o(u)};s||c(),a.forEach((function(e){t.matches(e,i.exclude)?c():i.onIframeReady(e,(function(t){n(e)&&(u++,r(t)),c()}),c)}))}},{key:"createIterator",value:function(t,e,n){return document.createNodeIterator(t,e,n,!1)}},{key:"createInstanceOnIframe",value:function(e){return new t(e.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(t,e,n){if(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING){if(null===e)return!0;if(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING)return!0}return!1}},{key:"getIteratorNode",value:function(t){var e=t.previousNode();return{prevNode:e,node:(null===e||t.nextNode())&&t.nextNode()}}},{key:"checkIframeFilter",value:function(t,e,n,r){var i=!1,o=!1;return r.forEach((function(t,e){t.val===n&&(i=e,o=t.handled)})),this.compareNodeIframe(t,e,n)?(!1!==i||o?!1===i||o||(r[i].handled=!0):r.push({val:n,handled:!0}),!0):(!1===i&&r.push({val:n,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(t,e,n,r){var i=this;t.forEach((function(t){t.handled||i.getIframeContents(t.val,(function(t){i.createInstanceOnIframe(t).forEachNode(e,n,r)}))}))}},{key:"iterateThroughNodes",value:function(t,e,n,r,i){for(var o=this,a=this.createIterator(e,t,r),s=[],u=[],c=void 0,l=void 0,f=function(){var t=o.getIteratorNode(a);return l=t.prevNode,c=t.node};f();)this.iframes&&this.forEachIframe(e,(function(t){return o.checkIframeFilter(c,l,t,s)}),(function(e){o.createInstanceOnIframe(e).forEachNode(t,(function(t){return u.push(t)}),r)})),u.push(c);u.forEach((function(t){n(t)})),this.iframes&&this.handleOpenIframes(s,t,n,r),i()}},{key:"forEachNode",value:function(t,e,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},o=this.getContexts(),a=o.length;a||i(),o.forEach((function(o){var s=function(){r.iterateThroughNodes(t,o,e,n,(function(){--a<=0&&i()}))};r.iframes?r.waitForIframes(o,s):s()}))}}],[{key:"matches",value:function(t,e){var n="string"==typeof e?[e]:e,r=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;if(r){var i=!1;return n.every((function(e){return!r.call(t,e)||(i=!0,!1)})),i}return!1}}]),t}(),o=function(){function o(t){e(this,o),this.ctx=t,this.ie=!1;var n=window.navigator.userAgent;(n.indexOf("MSIE")>-1||n.indexOf("Trident")>-1)&&(this.ie=!0)}return n(o,[{key:"log",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"debug",r=this.opt.log;this.opt.debug&&"object"===(void 0===r?"undefined":t(r))&&"function"==typeof r[n]&&r[n]("mark.js: "+e)}},{key:"escapeStr",value:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(t){return"disabled"!==this.opt.wildcards&&(t=this.setupWildcardsRegExp(t)),t=this.escapeStr(t),Object.keys(this.opt.synonyms).length&&(t=this.createSynonymsRegExp(t)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),this.opt.diacritics&&(t=this.createDiacriticsRegExp(t)),t=this.createMergedBlanksRegExp(t),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.createJoinersRegExp(t)),"disabled"!==this.opt.wildcards&&(t=this.createWildcardsRegExp(t)),t=this.createAccuracyRegExp(t)}},{key:"createSynonymsRegExp",value:function(t){var e=this.opt.synonyms,n=this.opt.caseSensitive?"":"i",r=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var i in e)if(e.hasOwnProperty(i)){var o=e[i],a="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(i):this.escapeStr(i),s="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(o):this.escapeStr(o);""!==a&&""!==s&&(t=t.replace(new RegExp("("+this.escapeStr(a)+"|"+this.escapeStr(s)+")","gm"+n),r+"("+this.processSynomyms(a)+"|"+this.processSynomyms(s)+")"+r))}return t}},{key:"processSynomyms",value:function(t){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),t}},{key:"setupWildcardsRegExp",value:function(t){return(t=t.replace(/(?:\\)*\?/g,(function(t){return"\\"===t.charAt(0)?"?":""}))).replace(/(?:\\)*\*/g,(function(t){return"\\"===t.charAt(0)?"*":""}))}},{key:"createWildcardsRegExp",value:function(t){var e="withSpaces"===this.opt.wildcards;return t.replace(/\u0001/g,e?"[\\S\\s]?":"\\S?").replace(/\u0002/g,e?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(t){return t.replace(/[^(|)\\]/g,(function(t,e,n){var r=n.charAt(e+1);return/[(|)\\]/.test(r)||""===r?t:t+"\0"}))}},{key:"createJoinersRegExp",value:function(t){var e=[],n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&e.push(this.escapeStr(n.join(""))),this.opt.ignoreJoiners&&e.push("\\u00ad\\u200b\\u200c\\u200d"),e.length?t.split(/\u0000+/).join("["+e.join("")+"]*"):t}},{key:"createDiacriticsRegExp",value:function(t){var e=this.opt.caseSensitive?"":"i",n=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"],r=[];return t.split("").forEach((function(i){n.every((function(n){if(-1!==n.indexOf(i)){if(r.indexOf(n)>-1)return!1;t=t.replace(new RegExp("["+n+"]","gm"+e),"["+n+"]"),r.push(n)}return!0}))})),t}},{key:"createMergedBlanksRegExp",value:function(t){return t.replace(/[\s]+/gim,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(t){var e=this,n="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿",r=this.opt.accuracy,i="string"==typeof r?r:r.value,o="string"==typeof r?[]:r.limiters,a="";switch(o.forEach((function(t){a+="|"+e.escapeStr(t)})),i){case"partially":default:return"()("+t+")";case"complementary":return"()([^"+(a="\\s"+(a||this.escapeStr(n)))+"]*"+t+"[^"+a+"]*)";case"exactly":return"(^|\\s"+a+")("+t+")(?=$|\\s"+a+")"}}},{key:"getSeparatedKeywords",value:function(t){var e=this,n=[];return t.forEach((function(t){e.opt.separateWordSearch?t.split(" ").forEach((function(t){t.trim()&&-1===n.indexOf(t)&&n.push(t)})):t.trim()&&-1===n.indexOf(t)&&n.push(t)})),{keywords:n.sort((function(t,e){return e.length-t.length})),length:n.length}}},{key:"isNumeric",value:function(t){return Number(parseFloat(t))==t}},{key:"checkRanges",value:function(t){var e=this;if(!Array.isArray(t)||"[object Object]"!==Object.prototype.toString.call(t[0]))return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(t),[];var n=[],r=0;return t.sort((function(t,e){return t.start-e.start})).forEach((function(t){var i=e.callNoMatchOnInvalidRanges(t,r),o=i.start,a=i.end;i.valid&&(t.start=o,t.length=a-o,n.push(t),r=a)})),n}},{key:"callNoMatchOnInvalidRanges",value:function(t,e){var n=void 0,r=void 0,i=!1;return t&&void 0!==t.start?(r=(n=parseInt(t.start,10))+parseInt(t.length,10),this.isNumeric(t.start)&&this.isNumeric(t.length)&&r-e>0&&r-n>0?i=!0:(this.log("Ignoring invalid or overlapping range: "+JSON.stringify(t)),this.opt.noMatch(t))):(this.log("Ignoring invalid range: "+JSON.stringify(t)),this.opt.noMatch(t)),{start:n,end:r,valid:i}}},{key:"checkWhitespaceRanges",value:function(t,e,n){var r=void 0,i=!0,o=n.length,a=e-o,s=parseInt(t.start,10)-a;return(r=(s=s>o?o:s)+parseInt(t.length,10))>o&&(r=o,this.log("End range automatically set to the max value of "+o)),s<0||r-s<0||s>o||r>o?(i=!1,this.log("Invalid range: "+JSON.stringify(t)),this.opt.noMatch(t)):""===n.substring(s,r).replace(/\s+/g,"")&&(i=!1,this.log("Skipping whitespace only range: "+JSON.stringify(t)),this.opt.noMatch(t)),{start:s,end:r,valid:i}}},{key:"getTextNodes",value:function(t){var e=this,n="",r=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,(function(t){r.push({start:n.length,end:(n+=t.textContent).length,node:t})}),(function(t){return e.matchesExclude(t.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}),(function(){t({value:n,nodes:r})}))}},{key:"matchesExclude",value:function(t){return i.matches(t,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(t,e,n){var r=this.opt.element?this.opt.element:"mark",i=t.splitText(e),o=i.splitText(n-e),a=document.createElement(r);return a.setAttribute("data-markjs","true"),this.opt.className&&a.setAttribute("class",this.opt.className),a.textContent=i.textContent,i.parentNode.replaceChild(a,i),o}},{key:"wrapRangeInMappedTextNode",value:function(t,e,n,r,i){var o=this;t.nodes.every((function(a,s){var u=t.nodes[s+1];if(void 0===u||u.start>e){if(!r(a.node))return!1;var c=e-a.start,l=(n>a.end?a.end:n)-a.start,f=t.value.substr(0,a.start),h=t.value.substr(l+a.start);if(a.node=o.wrapRangeInTextNode(a.node,c,l),t.value=f+h,t.nodes.forEach((function(e,n){n>=s&&(t.nodes[n].start>0&&n!==s&&(t.nodes[n].start-=l),t.nodes[n].end-=l)})),n-=l,i(a.node.previousSibling,a.start),!(n>a.end))return!1;e=a.end}return!0}))}},{key:"wrapMatches",value:function(t,e,n,r,i){var o=this,a=0===e?0:e+1;this.getTextNodes((function(e){e.nodes.forEach((function(e){e=e.node;for(var i=void 0;null!==(i=t.exec(e.textContent))&&""!==i[a];)if(n(i[a],e)){var s=i.index;if(0!==a)for(var u=1;u<a;u++)s+=i[u].length;e=o.wrapRangeInTextNode(e,s,s+i[a].length),r(e.previousSibling),t.lastIndex=0}})),i()}))}},{key:"wrapMatchesAcrossElements",value:function(t,e,n,r,i){var o=this,a=0===e?0:e+1;this.getTextNodes((function(e){for(var s=void 0;null!==(s=t.exec(e.value))&&""!==s[a];){var u=s.index;if(0!==a)for(var c=1;c<a;c++)u+=s[c].length;var l=u+s[a].length;o.wrapRangeInMappedTextNode(e,u,l,(function(t){return n(s[a],t)}),(function(e,n){t.lastIndex=n,r(e)}))}i()}))}},{key:"wrapRangeFromIndex",value:function(t,e,n,r){var i=this;this.getTextNodes((function(o){var a=o.value.length;t.forEach((function(t,r){var s=i.checkWhitespaceRanges(t,a,o.value),u=s.start,c=s.end;s.valid&&i.wrapRangeInMappedTextNode(o,u,c,(function(n){return e(n,t,o.value.substring(u,c),r)}),(function(e){n(e,t)}))})),r()}))}},{key:"unwrapMatches",value:function(t){for(var e=t.parentNode,n=document.createDocumentFragment();t.firstChild;)n.appendChild(t.removeChild(t.firstChild));e.replaceChild(n,t),this.ie?this.normalizeTextNode(e):e.normalize()}},{key:"normalizeTextNode",value:function(t){if(t){if(3===t.nodeType)for(;t.nextSibling&&3===t.nextSibling.nodeType;)t.nodeValue+=t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);else this.normalizeTextNode(t.firstChild);this.normalizeTextNode(t.nextSibling)}}},{key:"markRegExp",value:function(t,e){var n=this;this.opt=e,this.log('Searching with expression "'+t+'"');var r=0,i="wrapMatches",o=function(t){r++,n.opt.each(t)};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),this[i](t,this.opt.ignoreGroups,(function(t,e){return n.opt.filter(e,t,r)}),o,(function(){0===r&&n.opt.noMatch(t),n.opt.done(r)}))}},{key:"mark",value:function(t,e){var n=this;this.opt=e;var r=0,i="wrapMatches",o=this.getSeparatedKeywords("string"==typeof t?[t]:t),a=o.keywords,s=o.length,u=this.opt.caseSensitive?"":"i",c=function t(e){var o=new RegExp(n.createRegExp(e),"gm"+u),c=0;n.log('Searching with expression "'+o+'"'),n[i](o,1,(function(t,i){return n.opt.filter(i,e,r,c)}),(function(t){c++,r++,n.opt.each(t)}),(function(){0===c&&n.opt.noMatch(e),a[s-1]===e?n.opt.done(r):t(a[a.indexOf(e)+1])}))};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),0===s?this.opt.done(r):c(a[0])}},{key:"markRanges",value:function(t,e){var n=this;this.opt=e;var r=0,i=this.checkRanges(t);i&&i.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(i)),this.wrapRangeFromIndex(i,(function(t,e,r,i){return n.opt.filter(t,e,r,i)}),(function(t,e){r++,n.opt.each(t,e)}),(function(){n.opt.done(r)}))):this.opt.done(r)}},{key:"unmark",value:function(t){var e=this;this.opt=t;var n=this.opt.element?this.opt.element:"*";n+="[data-markjs]",this.opt.className&&(n+="."+this.opt.className),this.log('Removal selector "'+n+'"'),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,(function(t){e.unwrapMatches(t)}),(function(t){var r=i.matches(t,n),o=e.matchesExclude(t);return!r||o?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}),this.opt.done)}},{key:"opt",set:function(t){this._opt=r({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:function(){},noMatch:function(){},filter:function(){return!0},done:function(){},debug:!1,log:window.console},t)},get:function(){return this._opt}},{key:"iterator",get:function(){return new i(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}}]),o}();function a(t){var e=this,n=new o(t);return this.mark=function(t,r){return n.mark(t,r),e},this.markRegExp=function(t,r){return n.markRegExp(t,r),e},this.markRanges=function(t,r){return n.markRanges(t,r),e},this.unmark=function(t){return n.unmark(t),e},this}return a}()}({get exports(){return PT},set exports(t){PT=t}});var CT=PT,AT=function(){var t,e=document.querySelector(".basement-private-messages"),n=new CT(".basement-private-messages__message-value"),r=e.getAttribute("data-url"),i=e.getAttribute("data-batch-request-url"),o=e.getAttribute("data-currently-typing-url"),a=Number(e.getAttribute("data-user-id")),s=new Map;return{isInfoBoxOpened:!1,isLastMessageShown:!1,isLoading:!0,isLoadingShowMore:!1,isLoadingSentMessage:!1,isSearchOpened:!1,messageIdWithOpenDialog:null,messages:[],newMessageValue:"",receiver:null,searchKeyword:"",seenMessages:[],selectedMessage:null,unreadMessageCursor:null,url:"",urlTemplate:r,urlBatchRequest:i,urlCurrentlyTyping:"",urlCurrentlyTypingTemplate:o,urlShowMore:null,init:function(){this.$refs.basementChatBox.addEventListener("update-receiver",this.updateReceiver.bind(this)),this.$watch("messages",this.watchMessages.bind(this)),setInterval(this.markSeenMessagesAsRead.bind(this),3e3),this.registerEchoEventListeners(),t=new IntersectionObserver(this.lastMessageObserver.bind(this),{root:this.$el,threshold:[0,1]})},mount:function(){var t=this;return lp(up().mark((function e(){var n,r;return up().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.isLoading=!0,e.next=3,window.axios.get(t.url,{params:{keyword:t.searchKeyword.trim()}}).then((function(t){return t.data}));case 3:n=e.sent,t.urlShowMore=n.links.next,t.messages=n.data.map((function(t){return C_.from(t)})),t.isLoading=!1,t.messages.length>0&&(t.setUnreadMessagesMarker(),t.scrollTo(null!==(r=t.unreadMessageCursor)&&void 0!==r?r:t.messages.at(0).id,{block:"center"}));case 8:case"end":return e.stop()}}),e)})))()},mountMore:function(){var t=this;return lp(up().mark((function e(){var n,r,i,o;return up().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==t.urlShowMore){e.next=2;break}throw new Error("Next page to load more private messages is not available");case 2:return t.isLoadingShowMore=!0,e.next=5,window.axios.get(t.urlShowMore,{params:{keyword:t.searchKeyword.trim()}}).then((function(t){return t.data}));case 5:r=e.sent,i=r.data.map((function(t){return C_.from(t)})),o=t.messages.at(-1),(n=t.messages).push.apply(n,vp(i)),t.urlShowMore=r.links.next,t.isLoadingShowMore=!1,void 0!==o&&t.scrollTo(o.id);case 12:case"end":return e.stop()}}),e)})))()},get groupedMessages(){var t=new Map;return vp(this.messages).reverse().forEach((function(e){var n=e.createdAt.withinDateFormat;!1===t.has(n)&&t.set(n,[]),t.get(n).push(e)})),vp(t.values())},currentlyTyping:function(){var t=this;return lp(up().mark((function e(){return up().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===t.receiver||t.receiver.id===a||""===t.newMessageValue){e.next=3;break}return e.next=3,window.axios.get(t.urlCurrentlyTyping);case 3:case"end":return e.stop()}}),e)})))()},lastMessageObserver:function(t){var e=t.at(0).intersectionRatio;this.isLastMessageShown=e>.5},markSeenMessagesAsRead:function(){if(0!==this.seenMessages.length){if(null===this.receiver)throw new Error("Receiver cannot be empty");window.axios.patch(this.urlBatchRequest,this.seenMessages.map((function(t){return{operation:"mark as read",value:{id:t}}}))),this.seenMessages=[]}},observeLastMessage:function(){var e=this.messages.at(0);void 0!==e&&this.$nextTick((function(){var n=document.querySelector('.basement-private-messages__message-value[data-id="'.concat(e.id,'"]'));t.disconnect(),t.observe(n)}))},onMessageReceived:function(t){var e;this.setStatusToNotTyping(t.detail.sender_id);var n=C_.from(t.detail);t.detail.sender_id===(null===(e=this.receiver)||void 0===e?void 0:e.id)&&t.detail.value.includes(this.searchKeyword.trim())&&this.messages.unshift(n),this.$dispatch("update-last-private-message-received",n),a!==t.detail.sender_id&&this.$dispatch("send-push-notification",{title:t.detail.sender.name,body:t.detail.value,icon:t.detail.sender.avatar}),!0===this.isLastMessageShown&&this.scrollToLastMessage()},onMessageSent:function(t){var e,n=C_.from(t.detail);t.detail.receiver_id===(null===(e=this.receiver)||void 0===e?void 0:e.id)&&t.detail.value.includes(this.searchKeyword.trim())&&this.messages.unshift(n),this.$dispatch("update-last-private-message-sent",n),!0===this.isLastMessageShown&&this.scrollToLastMessage()},onSentMessagesMarkedAsRead:function(t){var e,n=this;(null===(e=this.receiver)||void 0===e?void 0:e.id)===t.detail.receiver.id&&t.detail.messages.forEach((function(t){var e=n.messages.find((function(e){return e.id===t.id}));void 0!==e&&e.setReadAtTime(t.read_at)}))},onReceivedMessagesMarkedAsRead:function(t){this.$dispatch("update-unread-messages",t.detail)},onContactCurrentlyTyping:function(t){t.detail.contact.id!==a&&(this.setStatusToTyping(t.detail.contact.id,1500),!0===this.isLastMessageShown&&this.scrollToLastMessage())},registerEchoEventListeners:function(){window.Echo.join("basement.contacts.".concat(a)).listen(".basement.message.received",this.onMessageReceived.bind(this)).listen(".basement.message.sent",this.onMessageSent.bind(this)).listen(".basement.message.sent-messages-marked-as-read",this.onSentMessagesMarkedAsRead.bind(this)).listen(".basement.message.received-messages-marked-as-read",this.onReceivedMessagesMarkedAsRead.bind(this)).listen(".basement.contact.currently-typing",this.onContactCurrentlyTyping.bind(this))},setStatusToTyping:function(t,e){var n=this;s.has(t)?clearTimeout(s.get(t)):this.$dispatch("update-currently-typing-contact",{contact:{id:t,typing:!0}}),s.set(t,setTimeout((function(){n.$dispatch("update-currently-typing-contact",{contact:{id:t,typing:!1}}),s.delete(t)}),e))},setStatusToNotTyping:function(t){s.has(t)&&(clearTimeout(s.get(t)),s.delete(t)),this.$dispatch("update-currently-typing-contact",{contact:{id:t,typing:!1}})},scrollTo:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!==t&&this.$nextTick((function(){var n;null===(n=document.querySelector('.basement-private-messages__message-value[data-id="'.concat(t,'"]')))||void 0===n||n.scrollIntoView(e)}))},scrollToLastMessage:function(){var t,e=this.messages.at(0);this.scrollTo(null!==(t=null==e?void 0:e.id)&&void 0!==t?t:null,{behavior:"smooth"})},seeMessage:function(t){null!==this.receiver&&t.receiverId!==this.receiver.id&&null===t.readAt.date&&this.seenMessages.push(t.id)},sendNewMessage:function(){var t=this;return lp(up().mark((function e(){return up().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==t.receiver){e.next=2;break}throw new Error("Receiver cannot be empty");case 2:return t.isLoadingSentMessage=!0,e.next=5,window.axios.post(t.url,{value:t.newMessageValue}).then((function(t){return t.data}));case 5:t.newMessageValue="",t.isLoadingSentMessage=!1;case 7:case"end":return e.stop()}}),e)})))()},setUnreadMessagesMarker:function(){var t=this;this.messages.some((function(e){var n;return null!==e.readAt.date||(e.senderId===(null===(n=t.receiver)||void 0===n?void 0:n.id)&&(t.unreadMessageCursor=e.id),!1)}))},updateReceiver:function(t){this.unreadMessageCursor=null,this.searchKeyword="",this.receiver=t.detail,this.url=this.urlTemplate.replace(":contact",String(t.detail.id)),this.urlCurrentlyTyping=this.urlCurrentlyTypingTemplate.replace(":contact",String(t.detail.id)),this.mount()},watchMessages:function(){""===this.searchKeyword.trim()?n.unmark():n.mark(this.searchKeyword.trim()),this.observeLastMessage()}}};window.Alpine.plugin(Ql),window.Alpine.plugin((function(t){t.data("basementChatBox",op),t.data("basementContact",R_),t.data("basementPrivateChat",AT)})),window.Alpine.start()}));
|
||
//# sourceMappingURL=basement.bundle.min.js.map
|