PageSourceSearch

https://www.alcoaschools.net/apps/webapps/next/modern-ui/pages/pub…/js/bundle-pack-1790702408472.js

js alcoaschools.net collected 2026-09-30 13:15:03 UTC 712,330 bytes, 2 lines download raw bytes

1(()=>{var e,t,n={133:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,o.default)(e),i="function"==typeof t;return r.forEach(function(e){if("declaration"===e.type){var r=e.property,o=e.value;i?t(r,o,e):o&&((n=n||{})[r]=o)}}),n};var o=r(n(788))},160:(e,t,n)=>{"use strict";var r=n(540);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useSyncExternalStore,a=r.useRef,s=r.useEffect,l=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,c){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==c&&f.hasValue){var t=f.value;if(c(t,e))return a=t}return a=e}if(t=a,o(i,e))return t;var n=r(e);return void 0!==c&&c(t,n)?(i=e,t):(i=e,a=n)}var i,a,s=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,n,r,c]);var p=i(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}},221:(e,t,n)=>{"use strict";var r=n(540);function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var a={d:{f:i,r:function(){throw Error(o(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},s=Symbol.for("react.portal");var l=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(o(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:s,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.flushSync=function(e){var t=l.T,n=a.p;try{if(l.T=null,a.p=2,e)return e()}finally{l.T=t,a.p=n,a.d.f()}},t.preconnect=function(e,t){"string"==typeof e&&(t?t="string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:t=null,a.d.C(e,t))},t.prefetchDNS=function(e){"string"==typeof e&&a.d.D(e)},t.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,r=u(n,t.crossOrigin),o="string"==typeof t.integrity?t.integrity:void 0,i="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?a.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:r,integrity:o,fetchPriority:i}):"script"===n&&a.d.X(e,{crossOrigin:r,integrity:o,fetchPriority:i,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=u(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&a.d.M(e)},t.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,r=u(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},t.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=u(t.as,t.crossOrigin);
1a.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else a.d.m(e)},t.requestFormReset=function(e){a.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},t.useFormStatus=function(){return l.H.useHostTransitionStatus()},t.version="19.1.1"},229:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(133)),o=n(917);function i(e,t){var n={};return e&&"string"==typeof e?((0,r.default)(e,function(e,r){e&&r&&(n[(0,o.camelCase)(e,t)]=r)}),n):n}i.default=i,e.exports=i},247:(e,t,n)=>{"use strict";var r=n(982),o=n(540),i=n(961);function a(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function l(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function u(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function c(e){if(l(e)!==e)throw Error(a(188))}function d(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=d(e)))return t;e=e.sibling}return null}var f=Object.assign,p=Symbol.for("react.element"),h=Symbol.for("react.transitional.element"),m=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),v=Symbol.for("react.provider"),w=Symbol.for("react.consumer"),x=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),C=Symbol.for("react.lazy");Symbol.for("react.scope");var T=Symbol.for("react.activity");Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker");var O=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var P=Symbol.iterator;function I(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=P&&e[P]||e["@@iterator"])?e:null}var j=Symbol.for("react.client.reference");function A(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===j?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case g:return"Fragment";case b:return"Profiler";case y:return"StrictMode";case S:return"Suspense";case _:return"SuspenseList";case T:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case m:return"Portal";case x:return(e.displayName||"Context")+".Provider";case w:return(e._context.displayName||"Context")+".Consumer";case k:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case E:return null!==(t=e.displayName||null)?t:A(e.type)||"Memo";case C:t=e._payload,e=e._init;try{return A(e(t))}catch(e){}}return null}var N=Array.isArray,R=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D={pending:!1,data:null,method:null,action:null},z=[],L=-1;function F(e){return{current:e}}function B(e){0>L||(e.current=z[L],z[L]=null,L--)}function U(e,t){L++,z[L]=e.current,e.current=t}var q=F(null),H=F(null),$=F(null),V=F(null);function W(e,t){switch(U($,t),U(H,e),U(q,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?od(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=id(t=od(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B(q),U(q,e)}function Q(){B(q),B(H),B($)}function K(e){null!==e.memoizedState&&U(V,e);var t=q.current,n=id(t,e.type);t!==n&&(U(H,e),U(q,n))}function Y(e){H.current===e&&(B(q),B(H)),V.current===e&&(B(V),Kd._currentValue=D)}var G=Object.prototype.hasOwnProperty,J=r.unstable_scheduleCallback,X=r.unstable_cancelCallback,Z=r.unstable_shouldYield,ee=r.unstable_requestPaint,te=r.unstable_now,ne=r.unstable_getCurrentPriorityLevel,re=r.unstable_ImmediatePriority,oe=r.unstable_UserBlockingPriority,ie=r.unstable_NormalPriority,ae=r.unstable_LowPriority,se=r.unstable_IdlePriority,le=r.log,ue=r.unstable_setDisableYieldValue,ce=null,de=null;function fe(e){if("function"==typeof le&&ue(e),de&&"function"==typeof de.setStrictMode)try{de.setStrictMode(ce,e)}catch(e){}}var pe=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(he(e)/me|0)|0},he=Math.log,me=Math.LN2;var ge=256,ye=4194304;function be(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194048&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;
vendor: 9,583 bytes, line 1
1case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ve(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var o=0,i=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var s=134217727&r;return 0!==s?0!==(r=s&~i)?o=be(r):0!==(a&=s)?o=be(a):n||0!==(n=s&~e)&&(o=be(n)):0!==(s=r&~i)?o=be(s):0!==a?o=be(a):n||0!==(n=r&~e)&&(o=be(n)),0===o?0:0!==t&&t!==o&&0===(t&i)&&((i=o&-o)>=(n=t&-t)||32===i&&4194048&n)?t:o}function we(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function xe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ke(){var e=ge;return!(4194048&(ge<<=1))&&(ge=256),e}function Se(){var e=ye;return!(62914560&(ye<<=1))&&(ye=4194304),e}function _e(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ee(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ce(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-pe(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194090&n}function Te(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-pe(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}function Oe(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Pe(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function Ie(){var e=M.p;return 0!==e?e:void 0===(e=window.event)?32:cf(e.type)}var je=Math.random().toString(36).slice(2),Ae="__reactFiber$"+je,Ne="__reactProps$"+je,Re="__reactContainer$"+je,Me="__reactEvents$"+je,De="__reactListeners$"+je,ze="__reactHandles$"+je,Le="__reactResources$"+je,Fe="__reactMarker$"+je;function Be(e){delete e[Ae],delete e[Ne],delete e[Me],delete e[De],delete e[ze]}function Ue(e){var t=e[Ae];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Re]||n[Ae]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=vd(e);null!==e;){if(n=e[Ae])return n;e=vd(e)}return t}n=(e=n).parentNode}return null}function qe(e){if(e=e[Ae]||e[Re]){var t=e.tag;if(5===t||6===t||13===t||26===t||27===t||3===t)return e}return null}function He(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(a(33))}function $e(e){var t=e[Le];return t||(t=e[Le]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ve(e){e[Fe]=!0}var We=new Set,Qe={};function Ke(e,t){Ye(e,t),Ye(e+"Capture",t)}function Ye(e,t){for(Qe[e]=t,e=0;e<t.length;e++)We.add(t[e])}var Ge,Je,Xe=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Ze={},et={};function tt(e,t,n){if(o=t,G.call(et,o)||!G.call(Ze,o)&&(Xe.test(o)?et[o]=!0:(Ze[o]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var o}function nt(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function rt(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function ot(e){if(void 0===Ge)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ge=t&&t[1]||"",Je=-1<e.stack.indexOf("\n    at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+Ge+e+Je}var it=!1;function at(e,t){if(!e||it)return"";it=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(e){if(e&&r&&"string"==typeof e.stack)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=r.DetermineComponentFrameRoot(),a=i[0],s=i[1];if(a&&s){var l=a.split("\n"),u=s.split("\n");for(o=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;o<u.length&&!u[o].includes("DetermineComponentFrameRoot");)o++;if(r===l.length||o===u.length)for(r=l.length-1,o=u.length-1;1<=r&&0<=o&&l[r]!==u[o];)o--;for(;1<=r&&0<=o;r--,o--)if(l[r]!==u[o]){if(1!==r||1!==o)do{if(r--,0>--o||l[r]!==u[o]){var c="\n"+l[r].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=r&&0<=o);break}}}finally{it=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ot(n):""}function st(e){switch(e.tag){case 26:case 27:case 5:return ot(e.type);case 16:return ot("Lazy");case 13:return ot("Suspense");case 19:return ot("SuspenseList");case 0:case 15:return at(e.type,!1);case 11:return at(e.type.render,!1);case 1:return at(e.type,!0);case 31:return ot("Activity");default:return""}}function lt(e){try{var t="";do{t+=st(e),e=e.return}while(e);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}function ut(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ct(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function dt(e){e._valueTracker||(e._valueTracker=function(e){var t=ct(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function ft(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ct(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function pt(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var ht=/[\n"\\]/g;function mt(e){return e.replace(ht,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function gt(e,t,n,r,o,i,a,s){e.name="",null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a?e.type=a:e.removeAttribute("type"),null!=t?"number"===a?(0===t&&""===e.value||e.value!=t)&&(e.value=""+ut(t)):e.value!==""+ut(t)&&(e.value=""+ut(t)):"submit"!==a&&"reset"!==a||e.removeAttribute("value"),null!=t?bt(e,a,ut(t)):null!=n?bt(e,a,ut(n)):null!=r&&e.removeAttribute("value"),null==o&&null!=i&&(e.defaultChecked=!!i),null!=o&&(e.checked=o&&"function"!=typeof o&&"symbol"!=typeof o),null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s?e.name=""+ut(s):e.removeAttribute("name")}function yt(e,t,n,r,o,i,a,s){if(null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i&&(e.type=i),null!=t||null!=n){if(("submit"===i||"reset"===i)&&null==t)return;n=null!=n?""+ut(n):"",t=null!=t?""+ut(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:o)&&"symbol"!=typeof r&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.name=a)}function bt(e,t,n){"number"===t&&pt(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function vt(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ut(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function wt(e,t,n){null==t||((t=""+ut(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+ut(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function xt(e,t,n,r){if(null==t){if(null!=r){if(null!=n)throw Error(a(92));if(N(r)){if(1<r.length)throw Error(a(93));r=r[0]}n=r}null==n&&(n=""),t=n}n=ut(t),e.defaultValue=n,(r=e.textContent)===n&&""!==r&&null!==r&&(e.value=r)}function kt(e,t){if(t){var n=e.firstChild;
vendor: 4,144 bytes, line 1
1if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var St=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function _t(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||St.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Et(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(a(62));if(e=e.style,null!=n){for(var r in n)!n.hasOwnProperty(r)||null!=t&&t.hasOwnProperty(r)||(0===r.indexOf("--")?e.setProperty(r,""):"float"===r?e.cssFloat="":e[r]="");for(var o in t)r=t[o],t.hasOwnProperty(o)&&n[o]!==r&&_t(e,o,r)}else for(var i in t)t.hasOwnProperty(i)&&_t(e,i,t[i])}function Ct(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Tt=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode
1-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Ot=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Pt(e){return Ot.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var It=null;function jt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var At=null,Nt=null;function Rt(e){var t=qe(e);if(t&&(e=t.stateNode)){var n=e[Ne]||null;e:switch(e=t.stateNode,t.type){case"input":if(gt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+mt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=r[Ne]||null;if(!o)throw Error(a(90));gt(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)(r=n[t]).form===e.form&&ft(r)}break e;case"textarea":wt(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&vt(e,!!n.multiple,t,!1)}}}var Mt=!1;function Dt(e,t,n){if(Mt)return e(t,n);Mt=!0;try{return e(t)}finally{if(Mt=!1,(null!==At||null!==Nt)&&(Uu(),At&&(t=At,e=Nt,Nt=At=null,Rt(t),e)))for(t=0;t<e.length;t++)Rt(e[t])}}function zt(e,t){var n=e.stateNode;if(null===n)return null;var r=n[Ne]||null;if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var Lt=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Ft=!1;if(Lt)try{var Bt={};Object.defineProperty(Bt,"passive",{get:function(){Ft=!0}}),window.addEventListener("test",Bt,Bt),window.removeEventListener("test",Bt,Bt)}catch(e){Ft=!1}var Ut=null,qt=null,Ht=null;function $t(){if(Ht)return Ht;var e,t,n=qt,r=n.length,o="value"in Ut?Ut.value:Ut.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Ht=o.slice(e,1<t?1-t:void 0)}function Vt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Wt(){return!0}function Qt(){return!1}function Kt(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Wt:Qt,this.isPropagationStopped=Qt,this}return f(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Wt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Wt)},persist:function(){},isPersistent:Wt}),t}var Yt,Gt,Jt,Xt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zt=Kt(Xt),en=f({},Xt,{view:0,detail:0}),tn=Kt(en),nn=f({},en,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:hn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.from
vendor: 4,398 bytes, line 1
1Element===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Jt&&(Jt&&"mousemove"===e.type?(Yt=e.screenX-Jt.screenX,Gt=e.screenY-Jt.screenY):Gt=Yt=0,Jt=e),Yt)},movementY:function(e){return"movementY"in e?e.movementY:Gt}}),rn=Kt(nn),on=Kt(f({},nn,{dataTransfer:0})),an=Kt(f({},en,{relatedTarget:0})),sn=Kt(f({},Xt,{animationName:0,elapsedTime:0,pseudoElement:0})),ln=Kt(f({},Xt,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),un=Kt(f({},Xt,{data:0})),cn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},fn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function pn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=fn[e])&&!!t[e]}function hn(){return pn}var mn=Kt(f({},en,{key:function(e){if(e.key){var t=cn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Vt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?dn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:hn,charCode:function(e){return"keypress"===e.type?Vt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Vt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),gn=Kt(f({},nn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),yn=Kt(f({},en,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:hn})),bn=Kt(f({},Xt,{propertyName:0,elapsedTime:0,pseudoElement:0})),vn=Kt(f({},nn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),wn=Kt(f({},Xt,{newState:0,oldState:0})),xn=[9,13,27,32],kn=Lt&&"CompositionEvent"in window,Sn=null;Lt&&"documentMode"in document&&(Sn=document.documentMode);var _n=Lt&&"TextEvent"in window&&!Sn,En=Lt&&(!kn||Sn&&8<Sn&&11>=Sn),Cn=String.fromCharCode(32),Tn=!1;function On(e,t){switch(e){case"keyup":return-1!==xn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var In=!1;var jn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function An(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!jn[e.type]:"textarea"===t}function Nn(e,t,n,r){At?Nt?Nt.push(r):Nt=[r]:At=r,0<(t=$c(t,"onChange")).length&&(n=new Zt("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Rn=null,Mn=null;function Dn(e){Dc(e,0)}function zn(e){if(ft(He(e)))return e}function Ln(e,t){if("change"===e)return t}var Fn=!1;if(Lt){var Bn;if(Lt){var Un="oninput"in document;if(!Un){var qn=document.createElement("div");qn.setAttribute("oninput","return;"),Un="function"==typeof qn.oninput}Bn=Un}else Bn=!1;Fn=Bn&&(!document.documentMode||9<document.documentMode)}function Hn(){Rn&&(Rn.detachEvent("onpropertychange",$n),Mn=Rn=null)}function $n(e){if("value"===e.propertyName&&zn(Mn)){var t=[];Nn(t,Mn,e,jt(e)),Dt(Dn,t)}}function Vn(e,t,n){"focusin"===e?(Hn(),Mn=n,(Rn=t).attachEvent("onpropertychange",$n)):"focusout"===e&&Hn()}function Wn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return zn(Mn)}function Qn(e,t){if("click"===e)return zn(t)}function Kn(e,t){if("input"===e||"change"===e)return zn(t)}var Yn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Gn(e,t){if(Yn(e,t))return!0;
vendor: 4,357 bytes, line 1
1if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!G.call(t,o)||!Yn(e[o],t[o]))return!1}return!0}function Jn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Xn(e,t){var n,r=Jn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Jn(r)}}function Zn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Zn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function er(e){for(var t=pt((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=pt((e=t.contentWindow).document)}return t}function tr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var nr=Lt&&"documentMode"in document&&11>=document.documentMode,rr=null,or=null,ir=null,ar=!1;function sr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;ar||null==rr||rr!==pt(r)||("selectionStart"in(r=rr)&&tr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},ir&&Gn(ir,r)||(ir=r,0<(r=$c(or,"onSelect")).length&&(t=new Zt("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=rr)))}function lr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ur={animationend:lr("Animation","AnimationEnd"),animationiteration:lr("Animation","AnimationIteration"),animationstart:lr("Animation","AnimationStart"),transitionrun:lr("Transition","TransitionRun"),transitionstart:lr("Transition","TransitionStart"),transitioncancel:lr("Transition","TransitionCancel"),transitionend:lr("Transition","TransitionEnd")},cr={},dr={};function fr(e){if(cr[e])return cr[e];if(!ur[e])return e;var t,n=ur[e];for(t in n)if(n.hasOwnProperty(t)&&t in dr)return cr[e]=n[t];return e}Lt&&(dr=document.createElement("div").style,"AnimationEvent"in window||(delete ur.animationend.animation,delete ur.animationiteration.animation,delete ur.animationstart.animation),"TransitionEvent"in window||delete ur.transitionend.transition);var pr=fr("animationend"),hr=fr("animationiteration"),mr=fr("animationstart"),gr=fr("transitionrun"),yr=fr("transitionstart"),br=fr("transitioncancel"),vr=fr("transitionend"),wr=new Map,xr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function kr(e,t){wr.set(e,t),Ke(t,[e])}xr.push("scrollEnd");var Sr=new WeakMap;function _r(e,t){if("object"==typeof e&&null!==e){var n=Sr.get(e);return void 0!==n?n:(t={value:e,source:t,stack:lt(t)},Sr.set(e,t),t)}return{value:e,source:t,stack:lt(t)}}var Er=[],Cr=0,Tr=0;function Or(){for(var e=Cr,t=Tr=Cr=0;t<e;){var n=Er[t];Er[t++]=null;var r=Er[t];Er[t++]=null;var o=Er[t];Er[t++]=null;var i=Er[t];if(Er[t++]=null,null!==r&&null!==o){var a=r.pending;null===a?o.next=o:(o.next=a.next,a.next=o),r.pending=o}0!==i&&Ar(n,o,i)}}function Pr(e,t,n,r){Er[Cr++]=e,Er[Cr++]=t,Er[Cr++]=n,Er[Cr++]=r,Tr|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Ir(e,t,n,r){return Pr(e,t,n,r),Nr(e)}function jr(e,t){return Pr(e,null,null,t),Nr(e)}function Ar(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var o=!1,i=e.return;null!==i;
vendor: 7,599 bytes, line 1
1)i.childLanes|=n,null!==(r=i.alternate)&&(r.childLanes|=n),22===i.tag&&(null===(e=i.stateNode)||1&e._visibility||(o=!0)),e=i,i=i.return;return 3===e.tag?(i=e.stateNode,o&&null!==t&&(o=31-pe(n),null===(r=(e=i.hiddenUpdates)[o])?e[o]=[t]:r.push(t),t.lane=536870912|n),i):null}function Nr(e){if(50<Au)throw Au=0,Nu=null,Error(a(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Rr={};function Mr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Dr(e,t,n,r){return new Mr(e,t,n,r)}function zr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Lr(e,t){var n=e.alternate;return null===n?((n=Dr(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=65011712&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Fr(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Br(e,t,n,r,o,i){var s=0;if(r=e,"function"==typeof e)zr(e)&&(s=1);else if("string"==typeof e)s=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"==typeof t.precedence&&null==e);case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}(e,n,q.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case T:return(e=Dr(31,n,t,o)).elementType=T,e.lanes=i,e;case g:return Ur(n.children,o,i,t);case y:s=8,o|=24;break;case b:return(e=Dr(12,n,t,2|o)).elementType=b,e.lanes=i,e;case S:return(e=Dr(13,n,t,o)).elementType=S,e.lanes=i,e;case _:return(e=Dr(19,n,t,o)).elementType=_,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case v:case x:s=10;break e;case w:s=9;break e;case k:s=11;break e;case E:s=14;break e;case C:s=16,r=null;break e}s=29,n=Error(a(130,null===e?"null":typeof e,"")),r=null}return(t=Dr(s,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Ur(e,t,n,r){return(e=Dr(7,e,r,t)).lanes=n,e}function qr(e,t,n){return(e=Dr(6,e,null,t)).lanes=n,e}function Hr(e,t,n){return(t=Dr(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var $r=[],Vr=0,Wr=null,Qr=0,Kr=[],Yr=0,Gr=null,Jr=1,Xr="";function Zr(e,t){$r[Vr++]=Qr,$r[Vr++]=Wr,Wr=e,Qr=t}function eo(e,t,n){Kr[Yr++]=Jr,Kr[Yr++]=Xr,Kr[Yr++]=Gr,Gr=e;var r=Jr;e=Xr;var o=32-pe(r)-1;r&=~(1<<o),n+=1;var i=32-pe(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Jr=1<<32-pe(t)+o|n<<o|r,Xr=i+e}else Jr=1<<i|n<<o|r,Xr=e}function to(e){null!==e.return&&(Zr(e,1),eo(e,1,0))}function no(e){for(;e===Wr;)Wr=$r[--Vr],$r[Vr]=null,Qr=$r[--Vr],$r[Vr]=null;for(;e===Gr;)Gr=Kr[--Yr],Kr[Yr]=null,Xr=Kr[--Yr],Kr[Yr]=null,Jr=Kr[--Yr],Kr[Yr]=null}var ro=null,oo=null,io=!1,ao=null,so=!1,lo=Error(a(519));function uo(e){throw go(_r(Error(a(418,"")),e)),lo}function co(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Ae]=e,t[Ne]=r,n){case"dialog":zc("cancel",t),zc("close",t);break;case"iframe":case"object":case"embed":zc("load",t);break;case"video":case"audio":for(n=0;n<Rc.length;n++)zc(Rc[n],t);break;case"source":zc("error",t);break;case"img":case"image":case"link":zc("error",t),zc("load",t);break;case"details":zc("toggle",t);break;case"input":zc("invalid",t),yt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0),dt(t);break;case"select":zc("invalid",t);break;case"textarea":zc("invalid",t),xt(t,r.value,r.defaultValue,r.children),dt(t)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||Gc(t.textContent,n)?(null!=r.popover&&(zc("beforetoggle",t),zc("toggle",t)),null!=r.onScroll&&zc("scroll",t),null!=r.onScrollEnd&&zc("scrollend",t),null!=r.onClick&&(t.onclick=Jc),t=!0):t=!1,t||uo(e)}function fo(e){for(ro=e.return;ro;)switch(ro.tag){case 5:case 13:return void(so=!1);case 27:case 3:return void(so=!0);default:ro=ro.return}}function po(e){if(e!==ro)return!1;if(!io)return fo(e),io=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||ad(e.type,e.memoizedProps)),t=!t),t&&oo&&uo(e),fo(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,n=0;e;){if(8===e.nodeType)if("/$"===(t=e.data)){if(0===n){oo=yd(e.nextSibling);break e}n--}else"$"!==t&&"$!"!==t&&"$?"!==t||n++;e=e.nextSibling}oo=null}}else 27===n?(n=oo,pd(e.type)?(e=bd,bd=null,oo=e):oo=n):oo=ro?yd(e.stateNode.nextSibling):null;return!0}function ho(){oo=ro=null,io=!1}function mo(){var e=ao;return null!==e&&(null===vu?vu=e:vu.push.apply(vu,e),ao=null),e}function go(e){null===ao?ao=[e]:ao.push(e)}var yo=F(null),bo=null,vo=null;function wo(e,t,n){U(yo,t._currentValue),t._currentValue=n}function xo(e){e._currentValue=yo.current,B(yo)}function ko(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function So(e,t,n,r){var o=e.child;for(null!==o&&(o.return=e);null!==o;){var i=o.dependencies;if(null!==i){var s=o.child;i=i.firstContext;e:for(;null!==i;){var l=i;i=o;for(var u=0;u<t.length;u++)if(l.context===t[u]){i.lanes|=n,null!==(l=i.alternate)&&(l.lanes|=n),ko(i.return,n,e),r||(s=null);break e}i=l.next}}else if(18===o.tag){if(null===(s=o.return))throw Error(a(341));s.lanes|=n,null!==(i=s.alternate)&&(i.lanes|=n),ko(s,n,e),s=null}else s=o.child;if(null!==s)s.return=o;else for(s=o;null!==s;){if(s===e){s=null;break}if(null!==(o=s.sibling)){o.return=s.return,s=o;break}s=s.return}o=s}}function _o(e,t,n,r){e=null;for(var o=t,i=!1;null!==o;){if(!i)if(524288&o.flags)i=!0;else if(262144&o.flags)break;if(10===o.tag){var s=o.alternate;if(null===s)throw Error(a(387));if(null!==(s=s.memoizedProps)){var l=o.type;Yn(o.pendingProps.value,s.value)||(null!==e?e.push(l):e=[l])}}else if(o===V.current){if(null===(s=o.alternate))throw Error(a(387));s.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(null!==e?e.push(Kd):e=[Kd])}o=o.return}null!==e&&So(t,e,n,r),t.flags|=262144}function Eo(e){for(e=e.firstContext;null!==e;){if(!Yn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}
vendor: 20,931 bytes, line 1
1function Co(e){bo=e,vo=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function To(e){return Po(bo,e)}function Oo(e,t){return null===bo&&Co(e),Po(e,t)}function Po(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===vo){if(null===e)throw Error(a(308));vo=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else vo=vo.next=t;return n}var Io="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},jo=r.unstable_scheduleCallback,Ao=r.unstable_NormalPriority,No={$$typeof:x,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ro(){return{controller:new Io,data:new Map,refCount:0}}function Mo(e){e.refCount--,0===e.refCount&&jo(Ao,function(){e.controller.abort()})}var Do=null,zo=0,Lo=0,Fo=null;function Bo(){if(0===--zo&&null!==Do){null!==Fo&&(Fo.status="fulfilled");var e=Do;Do=null,Lo=0,Fo=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Uo=R.S;R.S=function(e,t){"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===Do){var n=Do=[];zo=0,Lo=Pc(),Fo={status:"pending",value:void 0,then:function(e){n.push(e)}}}zo++,t.then(Bo,Bo)}(0,t),null!==Uo&&Uo(e,t)};var qo=F(null);function Ho(){var e=qo.current;return null!==e?e:ru.pooledCache}function $o(e,t){U(qo,null===t?qo.current:t.pool)}function Vo(){var e=Ho();return null===e?null:{parent:No._currentValue,pool:e}}var Wo=Error(a(460)),Qo=Error(a(474)),Ko=Error(a(542)),Yo={then:function(){}};function Go(e){return"fulfilled"===(e=e.status)||"rejected"===e}function Jo(){}function Xo(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(Jo,Jo),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw ti(e=t.reason),e;default:if("string"==typeof t.status)t.then(Jo,Jo);else{if(null!==(e=ru)&&100<e.shellSuspendCounter)throw Error(a(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw ti(e=t.reason),e}throw Zo=t,Wo}}var Zo=null;function ei(){if(null===Zo)throw Error(a(459));var e=Zo;return Zo=null,e}function ti(e){if(e===Wo||e===Ko)throw Error(a(483))}var ni=!1;function ri(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function oi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ii(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ai(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&nu){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=Nr(e),Ar(e,null,n),t}return Pr(e,r,t,n),Nr(e)}function si(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Te(e,n)}}function li(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var ui=!1;function ci(){if(ui){if(null!==Fo)throw Fo}}function di(e,t,n,r){ui=!1;var o=e.updateQueue;ni=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?i=u:a.next=u,a=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(a=0,c=u=l=null,s=i;;){var p=-536870913&s.lane,h=p!==s.lane;if(h?(iu&p)===p:(r&p)===p){0!==p&&p===Lo&&(ui=!0),null!==c&&(c=c.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var m=e,g=s;p=t;var y=n;switch(g.tag){case 1:if("function"==typeof(m=g.payload)){d=m.call(y,d,p);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=g.payload)?m.call(y,d,p):m))break e;d=f({},d,p);break e;case 2:ni=!0}}null!==(p=s.callback)&&(e.flags|=64,h&&(e.flags|=8192),null===(h=o.callbacks)?o.callbacks=[p]:h.push(p))}else h={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=h,l=d):c=c.next=h,a|=p;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(h=s).next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}null===c&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null===i&&(o.shared.lanes=0),pu|=a,e.lanes=a,e.memoizedState=d}}function fi(e,t){if("function"!=typeof e)throw Error(a(191,e));e.call(t)}function pi(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)fi(n[e],t)}var hi=F(null),mi=F(0);function gi(e,t){U(mi,e=du),U(hi,t),du=e|t.baseLanes}function yi(){U(mi,du),U(hi,hi.current)}function bi(){du=mi.current,B(hi),B(mi)}var vi=0,wi=null,xi=null,ki=null,Si=!1,_i=!1,Ei=!1,Ci=0,Ti=0,Oi=null,Pi=0;function Ii(){throw Error(a(321))}function ji(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Yn(e[n],t[n]))return!1;return!0}function Ai(e,t,n,r,o,i){return vi=i,wi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,R.H=null===e||null===e.memoizedState?Wa:Qa,Ei=!1,i=n(r,o),Ei=!1,_i&&(i=Ri(t,n,r,o)),Ni(e),i}function Ni(e){R.H=Va;var t=null!==xi&&null!==xi.next;if(vi=0,ki=xi=wi=null,Si=!1,Ti=0,Oi=null,t)throw Error(a(300));null===e||Ts||null!==(e=e.dependencies)&&Eo(e)&&(Ts=!0)}function Ri(e,t,n,r){wi=e;var o=0;do{if(_i&&(Oi=null),Ti=0,_i=!1,25<=o)throw Error(a(301));if(o+=1,ki=xi=null,null!=e.updateQueue){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,null!=i.memoCache&&(i.memoCache.index=0)}R.H=Ka,i=t(n,r)}while(_i);return i}function Mi(){var e=R.H,t=e.useState()[0];return t="function"==typeof t.then?Ui(t):t,e=e.useState()[0],(null!==xi?xi.memoizedState:null)!==e&&(wi.flags|=1024),t}function Di(){var e=0!==Ci;return Ci=0,e}function zi(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Li(e){if(Si){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Si=!1}vi=0,ki=xi=wi=null,_i=!1,Ti=Ci=0,Oi=null}function Fi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ki?wi.memoizedState=ki=e:ki=ki.next=e,ki}function Bi(){if(null===xi){var e=wi.alternate;e=null!==e?e.memoizedState:null}else e=xi.next;var t=null===ki?wi.memoizedState:ki.next;if(null!==t)ki=t,xi=e;else{if(null===e){if(null===wi.alternate)throw Error(a(467));throw Error(a(310))}e={memoizedState:(xi=e).memoizedState,baseState:xi.baseState,baseQueue:xi.baseQueue,queue:xi.queue,next:null},null===ki?wi.memoizedState=ki=e:ki=ki.next=e}return ki}function Ui(e){var t=Ti;return Ti+=1,null===Oi&&(Oi=[]),e=Xo(Oi,e,t),t=wi,null===(null===ki?t.memoizedState:ki.next)&&(t=t.alternate,R.H=null===t||null===t.memoizedState?Wa:Qa),e}function qi(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return Ui(e);if(e.$$typeof===x)return To(e)}throw Error(a(438,String(e)))}function Hi(e){var t=null,n=wi.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=wi.alternate;null!==r&&(null!==(r=r.updateQueue)&&(null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},wi.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=O;return t.index++,n}function $i(e,t){return"function"==typeof t?t(e):t}function Vi(e){return Wi(Bi(),xi,e)}function Wi(e,t,n){var r=e.queue;if(null===r)throw Error(a(311));r.lastRenderedReducer=n;var o=e.baseQueue,i=r.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}t.baseQueue=o=i,r.pending=null}if(i=e.baseState,null===o)e.memoizedState=i;else{var l=s=null,u=null,c=t=o.next,d=!1;do{var f=-536870913&c.lane;if(f!==c.lane?(iu&f)===f:(vi&f)===f){var p=c.revertLane;if(0===p)null!==u&&(u=u.next={lane:0,revertLane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),f===Lo&&(d=!0);else{if((vi&p)===p){c=c.next,p===Lo&&(d=!0);continue}f={lane:0,revertLane:c.revertLane,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(l=u=f,s=i):u=u.next=f,wi.lanes|=p,pu|=p}f=c.action,Ei&&n(i,f),i=c.hasEagerState?c.eagerState:n(i,f)}else p={lane:f,revertLane:c.revertLane,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(l=u=p,s=i):u=u.next=p,wi.lanes|=f,pu|=f;c=c.next}while(null!==c&&c!==t);if(null===u?s=i:u.next=l,!Yn(i,e.memoizedState)&&(Ts=!0,d&&null!==(n=Fo)))throw n;e.memoizedState=i,e.baseState=s,e.baseQueue=u,r.lastRenderedState=i}return null===o&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Qi(e){var t=Bi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{i=e(i,s.action),s=s.next}while(s!==o);Yn(i,t.memoizedState)||(Ts=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Ki(e,t,n){var r=wi,o=Bi(),i=io;if(i){if(void 0===n)throw Error(a(407));n=n()}else n=t();var s=!Yn((xi||o).memoizedState,n);if(s&&(o.memoizedState=n,Ts=!0),o=o.queue,ya(2048,8,Ji.bind(null,r,o,e),[e]),o.getSnapshot!==t||s||null!==ki&&1&ki.memoizedState.tag){if(r.flags|=2048,ha(9,{destroy:void 0,resource:void 0},Gi.bind(null,r,o,n,t),null),null===ru)throw Error(a(349));i||124&vi||Yi(r,t,n)}return n}function Yi(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=wi.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},wi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Gi(e,t,n,r){t.value=n,t.getSnapshot=r,Xi(t)&&Zi(e)}function Ji(e,t,n){return n(function(){Xi(t)&&Zi(e)})}function Xi(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Yn(e,n)}catch(e){return!0}}function Zi(e){var t=jr(e,2);null!==t&&Du(t,e,2)}function ea(e){var t=Fi();if("function"==typeof e){var n=e;if(e=n(),Ei){fe(!0);try{n()}finally{fe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$i,lastRenderedState:e},t}function ta(e,t,n,r){return e.baseState=n,Wi(e,xi,"function"==typeof r?r:$i)}function na(e,t,n,r,o){if(qa(e))throw Error(a(485));if(null!==(e=t.action)){var i={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){i.listeners.push(e)}};null!==R.T?n(!0):i.isTransition=!1,r(i),null===(n=t.pending)?(i.next=t.pending=i,ra(t,i)):(i.next=n.next,t.pending=n.next=i)}}function ra(e,t){var n=t.action,r=t.payload,o=e.state;if(t.isTransition){var i=R.T,a={};R.T=a;try{var s=n(o,r),l=R.S;null!==l&&l(a,s),oa(e,t,s)}catch(n){aa(e,t,n)}finally{R.T=i}}else try{oa(e,t,i=n(o,r))}catch(n){aa(e,t,n)}}function oa(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){ia(e,t,n)},function(n){return aa(e,t,n)}):ia(e,t,n)}function ia(e,t,n){t.status="fulfilled",t.value=n,sa(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,ra(e,n)))}function aa(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,sa(t),t=t.next}while(t!==r)}e.action=null}function sa(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function la(e,t){return t}function ua(e,t){if(io){var n=ru.formState;if(null!==n){e:{var r=wi;if(io){if(oo){t:{for(var o=oo,i=so;8!==o.nodeType;){if(!i){o=null;break t}if(null===(o=yd(o.nextSibling))){o=null;break t}}o="F!"===(i=o.data)||"F"===i?o:null}if(o){oo=yd(o.nextSibling),r="F!"===o.data;break e}}uo(r)}r=!1}r&&(t=n[0])}}return(n=Fi()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:la,lastRenderedState:t},n.queue=r,n=Fa.bind(null,wi,r),r.dispatch=n,r=ea(!1),i=Ua.bind(null,wi,!1,r.queue),o={state:t,dispatch:null,action:e,pending:null},(r=Fi()).queue=o,n=na.bind(null,wi,o,i,n),o.dispatch=n,r.memoizedState=e,[t,n,!1]}function ca(e){return da(Bi(),xi,e)}function da(e,t,n){if(t=Wi(e,t,la)[0],e=Vi($i)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=Ui(t)}catch(e){if(e===Wo)throw Ko;throw e}else r=t;var o=(t=Bi()).queue,i=o.dispatch;return n!==t.memoizedState&&(wi.flags|=2048,ha(9,{destroy:void 0,resource:void 0},fa.bind(null,o,n),null)),[r,i,e]}function fa(e,t){e.action=t}function pa(e){var t=Bi(),n=xi;if(null!==n)return da(t,n,e);Bi(),t=t.memoizedState;var r=(n=Bi()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function ha(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=wi.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},wi.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ma(){return Bi().memoizedState}function ga(e,t,n,r){var o=Fi();r=void 0===r?null:r,wi.flags|=e,o.memoizedState=ha(1|t,{destroy:void 0,resource:void 0},n,r)}function ya(e,t,n,r){var o=Bi();r=void 0===r?null:r;var i=o.memoizedState.inst;null!==xi&&null!==r&&ji(r,xi.memoizedState.deps)?o.memoizedState=ha(t,i,n,r):(wi.flags|=e,o.memoizedState=ha(1|t,i,n,r))}function ba(e,t){ga(8390656,8,e,t)}function va(e,t){ya(2048,8,e,t)}function wa(e,t){return ya(4,2,e,t)}function xa(e,t){return ya(4,4,e,t)}function ka(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return e=e(),t.current=e,function(){t.current=null}}function Sa(e,t,n){n=null!=n?n.concat([e]):null,ya(4,4,ka.bind(null,t,e),n)}function _a(){}function Ea(e,t){var n=Bi();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&ji(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ca(e,t){var n=Bi();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&ji(t,r[1]))return r[0];if(r=e(),Ei){fe(!0);try{e()}finally{fe(!1)}}return n.memoizedState=[r,t],r}function Ta(e,t,n){return void 0===n||1073741824&vi?e.memoizedState=t:(e.memoizedState=n,e=Mu(),wi.lanes|=e,pu|=e,n)}function Oa(e,t,n,r){return Yn(n,t)?n:null!==hi.current?(e=Ta(e,n,r),Yn(e,t)||(Ts=!0),e):42&vi?(e=Mu(),wi.lanes|=e,pu|=e,t):(Ts=!0,e.memoizedState=n)}function Pa(e,t,n,r,o){var i=M.p;M.p=0!==i&&8>i?i:8;var a,s,l,u=R.T,c={};R.T=c,Ua(e,!1,t,n);try{var d=o(),f=R.S;if(null!==f&&f(c,d),null!==d&&"object"==typeof d&&"function"==typeof d.then)Ba(e,t,(a=r,s=[],l={status:"pending",value:null,reason:null,then:function(e){s.push(e)}},d.then(function(){l.status="fulfilled",l.value=a;for(var e=0;e<s.length;e++)(0,s[e])(a)},function(e){for(l.status="rejected",l.reason=e,e=0;e<s.length;e++)(0,s[e])(void 0)}),l),Ru());else Ba(e,t,r,Ru())}catch(n){Ba(e,t,{then:function(){},status:"rejected",reason:n},Ru())}finally{M.p=i,R.T=u}}function Ia(){}function ja(e,t,n,r){if(5!==e.tag)throw Error(a(476));var o=Aa(e).queue;Pa(e,o,t,D,null===n?Ia:function(){return Na(e),n(r)})}function Aa(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:D,baseState:D,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$i,lastRenderedState:D},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$i,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function Na(e){Ba(e,Aa(e).next.queue,{},Ru())}function Ra(){return To(Kd)}function Ma(){return Bi().memoizedState}function Da(){return Bi().memoizedState}function za(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Ru(),r=ai(t,e=ii(n),n);return null!==r&&(Du(r,t,n),si(r,t,n)),t={cache:Ro()},void(e.payload=t)}t=t.return}}function La(e,t,n){var r=Ru();n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},qa(e)?Ha(t,n):null!==(n=Ir(e,t,n,r))&&(Du(n,e,r),$a(n,t,r))}function Fa(e,t,n){Ba(e,t,n,Ru())}function Ba(e,t,n,r){var o={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(qa(e))Ha(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,Yn(s,a))return Pr(e,t,o,0),null===ru&&Or(),!1}catch(e){}if(null!==(n=Ir(e,t,o,r)))return Du(n,e,r),$a(n,t,r),!0}return!1}function Ua(e,t,n,r){if(r={lane:2,revertLane:Pc(),action:r,hasEagerState:!1,eagerState:null,next:null},qa(e)){if(t)throw Error(a(479))}else null!==(t=Ir(e,n,r,2))&&Du(t,e,2)}function qa(e){var t=e.alternate;return e===wi||null!==t&&t===wi}function Ha(e,t){_i=Si=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function $a(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Te(e,n)}}var Va={readContext:To,use:qi,useCallback:Ii,useContext:Ii,useEffect:Ii,useImperativeHandle:Ii,useLayoutEffect:Ii,useInsertionEffect:Ii,useMemo:Ii,useReducer:Ii,useRef:Ii,useState:Ii,useDebugValue:Ii,useDeferredValue:Ii,useTransition:Ii,useSyncExternalStore:Ii,useId:Ii,useHostTransitionStatus:Ii,useFormState:Ii,useActionState:Ii,useOptimistic:Ii,useMemoCache:Ii,useCacheRefresh:Ii},Wa={readContext:To,use:qi,useCallback:function(e,t){return Fi().memoizedState=[e,void 0===t?null:t],e},useContext:To,useEffect:ba,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,ga(4194308,4,ka.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ga(4194308,4,e,t)},useInsertionEffect:function(e,t){ga(4,2,e,t)},useMemo:function(e,t){var n=Fi();t=void 0===t?null:t;var r=e();if(Ei){fe(!0);try{e()}finally{fe(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Fi();if(void 0!==n){var o=n(t);if(Ei){fe(!0);try{n(t)}finally{fe(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=La.bind(null,wi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Fi().memoizedState=e},useState:function(e){var t=(e=ea(e)).queue,n=Fa.bind(null,wi,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:_a,useDeferredValue:function(e,t){return Ta(Fi(),e,t)},useTransition:function(){var e=ea(!1);return e=Pa.bind(null,wi,e.queue,!0,!1),Fi().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=wi,o=Fi();if(io){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===ru)throw Error(a(349));124&iu||Yi(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,ba(Ji.bind(null,r,i,e),[e]),r.flags|=2048,ha(9,{destroy:void 0,resource:void 0},Gi.bind(null,r,i,n,t),null),n},useId:function(){var e=Fi(),t=ru.identifierPrefix;if(io){var n=Xr;t="«"+t+"R"+(n=(Jr&~(1<<32-pe(Jr)-1)).toString(32)+n),0<(n=Ci++)&&(t+="H"+n.toString(32)),t+="»"}else t="«"+t+"r"+(n=Pi++).toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Ra,useFormState:ua,useActionState:ua,useOptimistic:function(e){var t=Fi();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ua.bind(null,wi,!0,n),n.dispatch=t,[e,t]},useMemoCache:Hi,useCacheRefresh:function(){return Fi().memoizedState=za.bind(null,wi)}},Qa={readContext:To,use:qi,useCallback:Ea,useContext:To,useEffect:va,useImperativeHandle:Sa,useInsertionEffect:wa,useLayoutEffect:xa,useMemo:Ca,useReducer:Vi,useRef:ma,useState:function(){return Vi($i)},useDebugValue:_a,useDeferredValue:function(e,t){return Oa(Bi(),xi.memoizedState,e,t)},useTransition:function(){var e=Vi($i)[0],t=Bi().memoizedState;return["boolean"==typeof e?e:Ui(e),t]},useSyncExternalStore:Ki,useId:Ma,useHostTransitionStatus:Ra,useFormState:ca,useActionState:ca,useOptimistic:function(e,t){return ta(Bi(),0,e,t)},useMemoCache:Hi,useCacheRefresh:Da},Ka={readContext:To,use:qi,useCallback:Ea,useContext:To,useEffect:va,useImperativeHandle:Sa,useInsertionEffect:wa,useLayoutEffect:xa,useMemo:Ca,useReducer:Qi,useRef:ma,useState:function(){return Qi($i)},useDebugValue:_a,useDeferredValue:function(e,t){var n=Bi();return null===xi?Ta(n,e,t):Oa(n,xi.memoizedState,e,t)},useTransition:function(){var e=Qi($i)[0],t=Bi().memoizedState;return["boolean"==typeof e?e:Ui(e),t]},useSyncExternalStore:Ki,useId:Ma,useHostTransitionStatus:Ra,useFormState:pa,useActionState:pa,useOptimistic:function(e,t){var n=Bi();return null!==xi?ta(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Hi,useCacheRefresh:Da},Ya=null,Ga=0;function Ja(e){var t=Ga;return Ga+=1,null===Ya&&(Ya=[]),Xo(Ya,e,t)}
vendor: 4,415 bytes, line 1
1function Xa(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function Za(e,t){if(t.$$typeof===p)throw Error(a(525));throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function es(e){return(0,e._init)(e._payload)}function ts(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function o(e,t){return(e=Lr(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=qr(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){var i=n.type;return i===g?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===C&&es(i)===t.type)?(Xa(t=o(t,n.props),n),t.return=e,t):(Xa(t=Br(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Hr(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Ur(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=qr(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case h:return Xa(n=Br(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case m:return(t=Hr(t,e.mode,n)).return=e,t;case C:return f(e,t=(0,t._init)(t._payload),n)}if(N(t)||I(t))return(t=Ur(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return f(e,Ja(t),n);if(t.$$typeof===x)return f(e,Oo(e,t),n);Za(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case h:return n.key===o?u(e,t,n,r):null;case m:return n.key===o?c(e,t,n,r):null;case C:return p(e,t,n=(o=n._init)(n._payload),r)}if(N(n)||I(n))return null!==o?null:d(e,t,n,r,null);if("function"==typeof n.then)return p(e,t,Ja(n),r);if(n.$$typeof===x)return p(e,t,Oo(e,n),r);Za(e,n)}return null}function y(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case h:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case m:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case C:return y(e,t,n,r=(0,r._init)(r._payload),o)}if(N(r)||I(r))return d(t,e=e.get(n)||null,r,o,null);if("function"==typeof r.then)return y(e,t,n,Ja(r),o);if(r.$$typeof===x)return y(e,t,n,Oo(t,r),o);Za(t,r)}return null}function b(l,u,c,d){if("object"==typeof c&&null!==c&&c.type===g&&null===c.key&&(c=c.props.children),"object"==typeof c&&null!==c){switch(c.$$typeof){case h:e:{for(var v=c.key;null!==u;){if(u.key===v){if((v=c.type)===g){if(7===u.tag){n(l,u.sibling),(d=o(u,c.props.children)).return=l,l=d;break e}}else if(u.elementType===v||"object"==typeof v&&null!==v&&v.$$typeof===C&&es(v)===u.type){n(l,u.sibling),Xa(d=o(u,c.props),c),d.return=l,l=d;break e}n(l,u);break}t(l,u),u=u.sibling}c.type===g?((d=Ur(c.props.children,l.mode,d,c.key)).return=l,l=d):(Xa(d=Br(c.type,c.key,c.props,null,l.mode,d),c),d.return=l,l=d)}return s(l);case m:e:{for(v=c.key;null!==u;){if(u.key===v){if(4===u.tag&&u.stateNode.containerInfo===c.containerInfo&&u.stateNode.implementation===c.implementation){n(l,u.sibling),(d=o(u,c.children||[])).return=l,l=d;break e}n(l,u);break}t(l,u),u=u.sibling}(d=Hr(c,l.mode,d)).return=l,l=d}return s(l);case C:return b(l,u,c=(v=c._init)(c._payload),d)}if(N(c))return function(o,a,s,l){for(var u=null,c=null,d=a,h=a=0,m=null;null!==d&&h<s.length;h++){d.index>h?(m=d,d=null):m=d.sibling;var g=p(o,d,s[h],l);if(null===g){null===d&&(d=m);break}e&&d&&null===g.alternate&&t(o,d),a=i(g,a,h),null===c?u=g:c.sibling=g,c=g,d=m}if(h===s.length)return n(o,d),io&&Zr(o,h),u;if(null===d){for(;h<s.length;h++)null!==(d=f(o,s[h],l))&&(a=i(d,a,h),null===c?u=d:c.sibling=d,c=d);
vendor: 1,978 bytes, line 1
1return io&&Zr(o,h),u}for(d=r(d);h<s.length;h++)null!==(m=y(d,o,h,s[h],l))&&(e&&null!==m.alternate&&d.delete(null===m.key?h:m.key),a=i(m,a,h),null===c?u=m:c.sibling=m,c=m);return e&&d.forEach(function(e){return t(o,e)}),io&&Zr(o,h),u}(l,u,c,d);if(I(c)){if("function"!=typeof(v=I(c)))throw Error(a(150));return function(o,s,l,u){if(null==l)throw Error(a(151));for(var c=null,d=null,h=s,m=s=0,g=null,b=l.next();null!==h&&!b.done;m++,b=l.next()){h.index>m?(g=h,h=null):g=h.sibling;var v=p(o,h,b.value,u);if(null===v){null===h&&(h=g);break}e&&h&&null===v.alternate&&t(o,h),s=i(v,s,m),null===d?c=v:d.sibling=v,d=v,h=g}if(b.done)return n(o,h),io&&Zr(o,m),c;if(null===h){for(;!b.done;m++,b=l.next())null!==(b=f(o,b.value,u))&&(s=i(b,s,m),null===d?c=b:d.sibling=b,d=b);return io&&Zr(o,m),c}for(h=r(h);!b.done;m++,b=l.next())null!==(b=y(h,o,m,b.value,u))&&(e&&null!==b.alternate&&h.delete(null===b.key?m:b.key),s=i(b,s,m),null===d?c=b:d.sibling=b,d=b);return e&&h.forEach(function(e){return t(o,e)}),io&&Zr(o,m),c}(l,u,c=v.call(c),d)}if("function"==typeof c.then)return b(l,u,Ja(c),d);if(c.$$typeof===x)return b(l,u,Oo(l,c),d);Za(l,c)}return"string"==typeof c&&""!==c||"number"==typeof c||"bigint"==typeof c?(c=""+c,null!==u&&6===u.tag?(n(l,u.sibling),(d=o(u,c)).return=l,l=d):(n(l,u),(d=qr(c,l.mode,d)).return=l,l=d),s(l)):n(l,u)}return function(e,t,n,r){try{Ga=0;var o=b(e,t,n,r);return Ya=null,o}catch(t){if(t===Wo||t===Ko)throw t;var i=Dr(29,t,null,e.mode);return i.lanes=r,i.return=e,i}}}var ns=ts(!0),rs=ts(!1),os=F(null),is=null;function as(e){var t=e.alternate;U(cs,1&cs.current),U(os,e),null===is&&(null===t||null!==hi.current||null!==t.memoizedState)&&(is=e)}function ss(e){if(22===e.tag){if(U(cs,cs.current),U(os,e),null===is){var t=e.alternate;null!==t&&null!==t.memoizedState&&(is=e)}}else ls()}function ls(){U(cs,cs.current),U(os,os.current)}function us(e){B(os),is===e&&(is=null),B(cs)}var cs=F(0);function ds(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;
vendor: 4,317 bytes, line 1
1if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||gd(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function fs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:f({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ps={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ru(),o=ii(r);o.payload=t,null!=n&&(o.callback=n),null!==(t=ai(e,o,r))&&(Du(t,e,r),si(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ru(),o=ii(r);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=ai(e,o,r))&&(Du(t,e,r),si(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ru(),r=ii(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=ai(e,r,n))&&(Du(t,e,n),si(t,e,n))}};function hs(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!Gn(n,r)||!Gn(o,i))}function ms(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ps.enqueueReplaceState(t,t.state,null)}function gs(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var o in n===t&&(n=f({},n)),e)void 0===n[o]&&(n[o]=e[o]);return n}var ys="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function bs(e){ys(e)}function vs(e){console.error(e)}function ws(e){ys(e)}function xs(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function ks(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Ss(e,t,n){return(n=ii(n)).tag=3,n.payload={element:null},n.callback=function(){xs(e,t)},n}function _s(e){return(e=ii(e)).tag=3,e}function Es(e,t,n,r){var o=n.type.getDerivedStateFromError;if("function"==typeof o){var i=r.value;e.payload=function(){return o(i)},e.callback=function(){ks(t,n,r)}}var a=n.stateNode;null!==a&&"function"==typeof a.componentDidCatch&&(e.callback=function(){ks(t,n,r),"function"!=typeof o&&(null===_u?_u=new Set([this]):_u.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var Cs=Error(a(461)),Ts=!1;function Os(e,t,n,r){t.child=null===e?rs(t,null,n,r):ns(t,e.child,n,r)}function Ps(e,t,n,r,o){n=n.render;var i=t.ref;if("ref"in r){var a={};for(var s in r)"ref"!==s&&(a[s]=r[s])}else a=r;return Co(t),r=Ai(e,t,n,a,i,o),s=Di(),null===e||Ts?(io&&s&&to(t),t.flags|=1,Os(e,t,r,o),t.child):(zi(e,t,o),Ys(e,t,o))}function Is(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||zr(i)||void 0!==i.defaultProps||null!==n.compare?((e=Br(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,js(e,t,i,r,o))}if(i=e.child,!Gs(e,o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:Gn)(a,r)&&e.ref===t.ref)return Ys(e,t,o)}return t.flags|=1,(e=Lr(i,r)).ref=t.ref,e.return=t,t.child=e}function js(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(Gn(i,r)&&e.ref===t.ref){if(Ts=!1,t.pendingProps=r=i,!Gs(e,o))return t.lanes=e.lanes,Ys(e,t,o);131072&e.flags&&(Ts=!0)}}return Ms(e,t,n,r,o)}function As(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode){if(128&t.flags){if(r=null!==i?i.baseLanes|n:n,null!==e){for(o=t.child=e.child,i=0;null!==o;)i=i|o.lanes|o.childLanes,o=o.sibling;t.childLanes=i&~r}else t.childLanes=0,t.child=null;return Ns(e,t,r,n)}if(!(536870912&n))return t.lanes=t.childLanes=536870912,Ns(e,t,null!==i?i.baseLanes|n:n,n);t.memoizedState={baseLanes:0,cachePool:null}
vendor: 4,969 bytes, line 1
1,null!==e&&$o(0,null!==i?i.cachePool:null),null!==i?gi(t,i):yi(),ss(t)}else null!==i?($o(0,i.cachePool),gi(t,i),ls(),t.memoizedState=null):(null!==e&&$o(0,null),yi(),ls());return Os(e,t,o,n),t.child}function Ns(e,t,n,r){var o=Ho();return o=null===o?null:{parent:No._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},null!==e&&$o(0,null),yi(),ss(t),null!==e&&_o(e,t,r,!0),null}function Rs(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(a(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function Ms(e,t,n,r,o){return Co(t),n=Ai(e,t,n,r,void 0,o),r=Di(),null===e||Ts?(io&&r&&to(t),t.flags|=1,Os(e,t,n,o),t.child):(zi(e,t,o),Ys(e,t,o))}function Ds(e,t,n,r,o,i){return Co(t),t.updateQueue=null,n=Ri(t,r,n,o),Ni(e),r=Di(),null===e||Ts?(io&&r&&to(t),t.flags|=1,Os(e,t,n,i),t.child):(zi(e,t,i),Ys(e,t,i))}function zs(e,t,n,r,o){if(Co(t),null===t.stateNode){var i=Rr,a=n.contextType;"object"==typeof a&&null!==a&&(i=To(a)),i=new n(r,i),t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,i.updater=ps,t.stateNode=i,i._reactInternals=t,(i=t.stateNode).props=r,i.state=t.memoizedState,i.refs={},ri(t),a=n.contextType,i.context="object"==typeof a&&null!==a?To(a):Rr,i.state=t.memoizedState,"function"==typeof(a=n.getDerivedStateFromProps)&&(fs(t,n,a,r),i.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(a=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),a!==i.state&&ps.enqueueReplaceState(i,i.state,null),di(t,r,i,o),ci(),i.state=t.memoizedState),"function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){i=t.stateNode;var s=t.memoizedProps,l=gs(n,s);i.props=l;var u=i.context,c=n.contextType;a=Rr,"object"==typeof c&&null!==c&&(a=To(c));var d=n.getDerivedStateFromProps;c="function"==typeof d||"function"==typeof i.getSnapshotBeforeUpdate,s=t.pendingProps!==s,c||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s||u!==a)&&ms(t,i,r,a),ni=!1;var f=t.memoizedState;i.state=f,di(t,r,i,o),ci(),u=t.memoizedState,s||f!==u||ni?("function"==typeof d&&(fs(t,n,d,r),u=t.memoizedState),(l=ni||hs(t,n,l,r,f,u,a))?(c||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=a,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,oi(e,t),c=gs(n,a=t.memoizedProps),i.props=c,d=t.pendingProps,f=i.context,u=n.contextType,l=Rr,"object"==typeof u&&null!==u&&(l=To(u)),(u="function"==typeof(s=n.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(a!==d||f!==l)&&ms(t,i,r,l),ni=!1,f=t.memoizedState,i.state=f,di(t,r,i,o),ci();var p=t.memoizedState;a!==d||f!==p||ni||null!==e&&null!==e.dependencies&&Eo(e.dependencies)?("function"==typeof s&&(fs(t,n,s,r),p=t.memoizedState),(c=ni||hs(t,n,c,r,f,p,l)||null!==e&&null!==e.dependencies&&Eo(e.dependencies))?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,p,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),i.props=r,i.state=p,i.context=l,r=c):("function"!=typeof i.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return i=r,Rs(e,t),r=!!(128&t.flags),i||r?(i=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:i.render(),t.flags|=1,null!==e&&r?(t.child=ns(t,e.child,null,o),t.child=ns(t,null,n,o)):Os(e,t,n,o),t.memoizedState=i.state,e=t.child):e=Ys(e,t,o),e}function Ls(e,t,n,r){return ho(),t.flags|=256,Os(e,t,n,r),t.child}var Fs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Bs(e){return{baseLanes:e,cachePool:Vo()}}function Us(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=gu),e}
vendor: 8,348 bytes, line 1
1function qs(e,t,n){var r,o=t.pendingProps,i=!1,s=!!(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&!!(2&cs.current)),r&&(i=!0,t.flags&=-129),r=!!(32&t.flags),t.flags&=-33,null===e){if(io){if(i?as(t):ls(),io){var l,u=oo;if(l=u){e:{for(l=u,u=so;8!==l.nodeType;){if(!u){u=null;break e}if(null===(l=yd(l.nextSibling))){u=null;break e}}u=l}null!==u?(t.memoizedState={dehydrated:u,treeContext:null!==Gr?{id:Jr,overflow:Xr}:null,retryLane:536870912,hydrationErrors:null},(l=Dr(18,null,null,0)).stateNode=u,l.return=t,t.child=l,ro=t,oo=null,l=!0):l=!1}l||uo(t)}if(null!==(u=t.memoizedState)&&null!==(u=u.dehydrated))return gd(u)?t.lanes=32:t.lanes=536870912,null;us(t)}return u=o.children,o=o.fallback,i?(ls(),u=$s({mode:"hidden",children:u},i=t.mode),o=Ur(o,i,n,null),u.return=t,o.return=t,u.sibling=o,t.child=u,(i=t.child).memoizedState=Bs(n),i.childLanes=Us(e,r,n),t.memoizedState=Fs,o):(as(t),Hs(t,u))}if(null!==(l=e.memoizedState)&&null!==(u=l.dehydrated)){if(s)256&t.flags?(as(t),t.flags&=-257,t=Vs(e,t,n)):null!==t.memoizedState?(ls(),t.child=e.child,t.flags|=128,t=null):(ls(),i=o.fallback,u=t.mode,o=$s({mode:"visible",children:o.children},u),(i=Ur(i,u,n,null)).flags|=2,o.return=t,i.return=t,o.sibling=i,t.child=o,ns(t,e.child,null,n),(o=t.child).memoizedState=Bs(n),o.childLanes=Us(e,r,n),t.memoizedState=Fs,t=i);else if(as(t),gd(u)){if(r=u.nextSibling&&u.nextSibling.dataset)var c=r.dgst;r=c,(o=Error(a(419))).stack="",o.digest=r,go({value:o,source:null,stack:null}),t=Vs(e,t,n)}else if(Ts||_o(e,t,n,!1),r=0!==(n&e.childLanes),Ts||r){if(null!==(r=ru)&&(0!==(o=0!==((o=42&(o=n&-n)?1:Oe(o))&(r.suspendedLanes|n))?0:o)&&o!==l.retryLane))throw l.retryLane=o,jr(e,o),Du(r,e,o),Cs;"$?"===u.data||Qu(),t=Vs(e,t,n)}else"$?"===u.data?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,oo=yd(u.nextSibling),ro=t,io=!0,ao=null,so=!1,null!==e&&(Kr[Yr++]=Jr,Kr[Yr++]=Xr,Kr[Yr++]=Gr,Jr=e.id,Xr=e.overflow,Gr=t),(t=Hs(t,o.children)).flags|=4096);return t}return i?(ls(),i=o.fallback,u=t.mode,c=(l=e.child).sibling,(o=Lr(l,{mode:"hidden",children:o.children})).subtreeFlags=65011712&l.subtreeFlags,null!==c?i=Lr(c,i):(i=Ur(i,u,n,null)).flags|=2,i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,null===(u=e.child.memoizedState)?u=Bs(n):(null!==(l=u.cachePool)?(c=No._currentValue,l=l.parent!==c?{parent:c,pool:c}:l):l=Vo(),u={baseLanes:u.baseLanes|n,cachePool:l}),i.memoizedState=u,i.childLanes=Us(e,r,n),t.memoizedState=Fs,o):(as(t),e=(n=e.child).sibling,(n=Lr(n,{mode:"visible",children:o.children})).return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function Hs(e,t){return(t=$s({mode:"visible",children:t},e.mode)).return=e,e.child=t}function $s(e,t){return(e=Dr(22,e,null,t)).lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Vs(e,t,n){return ns(t,e.child,null,n),(e=Hs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ws(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),ko(e.return,t,n)}function Qs(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Ks(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Os(e,t,r.children,n),2&(r=cs.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ws(e,n,t);else if(19===e.tag)Ws(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}switch(U(cs,r),o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ds(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Qs(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ds(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Qs(t,!0,n,null,i);break;case"together":Qs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ys(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),pu|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(_o(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Lr(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Lr(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Gs(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Eo(e))}function Js(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Ts=!0;else{if(!(Gs(e,n)||128&t.flags))return Ts=!1,function(e,t,n){switch(t.tag){case 3:W(t,t.stateNode.containerInfo),wo(0,No,e.memoizedState.cache),ho();break;case 27:case 5:K(t);break;case 4:W(t,t.stateNode.containerInfo);break;case 10:wo(0,t.type,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(as(t),t.flags|=128,null):0!==(n&t.child.childLanes)?qs(e,t,n):(as(t),null!==(e=Ys(e,t,n))?e.sibling:null);as(t);break;case 19:var o=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(_o(e,t,n,!1),r=0!==(n&t.childLanes)),o){if(r)return Ks(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),U(cs,cs.current),r)break;return null;case 22:case 23:return t.lanes=0,As(e,t,n);case 24:wo(0,No,e.memoizedState.cache)}return Ys(e,t,n)}(e,t,n);Ts=!!(131072&e.flags)}else Ts=!1,io&&1048576&t.flags&&eo(t,Qr,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var r=t.elementType,o=r._init;if(r=o(r._payload),t.type=r,"function"!=typeof r){if(null!=r){if((o=r.$$typeof)===k){t.tag=11,t=Ps(null,t,r,e,n);break e}if(o===E){t.tag=14,t=Is(null,t,r,e,n);break e}}throw t=A(r)||r,Error(a(306,t,""))}zr(r)?(e=gs(r,e),t.tag=1,t=zs(null,t,r,e,n)):(t.tag=0,t=Ms(null,t,r,e,n))}return t;case 0:return Ms(e,t,t.type,t.pendingProps,n);case 1:return zs(e,t,r=t.type,o=gs(r,t.pendingProps),n);case 3:e:{if(W(t,t.stateNode.containerInfo),null===e)throw Error(a(387));r=t.pendingProps;var i=t.memoizedState;o=i.element,oi(e,t),di(t,r,null,n);var s=t.memoizedState;if(r=s.cache,wo(0,No,r),r!==i.cache&&So(t,[No],n,!0),ci(),r=s.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Ls(e,t,r,n);break e}if(r!==o){go(o=_r(Error(a(424)),t)),t=Ls(e,t,r,n);break e}if(9===(e=t.stateNode.containerInfo).nodeType)e=e.body;else e="HTML"===e.nodeName?e.ownerDocument.body:e;for(oo=yd(e.firstChild),ro=t,io=!0,ao=null,so=!0,n=rs(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ho(),r===o){t=Ys(e,t,n);break e}Os(e,t,r,n)}t=t.child}return t;case 26:return Rs(e,t),null===e?(n=Od(t.type,null,t.pendingProps,null))?t.memoizedState=n:io||(n=t.type,e=t.pendingProps,(r=rd($.current).createElement(n))[Ae]=t,r[Ne]=e,ed(r,n,e),Ve(r),t.stateNode=r):t.memoizedState=Od(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return K(t),null===e&&io&&(r=t.stateNode=wd(t.type,t.pendingProps,$.current),ro=t,so=!0,o=oo,pd(t.type)?(bd=o,oo=yd(r.firstChild)):oo=o),Os(e,t,t.pendingProps.children,n),Rs(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&io&&((o=r=oo)&&(null!==(r=function(e,t,n,r){for(;1===e.nodeType;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Fe])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(i=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(i!==o.rel||e.getAttribute("href")!==(null==o.href||""===o.href?null:o.href)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin)||e.getAttribute("title")!==(null==o.title?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((i=e.getAttribute("src"))!==(null==o.src?null:o.src)||e.getAttribute("type")!==(null==o.type?null:o.type)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}
vendor: 9,979 bytes, line 1
1else{if("input"!==t||"hidden"!==e.type)return e;var i=null==o.name?null:""+o.name;if("hidden"===o.type&&e.getAttribute("name")===i)return e}if(null===(e=yd(e.nextSibling)))break}return null}(r,t.type,t.pendingProps,so))?(t.stateNode=r,ro=t,oo=yd(r.firstChild),so=!1,o=!0):o=!1),o||uo(t)),K(t),o=t.type,i=t.pendingProps,s=null!==e?e.memoizedProps:null,r=i.children,ad(o,i)?r=null:null!==s&&ad(o,s)&&(t.flags|=32),null!==t.memoizedState&&(o=Ai(e,t,Mi,null,null,n),Kd._currentValue=o),Rs(e,t),Os(e,t,r,n),t.child;case 6:return null===e&&io&&((e=n=oo)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=yd(e.nextSibling)))return null}return e}(n,t.pendingProps,so))?(t.stateNode=n,ro=t,oo=null,e=!0):e=!1),e||uo(t)),null;case 13:return qs(e,t,n);case 4:return W(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ns(t,null,r,n):Os(e,t,r,n),t.child;case 11:return Ps(e,t,t.type,t.pendingProps,n);case 7:return Os(e,t,t.pendingProps,n),t.child;case 8:case 12:return Os(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,wo(0,t.type,r.value),Os(e,t,r.children,n),t.child;case 9:return o=t.type._context,r=t.pendingProps.children,Co(t),r=r(o=To(o)),t.flags|=1,Os(e,t,r,n),t.child;case 14:return Is(e,t,t.type,t.pendingProps,n);case 15:return js(e,t,t.type,t.pendingProps,n);case 19:return Ks(e,t,n);case 31:return r=t.pendingProps,n=t.mode,r={mode:r.mode,children:r.children},null===e?((n=$s(r,n)).ref=t.ref,t.child=n,n.return=t,t=n):((n=Lr(e.child,r)).ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return As(e,t,n);case 24:return Co(t),r=To(No),null===e?(null===(o=Ho())&&(o=ru,i=Ro(),o.pooledCache=i,i.refCount++,null!==i&&(o.pooledCacheLanes|=n),o=i),t.memoizedState={parent:r,cache:o},ri(t),wo(0,No,o)):(0!==(e.lanes&n)&&(oi(e,t),di(t,null,null,n),ci()),o=e.memoizedState,i=t.memoizedState,o.parent!==r?(o={parent:r,cache:r},t.memoizedState=o,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=o),wo(0,No,r)):(r=i.cache,wo(0,No,r),r!==o.cache&&So(t,[No],n,!0))),Os(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(a(156,t.tag))}function Xs(e){e.flags|=4}function Zs(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!Ud(t)){if(null!==(t=os.current)&&((4194048&iu)===iu?null!==is:(62914560&iu)!==iu&&!(536870912&iu)||t!==is))throw Zo=Yo,Qo;e.flags|=8192}}function el(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Se():536870912,e.lanes|=t,yu|=t)}function tl(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function nl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=65011712&o.subtreeFlags,r|=65011712&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function rl(e,t,n){var r=t.pendingProps;switch(no(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return nl(t),null;case 3:return n=t.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),xo(No),Q(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(po(t)?Xs(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,mo())),nl(t),null;case 26:return n=t.memoizedState,null===e?(Xs(t),null!==n?(nl(t),Zs(t,n)):(nl(t),t.flags&=-16777217)):n?n!==e.memoizedState?(Xs(t),nl(t),Zs(t,n)):(nl(t),t.flags&=-16777217):(e.memoizedProps!==r&&Xs(t),nl(t),t.flags&=-16777217),null;case 27:Y(t),n=$.current;var o=t.type;if(null!==e&&null!=t.stateNode)e.memoizedProps!==r&&Xs(t);else{if(!r){if(null===t.stateNode)throw Error(a(166));return nl(t),null}e=q.current,po(t)?co(t):(e=wd(o,r,n),t.stateNode=e,Xs(t))}return nl(t),null;case 5:if(Y(t),n=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&Xs(t);else{if(!r){if(null===t.stateNode)throw Error(a(166));return nl(t),null}if(e=q.current,po(t))co(t);else{switch(o=rd($.current),e){case 1:e=o.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=o.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":(e=o.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof r.is?o.createElement("select",{is:r.is}):o.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"==typeof r.is?o.createElement(n,{is:r.is}):o.createElement(n)}}e[Ae]=t,e[Ne]=r;e:for(o=t.child;null!==o;){if(5===o.tag||6===o.tag)e.appendChild(o.stateNode);else if(4!==o.tag&&27!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;null===o.sibling;){if(null===o.return||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=e;e:switch(ed(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Xs(t)}}return nl(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&Xs(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));if(e=$.current,po(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(o=ro))switch(o.tag){case 27:case 5:r=o.memoizedProps}e[Ae]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||Gc(e.nodeValue,n)))||uo(t)}else(e=rd(e).createTextNode(r))[Ae]=t,t.stateNode=e}return nl(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(o=po(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(a(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(a(317));o[Ae]=t}else ho(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;nl(t),o=!1}else o=mo(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return 256&t.flags?(us(t),t):(us(t),null)}if(us(t),128&t.flags)return t.lanes=n,t;if(n=null!==r,e=null!==e&&null!==e.memoizedState,n){o=null,null!==(r=t.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(o=r.alternate.memoizedState.cachePool.pool);var i=null;null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(i=r.memoizedState.cachePool.pool),i!==o&&(r.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),el(t,t.updateQueue),nl(t),null;case 4:return Q(),null===e&&Bc(t.stateNode.containerInfo),nl(t),null;case 10:return xo(t.type),nl(t),null;case 19:if(B(cs),null===(o=t.memoizedState))return nl(t),null;if(r=!!(128&t.flags),null===(i=o.rendering))if(r)tl(o,!1);else{if(0!==fu||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(i=ds(e))){for(t.flags|=128,tl(o,!1),e=i.updateQueue,t.updateQueue=e,el(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Fr(n,e),n=n.sibling;return U(cs,1&cs.current|2),t.child}e=e.sibling}null!==o.tail&&te()>ku&&(t.flags|=128,r=!0,tl(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ds(i))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,el(t,e),tl(o,!0),null===o.tail&&"hidden"===o.tailMode&&!i.alternate&&!io)return nl(t),null}else 2*te()-o.renderingStartTime>ku&&536870912!==n&&(t.flags|=128,r=!0,tl(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(null!==(e=o.last)?e.sibling=i:t.child=i,o.last=i)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=te(),t.sibling=null,e=cs.current,U(cs,r?1&e|2:1&e),t):(nl(t),null);case 22:case 23:return us(t),bi(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?!!(536870912&n)&&!(128&t.flags)&&(nl(t),6&t.subtreeFlags&&(t.flags|=8192)):nl(t),null!==(n=t.updateQueue)&&el(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&B(qo),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),xo(No),nl(t),null;case 25:case 30:return null}throw Error(a(156,t.tag))}function ol(e,t){switch(no(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return xo(No),Q(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return Y(t),null;case 13:if(us(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));ho()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return B(cs),null;case 4:return Q(),null;case 10:return xo(t.type),null;case 22:case 23:return us(t),bi(),null!==e&&B(qo),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return xo(No),null;default:return null}}function il(e,t){switch(no(t),t.tag){case 3:xo(No),Q();break;case 26:case 27:case 5:Y(t);break;case 4:Q();break;case 13:us(t);break;case 19:B(cs);break;case 10:xo(t.type);break;case 22:case 23:us(t),bi(),null!==e&&B(qo);break;case 24:xo(No)}}function al(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var o=r.next;n=o;do{if((n.tag&e)===e){r=void 0;var i=n.create,a=n.inst;r=i(),a.destroy=r}n=n.next}while(n!==o)}}catch(e){cc(t,t.return,e)}}function sl(e,t,n){try{var r=t.updateQueue,o=null!==r?r.lastEffect:null;if(null!==o){var i=o.next;r=i;do{if((r.tag&e)===e){var a=r.inst,s=a.destroy;if(void 0!==s){a.destroy=void 0,o=t;var l=n,u=s;try{u()}catch(e){cc(o,l,e)}}}r=r.next}
vendor: 4,333 bytes, line 1
1while(r!==i)}}catch(e){cc(t,t.return,e)}}function ll(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{pi(t,n)}catch(t){cc(e,e.return,t)}}}function ul(e,t,n){n.props=gs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){cc(e,t,n)}}function cl(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(n){cc(e,t,n)}}function dl(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(n){cc(e,t,n)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(n){cc(e,t,n)}else n.current=null}function fl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){cc(e,e.return,t)}}function pl(e,t,n){try{var r=e.stateNode;!function(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,i=null,s=null,l=null,u=null,c=null,d=null;for(h in n){var f=n[h];if(n.hasOwnProperty(h)&&null!=f)switch(h){case"checked":case"value":break;case"defaultValue":u=f;default:r.hasOwnProperty(h)||Xc(e,t,h,null,r,f)}}for(var p in r){var h=r[p];if(f=n[p],r.hasOwnProperty(p)&&(null!=h||null!=f))switch(p){case"type":i=h;break;case"name":o=h;break;case"checked":c=h;break;case"defaultChecked":d=h;break;case"value":s=h;break;case"defaultValue":l=h;break;case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(a(137,t));break;default:h!==f&&Xc(e,t,p,h,r,f)}}return void gt(e,s,l,u,c,d,i,o);case"select":for(i in h=s=l=p=null,n)if(u=n[i],n.hasOwnProperty(i)&&null!=u)switch(i){case"value":break;case"multiple":h=u;default:r.hasOwnProperty(i)||Xc(e,t,i,null,r,u)}for(o in r)if(i=r[o],u=n[o],r.hasOwnProperty(o)&&(null!=i||null!=u))switch(o){case"value":p=i;break;case"defaultValue":l=i;break;case"multiple":s=i;default:i!==u&&Xc(e,t,o,i,r,u)}return t=l,n=s,r=h,void(null!=p?vt(e,!!n,p,!1):!!r!=!!n&&(null!=t?vt(e,!!n,t,!0):vt(e,!!n,n?[]:"",!1)));case"textarea":for(l in h=p=null,n)if(o=n[l],n.hasOwnProperty(l)&&null!=o&&!r.hasOwnProperty(l))switch(l){case"value":case"children":break;default:Xc(e,t,l,null,r,o)}for(s in r)if(o=r[s],i=n[s],r.hasOwnProperty(s)&&(null!=o||null!=i))switch(s){case"value":p=o;break;case"defaultValue":h=o;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=o)throw Error(a(91));break;default:o!==i&&Xc(e,t,s,o,r,i)}return void wt(e,p,h);case"option":for(var m in n)if(p=n[m],n.hasOwnProperty(m)&&null!=p&&!r.hasOwnProperty(m))if("selected"===m)e.selected=!1;else Xc(e,t,m,null,r,p);for(u in r)if(p=r[u],h=n[u],r.hasOwnProperty(u)&&p!==h&&(null!=p||null!=h))if("selected"===u)e.selected=p&&"function"!=typeof p&&"symbol"!=typeof p;else Xc(e,t,u,p,r,h);return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in n)p=n[g],n.hasOwnProperty(g)&&null!=p&&!r.hasOwnProperty(g)&&Xc(e,t,g,null,r,p);for(c in r)if(p=r[c],h=n[c],r.hasOwnProperty(c)&&p!==h&&(null!=p||null!=h))switch(c){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(a(137,t));break;default:Xc(e,t,c,p,r,h)}return;default:if(Ct(t)){for(var y in n)p=n[y],n.hasOwnProperty(y)&&void 0!==p&&!r.hasOwnProperty(y)&&Zc(e,t,y,void 0,r,p);for(d in r)p=r[d],h=n[d],!r.hasOwnProperty(d)||p===h||void 0===p&&void 0===h||Zc(e,t,d,p,r,h);return}}for(var b in n)p=n[b],n.hasOwnProperty(b)&&null!=p&&!r.hasOwnProperty(b)&&Xc(e,t,b,null,r,p);for(f in r)p=r[f],h=n[f],!r.hasOwnProperty(f)||p===h||null==p&&null==h||Xc(e,t,f,p,r,h)}(r,e.type,n,t),r[Ne]=t}catch(t){cc(e,e.return,t)}}function hl(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&pd(e.type)||4===e.tag}function ml(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||hl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&pd(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function gl(e,t,n){var r=e.tag;
vendor: 30,579 bytes, line 1
1if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Jc));else if(4!==r&&(27===r&&pd(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(gl(e,t,n),e=e.sibling;null!==e;)gl(e,t,n),e=e.sibling}function yl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&pd(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(yl(e,t,n),e=e.sibling;null!==e;)yl(e,t,n),e=e.sibling}function bl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);ed(t,r,n),t[Ae]=e,t[Ne]=n}catch(t){cc(e,e.return,t)}}var vl=!1,wl=!1,xl=!1,kl="function"==typeof WeakSet?WeakSet:Set,Sl=null;function _l(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:zl(e,n),4&r&&al(5,n);break;case 1:if(zl(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(e){cc(n,n.return,e)}else{var o=gs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){cc(n,n.return,e)}}64&r&&ll(n),512&r&&cl(n,n.return);break;case 3:if(zl(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{pi(e,t)}catch(e){cc(n,n.return,e)}}break;case 27:null===t&&4&r&&bl(n);case 26:case 5:zl(e,n),null===t&&4&r&&fl(n),512&r&&cl(n,n.return);break;case 12:zl(e,n);break;case 13:zl(e,n),4&r&&Il(e,n),64&r&&(null!==(e=n.memoizedState)&&(null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$?"!==e.data||"complete"===n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=hc.bind(null,n))));break;case 22:if(!(r=null!==n.memoizedState||vl)){t=null!==t&&null!==t.memoizedState||wl,o=vl;var i=wl;vl=r,(wl=t)&&!i?Fl(e,n,!!(8772&n.subtreeFlags)):zl(e,n),vl=o,wl=i}break;case 30:break;default:zl(e,n)}}function El(e){var t=e.alternate;null!==t&&(e.alternate=null,El(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&Be(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Cl=null,Tl=!1;function Ol(e,t,n){for(n=n.child;null!==n;)Pl(e,t,n),n=n.sibling}function Pl(e,t,n){if(de&&"function"==typeof de.onCommitFiberUnmount)try{de.onCommitFiberUnmount(ce,n)}catch(e){}switch(n.tag){case 26:wl||dl(n,t),Ol(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:wl||dl(n,t);var r=Cl,o=Tl;pd(n.type)&&(Cl=n.stateNode,Tl=!1),Ol(e,t,n),xd(n.stateNode),Cl=r,Tl=o;break;case 5:wl||dl(n,t);case 6:if(r=Cl,o=Tl,Cl=null,Ol(e,t,n),Tl=o,null!==(Cl=r))if(Tl)try{(9===Cl.nodeType?Cl.body:"HTML"===Cl.nodeName?Cl.ownerDocument.body:Cl).removeChild(n.stateNode)}catch(e){cc(n,t,e)}else try{Cl.removeChild(n.stateNode)}catch(e){cc(n,t,e)}break;case 18:null!==Cl&&(Tl?(hd(9===(e=Cl).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Of(e)):hd(Cl,n.stateNode));break;case 4:r=Cl,o=Tl,Cl=n.stateNode.containerInfo,Tl=!0,Ol(e,t,n),Cl=r,Tl=o;break;case 0:case 11:case 14:case 15:wl||sl(2,n,t),wl||sl(4,n,t),Ol(e,t,n);break;case 1:wl||(dl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&ul(n,t,r)),Ol(e,t,n);break;case 21:Ol(e,t,n);break;case 22:wl=(r=wl)||null!==n.memoizedState,Ol(e,t,n),wl=r;break;default:Ol(e,t,n)}}function Il(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&(null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))))try{Of(e)}catch(e){cc(t,t.return,e)}}function jl(e,t){var n=function(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new kl),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new kl),t;default:throw Error(a(435,e.tag))}}(e);t.forEach(function(t){var r=mc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}function Al(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r],i=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 27:if(pd(l.type)){Cl=l.stateNode,Tl=!1;break e}break;case 5:Cl=l.stateNode,Tl=!1;break e;case 3:case 4:Cl=l.stateNode.containerInfo,Tl=!0;break e}l=l.return}if(null===Cl)throw Error(a(160));Pl(i,s,o),Cl=null,Tl=!1,null!==(i=o.alternate)&&(i.return=null),o.return=null}if(13878&t.subtreeFlags)for(t=t.child;null!==t;)Rl(t,e),t=t.sibling}var Nl=null;function Rl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Al(t,e),Ml(e),4&r&&(sl(3,e,e.return),al(3,e),sl(5,e,e.return));break;case 1:Al(t,e),Ml(e),512&r&&(wl||null===n||dl(n,n.return)),64&r&&vl&&(null!==(e=e.updateQueue)&&(null!==(r=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?r:n.concat(r))));break;case 26:var o=Nl;if(Al(t,e),Ml(e),512&r&&(wl||null===n||dl(n,n.return)),4&r){var i=null!==n?n.memoizedState:null;if(r=e.memoizedState,null===n)if(null===r)if(null===e.stateNode){e:{r=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(r){case"title":(!(i=o.getElementsByTagName("title")[0])||i[Fe]||i[Ae]||"http://www.w3.org/2000/svg"===i.namespaceURI||i.hasAttribute("itemprop"))&&(i=o.createElement(r),o.head.insertBefore(i,o.querySelector("head > title"))),ed(i,r,n),i[Ae]=e,Ve(i),r=i;break e;case"link":var s=Fd("link","href",o).get(r+(n.href||""));if(s)for(var l=0;l<s.length;l++)if((i=s[l]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&i.getAttribute("rel")===(null==n.rel?null:n.rel)&&i.getAttribute("title")===(null==n.title?null:n.title)&&i.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){s.splice(l,1);break t}ed(i=o.createElement(r),r,n),o.head.appendChild(i);break;case"meta":if(s=Fd("meta","content",o).get(r+(n.content||"")))for(l=0;l<s.length;l++)if((i=s[l]).getAttribute("content")===(null==n.content?null:""+n.content)&&i.getAttribute("name")===(null==n.name?null:n.name)&&i.getAttribute("property")===(null==n.property?null:n.property)&&i.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&i.getAttribute("charset")===(null==n.charSet?null:n.charSet)){s.splice(l,1);break t}ed(i=o.createElement(r),r,n),o.head.appendChild(i);break;default:throw Error(a(468,r))}i[Ae]=e,Ve(i),r=i}e.stateNode=r}else Bd(o,e.type,e.stateNode);else e.stateNode=Rd(o,r,e.memoizedProps);else i!==r?(null===i?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):i.count--,null===r?Bd(o,e.type,e.stateNode):Rd(o,r,e.memoizedProps)):null===r&&null!==e.stateNode&&pl(e,e.memoizedProps,n.memoizedProps)}break;case 27:Al(t,e),Ml(e),512&r&&(wl||null===n||dl(n,n.return)),null!==n&&4&r&&pl(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Al(t,e),Ml(e),512&r&&(wl||null===n||dl(n,n.return)),32&e.flags){o=e.stateNode;try{kt(o,"")}catch(t){cc(e,e.return,t)}}4&r&&null!=e.stateNode&&pl(e,o=e.memoizedProps,null!==n?n.memoizedProps:o),1024&r&&(xl=!0);break;case 6:if(Al(t,e),Ml(e),4&r){if(null===e.stateNode)throw Error(a(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){cc(e,e.return,t)}}break;case 3:if(Ld=null,o=Nl,Nl=_d(t.containerInfo),Al(t,e),Nl=o,Ml(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Of(t.containerInfo)}catch(t){cc(e,e.return,t)}xl&&(xl=!1,Dl(e));break;case 4:r=Nl,Nl=_d(e.stateNode.containerInfo),Al(t,e),Ml(e),Nl=r;break;case 12:default:Al(t,e),Ml(e);break;case 13:Al(t,e),Ml(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(xu=te()),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,jl(e,r)));break;case 22:o=null!==e.memoizedState;var u=null!==n&&null!==n.memoizedState,c=vl,d=wl;if(vl=c||o,wl=d||u,Al(t,e),wl=d,vl=c,Ml(e),8192&r)e:for(t=e.stateNode,t._visibility=o?-2&t._visibility:1|t._visibility,o&&(null===n||u||vl||wl||Ll(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){u=n=t;try{if(i=u.stateNode,o)"function"==typeof(s=i.style).setProperty?s.setProperty("display","none","important"):s.display="none";else{l=u.stateNode;var f=u.memoizedProps.style,p=null!=f&&f.hasOwnProperty("display")?f.display:null;l.style.display=null==p||"boolean"==typeof p?"":(""+p).trim()}}catch(e){cc(u,u.return,e)}}}else if(6===t.tag){if(null===n){u=t;try{u.stateNode.nodeValue=o?"":u.memoizedProps}catch(e){cc(u,u.return,e)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&r&&(null!==(r=e.updateQueue)&&(null!==(n=r.retryQueue)&&(r.retryQueue=null,jl(e,n))));break;case 19:Al(t,e),Ml(e),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,jl(e,r)));case 30:case 21:}}function Ml(e){var t=e.flags;if(2&t){try{for(var n,r=e.return;null!==r;){if(hl(r)){n=r;break}r=r.return}if(null==n)throw Error(a(160));switch(n.tag){case 27:var o=n.stateNode;yl(e,ml(e),o);break;case 5:var i=n.stateNode;32&n.flags&&(kt(i,""),n.flags&=-33),yl(e,ml(e),i);break;case 3:case 4:var s=n.stateNode.containerInfo;gl(e,ml(e),s);break;default:throw Error(a(161))}}catch(t){cc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Dl(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Dl(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function zl(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)_l(e,t.alternate,t),t=t.sibling}function Ll(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:sl(4,t,t.return),Ll(t);break;case 1:dl(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&ul(t,t.return,n),Ll(t);break;case 27:xd(t.stateNode);case 26:case 5:dl(t,t.return),Ll(t);break;case 22:null===t.memoizedState&&Ll(t);break;default:Ll(t)}e=e.sibling}}function Fl(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,o=e,i=t,a=i.flags;switch(i.tag){case 0:case 11:case 15:Fl(o,i,n),al(4,i);break;case 1:if(Fl(o,i,n),"function"==typeof(o=(r=i).stateNode).componentDidMount)try{o.componentDidMount()}catch(e){cc(r,r.return,e)}if(null!==(o=(r=i).updateQueue)){var s=r.stateNode;try{var l=o.shared.hiddenCallbacks;if(null!==l)for(o.shared.hiddenCallbacks=null,o=0;o<l.length;o++)fi(l[o],s)}catch(e){cc(r,r.return,e)}}n&&64&a&&ll(i),cl(i,i.return);break;case 27:bl(i);case 26:case 5:Fl(o,i,n),n&&null===r&&4&a&&fl(i),cl(i,i.return);break;case 12:Fl(o,i,n);break;case 13:Fl(o,i,n),n&&4&a&&Il(o,i);break;case 22:null===i.memoizedState&&Fl(o,i,n),cl(i,i.return);break;case 30:break;default:Fl(o,i,n)}t=t.sibling}}function Bl(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Mo(n))}function Ul(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Mo(e))}function ql(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)Hl(e,t,n,r),t=t.sibling}function Hl(e,t,n,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:ql(e,t,n,r),2048&o&&al(9,t);break;case 1:case 13:default:ql(e,t,n,r);break;case 3:ql(e,t,n,r),2048&o&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Mo(e)));break;case 12:if(2048&o){ql(e,t,n,r),e=t.stateNode;try{var i=t.memoizedProps,a=i.id,s=i.onPostCommit;"function"==typeof s&&s(a,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(e){cc(t,t.return,e)}}else ql(e,t,n,r);break;case 23:break;case 22:i=t.stateNode,a=t.alternate,null!==t.memoizedState?2&i._visibility?ql(e,t,n,r):Vl(e,t):2&i._visibility?ql(e,t,n,r):(i._visibility|=2,$l(e,t,n,r,!!(10256&t.subtreeFlags))),2048&o&&Bl(a,t);break;case 24:ql(e,t,n,r),2048&o&&Ul(t.alternate,t)}}function $l(e,t,n,r,o){for(o=o&&!!(10256&t.subtreeFlags),t=t.child;null!==t;){var i=e,a=t,s=n,l=r,u=a.flags;switch(a.tag){case 0:case 11:case 15:$l(i,a,s,l,o),al(8,a);break;case 23:break;case 22:var c=a.stateNode;null!==a.memoizedState?2&c._visibility?$l(i,a,s,l,o):Vl(i,a):(c._visibility|=2,$l(i,a,s,l,o)),o&&2048&u&&Bl(a.alternate,a);break;case 24:$l(i,a,s,l,o),o&&2048&u&&Ul(a.alternate,a);break;default:$l(i,a,s,l,o)}t=t.sibling}}function Vl(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,o=r.flags;switch(r.tag){case 22:Vl(n,r),2048&o&&Bl(r.alternate,r);break;case 24:Vl(n,r),2048&o&&Ul(r.alternate,r);break;default:Vl(n,r)}t=t.sibling}}var Wl=8192;function Ql(e){if(e.subtreeFlags&Wl)for(e=e.child;null!==e;)Kl(e),e=e.sibling}function Kl(e){switch(e.tag){case 26:Ql(e),e.flags&Wl&&null!==e.memoizedState&&function(e,t,n){if(null===qd)throw Error(a(475));var r=qd;if(!("stylesheet"!==t.type||"string"==typeof n.media&&!1===matchMedia(n.media).matches||4&t.state.loading)){if(null===t.instance){var o=Pd(n.href),i=e.querySelector(Id(o));if(i)return null!==(e=i._p)&&"object"==typeof e&&"function"==typeof e.then&&(r.count++,r=$d.bind(r),e.then(r,r)),t.state.loading|=4,t.instance=i,void Ve(i);i=e.ownerDocument||e,n=jd(n),(o=kd.get(o))&&Dd(n,o),Ve(i=i.createElement("link"));var s=i;s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),ed(i,"link",n),t.instance=i}null===r.stylesheets&&(r.stylesheets=new Map),r.stylesheets.set(t,e),(e=t.state.preload)&&!(3&t.state.loading)&&(r.count++,t=$d.bind(r),e.addEventListener("load",t),e.addEventListener("error",t))}}(Nl,e.memoizedState,e.memoizedProps);break;case 5:default:Ql(e);break;case 3:case 4:var t=Nl;Nl=_d(e.stateNode.containerInfo),Ql(e),Nl=t;break;case 22:null===e.memoizedState&&(null!==(t=e.alternate)&&null!==t.memoizedState?(t=Wl,Wl=16777216,Ql(e),Wl=t):Ql(e))}}function Yl(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function Gl(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Sl=r,Zl(r,e)}Yl(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)Jl(e),e=e.sibling}function Jl(e){switch(e.tag){case 0:case 11:case 15:Gl(e),2048&e.flags&&sl(9,e,e.return);break;case 3:case 12:default:Gl(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,Xl(e)):Gl(e)}}function Xl(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Sl=r,Zl(r,e)}Yl(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:sl(8,t,t.return),Xl(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,Xl(t));break;default:Xl(t)}e=e.sibling}}function Zl(e,t){for(;null!==Sl;){var n=Sl;switch(n.tag){case 0:case 11:case 15:sl(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Mo(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Sl=r;else e:for(n=e;null!==Sl;){var o=(r=Sl).sibling,i=r.return;if(El(r),r===n){Sl=null;break e}if(null!==o){o.return=i,Sl=o;break e}Sl=i}}}var eu={getCacheForType:function(e){var t=To(No),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n}},tu="function"==typeof WeakMap?WeakMap:Map,nu=0,ru=null,ou=null,iu=0,au=0,su=null,lu=!1,uu=!1,cu=!1,du=0,fu=0,pu=0,hu=0,mu=0,gu=0,yu=0,bu=null,vu=null,wu=!1,xu=0,ku=1/0,Su=null,_u=null,Eu=0,Cu=null,Tu=null,Ou=0,Pu=0,Iu=null,ju=null,Au=0,Nu=null;function Ru(){if(2&nu&&0!==iu)return iu&-iu;if(null!==R.T){return 0!==Lo?Lo:Pc()}return Ie()}function Mu(){0===gu&&(gu=536870912&iu&&!io?536870912:ke());var e=os.current;return null!==e&&(e.flags|=32),gu}function Du(e,t,n){(e!==ru||2!==au&&9!==au)&&null===e.cancelPendingCommit||(Hu(e,0),Bu(e,iu,gu,!1)),Ee(e,n),2&nu&&e===ru||(e===ru&&(!(2&nu)&&(hu|=n),4===fu&&Bu(e,iu,gu,!1)),kc(e))}function zu(e,t,n){if(6&nu)throw Error(a(327));for(var r=!n&&!(124&t)&&0===(t&e.expiredLanes)||we(e,t),o=r?function(e,t){var n=nu;nu|=2;var r=Vu(),o=Wu();ru!==e||iu!==t?(Su=null,ku=te()+500,Hu(e,t)):uu=we(e,t);e:for(;;)try{if(0!==au&&null!==ou){t=ou;var i=su;t:switch(au){case 1:au=0,su=null,Zu(e,t,i,1);break;case 2:case 9:if(Go(i)){au=0,su=null,Xu(t);break}t=function(){2!==au&&9!==au||ru!==e||(au=7),kc(e)},i.then(t,t);break e;case 3:au=7;break e;case 4:au=5;break e;case 7:Go(i)?(au=0,su=null,Xu(t)):(au=0,su=null,Zu(e,t,i,7));break;case 5:var s=null;switch(ou.tag){case 26:s=ou.memoizedState;case 5:case 27:var l=ou;if(!s||Ud(s)){au=0,su=null;var u=l.sibling;if(null!==u)ou=u;else{var c=l.return;null!==c?(ou=c,ec(c)):ou=null}break t}}au=0,su=null,Zu(e,t,i,5);break;case 6:au=0,su=null,Zu(e,t,i,6);break;case 8:qu(),fu=6;break e;default:throw Error(a(462))}}Gu();break}catch(t){$u(e,t)}return vo=bo=null,R.H=r,R.A=o,nu=n,null!==ou?0:(ru=null,iu=0,Or(),fu)}(e,t):Ku(e,t,!0),i=r;;){if(0===o){uu&&!r&&Bu(e,t,0,!1);break}if(n=e.current.alternate,!i||Fu(n)){if(2===o){if(i=t,e.errorRecoveryDisabledLanes&i)var s=0;else s=0!==(s=-536870913&e.pendingLanes)?s:536870912&s?536870912:0;if(0!==s){t=s;e:{var l=e;o=bu;var u=l.current.memoizedState.isDehydrated;if(u&&(Hu(l,s).flags|=256),2!==(s=Ku(l,s,!1))){if(cu&&!u){l.errorRecoveryDisabledLanes|=i,hu|=i,o=4;break e}i=vu,vu=o,null!==i&&(null===vu?vu=i:vu.push.apply(vu,i))}o=s}if(i=!1,2!==o)continue}}if(1===o){Hu(e,0),Bu(e,t,0,!0);break}e:{switch(r=e,i=o){case 0:case 1:throw Error(a(345));case 4:if((4194048&t)!==t)break;case 6:Bu(r,t,gu,!lu);break e;case 2:vu=null;break;case 3:case 5:break;default:throw Error(a(329))}if((62914560&t)===t&&10<(o=xu+300-te())){if(Bu(r,t,gu,!lu),0!==ve(r,0,!0))break e;r.timeoutHandle=ld(Lu.bind(null,r,n,vu,Su,wu,t,gu,hu,yu,lu,i,2,-0,0),o)}else Lu(r,n,vu,Su,wu,t,gu,hu,yu,lu,i,0,-0,0)}break}o=Ku(e,t,!1),i=!1}kc(e)}function Lu(e,t,n,r,o,i,s,l,u,c,d,f,p,h){if(e.timeoutHandle=-1,(8192&(f=t.subtreeFlags)||!(16785408&~f))&&(qd={stylesheets:null,count:0,unsuspend:Hd},Kl(t),null!==(f=function(){if(null===qd)throw Error(a(475));var e=qd;return e.stylesheets&&0===e.count&&Wd(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&Wd(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}())))return e.cancelPendingCommit=f(nc.bind(null,e,t,i,n,r,o,s,l,u,d,1,p,h)),void Bu(e,i,s,!c);nc(e,t,i,n,r,o,s,l,u)}function Fu(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&(null!==(n=t.updateQueue)&&null!==(n=n.stores)))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!Yn(i(),o))return!1}catch(e){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Bu(e,t,n,r){t&=~mu,t&=~hu,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var i=31-pe(o),a=1<<i;r[i]=-1,o&=~a}0!==n&&Ce(e,n,t)}function Uu(){return!!(6&nu)||(Sc(0,!1),!1)}function qu(){if(null!==ou){if(0===au)var e=ou.return;else vo=bo=null,Li(e=ou),Ya=null,Ga=0,e=ou;for(;null!==e;)il(e.alternate,e),e=e.return;ou=null}}function Hu(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,ud(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),qu(),ru=e,ou=n=Lr(e.current,null),iu=t,au=0,su=null,lu=!1,uu=we(e,t),cu=!1,yu=gu=mu=hu=pu=fu=0,vu=bu=null,wu=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var o=31-pe(r),i=1<<o;t|=e[o],r&=~i}return du=t,Or(),n}function $u(e,t){wi=null,R.H=Va,t===Wo||t===Ko?(t=ei(),au=3):t===Qo?(t=ei(),au=4):au=t===Cs?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,su=t,null===ou&&(fu=1,xs(e,_r(t,e.current)))}function Vu(){var e=R.H;return R.H=Va,null===e?Va:e}function Wu(){var e=R.A;return R.A=eu,e}function Qu(){fu=4,lu||(4194048&iu)!==iu&&null!==os.current||(uu=!0),!(134217727&pu)&&!(134217727&hu)||null===ru||Bu(ru,iu,gu,!1)}function Ku(e,t,n){var r=nu;nu|=2;var o=Vu(),i=Wu();ru===e&&iu===t||(Su=null,Hu(e,t)),t=!1;var a=fu;e:for(;;)try{if(0!==au&&null!==ou){var s=ou,l=su;switch(au){case 8:qu(),a=6;break e;case 3:case 2:case 9:case 6:null===os.current&&(t=!0);var u=au;if(au=0,su=null,Zu(e,s,l,u),n&&uu){a=0;break e}break;default:u=au,au=0,su=null,Zu(e,s,l,u)}}Yu(),a=fu;break}catch(t){$u(e,t)}return t&&e.shellSuspendCounter++,vo=bo=null,nu=r,R.H=o,R.A=i,null===ou&&(ru=null,iu=0,Or()),a}function Yu(){for(;null!==ou;)Ju(ou)}function Gu(){for(;null!==ou&&!Z();)Ju(ou)}function Ju(e){var t=Js(e.alternate,e,du);e.memoizedProps=e.pendingProps,null===t?ec(e):ou=t}function Xu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Ds(n,t,t.pendingProps,t.type,void 0,iu);break;case 11:t=Ds(n,t,t.pendingProps,t.type.render,t.ref,iu);break;case 5:Li(t);default:il(n,t),t=Js(n,t=ou=Fr(t,du),du)}e.memoizedProps=e.pendingProps,null===t?ec(e):ou=t}function Zu(e,t,n,r){vo=bo=null,Li(t),Ya=null,Ga=0;var o=t.return;try{if(function(e,t,n,r,o){if(n.flags|=32768,null!==r&&"object"==typeof r&&"function"==typeof r.then){if(null!==(t=n.alternate)&&_o(t,n,o,!0),null!==(n=os.current)){switch(n.tag){case 13:return null===is?Qu():null===n.alternate&&0===fu&&(fu=3),n.flags&=-257,n.flags|=65536,n.lanes=o,r===Yo?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([r]):t.add(r),dc(e,r,o)),!1;case 22:return n.flags|=65536,r===Yo?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([r]):n.add(r),dc(e,r,o)),!1}throw Error(a(435,n.tag))}return dc(e,r,o),Qu(),!1}if(io)return null!==(t=os.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=o,r!==lo&&go(_r(e=Error(a(422),{cause:r}),n))):(r!==lo&&go(_r(t=Error(a(423),{cause:r}),n)),(e=e.current.alternate).flags|=65536,o&=-o,e.lanes|=o,r=_r(r,n),li(e,o=Ss(e.stateNode,r,o)),4!==fu&&(fu=2)),!1;var i=Error(a(520),{cause:r});if(i=_r(i,n),null===bu?bu=[i]:bu.push(i),4!==fu&&(fu=2),null===t)return!0;r=_r(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,li(n,e=Ss(n.stateNode,r,e)),!1;case 1:if(t=n.type,i=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===i||"function"!=typeof i.componentDidCatch||null!==_u&&_u.has(i))))return n.flags|=65536,o&=-o,n.lanes|=o,Es(o=_s(o),e,n,r),li(n,o),!1}n=n.return}while(null!==n);return!1}(e,o,t,n,iu))return fu=1,xs(e,_r(n,e.current)),void(ou=null)}catch(t){if(null!==o)throw ou=o,t;return fu=1,xs(e,_r(n,e.current)),void(ou=null)}32768&t.flags?(io||1===r?e=!0:uu||536870912&iu?e=!1:(lu=e=!0,(2===r||9===r||3===r||6===r)&&(null!==(r=os.current)&&13===r.tag&&(r.flags|=16384))),tc(t,e)):ec(t)}function ec(e){var t=e;do{if(32768&t.flags)return void tc(t,lu);e=t.return;var n=rl(t.alternate,t,du);if(null!==n)return void(ou=n);if(null!==(t=t.sibling))return void(ou=t);ou=t=e}while(null!==t);0===fu&&(fu=5)}function tc(e,t){do{var n=ol(e.alternate,e);if(null!==n)return n.flags&=32767,void(ou=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(ou=e);ou=e=n}while(null!==e);fu=6,ou=null}function nc(e,t,n,r,o,i,s,l,u){e.cancelPendingCommit=null;do{sc()}while(0!==Eu);if(6&nu)throw Error(a(327));if(null!==t){if(t===e.current)throw Error(a(177));if(i=t.lanes|t.childLanes,function(e,t,n,r,o,i){var a=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,u=e.hiddenUpdates;for(n=a&~n;0<n;){var c=31-pe(n),d=1<<c;s[c]=0,l[c]=-1;var f=u[c];if(null!==f)for(u[c]=null,c=0;c<f.length;c++){var p=f[c];null!==p&&(p.lane&=-536870913)}n&=~d}0!==r&&Ce(e,r,0),0!==i&&0===o&&0!==e.tag&&(e.suspendedLanes|=i&~(a&~t))}(e,n,i|=Tr,s,l,u),e===ru&&(ou=ru=null,iu=0),Tu=t,Cu=e,Ou=n,Pu=i,Iu=o,ju=r,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,J(ie,function(){return lc(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(13878&t.flags),13878&t.subtreeFlags||r){r=R.T,R.T=null,o=M.p,M.p=2,s=nu,nu|=4;try{!function(e,t){if(e=e.containerInfo,td=nf,tr(e=er(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==o&&3!==f.nodeType||(l=s+o),f!==i||0!==r&&3!==f.nodeType||(u=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===o&&(l=s),p===i&&++d===r&&(u=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(nd={focusedElem:e,selectionRange:n},nf=!1,Sl=t;null!==Sl;)if(e=(t=Sl).child,1024&t.subtreeFlags&&null!==e)e.return=t,Sl=e;else for(;null!==Sl;){switch(i=(t=Sl).alternate,e=t.flags,t.tag){case 0:case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==i){e=void 0,n=t,o=i.memoizedProps,i=i.memoizedState,r=n.stateNode;try{var m=gs(n.type,o,(n.elementType,n.type));e=r.getSnapshotBeforeUpdate(m,i),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){cc(n,n.return,e)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))md(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":md(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(a(163))}if(null!==(e=t.sibling)){e.return=t.return,Sl=e;break}Sl=t.return}}(e,t)}finally{nu=s,M.p=o,R.T=r}}Eu=1,rc(),oc(),ic()}}function rc(){if(1===Eu){Eu=0;var e=Cu,t=Tu,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=R.T,R.T=null;var r=M.p;M.p=2;var o=nu;nu|=4;try{Rl(t,e);var i=nd,a=er(e.containerInfo),s=i.focusedElem,l=i.selectionRange;if(a!==s&&s&&s.ownerDocument&&Zn(s.ownerDocument.documentElement,s)){if(null!==l&&tr(s)){var u=l.start,c=l.end;if(void 0===c&&(c=u),"selectionStart"in s)s.selectionStart=u,s.selectionEnd=Math.min(c,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),h=s.textContent.length,m=Math.min(l.start,h),g=void 0===l.end?m:Math.min(l.end,h);!p.extend&&m>g&&(a=g,g=m,m=a);var y=Xn(s,m),b=Xn(s,g);if(y&&b&&(1!==p.rangeCount||p.anchorNode!==y.node||p.anchorOffset!==y.offset||p.focusNode!==b.node||p.focusOffset!==b.offset)){var v=d.createRange();v.setStart(y.node,y.offset),p.removeAllRanges(),m>g?(p.addRange(v),p.extend(b.node,b.offset)):(v.setEnd(b.node,b.offset),p.addRange(v))}}}}for(d=[],p=s;p=p.parentNode;)1===p.nodeType&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof s.focus&&s.focus(),s=0;s<d.length;s++){var w=d[s];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}nf=!!td,nd=td=null}finally{nu=o,M.p=r,R.T=n}}e.current=t,Eu=2}}function oc(){if(2===Eu){Eu=0;var e=Cu,t=Tu,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=R.T,R.T=null;var r=M.p;M.p=2;var o=nu;nu|=4;try{_l(e,t.alternate,t)}finally{nu=o,M.p=r,R.T=n}}Eu=3}}function ic(){if(4===Eu||3===Eu){Eu=0,ee();var e=Cu,t=Tu,n=Ou,r=ju;10256&t.subtreeFlags||10256&t.flags?Eu=5:(Eu=0,Tu=Cu=null,ac(e,e.pendingLanes));var o=e.pendingLanes;if(0===o&&(_u=null),Pe(n),t=t.stateNode,de&&"function"==typeof de.onCommitFiberRoot)try{de.onCommitFiberRoot(ce,t,void 0,!(128&~t.current.flags))}catch(e){}if(null!==r){t=R.T,o=M.p,M.p=2,R.T=null;try{for(var i=e.onRecoverableError,a=0;a<r.length;a++){var s=r[a];i(s.value,{componentStack:s.stack})}}finally{R.T=t,M.p=o}}3&Ou&&sc(),kc(e),o=e.pendingLanes,4194090&n&&42&o?e===Nu?Au++:(Au=0,Nu=e):Au=0,Sc(0,!1)}}function ac(e,t){0===(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,Mo(t)))}function sc(e){return rc(),oc(),ic(),lc()}function lc(){if(5!==Eu)return!1;var e=Cu,t=Pu;Pu=0;var n=Pe(Ou),r=R.T,o=M.p;try{M.p=32>n?32:n,R.T=null,n=Iu,Iu=null;var i=Cu,s=Ou;if(Eu=0,Tu=Cu=null,Ou=0,6&nu)throw Error(a(331));var l=nu;if(nu|=4,Jl(i.current),Hl(i,i.current,s,n),nu=l,Sc(0,!1),de&&"function"==typeof de.onPostCommitFiberRoot)try{de.onPostCommitFiberRoot(ce,i)}catch(e){}return!0}finally{M.p=o,R.T=r,ac(e,t)}}function uc(e,t,n){t=_r(n,t),null!==(e=ai(e,t=Ss(e.stateNode,t,2),2))&&(Ee(e,2),kc(e))}function cc(e,t,n){if(3===e.tag)uc(e,e,n);else for(;null!==t;){if(3===t.tag){uc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===_u||!_u.has(r))){e=_r(n,e),null!==(r=ai(t,n=_s(2),2))&&(Es(n,r,t,e),Ee(r,2),kc(r));break}}t=t.return}}function dc(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new tu;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(cu=!0,o.add(n),e=fc.bind(null,e,t,n),t.then(e,e))}function fc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ru===e&&(iu&n)===n&&(4===fu||3===fu&&(62914560&iu)===iu&&300>te()-xu?!(2&nu)&&Hu(e,0):mu|=n,yu===iu&&(yu=0)),kc(e)}function pc(e,t){0===t&&(t=Se()),null!==(e=jr(e,t))&&(Ee(e,t),kc(e))}function hc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),pc(e,n)}function mc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(a(314))}null!==r&&r.delete(t),pc(e,n)}var gc=null,yc=null,bc=!1,vc=!1,wc=!1,xc=0;function kc(e){e!==yc&&null===e.next&&(null===yc?gc=yc=e:yc=yc.next=e),vc=!0,bc||(bc=!0,dd(function(){6&nu?J(re,_c):Ec()}))}function Sc(e,t){if(!wc&&vc){wc=!0;do{for(var n=!1,r=gc;null!==r;){if(!t)if(0!==e){var o=r.pendingLanes;if(0===o)var i=0;else{var a=r.suspendedLanes,s=r.pingedLanes;i=(1<<31-pe(42|e)+1)-1,i=201326741&(i&=o&~(a&~s))?201326741&i|1:i?2|i:0}0!==i&&(n=!0,Oc(r,i))}else i=iu,!(3&(i=ve(r,r===ru?i:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||we(r,i)||(n=!0,Oc(r,i));r=r.next}}while(n);wc=!1}}function _c(){Ec()}function Ec(){vc=bc=!1;var e=0;0!==xc&&(function(){var e=window.event;if(e&&"popstate"===e.type)return e!==sd&&(sd=e,!0);return sd=null,!1}()&&(e=xc),xc=0);for(var t=te(),n=null,r=gc;null!==r;){var o=r.next,i=Cc(r,t);0===i?(r.next=null,null===n?gc=o:n.next=o,null===o&&(yc=n)):(n=r,(0!==e||3&i)&&(vc=!0)),r
vendor: 4,406 bytes, line 1
1=o}Sc(e,!1)}function Cc(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=-62914561&e.pendingLanes;0<i;){var a=31-pe(i),s=1<<a,l=o[a];-1===l?0!==(s&n)&&0===(s&r)||(o[a]=xe(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}if(n=iu,n=ve(e,e===(t=ru)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===au||9===au)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&X(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||we(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&X(r),Pe(n)){case 2:case 8:n=oe;break;case 32:default:n=ie;break;case 268435456:n=se}return r=Tc.bind(null,e),n=J(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&X(r),e.callbackPriority=2,e.callbackNode=null,2}function Tc(e,t){if(0!==Eu&&5!==Eu)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(sc()&&e.callbackNode!==n)return null;var r=iu;return 0===(r=ve(e,e===ru?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(zu(e,r,t),Cc(e,te()),null!=e.callbackNode&&e.callbackNode===n?Tc.bind(null,e):null)}function Oc(e,t){if(sc())return null;zu(e,t,!0)}function Pc(){return 0===xc&&(xc=ke()),xc}function Ic(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:Pt(""+e)}function jc(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var Ac=0;Ac<xr.length;Ac++){var Nc=xr[Ac];kr(Nc.toLowerCase(),"on"+(Nc[0].toUpperCase()+Nc.slice(1)))}kr(pr,"onAnimationEnd"),kr(hr,"onAnimationIteration"),kr(mr,"onAnimationStart"),kr("dblclick","onDoubleClick"),kr("focusin","onFocus"),kr("focusout","onBlur"),kr(gr,"onTransitionRun"),kr(yr,"onTransitionStart"),kr(br,"onTransitionCancel"),kr(vr,"onTransitionEnd"),Ye("onMouseEnter",["mouseout","mouseover"]),Ye("onMouseLeave",["mouseout","mouseover"]),Ye("onPointerEnter",["pointerout","pointerover"]),Ye("onPointerLeave",["pointerout","pointerover"]),Ke("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ke("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ke("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ke("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ke("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ke("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mc=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Rc));function Dc(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;i=s,o.currentTarget=u;try{i(o)}catch(e){ys(e)}o.currentTarget=null,i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;i=s,o.currentTarget=u;try{i(o)}catch(e){ys(e)}o.currentTarget=null,i=l}}}}function zc(e,t){var n=t[Me];void 0===n&&(n=t[Me]=new Set);var r=e+"__bubble";n.has(r)||(Uc(t,e,2,!1),n.add(r))}function Lc(e,t,n){var r=0;t&&(r|=4),Uc(n,e,r,t)}var Fc="_reactListening"+Math.random().toString(36).slice(2);function Bc(e){if(!e[Fc]){e[Fc]=!0,We.forEach(function(t){"selectionchange"!==t&&(Mc.has(t)||Lc(t,!1,e),Lc(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Fc]||(t[Fc]=!0,Lc("selectionchange",!1,t))}}function Uc(e,t,n,r){switch(cf(t)){case 2:var o=rf;break;case 8:o=of;break;default:o=af}n=o.bind(null,t,n,e),o=void 0,!Ft||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function qc(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;
vendor: 8,792 bytes, line 1
1if(s===o)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&a.stateNode.containerInfo===o)return;a=a.return}for(;null!==s;){if(null===(a=Ue(s)))return;if(5===(u=a.tag)||6===u||26===u||27===u){r=i=a;continue e}s=s.parentNode}}r=r.return}Dt(function(){var r=i,o=jt(n),a=[];e:{var s=wr.get(e);if(void 0!==s){var u=Zt,c=e;switch(e){case"keypress":if(0===Vt(n))break e;case"keydown":case"keyup":u=mn;break;case"focusin":c="focus",u=an;break;case"focusout":c="blur",u=an;break;case"beforeblur":case"afterblur":u=an;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=rn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=on;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=yn;break;case pr:case hr:case mr:u=sn;break;case vr:u=bn;break;case"scroll":case"scrollend":u=tn;break;case"wheel":u=vn;break;case"copy":case"cut":case"paste":u=ln;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=gn;break;case"toggle":case"beforetoggle":u=wn}var d=!!(4&t),f=!d&&("scroll"===e||"scrollend"===e),p=d?null!==s?s+"Capture":null:s;d=[];for(var h,m=r;null!==m;){var g=m;if(h=g.stateNode,5!==(g=g.tag)&&26!==g&&27!==g||null===h||null===p||null!=(g=zt(m,p))&&d.push(Hc(m,g,h)),f)break;m=m.return}0<d.length&&(s=new u(s,c,null,n,o),a.push({event:s,listeners:d}))}}if(!(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===It||!(c=n.relatedTarget||n.fromElement)||!Ue(c)&&!c[Re])&&(u||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=r,null!==(c=(c=n.relatedTarget||n.toElement)?Ue(c):null)&&(f=l(c),d=c.tag,c!==f||5!==d&&27!==d&&6!==d)&&(c=null)):(u=null,c=r),u!==c)){if(d=rn,g="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(d=gn,g="onPointerLeave",p="onPointerEnter",m="pointer"),f=null==u?s:He(u),h=null==c?s:He(c),(s=new d(g,m+"leave",u,n,o)).target=f,s.relatedTarget=h,g=null,Ue(o)===r&&((d=new d(p,m+"enter",c,n,o)).target=h,d.relatedTarget=f,g=d),f=g,u&&c)e:{for(p=c,m=0,h=d=u;h;h=Vc(h))m++;for(h=0,g=p;g;g=Vc(g))h++;for(;0<m-h;)d=Vc(d),m--;for(;0<h-m;)p=Vc(p),h--;for(;m--;){if(d===p||null!==p&&d===p.alternate)break e;d=Vc(d),p=Vc(p)}d=null}else d=null;null!==u&&Wc(a,s,u,d,!1),null!==c&&null!==f&&Wc(a,f,c,d,!0)}if("select"===(u=(s=r?He(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var y=Ln;else if(An(s))if(Fn)y=Kn;else{y=Wn;var b=Vn}else!(u=s.nodeName)||"input"!==u.toLowerCase()||"checkbox"!==s.type&&"radio"!==s.type?r&&Ct(r.elementType)&&(y=Ln):y=Qn;switch(y&&(y=y(e,r))?Nn(a,y,n,o):(b&&b(e,s,r),"focusout"===e&&r&&"number"===s.type&&null!=r.memoizedProps.value&&bt(s,"number",s.value)),b=r?He(r):window,e){case"focusin":(An(b)||"true"===b.contentEditable)&&(rr=b,or=r,ir=null);break;case"focusout":ir=or=rr=null;break;case"mousedown":ar=!0;break;case"contextmenu":case"mouseup":case"dragend":ar=!1,sr(a,n,o);break;case"selectionchange":if(nr)break;case"keydown":case"keyup":sr(a,n,o)}var v;if(kn)e:{switch(e){case"compositionstart":var w="onCompositionStart";break e;case"compositionend":w="onCompositionEnd";break e;case"compositionupdate":w="onCompositionUpdate";break e}w=void 0}else In?On(e,n)&&(w="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(w="onCompositionStart");w&&(En&&"ko"!==n.locale&&(In||"onCompositionStart"!==w?"onCompositionEnd"===w&&In&&(v=$t()):(qt="value"in(Ut=o)?Ut.value:Ut.textContent,In=!0)),0<(b=$c(r,w)).length&&(w=new un(w,e,null,n,o),a.push({event:w,listeners:b}),v?w.data=v:null!==(v=Pn(n))&&(w.data=v))),(v=_n?function(e,t){switch(e){case"compositionend":return Pn(t);case"keypress":return 32!==t.which?null:(Tn=!0,Cn);case"textInput":return(e=t.data)===Cn&&Tn?null:e;default:return null}}(e,n):function(e,t){if(In)return"compositionend"===e||!kn&&On(e,t)?(e=$t(),Ht=qt=Ut=null,In=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return En&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(w=$c(r,"onBeforeInput")).length&&(b=new un("onBeforeInput","beforeinput",null,n,o),a.push({event:b,listeners:w}),b.data=v)),function(e,t,n,r,o){if("submit"===t&&n&&n.stateNode===o){var i=Ic((o[Ne]||null).action),a=r.submitter;a&&null!==(t=(t=a[Ne]||null)?Ic(t.formAction):a.getAttribute("formAction"))&&(i=t,a=null);var s=new Zt("action","action",null,r,o);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==xc){var e=a?jc(o,a):new FormData(o);ja(n,{pending:!0,data:e,method:o.method,action:i},null,e)}}else"function"==typeof i&&(s.preventDefault(),e=a?jc(o,a):new FormData(o),ja(n,{pending:!0,data:e,method:o.method,action:i},i,e))},currentTarget:o}]})}}(a,e,r,n,o)}Dc(a,t)})}function Hc(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $c(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;if(5!==(o=o.tag)&&26!==o&&27!==o||null===i||(null!=(o=zt(e,n))&&r.unshift(Hc(e,o,i)),null!=(o=zt(e,t))&&r.push(Hc(e,o,i))),3===e.tag)return r;e=e.return}return[]}function Vc(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function Wc(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(s=s.tag,null!==l&&l===r)break;5!==s&&26!==s&&27!==s||null===u||(l=u,o?null!=(u=zt(n,i))&&a.unshift(Hc(n,u,l)):o||null!=(u=zt(n,i))&&a.push(Hc(n,u,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Qc=/\r\n?/g,Kc=/\u0000|\uFFFD/g;function Yc(e){return("string"==typeof e?e:""+e).replace(Qc,"\n").replace(Kc,"")}function Gc(e,t){return t=Yc(t),Yc(e)===t}function Jc(){}function Xc(e,t,n,r,o,i){switch(n){case"children":"string"==typeof r?"body"===t||"textarea"===t&&""===r||kt(e,r):("number"==typeof r||"bigint"==typeof r)&&"body"!==t&&kt(e,""+r);break;case"className":nt(e,"class",r);break;case"tabIndex":nt(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":nt(e,n,r);break;case"style":Et(e,r,i);break;case"data":if("object"!==t){nt(e,"data",r);break}case"src":case"href":if(""===r&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==r||"function"==typeof r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}r=Pt(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if("function"==typeof r){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof i&&("formAction"===n?("input"!==t&&Xc(e,t,"name",o.name,o,null),Xc(e,t,"formEncType",o.formEncType,o,null),Xc(e,t,"formMethod",o.formMethod,o,null),Xc(e,t,"formTarget",o.formTarget,o,null)):(Xc(e,t,"encType",o.encType,o,null),Xc(e,t,"method",o.method,o,null),Xc(e,t,"target",o.target,o,null))),null==r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}r=Pt(""+r),e.setAttribute(n,r);break;case"onClick":null!=r&&(e.onclick=Jc);break;case"onScroll":null!=r&&zc("scroll",e);break;case"onScrollEnd":null!=r&&zc("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(a(61));if(null!=(n=r.__html)){if(null!=o.children)throw Error(a(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"muted":e.muted=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==r||"function"==typeof r||"boolean"==typeof r||"symbol"==typeof r){e.removeAttribute("xlink:href");break}n=Pt(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
1ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===r?e.setAttribute(n,""):!1!==r&&null!=r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=r&&"function"!=typeof r&&"symbol"!=typeof r&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":null==r||"function"==typeof r||"symbol"==typeof r||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":zc("beforetoggle",e),zc("toggle",e),tt(e,"popover",r);break;case"xlinkActuate":rt(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":rt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":rt(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":rt(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":rt(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":rt(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":rt(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":rt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":rt(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":tt(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&tt(e,n=Tt.get(n)||n,r)}}function Zc(e,t,n,r,o,i){switch(n){case"style":Et(e,r,i);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(a(61));if(null!=(n=r.__html)){if(null!=o.children)throw Error(a(60));e.innerHTML=n}}break;case"children":"string"==typeof r?kt(e,r):("number"==typeof r||"bigint"==typeof r)&&kt(e,""+r);break;case"onScroll":null!=r&&zc("scroll",e);break;case"onScrollEnd":null!=r&&zc("scrollend",e);break;case"onClick":null!=r&&(e.onclick=Jc);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:Qe.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),"function"==typeof(i=null!=(i=e[Ne]||null)?i[n]:null)&&e.removeEventListener(t,i,o),"function"!=typeof r)?n in e?e[n]=r:!0===r?e.setAttribute(n,""):tt(e,n,r):("function"!=typeof i&&null!==i&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,o)))}}function ed(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":zc("error",e),zc("load",e);var r,o=!1,i=!1;for(r in n)if(n.hasOwnProperty(r)){var s=n[r];if(null!=s)switch(r){case"src":o=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,t));default:Xc(e,t,r,s,n,null)}}return i&&Xc(e,t,"srcSet",n.srcSet,n,null),void(o&&Xc(e,t,"src",n.src,n,null));case"input":zc("invalid",e);var l=r=s=i=null,u=null,c=null;for(o in n)if(n.hasOwnProperty(o)){var d=n[o];if(null!=d)switch(o){case"name":i=d;break;case"type":s=d;break;case"checked":u=d;break;case"defaultChecked":c=d;break;case"value":r=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(a(137,t));break;default:Xc(e,t,o,d,n,null)}}return yt(e,r,l,u,c,s,i,!1),void dt(e);case"select":for(i in zc("invalid",e),o=s=r=null,n)if(n.hasOwnProperty(i)&&null!=(l=n[i]))switch(i){case"value":r=l;break;case"defaultValue":s=l;break;case"multiple":o=l;default:Xc(e,t,i,l,n,null)}return t=r,n=s,e.multiple=!!o,void(null!=t?vt(e,!!o,t,!1):null!=n&&vt(e,!!o,n,!0));case"textarea":for(s in zc("invalid",e),r=i=o=null,n)if(n.hasOwnProperty(s)&&null!=(l=n[s]))switch(s){case"value":o=l;break;case"defaultValue":i=l;break;case"children":r=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(a(91));break;default:Xc(e,t,s,l,n,null)}return xt(e,o,i,r),void dt(e);case"option":for(u in n)if(n.hasOwnProperty(u)&&null!=(o=n[u]))if("selected"===u)e.selected=o&&"function"!=typeof o&&"symbol"!=typeof o;else Xc(e,t,u,o,n,null);return;case"dialog":zc("beforetoggle",e),zc("toggle",e),zc("cancel",e),zc("close",e);break;case"iframe":case"object":zc("load",e);break;case"video":case"audio":for(o=0;o<Rc.length;o++)zc(Rc[o],e);break;case"image":zc("error",e),zc("load",e);break;case"details":zc("toggle",e);break;case"embed":case"source":case"link":zc("error",e),zc("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&null!=(o=n[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,t));default:Xc(e,t,c,o,n,null)}return;default:if(Ct(t)){for(d in n)n.hasOwnProperty(d)&&(void 0!==(o=n[d])&&Zc(e,t,d,o,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(null!=(o=n[l])&&Xc(e,t,l,o,n,null))}var td=null,nd=null;
vendor: 4,199 bytes, line 1
1function rd(e){return 9===e.nodeType?e:e.ownerDocument}function od(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function id(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function ad(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var sd=null;var ld="function"==typeof setTimeout?setTimeout:void 0,ud="function"==typeof clearTimeout?clearTimeout:void 0,cd="function"==typeof Promise?Promise:void 0,dd="function"==typeof queueMicrotask?queueMicrotask:void 0!==cd?function(e){return cd.resolve(null).then(e).catch(fd)}:ld;function fd(e){setTimeout(function(){throw e})}function pd(e){return"head"===e}function hd(e,t){var n=t,r=0,o=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0<r&&8>r){n=r;var a=e.ownerDocument;if(1&n&&xd(a.documentElement),2&n&&xd(a.body),4&n)for(xd(n=a.head),a=n.firstChild;a;){var s=a.nextSibling,l=a.nodeName;a[Fe]||"SCRIPT"===l||"STYLE"===l||"LINK"===l&&"stylesheet"===a.rel.toLowerCase()||n.removeChild(a),a=s}}if(0===o)return e.removeChild(i),void Of(t);o--}else"$"===n||"$?"===n||"$!"===n?o++:r=n.charCodeAt(0)-48;else r=0;n=i}while(n);Of(t)}function md(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":md(n),Be(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function gd(e){return"$!"===e.data||"$?"===e.data&&"complete"===e.ownerDocument.readyState}function yd(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"F!"===t||"F"===t)break;if("/$"===t)return null}}return e}var bd=null;function vd(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}function wd(e,t,n){switch(t=rd(n),e){case"html":if(!(e=t.documentElement))throw Error(a(452));return e;case"head":if(!(e=t.head))throw Error(a(453));return e;case"body":if(!(e=t.body))throw Error(a(454));return e;default:throw Error(a(451))}}function xd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Be(e)}var kd=new Map,Sd=new Set;function _d(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var Ed=M.d;M.d={f:function(){var e=Ed.f(),t=Uu();return e||t},r:function(e){var t=qe(e);null!==t&&5===t.tag&&"form"===t.type?Na(t):Ed.r(e)},D:function(e){Ed.D(e),Td("dns-prefetch",e,null)},C:function(e,t){Ed.C(e,t),Td("preconnect",e,t)},L:function(e,t,n){Ed.L(e,t,n);var r=Cd;if(r&&e&&t){var o='link[rel="preload"][as="'+mt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(o+='[imagesrcset="'+mt(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(o+='[imagesizes="'+mt(n.imageSizes)+'"]')):o+='[href="'+mt(e)+'"]';var i=o;switch(t){case"style":i=Pd(e);break;case"script":i=Ad(e)}kd.has(i)||(e=f({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),kd.set(i,e),null!==r.querySelector(o)||"style"===t&&r.querySelector(Id(i))||"script"===t&&r.querySelector(Nd(i))||(ed(t=r.createElement("link"),"link",e),Ve(t),r.head.appendChild(t)))}},m:function(e,t){Ed.m(e,t);var n=Cd;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",o='link[rel="modulepreload"][as="'+mt(r)+'"][href="'+mt(e)+'"]',i=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Ad(e)}if(!kd.has(i)&&(e=f({rel:"modulepreload",href:e},t),kd.set(i,e),null===n.querySelector(o))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Nd(i)))return}ed(r=n.createElement("link"),"link",e),Ve(r),n.head.appendChild(r)}}},X:function(e,t){Ed.X(e,t);var n=Cd;if(n&&e){var r=$e(n).hoistableScripts,o=Ad(e),i=r.get(o);
vendor: 4,375 bytes, line 1
1i||((i=n.querySelector(Nd(o)))||(e=f({src:e,async:!0},t),(t=kd.get(o))&&zd(e,t),Ve(i=n.createElement("script")),ed(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}},S:function(e,t,n){Ed.S(e,t,n);var r=Cd;if(r&&e){var o=$e(r).hoistableStyles,i=Pd(e);t=t||"default";var a=o.get(i);if(!a){var s={loading:0,preload:null};if(a=r.querySelector(Id(i)))s.loading=5;else{e=f({rel:"stylesheet",href:e,"data-precedence":t},n),(n=kd.get(i))&&Dd(e,n);var l=a=r.createElement("link");Ve(l),ed(l,"link",e),l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,Md(a,t,r)}a={type:"stylesheet",instance:a,count:1,state:s},o.set(i,a)}}},M:function(e,t){Ed.M(e,t);var n=Cd;if(n&&e){var r=$e(n).hoistableScripts,o=Ad(e),i=r.get(o);i||((i=n.querySelector(Nd(o)))||(e=f({src:e,async:!0,type:"module"},t),(t=kd.get(o))&&zd(e,t),Ve(i=n.createElement("script")),ed(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}}};var Cd="undefined"==typeof document?null:document;function Td(e,t,n){var r=Cd;if(r&&"string"==typeof t&&t){var o=mt(t);o='link[rel="'+e+'"][href="'+o+'"]',"string"==typeof n&&(o+='[crossorigin="'+n+'"]'),Sd.has(o)||(Sd.add(o),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(o)&&(ed(t=r.createElement("link"),"link",e),Ve(t),r.head.appendChild(t)))}}function Od(e,t,n,r){var o,i,s,l,u=(u=$.current)?_d(u):null;if(!u)throw Error(a(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=Pd(n.href),(r=(n=$e(u).hoistableStyles).get(t))||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=Pd(n.href);var c=$e(u).hoistableStyles,d=c.get(e);if(d||(u=u.ownerDocument||u,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,d),(c=u.querySelector(Id(e)))&&!c._p&&(d.instance=c,d.state.loading=5),kd.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},kd.set(e,n),c||(o=u,i=e,s=n,l=d.state,o.querySelector('link[rel="preload"][as="style"]['+i+"]")?l.loading=1:(i=o.createElement("link"),l.preload=i,i.addEventListener("load",function(){return l.loading|=1}),i.addEventListener("error",function(){return l.loading|=2}),ed(i,"link",s),Ve(i),o.head.appendChild(i))))),t&&null===r)throw Error(a(528,""));return d}if(t&&null!==r)throw Error(a(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=Ad(n),(r=(n=$e(u).hoistableScripts).get(t))||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Pd(e){return'href="'+mt(e)+'"'}function Id(e){return'link[rel="stylesheet"]['+e+"]"}function jd(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Ad(e){return'[src="'+mt(e)+'"]'}function Nd(e){return"script[async]"+e}function Rd(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+mt(n.href)+'"]');if(r)return t.instance=r,Ve(r),r;var o=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return Ve(r=(e.ownerDocument||e).createElement("style")),ed(r,"style",o),Md(r,n.precedence,e),t.instance=r;case"stylesheet":o=Pd(n.href);var i=e.querySelector(Id(o));if(i)return t.state.loading|=4,t.instance=i,Ve(i),i;r=jd(n),(o=kd.get(o))&&Dd(r,o),Ve(i=(e.ownerDocument||e).createElement("link"));var s=i;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),ed(i,"link",r),t.state.loading|=4,Md(i,n.precedence,e),t.instance=i;case"script":return i=Ad(n.src),(o=e.querySelector(Nd(i)))?(t.instance=o,Ve(o),o):(r=n,(o=kd.get(i))&&zd(r=f({},n),o),Ve(o=(e=e.ownerDocument||e).createElement("script")),ed(o,"link",r),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(a(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(r=t.instance,t.state.loading|=4,Md(r,n.precedence,e));return t.instance}
vendor: 5,315 bytes, line 1
1function Md(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,i=o,a=0;a<r.length;a++){var s=r[a];if(s.dataset.precedence===t)i=s;else if(i!==o)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Dd(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function zd(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var Ld=null;function Fd(e,t,n){if(null===Ld){var r=new Map,o=Ld=new Map;o.set(n,r)}else(r=(o=Ld).get(n))||(r=new Map,o.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var i=n[o];if(!(i[Fe]||i[Ae]||"link"===e&&"stylesheet"===i.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==i.namespaceURI){var a=i.getAttribute(t)||"";a=e+a;var s=r.get(a);s?s.push(i):r.set(a,[i])}}return r}function Bd(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function Ud(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var qd=null;function Hd(){}function $d(){if(this.count--,0===this.count)if(this.stylesheets)Wd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var Vd=null;function Wd(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,Vd=new Map,t.forEach(Qd,e),Vd=null,$d.call(e))}function Qd(e,t){if(!(4&t.state.loading)){var n=Vd.get(e);if(n)var r=n.get(null);else{n=new Map,Vd.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<o.length;i++){var a=o[i];"LINK"!==a.nodeName&&"not all"===a.getAttribute("media")||(n.set(a.dataset.precedence,a),r=a)}r&&n.set(null,r)}a=(o=t.instance).getAttribute("data-precedence"),(i=n.get(a)||r)===r&&n.set(null,o),n.set(a,o),this.count++,r=$d.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),i?i.parentNode.insertBefore(o,i.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(o,e.firstChild),t.state.loading|=4}}var Kd={$$typeof:x,Provider:null,Consumer:null,_currentValue:D,_currentValue2:D,_threadCount:0};function Yd(e,t,n,r,o,i,a,s){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=_e(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_e(0),this.hiddenUpdates=_e(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=i,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function Gd(e,t,n,r,o,i,a,s,l,u,c,d){return e=new Yd(e,t,n,a,s,l,u,d),t=1,!0===i&&(t|=24),i=Dr(3,null,null,t),e.current=i,i.stateNode=e,(t=Ro()).refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:r,isDehydrated:n,cache:t},ri(i),e}function Jd(e){return e?e=Rr:Rr}function Xd(e,t,n,r,o,i){o=Jd(o),null===r.context?r.context=o:r.pendingContext=o,(r=ii(t)).payload={element:n},null!==(i=void 0===i?null:i)&&(r.callback=i),null!==(n=ai(e,r,t))&&(Du(n,0,t),si(n,e,t))}function Zd(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function ef(e,t){Zd(e,t),(e=e.alternate)&&Zd(e,t)}function tf(e){if(13===e.tag){var t=jr(e,67108864);null!==t&&Du(t,0,67108864),ef(e,67108864)}}var nf=!0;function rf(e,t,n,r){var o=R.T;R.T=null;var i=M.p;try{M.p=2,af(e,t,n,r)}finally{M.p=i,R.T=o}}function of(e,t,n,r){var o=R.T;R.T=null;var i=M.p;try{M.p=8,af(e,t,n,r)}finally{M.p=i,R.T=o}}function af(e,t,n,r){if(nf){var o=sf(r);if(null===o)qc(e,t,r,lf,n),vf(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return ff=wf(ff,e,t,n,r,o),!0;case"dragenter":return pf=wf(pf,e,t,n,r,o),!0;case"mouseover":return hf=wf(hf,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return mf.set(i,wf(mf.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,gf.set(i,wf(gf.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(vf(e,r),4&t&&-1<bf.indexOf(e)){for(;null!==o;){var i=qe(o);if(null!==i)switch(i.tag){case 3:if((i=i.stateNode).current.memoizedState.isDehydrated){var a=be(i.pendingLanes);if(0!==a){var s=i;for(s.pendingLanes|=2,s.entangledLanes|=2;a;){var l=1<<31-pe(a);s.entanglements[1]|=l,a&=~l}kc(i),!(6&nu)&&(ku=te()+500,Sc(0,!1))}}break;case 13:null!==(s=jr(i,2))&&Du(s,0,2),Uu(),ef(i,2)}if(null===(i=sf(r))&&qc(e,t,r,lf,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else qc(e,t,r,null,n)}}function sf(e){return uf(e=jt(e))}var lf=null;function uf(e){if(lf=null,null!==(e=Ue(e))){var t=l(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=u(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return lf=e,null}function cf(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close"
vendor: 2,157 bytes, line 1
1:case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ne()){case re:return 2;case oe:return 8;case ie:case ae:return 32;case se:return 268435456;default:return 32}default:return 32}}var df=!1,ff=null,pf=null,hf=null,mf=new Map,gf=new Map,yf=[],bf="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function vf(e,t){switch(e){case"focusin":case"focusout":ff=null;break;case"dragenter":case"dragleave":pf=null;break;case"mouseover":case"mouseout":hf=null;break;case"pointerover":case"pointerout":mf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":gf.delete(t.pointerId)}}function wf(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=qe(t))&&tf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function xf(e){var t=Ue(e.target);if(null!==t){var n=l(t);
vendor: 4,303 bytes, line 1
1if(null!==n)if(13===(t=n.tag)){if(null!==(t=u(n)))return e.blockedOn=t,void function(e,t){var n=M.p;try{return M.p=e,t()}finally{M.p=n}}(e.priority,function(){if(13===n.tag){var e=Ru();e=Oe(e);var t=jr(n,e);null!==t&&Du(t,0,e),ef(n,e)}})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function kf(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=sf(e.nativeEvent);if(null!==n)return null!==(t=qe(n))&&tf(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);It=r,n.target.dispatchEvent(r),It=null,t.shift()}return!0}function Sf(e,t,n){kf(e)&&n.delete(t)}function _f(){df=!1,null!==ff&&kf(ff)&&(ff=null),null!==pf&&kf(pf)&&(pf=null),null!==hf&&kf(hf)&&(hf=null),mf.forEach(Sf),gf.forEach(Sf)}function Ef(e,t){e.blockedOn===t&&(e.blockedOn=null,df||(df=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,_f)))}var Cf=null;function Tf(e){Cf!==e&&(Cf=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){Cf===e&&(Cf=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],o=e[t+2];if("function"!=typeof r){if(null===uf(r||n))continue;break}var i=qe(n);null!==i&&(e.splice(t,3),t-=3,ja(i,{pending:!0,data:o,method:n.method,action:r},r,o))}}))}function Of(e){function t(t){return Ef(t,e)}null!==ff&&Ef(ff,e),null!==pf&&Ef(pf,e),null!==hf&&Ef(hf,e),mf.forEach(t),gf.forEach(t);for(var n=0;n<yf.length;n++){var r=yf[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<yf.length&&null===(n=yf[0]).blockedOn;)xf(n),null===n.blockedOn&&yf.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var o=n[r],i=n[r+1],a=o[Ne]||null;if("function"==typeof i)a||Tf(n);else if(a){var s=null;if(i&&i.hasAttribute("formAction")){if(o=i,a=i[Ne]||null)s=a.formAction;else if(null!==uf(o))continue}else s=a.action;"function"==typeof s?n[r+1]=s:(n.splice(r,3),r-=3),Tf(n)}}}function Pf(e){this._internalRoot=e}function If(e){this._internalRoot=e}If.prototype.render=Pf.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Xd(t.current,Ru(),e,t,null,null)},If.prototype.unmount=Pf.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;Xd(e.current,2,null,e,null,null),Uu(),t[Re]=null}},If.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ie();e={blockedOn:null,target:e,priority:t};for(var n=0;n<yf.length&&0!==t&&t<yf[n].priority;n++);yf.splice(n,0,e),0===n&&xf(e)}};var jf=o.version;if("19.1.1"!==jf)throw Error(a(527,jf,"19.1.1"));M.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=l(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return c(o),e;if(i===r)return c(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,u=o.child;u;){if(u===n){s=!0,n=o,r=i;break}if(u===r){s=!0,r=o,n=i;break}u=u.sibling}if(!s){for(u=i.child;u;){if(u===n){s=!0,n=i,r=o;break}if(u===r){s=!0,r=i,n=o;break}u=u.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(t),e=null===(e=null!==e?d(e):null)?null:e.stateNode};var Af={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.1.1"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Nf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Nf.isDisabled&&Nf.supportsFiber)try{ce=Nf.inject(Af),de=Nf}catch(e){}}t.createRoot=function(e,t){if(!s(e))throw Error(a(299));var n=!1,r="",o=bs,i=vs,l=ws;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onUncaughtError&&(o=t.onUncaughtError),void 0!==t.onCaughtError&&(i=t.onCaughtError),void 0!==t.onRecoverableError&&(l=t.onRecoverableError),void 0!==t.unstable_transitionCallbacks&&t.unstable_transitionCallbacks),t=Gd(e,1,!1,null,0,n,r,o,i,l,0,null),e[Re]=t.current,Bc(e),new Pf(t)}}
1,338:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(247)},418:(e,t,n)=>{"use strict";e.exports=n(160)},442:e=>{"use strict";const t="undefined"!=typeof Buffer,n=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,r=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function o(e,o,a){null==a&&null!==o&&"object"==typeof o&&(a=o,o=void 0),t&&Buffer.isBuffer(e)&&(e=e.toString()),e&&65279===e.charCodeAt(0)&&(e=e.slice(1));const s=JSON.parse(e,o);if(null===s||"object"!=typeof s)return s;const l=a&&a.protoAction||"error",u=a&&a.constructorAction||"error";if("ignore"===l&&"ignore"===u)return s;if("ignore"!==l&&"ignore"!==u){if(!1===n.test(e)&&!1===r.test(e))return s}else if("ignore"!==l&&"ignore"===u){if(!1===n.test(e))return s}else if(!1===r.test(e))return s;return i(s,{protoAction:l,constructorAction:u,safe:a&&a.safe})}function i(e,{protoAction:t="error",constructorAction:n="error",safe:r}={}){let o=[e];for(;o.length;){const e=o;o=[];for(const i of e){if("ignore"!==t&&Object.prototype.hasOwnProperty.call(i,"__proto__")){if(!0===r)return null;if("error"===t)throw new SyntaxError("Object contains forbidden prototype property");delete i.__proto__}if("ignore"!==n&&Object.prototype.hasOwnProperty.call(i,"constructor")&&Object.prototype.hasOwnProperty.call(i.constructor,"prototype")){if(!0===r)return null;if("error"===n)throw new SyntaxError("Object contains forbidden prototype property");delete i.constructor}for(const e in i){const t=i[e];t&&"object"==typeof t&&o.push(t)}}}return e}function a(e,t,n){const{stackTraceLimit:r}=Error;Error.stackTraceLimit=0;try{return o(e,t,n)}finally{Error.stackTraceLimit=r}}e.exports=a,e.exports.default=a,e.exports.parse=a,e.exports.safeParse=function(e,t){const{stackTraceLimit:n}=Error;Error.stackTraceLimit=0;try{return o(e,t,{safe:!0})}catch{return}finally{Error.stackTraceLimit=n}},e.exports.scan=i},477:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>i(l,n))u<o&&0>i(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<o&&0>i(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],d=1,f=null,p=3,h=!1,m=!1,g=!1,y=!1,b="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,w="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function k(e){if(g=!1,x(e),!m)if(null!==r(u))m=!0,_||(_=!0,S());else{var t=r(c);null!==t&&A(k,t.startTime-e)}}var S,_=!1,E=-1,C=5,T=-1;function O(){return!!y||!(t.unstable_now()-T<C)}function P(){if(y=!1,_){var e=t.unstable_now();T=e;var n=!0;try{e:{m=!1,g&&(g=!1,v(E),E=-1),h=!0;var i=p;try{t:{for(x(e),f=r(u);null!==f&&!(f.expirationTime>e&&O());){var a=f.callback;if("function"==typeof a){f.callback=null,p=f.priorityLevel;var s=a(f.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof s){f.callback=s,x(e),n=!0;break t}f===r(u)&&o(u),x(e)}else o(u);f=r(u)}if(null!==f)n=!0;else{var l=r(c);null!==l&&A(k,l.startTime-e),n=!1}}break e}finally{f=null,p=i,h=!1}n=void 0}}finally{n?S():_=!1}}}if("function"==typeof w)S=function(){w(P)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,j=I.port2;I.port1.onmessage=P,S=function(){j.postMessage(null)}}else S=function(){b(P,0)};function A(e,n){E=b(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_requestPaint=function(){y=!0},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(e.sortIndex=i,n(c,e),null===r(u)&&e===r(c)&&(g?(v(E),E=-1):g=!0,A(k,i-a))):(e.sortIndex=s,n(u,e),m||h||(m=!0,_||(_=!0,S()))),e},t.unstable_shouldYield=O,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},540:(e,t,n)=>{"use strict";e.exports=n(869)},698:(e,t)=>
1{"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(e,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var i in r={},t)"key"!==i&&(r[i]=t[i]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:o,ref:void 0!==t?t:null,props:r}}t.Fragment=r,t.jsx=o,t.jsxs=o},788:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,u="";function c(e){return e?e.replace(l,u):u}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,f=1;function p(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function h(){var e={line:d,column:f};return function(t){return t.position=new m(e),v(),t}}function m(e){this.start=e,this.end={line:d,column:f},this.source=l.source}m.prototype.content=e;var g=[];function y(t){var n=new Error(l.source+":"+d+":"+f+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=f,n.source=e,!l.silent)throw n;g.push(n)}function b(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function v(){b(r)}function w(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;u!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,u===e.charAt(n-1))return y("End of comment missing");var r=e.slice(2,n-2);return f+=2,p(r),e=e.slice(n),f+=2,t({type:"comment",comment:r})}}function k(){var e=h(),n=b(o);if(n){if(x(),!b(i))return y("property missing ':'");var r=b(a),l=e({type:"declaration",property:c(n[0].replace(t,u)),value:r?c(r[0].replace(t,u)):u});return b(s),l}}return v(),function(){var e,t=[];for(w(t);e=k();)!1!==e&&(t.push(e),w(t));return t}()}},848:(e,t,n)=>{"use strict";e.exports=n(698)},849:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(o=l(t,n))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},s(d,{name:n,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:n,newValue:o}));return d}},869:(e,t)=>{"use strict";var n=Symbol.for("react.transitional.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.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function b(){}function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=y.prototype;var w=v.prototype=new b;w.constructor=v,m(w,y.prototype),w.isPureReactComponent=!0;var x=Array.isArray,k={H:null,A:null,T:null,S:null,V:null},S=Object.prototype.hasOwnProperty;function _(e,t,r,o,i,a){return r=a.ref,{$$typeof:n,type:e,key:t,ref:void 0!==r?r:null,props:a}}function E(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var C=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function O(){}function P(e,t,o,i,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l,u,c=!1;if(null===e)c=!0;else switch(s){case"bigint":case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case n:case r:c=!0;break;case f:return P((c=e._init)(e._payload),t,o,i,a)}}if(c)return a=a(e),c=""===i?"."+T(e,0):i,x(a)?(o="",null!=c&&(o=c.replace(C,"$&/")+"/"),P(a,t,o,"",function(e){return e})):null!=a&&(E(a)&&(l=a,u=o+(null==a.key||e&&e.key===a.key?"":(""+a.key).replace(C,"$&/")+"/")+c,a=_(l.type,u,void 0,0,0,l.props)),t.push(a)),1;c=0;var d,h=""===i?".":i+":";if(x(e))for(var m=0;m<e.length;m++)c+=P(i=e[m],t,o,s=h+T(i,m),a);else if("function"==typeof(m=null===(d=e)||"object"!=typeof d?null:"function"==typeof(d=p&&d[p]||d["@@iterator"])?d:null))for(e=m.call(e),m=0;!(i=e.next()).done;)c+=P(i=i.value,t,o,s=h+T(i,m++),a);else if("object"===s){if("function"==typeof e.then)return P(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(O,O):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(e),t,o,i,a);throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return c}function I(e,t,n){if(null==e)return e;var r=[],o=0;return P(e,r,"","",function(e){return t.call(n,e,o++)}),r}function j(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var A="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function N(){}
1t.Children={map:I,forEach:function(e,t,n){I(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return I(e,function(){t++}),t},toArray:function(e){return I(e,function(e){return e})||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=o,t.Profiler=a,t.PureComponent=v,t.StrictMode=i,t.Suspense=c,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,t.__COMPILER_RUNTIME={__proto__:null,c:function(e){return k.H.useMemoCache(e)}},t.cache=function(e){return function(){return e.apply(null,arguments)}},t.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=m({},e.props),o=e.key;if(null!=t)for(i in void 0!==t.ref&&void 0,void 0!==t.key&&(o=""+t.key),t)!S.call(t,i)||"key"===i||"__self"===i||"__source"===i||"ref"===i&&void 0===t.ref||(r[i]=t[i]);var i=arguments.length-2;if(1===i)r.children=n;else if(1<i){for(var a=Array(i),s=0;s<i;s++)a[s]=arguments[s+2];r.children=a}return _(e.type,o,void 0,0,0,r)},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:s,_context:e},e},t.createElement=function(e,t,n){var r,o={},i=null;if(null!=t)for(r in void 0!==t.key&&(i=""+t.key),t)S.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(o[r]=t[r]);var a=arguments.length-2;if(1===a)o.children=n;else if(1<a){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+2];o.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps)void 0===o[r]&&(o[r]=a[r]);return _(e,i,void 0,0,0,o)},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:j}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=k.T,n={};k.T=n;try{var r=e(),o=k.S;null!==o&&o(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(N,A)}catch(e){A(e)}finally{k.T=t}},t.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},t.use=function(e){return k.H.use(e)},t.useActionState=function(e,t,n){return k.H.useActionState(e,t,n)},t.useCallback=function(e,t){return k.H.useCallback(e,t)},t.useContext=function(e){return k.H.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return k.H.useDeferredValue(e,t)},t.useEffect=function(e,t,n){var r=k.H;if("function"==typeof n)throw Error("useEffect CRUD overload is not enabled in this build of React.");return r.useEffect(e,t)},t.useId=function(){return k.H.useId()},t.useImperativeHandle=function(e,t,n){return k.H.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return k.H.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return k.H.useLayoutEffect(e,t)},t.useMemo=function(e,t){return k.H.useMemo(e,t)},t.useOptimistic=function(e,t){return k.H.useOptimistic(e,t)},t.useReducer=function(e,t,n){return k.H.useReducer(e,t,n)},t.useRef=function(e){return k.H.useRef(e)},t.useState=function(e){return k.H.useState(e)},t.useSyncExternalStore=function(e,t,n){return k.H.useSyncExternalStore(e,t,n)},t.useTransition=function(){return k.H.useTransition()},t.version="19.1.1"},917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,o=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||o.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,l):e.replace(i,l)).replace(r,s))}},942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}
1.apply(t,[]))||(e.exports=n)}()},961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(221)},982:(e,t,n)=>{"use strict";e.exports=n(477)}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e].call(i.exports,i,i.exports,o),i.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;("object"==typeof s||"function"==typeof s)&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(e=>a[e]=()=>n[e]);return a.default=()=>n,o.d(i,a),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0,(()=>{"use strict";var e={};o.r(e),o.d(e,{cg:()=>Nc,a2:()=>Pc,D0:()=>Tc});var t={};o.r(t),o.d(t,{boolean:()=>Ed,booleanish:()=>Cd,commaOrSpaceSeparated:()=>jd,commaSeparated:()=>Id,number:()=>Od,overloadedBoolean:()=>Td,spaceSeparated:()=>Pd});var n={};o.r(n),o.d(n,{attentionMarkers:()=>lh,contentInitial:()=>nh,disable:()=>uh,document:()=>th,flow:()=>oh,flowInitial:()=>rh,insideSpan:()=>sh,string:()=>ih,text:()=>ah});var r=o(338),i=o(540),a=o.t(i,2),s="rgba(0, 0, 0, 1)",l="rgba(255, 255, 255, 1)",u=5,c=50,d=3e4,f=3e4,p=500,h={SM:640,MD:768,LG:1024};function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function g(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=m(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==m(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=1,b=2,v="user",w="assistant",x=g(g(g({},y,{border:"border-green-700",text:"text-green-700",icon:"text-green-700",background:"bg-gray-100",hoverBorder:"hover:border-green-700"}),b,{border:"border-destructive",text:"text-destructive",icon:"text-destructive",background:"bg-gray-100",hoverBorder:"hover:border-destructive"}),"default",{border:"border-gray-300",text:"text-neutral-500",icon:"text-gray-500",background:"bg-gray-100"}),k=g(g(g(g(g(g(g({},y,"That solved it!"),b,"This didn't help"),"formPrompt","Thank you! Feel free to let me know if you have any details to share."),"privacyWarning","Please do not share any personal, confidential or sensitive information"),"confirmationMessage","Thank you for your feedback!"),"feedbackHeader","Feedback"),"submitButton","Submit"),S=function(e){return e[e.BottomLeft=1]="BottomLeft",e[e.BottomRight=2]="BottomRight",e}({}),_=function(e){return e[e.Chatbot1=1]="Chatbot1",e[e.Chatbot2=2]="Chatbot2",e[e.Chatbot3=3]="Chatbot3",e[e.Chatbot4=4]="Chatbot4",e[e.UserDefined=99]="UserDefined",e}({}),E=function(e){return e[e.PrimaryColor=1]="PrimaryColor",e[e.SecondaryColor=2]="SecondaryColor",e}({});S.BottomRight,E.PrimaryColor,_.Chatbot1;function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?T(Object(n),!0).forEach(function(t){P(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function P(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=C(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=C(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==C(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I=function(){return(0,i.useMemo)(function(){try{var e,t,n,r,o,i=document.getElementById("react-app-root"),a=null==i||null===(e=i.dataset)||void 0===e?void 0:e.chatbotConfiguration,u=null==i||null===(t=i.dataset)||void 0===t?void 0:t.chatbotCustomTypes;if(!a||!u)return{config:null,color:s,colorOverTheme:l,isConfigured:!1,error:null};var c=JSON.parse(a),d=JSON.parse(u),f=(null==c||null===(n=c.payload)||void 0===n?void 0:n.clientSettings)||null,p=(null==c||null===(r=c.payload)||void 0===r?void 0:r.cmsThemeColors)||null,h=(null==d||null===(o=d.payload)||void 0===o||null===(o=o.enums)||void 0===o?void 0:o.CmsThemeColorEnum)||null;if(!f||!h)return{config:null,color:s,colorOverTheme:l,isConfigured:!1,error:null};var m=function(e,t,n){if(!t)return s;var r=Object.keys(n).find(function(t){return n[t]===e});if(!r)return console.warn("Unknown color enum value: ".concat(e,", falling back to default")),s;var o=t[r];if(o)return o;return console.warn("Unknown color name: ".concat(r,", falling back to PrimaryColor")),t.PrimaryColor||s}(f.color,p,h),g=function(e,t,n){if(!t)return l;var r=Object.keys(n).find(function(t){return n[t]===e});if(!r)return console.warn("Unknown color enum value: ".concat(e,", falling back to ColorOverPrimary")),t.ColorOverPrimary||l;if("PrimaryColor"===r)return t.ColorOverPrimary||l;if("SecondaryColor"===r)return t.ColorOverSecondary||l;return console.warn("Unknown color name: ".concat(r,", falling back to ColorOverPrimary")),t.ColorOverPrimary||l}(f.color,p,h);return{config:O(O({},f),{},{colorHex:m,iconUrl:null}),color:m,colorOverTheme:g,isConfigured:!0,error:null}}catch(e){return console.error("Failed to parse chatbot configuration from dataset:",e),{config:null,color:s,colorOverTheme:l,isConfigured:!1,error:e}}},[])};var j=o(418);function A(e){e()}var N={notify(){},get:()=>[]};function R(e,t){let n,r=N,o=0,i=!1;function a(){u.onStateChange&&u.onStateChange()}function s(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){A(()=>{let t=e;for(;t;)t.callback(),t=t.next})},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){r&&null!==e&&(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function l(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=N)}const u={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,s())},tryUnsubscribe:function(){i&&(i=!1,l())},getListeners:()=>r};return u}var M=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),D=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),z=(()=>M||D?i.useLayoutEffect:i.useEffect)();function L(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function F(e,t){if(L(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!L(e[n[r]],t[n[r]]))return!1;return!0}Object.defineProperty,Object.getOwnPropertyNames,Object.getOwnPropertySymbols,Object.getOwnPropertyDescriptor,Object.getPrototypeOf,Object.prototype;var B=Symbol.for("react-redux-context"),U="undefined"!=typeof globalThis?globalThis:{};function q(){if(!i.createContext)return{};const e=U[B]??=new Map;let t=e.get(i.createContext);return t||(t=i.createContext(null),e.set(i.createContext,t)),t}var H=q();var $=function(e){const{children:t,context:n,serverState:r,store:o}=e,a=i.useMemo(()=>{const e=R(o);return{store:o,subscription:e,getServerState:r?()=>r:void 0}},[o,r]),s=i.useMemo(()=>o.getState(),[o]);z(()=>{const{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==o.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[a,s]);const l=n||H;return i.createElement(l.Provider,{value:a},t)};function V(e=H){return function(){return i.useContext(e)}}var W=V();function Q(e=H){const t=e===H?W:V(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var K=Q();function Y(e=H){const t=e===H?K:Q(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var G=Y(),J=(e,t)=>
1e===t;function X(e=H){const t=e===H?W:V(e),n=(e,n={})=>{const{equalityFn:r=J}="function"==typeof n?{equalityFn:n}:n;const o=t(),{store:a,subscription:s,getServerState:l}=o,u=(i.useRef(!0),i.useCallback({[e.name]:t=>e(t)}[e.name],[e])),c=(0,j.useSyncExternalStoreWithSelector)(s.addNestedSub,a.getState,l||a.getState,u,r);return i.useDebugValue(c),c};return Object.assign(n,{withTypes:()=>n}),n}var Z=X(),ee=A;function te(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var ne=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),re=()=>Math.random().toString(36).substring(7).split("").join("."),oe={INIT:`@@redux/INIT${re()}`,REPLACE:`@@redux/REPLACE${re()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${re()}`};function ie(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function ae(e,t,n){if("function"!=typeof e)throw new Error(te(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(te(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(te(1));return n(ae)(e,t)}let r=e,o=t,i=new Map,a=i,s=0,l=!1;function u(){a===i&&(a=new Map,i.forEach((e,t)=>{a.set(t,e)}))}function c(){if(l)throw new Error(te(3));return o}function d(e){if("function"!=typeof e)throw new Error(te(4));if(l)throw new Error(te(5));let t=!0;u();const n=s++;return a.set(n,e),function(){if(t){if(l)throw new Error(te(6));t=!1,u(),a.delete(n),i=null}}}function f(e){if(!ie(e))throw new Error(te(7));if(void 0===e.type)throw new Error(te(8));if("string"!=typeof e.type)throw new Error(te(17));if(l)throw new Error(te(9));try{l=!0,o=r(o,e)}finally{l=!1}return(i=a).forEach(e=>{e()}),e}f({type:oe.INIT});return{dispatch:f,subscribe:d,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error(te(10));r=e,f({type:oe.REPLACE})},[ne]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(te(11));function n(){const e=t;e.next&&e.next(c())}n();return{unsubscribe:e(n)}},[ne](){return this}}}}}function se(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}const r=Object.keys(n);let o;try{!function(e){Object.keys(e).forEach(t=>{const n=e[t];if(void 0===n(void 0,{type:oe.INIT}))throw new Error(te(12));if(void 0===n(void 0,{type:oe.PROBE_UNKNOWN_ACTION()}))throw new Error(te(13))})}(n)}catch(e){o=e}return function(e={},t){if(o)throw o;let i=!1;const a={};for(let o=0;o<r.length;o++){const s=r[o],l=n[s],u=e[s],c=l(u,t);if(void 0===c){t&&t.type;throw new Error(te(14))}a[s]=c,i=i||c!==u}return i=i||r.length!==Object.keys(e).length,i?a:e}}function le(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function ue(e){return ie(e)&&"type"in e&&"string"==typeof e.type}function ce(e){return({dispatch:t,getState:n})=>r=>o=>"function"==typeof o?o(t,n,e):r(o)}var de=ce(),fe=ce,pe=Symbol.for("immer-nothing"),he=Symbol.for("immer-draftable"),me=Symbol.for("immer-state");function ge(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ye=Object.getPrototypeOf;function be(e){return!!e&&!!e[me]}function ve(e){return!!e&&(xe(e)||Array.isArray(e)||!!e[he]||!!e.constructor?.[he]||Te(e)||Oe(e))}var we=Object.prototype.constructor.toString();function xe(e){if(!e||"object"!=typeof e)return!1;const t=ye(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===we}function ke(e,t){0===Se(e)?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Se(e){const t=e[me];return t?t.type_:Array.isArray(e)?1:Te(e)?2:Oe(e)?3:0}function _e(e,t){return 2===Se(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ee(e,t){return 2===Se(e)?e.get(t):e[t]}function Ce(e,t,n){const r=Se(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function Te(e){return e instanceof Map}function Oe(e){return e instanceof Set}function Pe(e){return e.copy_||e.base_}function Ie(e,t){if(Te(e))return new Map(e);if(Oe(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=xe(e);if(!0===t||"class_only"===t&&!n){const t=Object.getOwnPropertyDescriptors(e);delete t[me];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){const o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(ye(e),t)}{const t=ye(e);if(null!==t&&n)return{...e};const r=Object.create(t);return Object.assign(r,e)}}function je(e,t=!1){return Ne(e)||be(e)||!ve(e)||(Se(e)>1&&(e.set=e.add=e.clear=e.delete=Ae),Object.freeze(e),t&&Object.entries(e).forEach(([e,t])=>je(t,!0))),e}function Ae(){ge(2)}function Ne(e){return Object.isFrozen(e)}var Re,Me={};function De(e){const t=Me[e];return t||ge(0),t}function ze(e,t){Me[e]||(Me[e]=t)}function Le(){return Re}function Fe(e,t){t&&(De("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Be(e){Ue(e),e.drafts_.forEach(He),e.drafts_=null}function Ue(e){e===Re&&(Re=e.parent_)}function qe(e){return Re={drafts_:[],parent_:Re,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function He(e){const t=e[me];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function $e(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[me].modified_&&(Be(t),ge(4)),ve(e)&&(e=Ve(t,e),t.parent_||Qe(t,e)),t.patches_&&De("Patches").generateReplacementPatches_(n[me].base_,e,t.patches_,t.inversePatches_)):e=Ve(t,n,[]),Be(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==pe?e:void 0}function Ve(e,t,n){if(Ne(t))return t;const r=t[me];if(!r)return ke(t,(o,i)=>We(e,r,t,o,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Qe(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let o=t,i=!1;3===r.type_&&(o=new Set(t),t.clear(),i=!0),ke(o,(o,a)=>We(e,r,t,o,a,n,i)),Qe(e,t,!1),n&&e.patches_&&De("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function We(e,t,n,r,o,i,a){if(be(o)){const a=Ve(e,o,i&&t&&3!==t.type_&&!_e(t.assigned_,r)?i.concat(r):void 0);if(Ce(n,r,a),!be(a))return;e.canAutoFreeze_=!1}else a&&n.add(o);if(ve(o)&&!Ne(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Ve(e,o),t&&t.scope_.parent_||"symbol"==typeof r||!Object.prototype.propertyIsEnumerable.call(n,r)||Qe(e,o)}}function Qe(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&je(t,n)}var Ke={get(e,t){if(t===me)return e;const n=Pe(e);if(!_e(n,t))return function(e,t,n){const r=Je(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!ve(r)?r:r===Ge(e.base_,t)?(Ze(e),e.copy_[t]=et(r,e)):r},has:(e,t)=>t in Pe(e),ownKeys:e=>Reflect.ownKeys(Pe(e)),set(e,t,n){const r=Je(Pe(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=Ge(Pe(e),t),a=r?.[me];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(((o=n)===(i=r)?0!==o||1/o==1/i:o!=o&&i!=i)&&(void 0!==n||_e(e.base_,t)))return!0;Ze(e),Xe(e)}var o,i;return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==Ge(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Ze(e),Xe(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=Pe(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){ge(11)},getPrototypeOf:e=>
1ye(e.base_),setPrototypeOf(){ge(12)}},Ye={};function Ge(e,t){const n=e[me];return(n?Pe(n):e)[t]}function Je(e,t){if(!(t in e))return;let n=ye(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=ye(n)}}function Xe(e){e.modified_||(e.modified_=!0,e.parent_&&Xe(e.parent_))}function Ze(e){e.copy_||(e.copy_=Ie(e.base_,e.scope_.immer_.useStrictShallowCopy_))}ke(Ke,(e,t)=>{Ye[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Ye.deleteProperty=function(e,t){return Ye.set.call(this,e,t,void 0)},Ye.set=function(e,t,n){return Ke.set.call(this,e[0],t,n,e[0])};function et(e,t){const n=Te(e)?De("MapSet").proxyMap_(e,t):Oe(e)?De("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Le(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=Ke;n&&(o=[r],i=Ye);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=a,s}(e,t);return(t?t.scope_:Le()).drafts_.push(n),n}function tt(e){if(!ve(e)||Ne(e))return e;const t=e[me];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Ie(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Ie(e,!0);return ke(n,(e,t)=>{Ce(n,e,tt(t))}),t&&(t.finalized_=!1),n}function nt(){const e="replace",t="add",n="remove";function r(e){if(!ve(e))return e;if(Array.isArray(e))return e.map(r);if(Te(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,r(t)]));if(Oe(e))return new Set(Array.from(e).map(r));const t=Object.create(ye(e));for(const n in e)t[n]=r(e[n]);return _e(e,he)&&(t[he]=e[he]),t}function o(e){return be(e)?r(e):e}ze("Patches",{applyPatches_:function(o,i){return i.forEach(i=>{const{path:a,op:s}=i;let l=o;for(let e=0;e<a.length-1;e++){const t=Se(l);let n=a[e];"string"!=typeof n&&"number"!=typeof n&&(n=""+n),0!==t&&1!==t||"__proto__"!==n&&"constructor"!==n||ge(19),"function"==typeof l&&"prototype"===n&&ge(19),l=Ee(l,n),"object"!=typeof l&&ge(18,a.join("/"))}const u=Se(l),c=r(i.value),d=a[a.length-1];switch(s){case e:switch(u){case 2:return l.set(d,c);case 3:ge(16);default:return l[d]=c}case t:switch(u){case 1:return"-"===d?l.push(c):l.splice(d,0,c);case 2:return l.set(d,c);case 3:return l.add(c);default:return l[d]=c}case n:switch(u){case 1:return l.splice(d,1);case 2:return l.delete(d);case 3:return l.delete(i.value);default:return delete l[d]}default:ge(17)}}),o},generatePatches_:function(r,i,a,s){switch(r.type_){case 0:case 2:return function(r,i,a,s){const{base_:l,copy_:u}=r;ke(r.assigned_,(r,c)=>{const d=Ee(l,r),f=Ee(u,r),p=c?_e(l,r)?e:t:n;if(d===f&&p===e)return;const h=i.concat(r);a.push(p===n?{op:p,path:h}:{op:p,path:h,value:f}),s.push(p===t?{op:n,path:h}:p===n?{op:t,path:h,value:o(d)}:{op:e,path:h,value:o(d)})})}(r,i,a,s);case 1:return function(r,i,a,s){let{base_:l,assigned_:u}=r,c=r.copy_;c.length<l.length&&([l,c]=[c,l],[a,s]=[s,a]);for(let t=0;t<l.length;t++)if(u[t]&&c[t]!==l[t]){const n=i.concat([t]);a.push({op:e,path:n,value:o(c[t])}),s.push({op:e,path:n,value:o(l[t])})}for(let e=l.length;e<c.length;e++){const n=i.concat([e]);a.push({op:t,path:n,value:o(c[e])})}for(let e=c.length-1;l.length<=e;--e){const t=i.concat([e]);s.push({op:n,path:t})}}(r,i,a,s);case 3:return function(e,r,o,i){let{base_:a,copy_:s}=e,l=0;a.forEach(e=>{if(!s.has(e)){const a=r.concat([l]);o.push({op:n,path:a,value:e}),i.unshift({op:t,path:a,value:e})}l++}),l=0,s.forEach(e=>{if(!a.has(e)){const a=r.concat([l]);o.push({op:t,path:a,value:e}),i.unshift({op:n,path:a,value:e})}l++})}(r,i,a,s)}},generateReplacementPatches_:function(t,n,r,o){r.push({op:e,path:[],value:n===pe?void 0:n}),o.push({op:e,path:[],value:t})}})}var rt=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...o){return r.produce(e,e=>t.call(this,e,...o))}}let r;if("function"!=typeof t&&ge(6),void 0!==n&&"function"!=typeof n&&ge(7),ve(e)){const o=qe(this),i=et(e,void 0);let a=!0;try{r=t(i),a=!1}finally{a?Be(o):Ue(o)}return Fe(o,n),$e(r,o)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===pe&&(r=void 0),this.autoFreeze_&&je(r,!0),n){const t=[],o=[];De("Patches").generateReplacementPatches_(e,r,t,o),n(t,o)}return r}ge(1)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){ve(e)||ge(8),be(e)&&(e=function(e){be(e)||ge(10);return tt(e)}(e));const t=qe(this),n=et(e,void 0);return n[me].isManual_=!0,Ue(t),n}finishDraft(e,t){const n=e&&e[me];n&&n.isManual_||ge(9);const{scope_:r}=n;return Fe(r,t),$e(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>
1-1&&(t=t.slice(n+1));const r=De("Patches").applyPatches_;return be(e)?r(e,t):this.produce(e,e=>r(e,t))}},ot=rt.produce,it=rt.produceWithPatches.bind(rt),at=(rt.setAutoFreeze.bind(rt),rt.setUseStrictShallowCopy.bind(rt),rt.applyPatches.bind(rt));rt.createDraft.bind(rt),rt.finishDraft.bind(rt);var st="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?le:le.apply(null,arguments)},lt=("undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__,e=>e&&"function"==typeof e.match);function ut(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(Ht(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>ue(t)&&t.type===e,n}var ct=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function dt(e){return ve(e)?ot(e,()=>{}):e}function ft(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var pt="RTK_autoBatch",ht=()=>e=>({payload:e,meta:{[pt]:!0}}),mt=e=>t=>{setTimeout(t,e)},gt=e=>function(t){const{autoBatch:n=!0}=t??{};let r=new ct(e);return n&&r.push(((e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,i=!1,a=!1;const s=new Set,l="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:mt(10):"callback"===e.type?e.queueNotification:mt(e.timeout),u=()=>{a=!1,i&&(i=!1,s.forEach(e=>e()))};return Object.assign({},r,{subscribe(e){const t=r.subscribe(()=>o&&e());return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return o=!e?.meta?.[pt],i=!o,i&&(a||(a=!0,l(u))),r.dispatch(e)}finally{o=!0}}})})("object"==typeof n?n:void 0)),r};function yt(e){const t={},n=[];let r;const o={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(Ht(28));if(r in t)throw new Error(Ht(29));return t[r]=n,o},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),o),addDefaultCase:e=>(r=e,o)};return e(o),[t,n,r]}var bt=(e,t)=>lt(e)?e.match(t):e(t);function vt(...e){return t=>e.some(e=>bt(e,t))}function wt(...e){return t=>e.every(e=>bt(e,t))}function xt(e,t){if(!e||!e.meta)return!1;const n="string"==typeof e.meta.requestId,r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function kt(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function St(...e){return 0===e.length?e=>xt(e,["pending"]):kt(e)?vt(...e.map(e=>e.pending)):St()(e[0])}function _t(...e){return 0===e.length?e=>xt(e,["rejected"]):kt(e)?vt(...e.map(e=>e.rejected)):_t()(e[0])}function Et(...e){const t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||kt(e)?wt(_t(...e),t):Et()(e[0])}function Ct(...e){return 0===e.length?e=>xt(e,["fulfilled"]):kt(e)?vt(...e.map(e=>e.fulfilled)):Ct()(e[0])}function Tt(...e){return 0===e.length?e=>xt(e,["pending","fulfilled","rejected"]):kt(e)?vt(...e.flatMap(e=>[e.pending,e.rejected,e.fulfilled])):Tt()(e[0])}var Ot=(e=21)=>{let t="",n=e;for(;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},Pt=["name","message","stack","code"],It=class{constructor(e,t){this.payload=e,this.meta=t}_type},jt=class{constructor(e,t){this.payload=e,this.meta=t}_type},At=e=>{if("object"==typeof e&&null!==e){const t={};for(const n of Pt)"string"==typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},Nt="External signal was aborted",Rt=(()=>{function e(e,t,n){const r=ut(e+"/fulfilled",(e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}})),o=ut(e+"/pending",(e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}})),i=ut(e+"/rejected",(e,t,r,o,i)=>({payload:o,error:(n&&n.serializeError||At)(e||"Rejected"),meta:{...i||{},arg:r,requestId:t,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===e?.name,condition:"ConditionError"===e?.name}}));return Object.assign(function(e,{signal:a}={}){return(s,l,u)=>{const c=n?.idGenerator?n.idGenerator(e):Ot(),d=new AbortController;let f,p;function h(e){p=e,d.abort()}a&&(a.aborted?h(Nt):a.addEventListener("abort",()=>h(Nt),{once:!0}));const m=async function(){let a;try{let i=n?.condition?.(e,{getState:l,extra:u});if(null!==(m=i)&&"object"==typeof m&&"function"==typeof m.then&&(i=await i),!1===i||d.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const g=new Promise((e,t)=>
1{f=()=>{t({name:"AbortError",message:p||"Aborted"})},d.signal.addEventListener("abort",f)});s(o(c,e,n?.getPendingMeta?.({requestId:c,arg:e},{getState:l,extra:u}))),a=await Promise.race([g,Promise.resolve(t(e,{dispatch:s,getState:l,extra:u,requestId:c,signal:d.signal,abort:h,rejectWithValue:(e,t)=>new It(e,t),fulfillWithValue:(e,t)=>new jt(e,t)})).then(t=>{if(t instanceof It)throw t;return t instanceof jt?r(t.payload,c,e,t.meta):r(t,c,e)})])}catch(t){a=t instanceof It?i(null,c,e,t.payload,t.meta):i(t,c,e)}finally{f&&d.signal.removeEventListener("abort",f)}var m;return n&&!n.dispatchConditionRejection&&i.match(a)&&a.meta.condition||s(a),a}();return Object.assign(m,{abort:h,requestId:c,arg:e,unwrap:()=>m.then(Mt)})}},{pending:o,rejected:i,fulfilled:r,settled:vt(i,r),typePrefix:e})}return e.withTypes=()=>e,e})();function Mt(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}var Dt=Symbol.for("rtk-slice-createasyncthunk");function zt(e,t){return`${e}/${t}`}function Lt({creators:e}={}){const t=e?.asyncThunk?.[Dt];return function(e){const{name:n,reducerPath:r=n}=e;if(!n)throw new Error(Ht(11));const o=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},i=Object.keys(o),a={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(Ht(12));if(n in a.sliceCaseReducersByType)throw new Error(Ht(13));return a.sliceCaseReducersByType[n]=t,s},addMatcher:(e,t)=>(a.sliceMatchers.push({matcher:e,reducer:t}),s),exposeAction:(e,t)=>(a.actionCreators[e]=t,s),exposeCaseReducer:(e,t)=>(a.sliceCaseReducersByName[e]=t,s)};function l(){const[t={},n=[],r]="function"==typeof e.extraReducers?yt(e.extraReducers):[e.extraReducers],o={...t,...a.sliceCaseReducersByType};return function(e,t){let n,[r,o,i]=yt(t);if("function"==typeof e)n=()=>dt(e());else{const t=dt(e);n=()=>t}function a(e=n(),t){let a=[r[t.type],...o.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return 0===a.filter(e=>!!e).length&&(a=[i]),a.reduce((e,n)=>{if(n){if(be(e)){const r=n(e,t);return void 0===r?e:r}if(ve(e))return ot(e,e=>n(e,t));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}}return e},e)}return a.getInitialState=n,a}(e.initialState,e=>{for(let t in o)e.addCase(t,o[t]);for(let t of a.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)})}i.forEach(r=>{const i=o[r],a={reducerName:r,type:zt(n,r),createNotation:"function"==typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(i)?function({type:e,reducerName:t,createNotation:n},r,o){let i,a;if("reducer"in r){if(n&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(r))throw new Error(Ht(17));i=r.reducer,a=r.prepare}else i=r;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?ut(e,a):ut(e))}(a,i,s):function({type:e,reducerName:t},n,r,o){if(!o)throw new Error(Ht(18));const{payloadCreator:i,fulfilled:a,pending:s,rejected:l,settled:u,options:c}=n,d=o(e,i,c);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a);s&&r.addCase(d.pending,s);l&&r.addCase(d.rejected,l);u&&r.addMatcher(d.settled,u);r.exposeCaseReducer(t,{fulfilled:a||Ut,pending:s||Ut,rejected:l||Ut,settled:u||Ut})}(a,i,s,t)});const u=e=>e,c=new Map,d=new WeakMap;let f;function p(e,t){return f||(f=l()),f(e,t)}function h(){return f||(f=l()),f.getInitialState()}function m(t,n=!1){function r(e){let o=e[t];return void 0===o&&n&&(o=ft(d,r,h)),o}function o(t=u){const r=ft(c,n,()=>new WeakMap);return ft(r,t,()=>{const r={};for(const[o,i]of Object.entries(e.selectors??{}))r[o]=Ft(i,t,()=>ft(d,t,h),n);return r})}return{reducerPath:t,getSelectors:o,get selectors(){return o(r)},selectSlice:r}}const g={name:n,reducer:p,actions:a.actionCreators,caseReducers:a.sliceCaseReducersByName,getInitialState:h,...m(r),injectInto(e,{reducerPath:t,...n}={}){const o=t??r;return e.inject({reducerPath:o,reducer:p},n),{...g,...m(o,!0)}}};return g}}function Ft(e,t,n,r){function o(o,...i){let a=t(o);return void 0===a&&r&&(a=n()),e(a,...i)}return o.unwrapped=e,o}var Bt=Lt();function Ut(){}var{assign:qt}=Object;Symbol.for("rtk-state-proxy-original");function Ht(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var $t={isActive:!1,feedbackType:null,messageId:null,showForm:!1,feedbackText:"",isSubmitted:!1,isSubmitting:!1,feedbackChatId:null},Vt=Bt({name:"feedback",initialState:$t,reducers:{startFeedback:function(e,t){e.isActive=!0,e.feedbackType=t.payload.feedbackType,e.messageId=t.payload.messageId,e.feedbackChatId=t.payload.feedbackChatId,e.showForm=!0,e.feedbackText="",e.isSubmitted=!1,e.isSubmitting=!1},setFeedbackText:function(e,t){e.feedbackText=t.payload},startSubmitting:function(e){e.isSubmitting=!0},submitFeedbackSuccess:function(e){e.isSubmitted=!0,e.isSubmitting=!1,e.showForm=!1},submitFeedbackError:function(e){e.isSubmitting=!1},resetFeedback:function(){return $t}}}),Wt=Vt.actions,Qt=Wt.startFeedback,Kt=Wt.setFeedbackText,Yt=Wt.startSubmitting,Gt=Wt.submitFeedbackSuccess,Jt=Wt.submitFeedbackError,Xt=Wt.resetFeedback;const Zt=Vt.reducer;
1var en=function(){var e=G(),t=Z(function(e){return function(e){return e.feedback.isActive}(e)}),n=Z(function(e){return function(e){return e.feedback.feedbackType}(e)}),r=Z(function(e){return function(e){return e.feedback.messageId}(e)}),o=Z(function(e){return function(e){return e.feedback.showForm}(e)}),a=Z(function(e){return function(e){return e.feedback.feedbackText}(e)}),s=Z(function(e){return function(e){return e.feedback.isSubmitted}(e)}),l=Z(function(e){return function(e){return e.feedback.isSubmitting}(e)}),u=Z(function(e){return function(e){return e.feedback.feedbackChatId}(e)}),c=(0,i.useCallback)(function(t,n,r){e(Qt({messageId:t,feedbackType:n,feedbackChatId:r}))},[e]);return{isActive:t,feedbackType:n,messageId:r,showForm:o,feedbackText:a,isSubmitted:s,isSubmitting:l,feedbackChatId:u,startFeedback:c,setFeedbackText:(0,i.useCallback)(function(t){e(Kt(t))},[e]),startSubmitting:(0,i.useCallback)(function(){e(Yt())},[e]),submitFeedbackSuccess:(0,i.useCallback)(function(){e(Gt())},[e]),submitFeedbackError:(0,i.useCallback)(function(){e(Jt())},[e]),resetFeedback:(0,i.useCallback)(function(){e(Xt())},[e])}};function tn(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=tn(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function nn(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=tn(e))&&(r&&(r+=" "),r+=t);return r}const rn=e=>{const t=ln(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),on(n,t)||sn(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},on=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?on(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find(({validator:e})=>e(i))?.classGroupId},an=/^\[(.+)\]$/,sn=e=>{if(an.test(e)){const t=an.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},ln=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const e in n)un(n[e],r,e,t);return r},un=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:cn(t,e)).classGroupId=n)}if("function"==typeof e)return dn(e)?void un(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,o])=>{un(o,cn(t,e),n,r)})})},cn=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},dn=e=>e.isThemeGetter,fn=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},pn=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=e=>{const t=[];let n,r=0,o=0,i=0;for(let a=0;a<e.length;a++){let s=e[a];if(0===r&&0===o){if(":"===s){t.push(e.slice(i,a)),i=a+1;continue}if("/"===s){n=a;continue}}"["===s?r++:"]"===s?r--:"("===s?o++:")"===s&&o--}const a=0===t.length?e:e.substring(i),s=hn(a);return{modifiers:t,hasImportantModifier:s!==a,baseClassName:s,maybePostfixModifierPosition:n&&n>i?n-i:void 0}};if(t){const e=t+":",n=r;r=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){const e=r;r=t=>n({className:t,parseClassName:e})}return r},hn=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,mn=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const n=[];let r=[];return e.forEach(e=>{"["===e[0]||t[e]?(n.push(...r.sort(),e),r=[]):r.push(e)}),n.push(...r.sort()),n}},gn=/\s+/;function yn(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=bn(e))&&(r&&(r+=" "),r+=t);return r}const bn=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=bn(e[r]))&&(n&&(n+=" "),n+=t);return n};function vn(e,...t){let n,r,o,i=function(s){const l=t.reduce((e,t)=>
vendor: 4,144 bytes, line 1
1t(e),e());return n=(e=>({cache:fn(e.cacheSize),parseClassName:pn(e),sortModifiers:mn(e),...rn(e)}))(l),r=n.cache.get,o=n.cache.set,i=a,a(s)};function a(e){const t=r(e);if(t)return t;const i=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,a=[],s=e.trim().split(gn);let l="";for(let e=s.length-1;e>=0;e-=1){const t=s[e],{isExternal:u,modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(u){l=t+(l.length>0?" "+l:l);continue}let h=!!p,m=r(h?f.substring(0,p):f);if(!m){if(!h){l=t+(l.length>0?" "+l:l);continue}if(m=r(f),!m){l=t+(l.length>0?" "+l:l);continue}h=!1}const g=i(c).join(":"),y=d?g+"!":g,b=y+m;if(a.includes(b))continue;a.push(b);const v=o(m,h);for(let e=0;e<v.length;++e){const t=v[e];a.push(y+t)}l=t+(l.length>0?" "+l:l)}return l})(e,n);return o(e,i),i}return function(){return i(yn.apply(null,arguments))}}const wn=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},xn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,kn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Sn=/^\d+\/\d+$/,_n=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,En=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Cn=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Tn=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,On=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Pn=e=>Sn.test(e),In=e=>!!e&&!Number.isNaN(Number(e)),jn=e=>!!e&&Number.isInteger(Number(e)),An=e=>e.endsWith("%")&&In(e.slice(0,-1)),Nn=e=>_n.test(e),Rn=()=>!0,Mn=e=>En.test(e)&&!Cn.test(e),Dn=()=>!1,zn=e=>Tn.test(e),Ln=e=>On.test(e),Fn=e=>!Un(e)&&!Qn(e),Bn=e=>er(e,or,Dn),Un=e=>xn.test(e),qn=e=>er(e,ir,Mn),Hn=e=>er(e,ar,In),$n=e=>er(e,nr,Dn),Vn=e=>er(e,rr,Ln),Wn=e=>er(e,lr,zn),Qn=e=>kn.test(e),Kn=e=>tr(e,ir),Yn=e=>tr(e,sr),Gn=e=>tr(e,nr),Jn=e=>tr(e,or),Xn=e=>tr(e,rr),Zn=e=>tr(e,lr,!0),er=(e,t,n)=>{const r=xn.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},tr=(e,t,n=!1)=>{const r=kn.exec(e);return!!r&&(r[1]?t(r[1]):n)},nr=e=>"position"===e||"percentage"===e,rr=e=>"image"===e||"url"===e,or=e=>"length"===e||"size"===e||"bg-size"===e,ir=e=>"length"===e,ar=e=>"number"===e,sr=e=>"family-name"===e,lr=e=>"shadow"===e,ur=(Symbol.toStringTag,()=>{const e=wn("color"),t=wn("font"),n=wn("text"),r=wn("font-weight"),o=wn("tracking"),i=wn("leading"),a=wn("breakpoint"),s=wn("container"),l=wn("spacing"),u=wn("radius"),c=wn("shadow"),d=wn("inset-shadow"),f=wn("text-shadow"),p=wn("drop-shadow"),h=wn("blur"),m=wn("perspective"),g=wn("aspect"),y=wn("ease"),b=wn("animate"),v=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Qn,Un],w=()=>[Qn,Un,l],x=()=>[Pn,"full","auto",...w()],k=()=>[jn,"none","subgrid",Qn,Un],S=()=>["auto",{span:["full",jn,Qn,Un]},jn,Qn,Un],_=()=>[jn,"auto",Qn,Un],E=()=>["auto","min","max","fr",Qn,Un],C=()=>["auto",...w()],T=()=>[Pn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],O=()=>[e,Qn,Un],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Gn,$n,{position:[Qn,Un]}],I=()=>["auto","cover","contain",Jn,Bn,{size:[Qn,Un]}],j=()=>[An,Kn,qn],A=()=>["","none","full",u,Qn,Un],N=()=>["",In,Kn,qn],R=()=>[In,An,Gn,$n],M=()=>["","none",h,Qn,Un],D=()=>["none",In,Qn,Un],z=()=>["none",In,Qn,Un],L=()=>[In,Qn,Un],F=()=>[Pn,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Nn],breakpoint:[Nn],color:[Rn],container:[Nn],"drop-shadow":[Nn],ease:["in","out","in-out"],font:[Fn],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Nn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Nn],shadow:[Nn],spacing:["px",In],text:[Nn],"text-shadow":[Nn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Pn,Un,Qn,g]}
vendor: 5,347 bytes, line 1
1],container:["container"],columns:[{columns:[In,Un,Qn,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:v()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:x()}],"inset-x":[{"inset-x":x()}],"inset-y":[{"inset-y":x()}],start:[{start:x()}],end:[{end:x()}],top:[{top:x()}],right:[{right:x()}],bottom:[{bottom:x()}],left:[{left:x()}],visibility:["visible","invisible","collapse"],z:[{z:[jn,"auto",Qn,Un]}],basis:[{basis:[Pn,"full","auto",s,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[In,Pn,"auto","initial","none",Un]}],grow:[{grow:["",In,Qn,Un]}],shrink:[{shrink:["",In,Qn,Un]}],order:[{order:[jn,"first","last","none",Qn,Un]}],"grid-cols":[{"grid-cols":k()}],"col-start-end":[{col:S()}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":k()}],"row-start-end":[{row:S()}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":E()}],"auto-rows":[{"auto-rows":E()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:C()}],mx:[{mx:C()}],my:[{my:C()}],ms:[{ms:C()}],me:[{me:C()}],mt:[{mt:C()}],mr:[{mr:C()}],mb:[{mb:C()}],ml:[{ml:C()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:T()}],w:[{w:[s,"screen",...T()]}],"min-w":[{"min-w":[s,"screen","none",...T()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...T()]}],h:[{h:["screen","lh",...T()]}],"min-h":[{"min-h":["screen","lh","none",...T()]}],"max-h":[{"max-h":["screen","lh",...T()]}],"font-size":[{text:["base",n,Kn,qn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Qn,Hn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",An,Un]}],"font-family":[{font:[Yn,Un,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,Qn,Un]}],"line-clamp":[{"line-clamp":[In,"none",Qn,Hn]}],leading:[{leading:[i,...w()]}],"list-image":[{"list-image":["none",Qn,Un]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Qn,Un]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:O()}],"text-color":[{text:O()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","
1wavy"]}],"text-decoration-thickness":[{decoration:[In,"from-font","auto",Qn,qn]}],"text-decoration-color":[{decoration:O()}],"underline-offset":[{"underline-offset":[In,"auto",Qn,Un]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Qn,Un]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Qn,Un]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:P()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:I()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},jn,Qn,Un],radial:["",Qn,Un],conic:[jn,Qn,Un]},Xn,Vn]}],"bg-color":[{bg:O()}],"gradient-from-pos":[{from:j()}],"gradient-via-pos":[{via:j()}],"gradient-to-pos":[{to:j()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:A()}],"rounded-s":[{"rounded-s":A()}],"rounded-e":[{"rounded-e":A()}],"rounded-t":[{"rounded-t":A()}],"rounded-r":[{"rounded-r":A()}],"rounded-b":[{"rounded-b":A()}],"rounded-l":[{"rounded-l":A()}],"rounded-ss":[{"rounded-ss":A()}],"rounded-se":[{"rounded-se":A()}],"rounded-ee":[{"rounded-ee":A()}],"rounded-es":[{"rounded-es":A()}],"rounded-tl":[{"rounded-tl":A()}],"rounded-tr":[{"rounded-tr":A()}],"rounded-br":[{"rounded-br":A()}],"rounded-bl":[{"rounded-bl":A()}],"border-w":[{border:N()}],"border-w-x":[{"border-x":N()}],"border-w-y":[{"border-y":N()}],"border-w-s":[{"border-s":N()}],"border-w-e":[{"border-e":N()}],"border-w-t":[{"border-t":N()}],"border-w-r":[{"border-r":N()}],"border-w-b":[{"border-b":N()}],"border-w-l":[{"border-l":N()}],"divide-x":[{"divide-x":N()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":N()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:O()}],"border-color-x":[{"border-x":O()}],"border-color-y":[{"border-y":O()}],"border-color-s":[{"border-s":O()}],"border-color-e":[{"border-e":O()}],"border-color-t":[{"border-t":O()}],"border-color-r":[{"border-r":O()}],"border-color-b":[{"border-b":O()}],"border-color-l":[{"border-l":O()}],"divide-color":[{divide:O()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[In,Qn,Un]}],"outline-w":[{outline:["",In,Kn,qn]}],"outline-color":[{outline:O()}],shadow:[{shadow:["","none",c,Zn,Wn]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":["none",d,Zn,Wn]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:N()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[In,qn]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":N()}],"inset-ring-color":[{"inset-ring":O()}],"text-shadow":[{"text-shadow":["none",f,Zn,Wn]}],"text-shadow-color":[{"text-shadow":O()}],opacity:[{opacity:[In,Qn,Un]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}
vendor: 4,919 bytes, line 1
1],"mask-image-linear-pos":[{"mask-linear":[In]}],"mask-image-linear-from-pos":[{"mask-linear-from":R()}],"mask-image-linear-to-pos":[{"mask-linear-to":R()}],"mask-image-linear-from-color":[{"mask-linear-from":O()}],"mask-image-linear-to-color":[{"mask-linear-to":O()}],"mask-image-t-from-pos":[{"mask-t-from":R()}],"mask-image-t-to-pos":[{"mask-t-to":R()}],"mask-image-t-from-color":[{"mask-t-from":O()}],"mask-image-t-to-color":[{"mask-t-to":O()}],"mask-image-r-from-pos":[{"mask-r-from":R()}],"mask-image-r-to-pos":[{"mask-r-to":R()}],"mask-image-r-from-color":[{"mask-r-from":O()}],"mask-image-r-to-color":[{"mask-r-to":O()}],"mask-image-b-from-pos":[{"mask-b-from":R()}],"mask-image-b-to-pos":[{"mask-b-to":R()}],"mask-image-b-from-color":[{"mask-b-from":O()}],"mask-image-b-to-color":[{"mask-b-to":O()}],"mask-image-l-from-pos":[{"mask-l-from":R()}],"mask-image-l-to-pos":[{"mask-l-to":R()}],"mask-image-l-from-color":[{"mask-l-from":O()}],"mask-image-l-to-color":[{"mask-l-to":O()}],"mask-image-x-from-pos":[{"mask-x-from":R()}],"mask-image-x-to-pos":[{"mask-x-to":R()}],"mask-image-x-from-color":[{"mask-x-from":O()}],"mask-image-x-to-color":[{"mask-x-to":O()}],"mask-image-y-from-pos":[{"mask-y-from":R()}],"mask-image-y-to-pos":[{"mask-y-to":R()}],"mask-image-y-from-color":[{"mask-y-from":O()}],"mask-image-y-to-color":[{"mask-y-to":O()}],"mask-image-radial":[{"mask-radial":[Qn,Un]}],"mask-image-radial-from-pos":[{"mask-radial-from":R()}],"mask-image-radial-to-pos":[{"mask-radial-to":R()}],"mask-image-radial-from-color":[{"mask-radial-from":O()}],"mask-image-radial-to-color":[{"mask-radial-to":O()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[In]}],"mask-image-conic-from-pos":[{"mask-conic-from":R()}],"mask-image-conic-to-pos":[{"mask-conic-to":R()}],"mask-image-conic-from-color":[{"mask-conic-from":O()}],"mask-image-conic-to-color":[{"mask-conic-to":O()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:P()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:I()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Qn,Un]}],filter:[{filter:["","none",Qn,Un]}],blur:[{blur:M()}],brightness:[{brightness:[In,Qn,Un]}],contrast:[{contrast:[In,Qn,Un]}],"drop-shadow":[{"drop-shadow":["","none",p,Zn,Wn]}],"drop-shadow-color":[{"drop-shadow":O()}],grayscale:[{grayscale:["",In,Qn,Un]}],"hue-rotate":[{"hue-rotate":[In,Qn,Un]}],invert:[{invert:["",In,Qn,Un]}],saturate:[{saturate:[In,Qn,Un]}],sepia:[{sepia:["",In,Qn,Un]}],"backdrop-filter":[{"backdrop-filter":["","none",Qn,Un]}],"backdrop-blur":[{"backdrop-blur":M()}],"backdrop-brightness":[{"backdrop-brightness":[In,Qn,Un]}],"backdrop-contrast":[{"backdrop-contrast":[In,Qn,Un]}],"backdrop-grayscale":[{"backdrop-grayscale":["",In,Qn,Un]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[In,Qn,Un]}],"backdrop-invert":[{"backdrop-invert":["",In,Qn,Un]}],"backdrop-opacity":[{"backdrop-opacity":[In,Qn,Un]}],"backdrop-saturate":[{"backdrop-saturate":[In,Qn,Un]}],"backdrop-sepia":[{"backdrop-sepia":["",In,Qn,Un]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Qn,Un]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[In,"initial",Qn,Un]}],ease:[{ease:["linear","initial",y,Qn,Un]}],delay:[{delay:[In,Qn,Un]}],animate:[{animate:["none",b,Qn,Un]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,Qn,Un]}],"perspective-origin":[{"perspective-origin":v()}],rotate:[{rotate:D()}],"rotate-x":[{"rotate-x":D()}],"rotate-y":[{"rotate-y":D()}],"rotate-z":[{"rotate-z":D()}],scale:[{scale:z()}],"scale-x":[{"scale-x":z()}],"scale-y":[{"scale-y":z()}],"scale-z":[{"scale-z":z()}],"scale-3d":["scale-3d"],skew:[{skew:L()}],"skew-x":[{"skew-x":L()}],"skew-y":[{"skew-y":L()}],transform:[{transform:[Qn,Un,"","none","gpu","cpu"]}],"transform-origin":[{origin:v()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:F()}],"translate-x":[{"translate-x":F()}],"translate-y":[{"translate-y":F()}],"translate-z":[{"translate-z":F()}],"translate-none":["translate-none"],accent:[{accent:O()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:O()}
1],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Qn,Un]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Qn,Un]}],fill:[{fill:["none",...O()]}],"stroke-w":[{stroke:[In,Kn,qn,Hn]}],stroke:[{stroke:["none",...O()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),cr=vn(ur);function dr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return cr(nn(t))}var fr=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})};function pr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?pr(Object(n),!0).forEach(function(t){mr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=gr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=gr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==gr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gr(e){return gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gr(e)}var yr="public-websearch-chatbot-session-id",br="public-websearch-chatbot-session-timeout",vr="public-websearch-chatbot-messages",wr="public-websearch-chatbot-modal-open",xr="public-websearch-chatbot-bubble-dismissed",kr="public-websearch-chatbot-feedback-chat-id",Sr="public-websearch-chatbot-feedback-form-state",_r=36e5,Er=function(){var e=fr(),t=Date.now();try{return sessionStorage.setItem(yr,e),sessionStorage.setItem(br,t.toString()),e}catch(t){return e}},Cr=function(){try{return sessionStorage.getItem(yr)}catch(e){return null}},Tr=function(){try{var e=sessionStorage.getItem(br);return e?parseInt(e,10):null}catch(e){return null}},Or=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_r,t=Tr();return!t||Date.now()-t>e},Pr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_r,t=Cr();return t?Or(e)?(Ir(),Er()):t:Er()},Ir=function(){try{sessionStorage.removeItem(yr),sessionStorage.removeItem(br)}catch(e){}},jr=function(e,t){if(!e||!t)return e;try{var n=function(e){var n,r,o;return e&&"object"===gr(e)?(null===(n=(e.message||e).metadata)||void 0===n||null===(n=n.custom)||void 0===n?void 0:n.sessionId)?e:e.message?hr(hr({},e),{},{message:hr(hr({},e.message),{},{metadata:hr(hr({},e.message.metadata),{},{custom:hr(hr({},null===(o=e.message.metadata)||void 0===o?void 0:o.custom),{},{sessionId:t})})})}):hr(hr({},e),{},{metadata:hr(hr({},e.metadata),{},{custom:hr(hr({},null===(r=e.metadata)||void 0===r?void 0:r.custom),{},{sessionId:t})})}):e},r=function(e){return e.map(n)};if(Array.isArray(e))return r(e);if(e.messages&&Array.isArray(e.messages))return hr(hr({},e),{},{messages:r(e.messages)});var o=hr({},e);return Object.keys(o).forEach(function(e){"messages"===e&&Array.isArray(o[e])&&(o[e]=r(o[e]))}),o}catch(t){return console.warn("Failed to add sessionId to messages, returning original:",t),e}},Ar={generateUUID:fr,createSession:Er,getCurrentSessionId:Cr,getSessionTimestamp:Tr,isSessionExpired:Or,hasValidSession:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_r;return!!Cr()&&!Or(e)},getOrCreateSession:Pr,clearSession:Ir,resetSession:function(){return Ir(),Er()},addSessionIdToMessages:jr,saveMessages:function(e){var t=Cr()||Pr();try{var n,r=e,o=!1;null!==(n=r)&&void 0!==n&&n.messages&&r.messages.forEach(function(e){var t;null!==(t=(e.message||e).metadata)&&void 0!==t&&null!==(t=t.custom)&&void 0!==t&&t.sessionId||(o=!0)}),o&&(r=jr(e,t)),sessionStorage.setItem(vr,JSON.stringify(r))}catch(e){console.warn("Failed to save messages to session storage:",e)}},loadMessages:function(){try{var e=sessionStorage.getItem(vr);return e?JSON.parse(e):null}catch(e){return console.warn("Failed to load messages from session storage:",e),null}},saveModalState:function(e){try{sessionStorage.setItem(wr,JSON.stringify(e))}catch(e){console.warn("Failed to save modal state to session storage:",e)}},loadModalState:function(){try{var e=sessionStorage.getItem(wr);return!!e&&JSON.parse(e)}catch(e){return console.warn("Failed to load modal state from session storage:",e),!1}},dismissBubble:function(){try{sessionStorage.setItem(xr,"true")}catch(e){console.warn("Failed to save bubble dismissed state:",e)}},isBubbleDismissed:function(){try{return"true"===sessionStorage.getItem(xr)}catch(e){return!1}},saveFeedbackChatId:function(e){try{sessionStorage.setItem(kr,e)}catch(e){console.warn("Failed to save feedback chatId to session storage:",e)}},getFeedbackChatId:function(){try{return sessionStorage.getItem(kr)}catch(e){return console.warn("Failed to get feedback chatId from session storage:",e),null}}
1,clearFeedbackChatId:function(){try{sessionStorage.removeItem(kr)}catch(e){console.warn("Failed to clear feedback chatId from session storage:",e)}},saveFeedbackFormState:function(e,t,n){try{var r={messageId:e,feedbackType:t,feedbackChatId:n};sessionStorage.setItem(Sr,JSON.stringify(r))}catch(e){console.warn("Failed to save feedback form state to session storage:",e)}},loadFeedbackFormState:function(){try{var e=sessionStorage.getItem(Sr);return e?JSON.parse(e):null}catch(e){return console.warn("Failed to load feedback form state from session storage:",e),null}},clearFeedbackFormState:function(){try{sessionStorage.removeItem(Sr)}catch(e){console.warn("Failed to clear feedback form state from session storage:",e)}}};const Nr=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Rr=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)},Mr=(...e)=>e.filter((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim(),Dr=e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};var zr={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Lr=(0,i.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:s,...l},u)=>(0,i.createElement)("svg",{ref:u,...zr,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:Mr("lucide",o),...!a&&!Dr(l)&&{"aria-hidden":"true"},...l},[...s.map(([e,t])=>(0,i.createElement)(e,t)),...Array.isArray(a)?a:[a]])),Fr=(e,t)=>{const n=(0,i.forwardRef)(({className:n,...r},o)=>(0,i.createElement)(Lr,{ref:o,iconNode:t,className:Mr(`lucide-${Nr(Rr(e))}`,`lucide-${e}`,n),...r}));return n.displayName=Rr(e),n},Br=Fr("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]),Ur=Fr("message-square-more",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M16 10h.01",key:"1m94wz"}]]),qr=Fr("bot-message-square",[["path",{d:"M12 6V2H8",key:"1155em"}],["path",{d:"m8 18-4 4V8a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2Z",key:"w2lp3e"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M9 11v2",key:"1ueba0"}],["path",{d:"M15 11v2",key:"i11awn"}],["path",{d:"M20 12h2",key:"1q8mjw"}]]),Hr=Fr("message-circle-more",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]]),$r=Fr("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Vr=Fr("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);"undefined"==typeof window||!window.document||window.document.createElement;function Wr(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function Qr(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Kr(...e){return t=>{let n=!1;const r=e.map(e=>{const r=Qr(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():Qr(e[t],null)}}}}function Yr(...e){return i.useCallback(Kr(...e),e)}var Gr=o(848);function Jr(e,t=[]){let n=[];const r=()=>{const t=n.map(e=>i.createContext(e));return function(n){const r=n?.[e]||t;return i.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){const o=i.createContext(r),a=n.length;n=[...n,r];const s=t=>{const{scope:n,children:r,...s}=t,l=n?.[e]?.[a]||o,u=i.useMemo(()=>s,Object.values(s));return(0,Gr.jsx)(l.Provider,{value:u,children:r})};return s.displayName=t+"Provider",[s,function(n,s){const l=s?.[e]?.[a]||o,u=i.useContext(l);if(u)return u;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},Xr(r,...t)]}function Xr(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const r=n.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}var Zr=o(961);
vendor: 9,465 bytes, line 1
1function eo(e){const t=to(e),n=i.forwardRef((e,n)=>{const{children:r,...o}=e,a=i.Children.toArray(r),s=a.find(ro);if(s){const e=s.props.children,r=a.map(t=>t===s?i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null:t);return(0,Gr.jsx)(t,{...o,ref:n,children:i.isValidElement(e)?i.cloneElement(e,void 0,r):null})}return(0,Gr.jsx)(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function to(e){const t=i.forwardRef((e,t)=>{const{children:n,...r}=e;if(i.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==i.Fragment&&(o.ref=t?Kr(t,e):e),i.cloneElement(n,o)}return i.Children.count(n)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var no=Symbol("radix.slottable");function ro(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===no}var oo=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=eo(`Primitive.${t}`),r=i.forwardRef((e,r)=>{const{asChild:o,...i}=e,a=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,Gr.jsx)(a,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function io(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...e)=>t.current?.(...e),[])}function ao(e,t=globalThis?.document){const n=io(e);i.useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}var so,lo="dismissableLayer.update",uo="dismissableLayer.pointerDownOutside",co="dismissableLayer.focusOutside",fo=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),po=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=e,c=i.useContext(fo),[d,f]=i.useState(null),p=d?.ownerDocument??globalThis?.document,[,h]=i.useState({}),m=Yr(t,e=>f(e)),g=Array.from(c.layers),[y]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),v=d?g.indexOf(d):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,x=v>=b,k=function(e,t=globalThis?.document){const n=io(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const e=e=>{if(e.target&&!r.current){let r=function(){go(uo,n,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{const t=e.target,n=[...c.branches].some(e=>e.contains(t));x&&!n&&(o?.(e),s?.(e),e.defaultPrevented||l?.())},p),S=function(e,t=globalThis?.document){const n=io(e),r=i.useRef(!1);return i.useEffect(()=>{const e=e=>{if(e.target&&!r.current){go(co,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{const t=e.target;[...c.branches].some(e=>e.contains(t))||(a?.(e),s?.(e),e.defaultPrevented||l?.())},p);return ao(e=>{v===c.layers.size-1&&(r?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))},p),i.useEffect(()=>{if(d)return n&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(so=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),mo(),()=>{n&&1===c.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=so)}},[d,p,n,c]),i.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),mo())},[d,c]),i.useEffect(()=>{const e=()=>h({});return document.addEventListener(lo,e),()=>document.removeEventListener(lo,e)},[]),(0,Gr.jsx)(oo.div,{...u,ref:m,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:Wr(e.onFocusCapture,S.onFocusCapture),onBlurCapture:Wr(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:Wr(e.onPointerDownCapture,k.onPointerDownCapture)})});po.displayName="DismissableLayer";var ho=i.forwardRef((e,t)=>{const n=i.useContext(fo),r=i.useRef(null),o=Yr(t,r);return i.useEffect(()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,Gr.jsx)(oo.div,{...e,ref:o})});function mo(){const e=new CustomEvent(lo);document.dispatchEvent(e)}function go(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&Zr.flushSync(()=>e.dispatchEvent(t))}(o,i):o.dispatchEvent(i)}ho.displayName="DismissableLayerBranch";var yo=0;function bo(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??vo()),document.body.insertAdjacentElement("beforeend",e[1]??vo()),yo++,()=>{1===yo&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),yo--}},[])}function vo(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var wo="focusScope.autoFocusOnMount",xo="focusScope.autoFocusOnUnmount",ko={bubbles:!1,cancelable:!0},So=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[l,u]=i.useState(null),c=io(o),d=io(a),f=i.useRef(null),p=Yr(t,e=>u(e)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let e=function(e){if(h.paused||!l)return;const t=e.target;l.contains(t)?f.current=t:To(f.current,{select:!0})},t=function(e){if(h.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||To(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&To(l)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[r,l,h.paused]),i.useEffect(()=>{if(l){Oo.add(h);const t=document.activeElement;if(!l.contains(t)){const n=new CustomEvent(wo,ko);l.addEventListener(wo,c),l.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(To(r,{select:t}),document.activeElement!==n)return}((e=_o(l),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&To(l))}return()=>{l.removeEventListener(wo,c),setTimeout(()=>{const e=new CustomEvent(xo,ko);l.addEventListener(xo,d),l.dispatchEvent(e),e.defaultPrevented||To(t??document.body,{select:!0}),l.removeEventListener(xo,d),Oo.remove(h)},0)}}var e},[l,c,d,h]);const m=i.useCallback(e=>{if(!n&&!r)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=function(e){const t=_o(e),n=Eo(t,e),r=Eo(t.reverse(),e);return[n,r]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&To(i,{select:!0})):(e.preventDefault(),n&&To(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,h.paused]);return(0,Gr.jsx)(oo.div,{tabIndex:-1,...s,ref:p,onKeyDown:m})});function _o(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Eo(e,t){for(const n of e)if(!Co(n,{upTo:t}))return n}function Co(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function To(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}So.displayName="FocusScope";var Oo=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Po(e,t),e.unshift(t)},remove(t){e=Po(e,t),e[0]?.resume()}}}();function Po(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var Io=globalThis?.document?i.useLayoutEffect:()=>{},jo=a[" useId ".trim().toString()]||(()=>{}),Ao=0;function No(e){const[t,n]=i.useState(jo());return Io(()=>{e||n(e=>e??String(Ao++))},[e]),e||(t?`radix-${t}`:"")}const Ro=["top","right","bottom","left"],Mo=Math.min,Do=Math.max,zo=Math.round,Lo=Math.floor,Fo=e=>({x:e,y:e}
vendor: 5,174 bytes, line 1
1),Bo={left:"right",right:"left",bottom:"top",top:"bottom"},Uo={start:"end",end:"start"};function qo(e,t,n){return Do(e,Mo(t,n))}function Ho(e,t){return"function"==typeof e?e(t):e}function $o(e){return e.split("-")[0]}function Vo(e){return e.split("-")[1]}function Wo(e){return"x"===e?"y":"x"}function Qo(e){return"y"===e?"height":"width"}const Ko=new Set(["top","bottom"]);function Yo(e){return Ko.has($o(e))?"y":"x"}function Go(e){return Wo(Yo(e))}function Jo(e){return e.replace(/start|end/g,e=>Uo[e])}const Xo=["left","right"],Zo=["right","left"],ei=["top","bottom"],ti=["bottom","top"];function ni(e,t,n,r){const o=Vo(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?Zo:Xo:t?Xo:Zo;case"left":case"right":return t?ei:ti;default:return[]}}($o(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(Jo)))),i}function ri(e){return e.replace(/left|right|bottom|top/g,e=>Bo[e])}function oi(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function ii(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function ai(e,t,n){let{reference:r,floating:o}=e;const i=Yo(t),a=Go(t),s=Qo(a),l=$o(t),u="y"===i,c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:c,y:r.y-o.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Vo(t)){case"start":p[a]-=f*(n&&u?-1:1);break;case"end":p[a]+=f*(n&&u?-1:1)}return p}async function si(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Ho(t,e),h=oi(p),m=s[f?"floating"===d?"reference":"floating":d],g=ii(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),y="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),v=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},w=ii(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:l}):y);return{top:(g.top-w.top+h.top)/v.y,bottom:(w.bottom-g.bottom+h.bottom)/v.y,left:(g.left-w.left+h.left)/v.x,right:(w.right-g.right+h.right)/v.x}}function li(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ui(e){return Ro.some(t=>e[t]>=0)}const ci=new Set(["left","top"]);function di(){return"undefined"!=typeof window}function fi(e){return mi(e)?(e.nodeName||"").toLowerCase():"#document"}function pi(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function hi(e){var t;return null==(t=(mi(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function mi(e){return!!di()&&(e instanceof Node||e instanceof pi(e).Node)}function gi(e){return!!di()&&(e instanceof Element||e instanceof pi(e).Element)}function yi(e){return!!di()&&(e instanceof HTMLElement||e instanceof pi(e).HTMLElement)}function bi(e){return!(!di()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof pi(e).ShadowRoot)}const vi=new Set(["inline","contents"]);function wi(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ai(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!vi.has(o)}const xi=new Set(["table","td","th"]);function ki(e){return xi.has(fi(e))}const Si=[":popover-open",":modal"];function _i(e){return Si.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const Ei=["transform","translate","scale","rotate","perspective"],Ci=["transform","translate","scale","rotate","perspective","filter"],Ti=["paint","layout","strict","content"];function Oi(e){const t=Pi(),n=gi(e)?Ai(e):e;return Ei.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||Ci.some(e=>(n.willChange||"").includes(e))||Ti.some(e=>(n.contain||"").includes(e))}function Pi(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Ii=new Set(["html","body","#document"]);function ji(e){return Ii.has(fi(e))}function Ai(e){return pi(e).getComputedStyle(e)}function Ni(e){return gi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ri(e){if("html"===fi(e))return e;const t=e.assignedSlot||e.parentNode||bi(e)&&e.host||hi(e);return bi(t)?t.host:t}function Mi(e){const t=Ri(e);return ji(t)?e.ownerDocument?e.ownerDocument.body:e.body:yi(t)&&wi(t)?t:Mi(t)}function Di(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Mi(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=pi(o);if(i){const e=zi(a);
vendor: 4,131 bytes, line 1
1return t.concat(a,a.visualViewport||[],wi(o)?o:[],e&&n?Di(e):[])}return t.concat(o,Di(o,[],n))}function zi(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Li(e){const t=Ai(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=yi(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=zo(n)!==i||zo(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Fi(e){return gi(e)?e:e.contextElement}function Bi(e){const t=Fi(e);if(!yi(t))return Fo(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Li(t);let a=(i?zo(n.width):n.width)/r,s=(i?zo(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Ui=Fo(0);function qi(e){const t=pi(e);return Pi()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ui}function Hi(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Fi(e);let a=Fo(1);t&&(r?gi(r)&&(a=Bi(r)):a=Bi(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==pi(e))&&t}(i,n,r)?qi(i):Fo(0);let l=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,c=o.width/a.x,d=o.height/a.y;if(i){const e=pi(i),t=r&&gi(r)?pi(r):r;let n=e,o=zi(n);for(;o&&r&&t!==n;){const e=Bi(o),t=o.getBoundingClientRect(),r=Ai(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,c*=e.x,d*=e.y,l+=i,u+=a,n=pi(o),o=zi(n)}}return ii({width:c,height:d,x:l,y:u})}function $i(e,t){const n=Ni(e).scrollLeft;return t?t.left+n:Hi(hi(e)).left+n}function Vi(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-$i(e,n),y:n.top+t.scrollTop}}const Wi=new Set(["absolute","fixed"]);function Qi(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=pi(e),r=hi(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=Pi();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}const u=$i(r);if(u<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-o);a<=25&&(i-=a)}else u<=25&&(i+=u);return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=hi(e),n=Ni(e),r=e.ownerDocument.body,o=Do(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Do(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+$i(e);const s=-n.scrollTop;return"rtl"===Ai(r).direction&&(a+=Do(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(hi(e));else if(gi(t))r=function(e,t){const n=Hi(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=yi(e)?Bi(e):Fo(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=qi(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ii(r)}function Ki(e,t){const n=Ri(e);return!(n===t||!gi(n)||ji(n))&&("fixed"===Ai(n).position||Ki(n,t))}function Yi(e,t,n){const r=yi(t),o=hi(t),i="fixed"===n,a=Hi(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Fo(0);function u(){l.x=$i(o)}if(r||!r&&!i)if(("body"!==fi(t)||wi(o))&&(s=Ni(t)),r){const e=Hi(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&u();i&&!r&&o&&u();const c=!o||r||i?Fo(0):Vi(o,s);return{x:a.left+s.scrollLeft-l.x-c.x,y:a.top+s.scrollTop-l.y-c.y,width:a.width,height:a.height}}function Gi(e){return"static"===Ai(e).position}function Ji(e,t){if(!yi(e)||"fixed"===Ai(e).position)return null;if(t)return t(e);let n=e.offsetParent;return hi(e)===n&&(n=n.ownerDocument.body),n}function Xi(e,t){const n=pi(e);if(_i(e))return n;if(!yi(e)){let t=Ri(e);for(;t&&!ji(t);){if(gi(t)&&!Gi(t))return t;t=Ri(t)}return n}let r=Ji(e,t);for(;r&&ki(r)&&Gi(r);)r=Ji(r,t);return r&&ji(r)&&Gi(r)&&!Oi(r)?n:r||function(e){let t=Ri(e);for(;yi(t)&&!ji(t);){if(Oi(t))return t;if(_i(t))return null;t=Ri(t)}return null}(e)||n}const Zi={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=hi(r),s=!!t&&_i(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},u=Fo(1);const c=Fo(0),d=yi(r);
vendor: 4,276 bytes, line 1
1if((d||!d&&!i)&&(("body"!==fi(r)||wi(a))&&(l=Ni(r)),yi(r))){const e=Hi(r);u=Bi(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}const f=!a||d||i?Fo(0):Vi(a,l);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-l.scrollTop*u.y+c.y+f.y}},getDocumentElement:hi,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?_i(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Di(e,[],!1).filter(e=>gi(e)&&"body"!==fi(e)),o=null;const i="fixed"===Ai(e).position;let a=i?Ri(e):e;for(;gi(a)&&!ji(a);){const t=Ai(a),n=Oi(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&Wi.has(o.position)||wi(a)&&!n&&Ki(e,a))?r=r.filter(e=>e!==a):o=t,a=Ri(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...i,r],s=a[0],l=a.reduce((e,n)=>{const r=Qi(t,n,o);return e.top=Do(r.top,e.top),e.right=Mo(r.right,e.right),e.bottom=Mo(r.bottom,e.bottom),e.left=Do(r.left,e.left),e},Qi(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Xi,getElementRects:async function(e){const t=this.getOffsetParent||Xi,n=this.getDimensions,r=await n(e.floating);return{reference:Yi(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Li(e);return{width:t,height:n}},getScale:Bi,isElement:gi,isRTL:function(e){return"rtl"===Ai(e).direction}};function ea(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ta(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,u=Fi(e),c=o||i?[...u?Di(u):[],...Di(t)]:[];c.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const d=u&&s?function(e,t){let n,r=null;const o=hi(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=u;if(s||t(),!f||!p)return;const h={rootMargin:-Lo(d)+"px "+-Lo(o.clientWidth-(c+f))+"px "+-Lo(o.clientHeight-(d+p))+"px "+-Lo(c)+"px",threshold:Do(0,Mo(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||ea(u,e.getBoundingClientRect())||a(),m=!1}try{r=new IntersectionObserver(g,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,h)}r.observe(e)}(!0),i}(u,n):null;let f,p=-1,h=null;a&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let m=l?Hi(e):null;return l&&function t(){const r=Hi(e);m&&!ea(m,r)&&n();m=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(f)}}const na=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=$o(n),s=Vo(n),l="y"===Yo(n),u=ci.has(a)?-1:1,c=i&&l?-1:1,d=Ho(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),l?{x:p*c,y:f*u}:{x:f*u,y:p*c}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},ra=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Ho(e,t),u={x:n,y:r},c=await si(t,l),d=Yo($o(o)),f=Wo(d);let p=u[f],h=u[d];if(i){const e="y"===f?"bottom":"right";p=qo(p+c["y"===f?"top":"left"],p,p-c[e])}
vendor: 4,905 bytes, line 1
1if(a){const e="y"===d?"bottom":"right";h=qo(h+c["y"===d?"top":"left"],h,h-c[e])}const m=s.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:i,[d]:a}}}}}},oa=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=Ho(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const y=$o(o),b=Yo(s),v=$o(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(u.floating)),x=f||(v||!m?[ri(s)]:function(e){const t=ri(e);return[Jo(e),t,Jo(t)]}(s)),k="none"!==h;!f&&k&&x.push(...ni(s,m,h,w));const S=[s,...x],_=await si(t,g),E=[];let C=(null==(r=i.flip)?void 0:r.overflows)||[];if(c&&E.push(_[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Vo(e),o=Go(e),i=Qo(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=ri(a)),[a,ri(a)]}(o,a,w);E.push(_[e[0]],_[e[1]])}if(C=[...C,{placement:o,overflows:E}],!E.every(e=>e<=0)){var T,O;const e=((null==(T=i.flip)?void 0:T.index)||0)+1,t=S[e];if(t){if(!("alignment"===d&&b!==Yo(t))||C.every(e=>Yo(e.placement)!==b||e.overflows[0]>0))return{data:{index:e,overflows:C},reset:{placement:t}}}let n=null==(O=C.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:O.placement;if(!n)switch(p){case"bestFit":{var P;const e=null==(P=C.filter(e=>{if(k){const t=Yo(e.placement);return t===b||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:P[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},ia=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:l=()=>{},...u}=Ho(e,t),c=await si(t,u),d=$o(o),f=Vo(o),p="y"===Yo(o),{width:h,height:m}=i.floating;let g,y;"top"===d||"bottom"===d?(g=d,y=f===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(y=d,g="end"===f?"top":"bottom");const b=m-c.top-c.bottom,v=h-c.left-c.right,w=Mo(m-c[g],b),x=Mo(h-c[y],v),k=!t.middlewareData.shift;let S=w,_=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(_=v),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(S=b),k&&!f){const e=Do(c.left,0),t=Do(c.right,0),n=Do(c.top,0),r=Do(c.bottom,0);p?_=h-2*(0!==e||0!==t?e+t:Do(c.left,c.right)):S=m-2*(0!==n||0!==r?n+r:Do(c.top,c.bottom))}await l({...t,availableWidth:_,availableHeight:S});const E=await a.getDimensions(s.floating);return h!==E.width||m!==E.height?{reset:{rects:!0}}:{}}}},aa=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ho(e,t);switch(r){case"referenceHidden":{const e=li(await si(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:ui(e)}}}case"escaped":{const e=li(await si(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:ui(e)}}}default:return{}}}}},sa=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=Ho(e,t)||{};if(null==u)return{};const d=oi(c),f={x:n,y:r},p=Go(o),h=Qo(p),m=await a.getDimensions(u),g="y"===p,y=g?"top":"left",b=g?"bottom":"right",v=g?"clientHeight":"clientWidth",w=i.reference[h]+i.reference[p]-f[p]-i.floating[h],x=f[p]-i.reference[p],k=await(null==a.getOffsetParent?void 0:a.getOffsetParent(u));let S=k?k[v]:0;S&&await(null==a.isElement?void 0:a.isElement(k))||(S=s.floating[v]||i.floating[h]);const _=w/2-x/2,E=S/2-m[h]/2-1,C=Mo(d[y],E),T=Mo(d[b],E),O=C,P=S-m[h]-T,I=S/2-m[h]/2+_,j=qo(O,I,P),A=!l.arrow&&null!=Vo(o)&&I!==j&&i.reference[h]/2-(I<O?C:T)-m[h]/2<0,N=A?I<O?I-O:I-P:0;return{[p]:f[p]+N,data:{[p]:j,centerOffset:I-j-N,...A&&{alignmentOffset:N}},reset:A}}}),la=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=Ho(e,t),c={x:n,y:r},d=Yo(o),f=Wo(d);let p=c[f],h=c[d];const m=Ho(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+g.mainAxis,n=i.reference[f]+i.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(u){var y,b;const e="y"===f?"width":"height",t=ci.has($o(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(y=a.offset)?void 0:y[d])||0)+(t?0:g.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(b=a.offset)?void 0:b[d])||0)-(t?g.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}},ua=(e,t,n)=>{const r=new Map,o={platform:Zi,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}
vendor: 9,289 bytes, line 1
1=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=ai(u,r,l),f=r,p={},h=0;for(let n=0;n<s.length;n++){const{name:i,fn:m}=s[n],{x:g,y,data:b,reset:v}=await m({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=y?y:d,p={...p,[i]:{...p[i],...b}},v&&h<=50&&(h++,"object"==typeof v&&(v.placement&&(f=v.placement),v.rects&&(u=!0===v.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):v.rects),({x:c,y:d}=ai(u,f,l))),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};var ca="undefined"!=typeof document?i.useLayoutEffect:function(){};function da(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!da(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!da(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function fa(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function pa(e,t){const n=fa(e);return Math.round(t*n)/n}function ha(e){const t=i.useRef(e);return ca(()=>{t.current=e}),t}const ma=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?sa({element:n.current,padding:r}).fn(t):{}:n?sa({element:n,padding:r}).fn(t):{};var o}}),ga=(e,t)=>({...na(e),options:[e,t]}),ya=(e,t)=>({...ra(e),options:[e,t]}),ba=(e,t)=>({...la(e),options:[e,t]}),va=(e,t)=>({...oa(e),options:[e,t]}),wa=(e,t)=>({...ia(e),options:[e,t]}),xa=(e,t)=>({...aa(e),options:[e,t]}),ka=(e,t)=>({...ma(e),options:[e,t]});var Sa=i.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return(0,Gr.jsx)(oo.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,Gr.jsx)("polygon",{points:"0,0 30,0 15,10"})})});Sa.displayName="Arrow";var _a=Sa;var Ea="Popper",[Ca,Ta]=Jr(Ea),[Oa,Pa]=Ca(Ea),Ia=e=>{const{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return(0,Gr.jsx)(Oa,{scope:t,anchor:r,onAnchorChange:o,children:n})};Ia.displayName=Ea;var ja="PopperAnchor",Aa=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=Pa(ja,n),s=i.useRef(null),l=Yr(t,s),u=i.useRef(null);return i.useEffect(()=>{const e=u.current;u.current=r?.current||s.current,e!==u.current&&a.onAnchorChange(u.current)}),r?null:(0,Gr.jsx)(oo.div,{...o,ref:l})});Aa.displayName=ja;var Na="PopperContent",[Ra,Ma]=Ca(Na),Da=i.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:u=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:p=!1,updatePositionStrategy:h="optimized",onPlaced:m,...g}=e,y=Pa(Na,n),[b,v]=i.useState(null),w=Yr(t,e=>v(e)),[x,k]=i.useState(null),S=function(e){const[t,n]=i.useState(void 0);return Io(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(x),_=S?.width??0,E=S?.height??0,C=r+("center"!==a?"-"+a:""),T="number"==typeof d?d:{top:0,right:0,bottom:0,left:0,...d},O=Array.isArray(c)?c:[c],P=O.length>0,I={padding:T,boundary:O.filter(Ba),altBoundary:P},{refs:j,floatingStyles:A,placement:N,isPositioned:R,middlewareData:M}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[d,f]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=i.useState(r);da(p,r)||h(r);const[m,g]=i.useState(null),[y,b]=i.useState(null),v=i.useCallback(e=>{e!==S.current&&(S.current=e,g(e))},[]),w=i.useCallback(e=>{e!==_.current&&(_.current=e,b(e))},[]),x=a||m,k=s||y,S=i.useRef(null),_=i.useRef(null),E=i.useRef(d),C=null!=u,T=ha(u),O=ha(o),P=ha(c),I=i.useCallback(()=>{if(!S.current||!_.current)return;const e={placement:t,strategy:n,middleware:p};O.current&&(e.platform=O.current),ua(S.current,_.current,e).then(e=>{const t={...e,isPositioned:!1!==P.current};j.current&&!da(E.current,t)&&(E.current=t,Zr.flushSync(()=>{f(t)}))})},[p,t,n,O,P]);ca(()=>{!1===c&&E.current.isPositioned&&(E.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[c]);const j=i.useRef(!1);ca(()=>(j.current=!0,()=>{j.current=!1}),[]),ca(()=>{if(x&&(S.current=x),k&&(_.current=k),x&&k){if(T.current)return T.current(x,k,I);I()}},[x,k,I,T,C]);const A=i.useMemo(()=>({reference:S,floating:_,setReference:v,setFloating:w}),[v,w]),N=i.useMemo(()=>({reference:x,floating:k}),[x,k]),R=i.useMemo(()=>{const e={position:n,left:0,top:0};if(!N.floating)return e;const t=pa(N.floating,d.x),r=pa(N.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...fa(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,N.floating,d.x,d.y]);return i.useMemo(()=>({...d,update:I,refs:A,elements:N,floatingStyles:R}),[d,I,A,N,R])}({strategy:"fixed",placement:C,whileElementsMounted:(...e)=>ta(...e,{animationFrame:"always"===h}),elements:{reference:y.anchor},middleware:[ga({mainAxis:o+E,alignmentAxis:s}),u&&ya({mainAxis:!0,crossAxis:!1,limiter:"partial"===f?ba():void 0,...I}),u&&va({...I}),wa({...I,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),x&&ka({element:x,padding:l}),Ua({arrowWidth:_,arrowHeight:E}),p&&xa({strategy:"referenceHidden",...I})]}),[D,z]=qa(N),L=io(m);Io(()=>{R&&L?.()},[R,L]);const F=M.arrow?.x,B=M.arrow?.y,U=0!==M.arrow?.centerOffset,[q,H]=i.useState();return Io(()=>{b&&H(window.getComputedStyle(b).zIndex)},[b]),(0,Gr.jsx)("div",{ref:j.setFloating,"data-radix-popper-content-wrapper":"",style:{...A,transform:R?A.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:q,"--radix-popper-transform-origin":[M.transformOrigin?.x,M.transformOrigin?.y].join(" "),...M.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,Gr.jsx)(Ra,{scope:n,placedSide:D,onArrowChange:k,arrowX:F,arrowY:B,shouldHideArrow:U,children:(0,Gr.jsx)(oo.div,{"data-side":D,"data-align":z,...g,ref:w,style:{...g.style,animation:R?void 0:"none"}})})})});Da.displayName=Na;var za="PopperArrow",La={top:"bottom",right:"left",bottom:"top",left:"right"},Fa=i.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,o=Ma(za,n),i=La[o.placedSide];return(0,Gr.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,Gr.jsx)(_a,{...r,ref:t,style:{...r.style,display:"block"}})})});function Ba(e){return null!==e}Fa.displayName=za;var Ua=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,a=i?0:e.arrowWidth,s=i?0:e.arrowHeight,[l,u]=qa(n),c={start:"0%",center:"50%",end:"100%"}[u],d=(o.arrow?.x??0)+a/2,f=(o.arrow?.y??0)+s/2;let p="",h="";return"bottom"===l?(p=i?c:`${d}px`,h=-s+"px"):"top"===l?(p=i?c:`${d}px`,h=`${r.floating.height+s}px`):"right"===l?(p=-s+"px",h=i?c:`${f}px`):"left"===l&&(p=`${r.floating.width+s}px`,h=i?c:`${f}px`),{data:{x:p,y:h}}}});function qa(e){const[t,n="center"]=e.split("-");return[t,n]}var Ha=Ia,$a=Aa,Va=Da,Wa=Fa,Qa=i.forwardRef((e,t)=>{const{container:n,...r}=e,[o,a]=i.useState(!1);Io(()=>a(!0),[]);const s=n||o&&globalThis?.document?.body;return s?Zr.createPortal((0,Gr.jsx)(oo.div,{...r,ref:t}),s):null});Qa.displayName="Portal";var Ka=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=i.useState(),r=i.useRef(null),o=i.useRef(e),a=i.useRef("none"),s=e?"mounted":"unmounted",[l,u]=function(e,t){return i.useReducer((e,n)=>t[e][n]??e,e)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const e=Ya(r.current);a.current="mounted"===l?e:"none"},[l]),Io(()=>{const t=r.current,n=o.current;if(n!==e){const r=a.current,i=Ya(t);if(e)u("MOUNT");else if("none"===i||"none"===t?.display)u("UNMOUNT");else{u(n&&r!==i?"ANIMATION_OUT":"UNMOUNT")}o.current=e}},[e,u]),Io(()=>
vendor: 17,805 bytes, line 1
1{if(t){let e;const n=t.ownerDocument.defaultView??window,i=i=>{const a=Ya(r.current).includes(CSS.escape(i.animationName));if(i.target===t&&a&&(u("ANIMATION_END"),!o.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},s=e=>{e.target===t&&(a.current=Ya(r.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",i),t.addEventListener("animationend",i),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",i),t.removeEventListener("animationend",i)}}u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:i.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}(t),o="function"==typeof n?n({present:r.isPresent}):i.Children.only(n),a=Yr(r.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(o));return"function"==typeof n||r.isPresent?i.cloneElement(o,{ref:a}):null};function Ya(e){return e?.animationName||"none"}Ka.displayName="Presence";function Ga(e){const t=Ja(e),n=i.forwardRef((e,n)=>{const{children:r,...o}=e,a=i.Children.toArray(r),s=a.find(Za);if(s){const e=s.props.children,r=a.map(t=>t===s?i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null:t);return(0,Gr.jsx)(t,{...o,ref:n,children:i.isValidElement(e)?i.cloneElement(e,void 0,r):null})}return(0,Gr.jsx)(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Ja(e){const t=i.forwardRef((e,t)=>{const{children:n,...r}=e;if(i.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==i.Fragment&&(o.ref=t?Kr(t,e):e),i.cloneElement(n,o)}return i.Children.count(n)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Xa=Symbol("radix.slottable");function Za(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Xa}var es=a[" useInsertionEffect ".trim().toString()]||Io;function ts({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,s]=function({defaultProp:e,onChange:t}){const[n,r]=i.useState(e),o=i.useRef(n),a=i.useRef(t);return es(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}({defaultProp:t,onChange:n}),l=void 0!==e,u=l?e:o;{const t=i.useRef(void 0!==e);i.useEffect(()=>{const e=t.current;if(e!==l){const t=e?"controlled":"uncontrolled",n=l?"controlled":"uncontrolled";console.warn(`${r} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=l},[l,r])}const c=i.useCallback(t=>{if(l){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&s.current?.(n)}else a(t)},[l,e,a,s]);return[u,c]}Symbol("RADIX:SYNC_STATE");var ns=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},rs=new WeakMap,os=new WeakMap,is={},as=0,ss=function(e){return e&&(e.host||ss(e.parentNode))},ls=function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=ss(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);is[n]||(is[n]=new WeakMap);var i=is[n],a=[],s=new Set,l=new Set(o),u=function(e){e&&!s.has(e)&&(s.add(e),u(e.parentNode))};o.forEach(u);var c=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))c(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(rs.get(e)||0)+1,u=(i.get(e)||0)+1;rs.set(e,l),i.set(e,u),a.push(e),1===l&&o&&os.set(e,!0),1===u&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return c(t),s.clear(),as++,function(){a.forEach(function(e){var t=rs.get(e)-1,o=i.get(e)-1;rs.set(e,t),i.set(e,o),t||(os.has(e)||e.removeAttribute(r),os.delete(e)),o||e.removeAttribute(n)}),--as||(rs=new WeakMap,rs=new WeakMap,os=new WeakMap,is={})}},us=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||ns(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),ls(r,o,n,"aria-hidden")):function(){return null}};var cs=function(){return cs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},cs.apply(this,arguments)};function ds(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create;function fs(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError;var ps="right-scroll-bar-position",hs="width-before-scroll-bar";function ms(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var gs="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,ys=new WeakMap;function bs(e,t){var n,r,o,a=(n=t||null,r=function(t){return e.forEach(function(e){return ms(e,t)})},(o=(0,i.useState)(function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0]).callback=r,o.facade);return gs(function(){var t=ys.get(a);if(t){var n=new Set(t),r=new Set(e),o=a.current;n.forEach(function(e){r.has(e)||ms(e,null)}),r.forEach(function(e){n.has(e)||ms(e,o)})}ys.set(a,e)},[e]),a}function vs(e){return e}function ws(e,t){void 0===t&&(t=vs);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}var xs=function(e){void 0===e&&(e={});var t=ws(null);return t.options=cs({async:!0,ssr:!1},e),t}(),ks=function(){},Ss=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:ks,onWheelCapture:ks,onTouchMoveCapture:ks}),o=r[0],a=r[1],s=e.forwardProps,l=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,h=e.noRelative,m=e.noIsolation,g=e.inert,y=e.allowPinchZoom,b=e.as,v=void 0===b?"div":b,w=e.gapMode,x=ds(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=p,S=bs([n,t]),_=cs(cs({},x),o);return i.createElement(i.Fragment,null,d&&i.createElement(k,{sideCar:xs,removeScrollBar:c,shards:f,noRelative:h,noIsolation:m,inert:g,setCallbacks:a,allowPinchZoom:!!y,lockRef:n,gapMode:w}),s?i.cloneElement(i.Children.only(l),cs(cs({},_),{ref:S})):i.createElement(v,cs({},_,{className:u,ref:S}),l))});Ss.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ss.classNames={fullWidth:hs,zeroRight:ps};var _s,Es=function(e){var t=e.sideCar,n=ds(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return i.createElement(r,cs({},n))};Es.isSideCarExport=!0;function Cs(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=_s||o.nc;return t&&e.setAttribute("nonce",t),e}var Ts=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=Cs())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Os=function(){var e,t=(e=Ts(),function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},Ps={left:0,top:0,right:0,gap:0},Is=function(e){return parseInt(e||"",10)||0},js=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Ps;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[Is(n),Is(r),Is(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},As=Os(),Ns="data-scroll-locked",Rs=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(s,"px ").concat(r,";\n  }\n  body[").concat(Ns,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(i,"px;\n    padding-right: ").concat(a,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(ps," {\n    right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(hs," {\n    margin-right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(ps," .").concat(ps," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(hs," .").concat(hs," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(Ns,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},Ms=function(){var e=parseInt(document.body.getAttribute(Ns)||"0",10);return isFinite(e)?e:0},Ds=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;i.useEffect(function(){return document.body.setAttribute(Ns,(Ms()+1).toString()),function(){var e=Ms()-1;e<=0?document.body.removeAttribute(Ns):document.body.setAttribute(Ns,e.toString())}},[]);var a=i.useMemo(function(){return js(o)},[o]);return i.createElement(As,{styles:Rs(a,!t,o,n?"":"!important")})},zs=!1;if("undefined"!=typeof window)try{var Ls=Object.defineProperty({},"passive",{get:function(){return zs=!0,!0}});window.addEventListener("test",Ls,Ls),window.removeEventListener("test",Ls,Ls)}catch(e){zs=!1}var Fs=!!zs&&{passive:!1},Bs=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Us=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),qs(e,r)){var o=Hs(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},qs=function(e,t){return"v"===e?function(e){return Bs(e,"overflowY")}(t):function(e){return Bs(e,"overflowX")}(t)},Hs=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},$s=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Vs=function(e){return[e.deltaX,e.deltaY]},Ws=function(e){return e&&"current"in e?e.current:e},Qs=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Ks=0,Ys=[];function Gs(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Js=(Xs=function(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(Ks++)[0],a=i.useState(Os)[0],s=i.useRef(e);i.useEffect(function(){s.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=fs([e.lockRef.current],(e.shards||[]).map(Ws),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=i.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var o,i=$s(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-i[0],u="deltaY"in e?e.deltaY:a[1]-i[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=Us(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=Us(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),u=!1,c=a>0,d=0,f=0;do{if(!s)break;var p=Hs(e,s),h=p[0],m=p[1]-p[2]-i*h;(h||m)&&qs(e,s)&&(d+=m,f+=h);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(c&&(o&&Math.abs(d)<1||!o&&a>d)||!c&&(o&&Math.abs(f)<1||!o&&-a>f))&&(u=!0),u}(p,t,e,"h"===p?l:u,!0)},[]),u=i.useCallback(function(e){var n=e;if(Ys.length&&Ys[Ys.length-1]===a){var r="deltaY"in n?Vs(n):$s(n),o=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o})[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var i=(s.current.shards||[]).map(Ws).filter(Boolean).filter(function(e){return e.contains(n.target)});(i.length>0?l(n,i[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),c=i.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:Gs(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=i.useCallback(function(e){n.current=$s(e),r.current=void 0},[]),f=i.useCallback(function(t){c(t.type,Vs(t),t.target,l(t,e.lockRef.current))},[]),p=i.useCallback(function(t){c(t.type,$s(t),t.target,l(t,e.lockRef.current))},[]);i.useEffect(function(){return Ys.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,Fs),document.addEventListener("touchmove",u,Fs),document.addEventListener("touchstart",d,Fs),function(){Ys=Ys.filter(function(e){return e!==a}),document.removeEventListener("wheel",u,Fs),document.removeEventListener("touchmove",u,Fs),document.removeEventListener("touchstart",d,Fs)}},[]);var h=e.removeScrollBar,m=e.inert;return i.createElement(i.Fragment,null,m?i.createElement(a,{styles:Qs(o)}):null,h?i.createElement(Ds,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},xs.useMedium(Xs),Es);var Xs,Zs=i.forwardRef(function(e,t){return i.createElement(Ss,cs({},e,{ref:t,sideCar:Js}))});Zs.classNames=Ss.classNames;const el=Zs;var tl="Popover",[nl,rl]=Jr(tl,[Ta]),ol=Ta(),[il,al]=nl(tl),sl=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,l=ol(t),u=i.useRef(null),[c,d]=i.useState(!1),[f,p]=ts({prop:r,defaultProp:o??!1,onChange:a,caller:tl});return(0,Gr.jsx)(Ha,{...l,children:(0,Gr.jsx)(il,{scope:t,contentId:No(),triggerRef:u,open:f,onOpenChange:p,onOpenToggle:i.useCallback(()=>p(e=>!e),[p]),hasCustomAnchor:c,onCustomAnchorAdd:i.useCallback(()=>d(!0),[]),onCustomAnchorRemove:i.useCallback(()=>d(!1),[]),modal:s,children:n})})};sl.displayName=tl;var ll="PopoverAnchor",ul=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=al(ll,n),a=ol(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=o;return i.useEffect(()=>(s(),()=>l()),[s,l]),(0,Gr.jsx)($a,{...a,...r,ref:t})});ul.displayName=ll;var cl="PopoverTrigger",dl=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=al(cl,n),i=ol(n),a=Yr(t,o.triggerRef),s=(0,Gr.jsx)(oo.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":El(o.open),...r,ref:a,onClick:Wr(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:(0,Gr.jsx)($a,{asChild:!0,...i,children:s})});dl.displayName=cl;var fl="PopoverPortal",[pl,hl]=nl(fl,{forceMount:void 0}),ml=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=al(fl,t);return(0,Gr.jsx)(pl,{scope:t,forceMount:n,children:(0,Gr.jsx)(Ka,{present:n||i.open,children:(0,Gr.jsx)(Qa,{asChild:!0,container:o,children:r})})})};ml.displayName=fl;var gl="PopoverContent",yl=i.forwardRef((e,t)=>
1{const n=hl(gl,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=al(gl,e.__scopePopover);return(0,Gr.jsx)(Ka,{present:r||i.open,children:i.modal?(0,Gr.jsx)(vl,{...o,ref:t}):(0,Gr.jsx)(wl,{...o,ref:t})})});yl.displayName=gl;var bl=Ga("PopoverContent.RemoveScroll"),vl=i.forwardRef((e,t)=>{const n=al(gl,e.__scopePopover),r=i.useRef(null),o=Yr(t,r),a=i.useRef(!1);return i.useEffect(()=>{const e=r.current;if(e)return us(e)},[]),(0,Gr.jsx)(el,{as:bl,allowPinchZoom:!0,children:(0,Gr.jsx)(xl,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Wr(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:Wr(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:Wr(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),wl=i.forwardRef((e,t)=>{const n=al(gl,e.__scopePopover),r=i.useRef(!1),o=i.useRef(!1);return(0,Gr.jsx)(xl,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const i=t.target,a=n.triggerRef.current?.contains(i);a&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),xl=i.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...d}=e,f=al(gl,n),p=ol(n);return bo(),(0,Gr.jsx)(So,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,Gr.jsx)(po,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:c,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1),children:(0,Gr.jsx)(Va,{"data-state":El(f.open),role:"dialog",id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),kl="PopoverClose",Sl=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=al(kl,n);return(0,Gr.jsx)(oo.button,{type:"button",...r,ref:t,onClick:Wr(e.onClick,()=>o.onOpenChange(!1))})});Sl.displayName=kl;var _l=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=ol(n);return(0,Gr.jsx)(Wa,{...o,...r,ref:t})});function El(e){return e?"open":"closed"}_l.displayName="PopoverArrow";var Cl=sl,Tl=ul,Ol=dl,Pl=ml,Il=yl,jl=rl();function Al(e,t){return function(n){const r=(0,i.useContext)(e);if(!n?.optional&&!r)throw new Error(`This component must be used within ${t}.`);return r}}var Nl=e=>{const t=e;t.__isBound||(t.__internal_bindMethods?.(),t.__isBound=!0)};function Rl(e,t=Ml){Nl(e);const n=(0,i.useSyncExternalStore)(e.subscribe,()=>t(e.getState()),()=>t(e.getState()));return(0,i.useDebugValue)(n),n}var Ml=e=>e;function Dl(e){return function(t){let n,r=!1;"function"==typeof t?n=t:t&&(r=!!t.optional,n=t.selector);const o=e({optional:r});return o?Rl(o,n):null}}var zl=(0,i.createContext)(null),Ll=Al(zl,"AssistantRuntimeProvider");function Fl(e){const t=Ll(e);return t?t.useThreadRuntime():null}var Bl=Dl(Fl);Dl(e=>Fl(e)?.composer??null);var Ul=({__scopeAssistantModal:e,defaultOpen:t,unstable_openOnRunStart:n,open:r,onOpenChange:o,...a})=>{const s=jl(e),[l,u]=(({defaultOpen:e=!1,unstable_openOnRunStart:t=!0})=>{const n=(0,i.useState)(e),[,r]=n,o=Fl();return(0,i.useEffect)(()=>{if(t)return o.unstable_on("run-start",()=>{r(!0)})},[t,r,o]),n})({defaultOpen:t,unstable_openOnRunStart:n});return(0,Gr.jsx)(Cl,{...s,open:void 0===r?l:r,onOpenChange:e=>{o?.(e),u(e)},...a}
1)};Ul.displayName="AssistantModalPrimitive.Root";var ql=(0,i.forwardRef)(({__scopeAssistantModal:e,...t},n)=>{const r=jl(e);return(0,Gr.jsx)(Tl,{...r,...t,ref:n})});ql.displayName="AssistantModalPrimitive.Anchor";var Hl=(0,i.forwardRef)(({__scopeAssistantModal:e,...t},n)=>{const r=jl(e);return(0,Gr.jsx)(Ol,{...r,...t,ref:n})});Hl.displayName="AssistantModalPrimitive.Trigger";var $l=(0,i.forwardRef)(({__scopeAssistantModal:e,side:t,align:n,onInteractOutside:r,dissmissOnInteractOutside:o=!1,portalProps:i,...a},s)=>{const l=jl(e);return(0,Gr.jsx)(Pl,{...l,...i,children:(0,Gr.jsx)(Il,{...l,...a,ref:s,side:t??"top",align:n??"end",onInteractOutside:Wr(r,o?void 0:e=>e.preventDefault())})})});$l.displayName="AssistantModalPrimitive.Content";var Vl=(0,i.forwardRef)((e,t)=>(0,Gr.jsx)(oo.div,{...e,ref:t}));Vl.displayName="ThreadPrimitive.Root";var Wl=e=>{const t=(0,i.useRef)(void 0);return(0,i.useCallback)(n=>{t.current&&t.current(),n&&(t.current=e(n))},[e])};function Ql(e,t){function n(n){const r=e(n);return r?r[t]:null}return{[t]:function(e){let t,r=!1;"function"==typeof e?t=e:e&&"object"==typeof e&&(r=!!e.optional,t=e.selector);const o=n({optional:r});return o?t?o(t):o():null},[`${t}Store`]:n}}var Kl=(0,i.createContext)(null),Yl=Al(Kl,"ThreadPrimitive.Viewport"),{useThreadViewport:Gl,useThreadViewportStore:Jl}=Ql(Yl,"useThreadViewport"),Xl=e=>{const t=io(e),n=Gl(e=>e.onScrollToBottom);(0,i.useEffect)(()=>n(t),[n,t])},Zl=({autoScroll:e=!0})=>{const t=(0,i.useRef)(null),n=Jl(),r=(0,i.useRef)(0),o=(0,i.useRef)(!1),a=(0,i.useCallback)(n=>{const r=t.current;r&&e&&(o.current=!0,r.scrollTo({top:r.scrollHeight,behavior:n}))},[e]),s=()=>{const e=t.current;if(!e)return;const i=n.getState().isAtBottom,a=e.scrollHeight-e.scrollTop<=e.clientHeight+1;!a&&r.current<e.scrollTop||(a&&(o.current=!1),a!==i&&n.setState({isAtBottom:a})),r.current=e.scrollTop},l=(e=>{const t=io(e),n=(0,i.useCallback)(e=>{const n=new ResizeObserver(()=>{t()}),r=new MutationObserver(()=>{t()});return n.observe(e),r.observe(e,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),()=>{n.disconnect(),r.disconnect()}},[t]);return Wl(n)})(()=>{(o.current||n.getState().isAtBottom)&&a("instant"),s()}),u=Wl(e=>(e.addEventListener("scroll",s),()=>{e.removeEventListener("scroll",s)}));Xl(()=>{a("auto")});const c=Fl();(0,i.useEffect)(()=>c.unstable_on("run-start",()=>a("auto")),[a,c]);return Yr(l,u,t)};const eu=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(!Object.is(o,t)){const e=t;t=(null!=r?r:"object"!=typeof o||null===o)?o:Object.assign({}
1,t,o),n.forEach(n=>n(t,e))}},o=()=>t,i={setState:r,getState:o,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e))},a=t=e(r,o,i);return i},tu=e=>e;const nu=e=>{const t=(e=>e?eu(e):eu)(e),n=e=>function(e,t=tu){const n=i.useSyncExternalStore(e.subscribe,i.useCallback(()=>t(e.getState()),[e,t]),i.useCallback(()=>t(e.getInitialState()),[e,t]));return i.useDebugValue(n),n}(t,e);return Object.assign(n,t),n},ru=e=>e?nu(e):nu;var ou=()=>{const e=Jl({optional:!0}),[t]=(0,i.useState)(()=>(()=>{const e=new Set;return ru(()=>({isAtBottom:!0,scrollToBottom:()=>{for(const t of e)t()},onScrollToBottom:t=>(e.add(t),()=>{e.delete(t)})}))})());return(0,i.useEffect)(()=>e?.getState().onScrollToBottom(()=>{t.getState().scrollToBottom()}),[e,t]),(0,i.useEffect)(()=>{if(e)return t.subscribe(t=>{e.getState().isAtBottom!==t.isAtBottom&&e.setState({isAtBottom:t.isAtBottom})})},[t,e]),t},iu=({children:e})=>{const t=ou(),[n]=(0,i.useState)(()=>({useThreadViewport:t}));return(0,Gr.jsx)(Kl.Provider,{value:n,children:e})},au=(0,i.forwardRef)(({autoScroll:e,children:t,...n},r)=>{const o=Yr(r,Zl({autoScroll:e}));return(0,Gr.jsx)(oo.div,{...n,ref:o,children:t})});au.displayName="ThreadPrimitive.ViewportScrollable";var su=(0,i.forwardRef)((e,t)=>(0,Gr.jsx)(iu,{children:(0,Gr.jsx)(au,{...e,ref:t})}));su.displayName="ThreadPrimitive.Viewport";var lu=(0,i.createContext)(null),uu=Al(lu,"a component passed to <ThreadPrimitive.Messages components={...} />");function cu(e){const t=uu(e);return t?t.useMessageRuntime():null}var du=Dl(cu),fu=Dl(e=>cu(e)?.composer??null),{useMessageUtils:pu,useMessageUtilsStore:hu}=Ql(uu,"useMessageUtils"),mu=()=>{const[e]=(0,i.useState)(()=>ru(e=>({isCopied:!1,setIsCopied:t=>{e({isCopied:t})},isHovering:!1,setIsHovering:t=>{e({isHovering:t})}})));return e},gu=({runtime:e,children:t})=>{const n=(e=>{const[t]=(0,i.useState)(()=>ru(()=>e));return(0,i.useEffect)(()=>{Nl(e),t.setState(e,!0)},[e,t]),t})(e),r=mu(),[o]=(0,i.useState)(()=>({useMessageRuntime:n,useMessageUtils:r}));return(0,Gr.jsx)(lu.Provider,{value:o,children:t})},yu=(e,t)=>e.Message===t.Message&&e.EditComposer===t.EditComposer&&e.UserEditComposer===t.UserEditComposer&&e.AssistantEditComposer===t.AssistantEditComposer&&e.SystemEditComposer===t.SystemEditComposer&&e.UserMessage===t.UserMessage&&e.AssistantMessage===t.AssistantMessage&&e.SystemMessage===t.SystemMessage,bu=()=>null,vu=({components:e})=>{const t=((e,t,n)=>{switch(t){case"user":return n?e.UserEditComposer??e.EditComposer??e.UserMessage??e.Message:e.UserMessage??e.Message;case"assistant":return n?e.AssistantEditComposer??e.EditComposer??e.AssistantMessage??e.Message:e.AssistantMessage??e.Message;case"system":return n?e.SystemEditComposer??e.EditComposer??e.SystemMessage??e.Message:e.SystemMessage??bu;default:throw new Error(`Unknown message role: ${t}`)}})(e,du(e=>e.role),fu(e=>e.isEditing));return(0,Gr.jsx)(t,{})},wu=(0,i.memo)(({index:e,components:t})=>{const n=Fl(),r=(0,i.useMemo)(()=>n.getMesssageByIndex(e),[n,e]);return(0,Gr.jsx)(gu,{runtime:r,children:(0,Gr.jsx)(vu,{components:t})})},(e,t)=>e.index===t.index&&yu(e.components,t.components));wu.displayName="ThreadPrimitive.MessageByIndex";var xu=({components:e})=>{const t=Bl(e=>e.messages.length),n=(0,i.useMemo)(()=>0===t?null:Array.from({length:t},(t,n)=>(0,Gr.jsx)(wu,{index:n,components:e},n)),[t,e]);return n};xu.displayName="ThreadPrimitive.Messages";var ku=(0,i.memo)(xu,(e,t)=>yu(e.components,t.components)),Su=(e,t,n=[])=>{const r=(0,i.forwardRef)((e,r)=>{const o={},i={};Object.keys(e).forEach(t=>{n.includes(t)?o[t]=e[t]:i[t]=e[t]});const a=t(o)??void 0;return(0,Gr.jsx)(oo.button,{type:"button",...i,ref:r,disabled:i.disabled||!a,onClick:Wr(i.onClick,a)})});return r.displayName=e,r},_u=Su("ThreadPrimitive.ScrollToBottom",()=>{const e=Gl(e=>e.isAtBottom),t=Jl(),n=(0,i.useCallback)(()=>{t.getState().scrollToBottom()},[t]);return e?null:n}),Eu=(e,t)=>{const n=(0,i.useMemo)(()=>(e=>{const t=t=>{const n=e.map(e=>e.subscribe(t));return()=>{for(const e of n)e()}};return n=>{const r=()=>n(...e.map(e=>e.getState()));return(0,i.useSyncExternalStore)(t,r,r)}})(e),e);return n(t)};function Cu(e){const t=cu({optional:!0}),n=Fl(e);return t?t.composer:n?.composer??null}var Tu=Dl(Cu),Ou=()=>{const e=Cu(),t=Fl(),n=Eu([t,e],(e,t)=>e.isRunning||!t.isEditing||t.isEmpty),r=(0,i.useCallback)(()=>{e.send()},[e]);return n?null:r},Pu=Su("ComposerPrimitive.Send",Ou),Iu=(0,i.forwardRef)(({onSubmit:e,...t},n)=>
1{const r=Ou();return(0,Gr.jsx)(oo.form,{...t,ref:n,onSubmit:Wr(e,e=>{e.preventDefault(),r&&r()})})});Iu.displayName="ComposerPrimitive.Root";var ju=Symbol.for("react.lazy"),Au=a[" use ".trim().toString()];function Nu(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===ju&&"_payload"in e&&("object"==typeof(t=e._payload)&&null!==t&&"then"in t);var t}function Ru(e){const t=Du(e),n=i.forwardRef((e,n)=>{let{children:r,...o}=e;Nu(r)&&"function"==typeof Au&&(r=Au(r._payload));const a=i.Children.toArray(r),s=a.find(Lu);if(s){const e=s.props.children,r=a.map(t=>t===s?i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null:t);return(0,Gr.jsx)(t,{...o,ref:n,children:i.isValidElement(e)?i.cloneElement(e,void 0,r):null})}return(0,Gr.jsx)(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var Mu=Ru("Slot");function Du(e){const t=i.forwardRef((e,t)=>{let{children:n,...r}=e;if(Nu(n)&&"function"==typeof Au&&(n=Au(n._payload)),i.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==i.Fragment&&(o.ref=t?Kr(t,e):e),i.cloneElement(n,o)}return i.Children.count(n)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var zu=Symbol("radix.slottable");function Lu(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===zu}function Fu(){return Fu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fu.apply(null,arguments)}var Bu=i.useLayoutEffect,Uu=function(e,t){"function"!=typeof e?e.current=t:e(t)},qu={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},Hu=function(e){Object.keys(qu).forEach(function(t){e.style.setProperty(t,qu[t],"important")})},$u=null,Vu=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize};var Wu=function(){},Qu=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],Ku=!!document.documentElement.currentStyle,Yu=function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n,r=(n=t,Qu.reduce(function(e,t){return e[t]=n[t],e},{})),o=r.boxSizing;return""===o?null:(Ku&&"border-box"===o&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px"),{sizingStyle:r,paddingSize:parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),borderSize:parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth)})};function Gu(e,t,n){var r,o,a=(r=n,o=i.useRef(r),Bu(function(){o.current=r}),o);i.useLayoutEffect(function(){var n=function(e){return a.current(e)};if(e)return e.addEventListener(t,n),function(){return e.removeEventListener(t,n)}},[])}var Ju=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],Xu=function(e,t){var n=e.cacheMeasurements,r=e.maxRows,o=e.minRows,a=e.onChange,s=void 0===a?Wu:a,l=e.onHeightChange,u=void 0===l?Wu:l,c=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,Ju),d=void 0!==c.value,f=i.useRef(null),p=function(e,t){var n=i.useRef();return i.useCallback(function(r){e.current=r,n.current&&Uu(n.current,null),n.current=t,t&&Uu(t,r)},[t])}(f,t),h=i.useRef(0),m=i.useRef(),g=function(){var e=f.current,t=n&&m.current?m.current:Yu(e);
1if(t){m.current=t;var i=function(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=1/0),$u||(($u=document.createElement("textarea")).setAttribute("tabindex","-1"),$u.setAttribute("aria-hidden","true"),Hu($u)),null===$u.parentNode&&document.body.appendChild($u);var o=e.paddingSize,i=e.borderSize,a=e.sizingStyle,s=a.boxSizing;Object.keys(a).forEach(function(e){var t=e;$u.style[t]=a[t]}),Hu($u),$u.value=t;var l=Vu($u,e);$u.value=t,l=Vu($u,e),$u.value="x";var u=$u.scrollHeight-o,c=u*n;"border-box"===s&&(c=c+o+i),l=Math.max(c,l);var d=u*r;return"border-box"===s&&(d=d+o+i),[l=Math.min(d,l),u]}(t,e.value||e.placeholder||"x",o,r),a=i[0],s=i[1];h.current!==a&&(h.current=a,e.style.setProperty("height",a+"px","important"),u(a,{rowHeight:s}))}};return i.useLayoutEffect(g),function(e,t){Gu(document.body,"reset",function(n){e.current.form===n.target&&t(n)})}(f,function(){if(!d){var e=f.current.value;requestAnimationFrame(function(){var t=f.current;t&&e!==t.value&&g()})}}),function(e){Gu(window,"resize",e)}(g),function(e){Gu(document.fonts,"loadingdone",e)}(g),i.createElement("textarea",Fu({},c,{onChange:function(e){d||g(),s(e)},ref:p}))},Zu=i.forwardRef(Xu),ec=(0,i.createContext)(null),tc=Al(ec,"a component passed to <ThreadListPrimitive.Items components={...}>");function nc(e){const t=tc(e);return t?t.useThreadListItemRuntime():null}var rc=Dl(nc),oc=(0,i.forwardRef)(({autoFocus:e=!1,asChild:t,disabled:n,onChange:r,onKeyDown:o,onPaste:a,submitOnEnter:s=!0,cancelOnEscape:l=!0,unstable_focusOnRunStart:u=!0,unstable_focusOnScrollToBottom:c=!0,unstable_focusOnThreadSwitched:d=!0,addAttachmentOnPaste:f=!0,...p},h)=>{const m=nc(),g=Fl(),y=Cu(),b=Tu(e=>e.isEditing?e.text:""),v=t?Mu:Zu,w=Boolean(Bl(e=>e.isDisabled)||n),x=(0,i.useRef)(null),k=Yr(h,x);ao(e=>{l&&y.getState().canCancel&&(y.cancel(),e.preventDefault())});const S=e&&!w,_=(0,i.useCallback)(()=>{const e=x.current;e&&S&&(e.focus({preventScroll:!0}),e.setSelectionRange(e.value.length,e.value.length))},[S]);return(0,i.useEffect)(()=>_(),[_]),Xl(()=>{"thread"===y.type&&c&&_()}),(0,i.useEffect)(()=>{if("thread"===y.type&&u)return g.unstable_on("run-start",_)},[u,_,y,g]),(0,i.useEffect)(()=>{if("thread"===y.type&&d)return m.unstable_on("switched-to",_)},[d,_,y,m]),(0,Gr.jsx)(v,{name:"input",value:b,...p,ref:k,disabled:w,onChange:Wr(r,e=>{if(y.getState().isEditing)return y.setText(e.target.value)}),onKeyDown:Wr(o,e=>{if(!w&&s&&!e.nativeEvent.isComposing&&"Enter"===e.key&&!1===e.shiftKey){const{isRunning:t}=g.getState();t||(e.preventDefault(),x.current?.closest("form")?.requestSubmit())}}),onPaste:Wr(a,async e=>{if(!f)return;const t=g.getState().capabilities,n=Array.from(e.clipboardData?.files||[]);if(t.attachments&&n.length>0)try{e.preventDefault(),await Promise.all(n.map(e=>y.addAttachment(e)))}catch(e){console.error("Error adding attachment:",e)}})})});oc.displayName="ComposerPrimitive.Input";var ic=({children:e,...t})=>{var n;return(n=t,Bl(e=>!(!0===n.empty&&0!==e.messages.length||!1===n.empty&&0===e.messages.length||!0===n.running&&!e.isRunning||!1===n.running&&e.isRunning||!0===n.disabled&&!e.isDisabled||!1===n.disabled&&e.isDisabled)))?e:null};ic.displayName="ThreadPrimitive.If";var ac=Su("ComposerPrimitive.Cancel",()=>{const e=Cu(),t=Tu(e=>!e.canCancel),n=(0,i.useCallback)(()=>{e.cancel()},[e]);return t?null:n}),sc=(0,i.forwardRef)((e,t)=>{const n=Yr(t,(()=>{const e=hu(),t=(0,i.useCallback)(t=>{const n=e.getState().setIsHovering,r=()=>{n(!0)},o=()=>{n(!1)};return t.addEventListener("mouseenter",r),t.addEventListener("mouseleave",o),()=>{t.removeEventListener("mouseenter",r),t.removeEventListener("mouseleave",o),n(!1)}},[e]);return Wl(t)})());return(0,Gr.jsx)(oo.div,{...e,ref:n})});sc.displayName="MessagePrimitive.Root";var lc=(0,i.createContext)(null),uc=Al(lc,"AssistantRuntimeProvider");function cc(e){const t=uc(e);return t?t.useAssistantRuntime():null}var{useToolUIs:dc,useToolUIsStore:fc}=Ql(uc,"useToolUIs"),pc=(Dl(e=>cc(e)?.threads??null),(0,i.createContext)(null)),hc=Al(pc,"a component passed to <MessagePrimitive.Parts components={...}>");function mc(e){const t=hc(e);return t?t.useMessagePartRuntime():null}var gc=Dl(mc),yc=Symbol.for("aui.tool-response"),bc=class e{get[yc](){return!0}artifact;result;isError;constructor(e){void 0!==e.artifact&&(this.artifact=e.artifact),this.result=e.result,this.isError=e.isError??!1}static[Symbol.hasInstance](e){return"object"==typeof e&&null!==e&&yc in e}static toResponse(t){return t instanceof e?t:new e({result:void 0===t?"<no result>":t})}},vc=class{constructor(e,t,n){this.contentBinding=e,this.messageApi=t,this.threadApi=n}get path(){return this.contentBinding.path}__internal_bindMethods(){this.addToolResult=this.addToolResult.bind(this),this.get
1State=this.getState.bind(this),this.subscribe=this.subscribe.bind(this)}getState(){return this.contentBinding.getState()}addToolResult(e){const t=this.contentBinding.getState();if(!t)throw new Error("Message part is not available");if("tool-call"!==t.type)throw new Error("Tried to add tool result to non-tool message part");if(!this.messageApi)throw new Error("Message API is not available. This is likely a bug in assistant-ui.");if(!this.threadApi)throw new Error("Thread API is not available");const n=this.messageApi.getState();if(!n)throw new Error("Message is not available");const r=t.toolName,o=t.toolCallId,i=bc.toResponse(e);this.threadApi.getState().addToolResult({messageId:n.id,toolName:r,toolCallId:o,result:i.result,artifact:i.artifact,isError:i.isError})}subscribe(e){return this.contentBinding.subscribe(e)}},wc={type:"complete"},xc={type:"running"},kc=({children:e,text:t,isRunning:n})=>{const[r]=(0,i.useState)(()=>{const e=ru(()=>({status:n?xc:wc,type:"text",text:t})),r=new vc({path:{ref:"text",threadSelector:{type:"main"},messageSelector:{type:"messageId",messageId:""},messagePartSelector:{type:"index",index:0}},getState:e.getState,subscribe:e.subscribe});Nl(r);return{useMessagePartRuntime:ru(()=>r),useMessagePart:e}});return(0,i.useEffect)(()=>{const e=r.useMessagePart.getState(),o=e.text!==t,i=n?xc:wc,a=e.status!==i;(o||a)&&r.useMessagePart.setState({type:"text",text:t,status:i},!0)},[r,n,t]),(0,Gr.jsx)(pc.Provider,{value:r,children:e})},Sc=({runtime:e,children:t})=>{const n=(e=>{const[t]=(0,i.useState)(()=>ru(()=>e));return(0,i.useEffect)(()=>{Nl(e),t.setState(e,!0)},[e,t]),t})(e),[r]=(0,i.useState)(()=>({useMessagePartRuntime:n}));return(0,Gr.jsx)(pc.Provider,{value:r,children:t})},_c=()=>gc(e=>{if("text"!==e.type&&"reasoning"!==e.type)throw new Error("MessagePartText can only be used inside text or reasoning message parts.");return e}),Ec=(0,i.createContext)(null),Cc=({children:e})=>{const t=Oc({optional:!0}),n=mc(),[r]=(0,i.useState)(()=>(e=>({useSmoothStatus:ru(()=>e)}))(n.getState().status));return t?e:(0,Gr.jsx)(Ec.Provider,{value:r,children:e})},Tc=e=>{const t=(0,i.forwardRef)((t,n)=>(0,Gr.jsx)(Cc,{children:(0,Gr.jsx)(e,{...t,ref:n})}));return t.displayName=e.displayName,t};function Oc(e){const t=(0,i.useContext)(Ec);if(!e?.optional&&!t)throw new Error("This component must be used within a SmoothContextProvider.");return t}var{useSmoothStatus:Pc,useSmoothStatusStore:Ic}=Ql(Oc,"useSmoothStatus"),jc=class{constructor(e,t){this.currentText=e,this.setText=t}animationFrameId=null;lastUpdateTime=Date.now();targetText="";start(){null===this.animationFrameId&&(this.lastUpdateTime=Date.now(),this.animate())}stop(){null!==this.animationFrameId&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null)}animate=()=>{const e=Date.now();let t=e-this.lastUpdateTime;const n=this.targetText.length-this.currentText.length,r=Math.min(5,250/n);let o=0;for(;t>=r&&o<n;)o++,t-=r;this.animationFrameId=o!==n?requestAnimationFrame(this.animate):null,0!==o&&(this.currentText=this.targetText.slice(0,this.currentText.length+o),this.lastUpdateTime=e-t,this.setText(this.currentText))}},Ac=Object.freeze({type:"running"}),Nc=(e,t=!1)=>{const{text:n}=e,r=du({optional:!0,selector:e=>e.id}),o=(0,i.useRef)(r),[a,s]=(0,i.useState)(n),l=Ic({optional:!0}),u=io(t=>{if(s(t),l){const n=a!==t||"running"===e.status.type?Ac:e.status;l.setState(n,!0)}});(0,i.useEffect)(()=>{if(l){const t=a!==n||"running"===e.status.type?Ac:e.status;l.setState(t,!0)}},[l,n,a,e.status]);const[c]=(0,i.useState)(new jc(n,u));return(0,i.useEffect)(()=>{if(t){if(o.current!==r||!n.startsWith(c.targetText))return o.current=r,u(n),c.currentText=n,c.targetText=n,void c.stop();c.targetText=n,c.start()}else c.stop()},[u,c,r,t,n]),(0,i.useEffect)(()=>()=>{c.stop()},[c]),(0,i.useMemo)(()=>t?{type:"text",text:a,status:n===a?e.status:Ac}:e,[t,a,e,n])},Rc=(0,i.forwardRef)(({smooth:e=!0,component:t="span",...n},r)=>{const{text:o,status:i}=Nc(_c(),e);return(0,Gr.jsx)(t,{"data-status":i.type,...n,ref:r,children:o})});Rc.displayName="MessagePartPrimitive.Text";var Mc=(0,i.forwardRef)((e,t)=>{const{image:n}=gc(e=>{if("image"!==e.type)throw new Error("MessagePartImage can only be used inside image message parts.");return e});return(0,Gr.jsx)(oo.img,{src:n,...e,ref:t})});Mc.displayName="MessagePartPrimitive.Image";var Dc=({children:e})=>gc(e=>"running"===e.status.type)?e:null;Dc.displayName="MessagePartPrimitive.InProgress";const zc=e=>Symbol.iterator in e,Lc=e=>"entries"in e,Fc=(e,t)=>{const n=e instanceof Map?e:new Map(e.entries()),r=t instanceof Map?t
1:new Map(t.entries());if(n.size!==r.size)return!1;for(const[e,t]of n)if(!r.has(e)||!Object.is(t,r.get(e)))return!1;return!0};function Bc(e,t){return!!Object.is(e,t)||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&(Object.getPrototypeOf(e)===Object.getPrototypeOf(t)&&(zc(e)&&zc(t)?Lc(e)&&Lc(t)?Fc(e,t):((e,t)=>{const n=e[Symbol.iterator](),r=t[Symbol.iterator]();let o=n.next(),i=r.next();for(;!o.done&&!i.done;){if(!Object.is(o.value,i.value))return!1;o=n.next(),i=r.next()}return!!o.done&&!!i.done})(e,t):Fc({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})))}var Uc=()=>{const e=du(function(e){const t=i.useRef(void 0);return n=>{const r=e(n);return Bc(t.current,r)?t.current:t.current=r}}(e=>e.content.map(e=>e.type)));return(0,i.useMemo)(()=>0===e.length?[]:(e=>{const t=[];let n=-1;for(let r=0;r<e.length;r++)"tool-call"===e[r]?-1===n&&(n=r):(-1!==n&&(t.push({type:"toolGroup",startIndex:n,endIndex:r-1}),n=-1),t.push({type:"single",index:r}));return-1!==n&&t.push({type:"toolGroup",startIndex:n,endIndex:e.length-1}),t})(e),[e])},qc=({Fallback:e,...t})=>{const n=dc(e=>e.getToolUI(t.toolName))??e;return n?(0,Gr.jsx)(n,{...t}):null},Hc={Text:()=>(0,Gr.jsxs)("p",{style:{whiteSpace:"pre-line"},children:[(0,Gr.jsx)(Rc,{}),(0,Gr.jsx)(Dc,{children:(0,Gr.jsx)("span",{style:{fontFamily:"revert"},children:" ●"})})]}),Reasoning:()=>null,Source:()=>null,Image:()=>(0,Gr.jsx)(Mc,{}),File:()=>null,Unstable_Audio:()=>null,ToolGroup:({children:e})=>e},$c=({components:{Text:e=Hc.Text,Reasoning:t=Hc.Reasoning,Image:n=Hc.Image,Source:r=Hc.Source,File:o=Hc.File,Unstable_Audio:i=Hc.Unstable_Audio,tools:a={}}={}})=>{const s=mc(),l=gc(),u=l.type;if("tool-call"===u){const e=e=>s.addToolResult(e);if("Override"in a)return(0,Gr.jsx)(a.Override,{...l,addResult:e});const t=a.by_name?.[l.toolName]??a.Fallback;return(0,Gr.jsx)(qc,{...l,Fallback:t,addResult:e})}if("requires-action"===l.status.type)throw new Error("Encountered unexpected requires-action status");switch(u){case"text":return(0,Gr.jsx)(e,{...l});case"reasoning":return(0,Gr.jsx)(t,{...l});case"source":return(0,Gr.jsx)(r,{...l});case"image":return(0,Gr.jsx)(n,{...l});case"file":return(0,Gr.jsx)(o,{...l});case"audio":return(0,Gr.jsx)(i,{...l});default:throw new Error(`Unknown message part type: ${u}`)}},Vc=(0,i.memo)(({index:e,components:t})=>{const n=cu(),r=(0,i.useMemo)(()=>n.getMessagePartByIndex(e),[n,e]);return(0,Gr.jsx)(Sc,{runtime:r,children:(0,Gr.jsx)($c,{components:t})})},(e,t)=>e.index===t.index&&e.components?.Text===t.components?.Text&&e.components?.Reasoning===t.components?.Reasoning&&e.components?.Source===t.components?.Source&&e.components?.Image===t.components?.Image&&e.components?.File===t.components?.File&&e.components?.Unstable_Audio===t.components?.Unstable_Audio&&e.components?.tools===t.components?.tools&&e.components?.ToolGroup===t.components?.ToolGroup);Vc.displayName="MessagePrimitive.PartByIndex";var Wc=Object.freeze({type:"complete"}),Qc=({status:e,component:t})=>(0,Gr.jsx)(kc,{text:"",isRunning:"running"===e.type,children:(0,Gr.jsx)(t,{type:"text",text:"",status:e})}),Kc=(0,i.memo)(({components:e})=>{const t=du(e=>e.status)??Wc;return e?.Empty?(0,Gr.jsx)(e.Empty,{status:t}):(0,Gr.jsx)(Qc,{status:t,component:e?.Text??Hc.Text})},(e,t)=>e.components?.Empty===t.components?.Empty&&e.components?.Text===t.components?.Text),Yc=({components:e})=>{const t=du(e=>e.content.length),n=Uc(),r=(0,i.useMemo)(()=>0===t?(0,Gr.jsx)(Kc,{components:e}):n.map(t=>{if("single"===t.type)return(0,Gr.jsx)(Vc,{index:t.index,components:e},t.index);{const n=e.ToolGroup??Hc.ToolGroup;return(0,Gr.jsx)(n,{startIndex:t.startIndex,endIndex:t.endIndex,children:Array.from({length:t.endIndex-t.startIndex+1},(n,r)=>(0,Gr.jsx)(Vc,{index:t.startIndex+r,components:e},r))},t.startIndex)}}),[n,e,t]);return(0,Gr.jsx)(Gr.Fragment,{children:r})};Yc.displayName="MessagePrimitive.Parts";var Gc=({children:e})=>du(e=>"incomplete"===e.status?.type&&"error"===e.status.reason)?(0,Gr.jsx)(Gr.Fragment,{children:e}):null;Gc.displayName="MessagePrimitive.Error";var Jc=(0,i.forwardRef)((e,t)=>(0,Gr.jsx)(oo.div,{role:"alert",...e,ref:t}));Jc.displayName="ErrorPrimitive.Root";var Xc=(0,i.forwardRef)(({children:e,...t},n)=>{const r=du(e=>"incomplete"===e.status?.type&&"error"===e.status.reason?e.status.error:void 0);return void 0===r?null:(0,Gr.jsx)(oo.span,{...t,ref:n,children:e??String(r)})});Xc.displayName="ErrorPrimitive.Message";const Zc=Fr("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),ed=Fr("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]),td=Fr("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]),nd=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,rd=nn;function od(e){return od="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},od(e)}var id=["className","variant","size","asChild"];function ad(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function sd(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=od(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=od(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==od(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ld,ud,cd=(ld="inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",ud={variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}},e=>{var t;
1if(null==(null==ud?void 0:ud.variants))return rd(ld,null==e?void 0:e.class,null==e?void 0:e.className);const{variants:n,defaultVariants:r}=ud,o=Object.keys(n).map(t=>{const o=null==e?void 0:e[t],i=null==r?void 0:r[t];if(null===o)return null;const a=nd(o)||nd(i);return n[t][a]}),i=e&&Object.entries(e).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{}),a=null==ud||null===(t=ud.compoundVariants)||void 0===t?void 0:t.reduce((e,t)=>{let{class:n,className:o,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...r,...i}[t]):{...r,...i}[t]===n})?[...e,n,o]:e},[]);return rd(ld,o,a,null==e?void 0:e.class,null==e?void 0:e.className)});function dd(e){var t=e.className,n=e.variant,r=e.size,o=e.asChild,i=void 0!==o&&o,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,id),s=i?Mu:"button";return(0,Gr.jsx)(s,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ad(Object(n),!0).forEach(function(t){sd(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ad(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({"data-slot":"button",className:dr(cd({variant:n,size:r,className:t}))},a))}function fd(){}function pd(){}const hd=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,md=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,gd={};function yd(e,t){return((t||gd).jsx?md:hd).test(e)}const bd=/[ \t\n\f\r]/g;function vd(e){return""===e.replace(bd,"")}class wd{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function xd(e,t){const n={},r={};for(const t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new wd(n,r,t)}function kd(e){return e.toLowerCase()}wd.prototype.normal={},wd.prototype.property={},wd.prototype.space=void 0;class Sd{constructor(e,t){this.attribute=t,this.property=e}}Sd.prototype.attribute="",Sd.prototype.booleanish=!1,Sd.prototype.boolean=!1,Sd.prototype.commaOrSpaceSeparated=!1,Sd.prototype.commaSeparated=!1,Sd.prototype.defined=!1,Sd.prototype.mustUseProperty=!1,Sd.prototype.number=!1,Sd.prototype.overloadedBoolean=!1,Sd.prototype.property="",Sd.prototype.spaceSeparated=!1,Sd.prototype.space=void 0;let _d=0;const Ed=Ad(),Cd=Ad(),Td=Ad(),Od=Ad(),Pd=Ad(),Id=Ad(),jd=Ad();function Ad(){return 2**++_d}const Nd=Object.keys(t);class Rd extends Sd{constructor(e,n,r,o){let i=-1;if(super(e,n),Md(this,"space",o),"number"==typeof r)for(;++i<Nd.length;){const e=Nd[i];Md(this,Nd[i],(r&t[e])===t[e])}}}function Md(e,t,n){n&&(e[t]=n)}function Dd(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const i=new Rd(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[kd(r)]=r,n[kd(i.attribute)]=r}return new wd(t,n,e.space)}Rd.prototype.defined=!0;const zd=Dd({properties:{ariaActiveDescendant:null,ariaAtomic:Cd,ariaAutoComplete:null,ariaBusy:Cd,ariaChecked:Cd,ariaColCount:Od,ariaColIndex:Od,ariaColSpan:Od,ariaControls:Pd,ariaCurrent:null,ariaDescribedBy:Pd,ariaDetails:null,ariaDisabled:Cd,ariaDropEffect:Pd,ariaErrorMessage:null,ariaExpanded:Cd,ariaFlowTo:Pd,ariaGrabbed:Cd,ariaHasPopup:null,ariaHidden:Cd,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Pd,ariaLevel:Od,ariaLive:null,ariaModal:Cd,ariaMultiLine:Cd,ariaMultiSelectable:Cd,ariaOrientation:null,ariaOwns:Pd,ariaPlaceholder:null,ariaPosInSet:Od,ariaPressed:Cd,ariaReadOnly:Cd,ariaRelevant:null,ariaRequired:Cd,ariaRoleDescription:Pd,ariaRowCount:Od,ariaRowIndex:Od,ariaRowSpan:Od,ariaSelected:Cd,ariaSetSize:Od,ariaSort:null,ariaValueMax:Od,ariaValueMin:Od,ariaValueNow:Od,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function Ld(e,t){return t in e?e[t]:t}function Fd(e,t){return Ld(e,t.toLowerCase())}const Bd=Dd({attributes:{acceptcharset:"accept-charset",classname:"
1class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Id,acceptCharset:Pd,accessKey:Pd,action:null,allow:null,allowFullScreen:Ed,allowPaymentRequest:Ed,allowUserMedia:Ed,alt:null,as:null,async:Ed,autoCapitalize:null,autoComplete:Pd,autoFocus:Ed,autoPlay:Ed,blocking:Pd,capture:null,charSet:null,checked:Ed,cite:null,className:Pd,cols:Od,colSpan:null,content:null,contentEditable:Cd,controls:Ed,controlsList:Pd,coords:Od|Id,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ed,defer:Ed,dir:null,dirName:null,disabled:Ed,download:Td,draggable:Cd,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ed,formTarget:null,headers:Pd,height:Od,hidden:Td,high:Od,href:null,hrefLang:null,htmlFor:Pd,httpEquiv:Pd,id:null,imageSizes:null,imageSrcSet:null,inert:Ed,inputMode:null,integrity:null,is:null,isMap:Ed,itemId:null,itemProp:Pd,itemRef:Pd,itemScope:Ed,itemType:Pd,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ed,low:Od,manifest:null,max:null,maxLength:Od,media:null,method:null,min:null,minLength:Od,multiple:Ed,muted:Ed,name:null,nonce:null,noModule:Ed,noValidate:Ed,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ed,optimum:Od,pattern:null,ping:Pd,placeholder:null,playsInline:Ed,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ed,referrerPolicy:null,rel:Pd,required:Ed,reversed:Ed,rows:Od,rowSpan:Od,sandbox:Pd,scope:null,scoped:Ed,seamless:Ed,selected:Ed,shadowRootClonable:Ed,shadowRootDelegatesFocus:Ed,shadowRootMode:null,shape:null,size:Od,sizes:null,slot:null,span:Od,spellCheck:Cd,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Od,step:null,style:null,tabIndex:Od,target:null,title:null,translate:null,type:null,typeMustMatch:Ed,useMap:null,value:Cd,width:Od,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Pd,axis:null,background:null,bgColor:null,border:Od,borderColor:null,bottomMargin:Od,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ed,declare:Ed,event:null,face:null,frame:null,frameBorder:null,hSpace:Od,leftMargin:Od,link:null,longDesc:null,lowSrc:null,marginHeight:Od,marginWidth:Od,noResize:Ed,noHref:Ed,noShade:Ed,noWrap:Ed,object:null,profile:null,prompt:null,rev:null,rightMargin:Od,rules:null,scheme:null,scrolling:Cd,standby:null,summary:null,text:null,topMargin:Od,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Od,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ed,disableRemotePlayback:Ed,prefix:null,property:null,results:Od,security:null,unselectable:null},space:"html",transform:Fd}),Ud=Dd({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRen
1dering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:jd,accentHeight:Od,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Od,amplitude:Od,arabicForm:null,ascent:Od,attributeName:null,attributeType:null,azimuth:Od,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Od,by:null,calcMode:null,capHeight:Od,
1className:Pd,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Od,diffuseConstant:Od,direction:null,display:null,dur:null,divisor:Od,dominantBaseline:null,download:Ed,dx:null,dy:null,edgeMode:null,editable:null,elevation:Od,enableBackground:null,end:null,event:null,exponent:Od,externalResourcesRequired:null,fill:null,fillOpacity:Od,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Id,g2:Id,glyphName:Id,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Od,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Od,horizOriginX:Od,horizOriginY:Od,id:null,ideographic:Od,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Od,k:Od,k1:Od,k2:Od,k3:Od,k4:Od,kernelMatrix:jd,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Od,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Od,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Od,overlineThickness:Od,paintOrder:null,panose1:null,path:null,pathLength:Od,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Pd,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Od,pointsAtY:Od,pointsAtZ:Od,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:jd,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:jd,rev:jd,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:jd,requiredFeatures:jd,requiredFonts:jd,requiredFormats:jd,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Od,specularExponent:Od,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Od,strikethroughThickness:Od,string:null,stroke:null,strokeDashArray:jd,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Od,strokeOpacity:Od,strokeWidth:null,style:null,surfaceScale:Od,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:jd,tabIndex:Od,tableValues:null,target:null,targetX:Od,targetY:Od,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:jd,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Od,underlineThickness:Od,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Od,values:null,vAlphabetic:Od,vMathematical:Od,vectorEffect:null,vHanging:Od,vIdeographic:Od,version:null,vertAdvY:Od,vertOriginX:Od,vertOriginY:Od,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Od,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ld}),qd=Dd({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>
vendor: 21,729 bytes, line 1
1"xlink:"+t.slice(5).toLowerCase()}),Hd=Dd({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Fd}),$d=Dd({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),Vd=xd([zd,Bd,qd,Hd,$d],"html"),Wd=xd([zd,Ud,qd,Hd,$d],"svg"),Qd=/[A-Z]/g,Kd=/-[a-z]/g,Yd=/^data[-\w.:]+$/i;function Gd(e){return"-"+e.toLowerCase()}function Jd(e){return e.charAt(1).toUpperCase()}const Xd={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var Zd=o(229);const ef=nf("end"),tf=nf("start");function nf(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function rf(e){return e&&"object"==typeof e?"position"in e||"type"in e?af(e.position):"start"in e||"end"in e?af(e):"line"in e||"column"in e?of(e):"":""}function of(e){return sf(e&&e.line)+":"+sf(e&&e.column)}function af(e){return of(e&&e.start)+"-"+of(e&&e.end)}function sf(e){return e&&"number"==typeof e?e:1}class lf extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",o={},i=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!o.cause&&e&&(i=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=a?a.line:void 0,this.name=rf(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=i&&o.cause&&"string"==typeof o.cause.stack?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}lf.prototype.file="",lf.prototype.name="",lf.prototype.reason="",lf.prototype.message="",lf.prototype.stack="",lf.prototype.column=void 0,lf.prototype.line=void 0,lf.prototype.ancestors=void 0,lf.prototype.cause=void 0,lf.prototype.fatal=void 0,lf.prototype.place=void 0,lf.prototype.ruleId=void 0,lf.prototype.source=void 0;const uf={}.hasOwnProperty,cf=new Map,df=/[A-Z]/g,ff=new Set(["table","tbody","thead","tfoot","tr"]),pf=new Set(["td","th"]),hf="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function mf(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,o,i){const a=Array.isArray(o.children),s=tf(n);return t(r,o,i,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,o,i){const a=Array.isArray(o.children)?n:t;return i?a(r,o,i):a(r,o)}}(0,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?Wd:Vd,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},i=gf(o,e,void 0);return i&&"string"!=typeof i?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function gf(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(o=Wd,e.schema=o);e.ancestors.push(t);const i=xf(e,t.tagName,!1),a=function(e,t){const n={};let r,o;for(o in t.properties)if("children"!==o&&uf.call(t.properties,o)){const i=wf(e,o,t.properties[o]);if(i){const[o,a]=i;e.tableCellAlignToStyle&&"align"===o&&"string"==typeof a&&pf.has(t.tagName)?r=a:n[o]=a}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let s=vf(e,t);ff.has(t.tagName)&&(s=s.filter(function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&vd(t.value):vd(t));var t}));return yf(e,a,i,t),bf(a,s),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}kf(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.name&&"html"===r.space&&(o=Wd,e.schema=o);e.ancestors.push(t);const i=null===t.name?e.Fragment:xf(e,t.name,!0),a=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];fd(t.type);const o=t.expression;fd(o.type);const i=o.properties[0];fd(i.type),Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else kf(e,t.position);else{const o=r.name;let i;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];fd(t.type),i=e.evaluater.evaluateExpression(t.expression)}else kf(e,t.position);else i=null===r.value||r.value;n[o]=i}return n}(e,t),s=vf(e,t);return yf(e,a,i,t),bf(a,s),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);kf(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return bf(r,vf(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function yf(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function bf(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function vf(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:cf;for(;++r<t.children.length;){const i=t.children[r];let a;if(e.passKeys){const e="element"===i.type?i.tagName:"mdxJsxFlowElement"===i.type||"mdxJsxTextElement"===i.type?i.name:void 0;if(e){const t=o.get(e)||0;a=e+"-"+t,o.set(e,t+1)}}const s=gf(e,i,a);void 0!==s&&n.push(s)}return n}function wf(e,t,n){const r=function(e,t){const n=kd(t);let r=t,o=Sd;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Yd.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Kd,Jd);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Kd.test(e)){let n=e.replace(Qd,Gd);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=Rd}return new o(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return Zd(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const n=t,r=new lf("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=hf+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)uf.call(e,n)&&(t[Sf(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?Xd[r.property]||r.property:r.attribute,n]}}function xf(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,o=-1;for(;++o<e.length;){const t=yd(e[o])?{type:"Identifier",name:e[o]}:{type:"Literal",value:e[o]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(o&&"Literal"===t.type),optional:!1}:t}r=n}else r=yd(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return uf.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);kf(e)}function kf(e,t){const n=new lf("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=hf+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Sf(e){let t=e.replace(df,_f);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function _f(e){return"-"+e.toLowerCase()}const Ef={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Cf={};function Tf(e,t){const n=t||Cf;return Of(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function Of(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Pf(e.children,t,n)}return Array.isArray(e)?Pf(e,t,n):""}function Pf(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=Of(e[o],t,n);return r.join("")}function If(e,t,n,r){const o=e.length;let i,a=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a<r.length;)i=r.slice(a,a+1e4),i.unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function jf(e,t){return e.length>0?(If(e,e.length,0,t),e):t}class Af{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&Nf(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Nf(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Nf(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);Nf(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Nf(this.left,t.reverse())}}}function Nf(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Rf(e){const t={};let n,r,o,i,a,s,l,u=-1;const c=new Af(e);for(;++u<c.length;){for(;u in t;)u=t[u];if(n=c.get(u),u&&"chunkFlow"===n[1].type&&"listItemPrefix"===c.get(u-1)[1].type&&(s=n[1]._tokenizer.events,o=0,o<s.length&&"lineEndingBlank"===s[o][1].type&&(o+=2),o<s.length&&"content"===s[o][1].type))for(;++o<s.length&&"content"!==s[o][1].type;)"chunkText"===s[o][1].type&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,Mf(c,u)),u=t[u],l=!0);else if(n[1]._container){for(o=u,r=void 0;o--;)if(i=c.get(o),"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(r&&(c.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);else if("linePrefix"!==i[1].type&&"listItemIndent"!==i[1].type)break;r&&(n[1].end={...c.get(r)[1].start},a=c.slice(r,u),a.unshift(n),c.splice(r,u-r+1,a))}}return If(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!l}function Mf(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const s=a.events,l=[],u={};let c,d,f=-1,p=n,h=0,m=0;const g=[m];for(;p;){for(;e.get(++o)[1]!==p;);i.push(o),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(null),d&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(c),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)"exit"===s[f][0]&&"enter"===s[f-1][0]&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(m=f+1,g.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){const t=s.slice(g[f],g[f+1]),n=i.pop();l.push([n,n+t.length-1]),e.splice(n,2,t)}for(l.reverse(),f=-1;++f<l.length;)u[h+l[f][0]]=h+l[f][1],h+=l[f][1]-l[f][0]-1;return u}const Df={}.hasOwnProperty;function zf(e){const t={};let n=-1;for(;++n<e.length;)Lf(t,e[n]);return t}function Lf(e,t){let n;for(n in t){const r=(Df.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){Df.call(r,i)||(r[i]=[]);const e=o[i];Ff(r[i],Array.isArray(e)?e:e?[e]:[])}}}function Ff(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);If(e,0,0,r)}const Bf=Xf(/[A-Za-z]/),Uf=Xf(/[\dA-Za-z]/),qf=Xf(/[#-'*+\--9=?A-Z^-~]/);function Hf(e){return null!==e&&(e<32||127===e)}const $f=Xf(/\d/),Vf=Xf(/[\dA-Fa-f]/),Wf=Xf(/[!-/:-@[-`{-~]/);function Qf(e){return null!==e&&e<-2}function Kf(e){return null!==e&&(e<0||32===e)}function Yf(e){return-2===e||-1===e||32===e}const Gf=Xf(/\p{P}|\p{S}/u),Jf=Xf(/\s/);function Xf(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function Zf(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){if(Yf(r))return e.enter(n),a(r);return t(r)};function a(r){return Yf(r)&&i++<o?(e.consume(r),a):(e.exit(n),t(r))}}const ep={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Zf(e,t,"linePrefix")},function(t){return e.enter("paragraph"),r(t)});let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):Qf(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}};const tp={tokenize:function(e){const t=this,n=[];let r,o,i,a=0;return s;function s(r){if(a<n.length){const o=n[a];return t.containerState=o[1],e.attempt(o[0].continuation,l,u)(r)}return u(r)}function l(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&b();const n=t.events.length;let o,i=n;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){o=t.events[i][1].end;break}y(a);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return If(t.events,i+1,0,t.events.slice(n)),t.events.length=s,u(e)}return s(e)}function u(o){if(a===n.length){if(!r)return f(o);if(r.currentConstruct&&r.currentConstruct.concrete)return h(o);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(np,c,d)(o)}function c(e){return r&&b(),y(a),f(e)}function d(e){return t.parser.lazy[t.now().line]=a!==n.length,i=t.now().offset,h(e)}function f(n){return t.containerState={},e.attempt(np,p,h)(n)}function p(e){return a++,n.push([t.currentConstruct,t.containerState]),f(e)}function h(n){return null===n?(r&&b(),y(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),m(n))}function m(n){return null===n?(g(e.exit("chunkFlow"),!0),y(0),void e.consume(n)):Qf(n)?(e.consume(n),g(e.exit("chunkFlow")),a=0,t.interrupt=void 0,s):(e.consume(n),m)}function g(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=o,o&&(o.next=e),o=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<i&&(!r.events[e][1].end||r.events[e][1].end.offset>i))return;const n=t.events.length;let o,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(o){s=t.events[l][1].end;break}o=!0}for(y(a),e=n;e<t.events.length;)t.events[e][1].end={...s},e++;If(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function y(r){let o=n.length;for(;o-- >r;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function b(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},np={tokenize:function(e,t,n){return Zf(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const rp={partial:!0,tokenize:function(e,t,n){return function(t){return Yf(t)?Zf(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||Qf(e)?t(e):n(e)}}};const op={resolve:function(e){return Rf(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):Qf(t)?e.check(ip,i,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},ip={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Zf(e,o,"linePrefix")};function o(o){if(null===o||Qf(o))return n(o);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}};const ap={tokenize:function(e){const t=this,n=e.attempt(rp,function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,Zf(e,e.attempt(this.parser.constructs.flow,r,e.attempt(op,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const sp={resolveAll:dp()},lp=cp("string"),up=cp("text");function cp(e){return{resolveAll:dp("text"===e?fp:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,a);return i;function i(e){return l(e)?o(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),o(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function dp(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function fp(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],o=t.sliceStream(r);let i,a=o.length,s=-1,l=0;for(;a--;){const e=o[a];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)i=!0,l++;else if(-1!==e){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const o={type:n===e.length||i||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:r.start._bufferIndex+s,_index:r.start._index+a,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...o.start},r.start.offset===r.end.offset?Object.assign(r,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}const pp={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,i(e)}(t)};function i(i){return i===r?(e.enter("thematicBreakSequence"),a(i)):o>=3&&(null===i||Qf(i))?(e.exit("thematicBreak"),t(i)):n(i)}function a(t){return t===r?(e.consume(t),o++,a):(e.exit("thematicBreakSequence"),Yf(t)?Zf(e,i,"whitespace")(t):i(t))}}};const hp={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(rp,o,i);function o(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Zf(e,t,"listItemIndent",r.containerState.size+1)(n)}function i(n){return r.containerState.furtherBlankLines||!Yf(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine
vendor: 1,328 bytes, line 1
1=void 0,a(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(gp,t,a)(n))}function a(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,Zf(e,e.attempt(hp,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,a=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:$f(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(pp,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return $f(t)&&++a<10?(e.consume(t),s):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(rp,r.interrupt?n:u,e.attempt(mp,d,c))}
vendor: 37,681 bytes, line 1
1function u(e){return r.containerState.initialBlankLine=!0,i++,d(e)}function c(t){return Yf(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},mp={partial:!0,tokenize:function(e,t,n){const r=this;return Zf(e,function(e){const o=r.events[r.events.length-1];return!Yf(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},gp={partial:!0,tokenize:function(e,t,n){const r=this;return Zf(e,function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}};const yp={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(Yf(t))return Zf(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(r){return e.attempt(yp,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return Yf(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function bp(e,t,n,r,o,i,a,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return function(t){if(60===t)return e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),d;if(null===t||32===t||41===t||Hf(t))return n(t);return e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),h(t)};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||Qf(t)?n(t):(e.consume(t),92===t?p:f)}function p(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function h(o){return c||null!==o&&41!==o&&!Kf(o)?c<u&&40===o?(e.consume(o),c++,h):41===o?(e.consume(o),c--,h):null===o||32===o||40===o||Hf(o)?n(o):(e.consume(o),92===o?m:h):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(o))}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function vp(e,t,n,r,o,i){const a=this;let s,l=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(i),u};function u(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(i),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):Qf(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(t){return null===t||91===t||93===t||Qf(t)||l++>999?(e.exit("chunkString"),u(t)):(e.consume(t),s||(s=!Yf(t)),92===t?d:c)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,c):c(t)}}function wp(e,t,n,r,o,i){let a;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(o),e.consume(t),e.exit(o),a=40===t?41:t,s;return n(t)};function s(n){return n===a?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),l(n))}function l(t){return t===a?(e.exit(i),s(a)):null===t?n(t):Qf(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Zf(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===a||null===t||Qf(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return t===a||92===t?(e.consume(t),u):u(t)}}function xp(e,t){let n;return function r(o){if(Qf(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r;if(Yf(o))return Zf(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}function kp(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Sp={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return vp.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=kp(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return Kf(t)?xp(e,s)(t):s(t)}function s(t){return bp(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(_p,u,u)(t)}function u(t){return Yf(t)?Zf(e,c,"whitespace")(t):c(t)}function c(i){return null===i||Qf(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)}}},_p={partial:!0,tokenize:function(e,t,n){return function(t){return Kf(t)?xp(e,r)(t):n(t)};function r(t){return wp(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return Yf(t)?Zf(e,i,"whitespace")(t):i(t)}function i(e){return null===e||Qf(e)?t(e):n(e)}}};const Ep={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),Zf(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?s(t):Qf(t)?e.attempt(Cp,i,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||Qf(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),a)}function s(n){return e.exit("codeIndented"),t(n)}}},Cp={partial:!0,tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):Qf(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):Zf(e,i,"linePrefix",5)(t)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):Qf(e)?o(e):n(e)}}};const Tp={name:"headingAtx",resolve:function(e,t){let n,r,o=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);o-2>i&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},If(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||Kf(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||Qf(n)?(e.exit("atxHeading"),t(n)):Yf(n)?Zf(e,i,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),i(t))}function s(t){return null===t||35===t||Kf(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),s)}}};const Op={name:"setextUnderline",resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const a={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=a;return e.push(["exit",a,t]),e},tokenize:function(e,t,n){const r=this;let o;return function(t){let a,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){a="paragraph"===r.events[s][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||a))return e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t);return n(t)};function i(t){return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),Yf(t)?Zf(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||Qf(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const Pp=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Ip=["pre","script","style","textarea"],jp={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,n){const r=this;let o,i,a,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),u}(t)};function u(s){return 33===s?(e.consume(s),c):47===s?(e.consume(s),i=!0,p):63===s?(e.consume(s),o=3,r.interrupt?t:R):Bf(s)?(e.consume(s),a=String.fromCharCode(s),h):n(s)}function c(i){return 45===i?(e.consume(i),o=2,d):91===i?(e.consume(i),o=5,s=0,f):Bf(i)?(e.consume(i),o=4,r.interrupt?t:R):n(i)}function d(o){return 45===o?(e.consume(o),r.interrupt?t:R):n(o)}function f(o){const i="CDATA[";return o===i.charCodeAt(s++)?(e.consume(o),6===s?r.interrupt?t:C:f):n(o)}function p(t){return Bf(t)?(e.consume(t),a=String.fromCharCode(t),h):n(t)}function h(s){if(null===s||47===s||62===s||Kf(s)){const l=47===s,u=a.toLowerCase();return l||i||!Ip.includes(u)?Pp.includes(a.toLowerCase())?(o=6,l?(e.consume(s),m):r.interrupt?t(s):C(s)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):i?g(s):y(s)):(o=1,r.interrupt?t(s):C(s))}return 45===s||Uf(s)?(e.consume(s),a+=String.fromCharCode(s),h):n(s)}function m(o){return 62===o?(e.consume(o),r.interrupt?t:C):n(o)}function g(t){return Yf(t)?(e.consume(t),g):_(t)}function y(t){return 47===t?(e.consume(t),_):58===t||95===t||Bf(t)?(e.consume(t),b):Yf(t)?(e.consume(t),y):_(t)}function b(t){return 45===t||46===t||58===t||95===t||Uf(t)?(e.consume(t),b):v(t)}function v(t){return 61===t?(e.consume(t),w):Yf(t)?(e.consume(t),v):y(t)}function w(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,x):Yf(t)?(e.consume(t),w):k(t)}function x(t){return t===l?(e.consume(t),l=null,S):null===t||Qf(t)?n(t):(e.consume(t),x)}function k(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||Kf(t)?v(t):(e.consume(t),k)}function S(e){return 47===e||62===e||Yf(e)?y(e):n(e)}function _(t){return 62===t?(e.consume(t),E):n(t)}function E(t){return null===t||Qf(t)?C(t):Yf(t)?(e.consume(t),E):n(t)}function C(t){return 45===t&&2===o?(e.consume(t),I):60===t&&1===o?(e.consume(t),j):62===t&&4===o?(e.consume(t),M):63===t&&3===o?(e.consume(t),R):93===t&&5===o?(e.consume(t),N):!Qf(t)||6!==o&&7!==o?null===t||Qf(t)?(e.exit("htmlFlowData"),T(t)):(e.consume(t),C):(e.exit("htmlFlowData"),e.check(Ap,D,T)(t))}function T(t){return e.check(Np,O,D)(t)}function O(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),P}function P(t){return null===t||Qf(t)?T(t):(e.enter("htmlFlowData"),C(t))}function I(t){return 45===t?(e.consume(t),R):C(t)}function j(t){return 47===t?(e.consume(t),a="",A):C(t)}function A(t){if(62===t){const n=a.toLowerCase();return Ip.includes(n)?(e.consume(t),M):C(t)}return Bf(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),A):C(t)}function N(t){return 93===t?(e.consume(t),R):C(t)}function R(t){return 62===t?(e.consume(t),M):45===t&&2===o?(e.consume(t),R):C(t)}function M(t){return null===t||Qf(t)?(e.exit("htmlFlowData"),D(t)):(e.consume(t),M)}function D(n){return e.exit("htmlFlow"),t(n)}}},Ap={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(rp,t,n)}}},Np={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(Qf(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o;return n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const Rp={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},Mp={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return a;function a(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),Yf(t)?Zf(e,u,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):u(t)}function u(t){return t===i?(e.enter("codeFencedFenceSequence"),c(t)):n(t)}function c(t){return t===i?(o++,e.consume(t),c):o>=s?(e.exit("codeFencedFenceSequence"),Yf(t)?Zf(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||Qf(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let i,a=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===i?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),Yf(t)?Zf(e,u,"whitespace")(t):u(t))}function u(n){return null===n||Qf(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(Rp,p,b)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),c(n))}function c(t){return null===t||Qf(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(t)):Yf(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Zf(e,d,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),c)}function d(t){return null===t||Qf(t)?u(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return null===t||Qf(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(t)):96===t&&t===i?n(t):(e.consume(t),f)}function p(t){return e.attempt(o,b,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return a>0&&Yf(t)?Zf(e,g,"linePrefix",a+1)(t):g(t)}function g(t){return null===t||Qf(t)?e.check(Rp,p,b)(t):(e.enter("codeFlowValue"),y(t))}function y(t){return null===t||Qf(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),y)}function b(n){return e.exit("codeFenced"),t(n)}}};const Dp=document.createElement("i");function zp(e){const t="&"+e+";";Dp.innerHTML=t;const n=Dp.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}const Lp={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),o=31,i=Uf,u(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=Vf,u):(e.enter("characterReferenceValue"),o=7,i=$f,u(t))}function u(s){if(59===s&&a){const o=e.exit("characterReferenceValue");return i!==Uf||zp(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&a++<o?(e.consume(s),u):n(s)}}};const Fp={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return Wf(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const Bp={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Zf(e,t,"linePrefix")}}};function Up(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const qp={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}e.length!==n.length&&If(e,0,e.length,n);return e},resolveTo:function(e,t){let n,r,o,i,a=e.length,s=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(o=a);const l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[r][1].start},end:{...e[o][1].end}},c={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[o-2][1].start}};return i=[["enter",l,t],["enter",u,t]],i=jf(i,e.slice(r+1,r+s+3)),i=jf(i,[["enter",c,t]]),i=jf(i,Up(t.parser.constructs.insideSpan.null,e.slice(r+s+4,o-3),t)),i=jf(i,[["exit",c,t],e[o-2],e[o-1],["exit",u,t]]),i=jf(i,e.slice(o+1)),i=jf(i,[["exit",l,t]]),If(e,r,e.length,i),e},tokenize:function(e,t,n){const r=this;let o,i,a=r.events.length;for(;a--;)if(("labelImage"===r.events[a][1].type||"labelLink"===r.events[a][1].type)&&!r.events[a][1]._balanced){o=r.events[a][1];break}return function(t){if(!o)return n(t);if(o._inactive)return c(t);return i=r.parser.defined.includes(kp(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s};function s(t){return 40===t?e.attempt(Hp,u,i?u:c)(t):91===t?e.attempt($p,u,i?l:c)(t):i?u(t):c(t)}function l(t){return e.attempt(Vp,u,c)(t)}function u(e){return t(e)}function c(e){return o._balanced=!0,n(e)}}},Hp={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return Kf(t)?xp(e,o)(t):o(t)}function o(t){return 41===t?u(t):bp(e,i,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return Kf(t)?xp(e,s)(t):u(t)}function a(e){return n(e)}function s(t){return 34===t||39===t||40===t?wp(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function l(t){return Kf(t)?xp(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},$p={tokenize:function(e,t,n){const r=this;return function(t){return vp.call(r,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(kp(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},Vp={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const Wp={name:"labelStartImage",resolveAll:qp.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};function Qp(e){return null===e||Kf(e)||Jf(e)?1:Gf(e)?2:void 0}const Kp={name:"attention",resolveAll:function(e,t){let n,r,o,i,a,s,l,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close)for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;const d={...e[n][1].end},f={...e[c][1].start};Yp(d,-s),Yp(f,s),i={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:f},o={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:s>1?"strong":"emphasis",start:{...i.start},end:{...a.end}},e[n][1].end={...i.start},e[c][1].start={...a.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=jf(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=jf(l,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),l=jf(l,Up(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),l=jf(l,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,l=jf(l,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,If(e,n-1,c-n+3,l),c=n+l.length-u-2;break}c=-1;for(;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=Qp(r);let i;return function(t){return i=t,e.enter("attentionSequence"),a(t)};function a(s){if(s===i)return e.consume(s),a;const l=e.exit("attentionSequence"),u=Qp(s),c=!u||2===u&&o||n.includes(s),d=!o||2===o&&u||n.includes(r);return l._open=Boolean(42===i?c:c&&(o||!d)),l._close=Boolean(42===i?d:d&&(u||!c)),t(s)}}};function Yp(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Gp={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return Bf(t)?(e.consume(t),i):64===t?n(t):l(t)}function i(e){return 43===e||45===e||46===e||Uf(e)?(r=1,a(e)):l(e)}function a(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||Uf(t))&&r++<32?(e.consume(t),a):(r=0,l(t))}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||Hf(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),u):qf(t)?(e.consume(t),l):n(t)}function u(e){return Uf(e)?c(e):n(e)}function c(n){return 46===n?(e.consume(n),r=0,u):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||Uf(t))&&r++<63){const n=45===t?d:c;return e.consume(t),n}return n(t)}}};const Jp={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,i,a;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),w):63===t?(e.consume(t),b):Bf(t)?(e.consume(t),S):n(t)}function l(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),i=0,p):Bf(t)?(e.consume(t),y):n(t)}function u(t){return 45===t?(e.consume(t),f):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),d):Qf(t)?(a=c,A(t)):(e.consume(t),c)}function d(t){return 45===t?(e.consume(t),f):c(t)}function f(e){return 62===e?j(e):45===e?d(e):c(e)}function p(t){const r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),6===i?h:p):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):Qf(t)?(a=h,A(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?j(t):93===t?(e.consume(t),g):h(t)}function y(t){return null===t||62===t?j(t):Qf(t)?(a=y,A(t)):(e.consume(t),y)}function b(t){return null===t?n(t):63===t?(e.consume(t),v):Qf(t)?(a=b,A(t)):(e.consume(t),b)}function v(e){return 62===e?j(e):b(e)}function w(t){return Bf(t)?(e.consume(t),x):n(t)}function x(t){return 45===t||Uf(t)?(e.consume(t),x):k(t)}function k(t){return Qf(t)?(a=k,A(t)):Yf(t)?(e.consume(t),k):j(t)}function S(t){return 45===t||Uf(t)?(e.consume(t),S):47===t||62===t||Kf(t)?_(t):n(t)}function _(t){return 47===t?(e.consume(t),j):58===t||95===t||Bf(t)?(e.consume(t),E):Qf(t)?(a=_,A(t)):Yf(t)?(e.consume(t),_):j(t)}function E(t){return 45===t||46===t||58===t||95===t||Uf(t)?(e.consume(t),E):C(t)}function C(t){return 61===t?(e.consume(t),T):Qf(t)?(a=C,A(t)):Yf(t)?(e.consume(t),C):_(t)}function T(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,O):Qf(t)?(a=T,A(t)):Yf(t)?(e.consume(t),T):(e.consume(t),P)}function O(t){return t===o?(e.consume(t),o=void 0,I):null===t?n(t):Qf(t)?(a=O,A(t)):(e.consume(t),O)}function P(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||Kf(t)?_(t):(e.consume(t),P)}function I(e){return 47===e||62===e||Kf(e)?_(e):n(e)}function j(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function A(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N}function N(t){return Yf(t)?Zf(e,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):R(t)}function R(t){return e.enter("htmlTextData"),a(t)}}};const Xp={name:"labelStartLink",resolveAll:qp.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const Zp={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return Qf(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const eh={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}t=o-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,o,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),i++,a):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(o=e.enter("codeTextSequence"),r=0,u(t)):Qf(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||Qf(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function u(n){return 96===n?(e.consume(n),r++,u):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",l(n))}}};const th={42:hp,43:hp,45:hp,48:hp,49:hp,50:hp,51:hp,52:hp,53:hp,54:hp,55:hp,56:hp,57:hp,62:yp},nh={91:Sp},rh={[-2]:Ep,[-1]:Ep,32:Ep},oh={35:Tp,42:pp,45:[Op,pp],60:jp,61:Op,95:pp,96:Mp,126:Mp},ih={38:Lp,92:Fp},ah={[-5]:Bp,[-4]:Bp,[-3]:Bp,33:Wp,38:Lp,42:Kp,60:[Gp,Jp],91:Xp,92:[Zp,Fp],93:qp,95:Kp,96:eh},sh={null:[Kp,sp]},lh={null:[42,95]},uh={null:[]};function ch(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},i=[];let a=[],s=[],l=!0;const u={attempt:b(function(e,t){v(e,t.from)}),check:b(y),consume:function(e){Qf(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,w()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++));c.previous=e,l=!0},enter:function(e,t){const n=t||{};return n.type=e,n.start=h(),c.events.push(["enter",n,c]),s.push(n),n},exit:function(e){const t=s.pop();return t.end=h(),c.events.push(["exit",t,c]),t},interrupt:b(y,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){o[e.line]=e.column,w()},events:[],now:h,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let a;if("string"==typeof i)a=i;else switch(i){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&o)continue;a=" ";break;default:a=String.fromCharCode(i)}o=-2===i,r.push(a)}return r.join("")}(p(e),t)},sliceStream:p,write:function(e){if(a=jf(a,e),m(),null!==a[a.length-1])return[];return v(t,0),c.events=Up(i,c.events,c),c.events}};let d,f=t.tokenize.call(c,u);return t.resolveAll&&i.push(t),c;function p(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let a;if(n===o)a=[e[n].slice(r,i)];else{if(a=e.slice(n,o),r>-1){const e=a[0];"string"==typeof e?a[0]=e.slice(r):a.shift()}i>0&&a.push(e[o].slice(0,i))}return a}(a,e)}function h(){const{_bufferIndex:e,_index:t,line:n,column:o,offset:i}=r;return{_bufferIndex:e,_index:t,line:n,column:o,offset:i}}function m(){let e;for(;r._index<a.length;){const t=a[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)g(t.charCodeAt(r._bufferIndex));else g(t)}}function g(e){l=void 0,d=e,f=f(e)}function y(e,t){t.restore()}function b(e,t){return function(n,o,i){let a,d,f,p;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return m([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function m(e){return a=e,d=0,0===e.length?i:g(e[d])}function g(e){return function(n){p=function(){const e=h(),t=c.previous,n=c.currentConstruct,o=c.events.length,i=Array.from(s);return{from:o,restore:a};function a(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=o,s=i,w()}}(),f=e,e.partial||(c.currentConstruct=e);if(e.name&&c.parser.constructs.disable.null.includes(e.name))return b(n);return e.tokenize.call(t?Object.assign(Object.create(c),t):c,u,y,b)(n)}}function y(t){return l=!0,e(f,p),o}function b(e){return l=!0,p.restore(),++d<a.length?g(a[d]):i}}}function v(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&If(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function w(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const dh=/[\0\t\n\r]/g;function fh(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}const ph=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function hh(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return fh(n.slice(t?2:1),t?16:10)}return zp(n)||e}const mh={}.hasOwnProperty;function gh(e,t,r){return"string"!=typeof t&&(r=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(te),autolinkProtocol:E,autolinkEmail:E,atxHeading:i(J),blockQuote:i(W),characterEscape:E,characterReference:E,codeFenced:i(Q),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:i(Q,a),codeText:i(K,a),codeTextData:E,data:E,codeFlowValue:E,definition:i(Y),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:i(G),hardBreakEscape:i(X),hardBreakTrailing:i(X),htmlFlow:i(Z,a),htmlFlowData:E,htmlText:i(Z,a),htmlTextData:E,image:i(ee),label:a,link:i(te),listItem:i(re),listItemValue:f,listOrdered:i(ne,d),listUnordered:i(ne),paragraph:i(oe),reference:F,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:i(J),strong:i(ie),thematicBreak:i(se)},exit:{atxHeading:l(),atxHeadingSequence:x,autolink:l(),autolinkEmail:V,autolinkProtocol:$,blockQuote:l(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:U,characterReferenceMarkerNumeric:U,characterReferenceValue:q,characterReference:H,codeFenced:l(g),codeFencedFence:m,codeFencedFenceInfo:p,codeFencedFenceMeta:h,codeFlowValue:C,codeIndented:l(y),codeText:l(j),codeTextData:C,data:C,definition:l(),definitionDestinationString:w,definitionLabelString:b,definitionTitleString:v,emphasis:l(),hardBreakEscape:l(O),hardBreakTrailing:l(O),htmlFlow:l(P),htmlFlowData:C,htmlText:l(I),htmlTextData:C,image:l(N),label:M,labelText:R,lineEnding:T,link:l(A),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:B,resourceDestinationString:D,resourceTitleString:z,resource:L,setextHeading:l(_),setextHeadingLineSequence:S,setextHeadingText:k,strong:l(),thematicBreak:l()}};bh(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const i={stack:[r],tokenStack:[],config:t,enter:s,exit:u,buffer:a,resume:c,data:n},l=[];let d=-1;for(;++d<e.length;)if("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)if("enter"===e[d][0])l.push(d);else{d=o(e,l.pop(),d)}for(d=-1;++d<e.length;){const n=t[e[d][0]];mh.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},i),e[d][1])}if(i.tokenStack.length>0){const e=i.tokenStack[i.tokenStack.length-1];(e[1]||wh).call(i,void 0,e[0])}for(r.position={start:yh(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:yh(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function o(e,t,n){let r,o,i,a,s=t-1,l=-1,u=!1;for(;++s<=n;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||a||l||i||(i=s),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=s;for(o=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",o=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}i&&(!o||i<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){const o={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=o,e.splice(s,0,["enter",o,t[2]]),s++,n++,i=void 0,a=!0}}}return e[t][1]._spread=u,n}function i(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function a(){this.stack.push({type:"fragment",children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:yh(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),u.call(this,t)}}function u(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+rf({start:e.start,end:e.end})+"): it’s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||wh).call(this,e,r[0])}n.position.end=yh(e.end)}function c(){return Tf(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function h(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function b(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=kp(this.sliceSerialize(e)).toLowerCase()}function v(){const e=this.resume();this.stack[this.stack.length-1].title=e}function w(){const e=this.resume();this.stack[this.stack.length-1].url=e}function x(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function S(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function _(){this.data.setextHeadingSlurpLineEnding=void 0}function E(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=ae(),n.position={start:yh(e.start),end:void 0},t.push(n)),this.stack.push(n)}function C(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=yh(e.end)}function T(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=yh(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.t
vendor: 4,538 bytes, line 1
1ype)&&(E.call(this,e),C.call(this,e))}function O(){this.data.atHardBreak=!0}function P(){const e=this.resume();this.stack[this.stack.length-1].value=e}function I(){const e=this.resume();this.stack[this.stack.length-1].value=e}function j(){const e=this.resume();this.stack[this.stack.length-1].value=e}function A(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function N(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function R(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(ph,hh)}(t),n.identifier=kp(t).toLowerCase()}function M(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function D(){const e=this.resume();this.stack[this.stack.length-1].url=e}function z(){const e=this.resume();this.stack[this.stack.length-1].title=e}function L(){this.data.inReference=void 0}function F(){this.data.referenceType="collapsed"}function B(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=kp(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function U(e){this.data.characterReferenceType=e.type}function q(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=fh(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=zp(t)}this.stack[this.stack.length-1].value+=r}function H(e){this.stack.pop().position.end=yh(e.end)}function $(e){C.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function V(e){C.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function W(){return{type:"blockquote",children:[]}}function Q(){return{type:"code",lang:null,meta:null,value:""}}function K(){return{type:"inlineCode",value:""}}function Y(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function G(){return{type:"emphasis",children:[]}}function J(){return{type:"heading",depth:0,children:[]}}function X(){return{type:"break"}}function Z(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function re(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function oe(){return{type:"paragraph",children:[]}}function ie(){return{type:"strong",children:[]}}function ae(){return{type:"text",value:""}}function se(){return{type:"thematicBreak"}}}(r)(function(e){for(;!Rf(e););return e}(function(e){const t={constructs:zf([n,...(e||{}).extensions||[]]),content:r(ep),defined:[],document:r(tp),flow:r(ap),lazy:{},string:r(lp),text:r(up)};return t;function r(e){return function(n){return ch(t,e,n)}}}(r).document().write(function(){let e,t=1,n="",r=!0;return function(o,i,a){const s=[];let l,u,c,d,f;for(o=n+("string"==typeof o?o.toString():new TextDecoder(i||void 0).decode(o)),c=0,n="",r&&(65279===o.charCodeAt(0)&&c++,r=void 0);c<o.length;){if(dh.lastIndex=c,l=dh.exec(o),d=l&&void 0!==l.index?l.index:o.length,f=o.charCodeAt(d),!l){n=o.slice(c);break}if(10===f&&c===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),c<d&&(s.push(o.slice(c,d)),t+=d-c),f){case 0:s.push(65533),t++;break;case 9:for(u=4*Math.ceil(t/4),s.push(-2);t++<u;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}c=d+1}return a&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(e,t,!0))))}function yh(e){return{line:e.line,column:e.column,offset:e.offset}}function bh(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?bh(e,r):vh(e,r)}}function vh(e,t){let n;for(n in t)if(mh.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function wh(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+rf({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+rf({start:t.start,end:t.end}
vendor: 7,274 bytes, line 1
1)+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+rf({start:t.start,end:t.end})+") is still open")}function xh(e){const t=this;t.parser=function(n){return gh(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const kh="object"==typeof self?self:globalThis,Sh=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=o=>{if(e.has(o))return e.get(o);const[i,a]=t[o];switch(i){case 0:case-1:return n(a,o);case 1:{const e=n([],o);for(const t of a)e.push(r(t));return e}case 2:{const e=n({},o);for(const[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),o);case 4:{const{source:e,flags:t}=a;return n(new RegExp(e,t),o)}case 5:{const e=n(new Map,o);for(const[t,n]of a)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,o);for(const t of a)e.add(r(t));return e}case 7:{const{name:e,message:t}=a;return n(new kh[e](t),o)}case 8:return n(BigInt(a),o);case"BigInt":return n(Object(BigInt(a)),o);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:e}=new Uint8Array(a);return n(new DataView(e),a)}}return n(new kh[i](a),o)};return r})(new Map,e)(0),_h="",{toString:Eh}={},{keys:Ch}=Object,Th=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=Eh.call(e).slice(8,-1);switch(n){case"Array":return[1,_h];case"Object":return[2,_h];case"Date":return[3,_h];case"RegExp":return[4,_h];case"Map":return[5,_h];case"Set":return[6,_h];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},Oh=([e,t])=>0===e&&("function"===t||"symbol"===t),Ph=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const o=(e,t)=>{const o=r.push(e)-1;return n.set(t,o),o},i=r=>{if(n.has(r))return n.get(r);let[a,s]=Th(r);switch(a){case 0:{let t=r;switch(s){case"bigint":a=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return o([-1],r)}return o([a,t],r)}case 1:{if(s){let e=r;return"DataView"===s?e=new Uint8Array(r.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(r)),o([s,[...e]],r)}const e=[],t=o([a,e],r);for(const t of r)e.push(i(t));return t}case 2:{if(s)switch(s){case"BigInt":return o([s,r.toString()],r);case"Boolean":case"Number":case"String":return o([s,r.valueOf()],r)}if(t&&"toJSON"in r)return i(r.toJSON());const n=[],l=o([a,n],r);for(const t of Ch(r))!e&&Oh(Th(r[t]))||n.push([i(t),i(r[t])]);return l}case 3:return o([a,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return o([a,{source:e,flags:t}],r)}case 5:{const t=[],n=o([a,t],r);for(const[n,o]of r)(e||!Oh(Th(n))&&!Oh(Th(o)))&&t.push([i(n),i(o)]);return n}case 6:{const t=[],n=o([a,t],r);for(const n of r)!e&&Oh(Th(n))||t.push(i(n));return n}}const{message:l}=r;return o([a,{name:s,message:l}],r)};return i})(!(t||n),!!t,new Map,r)(e),r},Ih="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Sh(Ph(e,t)):structuredClone(e):(e,t)=>Sh(Ph(e,t));function jh(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let a="";if(37===i&&Uf(e.charCodeAt(n+1))&&Uf(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t),o=1):a="�"}else a=String.fromCharCode(i);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+o+1,a=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function Ah(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Nh(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const Rh=function(e){if(null==e)return Dh;if("function"==typeof e)return Mh(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Rh(e[n]);return Mh(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return Mh(n);function n(n){const r=n;let o;for(o in e)if(r[o]!==t[o])return!1;return!0}}(e);if("string"==typeof e)return function(e){return Mh(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function Mh(e){return function(t,n,r){return Boolean(zh(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function Dh(){return!0}function zh(e){return null!==e&&"object"==typeof e&&"type"in e}const Lh=[],Fh=!0,Bh=!1;function Uh(e,t,n,r){let o;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):o=t;const i=Rh(o),a=r?-1:1;!function e(o,s,l){const u=o&&"object"==typeof o?o:{};if("string"==typeof u.type){const e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(c,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return c;function c(){let u,c,d,f=Lh;if((!t||i(o,s,l[l.length-1]||void 0))&&(f=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[Fh,e];return null==e?Lh:[e]}(n(o,l)),f[0]===Bh))return f;if("children"in o&&o.children){const t=o;if(t.children&&"skip"!==f[0])for(c=(r?t.children.length:-1)+a,d=l.concat(t);c>-1&&c<t.children.length;){const n=t.children[c];if(u=e(n,c,d)(),u[0]===Bh)return u;c="number"==typeof u[1]?u[1]:c+a}}return f}}(e,void 0,[])()}function qh(e,t,n,r){let o,i,a;"function"==typeof t&&"function"!=typeof n?(i=void 0,a=t,o=n):(i=t,a=n,o=r),Uh(e,i,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)},o)}function Hh(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift({type:"text",value:"["});const a=o[o.length-1];return a&&"text"===a.type?a.value+=r:o.push({type:"text",value:r}),o}function $h(e){const t=e.spread;return null==t?e.children.length>1:t}function Vh(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(Wh(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(Wh(t.slice(o),o>0,!1)),i.join("")}function Wh(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const Qh={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}
vendor: 5,041 bytes, line 1
1,footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=jh(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let a,s=e.footnoteCounts.get(r);void 0===s?(s=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=i+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Hh(e,t);const o={src:jh(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:jh(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Hh(e,t);const o={href:jh(r.url||"")};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:jh(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=$h(n[r])}return t}(n):$h(t),i={},a=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const e=r[s];(o||0!==s||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?a.push(e):a.push(...e.children)}const l=r[r.length-1];l&&(o||"element"!==l.type||"p"!==l.tagName)&&a.push({type:"text",value:"\n"});const u={type:"element",tagName:"li",properties:i,children:a};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){const n={},r=e.all(t);let o=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;){const e=r[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),o.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=tf(t.children[1]),a=ef(t.children[t.children.length-1]);i&&a&&(r.position={start:i,end:a}),o.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,a=i?i.length:t.children.length;let s=-1;const l=[];for(;++s<a;){const n=t.children[s],r={},a=i?i[s]:void 0;a&&(r.align=a);let u={type:"element",tagName:o,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(n,u)),l.push(u)}const u={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};
vendor: 5,089 bytes, line 1
1return e.patch(t,u),e.applyData(t,u)},text:function(e,t){const n={type:"text",value:Vh(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:Kh,yaml:Kh,definition:Kh,footnoteDefinition:Kh};function Kh(){}const Yh={}.hasOwnProperty,Gh={};function Jh(e,t){e.position&&(t.position=function(e){const t=tf(e),n=ef(e);if(t&&n)return{start:t,end:n}}(e))}function Xh(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;if("string"==typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&o&&Object.assign(n.properties,Ih(o)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function Zh(e,t){const n=t.data||{},r=!("value"in t)||Yh.call(n,"hProperties")||Yh.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function em(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function tm(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function nm(e,t){const n=function(e,t){const n=t||Gh,r=new Map,o=new Map,i=new Map,a={...Qh,...n.handlers},s={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const o=s.one(n[r],e);if(o){if(r&&"break"===n[r-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=tm(o.value)),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=tm(e.value))}Array.isArray(o)?t.push(...o):t.push(o)}}}return t},applyData:Xh,definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:a,one:function(e,t){const n=e.type,r=s.handlers[n];if(Yh.call(s.handlers,n)&&r)return r(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=Ih(n);return r.children=s.all(e),r}return Ih(e)}return(s.options.unknownHandler||Zh)(s,e,t)},options:n,patch:Jh,wrap:em};return qh(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:o,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),s}(e,t),r=n.one(e,void 0),o=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Ah,r=e.options.footnoteBackLabel||Nh,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const o=e.footnoteById.get(e.footnoteOrder[l]);if(!o)continue;const i=e.all(o),a=String(o.identifier).toUpperCase(),u=jh(a.toLowerCase());let c=0;const d=[],f=e.footnoteCounts.get(a);for(;void 0!==f&&++c<=f;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,c);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const p=i[i.length-1];if(p&&"element"===p.type&&"p"===p.tagName){const e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...d)}else i.push(...d);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(i,!0)};e.patch(o,h),s.push(h)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Ih(a),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:"\n"},o),i}function rm(e,t){return e&&"run"in e?async function(n,r){const o=nm(n,{file:r,...t});await e.run(o,r)}:function(n,r){return nm(n,{file:r,...e||t})}}function om(e){if(e)throw e}var im=o(849);function am(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function sm(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(i,...a){const s=e[++n];let l=-1;if(i)r(i);else{for(;++l<t.length;)null!==a[l]&&void 0!==a[l]||(a[l]=t[l]);t=a,s?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let a;r&&t.push(o);try{a=e.apply(this,t)}catch(e){if(r&&n)throw e;return o(e)}r||(a&&a.then&&"function"==typeof a.then?a.then(i,o):a instanceof Error?o(a):i(a))}
vendor: 4,284 bytes, line 1
1function o(e,...r){n||(n=!0,t(e,...r))}function i(e){o(null,e)}}(s,o)(...a):r(null,...a)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const lm={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');um(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(o=i):(s=-1,o=a));r===o?o=a:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(um(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){um(e);let t,n=e.length,r=-1,o=0,i=-1,a=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?i<0?i=n:1!==a&&(a=1):i>-1&&(a=-1);else if(t){o=n+1;break}}if(i<0||r<0||0===a||1===a&&i===r-1&&i===o+1)return"";return e.slice(i,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)um(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){um(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,o="",i=0,a=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(a===l-1||1===s);else if(a!==l-1&&2===s){if(o.length<2||2!==i||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),a=l,s=0;continue}}else if(o.length>0){o="",i=0,a=l,s=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(a+1,l):o=e.slice(a+1,l),i=l-a-1;a=l,s=0}else 46===n&&s>-1?s++:s=-1}return o}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function um(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const cm={cwd:function(){return"/"}};function dm(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function fm(e){if("string"==typeof e)e=new URL(e);else if(!dm(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const pm=["history","path","basename","stem","extname","dirname"];class hm{constructor(e){let t;t=e?dm(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":cm.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<pm.length;){const e=pm[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)pm.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?lm.basename(this.path):void 0}set basename(e){gm(e,"basename"),mm(e,"basename"),this.path=lm.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?lm.dirname(this.path):void 0}set dirname(e){ym(this.basename,"dirname"),this.path=lm.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?lm.extname(this.path):void 0}set extname(e){if(mm(e,"extname"),ym(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");
vendor: 7,895 bytes, line 1
1if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=lm.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){dm(e)&&(e=fm(e)),gm(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?lm.basename(this.path,this.extname):void 0}set stem(e){gm(e,"stem"),mm(e,"stem"),this.path=lm.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new lf(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function mm(e,t){if(e&&e.includes(lm.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+lm.sep+"`")}function gm(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ym(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const bm=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},vm={}.hasOwnProperty;class wm extends bm{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=sm()}copy(){const e=new wm;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(im(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(_m("data",this.frozen),this.namespace[e]=t,this):vm.call(this.namespace,e)&&this.namespace[e]||void 0:e?(_m("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=Tm(e),n=this.parser||this.Parser;return km("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),km("process",this.parser||this.Parser),Sm("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const i=Tm(e),a=n.parse(i);function s(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(a,i,function(e,t,r){if(e||!t||!r)return s(e);const o=t,i=n.stringify(o,r);var a;"string"==typeof(a=i)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(a)?r.value=i:r.result=i,s(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),km("processSync",this.parser||this.Parser),Sm("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,om(e),t=r}),Cm("processSync","process",n),t}run(e,t,n){Em(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?o(void 0,n):new Promise(o);function o(o,i){const a=Tm(t);r.run(e,a,function(t,r,a){const s=r||e;t?i(t):o?o(s):n(void 0,s,a)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){om(e),n=t,r=!0}),Cm("runSync","run",r),n}stringify(e,t){this.freeze();const n=Tm(t),r=this.compiler||this.Compiler;return Sm("stringify",r),Em(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(_m("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?a(e):i(e)}return this;function o(e){if("function"==typeof e)s(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;s(t,n)}else i(e)}}function i(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(e.plugins),e.settings&&(r.settings=im(!0,r.settings,e.settings))}function a(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){o(e[t])}}}function s(e,t){let r=-1,o=-1;for(;++r<n.length;)if(n[r][0]===e){o=r;break}if(-1===o)n.push([e,...t]);else if(t.length>0){let[r,...i]=t;const a=n[o][1];am(a)&&am(r)&&(r=im(!0,a,r)),n[o]=[e,r,...i]}}}}const xm=(new wm).freeze();function km(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function Sm(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function _m(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Em(e){if(!am(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function Cm(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Tm(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new hm(e)}const Om=[],Pm={allowDangerousHtml:!0},Im=/^(https?|ircs?|mailto|xmpp)$/i,jm=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Am(e){const t=Nm(e),n=Rm(e);return Mm(t.runSync(t.parse(n),n),e)}function Nm(e){const t=e.rehypePlugins||Om,n=e.remarkPlugins||Om,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Pm}:Pm;return xm().use(xh).use(n).use(rm,r).use(t)}function Rm(e){const t=e.children||"",n=new hm;return"string"==typeof t&&(n.value=t),n}function Mm(e,t){const n=t.allowedElements,r=t.allowElement,o=t.components,i=t.disallowedElements,a=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||Dm;for(const e of jm)Object.hasOwn(t,e.from)&&pd((e.from,e.to&&e.to,e.id));return qh(e,function(e,t,o){if("raw"===e.type&&o&&"number"==typeof t)return a?o.children.splice(t,1):o.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in Ef)if(Object.hasOwn(Ef,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=Ef[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=l(String(n||""),t,e))}}if("element"===e.type){let a=n?!n.includes(e.tagName):!!i&&i.includes(e.tagName);if(!a&&r&&"number"==typeof t&&(a=!r(e,t,o)),a&&o&&"number"==typeof t)return s&&e.children?o.children.splice(t,1,...e.children):o.children.splice(t,1),t}}),mf(e,{Fragment:Gr.Fragment,components:o,ignoreInvalidStyle:!0,jsx:Gr.jsx,jsxs:Gr.jsxs,passKeys:!0,passNode:!0})}function Dm(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return-1===t||-1!==o&&t>o||-1!==n&&t>n||-1!==r&&t>r||Im.test(e.slice(0,t))?e:""}var zm=(e,t)=>
1{if(!e||!t)return!1;const n=e=>{const{position:t,data:n,...r}=e||{};return r};return JSON.stringify(n(e.properties))===JSON.stringify(n(t.properties))&&((e,t)=>"string"==typeof e?e===t:JSON.stringify(e)===JSON.stringify(t))(e.children,t.children)},Lm=(e,t)=>zm(e.node,t.node),Fm=(0,i.createContext)(null),Bm=()=>null!==(0,i.useContext)(Fm),Um=(0,i.memo)(({children:e,...t})=>(0,Gr.jsx)(Fm.Provider,{value:t,children:e}),Lm),qm=({node:e,...t})=>(0,Gr.jsx)("pre",{...t}),Hm=({node:e,...t})=>(0,Gr.jsx)("code",{...t}),$m=({node:e,components:{Pre:t,Code:n},code:r})=>(0,Gr.jsx)(t,{children:(0,Gr.jsx)(n,{node:e,children:r})}),Vm=()=>null,Wm=({node:e,components:{Pre:t,Code:n,SyntaxHighlighter:r,CodeHeader:o},language:a,code:s})=>{const l=(0,i.useMemo)(()=>({Pre:t,Code:n}),[t,n]),u=a?r:$m;return(0,Gr.jsxs)(Gr.Fragment,{children:[(0,Gr.jsx)(o,{node:e,language:a,code:s}),(0,Gr.jsx)(u,{node:e,components:l,language:a??"unknown",code:s})]})},Qm=o(942),Km=({className:e,...t})=>({className:n,...r})=>({className:Qm(e,n),...t,...r}),Ym=({node:e,components:{Pre:t,Code:n,SyntaxHighlighter:r,CodeHeader:o},componentsByLanguage:a={},children:s,...l})=>{const u=(0,i.useContext)(Fm),c=Km(u),d=io(e=>(0,Gr.jsx)(t,{...c(e)})),f=Km(l),p=io(e=>(0,Gr.jsx)(n,{...f(e)})),h=/language-(\w+)/.exec(l.className||"")?.[1]??"";if("string"!=typeof s)return(0,Gr.jsx)($m,{node:e,components:{Pre:d,Code:p},code:s});const m=a[h]?.SyntaxHighlighter??r,g=a[h]?.CodeHeader??o;return(0,Gr.jsx)(Wm,{node:e,components:{Pre:d,Code:p,SyntaxHighlighter:m,CodeHeader:g},language:h||"unknown",code:s})},Gm=(0,i.memo)(({node:e,components:t,componentsByLanguage:n,...r})=>Bm()?(0,Gr.jsx)(Ym,{node:e,components:t,componentsByLanguage:n,...r}):(0,Gr.jsx)(t.Code,{...r}),(e,t)=>e.components===t.components&&e.componentsByLanguage===t.componentsByLanguage&&Lm(e,t)),{cg:Jm,a2:Xm,D0:Zm}=e,eg=({components:e,componentsByLanguage:t,smooth:n=!0,preprocess:r,...o})=>{const a=_c(),s=(0,i.useMemo)(()=>r?{...a,text:r(a.text)}:a,[a,r]),{text:l}=Jm(s,n),{pre:u=qm,code:c=Hm,SyntaxHighlighter:d=$m,CodeHeader:f=Vm}=e??{},p=(0,i.useMemo)(()=>({Pre:u,Code:c,SyntaxHighlighter:d,CodeHeader:f}),[u,c,d,f]),h=io(e=>(0,Gr.jsx)(Gm,{components:p,componentsByLanguage:t,...e})),m=(0,i.useMemo)(()=>{const{pre:t,code:n,SyntaxHighlighter:r,CodeHeader:o,...i}=e??{};return{...i,pre:Um,code:h}},[h,e]);return(0,Gr.jsx)(Am,{components:m,...o,children:l})},tg=(0,i.forwardRef)(({className:e,containerProps:t,containerComponent:n="div",...r},o)=>{const i=Xm();return(0,Gr.jsx)(n,{"data-status":i.type,...t,className:Qm(e,t?.className),ref:o,children:(0,Gr.jsx)(eg,{...r})})});tg.displayName="MarkdownTextPrimitive";var ng=Zm(tg);function rg(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}function og(e,t,n){const r=Rh((n||{}).ignore||[]),o=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([ig(e[0]),ag(e[1])])}return t}(t);let i=-1;for(;++i<o.length;)Uh(e,"text",a);function a(e,t){let n,a=-1;for(;++a<t.length;){const e=t[a],o=n?n.children:void 0;if(r(e,o?o.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=o[i][0],a=o[i][1];let s=0;const l=n.children.indexOf(e);let u=!1,c=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){const n=d.index,o={index:d.index,input:d.input,stack:[...t,e]};let i=a(...d,o);if("string"==typeof i&&(i=i.length>0?{type:"text",value:i}:void 0),!1===i?r.lastIndex=n+1:(s!==n&&c.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(i)?c.push(...i):i&&c.push(i),s=n+d[0].length,u=!0),!r.global)break;d=r.exec(e.value)}u?(s<e.value.length&&c.push({type:"text",value:e.value.slice(s)}),n.children.splice(l,1,...c)):c=[e];return l+c.length}(e,t)}}function ig(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function ag(e){return"function"==typeof e?e:function(){return e}}const sg="phrasing",lg=["autolink","link","image","label"];function ug(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function cg(e){this.config.enter.autolinkProtocol.call(this,e)}function dg(e){this.config.exit.autolinkProtocol.call(this,e)}function fg(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function pg(e){this.config.exit.autolinkEmail.call(this,e)}function hg(e){this.exit(e)}function mg(e){og(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,gg],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,yg]],{ignore:["link","linkReference"]})}function gg(e,t,n,r,o){let i="";if(!bg(o))return!1;if(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const a=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const o=rg(e,"(");let i=rg(e,")");for(;-1!==r&&o>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}(n+r);if(!a[0])return!1;const s={type:"link",title:null,url:i+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function yg(e,t,n,r){return!(!bg(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function bg(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||Jf(n)||Gf(n))&&(!t||47!==n)}function vg(){this.buffer()}function wg(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function xg(){this.buffer()}function kg(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Sg(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=kp(this.sliceSerialize(e)).toLowerCase(),n.label=t}function _g(e){this.exit(e)}function Eg(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=kp(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Cg(e){this.exit(e)}function Tg(e,t,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(e),{after:"]",before:i})),s(),a(),i+=o.move("]"),i}function Og(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,o){const i=r.createTracker(o);let a=i.move("[^");const s=r.enter("footnoteDefinition"),l=r.enter("label");a+=i.move(r.safe(r.associationId(e),{before:a,after:"]"})),l(),a+=i.move("]:"),e.children&&e.children.length>0&&(i.shift(4),a+=i.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,i.current()),t?Ig:Pg)));return s(),a},footnoteReference:Tg},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function Pg(e,t,n){return 0===t?e:Ig(e,t,n)}function Ig(e,t,n){return(n?"":"    ")+e}Tg.peek=function(){return"["};const jg=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function Ag(e){this.enter({type:"delete",children:[]},e)}function Ng(e){this.exit(e)}function Rg(e,t,n,r){const o=n.createTracker(r),i=n.enter("strikethrough");let a=o.move("~~");return a+=n.containerPhrasing(e,{...o.current(),before:a,after:"~"}),a+=o.move("~~"),i(),a}function Mg(e){return e.length}function Dg(e){return null==e?"":String(e)}function zg(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function Lg(e,t,n){return">"+(n?"":" ")+e}function Fg(e,t){return Bg(e,t.inConstruct,!0)&&!Bg(e,t.notInConstruct,!1)}function Bg(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Ug(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;)if("\n"===n.unsafe[o].character&&Fg(n.stack,n.unsafe[o]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}function qg(e,t,n){return(n?"":"    ")+e}function Hg(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function $g(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Vg(e,t,n){const r=Qp(e),o=Qp(t);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 Wg(e,t,n,r){const o=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),i=n.enter("emphasis"),a=n.createTracker(r),s=a.move(o);let l=a.move(n.containerPhrasing(e,{after:o,before:s,...a.current()}));const u=l.charCodeAt(0),c=Vg(r.before.charCodeAt(r.before.length-1),u,o);c.inside&&(l=$g(u)+l.slice(1));const d=l.charCodeAt(l.length-1),f=Vg(r.after.charCodeAt(0),d,o);f.inside&&(l=l.slice(0,-1)+$g(d));const p=a.move(o);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:c.outside},s+l+p}function Qg(e){return e.value||""}function Kg(e,t,n,r){const o=Hg(n),i='"'===o?"Quote":"Apostrophe",a=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),u+=l.move(" "+o),u+=l.move(n.safe(e.title,{before:u,after:o,...l.current()})),u+=l.move(o),s()),u+=l.move(")"),a(),u}function Yg(e,t,n,r){const o=e.referenceType,i=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const u=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),a();const c=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=c,i(),"full"!==o&&u&&u===d?"shortcut"===o?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function Gg(e,t,n){let r=e.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 e=n.unsafe[i],t=n.compilePattern(e);let o;if(e.atBreak)for(;o=t.exec(r);){let e=o.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(o.index+1)}}return o+r+o}function Jg(e,t){const n=Tf(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function Xg(e,t,n,r){const o=Hg(n),i='"'===o?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(Jg(e,n)){const t=n.stack;n.stack=[],s=n.enter("autolink");let r=a.move("<");return r+=a.move(n.containerPhrasing(e,{before:r,after:">",...a.current()})),r+=a.move(">"),s(),n.stack=t,r}s=n.enter("link"),l=n.enter("label");let u=a.move("[");return u+=a.move(n.containerPhrasing(e,{before:u,after:"](",...a.current()})),u+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(l=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${i}`),u+=a.move(" "+o),u+=a.move(n.safe(e.title,{before:u,after:o,...a.current()})),u+=a.move(o),l()),u+=a.move(")"),s(),u}function Zg(e,t,n,r){const o=e.referenceType,i=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),a();const c=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=c,i(),"full"!==o&&u&&u===d?"shortcut"===o?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function ey(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function ty(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}Rg.peek=function(){return"~"},Wg.peek=function(e,t,n){return n.options.emphasis||"*"},Qg.peek=function(){return"<"},Kg.peek=function(){return"!"},Yg.peek=function(){return"!"},Gg.peek=function(){return"`"},Xg.peek=function(e,t,n){return Jg(e,n)?"<":"["},Zg.peek=function(){return"["};const ny=Rh(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function ry(e,t,n,r){const o=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),i=n.enter("strong"),a=n.createTracker(r),s=a.move(o+o);let l=a.move(n.containerPhrasing(e,{after:o,before:s,...a.current()}));const u=l.charCodeAt(0),c=Vg(r.before.charCodeAt(r.before.length-1),u,o);c.inside&&(l=$g(u)+l.slice(1));const d=l.charCodeAt(l.length-1),f=Vg(r.after.charCodeAt(0),d,o);f.inside&&(l=l.slice(0,-1)+$g(d));const p=a.move(o+o);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:c.outside},s+l+p}ry.peek=function(e,t,n){return n.options.strong||"*"};const oy={blockquote:function(e,t,n,r){const o=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const a=n.indentLines(n.containerFlow(e,i.current()),Lg);return o(),a},break:Ug,code:function(e,t,n,r){const o=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),i=e.value||"",a="`"===o?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}
vendor: 6,306 bytes, line 1
1(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(i,qg);return e(),t}const s=n.createTracker(r),l=o.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),o=r,i=0,a=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===o?++i>a&&(a=i):i=1,o=r+t.length,r=n.indexOf(t,o);return a}(i,o)+1,3)),u=n.enter("codeFenced");let c=s.move(l);if(e.lang){const t=n.enter(`codeFencedLang${a}`);c+=s.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${a}`);c+=s.move(" "),c+=s.move(n.safe(e.meta,{before:c,after:"\n",encode:["`"],...s.current()})),t()}return c+=s.move("\n"),i&&(c+=s.move(i+"\n")),c+=s.move(l),u(),c},definition:function(e,t,n,r){const o=Hg(n),i='"'===o?"Quote":"Apostrophe",a=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let u=l.move("[");return u+=l.move(n.safe(n.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":"\n",...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),u+=l.move(" "+o),u+=l.move(n.safe(e.title,{before:u,after:o,...l.current()})),u+=l.move(o),s()),a(),u},emphasis:Wg,hardBreak:Ug,heading:function(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(function(e,t){let n=!1;return qh(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,Bh}),Boolean((!e.depth||e.depth<3)&&Tf(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),a=n.containerPhrasing(e,{...i.current(),before:"\n",after:"\n"});return r(),t(),a+"\n"+(1===o?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}const a="#".repeat(o),s=n.enter("headingAtx"),l=n.enter("phrasing");i.move(a+" ");let u=n.containerPhrasing(e,{before:"# ",after:"\n",...i.current()});return/^[\t ]/.test(u)&&(u=$g(u.charCodeAt(0))+u.slice(1)),u=u?a+" "+u:a,n.options.closeAtx&&(u+=" "+a),l(),s(),u},html:Qg,image:Kg,imageReference:Yg,inlineCode:Gg,link:Xg,linkReference:Zg,list:function(e,t,n,r){const o=n.enter("list"),i=n.bulletCurrent;let a=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):ey(n);const s=e.ordered?"."===a?")":".":function(e){const t=ey(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let l=!(!t||!n.bulletLastUsed)&&a===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==a&&"-"!==a||!t||t.children&&t.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]||(l=!0),ty(n)===a&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){l=!0;break}}}}l&&(a=s),n.bulletCurrent=a;const u=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=i,o(),u},listItem:function(e,t,n,r){const o=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let i=n.bulletCurrent||ey(n);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i);let a=i.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const s=n.createTracker(r);s.move(i+" ".repeat(a-i.length)),s.shift(a);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,s.current()),function(e,t,n){if(t)return(n?"":" ".repeat(a))+e;return(n?i:i+" ".repeat(a-i.length))+e});return l(),u},paragraph:function(e,t,n,r){const o=n.enter("paragraph"),i=n.enter("phrasing"),a=n.containerPhrasing(e,r);return i(),o(),a},root:function(e,t,n,r){return(e.children.some(function(e){return ny(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:ry,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(ty(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function iy(e){const t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function ay(e){this.exit(e),this.data.inTable=void 0}function sy(e){this.enter({type:"tableRow",children:[]},e)}function ly(e){this.exit(e)}function uy(e){this.enter({type:"tableCell",children:[]},e)}function cy(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,dy));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function dy(e,t){return"|"===t?t:e}function fy(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.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(e,t,n){let r=oy.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return s(function(e,t,n){const r=e.children;let o=-1;const i=[],a=t.enter("table");for(;++o<r.length;)i[o]=l(r[o],t,n);return a(),i}(e,n,r),e.align)},tableCell:a,tableRow:function(e,t,n,r){const o=l(e,n,r),i=s([o]
vendor: 11,673 bytes, line 1
1);return i.slice(0,i.indexOf("\n"))}}};function a(e,t,n,r){const o=n.enter("tableCell"),a=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:i,after:i});return a(),o(),s}function s(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),o=n.stringLength||Mg,i=[],a=[],s=[],l=[];let u=0,c=-1;for(;++c<e.length;){const t=[],r=[];let i=-1;for(e[c].length>u&&(u=e[c].length);++i<e[c].length;){const a=Dg(e[c][i]);if(!1!==n.alignDelimiters){const e=o(a);r[i]=e,(void 0===l[i]||e>l[i])&&(l[i]=e)}t.push(a)}a[c]=t,s[c]=r}let d=-1;if("object"==typeof r&&"length"in r)for(;++d<u;)i[d]=zg(r[d]);else{const e=zg(r);for(;++d<u;)i[d]=e}d=-1;const f=[],p=[];for(;++d<u;){const e=i[d];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let o=!1===n.alignDelimiters?1:Math.max(1,l[d]-t.length-r.length);const a=t+"-".repeat(o)+r;!1!==n.alignDelimiters&&(o=t.length+o+r.length,o>l[d]&&(l[d]=o),p[d]=o),f[d]=a}a.splice(1,0,f),s.splice(1,0,p),c=-1;const h=[];for(;++c<a.length;){const e=a[c],t=s[c];d=-1;const r=[];for(;++d<u;){const o=e[d]||"";let a="",s="";if(!1!==n.alignDelimiters){const e=l[d]-(t[d]||0),n=i[d];114===n?a=" ".repeat(e):99===n?e%2?(a=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):(a=" ".repeat(e/2),s=a):s=" ".repeat(e)}!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===u-1||r.push("|")}h.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return h.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:o})}function l(e,t,n){const r=e.children;let o=-1;const i=[],s=t.enter("tableRow");for(;++o<r.length;)i[o]=a(r[o],0,t,n);return s(),i}}function py(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function hy(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const n=e.children[0];if(n&&"text"===n.type){const r=t.children;let o,i=-1;for(;++i<r.length;){const e=r[i];if("paragraph"===e.type){o=e;break}}o===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function my(e,t,n,r){const o=e.children[0],i="boolean"==typeof e.checked&&o&&"paragraph"===o.type,a="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);i&&s.move(a);let l=oy.listItem(e,t,n,{...r,...s.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+a})),l}const gy={tokenize:function(e,t,n){let r=0;return function t(i){if((87===i||119===i)&&r<3)return r++,e.consume(i),t;if(46===i&&3===r)return e.consume(i),o;return n(i)};function o(e){return null===e?n(e):t(e)}},partial:!0},yy={tokenize:function(e,t,n){let r,o,i;return a;function a(t){return 46===t||95===t?e.check(vy,l,s)(t):null===t||Kf(t)||Jf(t)||45!==t&&Gf(t)?l(t):(i=!0,e.consume(t),a)}function s(t){return 95===t?r=!0:(o=r,r=void 0),e.consume(t),a}function l(e){return o||r||!i?n(e):t(e)}},partial:!0},by={tokenize:function(e,t){let n=0,r=0;return o;function o(a){return 40===a?(n++,e.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?e.check(vy,t,i)(a):null===a||Kf(a)||Jf(a)?t(a):(e.consume(a),o)}function i(t){return 41===t&&r++,e.consume(t),o}},partial:!0},vy={tokenize:function(e,t,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?(e.consume(a),r):38===a?(e.consume(a),i):93===a?(e.consume(a),o):60===a||null===a||Kf(a)||Jf(a)?t(a):n(a)}function o(e){return null===e||40===e||91===e||Kf(e)||Jf(e)?t(e):r(e)}function i(e){return Bf(e)?a(e):n(e)}function a(t){return 59===t?(e.consume(t),r):Bf(t)?(e.consume(t),a):n(t)}},partial:!0},wy={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return Uf(e)?n(e):t(e)}},partial:!0},xy={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!Cy.call(r,r.previous)||Iy(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(gy,e.attempt(yy,e.attempt(by,o),n),n)(t)};function o(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:Cy},ky={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let o="",i=!1;return function(t){if((72===t||104===t)&&Ty.call(r,r.previous)&&!Iy(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(t),e.consume(t),a;return n(t)};function a(t){if(Bf(t)&&o.length<5)return o+=String.fromCodePoint(t),e.consume(t),a;if(58===t){const n=o.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),i?l:(i=!0,s)):n(t)}function l(t){return null===t||Hf(t)||Kf(t)||Jf(t)||Gf(t)?n(t):e.attempt(yy,e.attempt(by,u),n)(t)}function u(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:Ty},Sy={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let o,i;return function(t){if(!Py(t)||!Oy.call(r,r.previous)||Iy(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)};function a(t){return Py(t)?(e.consume(t),a):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(wy,u,l)(t):45===t||95===t||Uf(t)?(i=!0,e.consume(t),s):u(t)}function l(t){return e.consume(t),o=!0,s}function u(a){return i&&o&&Bf(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):n(a)}},previous:Oy},_y={};let Ey=48;for(;Ey<123;)_y[Ey]=Sy,Ey++,58===Ey?Ey=65:91===Ey&&(Ey=97);function Cy(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||Kf(e)}function Ty(e){return!Bf(e)}function Oy(e){return!(47===e||Py(e))}function Py(e){return 43===e||45===e||46===e||95===e||Uf(e)}function Iy(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}_y[43]=Sy,_y[45]=Sy,_y[46]=Sy,_y[95]=Sy,_y[72]=[Sy,ky],_y[104]=[Sy,ky],_y[87]=[Sy,xy],_y[119]=[Sy,xy];const jy={tokenize:function(e,t,n){const r=this;return Zf(e,function(e){const o=r.events[r.events.length-1];return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function Ay(e,t,n){const r=this;let o=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;o--;){const e=r.events[o][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!a||!a._balanced)return n(o);const s=kp(r.sliceSerialize({start:a.end,end:r.now()}));if(94!==s.codePointAt(0)||!i.includes(s.slice(1)))return n(o);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)}}function Ny(e,t){let n,r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){n=e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},l=[e[r+1],e[r+2],["enter",o,t],e[r+3],e[r+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",o,t]];return e.splice(r,e.length-r+1,...l),e}function Ry(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(a>999||93===s&&!i||null===s||91===s||Kf(s))return n(s);if(93===s){e.exit("chunkString");const i=e.exit("gfmFootnoteCallString");return o.includes(kp(r.sliceSerialize(i)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return Kf(s)||(i=!0),a++,e.consume(s),92===s?u:l}function u(t){return 91===t||92===t||93===t?(e.consume(t),a++,l):l(t)}}function My(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(t)}function u(t){if(s>999||93===t&&!a||null===t||91===t||Kf(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return i=kp(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return Kf(t)||(a=!0),s++,e.consume(t),92===t?c:u}function c(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(i)||o.push(i),Zf(e,f,"gfmFootnoteDefinitionWhitespace")):n(t)}function f(e){return t(e)}}function Dy(e,t,n){return e.check(rp,t,e.attempt(jy,t,n))}function zy(e){e.exit("gfmFootnoteDefinition")}function Ly(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const o=this.previous,i=this.events;let a=0;return function(t){if(126===o&&"characterEscape"!==i[i.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(i){const l=Qp(o);if(126===i)return a>1?r(i):(e.consume(i),a++,s);if(a<2&&!t)return r(i);const u=e.exit("strikethroughSequenceTemporary"),c=Qp(i);return u._open=!c||2===c&&Boolean(l),u._close=!l||2===l&&Boolean(c),n(i)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const o={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},i={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a=[["enter",o,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",i,t]],s=t.parser.constructs.insideSpan.null;s&&If(a,a.length,0,Up(s,e.slice(r+1,n),t)),If(a,a.length,0,[["exit",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",o,t]]
vendor: 5,474 bytes, line 1
1),If(e,r-1,n-r+3,a),n=r+a.length-2;break}}n=-1;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class Fy{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let o=0;if(0===n&&0===r.length)return;for(;o<e.map.length;){if(e.map[o][0]===t)return e.map[o][1]+=n,void e.map[o][2].push(...r);o+=1}e.map.push([t,n,r])}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0}}function By(e,t){let n=!1;const r=[];for(;t<e.length;){const o=e[t];if(n){if("enter"===o[0])"tableContent"===o[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===o[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===o[1].type)break}else"enter"===o[0]&&"tableDelimiterRow"===o[1].type&&(n=!0);t+=1}return r}function Uy(e,t,n){const r=this;let o,i=0,a=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const o=t>-1?r.events[t][1].type:null,i="tableHead"===o||"tableRow"===o?w:s;if(i===w&&r.parser.lazy[r.now().line])return n(e);return i(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return l(e);return o=!0,a+=1,l(e)}(t)}function l(t){return null===t?n(t):Qf(t)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):Yf(t)?Zf(e,l,"whitespace")(t):(a+=1,o&&(o=!1,i+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),o=!0,l):(e.enter("data"),u(t)))}function u(t){return null===t||124===t||Kf(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return 92===t||124===t?(e.consume(t),u):u(t)}function d(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),o=!1,Yf(t)?Zf(e,f,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):f(t))}function f(t){return 45===t||58===t?h(t):124===t?(o=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):v(t)}function p(t){return Yf(t)?Zf(e,h,"whitespace")(t):h(t)}function h(t){return 58===t?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(a+=1,m(t)):null===t||Qf(t)?b(t):v(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):v(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(t))}function y(t){return Yf(t)?Zf(e,b,"whitespace")(t):b(t)}function b(n){return 124===n?f(n):(null===n||Qf(n))&&o&&i===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):v(n)}function v(e){return n(e)}function w(t){return e.enter("tableRow"),x(t)}function x(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),x):null===n||Qf(n)?(e.exit("tableRow"),t(n)):Yf(n)?Zf(e,x,"whitespace")(n):(e.enter("data"),k(n))}function k(t){return null===t||124===t||Kf(t)?(e.exit("data"),x(t)):(e.consume(t),92===t?S:k)}function S(t){return 92===t||124===t?(e.consume(t),k):k(t)}}function qy(e,t){let n,r,o,i=-1,a=!0,s=0,l=[0,0,0,0],u=[0,0,0,0],c=!1,d=0;const f=new Fy;for(;++i<e.length;){const p=e[i],h=p[1];"enter"===p[0]?"tableHead"===h.type?(c=!1,0!==d&&($y(f,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(i,0,[["enter",n,t]])):"tableRow"===h.type||"tableDelimiterRow"===h.type?(a=!0,o=void 0,l=[0,0,0,0],u=[0,i+1,0,0],c&&(c=!1,r={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(i,0,[["enter",r,t]])),s="tableDelimiterRow"===h.type?2:r?3:1):!s||"data"!==h.type&&"tableDelimiterMarker"!==h.type&&"tableDelimiterFiller"!==h.type?"tableCellDivider"===h.type&&(a?a=!1:(0!==l[1]&&(u[0]=u[1],o=Hy(f,t,l,s,void 0,o)),l=u,u=[l[1],i,0,0])):(a=!1,0===u[2]&&(0!==l[1]&&(u[0]=u[1],o=Hy(f,t,l,s,void 0,o),l=[0,0,0,0]),u[2]=i)):"tableHead"===h.type?(c=!0,d=i):"tableRow"===h.type||"tableDelimiterRow"===h.type?(d=i,0!==l[1]?(u[0]=u[1],o=Hy(f,t,l,s,i,o)):0!==u[1]&&(o=Hy(f,t,u,s,i,o)),s=0):!s||"data"!==h.type&&"tableDelimiterMarker"!==h.type&&"tableDelimiterFiller"!==h.type||(u[3]=i)}for(0!==d&&$y(f,t,d,n,r),f.consume(t.events),i=-1;++i<t.events.length;){const e=t.events[i];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=By(t.events,i))}return e}function Hy(e,t,n,r,o,i){const a=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(i.end=Object.assign({},Vy(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const s=Vy(t.events,n[1]);if(i={type:a,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",i,t]]),0!==n[2]){const o=Vy(t.events,n[2]),i=Vy(t.events,n[3]),a={type:"tableContent",start:Object.assign({},o),end:Object.assign({},i)};if(e.add(n[2],0,[["enter",a,t]]),2!==r){const r=t.events[n[2]],o=t.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 t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}
1e.add(n[3]+1,0,[["exit",a,t]])}return void 0!==o&&(i.end=Object.assign({},Vy(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function $y(e,t,n,r,o){const i=[],a=Vy(t.events,n);o&&(o.end=Object.assign({},a),i.push(["exit",o,t])),r.end=Object.assign({},a),i.push(["exit",r,t]),e.add(n+1,0,i)}function Vy(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const Wy={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o};function o(t){return Kf(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),i):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),i):n(t)}function i(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return Qf(r)?t(r):Yf(r)?e.check({tokenize:Qy},t,n)(r):n(r)}}};function Qy(e,t,n){return Zf(e,function(e){return null===e?n(e):t(e)},"whitespace")}const Ky={};function Yy(e){const t=e||Ky,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return zf([{text:_y},{document:{91:{name:"gfmFootnoteDefinition",tokenize:My,continuation:{tokenize:Dy},exit:zy}},text:{91:{name:"gfmFootnoteCall",tokenize:Ry},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Ay,resolveTo:Ny}}},Ly(e),{flow:{null:{name:"table",tokenize:Uy,resolveAll:qy}}},{text:{91:Wy}}])}(t)),o.push([{transforms:[mg],enter:{literalAutolink:ug,literalAutolinkEmail:cg,literalAutolinkHttp:cg,literalAutolinkWww:cg},exit:{literalAutolink:hg,literalAutolinkEmail:pg,literalAutolinkHttp:dg,literalAutolinkWww:fg}},{enter:{gfmFootnoteCallString:vg,gfmFootnoteCall:wg,gfmFootnoteDefinitionLabelString:xg,gfmFootnoteDefinition:kg},exit:{gfmFootnoteCallString:Sg,gfmFootnoteCall:_g,gfmFootnoteDefinitionLabelString:Eg,gfmFootnoteDefinition:Cg}},{canContainEols:["delete"],enter:{strikethrough:Ag},exit:{strikethrough:Ng}},{enter:{table:iy,tableData:uy,tableHeader:uy,tableRow:sy},exit:{codeText:cy,table:ay,tableData:ly,tableHeader:ly,tableRow:ly}},{exit:{taskListCheckValueChecked:py,taskListCheckValueUnchecked:py,paragraph:hy}}]),i.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:sg,notInConstruct:lg},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:sg,notInConstruct:lg},{character:":",before:"[ps]",after:"\\/",inConstruct:sg,notInConstruct:lg}]},Og(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:jg}],handlers:{delete:Rg}},fy(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:my}}]}}(t))}const Gy=Fr("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),Jy=Fr("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);var Xy=Symbol("radix.slottable");function Zy(e){const t=({children:e})=>(0,Gr.jsx)(Gr.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=Xy,t}var eb=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),tb=i.forwardRef((e,t)=>(0,Gr.jsx)(oo.span,{...e,ref:t,style:{...eb,...e.style}}));tb.displayName="VisuallyHidden";var nb=tb,[rb,ob]=Jr("Tooltip",[Ta]),ib=Ta(),ab="TooltipProvider",sb=700,lb="tooltip.open",[ub,cb]=rb(ab),db=e=>{const{__scopeTooltip:t,delayDuration:n=sb,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,s=i.useRef(!0),l=i.useRef(!1),u=i.useRef(0);return i.useEffect(()=>{const e=u.current;return()=>window.clearTimeout(e)},[]),(0,Gr.jsx)(ub,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:i.useCallback(()=>{window.clearTimeout(u.current),s.current=!1},[]),onClose:i.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:i.useCallback(e=>{l.current=e},[]),disableHoverableContent:o,children:a})};db.displayName=ab;var fb="Tooltip",[pb,hb]=rb(fb),mb=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:l}=e,u=cb(fb,e.__scopeTooltip),c=ib(t),[d,f]=i.useState(null),p=No(),h=i.useRef(0),m=s??u.disableHoverableContent,g=l??u.delayDuration,y=i.useRef(!1),[b,v]=ts({prop:r,defaultProp:o??!1,onChange:e=>{e?(u.onOpen(),document.dispatchEvent(new CustomEvent(lb))):u.onClose(),a?.(e)},caller:fb}),w=i.useMemo(()=>b?y.current?"delayed-open":"instant-open":"closed",[b]),x=i.useCallback(()=>{window.clearTimeout(h.current),h.current=0,y.current=!1,v(!0)},[v]),k=i.useCallback(()=>{window.clearTimeout(h.current),h.current=0,v(!1)},[v]),S=i.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{y.current=!0,v(!0),h.current=0},g)},[g,v]);return i.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),(0,Gr.jsx)(Ha,{...c,children:(0,Gr.jsx)(pb,{scope:t,contentId:p,open:b,stateAttribute:w,trigger:d,onTriggerChange:f,onTriggerEnter:i.useCallback(()=>{u.isOpenDelayedRef.current?S():x()},[u.isOpenDelayedRef,S,x]),onTriggerLeave:i.useCallback(()=>{m?k():(window.clearTimeout(h.current),h.current=0)},[k,m]),onOpen:x,onClose:k,disableHoverableContent:m,children:n})})};mb.displayName=fb;var gb="TooltipTrigger",yb=i.forwardRef((e,t)=>
vendor: 5,242 bytes, line 1
1{const{__scopeTooltip:n,...r}=e,o=hb(gb,n),a=cb(gb,n),s=ib(n),l=Yr(t,i.useRef(null),o.onTriggerChange),u=i.useRef(!1),c=i.useRef(!1),d=i.useCallback(()=>u.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),(0,Gr.jsx)($a,{asChild:!0,...s,children:(0,Gr.jsx)(oo.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:Wr(e.onPointerMove,e=>{"touch"!==e.pointerType&&(c.current||a.isPointerInTransitRef.current||(o.onTriggerEnter(),c.current=!0))}),onPointerLeave:Wr(e.onPointerLeave,()=>{o.onTriggerLeave(),c.current=!1}),onPointerDown:Wr(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:Wr(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:Wr(e.onBlur,o.onClose),onClick:Wr(e.onClick,o.onClose)})})});yb.displayName=gb;var bb="TooltipPortal",[vb,wb]=rb(bb,{forceMount:void 0}),xb=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=hb(bb,t);return(0,Gr.jsx)(vb,{scope:t,forceMount:n,children:(0,Gr.jsx)(Ka,{present:n||i.open,children:(0,Gr.jsx)(Qa,{asChild:!0,container:o,children:r})})})};xb.displayName=bb;var kb="TooltipContent",Sb=i.forwardRef((e,t)=>{const n=wb(kb,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,a=hb(kb,e.__scopeTooltip);return(0,Gr.jsx)(Ka,{present:r||a.open,children:a.disableHoverableContent?(0,Gr.jsx)(Ob,{side:o,...i,ref:t}):(0,Gr.jsx)(_b,{side:o,...i,ref:t})})}),_b=i.forwardRef((e,t)=>{const n=hb(kb,e.__scopeTooltip),r=cb(kb,e.__scopeTooltip),o=i.useRef(null),a=Yr(t,o),[s,l]=i.useState(null),{trigger:u,onClose:c}=n,d=o.current,{onPointerInTransitChange:f}=r,p=i.useCallback(()=>{l(null),f(!1)},[f]),h=i.useCallback((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect()),i=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,o),a=function(e){const t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...i,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);l(a),f(!0)},[f]);return i.useEffect(()=>()=>p(),[p]),i.useEffect(()=>{if(u&&d){const e=e=>h(e,d),t=e=>h(e,u);return u.addEventListener("pointerleave",e),d.addEventListener("pointerleave",t),()=>{u.removeEventListener("pointerleave",e),d.removeEventListener("pointerleave",t)}}},[u,d,h,p]),i.useEffect(()=>{if(s){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=u?.contains(t)||d?.contains(t),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e],s=t[i],l=a.x,u=a.y,c=s.x,d=s.y;u>r!=d>r&&n<(c-l)*(r-u)/(d-u)+l&&(o=!o)}return o}(n,s);r?p():o&&(p(),c())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[u,d,s,c,p]),(0,Gr.jsx)(Ob,{...e,ref:a})}),[Eb,Cb]=rb(fb,{isInside:!1}),Tb=Zy("TooltipContent"),Ob=i.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...l}=e,u=hb(kb,n),c=ib(n),{onClose:d}=u;return i.useEffect(()=>(document.addEventListener(lb,d),()=>document.removeEventListener(lb,d)),[d]),i.useEffect(()=>{if(u.trigger){const e=e=>{const t=e.target;t?.contains(u.trigger)&&d()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[u.trigger,d]),(0,Gr.jsx)(po,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,Gr.jsxs)(Va,{"data-state":u.stateAttribute,...c,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,Gr.jsx)(Tb,{children:r}),(0,Gr.jsx)(Eb,{scope:n,isInside:!0,children:(0,Gr.jsx)(nb,{id:u.contentId,role:"tooltip",children:o||r})})]})})});Sb.displayName=kb;var Pb="TooltipArrow",Ib=i.forwardRef((e,t)=>
1{const{__scopeTooltip:n,...r}=e,o=ib(n);return Cb(Pb,n).isInside?null:(0,Gr.jsx)(Wa,{...o,...r,ref:t})});Ib.displayName=Pb;var jb=db,Ab=mb,Nb=yb,Rb=xb,Mb=Sb,Db=Ib;function zb(e){return zb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zb(e)}var Lb=["delayDuration"],Fb=["className","sideOffset","children"];function Bb(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function Ub(){return Ub=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ub.apply(null,arguments)}function qb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Hb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qb(Object(n),!0).forEach(function(t){$b(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $b(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=zb(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=zb(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==zb(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vb(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Wb(e){var t=e.delayDuration,n=void 0===t?0:t,r=Vb(e,Lb);return(0,Gr.jsx)(jb,Hb({"data-slot":"tooltip-provider",delayDuration:n},r))}function Qb(e){var t=Ub({},(Bb(e),e));return(0,Gr.jsx)(Wb,{children:(0,Gr.jsx)(Ab,Hb({"data-slot":"tooltip"},t))})}function Kb(e){var t=Ub({},(Bb(e),e));return(0,Gr.jsx)(Nb,Hb({"data-slot":"tooltip-trigger"},t))}function Yb(e){var t=e.className,n=e.sideOffset,r=void 0===n?0:n,o=e.children,i=Vb(e,Fb);return(0,Gr.jsx)(Rb,{children:(0,Gr.jsxs)(Mb,Hb(Hb({"data-slot":"tooltip-content",sideOffset:r,className:dr("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-[100] w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",t)},i),{},{children:[o,(0,Gr.jsx)(Db,{className:"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]}))})}function Gb(e){return Gb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gb(e)}var Jb=["children","tooltip","side","className"];function Xb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Zb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xb(Object(n),!0).forEach(function(t){ev(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ev(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Gb(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Gb(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Gb(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tv=(0,i.forwardRef)(function(e,t){var n=e.children,r=e.tooltip,o=e.side,i=void 0===o?"bottom":o,a=e.className,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Jb);return(0,Gr.jsxs)(Qb,{children:[(0,Gr.jsx)(Kb,{asChild:!0,children:(0,Gr.jsxs)(dd,Zb(Zb({variant:"ghost",size:"icon"},s),{},{className:dr("size-6 p-1",a),ref:t,children:[n,(0,Gr.jsx)("span",{className:"sr-only",children:r})]}))}),(0,Gr.jsx)(Yb,{side:i,children:r})]})});function nv(e){return nv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nv(e)}tv.displayName="TooltipIconButton";var rv=["className"],ov=["className"],iv=["className"],av=["className"],sv=["className"],lv=["className"],uv=["className"],cv=["className"],dv=["className"],fv=["className"],pv=["className"],hv=["className"],mv=["className"],gv=["className"],yv=["className"],bv=["className"],vv=["className"],wv=["className"],xv=["className"];function kv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Sv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?kv(Object(n),!0).forEach(function(t){_v(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _v(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=nv(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=nv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==nv(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ev(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Cv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Tv(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tv(e,t):void 0}}(e,t)||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 Tv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ov=function(){return(0,Gr.jsx)(ng,{remarkPlugins:[Yy],className:"md",components:jv})},Pv=(0,i.memo)(Ov),Iv=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).copiedDuration,t=void 0===e?3e3:e,n=Cv((0,i.useState)(!1),2),r=n[0],o=n[1];return{isCopied:r,copyToClipboard:function(e){e&&navigator.clipboard.writeText(e).then(function(){o(!0),setTimeout(function(){return o(!1)},t)})}}},jv=((e={})=>Object.fromEntries(Object.entries(e??{}).map(([e,t])=>{if(!t)return[e,t];const n=t;return[e,(0,i.memo)(({node:e,...t})=>(0,Gr.jsx)(n,{...t}),Lm)]})))({h1:function(e){var t=e.className,n=Ev(e,rv);return(0,Gr.jsx)("h1",Sv({className:dr("mb-10 scroll-m-20 text-4xl font-extrabold tracking-tight last:mb-0 break-words",t),style:{wordBreak:"break-word",overflowWrap:"anywhere"}},n))},h2:function(e){var t=e.className,n=Ev(e,ov);return(0,Gr.jsx)("h2",Sv({className:dr("mb-4 mt-10 scroll-m-20 text-3xl font-semibold tracking-tight first:mt-0 last:mb-0 break-words",t),style:{wordBreak:"break-word",overflowWrap:"anywhere"}},n))},h3:function(e){var t=e.className,n=Ev(e,iv);return(0,Gr.jsx)("h3",Sv({className:dr("mb-4 mt-8 scroll-m-20 text-2xl font-semibold tracking-tight first:mt-0 last:mb-0 break-words",t),style:{wordBreak:"break-word",overflowWrap:"anywhere"}},n))},h4:function(e){var t=e.className,n=Ev(e,av);return(0,Gr.jsx)("h4",Sv({className:dr("mb-4 mt-8 scroll-m-20 text-xl font-semibold tracking-tight first:mt-0 last:mb-0",t)},n))},h5:function(e){var t=e.className,n=Ev(e,sv);return(0,Gr.jsx)("h5",Sv({className:dr("my-4 text-lg font-semibold first:mt-0 last:mb-0",t)},n))},h6:function(e){var t=e.className,n=Ev(e,lv);return(0,Gr.jsx)("h6",Sv({className:dr("my-4 font-semibold first:mt-0 last:mb-0",t)},n))},p:function(e){var t=e.className,n=Ev(e,uv);return(0,Gr.jsx)("p",Sv({className:dr("mb-6 mt-6 leading-7 first:mt-0 last:mb-0 break-words",t),style:{wordBreak:"break-word",overflowWrap:"anywhere"}},n))},a:function(e){var t=e.className,n=Ev(e,cv);return(0,Gr.jsx)("a",Sv({className:dr("text-primary font-medium underline underline-offset-4",t),target:"_blank",rel:"noopener noreferrer"},n))},blockquote:function(e){var t=e.className,n=Ev(e,dv);return(0,Gr.jsx)("blockquote",Sv({className:dr("border-l-2 pl-8 italic",t)},n))},ul:function(e){var t=e.className,n=Ev(e,fv);return(0,Gr.jsx)("ul",Sv({className:dr("my-6 ml-8 list-disc [&>li]:mt-2",t)},n))},ol:function(e){var t=e.className,n=Ev(e,pv);return(0,Gr.jsx)("ol",Sv({className:dr("my-6 ml-8 list-decimal [&>li]:mt-2",t)},n))},hr:function(e){var t=e.className,n=Ev(e,hv);return(0,Gr.jsx)("hr",Sv({className:dr("my-6 border-b",t)},n))},table:function(e){var t=e.className,n=Ev(e,mv);return(0,Gr.jsx)("table",Sv({className:dr("my-6 w-full border-separate border-spacing-0 overflow-y-auto",t)},n))},th:function(e){var t=e.className,n=Ev(e,gv);return(0,Gr.jsx)("th",Sv({className:dr("bg-muted px-4 py-2 text-left font-bold first:rounded-tl-lg last:rounded-tr-lg [&[align=center]]:text-center [&[align=right]]:text-right",t)},n))},td:function(e){var t=e.className,n=Ev(e,yv);return(0,Gr.jsx)("td",Sv({className:dr("border-b border-l px-4 py-2 text-left last:border-r [&[align=center]]:text-center [&[align=right]]:text-right",t)},n))},tr:function(e){var t=e.className,n=Ev(e,bv);return(0,Gr.jsx)("tr",Sv({className:dr("m-0 border-b p-0 first:border-t [&:last-child>td:first-child]:rounded-bl-lg [&:last-child>td:last-child]:rounded-br-lg",t)},n))},sup:function(e){var t=e.className,n=Ev(e,vv);return(0,Gr.jsx)("sup",Sv({className:dr("[&>a]:text-xs [&>a]:no-underline",t)},n))},pre:function(e){var t=e.className,n=Ev(e,wv);return(0,Gr.jsx)("pre",Sv({className:dr("overflow-x-auto rounded-b-lg 
1!rounded-t-none bg-foreground p-4 text-background",t)},n))},code:function(e){var t=e.className,n=Ev(e,xv),r=Bm();return(0,Gr.jsx)("code",Sv({className:dr(!r&&"bg-muted rounded border font-semibold",t)},n))},CodeHeader:function(e){var t=e.language,n=e.code,r=Iv(),o=r.isCopied,i=r.copyToClipboard;return(0,Gr.jsxs)("div",{className:"flex items-center justify-between gap-4 mt-4 rounded-t-lg bg-foreground px-4 py-2 text-sm font-semibold text-background",children:[(0,Gr.jsx)("span",{className:"lowercase [&>span]:text-xs",children:t}),(0,Gr.jsxs)(tv,{tooltip:"Copy",onClick:function(){n&&!o&&i(n)},children:[!o&&(0,Gr.jsx)(Gy,{}),o&&(0,Gr.jsx)(Jy,{})]})]})}});const Av=Fr("thumbs-up",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]),Nv=Fr("thumbs-down",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]]),Rv=Fr("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);function Mv(e){return Mv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mv(e)}var Dv=["type","children","isSelected","isDisabled","isLoading","onClick","className"];function zv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Lv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zv(Object(n),!0).forEach(function(t){Fv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fv(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Mv(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Mv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Mv(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Bv=(0,i.forwardRef)(function(e,t){var n=e.type,r=e.children,o=e.isSelected,i=e.isDisabled,a=e.isLoading,s=e.onClick,l=e.className,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Dv),c=function(e){return e===y?Av:Nv}(n),d=r||k[n],f=function(e,t,n,r){var o=["inline-flex","items-center","justify-center","gap-2","px-4","py-2","rounded-full","border-2","transition-all","duration-200","text-base","font-medium","whitespace-nowrap","min-h-[36px]","hover:text-gray-500"];return r||n?o.push("cursor-not-allowed"):o.push("cursor-pointer"),t?e===y?o.push(x[y].border,x[y].text,x[y].background):o.push(x[b].border,x[b].text,x[b].background):(o.push(x.default.border,x.default.text,x.default.background),n||r||(e===y?o.push(x[y].hoverBorder):o.push(x[b].hoverBorder))),o.join(" ")}(n,o,i,a),p=function(e,t){var n=["size-4"];return t?e===y?n.push(x[y].icon):n.push(x[b].icon):n.push(x.default.icon),n.join(" ")}(n,o),h="".concat(d," feedback"),m=o;return(0,Gr.jsxs)(dd,Lv(Lv({ref:t,type:"button",variant:"ghost",size:"default",disabled:i||a,onClick:s,className:dr(f,l),"aria-label":h,"aria-pressed":m,role:"button"},u),{},{children:[a?(0,Gr.jsx)(Rv,{className:dr(p,"animate-spin"),"aria-hidden":"true"}):(0,Gr.jsx)(c,{className:p,"aria-hidden":"true"}),(0,Gr.jsx)("span",{className:"select-none",children:d}),(0,Gr.jsxs)("span",{className:"sr-only",children:[o?"Selected: ".concat(d):"Select ".concat(d),i&&" (disabled)",a&&" (loading)"]})]}))});function Uv(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,u=Object.create(l.prototype);return qv(u,"_invoke",function(n,r,o){var i,s,l,u=0,c=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,f.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,i=c[t],p=f.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,f.v=r,f.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,f.n=h,s=0))}if(o||n>1)return a;throw d=!0,r}return function(o,c,h){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,h),s=c,l=h;(t=s<2?e:l)||!d;){i||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(u=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");
1if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==a)break}catch(t){i=e,s=1,l=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function s(){}function l(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(qv(t={},r,function(){return this}),t),d=u.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,qv(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=u,qv(d,"constructor",u),qv(u,"constructor",l),l.displayName="GeneratorFunction",qv(u,o,"GeneratorFunction"),qv(d),qv(d,o,"Generator"),qv(d,r,function(){return this}),qv(d,"toString",function(){return"[object Generator]"}),(Uv=function(){return{w:i,m:f}})()}function qv(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}qv=function(e,t,n,r){function i(t,n){qv(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},qv(e,t,n,r)}function Hv(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function $v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Vv(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vv(e,t):void 0}}(e,t)||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 Vv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}Bv.displayName="FeedbackButton";var Wv=function(e){e.messageId,e.feedbackType;var t=e.onSubmit,n=e.onCancel,r=$v((0,i.useState)(""),2),o=r[0],a=r[1],s=$v((0,i.useState)(!1),2),l=s[0],u=s[1],c=$v((0,i.useState)(null),2),d=c[0],f=c[1],h=(0,i.useRef)(null);(0,i.useEffect)(function(){h.current&&h.current.focus()},[]);var m=function(){var e,n=(e=Uv().m(function e(){return Uv().w(function(e){for(;;)switch(e.p=e.n){case 0:if(o.trim()){e.n=1;break}return e.a(2);case 1:return u(!0),f(null),e.p=2,e.n=3,t(o.trim());case 3:e.n=5;break;case 4:e.p=4,e.v,f("Failed to submit feedback. Please try again."),u(!1);case 5:return e.a(2)}},e,null,[[2,4]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Hv(i,r,o,a,s,"next",e)}function s(e){Hv(i,r,o,a,s,"throw",e)}a(void 0)})});return function(){return n.apply(this,arguments)}}(),g=!o.trim()||l;return(0,Gr.jsx)("div",{className:"mt-4 w-full rounded-lg bg-gray-50 p-4",children:(0,Gr.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,Gr.jsx)("p",{className:"text-sm text-neutral-950",children:"Thank you! Feel free to let me know if you have any details to share."}),(0,Gr.jsx)("textarea",{ref:h,value:o,onChange:function(e){var t=e.target.value;t.length<=p&&(a(t),f(null))},onKeyDown:function(e){(e.ctrlKey||e.metaKey)&&"Enter"===e.key&&o.trim()&&(e.preventDefault(),m())},placeholder:"Type your feedback here...",maxLength:p,disabled:l,className:dr("w-full rounded-md border border-gray-300 p-3","min-h-[100px] resize-y","text-sm text-gray-900 placeholder:text-gray-400","focus:outline-none focus:border-gray-300","disabled:bg-gray-100 disabled:cursor-not-allowed","transition-colors duration-200"),"aria-label":"Feedback text","aria-describedby":"feedback-warning"}),(0,Gr.jsx)("p",{id:"feedback-warning",className:"text-xs text-gray-500",children:"Please do not share any personal, confidential or sensitive information"}),d&&(0,Gr.jsx)("div",{className:"text-sm text-red-600 bg-red-50 p-2 rounded-md",children:d}),(0,Gr.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Gr.jsxs)(dd,{onClick:m,disabled:g,className:dr("inline-flex items-center gap-2","px-4 py-2","rounded-lg","border border-[#
1E5E5E5]","bg-white hover:bg-gray-50","text-gray-900 text-sm font-medium","shadow-[0_1px_2px_0_rgba(0,0,0,0.05)]","disabled:opacity-50 disabled:cursor-not-allowed","transition-colors duration-200"),"aria-label":"Submit feedback",children:[l&&(0,Gr.jsx)(Rv,{className:"h-4 w-4 animate-spin"}),l?"Submitting...":"Submit"]}),n&&!l&&(0,Gr.jsx)(dd,{onClick:n,variant:"ghost",className:"text-sm text-gray-600 hover:text-gray-900","aria-label":"Cancel feedback",children:"Cancel"})]})]})})},Qv=function(e){var t=e.feedbackText;return(0,Gr.jsx)("div",{className:"mt-4 w-full rounded-lg bg-gray-50 p-4",children:(0,Gr.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,Gr.jsx)("h4",{className:"text-sm font-semibold text-gray-900",children:"Feedback"}),(0,Gr.jsx)("div",{className:"text-sm text-gray-700 whitespace-pre-wrap break-words",children:t})]})})};function Kv(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}var Yv=e=>Array.isArray(e)?e:[e];function Gv(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){const n=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw new TypeError(`${t}[${n}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}Symbol(),Object.getPrototypeOf({});var Jv="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function Xv(){return{s:0,v:void 0,o:null,p:null}}function Zv(e,t={}){let n={s:0,v:void 0,o:null,p:null};const{resultEqualityCheck:r}=t;let o,i=0;function a(){let t=n;const{length:a}=arguments;for(let e=0,n=a;e<n;e++){const n=arguments[e];if("function"==typeof n||"object"==typeof n&&null!==n){let e=t.o;null===e&&(t.o=e=new WeakMap);const r=e.get(n);void 0===r?(t=Xv(),e.set(n,t)):t=r}else{let e=t.p;null===e&&(t.p=e=new Map);const r=e.get(n);void 0===r?(t=Xv(),e.set(n,t)):t=r}}const s=t;let l;if(1===t.s)l=t.v;else if(l=e.apply(null,arguments),i++,r){const e=o?.deref?.()??o;null!=e&&r(e,l)&&(l=e,0!==i&&i--);o="object"==typeof l&&null!==l||"function"==typeof l?new Jv(l):l}return s.s=1,s.v=l,l}return a.clearCache=()=>{n={s:0,v:void 0,o:null,p:null},a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function ew(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,o=0,i={},a=e.pop();"object"==typeof a&&(i=a,a=e.pop()),Kv(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);const s={...n,...i},{memoize:l,memoizeOptions:u=[],argsMemoize:c=Zv,argsMemoizeOptions:d=[],devModeChecks:f={}}=s,p=Yv(u),h=Yv(d),m=Gv(e),g=l(function(){return r++,a.apply(null,arguments)},...p);const y=c(function(){o++;const e=function(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}(m,arguments);return t=g.apply(null,e),t},...h);return Object.assign(y,{resultFunc:a,memoizedResultFunc:g,dependencies:m,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:l,argsMemoize:c})};return Object.assign(r,{withTypes:()=>r}),r}var tw=ew(Zv),nw=Object.assign((e,t=tw)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e),r=t(n.map(t=>e[t]),(...e)=>e.reduce((e,t,r)=>(e[n[r]]=t,e),{}));return r},{withTypes:()=>nw});var rw=class extends Error{issues;constructor(e){super(e[0].message),this.name="SchemaError",this.issues=e}},ow=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(ow||{});function iw(e){return{status:e,isUninitialized:"uninitialized"===e,isLoading:"pending"===e,isSuccess:"fulfilled"===e,isError:"rejected"===e}}var aw=ie;function sw(e,t){if(e===t||!(aw(e)&&aw(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let o=n.length===r.length;const i=Array.isArray(t)?[]:{};for(const r of n)i[r]=sw(e[r],t[r]),o&&(o=e[r]===i[r]);return o?e:i}function lw(e){let t=0;for(const n in e)t++;return t}var uw=e=>[].concat(...e);function cw(e){return null!=e}function dw(e,t){if(!e)return t;if(!t)return e;if(function(e){return new RegExp("(^|:)//").test(e)}(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=(e=>e.replace(/\/$/,""))(e),`${e}${n}${t=(e=>e.replace(/^\//,""))(t)}`}var fw=(...e)=>
1fetch(...e),pw=e=>e.status>=200&&e.status<=299,hw=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function mw(e){if(!ie(e))return e;const t={...e};for(const[e,n]of Object.entries(t))void 0===n&&delete t[e];return t}var gw=class{constructor(e,t=void 0){this.value=e,this.meta=t}};var yw=ut("__rtkq/focused"),bw=ut("__rtkq/unfocused"),vw=ut("__rtkq/online"),ww=ut("__rtkq/offline");function xw(e){return"query"===e.type}function kw(e){return"infinitequery"===e.type}function Sw(e){return xw(e)||kw(e)}function _w(e,t,n,r,o,i){return"function"==typeof e?e(t,n,r,o).filter(cw).map(Ew).map(i):Array.isArray(e)?e.map(Ew).map(i):[]}function Ew(e){return"string"==typeof e?{type:e}:e}var Cw=Symbol("forceQueryFn"),Tw=e=>"function"==typeof e[Cw];var Ow=class extends rw{constructor(e,t,n,r){super(e),this.value=t,this.schemaName=n,this._bqMeta=r}};async function Pw(e,t,n,r){const o=await e["~standard"].validate(t);if(o.issues)throw new Ow(o.issues,t,n,r);return o.value}function Iw(e){return e}var jw=(e={})=>({...e,[pt]:!0});function Aw(e,{pages:t,pageParams:n},r){const o=t.length-1;return e.getNextPageParam(t[o],t,n[o],n,r)}function Nw(e,{pages:t,pageParams:n},r){return e.getPreviousPageParam?.(t[0],t,n[0],n,r)}function Rw(e,t,n,r){return _w(n[e.meta.arg.endpointName][t],Ct(e)?e.payload:void 0,Et(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function Mw(e,t,n){const r=e[t];r&&n(r)}function Dw(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function zw(e,t,n){const r=e[Dw(t)];r&&n(r)}var Lw={};function Fw({reducerPath:e,queryThunk:t,mutationThunk:n,serializeQueryArgs:r,context:{endpointDefinitions:o,apiUid:i,extractRehydrationInfo:a,hasRehydrationInfo:s},assertTagType:l,config:u}){const c=ut(`${e}/resetApiState`);function d(e,t,n,r){e[t.queryCacheKey]??={status:"uninitialized",endpointName:t.endpointName},Mw(e,t.queryCacheKey,e=>{e.status="pending",e.requestId=n&&e.requestId?e.requestId:r.requestId,void 0!==t.originalArgs&&(e.originalArgs=t.originalArgs),e.startedTimeStamp=r.startedTimeStamp;kw(o[r.arg.endpointName])&&"direction"in t&&(e.direction=t.direction)})}function f(e,t,n,r){Mw(e,t.arg.queryCacheKey,e=>{if(e.requestId!==t.requestId&&!r)return;const{merge:i}=o[t.arg.endpointName];if(e.status="fulfilled",i)if(void 0!==e.data){const{fulfilledTimeStamp:r,arg:o,baseQueryMeta:a,requestId:s}=t;let l=ot(e.data,e=>i(e,n,{arg:o.originalArgs,baseQueryMeta:a,fulfilledTimeStamp:r,requestId:s}));e.data=l}else e.data=n;else e.data=o[t.arg.endpointName].structuralSharing??1?sw(be(e.data)?(be(a=e.data)||ge(15),a[me].base_):e.data,n):n;var a;delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp})}const p=Bt({name:`${e}/queries`,initialState:Lw,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:ht()},cacheEntriesUpserted:{reducer(e,t){for(const n of t.payload){const{queryDescription:r,value:o}=n;d(e,r,!0,{arg:r,requestId:t.meta.requestId,startedTimeStamp:t.meta.timestamp}),f(e,{arg:r,requestId:t.meta.requestId,fulfilledTimeStamp:t.meta.timestamp,baseQueryMeta:{}},o,!0)}},prepare:e=>({payload:e.map(e=>{const{endpointName:t,arg:n,value:i}=e,a=o[t];return{queryDescription:{type:"query",endpointName:t,originalArgs:e.arg,queryCacheKey:r({queryArgs:n,endpointDefinition:a,endpointName:t})},value:i}}),meta:{[pt]:!0,requestId:Ot(),timestamp:Date.now()}})},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){Mw(e,t,e=>{e.data=at(e.data,n.concat())})},prepare:ht()}},extraReducers(e){e.addCase(t.pending,(e,{meta:t,meta:{arg:n}})=>{d(e,n,Tw(n),t)}).addCase(t.fulfilled,(e,{meta:t,payload:n})=>{f(e,t,n,Tw(t.arg))}).addCase(t.rejected,(e,{meta:{condition:t,arg:n,requestId:r},error:o,payload:i})=>{Mw(e,n.queryCacheKey,e=>{if(t);else{if(e.requestId!==r)return;e.status="rejected",e.error=i??o}})}).addMatcher(s,(e,t)=>{const{queries:n}=a(t);for(const[t,r]of Object.entries(n))"fulfilled"!==r?.status&&"rejected"!==r?.status||(e[t]=r)})}}),h=Bt({name:`${e}/mutations`,initialState:Lw,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=Dw(t);n in e&&delete e[n]},prepare:ht()}},extraReducers(e){e.addCase(n.pending,(e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:o}})=>{r.track&&(e[Dw(t)]={requestId:n,status:"pending",endpointName:r.endpointName,startedTimeStamp:o})}).addCase(n.fulfilled,(e,{payload:t,meta:n})=>{n.arg.track&&zw(e,n,e=>{e.requestId===n.requestId&&(e.status="fulfilled",e.data=t,e.fulfilledTimeStamp=n.fulfilledTimeStamp)})}).addCase(n.rejected,(e,{payload:t,error:n,meta:r})=>{r.arg.track&&zw(e,r,e=>{e.requestId===r.requestId&&(e.status="rejected",e.error=t??n)})}).addMatcher(s,(e,t)=>{const{mutations:n}=a(t);for(const[t,r]of Object.entries(n))"fulfilled"!==r?.status&&"rejected"!==r?.status||t===r?.requestId||(e[t]=r)})}}),m=Bt({name:`${e}/invalidation`,initialState:{tags:{},keys:{}},reducers:{updateProvidedBy:{reducer(e,t){for(const{queryCacheKey:n,providedTags:r}of t.payload){g(e,n);for(const{type:t,id:o}of r){const r=(e.tags[t]??={})[o||"__internal_without_id"]??=[];r.includes(n)||r.push(n)}e.keys[n]=r}},prepare:ht()}},extraReducers(e){e.addCase(p.actions.removeQueryResult,(e,{payload:{queryCacheKey:t}})=>{g(e,t)}).addMatcher(s,(e,t)=>{const{provided:n}=a(t);for(const[t,r]of Object.entries(n))for(const[n,o]of Object.entries(r)){const r=(e.tags[t]??={})[n||"__internal_without_id"]??=[];for(const e of o){r.includes(e)||r.push(e)}}}).addMatcher(vt(Ct(t),Et(t)),(e,t)=>{y(e,[t])}).addMatcher(p.actions.cacheEntriesUpserted.match,(e,t)=>{y(e,t.payload.map(({queryDescription:e,value:t})=>({type:"UNKNOWN",payload:t,meta:{requestStatus:"fulfilled",requestId:"UNKNOWN",arg:e}})))})}});function g(e,t){const n=e.keys[t]??[];for(const r of n){const n=r.type,o=r.id??"__internal_without_id",i=e.tags[n]?.[o];i&&(e.tags[n][o]=i.filter(e=>e!==t))}delete e.keys[t]}function y(e,t){const n=t.map(e=>{const t=Rw(e,"providesTags",o,l),{queryCacheKey:n}=e.meta.arg;return{queryCacheKey:n,providedTags:t}});m.caseReducers.updateProvidedBy(e,m.actions.updateProvidedBy(n))}const b=Bt({name:`${e}/subscriptions`,initialState:Lw,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),v=Bt({name:`${e}/internalSubscriptions`,initialState:Lw,reducers:{subscriptionsUpdated:{reducer:(e,t)=>at(e,t.payload),prepare:ht()}}}
1),w=Bt({name:`${e}/config`,initialState:{online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine,focused:"undefined"==typeof document||"hidden"!==document.visibilityState,middlewareRegistered:!1,...u},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&i===t||"conflict"}},extraReducers:e=>{e.addCase(vw,e=>{e.online=!0}).addCase(ww,e=>{e.online=!1}).addCase(yw,e=>{e.focused=!0}).addCase(bw,e=>{e.focused=!1}).addMatcher(s,e=>({...e}))}}),x=se({queries:p.reducer,mutations:h.reducer,provided:m.reducer,subscriptions:v.reducer,config:w.reducer});return{reducer:(e,t)=>x(c.match(t)?void 0:e,t),actions:{...w.actions,...p.actions,...b.actions,...v.actions,...h.actions,...m.actions,resetApiState:c}}}var Bw=Symbol.for("RTKQ/skipToken"),Uw={status:"uninitialized"},qw=ot(Uw,()=>{}),Hw=ot(Uw,()=>{});var $w=WeakMap?new WeakMap:void 0,Vw=({endpointName:e,queryArgs:t})=>{let n="";const r=$w?.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,(e,t)=>t=ie(t="bigint"==typeof t?{$bigint:t.toString()}:t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t);ie(t)&&$w?.set(t,e),n=e}return`${e}(${n})`};function Ww(...e){return function(t){const n=Zv(e=>t.extractRehydrationInfo?.(e,{reducerPath:t.reducerPath??"api"})),r={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...t,extractRehydrationInfo:n,serializeQueryArgs(e){let n=Vw;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"==typeof n?n:Vw({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},o={endpointDefinitions:{},batch(e){e()},apiUid:Ot(),extractRehydrationInfo:n,hasRehydrationInfo:Zv(e=>null!=n(e))},i={injectEndpoints:function(e){const t=e.endpoints({query:e=>({...e,type:"query"}),mutation:e=>({...e,type:"mutation"}),infiniteQuery:e=>({...e,type:"infinitequery"})});for(const[n,r]of Object.entries(t))if(!0!==e.overrideExisting&&n in o.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error(Ht(39))}else{0,o.endpointDefinitions[n]=r;for(const e of a)e.injectEndpoint(n,r)}return i},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(const t of e)r.tagTypes.includes(t)||r.tagTypes.push(t);if(t)for(const[e,n]of Object.entries(t))"function"==typeof n?n(o.endpointDefinitions[e]):Object.assign(o.endpointDefinitions[e]||{},n);return i}},a=e.map(e=>e.init(i,r,o));return i.injectEndpoints({endpoints:t.endpoints})}}function Qw(e,...t){return Object.assign(e,...t)}var Kw=({api:e,queryThunk:t,internalState:n})=>{const r=`${e.reducerPath}/subscriptions`;let o=null,i=null;const{updateSubscriptionOptions:a,unsubscribeQueryResult:s}=e.internalActions,l=()=>n.currentSubscriptions,u={getSubscriptions:l,getSubscriptionCount:e=>lw(l()[e]??{}),isRequestSubscribed:(e,t)=>{const n=l();return!!n?.[e]?.[t]}};return(l,c)=>{if(o||(o=JSON.parse(JSON.stringify(n.currentSubscriptions))),e.util.resetApiState.match(l))return o=n.currentSubscriptions={},i=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(l))return[!1,u];const d=((n,r)=>{if(a.match(r)){const{queryCacheKey:e,requestId:t,options:o}=r.payload;return n?.[e]?.[t]&&(n[e][t]=o),!0}if(s.match(r)){const{queryCacheKey:e,requestId:t}=r.payload;return n[e]&&delete n[e][t],!0}if(e.internalActions.removeQueryResult.match(r))return delete n[r.payload.queryCacheKey],!0;if(t.pending.match(r)){const{meta:{arg:e,requestId:t}}=r,o=n[e.queryCacheKey]??={};return o[`${t}_running`]={},e.subscribe&&(o[t]=e.subscriptionOptions??o[t]??{}),!0}let o=!1;if(t.fulfilled.match(r)||t.rejected.match(r)){const e=n[r.meta.arg.queryCacheKey]||{},t=`${r.meta.requestId}_running`;o||=!!e[t],delete e[t]}if(t.rejected.match(r)){const{meta:{condition:e,arg:t,requestId:i}}=r;if(e&&t.subscribe){const e=n[t.queryCacheKey]??={};e[i]=t.subscriptionOptions??e[i]??{},o=!0}}return o})(n.currentSubscriptions,l);let f=!0;if(d){i||(i=setTimeout(()=>{const t=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,r]=it(o,()=>t);c.next(e.internalActions.subscriptionsUpdated(r)),o=t,i=null},500));const a="string"==typeof l.type&&!!l.type.startsWith(r),s=t.rejected.match(l)&&l.meta.condition&&!!l.meta.arg.subscribe;f=!a&&!s}return[f,!1]}};var Yw=({reducerPath:e,api:t,queryThunk:n,context:r,internalState:o,selectors:{selectQueryEntry:i,selectConfig:a}})=>{const{removeQueryResult:s,unsubscribeQueryResult:l,cacheEntriesUpserted:u}=t.internalActions,c=vt(l.match,n.fulfilled,n.rejected,u.match);function d(e){const t=o.currentSubscriptions[e];return!!t&&!function(e){for(const t in e)return!1;return!0}(t)}const f={};function p(e,t,n){const r=t.getState();for(const o of e){const e=i(r,o);h(o,e?.endpointName,t,n)}}function h(e,t,n,o){const i=r.endpointDefinitions[t],a=i?.keepUnusedData
1For??o.keepUnusedDataFor;if(a===1/0)return;const l=Math.max(0,Math.min(a,2147482.647));if(!d(e)){const t=f[e];t&&clearTimeout(t),f[e]=setTimeout(()=>{d(e)||n.dispatch(s({queryCacheKey:e})),delete f[e]},1e3*l)}}return(e,n,o)=>{const i=n.getState(),s=a(i);if(c(e)){let t;if(u.match(e))t=e.payload.map(e=>e.queryDescription.queryCacheKey);else{const{queryCacheKey:n}=l.match(e)?e.payload:e.meta.arg;t=[n]}p(t,n,s)}if(t.util.resetApiState.match(e))for(const[e,t]of Object.entries(f))t&&clearTimeout(t),delete f[e];if(r.hasRehydrationInfo(e)){const{queries:t}=r.extractRehydrationInfo(e);p(Object.keys(t),n,s)}}},Gw=new Error("Promise never resolved before cacheEntryRemoved."),Jw=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:o,internalState:i,selectors:{selectQueryEntry:a,selectApiState:s}})=>{const l=Tt(r),u=Tt(o),c=Ct(r,o),d={};function f(e,t,n){const r=d[e];r?.valueResolved&&(r.valueResolved({data:t,meta:n}),delete r.valueResolved)}function p(e){const t=d[e];t&&(delete d[e],t.cacheEntryRemoved())}function h(t,r,o,i,a){const s=n.endpointDefinitions[t],l=s?.onCacheEntryAdded;if(!l)return;const u={},c=new Promise(e=>{u.cacheEntryRemoved=e}),f=Promise.race([new Promise(e=>{u.valueResolved=e}),c.then(()=>{throw Gw})]);f.catch(()=>{}),d[o]=u;const p=e.endpoints[t].select(Sw(s)?r:o),h=i.dispatch((e,t,n)=>n),m={...i,getCacheEntry:()=>p(i.getState()),requestId:a,extra:h,updateCachedData:Sw(s)?n=>i.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:f,cacheEntryRemoved:c},g=l(r,m);Promise.resolve(g).catch(e=>{if(e!==Gw)throw e})}return(n,i,s)=>{const m=function(t){if(l(t))return t.meta.arg.queryCacheKey;if(u(t))return t.meta.arg.fixedCacheKey??t.meta.requestId;return e.internalActions.removeQueryResult.match(t)?t.payload.queryCacheKey:e.internalActions.removeMutationResult.match(t)?Dw(t.payload):""}(n);function g(e,t,n,r){const o=a(s,t),l=a(i.getState(),t);!o&&l&&h(e,r,t,i,n)}if(r.pending.match(n))g(n.meta.arg.endpointName,m,n.meta.requestId,n.meta.arg.originalArgs);else if(e.internalActions.cacheEntriesUpserted.match(n))for(const{queryDescription:e,value:t}of n.payload){const{endpointName:r,originalArgs:o,queryCacheKey:i}=e;g(r,i,n.meta.requestId,o),f(i,t,{})}else if(o.pending.match(n)){i.getState()[t].mutations[m]&&h(n.meta.arg.endpointName,n.meta.arg.originalArgs,m,i,n.meta.requestId)}else if(c(n))f(m,n.payload,n.meta.baseQueryMeta);else if(e.internalActions.removeQueryResult.match(n)||e.internalActions.removeMutationResult.match(n))p(m);else if(e.util.resetApiState.match(n))for(const e of Object.keys(d))p(e)}},Xw=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},Zw=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:o,api:i,assertTagType:a,refetchQuery:s,internalState:l})=>{const{removeQueryResult:u}=i.internalActions,c=vt(Ct(r),Et(r)),d=vt(Ct(r,o),_t(r,o));let f=[];function p(n,r){const o=r.getState(),a=o[e];if(f.push(...n),"delayed"===a.config.invalidationBehavior&&function(e){const{queries:t,mutations:n}=e;for(const e of[t,n])for(const t in e)if("pending"===e[t]?.status)return!0;return!1}(a))return;const c=f;if(f=[],0===c.length)return;const d=i.util.selectInvalidatedBy(o,c);t.batch(()=>{const e=Array.from(d.values());for(const{queryCacheKey:t}of e){const e=a.queries[t],n=l.currentSubscriptions[t]??{};e&&(0===lw(n)?r.dispatch(u({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(s(e)))}})}return(e,t)=>{c(e)?p(Rw(e,"invalidatesTags",n,a),t):d(e)?p([],t):i.util.invalidateTags.match(e)&&p(_w(e.payload,void 0,void 0,void 0,void 0,a),t)}},ex=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:o})=>{const i={};function a({queryCacheKey:t},n){const s=n.getState()[e],l=s.queries[t],c=o.currentSubscriptions[t];if(!l||"uninitialized"===l.status)return;const{lowestPollingInterval:d,skipPollingIfUnfocused:f}=u(c);if(!Number.isFinite(d))return;const p=i[t];p?.timeout&&(clearTimeout(p.timeout),p.timeout=void 0);const h=Date.now()+d;i[t]={nextPollTimestamp:h,pollingInterval:d,timeout:setTimeout(()=>{!s.config.focused&&f||n.dispatch(r(l)),a({queryCacheKey:t},n)},d)}}function s({queryCacheKey:t},n){const r=n.getState()[e].queries[t],s=o.currentSubscriptions[t];if(!r||"uninitialized"===r.status)return;const{lowestPollingInterval:c}=u(s);if(!Number.isFinite(c))return void l(t);const d=i[t],f=Date.now()+c;(!d||f<d.nextPollTimestamp)&&a({queryCacheKey:t},n)}function l(e){const t=i[e];t?.timeout&&clearTimeout(t.timeout),delete i[e]}function u(e={}){let t=!1,n=Number.POSITIVE_INFINITY;for(let r in e)e[r].pollingInterval&&(n=Math.min(e[r].pollingInterval,n),t=e[r].skipPollingIfUnfocused||t);return{lowestPollingInterval:n,skipPollingIfUnfocused:t}}return(e,r)=>{(n.internalActions.updateSubscriptionOptions.match(e)||n.internalActions.unsubscribeQueryResult.match(e))&&s(e.payload,r),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&s(e.meta.arg,r),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&a(e.meta.arg,r),n.util.resetApiState.match(e)&&function(){for(const e of Object.keys(i))l(e)}()}},tx=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const o=St(n,r),i=_t(n,r),a=Ct(n,r),s={};return(n,r)=>{if(o(n)){const{requestId:o,arg:{endpointName:i,originalArgs:a}}=n.meta,l=t.endpointDefinitions[i],u=l?.onQueryStarted;if(u){const t={}
1,n=new Promise((e,n)=>{t.resolve=e,t.reject=n});n.catch(()=>{}),s[o]=t;const c=e.endpoints[i].select(Sw(l)?a:o),d=r.dispatch((e,t,n)=>n),f={...r,getCacheEntry:()=>c(r.getState()),requestId:o,extra:d,updateCachedData:Sw(l)?t=>r.dispatch(e.util.updateQueryData(i,a,t)):void 0,queryFulfilled:n};u(a,f)}}else if(a(n)){const{requestId:e,baseQueryMeta:t}=n.meta;s[e]?.resolve({data:n.payload,meta:t}),delete s[e]}else if(i(n)){const{requestId:e,rejectedWithValue:t,baseQueryMeta:r}=n.meta;s[e]?.reject({error:n.payload??n.error,isUnhandledError:!t,meta:r}),delete s[e]}}};function nx(e){const{reducerPath:t,queryThunk:n,api:r,context:o}=e,{apiUid:i}=o,a={invalidateTags:ut(`${t}/invalidateTags`)},s=e=>e.type.startsWith(`${t}/`),l=[Xw,Yw,Zw,ex,Jw,tx];return{middleware:n=>{let a=!1;const c={...e,internalState:{currentSubscriptions:{}},refetchQuery:u,isThisApiSliceAction:s},d=l.map(e=>e(c)),f=Kw(c),p=(({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:o})=>{const{removeQueryResult:i}=n.internalActions;function a(n,a){const s=n.getState()[e],l=s.queries,u=o.currentSubscriptions;t.batch(()=>{for(const e of Object.keys(u)){const t=l[e],o=u[e];o&&t&&((Object.values(o).some(e=>!0===e[a])||Object.values(o).every(e=>void 0===e[a])&&s.config[a])&&(0===lw(o)?n.dispatch(i({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(r(t))))}})}return(e,t)=>{yw.match(e)&&a(t,"refetchOnFocus"),vw.match(e)&&a(t,"refetchOnReconnect")}})(c);return e=>l=>{if(!ue(l))return e(l);a||(a=!0,n.dispatch(r.internalActions.middlewareRegistered(i)));const u={...n,next:e},c=n.getState(),[h,m]=f(l,u,c);let g;if(g=h?e(l):m,n.getState()[t]&&(p(l,u,c),s(l)||o.hasRehydrationInfo(l)))for(const e of d)e(l,u,c);return g}},actions:a};function u(t){return e.api.endpoints[t.endpointName].initiate(t.originalArgs,{subscribe:!1,forceRefetch:!0})}}var rx=Symbol(),ox=({createSelector:e=tw}={})=>({name:rx,init(t,{baseQuery:n,tagTypes:r,reducerPath:o,serializeQueryArgs:i,keepUnusedDataFor:a,refetchOnMountOrArgChange:s,refetchOnFocus:l,refetchOnReconnect:u,invalidationBehavior:c,onSchemaFailure:d,catchSchemaFailure:f,skipSchemaValidation:p},h){nt();const m=e=>e;Object.assign(t,{reducerPath:o,endpoints:{},internalActions:{onOnline:vw,onOffline:ww,onFocus:yw,onFocusLost:bw},util:{}});const g=function({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>qw,o=e=>Hw;return{buildQuerySelector:function(e,t){return u(e,t,i)},buildInfiniteQuerySelector:function(e,t){const{infiniteQueryOptions:n}=t;return u(e,t,function(e){const t={...e,...iw(e.status)},{isLoading:r,isError:o,direction:i}=t,a="forward"===i,s="backward"===i;return{...t,hasNextPage:c(n,t.data,t.originalArgs),hasPreviousPage:d(n,t.data,t.originalArgs),isFetchingNextPage:r&&a,isFetchingPreviousPage:r&&s,isFetchNextPageError:o&&a,isFetchPreviousPageError:o&&s}})},buildMutationSelector:function(){return e=>{let t;return t="object"==typeof e?Dw(e)??Bw:e,n(t===Bw?o:e=>a(e)?.mutations?.[t]??Hw,i)}},selectInvalidatedBy:function(e,n){const r=e[t],o=new Set;for(const e of n.filter(cw).map(Ew)){const t=r.provided.tags[e.type];if(!t)continue;let n=(void 0!==e.id?t[e.id]:uw(Object.values(t)))??[];for(const e of n)o.add(e)}return uw(Array.from(o.values()).map(e=>{const t=r.queries[e];return t?[{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}]:[]}))},selectCachedArgsForQuery:function(e,t){return Object.values(s(e)).filter(e=>e?.endpointName===t&&"uninitialized"!==e.status).map(e=>e.originalArgs)},selectApiState:a,selectQueries:s,selectMutations:function(e){return a(e)?.mutations},selectQueryEntry:l,selectConfig:function(e){return a(e)?.config}};function i(e){return{...e,...iw(e.status)}}function a(e){return e[t]}function s(e){return a(e)?.queries}function l(e,t){return s(e)?.[t]}function u(t,o,i){return a=>{if(a===Bw)return n(r,i);const s=e({queryArgs:a,endpointDefinition:o,endpointName:t});return n(e=>l(e,s)??qw,i)}}function c(e,t,n){return!!t&&null!=Aw(e,t,n)}function d(e,t,n){return!(!t||!e.getPreviousPageParam)&&null!=Nw(e,t,n)}}({serializeQueryArgs:i,reducerPath:o,createSelector:e}),{selectInvalidatedBy:y,selectCachedArgsForQuery:b,buildQuerySelector:v,buildInfiniteQuerySelector:w,buildMutationSelector:x}=g;Qw(t.util,{selectInvalidatedBy:y,selectCachedArgsForQuery:b});const{queryThunk:k,infiniteQueryThunk:S,mutationThunk:_,patchQueryData:E,updateQueryData:C,upsertQueryData:T,prefetch:O,buildMatchThunkActions:P}=function({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:o,assertTagType:i,selectors:a,onSchemaFailure:s,catchSchemaFailure:l,skipSchemaValidation:u}){function c(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}function d(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}const f=(e,t)=>e.query&&e[t]?e[t]:Iw,p=async(e,{signal:r,abort:o,rejectWithValue:i,fulfillWithValue:p,dispatch:m,getState:g,extra:y})=>{const b=n[e.endpointName],{metaSchema:v,skipSchemaValidation:w=u}=b;try{let x=f(b,"transformResponse");const k={signal:r,abort:o,dispatch:m,getState:g,extra:y,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?h(e,g()):void 0,queryCacheKey:"query"===e.type?e.queryCacheKey:void 0},S="query"===e.type?e[Cw]:void 0;let _;const E=async(t,n,r,o)=>{if(null==n&&t.pages.length)return Promise.resolve({data:t});const i={queryArg:e.originalArgs,pageParam:n},a=await C(i),s=o?c:d;return{data:{pages:s(t.pages,a.data,r),pageParams:s(t.pageParams,n,r)},meta:a.meta}};async function C(e){let n;const{extraOptions:r,argSchema:o,rawResponseSchema:i,responseSchema:a}=b;if(o&&!w&&(e=await Pw(o,e,"argSchema",{})),n=S?S():b.query?await t(b.query(e),k,r):await b.queryFn(e,k,r,e=>t(e,k,r)),n.error)throw new gw(n.error,n.meta);let{data:s}=n;i&&!w&&(s=await Pw(i,n.data,"rawResponseSchema",n.meta));let l=await x(s,n.meta,e);return a&&!w&&(l=await Pw(a,l,"responseSchema",n.meta)),{...n,data:l}}if("query"===e.type&&"infiniteQueryOptions"in b){const{infiniteQueryOptions:T}=b,{maxPages:O=1/0}=T;let P;const I={pages:[],pageParams:[]},j=a.selectQueryEntry(g(),e.queryCacheKey)?.data,A=h(e,g())&&!e.direction||!j?I:j;if("direction"in e&&e.direction&&A.pages.length){const N="backward"===e.direction,R=(N?Nw:Aw)(T,A,e.originalArgs);P=await E(A,R,O,N)}else{const{initialPageParam:M=T.initialPageParam}=e,D=j?.pageParams??[],z=D[0]??M,L=D.length;P=await E(A,z,O),S&&(P={data:P.data.pages[0]});for(let F=1;F<L;F++){const B=Aw(T,P.data,e.originalArgs);P=await E(P.data,B,O)}}_=P}else _=await C(e.originalArgs);return v&&!w&&_.meta&&(_.meta=await Pw(v,_.meta,"metaSchema",_.meta)),p(_.data,jw({fulfilledTimeStamp:Date.now(),baseQueryMeta:_.meta}))}catch(U){let q=U;if(q instanceof gw){let H=f(b,"transformErrorResponse");const{rawErrorResponseSchema:$,errorResponseSchema:V}=b;let{value:W,meta:Q}=q;try{$&&!w&&(W=await Pw($,W,"rawErrorResponseSchema",Q)),v&&!w&&(Q=await Pw(v,Q,"metaSchema",Q));let K=await H(W,Q,e.originalArgs);return V&&!w&&(K=await Pw(V,K,"errorResponseSchema",Q)),i(K,jw({baseQueryMeta:Q}))}catch(Y){q=Y}}
1try{if(q instanceof Ow){const G={endpoint:e.endpointName,arg:e.originalArgs,type:e.type,queryCacheKey:"query"===e.type?e.queryCacheKey:void 0};b.onSchemaFailure?.(q,G),s?.(q,G);const{catchSchemaFailure:J=l}=b;if(J)return i(J(q,G),jw({baseQueryMeta:q._bqMeta}))}}catch(X){q=X}throw console.error(q),q}};function h(e,t){const n=a.selectQueryEntry(t,e.queryCacheKey),r=a.selectConfig(t).refetchOnMountOrArgChange,o=n?.fulfilledTimeStamp,i=e.forceRefetch??(e.subscribe&&r);return!!i&&(!0===i||(Number(new Date)-Number(o))/1e3>=i)}const m=()=>{const t=Rt(`${e}/executeQuery`,p,{getPendingMeta({arg:e}){const t=n[e.endpointName];return jw({startedTimeStamp:Date.now(),...kw(t)?{direction:e.direction}:{}})},condition(e,{getState:t}){const r=t(),o=a.selectQueryEntry(r,e.queryCacheKey),i=o?.fulfilledTimeStamp,s=e.originalArgs,l=o?.originalArgs,u=n[e.endpointName],c=e.direction;return!(!Tw(e)&&("pending"===o?.status||!h(e,r)&&(!xw(u)||!u?.forceRefetch?.({currentArg:s,previousArg:l,endpointState:o,state:r}))&&i&&!c))},dispatchConditionRejection:!0});return t},g=m(),y=m(),b=Rt(`${e}/executeMutation`,p,{getPendingMeta:()=>jw({startedTimeStamp:Date.now()})});function v(e){return t=>t?.meta?.arg?.endpointName===e}return{queryThunk:g,mutationThunk:b,infiniteQueryThunk:y,prefetch:(e,t,n)=>(r,i)=>{const a=(e=>"force"in e)(n)&&n.force,s=(e=>"ifOlderThan"in e)(n)&&n.ifOlderThan,l=(n=!0)=>{const r={forceRefetch:n,isPrefetch:!0};return o.endpoints[e].initiate(t,r)},u=o.endpoints[e].select(t)(i());if(a)r(l());else if(s){const e=u?.fulfilledTimeStamp;if(!e)return void r(l());(Number(new Date)-Number(new Date(e)))/1e3>=s&&r(l())}else r(l(!1))},updateQueryData:(e,t,n,r=!0)=>(i,a)=>{const s=o.endpoints[e].select(t)(a()),l={patches:[],inversePatches:[],undo:()=>i(o.util.patchQueryData(e,t,l.inversePatches,r))};if("uninitialized"===s.status)return l;let u;if("data"in s)if(ve(s.data)){const[e,t,r]=it(s.data,n);l.patches.push(...t),l.inversePatches.push(...r),u=e}else u=n(s.data),l.patches.push({op:"replace",path:[],value:u}),l.inversePatches.push({op:"replace",path:[],value:s.data});return 0===l.patches.length||i(o.util.patchQueryData(e,t,l.patches,r)),l},upsertQueryData:(e,t,n)=>r=>r(o.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[Cw]:()=>({data:n})})),patchQueryData:(e,t,a,s)=>(l,u)=>{const c=n[e],d=r({queryArgs:t,endpointDefinition:c,endpointName:e});if(l(o.internalActions.queryResultPatched({queryCacheKey:d,patches:a})),!s)return;const f=o.endpoints[e].select(t)(u()),p=_w(c.providesTags,f.data,void 0,t,{},i);l(o.internalActions.updateProvidedBy([{queryCacheKey:d,providedTags:p}]))},buildMatchThunkActions:function(e,t){return{matchPending:wt(St(e),v(t)),matchFulfilled:wt(Ct(e),v(t)),matchRejected:wt(_t(e),v(t))}}}}({baseQuery:n,reducerPath:o,context:h,api:t,serializeQueryArgs:i,assertTagType:m,selectors:g,onSchemaFailure:d,catchSchemaFailure:f,skipSchemaValidation:p}),{reducer:I,actions:j}=Fw({context:h,queryThunk:k,infiniteQueryThunk:S,mutationThunk:_,serializeQueryArgs:i,reducerPath:o,assertTagType:m,config:{refetchOnFocus:l,refetchOnReconnect:u,refetchOnMountOrArgChange:s,keepUnusedDataFor:a,reducerPath:o,invalidationBehavior:c}});Qw(t.util,{patchQueryData:E,updateQueryData:C,upsertQueryData:T,prefetch:O,resetApiState:j.resetApiState,upsertQueryEntries:j.cacheEntriesUpserted}),Qw(t.internalActions,j);const{middleware:A,actions:N}=nx({reducerPath:o,context:h,queryThunk:k,mutationThunk:_,infiniteQueryThunk:S,api:t,assertTagType:m,selectors:g});Qw(t.util,N),Qw(t,{reducer:I,middleware:A});const{buildInitiateQuery:R,buildInitiateInfiniteQuery:M,buildInitiateMutation:D,getRunningMutationThunk:z,getRunningMutationsThunk:L,getRunningQueriesThunk:F,getRunningQueryThunk:B}=function({serializeQueryArgs:e,queryThunk:t,infiniteQueryThunk:n,mutationThunk:r,api:o,context:i}){const a=new Map,s=new Map,{unsubscribeQueryResult:l,removeMutationResult:u,updateSubscriptionOptions:c}=o.internalActions;return{buildInitiateQuery:function(e,t){return f(e,t)},buildInitiateInfiniteQuery:function(e,t){return f(e,t)},buildInitiateMutation:function(e){return(t,{track:n=!0,fixedCacheKey:o}={})=>(i,a)=>{const l=r({type:"mutation",endpointName:e,originalArgs:t,track:n,fixedCacheKey:o}),c=i(l);d(i);const{requestId:f,abort:p,unwrap:h}=c,m=(g=e=>({error:e}),c.unwrap().then(e=>({data:e})).catch(g));var g;const y=Object.assign(m,{arg:c.arg,requestId:f,abort:p,unwrap:h,reset:()=>{i(u({requestId:f,fixedCacheKey:o}))}}),b=s.get(i)||{};return s.set(i,b),b[f]=y,y.then(()=>{delete b[f],lw(b)||s.delete(i)}),o&&(b[o]=y,y.then(()=>{b[o]===y&&(delete b[o],lw(b)||s.delete(i))})),y}},getRunningQueryThunk:function(t,n){return r=>{const o=i.endpointDefinitions[t],s=e({queryArgs:n,endpointDefinition:o,endpointName:t});return a.get(r)?.[s]}},getRunningMutationThunk:function(e,t){return e=>s.get(e)?.[t]},getRunningQueriesThunk:function(){return e=>Object.values(a.get(e)||{}).filter(cw)},getRunningMutationsThunk:function(){return e=>Object.values(s.get(e)||{}).filter(cw)}};function d(e){}function f(r,i){const s=(u,{subscribe:f=!0,forceRefetch:p,subscriptionOptions:h,[Cw]:m,...g}={})=>(y,b)=>{const v=e({queryArgs:u,endpointDefinition:i,endpointName:r});let w;const x={...g,type:"query",subscribe:f,forceRefetch:p,subscriptionOptions:h,endpointName:r,originalArgs:u,queryCacheKey:v,[Cw]:m};if(xw(i))w=t(x);else{const{direction:e,initialPageParam:t}=g;w=n({...x,direction:e,initialPageParam:t})}const k=o.endpoints[r].select(u),S=y(w),_=k(b());d();const{requestId:E,abort:C}=S,T=_.requestId!==E,O=a.get(y)?.[v],P=()=>k(b()),I=Object.assign(m?S.then(P):T&&!O?Promise.resolve(_):Promise.all([O,S]).then(P),{arg:u,requestId:E,subscriptionOptions:h,queryCacheKey:v,abort:C,async unwrap(){const e=await I;if(e.isError)throw e.error;return e.data},refetch:()=>y(s(u,{subscribe:!1,forceRefetch:!0})),unsubscribe(){f&&y(l({queryCacheKey:v,requestId:E}))},updateSubscriptionOptions(e){I.subscriptionOptions=e,y(c({endpointName:r,requestId:E,queryCacheKey:v,options:e}))}});if(!O&&!T&&!m){const e=function(e,t,n){return e.has(t)?e.get(t):e.set(t,n).get(t)}(a,y,{});e[v]=I,I.then(()=>{delete e[v],lw(e)||a.delete(y)})}return I};return s}}({queryThunk:k,mutationThunk:_,infiniteQueryThunk:S,api:t,serializeQueryArgs:i,context:h});return Qw(t.util,{getRunningMutationThunk:z,getRunningMutationsThunk:L,getRunningQueryThunk:B,getRunningQueriesThunk:F}),{name:rx,injectEndpoint(e,n){const r=t,o=r.endpoints[e]??={};xw(n)&&Qw(o,{name:e,select:v(e,n),initiate:R(e,n)},P(k,e)),"mutation"===n.type&&Qw(o,{name:e,select:x(),initiate:D(e)},P(_,e)),kw(n)&&Qw(o,{name:e,select:w(e,n),initiate:M(e,n)},P(k,e))}}}});ox();function ix(e){return e.replace(e[0],e[0].toUpperCase())}function ax(e){return"infinitequery"===e.type}function sx(e,...t){return Object.assign(e,...t)}var lx=Symbol();function ux(e,t,n,r){const o=(0,i.useMemo)(()=>({queryArgs:e,serialized:"object"==typeof e?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e}),[e,t,n,r]),a=(0,i.useRef)(o);return(0,i.useEffect)(()=>{a.current.serialized!==o.serialized&&(a.current=o)},[o]),a.current.serialized===o.serialized?a.current.queryArgs:e}function cx(e){const t=(0,i.useRef)(e);return(0,i.useEffect)(()=>{F(t.current,e)||(t.current=e)},[e]),F(t.current,e)?t.current:e}var dx=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),fx=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),px=(()=>dx||fx?i.useLayoutEffect:i.useEffect)(),hx=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:ow.pending}:e;function mx(e,...t){const n={};return t.forEach(t=>{n[t]=e[t]}),n}var gx=["data","status","isLoading","isSuccess","isError","error"];var yx=Symbol();var bx=Ww(ox(),(({batch:e=ee,hooks:t={useDispatch:G,useSelector:Z,useStore:K},createSelector:n=tw,unstable__sideEffectsInRender:r=!1,...o}={})=>({name:yx,init(o,{serializeQueryArgs:a},s){const l=o,{buildQueryHooks:u,buildInfiniteQueryHooks:c,buildMutationHook:d,usePrefetch:f}=function({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:r,useStore:o},unstable__sideEffectsInRender:a,createSelector:s},serializeQueryArgs:l,context:u}){const c=a?e=>e():i.useEffect;return{buildQueryHooks:function(r){const o=(e,t={})=>{const[n]=p(r,e,t);return m(n),(0,i.useMemo)(()=>({refetch:()=>g(n)}),[n])},a=({refetchOnReconnect:o,refetchOnFocus:a,pollingInterval:s=0,skipPollingIfUnfocused:l=!1}={})=>{const{initiate:u}=e.endpoints[r],d=n(),[f,p]=(0,i.useState)(lx),h=(0,i.useRef)(void 0),m=cx({refetchOnReconnect:o,refetchOnFocus:a,pollingInterval:s,skipPollingIfUnfocused:l});c(()=>{const e=h.current?.subscriptionOptions;m!==e&&h.current?.updateSubscriptionOptions(m)},[m]);const g=(0,i.useRef)(m);c(()=>{g.current=m},[m]);const y=(0,i.useCallback)(function(e,n=!1){let r;return t(()=>{h.current?.unsubscribe(),h.current=r=d(u(e,{subscriptionOptions:g.current,forceRefetch:!n})),p(e)}),r},[d,u]),b=(0,i.useCallback)(()=>{h.current?.queryCacheKey&&d(e.internalActions.removeQueryResult({queryCacheKey:h.current?.queryCacheKey}
1))},[d]);return(0,i.useEffect)(()=>()=>{h?.current?.unsubscribe()},[]),(0,i.useEffect)(()=>{f===lx||h.current||y(f,!0)},[f,y]),(0,i.useMemo)(()=>[y,f,{reset:b}],[y,f,b])},s=h(r,d);return{useQueryState:s,useQuerySubscription:o,useLazyQuerySubscription:a,useLazyQuery(e){const[t,n,{reset:r}]=a(e),o=s(n,{...e,skip:n===lx}),l=(0,i.useMemo)(()=>({lastArg:n}),[n]);return(0,i.useMemo)(()=>[t,{...o,reset:r},l],[t,o,r,l])},useQuery(e,t){const n=o(e,t),r=s(e,{selectFromResult:e===Bw||t?.skip?void 0:hx,...t}),a=mx(r,...gx);return(0,i.useDebugValue)(a),(0,i.useMemo)(()=>({...r,...n}),[r,n])}}},buildInfiniteQueryHooks:function(e){const n=(n,r={})=>{const[o,a,s,l]=p(e,n,r),d=(0,i.useRef)(l);c(()=>{d.current=l},[l]);const f=(0,i.useCallback)(function(e,n){let r;return t(()=>{o.current?.unsubscribe(),o.current=r=a(s(e,{subscriptionOptions:d.current,direction:n}))}),r},[o,a,s]);m(o);const h=ux(r.skip?Bw:n,Vw,u.endpointDefinitions[e],e),y=(0,i.useCallback)(()=>g(o),[o]);return(0,i.useMemo)(()=>({trigger:f,refetch:y,fetchNextPage:()=>f(h,"forward"),fetchPreviousPage:()=>f(h,"backward")}),[y,f,h])},r=h(e,f);return{useInfiniteQueryState:r,useInfiniteQuerySubscription:n,useInfiniteQuery(e,t){const{refetch:o,fetchNextPage:a,fetchPreviousPage:s}=n(e,t),l=r(e,{selectFromResult:e===Bw||t?.skip?void 0:hx,...t}),u=mx(l,...gx,"hasNextPage","hasPreviousPage");return(0,i.useDebugValue)(u),(0,i.useMemo)(()=>({...l,fetchNextPage:a,fetchPreviousPage:s,refetch:o}),[l,a,s,o])}}},buildMutationHook:function(o){return({selectFromResult:a,fixedCacheKey:l}={})=>{const{select:u,initiate:c}=e.endpoints[o],d=n(),[f,p]=(0,i.useState)();(0,i.useEffect)(()=>()=>{f?.arg.fixedCacheKey||f?.reset()},[f]);const h=(0,i.useCallback)(function(e){const t=d(c(e,{fixedCacheKey:l}));return p(t),t},[d,c,l]),{requestId:m}=f||{},g=(0,i.useMemo)(()=>u({fixedCacheKey:l,requestId:f?.requestId}),[l,f,u]),y=(0,i.useMemo)(()=>a?s([g],a):g,[a,g]),b=r(y,F),v=null==l?f?.arg.originalArgs:void 0,w=(0,i.useCallback)(()=>{t(()=>{f&&p(void 0),l&&d(e.internalActions.removeMutationResult({requestId:m,fixedCacheKey:l}))})},[d,l,f,m]),x=mx(b,...gx,"endpointName");(0,i.useDebugValue)(x);const k=(0,i.useMemo)(()=>({...b,originalArgs:v,reset:w}),[b,v,w]);return(0,i.useMemo)(()=>[h,k],[h,k])}},usePrefetch:function(t,r){const o=n(),a=cx(r);return(0,i.useCallback)((n,r)=>o(e.util.prefetch(t,n,{...a,...r})),[t,o,a])}};function d(e,t,n){if(t?.endpointName&&e.isUninitialized){const{endpointName:e}=t,r=u.endpointDefinitions[e];n!==Bw&&l({queryArgs:t.originalArgs,endpointDefinition:r,endpointName:e})===l({queryArgs:n,endpointDefinition:r,endpointName:e})&&(t=void 0)}let r=e.isSuccess?e.data:t?.data;void 0===r&&(r=e.data);const o=void 0!==r,i=e.isLoading,a=(!t||t.isLoading||t.isUninitialized)&&!o&&i,s=e.isSuccess||o&&(i&&!t?.isError||e.isUninitialized);return{...e,data:r,currentData:e.data,isFetching:i,isLoading:a,isSuccess:s}}function f(e,t,n){if(t?.endpointName&&e.isUninitialized){const{endpointName:e}=t,r=u.endpointDefinitions[e];n!==Bw&&l({queryArgs:t.originalArgs,endpointDefinition:r,endpointName:e})===l({queryArgs:n,endpointDefinition:r,endpointName:e})&&(t=void 0)}let r=e.isSuccess?e.data:t?.data;void 0===r&&(r=e.data);const o=void 0!==r,i=e.isLoading,a=(!t||t.isLoading||t.isUninitialized)&&!o&&i,s=e.isSuccess||i&&o;return{...e,data:r,currentData:e.data,isFetching:i,isLoading:a,isSuccess:s}}function p(t,r,{refetchOnReconnect:o,refetchOnFocus:a,refetchOnMountOrArgChange:s,skip:l=!1,pollingInterval:d=0,skipPollingIfUnfocused:f=!1,...p}={}){const{initiate:h}=e.endpoints[t],m=n(),g=(0,i.useRef)(void 0);if(!g.current){const t=m(e.internalActions.internal_getRTKQSubscriptions());g.current=t}const y=ux(l?Bw:r,Vw,u.endpointDefinitions[t],t),b=cx({refetchOnReconnect:o,refetchOnFocus:a,pollingInterval:d,skipPollingIfUnfocused:f}),v=cx(p.initialPageParam),w=(0,i.useRef)(void 0);let{queryCacheKey:x,requestId:k}=w.current||{},S=!1;x&&k&&(S=g.current.isRequestSubscribed(x,k));const _=!S&&void 0!==w.current;return c(()=>{_&&(w.current=void 0)},[_]),c(()=>{const e=w.current;if(y===Bw)return e?.unsubscribe(),void(w.current=void 0);const n=w.current?.subscriptionOptions;if(e&&e.arg===y)b!==n&&e.updateSubscriptionOptions(b);else{e?.unsubscribe();const n=m(h(y,{subscriptionOptions:b,forceRefetch:s,...ax(u.endpointDefinitions[t])?{initialPageParam:v}:{}}));w.current=n}},[m,h,s,y,b,_,v,t]),[w,m,h,b]}function h(t,n){return(a,{skip:c=!1,selectFromResult:d}={})=>{const{select:f}=e.endpoints[t],p=ux(c?Bw:a,l,u.endpointDefinitions[t],t),h=(0,i.useRef)(void 0),m=(0,i.useMemo)(()=>s([f(p),(e,t)=>t,e=>p],n,{memoizeOptions:{resultEqualityCheck:F}}),[f,p]),g=(0,i.useMemo)(()=>d?s([m],d,{devModeChecks:{identityFunctionCheck:"never"}}):m,[m,d]),y=r(e=>g(e,h.current),F),b=o(),v=m(b.getState(),h.current);return px(()=>{h.current=v},[v]),y}}function m(e){(0,i.useEffect)(()=>()=>{e.current?.unsubscribe?.(),e.current=void 0},[e])}function g(e){if(!e.current)throw new Error(Ht(38));return e.current.refetch()}}({api:o,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:r,createSelector:n},serializeQueryArgs:a,context:s});return sx(l,{usePrefetch:f}),sx(s,{batch:e}),{injectEndpoint(e,t){if("query"===t.type){const{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:i,useQuerySubscription:a}=u(e);sx(l.endpoints[e],{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:i,useQuerySubscription:a}),o[`use${ix(e)}Query`]=t,o[`useLazy${ix(e)}Query`]=n}if(function(e){return"mutation"===e.type}(t)){const t=d(e);sx(l.endpoints[e],{useMutation:t}),o[`use${ix(e)}Mutation`]=t}else if(ax(t)){const{useInfiniteQuery:t,useInfiniteQuerySubscription:n,useInfiniteQueryState:r}=c(e);sx(l.endpoints[e],{useInfiniteQuery:t,useInfiniteQuerySubscription:n,useInfiniteQueryState:r}),o[`use${ix(e)}InfiniteQuery`]=t}}}}}))()),vx=bx({reducerPath:"feedbackApi",baseQuery:function({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:n=fw,paramsSerializer:r,isJsonContentType:o=hw,jsonContentType:i="application/json",jsonReplacer:a,timeout:s,responseHandler:l,validateStatus:u,...c}={}){return"undefined"==typeof fetch&&n===fw&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(f,p,h)=>{const{getState:m,extra:g,endpoint:y,forced:b,type:v}=p;let w,x,{url:k,headers:S=new Headers(c.headers),params:_,responseHandler:E=l??"json",validateStatus:C=u??pw,timeout:T=s,...O}="string"==typeof f?{url:f}:f,P=p.signal;T&&(x=new AbortController,p.signal.addEventListener("abort",x.abort),P=x.signal);let I={...c,signal:P,...O};S=new Headers(mw(S)),I.headers=await t(S,{getState:m,arg:f,extra:g,endpoint:y,forced:b,type:v,extraOptions:h})||S;const j=e=>"object"==typeof e&&(ie(e)||Array.isArray(e)||"function"==typeof e.toJSON);if(!I.headers.has("content-type")&&j(I.body)&&I.headers.set("content-type",i),j(I.body)&&o(I.headers)&&(I.body=JSON.stringify(I.body,a)),_){const e=~k.indexOf("?")?"&":"?";k+=e+(r?r(_):new URLSearchParams(mw(_)))}k=dw(e,k);
1const A=new Request(k,I);w={request:new Request(k,I)};let N,R=!1,M=x&&setTimeout(()=>{R=!0,x.abort()},T);try{N=await n(A)}catch(e){return{error:{status:R?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:w}}finally{M&&clearTimeout(M),x?.signal.removeEventListener("abort",x.abort)}const D=N.clone();let z;w.response=D;let L="";try{let e;if(await Promise.all([d(N,E).then(e=>z=e,t=>e=t),D.text().then(e=>L=e,()=>{})]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:N.status,data:L,error:String(e)},meta:w}}return C(N,z)?{data:z,meta:w}:{error:{status:N.status,data:z},meta:w}};async function d(e,t){if("function"==typeof t)return t(e);if("content-type"===t&&(t=o(e.headers)?"json":"text"),"json"===t){const t=await e.text();return t.length?JSON.parse(t):null}return e.text()}}({baseUrl:"/apps/public-websearch-chatbot-client/api/v1"}),tagTypes:["Feedback"],endpoints:function(e){return{submitFeedback:e.mutation({query:function(e){return{url:"feedback",method:"POST",body:e}},invalidatesTags:["Feedback"]})}}}),wx=vx.useSubmitFeedbackMutation;function xx(e){return xx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xx(e)}function kx(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,u=Object.create(l.prototype);return Sx(u,"_invoke",function(n,r,o){var i,s,l,u=0,c=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,f.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,i=c[t],p=f.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,f.v=r,f.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,f.n=h,s=0))}if(o||n>1)return a;throw d=!0,r}return function(o,c,h){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,h),s=c,l=h;(t=s<2?e:l)||!d;){i||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(u=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==a)break}catch(t){i=e,s=1,l=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function s(){}function l(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(Sx(t={},r,function(){return this}),t),d=u.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Sx(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=u,Sx(d,"constructor",u),Sx(u,"constructor",l),l.displayName="GeneratorFunction",Sx(u,o,"GeneratorFunction"),Sx(d),Sx(d,o,"Generator"),Sx(d,r,function(){return this}),Sx(d,"toString",function(){return"[object Generator]"}),(kx=function(){return{w:i,m:f}})()}function Sx(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Sx=function(e,t,n,r){function i(t,n){Sx(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Sx(e,t,n,r)}function _x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ex(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_x(Object(n),!0).forEach(function(t){Cx(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_x(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Cx(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=xx(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=xx(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==xx(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tx(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Ox(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Tx(i,r,o,a,s,"next",e)}function s(e){Tx(i,r,o,a,s,"throw",e)}a(void 0)})}}function Px(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}
1finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ix(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ix(e,t):void 0}}(e,t)||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 Ix(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var jx=function(e){var t,n,r,o,a=e.messageId,s=e.disabled,l=void 0!==s&&s,u=du(),c=Px(wx(),2),d=c[0],f=c[1].isLoading,p=en(),h=p.startFeedback,m=p.submitFeedbackSuccess,g=p.resetFeedback,v=p.setFeedbackText,w=p.isActive,x=p.feedbackType,S=p.messageId,_=p.showForm,E=p.isSubmitted,C=p.feedbackChatId,T=p.feedbackText,O=null==u||null===(t=u.metadata)||void 0===t||null===(t=t.custom)||void 0===t||null===(t=t.feedbackState)||void 0===t?void 0:t.selected,P=null==u||null===(n=u.metadata)||void 0===n||null===(n=n.custom)||void 0===n||null===(n=n.feedbackState)||void 0===n?void 0:n.completed,I=null==u||null===(r=u.metadata)||void 0===r||null===(r=r.custom)||void 0===r||null===(r=r.feedbackState)||void 0===r?void 0:r.feedbackText,j=null==u||null===(o=u.metadata)||void 0===o||null===(o=o.custom)||void 0===o?void 0:o.sessionId,A=w&&S===a,N=O||(A?x:null),R=A&&_&&!E&&u.isLast,M=E&&A||I&&null!==O,D=E&&A?T:I;(0,i.useEffect)(function(){var e;if(!w){var t=Ar.loadFeedbackFormState();if(t)if(t.messageId===a)!0!==(null==u||null===(e=u.metadata)||void 0===e||null===(e=e.custom)||void 0===e||null===(e=e.feedbackState)||void 0===e?void 0:e.completed)?h(t.messageId,t.feedbackType,t.feedbackChatId):Ar.clearFeedbackFormState()}},[]),(0,i.useEffect)(function(){A&&!u.isLast&&(g(),Ar.clearFeedbackChatId(),Ar.clearFeedbackFormState())},[A,u.isLast,g]);var z=(0,i.useCallback)(function(){var e=Ox(kx().m(function e(t){var n,r,o,i,s,c,p;return kx().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!l&&!f){e.n=1;break}return e.a(2);case 1:if(!0!==P){e.n=2;break}return e.a(2);case 2:if(!w||S===a||E){e.n=3;break}return e.a(2);case 3:if(A){e.n=7;break}if(!j||!O||P){e.n=4;break}n=j,Ar.saveFeedbackChatId(j),e.n=6;break;case 4:if(r=Ar.getCurrentSessionId()){e.n=5;break}return console.error("No session ID available"),e.a(2);case 5:Ar.saveFeedbackChatId(r),n=r,Ar.clearSession();case 6:e.n=9;break;case 7:if(o=C||Ar.getFeedbackChatId()){e.n=8;break}return console.error("No saved feedback chat ID available"),e.a(2);case 8:n=o;case 9:return e.p=9,e.n=10,d({chatId:n,message:"",result:t}).unwrap();case 10:try{i=u.metadata||{},s=i.custom||{},c=Ex(Ex({},i),{},{custom:Ex(Ex({},s),{},{sessionId:n,feedbackState:{selected:t,completed:!1,messageId:a}})}),Object.assign(u.metadata,c)}catch(e){console.error("Failed to update metadata:",e)}h(a,t,n),Ar.saveFeedbackFormState(a,t,n),e.n=12;break;case 11:e.p=11,p=e.v,console.error("Failed to submit feedback:",p);case 12:return e.a(2)}},e,null,[[9,11]])}));return function(t){return e.apply(this,arguments)}}(),[l,f,P,j,O,w,S,a,A,C,d,h,u,E]),L=(0,i.useCallback)(function(){var e=Ox(kx().m(function e(t){var n,r,o,i,s;return kx().w(function(e){for(;;)switch(e.p=e.n){case 0:if(n=C||Ar.getFeedbackChatId()){e.n=1;break}throw new Error("No feedback chat ID available");case 1:if(x){e.n=2;break}throw new Error("No feedback type selected");case 2:return e.p=2,e.n=3,d({chatId:n,message:t,result:x}).unwrap();case 3:v(t),m();try{r=u.metadata||{},o=r.custom||{},i=Ex(Ex({},r),{},{custom:Ex(Ex({},o),{},{sessionId:n,feedbackState:{selected:x,completed:!0,messageId:a,feedbackText:t,submittedAt:Date.now()}})}),Object.assign(u.metadata,i)}catch(e){console.error("Failed to update metadata:",e)}Ar.clearFeedbackChatId(),Ar.clearFeedbackFormState(),e.n=5;break;case 4:throw e.p=4,s=e.v,console.error("Failed to submit feedback text:",s),s;case 5:return e.a(2)}},e,null,[[2,4]])}));return function(t){return e.apply(this,arguments)}}(),[C,x,d,v,m,u,a]);return a?(0,Gr.jsxs)("div",{className:"feedback-buttons-container w-full",children:[(0,Gr.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Gr.jsx)(Bv,{type:y,isSelected:N===y,isDisabled:l||!0===P,isLoading:f&&N===y&&!E,onClick:function(){return z(y)},children:k[y]}),(0,Gr.jsx)(Bv,{type:b,isSelected:N===b,isDisabled:l||!0===P,isLoading:f&&N===b&&!E,onClick:function(){return z(b)},children:k[b]})]}),R&&x&&(0,Gr.jsx)(Wv,{messageId:a,feedbackType:x,onSubmit:L}),M&&D&&(0,Gr.jsx)(Qv,{feedbackText:D})]}):null},Ax=function(e){var t;return(null==e||null===(t=e.metadata)||void 0===t||null===(t=t.custom)||void 0===t?void 0:t.feedbackState)||null},Nx=function(e){var t=Ax(e);return void 0!==(null==t?void 0:t.selected)},Rx=function(e){return(null==e?void 0:e.role)===w&&(!0===e.isLast&&!function(e){var t=Ax(e);return!0===(null==t?void 0:t.completed)}(e))},Mx=function(e){var t=e.disabled,n=void 0!==t&&t,r=e.className,o=du(),i=en().messageId;if(!function(e,t){var n,r,o,i,a;if((null==e?void 0:e.role)!==w)return!1;if(!0===(null==e||null===(n=e.metadata)||void 0===n||null===(n=n.custom)||void 0===n?void 0:n.isThankYouMessage))return!1;if(null!=e&&null!==(r=e.metadata)&&void 0!==r&&null!==(r=r.custom)&&void 0!==r&&r.feedbackIntercepted)return!1;if(null!=e&&null!==(o=e.status)&&void 0!==o&&o.error||"error"===(null==e||null===(i=e.status)||void 0===i?void 0:i.reason))return!1;if(Nx(e)||t&&e.id===t)return!0;var s=null==e||null===(a=e.metadata)||void 0===a||null===(a=a.custom)||void 0===a?void 0:a.sessionId,l=Ar.getCurrentSessionId();return!(s&&l&&s!==l||!0!==e.isLast)}(o,null!=i?i:void 0))return null;var a=Rx(o),s=void 0!==o.submittedFeedback;return Nx(o)?(0,Gr.jsx)("div",{className:r,children:(0,Gr.jsx)(jx,{messageId:o.id,disabled:n||s||!a})}):(0,Gr.jsx)("div",{className:r,children:(0,Gr.jsx)(ic,{running:!1,
1children:(0,Gr.jsx)(jx,{messageId:o.id,disabled:n||s||!a})})})};function Dx(e){if(!e)return!1;var t=e.toLowerCase().replace(/\s/g,"");return"#ffffff"===t||"#fff"===t||"white"===t||"rgb(255,255,255)"===t||"rgba(255,255,255,1)"===t}var zx=function(e){var t=e.className,n=void 0===t?"":t,r=e.icon,o=e.iconUrl,i=e.color,a=e.colorOverTheme,s=I(),l=s.config,u=s.color,c=s.colorOverTheme,d=null!=r?r:null==l?void 0:l.icon,f=void 0!==o?o:null==l?void 0:l.iconUrl,p=null!=i?i:u,h=null!=a?a:c,m=function(){switch(d){case _.Chatbot1:return Br;case _.Chatbot2:return Ur;case _.Chatbot3:return qr;case _.Chatbot4:return Hr;case _.UserDefined:return f?null:Br;default:return Br}}(),g=Dx(h),y=g?"bg-muted":"",b=g||!h?{}:{backgroundColor:h};return(0,Gr.jsx)("div",{className:"flex-shrink-0 ".concat(n),children:(0,Gr.jsx)("div",{className:"rounded-full p-2 ".concat(y),style:b,children:m?(0,Gr.jsx)(m,{style:{color:p},className:"w-6 h-6"}):(0,Gr.jsx)("img",{src:null!=f?f:void 0,alt:"Chatbot Avatar",className:"w-6 h-6",style:{color:p}})})})};function Lx(e){return Lx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lx(e)}function Fx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Bx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fx(Object(n),!0).forEach(function(t){Ux(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fx(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ux(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Lx(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Lx(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Lx(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qx(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Hx(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hx(e,t):void 0}}(e,t)||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 Hx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var $x=function(){var e=I().color,t=function(){var e=qx((0,i.useState)(!1),2),t=e[0],n=e[1];return(0,i.useEffect)(function(){var e=window.matchMedia("(prefers-reduced-motion: reduce)");n(e.matches);var t=function(e){n(e.matches)};return e.addEventListener("change",t),function(){return e.removeEventListener("change",t)}},[]),t}(),n=Dx(e)?s:e,r={dot1:{color:n,opacity:1},dot2:{color:n,opacity:.6},dot3:{color:n,opacity:.3}},o=function(e){return{animation:t?"none":"chatbotDotPulse 1.4s ease-in-out ".concat(e,"s infinite"),opacity:t?.7:void 0,willChange:"opacity"}};return(0,Gr.jsxs)(Gr.Fragment,{children:[(0,Gr.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n          @keyframes chatbotDotPulse {\n            0%, 80%, 100% { opacity: 0.3; }\n            40% { opacity: 1; }\n          }\n        "}}),(0,Gr.jsxs)("div",{role:"status","aria-live":"polite","aria-label":"Assistant is typing...",className:"flex items-center gap-1",children:[(0,Gr.jsx)("div",{className:"rounded-full w-2.5 h-2.5",style:Bx(Bx({},o(0)),{},{backgroundColor:r.dot1.color,opacity:r.dot1.opacity})}),(0,Gr.jsx)("div",{className:"rounded-full w-2.5 h-2.5",style:Bx(Bx({},o(.2)),{},{backgroundColor:r.dot2.color,opacity:r.dot2.opacity})}),(0,Gr.jsx)("div",{className:"rounded-full w-2.5 h-2.5",style:Bx(Bx({},o(.4)),{},{backgroundColor:r.dot3.color,opacity:r.dot3.opacity})})]})]})};function Vx(e){return Vx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vx(e)}function Wx(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Vx(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Vx(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Vx(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qx=function(e){var t=e.setViewportRef;return(0,Gr.jsxs)(Vl,{className:"box-border flex flex-col overflow-hidden h-full bg-background",style:Wx({},"--thread-max-width","42rem"),children:[(0,Gr.jsxs)(su,{ref:t,className:"flex flex-1 flex-col items-center overflow-y-auto scroll-smooth bg-inherit pt-6",children:[(0,Gr.jsx)("div",{className:"flex-grow md:hidden"}),(0,Gr.jsx)(Yx,{}),(0,Gr.jsx)(ku,{components:{UserMessage:Xx,EditComposer:Zx,AssistantMessage:ek}}),(0,Gr.jsx)("div",{className:"max-md:!hidden md:block md:flex-grow"}),(0,Gr.jsxs)("div",{className:"flex items-start justify-center gap-1 w-full max-w-[var(--thread-max-width)] px-2 pb-2",children:[(0,Gr.jsx)(Zc,{className:"h-4 w-4 shrink-0 text-muted-foreground"}),(0,Gr.jsxs)("div",{className:"text-xs text-muted-foreground",children:[(0,Gr.jsx)("span",{className:"block",children:"AI can make mistakes. Please verify important information."}),(0,Gr.jsx)("span",{className:"block",children:"Do not share personal or identifying information."})]})]})]}),(0,Gr.jsxs)("div",{className:"flex-none px-3 pt-3 pb-0 flex w-full flex-col items-center justify-end bg-background shadow-[0_-3.307px_13.227px_0_rgba(0,0,0,0.08)] relative",children:[(0,Gr.jsx)(Kx,{}),(0,Gr.jsx)("div",{className:"w-full max-w-[var(--thread-max-width)]",children:(0,Gr.jsx)(Gx,{})})]})]})},Kx=function(){return(0,Gr.jsx)(_u,{asChild:!0,children:(0,Gr.jsx)(tv,{tooltip:"Scroll to bottom",variant:"outline",className:"absolute -top-8 rounded-full disabled:invisible",children:(0,Gr.jsx)(ed,{})})})},Yx=function(){var e=I().config,t=null==e?void 0:e.welcomeText;return(0,Gr.jsx)("div",{className:"flex w-full max-w-[var(--thread-max-width)] pb-4",children:(0,Gr.jsxs)("div",{className:"flex px-3 w-full flex gap-2 items-start",children:[(0,Gr.jsx)("div",{className:"flex-shrink-0",children:(0,Gr.jsx)(zx,{})}),(0,Gr.jsx)("div",{className:"flex items-center min-h-10",children:(0,Gr.jsx)("p",{className:"text-foreground text-lg leading-7 whitespace-pre-line",children:t})})]})})},Gx=function(){return(0,Gr.jsxs)(Iu,{className:"flex w-full flex-col rounded-3xl border bg-muted/50 px-3 pb-2 pt-3 shadow-none outline-none transition-colors ease-in",children:[(0,Gr.jsx)(oc,{name:"input",rows:1,autoFocus:!0,placeholder:"Type here...",maxLength:p,className:"placeholder:text-muted-foreground max-h-40 min-h-[36px] w-full resize-none border-none bg-transparent px-2 py-1 text-sm outline-none focus:ring-0 disabled:cursor-not-allowed [&::-webkit-scrollbar]:w-[4px] [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar-thumb]:bg-neutral-400 [&::-webkit-scrollbar-thumb]:rounded-full"}),(0,Gr.jsx)("div",{className:"flex w-full items-center justify-end",children:(0,Gr.jsx)(Jx,{})})]})},Jx=function(){var e=I(),t=e.color,n=e.colorOverTheme;return(0,Gr.jsxs)(Gr.Fragment,{children:[(0,Gr.jsx)(ic,{running:!1,
1children:(0,Gr.jsx)(Pu,{asChild:!0,children:(0,Gr.jsx)(tv,{tooltip:"Send",variant:"default",className:"h-10 w-10 p-2 transition-opacity ease-in rounded-full",style:{backgroundColor:t},children:(0,Gr.jsx)(td,{className:"size-5",style:{color:n}})})})}),(0,Gr.jsx)(ic,{running:!0,children:(0,Gr.jsx)(ac,{asChild:!0,children:(0,Gr.jsx)(tv,{tooltip:"Cancel",variant:"default",className:"h-10 w-10 p-2 transition-opacity ease-in rounded-full",style:{backgroundColor:t},children:(0,Gr.jsx)(rk,{style:{color:n}})})})})]})},Xx=function(){return(0,Gr.jsx)(sc,{className:"grid auto-rows-auto grid-cols-[minmax(72px,1fr)_auto] gap-y-2 [&:where(>*)]:col-start-2 w-full max-w-[var(--thread-max-width)] py-4 px-3",children:(0,Gr.jsxs)("div",{className:"bg-muted text-foreground [overflow-wrap:anywhere] rounded-lg p-3 col-start-2 row-start-2 max-w-[calc(var(--thread-max-width)*0.8)] text-lg flex flex-col items-end",children:[(0,Gr.jsx)(Yc,{}),(0,Gr.jsx)("span",{className:"text-muted-foreground text-sm font-normal mt-1",children:"You"})]})})},Zx=function(){return(0,Gr.jsxs)(Iu,{className:"bg-muted my-4 flex w-full max-w-[var(--thread-max-width)] flex-col gap-2 rounded-xl",children:[(0,Gr.jsx)(oc,{className:"text-foreground flex h-8 w-full resize-none bg-transparent p-4 pb-0 outline-none"}),(0,Gr.jsxs)("div",{className:"mx-2 mb-2 flex items-center justify-center gap-2 self-end",children:[(0,Gr.jsx)(ac,{asChild:!0,children:(0,Gr.jsx)(dd,{variant:"ghost",children:"Cancel"})}),(0,Gr.jsx)(Pu,{asChild:!0,children:(0,Gr.jsx)(dd,{children:"Send"})})]})]})},ek=function(){var e=Bl(),t=du(),n=e.isRunning,r=t.isLast&&"assistant"===t.role,o=n&&r,a=function(e,t,n){var r=(0,i.useRef)(null);return(0,i.useEffect)(function(){e&&!t&&!n&&r.current&&setTimeout(function(){var e;null===(e=r.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start"})},100)},[e,t,n]),r}(r,o,n);return(0,Gr.jsxs)(sc,{ref:a,className:"w-full max-w-[var(--thread-max-width)] py-4 px-3",children:[(0,Gr.jsxs)("div",{className:"flex gap-2 items-start",children:[(0,Gr.jsx)("div",{className:"flex-shrink-0",children:(0,Gr.jsx)(zx,{})}),(0,Gr.jsxs)("div",{className:"flex-1",children:[(0,Gr.jsx)("div",{className:"flex items-center min-h-10",children:(0,Gr.jsx)("div",{className:"text-foreground max-w-[calc(var(--thread-max-width)*0.8)] [overflow-wrap:anywhere] leading-7 text-lg ".concat(o?"mt-4":""),children:o?(0,Gr.jsx)($x,{}):(0,Gr.jsxs)(Gr.Fragment,{children:[(0,Gr.jsx)(Yc,{components:{Text:Pv}}),(0,Gr.jsx)(tk,{})]})})}),!o&&(0,Gr.jsx)("div",{className:"mt-3",children:(0,Gr.jsx)(Mx,{})})]})]}),!o&&(0,Gr.jsx)(nk,{})]})},tk=function(){return(0,Gr.jsx)(Gc,{children:(0,Gr.jsx)(Jc,{className:"border-destructive bg-destructive/10 text-destructive mt-2 rounded-md border p-2 text-sm",children:(0,Gr.jsx)(Xc,{className:"line-clamp-2"})})})},nk=function(){var e,t=du(),n=en(),r=n.isSubmitted,o=n.messageId,i=null==t||null===(e=t.metadata)||void 0===e||null===(e=e.custom)||void 0===e||null===(e=e.feedbackState)||void 0===e?void 0:e.completed;return r&&o===t.id||i?(0,Gr.jsxs)("div",{className:"mt-3 flex gap-2 items-start",children:[(0,Gr.jsx)("div",{className:"flex-shrink-0",children:(0,Gr.jsx)(zx,{})}),(0,Gr.jsx)("div",{className:"flex-1",children:(0,Gr.jsx)("div",{className:"flex items-center min-h-10",children:(0,Gr.jsx)("div",{className:"text-foreground leading-7 text-lg",children:"Thank you for your feedback!"})})})]}):null},rk=function(e){var t=e.style;return(0,Gr.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"16",height:"16",style:t,children:(0,Gr.jsx)("rect",{width:"10",height:"10",x:"3",y:"3",rx:"2"})})};function ok(e){return ok="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ok(e)}var ik=["className","align","sideOffset"];function ak(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function sk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?ak(Object(n),!0).forEach(function(t){lk(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ak(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function lk(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=ok(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ok(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ok(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uk(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function ck(){return ck=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ck.apply(null,arguments)}function dk(e){var t=ck({},(uk(e),e));return(0,Gr.jsx)(Cl,sk({"data-slot":"popover"},t))}function fk(e){var t=ck({},(uk(e),e));return(0,Gr.jsx)(Ol,sk({"data-slot":"popover-trigger"},t))}function pk(e){var t=e.className,n=e.align,r=void 0===n?"center":n,o=e.sideOffset,i=void 0===o?4:o,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,ik);return(0,Gr.jsx)(Pl,{children:(0,Gr.jsx)(Il,sk({"data-slot":"popover-content",align:r,sideOffset:i,className:dr("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",t)},a))})}function hk(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return mk(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mk(e,t):void 0}}(e,t)||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 mk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var gk=280,yk=50,bk=8,vk=16;function wk(e){var t=e.bubbleText,n=e.position,r=void 0===n?"right":n,o=e.animationEnabled,a=void 0===o||o,s=e.onDismiss,l=e.children,u=e.onContentClick,c=hk((0,i.useState)(!1),2),d=c[0],f=c[1],p=hk((0,i.useState)(!1),2),h=p[0],m=p[1],g=(0,i.useCallback)(function(){t?Ar.isBubbleDismissed()?f(!1):f(!0):f(!1)},[t]);(0,i.useEffect)(function(){g()},[g]),(0,i.useEffect)(function(){if(d&&a){var e=setTimeout(function(){return m(!0)},yk);return function(){return clearTimeout(e)}}m(!1)},[d,a]),(0,i.useEffect)(function(){var e=function(e){"public-websearch-chatbot-bubble-dismissed"===e.key&&g()},t=function(){g()};return window.addEventListener("storage",e),window.addEventListener("chatbot-bubble-dismissed",t),function(){window.removeEventListener("storage",e),window.removeEventListener("chatbot-bubble-dismissed",t)}},[g]);var y=(0,i.useCallback)(function(e){e.stopPropagation(),Ar.dismissBubble(),f(!1),null==s||s()},[s]),b=(0,i.useCallback)(function(e){e.target.closest('button[aria-label="Close attention bubble"]')||u&&u()},[u]);if(!t)return(0,Gr.jsx)(Gr.Fragment,{children:l});if(!d)return(0,Gr.jsx)(Gr.Fragment,{children:l});var v=a?"attention-bubble-animated ".concat(h?"visible":""):"attention-bubble-no-animation";return(0,Gr.jsxs)(dk,{open:d,children:[(0,Gr.jsx)("style",{children:"\n        ".concat('\n  @property --border-angle {\n    syntax: "<angle>";\n    inherits: false;\n    initial-value: 0deg;\n  }\n  @keyframes border-rotate {\n    to { --border-angle: 360deg; }\n  }\n',"\n\n        @keyframes bubbleEntry {\n          from {\n            opacity: 0;\n            transform: translateY(100%);\n          }\n          to {\n            opacity: 1;\n            transform: translateY(0);\n          }\n        }\n\n        @keyframes bubbleFloat {\n          0%, 100% {\n            transform: translateY(0);\n          }\n          50% {\n            transform: translateY(-8px);\n          }\n        }\n\n        .attention-bubble-animated {\n          opacity: 0;\n          transform: translateY(100%);\n          will-change: opacity, transform;\n        }\n\n        .attention-bubble-animated.visible {\n          animation:\n            bubbleEntry 1s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards,\n            bubbleFloat 4s cubic-bezier(0.45, 0.05, 0.55, 0.95) 2s infinite;\n        }\n\n        .attention-bubble-no-animation {\n          opacity: 1;\n          transform: none;\n          animation: none;\n          will-change: auto;\n        }\n\n        @media (prefers-reduced-motion: reduce) {\n          .attention-bubble-animated,\n          .attention-bubble-animated.visible {\n            animation: none !important;\n            opacity: 1;\n            transform: none;\n            will-change: auto;\n          }\n\n          /* Stop the conic-gradient glow rotating (inline animation needs !important to override) */\n          .attention-bubble-glow {\n            animation: none !important;\n          }\n        }\n      ")}),(0,Gr.jsxs)("div",{className:"relative size-full",children:[(0,Gr.jsx)(fk,{asChild:!0,children:(0,Gr.jsx)("div",{className:"pointer-events-none absolute inset-0"})}),l]}),(0,Gr.jsxs)(pk,{side:"top",sideOffset:a?bk:vk,align:"left"===r?"start":"end",onOpenAutoFocus:function(e){return e.preventDefault()},onEscapeKeyDown:function(e){return e.preventDefault()},avoidCollisions:!1,collisionPadding:0,tabIndex:-1,role:"note",className:"flex w-fit flex-col gap-1 border-none bg-transparent p-0 shadow-none ".concat("left"===r?"items-start":"items-end"," ").concat(v),style:{maxWidth:"".concat(gk,"px"),zIndex:1e3},onClick:b,children:[(0,Gr.jsx)("button",{onClick:y,tabIndex:-1,"aria-label":"Close attention bubble",className:"flex h-8 w-8 items-center justify-center rounded-full border border-border bg-popover text-muted-foreground transition-transform hover:scale-110 active:scale-90 focus:outline-none focus:ring-1 focus:ring-gray-200 cursor-pointer",children:(0,Gr.jsx)($r,{className:"h-4 w-4",strokeWidth:1.5})}),(0,Gr.jsxs)("div",{className:"relative isolate cursor-pointer",children:[(0,Gr.jsx)("div",{"aria-hidden":"true",className:"attention-bubble-glow pointer-events-none absolute -inset-0.5 rounded-[34px] opacity-50 blur-[4px]",style:{background:"conic-gradient(from var(--border-angle), #3b82f6, #8b5cf6, #ec4899, #ef4444, #3b82f6)",animation:a?"border-rotate 1.5s linear infinite":"none"}}),(0,Gr.jsx)("div",{className:"relative rounded-[32px] bg-popover px-6 py-6 shadow-lg",children:(0,Gr.jsx)("p",{className:"m-0 whitespace-pre-line text-base font-medium leading-6 text-popover-foreground",children:t})})]})]})]})}function xk(e){return xk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xk(e)}var kk=["data-state","iconComponent","iconUrl","buttonColor","iconColor"];function Sk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?Sk(Object(n),!0).forEach(function(t){Ek(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ek(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=xk(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=xk(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==xk(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ck(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Tk(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tk(e,t):void 0}}(e,t)||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 Tk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ok=638,Pk=425,Ik=function(){var e,t,n=Ck((0,i.useState)(!1),2),r=n[0],o=n[1],a=I(),s=a.config,l=a.color,u=a.colorOverTheme,c=function(e){var t=(0,i.useRef)(null),n=(0,i.useMemo)(function(){return window.innerWidth<=h.MD},[]);return(0,i.useEffect)(function(){if(n&&e){var t=window.scrollY;return document.body.classList.add("chatbot-modal-open"),document.body.style.top="-".concat(t,"px"),function(){document.body.classList.remove("chatbot-modal-open"),document.body.style.removeProperty("top"),window.scrollTo(0,t)}}},[e,n]),(0,i.useEffect)(function(){n&&t.current&&setTimeout(function(){t.current&&(t.current.scrollTop=t.current.scrollHeight)},150)},[n]),{mobileStyles:"\n    /* Prevent body scroll when chatbot modal is open on mobile (iOS Safari compatible) */\n    @media (max-width: ".concat(h.MD,"px) {\n      body.chatbot-modal-open {\n        overflow: hidden !important;\n        position: fixed !important;\n        width: 100% !important;\n      }\n    }\n\n    /* Mobile and tablet: Full screen with static viewport units */\n    @media (max-width: ").concat(h.MD,'px) {\n      [data-radix-popper-content-wrapper][data-modern-ui-react] {\n        transform: translate(0px, 0px) !important;\n        left: 0px !important;\n        top: 0px !important;\n        z-index: 10000002 !important;\n      }\n\n      [data-radix-popper-content-wrapper][data-modern-ui-react] > div[role="dialog"] {\n        height: 100% !important;\n        height: 100dvh !important;\n        width: 100% !important;\n        width: 100dvw !important;\n        border-radius: 0 !important;\n      }\n\n      /* Prevent iOS auto-zoom on input focus by ensuring 16px minimum font size */\n      [data-radix-popper-content-wrapper][data-modern-ui-react] input,\n      [data-radix-popper-content-wrapper][data-modern-ui-react] textarea {\n        font-size: 16px !important;\n        min-height: 40px;\n      }\n    }\n  '),setViewportRef:function(e){t.current=e}}}(r),d=c.mobileStyles,f=c.setViewportRef;(0,i.useEffect)(function(){if(Ar.hasValidSession()){var e=Ar.loadModalState();o(e)}},[]),(0,i.useEffect)(function(){r&&setTimeout(function(){var e=document.querySelector("[data-radix-popper-content-wrapper]");e&&e.setAttribute("data-modern-ui-react","")},0)},[r]);var p,m=function(e){o(e),Ar.saveModalState(e),e?(Ar.dismissBubble(),window.dispatchEvent(new CustomEvent("chatbot-bubble-dismissed"))):window.dispatchEvent(new CustomEvent("chatbot-modal-closing"))},g=function(){var e=null==s?void 0:s.icon,t=null==s?void 0:s.iconUrl;switch(e){case _.Chatbot1:return Br;case _.Chatbot2:return Ur;case _.Chatbot3:return qr;case _.Chatbot4:return Hr;
1case _.UserDefined:return t?"custom":Br;default:return Br}},y=g(),b="custom"===y?Br:y,v="custom"===y&&!(null==s||!s.iconUrl);return(0,Gr.jsxs)(Gr.Fragment,{children:[(0,Gr.jsx)("style",{children:d}),(0,Gr.jsxs)(Ul,{open:r,onOpenChange:m,children:[(0,Gr.jsx)(ql,{className:(null==s?void 0:s.position)===S.BottomLeft?"fixed bottom-[72px] md:bottom-4 left-4 size-16":"fixed bottom-[72px] md:bottom-4 right-4 size-16",children:(0,Gr.jsx)(wk,{bubbleText:(null==s?void 0:s.bubbleText)||"",position:(null==s?void 0:s.position)===S.BottomLeft?"left":"right",animationEnabled:null===(e=null==s?void 0:s.animationEnabled)||void 0===e||e,onContentClick:function(){m(!0)},children:(0,Gr.jsx)(Hl,{asChild:!0,children:(0,Gr.jsx)(jk,{iconComponent:g(),iconUrl:(null==s?void 0:s.iconUrl)||null,buttonColor:l,iconColor:u})})})}),(0,Gr.jsxs)($l,{sideOffset:16,className:(p="bg-popover text-popover-foreground data-[state=closed]:animate-out data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out data-[state=open]:zoom-in data-[state=open]:slide-in-from-bottom-1/2 data-[state=closed]:slide-out-to-bottom-1/2 h-[".concat(Ok,"px] w-[").concat(Pk,"px] overflow-clip rounded-xl p-0 shadow-2xl outline-none [&>.thread-root]:bg-inherit flex flex-col"),(null==s?void 0:s.position)===S.BottomLeft?"".concat(p," data-[state=open]:slide-in-from-left-1/2 data-[state=closed]:slide-out-to-left-1/2"):"".concat(p," data-[state=open]:slide-in-from-right-1/2 data-[state=closed]:slide-out-to-right-1/2")),align:(null==s?void 0:s.position)===S.BottomLeft?"start":"end",style:{zIndex:1e3},children:[(0,Gr.jsxs)("div",{className:"flex items-center gap-3 w-full px-3 py-4 flex-none shadow-md z-1",style:{backgroundColor:u},children:[(0,Gr.jsxs)("div",{className:"flex flex-1 items-center gap-2 min-w-0",children:[v?(0,Gr.jsx)("img",{src:null!==(t=null==s?void 0:s.iconUrl)&&void 0!==t?t:void 0,alt:"Chatbot icon",className:"h-6 w-6 rounded-full object-cover"}):(0,Gr.jsx)(b,{className:"h-6 w-6 shrink-0",style:{color:l}}),(0,Gr.jsx)("div",{className:"text-base font-medium truncate",style:{color:l},children:(null==s?void 0:s.name)||""})]}),(0,Gr.jsx)("button",{type:"button",onClick:function(){window.dispatchEvent(new CustomEvent("chatbot-modal-closing")),o(!1),Ar.saveModalState(!1)},"aria-label":"Close Assistant",className:"shrink-0 cursor-pointer opacity-70 transition-opacity hover:opacity-100 focus:outline-none",children:(0,Gr.jsx)($r,{className:"size-5",style:{color:l}})})]}),(0,Gr.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,Gr.jsx)(Qx,{setViewportRef:f})}),(0,Gr.jsx)("div",{className:"text-center py-2 px-4 flex-none relative bg-background text-[0px]",children:(0,Gr.jsx)("a",{href:"https://www.edl
1io.com/",target:"_blank",rel:"noopener noreferrer",className:"text-xs font-normal !text-neutral-500 hover:!text-neutral-700 transition-colors",children:"Powered by Edlio AI"})})]})]})]})},jk=(0,i.forwardRef)(function(e,t){var n=e["data-state"],r=e.iconComponent,o=e.iconUrl,i=e.buttonColor,a=e.iconColor,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,kk),l="absolute size-10 transition-all",u="data-[state=closed]:rotate-0 data-[state=open]:rotate-90 data-[state=closed]:scale-100 data-[state=open]:scale-0";return(0,Gr.jsxs)(dd,_k(_k({variant:"default"},s),{},{className:"size-full rounded-full shadow-md transition-transform hover:scale-110 active:scale-90",style:{backgroundColor:i},ref:t,children:[function(){if("custom"===r&&o)return(0,Gr.jsx)("img",{src:o,alt:"Chatbot Icon","data-state":n,className:"".concat(l," ").concat(u),style:{color:a}});if("custom"!==r){var e=r;return(0,Gr.jsx)(e,{"data-state":n,className:"".concat(l," ").concat(u),style:{color:a},strokeWidth:1.5})}return(0,Gr.jsx)(Br,{"data-state":n,className:"".concat(l," ").concat(u),style:{color:a},strokeWidth:1.5})}(),(0,Gr.jsx)(Vr,{"data-state":n,className:"".concat(l," ").concat("data-[state=closed]:-rotate-90 data-[state=open]:rotate-0 data-[state=closed]:scale-0 data-[state=open]:scale-100"),style:{color:a},strokeWidth:1.5}),(0,Gr.jsx)("span",{className:"sr-only",children:"open"===n?"Close Assistant":"Open Assistant"})]}))});jk.displayName="AssistantModalButton";var Ak=function(){(0,i.useEffect)(function(){Ar.getOrCreateSession();var e=setInterval(function(){Ar.isSessionExpired()&&(Ar.resetSession(),window.location.reload())},f);return function(){clearInterval(e)}},[]);var e=I(),t=e.config,n=e.error,r=(0,i.useMemo)(function(){try{var e,t,n=document.getElementById("react-app-root"),r=null==n||null===(e=n.dataset)||void 0===e?void 0:e.chatbotCustomTypes;if(!r)return{customTypes:null,isLoaded:!1,error:null,positionEnum:null,iconEnum:null};var o=JSON.parse(r),i=null==o||null===(t=o.payload)||void 0===t?void 0:t.enums;return{customTypes:o,isLoaded:!0,error:null,positionEnum:(null==i?void 0:i.ChatbotPositionEnum)||null,iconEnum:(null==i?void 0:i.ChatbotIconEnum)||null}}catch(e){return console.error("Failed to parse custom types from dataset:",e),{customTypes:null,isLoaded:!1,error:e,positionEnum:null,iconEnum:null}}},[]),o=r.customTypes,a=r.error,s=!!n||!!a,l=!!t&&!!o&&!s;return(0,i.useEffect)(function(){a&&console.error("[AppBootstrap] Custom types API failed:",a),n&&console.error("[AppBootstrap] Configuration API failed:",n)},[a,n]),s?(console.error("[AppBootstrap] API errors detected, preventing render:",{customTypesError:a,configurationError:n}),null):l?(0,Gr.jsx)(Ik,{}):(console.error("[AppBootstrap] Missing required data, preventing render:",{hasConfig:!!t,hasCustomTypes:!!o}),null)},Nk=class{_providers=new Set;getModelContext(){return e=this._providers,Array.from(e).map(e=>e.getModelContext()).sort((e,t)=>(t.priority??0)-(e.priority??0)).reduce((e,t)=>{if(t.system&&(e.system?e.system+=`\n\n${t.system}`:e.system=t.system),t.tools)for(const[n,r]of Object.entries(t.tools)){const t=e.tools?.[n];if(t&&t!==r)throw new Error(`You tried to define a tool with the name ${n}, but it already exists.`);e.tools||(e.tools={}),e.tools[n]=r}return t.config&&(e.config={...e.config,...t.config}),t.callSettings&&(e.callSettings={...e.callSettings,...t.callSettings}),e},{});var e}registerModelContextProvider(e){this._providers.add(e);const t=e.subscribe?.(()=>{this.notifySubscribers()});return this.notifySubscribers(),()=>{this._providers.delete(e),t?.(),this.notifySubscribers()}}_subscribers=new Set;notifySubscribers(){for(const e of this._subscribers)e()}subscribe(e){return this._subscribers.add(e),()=>this._subscribers.delete(e)}},Rk=class{_contextProvider=new Nk;registerModelContextProvider(e){return this._contextProvider.registerModelContextProvider(e)}},Mk=o(442);var Dk=Symbol("aui.parse-partial-json-object.meta"),zk=e=>{if(0===e.length)return{[Dk]:{state:"partial",partialPath:[]}};try{const t=Mk.parse(e);if("object"!=typeof t||null===t)throw new Error("argsText is expected to be an object");return t[Dk]={state:"complete",partialPath:[]},t}catch{try{const[t,n]=function(e){const t=["ROOT"];let n=-1,r=null;const o=[];let i;function a(){void 0!==i&&(o.push(JSON.parse('"'+i+'"')),i=void 0)}function s(e,o,i){switch(e){case'"':n=o,t.pop(),t.push(i),t.push("INSIDE_STRING"),a();break;case"f":case"t":case"n":n=o,r=o,t.pop(),t.push(i),t.push("INSIDE_LITERAL");break;case"-":t.pop(),t.push(i),t.push("INSIDE_NUMBER"),a();break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":n=o,t.pop(),t.push(i),t.push("INSIDE_NUMBER"),a();break;case"{":n=o,t.pop(),t.push(i),t.push("INSIDE_OBJECT_START"),a();break;case"[":n=o,t.pop(),t.push(i),t.push("INSIDE_ARRAY_START"),a()}}function l(e,r){switch(e){case",":t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break;case"}":n=r,t.pop(),i=o.pop()}}function u(e,r){switch(e){case",":t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA"),i=(Number(i)+1).toString();break;case"]":n=r,t.pop(),i=o.pop()}}for(let a=0;a<e.length;a++){const c=e[a];switch(t[t.length-1]){case"ROOT":s(c,a,"FINISH");break;case"INSIDE_OBJECT_START":switch(c){case'"':t.pop(),t.push("INSIDE_OBJECT_KEY"),i="";break;case"}":n=a,t.pop(),i=o.pop()}break;case"INSIDE_OBJECT_AFTER_COMMA":'"'===c&&(t.pop(),t.push("INSIDE_OBJECT_KEY"),i="");break;case"INSIDE_OBJECT_KEY":switch(c){case'"':t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY");break;case"\\":t.push("INSIDE_STRING_ESCAPE"),i+=c;break;default:i+=c}break;case"INSIDE_OBJECT_AFTER_KEY":":"===c&&(t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE"));break;case"INSIDE_OBJECT_BEFORE_VALUE":s(c,a,"INSIDE_OBJECT_AFTER_VALUE");break;case"INSIDE_OBJECT_AFTER_VALUE":l(c,a);break;case"INSIDE_STRING":switch(c){case'"':t.pop(),n=a,i=o.pop();break;case"\\":t.push("INSIDE_STRING_ESCAPE");break;default:n=a}break;case"INSIDE_ARRAY_START":"]"===c?(n=a,t.pop(),i=o.pop()):(n=a,i="0",s(c,a,"INSIDE_ARRAY_AFTER_VALUE"));break;case"INSIDE_ARRAY_AFTER_VALUE":switch(c){case",":t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA"),i=(Number(i)+1).toString();break;case"]":n=a,t.pop(),i=o.pop();break;default:n=a}break;case"INSIDE_ARRAY_AFTER_COMMA":s(c,a,"INSIDE_ARRAY_AFTER_VALUE");break;case"INSIDE_STRING_ESCAPE":t.pop(),"INSIDE_STRING"===t[t.length-1]?n=a:"INSIDE_OBJECT_KEY"===t[t.length-1]&&(i+=c);break;case"INSIDE_NUMBER":switch(c){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":n=a;break;case"e":case"E":case"-":case".":break;case",":t.pop(),i=o.pop(),"INSIDE_ARRAY_AFTER_VALUE"===t[t.length-1]&&u(c,a),"INSIDE_OBJECT_AFTER_VALUE"===t[t.length-1]&&l(c,a);break;case"}":t.pop(),i=o.pop(),"INSIDE_OBJECT_AFTER_VALUE"===t[t.length-1]&&l(c,a);break;case"]":t.pop(),i=o.pop(),"INSIDE_ARRAY_AFTER_VALUE"===t[t.length-1]&&u(c,a);break;default:t.pop(),i=o.pop()}break;case"INSIDE_LITERAL":{const o=e.substring(r,a+1);"false".startsWith(o)||"true".startsWith(o)||"null".startsWith(o)?n=a:(t.pop(),"INSIDE_OBJECT_AFTER_VALUE"===t[t.length-1]?l(c,a):"INSIDE_ARRAY_AFTER_VALUE"===t[t.length-1]&&u(c,a));break}}}let c=e.slice(0,n+1);for(let n=t.length-1;n>=0;n--)switch(t[n]){case"INSIDE_STRING":c+='"';break;case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":c+="}";break;case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":c+="]";break;case"INSIDE_LITERAL":{const t=e.substring(r,e.length);"true".startsWith(t)?c+="true".slice(t.length):"false".startsWith(t)?c+="false".slice(t.length):"null".startsWith(t)&&(c+="null".slice(t.length))}}return[c,o]}(e),r=Mk.parse(t);if("object"!=typeof r||null===r)throw new Error("argsText is expected to be an object");return r[Dk]={state:"partial",partialPath:n},r}catch{return}}};let Lk=(e,t=21)=>(n=t)=>{let r="",o=0|n;for(;o--;)r+=e[Math.random()*e.length|0];return r};var Fk=Lk("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",7),Bk="__optimistic__",Uk=()=>`${Bk}${Fk()}`,qk=(e,t,n)=>{const{role:r,id:o,createdAt:i,attachments:a,status:s,metadata:l}=e,u={id:o??t,createdAt:i??new Date},c="string"==typeof e.content?[{type:"text",text:e.content}]:e.content;if("user"!==r&&a?.length)throw new Error("attachments are only supported for user messages");if("assistant"!==r&&s)throw new Error("status is only supported for assistant messages");if("assistant"!==r&&l?.steps)throw new Error("metadata.steps is only supported for assistant messages");switch(r){case"assistant":return{...u,role:r,content:c.map(e=>{const t=e.type;switch(t){case"text":case"reasoning":return 0===e.text.trim().length?null:e;case"file":case"source":return e;case"image":return(({image:e,...t})=>e.match(/^data:image\/(png|jpeg|jpg|gif|webp);base64,(.*)$/)?{...t,image:e}:(console.warn("Invalid image data format detected"),null))(e);case"tool-call":{const{parentId:t,...n}=e,r={...n,toolCallId:e.toolCallId??"tool-"+Fk(),...void 0!==t&&{parentId:t}};return e.args?{...r,args:e.args,argsText:JSON.stringify(e.args)}:{...r,args:e.args??zk(e.argsText??"")??{},argsText:e.argsText??""}}default:throw new Error(`Unsupported assistant message part type: ${t}`)}}).filter(e=>!!e),status:s??n,metadata:{unstable_state:l?.unstable_state??null,unstable_annotations:l?.unstable_annotations??[],unstable_data:l?.unstable_data??[],custom:l?.custom??{},steps:l?.steps??[]}};case"user":return{...u,role:r,content:c.map(e=>{const t=e.type;switch(t){case"text":case"image":case"audio":case"file":return e;default:throw new Error(`Unsupported user message part type: ${t}`)}}),attachments:a??[],metadata:{custom:l?.custom??{}}};case"system":if(1!==c.length||"text"!==c[0].type)throw new Error("System messages must have exactly one text message part.");return{...u,role:r,content:c,metadata:{custom:l?.custom??{}}};default:throw new Error(`Unknown message role: ${r}`)}},Hk=(e,t)=>void 0===t?"requires-action"===e.status?.type&&"tool-calls"===e.status.reason&&e.content.every(e=>"tool-call"!==e.type||!!e.result):"requires-action"===e.status?.type&&"tool-calls"===e.status.reason&&e.content.every(e=>"tool-call"!==e.type||!!e.result||!t.includes(e.toolName)),$k=Object.freeze({type:"running"}),Vk=Object.freeze({type:"complete",reason:"unknown"}),Wk=Object.freeze({type:"requires-action",reason:"tool-calls"}),Qk=e=>{const t=e.map(e=>{return qk(e,Fk(),(t=!1,n=!1,!1&&t?$k:n?Wk:Vk));var t,n});return{messages:t.map((e,n)=>({parentId:n>0?t[n-1].id:null,message:e}))}},Kk=e=>e.next?Kk(e.next):"current"in e?e:null,Yk=class{constructor(e){this.func=e}_value=null;get value(){return null===this._value&&(this._value=this.func()),this._value}dirty(){this._value=null}},Gk=class{messages=new Map;head=null;root={children:[],next:null};performOp(e,t,n){const r=t.prev??this.root,o=e??this.root;if("relink"!==n||r!==o){if("link"!==n&&(r.children=r.children.filter(e=>e!==t.current.id),r.next===t)){const e=r.children.at(-1),t=e?this.messages.get(e):null;if(void 0===t)throw new Error("MessageRepository(performOp/cut): Fallback sibling message not found. This is likely an internal bug in assistant-ui.");r.next=t}if("cut"!==n){for(let n=e;n;n=n.prev)if(n.current.id===t.current.id)throw new Error("MessageRepository(performOp/link): A message with the same id already exists in the parent tree. This error occurs if the same message id is found multiple times. This is likely an internal bug in assistant-ui.");o.children=[...o.children,t.current.id],Kk(t)!==this.head&&null!==o.next||(o.next=t),t.prev=e}}}_messages=new Yk(()=>{const e=new Array(this.head?.level??0);for(let t=this.head;t;t=t.prev)e[t.level]=t.current;return e});get headId(){return this.head?.current.id??null}getMessages(){return this._messages.value}addOrUpdateMessage(e,t){const n=this.messages.get(t.id),r=e?this.messages.get(e):null;if(void 0===r)throw new Error("MessageRepository(addOrUpdateMessage): Parent message not found. This is likely an internal bug in assistant-ui.");if(n)return n.current=t,this.performOp(r,n,"relink"),void this._messages.dirty();const o={prev:r,current:t,next:null,children:[],level:r?r.level+1:0};this.messages.set(t.id,o),this.performOp(r,o,"link"),this.head===r&&(this.head=o),this._messages.dirty()}getMessage(e){const t=this.messages.get(e);if(!t)throw new Error("MessageRepository(updateMessage): Message not found. This is likely an internal bug in assistant-ui.");return{parentId:t.prev?.current.id??null,message:t.current}}appendOptimisticMessage(e,t){let n;do{n=Uk()}while(this.messages.has(n));return this.addOrUpdateMessage(e,qk(t,n,{type:"running"})),n}deleteMessage(e,t){const n=this.messages.get(e);if(!n)throw new Error("MessageRepository(deleteMessage): Message not found. This is likely an internal bug in assistant-ui.");const r=void 0===t?n.prev:null===t?null:this.messages.get(t);if(void 0===r)throw new Error("MessageRepository(deleteMessage): Replacement not found. This is likely an internal bug in assistant-ui.");for(const e of n.children){const t=this.messages.get(e);if(!t)throw new Error("MessageRepository(deleteMessage): Child message not found. This is likely an internal bug in assistant-ui.");this.performOp(r,t,"relink")}this.performOp(null,n,"cut"),this.messages.delete(e),this.head===n&&(this.head=Kk(r??this.root)),this._messages.dirty()}getBranches(e){const t=this.messages.get(e);if(!t)throw new Error("MessageRepository(getBranches): Message not found. This is likely an internal bug in assistant-ui.");const{children:n}=t.prev??this.root;return n}switchToBranch(e){const t=this.messages.get(e);if(!t)throw new Error("MessageRepository(switchToBranch): Branch not found. This is likely an internal bug in assistant-ui.");(t.prev??this.root).next=t,this.head=Kk(t),this._messages.dirty()}resetHead(e){if(null===e)return this.head=null,void this._messages.dirty();const t=this.messages.get(e);if(!t)throw new Error("MessageRepository(resetHead): Branch not found. This is likely an internal bug in assistant-ui.");this.head=t;for(let e=t;e;e=e.prev)e.prev&&(e.prev.next=e);this._messages.dirty()}clear(){this.messages.clear(),this.head=null,this.root={children:[],next:null},this._messages.dirty()}export(){const e=[];for(const[,t]of this.messages)e.push({message:t.current,parentId:t.prev?.current.id??null});return{headId:this.head?.current.id??null,messages:e}}import({headId:e,messages:t}){for(const{message:e,parentId:n}of t)this.addOrUpdateMessage(n,e);this.resetHead(e??t.at(-1)?.message.id??null)}},Jk=class{_subscribers=new Set;subscribe(e){return this._subscribers.add(e),()=>this._subscribers.delete(e)}waitForUpdate(){return new Promise(e=>{const t=this.subscribe(()=>{t(),e()})})}_notifySubscribers(){const e=[];for(const t of this._subscribers)try{t()}catch(t){e.push(t)}if(e.length>0)throw 1===e.length?e[0]:new AggregateError(e)}},Xk=class extends Jk{isEditing=!0;getAttachmentAccept(){return this.getAttachmentAdapter()?.accept??"*"}_attachments=[];get attachments(){return this._attachments}setAttachments(e){this._attachments=e,this._notifySubscribers()}get isEmpty(){return!this.text.trim()&&!this.attachments.length}_text="";get text(){return this._text}_role="user";get role(){return this._role}_runConfig={};get runConfig(){return this._runConfig}setText(e){this._text!==e&&(this._text=e,this._notifySubscribers())}setRole(e){this._role!==e&&(this._role=e,this._notifySubscribers())}setRunConfig(e){this._runConfig!==e&&(this._runConfig=e,this._notifySubscribers())}_emptyTextAndAttachments(){this._attachments=[],this._text="",this._notifySubscribers()}async _onClearAttachments(){const e=this.getAttachmentAdapter();e&&await Promise.all(this._attachments.map(t=>e.remove(t)))}async reset(){if(0===this._attachments.length&&""===this._text&&"user"===this._role&&0===Object.keys(this._runConfig).length)return;this._role="user",this._runConfig={};const e=this._onClearAttachments();this._emptyTextAndAttachments(),await e}async clearAttachments(){const e=this._onClearAttachments();this.setAttachments([]),await e}async send(){const e=this.getA
1ttachmentAdapter(),t=e&&this.attachments.length>0?await Promise.all(this.attachments.map(async t=>{if((e=>"complete"===e.status.type)(t))return t;return await e.send(t)})):[],n={createdAt:new Date,role:this.role,content:this.text?[{type:"text",text:this.text}]:[],attachments:t,runConfig:this.runConfig,metadata:{custom:{}}};this._emptyTextAndAttachments(),this.handleSend(n),this._notifyEventSubscribers("send")}cancel(){this.handleCancel()}async addAttachment(e){const t=this.getAttachmentAdapter();if(!t)throw new Error("Attachments are not supported");const n=e=>{const t=this._attachments.findIndex(t=>t.id===e.id);-1!==t?this._attachments=[...this._attachments.slice(0,t),e,...this._attachments.slice(t+1)]:(this._attachments=[...this._attachments,e],this._notifyEventSubscribers("attachment_add")),this._notifySubscribers()},r=t.add({file:e});if(Symbol.asyncIterator in r)for await(const e of r)n(e);else n(await r);this._notifyEventSubscribers("attachment_add"),this._notifySubscribers()}async removeAttachment(e){const t=this.getAttachmentAdapter();if(!t)throw new Error("Attachments are not supported");const n=this._attachments.findIndex(t=>t.id===e);if(-1===n)throw new Error("Attachment not found");const r=this._attachments[n];await t.remove(r),this._attachments=[...this._attachments.slice(0,n),...this._attachments.slice(n+1)],this._notifySubscribers()}_eventSubscribers=new Map;_notifyEventSubscribers(e){const t=this._eventSubscribers.get(e);if(t)for(const e of t)e()}unstable_on(e,t){const n=this._eventSubscribers.get(e);return n?n.add(t):this._eventSubscribers.set(e,new Set([t])),()=>{const n=this._eventSubscribers.get(e);n&&n.delete(t)}}},Zk=class extends Xk{constructor(e){super(),this.runtime=e,this.connect()}_canCancel=!1;get canCancel(){return this._canCancel}get attachments(){return super.attachments}getAttachmentAdapter(){return this.runtime.adapters?.attachments}connect(){return this.runtime.subscribe(()=>{this.canCancel!==this.runtime.capabilities.cancel&&(this._canCancel=this.runtime.capabilities.cancel,this._notifySubscribers())})}async handleSend(e){this.runtime.append({...e,parentId:this.runtime.messages.at(-1)?.id??null,sourceId:null})}async handleCancel(){this.runtime.cancelRun()}},eS=e=>e.content.filter(e=>"text"===e.type).map(e=>e.text).join("\n\n"),tS=class extends Xk{constructor(e,t,{parentId:n,message:r}){super(),this.runtime=e,this.endEditCallback=t,this._parentId=n,this._sourceId=r.id,this._previousText=eS(r),this.setText(this._previousText),this.setRole(r.role),this.setAttachments(r.attachments??[]),this._nonTextParts=r.content.filter(e=>"text"!==e.type),this.setRunConfig({...e.composer.runConfig})}get canCancel(){return!0}getAttachmentAdapter(){return this.runtime.adapters?.attachments}_nonTextParts;_previousText;_parentId;_sourceId;async handleSend(e){eS(e)!==this._previousText&&this.runtime.append({...e,content:[...e.content,...this._nonTextParts],parentId:this._parentId,sourceId:this._sourceId}),this.handleCancel()}handleCancel(){this.endEditCallback(),this._notifySubscribers()}},nS=class{constructor(e){this._contextProvider=e}_subscriptions=new Set;_isInitialized=!1;repository=new Gk;get messages(){return this.repository.getMessages()}get state(){let e;for(const t of this.messages)if("assistant"===t.role){e=t;break}return e?.metadata.unstable_state??null}composer=new Zk(this);getModelContext(){return this._contextProvider.getModelContext()}_editComposers=new Map;getEditComposer(e){return this._editComposers.get(e)}beginEdit(e){if(this._editComposers.has(e))throw new Error("Edit already in progress");this._editComposers.set(e,new tS(this,()=>this._editComposers.delete(e),this.repository.getMessage(e))),this._notifySubscribers()}getMessageById(e){return this.repository.getMessage(e)}getBranches(e){return this.repository.getBranches(e)}switchToBranch(e){this.repository.switchToBranch(e),this._notifySubscribers()}_notifySubscribers(){for(const e of this._subscriptions)e()}_notifyEventSubscribers(e){const t=this._eventSubscribers.get(e);if(t)for(const e of t)e()}subscribe(e){return this._subscriptions.add(e),()=>this._subscriptions.delete(e)}_submittedFeedback={};getSubmittedFeedback(e){return this._submittedFeedback[e]}submitFeedback({messageId:e,type:t}){const n=this.adapters?.feedback;if(!n)throw new Error("Feedback adapter not configured");const{message:r}=this.repository.getMessage(e);n.submit({message:r,type:t}),this._submittedFeedback[e]={type:t},this._notifySubscribers()}_stopSpeaking;speech;speak(e){const t=this.adapters?.speech;if(!t)throw new Error("Speech adapter not configured");const{message:n}=this.repository.getMessage(e);this._stopSpeaking?.();const r=t.speak(eS(n)),o=r.subscribe(()=>{"ended"===r.status.type?(this._stopSpeaking=void 0,this.speech=void 0):this.speech={messageId:e,status:r.status},this._notifySubscribers()});this.speech={messageId:e,status:r.status},this._notifySubscribers(),this._stopSpeaking=()=>{r.cancel(),o(),this.speech=void 0,this._stopSpeaking=void 0}}stopSpeaking(){if(!this._stopSpeaking)throw new Error("No message is being spoken");this._stopSpeaking(),this._notifySubscribers()}ensureInitialized(){this._isInitialized||(this._isInitialized=!0,this._notifyEventSubscribers("initialize"))}export(){return this.repository.export()}import(e){this.ensureInitialized(),this.repository.clear(),this.repository.import(e),this._notifySubscribers()}reset(e){this.import(Qk(e??[]))}_eventSubscribers=new Map;unstable_on(e,t){if("model-context-update"===e)return this._contextProvider.subscribe?.(t)??(()=>{});const n=this._eventSubscribers.get(e);return n?n.add(t):this._eventSubscribers.set(e,new Set([t])),()=>{this._eventSubscribers.get(e).delete(t)}}}
1,rS=class extends Error{name="AbortError";detach;constructor(e,t){super(t),this.detach=e}},oS=class extends nS{capabilities={switchToBranch:!0,edit:!0,reload:!0,cancel:!0,unstable_copy:!0,speech:!1,attachments:!1,feedback:!1};abortController=null;isDisabled=!1;_isLoading=!1;get isLoading(){return this._isLoading}_suggestions=[];_suggestionsController=null;get suggestions(){return this._suggestions}get adapters(){return this._options.adapters}constructor(e,t){super(e),this.__internal_setOptions(t)}_options;_lastRunConfig={};get extras(){}__internal_setOptions(e){if(this._options===e)return;this._options=e;let t=!1;const n=void 0!==e.adapters?.speech;this.capabilities.speech!==n&&(this.capabilities.speech=n,t=!0);const r=void 0!==e.adapters?.attachments;this.capabilities.attachments!==r&&(this.capabilities.attachments=r,t=!0);const o=void 0!==e.adapters?.feedback;this.capabilities.feedback!==o&&(this.capabilities.feedback=o,t=!0),t&&this._notifySubscribers()}_loadPromise;__internal_load(){if(this._loadPromise)return this._loadPromise;const e=this.adapters.history?.load()??Promise.resolve(null);return this._isLoading=!0,this._notifySubscribers(),this._loadPromise=e.then(e=>{if(!e)return;this.repository.import(e),this._notifySubscribers();const t=this.adapters.history?.resume?.bind(this.adapters.history);e.unstable_resume&&t&&this.startRun({parentId:this.repository.headId,sourceId:this.repository.headId,runConfig:this._lastRunConfig},t)}).finally(()=>{this._isLoading=!1,this._notifySubscribers()}),this._loadPromise}async append(e){this.ensureInitialized();const t=qk(e,Fk(),{type:"complete",reason:"unknown"});this.repository.addOrUpdateMessage(e.parentId,t),this._options.adapters.history?.append({parentId:e.parentId,message:t});e.startRun??"user"===e.role?await this.startRun({parentId:t.id,sourceId:e.sourceId,runConfig:e.runConfig??{}}):(this.repository.resetHead(t.id),this._notifySubscribers())}resumeRun({stream:e,...t}){return this.startRun(t,e)}async startRun({parentId:e,runConfig:t},n){this.ensureInitialized(),this.repository.resetHead(e);let r={id:Fk(),role:"assistant",status:{type:"running"},content:[],metadata:{unstable_state:this.state,unstable_annotations:[],unstable_data:[],steps:[],custom:{}},createdAt:new Date};this._notifyEventSubscribers("run-start");try{this._suggestions=[],this._suggestionsController?.abort(),this._suggestionsController=null;do{r=await this.performRoundtrip(e,r,t,n),n=void 0}while(Hk(r,this._options.unstable_humanToolNames))}finally{this._notifyEventSubscribers("run-end")}this._suggestionsController=new AbortController;const o=this._suggestionsController.signal;if(this.adapters.suggestion&&"requires-action"!==r.status?.type){const e=this.adapters.suggestion?.generate({messages:this.messages});if(Symbol.asyncIterator in e)for await(const t of e){if(o.aborted)break;this._suggestions=t}else{const t=await e;if(o.aborted)return;this._suggestions=t}}}async performRoundtrip(e,t,n,r){const o=this.repository.getMessages();this.abortController?.abort(),this.abortController=new AbortController;const i=t.content,a=t.metadata?.unstable_annotations,s=t.metadata?.unstable_data,l=t.metadata?.steps,u=t.metadata?.custom,c=n=>{const r=n.metadata?.steps,o=r?[...l??[],...r]:void 0,c=n.metadata?.unstable_annotations,d=n.metadata?.unstable_data,f=c?[...a??[],...c]:void 0,p=d?[...s??[],...d]:void 0;t={...t,...n.content?{content:[...i,...n.content??[]]}:void 0,status:n.status??t.status,...n.metadata?{metadata:{...t.metadata,...n.metadata.unstable_state?{unstable_state:n.metadata.unstable_state}:void 0,...f?{unstable_annotations:f}:void 0,...p?{unstable_data:p}:void 0,...o?{steps:o}:void 0,...n.metadata?.custom?{custom:{...u??{},...n.metadata.custom}}:void 0}}:void 0},this.repository.addOrUpdateMessage(e,t),this._notifySubscribers()},d=this._options.maxSteps??2;if((t.metadata?.steps?.length??0)>=d)return c({status:{type:"incomplete",reason:"tool-calls"}}),t;c({status:{type:"running"}});try{this._lastRunConfig=n??{};const e=this.getModelContext();r=r??this.adapters.chatModel.run.bind(this.adapters.chatModel);const i=this.abortController.signal,a=r({messages:o,runConfig:this._lastRunConfig,abortSignal:i,context:e,config:e,unstable_assistantMessageId:t.id,unstable_getMessage:()=>t});if(Symbol.asyncIterator in a)for await(const e of a){if(i.aborted){c({status:{type:"incomplete",reason:"cancelled"}});break}c(e)}else c(await a);"running"===t.status.type&&c({status:{type:"complete",reason:"unknown"}})}catch(e){if(!(e instanceof rS))throw c({status:{type:"incomplete",reason:"error",error:e instanceof Error?e.message:`[${typeof e}] ${new String(e).toString()}`}}),e;c({status:{type:"incomplete",reason:"cancelled"}})}finally{this.abortController=null,"complete"!==t.status.type&&"incomplete"!==t.status.type||await(this._options.adapters.history?.append({parentId:e,message:t}))}return t}detach(){const e=new rS(!0);this.abortController?.abort(e),this.abortController=null}cancelRun(){const e=new rS(!1);this.abortController?.abort(e),this.abortController=null}addToolResult({messageId:e,toolCallId:t,result:n,isError:r,artifact:o}){const i=this.repository.getMessage(e),{parentId:a}=i;let{message:s}=i;if("assistant"!==s.role)throw new Error("Tried to add tool result to non-assistant message");let l=!1,u=!1;const c=s.content.map(e=>"tool-call"!==e.type||e.toolCallId!==t?e:(u=!0,e.result||(l=!0),{...e,result:n,artifact:o,isError:r}));if(!u)throw new Error("Tried to add tool result to non-existing tool call");s={...s,content:c}
1,this.repository.addOrUpdateMessage(a,s),l&&Hk(s,this._options.unstable_humanToolNames)&&this.performRoundtrip(a,s,this._lastRunConfig)}},iS=Object.freeze([]),aS=class extends Jk{_mainThread;constructor(e){super(),this._mainThread=e()}get isLoading(){return!1}getMainThreadRuntimeCore(){return this._mainThread}get newThreadId(){throw new Error("Method not implemented.")}get threadIds(){throw iS}get archivedThreadIds(){throw iS}get mainThreadId(){return"__DEFAULT_ID__"}getThreadRuntimeCore(){throw new Error("Method not implemented.")}getLoadThreadsPromise(){throw new Error("Method not implemented.")}getItemById(e){if(e===this.mainThreadId)return{status:"regular",threadId:this.mainThreadId,remoteId:this.mainThreadId,externalId:void 0,title:void 0,isMain:!0};throw new Error("Method not implemented")}async switchToThread(){throw new Error("Method not implemented.")}switchToNewThread(){throw new Error("Method not implemented.")}rename(){throw new Error("Method not implemented.")}archive(){throw new Error("Method not implemented.")}detach(){throw new Error("Method not implemented.")}unarchive(){throw new Error("Method not implemented.")}delete(){throw new Error("Method not implemented.")}initialize(){throw new Error("Method not implemented.")}generateTitle(){throw new Error("Method not implemented.")}},sS=class extends Rk{threads;Provider=void 0;_options;constructor(e,t){super(),this._options=e,this.threads=new aS(()=>new oS(this._contextProvider,this._options)),t&&this.threads.getMainThreadRuntimeCore().import(Qk(t))}},lS=(0,i.createContext)(null),uS=({adapters:e,children:t})=>{const n=(0,i.useContext)(lS);return(0,Gr.jsx)(lS.Provider,{value:{...n,...e},children:t})},cS=({runtime:e,children:t})=>{const n=(e=>{const[t]=(0,i.useState)(()=>ru(()=>e));return(0,i.useEffect)(()=>{Nl(e),t.setState(e,!0)},[e,t]),t})(e),[r]=(0,i.useState)(()=>({useThreadListItemRuntime:n}));return(0,Gr.jsx)(ec.Provider,{value:r,children:t})},dS=class extends Jk{useRuntimeHook;instances=new Map;useAliveThreadsKeysChanged=ru(()=>({}));constructor(e){super(),this.useRuntimeHook=ru(()=>({useRuntime:e}))}startThreadRuntime(e){return this.instances.has(e)||(this.instances.set(e,{}),this.useAliveThreadsKeysChanged.setState({},!0)),new Promise((t,n)=>{const r=()=>{const r=this.instances.get(e);if(r){if(!r.runtime)return;o(),t(r.runtime)}else o(),n(new Error("Thread was deleted before runtime was started"))},o=this.subscribe(r);r()})}getThreadRuntimeCore(e){const t=this.instances.get(e);if(t)return t.runtime}stopThreadRuntime(e){this.instances.delete(e),this.useAliveThreadsKeysChanged.setState({},!0)}setRuntimeHook(e){this.useRuntimeHook.getState().useRuntime!==e&&this.useRuntimeHook.setState({useRuntime:e},!0)}_InnerActiveThreadProvider=()=>{const{id:e}=rc(),{useRuntime:t}=this.useRuntimeHook(),n=t(),r=n.thread.__internal_threadBinding,o=(0,i.useCallback)(()=>{const t=this.instances.get(e);if(!t)throw new Error("Thread not found. This is a bug in assistant-ui.");t.runtime=r.getState(),a&&this._notifySubscribers()},[e,r]),a=(0,i.useRef)(!1);a.current||o(),(0,i.useEffect)(()=>(a.current=!0,o(),r.outerSubscribe(o)),[r,o]);const s=nc();return(0,i.useEffect)(()=>n.threads.main.unstable_on("initialize",()=>{if("new"===s.getState().status){s.initialize();const e=n.thread.unstable_on("run-end",()=>{e(),s.generateTitle()})}}),[n,s]),null};_OuterActiveThreadProvider=(0,i.memo)(({threadId:e,provider:t})=>{const n=cc(),r=(0,i.useMemo)(()=>n.threads.getItemById(e),[n,e]);return(0,Gr.jsx)(cS,{runtime:r,children:(0,Gr.jsx)(t,{children:(0,Gr.jsx)(this._InnerActiveThreadProvider,{})})})});__internal_RenderThreadRuntimes=({provider:e})=>(this.useAliveThreadsKeysChanged(),Array.from(this.instances.keys()).map(t=>(0,Gr.jsx)(this._OuterActiveThreadProvider,{threadId:t,provider:e},t)))},fS=new Error("This is the empty thread, a placeholder for the main thread. You cannot perform any actions on this thread instance. This error is probably because you tried to call a thread method in your render function. Call the method inside a `useEffect` hook instead."),pS={getMessageById(){},getBranches:()=>[],switchToBranch(){throw fS},append(){throw fS},startRun(){throw fS},resumeRun(){throw fS},cancelRun(){throw fS},addToolResult(){throw fS},speak(){throw fS},stopSpeaking(){throw fS},getSubmittedFeedback(){},submitFeedback(){throw fS},getModelContext:()=>({}),composer:{attachments:[],getAttachmentAccept:()=>"*",async addAttachment(){throw fS},async removeAttachment(){throw fS},isEditing:!1,canCancel:!1,isEmpty:!0,text:"",setText(){throw fS},role:"user",setRole(){throw fS},runConfig:{},setRunConfig(){throw fS},async reset(){},async clearAttachments(){},send(){throw fS},cancel(){},subscribe:()=>()=>{},unstable_on:()=>()=>{}},getEditComposer(){},beginEdit(){throw fS},speech:void 0,capabilities:{switchToBranch:!1,edit:!1,reload:!1,cancel:!1,unstable_copy:!1,speech:!1,attachments:!1,feedback:!1},isDisabled:!0,isLoading:!1,messages:[],state:null,suggestions:[],extras:void 0,subscribe:()=>()=>{},import(){throw fS},export:()=>({messages:[]}),reset(){throw fS},unstable_on:()=>()=>{}},hS=(e,t,n)=>n.reduce((e,n)=>n?.(e,t)??e,e),mS=class extends Jk{_pendingTransforms=[];_baseValue;_cachedValue;constructor(e){super(),this._baseValue=e,this._cachedValue=e}
1_updateState(){this._cachedValue=this._pendingTransforms.reduce((e,t)=>hS(e,t.task,[t.loading,t.optimistic]),this._baseValue),this._notifySubscribers()}get baseValue(){return this._baseValue}get value(){return this._cachedValue}update(e){this._baseValue=e,this._updateState()}async optimisticUpdate(e){const t=e.execute(),n={...e,task:t};try{this._pendingTransforms.push(n),this._updateState();const r=await t;return this._baseValue=hS(this._baseValue,r,[e.optimistic,e.then]),r}finally{const e=this._pendingTransforms.indexOf(n);e>-1&&this._pendingTransforms.splice(e,1),this._updateState()}}},gS=Lk("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",7),yS=class e{_state;constructor(e=null){this._state=e}get state(){return this._state}append(t){this._state=t.reduce((t,n)=>e.apply(t,n),this._state)}static apply(t,n){const r=n.type;switch(r){case"set":return e.updatePath(t,n.path,()=>n.value);case"append-text":return e.updatePath(t,n.path,e=>{if("string"!=typeof e)throw new Error(`Expected string at path [${n.path.join(", ")}]`);return e+n.value});default:throw new Error(`Invalid operation type: ${r}`)}}static updatePath(e,t,n){if(0===t.length)return n(e);if(e??={},"object"!=typeof e)throw new Error(`Invalid path: [${t.join(", ")}]`);const[r,...o]=t;if(Array.isArray(e)){const i=Number(r);if(isNaN(i))throw new Error(`Expected array index at [${t.join(", ")}]`);if(i>e.length||i<0)throw new Error("Insert array index out of bounds");const a=[...e];return a[i]=this.updatePath(a[i],o,n),a}const i={...e};return i[r]=this.updatePath(i[r],o,n),i}},bS=()=>({role:"assistant",status:{type:"running"},parts:[],get content(){return this.parts},metadata:{unstable_state:null,unstable_data:[],unstable_annotations:[],steps:[],custom:{}}}),vS=(e,t,n)=>{if(0===e.parts.length)throw new Error("No parts available to update.");if(1!==t.path.length)throw new Error("Nested paths are not supported yet.");const r=t.path[0],o=n(e.parts[r]);return{...e,parts:[...e.parts.slice(0,r),o,...e.parts.slice(r+1)],get content(){return this.parts}}},wS=(e,t)=>{const n=t.part;if("text"===n.type||"reasoning"===n.type){const t={type:n.type,text:"",status:{type:"running"},...n.parentId&&{parentId:n.parentId}};return{...e,parts:[...e.parts,t],get content(){return this.parts}}}if("tool-call"===n.type){const t={type:"tool-call",state:"partial-call",status:{type:"running",isArgsComplete:!1},toolCallId:n.toolCallId,toolName:n.toolName,argsText:"",args:{},...n.parentId&&{parentId:n.parentId}};return{...e,parts:[...e.parts,t],get content(){return this.parts}}}if("source"===n.type){const t={type:"source",sourceType:n.sourceType,id:n.id,url:n.url,...n.title?{title:n.title}:void 0,...n.parentId&&{parentId:n.parentId}};return{...e,parts:[...e.parts,t],get content(){return this.parts}}}if("file"===n.type){const t={type:"file",mimeType:n.mimeType,data:n.data};return{...e,parts:[...e.parts,t],get content(){return this.parts}}}throw new Error(`Unsupported part type: ${n.type}`)},xS=(e,t)=>{if("incomplete"===e.status?.type&&"error"===e.status?.reason)return e;const n=kS(t);return{...e,status:n}},kS=e=>"tool-calls"===e.finishReason?{type:"requires-action",reason:"tool-calls"}:"stop"===e.finishReason||"unknown"===e.finishReason?{type:"complete",reason:e.finishReason}:{type:"incomplete",reason:e.finishReason},SS=class extends TransformStream{constructor({initialMessage:e}={}){let t=e??bS();super({transform(e,n){const r=e.type;switch(r){case"part-start":t=wS(t,e);break;case"tool-call-args-text-finish":t=((e,t)=>vS(e,t,e=>{if("tool-call"!==e.type)throw new Error("Last is not a tool call");return"partial-call"!==e.state?e:{...e,state:"call"}}))(t,e);break;case"part-finish":t=((e,t)=>vS(e,t,e=>({...e,status:{type:"complete",reason:"unknown"}})))(t,e);break;case"text-delta":t=((e,t)=>vS(e,t,e=>{if("text"===e.type||"reasoning"===e.type)return{...e,text:e.text+t.textDelta};if("tool-call"===e.type){const n=e.argsText+t.textDelta,r=zk(n)??e.args;return{...e,argsText:n,args:r}}throw new Error("text-delta received but part is neither text nor tool-call")}))(t,e);break;case"result":t=((e,t)=>vS(e,t,e=>{if("tool-call"===e.type)return{...e,state:"result",...void 0!==t.artifact?{artifact:t.artifact}:{},result:t.result,isError:t.isError??!1,status:{type:"complete",reason:"stop"}};throw new Error("Result chunk received but part is not a tool-call")}
1))(t,e);break;case"message-finish":t=xS(t,e);break;case"annotations":t=((e,t)=>({...e,metadata:{...e.metadata,unstable_annotations:[...e.metadata.unstable_annotations,...t.annotations]}}))(t,e);break;case"data":t=((e,t)=>({...e,metadata:{...e.metadata,unstable_data:[...e.metadata.unstable_data,...t.data]}}))(t,e);break;case"step-start":t=((e,t)=>({...e,metadata:{...e.metadata,steps:[...e.metadata.steps,{state:"started",messageId:t.messageId}]}}))(t,e);break;case"step-finish":t=((e,t)=>{const n=e.metadata.steps.slice(),r=n.length-1;return n.length>0&&"started"===n[r]?.state?n[r]={...n[r],state:"finished",finishReason:t.finishReason,usage:t.usage,isContinued:t.isContinued}:n.push({state:"finished",messageId:gS(),finishReason:t.finishReason,usage:t.usage,isContinued:t.isContinued}),{...e,metadata:{...e.metadata,steps:n}}})(t,e);break;case"error":t=((e,t)=>({...e,status:{type:"incomplete",reason:"error",error:t.error}}))(t,e);break;case"update-state":t=((e,t)=>{const n=new yS(e.metadata.unstable_state);return n.append(t.operations),{...e,metadata:{...e.metadata,unstable_state:n.state}}})(t,e);break;default:throw new Error(`Unsupported chunk type: ${r}`)}n.enqueue(t)},flush(e){if("running"===t.status?.type){const n="tool-call"===t.parts?.at(-1)?.type;t=xS(t,{type:"message-finish",path:[],finishReason:n?"tool-calls":"unknown",usage:{promptTokens:0,completionTokens:0}}),e.enqueue(t)}}})}},_S=class e{constructor(e){this.readable=e,this.readable=e}static fromAssistantStream(t){return new e(t.pipeThrough(new SS))}async unstable_result(){let e;for await(const t of this)e=t;return e||{role:"assistant",status:{type:"complete",reason:"unknown"},parts:[],content:[],metadata:{unstable_state:null,unstable_data:[],unstable_annotations:[],steps:[],custom:{}}}}[Symbol.asyncIterator](){const e=this.readable.getReader();return{async next(){const{done:t,value:n}=await e.read();return t?{done:!0,value:void 0}:{done:!1,value:n}}}}tee(){const[t,n]=this.readable.tee();return[new e(t),new e(n)]}};function ES(e){return e}var CS=(e,t)=>{const n=e.threadIdMap[t];if(void 0!==n)return e.threadData[n]},TS=(e,t,n)=>{const r=CS(e,t);if(!r)return e;const{threadId:o,remoteId:i,status:a}=r;if(a===n)return e;const s={...e};switch(a){case"new":s.newThreadId=void 0;break;case"regular":s.threadIds=s.threadIds.filter(e=>e!==o);break;case"archived":s.archivedThreadIds=s.archivedThreadIds.filter(e=>e!==o);break;default:throw new Error(`Unsupported state: ${a}`)}switch(n){case"regular":s.threadIds=[o,...s.threadIds];break;case"archived":s.archivedThreadIds=[o,...s.archivedThreadIds];break;case"deleted":s.threadData=Object.fromEntries(Object.entries(s.threadData).filter(([e])=>e!==o)),s.threadIdMap=Object.fromEntries(Object.entries(s.threadIdMap).filter(([e])=>e!==o&&e!==i));break;default:throw new Error(`Unsupported state: ${n}`)}return"deleted"!==n&&(s.threadData={...s.threadData,[o]:{...r,status:n}}),s},OS=class extends Jk{constructor(e,t){super(),this.contextProvider=t,this._state.subscribe(()=>this._notifySubscribers()),this._hookManager=new dS(e.runtimeHook),this.useProvider=ru(()=>({Provider:e.adapter.unstable_Provider??i.Fragment})),this.__internal_setOptions(e),this.switchToNewThread()}_options;_hookManager;_loadThreadsPromise;_mainThreadId;_state=new mS({isLoading:!1,newThreadId:void 0,threadIds:[],archivedThreadIds:[],threadIdMap:{},threadData:{}});getLoadThreadsPromise(){return this._loadThreadsPromise||(this._loadThreadsPromise=this._state.optimisticUpdate({execute:()=>this._options.adapter.list(),loading:e=>({...e,isLoading:!0}),then:(e,t)=>{const n=[],r=[],o={},i={};for(const e of t.threads){switch(e.status){case"regular":n.push(e.remoteId);break;case"archived":r.push(e.remoteId);break;default:{const t=e.status;throw new Error(`Unsupported state: ${t}`)}}const t=ES(e.remoteId);o[e.remoteId]=t,i[t]={threadId:e.remoteId,remoteId:e.remoteId,externalId:e.externalId,status:e.status,title:e.title,initializeTask:Promise.resolve({remoteId:e.remoteId,externalId:e.externalId})}}return{...e,threadIds:n,archivedThreadIds:r,threadIdMap:{...e.threadIdMap,...o},threadData:{...e.threadData,...i}}}}).then(()=>{})),this._loadThreadsPromise}useProvider;__internal_setOptions(e){if(this._options===e)return;this._options=e;const t=e.adapter.unstable_Provider??i.Fragment;t!==this.useProvider.getState().Provider&&this.useProvider.setState({Provider:t},!0),this._hookManager.setRuntimeHook(e.runtimeHook)}__internal_load(){this.getLoadThreadsPromise()}get isLoading(){return this._state.value.isLoading}get threadIds(){return this._state.value.threadIds}get archivedThreadIds(){return this._state.value.archivedThreadIds}get newThreadId(){return this._state.value.newThreadId}get mainThreadId(){return this._mainThreadId}getMainThreadRuntimeCore(){const e=this._hookManager.getThreadRuntimeCore(this._mainThreadId);return e||pS}getThreadRuntimeCore(e){const t=this.getItemById(e);if(!t)throw new Error("Thread not found");const n=this._hookManager.getThreadRuntimeCore(t.threadId);if(!n)throw new Error("Thread not found");return n}getItemById(e){return CS(this._state.value,e)}async switchToThread(e){const t=this.getItemById(e);if(!t)throw new Error("Thread not found");if(this._mainThreadId===t.threadId)return;const n=this._hookManager.startThreadRuntime(t.threadId);void 0!==this.mainThreadId?await n:n.then(()=>this._notifySubscribers()),"archived"===t.status&&await this.unarchive(t.threadId),this._mainThreadId=t.threadId,this._notifySubscribers()}async switchToNewThread(){for(;void 0!==this._state.baseValue.newThreadId&&void 0===this._state.value.newThreadId;)await this._state.waitForUpdate();const e=this._state.value;let t=this._state.value.newThreadId;if(void 0===t){do{t=`__LOCALID_${Fk()}`}while(e.threadIdMap[t]);const n=t;this._state.update({...e,newThreadId:t,threadIdMap:{...e.threadIdMap,[t]:n},threadData:{...e.threadData,[t]:{status:"new",threadId:t}}})}return this.switchToThread(t)}initialize=async e=>{if(this._state.value.newThreadId!==e){const t=this.getItemById(e);if(!t)throw new Error("Thread not found");if("new"===t.status)throw new Error("Unexpected new state");return t.initializeTask}return this._state.optimisticUpdate({execute:()=>this._options.adapter.initialize(e),optimistic:t=>TS(t,e,"regular"),loading:(t,n)=>{const r=e;return{...t,threadData:{...t.threadData,[r]:{...t.threadData[r],initializeTask:n}}}},then:(t,{remoteId:n,externalId:r})=>{const o=CS(t,e);if(!o)return t;const i=e;return{...t,threadIdMap:{...t.threadIdMap,[n]:i}
1,threadData:{...t.threadData,[i]:{...o,initializeTask:Promise.resolve({remoteId:n,externalId:r}),remoteId:n,externalId:r}}}}})};generateTitle=async e=>{const t=this.getItemById(e);if(!t)throw new Error("Thread not found");if("new"===t.status)throw new Error("Thread is not yet initialized");const{remoteId:n}=await t.initializeTask,r=this._hookManager.getThreadRuntimeCore(t.threadId);if(!r)return;const o=r.messages,i=await this._options.adapter.generateTitle(n,o),a=_S.fromAssistantStream(i);for await(const e of a){const n=e.parts.filter(e=>"text"===e.type)[0]?.text,r=this._state.baseValue;this._state.update({...r,threadData:{...r.threadData,[t.threadId]:{...t,title:n}}})}};rename(e,t){const n=this.getItemById(e);if(!n)throw new Error("Thread not found");if("new"===n.status)throw new Error("Thread is not yet initialized");return this._state.optimisticUpdate({execute:async()=>{const{remoteId:e}=await n.initializeTask;return this._options.adapter.rename(e,t)},optimistic:n=>{const r=CS(n,e);return r?{...n,threadData:{...n.threadData,[r.threadId]:{...r,title:t}}}:n}})}async _ensureThreadIsNotMain(e){if(e===this.newThreadId)throw new Error("Cannot ensure new thread is not main");e===this._mainThreadId&&await this.switchToNewThread()}async archive(e){const t=this.getItemById(e);if(!t)throw new Error("Thread not found");if("regular"!==t.status)throw new Error("Thread is not yet initialized or already archived");return this._state.optimisticUpdate({execute:async()=>{await this._ensureThreadIsNotMain(t.threadId);const{remoteId:e}=await t.initializeTask;return this._options.adapter.archive(e)},optimistic:e=>TS(e,t.threadId,"archived")})}unarchive(e){const t=this.getItemById(e);if(!t)throw new Error("Thread not found");if("archived"!==t.status)throw new Error("Thread is not archived");return this._state.optimisticUpdate({execute:async()=>{try{const{remoteId:e}=await t.initializeTask;return await this._options.adapter.unarchive(e)}catch(e){throw await this._ensureThreadIsNotMain(t.threadId),e}},optimistic:e=>TS(e,t.threadId,"regular")})}async delete(e){const t=this.getItemById(e);if(!t)throw new Error("Thread not found");if("regular"!==t.status&&"archived"!==t.status)throw new Error("Thread is not yet initialized");return this._state.optimisticUpdate({execute:async()=>{await this._ensureThreadIsNotMain(t.threadId);const{remoteId:e}=await t.initializeTask;return await this._options.adapter.delete(e)},optimistic:e=>TS(e,t.threadId,"deleted")})}async detach(e){const t=this.getItemById(e);if(!t)throw new Error("Thread not found");if("regular"!==t.status&&"archived"!==t.status)throw new Error("Thread is not yet initialized");await this._ensureThreadIsNotMain(t.threadId),this._hookManager.stopThreadRuntime(t.threadId)}useBoundIds=ru(()=>[]);__internal_RenderComponent=()=>{const e=(0,i.useId)();(0,i.useEffect)(()=>(this.useBoundIds.setState(t=>[...t,e],!0),()=>{this.useBoundIds.setState(t=>t.filter(t=>t!==e),!0)}),[e]);const t=this.useBoundIds(),{Provider:n}=this.useProvider(),r={modelContext:this.contextProvider};return(0===t.length||t[0]===e)&&(0,Gr.jsx)(uS,{adapters:r,children:(0,Gr.jsx)(this._hookManager.__internal_RenderThreadRuntimes,{provider:n})})}},PS=class{_subscriptions=new Set;_connection;get isConnected(){return!!this._connection}notifySubscribers(){for(const e of this._subscriptions)e()}_updateConnection(){if(this._subscriptions.size>0){if(this._connection)return;this._connection=this._connect()}else this._connection?.(),this._connection=void 0}subscribe(e){return this._subscriptions.add(e),this._updateConnection(),()=>{this._subscriptions.delete(e),this._updateConnection()}}},IS=Symbol("skip-update"),jS=class extends PS{constructor(e){super(),this.binding=e}get path(){return this.binding.path}_previousStateDirty=!0;_previousState;getState=()=>{if(!this.isConnected||this._previousStateDirty){const e=this.binding.getState();e!==IS&&(this._previousState=e),this._previousStateDirty=!1}if(void 0===this._previousState)throw new Error("Entry not available in the store");return this._previousState};_connect(){return this.binding.subscribe(()=>{this._previousStateDirty=!0,this.notifySubscribers()})}},AS=class{constructor(e,t){this._core=e,this._threadListBinding=t}get path(){return this._core.path}__internal_bindMethods(){this.switchTo=this.switchTo.bind(this),this.rename=this.rename.bind(this),this.archive=this.archive.bind(this),this.unarchive=this.unarchive.bind(this),this.delete=this.delete.bind(this),this.initialize=this.initialize.bind(this),this.generateTitle=this.generateTitle.bind(this),this.subscribe=this.subscribe.bind(this),this.unstable_on=this.unstable_on.bind(this),this.get
1State=this.getState.bind(this),this.detach=this.detach.bind(this)}getState(){return this._core.getState()}switchTo(){const e=this._core.getState();return this._threadListBinding.switchToThread(e.id)}rename(e){const t=this._core.getState();return this._threadListBinding.rename(t.id,e)}archive(){const e=this._core.getState();return this._threadListBinding.archive(e.id)}unarchive(){const e=this._core.getState();return this._threadListBinding.unarchive(e.id)}delete(){const e=this._core.getState();return this._threadListBinding.delete(e.id)}initialize(){const e=this._core.getState();return this._threadListBinding.initialize(e.id)}generateTitle(){const e=this._core.getState();return this._threadListBinding.generateTitle(e.id)}unstable_on(e,t){let n=this._core.getState().isMain;return this.subscribe(()=>{const r=this._core.getState().isMain;n!==r&&(n=r,("switched-to"!==e||r)&&("switched-away"===e&&r||t()))})}subscribe(e){return this._core.subscribe(e)}detach(){const e=this._core.getState();this._threadListBinding.detach(e.id)}};var NS=class extends PS{constructor(e){super(),this.binding=e;const t=e.getState();if(t===IS)throw new Error("Entry not available in the store");this._previousState=t}get path(){return this.binding.path}_previousState;getState=()=>(this.isConnected||this._syncState(),this._previousState);_syncState(){const e=this.binding.getState();return e!==IS&&(!function(e,t){if(void 0===e&&void 0===t)return!0;if(void 0===e)return!1;if(void 0===t)return!1;for(const n of Object.keys(e)){const r=e[n],o=t[n];if(!Object.is(r,o))return!1}return!0}(e,this._previousState)&&(this._previousState=e,!0))}_connect(){return this.binding.subscribe(()=>{this._syncState()&&this.notifySubscribers()})}},RS=Symbol("innerMessage"),MS=(Symbol("innerMessages"),class{constructor(e){this._core=e}get path(){return this._core.path}__internal_bindMethods(){this.getState=this.getState.bind(this),this.remove=this.remove.bind(this),this.subscribe=this.subscribe.bind(this)}getState(){return this._core.getState()}subscribe(e){return this._core.subscribe(e)}}),DS=class extends MS{constructor(e,t){super(e),this._composerApi=t}remove(){const e=this._composerApi.getState();if(!e)throw new Error("Composer is not available");return e.removeAttachment(this.getState().id)}},zS=class extends DS{get source(){return"thread-composer"}},LS=class extends DS{get source(){return"edit-composer"}},FS=class extends MS{get source(){return"message"}constructor(e){super(e)}remove(){throw new Error("Message attachments cannot be removed")}},BS=class extends PS{constructor(e){super(),this.config=e}getState(){return this.config.binding.getState()}outerSubscribe(e){return this.config.binding.subscribe(e)}_connect(){const e=()=>{this.notifySubscribers()};let t=this.config.binding.getState(),n=t?.unstable_on(this.config.event,e);const r=this.outerSubscribe(()=>{const r=this.config.binding.getState();r!==t&&(t=r,n?.(),n=this.config.binding.getState()?.unstable_on(this.config.event,e))});return()=>{r?.(),n?.()}}},US=Object.freeze([]),qS=Object.freeze({}),HS=class{constructor(e){this._core=e}get path(){return this._core.path}__internal_bindMethods(){this.setText=this.setText.bind(this),this.setRunConfig=this.setRunConfig.bind(this),this.getState=this.getState.bind(this),this.subscribe=this.subscribe.bind(this),this.addAttachment=this.addAttachment.bind(this),this.reset=this.reset.bind(this),this.clearAttachments=this.clearAttachments.bind(this),this.send=this.send.bind(this),this.cancel=this.cancel.bind(this),this.setRole=this.setRole.bind(this),this.getAttachmentAccept=this.getAttachmentAccept.bind(this),this.getAttachmentByIndex=this.getAttachmentByIndex.bind(this),this.unstable_on=this.unstable_on.bind(this)}setText(e){const t=this._core.getState();if(!t)throw new Error("Composer is not available");t.setText(e)}setRunConfig(e){const t=this._core.getState();if(!t)throw new Error("Composer is not available");t.setRunConfig(e)}addAttachment(e){const t=this._core.getState();if(!t)throw new Error("Composer is not available");return t.addAttachment(e)}reset(){const e=this._core.getState();if(!e)throw new Error("Composer is not available");return e.reset()}clearAttachments(){const e=this._core.getState();if(!e)throw new Error("Composer is not available");return e.clearAttachments()}send(){const e=this._core.getState();if(!e)throw new Error("Composer is not available");e.send()}cancel(){const e=this._core.getState();if(!e)throw new Error("Composer is not available");e.cancel()}setRole(e){const t=this._core.getState();if(!t)throw new Error("Composer is not available");t.setRole(e)}subscribe(e){return this._core.subscribe(e)}_eventSubscriptionSubjects=new Map;unstable_on(e,t){let n=this._eventSubscriptionSubjects.get(e);return n||(n=new BS({event:e,binding:this._core}),this._eventSubscriptionSubjects.set(e,n)),n.subscribe(t)}getAttachmentAccept(){const e=this._core.getState();if(!e)throw new Error("Composer is not available");return e.getAttachmentAccept()}},$S=class extends HS{get path(){return this._core.path}get type(){return"thread"}_getState;constructor(e){const t=new jS({path:e.path,getState:()=>{return t=e.getState(),Object.freeze({type:"thread",isEditing:t?.isEditing??!1,canCancel:t?.canCancel??!1,isEmpty:t?.isEmpty??!0,attachments:t?.attachments??US,text:t?.text??"",role:t?.role??"user",runConfig:t?.runConfig??qS,value:t?.text??""});var t},subscribe:t=>e.subscribe(t)});super({path:e.path,getState:()=>e.getState(),subscribe:e=>t.subscribe(e)}),this._getState=t.getState.bind(t)}getState(){return this._getState()}getAttachmentByIndex(e){return new zS(new NS({path:{...this.path,attachmentSource:"thread-composer",attachmentSelector:{type:"index",index:e},ref:this.path.ref+`${this.path.ref}.attachments[${e}]`}
1,getState:()=>{const t=this.getState().attachments[e];return t?{...t,source:"thread-composer"}:IS},subscribe:e=>this._core.subscribe(e)}),this._core)}},VS=class extends HS{constructor(e,t){const n=new jS({path:e.path,getState:()=>{return t=e.getState(),Object.freeze({type:"edit",isEditing:t?.isEditing??!1,canCancel:t?.canCancel??!1,isEmpty:t?.isEmpty??!0,text:t?.text??"",role:t?.role??"user",attachments:t?.attachments??US,runConfig:t?.runConfig??qS,value:t?.text??""});var t},subscribe:t=>e.subscribe(t)});super({path:e.path,getState:()=>e.getState(),subscribe:e=>n.subscribe(e)}),this._beginEdit=t,this._getState=n.getState.bind(n)}get path(){return this._core.path}get type(){return"edit"}_getState;__internal_bindMethods(){super.__internal_bindMethods(),this.beginEdit=this.beginEdit.bind(this)}getState(){return this._getState()}beginEdit(){this._beginEdit()}getAttachmentByIndex(e){return new LS(new NS({path:{...this.path,attachmentSource:"edit-composer",attachmentSelector:{type:"index",index:e},ref:this.path.ref+`${this.path.ref}.attachments[${e}]`},getState:()=>{const t=this.getState().attachments[e];return t?{...t,source:"edit-composer"}:IS},subscribe:e=>this._core.subscribe(e)}),this._core)}},WS=class extends PS{constructor(e){super(),this.binding=e}get path(){return this.binding.path}getState(){return this.binding.getState()}outerSubscribe(e){return this.binding.subscribe(e)}_connect(){const e=()=>{this.notifySubscribers()};let t=this.binding.getState(),n=t?.subscribe(e);const r=this.outerSubscribe(()=>{const r=this.binding.getState();r!==t&&(t=r,n?.(),n=this.binding.getState()?.subscribe(e),e())});return()=>{r?.(),n?.()}}},QS=Object.freeze({type:"complete"}),KS=(e,t)=>{const n=e.content[t];if(!n)return IS;const r=((e,t,n)=>{if("assistant"!==e.role)return QS;if("tool-call"===n.type)return n.result?QS:e.status;const r=t===Math.max(0,e.content.length-1);return"requires-action"===e.status.type?QS:r?e.status:QS})(e,t,n);return Object.freeze({...n,[RS]:n[RS],status:r})},YS=class{constructor(e,t){this._core=e,this._threadBinding=t,this.composer=new VS(new WS({path:{...this.path,ref:this.path.ref+`${this.path.ref}.composer`,composerSource:"edit"},getState:this._getEditComposerRuntimeCore,subscribe:e=>this._threadBinding.subscribe(e)}),()=>this._threadBinding.getState().beginEdit(this._core.getState().id))}get path(){return this._core.path}__internal_bindMethods(){this.reload=this.reload.bind(this),this.getState=this.getState.bind(this),this.subscribe=this.subscribe.bind(this),this.getMessagePartByIndex=this.getMessagePartByIndex.bind(this),this.getMessagePartByToolCallId=this.getMessagePartByToolCallId.bind(this),this.getAttachmentByIndex=this.getAttachmentByIndex.bind(this),this.unstable_getCopyText=this.unstable_getCopyText.bind(this),this.speak=this.speak.bind(this),this.stopSpeaking=this.stopSpeaking.bind(this),this.submitFeedback=this.submitFeedback.bind(this),this.switchToBranch=this.switchToBranch.bind(this)}composer;_getEditComposerRuntimeCore=()=>this._threadBinding.getState().getEditComposer(this._core.getState().id);getState(){return this._core.getState()}reload(e={}){const t=this._getEditComposerRuntimeCore(),n=t??this._threadBinding.getState().composer,r=t??n,{runConfig:o=r.runConfig}=e,i=this._core.getState();if("assistant"!==i.role)throw new Error("Can only reload assistant messages");this._threadBinding.getState().startRun({parentId:i.parentId,sourceId:i.id,runConfig:o})}speak(){const e=this._core.getState();return this._threadBinding.getState().speak(e.id)}stopSpeaking(){const e=this._core.getState(),t=this._threadBinding.getState();if(t.speech?.messageId!==e.id)throw new Error("Message is not being spoken");this._threadBinding.getState().stopSpeaking()}submitFeedback({type:e}){const t=this._core.getState();this._threadBinding.getState().submitFeedback({messageId:t.id,type:e})}switchToBranch({position:e,branchId:t}){const n=this._core.getState();if(t&&e)throw new Error("May not specify both branchId and position");
1if(!t&&!e)throw new Error("Must specify either branchId or position");const r=this._threadBinding.getState().getBranches(n.id);let o=t;if("previous"===e?o=r[n.branchNumber-2]:"next"===e&&(o=r[n.branchNumber]),!o)throw new Error("Branch not found");this._threadBinding.getState().switchToBranch(o)}unstable_getCopyText(){return eS(this.getState())}subscribe(e){return this._core.subscribe(e)}getMessagePartByIndex(e){if(e<0)throw new Error("Message part index must be >= 0");return new vc(new NS({path:{...this.path,ref:this.path.ref+`${this.path.ref}.content[${e}]`,messagePartSelector:{type:"index",index:e}},getState:()=>KS(this.getState(),e),subscribe:e=>this._core.subscribe(e)}),this._core,this._threadBinding)}getMessagePartByToolCallId(e){return new vc(new NS({path:{...this.path,ref:this.path.ref+`${this.path.ref}.content[toolCallId=${JSON.stringify(e)}]`,messagePartSelector:{type:"toolCallId",toolCallId:e}},getState:()=>{const t=this._core.getState(),n=t.content.findIndex(t=>"tool-call"===t.type&&t.toolCallId===e);return-1===n?IS:KS(t,n)},subscribe:e=>this._core.subscribe(e)}),this._core,this._threadBinding)}getAttachmentByIndex(e){return new FS(new NS({path:{...this.path,ref:this.path.ref+`${this.path.ref}.attachments[${e}]`,attachmentSource:"message",attachmentSelector:{type:"index",index:e}},getState:()=>{const t=this.getState().attachments,n=t?.[e];return n?{...n,source:"message"}:IS},subscribe:e=>this._core.subscribe(e)}))}},GS=class{get path(){return this._threadBinding.path}get __internal_threadBinding(){return this._threadBinding}_threadBinding;constructor(e,t){const n=new NS({path:e.path,getState:()=>((e,t)=>{const n=e.messages.at(-1);return Object.freeze({threadId:t.id,metadata:t,capabilities:e.capabilities,isDisabled:e.isDisabled,isLoading:e.isLoading,isRunning:"assistant"===n?.role&&"running"===n.status.type,messages:e.messages,state:e.state,suggestions:e.suggestions,extras:e.extras,speech:e.speech})})(e.getState(),t.getState()),subscribe:n=>{const r=e.subscribe(n),o=t.subscribe(n);return()=>{r(),o()}}});this._threadBinding={path:e.path,getState:()=>e.getState(),getStateState:()=>n.getState(),outerSubscribe:t=>e.outerSubscribe(t),subscribe:t=>e.subscribe(t)},this.composer=new $S(new WS({path:{...this.path,ref:this.path.ref+`${this.path.ref}.composer`,composerSource:"thread"},getState:()=>this._threadBinding.getState().composer,subscribe:e=>this._threadBinding.subscribe(e)}))}__internal_bindMethods(){this.append=this.append.bind(this),this.unstable_resumeRun=this.unstable_resumeRun.bind(this),this.startRun=this.startRun.bind(this),this.cancelRun=this.cancelRun.bind(this),this.stopSpeaking=this.stopSpeaking.bind(this),this.export=this.export.bind(this),this.import=this.import.bind(this),this.reset=this.reset.bind(this),this.getMesssageByIndex=this.getMesssageByIndex.bind(this),this.getMesssageById=this.getMesssageById.bind(this),this.subscribe=this.subscribe.bind(this),this.unstable_on=this.unstable_on.bind(this),this.getModelContext=this.getModelContext.bind(this),this.getModelConfig=this.getModelConfig.bind(this),this.getState=this.getState.bind(this)}composer;getState(){return this._threadBinding.getStateState()}append(e){this._threadBinding.getState().append(((e,t)=>"string"==typeof t?{createdAt:new Date,parentId:e.at(-1)?.id??null,sourceId:null,runConfig:{},role:"user",content:[{type:"text",text:t}],attachments:[],metadata:{custom:{}}}:{createdAt:t.createdAt??new Date,parentId:t.parentId??e.at(-1)?.id??null,sourceId:t.sourceId??null,role:t.role??"user",content:t.content,attachments:t.attachments??[],metadata:t.metadata??{custom:{}},runConfig:t.runConfig??{},startRun:t.startRun})(this._threadBinding.getState().messages,e))}subscribe(e){return this._threadBinding.subscribe(e)}getModelContext(){return this._threadBinding.getState().getModelContext()}getModelConfig(){return this.getModelContext()}startRun(e){const t=null===e||"string"==typeof e?{parentId:e}:e;return this._threadBinding.getState().startRun({parentId:(n=t).parentId??null,sourceId:n.sourceId??null,runConfig:n.runConfig??{}});var n}unstable_resumeRun(e){return this._threadBinding.getState().resumeRun({parentId:(t=e).parentId??null,sourceId:t.sourceId??null,runConfig:t.runConfig??{},stream:t.stream});var t}cancelRun(){this._threadBinding.getState().cancelRun()}stopSpeaking(){return this._threadBinding.getState().stopSpeaking()}export(){return this._threadBinding.getState().export()}import(e){this._threadBinding.getState().import(e)}reset(e){this._threadBinding.getState().reset(e)}getMesssageByIndex(e){if(e<0)throw new Error("Message index must be >= 0");return this._getMessageRuntime({...this.path,ref:this.path.ref+`${this.path.ref}.messages[${e}]`,messageSelector:{type:"index",index:e}},()=>{const t=this._threadBinding.getState().messages,n=t[e];if(n)return{message:n,parentId:t[e-1]?.id??null}})}getMesssageById(e){return this._getMessageRuntime({...this.path,ref:this.path.ref+`${this.path.ref}.messages[messageId=${JSON.stringify(e)}]`,messageSelector:{type:"messageId",messageId:e}},()=>this._threadBinding.getState().getMessageById(e))}_getMessageRuntime(e,t){return new YS(new NS({path:e,getState:()=>{const{message:e,parentId:n}=t()??{},{messages:r,speech:o}=this._threadBinding.getState();if(!e||void 0===n)return IS;const i=this._threadBinding.getState(),a=i.getBranches(e.id),s=i.getSubmittedFeedback(e.id);return{...e,[RS]:e[RS],isLast:r.at(-1)?.id===e.id,parentId:n,branchNumber:a.indexOf(e.id)+1,branchCount:a.length,speech:o?.messageId===e.id?o:void 0,submittedFeedback:s}},subscribe:e=>this._threadBinding.subscribe(e)}),this._threadBinding)}_eventSubscriptionSubjects=new Map;unstable_on(e,t){let n=this._eventSubscriptionSubjects.get(e);return n||(n=new BS({event:e,binding:this._threadBinding}),this._eventSubscriptionSubjects.set(e,n)),n.subscribe(t)}},JS=(e,t)=>{if(void 0===t)return IS;const n=e.getItemById(t);return n?{id:n.threadId,threadId:n.threadId,remoteId:n.remoteId,externalId:n.externalId,title:n.title,status:n.status,isMain:n.threadId===e.mainThreadId}:IS},XS=class{constructor(e,t=GS){this._core=e,this._runtimeFactory=t;const n=new jS({path:{},getState:()=>{return{mainThreadId:(t=e).mainThreadId,newThread:t.newThreadId,threads:t.threadIds,archivedThreads:t.archivedThreadIds,isLoading:t.isLoading};var t},subscribe:t=>e.subscribe(t)});this._getState=n.getState.bind(n),this._mainThreadListItemRuntime=new AS(new NS({path:{ref:"threadItems[main]",threadSelector:{type:"main"}},getState:()=>JS(this._core,this._core.mainThreadId),subscribe:e=>this._core.subscribe(e)}),this._core),this.main=new t(new WS({path:{ref:"threads.main",threadSelector:{type:"main"}},getState:()=>e.getMainThreadRuntimeCore(),subscribe:t=>e.subscribe(t)}),this._mainThreadListItemRuntime)}_getState;__internal_bindMethods(){this.switchToThread=this.switchToThread.bind(this),this.switchToNewThread=this.switchToNewThread.bind(this),this.get
1State=this.getState.bind(this),this.subscribe=this.subscribe.bind(this),this.getById=this.getById.bind(this),this.getItemById=this.getItemById.bind(this),this.getItemByIndex=this.getItemByIndex.bind(this),this.getArchivedItemByIndex=this.getArchivedItemByIndex.bind(this)}switchToThread(e){return this._core.switchToThread(e)}switchToNewThread(){return this._core.switchToNewThread()}getState(){return this._getState()}get isLoading(){return this._core.isLoading}subscribe(e){return this._core.subscribe(e)}_mainThreadListItemRuntime;main;get mainItem(){return this._mainThreadListItemRuntime}getById(e){return new this._runtimeFactory(new WS({path:{ref:"threads[threadId="+JSON.stringify(e)+"]",threadSelector:{type:"threadId",threadId:e}},getState:()=>this._core.getThreadRuntimeCore(e),subscribe:e=>this._core.subscribe(e)}),this.mainItem)}getItemByIndex(e){return new AS(new NS({path:{ref:`threadItems[${e}]`,threadSelector:{type:"index",index:e}},getState:()=>JS(this._core,this._core.threadIds[e]),subscribe:e=>this._core.subscribe(e)}),this._core)}getArchivedItemByIndex(e){return new AS(new NS({path:{ref:`archivedThreadItems[${e}]`,threadSelector:{type:"archiveIndex",index:e}},getState:()=>JS(this._core,this._core.archivedThreadIds[e]),subscribe:e=>this._core.subscribe(e)}),this._core)}getItemById(e){return new AS(new NS({path:{ref:`threadItems[threadId=${e}]`,threadSelector:{type:"threadId",threadId:e}},getState:()=>JS(this._core,e),subscribe:e=>this._core.subscribe(e)}),this._core)}},ZS=class{constructor(e){this._core=e,this.threads=new XS(e.threads),this._thread=this.threads.main}threads;get threadList(){return this.threads}_thread;__internal_bindMethods(){this.switchToNewThread=this.switchToNewThread.bind(this),this.switchToThread=this.switchToThread.bind(this),this.registerModelContextProvider=this.registerModelContextProvider.bind(this),this.registerModelConfigProvider=this.registerModelConfigProvider.bind(this),this.reset=this.reset.bind(this)}get thread(){return this._thread}switchToNewThread(){return this._core.threads.switchToNewThread()}switchToThread(e){return this._core.threads.switchToThread(e)}registerModelContextProvider(e){return this._core.registerModelContextProvider(e)}registerModelConfigProvider(e){return this.registerModelContextProvider(e)}reset({initialMessages:e}={}){return this._core.threads.getMainThreadRuntimeCore().import(Qk(e??[]))}},e_=class extends Rk{threads;constructor(e){super(),this.threads=new OS(e,this._contextProvider)}get RenderComponent(){return this.threads.__internal_RenderComponent}},t_=e=>{try{const t=e.split(".")[1];if(!t)throw new Error("Invalid JWT format");let n=t.replace(/-/g,"+").replace(/_/g,"/");for(;n.length%4!=0;)n+="=";const r=atob(n),o=JSON.parse(r).exp;if(!o||"number"!=typeof o)throw new Error('JWT does not contain a valid "exp" field');return 1e3*o}catch(e){throw new Error("Unable to determine the token expiry: "+e)}},n_=class{strategy="jwt";cachedToken=null;tokenExpiry=null;#e;constructor(e){this.#e=e}async getAuthHeaders(){const e=Date.now();if(this.cachedToken&&this.tokenExpiry&&this.tokenExpiry-e>3e4)return{Authorization:`Bearer ${this.cachedToken}`};const t=await this.#e();return!!t&&(this.cachedToken=t,this.tokenExpiry=t_(t),{Authorization:`Bearer ${t}`})}readAuthHeaders(e){const t=e.get("Authorization");if(!t)return;const[n,r]=t.split(" ");if("Bearer"!==n||!r)throw new Error("Invalid auth header received");this.cachedToken=r,this.tokenExpiry=t_(r)}},r_=class{strategy="api-key";#t;#n;#r;constructor(e,t,n){this.#t=e,this.#n=t,this.#r=n}async getAuthHeaders(){return{Authorization:`Bearer ${this.#t}`,"Aui-User-Id":this.#n,"Aui-Workspace-Id":this.#r}}readAuthHeaders(){}},o_="aui:refresh_token",i_=class{strategy="anon";baseUrl;jwtStrategy;constructor(e){this.baseUrl=e,this.jwtStrategy=new n_(async()=>{const e=Date.now(),t=localStorage.getItem(o_),n=t?JSON.parse(t):void 0;if(n){if(new Date(n.expires_at).getTime()-e>3e4){const e=await fetch(`${this.baseUrl}/v1/auth/tokens/refresh`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refresh_token:n.token})});if(e.ok){const t=await e.json(),{access_token:n,refresh_token:r}=t;return r&&localStorage.setItem(o_,JSON.stringify(r)),n}}else localStorage.removeItem(o_)}const r=await fetch(`${this.baseUrl}/v1/auth/tokens/anonymous`,{method:"POST"});if(!r.ok)return null;const o=await r.json(),{access_token:i,refresh_token:a}=o;return i&&a?(localStorage.setItem(o_,JSON.stringify(a)),i):null})}async getAuthHeaders(){return this.jwtStrategy.getAuthHeaders()}readAuthHeaders(e){this.jwtStrategy.readAuthHeaders(e)}}
1,a_=class extends Error{constructor(e){super(e),this.name="APIError"}},s_=class{_auth;_baseUrl;constructor(e){if("authToken"in e)this._baseUrl=e.baseUrl,this._auth=new n_(e.authToken);else if("apiKey"in e)this._baseUrl="https://backend.assistant-api.com",this._auth=new r_(e.apiKey,e.userId,e.workspaceId);else{if(!("anonymous"in e))throw new Error("Invalid configuration: Must provide authToken, apiKey, or anonymous configuration");this._baseUrl=e.baseUrl,this._auth=new i_(e.baseUrl)}}async initializeAuth(){return!!this._auth.getAuthHeaders()}async makeRawRequest(e,t={}){const n=await this._auth.getAuthHeaders();if(!n)throw new Error("Authorization failed");const r={...n,...t.headers,"Content-Type":"application/json"},o=new URLSearchParams;if(t.query)for(const[e,n]of Object.entries(t.query))!1!==n&&(!0===n?o.set(e,"true"):o.set(e,n.toString()));const i=new URL(`${this._baseUrl}/v1${e}`);i.search=o.toString();const a=await fetch(i,{method:t.method??"GET",headers:r,body:t.body?JSON.stringify(t.body):null});if(this._auth.readAuthHeaders(a.headers),!a.ok){const e=await a.text();try{const t=JSON.parse(e);throw new a_(t.message)}catch{throw new Error(`Request failed with status ${a.status}, ${e}`)}}return a}async makeRequest(e,t={}){return(await this.makeRawRequest(e,t)).json()}},l_=class{constructor(e){this.cloud=e}async create(){return this.cloud.makeRequest("/auth/tokens",{method:"POST"})}},u_={toResponse:(e,t)=>new Response(u_.toByteStream(e,t),{headers:t.headers??{}}),fromResponse:(e,t)=>u_.fromByteStream(e.body,t),toByteStream:(e,t)=>e.pipeThrough(t),fromByteStream:(e,t)=>e.pipeThrough(t)},c_=function(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});if(!e||!t)throw new Error("Failed to create promise");return{promise:n,resolve:e,reject:t}},d_=()=>{const e=[];let t,n,r=!1;const o=o=>{o.promise||(o.promise=o.reader.read().then(({done:i,value:a})=>{o.promise=void 0,i?(e.splice(e.indexOf(o),1),r&&0===e.length&&t.close()):t.enqueue(a),n?.resolve(),n=void 0}).catch(r=>{console.error(r),e.forEach(e=>{e.reader.cancel()}),e.length=0,t.error(r),n?.reject(r),n=void 0}))};return{readable:new ReadableStream({start(e){t=e},pull:()=>(n=c_(),e.forEach(e=>{o(e)}),n.promise),cancel(){e.forEach(e=>{e.reader.cancel()}),e.length=0}}),isSealed:()=>r,seal(){r=!0,0===e.length&&t.close()},addStream(t){if(r)throw new Error("Cannot add streams after the run callback has settled.");const n={reader:t.getReader()};e.push(n),o(n)},enqueue(e){this.addStream(new ReadableStream({start(t){t.enqueue(e),t.close()}}))}}},f_=class{_controller;_isClosed=!1;constructor(e){this._controller=e}append(e){return this._controller.enqueue({type:"text-delta",path:[],textDelta:e}),this}close(){this._isClosed||(this._isClosed=!0,this._controller.enqueue({type:"part-finish",path:[]}),this._controller.close())}},p_=e=>new ReadableStream({start:t=>e.start?.(new f_(t)),pull:t=>e.pull?.(new f_(t)),cancel:t=>e.cancel?.(t)}),h_=()=>{let e;return[p_({start(t){e=t}}),e]},m_=class{constructor(e){this._controller=e;const t=p_({start:e=>{this._argsTextController=e}});let n=!1;this._mergeTask=t.pipeTo(new WritableStream({write:e=>{switch(e.type){case"text-delta":n=!0,this._controller.enqueue(e);break;case"part-finish":n||this._controller.enqueue({type:"text-delta",textDelta:"{}",path:[]}),this._controller.enqueue({type:"tool-call-args-text-finish",path:[]});break;default:throw new Error(`Unexpected chunk type: ${e.type}`)}}}))}_isClosed=!1;_mergeTask;get argsText(){return this._argsTextController}_argsTextController;async setResponse(e){this._argsTextController.close(),await Promise.resolve(),this._controller.enqueue({type:"result",path:[],...void 0!==e.artifact?{artifact:e.artifact}:{},result:e.result,isError:e.isError??!1})}async close(){this._isClosed||(this._isClosed=!0,this._argsTextController.close(),await this._mergeTask,this._controller.enqueue({type:"part-finish",path:[]}),this._controller.close())}},g_=()=>{let e;var t;return[(t={start(t){e=t}},new ReadableStream({start:e=>t.start?.(new m_(e)),pull:e=>t.pull?.(new m_(e)),cancel:e=>t.cancel?.(e)})),e]},y_=class{value=-1;up(){return++this.value}},b_=class extends TransformStream{constructor(e){super({transform(t,n){n.enqueue({...t,path:[e,...t.path]})}})}},v_=(TransformStream,class extends TransformStream{constructor(e){const t=new y_,n=new Map;super({transform(r,o){"part-start"===r.type&&0===r.path.length&&n.set(t.up(),e.up());const[i,...a]=r.path;if(void 0===i)return void o.enqueue(r);const s=n.get(i);if(void 0===s)throw new Error("Path not found");o.enqueue({...r,path:[s,...a]})}})}}),w_=class e{_state;_parentId;constructor(e){this._state=e||{merger:d_(),contentCounter:new y_}}get __internal_isClosed(){return this._state.merger.isSealed()}__internal_getReadable(){return this._state.merger.readable}__internal_subscribeToClose(e){this._state.closeSubscriber=e}_addPart(e,t){this._state.append&&(this._state.append.controller.close(),this._state.append=void 0),this.enqueue({type:"part-start",part:e,path:[]}),this._state.merger.addStream(t.pipeThrough(new b_(this._state.contentCounter.value)))}merge(e){this._state.merger.addStream(e.pipeThrough(new v_(this._state.contentCounter)))}appendText(e){"text"!==this._state.append?.kind&&(this._state.append={kind:"text",controller:this.addTextPart()}),this._state.append.controller.append(e)}appendReasoning(e){"reasoning"!==this._state.append?.kind&&(this._state.append={kind:"reasoning",controller:this.addReasoningPart()}),this._state.append.controller.append(e)}addTextPart(){const[e,t]=h_();return this._addPart({type:"text"},e),t}addReasoningPart(){const[e,t]=h_();return this._addPart({type:"reasoning"},e),t}addToolCallPart(e){const t="string"==typeof e?{toolName:e}:e,n=t.toolName,r=t.toolCallId??gS(),[o,i]=g_();return this._addPart({type:"tool-call",toolName:n,toolCallId:r,...this._parentId&&{parentId:this._parentId}},o),void 0!==t.argsText&&(i.argsText.append(t.argsText),i.argsText.close()),void 0!==t.args&&(i.argsText.append(JSON.stringify(t.args)),i.argsText.close()),void 0!==t.response&&i.setResponse(t.response),i}appendSource(e){this._addPart({...e,...this._parentId&&{parentId:this._parentId}},new ReadableStream({start(e){e.enqueue({type:"part-finish",path:[]}),e.close()}}))}appendFile(e){this._addPart(e,new ReadableStream({start(e){e.enqueue({type:"part-finish",path:[]}),e.close()}}))}enqueue(e){this._state.merger.enqueue(e),"part-start"===e.type&&0===e.path.length&&this._state.contentCounter.up()}withParentId(t){const n=new e(this._state);return n._parentId=t,n}close(){this._state.merger.seal(),this._state.append?.controller?.close(),this._state.closeSubscriber?.()}};function x_(e){const t=new w_;let n;try{n=e(t)}catch(e){throw t.__internal_isClosed||(t.enqueue({type:"error",path:[],error:String(e)}),t.close()),e}if(n instanceof Promise){(async()=>{try{await n}catch(e){throw t.__internal_isClosed||t.enqueue({type:"error",path:[],error:String(e)}),e}finally{t.__internal_isClosed||t.close()}})()}else t.__internal_isClosed||t.close();return t.__internal_getReadable()}var k_=class extends TransformStream{constructor(e,t,n){const[r,o]=function(){const{resolve:e,promise:t}=c_();let n;return[x_(r=>(n=r,n.__internal_subscribeToClose(e),t)),n]}();let i;super({start:t=>(i=r.pipeTo(new WritableStream({write(e){t.enqueue(e)},abort(e){t.error(e)},close(){t.terminate()}})).catch(e=>{t.error(e)}),e.start?.(o)),transform:t=>e.transform?.(t,o),async flush(){await(e.flush?.(o)),o.close(),await i}},t,n)}},S_=class extends TransformStream{constructor(e){super();const t=e(super.readable);Object.defineProperty(this,"readable",{value:t,writable:!1})}}
1,__=class extends S_{constructor(){super(e=>{const t=new k_({transform(e,t){t.appendText(e)}});return e.pipeThrough(new TextDecoderStream).pipeThrough(t)})}},E_=class{constructor(e){this.cloud=e}__internal_getAssistantOptions(e){return{api:this.cloud._baseUrl+"/v1/runs/stream",headers:async()=>{const e=await this.cloud._auth.getAuthHeaders();if(!e)throw new Error("Authorization failed");return{...e,Accept:"text/plain"}},body:{assistant_id:e,response_format:"vercel-ai-data-stream/v1",thread_id:"unstable_todo"}}}async stream(e){const t=await this.cloud.makeRawRequest("/runs/stream",{method:"POST",headers:{Accept:"text/plain"},body:e});return u_.fromResponse(t,new __)}},C_=class{constructor(e){this.cloud=e}async list(e,t){return this.cloud.makeRequest(`/threads/${encodeURIComponent(e)}/messages`,{query:t})}async create(e,t){return this.cloud.makeRequest(`/threads/${encodeURIComponent(e)}/messages`,{method:"POST",body:t})}},T_=class{constructor(e){this.cloud=e,this.messages=new C_(e)}messages;async list(e){return this.cloud.makeRequest("/threads",{query:e})}async create(e){return this.cloud.makeRequest("/threads",{method:"POST",body:e})}async update(e,t){return this.cloud.makeRequest(`/threads/${encodeURIComponent(e)}`,{method:"PUT",body:t})}async delete(e){return this.cloud.makeRequest(`/threads/${encodeURIComponent(e)}`,{method:"DELETE"})}},O_=class{constructor(e){this.cloud=e}async pdfToImages(e){return this.cloud.makeRequest("/files/pdf-to-images",{method:"POST",body:e})}async generatePresignedUploadUrl(e){return this.cloud.makeRequest("/files/attachments/generate-presigned-upload-url",{method:"POST",body:e})}};function P_(e,t=0){return!(t>100)&&(null===e||"string"==typeof e||"boolean"==typeof e||("number"==typeof e?!Number.isNaN(e)&&Number.isFinite(e):Array.isArray(e)?e.every(e=>P_(e,t+1)):"object"==typeof e&&Object.entries(e).every(([e,n])=>"string"==typeof e&&P_(n,t+1))))}var I_=e=>({role:e.role,content:e.content.map(e=>{const t=e.type;switch(t){case"text":return{type:"text",text:e.text};case"reasoning":return{type:"reasoning",text:e.text};case"source":return{type:"source",sourceType:e.sourceType,id:e.id,url:e.url,...e.title?{title:e.title}:void 0};case"tool-call":return P_(e.result)||console.warn("tool-call result is not JSON! "+JSON.stringify(e)),{type:"tool-call",toolCallId:e.toolCallId,toolName:e.toolName,...JSON.stringify(e.args)===e.argsText?{args:e.args}:{argsText:e.argsText},...e.result?{result:e.result}:{},...e.isError?{isError:!0}:{}};default:throw new Error(`Message part type not supported by aui/v0: ${t}`)}}),metadata:e.metadata,...e.status?{status:"running"===e.status?.type?{type:"incomplete",reason:"cancelled"}:e.status}:void 0}),j_=e=>{const t=e.content,n=qk({id:e.id,createdAt:e.created_at,...t},e.id,{type:"complete",reason:"unknown"});return{parentId:e.parent_id,message:n}},A_=class{constructor(e,t){this.parent=e,this.formatAdapter=t}async append(e){const t=this.formatAdapter.encode(e),n=this.formatAdapter.getId(e.message);return this.parent._appendWithFormat(e.parentId,n,this.formatAdapter.format,t)}async load(){return this.parent._loadWithFormat(this.formatAdapter.format,e=>this.formatAdapter.decode(e))}},N_=class{constructor(e,t){this.cloudRef=e,this.threadListItemRuntime=t}_getIdForLocalId={};withFormat(e){return new A_(this,e)}async append({parentId:e,message:t}){const{remoteId:n}=await this.threadListItemRuntime.initialize(),r=this.cloudRef.current.threads.messages.create(n,{parent_id:e?await this._getIdForLocalId[e]??e:null,format:"aui/v0",content:I_(t)}).then(({message_id:e})=>(this._getIdForLocalId[t.id]=e,e));return this._getIdForLocalId[t.id]=r,r.then(()=>{})}async load(){const e=this.threadListItemRuntime.getState().remoteId;if(!e)return{messages:[]};const{messages:t}=await this.cloudRef.current.threads.messages.list(e,{format:"aui/v0"});return{messages:t.filter(e=>"aui/v0"===e.format).map(j_).reverse()}}async _appendWithFormat(e,t,n,r){const{remoteId:o}=await this.threadListItemRuntime.initialize(),i=this.cloudRef.current.threads.messages.create(o,{parent_id:e?await this._getIdForLocalId[e]??e:null,format:n,content:r}).then(({message_id:e})=>(this._getIdForLocalId[t]=e,e));return this._getIdForLocalId[t]=i,i.then(()=>{})}async _loadWithFormat(e,t){const n=this.threadListItemRuntime.getState().remoteId;if(!n)return{messages:[]};const{messages:r}=await this.cloudRef.current.threads.messages.list(n,{format:e});return{messages:r.filter(t=>t.format===e).map(e=>t({id:e.id,parent_id:e.parent_id,format:e.format,content:e.content})).reverse()}}},R_=class{list(){return Promise.resolve({threads:[]})}rename(){return Promise.resolve()}archive(){return Promise.resolve()}unarchive(){return Promise.resolve()}delete(){return Promise.resolve()}initialize(e){return Promise.resolve({remoteId:e,externalId:void 0})}generateTitle(){return Promise.resolve(new ReadableStream)}},M_="undefined"!=typeof process&&process?.env?.NEXT_PUBLIC_ASSISTANT_BASE_URL,D_=M_?new class{threads;auth;runs;files;constructor(e){const t=new s_(e);this.threads=new T_(t),this.auth={tokens:new l_(t)},this.runs=new E_(t),this.files=new O_(t)}}({baseUrl:M_,anonymous:!0}):void 0,z_=e=>{const t=(0,i.useRef)(e);(0,i.useEffect)(()=>{t.current=e},[e]);const n=(0,i.useCallback)(function({children:e}){const n=(e=>{const t=nc(),[n]=(0,i.useState)(()=>new N_(e,t));return n})({get current(){return t.current.cloud??D_}}),r=(0,i.useMemo)(()=>({history:n}),[n]);return(0,Gr.jsx)(uS,{adapters:r,children:e})},[]),r=e.cloud??D_;return r?{list:async()=>{const{threads:e}=await r.threads.list();return{threads:e.map(e=>({status:e.is_archived?"archived":"regular",remoteId:e.id,title:e.title,externalId:e.external_id??void 0}))}},initialize:async()=>{const t=e.create?.()??Promise.resolve(),n=await t,o=n?n.externalId:void 0,{thread_id:i}=await r.threads.create({last_message_at:new Date,external_id:o});return{externalId:o,remoteId:i}},rename:async(e,t)=>r.threads.update(e,{title:t}),archive:async e=>r.threads.update(e,{is_archived:!0}),unarchive:async e=>r.threads.update(e,{is_archived:!1}),delete:async t=>(await(e.delete?.(t)),r.threads.delete(t)),generateTitle:async(e,t)=>r.runs.stream({thread_id:e,assistant_id:"system/thread_title",messages:t}),unstable_Provider:n}:new R_},L_=(e,{initialMessages:t,...n})=>{const{modelContext:r,...o}=(0,i.useContext)(lS)??{},a=(0,i.useMemo)(()=>({...n,adapters:{...o,...n.adapters,chatModel:e}}),[e,n,o]),[s]=(0,i.useState)(()=>new sS(a,t));return(0,i.useEffect)(()=>()=>{s.threads.getMainThreadRuntimeCore().detach()},[s]),(0,i.useEffect)(()=>{s.threads.getMainThreadRuntimeCore().__internal_setOptions(a),s.threads.getMainThreadRuntimeCore().__internal_load()},[s,a]),(0,i.useEffect)(()=>
1{if(r)return s.registerModelContextProvider(r)},[r,s]),(0,i.useMemo)(()=>new ZS(s),[s])},F_=(e,{cloud:t,...n}={})=>(e=>{const[t]=(0,i.useState)(()=>new e_(e));return(0,i.useEffect)(()=>{t.threads.__internal_setOptions(e),t.threads.__internal_load()},[t,e]),(0,i.useMemo)(()=>new ZS(t),[t])})({runtimeHook:function(){return L_(e,n)},adapter:z_({cloud:t})}),B_=({children:e,listItemRuntime:t,runtime:n})=>{const r=(e=>{const[t]=(0,i.useState)(()=>ru(()=>e));return(0,i.useEffect)(()=>{Nl(e),Nl(e.composer),t.setState(e,!0)},[e,t]),t})(n),[o]=(0,i.useState)(()=>({useThreadRuntime:r}));return(0,Gr.jsx)(cS,{runtime:t,children:(0,Gr.jsx)(zl.Provider,{value:o,children:(0,Gr.jsx)(iu,{children:e})})})},U_=()=>(0,i.useMemo)(()=>ru(e=>{const t=new Map;return Object.freeze({getToolUI:e=>{const n=t.get(e),r=n?.at(-1);return r||null},setToolUI:(n,r)=>{let o=t.get(n);return o||(o=[],t.set(n,o)),o.push(r),e({}),()=>{const t=o.indexOf(r);-1!==t&&o.splice(t,1),t===o.length&&e({})}}})}),[]),q_=(0,i.memo)(({children:e,runtime:t})=>{const n=(e=>{const[t]=(0,i.useState)(()=>ru(()=>e));return(0,i.useEffect)(()=>{Nl(e),Nl(e.threads),t.setState(e,!0)},[e,t]),t})(t),r=U_(),[o]=(0,i.useState)(()=>({useToolUIs:r,useAssistantRuntime:n})),a=(e=>e._core?.RenderComponent)(t);return(0,Gr.jsxs)(lc.Provider,{value:o,children:[a&&(0,Gr.jsx)(a,{}),(0,Gr.jsx)(B_,{runtime:t.thread,listItemRuntime:t.threads.mainItem,children:e})]})});function H_(e){return H_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},H_(e)}function $_(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=H_(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=H_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==H_(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var V_=function(e){const t=function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:o=!0}=e??{};let i=new ct;return t&&("boolean"==typeof t?i.push(de):i.push(fe(t.extraArgument))),i},{reducer:n,middleware:r,devTools:o=!0,duplicateMiddlewareCheck:i=!0,preloadedState:a,enhancers:s}=e||{};let l,u;if("function"==typeof n)l=n;else{if(!ie(n))throw new Error(Ht(1));l=se(n)}u="function"==typeof r?r(t):t();let c=le;o&&(c=st({trace:!1,..."object"==typeof o&&o}));const d=function(...e){return t=>(n,r)=>{const o=t(n,r);let i=()=>{throw new Error(te(15))};const a={getState:o.getState,dispatch:(e,...t)=>i(e,...t)},s=e.map(e=>e(a));return i=le(...s)(o.dispatch),{...o,dispatch:i}}}(...u),f=gt(d);return ae(l,a,c(..."function"==typeof s?s(f):f()))}({reducer:$_($_({},vx.reducerPath,vx.reducer),"feedback",Zt),middleware:function(e){return e({serializableCheck:{ignoredActions:["persist/PERSIST","persist/REHYDRATE"]}}).concat(vx.middleware)},devTools:!1});function W_(e){return W_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},W_(e)}function Q_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function K_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q_(Object(n),!0).forEach(function(t){Y_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Y_(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=W_(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=W_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==W_(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G_(e){if("feedback"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"chat"))return"abort"===e?"Request was cancelled.":"Sorry, there was an error submitting your feedback. Please try again.";switch(e){case"network":return"Unable to connect. Please check your internet connection.";
1case"server":return"Sorry, something went wrong on our end. Please try again later.";case"auth":return"Your session has expired. Please refresh the page.";case"abort":return"Request was cancelled.";default:return"Sorry, something went wrong!"}}function J_(e,t){return K_({content:[],status:{error:e,reason:"error",type:"incomplete"}},t&&{metadata:{custom:{sessionId:t}}})}function X_(e,t,n){var r=K_({context:t,error:e instanceof Error?K_({name:e.name,message:e.message},!1):e,timestamp:(new Date).toISOString()},n);console.error("[Chatbot Error]",r)}function Z_(e){return Z_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Z_(e)}function eE(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(Z_(e)+" is not iterable")}function tE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tE(Object(n),!0).forEach(function(t){rE(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tE(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rE(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Z_(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Z_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Z_(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oE(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,u=Object.create(l.prototype);return iE(u,"_invoke",function(n,r,o){var i,s,l,u=0,c=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,s=0,l=e,f.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!d&&u&&!o&&t<c.length;t++){var o,i=c[t],p=f.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(s=0,f.v=r,f.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,f.n=h,s=0))}if(o||n>1)return a;throw d=!0,r}return function(o,c,h){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,h),s=c,l=h;(t=s<2?e:l)||!d;){i||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(u=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==a)break}catch(t){i=e,s=1,l=t}finally{u=1}}return{value:t,done:d}}}(n,o,i),!0),u}var a={};function s(){}function l(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(iE(t={},r,function(){return this}),t),d=u.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,iE(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=u,iE(d,"constructor",u),iE(u,"constructor",l),l.displayName="GeneratorFunction",iE(u,o,"GeneratorFunction"),iE(d),iE(d,o,"Generator"),iE(d,r,function(){return this}),iE(d,"toString",function(){return"[object Generator]"}),(oE=function(){return{w:i,m:f}})()}function iE(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}iE=function(e,t,n,r){function i(t,n){iE(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},iE(e,t,n,r)}function aE(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function sE(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){aE(i,r,o,a,s,"next",e)}function s(e){aE(i,r,o,a,s,"throw",e)}a(void 0)})}}var lE=function(e){var t=e.children,n=function(){var e=sE(oE().m(function e(t,n){var r,o,i,a,s,l,u,c,d;return oE().w(function(e){for(;;)switch(e.p=e.n){case 0:return r=t.filter(function(e){return e.role===v}).slice(-1),o=Ar.getCurrentSessionId()||Ar.getOrCreateSession(),e.p=1,e.n=2,fetch("/apps/public-websearch-ch
1atbot-client/api/v1/chat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({chatId:o,messages:r}),signal:n});case 2:if((s=e.v).ok){e.n=5;break}if(X_(new Error("Chat API returned ".concat(s.status,": ").concat(s.statusText)),"chat-http-error",{status:s.status,statusText:s.statusText,sessionId:o}),!(s.status>=500)){e.n=3;break}return e.a(2,J_(G_("server","chat"),o));case 3:if(401!==s.status&&403!==s.status){e.n=4;break}return e.a(2,J_(G_("auth","chat"),o));case 4:return e.a(2,J_(G_("unknown","chat"),o));case 5:return e.p=5,e.n=6,s.json();case 6:l=e.v,e.n=8;break;case 7:return e.p=7,X_(e.v,"chat-json-parse-error",{sessionId:o,responseStatus:s.status}),e.a(2,J_(G_("server","chat"),o));case 8:return u=(null===(i=l.messages)||void 0===i?void 0:i.filter(function(e){return e.role===w}).flatMap(function(e){return e.content||[]}))||[],c=null===(a=l)||void 0===a||null===(a=a.messages)||void 0===a||null===(a=a[0])||void 0===a?void 0:a.status,u.length||(c={error:"Sorry, something went wrong!",reason:"error",type:"incomplete"}),e.a(2,{content:u,status:c,metadata:{custom:{sessionId:o}}});case 9:if(e.p=9,!((d=e.v)instanceof Error&&"AbortError"===d.name)){e.n=10;break}return e.a(2,J_(G_("abort","chat"),o));case 10:return X_(d,"chat-network-error",{sessionId:o,lastUserMessageLength:r.length}),e.a(2,J_(G_("network","chat"),o))}},e,null,[[5,7],[1,9]])}));return function(t,n){return e.apply(this,arguments)}}(),r=F_({run:function(e){return sE(oE().m(function t(){var r,o;return oE().w(function(t){for(;;)if(0===t.n)return r=e.messages,o=e.abortSignal,t.a(2,n(r,o))},t)}))()}}),o=(0,i.useCallback)(function(e){if(null==e||!e.messages||!Array.isArray(e.messages))return!1;var t=r.thread.getState().messages;if(t.length!==e.messages.length)return!1;var n=!1;return e.messages.forEach(function(e,r){var o,i=null==e||null===(o=e.message)||void 0===o||null===(o=o.metadata)||void 0===o||null===(o=o.custom)||void 0===o?void 0:o.sessionId;if(i&&t[r]&&r<t.length){var a,s=t[r];if(null===(a=s.metadata)||void 0===a||null===(a=a.custom)||void 0===a||!a.sessionId)try{var l=s;l.metadata.custom=nE(nE({},l.metadata.custom),{},{sessionId:i}),n=!0}catch(e){console.warn("Failed to restore sessionId for message:",e)}}}),n},[r]),a=(0,i.useCallback)(sE(oE().m(function e(){var t,n,i;return oE().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t=Ar.loadMessages()){e.n=1;break}return e.a(2);case 1:return e.p=1,r.thread.import(t),n=function(){var e=sE(oE().m(function e(){var n,i,a,s,l=arguments;return oE().w(function(e){for(;;)switch(e.n){case 0:n=l.length>0&&void 0!==l[0]?l[0]:u,i=oE().m(function e(i){return oE().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,new Promise(function(e){return setTimeout(e,c*i)});case 1:if(!(0===r.thread.getState().messages.length&&i<n)){e.n=2;break}return e.a(2,0);case 2:if(!o(t)){e.n=3;break}return e.a(2,{v:void 0});case 3:i===n&&console.debug("SessionId restoration incomplete after",n,"attempts - messages will still work");case 4:return e.a(2)}},e)}),s=1;case 1:if(!(s<=n)){e.n=5;break}return e.d(eE(i(s)),2);case 2:if(0!==(a=e.v)){e.n=3;break}return e.a(3,4);case 3:if(!a){e.n=4;break}return e.a(2,a.v);case 4:s++,e.n=1;break;case 5:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),e.n=2,n();case 2:e.n=4;break;case 3:e.p=3,i=e.v,console.warn("Failed to restore messages:",i);case 4:return e.a(2)}},e,null,[[1,3]])})),[r,o]),s=(0,i.useCallback)(function(){try{var e=r.thread.export();Ar.saveMessages(e)}catch(e){console.warn("Failed to save messages before session reset:",e)}Ar.resetSession(),a()},[a,r]);(0,i.useEffect)(function(){return window.addEventListener("chatbot-inactivity-timeout",s),window.addEventListener("chatbot-api-error",s),function(){window.removeEventListener("chatbot-inactivity-timeout",s),window.removeEventListener("chatbot-api-error",s)}},[s]),(0,i.useEffect)(function(){a()},[a]);var l=(0,i.useCallback)(function(){try{var e=r.thread.export();Ar.saveMessages(e)}catch(e){console.warn("Failed to save messages:",e)}},[r]);return(0,i.useEffect)(function(){var e=null,t=!1,n=function(){t||l()},r=function(){t||l()};return window.addEventListener("beforeunload",n),window.addEventListener("chatbot-modal-closing",r),e=setInterval(function(){t||l()},d),function(){t=!0,window.removeEventListener("beforeunload",n),window.removeEventListener("chatbot-modal-closing",r),e&&(clearInterval(e),e=null);try{l()}catch(e){console.warn("Error saving messages during cleanup:",e)}}},[l]),(0,Gr.jsx)(q_,{runtime:r,children:t})},uE=function(e){var t=e.children;return(0,Gr.jsx)($,{store:V_,children:(0,Gr.jsx)(lE,{children:t})})},cE=function(){return(0,Gr.jsx)(uE,{children:(0,Gr.jsx)(Ak,{})})};document.addEventListener("DOMContentLoaded",function(){if(window.self===window.top){var e=document.getElementById("react-app-root");e&&(e.setAttribute("data-modern-ui-react",""),(0,r.createRoot)(e).render((0,Gr.jsx)(cE,{})))}})})()})();
2//# sourceMappingURL=bundle-pack.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.