diff --git a/assets/browser-9eYVWJy3.js b/assets/browser-9eYVWJy3.js new file mode 100644 index 0000000..9d09782 --- /dev/null +++ b/assets/browser-9eYVWJy3.js @@ -0,0 +1 @@ +import{g as e}from"./index-D-JtIrxX.js";var o=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")};const r=e(o),s=Object.freeze(Object.defineProperty({__proto__:null,default:r},Symbol.toStringTag,{value:"Module"}));export{s as b}; diff --git a/assets/index-BGkeDJZB.css b/assets/index-BGkeDJZB.css deleted file mode 100644 index a938fd3..0000000 --- a/assets/index-BGkeDJZB.css +++ /dev/null @@ -1 +0,0 @@ -@import"https://fonts.googleapis.com/css2?family=Noto+Sans+Lao:wght@500;700&display=swap";@import"https://fonts.googleapis.com/css2?family=Poppins:wght@500;700&display=swap";*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Noto Sans Lao,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.fixed{position:fixed}.right-6{right:1.5rem}.top-14{top:3.5rem}.mx-auto{margin-left:auto;margin-right:auto}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.inline-block{display:inline-block}.flex{display:flex}.h-10{height:2.5rem}.h-12{height:3rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-100{width:25rem}.w-12{width:3rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-5\/6{width:83.333333%}.w-6{width:1.5rem}.w-8{width:2rem}.w-full{width:100%}.flex-grow{flex-grow:1}.-rotate-2{--tw-rotate: -2deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-12{--tw-rotate: 12deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-2{border-width:2px}.border-b-2{border-bottom-width:2px}.border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-gray-800{--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-300{--tw-bg-opacity: 1;background-color:rgb(253 224 71 / var(--tw-bg-opacity))}.fill-none{fill:none}.fill-white{fill:#fff}.stroke-black{stroke:#000}.stroke-white{stroke:#fff}.p-1{padding:.25rem}.p-2\.5{padding:.625rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.text-center{text-align:center}.font-pops{font-family:Poppins,cursive}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.shadow-\[4px_4px_0px_0px_rgba\(0\,0\,0\,1\)\]{--tw-shadow: 4px 4px 0px 0px rgba(0,0,0,1);--tw-shadow-colored: 4px 4px 0px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.placeholder\:text-gray-600::-moz-placeholder{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.placeholder\:text-gray-600::placeholder{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.hover\:translate-x-1:hover{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:translate-y-1:hover{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\:bg-yellow-400:hover{--tw-bg-opacity: 1;background-color:rgb(250 204 21 / var(--tw-bg-opacity))}.hover\:shadow-\[2px_2px_0px_0px_rgba\(0\,0\,0\,1\)\]:hover{--tw-shadow: 2px 2px 0px 0px rgba(0,0,0,1);--tw-shadow-colored: 2px 2px 0px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:shadow-\[2px_2px_0px_rgba\(0\,0\,0\,1\)\]:focus{--tw-shadow: 2px 2px 0px rgba(0,0,0,1);--tw-shadow-colored: 2px 2px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.active\:bg-gray-300:active{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.active\:shadow-\[2px_2px_0px_rgba\(0\,0\,0\,1\)\]:active{--tw-shadow: 2px 2px 0px rgba(0,0,0,1);--tw-shadow-colored: 2px 2px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}@media (min-width: 1024px){.lg\:w-3\/4{width:75%}}@media (min-width: 1280px){.xl\:w-2\/4{width:50%}} diff --git a/assets/index-BIcVeYSL.js b/assets/index-BIcVeYSL.js deleted file mode 100644 index 368b05c..0000000 --- a/assets/index-BIcVeYSL.js +++ /dev/null @@ -1,73 +0,0 @@ -(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function t(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=t(l);fetch(l.href,o)}})();var Bu={exports:{}},el={},Hu={exports:{}},L={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Xt=Symbol.for("react.element"),ic=Symbol.for("react.portal"),uc=Symbol.for("react.fragment"),sc=Symbol.for("react.strict_mode"),ac=Symbol.for("react.profiler"),cc=Symbol.for("react.provider"),fc=Symbol.for("react.context"),dc=Symbol.for("react.forward_ref"),pc=Symbol.for("react.suspense"),mc=Symbol.for("react.memo"),hc=Symbol.for("react.lazy"),Oi=Symbol.iterator;function vc(e){return e===null||typeof e!="object"?null:(e=Oi&&e[Oi]||e["@@iterator"],typeof e=="function"?e:null)}var Wu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Qu=Object.assign,Ku={};function ot(e,n,t){this.props=e,this.context=n,this.refs=Ku,this.updater=t||Wu}ot.prototype.isReactComponent={};ot.prototype.setState=function(e,n){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")};ot.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Yu(){}Yu.prototype=ot.prototype;function Uo(e,n,t){this.props=e,this.context=n,this.refs=Ku,this.updater=t||Wu}var $o=Uo.prototype=new Yu;$o.constructor=Uo;Qu($o,ot.prototype);$o.isPureReactComponent=!0;var Mi=Array.isArray,Xu=Object.prototype.hasOwnProperty,Ao={current:null},Gu={key:!0,ref:!0,__self:!0,__source:!0};function Zu(e,n,t){var r,l={},o=null,i=null;if(n!=null)for(r in n.ref!==void 0&&(i=n.ref),n.key!==void 0&&(o=""+n.key),n)Xu.call(n,r)&&!Gu.hasOwnProperty(r)&&(l[r]=n[r]);var u=arguments.length-2;if(u===1)l.children=t;else if(1>>1,G=E[W];if(0>>1;Wl(gl,z))gnl(er,gl)?(E[W]=er,E[gn]=z,W=gn):(E[W]=gl,E[yn]=z,W=yn);else if(gnl(er,z))E[W]=er,E[gn]=z,W=gn;else break e}}return P}function l(E,P){var z=E.sortIndex-P.sortIndex;return z!==0?z:E.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var s=[],c=[],m=1,h=null,p=3,g=!1,w=!1,k=!1,F=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function d(E){for(var P=t(c);P!==null;){if(P.callback===null)r(c);else if(P.startTime<=E)r(c),P.sortIndex=P.expirationTime,n(s,P);else break;P=t(c)}}function v(E){if(k=!1,d(E),!w)if(t(s)!==null)w=!0,vl(x);else{var P=t(c);P!==null&&yl(v,P.startTime-E)}}function x(E,P){w=!1,k&&(k=!1,f(N),N=-1),g=!0;var z=p;try{for(d(P),h=t(s);h!==null&&(!(h.expirationTime>P)||E&&!Pe());){var W=h.callback;if(typeof W=="function"){h.callback=null,p=h.priorityLevel;var G=W(h.expirationTime<=P);P=e.unstable_now(),typeof G=="function"?h.callback=G:h===t(s)&&r(s),d(P)}else r(s);h=t(s)}if(h!==null)var bt=!0;else{var yn=t(c);yn!==null&&yl(v,yn.startTime-P),bt=!1}return bt}finally{h=null,p=z,g=!1}}var _=!1,C=null,N=-1,H=5,T=-1;function Pe(){return!(e.unstable_now()-TE||125W?(E.sortIndex=z,n(c,E),t(s)===null&&E===t(c)&&(k?(f(N),N=-1):k=!0,yl(v,z-W))):(E.sortIndex=G,n(s,E),w||g||(w=!0,vl(x))),E},e.unstable_shouldYield=Pe,e.unstable_wrapCallback=function(E){var P=p;return function(){var z=p;p=P;try{return E.apply(this,arguments)}finally{p=z}}}})(ns);es.exports=ns;var Pc=es.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var zc=xe,ye=Pc;function y(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ql=Object.prototype.hasOwnProperty,Lc=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Di={},Fi={};function Tc(e){return Ql.call(Fi,e)?!0:Ql.call(Di,e)?!1:Lc.test(e)?Fi[e]=!0:(Di[e]=!0,!1)}function jc(e,n,t,r){if(t!==null&&t.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Rc(e,n,t,r){if(n===null||typeof n>"u"||jc(e,n,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function se(e,n,t,r,l,o,i){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=o,this.removeEmptyString=i}var ee={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ee[e]=new se(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];ee[n]=new se(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ee[e]=new se(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ee[e]=new se(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ee[e]=new se(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ee[e]=new se(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ee[e]=new se(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ee[e]=new se(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ee[e]=new se(e,5,!1,e.toLowerCase(),null,!1,!1)});var Bo=/[\-:]([a-z])/g;function Ho(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(Bo,Ho);ee[n]=new se(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(Bo,Ho);ee[n]=new se(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(Bo,Ho);ee[n]=new se(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ee[e]=new se(e,1,!1,e.toLowerCase(),null,!1,!1)});ee.xlinkHref=new se("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ee[e]=new se(e,1,!1,e.toLowerCase(),null,!0,!0)});function Wo(e,n,t,r){var l=ee.hasOwnProperty(n)?ee[n]:null;(l!==null?l.type!==0:r||!(2u||l[i]!==o[u]){var s=` -`+l[i].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=i&&0<=u);break}}}finally{Sl=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?gt(e):""}function Oc(e){switch(e.tag){case 5:return gt(e.type);case 16:return gt("Lazy");case 13:return gt("Suspense");case 19:return gt("SuspenseList");case 0:case 2:case 15:return e=xl(e.type,!1),e;case 11:return e=xl(e.type.render,!1),e;case 1:return e=xl(e.type,!0),e;default:return""}}function Gl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case In:return"Fragment";case Mn:return"Portal";case Kl:return"Profiler";case Qo:return"StrictMode";case Yl:return"Suspense";case Xl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ls:return(e.displayName||"Context")+".Consumer";case rs:return(e._context.displayName||"Context")+".Provider";case Ko:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Yo:return n=e.displayName||null,n!==null?n:Gl(e.type)||"Memo";case Je:n=e._payload,e=e._init;try{return Gl(e(n))}catch{}}return null}function Mc(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Gl(n);case 8:return n===Qo?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function dn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function is(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Ic(e){var n=is(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var l=t.get,o=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function rr(e){e._valueTracker||(e._valueTracker=Ic(e))}function us(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=is(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function Tr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Zl(e,n){var t=n.checked;return V({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function $i(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=dn(n.value!=null?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function ss(e,n){n=n.checked,n!=null&&Wo(e,"checked",n,!1)}function Jl(e,n){ss(e,n);var t=dn(n.value),r=n.type;if(t!=null)r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?ql(e,n.type,t):n.hasOwnProperty("defaultValue")&&ql(e,n.type,dn(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Ai(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!(r!=="submit"&&r!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}t=e.name,t!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,t!==""&&(e.name=t)}function ql(e,n,t){(n!=="number"||Tr(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var wt=Array.isArray;function Kn(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l"+n.valueOf().toString()+"",n=lr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function Rt(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=n;return}}e.textContent=n}var xt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Dc=["Webkit","ms","Moz","O"];Object.keys(xt).forEach(function(e){Dc.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),xt[n]=xt[e]})});function ds(e,n,t){return n==null||typeof n=="boolean"||n===""?"":t||typeof n!="number"||n===0||xt.hasOwnProperty(e)&&xt[e]?(""+n).trim():n+"px"}function ps(e,n){e=e.style;for(var t in n)if(n.hasOwnProperty(t)){var r=t.indexOf("--")===0,l=ds(t,n[t],r);t==="float"&&(t="cssFloat"),r?e.setProperty(t,l):e[t]=l}}var Fc=V({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function no(e,n){if(n){if(Fc[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(y(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(y(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(y(61))}if(n.style!=null&&typeof n.style!="object")throw Error(y(62))}}function to(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ro=null;function Xo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var lo=null,Yn=null,Xn=null;function Hi(e){if(e=Jt(e)){if(typeof lo!="function")throw Error(y(280));var n=e.stateNode;n&&(n=ol(n),lo(e.stateNode,e.type,n))}}function ms(e){Yn?Xn?Xn.push(e):Xn=[e]:Yn=e}function hs(){if(Yn){var e=Yn,n=Xn;if(Xn=Yn=null,Hi(e),n)for(e=0;e>>=0,e===0?32:31-(Xc(e)/Gc|0)|0}var or=64,ir=4194304;function kt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Mr(e,n){var t=e.pendingLanes;if(t===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=t&268435455;if(i!==0){var u=i&~l;u!==0?r=kt(u):(o&=i,o!==0&&(r=kt(o)))}else i=t&~l,i!==0?r=kt(i):o!==0&&(r=kt(o));if(r===0)return 0;if(n!==0&&n!==r&&!(n&l)&&(l=r&-r,o=n&-n,l>=o||l===16&&(o&4194240)!==0))return n;if(r&4&&(r|=t&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function Gt(e,n,t){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-Re(n),e[n]=t}function bc(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=_t),qi=" ",bi=!1;function Is(e,n){switch(e){case"keyup":return zf.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ds(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Dn=!1;function Tf(e,n){switch(e){case"compositionend":return Ds(n);case"keypress":return n.which!==32?null:(bi=!0,qi);case"textInput":return e=n.data,e===qi&&bi?null:e;default:return null}}function jf(e,n){if(Dn)return e==="compositionend"||!ti&&Is(e,n)?(e=Os(),Sr=bo=nn=null,Dn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:t,offset:n-e};e=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=ru(t)}}function As(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?As(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Vs(){for(var e=window,n=Tr();n instanceof e.HTMLIFrameElement;){try{var t=typeof n.contentWindow.location.href=="string"}catch{t=!1}if(t)e=n.contentWindow;else break;n=Tr(e.document)}return n}function ri(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function Af(e){var n=Vs(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&As(t.ownerDocument.documentElement,t)){if(r!==null&&ri(t)){if(n=r.start,e=r.end,e===void 0&&(e=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if(e=(n=t.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var l=t.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=lu(t,o);var i=lu(t,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(n=n.createRange(),n.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(n),e.extend(i.node,i.offset)):(n.setEnd(i.node,i.offset),e.addRange(n)))}}for(n=[],e=t;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,Fn=null,co=null,Nt=null,fo=!1;function ou(e,n,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;fo||Fn==null||Fn!==Tr(r)||(r=Fn,"selectionStart"in r&&ri(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Nt&&Ut(Nt,r)||(Nt=r,r=Fr(co,"onSelect"),0An||(e.current=go[An],go[An]=null,An--)}function M(e,n){An++,go[An]=e.current,e.current=n}var pn={},le=hn(pn),fe=hn(!1),Nn=pn;function bn(e,n){var t=e.type.contextTypes;if(!t)return pn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in t)l[o]=n[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=l),l}function de(e){return e=e.childContextTypes,e!=null}function $r(){D(fe),D(le)}function du(e,n,t){if(le.current!==pn)throw Error(y(168));M(le,n),M(fe,t)}function Zs(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var l in r)if(!(l in n))throw Error(y(108,Mc(e)||"Unknown",l));return V({},t,r)}function Ar(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pn,Nn=le.current,M(le,e),M(fe,fe.current),!0}function pu(e,n,t){var r=e.stateNode;if(!r)throw Error(y(169));t?(e=Zs(e,n,Nn),r.__reactInternalMemoizedMergedChildContext=e,D(fe),D(le),M(le,e)):D(fe),M(fe,t)}var Ve=null,il=!1,Dl=!1;function Js(e){Ve===null?Ve=[e]:Ve.push(e)}function qf(e){il=!0,Js(e)}function vn(){if(!Dl&&Ve!==null){Dl=!0;var e=0,n=O;try{var t=Ve;for(O=1;e>=i,l-=i,Be=1<<32-Re(n)+l|t<N?(H=C,C=null):H=C.sibling;var T=p(f,C,d[N],v);if(T===null){C===null&&(C=H);break}e&&C&&T.alternate===null&&n(f,C),a=o(T,a,N),_===null?x=T:_.sibling=T,_=T,C=H}if(N===d.length)return t(f,C),U&&wn(f,N),x;if(C===null){for(;NN?(H=C,C=null):H=C.sibling;var Pe=p(f,C,T.value,v);if(Pe===null){C===null&&(C=H);break}e&&C&&Pe.alternate===null&&n(f,C),a=o(Pe,a,N),_===null?x=Pe:_.sibling=Pe,_=Pe,C=H}if(T.done)return t(f,C),U&&wn(f,N),x;if(C===null){for(;!T.done;N++,T=d.next())T=h(f,T.value,v),T!==null&&(a=o(T,a,N),_===null?x=T:_.sibling=T,_=T);return U&&wn(f,N),x}for(C=r(f,C);!T.done;N++,T=d.next())T=g(C,f,N,T.value,v),T!==null&&(e&&T.alternate!==null&&C.delete(T.key===null?N:T.key),a=o(T,a,N),_===null?x=T:_.sibling=T,_=T);return e&&C.forEach(function(st){return n(f,st)}),U&&wn(f,N),x}function F(f,a,d,v){if(typeof d=="object"&&d!==null&&d.type===In&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case tr:e:{for(var x=d.key,_=a;_!==null;){if(_.key===x){if(x=d.type,x===In){if(_.tag===7){t(f,_.sibling),a=l(_,d.props.children),a.return=f,f=a;break e}}else if(_.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Je&&vu(x)===_.type){t(f,_.sibling),a=l(_,d.props),a.ref=ht(f,_,d),a.return=f,f=a;break e}t(f,_);break}else n(f,_);_=_.sibling}d.type===In?(a=Cn(d.props.children,f.mode,v,d.key),a.return=f,f=a):(v=Lr(d.type,d.key,d.props,null,f.mode,v),v.ref=ht(f,a,d),v.return=f,f=v)}return i(f);case Mn:e:{for(_=d.key;a!==null;){if(a.key===_)if(a.tag===4&&a.stateNode.containerInfo===d.containerInfo&&a.stateNode.implementation===d.implementation){t(f,a.sibling),a=l(a,d.children||[]),a.return=f,f=a;break e}else{t(f,a);break}else n(f,a);a=a.sibling}a=Wl(d,f.mode,v),a.return=f,f=a}return i(f);case Je:return _=d._init,F(f,a,_(d._payload),v)}if(wt(d))return w(f,a,d,v);if(ct(d))return k(f,a,d,v);pr(f,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,a!==null&&a.tag===6?(t(f,a.sibling),a=l(a,d),a.return=f,f=a):(t(f,a),a=Hl(d,f.mode,v),a.return=f,f=a),i(f)):t(f,a)}return F}var nt=na(!0),ta=na(!1),Hr=hn(null),Wr=null,Hn=null,ui=null;function si(){ui=Hn=Wr=null}function ai(e){var n=Hr.current;D(Hr),e._currentValue=n}function So(e,n,t){for(;e!==null;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,r!==null&&(r.childLanes|=n)):r!==null&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===t)break;e=e.return}}function Zn(e,n){Wr=e,ui=Hn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&n&&(ce=!0),e.firstContext=null)}function Ce(e){var n=e._currentValue;if(ui!==e)if(e={context:e,memoizedValue:n,next:null},Hn===null){if(Wr===null)throw Error(y(308));Hn=e,Wr.dependencies={lanes:0,firstContext:e}}else Hn=Hn.next=e;return n}var xn=null;function ci(e){xn===null?xn=[e]:xn.push(e)}function ra(e,n,t,r){var l=n.interleaved;return l===null?(t.next=t,ci(n)):(t.next=l.next,l.next=t),n.interleaved=t,Ye(e,r)}function Ye(e,n){e.lanes|=n;var t=e.alternate;for(t!==null&&(t.lanes|=n),t=e,e=e.return;e!==null;)e.childLanes|=n,t=e.alternate,t!==null&&(t.childLanes|=n),t=e,e=e.return;return t.tag===3?t.stateNode:null}var qe=!1;function fi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function la(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function We(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function sn(e,n,t){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,j&2){var l=r.pending;return l===null?n.next=n:(n.next=l.next,l.next=n),r.pending=n,Ye(e,t)}return l=r.interleaved,l===null?(n.next=n,ci(r)):(n.next=l.next,l.next=n),r.interleaved=n,Ye(e,t)}function Er(e,n,t){if(n=n.updateQueue,n!==null&&(n=n.shared,(t&4194240)!==0)){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,Zo(e,t)}}function yu(e,n){var t=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,t===r)){var l=null,o=null;if(t=t.firstBaseUpdate,t!==null){do{var i={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null};o===null?l=o=i:o=o.next=i,t=t.next}while(t!==null);o===null?l=o=n:o=o.next=n}else l=o=n;t={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=t;return}e=t.lastBaseUpdate,e===null?t.firstBaseUpdate=n:e.next=n,t.lastBaseUpdate=n}function Qr(e,n,t,r){var l=e.updateQueue;qe=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var s=u,c=s.next;s.next=null,i===null?o=c:i.next=c,i=s;var m=e.alternate;m!==null&&(m=m.updateQueue,u=m.lastBaseUpdate,u!==i&&(u===null?m.firstBaseUpdate=c:u.next=c,m.lastBaseUpdate=s))}if(o!==null){var h=l.baseState;i=0,m=c=s=null,u=o;do{var p=u.lane,g=u.eventTime;if((r&p)===p){m!==null&&(m=m.next={eventTime:g,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var w=e,k=u;switch(p=n,g=t,k.tag){case 1:if(w=k.payload,typeof w=="function"){h=w.call(g,h,p);break e}h=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=k.payload,p=typeof w=="function"?w.call(g,h,p):w,p==null)break e;h=V({},h,p);break e;case 2:qe=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,p=l.effects,p===null?l.effects=[u]:p.push(u))}else g={eventTime:g,lane:p,tag:u.tag,payload:u.payload,callback:u.callback,next:null},m===null?(c=m=g,s=h):m=m.next=g,i|=p;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;p=u,u=p.next,p.next=null,l.lastBaseUpdate=p,l.shared.pending=null}}while(!0);if(m===null&&(s=h),l.baseState=s,l.firstBaseUpdate=c,l.lastBaseUpdate=m,n=l.shared.interleaved,n!==null){l=n;do i|=l.lane,l=l.next;while(l!==n)}else o===null&&(l.shared.lanes=0);Ln|=i,e.lanes=i,e.memoizedState=h}}function gu(e,n,t){if(e=n.effects,n.effects=null,e!==null)for(n=0;nt?t:4,e(!0);var r=Ul.transition;Ul.transition={};try{e(!1),n()}finally{O=t,Ul.transition=r}}function Sa(){return Ne().memoizedState}function td(e,n,t){var r=cn(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},xa(e))Ea(n,t);else if(t=ra(e,n,t,r),t!==null){var l=ie();Oe(t,e,r,l),_a(t,n,r)}}function rd(e,n,t){var r=cn(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(xa(e))Ea(n,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=n.lastRenderedReducer,o!==null))try{var i=n.lastRenderedState,u=o(i,t);if(l.hasEagerState=!0,l.eagerState=u,Me(u,i)){var s=n.interleaved;s===null?(l.next=l,ci(n)):(l.next=s.next,s.next=l),n.interleaved=l;return}}catch{}finally{}t=ra(e,n,l,r),t!==null&&(l=ie(),Oe(t,e,r,l),_a(t,n,r))}}function xa(e){var n=e.alternate;return e===A||n!==null&&n===A}function Ea(e,n){Pt=Yr=!0;var t=e.pending;t===null?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function _a(e,n,t){if(t&4194240){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,Zo(e,t)}}var Xr={readContext:Ce,useCallback:ne,useContext:ne,useEffect:ne,useImperativeHandle:ne,useInsertionEffect:ne,useLayoutEffect:ne,useMemo:ne,useReducer:ne,useRef:ne,useState:ne,useDebugValue:ne,useDeferredValue:ne,useTransition:ne,useMutableSource:ne,useSyncExternalStore:ne,useId:ne,unstable_isNewReconciler:!1},ld={readContext:Ce,useCallback:function(e,n){return De().memoizedState=[e,n===void 0?null:n],e},useContext:Ce,useEffect:ku,useImperativeHandle:function(e,n,t){return t=t!=null?t.concat([e]):null,Cr(4194308,4,va.bind(null,n,e),t)},useLayoutEffect:function(e,n){return Cr(4194308,4,e,n)},useInsertionEffect:function(e,n){return Cr(4,2,e,n)},useMemo:function(e,n){var t=De();return n=n===void 0?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=De();return n=t!==void 0?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=td.bind(null,A,e),[r.memoizedState,e]},useRef:function(e){var n=De();return e={current:e},n.memoizedState=e},useState:wu,useDebugValue:wi,useDeferredValue:function(e){return De().memoizedState=e},useTransition:function(){var e=wu(!1),n=e[0];return e=nd.bind(null,e[1]),De().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=A,l=De();if(U){if(t===void 0)throw Error(y(407));t=t()}else{if(t=n(),J===null)throw Error(y(349));zn&30||sa(r,n,t)}l.memoizedState=t;var o={value:t,getSnapshot:n};return l.queue=o,ku(ca.bind(null,r,o,e),[e]),r.flags|=2048,Kt(9,aa.bind(null,r,o,t,n),void 0,null),t},useId:function(){var e=De(),n=J.identifierPrefix;if(U){var t=He,r=Be;t=(r&~(1<<32-Re(r)-1)).toString(32)+t,n=":"+n+"R"+t,t=Wt++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(t,{is:r.is}):(e=i.createElement(t),t==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,t),e[Fe]=n,e[Vt]=r,Ma(e,n,!1,!1),n.stateNode=e;e:{switch(i=to(t,r),t){case"dialog":I("cancel",e),I("close",e),l=r;break;case"iframe":case"object":case"embed":I("load",e),l=r;break;case"video":case"audio":for(l=0;llt&&(n.flags|=128,r=!0,vt(o,!1),n.lanes=4194304)}else{if(!r)if(e=Kr(i),e!==null){if(n.flags|=128,r=!0,t=e.updateQueue,t!==null&&(n.updateQueue=t,n.flags|=4),vt(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!U)return te(n),null}else 2*Q()-o.renderingStartTime>lt&&t!==1073741824&&(n.flags|=128,r=!0,vt(o,!1),n.lanes=4194304);o.isBackwards?(i.sibling=n.child,n.child=i):(t=o.last,t!==null?t.sibling=i:n.child=i,o.last=i)}return o.tail!==null?(n=o.tail,o.rendering=n,o.tail=n.sibling,o.renderingStartTime=Q(),n.sibling=null,t=$.current,M($,r?t&1|2:t&1),n):(te(n),null);case 22:case 23:return Ci(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&n.mode&1?me&1073741824&&(te(n),n.subtreeFlags&6&&(n.flags|=8192)):te(n),null;case 24:return null;case 25:return null}throw Error(y(156,n.tag))}function dd(e,n){switch(oi(n),n.tag){case 1:return de(n.type)&&$r(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return tt(),D(fe),D(le),mi(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return pi(n),null;case 13:if(D($),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(y(340));et()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return D($),null;case 4:return tt(),null;case 10:return ai(n.type._context),null;case 22:case 23:return Ci(),null;case 24:return null;default:return null}}var hr=!1,re=!1,pd=typeof WeakSet=="function"?WeakSet:Set,S=null;function Wn(e,n){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){B(e,n,r)}else t.current=null}function To(e,n,t){try{t()}catch(r){B(e,n,r)}}var ju=!1;function md(e,n){if(po=Ir,e=Vs(),ri(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{t.nodeType,o.nodeType}catch{t=null;break e}var i=0,u=-1,s=-1,c=0,m=0,h=e,p=null;n:for(;;){for(var g;h!==t||l!==0&&h.nodeType!==3||(u=i+l),h!==o||r!==0&&h.nodeType!==3||(s=i+r),h.nodeType===3&&(i+=h.nodeValue.length),(g=h.firstChild)!==null;)p=h,h=g;for(;;){if(h===e)break n;if(p===t&&++c===l&&(u=i),p===o&&++m===r&&(s=i),(g=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=g}t=u===-1||s===-1?null:{start:u,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(mo={focusedElem:e,selectionRange:t},Ir=!1,S=n;S!==null;)if(n=S,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,S=e;else for(;S!==null;){n=S;try{var w=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var k=w.memoizedProps,F=w.memoizedState,f=n.stateNode,a=f.getSnapshotBeforeUpdate(n.elementType===n.type?k:Le(n.type,k),F);f.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var d=n.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(y(163))}}catch(v){B(n,n.return,v)}if(e=n.sibling,e!==null){e.return=n.return,S=e;break}S=n.return}return w=ju,ju=!1,w}function zt(e,n,t){var r=n.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&To(n,t,o)}l=l.next}while(l!==r)}}function al(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function jo(e){var n=e.ref;if(n!==null){var t=e.stateNode;switch(e.tag){case 5:e=t;break;default:e=t}typeof n=="function"?n(e):n.current=e}}function Fa(e){var n=e.alternate;n!==null&&(e.alternate=null,Fa(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Fe],delete n[Vt],delete n[yo],delete n[Zf],delete n[Jf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ua(e){return e.tag===5||e.tag===3||e.tag===4}function Ru(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ua(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ro(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.nodeType===8?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(t.nodeType===8?(n=t.parentNode,n.insertBefore(e,t)):(n=t,n.appendChild(e)),t=t._reactRootContainer,t!=null||n.onclick!==null||(n.onclick=Ur));else if(r!==4&&(e=e.child,e!==null))for(Ro(e,n,t),e=e.sibling;e!==null;)Ro(e,n,t),e=e.sibling}function Oo(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Oo(e,n,t),e=e.sibling;e!==null;)Oo(e,n,t),e=e.sibling}var q=null,Te=!1;function Ze(e,n,t){for(t=t.child;t!==null;)$a(e,n,t),t=t.sibling}function $a(e,n,t){if(Ue&&typeof Ue.onCommitFiberUnmount=="function")try{Ue.onCommitFiberUnmount(nl,t)}catch{}switch(t.tag){case 5:re||Wn(t,n);case 6:var r=q,l=Te;q=null,Ze(e,n,t),q=r,Te=l,q!==null&&(Te?(e=q,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):q.removeChild(t.stateNode));break;case 18:q!==null&&(Te?(e=q,t=t.stateNode,e.nodeType===8?Il(e.parentNode,t):e.nodeType===1&&Il(e,t),Dt(e)):Il(q,t.stateNode));break;case 4:r=q,l=Te,q=t.stateNode.containerInfo,Te=!0,Ze(e,n,t),q=r,Te=l;break;case 0:case 11:case 14:case 15:if(!re&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&To(t,n,i),l=l.next}while(l!==r)}Ze(e,n,t);break;case 1:if(!re&&(Wn(t,n),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(u){B(t,n,u)}Ze(e,n,t);break;case 21:Ze(e,n,t);break;case 22:t.mode&1?(re=(r=re)||t.memoizedState!==null,Ze(e,n,t),re=r):Ze(e,n,t);break;default:Ze(e,n,t)}}function Ou(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new pd),n.forEach(function(r){var l=Ed.bind(null,e,r);t.has(r)||(t.add(r),r.then(l,l))})}}function ze(e,n){var t=n.deletions;if(t!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=Q()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*vd(r/1960))-r,10e?16:e,tn===null)var r=!1;else{if(e=tn,tn=null,Jr=0,j&6)throw Error(y(331));var l=j;for(j|=4,S=e.current;S!==null;){var o=S,i=o.child;if(S.flags&16){var u=o.deletions;if(u!==null){for(var s=0;sQ()-Ei?_n(e,0):xi|=t),pe(e,n)}function Ya(e,n){n===0&&(e.mode&1?(n=ir,ir<<=1,!(ir&130023424)&&(ir=4194304)):n=1);var t=ie();e=Ye(e,n),e!==null&&(Gt(e,n,t),pe(e,t))}function xd(e){var n=e.memoizedState,t=0;n!==null&&(t=n.retryLane),Ya(e,t)}function Ed(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(y(314))}r!==null&&r.delete(n),Ya(e,t)}var Xa;Xa=function(e,n,t){if(e!==null)if(e.memoizedProps!==n.pendingProps||fe.current)ce=!0;else{if(!(e.lanes&t)&&!(n.flags&128))return ce=!1,cd(e,n,t);ce=!!(e.flags&131072)}else ce=!1,U&&n.flags&1048576&&qs(n,Br,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;Nr(e,n),e=n.pendingProps;var l=bn(n,le.current);Zn(n,t),l=vi(null,n,r,e,l,t);var o=yi();return n.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,de(r)?(o=!0,Ar(n)):o=!1,n.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,fi(n),l.updater=sl,n.stateNode=l,l._reactInternals=n,Eo(n,r,e,t),n=No(null,n,r,!0,o,t)):(n.tag=0,U&&o&&li(n),oe(null,n,l,t),n=n.child),n;case 16:r=n.elementType;e:{switch(Nr(e,n),e=n.pendingProps,l=r._init,r=l(r._payload),n.type=r,l=n.tag=Cd(r),e=Le(r,e),l){case 0:n=Co(null,n,r,e,t);break e;case 1:n=zu(null,n,r,e,t);break e;case 11:n=Nu(null,n,r,e,t);break e;case 14:n=Pu(null,n,r,Le(r.type,e),t);break e}throw Error(y(306,r,""))}return n;case 0:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Le(r,l),Co(e,n,r,l,t);case 1:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Le(r,l),zu(e,n,r,l,t);case 3:e:{if(ja(n),e===null)throw Error(y(387));r=n.pendingProps,o=n.memoizedState,l=o.element,la(e,n),Qr(n,r,null,t);var i=n.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},n.updateQueue.baseState=o,n.memoizedState=o,n.flags&256){l=rt(Error(y(423)),n),n=Lu(e,n,r,t,l);break e}else if(r!==l){l=rt(Error(y(424)),n),n=Lu(e,n,r,t,l);break e}else for(he=un(n.stateNode.containerInfo.firstChild),ve=n,U=!0,je=null,t=ta(n,null,r,t),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(et(),r===l){n=Xe(e,n,t);break e}oe(e,n,r,t)}n=n.child}return n;case 5:return oa(n),e===null&&ko(n),r=n.type,l=n.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,ho(r,l)?i=null:o!==null&&ho(r,o)&&(n.flags|=32),Ta(e,n),oe(e,n,i,t),n.child;case 6:return e===null&&ko(n),null;case 13:return Ra(e,n,t);case 4:return di(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=nt(n,null,r,t):oe(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Le(r,l),Nu(e,n,r,l,t);case 7:return oe(e,n,n.pendingProps,t),n.child;case 8:return oe(e,n,n.pendingProps.children,t),n.child;case 12:return oe(e,n,n.pendingProps.children,t),n.child;case 10:e:{if(r=n.type._context,l=n.pendingProps,o=n.memoizedProps,i=l.value,M(Hr,r._currentValue),r._currentValue=i,o!==null)if(Me(o.value,i)){if(o.children===l.children&&!fe.current){n=Xe(e,n,t);break e}}else for(o=n.child,o!==null&&(o.return=n);o!==null;){var u=o.dependencies;if(u!==null){i=o.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=We(-1,t&-t),s.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var m=c.pending;m===null?s.next=s:(s.next=m.next,m.next=s),c.pending=s}}o.lanes|=t,s=o.alternate,s!==null&&(s.lanes|=t),So(o.return,t,n),u.lanes|=t;break}s=s.next}}else if(o.tag===10)i=o.type===n.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(y(341));i.lanes|=t,u=i.alternate,u!==null&&(u.lanes|=t),So(i,t,n),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===n){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}oe(e,n,l.children,t),n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,Zn(n,t),l=Ce(l),r=r(l),n.flags|=1,oe(e,n,r,t),n.child;case 14:return r=n.type,l=Le(r,n.pendingProps),l=Le(r.type,l),Pu(e,n,r,l,t);case 15:return za(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Le(r,l),Nr(e,n),n.tag=1,de(r)?(e=!0,Ar(n)):e=!1,Zn(n,t),Ca(n,r,l),Eo(n,r,l,t),No(null,n,r,!0,e,t);case 19:return Oa(e,n,t);case 22:return La(e,n,t)}throw Error(y(156,n.tag))};function Ga(e,n){return xs(e,n)}function _d(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ee(e,n,t,r){return new _d(e,n,t,r)}function Pi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Cd(e){if(typeof e=="function")return Pi(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ko)return 11;if(e===Yo)return 14}return 2}function fn(e,n){var t=e.alternate;return t===null?(t=Ee(e.tag,n,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&14680064,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function Lr(e,n,t,r,l,o){var i=2;if(r=e,typeof e=="function")Pi(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case In:return Cn(t.children,l,o,n);case Qo:i=8,l|=8;break;case Kl:return e=Ee(12,t,n,l|2),e.elementType=Kl,e.lanes=o,e;case Yl:return e=Ee(13,t,n,l),e.elementType=Yl,e.lanes=o,e;case Xl:return e=Ee(19,t,n,l),e.elementType=Xl,e.lanes=o,e;case os:return fl(t,l,o,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case rs:i=10;break e;case ls:i=9;break e;case Ko:i=11;break e;case Yo:i=14;break e;case Je:i=16,r=null;break e}throw Error(y(130,e==null?e:typeof e,""))}return n=Ee(i,t,n,l),n.elementType=e,n.type=r,n.lanes=o,n}function Cn(e,n,t,r){return e=Ee(7,e,r,n),e.lanes=t,e}function fl(e,n,t,r){return e=Ee(22,e,r,n),e.elementType=os,e.lanes=t,e.stateNode={isHidden:!1},e}function Hl(e,n,t){return e=Ee(6,e,null,n),e.lanes=t,e}function Wl(e,n,t){return n=Ee(4,e.children!==null?e.children:[],e.key,n),n.lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Nd(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=_l(0),this.expirationTimes=_l(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_l(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function zi(e,n,t,r,l,o,i,u,s){return e=new Nd(e,n,t,u,s),n===1?(n=1,o===!0&&(n|=8)):n=0,o=Ee(3,null,null,n),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},fi(o),e}function Pd(e,n,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ba)}catch(e){console.error(e)}}ba(),bu.exports=ge;var Rd=bu.exports,ec,Vu=Rd;ec=Vu.createRoot,Vu.hydrateRoot;const Od={en:"Search for a word English-Lao",la:"ຄົ້ນຫາຄຳສັບ ລາວ-ອັງກິດ"},Md={placeholder_search:Od},Id="avocab.svg";function Dd({isEnglish:e,setSearchTerm:n}){return R.jsxs("div",{className:"flex flex-col justify-center items-center py-4",children:[R.jsxs("div",{className:"flex space-x-2 justify-center items-center text-center mb-4",children:[R.jsx("img",{src:Id,alt:"avocab logo",className:"w-12 h-12 transform rotate-12"}),R.jsx("h1",{className:"font-pops text-2xl transform -rotate-2 border-b-2 border-gray-800",children:"Avocab"})]}),R.jsx("input",{onChange:t=>n(t.target.value),className:"w-100 text-gray-800 placeholder:text-gray-600 text-center border-black border-2 p-2.5 focus:outline-none focus:shadow-[2px_2px_0px_rgba(0,0,0,1)] bg-white-400 active:shadow-[2px_2px_0px_rgba(0,0,0,1)] rounded-full",placeholder:Md.placeholder_search[e?"en":"la"]})]})}/** - * @license lucide-react v0.439.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Fd=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),nc=(...e)=>e.filter((n,t,r)=>!!n&&r.indexOf(n)===t).join(" ");/** - * @license lucide-react v0.439.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */var Ud={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** - * @license lucide-react v0.439.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const $d=xe.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:t=2,absoluteStrokeWidth:r,className:l="",children:o,iconNode:i,...u},s)=>xe.createElement("svg",{ref:s,...Ud,width:n,height:n,stroke:e,strokeWidth:r?Number(t)*24/Number(n):t,className:nc("lucide",l),...u},[...i.map(([c,m])=>xe.createElement(c,m)),...Array.isArray(o)?o:[o]]));/** - * @license lucide-react v0.439.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const tc=(e,n)=>{const t=xe.forwardRef(({className:r,...l},o)=>xe.createElement($d,{ref:o,iconNode:n,className:nc(`lucide-${Fd(e)}`,r),...l}));return t.displayName=`${e}`,t};/** - * @license lucide-react v0.439.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Ad=tc("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/** - * @license lucide-react v0.439.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Vd=tc("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]),rc="https://hatscripts.github.io/circle-flags/flags/la.svg",lc="https://hatscripts.github.io/circle-flags/flags/gb.svg",Bd=({word:e,toggleFavorite:n})=>{const t=()=>{const r=window.speechSynthesis,l=()=>{const o=r.getVoices(),i=new SpeechSynthesisUtterance(e.english);i.lang="en-US",i.voice=o[5],i.volume=1,i.rate=1,r.speak(i)};r.getVoices().length===0?r.addEventListener("voiceschanged",l):l()};return R.jsx("div",{className:"p-4 bg-white border-2 border-black rounded-lg shadow-[4px_4px_0px_0px_rgba(0,0,0,1)] transform transition-transform hover:translate-x-1 hover:translate-y-1 hover:shadow-[2px_2px_0px_0px_rgba(0,0,0,1)] w-full",children:R.jsxs("div",{className:"flex justify-between items-start",children:[R.jsxs("div",{className:"flex-grow",children:[R.jsxs("div",{className:"flex items-center space-x-2 mb-3",children:[R.jsx("img",{src:lc,alt:"UK Flag",className:"w-6 h-6 bg-red-500 rounded-full border border-black"}),R.jsx("h2",{className:"text-lg font-bold",children:e.english}),R.jsx("button",{variant:"outline",size:"icon",className:"p-1 border-2 border-black rounded-full bg-yellow-300 hover:bg-yellow-400 transition-colors",onClick:t,children:R.jsx(Vd,{className:"h-4 w-4"})})]}),R.jsxs("div",{className:"flex items-center space-x-2 mb-3",children:[R.jsx("img",{src:rc,alt:"UK Flag",className:"w-6 h-6 bg-blue-500 rounded-full border border-black"}),R.jsx("p",{className:"text-md",children:e.lao})]}),R.jsx("p",{className:"text-sm text-gray-600 mt-2 bg-gray-100 inline-block px-2 py-1 rounded-full border border-gray-300",children:e.type})]}),R.jsx("div",{className:"flex items-center justify-center",children:R.jsx("button",{onClick:n,variant:"outline",className:`p-1 ${e.favorite?"bg-red-500":"bg-white"} border-2 border-black rounded-full w-10 h-10 flex items-center justify-center`,children:R.jsx(Ad,{className:`h-5 w-5 ${e.favorite?"fill-white stroke-white":"fill-none stroke-black"}`})})})]})})};function Hd(){const[e,n]=xe.useState(()=>{const c=localStorage.getItem("language");return c?JSON.parse(c):!0});xe.useEffect(()=>{localStorage.setItem("language",JSON.stringify(e))},[e]);const t=()=>{n(!e)},[r,l]=xe.useState(""),[o,i]=xe.useState([{id:1,lao:"ສະບາຍດີ",english:"Hello",type:"greeting",favorite:!1},{id:2,lao:"ເຕົາອບ",english:"cooker",type:"noun",favorite:!1},{id:3,lao:"ສຳເນົາ",english:"copy",type:"noun, verb",favorite:!1},{id:4,lao:"ມຸມ",english:"corner",type:"noun",favorite:!1},{id:5,lao:"ຢ່າງຖືກຕ້ອງ",english:"correctly",type:"adverb",favorite:!1},{id:6,lao:"ນັບ",english:"count",type:"verb",favorite:!1},{id:7,lao:"ຄູ່",english:"couple",type:"noun",favorite:!1},{id:8,lao:"ປົກຄຸມ",english:"cover",type:"verb",favorite:!1},{id:9,lao:"ບ້າ",english:"crazy",type:"adjective",favorite:!1},{id:10,lao:"ສ້າງສັນ",english:"creative",type:"adjective",favorite:!1},{id:11,lao:"ເຄຣິດິດ",english:"credit",type:"noun",favorite:!1},{id:12,lao:"ອາຊະຍາກຳ",english:"crime",type:"noun",favorite:!1},{id:13,lao:"ອາຊະຍາກອນ",english:"criminal",type:"noun, adjective",favorite:!1},{id:14,lao:"ຂໍ້ມູນ",english:"cross",type:"verb, noun",favorite:!1},{id:15,lao:"ຝູງຊົນ",english:"crowd",type:"noun",favorite:!1},{id:16,lao:"ແອອດ",english:"crowded",type:"adjective",favorite:!1},{id:17,lao:"ຮ້ອງໄຫ້",english:"cry",type:"verb",favorite:!1},{id:18,lao:"ຕູ້ເກັບສິນຄ້າ",english:"cupboard",type:"noun",favorite:!1},{id:19,lao:"ຫຍິກ",english:"curly",type:"adjective",favorite:!1},{id:20,lao:"ວົນຈອນ",english:"cycle",type:"noun, verb",favorite:!1},{id:21,lao:"ປະຈໍາມື້",english:"daily",type:"adjective",favorite:!1},{id:22,lao:"ອັນຕະລາຍ",english:"danger",type:"noun",favorite:!1}]),u=c=>{i(o.map(m=>m.id===c?{...m,favorite:!m.favorite}:m))},s=o.filter(c=>e?c.english.toLowerCase().includes(r.toLowerCase()):c.lao.toLowerCase().includes(r.toLowerCase()));return R.jsx("div",{className:"min-w-screen min-h-screen py-10",style:{backgroundImage:` - linear-gradient(#d1d5db 1px, transparent 1px), - linear-gradient(90deg, #d1d5db 1px, transparent 1px) - `,backgroundSize:"20px 20px"},children:R.jsxs("div",{className:"w-5/6 lg:w-3/4 xl:w-2/4 2xl:1/4 mx-auto",children:[R.jsx(Dd,{isEnglish:e,setSearchTerm:l}),R.jsx("div",{className:"fixed top-14 right-6 space-x-2",children:R.jsx("button",{onClick:t,className:"border-black flex items-center justify-center border-2 rounded-full hover:bg-gray-200 active:bg-gray-300 w-8 h-8",children:R.jsx("img",{src:e?lc:rc,alt:e?"UK flag":"Laos flag",className:"w-6 h-6"})})}),R.jsx("div",{className:"space-y-4 mt-4",children:s.map(c=>R.jsx(Bd,{word:c,toggleFavorite:()=>u(c.id)},c.id))})]})})}ec(document.getElementById("root")).render(R.jsx(xe.StrictMode,{children:R.jsx(Hd,{})})); diff --git a/assets/index-D-JtIrxX.js b/assets/index-D-JtIrxX.js new file mode 100644 index 0000000..733c351 --- /dev/null +++ b/assets/index-D-JtIrxX.js @@ -0,0 +1,96 @@ +(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&a(d)}).observe(document,{childList:!0,subtree:!0});function s(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function a(o){if(o.ep)return;o.ep=!0;const c=s(o);fetch(o.href,c)}})();var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){if(e.__esModule)return e;var i=e.default;if(typeof i=="function"){var s=function a(){return this instanceof a?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};s.prototype=i.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var o=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(s,a,o.get?o:{enumerable:!0,get:function(){return e[a]}})}),s}var jsxRuntime={exports:{}},reactJsxRuntime_production_min={},react={exports:{}},react_production_min={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var l$1=Symbol.for("react.element"),n$1=Symbol.for("react.portal"),p$2=Symbol.for("react.fragment"),q$1=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),t=Symbol.for("react.provider"),u=Symbol.for("react.context"),v$2=Symbol.for("react.forward_ref"),w$1=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),z$1=Symbol.iterator;function A$1(e){return e===null||typeof e!="object"?null:(e=z$1&&e[z$1]||e["@@iterator"],typeof e=="function"?e:null)}var B$1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C$1=Object.assign,D$1={};function E$1(e,i,s){this.props=e,this.context=i,this.refs=D$1,this.updater=s||B$1}E$1.prototype.isReactComponent={};E$1.prototype.setState=function(e,i){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,i,"setState")};E$1.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function F(){}F.prototype=E$1.prototype;function G$1(e,i,s){this.props=e,this.context=i,this.refs=D$1,this.updater=s||B$1}var H$1=G$1.prototype=new F;H$1.constructor=G$1;C$1(H$1,E$1.prototype);H$1.isPureReactComponent=!0;var I$1=Array.isArray,J=Object.prototype.hasOwnProperty,K$1={current:null},L$1={key:!0,ref:!0,__self:!0,__source:!0};function M$1(e,i,s){var a,o={},c=null,d=null;if(i!=null)for(a in i.ref!==void 0&&(d=i.ref),i.key!==void 0&&(c=""+i.key),i)J.call(i,a)&&!L$1.hasOwnProperty(a)&&(o[a]=i[a]);var g=arguments.length-2;if(g===1)o.children=s;else if(1>>1,_t=ot[mt];if(0>>1;mto(At,gt))It<_t&&0>o(Ft,At)?(ot[mt]=Ft,ot[It]=gt,mt=It):(ot[mt]=At,ot[Pt]=gt,mt=Pt);else if(It<_t&&0>o(Ft,gt))ot[mt]=Ft,ot[It]=gt,mt=It;else break e}}return lt}function o(ot,lt){var gt=ot.sortIndex-lt.sortIndex;return gt!==0?gt:ot.id-lt.id}if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var d=Date,g=d.now();e.unstable_now=function(){return d.now()-g}}var _=[],b=[],j=1,st=null,_e=3,at=!1,it=!1,rt=!1,ct=typeof setTimeout=="function"?setTimeout:null,et=typeof clearTimeout=="function"?clearTimeout:null,tt=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function $(ot){for(var lt=s(b);lt!==null;){if(lt.callback===null)a(b);else if(lt.startTime<=ot)a(b),lt.sortIndex=lt.expirationTime,i(_,lt);else break;lt=s(b)}}function nt(ot){if(rt=!1,$(ot),!it)if(s(_)!==null)it=!0,ft(ut);else{var lt=s(b);lt!==null&&vt(nt,lt.startTime-ot)}}function ut(ot,lt){it=!1,rt&&(rt=!1,et(pt),pt=-1),at=!0;var gt=_e;try{for($(lt),st=s(_);st!==null&&(!(st.expirationTime>lt)||ot&&!wt());){var mt=st.callback;if(typeof mt=="function"){st.callback=null,_e=st.priorityLevel;var _t=mt(st.expirationTime<=lt);lt=e.unstable_now(),typeof _t=="function"?st.callback=_t:st===s(_)&&a(_),$(lt)}else a(_);st=s(_)}if(st!==null)var kt=!0;else{var Pt=s(b);Pt!==null&&vt(nt,Pt.startTime-lt),kt=!1}return kt}finally{st=null,_e=gt,at=!1}}var ht=!1,dt=null,pt=-1,yt=5,xt=-1;function wt(){return!(e.unstable_now()-xtot||125mt?(ot.sortIndex=gt,i(b,ot),s(_)===null&&ot===s(b)&&(rt?(et(pt),pt=-1):rt=!0,vt(nt,gt-mt))):(ot.sortIndex=_t,i(_,ot),it||at||(it=!0,ft(ut))),ot},e.unstable_shouldYield=wt,e.unstable_wrapCallback=function(ot){var lt=_e;return function(){var gt=_e;_e=lt;try{return ot.apply(this,arguments)}finally{_e=gt}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var aa=reactExports,ca=schedulerExports;function p(e){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+e,s=1;s"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ja=Object.prototype.hasOwnProperty,ka=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,la={},ma={};function oa(e){return ja.call(ma,e)?!0:ja.call(la,e)?!1:ka.test(e)?ma[e]=!0:(la[e]=!0,!1)}function pa(e,i,s,a){if(s!==null&&s.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return a?!1:s!==null?!s.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function qa(e,i,s,a){if(i===null||typeof i>"u"||pa(e,i,s,a))return!0;if(a)return!1;if(s!==null)switch(s.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function v$1(e,i,s,a,o,c,d){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=a,this.attributeNamespace=o,this.mustUseProperty=s,this.propertyName=e,this.type=i,this.sanitizeURL=c,this.removeEmptyString=d}var z={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){z[e]=new v$1(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var i=e[0];z[i]=new v$1(i,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){z[e]=new v$1(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){z[e]=new v$1(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){z[e]=new v$1(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){z[e]=new v$1(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){z[e]=new v$1(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){z[e]=new v$1(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){z[e]=new v$1(e,5,!1,e.toLowerCase(),null,!1,!1)});var ra=/[\-:]([a-z])/g;function sa(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var i=e.replace(ra,sa);z[i]=new v$1(i,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var i=e.replace(ra,sa);z[i]=new v$1(i,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var i=e.replace(ra,sa);z[i]=new v$1(i,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){z[e]=new v$1(e,1,!1,e.toLowerCase(),null,!1,!1)});z.xlinkHref=new v$1("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){z[e]=new v$1(e,1,!1,e.toLowerCase(),null,!0,!0)});function ta(e,i,s,a){var o=z.hasOwnProperty(i)?z[i]:null;(o!==null?o.type!==0:a||!(2g||o[d]!==c[g]){var _=` +`+o[d].replace(" at new "," at ");return e.displayName&&_.includes("")&&(_=_.replace("",e.displayName)),_}while(1<=d&&0<=g);break}}}finally{Na=!1,Error.prepareStackTrace=s}return(e=e?e.displayName||e.name:"")?Ma(e):""}function Pa(e){switch(e.tag){case 5:return Ma(e.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return e=Oa(e.type,!1),e;case 11:return e=Oa(e.type.render,!1),e;case 1:return e=Oa(e.type,!0),e;default:return""}}function Qa(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ca:return(e.displayName||"Context")+".Consumer";case Ba:return(e._context.displayName||"Context")+".Provider";case Da:var i=e.render;return e=e.displayName,e||(e=i.displayName||i.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ga:return i=e.displayName||null,i!==null?i:Qa(e.type)||"Memo";case Ha:i=e._payload,e=e._init;try{return Qa(e(i))}catch{}}return null}function Ra(e){var i=e.type;switch(e.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=i.render,e=e.displayName||e.name||"",i.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(i);case 8:return i===za?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function Sa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ta(e){var i=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Ua(e){var i=Ta(e)?"checked":"value",s=Object.getOwnPropertyDescriptor(e.constructor.prototype,i),a=""+e[i];if(!e.hasOwnProperty(i)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var o=s.get,c=s.set;return Object.defineProperty(e,i,{configurable:!0,get:function(){return o.call(this)},set:function(d){a=""+d,c.call(this,d)}}),Object.defineProperty(e,i,{enumerable:s.enumerable}),{getValue:function(){return a},setValue:function(d){a=""+d},stopTracking:function(){e._valueTracker=null,delete e[i]}}}}function Va(e){e._valueTracker||(e._valueTracker=Ua(e))}function Wa(e){if(!e)return!1;var i=e._valueTracker;if(!i)return!0;var s=i.getValue(),a="";return e&&(a=Ta(e)?e.checked?"true":"false":e.value),e=a,e!==s?(i.setValue(e),!0):!1}function Xa(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ya(e,i){var s=i.checked;return A({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??e._wrapperState.initialChecked})}function Za(e,i){var s=i.defaultValue==null?"":i.defaultValue,a=i.checked!=null?i.checked:i.defaultChecked;s=Sa(i.value!=null?i.value:s),e._wrapperState={initialChecked:a,initialValue:s,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function ab(e,i){i=i.checked,i!=null&&ta(e,"checked",i,!1)}function bb(e,i){ab(e,i);var s=Sa(i.value),a=i.type;if(s!=null)a==="number"?(s===0&&e.value===""||e.value!=s)&&(e.value=""+s):e.value!==""+s&&(e.value=""+s);else if(a==="submit"||a==="reset"){e.removeAttribute("value");return}i.hasOwnProperty("value")?cb(e,i.type,s):i.hasOwnProperty("defaultValue")&&cb(e,i.type,Sa(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(e.defaultChecked=!!i.defaultChecked)}function db(e,i,s){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var a=i.type;if(!(a!=="submit"&&a!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+e._wrapperState.initialValue,s||i===e.value||(e.value=i),e.defaultValue=i}s=e.name,s!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,s!==""&&(e.name=s)}function cb(e,i,s){(i!=="number"||Xa(e.ownerDocument)!==e)&&(s==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+s&&(e.defaultValue=""+s))}var eb=Array.isArray;function fb(e,i,s,a){if(e=e.options,i){i={};for(var o=0;o"+i.valueOf().toString()+"",i=mb.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;i.firstChild;)e.appendChild(i.firstChild)}});function ob(e,i){if(i){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===3){s.nodeValue=i;return}}e.textContent=i}var pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function(e){qb.forEach(function(i){i=i+e.charAt(0).toUpperCase()+e.substring(1),pb[i]=pb[e]})});function rb(e,i,s){return i==null||typeof i=="boolean"||i===""?"":s||typeof i!="number"||i===0||pb.hasOwnProperty(e)&&pb[e]?(""+i).trim():i+"px"}function sb(e,i){e=e.style;for(var s in i)if(i.hasOwnProperty(s)){var a=s.indexOf("--")===0,o=rb(s,i[s],a);s==="float"&&(s="cssFloat"),a?e.setProperty(s,o):e[s]=o}}var tb=A({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ub(e,i){if(i){if(tb[e]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(p(137,e));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(p(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(p(61))}if(i.style!=null&&typeof i.style!="object")throw Error(p(62))}}function vb(e,i){if(e.indexOf("-")===-1)return typeof i.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wb=null;function xb(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var yb=null,zb=null,Ab=null;function Bb(e){if(e=Cb(e)){if(typeof yb!="function")throw Error(p(280));var i=e.stateNode;i&&(i=Db(i),yb(e.stateNode,e.type,i))}}function Eb(e){zb?Ab?Ab.push(e):Ab=[e]:zb=e}function Fb(){if(zb){var e=zb,i=Ab;if(Ab=zb=null,Bb(e),i)for(e=0;e>>=0,e===0?32:31-(pc(e)/qc|0)|0}var rc=64,sc=4194304;function tc(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function uc(e,i){var s=e.pendingLanes;if(s===0)return 0;var a=0,o=e.suspendedLanes,c=e.pingedLanes,d=s&268435455;if(d!==0){var g=d&~o;g!==0?a=tc(g):(c&=d,c!==0&&(a=tc(c)))}else d=s&~o,d!==0?a=tc(d):c!==0&&(a=tc(c));if(a===0)return 0;if(i!==0&&i!==a&&!(i&o)&&(o=a&-a,c=i&-i,o>=c||o===16&&(c&4194240)!==0))return i;if(a&4&&(a|=s&16),i=e.entangledLanes,i!==0)for(e=e.entanglements,i&=a;0s;s++)i.push(e);return i}function Ac(e,i,s){e.pendingLanes|=i,i!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,i=31-oc(i),e[i]=s}function Bc(e,i){var s=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;var a=e.eventTimes;for(e=e.expirationTimes;0=be),ee=" ",fe=!1;function ge(e,i){switch(e){case"keyup":return $d.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ie=!1;function je(e,i){switch(e){case"compositionend":return he(i);case"keypress":return i.which!==32?null:(fe=!0,ee);case"textInput":return e=i.data,e===ee&&fe?null:e;default:return null}}function ke(e,i){if(ie)return e==="compositionend"||!ae&&ge(e,i)?(e=nd(),md=ld=kd=null,ie=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1=i)return{node:s,offset:i-e};e=a}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Je(s)}}function Le(e,i){return e&&i?e===i?!0:e&&e.nodeType===3?!1:i&&i.nodeType===3?Le(e,i.parentNode):"contains"in e?e.contains(i):e.compareDocumentPosition?!!(e.compareDocumentPosition(i)&16):!1:!1}function Me(){for(var e=window,i=Xa();i instanceof e.HTMLIFrameElement;){try{var s=typeof i.contentWindow.location.href=="string"}catch{s=!1}if(s)e=i.contentWindow;else break;i=Xa(e.document)}return i}function Ne(e){var i=e&&e.nodeName&&e.nodeName.toLowerCase();return i&&(i==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||i==="textarea"||e.contentEditable==="true")}function Oe(e){var i=Me(),s=e.focusedElem,a=e.selectionRange;if(i!==s&&s&&s.ownerDocument&&Le(s.ownerDocument.documentElement,s)){if(a!==null&&Ne(s)){if(i=a.start,e=a.end,e===void 0&&(e=i),"selectionStart"in s)s.selectionStart=i,s.selectionEnd=Math.min(e,s.value.length);else if(e=(i=s.ownerDocument||document)&&i.defaultView||window,e.getSelection){e=e.getSelection();var o=s.textContent.length,c=Math.min(a.start,o);a=a.end===void 0?c:Math.min(a.end,o),!e.extend&&c>a&&(o=a,a=c,c=o),o=Ke(s,c);var d=Ke(s,a);o&&d&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==d.node||e.focusOffset!==d.offset)&&(i=i.createRange(),i.setStart(o.node,o.offset),e.removeAllRanges(),c>a?(e.addRange(i),e.extend(d.node,d.offset)):(i.setEnd(d.node,d.offset),e.addRange(i)))}}for(i=[],e=s;e=e.parentNode;)e.nodeType===1&&i.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;function Ue(e,i,s){var a=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Te||Qe==null||Qe!==Xa(a)||(a=Qe,"selectionStart"in a&&Ne(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Se&&Ie(Se,a)||(Se=a,a=oe(Re,"onSelect"),0Tf||(e.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G(e,i){Tf++,Sf[Tf]=e.current,e.current=i}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(e,i){var s=e.type.contextTypes;if(!s)return Vf;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===i)return a.__reactInternalMemoizedMaskedChildContext;var o={},c;for(c in s)o[c]=i[c];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),o}function Zf(e){return e=e.childContextTypes,e!=null}function $f(){E(Wf),E(H)}function ag(e,i,s){if(H.current!==Vf)throw Error(p(168));G(H,i),G(Wf,s)}function bg(e,i,s){var a=e.stateNode;if(i=i.childContextTypes,typeof a.getChildContext!="function")return s;a=a.getChildContext();for(var o in a)if(!(o in i))throw Error(p(108,Ra(e)||"Unknown",o));return A({},s,a)}function cg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Vf,Xf=H.current,G(H,e),G(Wf,Wf.current),!0}function dg(e,i,s){var a=e.stateNode;if(!a)throw Error(p(169));s?(e=bg(e,i,Xf),a.__reactInternalMemoizedMergedChildContext=e,E(Wf),E(H),G(H,e)):E(Wf),G(Wf,s)}var eg=null,fg=!1,gg=!1;function hg(e){eg===null?eg=[e]:eg.push(e)}function ig(e){fg=!0,hg(e)}function jg(){if(!gg&&eg!==null){gg=!0;var e=0,i=C;try{var s=eg;for(C=1;e>=d,o-=d,rg=1<<32-oc(i)+o|s<pt?(yt=dt,dt=null):yt=dt.sibling;var xt=_e(et,dt,$[pt],nt);if(xt===null){dt===null&&(dt=yt);break}e&&dt&&xt.alternate===null&&i(et,dt),tt=c(xt,tt,pt),ht===null?ut=xt:ht.sibling=xt,ht=xt,dt=yt}if(pt===$.length)return s(et,dt),I&&tg(et,pt),ut;if(dt===null){for(;pt<$.length;pt++)dt=st(et,$[pt],nt),dt!==null&&(tt=c(dt,tt,pt),ht===null?ut=dt:ht.sibling=dt,ht=dt);return I&&tg(et,pt),ut}for(dt=a(et,dt);pt<$.length;pt++)yt=at(dt,et,pt,$[pt],nt),yt!==null&&(e&&yt.alternate!==null&&dt.delete(yt.key===null?pt:yt.key),tt=c(yt,tt,pt),ht===null?ut=yt:ht.sibling=yt,ht=yt);return e&&dt.forEach(function(wt){return i(et,wt)}),I&&tg(et,pt),ut}function rt(et,tt,$,nt){var ut=Ka($);if(typeof ut!="function")throw Error(p(150));if($=ut.call($),$==null)throw Error(p(151));for(var ht=ut=null,dt=tt,pt=tt=0,yt=null,xt=$.next();dt!==null&&!xt.done;pt++,xt=$.next()){dt.index>pt?(yt=dt,dt=null):yt=dt.sibling;var wt=_e(et,dt,xt.value,nt);if(wt===null){dt===null&&(dt=yt);break}e&&dt&&wt.alternate===null&&i(et,dt),tt=c(wt,tt,pt),ht===null?ut=wt:ht.sibling=wt,ht=wt,dt=yt}if(xt.done)return s(et,dt),I&&tg(et,pt),ut;if(dt===null){for(;!xt.done;pt++,xt=$.next())xt=st(et,xt.value,nt),xt!==null&&(tt=c(xt,tt,pt),ht===null?ut=xt:ht.sibling=xt,ht=xt);return I&&tg(et,pt),ut}for(dt=a(et,dt);!xt.done;pt++,xt=$.next())xt=at(dt,et,pt,xt.value,nt),xt!==null&&(e&&xt.alternate!==null&&dt.delete(xt.key===null?pt:xt.key),tt=c(xt,tt,pt),ht===null?ut=xt:ht.sibling=xt,ht=xt);return e&&dt.forEach(function(St){return i(et,St)}),I&&tg(et,pt),ut}function ct(et,tt,$,nt){if(typeof $=="object"&&$!==null&&$.type===ya&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case va:e:{for(var ut=$.key,ht=tt;ht!==null;){if(ht.key===ut){if(ut=$.type,ut===ya){if(ht.tag===7){s(et,ht.sibling),tt=o(ht,$.props.children),tt.return=et,et=tt;break e}}else if(ht.elementType===ut||typeof ut=="object"&&ut!==null&&ut.$$typeof===Ha&&Ng(ut)===ht.type){s(et,ht.sibling),tt=o(ht,$.props),tt.ref=Lg(et,ht,$),tt.return=et,et=tt;break e}s(et,ht);break}else i(et,ht);ht=ht.sibling}$.type===ya?(tt=Tg($.props.children,et.mode,nt,$.key),tt.return=et,et=tt):(nt=Rg($.type,$.key,$.props,null,et.mode,nt),nt.ref=Lg(et,tt,$),nt.return=et,et=nt)}return d(et);case wa:e:{for(ht=$.key;tt!==null;){if(tt.key===ht)if(tt.tag===4&&tt.stateNode.containerInfo===$.containerInfo&&tt.stateNode.implementation===$.implementation){s(et,tt.sibling),tt=o(tt,$.children||[]),tt.return=et,et=tt;break e}else{s(et,tt);break}else i(et,tt);tt=tt.sibling}tt=Sg($,et.mode,nt),tt.return=et,et=tt}return d(et);case Ha:return ht=$._init,ct(et,tt,ht($._payload),nt)}if(eb($))return it(et,tt,$,nt);if(Ka($))return rt(et,tt,$,nt);Mg(et,$)}return typeof $=="string"&&$!==""||typeof $=="number"?($=""+$,tt!==null&&tt.tag===6?(s(et,tt.sibling),tt=o(tt,$),tt.return=et,et=tt):(s(et,tt),tt=Qg($,et.mode,nt),tt.return=et,et=tt),d(et)):s(et,tt)}return ct}var Ug=Og(!0),Vg=Og(!1),Wg=Uf(null),Xg=null,Yg=null,Zg=null;function $g(){Zg=Yg=Xg=null}function ah(e){var i=Wg.current;E(Wg),e._currentValue=i}function bh(e,i,s){for(;e!==null;){var a=e.alternate;if((e.childLanes&i)!==i?(e.childLanes|=i,a!==null&&(a.childLanes|=i)):a!==null&&(a.childLanes&i)!==i&&(a.childLanes|=i),e===s)break;e=e.return}}function ch(e,i){Xg=e,Zg=Yg=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&i&&(dh=!0),e.firstContext=null)}function eh(e){var i=e._currentValue;if(Zg!==e)if(e={context:e,memoizedValue:i,next:null},Yg===null){if(Xg===null)throw Error(p(308));Yg=e,Xg.dependencies={lanes:0,firstContext:e}}else Yg=Yg.next=e;return i}var fh=null;function gh(e){fh===null?fh=[e]:fh.push(e)}function hh(e,i,s,a){var o=i.interleaved;return o===null?(s.next=s,gh(i)):(s.next=o.next,o.next=s),i.interleaved=s,ih(e,a)}function ih(e,i){e.lanes|=i;var s=e.alternate;for(s!==null&&(s.lanes|=i),s=e,e=e.return;e!==null;)e.childLanes|=i,s=e.alternate,s!==null&&(s.childLanes|=i),s=e,e=e.return;return s.tag===3?s.stateNode:null}var jh=!1;function kh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function lh(e,i){e=e.updateQueue,i.updateQueue===e&&(i.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function mh(e,i){return{eventTime:e,lane:i,tag:0,payload:null,callback:null,next:null}}function nh(e,i,s){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,K&2){var o=a.pending;return o===null?i.next=i:(i.next=o.next,o.next=i),a.pending=i,ih(e,s)}return o=a.interleaved,o===null?(i.next=i,gh(a)):(i.next=o.next,o.next=i),a.interleaved=i,ih(e,s)}function oh(e,i,s){if(i=i.updateQueue,i!==null&&(i=i.shared,(s&4194240)!==0)){var a=i.lanes;a&=e.pendingLanes,s|=a,i.lanes=s,Cc(e,s)}}function ph(e,i){var s=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,s===a)){var o=null,c=null;if(s=s.firstBaseUpdate,s!==null){do{var d={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};c===null?o=c=d:c=c.next=d,s=s.next}while(s!==null);c===null?o=c=i:c=c.next=i}else o=c=i;s={baseState:a.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:a.shared,effects:a.effects},e.updateQueue=s;return}e=s.lastBaseUpdate,e===null?s.firstBaseUpdate=i:e.next=i,s.lastBaseUpdate=i}function qh(e,i,s,a){var o=e.updateQueue;jh=!1;var c=o.firstBaseUpdate,d=o.lastBaseUpdate,g=o.shared.pending;if(g!==null){o.shared.pending=null;var _=g,b=_.next;_.next=null,d===null?c=b:d.next=b,d=_;var j=e.alternate;j!==null&&(j=j.updateQueue,g=j.lastBaseUpdate,g!==d&&(g===null?j.firstBaseUpdate=b:g.next=b,j.lastBaseUpdate=_))}if(c!==null){var st=o.baseState;d=0,j=b=_=null,g=c;do{var _e=g.lane,at=g.eventTime;if((a&_e)===_e){j!==null&&(j=j.next={eventTime:at,lane:0,tag:g.tag,payload:g.payload,callback:g.callback,next:null});e:{var it=e,rt=g;switch(_e=i,at=s,rt.tag){case 1:if(it=rt.payload,typeof it=="function"){st=it.call(at,st,_e);break e}st=it;break e;case 3:it.flags=it.flags&-65537|128;case 0:if(it=rt.payload,_e=typeof it=="function"?it.call(at,st,_e):it,_e==null)break e;st=A({},st,_e);break e;case 2:jh=!0}}g.callback!==null&&g.lane!==0&&(e.flags|=64,_e=o.effects,_e===null?o.effects=[g]:_e.push(g))}else at={eventTime:at,lane:_e,tag:g.tag,payload:g.payload,callback:g.callback,next:null},j===null?(b=j=at,_=st):j=j.next=at,d|=_e;if(g=g.next,g===null){if(g=o.shared.pending,g===null)break;_e=g,g=_e.next,_e.next=null,o.lastBaseUpdate=_e,o.shared.pending=null}}while(!0);if(j===null&&(_=st),o.baseState=_,o.firstBaseUpdate=b,o.lastBaseUpdate=j,i=o.shared.interleaved,i!==null){o=i;do d|=o.lane,o=o.next;while(o!==i)}else c===null&&(o.shared.lanes=0);rh|=d,e.lanes=d,e.memoizedState=st}}function sh(e,i,s){if(e=i.effects,i.effects=null,e!==null)for(i=0;is?s:4,e(!0);var a=Gh.transition;Gh.transition={};try{e(!1),i()}finally{C=s,Gh.transition=a}}function wi(){return Uh().memoizedState}function xi(e,i,s){var a=yi(e);if(s={lane:a,action:s,hasEagerState:!1,eagerState:null,next:null},zi(e))Ai(i,s);else if(s=hh(e,i,s,a),s!==null){var o=R();gi(s,e,a,o),Bi(s,i,a)}}function ii(e,i,s){var a=yi(e),o={lane:a,action:s,hasEagerState:!1,eagerState:null,next:null};if(zi(e))Ai(i,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=i.lastRenderedReducer,c!==null))try{var d=i.lastRenderedState,g=c(d,s);if(o.hasEagerState=!0,o.eagerState=g,He(g,d)){var _=i.interleaved;_===null?(o.next=o,gh(i)):(o.next=_.next,_.next=o),i.interleaved=o;return}}catch{}finally{}s=hh(e,i,o,a),s!==null&&(o=R(),gi(s,e,a,o),Bi(s,i,a))}}function zi(e){var i=e.alternate;return e===M||i!==null&&i===M}function Ai(e,i){Jh=Ih=!0;var s=e.pending;s===null?i.next=i:(i.next=s.next,s.next=i),e.pending=i}function Bi(e,i,s){if(s&4194240){var a=i.lanes;a&=e.pendingLanes,s|=a,i.lanes=s,Cc(e,s)}}var Rh={readContext:eh,useCallback:P,useContext:P,useEffect:P,useImperativeHandle:P,useInsertionEffect:P,useLayoutEffect:P,useMemo:P,useReducer:P,useRef:P,useState:P,useDebugValue:P,useDeferredValue:P,useTransition:P,useMutableSource:P,useSyncExternalStore:P,useId:P,unstable_isNewReconciler:!1},Oh={readContext:eh,useCallback:function(e,i){return Th().memoizedState=[e,i===void 0?null:i],e},useContext:eh,useEffect:mi,useImperativeHandle:function(e,i,s){return s=s!=null?s.concat([e]):null,ki(4194308,4,pi.bind(null,i,e),s)},useLayoutEffect:function(e,i){return ki(4194308,4,e,i)},useInsertionEffect:function(e,i){return ki(4,2,e,i)},useMemo:function(e,i){var s=Th();return i=i===void 0?null:i,e=e(),s.memoizedState=[e,i],e},useReducer:function(e,i,s){var a=Th();return i=s!==void 0?s(i):i,a.memoizedState=a.baseState=i,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=xi.bind(null,M,e),[a.memoizedState,e]},useRef:function(e){var i=Th();return e={current:e},i.memoizedState=e},useState:hi,useDebugValue:ri,useDeferredValue:function(e){return Th().memoizedState=e},useTransition:function(){var e=hi(!1),i=e[0];return e=vi.bind(null,e[1]),Th().memoizedState=e,[i,e]},useMutableSource:function(){},useSyncExternalStore:function(e,i,s){var a=M,o=Th();if(I){if(s===void 0)throw Error(p(407));s=s()}else{if(s=i(),Q===null)throw Error(p(349));Hh&30||di(a,i,s)}o.memoizedState=s;var c={value:s,getSnapshot:i};return o.queue=c,mi(ai.bind(null,a,c,e),[e]),a.flags|=2048,bi(9,ci.bind(null,a,c,s,i),void 0,null),s},useId:function(){var e=Th(),i=Q.identifierPrefix;if(I){var s=sg,a=rg;s=(a&~(1<<32-oc(a)-1)).toString(32)+s,i=":"+i+"R"+s,s=Kh++,0<\/script>",e=e.removeChild(e.firstChild)):typeof a.is=="string"?e=d.createElement(s,{is:a.is}):(e=d.createElement(s),s==="select"&&(d=e,a.multiple?d.multiple=!0:a.size&&(d.size=a.size))):e=d.createElementNS(e,s),e[Of]=i,e[Pf]=a,zj(e,i,!1,!1),i.stateNode=e;e:{switch(d=vb(s,a),s){case"dialog":D("cancel",e),D("close",e),o=a;break;case"iframe":case"object":case"embed":D("load",e),o=a;break;case"video":case"audio":for(o=0;oGj&&(i.flags|=128,a=!0,Dj(c,!1),i.lanes=4194304)}else{if(!a)if(e=Ch(d),e!==null){if(i.flags|=128,a=!0,s=e.updateQueue,s!==null&&(i.updateQueue=s,i.flags|=4),Dj(c,!0),c.tail===null&&c.tailMode==="hidden"&&!d.alternate&&!I)return S(i),null}else 2*B()-c.renderingStartTime>Gj&&s!==1073741824&&(i.flags|=128,a=!0,Dj(c,!1),i.lanes=4194304);c.isBackwards?(d.sibling=i.child,i.child=d):(s=c.last,s!==null?s.sibling=d:i.child=d,c.last=d)}return c.tail!==null?(i=c.tail,c.rendering=i,c.tail=i.sibling,c.renderingStartTime=B(),i.sibling=null,s=L.current,G(L,a?s&1|2:s&1),i):(S(i),null);case 22:case 23:return Hj(),a=i.memoizedState!==null,e!==null&&e.memoizedState!==null!==a&&(i.flags|=8192),a&&i.mode&1?fj&1073741824&&(S(i),i.subtreeFlags&6&&(i.flags|=8192)):S(i),null;case 24:return null;case 25:return null}throw Error(p(156,i.tag))}function Ij(e,i){switch(wg(i),i.tag){case 1:return Zf(i.type)&&$f(),e=i.flags,e&65536?(i.flags=e&-65537|128,i):null;case 3:return zh(),E(Wf),E(H),Eh(),e=i.flags,e&65536&&!(e&128)?(i.flags=e&-65537|128,i):null;case 5:return Bh(i),null;case 13:if(E(L),e=i.memoizedState,e!==null&&e.dehydrated!==null){if(i.alternate===null)throw Error(p(340));Ig()}return e=i.flags,e&65536?(i.flags=e&-65537|128,i):null;case 19:return E(L),null;case 4:return zh(),null;case 10:return ah(i.type._context),null;case 22:case 23:return Hj(),null;case 24:return null;default:return null}}var Jj=!1,U=!1,Kj=typeof WeakSet=="function"?WeakSet:Set,V=null;function Lj(e,i){var s=e.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(a){W(e,i,a)}else s.current=null}function Mj(e,i,s){try{s()}catch(a){W(e,i,a)}}var Nj=!1;function Oj(e,i){if(Cf=dd,e=Me(),Ne(e)){if("selectionStart"in e)var s={start:e.selectionStart,end:e.selectionEnd};else e:{s=(s=e.ownerDocument)&&s.defaultView||window;var a=s.getSelection&&s.getSelection();if(a&&a.rangeCount!==0){s=a.anchorNode;var o=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{s.nodeType,c.nodeType}catch{s=null;break e}var d=0,g=-1,_=-1,b=0,j=0,st=e,_e=null;t:for(;;){for(var at;st!==s||o!==0&&st.nodeType!==3||(g=d+o),st!==c||a!==0&&st.nodeType!==3||(_=d+a),st.nodeType===3&&(d+=st.nodeValue.length),(at=st.firstChild)!==null;)_e=st,st=at;for(;;){if(st===e)break t;if(_e===s&&++b===o&&(g=d),_e===c&&++j===a&&(_=d),(at=st.nextSibling)!==null)break;st=_e,_e=st.parentNode}st=at}s=g===-1||_===-1?null:{start:g,end:_}}else s=null}s=s||{start:0,end:0}}else s=null;for(Df={focusedElem:e,selectionRange:s},dd=!1,V=i;V!==null;)if(i=V,e=i.child,(i.subtreeFlags&1028)!==0&&e!==null)e.return=i,V=e;else for(;V!==null;){i=V;try{var it=i.alternate;if(i.flags&1024)switch(i.tag){case 0:case 11:case 15:break;case 1:if(it!==null){var rt=it.memoizedProps,ct=it.memoizedState,et=i.stateNode,tt=et.getSnapshotBeforeUpdate(i.elementType===i.type?rt:Ci(i.type,rt),ct);et.__reactInternalSnapshotBeforeUpdate=tt}break;case 3:var $=i.stateNode.containerInfo;$.nodeType===1?$.textContent="":$.nodeType===9&&$.documentElement&&$.removeChild($.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p(163))}}catch(nt){W(i,i.return,nt)}if(e=i.sibling,e!==null){e.return=i.return,V=e;break}V=i.return}return it=Nj,Nj=!1,it}function Pj(e,i,s){var a=i.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var o=a=a.next;do{if((o.tag&e)===e){var c=o.destroy;o.destroy=void 0,c!==void 0&&Mj(i,s,c)}o=o.next}while(o!==a)}}function Qj(e,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var s=i=i.next;do{if((s.tag&e)===e){var a=s.create;s.destroy=a()}s=s.next}while(s!==i)}}function Rj(e){var i=e.ref;if(i!==null){var s=e.stateNode;switch(e.tag){case 5:e=s;break;default:e=s}typeof i=="function"?i(e):i.current=e}}function Sj(e){var i=e.alternate;i!==null&&(e.alternate=null,Sj(i)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(i=e.stateNode,i!==null&&(delete i[Of],delete i[Pf],delete i[of],delete i[Qf],delete i[Rf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Tj(e){return e.tag===5||e.tag===3||e.tag===4}function Uj(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Tj(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Vj(e,i,s){var a=e.tag;if(a===5||a===6)e=e.stateNode,i?s.nodeType===8?s.parentNode.insertBefore(e,i):s.insertBefore(e,i):(s.nodeType===8?(i=s.parentNode,i.insertBefore(e,s)):(i=s,i.appendChild(e)),s=s._reactRootContainer,s!=null||i.onclick!==null||(i.onclick=Bf));else if(a!==4&&(e=e.child,e!==null))for(Vj(e,i,s),e=e.sibling;e!==null;)Vj(e,i,s),e=e.sibling}function Wj(e,i,s){var a=e.tag;if(a===5||a===6)e=e.stateNode,i?s.insertBefore(e,i):s.appendChild(e);else if(a!==4&&(e=e.child,e!==null))for(Wj(e,i,s),e=e.sibling;e!==null;)Wj(e,i,s),e=e.sibling}var X=null,Xj=!1;function Yj(e,i,s){for(s=s.child;s!==null;)Zj(e,i,s),s=s.sibling}function Zj(e,i,s){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,s)}catch{}switch(s.tag){case 5:U||Lj(s,i);case 6:var a=X,o=Xj;X=null,Yj(e,i,s),X=a,Xj=o,X!==null&&(Xj?(e=X,s=s.stateNode,e.nodeType===8?e.parentNode.removeChild(s):e.removeChild(s)):X.removeChild(s.stateNode));break;case 18:X!==null&&(Xj?(e=X,s=s.stateNode,e.nodeType===8?Kf(e.parentNode,s):e.nodeType===1&&Kf(e,s),bd(e)):Kf(X,s.stateNode));break;case 4:a=X,o=Xj,X=s.stateNode.containerInfo,Xj=!0,Yj(e,i,s),X=a,Xj=o;break;case 0:case 11:case 14:case 15:if(!U&&(a=s.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){o=a=a.next;do{var c=o,d=c.destroy;c=c.tag,d!==void 0&&(c&2||c&4)&&Mj(s,i,d),o=o.next}while(o!==a)}Yj(e,i,s);break;case 1:if(!U&&(Lj(s,i),a=s.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=s.memoizedProps,a.state=s.memoizedState,a.componentWillUnmount()}catch(g){W(s,i,g)}Yj(e,i,s);break;case 21:Yj(e,i,s);break;case 22:s.mode&1?(U=(a=U)||s.memoizedState!==null,Yj(e,i,s),U=a):Yj(e,i,s);break;default:Yj(e,i,s)}}function ak(e){var i=e.updateQueue;if(i!==null){e.updateQueue=null;var s=e.stateNode;s===null&&(s=e.stateNode=new Kj),i.forEach(function(a){var o=bk.bind(null,e,a);s.has(a)||(s.add(a),a.then(o,o))})}}function ck(e,i){var s=i.deletions;if(s!==null)for(var a=0;ao&&(o=d),a&=~c}if(a=o,a=B()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*lk(a/1960))-a,10e?16:e,wk===null)var a=!1;else{if(e=wk,wk=null,xk=0,K&6)throw Error(p(331));var o=K;for(K|=4,V=e.current;V!==null;){var c=V,d=c.child;if(V.flags&16){var g=c.deletions;if(g!==null){for(var _=0;_B()-fk?Kk(e,0):rk|=s),Dk(e,i)}function Yk(e,i){i===0&&(e.mode&1?(i=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):i=1);var s=R();e=ih(e,i),e!==null&&(Ac(e,i,s),Dk(e,s))}function uj(e){var i=e.memoizedState,s=0;i!==null&&(s=i.retryLane),Yk(e,s)}function bk(e,i){var s=0;switch(e.tag){case 13:var a=e.stateNode,o=e.memoizedState;o!==null&&(s=o.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(p(314))}a!==null&&a.delete(i),Yk(e,s)}var Vk;Vk=function(e,i,s){if(e!==null)if(e.memoizedProps!==i.pendingProps||Wf.current)dh=!0;else{if(!(e.lanes&s)&&!(i.flags&128))return dh=!1,yj(e,i,s);dh=!!(e.flags&131072)}else dh=!1,I&&i.flags&1048576&&ug(i,ng,i.index);switch(i.lanes=0,i.tag){case 2:var a=i.type;ij(e,i),e=i.pendingProps;var o=Yf(i,H.current);ch(i,s),o=Nh(null,i,a,e,o,s);var c=Sh();return i.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,Zf(a)?(c=!0,cg(i)):c=!1,i.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,kh(i),o.updater=Ei,i.stateNode=o,o._reactInternals=i,Ii(i,a,e,s),i=jj(null,i,a,!0,c,s)):(i.tag=0,I&&c&&vg(i),Xi(null,i,o,s),i=i.child),i;case 16:a=i.elementType;e:{switch(ij(e,i),e=i.pendingProps,o=a._init,a=o(a._payload),i.type=a,o=i.tag=Zk(a),e=Ci(a,e),o){case 0:i=cj(null,i,a,e,s);break e;case 1:i=hj(null,i,a,e,s);break e;case 11:i=Yi(null,i,a,e,s);break e;case 14:i=$i(null,i,a,Ci(a.type,e),s);break e}throw Error(p(306,a,""))}return i;case 0:return a=i.type,o=i.pendingProps,o=i.elementType===a?o:Ci(a,o),cj(e,i,a,o,s);case 1:return a=i.type,o=i.pendingProps,o=i.elementType===a?o:Ci(a,o),hj(e,i,a,o,s);case 3:e:{if(kj(i),e===null)throw Error(p(387));a=i.pendingProps,c=i.memoizedState,o=c.element,lh(e,i),qh(i,a,null,s);var d=i.memoizedState;if(a=d.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:d.cache,pendingSuspenseBoundaries:d.pendingSuspenseBoundaries,transitions:d.transitions},i.updateQueue.baseState=c,i.memoizedState=c,i.flags&256){o=Ji(Error(p(423)),i),i=lj(e,i,a,s,o);break e}else if(a!==o){o=Ji(Error(p(424)),i),i=lj(e,i,a,s,o);break e}else for(yg=Lf(i.stateNode.containerInfo.firstChild),xg=i,I=!0,zg=null,s=Vg(i,null,a,s),i.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(Ig(),a===o){i=Zi(e,i,s);break e}Xi(e,i,a,s)}i=i.child}return i;case 5:return Ah(i),e===null&&Eg(i),a=i.type,o=i.pendingProps,c=e!==null?e.memoizedProps:null,d=o.children,Ef(a,o)?d=null:c!==null&&Ef(a,c)&&(i.flags|=32),gj(e,i),Xi(e,i,d,s),i.child;case 6:return e===null&&Eg(i),null;case 13:return oj(e,i,s);case 4:return yh(i,i.stateNode.containerInfo),a=i.pendingProps,e===null?i.child=Ug(i,null,a,s):Xi(e,i,a,s),i.child;case 11:return a=i.type,o=i.pendingProps,o=i.elementType===a?o:Ci(a,o),Yi(e,i,a,o,s);case 7:return Xi(e,i,i.pendingProps,s),i.child;case 8:return Xi(e,i,i.pendingProps.children,s),i.child;case 12:return Xi(e,i,i.pendingProps.children,s),i.child;case 10:e:{if(a=i.type._context,o=i.pendingProps,c=i.memoizedProps,d=o.value,G(Wg,a._currentValue),a._currentValue=d,c!==null)if(He(c.value,d)){if(c.children===o.children&&!Wf.current){i=Zi(e,i,s);break e}}else for(c=i.child,c!==null&&(c.return=i);c!==null;){var g=c.dependencies;if(g!==null){d=c.child;for(var _=g.firstContext;_!==null;){if(_.context===a){if(c.tag===1){_=mh(-1,s&-s),_.tag=2;var b=c.updateQueue;if(b!==null){b=b.shared;var j=b.pending;j===null?_.next=_:(_.next=j.next,j.next=_),b.pending=_}}c.lanes|=s,_=c.alternate,_!==null&&(_.lanes|=s),bh(c.return,s,i),g.lanes|=s;break}_=_.next}}else if(c.tag===10)d=c.type===i.type?null:c.child;else if(c.tag===18){if(d=c.return,d===null)throw Error(p(341));d.lanes|=s,g=d.alternate,g!==null&&(g.lanes|=s),bh(d,s,i),d=c.sibling}else d=c.child;if(d!==null)d.return=c;else for(d=c;d!==null;){if(d===i){d=null;break}if(c=d.sibling,c!==null){c.return=d.return,d=c;break}d=d.return}c=d}Xi(e,i,o.children,s),i=i.child}return i;case 9:return o=i.type,a=i.pendingProps.children,ch(i,s),o=eh(o),a=a(o),i.flags|=1,Xi(e,i,a,s),i.child;case 14:return a=i.type,o=Ci(a,i.pendingProps),o=Ci(a.type,o),$i(e,i,a,o,s);case 15:return bj(e,i,i.type,i.pendingProps,s);case 17:return a=i.type,o=i.pendingProps,o=i.elementType===a?o:Ci(a,o),ij(e,i),i.tag=1,Zf(a)?(e=!0,cg(i)):e=!1,ch(i,s),Gi(i,a,o),Ii(i,a,o,s),jj(null,i,a,!0,e,s);case 19:return xj(e,i,s);case 22:return dj(e,i,s)}throw Error(p(156,i.tag))};function Fk(e,i){return ac(e,i)}function $k(e,i,s,a){this.tag=e,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(e,i,s,a){return new $k(e,i,s,a)}function aj(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Zk(e){if(typeof e=="function")return aj(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Da)return 11;if(e===Ga)return 14}return 2}function Pg(e,i){var s=e.alternate;return s===null?(s=Bg(e.tag,i,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s.alternate=e,e.alternate=s):(s.pendingProps=i,s.type=e.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=e.flags&14680064,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue,i=e.dependencies,s.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s}function Rg(e,i,s,a,o,c){var d=2;if(a=e,typeof e=="function")aj(e)&&(d=1);else if(typeof e=="string")d=5;else e:switch(e){case ya:return Tg(s.children,o,c,i);case za:d=8,o|=8;break;case Aa:return e=Bg(12,s,i,o|2),e.elementType=Aa,e.lanes=c,e;case Ea:return e=Bg(13,s,i,o),e.elementType=Ea,e.lanes=c,e;case Fa:return e=Bg(19,s,i,o),e.elementType=Fa,e.lanes=c,e;case Ia:return pj(s,o,c,i);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ba:d=10;break e;case Ca:d=9;break e;case Da:d=11;break e;case Ga:d=14;break e;case Ha:d=16,a=null;break e}throw Error(p(130,e==null?e:typeof e,""))}return i=Bg(d,s,i,o),i.elementType=e,i.type=a,i.lanes=c,i}function Tg(e,i,s,a){return e=Bg(7,e,a,i),e.lanes=s,e}function pj(e,i,s,a){return e=Bg(22,e,a,i),e.elementType=Ia,e.lanes=s,e.stateNode={isHidden:!1},e}function Qg(e,i,s){return e=Bg(6,e,null,i),e.lanes=s,e}function Sg(e,i,s){return i=Bg(4,e.children!==null?e.children:[],e.key,i),i.lanes=s,i.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},i}function al(e,i,s,a,o){this.tag=i,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=a,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function bl(e,i,s,a,o,c,d,g,_){return e=new al(e,i,s,g,_),i===1?(i=1,c===!0&&(i|=8)):i=0,c=Bg(3,null,null,i),e.current=c,c.stateNode=e,c.memoizedState={element:a,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},kh(c),e}function cl(e,i,s){var a=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(e){console.error(e)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports,createRoot,m=reactDomExports;createRoot=m.createRoot,m.hydrateRoot;const placeholder_search={en:"Search for a word English-Lao",la:"ຄົ້ນຫາຄຳສັບ ລາວ-ອັງກິດ"},words_not_found={en:"Words not found",la:"ບໍ່ພົບຄຳສັບ"},dictionary={placeholder_search,words_not_found},avocabLogo="avocab.svg";function HeaderBar({isEnglish:e,setSearchTerm:i}){return jsxRuntimeExports.jsxs("div",{className:"flex flex-col justify-center items-center py-4",children:[jsxRuntimeExports.jsxs("div",{className:"flex space-x-2 justify-center items-center text-center mb-4",children:[jsxRuntimeExports.jsx("img",{src:avocabLogo,alt:"avocab logo",className:"w-12 h-12 transform rotate-12"}),jsxRuntimeExports.jsx("h1",{className:"font-pops text-2xl transform -rotate-2 border-b-2 border-gray-800",children:"Avocab"})]}),jsxRuntimeExports.jsx("input",{onChange:s=>i(s.target.value),className:"w-100 text-gray-800 placeholder:text-gray-600 text-center border-black border-2 p-2.5 focus:outline-none focus:shadow-[2px_2px_0px_rgba(0,0,0,1)] bg-white-400 active:shadow-[2px_2px_0px_rgba(0,0,0,1)] rounded-full",placeholder:dictionary.placeholder_search[e?"en":"la"]})]})}/** + * @license lucide-react v0.439.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const toKebabCase=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),mergeClasses=(...e)=>e.filter((i,s,a)=>!!i&&a.indexOf(i)===s).join(" ");/** + * @license lucide-react v0.439.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var defaultAttributes={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.439.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Icon=reactExports.forwardRef(({color:e="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:a,className:o="",children:c,iconNode:d,...g},_)=>reactExports.createElement("svg",{ref:_,...defaultAttributes,width:i,height:i,stroke:e,strokeWidth:a?Number(s)*24/Number(i):s,className:mergeClasses("lucide",o),...g},[...d.map(([b,j])=>reactExports.createElement(b,j)),...Array.isArray(c)?c:[c]]));/** + * @license lucide-react v0.439.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const createLucideIcon=(e,i)=>{const s=reactExports.forwardRef(({className:a,...o},c)=>reactExports.createElement(Icon,{ref:c,iconNode:i,className:mergeClasses(`lucide-${toKebabCase(e)}`,a),...o}));return s.displayName=`${e}`,s};/** + * @license lucide-react v0.439.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Heart=createLucideIcon("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/** + * @license lucide-react v0.439.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Volume2=createLucideIcon("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]),LAOS_FLAG="https://hatscripts.github.io/circle-flags/flags/la.svg",UK_FLAG="https://hatscripts.github.io/circle-flags/flags/gb.svg",WordCard=({word:e,toggleFavorite:i})=>{const s=()=>{const o=window.speechSynthesis,c=()=>{const d=o.getVoices(),g=new SpeechSynthesisUtterance(e.english);g.lang="en-US",g.voice=d[5],g.volume=1,g.rate=1,o.speak(g)};o.getVoices().length===0?o.addEventListener("voiceschanged",c):c()},a=o=>o&&o[0].toUpperCase()+o.slice(1);return jsxRuntimeExports.jsx("div",{className:"p-4 bg-white border-2 border-black rounded-lg shadow-[4px_4px_0px_0px_rgba(0,0,0,1)] transform transition-transform hover:translate-x-1 hover:translate-y-1 hover:shadow-[2px_2px_0px_0px_rgba(0,0,0,1)] w-full",children:jsxRuntimeExports.jsxs("div",{className:"flex justify-between items-start",children:[jsxRuntimeExports.jsxs("div",{className:"flex-grow",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center space-x-2 mb-3",children:[jsxRuntimeExports.jsx("img",{src:UK_FLAG,alt:"UK Flag",className:"w-6 h-6 bg-red-500 rounded-full border border-black"}),jsxRuntimeExports.jsx("h2",{className:"text-lg font-bold",children:a(e.english)})]}),jsxRuntimeExports.jsxs("div",{className:"flex items-center space-x-2 mb-3",children:[jsxRuntimeExports.jsx("img",{src:LAOS_FLAG,alt:"UK Flag",className:"w-6 h-6 bg-blue-500 rounded-full border border-black"}),jsxRuntimeExports.jsx("p",{className:"text-md",children:e.lao})]}),jsxRuntimeExports.jsx("p",{className:"text-sm text-gray-600 mt-2 bg-gray-100 inline-block px-2 py-1 rounded-full border border-gray-300",children:e.type})]}),jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center justify-center space-y-4",children:[jsxRuntimeExports.jsx("button",{variant:"outline",size:"icon",className:"p-1 border-2 border-black rounded-lg bg-yellow-300 hover:bg-yellow-400 active:bg-yellow-500 transition-colors",onClick:s,children:jsxRuntimeExports.jsx(Volume2,{className:"h-7 w-7"})}),jsxRuntimeExports.jsx("button",{onClick:i,variant:"outline",className:`p-1 ${e.favorite?"bg-red-500":"bg-white"} border-2 border-black rounded-full w-10 h-10 flex items-center justify-center`,children:jsxRuntimeExports.jsx(Heart,{className:`h-5 w-5 ${e.favorite?"fill-white stroke-white":"fill-none stroke-black"}`})})]})]})})},scriptRel="modulepreload",assetsURL=function(e){return"/Avocab/"+e},seen={},__vitePreload=function(i,s,a){let o=Promise.resolve();if(s&&s.length>0){document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=(c==null?void 0:c.nonce)||(c==null?void 0:c.getAttribute("nonce"));o=Promise.all(s.map(g=>{if(g=assetsURL(g),g in seen)return;seen[g]=!0;const _=g.endsWith(".css"),b=_?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${b}`))return;const j=document.createElement("link");if(j.rel=_?"stylesheet":scriptRel,_||(j.as="script"),j.crossOrigin="",j.href=g,d&&j.setAttribute("nonce",d),document.head.appendChild(j),_)return new Promise((st,_e)=>{j.addEventListener("load",st),j.addEventListener("error",()=>_e(new Error(`Unable to preload CSS for ${g}`)))})}))}return o.then(()=>i()).catch(c=>{const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=c,window.dispatchEvent(d),!d.defaultPrevented)throw c})},resolveFetch$3=e=>{let i;return e?i=e:typeof fetch>"u"?i=(...s)=>__vitePreload(async()=>{const{default:a}=await Promise.resolve().then(()=>browser);return{default:a}},void 0).then(({default:a})=>a(...s)):i=fetch,(...s)=>i(...s)};class FunctionsError extends Error{constructor(i,s="FunctionsError",a){super(i),this.name=s,this.context=a}}class FunctionsFetchError extends FunctionsError{constructor(i){super("Failed to send a request to the Edge Function","FunctionsFetchError",i)}}class FunctionsRelayError extends FunctionsError{constructor(i){super("Relay Error invoking the Edge Function","FunctionsRelayError",i)}}class FunctionsHttpError extends FunctionsError{constructor(i){super("Edge Function returned a non-2xx status code","FunctionsHttpError",i)}}var FunctionRegion;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(FunctionRegion||(FunctionRegion={}));var __awaiter$7=function(e,i,s,a){function o(c){return c instanceof s?c:new s(function(d){d(c)})}return new(s||(s=Promise))(function(c,d){function g(j){try{b(a.next(j))}catch(st){d(st)}}function _(j){try{b(a.throw(j))}catch(st){d(st)}}function b(j){j.done?c(j.value):o(j.value).then(g,_)}b((a=a.apply(e,i||[])).next())})};class FunctionsClient{constructor(i,{headers:s={},customFetch:a,region:o=FunctionRegion.Any}={}){this.url=i,this.headers=s,this.region=o,this.fetch=resolveFetch$3(a)}setAuth(i){this.headers.Authorization=`Bearer ${i}`}invoke(i,s={}){var a;return __awaiter$7(this,void 0,void 0,function*(){try{const{headers:o,method:c,body:d}=s;let g={},{region:_}=s;_||(_=this.region),_&&_!=="any"&&(g["x-region"]=_);let b;d&&(o&&!Object.prototype.hasOwnProperty.call(o,"Content-Type")||!o)&&(typeof Blob<"u"&&d instanceof Blob||d instanceof ArrayBuffer?(g["Content-Type"]="application/octet-stream",b=d):typeof d=="string"?(g["Content-Type"]="text/plain",b=d):typeof FormData<"u"&&d instanceof FormData?b=d:(g["Content-Type"]="application/json",b=JSON.stringify(d)));const j=yield this.fetch(`${this.url}/${i}`,{method:c||"POST",headers:Object.assign(Object.assign(Object.assign({},g),this.headers),o),body:b}).catch(it=>{throw new FunctionsFetchError(it)}),st=j.headers.get("x-relay-error");if(st&&st==="true")throw new FunctionsRelayError(j);if(!j.ok)throw new FunctionsHttpError(j);let _e=((a=j.headers.get("Content-Type"))!==null&&a!==void 0?a:"text/plain").split(";")[0].trim(),at;return _e==="application/json"?at=yield j.json():_e==="application/octet-stream"?at=yield j.blob():_e==="text/event-stream"?at=j:_e==="multipart/form-data"?at=yield j.formData():at=yield j.text(),{data:at,error:null}}catch(o){return{data:null,error:o}}})}}var cjs={},PostgrestClient$2={},PostgrestQueryBuilder$2={},PostgrestFilterBuilder$2={},PostgrestTransformBuilder$2={},PostgrestBuilder$2={},getGlobal=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},globalObject=getGlobal();const fetch$1=globalObject.fetch,nodeFetch=globalObject.fetch.bind(globalObject),Headers$1=globalObject.Headers,Request=globalObject.Request,Response$1=globalObject.Response,browser=Object.freeze(Object.defineProperty({__proto__:null,Headers:Headers$1,Request,Response:Response$1,default:nodeFetch,fetch:fetch$1},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(browser);var PostgrestError$1={};Object.defineProperty(PostgrestError$1,"__esModule",{value:!0});class PostgrestError extends Error{constructor(i){super(i.message),this.name="PostgrestError",this.details=i.details,this.hint=i.hint,this.code=i.code}}PostgrestError$1.default=PostgrestError;var __importDefault$5=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(PostgrestBuilder$2,"__esModule",{value:!0});const node_fetch_1=__importDefault$5(require$$0),PostgrestError_1=__importDefault$5(PostgrestError$1);let PostgrestBuilder$1=class{constructor(i){this.shouldThrowOnError=!1,this.method=i.method,this.url=i.url,this.headers=i.headers,this.schema=i.schema,this.body=i.body,this.shouldThrowOnError=i.shouldThrowOnError,this.signal=i.signal,this.isMaybeSingle=i.isMaybeSingle,i.fetch?this.fetch=i.fetch:typeof fetch>"u"?this.fetch=node_fetch_1.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}then(i,s){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers["Accept-Profile"]=this.schema:this.headers["Content-Profile"]=this.schema),this.method!=="GET"&&this.method!=="HEAD"&&(this.headers["Content-Type"]="application/json");const a=this.fetch;let o=a(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async c=>{var d,g,_;let b=null,j=null,st=null,_e=c.status,at=c.statusText;if(c.ok){if(this.method!=="HEAD"){const et=await c.text();et===""||(this.headers.Accept==="text/csv"||this.headers.Accept&&this.headers.Accept.includes("application/vnd.pgrst.plan+text")?j=et:j=JSON.parse(et))}const rt=(d=this.headers.Prefer)===null||d===void 0?void 0:d.match(/count=(exact|planned|estimated)/),ct=(g=c.headers.get("content-range"))===null||g===void 0?void 0:g.split("/");rt&&ct&&ct.length>1&&(st=parseInt(ct[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(j)&&(j.length>1?(b={code:"PGRST116",details:`Results contain ${j.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},j=null,st=null,_e=406,at="Not Acceptable"):j.length===1?j=j[0]:j=null)}else{const rt=await c.text();try{b=JSON.parse(rt),Array.isArray(b)&&c.status===404&&(j=[],b=null,_e=200,at="OK")}catch{c.status===404&&rt===""?(_e=204,at="No Content"):b={message:rt}}if(b&&this.isMaybeSingle&&(!((_=b==null?void 0:b.details)===null||_===void 0)&&_.includes("0 rows"))&&(b=null,_e=200,at="OK"),b&&this.shouldThrowOnError)throw new PostgrestError_1.default(b)}return{error:b,data:j,count:st,status:_e,statusText:at}});return this.shouldThrowOnError||(o=o.catch(c=>{var d,g,_;return{error:{message:`${(d=c==null?void 0:c.name)!==null&&d!==void 0?d:"FetchError"}: ${c==null?void 0:c.message}`,details:`${(g=c==null?void 0:c.stack)!==null&&g!==void 0?g:""}`,hint:"",code:`${(_=c==null?void 0:c.code)!==null&&_!==void 0?_:""}`},data:null,count:null,status:0,statusText:""}})),o.then(i,s)}};PostgrestBuilder$2.default=PostgrestBuilder$1;var __importDefault$4=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(PostgrestTransformBuilder$2,"__esModule",{value:!0});const PostgrestBuilder_1$1=__importDefault$4(PostgrestBuilder$2);let PostgrestTransformBuilder$1=class extends PostgrestBuilder_1$1.default{select(i){let s=!1;const a=(i??"*").split("").map(o=>/\s/.test(o)&&!s?"":(o==='"'&&(s=!s),o)).join("");return this.url.searchParams.set("select",a),this.headers.Prefer&&(this.headers.Prefer+=","),this.headers.Prefer+="return=representation",this}order(i,{ascending:s=!0,nullsFirst:a,foreignTable:o,referencedTable:c=o}={}){const d=c?`${c}.order`:"order",g=this.url.searchParams.get(d);return this.url.searchParams.set(d,`${g?`${g},`:""}${i}.${s?"asc":"desc"}${a===void 0?"":a?".nullsfirst":".nullslast"}`),this}limit(i,{foreignTable:s,referencedTable:a=s}={}){const o=typeof a>"u"?"limit":`${a}.limit`;return this.url.searchParams.set(o,`${i}`),this}range(i,s,{foreignTable:a,referencedTable:o=a}={}){const c=typeof o>"u"?"offset":`${o}.offset`,d=typeof o>"u"?"limit":`${o}.limit`;return this.url.searchParams.set(c,`${i}`),this.url.searchParams.set(d,`${s-i+1}`),this}abortSignal(i){return this.signal=i,this}single(){return this.headers.Accept="application/vnd.pgrst.object+json",this}maybeSingle(){return this.method==="GET"?this.headers.Accept="application/json":this.headers.Accept="application/vnd.pgrst.object+json",this.isMaybeSingle=!0,this}csv(){return this.headers.Accept="text/csv",this}geojson(){return this.headers.Accept="application/geo+json",this}explain({analyze:i=!1,verbose:s=!1,settings:a=!1,buffers:o=!1,wal:c=!1,format:d="text"}={}){var g;const _=[i?"analyze":null,s?"verbose":null,a?"settings":null,o?"buffers":null,c?"wal":null].filter(Boolean).join("|"),b=(g=this.headers.Accept)!==null&&g!==void 0?g:"application/json";return this.headers.Accept=`application/vnd.pgrst.plan+${d}; for="${b}"; options=${_};`,d==="json"?this:this}rollback(){var i;return((i=this.headers.Prefer)!==null&&i!==void 0?i:"").trim().length>0?this.headers.Prefer+=",tx=rollback":this.headers.Prefer="tx=rollback",this}returns(){return this}};PostgrestTransformBuilder$2.default=PostgrestTransformBuilder$1;var __importDefault$3=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(PostgrestFilterBuilder$2,"__esModule",{value:!0});const PostgrestTransformBuilder_1$1=__importDefault$3(PostgrestTransformBuilder$2);let PostgrestFilterBuilder$1=class extends PostgrestTransformBuilder_1$1.default{eq(i,s){return this.url.searchParams.append(i,`eq.${s}`),this}neq(i,s){return this.url.searchParams.append(i,`neq.${s}`),this}gt(i,s){return this.url.searchParams.append(i,`gt.${s}`),this}gte(i,s){return this.url.searchParams.append(i,`gte.${s}`),this}lt(i,s){return this.url.searchParams.append(i,`lt.${s}`),this}lte(i,s){return this.url.searchParams.append(i,`lte.${s}`),this}like(i,s){return this.url.searchParams.append(i,`like.${s}`),this}likeAllOf(i,s){return this.url.searchParams.append(i,`like(all).{${s.join(",")}}`),this}likeAnyOf(i,s){return this.url.searchParams.append(i,`like(any).{${s.join(",")}}`),this}ilike(i,s){return this.url.searchParams.append(i,`ilike.${s}`),this}ilikeAllOf(i,s){return this.url.searchParams.append(i,`ilike(all).{${s.join(",")}}`),this}ilikeAnyOf(i,s){return this.url.searchParams.append(i,`ilike(any).{${s.join(",")}}`),this}is(i,s){return this.url.searchParams.append(i,`is.${s}`),this}in(i,s){const a=Array.from(new Set(s)).map(o=>typeof o=="string"&&new RegExp("[,()]").test(o)?`"${o}"`:`${o}`).join(",");return this.url.searchParams.append(i,`in.(${a})`),this}contains(i,s){return typeof s=="string"?this.url.searchParams.append(i,`cs.${s}`):Array.isArray(s)?this.url.searchParams.append(i,`cs.{${s.join(",")}}`):this.url.searchParams.append(i,`cs.${JSON.stringify(s)}`),this}containedBy(i,s){return typeof s=="string"?this.url.searchParams.append(i,`cd.${s}`):Array.isArray(s)?this.url.searchParams.append(i,`cd.{${s.join(",")}}`):this.url.searchParams.append(i,`cd.${JSON.stringify(s)}`),this}rangeGt(i,s){return this.url.searchParams.append(i,`sr.${s}`),this}rangeGte(i,s){return this.url.searchParams.append(i,`nxl.${s}`),this}rangeLt(i,s){return this.url.searchParams.append(i,`sl.${s}`),this}rangeLte(i,s){return this.url.searchParams.append(i,`nxr.${s}`),this}rangeAdjacent(i,s){return this.url.searchParams.append(i,`adj.${s}`),this}overlaps(i,s){return typeof s=="string"?this.url.searchParams.append(i,`ov.${s}`):this.url.searchParams.append(i,`ov.{${s.join(",")}}`),this}textSearch(i,s,{config:a,type:o}={}){let c="";o==="plain"?c="pl":o==="phrase"?c="ph":o==="websearch"&&(c="w");const d=a===void 0?"":`(${a})`;return this.url.searchParams.append(i,`${c}fts${d}.${s}`),this}match(i){return Object.entries(i).forEach(([s,a])=>{this.url.searchParams.append(s,`eq.${a}`)}),this}not(i,s,a){return this.url.searchParams.append(i,`not.${s}.${a}`),this}or(i,{foreignTable:s,referencedTable:a=s}={}){const o=a?`${a}.or`:"or";return this.url.searchParams.append(o,`(${i})`),this}filter(i,s,a){return this.url.searchParams.append(i,`${s}.${a}`),this}};PostgrestFilterBuilder$2.default=PostgrestFilterBuilder$1;var __importDefault$2=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(PostgrestQueryBuilder$2,"__esModule",{value:!0});const PostgrestFilterBuilder_1$2=__importDefault$2(PostgrestFilterBuilder$2);let PostgrestQueryBuilder$1=class{constructor(i,{headers:s={},schema:a,fetch:o}){this.url=i,this.headers=s,this.schema=a,this.fetch=o}select(i,{head:s=!1,count:a}={}){const o=s?"HEAD":"GET";let c=!1;const d=(i??"*").split("").map(g=>/\s/.test(g)&&!c?"":(g==='"'&&(c=!c),g)).join("");return this.url.searchParams.set("select",d),a&&(this.headers.Prefer=`count=${a}`),new PostgrestFilterBuilder_1$2.default({method:o,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}insert(i,{count:s,defaultToNull:a=!0}={}){const o="POST",c=[];if(this.headers.Prefer&&c.push(this.headers.Prefer),s&&c.push(`count=${s}`),a||c.push("missing=default"),this.headers.Prefer=c.join(","),Array.isArray(i)){const d=i.reduce((g,_)=>g.concat(Object.keys(_)),[]);if(d.length>0){const g=[...new Set(d)].map(_=>`"${_}"`);this.url.searchParams.set("columns",g.join(","))}}return new PostgrestFilterBuilder_1$2.default({method:o,url:this.url,headers:this.headers,schema:this.schema,body:i,fetch:this.fetch,allowEmpty:!1})}upsert(i,{onConflict:s,ignoreDuplicates:a=!1,count:o,defaultToNull:c=!0}={}){const d="POST",g=[`resolution=${a?"ignore":"merge"}-duplicates`];if(s!==void 0&&this.url.searchParams.set("on_conflict",s),this.headers.Prefer&&g.push(this.headers.Prefer),o&&g.push(`count=${o}`),c||g.push("missing=default"),this.headers.Prefer=g.join(","),Array.isArray(i)){const _=i.reduce((b,j)=>b.concat(Object.keys(j)),[]);if(_.length>0){const b=[...new Set(_)].map(j=>`"${j}"`);this.url.searchParams.set("columns",b.join(","))}}return new PostgrestFilterBuilder_1$2.default({method:d,url:this.url,headers:this.headers,schema:this.schema,body:i,fetch:this.fetch,allowEmpty:!1})}update(i,{count:s}={}){const a="PATCH",o=[];return this.headers.Prefer&&o.push(this.headers.Prefer),s&&o.push(`count=${s}`),this.headers.Prefer=o.join(","),new PostgrestFilterBuilder_1$2.default({method:a,url:this.url,headers:this.headers,schema:this.schema,body:i,fetch:this.fetch,allowEmpty:!1})}delete({count:i}={}){const s="DELETE",a=[];return i&&a.push(`count=${i}`),this.headers.Prefer&&a.unshift(this.headers.Prefer),this.headers.Prefer=a.join(","),new PostgrestFilterBuilder_1$2.default({method:s,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}};PostgrestQueryBuilder$2.default=PostgrestQueryBuilder$1;var constants={},version$4={};Object.defineProperty(version$4,"__esModule",{value:!0});version$4.version=void 0;version$4.version="0.0.0-automated";Object.defineProperty(constants,"__esModule",{value:!0});constants.DEFAULT_HEADERS=void 0;const version_1=version$4;constants.DEFAULT_HEADERS={"X-Client-Info":`postgrest-js/${version_1.version}`};var __importDefault$1=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(PostgrestClient$2,"__esModule",{value:!0});const PostgrestQueryBuilder_1$1=__importDefault$1(PostgrestQueryBuilder$2),PostgrestFilterBuilder_1$1=__importDefault$1(PostgrestFilterBuilder$2),constants_1=constants;let PostgrestClient$1=class er{constructor(i,{headers:s={},schema:a,fetch:o}={}){this.url=i,this.headers=Object.assign(Object.assign({},constants_1.DEFAULT_HEADERS),s),this.schemaName=a,this.fetch=o}from(i){const s=new URL(`${this.url}/${i}`);return new PostgrestQueryBuilder_1$1.default(s,{headers:Object.assign({},this.headers),schema:this.schemaName,fetch:this.fetch})}schema(i){return new er(this.url,{headers:this.headers,schema:i,fetch:this.fetch})}rpc(i,s={},{head:a=!1,get:o=!1,count:c}={}){let d;const g=new URL(`${this.url}/rpc/${i}`);let _;a||o?(d=a?"HEAD":"GET",Object.entries(s).filter(([j,st])=>st!==void 0).map(([j,st])=>[j,Array.isArray(st)?`{${st.join(",")}}`:`${st}`]).forEach(([j,st])=>{g.searchParams.append(j,st)})):(d="POST",_=s);const b=Object.assign({},this.headers);return c&&(b.Prefer=`count=${c}`),new PostgrestFilterBuilder_1$1.default({method:d,url:g,headers:b,schema:this.schemaName,body:_,fetch:this.fetch,allowEmpty:!1})}};PostgrestClient$2.default=PostgrestClient$1;var __importDefault=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(cjs,"__esModule",{value:!0});cjs.PostgrestBuilder=cjs.PostgrestTransformBuilder=cjs.PostgrestFilterBuilder=cjs.PostgrestQueryBuilder=cjs.PostgrestClient=void 0;const PostgrestClient_1=__importDefault(PostgrestClient$2);cjs.PostgrestClient=PostgrestClient_1.default;const PostgrestQueryBuilder_1=__importDefault(PostgrestQueryBuilder$2);cjs.PostgrestQueryBuilder=PostgrestQueryBuilder_1.default;const PostgrestFilterBuilder_1=__importDefault(PostgrestFilterBuilder$2);cjs.PostgrestFilterBuilder=PostgrestFilterBuilder_1.default;const PostgrestTransformBuilder_1=__importDefault(PostgrestTransformBuilder$2);cjs.PostgrestTransformBuilder=PostgrestTransformBuilder_1.default;const PostgrestBuilder_1=__importDefault(PostgrestBuilder$2);cjs.PostgrestBuilder=PostgrestBuilder_1.default;var _default=cjs.default={PostgrestClient:PostgrestClient_1.default,PostgrestQueryBuilder:PostgrestQueryBuilder_1.default,PostgrestFilterBuilder:PostgrestFilterBuilder_1.default,PostgrestTransformBuilder:PostgrestTransformBuilder_1.default,PostgrestBuilder:PostgrestBuilder_1.default};const{PostgrestClient,PostgrestQueryBuilder,PostgrestFilterBuilder,PostgrestTransformBuilder,PostgrestBuilder}=_default,version$3="2.10.2",DEFAULT_HEADERS$3={"X-Client-Info":`realtime-js/${version$3}`},VSN="1.0.0",DEFAULT_TIMEOUT=1e4,WS_CLOSE_NORMAL=1e3;var SOCKET_STATES;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(SOCKET_STATES||(SOCKET_STATES={}));var CHANNEL_STATES;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(CHANNEL_STATES||(CHANNEL_STATES={}));var CHANNEL_EVENTS;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(CHANNEL_EVENTS||(CHANNEL_EVENTS={}));var TRANSPORTS;(function(e){e.websocket="websocket"})(TRANSPORTS||(TRANSPORTS={}));var CONNECTION_STATE;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(CONNECTION_STATE||(CONNECTION_STATE={}));class Serializer{constructor(){this.HEADER_LENGTH=1}decode(i,s){return i.constructor===ArrayBuffer?s(this._binaryDecode(i)):s(typeof i=="string"?JSON.parse(i):{})}_binaryDecode(i){const s=new DataView(i),a=new TextDecoder;return this._decodeBroadcast(i,s,a)}_decodeBroadcast(i,s,a){const o=s.getUint8(1),c=s.getUint8(2);let d=this.HEADER_LENGTH+2;const g=a.decode(i.slice(d,d+o));d=d+o;const _=a.decode(i.slice(d,d+c));d=d+c;const b=JSON.parse(a.decode(i.slice(d,i.byteLength)));return{ref:null,topic:g,event:_,payload:b}}}class Timer{constructor(i,s){this.callback=i,this.timerCalc=s,this.timer=void 0,this.tries=0,this.callback=i,this.timerCalc=s}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var PostgresTypes;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(PostgresTypes||(PostgresTypes={}));const convertChangeData=(e,i,s={})=>{var a;const o=(a=s.skipTypes)!==null&&a!==void 0?a:[];return Object.keys(i).reduce((c,d)=>(c[d]=convertColumn(d,e,i,o),c),{})},convertColumn=(e,i,s,a)=>{const o=i.find(g=>g.name===e),c=o==null?void 0:o.type,d=s[e];return c&&!a.includes(c)?convertCell(c,d):noop$1(d)},convertCell=(e,i)=>{if(e.charAt(0)==="_"){const s=e.slice(1,e.length);return toArray(i,s)}switch(e){case PostgresTypes.bool:return toBoolean(i);case PostgresTypes.float4:case PostgresTypes.float8:case PostgresTypes.int2:case PostgresTypes.int4:case PostgresTypes.int8:case PostgresTypes.numeric:case PostgresTypes.oid:return toNumber(i);case PostgresTypes.json:case PostgresTypes.jsonb:return toJson(i);case PostgresTypes.timestamp:return toTimestampString(i);case PostgresTypes.abstime:case PostgresTypes.date:case PostgresTypes.daterange:case PostgresTypes.int4range:case PostgresTypes.int8range:case PostgresTypes.money:case PostgresTypes.reltime:case PostgresTypes.text:case PostgresTypes.time:case PostgresTypes.timestamptz:case PostgresTypes.timetz:case PostgresTypes.tsrange:case PostgresTypes.tstzrange:return noop$1(i);default:return noop$1(i)}},noop$1=e=>e,toBoolean=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},toNumber=e=>{if(typeof e=="string"){const i=parseFloat(e);if(!Number.isNaN(i))return i}return e},toJson=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(i){return console.log(`JSON parse error: ${i}`),e}return e},toArray=(e,i)=>{if(typeof e!="string")return e;const s=e.length-1,a=e[s];if(e[0]==="{"&&a==="}"){let c;const d=e.slice(1,s);try{c=JSON.parse("["+d+"]")}catch{c=d?d.split(","):[]}return c.map(g=>convertCell(i,g))}return e},toTimestampString=e=>typeof e=="string"?e.replace(" ","T"):e,httpEndpointURL=e=>{let i=e;return i=i.replace(/^ws/i,"http"),i=i.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),i.replace(/\/+$/,"")};class Push{constructor(i,s,a={},o=DEFAULT_TIMEOUT){this.channel=i,this.event=s,this.payload=a,this.timeout=o,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(i){this.timeout=i,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(i){this.payload=Object.assign(Object.assign({},this.payload),i)}receive(i,s){var a;return this._hasReceived(i)&&s((a=this.receivedResp)===null||a===void 0?void 0:a.response),this.recHooks.push({status:i,callback:s}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const i=s=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=s,this._matchReceive(s)};this.channel._on(this.refEvent,{},i),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(i,s){this.refEvent&&this.channel._trigger(this.refEvent,{status:i,response:s})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:i,response:s}){this.recHooks.filter(a=>a.status===i).forEach(a=>a.callback(s))}_hasReceived(i){return this.receivedResp&&this.receivedResp.status===i}}var REALTIME_PRESENCE_LISTEN_EVENTS;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(REALTIME_PRESENCE_LISTEN_EVENTS||(REALTIME_PRESENCE_LISTEN_EVENTS={}));class RealtimePresence{constructor(i,s){this.channel=i,this.state={},this.pendingDiffs=[],this.joinRef=null,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const a=(s==null?void 0:s.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(a.state,{},o=>{const{onJoin:c,onLeave:d,onSync:g}=this.caller;this.joinRef=this.channel._joinRef(),this.state=RealtimePresence.syncState(this.state,o,c,d),this.pendingDiffs.forEach(_=>{this.state=RealtimePresence.syncDiff(this.state,_,c,d)}),this.pendingDiffs=[],g()}),this.channel._on(a.diff,{},o=>{const{onJoin:c,onLeave:d,onSync:g}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(o):(this.state=RealtimePresence.syncDiff(this.state,o,c,d),g())}),this.onJoin((o,c,d)=>{this.channel._trigger("presence",{event:"join",key:o,currentPresences:c,newPresences:d})}),this.onLeave((o,c,d)=>{this.channel._trigger("presence",{event:"leave",key:o,currentPresences:c,leftPresences:d})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(i,s,a,o){const c=this.cloneDeep(i),d=this.transformState(s),g={},_={};return this.map(c,(b,j)=>{d[b]||(_[b]=j)}),this.map(d,(b,j)=>{const st=c[b];if(st){const _e=j.map(ct=>ct.presence_ref),at=st.map(ct=>ct.presence_ref),it=j.filter(ct=>at.indexOf(ct.presence_ref)<0),rt=st.filter(ct=>_e.indexOf(ct.presence_ref)<0);it.length>0&&(g[b]=it),rt.length>0&&(_[b]=rt)}else g[b]=j}),this.syncDiff(c,{joins:g,leaves:_},a,o)}static syncDiff(i,s,a,o){const{joins:c,leaves:d}={joins:this.transformState(s.joins),leaves:this.transformState(s.leaves)};return a||(a=()=>{}),o||(o=()=>{}),this.map(c,(g,_)=>{var b;const j=(b=i[g])!==null&&b!==void 0?b:[];if(i[g]=this.cloneDeep(_),j.length>0){const st=i[g].map(at=>at.presence_ref),_e=j.filter(at=>st.indexOf(at.presence_ref)<0);i[g].unshift(..._e)}a(g,j,_)}),this.map(d,(g,_)=>{let b=i[g];if(!b)return;const j=_.map(st=>st.presence_ref);b=b.filter(st=>j.indexOf(st.presence_ref)<0),i[g]=b,o(g,b,_),b.length===0&&delete i[g]}),i}static map(i,s){return Object.getOwnPropertyNames(i).map(a=>s(a,i[a]))}static transformState(i){return i=this.cloneDeep(i),Object.getOwnPropertyNames(i).reduce((s,a)=>{const o=i[a];return"metas"in o?s[a]=o.metas.map(c=>(c.presence_ref=c.phx_ref,delete c.phx_ref,delete c.phx_ref_prev,c)):s[a]=o,s},{})}static cloneDeep(i){return JSON.parse(JSON.stringify(i))}onJoin(i){this.caller.onJoin=i}onLeave(i){this.caller.onLeave=i}onSync(i){this.caller.onSync=i}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var REALTIME_POSTGRES_CHANGES_LISTEN_EVENT;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(REALTIME_POSTGRES_CHANGES_LISTEN_EVENT||(REALTIME_POSTGRES_CHANGES_LISTEN_EVENT={}));var REALTIME_LISTEN_TYPES;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes"})(REALTIME_LISTEN_TYPES||(REALTIME_LISTEN_TYPES={}));var REALTIME_SUBSCRIBE_STATES;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(REALTIME_SUBSCRIBE_STATES||(REALTIME_SUBSCRIBE_STATES={}));class RealtimeChannel{constructor(i,s={config:{}},a){this.topic=i,this.params=s,this.socket=a,this.bindings={},this.state=CHANNEL_STATES.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=i.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:""},private:!1},s.config),this.timeout=this.socket.timeout,this.joinPush=new Push(this,CHANNEL_EVENTS.join,this.params,this.timeout),this.rejoinTimer=new Timer(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=CHANNEL_STATES.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(o=>o.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=CHANNEL_STATES.closed,this.socket._remove(this)}),this._onError(o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=CHANNEL_STATES.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=CHANNEL_STATES.errored,this.rejoinTimer.scheduleTimeout())}),this._on(CHANNEL_EVENTS.reply,{},(o,c)=>{this._trigger(this._replyEventName(c),o)}),this.presence=new RealtimePresence(this),this.broadcastEndpointURL=httpEndpointURL(this.socket.endPoint)+"/api/broadcast"}subscribe(i,s=this.timeout){var a,o;if(this.socket.isConnected()||this.socket.connect(),this.joinedOnce)throw"tried to subscribe multiple times. 'subscribe' can only be called a single time per channel instance";{const{config:{broadcast:c,presence:d,private:g}}=this.params;this._onError(j=>i&&i("CHANNEL_ERROR",j)),this._onClose(()=>i&&i("CLOSED"));const _={},b={broadcast:c,presence:d,postgres_changes:(o=(a=this.bindings.postgres_changes)===null||a===void 0?void 0:a.map(j=>j.filter))!==null&&o!==void 0?o:[],private:g};this.socket.accessToken&&(_.access_token=this.socket.accessToken),this.updateJoinPayload(Object.assign({config:b},_)),this.joinedOnce=!0,this._rejoin(s),this.joinPush.receive("ok",({postgres_changes:j})=>{var st;if(this.socket.accessToken&&this.socket.setAuth(this.socket.accessToken),j===void 0){i&&i("SUBSCRIBED");return}else{const _e=this.bindings.postgres_changes,at=(st=_e==null?void 0:_e.length)!==null&&st!==void 0?st:0,it=[];for(let rt=0;rt{i&&i("CHANNEL_ERROR",new Error(JSON.stringify(Object.values(j).join(", ")||"error")))}).receive("timeout",()=>{i&&i("TIMED_OUT")})}return this}presenceState(){return this.presence.state}async track(i,s={}){return await this.send({type:"presence",event:"track",payload:i},s.timeout||this.timeout)}async untrack(i={}){return await this.send({type:"presence",event:"untrack"},i)}on(i,s,a){return this._on(i,s,a)}async send(i,s={}){var a,o;if(!this._canPush()&&i.type==="broadcast"){const{event:c,payload:d}=i,g={method:"POST",headers:{Authorization:this.socket.accessToken?`Bearer ${this.socket.accessToken}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:c,payload:d}]})};try{const _=await this._fetchWithTimeout(this.broadcastEndpointURL,g,(a=s.timeout)!==null&&a!==void 0?a:this.timeout);return await((o=_.body)===null||o===void 0?void 0:o.cancel()),_.ok?"ok":"error"}catch(_){return _.name==="AbortError"?"timed out":"error"}}else return new Promise(c=>{var d,g,_;const b=this._push(i.type,i,s.timeout||this.timeout);i.type==="broadcast"&&!(!((_=(g=(d=this.params)===null||d===void 0?void 0:d.config)===null||g===void 0?void 0:g.broadcast)===null||_===void 0)&&_.ack)&&c("ok"),b.receive("ok",()=>c("ok")),b.receive("error",()=>c("error")),b.receive("timeout",()=>c("timed out"))})}updateJoinPayload(i){this.joinPush.updatePayload(i)}unsubscribe(i=this.timeout){this.state=CHANNEL_STATES.leaving;const s=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(CHANNEL_EVENTS.close,"leave",this._joinRef())};return this.rejoinTimer.reset(),this.joinPush.destroy(),new Promise(a=>{const o=new Push(this,CHANNEL_EVENTS.leave,{},i);o.receive("ok",()=>{s(),a("ok")}).receive("timeout",()=>{s(),a("timed out")}).receive("error",()=>{a("error")}),o.send(),this._canPush()||o.trigger("ok",{})})}async _fetchWithTimeout(i,s,a){const o=new AbortController,c=setTimeout(()=>o.abort(),a),d=await this.socket.fetch(i,Object.assign(Object.assign({},s),{signal:o.signal}));return clearTimeout(c),d}_push(i,s,a=this.timeout){if(!this.joinedOnce)throw`tried to push '${i}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let o=new Push(this,i,s,a);return this._canPush()?o.send():(o.startTimeout(),this.pushBuffer.push(o)),o}_onMessage(i,s,a){return s}_isMember(i){return this.topic===i}_joinRef(){return this.joinPush.ref}_trigger(i,s,a){var o,c;const d=i.toLocaleLowerCase(),{close:g,error:_,leave:b,join:j}=CHANNEL_EVENTS;if(a&&[g,_,b,j].indexOf(d)>=0&&a!==this._joinRef())return;let _e=this._onMessage(d,s,a);if(s&&!_e)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(d)?(o=this.bindings.postgres_changes)===null||o===void 0||o.filter(at=>{var it,rt,ct;return((it=at.filter)===null||it===void 0?void 0:it.event)==="*"||((ct=(rt=at.filter)===null||rt===void 0?void 0:rt.event)===null||ct===void 0?void 0:ct.toLocaleLowerCase())===d}).map(at=>at.callback(_e,a)):(c=this.bindings[d])===null||c===void 0||c.filter(at=>{var it,rt,ct,et,tt,$;if(["broadcast","presence","postgres_changes"].includes(d))if("id"in at){const nt=at.id,ut=(it=at.filter)===null||it===void 0?void 0:it.event;return nt&&((rt=s.ids)===null||rt===void 0?void 0:rt.includes(nt))&&(ut==="*"||(ut==null?void 0:ut.toLocaleLowerCase())===((ct=s.data)===null||ct===void 0?void 0:ct.type.toLocaleLowerCase()))}else{const nt=(tt=(et=at==null?void 0:at.filter)===null||et===void 0?void 0:et.event)===null||tt===void 0?void 0:tt.toLocaleLowerCase();return nt==="*"||nt===(($=s==null?void 0:s.event)===null||$===void 0?void 0:$.toLocaleLowerCase())}else return at.type.toLocaleLowerCase()===d}).map(at=>{if(typeof _e=="object"&&"ids"in _e){const it=_e.data,{schema:rt,table:ct,commit_timestamp:et,type:tt,errors:$}=it;_e=Object.assign(Object.assign({},{schema:rt,table:ct,commit_timestamp:et,eventType:tt,new:{},old:{},errors:$}),this._getPayloadRecords(it))}at.callback(_e,a)})}_isClosed(){return this.state===CHANNEL_STATES.closed}_isJoined(){return this.state===CHANNEL_STATES.joined}_isJoining(){return this.state===CHANNEL_STATES.joining}_isLeaving(){return this.state===CHANNEL_STATES.leaving}_replyEventName(i){return`chan_reply_${i}`}_on(i,s,a){const o=i.toLocaleLowerCase(),c={type:o,filter:s,callback:a};return this.bindings[o]?this.bindings[o].push(c):this.bindings[o]=[c],this}_off(i,s){const a=i.toLocaleLowerCase();return this.bindings[a]=this.bindings[a].filter(o=>{var c;return!(((c=o.type)===null||c===void 0?void 0:c.toLocaleLowerCase())===a&&RealtimeChannel.isEqual(o.filter,s))}),this}static isEqual(i,s){if(Object.keys(i).length!==Object.keys(s).length)return!1;for(const a in i)if(i[a]!==s[a])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(i){this._on(CHANNEL_EVENTS.close,{},i)}_onError(i){this._on(CHANNEL_EVENTS.error,{},s=>i(s))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(i=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=CHANNEL_STATES.joining,this.joinPush.resend(i))}_getPayloadRecords(i){const s={new:{},old:{}};return(i.type==="INSERT"||i.type==="UPDATE")&&(s.new=convertChangeData(i.columns,i.record)),(i.type==="UPDATE"||i.type==="DELETE")&&(s.old=convertChangeData(i.columns,i.old_record)),s}}const noop=()=>{},NATIVE_WEBSOCKET_AVAILABLE=typeof WebSocket<"u";class RealtimeClient{constructor(i,s){var a;this.accessToken=null,this.apiKey=null,this.channels=[],this.endPoint="",this.httpEndpoint="",this.headers=DEFAULT_HEADERS$3,this.params={},this.timeout=DEFAULT_TIMEOUT,this.heartbeatIntervalMs=3e4,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.ref=0,this.logger=noop,this.conn=null,this.sendBuffer=[],this.serializer=new Serializer,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this._resolveFetch=c=>{let d;return c?d=c:typeof fetch>"u"?d=(...g)=>__vitePreload(async()=>{const{default:_}=await Promise.resolve().then(()=>browser);return{default:_}},void 0).then(({default:_})=>_(...g)):d=fetch,(...g)=>d(...g)},this.endPoint=`${i}/${TRANSPORTS.websocket}`,this.httpEndpoint=httpEndpointURL(i),s!=null&&s.transport?this.transport=s.transport:this.transport=null,s!=null&&s.params&&(this.params=s.params),s!=null&&s.headers&&(this.headers=Object.assign(Object.assign({},this.headers),s.headers)),s!=null&&s.timeout&&(this.timeout=s.timeout),s!=null&&s.logger&&(this.logger=s.logger),s!=null&&s.heartbeatIntervalMs&&(this.heartbeatIntervalMs=s.heartbeatIntervalMs);const o=(a=s==null?void 0:s.params)===null||a===void 0?void 0:a.apikey;o&&(this.accessToken=o,this.apiKey=o),this.reconnectAfterMs=s!=null&&s.reconnectAfterMs?s.reconnectAfterMs:c=>[1e3,2e3,5e3,1e4][c-1]||1e4,this.encode=s!=null&&s.encode?s.encode:(c,d)=>d(JSON.stringify(c)),this.decode=s!=null&&s.decode?s.decode:this.serializer.decode.bind(this.serializer),this.reconnectTimer=new Timer(async()=>{this.disconnect(),this.connect()},this.reconnectAfterMs),this.fetch=this._resolveFetch(s==null?void 0:s.fetch)}connect(){if(!this.conn){if(this.transport){this.conn=new this.transport(this._endPointURL(),void 0,{headers:this.headers});return}if(NATIVE_WEBSOCKET_AVAILABLE){this.conn=new WebSocket(this._endPointURL()),this.setupConnection();return}this.conn=new WSWebSocketDummy(this._endPointURL(),void 0,{close:()=>{this.conn=null}}),__vitePreload(async()=>{const{default:i}=await import("./browser-9eYVWJy3.js").then(s=>s.b);return{default:i}},[]).then(({default:i})=>{this.conn=new i(this._endPointURL(),void 0,{headers:this.headers}),this.setupConnection()})}}disconnect(i,s){this.conn&&(this.conn.onclose=function(){},i?this.conn.close(i,s??""):this.conn.close(),this.conn=null,this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.reset())}getChannels(){return this.channels}async removeChannel(i){const s=await i.unsubscribe();return this.channels.length===0&&this.disconnect(),s}async removeAllChannels(){const i=await Promise.all(this.channels.map(s=>s.unsubscribe()));return this.disconnect(),i}log(i,s,a){this.logger(i,s,a)}connectionState(){switch(this.conn&&this.conn.readyState){case SOCKET_STATES.connecting:return CONNECTION_STATE.Connecting;case SOCKET_STATES.open:return CONNECTION_STATE.Open;case SOCKET_STATES.closing:return CONNECTION_STATE.Closing;default:return CONNECTION_STATE.Closed}}isConnected(){return this.connectionState()===CONNECTION_STATE.Open}channel(i,s={config:{}}){const a=new RealtimeChannel(`realtime:${i}`,s,this);return this.channels.push(a),a}push(i){const{topic:s,event:a,payload:o,ref:c}=i,d=()=>{this.encode(i,g=>{var _;(_=this.conn)===null||_===void 0||_.send(g)})};this.log("push",`${s} ${a} (${c})`,o),this.isConnected()?d():this.sendBuffer.push(d)}setAuth(i){this.accessToken=i,this.channels.forEach(s=>{i&&s.updateJoinPayload({access_token:i}),s.joinedOnce&&s._isJoined()&&s._push(CHANNEL_EVENTS.access_token,{access_token:i})})}_makeRef(){let i=this.ref+1;return i===this.ref?this.ref=0:this.ref=i,this.ref.toString()}_leaveOpenTopic(i){let s=this.channels.find(a=>a.topic===i&&(a._isJoined()||a._isJoining()));s&&(this.log("transport",`leaving duplicate topic "${i}"`),s.unsubscribe())}_remove(i){this.channels=this.channels.filter(s=>s._joinRef()!==i._joinRef())}setupConnection(){this.conn&&(this.conn.binaryType="arraybuffer",this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=i=>this._onConnError(i),this.conn.onmessage=i=>this._onConnMessage(i),this.conn.onclose=i=>this._onConnClose(i))}_endPointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:VSN}))}_onConnMessage(i){this.decode(i.data,s=>{let{topic:a,event:o,payload:c,ref:d}=s;(d&&d===this.pendingHeartbeatRef||o===(c==null?void 0:c.type))&&(this.pendingHeartbeatRef=null),this.log("receive",`${c.status||""} ${a} ${o} ${d&&"("+d+")"||""}`,c),this.channels.filter(g=>g._isMember(a)).forEach(g=>g._trigger(o,c,d)),this.stateChangeCallbacks.message.forEach(g=>g(s))})}_onConnOpen(){this.log("transport",`connected to ${this._endPointURL()}`),this._flushSendBuffer(),this.reconnectTimer.reset(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this._sendHeartbeat(),this.heartbeatIntervalMs),this.stateChangeCallbacks.open.forEach(i=>i())}_onConnClose(i){this.log("transport","close",i),this._triggerChanError(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(s=>s(i))}_onConnError(i){this.log("transport",i.message),this._triggerChanError(),this.stateChangeCallbacks.error.forEach(s=>s(i))}_triggerChanError(){this.channels.forEach(i=>i._trigger(CHANNEL_EVENTS.error))}_appendParams(i,s){if(Object.keys(s).length===0)return i;const a=i.match(/\?/)?"&":"?",o=new URLSearchParams(s);return`${i}${a}${o}`}_flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(i=>i()),this.sendBuffer=[])}_sendHeartbeat(){var i;if(this.isConnected()){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection"),(i=this.conn)===null||i===void 0||i.close(WS_CLOSE_NORMAL,"hearbeat timeout");return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.setAuth(this.accessToken)}}}class WSWebSocketDummy{constructor(i,s,a){this.binaryType="arraybuffer",this.onclose=()=>{},this.onerror=()=>{},this.onmessage=()=>{},this.onopen=()=>{},this.readyState=SOCKET_STATES.connecting,this.send=()=>{},this.url=null,this.url=i,this.close=a.close}}class StorageError extends Error{constructor(i){super(i),this.__isStorageError=!0,this.name="StorageError"}}function isStorageError(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class StorageApiError extends StorageError{constructor(i,s){super(i),this.name="StorageApiError",this.status=s}toJSON(){return{name:this.name,message:this.message,status:this.status}}}class StorageUnknownError extends StorageError{constructor(i,s){super(i),this.name="StorageUnknownError",this.originalError=s}}var __awaiter$6=function(e,i,s,a){function o(c){return c instanceof s?c:new s(function(d){d(c)})}return new(s||(s=Promise))(function(c,d){function g(j){try{b(a.next(j))}catch(st){d(st)}}function _(j){try{b(a.throw(j))}catch(st){d(st)}}function b(j){j.done?c(j.value):o(j.value).then(g,_)}b((a=a.apply(e,i||[])).next())})};const resolveFetch$2=e=>{let i;return e?i=e:typeof fetch>"u"?i=(...s)=>__vitePreload(async()=>{const{default:a}=await Promise.resolve().then(()=>browser);return{default:a}},void 0).then(({default:a})=>a(...s)):i=fetch,(...s)=>i(...s)},resolveResponse=()=>__awaiter$6(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield __vitePreload(()=>Promise.resolve().then(()=>browser),void 0)).Response:Response}),recursiveToCamel=e=>{if(Array.isArray(e))return e.map(s=>recursiveToCamel(s));if(typeof e=="function"||e!==Object(e))return e;const i={};return Object.entries(e).forEach(([s,a])=>{const o=s.replace(/([-_][a-z])/gi,c=>c.toUpperCase().replace(/[-_]/g,""));i[o]=recursiveToCamel(a)}),i};var __awaiter$5=function(e,i,s,a){function o(c){return c instanceof s?c:new s(function(d){d(c)})}return new(s||(s=Promise))(function(c,d){function g(j){try{b(a.next(j))}catch(st){d(st)}}function _(j){try{b(a.throw(j))}catch(st){d(st)}}function b(j){j.done?c(j.value):o(j.value).then(g,_)}b((a=a.apply(e,i||[])).next())})};const _getErrorMessage$1=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),handleError$1=(e,i,s)=>__awaiter$5(void 0,void 0,void 0,function*(){const a=yield resolveResponse();e instanceof a&&!(s!=null&&s.noResolveJson)?e.json().then(o=>{i(new StorageApiError(_getErrorMessage$1(o),e.status||500))}).catch(o=>{i(new StorageUnknownError(_getErrorMessage$1(o),o))}):i(new StorageUnknownError(_getErrorMessage$1(e),e))}),_getRequestParams$1=(e,i,s,a)=>{const o={method:e,headers:(i==null?void 0:i.headers)||{}};return e==="GET"?o:(o.headers=Object.assign({"Content-Type":"application/json"},i==null?void 0:i.headers),a&&(o.body=JSON.stringify(a)),Object.assign(Object.assign({},o),s))};function _handleRequest$1(e,i,s,a,o,c){return __awaiter$5(this,void 0,void 0,function*(){return new Promise((d,g)=>{e(s,_getRequestParams$1(i,a,o,c)).then(_=>{if(!_.ok)throw _;return a!=null&&a.noResolveJson?_:_.json()}).then(_=>d(_)).catch(_=>handleError$1(_,g,a))})})}function get(e,i,s,a){return __awaiter$5(this,void 0,void 0,function*(){return _handleRequest$1(e,"GET",i,s,a)})}function post(e,i,s,a,o){return __awaiter$5(this,void 0,void 0,function*(){return _handleRequest$1(e,"POST",i,a,o,s)})}function put(e,i,s,a,o){return __awaiter$5(this,void 0,void 0,function*(){return _handleRequest$1(e,"PUT",i,a,o,s)})}function head(e,i,s,a){return __awaiter$5(this,void 0,void 0,function*(){return _handleRequest$1(e,"HEAD",i,Object.assign(Object.assign({},s),{noResolveJson:!0}),a)})}function remove(e,i,s,a,o){return __awaiter$5(this,void 0,void 0,function*(){return _handleRequest$1(e,"DELETE",i,a,o,s)})}var __awaiter$4=function(e,i,s,a){function o(c){return c instanceof s?c:new s(function(d){d(c)})}return new(s||(s=Promise))(function(c,d){function g(j){try{b(a.next(j))}catch(st){d(st)}}function _(j){try{b(a.throw(j))}catch(st){d(st)}}function b(j){j.done?c(j.value):o(j.value).then(g,_)}b((a=a.apply(e,i||[])).next())})};const DEFAULT_SEARCH_OPTIONS={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},DEFAULT_FILE_OPTIONS={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class StorageFileApi{constructor(i,s={},a,o){this.url=i,this.headers=s,this.bucketId=a,this.fetch=resolveFetch$2(o)}uploadOrUpdate(i,s,a,o){return __awaiter$4(this,void 0,void 0,function*(){try{let c;const d=Object.assign(Object.assign({},DEFAULT_FILE_OPTIONS),o);let g=Object.assign(Object.assign({},this.headers),i==="POST"&&{"x-upsert":String(d.upsert)});const _=d.metadata;typeof Blob<"u"&&a instanceof Blob?(c=new FormData,c.append("cacheControl",d.cacheControl),c.append("",a),_&&c.append("metadata",this.encodeMetadata(_))):typeof FormData<"u"&&a instanceof FormData?(c=a,c.append("cacheControl",d.cacheControl),_&&c.append("metadata",this.encodeMetadata(_))):(c=a,g["cache-control"]=`max-age=${d.cacheControl}`,g["content-type"]=d.contentType,_&&(g["x-metadata"]=this.toBase64(this.encodeMetadata(_)))),o!=null&&o.headers&&(g=Object.assign(Object.assign({},g),o.headers));const b=this._removeEmptyFolders(s),j=this._getFinalPath(b),st=yield this.fetch(`${this.url}/object/${j}`,Object.assign({method:i,body:c,headers:g},d!=null&&d.duplex?{duplex:d.duplex}:{})),_e=yield st.json();return st.ok?{data:{path:b,id:_e.Id,fullPath:_e.Key},error:null}:{data:null,error:_e}}catch(c){if(isStorageError(c))return{data:null,error:c};throw c}})}upload(i,s,a){return __awaiter$4(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",i,s,a)})}uploadToSignedUrl(i,s,a,o){return __awaiter$4(this,void 0,void 0,function*(){const c=this._removeEmptyFolders(i),d=this._getFinalPath(c),g=new URL(this.url+`/object/upload/sign/${d}`);g.searchParams.set("token",s);try{let _;const b=Object.assign({upsert:DEFAULT_FILE_OPTIONS.upsert},o),j=Object.assign(Object.assign({},this.headers),{"x-upsert":String(b.upsert)});typeof Blob<"u"&&a instanceof Blob?(_=new FormData,_.append("cacheControl",b.cacheControl),_.append("",a)):typeof FormData<"u"&&a instanceof FormData?(_=a,_.append("cacheControl",b.cacheControl)):(_=a,j["cache-control"]=`max-age=${b.cacheControl}`,j["content-type"]=b.contentType);const st=yield this.fetch(g.toString(),{method:"PUT",body:_,headers:j}),_e=yield st.json();return st.ok?{data:{path:c,fullPath:_e.Key},error:null}:{data:null,error:_e}}catch(_){if(isStorageError(_))return{data:null,error:_};throw _}})}createSignedUploadUrl(i,s){return __awaiter$4(this,void 0,void 0,function*(){try{let a=this._getFinalPath(i);const o=Object.assign({},this.headers);s!=null&&s.upsert&&(o["x-upsert"]="true");const c=yield post(this.fetch,`${this.url}/object/upload/sign/${a}`,{},{headers:o}),d=new URL(this.url+c.url),g=d.searchParams.get("token");if(!g)throw new StorageError("No token returned by API");return{data:{signedUrl:d.toString(),path:i,token:g},error:null}}catch(a){if(isStorageError(a))return{data:null,error:a};throw a}})}update(i,s,a){return __awaiter$4(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",i,s,a)})}move(i,s,a){return __awaiter$4(this,void 0,void 0,function*(){try{return{data:yield post(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:i,destinationKey:s,destinationBucket:a==null?void 0:a.destinationBucket},{headers:this.headers}),error:null}}catch(o){if(isStorageError(o))return{data:null,error:o};throw o}})}copy(i,s,a){return __awaiter$4(this,void 0,void 0,function*(){try{return{data:{path:(yield post(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:i,destinationKey:s,destinationBucket:a==null?void 0:a.destinationBucket},{headers:this.headers})).Key},error:null}}catch(o){if(isStorageError(o))return{data:null,error:o};throw o}})}createSignedUrl(i,s,a){return __awaiter$4(this,void 0,void 0,function*(){try{let o=this._getFinalPath(i),c=yield post(this.fetch,`${this.url}/object/sign/${o}`,Object.assign({expiresIn:s},a!=null&&a.transform?{transform:a.transform}:{}),{headers:this.headers});const d=a!=null&&a.download?`&download=${a.download===!0?"":a.download}`:"";return c={signedUrl:encodeURI(`${this.url}${c.signedURL}${d}`)},{data:c,error:null}}catch(o){if(isStorageError(o))return{data:null,error:o};throw o}})}createSignedUrls(i,s,a){return __awaiter$4(this,void 0,void 0,function*(){try{const o=yield post(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:s,paths:i},{headers:this.headers}),c=a!=null&&a.download?`&download=${a.download===!0?"":a.download}`:"";return{data:o.map(d=>Object.assign(Object.assign({},d),{signedUrl:d.signedURL?encodeURI(`${this.url}${d.signedURL}${c}`):null})),error:null}}catch(o){if(isStorageError(o))return{data:null,error:o};throw o}})}download(i,s){return __awaiter$4(this,void 0,void 0,function*(){const o=typeof(s==null?void 0:s.transform)<"u"?"render/image/authenticated":"object",c=this.transformOptsToQueryString((s==null?void 0:s.transform)||{}),d=c?`?${c}`:"";try{const g=this._getFinalPath(i);return{data:yield(yield get(this.fetch,`${this.url}/${o}/${g}${d}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(g){if(isStorageError(g))return{data:null,error:g};throw g}})}info(i){return __awaiter$4(this,void 0,void 0,function*(){const s=this._getFinalPath(i);try{const a=yield get(this.fetch,`${this.url}/object/info/${s}`,{headers:this.headers});return{data:recursiveToCamel(a),error:null}}catch(a){if(isStorageError(a))return{data:null,error:a};throw a}})}exists(i){return __awaiter$4(this,void 0,void 0,function*(){const s=this._getFinalPath(i);try{return yield head(this.fetch,`${this.url}/object/${s}`,{headers:this.headers}),{data:!0,error:null}}catch(a){if(isStorageError(a)&&a instanceof StorageUnknownError){const o=a.originalError;if([400,404].includes(o==null?void 0:o.status))return{data:!1,error:a}}throw a}})}getPublicUrl(i,s){const a=this._getFinalPath(i),o=[],c=s!=null&&s.download?`download=${s.download===!0?"":s.download}`:"";c!==""&&o.push(c);const g=typeof(s==null?void 0:s.transform)<"u"?"render/image":"object",_=this.transformOptsToQueryString((s==null?void 0:s.transform)||{});_!==""&&o.push(_);let b=o.join("&");return b!==""&&(b=`?${b}`),{data:{publicUrl:encodeURI(`${this.url}/${g}/public/${a}${b}`)}}}remove(i){return __awaiter$4(this,void 0,void 0,function*(){try{return{data:yield remove(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:i},{headers:this.headers}),error:null}}catch(s){if(isStorageError(s))return{data:null,error:s};throw s}})}list(i,s,a){return __awaiter$4(this,void 0,void 0,function*(){try{const o=Object.assign(Object.assign(Object.assign({},DEFAULT_SEARCH_OPTIONS),s),{prefix:i||""});return{data:yield post(this.fetch,`${this.url}/object/list/${this.bucketId}`,o,{headers:this.headers},a),error:null}}catch(o){if(isStorageError(o))return{data:null,error:o};throw o}})}encodeMetadata(i){return JSON.stringify(i)}toBase64(i){return typeof Buffer<"u"?Buffer.from(i).toString("base64"):btoa(i)}_getFinalPath(i){return`${this.bucketId}/${i}`}_removeEmptyFolders(i){return i.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(i){const s=[];return i.width&&s.push(`width=${i.width}`),i.height&&s.push(`height=${i.height}`),i.resize&&s.push(`resize=${i.resize}`),i.format&&s.push(`format=${i.format}`),i.quality&&s.push(`quality=${i.quality}`),s.join("&")}}const version$2="2.7.0",DEFAULT_HEADERS$2={"X-Client-Info":`storage-js/${version$2}`};var __awaiter$3=function(e,i,s,a){function o(c){return c instanceof s?c:new s(function(d){d(c)})}return new(s||(s=Promise))(function(c,d){function g(j){try{b(a.next(j))}catch(st){d(st)}}function _(j){try{b(a.throw(j))}catch(st){d(st)}}function b(j){j.done?c(j.value):o(j.value).then(g,_)}b((a=a.apply(e,i||[])).next())})};class StorageBucketApi{constructor(i,s={},a){this.url=i,this.headers=Object.assign(Object.assign({},DEFAULT_HEADERS$2),s),this.fetch=resolveFetch$2(a)}listBuckets(){return __awaiter$3(this,void 0,void 0,function*(){try{return{data:yield get(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(i){if(isStorageError(i))return{data:null,error:i};throw i}})}getBucket(i){return __awaiter$3(this,void 0,void 0,function*(){try{return{data:yield get(this.fetch,`${this.url}/bucket/${i}`,{headers:this.headers}),error:null}}catch(s){if(isStorageError(s))return{data:null,error:s};throw s}})}createBucket(i,s={public:!1}){return __awaiter$3(this,void 0,void 0,function*(){try{return{data:yield post(this.fetch,`${this.url}/bucket`,{id:i,name:i,public:s.public,file_size_limit:s.fileSizeLimit,allowed_mime_types:s.allowedMimeTypes},{headers:this.headers}),error:null}}catch(a){if(isStorageError(a))return{data:null,error:a};throw a}})}updateBucket(i,s){return __awaiter$3(this,void 0,void 0,function*(){try{return{data:yield put(this.fetch,`${this.url}/bucket/${i}`,{id:i,name:i,public:s.public,file_size_limit:s.fileSizeLimit,allowed_mime_types:s.allowedMimeTypes},{headers:this.headers}),error:null}}catch(a){if(isStorageError(a))return{data:null,error:a};throw a}})}emptyBucket(i){return __awaiter$3(this,void 0,void 0,function*(){try{return{data:yield post(this.fetch,`${this.url}/bucket/${i}/empty`,{},{headers:this.headers}),error:null}}catch(s){if(isStorageError(s))return{data:null,error:s};throw s}})}deleteBucket(i){return __awaiter$3(this,void 0,void 0,function*(){try{return{data:yield remove(this.fetch,`${this.url}/bucket/${i}`,{},{headers:this.headers}),error:null}}catch(s){if(isStorageError(s))return{data:null,error:s};throw s}})}}class StorageClient extends StorageBucketApi{constructor(i,s={},a){super(i,s,a)}from(i){return new StorageFileApi(this.url,this.headers,i,this.fetch)}}const version$1="2.45.3";let JS_ENV="";typeof Deno<"u"?JS_ENV="deno":typeof document<"u"?JS_ENV="web":typeof navigator<"u"&&navigator.product==="ReactNative"?JS_ENV="react-native":JS_ENV="node";const DEFAULT_HEADERS$1={"X-Client-Info":`supabase-js-${JS_ENV}/${version$1}`},DEFAULT_GLOBAL_OPTIONS={headers:DEFAULT_HEADERS$1},DEFAULT_DB_OPTIONS={schema:"public"},DEFAULT_AUTH_OPTIONS={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},DEFAULT_REALTIME_OPTIONS={};var __awaiter$2=function(e,i,s,a){function o(c){return c instanceof s?c:new s(function(d){d(c)})}return new(s||(s=Promise))(function(c,d){function g(j){try{b(a.next(j))}catch(st){d(st)}}function _(j){try{b(a.throw(j))}catch(st){d(st)}}function b(j){j.done?c(j.value):o(j.value).then(g,_)}b((a=a.apply(e,i||[])).next())})};const resolveFetch$1=e=>{let i;return e?i=e:typeof fetch>"u"?i=nodeFetch:i=fetch,(...s)=>i(...s)},resolveHeadersConstructor=()=>typeof Headers>"u"?Headers$1:Headers,fetchWithAuth=(e,i,s)=>{const a=resolveFetch$1(s),o=resolveHeadersConstructor();return(c,d)=>__awaiter$2(void 0,void 0,void 0,function*(){var g;const _=(g=yield i())!==null&&g!==void 0?g:e;let b=new o(d==null?void 0:d.headers);return b.has("apikey")||b.set("apikey",e),b.has("Authorization")||b.set("Authorization",`Bearer ${_}`),a(c,Object.assign(Object.assign({},d),{headers:b}))})};var __awaiter$1=function(e,i,s,a){function o(c){return c instanceof s?c:new s(function(d){d(c)})}return new(s||(s=Promise))(function(c,d){function g(j){try{b(a.next(j))}catch(st){d(st)}}function _(j){try{b(a.throw(j))}catch(st){d(st)}}function b(j){j.done?c(j.value):o(j.value).then(g,_)}b((a=a.apply(e,i||[])).next())})};function stripTrailingSlash(e){return e.replace(/\/$/,"")}function applySettingDefaults(e,i){const{db:s,auth:a,realtime:o,global:c}=e,{db:d,auth:g,realtime:_,global:b}=i,j={db:Object.assign(Object.assign({},d),s),auth:Object.assign(Object.assign({},g),a),realtime:Object.assign(Object.assign({},_),o),global:Object.assign(Object.assign({},b),c),accessToken:()=>__awaiter$1(this,void 0,void 0,function*(){return""})};return e.accessToken?j.accessToken=e.accessToken:delete j.accessToken,j}const version="2.65.0",GOTRUE_URL="http://localhost:9999",STORAGE_KEY="supabase.auth.token",DEFAULT_HEADERS={"X-Client-Info":`gotrue-js/${version}`},EXPIRY_MARGIN=10,API_VERSION_HEADER_NAME="X-Supabase-Api-Version",API_VERSIONS={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}};function expiresAt(e){return Math.round(Date.now()/1e3)+e}function uuid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const i=Math.random()*16|0;return(e=="x"?i:i&3|8).toString(16)})}const isBrowser=()=>typeof document<"u",localStorageWriteTests={tested:!1,writable:!1},supportsLocalStorage=()=>{if(!isBrowser())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(localStorageWriteTests.tested)return localStorageWriteTests.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),localStorageWriteTests.tested=!0,localStorageWriteTests.writable=!0}catch{localStorageWriteTests.tested=!0,localStorageWriteTests.writable=!1}return localStorageWriteTests.writable};function parseParametersFromURL(e){const i={},s=new URL(e);if(s.hash&&s.hash[0]==="#")try{new URLSearchParams(s.hash.substring(1)).forEach((o,c)=>{i[c]=o})}catch{}return s.searchParams.forEach((a,o)=>{i[o]=a}),i}const resolveFetch=e=>{let i;return e?i=e:typeof fetch>"u"?i=(...s)=>__vitePreload(async()=>{const{default:a}=await Promise.resolve().then(()=>browser);return{default:a}},void 0).then(({default:a})=>a(...s)):i=fetch,(...s)=>i(...s)},looksLikeFetchResponse=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",setItemAsync=async(e,i,s)=>{await e.setItem(i,JSON.stringify(s))},getItemAsync=async(e,i)=>{const s=await e.getItem(i);if(!s)return null;try{return JSON.parse(s)}catch{return s}},removeItemAsync=async(e,i)=>{await e.removeItem(i)};function decodeBase64URL(e){const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let s="",a,o,c,d,g,_,b,j=0;for(e=e.replace("-","+").replace("_","/");j>4,o=(g&15)<<4|_>>2,c=(_&3)<<6|b,s=s+String.fromCharCode(a),_!=64&&o!=0&&(s=s+String.fromCharCode(o)),b!=64&&c!=0&&(s=s+String.fromCharCode(c));return s}class Deferred{constructor(){this.promise=new Deferred.promiseConstructor((i,s)=>{this.resolve=i,this.reject=s})}}Deferred.promiseConstructor=Promise;function decodeJWTPayload(e){const i=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}=?$|[a-z0-9_-]{2}(==)?$)$/i,s=e.split(".");if(s.length!==3)throw new Error("JWT is not valid: not a JWT structure");if(!i.test(s[1]))throw new Error("JWT is not valid: payload is not in base64url format");const a=s[1];return JSON.parse(decodeBase64URL(a))}async function sleep(e){return await new Promise(i=>{setTimeout(()=>i(null),e)})}function retryable(e,i){return new Promise((a,o)=>{(async()=>{for(let c=0;c<1/0;c++)try{const d=await e(c);if(!i(c,null,d)){a(d);return}}catch(d){if(!i(c,d)){o(d);return}}})()})}function dec2hex(e){return("0"+e.toString(16)).substr(-2)}function generatePKCEVerifier(){const i=new Uint32Array(56);if(typeof crypto>"u"){const s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",a=s.length;let o="";for(let c=0;c<56;c++)o+=s.charAt(Math.floor(Math.random()*a));return o}return crypto.getRandomValues(i),Array.from(i,dec2hex).join("")}async function sha256(e){const s=new TextEncoder().encode(e),a=await crypto.subtle.digest("SHA-256",s),o=new Uint8Array(a);return Array.from(o).map(c=>String.fromCharCode(c)).join("")}function base64urlencode(e){return btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function generatePKCEChallenge(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const s=await sha256(e);return base64urlencode(s)}async function getCodeChallengeAndMethod(e,i,s=!1){const a=generatePKCEVerifier();let o=a;s&&(o+="/PASSWORD_RECOVERY"),await setItemAsync(e,`${i}-code-verifier`,o);const c=await generatePKCEChallenge(a);return[c,a===c?"plain":"s256"]}const API_VERSION_REGEX=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function parseResponseAPIVersion(e){const i=e.headers.get(API_VERSION_HEADER_NAME);if(!i||!i.match(API_VERSION_REGEX))return null;try{return new Date(`${i}T00:00:00.0Z`)}catch{return null}}class AuthError extends Error{constructor(i,s,a){super(i),this.__isAuthError=!0,this.name="AuthError",this.status=s,this.code=a}}function isAuthError(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class AuthApiError extends AuthError{constructor(i,s,a){super(i,s,a),this.name="AuthApiError",this.status=s,this.code=a}}function isAuthApiError(e){return isAuthError(e)&&e.name==="AuthApiError"}class AuthUnknownError extends AuthError{constructor(i,s){super(i),this.name="AuthUnknownError",this.originalError=s}}class CustomAuthError extends AuthError{constructor(i,s,a,o){super(i,a,o),this.name=s,this.status=a}}class AuthSessionMissingError extends CustomAuthError{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function isAuthSessionMissingError(e){return isAuthError(e)&&e.name==="AuthSessionMissingError"}class AuthInvalidTokenResponseError extends CustomAuthError{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class AuthInvalidCredentialsError extends CustomAuthError{constructor(i){super(i,"AuthInvalidCredentialsError",400,void 0)}}class AuthImplicitGrantRedirectError extends CustomAuthError{constructor(i,s=null){super(i,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=s}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class AuthPKCEGrantCodeExchangeError extends CustomAuthError{constructor(i,s=null){super(i,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=s}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class AuthRetryableFetchError extends CustomAuthError{constructor(i,s){super(i,"AuthRetryableFetchError",s,void 0)}}function isAuthRetryableFetchError(e){return isAuthError(e)&&e.name==="AuthRetryableFetchError"}class AuthWeakPasswordError extends CustomAuthError{constructor(i,s,a){super(i,"AuthWeakPasswordError",s,"weak_password"),this.reasons=a}}var __rest$1=function(e,i){var s={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&i.indexOf(a)<0&&(s[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,a=Object.getOwnPropertySymbols(e);oe.msg||e.message||e.error_description||e.error||JSON.stringify(e),NETWORK_ERROR_CODES=[502,503,504];async function handleError(e){var i;if(!looksLikeFetchResponse(e))throw new AuthRetryableFetchError(_getErrorMessage(e),0);if(NETWORK_ERROR_CODES.includes(e.status))throw new AuthRetryableFetchError(_getErrorMessage(e),e.status);let s;try{s=await e.json()}catch(c){throw new AuthUnknownError(_getErrorMessage(c),c)}let a;const o=parseResponseAPIVersion(e);if(o&&o.getTime()>=API_VERSIONS["2024-01-01"].timestamp&&typeof s=="object"&&s&&typeof s.code=="string"?a=s.code:typeof s=="object"&&s&&typeof s.error_code=="string"&&(a=s.error_code),a){if(a==="weak_password")throw new AuthWeakPasswordError(_getErrorMessage(s),e.status,((i=s.weak_password)===null||i===void 0?void 0:i.reasons)||[]);if(a==="session_not_found")throw new AuthSessionMissingError}else if(typeof s=="object"&&s&&typeof s.weak_password=="object"&&s.weak_password&&Array.isArray(s.weak_password.reasons)&&s.weak_password.reasons.length&&s.weak_password.reasons.reduce((c,d)=>c&&typeof d=="string",!0))throw new AuthWeakPasswordError(_getErrorMessage(s),e.status,s.weak_password.reasons);throw new AuthApiError(_getErrorMessage(s),e.status||500,a)}const _getRequestParams=(e,i,s,a)=>{const o={method:e,headers:(i==null?void 0:i.headers)||{}};return e==="GET"?o:(o.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},i==null?void 0:i.headers),o.body=JSON.stringify(a),Object.assign(Object.assign({},o),s))};async function _request(e,i,s,a){var o;const c=Object.assign({},a==null?void 0:a.headers);c[API_VERSION_HEADER_NAME]||(c[API_VERSION_HEADER_NAME]=API_VERSIONS["2024-01-01"].name),a!=null&&a.jwt&&(c.Authorization=`Bearer ${a.jwt}`);const d=(o=a==null?void 0:a.query)!==null&&o!==void 0?o:{};a!=null&&a.redirectTo&&(d.redirect_to=a.redirectTo);const g=Object.keys(d).length?"?"+new URLSearchParams(d).toString():"",_=await _handleRequest(e,i,s+g,{headers:c,noResolveJson:a==null?void 0:a.noResolveJson},{},a==null?void 0:a.body);return a!=null&&a.xform?a==null?void 0:a.xform(_):{data:Object.assign({},_),error:null}}async function _handleRequest(e,i,s,a,o,c){const d=_getRequestParams(i,a,o,c);let g;try{g=await e(s,Object.assign({},d))}catch(_){throw console.error(_),new AuthRetryableFetchError(_getErrorMessage(_),0)}if(g.ok||await handleError(g),a!=null&&a.noResolveJson)return g;try{return await g.json()}catch(_){await handleError(_)}}function _sessionResponse(e){var i;let s=null;hasSession(e)&&(s=Object.assign({},e),e.expires_at||(s.expires_at=expiresAt(e.expires_in)));const a=(i=e.user)!==null&&i!==void 0?i:e;return{data:{session:s,user:a},error:null}}function _sessionResponsePassword(e){const i=_sessionResponse(e);return!i.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((s,a)=>s&&typeof a=="string",!0)&&(i.data.weak_password=e.weak_password),i}function _userResponse(e){var i;return{data:{user:(i=e.user)!==null&&i!==void 0?i:e},error:null}}function _ssoResponse(e){return{data:e,error:null}}function _generateLinkResponse(e){const{action_link:i,email_otp:s,hashed_token:a,redirect_to:o,verification_type:c}=e,d=__rest$1(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),g={action_link:i,email_otp:s,hashed_token:a,redirect_to:o,verification_type:c},_=Object.assign({},d);return{data:{properties:g,user:_},error:null}}function _noResolveJsonResponse(e){return e}function hasSession(e){return e.access_token&&e.refresh_token&&e.expires_in}var __rest=function(e,i){var s={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&i.indexOf(a)<0&&(s[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,a=Object.getOwnPropertySymbols(e);o0&&(at.forEach(it=>{const rt=parseInt(it.split(";")[0].split("=")[1].substring(0,1)),ct=JSON.parse(it.split(";")[1].split("=")[1]);b[`${ct}Page`]=rt}),b.total=parseInt(_e)),{data:Object.assign(Object.assign({},st),b),error:null}}catch(b){if(isAuthError(b))return{data:{users:[]},error:b};throw b}}async getUserById(i){try{return await _request(this.fetch,"GET",`${this.url}/admin/users/${i}`,{headers:this.headers,xform:_userResponse})}catch(s){if(isAuthError(s))return{data:{user:null},error:s};throw s}}async updateUserById(i,s){try{return await _request(this.fetch,"PUT",`${this.url}/admin/users/${i}`,{body:s,headers:this.headers,xform:_userResponse})}catch(a){if(isAuthError(a))return{data:{user:null},error:a};throw a}}async deleteUser(i,s=!1){try{return await _request(this.fetch,"DELETE",`${this.url}/admin/users/${i}`,{headers:this.headers,body:{should_soft_delete:s},xform:_userResponse})}catch(a){if(isAuthError(a))return{data:{user:null},error:a};throw a}}async _listFactors(i){try{const{data:s,error:a}=await _request(this.fetch,"GET",`${this.url}/admin/users/${i.userId}/factors`,{headers:this.headers,xform:o=>({data:{factors:o},error:null})});return{data:s,error:a}}catch(s){if(isAuthError(s))return{data:null,error:s};throw s}}async _deleteFactor(i){try{return{data:await _request(this.fetch,"DELETE",`${this.url}/admin/users/${i.userId}/factors/${i.id}`,{headers:this.headers}),error:null}}catch(s){if(isAuthError(s))return{data:null,error:s};throw s}}}const localStorageAdapter={getItem:e=>supportsLocalStorage()?globalThis.localStorage.getItem(e):null,setItem:(e,i)=>{supportsLocalStorage()&&globalThis.localStorage.setItem(e,i)},removeItem:e=>{supportsLocalStorage()&&globalThis.localStorage.removeItem(e)}};function memoryLocalStorageAdapter(e={}){return{getItem:i=>e[i]||null,setItem:(i,s)=>{e[i]=s},removeItem:i=>{delete e[i]}}}function polyfillGlobalThis(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}const internals={debug:!!(globalThis&&supportsLocalStorage()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class LockAcquireTimeoutError extends Error{constructor(i){super(i),this.isAcquireTimeout=!0}}class NavigatorLockAcquireTimeoutError extends LockAcquireTimeoutError{}async function navigatorLock(e,i,s){internals.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,i);const a=new globalThis.AbortController;return i>0&&setTimeout(()=>{a.abort(),internals.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},i),await globalThis.navigator.locks.request(e,i===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:a.signal},async o=>{if(o){internals.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,o.name);try{return await s()}finally{internals.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,o.name)}}else{if(i===0)throw internals.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new NavigatorLockAcquireTimeoutError(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(internals.debug)try{const c=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(c,null," "))}catch(c){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",c)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await s()}})}polyfillGlobalThis();const DEFAULT_OPTIONS={url:GOTRUE_URL,storageKey:STORAGE_KEY,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:DEFAULT_HEADERS,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1},AUTO_REFRESH_TICK_DURATION=30*1e3,AUTO_REFRESH_TICK_THRESHOLD=3;async function lockNoOp(e,i,s){return await s()}class GoTrueClient{constructor(i){var s,a;this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=GoTrueClient.nextInstanceID,GoTrueClient.nextInstanceID+=1,this.instanceID>0&&isBrowser()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");const o=Object.assign(Object.assign({},DEFAULT_OPTIONS),i);if(this.logDebugMessages=!!o.debug,typeof o.debug=="function"&&(this.logger=o.debug),this.persistSession=o.persistSession,this.storageKey=o.storageKey,this.autoRefreshToken=o.autoRefreshToken,this.admin=new GoTrueAdminApi({url:o.url,headers:o.headers,fetch:o.fetch}),this.url=o.url,this.headers=o.headers,this.fetch=resolveFetch(o.fetch),this.lock=o.lock||lockNoOp,this.detectSessionInUrl=o.detectSessionInUrl,this.flowType=o.flowType,this.hasCustomAuthorizationHeader=o.hasCustomAuthorizationHeader,o.lock?this.lock=o.lock:isBrowser()&&(!((s=globalThis==null?void 0:globalThis.navigator)===null||s===void 0)&&s.locks)?this.lock=navigatorLock:this.lock=lockNoOp,this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this)},this.persistSession?o.storage?this.storage=o.storage:supportsLocalStorage()?this.storage=localStorageAdapter:(this.memoryStorage={},this.storage=memoryLocalStorageAdapter(this.memoryStorage)):(this.memoryStorage={},this.storage=memoryLocalStorageAdapter(this.memoryStorage)),isBrowser()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(c){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",c)}(a=this.broadcastChannel)===null||a===void 0||a.addEventListener("message",async c=>{this._debug("received broadcast notification from other tab or client",c),await this._notifyAllSubscribers(c.data.event,c.data.session,!1)})}this.initialize()}_debug(...i){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${version}) ${new Date().toISOString()}`,...i),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){try{const i=isBrowser()?await this._isPKCEFlow():!1;if(this._debug("#_initialize()","begin","is PKCE flow",i),i||this.detectSessionInUrl&&this._isImplicitGrantFlow()){const{data:s,error:a}=await this._getSessionFromURL(i);if(a)return this._debug("#_initialize()","error detecting session from URL",a),(a==null?void 0:a.message)==="Identity is already linked"||(a==null?void 0:a.message)==="Identity is already linked to another user"?{error:a}:(await this._removeSession(),{error:a});const{session:o,redirectType:c}=s;return this._debug("#_initialize()","detected session in URL",o,"redirect type",c),await this._saveSession(o),setTimeout(async()=>{c==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(i){return isAuthError(i)?{error:i}:{error:new AuthUnknownError("Unexpected error during initialization",i)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(i){var s,a,o;try{const c=await _request(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(a=(s=i==null?void 0:i.options)===null||s===void 0?void 0:s.data)!==null&&a!==void 0?a:{},gotrue_meta_security:{captcha_token:(o=i==null?void 0:i.options)===null||o===void 0?void 0:o.captchaToken}},xform:_sessionResponse}),{data:d,error:g}=c;if(g||!d)return{data:{user:null,session:null},error:g};const _=d.session,b=d.user;return d.session&&(await this._saveSession(d.session),await this._notifyAllSubscribers("SIGNED_IN",_)),{data:{user:b,session:_},error:null}}catch(c){if(isAuthError(c))return{data:{user:null,session:null},error:c};throw c}}async signUp(i){var s,a,o;try{let c;if("email"in i){const{email:j,password:st,options:_e}=i;let at=null,it=null;this.flowType==="pkce"&&([at,it]=await getCodeChallengeAndMethod(this.storage,this.storageKey)),c=await _request(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:_e==null?void 0:_e.emailRedirectTo,body:{email:j,password:st,data:(s=_e==null?void 0:_e.data)!==null&&s!==void 0?s:{},gotrue_meta_security:{captcha_token:_e==null?void 0:_e.captchaToken},code_challenge:at,code_challenge_method:it},xform:_sessionResponse})}else if("phone"in i){const{phone:j,password:st,options:_e}=i;c=await _request(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:j,password:st,data:(a=_e==null?void 0:_e.data)!==null&&a!==void 0?a:{},channel:(o=_e==null?void 0:_e.channel)!==null&&o!==void 0?o:"sms",gotrue_meta_security:{captcha_token:_e==null?void 0:_e.captchaToken}},xform:_sessionResponse})}else throw new AuthInvalidCredentialsError("You must provide either an email or phone number and a password");const{data:d,error:g}=c;if(g||!d)return{data:{user:null,session:null},error:g};const _=d.session,b=d.user;return d.session&&(await this._saveSession(d.session),await this._notifyAllSubscribers("SIGNED_IN",_)),{data:{user:b,session:_},error:null}}catch(c){if(isAuthError(c))return{data:{user:null,session:null},error:c};throw c}}async signInWithPassword(i){try{let s;if("email"in i){const{email:c,password:d,options:g}=i;s=await _request(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:c,password:d,gotrue_meta_security:{captcha_token:g==null?void 0:g.captchaToken}},xform:_sessionResponsePassword})}else if("phone"in i){const{phone:c,password:d,options:g}=i;s=await _request(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:c,password:d,gotrue_meta_security:{captcha_token:g==null?void 0:g.captchaToken}},xform:_sessionResponsePassword})}else throw new AuthInvalidCredentialsError("You must provide either an email or phone number and a password");const{data:a,error:o}=s;return o?{data:{user:null,session:null},error:o}:!a||!a.session||!a.user?{data:{user:null,session:null},error:new AuthInvalidTokenResponseError}:(a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",a.session)),{data:Object.assign({user:a.user,session:a.session},a.weak_password?{weakPassword:a.weak_password}:null),error:o})}catch(s){if(isAuthError(s))return{data:{user:null,session:null},error:s};throw s}}async signInWithOAuth(i){var s,a,o,c;return await this._handleProviderSignIn(i.provider,{redirectTo:(s=i.options)===null||s===void 0?void 0:s.redirectTo,scopes:(a=i.options)===null||a===void 0?void 0:a.scopes,queryParams:(o=i.options)===null||o===void 0?void 0:o.queryParams,skipBrowserRedirect:(c=i.options)===null||c===void 0?void 0:c.skipBrowserRedirect})}async exchangeCodeForSession(i){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(i))}async _exchangeCodeForSession(i){const s=await getItemAsync(this.storage,`${this.storageKey}-code-verifier`),[a,o]=(s??"").split("/");try{const{data:c,error:d}=await _request(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:i,code_verifier:a},xform:_sessionResponse});if(await removeItemAsync(this.storage,`${this.storageKey}-code-verifier`),d)throw d;return!c||!c.session||!c.user?{data:{user:null,session:null,redirectType:null},error:new AuthInvalidTokenResponseError}:(c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers("SIGNED_IN",c.session)),{data:Object.assign(Object.assign({},c),{redirectType:o??null}),error:d})}catch(c){if(isAuthError(c))return{data:{user:null,session:null,redirectType:null},error:c};throw c}}async signInWithIdToken(i){try{const{options:s,provider:a,token:o,access_token:c,nonce:d}=i,g=await _request(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:a,id_token:o,access_token:c,nonce:d,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}},xform:_sessionResponse}),{data:_,error:b}=g;return b?{data:{user:null,session:null},error:b}:!_||!_.session||!_.user?{data:{user:null,session:null},error:new AuthInvalidTokenResponseError}:(_.session&&(await this._saveSession(_.session),await this._notifyAllSubscribers("SIGNED_IN",_.session)),{data:_,error:b})}catch(s){if(isAuthError(s))return{data:{user:null,session:null},error:s};throw s}}async signInWithOtp(i){var s,a,o,c,d;try{if("email"in i){const{email:g,options:_}=i;let b=null,j=null;this.flowType==="pkce"&&([b,j]=await getCodeChallengeAndMethod(this.storage,this.storageKey));const{error:st}=await _request(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:g,data:(s=_==null?void 0:_.data)!==null&&s!==void 0?s:{},create_user:(a=_==null?void 0:_.shouldCreateUser)!==null&&a!==void 0?a:!0,gotrue_meta_security:{captcha_token:_==null?void 0:_.captchaToken},code_challenge:b,code_challenge_method:j},redirectTo:_==null?void 0:_.emailRedirectTo});return{data:{user:null,session:null},error:st}}if("phone"in i){const{phone:g,options:_}=i,{data:b,error:j}=await _request(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:g,data:(o=_==null?void 0:_.data)!==null&&o!==void 0?o:{},create_user:(c=_==null?void 0:_.shouldCreateUser)!==null&&c!==void 0?c:!0,gotrue_meta_security:{captcha_token:_==null?void 0:_.captchaToken},channel:(d=_==null?void 0:_.channel)!==null&&d!==void 0?d:"sms"}});return{data:{user:null,session:null,messageId:b==null?void 0:b.message_id},error:j}}throw new AuthInvalidCredentialsError("You must provide either an email or phone number.")}catch(g){if(isAuthError(g))return{data:{user:null,session:null},error:g};throw g}}async verifyOtp(i){var s,a;try{let o,c;"options"in i&&(o=(s=i.options)===null||s===void 0?void 0:s.redirectTo,c=(a=i.options)===null||a===void 0?void 0:a.captchaToken);const{data:d,error:g}=await _request(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},i),{gotrue_meta_security:{captcha_token:c}}),redirectTo:o,xform:_sessionResponse});if(g)throw g;if(!d)throw new Error("An error occurred on token verification.");const _=d.session,b=d.user;return _!=null&&_.access_token&&(await this._saveSession(_),await this._notifyAllSubscribers(i.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",_)),{data:{user:b,session:_},error:null}}catch(o){if(isAuthError(o))return{data:{user:null,session:null},error:o};throw o}}async signInWithSSO(i){var s,a,o;try{let c=null,d=null;return this.flowType==="pkce"&&([c,d]=await getCodeChallengeAndMethod(this.storage,this.storageKey)),await _request(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in i?{provider_id:i.providerId}:null),"domain"in i?{domain:i.domain}:null),{redirect_to:(a=(s=i.options)===null||s===void 0?void 0:s.redirectTo)!==null&&a!==void 0?a:void 0}),!((o=i==null?void 0:i.options)===null||o===void 0)&&o.captchaToken?{gotrue_meta_security:{captcha_token:i.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:c,code_challenge_method:d}),headers:this.headers,xform:_ssoResponse})}catch(c){if(isAuthError(c))return{data:null,error:c};throw c}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async i=>{const{data:{session:s},error:a}=i;if(a)throw a;if(!s)throw new AuthSessionMissingError;const{error:o}=await _request(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:s.access_token});return{data:{user:null,session:null},error:o}})}catch(i){if(isAuthError(i))return{data:{user:null,session:null},error:i};throw i}}async resend(i){try{const s=`${this.url}/resend`;if("email"in i){const{email:a,type:o,options:c}=i,{error:d}=await _request(this.fetch,"POST",s,{headers:this.headers,body:{email:a,type:o,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken}},redirectTo:c==null?void 0:c.emailRedirectTo});return{data:{user:null,session:null},error:d}}else if("phone"in i){const{phone:a,type:o,options:c}=i,{data:d,error:g}=await _request(this.fetch,"POST",s,{headers:this.headers,body:{phone:a,type:o,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken}}});return{data:{user:null,session:null,messageId:d==null?void 0:d.message_id},error:g}}throw new AuthInvalidCredentialsError("You must provide either an email or phone number and a type")}catch(s){if(isAuthError(s))return{data:{user:null,session:null},error:s};throw s}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async s=>s))}async _acquireLock(i,s){this._debug("#_acquireLock","begin",i);try{if(this.lockAcquired){const a=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),o=(async()=>(await a,await s()))();return this.pendingInLock.push((async()=>{try{await o}catch{}})()),o}return await this.lock(`lock:${this.storageKey}`,i,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const a=s();for(this.pendingInLock.push((async()=>{try{await a}catch{}})()),await a;this.pendingInLock.length;){const o=[...this.pendingInLock];await Promise.all(o),this.pendingInLock.splice(0,o.length)}return await a}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(i){this._debug("#_useSession","begin");try{const s=await this.__loadSession();return await i(s)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let i=null;const s=await getItemAsync(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",s),s!==null&&(this._isValidSession(s)?i=s:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!i)return{data:{session:null},error:null};const a=i.expires_at?i.expires_at<=Date.now()/1e3:!1;if(this._debug("#__loadSession()",`session has${a?"":" not"} expired`,"expires_at",i.expires_at),!a){if(this.storage.isServer){let d=this.suppressGetSessionWarning;i=new Proxy(i,{get:(_,b,j)=>(!d&&b==="user"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and many not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),d=!0,this.suppressGetSessionWarning=!0),Reflect.get(_,b,j))})}return{data:{session:i},error:null}}const{session:o,error:c}=await this._callRefreshToken(i.refresh_token);return c?{data:{session:null},error:c}:{data:{session:o},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(i){return i?await this._getUser(i):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(i){try{return i?await _request(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:i,xform:_userResponse}):await this._useSession(async s=>{var a,o,c;const{data:d,error:g}=s;if(g)throw g;return!(!((a=d.session)===null||a===void 0)&&a.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new AuthSessionMissingError}:await _request(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(c=(o=d.session)===null||o===void 0?void 0:o.access_token)!==null&&c!==void 0?c:void 0,xform:_userResponse})})}catch(s){if(isAuthError(s))return isAuthSessionMissingError(s)&&(await this._removeSession(),await removeItemAsync(this.storage,`${this.storageKey}-code-verifier`),await this._notifyAllSubscribers("SIGNED_OUT",null)),{data:{user:null},error:s};throw s}}async updateUser(i,s={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(i,s))}async _updateUser(i,s={}){try{return await this._useSession(async a=>{const{data:o,error:c}=a;if(c)throw c;if(!o.session)throw new AuthSessionMissingError;const d=o.session;let g=null,_=null;this.flowType==="pkce"&&i.email!=null&&([g,_]=await getCodeChallengeAndMethod(this.storage,this.storageKey));const{data:b,error:j}=await _request(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:s==null?void 0:s.emailRedirectTo,body:Object.assign(Object.assign({},i),{code_challenge:g,code_challenge_method:_}),jwt:d.access_token,xform:_userResponse});if(j)throw j;return d.user=b.user,await this._saveSession(d),await this._notifyAllSubscribers("USER_UPDATED",d),{data:{user:d.user},error:null}})}catch(a){if(isAuthError(a))return{data:{user:null},error:a};throw a}}_decodeJWT(i){return decodeJWTPayload(i)}async setSession(i){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(i))}async _setSession(i){try{if(!i.access_token||!i.refresh_token)throw new AuthSessionMissingError;const s=Date.now()/1e3;let a=s,o=!0,c=null;const d=decodeJWTPayload(i.access_token);if(d.exp&&(a=d.exp,o=a<=s),o){const{session:g,error:_}=await this._callRefreshToken(i.refresh_token);if(_)return{data:{user:null,session:null},error:_};if(!g)return{data:{user:null,session:null},error:null};c=g}else{const{data:g,error:_}=await this._getUser(i.access_token);if(_)throw _;c={access_token:i.access_token,refresh_token:i.refresh_token,user:g.user,token_type:"bearer",expires_in:a-s,expires_at:a},await this._saveSession(c),await this._notifyAllSubscribers("SIGNED_IN",c)}return{data:{user:c.user,session:c},error:null}}catch(s){if(isAuthError(s))return{data:{session:null,user:null},error:s};throw s}}async refreshSession(i){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(i))}async _refreshSession(i){try{return await this._useSession(async s=>{var a;if(!i){const{data:d,error:g}=s;if(g)throw g;i=(a=d.session)!==null&&a!==void 0?a:void 0}if(!(i!=null&&i.refresh_token))throw new AuthSessionMissingError;const{session:o,error:c}=await this._callRefreshToken(i.refresh_token);return c?{data:{user:null,session:null},error:c}:o?{data:{user:o.user,session:o},error:null}:{data:{user:null,session:null},error:null}})}catch(s){if(isAuthError(s))return{data:{user:null,session:null},error:s};throw s}}async _getSessionFromURL(i){try{if(!isBrowser())throw new AuthImplicitGrantRedirectError("No browser detected.");if(this.flowType==="implicit"&&!this._isImplicitGrantFlow())throw new AuthImplicitGrantRedirectError("Not a valid implicit grant flow url.");if(this.flowType=="pkce"&&!i)throw new AuthPKCEGrantCodeExchangeError("Not a valid PKCE flow url.");const s=parseParametersFromURL(window.location.href);if(i){if(!s.code)throw new AuthPKCEGrantCodeExchangeError("No code detected.");const{data:tt,error:$}=await this._exchangeCodeForSession(s.code);if($)throw $;const nt=new URL(window.location.href);return nt.searchParams.delete("code"),window.history.replaceState(window.history.state,"",nt.toString()),{data:{session:tt.session,redirectType:null},error:null}}if(s.error||s.error_description||s.error_code)throw new AuthImplicitGrantRedirectError(s.error_description||"Error in URL with unspecified error_description",{error:s.error||"unspecified_error",code:s.error_code||"unspecified_code"});const{provider_token:a,provider_refresh_token:o,access_token:c,refresh_token:d,expires_in:g,expires_at:_,token_type:b}=s;if(!c||!g||!d||!b)throw new AuthImplicitGrantRedirectError("No session defined in URL");const j=Math.round(Date.now()/1e3),st=parseInt(g);let _e=j+st;_&&(_e=parseInt(_));const at=_e-j;at*1e3<=AUTO_REFRESH_TICK_DURATION&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${at}s, should have been closer to ${st}s`);const it=_e-st;j-it>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",it,_e,j):j-it<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",it,_e,j);const{data:rt,error:ct}=await this._getUser(c);if(ct)throw ct;const et={provider_token:a,provider_refresh_token:o,access_token:c,expires_in:st,expires_at:_e,refresh_token:d,token_type:b,user:rt.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:et,redirectType:s.type},error:null}}catch(s){if(isAuthError(s))return{data:{session:null,redirectType:null},error:s};throw s}}_isImplicitGrantFlow(){const i=parseParametersFromURL(window.location.href);return!!(isBrowser()&&(i.access_token||i.error_description))}async _isPKCEFlow(){const i=parseParametersFromURL(window.location.href),s=await getItemAsync(this.storage,`${this.storageKey}-code-verifier`);return!!(i.code&&s)}async signOut(i={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(i))}async _signOut({scope:i}={scope:"global"}){return await this._useSession(async s=>{var a;const{data:o,error:c}=s;if(c)return{error:c};const d=(a=o.session)===null||a===void 0?void 0:a.access_token;if(d){const{error:g}=await this.admin.signOut(d,i);if(g&&!(isAuthApiError(g)&&(g.status===404||g.status===401||g.status===403)))return{error:g}}return i!=="others"&&(await this._removeSession(),await removeItemAsync(this.storage,`${this.storageKey}-code-verifier`),await this._notifyAllSubscribers("SIGNED_OUT",null)),{error:null}})}onAuthStateChange(i){const s=uuid(),a={id:s,callback:i,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",s),this.stateChangeEmitters.delete(s)}};return this._debug("#onAuthStateChange()","registered callback with id",s),this.stateChangeEmitters.set(s,a),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(s)})))(),{data:{subscription:a}}}async _emitInitialSession(i){return await this._useSession(async s=>{var a,o;try{const{data:{session:c},error:d}=s;if(d)throw d;await((a=this.stateChangeEmitters.get(i))===null||a===void 0?void 0:a.callback("INITIAL_SESSION",c)),this._debug("INITIAL_SESSION","callback id",i,"session",c)}catch(c){await((o=this.stateChangeEmitters.get(i))===null||o===void 0?void 0:o.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",i,"error",c),console.error(c)}})}async resetPasswordForEmail(i,s={}){let a=null,o=null;this.flowType==="pkce"&&([a,o]=await getCodeChallengeAndMethod(this.storage,this.storageKey,!0));try{return await _request(this.fetch,"POST",`${this.url}/recover`,{body:{email:i,code_challenge:a,code_challenge_method:o,gotrue_meta_security:{captcha_token:s.captchaToken}},headers:this.headers,redirectTo:s.redirectTo})}catch(c){if(isAuthError(c))return{data:null,error:c};throw c}}async getUserIdentities(){var i;try{const{data:s,error:a}=await this.getUser();if(a)throw a;return{data:{identities:(i=s.user.identities)!==null&&i!==void 0?i:[]},error:null}}catch(s){if(isAuthError(s))return{data:null,error:s};throw s}}async linkIdentity(i){var s;try{const{data:a,error:o}=await this._useSession(async c=>{var d,g,_,b,j;const{data:st,error:_e}=c;if(_e)throw _e;const at=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,i.provider,{redirectTo:(d=i.options)===null||d===void 0?void 0:d.redirectTo,scopes:(g=i.options)===null||g===void 0?void 0:g.scopes,queryParams:(_=i.options)===null||_===void 0?void 0:_.queryParams,skipBrowserRedirect:!0});return await _request(this.fetch,"GET",at,{headers:this.headers,jwt:(j=(b=st.session)===null||b===void 0?void 0:b.access_token)!==null&&j!==void 0?j:void 0})});if(o)throw o;return isBrowser()&&!(!((s=i.options)===null||s===void 0)&&s.skipBrowserRedirect)&&window.location.assign(a==null?void 0:a.url),{data:{provider:i.provider,url:a==null?void 0:a.url},error:null}}catch(a){if(isAuthError(a))return{data:{provider:i.provider,url:null},error:a};throw a}}async unlinkIdentity(i){try{return await this._useSession(async s=>{var a,o;const{data:c,error:d}=s;if(d)throw d;return await _request(this.fetch,"DELETE",`${this.url}/user/identities/${i.identity_id}`,{headers:this.headers,jwt:(o=(a=c.session)===null||a===void 0?void 0:a.access_token)!==null&&o!==void 0?o:void 0})})}catch(s){if(isAuthError(s))return{data:null,error:s};throw s}}async _refreshAccessToken(i){const s=`#_refreshAccessToken(${i.substring(0,5)}...)`;this._debug(s,"begin");try{const a=Date.now();return await retryable(async o=>(o>0&&await sleep(200*Math.pow(2,o-1)),this._debug(s,"refreshing attempt",o),await _request(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:i},headers:this.headers,xform:_sessionResponse})),(o,c)=>{const d=200*Math.pow(2,o);return c&&isAuthRetryableFetchError(c)&&Date.now()+d-a{try{await g.callback(i,s)}catch(_){c.push(_)}});if(await Promise.all(d),c.length>0){for(let g=0;gthis._autoRefreshTokenTick(),AUTO_REFRESH_TICK_DURATION);this.autoRefreshTicker=i,i&&typeof i=="object"&&typeof i.unref=="function"?i.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(i),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const i=this.autoRefreshTicker;this.autoRefreshTicker=null,i&&clearInterval(i)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const i=Date.now();try{return await this._useSession(async s=>{const{data:{session:a}}=s;if(!a||!a.refresh_token||!a.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const o=Math.floor((a.expires_at*1e3-i)/AUTO_REFRESH_TICK_DURATION);this._debug("#_autoRefreshTokenTick()",`access token expires in ${o} ticks, a tick lasts ${AUTO_REFRESH_TICK_DURATION}ms, refresh threshold is ${AUTO_REFRESH_TICK_THRESHOLD} ticks`),o<=AUTO_REFRESH_TICK_THRESHOLD&&await this._callRefreshToken(a.refresh_token)})}catch(s){console.error("Auto refresh tick failed with error. This is likely a transient error.",s)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(i){if(i.isAcquireTimeout||i instanceof LockAcquireTimeoutError)this._debug("auto refresh token tick lock not available");else throw i}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!isBrowser()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(i){console.error("_handleVisibilityChange",i)}}async _onVisibilityChanged(i){const s=`#_onVisibilityChanged(${i})`;this._debug(s,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),i||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(s,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(i,s,a){const o=[`provider=${encodeURIComponent(s)}`];if(a!=null&&a.redirectTo&&o.push(`redirect_to=${encodeURIComponent(a.redirectTo)}`),a!=null&&a.scopes&&o.push(`scopes=${encodeURIComponent(a.scopes)}`),this.flowType==="pkce"){const[c,d]=await getCodeChallengeAndMethod(this.storage,this.storageKey),g=new URLSearchParams({code_challenge:`${encodeURIComponent(c)}`,code_challenge_method:`${encodeURIComponent(d)}`});o.push(g.toString())}if(a!=null&&a.queryParams){const c=new URLSearchParams(a.queryParams);o.push(c.toString())}return a!=null&&a.skipBrowserRedirect&&o.push(`skip_http_redirect=${a.skipBrowserRedirect}`),`${i}?${o.join("&")}`}async _unenroll(i){try{return await this._useSession(async s=>{var a;const{data:o,error:c}=s;return c?{data:null,error:c}:await _request(this.fetch,"DELETE",`${this.url}/factors/${i.factorId}`,{headers:this.headers,jwt:(a=o==null?void 0:o.session)===null||a===void 0?void 0:a.access_token})})}catch(s){if(isAuthError(s))return{data:null,error:s};throw s}}async _enroll(i){try{return await this._useSession(async s=>{var a,o;const{data:c,error:d}=s;if(d)return{data:null,error:d};const g=Object.assign({friendly_name:i.friendlyName,factor_type:i.factorType},i.factorType==="phone"?{phone:i.phone}:{issuer:i.issuer}),{data:_,error:b}=await _request(this.fetch,"POST",`${this.url}/factors`,{body:g,headers:this.headers,jwt:(a=c==null?void 0:c.session)===null||a===void 0?void 0:a.access_token});return b?{data:null,error:b}:(i.factorType==="phone"&&delete _.totp,i.factorType==="totp"&&(!((o=_==null?void 0:_.totp)===null||o===void 0)&&o.qr_code)&&(_.totp.qr_code=`data:image/svg+xml;utf-8,${_.totp.qr_code}`),{data:_,error:null})})}catch(s){if(isAuthError(s))return{data:null,error:s};throw s}}async _verify(i){return this._acquireLock(-1,async()=>{try{return await this._useSession(async s=>{var a;const{data:o,error:c}=s;if(c)return{data:null,error:c};const{data:d,error:g}=await _request(this.fetch,"POST",`${this.url}/factors/${i.factorId}/verify`,{body:{code:i.code,challenge_id:i.challengeId},headers:this.headers,jwt:(a=o==null?void 0:o.session)===null||a===void 0?void 0:a.access_token});return g?{data:null,error:g}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+d.expires_in},d)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",d),{data:d,error:g})})}catch(s){if(isAuthError(s))return{data:null,error:s};throw s}})}async _challenge(i){return this._acquireLock(-1,async()=>{try{return await this._useSession(async s=>{var a;const{data:o,error:c}=s;return c?{data:null,error:c}:await _request(this.fetch,"POST",`${this.url}/factors/${i.factorId}/challenge`,{body:{channel:i.channel},headers:this.headers,jwt:(a=o==null?void 0:o.session)===null||a===void 0?void 0:a.access_token})})}catch(s){if(isAuthError(s))return{data:null,error:s};throw s}})}async _challengeAndVerify(i){const{data:s,error:a}=await this._challenge({factorId:i.factorId});return a?{data:null,error:a}:await this._verify({factorId:i.factorId,challengeId:s.id,code:i.code})}async _listFactors(){const{data:{user:i},error:s}=await this.getUser();if(s)return{data:null,error:s};const a=(i==null?void 0:i.factors)||[],o=a.filter(d=>d.factor_type==="totp"&&d.status==="verified"),c=a.filter(d=>d.factor_type==="phone"&&d.status==="verified");return{data:{all:a,totp:o,phone:c},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async i=>{var s,a;const{data:{session:o},error:c}=i;if(c)return{data:null,error:c};if(!o)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const d=this._decodeJWT(o.access_token);let g=null;d.aal&&(g=d.aal);let _=g;((a=(s=o.user.factors)===null||s===void 0?void 0:s.filter(st=>st.status==="verified"))!==null&&a!==void 0?a:[]).length>0&&(_="aal2");const j=d.amr||[];return{data:{currentLevel:g,nextLevel:_,currentAuthenticationMethods:j},error:null}}))}}GoTrueClient.nextInstanceID=0;const AuthClient=GoTrueClient;class SupabaseAuthClient extends AuthClient{constructor(i){super(i)}}var __awaiter=function(e,i,s,a){function o(c){return c instanceof s?c:new s(function(d){d(c)})}return new(s||(s=Promise))(function(c,d){function g(j){try{b(a.next(j))}catch(st){d(st)}}function _(j){try{b(a.throw(j))}catch(st){d(st)}}function b(j){j.done?c(j.value):o(j.value).then(g,_)}b((a=a.apply(e,i||[])).next())})};class SupabaseClient{constructor(i,s,a){var o,c,d;if(this.supabaseUrl=i,this.supabaseKey=s,!i)throw new Error("supabaseUrl is required.");if(!s)throw new Error("supabaseKey is required.");const g=stripTrailingSlash(i);this.realtimeUrl=`${g}/realtime/v1`.replace(/^http/i,"ws"),this.authUrl=`${g}/auth/v1`,this.storageUrl=`${g}/storage/v1`,this.functionsUrl=`${g}/functions/v1`;const _=`sb-${new URL(this.authUrl).hostname.split(".")[0]}-auth-token`,b={db:DEFAULT_DB_OPTIONS,realtime:DEFAULT_REALTIME_OPTIONS,auth:Object.assign(Object.assign({},DEFAULT_AUTH_OPTIONS),{storageKey:_}),global:DEFAULT_GLOBAL_OPTIONS},j=applySettingDefaults(a??{},b);this.storageKey=(o=j.auth.storageKey)!==null&&o!==void 0?o:"",this.headers=(c=j.global.headers)!==null&&c!==void 0?c:{},j.accessToken?(this.accessToken=j.accessToken,this.auth=new Proxy({},{get:(st,_e)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(_e)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((d=j.auth)!==null&&d!==void 0?d:{},this.headers,j.global.fetch),this.fetch=fetchWithAuth(s,this._getAccessToken.bind(this),j.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers},j.realtime)),this.rest=new PostgrestClient(`${g}/rest/v1`,{headers:this.headers,schema:j.db.schema,fetch:this.fetch}),j.accessToken||this._listenForAuthEvents()}get functions(){return new FunctionsClient(this.functionsUrl,{headers:this.headers,customFetch:this.fetch})}get storage(){return new StorageClient(this.storageUrl,this.headers,this.fetch)}from(i){return this.rest.from(i)}schema(i){return this.rest.schema(i)}rpc(i,s={},a={}){return this.rest.rpc(i,s,a)}channel(i,s={config:{}}){return this.realtime.channel(i,s)}getChannels(){return this.realtime.getChannels()}removeChannel(i){return this.realtime.removeChannel(i)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var i,s;return __awaiter(this,void 0,void 0,function*(){if(this.accessToken)return yield this.accessToken();const{data:a}=yield this.auth.getSession();return(s=(i=a.session)===null||i===void 0?void 0:i.access_token)!==null&&s!==void 0?s:null})}_initSupabaseAuthClient({autoRefreshToken:i,persistSession:s,detectSessionInUrl:a,storage:o,storageKey:c,flowType:d,lock:g,debug:_},b,j){var st;const _e={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new SupabaseAuthClient({url:this.authUrl,headers:Object.assign(Object.assign({},_e),b),storageKey:c,autoRefreshToken:i,persistSession:s,detectSessionInUrl:a,storage:o,flowType:d,lock:g,debug:_,fetch:j,hasCustomAuthorizationHeader:(st="Authorization"in this.headers)!==null&&st!==void 0?st:!1})}_initRealtimeClient(i){return new RealtimeClient(this.realtimeUrl,Object.assign(Object.assign({},i),{params:Object.assign({apikey:this.supabaseKey},i==null?void 0:i.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((s,a)=>{this._handleTokenChanged(s,"CLIENT",a==null?void 0:a.access_token)})}_handleTokenChanged(i,s,a){(i==="TOKEN_REFRESHED"||i==="SIGNED_IN")&&this.changedAccessToken!==a?(this.realtime.setAuth(a??null),this.changedAccessToken=a):i==="SIGNED_OUT"&&(this.realtime.setAuth(this.supabaseKey),s=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const createClient=(e,i,s)=>new SupabaseClient(e,i,s),supabaseUrl="https://yyztrxzoycqavbvifqlk.supabase.co",supabaseAnonKey="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Inl5enRyeHpveWNxYXZidmlmcWxrIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MjU5OTI1MjcsImV4cCI6MjA0MTU2ODUyN30.VL-bnjYYX43p47Dj7-HL46HQgmZ7dr9hptllpxvtW2k",supabase=createClient(supabaseUrl,supabaseAnonKey);function ThreeDotLoading(){return jsxRuntimeExports.jsx("div",{className:"relative",children:jsxRuntimeExports.jsxs("div",{class:"flex space-x-2 justify-center items-center mt-20",children:[jsxRuntimeExports.jsx("div",{class:"h-3 w-3 bg-black rounded-full animate-bounce [animation-delay:-0.3s]"}),jsxRuntimeExports.jsx("div",{class:"h-3 w-3 bg-black rounded-full animate-bounce [animation-delay:-0.15s]"}),jsxRuntimeExports.jsx("div",{class:"h-3 w-3 bg-black rounded-full animate-bounce"})]})})}var lottie$1={exports:{}};(function(module,exports){typeof navigator<"u"&&function(e,i){module.exports=i()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(i){_useWebWorker=!!i},getWebWorker=function(){return _useWebWorker},setLocationHref=function(i){locationHref=i},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,i){var s,a=e.length,o;for(s=0;s1?s[1]=1:s[1]<=0&&(s[1]=0),HSVtoRGB(s[0],s[1],s[2])}function addBrightnessToRGB(e,i){var s=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return s[2]+=i,s[2]>1?s[2]=1:s[2]<0&&(s[2]=0),HSVtoRGB(s[0],s[1],s[2])}function addHueToRGB(e,i){var s=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return s[0]+=i/360,s[0]>1?s[0]-=1:s[0]<0&&(s[0]+=1),HSVtoRGB(s[0],s[1],s[2])}var rgbToHex=function(){var e=[],i,s;for(i=0;i<256;i+=1)s=i.toString(16),e[i]=s.length===1?"0"+s:s;return function(a,o,c){return a<0&&(a=0),o<0&&(o=0),c<0&&(c=0),"#"+e[a]+e[o]+e[c]}}(),setSubframeEnabled=function(i){subframeEnabled=!!i},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(i){expressionsPlugin=i},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(i){expressionsInterfaces=i},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(i){defaultCurveSegments=i},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(i){idPrefix$1=i};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(s){return typeof s}:_typeof$5=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof$5(e)}var dataManager=function(){var e=1,i=[],s,a,o={onmessage:function(){},postMessage:function(at){s({data:at})}},c={postMessage:function(at){o.onmessage({data:at})}};function d(_e){if(window.Worker&&window.Blob&&getWebWorker()){var at=new Blob(["var _workerSelf = self; self.onmessage = ",_e.toString()],{type:"text/javascript"}),it=URL.createObjectURL(at);return new Worker(it)}return s=_e,o}function g(){a||(a=d(function(at){function it(){function ct(Et,ft){var vt,ot,lt=Et.length,gt,mt,_t,kt;for(ot=0;ot=0;ft-=1)if(Et[ft].ty==="sh")if(Et[ft].ks.k.i)ut(Et[ft].ks.k);else for(lt=Et[ft].ks.k.length,ot=0;otvt[0]?!0:vt[0]>Et[0]?!1:Et[1]>vt[1]?!0:vt[1]>Et[1]?!1:Et[2]>vt[2]?!0:vt[2]>Et[2]?!1:null}var dt=function(){var Et=[4,4,14];function ft(ot){var lt=ot.t.d;ot.t.d={k:[{s:lt,t:0}]}}function vt(ot){var lt,gt=ot.length;for(lt=0;lt=0;lt-=1)if(ot[lt].ty==="sh")if(ot[lt].ks.k.i)ot[lt].ks.k.c=ot[lt].closed;else for(_t=ot[lt].ks.k.length,mt=0;mt<_t;mt+=1)ot[lt].ks.k[mt].s&&(ot[lt].ks.k[mt].s[0].c=ot[lt].closed),ot[lt].ks.k[mt].e&&(ot[lt].ks.k[mt].e[0].c=ot[lt].closed);else ot[lt].ty==="gr"&&ft(ot[lt].it)}function vt(ot){var lt,gt,mt=ot.length,_t,kt,Pt,At;for(gt=0;gt500)&&(this._imageLoaded(),clearInterval($)),tt+=1}).bind(this),50)}function c(et){var tt=a(et,this.assetsPath,this.path),$=createNS("image");isSafari?this.testImageLoaded($):$.addEventListener("load",this._imageLoaded,!1),$.addEventListener("error",(function(){nt.img=e,this._imageLoaded()}).bind(this),!1),$.setAttributeNS("http://www.w3.org/1999/xlink","href",tt),this._elementHelper.append?this._elementHelper.append($):this._elementHelper.appendChild($);var nt={img:$,assetData:et};return nt}function d(et){var tt=a(et,this.assetsPath,this.path),$=createTag("img");$.crossOrigin="anonymous",$.addEventListener("load",this._imageLoaded,!1),$.addEventListener("error",(function(){nt.img=e,this._imageLoaded()}).bind(this),!1),$.src=tt;var nt={img:$,assetData:et};return nt}function g(et){var tt={assetData:et},$=a(et,this.assetsPath,this.path);return dataManager.loadData($,(function(nt){tt.img=nt,this._footageLoaded()}).bind(this),(function(){tt.img={},this._footageLoaded()}).bind(this)),tt}function _(et,tt){this.imagesLoadedCb=tt;var $,nt=et.length;for($=0;$this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var i=this.animationData.layers,s,a=i.length,o=e.layers,c,d=o.length;for(c=0;cthis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var i,s=0;s=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(i>this.totalFrames?i%this.totalFrames:0)||(s=!0,i=this.totalFrames-1):i>=this.totalFrames?(this.playCount+=1,this.checkSegments(i%this.totalFrames)||(this.setCurrentRawFrameValue(i%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(i):i<0?this.checkSegments(i%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+i%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(s=!0,i=0)):this.setCurrentRawFrameValue(i),s&&(this.setCurrentRawFrameValue(i),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,i){this.playCount=0,e[1]0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-i)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+i)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,i){var s=-1;this.isPaused&&(this.currentRawFrame+this.firstFramei&&(s=i-e)),this.firstFrame=e,this.totalFrames=i-e,this.timeCompleted=this.totalFrames,s!==-1&&this.goToAndStop(s,!0)},AnimationItem.prototype.playSegments=function(e,i){if(i&&(this.segments.length=0),_typeof$4(e[0])==="object"){var s,a=e.length;for(s=0;s=0;vt-=1)i[vt].animation.destroy(ft)}function pt(ft,vt,ot){var lt=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),gt,mt=lt.length;for(gt=0;gt0?nt=pt:$=pt;while(Math.abs(dt)>c&&++yt=o?ct($,wt,nt,ut):St===0?wt:rt($,dt,dt+_,nt,ut)}},e}(),pooling=function(){function e(i){return i.concat(createSizedArray(i.length))}return{double:e}}(),poolFactory=function(){return function(e,i,s){var a=0,o=e,c=createSizedArray(o),d={newElement:g,release:_};function g(){var b;return a?(a-=1,b=c[a]):b=i(),b}function _(b){a===o&&(c=pooling.double(c),o*=2),s&&s(b),c[a]=b,a+=1}return d}}(),bezierLengthPool=function(){function e(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,e)}(),segmentsLengthPool=function(){function e(){return{lengths:[],totalLength:0}}function i(s){var a,o=s.lengths.length;for(a=0;a-.001&&tt<.001}function s(_e,at,it,rt,ct,et,tt,$,nt){if(it===0&&et===0&&nt===0)return i(_e,at,rt,ct,tt,$);var ut=e.sqrt(e.pow(rt-_e,2)+e.pow(ct-at,2)+e.pow(et-it,2)),ht=e.sqrt(e.pow(tt-_e,2)+e.pow($-at,2)+e.pow(nt-it,2)),dt=e.sqrt(e.pow(tt-rt,2)+e.pow($-ct,2)+e.pow(nt-et,2)),pt;return ut>ht?ut>dt?pt=ut-ht-dt:pt=dt-ht-ut:dt>ht?pt=dt-ht-ut:pt=ht-ut-dt,pt>-1e-4&&pt<1e-4}var a=function(){return function(_e,at,it,rt){var ct=getDefaultCurveSegments(),et,tt,$,nt,ut,ht=0,dt,pt=[],yt=[],xt=bezierLengthPool.newElement();for($=it.length,et=0;ettt?-1:1,ut=!0;ut;)if(rt[et]<=tt&&rt[et+1]>tt?($=(tt-rt[et])/(rt[et+1]-rt[et]),ut=!1):et+=nt,et<0||et>=ct-1){if(et===ct-1)return it[et];ut=!1}return it[et]+(it[et+1]-it[et])*$}function b(_e,at,it,rt,ct,et){var tt=_(ct,et),$=1-tt,nt=e.round(($*$*$*_e[0]+(tt*$*$+$*tt*$+$*$*tt)*it[0]+(tt*tt*$+$*tt*tt+tt*$*tt)*rt[0]+tt*tt*tt*at[0])*1e3)/1e3,ut=e.round(($*$*$*_e[1]+(tt*$*$+$*tt*$+$*$*tt)*it[1]+(tt*tt*$+$*tt*tt+tt*$*tt)*rt[1]+tt*tt*tt*at[1])*1e3)/1e3;return[nt,ut]}var j=createTypedArray("float32",8);function st(_e,at,it,rt,ct,et,tt){ct<0?ct=0:ct>1&&(ct=1);var $=_(ct,tt);et=et>1?1:et;var nt=_(et,tt),ut,ht=_e.length,dt=1-$,pt=1-nt,yt=dt*dt*dt,xt=$*dt*dt*3,wt=$*$*dt*3,St=$*$*$,Ct=dt*dt*pt,bt=$*dt*pt+dt*$*pt+dt*dt*nt,Et=$*$*pt+dt*$*nt+$*dt*nt,ft=$*$*nt,vt=dt*pt*pt,ot=$*pt*pt+dt*nt*pt+dt*pt*nt,lt=$*nt*pt+dt*nt*nt+$*pt*nt,gt=$*nt*nt,mt=pt*pt*pt,_t=nt*pt*pt+pt*nt*pt+pt*pt*nt,kt=nt*nt*pt+pt*nt*nt+nt*pt*nt,Pt=nt*nt*nt;for(ut=0;ut=b.t-s){_.h&&(_=b),o=0;break}if(b.t-s>e){o=c;break}c=et||e=et?nt.points.length-1:0;for(_e=nt.points[ut].point.length,st=0;st<_e;st+=1)a[st]=nt.points[ut].point[st]}else{j.__fnct?ct=j.__fnct:(ct=BezierFactory.getBezierEasing(_.o.x,_.o.y,_.i.x,_.i.y,_.n).get,j.__fnct=ct),at=ct((e-tt)/(et-tt));var ht=nt.segmentLength*at,dt,pt=i.lastFrame=pt&&ht=et)a[0]=$[0],a[1]=$[1],a[2]=$[2];else if(e<=tt)a[0]=_.s[0],a[1]=_.s[1],a[2]=_.s[2];else{var bt=createQuaternion(_.s),Et=createQuaternion($),ft=(e-tt)/(et-tt);quaternionToEuler(a,slerp(bt,Et,ft))}else for(c=0;c=et?at=1:e1e-6?(_e=Math.acos(at),it=Math.sin(_e),rt=Math.sin((1-s)*_e)/it,ct=Math.sin(s*_e)/it):(rt=1-s,ct=s),a[0]=rt*o+ct*_,a[1]=rt*c+ct*b,a[2]=rt*d+ct*j,a[3]=rt*g+ct*st,a}function quaternionToEuler(e,i){var s=i[0],a=i[1],o=i[2],c=i[3],d=Math.atan2(2*a*c-2*s*o,1-2*a*a-2*o*o),g=Math.asin(2*s*a+2*o*c),_=Math.atan2(2*s*c-2*a*o,1-2*s*s-2*o*o);e[0]=d/degToRads,e[1]=g/degToRads,e[2]=_/degToRads}function createQuaternion(e){var i=e[0]*degToRads,s=e[1]*degToRads,a=e[2]*degToRads,o=Math.cos(i/2),c=Math.cos(s/2),d=Math.cos(a/2),g=Math.sin(i/2),_=Math.sin(s/2),b=Math.sin(a/2),j=o*c*d-g*_*b,st=g*_*d+o*c*b,_e=g*c*d+o*_*b,at=o*_*d-g*c*b;return[st,_e,at,j]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,s=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=s&&e>=s||this._caching.lastFrame=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var a=this.interpolateValue(e,this._caching);this.pv=a}return this._caching.lastFrame=e,this.pv}function setVValue(e){var i;if(this.propType==="unidimensional")i=e*this.mult,mathAbs(this.v-i)>1e-5&&(this.v=i,this._mdf=!0);else for(var s=0,a=this.v.length;s1e-5&&(this.v[s]=i,this._mdf=!0),s+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var e,i=this.effectsSequence.length,s=this.kf?this.pv:this.data.k;for(e=0;e=this._maxLength&&this.doubleArrayLength(),s){case"v":c=this.v;break;case"i":c=this.i;break;case"o":c=this.o;break;default:c=[];break}(!c[a]||c[a]&&!o)&&(c[a]=pointPool.newElement()),c[a][0]=e,c[a][1]=i},ShapePath.prototype.setTripleAt=function(e,i,s,a,o,c,d,g){this.setXYAt(e,i,"v",d,g),this.setXYAt(s,a,"o",d,g),this.setXYAt(o,c,"i",d,g)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var i=this.v,s=this.o,a=this.i,o=0;this.c&&(e.setTripleAt(i[0][0],i[0][1],a[0][0],a[0][1],s[0][0],s[0][1],0,!1),o=1);var c=this._length-1,d=this._length,g;for(g=o;g=bt[bt.length-1].t-this.offsetTime)ut=bt[bt.length-1].s?bt[bt.length-1].s[0]:bt[bt.length-2].e[0],dt=!0;else{for(var Et=nt,ft=bt.length-1,vt=!0,ot,lt,gt;vt&&(ot=bt[Et],lt=bt[Et+1],!(lt.t-this.offsetTime>et));)Et=lt.t-this.offsetTime)St=1;else if(et$&&et>$)||(this._caching.lastIndex=nt0||ot>-1e-6&&ot<0?a(ot*lt)/lt:ot}function vt(){var ot=this.props,lt=ft(ot[0]),gt=ft(ot[1]),mt=ft(ot[4]),_t=ft(ot[5]),kt=ft(ot[12]),Pt=ft(ot[13]);return"matrix("+lt+","+gt+","+mt+","+_t+","+kt+","+Pt+")"}return function(){this.reset=o,this.rotate=c,this.rotateX=d,this.rotateY=g,this.rotateZ=_,this.skew=j,this.skewFromAxis=st,this.shear=b,this.scale=_e,this.setTransform=at,this.translate=it,this.transform=rt,this.multiply=ct,this.applyToPoint=ut,this.applyToX=ht,this.applyToY=dt,this.applyToZ=pt,this.applyToPointArray=Ct,this.applyToTriplePoints=St,this.applyToPointStringified=bt,this.toCSS=Et,this.to2dCSS=vt,this.clone=$,this.cloneFromProps=nt,this.equals=tt,this.inversePoints=wt,this.inversePoint=xt,this.getInverseMatrix=yt,this._t=this.transform,this.isIdentity=et,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(s){return typeof s}:_typeof$3=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof$3(e)}var lottie={};function setLocation(e){setLocationHref(e)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return animationManager.loadAnimation(e)}function setQuality(e){if(typeof e=="string")switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e)}function inBrowser(){return typeof navigator<"u"}function installPlugin(e,i){e==="expressions"&&setExpressionsPlugin(i)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var i=queryString.split("&"),s=0;s=1?c.push({s:e-1,e:i-1}):(c.push({s:e,e:1}),c.push({s:0,e:i-1}));var d=[],g,_=c.length,b;for(g=0;g<_;g+=1)if(b=c[g],!(b.e*oa+s)){var j,st;b.s*o<=a?j=0:j=(b.s*o-a)/s,b.e*o>=a+s?st=1:st=(b.e*o-a)/s,d.push([j,st])}return d.length||d.push([0,0]),d},TrimModifier.prototype.releasePathsData=function(e){var i,s=e.length;for(i=0;i1?i=1+a:this.s.v<0?i=0+a:i=this.s.v+a,this.e.v>1?s=1+a:this.e.v<0?s=0+a:s=this.e.v+a,i>s){var o=i;i=s,s=o}i=Math.round(i*1e4)*1e-4,s=Math.round(s*1e4)*1e-4,this.sValue=i,this.eValue=s}else i=this.sValue,s=this.eValue;var c,d,g=this.shapes.length,_,b,j,st,_e,at=0;if(s===i)for(d=0;d=0;d-=1)if(rt=this.shapes[d],rt.shape._mdf){for(ct=rt.localShapeCollection,ct.releaseShapes(),this.m===2&&g>1?(nt=this.calculateShapeEdges(i,s,rt.totalShapeLength,$,at),$+=rt.totalShapeLength):nt=[[et,tt]],b=nt.length,_=0;_=1?it.push({s:rt.totalShapeLength*(et-1),e:rt.totalShapeLength*(tt-1)}):(it.push({s:rt.totalShapeLength*et,e:rt.totalShapeLength}),it.push({s:0,e:rt.totalShapeLength*(tt-1)}));var ut=this.addShapes(rt,it[0]);if(it[0].s!==it[0].e){if(it.length>1){var ht=rt.shape.paths.shapes[rt.shape.paths._length-1];if(ht.c){var dt=ut.pop();this.addPaths(ut,ct),ut=this.addShapes(rt,it[1],dt)}else this.addPaths(ut,ct),ut=this.addShapes(rt,it[1])}this.addPaths(ut,ct)}}rt.shape.paths=ct}}},TrimModifier.prototype.addPaths=function(e,i){var s,a=e.length;for(s=0;si.e){s.c=!1;break}else i.s<=b&&i.e>=b+j.addedLength?(this.addSegment(o[c].v[g-1],o[c].o[g-1],o[c].i[g],o[c].v[g],s,st,ct),ct=!1):(at=bez.getNewSegment(o[c].v[g-1],o[c].v[g],o[c].o[g-1],o[c].i[g],(i.s-b)/j.addedLength,(i.e-b)/j.addedLength,_e[g-1]),this.addSegmentFromArray(at,s,st,ct),ct=!1,s.c=!1),b+=j.addedLength,st+=1;if(o[c].c&&_e.length){if(j=_e[g-1],b<=i.e){var et=_e[g-1].addedLength;i.s<=b&&i.e>=b+et?(this.addSegment(o[c].v[g-1],o[c].o[g-1],o[c].i[0],o[c].v[0],s,st,ct),ct=!1):(at=bez.getNewSegment(o[c].v[g-1],o[c].v[0],o[c].o[g-1],o[c].i[0],(i.s-b)/et,(i.e-b)/et,_e[g-1]),this.addSegmentFromArray(at,s,st,ct),ct=!1,s.c=!1)}else s.c=!1;b+=j.addedLength,st+=1}if(s._length&&(s.setXYAt(s.v[rt][0],s.v[rt][1],"i",rt),s.setXYAt(s.v[s._length-1][0],s.v[s._length-1][1],"o",s._length-1)),b>i.e)break;c=this.p.keyframes[this.p.keyframes.length-1].t?(j=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/b,0),st=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/b,0)):(j=this.p.pv,st=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/b,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){j=[],st=[];var _e=this.px,at=this.py;_e._caching.lastFrame+_e.offsetTime<=_e.keyframes[0].t?(j[0]=_e.getValueAtTime((_e.keyframes[0].t+.01)/b,0),j[1]=at.getValueAtTime((at.keyframes[0].t+.01)/b,0),st[0]=_e.getValueAtTime(_e.keyframes[0].t/b,0),st[1]=at.getValueAtTime(at.keyframes[0].t/b,0)):_e._caching.lastFrame+_e.offsetTime>=_e.keyframes[_e.keyframes.length-1].t?(j[0]=_e.getValueAtTime(_e.keyframes[_e.keyframes.length-1].t/b,0),j[1]=at.getValueAtTime(at.keyframes[at.keyframes.length-1].t/b,0),st[0]=_e.getValueAtTime((_e.keyframes[_e.keyframes.length-1].t-.01)/b,0),st[1]=at.getValueAtTime((at.keyframes[at.keyframes.length-1].t-.01)/b,0)):(j=[_e.pv,at.pv],st[0]=_e.getValueAtTime((_e._caching.lastFrame+_e.offsetTime-.01)/b,_e.offsetTime),st[1]=at.getValueAtTime((at._caching.lastFrame+at.offsetTime-.01)/b,at.offsetTime))}else st=e,j=st;this.v.rotate(-Math.atan2(j[1]-st[1],j[0]-st[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function a(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function o(){}function c(_){this._addDynamicProperty(_),this.elem.addDynamicProperty(_),this._isDirty=!0}function d(_,b,j){if(this.elem=_,this.frameId=-1,this.propType="transform",this.data=b,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(j||_),b.p&&b.p.s?(this.px=PropertyFactory.getProp(_,b.p.x,0,0,this),this.py=PropertyFactory.getProp(_,b.p.y,0,0,this),b.p.z&&(this.pz=PropertyFactory.getProp(_,b.p.z,0,0,this))):this.p=PropertyFactory.getProp(_,b.p||{k:[0,0,0]},1,0,this),b.rx){if(this.rx=PropertyFactory.getProp(_,b.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(_,b.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(_,b.rz,0,degToRads,this),b.or.k[0].ti){var st,_e=b.or.k.length;for(st=0;st<_e;st+=1)b.or.k[st].to=null,b.or.k[st].ti=null}this.or=PropertyFactory.getProp(_,b.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(_,b.r||{k:0},0,degToRads,this);b.sk&&(this.sk=PropertyFactory.getProp(_,b.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(_,b.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(_,b.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(_,b.s||{k:[100,100,100]},1,.01,this),b.o?this.o=PropertyFactory.getProp(_,b.o,0,.01,_):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}d.prototype={applyToMatrix:i,getValue:s,precalculateMatrix:a,autoOrient:o},extendPrototype([DynamicPropertyContainer],d),d.prototype.addDynamicProperty=c,d.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function g(_,b,j){return new d(_,b,j)}return{getTransformProperty:g}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,i.c,0,null,this),this.o=PropertyFactory.getProp(e,i.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,i.tr,this),this.so=PropertyFactory.getProp(e,i.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,i.tr.eo,0,.01,this),this.data=i,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,i,s,a,o,c){var d=c?-1:1,g=a.s.v[0]+(1-a.s.v[0])*(1-o),_=a.s.v[1]+(1-a.s.v[1])*(1-o);e.translate(a.p.v[0]*d*o,a.p.v[1]*d*o,a.p.v[2]),i.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),i.rotate(-a.r.v*d*o),i.translate(a.a.v[0],a.a.v[1],a.a.v[2]),s.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),s.scale(c?1/g:g,c?1/_:_),s.translate(a.a.v[0],a.a.v[1],a.a.v[2])},RepeaterModifier.prototype.init=function(e,i,s,a){for(this.elem=e,this.arr=i,this.pos=s,this.elemsData=a,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,i[s]);s>0;)s-=1,this._elements.unshift(i[s]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var i,s=e.length;for(i=0;i0?Math.floor(_e):Math.ceil(_e),rt=this.pMatrix.props,ct=this.rMatrix.props,et=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var tt=0;if(_e>0){for(;ttit;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),tt-=1;at&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-at,!0),tt-=at)}a=this.data.m===1?0:this._currentCopies-1,o=this.data.m===1?1:-1,c=this._currentCopies;for(var $,nt;c;){if(i=this.elemsData[a].it,s=i[i.length-1].transform.mProps.v.props,nt=s.length,i[i.length-1].transform.mProps._mdf=!0,i[i.length-1].transform.op._mdf=!0,i[i.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(a/(this._currentCopies-1)),tt!==0){for((a!==0&&o===1||a!==this._currentCopies-1&&o===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(ct[0],ct[1],ct[2],ct[3],ct[4],ct[5],ct[6],ct[7],ct[8],ct[9],ct[10],ct[11],ct[12],ct[13],ct[14],ct[15]),this.matrix.transform(et[0],et[1],et[2],et[3],et[4],et[5],et[6],et[7],et[8],et[9],et[10],et[11],et[12],et[13],et[14],et[15]),this.matrix.transform(rt[0],rt[1],rt[2],rt[3],rt[4],rt[5],rt[6],rt[7],rt[8],rt[9],rt[10],rt[11],rt[12],rt[13],rt[14],rt[15]),$=0;$0&&a<1?[i]:[]:[i-a,i+a].filter(function(o){return o>0&&o<1})},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var i=lerpPoint(this.points[0],this.points[1],e),s=lerpPoint(this.points[1],this.points[2],e),a=lerpPoint(this.points[2],this.points[3],e),o=lerpPoint(i,s,e),c=lerpPoint(s,a,e),d=lerpPoint(o,c,e);return[new PolynomialBezier(this.points[0],i,o,d,!0),new PolynomialBezier(d,c,a,this.points[3],!0)]};function extrema(e,i){var s=e.points[0][i],a=e.points[e.points.length-1][i];if(s>a){var o=a;a=s,s=o}for(var c=quadRoots(3*e.a[i],2*e.b[i],e.c[i]),d=0;d0&&c[d]<1){var g=e.point(c[d])[i];ga&&(a=g)}return{min:s,max:a}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function intersectData(e,i,s){var a=e.boundingBox();return{cx:a.cx,cy:a.cy,width:a.width,height:a.height,bez:e,t:(i+s)/2,t1:i,t2:s}}function splitData(e){var i=e.bez.split(.5);return[intersectData(i[0],e.t1,e.t),intersectData(i[1],e.t,e.t2)]}function boxIntersect(e,i){return Math.abs(e.cx-i.cx)*2=c||e.width<=a&&e.height<=a&&i.width<=a&&i.height<=a){o.push([e.t,i.t]);return}var d=splitData(e),g=splitData(i);intersectsImpl(d[0],g[0],s+1,a,o,c),intersectsImpl(d[0],g[1],s+1,a,o,c),intersectsImpl(d[1],g[0],s+1,a,o,c),intersectsImpl(d[1],g[1],s+1,a,o,c)}}PolynomialBezier.prototype.intersections=function(e,i,s){i===void 0&&(i=2),s===void 0&&(s=7);var a=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,i,a,s),a},PolynomialBezier.shapeSegment=function(e,i){var s=(i+1)%e.length();return new PolynomialBezier(e.v[i],e.o[i],e.i[s],e.v[s],!0)},PolynomialBezier.shapeSegmentInverted=function(e,i){var s=(i+1)%e.length();return new PolynomialBezier(e.v[s],e.i[s],e.o[i],e.v[i],!0)};function crossProduct(e,i){return[e[1]*i[2]-e[2]*i[1],e[2]*i[0]-e[0]*i[2],e[0]*i[1]-e[1]*i[0]]}function lineIntersection(e,i,s,a){var o=[e[0],e[1],1],c=[i[0],i[1],1],d=[s[0],s[1],1],g=[a[0],a[1],1],_=crossProduct(crossProduct(o,c),crossProduct(d,g));return floatZero(_[2])?null:[_[0]/_[2],_[1]/_[2]]}function polarOffset(e,i,s){return[e[0]+Math.cos(i)*s,e[1]-Math.sin(i)*s]}function pointDistance(e,i){return Math.hypot(e[0]-i[0],e[1]-i[1])}function pointEqual(e,i){return floatEqual(e[0],i[0])&&floatEqual(e[1],i[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,i.s,0,null,this),this.frequency=PropertyFactory.getProp(e,i.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,i.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(e,i,s,a,o,c,d){var g=s-Math.PI/2,_=s+Math.PI/2,b=i[0]+Math.cos(s)*a*o,j=i[1]-Math.sin(s)*a*o;e.setTripleAt(b,j,b+Math.cos(g)*c,j-Math.sin(g)*c,b+Math.cos(_)*d,j-Math.sin(_)*d,e.length())}function getPerpendicularVector(e,i){var s=[i[0]-e[0],i[1]-e[1]],a=-Math.PI*.5,o=[Math.cos(a)*s[0]-Math.sin(a)*s[1],Math.sin(a)*s[0]+Math.cos(a)*s[1]];return o}function getProjectingAngle(e,i){var s=i===0?e.length()-1:i-1,a=(i+1)%e.length(),o=e.v[s],c=e.v[a],d=getPerpendicularVector(o,c);return Math.atan2(0,1)-Math.atan2(d[1],d[0])}function zigZagCorner(e,i,s,a,o,c,d){var g=getProjectingAngle(i,s),_=i.v[s%i._length],b=i.v[s===0?i._length-1:s-1],j=i.v[(s+1)%i._length],st=c===2?Math.sqrt(Math.pow(_[0]-b[0],2)+Math.pow(_[1]-b[1],2)):0,_e=c===2?Math.sqrt(Math.pow(_[0]-j[0],2)+Math.pow(_[1]-j[1],2)):0;setPoint(e,i.v[s%i._length],g,d,a,_e/((o+1)*2),st/((o+1)*2))}function zigZagSegment(e,i,s,a,o,c){for(var d=0;d1&&i.length>1&&(o=getIntersection(e[0],i[i.length-1]),o)?[[e[0].split(o[0])[0]],[i[i.length-1].split(o[1])[1]]]:[s,a]}function pruneIntersections(e){for(var i,s=1;s1&&(i=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=i[0],e[0]=i[1]),e}function offsetSegmentSplit(e,i){var s=e.inflectionPoints(),a,o,c,d;if(s.length===0)return[offsetSegment(e,i)];if(s.length===1||floatEqual(s[1],1))return c=e.split(s[0]),a=c[0],o=c[1],[offsetSegment(a,i),offsetSegment(o,i)];c=e.split(s[0]),a=c[0];var g=(s[1]-s[0])/(1-s[0]);return c=c[1].split(g),d=c[0],o=c[1],[offsetSegment(a,i),offsetSegment(d,i),offsetSegment(o,i)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,i.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,i.ml,0,null,this),this.lineJoin=i.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(e,i,s,a){var o=shapePool.newElement();o.c=e.c;var c=e.length();e.c||(c-=1);var d,g,_,b=[];for(d=0;d=0;d-=1)_=PolynomialBezier.shapeSegmentInverted(e,d),b.push(offsetSegmentSplit(_,i));b=pruneIntersections(b);var j=null,st=null;for(d=0;d0&&(_t=!1),_t){var At=createTag("style");At.setAttribute("f-forigin",ot[lt].fOrigin),At.setAttribute("f-origin",ot[lt].origin),At.setAttribute("f-family",ot[lt].fFamily),At.type="text/css",At.innerText="@font-face {font-family: "+ot[lt].fFamily+"; font-style: normal; src: url('"+ot[lt].fPath+"');}",vt.appendChild(At)}}else if(ot[lt].fOrigin==="g"||ot[lt].origin===1){for(kt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Pt=0;Pt=55296&&ot<=56319){var lt=ft.charCodeAt(1);lt>=56320&<<=57343&&(vt=(ot-55296)*1024+lt-56320+65536)}return vt}function ht(ft,vt){var ot=ft.toString(16)+vt.toString(16);return st.indexOf(ot)!==-1}function dt(ft){return ft===_}function pt(ft){return ft===g}function yt(ft){var vt=ut(ft);return vt>=b&&vt<=j}function xt(ft){return yt(ft.substr(0,2))&&yt(ft.substr(2,2))}function wt(ft){return s.indexOf(ft)!==-1}function St(ft,vt){var ot=ut(ft.substr(vt,2));if(ot!==a)return!1;var lt=0;for(vt+=2;lt<5;){if(ot=ut(ft.substr(vt,2)),otd)return!1;lt+=1,vt+=2}return ut(ft.substr(vt,2))===o}function Ct(){this.isLoaded=!0}var bt=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};bt.isModifier=ht,bt.isZeroWidthJoiner=dt,bt.isFlagEmoji=xt,bt.isRegionalCode=yt,bt.isCombinedCharacter=wt,bt.isRegionalFlag=St,bt.isVariationSelector=pt,bt.BLACK_FLAG_CODE_POINT=a;var Et={addChars:et,addFonts:ct,getCharData:tt,getFontByName:nt,measureText:$,checkLoadedFonts:it,setIsLoaded:Ct};return bt.prototype=Et,bt}();function SlotManager(e){this.animationData=e}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(i){this.renderableComponents.indexOf(i)===-1&&this.renderableComponents.push(i)},removeRenderableComponent:function(i){this.renderableComponents.indexOf(i)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(i),1)},prepareRenderableFrame:function(i){this.checkLayerLimits(i)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(i){this.data.ip-this.data.st<=i&&this.data.op-this.data.st>i?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var i,s=this.renderableComponents.length;for(i=0;i.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(e){var i,s=this.layers.length,a;for(this.completeLayers=!0,i=s-1;i>=0;i-=1)this.elements[i]||(a=this.layers[i],a.ip-a.st<=e-this.layers[i].st&&a.op-a.st>e-this.layers[i].st&&this.buildItem(i)),this.completeLayers=this.elements[i]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,i=this.layers.length;for(e=0;e0&&(this.maskElement.setAttribute("id",_e),this.element.maskedElement.setAttribute(tt,"url("+getLocationHref()+"#"+_e+")"),a.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var i=this.element.finalTransform.mat,s,a=this.masksProperties.length;for(s=0;s1&&(a+=" C"+i.o[o-1][0]+","+i.o[o-1][1]+" "+i.i[0][0]+","+i.i[0][1]+" "+i.v[0][0]+","+i.v[0][1]),s.lastPath!==a){var d="";s.elem&&(i.c&&(d=e.inv?this.solidPath+a:a),s.elem.setAttribute("d",d)),s.lastPath=a}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={};e.createFilter=i,e.createAlphaToLuminanceFilter=s;function i(a,o){var c=createNS("filter");return c.setAttribute("id",a),o!==!0&&(c.setAttribute("filterUnits","objectBoundingBox"),c.setAttribute("x","0%"),c.setAttribute("y","0%"),c.setAttribute("width","100%"),c.setAttribute("height","100%")),c}function s(){var a=createNS("feColorMatrix");return a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),a}return e}(),featureSupport=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var i,s="SourceGraphic",a=e.data.ef?e.data.ef.length:0,o=createElementID(),c=filtersFactory.createFilter(o,!0),d=0;this.filters=[];var g;for(i=0;i=0&&(a=this.shapeModifiers[i].processShapes(this._isFirstFrame),!a);i-=1);}},searchProcessedElement:function(i){for(var s=this.processedElements,a=0,o=s.length;a.01)return!1;s+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,i=this.data.k.k.length;e0;)et=_e.transformers[yt].mProps._mdf||et,pt-=1,yt-=1;if(et)for(pt=ut-_e.styles[$].lvl,yt=_e.transformers.length-1;pt>0;)dt.multiply(_e.transformers[yt].mProps.v),pt-=1,yt-=1}else dt=e;if(ht=_e.sh.paths,rt=ht._length,et){for(ct="",it=0;it=1?Ct=.99:Ct<=-1&&(Ct=-.99);var bt=wt*Ct,Et=Math.cos(St+_e.a.v)*bt+ct[0],ft=Math.sin(St+_e.a.v)*bt+ct[1];it.setAttribute("fx",Et),it.setAttribute("fy",ft),rt&&!_e.g._collapsable&&(_e.of.setAttribute("fx",Et),_e.of.setAttribute("fy",ft))}}}function j(st,_e,at){var it=_e.style,rt=_e.d;rt&&(rt._mdf||at)&&rt.dashStr&&(it.pElem.setAttribute("stroke-dasharray",rt.dashStr),it.pElem.setAttribute("stroke-dashoffset",rt.dashoffset[0])),_e.c&&(_e.c._mdf||at)&&it.pElem.setAttribute("stroke","rgb("+bmFloor(_e.c.v[0])+","+bmFloor(_e.c.v[1])+","+bmFloor(_e.c.v[2])+")"),(_e.o._mdf||at)&&it.pElem.setAttribute("stroke-opacity",_e.o.v),(_e.w._mdf||at)&&(it.pElem.setAttribute("stroke-width",_e.w.v),it.msElem&&it.msElem.setAttribute("stroke-width",_e.w.v))}return s}();function SVGShapeElement(e,i,s){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,i,s),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,i=this.shapes.length,s,a,o=this.stylesList.length,c,d=[],g=!1;for(a=0;a1&&g&&this.setShapesAsAnimated(d)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var i,s=e.length;for(i=0;i=0;_-=1){if(ct=this.searchProcessedElement(e[_]),ct?i[_]=s[ct-1]:e[_]._render=d,e[_].ty==="fl"||e[_].ty==="st"||e[_].ty==="gf"||e[_].ty==="gs"||e[_].ty==="no")ct?i[_].style.closed=!1:i[_]=this.createStyleElement(e[_],o),e[_]._render&&i[_].style.pElem.parentNode!==a&&a.appendChild(i[_].style.pElem),_e.push(i[_].style);else if(e[_].ty==="gr"){if(!ct)i[_]=this.createGroupElement(e[_]);else for(st=i[_].it.length,j=0;j1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var i=this.currentData,s=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var a,o=this.effectsSequence.length,c=e||this.data.d.k[this.keysIndex].s;for(a=0;ai);)s+=1;return this.keysIndex!==s&&(this.keysIndex=s),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var i=[],s=0,a=e.length,o,c,d=!1,g=!1,_="";s=55296&&o<=56319?FontManager.isRegionalFlag(e,s)?_=e.substr(s,14):(c=e.charCodeAt(s+1),c>=56320&&c<=57343&&(FontManager.isModifier(o,c)?(_=e.substr(s,2),d=!0):FontManager.isFlagEmoji(e.substr(s,4))?_=e.substr(s,4):_=e.substr(s,2))):o>56319?(c=e.charCodeAt(s+1),FontManager.isVariationSelector(o)&&(d=!0)):FontManager.isZeroWidthJoiner(o)&&(d=!0,g=!0),d?(i[i.length-1]+=_,d=!1):i.push(_),s+=_.length;return i},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var i=this.elem.globalData.fontManager,s=this.data,a=[],o,c,d,g=0,_,b=s.m.g,j=0,st=0,_e=0,at=[],it=0,rt=0,ct,et,tt=i.getFontByName(e.f),$,nt=0,ut=getFontProperties(tt);e.fWeight=ut.weight,e.fStyle=ut.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),c=e.finalText.length,e.finalLineHeight=e.lh;var ht=e.tr/1e3*e.finalSize,dt;if(e.sz)for(var pt=!0,yt=e.sz[0],xt=e.sz[1],wt,St;pt;){St=this.buildFinalText(e.t),wt=0,it=0,c=St.length,ht=e.tr/1e3*e.finalSize;var Ct=-1;for(o=0;oyt&&St[o]!==" "?(Ct===-1?c+=1:o=Ct,wt+=e.finalLineHeight||e.finalSize*1.2,St.splice(o,Ct===o?1:0,"\r"),Ct=-1,it=0):(it+=nt,it+=ht);wt+=tt.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&xtrt?it:rt,it=-2*ht,_="",d=!0,_e+=1):_=Et,i.chars?($=i.getCharData(Et,tt.fStyle,i.getFontByName(e.f).fFamily),nt=d?0:$.w*e.finalSize/100):nt=i.measureText(_,e.f,e.finalSize),Et===" "?bt+=nt+ht:(it+=nt+ht+bt,bt=0),a.push({l:nt,an:nt,add:j,n:d,anIndexes:[],val:_,line:_e,animatorJustifyOffset:0}),b==2){if(j+=nt,_===""||_===" "||o===c-1){for((_===""||_===" ")&&(j-=nt);st<=o;)a[st].an=j,a[st].ind=g,a[st].extra=nt,st+=1;g+=1,j=0}}else if(b==3){if(j+=nt,_===""||o===c-1){for(_===""&&(j-=nt);st<=o;)a[st].an=j,a[st].ind=g,a[st].extra=nt,st+=1;j=0,g+=1}}else a[g].ind=g,a[g].extra=0,g+=1;if(e.l=a,rt=it>rt?it:rt,at.push(it),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=rt,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=at;var ft=s.a,vt,ot;et=ft.length;var lt,gt,mt=[];for(ct=0;ct0?g=this.ne.v/100:_=-this.ne.v/100,this.xe.v>0?b=1-this.xe.v/100:j=1+this.xe.v/100;var st=BezierFactory.getBezierEasing(g,_,b,j).get,_e=0,at=this.finalS,it=this.finalE,rt=this.data.sh;if(rt===2)it===at?_e=d>=it?1:0:_e=e(0,i(.5/(it-at)+(d-at)/(it-at),1)),_e=st(_e);else if(rt===3)it===at?_e=d>=it?0:1:_e=1-e(0,i(.5/(it-at)+(d-at)/(it-at),1)),_e=st(_e);else if(rt===4)it===at?_e=0:(_e=e(0,i(.5/(it-at)+(d-at)/(it-at),1)),_e<.5?_e*=2:_e=1-2*(_e-.5)),_e=st(_e);else if(rt===5){if(it===at)_e=0;else{var ct=it-at;d=i(e(0,d+.5-at),it-at);var et=-ct/2+d,tt=ct/2;_e=Math.sqrt(1-et*et/(tt*tt))}_e=st(_e)}else rt===6?(it===at?_e=0:(d=i(e(0,d+.5-at),it-at),_e=(1+Math.cos(Math.PI+Math.PI*2*d/(it-at)))/2),_e=st(_e)):(d>=s(at)&&(d-at<0?_e=e(0,i(i(it,1)-(at-d),1)):_e=e(0,i(it-d,1))),_e=st(_e));if(this.sm.v!==100){var $=this.sm.v*.01;$===0&&($=1e-8);var nt=.5-$*.5;_e1&&(_e=1))}return _e*this.a.v},getValue:function(d){this.iterateDynamicProperties(),this._mdf=d||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,d&&this.data.r===2&&(this.e.v=this._currentTextLength);var g=this.data.r===2?1:100/this.data.totalChars,_=this.o.v/g,b=this.s.v/g+_,j=this.e.v/g+_;if(b>j){var st=b;b=j,j=st}this.finalS=b,this.finalE=j}},extendPrototype([DynamicPropertyContainer],a);function o(c,d,g){return new a(c,d)}return{getTextSelectorProp:o}}();function TextAnimatorDataProperty(e,i,s){var a={propType:!1},o=PropertyFactory.getProp,c=i.a;this.a={r:c.r?o(e,c.r,0,degToRads,s):a,rx:c.rx?o(e,c.rx,0,degToRads,s):a,ry:c.ry?o(e,c.ry,0,degToRads,s):a,sk:c.sk?o(e,c.sk,0,degToRads,s):a,sa:c.sa?o(e,c.sa,0,degToRads,s):a,s:c.s?o(e,c.s,1,.01,s):a,a:c.a?o(e,c.a,1,0,s):a,o:c.o?o(e,c.o,0,.01,s):a,p:c.p?o(e,c.p,1,0,s):a,sw:c.sw?o(e,c.sw,0,0,s):a,sc:c.sc?o(e,c.sc,1,0,s):a,fc:c.fc?o(e,c.fc,1,0,s):a,fh:c.fh?o(e,c.fh,0,0,s):a,fs:c.fs?o(e,c.fs,0,.01,s):a,fb:c.fb?o(e,c.fb,0,.01,s):a,t:c.t?o(e,c.t,0,0,s):a},this.s=TextSelectorProp.getTextSelectorProp(e,i.s,s),this.s.t=i.s.t}function TextAnimatorProperty(e,i,s){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=i,this._elem=s,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(s)}TextAnimatorProperty.prototype.searchProperties=function(){var e,i=this._textData.a.length,s,a=PropertyFactory.getProp;for(e=0;e=it+Nt||!ut?(yt=(it+Nt-ct)/rt.partialLength,Pt=nt.point[0]+(rt.point[0]-nt.point[0])*yt,At=nt.point[1]+(rt.point[1]-nt.point[1])*yt,c.translate(-s[0]*_e[j].an*.005,-(s[1]*bt)*.01),et=!1):ut&&(ct+=rt.partialLength,tt+=1,tt>=ut.length&&(tt=0,$+=1,ht[$]?ut=ht[$].points:wt.v.c?(tt=0,$=0,ut=ht[$].points):(ct-=rt.partialLength,ut=null)),ut&&(nt=rt,rt=ut[tt],dt=rt.partialLength));kt=_e[j].an/2-_e[j].add,c.translate(-kt,0,0)}else kt=_e[j].an/2-_e[j].add,c.translate(-kt,0,0),c.translate(-s[0]*_e[j].an*.005,-s[1]*bt*.01,0);for(ot=0;ote?this.textSpans[e].span:createNS(g?"g":"text"),$<=e){if(_.setAttribute("stroke-linecap","butt"),_.setAttribute("stroke-linejoin","round"),_.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=_,g){var ut=createNS("g");_.appendChild(ut),this.textSpans[e].childSpan=ut}this.textSpans[e].span=_,this.layerElement.appendChild(_)}_.style.display="inherit"}if(b.reset(),st&&(d[e].n&&(_e=-rt,at+=s.yOffset,at+=it?1:0,it=!1),this.applyTextPropertiesToMatrix(s,b,d[e].line,_e,at),_e+=d[e].l||0,_e+=rt),g){nt=this.globalData.fontManager.getCharData(s.finalText[e],a.fStyle,this.globalData.fontManager.getFontByName(s.f).fFamily);var ht;if(nt.t===1)ht=new SVGCompElement(nt.data,this.globalData,this);else{var dt=emptyShapeData;nt.data&&nt.data.shapes&&(dt=this.buildShapeData(nt.data,s.finalSize)),ht=new SVGShapeElement(dt,this.globalData,this)}if(this.textSpans[e].glyph){var pt=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(pt.layerElement),pt.destroy()}this.textSpans[e].glyph=ht,ht._debug=!0,ht.prepareFrame(0),ht.renderFrame(),this.textSpans[e].childSpan.appendChild(ht.layerElement),nt.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+s.finalSize/100+","+s.finalSize/100+")")}else st&&_.setAttribute("transform","translate("+b.props[12]+","+b.props[13]+")"),_.textContent=d[e].val,_.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}st&&_&&_.setAttribute("d",j)}for(;e=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(e-this.layers[i].st);if(this.globalData._mdf)for(i=0;i=0;s-=1)(this.completeLayers||this.elements[s])&&(this.elements[s].prepareFrame(this.renderedFrame-this.layers[s].st),this.elements[s]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,i=this.layers.length;for(e=0;e=0;a-=1)i.finalTransform.multiply(i.transforms[a].transform.mProps.v);i._mdf=c},processSequences:function(i){var s,a=this.sequenceList.length;for(s=0;s=1){this.buffers=[];var i=this.globalData.canvasContext,s=assetLoader.createCanvas(i.canvas.width,i.canvas.height);this.buffers.push(s);var a=assetLoader.createCanvas(i.canvas.width,i.canvas.height);this.buffers.push(a),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var i=this.globalData;if(i.blendMode!==this.data.bm){i.blendMode=this.data.bm;var s=getBlendMode(this.data.bm);i.canvasContext.globalCompositeOperation=s}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(i){i.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var i=this.buffers[0],s=i.getContext("2d");this.clearCanvas(s),s.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var i=this.buffers[1],s=i.getContext("2d");this.clearCanvas(s),s.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var a=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(a.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var o=assetLoader.getLumaCanvas(this.canvasContext.canvas),c=o.getContext("2d");c.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(o,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(i,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(i){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!i)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var s=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(s),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(s),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(e,i,s,a){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var o=4;i.ty==="rc"?o=5:i.ty==="el"?o=6:i.ty==="sr"&&(o=7),this.sh=ShapePropertyFactory.getShapeProp(e,i,o,e);var c,d=s.length,g;for(c=0;c=0;c-=1){if(st=this.searchProcessedElement(e[c]),st?i[c]=s[st-1]:e[c]._shouldRender=a,e[c].ty==="fl"||e[c].ty==="st"||e[c].ty==="gf"||e[c].ty==="gs")st?i[c].style.closed=!1:i[c]=this.createStyleElement(e[c],it),b.push(i[c].style);else if(e[c].ty==="gr"){if(!st)i[c]=this.createGroupElement(e[c]);else for(_=i[c].it.length,g=0;g<_;g+=1)i[c].prevViewData[g]=i[c].it[g];this.searchShapes(e[c].it,i[c].it,i[c].prevViewData,a,it)}else e[c].ty==="tr"?(st||(at=this.createTransformElement(e[c]),i[c]=at),it.push(i[c]),this.addTransformToStyleList(i[c])):e[c].ty==="sh"||e[c].ty==="rc"||e[c].ty==="el"||e[c].ty==="sr"?st||(i[c]=this.createShapeElement(e[c])):e[c].ty==="tm"||e[c].ty==="rd"||e[c].ty==="pb"||e[c].ty==="zz"||e[c].ty==="op"?(st?(_e=i[c],_e.closed=!1):(_e=ShapeModifiers.getModifier(e[c].ty),_e.init(this,e[c]),i[c]=_e,this.shapeModifiers.push(_e)),j.push(_e)):e[c].ty==="rp"&&(st?(_e=i[c],_e.closed=!0):(_e=ShapeModifiers.getModifier(e[c].ty),i[c]=_e,_e.init(this,e,c,i),this.shapeModifiers.push(_e),a=!1),j.push(_e));this.addProcessedElement(e[c],c+1)}for(this.removeTransformFromStyleList(),this.closeStyles(b),d=j.length,c=0;c=0;o-=1)i[o].ty==="tr"?(d=s[o].transform,this.renderShapeTransform(e,d)):i[o].ty==="sh"||i[o].ty==="el"||i[o].ty==="rc"||i[o].ty==="sr"?this.renderPath(i[o],s[o]):i[o].ty==="fl"?this.renderFill(i[o],s[o],d):i[o].ty==="st"?this.renderStroke(i[o],s[o],d):i[o].ty==="gf"||i[o].ty==="gs"?this.renderGradientFill(i[o],s[o],d):i[o].ty==="gr"?this.renderShape(d,i[o].it,s[o].it):i[o].ty;a&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,i){if(this._isFirstFrame||i._mdf||e.transforms._mdf){var s=e.trNodes,a=i.paths,o,c,d,g=a._length;s.length=0;var _=e.transforms.finalTransform;for(d=0;d=1?j=.99:j<=-1&&(j=-.99);var st=_*j,_e=Math.cos(b+i.a.v)*st+d[0],at=Math.sin(b+i.a.v)*st+d[1];o=c.createRadialGradient(_e,at,0,d[0],d[1],_)}var it,rt=e.g.p,ct=i.g.c,et=1;for(it=0;itc&&_==="xMidYMid slice"||oo&&g==="meet"||co&&g==="slice")?this.transformCanvas.tx=(s-this.transformCanvas.w*(a/this.transformCanvas.h))/2*this.renderConfig.dpr:b==="xMax"&&(co&&g==="slice")?this.transformCanvas.tx=(s-this.transformCanvas.w*(a/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,j==="YMid"&&(c>o&&g==="meet"||co&&g==="meet"||c=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,i){if(!(this.renderedFrame===e&&this.renderConfig.clearCanvas===!0&&!i||this.destroyed||e===-1)){this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||i,this.globalData.projectInterface.currentFrame=e;var s,a=this.layers.length;for(this.completeLayers||this.checkLayers(e),s=a-1;s>=0;s-=1)(this.completeLayers||this.elements[s])&&this.elements[s].prepareFrame(e-this.layers[s].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),s=a-1;s>=0;s-=1)(this.completeLayers||this.elements[s])&&this.elements[s].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var i=this.elements;if(!(i[e]||this.layers[e].ty===99)){var s=this.createItem(this.layers[e],this,this.globalData);i[e]=s,s.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var e,i=15;for(e=0;e=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame()},CVCompElement.prototype.destroy=function(){var e,i=this.layers.length;for(e=i-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function CanvasRenderer(e,i){this.animationItem=e,this.renderConfig={clearCanvas:i&&i.clearCanvas!==void 0?i.clearCanvas:!0,context:i&&i.context||null,progressiveLoad:i&&i.progressiveLoad||!1,preserveAspectRatio:i&&i.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:i&&i.contentVisibility||"visible",className:i&&i.className||"",id:i&&i.id||"",runExpressions:!i||i.runExpressions===void 0||i.runExpressions},this.renderConfig.dpr=i&&i.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=i&&i.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var i=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var s=this.finalTransform.mat.toCSS();i.transform=s,i.webkitTransform=s}this.finalTransform._opMdf&&(i.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(e,i,s){this.initElement(e,i,s)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?(e=createNS("rect"),e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(e=createTag("div"),e.style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)};function HShapeElement(e,i,s){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,i,s),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var i=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",i.w),e.setAttribute("height",i.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,i){var s,a=e.length;for(s=0;s0&&_<1&&o[_e].push(this.calculateF(_,e,i,s,a,_e))):(b=d*d-4*g*c,b>=0&&(j=(-d+bmSqrt(b))/(2*c),j>0&&j<1&&o[_e].push(this.calculateF(j,e,i,s,a,_e)),st=(-d-bmSqrt(b))/(2*c),st>0&&st<1&&o[_e].push(this.calculateF(st,e,i,s,a,_e)))));this.shapeBoundingBox.left=bmMin.apply(null,o[0]),this.shapeBoundingBox.top=bmMin.apply(null,o[1]),this.shapeBoundingBox.right=bmMax.apply(null,o[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,o[1])},HShapeElement.prototype.calculateF=function(e,i,s,a,o,c){return bmPow(1-e,3)*i[c]+3*bmPow(1-e,2)*e*s[c]+3*(1-e)*bmPow(e,2)*a[c]+bmPow(e,3)*o[c]},HShapeElement.prototype.calculateBoundingBox=function(e,i){var s,a=e.length;for(s=0;ss&&(s=o)}s*=e.mult}else s=e.v*e.mult;i.x-=s,i.xMax+=s,i.y-=s,i.yMax+=s},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,i=999999;if(e.x=i,e.xMax=-i,e.y=i,e.yMax=-i,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax=0;i-=1){var a=this.hierarchy[i].finalTransform.mProp;this.mat.translate(-a.p.v[0],-a.p.v[1],a.p.v[2]),this.mat.rotateX(-a.or.v[0]).rotateY(-a.or.v[1]).rotateZ(a.or.v[2]),this.mat.rotateX(-a.rx.v).rotateY(-a.ry.v).rotateZ(a.rz.v),this.mat.scale(1/a.s.v[0],1/a.s.v[1],1/a.s.v[2]),this.mat.translate(a.a.v[0],a.a.v[1],a.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var o;this.p?o=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:o=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var c=Math.sqrt(Math.pow(o[0],2)+Math.pow(o[1],2)+Math.pow(o[2],2)),d=[o[0]/c,o[1]/c,o[2]/c],g=Math.sqrt(d[2]*d[2]+d[0]*d[0]),_=Math.atan2(d[1],g),b=Math.atan2(d[0],-d[2]);this.mat.rotateY(b).rotateX(-_)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var j=!this._prevMat.equals(this.mat);if((j||this.pe._mdf)&&this.comp.threeDElements){s=this.comp.threeDElements.length;var st,_e,at;for(i=0;i=e)return this.threeDElements[i].perspectiveElem;i+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,i){var s=createTag("div"),a,o;styleDiv(s);var c=createTag("div");if(styleDiv(c),i==="3d"){a=s.style,a.width=this.globalData.compSize.w+"px",a.height=this.globalData.compSize.h+"px";var d="50% 50%";a.webkitTransformOrigin=d,a.mozTransformOrigin=d,a.transformOrigin=d,o=c.style;var g="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";o.transform=g,o.webkitTransform=g}s.appendChild(c);var _={container:c,perspectiveElem:s,startPos:e,endPos:e,type:i};return this.threeDElements.push(_),_},HybridRendererBase.prototype.build3dContainers=function(){var e,i=this.layers.length,s,a="";for(e=0;e=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,i){for(var s=0,a=this.threeDElements.length;ss?(o=e/this.globalData.compSize.w,c=e/this.globalData.compSize.w,d=0,g=(i-this.globalData.compSize.h*(e/this.globalData.compSize.w))/2):(o=i/this.globalData.compSize.h,c=i/this.globalData.compSize.h,d=(e-this.globalData.compSize.w*(i/this.globalData.compSize.h))/2,g=0);var _=this.resizerElem.style;_.webkitTransform="matrix3d("+o+",0,0,0,0,"+c+",0,0,0,0,1,0,"+d+","+g+",0,1)",_.transform=_.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e=this.globalData.compSize.w,i=this.globalData.compSize.h,s,a=this.threeDElements.length;for(s=0;s=b;)wt/=2,St/=2,Ct>>>=1;return(wt+Ct)/St};return yt.int32=function(){return pt.g(4)|0},yt.quick=function(){return pt.g(4)/4294967296},yt.double=yt,ct(tt(pt.S),e),(nt.pass||ut||function(xt,wt,St,Ct){return Ct&&(Ct.S&&it(Ct,pt),xt.state=function(){return it(pt,{})}),St?(i[d]=xt,wt):xt})(yt,dt,"global"in nt?nt.global:this==i,nt.state)}i["seed"+d]=_e;function at($){var nt,ut=$.length,ht=this,dt=0,pt=ht.i=ht.j=0,yt=ht.S=[];for(ut||($=[ut++]);dts){var a=s;s=i,i=a}return Math.min(Math.max(e,i),s)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,i){if(typeof e=="number"||e instanceof Number)return i=i||0,Math.abs(e-i);i||(i=helperLengthArray);var s,a=Math.min(e.length,i.length),o=0;for(s=0;s.5?b/(2-o-c):b/(o+c),o){case i:d=(s-a)/b+(s1&&(s-=1),s<1/6?e+(i-e)*6*s:s<1/2?i:s<2/3?e+(i-e)*(2/3-s)*6:e}function hslToRgb(e){var i=e[0],s=e[1],a=e[2],o,c,d;if(s===0)o=a,d=a,c=a;else{var g=a<.5?a*(1+s):a+s-a*s,_=2*a-g;o=hue2rgb(_,g,i+1/3),c=hue2rgb(_,g,i),d=hue2rgb(_,g,i-1/3)}return[o,c,d,e[3]]}function linear(e,i,s,a,o){if((a===void 0||o===void 0)&&(a=i,o=s,i=0,s=1),s=s)return o;var d=s===i?0:(e-i)/(s-i);if(!a.length)return a+(o-a)*d;var g,_=a.length,b=createTypedArray("float32",_);for(g=0;g<_;g+=1)b[g]=a[g]+(o[g]-a[g])*d;return b}function random(e,i){if(i===void 0&&(e===void 0?(e=0,i=1):(i=e,e=void 0)),i.length){var s,a=i.length;e||(e=createTypedArray("float32",a));var o=createTypedArray("float32",a),c=BMMath.random();for(s=0;s1){for(o=0;o1?i=1:i<0&&(i=0);var d=e(i);if($bm_isInstanceOfArray(o)){var g,_=o.length,b=createTypedArray("float32",_);for(g=0;g<_;g+=1)b[g]=(c[g]-o[g])*d+o[g];return b}return(c-o)*d+o}function nearestKey(e){var i,s=data.k.length,a,o;if(!data.k.length||typeof data.k[0]=="number")a=0,o=0;else if(a=-1,e*=elem.comp.globalData.frameRate,edata.k[i].t&&edata.k[i+1].t-e?(a=i+2,o=data.k[i+1].t):(a=i+1,o=data.k[i].t);break}a===-1&&(a=i+1,o=data.k[i].t)}var c={};return c.index=a,c.time=o/elem.comp.globalData.frameRate,c}function key(e){var i,s,a;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+e);e-=1,i={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var o=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(a=o.length,s=0;sct.length-1)&&(at=ct.length-1),$=ct[ct.length-1-at].t,tt=et-$);var nt,ut,ht;if(_e==="pingpong"){var dt=Math.floor((rt-$)/tt);if(dt%2!==0)return this.getValueAtTime((tt-(rt-$)%tt+$)/this.comp.globalData.frameRate,0)}else if(_e==="offset"){var pt=this.getValueAtTime($/this.comp.globalData.frameRate,0),yt=this.getValueAtTime(et/this.comp.globalData.frameRate,0),xt=this.getValueAtTime(((rt-$)%tt+$)/this.comp.globalData.frameRate,0),wt=Math.floor((rt-$)/tt);if(this.pv.length){for(ht=new Array(pt.length),ut=ht.length,nt=0;nt=et)return this.pv;var tt,$;it?(at?tt=Math.abs(this.elem.comp.globalData.frameRate*at):tt=Math.max(0,this.elem.data.op-et),$=et+tt):((!at||at>ct.length-1)&&(at=ct.length-1),$=ct[at].t,tt=$-et);var nt,ut,ht;if(_e==="pingpong"){var dt=Math.floor((et-rt)/tt);if(dt%2===0)return this.getValueAtTime(((et-rt)%tt+et)/this.comp.globalData.frameRate,0)}else if(_e==="offset"){var pt=this.getValueAtTime(et/this.comp.globalData.frameRate,0),yt=this.getValueAtTime($/this.comp.globalData.frameRate,0),xt=this.getValueAtTime((tt-(et-rt)%tt+et)/this.comp.globalData.frameRate,0),wt=Math.floor((et-rt)/tt)+1;if(this.pv.length){for(ht=new Array(pt.length),ut=ht.length,nt=0;nt1?(ct-rt)/(at-1):1,tt=0,$=0,nt;this.pv.length?nt=createTypedArray("float32",this.pv.length):nt=0;for(var ut;tttt){var dt=$,pt=rt.c&&$===nt-1?0:$+1,yt=(tt-ut)/et[$].addedLength;ht=bez.getPointInSegment(rt.v[dt],rt.v[pt],rt.o[dt],rt.i[pt],yt,et[$]);break}else ut+=et[$].addedLength;$+=1}return ht||(ht=rt.c?[rt.v[0][0],rt.v[0][1]]:[rt.v[rt._length-1][0],rt.v[rt._length-1][1]]),ht},vectorOnPath:function(at,it,rt){at==1?at=this.v.c:at==0&&(at=.999);var ct=this.pointOnPath(at,it),et=this.pointOnPath(at+.001,it),tt=et[0]-ct[0],$=et[1]-ct[1],nt=Math.sqrt(Math.pow(tt,2)+Math.pow($,2));if(nt===0)return[0,0];var ut=rt==="tangent"?[tt/nt,$/nt]:[-$/nt,tt/nt];return ut},tangentOnPath:function(at,it){return this.vectorOnPath(at,it,"tangent")},normalOnPath:function(at,it){return this.vectorOnPath(at,it,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([j],_),extendPrototype([j],b),b.prototype.getValueAtTime=g,b.prototype.initiateExpression=ExpressionManager.initiateExpression;var st=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(_e,at,it,rt,ct){var et=st(_e,at,it,rt,ct);return et.propertyIndex=at.ix,et.lock=!1,it===3?expressionHelpers.searchExpressions(_e,at.pt,et):it===4&&expressionHelpers.searchExpressions(_e,at.ks,et),et.k&&_e.addDynamicProperty(et),et}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function e(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(i,s){var a=this.calculateExpression(s);if(i.t!==a){var o={};return this.copyData(o,i),o.t=a.toString(),o.__complete=!1,o}return i},TextProperty.prototype.searchProperty=function(){var i=this.searchKeyframes(),s=this.searchExpressions();return this.kf=i||s,this.kf},TextProperty.prototype.searchExpressions=e}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function e(i,s){var a=createNS("feMerge");a.setAttribute("result",i);var o,c;for(c=0;c=b?st=it<0?a:o:st=a+at*Math.pow((g-e)/it,1/s),j[_e]=st,_e+=1,c+=256/(d-1);return j.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var i,s=this.filterManager.effectElements;this.feFuncRComposed&&(e||s[3].p._mdf||s[4].p._mdf||s[5].p._mdf||s[6].p._mdf||s[7].p._mdf)&&(i=this.getTableValue(s[3].p.v,s[4].p.v,s[5].p.v,s[6].p.v,s[7].p.v),this.feFuncRComposed.setAttribute("tableValues",i),this.feFuncGComposed.setAttribute("tableValues",i),this.feFuncBComposed.setAttribute("tableValues",i)),this.feFuncR&&(e||s[10].p._mdf||s[11].p._mdf||s[12].p._mdf||s[13].p._mdf||s[14].p._mdf)&&(i=this.getTableValue(s[10].p.v,s[11].p.v,s[12].p.v,s[13].p.v,s[14].p.v),this.feFuncR.setAttribute("tableValues",i)),this.feFuncG&&(e||s[17].p._mdf||s[18].p._mdf||s[19].p._mdf||s[20].p._mdf||s[21].p._mdf)&&(i=this.getTableValue(s[17].p.v,s[18].p.v,s[19].p.v,s[20].p.v,s[21].p.v),this.feFuncG.setAttribute("tableValues",i)),this.feFuncB&&(e||s[24].p._mdf||s[25].p._mdf||s[26].p._mdf||s[27].p._mdf||s[28].p._mdf)&&(i=this.getTableValue(s[24].p.v,s[25].p.v,s[26].p.v,s[27].p.v,s[28].p.v),this.feFuncB.setAttribute("tableValues",i)),this.feFuncA&&(e||s[31].p._mdf||s[32].p._mdf||s[33].p._mdf||s[34].p._mdf||s[35].p._mdf)&&(i=this.getTableValue(s[31].p.v,s[32].p.v,s[33].p.v,s[34].p.v,s[35].p.v),this.feFuncA.setAttribute("tableValues",i))}};function SVGDropShadowEffect(e,i,s,a,o){var c=i.container.globalData.renderConfig.filterSize,d=i.data.fs||c;e.setAttribute("x",d.x||c.x),e.setAttribute("y",d.y||c.y),e.setAttribute("width",d.width||c.width),e.setAttribute("height",d.height||c.height),this.filterManager=i;var g=createNS("feGaussianBlur");g.setAttribute("in","SourceAlpha"),g.setAttribute("result",a+"_drop_shadow_1"),g.setAttribute("stdDeviation","0"),this.feGaussianBlur=g,e.appendChild(g);var _=createNS("feOffset");_.setAttribute("dx","25"),_.setAttribute("dy","0"),_.setAttribute("in",a+"_drop_shadow_1"),_.setAttribute("result",a+"_drop_shadow_2"),this.feOffset=_,e.appendChild(_);var b=createNS("feFlood");b.setAttribute("flood-color","#00ff00"),b.setAttribute("flood-opacity","1"),b.setAttribute("result",a+"_drop_shadow_3"),this.feFlood=b,e.appendChild(b);var j=createNS("feComposite");j.setAttribute("in",a+"_drop_shadow_3"),j.setAttribute("in2",a+"_drop_shadow_2"),j.setAttribute("operator","in"),j.setAttribute("result",a+"_drop_shadow_4"),e.appendChild(j);var st=this.createMergeNode(a,[a+"_drop_shadow_4",o]);e.appendChild(st)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var i=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(i[0]*255),Math.round(i[1]*255),Math.round(i[2]*255)))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var s=this.filterManager.effectElements[3].p.v,a=(this.filterManager.effectElements[2].p.v-90)*degToRads,o=s*Math.cos(a),c=s*Math.sin(a);this.feOffset.setAttribute("dx",o),this.feOffset.setAttribute("dy",c)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,i,s){this.initialized=!1,this.filterManager=i,this.filterElem=e,this.elem=s,s.matteElement=createNS("g"),s.matteElement.appendChild(s.layerElement),s.matteElement.appendChild(s.transformedElement),s.baseElement=s.matteElement}SVGMatte3Effect.prototype.findSymbol=function(e){for(var i=0,s=_svgMatteSymbols.length;i=0)&&(s[o]=e[o]);return s}function _objectWithoutProperties(e,i){if(e==null)return{};var s=_objectWithoutPropertiesLoose(e,i),a,o;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(s[a]=e[a])}return s}function _slicedToArray(e,i){return _arrayWithHoles(e)||_iterableToArrayLimit(e,i)||_unsupportedIterableToArray(e,i)||_nonIterableRest()}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _unsupportedIterableToArray(e,i){if(e){if(typeof e=="string")return _arrayLikeToArray(e,i);var s=Object.prototype.toString.call(e).slice(8,-1);if(s==="Object"&&e.constructor&&(s=e.constructor.name),s==="Map"||s==="Set")return Array.from(e);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return _arrayLikeToArray(e,i)}}function _arrayLikeToArray(e,i){(i==null||i>e.length)&&(i=e.length);for(var s=0,a=new Array(i);s0&&arguments[0]!==void 0?arguments[0]:{},kt;if(dt.current){(kt=ht.current)===null||kt===void 0||kt.destroy();var Pt=_objectSpread2(_objectSpread2(_objectSpread2({},i),_t),{},{container:dt.current});return ht.current=lottie.loadAnimation(Pt),ut(!!ht.current),function(){var At;(At=ht.current)===null||At===void 0||At.destroy(),ht.current=void 0}}};reactExports.useEffect(function(){var mt=lt();return function(){return mt==null?void 0:mt()}},[a,o]),reactExports.useEffect(function(){ht.current&&(ht.current.autoplay=!!c)},[c]),reactExports.useEffect(function(){if(ht.current){if(!d){ht.current.resetSegments(!0);return}!Array.isArray(d)||!d.length||((ht.current.currentRawFramed[1])&&(ht.current.currentRawFrame=d[0]),ht.current.setSegment(d[0],d[1]))}},[d]),reactExports.useEffect(function(){var mt=[{name:"complete",handler:g},{name:"loopComplete",handler:_},{name:"enterFrame",handler:b},{name:"segmentStart",handler:j},{name:"config_ready",handler:st},{name:"data_ready",handler:_e},{name:"data_failed",handler:at},{name:"loaded_images",handler:it},{name:"DOMLoaded",handler:rt},{name:"destroy",handler:ct}],_t=mt.filter(function(Pt){return Pt.handler!=null});if(_t.length){var kt=_t.map(function(Pt){var At;return(At=ht.current)===null||At===void 0||At.addEventListener(Pt.name,Pt.handler),function(){var It;(It=ht.current)===null||It===void 0||It.removeEventListener(Pt.name,Pt.handler)}});return function(){kt.forEach(function(Pt){return Pt()})}}},[g,_,b,j,st,_e,at,it,rt,ct]);var gt=React.createElement("div",_objectSpread2({style:s,ref:dt},et));return{View:gt,play:pt,stop:yt,pause:xt,setSpeed:wt,goToAndStop:Ct,goToAndPlay:St,setDirection:bt,playSegments:Et,setSubframe:ft,getDuration:vt,destroy:ot,animationContainerRef:dt,animationLoaded:nt,animationItem:ht.current}};function getContainerVisibility(e){var i=e.getBoundingClientRect(),s=i.top,a=i.height,o=window.innerHeight-s,c=window.innerHeight+a;return o/c}function getContainerCursorPosition(e,i,s){var a=e.getBoundingClientRect(),o=a.top,c=a.left,d=a.width,g=a.height,_=(i-c)/d,b=(s-o)/g;return{x:_,y:b}}var useInitInteractivity=function e(i){var s=i.wrapperRef,a=i.animationItem,o=i.mode,c=i.actions;reactExports.useEffect(function(){var d=s.current;if(!(!d||!a||!c.length)){a.stop();var g=function(){var j=null,st=function(){var at=getContainerVisibility(d),it=c.find(function(ct){var et=ct.visibility;return et&&at>=et[0]&&at<=et[1]});if(it){if(it.type==="seek"&&it.visibility&&it.frames.length===2){var rt=it.frames[0]+Math.ceil((at-it.visibility[0])/(it.visibility[1]-it.visibility[0])*it.frames[1]);//! goToAndStop must be relative to the start of the current segment +a.goToAndStop(rt-a.firstFrame-1,!0)}it.type==="loop"&&(j===null||j!==it.frames||a.isPaused)&&(a.playSegments(it.frames,!0),j=it.frames),it.type==="play"&&a.isPaused&&(a.resetSegments(!0),a.play()),it.type==="stop"&&a.goToAndStop(it.frames[0]-a.firstFrame-1,!0)}};return document.addEventListener("scroll",st),function(){document.removeEventListener("scroll",st)}},_=function(){var j=function(it,rt){var ct=it,et=rt;if(ct!==-1&&et!==-1){var tt=getContainerCursorPosition(d,ct,et);ct=tt.x,et=tt.y}var $=c.find(function(ht){var dt=ht.position;return dt&&Array.isArray(dt.x)&&Array.isArray(dt.y)?ct>=dt.x[0]&&ct<=dt.x[1]&&et>=dt.y[0]&&et<=dt.y[1]:dt&&!Number.isNaN(dt.x)&&!Number.isNaN(dt.y)?ct===dt.x&&et===dt.y:!1});if($){if($.type==="seek"&&$.position&&Array.isArray($.position.x)&&Array.isArray($.position.y)&&$.frames.length===2){var nt=(ct-$.position.x[0])/($.position.x[1]-$.position.x[0]),ut=(et-$.position.y[0])/($.position.y[1]-$.position.y[0]);a.playSegments($.frames,!0),a.goToAndStop(Math.ceil((nt+ut)/2*($.frames[1]-$.frames[0])),!0)}$.type==="loop"&&a.playSegments($.frames,!0),$.type==="play"&&(a.isPaused&&a.resetSegments(!1),a.playSegments($.frames)),$.type==="stop"&&a.goToAndStop($.frames[0],!0)}},st=function(it){j(it.clientX,it.clientY)},_e=function(){j(-1,-1)};return d.addEventListener("mousemove",st),d.addEventListener("mouseout",_e),function(){d.removeEventListener("mousemove",st),d.removeEventListener("mouseout",_e)}};switch(o){case"scroll":return g();case"cursor":return _()}}},[o,a])},useLottieInteractivity=function e(i){var s=i.actions,a=i.mode,o=i.lottieObj,c=o.animationItem,d=o.View,g=o.animationContainerRef;return useInitInteractivity({actions:s,animationItem:c,mode:a,wrapperRef:g}),d},_excluded=["style","interactivity"],Lottie=function e(i){var s,a,o,c=i.style,d=i.interactivity,g=_objectWithoutProperties(i,_excluded),_=useLottie(g,c),b=_.View,j=_.play,st=_.stop,_e=_.pause,at=_.setSpeed,it=_.goToAndStop,rt=_.goToAndPlay,ct=_.setDirection,et=_.playSegments,tt=_.setSubframe,$=_.getDuration,nt=_.destroy,ut=_.animationContainerRef,ht=_.animationLoaded,dt=_.animationItem;return reactExports.useEffect(function(){i.lottieRef&&(i.lottieRef.current={play:j,stop:st,pause:_e,setSpeed:at,goToAndPlay:rt,goToAndStop:it,setDirection:ct,playSegments:et,setSubframe:tt,getDuration:$,destroy:nt,animationContainerRef:ut,animationLoaded:ht,animationItem:dt})},[(s=i.lottieRef)===null||s===void 0?void 0:s.current]),useLottieInteractivity({lottieObj:{View:b,play:j,stop:st,pause:_e,setSpeed:at,goToAndStop:it,goToAndPlay:rt,setDirection:ct,playSegments:et,setSubframe:tt,getDuration:$,destroy:nt,animationContainerRef:ut,animationLoaded:ht,animationItem:dt},actions:(a=d==null?void 0:d.actions)!==null&&a!==void 0?a:[],mode:(o=d==null?void 0:d.mode)!==null&&o!==void 0?o:"scroll"})};const v="4.8.0",meta={g:"LottieFiles AE 3.0.2",a:"",k:"",d:"",tc:"none"},fr=30,ip=0,op=166,w=600,h=600,nm="fantoma",ddd=0,assets=[{id:"comp_0",layers:[{ddd:0,ind:1,ty:4,nm:"pupile Outlines",parent:4,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:18,s:[285.25,300,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:36,s:[285.716,300,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:45,s:[285.25,300,0],to:[6,0,0],ti:[-6,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:47.5,s:[321.25,300,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:120,s:[321.25,300,0],to:[-6,0,0],ti:[6,0,0]},{t:123,s:[285.25,300,0]}],ix:2},a:{a:0,k:[300,300,0],ix:1},s:{a:1,k:[{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:18,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:20,s:[100,0,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:22,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:105,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:107,s:[100,0,100]},{t:109,s:[100,100,100]}],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,4.076],[4.076,0],[0,-4.076],[-4.076,0]],o:[[0,-4.076],[-4.076,0],[0,4.076],[4.076,0]],v:[[7.381,0],[0,-7.381],[-7.381,0],[0,7.381]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.137254901961,.121568634931,.125490196078,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[321.848,268.202],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,4.076],[4.076,0],[0,-4.076],[-4.076,0]],o:[[0,-4.076],[-4.076,0],[0,4.076],[4.076,0]],v:[[7.381,0],[0,-7.381],[-7.381,0],[0,7.381]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.137254901961,.121568634931,.125490196078,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[271.206,268.202],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 2",np:2,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1}],ip:0,op:166,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"ochi Outlines",parent:4,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:45,s:[300,300,0],to:[3.75,0,0],ti:[-3.75,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:47.5,s:[322.5,300,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.8},o:{x:.167,y:.167},t:120,s:[322.5,300,0],to:[-3.75,0,0],ti:[3.75,0,0]},{t:123,s:[300,300,0]}],ix:2},a:{a:0,k:[300,300,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,10.987],[10.987,0],[0,-10.987],[-10.987,0]],o:[[0,-10.987],[-10.987,0],[0,10.987],[10.987,0]],v:[[19.893,0],[-.001,-19.894],[-19.894,0],[-.001,19.894]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.137254901961,.121568634931,.125490196078,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:4,ix:5},lc:1,lj:1,ml:10,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.945098099054,.949019667682,.949019667682,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[314.467,268.202],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,10.987],[10.987,0],[0,-10.987],[-10.987,0]],o:[[0,-10.987],[-10.987,0],[0,10.987],[10.987,0]],v:[[19.893,0],[-.001,-19.894],[-19.894,0],[-.001,19.894]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.137254901961,.121568634931,.125490196078,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:4,ix:5},lc:1,lj:1,ml:10,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.945098099054,.949019667682,.949019667682,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[262.734,268.202],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 2",np:3,cix:2,bm:0,ix:2,mn:"ADBE Vector Group",hd:!1}],ip:0,op:166,st:0,bm:0},{ddd:0,ind:3,ty:4,nm:"gura Outlines",parent:4,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:45,s:[300,300,0],to:[3.75,0,0],ti:[-3.75,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:47.5,s:[322.5,300,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:120,s:[322.5,300,0],to:[-3.75,0,0],ti:[3.75,0,0]},{t:123,s:[300,300,0]}],ix:2},a:{a:0,k:[300,300,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[1.586,0],[0,0],[0,1.585],[0,0],[-1.586,0],[0,0],[0,-1.585],[0,0]],o:[[0,0],[-1.586,0],[0,0],[0,-1.585],[0,0],[1.586,0],[0,0],[0,1.585]],v:[[21.817,3.196],[-21.816,3.196],[-24.688,.325],[-24.688,-.325],[-21.816,-3.196],[21.817,-3.196],[24.688,-.325],[24.688,.325]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.137254901961,.121568634931,.125490196078,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[289.779,313.178],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:166,st:0,bm:0},{ddd:0,ind:4,ty:4,nm:"corp Outlines",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[300,300,0],to:[-25,0,0],ti:[-25,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:45,s:[150,300,0],to:[25,0,0],ti:[-25,0,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:120,s:[450,300,0],to:[25,0,0],ti:[25,0,0]},{t:165,s:[300,300,0]}],ix:2},a:{a:0,k:[300,300,0],ix:1},s:{a:0,k:[107.364,107.364,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,-.029],[-5.404,0],[0,5.403],[0,.026],[0,0],[-6.19,0],[0,-6.2],[0,0],[0,-.007],[-4.612,0],[-.002,4.61],[0,0],[0,.001],[0,.001],[0,0],[-6.12,0],[0,-7.11],[0,0],[0,-.139],[-4.789,0],[0,4.789],[.007,.138],[0,0],[0,0],[-7.42,0],[-1.215,-6.4],[0,0],[-3.569,0],[-.146,3.533],[0,0],[0,0],[39.19,0],[-.142,-38.616]],o:[[0,0],[0,.029],[0,5.403],[5.403,0],[0,-.026],[0,0],[0,-6.2],[6.2,0],[0,0],[0,.007],[0,4.612],[4.61,0],[0,0],[0,-.001],[0,-.001],[0,0],[1.29,-5.73],[7.11,0],[0,0],[-.007,.138],[0,4.789],[4.789,0],[0,-.139],[0,0],[0,0],[0,-7.43],[6.69,0],[0,0],[.147,3.533],[3.569,0],[0,0],[0,0],[.171,-39.19],[-39.19,0],[0,0]],v:[[-70.798,47.727],[-70.798,99.573],[-70.802,99.659],[-61.018,109.443],[-51.234,99.659],[-51.238,99.582],[-51.238,85.617],[-40.018,74.397],[-28.798,85.617],[-28.798,113.853],[-28.799,113.872],[-20.448,122.224],[-12.098,113.877],[-12.098,113.875],[-12.098,113.872],[-12.098,113.87],[-12.098,95.096],[.442,85.086],[13.312,97.947],[13.312,107.637],[13.309,108.049],[21.98,116.721],[30.651,108.049],[30.63,107.637],[30.652,107.637],[30.652,85.617],[44.092,72.167],[57.547,83.447],[57.553,99.656],[64.171,106.012],[70.789,99.656],[70.789,47.727],[70.789,-51.263],[0,-122.223],[-70.818,-51.837]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.137254901961,.121568634931,.125490196078,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:4,ix:5},lc:1,lj:1,ml:10,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[300,307.076],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:166,st:0,bm:0}]}],layers=[{ddd:0,ind:1,ty:0,nm:"fantoma fara umbra",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.667,y:1},o:{x:.333,y:0},t:0,s:[300,300,0],to:[0,1.667,0],ti:[0,0,0]},{i:{x:.667,y:1},o:{x:.333,y:0},t:10,s:[300,310,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.667,y:1},o:{x:.333,y:0},t:30,s:[300,300,0],to:[0,0,0],ti:[0,1.667,0]},{i:{x:.667,y:1},o:{x:.333,y:0},t:40,s:[300,310,0],to:[0,-1.667,0],ti:[0,5,0]},{i:{x:.667,y:1},o:{x:.333,y:0},t:60,s:[300,290,0],to:[0,-5,0],ti:[0,-5,0]},{i:{x:.667,y:1},o:{x:.333,y:0},t:70,s:[300,280,0],to:[0,5,0],ti:[0,-5,0]},{i:{x:.667,y:1},o:{x:.333,y:0},t:90,s:[300,320,0],to:[0,5,0],ti:[0,6.667,0]},{i:{x:.667,y:1},o:{x:.333,y:0},t:100,s:[300,310,0],to:[0,-6.667,0],ti:[0,3.333,0]},{i:{x:.667,y:1},o:{x:.333,y:0},t:130,s:[300,280,0],to:[0,-3.333,0],ti:[0,0,0]},{i:{x:.667,y:1},o:{x:.333,y:0},t:140,s:[300,290,0],to:[0,0,0],ti:[0,-1.667,0]},{i:{x:.667,y:1},o:{x:.333,y:0},t:150,s:[300,280,0],to:[0,1.667,0],ti:[0,-3.333,0]},{t:165,s:[300,300,0]}],ix:2},a:{a:0,k:[300,300,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ef:[{ty:5,nm:"(Transform)",np:14,mn:"ADBE Geometry2",ix:1,en:1,ef:[{ty:3,nm:"Anchor Point",mn:"ADBE Geometry2-0001",ix:1,v:{a:0,k:[0,0],ix:1}},{ty:3,nm:"Position",mn:"ADBE Geometry2-0002",ix:2,v:{a:0,k:[0,0],ix:2}},{ty:7,nm:"Uniform Scale",mn:"ADBE Geometry2-0011",ix:3,v:{a:0,k:1,ix:3}},{ty:0,nm:"Scale",mn:"ADBE Geometry2-0003",ix:4,v:{a:0,k:100,ix:4}},{ty:0,nm:" ",mn:"ADBE Geometry2-0004",ix:5,v:{a:0,k:100,ix:5}},{ty:0,nm:"Skew",mn:"ADBE Geometry2-0005",ix:6,v:{a:0,k:0,ix:6}},{ty:0,nm:"Skew Axis",mn:"ADBE Geometry2-0006",ix:7,v:{a:0,k:0,ix:7}},{ty:0,nm:"Rotation",mn:"ADBE Geometry2-0007",ix:8,v:{a:0,k:0,ix:8}},{ty:0,nm:"Opacity",mn:"ADBE Geometry2-0008",ix:9,v:{a:0,k:100,ix:9}},{ty:7,nm:"Use Composition’s Shutter Angle",mn:"ADBE Geometry2-0009",ix:10,v:{a:0,k:1,ix:10}},{ty:0,nm:"Shutter Angle",mn:"ADBE Geometry2-0010",ix:11,v:{a:0,k:0,ix:11}},{ty:7,nm:"Sampling",mn:"ADBE Geometry2-0012",ix:12,v:{a:0,k:1,ix:12}}]}],w:600,h:600,ip:0,op:167,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"umbra Outlines",sr:1,ks:{o:{a:0,k:60,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},t:0,s:[300,493,0],to:[-25,-.167,0],ti:[-25,.167,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:45,s:[150,492,0],to:[25,-.167,0],ti:[-25.042,-.021,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},t:120,s:[450,492,0],to:[25.042,.021,0],ti:[24.958,-.021,0]},{t:165,s:[300.25,492.125,0]}],ix:2},a:{a:0,k:[300,493,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.228]},o:{x:[.937,.937,.333],y:[0,0,0]},t:0,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:10,s:[105,105,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:30,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:40,s:[105,105,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:60,s:[95,95,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:70,s:[92,92,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:90,s:[110,110,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:100,s:[105,105,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:130,s:[90,90,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:140,s:[95,95,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:150,s:[90,90,100]},{t:165,s:[100,100,100]}],ix:6}},ao:0,ef:[{ty:5,nm:"Wiggle - scale",np:6,mn:"ADBE CM WiggleScale",ix:1,en:1,ef:[{ty:0,nm:"Wiggle Speed (wigs/sec)",mn:"ADBE CM WiggleScale-0001",ix:1,v:{a:0,k:1,ix:1}},{ty:0,nm:"Wiggle Amount",mn:"ADBE CM WiggleScale-0002",ix:2,v:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:5,s:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:20,s:[8]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:149,s:[8]},{t:161,s:[0]}],ix:2}},{ty:7,nm:"Wiggle Width Separately?",mn:"ADBE CM WiggleScale-0003",ix:3,v:{a:0,k:0,ix:3}},{ty:0,nm:"Wiggle Width",mn:"ADBE CM WiggleScale-0004",ix:4,v:{a:0,k:10,ix:4}}]},{ty:5,nm:"(Transform)",np:14,mn:"ADBE Geometry2",ix:2,en:1,ef:[{ty:3,nm:"Anchor Point",mn:"ADBE Geometry2-0001",ix:1,v:{a:0,k:[0,0],ix:1,x:`var $bm_rt; +$bm_rt = $bm_transform.anchorPoint;`}},{ty:3,nm:"Position",mn:"ADBE Geometry2-0002",ix:2,v:{a:0,k:[0,0],ix:2,x:`var $bm_rt; +$bm_rt = $bm_transform.anchorPoint;`}},{ty:7,nm:"Uniform Scale",mn:"ADBE Geometry2-0011",ix:3,v:{a:0,k:0,ix:3}},{ty:0,nm:"Scale Height",mn:"ADBE Geometry2-0003",ix:4,v:{a:0,k:100,ix:4,x:`var $bm_rt; +var newScale; +newScale = wiggle(effect('Wiggle - scale')('Wiggle Speed (wigs/sec)'), effect('Wiggle - scale')('Wiggle Amount')); +$bm_rt = newScale < 0 ? 0 : newScale;`}},{ty:0,nm:"Scale Width",mn:"ADBE Geometry2-0004",ix:5,v:{a:0,k:100,ix:5,x:`var $bm_rt; +var newScale, newScale; +if (effect('Wiggle - scale')('Wiggle Width Separately?') == true) { + newScale = wiggle(effect('Wiggle - scale')('Wiggle Speed (wigs/sec)'), effect('Wiggle - scale')('Wiggle Width'), 1, 0.5, $bm_sum(time, 30)); +} else { + newScale = effect('(Transform)')('Scale Height'); +} +; +$bm_rt = newScale < 0 ? 0 : newScale;`}},{ty:0,nm:"Skew",mn:"ADBE Geometry2-0005",ix:6,v:{a:0,k:0,ix:6}},{ty:0,nm:"Skew Axis",mn:"ADBE Geometry2-0006",ix:7,v:{a:0,k:0,ix:7}},{ty:0,nm:"Rotation",mn:"ADBE Geometry2-0007",ix:8,v:{a:0,k:0,ix:8}},{ty:0,nm:"Opacity",mn:"ADBE Geometry2-0008",ix:9,v:{a:0,k:100,ix:9}},{ty:7,nm:"Use Composition’s Shutter Angle",mn:"ADBE Geometry2-0009",ix:10,v:{a:0,k:1,ix:10}},{ty:0,nm:"Shutter Angle",mn:"ADBE Geometry2-0010",ix:11,v:{a:0,k:0,ix:11}},{ty:7,nm:"Sampling",mn:"ADBE Geometry2-0012",ix:12,v:{a:0,k:1,ix:12}}]}],shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,4.883],[43.436,0],[0,-4.883],[-43.435,0]],o:[[0,-4.883],[-43.435,0],[0,4.883],[43.436,0]],v:[[78.647,0],[0,-8.841],[-78.647,0],[0,8.841]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.862745157878,.866666726505,.870588295133,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[300,479.093],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:167,st:0,bm:0}],markers=[{tm:166,cm:"1",dr:0}],emptyAnimation={v,meta,fr,ip,op,w,h,nm,ddd,assets,layers,markers};function App(){const[e,i]=reactExports.useState(!0),[s,a]=reactExports.useState(null),[o,c]=reactExports.useState(()=>{const _e=localStorage.getItem("language");return _e?JSON.parse(_e):!0});reactExports.useEffect(()=>{localStorage.setItem("language",JSON.stringify(o))},[o]);const d=()=>{c(!o)},[g,_]=reactExports.useState(""),[b,j]=reactExports.useState([]),st=_e=>{j(b.map(at=>at.id===_e?{...at,favorite:!at.favorite}:at))};return reactExports.useEffect(()=>{(async()=>{try{i(!0);let at=supabase.from("words").select("*").limit(10);g&&(o?at=at.ilike("english",`%${g}%`):at=at.ilike("lao",`%${g}%`));const{data:it,error:rt}=await at;if(rt)throw rt;j(it)}catch(at){a(at.message)}finally{i(!1)}})()},[g,o]),jsxRuntimeExports.jsx("div",{className:"min-w-screen min-h-screen py-10",style:{backgroundImage:` + linear-gradient(#d1d5db 1px, transparent 1px), + linear-gradient(90deg, #d1d5db 1px, transparent 1px) + `,backgroundSize:"20px 20px"},children:jsxRuntimeExports.jsxs("div",{className:"w-5/6 md:3/6 lg:w-2/4 xl:w-1/4 2xl:1/4 mx-auto",children:[jsxRuntimeExports.jsx(HeaderBar,{isEnglish:o,setSearchTerm:_}),jsxRuntimeExports.jsx("div",{className:"fixed top-14 right-6 space-x-2",children:jsxRuntimeExports.jsx("button",{onClick:d,className:"border-black flex items-center justify-center border-2 rounded-full hover:bg-gray-200 active:bg-gray-300 w-8 h-8",children:jsxRuntimeExports.jsx("img",{src:o?UK_FLAG:LAOS_FLAG,alt:o?"UK flag":"Laos flag",className:"w-6 h-6"})})}),jsxRuntimeExports.jsxs("div",{className:"space-y-4 mt-4",children:[e?jsxRuntimeExports.jsx(ThreeDotLoading,{}):b.length===0?jsxRuntimeExports.jsxs("div",{className:"flex flex-col space-y-4 justify-center items-center",children:[jsxRuntimeExports.jsx("div",{className:"h-64 w-64 ",children:jsxRuntimeExports.jsx(Lottie,{animationData:emptyAnimation,loop:!0})}),jsxRuntimeExports.jsxs("p",{className:"text-gray-500 -translate-y-12",children:[" ",dictionary.words_not_found[o?"en":"la"]," "]})]}):b.map(_e=>jsxRuntimeExports.jsx(WordCard,{word:_e,toggleFavorite:()=>st(_e.id)},_e.id)),s&&jsxRuntimeExports.jsx("p",{className:"text-red-500",children:s})]})]})})}createRoot(document.getElementById("root")).render(jsxRuntimeExports.jsx(reactExports.StrictMode,{children:jsxRuntimeExports.jsx(App,{})}));export{getDefaultExportFromCjs as g}; diff --git a/assets/index-fDqWj9j-.css b/assets/index-fDqWj9j-.css new file mode 100644 index 0000000..9d0abe9 --- /dev/null +++ b/assets/index-fDqWj9j-.css @@ -0,0 +1 @@ +@import"https://fonts.googleapis.com/css2?family=Noto+Sans+Lao:wght@500;700&display=swap";@import"https://fonts.googleapis.com/css2?family=Poppins:wght@500;700&display=swap";*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Noto Sans Lao,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.fixed{position:fixed}.relative{position:relative}.right-6{right:1.5rem}.top-14{top:3.5rem}.mx-auto{margin-left:auto;margin-right:auto}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mt-2{margin-top:.5rem}.mt-20{margin-top:5rem}.mt-4{margin-top:1rem}.inline-block{display:inline-block}.flex{display:flex}.h-10{height:2.5rem}.h-12{height:3rem}.h-3{height:.75rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-64{height:16rem}.h-7{height:1.75rem}.h-8{height:2rem}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-100{width:25rem}.w-12{width:3rem}.w-3{width:.75rem}.w-5{width:1.25rem}.w-5\/6{width:83.333333%}.w-6{width:1.5rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-full{width:100%}.flex-grow{flex-grow:1}.-translate-y-12{--tw-translate-y: -3rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rotate-2{--tw-rotate: -2deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-12{--tw-rotate: 12deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-2{border-width:2px}.border-b-2{border-bottom-width:2px}.border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-gray-800{--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-300{--tw-bg-opacity: 1;background-color:rgb(253 224 71 / var(--tw-bg-opacity))}.fill-none{fill:none}.fill-white{fill:#fff}.stroke-black{stroke:#000}.stroke-white{stroke:#fff}.p-1{padding:.25rem}.p-2\.5{padding:.625rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.text-center{text-align:center}.font-pops{font-family:Poppins,cursive}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.shadow-\[4px_4px_0px_0px_rgba\(0\,0\,0\,1\)\]{--tw-shadow: 4px 4px 0px 0px rgba(0,0,0,1);--tw-shadow-colored: 4px 4px 0px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.\[animation-delay\:-0\.15s\]{animation-delay:-.15s}.\[animation-delay\:-0\.3s\]{animation-delay:-.3s}.placeholder\:text-gray-600::-moz-placeholder{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.placeholder\:text-gray-600::placeholder{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.hover\:translate-x-1:hover{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:translate-y-1:hover{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\:bg-yellow-400:hover{--tw-bg-opacity: 1;background-color:rgb(250 204 21 / var(--tw-bg-opacity))}.hover\:shadow-\[2px_2px_0px_0px_rgba\(0\,0\,0\,1\)\]:hover{--tw-shadow: 2px 2px 0px 0px rgba(0,0,0,1);--tw-shadow-colored: 2px 2px 0px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:shadow-\[2px_2px_0px_rgba\(0\,0\,0\,1\)\]:focus{--tw-shadow: 2px 2px 0px rgba(0,0,0,1);--tw-shadow-colored: 2px 2px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.active\:bg-gray-300:active{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.active\:bg-yellow-500:active{--tw-bg-opacity: 1;background-color:rgb(234 179 8 / var(--tw-bg-opacity))}.active\:shadow-\[2px_2px_0px_rgba\(0\,0\,0\,1\)\]:active{--tw-shadow: 2px 2px 0px rgba(0,0,0,1);--tw-shadow-colored: 2px 2px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}@media (min-width: 1024px){.lg\:w-2\/4{width:50%}}@media (min-width: 1280px){.xl\:w-1\/4{width:25%}} diff --git a/index.html b/index.html index c844bbf..2a7f902 100644 --- a/index.html +++ b/index.html @@ -1,45 +1,45 @@ - - - - - - - Avocab - English to Lao Dictionary - - - - - - - - - - - - - - - - - - - - - - - -
- - + + + + + + + Avocab - English to Lao Dictionary + + + + + + + + + + + + + + + + + + + + + + + +
+ +