gpt-researcher-ui
Version:
GPT Researcher frontend as a React component
25 lines • 420 kB
JavaScript
import*as t from"react";import e,{useState as n,useRef as r,useEffect as o,useCallback as i,memo as a,createContext as s,useContext as c,useLayoutEffect as l,useInsertionEffect as p,useMemo as u,forwardRef as d,createElement as f,useId as m,cloneElement as h,Children as g,isValidElement as v,useImperativeHandle as x,Fragment as y,useReducer as b}from"react";import{toast as w,Toaster as k}from"react-hot-toast";import{remark as j}from"remark";import E from"remark-html";import{createPortal as S}from"react-dom";var _=function(){return _=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},_.apply(this,arguments)};function P(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function s(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))}function O(t,e){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=e.call(t,i)}catch(t){s=[6,t],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}function C(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}function T(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}"function"==typeof SuppressedError&&SuppressedError;var A,R={exports:{}},N={};var D,L,M={};
/**
* @license React
* react-jsx-runtime.development.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.
*/function I(){return D||(D=1,"production"!==process.env.NODE_ENV&&function(){var t=e,n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),h=Symbol.iterator;var g=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];!function(t,e,n){var r=g.ReactDebugCurrentFrame,o=r.getStackAddendum();""!==o&&(e+="%s",n=n.concat([o]));var i=n.map((function(t){return String(t)}));i.unshift("Warning: "+e),Function.prototype.apply.call(console[t],console,i)}("error",t,n)}var x;function y(t){return t.displayName||"Context"}function b(t){if(null==t)return null;if("number"==typeof t.tag&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case o:return"Fragment";case r:return"Portal";case a:return"Profiler";case i:return"StrictMode";case p:return"Suspense";case u:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case c:return y(t)+".Consumer";case s:return y(t._context)+".Provider";case l:return function(t,e,n){var r=t.displayName;if(r)return r;var o=e.displayName||e.name||"";return""!==o?n+"("+o+")":n}(t,t.render,"ForwardRef");case d:var e=t.displayName||null;return null!==e?e:b(t.type)||"Memo";case f:var n=t,m=n._payload,h=n._init;try{return b(h(m))}catch(t){return null}}return null}x=Symbol.for("react.module.reference");var w,k,j,E,S,_,P,O=Object.assign,C=0;function T(){}T.__reactDisabledLog=!0;var A,R=g.ReactCurrentDispatcher;function N(t,e,n){if(void 0===A)try{throw Error()}catch(t){var r=t.stack.trim().match(/\n( *(at )?)/);A=r&&r[1]||""}return"\n"+A+t}var D,L=!1,I="function"==typeof WeakMap?WeakMap:Map;function F(t,e){if(!t||L)return"";var n,r=D.get(t);if(void 0!==r)return r;L=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=R.current,R.current=null,function(){if(0===C){w=console.log,k=console.info,j=console.warn,E=console.error,S=console.group,_=console.groupCollapsed,P=console.groupEnd;var t={configurable:!0,enumerable:!0,value:T,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}C++}();try{if(e){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(t){n=t}Reflect.construct(t,[],a)}else{try{a.call()}catch(t){n=t}t.call(a.prototype)}}else{try{throw Error()}catch(t){n=t}t()}}catch(e){if(e&&n&&"string"==typeof e.stack){for(var s=e.stack.split("\n"),c=n.stack.split("\n"),l=s.length-1,p=c.length-1;l>=1&&p>=0&&s[l]!==c[p];)p--;for(;l>=1&&p>=0;l--,p--)if(s[l]!==c[p]){if(1!==l||1!==p)do{if(l--,--p<0||s[l]!==c[p]){var u="\n"+s[l].replace(" at new "," at ");return t.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",t.displayName)),"function"==typeof t&&D.set(t,u),u}}while(l>=1&&p>=0);break}}}finally{L=!1,R.current=o,function(){if(0==--C){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:O({},t,{value:w}),info:O({},t,{value:k}),warn:O({},t,{value:j}),error:O({},t,{value:E}),group:O({},t,{value:S}),groupCollapsed:O({},t,{value:_}),groupEnd:O({},t,{value:P})})}C<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var d=t?t.displayName||t.name:"",f=d?N(d):"";return"function"==typeof t&&D.set(t,f),f}function z(t,e,n){if(null==t)return"";if("function"==typeof t)return F(t,function(t){var e=t.prototype;return!(!e||!e.isReactComponent)}(t));if("string"==typeof t)return N(t);switch(t){case p:return N("Suspense");case u:return N("SuspenseList")}if("object"==typeof t)switch(t.$$typeof){case l:return F(t.render,!1);case d:return z(t.type,e,n);case f:var r=t,o=r._payload,i=r._init;try{return z(i(o),e,n)}catch(t){}}return""}D=new I;var B=Object.prototype.hasOwnProperty,V={},U=g.ReactDebugCurrentFrame;function q(t){if(t){var e=t._owner,n=z(t.type,t._source,e?e.type:null);U.setExtraStackFrame(n)}else U.setExtraStackFrame(null)}var $=Array.isArray;function W(t){return $(t)}function H(t){return""+t}function G(t){if(function(t){try{return H(t),!1}catch(t){return!0}}(t))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(t){return"function"==typeof Symbol&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object"}(t)),H(t)}var X,Y,K,J=g.ReactCurrentOwner,Z={key:!0,ref:!0,__self:!0,__source:!0};K={};function Q(t,e,r,o,i){var a,s={},c=null,l=null;for(a in void 0!==r&&(G(r),c=""+r),function(t){if(B.call(t,"key")){var e=Object.getOwnPropertyDescriptor(t,"key").get;if(e&&e.isReactWarning)return!1}return void 0!==t.key}(e)&&(G(e.key),c=""+e.key),function(t){if(B.call(t,"ref")){var e=Object.getOwnPropertyDescriptor(t,"ref").get;if(e&&e.isReactWarning)return!1}return void 0!==t.ref}(e)&&(l=e.ref,function(t,e){if("string"==typeof t.ref&&J.current&&e&&J.current.stateNode!==e){var n=b(J.current.type);K[n]||(v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',b(J.current.type),t.ref),K[n]=!0)}}(e,i)),e)B.call(e,a)&&!Z.hasOwnProperty(a)&&(s[a]=e[a]);if(t&&t.defaultProps){var p=t.defaultProps;for(a in p)void 0===s[a]&&(s[a]=p[a])}if(c||l){var u="function"==typeof t?t.displayName||t.name||"Unknown":t;c&&function(t,e){var n=function(){X||(X=!0,v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",e))};n.isReactWarning=!0,Object.defineProperty(t,"key",{get:n,configurable:!0})}(s,u),l&&function(t,e){var n=function(){Y||(Y=!0,v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",e))};n.isReactWarning=!0,Object.defineProperty(t,"ref",{get:n,configurable:!0})}(s,u)}return function(t,e,r,o,i,a,s){var c={$$typeof:n,type:t,key:e,ref:r,props:s,_owner:a,_store:{}};return Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c}(t,c,l,i,o,J.current,s)}var tt,et=g.ReactCurrentOwner,nt=g.ReactDebugCurrentFrame;function rt(t){if(t){var e=t._owner,n=z(t.type,t._source,e?e.type:null);nt.setExtraStackFrame(n)}else nt.setExtraStackFrame(null)}function ot(t){return"object"==typeof t&&null!==t&&t.$$typeof===n}function it(){if(et.current){var t=b(et.current.type);if(t)return"\n\nCheck the render method of `"+t+"`."}return""}tt=!1;var at={};function st(t,e){if(t._store&&!t._store.validated&&null==t.key){t._store.validated=!0;var n=function(t){var e=it();if(!e){var n="string"==typeof t?t:t.displayName||t.name;n&&(e="\n\nCheck the top-level render call using <"+n+">.")}return e}(e);if(!at[n]){at[n]=!0;var r="";t&&t._owner&&t._owner!==et.current&&(r=" It was passed a child from "+b(t._owner.type)+"."),rt(t),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),rt(null)}}}function ct(t,e){if("object"==typeof t)if(W(t))for(var n=0;n<t.length;n++){var r=t[n];ot(r)&&st(r,e)}else if(ot(t))t._store&&(t._store.validated=!0);else if(t){var o=function(t){if(null===t||"object"!=typeof t)return null;var e=h&&t[h]||t["@@iterator"];return"function"==typeof e?e:null}(t);if("function"==typeof o&&o!==t.entries)for(var i,a=o.call(t);!(i=a.next()).done;)ot(i.value)&&st(i.value,e)}}function lt(t){var e,n=t.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)e=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==l&&n.$$typeof!==d)return;e=n.propTypes}if(e){var r=b(n);!function(t,e,n,r,o){var i=Function.call.bind(B);for(var a in t)if(i(t,a)){var s=void 0;try{if("function"!=typeof t[a]){var c=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}s=t[a](e,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(t){s=t}!s||s instanceof Error||(q(o),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,a,typeof s),q(null)),s instanceof Error&&!(s.message in V)&&(V[s.message]=!0,q(o),v("Failed %s type: %s",n,s.message),q(null))}}(e,t.props,"prop",r,t)}else if(void 0!==n.PropTypes&&!tt){tt=!0,v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",b(n)||"Unknown")}"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}var pt={};function ut(t,e,r,h,g,y){var w=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===a||t===i||t===p||t===u||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===d||t.$$typeof===s||t.$$typeof===c||t.$$typeof===l||t.$$typeof===x||void 0!==t.getModuleId)}(t);if(!w){var k="";(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(k+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var j,E=function(t){return void 0!==t?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":""}(g);k+=E||it(),null===t?j="null":W(t)?j="array":void 0!==t&&t.$$typeof===n?(j="<"+(b(t.type)||"Unknown")+" />",k=" Did you accidentally export a JSX literal instead of a component?"):j=typeof t,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",j,k)}var S=Q(t,e,r,g,y);if(null==S)return S;if(w){var _=e.children;if(void 0!==_)if(h)if(W(_)){for(var P=0;P<_.length;P++)ct(_[P],t);Object.freeze&&Object.freeze(_)}else v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ct(_,t)}if(B.call(e,"key")){var O=b(t),C=Object.keys(e).filter((function(t){return"key"!==t})),T=C.length>0?"{key: someKey, "+C.join(": ..., ")+": ...}":"{key: someKey}";if(!pt[O+T])v('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',T,O,C.length>0?"{"+C.join(": ..., ")+": ...}":"{}",O),pt[O+T]=!0}return t===o?function(t){for(var e=Object.keys(t.props),n=0;n<e.length;n++){var r=e[n];if("children"!==r&&"key"!==r){rt(t),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),rt(null);break}}null!==t.ref&&(rt(t),v("Invalid attribute `ref` supplied to `React.Fragment`."),rt(null))}(S):lt(S),S}var dt=function(t,e,n){return ut(t,e,n,!1)},ft=function(t,e,n){return ut(t,e,n,!0)};M.Fragment=o,M.jsx=dt,M.jsxs=ft}()),M}function F(){return L||(L=1,"production"===process.env.NODE_ENV?R.exports=function(){if(A)return N;A=1;var t=e,n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(t,e,r){var s,c={},l=null,p=null;for(s in void 0!==r&&(l=""+r),void 0!==e.key&&(l=""+e.key),void 0!==e.ref&&(p=e.ref),e)o.call(e,s)&&!a.hasOwnProperty(s)&&(c[s]=e[s]);if(t&&t.defaultProps)for(s in e=t.defaultProps)void 0===c[s]&&(c[s]=e[s]);return{$$typeof:n,type:t,key:l,ref:p,props:c,_owner:i.current}}return N.Fragment=r,N.jsx=s,N.jsxs=s,N}():R.exports=I()),R.exports}var z=F();function B(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}B('@import "./styles/markdown.css";@import "./app/globals.css";@import "./components/Settings/Settings.css";*,:after,:before{--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:rgba(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:rgba(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: }\n/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}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,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height: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,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.container{margin-left:auto;margin-right:auto;width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:898px){.container{max-width:898px}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.-inset-0\\.5{inset:-.125rem}.-inset-1{inset:-.25rem}.inset-0{inset:0}.bottom-0{bottom:0}.bottom-8{bottom:2rem}.left-0{left:0}.left-2{left:.5rem}.left-4{left:1rem}.right-0{right:0}.right-2{right:.5rem}.right-4{right:1rem}.right-8{right:2rem}.top-0{top:0}.top-1\\/2{top:50%}.top-4{top:1rem}.top-\\[20px\\]{top:20px}.-z-20{z-index:-20}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.z-\\[1000\\]{z-index:1000}.z-\\[1001\\]{z-index:1001}.z-\\[999\\]{z-index:999}.order-1{order:1}.order-2{order:2}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-bottom:.25rem;margin-top:.25rem}.my-2{margin-bottom:.5rem;margin-top:.5rem}.my-5{margin-bottom:1.25rem;margin-top:1.25rem}.my-8{margin-bottom:2rem;margin-top:2rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.ml-auto{margin-left:auto}.mr-0\\.5{margin-right:.125rem}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mt-1{margin-top:.25rem}.mt-1\\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-\\[-60px\\]{margin-top:-60px}.line-clamp-2{-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1/1}.size-6{height:1.5rem;width:1.5rem}.size-\\[24px\\]{height:24px;width:24px}.h-1\\.5{height:.375rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-20{height:5rem}.h-3{height:.75rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\\[12px\\]{height:12px}.h-\\[38px\\]{height:38px}.h-\\[50px\\]{height:50px}.h-\\[60px\\]{height:60px}.h-\\[79px\\]{height:79px}.h-\\[calc\\(100vh-150px\\)\\]{height:calc(100vh - 150px)}.h-auto{height:auto}.h-full{height:100%}.max-h-\\[250px\\]{max-height:250px}.max-h-\\[400px\\]{max-height:400px}.max-h-\\[500px\\]{max-height:500px}.max-h-\\[90vh\\]{max-height:90vh}.min-h-\\[100vh\\]{min-height:100vh}.min-h-\\[200px\\]{min-height:200px}.min-h-\\[4em\\]{min-height:4em}.min-h-\\[56px\\]{min-height:56px}.min-h-\\[60px\\]{min-height:60px}.min-h-\\[80vh\\]{min-height:80vh}.min-h-screen{min-height:100vh}.w-1\\.5{width:.375rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-3{width:.75rem}.w-3\\.5{width:.875rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-\\[18px\\]{width:18px}.w-\\[260px\\]{width:260px}.w-\\[50px\\]{width:50px}.w-\\[70\\%\\]{width:70%}.w-\\[85\\%\\]{width:85%}.w-\\[90\\%\\]{width:90%}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-\\[100px\\]{min-width:100px}.min-w-\\[120px\\]{min-width:120px}.min-w-\\[80px\\]{min-width:80px}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-\\[192px\\]{max-width:192px}.max-w-\\[760px\\]{max-width:760px}.max-w-\\[890px\\]{max-width:890px}.max-w-\\[90vw\\]{max-width:90vw}.max-w-full{max-width:100%}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}.flex-auto{flex:1 1 auto}.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.-translate-y-1\\/2{--tw-translate-y:-50%}.-translate-y-1\\/2,.rotate-180{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate:180deg}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes gradient-x{0%,to{background-position:0 50%}50%{background-position:100% 50%}}.animate-gradient-x{animation:gradient-x 10s ease infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.resize{resize:both}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.content-center{align-content:center}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-2\\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-\\[15px\\]{gap:15px}.gap-\\[5px\\]{gap:5px}.gap-\\[6px\\]{gap:6px}.gap-\\[7px\\]{gap:7px}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.space-y-\\[15px\\]>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(15px*var(--tw-space-y-reverse));margin-top:calc(15px*(1 - var(--tw-space-y-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.divide-\\[\\#E5E5E5\\]>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(229 229 229/var(--tw-divide-opacity,1))}.divide-gray-100>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(243 244 246/var(--tw-divide-opacity,1))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded-\\[3px\\]{border-radius:3px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-b-0{border-bottom-width:0}.border-l-2{border-left-width:2px}.border-t{border-top-width:1px}.border-solid{border-style:solid}.border-\\[\\#C1C1C1\\]{--tw-border-opacity:1;border-color:rgb(193 193 193/var(--tw-border-opacity,1))}.border-\\[\\#C2C2C2\\]{--tw-border-opacity:1;border-color:rgb(194 194 194/var(--tw-border-opacity,1))}.border-gray-700\\/30{border-color:rgba(55,65,81,.3)}.border-gray-700\\/40{border-color:rgba(55,65,81,.4)}.border-gray-800{--tw-border-opacity:1;border-color:rgb(31 41 55/var(--tw-border-opacity,1))}.border-gray-800\\/60{border-color:rgba(31,41,55,.6)}.border-gray-900{--tw-border-opacity:1;border-color:rgb(17 24 39/var(--tw-border-opacity,1))}.border-teal-400\\/20{border-color:rgba(45,212,191,.2)}.border-teal-500\\/20{border-color:rgba(20,184,166,.2)}.border-teal-500\\/30{border-color:rgba(20,184,166,.3)}.bg-\\[\\#EDEDEA\\]{--tw-bg-opacity:1;background-color:rgb(237 237 234/var(--tw-bg-opacity,1))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.bg-black\\/20{background-color:rgba(0,0,0,.2)}.bg-black\\/30{background-color:rgba(0,0,0,.3)}.bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity,1))}.bg-cyan-600{--tw-bg-opacity:1;background-color:rgb(8 145 178/var(--tw-bg-opacity,1))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}.bg-gray-300\\/20{background-color:rgba(209,213,219,.2)}.bg-gray-700{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))}.bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.bg-gray-800\\/30{background-color:rgba(31,41,55,.3)}.bg-gray-800\\/60{background-color:rgba(31,41,55,.6)}.bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity,1))}.bg-gray-900\\/80{background-color:rgba(17,24,39,.8)}.bg-gray-900\\/95{background-color:rgba(17,24,39,.95)}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity,1))}.bg-teal-400{--tw-bg-opacity:1;background-color:rgb(45 212 191/var(--tw-bg-opacity,1))}.bg-teal-500{--tw-bg-opacity:1;background-color:rgb(20 184 166/var(--tw-bg-opacity,1))}.bg-teal-600{--tw-bg-opacity:1;background-color:rgb(13 148 136/var(--tw-bg-opacity,1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-opacity-20{--tw-bg-opacity:0.2}.bg-opacity-50{--tw-bg-opacity:0.5}.bg-opacity-75{--tw-bg-opacity:0.75}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-\\[\\#0cdbb6\\]{--tw-gradient-from:#0cdbb6 var(--tw-gradient-from-position);--tw-gradient-to:rgba(12,219,182,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-gray-800\\/60{--tw-gradient-from:rgba(31,41,55,.6) var(--tw-gradient-from-position);--tw-gradient-to:rgba(31,41,55,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-teal-400{--tw-gradient-from:#2dd4bf var(--tw-gradient-from-position);--tw-gradient-to:rgba(45,212,191,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-teal-500{--tw-gradient-from:#14b8a6 var(--tw-gradient-from-position);--tw-gradient-to:rgba(20,184,166,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-teal-500\\/15{--tw-gradient-from:rgba(20,184,166,.15) var(--tw-gradient-from-position);--tw-gradient-to:rgba(20,184,166,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-teal-500\\/20{--tw-gradient-from:rgba(20,184,166,.2) var(--tw-gradient-from-position);--tw-gradient-to:rgba(20,184,166,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-teal-600{--tw-gradient-from:#0d9488 var(--tw-gradient-from-position);--tw-gradient-to:rgba(13,148,136,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-teal-900\\/30{--tw-gradient-from:rgba(19,78,74,.3) var(--tw-gradient-from-position);--tw-gradient-to:rgba(19,78,74,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.via-\\[\\#1fd0f0\\]{--tw-gradient-to:rgba(31,208,240,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),#1fd0f0 var(--tw-gradient-via-position),var(--tw-gradient-to)}.via-cyan-500{--tw-gradient-to:rgba(6,182,212,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),#06b6d4 var(--tw-gradient-via-position),var(--tw-gradient-to)}.via-cyan-500\\/15{--tw-gradient-to:rgba(6,182,212,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),rgba(6,182,212,.15) var(--tw-gradient-via-position),var(--tw-gradient-to)}.to-\\[\\#06dbee\\]{--tw-gradient-to:#06dbee var(--tw-gradient-to-position)}.to-blue-500\\/10{--tw-gradient-to:rgba(59,130,246,.1) var(--tw-gradient-to-position)}.to-blue-500\\/20{--tw-gradient-to:rgba(59,130,246,.2) var(--tw-gradient-to-position)}.to-blue-600{--tw-gradient-to:#2563eb var(--tw-gradient-to-position)}.to-cyan-400{--tw-gradient-to:#22d3ee var(--tw-gradient-to-position)}.to-cyan-900\\/30{--tw-gradient-to:rgba(22,78,99,.3) var(--tw-gradient-to-position)}.to-gray-700\\/40{--tw-gradient-to:rgba(55,65,81,.4) var(--tw-gradient-to-position)}.to-teal-600{--tw-gradient-to:#0d9488 var(--tw-gradient-to-position)}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-2\\.5{padding-bottom:.625rem;padding-top:.625rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-6{padding-bottom:1.5rem;padding-top:1.5rem}.py-8{padding-bottom:2rem;padding-top:2rem}.pb-1{padding-bottom:.25rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pb-\\[20px\\]{padding-bottom:20px}.pl-5{padding-left:1.25rem}.pr-1{padding-right:.25rem}.pr-10{padding-right:2.5rem}.pr-5{padding-right:1.25rem}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.pt-3\\.5{padding-top:.875rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.pt-\\[120px\\]{padding-top:120px}.pt-\\[60px\\]{padding-top:60px}.text-left{text-align:left}.text-center{text-align:center}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\\[15px\\]{font-size:15px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-black{font-weight:900}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.not-italic{font-style:normal}.leading-\\[152\\%\\]{line-height:152%}.leading-\\[152\\.5\\%\\]{line-height:152.5%}.leading-\\[normal\\]{line-height:normal}.leading-relaxed{line-height:1.625}.tracking-tight{letter-spacing:-.025em}.text-\\[\\#1B1B16\\]{--tw-text-opacity:1;color:rgb(27 27 22/var(--tw-text-opacity,1))}.text-\\[\\#1B1B16\\]\\/30{color:rgba(27,27,22,.3)}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.text-gray-100{--tw-text-opacity:1;color:rgb(243 244 246/var(--tw-text-opacity,1))}.text-gray-200{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity,1))}.text-gray-300{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity,1))}.text-gray-300\\/60{color:rgba(209,213,219,.6)}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.text-teal-100\\/90{color:rgba(204,251,241,.9)}.text-teal-200{--tw-text-opacity:1;color:rgb(153 246 228/var(--tw-text-opacity,1))}.text-teal-400{--tw-text-opacity:1;color:rgb(45 212 191/var(--tw-text-opacity,1))}.text-transparent{color:transparent}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.shadow-2xl{--tw-shadow:0 25px 50px -12px rgba(0,0,0,.25);--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\\[2px_2px_38px_0px_rgba\\(0\\2c 0\\2c 0\\2c 0\\.25\\)\\2c 0px_-2px_4px_0px_rgba\\(0\\2c 0\\2c 0\\2c 0\\.25\\)_inset\\2c 1px_2px_4px_0px_rgba\\(0\\2c 0\\2c 0\\2c 0\\.25\\)_inset\\]{--tw-shadow:2px 2px 38px 0px rgba(0,0,0,.25),0px -2px 4px 0px rgba(0,0,0,.25) inset,1px 2px 4px 0px rgba(0,0,0,.25) inset;--tw-shadow-colored:2px 2px 38px 0px var(--tw-shadow-color),inset 0px -2px 4px 0px var(--tw-shadow-color),inset 1px 2px 4px 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)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-lg,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-black\\/30{--tw-shadow-color:rgba(0,0,0,.3);--tw-shadow:var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-gray-800\\/60{--tw-ring-color:rgba(31,41,55,.6)}.blur{--tw-blur:blur(8px)}.blur,.blur-md{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)}.blur-md{--tw-blur:blur(12px)}.blur-sm{--tw-blur:blur(4px)}.blur-sm,.brightness-100{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)}.brightness-100{--tw-brightness:brightness(1)}.drop-shadow-\\[0_0_1px_rgba\\(45\\2c 212\\2c 191\\2c 0\\.5\\)\\]{--tw-drop-shadow:drop-shadow(0 0 1px rgba(45,212,191,.5))}.drop-shadow-\\[0_0_1px_rgba\\(45\\2c 212\\2c 191\\2c 0\\.5\\)\\],.invert{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)}.invert{--tw-invert:invert(100%)}.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)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px)}.backdrop-blur-md,.backdrop-blur-sm{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-sm{--tw-backdrop-blur:blur(4px)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-shadow{transition-duration:.15s;transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-1000{transition-duration:1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.\\[leading-trim\\:both\\]{leading-trim:both}.\\[text-edge\\:cap\\]{text-edge:cap}.hover\\:scale-105:hover{--tw-scale-x:1.05;--tw-scale-y:1.05}.hover\\:scale-105:hover,.hover\\:scale-110:hover{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:scale-110:hover{--tw-scale-x:1.1;--tw-scale-y:1.1}.hover\\:border-teal-500\\/30:hover{border-color:rgba(20,184,166,.3)}.hover\\:border-teal-500\\/40:hover{border-color:rgba(20,184,166,.4)}.hover\\:border-teal-500\\/60:hover{border-color:rgba(20,184,166,.6)}.hover\\:bg-blue-600:hover{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}.hover\\:bg-gray-700:hover{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))}.hover\\:bg-gray-800:hover{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.hover\\:bg-gray-800\\/80:hover{background-color:rgba(31,41,55,.8)}.hover\\:bg-red-600:hover{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity,1))}.hover\\:bg-teal-600:hover{--tw-bg-opacity:1;background-color:rgb(13 148 136/var(--tw-bg-opacity,1))}.hover\\:bg-opacity-75:hover{--tw-bg-opacity:0.75}.hover\\:bg-gradient-to-br:hover{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.hover\\:from-\\[\\#0cdbb6\\]:hover{--tw-gradient-from:#0cdbb6 var(--tw-gradient-from-position);--tw-gradient-to:rgba(12,219,182,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.hover\\:from-teal-500\\/95:hover{--tw-gradient-from:rgba(20,184,166,.95) var(--tw-gradient-from-position);--tw-gradient-to:rgba(20,184,166,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.hover\\:from-teal-600:hover{--tw-gradient-from:#0d9488 var(--tw-gradient-from-position);--tw-gradient-to:rgba(13,148,136,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.hover\\:from-teal-900\\/40:hover{--tw-gradient-from:rgba(19,78,74,.4) var(--tw-gradient-from-position);--tw-gradient-to:rgba(19,78,74,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.hover\\:via-\\[\\#1fd0f0\\]:hover{--tw-gradient-to:rgba(31,208,240,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),#1fd0f0 var(--tw-gradient-via-position),var(--tw-gradient-to)}.hover\\:via-cyan-500\\/90:hover{--tw-gradient-to:rgba(6,182,212,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),rgba(6,182,212,.9) var(--tw-gradient-via-position),var(--tw-gradient-to)}.hover\\:to-\\[\\#06dbee\\]:hover{--tw-gradient-to:#06dbee var(--tw-gradient-to-position)}.hover\\:to-cyan-900\\/40:hover{--tw-gradient-to:rgba(22,78,99,.4) var(--tw-gradient-to-position)}.hover\\:to-teal-600\\/95:hover{--tw-gradient-to:rgba(13,148,136,.95) var(--tw-gradient-to-position)}.hover\\:to-teal-700:hover{--tw-gradient-to:#0f766e var(--tw-gradient-to-position)}.hover\\:text-red-400:hover{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.hover\\:text-teal-300\\/80:hover{color:rgba(94,234,212,.8)}.hover\\:text-teal-400:hover{--tw-text-opacity:1;color:rgb(45 212 191/var(--tw-text-opacity,1))}.hover\\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-80:hover{opacity:.8}.hover\\:opacity-90:hover{opacity:.9}.hover\\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.hover\\:shadow-teal-400\\/10:hover{--tw-shadow-color:rgba(45,212,191,.1);--tw-shadow:var(--tw-shadow-colored)}.hover\\:shadow-teal-400\\/20:hover{--tw-shadow-color:rgba(45,212,191,.2);--tw-shadow:var(--tw-shadow-colored)}.hover\\:shadow-teal-900\\/20:hover{--tw-shadow-color:rgba(19,78,74,.2);--tw-shadow:var(--tw-shadow-colored)}.hover\\:brightness-110:hover{--tw-brightness:brightness(1.1)}.hover\\:brightness-110:hover,.hover\\:drop-shadow-\\[0_0_3px_rgba\\(255\\2c 255\\2c 255\\2c 0\\.7\\)\\]:hover{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)}.hover\\:drop-shadow-\\[0_0_3px_rgba\\(255\\2c 255\\2c 255\\2c 0\\.7\\)\\]:hover{--tw-drop-shadow:drop-shadow(0 0 3px hsla(0,0%,100%,.7))}.hover\\:filter:hover{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)}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\\:ring-1:focus,.focus\\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\\:ring-blue-400\\/50:focus{--tw-ring-color:rgba(96,165,250,.5)}.focus\\:ring-cyan-500\\/50:focus{--tw-ring-color:rgba(6,182,212,.5)}.focus\\:ring-teal-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(20 184 166/var(--tw-ring-opacity,1))}.focus\\:ring-teal-500\\/50:focus{--tw-ring-color:rgba(20,184,166,.5)}.focus\\:ring-offset-1:focus{--tw-ring-offset-width:1px}.focus\\:ring-offset-gray-900:focus{--tw-ring-offset-color:#111827}.focus-visible\\:ring-0:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:ring-offset-0:focus-visible{--tw-ring-offset-width:0px}.disabled\\:opacity-75:disabled{opacity:.75}.disabled\\:hover\\:bg-teal-500\\/75:hover:disabled{background-color:rgba(20,184,166,.75)}.group:hover .group-hover\\:scale-110{--tw-scale-x:1.1;--tw-scale-y:1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\\:from-teal-500\\/25{--tw-gradient-from:rgba(20,184,166,.25) var(--tw-gradient-from-position);--tw-gradient-to:rgba(20,184,166,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.group:hover .group-hover\\:via-cyan-400\\/20{--tw-gradient-to:rgba(34,211,238,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),rgba(34,211,238,.2) var(--tw-gradient-via-position),var(--tw-gradient-to)}.group:hover .group-hover\\:to-blue-500\\/15{--tw-gradient-to:rgba(59,130,246,.15) var(--tw-gradient-to-position)}.group:hover .group-hover\\:text-teal-400{--tw-text-opacity:1;color:rgb(45 212 191/var(--tw-text-opacity,1))}.group:hover .group-hover\\:opacity-100{opacity:1}.group:hover .group-hover\\:shadow-\\[0_0_15px_rgba\\(20\\2c 184\\2c 166\\2c 0\\.3\\)\\]{--tw-shadow:0 0 15px rgba(20,184,166,.3);--tw-shadow-colored:0 0 15px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.group:hover .group-hover\\:duration-200{transition-duration:.2s}@media (min-width:640px){.sm\\:left-3{left:.75rem}.sm\\:top-\\[24px\\]{top:24px}.sm\\:order-1{order:1}.sm\\:order-2{order:2}.sm\\:mb-0{margin-bottom:0}.sm\\:mb-1{margin-bottom:.25rem}.sm\\:mb-2{margin-bottom:.5rem}.sm\\:mb-6{margin-bottom:1.5rem}.sm\\:mt-0{margin-top:0}.sm\\:mt-\\[-130px\\]{margin-top:-130px}.sm\\:h-10{height:2.5rem}.sm\\:h-20{height:5rem}.sm\\:h-5{height:1.25rem}.sm\\:h-6{height:1.5rem}.sm\\:h-7{height:1.75rem}.sm\\:h-\\[42px\\]{height:42px}.sm\\:h-\\[calc\\(100vh-190px\\)\\]{height:calc(100vh - 190px)}.sm\\:min-h-\\[72px\\]{min-height:72px}.sm\\:min-h-\\[85vh\\]{min-height:85vh}.sm\\:w-10{width:2.5rem}.sm\\:w-20{width:5rem}.sm\\:w-5{width:1.25rem}.sm\\:w-6{width:1.5rem}.sm\\:w-7{width:1.75rem}.sm\\:w-\\[20px\\]{width:20px}.sm\\:flex-row{flex-direction:row}.sm\\:justify-between{justify-content:space-between}.sm\\:gap-0{gap:0}.sm\\:gap-4{gap:1rem}.sm\\:space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}.sm\\:p-4{padding:1rem}.sm\\:px-3{padding-left:.75rem;padding-right:.75rem}.sm\\:px-4{padding-left:1rem;padding-right:1rem}.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:py-10{padding-bottom:2.5rem;padding-top:2.5rem}.sm\\:py-2{padding-bottom:.5rem;padding-top:.5rem}.sm\\:py-3{padding-bottom:.75rem;padding-top:.75rem}.sm\\:py-5{padding-bottom:1.25rem;padding-top:1.25rem}.sm\\:py-8{padding-top:2rem}.sm\\:pb-8,.sm\\:py-8{padding-bottom:2rem}.sm\\:pt-2{padding-top:.5rem}.sm\\:pt-\\[80px\\]{padding-top:80px}.sm\\:text-left{text-align:left}.sm\\:text-5xl{font-size:3rem;line-height:1}.sm\\:text-base{font-size:1rem;line-height:1.5rem}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:768px){.md\\:mx-auto{margin-left:auto;margin-right:auto}.md\\:mb-0{margin-bottom:0}.md\\:mb-8{margin-bottom:2rem}.md\\:hidden{display:none}.md\\:w-auto{width:auto}.md\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\\:gap-4{gap:1rem}.md\\:py-16{padding-bottom:4rem;padding-top:4rem}.md\\:pb-10{padding-bottom:2.5rem}}@media (min-width:898px){.lg\\:block{display:block}.lg\\:hidden{display:none}.lg\\:h-16{height:4rem}.lg\\:h-\\[80px\\]{height:80px}.lg\\:w-16{width:4rem}.lg\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\\:flex-nowrap{flex-wrap:nowrap}.lg\\:justify-normal{justify-content:normal}.lg\\:p-10{padding:2.5rem}.lg\\:px-0{padding-left:0;padding-right:0}.lg\\:pb-20{padding-bottom:5rem}.lg\\:pb-3\\.5{padding-bottom:.875rem}.lg\\:pt-10{padding-top:2.5rem}.lg\\:text-7xl{font-size:4.5rem;line-height:1}}.rtl\\:text-right:where([dir=rtl],[dir=rtl] *){text-align:right}@media (prefers-color-scheme:dark){.dark\\:border-gray-900{--tw-border-opacity:1;border-color:rgb(17 24 39/var(--tw-border-opacity,1))}.dark\\:bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity,1))}.dark\\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}}');var V=function(t){var e=(void 0===t?{}:t).purpose;if("undefined"!=typeof window){var n=window.location.host,r=localStorage.getItem("GPTR_API_URL"),o=new URLSearchParams(window.location.search).get("GPTR_API_URL");return r||(o||(process.env.NEXT_PUBLIC_GPTR_API_URL?process.env.NEXT_PUBLIC_GPTR_API_URL:process.env.REACT_APP_GPTR_API_URL?process.env.REACT_APP_GPTR_API_URL:"langgraph-gui"===e?n.includes("localhost")?"http%3A%2F%2F127.0.0.1%3A8123":"https://".concat(n):n.includes("localhost")?"http://localhost:8000":"https://".concat(n)))}return""},U=function(t,e,a,s,c){var l=n(null),p=l[0],u=l[1],d=r();o((function(){return function(){d.current&&clearInterval(d.current)}}),[]);var f=i((function(n,r){var o=localStorage.getItem("apiVariables");if(!o||JSON.parse(o),!p&&"undefined"!=typeof window){var i=V(),l=i.includes("https")?"wss:":"ws:",f=i.replace("http://","").replace("https://",""),m="".concat(l,"//").concat(f,"/ws"),h=new WebSocket(m);u(h),h.onopen=function(){console.log("chatBoxSettings",r);var t,e=JSON.parse(localStorage.getItem("domainFilters")||"[]"),o=e?e.map((function(t){return t.value})):[],i=r.report_type,a=r.report_source,s=r.tone,c="start "+JSON.stringify({task:n,report_type:i,report_source:a,tone:s,query_domains:o});h.send(c),t=h,d.current&&clearInterval(d.current),d.current=window.setInterval((function(){t.readyState===WebSocket.OPEN&&t.send("ping")}),3e4)},h.onmessage=function(n){try{if("pong"===n.data)return;var r=JSON.parse(n.data);if("human_feedback"===r.type&&"request"===r.content)c(r.output),s(!0);else{var o="".concat(r.content,"-").concat(r.type);t((function(t){return C(C([],t,!0),[_(_({},r),{contentAndType:o})],!1)})),"report"===r.type?e((function(t){return t+r.output})):"path"!==r.type&&"chat"!==r.type||a(!1)}}catch(t){console.error("Error parsing WebSocket message:",t,n.data)}},h.onclose=function(){d.current&&clearInterval(d.current),u(null)},h.onerror=function(t){console.error("WebSocket error:",t),d.current&&clearInterval(d.current)}}}),[p]);return{socket:p,setSocket:u,initializeWebSocket:f}},q=function(t){var e=[],n=null,r=null,o=null,i=null,a=!1,s=-1,c=new Set;return t.forEach((function(t){var l=t.type,p=t.content,u=t.metadata,d=t.output,f=t.link;if("question"===l)e.push({type:"question",content:p});else if("report"===l)o||(o={type:"reportBlock",content:""},e.push(o)),o.content+=d;else if("selected_images"===p)e.push({type:"imagesBlock",metadata:u});else if("logs"===l&&"research_report"===p)i||(i={type:"reportBlock",content:""},e.push(i)),i.content+=d.report;else if("langgraphButton"===l)e.push({type:"langgraphButton",link:f});else if("chat"===l)e.push({type:"chat",content:p});else if(o&&(o=null),"subqueries"===p)n&&(n=null),r&&(e.push(r),r=null),e.push(t),s=e.length-1;else if("sourceBlock"===l)r=t,-1!==s?(e.splice(s+1,0,r),s=-1):e.push(r),a=!0,r=null;else if("added_source_url"===p){if(r||(r={type:"sourceBlock",items:[]}),!c.has(u)){c.add(u);var m="";try{"string"==typeof u&&(m=new URL(u).hostname.replace("www.",""))}catch(t){m="unknown"}r.items.push({name:m,url:u})}r.items.length>0&&!e.includes(r)&&(e.push(r),a=!0)}else if("path"!==l&&""!==p)a?(n||(n={type:"accordionBlock",items:[]},e.push(n)),n.items.push(t)):e.push(t);else{if(n&&(n=null),r&&(r=null),o){var h=e.findIndex((function(t){return t===o}));-1!==h&&e.splice(h,1),o=null}e.push(t)}})),e=function(t){var e={type:"sourceBlock",items:t.filter((function(t){return"sourceBlock"===t.type})).flatMap((function(t){return t.items||[]})).filter((function(t,e,n){return e===n.findIndex((function(e){return e.url===t.url}))}))},n={type:"imagesBlock",metadata:t.filter((function(t){return"imagesBlock"===t.type})).flatMap((function(t){return t.metadata||[]}))};return t=t.filter((function(t){return"sourceBlock"!==t.type&&"imagesBlock"!==t.type})),e.items.length>0&&t.push(e),n.metadata.length>0&&t.push(n),t}(e)},$=function(t){var e=t.question;return z.jsxs("div",{className:"container w-full flex flex-col sm:flex-row items-start gap-3 pt-5 mb-5 px-4 sm:px-6 py-4 rounded-lg border border-gray-700/30 backdrop-blur-sm bg-black/20 mt-5",children:[z.jsxs("div",{className:"flex items-center gap-2 sm:gap-4",children:[z.jsx("img",{src:"https://askjarvis.ai/img/message-question-circle.svg",alt:"message",width:24,height:24,className:"w-6 h-6"}),z.jsx("p",{className:"font-bold uppercase leading-[152%] text-teal-200",children:"Research Task:"})]}),z.jsxs("div",{className:"grow text-white break-words max-w-full log-message mt-1 sm:mt-0 font-medium",children:['"',e,'"']})]})};function W(t,e){const n=String(t);if("string"!=typeof e)throw new TypeError("Expected character");let r=0,o=n.indexOf(e);for(;-1!==o;)r++,o=n.indexOf(e,o+e.length);return r}const H=Q(/[A-Za-z]/),G=Q(/[\dA-Za-z]/);function X(t){return null!==t&&t<-2}function Y(t){return null!==t&&(t<0||32===t)}function K(t){return-2===t||-1===t||32===t}const J=Q(/\p{P}|\p{S}/u),Z=Q(/\s/);function Q(t){return function(e){return null!==e&&e>-1&&t.test(String.fromCharCode(e))}}const tt=function(t){if(null==t)return nt;if("function"==typeof t)return et(t);if("object"==typeof t)return Array.isArray(t)?function(t){const e=[];let n=-1;for(;++n<t.length;)e[n]=tt(t[n]);return et(r);function r(...t){let n=-1;for(;++n<e.length;)if(e[n].apply(this,t))return!0;return!1}}(t):function(t){const e=t;return et(n);function n(n){const r=n;let o;for(o in t)if(r[o]!==e[o])return!1;return!0}}(t);if("string"==typeof t)return function(t){return et(e);function e(e){return e&&e.type===t}}(t);throw new Error("Expected function, string, or object as test")};function et(t){return function(e,n,r){return Boolean(function(t){return null!==t&&"object"==typeof t&&"type"in t}(e)&&t.call(this,e,"number"==typeof n?n:void 0,r||void 0))}}function nt(){return!0}const rt=[],ot=!0,it=!1;function at(t,e,n,r){let o;"function"==typeof e&&"function"!=typeof n?(r=n,n=e):o=e;const i=tt(o),a=r?-1:1;!function t(o,s,c){const l=o&&"object"==typeof o?o:{};if("string"==typeof l.type){const t="string"==typeof l.tagName?l.tagName:"string"==typeof l.name?l.name:void 0;Object.defineProperty(p,"name",{value:"node ("+o.type+(t?"<"+t+">":"")+")"})}return p;function p(){let l,p,u,d=rt;if((!e||i(o,s,c[c.length-1]||void 0))&&(d=function(t){if(Array.isArray(t))return t;if("number"==typeof t)return[ot,t];return null==t?rt:[t]}(n(o,c)),d[0]===it))return d;if("children"in o&&o.children){const e=o;if(e.children&&"skip"!==d[0])for(p=(r?e.children.length:-1)+a,u=c.concat(e);p>-1&&p<e.children.length;){const n=e.children[p];if(l=t(n,p,u)(),l[0]===it)return l;p="number"==typeof l[1]?l[1]:p+a}}return d}}(t,void 0,[])()}function st(t,e,n){const r=tt((n||{}).ignore||[]),o=function(t){const e=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!t[0]||Array.isArray(t[0])?t:[t];let r=-1;for(;++r<n.length;){const t=n[r];e.push([ct(t[0]),lt(t[1])])}return e}(e);let i=-1;for(;++i<o.length;)at(t,"text",a);function a(t,e){let n,a=-1;for(;++a<e.length;){const t=e[a],o=n?n.children:void 0;if(r(t,o?o.indexOf(t):void 0,n))return;n=t}if(n)return function(t,e){const n=e[e.length-1],r=o[i][0],a=o[i][1];let s=0;const c=n.children.indexOf(t);let l=!1,p=[];r.lastIndex=0;let u=r.exec(t.value);for(;u;){const n=u.index,o={index:u.index,input:u.input,stack:[...e,t]};let i=a(...u,o);if("string"==typeof i&&(i=i.length>0?{type:"text",value:i}:void 0),!1===i?r.lastIndex=n+1:(s!==n&&p.push({type:"text",value:t.value.slice(s,n)}),Array.isArray(i)?p.push(...i):i&&p.push(i),s=n+u[0].length,l=!0),!r.global)break;u=r.exec(t.value)}l?(s<t.value.length&&p.push({type:"text",value:t.value.slice(s)}),n.children.splice(c,1,...p)):p=[t];return c+p.length}(t,e)}}function ct(t){return"string"==typeof t?new RegExp(function(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(t),"g"):t}function lt(t){return"function"==typeof t?t:function(){return t}}const pt="phrasing",ut=["autolink","link","image","label"];function dt(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function ft(t){this.config.enter.autolinkProtocol.call(this,t)}function mt(t){this.config.exit.autolinkProtocol.call(this,t)}function ht(t){this.config.exit.data.call(this,t);const e=this.stack[this.stack.length-1];e.type,e.url="http://"+this.sliceSerialize(t)}function gt(t){this.config.exit.autolinkEmail.call(this,t)}function vt(t){this.exit(t)}function xt(t){st(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,yt],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,bt]],{ignore:["link","linkReference"]})}function yt(t,e,n,r,o){let i="";if(!wt(o))return!1;if(/^w/i.test(e)&&(n=e+n,e="",i="http://"),!function(t){const e=t.split(".");if(e.length<2||e[e.length-1]&&(/_/.test(e[e.length-1])||!/[a-zA-Z\d]/.test(e[e.length-1]))||e[e.length-2]&&(/_/.test(e[e.length-2])||!/[a-zA-Z\d]/.test(e[e.length-2])))return!1;return!0}(n))return!1;const a=function(t){const e=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!e)return[t,void 0];t=t.slice(0,e.index);let n=e[0],r=n.indexOf(")");const o=W(t,"(");let i=W(t,")");for(;-1!==r&&o>i;)t+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[t,n]}(n+r);if(!a[0])return!1;const s={type:"link",title:null,url:i+e+a[0],children:[{type:"text",value:e+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function bt(t,e,n,r){return!(!wt(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+e+"@"+n,children:[{type:"text",value:e+"@"+n}]}}function wt(t,e){const n=t.input.charCodeAt(t.index-1);return(0===t.index||Z(n)||J(n))&&(!e||47!==n)}function kt(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function jt(){this.buffer()}function Et(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function St(){this.buffer()}function _t(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function Pt(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=kt(this.sliceSerialize(t)).toLowerCase(),n.label=e}function Ot(t){this.exit(t)}function Ct(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=kt(this.sliceSerialize(t)).toLowerCase(),n.label=e}function Tt(t){this.exit(t)}function At(t,e,n,r){const o=n.createTracker(r);let i=o.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return i+=o.move(n.safe(n.associationId(t),{after:"]",before:i})),s(),a(),i+=o.move("]"),i}function Rt(t){let e=!1;return t&&t.firstLineBlank&&(e=!0),{handlers:{footnoteDefinition:function(t,n,r,o){const i=r.createTracker(o);let a=i.move("[^");const s=r.enter("footnoteDefinition"),c=r.enter("label");a+=i.move(r.safe(r.associationId(t),{before:a,after:"]"})),c(),a+=i.move("]:"),t.children&&t.children.length>0&&(i.shift(4),a+=i.move((e?"\n":" ")+r.indentLines(r.containerFlow(t,i.current()),e?Dt:Nt)));return s(),a},footnoteReference:At},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function Nt(t,e,n){return 0===e?t:Dt(t,e,n)}function Dt(t,e,n){return(n?"":" ")+t}At.peek=function(){return"["};const Lt=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function Mt(t){this.enter({type:"delete",children:[]},t)}function It(t){this.exit(t)}function Ft(t,e,n,r){const o=n.createTracker(r),i=n.enter("strikethrough");let a=o.move("~~");return a+=n.containerPhrasing(t,{...o.current(),before:a,after:"~"}),a+=o.move("~~"),i(),a}function zt(t){return t.length}function Bt(t){const e="string"==typeof t?t.codePointAt(0):0;return 67===e||99===e?99:76===e||108===e?108:82===e||114===e?114:0}function Vt(t,e,n){return">"+(n?"":" ")+t}function Ut(t,e,n){if("string"==typeof e&&(e=[e]),!e||0===e.length)return n;let r=-1;for(;++r<e.length;)if(t.includes(e[r]))return!0;return!1}function qt(t,e,n,r){let o=-1;for(;++o<n.unsafe.length;)if("\n"===n.unsafe[o].character&&(i=n.stack,a=n.unsafe[o],Ut(i,a.inConstruct,!0)&&!Ut(i,a.notInConstruct,!1)))return/[ \t]/.test(r.before)?"":" ";var i,a;return"\\\n"}function $t(t,e,n){return(n?"":" ")+t}function Wt(t){const e=t.options.quote||'"';if('"'!==e&&"'"!==e)throw new Error("Cannot serialize title with `"+e+"` for `options.quote`, expected `\"`, or `'`");return e}function Ht(t){return"&#x"+t.toString(16).toUpperCase()+";"}function Gt(t){return null===t||Y(t)||Z(t)?1:J(t)?2:void 0}function Xt(t,e,n){const r=Gt(t),o=Gt(e);return void 0===r?void 0===o?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===o?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===o?{inside:!1,outside:!1}:1===o?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===o?{inside:!1,outside:!1}:1===o?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function Yt(t,e,n,r){const o=function(t){const e=t.options.emphasis||"*";if("*"!==e&&"_"!==e)throw new Error("Cannot serialize emphasis with `"+e+"` for `options.emphasis`, expected `*`, or `_`");return e}(n),i=n.enter("emphasis"),a=n.createTracker(r),s=a.move(o);let c=a.move(n.containerPhrasing(t,{after:o,before:s,...a.current()}));const l=c.charCodeAt(0),p=Xt(r.before.charCodeAt(r.before.length-1),l,o);p.inside&&(c=Ht(l)+c.slice(1));const u=c.charCodeAt(c.length-1),d=Xt(r.after.charCodeAt(0),u,o);d.inside&&(c=c.slice(0,-1)+Ht(u));const f=a.move(o);return i(),n.attentionEncodeSurroundingInfo={after:d.outside,before:p.outside},s+c+f}Ft.peek=function(){return"~"},Yt.peek=function(t,e,n){return n.options.emphasis||"*"};const Kt={};function Jt(t,e){const n=e||Kt;return Zt(t,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function Zt(t,e,n){if(function(t){return Boolean(t&&"object"==typeof t)}(t)){if("value"in t)return"html"!==t.type||n?t.value:"";if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return Qt(t.children,e,n)}return Array.isArray(t)?Qt(t,e,n):""}function Qt(t,e,n){const r=[];let o=-1;for(;++o<t.length;)r[o]=Zt(t[o],e,n);return r.join("")}function te(t,e){let n=!1;return function(t,e,n,r){let o,i,a;"function"==typeof e&&"function"!=typeof n?(i=void 0,a=e,o=n):(i=e,a=n,o=r),at(t,i,(function(t,e){const n=e[e.length-1],r=n?n.children.indexOf(t):void 0;return a(t,r,n)}),o)}(t,(function(t){if("value"in t&&/\r?\n|\r/.test(t.value)||"break"===t.type)return n=!0,it})),Boolean((!t.depth||t.depth<3)&&Jt(t)&&(e.options.setext||n))}function ee(t){return t.value||""}function ne(t,e,n,r){const o=Wt(n),i='"'===o?"Quote":"Apostrophe",a=n.enter("image");let s=n.enter("label");const c=n.createTracker(r);let l=c.move("![");return l+=c.move(n.safe(t.alt,{before:l,after:"]",...c.current()})),l+=c.move("]("),s(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(s=n.enter("destinationLiteral"),l+=c.move("<"),l+=c.move(n.safe(t.url,{before:l,after:">",...c.current()})),l+=c.move(">")):(s=n.enter("destinationRaw"),l+=c.move(n.safe(t.url,{before:l,after:t.title?" ":")",...c.current()}))),s(),t.title&&(s=n.enter(`title${i}`),l+=c.move(" "+o),l+=c.move(n.safe(t.title,{before:l,after:o,...c.current()})),l+=c.move(o),s()),l+=c.move(")"),a(),l}function re(t,e,n,r){const o=t.referenceType,i=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let c=s.move("![");const l=n.safe(t.alt,{before:c,after:"]",...s.current()});c+=s.move(l+"]["),a();const p=n.stack;n.stack=[],a=n.enter("reference");const u=n.safe(n.associationId(t),{before:c,after:"]",...s.current()});return a(),n.stack=p,i(),"full"!==o&&l&&l===u?"shortcut"===o?c=c.slice(0,-1):c+=s.move("]"):c+=s.move(u+"]"),c}function oe(t,e,n){let r=t.value||"",o="`",i=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const t=n.unsafe[i],e=n.compilePattern(t);let o;if(t.atBreak)for(;o=e.exec(r);){let t=o.index;10===r.charCodeAt(t)&&13===r.charCodeAt(t-1)&&t--,r=r.slice(0,t)+" "+r.slice(o.index+1)}}return o+r+o}function ie(t,e){const n=Jt(t);return Boolean(!e.options.resourceLink&&t.url&&!t.title&&t.children&&1===t.children.length&&"text"===t.children[0].type&&(n===t.url||"mailto:"+n===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}function ae(t,e,n,r){const o=Wt(n),i='"'===o?"Quote":"Apostrophe",a=n.createTracker(r);let s,c;if(ie(t,n)){const e=n.stack;n.stack=[],s=n.enter("autolink");let r=a.move("<");return r+=a.move(n.containerPhrasing(t,{before:r,after:">",...a.current()})),r+=a.move(">"),s(),n.stack=e,r}s=n.enter("link"),c=n.enter("label");let l=a.move("[");return l+=a.move(n.containerPhrasing(t,{before:l,after:"](",...a.current()})),l+=a.move("]("),c(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(c=n.enter("destinationLiteral"),l+=a.move("<"),l+=a.move(n.safe(t.url,{before:l,after:">",...a.current()})),l+=a.move(">")):(c=n.enter("destinationRaw"),l+=a.move(n.safe(t.url,{before:l,after:t.title?" ":")",...a.current()}))),c(),t.title&&(c=n.enter(`title${i}`),l+=a.move(" "+o),l+=a.move(n.safe(t.title,{before:l,after:o,...a.current()})),l+=a.move(o),c()),l+=a.move(")"),s(),l}function se(t,e,n,r){const o=t.referenceType,i=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let c=s.move("[");const l=n.containerPhrasing(t,{before:c,after:"]",...s.current()});c+=s.move(l+"]["),a();const p=n.stack;n.stack=[],a=n.enter("reference");const u=n.safe(n.associationId(t),{before:c,after:"]",...s.current()});return a(),n.stack=p,i(),"full"!==o&&l&&l===u?"shortcut"===o?c=c.slice(0,-1):c+=s.move("]"):c+=s.move(u+"]"),c}function ce(t){const e=t.options.bullet||"*";if("*"!==e&&"+"!==e&&"-"!==e)throw new Error("Cannot serialize items with `"+e+"` for `options.bullet`, expected `*`, `+`, or `-`");return e}function le(t){const e=t.options.rule||"*";if("*"!==e&&"-"!==e&&"_"!==e)throw new Error("Cannot serialize rules with `"+e+"` for `options.rule`, expected `*`, `-`, or `_`");return e}ee.peek=function(){return"<"},ne.peek=function(){return"!"},re.peek=function(){return"!"},oe.peek=function(){return"`"},ae.peek=function(t,e,n){return ie(t,n)?"<":"["},se.peek=function(){return"["};const pe=tt(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function ue(t,e,n,r){const o=function(t){const e=t.options.strong||"*";if("*"!==e&&"_"!==e)throw new Error("Cannot serialize strong with `"+e+"` for `options.strong`, expected `*`, or `_`");return e}(n),i=n.enter("strong"),a=n.createTracker(r),s=a.move(o+o);let c=a.move(n.containerPhrasing(t,{after:o,before:s,...a.current()}));const l=c.charCodeAt(0),p=Xt(r.before.charCodeAt(r.before.length-1),l,o);p.inside&&(c=Ht(l)+c.slice(1));const u=c.charCodeAt(c.length-1),d=Xt(r.after.charCodeAt(0),u,o);d.inside&&(c=c.slice(0,-1)+Ht(u));const f=a.move(o+o);return i(),n.attentionEncodeSurroundingInfo={after:d.outside,before:p.outside},s+c+f}ue.peek=function(t,e,n){return n.options.strong||"*"};const de={blockquote:function(t,e,n,r){const o=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const a=n.indentLines(n.containerFlow(t,i.current()),Vt);return o(),a},break:qt,code:function(t,e,n,r){const o=function(t){const e=t.options.fence||"`";if("`"!==e&&"~"!==e)throw new Error("Cannot serialize code with `"+e+"` for `options.fence`, expected `` ` `` or `~`");return e}(n),i=t.value||"",a="`"===o?"GraveAccent":"Tilde";if(function(t,e){return Boolean(!1===e.options.fences&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}(t,n)){const t=n.enter("codeIndented"),e=n.indentLines(i,$t);return t(),e}const s=n.createTracker(r),c=o.repeat(Math.max(function(t,e){const n=String(t);let r=n.indexOf(e),o=r,i=0,a=0;if("string"!=typeof e)throw new TypeError("Expected substring");for(;-1!==r;)r===o?++i>a&&(a=i):i=1,o=r+e.length,r=n.indexOf(e,o);return a}(i,o)+1,3)),l=n.enter("codeFenced");let p=s.move(c);if(t.lang){const e=n.enter(`codeFencedLang${a}`);p+=s.move(n.safe(t.lang,{before:p,after:" ",encode:["`"],...s.current()})),e()}if(t.lang&&t.meta){const e=n.enter(`codeFencedMeta${a}`);p+=s.move(" "),p+=s.move(n.safe(t.meta,{before:p,after:"\n",encode:["`"],...s.current()})),e()}return p+=s.move("\n"),i&&(p+=s.move(i+"\n")),p+=s.move(c),l(),p},definition:function(t,e,n,r){const o=Wt(n),i='"'===o?"Quote":"Apostrophe",a=n.enter("definition");let s=n.enter("label");const c=n.createTracker(r);let l=c.move("[");return l+=c.move(n.safe(n.associationId(t),{before:l,after:"]",...c.current()})),l+=c.move("]: "),s(),!t.url||/[\0- \u007F]/.test(t.url)?(s=n.enter("destinationLiteral"),l+=c.move("<"),l+=c.move(n.safe(t.url,{before:l,after:">",...c.current()})),l+=c.move(">")):(s=n.enter("destinationRaw"),l+=c.move(n.safe(t.url,{before:l,after:t.title?" ":"\n",...c.current()}))),s(),t.title&&(s=n.enter(`title${i}`),l+=c.move(" "+o),l+=c.move(n.safe(t.title,{before:l,after:o,...c.current()})),l+=c.move(o),s()),a(),l},emphasis:Yt,hardBreak:qt,heading:function(t,e,n,r){const o=Math.max(Math.min(6,t.depth||1),1),i=n.createTracker(r);if(te(t,n)){const e=n.enter("headingSetext"),r=n.enter("phrasing"),a=n.containerPhrasing(t,{...i.current(),before:"\n",after:"\n"});return r(),e(),a+"\n"+(1===o?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}const a="#".repeat(o),s=n.enter("headingAtx"),c=n.enter("phrasing");i.move(a+" ");let l=n.containerPhrasing(t,{before:"# ",after:"\n",...i.current()});return/^[\t ]/.test(l)&&(l=Ht(l.charCodeAt(0))+l.slice(1)),l=l?a+" "+l:a,n.options.closeAtx&&(l+=" "+a),c(),s(),l},html:ee,image:ne,imageReference:re,inlineCode:oe,link:ae,linkReference:se,list:function(t,e,n,r){const o=n.enter("list"),i=n.bulletCurrent;let a=t.ordered?function(t){const e=t.options.bulletOrdered||".";if("."!==e&&")"!==e)throw new Error("Cannot serialize items with `"+e+"` for `options.bulletOrdered`, expected `.` or `)`");return e}(n):ce(n);const s=t.ordered?"."===a?")":".":function(t){const e=ce(t),n=t.options.bulletOther;if(!n)return"*"===e?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===e)throw new Error("Expected `bullet` (`"+e+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let c=!(!e||!n.bulletLastUsed)&&a===n.bulletLastUsed;if(!t.ordered){const e=t.children?t.children[0]:void 0;if("*"!==a&&"-"!==a||!e||e.children&&e.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(c=!0),le(n)===a&&e){let e=-1;for(;++e<t.children.length;){const n=t.children[e];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){c=!0;break}}}}c&&(a=s),n.bulletCurrent=a;const l=n.containerFlow(t,r);return n.bulletLastUsed=a,n.bulletCurrent=i,o(),l},listItem:function(t,e,n,r){const o=function(t){const e=t.options.listItemIndent||"one";if("tab"!==e&&"one"!==e&&"mixed"!==e)throw new Error("Cannot serialize items with `"+e+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return e}(n);let i=n.bulletCurrent||ce(n);e&&"list"===e.type&&e.ordered&&(i=("number"==typeof e.start&&e.start>-1?e.start:1)+(!1===n.options.incrementListMarker?0:e.children.indexOf(t))+i);let a=i.length+1;("tab"===o||"mixed"===o&&(e&&"list"===e.type&&e.spread||t.spread))&&(a=4*Math.ceil(a/4));const s=n.createTracker(r);s.move(i+" ".repeat(a-i.length)),s.shift(a);const c=n.enter("listItem"),l=n.indentLines(n.containerFlow(t,s.current()),(function(t,e,n){if(e)return(n?"":" ".repeat(a))+t;return(n?i:i+" ".repeat(a-i.length))+t}));return c(),l},paragraph:function(t,e,n,r){const o=n.enter("paragraph"),i=n.enter("phrasing"),a=n.containerPhrasing(t,r);return i(),o(),a},root:function(t,e,n,r){return(t.children.some((function(t){return pe(t)}))?n.containerPhrasing:n.containerFlow).call(n,t,r)},strong:ue,text:function(t,e,n,r){return n.safe(t.value,r)},thematicBreak:function(t,e,n){const r=(le(n)+(n.options.ruleSpaces?" ":"")).repeat(function(t){const e=t.options.ruleRepetition||3;if(e<3)throw new Error("Cannot serialize rules with repetition `"+e+"` for `options.ruleRepetition`, expected `3` or more");return e}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function fe(t){const e=t._align;this.enter({type:"table",align:e.map((function(t){return"none"===t?null:t})),children:[]},t),this.data.inTable=!0}function me(t){this.exit(t),this.data.inTable=void 0}function he(t){this.enter({type:"tableRow",children:[]},t)}function ge(t){this.exit(t)}function ve(t){this.enter({type:"tableCell",children:[]},t)}function xe(t){let e=this.resume();this.data.inTable&&(e=e.replace(/\\([\\|])/g,ye));const n=this.stack[this.stack.length-1];n.type,n.value=e,this.exit(t)}function ye(t,e){return"|"===e?e:t}function be(t){const e=t||{},n=e.tableCellPadding,r=e.tablePipeAlign,o=e.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(t,e,n){let r=de.inlineCode(t,e,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(t,e,n,r){return s(function(t,e,n){const r=t.children;let o=-1;const i=[],a=e.enter("table");for(;++o<r.length;)i[o]=c(r[o],e,n);return a(),i}(t,n,r),t.align)},tableCell:a,tableRow:function(t,e,n,r){const o=c(t,n,r),i=s([o]);return i.slice(0,i.indexOf("\n"))}}};function a(t,e,n,r){const o=n.enter("tableCell"),a=n.enter("phrasing"),s=n.containerPhrasing(t,{...r,before:i,after:i});return a(),o(),s}function s(t,e){return function(t,e){const n=e||{},r=(n.align||[]).concat(),o=n.stringLength||zt,i=[],a=[],s=[],c=[];let l=0,p=-1;for(;++p<t.length;){const e=[],r=[];let i=-1;for(t[p].length>l&&(l=t[p].length);++i<t[p].length;){const a=null==(u=t[p][i])?"":String(u);if(!1!==n.alignDelimiters){const t=o(a);r[i]=t,(void 0===c[i]||t>c[i])&&(c[i]=t)}e.push(a)}a[p]=e,s[p]=r}var u;let d=-1;if("object"==typeof r&&"length"in r)for(;++d<l;)i[d]=Bt(r[d]);else{const t=Bt(r);for(;++d<l;)i[d]=t}d=-1;const f=[],m=[];for(;++d<l;){const t=i[d];let e="",r="";99===t?(e=":",r=":"):108===t?e=":":114===t&&(r=":");let o=!1===n.alignDelimiters?1:Math.max(1,c[d]-e.length-r.length);const a=e+"-".repeat(o)+r;!1!==n.alignDelimiters&&(o=e.length+o+r.length,o>c[d]&&(c[d]=o),m[d]=o),f[d]=a}a.splice(1,0,f),s.splice(1,0,m),p=-1;const h=[];for(;++p<a.length;){const t=a[p],e=s[p];d=-1;const r=[];for(;++d<l;){const o=t[d]||"";let a="",s="";if(!1!==n.alignDelimiters){const t=c[d]-(e[d]||0),n=i[d];114===n?a=" ".repeat(t):99===n?t%2?(a=" ".repeat(t/2+.5),s=" ".repeat(t/2-.5)):(a=" ".repeat(t/2),s=a):s=" ".repeat(t)}!1===n.delimiterStart||d||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===o||!1===n.delimiterStart&&!d||r.push(" "),!1!==n.alignDelimiters&&r.push(a),r.push(o),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&d===l-1||r.push("|")}h.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return h.join("\n")}(t,{align:e,alignDelimiters:r,padding:n,stringLength:o})}function c(t,e,n){const r=t.children;let o=-1;const i=[],s=e.enter("tableRow");for(;++o<r.length;)i[o]=a(r[o],0,e,n);return s(),i}}function we(t){const e=this.stack[this.stack.length-2];e.type,e.checked="taskListCheckValueChecked"===t.type}function ke(t){const e=this.stack[this.stack.length-2];if(e&&"listItem"===e.type&&"boolean"==typeof e.checked){const t=this.stack[this.stack.length-1];t.type;const n=t.children[0];if(n&&"text"===n.type){const r=e.children;let o,i=-1;for(;++i<r.length;){const t=r[i];if("paragraph"===t.type){o=t;break}}o===t&&(n.value=n.value.slice(1),0===n.value.length?t.children.shift():t.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,t.position.start=Object.assign({},n.position.start)))}}this.exit(t)}function je(t,e,n,r){const o=t.children[0],i="boolean"==typeof t.checked&&o&&"paragraph"===o.type,a="["+(t.checked?"x":" ")+"] ",s=n.createTracker(r);i&&s.move(a);let c=de.listItem(t,e,n,{...r,...s.current()});return i&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(t){return t+a}))),c}function Ee(t,e,n,r){const o=t.length;let i,a=0;if(e=e<0?-e>o?0:o+e:e>o?o:e,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(e,n),t.splice(...i);else for(n&&t.splice(e,n);a<r.length;)i=r.slice(a,a+1e4),i.unshift(e,0),t.splice(...i),a+=1e4,e+=1e4}const Se={}.hasOwnProperty;function _e(t,e){let n;for(n in e){const r=(Se.call(t,n)?t[n]:void 0)||(t[n]={}),o=e[n];let i;if(o)for(i in o){Se.call(r,i)||(r[i]=[]);const t=o[i];Pe(r[i],Array.isArray(t)?t:t?[t]:[])}}}function Pe(t,e){let n=-1;const r=[];for(;++n<e.length;)("after"===e[n].add?t:r).push(e[n]);Ee(t,0,0,r)}const Oe={tokenize:function(t,e,n){let r=0;return function e(i){if((87===i||119===i)&&r<3)return r++,t.consume(i),e;if(46===i&&3===r)return t.consume(i),o;return n(i)};function o(t){return null===t?n(t):e(t)}},partial:!0},Ce={tokenize:function(t,e,n){let r,o,i;return a;function a(e){return 46===e||95===e?t.check(Ae,c,s)(e):null===e||Y(e)||Z(e)||45!==e&&J(e)?c(e):(i=!0,t.consume(e),a)}function s(e){return 95===e?r=!0:(o=r,r=void 0),t.consume(e),a}function c(t){return o||r||!i?n(t):e(t)}},partial:!0},Te={tokenize:function(t,e){let n=0,r=0;return o;function o(a){return 40===a?(n++,t.consume(a),o):41===a&&r<n?i(a):33===a||34===a||38===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||60===a||63===a||93===a||95===a||126===a?t.check(Ae,e,i)(a):null===a||Y(a)||Z(a)?e(a):(t.consume(a),o)}function i(e){return 41===e&&r++,t.consume(e),o}},partial:!0},Ae={tokenize:function(t,e,n){return r;function r(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(t.consume(a),r):38===a?(t.consume(a),i):93===a?(t.consume(a),o):60===a||null===a||Y(a)||Z(a)?e(a):n(a)}function o(t){return null===t||40===t||91===t||Y(t)||Z(t)?e(t):r(t)}function i(t){return H(t)?a(t):n(t)}function a(e){return 59===e?(t.consume(e),r):H(e)?(t.consume(e),a):n(e)}},partial:!0},Re={tokenize:function(t,e,n){return function(e){return t.consume(e),r};function r(t){return G(t)?n(t):e(t)}},partial:!0},Ne={name:"wwwAutolink",tokenize:function(t,e,n){const r=this;return function(e){if(87!==e&&119!==e||!Fe.call(r,r.previous)||Ue(r.events))return n(e);return t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(Oe,t.attempt(Ce,t.attempt(Te,o),n),n)(e)};function o(n){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),e(n)}},previous:Fe},De={name:"protocolAutolink",tokenize:function(t,e,n){const r=this;let o="",i=!1;return function(e){if((72===e||104===e)&&ze.call(r,r.previous)&&!Ue(r.events))return t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),o+=String.fromCodePoint(e),t.consume(e),a;return n(e)};function a(e){if(H(e)&&o.length<5)return o+=String.fromCodePoint(e),t.consume(e),a;if(58===e){const n=o.toLowerCase();if("http"===n||"https"===n)return t.consume(e),s}return n(e)}function s(e){return 47===e?(t.consume(e),i?c:(i=!0,s)):n(e)}function c(e){return null===e||function(t){return null!==t&&(t<32||127===t)}(e)||Y(e)||Z(e)||J(e)?n(e):t.attempt(Ce,t.attempt(Te,l),n)(e)}function l(n){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),e(n)}},previous:ze},Le={name:"emailAutolink",tokenize:function(t,e,n){const r=this;let o,i;return function(e){if(!Ve(e)||!Be.call(r,r.previous)||Ue(r.events))return n(e);return t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),a(e)};function a(e){return Ve(e)?(t.consume(e),a):64===e?(t.consume(e),s):n(e)}function s(e){return 46===e?t.check(Re,l,c)(e):45===e||95===e||G(e)?(i=!0,t.consume(e),s):l(e)}function c(e){return t.consume(e),o=!0,s}function l(a){return i&&o&&H(r.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),e(a)):n(a)}},previous:Be},Me={};let Ie=48;for(;Ie<123;)Me[Ie]=Le,Ie++,58===Ie?Ie=65:91===Ie&&(Ie=97);function Fe(t){return null===t||40===t||42===t||95===t||91===t||93===t||126===t||Y(t)}function ze(t){return!H(t)}function Be(t){return!(47===t||Ve(t))}function Ve(t){return 43===t||45===t||46===t||95===t||G(t)}function Ue(t){let e=t.length,n=!1;for(;e--;){const r=t[e][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return t.length>0&&!n&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function qe(t,e,n){const r=[];let o=-1;for(;++o<t.length;){const i=t[o].resolveAll;i&&!r.includes(i)&&(e=i(e,n),r.push(i))}return e}function $e(t,e,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){if(K(r))return t.enter(n),a(r);return e(r)};function a(r){return K(r)&&i++<o?(t.consume(r),a):(t.exit(n),e(r))}}Me[43]=Le,Me[45]=Le,Me[46]=Le,Me[95]=Le,Me[72]=[Le,De],Me[104]=[Le,De],Me[87]=[Le,Ne],Me[119]=[Le,Ne];const We={partial:!0,tokenize:function(t,e,n){return function(e){return K(e)?$e(t,r,"linePrefix")(e):r(e)};function r(t){return null===t||X(t)?e(t):n(t)}}};const He={tokenize:function(t,e,n){const r=this;return $e(t,(function(t){const o=r.events[r.events.length-1];return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?e(t):n(t)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function Ge(t,e,n){const r=this;let o=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;o--;){const t=r.events[o][1];if("labelImage"===t.type){a=t;break}if("gfmFootnoteCall"===t.type||"labelLink"===t.type||"label"===t.type||"image"===t.type||"link"===t.type)break}return function(o){if(!a||!a._balanced)return n(o);const s=kt(r.sliceSerialize({start:a.end,end:r.now()}));if(94!==s.codePointAt(0)||!i.includes(s.slice(1)))return n(o);return t.enter("gfmFootnoteCallLabelMarker"),t.consume(o),t.exit("gfmFootnoteCallLabelMarker"),e(o)}}function Xe(t,e){let n=t.length;for(;n--;)if("labelImage"===t[n][1].type&&"enter"===t[n][0]){t[n][1];break}t[n+1][1].type="data",t[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},t[n+3][1].start),end:Object.assign({},t[t.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},t[n+3][1].end),end:Object.assign({},t[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},t[t.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[t[n+1],t[n+2],["enter",r,e],t[n+3],t[n+4],["enter",o,e],["exit",o,e],["enter",i,e],["enter",a,e],["exit",a,e],["exit",i,e],t[t.length-2],t[t.length-1],["exit",r,e]];return t.splice(n,t.length-n+1,...s),t}function Ye(t,e,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a=0;return function(e){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(e),t.exit("gfmFootnoteCallLabelMarker"),s};function s(e){return 94!==e?n(e):(t.enter("gfmFootnoteCallMarker"),t.consume(e),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",c)}function c(s){if(a>999||93===s&&!i||null===s||91===s||Y(s))return n(s);if(93===s){t.exit("chunkString");const i=t.exit("gfmFootnoteCallString");return o.includes(kt(r.sliceSerialize(i)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(s),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),e):n(s)}return Y(s)||(i=!0),a++,t.consume(s),92===s?l:c}function l(e){return 91===e||92===e||93===e?(t.consume(e),a++,c):c(e)}}function Ke(t,e,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a,s=0;return function(e){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(e),t.exit("gfmFootnoteDefinitionLabelMarker"),c};function c(e){return 94===e?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(e),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",l):n(e)}function l(e){if(s>999||93===e&&!a||null===e||91===e||Y(e))return n(e);if(93===e){t.exit("chunkString");const n=t.exit("gfmFootnoteDefinitionLabelString");return i=kt(r.sliceSerialize(n)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(e),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),u}return Y(e)||(a=!0),s++,t.consume(e),92===e?p:l}function p(e){return 91===e||92===e||93===e?(t.consume(e),s++,l):l(e)}function u(e){return 58===e?(t.enter("definitionMarker"),t.consume(e),t.exit("definitionMarker"),o.includes(i)||o.push(i),$e(t,d,"gfmFootnoteDefinitionWhitespace")):n(e)}function d(t){return e(t)}}function Je(t,e,n){return t.check(We,e,t.attempt(He,e,n))}function Ze(t){t.exit("gfmFootnoteDefinition")}function Qe(t){let e=(t||{}).singleTilde;const n={name:"strikethrough",tokenize:function(t,n,r){const o=this.previous,i=this.events;let a=0;return function(e){if(126===o&&"characterEscape"!==i[i.length-1][1].type)return r(e);return t.enter("strikethroughSequenceTemporary"),s(e)};function s(i){const c=Gt(o);if(126===i)return a>1?r(i):(t.consume(i),a++,s);if(a<2&&!e)return r(i);const l=t.exit("strikethroughSequenceTemporary"),p=Gt(i);return l._open=!p||2===p&&Boolean(c),l._close=!c||2===c&&Boolean(p),n(i)}},resolveAll:function(t,e){let n=-1;for(;++n<t.length;)if("enter"===t[n][0]&&"strikethroughSequenceTemporary"===t[n][1].type&&t[n][1]._close){let r=n;for(;r--;)if("exit"===t[r][0]&&"strikethroughSequenceTemporary"===t[r][1].type&&t[r][1]._open&&t[n][1].end.offset-t[n][1].start.offset==t[r][1].end.offset-t[r][1].start.offset){t[n][1].type="strikethroughSequence",t[r][1].type="strikethroughSequence";const o={type:"strikethrough",start:Object.assign({},t[r][1].start),end:Object.assign({},t[n][1].end)},i={type:"strikethroughText",start:Object.assign({},t[r][1].end),end:Object.assign({},t[n][1].start)},a=[["enter",o,e],["enter",t[r][1],e],["exit",t[r][1],e],["enter",i,e]],s=e.parser.constructs.insideSpan.null;s&&Ee(a,a.length,0,qe(s,t.slice(r+1,n),e)),Ee(a,a.length,0,[["exit",i,e],["enter",t[n][1],e],["exit",t[n][1],e],["exit",o,e]]),Ee(t,r-1,n-r+3,a),n=r+a.length-2;break}}n=-1;for(;++n<t.length;)"strikethroughSequenceTemporary"===t[n][1].type&&(t[n][1].type="data");return t}};return null==e&&(e=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class tn{constructor(){this.map=[]}add(t,e,n){!function(t,e,n,r){let o=0;if(0===n&&0===r.length)return;for(;o<t.map.length;){if(t.map[o][0]===e)return t.map[o][1]+=n,void t.map[o][2].push(...r);o+=1}t.map.push([e,n,r])}(this,t,e,n)}consume(t){if(this.map.sort((function(t,e){return t[0]-e[0]})),0===this.map.length)return;let e=this.map.length;const n=[];for(;e>0;)e-=1,n.push(t.slice(this.map[e][0]+this.map[e][1]),this.map[e][2]),t.length=this.map[e][0];n.push(t.slice()),t.length=0;let r=n.pop();for(;r;){for(const e of r)t.push(e);r=n.pop()}this.map.length=0}}function en(t,e){let n=!1;const r=[];for(;e<t.length;){const o=t[e];if(n){if("enter"===o[0])"tableContent"===o[1].type&&r.push("tableDelimiterMarker"===t[e+1][1].type?"left":"none");else if("tableContent"===o[1].type){if("tableDelimiterMarker"===t[e-1][1].type){const t=r.length-1;r[t]="left"===r[t]?"center":"right"}}else if("tableDelimiterRow"===o[1].type)break}else"enter"===o[0]&&"tableDelimiterRow"===o[1].type&&(n=!0);e+=1}return r}function nn(t,e,n){const r=this;let o,i=0,a=0;return function(t){let e=r.events.length-1;for(;e>-1;){const t=r.events[e][1].type;if("lineEnding"!==t&&"linePrefix"!==t)break;e--}const o=e>-1?r.events[e][1].type:null,i="tableHead"===o||"tableRow"===o?b:s;if(i===b&&r.parser.lazy[r.now().line])return n(t);return i(t)};function s(e){return t.enter("tableHead"),t.enter("tableRow"),function(t){if(124===t)return c(t);return o=!0,a+=1,c(t)}(e)}function c(e){return null===e?n(e):X(e)?a>1?(a=0,r.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),u):n(e):K(e)?$e(t,c,"whitespace")(e):(a+=1,o&&(o=!1,i+=1),124===e?(t.enter("tableCellDivider"),t.consume(e),t.exit("tableCellDivider"),o=!0,c):(t.enter("data"),l(e)))}function l(e){return null===e||124===e||Y(e)?(t.exit("data"),c(e)):(t.consume(e),92===e?p:l)}function p(e){return 92===e||124===e?(t.consume(e),l):l(e)}function u(e){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(e):(t.enter("tableDelimiterRow"),o=!1,K(e)?$e(t,d,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(e):d(e))}function d(e){return 45===e||58===e?m(e):124===e?(o=!0,t.enter("tableCellDivider"),t.consume(e),t.exit("tableCellDivider"),f):y(e)}function f(e){return K(e)?$e(t,m,"whitespace")(e):m(e)}function m(e){return 58===e?(a+=1,o=!0,t.enter("tableDelimiterMarker"),t.consume(e),t.exit("tableDelimiterMarker"),h):45===e?(a+=1,h(e)):null===e||X(e)?x(e):y(e)}function h(e){return 45===e?(t.enter("tableDelimiterFiller"),g(e)):y(e)}function g(e){return 45===e?(t.consume(e),g):58===e?(o=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(e),t.exit("tableDelimiterMarker"),v):(t.exit("tableDelimiterFiller"),v(e))}function v(e){return K(e)?$e(t,x,"whitespace")(e):x(e)}function x(n){return 124===n?d(n):(null===n||X(n))&&o&&i===a?(t.exit("tableDelimiterRow"),t.exit("tableHead"),e(n)):y(n)}function y(t){return n(t)}function b(e){return t.enter("tableRow"),w(e)}function w(n){return 124===n?(t.enter("tableCellDivider"),t.consume(n),t.exit("tableCellDivider"),w):null===n||X(n)?(t.exit("tableRow"),e(n)):K(n)?$e(t,w,"whitespace")(n):(t.enter("data"),k(n))}function k(e){return null===e||124===e||Y(e)?(t.exit("data"),w(e)):(t.consume(e),92===e?j:k)}function j(e){return 92===e||124===e?(t.consume(e),k):k(e)}}function rn(t,e){let n,r,o,i=-1,a=!0,s=0,c=[0,0,0,0],l=[0,0,0,0],p=!1,u=0;const d=new tn;for(;++i<t.length;){const f=t[i],m=f[1];"enter"===f[0]?"tableHead"===m.type?(p=!1,0!==u&&(an(d,e,u,n,r),r=void 0,u=0),n={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},d.add(i,0,[["enter",n,e]])):"tableRow"===m.type||"tableDelimiterRow"===m.type?(a=!0,o=void 0,c=[0,0,0,0],l=[0,i+1,0,0],p&&(p=!1,r={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},d.add(i,0,[["enter",r,e]])),s="tableDelimiterRow"===m.type?2:r?3:1):!s||"data"!==m.type&&"tableDelimiterMarker"!==m.type&&"tableDelimiterFiller"!==m.type?"tableCellDivider"===m.type&&(a?a=!1:(0!==c[1]&&(l[0]=l[1],o=on(d,e,c,s,void 0,o)),c=l,l=[c[1],i,0,0])):(a=!1,0===l[2]&&(0!==c[1]&&(l[0]=l[1],o=on(d,e,c,s,void 0,o),c=[0,0,0,0]),l[2]=i)):"tableHead"===m.type?(p=!0,u=i):"tableRow"===m.type||"tableDelimiterRow"===m.type?(u=i,0!==c[1]?(l[0]=l[1],o=on(d,e,c,s,i,o)):0!==l[1]&&(o=on(d,e,l,s,i,o)),s=0):!s||"data"!==m.type&&"tableDelimiterMarker"!==m.type&&"tableDelimiterFiller"!==m.type||(l[3]=i)}for(0!==u&&an(d,e,u,n,r),d.consume(e.events),i=-1;++i<e.events.length;){const t=e.events[i];"enter"===t[0]&&"table"===t[1].type&&(t[1]._align=en(e.events,i))}return t}function on(t,e,n,r,o,i){const a=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(i.end=Object.assign({},sn(e.events,n[0])),t.add(n[0],0,[["exit",i,e]]));const s=sn(e.events,n[1]);if(i={type:a,start:Object.assign({},s),end:Object.assign({},s)},t.add(n[1],0,[["enter",i,e]]),0!==n[2]){const o=sn(e.events,n[2]),i=sn(e.events,n[3]),a={type:"tableContent",start:Object.assign({},o),end:Object.assign({},i)};if(t.add(n[2],0,[["enter",a,e]]),2!==r){const r=e.events[n[2]],o=e.events[n[3]];if(r[1].end=Object.assign({},o[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const e=n[2]+1,r=n[3]-n[2]-1;t.add(e,r,[])}}t.add(n[3]+1,0,[["exit",a,e]])}return void 0!==o&&(i.end=Object.assign({},sn(e.events,o)),t.add(o,0,[["exit",i,e]]),i=void 0),i}function an(t,e,n,r,o){const i=[],a=sn(e.events,n);o&&(o.end=Object.assign({},a),i.push(["exit",o,e])),r.end=Object.assign({},a),i.push(["exit",r,e]),t.add(n+1,0,i)}function sn(t,e){const n=t[e],r="enter"===n[0]?"start":"end";return n[1][r]}const cn={name:"tasklistCheck",tokenize:function(t,e,n){const r=this;return function(e){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(e);return t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(e),t.exit("taskListCheckMarker"),o};function o(e){return Y(e)?(t.enter("taskListCheckValueUnchecked"),t.consume(e),t.exit("taskListCheckValueUnchecked"),i):88===e||120===e?(t.enter("taskListCheckValueChecked"),t.consume(e),t.exit("taskListCheckValueChecked"),i):n(e)}function i(e){return 93===e?(t.enter("taskListCheckMarker"),t.consume(e),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),a):n(e)}function a(r){return X(r)?e(r):K(r)?t.check({tokenize:ln},e,n)(r):n(r)}}};function ln(t,e,n){return $e(t,(function(t){return null===t?n(t):e(t)}),"whitespace")}function pn(t){return function(t){const e={};let n=-1;for(;++n<t.length;)_e(e,t[n]);return e}([{text:Me},{document:{91:{name:"gfmFootnoteDefinition",tokenize:Ke,continuation:{tokenize:Je},exit:Ze}},text:{91:{name:"gfmFootnoteCall",tokenize:Ye},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Ge,resolveTo:Xe}}},Qe(t),{flow:{null:{name:"table",tokenize:nn,resolveAll:rn}}},{text:{91:cn}}])}const un={};function dn(t){const e=t||un,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(pn(e)),o.push([{transforms:[xt],enter:{literalAutolink:dt,literalAutolinkEmail:ft,literalAutolinkHttp:ft,literalAutolinkWww:ft},exit:{literalAutolink:vt,literalAutolinkEmail:gt,literalAutolinkHttp:mt,literalAutolinkWww:ht}},{enter:{gfmFootnoteCallString:jt,gfmFootnoteCall:Et,gfmFootnoteDefinitionLabelString:St,gfmFootnoteDefinition:_t},exit:{gfmFootnoteCallString:Pt,gfmFootnoteCall:Ot,gfmFootnoteDefinitionLabelString:Ct,gfmFootnoteDefinition:Tt}},{canContainEols:["delete"],enter:{strikethrough:Mt},exit:{strikethrough:It}},{enter:{table:fe,tableData:ve,tableHeader:ve,tableRow:he},exit:{codeText:xe,table:me,tableData:ge,tableHeader:ge,tableRow:ge}},{exit:{taskListCheckValueChecked:we,taskListCheckValueUnchecked:we,paragraph:ke}}]),i.push(function(t){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:pt,notInConstruct:ut},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:pt,notInConstruct:ut},{character:":",before:"[ps]",after:"\\/",inConstruct:pt,notInConstruct:ut}]},Rt(t),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Lt}],handlers:{delete:Ft}},be(t),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:je}}]}}(e))}var fn=function(t){return t.replace(/<a(.*?)href="(.*?)"(.*?)>/gi,'<a$1href="$2"$3 target="_blank" rel="noopener noreferrer">')},mn=function(t){return P(void 0,void 0,void 0,(function(){var e,n,r;return O(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,j().use(dn).use(E,{sanitize:!1}).process(t)];case 1:return e=o.sent(),n=e.toString(),n=n.replace(/<li>\s*<p>([\s\S]*?)<\/p>/g,"<li>$1"),[2,n=fn(n)];case 2:return r=o.sent(),console.error("Error converting Markdown to HTML:",r),[2,""];case 3:return[2]}}))}))};function hn(t){var e=t.answer,r=n(""),i=r[0],a=r[1];return o((function(){e&&mn(e).then((function(t){return a(t)}))}),[e]),z.jsxs("div",{className:"container flex h-auto w-full shrink-0 gap-4 bg-black/30 backdrop-blur-md shadow-lg rounded-lg border border-solid border-gray-700/40 p-5",children:[z.jsxs("div",{className:"w-full",children:[z.jsx("div",{className:"flex items-center justify-between pb-3",children:e&&z.jsx("div",{className:"flex items-center gap-3",children:z.jsx("button",{onClick:function(){navigator.clipboard.writeText(e.trim()),w("Answer copied to clipboard",{icon:"✂️"})},className:"hover:opacity-80 transition-opacity duration-200",children:z.jsx("img",{src:"https://askjarvis.ai/img/copy-white.svg",alt:"copy",width:20,height:20,className:"cursor-pointer text-white"})})})}),z.jsx("div",{className:"flex flex-wrap content-center items-center gap-[15px] pl-5 pr-5",children:z.jsx("div",{className:"w-full whitespace-pre-wrap text-base font-light leading-[152.5%] text-white log-message",children:e?z.jsx("div",{className:"markdown-content",dangerouslySetInnerHTML:{__html:i}}):z.jsxs("div",{className:"flex w-full flex-col gap-2",children:[z.jsx("div",{className:"h-6 w-full animate-pulse rounded-md bg-gray-300/20"}),z.jsx("div",{className:"h-6 w-[85%] animate-pulse rounded-md bg-gray-300/20"}),z.jsx("div",{className:"h-6 w-[90%] animate-pulse rounded-md bg-gray-300/20"}),z.jsx("div",{className:"h-6 w-[70%] animate-pulse rounded-md bg-gray-300/20"})]})})})]}),z.jsx(k,{position:"top-center",reverseOrder:!1,toastOptions:{duration:2e3}})]})}B(".markdown-content{color:#fff;font-family:Georgia,Times New Roman,Times,serif;font-size:18px;line-height:1.6;h1,h2,h3,h4,h5,h6{font-weight:500;line-height:1.2}h1{font-size:2.5em}h2{font-size:2em}h3{font-size:1.5em}h4{font-size:1.2em}h5{font-size:1.1em}h6{font-size:1em}p{line-height:1.6;margin:0}b,strong{font-weight:600}em,i{font-style:italic}del,s{text-decoration:line-through}ol,ul{line-height:1.6;margin:0;padding-left:2em}li{margin:0;padding-left:.5em}ul li{list-style-type:disc}ol li{list-style-type:decimal}ul.contains-task-list{list-style-type:none;padding-left:0}.task-list-item{list-style-type:none;padding-left:1.5em;position:relative}.task-list-item-checkbox{left:0;margin-right:.5em;position:absolute;top:.25em}a{color:#14b8a6;font-weight:500;text-decoration:underline;&:hover{color:#0d9488;opacity:.8}}pre{border-radius:4px;margin:1em 0;overflow-x:auto;padding:1em}code,pre{background-color:#1e1e1e}code{border-radius:3px;font-family:Courier New,Courier,monospace;font-size:.9em;padding:0 .4em}blockquote{background-color:rgba(20,184,166,.1);border-left:4px solid #14b8a6;border-radius:0 4px 4px 0;font-style:italic;margin:0;padding-left:1em}table{background-color:#111827;border:2px solid #4b5563;border-collapse:collapse;border-radius:4px;box-shadow:0 0 0 1px rgba(20,184,166,.1);margin:1em 0;overflow:hidden;width:100%}td,th{border:1px solid #4b5563;padding:.75em;text-align:left}tr:first-child th{border-top:2px solid #4b5563}tr:last-child td{border-bottom:2px solid #4b5563}td:first-child,th:first-child{border-left:2px solid #4b5563}td:last-child,th:last-child{border-right:2px solid #4b5563}th{background-color:#1f2937;color:#fff;font-weight:600}tr:nth-child(2n){background-color:#1a202c}tr:hover{background-color:#282c34}hr{border:0;border-top:1px solid #444;margin:1.5em 0}img{border-radius:4px;height:auto;max-width:100%}dl,img{margin:1em 0}dt{font-weight:700;margin-top:.5em}dd{margin-bottom:.5em;margin-left:2em}}");var gn=function(t){var e=t.source,r=n("https://www.google.com/s2/favicons?domain=".concat(e.url,"&sz=128")),o=r[0],i=r[1];return z.jsxs("div",{className:"flex h-[79px] w-full items-center gap-3 rounded-lg border border-solid border-gray-700/30 bg-gray-800/30 backdrop-blur-sm shadow-sm px-3 py-2 md:w-auto hover:border-teal-500/30 transition-colors duration-200",children:[z.jsx("img",{src:o,alt:e.url,className:"p-1",width:44,height:44,onError:function(){i("https://askjarvis.ai/img/globe.svg")}}),z.jsxs("div",{className:"flex max-w-[192px] flex-col justify-center gap-[7px]",children:[z.jsx("h6",{className:"line-clamp-2 text-sm font-medium leading-[normal] text-white",children:e.name}),z.jsx("a",{target:"_blank",rel:"noopener noreferrer",href:e.url,className:"truncate text-sm font-light text-gray-300/60 hover:text-teal-300/80 transition-colors",children:e.url})]})]})};function vn(t){var e=t.sources;return z.jsxs("div",{className:"container h-auto w-full shrink-0 rounded-lg border border-solid border-gray-700/40 bg-black/30 backdrop-blur-md shadow-lg p-5",children:[z.jsxs("div",{className:"flex items-start gap-4 pb-3 lg:pb-3.5",children:[z.jsx("img",{src:"https://askjarvis.ai/img/browser.svg",alt:"sources",width:24,height:24}),z.jsxs("h3",{className:"text-base font-bold uppercase leading-[152.5%] text-white",children:[e.length," Sources"," "]})]}),z.jsx("div",{className:"overflow-y-auto max-h-[250px] scrollbar-thin scrollbar-thumb-gray-600 scrollbar-track-gray-300/10",children:z.jsx("div",{className:"flex w-full max-w-[890px] flex-wrap content-center items-center gap-[15px] pb-2",children:e.length>0?e.map((function(t){return z.jsx(gn,{source:t},t.url)})):z.jsxs(z.Fragment,{children:[z.jsx("div",{className:"h-20 w-[260px] max-w-sm animate-pulse rounded-md bg-gray-300/20"}),z.jsx("div",{className:"h-20 w-[260px] max-w-sm animate-pulse rounded-md bg-gray-300/20"}),z.jsx("div",{className:"h-20 w-[260px] max-w-sm animate-pulse rounded-md bg-gray-300/20"}),z.jsx("div",{className:"h-20 w-[260px] max-w-sm animate-pulse rounded-md bg-gray-300/20"}),z.jsx("div",{className:"h-20 w-[260px] max-w-sm animate-pulse rounded-md bg-gray-300/20"}),z.jsx("div",{className:"h-20 w-[260px] max-w-sm animate-pulse rounded-md bg-gray-300/20"})]})})})]})}function xn(t){var e=t.imageSrc,n=t.isOpen,r=t.onClose,i=t.onNext,a=t.onPrev;if(o((function(){if(n){var t=function(t){"ArrowLeft"===t.key?null==a||a():"ArrowRight"===t.key?null==i||i():"Escape"===t.key&&r()};return document.addEventListener("keydown",t),function(){return document.removeEventListener("keydown",t)}}}),[n,r,i,a]),!n)return null;var s=0,c=0,l=function(){c<s-50?null==i||i():c>s+50&&(null==a||a())};return z.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-75 z-50 flex items-center justify-center p-4 overflow-auto",onClick:function(t){t.target===t.currentTarget&&r()},onTouchStart:function(t){s=t.changedTouches[0].screenX},onTouchEnd:function(t){c=t.changedTouches[0].screenX,l()},children:z.jsxs("div",{className:"relative max-w-[90vw] max-h-[90vh] flex items-center justify-center",children:[z.jsx("button",{onClick:a,className:"absolute left-4 z-10 bg-black bg-opacity-50 text-white p-2 rounded-full hover:bg-opacity-75",children:"←"}),z.jsx("img",{src:e,alt:"Modal view",className:"max-h-[90vh] max-w-[90vw] object-contain"}),z.jsx("button",{onClick:i,className:"absolute right-4 z-10 bg-black bg-opacity-50 text-white p-2 rounded-full hover:bg-opacity-75",children:"→"}),z.jsx("button",{onClick:r,className:"absolute top-4 right-4 z-10 bg-black bg-opacity-50 text-white p-2 rounded-full hover:bg-opacity-75",children:"×"})]})})}function yn(t){var e=t.images,r=n(!1),i=r[0],a=r[1],s=n(null),c=s[0],l=s[1],p=n(0),u=p[0],d=p[1],f=n(e),m=f[0],h=f[1];return o((function(){var t=[],n=e.filter((function(e){return!t.includes(e)}));h(n)}),[e]),0===m.length?null:z.jsxs("div",{className:"w-full h-full min-h-[200px] max-h-[400px]",children:[z.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-4 gap-4 pb-4",children:m.map((function(t,e){return z.jsx("div",{className:"relative aspect-square bg-gray-700 rounded-lg overflow-hidden hover:shadow-lg transition-shadow duration-300",children:z.jsx("img",{src:t,alt:"Image ".concat(e+1),className:"absolute inset-0 w-full h-full object-cover cursor-pointer hover:opacity-90 transition-opacity duration-300",onClick:function(){return function(t,e){l(t),d(e),a(!0)}(t,e)},onError:function(){return e=t,void h((function(t){return t.filter((function(t){return t!==e}))}));var e},loading:"lazy"})},e)}))}),c&&z.jsx(xn,{imageSrc:c,isOpen:i,onClose:function(){a(!1),l(null)},onNext:function(){d((function(t){return(t+1)%m.length})),l(m[(u+1)%m.length])},onPrev:function(){d((function(t){return(t-1+m.length)%m.length})),l(m[(u-1+m.length)%m.length])}})]})}var bn=a((function(t){var e=t.metadata;return z.jsxs("div",{className:"container h-auto w-full shrink-0 rounded-lg border border-solid border-gray-700/40 bg-black/30 backdrop-blur-md shadow-lg p-5",children:[z.jsxs("div",{className:"flex items-start gap-4 pb-3 lg:pb-3.5",children:[z.jsx("img",{src:"https://askjarvis.ai/img/image.svg",alt:"images",width:24,height:24}),z.jsx("h3",{className:"text-base font-bold uppercase leading-[152.5%] text-white",children:"Related Images"})]}),z.jsx("div",{className:"overflow-y-auto max-h-[500px] scrollbar-thin scrollbar-thumb-gray-600 scrollbar-track-gray-300/10",children:z.jsx(yn,{images:e})})]})}),(function(t,e){if(t.metadata===e.metadata)return!0;if(!t.metadata||!e.metadata)return!1;if(t.metadata.length!==e.metadata.length)return!1;for(var n=0;n<t.metadata.length;n++)if(t.metadata[n]!==e.metadata[n])return!1;return!0})),wn=function(t){var e=t.metadata,n=t.handleClickSuggestion;return z.jsxs("div",{className:"container flex w-full items-start gap-3 pt-5 pb-2",children:[z.jsx("div",{className:"flex w-fit items-center gap-4",children:z.jsx("img",{src:"https://askjarvis.ai/img/thinking.svg",alt:"thinking",width:30,height:30,className:"size-[24px]"})}),z.jsxs("div",{className:"grow text-white",children:[z.jsx("p",{className:"pr-5 font-bold leading-[152%] text-white pb-[20px]",children:"Pondering your question from several angles"}),z.jsx("div",{className:"flex flex-row flex-wrap items-center gap-2.5 pb-[20px]",children:e.map((function(t,e){return z.jsx("div",{className:"flex cursor-pointer items-center justify-center gap-[5px] rounded-full border border-solid border-[#C1C1C1] bg-[#EDEDEA] px-2.5 py-2",onClick:function(){return n(t)},children:z.jsx("span",{className:"text-sm font-light leading-[normal] text-[#1B1B16]",children:t})},"".concat(t,"-").concat(e))}))})]})]})};function kn(t){return kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kn(t)}var jn=function(t){var e=t.logs,r=n(e),i=r[0],a=r[1];o((function(){if(e&&e.length>0){var t=e.map((function(t){if(t.processedData){var e=t.processedData.map((function(t){return t.isMarkdown&&"string"==typeof t.htmlContent?_(_({},t),{htmlContent:fn(t.htmlContent)}):t}));return _(_({},t),{processedData:e})}return t}));a(t)}}),[e]);var s=function(t){var e=t.text.match(/📃 Source: (https?:\/\/[^\s]+)/),n="";return e&&(n=e[1]),"differences"===t.header?"The following fields on the Langgraph were updated: "+Object.keys(JSON.parse(t.text).data).join(", "):"📄 Retrieved relevant content from the source: ".concat(n)},c=function(t){return"differences"===t.header&&t.processedData?t.processedData.map((function(t,e){return z.jsxs("div",{className:"mb-4",children:[z.jsxs("h3",{className:"font-semibold text-lg text-body-color dark:text-dark-6",children:[t.field,":"]}),t.isMarkdown?z.jsx("div",{className:"markdown-content",dangerouslySetInnerHTML:{__html:t.htmlContent}}):z.jsx("p",{className:"text-body-color dark:text-dark-6",children:"object"===kn(t.htmlContent)?JSON.stringify(t.htmlContent):t.htmlContent})]},e)})):z.jsx("p",{className:"mb-2 text-body-color dark:text-dark-6",children:t.text})},l=n(null),p=l[0],u=l[1];return z.jsx("div",{id:"accordion-collapse","data-accordion":"collapse",className:"mt-4 bg-gray-900 rounded-lg",children:i.map((function(t,e){return z.jsxs("div",{children:[z.jsx("h2",{id:"accordion-collapse-heading-".concat(e),children:z.jsxs("button",{type:"button",className:"flex items-center w-full p-5 font-medium rtl:text-right text-white rounded-t-xl gap-3",onClick:function(){return function(t){u(p===t?null:t)}(e)},"aria-expanded":p===e,"aria-controls":"accordion-collapse-body-".concat(e),children:[z.jsx("span",{className:"flex-grow text-left",children:s(t)}),z.jsx("svg",{"data-accordion-icon":!0,className:"w-3 h-3 ".concat(p===e?"rotate-180":""," shrink-0"),"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 10 6",children:z.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 5 5 1 1 5"})})]})}),z.jsx("div",{id:"accordion-collapse-body-".concat(e),className:"".concat(p===e?"":"hidden"),"aria-labelledby":"accordion-collapse-heading-".concat(e),children:z.jsx("div",{className:"p-5 border border-b-0 border-gray-900 dark:border-gray-900 dark:bg-gray-900 text-white",children:c(t)})})]},e)}))})},En=function(t){var e=t.logs,r=n([]),i=r[0],a=r[1];return o((function(){P(void 0,void 0,void 0,(function(){var t;return O(this,(function(n){switch(n.label){case 0:return e?[4,Promise.all(e.map((function(t){return P(void 0,void 0,void 0,(function(){var e,n,r;return O(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),"differences"===t.header&&t.text?(e=JSON.parse(t.text).data,[4,Promise.all(Object.keys(e).map((function(t){return P(void 0,void 0,void 0,(function(){var n,r;return O(this,(function(o){switch(o.label){case 0:return n=e[t].after||e[t].before,Sn.includes(t)?[3,2]:[4,mn(n)];case 1:return r=o.sent(),[2,{field:t,htmlContent:r,isMarkdown:!0}];case 2:return[2,{field:t,htmlContent:n,isMarkdown:!1}]}}))}))})))]):[3,2];case 1:return n=o.sent(),[2,_(_({},t),{processedData:n})];case 2:return[2,t];case 3:return r=o.sent(),console.error("Error processing log:",r),[2,t];case 4:return[2]}}))}))})))]:[2];case 1:return t=n.sent(),a(t),[2]}}))}))}),[e]),z.jsx(z.Fragment,{children:i.map((function(t,e){return"subquery_context_window"===t.header||"differences"===t.header?z.jsx(jn,{logs:[t]},e):"selected_images"!==t.header&&"scraping_images"!==t.header?z.jsx("div",{className:"w-full max-w-4xl mx-auto rounded-lg pt-2 mt-3 pb-2 px-4 bg-gray-900 shadow-md",children:z.jsx("p",{className:"py-3 text-base leading-relaxed text-white dark:text-white",children:t.text})},e):null}))})},Sn=["task","sections","headers","sources","research_data"],_n=function(t){var e=t.logs,n=r(null);return o((function(){n.current&&(n.current.scrollTop=n.current.scrollHeight)}),[e]),z.jsxs("div",{className:"container h-auto w-full shrink-0 rounded-lg border border-solid border-gray-700/40 bg-black/30 backdrop-blur-md shadow-lg p-5 mt-5",children:[z.jsxs("div",{className:"flex items-start gap-4 pb-3 lg:pb-3.5",children:[z.jsx("img",{src:"https://askjarvis.ai/img/chat-check.svg",alt:"logs",width:24,height:24}),z.jsx("h3",{className:"text-base font-bold uppercase leading-[152.5%] text-white",children:"Agent Work"})]}),z.jsx("div",{ref:n,className:"overflow-y-auto min-h-[200px] max-h-[500px] scrollbar-thin scrollbar-thumb-gray-600 scrollbar-track-gray-300/10",children:z.jsx(En,{logs:e})})]})},Pn=function(t){var e=t.accessData,n=t.chatBoxSettings;t.report;var r=V(),o=function(t){if(!(null==e?void 0:e[t]))return console.warn("No ".concat(t," path provided")),"#";var n=e[t].trim().replace(/^\/+|\/+$/g,""),o=n.startsWith("outputs/")?n:"outputs/".concat(n);return"".concat(r,"/").concat(o)};return e&&"object"===kn(e)?z.jsx("div",{className:"container rounded-lg border border-solid border-gray-700/30 bg-black/30 backdrop-blur-md shadow-lg p-5 my-5",children:z.jsxs("div",{className:"flex flex-col items-center",children:[z.jsx("h3",{className:"text-lg font-bold mb-4 text-white",children:"Access Your Research Report"}),z.jsxs("div",{className:"flex flex-wrap justify-center gap-3",children:[z.jsxs("a",{href:o("pdf"),className:"bg-teal-600 text-white font-medium uppercase text-sm px-6 py-3 rounded-lg shadow-md hover:shadow-lg hover:opacity-90 focus:outline-none focus:ring-2 focus:ring-teal-500/50 transform hover:scale-105 transition-all duration-200 flex items-center gap-2",target:"_blank",rel:"noopener noreferrer",children:[z.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:z.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),"View as PDF"]}),z.jsxs("a",{href:o("docx"),className:"bg-blue-500 text-white font-medium uppercase text-sm px-6 py-3 rounded-lg shadow-md hover:shadow-lg hover:opacity-90 focus:outline-none focus:ring-2 focus:ring-blue-400/50 transform hover:scale-105 transition-all duration-200 flex items-center gap-2",target:"_blank",rel:"noopener noreferrer",children:[z.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:z.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})}),"Download DocX"]}),"research_report"===(null==n?void 0:n.report_type)&&z.jsxs("a",{href:o("json"),className:"bg-cyan-600 text-white font-medium uppercase text-sm px-6 py-3 rounded-lg shadow-md hover:shadow-lg hover:opacity-90 focus:outline-none focus:ring-2 focus:ring-cyan-500/50 transform hover:scale-105 transition-all duration-200 flex items-center gap-2",target:"_blank",rel:"noopener noreferrer",children:[z.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:z.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z"})}),"Download Logs"]})]})]})}):null},On=function(t){var e=t.orderedData,n=t.answer,r=t.allLogs,o=t.chatBoxSettings,i=t.handleClickSuggestion,a=q(e),s=a.find((function(t){return"path"===t.type})),c=a.find((function(t){return"question"===t.type})),l=a.filter((function(t){return("question"!==t.type||t!==c)&&("question"===t.type||"chat"===t.type)})).map((function(t,e){return"question"===t.type?z.jsx($,{question:t.content},"question-".concat(e)):z.jsx(hn,{answer:t.content},"chat-".concat(e))})),p=a.filter((function(t){return"sourceBlock"===t.type})).map((function(t,e){return z.jsx(vn,{sources:t.items},"sourceBlock-".concat(e))})),u=a.filter((function(t){return"imagesBlock"===t.type})).map((function(t,e){var n;return z.jsx(bn,{metadata:t.metadata},"images-".concat(e,"-").concat((null===(n=t.metadata)||void 0===n?void 0:n.length)||0))}));a.find((function(t){return"reportBlock"===t.type}));var d=a.filter((function(t){return"reportBlock"===t.type})).pop(),f=a.find((function(t){return"subqueries"===t.content}));return z.jsxs(z.Fragment,{children:[c&&z.jsx($,{question:c.content}),e.length>0&&z.jsx(_n,{logs:r}),f&&z.jsx(wn,{metadata:f.metadata,handleClickSuggestion:i}),p,u,d&&z.jsx(hn,{answer:d.content}),s&&z.jsx(Pn,{accessData:s.output,report:n,chatBoxSettings:o}),l]})},Cn=function(t){var e=t.loading,n=t.isStopped,r=t.showResult,o=t.onStop,i=t.onNewResearch;return z.jsxs("div",{className:"fixed top-0 left-0 right-0 z-50",children:[z.jsx("div",{className:"absolute inset-0 backdrop-blur-sm bg-transparent"}),z.jsx("div",{className:"container relative h-[60px] px-4 lg:h-[80px] lg:px-0 pt-4 pb-4",children:z.jsxs("div",{className:"flex flex-col items-center",children:[z.jsx("a",{href:"/",children:z.jsx("img",{src:"https://askjarvis.ai/img/gptr-logo.png",alt:"logo",width:60,height:60,className:"lg:h-16 lg:w-16"})}),z.jsxs("div",{className:"flex gap-2 mt-2 transition-all duration-300 ease-in-out",children:[e&&!n&&z.jsx("button",{onClick:o,className:"flex items-center justify-center px-4 sm:px-6 h-9 sm:h-10 text-sm text-white bg-red-500 rounded-full hover:bg-red-600 transform hover:scale-105 transition-all duration-200 shadow-lg whitespace-nowrap min-w-[80px]",children:"Stop"}),(n||!e)&&r&&z.jsx("button",{onClick:i,className:"flex items-center justify-center px-4 sm:px-6 h-9 sm:h-10 text-sm text-white bg-teal-500 rounded-full hover:bg-teal-600 transform hover:scale-105 transition-all duration-200 shadow-lg whitespace-nowrap min-w-[120px]",children:"New Research"})]})]})})]})},Tn=function(){return z.jsxs("div",{className:"loader pb-1",children:[z.jsx("span",{}),z.jsx("span",{}),z.jsx("span",{})]})};var An=function(t){var e,n,o,i=t.promptValue,a=t.setPromptValue,s=t.handleSubmit,c=t.handleSecondary,l=t.disabled,p=t.reset,u=t.isStopped,d=r(null),f=c?"Any questions about this report?":"What would you like me to research next?",m=function(){d.current&&(d.current.style.height="3em")},h=(e=function(t){t.style.height="auto",t.style.height="".concat(t.scrollHeight,"px")},n=100,function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];clearTimeout(o),o=setTimeout((function(){clearTimeout(o),e.apply(void 0,t)}),n)});return u?null:c?z.jsx("span",{}):z.jsxs("form",{className:"mx-auto flex pt-2 pb-2 w-full items-center justify-between rounded-lg border bg-white px-3 shadow-[2px_2px_38px_0px_rgba(0,0,0,0.25),0px_-2px_4px_0px_rgba(0,0,0,0.25)_inset,1px_2px_4px_0px_rgba(0,0,0,0.25)_inset]",onSubmit:function(t){t.preventDefault(),p&&p(),s(i),a(""),m()},children:[z.jsx("textarea",{placeholder:f,ref:d,className:"focus-visible::outline-0 my-1 w-full pl-5 font-light not-italic leading-[normal] \n text-[#1B1B16]/30 text-black outline-none focus-visible:ring-0 focus-visible:ring-offset-0 \n sm:text-xl min-h-[4em] resize-none",disabled:l,value:i,required:!0,rows:3,onKeyDown:function(t){if("Enter"===t.key){if(t.shiftKey)return;t.preventDefault(),l||(p&&p(),s(i),a(""),m())}},onChange:function(t){var e=t.target;h(e),a(e.value)}}),z.jsxs("button",{disabled:l,type:"submit",className:"relative flex h-[50px] w-[50px] shrink-0 items-center justify-center rounded-[3px] bg-teal-500 hover:bg-gradient-to-br hover:from-[#0cdbb6] hover:via-[#1fd0f0] hover:to-[#06dbee] transition-all duration-300 disabled:opacity-75 disabled:hover:bg-teal-500/75",children:[l&&z.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:z.jsx(Tn,{})}),z.jsx("div",{className:"relative p-2 cursor-pointer",children:z.jsx("img",{src:"https://askjarvis.ai/img/arrow-narrow-right.svg",alt:"search",width:24,height:24,className:"".concat(l?"invisible":""," transition-all duration-300 hover:scale-110 hover:brightness-110 hover:filter hover:drop-shadow-[0_0_3px_rgba(255,255,255,0.7)]")})})]})]})};const Rn=s({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Nn=s({});const Dn=s(null),Ln="undefined"!=typeof document,Mn=Ln?l:o,In=s({strict:!1});function Fn(t,e,n,i){const a=c(Nn).visualElement,s=c(In),l=c(Dn),u=c(Rn).reducedMotion,d=r();i=i||s.renderer,!d.current&&i&&(d.current=i(t,{visualState:e,parent:a,props:n,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:u}));const f=d.current;p((()=>{f&&f.update(n,l)})),Mn((()=>{f&&f.render()})),o((()=>{f&&f.updateFeatures()}));return(window.HandoffAppearAnimations?Mn:o)((()=>{f&&f.animationState&&f.animationState.animateChanges()})),f}function zn(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function Bn(t){return"string"==typeof t||Array.isArray(t)}function Vn(t){return"object"==typeof t&&"function"==typeof t.start}const Un=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],qn=["initial",...Un];function $n(t){return Vn(t.animate)||qn.some((e=>Bn(t[e])))}function Wn(t){return Boolean($n(t)||t.variants)}function Hn(t){const{initial:e,animate:n}=function(t,e){if($n(t)){const{initial:e,animate:n}=t;return{initial:!1===e||Bn(e)?e:void 0,animate:Bn(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,c(Nn));return u((()=>({initial:e,animate:n})),[Gn(e),Gn(n)])}function Gn(t){return Array.isArray(t)?t.join(" "):t}const Xn={animation:["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Yn={};for(const t in Xn)Yn[t]={isEnabled:e=>Xn[t].some((t=>!!e[t]))};function Kn(t){const e=r(null);return null===e.current&&(e.current=t()),e.current}const Jn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let Zn=1;const Qn=s({}),tr=s({}),er=Symbol.for("motionComponentSymbol");function nr({preloadedFeatures:e,createVisualElement:n,useRender:r,useVisualState:o,Component:a}){e&&function(t){for(const e in t)Yn[e]={...Yn[e],...t[e]}}(e);const s=d((function(s,l){let p;const u={...c(Rn),...s,layoutId:rr(s)},{isStatic:d}=u,f=Hn(s),m=d?void 0:Kn((()=>{if(Jn.hasEverUpdated)return Zn++})),h=o(s,d);if(!d&&Ln){f.visualElement=Fn(a,h,u,n);const t=c(tr),r=c(In).strict;f.visualElement&&(p=f.visualElement.loadFeatures(u,r,e,m,t))}return t.createElement(Nn.Provider,{value:f},p&&f.visualElement?t.createElement(p,{visualElement:f.visualElement,...u}):null,r(a,s,m,function(t,e,n){return i((r=>{r&&t.mount&&t.mount(r),e&&(r?e.mount(r):e.unmount()),n&&("function"==typeof n?n(r):zn(n)&&(n.current=r))}),[e])}(h,f.visualElement,l),h,d,f.visualElement))}));return s[er]=a,s}function rr({layoutId:t}){const e=c(Qn).id;return e&&void 0!==t?e+"-"+t:t}function or(t){function e(e,n={}){return nr(t(e,n))}if("undefined"==typeof Proxy)return e;const n=new Map;return new Proxy(e,{get:(t,r)=>(n.has(r)||n.set(r,e(r)),n.get(r))})}const ir=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ar(t){return"string"==typeof t&&!t.includes("-")&&!!(ir.indexOf(t)>-1||/[A-Z]/.test(t))}const sr={};const cr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],lr=new Set(cr);function pr(t,{layout:e,layoutId:n}){return lr.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!sr[t]||"opacity"===t)}const ur=t=>Boolean(t&&t.getVelocity),dr={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},fr=cr.length;const mr=t=>e=>"string"==typeof e&&e.startsWith(t),hr=mr("--"),gr=mr("var(--"),vr=(t,e)=>e&&"number"==typeof t?e.transform(t):t,xr=(t,e,n)=>Math.min(Math.max(n,t),e),yr={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},br={...yr,transform:t=>xr(0,1,t)},wr={...yr,default:1},kr=t=>Math.round(1e5*t)/1e5,jr=/(-)?([\d]*\.?[\d])+/g,Er=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Sr=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function _r(t){return"string"==typeof t}const Pr=t=>({test:e=>_r(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),Or=Pr("deg"),Cr=Pr("%"),Tr=Pr("px"),Ar=Pr("vh"),Rr=Pr("vw"),Nr={...Cr,parse:t=>Cr.parse(t)/100,transform:t=>Cr.transform(100*t)},Dr={...yr,transform:Math.round},Lr={borderWidth:Tr,borderTopWidth:Tr,borderRightWidth:Tr,borderBottomWidth:Tr,borderLeftWidth:Tr,borderRadius:Tr,radius:Tr,borderTopLeftRadius:Tr,borderTopRightRadius:Tr,borderBottomRightRadius:Tr,borderBottomLeftRadius:Tr,width:Tr,maxWidth:Tr,height:Tr,maxHeight:Tr,size:Tr,top:Tr,right:Tr,bottom:Tr,left:Tr,padding:Tr,paddingTop:Tr,paddingRight:Tr,paddingBottom:Tr,paddingLeft:Tr,margin:Tr,marginTop:Tr,marginRight:Tr,marginBottom:Tr,marginLeft:Tr,rotate:Or,rotateX:Or,rotateY:Or,rotateZ:Or,scale:wr,scaleX:wr,scaleY:wr,scaleZ:wr,skew:Or,skewX:Or,skewY:Or,distance:Tr,translateX:Tr,translateY:Tr,translateZ:Tr,x:Tr,y:Tr,z:Tr,perspective:Tr,transformPerspective:Tr,opacity:br,originX:Nr,originY:Nr,originZ:Tr,zIndex:Dr,fillOpacity:br,strokeOpacity:br,numOctaves:Dr};function Mr(t,e,n,r){const{style:o,vars:i,transform:a,transformOrigin:s}=t;let c=!1,l=!1,p=!0;for(const t in e){const n=e[t];if(hr(t)){i[t]=n;continue}const r=Lr[t],u=vr(n,r);if(lr.has(t)){if(c=!0,a[t]=u,!p)continue;n!==(r.default||0)&&(p=!1)}else t.startsWith("origin")?(l=!0,s[t]=u):o[t]=u}if(e.transform||(c||r?o.transform=function(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,o){let i="";for(let e=0;e<fr;e++){const n=cr[e];void 0!==t[n]&&(i+=`${dr[n]||n}(${t[n]}) `)}return e&&!t.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(t,r?"":i):n&&r&&(i="none"),i}(t.transform,n,p,r):o.transform&&(o.transform="none")),l){const{originX:t="50%",originY:e="50%",originZ:n=0}=s;o.transformOrigin=`${t} ${e} ${n}`}}const Ir=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Fr(t,e,n){for(const r in e)ur(e[r])||pr(r,n)||(t[r]=e[r])}function zr(t,e,n){const r={};return Fr(r,t.style||{},t),Object.assign(r,function({transformTemplate:t},e,n){return u((()=>{const r={style:{},transform:{},transformOrigin:{},vars:{}};return Mr(r,e,{enableHardwareAcceleration:!n},t),Object.assign({},r.vars,r.style)}),[e])}(t,e,n)),t.transformValues?t.transformValues(r):r}function Br(t,e,n){const r={},o=zr(t,e,n);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=o,r}const Vr=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Ur(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||Vr.has(t)}let qr=t=>!Ur(t);try{($r=require("@emotion/is-prop-valid").default)&&(qr=t=>t.startsWith("on")?!Ur(t):$r(t))}catch(t){}var $r;function Wr(t,e,n){return"string"==typeof t?t:Tr.transform(e+n*t)}const Hr={offset:"stroke-dashoffset",array:"stroke-dasharray"},Gr={offset:"strokeDashoffset",array:"strokeDasharray"};function Xr(t,{attrX:e,attrY:n,originX:r,originY:o,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...c},l,p,u){if(Mr(t,c,l,u),p)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:d,style:f,dimensions:m}=t;d.transform&&(m&&(f.transform=d.transform),delete d.transform),m&&(void 0!==r||void 0!==o||f.transform)&&(f.transformOrigin=function(t,e,n){return`${Wr(e,t.x,t.width)} ${Wr(n,t.y,t.height)}`}(m,void 0!==r?r:.5,void 0!==o?o:.5)),void 0!==e&&(d.x=e),void 0!==n&&(d.y=n),void 0!==i&&function(t,e,n=1,r=0,o=!0){t.pathLength=1;const i=o?Hr:Gr;t[i.offset]=Tr.transform(-r);const a=Tr.transform(e),s=Tr.transform(n);t[i.array]=`${a} ${s}`}(d,i,a,s,!1)}const Yr=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),Kr=t=>"string"==typeof t&&"svg"===t.toLowerCase();function Jr(t,e,n,r){const o=u((()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return Xr(n,e,{enableHardwareAcceleration:!1},Kr(r),t.transformTemplate),{...n.attrs,style:{...n.style}}}),[e]);if(t.style){const e={};Fr(e,t.style,t),o.style={...e,...o.style}}return o}function Zr(t=!1){return(e,n,r,o,{latestValues:i},a)=>{const s=(ar(e)?Jr:Br)(n,i,a,e),c=function(t,e,n){const r={};for(const o in t)"values"===o&&"object"==typeof t.values||(qr(o)||!0===n&&Ur(o)||!e&&!Ur(o)||t.draggable&&o.startsWith("onDrag"))&&(r[o]=t[o]);return r}(n,"string"==typeof e,t),l={...c,...s,ref:o},{children:p}=n,d=u((()=>ur(p)?p.get():p),[p]);return r&&(l["data-projection-id"]=r),f(e,{...l,children:d})}}const Qr=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function to(t,{style:e,vars:n},r,o){Object.assign(t.style,e,o&&o.getProjectionStyles(r));for(const e in n)t.style.setProperty(e,n[e])}const eo=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function no(t,e,n,r){to(t,e,void 0,r);for(const n in e.attrs)t.setAttribute(eo.has(n)?n:Qr(n),e.attrs[n])}function ro(t,e){const{style:n}=t,r={};for(const o in n)(ur(n[o])||e.style&&ur(e.style[o])||pr(o,t))&&(r[o]=n[o]);return r}function oo(t,e){const n=ro(t,e);for(const r in t)if(ur(t[r])||ur(e[r])){n["x"===r||"y"===r?"attr"+r.toUpperCase():r]=t[r]}return n}function io(t,e,n,r={},o={}){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,o)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,o)),e}const ao=t=>Array.isArray(t);function so(t){const e=ur(t)?t.get():t;return n=e,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?e.toValue():e;var n}const co=t=>(e,n)=>{const r=c(Nn),o=c(Dn),i=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,o,i){const a={latestValues:lo(r,o,i,t),renderState:e()};return n&&(a.mount=t=>n(r,t,a)),a}(t,e,r,o);return n?i():Kn(i)};function lo(t,e,n,r){const o={},i=r(t,{});for(const t in i)o[t]=so(i[t]);let{initial:a,animate:s}=t;const c=$n(t),l=Wn(t);e&&l&&!c&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===s&&(s=e.animate));let p=!!n&&!1===n.initial;p=p||!1===a;const u=p?s:a;if(u&&"boolean"!=typeof u&&!Vn(u)){(Array.isArray(u)?u:[u]).forEach((e=>{const n=io(t,e);if(!n)return;const{transitionEnd:r,transition:i,...a}=n;for(const t in a){let e=a[t];if(Array.isArray(e)){e=e[p?e.length-1:0]}null!==e&&(o[t]=e)}for(const t in r)o[t]=r[t]}))}return o}const po={useVisualState:co({scrapeMotionValuesFromProps:oo,createRenderState:Yr,onMount:(t,e,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){n.dimensions={x:0,y:0,width:0,height:0}}Xr(n,r,{enableHardwareAcceleration:!1},Kr(e.tagName),t.transformTemplate),no(e,n)}})},uo={useVisualState:co({scrapeMotionValuesFromProps:ro,createRenderState:Ir})};function fo(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const mo=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function ho(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}function go(t,e,n,r){return fo(t,e,(t=>e=>mo(e)&&t(e,ho(e)))(n),r)}const vo=(t,e)=>n=>e(t(n)),xo=(...t)=>t.reduce(vo);function yo(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}const bo=yo("dragHorizontal"),wo=yo("dragVertical");function ko(t){let e=!1;if("y"===t)e=wo();else if("x"===t)e=bo();else{const t=bo(),n=wo();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function jo(){const t=ko(!0);return!t||(t(),!1)}class Eo{constructor(t){this.isMounted=!1,this.node=t}update(){}}function So(t,e){const n="pointer"+(e?"enter":"leave"),r="onHover"+(e?"Start":"End");return go(t.current,n,((n,o)=>{if("touch"===n.type||jo())return;const i=t.getProps();t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",e),i[r]&&i[r](n,o)}),{passive:!t.getProps()[r]})}const _o=(t,e)=>!!e&&(t===e||_o(t,e.parentElement)),Po=t=>t;function Oo(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,ho(n))}const Co=new WeakMap,To=new WeakMap,Ao=t=>{const e=Co.get(t.target);e&&e(t)},Ro=t=>{t.forEach(Ao)};function No(t,e,n){const r=function({root:t,...e}){const n=t||document;To.has(n)||To.set(n,{});const r=To.get(n),o=JSON.stringify(e);return r[o]||(r[o]=new IntersectionObserver(Ro,{root:t,...e})),r[o]}(e);return Co.set(t,n),r.observe(t),()=>{Co.delete(t),r.unobserve(t)}}const Do={some:0,all:1};const Lo={inView:{Feature:class extends Eo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}viewportFallback(){requestAnimationFrame((()=>{this.hasEnteredView=!0;const{onViewportEnter:t}=this.node.getProps();t&&t(null),this.node.animationState&&this.node.animationState.setActive("whileInView",!0)}))}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:r="some",once:o,fallback:i=!0}=t;if("undefined"==typeof IntersectionObserver)return void(i&&this.viewportFallback());const a={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:Do[r]};return No(this.node.current,a,(t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,o&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=e?n:r;i&&i(t)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Eo{constructor(){super(...arguments),this.removeStartListeners=Po,this.removeEndListeners=Po,this.removeAccessibleListeners=Po,this.startPointerPress=(t,e)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),r=go(window,"pointerup",((t,e)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r}=this.node.getProps();_o(this.node.current,t.target)?n&&n(t,e):r&&r(t,e)}),{passive:!(n.onTap||n.onPointerUp)}),o=go(window,"pointercancel",((t,e)=>this.cancelPress(t,e)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=xo(r,o),this.startPress(t,e)},this.startAccessiblePress=()=>{const t=fo(this.node.current,"keydown",(t=>{if("Enter"!==t.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=fo(this.node.current,"keyup",(t=>{"Enter"===t.key&&this.checkPressEnd()&&Oo("up",this.node.getProps().onTap)})),Oo("down",((t,e)=>{this.startPress(t,e)}))})),e=fo(this.node.current,"blur",(()=>{this.isPressing&&Oo("cancel",((t,e)=>this.cancelPress(t,e)))}));this.removeAccessibleListeners=xo(t,e)}}startPress(t,e){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&n(t,e)}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!jo()}cancelPress(t,e){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&n(t,e)}mount(){const t=this.node.getProps(),e=go(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=fo(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=xo(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Eo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=xo(fo(this.node.current,"focus",(()=>this.onFocus())),fo(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Eo{mount(){this.unmount=xo(So(this.node,!0),So(this.node,!1))}unmount(){}}}};function Mo(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}const Io=t=>/^0[^.\s]+$/.test(t),Fo={delta:0,timestamp:0},zo=1/60*1e3,Bo="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),Vo="undefined"!=typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout((()=>t(Bo())),zo);let Uo=!0,qo=!1,$o=!1;const Wo=["read","update","preRender","render","postRender"],Ho=Wo.reduce(((t,e)=>(t[e]=function(t){let e=[],n=[],r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(t,i=!1,s=!1)=>{const c=s&&o,l=c?e:n;return i&&a.add(t),-1===l.indexOf(t)&&(l.push(t),c&&o&&(r=e.length)),t},cancel:t=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1),a.delete(t)},process:c=>{if(o)i=!0;else{if(o=!0,[e,n]=[n,e],n.length=0,r=e.length,r)for(let n=0;n<r;n++){const r=e[n];r(c),a.has(r)&&(s.schedule(r),t())}o=!1,i&&(i=!1,s.process(c))}}};return s}((()=>qo=!0)),t)),{}),Go=Wo.reduce(((t,e)=>{const n=Ho[e];return t[e]=(t,e=!1,r=!1)=>(qo||Zo(),n.schedule(t,e,r)),t}),{}),Xo=Wo.reduce(((t,e)=>(t[e]=Ho[e].cancel,t)),{}),Yo=Wo.reduce(((t,e)=>(t[e]=()=>Ho[e].process(Fo),t)),{}),Ko=t=>Ho[t].process(Fo),Jo=t=>{qo=!1,Fo.delta=Uo?zo:Math.max(Math.min(t-Fo.timestamp,40),1),Fo.timestamp=t,$o=!0,Wo.forEach(Ko),$o=!1,qo&&(Uo=!1,Vo(Jo))},Zo=()=>{qo=!0,Uo=!0,$o||Vo(Jo)};function Qo(t,e){-1===t.indexOf(e)&&t.push(e)}function ti(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class ei{constructor(){this.subscriptions=[]}add(t){return Qo(this.subscriptions,t),()=>ti(this.subscriptions,t)}notify(t,e,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function ni(t,e){return e?t*(1e3/e):0}class ri{constructor(t,e={}){var n;this.version="9.1.7",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;const{delta:n,timestamp:r}=Fo;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,Go.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Go.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=e.owner}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new ei);const n=this.events[t].add(e);return"change"===t?()=>{n(),Go.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?ni(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.animation=t(e)||null,this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=null}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function oi(t,e){return new ri(t,e)}const ii=(t,e)=>n=>Boolean(_r(n)&&Sr.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),ai=(t,e,n)=>r=>{if(!_r(r))return r;const[o,i,a,s]=r.match(jr);return{[t]:parseFloat(o),[e]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},si={...yr,transform:t=>Math.round((t=>xr(0,255,t))(t))},ci={test:ii("rgb","red"),parse:ai("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+si.transform(t)+", "+si.transform(e)+", "+si.transform(n)+", "+kr(br.transform(r))+")"};const li={test:ii("#"),parse:function(t){let e="",n="",r="",o="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),o=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),o=t.substring(4,5),e+=e,n+=n,r+=r,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:ci.transform},pi={test:ii("hsl","hue"),parse:ai("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+Cr.transform(kr(e))+", "+Cr.transform(kr(n))+", "+kr(br.transform(r))+")"},ui={test:t=>ci.test(t)||li.test(t)||pi.test(t),parse:t=>ci.test(t)?ci.parse(t):pi.test(t)?pi.parse(t):li.parse(t),transform:t=>_r(t)?t:t.hasOwnProperty("red")?ci.transform(t):pi.transform(t)},di="${c}",fi="${n}";function mi(t){"number"==typeof t&&(t=`${t}`);const e=[];let n=0,r=0;const o=t.match(Er);o&&(n=o.length,t=t.replace(Er,di),e.push(...o.map(ui.parse)));const i=t.match(jr);return i&&(r=i.length,t=t.replace(jr,fi),e.push(...i.map(yr.parse))),{values:e,numColors:n,numNumbers:r,tokenised:t}}function hi(t){return mi(t).values}function gi(t){const{values:e,numColors:n,tokenised:r}=mi(t),o=e.length;return t=>{let e=r;for(let r=0;r<o;r++)e=e.replace(r<n?di:fi,r<n?ui.transform(t[r]):kr(t[r]));return e}}const vi=t=>"number"==typeof t?0:t;const xi={test:function(t){var e,n;return isNaN(t)&&_r(t)&&((null===(e=t.match(jr))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(Er))||void 0===n?void 0:n.length)||0)>0},parse:hi,createTransformer:gi,getAnimatableNone:function(t){const e=hi(t);return gi(t)(e.map(vi))}},yi=new Set(["brightness","contrast","saturate","opacity"]);function bi(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[r]=n.match(jr)||[];if(!r)return t;const o=n.replace(r,"");let i=yi.has(e)?1:0;return r!==n&&(i*=100),e+"("+i+o+")"}const wi=/([a-z-]*)\(.*?\)/g,ki={...xi,getAnimatableNone:t=>{const e=t.match(wi);return e?e.map(bi).join(" "):t}},ji={...Lr,color:ui,backgroundColor:ui,outlineColor:ui,fill:ui,stroke:ui,borderColor:ui,borderTopColor:ui,borderRightColor:ui,borderBottomColor:ui,borderLeftColor:ui,filter:ki,WebkitFilter:ki},Ei=t=>ji[t];function Si(t,e){let n=Ei(t);return n!==ki&&(n=xi),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const _i=t=>e=>e.test(t),Pi=[yr,Tr,Cr,Or,Rr,Ar,{test:t=>"auto"===t,parse:t=>t}],Oi=t=>Pi.find(_i(t)),Ci=[...Pi,ui,xi],Ti=t=>Ci.find(_i(t));function Ai(t,e,n){const r=t.getProps();return io(r,e,void 0!==n?n:r.custom,function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.get())),e}(t),function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.getVelocity())),e}(t))}function Ri(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,oi(n))}function Ni(t,e){if(!e)return;return(e[t]||e.default||e).from}function Di(t){return Boolean(ur(t)&&t.add)}const Li="data-"+Qr("framerAppearId");let Mi=Po,Ii=Po;"production"!==process.env.NODE_ENV&&(Mi=(t,e)=>{t||"undefined"==typeof console||console.warn(e)},Ii=(t,e)=>{if(!t)throw new Error(e)});const Fi=t=>1e3*t,zi=!1,Bi=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Vi=t=>e=>1-t(1-e),Ui=t=>t*t,qi=Vi(Ui),$i=Bi(Ui),Wi=(t,e,n)=>-n*t+n*e+t;function Hi(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}const Gi=(t,e,n)=>{const r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},Xi=[li,ci,pi];function Yi(t){const e=(n=t,Xi.find((t=>t.test(n))));var n;Ii(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`);let r=e.parse(t);return e===pi&&(r=function({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,n/=100;let o=0,i=0,a=0;if(e/=100){const r=n<.5?n*(1+e):n+e-n*e,s=2*n-r;o=Hi(s,r,t+1/3),i=Hi(s,r,t),a=Hi(s,r,t-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}(r)),r}const Ki=(t,e)=>{const n=Yi(t),r=Yi(e),o={...n};return t=>(o.red=Gi(n.red,r.red,t),o.green=Gi(n.green,r.green,t),o.blue=Gi(n.blue,r.blue,t),o.alpha=Wi(n.alpha,r.alpha,t),ci.transform(o))};function Ji(t,e){return"number"==typeof t?n=>Wi(t,e,n):ui.test(t)?Ki(t,e):ta(t,e)}const Zi=(t,e)=>{const n=[...t],r=n.length,o=t.map(((t,n)=>Ji(t,e[n])));return t=>{for(let e=0;e<r;e++)n[e]=o[e](t);return n}},Qi=(t,e)=>{const n={...t,...e},r={};for(const o in n)void 0!==t[o]&&void 0!==e[o]&&(r[o]=Ji(t[o],e[o]));return t=>{for(const e in r)n[e]=r[e](t);return n}},ta=(t,e)=>{const n=xi.createTransformer(e),r=mi(t),o=mi(e);return r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?xo(Zi(r.values,o.values),n):(Mi(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?e:t}`)},ea=(t,e,n)=>{const r=e-t;return 0===r?1:(n-t)/r},na=(t,e)=>n=>Wi(t,e,n);function ra(t,e,n){const r=[],o=n||("number"==typeof(i=t[0])?na:"string"==typeof i?ui.test(i)?Ki:ta:Array.isArray(i)?Zi:"object"==typeof i?Qi:na);var i;const a=t.length-1;for(let n=0;n<a;n++){let i=o(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]:e;i=xo(t,i)}r.push(i)}return r}function oa(t,e,{clamp:n=!0,ease:r,mixer:o}={}){const i=t.length;Ii(i===e.length,"Both input and output ranges must be the same length"),Ii(!r||!Array.isArray(r)||r.length===i-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),t[0]>t[i-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=ra(e,r,o),s=a.length,c=e=>{let n=0;if(s>1)for(;n<t.length-2&&!(e<t[n+1]);n++);const r=ea(t[n],t[n+1],e);return a[n](r)};return n?e=>c(xr(t[0],t[i-1],e)):c}function ia(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const o=ea(0,e,r);t.push(Wi(n,1,o))}}(e,t.length-1),e}const aa=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function sa(t,e,n,r){if(t===e&&n===r)return Po;const o=e=>function(t,e,n,r,o){let i,a,s=0;do{a=e+(n-e)/2,i=aa(a,r,o)-t,i>0?n=a:e=a}while(Math.abs(i)>1e-7&&++s<12);return a}(e,0,1,t,n);return t=>0===t||1===t?t:aa(o(t),e,r)}const ca=t=>1-Math.sin(Math.acos(t)),la=Vi(ca),pa=Bi(la),ua=sa(.33,1.53,.69,.99),da=Vi(ua),fa=Bi(da),ma={linear:Po,easeIn:Ui,easeInOut:$i,easeOut:qi,circIn:ca,circInOut:pa,circOut:la,backIn:da,backInOut:fa,backOut:ua,anticipate:t=>(t*=2)<1?.5*da(t):.5*(2-Math.pow(2,-10*(t-1)))},ha=t=>{if(Array.isArray(t)){Ii(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,o]=t;return sa(e,n,r,o)}return"string"==typeof t?(Ii(void 0!==ma[t],`Invalid easing type '${t}'`),ma[t]):t};function ga({keyframes:t,ease:e=$i,times:n,duration:r=300}){t=[...t];const o=(t=>Array.isArray(t)&&"number"!=typeof t[0])(e)?e.map(ha):ha(e),i={done:!1,value:t[0]},a=function(t,e){return t.map((t=>t*e))}(n&&n.length===t.length?n:ia(t),r);function s(){return oa(a,t,{ease:Array.isArray(o)?o:(e=t,n=o,e.map((()=>n||$i)).splice(0,e.length-1))});var e,n}let c=s();return{next:t=>(i.value=c(t),i.done=t>=r,i),flipTarget:()=>{t.reverse(),c=s()}}}const va=.001;function xa({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let o,i;Mi(t<=1e4,"Spring duration must be 10 seconds or less");let a=1-e;a=xr(.05,1,a),t=xr(.01,10,t/1e3),a<1?(o=e=>{const r=e*a,o=r*t,i=r-n,s=ba(e,a),c=Math.exp(-o);return va-i/s*c},i=e=>{const r=e*a*t,i=r*n+n,s=Math.pow(a,2)*Math.pow(e,2)*t,c=Math.exp(-r),l=ba(Math.pow(e,2),a);return(-o(e)+va>0?-1:1)*((i-s)*c)/l}):(o=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,i=e=>Math.exp(-e*t)*(t*t*(n-e)));const s=function(t,e,n){let r=n;for(let n=1;n<ya;n++)r-=t(r)/e(r);return r}(o,i,5/t);if(t*=1e3,isNaN(s))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(s,2)*r;return{stiffness:e,damping:2*a*Math.sqrt(r*e),duration:t}}}const ya=12;function ba(t,e){return t*Math.sqrt(1-e*e)}const wa=["duration","bounce"],ka=["stiffness","damping","mass"];function ja(t,e){return e.some((e=>void 0!==t[e]))}function Ea({keyframes:t,restDelta:e,restSpeed:n,...r}){let o=t[0],i=t[t.length-1];const a={done:!1,value:o},{stiffness:s,damping:c,mass:l,velocity:p,duration:u,isResolvedFromDuration:d}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!ja(t,ka)&&ja(t,wa)){const n=xa(t);e={...e,...n,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}(r);let f=Sa,m=p?-p/1e3:0;const h=c/(2*Math.sqrt(s*l));function g(){const t=i-o,r=Math.sqrt(s/l)/1e3,a=Math.abs(t)<5;if(n||(n=a?.01:2),e||(e=a?.005:.5),h<1){const e=ba(r,h);f=n=>{const o=Math.exp(-h*r*n);return i-o*((m+h*r*t)/e*Math.sin(e*n)+t*Math.cos(e*n))}}else if(1===h)f=e=>i-Math.exp(-r*e)*(t+(m+r*t)*e);else{const e=r*Math.sqrt(h*h-1);f=n=>{const o=Math.exp(-h*r*n),a=Math.min(e*n,300);return i-o*((m+h*r*t)*Math.sinh(a)+e*t*Math.cosh(a))/e}}}return g(),{next:t=>{const r=f(t);if(d)a.done=t>=u;else{let o=m;if(0!==t)if(h<1){const e=Math.max(0,t-5);o=ni(r-f(e),t-e)}else o=0;const s=Math.abs(o)<=n,c=Math.abs(i-r)<=e;a.done=s&&c}return a.value=a.done?i:r,a},flipTarget:()=>{m=-m,[o,i]=[i,o],g()}}}Ea.needsInterpolation=(t,e)=>"string"==typeof t||"string"==typeof e;const Sa=t=>0;const _a={decay:function({keyframes:t=[0],velocity:e=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:i}){const a=t[0],s={done:!1,value:a};let c=n*e;const l=a+c,p=void 0===i?l:i(l);return p!==l&&(c=p-a),{next:t=>{const e=-c*Math.exp(-t/r);return s.done=!(e>o||e<-o),s.value=s.done?p:p+e,s},flipTarget:()=>{}}},keyframes:ga,tween:ga,spring:Ea};function Pa(t,e,n=0){return t-e-n}const Oa=t=>{const e=({delta:e})=>t(e);return{start:()=>Go.update(e,!0),stop:()=>Xo.update(e)}};function Ca({duration:t,driver:e=Oa,elapsed:n=0,repeat:r=0,repeatType:o="loop",repeatDelay:i=0,keyframes:a,autoplay:s=!0,onPlay:c,onStop:l,onComplete:p,onRepeat:u,onUpdate:d,type:f="keyframes",...m}){const h=n;let g,v,x=0,y=t,b=!1,w=!0;const k=_a[a.length>2?"keyframes":f]||ga,j=a[0],E=a[a.length-1];let S={done:!1,value:j};const{needsInterpolation:_}=k;_&&_(j,E)&&(v=oa([0,100],[j,E],{clamp:!1}),a=[0,100]);const P=k({...m,duration:t,keyframes:a});function O(){x++,"reverse"===o?(w=x%2==0,n=function(t,e=0,n=0,r=!0){return r?Pa(e+-t,e,n):e-(t-e)+n}(n,y,i,w)):(n=Pa(n,y,i),"mirror"===o&&P.flipTarget()),b=!1,u&&u()}function C(t){w||(t=-t),n+=t,b||(S=P.next(Math.max(0,n)),v&&(S.value=v(S.value)),b=w?S.done:n<=0),d&&d(S.value),b&&(0===x&&(y=void 0!==y?y:n),x<r?function(t,e,n,r){return r?t>=e+n:t<=-n}(n,y,i,w)&&O():(g&&g.stop(),p&&p()))}return s&&(c&&c(),g=e(C),g.start()),{stop:()=>{l&&l(),g&&g.stop()},set currentTime(t){n=h,C(t)},sample:e=>{n=h;const r=t&&"number"==typeof t?Math.max(.5*t,50):50;let o=0;for(C(0);o<=e;){const t=e-o;C(Math.min(t,r)),o+=r}return S}}}const Ta=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,Aa={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ta([0,.65,.55,1]),circOut:Ta([.55,0,1,.45]),backIn:Ta([.31,.01,.66,-.59]),backOut:Ta([.33,1.53,.69,.99])};function Ra(t){if(t)return Array.isArray(t)?Ta(t):Aa[t]}const Na={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},Da={},La={};for(const t in Na)La[t]=()=>(void 0===Da[t]&&(Da[t]=Na[t]()),Da[t]);const Ma=new Set(["opacity","clipPath","filter","transform"]);function Ia(t,e,{onUpdate:n,onComplete:r,...o}){if(!(La.waapi()&&Ma.has(e)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping))return!1;let{keyframes:i,duration:a=300,elapsed:s=0,ease:c}=o;if("spring"===o.type||!(!(l=o.ease)||Array.isArray(l)||"string"==typeof l&&Aa[l])){if(o.repeat===1/0)return;const t=Ca({...o,elapsed:0});let e={done:!1,value:i[0]};const n=[];let r=0;for(;!e.done&&r<2e4;)e=t.sample(r),n.push(e.value),r+=10;i=n,a=r-10,c="linear"}var l;const p=function(t,e,n,{delay:r=0,duration:o,repeat:i=0,repeatType:a="loop",ease:s,times:c}={}){return t.animate({[e]:n,offset:c},{delay:r,duration:o,easing:Ra(s),fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}(t.owner.current,e,i,{...o,delay:-s,duration:a,ease:c});return p.onfinish=()=>{t.set(function(t,{repeat:e,repeatType:n="loop"}){return t[e&&"loop"!==n&&e%2==1?0:t.length-1]}(i,o)),Go.update((()=>p.cancel())),r&&r()},{get currentTime(){return p.currentTime||0},set currentTime(t){p.currentTime=t},stop:()=>{const{currentTime:e}=p;if(e){const n=Ca({...o,autoplay:!1});t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}Go.update((()=>p.cancel()))}}}function Fa(t,e){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=e&&(Xo.read(r),t(i-e))};return Go.read(r,!0),()=>Xo.read(r)}function za({keyframes:t,elapsed:e,onUpdate:n,onComplete:r}){const o=()=>{n&&n(t[t.length-1]),r&&r()};return e?{stop:Fa(o,-e)}:o()}const Ba={type:"spring",stiffness:500,damping:25,restSpeed:10},Va={type:"keyframes",duration:.8},Ua={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},qa=(t,{keyframes:e})=>e.length>2?Va:lr.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:Ba:Ua,$a=(t,e)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!xi.test(e)||e.startsWith("url(")));function Wa(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function Ha(t){return"number"==typeof t?0:Si("",t)}function Ga(t,e){return t[e]||t.default||t}const Xa=(t,e,n,r={})=>o=>{const i=Ga(r,t)||{},a=i.delay||r.delay||0;let{elapsed:s=0}=r;s-=Fi(a);const c=function(t,e,n,r){const o=$a(e,n);let i=void 0!==r.from?r.from:t.get();return"none"===i&&o&&"string"==typeof n?i=Si(e,n):Wa(i)&&"string"==typeof n?i=Ha(n):!Array.isArray(n)&&Wa(n)&&"string"==typeof i&&(n=Ha(i)),Array.isArray(n)?(null===n[0]&&(n[0]=i),n):[i,n]}(e,t,n,i),l=c[0],p=c[c.length-1],u=$a(t,l),d=$a(t,p);Mi(u===d,`You are trying to animate ${t} from "${l}" to "${p}". ${l} is not an animatable value - to enable this animation set ${l} to a value animatable to ${p} via the \`style\` property.`);let f={keyframes:c,velocity:e.getVelocity(),...i,elapsed:s,onUpdate:t=>{e.set(t),i.onUpdate&&i.onUpdate(t)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(!u||!d||zi||!1===i.type)return za(f);if("inertia"===i.type)return function({keyframes:t,velocity:e=0,min:n,max:r,power:o=.8,timeConstant:i=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:c=1,modifyTarget:l,driver:p,onUpdate:u,onComplete:d,onStop:f}){const m=t[0];let h;function g(t){return void 0!==n&&t<n||void 0!==r&&t>r}function v(t){return void 0===n?r:void 0===r||Math.abs(n-t)<Math.abs(r-t)?n:r}function x(t){h&&h.stop(),h=Ca({keyframes:[0,1],velocity:0,...t,driver:p,onUpdate:e=>{u&&u(e),t.onUpdate&&t.onUpdate(e)},onComplete:d,onStop:f})}function y(t){x({type:"spring",stiffness:a,damping:s,restDelta:c,...t})}if(g(m))y({velocity:e,keyframes:[m,v(m)]});else{let t=o*e+m;void 0!==l&&(t=l(t));const r=v(t),a=r===n?-1:1;let s,p;const u=t=>{s=p,p=t,e=ni(t-s,Fo.delta),(1===a&&t>r||-1===a&&t<r)&&y({keyframes:[t,r],velocity:e})};x({type:"decay",keyframes:[m,0],velocity:e,timeConstant:i,power:o,restDelta:c,modifyTarget:l,onUpdate:g(t)?u:void 0})}return{stop:()=>h&&h.stop()}}(f);if(function({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:c,elapsed:l,...p}){return!!Object.keys(p).length}(i)||(f={...f,...qa(t,f)}),f.duration&&(f.duration=Fi(f.duration)),f.repeatDelay&&(f.repeatDelay=Fi(f.repeatDelay)),e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const n=Ia(e,t,f);if(n)return n}return Ca(f)};function Ya(t,e,n={}){const r=Ai(t,e,n.custom);let{transition:o=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Ka(t,r,n):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(t,e,n=0,r=0,o=1,i){const a=[],s=(t.variantChildren.size-1)*r,c=1===o?(t=0)=>t*r:(t=0)=>s-t*r;return Array.from(t.variantChildren).sort(Ja).forEach(((t,r)=>{t.notify("AnimationStart",e),a.push(Ya(t,e,{...i,delay:n+c(r)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(a)}(t,e,i+r,a,s,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[t,e]="beforeChildren"===s?[i,a]:[a,i];return t().then(e)}return Promise.all([i(),a(n.delay)])}function Ka(t,e,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=t.getDefaultTransition(),transitionEnd:a,...s}=t.makeTargetAnimatable(e);const c=t.getValue("willChange");r&&(i=r);const l=[],p=o&&t.animationState&&t.animationState.getState()[o];for(const e in s){const r=t.getValue(e),o=s[e];if(!r||void 0===o||p&&Za(p,e))continue;const a={delay:n,elapsed:0,...i};if(window.HandoffAppearAnimations&&!r.hasAnimated){const n=t.getProps()[Li];n&&(a.elapsed=window.HandoffAppearAnimations(n,e,r,Go))}let u=r.start(Xa(e,r,o,t.shouldReduceMotion&&lr.has(e)?{type:!1}:a));Di(c)&&(c.add(e),u=u.then((()=>c.remove(e)))),l.push(u)}return Promise.all(l).then((()=>{a&&function(t,e){const n=Ai(t,e);let{transitionEnd:r={},transition:o={},...i}=n?t.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const e in i)Ri(t,e,(a=i[e],ao(a)?a[a.length-1]||0:a));var a}(t,a)}))}function Ja(t,e){return t.sortNodePosition(e)}function Za({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,r}const Qa=[...Un].reverse(),ts=Un.length;function es(t){return e=>Promise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e)){const o=e.map((e=>Ya(t,e,n)));r=Promise.all(o)}else if("string"==typeof e)r=Ya(t,e,n);else{const o="function"==typeof e?Ai(t,e,n.custom):e;r=Ka(t,o,n)}return r.then((()=>t.notify("AnimationComplete",e)))}(t,e,n))))}function ns(t){let e=es(t);const n={animate:os(!0),whileInView:os(),whileHover:os(),whileTap:os(),whileDrag:os(),whileFocus:os(),exit:os()};let r=!0;const o=(e,n)=>{const r=Ai(t,n);if(r){const{transition:t,transitionEnd:n,...o}=r;e={...e,...o,...n}}return e};function i(i,a){const s=t.getProps(),c=t.getVariantContext(!0)||{},l=[],p=new Set;let u={},d=1/0;for(let e=0;e<ts;e++){const f=Qa[e],m=n[f],h=void 0!==s[f]?s[f]:c[f],g=Bn(h),v=f===a?m.isActive:null;!1===v&&(d=e);let x=h===c[f]&&h!==s[f]&&g;if(x&&r&&t.manuallyAnimateOnMount&&(x=!1),m.protectedKeys={...u},!m.isActive&&null===v||!h&&!m.prevProp||Vn(h)||"boolean"==typeof h)continue;const y=rs(m.prevProp,h);let b=y||f===a&&m.isActive&&!x&&g||e>d&&g;const w=Array.isArray(h)?h:[h];let k=w.reduce(o,{});!1===v&&(k={});const{prevResolvedValues:j={}}=m,E={...j,...k},S=t=>{b=!0,p.delete(t),m.needsAnimating[t]=!0};for(const t in E){const e=k[t],n=j[t];u.hasOwnProperty(t)||(e!==n?ao(e)&&ao(n)?!Mo(e,n)||y?S(t):m.protectedKeys[t]=!0:void 0!==e?S(t):p.add(t):void 0!==e&&p.has(t)?S(t):m.protectedKeys[t]=!0)}m.prevProp=h,m.prevResolvedValues=k,m.isActive&&(u={...u,...k}),r&&t.blockInitialAnimation&&(b=!1),b&&!x&&l.push(...w.map((t=>({animation:t,options:{type:f,...i}}))))}if(p.size){const e={};p.forEach((n=>{const r=t.getBaseTarget(n);void 0!==r&&(e[n]=r)})),l.push({animation:e})}let f=Boolean(l.length);return r&&!1===s.initial&&!t.manuallyAnimateOnMount&&(f=!1),r=!1,f?e(l):Promise.resolve()}return{animateChanges:i,setActive:function(e,r,o){var a;if(n[e].isActive===r)return Promise.resolve();null===(a=t.variantChildren)||void 0===a||a.forEach((t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,r)})),n[e].isActive=r;const s=i(o,e);for(const t in n)n[t].protectedKeys={};return s},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}function rs(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!Mo(e,t)}function os(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let is=0;const as={animation:{Feature:class extends Eo{constructor(t){super(t),t.animationState||(t.animationState=ns(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Vn(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends Eo{constructor(){super(...arguments),this.id=is++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t,{custom:null!=n?n:this.node.getProps().custom});e&&!t&&o.then((()=>e(this.id)))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}}},ss=(t,e)=>Math.abs(t-e);class cs{constructor(t,e,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=us(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=ss(t.x,e.x),r=ss(t.y,e.y);return Math.sqrt(n**2+r**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:r}=t,{timestamp:o}=Fo;this.history.push({...r,timestamp:o});const{onStart:i,onMove:a}=this.handlers;e||(i&&i(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=ls(e,this.transformPagePoint),Go.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:r}=this.handlers,o=us("pointercancel"===t.type?this.lastMoveEventInfo:ls(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),r&&r(t,o)},!mo(t))return;this.handlers=e,this.transformPagePoint=n;const r=ls(ho(t),this.transformPagePoint),{point:o}=r,{timestamp:i}=Fo;this.history=[{...o,timestamp:i}];const{onSessionStart:a}=e;a&&a(t,us(r,this.history)),this.removeListeners=xo(go(window,"pointermove",this.handlePointerMove),go(window,"pointerup",this.handlePointerUp),go(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Xo.update(this.updatePoint)}}function ls(t,e){return e?{point:e(t.point)}:t}function ps(t,e){return{x:t.x-e.x,y:t.y-e.y}}function us({point:t},e){return{point:t,delta:ps(t,fs(e)),offset:ps(t,ds(e)),velocity:ms(e,.1)}}function ds(t){return t[0]}function fs(t){return t[t.length-1]}function ms(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const o=fs(t);for(;n>=0&&(r=t[n],!(o.timestamp-r.timestamp>Fi(e)));)n--;if(!r)return{x:0,y:0};const i=(o.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function hs(t){return t.max-t.min}function gs(t,e=0,n=.01){return Math.abs(t-e)<=n}function vs(t,e,n,r=.5){t.origin=r,t.originPoint=Wi(e.min,e.max,t.origin),t.scale=hs(n)/hs(e),(gs(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=Wi(n.min,n.max,t.origin)-t.originPoint,(gs(t.translate)||isNaN(t.translate))&&(t.translate=0)}function xs(t,e,n,r){vs(t.x,e.x,n.x,r?r.originX:void 0),vs(t.y,e.y,n.y,r?r.originY:void 0)}function ys(t,e,n){t.min=n.min+e.min,t.max=t.min+hs(e)}function bs(t,e,n){t.min=e.min-n.min,t.max=t.min+hs(e)}function ws(t,e,n){bs(t.x,e.x,n.x),bs(t.y,e.y,n.y)}function ks(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function js(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}const Es=.35;function Ss(t,e,n){return{min:_s(t,e),max:_s(t,n)}}function _s(t,e){return"number"==typeof t?t:t[e]||0}function Ps(t){return[t("x"),t("y")]}function Os({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function Cs(t){return void 0===t||1===t}function Ts({scale:t,scaleX:e,scaleY:n}){return!Cs(t)||!Cs(e)||!Cs(n)}function As(t){return Ts(t)||Rs(t)||t.z||t.rotate||t.rotateX||t.rotateY}function Rs(t){return Ns(t.x)||Ns(t.y)}function Ns(t){return t&&"0%"!==t}function Ds(t,e,n){return n+e*(t-n)}function Ls(t,e,n,r,o){return void 0!==o&&(t=Ds(t,o,r)),Ds(t,n,r)+e}function Ms(t,e=0,n=1,r,o){t.min=Ls(t.min,e,n,r,o),t.max=Ls(t.max,e,n,r,o)}function Is(t,{x:e,y:n}){Ms(t.x,e.translate,e.scale,e.originPoint),Ms(t.y,n.translate,n.scale,n.originPoint)}function Fs(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function zs(t,e){t.min=t.min+e,t.max=t.max+e}function Bs(t,e,[n,r,o]){const i=void 0!==e[o]?e[o]:.5,a=Wi(t.min,t.max,i);Ms(t,e[n],e[r],a,e.scale)}const Vs=["x","scaleX","originX"],Us=["y","scaleY","originY"];function qs(t,e){Bs(t.x,e,Vs),Bs(t.y,e,Us)}function $s(t,e){return Os(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}const Ws=new WeakMap;class Hs{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=t}start(t,{snapToCursor:e=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;this.panSession=new cs(t,{onSessionStart:t=>{this.stopAnimation(),e&&this.snapToCursor(ho(t,"page").point)},onStart:(t,e)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ko(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ps((t=>{let e=this.getAxisMotionValue(t).get()||0;if(Cr.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[t];if(r){e=hs(r)*(parseFloat(e)/100)}}}this.originPoint[t]=e})),o&&o(t,e);const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:a}=e;if(r&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),i&&i(t,e)},onSessionEnd:(t,e)=>this.stop(t,e)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=e;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&o(t,e)}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){const{drag:r}=this.getProps();if(!n||!Gs(t,r,this.currentDirection))return;const o=this.getAxisMotionValue(t);let i=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(i=function(t,{min:e,max:n},r){return void 0!==e&&t<e?t=r?Wi(e,t,r.min):Math.max(t,e):void 0!==n&&t>n&&(t=r?Wi(n,t,r.max):Math.min(t,n)),t}(i,this.constraints[t],this.elastic[t])),o.set(i)}resolveConstraints(){const{dragConstraints:t,dragElastic:e}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;t&&zn(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!n)&&function(t,{top:e,left:n,bottom:r,right:o}){return{x:ks(t.x,n,o),y:ks(t.y,e,r)}}(n.layoutBox,t),this.elastic=function(t=Es){return!1===t?t=0:!0===t&&(t=Es),{x:Ss(t,"left","right"),y:Ss(t,"top","bottom")}}(e),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Ps((t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(n.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!zn(t))return!1;const n=t.current;Ii(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(t,e,n){const r=$s(t,n),{scroll:o}=e;return o&&(zs(r.x,o.offset.x),zs(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(t,e){return{x:js(t.x,e.x),y:js(t.y,e.y)}}(r.layout.layoutBox,o);if(e){const t=e(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(i));this.hasMutatedConstraints=!!t,t&&(i=Os(t))}return i}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},c=Ps((a=>{if(!Gs(a,e,this.currentDirection))return;let c=s&&s[a]||{};i&&(c={min:0,max:0});const l=r?200:1e6,p=r?40:1e7,u={type:"inertia",velocity:n?t[a]:0,bounceStiffness:l,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...o,...c};return this.startAxisValueAnimation(a,u)}));return Promise.all(c).then(a)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return n.start(Xa(t,n,0,e))}stopAnimation(){Ps((t=>this.getAxisMotionValue(t).stop()))}getAxisMotionValue(t){const e="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),r=n[e];return r||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){Ps((e=>{const{drag:n}=this.getProps();if(!Gs(e,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(e);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[e];o.set(t[e]-Wi(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!zn(e)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Ps((t=>{const e=this.getAxisMotionValue(t);if(e){const n=e.get();r[t]=function(t,e){let n=.5;const r=hs(t),o=hs(e);return o>r?n=ea(e.min,e.max-r,t.min):r>o&&(n=ea(t.min,t.max-o,e.min)),xr(0,1,n)}({min:n,max:n},this.constraints[t])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Ps((e=>{if(!Gs(e,t,null))return;const n=this.getAxisMotionValue(e),{min:o,max:i}=this.constraints[e];n.set(Wi(o,i,r[e]))}))}addListeners(){if(!this.visualElement.current)return;Ws.set(this.visualElement,this);const t=go(this.visualElement.current,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),e=()=>{const{dragConstraints:t}=this.getProps();zn(t)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),e();const o=fo(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(Ps((e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))})),this.visualElement.render())}));return()=>{o(),t(),r(),i&&i()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=Es,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function Gs(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}function Xs(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Ys={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!Tr.test(t))return t;t=parseFloat(t)}return`${Xs(t,e.target.x)}% ${Xs(t,e.target.y)}%`}},Ks=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Js(t,e,n=1){Ii(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,o]=function(t){const e=Ks.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}(t);if(!r)return;const i=window.getComputedStyle(e).getPropertyValue(r);return i?i.trim():gr(o)?Js(o,e,n+1):o}const Zs="_$css",Qs={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,o=t.includes("var("),i=[];o&&(t=t.replace(Ks,(t=>(i.push(t),Zs))));const a=xi.parse(t);if(a.length>5)return r;const s=xi.createTransformer(t),c="number"!=typeof a[0]?1:0,l=n.x.scale*e.x,p=n.y.scale*e.y;a[0+c]/=l,a[1+c]/=p;const u=Wi(l,p,.5);"number"==typeof a[2+c]&&(a[2+c]/=u),"number"==typeof a[3+c]&&(a[3+c]/=u);let d=s(a);if(o){let t=0;d=d.replace(Zs,(()=>{const e=i[t];return t++,e}))}return d}};class tc extends e.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=t;var i;i=nc,Object.assign(sr,i),o&&(e.group&&e.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Jn.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||t.layoutDependency!==e||void 0===e?i.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?i.promote():i.relegate()||Go.postRender((()=>{const t=i.getStack();t&&t.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ec(t){const[n,r]=function(){const t=c(Dn);if(null===t)return[!0,null];const{isPresent:e,onExitComplete:n,register:r}=t,i=m();return o((()=>r(i)),[]),!e&&n?[!1,()=>n&&n(i)]:[!0]}(),i=c(Qn);return e.createElement(tc,{...t,layoutGroup:i,switchLayoutGroup:c(tr),isPresent:n,safeToRemove:r})}const nc={borderRadius:{...Ys,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ys,borderTopRightRadius:Ys,borderBottomLeftRadius:Ys,borderBottomRightRadius:Ys,boxShadow:Qs};const rc=["TopLeft","TopRight","BottomLeft","BottomRight"],oc=rc.length,ic=t=>"string"==typeof t?parseFloat(t):t,ac=t=>"number"==typeof t||Tr.test(t);function sc(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const cc=pc(0,.5,la),lc=pc(.5,.95,Po);function pc(t,e,n){return r=>r<t?0:r>e?1:n(ea(t,e,r))}function uc(t,e){t.min=e.min,t.max=e.max}function dc(t,e){uc(t.x,e.x),uc(t.y,e.y)}function fc(t,e,n,r,o){return t=Ds(t-=e,1/n,r),void 0!==o&&(t=Ds(t,1/o,r)),t}function mc(t,e,[n,r,o],i,a){!function(t,e=0,n=1,r=.5,o,i=t,a=t){Cr.test(e)&&(e=parseFloat(e),e=Wi(a.min,a.max,e/100)-a.min);if("number"!=typeof e)return;let s=Wi(i.min,i.max,r);t===i&&(s-=e),t.min=fc(t.min,e,n,s,o),t.max=fc(t.max,e,n,s,o)}(t,e[n],e[r],e[o],e.scale,i,a)}const hc=["x","scaleX","originX"],gc=["y","scaleY","originY"];function vc(t,e,n,r){mc(t.x,e,hc,n?n.x:void 0,r?r.x:void 0),mc(t.y,e,gc,n?n.y:void 0,r?r.y:void 0)}function xc(t){return 0===t.translate&&1===t.scale}function yc(t){return xc(t.x)&&xc(t.y)}function bc(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function wc(t){return hs(t.x)/hs(t.y)}class kc{constructor(){this.members=[]}add(t){Qo(this.members,t),t.scheduleRender()}remove(t){if(ti(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex((e=>t===e));if(0===e)return!1;let n;for(let t=e;t>=0;t--){const e=this.members[t];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(t,e){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((t=>{const{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function jc(t,e,n){let r="";const o=t.x.translate/e.x,i=t.y.translate/e.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),1===e.x&&1===e.y||(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:t,rotateX:e,rotateY:o}=n;t&&(r+=`rotate(${t}deg) `),e&&(r+=`rotateX(${e}deg) `),o&&(r+=`rotateY(${o}deg) `)}const a=t.x.scale*e.x,s=t.y.scale*e.y;return 1===a&&1===s||(r+=`scale(${a}, ${s})`),r||"none"}const Ec=(t,e)=>t.depth-e.depth;class Sc{constructor(){this.children=[],this.isDirty=!1}add(t){Qo(this.children,t),this.isDirty=!0}remove(t){ti(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Ec),this.isDirty=!1,this.children.forEach(t)}}const _c=["","X","Y","Z"];let Pc=0;const Oc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Cc({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(t,n={},r=(null==e?void 0:e())){this.id=Pc++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var t;Oc.totalNodes=Oc.resolvedTargetDeltas=Oc.recalculatedProjection=0,this.nodes.forEach(Rc),this.nodes.forEach(Fc),this.nodes.forEach(zc),this.nodes.forEach(Nc),t=Oc,window.MotionDebug&&window.MotionDebug.record(t)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=t,this.latestValues=n,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0,t&&this.root.registerPotentialNode(t,this);for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new Sc)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new ei),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);n&&n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}registerPotentialNode(t,e){this.potentialNodes.set(t,e)}mount(e,n=!1){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;const{layoutId:r,layout:o,visualElement:i}=this.options;if(i&&!i.current&&i.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),n&&(o||r)&&(this.isLayoutDirty=!0),t){let n;const r=()=>this.root.updateBlockedByResize=!1;t(e,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=Fa(r,250),Jn.hasAnimatedSinceResize&&(Jn.hasAnimatedSinceResize=!1,this.nodes.forEach(Ic))}))}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&i&&(r||o)&&this.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||i.getDefaultTransition()||Wc,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!bc(this.targetLayout,r)||n,l=!e&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||l||e&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,l);const e={...Ga(o,"layout"),onPlay:a,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||0!==this.animationProgress||Ic(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Xo.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Bc),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){const e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Lc);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(Hc),this.potentialNodes.clear()),this.nodes.forEach(Mc),this.nodes.forEach(Tc),this.nodes.forEach(Ac),this.clearAllSnapshots(),Yo.update(),Yo.preRender(),Yo.render())}clearAllSnapshots(){this.nodes.forEach(Dc),this.sharedNodes.forEach(Vc)}scheduleUpdateProjection(){Go.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Go.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++){this.path[t].updateScroll()}const t=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!yc(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;t&&(e||As(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var r;return t&&(n=this.removeTransform(n)),Gc((r=n).x),Gc(r.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const e=t.measureViewportBox(),{scroll:n}=this.root;return n&&(zs(e.x,n.offset.x),zs(e.y,n.offset.y)),e}removeElementScroll(t){const e={x:{min:0,max:0},y:{min:0,max:0}};dc(e,t);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:o,options:i}=r;if(r!==this.root&&o&&i.layoutScroll){if(o.isRoot){dc(e,t);const{scroll:n}=this.root;n&&(zs(e.x,-n.offset.x),zs(e.y,-n.offset.y))}zs(e.x,o.offset.x),zs(e.y,o.offset.y)}}return e}applyTransform(t,e=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};dc(n,t);for(let t=0;t<this.path.length;t++){const r=this.path[t];!e&&r.options.layoutScroll&&r.scroll&&r!==r.root&&qs(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),As(r.latestValues)&&qs(n,r.latestValues)}return As(this.latestValues)&&qs(n,this.latestValues),n}removeTransform(t){const e={x:{min:0,max:0},y:{min:0,max:0}};dc(e,t);for(let t=0;t<this.path.length;t++){const n=this.path[t];if(!n.instance)continue;if(!As(n.latestValues))continue;Ts(n.latestValues)&&n.updateSnapshot();const r={x:{min:0,max:0},y:{min:0,max:0}};dc(r,n.measurePageBox()),vc(e,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return As(this.latestValues)&&vc(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}resolveTargetDelta(){var t;const e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);if(!((Boolean(this.resumingFrom)||this!==e)&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:n,layoutId:r}=this.options;if(this.layout&&(n||r)){if(!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout?(this.relativeParent=t,this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},ws(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),dc(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var o,i,a;if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(o=this.target,i=this.relativeTarget,a=this.relativeParent.target,ys(o.x,i.x,a.x),ys(o.y,i.y,a.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):dc(this.target,this.layout.layoutBox),Is(this.target,this.targetDelta)):dc(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target?(this.relativeParent=t,this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},ws(this.relativeTargetOrigin,this.target,t.target),dc(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Oc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!Ts(this.parent.latestValues)&&!Rs(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;const e=this.getLead(),n=Boolean(this.resumingFrom)||this!==e;let r=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),r)return;const{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!i)return;dc(this.layoutCorrected,this.layout.layoutBox),function(t,e,n,r=!1){const o=n.length;if(!o)return;let i,a;e.x=e.y=1;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const o=i.instance;o&&o.style&&"contents"===o.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&qs(t,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,Is(t,a)),r&&As(i.latestValues)&&qs(t,i.latestValues))}e.x=Fs(e.x),e.y=Fs(e.y)}(this.layoutCorrected,this.treeScale,this.path,n);const{target:a}=e;if(!a)return;this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});const s=this.treeScale.x,c=this.treeScale.y,l=this.projectionTransform;xs(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.projectionTransform=jc(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===s&&this.treeScale.y===c||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),Oc.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const a={x:{min:0,max:0},y:{min:0,max:0}},s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),l=!c||c.members.length<=1,p=Boolean(s&&!l&&!0===this.options.crossfade&&!this.path.some($c));let u;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var c,d,f,m;Uc(i.x,t.x,n),Uc(i.y,t.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ws(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),c=this.relativeTarget,d=this.relativeTargetOrigin,f=a,m=n,qc(c.x,d.x,f.x,m),qc(c.y,d.y,f.y,m),u&&bc(this.relativeTarget,u)&&(this.isProjectionDirty=!1),u||(u={x:{min:0,max:0},y:{min:0,max:0}}),dc(u,this.relativeTarget)),s&&(this.animationValues=o,function(t,e,n,r,o,i){o?(t.opacity=Wi(0,void 0!==n.opacity?n.opacity:1,cc(r)),t.opacityExit=Wi(void 0!==e.opacity?e.opacity:1,0,lc(r))):i&&(t.opacity=Wi(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<oc;o++){const i=`border${rc[o]}Radius`;let a=sc(e,i),s=sc(n,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||ac(a)===ac(s)?(t[i]=Math.max(Wi(ic(a),ic(s),r),0),(Cr.test(s)||Cr.test(a))&&(t[i]+="%")):t[i]=s)}(e.rotate||n.rotate)&&(t.rotate=Wi(e.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,p,l)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Xo.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Go.update((()=>{Jn.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n={}){const r=ur(t)?t:oi(t);return r.start(Xa("",r,e,n)),{stop:()=>r.stop(),isAnimating:()=>r.isAnimating()}}(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:r,latestValues:o}=t;if(e&&n&&r){if(this!==t&&this.layout&&r&&Xc(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const e=hs(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const r=hs(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+r}dc(e,n),qs(e,o),xs(this.projectionDeltaWithTransform,this.layoutCorrected,e,o)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new kc);this.sharedNodes.get(t).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(e=!0),!e)return;const r={};for(let e=0;e<_c.length;e++){const o="rotate"+_c[e];n[o]&&(r[o]=n[o],t.setStaticValue(o,0))}t.render();for(const e in r)t.setStaticValue(e,r[e]);t.scheduleRender()}getProjectionStyles(t={}){var e,n;const r={};if(!this.instance||this.isSVG)return r;if(!this.isVisible)return{visibility:"hidden"};r.visibility="";const o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=so(t.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=so(t.pointerEvents)||""),this.hasProjected&&!As(this.latestValues)&&(e.transform=o?o({},""):"none",this.hasProjected=!1),e}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=jc(this.projectionDeltaWithTransform,this.treeScale,a),o&&(r.transform=o(a,r.transform));const{x:s,y:c}=this.projectionDelta;r.transformOrigin=`${100*s.origin}% ${100*c.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(e=a.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=i===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const t in sr){if(void 0===a[t])continue;const{correct:e,applyTo:n}=sr[t],o="none"===r.transform?a[t]:e(a[t],i);if(n){const t=n.length;for(let e=0;e<t;e++)r[n[e]]=o}else r[t]=o}return this.options.layoutId&&(r.pointerEvents=i===this?so(t.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()})),this.root.nodes.forEach(Lc),this.root.sharedNodes.clear()}}}function Tc(t){t.updateLayout()}function Ac(t){var e;const n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:r}=t.layout,{animationType:o}=t.options,i=n.source!==t.layout.source;"size"===o?Ps((t=>{const r=i?n.measuredBox[t]:n.layoutBox[t],o=hs(r);r.min=e[t].min,r.max=r.min+o})):Xc(o,n.layoutBox,e)&&Ps((t=>{const r=i?n.measuredBox[t]:n.layoutBox[t],o=hs(e[t]);r.max=r.min+o}));const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};xs(a,e,n.layoutBox);const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i?xs(s,t.applyTransform(r,!0),n.measuredBox):xs(s,e,n.layoutBox);const c=!yc(a);let l=!1;if(!t.resumeFrom){const r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const a={x:{min:0,max:0},y:{min:0,max:0}};ws(a,n.layoutBox,o.layoutBox);const s={x:{min:0,max:0},y:{min:0,max:0}};ws(s,e,i.layoutBox),bc(a,s)||(l=!0),r.options.layoutRoot&&(t.relativeTarget=s,t.relativeTargetOrigin=a,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:l})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function Rc(t){Oc.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Nc(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Dc(t){t.clearSnapshot()}function Lc(t){t.clearMeasurements()}function Mc(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ic(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function Fc(t){t.resolveTargetDelta()}function zc(t){t.calcProjection()}function Bc(t){t.resetRotation()}function Vc(t){t.removeLeadSnapshot()}function Uc(t,e,n){t.translate=Wi(e.translate,0,n),t.scale=Wi(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function qc(t,e,n,r){t.min=Wi(e.min,n.min,r),t.max=Wi(e.max,n.max,r)}function $c(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const Wc={duration:.45,ease:[.4,0,.1,1]};function Hc(t,e){let n=t.root;for(let e=t.path.length-1;e>=0;e--)if(Boolean(t.path[e].instance)){n=t.path[e];break}const r=(n&&n!==t.root?n.instance:document).querySelector(`[data-projection-id="${e}"]`);r&&t.mount(r,!0)}function Gc(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function Xc(t,e,n){return"position"===t||"preserve-aspect"===t&&!gs(wc(e),wc(n),.2)}const Yc=Cc({attachResizeListener:(t,e)=>fo(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Kc={current:void 0},Jc=Cc({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Kc.current){const t=new Yc(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),Kc.current=t}return Kc.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),Zc={pan:{Feature:class extends Eo{constructor(){super(...arguments),this.removePointerDownListener=Po}onPointerDown(t){this.session=new cs(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:t,onStart:e,onMove:n,onEnd:(t,e)=>{delete this.session,r&&r(t,e)}}}mount(){this.removePointerDownListener=go(this.node.current,"pointerdown",(t=>this.onPointerDown(t)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Eo{constructor(t){super(t),this.removeGroupControls=Po,this.removeListeners=Po,this.controls=new Hs(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Po}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Jc,MeasureLayout:ec}},Qc=new Set(["width","height","top","left","right","bottom","x","y"]),tl=t=>Qc.has(t),el=t=>t===yr||t===Tr,nl=(t,e)=>parseFloat(t.split(", ")[e]),rl=(t,e)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return nl(o[1],e);{const e=r.match(/^matrix\((.+)\)$/);return e?nl(e[1],t):0}},ol=new Set(["x","y","z"]),il=cr.filter((t=>!ol.has(t)));const al={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:rl(4,13),y:rl(5,14)},sl=(t,e,n={},r={})=>{e={...e},r={...r};const o=Object.keys(e).filter(tl);let i=[],a=!1;const s=[];if(o.forEach((o=>{const c=t.getValue(o);if(!t.hasValue(o))return;let l=n[o],p=Oi(l);const u=e[o];let d;if(ao(u)){const t=u.length,e=null===u[0]?1:0;l=u[e],p=Oi(l);for(let n=e;n<t;n++)d?Ii(Oi(u[n])===d,"All keyframes must be of the same type"):(d=Oi(u[n]),Ii(d===p||el(p)&&el(d),"Keyframes must be of the same dimension as the current value"))}else d=Oi(u);if(p!==d)if(el(p)&&el(d)){const t=c.get();"string"==typeof t&&c.set(parseFloat(t)),"string"==typeof u?e[o]=parseFloat(u):Array.isArray(u)&&d===Tr&&(e[o]=u.map(parseFloat))}else(null==p?void 0:p.transform)&&(null==d?void 0:d.transform)&&(0===l||0===u)?0===l?c.set(d.transform(l)):e[o]=p.transform(u):(a||(i=function(t){const e=[];return il.forEach((n=>{const r=t.getValue(n);void 0!==r&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),e.length&&t.render(),e}(t),a=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:e[o],c.jump(u))})),s.length){const n=s.indexOf("height")>=0?window.pageYOffset:null,o=((t,e,n)=>{const r=e.measureViewportBox(),o=e.current,i=getComputedStyle(o),{display:a}=i,s={};"none"===a&&e.setStaticValue("display",t.display||"block"),n.forEach((t=>{s[t]=al[t](r,i)})),e.render();const c=e.measureViewportBox();return n.forEach((n=>{const r=e.getValue(n);r&&r.jump(s[n]),t[n]=al[n](c,i)})),t})(e,t,s);return i.length&&i.forEach((([e,n])=>{t.getValue(e).set(n)})),t.render(),Ln&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:e,transitionEnd:r}};function cl(t,e,n,r){return(t=>Object.keys(t).some(tl))(e)?sl(t,e,n,r):{target:e,transitionEnd:r}}const ll=(t,e,n,r)=>{const o=function(t,{...e},n){const r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach((t=>{const e=t.get();if(!gr(e))return;const n=Js(e,r);n&&t.set(n)}));for(const t in e){const o=e[t];if(!gr(o))continue;const i=Js(o,r);i&&(e[t]=i,n&&void 0===n[t]&&(n[t]=o))}return{target:e,transitionEnd:n}}(t,e,r);return cl(t,e=o.target,n,r=o.transitionEnd)},pl={current:null},ul={current:!1};const dl=new Set;function fl(t,e,n){t||dl.has(e)||(console.warn(e),n&&console.warn(n),dl.add(e))}const ml=Object.keys(Yn),hl=ml.length,gl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],vl=qn.length;class xl{constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:r,visualState:o},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Go.render(this.render,!1,!0);const{latestValues:a,renderState:s}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=s,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.isControllingVariants=$n(e),this.isVariantNode=Wn(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:c,...l}=this.scrapeMotionValuesFromProps(e,{});for(const t in l){const e=l[t];void 0!==a[t]&&ur(e)&&(e.set(a[t],!1),Di(c)&&c.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((t,e)=>this.bindToMotionValue(e,t))),ul.current||function(){if(ul.current=!0,Ln)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>pl.current=t.matches;t.addListener(e),e()}else pl.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||pl.current),"production"!==process.env.NODE_ENV&&fl(!0!==this.shouldReduceMotion,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Xo.update(this.notifyUpdate),Xo.render(this.render),this.valueSubscriptions.forEach((t=>t())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,e){const n=lr.has(t),r=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&Go.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,(()=>{r(),o()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},n,r,o,i){let a,s;if("production"!==process.env.NODE_ENV&&r&&n){const t="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Mi(!1,t):Ii(!1,t)}for(let t=0;t<hl;t++){const n=ml[t],{isEnabled:r,Feature:o,ProjectionNode:i,MeasureLayout:c}=Yn[n];i&&(a=i),r(e)&&(!this.features[n]&&o&&(this.features[n]=new o(this)),c&&(s=c))}if(!this.projection&&a){this.projection=new a(o,this.latestValues,this.parent&&this.parent.projection);const{layoutId:t,layout:n,drag:r,dragConstraints:s,layoutScroll:c,layoutRoot:l}=e;this.projection.setOptions({layoutId:t,layout:n,alwaysMeasureLayout:Boolean(r)||s&&zn(s),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:i,layoutScroll:c,layoutRoot:l})}return s}updateFeatures(){for(const t in this.features){const e=this.features[t];e.isMounted?e.update(this.props,this.prevProps):(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,e)}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<gl.length;e++){const n=gl[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=t["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(t,e,n){const{willChange:r}=e;for(const o in e){const i=e[o],a=n[o];if(ur(i))t.addValue(o,i),Di(r)&&r.add(o),"development"===process.env.NODE_ENV&&fl("9.1.7"===i.version,`Attempting to mix Framer Motion versions ${i.version} with 9.1.7 may not work as expected.`);else if(ur(a))t.addValue(o,oi(i,{owner:t})),Di(r)&&r.remove(o);else if(a!==i)if(t.hasValue(o)){const e=t.getValue(o);!e.hasAnimated&&e.set(i)}else{const e=t.getStaticValue(o);t.addValue(o,oi(void 0!==e?e:i,{owner:t}))}}for(const r in n)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}const e={};for(let t=0;t<vl;t++){const n=qn[t],r=this.props[n];(Bn(r)||!1===r)&&(e[n]=r)}return e}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=oi(e,{owner:this}),this.addValue(t,n)),n}readValue(t){return void 0===this.latestValues[t]&&this.current?this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(e=io(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,t);return void 0===o||ur(o)?void 0!==this.initialValues[t]&&void 0===r?void 0:this.baseTarget[t]:o}on(t,e){return this.events[t]||(this.events[t]=new ei),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class yl extends xl{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...n},{transformValues:r},o){let i=function(t,e,n){const r={};for(const o in t){const t=Ni(o,e);if(void 0!==t)r[o]=t;else{const t=n.getValue(o);t&&(r[o]=t.get())}}return r}(n,t||{},this);if(r&&(e&&(e=r(e)),n&&(n=r(n)),i&&(i=r(i))),o){!function(t,e,n){var r,o;const i=Object.keys(e).filter((e=>!t.hasValue(e))),a=i.length;if(a)for(let s=0;s<a;s++){const a=i[s],c=e[a];let l=null;Array.isArray(c)&&(l=c[0]),null===l&&(l=null!==(o=null!==(r=n[a])&&void 0!==r?r:t.readValue(a))&&void 0!==o?o:e[a]),null!=l&&("string"==typeof l&&(/^\-?\d*\.?\d+$/.test(l)||Io(l))?l=parseFloat(l):!Ti(l)&&xi.test(c)&&(l=Si(a,c)),t.addValue(a,oi(l,{owner:t})),void 0===n[a]&&(n[a]=l),null!==l&&t.setBaseTarget(a,l))}}(this,n,i);const t=ll(this,n,i,e);e=t.transitionEnd,n=t.target}return{transition:t,transitionEnd:e,...n}}}class bl extends yl{readValueFromInstance(t,e){if(lr.has(e)){const t=Ei(e);return t&&t.default||0}{const r=(n=t,window.getComputedStyle(n)),o=(hr(e)?r.getPropertyValue(e):r[e])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return $s(t,e)}build(t,e,n,r){Mr(t,e,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,e){return ro(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ur(t)&&(this.childSubscription=t.on("change",(t=>{this.current&&(this.current.textContent=`${t}`)})))}renderInstance(t,e,n,r){to(t,e,n,r)}}class wl extends yl{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(lr.has(e)){const t=Ei(e);return t&&t.default||0}return e=eo.has(e)?e:Qr(e),t.getAttribute(e)}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(t,e){return oo(t,e)}build(t,e,n,r){Xr(t,e,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,e,n,r){no(t,e,0,r)}mount(t){this.isSVGTag=Kr(t.tagName),super.mount(t)}}const kl=(t,e)=>ar(t)?new wl(e,{enableHardwareAcceleration:!1}):new bl(e,{enableHardwareAcceleration:!0}),jl={...as,...Lo,...Zc,...{layout:{ProjectionNode:Jc,MeasureLayout:ec}}},El=or(((t,e)=>function(t,{forwardMotionProps:e=!1},n,r){return{...ar(t)?po:uo,preloadedFeatures:n,useRender:Zr(e),createVisualElement:r,Component:t}}(t,e,jl,kl)));function Sl(){const t=r(!1);return Mn((()=>(t.current=!0,()=>{t.current=!1})),[]),t}class _l extends t.Component{getSnapshotBeforeUpdate(t){const e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){const t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Pl({children:e,isPresent:n}){const o=m(),i=r(null),a=r({width:0,height:0,top:0,left:0});return p((()=>{const{width:t,height:e,top:r,left:s}=a.current;if(n||!i.current||!t||!e)return;i.current.dataset.motionPopId=o;const c=document.createElement("style");return document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`\n [data-motion-pop-id="${o}"] {\n position: absolute !important;\n width: ${t}px !important;\n height: ${e}px !important;\n top: ${r}px !important;\n left: ${s}px !important;\n }\n `),()=>{document.head.removeChild(c)}}),[n]),t.createElement(_l,{isPresent:n,childRef:i,sizeRef:a},t.cloneElement(e,{ref:i}))}const Ol=({children:e,initial:n,isPresent:r,onExitComplete:o,custom:i,presenceAffectsLayout:a,mode:s})=>{const c=Kn(Cl),l=m(),p=u((()=>({id:l,initial:n,isPresent:r,custom:i,onExitComplete:t=>{c.set(t,!0);for(const t of c.values())if(!t)return;o&&o()},register:t=>(c.set(t,!1),()=>c.delete(t))})),a?void 0:[r]);return u((()=>{c.forEach(((t,e)=>c.set(e,!1)))}),[r]),t.useEffect((()=>{!r&&!c.size&&o&&o()}),[r]),"popLayout"===s&&(e=t.createElement(Pl,{isPresent:r},e)),t.createElement(Dn.Provider,{value:p},e)};function Cl(){return new Map}const Tl=t=>t.key||"";const Al=({children:e,custom:a,initial:s=!0,onExitComplete:l,exitBeforeEnter:p,presenceAffectsLayout:u=!0,mode:d="sync"})=>{p&&(d="wait","production"!==process.env.NODE_ENV&&fl(!1,"Replace exitBeforeEnter with mode='wait'"));let[f]=function(){const t=Sl(),[e,r]=n(0),o=i((()=>{t.current&&r(e+1)}),[e]);return[i((()=>Go.postRender(o)),[o]),e]}();const m=c(Qn).forceRender;m&&(f=m);const x=Sl(),y=function(t){const e=[];return g.forEach(t,(t=>{v(t)&&e.push(t)})),e}(e);let b=y;const w=new Set,k=r(b),j=r(new Map).current,E=r(!0);var S;if(Mn((()=>{E.current=!1,function(t,e){t.forEach((t=>{const n=Tl(t);e.set(n,t)}))}(y,j),k.current=b})),S=()=>{E.current=!0,j.clear(),w.clear()},o((()=>()=>S()),[]),E.current)return t.createElement(t.Fragment,null,b.map((e=>t.createElement(Ol,{key:Tl(e),isPresent:!0,initial:!!s&&void 0,presenceAffectsLayout:u,mode:d},e))));b=[...b];const _=k.current.map(Tl),P=y.map(Tl),O=_.length;for(let t=0;t<O;t++){const e=_[t];-1===P.indexOf(e)&&w.add(e)}return"wait"===d&&w.size&&(b=[]),w.forEach((e=>{if(-1!==P.indexOf(e))return;const n=j.get(e);if(!n)return;const r=_.indexOf(e);b.splice(r,0,t.createElement(Ol,{key:Tl(n),isPresent:!1,onExitComplete:()=>{j.delete(e),w.delete(e);const t=k.current.findIndex((t=>t.key===e));if(k.current.splice(t,1),!w.size){if(k.current=y,!1===x.current)return;f(),l&&l()}},custom:a,presenceAffectsLayout:u,mode:d},n))})),b=b.map((e=>{const n=e.key;return w.has(n)?e:t.createElement(Ol,{key:Tl(e),isPresent:!0,presenceAffectsLayout:u,mode:d},e)})),"production"!==process.env.NODE_ENV&&"wait"===d&&b.length>1&&console.warn('You\'re attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.'),t.createElement(t.Fragment,null,w.size?b:b.map((t=>h(t))))};var Rl,Nl=function(t){var e=t.promptValue,i=t.setPromptValue,a=t.handleDisplayResult,s=n(!1),c=s[0],l=s[1],p=n(!0),u=p[0],d=p[1],f=r(null);o((function(){if(l(!0),f.current){var t=f.current,e=window.innerWidth<768?15:30;t.innerHTML="";for(var n=0;n<e;n++){var r=document.createElement("div"),o=4*Math.random()+1,i=100*Math.random(),a=100*Math.random(),s=50*Math.random()+20,c=5*Math.random(),p=.3*Math.random()+.1;r.className="absolute rounded-full bg-white",Object.assign(r.style,{width:"".concat(o,"px"),height:"".concat(o,"px"),left:"".concat(i,"%"),top:"".concat(a,"%"),opacity:p.toString(),animation:"float ".concat(s,"s ease-in-out ").concat(c,"s infinite")}),t.appendChild(r)}}var u=window.scrollY,m=function(){var t=window.scrollY;t<=100?d(!0):t>u?d(!1):t<u&&d(!0),u=t};return window.addEventListener("scroll",m),function(){f.current&&(f.current.innerHTML=""),window.removeEventListener("scroll",m)}}),[]);var m={hidden:{opacity:0,y:20},visible:{opacity:1,y:0}};return z.jsxs("div",{className:"relative overflow-visible min-h-[80vh] sm:min-h-[85vh] flex items-center pt-[60px] sm:pt-[80px] mt-[-60px] sm:mt-[-130px]",children:[z.jsx("div",{ref:f,className:"absolute inset-0 -z-20"}),z.jsxs(El.div,{initial:"hidden",animate:c?"visible":"hidden",variants:m,transition:{duration:.8},className:"flex flex-col items-center justify-center w-full py-6 sm:py-8 md:py-16 lg:pt-10 lg:pb-20",children:[z.jsxs(El.div,{initial:{opacity:0,scale:.95},animate:{opacity:c?1:0,scale:c?1:.95},transition:{duration:.8,delay:.2},className:"landing flex flex-col items-center mb-4 sm:mb-6 md:mb-8",children:[z.jsxs(El.h1,{className:"text-3xl xs:text-4xl sm:text-5xl font-black text-center lg:text-7xl mb-1 sm:mb-2 tracking-tight",variants:m,transition:{duration:.8,delay:.4},children:[z.jsx("div",{className:"mb-2 xs:mb-3 sm:mb-1 md:mb-0",children:"Say Goodbye to"}),z.jsx("span",{style:{backgroundImage:"linear-gradient(to right, #0cdbb6, #1fd0f0, #06dbee)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",display:"block",lineHeight:"1.2",paddingBottom:"0.1em"},children:"Hours of Research"})]}),z.jsx(El.h2,{className:"text-base sm:text-xl font-light text-center px-4 mb-6 text-gray-300 max-w-2xl",variants:m,transition:{duration:.8,delay:.6},children:"Say Hello to GPT Researcher, your AI partner for instant insights and comprehensive research"})]}),z.jsx(El.div,{variants:m,transition:{duration:.8,delay:.8},className:"w-full max-w-[760px] pb-6 sm:pb-8 md:pb-10 px-4 mt-4",children:z.jsxs("div",{className:"relative group",children:[z.jsx("div",{className:"absolute -inset-1 bg-gradient-to-r from-teal-600 via-cyan-500 to-blue-600 rounded-lg blur-md opacity-75 group-hover:opacity-100 transition duration-1000 group-hover:duration-200 animate-gradient-x"}),z.jsx("div",{className:"relative bg-black bg-opacity-20 backdrop-blur-sm rounded-lg ring-1 ring-gray-800/60",children:z.jsx(An,{promptValue:e,setPromptValue:i,handleSubmit:a})})]})}),z.jsx(El.div,{variants:m,transition:{duration:.8,delay:1},className:"flex flex-wrap items-center justify-center gap-2 xs:gap-3 md:gap-4 pb-6 sm:pb-8 md:pb-10 px-4 lg:flex-nowrap lg:justify-normal",children:z.jsx(Al,{children:Dl.map((function(t,e){return z.jsxs(El.div,{variants:m,initial:"hidden",animate:"visible",transition:{duration:.4,delay:1+.1*e},className:"flex h-[38px] sm:h-[42px] cursor-pointer items-center justify-center gap-[6px] rounded-lg \n border border-solid border-teal-500/30 bg-gradient-to-r from-teal-900/30 to-cyan-900/30 \n backdrop-blur-sm px-2 sm:px-3 py-1 sm:py-2 hover:border-teal-500/60 hover:from-teal-900/40 \n hover:to-cyan-900/40 transition-all duration-300 hover:shadow-lg hover:shadow-teal-900/20 min-w-[100px]",onClick:function(){return e=null==t?void 0:t.name,void i(e);var e},whileHover:{scale:1.05},whileTap:{scale:.98},children:[z.jsx("img",{src:t.icon,alt:t.name,width:18,height:18,className:"w-[18px] sm:w-[20px] opacity-80 filter invert brightness-100"}),z.jsx("span",{className:"text-xs sm:text-sm font-medium leading-[normal] text-gray-200",children:t.name})]},t.id)}))})})]}),z.jsx(El.div,{initial:{opacity:0},animate:{opacity:u?1:0},transition:{duration:1.2},className:"fixed bottom-0 left-0 right-0 h-[12px] z-50 overflow-hidden pointer-events-none",children:z.jsxs("div",{className:"relative w-full h-full",children:[z.jsx("div",{className:"absolute inset-0",style:{opacity:.85,background:"radial-gradient(ellipse at center, rgba(12, 219, 182, 1) 0%, rgba(6, 219, 238, 0.7) 25%, rgba(6, 219, 238, 0.2) 50%, rgba(0, 0, 0, 0) 75%)",boxShadow:"0 0 30px 6px rgba(12, 219, 182, 0.5), 0 0 60px 10px rgba(6, 219, 238, 0.25)"}}),z.jsx("div",{className:"absolute inset-0",style:{animation:"shimmer 8s ease-in-out infinite alternate",opacity:.5,background:"radial-gradient(ellipse at center, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.2) 30%, rgba(255, 255, 255, 0) 60%)"}}),z.jsx("div",{className:"absolute inset-0",style:{opacity:.4,animation:"breathe 7s cubic-bezier(0.4, 0.0, 0.2, 1) infinite",background:"radial-gradient(circle at center, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 50%)"}})]})}),z.jsx("style",{children:"\n @keyframes shimmer {\n 0% {\n opacity: 0.4;\n transform: scale(0.98);\n }\n 50% {\n opacity: 0.6;\n }\n 100% {\n opacity: 0.4;\n transform: scale(1.02);\n }\n }\n \n @keyframes breathe {\n 0%, 100% {\n opacity: 0.3;\n transform: scale(0.96);\n }\n 50% {\n opacity: 0.5;\n transform: scale(1.04);\n }\n }\n "})]})},Dl=[{id:1,name:"Stock analysis on ",icon:"https://askjarvis.ai/img/stock2.svg"},{id:2,name:"Help me plan an adventure to ",icon:"https://askjarvis.ai/img/hiker.svg"},{id:3,name:"What are the latest news on ",icon:"https://askjarvis.ai/img/news.svg"}],Ll={exports:{}},Ml={};function Il(){if(Rl)return Ml;return Rl=1,Ml._=Ml._interop_require_default=function(t){return t&&t.__esModule?t:{default:t}},Ml}var Fl,zl={exports:{}},Bl={};function Vl(){return Fl||(Fl=1,function(t){function e(t){const e={};return t.forEach(((t,n)=>{void 0===e[n]?e[n]=t:Array.isArray(e[n])?e[n].push(t):e[n]=[e[n],t]})),e}function n(t){return"string"==typeof t||"number"==typeof t&&!isNaN(t)||"boolean"==typeof t?String(t):""}function r(t){const e=new URLSearchParams;return Object.entries(t).forEach((t=>{let[r,o]=t;Array.isArray(o)?o.forEach((t=>e.append(r,n(t)))):e.set(r,n(o))})),e}function o(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return n.forEach((e=>{Array.from(e.keys()).forEach((e=>t.delete(e))),e.forEach(((e,n)=>t.append(n,e)))})),t}Object.defineProperty(t,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(t,{assign:function(){return o},searchParamsToUrlQuery:function(){return e},urlQueryToSearchParams:function(){return r}})}(Bl)),Bl}var Ul,ql,$l={},Wl={};function Hl(){if(Ul)return Wl;function t(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,r=new WeakMap;return(t=function(t){return t?r:n})(e)}return Ul=1,Wl._=Wl._interop_require_wildcard=function(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=t(n);if(r&&r.has(e))return r.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=e[a]}o.default=e,r&&r.set(e,o);return o},Wl}function Gl(){return ql||(ql=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(t,{formatUrl:function(){return r},formatWithValidation:function(){return i},urlObjectKeys:function(){return o}});const e=Hl()._(Vl()),n=/https?|ftp|gopher|file/;function r(t){let{auth:r,hostname:o}=t,i=t.protocol||"",a=t.pathname||"",s=t.hash||"",c=t.query||"",l=!1;r=r?encodeURIComponent(r).replace(/%3A/i,":")+"@":"",t.host?l=r+t.host:o&&(l=r+(~o.indexOf(":")?"["+o+"]":o),t.port&&(l+=":"+t.port)),c&&"object"==typeof c&&(c=String(e.urlQueryToSearchParams(c)));let p=t.search||c&&"?"+c||"";return i&&!i.endsWith(":")&&(i+=":"),t.slashes||(!i||n.test(i))&&!1!==l?(l="//"+(l||""),a&&"/"!==a[0]&&(a="/"+a)):l||(l=""),s&&"#"!==s[0]&&(s="#"+s),p&&"?"!==p[0]&&(p="?"+p),a=a.replace(/[?#]/g,encodeURIComponent),p=p.replace("#","%23"),""+i+l+a+p+s}const o=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function i(t){return"development"===process.env.NODE_ENV&&null!==t&&"object"==typeof t&&Object.keys(t).forEach((t=>{o.includes(t)||console.warn("Unknown key passed via urlObject into url.format: "+t)})),r(t)}}($l)),$l}var Xl,Yl={};var Kl,Jl={};function Zl(){return Kl||(Kl=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(t,{DecodeError:function(){return f},MiddlewareNotFoundError:function(){return v},MissingStaticPage:function(){return g},NormalizeError:function(){return m},PageNotFoundError:function(){return h},SP:function(){return u},ST:function(){return d},WEB_VITALS:function(){return e},execOnce:function(){return n},getDisplayName:function(){return s},getLocationOrigin:function(){return i},getURL:function(){return a},isAbsoluteUrl:function(){return o},isResSent:function(){return c},loadGetInitialProps:function(){return p},normalizeRepeatedSlashes:function(){return l},stringifyError:function(){return x}});const e=["CLS","FCP","FID","INP","LCP","TTFB"];function n(t){let e,n=!1;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n||(n=!0,e=t(...o)),e}}const r=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=t=>r.test(t);function i(){const{protocol:t,hostname:e,port:n}=window.location;return t+"//"+e+(n?":"+n:"")}function a(){const{href:t}=window.location,e=i();return t.substring(e.length)}function s(t){return"string"==typeof t?t:t.displayName||t.name||"Unknown"}function c(t){return t.finished||t.headersSent}function l(t){const e=t.split("?");return e[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(e[1]?"?"+e.slice(1).join("?"):"")}async function p(t,e){var n;if("production"!==process.env.NODE_ENV&&(null==(n=t.prototype)?void 0:n.getInitialProps)){const e='"'+s(t)+'.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';throw new Error(e)}const r=e.res||e.ctx&&e.ctx.res;if(!t.getInitialProps)return e.ctx&&e.Component?{pageProps:await p(e.Component,e.ctx)}:{};const o=await t.getInitialProps(e);if(r&&c(r))return o;if(!o){const e='"'+s(t)+'.getInitialProps()" should resolve to an object. But found "'+o+'" instead.';throw new Error(e)}return"production"!==process.env.NODE_ENV&&(0!==Object.keys(o).length||e.ctx||console.warn(s(t)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps")),o}const u="undefined"!=typeof performance,d=u&&["mark","measure","getEntriesByName"].every((t=>"function"==typeof performance[t]));class f extends Error{}class m extends Error{}class h extends Error{constructor(t){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+t}}class g extends Error{constructor(t,e){super(),this.message="Failed to load static file for page: "+t+" "+e}}class v extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function x(t){return JSON.stringify({message:t.message,stack:t.stack})}}(Jl)),Jl}var Ql,tp={exports:{}},ep={};function np(){return Ql||(Ql=1,function(t){function e(t){return t.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return e}})}(ep)),ep}var rp,op,ip={};function ap(){return rp||(rp=1,function(t){function e(t){const e=t.indexOf("#"),n=t.indexOf("?"),r=n>-1&&(e<0||n<e);return r||e>-1?{pathname:t.substring(0,r?n:e),query:r?t.substring(n,e>-1?e:void 0):"",hash:e>-1?t.slice(e):""}:{pathname:t,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return e}})}(ip)),ip}function sp(){return op||(op=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return o}});const n=np(),r=ap(),o=t=>{if(!t.startsWith("/")||process.env.__NEXT_MANUAL_TRAILING_SLASH)return t;const{pathname:e,query:o,hash:i}=(0,r.parsePath)(t);return process.env.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(e)?""+(0,n.removeTrailingSlash)(e)+o+i:e.endsWith("/")?""+e+o+i:e+"/"+o+i:""+(0,n.removeTrailingSlash)(e)+o+i};("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(tp,tp.exports)),tp.exports}var cp,lp,pp,up={},dp={exports:{}},fp={};function mp(){return cp||(cp=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return n}});const e=ap();function n(t,n){if("string"!=typeof t)return!1;const{pathname:r}=(0,e.parsePath)(t);return r===n||r.startsWith(n+"/")}}(fp)),fp}function hp(){return pp||(pp=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return r}});const e=Zl(),n=(lp||(lp=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"hasBasePath",{enumerable:!0,get:function(){return o}});const n=mp(),r=process.env.__NEXT_ROUTER_BASEPATH||"";function o(t){return(0,n.pathHasPrefix)(t,r)}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(dp,dp.exports)),dp.exports);function r(t){if(!(0,e.isAbsoluteUrl)(t))return!0;try{const r=(0,e.getLocationOrigin)(),o=new URL(t,r);return o.origin===r&&(0,n.hasBasePath)(o.pathname)}catch(t){return!1}}}(up)),up}var gp,vp={},xp={};var yp,bp={},wp={},kp={},jp={};var Ep,Sp,_p,Pp,Op,Cp={};function Tp(){return Sp||(Sp=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(t,{normalizeAppPath:function(){return r},normalizeRscURL:function(){return o}});const e=(yp||(yp=1,function(t){function e(t){return t.startsWith("/")?t:"/"+t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return e}})}(jp)),jp),n=(Ep||(Ep=1,function(t){function e(t){return"("===t[0]&&t.endsWith(")")}Object.defineProperty(t,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(t,{DEFAULT_SEGMENT_KEY:function(){return r},PAGE_SEGMENT_KEY:function(){return n},isGroupSegment:function(){return e}});const n="__PAGE__",r="__DEFAULT__"}(Cp)),Cp);function r(t){return(0,e.ensureLeadingSlash)(t.split("/").reduce(((t,e,r,o)=>e?(0,n.isGroupSegment)(e)||"@"===e[0]?t:"page"!==e&&"route"!==e||r!==o.length-1?t+"/"+e:t:t),""))}function o(t){return t.replace(/\.rsc($|\?)/,"$1")}}(kp)),kp}function Ap(){return _p||(_p=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return n},extractInterceptionRouteInformation:function(){return o},isInterceptionRouteAppPath:function(){return r}});const e=Tp(),n=["(..)(..)","(.)","(..)","(...)"];function r(t){return void 0!==t.split("/").find((t=>n.find((e=>t.startsWith(e)))))}function o(t){let r,o,i;for(const e of t.split("/"))if(o=n.find((t=>e.startsWith(t))),o){[r,i]=t.split(o,2);break}if(!r||!o||!i)throw new Error(`Invalid interception route: ${t}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(r=(0,e.normalizeAppPath)(r),o){case"(.)":i="/"===r?`/${i}`:r+"/"+i;break;case"(..)":if("/"===r)throw new Error(`Invalid interception route: ${t}. Cannot use (..) marker at the root level, use (.) instead.`);i=r.split("/").slice(0,-1).concat(i).join("/");break;case"(...)":i="/"+i;break;case"(..)(..)":const e=r.split("/");if(e.length<=2)throw new Error(`Invalid interception route: ${t}. Cannot use (..)(..) marker at the root level or one level up.`);i=e.slice(0,-2).concat(i).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:r,interceptedRoute:i}}}(wp)),wp}function Rp(){return Op||(Op=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(t,{getSortedRoutes:function(){return e.getSortedRoutes},isDynamicRoute:function(){return n.isDynamicRoute}});const e=(gp||(gp=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return n}});class e{insert(t){this._insert(t.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(t){void 0===t&&(t="/");const e=[...this.children.keys()].sort();null!==this.slugName&&e.splice(e.indexOf("[]"),1),null!==this.restSlugName&&e.splice(e.indexOf("[...]"),1),null!==this.optionalRestSlugName&&e.splice(e.indexOf("[[...]]"),1);const n=e.map((e=>this.children.get(e)._smoosh(""+t+e+"/"))).reduce(((t,e)=>[...t,...e]),[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh(t+"["+this.slugName+"]/")),!this.placeholder){const e="/"===t?"/":t.slice(0,-1);if(null!=this.optionalRestSlugName)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+e+'" and "'+e+"[[..."+this.optionalRestSlugName+']]").');n.unshift(e)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(t+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(t+"[[..."+this.optionalRestSlugName+"]]/")),n}_insert(t,n,r){if(0===t.length)return void(this.placeholder=!1);if(r)throw new Error("Catch-all must be the last part of the URL.");let o=t[0];if(o.startsWith("[")&&o.endsWith("]")){let i=o.slice(1,-1),a=!1;if(i.startsWith("[")&&i.endsWith("]")&&(i=i.slice(1,-1),a=!0),i.startsWith("...")&&(i=i.substring(3),r=!0),i.startsWith("[")||i.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+i+"').");if(i.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+i+"').");function s(t,e){if(null!==t&&t!==e)throw new Error("You cannot use different slug names for the same dynamic path ('"+t+"' !== '"+e+"').");n.forEach((t=>{if(t===e)throw new Error('You cannot have the same slug name "'+e+'" repeat within a single dynamic path');if(t.replace(/\W/g,"")===o.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+t+'" and "'+e+'" differ only by non-word symbols within a single dynamic path')})),n.push(e)}if(r)if(a){if(null!=this.restSlugName)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+t[0]+'" ).');s(this.optionalRestSlugName,i),this.optionalRestSlugName=i,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+t[0]+'").');s(this.restSlugName,i),this.restSlugName=i,o="[...]"}else{if(a)throw new Error('Optional route parameters are not yet supported ("'+t[0]+'").');s(this.slugName,i),this.slugName=i,o="[]"}}this.children.has(o)||this.children.set(o,new e),this.children.get(o)._insert(t.slice(1),n,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(t){const n=new e;return t.forEach((t=>n.insert(t))),n.smoosh()}}(xp)),xp),n=(Pp||(Pp=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return r}});const e=Ap(),n=/\/\[[^/]+?\](?=\/|$)/;function r(t){return(0,e.isInterceptionRouteAppPath)(t)&&(t=(0,e.extractInterceptionRouteInformation)(t).interceptedRoute),n.test(t)}}(bp)),bp)}(vp)),vp}var Np,Dp={},Lp={};var Mp,Ip={},Fp={};var zp,Bp,Vp,Up,qp={};function $p(){return Bp||(Bp=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(t,{getNamedMiddlewareRegex:function(){return u},getNamedRouteRegex:function(){return p},getRouteRegex:function(){return s},parseParameter:function(){return i}});const e=(Mp||(Mp=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(t,{ACTION_SUFFIX:function(){return s},APP_DIR_ALIAS:function(){return _},CACHE_ONE_YEAR:function(){return y},DOT_NEXT_ALIAS:function(){return E},ESLINT_DEFAULT_DIRS:function(){return $},GSP_NO_RETURNED_VALUE:function(){return F},GSSP_COMPONENT_MEMBER_ERROR:function(){return V},GSSP_NO_RETURNED_VALUE:function(){return z},INSTRUMENTATION_HOOK_FILENAME:function(){return k},MIDDLEWARE_FILENAME:function(){return b},MIDDLEWARE_LOCATION_REGEXP:function(){return w},NEXT_BODY_SUFFIX:function(){return p},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return x},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return f},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return m},NEXT_CACHE_SOFT_TAGS_HEADER:function(){return d},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return v},NEXT_CACHE_TAGS_HEADER:function(){return u},NEXT_CACHE_TAG_MAX_ITEMS:function(){return h},NEXT_CACHE_TAG_MAX_LENGTH:function(){return g},NEXT_DATA_SUFFIX:function(){return c},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return n},NEXT_META_SUFFIX:function(){return l},NEXT_QUERY_PARAM_PREFIX:function(){return e},NON_STANDARD_NODE_ENV:function(){return U},PAGES_DIR_ALIAS:function(){return j},PRERENDER_REVALIDATE_HEADER:function(){return r},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return o},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return R},ROOT_DIR_ALIAS:function(){return S},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return A},RSC_ACTION_ENCRYPTION_ALIAS:function(){return T},RSC_ACTION_PROXY_ALIAS:function(){return C},RSC_ACTION_VALIDATE_ALIAS:function(){return O},RSC_MOD_REF_PROXY_ALIAS:function(){return P},RSC_PREFETCH_SUFFIX:function(){return i},RSC_SUFFIX:function(){return a},SERVER_PROPS_EXPORT_ERROR:function(){return I},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return D},SERVER_PROPS_SSG_CONFLICT:function(){return L},SERVER_RUNTIME:function(){return W},SSG_FALLBACK_EXPORT_ERROR:function(){return q},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return N},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return M},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return B},WEBPACK_LAYERS:function(){return G},WEBPACK_RESOURCE_QUERIES:function(){return X}});const e="nxtP",n="nxtI",r="x-prerender-revalidate",o="x-prerender-revalidate-if-generated",i=".prefetch.rsc",a=".rsc",s=".action",c=".json",l=".meta",p=".body",u="x-next-cache-tags",d="x-next-cache-soft-tags",f="x-next-revalidated-tags",m="x-next-revalidate-tag-token",h=128,g=256,v=1024,x="_N_T_",y=31536e3,b="middleware",w=`(?:src/)?${b}`,k="instrumentation",j="private-next-pages",E="private-dot-next",S="private-next-root-dir",_="private-next-app-dir",P="private-next-rsc-mod-ref-proxy",O="private-next-rsc-action-validate",C="private-next-rsc-server-reference",T="private-next-rsc-action-encryption",A="private-next-rsc-action-client-wrapper",R="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",N="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",D="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",L="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",M="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",I="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",F="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",z="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",B="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",V="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",U='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',q="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",$=["app","pages","components","lib","src"],W={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},H={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",api:"api",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",appMetadataRoute:"app-metadata-route",appRouteHandler:"app-route-handler"},G={...H,GROUP:{serverOnly:[H.reactServerComponents,H.actionBrowser,H.appMetadataRoute,H.appRouteHandler,H.instrument],clientOnly:[H.serverSideRendering,H.appPagesBrowser],nonClientServerTarget:[H.middleware,H.api],app:[H.reactServerComponents,H.actionBrowser,H.appMetadataRoute,H.appRouteHandler,H.serverSideRendering,H.appPagesBrowser,H.shared,H.instrument]}},X={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}}(Fp)),Fp),n=Ap(),r=(zp||(zp=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return r}});const e=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function r(t){return e.test(t)?t.replace(n,"\\$&"):t}}(qp)),qp),o=np();function i(t){const e=t.startsWith("[")&&t.endsWith("]");e&&(t=t.slice(1,-1));const n=t.startsWith("...");return n&&(t=t.slice(3)),{key:t,repeat:n,optional:e}}function a(t){const e=(0,o.removeTrailingSlash)(t).slice(1).split("/"),a={};let s=1;return{parameterizedRoute:e.map((t=>{const e=n.INTERCEPTION_ROUTE_MARKERS.find((e=>t.startsWith(e))),o=t.match(/\[((?:\[.*\])|.+)\]/);if(e&&o){const{key:t,optional:n,repeat:c}=i(o[1]);return a[t]={pos:s++,repeat:c,optional:n},"/"+(0,r.escapeStringRegexp)(e)+"([^/]+?)"}if(o){const{key:t,repeat:e,optional:n}=i(o[1]);return a[t]={pos:s++,repeat:e,optional:n},e?n?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}return"/"+(0,r.escapeStringRegexp)(t)})).join(""),groups:a}}function s(t){const{parameterizedRoute:e,groups:n}=a(t);return{re:new RegExp("^"+e+"(?:/)?$"),groups:n}}function c(t){let{interceptionMarker:e,getSafeRouteKey:n,segment:o,routeKeys:a,keyPrefix:s}=t;const{key:c,optional:l,repeat:p}=i(o);let u=c.replace(/\W/g,"");s&&(u=""+s+u);let d=!1;(0===u.length||u.length>30)&&(d=!0),isNaN(parseInt(u.slice(0,1)))||(d=!0),d&&(u=n()),a[u]=s?""+s+c:c;const f=e?(0,r.escapeStringRegexp)(e):"";return p?l?"(?:/"+f+"(?<"+u+">.+?))?":"/"+f+"(?<"+u+">.+?)":"/"+f+"(?<"+u+">[^/]+?)"}function l(t,i){const a=(0,o.removeTrailingSlash)(t).slice(1).split("/"),s=function(){let t=0;return()=>{let e="",n=++t;for(;n>0;)e+=String.fromCharCode(97+(n-1)%26),n=Math.floor((n-1)/26);return e}}(),l={};return{namedParameterizedRoute:a.map((t=>{const o=n.INTERCEPTION_ROUTE_MARKERS.some((e=>t.startsWith(e))),a=t.match(/\[((?:\[.*\])|.+)\]/);if(o&&a){const[n]=t.split(a[0]);return c({getSafeRouteKey:s,interceptionMarker:n,segment:a[1],routeKeys:l,keyPrefix:i?e.NEXT_INTERCEPTION_MARKER_PREFIX:void 0})}return a?c({getSafeRouteKey:s,segment:a[1],routeKeys:l,keyPrefix:i?e.NEXT_QUERY_PARAM_PREFIX:void 0}):"/"+(0,r.escapeStringRegexp)(t)})).join(""),routeKeys:l}}function p(t,e){const n=l(t,e);return{...s(t),namedRegex:"^"+n.namedParameterizedRoute+"(?:/)?$",routeKeys:n.routeKeys}}function u(t,e){const{parameterizedRoute:n}=a(t),{catchAll:r=!0}=e;if("/"===n){return{namedRegex:"^/"+(r?".*":"")+"$"}}const{namedParameterizedRoute:o}=l(t,!1);return{namedRegex:"^"+o+(r?"(?:(/.*)?)":"")+"$"}}}(Ip)),Ip}function Wp(){return Vp||(Vp=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return r}});const e=(Np||(Np=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return n}});const e=Zl();function n(t){let{re:n,groups:r}=t;return t=>{const o=n.exec(t);if(!o)return!1;const i=t=>{try{return decodeURIComponent(t)}catch(t){throw new e.DecodeError("failed to decode param")}},a={};return Object.keys(r).forEach((t=>{const e=r[t],n=o[e.pos];void 0!==n&&(a[t]=~n.indexOf("/")?n.split("/").map((t=>i(t))):e.repeat?[i(n)]:i(n))})),a}}}(Lp)),Lp),n=$p();function r(t,r,o){let i="";const a=(0,n.getRouteRegex)(t),s=a.groups,c=(r!==t?(0,e.getRouteMatcher)(a)(r):"")||o;i=t;const l=Object.keys(s);return l.every((t=>{let e=c[t]||"";const{repeat:n,optional:r}=s[t];let o="["+(n?"...":"")+t+"]";return r&&(o=(e?"":"/")+"["+o+"]"),n&&!Array.isArray(e)&&(e=[e]),(r||t in c)&&(i=i.replace(o,n?e.map((t=>encodeURIComponent(t))).join("/"):encodeURIComponent(e))||"/")}))||(i=""),{params:l,result:i}}}(Dp)),Dp}function Hp(){return Up||(Up=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"resolveHref",{enumerable:!0,get:function(){return p}});const n=Vl(),r=Gl(),o=(Xl||(Xl=1,function(t){function e(t,e){const n={};return Object.keys(t).forEach((r=>{e.includes(r)||(n[r]=t[r])})),n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return e}})}(Yl)),Yl),i=Zl(),a=sp(),s=hp(),c=Rp(),l=Wp();function p(t,e,p){let u,d="string"==typeof e?e:(0,r.formatWithValidation)(e);const f=d.match(/^[a-zA-Z]{1,}:\/\//),m=f?d.slice(f[0].length):d;if((m.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+d+"' passed to next/router in page: '"+t.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const e=(0,i.normalizeRepeatedSlashes)(m);d=(f?f[0]:"")+e}if(!(0,s.isLocalURL)(d))return p?[d]:d;try{u=new URL(d.startsWith("#")?t.asPath:t.pathname,"http://n")}catch(t){u=new URL("/","http://n")}try{const t=new URL(d,u);t.pathname=(0,a.normalizePathTrailingSlash)(t.pathname);let e="";if((0,c.isDynamicRoute)(t.pathname)&&t.searchParams&&p){const i=(0,n.searchParamsToUrlQuery)(t.searchParams),{result:a,params:s}=(0,l.interpolateAs)(t.pathname,t.pathname,i);a&&(e=(0,r.formatWithValidation)({pathname:a,hash:t.hash,query:(0,o.omit)(i,s)}))}const i=t.origin===u.origin?t.href.slice(t.origin.length):t.href;return p?[i,e||i]:i}catch(t){return p?[d]:d}}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(zl,zl.exports)),zl.exports}var Gp,Xp,Yp,Kp={exports:{}},Jp={},Zp={};function Qp(){return Gp||(Gp=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return n}});const e=ap();function n(t,n){if(!t.startsWith("/")||!n)return t;const{pathname:r,query:o,hash:i}=(0,e.parsePath)(t);return""+n+r+o+i}}(Zp)),Zp}function tu(){return Xp||(Xp=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}});const e=Qp(),n=mp();function r(t,r,o,i){if(!r||r===o)return t;const a=t.toLowerCase();if(!i){if((0,n.pathHasPrefix)(a,"/api"))return t;if((0,n.pathHasPrefix)(a,"/"+r.toLowerCase()))return t}return(0,e.addPathPrefix)(t,"/"+r)}}(Jp)),Jp}var eu,nu={};var ru,ou={};var iu,au,su={exports:{}},cu={exports:{}};function lu(){return au||(au=1,function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"useIntersection",{enumerable:!0,get:function(){return l}});const r=e,o=(iu||(iu=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{cancelIdleCallback:function(){return r},requestIdleCallback:function(){return n}});const n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(t){let e=Date.now();return self.setTimeout((function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})}),1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(t){return clearTimeout(t)};("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(cu,cu.exports)),cu.exports),i="function"==typeof IntersectionObserver,a=new Map,s=[];function c(t,e,n){const{id:r,observer:o,elements:i}=function(t){const e={root:t.root||null,margin:t.rootMargin||""},n=s.find((t=>t.root===e.root&&t.margin===e.margin));let r;if(n&&(r=a.get(n),r))return r;const o=new Map,i=new IntersectionObserver((t=>{t.forEach((t=>{const e=o.get(t.target),n=t.isIntersecting||t.intersectionRatio>0;e&&n&&e(n)}))}),t);return r={id:e,observer:i,elements:o},s.push(e),a.set(e,r),r}(n);return i.set(t,e),o.observe(t),function(){if(i.delete(t),o.unobserve(t),0===i.size){o.disconnect(),a.delete(r);const t=s.findIndex((t=>t.root===r.root&&t.margin===r.margin));t>-1&&s.splice(t,1)}}}function l(t){let{rootRef:e,rootMargin:n,disabled:a}=t;const s=a||!i,[l,p]=(0,r.useState)(!1),u=(0,r.useRef)(null),d=(0,r.useCallback)((t=>{u.current=t}),[]);(0,r.useEffect)((()=>{if(i){if(s||l)return;const t=u.current;if(t&&t.tagName){return c(t,(t=>t&&p(t)),{root:null==e?void 0:e.current,rootMargin:n})}}else if(!l){const t=(0,o.requestIdleCallback)((()=>p(!0)));return()=>(0,o.cancelIdleCallback)(t)}}),[s,n,e,l,u.current]);const f=(0,r.useCallback)((()=>{p(!1)}),[]);return[d,l,f]}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)}(su,su.exports)),su.exports}var pu,uu,du={exports:{}},fu={exports:{}},mu={};function hu(){return pu||(pu=1,function(t){function e(t,e){let n;const r=t.split("/");return(e||[]).some((e=>!(!r[1]||r[1].toLowerCase()!==e.toLowerCase())&&(n=e,r.splice(1,1),t=r.join("/")||"/",!0))),{pathname:t,detectedLocale:n}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return e}})}(mu)),mu}var gu,vu,xu,yu={exports:{}},bu={};function wu(){return gu||(gu=1,function(t){function e(t,e,n){if(t){n&&(n=n.toLowerCase());for(const i of t){var r,o;if(e===(null==(r=i.domain)?void 0:r.split(":",1)[0].toLowerCase())||n===i.defaultLocale.toLowerCase()||(null==(o=i.locales)?void 0:o.some((t=>t.toLowerCase()===n))))return i}}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return e}})}(bu)),bu}function ku(){return xu||(xu=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getDomainLocale",{enumerable:!0,get:function(){return o}});const n=sp(),r=process.env.__NEXT_ROUTER_BASEPATH||"";function o(t,e,o,i){if(process.env.__NEXT_I18N_SUPPORT){const a=(uu||(uu=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});const n=(t,e)=>process.env.__NEXT_I18N_SUPPORT?hu().normalizeLocalePath(t,e):{pathname:t,detectedLocale:void 0};("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(fu,fu.exports)),fu.exports).normalizeLocalePath,s=(vu||(vu=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return n}});const n=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(process.env.__NEXT_I18N_SUPPORT)return wu().detectDomainLocale(...e)};("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(yu,yu.exports)),yu.exports).detectDomainLocale,c=e||a(t,o).detectedLocale,l=s(i,void 0,c);if(l){const e="http"+(l.http?"":"s")+"://",o=c===l.defaultLocale?"":"/"+c;return""+e+l.domain+(0,n.normalizePathTrailingSlash)(""+r+o+t)}return!1}return!1}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(du,du.exports)),du.exports}var ju,Eu={exports:{}};var Su,_u,Pu,Ou,Cu={exports:{}};function Tu(){return _u||(_u=1,function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return w}});const r=Il(),o=F(),i=r._(e),a=Hp(),s=hp(),c=Gl(),l=Zl(),p=(Yp||(Yp=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return r}});const n=sp(),r=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];return process.env.__NEXT_I18N_SUPPORT?(0,n.normalizePathTrailingSlash)(tu().addLocale(t,...r)):t};("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(Kp,Kp.exports)),Kp.exports),u=(eu||(eu=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});const n=Il()._(e).default.createContext(null);"production"!==process.env.NODE_ENV&&(n.displayName="RouterContext")}(nu)),nu),d=(ru||(ru=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(t,{AppRouterContext:function(){return r},GlobalLayoutRouterContext:function(){return i},LayoutRouterContext:function(){return o},MissingSlotContext:function(){return s},TemplateContext:function(){return a}});const n=Il()._(e),r=n.default.createContext(null),o=n.default.createContext(null),i=n.default.createContext(null),a=n.default.createContext(null);"production"!==process.env.NODE_ENV&&(r.displayName="AppRouterContext",o.displayName="LayoutRouterContext",i.displayName="GlobalLayoutRouterContext",a.displayName="TemplateContext");const s=n.default.createContext(new Set)}(ou)),ou),f=lu(),m=ku(),h=(ju||(ju=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addBasePath",{enumerable:!0,get:function(){return i}});const n=Qp(),r=sp(),o=process.env.__NEXT_ROUTER_BASEPATH||"";function i(t,e){return(0,r.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!e?t:(0,n.addPathPrefix)(t,o))}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(Eu,Eu.exports)),Eu.exports),g=(Su||(Su=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{ACTION_FAST_REFRESH:function(){return s},ACTION_NAVIGATE:function(){return r},ACTION_PREFETCH:function(){return a},ACTION_REFRESH:function(){return n},ACTION_RESTORE:function(){return o},ACTION_SERVER_ACTION:function(){return c},ACTION_SERVER_PATCH:function(){return i},PrefetchCacheEntryStatus:function(){return p},PrefetchKind:function(){return l},isThenable:function(){return u}});const n="refresh",r="navigate",o="restore",i="server-patch",a="prefetch",s="fast-refresh",c="server-action";var l,p;function u(t){return t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof t.then}!function(t){t.AUTO="auto",t.FULL="full",t.TEMPORARY="temporary"}(l||(l={})),function(t){t.fresh="fresh",t.reusable="reusable",t.expired="expired",t.stale="stale"}(p||(p={})),("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}(Cu,Cu.exports)),Cu.exports),v=new Set;function x(t,e,n,r,o,i){if("undefined"==typeof window)return;if(!i&&!(0,s.isLocalURL)(e))return;if(!r.bypassPrefetchedCheck){const o=void 0!==r.locale?r.locale:"locale"in t?t.locale:void 0,i=e+"%"+n+"%"+o;if(v.has(i))return;v.add(i)}(async()=>i?t.prefetch(e,o):t.prefetch(e,n,r))().catch((t=>{if("production"!==process.env.NODE_ENV)throw t}))}function y(t){return"string"==typeof t?t:(0,c.formatUrl)(t)}const b=i.default.forwardRef((function(t,e){let n;const{href:r,as:c,children:v,prefetch:b=null,passHref:w,replace:k,shallow:j,scroll:E,locale:S,onClick:_,onMouseEnter:P,onTouchStart:O,legacyBehavior:C=!1,...T}=t;n=v,!C||"string"!=typeof n&&"number"!=typeof n||(n=(0,o.jsx)("a",{children:n}));const A=i.default.useContext(u.RouterContext),R=i.default.useContext(d.AppRouterContext),N=null!=A?A:R,D=!A,L=!1!==b,M=null===b?g.PrefetchKind.AUTO:g.PrefetchKind.FULL;if("production"!==process.env.NODE_ENV){function X(t){return new Error("Failed prop type: The prop `"+t.key+"` expects a "+t.expected+" in `<Link>`, but got `"+t.actual+"` instead."+("undefined"!=typeof window?"\nOpen your browser's console to view the Component stack trace.":""))}const Y={href:!0};Object.keys(Y).forEach((e=>{if("href"===e&&(null==t[e]||"string"!=typeof t[e]&&"object"!=typeof t[e]))throw X({key:e,expected:"`string` or `object`",actual:null===t[e]?"null":typeof t[e]})}));const K={as:!0,replace:!0,scroll:!0,shallow:!0,passHref:!0,prefetch:!0,locale:!0,onClick:!0,onMouseEnter:!0,onTouchStart:!0,legacyBehavior:!0};Object.keys(K).forEach((e=>{const n=typeof t[e];if("as"===e){if(t[e]&&"string"!==n&&"object"!==n)throw X({key:e,expected:"`string` or `object`",actual:n})}else if("locale"===e){if(t[e]&&"string"!==n)throw X({key:e,expected:"`string`",actual:n})}else if("onClick"===e||"onMouseEnter"===e||"onTouchStart"===e){if(t[e]&&"function"!==n)throw X({key:e,expected:"`function`",actual:n})}else if(("replace"===e||"scroll"===e||"shallow"===e||"passHref"===e||"prefetch"===e||"legacyBehavior"===e)&&null!=t[e]&&"boolean"!==n)throw X({key:e,expected:"`boolean`",actual:n})}));const J=i.default.useRef(!1);!t.prefetch||J.current||D||(J.current=!0,console.warn("Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://nextjs.org/docs/messages/prefetch-true-deprecated"))}if("production"!==process.env.NODE_ENV&&D&&!c){let Z;if("string"==typeof r?Z=r:"object"==typeof r&&"string"==typeof r.pathname&&(Z=r.pathname),Z){const Q=Z.split("/").some((t=>t.startsWith("[")&&t.endsWith("]")));if(Q)throw new Error("Dynamic href `"+Z+"` found in <Link> while using the `/app` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href")}}const{href:I,as:F}=i.default.useMemo((()=>{if(!A){const t=y(r);return{href:t,as:c?y(c):t}}const[t,e]=(0,a.resolveHref)(A,r,!0);return{href:t,as:c?(0,a.resolveHref)(A,c):e||t}}),[A,r,c]),z=i.default.useRef(I),B=i.default.useRef(F);let V;if(C)if("development"===process.env.NODE_ENV){_&&console.warn('"onClick" was passed to <Link> with `href` of `'+r+'` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link'),P&&console.warn('"onMouseEnter" was passed to <Link> with `href` of `'+r+'` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');try{V=i.default.Children.only(n)}catch(tt){if(!n)throw new Error("No children were passed to <Link> with `href` of `"+r+"` but one child is required https://nextjs.org/docs/messages/link-no-children");throw new Error("Multiple children were passed to <Link> with `href` of `"+r+"` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children"+("undefined"!=typeof window?" \nOpen your browser's console to view the Component stack trace.":""))}}else V=i.default.Children.only(n);else if("development"===process.env.NODE_ENV&&"a"===(null==n?void 0:n.type))throw new Error("Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.\nLearn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor");const U=C?V&&"object"==typeof V&&V.ref:e,[q,$,W]=(0,f.useIntersection)({rootMargin:"200px"}),H=i.default.useCallback((t=>{B.current===F&&z.current===I||(W(),B.current=F,z.current=I),q(t),U&&("function"==typeof U?U(t):"object"==typeof U&&(U.current=t))}),[F,U,I,W,q]);i.default.useEffect((()=>{"production"===process.env.NODE_ENV&&N&&$&&L&&x(N,I,F,{locale:S},{kind:M},D)}),[F,I,$,S,L,null==A?void 0:A.locale,N,D,M]);const G={ref:H,onClick(t){if("production"!==process.env.NODE_ENV&&!t)throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');C||"function"!=typeof _||_(t),C&&V.props&&"function"==typeof V.props.onClick&&V.props.onClick(t),N&&(t.defaultPrevented||function(t,e,n,r,o,a,c,l,p){const{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&(function(t){const e=t.currentTarget.getAttribute("target");return e&&"_self"!==e||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which}(t)||!p&&!(0,s.isLocalURL)(n)))return;t.preventDefault();const d=()=>{const t=null==c||c;"beforePopState"in e?e[o?"replace":"push"](n,r,{shallow:a,locale:l,scroll:t}):e[o?"replace":"push"](r||n,{scroll:t})};p?i.default.startTransition(d):d()}(t,N,I,F,k,j,E,S,D))},onMouseEnter(t){C||"function"!=typeof P||P(t),C&&V.props&&"function"==typeof V.props.onMouseEnter&&V.props.onMouseEnter(t),N&&(L&&"development"!==process.env.NODE_ENV||!D)&&x(N,I,F,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:M},D)},onTouchStart:process.env.__NEXT_LINK_NO_TOUCH_START?void 0:function(t){C||"function"!=typeof O||O(t),C&&V.props&&"function"==typeof V.props.onTouchStart&&V.props.onTouchStart(t),N&&(!L&&D||x(N,I,F,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:M},D))}};if((0,l.isAbsoluteUrl)(F))G.href=F;else if(!C||w||"a"===V.type&&!("href"in V.props)){const et=void 0!==S?S:null==A?void 0:A.locale,nt=(null==A?void 0:A.isLocaleDomain)&&(0,m.getDomainLocale)(F,et,null==A?void 0:A.locales,null==A?void 0:A.domainLocales);G.href=nt||(0,h.addBasePath)((0,p.addLocale)(F,et,null==A?void 0:A.defaultLocale))}return C?i.default.cloneElement(V,G):(0,o.jsx)("a",{...T,...G,children:n})})),w=b;("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)}(Ll,Ll.exports)),Ll.exports}var Au=T(Ou?Pu:(Ou=1,Pu=Tu()));function Ru(t,e){return function(){return t.apply(e,arguments)}}B("@keyframes gradientBG{0%{background-position:0 50%}50%{background-position:100% 50%}to{background-position:0 50%}}.tabs{display:flex;justify-content:space-around;margin-bottom:1rem}.tab-button{background:none;border:none;cursor:pointer;font-size:1rem;padding:.5rem 1rem;transition:all .3s ease-in-out}.tab-button:hover{opacity:.8}.tab-button.active{background-image:linear-gradient(90deg,#0cdbb6,#1fd0f0);border-radius:5px;color:#fff}.settings html{scroll-behavior:smooth}.settings body{animation:gradientBG 10s ease infinite;background-image:linear-gradient(45deg,#151a2d,#2d284d,#151a2d);background-size:200% 200%;color:#fff;font-family:Montserrat,sans-serif;line-height:1.6}.settings .landing{align-items:center;display:flex;height:50vh;justify-content:center;text-align:center}.settings .landing h1{font-size:3.5rem;font-weight:700;margin-bottom:2rem}.settings .landing p{font-size:1.5rem;font-weight:400;margin:auto auto 2rem;max-width:500px}.settings .container{background-color:hsla(0,0%,100%,.1);border-radius:12px;box-shadow:0 10px 25px rgba(0,0,0,.1);margin:auto;max-height:80vh;max-width:900px;overflow-y:auto;padding:20px;transition:all .3s ease-in-out}.settings .container:hover{box-shadow:0 15px 30px rgba(0,0,0,.2);transform:scale(1.01)}.settings .static-container{background-color:hsla(0,0%,100%,.1);border-radius:12px;margin:auto;max-height:80vh;max-width:900px;overflow-y:auto;padding:20px}.settings #output,.settings #reportContainer,.settings input,.settings select{background-color:rgba(0,0,0,.5);border:none;color:#fff;transition:all .3s ease-in-out}.settings input:focus,.settings input:hover,.settings select:focus,.settings select:hover{background-color:#333;border:1px solid hsla(0,0%,100%,.5);box-shadow:0 4px 8px rgba(0,0,0,.1);transition:all .3s ease-in-out}.settings .btn-primary{background:linear-gradient(90deg,#0062cc,#007bff);border:none;transition:all .3s ease-in-out}.settings .btn-secondary{background:linear-gradient(90deg,#6c757d,#6c757d);border:none;transition:all .3s ease-in-out}.settings .btn:hover{box-shadow:0 10px 20px rgba(0,0,0,.3);opacity:.8;transform:scale(1.1)}.settings .agent_question{color:#fff;font-size:1.2rem;font-weight:600;letter-spacing:.01em;margin-bottom:.2rem}.settings footer{background:linear-gradient(90deg,#151a2d,#111827);bottom:0;color:#fff;left:0;padding:10px 0;position:fixed;text-align:center;width:100%}.settings .margin-div{margin-bottom:20px;margin-top:20px;padding:10px}.settings .agent_response{background-color:#747d8c;border-radius:12px;margin:10px;padding:10px}.settings #output{font-family:Times New Roman,Times,Courier New,serif;height:150px;margin-bottom:10px;margin-top:10px;overflow:auto;padding:10px}.settings #reportContainer{background-color:hsla(0,0%,100%,.1);border:none;border-radius:12px;color:#fff;padding:10px;transition:all .3s ease-in-out}.settings .sayGoodbye{-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-image:linear-gradient(90deg,#9867f0,#ed4e50)}.settings .form-group{align-items:center;display:flex;margin-bottom:1rem;width:100%}.settings .form-group label{flex:1;margin-right:1rem}.settings .form-group input,.settings .form-group select{background-color:rgba(0,0,0,.5);border:1px solid hsla(0,0%,100%,.5);border-radius:.375rem;color:#fff;flex:2;padding:.5rem;transition:all .3s ease-in-out;width:100%}.settings .form-group input:focus,.settings .form-group input:hover,.settings .form-group select:focus,.settings .form-group select:hover{background-color:#333;border:1px solid hsla(0,0%,100%,.5);box-shadow:0 4px 8px rgba(0,0,0,.1);transition:all .3s ease-in-out}.report_settings_static{background-color:hsla(0,0%,100%,.1);border-radius:8px;padding:10px;width:100%}.form-control-static{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:rgba(0,0,0,.4);background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E\");background-position:right .7rem center;background-repeat:no-repeat;background-size:1em;border:1px solid hsla(0,0%,100%,.3);border-radius:.375rem;color:#fff;padding:.5rem;transition:all .2s ease-in-out;width:100%}.form-control-static:hover{border-color:rgba(20,184,166,.5);box-shadow:0 0 0 2px rgba(20,184,166,.1)}.form-control-static:focus{border-color:rgba(20,184,166,.8);box-shadow:0 0 0 3px rgba(20,184,166,.2);outline:none}.form-control-static option{background-color:#1f2937;color:#fff;padding:8px}.input-static{background-color:rgba(0,0,0,.4);border:1px solid hsla(0,0%,100%,.3);border-radius:.375rem;color:#fff;flex:1;font-size:.875rem;padding:.5rem .75rem}.button-static{background-color:#0d9488;border:1px solid transparent;border-radius:.375rem;color:#fff;font-weight:500;justify-content:center;padding:.5rem 1rem}.button-static,.domain-tag-static{align-items:center;display:inline-flex;font-size:.875rem}.domain-tag-static{background-color:#ede9fe;border-radius:9999px;margin-bottom:.75rem;margin-right:.5rem;padding:.25rem .75rem}.domain-text-static{color:#0d9488}.domain-button-static{align-items:center;background:none;border:none;color:#9f7aea;display:flex;margin-left:.5rem;padding:0}.modal-content .agent_question{color:#fff;display:block;font-weight:600;letter-spacing:.015em;margin-bottom:.2rem;position:relative}.modal-content .form-group{align-items:flex-start;display:flex;flex-direction:column;margin-bottom:1.5rem}.modal-content .form-group label{margin-bottom:.5rem;margin-right:0;width:100%}.modal-content .form-group input,.modal-content .form-group select{width:100%}");const{toString:Nu}=Object.prototype,{getPrototypeOf:Du}=Object,{iterator:Lu,toStringTag:Mu}=Symbol,Iu=(Fu=Object.create(null),t=>{const e=Nu.call(t);return Fu[e]||(Fu[e]=e.slice(8,-1).toLowerCase())});var Fu;const zu=t=>(t=t.toLowerCase(),e=>Iu(e)===t),Bu=t=>e=>typeof e===t,{isArray:Vu}=Array,Uu=Bu("undefined");const qu=zu("ArrayBuffer");const $u=Bu("string"),Wu=Bu("function"),Hu=Bu("number"),Gu=t=>null!==t&&"object"==typeof t,Xu=t=>{if("object"!==Iu(t))return!1;const e=Du(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Mu in t||Lu in t)},Yu=zu("Date"),Ku=zu("File"),Ju=zu("Blob"),Zu=zu("FileList"),Qu=zu("URLSearchParams"),[td,ed,nd,rd]=["ReadableStream","Request","Response","Headers"].map(zu);function od(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,o;if("object"!=typeof t&&(t=[t]),Vu(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),i=o.length;let a;for(r=0;r<i;r++)a=o[r],e.call(null,t[a],a,t)}}function id(t,e){e=e.toLowerCase();const n=Object.keys(t);let r,o=n.length;for(;o-- >0;)if(r=n[o],e===r.toLowerCase())return r;return null}const ad="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,sd=t=>!Uu(t)&&t!==ad;const cd=(ld="undefined"!=typeof Uint8Array&&Du(Uint8Array),t=>ld&&t instanceof ld);var ld;const pd=zu("HTMLFormElement"),ud=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),dd=zu("RegExp"),fd=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};od(n,((n,o)=>{let i;!1!==(i=e(n,o,t))&&(r[o]=i||n)})),Object.defineProperties(t,r)};const md=zu("AsyncFunction"),hd=(gd="function"==typeof setImmediate,vd=Wu(ad.postMessage),gd?setImmediate:vd?(xd=`axios@${Math.random()}`,yd=[],ad.addEventListener("message",(({source:t,data:e})=>{t===ad&&e===xd&&yd.length&&yd.shift()()}),!1),t=>{yd.push(t),ad.postMessage(xd,"*")}):t=>setTimeout(t));var gd,vd,xd,yd;const bd="undefined"!=typeof queueMicrotask?queueMicrotask.bind(ad):"undefined"!=typeof process&&process.nextTick||hd;var wd={isArray:Vu,isArrayBuffer:qu,isBuffer:function(t){return null!==t&&!Uu(t)&&null!==t.constructor&&!Uu(t.constructor)&&Wu(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||Wu(t.append)&&("formdata"===(e=Iu(t))||"object"===e&&Wu(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&qu(t.buffer),e},isString:$u,isNumber:Hu,isBoolean:t=>!0===t||!1===t,isObject:Gu,isPlainObject:Xu,isReadableStream:td,isRequest:ed,isResponse:nd,isHeaders:rd,isUndefined:Uu,isDate:Yu,isFile:Ku,isBlob:Ju,isRegExp:dd,isFunction:Wu,isStream:t=>Gu(t)&&Wu(t.pipe),isURLSearchParams:Qu,isTypedArray:cd,isFileList:Zu,forEach:od,merge:function t(){const{caseless:e}=sd(this)&&this||{},n={},r=(r,o)=>{const i=e&&id(n,o)||o;Xu(n[i])&&Xu(r)?n[i]=t(n[i],r):Xu(r)?n[i]=t({},r):Vu(r)?n[i]=r.slice():n[i]=r};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&od(arguments[t],r);return n},extend:(t,e,n,{allOwnKeys:r}={})=>(od(e,((e,r)=>{n&&Wu(e)?t[r]=Ru(e,n):t[r]=e}),{allOwnKeys:r}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,r)=>{let o,i,a;const s={};if(e=e||{},null==t)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)a=o[i],r&&!r(a,t,e)||s[a]||(e[a]=t[a],s[a]=!0);t=!1!==n&&Du(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:Iu,kindOfTest:zu,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return-1!==r&&r===n},toArray:t=>{if(!t)return null;if(Vu(t))return t;let e=t.length;if(!Hu(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[Lu]).call(t);let r;for(;(r=n.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const r=[];for(;null!==(n=t.exec(e));)r.push(n);return r},isHTMLForm:pd,hasOwnProperty:ud,hasOwnProp:ud,reduceDescriptors:fd,freezeMethods:t=>{fd(t,((e,n)=>{if(Wu(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=t[n];Wu(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(t,e)=>{const n={},r=t=>{t.forEach((t=>{n[t]=!0}))};return Vu(t)?r(t):r(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:id,global:ad,isContextDefined:sd,isSpecCompliantForm:function(t){return!!(t&&Wu(t.append)&&"FormData"===t[Mu]&&t[Lu])},toJSONObject:t=>{const e=new Array(10),n=(t,r)=>{if(Gu(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[r]=t;const o=Vu(t)?[]:{};return od(t,((t,e)=>{const i=n(t,r+1);!Uu(i)&&(o[e]=i)})),e[r]=void 0,o}}return t};return n(t,0)},isAsyncFn:md,isThenable:t=>t&&(Gu(t)||Wu(t))&&Wu(t.then)&&Wu(t.catch),setImmediate:hd,asap:bd,isIterable:t=>null!=t&&Wu(t[Lu])};function kd(t,e,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}wd.inherits(kd,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:wd.toJSONObject(this.config),code:this.code,status:this.status}}});const jd=kd.prototype,Ed={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{Ed[t]={value:t}})),Object.defineProperties(kd,Ed),Object.defineProperty(jd,"isAxiosError",{value:!0}),kd.from=(t,e,n,r,o,i)=>{const a=Object.create(jd);return wd.toFlatObject(t,a,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),kd.call(a,t.message,e,n,r,o),a.cause=t,a.name=t.name,i&&Object.assign(a,i),a};function Sd(t){return wd.isPlainObject(t)||wd.isArray(t)}function _d(t){return wd.endsWith(t,"[]")?t.slice(0,-2):t}function Pd(t,e,n){return t?t.concat(e).map((function(t,e){return t=_d(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}const Od=wd.toFlatObject(wd,{},null,(function(t){return/^is[A-Z]/.test(t)}));function Cd(t,e,n){if(!wd.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const r=(n=wd.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!wd.isUndefined(e[t])}))).metaTokens,o=n.visitor||l,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&wd.isSpecCompliantForm(e);if(!wd.isFunction(o))throw new TypeError("visitor must be a function");function c(t){if(null===t)return"";if(wd.isDate(t))return t.toISOString();if(!s&&wd.isBlob(t))throw new kd("Blob is not supported. Use a Buffer instead.");return wd.isArrayBuffer(t)||wd.isTypedArray(t)?s&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function l(t,n,o){let s=t;if(t&&!o&&"object"==typeof t)if(wd.endsWith(n,"{}"))n=r?n:n.slice(0,-2),t=JSON.stringify(t);else if(wd.isArray(t)&&function(t){return wd.isArray(t)&&!t.some(Sd)}(t)||(wd.isFileList(t)||wd.endsWith(n,"[]"))&&(s=wd.toArray(t)))return n=_d(n),s.forEach((function(t,r){!wd.isUndefined(t)&&null!==t&&e.append(!0===a?Pd([n],r,i):null===a?n:n+"[]",c(t))})),!1;return!!Sd(t)||(e.append(Pd(o,n,i),c(t)),!1)}const p=[],u=Object.assign(Od,{defaultVisitor:l,convertValue:c,isVisitable:Sd});if(!wd.isObject(t))throw new TypeError("data must be an object");return function t(n,r){if(!wd.isUndefined(n)){if(-1!==p.indexOf(n))throw Error("Circular reference detected in "+r.join("."));p.push(n),wd.forEach(n,(function(n,i){!0===(!(wd.isUndefined(n)||null===n)&&o.call(e,n,wd.isString(i)?i.trim():i,r,u))&&t(n,r?r.concat(i):[i])})),p.pop()}}(t),e}function Td(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function Ad(t,e){this._pairs=[],t&&Cd(t,this,e)}const Rd=Ad.prototype;function Nd(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Dd(t,e,n){if(!e)return t;const r=n&&n.encode||Nd;wd.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(e,n):wd.isURLSearchParams(e)?e.toString():new Ad(e,n).toString(r),i){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}Rd.append=function(t,e){this._pairs.push([t,e])},Rd.toString=function(t){const e=t?function(e){return t.call(this,e,Td)}:Td;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};var Ld=class{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){wd.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},Md={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Id={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ad,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Fd="undefined"!=typeof window&&"undefined"!=typeof document,zd="object"==typeof navigator&&navigator||void 0,Bd=Fd&&(!zd||["ReactNative","NativeScript","NS"].indexOf(zd.product)<0),Vd="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ud=Fd&&window.location.href||"http://localhost";var qd={...Object.freeze({__proto__:null,hasBrowserEnv:Fd,hasStandardBrowserWebWorkerEnv:Vd,hasStandardBrowserEnv:Bd,navigator:zd,origin:Ud}),...Id};function $d(t){function e(t,n,r,o){let i=t[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=t.length;if(i=!i&&wd.isArray(r)?r.length:i,s)return wd.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&wd.isObject(r[i])||(r[i]=[]);return e(t,n,r[i],o)&&wd.isArray(r[i])&&(r[i]=function(t){const e={},n=Object.keys(t);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],e[i]=t[i];return e}(r[i])),!a}if(wd.isFormData(t)&&wd.isFunction(t.entries)){const n={};return wd.forEachEntry(t,((t,r)=>{e(function(t){return wd.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),r,n,0)})),n}return null}const Wd={transitional:Md,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,o=wd.isObject(t);o&&wd.isHTMLForm(t)&&(t=new FormData(t));if(wd.isFormData(t))return r?JSON.stringify($d(t)):t;if(wd.isArrayBuffer(t)||wd.isBuffer(t)||wd.isStream(t)||wd.isFile(t)||wd.isBlob(t)||wd.isReadableStream(t))return t;if(wd.isArrayBufferView(t))return t.buffer;if(wd.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return Cd(t,new qd.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,r){return qd.isNode&&wd.isBuffer(t)?(this.append(e,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((i=wd.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return Cd(i?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||r?(e.setContentType("application/json",!1),function(t,e,n){if(wd.isString(t))try{return(e||JSON.parse)(t),wd.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||Wd.transitional,n=e&&e.forcedJSONParsing,r="json"===this.responseType;if(wd.isResponse(t)||wd.isReadableStream(t))return t;if(t&&wd.isString(t)&&(n&&!this.responseType||r)){const n=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(t){if(n){if("SyntaxError"===t.name)throw kd.from(t,kd.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:qd.classes.FormData,Blob:qd.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};wd.forEach(["delete","get","head","post","put","patch"],(t=>{Wd.headers[t]={}}));var Hd=Wd;const Gd=wd.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const Xd=Symbol("internals");function Yd(t){return t&&String(t).trim().toLowerCase()}function Kd(t){return!1===t||null==t?t:wd.isArray(t)?t.map(Kd):String(t)}function Jd(t,e,n,r,o){return wd.isFunction(r)?r.call(this,e,n):(o&&(e=n),wd.isString(e)?wd.isString(r)?-1!==e.indexOf(r):wd.isRegExp(r)?r.test(e):void 0:void 0)}class Zd{constructor(t){t&&this.set(t)}set(t,e,n){const r=this;function o(t,e,n){const o=Yd(e);if(!o)throw new Error("header name must be a non-empty string");const i=wd.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||e]=Kd(t))}const i=(t,e)=>wd.forEach(t,((t,n)=>o(t,n,e)));if(wd.isPlainObject(t)||t instanceof this.constructor)i(t,e);else if(wd.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))i((t=>{const e={};let n,r,o;return t&&t.split("\n").forEach((function(t){o=t.indexOf(":"),n=t.substring(0,o).trim().toLowerCase(),r=t.substring(o+1).trim(),!n||e[n]&&Gd[n]||("set-cookie"===n?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)})),e})(t),e);else if(wd.isObject(t)&&wd.isIterable(t)){let n,r,o={};for(const e of t){if(!wd.isArray(e))throw TypeError("Object iterator must return a key-value pair");o[r=e[0]]=(n=o[r])?wd.isArray(n)?[...n,e[1]]:[n,e[1]]:e[1]}i(o,e)}else null!=t&&o(e,t,n);return this}get(t,e){if(t=Yd(t)){const n=wd.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}(t);if(wd.isFunction(e))return e.call(this,t,n);if(wd.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Yd(t)){const n=wd.findKey(this,t);return!(!n||void 0===this[n]||e&&!Jd(0,this[n],n,e))}return!1}delete(t,e){const n=this;let r=!1;function o(t){if(t=Yd(t)){const o=wd.findKey(n,t);!o||e&&!Jd(0,n[o],o,e)||(delete n[o],r=!0)}}return wd.isArray(t)?t.forEach(o):o(t),r}clear(t){const e=Object.keys(this);let n=e.length,r=!1;for(;n--;){const o=e[n];t&&!Jd(0,this[o],o,t,!0)||(delete this[o],r=!0)}return r}normalize(t){const e=this,n={};return wd.forEach(this,((r,o)=>{const i=wd.findKey(n,o);if(i)return e[i]=Kd(r),void delete e[o];const a=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,n)=>e.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete e[o],e[a]=Kd(r),n[a]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return wd.forEach(this,((n,r)=>{null!=n&&!1!==n&&(e[r]=t&&wd.isArray(n)?n.join(", "):n)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach((t=>n.set(t))),n}static accessor(t){const e=(this[Xd]=this[Xd]={accessors:{}}).accessors,n=this.prototype;function r(t){const r=Yd(t);e[r]||(!function(t,e){const n=wd.toCamelCase(" "+e);["get","set","has"].forEach((r=>{Object.defineProperty(t,r+n,{value:function(t,n,o){return this[r].call(this,e,t,n,o)},configurable:!0})}))}(n,t),e[r]=!0)}return wd.isArray(t)?t.forEach(r):r(t),this}}Zd.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),wd.reduceDescriptors(Zd.prototype,(({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}})),wd.freezeMethods(Zd);var Qd=Zd;function tf(t,e){const n=this||Hd,r=e||n,o=Qd.from(r.headers);let i=r.data;return wd.forEach(t,(function(t){i=t.call(n,i,o.normalize(),e?e.status:void 0)})),o.normalize(),i}function ef(t){return!(!t||!t.__CANCEL__)}function nf(t,e,n){kd.call(this,null==t?"canceled":t,kd.ERR_CANCELED,e,n),this.name="CanceledError"}function rf(t,e,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(new kd("Request failed with status code "+n.status,[kd.ERR_BAD_REQUEST,kd.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}wd.inherits(nf,kd,{__CANCEL__:!0});const of=(t,e,n=3)=>{let r=0;const o=function(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o,i=0,a=0;return e=void 0!==e?e:1e3,function(s){const c=Date.now(),l=r[a];o||(o=c),n[i]=s,r[i]=c;let p=a,u=0;for(;p!==i;)u+=n[p++],p%=t;if(i=(i+1)%t,i===a&&(a=(a+1)%t),c-o<e)return;const d=l&&c-l;return d?Math.round(1e3*u/d):void 0}}(50,250);return function(t,e){let n,r,o=0,i=1e3/e;const a=(e,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),t.apply(null,e)};return[(...t)=>{const e=Date.now(),s=e-o;s>=i?a(t,e):(n=t,r||(r=setTimeout((()=>{r=null,a(n)}),i-s)))},()=>n&&a(n)]}((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,c=o(s);r=i;t({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&i<=a?(a-i)/c:void 0,event:n,lengthComputable:null!=a,[e?"download":"upload"]:!0})}),n)},af=(t,e)=>{const n=null!=t;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},sf=t=>(...e)=>wd.asap((()=>t(...e)));var cf=qd.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,qd.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(qd.origin),qd.navigator&&/(msie|trident)/i.test(qd.navigator.userAgent)):()=>!0,lf=qd.hasStandardBrowserEnv?{write(t,e,n,r,o,i){const a=[t+"="+encodeURIComponent(e)];wd.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),wd.isString(r)&&a.push("path="+r),wd.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function pf(t,e,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);return t&&(r||0==n)?function(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}const uf=t=>t instanceof Qd?{...t}:t;function df(t,e){e=e||{};const n={};function r(t,e,n,r){return wd.isPlainObject(t)&&wd.isPlainObject(e)?wd.merge.call({caseless:r},t,e):wd.isPlainObject(e)?wd.merge({},e):wd.isArray(e)?e.slice():e}function o(t,e,n,o){return wd.isUndefined(e)?wd.isUndefined(t)?void 0:r(void 0,t,0,o):r(t,e,0,o)}function i(t,e){if(!wd.isUndefined(e))return r(void 0,e)}function a(t,e){return wd.isUndefined(e)?wd.isUndefined(t)?void 0:r(void 0,t):r(void 0,e)}function s(n,o,i){return i in e?r(n,o):i in t?r(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(t,e,n)=>o(uf(t),uf(e),0,!0)};return wd.forEach(Object.keys(Object.assign({},t,e)),(function(r){const i=c[r]||o,a=i(t[r],e[r],r);wd.isUndefined(a)&&i!==s||(n[r]=a)})),n}var ff=t=>{const e=df({},t);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:c}=e;if(e.headers=s=Qd.from(s),e.url=Dd(pf(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),wd.isFormData(r))if(qd.hasStandardBrowserEnv||qd.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[t,...e]=n?n.split(";").map((t=>t.trim())).filter(Boolean):[];s.setContentType([t||"multipart/form-data",...e].join("; "))}if(qd.hasStandardBrowserEnv&&(o&&wd.isFunction(o)&&(o=o(e)),o||!1!==o&&cf(e.url))){const t=i&&a&&lf.read(a);t&&s.set(i,t)}return e};var mf="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,n){const r=ff(t);let o=r.data;const i=Qd.from(r.headers).normalize();let a,s,c,l,p,{responseType:u,onUploadProgress:d,onDownloadProgress:f}=r;function m(){l&&l(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let h=new XMLHttpRequest;function g(){if(!h)return;const r=Qd.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());rf((function(t){e(t),m()}),(function(t){n(t),m()}),{data:u&&"text"!==u&&"json"!==u?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:t,request:h}),h=null}h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout,"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(g)},h.onabort=function(){h&&(n(new kd("Request aborted",kd.ECONNABORTED,t,h)),h=null)},h.onerror=function(){n(new kd("Network Error",kd.ERR_NETWORK,t,h)),h=null},h.ontimeout=function(){let e=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||Md;r.timeoutErrorMessage&&(e=r.timeoutErrorMessage),n(new kd(e,o.clarifyTimeoutError?kd.ETIMEDOUT:kd.ECONNABORTED,t,h)),h=null},void 0===o&&i.setContentType(null),"setRequestHeader"in h&&wd.forEach(i.toJSON(),(function(t,e){h.setRequestHeader(e,t)})),wd.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),u&&"json"!==u&&(h.responseType=r.responseType),f&&([c,p]=of(f,!0),h.addEventListener("progress",c)),d&&h.upload&&([s,l]=of(d),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",l)),(r.cancelToken||r.signal)&&(a=e=>{h&&(n(!e||e.type?new nf(null,t,h):e),h.abort(),h=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const v=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(r.url);v&&-1===qd.protocols.indexOf(v)?n(new kd("Unsupported protocol "+v+":",kd.ERR_BAD_REQUEST,t)):h.send(o||null)}))};var hf=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let n,r=new AbortController;const o=function(t){if(!n){n=!0,a();const e=t instanceof Error?t:this.reason;r.abort(e instanceof kd?e:new nf(e instanceof Error?e.message:e))}};let i=e&&setTimeout((()=>{i=null,o(new kd(`timeout ${e} of ms exceeded`,kd.ETIMEDOUT))}),e);const a=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach((t=>{t.unsubscribe?t.unsubscribe(o):t.removeEventListener("abort",o)})),t=null)};t.forEach((t=>t.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=()=>wd.asap(a),s}};const gf=function*(t,e){let n=t.byteLength;if(!e||n<e)return void(yield t);let r,o=0;for(;o<n;)r=o+e,yield t.slice(o,r),o=r},vf=async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);const e=t.getReader();try{for(;;){const{done:t,value:n}=await e.read();if(t)break;yield n}}finally{await e.cancel()}},xf=(t,e,n,r)=>{const o=async function*(t,e){for await(const n of vf(t))yield*gf(n,e)}(t,e);let i,a=0,s=t=>{i||(i=!0,r&&r(t))};return new ReadableStream({async pull(t){try{const{done:e,value:r}=await o.next();if(e)return s(),void t.close();let i=r.byteLength;if(n){let t=a+=i;n(t)}t.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:t=>(s(t),o.return())},{highWaterMark:2})},yf="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,bf=yf&&"function"==typeof ReadableStream,wf=yf&&("function"==typeof TextEncoder?(kf=new TextEncoder,t=>kf.encode(t)):async t=>new Uint8Array(await new Response(t).arrayBuffer()));var kf;const jf=(t,...e)=>{try{return!!t(...e)}catch(t){return!1}},Ef=bf&&jf((()=>{let t=!1;const e=new Request(qd.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e})),Sf=bf&&jf((()=>wd.isReadableStream(new Response("").body))),_f={stream:Sf&&(t=>t.body)};var Pf;yf&&(Pf=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!_f[t]&&(_f[t]=wd.isFunction(Pf[t])?e=>e[t]():(e,n)=>{throw new kd(`Response type '${t}' is not supported`,kd.ERR_NOT_SUPPORT,n)})})));const Of=async(t,e)=>{const n=wd.toFiniteNumber(t.getContentLength());return null==n?(async t=>{if(null==t)return 0;if(wd.isBlob(t))return t.size;if(wd.isSpecCompliantForm(t)){const e=new Request(qd.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength}return wd.isArrayBufferView(t)||wd.isArrayBuffer(t)?t.byteLength:(wd.isURLSearchParams(t)&&(t+=""),wd.isString(t)?(await wf(t)).byteLength:void 0)})(e):n};const Cf={http:null,xhr:mf,fetch:yf&&(async t=>{let{url:e,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:c,responseType:l,headers:p,withCredentials:u="same-origin",fetchOptions:d}=ff(t);l=l?(l+"").toLowerCase():"text";let f,m=hf([o,i&&i.toAbortSignal()],a);const h=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let g;try{if(c&&Ef&&"get"!==n&&"head"!==n&&0!==(g=await Of(p,r))){let t,n=new Request(e,{method:"POST",body:r,duplex:"half"});if(wd.isFormData(r)&&(t=n.headers.get("content-type"))&&p.setContentType(t),n.body){const[t,e]=af(g,of(sf(c)));r=xf(n.body,65536,t,e)}}wd.isString(u)||(u=u?"include":"omit");const o="credentials"in Request.prototype;f=new Request(e,{...d,signal:m,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:o?u:void 0});let i=await fetch(f);const a=Sf&&("stream"===l||"response"===l);if(Sf&&(s||a&&h)){const t={};["status","statusText","headers"].forEach((e=>{t[e]=i[e]}));const e=wd.toFiniteNumber(i.headers.get("content-length")),[n,r]=s&&af(e,of(sf(s),!0))||[];i=new Response(xf(i.body,65536,n,(()=>{r&&r(),h&&h()})),t)}l=l||"text";let v=await _f[wd.findKey(_f,l)||"text"](i,t);return!a&&h&&h(),await new Promise(((e,n)=>{rf(e,n,{data:v,headers:Qd.from(i.headers),status:i.status,statusText:i.statusText,config:t,request:f})}))}catch(e){if(h&&h(),e&&"TypeError"===e.name&&/Load failed|fetch/i.test(e.message))throw Object.assign(new kd("Network Error",kd.ERR_NETWORK,t,f),{cause:e.cause||e});throw kd.from(e,e&&e.code,t,f)}})};wd.forEach(Cf,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));const Tf=t=>`- ${t}`,Af=t=>wd.isFunction(t)||null===t||!1===t;var Rf=t=>{t=wd.isArray(t)?t:[t];const{length:e}=t;let n,r;const o={};for(let i=0;i<e;i++){let e;if(n=t[i],r=n,!Af(n)&&(r=Cf[(e=String(n)).toLowerCase()],void 0===r))throw new kd(`Unknown adapter '${e}'`);if(r)break;o[e||"#"+i]=r}if(!r){const t=Object.entries(o).map((([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build")));throw new kd("There is no suitable adapter to dispatch the request "+(e?t.length>1?"since :\n"+t.map(Tf).join("\n"):" "+Tf(t[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function Nf(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new nf(null,t)}function Df(t){Nf(t),t.headers=Qd.from(t.headers),t.data=tf.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return Rf(t.adapter||Hd.adapter)(t).then((function(e){return Nf(t),e.data=tf.call(t,t.transformResponse,e),e.headers=Qd.from(e.headers),e}),(function(e){return ef(e)||(Nf(t),e&&e.response&&(e.response.data=tf.call(t,t.transformResponse,e.response),e.response.headers=Qd.from(e.response.headers))),Promise.reject(e)}))}const Lf="1.9.0",Mf={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{Mf[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const If={};Mf.transitional=function(t,e,n){function r(t,e){return"[Axios v1.9.0] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,o,i)=>{if(!1===t)throw new kd(r(o," has been removed"+(e?" in "+e:"")),kd.ERR_DEPRECATED);return e&&!If[o]&&(If[o]=!0,console.warn(r(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,o,i)}},Mf.spelling=function(t){return(e,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};var Ff={assertOptions:function(t,e,n){if("object"!=typeof t)throw new kd("options must be an object",kd.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const i=r[o],a=e[i];if(a){const e=t[i],n=void 0===e||a(e,i,t);if(!0!==n)throw new kd("option "+i+" must be "+n,kd.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new kd("Unknown option "+i,kd.ERR_BAD_OPTION)}},validators:Mf};const zf=Ff.validators;class Bf{constructor(t){this.defaults=t||{},this.interceptors={request:new Ld,response:new Ld}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const n=e.stack?e.stack.replace(/^.+\n/,""):"";try{t.stack?n&&!String(t.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+n):t.stack=n}catch(t){}}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=df(this.defaults,e);const{transitional:n,paramsSerializer:r,headers:o}=e;void 0!==n&&Ff.assertOptions(n,{silentJSONParsing:zf.transitional(zf.boolean),forcedJSONParsing:zf.transitional(zf.boolean),clarifyTimeoutError:zf.transitional(zf.boolean)},!1),null!=r&&(wd.isFunction(r)?e.paramsSerializer={serialize:r}:Ff.assertOptions(r,{encode:zf.function,serialize:zf.function},!0)),void 0!==e.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),Ff.assertOptions(e,{baseUrl:zf.spelling("baseURL"),withXsrfToken:zf.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let i=o&&wd.merge(o.common,o[e.method]);o&&wd.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete o[t]})),e.headers=Qd.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(s=s&&t.synchronous,a.unshift(t.fulfilled,t.rejected))}));const c=[];let l;this.interceptors.response.forEach((function(t){c.push(t.fulfilled,t.rejected)}));let p,u=0;if(!s){const t=[Df.bind(this),void 0];for(t.unshift.apply(t,a),t.push.apply(t,c),p=t.length,l=Promise.resolve(e);u<p;)l=l.then(t[u++],t[u++]);return l}p=a.length;let d=e;for(u=0;u<p;){const t=a[u++],e=a[u++];try{d=t(d)}catch(t){e.call(this,t);break}}try{l=Df.call(this,d)}catch(t){return Promise.reject(t)}for(u=0,p=c.length;u<p;)l=l.then(c[u++],c[u++]);return l}getUri(t){return Dd(pf((t=df(this.defaults,t)).baseURL,t.url,t.allowAbsoluteUrls),t.params,t.paramsSerializer)}}wd.forEach(["delete","get","head","options"],(function(t){Bf.prototype[t]=function(e,n){return this.request(df(n||{},{method:t,url:e,data:(n||{}).data}))}})),wd.forEach(["post","put","patch"],(function(t){function e(e){return function(n,r,o){return this.request(df(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Bf.prototype[t]=e(),Bf.prototype[t+"Form"]=e(!0)}));var Vf=Bf;class Uf{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const n=this;this.promise.then((t=>{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null})),this.promise.then=t=>{let e;const r=new Promise((t=>{n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t,r,o){n.reason||(n.reason=new nf(t,r,o),e(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=e=>{t.abort(e)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new Uf((function(e){t=e})),cancel:t}}}var qf=Uf;const $f={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries($f).forEach((([t,e])=>{$f[e]=t}));var Wf=$f;const Hf=function t(e){const n=new Vf(e),r=Ru(Vf.prototype.request,n);return wd.extend(r,Vf.prototype,n,{allOwnKeys:!0}),wd.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return t(df(e,n))},r}(Hd);Hf.Axios=Vf,Hf.CanceledError=nf,Hf.CancelToken=qf,Hf.isCancel=ef,Hf.VERSION=Lf,Hf.toFormData=Cd,Hf.AxiosError=kd,Hf.Cancel=Hf.CanceledError,Hf.all=function(t){return Promise.all(t)},Hf.spread=function(t){return function(e){return t.apply(null,e)}},Hf.isAxiosError=function(t){return wd.isObject(t)&&!0===t.isAxiosError},Hf.mergeConfig=df,Hf.AxiosHeaders=Qd,Hf.formToJSON=t=>$d(wd.isHTMLForm(t)?new FormData(t):t),Hf.getAdapter=Rf,Hf.HttpStatusCode=Wf,Hf.default=Hf;var Gf,Xf=Hf,Yf={exports:{}},Kf={exports:{}},Jf={};var Zf,Qf,tm,em,nm,rm,om,im,am,sm,cm,lm,pm,um,dm,fm={};
/** @license React v16.13.1
* react-is.development.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.
*/function mm(){return Qf||(Qf=1,"production"===process.env.NODE_ENV?Kf.exports=function(){if(Gf)return Jf;Gf=1;var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,p=t?Symbol.for("react.forward_ref"):60112,u=t?Symbol.for("react.suspense"):60113,d=t?Symbol.for("react.suspense_list"):60120,f=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,h=t?Symbol.for("react.block"):60121,g=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,x=t?Symbol.for("react.scope"):60119;function y(t){if("object"==typeof t&&null!==t){var d=t.$$typeof;switch(d){case e:switch(t=t.type){case c:case l:case r:case i:case o:case u:return t;default:switch(t=t&&t.$$typeof){case s:case p:case m:case f:case a:return t;default:return d}}case n:return d}}}function b(t){return y(t)===l}return Jf.AsyncMode=c,Jf.ConcurrentMode=l,Jf.ContextConsumer=s,Jf.ContextProvider=a,Jf.Element=e,Jf.ForwardRef=p,Jf.Fragment=r,Jf.Lazy=m,Jf.Memo=f,Jf.Portal=n,Jf.Profiler=i,Jf.StrictMode=o,Jf.Suspense=u,Jf.isAsyncMode=function(t){return b(t)||y(t)===c},Jf.isConcurrentMode=b,Jf.isContextConsumer=function(t){return y(t)===s},Jf.isContextProvider=function(t){return y(t)===a},Jf.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Jf.isForwardRef=function(t){return y(t)===p},Jf.isFragment=function(t){return y(t)===r},Jf.isLazy=function(t){return y(t)===m},Jf.isMemo=function(t){return y(t)===f},Jf.isPortal=function(t){return y(t)===n},Jf.isProfiler=function(t){return y(t)===i},Jf.isStrictMode=function(t){return y(t)===o},Jf.isSuspense=function(t){return y(t)===u},Jf.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===l||t===i||t===o||t===u||t===d||"object"==typeof t&&null!==t&&(t.$$typeof===m||t.$$typeof===f||t.$$typeof===a||t.$$typeof===s||t.$$typeof===p||t.$$typeof===g||t.$$typeof===v||t.$$typeof===x||t.$$typeof===h)},Jf.typeOf=y,Jf}():Kf.exports=(Zf||(Zf=1,"production"!==process.env.NODE_ENV&&function(){var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,p=t?Symbol.for("react.forward_ref"):60112,u=t?Symbol.for("react.suspense"):60113,d=t?Symbol.for("react.suspense_list"):60120,f=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,h=t?Symbol.for("react.block"):60121,g=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,x=t?Symbol.for("react.scope"):60119;function y(t){if("object"==typeof t&&null!==t){var d=t.$$typeof;switch(d){case e:var h=t.type;switch(h){case c:case l:case r:case i:case o:case u:return h;default:var g=h&&h.$$typeof;switch(g){case s:case p:case m:case f:case a:return g;default:return d}}case n:return d}}}var b=c,w=l,k=s,j=a,E=e,S=p,_=r,P=m,O=f,C=n,T=i,A=o,R=u,N=!1;function D(t){return y(t)===l}fm.AsyncMode=b,fm.ConcurrentMode=w,fm.ContextConsumer=k,fm.ContextProvider=j,fm.Element=E,fm.ForwardRef=S,fm.Fragment=_,fm.Lazy=P,fm.Memo=O,fm.Portal=C,fm.Profiler=T,fm.StrictMode=A,fm.Suspense=R,fm.isAsyncMode=function(t){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),D(t)||y(t)===c},fm.isConcurrentMode=D,fm.isContextConsumer=function(t){return y(t)===s},fm.isContextProvider=function(t){return y(t)===a},fm.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},fm.isForwardRef=function(t){return y(t)===p},fm.isFragment=function(t){return y(t)===r},fm.isLazy=function(t){return y(t)===m},fm.isMemo=function(t){return y(t)===f},fm.isPortal=function(t){return y(t)===n},fm.isProfiler=function(t){return y(t)===i},fm.isStrictMode=function(t){return y(t)===o},fm.isSuspense=function(t){return y(t)===u},fm.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===l||t===i||t===o||t===u||t===d||"object"==typeof t&&null!==t&&(t.$$typeof===m||t.$$typeof===f||t.$$typeof===a||t.$$typeof===s||t.$$typeof===p||t.$$typeof===g||t.$$typeof===v||t.$$typeof===x||t.$$typeof===h)},fm.typeOf=y}()),fm)),Kf.exports}
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/function hm(){if(em)return tm;em=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return tm=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(r,o){for(var i,a,s=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(r),c=1;c<arguments.length;c++){for(var l in i=Object(arguments[c]))e.call(i,l)&&(s[l]=i[l]);if(t){a=t(i);for(var p=0;p<a.length;p++)n.call(i,a[p])&&(s[a[p]]=i[a[p]])}}return s},tm}function gm(){if(rm)return nm;rm=1;return nm="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function vm(){return im?om:(im=1,om=Function.call.bind(Object.prototype.hasOwnProperty))}function xm(){if(sm)return am;sm=1;var t=function(){};if("production"!==process.env.NODE_ENV){var e=gm(),n={},r=vm();t=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function o(o,i,a,s,c){if("production"!==process.env.NODE_ENV)for(var l in o)if(r(o,l)){var p;try{if("function"!=typeof o[l]){var u=Error((s||"React class")+": "+a+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}p=o[l](i,l,s,a,null,e)}catch(t){p=t}if(!p||p instanceof Error||t((s||"React class")+": type specification of "+a+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var d=c?c():"";t("Failed "+a+" type: "+p.message+(null!=d?d:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},am=o}function ym(){if(lm)return cm;lm=1;var t=mm(),e=hm(),n=gm(),r=vm(),o=xm(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}),cm=function(s,c){var l="function"==typeof Symbol&&Symbol.iterator;var p="<<anonymous>>",u={array:h("array"),bigint:h("bigint"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:m(a),arrayOf:function(t){return m((function(e,r,o,i,a){if("function"!=typeof t)return new f("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var s=e[r];if(!Array.isArray(s))return new f("Invalid "+i+" `"+a+"` of type `"+x(s)+"` supplied to `"+o+"`, expected an array.");for(var c=0;c<s.length;c++){var l=t(s,c,o,i,a+"["+c+"]",n);if(l instanceof Error)return l}return null}))},element:m((function(t,e,n,r,o){var i=t[e];return s(i)?null:new f("Invalid "+r+" `"+o+"` of type `"+x(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:m((function(e,n,r,o,i){var a=e[n];return t.isValidElementType(a)?null:new f("Invalid "+o+" `"+i+"` of type `"+x(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(t){return m((function(e,n,r,o,i){if(!(e[n]instanceof t)){var a=t.name||p;return new f("Invalid "+o+" `"+i+"` of type `"+(((s=e[n]).constructor&&s.constructor.name?s.constructor.name:p)+"` supplied to `")+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:m((function(t,e,n,r,o){return v(t[e])?null:new f("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(t){return m((function(e,o,i,a,s){if("function"!=typeof t)return new f("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var c=e[o],l=x(c);if("object"!==l)return new f("Invalid "+a+" `"+s+"` of type `"+l+"` supplied to `"+i+"`, expected an object.");for(var p in c)if(r(c,p)){var u=t(c,p,i,a,s+"."+p,n);if(u instanceof Error)return u}return null}))},oneOf:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a;return m((function(e,n,r,o,i){for(var a=e[n],s=0;s<t.length;s++)if(d(a,t[s]))return null;var c=JSON.stringify(t,(function(t,e){return"symbol"===y(e)?String(e):e}));return new f("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+c+".")}))},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var e=0;e<t.length;e++){var o=t[e];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+b(o)+" at index "+e+"."),a}return m((function(e,o,i,a,s){for(var c=[],l=0;l<t.length;l++){var p=(0,t[l])(e,o,i,a,s,n);if(null==p)return null;p.data&&r(p.data,"expectedType")&&c.push(p.data.expectedType)}return new f("Invalid "+a+" `"+s+"` supplied to `"+i+"`"+(c.length>0?", expected one of type ["+c.join(", ")+"]":"")+".")}))},shape:function(t){return m((function(e,r,o,i,a){var s=e[r],c=x(s);if("object"!==c)return new f("Invalid "+i+" `"+a+"` of type `"+c+"` supplied to `"+o+"`, expected `object`.");for(var l in t){var p=t[l];if("function"!=typeof p)return g(o,i,a,l,y(p));var u=p(s,l,o,i,a+"."+l,n);if(u)return u}return null}))},exact:function(t){return m((function(o,i,a,s,c){var l=o[i],p=x(l);if("object"!==p)return new f("Invalid "+s+" `"+c+"` of type `"+p+"` supplied to `"+a+"`, expected `object`.");var u=e({},o[i],t);for(var d in u){var m=t[d];if(r(t,d)&&"function"!=typeof m)return g(a,s,c,d,y(m));if(!m)return new f("Invalid "+s+" `"+c+"` key `"+d+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var h=m(l,d,a,s,c+"."+d,n);if(h)return h}return null}))}};function d(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function f(t,e){this.message=t,this.data=e&&"object"==typeof e?e:{},this.stack=""}function m(t){if("production"!==process.env.NODE_ENV)var e={},r=0;function o(o,a,s,l,u,d,m){if(l=l||p,d=d||s,m!==n){if(c){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=l+":"+s;!e[g]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+l+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),e[g]=!0,r++)}}return null==a[s]?o?null===a[s]?new f("The "+u+" `"+d+"` is marked as required in `"+l+"`, but its value is `null`."):new f("The "+u+" `"+d+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:t(a,s,l,u,d)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function h(t){return m((function(e,n,r,o,i,a){var s=e[n];return x(s)!==t?new f("Invalid "+o+" `"+i+"` of type `"+y(s)+"` supplied to `"+r+"`, expected `"+t+"`.",{expectedType:t}):null}))}function g(t,e,n,r,o){return new f((t||"React class")+": "+e+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function v(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(v);if(null===t||s(t))return!0;var e=function(t){var e=t&&(l&&t[l]||t["@@iterator"]);if("function"==typeof e)return e}(t);if(!e)return!1;var n,r=e.call(t);if(e!==t.entries){for(;!(n=r.next()).done;)if(!v(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!v(o[1]))return!1}return!0;default:return!1}}function x(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function y(t){if(null==t)return""+t;var e=x(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function b(t){var e=y(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return f.prototype=Error.prototype,u.checkPropTypes=o,u.resetWarningCache=o.resetWarningCache,u.PropTypes=u,u},cm}function bm(){if(um)return pm;um=1;var t=gm();function e(){}function n(){}return n.resetWarningCache=e,pm=function(){function r(e,n,r,o,i,a){if(a!==t){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:e};return i.PropTypes=i,i}}function wm(){if(dm)return Yf.exports;if(dm=1,"production"!==process.env.NODE_ENV){var t=mm();Yf.exports=ym()(t.isElement,true)}else Yf.exports=bm()();return Yf.exports}var km=T(wm());const jm=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function Em(t,e,n){const r=function(t){const{name:e}=t;if(e&&-1!==e.lastIndexOf(".")&&!t.type){const n=e.split(".").pop().toLowerCase(),r=jm.get(n);r&&Object.defineProperty(t,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return t}(t),{webkitRelativePath:o}=t,i="string"==typeof e?e:"string"==typeof o&&o.length>0?o:`./${t.name}`;return"string"!=typeof r.path&&Sm(r,"path",i),void 0!==n&&Object.defineProperty(r,"handle",{value:n,writable:!1,configurable:!1,enumerable:!0}),Sm(r,"relativePath",i),r}function Sm(t,e,n){Object.defineProperty(t,e,{value:n,writable:!1,configurable:!1,enumerable:!0})}const _m=[".DS_Store","Thumbs.db"];function Pm(t){return"object"==typeof t&&null!==t}function Om(t){return t.filter((t=>-1===_m.indexOf(t.name)))}function Cm(t){if(null===t)return[];const e=[];for(let n=0;n<t.length;n++){const r=t[n];e.push(r)}return e}function Tm(t){if("function"!=typeof t.webkitGetAsEntry)return Rm(t);const e=t.webkitGetAsEntry();return e&&e.isDirectory?Dm(e):Rm(t,e)}function Am(t){return t.reduce(((t,e)=>[...t,...Array.isArray(e)?Am(e):[e]]),[])}function Rm(t,e){return P(this,void 0,void 0,(function*(){var n;if(globalThis.isSecureContext&&"function"==typeof t.getAsFileSystemHandle){const e=yield t.getAsFileSystemHandle();if(null===e)throw new Error(`${t} is not a File`);if(void 0!==e){const t=yield e.getFile();return t.handle=e,Em(t)}}const r=t.getAsFile();if(!r)throw new Error(`${t} is not a File`);return Em(r,null!==(n=null==e?void 0:e.fullPath)&&void 0!==n?n:void 0)}))}function Nm(t){return P(this,void 0,void 0,(function*(){return t.isDirectory?Dm(t):function(t){return P(this,void 0,void 0,(function*(){return new Promise(((e,n)=>{t.file((n=>{const r=Em(n,t.fullPath);e(r)}),(t=>{n(t)}))}))}))}(t)}))}function Dm(t){const e=t.createReader();return new Promise(((t,n)=>{const r=[];!function o(){e.readEntries((e=>P(this,void 0,void 0,(function*(){if(e.length){const t=Promise.all(e.map(Nm));r.push(t),o()}else try{const e=yield Promise.all(r);t(e)}catch(t){n(t)}}))),(t=>{n(t)}))}()}))}var Lm,Mm={};var Im=T((Lm||(Lm=1,Mm.__esModule=!0,Mm.default=function(t,e){if(t&&e){var n=Array.isArray(e)?e:e.split(",");if(0===n.length)return!0;var r=t.name||"",o=(t.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return n.some((function(t){var e=t.trim().toLowerCase();return"."===e.charAt(0)?r.toLowerCase().endsWith(e):e.endsWith("/*")?i===e.replace(/\/.*$/,""):o===e}))}return!0}),Mm));function Fm(t){return function(t){if(Array.isArray(t))return $m(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||qm(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Bm(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?zm(Object(n),!0).forEach((function(e){Vm(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zm(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Vm(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Um(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(t,e)||qm(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qm(t,e){if(t){if("string"==typeof t)return $m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$m(t,e):void 0}}function $m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Wm="function"==typeof Im?Im:Im.default,Hm=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(","),e=t.length>1?"one of ".concat(t.join(", ")):t[0];return{code:"file-invalid-type",message:"File type must be ".concat(e)}},Gm=function(t){return{code:"file-too-large",message:"File is larger than ".concat(t," ").concat(1===t?"byte":"bytes")}},Xm=function(t){return{code:"file-too-small",message:"File is smaller than ".concat(t," ").concat(1===t?"byte":"bytes")}},Ym={code:"too-many-files",message:"Too many files"};function Km(t,e){var n="application/x-moz-file"===t.type||Wm(t,e);return[n,n?null:Hm(e)]}function Jm(t,e,n){if(Zm(t.size))if(Zm(e)&&Zm(n)){if(t.size>n)return[!1,Gm(n)];if(t.size<e)return[!1,Xm(e)]}else{if(Zm(e)&&t.size<e)return[!1,Xm(e)];if(Zm(n)&&t.size>n)return[!1,Gm(n)]}return[!0,null]}function Zm(t){return null!=t}function Qm(t){return"function"==typeof t.isPropagationStopped?t.isPropagationStopped():void 0!==t.cancelBubble&&t.cancelBubble}function th(t){return t.dataTransfer?Array.prototype.some.call(t.dataTransfer.types,(function(t){return"Files"===t||"application/x-moz-file"===t})):!!t.target&&!!t.target.files}function eh(t){t.preventDefault()}function nh(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return e.some((function(e){return!Qm(t)&&e&&e.apply(void 0,[t].concat(r)),Qm(t)}))}}function rh(t){return"audio/*"===t||"video/*"===t||"image/*"===t||"text/*"===t||"application/*"===t||/\w+\/[-+.\w]+/g.test(t)}function oh(t){return/^.*\.[\w]+$/.test(t)}var ih=["children"],ah=["open"],sh=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],ch=["refKey","onChange","onClick"];function lh(t){return function(t){if(Array.isArray(t))return dh(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||uh(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ph(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(t,e)||uh(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uh(t,e){if(t){if("string"==typeof t)return dh(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dh(t,e):void 0}}function dh(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function fh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function mh(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?fh(Object(n),!0).forEach((function(e){hh(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fh(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function hh(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gh(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var vh=d((function(t,n){var r=t.children,o=bh(gh(t,ih)),i=o.open,a=gh(o,ah);return x(n,(function(){return{open:i}}),[i]),e.createElement(y,null,r(mh(mh({},a),{},{open:i})))}));vh.displayName="Dropzone";var xh={disabled:!1,getFilesFromEvent:function(t){return P(this,void 0,void 0,(function*(){return Pm(t)&&Pm(t.dataTransfer)?function(t,e){return P(this,void 0,void 0,(function*(){if(t.items){const n=Cm(t.items).filter((t=>"file"===t.kind));if("drop"!==e)return n;return Om(Am(yield Promise.all(n.map(Tm))))}return Om(Cm(t.files).map((t=>Em(t))))}))}(t.dataTransfer,t.type):function(t){return Pm(t)&&Pm(t.target)}(t)?function(t){return Cm(t.target.files).map((t=>Em(t)))}(t):Array.isArray(t)&&t.every((t=>"getFile"in t&&"function"==typeof t.getFile))?function(t){return P(this,void 0,void 0,(function*(){return(yield Promise.all(t.map((t=>t.getFile())))).map((t=>Em(t)))}))}(t):[]}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};vh.defaultProps=xh,vh.propTypes={children:km.func,accept:km.objectOf(km.arrayOf(km.string)),multiple:km.bool,preventDropOnDocument:km.bool,noClick:km.bool,noKeyboard:km.bool,noDrag:km.bool,noDragEventsBubbling:km.bool,minSize:km.number,maxSize:km.number,maxFiles:km.number,disabled:km.bool,getFilesFromEvent:km.func,onFileDialogCancel:km.func,onFileDialogOpen:km.func,useFsAccessApi:km.bool,autoFocus:km.bool,onDragEnter:km.func,onDragLeave:km.func,onDragOver:km.func,onDrop:km.func,onDropAccepted:km.func,onDropRejected:km.func,onError:km.func,validator:km.func};var yh={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function bh(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=mh(mh({},xh),t),n=e.accept,a=e.disabled,s=e.getFilesFromEvent,c=e.maxSize,l=e.minSize,p=e.multiple,d=e.maxFiles,f=e.onDragEnter,m=e.onDragLeave,h=e.onDragOver,g=e.onDrop,v=e.onDropAccepted,x=e.onDropRejected,y=e.onFileDialogCancel,w=e.onFileDialogOpen,k=e.useFsAccessApi,j=e.autoFocus,E=e.preventDropOnDocument,S=e.noClick,_=e.noKeyboard,P=e.noDrag,O=e.noDragEventsBubbling,C=e.onError,T=e.validator,A=u((function(){return function(t){if(Zm(t))return Object.entries(t).reduce((function(t,e){var n=Um(e,2),r=n[0],o=n[1];return[].concat(Fm(t),[r],Fm(o))}),[]).filter((function(t){return rh(t)||oh(t)})).join(",")}(n)}),[n]),R=u((function(){return function(t){if(Zm(t)){var e=Object.entries(t).filter((function(t){var e=Um(t,2),n=e[0],r=e[1],o=!0;return rh(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),o=!1),Array.isArray(r)&&r.every(oh)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o})).reduce((function(t,e){var n=Um(e,2),r=n[0],o=n[1];return Bm(Bm({},t),{},Vm({},r,o))}),{});return[{description:"Files",accept:e}]}return t}(n)}),[n]),N=u((function(){return"function"==typeof w?w:kh}),[w]),D=u((function(){return"function"==typeof y?y:kh}),[y]),L=r(null),M=r(null),I=ph(b(wh,yh),2),F=I[0],z=I[1],B=F.isFocused,V=F.isFileDialogActive,U=r("undefined"!=typeof window&&window.isSecureContext&&k&&"showOpenFilePicker"in window),q=function(){!U.current&&V&&setTimeout((function(){M.current&&(M.current.files.length||(z({type:"closeDialog"}),D()))}),300)};o((function(){return window.addEventListener("focus",q,!1),function(){window.removeEventListener("focus",q,!1)}}),[M,V,D,U]);var $=r([]),W=function(t){L.current&&L.current.contains(t.target)||(t.preventDefault(),$.current=[])};o((function(){return E&&(document.addEventListener("dragover",eh,!1),document.addEventListener("drop",W,!1)),function(){E&&(document.removeEventListener("dragover",eh),document.removeEventListener("drop",W))}}),[L,E]),o((function(){return!a&&j&&L.current&&L.current.focus(),function(){}}),[L,j,a]);var H=i((function(t){C?C(t):console.error(t)}),[C]),G=i((function(t){t.preventDefault(),t.persist(),at(t),$.current=[].concat(lh($.current),[t.target]),th(t)&&Promise.resolve(s(t)).then((function(e){if(!Qm(t)||O){var n=e.length,r=n>0&&function(t){var e=t.files,n=t.accept,r=t.minSize,o=t.maxSize,i=t.multiple,a=t.maxFiles,s=t.validator;return!(!i&&e.length>1||i&&a>=1&&e.length>a)&&e.every((function(t){var e=Um(Km(t,n),1)[0],i=Um(Jm(t,r,o),1)[0],a=s?s(t):null;return e&&i&&!a}))}({files:e,accept:A,minSize:l,maxSize:c,multiple:p,maxFiles:d,validator:T});z({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),f&&f(t)}})).catch((function(t){return H(t)}))}),[s,f,H,O,A,l,c,p,d,T]),X=i((function(t){t.preventDefault(),t.persist(),at(t);var e=th(t);if(e&&t.dataTransfer)try{t.dataTransfer.dropEffect="copy"}catch(t){}return e&&h&&h(t),!1}),[h,O]),Y=i((function(t){t.preventDefault(),t.persist(),at(t);var e=$.current.filter((function(t){return L.current&&L.current.contains(t)})),n=e.indexOf(t.target);-1!==n&&e.splice(n,1),$.current=e,e.length>0||(z({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),th(t)&&m&&m(t))}),[L,m,O]),K=i((function(t,e){var n=[],r=[];t.forEach((function(t){var e=ph(Km(t,A),2),o=e[0],i=e[1],a=ph(Jm(t,l,c),2),s=a[0],p=a[1],u=T?T(t):null;if(o&&s&&!u)n.push(t);else{var d=[i,p];u&&(d=d.concat(u)),r.push({file:t,errors:d.filter((function(t){return t}))})}})),(!p&&n.length>1||p&&d>=1&&n.length>d)&&(n.forEach((function(t){r.push({file:t,errors:[Ym]})})),n.splice(0)),z({acceptedFiles:n,fileRejections:r,isDragReject:r.length>0,type:"setFiles"}),g&&g(n,r,e),r.length>0&&x&&x(r,e),n.length>0&&v&&v(n,e)}),[z,p,A,l,c,d,g,v,x,T]),J=i((function(t){t.preventDefault(),t.persist(),at(t),$.current=[],th(t)&&Promise.resolve(s(t)).then((function(e){Qm(t)&&!O||K(e,t)})).catch((function(t){return H(t)})),z({type:"reset"})}),[s,K,H,O]),Z=i((function(){if(U.current){z({type:"openDialog"}),N();var t={multiple:p,types:R};window.showOpenFilePicker(t).then((function(t){return s(t)})).then((function(t){K(t,null),z({type:"closeDialog"})})).catch((function(t){var e;(e=t)instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)?(D(t),z({type:"closeDialog"})):!function(t){return t instanceof DOMException&&("SecurityError"===t.name||t.code===t.SECURITY_ERR)}(t)?H(t):(U.current=!1,M.current?(M.current.value=null,M.current.click()):H(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided.")))}))}else M.current&&(z({type:"openDialog"}),N(),M.current.value=null,M.current.click())}),[z,N,D,k,K,H,R,p]),Q=i((function(t){L.current&&L.current.isEqualNode(t.target)&&(" "!==t.key&&"Enter"!==t.key&&32!==t.keyCode&&13!==t.keyCode||(t.preventDefault(),Z()))}),[L,Z]),tt=i((function(){z({type:"focus"})}),[]),et=i((function(){z({type:"blur"})}),[]),nt=i((function(){S||(!function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(t){return-1!==t.indexOf("MSIE")||-1!==t.indexOf("Trident/")}(t)||function(t){return-1!==t.indexOf("Edge/")}(t)}()?Z():setTimeout(Z,0))}),[S,Z]),rt=function(t){return a?null:t},ot=function(t){return _?null:rt(t)},it=function(t){return P?null:rt(t)},at=function(t){O&&t.stopPropagation()},st=u((function(){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.refKey,n=void 0===e?"ref":e,r=t.role,o=t.onKeyDown,i=t.onFocus,s=t.onBlur,c=t.onClick,l=t.onDragEnter,p=t.onDragOver,u=t.onDragLeave,d=t.onDrop,f=gh(t,sh);return mh(mh(hh({onKeyDown:ot(nh(o,Q)),onFocus:ot(nh(i,tt)),onBlur:ot(nh(s,et)),onClick:rt(nh(c,nt)),onDragEnter:it(nh(l,G)),onDragOver:it(nh(p,X)),onDragLeave:it(nh(u,Y)),onDrop:it(nh(d,J)),role:"string"==typeof r&&""!==r?r:"presentation"},n,L),a||_?{}:{tabIndex:0}),f)}}),[L,Q,tt,et,nt,G,X,Y,J,_,P,a]),ct=i((function(t){t.stopPropagation()}),[]),lt=u((function(){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.refKey,n=void 0===e?"ref":e,r=t.onChange,o=t.onClick,i=gh(t,ch);return mh(mh({},hh({accept:A,multiple:p,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:rt(nh(r,J)),onClick:rt(nh(o,ct)),tabIndex:-1},n,M)),i)}}),[M,n,p,J,a]);return mh(mh({},F),{},{isFocused:B&&!a,getRootProps:st,getInputProps:lt,rootRef:L,inputRef:M,open:rt(Z)})}function wh(t,e){switch(e.type){case"focus":return mh(mh({},t),{},{isFocused:!0});case"blur":return mh(mh({},t),{},{isFocused:!1});case"openDialog":return mh(mh({},yh),{},{isFileDialogActive:!0});case"closeDialog":return mh(mh({},t),{},{isFileDialogActive:!1});case"setDraggedFiles":return mh(mh({},t),{},{isDragActive:e.isDragActive,isDragAccept:e.isDragAccept,isDragReject:e.isDragReject});case"setFiles":return mh(mh({},t),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections,isDragReject:e.isDragReject});case"reset":return mh({},yh);default:return t}}function kh(){}var jh=function(){var t=n([]),e=t[0],r=t[1],a=V(),s=i((function(){return P(void 0,void 0,void 0,(function(){var t,e;return O(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,Xf.get("".concat(a,"/files/"))];case 1:return t=n.sent(),r(t.data.files),[3,3];case 2:return e=n.sent(),console.error("Error fetching files:",e),[3,3];case 3:return[2]}}))}))}),[a]);o((function(){s()}),[s]);var c=bh({onDrop:function(t){return P(void 0,void 0,void 0,(function(){var e,n;return O(this,(function(r){switch(r.label){case 0:e=new FormData,t.forEach((function(t){e.append("file",t)})),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,Xf.post("".concat(a,"/upload/"),e,{headers:{"Content-Type":"multipart/form-data"}})];case 2:return r.sent(),s(),[3,4];case 3:return n=r.sent(),console.error("Error uploading files:",n),[3,4];case 4:return[2]}}))}))}}),l=c.getRootProps,p=c.getInputProps;return z.jsxs("div",{className:"mb-4 w-full",children:[z.jsxs("div",_({},l(),{style:{border:"2px dashed #cccccc",padding:"20px",textAlign:"center"},children:[z.jsx("input",_({},p())),z.jsx("p",{children:"Drag 'n' drop some files here, or click to select files"})]})),e.length>0&&z.jsxs(z.Fragment,{children:[z.jsx("h2",{className:"text-gray-900 mt-2 text-xl",children:"Uploaded Files"}),z.jsx("ul",{role:"list",className:"my-2 divide-y divide-gray-100",children:e.map((function(t){return z.jsxs("li",{className:"flex justify-between gap-x-6 py-1",children:[z.jsx("span",{className:"flex-1",children:t}),z.jsx("button",{onClick:function(e){var n;e.preventDefault(),n=t,P(void 0,void 0,void 0,(function(){var t;return O(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,Xf.delete("".concat(a,"/files/").concat(n))];case 1:return e.sent(),s(),[3,3];case 2:return t=e.sent(),console.error("Error deleting file:",t),[3,3];case 3:return[2]}}))}))},children:z.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-6",children:z.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})})})]},t)}))})]})]})};function Eh(t){var e=t.tone,n=t.onToneChange;return z.jsxs("div",{className:"form-group",children:[z.jsx("label",{htmlFor:"tone",className:"agent_question",children:"Tone "}),z.jsxs("select",{name:"tone",id:"tone",value:e,onChange:n,className:"form-control-static",required:!0,children:[z.jsx("option",{value:"Objective",children:"Objective - Impartial and unbiased presentation of facts and findings"}),z.jsx("option",{value:"Formal",children:"Formal - Adheres to academic standards with sophisticated language and structure"}),z.jsx("option",{value:"Analytical",children:"Analytical - Critical evaluation and detailed examination of data and theories"}),z.jsx("option",{value:"Persuasive",children:"Persuasive - Convincing the audience of a particular viewpoint or argument"}),z.jsx("option",{value:"Informative",children:"Informative - Providing clear and comprehensive information on a topic"}),z.jsx("option",{value:"Explanatory",children:"Explanatory - Clarifying complex concepts and processes"}),z.jsx("option",{value:"Descriptive",children:"Descriptive - Detailed depiction of phenomena, experiments, or case studies"}),z.jsx("option",{value:"Critical",children:"Critical - Judging the validity and relevance of the research and its conclusions"}),z.jsx("option",{value:"Comparative",children:"Comparative - Juxtaposing different theories, data, or methods to highlight differences and similarities"}),z.jsx("option",{value:"Speculative",children:"Speculative - Exploring hypotheses and potential implications or future research directions"}),z.jsx("option",{value:"Reflective",children:"Reflective - Considering the research process and personal insights or experiences"}),z.jsx("option",{value:"Narrative",children:"Narrative - Telling a story to illustrate research findings or methodologies"}),z.jsx("option",{value:"Humorous",children:"Humorous - Light-hearted and engaging, usually to make the content more relatable"}),z.jsx("option",{value:"Optimistic",children:"Optimistic - Highlighting positive findings and potential benefits"}),z.jsx("option",{value:"Pessimistic",children:"Pessimistic - Focusing on limitations, challenges, or negative outcomes"}),z.jsx("option",{value:"Simple",children:"Simple - Written for young readers, using basic vocabulary and clear explanations"}),z.jsx("option",{value:"Casual",children:"Casual - Conversational and relaxed style for easy, everyday reading"})]})]})}var Sh,_h={},Ph={},Oh={};var Ch,Th,Ah,Rh={};function Nh(){return Ch||(Ch=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=t||"";r&&(i=t.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,(function(t,n,r){return n>0&&n+t.length!==r.length&&t.search(e)>-1&&":"!==r.charAt(n-2)&&("-"!==r.charAt(n+t.length)||"-"===r.charAt(n-1))&&r.charAt(n-1).search(/[^\s-]/)<0?t.toLowerCase():t.substr(1).search(/[A-Z]|\../)>-1?t:t.charAt(0).toUpperCase()+t.substr(1)})));o&&(i=function(t){if(function(t){return"string"==typeof t&&-1!==t.indexOf("@")}(t))return console.warn("This arg looks like an email address, redacting."),n;return t}(i));return i};var e=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;var n="REDACTED (Potential Email Address)"}(Rh)),Rh}function Dh(){return Th||(Th=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.GA4=void 0;var e=a((Sh||(Sh=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r;"undefined"!=typeof window&&(void 0===window.gtag&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)}),(r=window).gtag.apply(r,e))};t.default=e}(Oh)),Oh)),n=a(Nh()),r=["eventCategory","eventAction","eventLabel","eventValue","hitType"],o=["title","location"],i=["page","hitType"];function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function l(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||f(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){g(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(t,e)||f(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){if(t){if("string"==typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(t,e):void 0}}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,v(r.key),r)}}function g(t,e,n){return(e=v(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function v(t){var e=function(t,e){if("object"!==c(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===c(e)?e:String(e)}var x=function(){function t(){var a=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),g(this,"reset",(function(){a.isInitialized=!1,a._testMode=!1,a._currentMeasurementId,a._hasLoadedGA=!1,a._isQueuing=!1,a._queueGtag=[]})),g(this,"_gtag",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];a._testMode||a._isQueuing?a._queueGtag.push(n):e.default.apply(void 0,n)})),g(this,"_loadGA",(function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"https://www.googletagmanager.com/gtag/js";if("undefined"!=typeof window&&"undefined"!=typeof document&&!a._hasLoadedGA){var r=document.createElement("script");r.async=!0,r.src="".concat(n,"?id=").concat(t),e&&r.setAttribute("nonce",e),document.body.appendChild(r),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},a._hasLoadedGA=!0}})),g(this,"_toGtagOptions",(function(t){if(t){var e={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"};return Object.entries(t).reduce((function(t,n){var r=d(n,2),o=r[0],i=r[1];return e[o]?t[e[o]]=i:t[o]=i,t}),{})}})),g(this,"initialize",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)throw new Error("Require GA_MEASUREMENT_ID");var n="string"==typeof t?[{trackingId:t}]:t;a._currentMeasurementId=n[0].trackingId;var r=e.gaOptions,o=e.gtagOptions,i=e.nonce,s=e.testMode,c=void 0!==s&&s,p=e.gtagUrl;if(a._testMode=c,c||a._loadGA(a._currentMeasurementId,i,p),a.isInitialized||(a._gtag("js",new Date),n.forEach((function(t){var e=u(u(u({},a._toGtagOptions(u(u({},r),t.gaOptions))),o),t.gtagOptions);Object.keys(e).length?a._gtag("config",t.trackingId,e):a._gtag("config",t.trackingId)}))),a.isInitialized=!0,!c){var d=l(a._queueGtag);for(a._queueGtag=[],a._isQueuing=!1;d.length;){var f=d.shift();a._gtag.apply(a,l(f)),"get"===f[0]&&(a._isQueuing=!0)}}})),g(this,"set",(function(t){t?"object"===c(t)?(0===Object.keys(t).length&&console.warn("empty `fieldsObject` given to .set()"),a._gaCommand("set",t)):console.warn("Expected `fieldsObject` arg to be an Object"):console.warn("`fieldsObject` is required in .set()")})),g(this,"_gaCommandSendEvent",(function(t,e,n,r,o){a._gtag("event",e,u(u({event_category:t,event_label:n,value:r},o&&{non_interaction:o.nonInteraction}),a._toGtagOptions(o)))})),g(this,"_gaCommandSendEventParameters",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if("string"==typeof e[0])a._gaCommandSendEvent.apply(a,l(e.slice(1)));else{var o=e[0],i=o.eventCategory,c=o.eventAction,p=o.eventLabel,u=o.eventValue;o.hitType;var d=s(o,r);a._gaCommandSendEvent(i,c,p,u,d)}})),g(this,"_gaCommandSendTiming",(function(t,e,n,r){a._gtag("event","timing_complete",{name:e,value:n,event_category:t,event_label:r})})),g(this,"_gaCommandSendPageview",(function(t,e){if(e&&Object.keys(e).length){var n=a._toGtagOptions(e),r=n.title,i=n.location,c=s(n,o);a._gtag("event","page_view",u(u(u(u({},t&&{page_path:t}),r&&{page_title:r}),i&&{page_location:i}),c))}else t?a._gtag("event","page_view",{page_path:t}):a._gtag("event","page_view")})),g(this,"_gaCommandSendPageviewParameters",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if("string"==typeof e[0])a._gaCommandSendPageview.apply(a,l(e.slice(1)));else{var r=e[0],o=r.page;r.hitType;var c=s(r,i);a._gaCommandSendPageview(o,c)}})),g(this,"_gaCommandSend",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r="string"==typeof e[0]?e[0]:e[0].hitType;switch(r){case"event":a._gaCommandSendEventParameters.apply(a,e);break;case"pageview":a._gaCommandSendPageviewParameters.apply(a,e);break;case"timing":a._gaCommandSendTiming.apply(a,l(e.slice(1)));break;case"screenview":case"transaction":case"item":case"social":case"exception":console.warn("Unsupported send command: ".concat(r));break;default:console.warn("Send command doesn't exist: ".concat(r))}})),g(this,"_gaCommandSet",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];"string"==typeof e[0]&&(e[0]=g({},e[0],e[1])),a._gtag("set",a._toGtagOptions(e[0]))})),g(this,"_gaCommand",(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];switch(t){case"send":a._gaCommandSend.apply(a,n);break;case"set":a._gaCommandSet.apply(a,n);break;default:console.warn("Command doesn't exist: ".concat(t))}})),g(this,"ga",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if("string"==typeof e[0])a._gaCommand.apply(a,e);else{var r=e[0];a._gtag("get",a._currentMeasurementId,"client_id",(function(t){a._isQueuing=!1;var e=a._queueGtag;for(r({get:function(e){return"clientId"===e?t:"trackingId"===e?a._currentMeasurementId:"apiVersion"===e?"1":void 0}});e.length;){var n=e.shift();a._gtag.apply(a,l(n))}})),a._isQueuing=!0}return a.ga})),g(this,"event",(function(t,e){if("string"==typeof t)a._gtag("event",t,a._toGtagOptions(e));else{var r=t.action,o=t.category,i=t.label,s=t.value,c=t.nonInteraction,l=t.transport;if(!o||!r)return void console.warn("args.category AND args.action are required in event()");var p={hitType:"event",eventCategory:(0,n.default)(o),eventAction:(0,n.default)(r)};i&&(p.eventLabel=(0,n.default)(i)),void 0!==s&&("number"!=typeof s?console.warn("Expected `args.value` arg to be a Number."):p.eventValue=s),void 0!==c&&("boolean"!=typeof c?console.warn("`args.nonInteraction` must be a boolean."):p.nonInteraction=c),void 0!==l&&("string"!=typeof l?console.warn("`args.transport` must be a string."):(-1===["beacon","xhr","image"].indexOf(l)&&console.warn("`args.transport` must be either one of these values: `beacon`, `xhr` or `image`"),p.transport=l)),a._gaCommand("send",p)}})),g(this,"send",(function(t){a._gaCommand("send",t)})),this.reset()}var a,p,f;return a=t,p=[{key:"gtag",value:function(){this._gtag.apply(this,arguments)}}],p&&h(a.prototype,p),f&&h(a,f),Object.defineProperty(a,"prototype",{writable:!1}),t}();t.GA4=x;var y=new x;t.default=y}(Ph)),Ph}function Lh(t){var e=t.chatBoxSettings,r=t.setChatBoxSettings,i=t.onFormSubmit,a=n(""),s=a[0];a[1];var c=n(""),l=c[0],p=c[1],u=e.report_type,d=e.report_source,f=e.tone,m=n((function(){if("undefined"!=typeof window){var t=localStorage.getItem("domainFilters");return t?JSON.parse(t):[]}return[]})),h=m[0],g=m[1];o((function(){localStorage.setItem("domainFilters",JSON.stringify(h)),r((function(t){return _(_({},t),{domains:h.map((function(t){return t.value}))})}))}),[h,r]);var v=function(t){t.preventDefault(),l.trim()&&(g(C(C([],h,!0),[{value:l.trim()}],!1)),p(""))},x=function(t){var e=t.target,n=e.name,o=e.value;r((function(t){var e;return _(_({},t),((e={})[n]=o,e))}))};return z.jsxs("form",{method:"POST",className:"report_settings_static mt-3",onSubmit:function(t){if(t.preventDefault(),i){var n=_(_({},e),{domains:h.map((function(t){return t.value}))});r(n),i(s,u,d,h)}},children:[z.jsxs("div",{className:"form-group",children:[z.jsxs("label",{htmlFor:"report_type",className:"agent_question",children:["Report Type"," "]}),z.jsxs("select",{name:"report_type",value:u,onChange:x,className:"form-control-static",required:!0,children:[z.jsx("option",{value:"research_report",children:"Summary - Short and fast (~2 min)"}),z.jsx("option",{value:"deep",children:"Deep Research Report"}),z.jsx("option",{value:"multi_agents",children:"Multi Agents Report"}),z.jsx("option",{value:"detailed_report",children:"Detailed - In depth and longer (~5 min)"})]})]}),z.jsxs("div",{className:"form-group",children:[z.jsxs("label",{htmlFor:"report_source",className:"agent_question",children:["Report Source"," "]}),z.jsxs("select",{name:"report_source",value:d,onChange:x,className:"form-control-static",required:!0,children:[z.jsx("option",{value:"web",children:"The Internet"}),z.jsx("option",{value:"local",children:"My Documents"}),z.jsx("option",{value:"hybrid",children:"Hybrid"})]})]}),"local"===d||"hybrid"===d?z.jsx(jh,{}):null,z.jsx(Eh,{tone:f,onToneChange:function(t){var e=t.target.value;r((function(t){return _(_({},t),{tone:e})}))}}),("web"===e.report_source||"hybrid"===e.report_source)&&z.jsxs("div",{className:"mt-4 domain_filters",children:[z.jsxs("div",{className:"flex gap-2 mb-4",children:[z.jsxs("label",{htmlFor:"domain_filters",className:"agent_question",children:["Filter by domain"," "]}),z.jsx("input",{type:"text",value:l,onChange:function(t){return p(t.target.value)},placeholder:"Filter by domain (e.g., techcrunch.com)",className:"input-static",onKeyPress:function(t){"Enter"===t.key&&(t.preventDefault(),v(t))}}),z.jsx("button",{type:"button",onClick:v,className:"button-static",children:"Add Domain"})]}),z.jsx("div",{className:"flex flex-wrap gap-2",children:h.map((function(t,e){return z.jsxs("div",{className:"domain-tag-static",children:[z.jsx("span",{className:"domain-text-static",children:t.value}),z.jsx("button",{type:"button",onClick:function(){return e=t.value,void g(h.filter((function(t){return t.value!==e})));var e},className:"domain-button-static",children:"X"})]},e)}))})]})]})}function Mh(t){var e=this,r=t.report,i=n(""),a=i[0],s=i[1];return o((function(){r&&P(e,void 0,void 0,(function(){var t,e;return O(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,mn(r)];case 1:return t=n.sent(),s(t),[3,3];case 2:return e=n.sent(),console.error("Error converting markdown to HTML:",e),s("<p>Error rendering content</p>"),[3,3];case 3:return[2]}}))}))}),[r]),z.jsxs("div",{children:[z.jsx("h2",{children:"Research Report"}),z.jsx("div",{id:"reportContainer",className:"markdown-content",children:z.jsx("div",{dangerouslySetInnerHTML:{__html:a}})})]})}function Ih(t){var e=t.agentLogs;return z.jsxs("div",{className:"margin-div",children:[z.jsx("h2",{children:"Agent Output"}),z.jsx("div",{id:"output",children:function(t){return t&&t.map((function(t,e){return z.jsx("div",{children:t.output},e)}))}(e)})]})}function Fh(t){var e=t.chatBoxSettings,r=t.setChatBoxSettings,i=n([]),a=i[0],s=i[1],c=n(""),l=c[0],p=c[1],u=n({}),d=u[0],f=u[1],m=n(null);m[0];var h=m[1];return o((function(){if("undefined"!=typeof window){var t=V(),e=t.includes("https")?"wss:":"ws:",n=t.replace("http://","").replace("https://",""),r="".concat(e,"//").concat(n,"/ws"),o=new WebSocket(r);return h(o),o.onmessage=function(t){var e=JSON.parse(t.data);if("logs"===e.type)s((function(t){return C(C([],t,!0),[e],!1)}));else if("report"===e.type)p((function(t){return t+e.output}));else if("path"===e.type){var n=e.output;f(_(_(_({},n.pdf&&{pdf:"outputs/".concat(n.pdf)}),n.docx&&{docx:"outputs/".concat(n.docx)}),n.json&&{json:"outputs/".concat(n.json)}))}},function(){o.close()}}}),[]),z.jsx("div",{children:z.jsxs("main",{className:"static-container",id:"form",children:[z.jsx(Lh,{chatBoxSettings:e,setChatBoxSettings:r}),(null==a?void 0:a.length)>0?z.jsx(Ih,{agentLogs:a}):"",z.jsxs("div",{className:"margin-div",children:[l?z.jsx(Mh,{report:l}):"",Object.keys(d).length>0&&z.jsx(Pn,{accessData:d,chatBoxSettings:e,report:l})]})]})})}Ah||(Ah=1,function(t){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ReactGAImplementation=void 0;var n=function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!==e(t)&&"function"!=typeof t)return{default:t};var o=r(n);if(o&&o.has(t))return o.get(t);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var c=a?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(i,s,c):i[s]=t[s]}return i.default=t,o&&o.set(t,i),i}(Dh());function r(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(r=function(t){return t?n:e})(t)}var o=n.GA4;t.ReactGAImplementation=o;var i=n.default;t.default=i}(_h));var zh=function(t){var e=t.chatBoxSettings,r=t.setChatBoxSettings,i=n(!1),a=i[0],s=i[1],c=n("report_settings"),l=c[0];c[1];var p=n(!1),u=p[0],d=p[1],f=n({DOC_PATH:"./my-docs"}),m=f[0],h=f[1];o((function(){return d(!0),function(){return d(!1)}}),[]),o((function(){var t=localStorage.getItem("apiVariables");if(t&&h(JSON.parse(t)),a){document.body.style.overflow="hidden";var e=document.querySelector(".settings .App-header");e&&e.classList.remove("App-header")}else document.body.style.overflow="";return function(){document.body.style.overflow=""}}),[a]);var g=a&&z.jsxs(Al,{children:[z.jsx(El.div,{className:"fixed inset-0 z-[1000] flex items-center justify-center overflow-auto",initial:"hidden",animate:"visible",exit:"hidden",variants:{hidden:{opacity:0},visible:{opacity:1,transition:{duration:.3}}},style:{backdropFilter:"blur(5px)"},onClick:function(t){t.target===t.currentTarget&&s(!1)},children:z.jsx(El.div,{className:"relative w-auto max-w-3xl z-[1001] mx-6 my-8 md:mx-auto",variants:{hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.3,ease:"easeOut"}}},children:z.jsxs("div",{className:"relative",children:[z.jsx("div",{className:"absolute -inset-0.5 bg-gradient-to-r from-teal-500/20 via-cyan-500/15 to-blue-500/20 rounded-xl blur-sm opacity-50 shadow-sm"}),z.jsxs("div",{className:"relative flex flex-col rounded-lg overflow-hidden bg-gray-900 border border-gray-800/60 shadow-md hover:shadow-teal-400/10 transition-shadow duration-300",children:[z.jsx("div",{className:"bg-gray-900 p-5 border-b border-gray-800",children:z.jsxs("div",{className:"flex items-center justify-between",children:[z.jsxs("h3",{className:"text-xl font-semibold text-white",children:[z.jsx("span",{className:"mr-2",children:"⚙️"}),z.jsx("span",{className:"text-teal-400",children:"Preferences"})]}),z.jsx("button",{className:"p-1 ml-auto text-gray-400 hover:text-white transition-colors duration-200",onClick:function(){return s(!1)},children:z.jsx("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:z.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]})}),z.jsxs("div",{className:"relative p-6 flex-auto bg-gray-900/95 modal-content",children:[!1,"report_settings"===l&&z.jsx("div",{className:"App",children:z.jsx("header",{className:"App-header",children:z.jsx(Fh,{setChatBoxSettings:r,chatBoxSettings:e})})})]}),z.jsxs("div",{className:"flex items-center justify-end p-4 border-t border-gray-800 bg-gray-900/80",children:[z.jsx("button",{className:"mr-3 px-4 py-2 text-sm font-medium text-gray-300 hover:text-white bg-gray-800 hover:bg-gray-700 rounded-md transition-colors duration-200",onClick:function(){return s(!1)},children:"Cancel"}),z.jsx("button",{className:"px-6 py-2.5 text-sm font-medium rounded-md text-white bg-teal-600 hover:bg-gradient-to-br hover:from-teal-500/95 hover:via-cyan-500/90 hover:to-teal-600/95 shadow-sm hover:shadow-teal-400/20 transition-all duration-300 focus:outline-none focus:ring-1 focus:ring-teal-500 focus:ring-offset-1 focus:ring-offset-gray-900",onClick:function(){r(_({},e)),localStorage.setItem("apiVariables",JSON.stringify(m)),s(!1)},children:"Save Changes"})]})]})]})})}),z.jsx(El.div,{className:"fixed inset-0 z-[999] bg-black",initial:{opacity:0},animate:{opacity:.6},exit:{opacity:0}})]});return z.jsxs("div",{className:"settings",children:[z.jsx("button",{className:"bg-gray-900 text-white px-6 py-3 rounded-lg shadow-sm hover:shadow-teal-400/10 transition-all duration-300 border border-gray-800 hover:border-teal-500/30",type:"button",onClick:function(){return s(!0)},children:z.jsxs("span",{className:"flex items-center",children:[z.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-2",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:[z.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),z.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]}),"Preferences"]})}),u&&a&&S(g,document.body)]})},Bh=function(t){var e=t.chatBoxSettings,n=t.setChatBoxSettings;if("undefined"!=typeof window){var r=new URLSearchParams(window.location.search).get("domains");if(r){var o=r.split(",").map((function(t){return{value:t.trim()}}));localStorage.setItem("domainFilters",JSON.stringify(o))}}return z.jsx(z.Fragment,{children:z.jsxs("div",{className:"container flex flex-col sm:flex-row min-h-[60px] sm:min-h-[72px] mt-2 items-center justify-center sm:justify-between border-t border-gray-700/30 px-4 pb-3 pt-4 sm:py-5 lg:px-0 bg-transparent backdrop-blur-sm gap-3 sm:gap-0",children:[z.jsx(zh,{setChatBoxSettings:n,chatBoxSettings:e}),z.jsxs("div",{className:"text-xs sm:text-sm text-gray-100 text-center sm:text-left order-2 sm:order-1",children:["© ",(new Date).getFullYear()," GPT Researcher. All rights reserved."]}),z.jsxs("div",{className:"flex items-center gap-4 order-1 sm:order-2 mb-2 sm:mb-0",children:[z.jsx(Au,{href:"https://gptr.dev",target:"_blank",className:"p-1",children:z.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"w-6 h-6 sm:w-7 sm:h-7 text-white hover:text-teal-400 transition-colors duration-300",children:[z.jsx("path",{d:"M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"}),z.jsx("polyline",{points:"9 22 9 12 15 12 15 22"})]})}),z.jsxs(Au,{href:"https://github.com/assafelovic/gpt-researcher",target:"_blank",className:"p-1",children:[z.jsx("img",{src:"https://askjarvis.ai/img/github.svg",alt:"github",width:24,height:24,className:"w-6 h-6 sm:w-7 sm:h-7"})," "]}),z.jsxs(Au,{href:"https://discord.gg/QgZXvJAccX",target:"_blank",className:"p-1",children:[z.jsx("img",{src:"https://askjarvis.ai/img/discord.svg",alt:"discord",width:24,height:24,className:"w-6 h-6 sm:w-7 sm:h-7"})," "]}),z.jsxs(Au,{href:"https://hub.docker.com/r/gptresearcher/gpt-researcher",target:"_blank",className:"p-1",children:[z.jsx("img",{src:"https://askjarvis.ai/img/docker.svg",alt:"docker",width:24,height:24,className:"w-6 h-6 sm:w-7 sm:h-7"})," "]})]})]})})},Vh=function(t){var e=t.questionForHuman;t.websocket;var r=t.onFeedbackSubmit,o=n(null);o[0];var i=o[1],a=n(""),s=a[0],c=a[1];return z.jsxs("div",{className:"bg-gray-100 p-4 rounded-lg shadow-md",children:[z.jsx("h3",{className:"text-lg font-semibold mb-2",children:"Human Feedback Required"}),z.jsx("p",{className:"mb-4",children:e}),z.jsxs("form",{onSubmit:function(t){t.preventDefault(),r(""===s?null:s),i(null),c("")},children:[z.jsx("textarea",{className:"w-full p-2 border rounded-md",value:s,onChange:function(t){return c(t.target.value)},placeholder:"Enter your feedback here (or leave blank for 'no')"}),z.jsx("button",{type:"submit",className:"mt-2 px-4 py-2 bg-blue-500 text-white rounded-md hover:bg-blue-600",children:"Submit Feedback"})]})]})},Uh=function(){return z.jsx("div",{className:"flex justify-center py-4",children:z.jsxs("div",{className:"animate-pulse flex space-x-2",children:[z.jsx("div",{className:"w-2 h-2 bg-gray-300 rounded-full"}),z.jsx("div",{className:"w-2 h-2 bg-gray-300 rounded-full"}),z.jsx("div",{className:"w-2 h-2 bg-gray-300 rounded-full"})]})})},qh=function(t){var e=t.apiUrl,a=void 0===e?"":e,s=t.apiKey,c=void 0===s?"":s,l=t.defaultPrompt,p=void 0===l?"":l,u=t.onResultsChange;t.theme,localStorage.setItem("apiURL",a);var d=n(p),f=d[0],m=d[1],h=n(!1),g=h[0],v=h[1],x=n(""),y=x[0],b=x[1],w=n(!1),k=w[0],j=w[1],E=n({report_source:"web",report_type:"research_report",tone:"Objective",domains:[],defaultReportType:"research_report"}),S=E[0],_=E[1],T=n("");T[0];var A=T[1],R=n([]),N=R[0],D=R[1],L=n(!1),M=L[0],I=L[1],F=n(!1),B=F[0],V=F[1],$=n([]),W=$[0],H=$[1],G=r(null),X=n(!1),Y=X[0],K=X[1],J=n(!1),Z=J[0],Q=J[1],tt=r(null),et=n(a);et[0];var nt=et[1];o((function(){nt(a)}),[a]),o((function(){u&&N.length>0&&u(N)}),[N,u]);var rt=U(D,b,j,I,V),ot=rt.socket,it=rt.initializeWebSocket,at=function(t){return P(void 0,void 0,void 0,(function(){var e,n;return O(this,(function(r){return v(!0),j(!0),A(t),m(""),b(""),D((function(e){return C(C([],e,!0),[{type:"question",content:t}],!1)})),e=localStorage.getItem("apiVariables"),n=e?JSON.parse(e):{LANGGRAPH_HOST_URL:""},a&&(n.API_URL=a),c&&(n.API_KEY=c),it(t,S),[2]}))}))};o((function(){var t=q(N),e=["agent_generated","starting_research","planning_research","error"],n=t.reduce((function(t,n){if("accordionBlock"===n.type){var r=n.items.map((function(t,e){return{header:t.content,text:t.output,metadata:t.metadata,key:"".concat(t.type,"-").concat(t.content,"-").concat(e)}}));return C(C([],t,!0),r,!0)}return e.includes(n.content)?C(C([],t,!0),[{header:n.content,text:n.output,metadata:n.metadata,key:"".concat(n.type,"-").concat(n.content)}],!1):t}),[]);H(n)}),[N]);var st=i((function(){var t=window.scrollY+window.innerHeight>=document.documentElement.scrollHeight-100,e=document.documentElement.scrollHeight>window.innerHeight;Q(e&&!t)}),[]);o((function(){var t=tt.current,e=new ResizeObserver((function(){st()}));return t&&e.observe(t),window.addEventListener("scroll",st),window.addEventListener("resize",st),function(){t&&e.unobserve(t),e.disconnect(),window.removeEventListener("scroll",st),window.removeEventListener("resize",st)}}),[st]);return z.jsxs(z.Fragment,{children:[z.jsx(Cn,{loading:k,isStopped:Y,showResult:g,onStop:function(){ot&&ot.close(),j(!1),K(!0)},onNewResearch:function(){v(!1),m(""),K(!1),A(""),b(""),D([]),H([]),I(!1),V(!1),ot&&ot.close(),j(!1)}}),z.jsxs("main",{ref:tt,className:"min-h-[100vh] pt-[120px]",children:[!g&&z.jsx(Nl,{promptValue:f,setPromptValue:m,handleDisplayResult:at}),g&&z.jsxs("div",{className:"flex h-full w-full grow flex-col justify-between",children:[z.jsxs("div",{className:"container w-full space-y-2",children:[z.jsx("div",{className:"container space-y-2 task-components",children:z.jsx(On,{orderedData:N,answer:y,allLogs:W,chatBoxSettings:S,handleClickSuggestion:function(t){m(t);var e=document.getElementById("input-area");e&&e.scrollIntoView({behavior:"smooth"})}})}),M&&z.jsx(Vh,{questionForHuman:B,websocket:ot,onFeedbackSubmit:function(t){ot&&ot.send(JSON.stringify({type:"human_feedback",content:t})),I(!1)}}),z.jsx("div",{className:"pt-1 sm:pt-2",ref:G})]}),z.jsx("div",{id:"input-area",className:"container px-4 lg:px-0",children:k?z.jsx(Uh,{}):z.jsx(An,{promptValue:f,setPromptValue:m,handleSubmit:function(t){return P(void 0,void 0,void 0,(function(){var e;return O(this,(function(n){return ot&&(v(!0),A(t),j(!0),m(""),b(""),e={type:"question",content:t},D((function(t){return C(C([],t,!0),[e],!1)})),ot.send("chat".concat(JSON.stringify({message:t})))),[2]}))}))},handleSecondary:at,disabled:k,reset:function(){v(!1),m(""),A(""),b("")},isStopped:Y})})]})]}),Z&&g&&z.jsx("button",{onClick:function(){window.scrollTo({top:document.documentElement.scrollHeight,behavior:"smooth"})},className:"fixed bottom-8 right-8 flex items-center justify-center w-12 h-12 text-white bg-[rgb(168,85,247)] rounded-full hover:bg-[rgb(147,51,234)] transform hover:scale-105 transition-all duration-200 shadow-lg z-50",children:z.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:z.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 14l-7 7m0 0l-7-7m7 7V3"})})}),z.jsx(Bh,{setChatBoxSettings:_,chatBoxSettings:S})]})};export{qh as GPTResearcher};
//# sourceMappingURL=index.esm.js.map