PageSourceSearch

https://iorthotics.com/assets/index-DNJ4mHQR.js

js iorthotics.com collected 2026-10-08 08:57:11 UTC 1,730,307 bytes, 715 lines download raw bytes

vendor: 4,330 bytes, lines 1-10
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DistributorMapLeaflet-CyE2JaBh.js","assets/DistributorMapLeaflet-Dgihpmma.css"])))=>i.map(i=>d[i]);
2var rV=Object.defineProperty;var lA=e=>{throw TypeError(e)};var iV=(e,t,n)=>t in e?rV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Lt=(e,t,n)=>iV(e,typeof t!="symbol"?t+"":t,n),Rb=(e,t,n)=>t.has(e)||lA("Cannot "+n);var ae=(e,t,n)=>(Rb(e,t,"read from private field"),n?n.call(e):t.get(e)),et=(e,t,n)=>t.has(e)?lA("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Fe=(e,t,n,r)=>(Rb(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),mt=(e,t,n)=>(Rb(e,t,"access private method"),n);var _m=(e,t,n,r)=>({set _(i){Fe(e,t,i,n)},get _(){return ae(e,t,r)}});function oV(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Sm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ct(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mb={exports:{}},Hd={},Ib={exports:{}},dt={};/**
3 * @license React
4 * react.production.min.js
5 *
6 * Copyright (c) Facebook, Inc. and its affiliates.
7 *
8 * This source code is licensed under the MIT license found in the
9 * LICENSE file in the root directory of this source tree.
10 */var cA;function aV(){if(cA)return dt;cA=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.iterator;function m(D){return D===null||typeof D!="object"?null:(D=f&&D[f]||D["@@iterator"],typeof D=="function"?D:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,y={};function v(D,F,K){this.props=D,this.context=F,this.refs=y,this.updater=K||g}v.prototype.isReactComponent={},v.prototype.setState=function(D,F){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,F,"setState")},v.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function x(){}x.prototype=v.prototype;function _(D,F,K){this.props=D,this.context=F,this.refs=y,this.updater=K||g}var j=_.prototype=new x;j.constructor=_,b(j,v.prototype),j.isPureReactComponent=!0;var S=Array.isArray,N=Object.prototype.hasOwnProperty,O={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function A(D,F,K){var ee,J={},G=null,X=null;if(F!=null)for(ee in F.ref!==void 0&&(X=F.ref),F.key!==void 0&&(G=""+F.key),F)N.call(F,ee)&&!E.hasOwnProperty(ee)&&(J[ee]=F[ee]);var ne=arguments.length-2;if(ne===1)J.children=K;else if(1<ne){for(var Z=Array(ne),se=0;se<ne;se++)Z[se]=arguments[se+2];J.children=Z}if(D&&D.defaultProps)for(ee in ne=D.defaultProps,ne)J[ee]===void 0&&(J[ee]=ne[ee]);return{$$typeof:e,type:D,key:G,ref:X,props:J,_owner:O.current}}function I(D,F){return{$$typeof:e,type:D.type,key:F,ref:D.ref,props:D.props,_owner:D._owner}}
vendor: 4,546 bytes, line 10
10function M(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function C(D){var F={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(K){return F[K]})}var R=/\/+/g;function B(D,F){return typeof D=="object"&&D!==null&&D.key!=null?C(""+D.key):F.toString(36)}function $(D,F,K,ee,J){var G=typeof D;(G==="undefined"||G==="boolean")&&(D=null);var X=!1;if(D===null)X=!0;else switch(G){case"string":case"number":X=!0;break;case"object":switch(D.$$typeof){case e:case t:X=!0}}if(X)return X=D,J=J(X),D=ee===""?"."+B(X,0):ee,S(J)?(K="",D!=null&&(K=D.replace(R,"$&/")+"/"),$(J,F,K,"",function(se){return se})):J!=null&&(M(J)&&(J=I(J,K+(!J.key||X&&X.key===J.key?"":(""+J.key).replace(R,"$&/")+"/")+D)),F.push(J)),1;if(X=0,ee=ee===""?".":ee+":",S(D))for(var ne=0;ne<D.length;ne++){G=D[ne];var Z=ee+B(G,ne);X+=$(G,F,K,Z,J)}else if(Z=m(D),typeof Z=="function")for(D=Z.call(D),ne=0;!(G=D.next()).done;)G=G.value,Z=ee+B(G,ne++),X+=$(G,F,K,Z,J);else if(G==="object")throw F=String(D),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.");return X}function z(D,F,K){if(D==null)return D;var ee=[],J=0;return $(D,ee,"","",function(G){return F.call(K,G,J++)}),ee}function H(D){if(D._status===-1){var F=D._result;F=F(),F.then(function(K){(D._status===0||D._status===-1)&&(D._status=1,D._result=K)},function(K){(D._status===0||D._status===-1)&&(D._status=2,D._result=K)}),D._status===-1&&(D._status=0,D._result=F)}if(D._status===1)return D._result.default;throw D._result}var V={current:null},Y={transition:null},W={ReactCurrentDispatcher:V,ReactCurrentBatchConfig:Y,ReactCurrentOwner:O};function q(){throw Error("act(...) is not supported in production builds of React.")}return dt.Children={map:z,forEach:function(D,F,K){z(D,function(){F.apply(this,arguments)},K)},count:function(D){var F=0;return z(D,function(){F++}),F},toArray:function(D){return z(D,function(F){return F})||[]},only:function(D){if(!M(D))throw Error("React.Children.only expected to receive a single React element child.");return D}},dt.Component=v,dt.Fragment=n,dt.Profiler=i,dt.PureComponent=_,dt.StrictMode=r,dt.Suspense=c,dt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W,dt.act=q,dt.cloneElement=function(D,F,K){if(D==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var ee=b({},D.props),J=D.key,G=D.ref,X=D._owner;if(F!=null){if(F.ref!==void 0&&(G=F.ref,X=O.current),F.key!==void 0&&(J=""+F.key),D.type&&D.type.defaultProps)var ne=D.type.defaultProps;for(Z in F)N.call(F,Z)&&!E.hasOwnProperty(Z)&&(ee[Z]=F[Z]===void 0&&ne!==void 0?ne[Z]:F[Z])}var Z=arguments.length-2;if(Z===1)ee.children=K;else if(1<Z){ne=Array(Z);for(var se=0;se<Z;se++)ne[se]=arguments[se+2];ee.children=ne}return{$$typeof:e,type:D.type,key:J,ref:G,props:ee,_owner:X}},dt.createContext=function(D){return D={$$typeof:a,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},D.Provider={$$typeof:o,_context:D},D.Consumer=D},dt.createElement=A,dt.createFactory=function(D){var F=A.bind(null,D);return F.type=D,F},dt.createRef=function(){return{current:null}},dt.forwardRef=function(D){return{$$typeof:l,render:D}},dt.isValidElement=M,dt.lazy=function(D){return{$$typeof:p,_payload:{_status:-1,_result:D},_init:H}},dt.memo=function(D,F){return{$$typeof:d,type:D,compare:F===void 0?null:F}},dt.startTransition=function(D){var F=Y.transition;Y.transition={};try{D()}finally{Y.transition=F}},dt.unstable_act=q,dt.useCallback=function(D,F){return V.current.useCallback(D,F)},dt.useContext=function(D){return V.current.useContext(D)},dt.useDebugValue=function(){},dt.useDeferredValue=function(D){return V.current.useDeferredValue(D)},dt.useEffect=function(D,F){return V.current.useEffect(D,F)},dt.useId=function(){return V.current.useId()},dt.useImperativeHandle=function(D,F,K){return V.current.useImperativeHandle(D,F,K)},dt.useInsertionEffect=function(D,F){return V.current.useInsertionEffect(D,F)},dt.useLayoutEffect=function(D,F){return V.current.useLayoutEffect(D,F)},dt.useMemo=function(D,F){return V.current.useMemo(D,F)},dt.useReducer=function(D,F,K){return V.current.useReducer(D,F,K)},dt.useRef=function(D){return V.current.useRef(D)},dt.useState=function(D){return V.current.useState(D)},dt.useSyncExternalStore=function(D,F,K){return V.current.useSyncExternalStore(D,F,K)},dt.useTransition=function(){return V.current.useTransition()}
vendor: 6,913 bytes, lines 10-34
10,dt.version="18.3.1",dt}var uA;function Vy(){return uA||(uA=1,Ib.exports=aV()),Ib.exports}/**
11 * @license React
12 * react-jsx-runtime.production.min.js
13 *
14 * Copyright (c) Facebook, Inc. and its affiliates.
15 *
16 * This source code is licensed under the MIT license found in the
17 * LICENSE file in the root directory of this source tree.
18 */var dA;function sV(){if(dA)return Hd;dA=1;var e=Vy(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(l,c,d){var p,f={},m=null,g=null;d!==void 0&&(m=""+d),c.key!==void 0&&(m=""+c.key),c.ref!==void 0&&(g=c.ref);for(p in c)r.call(c,p)&&!o.hasOwnProperty(p)&&(f[p]=c[p]);if(l&&l.defaultProps)for(p in c=l.defaultProps,c)f[p]===void 0&&(f[p]=c[p]);return{$$typeof:t,type:l,key:m,ref:g,props:f,_owner:i.current}}return Hd.Fragment=n,Hd.jsx=a,Hd.jsxs=a,Hd}var fA;function lV(){return fA||(fA=1,Mb.exports=sV()),Mb.exports}var s=lV(),P=Vy();const ue=Ct(P),Wy=oV({__proto__:null,default:ue},[P]);var jm={},Db={exports:{}},kr={},Lb={exports:{}},Bb={};/**
19 * @license React
20 * scheduler.production.min.js
21 *
22 * Copyright (c) Facebook, Inc. and its affiliates.
23 *
24 * This source code is licensed under the MIT license found in the
25 * LICENSE file in the root directory of this source tree.
26 */var hA;function cV(){return hA||(hA=1,(function(e){function t(Y,W){var q=Y.length;Y.push(W);e:for(;0<q;){var D=q-1>>>1,F=Y[D];if(0<i(F,W))Y[D]=W,Y[q]=F,q=D;else break e}}function n(Y){return Y.length===0?null:Y[0]}function r(Y){if(Y.length===0)return null;var W=Y[0],q=Y.pop();if(q!==W){Y[0]=q;e:for(var D=0,F=Y.length,K=F>>>1;D<K;){var ee=2*(D+1)-1,J=Y[ee],G=ee+1,X=Y[G];if(0>i(J,q))G<F&&0>i(X,J)?(Y[D]=X,Y[G]=q,D=G):(Y[D]=J,Y[ee]=q,D=ee);else if(G<F&&0>i(X,q))Y[D]=X,Y[G]=q,D=G;else break e}}return W}function i(Y,W){var q=Y.sortIndex-W.sortIndex;return q!==0?q:Y.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var c=[],d=[],p=1,f=null,m=3,g=!1,b=!1,y=!1,v=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function j(Y){for(var W=n(d);W!==null;){if(W.callback===null)r(d);else if(W.startTime<=Y)r(d),W.sortIndex=W.expirationTime,t(c,W);else break;W=n(d)}}function S(Y){if(y=!1,j(Y),!b)if(n(c)!==null)b=!0,H(N);else{var W=n(d);W!==null&&V(S,W.startTime-Y)}}function N(Y,W){b=!1,y&&(y=!1,x(A),A=-1),g=!0;var q=m;try{for(j(W),f=n(c);f!==null&&(!(f.expirationTime>W)||Y&&!C());){var D=f.callback;if(typeof D=="function"){f.callback=null,m=f.priorityLevel;var F=D(f.expirationTime<=W);W=e.unstable_now(),typeof F=="function"?f.callback=F:f===n(c)&&r(c),j(W)}else r(c);f=n(c)}if(f!==null)var K=!0;else{var ee=n(d);ee!==null&&V(S,ee.startTime-W),K=!1}return K}finally{f=null,m=q,g=!1}}var O=!1,E=null,A=-1,I=5,M=-1;function C(){return!(e.unstable_now()-M<I)}function R(){if(E!==null){var Y=e.unstable_now();M=Y;var W=!0;try{W=E(!0,Y)}finally{W?B():(O=!1,E=null)}}else O=!1}var B;if(typeof _=="function")B=function(){_(R)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,z=$.port2;$.port1.onmessage=R,B=function(){z.postMessage(null)}}else B=function(){v(R,0)};function H(Y){E=Y,O||(O=!0,B())}function V(Y,W){A=v(function(){Y(e.unstable_now())},W)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(Y){Y.callback=null},e.unstable_continueExecution=function(){b||g||(b=!0,H(N))},e.unstable_forceFrameRate=function(Y){0>Y||125<Y?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<Y?Math.floor(1e3/Y):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(Y){switch(m){case 1:case 2:case 3:var W=3;break;default:W=m}var q=m;m=W;try{return Y()}finally{m=q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(Y,W){switch(Y){case 1:case 2:case 3:case 4:case 5:break;default:Y=3}var q=m;m=Y;try{return W()}finally{m=q}},e.unstable_scheduleCallback=function(Y,W,q){var D=e.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?D+q:D):q=D,Y){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=q+F,Y={id:p++,callback:W,priorityLevel:Y,startTime:q,expirationTime:F,sortIndex:-1},q>D?(Y.sortIndex=q,t(d,Y),n(c)===null&&Y===n(d)&&(y?(x(A),A=-1):y=!0,V(S,q-D))):(Y.sortIndex=F,t(c,Y),b||g||(b=!0,H(N))),Y},e.unstable_shouldYield=C,e.unstable_wrapCallback=function(Y){var W=m;return function(){var q=m;m=W;try{return Y.apply(this,arguments)}finally{m=q}}}})(Bb)),Bb}var pA;function uV(){return pA||(pA=1,Lb.exports=cV()),Lb.exports}/**
27 * @license React
28 * react-dom.production.min.js
29 *
30 * Copyright (c) Facebook, Inc. and its affiliates.
31 *
32 * This source code is licensed under the MIT license found in the
33 * LICENSE file in the root directory of this source tree.
34 */var mA;function dV(){if(mA)return kr;mA=1;var e=Vy(),t=uV();function n(u){for(var h="https://reactjs.org/docs/error-decoder.html?invariant="+u,w=1;w<arguments.length;w++)h+="&args[]="+encodeURIComponent(arguments[w]);return"Minified React error #"+u+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,i={};function o(u,h){a(u,h),a(u+"Capture",h)}function a(u,h){for(i[u]=h,u=0;u<h.length;u++)r.add(h[u])}var l=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c=Object.prototype.hasOwnProperty,d=/^[: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]*$/,p={},f={};function m(u){return c.call(f,u)?!0:c.call(p,u)?!1:d.test(u)?f[u]=!0:(p[u]=!0,!1)}function g(u,h,w,k){if(w!==null&&w.type===0)return!1;switch(typeof h){case"function":case"symbol":return!0;case"boolean":return k?!1:w!==null?!w.acceptsBooleans:(u=u.toLowerCase().slice(0,5),u!=="data-"&&u!=="aria-");default:return!1}}function b(u,h,w,k){if(h===null||typeof h>"u"||g(u,h,w,k))return!0;
vendor: 23,573 bytes, lines 34-38
34if(k)return!1;if(w!==null)switch(w.type){case 3:return!h;case 4:return h===!1;case 5:return isNaN(h);case 6:return isNaN(h)||1>h}return!1}function y(u,h,w,k,T,L,U){this.acceptsBooleans=h===2||h===3||h===4,this.attributeName=k,this.attributeNamespace=T,this.mustUseProperty=w,this.propertyName=u,this.type=h,this.sanitizeURL=L,this.removeEmptyString=U}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(u){v[u]=new y(u,0,!1,u,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(u){var h=u[0];v[h]=new y(h,1,!1,u[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(u){v[u]=new y(u,2,!1,u.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(u){v[u]=new y(u,2,!1,u,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(u){v[u]=new y(u,3,!1,u.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(u){v[u]=new y(u,3,!0,u,null,!1,!1)}),["capture","download"].forEach(function(u){v[u]=new y(u,4,!1,u,null,!1,!1)}),["cols","rows","size","span"].forEach(function(u){v[u]=new y(u,6,!1,u,null,!1,!1)}),["rowSpan","start"].forEach(function(u){v[u]=new y(u,5,!1,u.toLowerCase(),null,!1,!1)});var x=/[\-:]([a-z])/g;function _(u){return u[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(u){var h=u.replace(x,_);v[h]=new y(h,1,!1,u,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(u){var h=u.replace(x,_);v[h]=new y(h,1,!1,u,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(u){var h=u.replace(x,_);v[h]=new y(h,1,!1,u,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(u){v[u]=new y(u,1,!1,u.toLowerCase(),null,!1,!1)}),v.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(u){v[u]=new y(u,1,!1,u.toLowerCase(),null,!0,!0)});function j(u,h,w,k){var T=v.hasOwnProperty(h)?v[h]:null;(T!==null?T.type!==0:k||!(2<h.length)||h[0]!=="o"&&h[0]!=="O"||h[1]!=="n"&&h[1]!=="N")&&(b(h,w,T,k)&&(w=null),k||T===null?m(h)&&(w===null?u.removeAttribute(h):u.setAttribute(h,""+w)):T.mustUseProperty?u[T.propertyName]=w===null?T.type===3?!1:"":w:(h=T.attributeName,k=T.attributeNamespace,w===null?u.removeAttribute(h):(T=T.type,w=T===3||T===4&&w===!0?"":""+w,k?u.setAttributeNS(k,h,w):u.setAttribute(h,w))))}var S=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,N=Symbol.for("react.element"),O=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),M=Symbol.for("react.provider"),C=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),V=Symbol.for("react.offscreen"),Y=Symbol.iterator;function W(u){return u===null||typeof u!="object"?null:(u=Y&&u[Y]||u["@@iterator"],typeof u=="function"?u:null)}var q=Object.assign,D;function F(u){if(D===void 0)try{throw Error()}catch(w){var h=w.stack.trim().match(/\n( *(at )?)/);D=h&&h[1]||""}return`
35`+D+u}var K=!1;function ee(u,h){if(!u||K)return"";K=!0;var w=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(h)if(h=function(){throw Error()},Object.defineProperty(h.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(h,[])}catch(ye){var k=ye}Reflect.construct(u,[],h)}else{try{h.call()}catch(ye){k=ye}u.call(h.prototype)}else{try{throw Error()}catch(ye){k=ye}u()}}catch(ye){if(ye&&k&&typeof ye.stack=="string"){for(var T=ye.stack.split(`
36`),L=k.stack.split(`
37`),U=T.length-1,te=L.length-1;1<=U&&0<=te&&T[U]!==L[te];)te--;for(;1<=U&&0<=te;U--,te--)if(T[U]!==L[te]){if(U!==1||te!==1)do if(U--,te--,0>te||T[U]!==L[te]){var re=`
38`+T[U].replace(" at new "," at ");return u.displayName&&re.includes("<anonymous>")&&(re=re.replace("<anonymous>",u.displayName)),re}while(1<=U&&0<=te);break}}}finally{K=!1,Error.prepareStackTrace=w}return(u=u?u.displayName||u.name:"")?F(u):""}function J(u){switch(u.tag){case 5:return F(u.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return u=ee(u.type,!1),u;case 11:return u=ee(u.type.render,!1),u;case 1:return u=ee(u.type,!0),u;default:return""}}function G(u){if(u==null)return null;if(typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case E:return"Fragment";case O:return"Portal";case I:return"Profiler";case A:return"StrictMode";case B:return"Suspense";case $:return"SuspenseList"}if(typeof u=="object")switch(u.$$typeof){case C:return(u.displayName||"Context")+".Consumer";case M:return(u._context.displayName||"Context")+".Provider";case R:var h=u.render;return u=u.displayName,u||(u=h.displayName||h.name||"",u=u!==""?"ForwardRef("+u+")":"ForwardRef"),u;case z:return h=u.displayName||null,h!==null?h:G(u.type)||"Memo";case H:h=u._payload,u=u._init;try{return G(u(h))}catch{}}return null}function X(u){var h=u.type;switch(u.tag){case 24:return"Cache";case 9:return(h.displayName||"Context")+".Consumer";case 10:return(h._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return u=h.render,u=u.displayName||u.name||"",h.displayName||(u!==""?"ForwardRef("+u+")":"ForwardRef");case 7:return"Fragment";case 5:return h;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return G(h);case 8:return h===A?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof h=="function")return h.displayName||h.name||null;if(typeof h=="string")return h}return null}function ne(u){switch(typeof u){case"boolean":case"number":case"string":case"undefined":return u;case"object":return u;default:return""}}function Z(u){var h=u.type;return(u=u.nodeName)&&u.toLowerCase()==="input"&&(h==="checkbox"||h==="radio")}function se(u){var h=Z(u)?"checked":"value",w=Object.getOwnPropertyDescriptor(u.constructor.prototype,h),k=""+u[h];if(!u.hasOwnProperty(h)&&typeof w<"u"&&typeof w.get=="function"&&typeof w.set=="function"){var T=w.get,L=w.set;return Object.defineProperty(u,h,{configurable:!0,get:function(){return T.call(this)},set:function(U){k=""+U,L.call(this,U)}}),Object.defineProperty(u,h,{enumerable:w.enumerable}),{getValue:function(){return k},setValue:function(U){k=""+U},stopTracking:function(){u._valueTracker=null,delete u[h]}}}}function fe(u){u._valueTracker||(u._valueTracker=se(u))}function le(u){if(!u)return!1;var h=u._valueTracker;if(!h)return!0;var w=h.getValue(),k="";return u&&(k=Z(u)?u.checked?"true":"false":u.value),u=k,u!==w?(h.setValue(u),!0):!1}function we(u){if(u=u||(typeof document<"u"?document:void 0),typeof u>"u")return null;try{return u.activeElement||u.body}catch{return u.body}}function ge(u,h){var w=h.checked;return q({},h,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:w??u._wrapperState.initialChecked})}function be(u,h){var w=h.defaultValue==null?"":h.defaultValue,k=h.checked!=null?h.checked:h.defaultChecked;w=ne(h.value!=null?h.value:w),u._wrapperState={initialChecked:k,initialValue:w,controlled:h.type==="checkbox"||h.type==="radio"?h.checked!=null:h.value!=null}}function Be(u,h){h=h.checked,h!=null&&j(u,"checked",h,!1)}function De(u,h){Be(u,h);var w=ne(h.value),k=h.type;if(w!=null)k==="number"?(w===0&&u.value===""||u.value!=w)&&(u.value=""+w):u.value!==""+w&&(u.value=""+w);else if(k==="submit"||k==="reset"){u.removeAttribute("value");return}h.hasOwnProperty("value")?de(u,h.type,w):h.hasOwnProperty("defaultValue")&&de(u,h.type,ne(h.defaultValue)),h.checked==null&&h.defaultChecked!=null&&(u.defaultChecked=!!h.defaultChecked)}function oe(u,h,w){if(h.hasOwnProperty("value")||h.hasOwnProperty("defaultValue")){var k=h.type;if(!(k!=="submit"&&k!=="reset"||h.value!==void 0&&h.value!==null))return;h=""+u._wrapperState.initialValue,w||h===u.value||(u.value=h),u.defaultValue=h}w=u.name,w!==""&&(u.name=""),u.defaultChecked=!!u._wrapperState.initialChecked,w!==""&&(u.name=w)}function de(u,h,w){(h!=="number"||we(u.ownerDocument)!==u)&&(w==null?u.defaultValue=""+u._wrapperState.initialValue:u.defaultValue!==""+w&&(u.defaultValue=""+w))}var Se=Array.isArray;function Ee(u,h,w,k){if(u=u.options,h){h={};for(var T=0;T<w.length;T++)h["$"+w[T]]=!0;for(w=0;w<u.length;w++)T=h.hasOwnProperty("$"+u[w].value),u[w].selected!==T&&(u[w].selected=T),T&&k&&(u[w].defaultSelected=!0)}else{for(w=""+ne(w),h=null,T=0;T<u.length;T++){if(u[T].value===w){u[T].selected=!0,k&&(u[T].defaultSelected=!0);return}h!==null||u[T].disabled||(h=u[T])}h!==null&&(h.selected=!0)}}function ve(u,h){if(h.dangerouslySetInnerHTML!=null)throw Error(n(91));return q({},h,{value:void 0,defaultValue:void 0,children:""+u._wrapperState.initialValue})}function He(u,h){var w=h.value;if(w==null){if(w=h.children,h=h.defaultValue,w!=null){if(h!=null)throw Error(n(92));if(Se(w)){if(1<w.length)throw Error(n(93));w=w[0]}h=w}h==null&&(h=""),w=h}u._wrapperState={initialValue:ne(w)}}function $e(u,h){var w=ne(h.value),k=ne(h.defaultValue);w!=null&&(w=""+w,w!==u.value&&(u.value=w),h.defaultValue==null&&u.defaultValue!==w&&(u.defaultValue=w)),k!=null&&(u.defaultValue=""+k)}function Ye(u){var h=u.textContent;h===u._wrapperState.initialValue&&h!==""&&h!==null&&(u.value=h)}function Rt(u){switch(u){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ft(u,h){return u==null||u==="http://www.w3.org/1999/xhtml"?Rt(h):u==="http://www.w3.org/2000/svg"&&h==="foreignObject"?"http://www.w3.org/1999/xhtml":u}var ht,vi=(function(u){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(h,w,k,T){MSApp.execUnsafeLocalFunction(function(){return u(h,w,k,T)})}:u})(function(u,h){if(u.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in u)u.innerHTML=h;else{for(ht=ht||document.createElement("div"),ht.innerHTML="<svg>"+h.valueOf().toString()+"</svg>",h=ht.firstChild;u.firstChild;)u.removeChild(u.firstChild);for(;h.firstChild;)u.appendChild(h.firstChild)}});function pt(u,h){if(h){var w=u.firstChild;if(w&&w===u.lastChild&&w.nodeType===3){w.nodeValue=h;return}}u.textContent=h}var an={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ca=["Webkit","ms","Moz","O"];Object.keys(an).forEach(function(u){ca.forEach(function(h){h=h+u.charAt(0).toUpperCase()+u.substring(1),an[h]=an[u]})});function Cr(u,h,w){return h==null||typeof h=="boolean"||h===""?"":w||typeof h!="number"||h===0||an.hasOwnProperty(u)&&an[u]?(""+h).trim():h+"px"}function wo(u,h){u=u.style;for(var w in h)if(h.hasOwnProperty(w)){var k=w.indexOf("--")===0,T=Cr(w,h[w],k);w==="float"&&(w="cssFloat"),k?u.setProperty(w,T):u[w]=T}}var ql=q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _s(u,h){if(h){if(ql[u]&&(h.children!=null||h.dangerouslySetInnerHTML!=null))throw Error(n(137,u));if(h.dangerouslySetInnerHTML!=null){if(h.children!=null)throw Error(n(60));if(typeof h.dangerouslySetInnerHTML!="object"||!("__html"in h.dangerouslySetInnerHTML))throw Error(n(61))}if(h.style!=null&&typeof h.style!="object")throw Error(n(62))}}function Ss(u,h){if(u.indexOf("-")===-1)return typeof h.is=="string";switch(u){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 Vi=null;function xr(u){return u=u.target||u.srcElement||window,u.correspondingUseElement&&(u=u.correspondingUseElement),u.nodeType===3?u.parentNode:u}var js=null,_o=null,So=null;function zl(u){if(u=Pd(u)){if(typeof js!="function")throw Error(n(280));var h=u.stateNode;h&&(h=Lp(h),js(u.stateNode,u.type,h))}}function nd(u){_o?So?So.push(u):So=[u]:_o=u}function Ns(){if(_o){var u=_o,h=So;if(So=_o=null,zl(u),h)for(u=0;u<h.length;u++)zl(h[u])}}function ks(u,h){return u(h)}function Rr(){}var Wi=!1;function Ul(u,h,w){if(Wi)return u(h,w);Wi=!0;try{return ks(u,h,w)}finally{Wi=!1,(_o!==null||So!==null)&&(Rr(),Ns())}}function jo(u,h){var w=u.stateNode;if(w===null)return null;var k=Lp(w);if(k===null)return null;w=k[h];e:switch(h){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(k=!k.disabled)||(u=u.type,k=!(u==="button"||u==="input"||u==="select"||u==="textarea")),u=!k;break e;default:u=!1}if(u)return null;if(w&&typeof w!="function")throw Error(n(231,h,typeof w));return w}var rd=!1;if(l)try{var ua={};Object.defineProperty(ua,"passive",{get:function(){rd=!0}}),window.addEventListener("test",ua,ua),window.removeEventListener("test",ua,ua)}catch{rd=!1}function id(u,h,w,k,T,L,U,te,re){var ye=Array.prototype.slice.call(arguments,3);try{h.apply(w,ye)}catch(Oe){this.onError(Oe)}}var da=!1,fa=null,Hl=!1,No=null,Jv={onError:function(u){da=!0,fa=u}};function ex(u,h,w,k,T,L,U,te,re){da=!1,fa=null,id.apply(Jv,arguments)}function qt(u,h,w,k,T,L,U,te,re){if(ex.apply(this,arguments),da){if(da){var ye=fa;da=!1,fa=null}else throw Error(n(198));Hl||(Hl=!0,No=ye)}}function br(u){var h=u,w=u;if(u.alternate)for(;h.return;)h=h.return;else{u=h;do h=u,(h.flags&4098)!==0&&(w=h.return),u=h.return;while(u)}return h.tag===3?w:null}function yp(u){if(u.tag===13){var h=u.memoizedState;if(h===null&&(u=u.alternate,u!==null&&(h=u.memoizedState)),h!==null)return h.dehydrated}return null}function od(u){if(br(u)!==u)throw Error(n(188))}function ad(u){var h=u.alternate;if(!h){if(h=br(u),h===null)throw Error(n(188));return h!==u?null:u}for(var w=u,k=h;;){var T=w.return;if(T===null)break;var L=T.alternate;if(L===null){if(k=T.return,k!==null){w=k;continue}break}if(T.child===L.child){for(L=T.child;L;){if(L===w)return od(T),u;if(L===k)return od(T),h;L=L.sibling}throw Error(n(188))}if(w.return!==k.return)w=T,k=L;else{for(var U=!1,te=T.child;te;){if(te===w){U=!0,w=T,k=L;break}if(te===k){U=!0,k=T,w=L;break}te=te.sibling}if(!U){for(te=L.child;te;){if(te===w){U=!0,w=L,k=T;break}if(te===k){U=!0,k=L,w=T;break}te=te.sibling}if(!U)throw Error(n(189))}}if(w.alternate!==k)throw Error(n(190))}if(w.tag!==3)throw Error(n(188));return w.stateNode.current===w?u:h}function sd(u){return u=ad(u),u!==null?ld(u):null}function ld(u){if(u.tag===5||u.tag===6)return u;for(u=u.child;u!==null;){var h=ld(u);if(h!==null)return h;u=u.sibling}return null}var vp=t.unstable_scheduleCallback,xp=t.unstable_cancelCallback,tx=t.unstable_shouldYield,nx=t.unstable_requestPaint,Nt=t.unstable_now,Vl=t.unstable_getCurrentPriorityLevel,xi=t.unstable_ImmediatePriority,bp=t.unstable_UserBlockingPriority,ha=t.unstable_NormalPriority,rx=t.unstable_LowPriority,cd=t.unstable_IdlePriority,Os=null,ur=null;function ud(u){if(ur&&typeof ur.onCommitFiberRoot=="function")try{ur.onCommitFiberRoot(Os,u,void 0,(u.current.flags&128)===128)}catch{}}var Kn=Math.clz32?Math.clz32:Xr,pa=Math.log,Es=Math.LN2;function Xr(u){return u>>>=0,u===0?32:31-(pa(u)/Es|0)|0}var Wl=64,Gl=4194304;function ma(u){switch(u&-u){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return u&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return u&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return u}}function Ps(u,h){var w=u.pendingLanes;if(w===0)return 0;var k=0,T=u.suspendedLanes,L=u.pingedLanes,U=w&268435455;if(U!==0){var te=U&~T;te!==0?k=ma(te):(L&=U,L!==0&&(k=ma(L)))}else U=w&~T,U!==0?k=ma(U):L!==0&&(k=ma(L));if(k===0)return 0;if(h!==0&&h!==k&&(h&T)===0&&(T=k&-k,L=h&-h,T>=L||T===16&&(L&4194240)!==0))return h;if((k&4)!==0&&(k|=w&16),h=u.entangledLanes,h!==0)for(u=u.entanglements,h&=k;0<h;)w=31-Kn(h),T=1<<w,k|=u[w],h&=~T;return k}function ix(u,h){switch(u){case 1:case 2:case 4:return h+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return h+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function wp(u,h){for(var w=u.suspendedLanes,k=u.pingedLanes,T=u.expirationTimes,L=u.pendingLanes;0<L;){var U=31-Kn(L),te=1<<U,re=T[U];re===-1?((te&w)===0||(te&k)!==0)&&(T[U]=ix(te,h)):re<=h&&(u.expiredLanes|=te),L&=~te}}function dd(u){return u=u.pendingLanes&-1073741825,u!==0?u:u&1073741824?1073741824:0}function _p(){var u=Wl;return Wl<<=1,(Wl&4194240)===0&&(Wl=64),u}function Kl(u){for(var h=[],w=0;31>w;w++)h.push(u);return h}function Gi(u,h,w){u.pendingLanes|=h,h!==536870912&&(u.suspendedLanes=0,u.pingedLanes=0),u=u.eventTimes,h=31-Kn(h),u[h]=w}function fd(u,h){var w=u.pendingLanes&~h;u.pendingLanes=h,u.suspendedLanes=0,u.pingedLanes=0,u.expiredLanes&=h,u.mutableReadLanes&=h,u.entangledLanes&=h,h=u.entanglements;var k=u.eventTimes;for(u=u.expirationTimes;0<w;){var T=31-Kn(w),L=1<<T;h[T]=0,k[T]=-1,u[T]=-1,w&=~L}}function Ae(u,h){var w=u.entangledLanes|=h;for(u=u.entanglements;w;){var k=31-Kn(w),T=1<<k;T&h|u[k]&h&&(u[k]|=h),w&=~T}}var Q=0;function me(u){return u&=-u,1<u?4<u?(u&268435455)!==0?16:536870912:4:1}var je,qe,Qe,rt,zt,hn=!1,Yn=[],Qt=null,pn=null,Kt=null,hd=new Map,pd=new Map,ga=[],NU="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 submit".split(" ");function VO(u,h){switch(u){case"focusin":case"focusout":Qt=null;break;case"dragenter":case"dragleave":pn=null;break;case"mouseover":case"mouseout":Kt=null;break;case"pointerover":case"pointerout":hd.delete(h.pointerId);break;case"gotpointercapture":case"lostpointercapture":pd.delete(h.pointerId)}}function md(u,h,w,k,T,L){return u===null||u.nativeEvent!==L?(u={blockedOn:h,domEventName:w,eventSystemFlags:k,nativeEvent:L,targetContainers:[T]},h!==null&&(h=Pd(h),h!==null&&qe(h)),u):(u.eventSystemFlags|=k,h=u.targetContainers,T!==null&&h.indexOf(T)===-1&&h.push(T),u)}function kU(u,h,w,k,T){switch(h){case"focusin":return Qt=md(Qt,u,h,w,k,T),!0;case"dragenter":return pn=md(pn,u,h,w,k,T),!0;case"mouseover":return Kt=md(Kt,u,h,w,k,T),!0;case"pointerover":var L=T.pointerId;return hd.set(L,md(hd.get(L)||null,u,h,w,k,T)),!0;case"gotpointercapture":return L=T.pointerId,pd.set(L,md(pd.get(L)||null,u,h,w,k,T)),!0}return!1}function WO(u){var h=As(u.target);if(h!==null){var w=br(h);if(w!==null){if(h=w.tag,h===13){if(h=yp(w),h!==null){u.blockedOn=h,zt(u.priority,function(){Qe(w)});return}}else if(h===3&&w.stateNode.current.memoizedState.isDehydrated){u.blockedOn=w.tag===3?w.stateNode.containerInfo:null;return}}}u.blockedOn=null}function Sp(u){if(u.blockedOn!==null)return!1;for(var h=u.targetContainers;0<h.length;){var w=ax(u.domEventName,u.eventSystemFlags,h[0],u.nativeEvent);if(w===null){w=u.nativeEvent;var k=new w.constructor(w.type,w);Vi=k,w.target.dispatchEvent(k),Vi=null}else return h=Pd(w),h!==null&&qe(h),u.blockedOn=w,!1;h.shift()}return!0}function GO(u,h,w){Sp(u)&&w.delete(h)}function OU(){hn=!1,Qt!==null&&Sp(Qt)&&(Qt=null),pn!==null&&Sp(pn)&&(pn=null),Kt!==null&&Sp(Kt)&&(Kt=null),hd.forEach(GO),pd.forEach(GO)}function gd(u,h){u.blockedOn===h&&(u.blockedOn=null,hn||(hn=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,OU)))}function yd(u){function h(T){return gd(T,u)}if(0<Yn.length){gd(Yn[0],u);for(var w=1;w<Yn.length;w++){var k=Yn[w];k.blockedOn===u&&(k.blockedOn=null)}}for(Qt!==null&&gd(Qt,u),pn!==null&&gd(pn,u),Kt!==null&&gd(Kt,u),hd.forEach(h),pd.forEach(h),w=0;w<ga.length;w++)k=ga[w],k.blockedOn===u&&(k.blockedOn=null);for(;0<ga.length&&(w=ga[0],w.blockedOn===null);)WO(w),w.blockedOn===null&&ga.shift()}var Yl=S.ReactCurrentBatchConfig,jp=!0;function EU(u,h,w,k){var T=Q,L=Yl.transition;Yl.transition=null;try{Q=1,ox(u,h,w,k)}finally{Q=T,Yl.transition=L}}function PU(u,h,w,k){var T=Q,L=Yl.transition;Yl.transition=null;try{Q=4,ox(u,h,w,k)}finally{Q=T,Yl.transition=L}}function ox(u,h,w,k){if(jp){var T=ax(u,h,w,k);if(T===null)Sx(u,h,k,Np,w),VO(u,k);else if(kU(T,u,h,w,k))k.stopPropagation();else if(VO(u,k),h&4&&-1<NU.indexOf(u)){for(;T!==null;){var L=Pd(T);if(L!==null&&je(L),L=ax(u,h,w,k),L===null&&Sx(u,h,k,Np,w),L===T)break;T=L}T!==null&&k.stopPropagation()}else Sx(u,h,k,null,w)}}var Np=null;function ax(u,h,w,k){if(Np=null,u=xr(k),u=As(u),u!==null)if(h=br(u),h===null)u=null;else if(w=h.tag,w===13){if(u=yp(h),u!==null)return u;u=null}else if(w===3){if(h.stateNode.current.memoizedState.isDehydrated)return h.tag===3?h.stateNode.containerInfo:null;u=null}else h!==u&&(u=null);return Np=u,null}function KO(u){switch(u){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invali
38d":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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Vl()){case xi:return 1;case bp:return 4;case ha:case rx:return 16;case cd:return 536870912;default:return 16}default:return 16}}
vendor: 20,580 bytes, lines 38-39
38var ya=null,sx=null,kp=null;function YO(){if(kp)return kp;var u,h=sx,w=h.length,k,T="value"in ya?ya.value:ya.textContent,L=T.length;for(u=0;u<w&&h[u]===T[u];u++);var U=w-u;for(k=1;k<=U&&h[w-k]===T[L-k];k++);return kp=T.slice(u,1<k?1-k:void 0)}function Op(u){var h=u.keyCode;return"charCode"in u?(u=u.charCode,u===0&&h===13&&(u=13)):u=h,u===10&&(u=13),32<=u||u===13?u:0}function Ep(){return!0}function XO(){return!1}function Mr(u){function h(w,k,T,L,U){this._reactName=w,this._targetInst=T,this.type=k,this.nativeEvent=L,this.target=U,this.currentTarget=null;for(var te in u)u.hasOwnProperty(te)&&(w=u[te],this[te]=w?w(L):L[te]);return this.isDefaultPrevented=(L.defaultPrevented!=null?L.defaultPrevented:L.returnValue===!1)?Ep:XO,this.isPropagationStopped=XO,this}return q(h.prototype,{preventDefault:function(){this.defaultPrevented=!0;var w=this.nativeEvent;w&&(w.preventDefault?w.preventDefault():typeof w.returnValue!="unknown"&&(w.returnValue=!1),this.isDefaultPrevented=Ep)},stopPropagation:function(){var w=this.nativeEvent;w&&(w.stopPropagation?w.stopPropagation():typeof w.cancelBubble!="unknown"&&(w.cancelBubble=!0),this.isPropagationStopped=Ep)},persist:function(){},isPersistent:Ep}),h}var Xl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(u){return u.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},lx=Mr(Xl),vd=q({},Xl,{view:0,detail:0}),AU=Mr(vd),cx,ux,xd,Pp=q({},vd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fx,button:0,buttons:0,relatedTarget:function(u){return u.relatedTarget===void 0?u.fromElement===u.srcElement?u.toElement:u.fromElement:u.relatedTarget},movementX:function(u){return"movementX"in u?u.movementX:(u!==xd&&(xd&&u.type==="mousemove"?(cx=u.screenX-xd.screenX,ux=u.screenY-xd.screenY):ux=cx=0,xd=u),cx)},movementY:function(u){return"movementY"in u?u.movementY:ux}}),QO=Mr(Pp),TU=q({},Pp,{dataTransfer:0}),CU=Mr(TU),RU=q({},vd,{relatedTarget:0}),dx=Mr(RU),MU=q({},Xl,{animationName:0,elapsedTime:0,pseudoElement:0}),IU=Mr(MU),DU=q({},Xl,{clipboardData:function(u){return"clipboardData"in u?u.clipboardData:window.clipboardData}}),LU=Mr(DU),BU=q({},Xl,{data:0}),ZO=Mr(BU),$U={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},FU={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"},qU={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zU(u){var h=this.nativeEvent;return h.getModifierState?h.getModifierState(u):(u=qU[u])?!!h[u]:!1}function fx(){return zU}var UU=q({},vd,{key:function(u){if(u.key){var h=$U[u.key]||u.key;if(h!=="Unidentified")return h}return u.type==="keypress"?(u=Op(u),u===13?"Enter":String.fromCharCode(u)):u.type==="keydown"||u.type==="keyup"?FU[u.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fx,charCode:function(u){return u.type==="keypress"?Op(u):0},keyCode:function(u){return u.type==="keydown"||u.type==="keyup"?u.keyCode:0},which:function(u){return u.type==="keypress"?Op(u):u.type==="keydown"||u.type==="keyup"?u.keyCode:0}}),HU=Mr(UU),VU=q({},Pp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),JO=Mr(VU),WU=q({},vd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fx}),GU=Mr(WU),KU=q({},Xl,{propertyName:0,elapsedTime:0,pseudoElement:0}),YU=Mr(KU),XU=q({},Pp,{deltaX:function(u){return"deltaX"in u?u.deltaX:"wheelDeltaX"in u?-u.wheelDeltaX:0},deltaY:function(u){return"deltaY"in u?u.deltaY:"wheelDeltaY"in u?-u.wheelDeltaY:"wheelDelta"in u?-u.wheelDelta:0},deltaZ:0,deltaMode:0}),QU=Mr(XU),ZU=[9,13,27,32],hx=l&&"CompositionEvent"in window,bd=null;l&&"documentMode"in document&&(bd=document.documentMode);var JU=l&&"TextEvent"in window&&!bd,eE=l&&(!hx||bd&&8<bd&&11>=bd),tE=" ",nE=!1;function rE(u,h){switch(u){case"keyup":return ZU.indexOf(h.keyCode)!==-1;case"keydown":return h.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function iE(u){return u=u.detail,typeof u=="object"&&"data"in u?u.data:null}var Ql=!1;function eH(u,h){switch(u){case"compositionend":return iE(h);case"keypress":return h.which!==32?null:(nE=!0,tE);case"textInput":return u=h.data,u===tE&&nE?null:u;default:return null}}function tH(u,h){if(Ql)return u==="compositionend"||!hx&&rE(u,h)?(u=YO(),kp=sx=ya=null,Ql=!1,u):null;switch(u){case"paste":return null;case"keypress":if(!(h.ctrlKey||h.altKey||h.metaKey)||h.ctrlKey&&h.altKey){if(h.char&&1<h.char.length)return h.char;if(h.which)return String.fromCharCode(h.which)}return null;case"compositionend":return eE&&h.locale!=="ko"?null:h.data;default:return null}}var nH={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 oE(u){var h=u&&u.nodeName&&u.nodeName.toLowerCase();return h==="input"?!!nH[u.type]:h==="textarea"}function aE(u,h,w,k){nd(k),h=Mp(h,"onChange"),0<h.length&&(w=new lx("onChange","change",null,w,k),u.push({event:w,listeners:h}))}var wd=null,_d=null;function rH(u){jE(u,0)}function Ap(u){var h=nc(u);if(le(h))return u}function iH(u,h){if(u==="change")return h}var sE=!1;if(l){var px;if(l){var mx="oninput"in document;if(!mx){var lE=document.createElement("div");lE.setAttribute("oninput","return;"),mx=typeof lE.oninput=="function"}px=mx}else px=!1;sE=px&&(!document.documentMode||9<document.documentMode)}function cE(){wd&&(wd.detachEvent("onpropertychange",uE),_d=wd=null)}function uE(u){if(u.propertyName==="value"&&Ap(_d)){var h=[];aE(h,_d,u,xr(u)),Ul(rH,h)}}function oH(u,h,w){u==="focusin"?(cE(),wd=h,_d=w,wd.attachEvent("onpropertychange",uE)):u==="focusout"&&cE()}function aH(u){if(u==="selectionchange"||u==="keyup"||u==="keydown")return Ap(_d)}function sH(u,h){if(u==="click")return Ap(h)}function lH(u,h){if(u==="input"||u==="change")return Ap(h)}function cH(u,h){return u===h&&(u!==0||1/u===1/h)||u!==u&&h!==h}var bi=typeof Object.is=="function"?Object.is:cH;function Sd(u,h){if(bi(u,h))return!0;if(typeof u!="object"||u===null||typeof h!="object"||h===null)return!1;var w=Object.keys(u),k=Object.keys(h);if(w.length!==k.length)return!1;for(k=0;k<w.length;k++){var T=w[k];if(!c.call(h,T)||!bi(u[T],h[T]))return!1}return!0}function dE(u){for(;u&&u.firstChild;)u=u.firstChild;return u}function fE(u,h){var w=dE(u);u=0;for(var k;w;){if(w.nodeType===3){if(k=u+w.textContent.length,u<=h&&k>=h)return{node:w,offset:h-u};u=k}e:{for(;w;){if(w.nextSibling){w=w.nextSibling;break e}w=w.parentNode}w=void 0}w=dE(w)}}function hE(u,h){return u&&h?u===h?!0:u&&u.nodeType===3?!1:h&&h.nodeType===3?hE(u,h.parentNode):"contains"in u?u.contains(h):u.compareDocumentPosition?!!(u.compareDocumentPosition(h)&16):!1:!1}function pE(){for(var u=window,h=we();h instanceof u.HTMLIFrameElement;){try{var w=typeof h.contentWindow.location.href=="string"}catch{w=!1}if(w)u=h.contentWindow;else break;h=we(u.document)}return h}function gx(u){var h=u&&u.nodeName&&u.nodeName.toLowerCase();return h&&(h==="input"&&(u.type==="text"||u.type==="search"||u.type==="tel"||u.type==="url"||u.type==="password")||h==="textarea"||u.contentEditable==="true")}function uH(u){var h=pE(),w=u.focusedElem,k=u.selectionRange;if(h!==w&&w&&w.ownerDocument&&hE(w.ownerDocument.documentElement,w)){if(k!==null&&gx(w)){if(h=k.start,u=k.end,u===void 0&&(u=h),"selectionStart"in w)w.selectionStart=h,w.selectionEnd=Math.min(u,w.value.length);else if(u=(h=w.ownerDocument||document)&&h.defaultView||window,u.getSelection){u=u.getSelection();var T=w.textContent.length,L=Math.min(k.start,T);k=k.end===void 0?L:Math.min(k.end,T),!u.extend&&L>k&&(T=k,k=L,L=T),T=fE(w,L);var U=fE(w,k);T&&U&&(u.rangeCount!==1||u.anchorNode!==T.node||u.anchorOffset!==T.offset||u.focusNode!==U.node||u.focusOffset!==U.offset)&&(h=h.createRange(),h.setStart(T.node,T.offset),u.removeAllRanges(),L>k?(u.addRange(h),u.extend(U.node,U.offset)):(h.setEnd(U.node,U.offset),u.addRange(h)))}}for(h=[],u=w;u=u.parentNode;)u.nodeType===1&&h.push({element:u,left:u.scrollLeft,top:u.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<h.length;w++)u=h[w],u.element.scrollLeft=u.left,u.element.scrollTop=u.top}}var dH=l&&"documentMode"in document&&11>=document.documentMode,Zl=null,yx=null,jd=null,vx=!1;function mE(u,h,w){var k=w.window===w?w.document:w.nodeType===9?w:w.ownerDocument;vx||Zl==null||Zl!==we(k)||(k=Zl,"selectionStart"in k&&gx(k)?k={start:k.selectionStart,end:k.selectionEnd}:(k=(k.ownerDocument&&k.ownerDocument.defaultView||window).getSelection(),k={anchorNode:k.anchorNode,anchorOffset:k.anchorOffset,focusNode:k.focusNode,focusOffset:k.focusOffset}),jd&&Sd(jd,k)||(jd=k,k=Mp(yx,"onSelect"),0<k.length&&(h=new lx("onSelect","select",null,h,w),u.push({event:h,listeners:k}),h.target=Zl)))}function Tp(u,h){var w={};return w[u.toLowerCase()]=h.toLowerCase(),w["Webkit"+u]="webkit"+h,w["Moz"+u]="moz"+h,w}var Jl={animationend:Tp("Animation","AnimationEnd"),animationiteration:Tp("Animation","AnimationIteration"),animationstart:Tp("Animation","AnimationStart"),transitionend:Tp("Transition","TransitionEnd")},xx={},gE={};l&&(gE=document.createElement("div").style,"AnimationEvent"in window||(delete Jl.animationend.animation,delete Jl.animationiteration.animation,delete Jl.animationstart.animation),"TransitionEvent"in window||delete Jl.transitionend.transition);function Cp(u){if(xx[u])return xx[u];if(!Jl[u])return u;var h=Jl[u],w;for(w in h)if(h.hasOwnProperty(w)&&w in gE)return xx[u]=h[w];return u}var yE=Cp("animationend"),vE=Cp("animationiteration"),xE=Cp("animationstart"),bE=Cp("transitionend"),wE=new Map,_E="abort auxClick 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 va(u,h){wE.set(u,h),o(h,[u])}for(var bx=0;bx<_E.length;bx++){var wx=_E[bx],fH=wx.toLowerCase(),hH=wx[0].toUpperCase()+wx.slice(1);va(fH,"on"+hH)}va(yE,"onAnimationEnd"),va(vE,"onAnimationIteration"),va(xE,"onAnimationStart"),va("dblclick","onDoubleClick"),va("focusin","onFocus"),va("focusout","onBlur"),va(bE,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o("onBeforeInput",["compositionend","keypress","textInput","paste"]),o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nd="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(" "),pH=new Set("cancel close invalid load scroll toggle".split(" ").concat(Nd));function SE(u,h,w){var k=u.type||"unknown-event";u.currentTarget=w,qt(k,h,void 0,u),u.currentTarget=null}function jE(u,h){h=(h&4)!==0;for(var w=0;w<u.length;w++){var k=u[w],T=k.event;k=k.listeners;e:{var L=void 0;if(h)for(var U=k.length-1;0<=U;U--){var te=k[U],re=te.instance,ye=te.currentTarget;if(te=te.listener,re!==L&&T.isPropagationStopped())break e;SE(T,te,ye),L=re}else for(U=0;U<k.length;U++){if(te=k[U],re=te.instance,ye=te.currentTarget,te=te.listener,re!==L&&T.isPropagationStopped())break e;SE(T,te,ye),L=re}}}if(Hl)throw u=No,Hl=!1,No=null,u}function Ut(u,h){var w=h[Px];w===void 0&&(w=h[Px]=new Set);var k=u+"__bubble";w.has(k)||(NE(h,u,2,!1),w.add(k))}function _x(u,h,w){var k=0;h&&(k|=4),NE(w,u,k,h)}var Rp="_reactListening"+Math.random().toString(36).slice(2);function kd(u){if(!u[Rp]){u[Rp]=!0,r.forEach(function(w){w!=="selectionchange"&&(pH.has(w)||_x(w,!1,u),_x(w,!0,u))});var h=u.nodeType===9?u:u.ownerDocument;h===null||h[Rp]||(h[Rp]=!0,_x("selectionchange",!1,h))}}function NE(u,h,w,k){switch(KO(h)){case 1:var T=EU;break;case 4:T=PU;break;default:T=ox}w=T.bind(null,h,w,u),T=void 0,!rd||h!=="touchstart"&&h!=="touchmove"&&h!=="wheel"||(T=!0),k?T!==void 0?u.addEventListener(h,w,{capture:!0,passive:T}):u.addEventListener(h,w,!0):T!==void 0?u.addEventListener(h,w,{passive:T}):u.addEventListener(h,w,!1)}function Sx(u,h,w,k,T){var L=k;if((h&1)===0&&(h&2)===0&&k!==null)e:for(;;){if(k===null)return;var U=k.tag;if(U===3||U===4){var te=k.stateNode.containerInfo;if(te===T||te.nodeType===8&&te.parentNode===T)break;if(U===4)for(U=k.return;U!==null;){var re=U.tag;if((re===3||re===4)&&(re=U.stateNode.containerInfo,re===T||re.nodeType===8&&re.parentNode===T))return;U=U.return}for(;te!==null;){if(U=As(te),U===null)return;if(re=U.tag,re===5||re===6){k=L=U;continue e}te=te.parentNode}}k=k.return}Ul(function(){var ye=L,Oe=xr(w),Pe=[];e:{var Ne=wE.get(u);if(Ne!==void 0){var Le=lx,Ve=u;switch(u){case"keypress":if(Op(w)===0)break e;case"keydown":case"keyup":Le=HU;break;case"focusin":Ve="focus",Le=dx;break;case"focusout":Ve="blur",Le=dx;break;case"beforeblur":case"afterblur":Le=dx;break;case"click":if(w.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Le=QO;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Le=CU;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Le=GU;break;case yE:case vE:case xE:Le=IU;break;case bE:Le=YU;break;case"scroll":Le=AU;break;case"wheel":Le=QU;break;case"copy":case"cut":case"paste":Le=LU;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Le=JO}var Ke=(h&4)!==0,sn=!Ke&&u==="scroll",he=Ke?Ne!==null?Ne+"Capture":null:Ne;Ke=[];for(var ce=ye,pe;ce!==null;){pe=ce;var Te=pe.stateNode;if(pe.tag===5&&Te!==null&&(pe=Te,he!==null&&(Te=jo(ce,he),Te!=null&&Ke.push(Od(ce,Te,pe)))),sn)break;ce=ce.return}0<Ke.length&&(Ne=new Le(Ne,Ve,null,w,Oe),Pe.push({event:Ne,listeners:Ke}))}}if((h&7)===0){e:{if(Ne=u==="mouseover"||u==="pointerover",Le=u==="mouseout"||u==="pointerout",Ne&&w!==Vi&&(Ve=w.relatedTarget||w.fromElement)&&(As(Ve)||Ve[ko]))break e;if((Le||Ne)&&(Ne=Oe.window===Oe?Oe:(Ne=Oe.ownerDocument)?Ne.defaultView||Ne.parentWindow:window,Le?(Ve=w.relatedTarget||w.toElement,Le=ye,Ve=Ve?As(Ve):null,Ve!==null&&(sn=br(Ve),Ve!==sn||Ve.tag!==5&&Ve.tag!==6)&&(Ve=null)):(Le=null,Ve=ye),Le!==Ve)){if(Ke=QO,Te="onMouseLeave",he="onMouseEnter",ce="mouse",(u==="pointerout"||u==="pointerover")&&(Ke=JO,Te="onPointerLeave",he="onPointerEnter",ce="pointer"),sn=Le==null?Ne:nc(Le),pe=Ve==null?Ne:nc(Ve),Ne=new Ke(Te,ce+"leave",Le,w,Oe),Ne.target=sn,Ne.relatedTarget=pe,Te=null,As(Oe)===ye&&(Ke=new Ke(he,ce+"enter",Ve,w,Oe),Ke.target=pe,Ke.relatedTarget=sn,Te=Ke),sn=Te,Le&&Ve)t:{for(Ke=Le,he=Ve,ce=0,pe=Ke;pe;pe=ec(pe))ce++;for(pe=0,Te=he;Te;Te=ec(Te))pe++;for(;0<ce-pe;)Ke=ec(Ke),ce--;for(;0<pe-ce;)he=ec(he),pe--;for(;ce--;){if(Ke===he||he!==null&&Ke===he.alternate)break t;Ke=ec(Ke),he=ec(he)}Ke=null}else Ke=null;Le!==null&&kE(Pe,Ne,Le,Ke,!1),Ve!==null&&sn!==null&&kE(Pe,sn,Ve,Ke,!0)}}e:{if(Ne=ye?nc(ye):window,Le=Ne.nodeName&&Ne.nodeName.toLowerCase(),Le==="select"||Le==="input"&&Ne.type==="file")var Xe=iH;else if(oE(Ne))if(sE)Xe=lH;else{Xe=aH;var Ze=oH}else(Le=Ne.nodeName)&&Le.toLowerCase()==="input"&&(Ne.type==="checkbox"||Ne.type==="radio")&&(Xe=sH);if(Xe&&(Xe=Xe(u,ye))){aE(Pe,Xe,w,Oe);break e}Ze&&Ze(u,Ne,ye),u==="focusout"&&(Ze=Ne._wrapperState)&&Ze.controlled&&Ne.type==="number"&&de(Ne,"number",Ne.value)}switch(Ze=ye?nc(ye):window,u){case"focusin":(oE(Ze)||Ze.contentEditable==="true")&&(Zl=Ze,yx=ye,jd=null);break;case"focusout":jd=yx=Zl=null;break;case"mousedown":vx=!0;break;case"contextmenu":case"mouseup":case"dragend":vx=!1,mE(Pe,w,Oe);break;case"selectionchange":if(dH)break;case"keydown":case"keyup":mE(Pe,w,Oe)}var Je;if(hx)e:{switch(u){case"compositionstart":var it="onCompositionStart";break e;case"compositionend":it="onCompositionEnd";break e;case"compositionupdate":it="onCompositionUpdate";break e}it=void 0}else Ql?rE(u,w)&&(it="onCompositionEnd"):u==="keydown"&&w.keyCode===229&&(it="onCompositionStart");it&&(eE&&w.locale!=="ko"&&(Ql||it!=="onCompositionStart"?it==="onCompositionEnd"&&Ql&&(Je=YO()):(ya=Oe,sx="value"in ya?ya.value:ya.textContent,Ql=!0)),Ze=Mp(ye,it),0<Ze.length&&(it=new ZO(it,u,null,w,Oe),Pe.push({event:it,listeners:Ze}),Je?it.data=Je:(Je=iE(w),Je!==null&&(it.data=Je)))),(Je=JU?eH(u,w):tH(u,w))&&(ye=Mp(ye,"onBeforeInput"),0<ye.length&&(Oe=new ZO("onBeforeInput","beforeinput",null,w,Oe),Pe.push({event:Oe,listeners:ye}),Oe.data=Je))}jE(Pe,h)})}function Od(u,h,w){return{instance:u,listener:h,currentTarget:w}}function Mp(u,h){for(var w=h+"Capture",k=[];u!==null;){var T=u,L=T.stateNode;T.tag===5&&L!==null&&(T=L,L=jo(u,w),L!=null&&k.unshift(Od(u,L,T)),L=jo(u,h),L!=null&&k.push(Od(u,L,T))),u=u.return}return k}function ec(u){if(u===null)return null;do u=u.return;while(u&&u.tag!==5);return u||null}function kE(u,h,w,k,T){for(var L=h._reactName,U=[];w!==null&&w!==k;){var te=w,re=te.alternate,ye=te.stateNode;if(re!==null&&re===k)break;te.tag===5&&ye!==null&&(te=ye,T?(re=jo(w,L),re!=null&&U.unshift(Od(w,re,te))):T||(re=jo(w,L),re!=null&&U.push(Od(w,re,te)))),w=w.return}U.length!==0&&u.push({event:h,listeners:U})}var mH=/\r\n?/g,gH=/\u0000|\uFFFD/g;function OE(u){return(typeof u=="string"?u:""+u).replace(mH,`
39`).replace(gH,"")}function Ip(u,h,w){if(h=OE(h),OE(u)!==h&&w)throw Error(n(425))}function Dp(){}var jx=null,Nx=null;function kx(u,h){return u==="textarea"||u==="noscript"||typeof h.children=="string"||typeof h.children=="number"||typeof h.dangerouslySetInnerHTML=="object"&&h.dangerouslySetInnerHTML!==null&&h.dangerouslySetInnerHTML.__html!=null}var Ox=typeof setTimeout=="function"?setTimeout:void 0,yH=typeof clearTimeout=="function"?clearTimeout:void 0,EE=typeof Promise=="function"?Promise:void 0,vH=typeof queueMicrotask=="function"?queueMicrotask:typeof EE<"u"?function(u){return EE.resolve(null).then(u).catch(xH)}:Ox;function xH(u){setTimeout(function(){throw u})}function Ex(u,h){var w=h,k=0;do{var T=w.nextSibling;if(u.removeChild(w),T&&T.nodeType===8)if(w=T.data,w==="/$"){if(k===0){u.removeChild(T),yd(h);return}k--}else w!=="$"&&w!=="$?"&&w!=="$!"||k++;w=T}while(w);yd(h)}function xa(u){for(;u!=null;u=u.nextSibling){var h=u.nodeType;if(h===1||h===3)break;if(h===8){if(h=u.data,h==="$"||h==="$!"||h==="$?")break;if(h==="/$")return null}}return u}function PE(u){u=u.previousSibling;for(var h=0;u;){if(u.nodeType===8){var w=u.data;if(w==="$"||w==="$!"||w==="$?"){if(h===0)return u;h--}else w==="/$"&&h++}u=u.previousSibling}return null}var tc=Math.random().toString(36).slice(2),Ki="__reactFiber$"+tc,Ed="__reactProps$"+tc,ko="__reactContainer$"+tc,Px="__reactEvents$"+tc,bH="__reactListeners$"+tc,wH="__reactHandles$"+tc;function As(u){var h=u[Ki];if(h)return h;for(var w=u.parentNode;w;){if(h=w[ko]||w[Ki]){if(w=h.alternate,h.child!==null||w!==null&&w.child!==null)for(u=PE(u);u!==null;){if(w=u[Ki])return w;u=PE(u)}return h}u=w,w=u.parentNode}return null}function Pd(u){return u=u[Ki]||u[ko],!u||u.tag!==5&&u.tag!==6&&u.tag!==13&&u.tag!==3?null:u}function nc(u){if(u.tag===5||u.tag===6)return u.stateNode;throw Error(n(33))}function Lp(u){return u[Ed]||null}var Ax=[],rc=-1;function ba(u){return{current:u}}
vendor: 6,471 bytes, line 39
39function Ht(u){0>rc||(u.current=Ax[rc],Ax[rc]=null,rc--)}function Dt(u,h){rc++,Ax[rc]=u.current,u.current=h}var wa={},Xn=ba(wa),wr=ba(!1),Ts=wa;function ic(u,h){var w=u.type.contextTypes;if(!w)return wa;var k=u.stateNode;if(k&&k.__reactInternalMemoizedUnmaskedChildContext===h)return k.__reactInternalMemoizedMaskedChildContext;var T={},L;for(L in w)T[L]=h[L];return k&&(u=u.stateNode,u.__reactInternalMemoizedUnmaskedChildContext=h,u.__reactInternalMemoizedMaskedChildContext=T),T}function _r(u){return u=u.childContextTypes,u!=null}function Bp(){Ht(wr),Ht(Xn)}function AE(u,h,w){if(Xn.current!==wa)throw Error(n(168));Dt(Xn,h),Dt(wr,w)}function TE(u,h,w){var k=u.stateNode;if(h=h.childContextTypes,typeof k.getChildContext!="function")return w;k=k.getChildContext();for(var T in k)if(!(T in h))throw Error(n(108,X(u)||"Unknown",T));return q({},w,k)}function $p(u){return u=(u=u.stateNode)&&u.__reactInternalMemoizedMergedChildContext||wa,Ts=Xn.current,Dt(Xn,u),Dt(wr,wr.current),!0}function CE(u,h,w){var k=u.stateNode;if(!k)throw Error(n(169));w?(u=TE(u,h,Ts),k.__reactInternalMemoizedMergedChildContext=u,Ht(wr),Ht(Xn),Dt(Xn,u)):Ht(wr),Dt(wr,w)}var Oo=null,Fp=!1,Tx=!1;function RE(u){Oo===null?Oo=[u]:Oo.push(u)}function _H(u){Fp=!0,RE(u)}function _a(){if(!Tx&&Oo!==null){Tx=!0;var u=0,h=Q;try{var w=Oo;for(Q=1;u<w.length;u++){var k=w[u];do k=k(!0);while(k!==null)}Oo=null,Fp=!1}catch(T){throw Oo!==null&&(Oo=Oo.slice(u+1)),vp(xi,_a),T}finally{Q=h,Tx=!1}}return null}var oc=[],ac=0,qp=null,zp=0,Qr=[],Zr=0,Cs=null,Eo=1,Po="";function Rs(u,h){oc[ac++]=zp,oc[ac++]=qp,qp=u,zp=h}function ME(u,h,w){Qr[Zr++]=Eo,Qr[Zr++]=Po,Qr[Zr++]=Cs,Cs=u;var k=Eo;u=Po;var T=32-Kn(k)-1;k&=~(1<<T),w+=1;var L=32-Kn(h)+T;if(30<L){var U=T-T%5;L=(k&(1<<U)-1).toString(32),k>>=U,T-=U,Eo=1<<32-Kn(h)+T|w<<T|k,Po=L+u}else Eo=1<<L|w<<T|k,Po=u}function Cx(u){u.return!==null&&(Rs(u,1),ME(u,1,0))}function Rx(u){for(;u===qp;)qp=oc[--ac],oc[ac]=null,zp=oc[--ac],oc[ac]=null;for(;u===Cs;)Cs=Qr[--Zr],Qr[Zr]=null,Po=Qr[--Zr],Qr[Zr]=null,Eo=Qr[--Zr],Qr[Zr]=null}var Ir=null,Dr=null,Yt=!1,wi=null;function IE(u,h){var w=ni(5,null,null,0);w.elementType="DELETED",w.stateNode=h,w.return=u,h=u.deletions,h===null?(u.deletions=[w],u.flags|=16):h.push(w)}function DE(u,h){switch(u.tag){case 5:var w=u.type;return h=h.nodeType!==1||w.toLowerCase()!==h.nodeName.toLowerCase()?null:h,h!==null?(u.stateNode=h,Ir=u,Dr=xa(h.firstChild),!0):!1;case 6:return h=u.pendingProps===""||h.nodeType!==3?null:h,h!==null?(u.stateNode=h,Ir=u,Dr=null,!0):!1;case 13:return h=h.nodeType!==8?null:h,h!==null?(w=Cs!==null?{id:Eo,overflow:Po}:null,u.memoizedState={dehydrated:h,treeContext:w,retryLane:1073741824},w=ni(18,null,null,0),w.stateNode=h,w.return=u,u.child=w,Ir=u,Dr=null,!0):!1;default:return!1}}function Mx(u){return(u.mode&1)!==0&&(u.flags&128)===0}function Ix(u){if(Yt){var h=Dr;if(h){var w=h;if(!DE(u,h)){if(Mx(u))throw Error(n(418));h=xa(w.nextSibling);var k=Ir;h&&DE(u,h)?IE(k,w):(u.flags=u.flags&-4097|2,Yt=!1,Ir=u)}}else{if(Mx(u))throw Error(n(418));u.flags=u.flags&-4097|2,Yt=!1,Ir=u}}}function LE(u){for(u=u.return;u!==null&&u.tag!==5&&u.tag!==3&&u.tag!==13;)u=u.return;Ir=u}function Up(u){if(u!==Ir)return!1;if(!Yt)return LE(u),Yt=!0,!1;var h;if((h=u.tag!==3)&&!(h=u.tag!==5)&&(h=u.type,h=h!=="head"&&h!=="body"&&!kx(u.type,u.memoizedProps)),h&&(h=Dr)){if(Mx(u))throw BE(),Error(n(418));for(;h;)IE(u,h),h=xa(h.nextSibling)}if(LE(u),u.tag===13){if(u=u.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(n(317));e:{for(u=u.nextSibling,h=0;u;){if(u.nodeType===8){var w=u.data;if(w==="/$"){if(h===0){Dr=xa(u.nextSibling);break e}h--}else w!=="$"&&w!=="$!"&&w!=="$?"||h++}u=u.nextSibling}Dr=null}}else Dr=Ir?xa(u.stateNode.nextSibling):null;return!0}function BE(){for(var u=Dr;u;)u=xa(u.nextSibling)}function sc(){Dr=Ir=null,Yt=!1}function Dx(u){wi===null?wi=[u]:wi.push(u)}var SH=S.ReactCurrentBatchConfig;function Ad(u,h,w){if(u=w.ref,u!==null&&typeof u!="function"&&typeof u!="object"){if(w._owner){if(w=w._owner,w){if(w.tag!==1)throw Error(n(309));var k=w.stateNode}if(!k)throw Error(n(147,u));var T=k,L=""+u;return h!==null&&h.ref!==null&&typeof h.ref=="function"&&h.ref._stringRef===L?h.ref:(h=function(U){var te=T.refs;U===null?delete te[L]:te[L]=U},h._stringRef=L,h)}if(typeof u!="string")throw Error(n(284));if(!w._owner)throw Error(n(290,u))}return u}function Hp(u,h){throw u=Object.prototype.toString.call(h),Error(n(31,u==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":u))}function $E(u){var h=u._init;return h(u._payload)}function FE(u){function h(he,ce){if(u){var pe=he.deletions;pe===null?(he.deletions=[ce],he.flags|=16):pe.push(ce)}}function w(he,ce){if(!u)return null;for(;ce!==null;)h(he,ce),ce=ce.sibling;return null}function k(he,ce){for(he=new Map;ce!==null;)ce.key!==null?he.set(ce.key,ce):he.set(ce.index,ce),ce=ce.sibling;return he}function T(he,ce){return he=Aa(he,ce),he.index=0,he.sibling=null,he}function L(he,ce,pe){return he.index=pe,u?(pe=he.alternate,pe!==null?(pe=pe.index,pe<ce?(he.flags|=2,ce):pe):(he.flags|=2,ce)):(he.flags|=1048576,ce)}function U(he){return u&&he.alternate===null&&(he.flags|=2),he}function te(he,ce,pe,Te){return ce===null||ce.tag!==6?(ce=Ob(pe,he.mode,Te),ce.return=he,ce):(ce=T(ce,pe),ce.return=he,ce)}function re(he,ce,pe,Te){var Xe=pe.type;return Xe===E?Oe(he,ce,pe.props.children,Te,pe.key):ce!==null&&(ce.elementType===Xe||typeof Xe=="object"&&Xe!==null&&Xe.$$typeof===H&&$E(Xe)===ce.type)?(Te=T(ce,pe.props),Te.ref=Ad(he,ce,pe),Te.return=he,Te):(Te=pm(pe.type,pe.key,pe.props,null,he.mode,Te),Te.ref=Ad(he,ce,pe),Te.return=he,Te)}function ye(he,ce,pe,Te){return ce===null||ce.tag!==4||ce.stateNode.containerInfo!==pe.containerInfo||ce.stateNode.implementation!==pe.implementation?(ce=Eb(pe,he.mode,Te),ce.return=he,ce):(ce=T(ce,pe.children||[]),ce.return=he,ce)}function Oe(he,ce,pe,Te,Xe){return ce===null||ce.tag!==7?(ce=qs(pe,he.mode,Te,Xe),ce.return=he,ce):(ce=T(ce,pe),ce.return=he,ce)}function Pe(he,ce,pe){if(typeof ce=="string"&&ce!==""||typeof ce=="number")return ce=Ob(""+ce,he.mode,pe),ce.return=he,ce;if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case N:return pe=pm(ce.type,ce.key,ce.props,null,he.mode,pe),pe.ref=Ad(he,null,ce),pe.return=he,pe;case O:return ce=Eb(ce,he.mode,pe),ce.return=he,ce;case H:var Te=ce._init;return Pe(he,Te(ce._payload),pe)}if(Se(ce)||W(ce))return ce=qs(ce,he.mode,pe,null),ce.return=he,ce;Hp(he,ce)}return null}function Ne(he,ce,pe,Te){var Xe=ce!==null?ce.key:null;
vendor: 3,688 bytes, line 39
39if(typeof pe=="string"&&pe!==""||typeof pe=="number")return Xe!==null?null:te(he,ce,""+pe,Te);if(typeof pe=="object"&&pe!==null){switch(pe.$$typeof){case N:return pe.key===Xe?re(he,ce,pe,Te):null;case O:return pe.key===Xe?ye(he,ce,pe,Te):null;case H:return Xe=pe._init,Ne(he,ce,Xe(pe._payload),Te)}if(Se(pe)||W(pe))return Xe!==null?null:Oe(he,ce,pe,Te,null);Hp(he,pe)}return null}function Le(he,ce,pe,Te,Xe){if(typeof Te=="string"&&Te!==""||typeof Te=="number")return he=he.get(pe)||null,te(ce,he,""+Te,Xe);if(typeof Te=="object"&&Te!==null){switch(Te.$$typeof){case N:return he=he.get(Te.key===null?pe:Te.key)||null,re(ce,he,Te,Xe);case O:return he=he.get(Te.key===null?pe:Te.key)||null,ye(ce,he,Te,Xe);case H:var Ze=Te._init;return Le(he,ce,pe,Ze(Te._payload),Xe)}if(Se(Te)||W(Te))return he=he.get(pe)||null,Oe(ce,he,Te,Xe,null);Hp(ce,Te)}return null}function Ve(he,ce,pe,Te){for(var Xe=null,Ze=null,Je=ce,it=ce=0,An=null;Je!==null&&it<pe.length;it++){Je.index>it?(An=Je,Je=null):An=Je.sibling;var _t=Ne(he,Je,pe[it],Te);if(_t===null){Je===null&&(Je=An);break}u&&Je&&_t.alternate===null&&h(he,Je),ce=L(_t,ce,it),Ze===null?Xe=_t:Ze.sibling=_t,Ze=_t,Je=An}if(it===pe.length)return w(he,Je),Yt&&Rs(he,it),Xe;if(Je===null){for(;it<pe.length;it++)Je=Pe(he,pe[it],Te),Je!==null&&(ce=L(Je,ce,it),Ze===null?Xe=Je:Ze.sibling=Je,Ze=Je);return Yt&&Rs(he,it),Xe}for(Je=k(he,Je);it<pe.length;it++)An=Le(Je,he,it,pe[it],Te),An!==null&&(u&&An.alternate!==null&&Je.delete(An.key===null?it:An.key),ce=L(An,ce,it),Ze===null?Xe=An:Ze.sibling=An,Ze=An);return u&&Je.forEach(function(Ta){return h(he,Ta)}),Yt&&Rs(he,it),Xe}function Ke(he,ce,pe,Te){var Xe=W(pe);if(typeof Xe!="function")throw Error(n(150));if(pe=Xe.call(pe),pe==null)throw Error(n(151));for(var Ze=Xe=null,Je=ce,it=ce=0,An=null,_t=pe.next();Je!==null&&!_t.done;it++,_t=pe.next()){Je.index>it?(An=Je,Je=null):An=Je.sibling;var Ta=Ne(he,Je,_t.value,Te);if(Ta===null){Je===null&&(Je=An);break}u&&Je&&Ta.alternate===null&&h(he,Je),ce=L(Ta,ce,it),Ze===null?Xe=Ta:Ze.sibling=Ta,Ze=Ta,Je=An}if(_t.done)return w(he,Je),Yt&&Rs(he,it),Xe;if(Je===null){for(;!_t.done;it++,_t=pe.next())_t=Pe(he,_t.value,Te),_t!==null&&(ce=L(_t,ce,it),Ze===null?Xe=_t:Ze.sibling=_t,Ze=_t);return Yt&&Rs(he,it),Xe}for(Je=k(he,Je);!_t.done;it++,_t=pe.next())_t=Le(Je,he,it,_t.value,Te),_t!==null&&(u&&_t.alternate!==null&&Je.delete(_t.key===null?it:_t.key),ce=L(_t,ce,it),Ze===null?Xe=_t:Ze.sibling=_t,Ze=_t);return u&&Je.forEach(function(nV){return h(he,nV)}),Yt&&Rs(he,it),Xe}function sn(he,ce,pe,Te){if(typeof pe=="object"&&pe!==null&&pe.type===E&&pe.key===null&&(pe=pe.props.children),typeof pe=="object"&&pe!==null){switch(pe.$$typeof){case N:e:{for(var Xe=pe.key,Ze=ce;Ze!==null;){if(Ze.key===Xe){if(Xe=pe.type,Xe===E){if(Ze.tag===7){w(he,Ze.sibling),ce=T(Ze,pe.props.children),ce.return=he,he=ce;break e}}else if(Ze.elementType===Xe||typeof Xe=="object"&&Xe!==null&&Xe.$$typeof===H&&$E(Xe)===Ze.type){w(he,Ze.sibling),ce=T(Ze,pe.props),ce.ref=Ad(he,Ze,pe),ce.return=he,he=ce;break e}w(he,Ze);break}else h(he,Ze);Ze=Ze.sibling}pe.type===E?(ce=qs(pe.props.children,he.mode,Te,pe.key),ce.return=he,he=ce):(Te=pm(pe.type,pe.key,pe.props,null,he.mode,Te),Te.ref=Ad(he,ce,pe),Te.return=he,he=Te)}return U(he);case O:e:{for(Ze=pe.key;ce!==null;){if(ce.key===Ze)if(ce.tag===4&&ce.stateNode.containerInfo===pe.containerInfo&&ce.stateNode.implementation===pe.implementation){w(he,ce.sibling),ce=T(ce,pe.children||[]),ce.return=he,he=ce;break e}else{w(he,ce);break}else h(he,ce);ce=ce.sibling}ce=Eb(pe,he.mode,Te),ce.return=he,he=ce}return U(he);case H:return Ze=pe._init,sn(he,ce,Ze(pe._payload),Te)}if(Se(pe))return Ve(he,ce,pe,Te);if(W(pe))return Ke(he,ce,pe,Te);Hp(he,pe)}
vendor: 5,226 bytes, line 39
39return typeof pe=="string"&&pe!==""||typeof pe=="number"?(pe=""+pe,ce!==null&&ce.tag===6?(w(he,ce.sibling),ce=T(ce,pe),ce.return=he,he=ce):(w(he,ce),ce=Ob(pe,he.mode,Te),ce.return=he,he=ce),U(he)):w(he,ce)}return sn}var lc=FE(!0),qE=FE(!1),Vp=ba(null),Wp=null,cc=null,Lx=null;function Bx(){Lx=cc=Wp=null}function $x(u){var h=Vp.current;Ht(Vp),u._currentValue=h}function Fx(u,h,w){for(;u!==null;){var k=u.alternate;if((u.childLanes&h)!==h?(u.childLanes|=h,k!==null&&(k.childLanes|=h)):k!==null&&(k.childLanes&h)!==h&&(k.childLanes|=h),u===w)break;u=u.return}}function uc(u,h){Wp=u,Lx=cc=null,u=u.dependencies,u!==null&&u.firstContext!==null&&((u.lanes&h)!==0&&(Sr=!0),u.firstContext=null)}function Jr(u){var h=u._currentValue;if(Lx!==u)if(u={context:u,memoizedValue:h,next:null},cc===null){if(Wp===null)throw Error(n(308));cc=u,Wp.dependencies={lanes:0,firstContext:u}}else cc=cc.next=u;return h}var Ms=null;function qx(u){Ms===null?Ms=[u]:Ms.push(u)}function zE(u,h,w,k){var T=h.interleaved;return T===null?(w.next=w,qx(h)):(w.next=T.next,T.next=w),h.interleaved=w,Ao(u,k)}function Ao(u,h){u.lanes|=h;var w=u.alternate;for(w!==null&&(w.lanes|=h),w=u,u=u.return;u!==null;)u.childLanes|=h,w=u.alternate,w!==null&&(w.childLanes|=h),w=u,u=u.return;return w.tag===3?w.stateNode:null}var Sa=!1;function zx(u){u.updateQueue={baseState:u.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function UE(u,h){u=u.updateQueue,h.updateQueue===u&&(h.updateQueue={baseState:u.baseState,firstBaseUpdate:u.firstBaseUpdate,lastBaseUpdate:u.lastBaseUpdate,shared:u.shared,effects:u.effects})}function To(u,h){return{eventTime:u,lane:h,tag:0,payload:null,callback:null,next:null}}function ja(u,h,w){var k=u.updateQueue;if(k===null)return null;if(k=k.shared,(wt&2)!==0){var T=k.pending;return T===null?h.next=h:(h.next=T.next,T.next=h),k.pending=h,Ao(u,w)}return T=k.interleaved,T===null?(h.next=h,qx(k)):(h.next=T.next,T.next=h),k.interleaved=h,Ao(u,w)}function Gp(u,h,w){if(h=h.updateQueue,h!==null&&(h=h.shared,(w&4194240)!==0)){var k=h.lanes;k&=u.pendingLanes,w|=k,h.lanes=w,Ae(u,w)}}function HE(u,h){var w=u.updateQueue,k=u.alternate;if(k!==null&&(k=k.updateQueue,w===k)){var T=null,L=null;if(w=w.firstBaseUpdate,w!==null){do{var U={eventTime:w.eventTime,lane:w.lane,tag:w.tag,payload:w.payload,callback:w.callback,next:null};L===null?T=L=U:L=L.next=U,w=w.next}while(w!==null);L===null?T=L=h:L=L.next=h}else T=L=h;w={baseState:k.baseState,firstBaseUpdate:T,lastBaseUpdate:L,shared:k.shared,effects:k.effects},u.updateQueue=w;return}u=w.lastBaseUpdate,u===null?w.firstBaseUpdate=h:u.next=h,w.lastBaseUpdate=h}function Kp(u,h,w,k){var T=u.updateQueue;Sa=!1;var L=T.firstBaseUpdate,U=T.lastBaseUpdate,te=T.shared.pending;if(te!==null){T.shared.pending=null;var re=te,ye=re.next;re.next=null,U===null?L=ye:U.next=ye,U=re;var Oe=u.alternate;Oe!==null&&(Oe=Oe.updateQueue,te=Oe.lastBaseUpdate,te!==U&&(te===null?Oe.firstBaseUpdate=ye:te.next=ye,Oe.lastBaseUpdate=re))}if(L!==null){var Pe=T.baseState;U=0,Oe=ye=re=null,te=L;do{var Ne=te.lane,Le=te.eventTime;if((k&Ne)===Ne){Oe!==null&&(Oe=Oe.next={eventTime:Le,lane:0,tag:te.tag,payload:te.payload,callback:te.callback,next:null});e:{var Ve=u,Ke=te;switch(Ne=h,Le=w,Ke.tag){case 1:if(Ve=Ke.payload,typeof Ve=="function"){Pe=Ve.call(Le,Pe,Ne);break e}Pe=Ve;break e;case 3:Ve.flags=Ve.flags&-65537|128;case 0:if(Ve=Ke.payload,Ne=typeof Ve=="function"?Ve.call(Le,Pe,Ne):Ve,Ne==null)break e;Pe=q({},Pe,Ne);break e;case 2:Sa=!0}}te.callback!==null&&te.lane!==0&&(u.flags|=64,Ne=T.effects,Ne===null?T.effects=[te]:Ne.push(te))}else Le={eventTime:Le,lane:Ne,tag:te.tag,payload:te.payload,callback:te.callback,next:null},Oe===null?(ye=Oe=Le,re=Pe):Oe=Oe.next=Le,U|=Ne;if(te=te.next,te===null){if(te=T.shared.pending,te===null)break;Ne=te,te=Ne.next,Ne.next=null,T.lastBaseUpdate=Ne,T.shared.pending=null}}while(!0);if(Oe===null&&(re=Pe),T.baseState=re,T.firstBaseUpdate=ye,T.lastBaseUpdate=Oe,h=T.shared.interleaved,h!==null){T=h;do U|=T.lane,T=T.next;while(T!==h)}else L===null&&(T.shared.lanes=0);Ls|=U,u.lanes=U,u.memoizedState=Pe}}function VE(u,h,w){if(u=h.effects,h.effects=null,u!==null)for(h=0;h<u.length;h++){var k=u[h],T=k.callback;if(T!==null){if(k.callback=null,k=w,typeof T!="function")throw Error(n(191,T));T.call(k)}}}var Td={},Yi=ba(Td),Cd=ba(Td),Rd=ba(Td);function Is(u){if(u===Td)throw Error(n(174));return u}function Ux(u,h){switch(Dt(Rd,h),Dt(Cd,u),Dt(Yi,Td),u=h.nodeType,u){case 9:case 11:h=(h=h.documentElement)?h.namespaceURI:Ft(null,"");break;default:u=u===8?h.parentNode:h,h=u.namespaceURI||null,u=u.tagName,h=Ft(h,u)}Ht(Yi),Dt(Yi,h)}function dc(){Ht(Yi),Ht(Cd),Ht(Rd)}function WE(u){Is(Rd.current);var h=Is(Yi.current),w=Ft(h,u.type);h!==w&&(Dt(Cd,u),Dt(Yi,w))}function Hx(u){Cd.current===u&&(Ht(Yi),Ht(Cd))}var Zt=ba(0);function Yp(u){for(var h=u;h!==null;){if(h.tag===13){var w=h.memoizedState;if(w!==null&&(w=w.dehydrated,w===null||w.data==="$?"||w.data==="$!"))return h}else if(h.tag===19&&h.memoizedProps.revealOrder!==void 0){if((h.flags&128)!==0)return h}else if(h.child!==null){h.child.return=h,h=h.child;continue}if(h===u)break;for(;h.sibling===null;){if(h.return===null||h.return===u)return null;h=h.return}
vendor: 7,157 bytes, line 39
39h.sibling.return=h.return,h=h.sibling}return null}var Vx=[];function Wx(){for(var u=0;u<Vx.length;u++)Vx[u]._workInProgressVersionPrimary=null;Vx.length=0}var Xp=S.ReactCurrentDispatcher,Gx=S.ReactCurrentBatchConfig,Ds=0,Jt=null,bn=null,En=null,Qp=!1,Md=!1,Id=0,jH=0;function Qn(){throw Error(n(321))}function Kx(u,h){if(h===null)return!1;for(var w=0;w<h.length&&w<u.length;w++)if(!bi(u[w],h[w]))return!1;return!0}function Yx(u,h,w,k,T,L){if(Ds=L,Jt=h,h.memoizedState=null,h.updateQueue=null,h.lanes=0,Xp.current=u===null||u.memoizedState===null?EH:PH,u=w(k,T),Md){L=0;do{if(Md=!1,Id=0,25<=L)throw Error(n(301));L+=1,En=bn=null,h.updateQueue=null,Xp.current=AH,u=w(k,T)}while(Md)}if(Xp.current=em,h=bn!==null&&bn.next!==null,Ds=0,En=bn=Jt=null,Qp=!1,h)throw Error(n(300));return u}function Xx(){var u=Id!==0;return Id=0,u}function Xi(){var u={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return En===null?Jt.memoizedState=En=u:En=En.next=u,En}function ei(){if(bn===null){var u=Jt.alternate;u=u!==null?u.memoizedState:null}else u=bn.next;var h=En===null?Jt.memoizedState:En.next;if(h!==null)En=h,bn=u;else{if(u===null)throw Error(n(310));bn=u,u={memoizedState:bn.memoizedState,baseState:bn.baseState,baseQueue:bn.baseQueue,queue:bn.queue,next:null},En===null?Jt.memoizedState=En=u:En=En.next=u}return En}function Dd(u,h){return typeof h=="function"?h(u):h}function Qx(u){var h=ei(),w=h.queue;if(w===null)throw Error(n(311));w.lastRenderedReducer=u;var k=bn,T=k.baseQueue,L=w.pending;if(L!==null){if(T!==null){var U=T.next;T.next=L.next,L.next=U}k.baseQueue=T=L,w.pending=null}if(T!==null){L=T.next,k=k.baseState;var te=U=null,re=null,ye=L;do{var Oe=ye.lane;if((Ds&Oe)===Oe)re!==null&&(re=re.next={lane:0,action:ye.action,hasEagerState:ye.hasEagerState,eagerState:ye.eagerState,next:null}),k=ye.hasEagerState?ye.eagerState:u(k,ye.action);else{var Pe={lane:Oe,action:ye.action,hasEagerState:ye.hasEagerState,eagerState:ye.eagerState,next:null};re===null?(te=re=Pe,U=k):re=re.next=Pe,Jt.lanes|=Oe,Ls|=Oe}ye=ye.next}while(ye!==null&&ye!==L);re===null?U=k:re.next=te,bi(k,h.memoizedState)||(Sr=!0),h.memoizedState=k,h.baseState=U,h.baseQueue=re,w.lastRenderedState=k}if(u=w.interleaved,u!==null){T=u;do L=T.lane,Jt.lanes|=L,Ls|=L,T=T.next;while(T!==u)}else T===null&&(w.lanes=0);return[h.memoizedState,w.dispatch]}function Zx(u){var h=ei(),w=h.queue;if(w===null)throw Error(n(311));w.lastRenderedReducer=u;var k=w.dispatch,T=w.pending,L=h.memoizedState;if(T!==null){w.pending=null;var U=T=T.next;do L=u(L,U.action),U=U.next;while(U!==T);bi(L,h.memoizedState)||(Sr=!0),h.memoizedState=L,h.baseQueue===null&&(h.baseState=L),w.lastRenderedState=L}return[L,k]}function GE(){}function KE(u,h){var w=Jt,k=ei(),T=h(),L=!bi(k.memoizedState,T);if(L&&(k.memoizedState=T,Sr=!0),k=k.queue,Jx(QE.bind(null,w,k,u),[u]),k.getSnapshot!==h||L||En!==null&&En.memoizedState.tag&1){if(w.flags|=2048,Ld(9,XE.bind(null,w,k,T,h),void 0,null),Pn===null)throw Error(n(349));(Ds&30)!==0||YE(w,h,T)}return T}function YE(u,h,w){u.flags|=16384,u={getSnapshot:h,value:w},h=Jt.updateQueue,h===null?(h={lastEffect:null,stores:null},Jt.updateQueue=h,h.stores=[u]):(w=h.stores,w===null?h.stores=[u]:w.push(u))}function XE(u,h,w,k){h.value=w,h.getSnapshot=k,ZE(h)&&JE(u)}function QE(u,h,w){return w(function(){ZE(h)&&JE(u)})}function ZE(u){var h=u.getSnapshot;u=u.value;try{var w=h();return!bi(u,w)}catch{return!0}}function JE(u){var h=Ao(u,1);h!==null&&Ni(h,u,1,-1)}function eP(u){var h=Xi();return typeof u=="function"&&(u=u()),h.memoizedState=h.baseState=u,u={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Dd,lastRenderedState:u},h.queue=u,u=u.dispatch=OH.bind(null,Jt,u),[h.memoizedState,u]}function Ld(u,h,w,k){return u={tag:u,create:h,destroy:w,deps:k,next:null},h=Jt.updateQueue,h===null?(h={lastEffect:null,stores:null},Jt.updateQueue=h,h.lastEffect=u.next=u):(w=h.lastEffect,w===null?h.lastEffect=u.next=u:(k=w.next,w.next=u,u.next=k,h.lastEffect=u)),u}function tP(){return ei().memoizedState}function Zp(u,h,w,k){var T=Xi();Jt.flags|=u,T.memoizedState=Ld(1|h,w,void 0,k===void 0?null:k)}function Jp(u,h,w,k){var T=ei();k=k===void 0?null:k;var L=void 0;if(bn!==null){var U=bn.memoizedState;if(L=U.destroy,k!==null&&Kx(k,U.deps)){T.memoizedState=Ld(h,w,L,k);return}}Jt.flags|=u,T.memoizedState=Ld(1|h,w,L,k)}function nP(u,h){return Zp(8390656,8,u,h)}function Jx(u,h){return Jp(2048,8,u,h)}function rP(u,h){return Jp(4,2,u,h)}function iP(u,h){return Jp(4,4,u,h)}function oP(u,h){if(typeof h=="function")return u=u(),h(u),function(){h(null)};if(h!=null)return u=u(),h.current=u,function(){h.current=null}}function aP(u,h,w){return w=w!=null?w.concat([u]):null,Jp(4,4,oP.bind(null,h,u),w)}function eb(){}function sP(u,h){var w=ei();h=h===void 0?null:h;var k=w.memoizedState;return k!==null&&h!==null&&Kx(h,k[1])?k[0]:(w.memoizedState=[u,h],u)}function lP(u,h){var w=ei();h=h===void 0?null:h;var k=w.memoizedState;return k!==null&&h!==null&&Kx(h,k[1])?k[0]:(u=u(),w.memoizedState=[u,h],u)}function cP(u,h,w){return(Ds&21)===0?(u.baseState&&(u.baseState=!1,Sr=!0),u.memoizedState=w):(bi(w,h)||(w=_p(),Jt.lanes|=w,Ls|=w,u.baseState=!0),h)}function NH(u,h){var w=Q;Q=w!==0&&4>w?w:4,u(!0);var k=Gx.transition;Gx.transition={};try{u(!1),h()}finally{Q=w,Gx.transition=k}}function uP(){return ei().memoizedState}function kH(u,h,w){var k=Ea(u);if(w={lane:k,action:w,hasEagerState:!1,eagerState:null,next:null},dP(u))fP(h,w);else if(w=zE(u,h,w,k),w!==null){var T=fr();Ni(w,u,k,T),hP(w,h,k)}}function OH(u,h,w){var k=Ea(u),T={lane:k,action:w,hasEagerState:!1,eagerState:null,next:null};if(dP(u))fP(h,T);else{var L=u.alternate;if(u.lanes===0&&(L===null||L.lanes===0)&&(L=h.lastRenderedReducer,L!==null))try{var U=h.lastRenderedState,te=L(U,w);if(T.hasEagerState=!0,T.eagerState=te,bi(te,U)){var re=h.interleaved;re===null?(T.next=T,qx(h)):(T.next=re.next,re.next=T),h.interleaved=T;return}}catch{}finally{}w=zE(u,h,T,k),w!==null&&(T=fr(),Ni(w,u,k,T),hP(w,h,k))}}function dP(u){var h=u.alternate;return u===Jt||h!==null&&h===Jt}function fP(u,h){Md=Qp=!0;var w=u.pending;w===null?h.next=h:(h.next=w.next,w.next=h),u.pending=h}function hP(u,h,w){if((w&4194240)!==0){var k=h.lanes;k&=u.pendingLanes,w|=k,h.lanes=w,Ae(u,w)}}var em={readContext:Jr,useCallback:Qn,useContext:Qn,useEffect:Qn,useImperativeHandle:Qn,useInsertionEffect:Qn,useLayoutEffect:Qn,useMemo:Qn,useReducer:Qn,useRef:Qn,useState:Qn,useDebugValue:Qn,useDeferredValue:Qn,useTransition:Qn,useMutableSource:Qn,useSyncExternalStore:Qn,useId:Qn,unstable_isNewReconciler:!1},EH={readContext:Jr,useCallback:function(u,h){return Xi().memoizedState=[u,h===void 0?null:h],u},useContext:Jr,useEffect:nP,useImperativeHandle:function(u,h,w){return w=w!=null?w.concat([u]):null,Zp(4194308,4,oP.bind(null,h,u),w)},useLayoutEffect:function(u,h){return Zp(4194308,4,u,h)},useInsertionEffect:function(u,h){return Zp(4,2,u,h)},useMemo:function(u,h){var w=Xi();return h=h===void 0?null:h,u=u(),w.memoizedState=[u,h],u},useReducer:function(u,h,w){var k=Xi();return h=w!==void 0?w(h):h,k.memoizedState=k.baseState=h,u={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:u,lastRenderedState:h}
vendor: 7,516 bytes, lines 39-41
39,k.queue=u,u=u.dispatch=kH.bind(null,Jt,u),[k.memoizedState,u]},useRef:function(u){var h=Xi();return u={current:u},h.memoizedState=u},useState:eP,useDebugValue:eb,useDeferredValue:function(u){return Xi().memoizedState=u},useTransition:function(){var u=eP(!1),h=u[0];return u=NH.bind(null,u[1]),Xi().memoizedState=u,[h,u]},useMutableSource:function(){},useSyncExternalStore:function(u,h,w){var k=Jt,T=Xi();if(Yt){if(w===void 0)throw Error(n(407));w=w()}else{if(w=h(),Pn===null)throw Error(n(349));(Ds&30)!==0||YE(k,h,w)}T.memoizedState=w;var L={value:w,getSnapshot:h};return T.queue=L,nP(QE.bind(null,k,L,u),[u]),k.flags|=2048,Ld(9,XE.bind(null,k,L,w,h),void 0,null),w},useId:function(){var u=Xi(),h=Pn.identifierPrefix;if(Yt){var w=Po,k=Eo;w=(k&~(1<<32-Kn(k)-1)).toString(32)+w,h=":"+h+"R"+w,w=Id++,0<w&&(h+="H"+w.toString(32)),h+=":"}else w=jH++,h=":"+h+"r"+w.toString(32)+":";return u.memoizedState=h},unstable_isNewReconciler:!1},PH={readContext:Jr,useCallback:sP,useContext:Jr,useEffect:Jx,useImperativeHandle:aP,useInsertionEffect:rP,useLayoutEffect:iP,useMemo:lP,useReducer:Qx,useRef:tP,useState:function(){return Qx(Dd)},useDebugValue:eb,useDeferredValue:function(u){var h=ei();return cP(h,bn.memoizedState,u)},useTransition:function(){var u=Qx(Dd)[0],h=ei().memoizedState;return[u,h]},useMutableSource:GE,useSyncExternalStore:KE,useId:uP,unstable_isNewReconciler:!1},AH={readContext:Jr,useCallback:sP,useContext:Jr,useEffect:Jx,useImperativeHandle:aP,useInsertionEffect:rP,useLayoutEffect:iP,useMemo:lP,useReducer:Zx,useRef:tP,useState:function(){return Zx(Dd)},useDebugValue:eb,useDeferredValue:function(u){var h=ei();return bn===null?h.memoizedState=u:cP(h,bn.memoizedState,u)},useTransition:function(){var u=Zx(Dd)[0],h=ei().memoizedState;return[u,h]},useMutableSource:GE,useSyncExternalStore:KE,useId:uP,unstable_isNewReconciler:!1};function _i(u,h){if(u&&u.defaultProps){h=q({},h),u=u.defaultProps;for(var w in u)h[w]===void 0&&(h[w]=u[w]);return h}return h}function tb(u,h,w,k){h=u.memoizedState,w=w(k,h),w=w==null?h:q({},h,w),u.memoizedState=w,u.lanes===0&&(u.updateQueue.baseState=w)}var tm={isMounted:function(u){return(u=u._reactInternals)?br(u)===u:!1},enqueueSetState:function(u,h,w){u=u._reactInternals;var k=fr(),T=Ea(u),L=To(k,T);L.payload=h,w!=null&&(L.callback=w),h=ja(u,L,T),h!==null&&(Ni(h,u,T,k),Gp(h,u,T))},enqueueReplaceState:function(u,h,w){u=u._reactInternals;var k=fr(),T=Ea(u),L=To(k,T);L.tag=1,L.payload=h,w!=null&&(L.callback=w),h=ja(u,L,T),h!==null&&(Ni(h,u,T,k),Gp(h,u,T))},enqueueForceUpdate:function(u,h){u=u._reactInternals;var w=fr(),k=Ea(u),T=To(w,k);T.tag=2,h!=null&&(T.callback=h),h=ja(u,T,k),h!==null&&(Ni(h,u,k,w),Gp(h,u,k))}};function pP(u,h,w,k,T,L,U){return u=u.stateNode,typeof u.shouldComponentUpdate=="function"?u.shouldComponentUpdate(k,L,U):h.prototype&&h.prototype.isPureReactComponent?!Sd(w,k)||!Sd(T,L):!0}function mP(u,h,w){var k=!1,T=wa,L=h.contextType;return typeof L=="object"&&L!==null?L=Jr(L):(T=_r(h)?Ts:Xn.current,k=h.contextTypes,L=(k=k!=null)?ic(u,T):wa),h=new h(w,L),u.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=tm,u.stateNode=h,h._reactInternals=u,k&&(u=u.stateNode,u.__reactInternalMemoizedUnmaskedChildContext=T,u.__reactInternalMemoizedMaskedChildContext=L),h}function gP(u,h,w,k){u=h.state,typeof h.componentWillReceiveProps=="function"&&h.componentWillReceiveProps(w,k),typeof h.UNSAFE_componentWillReceiveProps=="function"&&h.UNSAFE_componentWillReceiveProps(w,k),h.state!==u&&tm.enqueueReplaceState(h,h.state,null)}function nb(u,h,w,k){var T=u.stateNode;T.props=w,T.state=u.memoizedState,T.refs={},zx(u);var L=h.contextType;typeof L=="object"&&L!==null?T.context=Jr(L):(L=_r(h)?Ts:Xn.current,T.context=ic(u,L)),T.state=u.memoizedState,L=h.getDerivedStateFromProps,typeof L=="function"&&(tb(u,h,L,w),T.state=u.memoizedState),typeof h.getDerivedStateFromProps=="function"||typeof T.getSnapshotBeforeUpdate=="function"||typeof T.UNSAFE_componentWillMount!="function"&&typeof T.componentWillMount!="function"||(h=T.state,typeof T.componentWillMount=="function"&&T.componentWillMount(),typeof T.UNSAFE_componentWillMount=="function"&&T.UNSAFE_componentWillMount(),h!==T.state&&tm.enqueueReplaceState(T,T.state,null),Kp(u,w,T,k),T.state=u.memoizedState),typeof T.componentDidMount=="function"&&(u.flags|=4194308)}function fc(u,h){try{var w="",k=h;do w+=J(k),k=k.return;while(k);var T=w}catch(L){T=`
40Error generating stack: `+L.message+`
41`+L.stack}return{value:u,source:h,stack:T,digest:null}}function rb(u,h,w){return{value:u,source:null,stack:w??null,digest:h??null}}function ib(u,h){try{console.error(h.value)}catch(w){setTimeout(function(){throw w})}}var TH=typeof WeakMap=="function"?WeakMap:Map;function yP(u,h,w){w=To(-1,w),w.tag=3,w.payload={element:null};var k=h.value;return w.callback=function(){lm||(lm=!0,xb=k),ib(u,h)},w}function vP(u,h,w){w=To(-1,w),w.tag=3;var k=u.type.getDerivedStateFromError;if(typeof k=="function"){var T=h.value;w.payload=function(){return k(T)},w.callback=function(){ib(u,h)}}var L=u.stateNode;return L!==null&&typeof L.componentDidCatch=="function"&&(w.callback=function(){ib(u,h),typeof k!="function"&&(ka===null?ka=new Set([this]):ka.add(this));var U=h.stack;this.componentDidCatch(h.value,{componentStack:U!==null?U:""})}),w}function xP(u,h,w){var k=u.pingCache;if(k===null){k=u.pingCache=new TH;var T=new Set;k.set(h,T)}else T=k.get(h),T===void 0&&(T=new Set,k.set(h,T));T.has(w)||(T.add(w),u=VH.bind(null,u,h,w),h.then(u,u))}function bP(u){do{var h;if((h=u.tag===13)&&(h=u.memoizedState,h=h!==null?h.dehydrated!==null:!0),h)return u;u=u.return}while(u!==null);return null}function wP(u,h,w,k,T){return(u.mode&1)===0?(u===h?u.flags|=65536:(u.flags|=128,w.flags|=131072,w.flags&=-52805,w.tag===1&&(w.alternate===null?w.tag=17:(h=To(-1,1),h.tag=2,ja(w,h,1))),w.lanes|=1),u):(u.flags|=65536,u.lanes=T,u)}var CH=S.ReactCurrentOwner,Sr=!1;function dr(u,h,w,k){h.child=u===null?qE(h,null,w,k):lc(h,u.child,w,k)}function _P(u,h,w,k,T){w=w.render;var L=h.ref;return uc(h,T),k=Yx(u,h,w,k,L,T),w=Xx(),u!==null&&!Sr?(h.updateQueue=u.updateQueue,h.flags&=-2053,u.lanes&=~T,Co(u,h,T)):(Yt&&w&&Cx(h),h.flags|=1,dr(u,h,k,T),h.child)}function SP(u,h,w,k,T){if(u===null){var L=w.type;return typeof L=="function"&&!kb(L)&&L.defaultProps===void 0&&w.compare===null&&w.defaultProps===void 0?(h.tag=15,h.type=L,jP(u,h,L,k,T)):(u=pm(w.type,null,k,h,h.mode,T),u.ref=h.ref,u.return=h,h.child=u)}if(L=u.child,(u.lanes&T)===0){var U=L.memoizedProps;if(w=w.compare,w=w!==null?w:Sd,w(U,k)&&u.ref===h.ref)return Co(u,h,T)}return h.flags|=1,u=Aa(L,k),u.ref=h.ref,u.return=h,h.child=u}function jP(u,h,w,k,T){if(u!==null){var L=u.memoizedProps;if(Sd(L,k)&&u.ref===h.ref)if(Sr=!1,h.pendingProps=k=L,(u.lanes&T)!==0)(u.flags&131072)!==0&&(Sr=!0);else return h.lanes=u.lanes,Co(u,h,T)}return ob(u,h,w,k,T)}function NP(u,h,w){var k=h.pendingProps,T=k.children,L=u!==null?u.memoizedState:null;if(k.mode==="hidden")if((h.mode&1)===0)h.memoizedState={baseLanes:0,cachePool:null,transitions:null},Dt(pc,Lr),Lr|=w;else{if((w&1073741824)===0)return u=L!==null?L.baseLanes|w:w,h.lanes=h.childLanes=1073741824,h.memoizedState={baseLanes:u,cachePool:null,transitions:null},h.updateQueue=null,Dt(pc,Lr),Lr|=u,null;h.memoizedState={baseLanes:0,cachePool:null,transitions:null},k=L!==null?L.baseLanes:w,Dt(pc,Lr),Lr|=k}else L!==null?(k=L.baseLanes|w,h.memoizedState=null):k=w,Dt(pc,Lr),Lr|=k;return dr(u,h,T,w),h.child}function kP(u,h){var w=h.ref;(u===null&&w!==null||u!==null&&u.ref!==w)&&(h.flags|=512,h.flags|=2097152)}
vendor: 40,518 bytes, line 41
41function ob(u,h,w,k,T){var L=_r(w)?Ts:Xn.current;return L=ic(h,L),uc(h,T),w=Yx(u,h,w,k,L,T),k=Xx(),u!==null&&!Sr?(h.updateQueue=u.updateQueue,h.flags&=-2053,u.lanes&=~T,Co(u,h,T)):(Yt&&k&&Cx(h),h.flags|=1,dr(u,h,w,T),h.child)}function OP(u,h,w,k,T){if(_r(w)){var L=!0;$p(h)}else L=!1;if(uc(h,T),h.stateNode===null)rm(u,h),mP(h,w,k),nb(h,w,k,T),k=!0;else if(u===null){var U=h.stateNode,te=h.memoizedProps;U.props=te;var re=U.context,ye=w.contextType;typeof ye=="object"&&ye!==null?ye=Jr(ye):(ye=_r(w)?Ts:Xn.current,ye=ic(h,ye));var Oe=w.getDerivedStateFromProps,Pe=typeof Oe=="function"||typeof U.getSnapshotBeforeUpdate=="function";Pe||typeof U.UNSAFE_componentWillReceiveProps!="function"&&typeof U.componentWillReceiveProps!="function"||(te!==k||re!==ye)&&gP(h,U,k,ye),Sa=!1;var Ne=h.memoizedState;U.state=Ne,Kp(h,k,U,T),re=h.memoizedState,te!==k||Ne!==re||wr.current||Sa?(typeof Oe=="function"&&(tb(h,w,Oe,k),re=h.memoizedState),(te=Sa||pP(h,w,te,k,Ne,re,ye))?(Pe||typeof U.UNSAFE_componentWillMount!="function"&&typeof U.componentWillMount!="function"||(typeof U.componentWillMount=="function"&&U.componentWillMount(),typeof U.UNSAFE_componentWillMount=="function"&&U.UNSAFE_componentWillMount()),typeof U.componentDidMount=="function"&&(h.flags|=4194308)):(typeof U.componentDidMount=="function"&&(h.flags|=4194308),h.memoizedProps=k,h.memoizedState=re),U.props=k,U.state=re,U.context=ye,k=te):(typeof U.componentDidMount=="function"&&(h.flags|=4194308),k=!1)}else{U=h.stateNode,UE(u,h),te=h.memoizedProps,ye=h.type===h.elementType?te:_i(h.type,te),U.props=ye,Pe=h.pendingProps,Ne=U.context,re=w.contextType,typeof re=="object"&&re!==null?re=Jr(re):(re=_r(w)?Ts:Xn.current,re=ic(h,re));var Le=w.getDerivedStateFromProps;(Oe=typeof Le=="function"||typeof U.getSnapshotBeforeUpdate=="function")||typeof U.UNSAFE_componentWillReceiveProps!="function"&&typeof U.componentWillReceiveProps!="function"||(te!==Pe||Ne!==re)&&gP(h,U,k,re),Sa=!1,Ne=h.memoizedState,U.state=Ne,Kp(h,k,U,T);var Ve=h.memoizedState;te!==Pe||Ne!==Ve||wr.current||Sa?(typeof Le=="function"&&(tb(h,w,Le,k),Ve=h.memoizedState),(ye=Sa||pP(h,w,ye,k,Ne,Ve,re)||!1)?(Oe||typeof U.UNSAFE_componentWillUpdate!="function"&&typeof U.componentWillUpdate!="function"||(typeof U.componentWillUpdate=="function"&&U.componentWillUpdate(k,Ve,re),typeof U.UNSAFE_componentWillUpdate=="function"&&U.UNSAFE_componentWillUpdate(k,Ve,re)),typeof U.componentDidUpdate=="function"&&(h.flags|=4),typeof U.getSnapshotBeforeUpdate=="function"&&(h.flags|=1024)):(typeof U.componentDidUpdate!="function"||te===u.memoizedProps&&Ne===u.memoizedState||(h.flags|=4),typeof U.getSnapshotBeforeUpdate!="function"||te===u.memoizedProps&&Ne===u.memoizedState||(h.flags|=1024),h.memoizedProps=k,h.memoizedState=Ve),U.props=k,U.state=Ve,U.context=re,k=ye):(typeof U.componentDidUpdate!="function"||te===u.memoizedProps&&Ne===u.memoizedState||(h.flags|=4),typeof U.getSnapshotBeforeUpdate!="function"||te===u.memoizedProps&&Ne===u.memoizedState||(h.flags|=1024),k=!1)}return ab(u,h,w,k,L,T)}function ab(u,h,w,k,T,L){kP(u,h);var U=(h.flags&128)!==0;if(!k&&!U)return T&&CE(h,w,!1),Co(u,h,L);k=h.stateNode,CH.current=h;var te=U&&typeof w.getDerivedStateFromError!="function"?null:k.render();return h.flags|=1,u!==null&&U?(h.child=lc(h,u.child,null,L),h.child=lc(h,null,te,L)):dr(u,h,te,L),h.memoizedState=k.state,T&&CE(h,w,!0),h.child}function EP(u){var h=u.stateNode;h.pendingContext?AE(u,h.pendingContext,h.pendingContext!==h.context):h.context&&AE(u,h.context,!1),Ux(u,h.containerInfo)}function PP(u,h,w,k,T){return sc(),Dx(T),h.flags|=256,dr(u,h,w,k),h.child}var sb={dehydrated:null,treeContext:null,retryLane:0};function lb(u){return{baseLanes:u,cachePool:null,transitions:null}}function AP(u,h,w){var k=h.pendingProps,T=Zt.current,L=!1,U=(h.flags&128)!==0,te;if((te=U)||(te=u!==null&&u.memoizedState===null?!1:(T&2)!==0),te?(L=!0,h.flags&=-129):(u===null||u.memoizedState!==null)&&(T|=1),Dt(Zt,T&1),u===null)return Ix(h),u=h.memoizedState,u!==null&&(u=u.dehydrated,u!==null)?((h.mode&1)===0?h.lanes=1:u.data==="$!"?h.lanes=8:h.lanes=1073741824,null):(U=k.children,u=k.fallback,L?(k=h.mode,L=h.child,U={mode:"hidden",children:U},(k&1)===0&&L!==null?(L.childLanes=0,L.pendingProps=U):L=mm(U,k,0,null),u=qs(u,k,w,null),L.return=h,u.return=h,L.sibling=u,h.child=L,h.child.memoizedState=lb(w),h.memoizedState=sb,u):cb(h,U));if(T=u.memoizedState,T!==null&&(te=T.dehydrated,te!==null))return RH(u,h,U,k,te,T,w);if(L){L=k.fallback,U=h.mode,T=u.child,te=T.sibling;var re={mode:"hidden",children:k.children};return(U&1)===0&&h.child!==T?(k=h.child,k.childLanes=0,k.pendingProps=re,h.deletions=null):(k=Aa(T,re),k.subtreeFlags=T.subtreeFlags&14680064),te!==null?L=Aa(te,L):(L=qs(L,U,w,null),L.flags|=2),L.return=h,k.return=h,k.sibling=L,h.child=k,k=L,L=h.child,U=u.child.memoizedState,U=U===null?lb(w):{baseLanes:U.baseLanes|w,cachePool:null,transitions:U.transitions},L.memoizedState=U,L.childLanes=u.childLanes&~w,h.memoizedState=sb,k}return L=u.child,u=L.sibling,k=Aa(L,{mode:"visible",children:k.children}),(h.mode&1)===0&&(k.lanes=w),k.return=h,k.sibling=null,u!==null&&(w=h.deletions,w===null?(h.deletions=[u],h.flags|=16):w.push(u)),h.child=k,h.memoizedState=null,k}function cb(u,h){return h=mm({mode:"visible",children:h},u.mode,0,null),h.return=u,u.child=h}function nm(u,h,w,k){return k!==null&&Dx(k),lc(h,u.child,null,w),u=cb(h,h.pendingProps.children),u.flags|=2,h.memoizedState=null,u}function RH(u,h,w,k,T,L,U){if(w)return h.flags&256?(h.flags&=-257,k=rb(Error(n(422))),nm(u,h,U,k)):h.memoizedState!==null?(h.child=u.child,h.flags|=128,null):(L=k.fallback,T=h.mode,k=mm({mode:"visible",children:k.children},T,0,null),L=qs(L,T,U,null),L.flags|=2,k.return=h,L.return=h,k.sibling=L,h.child=k,(h.mode&1)!==0&&lc(h,u.child,null,U),h.child.memoizedState=lb(U),h.memoizedState=sb,L);if((h.mode&1)===0)return nm(u,h,U,null);if(T.data==="$!"){if(k=T.nextSibling&&T.nextSibling.dataset,k)var te=k.dgst;return k=te,L=Error(n(419)),k=rb(L,k,void 0),nm(u,h,U,k)}if(te=(U&u.childLanes)!==0,Sr||te){if(k=Pn,k!==null){switch(U&-U){case 4:T=2;break;case 16:T=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:T=32;break;case 536870912:T=268435456;break;default:T=0}T=(T&(k.suspendedLanes|U))!==0?0:T,T!==0&&T!==L.retryLane&&(L.retryLane=T,Ao(u,T),Ni(k,u,T,-1))}return Nb(),k=rb(Error(n(421))),nm(u,h,U,k)}return T.data==="$?"?(h.flags|=128,h.child=u.child,h=WH.bind(null,u),T._reactRetry=h,null):(u=L.treeContext,Dr=xa(T.nextSibling),Ir=h,Yt=!0,wi=null,u!==null&&(Qr[Zr++]=Eo,Qr[Zr++]=Po,Qr[Zr++]=Cs,Eo=u.id,Po=u.overflow,Cs=h),h=cb(h,k.children),h.flags|=4096,h)}function TP(u,h,w){u.lanes|=h;var k=u.alternate;k!==null&&(k.lanes|=h),Fx(u.return,h,w)}function ub(u,h,w,k,T){var L=u.memoizedState;L===null?u.memoizedState={isBackwards:h,rendering:null,renderingStartTime:0,last:k,tail:w,tailMode:T}:(L.isBackwards=h,L.rendering=null,L.renderingStartTime=0,L.last=k,L.tail=w,L.tailMode=T)}function CP(u,h,w){var k=h.pendingProps,T=k.revealOrder,L=k.tail;if(dr(u,h,k.children,w),k=Zt.current,(k&2)!==0)k=k&1|2,h.flags|=128;else{if(u!==null&&(u.flags&128)!==0)e:for(u=h.child;u!==null;){if(u.tag===13)u.memoizedState!==null&&TP(u,w,h);else if(u.tag===19)TP(u,w,h);else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===h)break e;for(;u.sibling===null;){if(u.return===null||u.return===h)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}k&=1}if(Dt(Zt,k),(h.mode&1)===0)h.memoizedState=null;else switch(T){case"forwards":for(w=h.child,T=null;w!==null;)u=w.alternate,u!==null&&Yp(u)===null&&(T=w),w=w.sibling;w=T,w===null?(T=h.child,h.child=null):(T=w.sibling,w.sibling=null),ub(h,!1,T,w,L);break;case"backwards":for(w=null,T=h.child,h.child=null;T!==null;){if(u=T.alternate,u!==null&&Yp(u)===null){h.child=T;break}u=T.sibling,T.sibling=w,w=T,T=u}ub(h,!0,w,null,L);break;case"together":ub(h,!1,null,null,void 0);break;default:h.memoizedState=null}return h.child}function rm(u,h){(h.mode&1)===0&&u!==null&&(u.alternate=null,h.alternate=null,h.flags|=2)}function Co(u,h,w){if(u!==null&&(h.dependencies=u.dependencies),Ls|=h.lanes,(w&h.childLanes)===0)return null;if(u!==null&&h.child!==u.child)throw Error(n(153));if(h.child!==null){for(u=h.child,w=Aa(u,u.pendingProps),h.child=w,w.return=h;u.sibling!==null;)u=u.sibling,w=w.sibling=Aa(u,u.pendingProps),w.return=h;w.sibling=null}return h.child}function MH(u,h,w){switch(h.tag){case 3:EP(h),sc();break;case 5:WE(h);break;case 1:_r(h.type)&&$p(h);break;case 4:Ux(h,h.stateNode.containerInfo);break;case 10:var k=h.type._context,T=h.memoizedProps.value;Dt(Vp,k._currentValue),k._currentValue=T;break;case 13:if(k=h.memoizedState,k!==null)return k.dehydrated!==null?(Dt(Zt,Zt.current&1),h.flags|=128,null):(w&h.child.childLanes)!==0?AP(u,h,w):(Dt(Zt,Zt.current&1),u=Co(u,h,w),u!==null?u.sibling:null);Dt(Zt,Zt.current&1);break;case 19:if(k=(w&h.childLanes)!==0,(u.flags&128)!==0){if(k)return CP(u,h,w);h.flags|=128}if(T=h.memoizedState,T!==null&&(T.rendering=null,T.tail=null,T.lastEffect=null),Dt(Zt,Zt.current),k)break;return null;case 22:case 23:return h.lanes=0,NP(u,h,w)}return Co(u,h,w)}var RP,db,MP,IP;RP=function(u,h){for(var w=h.child;w!==null;){if(w.tag===5||w.tag===6)u.appendChild(w.stateNode);else if(w.tag!==4&&w.child!==null){w.child.return=w,w=w.child;continue}if(w===h)break;for(;w.sibling===null;){if(w.return===null||w.return===h)return;w=w.return}w.sibling.return=w.return,w=w.sibling}},db=function(){},MP=function(u,h,w,k){var T=u.memoizedProps;if(T!==k){u=h.stateNode,Is(Yi.current);var L=null;switch(w){case"input":T=ge(u,T),k=ge(u,k),L=[];break;case"select":T=q({},T,{value:void 0}),k=q({},k,{value:void 0}),L=[];break;case"textarea":T=ve(u,T),k=ve(u,k),L=[];break;default:typeof T.onClick!="function"&&typeof k.onClick=="function"&&(u.onclick=Dp)}_s(w,k);var U;w=null;for(ye in T)if(!k.hasOwnProperty(ye)&&T.hasOwnProperty(ye)&&T[ye]!=null)if(ye==="style"){var te=T[ye];for(U in te)te.hasOwnProperty(U)&&(w||(w={}),w[U]="")}else ye!=="dangerouslySetInnerHTML"&&ye!=="children"&&ye!=="suppressContentEditableWarning"&&ye!=="suppressHydrationWarning"&&ye!=="autoFocus"&&(i.hasOwnProperty(ye)?L||(L=[]):(L=L||[]).push(ye,null));for(ye in k){var re=k[ye];if(te=T!=null?T[ye]:void 0,k.hasOwnProperty(ye)&&re!==te&&(re!=null||te!=null))if(ye==="style")if(te){for(U in te)!te.hasOwnProperty(U)||re&&re.hasOwnProperty(U)||(w||(w={}),w[U]="");for(U in re)re.hasOwnProperty(U)&&te[U]!==re[U]&&(w||(w={}),w[U]=re[U])}else w||(L||(L=[]),L.push(ye,w)),w=re;else ye==="dangerouslySetInnerHTML"?(re=re?re.__html:void 0,te=te?te.__html:void 0,re!=null&&te!==re&&(L=L||[]).push(ye,re)):ye==="children"?typeof re!="string"&&typeof re!="number"||(L=L||[]).push(ye,""+re):ye!=="suppressContentEditableWarning"&&ye!=="suppressHydrationWarning"&&(i.hasOwnProperty(ye)?(re!=null&&ye==="onScroll"&&Ut("scroll",u),L||te===re||(L=[])):(L=L||[]).push(ye,re))}w&&(L=L||[]).push("style",w);var ye=L;(h.updateQueue=ye)&&(h.flags|=4)}},IP=function(u,h,w,k){w!==k&&(h.flags|=4)};function Bd(u,h){if(!Yt)switch(u.tailMode){case"hidden":h=u.tail;for(var w=null;h!==null;)h.alternate!==null&&(w=h),h=h.sibling;w===null?u.tail=null:w.sibling=null;break;case"collapsed":w=u.tail;for(var k=null;w!==null;)w.alternate!==null&&(k=w),w=w.sibling;k===null?h||u.tail===null?u.tail=null:u.tail.sibling=null:k.sibling=null}}function Zn(u){var h=u.alternate!==null&&u.alternate.child===u.child,w=0,k=0;if(h)for(var T=u.child;T!==null;)w|=T.lanes|T.childLanes,k|=T.subtreeFlags&14680064,k|=T.flags&14680064,T.return=u,T=T.sibling;else for(T=u.child;T!==null;)w|=T.lanes|T.childLanes,k|=T.subtreeFlags,k|=T.flags,T.return=u,T=T.sibling;return u.subtreeFlags|=k,u.childLanes=w,h}function IH(u,h,w){var k=h.pendingProps;switch(Rx(h),h.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Zn(h),null;case 1:return _r(h.type)&&Bp(),Zn(h),null;case 3:return k=h.stateNode,dc(),Ht(wr),Ht(Xn),Wx(),k.pendingContext&&(k.context=k.pendingContext,k.pendingContext=null),(u===null||u.child===null)&&(Up(h)?h.flags|=4:u===null||u.memoizedState.isDehydrated&&(h.flags&256)===0||(h.flags|=1024,wi!==null&&(_b(wi),wi=null))),db(u,h),Zn(h),null;case 5:Hx(h);var T=Is(Rd.current);if(w=h.type,u!==null&&h.stateNode!=null)MP(u,h,w,k,T),u.ref!==h.ref&&(h.flags|=512,h.flags|=2097152);else{if(!k){if(h.stateNode===null)throw Error(n(166));return Zn(h),null}if(u=Is(Yi.current),Up(h)){k=h.stateNode,w=h.type;var L=h.memoizedProps;switch(k[Ki]=h,k[Ed]=L,u=(h.mode&1)!==0,w){case"dialog":Ut("cancel",k),Ut("close",k);break;case"iframe":case"object":case"embed":Ut("load",k);break;case"video":case"audio":for(T=0;T<Nd.length;T++)Ut(Nd[T],k);break;case"source":Ut("error",k);break;case"img":case"image":case"link":Ut("error",k),Ut("load",k);break;case"details":Ut("toggle",k);break;case"input":be(k,L),Ut("invalid",k);break;case"select":k._wrapperState={wasMultiple:!!L.multiple},Ut("invalid",k);break;case"textarea":He(k,L),Ut("invalid",k)}_s(w,L),T=null;for(var U in L)if(L.hasOwnProperty(U)){var te=L[U];U==="children"?typeof te=="string"?k.textContent!==te&&(L.suppressHydrationWarning!==!0&&Ip(k.textContent,te,u),T=["children",te]):typeof te=="number"&&k.textContent!==""+te&&(L.suppressHydrationWarning!==!0&&Ip(k.textContent,te,u),T=["children",""+te]):i.hasOwnProperty(U)&&te!=null&&U==="onScroll"&&Ut("scroll",k)}switch(w){case"input":fe(k),oe(k,L,!0);break;case"textarea":fe(k),Ye(k);break;case"select":case"option":break;default:typeof L.onClick=="function"&&(k.onclick=Dp)}k=T,h.updateQueue=k,k!==null&&(h.flags|=4)}else{U=T.nodeType===9?T:T.ownerDocument,u==="http://www.w3.org/1999/xhtml"&&(u=Rt(w)),u==="http://www.w3.org/1999/xhtml"?w==="script"?(u=U.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild)):typeof k.is=="string"?u=U.createElement(w,{is:k.is}):(u=U.createElement(w),w==="select"&&(U=u,k.multiple?U.multiple=!0:k.size&&(U.size=k.size))):u=U.createElementNS(u,w),u[Ki]=h,u[Ed]=k,RP(u,h,!1,!1),h.stateNode=u;e:{switch(U=Ss(w,k),w){case"dialog":Ut("cancel",u),Ut("close",u),T=k;break;case"iframe":case"object":case"embed":Ut("load",u),T=k;break;case"video":case"audio":for(T=0;T<Nd.length;T++)Ut(Nd[T],u);T=k;break;case"source":Ut("error",u),T=k;break;case"img":case"image":case"link":Ut("error",u),Ut("load",u),T=k;break;case"details":Ut("toggle",u),T=k;break;case"input":be(u,k),T=ge(u,k),Ut("invalid",u);break;case"option":T=k;break;case"select":u._wrapperState={wasMultiple:!!k.multiple},T=q({},k,{value:void 0}),Ut("invalid",u);break;case"textarea":He(u,k),T=ve(u,k),Ut("invalid",u);break;default:T=k}_s(w,T),te=T;for(L in te)if(te.hasOwnProperty(L)){var re=te[L];L==="style"?wo(u,re):L==="dangerouslySetInnerHTML"?(re=re?re.__html:void 0,re!=null&&vi(u,re)):L==="children"?typeof re=="string"?(w!=="textarea"||re!=="")&&pt(u,re):typeof re=="number"&&pt(u,""+re):L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&L!=="autoFocus"&&(i.hasOwnProperty(L)?re!=null&&L==="onScroll"&&Ut("scroll",u):re!=null&&j(u,L,re,U))}switch(w){case"input":fe(u),oe(u,k,!1);break;case"textarea":fe(u),Ye(u);break;case"option":k.value!=null&&u.setAttribute("value",""+ne(k.value));break;case"select":u.multiple=!!k.multiple,L=k.value,L!=null?Ee(u,!!k.multiple,L,!1):k.defaultValue!=null&&Ee(u,!!k.multiple,k.defaultValue,!0);break;default:typeof T.onClick=="function"&&(u.onclick=Dp)}switch(w){case"button":case"input":case"select":case"textarea":k=!!k.autoFocus;break e;case"img":k=!0;break e;default:k=!1}}k&&(h.flags|=4)}h.ref!==null&&(h.flags|=512,h.flags|=2097152)}return Zn(h),null;case 6:if(u&&h.stateNode!=null)IP(u,h,u.memoizedProps,k);else{if(typeof k!="string"&&h.stateNode===null)throw Error(n(166));if(w=Is(Rd.current),Is(Yi.current),Up(h)){if(k=h.stateNode,w=h.memoizedProps,k[Ki]=h,(L=k.nodeValue!==w)&&(u=Ir,u!==null))switch(u.tag){case 3:Ip(k.nodeValue,w,(u.mode&1)!==0);break;case 5:u.memoizedProps.suppressHydrationWarning!==!0&&Ip(k.nodeValue,w,(u.mode&1)!==0)}L&&(h.flags|=4)}else k=(w.nodeType===9?w:w.ownerDocument).createTextNode(k),k[Ki]=h,h.stateNode=k}return Zn(h),null;case 13:if(Ht(Zt),k=h.memoizedState,u===null||u.memoizedState!==null&&u.memoizedState.dehydrated!==null){if(Yt&&Dr!==null&&(h.mode&1)!==0&&(h.flags&128)===0)BE(),sc(),h.flags|=98560,L=!1;else if(L=Up(h),k!==null&&k.dehydrated!==null){if(u===null){if(!L)throw Error(n(318));if(L=h.memoizedState,L=L!==null?L.dehydrated:null,!L)throw Error(n(317));L[Ki]=h}else sc(),(h.flags&128)===0&&(h.memoizedState=null),h.flags|=4;Zn(h),L=!1}else wi!==null&&(_b(wi),wi=null),L=!0;if(!L)return h.flags&65536?h:null}return(h.flags&128)!==0?(h.lanes=w,h):(k=k!==null,k!==(u!==null&&u.memoizedState!==null)&&k&&(h.child.flags|=8192,(h.mode&1)!==0&&(u===null||(Zt.current&1)!==0?wn===0&&(wn=3):Nb())),h.updateQueue!==null&&(h.flags|=4),Zn(h),null);case 4:return dc(),db(u,h),u===null&&kd(h.stateNode.containerInfo),Zn(h),null;case 10:return $x(h.type._context),Zn(h),null;case 17:return _r(h.type)&&Bp(),Zn(h),null;case 19:if(Ht(Zt),L=h.memoizedState,L===null)return Zn(h),null;if(k=(h.flags&128)!==0,U=L.rendering,U===null)if(k)Bd(L,!1);else{if(wn!==0||u!==null&&(u.flags&128)!==0)for(u=h.child;u!==null;){if(U=Yp(u),U!==null){for(h.flags|=128,Bd(L,!1),k=U.updateQueue,k!==null&&(h.updateQueue=k,h.flags|=4),h.subtreeFlags=0,k=w,w=h.child;w!==null;)L=w,u=k,L.flags&=14680066,U=L.alternate,U===null?(L.childLanes=0,L.lanes=u,L.child=null,L.subtreeFlags=0,L.memoizedProps=null,L.memoizedState=null,L.updateQueue=null,L.dependencies=null,L.stateNode=null):(L.childLanes=U.childLanes,L.lanes=U.lanes,L.child=U.child,L.subtreeFlags=0,L.deletions=null,L.memoizedProps=U.memoizedProps,L.memoizedState=U.memoizedState,L.updateQueue=U.updateQueue,L.type=U.type,u=U.dependencies,L.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext}),w=w.sibling;return Dt(Zt,Zt.current&1|2),h.child}u=u.sibling}L.tail!==null&&Nt()>mc&&(h.flags|=128,k=!0,Bd(L,!1),h.lanes=4194304)}else{if(!k)if(u=Yp(U),u!==null){if(h.flags|=128,k=!0,w=u.updateQueue,w!==null&&(h.updateQueue=w,h.flags|=4),Bd(L,!0),L.tail===null&&L.tailMode==="hidden"&&!U.alternate&&!Yt)return Zn(h),null}else 2*Nt()-L.renderingStartTime>mc&&w!==1073741824&&(h.flags|=128,k=!0,Bd(L,!1),h.lanes=4194304);L.isBackwards?(U.sibling=h.child,h.child=U):(w=L.last,w!==null?w.sibling=U:h.child=U,L.last=U)}return L.tail!==null?(h=L.tail,L.rendering=h,L.tail=h.sibling,L.renderingStartTime=Nt(),h.sibling=null,w=Zt.current,Dt(Zt,k?w&1|2:w&1),h):(Zn(h),null);case 22:case 23:return jb(),k=h.memoizedState!==null,u!==null&&u.memoizedState!==null!==k&&(h.flags|=8192),k&&(h.mode&1)!==0?(Lr&1073741824)!==0&&(Zn(h),h.subtreeFlags&6&&(h.flags|=8192)):Zn(h),null;case 24:return null;case 25:return null}throw Error(n(156,h.tag))}function DH(u,h){switch(Rx(h),h.tag){case 1:return _r(h.type)&&Bp(),u=h.flags,u&65536?(h.flags=u&-65537|128,h):null;case 3:return dc(),Ht(wr),Ht(Xn),Wx(),u=h.flags,(u&65536)!==0&&(u&128)===0?(h.flags=u&-65537|128,h):null;case 5:return Hx(h),null;case 13:if(Ht(Zt),u=h.memoizedState,u!==null&&u.dehydrated!==null){if(h.alternate===null)throw Error(n(340));sc()}return u=h.flags,u&65536?(h.flags=u&-65537|128,h):null;case 19:return Ht(Zt),null;case 4:return dc(),null;case 10:return $x(h.type._context),null;case 22:case 23:return jb(),null;case 24:return null;default:return null}}var im=!1,Jn=!1,LH=typeof WeakSet=="function"?WeakSet:Set,ze=null;function hc(u,h){var w=u.ref;if(w!==null)if(typeof w=="function")try{w(null)}catch(k){tn(u,h,k)}else w.current=null}function fb(u,h,w){try{w()}catch(k){tn(u,h,k)}}var DP=!1;function BH(u,h){if(jx=jp,u=pE(),gx(u)){if("selectionStart"in u)var w={start:u.selectionStart,end:u.selectionEnd};else e:{w=(w=u.ownerDocument)&&w.defaultView||window;var k=w.getSelection&&w.getSelection();if(k&&k.rangeCount!==0){w=k.anchorNode;var T=k.anchorOffset,L=k.focusNode;k=k.focusOffset;try{w.nodeType,L.nodeType}catch{w=null;break e}var U=0,te=-1,re=-1,ye=0,Oe=0,Pe=u,Ne=null;t:for(;;){for(var Le;Pe!==w||T!==0&&Pe.nodeType!==3||(te=U+T),Pe!==L||k!==0&&Pe.nodeType!==3||(re=U+k),Pe.nodeType===3&&(U+=Pe.nodeValue.length),(Le=Pe.firstChild)!==null;)Ne=Pe,Pe=Le;for(;;){if(Pe===u)break t;if(Ne===w&&++ye===T&&(te=U),Ne===L&&++Oe===k&&(re=U),(Le=Pe.nextSibling)!==null)break;Pe=Ne,Ne=Pe.parentNode}Pe=Le}w=te===-1||re===-1?null:{start:te,end:re}}else w=null}w=w||{start:0,end:0}}else w=null;for(Nx={focusedElem:u,selectionRange:w},jp=!1,ze=h;ze!==null;)if(h=ze,u=h.child,(h.subtreeFlags&1028)!==0&&u!==null)u.return=h,ze=u;else for(;ze!==null;){h=ze;try{var Ve=h.alternate;if((h.flags&1024)!==0)switch(h.tag){case 0:case 11:case 15:break;case 1:if(Ve!==null){var Ke=Ve.memoizedProps,sn=Ve.memoizedState,he=h.stateNode,ce=he.getSnapshotBeforeUpdate(h.elementType===h.type?Ke:_i(h.type,Ke),sn);he.__reactInternalSnapshotBeforeUpdate=ce}break;case 3:var pe=h.stateNode.containerInfo;pe.nodeType===1?pe.textContent="":pe.nodeType===9&&pe.documentElement&&pe.removeChild(pe.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(Te){tn(h,h.return,Te)}if(u=h.sibling,u!==null){u.return=h.return,ze=u;break}ze=h.return}return Ve=DP,DP=!1,Ve}function $d(u,h,w){var k=h.updateQueue;if(k=k!==null?k.lastEffect:null,k!==null){var T=k=k.next;do{if((T.tag&u)===u){var L=T.destroy;T.destroy=void 0,L!==void 0&&fb(h,w,L)}T=T.next}while(T!==k)}}function om(u,h){if(h=h.updateQueue,h=h!==null?h.lastEffect:null,h!==null){var w=h=h.next;do{if((w.tag&u)===u){var k=w.create;w.destroy=k()}w=w.next}while(w!==h)}}function hb(u){var h=u.ref;if(h!==null){var w=u.stateNode;switch(u.tag){case 5:u=w;break;default:u=w}typeof h=="function"?h(u):h.current=u}}function LP(u){var h=u.alternate;h!==null&&(u.alternate=null,LP(h)),u.child=null,u.deletions=null,u.sibling=null,u.tag===5&&(h=u.stateNode,h!==null&&(delete h[Ki],delete h[Ed],delete h[Px],delete h[bH],delete h[wH])),u.stateNode=null,u.return=null,u.dependencies=null,u.memoizedProps=null,u.memoizedState=null,u.pendingProps=null,u.stateNode=null,u.updateQueue=null}function BP(u){return u.tag===5||u.tag===3||u.tag===4}function $P(u){e:for(;;){for(;u.sibling===null;){if(u.return===null||BP(u.return))return null;u=u.return}for(u.sibling.return=u.return,u=u.sibling;u.tag!==5&&u.tag!==6&&u.tag!==18;){if(u.flags&2||u.child===null||u.tag===4)continue e;u.child.return=u,u=u.child}if(!(u.flags&2))return u.stateNode}}function pb(u,h,w){var k=u.tag;if(k===5||k===6)u=u.stateNode,h?w.nodeType===8?w.parentNode.insertBefore(u,h):w.insertBefore(u,h):(w.nodeType===8?(h=w.parentNode,h.insertBefore(u,w)):(h=w,h.appendChild(u)),w=w._reactRootContainer,w!=null||h.onclick!==null||(h.onclick=Dp));else if(k!==4&&(u=u.child,u!==null))for(pb(u,h,w),u=u.sibling;u!==null;)pb(u,h,w),u=u.sibling}function mb(u,h,w){var k=u.tag;if(k===5||k===6)u=u.stateNode,h?w.insertBefore(u,h):w.appendChild(u);else if(k!==4&&(u=u.child,u!==null))for(mb(u,h,w),u=u.sibling;u!==null;)mb(u,h,w),u=u.sibling}var $n=null,Si=!1;function Na(u,h,w){for(w=w.child;w!==null;)FP(u,h,w),w=w.sibling}function FP(u,h,w){if(ur&&typeof ur.onCommitFiberUnmount=="function")try{ur.onCommitFiberUnmount(Os,w)}catch{}switch(w.tag){case 5:Jn||hc(w,h);case 6:var k=$n,T=Si;$n=null,Na(u,h,w),$n=k,Si=T,$n!==null&&(Si?(u=$n,w=w.stateNode,u.nodeType===8?u.parentNode.removeChild(w):u.removeChild(w)):$n.removeChild(w.stateNode));break;case 18:$n!==null&&(Si?(u=$n,w=w.stateNode,u.nodeType===8?Ex(u.parentNode,w):u.nodeType===1&&Ex(u,w),yd(u)):Ex($n,w.stateNode));break;case 4:k=$n,T=Si,$n=w.stateNode.containerInfo,Si=!0,Na(u,h,w),$n=k,Si=T;break;case 0:case 11:case 14:case 15:if(!Jn&&(k=w.updateQueue,k!==null&&(k=k.lastEffect,k!==null))){T=k=k.next;do{var L=T,U=L.destroy;L=L.tag,U!==void 0&&((L&2)!==0||(L&4)!==0)&&fb(w,h,U),T=T.next}while(T!==k)}Na(u,h,w);break;case 1:if(!Jn&&(hc(w,h),k=w.stateNode,typeof k.componentWillUnmount=="function"))try{k.props=w.memoizedProps,k.state=w.memoizedState,k.componentWillUnmount()}catch(te){tn(w,h,te)}Na(u,h,w);break;case 21:Na(u,h,w);break;case 22:w.mode&1?(Jn=(k=Jn)||w.memoizedState!==null,Na(u,h,w),Jn=k):Na(u,h,w);break;default:Na(u,h,w)}}function qP(u){var h=u.updateQueue;if(h!==null){u.updateQueue=null;var w=u.stateNode;w===null&&(w=u.stateNode=new LH),h.forEach(function(k){var T=GH.bind(null,u,k);w.has(k)||(w.add(k),k.then(T,T))})}}function ji(u,h){var w=h.deletions;if(w!==null)for(var k=0;k<w.length;k++){var T=w[k];try{var L=u,U=h,te=U;e:for(;te!==null;){switch(te.tag){case 5:$n=te.stateNode,Si=!1;break e;case 3:$n=te.stateNode.containerInfo,Si=!0;break e;case 4:$n=te.stateNode.containerInfo,Si=!0;break e}te=te.return}if($n===null)throw Error(n(160));FP(L,U,T),$n=null,Si=!1;var re=T.alternate;re!==null&&(re.return=null),T.return=null}catch(ye){tn(T,h,ye)}}if(h.subtreeFlags&12854)for(h=h.child;h!==null;)zP(h,u),h=h.sibling}function zP(u,h){var w=u.alternate,k=u.flags;switch(u.tag){case 0:case 11:case 14:case 15:if(ji(h,u),Qi(u),k&4){try{$d(3,u,u.return),om(3,u)}catch(Ke){tn(u,u.return,Ke)}try{$d(5,u,u.return)}catch(Ke){tn(u,u.return,Ke)}}break;case 1:ji(h,u),Qi(u),k&512&&w!==null&&hc(w,w.return);break;case 5:if(ji(h,u),Qi(u),k&512&&w!==null&&hc(w,w.return),u.flags&32){var T=u.stateNode;try{pt(T,"")}catch(Ke){tn(u,u.return,Ke)}}if(k&4&&(T=u.stateNode,T!=null)){var L=u.memoizedProps,U=w!==null?w.memoizedProps:L,te=u.type,re=u.updateQueue;if(u.updateQueue=null,re!==null)try{te==="input"&&L.type==="radio"&&L.name!=null&&Be(T,L),Ss(te,U);var ye=Ss(te,L);for(U=0;U<re.length;U+=2){var Oe=re[U],Pe=re[U+1];Oe==="style"?wo(T,Pe):Oe==="dangerouslySetInnerHTML"?vi(T,Pe):Oe==="children"?pt(T,Pe):j(T,Oe,Pe,ye)}switch(te){case"input":De(T,L);break;case"textarea":$e(T,L);break;case"select":var Ne=T._wrapperState.wasMultiple;T._wrapperState.wasMultiple=!!L.multiple;var Le=L.value;Le!=null?Ee(T,!!L.multiple,Le,!1):Ne!==!!L.multiple&&(L.defaultValue!=null?Ee(T,!!L.multiple,L.defaultValue,!0):Ee(T,!!L.multiple,L.multiple?[]:"",!1))}T[Ed]=L}catch(Ke){tn(u,u.return,Ke)}}break;case 6:if(ji(h,u),Qi(u),k&4){if(u.stateNode===null)throw Error(n(162));T=u.stateNode,L=u.memoizedProps;try{T.nodeValue=L}catch(Ke){tn(u,u.return,Ke)}}break;case 3:if(ji(h,u),Qi(u),k&4&&w!==null&&w.memoizedState.isDehydrated)try{yd(h.containerInfo)}catch(Ke){tn(u,u.return,Ke)}break;case 4:ji(h,u),Qi(u);break;case 13:ji(h,u),Qi(u),T=u.child,T.flags&8192&&(L=T.memoizedState!==null,T.stateNode.isHidden=L,!L||T.alternate!==null&&T.alternate.memoizedState!==null||(vb=Nt())),k&4&&qP(u);break;case 22:if(Oe=w!==null&&w.memoizedState!==null,u.mode&1?(Jn=(ye=Jn)||Oe,ji(h,u),Jn=ye):ji(h,u),Qi(u),k&8192){if(ye=u.memoizedState!==null,(u.stateNode.isHidden=ye)&&!Oe&&(u.mode&1)!==0)for(ze=u,Oe=u.child;Oe!==null;){for(Pe=ze=Oe;ze!==null;){switch(Ne=ze,Le=Ne.child,Ne.tag){case 0:case 11:case 14:case 15:$d(4,Ne,Ne.return);break;case 1:hc(Ne,Ne.return);var Ve=Ne.stateNode;if(typeof Ve.componentWillUnmount=="function"){k=Ne,w=Ne.return;try{h=k,Ve.props=h.memoizedProps,Ve.state=h.memoizedState,Ve.componentWillUnmount()}catch(Ke){tn(k,w,Ke)}}break;case 5:hc(Ne,Ne.return);break;case 22:if(Ne.memoizedState!==null){VP(Pe);continue}}Le!==null?(Le.return=Ne,ze=Le):VP(Pe)}Oe=Oe.sibling}e:for(Oe=null,Pe=u;;){if(Pe.tag===5){if(Oe===null){Oe=Pe;try{T=Pe.stateNode,ye?(L=T.style,typeof L.setProperty=="function"?L.setProperty("display","none","important"):L.display="none"):(te=Pe.stateNode,re=Pe.memoizedProps.style,U=re!=null&&re.hasOwnProperty("display")?re.display:null,te.style.display=Cr("display",U))}catch(Ke){tn(u,u.return,Ke)}}}else if(Pe.tag===6){if(Oe===null)try{Pe.stateNode.nodeValue=ye?"":Pe.memoizedProps}catch(Ke){tn(u,u.return,Ke)}}else if((Pe.tag!==22&&Pe.tag!==23||Pe.memoizedState===null||Pe===u)&&Pe.child!==null){Pe.child.return=Pe,Pe=Pe.child;continue}if(Pe===u)break e;for(;Pe.sibling===null;){if(Pe.return===null||Pe.return===u)break e;Oe===Pe&&(Oe=null),Pe=Pe.return}Oe===Pe&&(Oe=null),Pe.sibling.return=Pe.return,Pe=Pe.sibling}}break;case 19:ji(h,u),Qi(u),k&4&&qP(u);break;case 21:break;default:ji(h,u),Qi(u)}}function Qi(u){var h=u.flags;if(h&2){try{e:{for(var w=u.return;w!==null;){if(BP(w)){var k=w;break e}w=w.return}throw Error(n(160))}switch(k.tag){case 5:var T=k.stateNode;k.flags&32&&(pt(T,""),k.flags&=-33);var L=$P(u);mb(u,L,T);break;case 3:case 4:var U=k.stateNode.containerInfo,te=$P(u);pb(u,te,U);break;default:throw Error(n(161))}}catch(re){tn(u,u.return,re)}u.flags&=-3}h&4096&&(u.flags&=-4097)}function $H(u,h,w){ze=u,UP(u)}function UP(u,h,w){for(var k=(u.mode&1)!==0;ze!==null;){var T=ze,L=T.child;if(T.tag===22&&k){var U=T.memoizedState!==null||im;if(!U){var te=T.alternate,re=te!==null&&te.memoizedState!==null||Jn;te=im;var ye=Jn;if(im=U,(Jn=re)&&!ye)for(ze=T;ze!==null;)U=ze,re=U.child,U.tag===22&&U.memoizedState!==null?WP(T):re!==null?(re.return=U,ze=re):WP(T);for(;L!==null;)ze=L,UP(L),L=L.sibling;ze=T,im=te,Jn=ye}HP(u)}else(T.subtreeFlags&8772)!==0&&L!==null?(L.return=T,ze=L):HP(u)}}function HP(u){for(;ze!==null;){var h=ze;if((h.flags&8772)!==0){var w=h.alternate;try{if((h.flags&8772)!==0)switch(h.tag){case 0:case 11:case 15:Jn||om(5,h);break;case 1:var k=h.stateNode;if(h.flags&4&&!Jn)if(w===null)k.componentDidMount();else{var T=h.elementType===h.type?w.memoizedProps:_i(h.type,w.memoizedProps);k.componentDidUpdate(T,w.memoizedState,k.__reactInternalSnapshotBeforeUpdate)}var L=h.updateQueue;L!==null&&VE(h,L,k);break;case 3:var U=h.updateQueue;if(U!==null){if(w=null,h.child!==null)switch(h.child.tag){case 5:w=h.child.stateNode;break;case 1:w=h.child.stateNode}VE(h,U,w)}break;case 5:var te=h.stateNode;if(w===null&&h.flags&4){w=te;var re=h.memoizedProps;switch(h.type){case"button":case"input":case"select":case"textarea":re.autoFocus&&w.focus();break;case"img":re.src&&(w.src=re.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(h.memoizedState===null){var ye=h.alternate;if(ye!==null){var Oe=ye.memoizedState;if(Oe!==null){var Pe=Oe.dehydrated;Pe!==null&&yd(Pe)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Jn||h.flags&512&&hb(h)}catch(Ne){tn(h,h.return,Ne)}}if(h===u){ze=null;break}if(w=h.sibling,w!==null){w.return=h.return,ze=w;break}ze=h.return}}function VP(u){for(;ze!==null;){var h=ze;if(h===u){ze=null;break}var w=h.sibling;if(w!==null){w.return=h.return,ze=w;break}ze=h.return}}function WP(u){for(;ze!==null;){var h=ze;try{switch(h.tag){case 0:case 11:case 15:var w=h.return;try{om(4,h)}catch(re){tn(h,w,re)}break;case 1:var k=h.stateNode;if(typeof k.componentDidMount=="function"){var T=h.return;try{k.componentDidMount()}catch(re){tn(h,T,re)}}var L=h.return;try{hb(h)}catch(re){tn(h,L,re)}break;case 5:var U=h.return;try{hb(h)}catch(re){tn(h,U,re)}}}catch(re){tn(h,h.return,re)}if(h===u){ze=null;break}var te=h.sibling;if(te!==null){te.return=h.return,ze=te;break}ze=h.return}}var FH=Math.ceil,am=S.ReactCurrentDispatcher,gb=S.ReactCurrentOwner,ti=S.ReactCurrentBatchConfig,wt=0,Pn=null,mn=null,Fn=0,Lr=0,pc=ba(0),wn=0,Fd=null,Ls=0,sm=0,yb=0,qd=null,jr=null,vb=0,mc=1/0,Ro=null,lm=!1,xb=null,ka=null,cm=!1,Oa=null,um=0,zd=0,bb=null,dm=-1,fm=0;function fr(){return(wt&6)!==0?Nt():dm!==-1?dm:dm=Nt()}function Ea(u){return(u.mode&1)===0?1:(wt&2)!==0&&Fn!==0?Fn&-Fn:SH.transition!==null?(fm===0&&(fm=_p()),fm):(u=Q,u!==0||(u=window.event,u=u===void 0?16:KO(u.type)),u)}function Ni(u,h,w,k){if(50<zd)throw zd=0,bb=null,Error(n(185));Gi(u,w,k),((wt&2)===0||u!==Pn)&&(u===Pn&&((wt&2)===0&&(sm|=w),wn===4&&Pa(u,Fn)),Nr(u,k),w===1&&wt===0&&(h.mode&1)===0&&(mc=Nt()+500,Fp&&_a()))}function Nr(u,h){var w=u.callbackNode;wp(u,h);var k=Ps(u,u===Pn?Fn:0);if(k===0)w!==null&&xp(w),u.callbackNode=null,u.callbackPriority=0;else if(h=k&-k,u.callbackPriority!==h){if(w!=null&&xp(w),h===1)u.tag===0?_H(KP.bind(null,u)):RE(KP.bind(null,u)),vH(function(){(wt&6)===0&&_a()}),w=null;else{switch(me(k)){case 1:w=xi;break;case 4:w=bp;break;case 16:w=ha;break;case 536870912:w=cd;break;default:w=ha}w=nA(w,GP.bind(null,u))}u.callbackPriority=h,u.callbackNode=w}}function GP(u,h){if(dm=-1,fm=0,(wt&6)!==0)throw Error(n(327));var w=u.callbackNode;if(gc()&&u.callbackNode!==w)return null;var k=Ps(u,u===Pn?Fn:0);if(k===0)return null;if((k&30)!==0||(k&u.expiredLanes)!==0||h)h=hm(u,k);else{h=k;var T=wt;wt|=2;var L=XP();(Pn!==u||Fn!==h)&&(Ro=null,mc=Nt()+500,$s(u,h));do try{UH();break}catch(te){YP(u,te)}while(!0);Bx(),am.current=L,wt=T,mn!==null?h=0:(Pn=null,Fn=0,h=wn)}if(h!==0){if(h===2&&(T=dd(u),T!==0&&(k=T,h=wb(u,T))),h===1)throw w=Fd,$s(u,0),Pa(u,k),Nr(u,Nt()),w;if(h===6)Pa(u,k);else{if(T=u.current.alternate,(k&30)===0&&!qH(T)&&(h=hm(u,k),h===2&&(L=dd(u),L!==0&&(k=L,h=wb(u,L))),h===1))throw w=Fd,$s(u,0),Pa(u,k),Nr(u,Nt()),w;switch(u.finishedWork=T,u.finishedLanes=k,h){case 0:case 1:throw Error(n(345));case 2:Fs(u,jr,Ro);break;case 3:if(Pa(u,k),(k&130023424)===k&&(h=vb+500-Nt(),10<h)){if(Ps(u,0)!==0)break;if(T=u.suspendedLanes,(T&k)!==k){fr(),u.pingedLanes|=u.suspendedLanes&T;break}u.timeoutHandle=Ox(Fs.bind(null,u,jr,Ro),h);break}Fs(u,jr,Ro);break;case 4:if(Pa(u,k),(k&4194240)===k)break;for(h=u.eventTimes,T=-1;0<k;){var U=31-Kn(k);L=1<<U,U=h[U],U>T&&(T=U),k&=~L}if(k=T,k=Nt()-k,k=(120>k?120:480>k?480:1080>k?1080:1920>k?1920:3e3>k?3e3:4320>k?4320:1960*FH(k/1960))-k,10<k){u.timeoutHandle=Ox(Fs.bind(null,u,jr,Ro),k);break}Fs(u,jr,Ro);break;case 5:Fs(u,jr,Ro);break;default:throw Error(n(329))}}}return Nr(u,Nt()),u.callbackNode===w?GP.bind(null,u):null}function wb(u,h){var w=qd;return u.current.memoizedState.isDehydrated&&($s(u,h).flags|=256),u=hm(u,h),u!==2&&(h=jr,jr=w,h!==null&&_b(h)),u}function _b(u){jr===null?jr=u:jr.push.apply(jr,u)}function qH(u){for(var h=u;;){if(h.flags&16384){var w=h.updateQueue;if(w!==null&&(w=w.stores,w!==null))for(var k=0;k<w.length;k++){var T=w[k],L=T.getSnapshot;T=T.value;try{if(!bi(L(),T))return!1}catch{return!1}}}if(w=h.child,h.subtreeFlags&16384&&w!==null)w.return=h,h=w;else{if(h===u)break;for(;h.sibling===null;){if(h.return===null||h.return===u)return!0;h=h.return}h.sibling.return=h.return,h=h.sibling}}return!0}function Pa(u,h){for(h&=~yb,h&=~sm,u.suspendedLanes|=h,u.pingedLanes&=~h,u=u.expirationTimes;0<h;){var w=31-Kn(h),k=1<<w;u[w]=-1,h&=~k}}function KP(u){if((wt&6)!==0)throw Error(n(327));gc();var h=Ps(u,0);if((h&1)===0)return Nr(u,Nt()),null;var w=hm(u,h);if(u.tag!==0&&w===2){var k=dd(u);k!==0&&(h=k,w=wb(u,k))}if(w===1)throw w=Fd,$s(u,0),Pa(u,h),Nr(u,Nt()),w;if(w===6)throw Error(n(345));return u.finishedWork=u.current.alternate,u.finishedLanes=h,Fs(u,jr,Ro),Nr(u,Nt()),null}function Sb(u,h){var w=wt;wt|=1;try{return u(h)}finally{wt=w,wt===0&&(mc=Nt()+500,Fp&&_a())}}function Bs(u){Oa!==null&&Oa.tag===0&&(wt&6)===0&&gc();var h=wt;wt|=1;var w=ti.transition,k=Q;try{if(ti.transition=null,Q=1,u)return u()}finally{Q=k,ti.transition=w,wt=h,(wt&6)===0&&_a()}}function jb(){Lr=pc.current,Ht(pc)}function $s(u,h){u.finishedWork=null,u.finishedLanes=0;var w=u.timeoutHandle;if(w!==-1&&(u.timeoutHandle=-1,yH(w)),mn!==null)for(w=mn.return;w!==null;){var k=w;switch(Rx(k),k.tag){case 1:k=k.type.childContextTypes,k!=null&&Bp();break;case 3:dc(),Ht(wr),Ht(Xn),Wx();break;case 5:Hx(k);break;case 4:dc();break;case 13:Ht(Zt);break;case 19:Ht(Zt);break;case 10:$x(k.type._context);break;case 22:case 23:jb()}w=w.return}if(Pn=u,mn=u=Aa(u.current,null),Fn=Lr=h,wn=0,Fd=null,yb=sm=Ls=0,jr=qd=null,Ms!==null){for(h=0;h<Ms.length;h++)if(w=Ms[h],k=w.interleaved,k!==null){w.interleaved=null;var T=k.next,L=w.pending;if(L!==null){var U=L.next;L.next=T,k.next=U}w.pending=k}Ms=null}return u}function YP(u,h){do{var w=mn;try{if(Bx(),Xp.current=em,Qp){for(var k=Jt.memoizedState;k!==null;){var T=k.queue;T!==null&&(T.pending=null),k=k.next}Qp=!1}if(Ds=0,En=bn=Jt=null,Md=!1,Id=0,gb.current=null,w===null||w.return===null){wn=1,Fd=h,mn=null;break}e:{var L=u,U=w.return,te=w,re=h;if(h=Fn,te.flags|=32768,re!==null&&typeof re=="object"&&typeof re.then=="function"){var ye=re,Oe=te,Pe=Oe.tag;if((Oe.mode&1)===0&&(Pe===0||Pe===11||Pe===15)){var Ne=Oe.alternate;Ne?(Oe.updateQueue=Ne.updateQueue,Oe.memoizedState=Ne.memoizedState,Oe.lanes=Ne.lanes):(Oe.updateQueue=null,Oe.memoizedState=null)}var Le=bP(U);if(Le!==null){Le.flags&=-257,wP(Le,U,te,L,h),Le.mode&1&&xP(L,ye,h),h=Le,re=ye;var Ve=h.updateQueue;if(Ve===null){var Ke=new Set;Ke.add(re),h.updateQueue=Ke}else Ve.add(re);break e}else{if((h&1)===0){xP(L,ye,h),Nb();break e}re=Error(n(426))}}else if(Yt&&te.mode&1){var sn=bP(U);if(sn!==null){(sn.flags&65536)===0&&(sn.flags|=256),wP(sn,U,te,L,h),Dx(fc(re,te));break e}}L=re=fc(re,te),wn!==4&&(wn=2),qd===null?qd=[L]:qd.push(L),L=U;do{switch(L.tag){case 3:L.flags|=65536,h&=-h,L.lanes|=h;var he=yP(L,re,h);HE(L,he);break e;case 1:te=re;var ce=L.type,pe=L.stateNode;if((L.flags&128)===0&&(typeof ce.getDerivedStateFromError=="function"||pe!==null&&typeof pe.componentDidCatch=="function"&&(ka===null||!ka.has(pe)))){L.flags|=65536,h&=-h,L.lanes|=h;var Te=vP(L,te,h);HE(L,Te);break e}}L=L.return}while(L!==null)}ZP(w)}catch(Xe){h=Xe,mn===w&&w!==null&&(mn=w=w.return);continue}break}while(!0)}function XP(){var u=am.current;return am.current=em,u===null?em:u}function Nb(){(wn===0||wn===3||wn===2)&&(wn=4),Pn===null||(Ls&268435455)===0&&(sm&268435455)===0||Pa(Pn,Fn)}function hm(u,h){var w=wt;wt|=2;var k=XP();(Pn!==u||Fn!==h)&&(Ro=null,$s(u,h));do try{zH();break}catch(T){YP(u,T)}while(!0);if(Bx(),wt=w,am.current=k,mn!==null)throw Error(n(261));return Pn=null,Fn=0,wn}function zH(){for(;mn!==null;)QP(mn)}function UH(){for(;mn!==null&&!tx();)QP(mn)}function QP(u){var h=tA(u.alternate,u,Lr);u.memoizedProps=u.pendingProps,h===null?ZP(u):mn=h,gb.current=null}function ZP(u){var h=u;do{var w=h.alternate;if(u=h.return,(h.flags&32768)===0){if(w=IH(w,h,Lr),w!==null){mn=w;return}}else{if(w=DH(w,h),w!==null){w.flags&=32767,mn=w;return}if(u!==null)u.flags|=32768,u.subtreeFlags=0,u.deletions=null;else{wn=6,mn=null;return}}if(h=h.sibling,h!==null){mn=h;return}mn=h=u}while(h!==null);wn===0&&(wn=5)}function Fs(u,h,w){var k=Q,T=ti.transition;try{ti.transition=null,Q=1,HH(u,h,w,k)}finally{ti.transition=T,Q=k}return null}function HH(u,h,w,k){do gc();while(Oa!==null);if((wt&6)!==0)throw Error(n(327));w=u.finishedWork;var T=u.finishedLanes;if(w===null)return null;if(u.finishedWork=null,u.finishedLanes=0,w===u.current)throw Error(n(177));u.callbackNode=null,u.callbackPriority=0;var L=w.lanes|w.childLanes;if(fd(u,L),u===Pn&&(mn=Pn=null,Fn=0),(w.subtreeFlags&2064)===0&&(w.flags&2064)===0||cm||(cm=!0,nA(ha,function(){return gc(),null})),L=(w.flags&15990)!==0,(w.subtreeFlags&15990)!==0||L){L=ti.transition,ti.transition=null;var U=Q;Q=1;var te=wt;wt|=4,gb.current=null,BH(u,w),zP(w,u),uH(Nx),jp=!!jx,Nx=jx=null,u.current=w,$H(w),nx(),wt=te,Q=U,ti.transition=L}else u.current=w;if(cm&&(cm=!1,Oa=u,um=T),L=u.pendingLanes,L===0&&(ka=null),ud(w.stateNode),Nr(u,Nt()),h!==null)for(k=u.onRecoverableError,w=0;w<h.length;w++)T=h[w],k(T.value,{componentStack:T.stack,digest:T.digest});if(lm)throw lm=!1,u=xb,xb=null,u;return(um&1)!==0&&u.tag!==0&&gc(),L=u.pendingLanes,(L&1)!==0?u===bb?zd++:(zd=0,bb=u):zd=0,_a(),null}function gc(){if(Oa!==null){var u=me(um),h=ti.transition,w=Q;try{if(ti.transition=null,Q=16>u?16:u,Oa===null)var k=!1;else{if(u=Oa,Oa=null,um=0,(wt&6)!==0)throw Error(n(331));var T=wt;for(wt|=4,ze=u.current;ze!==null;){var L=ze,U=L.child;if((ze.flags&16)!==0){var te=L.deletions;if(te!==null){for(var re=0;re<te.length;re++){var ye=te[re];for(ze=ye;ze!==null;){var Oe=ze;switch(Oe.tag){case 0:case 11:case 15:$d(8,Oe,L)}var Pe=Oe.child;if(Pe!==null)Pe.return=Oe,ze=Pe;else for(;ze!==null;){Oe=ze;var Ne=Oe.sibling,Le=Oe.return;if(LP(Oe),Oe===ye){ze=null;break}if(Ne!==null){Ne.return=Le,ze=Ne;break}ze=Le}}}var Ve=L.alternate;if(Ve!==null){var Ke=Ve.child;if(Ke!==null){Ve.child=null;do{var sn=Ke.sibling;Ke.sibling=null,Ke=sn}while(Ke!==null)}}ze=L}}if((L.subtreeFlags&2064)!==0&&U!==null)U.return=L,ze=U;else e:for(;ze!==null;){if(L=ze,(L.flags&2048)!==0)switch(L.tag){case 0:case 11:case 15:$d(9,L,L.return)}var he=L.sibling;if(he!==null){he.return=L.return,ze=he;break e}ze=L.return}}var ce=u.current;for(ze=ce;ze!==null;){U=ze;var pe=U.child;if((U.subtreeFlags&2064)!==0&&pe!==null)pe.return=U,ze=pe;else e:for(U=ce;ze!==null;){if(te=ze,(te.flags&2048)!==0)try{switch(te.tag){case 0:case 11:case 15:om(9,te)}}catch(Xe){tn(te,te.return,Xe)}if(te===U){ze=null;break e}var Te=te.sibling;if(Te!==null){Te.return=te.return,ze=Te;break e}ze=te.return}}if(wt=T,_a(),ur&&typeof ur.onPostCommitFiberRoot=="function")try{ur.onPostCommitFiberRoot(Os,u)}catch{}k=!0}return k}finally{Q=w,ti.transition=h}}return!1}
vendor: 4,270 bytes, line 41
41function JP(u,h,w){h=fc(w,h),h=yP(u,h,1),u=ja(u,h,1),h=fr(),u!==null&&(Gi(u,1,h),Nr(u,h))}function tn(u,h,w){if(u.tag===3)JP(u,u,w);else for(;h!==null;){if(h.tag===3){JP(h,u,w);break}else if(h.tag===1){var k=h.stateNode;if(typeof h.type.getDerivedStateFromError=="function"||typeof k.componentDidCatch=="function"&&(ka===null||!ka.has(k))){u=fc(w,u),u=vP(h,u,1),h=ja(h,u,1),u=fr(),h!==null&&(Gi(h,1,u),Nr(h,u));break}}h=h.return}}function VH(u,h,w){var k=u.pingCache;k!==null&&k.delete(h),h=fr(),u.pingedLanes|=u.suspendedLanes&w,Pn===u&&(Fn&w)===w&&(wn===4||wn===3&&(Fn&130023424)===Fn&&500>Nt()-vb?$s(u,0):yb|=w),Nr(u,h)}function eA(u,h){h===0&&((u.mode&1)===0?h=1:(h=Gl,Gl<<=1,(Gl&130023424)===0&&(Gl=4194304)));var w=fr();u=Ao(u,h),u!==null&&(Gi(u,h,w),Nr(u,w))}function WH(u){var h=u.memoizedState,w=0;h!==null&&(w=h.retryLane),eA(u,w)}function GH(u,h){var w=0;switch(u.tag){case 13:var k=u.stateNode,T=u.memoizedState;T!==null&&(w=T.retryLane);break;case 19:k=u.stateNode;break;default:throw Error(n(314))}k!==null&&k.delete(h),eA(u,w)}var tA;tA=function(u,h,w){if(u!==null)if(u.memoizedProps!==h.pendingProps||wr.current)Sr=!0;else{if((u.lanes&w)===0&&(h.flags&128)===0)return Sr=!1,MH(u,h,w);Sr=(u.flags&131072)!==0}else Sr=!1,Yt&&(h.flags&1048576)!==0&&ME(h,zp,h.index);switch(h.lanes=0,h.tag){case 2:var k=h.type;rm(u,h),u=h.pendingProps;var T=ic(h,Xn.current);uc(h,w),T=Yx(null,h,k,u,T,w);var L=Xx();return h.flags|=1,typeof T=="object"&&T!==null&&typeof T.render=="function"&&T.$$typeof===void 0?(h.tag=1,h.memoizedState=null,h.updateQueue=null,_r(k)?(L=!0,$p(h)):L=!1,h.memoizedState=T.state!==null&&T.state!==void 0?T.state:null,zx(h),T.updater=tm,h.stateNode=T,T._reactInternals=h,nb(h,k,u,w),h=ab(null,h,k,!0,L,w)):(h.tag=0,Yt&&L&&Cx(h),dr(null,h,T,w),h=h.child),h;case 16:k=h.elementType;e:{switch(rm(u,h),u=h.pendingProps,T=k._init,k=T(k._payload),h.type=k,T=h.tag=YH(k),u=_i(k,u),T){case 0:h=ob(null,h,k,u,w);break e;case 1:h=OP(null,h,k,u,w);break e;case 11:h=_P(null,h,k,u,w);break e;case 14:h=SP(null,h,k,_i(k.type,u),w);break e}throw Error(n(306,k,""))}return h;case 0:return k=h.type,T=h.pendingProps,T=h.elementType===k?T:_i(k,T),ob(u,h,k,T,w);case 1:return k=h.type,T=h.pendingProps,T=h.elementType===k?T:_i(k,T),OP(u,h,k,T,w);case 3:e:{if(EP(h),u===null)throw Error(n(387));k=h.pendingProps,L=h.memoizedState,T=L.element,UE(u,h),Kp(h,k,null,w);var U=h.memoizedState;if(k=U.element,L.isDehydrated)if(L={element:k,isDehydrated:!1,cache:U.cache,pendingSuspenseBoundaries:U.pendingSuspenseBoundaries,transitions:U.transitions},h.updateQueue.baseState=L,h.memoizedState=L,h.flags&256){T=fc(Error(n(423)),h),h=PP(u,h,k,w,T);break e}else if(k!==T){T=fc(Error(n(424)),h),h=PP(u,h,k,w,T);break e}else for(Dr=xa(h.stateNode.containerInfo.firstChild),Ir=h,Yt=!0,wi=null,w=qE(h,null,k,w),h.child=w;w;)w.flags=w.flags&-3|4096,w=w.sibling;else{if(sc(),k===T){h=Co(u,h,w);break e}dr(u,h,k,w)}h=h.child}return h;case 5:return WE(h),u===null&&Ix(h),k=h.type,T=h.pendingProps,L=u!==null?u.memoizedProps:null,U=T.children,kx(k,T)?U=null:L!==null&&kx(k,L)&&(h.flags|=32),kP(u,h),dr(u,h,U,w),h.child;case 6:return u===null&&Ix(h),null;case 13:return AP(u,h,w);case 4:return Ux(h,h.stateNode.containerInfo),k=h.pendingProps,u===null?h.child=lc(h,null,k,w):dr(u,h,k,w),h.child;case 11:return k=h.type,T=h.pendingProps,T=h.elementType===k?T:_i(k,T),_P(u,h,k,T,w);case 7:return dr(u,h,h.pendingProps,w),h.child;case 8:return dr(u,h,h.pendingProps.children,w),h.child;case 12:return dr(u,h,h.pendingProps.children,w),h.child;case 10:e:{if(k=h.type._context,T=h.pendingProps,L=h.memoizedProps,U=T.value,Dt(Vp,k._currentValue),k._currentValue=U,L!==null)if(bi(L.value,U)){if(L.children===T.children&&!wr.current){h=Co(u,h,w);break e}}else for(L=h.child,L!==null&&(L.return=h);L!==null;){var te=L.dependencies;if(te!==null){U=L.child;for(var re=te.firstContext;re!==null;){if(re.context===k){if(L.tag===1){re=To(-1,w&-w),re.tag=2;var ye=L.updateQueue;if(ye!==null){ye=ye.shared;var Oe=ye.pending;Oe===null?re.next=re:(re.next=Oe.next,Oe.next=re),ye.pending=re}}L.lanes|=w,re=L.alternate,re!==null&&(re.lanes|=w),Fx(L.return,w,h),te.lanes|=w;break}re=re.next}}else if(L.tag===10)U=L.type===h.type?null:L.child;else if(L.tag===18){if(U=L.return,U===null)throw Error(n(341));
vendor: 8,587 bytes, line 41
41U.lanes|=w,te=U.alternate,te!==null&&(te.lanes|=w),Fx(U,w,h),U=L.sibling}else U=L.child;if(U!==null)U.return=L;else for(U=L;U!==null;){if(U===h){U=null;break}if(L=U.sibling,L!==null){L.return=U.return,U=L;break}U=U.return}L=U}dr(u,h,T.children,w),h=h.child}return h;case 9:return T=h.type,k=h.pendingProps.children,uc(h,w),T=Jr(T),k=k(T),h.flags|=1,dr(u,h,k,w),h.child;case 14:return k=h.type,T=_i(k,h.pendingProps),T=_i(k.type,T),SP(u,h,k,T,w);case 15:return jP(u,h,h.type,h.pendingProps,w);case 17:return k=h.type,T=h.pendingProps,T=h.elementType===k?T:_i(k,T),rm(u,h),h.tag=1,_r(k)?(u=!0,$p(h)):u=!1,uc(h,w),mP(h,k,T),nb(h,k,T,w),ab(null,h,k,!0,u,w);case 19:return CP(u,h,w);case 22:return NP(u,h,w)}throw Error(n(156,h.tag))};function nA(u,h){return vp(u,h)}function KH(u,h,w,k){this.tag=u,this.key=w,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=h,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=k,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ni(u,h,w,k){return new KH(u,h,w,k)}function kb(u){return u=u.prototype,!(!u||!u.isReactComponent)}function YH(u){if(typeof u=="function")return kb(u)?1:0;if(u!=null){if(u=u.$$typeof,u===R)return 11;if(u===z)return 14}return 2}function Aa(u,h){var w=u.alternate;return w===null?(w=ni(u.tag,h,u.key,u.mode),w.elementType=u.elementType,w.type=u.type,w.stateNode=u.stateNode,w.alternate=u,u.alternate=w):(w.pendingProps=h,w.type=u.type,w.flags=0,w.subtreeFlags=0,w.deletions=null),w.flags=u.flags&14680064,w.childLanes=u.childLanes,w.lanes=u.lanes,w.child=u.child,w.memoizedProps=u.memoizedProps,w.memoizedState=u.memoizedState,w.updateQueue=u.updateQueue,h=u.dependencies,w.dependencies=h===null?null:{lanes:h.lanes,firstContext:h.firstContext},w.sibling=u.sibling,w.index=u.index,w.ref=u.ref,w}function pm(u,h,w,k,T,L){var U=2;if(k=u,typeof u=="function")kb(u)&&(U=1);else if(typeof u=="string")U=5;else e:switch(u){case E:return qs(w.children,T,L,h);case A:U=8,T|=8;break;case I:return u=ni(12,w,h,T|2),u.elementType=I,u.lanes=L,u;case B:return u=ni(13,w,h,T),u.elementType=B,u.lanes=L,u;case $:return u=ni(19,w,h,T),u.elementType=$,u.lanes=L,u;case V:return mm(w,T,L,h);default:if(typeof u=="object"&&u!==null)switch(u.$$typeof){case M:U=10;break e;case C:U=9;break e;case R:U=11;break e;case z:U=14;break e;case H:U=16,k=null;break e}throw Error(n(130,u==null?u:typeof u,""))}return h=ni(U,w,h,T),h.elementType=u,h.type=k,h.lanes=L,h}function qs(u,h,w,k){return u=ni(7,u,k,h),u.lanes=w,u}function mm(u,h,w,k){return u=ni(22,u,k,h),u.elementType=V,u.lanes=w,u.stateNode={isHidden:!1},u}function Ob(u,h,w){return u=ni(6,u,null,h),u.lanes=w,u}function Eb(u,h,w){return h=ni(4,u.children!==null?u.children:[],u.key,h),h.lanes=w,h.stateNode={containerInfo:u.containerInfo,pendingChildren:null,implementation:u.implementation},h}function XH(u,h,w,k,T){this.tag=h,this.containerInfo=u,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Kl(0),this.expirationTimes=Kl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Kl(0),this.identifierPrefix=k,this.onRecoverableError=T,this.mutableSourceEagerHydrationData=null}function Pb(u,h,w,k,T,L,U,te,re){return u=new XH(u,h,w,te,re),h===1?(h=1,L===!0&&(h|=8)):h=0,L=ni(3,null,null,h),u.current=L,L.stateNode=u,L.memoizedState={element:k,isDehydrated:w,cache:null,transitions:null,pendingSuspenseBoundaries:null},zx(L),u}function QH(u,h,w){var k=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:O,key:k==null?null:""+k,children:u,containerInfo:h,implementation:w}}function rA(u){if(!u)return wa;u=u._reactInternals;e:{if(br(u)!==u||u.tag!==1)throw Error(n(170));var h=u;do{switch(h.tag){case 3:h=h.stateNode.context;break e;case 1:if(_r(h.type)){h=h.stateNode.__reactInternalMemoizedMergedChildContext;break e}}h=h.return}while(h!==null);throw Error(n(171))}if(u.tag===1){var w=u.type;if(_r(w))return TE(u,w,h)}return h}function iA(u,h,w,k,T,L,U,te,re){return u=Pb(w,k,!0,u,T,L,U,te,re),u.context=rA(null),w=u.current,k=fr(),T=Ea(w),L=To(k,T),L.callback=h??null,ja(w,L,T),u.current.lanes=T,Gi(u,T,k),Nr(u,k),u}function gm(u,h,w,k){var T=h.current,L=fr(),U=Ea(T);return w=rA(w),h.context===null?h.context=w:h.pendingContext=w,h=To(L,U),h.payload={element:u},k=k===void 0?null:k,k!==null&&(h.callback=k),u=ja(T,h,U),u!==null&&(Ni(u,T,U,L),Gp(u,T,U)),U}function ym(u){if(u=u.current,!u.child)return null;switch(u.child.tag){case 5:return u.child.stateNode;default:return u.child.stateNode}}function oA(u,h){if(u=u.memoizedState,u!==null&&u.dehydrated!==null){var w=u.retryLane;u.retryLane=w!==0&&w<h?w:h}}function Ab(u,h){oA(u,h),(u=u.alternate)&&oA(u,h)}function ZH(){return null}var aA=typeof reportError=="function"?reportError:function(u){console.error(u)};function Tb(u){this._internalRoot=u}vm.prototype.render=Tb.prototype.render=function(u){var h=this._internalRoot;if(h===null)throw Error(n(409));gm(u,h,null,null)},vm.prototype.unmount=Tb.prototype.unmount=function(){var u=this._internalRoot;if(u!==null){this._internalRoot=null;var h=u.containerInfo;Bs(function(){gm(null,u,null,null)}),h[ko]=null}};function vm(u){this._internalRoot=u}vm.prototype.unstable_scheduleHydration=function(u){if(u){var h=rt();u={blockedOn:null,target:u,priority:h};for(var w=0;w<ga.length&&h!==0&&h<ga[w].priority;w++);ga.splice(w,0,u),w===0&&WO(u)}};function Cb(u){return!(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)}function xm(u){return!(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11&&(u.nodeType!==8||u.nodeValue!==" react-mount-point-unstable "))}function sA(){}function JH(u,h,w,k,T){if(T){if(typeof k=="function"){var L=k;k=function(){var ye=ym(U);L.call(ye)}}var U=iA(h,k,u,0,null,!1,!1,"",sA);return u._reactRootContainer=U,u[ko]=U.current,kd(u.nodeType===8?u.parentNode:u),Bs(),U}for(;T=u.lastChild;)u.removeChild(T);if(typeof k=="function"){var te=k;k=function(){var ye=ym(re);te.call(ye)}}var re=Pb(u,0,!1,null,null,!1,!1,"",sA);return u._reactRootContainer=re,u[ko]=re.current,kd(u.nodeType===8?u.parentNode:u),Bs(function(){gm(h,re,w,k)}),re}function bm(u,h,w,k,T){var L=w._reactRootContainer;if(L){var U=L;if(typeof T=="function"){var te=T;T=function(){var re=ym(U);te.call(re)}}gm(h,U,u,T)}else U=JH(w,h,u,T,k);return ym(U)}je=function(u){switch(u.tag){case 3:var h=u.stateNode;if(h.current.memoizedState.isDehydrated){var w=ma(h.pendingLanes);w!==0&&(Ae(h,w|1),Nr(h,Nt()),(wt&6)===0&&(mc=Nt()+500,_a()))}break;case 13:Bs(function(){var k=Ao(u,1);if(k!==null){var T=fr();Ni(k,u,1,T)}}),Ab(u,1)}},qe=function(u){if(u.tag===13){var h=Ao(u,134217728);if(h!==null){var w=fr();Ni(h,u,134217728,w)}Ab(u,134217728)}},Qe=function(u){if(u.tag===13){var h=Ea(u),w=Ao(u,h);if(w!==null){var k=fr();Ni(w,u,h,k)}Ab(u,h)}},rt=function(){return Q},zt=function(u,h){var w=Q;try{return Q=u,h()}finally{Q=w}},js=function(u,h,w){switch(h){case"input":if(De(u,w),h=w.name,w.type==="radio"&&h!=null){for(w=u;w.parentNode;)w=w.parentNode;for(w=w.querySelectorAll("input[name="+JSON.stringify(""+h)+'][type="radio"]'),h=0;h<w.length;h++){var k=w[h];if(k!==u&&k.form===u.form){var T=Lp(k);if(!T)throw Error(n(90));le(k),De(k,T)}}}break;case"textarea":$e(u,w);break;case"select":h=w.value,h!=null&&Ee(u,!!w.multiple,h,!1)}},ks=Sb,Rr=Bs;var eV={usingClientEntryPoint:!1,Events:[Pd,nc,Lp,nd,Ns,Sb]},Ud={findFiberByHostInstance:As,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},tV={bundleType:Ud.bundleType,version:Ud.version,rendererPackageName:Ud.rendererPackageName,rendererConfig:Ud.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:S.ReactCurrentDispatcher,findHostInstanceByFiber:function(u){return u=sd(u),u===null?null:u.stateNode},findFiberByHostInstance:Ud.findFiberByHostInstance||ZH,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var wm=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wm.isDisabled&&wm.supportsFiber)try{Os=wm.inject(tV),ur=wm}catch{}}
41return kr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eV,kr.createPortal=function(u,h){var w=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Cb(h))throw Error(n(200));return QH(u,h,null,w)},kr.createRoot=function(u,h){if(!Cb(u))throw Error(n(299));var w=!1,k="",T=aA;return h!=null&&(h.unstable_strictMode===!0&&(w=!0),h.identifierPrefix!==void 0&&(k=h.identifierPrefix),h.onRecoverableError!==void 0&&(T=h.onRecoverableError)),h=Pb(u,1,!1,null,null,w,!1,k,T),u[ko]=h.current,kd(u.nodeType===8?u.parentNode:u),new Tb(h)},kr.findDOMNode=function(u){if(u==null)return null;if(u.nodeType===1)return u;var h=u._reactInternals;if(h===void 0)throw typeof u.render=="function"?Error(n(188)):(u=Object.keys(u).join(","),Error(n(268,u)));return u=sd(h),u=u===null?null:u.stateNode,u},kr.flushSync=function(u){return Bs(u)},kr.hydrate=function(u,h,w){if(!xm(h))throw Error(n(200));return bm(null,u,h,!0,w)},kr.hydrateRoot=function(u,h,w){if(!Cb(u))throw Error(n(405));var k=w!=null&&w.hydratedSources||null,T=!1,L="",U=aA;if(w!=null&&(w.unstable_strictMode===!0&&(T=!0),w.identifierPrefix!==void 0&&(L=w.identifierPrefix),w.onRecoverableError!==void 0&&(U=w.onRecoverableError)),h=iA(h,null,u,1,w??null,T,!1,L,U),u[ko]=h.current,kd(u),k)for(u=0;u<k.length;u++)w=k[u],T=w._getVersion,T=T(w._source),h.mutableSourceEagerHydrationData==null?h.mutableSourceEagerHydrationData=[w,T]:h.mutableSourceEagerHydrationData.push(w,T);return new vm(h)},kr.render=function(u,h,w){if(!xm(h))throw Error(n(200));return bm(null,u,h,!1,w)},kr.unmountComponentAtNode=function(u){if(!xm(u))throw Error(n(40));return u._reactRootContainer?(Bs(function(){bm(null,null,u,!1,function(){u._reactRootContainer=null,u[ko]=null})}),!0):!1},kr.unstable_batchedUpdates=Sb,kr.unstable_renderSubtreeIntoContainer=function(u,h,w,k){if(!xm(w))throw Error(n(200));if(u==null||u._reactInternals===void 0)throw Error(n(38));return bm(u,h,w,!1,k)},kr.version="18.3.1-next-f1338f8080-20240426",kr}var gA;function fN(){if(gA)return Db.exports;gA=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Db.exports=dV(),Db.exports}var yA;function fV(){if(yA)return jm;yA=1;var e=fN();return jm.createRoot=e.createRoot,jm.hydrateRoot=e.hydrateRoot,jm}var hV=fV();const pV=Ct(hV),mV=20,gV=1e6,Fo={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let $b=0;function yV(){return $b=($b+1)%Number.MAX_VALUE,$b.toString()}const Fb=new Map,vA=e=>{if(Fb.has(e))return;const t=setTimeout(()=>{Fb.delete(e),Ef({type:Fo.REMOVE_TOAST,toastId:e})},gV);Fb.set(e,t)},vV=(e,t)=>{switch(t.type){case Fo.ADD_TOAST:return{...e,toasts:[t.toast,...e.toasts].slice(0,mV)};case Fo.UPDATE_TOAST:return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case Fo.DISMISS_TOAST:{const{toastId:n}=t;return n?vA(n):e.toasts.forEach(r=>{vA(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case Fo.REMOVE_TOAST:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},ig=[];let og={toasts:[]};function Ef(e){og=vV(og,e),ig.forEach(t=>{t(og)})}function SL({...e}){const t=yV(),n=i=>Ef({type:Fo.UPDATE_TOAST,toast:{...i,id:t}}),r=()=>Ef({type:Fo.DISMISS_TOAST,toastId:t});return Ef({type:Fo.ADD_TOAST,toast:{...e,id:t,open:!0,onOpenChange:i=>{i||r()}}}),{id:t,dismiss:r,update:n}}function xV(){const[e,t]=P.useState(og);return P.useEffect(()=>(ig.push(t),()=>{const n=ig.indexOf(t);n>-1&&ig.splice(n,1)}),[e]),{...e,toast:SL,dismiss:n=>Ef({type:Fo.DISMISS_TOAST,toastId:n})}}function jL(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=jL(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function xt(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=jL(e))&&(r&&(r+=" "),r+=t);return r}const xA=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,bA=xt,hN=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return bA(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:o}=t,a=Object.keys(i).map(d=>{const p=n==null?void 0:n[d],f=o==null?void 0:o[d];if(p===null)return null;const m=xA(p)||xA(f);return i[d][m]}),l=n&&Object.entries(n).reduce((d,p)=>{let[f,m]=p;return m===void 0||(d[f]=m),d},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,p)=>{let{class:f,className:m,...g}=p;return Object.entries(g).every(b=>{let[y,v]=b;return Array.isArray(v)?v.includes({...o,...l}[y]):{...o,...l}[y]===v})?[...d,f,m]:d},[]);return bA(e,a,c,n==null?void 0:n.class,n==null?void 0:n.className)};/**
42 * @license lucide-react v0.475.0 - ISC
43 *
44 * This source code is licensed under the ISC license.
45 * See the LICENSE file in the root directory of this source tree.
46 */const bV=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),NL=(...e)=>
vendor: 4,526 bytes, lines 46-101
46e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
47 * @license lucide-react v0.475.0 - ISC
48 *
49 * This source code is licensed under the ISC license.
50 * See the LICENSE file in the root directory of this source tree.
51 */var wV={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"};/**
52 * @license lucide-react v0.475.0 - ISC
53 *
54 * This source code is licensed under the ISC license.
55 * See the LICENSE file in the root directory of this source tree.
56 */const _V=P.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:a,...l},c)=>P.createElement("svg",{ref:c,...wV,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:NL("lucide",i),...l},[...a.map(([d,p])=>P.createElement(d,p)),...Array.isArray(o)?o:[o]]));/**
57 * @license lucide-react v0.475.0 - ISC
58 *
59 * This source code is licensed under the ISC license.
60 * See the LICENSE file in the root directory of this source tree.
61 */const Ce=(e,t)=>{const n=P.forwardRef(({className:r,...i},o)=>P.createElement(_V,{ref:o,iconNode:t,className:NL(`lucide-${bV(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
62 * @license lucide-react v0.475.0 - ISC
63 *
64 * This source code is licensed under the ISC license.
65 * See the LICENSE file in the root directory of this source tree.
66 */const SV=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],jV=Ce("Activity",SV);/**
67 * @license lucide-react v0.475.0 - ISC
68 *
69 * This source code is licensed under the ISC license.
70 * See the LICENSE file in the root directory of this source tree.
71 */const NV=[["path",{d:"m7 7 10 10",key:"1fmybs"}],["path",{d:"M17 7v10H7",key:"6fjiku"}]],kV=Ce("ArrowDownRight",NV);/**
72 * @license lucide-react v0.475.0 - ISC
73 *
74 * This source code is licensed under the ISC license.
75 * See the LICENSE file in the root directory of this source tree.
76 */const OV=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Hh=Ce("ArrowLeft",OV);/**
77 * @license lucide-react v0.475.0 - ISC
78 *
79 * This source code is licensed under the ISC license.
80 * See the LICENSE file in the root directory of this source tree.
81 */const EV=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],ot=Ce("ArrowRight",EV);/**
82 * @license lucide-react v0.475.0 - ISC
83 *
84 * This source code is licensed under the ISC license.
85 * See the LICENSE file in the root directory of this source tree.
86 */const PV=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],AV=Ce("ArrowUpRight",PV);/**
87 * @license lucide-react v0.475.0 - ISC
88 *
89 * This source code is licensed under the ISC license.
90 * See the LICENSE file in the root directory of this source tree.
91 */const TV=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],CV=Ce("BookOpen",TV);/**
92 * @license lucide-react v0.475.0 - ISC
93 *
94 * This source code is licensed under the ISC license.
95 * See the LICENSE file in the root directory of this source tree.
96 */const RV=[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]],MV=Ce("Boxes",RV);/**
97 * @license lucide-react v0.475.0 - ISC
98 *
99 * This source code is licensed under the ISC license.
100 * See the LICENSE file in the root directory of this source tree.
101 */const IV=[["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M3 10h5",key:"r794hk"}
101],["path",{d:"M17.5 17.5 16 16.3V14",key:"akvzfd"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]],wA=Ce("CalendarClock",IV);/**
102 * @license lucide-react v0.475.0 - ISC
103 *
104 * This source code is licensed under the ISC license.
105 * See the LICENSE file in the root directory of this source tree.
106 */const DV=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],kL=Ce("Calendar",DV);/**
107 * @license lucide-react v0.475.0 - ISC
108 *
109 * This source code is licensed under the ISC license.
110 * See the LICENSE file in the root directory of this source tree.
111 */const LV=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],OL=Ce("ChartColumn",LV);/**
112 * @license lucide-react v0.475.0 - ISC
113 *
114 * This source code is licensed under the ISC license.
115 * See the LICENSE file in the root directory of this source tree.
116 */const BV=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Gy=Ce("Check",BV);/**
117 * @license lucide-react v0.475.0 - ISC
118 *
119 * This source code is licensed under the ISC license.
120 * See the LICENSE file in the root directory of this source tree.
121 */const $V=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],us=Ce("ChevronDown",$V);/**
122 * @license lucide-react v0.475.0 - ISC
123 *
124 * This source code is licensed under the ISC license.
125 * See the LICENSE file in the root directory of this source tree.
126 */const FV=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],qV=Ce("ChevronUp",FV);/**
127 * @license lucide-react v0.475.0 - ISC
128 *
129 * This source code is licensed under the ISC license.
130 * See the LICENSE file in the root directory of this source tree.
131 */const zV=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Ky=Ce("CircleAlert",zV);/**
132 * @license lucide-react v0.475.0 - ISC
133 *
134 * This source code is licensed under the ISC license.
135 * See the LICENSE file in the root directory of this source tree.
136 */const UV=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],oa=Ce("CircleCheckBig",UV);/**
137 * @license lucide-react v0.475.0 - ISC
138 *
139 * This source code is licensed under the ISC license.
140 * See the LICENSE file in the root directory of this source tree.
141 */const HV=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],au=Ce("CircleCheck",HV);/**
142 * @license lucide-react v0.475.0 - ISC
143 *
144 * This source code is licensed under the ISC license.
145 * See the LICENSE file in the root directory of this source tree.
146 */const VV=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],WV=Ce("CircleHelp",VV);/**
147 * @license lucide-react v0.475.0 - ISC
148 *
149 * This source code is licensed under the ISC license.
150 * See the LICENSE file in the root directory of this source tree.
151 */const GV=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],KV=Ce("ClipboardList",GV);/**
152 * @license lucide-react v0.475.0 - ISC
153 *
154 * This source code is licensed under the ISC license.
155 * See the LICENSE file in the root directory of this source tree.
156 */const YV=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],EL=Ce("Clock",YV);/**
157 * @license lucide-react v0.475.0 - ISC
158 *
159 * This source code is licensed under the ISC license.
160 * See the LICENSE file in the root directory of this source tree.
161 */const XV=[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]],QV=Ce("CloudUpload",XV);/**
162 * @license lucide-react v0.475.0 - ISC
163 *
164 * This source code is licensed under the ISC license.
165 * See the LICENSE file in the root directory of this source tree.
166 */const ZV=[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]],JV=Ce("Code",ZV);/**
167 * @license lucide-react v0.475.0 - ISC
168 *
169 * This source code is licensed under the ISC license.
170 * See the LICENSE file in the root directory of this source tree.
171 */const eW=[["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"}]],tW=Ce("Copy",eW);/**
172 * @license lucide-react v0.475.0 - ISC
173 *
174 * This source code is licensed under the ISC license.
175 * See the LICENSE file in the root directory of this source tree.
176 */const nW=[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}
176],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]],PL=Ce("Cpu",nW);/**
177 * @license lucide-react v0.475.0 - ISC
178 *
179 * This source code is licensed under the ISC license.
180 * See the LICENSE file in the root directory of this source tree.
181 */const rW=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]],iW=Ce("Crosshair",rW);/**
182 * @license lucide-react v0.475.0 - ISC
183 *
184 * This source code is licensed under the ISC license.
185 * See the LICENSE file in the root directory of this source tree.
186 */const oW=[["path",{d:"m12.99 6.74 1.93 3.44",key:"iwagvd"}],["path",{d:"M19.136 12a10 10 0 0 1-14.271 0",key:"ppmlo4"}],["path",{d:"m21 21-2.16-3.84",key:"vylbct"}],["path",{d:"m3 21 8.02-14.26",key:"1ssaw4"}],["circle",{cx:"12",cy:"5",r:"2",key:"f1ur92"}]],aW=Ce("DraftingCompass",oW);/**
187 * @license lucide-react v0.475.0 - ISC
188 *
189 * This source code is licensed under the ISC license.
190 * See the LICENSE file in the root directory of this source tree.
191 */const sW=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],lW=Ce("ExternalLink",sW);/**
192 * @license lucide-react v0.475.0 - ISC
193 *
194 * This source code is licensed under the ISC license.
195 * See the LICENSE file in the root directory of this source tree.
196 */const cW=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],uW=Ce("EyeOff",cW);/**
197 * @license lucide-react v0.475.0 - ISC
198 *
199 * This source code is licensed under the ISC license.
200 * See the LICENSE file in the root directory of this source tree.
201 */const dW=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],AL=Ce("Eye",dW);/**
202 * @license lucide-react v0.475.0 - ISC
203 *
204 * This source code is licensed under the ISC license.
205 * See the LICENSE file in the root directory of this source tree.
206 */const fW=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],hW=Ce("Facebook",fW);/**
207 * @license lucide-react v0.475.0 - ISC
208 *
209 * This source code is licensed under the ISC license.
210 * See the LICENSE file in the root directory of this source tree.
211 */const pW=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],$_=Ce("FileText",pW);/**
212 * @license lucide-react v0.475.0 - ISC
213 *
214 * This source code is licensed under the ISC license.
215 * See the LICENSE file in the root directory of this source tree.
216 */const mW=[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]],gW=Ce("Flame",mW);/**
217 * @license lucide-react v0.475.0 - ISC
218 *
219 * This source code is licensed under the ISC license.
220 * See the LICENSE file in the root directory of this source tree.
221 */const yW=[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]],vW=Ce("FlaskConical",yW);/**
222 * @license lucide-react v0.475.0 - ISC
223 *
224 * This source code is licensed under the ISC license.
225 * See the LICENSE file in the root directory of this source tree.
226 */const xW=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],bW=Ce("Globe",xW);/**
227 * @license lucide-react v0.475.0 - ISC
228 *
229 * This source code is licensed under the ISC license.
230 * See the LICENSE file in the root directory of this source tree.
231 */const wW=[["path",{d:"m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9",key:"eefl8a"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172V7l-2.26-2.26a6 6 0 0 0-4.202-1.756L9 2.96l.92.82A6.18 6.18 0 0 1 12 8.4V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"b7pghm"}]],_W=Ce("Hammer",wW);/**
232 * @license lucide-react v0.475.0 - ISC
233 *
234 * This source code is licensed under the ISC license.
235 * See the LICENSE file in the root directory of this source tree.
236 */const SW=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M12 5 9.04 7.96a2.17 2.17 0 0 0 0 3.08c.82.82 2.13.85 3 .07l2.07-1.9a2.82 2.82 0 0 1 3.79 0l2.96 2.66",key:"4oyue0"}],["path",{d:"m18 15-2-2",key:"60u0ii"}],["path",{d:"m15 18-2-2",key:"6p76be"}]],jW=Ce("HeartHandshake",SW);/**
237 * @license lucide-react v0.475.0 - ISC
238 *
239 * This source code is licensed under the ISC license.
240 * See the LICENSE file in the root directory of this source tree.
241 */const NW=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]],kW=Ce("Heart",NW);/**
242 * @license lucide-react v0.475.0 - ISC
243 *
244 * This source code is licensed under the ISC license.
245 * See the LICENSE file in the root directory of this source tree.
246 */const OW=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],TL=Ce("Inbox",OW);/**
247 * @license lucide-react v0.475.0 - ISC
248 *
249 * This source code is licensed under the ISC license.
250 * See the LICENSE file in the root directory of this source tree.
251 */const EW=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],CL=Ce("Layers",EW);/**
252 * @license lucide-react v0.475.0 - ISC
253 *
254 * This source code is licensed under the ISC license.
255 * See the LICENSE file in the root directory of this source tree.
256 */const PW=[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]],AW=Ce("Leaf",PW);/**
257 * @license lucide-react v0.475.0 - ISC
258 *
259 * This source code is licensed under the ISC license.
260 * See the LICENSE file in the root directory of this source tree.
261 */const TW=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],CW=Ce("Lightbulb",TW);/**
262 * @license lucide-react v0.475.0 - ISC
263 *
264 * This source code is licensed under the ISC license.
265 * See the LICENSE file in the root directory of this source tree.
266 */const RW=[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]],MW=Ce("Linkedin",RW);/**
267 * @license lucide-react v0.475.0 - ISC
268 *
269 * This source code is licensed under the ISC license.
270 * See the LICENSE file in the root directory of this source tree.
271 */const IW=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],pi=Ce("LoaderCircle",IW);/**
272 * @license lucide-react v0.475.0 - ISC
273 *
274 * This source code is licensed under the ISC license.
275 * See the LICENSE file in the root directory of this source tree.
276 */const DW=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],gl=Ce("Lock",DW);
276/**
277 * @license lucide-react v0.475.0 - ISC
278 *
279 * This source code is licensed under the ISC license.
280 * See the LICENSE file in the root directory of this source tree.
281 */const LW=[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]],BW=Ce("LogIn",LW);/**
282 * @license lucide-react v0.475.0 - ISC
283 *
284 * This source code is licensed under the ISC license.
285 * See the LICENSE file in the root directory of this source tree.
286 */const $W=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]],Qo=Ce("Mail",$W);/**
287 * @license lucide-react v0.475.0 - ISC
288 *
289 * This source code is licensed under the ISC license.
290 * See the LICENSE file in the root directory of this source tree.
291 */const FW=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],Vh=Ce("MapPin",FW);/**
292 * @license lucide-react v0.475.0 - ISC
293 *
294 * This source code is licensed under the ISC license.
295 * See the LICENSE file in the root directory of this source tree.
296 */const qW=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],zW=Ce("Menu",qW);/**
297 * @license lucide-react v0.475.0 - ISC
298 *
299 * This source code is licensed under the ISC license.
300 * See the LICENSE file in the root directory of this source tree.
301 */const UW=[["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"}]],HW=Ce("MessageSquare",UW);/**
302 * @license lucide-react v0.475.0 - ISC
303 *
304 * This source code is licensed under the ISC license.
305 * See the LICENSE file in the root directory of this source tree.
306 */const VW=[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]],WW=Ce("Microscope",VW);/**
307 * @license lucide-react v0.475.0 - ISC
308 *
309 * This source code is licensed under the ISC license.
310 * See the LICENSE file in the root directory of this source tree.
311 */const GW=[["path",{d:"M5 12h14",key:"1ays0h"}]],KW=Ce("Minus",GW);/**
312 * @license lucide-react v0.475.0 - ISC
313 *
314 * This source code is licensed under the ISC license.
315 * See the LICENSE file in the root directory of this source tree.
316 */const YW=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],RL=Ce("Monitor",YW);/**
317 * @license lucide-react v0.475.0 - ISC
318 *
319 * This source code is licensed under the ISC license.
320 * See the LICENSE file in the root directory of this source tree.
321 */const XW=[["path",{d:"M14 4.1 12 6",key:"ita8i4"}],["path",{d:"m5.1 8-2.9-.8",key:"1go3kf"}],["path",{d:"m6 12-1.9 2",key:"mnht97"}],["path",{d:"M7.2 2.2 8 5.1",key:"1cfko1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z",key:"s0h3yz"}]],QW=Ce("MousePointerClick",XW);/**
322 * @license lucide-react v0.475.0 - ISC
323 *
324 * This source code is licensed under the ISC license.
325 * See the LICENSE file in the root directory of this source tree.
326 */const ZW=[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]],ML=Ce("PackageCheck",ZW);/**
327 * @license lucide-react v0.475.0 - ISC
328 *
329 * This source code is licensed under the ISC license.
330 * See the LICENSE file in the root directory of this source tree.
331 */const JW=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],eG=Ce("Package",JW);/**
332 * @license lucide-react v0.475.0 - ISC
333 *
334 * This source code is licensed under the ISC license.
335 * See the LICENSE file in the root directory of this source tree.
336 */const tG=[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]],IL=Ce("Palette",tG);/**
337 * @license lucide-react v0.475.0 - ISC
338 *
339 * This source code is licensed under the ISC license.
340 * See the LICENSE file in the root directory of this source tree.
341 */const nG=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],rG=Ce("Pencil",nG);/**
342 * @license lucide-react v0.475.0 - ISC
343 *
344 * This source code is licensed under the ISC license.
345 * See the LICENSE file in the root directory of this source tree.
346 */const iG=[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]],Wh=Ce("Phone",iG);/**
347 * @license lucide-react v0.475.0 - ISC
348 *
349 * This source code is licensed under the ISC license.
350 * See the LICENSE file in the root directory of this source tree.
351 */const oG=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],aG=Ce("Play",oG);/**
352 * @license lucide-react v0.475.0 - ISC
353 *
354 * This source code is licensed under the ISC license.
355 * See the LICENSE file in the root directory of this source tree.
356 */const sG=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],lG=Ce("Plus",sG);/**
357 * @license lucide-react v0.475.0 - ISC
358 *
359 * This source code is licensed under the ISC license.
360 * See the LICENSE file in the root directory of this source tree.
361 */const cG=[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]],uG=Ce("Printer",cG);/**
362 * @license lucide-react v0.475.0 - ISC
363 *
364 * This source code is licensed under the ISC license.
365 * See the LICENSE file in the root directory of this source tree.
366 */const dG=[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]],pN=Ce("Quote",dG);/**
367 * @license lucide-react v0.475.0 - ISC
368 *
369 * This source code is licensed under the ISC license.
370 * See the LICENSE file in the root directory of this source tree.
371 */const fG=[["path",{d:"M4.9 16.1C1 12.2 1 5.8 4.9 1.9",key:"s0qx1y"}],["path",{d:"M7.8 4.7a6.14 6.14 0 0 0-.8 7.5",key:"1idnkw"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}],["path",{d:"M16.2 4.8c2 2 2.26 5.11.8 7.47",key:"ojru2q"}],["path",{d:"M19.1 1.9a9.96 9.96 0 0 1 0 14.1",key:"rhi7fg"}],["path",{d:"M9.5 18h5",key:"mfy3pd"}],["path",{d:"m8 22 4-11 4 11",key:"25yftu"}]],hG=Ce("RadioTower",fG);/**
372 * @license lucide-react v0.475.0 - ISC
373 *
374 * This source code is licensed under the ISC license.
375 * See the LICENSE file in the root directory of this source tree.
376 */const pG=[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 17.5v-11",key:"1jc1ny"}]],mG=Ce("Receipt",pG);/**
377 * @license lucide-react v0.475.0 - ISC
378 *
379 * This source code is licensed under the ISC license.
380 * See the LICENSE file in the root directory of this source tree.
381 */const gG=[["path",{d:"M7 19H4.815a1.83 1.83 0 0 1-1.57-.881 1.785 1.785 0 0 1-.004-1.784L7.196 9.5",key:"x6z5xu"}],["path",{d:"M11 19h8.203a1.83 1.83 0 0 0 1.556-.89 1.784 1.784 0 0 0 0-1.775l-1.226-2.12",key:"1x4zh5"}],["path",{d:"m14 16-3 3 3 3",key:"f6jyew"}],["path",{d:"M8.293 13.596 7.196 9.5 3.1 10.598",key:"wf1obh"}],["path",{d:"m9.344 5.811 1.093-1.892A1.83 1.83 0 0 1 11.985 3a1.784 1.784 0 0 1 1.546.888l3.943 6.843",key:"9tzpgr"}],["path",{d:"m13.378 9.633 4.096 1.098 1.097-4.096",key:"1oe83g"}]],yG=Ce("Recycle",gG);/**
382 * @license lucide-react v0.475.0 - ISC
383 *
384 * This source code is licensed under the ISC license.
385 * See the LICENSE file in the root directory of this source tree.
386 */const vG=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],xG=Ce("RefreshCw",vG);/**
387 * @license lucide-react v0.475.0 - ISC
388 *
389 * This source code is licensed under the ISC license.
390 * See the LICENSE file in the root directory of this source tree.
391 */const bG=[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]],wG=Ce("Repeat",bG);/**
392 * @license lucide-react v0.475.0 - ISC
393 *
394 * This source code is licensed under the ISC license.
395 * See the LICENSE file in the root directory of this source tree.
396 */const _G=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],SG=Ce("RotateCw",_G);/**
397 * @license lucide-react v0.475.0 - ISC
398 *
399 * This source code is licensed under the ISC license.
400 * See the LICENSE file in the root directory of this source tree.
401 */const jG=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],NG=Ce("Search",jG);/**
402 * @license lucide-react v0.475.0 - ISC
403 *
404 * This source code is licensed under the ISC license.
405 * See the LICENSE file in the root directory of this source tree.
406 */const kG=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],OG=Ce("Shield",kG);/**
407 * @license lucide-react v0.475.0 - ISC
408 *
409 * This source code is licensed under the ISC license.
410 * See the LICENSE file in the root directory of this source tree.
411 */const EG=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],PG=Ce("Smartphone",EG);/**
412 * @license lucide-react v0.475.0 - ISC
413 *
414 * This source code is licensed under the ISC license.
415 * See the LICENSE file in the root directory of this source tree.
416 */const AG=[["path",{d:"m10 20-1.25-2.5L6 18",key:"18frcb"}],["path",{d:"M10 4 8.75 6.5 6 6",key:"7mghy3"}],["path",{d:"m14 20 1.25-2.5L18 18",key:"1chtki"}],["path",{d:"m14 4 1.25 2.5L18 6",key:"1b4wsy"}],["path",{d:"m17 21-3-6h-4",key:"15hhxa"}],["path",{d:"m17 3-3 6 1.5 3",key:"11697g"}],["path",{d:"M2 12h6.5L10 9",key:"kv9z4n"}],["path",{d:"m20 10-1.5 2 1.5 2",key:"1swlpi"}],["path",{d:"M22 12h-6.5L14 15",key:"1mxi28"}],["path",{d:"m4 10 1.5 2L4 14",key:"k9enpj"}],["path",{d:"m7 21 3-6-1.5-3",key:"j8hb9u"}],["path",{d:"m7 3 3 6h4",key:"1otusx"}]],TG=Ce("Snowflake",AG);/**
417 * @license lucide-react v0.475.0 - ISC
418 *
419 * This source code is licensed under the ISC license.
420 * See the LICENSE file in the root directory of this source tree.
421 */const CG=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],$f=Ce("Sparkles",CG);/**
422 * @license lucide-react v0.475.0 - ISC
423 *
424 * This source code is licensed under the ISC license.
425 * See the LICENSE file in the root directory of this source tree.
426 */const RG=[["path",{d:"M11 2v2",key:"1539x4"}],["path",{d:"M5 2v2",key:"1yf1q8"}],["path",{d:"M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1",key:"rb5t3r"}],["path",{d:"M8 15a6 6 0 0 0 12 0v-3",key:"x18d4x"}],["circle",{cx:"20",cy:"10",r:"2",key:"ts1r5v"}]],MG=Ce("Stethoscope",RG);/**
427 * @license lucide-react v0.475.0 - ISC
428 *
429 * This source code is licensed under the ISC license.
430 * See the LICENSE file in the root directory of this source tree.
431 */const IG=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["line",{x1:"12",x2:"12.01",y1:"18",y2:"18",key:"1dp563"}]],DG=Ce("Tablet",IG);/**
432 * @license lucide-react v0.475.0 - ISC
433 *
434 * This source code is licensed under the ISC license.
435 * See the LICENSE file in the root directory of this source tree.
436 */const LG=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],BG=Ce("Tag",LG);/**
437 * @license lucide-react v0.475.0 - ISC
438 *
439 * This source code is licensed under the ISC license.
440 * See the LICENSE file in the root directory of this source tree.
441 */const $G=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}
vendor: 4,257 bytes, lines 441-471
441],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],DL=Ce("Trash2",$G);/**
442 * @license lucide-react v0.475.0 - ISC
443 *
444 * This source code is licensed under the ISC license.
445 * See the LICENSE file in the root directory of this source tree.
446 */const FG=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],qG=Ce("TriangleAlert",FG);/**
447 * @license lucide-react v0.475.0 - ISC
448 *
449 * This source code is licensed under the ISC license.
450 * See the LICENSE file in the root directory of this source tree.
451 */const zG=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]],UG=Ce("UserCheck",zG);/**
452 * @license lucide-react v0.475.0 - ISC
453 *
454 * This source code is licensed under the ISC license.
455 * See the LICENSE file in the root directory of this source tree.
456 */const HG=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],LL=Ce("UserPlus",HG);/**
457 * @license lucide-react v0.475.0 - ISC
458 *
459 * This source code is licensed under the ISC license.
460 * See the LICENSE file in the root directory of this source tree.
461 */const VG=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],BL=Ce("Users",VG);/**
462 * @license lucide-react v0.475.0 - ISC
463 *
464 * This source code is licensed under the ISC license.
465 * See the LICENSE file in the root directory of this source tree.
466 */const WG=[["path",{d:"M12.8 19.6A2 2 0 1 0 14 16H2",key:"148xed"}],["path",{d:"M17.5 8a2.5 2.5 0 1 1 2 4H2",key:"1u4tom"}],["path",{d:"M9.8 4.4A2 2 0 1 1 11 8H2",key:"75valh"}]],GG=Ce("Wind",WG);/**
467 * @license lucide-react v0.475.0 - ISC
468 *
469 * This source code is licensed under the ISC license.
470 * See the LICENSE file in the root directory of this source tree.
471 */const KG=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],zi=Ce("X",KG),YG=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},XG=(e,t)=>({classGroupId:e,validator:t}),$L=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),wg="-",_A=[],QG="arbitrary..",ZG=e=>{const t=eK(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return JG(a);const l=a.split(wg),c=l[0]===""&&l.length>1?1:0;return FL(l,c,t)},getConflictingClassGroupIds:(a,l)=>{if(l){const c=r[a],d=n[a];return c?d?YG(d,c):c:d||_A}return n[a]||_A}}},FL=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],o=n.nextPart.get(i);if(o){const d=FL(e,t+1,o);if(d)return d}const a=n.validators;if(a===null)return;const l=t===0?e.join(wg):e.slice(t).join(wg),c=a.length;for(let d=0;d<c;d++){const p=a[d];if(p.validator(l))return p.classGroupId}},JG=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?QG+r:void 0})(),eK=e=>{const{theme:t,classGroups:n}=e;return tK(n,t)},tK=(e,t)=>{const n=$L();for(const r in e){const i=e[r];mN(i,n,r,t)}return n},mN=(e,t,n,r)=>{const i=e.length;for(let o=0;o<i;o++){const a=e[o];nK(a,t,n,r)}},nK=(e,t,n,r)=>{if(typeof e=="string"){rK(e,t,n);return}if(typeof e=="function"){iK(e,t,n,r);return}oK(e,t,n,r)},rK=(e,t,n)=>{const r=e===""?t:qL(t,e);r.classGroupId=n},iK=(e,t,n,r)=>{if(aK(e)){mN(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(XG(n,e))},oK=(e,t,n,r)=>{const i=Object.entries(e),o=i.length;for(let a=0;a<o;a++){const[l,c]=i[a];mN(c,qL(t,l),n,r)}},qL=(e,t)=>{let n=e;const r=t.split(wg),i=r.length;for(let o=0;o<i;o++){const a=r[o];let l=n.nextPart.get(a);l||(l=$L(),n.nextPart.set(a,l)),n=l}return n},aK=e=>
vendor: 5,222 bytes, line 471
471"isThemeGetter"in e&&e.isThemeGetter===!0,sK=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(o,a)=>{n[o]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(o){let a=n[o];if(a!==void 0)return a;if((a=r[o])!==void 0)return i(o,a),a},set(o,a){o in n?n[o]=a:i(o,a)}}},F_="!",SA=":",lK=[],jA=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),cK=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const o=[];let a=0,l=0,c=0,d;const p=i.length;for(let y=0;y<p;y++){const v=i[y];if(a===0&&l===0){if(v===SA){o.push(i.slice(c,y)),c=y+1;continue}if(v==="/"){d=y;continue}}v==="["?a++:v==="]"?a--:v==="("?l++:v===")"&&l--}const f=o.length===0?i:i.slice(c);let m=f,g=!1;f.endsWith(F_)?(m=f.slice(0,-1),g=!0):f.startsWith(F_)&&(m=f.slice(1),g=!0);const b=d&&d>c?d-c:void 0;return jA(o,g,m,b)};if(t){const i=t+SA,o=r;r=a=>a.startsWith(i)?o(a.slice(i.length)):jA(lK,!1,a,void 0,!0)}if(n){const i=r;r=o=>n({className:o,parseClassName:i})}return r},uK=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let o=0;o<n.length;o++){const a=n[o],l=a[0]==="[",c=t.has(a);l||c?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(a)):i.push(a)}return i.length>0&&(i.sort(),r.push(...i)),r}},dK=e=>({cache:sK(e.cacheSize),parseClassName:cK(e),sortModifiers:uK(e),...ZG(e)}),fK=/\s+/,hK=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o}=t,a=[],l=e.trim().split(fK);let c="";for(let d=l.length-1;d>=0;d-=1){const p=l[d],{isExternal:f,modifiers:m,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:y}=n(p);if(f){c=p+(c.length>0?" "+c:c);continue}let v=!!y,x=r(v?b.substring(0,y):b);if(!x){if(!v){c=p+(c.length>0?" "+c:c);continue}if(x=r(b),!x){c=p+(c.length>0?" "+c:c);continue}v=!1}const _=m.length===0?"":m.length===1?m[0]:o(m).join(":"),j=g?_+F_:_,S=j+x;if(a.indexOf(S)>-1)continue;a.push(S);const N=i(x,v);for(let O=0;O<N.length;++O){const E=N[O];a.push(j+E)}c=p+(c.length>0?" "+c:c)}return c},pK=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=zL(n))&&(i&&(i+=" "),i+=r);return i},zL=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=zL(e[r]))&&(n&&(n+=" "),n+=t);return n},mK=(e,...t)=>{let n,r,i,o;const a=c=>{const d=t.reduce((p,f)=>f(p),e());return n=dK(d),r=n.cache.get,i=n.cache.set,o=l,l(c)},l=c=>{const d=r(c);if(d)return d;const p=hK(c,n);return i(c,p),p};return o=a,(...c)=>o(pK(...c))},gK=[],_n=e=>{const t=n=>n[e]||gK;return t.isThemeGetter=!0,t},UL=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,HL=/^\((?:(\w[\w-]*):)?(.+)\)$/i,yK=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,vK=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,xK=/\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$/,bK=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,wK=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_K=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ca=e=>yK.test(e),ct=e=>!!e&&!Number.isNaN(Number(e)),Ra=e=>!!e&&Number.isInteger(Number(e)),qb=e=>e.endsWith("%")&&ct(e.slice(0,-1)),Mo=e=>vK.test(e),VL=()=>!0,SK=e=>xK.test(e)&&!bK.test(e),gN=()=>!1,jK=e=>wK.test(e),NK=e=>_K.test(e),kK=e=>!We(e)&&!Ge(e),OK=e=>ds(e,KL,gN),We=e=>UL.test(e),zs=e=>ds(e,YL,SK),NA=e=>ds(e,IK,ct),EK=e=>ds(e,QL,VL),PK=e=>ds(e,XL,gN),kA=e=>ds(e,WL,gN),AK=e=>ds(e,GL,NK),Nm=e=>ds(e,ZL,jK),Ge=e=>HL.test(e),Vd=e=>Il(e,YL),TK=e=>Il(e,XL),OA=e=>Il(e,WL),CK=e=>Il(e,KL),RK=e=>Il(e,GL),km=e=>Il(e,ZL,!0),MK=e=>Il(e,QL,!0),ds=(e,t,n)=>{const r=UL.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Il=(e,t,n=!1)=>{const r=HL.exec(e);return r?r[1]?t(r[1]):n:!1},WL=e=>e==="position"||e==="percentage",GL=e=>e==="image"||e==="url",KL=e=>e==="length"||e==="size"||e==="bg-size",YL=e=>e==="length",IK=e=>e==="number",XL=e=>e==="family-name",QL=e=>e==="number"||e==="weight",ZL=e=>e==="shadow",DK=()=>{const e=_n("color"),t=_n("font"),n=_n("text"),r=_n("font-weight"),i=_n("tracking"),o=_n("leading"),a=_n("breakpoint"),l=_n("container"),c=_n("spacing"),d=_n("radius"),p=_n("shadow"),f=_n("inset-shadow"),m=_n("text-shadow"),g=_n("drop-shadow"),b=_n("blur"),y=_n("perspective"),v=_n("aspect"),x=_n("ease"),_=_n("animate"),j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],N=()=>[...S(),Ge,We],O=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],A=()=>[Ge,We,c],I=()=>[Ca,"full","auto",...A()],M=()=>[Ra,"none","subgrid",Ge,We],C=()=>["auto",{span:["full",Ra,Ge,We]},Ra,Ge,We],R=()=>[Ra,"auto",Ge,We],B=()=>["auto","min","max","fr",Ge,We],$=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],z=()=>["start","end","center","stretch","center-safe","end-safe"],H=()=>["auto",...A()],V=()=>[Ca,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...A()],Y=()=>[Ca,"screen","full","dvw","lvw","svw","min","max","fit",...A()],W=()=>
vendor: 7,402 bytes, line 471
471[Ca,"screen","full","lh","dvh","lvh","svh","min","max","fit",...A()],q=()=>[e,Ge,We],D=()=>[...S(),OA,kA,{position:[Ge,We]}],F=()=>["no-repeat",{repeat:["","x","y","space","round"]}],K=()=>["auto","cover","contain",CK,OK,{size:[Ge,We]}],ee=()=>[qb,Vd,zs],J=()=>["","none","full",d,Ge,We],G=()=>["",ct,Vd,zs],X=()=>["solid","dashed","dotted","double"],ne=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Z=()=>[ct,qb,OA,kA],se=()=>["","none",b,Ge,We],fe=()=>["none",ct,Ge,We],le=()=>["none",ct,Ge,We],we=()=>[ct,Ge,We],ge=()=>[Ca,"full",...A()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Mo],breakpoint:[Mo],color:[VL],container:[Mo],"drop-shadow":[Mo],ease:["in","out","in-out"],font:[kK],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Mo],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Mo],shadow:[Mo],spacing:["px",ct],text:[Mo],"text-shadow":[Mo],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ca,We,Ge,v]}],container:["container"],columns:[{columns:[ct,We,Ge,l]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"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:N()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{"inset-s":I(),start:I()}],end:[{"inset-e":I(),end:I()}],"inset-bs":[{"inset-bs":I()}],"inset-be":[{"inset-be":I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[Ra,"auto",Ge,We]}],basis:[{basis:[Ca,"full","auto",l,...A()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ct,Ca,"auto","initial","none",We]}],grow:[{grow:["",ct,Ge,We]}],shrink:[{shrink:["",ct,Ge,We]}],order:[{order:[Ra,"first","last","none",Ge,We]}],"grid-cols":[{"grid-cols":M()}],"col-start-end":[{col:C()}],"col-start":[{"col-start":R()}],"col-end":[{"col-end":R()}],"grid-rows":[{"grid-rows":M()}],"row-start-end":[{row:C()}],"row-start":[{"row-start":R()}],"row-end":[{"row-end":R()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":B()}],"auto-rows":[{"auto-rows":B()}],gap:[{gap:A()}],"gap-x":[{"gap-x":A()}],"gap-y":[{"gap-y":A()}],"justify-content":[{justify:[...$(),"normal"]}],"justify-items":[{"justify-items":[...z(),"normal"]}],"justify-self":[{"justify-self":["auto",...z()]}],"align-content":[{content:["normal",...$()]}],"align-items":[{items:[...z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...z(),{baseline:["","last"]}]}],"place-content":[{"place-content":$()}],"place-items":[{"place-items":[...z(),"baseline"]}],"place-self":[{"place-self":["auto",...z()]}],p:[{p:A()}],px:[{px:A()}],py:[{py:A()}],ps:[{ps:A()}],pe:[{pe:A()}],pbs:[{pbs:A()}],pbe:[{pbe:A()}],pt:[{pt:A()}],pr:[{pr:A()}],pb:[{pb:A()}],pl:[{pl:A()}],m:[{m:H()}],mx:[{mx:H()}],my:[{my:H()}],ms:[{ms:H()}],me:[{me:H()}],mbs:[{mbs:H()}],mbe:[{mbe:H()}],mt:[{mt:H()}],mr:[{mr:H()}],mb:[{mb:H()}],ml:[{ml:H()}],"space-x":[{"space-x":A()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":A()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],"inline-size":[{inline:["auto",...Y()]}],"min-inline-size":[{"min-inline":["auto",...Y()]}],"max-inline-size":[{"max-inline":["none",...Y()]}],"block-size":[{block:["auto",...W()]}],"min-block-size":[{"min-block":["auto",...W()]}],"max-block-size":[{"max-block":["none",...W()]}],w:[{w:[l,"screen",...V()]}],"min-w":[{"min-w":[l,"screen","none",...V()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[a]},...V()]}],h:[{h:["screen","lh",...V()]}],"min-h":[{"min-h":["screen","lh","none",...V()]}],"max-h":[{"max-h":["screen","lh",...V()]}],"font-size":[{text:["base",n,Vd,zs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,MK,EK]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",qb,We]}],"font-family":[{font:[TK,PK,t]}],"font-features":[{"font-features":[We]}],"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:[i,Ge,We]}],"line-clamp":[{"line-clamp":[ct,"none",Ge,NA]}],leading:[{leading:[o,...A()]}],"list-image":[{"list-image":["none",Ge,We]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ge,We]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:q()}],"text-color":[{text:q()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:[ct,"from-font","auto",Ge,zs]}],"text-decoration-color":[{decoration:q()}],"underline-offset":[{"underline-offset":[ct,"auto",Ge,We]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ge,We]}],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",Ge,We]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:D()}],"bg-repeat":[{bg:F()}],"bg-size":[{bg:K()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ra,Ge,We],radial:["",Ge,We],conic:[Ra,Ge,We]},RK,AK]}],"bg-color":[{bg:q()}],"gradient-from-pos":[{from:ee()}
vendor: 9,347 bytes, line 471
471],"gradient-via-pos":[{via:ee()}],"gradient-to-pos":[{to:ee()}],"gradient-from":[{from:q()}],"gradient-via":[{via:q()}],"gradient-to":[{to:q()}],rounded:[{rounded:J()}],"rounded-s":[{"rounded-s":J()}],"rounded-e":[{"rounded-e":J()}],"rounded-t":[{"rounded-t":J()}],"rounded-r":[{"rounded-r":J()}],"rounded-b":[{"rounded-b":J()}],"rounded-l":[{"rounded-l":J()}],"rounded-ss":[{"rounded-ss":J()}],"rounded-se":[{"rounded-se":J()}],"rounded-ee":[{"rounded-ee":J()}],"rounded-es":[{"rounded-es":J()}],"rounded-tl":[{"rounded-tl":J()}],"rounded-tr":[{"rounded-tr":J()}],"rounded-br":[{"rounded-br":J()}],"rounded-bl":[{"rounded-bl":J()}],"border-w":[{border:G()}],"border-w-x":[{"border-x":G()}],"border-w-y":[{"border-y":G()}],"border-w-s":[{"border-s":G()}],"border-w-e":[{"border-e":G()}],"border-w-bs":[{"border-bs":G()}],"border-w-be":[{"border-be":G()}],"border-w-t":[{"border-t":G()}],"border-w-r":[{"border-r":G()}],"border-w-b":[{"border-b":G()}],"border-w-l":[{"border-l":G()}],"divide-x":[{"divide-x":G()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":G()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...X(),"hidden","none"]}],"divide-style":[{divide:[...X(),"hidden","none"]}],"border-color":[{border:q()}],"border-color-x":[{"border-x":q()}],"border-color-y":[{"border-y":q()}],"border-color-s":[{"border-s":q()}],"border-color-e":[{"border-e":q()}],"border-color-bs":[{"border-bs":q()}],"border-color-be":[{"border-be":q()}],"border-color-t":[{"border-t":q()}],"border-color-r":[{"border-r":q()}],"border-color-b":[{"border-b":q()}],"border-color-l":[{"border-l":q()}],"divide-color":[{divide:q()}],"outline-style":[{outline:[...X(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ct,Ge,We]}],"outline-w":[{outline:["",ct,Vd,zs]}],"outline-color":[{outline:q()}],shadow:[{shadow:["","none",p,km,Nm]}],"shadow-color":[{shadow:q()}],"inset-shadow":[{"inset-shadow":["none",f,km,Nm]}],"inset-shadow-color":[{"inset-shadow":q()}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:q()}],"ring-offset-w":[{"ring-offset":[ct,zs]}],"ring-offset-color":[{"ring-offset":q()}],"inset-ring-w":[{"inset-ring":G()}],"inset-ring-color":[{"inset-ring":q()}],"text-shadow":[{"text-shadow":["none",m,km,Nm]}],"text-shadow-color":[{"text-shadow":q()}],opacity:[{opacity:[ct,Ge,We]}],"mix-blend":[{"mix-blend":[...ne(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ne()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ct]}],"mask-image-linear-from-pos":[{"mask-linear-from":Z()}],"mask-image-linear-to-pos":[{"mask-linear-to":Z()}],"mask-image-linear-from-color":[{"mask-linear-from":q()}],"mask-image-linear-to-color":[{"mask-linear-to":q()}],"mask-image-t-from-pos":[{"mask-t-from":Z()}],"mask-image-t-to-pos":[{"mask-t-to":Z()}],"mask-image-t-from-color":[{"mask-t-from":q()}],"mask-image-t-to-color":[{"mask-t-to":q()}],"mask-image-r-from-pos":[{"mask-r-from":Z()}],"mask-image-r-to-pos":[{"mask-r-to":Z()}],"mask-image-r-from-color":[{"mask-r-from":q()}],"mask-image-r-to-color":[{"mask-r-to":q()}],"mask-image-b-from-pos":[{"mask-b-from":Z()}],"mask-image-b-to-pos":[{"mask-b-to":Z()}],"mask-image-b-from-color":[{"mask-b-from":q()}],"mask-image-b-to-color":[{"mask-b-to":q()}],"mask-image-l-from-pos":[{"mask-l-from":Z()}],"mask-image-l-to-pos":[{"mask-l-to":Z()}],"mask-image-l-from-color":[{"mask-l-from":q()}],"mask-image-l-to-color":[{"mask-l-to":q()}],"mask-image-x-from-pos":[{"mask-x-from":Z()}],"mask-image-x-to-pos":[{"mask-x-to":Z()}],"mask-image-x-from-color":[{"mask-x-from":q()}],"mask-image-x-to-color":[{"mask-x-to":q()}],"mask-image-y-from-pos":[{"mask-y-from":Z()}],"mask-image-y-to-pos":[{"mask-y-to":Z()}],"mask-image-y-from-color":[{"mask-y-from":q()}],"mask-image-y-to-color":[{"mask-y-to":q()}],"mask-image-radial":[{"mask-radial":[Ge,We]}],"mask-image-radial-from-pos":[{"mask-radial-from":Z()}],"mask-image-radial-to-pos":[{"mask-radial-to":Z()}],"mask-image-radial-from-color":[{"mask-radial-from":q()}],"mask-image-radial-to-color":[{"mask-radial-to":q()}],"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":S()}],"mask-image-conic-pos":[{"mask-conic":[ct]}],"mask-image-conic-from-pos":[{"mask-conic-from":Z()}],"mask-image-conic-to-pos":[{"mask-conic-to":Z()}],"mask-image-conic-from-color":[{"mask-conic-from":q()}],"mask-image-conic-to-color":[{"mask-conic-to":q()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:D()}],"mask-repeat":[{mask:F()}],"mask-size":[{mask:K()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ge,We]}],filter:[{filter:["","none",Ge,We]}],blur:[{blur:se()}],brightness:[{brightness:[ct,Ge,We]}],contrast:[{contrast:[ct,Ge,We]}],"drop-shadow":[{"drop-shadow":["","none",g,km,Nm]}],"drop-shadow-color":[{"drop-shadow":q()}],grayscale:[{grayscale:["",ct,Ge,We]}],"hue-rotate":[{"hue-rotate":[ct,Ge,We]}],invert:[{invert:["",ct,Ge,We]}],saturate:[{saturate:[ct,Ge,We]}],sepia:[{sepia:["",ct,Ge,We]}],"backdrop-filter":[{"backdrop-filter":["","none",Ge,We]}],"backdrop-blur":[{"backdrop-blur":se()}],"backdrop-brightness":[{"backdrop-brightness":[ct,Ge,We]}],"backdrop-contrast":[{"backdrop-contrast":[ct,Ge,We]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ct,Ge,We]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ct,Ge,We]}],"backdrop-invert":[{"backdrop-invert":["",ct,Ge,We]}],"backdrop-opacity":[{"backdrop-opacity":[ct,Ge,We]}],"backdrop-saturate":[{"backdrop-saturate":[ct,Ge,We]}],"backdrop-sepia":[{"backdrop-sepia":["",ct,Ge,We]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":A()}],"border-spacing-x":[{"border-spacing-x":A()}],"border-spacing-y":[{"border-spacing-y":A()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ge,We]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ct,"initial",Ge,We]}],ease:[{ease:["linear","initial",x,Ge,We]}],delay:[{delay:[ct,Ge,We]}],animate:[{animate:["none",_,Ge,We]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,Ge,We]}],"perspective-origin":[{"perspective-origin":N()}],rotate:[{rotate:fe()}],"rotate-x":[{"rotate-x":fe()}],"rotate-y":[{"rotate-y":fe()}],"rotate-z":[{"rotate-z":fe()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":["scale-3d"],skew:[{skew:we()}],"skew-x":[{"skew-x":we()}],"skew-y":[{"skew-y":we()}],transform:[{transform:[Ge,We,"","none","gpu","cpu"]}],"transform-origin":[{origin:N()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ge()}],"translate-x":[{"translate-x":ge()}],"translate-y":[{"translate-y":ge()}],"translate-z":[{"translate-z":ge()}],"translate-none":["translate-none"],accent:[{accent:q()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:q()}],"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",Ge,We]}],"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":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mbs":[{"scroll-mbs":A()}],"scroll-mbe":[{"scroll-mbe":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pbs":[{"scroll-pbs":A()}],"scroll-pbe":[{"scroll-pbe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"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",Ge,We]}],fill:[{fill:["none",...q()]}],"stroke-w":[{stroke:[ct,Vd,zs,NA]}],stroke:[{stroke:["none",...q()]}
471],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]}},LK=mK(DK);function St(...e){return LK(xt(e))}const JL=P.forwardRef(({...e},t)=>s.jsx("div",{ref:t,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...e}));JL.displayName="ToastProvider";const e8=P.forwardRef(({...e},t)=>s.jsx("div",{ref:t,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...e}));e8.displayName="ToastViewport";const BK=hN("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),t8=P.forwardRef(({className:e,variant:t,...n},r)=>s.jsx("div",{ref:r,className:St(BK({variant:t}),e),...n}));t8.displayName="Toast";const $K=P.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:St("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));$K.displayName="ToastAction";const n8=P.forwardRef(({className:e,...t},n)=>s.jsx("button",{ref:n,className:St("absolute right-2 top-2 rounded-md p-1 text-foreground
vendor: 4,562 bytes, line 471
471/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:s.jsx(zi,{className:"h-4 w-4"})}));n8.displayName="ToastClose";const r8=P.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:St("text-sm font-semibold",e),...t}));r8.displayName="ToastTitle";const i8=P.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:St("text-sm opacity-90",e),...t}));i8.displayName="ToastDescription";function FK(){const{toasts:e}=xV();return s.jsxs(JL,{children:[e.map(function({id:t,title:n,description:r,action:i,...o}){return s.jsxs(t8,{...o,children:[s.jsxs("div",{className:"grid gap-1",children:[n&&s.jsx(r8,{children:n}),r&&s.jsx(i8,{children:r})]}),i,s.jsx(n8,{})]},t)}),s.jsx(e8,{})]})}var Gh=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},qK={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Ua,dN,fL,zK=(fL=class{constructor(){et(this,Ua,qK);et(this,dN,!1)}setTimeoutProvider(e){Fe(this,Ua,e)}setTimeout(e,t){return ae(this,Ua).setTimeout(e,t)}clearTimeout(e){ae(this,Ua).clearTimeout(e)}setInterval(e,t){return ae(this,Ua).setInterval(e,t)}clearInterval(e){ae(this,Ua).clearInterval(e)}},Ua=new WeakMap,dN=new WeakMap,fL),el=new zK;function UK(e){setTimeout(e,0)}var wl=typeof window>"u"||"Deno"in globalThis;function Er(){}function HK(e,t){return typeof e=="function"?e(t):e}function q_(e){return typeof e=="number"&&e>=0&&e!==1/0}function o8(e,t){return Math.max(e+(t||0)-Date.now(),0)}function es(e,t){return typeof e=="function"?e(t):e}function ci(e,t){return typeof e=="function"?e(t):e}function EA(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:l}=e;if(a){if(r){if(t.queryHash!==yN(a,t.options))return!1}else if(!qf(t.queryKey,a))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||i&&i!==t.state.fetchStatus||o&&!o(t))}function PA(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Ff(t.options.mutationKey)!==Ff(o))return!1}else if(!qf(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function yN(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ff)(e)}function Ff(e){return JSON.stringify(e,(t,n)=>U_(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function qf(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>qf(e[n],t[n])):!1}var VK=Object.prototype.hasOwnProperty;function a8(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=AA(e)&&AA(t);if(!r&&!(U_(e)&&U_(t)))return t;const o=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),l=a.length,c=r?new Array(l):{};let d=0;for(let p=0;p<l;p++){const f=r?p:a[p],m=e[f],g=t[f];if(m===g){c[f]=m,(r?p<o:VK.call(e,f))&&d++;continue}if(m===null||g===null||typeof m!="object"||typeof g!="object"){c[f]=g;continue}const b=a8(m,g,n+1);c[f]=b,b===m&&d++}return o===l&&d===o?e:c}function z_(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function AA(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function U_(e){if(!TA(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!TA(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function TA(e){return Object.prototype.toString.call(e)==="[object Object]"}function WK(e){return new Promise(t=>{el.setTimeout(t,e)})}function H_(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?a8(e,t):t}function GK(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function KK(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var vN=Symbol();function s8(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===vN?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function l8(e,t){return typeof e=="function"?e(...t):!!e}
471function YK(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??(i=t()),r||(r=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),e}var sl,Ha,Kc,hL,XK=(hL=class extends Gh{constructor(){super();et(this,sl);et(this,Ha);et(this,Kc);Fe(this,Kc,t=>{if(!wl&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){ae(this,Ha)||this.setEventListener(ae(this,Kc))}onUnsubscribe(){var t;this.hasListeners()||((t=ae(this,Ha))==null||t.call(this),Fe(this,Ha,void 0))}setEventListener(t){var n;Fe(this,Kc,t),(n=ae(this,Ha))==null||n.call(this),Fe(this,Ha,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){ae(this,sl)!==t&&(Fe(this,sl,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof ae(this,sl)=="boolean"?ae(this,sl):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},sl=new WeakMap,Ha=new WeakMap,Kc=new WeakMap,hL),xN=new XK;function V_(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var QK=UK;function ZK(){let e=[],t=0,n=l=>{l()},r=l=>{l()},i=QK;const o=l=>{t?e.push(l):i(()=>{n(l)})},a=()=>{const l=e;e=[],l.length&&i(()=>{r(()=>{l.forEach(c=>{n(c)})})})};return{batch:l=>{let c;t++;try{c=l()}finally{t--,t||a()}return c},batchCalls:l=>(...c)=>{o(()=>{l(...c)})},schedule:o,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{i=l}}}var Hn=ZK(),Yc,Va,Xc,pL,JK=(pL=class extends Gh{constructor(){super();et(this,Yc,!0);et(this,Va);et(this,Xc);Fe(this,Xc,t=>{if(!wl&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){ae(this,Va)||this.setEventListener(ae(this,Xc))}onUnsubscribe(){var t;this.hasListeners()||((t=ae(this,Va))==null||t.call(this),Fe(this,Va,void 0))}setEventListener(t){var n;Fe(this,Xc,t),(n=ae(this,Va))==null||n.call(this),Fe(this,Va,t(this.setOnline.bind(this)))}setOnline(t){ae(this,Yc)!==t&&(Fe(this,Yc,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return ae(this,Yc)}},Yc=new WeakMap,Va=new WeakMap,Xc=new WeakMap,pL),_g=new JK;function eY(e){return Math.min(1e3*2**e,3e4)}function c8(e){return(e??"online")==="online"?_g.isOnline():!0}var W_=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function u8(e){let t=!1,n=0,r;const i=V_(),o=()=>i.status!=="pending",a=y=>{var v;if(!o()){const x=new W_(y);m(x),(v=e.onCancel)==null||v.call(e,x)}},l=()=>{t=!0},c=()=>{t=!1},d=()=>xN.isFocused()&&(e.networkMode==="always"||_g.isOnline())&&e.canRun(),p=()=>c8(e.networkMode)&&e.canRun(),f=y=>{o()||(r==null||r(),i.resolve(y))},m=y=>{o()||(r==null||r(),i.reject(y))},g=()=>new Promise(y=>{var v;r=x=>{(o()||d())&&y(x)},(v=e.onPause)==null||v.call(e)}).then(()=>{var y;r=void 0,o()||(y=e.onContinue)==null||y.call(e)}),b=()=>{if(o())return;let y;const v=n===0?e.initialPromise:void 0;try{y=v??e.fn()}catch(x){y=Promise.reject(x)}Promise.resolve(y).then(f).catch(x=>{var O;if(o())return;const _=e.retry??(wl?0:3),j=e.retryDelay??eY,S=typeof j=="function"?j(n,x):j,N=_===!0||typeof _=="number"&&n<_||typeof _=="function"&&_(n,x);if(t||!N){m(x);return}n++,(O=e.onFail)==null||O.call(e,n,x),WK(S).then(()=>d()?void 0:g()).then(()=>{t?m(x):b()})})};return{promise:i,status:()=>i.status,cancel:a,continue:()=>(r==null||r(),i),cancelRetry:l,continueRetry:c,canStart:p,start:()=>(p()?b():g().then(b),i)}}var ll,mL,d8=(mL=class{constructor(){et(this,ll)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),q_(this.gcTime)&&Fe(this,ll,el.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(wl?1/0:300*1e3))}clearGcTimeout(){ae(this,ll)&&(el.clearTimeout(ae(this,ll)),Fe(this,ll,void 0))}},ll=new WeakMap,mL),cl,Qc,li,ul,Rn,$h,dl,Ti,Lo,gL,tY=(gL=class extends d8{constructor(t){super();et(this,Ti);et(this,cl);et(this,Qc);et(this,li);et(this,ul);et(this,Rn);et(this,$h);et(this,dl);Fe(this,dl,!1),Fe(this,$h,t.defaultOptions),this.setOptions(t.options),this.observers=[],Fe(this,ul,t.client),Fe(this,li,ae(this,ul).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Fe(this,cl,RA(this.options)),this.state=t.state??ae(this,cl),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=ae(this,Rn))==null?void 0:t.promise}setOptions(t){if(this.options={...ae(this,$h),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=RA(this.options);n.data!==void 0&&(this.setState(CA(n.data,n.dataUpdatedAt)),Fe(this,cl,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&ae(this,li).remove(this)}setData(t,n){const r=H_(this.state.data,t,this.options);return mt(this,Ti,Lo).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){mt(this,Ti,Lo).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=ae(this,Rn))==null?void 0:r.promise;return(i=ae(this,Rn))==null||i.cancel(t),n?n.then(Er).catch(Er):Prom
471ise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(ae(this,cl))}isActive(){return this.observers.some(t=>ci(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===vN||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>es(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!o8(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=ae(this,Rn))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=ae(this,Rn))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),ae(this,li).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(ae(this,Rn)&&(ae(this,dl)?ae(this,Rn).cancel({revert:!0}):ae(this,Rn).cancelRetry()),this.scheduleGc()),ae(this,li).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||mt(this,Ti,Lo).call(this,{type:"invalidate"})}async fetch(t,n){var c,d,p,f,m,g,b,y,v,x,_,j;if(this.state.fetchStatus!=="idle"&&((c=ae(this,Rn))==null?void 0:c.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(ae(this,Rn))return ae(this,Rn).continueRetry(),ae(this,Rn).promise}if(t&&this.setOptions(t),!this.options.queryFn){const S=this.observers.find(N=>N.options.queryFn);S&&this.setOptions(S.options)}const r=new AbortController,i=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(Fe(this,dl,!0),r.signal)})},o=()=>{const S=s8(this.options,n),O=(()=>{const E={client:ae(this,ul),queryKey:this.queryKey,meta:this.meta};return i(E),E})();return Fe(this,dl,!1),this.options.persister?this.options.persister(S,O,this):S(O)},l=(()=>{const S={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:ae(this,ul),state:this.state,fetchFn:o};return i(S),S})();(d=this.options.behavior)==null||d.onFetch(l,this),Fe(this,Qc,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=l.fetchOptions)==null?void 0:p.meta))&&mt(this,Ti,Lo).call(this,{type:"fetch",meta:(f=l.fetchOptions)==null?void 0:f.meta}),Fe(this,Rn,u8({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,onCancel:S=>{S instanceof W_&&S.revert&&this.setState({...ae(this,Qc),fetchStatus:"idle"}),r.abort()},onFail:(S,N)=>{mt(this,Ti,Lo).call(this,{type:"failed",failureCount:S,error:N})},onPause:()=>{mt(this,Ti,Lo).call(this,{type:"pause"})},onContinue:()=>{mt(this,Ti,Lo).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}));try{const S=await ae(this,Rn).start();if(S===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(S),(g=(m=ae(this,li).config).onSuccess)==null||g.call(m,S,this),(y=(b=ae(this,li).config).onSettled)==null||y.call(b,S,this.state.error,this),S}catch(S){if(S instanceof W_){if(S.silent)return ae(this,Rn).promise;if(S.revert){if(this.state.data===void 0)throw S;return this.state.data}}throw mt(this,Ti,Lo).call(this,{type:"error",error:S}),(x=(v=ae(this,li).config).onError)==null||x.call(v,S,this),(j=(_=ae(this,li).config).onSettled)==null||j.call(_,this.state.data,S,this),S}finally{this.scheduleGc()}}},cl=new WeakMap,Qc=new WeakMap,li=new WeakMap,ul=new WeakMap,Rn=new WeakMap,$h=new WeakMap,dl=new WeakMap,Ti=new WeakSet,Lo=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...f8(r.data,this.options),fetchMeta:t.meta??null};case"success":const i={...r,...CA(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Fe(this,Qc,t.manual?i:void 0),i;case"error":const o=t.error;
vendor: 9,996 bytes, line 471
471return{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Hn.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),ae(this,li).notify({query:this,type:"updated",action:t})})},gL);function f8(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:c8(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function CA(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function RA(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Or,gt,Fh,pr,fl,Zc,Bo,Wa,qh,Jc,eu,hl,pl,Ga,tu,Pt,pf,G_,K_,Y_,X_,Q_,Z_,J_,h8,yL,nY=(yL=class extends Gh{constructor(t,n){super();et(this,Pt);et(this,Or);et(this,gt);et(this,Fh);et(this,pr);et(this,fl);et(this,Zc);et(this,Bo);et(this,Wa);et(this,qh);et(this,Jc);et(this,eu);et(this,hl);et(this,pl);et(this,Ga);et(this,tu,new Set);this.options=n,Fe(this,Or,t),Fe(this,Wa,null),Fe(this,Bo,V_()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(ae(this,gt).addObserver(this),MA(ae(this,gt),this.options)?mt(this,Pt,pf).call(this):this.updateResult(),mt(this,Pt,X_).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return eS(ae(this,gt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return eS(ae(this,gt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,mt(this,Pt,Q_).call(this),mt(this,Pt,Z_).call(this),ae(this,gt).removeObserver(this)}setOptions(t){const n=this.options,r=ae(this,gt);if(this.options=ae(this,Or).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ci(this.options.enabled,ae(this,gt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");mt(this,Pt,J_).call(this),ae(this,gt).setOptions(this.options),n._defaulted&&!z_(this.options,n)&&ae(this,Or).getQueryCache().notify({type:"observerOptionsUpdated",query:ae(this,gt),observer:this});const i=this.hasListeners();i&&IA(ae(this,gt),r,this.options,n)&&mt(this,Pt,pf).call(this),this.updateResult(),i&&(ae(this,gt)!==r||ci(this.options.enabled,ae(this,gt))!==ci(n.enabled,ae(this,gt))||es(this.options.staleTime,ae(this,gt))!==es(n.staleTime,ae(this,gt)))&&mt(this,Pt,G_).call(this);const o=mt(this,Pt,K_).call(this);i&&(ae(this,gt)!==r||ci(this.options.enabled,ae(this,gt))!==ci(n.enabled,ae(this,gt))||o!==ae(this,Ga))&&mt(this,Pt,Y_).call(this,o)}getOptimisticResult(t){const n=ae(this,Or).getQueryCache().build(ae(this,Or),t),r=this.createResult(n,t);return iY(this,r)&&(Fe(this,pr,r),Fe(this,Zc,this.options),Fe(this,fl,ae(this,gt).state)),r}getCurrentResult(){return ae(this,pr)}trackResult(t,n){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),n==null||n(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&ae(this,Bo).status==="pending"&&ae(this,Bo).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,i))})}trackProp(t){ae(this,tu).add(t)}getCurrentQuery(){return ae(this,gt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=ae(this,Or).defaultQueryOptions(t),r=ae(this,Or).getQueryCache().build(ae(this,Or),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return mt(this,Pt,pf).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),ae(this,pr)))}createResult(t,n){var I;const r=ae(this,gt),i=this.options,o=ae(this,pr),a=ae(this,fl),l=ae(this,Zc),d=t!==r?t.state:ae(this,Fh),{state:p}=t;let f={...p},m=!1,g;if(n._optimisticResults){const M=this.hasListeners(),C=!M&&MA(t,n),R=M&&IA(t,r,n,i);(C||R)&&(f={...f,...f8(p.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:b,errorUpdatedAt:y,status:v}=f;g=f.data;let x=!1;if(n.placeholderData!==void 0&&g===void 0&&v==="pending"){let M;o!=null&&o.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData)?(M=o.data,x=!0):M=typeof n.placeholderData=="function"?n.placeholderData((I=ae(this,eu))==null?void 0:I.state.data,ae(this,eu)):n.placeholderData,M!==void 0&&(v="success",g=H_(o==null?void 0:o.data,M,n),m=!0)}if(n.select&&g!==void 0&&!x)if(o&&g===(a==null?void 0:a.data)&&n.select===ae(this,qh))g=ae(this,Jc);else try{Fe(this,qh,n.select),g=n.select(g),g=H_(o==null?void 0:o.data,g,n),Fe(this,Jc,g),Fe(this,Wa,null)}catch(M){Fe(this,Wa,M)}ae(this,Wa)&&(b=ae(this,Wa),g=ae(this,Jc),y=Date.now(),v="error");const _=f.fetchStatus==="fetching",j=v==="pending",S=v==="error",N=j&&_,O=g!==void 0,A={status:v,fetchStatus:f.fetchStatus,isPending:j,isSuccess:v==="success",isError:S,isInitialLoading:N,isLoading:N,data:g,dataUpdatedAt:f.dataUpdatedAt,error:b,errorUpdatedAt:y,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>d.dataUpdateCount||f.errorUpdateCount>d.errorUpdateCount,isFetching:_,isRefetching:_&&!j,isLoadingError:S&&!O,isPaused:f.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:S&&O,isStale:bN(t,n),refetch:this.refetch,promise:ae(this,Bo),isEnabled:ci(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const M=A.data!==void 0,C=A.status==="error"&&!M,R=z=>{C?z.reject(A.error):M&&z.resolve(A.data)},B=()=>{const z=Fe(this,Bo,A.promise=V_());R(z)},$=ae(this,Bo);switch($.status){case"pending":t.queryHash===r.queryHash&&R($);break;case"fulfilled":(C||A.data!==$.value)&&B();break;case"rejected":(!C||A.error!==$.reason)&&B();break}}return A}updateResult(){const t=ae(this,pr),n=this.createResult(ae(this,gt),this.options);if(Fe(this,fl,ae(this,gt).state),Fe(this,Zc,this.options),ae(this,fl).data!==void 0&&Fe(this,eu,ae(this,gt)),z_(n,t))return;Fe(this,pr,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,o=typeof i=="function"?i():i;if(o==="all"||!o&&!ae(this,tu).size)return!0;const a=new Set(o??ae(this,tu));return this.options.throwOnError&&a.add("error"),Object.keys(ae(this,pr)).some(l=>{const c=l;return ae(this,pr)[c]!==t[c]&&a.has(c)})};mt(this,Pt,h8).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&mt(this,Pt,X_).call(this)}},Or=new WeakMap,gt=new WeakMap,Fh=new WeakMap,pr=new WeakMap,fl=new WeakMap,Zc=new WeakMap,Bo=new WeakMap,Wa=new WeakMap,qh=new WeakMap,Jc=new WeakMap,eu=new WeakMap,hl=new WeakMap,pl=new WeakMap,Ga=new WeakMap,tu=new WeakMap,Pt=new WeakSet,pf=function(t){mt(this,Pt,J_).call(this);let n=ae(this,gt).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Er)),n},G_=function(){mt(this,Pt,Q_).call(this);const t=es(this.options.staleTime,ae(this,gt));if(wl||ae(this,pr).isStale||!q_(t))return;const r=o8(ae(this,pr).dataUpdatedAt,t)+1;Fe(this,hl,el.setTimeout(()=>{ae(this,pr).isStale||this.updateResult()},r))},K_=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(ae(this,gt)):this.options.refetchInterval)??!1},Y_=function(t){mt(this,Pt,Z_).call(this),Fe(this,Ga,t),!(wl||ci(this.options.enabled,ae(this,gt))===!1||!q_(ae(this,Ga))||ae(this,Ga)===0)&&Fe(this,pl,el.setInterval(()=>{(this.options.refetchIntervalInBackground||xN.isFocused())&&mt(this,Pt,pf).call(this)},ae(this,Ga)))},X_=function(){mt(this,Pt,G_).call(this),mt(this,Pt,Y_).call(this,mt(this,Pt,K_).call(this))},Q_=function(){ae(this,hl)&&(el.clearTimeout(ae(this,hl)),Fe(this,hl,void 0))},Z_=function(){ae(this,pl)&&(el.clearInterval(ae(this,pl)),Fe(this,pl,void 0))},J_=function(){const t=ae(this,Or).getQueryCache().build(ae(this,Or),this.options);if(t===ae(this,gt))return;const n=ae(this,gt);Fe(this,gt,t),Fe(this,Fh,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},h8=function(t){Hn.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(ae(this,pr))}),ae(this,Or).getQueryCache().notify({query:ae(this,gt),type:"observerResultsUpdated"})})},yL);function rY(e,t){return ci(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function MA(e,t){return rY(e,t)||e.state.data!==void 0&&eS(e,t,t.refetchOnMount)}function eS(e,t,n){if(ci(t.enabled,e)!==!1&&es(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&bN(e,t)}return!1}function IA(e,t,n,r){return(e!==t||ci(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&bN(e,n)}function bN(e,t){return ci(t.enabled,e)!==!1&&e.isStaleByTime(es(t.staleTime,e))}function iY(e,t){return!z_(e.getCurrentResult(),t)}function DA(e){return{onFetch:(t,n)=>{var p,f,m,g,b;const r=t.options,i=(m=(f=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:f.fetchMore)==null?void 0:m.direction,o=((g=t.state.data)==null?void 0:g.pages)||[],a=((b=t.state.data)==null?void 0:b.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const d=async()=>{let y=!1;const v=j=>{YK(j,()=>t.signal,()=>y=!0)},x=s8(t.options,t.fetchOptions),_=async(j,S,N)=>{if(y)return Promise.reject();if(S==null&&j.pages.length)return Promise.resolve(j);const E=(()=>{const C={client:t.client,queryKey:t.queryKey,pageParam:S,direction:N?"backward":"forward",meta:t.options.meta};return v(C),C})(),A=await x(E),{maxPages:I}=t.options,M=N?KK:GK;return{pages:M(j.pages,A,I),pageParams:M(j.pageParams,S,I)}};
471if(i&&o.length){const j=i==="backward",S=j?oY:LA,N={pages:o,pageParams:a},O=S(r,N);l=await _(N,O,j)}else{const j=e??o.length;do{const S=c===0?a[0]??r.initialPageParam:LA(r,l);if(c>0&&S==null)break;l=await _(l,S),c++}while(c<j)}return l};t.options.persister?t.fetchFn=()=>{var y,v;return(v=(y=t.options).persister)==null?void 0:v.call(y,d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=d}}}function LA(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function oY(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var zh,eo,tr,ml,to,Da,vL,aY=(vL=class extends d8{constructor(t){super();et(this,to);et(this,zh);et(this,eo);et(this,tr);et(this,ml);Fe(this,zh,t.client),this.mutationId=t.mutationId,Fe(this,tr,t.mutationCache),Fe(this,eo,[]),this.state=t.state||sY(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){ae(this,eo).includes(t)||(ae(this,eo).push(t),this.clearGcTimeout(),ae(this,tr).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Fe(this,eo,ae(this,eo).filter(n=>n!==t)),this.scheduleGc(),ae(this,tr).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){ae(this,eo).length||(this.state.status==="pending"?this.scheduleGc():ae(this,tr).remove(this))}continue(){var t;return((t=ae(this,ml))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var a,l,c,d,p,f,m,g,b,y,v,x,_,j,S,N,O,E;const n=()=>{mt(this,to,Da).call(this,{type:"continue"})},r={client:ae(this,zh),meta:this.options.meta,mutationKey:this.options.mutationKey};Fe(this,ml,u8({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(A,I)=>{mt(this,to,Da).call(this,{type:"failed",failureCount:A,error:I})},onPause:()=>{mt(this,to,Da).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>ae(this,tr).canRun(this)}));const i=this.state.status==="pending",o=!ae(this,ml).canStart();try{if(i)n();else{mt(this,to,Da).call(this,{type:"pending",variables:t,isPaused:o}),ae(this,tr).config.onMutate&&await ae(this,tr).config.onMutate(t,this,r);const I=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t,r));I!==this.state.context&&mt(this,to,Da).call(this,{type:"pending",context:I,variables:t,isPaused:o})}const A=await ae(this,ml).start();return await((d=(c=ae(this,tr).config).onSuccess)==null?void 0:d.call(c,A,t,this.state.context,this,r)),await((f=(p=this.options).onSuccess)==null?void 0:f.call(p,A,t,this.state.context,r)),await((g=(m=ae(this,tr).config).onSettled)==null?void 0:g.call(m,A,null,this.state.variables,this.state.context,this,r)),await((y=(b=this.options).onSettled)==null?void 0:y.call(b,A,null,t,this.state.context,r)),mt(this,to,Da).call(this,{type:"success",data:A}),A}catch(A){try{await((x=(v=ae(this,tr).config).onError)==null?void 0:x.call(v,A,t,this.state.context,this,r))}catch(I){Promise.reject(I)}try{await((j=(_=this.options).onError)==null?void 0:j.call(_,A,t,this.state.context,r))}catch(I){Promise.reject(I)}try{await((N=(S=ae(this,tr).config).onSettled)==null?void 0:N.call(S,void 0,A,this.state.variables,this.state.context,this,r))}catch(I){Promise.reject(I)}try{await((E=(O=this.options).onSettled)==null?void 0:E.call(O,void 0,A,t,this.state.context,r))}catch(I){Promise.reject(I)}throw mt(this,to,Da).call(this,{type:"error",error:A}),A}finally{ae(this,tr).runNext(this)}}},zh=new WeakMap,eo=new WeakMap,tr=new WeakMap,ml=new WeakMap,to=new WeakSet,Da=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPau
471sed:!1,status:"error"}}};this.state=n(this.state),Hn.batch(()=>{ae(this,eo).forEach(r=>{r.onMutationUpdate(t)}),ae(this,tr).notify({mutation:this,type:"updated",action:t})})},vL);function sY(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var $o,Ci,Uh,xL,lY=(xL=class extends Gh{constructor(t={}){super();et(this,$o);et(this,Ci);et(this,Uh);this.config=t,Fe(this,$o,new Set),Fe(this,Ci,new Map),Fe(this,Uh,0)}build(t,n,r){const i=new aY({client:t,mutationCache:this,mutationId:++_m(this,Uh)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){ae(this,$o).add(t);const n=Om(t);if(typeof n=="string"){const r=ae(this,Ci).get(n);r?r.push(t):ae(this,Ci).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(ae(this,$o).delete(t)){const n=Om(t);if(typeof n=="string"){const r=ae(this,Ci).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&ae(this,Ci).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Om(t);if(typeof n=="string"){const r=ae(this,Ci).get(n),i=r==null?void 0:r.find(o=>o.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=Om(t);if(typeof n=="string"){const i=(r=ae(this,Ci).get(n))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Hn.batch(()=>{ae(this,$o).forEach(t=>{this.notify({type:"removed",mutation:t})}),ae(this,$o).clear(),ae(this,Ci).clear()})}getAll(){return Array.from(ae(this,$o))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>PA(n,r))}findAll(t={}){return this.getAll().filter(n=>PA(t,n))}notify(t){Hn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Hn.batch(()=>Promise.all(t.map(n=>n.continue().catch(Er))))}},$o=new WeakMap,Ci=new WeakMap,Uh=new WeakMap,xL);function Om(e){var t;return(t=e.options.scope)==null?void 0:t.id}var no,bL,cY=(bL=class extends Gh{constructor(t={}){super();et(this,no);this.config=t,Fe(this,no,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??yN(i,n);let a=this.get(o);return a||(a=new tY({client:t,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}add(t){ae(this,no).has(t.queryHash)||(ae(this,no).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=ae(this,no).get(t.queryHash);n&&(t.destroy(),n===t&&ae(this,no).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Hn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return ae(this,no).get(t)}getAll(){return[...ae(this,no).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>EA(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>EA(t,r)):n}notify(t){Hn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Hn.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Hn.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},no=new WeakMap,bL),nn,Ka,Ya,nu,ru,Xa,iu,ou,wL,uY=(wL=class{constructor(e={}){et(this,nn);et(this,Ka);et(this,Ya);et(this,nu);et(this,ru);et(this,Xa);et(this,iu);et(this,ou);Fe(this,nn,e.queryCache||new cY),Fe(this,Ka,e.mutationCache||new lY),Fe(this,Ya,e.defaultOptions||{}),Fe(this,nu,new Map),Fe(this,ru,new Map),Fe(this,Xa,0)}mount(){_m(this,Xa)._++,ae(this,Xa)===1&&(Fe(this,iu,xN.subscribe(async e=>{e&&(await this.resumePausedMutations(),ae(this,nn).onFocus())})),Fe(this,ou,_g.subscribe(async e=>{e&&(await this.resumePausedMutations(),ae(this,nn).onOnline())})))}unmount(){var e,t;_m(this,Xa)._--,ae(this,Xa)===0&&((e=ae(this,iu))==null||e.call(this),Fe(this,iu,void 0),(t=ae(this,ou))==null||t.call(this),Fe(this,ou,void 0))}isFetching(e){return ae(this,nn).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return ae(this,Ka).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=ae(this,nn).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=ae(this,nn).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(es(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return ae(this,nn).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=ae(this,nn).get(r.queryHash),o=i==null?void 0:i.state.data,a=HK(t,o);if(a!==void 0)return ae(this,nn).build(this,r).setData(a,{...n,manual:!0})}
471setQueriesData(e,t,n){return Hn.batch(()=>ae(this,nn).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=ae(this,nn).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=ae(this,nn);Hn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=ae(this,nn);return Hn.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Hn.batch(()=>ae(this,nn).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Er).catch(Er)}invalidateQueries(e,t={}){return Hn.batch(()=>(ae(this,nn).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Hn.batch(()=>ae(this,nn).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(Er)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Er)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=ae(this,nn).build(this,t);return n.isStaleByTime(es(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Er).catch(Er)}fetchInfiniteQuery(e){return e.behavior=DA(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Er).catch(Er)}ensureInfiniteQueryData(e){return e.behavior=DA(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return _g.isOnline()?ae(this,Ka).resumePausedMutations():Promise.resolve()}getQueryCache(){return ae(this,nn)}getMutationCache(){return ae(this,Ka)}getDefaultOptions(){return ae(this,Ya)}setDefaultOptions(e){Fe(this,Ya,e)}setQueryDefaults(e,t){ae(this,nu).set(Ff(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...ae(this,nu).values()],n={};return t.forEach(r=>{qf(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){ae(this,ru).set(Ff(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...ae(this,ru).values()],n={};return t.forEach(r=>{qf(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...ae(this,Ya).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=yN(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===vN&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...ae(this,Ya).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){ae(this,nn).clear(),ae(this,Ka).clear()}},nn=new WeakMap,Ka=new WeakMap,Ya=new WeakMap,nu=new WeakMap,ru=new WeakMap,Xa=new WeakMap,iu=new WeakMap,ou=new WeakMap,wL),p8=P.createContext(void 0),dY=e=>{const t=P.useContext(p8);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},fY=({client:e,children:t})=>(P.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),s.jsx(p8.Provider,{value:e,children:t})),m8=P.createContext(!1),hY=()=>P.useContext(m8);m8.Provider;function pY(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var mY=P.createContext(pY()),gY=()=>P.useContext(mY),yY=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?l8(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},vY=e=>{P.useEffect(()=>{e.clearReset()},[e])},xY=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||l8(n,[e.error,r])),bY=e=>{if(e.suspense){const n=i=>i==="static"?i:Math.max(i??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...i)=>n(r(...i)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},wY=(e,t)=>e.isLoading&&e.isFetching&&!t,_Y=(e,t)=>
471(e==null?void 0:e.suspense)&&t.isPending,BA=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function SY(e,t,n){var m,g,b,y;const r=hY(),i=gY(),o=dY(),a=o.defaultQueryOptions(e);(g=(m=o.getDefaultOptions().queries)==null?void 0:m._experimental_beforeQuery)==null||g.call(m,a);const l=o.getQueryCache().get(a.queryHash);a._optimisticResults=r?"isRestoring":"optimistic",bY(a),yY(a,i,l),vY(i);const c=!o.getQueryCache().get(a.queryHash),[d]=P.useState(()=>new t(o,a)),p=d.getOptimisticResult(a),f=!r&&e.subscribed!==!1;if(P.useSyncExternalStore(P.useCallback(v=>{const x=f?d.subscribe(Hn.batchCalls(v)):Er;return d.updateResult(),x},[d,f]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),P.useEffect(()=>{d.setOptions(a)},[a,d]),_Y(a,p))throw BA(a,d,i);if(xY({result:p,errorResetBoundary:i,throwOnError:a.throwOnError,query:l,suspense:a.suspense}))throw p.error;if((y=(b=o.getDefaultOptions().queries)==null?void 0:b._experimental_afterQuery)==null||y.call(b,a,p),a.experimental_prefetchInRender&&!wl&&wY(p,r)){const v=c?BA(a,d,i):l==null?void 0:l.promise;v==null||v.catch(Er).finally(()=>{d.updateResult()})}return a.notifyOnChangeProps?p:d.trackResult(p)}function jY(e,t){return SY(e,nY)}const NY=new uY({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});var Kh=fN();const kY=Ct(Kh);/**
472 * @remix-run/router v1.23.2
473 *
474 * Copyright (c) Remix Software Inc.
475 *
476 * This source code is licensed under the MIT license found in the
477 * LICENSE.md file in the root directory of this source tree.
478 *
479 * @license MIT
480 */function zf(){return zf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zf.apply(this,arguments)}var Qa;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Qa||(Qa={}));const $A="popstate";function OY(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:a,hash:l}=r.location;return tS("",{pathname:o,search:a,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Sg(i)}return PY(t,n,null,e)}function un(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function wN(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function EY(){return Math.random().toString(36).substr(2,8)}function FA(e,t){return{usr:e.state,key:e.key,idx:t}}function tS(e,t,n,r){return n===void 0&&(n=null),zf({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Iu(t):t,{state:n,key:t&&t.key||r||EY()})}function Sg(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Iu(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function PY(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,l=Qa.Pop,c=null,d=p();d==null&&(d=0,a.replaceState(zf({},a.state,{idx:d}),""));function p(){return(a.state||{idx:null}).idx}function f(){l=Qa.Pop;let v=p(),x=v==null?null:v-d;d=v,c&&c({action:l,location:y.location,delta:x})}function m(v,x){l=Qa.Push;let _=tS(y.location,v,x);d=p()+1;let j=FA(_,d),S=y.createHref(_);try{a.pushState(j,"",S)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;i.location.assign(S)}o&&c&&c({action:l,location:y.location,delta:1})}function g(v,x){l=Qa.Replace;let _=tS(y.location,v,x);d=p();let j=FA(_,d),S=y.createHref(_);a.replaceState(j,"",S),o&&c&&c({action:l,location:y.location,delta:0})}function b(v){let x=i.location.origin!=="null"?i.location.origin:i.location.href,_=typeof v=="string"?v:Sg(v);return _=_.replace(/ $/,"%20"),un(x,"No window.location.(origin|href) available to create URL for href: "+_),new URL(_,x)}let y={get action(){return l},get location(){return e(i,a)},listen(v){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener($A,f),c=v,()=>{i.removeEventListener($A,f),c=null}},createHref(v){return t(i,v)},createURL:b,encodeLocation(v){let x=b(v);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:m,replace:g,go(v){return a.go(v)}};return y}var qA;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(qA||(qA={}));function AY(e,t,n){return n===void 0&&(n="/"),TY(e,t,n)}function TY(e,t,n,r){let i=typeof t=="string"?Iu(t):t,o=_N(i.pathname||"/",n);if(o==null)return null;let a=g8(e);CY(a);let l=null;for(let c=0;l==null&&c<a.length;++c){let d=HY(o);l=qY(a[c],d)}return l}function g8(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,a,l)=>{let c={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};c.relativePath.startsWith("/")&&(un(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not val
480id. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let d=ts([r,c.relativePath]),p=n.concat(c);o.children&&o.children.length>0&&(un(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),g8(o.children,t,p,d)),!(o.path==null&&!o.index)&&t.push({path:d,score:$Y(d,o.index),routesMeta:p})};return e.forEach((o,a)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,a);else for(let c of y8(o.path))i(o,a,c)}),t}function y8(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=y8(r.join("/")),l=[];return l.push(...a.map(c=>c===""?o:[o,c].join("/"))),i&&l.push(...a),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function CY(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:FY(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const RY=/^:[\w-]+$/,MY=3,IY=2,DY=1,LY=10,BY=-2,zA=e=>e==="*";function $Y(e,t){let n=e.split("/"),r=n.length;return n.some(zA)&&(r+=BY),t&&(r+=IY),n.filter(i=>!zA(i)).reduce((i,o)=>i+(RY.test(o)?MY:o===""?DY:LY),r)}function FY(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function qY(e,t,n){let{routesMeta:r}=e,i={},o="/",a=[];for(let l=0;l<r.length;++l){let c=r[l],d=l===r.length-1,p=o==="/"?t:t.slice(o.length)||"/",f=zY({path:c.relativePath,caseSensitive:c.caseSensitive,end:d},p),m=c.route;if(!f)return null;
vendor: 5,396 bytes, lines 480-489
480Object.assign(i,f.params),a.push({params:i,pathname:ts([o,f.pathname]),pathnameBase:YY(ts([o,f.pathnameBase])),route:m}),f.pathnameBase!=="/"&&(o=ts([o,f.pathnameBase]))}return a}function zY(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=UY(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:r.reduce((d,p,f)=>{let{paramName:m,isOptional:g}=p;if(m==="*"){let y=l[f]||"";a=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const b=l[f];return g&&!b?d[m]=void 0:d[m]=(b||"").replace(/%2F/g,"/"),d},{}),pathname:o,pathnameBase:a,pattern:e}}function UY(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),wN(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function HY(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return wN(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function _N(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const VY=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,WY=e=>VY.test(e);function GY(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Iu(e):e,o;if(n)if(WY(n))o=n;else{if(n.includes("//")){let a=n;n=n.replace(/\/\/+/g,"/"),wN(!1,"Pathnames cannot have embedded double slashes - normalizing "+(a+" -> "+n))}n.startsWith("/")?o=UA(n.substring(1),"/"):o=UA(n,t)}else o=t;return{pathname:o,search:XY(r),hash:QY(i)}}function UA(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function zb(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function KY(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function SN(e,t){let n=KY(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function jN(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Iu(e):(i=zf({},e),un(!i.pathname||!i.pathname.includes("?"),zb("?","pathname","search",i)),un(!i.pathname||!i.pathname.includes("#"),zb("#","pathname","hash",i)),un(!i.search||!i.search.includes("#"),zb("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,l;if(a==null)l=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let m=a.split("/");for(;m[0]==="..";)m.shift(),f-=1;i.pathname=m.join("/")}l=f>=0?t[f]:"/"}let c=GY(i,l),d=a&&a!=="/"&&a.endsWith("/"),p=(o||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(d||p)&&(c.pathname+="/"),c}const ts=e=>e.join("/").replace(/\/\/+/g,"/"),YY=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),XY=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,QY=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function ZY(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const v8=["post","put","patch","delete"];new Set(v8);const JY=["get",...v8];new Set(JY);/**
481 * React Router v6.30.3
482 *
483 * Copyright (c) Remix Software Inc.
484 *
485 * This source code is licensed under the MIT license found in the
486 * LICENSE.md file in the root directory of this source tree.
487 *
488 * @license MIT
489 */function Uf(){return Uf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uf.apply(this,arguments)}const NN=P.createContext(null),eX=P.createContext(null),fs=P.createContext(null),Yh=P.createContext(null),yo=P.createContext({outlet:null,matches:[],isDataRoute:!1}),x8=P.createContext(null);function tX(e,t){let{relative:n}=t===void 0?{}:t;Du()||un(!1);let{basename:r,navigator:i}=P.useContext(fs),{hash:o,pathname:a,search:l}=_8(e,{relative:n}),c=a;return r!=="/"&&(c=a==="/"?r:ts([r,a])),i.createHref({pathname:c,search:l,hash:o})}function Du(){return P.useContext(Yh)!=null}function vr(){return Du()||un(!1),P.useContext(Yh).location}function nX(){return P.useContext(Yh).navigationType}function b8(e){P.useContext(fs).static||P.useLayoutEffect(e)}function kN(){let{isDataRoute:e}=P.useContext(yo);return e?yX():rX()}function rX(){Du()||un(!1);let e=P.useContext(NN),{basename:t,future:n,navigator:r}=P.useContext(fs),{matches:i}=P.useContext(yo),{pathname:o}=vr(),a=JSON.stringify(SN(i,n.v7_relativeSplatPath)),l=P.useRef(!1);return b8(()=>{l.current=!0}
vendor: 4,553 bytes, line 489
489),P.useCallback(function(d,p){if(p===void 0&&(p={}),!l.current)return;if(typeof d=="number"){r.go(d);return}let f=jN(d,JSON.parse(a),o,p.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:ts([t,f.pathname])),(p.replace?r.replace:r.push)(f,p.state,p)},[t,r,a,o,e])}const iX=P.createContext(null);function oX(e){let t=P.useContext(yo).outlet;return t&&P.createElement(iX.Provider,{value:e},t)}function w8(){let{matches:e}=P.useContext(yo),t=e[e.length-1];return t?t.params:{}}function _8(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=P.useContext(fs),{matches:i}=P.useContext(yo),{pathname:o}=vr(),a=JSON.stringify(SN(i,r.v7_relativeSplatPath));return P.useMemo(()=>jN(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function aX(e,t){return sX(e,t)}function sX(e,t,n,r){Du()||un(!1);let{navigator:i}=P.useContext(fs),{matches:o}=P.useContext(yo),a=o[o.length-1],l=a?a.params:{};a&&a.pathname;let c=a?a.pathnameBase:"/";a&&a.route;let d=vr(),p;if(t){var f;let v=typeof t=="string"?Iu(t):t;c==="/"||(f=v.pathname)!=null&&f.startsWith(c)||un(!1),p=v}else p=d;let m=p.pathname||"/",g=m;if(c!=="/"){let v=c.replace(/^\//,"").split("/");g="/"+m.replace(/^\//,"").split("/").slice(v.length).join("/")}let b=AY(e,{pathname:g}),y=fX(b&&b.map(v=>Object.assign({},v,{params:Object.assign({},l,v.params),pathname:ts([c,i.encodeLocation?i.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?c:ts([c,i.encodeLocation?i.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),o,n,r);return t&&y?P.createElement(Yh.Provider,{value:{location:Uf({pathname:"/",search:"",hash:"",state:null,key:"default"},p),navigationType:Qa.Pop}},y):y}function lX(){let e=gX(),t=ZY(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return P.createElement(P.Fragment,null,P.createElement("h2",null,"Unexpected Application Error!"),P.createElement("h3",{style:{fontStyle:"italic"}},t),n?P.createElement("pre",{style:i},n):null,null)}const cX=P.createElement(lX,null);class uX extends P.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?P.createElement(yo.Provider,{value:this.props.routeContext},P.createElement(x8.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function dX(e){let{routeContext:t,match:n,children:r}=e,i=P.useContext(NN);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),P.createElement(yo.Provider,{value:t},r)}function fX(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let p=a.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);p>=0||un(!1),a=a.slice(0,Math.min(a.length,p+1))}let c=!1,d=-1;if(n&&r&&r.v7_partialHydration)for(let p=0;p<a.length;p++){let f=a[p];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(d=p),f.route.id){let{loaderData:m,errors:g}=n,b=f.route.loader&&m[f.route.id]===void 0&&(!g||g[f.route.id]===void 0);if(f.route.lazy||b){c=!0,d>=0?a=a.slice(0,d+1):a=[a[0]];break}}}return a.reduceRight((p,f,m)=>{let g,b=!1,y=null,v=null;n&&(g=l&&f.route.id?l[f.route.id]:void 0,y=f.route.errorElement||cX,c&&(d<0&&m===0?(vX("route-fallback"),b=!0,v=null):d===m&&(b=!0,v=f.route.hydrateFallbackElement||null)));let x=t.concat(a.slice(0,m+1)),_=()=>{let j;return g?j=y:b?j=v:f.route.Component?j=P.createElement(f.route.Component,null):f.route.element?j=f.route.element:j=p,P.createElement(dX,{match:f,routeContext:{outlet:p,matches:x,isDataRoute:n!=null},children:j})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?P.createElement(uX,{location:n.location,revalidation:n.revalidation,component:y,error:g,children:_(),routeC
489ontext:{outlet:null,matches:x,isDataRoute:!0}}):_()},null)}var S8=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(S8||{}),j8=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(j8||{});function hX(e){let t=P.useContext(NN);return t||un(!1),t}function pX(e){let t=P.useContext(eX);return t||un(!1),t}function mX(e){let t=P.useContext(yo);return t||un(!1),t}function N8(e){let t=mX(),n=t.matches[t.matches.length-1];return n.route.id||un(!1),n.route.id}function gX(){var e;let t=P.useContext(x8),n=pX(),r=N8();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function yX(){let{router:e}=hX(S8.UseNavigateStable),t=N8(j8.UseNavigateStable),n=P.useRef(!1);return b8(()=>{n.current=!0}),P.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Uf({fromRouteId:t},o)))},[e,t])}const HA={};function vX(e,t,n){HA[e]||(HA[e]=!0)}function xX(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function $a(e){let{to:t,replace:n,state:r,relative:i}=e;Du()||un(!1);let{future:o,static:a}=P.useContext(fs),{matches:l}=P.useContext(yo),{pathname:c}=vr(),d=kN(),p=jN(t,SN(l,o.v7_relativeSplatPath),c,i==="path"),f=JSON.stringify(p);return P.useEffect(()=>d(JSON.parse(f),{replace:n,state:r,relative:i}),[d,f,i,n,r]),null}function bX(e){return oX(e.context)}function at(e){un(!1)}function wX(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Qa.Pop,navigator:o,static:a=!1,future:l}=e;Du()&&un(!1);let c=t.replace(/^\/*/,"/"),d=P.useMemo(()=>({basename:c,navigator:o,static:a,future:Uf({v7_relativeSplatPath:!1},l)}),[c,l,o,a]);typeof r=="string"&&(r=Iu(r));let{pathname:p="/",search:f="",hash:m="",state:g=null,key:b="default"}=r,y=P.useMemo(()=>{let v=_N(p,c);return v==null?null:{location:{pathname:v,search:f,hash:m,state:g,key:b},navigationType:i}},[c,p,f,m,g,b,i]);return y==null?null:P.createElement(fs.Provider,{value:d},P.createElement(Yh.Provider,{children:n,value:y}))}function _X(e){let{children:t,location:n}=e;return aX(nS(t),n)}new Promise(()=>{});function nS(e,t){t===void 0&&(t=[]);let n=[];return P.Children.forEach(e,(r,i)=>{if(!P.isValidElement(r))return;let o=[...t,i];if(r.type===P.Fragment){n.push.apply(n,nS(r.props.children,o));return}r.type!==at&&un(!1),!r.props.index||!r.props.children||un(!1);let a={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=nS(r.props.children,o)),n.push(a)}),n}/**
490 * React Router DOM v6.30.3
491 *
492 * Copyright (c) Remix Software Inc.
493 *
494 * This source code is licensed under the MIT license found in the
495 * LICENSE.md file in the root directory of this source tree.
496 *
497 * @license MIT
498 */function rS(){return rS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rS.apply(this,arguments)}function SX(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function jX(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function NX(e,t){return e.button===0&&(!t||t==="_self")&&!jX(e)}function iS(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function kX(e,t){let n=iS(e);return t&&t.forEach((r,i)=>
498{n.has(i)||t.getAll(i).forEach(o=>{n.append(i,o)})}),n}const OX=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],EX="6";try{window.__reactRouterVersion=EX}catch{}const PX="startTransition",VA=Wy[PX];function AX(e){let{basename:t,children:n,future:r,window:i}=e,o=P.useRef();o.current==null&&(o.current=OY({window:i,v5Compat:!0}));let a=o.current,[l,c]=P.useState({action:a.action,location:a.location}),{v7_startTransition:d}=r||{},p=P.useCallback(f=>{d&&VA?VA(()=>c(f)):c(f)},[c,d]);return P.useLayoutEffect(()=>a.listen(p),[a,p]),P.useEffect(()=>xX(r),[r]),P.createElement(wX,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}const TX=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",CX=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ie=P.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:l,target:c,to:d,preventScrollReset:p,viewTransition:f}=t,m=SX(t,OX),{basename:g}=P.useContext(fs),b,y=!1;if(typeof d=="string"&&CX.test(d)&&(b=d,TX))try{let j=new URL(window.location.href),S=d.startsWith("//")?new URL(j.protocol+d):new URL(d),N=_N(S.pathname,g);S.origin===j.origin&&N!=null?d=N+S.search+S.hash:y=!0}catch{}let v=tX(d,{relative:i}),x=RX(d,{replace:a,state:l,target:c,preventScrollReset:p,relative:i,viewTransition:f});function _(j){r&&r(j),j.defaultPrevented||x(j)}return P.createElement("a",rS({},m,{href:b||v,onClick:y||o?r:_,ref:n,target:c}))});var WA;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(WA||(WA={}));var GA;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(GA||(GA={}));function RX(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,viewTransition:l}=t===void 0?{}:t,c=kN(),d=vr(),p=_8(e,{relative:a});return P.useCallback(f=>{if(NX(f,n)){f.preventDefault();let m=r!==void 0?r:Sg(d)===Sg(p);c(e,{replace:m,state:i,preventScrollReset:o,relative:a,viewTransition:l})}},[d,c,p,r,i,n,e,o,a,l])}function k8(e){let t=P.useRef(iS(e)),n=P.useRef(!1),r=vr(),i=P.useMemo(()=>kX(r.search,n.current?null:t.current),[r.search]),o=kN(),a=P.useCallback((l,c)=>{const d=iS(typeof l=="function"?l(i):l);n.current=!0,o("?"+d,c)},[o,i]);return[i,a]}function O8(e,t){return function(){return e.apply(t,arguments)}}const{toString:MX}=Object.prototype,{getPrototypeOf:os}=Object,{iterator:Xh,toStringTag:E8}=Symbol,Hf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),P8=e=>typeof e=="string"&&(e==="__proto__"||e==="constructor"||e==="prototype"),A8=(e,t,n)=>e===Object.prototype||!n&&t===null,IX=e=>{if(!Object.isExtensible(e))return!1;const t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(n=>{if(P8(n))return!1;const r=Object.getOwnPropertyDescriptor(e,n);return!!r&&r.configurable&&r.writable===!0})},Vf=(e,t)=>{let n=e;const r=[];for(;n!=null;){if(r.indexOf(n)!==-1)return!1;r.push(n);const i=os(n);if(A8(n,i,n===e))return!1;if(Hf(n,t))return!0;n=i}return!1},DX=(e,t)=>e!=null&&Vf(e,t)?e[t]:void 0,LX=e=>{if(e==null||typeof e!="object"&&typeof e!="function")return e;const t=os(e);if(t===null&&IX(e))return e;const n=Object.create(null),r=Object.create(null),i=[];let o=e;for(;o!=null&&i.indexOf(o)===-1;){i.push(o);const a=o===e?t:os(o);if(A8(o,a,o===e))break;const l=Object.getOwnPropertyNames(o);Object.getOwnPropertySymbols&&l.push(...Object.getOwnPropertySymbols(o));for(const c of l)P8(c)||Hf(r,c)||(n[c]=e[c],r[c]=!0);o=a}return n},ON=(e=>t=>{const n=MX.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),gi=e=>(e=e.toLowerCase(),t=>ON(t)===e),Yy=e=>t=>typeof t===e,{isArray:_l}=Array,Sl=Yy("undefined");function Lu(e){return e!==null&&!Sl(e)&&e.constructor!==null&&!Sl(e.constructor)&&Ar(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const T8=gi("ArrayBuffer");function BX(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&T8(e.buffer),t}const $X=Yy("string"),Ar=Yy("function"),C8=Yy("number"),Bu=e=>e!==null&&typeof e=="object",FX=e=>e===!0||e===!1,ag=e=>{if(!Bu(e))return!1;const t=os(e);return(t===null||t===Object.prototype||os(t)===null)&&!Vf(e,E8)&&!Vf(e,Xh)}
vendor: 5,417 bytes, line 498
498,qX=e=>{if(!Bu(e)||Lu(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},zX=gi("Date"),UX=gi("File"),HX=e=>!!(e&&typeof e.uri<"u"),VX=e=>e&&typeof e.getParts<"u",WX=gi("Blob"),GX=gi("FileList"),KX=gi("Set"),YX=e=>Bu(e)&&Ar(e.pipe);function XX(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const KA=XX(),YA=typeof KA.FormData<"u"?KA.FormData:void 0,QX=e=>{if(!e)return!1;if(YA&&e instanceof YA)return!0;const t=os(e);if(!t||t===Object.prototype||!Ar(e.append))return!1;const n=ON(e);return n==="formdata"||n==="object"&&Ar(e.toString)&&e.toString()==="[object FormData]"},ZX=gi("URLSearchParams"),[JX,eQ,tQ,nQ]=["ReadableStream","Request","Response","Headers"].map(gi),rQ=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Qh(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),_l(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(Lu(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let l;for(r=0;r<a;r++)l=o[r],t.call(null,e[l],l,e)}}function R8(e,t){if(Lu(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const tl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,M8=e=>!Sl(e)&&e!==tl;function oS(...e){const{caseless:t,skipUndefined:n}=M8(this)&&this||{},r={},i=(o,a)=>{if(a==="__proto__"||a==="constructor"||a==="prototype")return;const l=t&&typeof a=="string"&&R8(r,a)||a,c=Hf(r,l)?r[l]:void 0;ag(c)&&ag(o)?r[l]=oS(c,o):ag(o)?r[l]=oS({},o):_l(o)?r[l]=o.slice():(!n||!Sl(o))&&(r[l]=o)};for(let o=0,a=e.length;o<a;o++){const l=e[o];if(!l||Lu(l)||(Qh(l,i),typeof l!="object"||_l(l)))continue;const c=Object.getOwnPropertySymbols(l);for(let d=0;d<c.length;d++){const p=c[d];mQ.call(l,p)&&i(l[p],p)}}return r}const iQ=(e,t,n,{allOwnKeys:r}={})=>(Qh(t,(i,o)=>{n&&Ar(i)?Object.defineProperty(e,o,{__proto__:null,value:O8(i,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),oQ=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),aQ=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},sQ=(e,t,n,r)=>{let i,o,a;const l={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=n!==!1&&os(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},lQ=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},cQ=e=>{if(!e)return null;if(_l(e))return e;let t=e.length;if(!C8(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},uQ=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&os(Uint8Array)),dQ=(e,t)=>{const r=(e&&e[Xh]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},fQ=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},hQ=gi("HTMLFormElement"),pQ=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),{propertyIsEnumerable:mQ}=Object.prototype,gQ=gi("RegExp"),I8=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Qh(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},yQ=e=>{I8(e,(t,n)=>{if(Ar(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(Ar(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},vQ=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return _l(e)?r(e):r(String(e).split(t)),n},xQ=()=>{},bQ=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function wQ(e){return!!(e&&Ar(e.append)&&e[E8]==="FormData"&&e[Xh])}const _Q=e=>{const t=new WeakSet,n=r=>{if(Bu(r)){if(t.has(r))return;if(Lu(r))return r;if(!("toJSON"in r)){t.add(r);let i;if(KX(r)){i=[];for(const o of r){const a=n(o);!Sl(a)&&i.push(a)}}else i=_l(r)?[]:{},Qh(r,(o,a)=>{const l=n(o);!Sl(l)&&(i[a]=l)});return t.delete(r),i}}return r};return n(e)},SQ=gi("AsyncFunction"),jQ=e=>e&&(Bu(e)||Ar(e))&&Ar(e.then)&&Ar(e.catch),D8=((e,t)=>e?setImmediate:t?((n,r)=>(tl.addEventListener("message",({source:i,data:o})=>{i===tl&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),tl.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ar(tl.postMessage)),NQ=typeof queueMicrotask<"u"?queueMicrotask.bind(tl):typeof process<"u"&&process.nextTick||D8,L8=e=>e!=null&&Ar(e[Xh]),kQ=e=>e!=null&&Vf(e,Xh)&&L8(e),ie={isArray:_l,isArrayBuffer:T8,isBuffer:Lu,isFormData:QX,isArrayBufferView:BX,isString:$X,isNumber:C8,isBoolean:FX,isObject:Bu,isPlainObject:ag,isEmptyObject:qX,isReadableStream:JX,isRequest:eQ,isResponse:tQ,isHeaders:nQ,isUndefined:Sl,isDate:zX,isFile:UX,isReactNativeBlob:HX,isReactNative:VX,isBlob:WX,isRegExp:gQ,isFunction:Ar,isStream:YX,isURLSearchParams:ZX,isTypedArray:uQ,isFileList:GX,forEach:Qh,merge:oS,extend:iQ,trim:rQ,stripBOM:oQ,inherits:aQ,toFlatObject:sQ,kindOf:ON,kindOfTest:gi,endsWith:lQ,toArray:cQ,forEac
498hEntry:dQ,matchAll:fQ,isHTMLForm:hQ,hasOwnProperty:Hf,hasOwnProp:Hf,hasOwnInPrototypeChain:Vf,getSafeProp:DX,toSafeFlatObject:LX,reduceDescriptors:I8,freezeMethods:yQ,toObjectSet:vQ,toCamelCase:pQ,noop:xQ,toFiniteNumber:bQ,findKey:R8,global:tl,isContextDefined:M8,isSpecCompliantForm:wQ,toJSONObject:_Q,isAsyncFn:SQ,isThenable:jQ,setImmediate:D8,asap:NQ,isIterable:L8,isSafeIterable:kQ},OQ=ie.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),EQ=e=>{const t={};let n,r,i;return e&&e.split(`
499`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim();const l=ie.hasOwnProp(t,n);!n||l&&ie.hasOwnProp(OQ,n)||(n==="set-cookie"?l?t[n].push(r):t[n]=[r]:t[n]=l?t[n]+", "+r:r)}),t};function PQ(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const AQ=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),TQ=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function EN(e,t){return ie.isArray(e)?e.map(n=>EN(n,t)):PQ(String(e).replace(t,""))}const CQ=e=>EN(e,AQ),RQ=e=>EN(e,TQ);function B8(e){const t=Object.create(null);return ie.forEach(e.toJSON(),(n,r)=>{t[r]=RQ(n)}),t}const XA=Symbol("internals");function Wd(e){return e&&String(e).trim().toLowerCase()}function sg(e){return e===!1||e==null?e:ie.isArray(e)?e.map(sg):CQ(String(e))}function MQ(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const IQ=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function Ub(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}function DQ(e){const t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let n="";for(let r=1;r<t;r++){const i=e.charCodeAt(r);if(i===34||i===92&&(r+=1,r>=t))return e;n+=e[r]}return n}function LQ(e){const t=Object.create(null),n=String(e);let r=0,i=!1,o=!1;function a(l){const c=Ub(n.slice(r,l)),d=c.indexOf("=");if(d<1)return;const p=Ub(c.slice(0,d));if(!IQ.test(p))return;const f=p.toLowerCase();if(f==="__proto__"||f==="constructor"||f==="prototype")return;const m=Ub(c.slice(d+1));t[f]=DQ(m)}for(let l=0;l<n.length;l++){const c=n.charCodeAt(l);i?o?o=!1:c===92?o=!0:c===34&&(i=!1):c===34?i=!0:(c===44||c===59)&&(a(l),r=l+1)}return a(n.length),t}const BQ=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Hb(e,t,n,r,i){if(ie.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!ie.isString(t)){if(ie.isString(r))return t.indexOf(r)!==-1;if(ie.isRegExp(r))return r.test(t)}}function $Q(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function FQ(e,t){const n=ie.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}let sr=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(l,c,d){const p=Wd(c);if(!p)return;const f=ie.findKey(i,p);(!f||i[f]===void 0||d===!0||d===void 0&&i[f]!==!1)&&(i[f||c]=sg(l))}const a=(l,c)=>ie.forEach(l,(d,p)=>o(d,p,c));if(ie.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(ie.isString(t)&&(t=t.trim())&&!BQ(t))a(EQ(t),n);else if(ie.isObject(t)&&ie.isSafeIterable(t)){let l=Object.create(null),c,d;for(const p of t){if(!ie.isArray(p))throw new TypeError("Object iterator must return a key-value pair");d=p[0],ie.hasOwnProp(l,d)?(c=l[d],l[d]=ie.isArray(c)?[...c,p[1]]:[c,p[1]]):l[d]=p[1]}a(l,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=Wd(t),t){const r=ie.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return MQ(i);if(ie.isFunction(n))return n.call(this,i,r);if(ie.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}
vendor: 5,954 bytes, lines 499-500
499has(t,n){if(t=Wd(t),t){const r=ie.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Hb(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=Wd(a),a){const l=ie.findKey(r,a);l&&(!n||Hb(r,r[l],l,n))&&(delete r[l],i=!0)}}return ie.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||Hb(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return ie.forEach(this,(i,o)=>{const a=ie.findKey(r,o);if(a){n[a]=sg(i),delete n[o];return}const l=t?$Q(o):String(o).trim();l!==o&&delete n[o],n[l]=sg(i),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ie.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&ie.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
500`)}getSetCookie(){const t=this.get("set-cookie");return ie.isArray(t)?t:t==null||t===!1?[]:[t]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static parseParameters(t){return LQ(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[XA]=this[XA]={accessors:{}}).accessors,i=this.prototype;function o(a){const l=Wd(a);r[l]||(FQ(i,a),r[l]=!0)}return ie.isArray(t)?t.forEach(o):o(t),this}};sr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ie.reduceDescriptors(sr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ie.freezeMethods(sr);const jg="[REDACTED ****]";function qQ(e){if(ie.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(ie.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function zQ(e,t){const n=new Set(t.map(o=>String(o).toLowerCase())),r=[],i=o=>{if(o===null||typeof o!="object"||ie.isBuffer(o))return o;if(r.indexOf(o)!==-1)return;o instanceof sr&&(o=o.toJSON()),r.push(o);let a;if(ie.isArray(o))a=[],o.forEach((l,c)=>{const d=i(l);ie.isUndefined(d)||(a[c]=d)});else{if(!ie.isPlainObject(o)&&qQ(o))return r.pop(),o;a=Object.create(null);for(const[l,c]of Object.entries(o)){const d=n.has(l.toLowerCase())?jg:i(c);ie.isUndefined(d)||(a[l]=d)}}return r.pop(),a};return i(e)}function QA(e){try{return String(e)}catch{return""}}function UQ(e){return e.errors.map(n=>{try{return n&&n.message?QA(n.message):QA(n)}catch{return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}let Me=class $8 extends Error{static from(t,n,r,i,o,a){let l=t.message;!l&&ie.isArray(t.errors)&&t.errors.length&&(l=UQ(t));const c=new $8(l,n||t.code,r,i,o);return Object.defineProperty(c,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),a&&Object.assign(c,a),c}constructor(t,n,r,i,o){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),i&&(this.request=i),o&&(this.response=o,this.status=o.status)}toJSON(){const t=this.config,n=t&&ie.hasOwnProp(t,"redact")?t.redact:void 0,r=ie.isArray(n)&&n.length>0?zQ(t,n):ie.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};Me.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Me.ERR_BAD_OPTION="ERR_BAD_OPTION";Me.ECONNABORTED="ECONNABORTED";Me.ETIMEDOUT="ETIMEDOUT";Me.ECONNREFUSED="ECONNREFUSED";Me.ERR_NETWORK="ERR_NETWORK";Me.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Me.ERR_DEPRECATED="ERR_DEPRECATED";Me.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Me.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Me.ERR_CANCELED="ERR_CANCELED";Me.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Me.ERR_INVALID_URL="ERR_INVALID_URL";Me.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const HQ=null,F8=100;function aS(e){return ie.isPlainObject(e)||ie.isArray(e)}function q8(e){return ie.endsWith(e,"[]")?e.slice(0,-2):e}function Vb(e,t,n){return e?e.concat(t).map(function(i,o){return i=q8(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function VQ(e){return ie.isArray(e)&&!e.some(aS)}const WQ=ie.toFlatObject(ie,{},null,function(t){return/^is[A-Z]/.test(t)});function Xy(e,t,n){if(!ie.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(_,j)=>{const S=ie.getSafeProp(n,_);return ie.isUndefined(S)?j:S},i=r("metaTokens",!0),o=r("visitor")||y,a=r("dots",!1),l=r("indexes",!1),c=r("Blob")||typeof Blob<"u"&&Blob,d=r("maxDepth",F8),p=c&&ie.isSpecCompliantForm(t),f=[];if(!ie.isFunction(o))throw new TypeError("visitor must be a function");function m(_){if(_===null)return"";if(ie.isDate(_))return _.toISOString();if(ie.isBoolean(_))return _.toString();if(!p&&ie.isBlob(_))throw new Me("Blob is not supported. Use a Buffer instead.");if(ie.isArrayBuffer(_)||ie.isTypedArray(_)){if(p&&typeof c=="function")return new c([_]);throw new Me("Blob is not supported. Use a Buffer instead.",Me.ERR_NOT_SUPPORT)}return _}function g(_){if(_>d)throw new Me("Object is too deeply nested ("+_+" levels). Max depth: "+d,Me.ERR_FORM_DATA_DEPTH_EXCEEDED)}function b(_,j){if(d===1/0)return JSON.stringify(_);const S=[];return JSON.stringify(_,function(O,E){if(!ie.isObject(E))return E;for(;S.length&&S[S.length-1]!==this;)S.pop();return S.push(E),g(j+S.length-1),E})}function y(_,j,S){let N=_;if(ie.isReactNative(t)&&ie.isReactNativeBlob(_))return t.append(Vb(S,j,a),m(_)),!1;if(_&&!S&&typeof _=="object"){if(ie.endsWith(j,"{}"))j=i?j:j.slice(0,-2),_=b(_,1);else if(ie.isArray(_)&&VQ(_)||(ie.isFileList(_)||ie.endsWith(j,"[]"))&&(N=ie.toArray(_)))return j=q8
500(j),N.forEach(function(E,A){!(ie.isUndefined(E)||E===null)&&t.append(l===!0?Vb([j],A,a):l===null?j:j+"[]",m(E))}),!1}return aS(_)?!0:(t.append(Vb(S,j,a),m(_)),!1)}const v=Object.assign(WQ,{defaultVisitor:y,convertValue:m,isVisitable:aS});function x(_,j,S=0){if(!ie.isUndefined(_)){if(g(S),f.indexOf(_)!==-1)throw new Error("Circular reference detected in "+j.join("."));f.push(_),ie.forEach(_,function(O,E){(!(ie.isUndefined(O)||O===null)&&o.call(t,O,ie.isString(E)?E.trim():E,j,v))===!0&&x(O,j?j.concat(E):[E],S+1)}),f.pop()}}if(!ie.isObject(e))throw new TypeError("data must be an object");return x(e),t}function ZA(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function PN(e,t){this._pairs=[],e&&Xy(e,this,t)}const z8=PN.prototype;z8.append=function(t,n){this._pairs.push([t,n])};z8.toString=function(t){const n=t?r=>t.call(this,r,ZA):ZA;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function GQ(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function U8(e,t,n){if(!t)return e;e=e||"";const r=ie.isFunction(n)?{serialize:n}:n,i=ie.getSafeProp(r,"encode")||GQ,o=ie.getSafeProp(r,"serialize");let a;if(o?a=o(t,r):a=ie.isURLSearchParams(t)?t.toString():new PN(t,r).toString(i),a){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}const Gd=Symbol("internals");function H8(e){return e?e.length:0}function JA(e){if(e)for(;e.length&&e[e.length-1]===null;)e.pop()}function Kd(e,t){const n=e.handlers,r=H8(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):r!==t.handlersLength&&(r?t.handlerEntries.forEach(function(o,a){n[o.index]!==o.handler&&t.handlerEntries.delete(a)}):t.handlerEntries.clear()),t.handlersLength=r}class eT{constructor(){this.handlers=[],this[Gd]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(t,n,r){const i={fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null},o=this[Gd];this.handlers==null&&(this.handlers=[]),Kd(this,o);const a=o.nextId++;return this.handlers.push(i),o.handlerEntries.set(a,{handler:i,index:this.handlers.length-1}),o.handlersLength=this.handlers.length,a}eject(t){const n=this[Gd];Kd(this,n);const r=n.handlerEntries.get(t);if(r){if(n.handlerEntries.delete(t),this.handlers[r.index]!==r.handler)return;this.handlers[r.index]=null,n.iterationDepth||(JA(this.handlers),n.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],Kd(this,this[Gd]))}forEach(t){const n=this[Gd];Kd(this,n),n.iterationDepth++;try{ie.forEach(this.handlers,function(i){i!==null&&t(i)})}finally{--n.iterationDepth||(Kd(this,n),JA(this.handlers),n.handlersLength=H8(this.handlers))}}}const AN={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},KQ=typeof URLSearchParams<"u"?URLSearchParams:PN,YQ=typeof FormData<"u"?FormData:null,XQ=typeof Blob<"u"?Blob:null,QQ={isBrowser:!0,classes:{URLSearchParams:KQ,FormData:YQ,Blob:XQ},protocols:["http","https","file","blob","url","data"]},TN=typeof window<"u"&&typeof document<"u",sS=typeof navigator=="object"&&navigator||void 0,ZQ=TN&&(!sS||["ReactNative","NativeScript","NS"].indexOf(sS.product)<0),JQ=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",eZ=TN&&window.location.href||"http://localhost",tZ=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:TN,hasStandardBrowserEnv:ZQ,hasStandardBrowserWebWorkerEnv:JQ,navigator:sS,origin:eZ},Symbol.toStringTag,{value:"Module"})),In={...tZ,...QQ};function nZ(e,t){return Xy(e,new In.classes.URLSearchParams,{visitor:function(n,r,i,o){return In.isNode&&ie.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}const tT=F8;function V8(e){if(e>tT)throw new Me("FormData field is too deeply nested ("+e+" levels). Max depth: "+tT,Me.ERR_FORM_DATA_DEPTH_EXCEEDED)}function rZ(e){const t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let r;for(;(r=n.exec(e))!==null;)V8(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function iZ(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function W8(e){function t(n,r,i,o){V8(o);let a=n[o++];if(a==="__proto__")return!0;const l=Number.isFinite(+a),c=o>=n.length;return a=!a&&ie.isArray(i)?i.length:a,c?(ie.hasOwnProp(i,a)?i[a]=ie.isArray(i[a])?i[a].concat(r):[i[a],r]:i[a]=r,!l):((!ie.hasOwnProp(i,a)||!ie.isObject(i[a]))&&
vendor: 12,783 bytes, line 500
500(i[a]=[]),t(n,r,i[a],o)&&ie.isArray(i[a])&&(i[a]=iZ(i[a])),!l)}if(ie.isFormData(e)&&ie.isFunction(e.entries)){const n={};return ie.forEachEntry(e,(r,i)=>{t(rZ(r),i,n,0)}),n}return null}const G8=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),yc=(e,t)=>e!=null&&ie.hasOwnProp(e,t)?e[t]:void 0;function oZ(e,t,n){if(ie.isString(e))try{return(t||JSON.parse)(e),ie.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Zh={transitional:AN,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=ie.isObject(t);if(o&&ie.isHTMLForm(t)&&(t=new FormData(t)),ie.isFormData(t))return i?JSON.stringify(W8(t)):t;if(ie.isArrayBuffer(t)||ie.isBuffer(t)||ie.isStream(t)||ie.isFile(t)||ie.isBlob(t)||ie.isReadableStream(t))return t;if(ie.isArrayBufferView(t))return t.buffer;if(ie.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){const c=yc(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return nZ(t,c).toString();if((l=ie.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=yc(this,"env"),p=d&&d.FormData;return Xy(l?{"files[]":t}:t,p&&new p,c)}}return o||i?(n.setContentType("application/json",!1),oZ(t)):t}],transformResponse:[function(t){const n=yc(this,"transitional")||Zh.transitional,r=n&&n.forcedJSONParsing,i=yc(this,"responseType"),o=i==="json";if(ie.isResponse(t)||ie.isReadableStream(t))return t;if(t&&ie.isString(t)&&(r&&!i||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,yc(this,"parseReviver"))}catch(c){if(l)throw c.name==="SyntaxError"?Me.from(c,Me.ERR_BAD_RESPONSE,this,null,yc(this,"response")):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:In.classes.FormData,Blob:In.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ie.forEach(G8,e=>{Zh.headers[e]={}});function Wb(e,t){const n=this||Zh,r=t||n,i=sr.from(r.headers);let o=r.data;return ie.forEach(e,function(l){o=l.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function K8(e){return!!(e&&e.__CANCEL__)}let Jh=class extends Me{constructor(t,n,r){super(t??"canceled",Me.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function Y8(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Me("Request failed with status code "+n.status,n.status>=400&&n.status<500?Me.ERR_BAD_REQUEST:Me.ERR_BAD_RESPONSE,n.config,n.request,n))}const aZ=/[\t\n\r]/g;function X8(e){if(typeof e!="string")return e;let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(aZ,"")}function Gb(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function sZ(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(c){const d=Date.now(),p=r[o];a||(a=d),n[i]=c,r[i]=d;let f=o,m=0;for(;f!==i;)m+=n[f++],f=f%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),d-a<t)return;const g=p&&d-p;return g?Math.round(m*1e3/g):void 0}}function lZ(e,t){let n=0,r=1e3/t,i,o;const a=(p,f=Date.now())=>{n=f,i=null,o&&(clearTimeout(o),o=null),e(...p)};return[(...p)=>{const f=Date.now(),m=f-n;m>=r?a(p,f):(i=p,o||(o=setTimeout(()=>{o=null,a(i)},r-m)))},()=>i&&a(i),(...p)=>a(p)]}const Ng=(e,t,n=3)=>{let r=0;const i=sZ(50,250);return lZ(o=>{if(!o||!ie.isNumber(o.loaded))return;const a=o.loaded,l=o.lengthComputable?o.total:void 0,c=Math.max(0,l!=null?Math.min(a,l):a),d=Math.max(0,c-r),p=i(d);r=Math.max(r,c);const f={loaded:c,total:l,progress:l?c/l:void 0,bytes:d,rate:p||void 0,estimated:p&&l?(l-c)/p:void 0,event:o,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},nT=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},rT=(e,t=ie.asap)=>(...n)=>t(()=>e(...n)),cZ=In.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,In.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(In.origin),In.navigator&&/(msie|trident)/i.test(In.navigator.userAgent)):()=>!0,uZ=In.hasStandardBrowserEnv?{write(e,t,n,r,i,o,a){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];ie.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),ie.isString(r)&&l.push(`path=${r}`),ie.isString(i)&&l.push(`domain=${i}`),o===!0&&l.push("secure"),ie.isString(a)&&l.push(`SameSite=${a}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),i=r.indexOf("=");if(i!==-1&&r.slice(0,i)===e)try{return decodeURIComponent(r.slice(i+1))}catch{return r.slice(i+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function dZ(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function fZ(e,t){if(!t)return e;let n=e.length;for(;n>0&&e.charCodeAt(n-1)===47;)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}const hZ=/^https?:(?!\/\/)/i;function pZ(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(t,n,r="")=>`${n}${r}${jg}`)}function mZ(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${jg}@`),n=t.indexOf("#"),i=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${jg}`);return n===-1?i:`${i}#${pZ(t.slice(n+1))}`}function iT(e,t){if(typeof e=="string"){const n=X8(e);if(hZ.test(n))throw new Me(`Invalid URL ${JSON.stringify(mZ(n))}: missing "//" after protocol`,Me.ERR_INVALID_URL,t)}}function Q8(e,t,n,r){iT(t,r);let i=!dZ(t);return e&&(i||n===!1)?(iT(e,r),fZ(e,t)):t}const oT=e=>e instanceof sr?{...e}:e,gZ=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function jl(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(p,f,m,g){return ie.isPlainObject(p)&&ie.isPlainObject(f)?ie.merge.call({caseless:g},p,f):ie.isPlainObject(f)?ie.merge({},f):ie.isArray(f)?f.slice():f}function i(p,f,m,g){if(ie.isUndefined(f)){if(!ie.isUndefined(p))return r(void 0,p,m,g)}else return r(p,f,m,g)}function o(p,f){if(!ie.isUndefined(f))return r(void 0,f)}function a(p,f){if(ie.isUndefined(f)){if(!ie.isUndefined(p))return r(void 0,p)}else return r(void 0,f)}function l(p){const f=ie.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!ie.isUndefined(f))if(ie.isPlainObject(f)){if(ie.hasOwnProp(f,p))return f[p]}else return;const m=ie.hasOwnProp(e,"transitional")?e.transitional:void 0;if(ie.isPlainObject(m)&&ie.hasOwnProp(m,p))return m[p]}function c(p,f,m){if(ie.hasOwnProp(t,m))return r(p,f);if(ie.hasOwnProp(e,m))return r(void 0,p)}const d={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutErrorMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:c,headers:(p,f,m)=>i(oT(p),oT(f),m,!0)};return ie.forEach(gZ({...e,...t}),function(f){if(f==="__proto__"||f==="constructor"||f==="prototype")return;const m=ie.hasOwnProp(d,f)?d[f]:i,g=ie.hasOwnProp(e,f)?e[f]:void 0,b=ie.hasOwnProp(t,f)?t[f]:void 0,y=m(g,b,f);ie.isUndefined(y)&&m!==c||(n[f]=y)}),ie.hasOwnProp(t,"validateStatus")&&ie.isUndefined(t.validateStatus)&&l("validateStatusUndefinedResolves")===!1&&(ie.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}const yZ=["content-type","content-length"];function vZ(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([r,i])=>{yZ.includes(r.toLowerCase())&&e.set(r,i)})}const xZ=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function Z8(e){const t=jl({},e),n=m=>ie.hasOwnProp(t,m)?t[m]:void 0,r=n("data");let i=n("withXSRFToken");const o=n("xsrfHeaderName"),a=n("xsrfCookieName");let l=n("headers");const c=n("auth"),d=n("baseURL"),p=n("allowAbsoluteUrls"),f=n("url");if(t.headers=l=sr.from(l),t.url=U8(Q8(d,f,p,t),n("params"),n("paramsSerializer")),c){const m=ie.getSafeProp(c,"username")||"",g=ie.getSafeProp(c,"password")||"";try{l.set("Authorization","Basic "+btoa(m+":"+(g?xZ(g):"")))}catch(b){throw Me.from(b,Me.ERR_BAD_OPTION_VALUE,e)}}if(ie.isFormData(r)){const m=ie.getSafeProp(r,"getHeaders");In.hasStandardBrowserEnv||In.hasStandardBrowserWebWorkerEnv||ie.isReactNative(r)?l.setContentType(void 0):ie.isFunction(m)&&vZ(l,m.call(r),n("formDataHeaderPolicy"))}if(In.hasStandardBrowserEnv&&(ie.isFunction(i)&&(i=i(t)),i===!0||i==null&&cZ(t.url))){const g=o&&a&&uZ.read(a);g&&l.set(o,g)}return t}const bZ=typeof XMLHttpRequest<"u",wZ=bZ&&function(e){return new Promise(function(n,r){const i=Z8(e);let o=i.data;const a=sr.from(i.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:d}=i,p,f,m,g,b,y;function v(){g&&g(),b&&b(),i.cancelToken&&i.cancelToken.unsubscribe(p),i.signal&&i.signal.removeEventListener("abort",p)}let x=new XMLHttpRequest;x.open(i.method.toUpperCase(),i.url,!0),x.timeout=i.timeout;function _(S){if(!x)return;if(x.status===0&&(Gb(X8(i.url))||Gb(In.origin))!=="file"&&!(x.responseURL&&x.responseURL.startsWith("file:"))){r(new Me("Request aborted",Me.ECONNABORTED,e,x)),v(),x=null;return}try{S?y&&y(S):b&&b()}catch(A){setTimeout(()=>{throw A})}if(!x)return;const N=sr.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),E={data:!l||l==="text"||l==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:N,config:e,request:x};Y8(function(I){n(I),v()},function(I){r(I),v()},E),x=null}"onloadend"in x?x.onloadend=_:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.startsWith("file:"))||setTimeout(_)},x.onabort=function(){x&&(r(new Me("Request aborted",Me.ECONNABORTED,e,x)),v(),x=null)},x.onerror=function(N){const O=N&&N.message?N.message:"Network Error",E=new Me(O,Me.ERR_NETWORK,e,x);E.event=N||null,r(E),v(),x=null},x.ontimeout=function(){let N=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const O=i.transitional||AN;i.timeoutErrorMessage&&(N=i.timeoutErrorMessage),r(new Me(N,O.clarifyTimeoutError?Me.ETIMEDOUT:Me.ECONNABORTED,e,x)),v(),x=null},o===void 0&&a.setContentType(null),"setRequestHeader"in x&&ie.forEach(B8(a),function(N,O){x.setRequestHeader(O,N)}),ie.isUndefined(i.withCredentials)||(x.withCredentials=!!i.withCredentials),l&&l!=="json"&&(x.responseType=i.responseType),d&&([m,b,y]=Ng(d,!0),x.addEventListener("progress",m)),c&&x.upload&&([f,g]=Ng(c),x.upload.addEventListener("progress",f),x.upload.addEventListener("loadend",g)),(i.cancelToken||i.signal)&&(p=S=>{x&&(r(!S||S.type?new Jh(null,e,x):S),x.abort(),v(),x=null)},i.cancelToken&&i.cancelToken.subscribe(p),i.signal&&(i.signal.aborted?p():i.signal.addEventListener("abort",p)));const j=Gb(i.url);if(j&&!In.protocols.includes(j)){r(new Me("Unsupported protocol "+j+":",Me.ERR_BAD_REQUEST,e)),v();return}x.send(o||null)})},_Z=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const i=function(c){if(!r){r=!0,a();const d=c instanceof Error?c:this.reason;n.abort(d instanceof Me?d:new Jh(d instanceof Error?d.message:d))}};let o=t&&setTimeout(()=>{o=null,i(new Me(`timeout of ${t}ms exceeded`,Me.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>{if(!r){if(c.aborted){i.call(c);return}c.addEventListener("abort",i,{once:!0})}});const{signal:l}=n;return l.unsubscribe=()=>ie.asap(a),l},SZ=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},jZ=async function*(e,t){for await(const n of NZ(e))yield*SZ(n,t)},NZ=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},aT=(e,t,n,r)=>{const i=jZ(e,t);let o=0,a,l=c=>{a||(a=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:d,value:p}=await i.next();if(d){l(),c.close();return}let f=p.byteLength;if(n){let m=o+=f;n(m)}c.enqueue(new Uint8Array(p))}catch(d){throw l(d),d}},cancel(c){return l(c),i.return()}},{highWaterMark:2})},sT=e=>e>=48&&e<=57||e>=65&&e<=70||e>
500=97&&e<=102,J8=(e,t,n)=>t+2<n&&sT(e.charCodeAt(t+1))&&sT(e.charCodeAt(t+2)),lT=e=>e<=57?e-48:(e&223)-55,kZ=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,OZ=e=>e===9||e===10||e===12||e===13||e===32,EZ=e=>{const t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},PZ=e=>{const t=e.length;let n=0;return t>0&&e.charCodeAt(t-1)===61&&(n++,t>1&&e.charCodeAt(t-2)===61&&n++),Math.floor((t-n)*3/4)},AZ=e=>{const t=e.length;let n=0,r=0,i=!1;for(let o=0;o<t;o++){let a=e.charCodeAt(o);if(a===37&&J8(e,o,t)&&(a=lT(e.charCodeAt(o+1))*16+lT(e.charCodeAt(o+2)),o+=2),!OZ(a)){if(a===61){r++;continue}if(!kZ(a)||r>0){i=!0;continue}n++}}return i||r>2||r>0&&(n+r)%4!==0||n%4===1?PZ(e):EZ(n)},TZ=(e,t)=>{if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const n=e.indexOf(",");if(n<0)return 0;const r=e.slice(5,n),i=e.slice(n+1);if(/;base64/i.test(r))return t(i);let a=0;for(let l=0,c=i.length;l<c;l++){const d=i.charCodeAt(l);if(d===37&&J8(i,l,c))a+=1,l+=2;else if(d<128)a+=1;else if(d<2048)a+=2;else if(d>=55296&&d<=56319&&l+1<c){const p=i.charCodeAt(l+1);p>
vendor: 4,465 bytes, line 500
500=56320&&p<=57343?(a+=4,l++):a+=3}else a+=3}return a};function CZ(e){const t=typeof e=="string"?e.indexOf("#"):-1;return TZ(t===-1?e:e.slice(0,t),AZ)}const CN="1.20.0",cT=64*1024,RZ={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:Em}=ie,MZ=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),uT=e=>{if(!ie.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},dT=(e,...t)=>{try{return!!e(...t)}catch{return!1}},IZ=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},DZ=e=>{const t=ie.global!==void 0&&ie.global!==null?ie.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=ie.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:i,Request:o,Response:a}=e,l=i?Em(i):typeof fetch=="function",c=Em(o),d=Em(a);if(!l)return!1;const p=l&&Em(n),f=l&&(typeof r=="function"?(x=>_=>x.encode(_))(new r):async x=>new Uint8Array(await new o(x).arrayBuffer())),m=c&&p&&dT(()=>{let x=!1;const _=new o(In.origin,{body:new n,method:"POST",get duplex(){return x=!0,"half"}}),j=_.headers.has("Content-Type");return _.body!=null&&_.body.cancel(),x&&!j}),g=d&&p&&dT(()=>ie.isReadableStream(new a("").body)),b={stream:g&&(x=>x.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(x=>{!b[x]&&(b[x]=(_,j)=>{let S=_&&_[x];if(S)return S.call(_);throw new Me(`Response type '${x}' is not supported`,Me.ERR_NOT_SUPPORT,j)})});const y=async x=>{if(x==null)return 0;if(ie.isBlob(x))return x.size;if(ie.isSpecCompliantForm(x))return(await new o(In.origin,{method:"POST",body:x}).arrayBuffer()).byteLength;if(ie.isArrayBufferView(x)||ie.isArrayBuffer(x))return x.byteLength;if(ie.isURLSearchParams(x)&&(x=x+""),ie.isString(x))return(await f(x)).byteLength},v=async(x,_)=>{const j=ie.toFiniteNumber(x.getContentLength());return j??y(_)};return async x=>{let{url:_,method:j,data:S,signal:N,cancelToken:O,timeout:E,onDownloadProgress:A,onUploadProgress:I,responseType:M,headers:C,withCredentials:R="same-origin",fetchOptions:B,maxContentLength:$,maxBodyLength:z,maxRedirects:H}=Z8(x);const V=ie.isNumber($)&&$>-1,Y=ie.isNumber(z)&&z>-1,W=X=>ie.hasOwnProp(x,X)?x[X]:void 0;let q=i||fetch;M=M?(M+"").toLowerCase():"text";let D=_Z([N,O&&O.toAbortSignal()],E),F=null;const K=D&&D.unsubscribe&&(()=>{D.unsubscribe()});let ee,J=null;const G=()=>new Me("Request body larger than maxBodyLength limit",Me.ERR_BAD_REQUEST,x,F);try{let X;const ne=W("auth");if(ne){const oe=ie.getSafeProp(ne,"username")||"",de=ie.getSafeProp(ne,"password")||"";X={username:oe,password:de}}if(IZ(_)){const oe=new URL(_,In.origin);if(!X&&(oe.username||oe.password)){const de=uT(oe.username),Se=uT(oe.password);X={username:de,password:Se}}(oe.username||oe.password)&&(oe.username="",oe.password="",_=oe.href)}if(X&&(C.delete("authorization"),C.set("Authorization","Basic "+btoa(MZ((X.username||"")+":"+(X.password||""))))),V&&typeof _=="string"&&_.startsWith("data:")&&CZ(_)>$)throw new Me("maxContentLength size of "+$+" exceeded",Me.ERR_BAD_RESPONSE,x,F);if(Y&&j!=="get"&&j!=="head"){const oe=await y(S);if(typeof oe=="number"&&isFinite(oe)&&(ee=oe,oe>z))throw G()}const Z=Y&&(ie.isReadableStream(S)||ie.isStream(S)),se=(oe,de,Se)=>aT(oe,cT,Ee=>{if(Y&&Ee>z)throw J=G();de&&de(Ee)},Se);if(m&&j!=="get"&&j!=="head"&&(I||Z)){if(ee=ee??await v(C,S),ee!==0||Z){let oe=new o(_,{method:"POST",body:S,duplex:"half"}),de;if(ie.isFormData(S)&&(de=oe.headers.get("content-type"))&&C.setContentType(de),oe.body){const[Se,Ee]=I&&nT(ee,Ng(rT(I)))||[];S=se(oe.body,Se,Ee)}}}else if(Z&&!c&&p&&j!=="get"&&j!=="head")S=se(S);else if(Z&&c&&!m&&j!=="get"&&j!=="head")throw new Me("Stream request bodies are not supported by the current fetch implementation",Me.ERR_NOT_SUPPORT,x,F);ie.isString(R)||(R=R?"include":"omit");const fe=c&&"credentials"in o.prototype;if(ie.isFormData(S)){const oe=C.getContentType();oe&&/^multipart\/form-data/i.test(oe)&&!/boundary=/i.test(oe)&&C.delete("content-type")}C.set("User-Agent","axios/"+CN,!1);const le=B==null?B:Object.assign(Object.create(null),B);le&&(delete le.body,delete le.headers,delete le.method,delete le.signal,delete le.duplex,delete le.credentials);const we=Object.assign(Object.create(null),le,{signal:D,method:j.toUpperCase(),headers:B8(C.normalize()),body:S,duplex:"half",credentials:fe?R:void 0});c&&(ie.forEach(RZ,(oe,de)=>
vendor: 5,233 bytes, lines 500-502
500{we[de]===void 0&&(we[de]=oe)}),we.signal===void 0&&(we.signal=null),we.body===void 0&&(we.body=null)),H===0&&(we.redirect="manual",le&&(le.redirect="manual")),F=c&&new o(_,we);let ge=await(c?q(F,le):q(_,we));const be=sr.from(ge.headers);if(V){const oe=ie.toFiniteNumber(be.getContentLength());if(oe!=null&&oe>$)throw new Me("maxContentLength size of "+$+" exceeded",Me.ERR_BAD_RESPONSE,x,F)}const Be=g&&(M==="stream"||M==="response");if(g&&ge.body&&(A||V||Be&&K)){const oe={};["status","statusText","headers"].forEach($e=>{oe[$e]=ge[$e]});const de=ie.toFiniteNumber(be.getContentLength()),[Se,Ee]=A&&nT(de,Ng(rT(A),!0))||[];let ve=0;const He=$e=>{if(V&&(ve=$e,ve>$))throw new Me("maxContentLength size of "+$+" exceeded",Me.ERR_BAD_RESPONSE,x,F);Se&&Se($e)};ge=new a(aT(ge.body,cT,He,()=>{Ee&&Ee(),K&&K()}),oe)}M=M||"text";let De=await b[ie.findKey(b,M)||"text"](ge,x);if(V&&!g&&!Be){let oe;if(De!=null&&(typeof De.byteLength=="number"?oe=De.byteLength:typeof De.size=="number"?oe=De.size:typeof De=="string"&&(oe=typeof r=="function"?new r().encode(De).byteLength:De.length)),typeof oe=="number"&&oe>$)throw new Me("maxContentLength size of "+$+" exceeded",Me.ERR_BAD_RESPONSE,x,F)}return!Be&&K&&K(),await new Promise((oe,de)=>{Y8(oe,de,{data:De,headers:sr.from(ge.headers),status:ge.status,statusText:ge.statusText,config:x,request:F})})}catch(X){if(K&&K(),D&&D.aborted&&D.reason instanceof Me){const ne=D.reason;throw ne.config=x,F&&(ne.request=F),X!==ne&&Object.defineProperty(ne,"cause",{__proto__:null,value:X,writable:!0,enumerable:!1,configurable:!0}),ne}if(J)throw F&&!J.request&&(J.request=F),J;if(X instanceof Me)throw F&&!X.request&&(X.request=F),X;if(X&&X.name==="TypeError"&&/Load failed|fetch/i.test(X.message)){const ne=new Me("Network Error",Me.ERR_NETWORK,x,F,X&&X.response);throw Object.defineProperty(ne,"cause",{__proto__:null,value:X.cause||X,writable:!0,enumerable:!1,configurable:!0}),ne}throw Me.from(X,X&&X.code,x,F,X&&X.response)}}},LZ=new Map,eB=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,o=[r,i,n];let a=o.length,l=a,c,d,p=LZ;for(;l--;)c=o[l],d=p.get(c),d===void 0&&p.set(c,d=l?new Map:DZ(t)),p=d;return d};eB();const RN={http:HQ,xhr:wZ,fetch:{get:eB}};ie.forEach(RN,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const fT=e=>`- ${e}`,BZ=e=>ie.isFunction(e)||e===null||e===!1;function $Z(e,t){e=ie.isArray(e)?e:[e];const{length:n}=e;let r,i;const o={};for(let a=0;a<n;a++){r=e[a];let l;if(i=r,!BZ(r)&&(i=RN[(l=String(r)).toLowerCase()],i===void 0))throw new Me(`Unknown adapter '${l}'`);if(i&&(ie.isFunction(i)||(i=i.get(t))))break;o[l||"#"+a]=i}if(!i){const a=Object.entries(o).map(([c,d])=>`adapter ${c} `+(d===!1?"is not supported by the environment":"is not available in the build"));let l=n?a.length>1?`since :
501`+a.map(fT).join(`
502`):" "+fT(a[0]):"as no adapter specified";throw new Me("There is no suitable adapter to dispatch the request "+l,Me.ERR_NOT_SUPPORT)}return i}const tB={getAdapter:$Z,adapters:RN};function Kb(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Jh(null,e)}function Yb(e){const t=ie.toSafeFlatObject(e);return Kb(t),t.headers=sr.from(ie.getSafeProp(t,"headers")),t.data=Wb.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),tB.getAdapter(t.adapter||Zh.adapter,t)(t).then(function(i){Kb(t),t.response=i;try{i.data=Wb.call(t,t.transformResponse,i)}finally{delete t.response}return i.headers=sr.from(i.headers),i},function(i){if(!K8(i)&&(Kb(t),i&&i.response)){t.response=i.response;try{i.response.data=Wb.call(t,t.transformResponse,i.response)}finally{delete t.response}i.response.headers=sr.from(i.response.headers)}return Promise.reject(i)})}const Qy={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Qy[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const hT={};Qy.transitional=function(t,n,r){function i(o,a){return"[Axios v"+CN+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,l)=>{if(t===!1)throw new Me(i(a," has been removed"+(n?" in "+n:"")),Me.ERR_DEPRECATED);return n&&!hT[a]&&(hT[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,l):!0}};Qy.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function FZ(e,t,n){if(typeof e!="object"||e===null)throw new Me("options must be an object",Me.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(a){const l=e[o],c=l===void 0||a(l,o,e);if(c!==!0)throw new Me("option "+o+" must be "+c,Me.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Me("Unknown option "+o,Me.ERR_BAD_OPTION)}}const lg={assertOptions:FZ,validators:Qy},er=lg.validators;let yl=class{constructor(t){this.defaults=t||{},this.interceptors={request:new eT,response:new eT}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error)try{let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack;let a="";
vendor: 4,040 bytes, lines 502-506
502if(typeof o=="string"){const l=o.indexOf(`
503`);a=l===-1?"":o.slice(l+1)}if(!r.stack)r.stack=a;else if(a){const l=a.indexOf(`
504`),c=l===-1?-1:a.indexOf(`
505`,l+1),d=c===-1?"":a.slice(c+1);String(r.stack).endsWith(d)||(r.stack+=`
506`+a)}}catch{}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=jl(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&lg.assertOptions(r,{silentJSONParsing:er.transitional(er.boolean),forcedJSONParsing:er.transitional(er.boolean),clarifyTimeoutError:er.transitional(er.boolean),legacyInterceptorReqResOrdering:er.transitional(er.boolean),advertiseZstdAcceptEncoding:er.transitional(er.boolean),validateStatusUndefinedResolves:er.transitional(er.boolean)},!1),i!=null&&(ie.isFunction(i)?n.paramsSerializer={serialize:i}:lg.assertOptions(i,{encode:er.function,serialize:er.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),lg.assertOptions(n,{baseUrl:er.spelling("baseURL"),withXsrfToken:er.spelling("withXSRFToken")},!0),n.method=(ie.getSafeProp(n,"method")||ie.getSafeProp(this.defaults,"method")||"get").toLowerCase();let a=o&&ie.merge(o.common,o[n.method]);o&&ie.forEach(G8.concat("common"),b=>{delete o[b]}),n.headers=sr.concat(a,o);const l=[];let c=!0;this.interceptors.request.forEach(function(y){if(typeof y.runWhen=="function"&&y.runWhen(n)===!1)return;c=c&&y.synchronous;const v=n.transitional||AN;v&&v.legacyInterceptorReqResOrdering?l.unshift(y.fulfilled,y.rejected):l.push(y.fulfilled,y.rejected)});const d=[];this.interceptors.response.forEach(function(y){d.push(y.fulfilled,y.rejected)});let p,f=0,m;if(!c){const b=[Yb.bind(this),void 0];for(b.unshift(...l),b.push(...d),m=b.length,p=Promise.resolve(n);f<m;)p=p.then(b[f++],b[f++]);return p}m=l.length;let g=n;for(;f<m;){const b=l[f++],y=l[f++];try{g=b?b(g):g}catch(v){if(!y){p=Promise.reject(v);break}try{const x=y.call(this,v);ie.isThenable(x)&&(p=Promise.resolve(x).then(()=>Yb.call(this,g)))}catch(x){p=Promise.reject(x)}break}}if(!p)try{p=Yb.call(this,g)}catch(b){p=Promise.reject(b)}for(f=0,m=d.length;f<m;)p=p.then(d[f++],d[f++]);return p}getUri(t){t=jl(this.defaults,t);const n=Q8(t.baseURL,t.url,t.allowAbsoluteUrls,t);return U8(n,t.params,t.paramsSerializer)}};ie.forEach(["delete","get","head","options"],function(t){yl.prototype[t]=function(n,r){return this.request(jl(r||{},{method:t,url:n,data:r&&ie.hasOwnProp(r,"data")?r.data:void 0}))}});ie.forEach(["post","put","patch","query"],function(t){function n(r){return function(o,a,l){return this.request(jl(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}yl.prototype[t]=n(),t!=="query"&&(yl.prototype[t+"Form"]=n(!0))});let qZ=class nB{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(l=>{r.subscribe(l),o=l}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,l){r.reason||(r.reason=new Jh(o,a,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new nB(function(i){t=i}),cancel:t}}};function zZ(e){return function(n){return e.apply(null,n)}}function UZ(e){return ie.isObject(e)&&e.isAxiosError===!0}const cg={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
506alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(cg).forEach(([e,t])=>{cg[t]===void 0&&(cg[t]=e)});function rB(e){const t=new yl(e),n=O8(yl.prototype.request,t);return ie.extend(n,yl.prototype,t,{allOwnKeys:!0}),ie.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return rB(jl(e,i))},n}const dn=rB(Zh);dn.Axios=yl;dn.CanceledError=Jh;dn.CancelToken=qZ;dn.isCancel=K8;dn.VERSION=CN;dn.toFormData=Xy;dn.AxiosError=Me;dn.Cancel=dn.CanceledError;dn.all=function(t){return Promise.all(t)};dn.spread=zZ;dn.isAxiosError=UZ;dn.mergeConfig=jl;dn.AxiosHeaders=sr;dn.formToJSON=e=>W8(ie.isHTMLForm(e)?new FormData(e):e);dn.getAdapter=tB.getAdapter;dn.HttpStatusCode=cg;dn.default=dn;const{Axios:KEe,AxiosError:YEe,CanceledError:XEe,isCancel:QEe,CancelToken:ZEe,VERSION:JEe,all:ePe,Cancel:tPe,isAxiosError:nPe,spread:rPe,toFormData:iPe,AxiosHeaders:oPe,HttpStatusCode:aPe,formToJSON:sPe,getAdapter:lPe,mergeConfig:cPe,create:uPe}=dn,iB=typeof window>"u",pT=!iB&&window.self!==window.top,HZ=!iB&&typeof document>"u",oB=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),qn=[];for(let e=0;e<256;++e)qn.push((e+256).toString(16).slice(1));function VZ(e,t=0){return(qn[e[t+0]]+qn[e[t+1]]+qn[e[t+2]]+qn[e[t+3]]+"-"+qn[e[t+4]]+qn[e[t+5]]+"-"+qn[e[t+6]]+qn[e[t+7]]+"-"+qn[e[t+8]]+qn[e[t+9]]+"-"+qn[e[t+10]]+qn[e[t+11]]+qn[e[t+12]]+qn[e[t+13]]+qn[e[t+14]]+qn[e[t+15]]).toLowerCase()}let Xb;const WZ=new Uint8Array(16);function GZ(){if(!Xb){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Xb=crypto.getRandomValues.bind(crypto)}return Xb(WZ)}const KZ=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),mT={randomUUID:KZ};function YZ(e,t,n){var i;e=e||{};const r=e.random??((i=e.rng)==null?void 0:i.call(e))??GZ();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,VZ(r)}function XZ(e,t,n){return mT.randomUUID&&!e?mT.randomUUID():YZ(e)}const Yd=typeof window<"u"?window:{base44SharedInstances:{}};function QZ(e,t){return Yd.base44SharedInstances||(Yd.base44SharedInstances={}),Yd.base44SharedInstances[e]||(Yd.base44SharedInstances[e]={instance:t()}),Yd.base44SharedInstances[e].instance}const ZZ="__user_heartbeat_event__",JZ="__initialization_event__",eJ="__session_duration_event__",gT="analytics-enable",yT="base44_analytics_session_id",tJ={enabled:!0,maxQueueSize:1e3,throttleTime:1e3,batchSize:30,heartBeatInterval:60*1e3},nJ="analytics",Et=QZ(nJ,()=>({requestsQueue:[],isProcessing:!1,isHeartBeatProcessing:!1,wasInitializationTracked:!1,sessionContext:null,sessionStartTime:null,fallbackSessionId:null,config:{...tJ,...fJ()}})),rJ=({axiosClient:e,serverUrl:t,appId:n,userAuthModule:r,enabled:i})=>{var o;const{maxQueueSize:a,throttleTime:l,batchSize:c}=Et.config;if(!i||!(!((o=Et.config)===null||o===void 0)&&o.enabled)||HZ)return{track:()=>{},cleanup:()=>{}};let d;const p=`${t}/api/apps/${n}/analytics/track/batch`,f=async S=>{await e.request({method:"POST",url:`/apps/${n}/analytics/track/batch`,data:{events:S}})},m=S=>{try{const N=JSON.stringify({events:S}),O=new Blob([N],{type:"application/json"});return typeof navigator>"u"||N.length>6e4||!navigator.sendBeacon(p,O)}catch{return!1}},g=async(S,N={})=>
506{if(S.length===0)return;const O=await dJ(r),E=S.map(uJ(O));try{(!N.isBeacon||!m(E))&&await f(E)}catch{}},b=()=>{xT(g,{throttleTime:l,batchSize:c})},y=S=>{if(Et.requestsQueue.length>=a)return;const N=cJ();Et.requestsQueue.push({...S,...N}),b()},v=()=>{xT(g,{throttleTime:l,batchSize:c}),d=bT(y),sJ()},x=()=>{vT(),d==null||d(),lJ(y);const S=Et.requestsQueue.splice(0);g(S,{isBeacon:!0})},_=()=>{typeof window>"u"||(document.visibilityState==="hidden"?x():document.visibilityState==="visible"&&v())},j=()=>{vT(),d==null||d(),typeof window<"u"&&window.removeEventListener("visibilitychange",_)};return b(),d=bT(y),iJ(y),typeof window<"u"&&window.addEventListener("visibilitychange",_),{track:y,cleanup:j}};function vT(){Et.isProcessing=!1}async function xT(e,t){if(Et.isProcessing)return;Et.isProcessing=!0;const{throttleTime:n=1e3,batchSize:r=30}=t??{};for(;Et.isProcessing&&Et.requestsQueue.length>0;){const i=Et.requestsQueue.splice(0,r);i.length&&await e(i),await new Promise(o=>setTimeout(o,n))}Et.isProcessing=!1}function bT(e){var t;if(typeof window>"u"||Et.isHeartBeatProcessing||((t=Et.config.heartBeatInterval)!==null&&t!==void 0?t:0)<10)return()=>{};Et.isHeartBeatProcessing=!0;const n=setInterval(()=>{e({eventName:ZZ})},Et.config.heartBeatInterval);return()=>{clearInterval(n),Et.isHeartBeatProcessing=!1}}function iJ(e){typeof window>"u"||Et.wasInitializationTracked||(Et.wasInitializationTracked=!0,e({eventName:JZ,properties:{referrer:document==null?void 0:document.referrer,...aJ()}}))}const oJ=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","utm_id","gclid","gbraid","wbraid","gad_source","gad_campaignid","fbclid","msclkid","ttclid","li_fat_id"];function aJ(){try{const e=new URLSearchParams(window.location.search),t={};for(const n of oJ){const r=e.get(n);r&&(t[n]=r.slice(0,500))}return t}catch{return{}}}function sJ(){typeof window>"u"||Et.sessionStartTime!==null||(Et.sessionStartTime=new Date().toISOString())}function lJ(e){if(typeof window>"u"||Et.sessionStartTime===null)return;const t=new Date().getTime()-new Date(Et.sessionStartTime).getTime();Et.sessionStartTime=null,e({eventName:eJ,properties:{sessionDuration:t}})}function cJ(){var e,t;return{timestamp:new Date().toISOString(),pageUrl:typeof window<"u"&&(t=(e=window.location)===null||e===void 0?void 0:e.pathname)!==null&&t!==void 0?t:null}}function uJ(e){return t=>({event_name:t.eventName,properties:t.properties,timestamp:t.timestamp,page_url:t.pageUrl,...e})}let mf=null;function wT(){Et.sessionContext=null,mf=null}async function dJ(e){if(!Et.sessionContext){if(!e.hasToken())return{user_id:null,session_id:kg()};if(!mf){const r=kg();mf=e.me().then(i=>({user_id:i.id,session_id:r})).catch(()=>({user_id:null,session_id:r}))}const t=mf,n=await t;return mf===t&&(Et.sessionContext=n),n}return Et.sessionContext}function fJ(){if(typeof window>"u"||!window.location)return;const t=new URLSearchParams(window.location.search).get(gT);if(t==null||!t.length)return;const n=new URLSearchParams(window.location.search);n.delete(gT);const r=window.location.pathname+(n.toString()?"?"+n.toString():"");return window.history.replaceState({},"",r),{enabled:t==="true"}}function _T(){var e;return(e=Et.fallbackSessionId)!==null&&e!==void 0?e:Et.fallbackSessionId=oB()}function kg(){if(typeof window>"u")return _T();try{const e=localStorage.getItem(yT);if(!e){const t=oB();return localStorage.setItem(yT,t),t}return e}catch{return _T()}}class hJ extends Error{constructor(t,n,r,i,o){super(t),this.name="Base44Error",this.status=n,this.code=r,this.data=i,this.originalError=o}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code,data:this.data}}}function Ac({baseURL:e,headers:t={},token:n,interceptResponses:r=!0,onError:i}){const o=dn.create({baseURL:e,headers:{"Content-Type":"application/json",Accept:"application/json",...t}});return n&&(o.defaults.headers.common.Authorization=`Bearer ${n}`),o.interceptors.request.use(a=>{typeof window<"u"&&(window.location&&a.headers.set("X-Origin-URL",window.location.href),a.headers.get("Authorization")||a.headers.set("X-Base44-Anonymous-Id",kg()));const l=XZ();if(a.requestId=l,pT)try{window.parent.postMessage({type:"api-request-start",requestId:l,data:{url:e+a.url,method:a.method,body:a.data instanceof FormData?"[FormData object]":a.data}},"*")}catch{}return a}),r&&o.interceptors.response.use(a=>{var l;const c=(l=a.config)===null||l===void 0?void 0:l.requestId;try{pT&&c&&window.parent.postMessage({type:"api-request-end",requestId:c,data:{statusCode:a.status,response:a.data}},"*")}catch{}return a.data},a=>{var l,c,d,p,f,m,g,b,y,v,x,_;const j=(l=a.response)===null||l===void 0?void 0:l.data,S=((c=j==null?void 0:j.error)===null||c===void 0?void 0:c.message)||(j==null?void 0:j.message)||(j==null?void 0:j.detail)||a.message,N=new hJ(S,(d=a.response)===null||d===void 0?void 0:d.status,(v=(m=(f=(p=j==null?void 0:j.error)===null||p===void 0?void 0:p.code)!==null&&f!==void 0?f:j==null?void 0:j.code)!==null&&m!==void 0?m:(y=(b=(g=a.response)===null||g===void 0?void 0:g.headers)===null||b===void 0?void 0:b.get)===null||y===void 0?void 0:y.call(b,"x-base44-connector-error"))!==null&&v!==void 0?v:(_=(x=a.response)===null||x===void 0?void 0:x.headers)===null||_===void 0?void 0:_["x-base44-connector-error"],j,a);return i==null||i(N),Promise.reject(N)}),o}function ST(e){const{axios:t,appId:n,getSocket:r}=e;return new Proxy({},{get(i,o){if(!(typeof o!="string"||o==="then"||o.startsWith("_")))return gJ(t,n,o,r)}})}function pJ(e){var t;try{const n=JSON.parse(e);return{type:n.type,data:n.data,id:n.id||((t=n.data)===null||t===void 0?void 0:t.id),timestamp:n.timestamp||new Date().toISOString()}}catch(n){return console.warn("[Base44 SDK] Failed to parse realtime message:",n),null}}const mJ=100;function jT(e){return typeof e=="object"&&e!==null}function gJ(e,t,n,r){const i=`/apps/${t}/entities/${n}`,o=c=>Array.isArray(c)?c.join(","):c,a=(c,d,p,f,m)=>{const g={};return m&&(g.q=JSON.stringify(m)),c&&(g.sort=c),d&&(g.limit=d),p&&(g.skip=p),f&&(g.fields=o(f)),e.get(i,{params:g})},l=(c,d)=>{const p={};return d&&(p.q=JSON.stringify(d)),p.limit=c.limit||mJ,c.cursor&&(p.cursor=c.cursor),"distinct"in c?p.distinct=c.distinct:(c.sort&&(p.sort=c.sort),c.fields&&(p.fields=o(c.fields))),e.get(`${i}/v2/list`,{params:p})};return{async list(...c){const[d,p,f,m]=c;
506return jT(d)?l(d):a(d,p,f,m)},async filter(c,...d){const[p,f,m,g]=d;return jT(p)?l(p,c):a(p,f,m,g,c)},async get(c){return e.get(`${i}/${c}`)},async create(c){return e.post(i,c)},async update(c,d){return e.put(`${i}/${c}`,d)},async delete(c){return e.delete(`${i}/${c}`)},async deleteMany(c){return e.delete(i,{data:c})},async bulkCreate(c){return e.post(`${i}/bulk`,c)},async updateMany(c,d){return e.patch(`${i}/update-many`,{query:c,data:d})},async count(c){const d={};return c&&(d.q=JSON.stringify(c)),(await e.get(`${i}/count`,{params:d})).count},async aggregate(c){return e.post(`${i}/aggregate`,c)},async upsert(c,d){return e.post(`${i}/upsert`,{records:c,key:d.key})},async bulkUpdate(c){return e.put(`${i}/bulk`,c)},async importEntities(c){const d=new FormData;return d.append("file",c,c.name),e.post(`${i}/import`,d,{headers:{"Content-Type":"multipart/form-data"}})},subscribe(c){const d=`entities:${t}:${n}`;return r().subscribeToRoom(d,{update_model:m=>{var g;const b=pJ(m.data);if(b){b.type!=="delete"&&(!((g=b.data)===null||g===void 0)&&g._oversize)&&console.error(`[Base44 SDK] Realtime broadcast for ${n}#${b.id} was oversize and got slimmed for transport. Fields >10 KB are empty and the rest of the record may be a stub. Call \`entities.${n}.get("${b.id}")\` to fetch the full record.`);try{c(b)}catch(y){console.error("[Base44 SDK] Subscription callback error:",y)}}}})}}}function yJ(e,t){return{async call(n,r,i){if(!(n!=null&&n.trim()))throw new Error("Integration slug is required and cannot be empty");if(!(r!=null&&r.trim()))throw new Error("Operation ID is required and cannot be empty");const{pathParams:o,queryParams:a,...l}=i??{},c={...l,...o&&{path_params:o},...a&&{query_params:a}};return await e.post(`/apps/${t}/integrations/custom/${n}/${r}`,c)}}}function NT(e,t){const n=yJ(e,t);return new Proxy({},{get(r,i){if(!(typeof i!="string"||i==="then"||i.startsWith("_")))return i==="custom"?n:new Proxy({},{get(o,a){if(!(typeof a!="string"||a==="then"||a.startsWith("_")))return async l=>{if(typeof l=="string")throw new Error(`Integration ${a} must receive an object with named parameters, received: ${l}`);let c,d;return l instanceof FormData||l&&Object.values(l).some(p=>p instanceof File)?(c=new FormData,Object.keys(l).forEach(p=>{l[p]instanceof File?c.append(p,l[p],l[p].name):typeof l[p]=="object"&&l[p]!==null?c.append(p,JSON.stringify(l[p])):c.append(p,l[p])}),d="multipart/form-data"):(c=l,d="application/json"),i==="Core"?e.post(`/apps/${t}/integration-endpoints/Core/${a}`,c||l,{headers:{"Content-Type":d}}):e.post(`/apps/${t}/integration-endpoints/installable/${i}/integration-endpoints/${a}`,c||l,{headers:{"Content-Type":d}})}}})}})}function vJ(){return typeof window>"u"?!1:window!==window.parent}function xJ(e,t,n){const o=Math.round(window.screenX+(window.outerWidth-500)/2),a=Math.round(window.screenY+(window.outerHeight-600)/2),l=window.open(e,"base44_auth",`width=500,height=600,left=${o},top=${a},resizable=yes,scrollbars=yes`);if(!l)return;const c=()=>{window.removeEventListener("message",d),clearInterval(p),l.closed||l.close()},d=f=>{var m;if(f.origin!==n||f.source!==l||!(!((m=f.data)===null||m===void 0)&&m.access_token))return;c();const g=new URL(t),{access_token:b,is_new_user:y}=f.data;g.searchParams.set("access_token",b),y!=null&&g.searchParams.set("is_new_user",String(y)),window.location.href=g.toString()},p=setInterval(()=>{l.closed&&c()},500);window.addEventListener("message",d)}function bJ(e,t,n,r){let i=null;const o=()=>{i=null};let a=!!r.token;return{hasToken(){return a},async me(){const l=i??e.get(`/apps/${n}/entities/User/me`).finally(()=>{i===l&&(i=null)});return i=l,l},async updateMe(l){return e.put(`/apps/${n}/entities/User/me`,l)},redirectToLogin(l){if(typeof window>"u")throw new Error("Login method can only be used in a browser environment");const c=l?new URL(l,window.location.origin).toString():window.location.href,d=`${r.appBaseUrl}/login?from_url=${encodeURIComponent(c)}`;window.location.href=d},loginWithProvider(l,c="/"){const d=new URL(c,window.location.origin).toString(),p=`app_id=${n}&from_url=${encodeURIComponent(d)}`;let f;l==="sso"?f=`/apps/${n}/auth/sso/login`:f=`/apps/auth${l==="google"?"":`/${l}`}/login`;const m=`${r.appBaseUrl}/api${f}?${p}`;if(vJ()){const g=`${m}&popup_origin=${encodeURIComponent(window.location.origin)}`;return xJ(g,d,window.location.origin)}window.location.href=m},logout(l){if(delete e.defaults.headers.common.Authorization,o(),wT(),a=!1,typeof window<"u"){if(window.localStorage)try{window.localStorage.removeItem("base44_access_token"),window.localStorage.removeItem("token")}catch(p){console.error("Failed to remove token from localStorage:",p)}const c=l||window.location.href,d=`${r.appBaseUrl}/api/apps/auth/logout?from_url=${encodeURIComponent(c)}`;window.location.href=d}},setToken(l,c=!0){if(l&&(o(),wT(),a=!0,e.defaults.headers.common.Authorization=`Bearer ${l}`,t.defaults.headers.common.Authorization=`Bearer ${l}`,c&&typeof window<"u"&&window.localStorage))try{window.localStorage.setItem("base44_access_token",l),window.localStorage.setItem("token",l)}catch(d){console.error("Failed to save token to localStorage:",d)}},async loginViaEmailPassword(l,c,d){var p;try{const f=await e.post(`/apps/${n}/auth/login`,{email:l,password:c,...d&&{turnstile_token:d}}),{access_token:m,user:g}=f;return m&&this.setToken(m),{access_token:m,user:g}}catch(f){throw((p=f.response)===null||p===void 0?void 0:p.status)===401&&await this.logout(),f}},async isAuthenticated(){try{return await this.me(),!0}catch{return!1}},inviteUser(l,c){return e.post(`/apps/${n}/users/invite-user`,{user_email:l,role:c})},register(l){return e.post(`/apps/${n}/auth/register`,l)},verifyOtp({email:l,otpCode:c}){return e.post(`/apps/${n}/auth/verify-otp`,{email:l,otp_code:c})},resendOtp(l){return e.post(`/apps/${n}/auth/resend-otp`,{email:l})},resetPasswordRequest(l){return e.post(`/apps/${n}/auth/reset-password-request`,{email:l})},resetPassword({resetToken:l,newPassword:c}){return e.post(`/apps/${n}/auth/reset-password`,{reset_token:l,new_password:c})},changePassword({userId:l,currentPassword:c,newPassword:d}){return e.post(`/apps/${n}/auth/change-password`,{user_id:l,current_password:c,new_password:d})}}}function wJ(e,t){return{async getAccessToken(n){const r=`/apps/${t}/auth/sso/accesstoken/${n}`;return e.get(r)},async getIdToken(n){const r=`/apps/${t}/auth/sso/idtoken/${n}`;return e.get(r)}}}const _J=new Set(["GET","POST","PUT","PATCH","DELETE","HEAD"]);
506function SJ(e,t){return{async getAccessToken(n){if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");return(await e.get(`/apps/${t}/external-auth/tokens/${encodeURIComponent(n)}`)).access_token},async getConnection(n){var r;if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");const o=await e.get(`/apps/${t}/external-auth/tokens/${encodeURIComponent(n)}`);return{accessToken:o.access_token,connectionConfig:(r=o.connection_config)!==null&&r!==void 0?r:null}},async getWorkspaceConnection(n){var r;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const o=await e.get(`/apps/${t}/external-auth/tokens/connectors/${encodeURIComponent(n)}`);return{accessToken:o.access_token,connectionConfig:(r=o.connection_config)!==null&&r!==void 0?r:null}},async getCurrentAppUserAccessToken(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await e.get(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}/token`)).access_token},async getCurrentAppUserConnection(n){var r;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const o=await e.get(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}/token`);return{accessToken:o.access_token,connectionConfig:(r=o.connection_config)!==null&&r!==void 0?r:null}},async callApi(n,r){return aB(n,"Integration type"),jJ(e,`/apps/${t}/connectors/${encodeURIComponent(n)}/call`,r)}}}function aB(e,t){if(!e||typeof e!="string")throw new Error(`${t} is required and must be a string`)}async function jJ(e,t,n){var r,i,o,a,l,c,d,p,f;if(!n||typeof n!="object")throw new Error("Request is required and must be an object");aB(n.path,"Request path");const m=(r=n.method)!==null&&r!==void 0?r:"GET";if(!_J.has(m))throw new Error("Request method must be one of GET, POST, PUT, PATCH, DELETE, or HEAD");const b=await e.post(t,{method:m,...n.host==null?{}:{host:n.host},path:n.path,query:(i=n.query)!==null&&i!==void 0?i:{},headers:(o=n.headers)!==null&&o!==void 0?o:{},body:(a=n.body)!==null&&a!==void 0?a:null});return{success:b.success,phase:b.phase,status:(l=b.status_code)!==null&&l!==void 0?l:null,data:b.data,dataBase64:(c=b.data_base64)!==null&&c!==void 0?c:null,contentType:(d=b.content_type)!==null&&d!==void 0?d:null,headers:(p=b.headers)!==null&&p!==void 0?p:{},creditsCharged:(f=b.credits_charged)!==null&&f!==void 0?f:0}}function NJ(e,t){return{async connectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await e.post(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}/initiate`)).redirect_url},async disconnectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");await e.delete(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}`)}}}function Za(e={}){const{storageKey:t="base44_access_token",paramName:n="access_token",saveToStorage:r=!0,removeFromUrl:i=!0}=e;let o=null;if(typeof window<"u"&&window.location)try{const a=new URLSearchParams(window.location.search);if(o=a.get(n),o){if(r&&kJ(o,{storageKey:t}),i){a.delete(n);const l=`${window.location.pathname}${a.toString()?`?${a.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,l)}return o}}catch(a){console.error("Error retrieving token from URL:",a)}if(typeof window<"u"&&window.localStorage)try{return o=window.localStorage.getItem(t),o}catch(a){console.error("Error retrieving token from local storage:",a)}return null}function kJ(e,t){const{storageKey:n="base44_access_token"}=t;if(typeof window>"u"||!window.localStorage||!e)return!1;try{return window.localStorage.setItem(n,e),window.localStorage.setItem("token",e),!0}catch(r){return console.error("Error saving token to local storage:",r),!1}}function OJ({axios:e,serviceRoleAxios:t,appId:n,serverUrl:r,functionsVersion:i,platformHeaders:o}){const a=new Headers(o),l=c=>{const d=c.defaults.headers.common.Authorization;return typeof d=="string"&&d.startsWith("Bearer ")?d:null};return async function(d,p={}){EJ(d);const{fetch:f=fetch,...m}=p,g=new Headers(p.headers),b=(y,v)=>{v&&!g.has(y)&&g.set(y,v)};return b("Authorization",l(e)),b("Base44-Service-Authorization",l(t)),b("Base44-App-Id",n),b("Base44-Api-Url",r),b("Base44-Functions-Version",i),b("Base44-State",a.get("Base44-State")),b("X-Data-Env",a.get("X-Data-Env")),f(d,{...m,headers:g})}}function EJ(e){if(typeof e!="string"||e==="")throw new Error("fetchWithAuth() requires a path, such as '/api/orders'.");const t=e.replace(/[\t\n\r]/g,"").replace(/^[\x00-\x20]+/,"");if(!t.startsWith("/")||t.startsWith("//")||t.startsWith("/\\"))throw new Error(`fetchWithAuth() only sends requests to your app's own origin, so your app's credentials never reach a third party. "${e}" is not a path on it — pass a relative path such as '/api/orders'. Use base44.functions.fetch() to call a Base44 backend function, or plain fetch() for another origin.`)}function kT(e,t,n){const r=(o,a)=>o?`${String(o).replace(/\/$/,"")}${a}`:a,i=o=>{const a=new Headers;if(n!=null&&n.getAuthHeaders){const l=n.getAuthHeaders();Object.entries(l).forEach(([c,d])=>{d!=null&&a.set(c,String(d))})}
506return o&&new Headers(o).forEach((l,c)=>{a.set(c,l)}),a};return{async invoke(o,a){if(typeof a=="string")throw new Error(`Function ${o} must receive an object with named parameters, received: ${a}`);let l,c;return a instanceof FormData||a&&Object.values(a).some(d=>d instanceof File)?(l=new FormData,Object.keys(a).forEach(d=>{a[d]instanceof File?l.append(d,a[d],a[d].name):typeof a[d]=="object"&&a[d]!==null?l.append(d,JSON.stringify(a[d])):l.append(d,a[d])}),c="multipart/form-data"):(l=a,c="application/json"),e.post(`/apps/${t}/functions/${o}`,l||a,{headers:{"Content-Type":c}})},async fetch(o,a={}){const c=`/functions${o.startsWith("/")?o:`/${o}`}`,d=i(a.headers),p={...a,headers:d};return await fetch(r(n==null?void 0:n.baseURL,c),p)}}}function OT({axios:e,getSocket:t,appId:n,serverUrl:r,token:i}){const o=`/apps/${n}/agents`,a={},l=()=>e.get(`${o}/conversations`),c=y=>e.get(`${o}/conversations/${y}`);return{getConversations:l,getConversation:c,listConversations:y=>e.get(`${o}/conversations`,{params:y}),createConversation:y=>e.post(`${o}/conversations`,y),addMessage:async(y,v)=>e.post(`${o}/conversations/v2/${y.id}/messages`,v),subscribeToConversation:(y,v)=>{const x=`/agent-conversations/${y}`,_=t(),j=c(y).then(S=>(a[y]=S,S));return _.subscribeToRoom(x,{connect:()=>{},update_model:async({data:S})=>{const N=JSON.parse(S);if(N._message){await j;const O=N._message,E=a[y];if(E){const A=E.messages||[],I=A.findIndex(C=>C.id===O.id),M=I!==-1?A.map((C,R)=>R===I?O:C):[...A,O];a[y]={...E,messages:M},v==null||v(a[y])}}}})},getWhatsAppConnectURL:y=>{const v=`${r}/api/apps/${n}/agents/${encodeURIComponent(y)}/whatsapp`,x=i??Za();return x?`${v}?token=${x}`:v},getTelegramConnectURL:y=>{const v=`${r}/api/apps/${n}/agents/${encodeURIComponent(y)}/telegram`,x=i??Za();return x?`${v}?token=${x}`:v}}}const ET={openai:"openai",typesafe:"typesafe"};function PT({serverUrl:e,token:t,appId:n,headers:r={}}){return{connection:({provider:o="openai"}={})=>{var a;if(!Object.prototype.hasOwnProperty.call(ET,o))throw new Error(`Unsupported AI Gateway provider: ${o}`);const l=ET[o];return{baseURL:`${e}/api/apps/${n}/ai/${l}/v1`,token:(a=t??Za())!==null&&a!==void 0?a:"",headers:{...r}}}}}function AT(e,t){const n=`/app-logs/${t}`;return{async logUserInApp(r){await e.post(`${n}/log-user-in-app/${r}`)},async fetchLogs(r={}){return await e.get(n,{params:r})},async getStats(r={}){return await e.get(`${n}/stats`,{params:r})}}}function PJ(e,t){return{async getPublicSettings(){return e.get(`/apps/public/prod/public-settings/by-id/${t}`)}}}function AJ(e,t){return{async inviteUser(n,r){if(r!=="user"&&r!=="admin")throw new Error(`Invalid role: "${r}". Role must be either "user" or "admin".`);return await e.post(`/apps/${t}/runtime/users/invite-user`,{user_email:n,role:r})}}}const po=Object.create(null);po.open="0";po.close="1";po.ping="2";po.pong="3";po.message="4";po.upgrade="5";po.noop="6";const ug=Object.create(null);Object.keys(po).forEach(e=>{ug[po[e]]=e});const lS={type:"error",data:"parser error"},sB=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",lB=typeof ArrayBuffer=="function",cB=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,MN=({type:e,data:t},n,r)=>sB&&t instanceof Blob?n?r(t):TT(t,r):lB&&(t instanceof ArrayBuffer||cB(t))?n?r(t):TT(new Blob([t]),r):r(po[e]+(t||"")),TT=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function CT(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Qb;function TJ(e,t){if(sB&&e.data instanceof Blob)return e.data.arrayBuffer().then(CT).then(t);if(lB&&(e.data instanceof ArrayBuffer||cB(e.data)))return t(CT(e.data));MN(e,!1,n=>{Qb||(Qb=new TextEncoder),t(Qb.encode(n))})}const RT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",gf=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<RT.length;e++)gf[RT.charCodeAt(e)]=e;const CJ=e=>{let t=e.length*.75,n=e.length,r,i=0,o,a,l,c;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const d=new ArrayBuffer(t),p=new Uint8Array(d);for(r=0;r<n;r+=4)o=gf[e.charCodeAt(r)],a=gf[e.charCodeAt(r+1)],l=gf[e.charCodeAt(r+2)],c=gf[e.charCodeAt(r+3)],p[i++]=o<<2|a>>4,p[i++]=(a&15)<<4|l>>2,p[i++]=(l&3)<<6|c&63;return d},RJ=typeof ArrayBuffer=="function",IN=(e,t)=>{if(typeof e!="string")return{type:"message",data:uB(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:MJ(e.substring(1),t)}:ug[n]?e.length>1?{type:ug[n],data:e.substring(1)}:{type:ug[n]}:lS},MJ=(e,t)=>{if(RJ){const n=CJ(e);return uB(n,t)}else return{base64:!0,data:e}},uB=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},dB="�",IJ=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((o,a)=>{MN(o,!1,l=>{r[a]=l,++i===n&&t(r.join(dB))})})}
vendor: 3,912 bytes, line 506
506,DJ=(e,t)=>{const n=e.split(dB),r=[];for(let i=0;i<n.length;i++){const o=IN(n[i],t);if(r.push(o),o.type==="error")break}return r};function LJ(){return new TransformStream({transform(e,t){TJ(e,n=>{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const o=new DataView(i.buffer);o.setUint8(0,126),o.setUint16(1,r)}else{i=new Uint8Array(9);const o=new DataView(i.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let Zb;function Pm(e){return e.reduce((t,n)=>t+n.length,0)}function Am(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function BJ(e,t){Zb||(Zb=new TextDecoder);const n=[];let r=0,i=-1,o=!1;return new TransformStream({transform(a,l){for(n.push(a);;){if(r===0){if(Pm(n)<1)break;const c=Am(n,1);o=(c[0]&128)===128,i=c[0]&127,i<126?r=3:i===126?r=1:r=2}else if(r===1){if(Pm(n)<2)break;const c=Am(n,2);i=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),r=3}else if(r===2){if(Pm(n)<8)break;const c=Am(n,8),d=new DataView(c.buffer,c.byteOffset,c.length),p=d.getUint32(0);if(p>Math.pow(2,21)-1){l.enqueue(lS);break}i=p*Math.pow(2,32)+d.getUint32(4),r=3}else{if(Pm(n)<i)break;const c=Am(n,i);l.enqueue(IN(o?c:Zb.decode(c),t)),r=0}if(i===0||i>e){l.enqueue(lS);break}}}})}const fB=4;function yn(e){if(e)return $J(e)}function $J(e){for(var t in yn.prototype)e[t]=yn.prototype[t];return e}yn.prototype.on=yn.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};yn.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};yn.prototype.off=yn.prototype.removeListener=yn.prototype.removeAllListeners=yn.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+e],this};yn.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this};yn.prototype.emitReserved=yn.prototype.emit;yn.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};yn.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Zy=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),ui=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),FJ="arraybuffer";function hB(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const qJ=ui.setTimeout,zJ=ui.clearTimeout;function Jy(e,t){t.useNativeTimers?(e.setTimeoutFn=qJ.bind(ui),e.clearTimeoutFn=zJ.bind(ui)):(e.setTimeoutFn=ui.setTimeout.bind(ui),e.clearTimeoutFn=ui.clearTimeout.bind(ui))}const UJ=1.33;function HJ(e){return typeof e=="string"?VJ(e):Math.ceil((e.byteLength||e.size)*UJ)}function VJ(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function pB(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function WJ(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function GJ(e){let t={},n=e.split("&");for(let r=0,i=n.length;r<i;r++){let o=n[r].split("=");
vendor: 6,263 bytes, line 506
506t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return t}class KJ extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class DN extends yn{constructor(t){super(),this.writable=!1,Jy(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved("error",new KJ(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=IN(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=WJ(t);return n.length?"?"+n:""}}class YJ extends DN{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};DJ(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,IJ(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=pB()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let mB=!1;try{mB=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const XJ=mB;function QJ(){}class ZJ extends YJ{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class ao extends yn{constructor(t,n,r){super(),this.createRequest=t,Jy(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=hB(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=ao.requestsCount++,ao.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=QJ,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete ao.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}ao.requestsCount=0;ao.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",MT);else if(typeof addEventListener=="function"){const e="onpagehide"in ui?"pagehide":"unload";addEventListener(e,MT,!1)}}function MT(){for(let e in ao.requests)ao.requests.hasOwnProperty(e)&&ao.requests[e].abort()}const JJ=(function(){const e=gB({xdomain:!1});return e&&e.responseType!==null})();class eee extends ZJ{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=JJ&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new ao(gB,this.uri(),t)}}function gB(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||XJ))return new XMLHttpRequest}catch{}if(!t)try{return new ui[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const yB=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class tee extends DN{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=yB?{}:hB(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(i){return this.emitReserved("error",i)}
vendor: 16,023 bytes, line 506
506this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;MN(r,this.supportsBinary,o=>{try{this.doWrite(r,o)}catch{}i&&Zy(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=pB()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const Jb=ui.WebSocket||ui.MozWebSocket;class nee extends tee{createSocket(t,n,r){return yB?new Jb(t,n,r):n?new Jb(t,n):new Jb(t)}doWrite(t,n){this.ws.send(n)}}class ree extends DN{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=BJ(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=LJ();i.readable.pipeTo(t.writable),this._writer=i.writable.getWriter();const o=()=>{r.read().then(({done:l,value:c})=>{l||(this.onPacket(c),o())}).catch(l=>{})};o();const a={type:"open"};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this._writer.write(a).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;this._writer.write(r).then(()=>{i&&Zy(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const iee={websocket:nee,webtransport:ree,polling:eee},oee=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,aee=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function cS(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=oee.exec(e||""),o={},a=14;for(;a--;)o[aee[a]]=i[a]||"";return n!=-1&&r!=-1&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=see(o,o.path),o.queryKey=lee(o,o.query),o}function see(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function lee(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(n[i]=o)}),n}const uS=typeof addEventListener=="function"&&typeof removeEventListener=="function",dg=[];uS&&addEventListener("offline",()=>{dg.forEach(e=>e())},!1);class ns extends yn{constructor(t,n){if(super(),this.binaryType=FJ,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=cS(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=cS(n.host).host);Jy(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{const i=r.prototype.name;this.transports.push(i),this._transportsByName[i]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=GJ(this.opts.query)),uS&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},dg.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=fB,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&ns.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",ns.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const i=this.writeBuffer[r].data;if(i&&(n+=HJ(i)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,Zy(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const o={type:t,data:n,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(ns.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),uS&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=dg.indexOf(this._offlineEventListener);r!==-1&&dg.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}ns.protocol=fB;class cee extends ns{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;ns.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",f=>{if(!r)if(f.type==="pong"&&f.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;ns.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(p(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const m=new Error("probe error");m.transport=n.name,this.emitReserved("upgradeError",m)}}))};function o(){r||(r=!0,p(),n.close(),n=null)}const a=f=>{const m=new Error("probe error: "+f);m.transport=n.name,o(),this.emitReserved("upgradeError",m)};function l(){a("transport closed")}function c(){a("socket closed")}function d(f){n&&f.name!==n.name&&o()}const p=()=>{n.removeListener("open",i),n.removeListener("error",a),n.removeListener("close",l),this.off("close",c),this.off("upgrading",d)};n.once("open",i),n.once("error",a),n.once("close",l),this.once("close",c),this.once("upgrading",d),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let uee=class extends cee{constructor(t,n={}){const r=typeof t=="object"?t:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(i=>iee[i]).filter(i=>!!i)),super(t,r)}};function dee(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=cS(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const o=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+t,r.href=r.protocol+"://"+o+(n&&n.port===r.port?"":":"+r.port),r}const fee=typeof ArrayBuffer=="function",hee=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,vB=Object.prototype.toString,pee=typeof Blob=="function"||typeof Blob<"u"&&vB.call(Blob)==="[object BlobConstructor]",mee=typeof File=="function"||typeof File<"u"&&vB.call(File)==="[object FileConstructor]";function LN(e){return fee&&(e instanceof ArrayBuffer||hee(e))||pee&&e instanceof Blob||mee&&e instanceof File}function fg(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(fg(e[n]))return!0;return!1}if(LN(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return fg(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&fg(e[n]))return!0;return!1}function gee(e){const t=[],n=e.data,r=e;return r.data=dS(n,t),r.attachments=t.length,{packet:r,buffers:t}}function dS(e,t){if(!e)return e;if(LN(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=dS(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=dS(e[r],t));return n}return e}function yee(e,t){return e.data=fS(e.data,t),delete e.attachments,e}function fS(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=fS(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=fS(e[n],t));return e}const vee=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var yt;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(yt||(yt={}));class xee{constructor(t){this.replacer=t}encode(t){return(t.type===yt.EVENT||t.type===yt.ACK)&&fg(t)?this.encodeAsBinary({type:t.type===yt.EVENT?yt.BINARY_EVENT:yt.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===yt.BINARY_EVENT||t.type===yt.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=gee(t),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}class BN extends yn{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===yt.BINARY_EVENT;r||n.type===yt.BINARY_ACK?(n.type=r?yt.EVENT:yt.ACK,this.reconstructor=new bee(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(LN(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(yt[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===yt.BINARY_EVENT||r.type===yt.BINARY_ACK){const o=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const a=t.substring(o,n);if(a!=Number(a)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(a)}if(t.charAt(n+1)==="/"){const o=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(o,n)}else r.nsp="/";const i=t.charAt(n+1);if(i!==""&&Number(i)==i){const o=n+1;for(;++n;){const a=t.charAt(n);if(a==null||Number(a)!=a){--n;break}if(n===t.length)break}r.id=Number(t.substring(o,n+1))}
vendor: 4,508 bytes, line 506
506if(t.charAt(++n)){const o=this.tryParse(t.substr(n));if(BN.isPayloadValid(r.type,o))r.data=o;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case yt.CONNECT:return IT(n);case yt.DISCONNECT:return n===void 0;case yt.CONNECT_ERROR:return typeof n=="string"||IT(n);case yt.EVENT:case yt.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&vee.indexOf(n[0])===-1);case yt.ACK:case yt.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class bee{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=yee(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function IT(e){return Object.prototype.toString.call(e)==="[object Object]"}const wee=Object.freeze(Object.defineProperty({__proto__:null,Decoder:BN,Encoder:xee,get PacketType(){return yt}},Symbol.toStringTag,{value:"Module"}));function Ri(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const _ee=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class xB extends yn{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Ri(t,"open",this.onopen.bind(this)),Ri(t,"packet",this.onpacket.bind(this)),Ri(t,"error",this.onerror.bind(this)),Ri(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var r,i,o;if(_ee.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const a={type:yt.EVENT,data:n};if(a.options={},a.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const p=this.ids++,f=n.pop();this._registerAckCallback(p,f),a.id=p}const l=(i=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||i===void 0?void 0:i.writable,c=this.connected&&!(!((o=this.io.engine)===null||o===void 0)&&o._hasPingExpired());return this.flags.volatile&&!l||(c?(this.notifyOutgoingListeners(a),this.packet(a)):this.sendBuffer.push(a)),this.flags={},this}_registerAckCallback(t,n){var r;const i=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(i===void 0){this.acks[t]=n;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let l=0;l<this.sendBuffer.length;l++)this.sendBuffer[l].id===t&&this.sendBuffer.splice(l,1);n.call(this,new Error("operation has timed out"))},i),a=(...l)=>{this.io.clearTimeoutFn(o),n.apply(this,l)};a.withError=!0,this.acks[t]=a}emitWithAck(t,...n){return new Promise((r,i)=>{const o=(a,l)=>a?i(a):r(l);o.withError=!0,n.push(o),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...o)=>(this._queue[0],i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:yt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}
vendor: 7,089 bytes, line 506
506_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case yt.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case yt.EVENT:case yt.BINARY_EVENT:this.onevent(t);break;case yt.ACK:case yt.BINARY_ACK:this.onack(t);break;case yt.DISCONNECT:this.ondisconnect();break;case yt.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:yt.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:yt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function $u(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}$u.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};$u.prototype.reset=function(){this.attempts=0};$u.prototype.setMin=function(e){this.ms=e};$u.prototype.setMax=function(e){this.max=e};$u.prototype.setJitter=function(e){this.jitter=e};class hS extends yn{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Jy(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new $u({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||wee;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new uee(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=Ri(n,"open",function(){r.onopen(),t&&t()}),o=l=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",l),t?t(l):this.maybeReconnectOnOpen()},a=Ri(n,"error",o);if(this._timeout!==!1){const l=this._timeout,c=this.setTimeoutFn(()=>{i(),o(new Error("timeout")),n.close()},l);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(i),this.subs.push(a),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Ri(t,"ping",this.onping.bind(this)),Ri(t,"data",this.ondata.bind(this)),Ri(t,"error",this.onerror.bind(this)),Ri(t,"close",this.onclose.bind(this)),Ri(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Zy(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new xB(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}
506cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Xd={};function hg(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=dee(e,t.path||"/socket.io"),r=n.source,i=n.id,o=n.path,a=Xd[i]&&o in Xd[i].nsps,l=t.forceNew||t["force new connection"]||t.multiplex===!1||a;let c;return l?c=new hS(r,t):(Xd[i]||(Xd[i]=new hS(r,t)),c=Xd[i]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign(hg,{Manager:hS,Socket:xB,io:hg,connect:hg});const See=250;function DT(e,t){var n;const r=(n=e.token)!==null&&n!==void 0?n:Za(),i={app_id:e.appId};r?i.token=r:i.anonymous_id=kg();const o=hg(e.serverUrl,{path:e.mountPath,transports:e.transports,query:i});return o.on("connect",async()=>{var a;return console.log("connect",o.id),(a=t.connect)===null||a===void 0?void 0:a.call(t)}),o.on("update_model",async a=>{var l;return(l=t.update_model)===null||l===void 0?void 0:l.call(t,a)}),o.on("error",async a=>{var l;return(l=t.error)===null||l===void 0?void 0:l.call(t,a)}),o.on("connect_error",async a=>{var l;return console.error("connect_error",a),(l=t.error)===null||l===void 0?void 0:l.call(t,a)}),o}function jee({config:e}){let t={...e};const n={},r={},i={connect:async()=>{const x=[];Object.keys(n).forEach(_=>{const j=m(_);j.length!==0&&(d(_),j.forEach(({connect:S})=>{const N=async()=>S==null?void 0:S();x.push(N())}))}),await Promise.all(x)},update_model:async x=>{const j=m(x.room).map(S=>{var N;return(N=S.update_model)===null||N===void 0?void 0:N.call(S,x)});await Promise.all(j)},error:async x=>{console.error("error",x);const _=Object.values(n).flat().map(j=>{var S;return(S=j.error)===null||S===void 0?void 0:S.call(j,x)});await Promise.all(_)}};let o=DT(e,i);function a(){l()}function l(){b(),o&&o.disconnect()}function c(x){a(),t={...t,...x},o=DT(t,i)}function d(x){o.emit("join",x)}function p(x){o.emit("leave",x)}async function f(x,_){var j;const S=JSON.stringify(_);return(j=i.update_model)===null||j===void 0?void 0:j.call(i,{room:x,data:S})}function m(x){var _;return(_=n[x])!==null&&_!==void 0?_:[]}function g(x){const _=r[x];_&&(clearTimeout(_),delete r[x])}function b(){Object.keys(r).forEach(x=>{var _,j;clearTimeout(r[x]),delete r[x],((j=(_=n[x])===null||_===void 0?void 0:_.length)!==null&&j!==void 0?j:0)===0&&delete n[x]})}function y(x){g(x),r[x]=setTimeout(()=>{var _,j;delete r[x],!(((j=(_=n[x])===null||_===void 0?void 0:_.length)!==null&&j!==void 0?j:0)>0)&&(p(x),delete n[x])},See)}return{socket:o,subscribeToRoom:(x,_)=>{n[x]?g(x):(d(x),n[x]=[]),n[x].push(_);let j=!1;return()=>{var S,N;j||(j=!0,n[x]=(N=(S=n[x])===null||S===void 0?void 0:S.filter(O=>O!==_))!==null&&N!==void 0?N:[],n[x].length===0&&y(x))}},updateConfig:c,updateModel:f,disconnect:l}}(!globalThis.EventTarget||!globalThis.Event)&&console.error(`
507  PartySocket requires a global 'EventTarget' class to be available!
508  You can polyfill this global by adding this to your code before any partysocket imports: 
509  
510  \`\`\`
511  import 'partysocket/event-target-polyfill';
512  \`\`\`
513  Please file an issue at https://github.com/partykit/partykit if you're still having trouble.
514`);
vendor: 5,083 bytes, line 514
514var bB=class extends Event{constructor(t,n){super("error",n);Lt(this,"message");Lt(this,"error");this.message=t.message,this.error=t}},wB=class extends Event{constructor(t=1e3,n="",r){super("close",r);Lt(this,"code");Lt(this,"reason");Lt(this,"wasClean",!0);this.code=t,this.reason=n}},e0={Event,ErrorEvent:bB,CloseEvent:wB};function Nee(e,t){if(!e)throw new Error(t)}function kee(e){return new e.constructor(e.type,e)}function Oee(e){return"data"in e?new MessageEvent(e.type,e):"code"in e||"reason"in e?new wB(e.code||1999,e.reason||"unknown reason",e):"error"in e?new bB(e.error,e):new Event(e.type,e)}var _L,Eee=typeof process<"u"&&typeof((_L=process.versions)==null?void 0:_L.node)<"u"&&typeof document>"u",Tm=Eee?Oee:kee,Us={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},LT=!1,Pee=class Ks extends EventTarget{constructor(n,r,i={}){super();Lt(this,"_ws");Lt(this,"_retryCount",-1);Lt(this,"_uptimeTimeout");Lt(this,"_connectTimeout");Lt(this,"_shouldReconnect",!0);Lt(this,"_connectLock",!1);Lt(this,"_binaryType","blob");Lt(this,"_closeCalled",!1);Lt(this,"_messageQueue",[]);Lt(this,"_url");Lt(this,"_protocols");Lt(this,"_options");Lt(this,"onclose",null);Lt(this,"onerror",null);Lt(this,"onmessage",null);Lt(this,"onopen",null);Lt(this,"_handleOpen",n=>{this._debug("open event");const{minUptime:r=Us.minUptime}=this._options;clearTimeout(this._connectTimeout),this._uptimeTimeout=setTimeout(()=>this._acceptOpen(),r),Nee(this._ws,"WebSocket is not defined"),this._ws.binaryType=this._binaryType,this._messageQueue.forEach(i=>{var o;return(o=this._ws)==null?void 0:o.send(i)}),this._messageQueue=[],this.onopen&&this.onopen(n),this.dispatchEvent(Tm(n))});Lt(this,"_handleMessage",n=>{this._debug("message event"),this.onmessage&&this.onmessage(n),this.dispatchEvent(Tm(n))});Lt(this,"_handleError",n=>{this._debug("error event",n.message),this._disconnect(void 0,n.message==="TIMEOUT"?"timeout":void 0),this.onerror&&this.onerror(n),this._debug("exec error listeners"),this.dispatchEvent(Tm(n)),this._connect()});Lt(this,"_handleClose",n=>{this._debug("close event"),this._clearTimeouts(),this._shouldReconnect&&this._connect(),this.onclose&&this.onclose(n),this.dispatchEvent(Tm(n))});this._url=n,this._protocols=r,this._options=i,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}static get CONNECTING(){return 0}static get OPEN(){return 1}static get CLOSING(){return 2}static get CLOSED(){return 3}get CONNECTING(){return Ks.CONNECTING}get OPEN(){return Ks.OPEN}get CLOSING(){return Ks.CLOSING}get CLOSED(){return Ks.CLOSED}get binaryType(){return this._ws?this._ws.binaryType:this._binaryType}set binaryType(n){this._binaryType=n,this._ws&&(this._ws.binaryType=n)}get retryCount(){return Math.max(this._retryCount,0)}get bufferedAmount(){return this._messageQueue.reduce((r,i)=>(typeof i=="string"?r+=i.length:i instanceof Blob?r+=i.size:r+=i.byteLength,r),0)+(this._ws?this._ws.bufferedAmount:0)}get extensions(){return this._ws?this._ws.extensions:""}get protocol(){return this._ws?this._ws.protocol:""}get readyState(){return this._ws?this._ws.readyState:this._options.startClosed?Ks.CLOSED:Ks.CONNECTING}get url(){return this._ws?this._ws.url:""}get shouldReconnect(){return this._shouldReconnect}close(n=1e3,r){if(this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(n,r)}reconnect(n,r){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(n,r),this._connect())}send(n){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",n),this._ws.send(n);else{const{maxEnqueuedMessages:r=Us.maxEnqueuedMessages}=this._options;this._messageQueue.length<r&&(this._debug("enqueue",n),this._messageQueue.push(n))}}_debug(...n){this._options.debug&&console.log.apply(console,["RWS>",...n])}_getNextDelay(){const{reconnectionDelayGrowFactor:n=Us.reconnectionDelayGrowFactor,minReconnectionDelay:r=Us.minReconnectionDelay,maxReconnectionDelay:i=Us.maxReconnectionDelay}=this._options;let o=0;return this._retryCount>0&&(o=r*Math.pow(n,this._retryCount-1),o>i&&(o=i)),this._debug("next delay",o),o}_wait(){return new Promise(n=>{setTimeout(n,this._getNextDelay())})}_getNextProtocols(n){if(!n)return Promise.resolve(null);if(typeof n=="string"||Array.isArray(n))return Promise.resolve(n);if(typeof n=="function"){const r=n();if(!r)return Promise.resolve(null);if(typeof r=="string"||Array.isArray(r))return Promise.resolve(r);if(r.then)return r}throw Error("Invalid protocols")}_getNextUrl(n){if(typeof n=="string")return Promise.resolve(n);if(typeof n=="function"){const r=n();if(typeof r=="string")return Promise.resolve(r);if(r.then)return r}throw Error("Invalid URL")}_connect(){if(this._connectLock||!this._shouldReconnect)return;this._connectLock=!0;
vendor: 2,327 bytes, lines 514-531
514const{maxRetries:n=Us.maxRetries,connectionTimeout:r=Us.connectionTimeout}=this._options;if(this._retryCount>=n){this._debug("max retries reached",this._retryCount,">=",n);return}this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),this._wait().then(()=>Promise.all([this._getNextUrl(this._url),this._getNextProtocols(this._protocols||null)])).then(([i,o])=>{if(this._closeCalled){this._connectLock=!1;return}!this._options.WebSocket&&typeof WebSocket>"u"&&!LT&&(console.error(`‼️ No WebSocket implementation available. You should define options.WebSocket. 
515
516For example, if you're using node.js, run \`npm install ws\`, and then in your code:
517
518import PartySocket from 'partysocket';
519import WS from 'ws';
520
521const partysocket = new PartySocket({
522  host: "127.0.0.1:1999",
523  room: "test-room",
524  WebSocket: WS
525});
526
527`),LT=!0);const a=this._options.WebSocket||WebSocket;this._debug("connect",{url:i,protocols:o}),this._ws=o?new a(i,o):new a(i),this._ws.binaryType=this._binaryType,this._connectLock=!1,this._addListeners(),this._connectTimeout=setTimeout(()=>this._handleTimeout(),r)}).catch(i=>{this._connectLock=!1,this._handleError(new e0.ErrorEvent(Error(i.message),this))})}_handleTimeout(){this._debug("timeout event"),this._handleError(new e0.ErrorEvent(Error("TIMEOUT"),this))}_disconnect(n=1e3,r){if(this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(n,r),this._handleClose(new e0.CloseEvent(n,r,this))}catch{}}}_acceptOpen(){this._debug("accept open"),this._retryCount=0}_removeListeners(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))}_addListeners(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))}_clearTimeouts(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)}};/*!
528 * Reconnecting WebSocket
529 * by Pedro Ladaria <[email protected]>
530 * https://github.com/pladaria/reconnecting-websocket
531 * License MIT
532 */const Aee=1e3,Tee=3e3,Cee=new Set([405,409,422,503]),Ree=new Set([400,403,404]);function Mee(e){const t=e&&typeof e=="object"?e.status:void 0;return typeof t=="number"?t:void 0}function Iee(e){return e instanceof Error?e:new Error(String(e))}class Dee{constructor(t,n,r,i,o){var a;this.onClose=o,this.listeners=new Set,this.heartbeat=null,this.closed=!1,this.id=(a=i==null?void 0:i.id)!==null&&a!==void 0?a:crypto.randomUUID();let l=r.transport==="proxy";const c=async()=>{var m;if(this.closed)throw new Error("Actor connection is closed");if(!l)try{const{websocket_url:g,token:b}=await r.mintConnectionToken(t,n,this.id),y=g.includes("?")?"&":"?";return`${g}${y}token=${encodeURIComponent(b)}`}catch(g){const b=Mee(g);if(!(r.transport!=="direct"&&b!==void 0&&Cee.has(b))){b!==void 0&&Ree.has(b)&&this.close();try{(m=r.onMintError)===null||m===void 0||m.call(r,Iee(g))}catch{}throw g}l=!0}return Bee(r.host,t,n,this.id,r.appId,r.getAuthToken(),r.functionsVersion)},d=new Pee(c);this.ws=d;let p=Date.now();const f=()=>{p=Date.now()};d.addEventListener("open",f),d.addEventListener("message",m=>{f();let g;try{g=JSON.parse(m.data)}catch{return}if((g&&typeof g=="object"?g.type:void 0)!=="__pong")for(const y of this.listeners)y(g)}),this.heartbeat=setInterval(()=>{if(Date.now()-p>Tee){f(),d.readyState===d.OPEN&&d.reconnect();return}try{d.send(JSON.stringify({type:"__ping"}))}catch{}},Aee)}subscribe(t){return this.listeners.add(t),{unsubscribe:()=>{this.listeners.delete(t)}}}send(t){this.closed||this.ws.send(JSON.stringify(t))}close(){this.closed||(this.closed=!0,this.heartbeat&&(clearInterval(this.heartbeat),this.heartbeat=null),this.listeners.clear(),this.ws.close(),this.onClose())}}function Lee(e,t,n,r){let i=null;return{connect(o){if(i)return i;const a=new Dee(e,t,n,o,()=>{r.delete(a),i===a&&(i=null)});return i=a,r.add(a),a}}}function Bee(e,t,n,r,i,o,a){let l=e.replace(/^(http|https|ws|wss):\/\//,"");l.endsWith("/")&&(l=l.slice(0,-1));const c=l.startsWith("localhost:")||l.startsWith("127.0.0.1:")||l.startsWith("192.168.")||l.startsWith("10.")||l.startsWith("172.")&&l.split(".")[1]>="16"&&l.split(".")[1]<="31"||l.startsWith("[::ffff:7f00:1]:"),d=new URLSearchParams([["_pk",r],["app_id",i],["handler",t]]);return o&&d.append("token",o),a&&d.append("fv",a),`${c?"ws":"wss"}://${l}/parties/${t}/${n}?${d}`}function $ee(e,t){return e&&!e.startsWith("/")?e:t??e}function Fee(e){const t=new Set;return{module:new Proxy({},{get(r,i){if(!(typeof i!="string"||i==="then"))return o=>Lee(i,o,e,t)}}),closeAll:()=>{for(const r of[...t])r.close()}}}function qee(e){var t,n,r,i;const{serverUrl:o="https://base44.app",appId:a,analytics:l,token:c,serviceToken:d,requiresAuth:p=!1,appBaseUrl:f,options:m,functionsVersion:g,headers:b}=e,y=typeof f=="string"?f:"",v={serverUrl:o,mountPath:"/ws-user-apps/socket.io/",transports:["websocket"],appId:a,token:c};let x=null;const _=()=>(x||(x=jee({config:v})),x),j={...b,"X-App-Id":String(a)},S=b==null?void 0:b["Base44-State"],N=S?{"Base44-State":S}:{},O=g?{...j,"Base44-Functions-Version":g}:j,E=Ac({baseURL:`${o}/api`,headers:j,token:c,onError:m==null?void 0:m.onError}),A=Ac({baseURL:`${o}/api`,headers:O,token:c,interceptResponses:!1,onError:m==null?void 0:m.onError}),I={...j,...c?{"on-behalf-of":`Bearer ${c}`}:{}},M=Ac({baseURL:`${o}/api`,headers:I,token:d,onError:m==null?void 0:m.onError}),C=Ac({baseURL:`${o}/api`,headers:O,token:d,interceptResponses:!1}),R=Ac({baseURL:`${o}/api`,headers:j}),B=bJ(E,A,a,{appBaseUrl:y,token:c});if(typeof window<"u"){const Y=c||Za();Y&&B.setToken(Y)}const $=Fee({appId:a,host:$ee(o,typeof window<"u"?(t=window.location)===null||t===void 0?void 0:t.origin:void 0),functionsVersion:g,getAuthToken:()=>c||Za(),mintConnectionToken:async(Y,W,q)=>{const D=c||Za();return await R.post(`/apps/${a}/actors/${encodeURIComponent(Y)}/connection-token`,{room:W,connection_id:q},{headers:{...D?{Authorization:`Bearer ${D}`}:{},...g?{"Base44-Functions-Version":g}:{}}})},transport:m==null?void 0:m.actorsTransport,onMintError:m==null?void 0:m.onError}),z={entities:ST({axios:E,appId:a,getSocket:_}),integrations:NT(E,a),connectors:NJ(E,a),auth:B,functions:kT(A,a,{getAuthHeaders:()=>{const Y={},W=c||Za();return W&&(Y.Authorization=`Bearer ${W}`),Y},baseURL:(n=A.defaults)===null||n===void 0?void 0:n.baseURL}
532),agents:OT({axios:E,getSocket:_,appId:a,serverUrl:o,token:c}),aiGateway:PT({serverUrl:o,token:c,appId:a,headers:N}),appLogs:AT(E,a),app:PJ(E,a),users:AJ(E,a),analytics:rJ({axiosClient:E,serverUrl:o,appId:a,userAuthModule:B,enabled:(r=l==null?void 0:l.enabled)!==null&&r!==void 0?r:!0}),actors:$.module,cleanup:()=>{z.analytics.cleanup(),$.closeAll(),x&&x.disconnect()}},H={entities:ST({axios:M,appId:a,getSocket:_}),integrations:NT(M,a),sso:wJ(M,a),connectors:SJ(M,a),functions:kT(C,a,{getAuthHeaders:()=>{const Y={};return d&&(Y.Authorization=`Bearer ${d}`),Y},baseURL:(i=C.defaults)===null||i===void 0?void 0:i.baseURL}),agents:OT({axios:M,getSocket:_,appId:a,serverUrl:o,token:c}),aiGateway:PT({serverUrl:o,token:d,appId:a,headers:N}),appLogs:AT(M,a),cleanup:()=>{x&&x.disconnect()}};return p&&typeof window<"u"&&setTimeout(async()=>{try{await z.auth.isAuthenticated()||z.auth.redirectToLogin(window.location.href)}catch(Y){console.error("Authentication check failed:",Y),z.auth.redirectToLogin(window.location.href)}},0),{...z,fetchWithAuth:OJ({axios:E,serviceRoleAxios:M,appId:String(a),serverUrl:o,functionsVersion:g,platformHeaders:b}),setToken(Y){z.auth.setToken(Y),x&&x.updateConfig({token:Y}),v.token=Y},getConfig(){return{serverUrl:o,appId:a,requiresAuth:p}},get asServiceRole(){if(!d)throw new Error("Service token is required to use asServiceRole. Please provide a serviceToken when creating the client.");return H}}}const _B=typeof window>"u",zee=_B?{localStorage:new Map}:window,Pf=zee.localStorage,Uee=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase(),vc=(e,{defaultValue:t=void 0,removeFromUrl:n=!1}={})=>{if(_B)return t;const r=`base44_${Uee(e)}`,i=new URLSearchParams(window.location.search),o=i.get(e);if(n){i.delete(e);const l=`${window.location.pathname}${i.toString()?`?${i.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,l)}if(o)return Pf.setItem(r,o),o;if(t)return Pf.setItem(r,t),t;const a=Pf.getItem(r);return a||null},Hee=()=>(vc("clear_access_token")==="true"&&(Pf.removeItem("base44_access_token"),Pf.removeItem("token")),{appId:vc("app_id",{defaultValue:"6a3e0189c262d2ccdbdde315"}),token:vc("access_token",{removeFromUrl:!0}),fromUrl:vc("from_url",{defaultValue:window.location.href}),functionsVersion:vc("functions_version",{defaultValue:"prod"}),appBaseUrl:vc("app_base_url",{defaultValue:void 0})}),yf={...Hee()},{appId:Vee,token:Wee,functionsVersion:Gee,appBaseUrl:Kee}=yf,st=qee({appId:Vee,token:Wee,functionsVersion:Gee,serverUrl:"",requiresAuth:!1,appBaseUrl:Kee}),SB=P.createContext(),Yee=({children:e})=>{const[t,n]=P.useState(null),[r,i]=P.useState(!1),[o,a]=P.useState(!0),[l,c]=P.useState(!0),[d,p]=P.useState(null),[f,m]=P.useState(!1),[g,b]=P.useState(null);P.useEffect(()=>{y()},[]);const y=async()=>{var j,S;try{c(!0),p(null);const N=Ac({baseURL:"/api/apps/public",headers:{"X-App-Id":yf.appId},token:yf.token,interceptResponses:!0});try{const O=await N.get(`/prod/public-settings/by-id/${yf.appId}`);b(O),yf.token?await v():(a(!1),i(!1),m(!0)),c(!1)}catch(O){if(console.error("App state check failed:",O),O.status===403&&((S=(j=O.data)==null?void 0:j.extra_data)!=null&&S.reason)){const E=O.data.extra_data.reason;p(E==="auth_required"?{type:"auth_required",message:"Authentication required"}:E==="user_not_registered"?{type:"user_not_registered",message:"User not registered for this app"}:{type:E,message:O.message})}else p({type:"unknown",message:O.message||"Failed to load app"});c(!1),a(!1)}}catch(N){console.error("Unexpected error:",N),p({type:"unknown",message:N.message||"An unexpected error occurred"}),c(!1),a(!1)}},v=async()=>{try{a(!0);const j=await st.auth.me();n(j),i(!0),a(!1),m(!0)}catch(j){console.error("User auth check failed:",j),a(!1),i(!1),m(!0),(j.status===401||j.status===403)&&p({type:"auth_required",message:"Authentication required"})}},x=(j=!0)=>{n(null),i(!1),j?st.auth.logout(window.location.href):st.auth.logout()},_=()=>{st.auth.redirectToLogin(window.location.href)};return s.jsx(SB.Provider,{value:{user:t,isAuthenticated:r,isLoadingAuth:o,isLoadingPublicSettings:l,authError:d,appPublicSettings:g,authChecked:f,logout:x,navigateToLogin:_,checkUserAuth:v,checkAppState:y},children:e})},$N=()=>{const e=P.useContext(SB);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e},jB=()=>s.jsx("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gradient-to-b from-white to-slate-50",children:s.jsx("div",{className:"max-w-md w-full p-8 bg-white rounded-lg shadow-lg border border-slate-100",children:s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full bg-orange-100",children:s.jsx("svg",{className:"w-8 h-8 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),s.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-4",children:"Access Restricted"}),s.jsx("p",{className:"text-slate-600 mb-8",children:"You are not registered to use this application. Please contact the app administrator to request access."}),s.jsxs("div",{className:"p-4 bg-slate-50 rounded-md text-sm text-slate-600",children:[s.jsx("p",{children:"If you believe this is an error, you can:"}),s.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[s.jsx("li",{children:"Verify you are logged in with the correct account"}),s.jsx("li",{children:"Contact the app administrator for access"}),s.jsx("li",{children:"Try logging out and back in again"})]})]})]})})}),Xee=e=>{const t=e.slice(1);try{return decodeURIComponent(t)}catch{return t}};function Qee(){const{pathname:e,hash:t}=vr(),n=nX();return P.useEffect(()=>{if(n!=="POP"){if(t){const r=Xee(t),i=window.setTimeout(()=>{var o;(o=document.getElementById(r))==null||o.scrollIntoView({behavior:"smooth"})},50);return()=>window.clearTimeout(i)}window.scrollTo({top:0,left:0,behavior:"instant"})}},[e,t,n]),null}const Zee="https://iorthotics.com";function Jee(){const e=vr();return P.useEffect(()=>{document.querySelectorAll('link[rel="alternate"][hreflang]').forEach(n=>n.remove());let t=document.querySelector('link[rel="canonical"]');t||(t=document.createElement("link"),t.rel="canonical",document.head.appendChild(t)),t.href=`${Zee}${e.pathname||"/"}`},[e.pathname]),null}function ete(){var n;if(document.title&&document.title.trim())return;const e=document.querySelector('meta[property="og:title"]'),t=(n=e==null?void 0:e.getAttribute("content"))==null?void 0:n.trim();t&&(document.title=t)}function tte(){const e=vr();return P.useEffect(()=>{if(ete(),document.title&&document.title.trim())return;const t=new MutationObserver(()=>{var i;if(document.title&&document.title.trim()){t.disconnect();return}const n=document.querySelector('meta[property="og:title"]'),r=(i=n==null?void 0:n.getAttribute("content"))==null?void 0:i.trim();r&&(document.title=r,t.disconnect())});return t.observe(document.head,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["content"]}),()=>t.disconnect()},[e.pathname]),null}function nte(){const{user:e,isAuthenticated:t,isLoadingAuth:n,authChecked:r,authError:i,checkUserAuth:o}=$N(),a=vr();if(P.useEffect(()=>{!r&&!n&&o()},[r,n,o]),n||!r)return s.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:s.jsx("div",{className:"w-8 h-8 border-4 border-dark-blue/20 border-t-pistachio rounded-full animate-spin"})});if((i==null?void 0:i.type)==="user_not_registered")return s.jsx(jB,{});if(!t){const l=encodeURIComponent(a.pathname+a.search);return s.jsx($a,{to:`/login?returnTo=${l}`,replace:!0})}return!e||e.role!=="admin"?s.jsx($a,{to:"/",replace:!0}):s.jsx(bX,{})}const FN=P.createContext({});function qN(e){const t=P.useRef(null);return t.current===null&&(t.current=e()),t.current}const ev=P.createContext(null),zN=P.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class rte extends P.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function ite({children:e,isPresent:t}){const n=P.useId(),r=P.useRef(null),i=P.useRef({width:0,height:0,top:0,left:0}),{nonce:o}=P.useContext(zN);return P.useInsertionEffect(()=>{const{width:a,height:l,top:c,left:d}=i.current;if(t||!r.current||!a||!l)return;r.current.dataset.motionPopId=n;const p=document.createElement("style");return o&&(p.nonce=o),document.head.appendChild(p),p.sheet&&p.sheet.insertRule(`
533          [data-motion-pop-id="${n}"] {
534            position: absolute !important;
535            width: ${a}px !important;
536            height: ${l}px !important;
537            top: ${c}px !important;
538            left: ${d}px !important;
539          }
540        `),()=>{document.head.removeChild(p)}},[t]),s.jsx(rte,{isPresent:t,childRef:r,sizeRef:i,children:P.cloneElement(e,{ref:r})})}const ote=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const l=qN(ate),c=P.useId(),d=P.useCallback(f=>{l.set(f,!0);for(const m of l.values())if(!m)return;r&&r()},[l,r]),p=P.useMemo(()=>({id:c,initial:t,isPresent:n,custom:i,onExitComplete:d,register:f=>(l.set(f,!1),()=>l.delete(f))}),o?[Math.random(),d]:[n,d]);return P.useMemo(()=>{l.forEach((f,m)=>l.set(m,!1))},[n]),P.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),a==="popLayout"&&(e=s.jsx(ite,{isPresent:n,children:e})),s.jsx(ev.Provider,{value:p,children:e})};function ate(){return new Map}function NB(e=!0){const t=P.useContext(ev);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=P.useId();P.useEffect(()=>{e&&i(o)},[e]);const a=P.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const Cm=e=>e.key||"";function BT(e){const t=[];
vendor: 30,140 bytes, line 540
540return P.Children.forEach(e,n=>{P.isValidElement(n)&&t.push(n)}),t}const UN=typeof window<"u",kB=UN?P.useLayoutEffect:P.useEffect,yr=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1})=>{const[l,c]=NB(a),d=P.useMemo(()=>BT(e),[e]),p=a&&!l?[]:d.map(Cm),f=P.useRef(!0),m=P.useRef(d),g=qN(()=>new Map),[b,y]=P.useState(d),[v,x]=P.useState(d);kB(()=>{f.current=!1,m.current=d;for(let S=0;S<v.length;S++){const N=Cm(v[S]);p.includes(N)?g.delete(N):g.get(N)!==!0&&g.set(N,!1)}},[v,p.length,p.join("-")]);const _=[];if(d!==b){let S=[...d];for(let N=0;N<v.length;N++){const O=v[N],E=Cm(O);p.includes(E)||(S.splice(N,0,O),_.push(O))}o==="wait"&&_.length&&(S=_),x(BT(S)),y(d);return}const{forceRender:j}=P.useContext(FN);return s.jsx(s.Fragment,{children:v.map(S=>{const N=Cm(S),O=a&&!l?!1:d===v||p.includes(N),E=()=>{if(g.has(N))g.set(N,!0);else return;let A=!0;g.forEach(I=>{I||(A=!1)}),A&&(j==null||j(),x(m.current),a&&(c==null||c()),r&&r())};return s.jsx(ote,{isPresent:O,initial:!f.current||n?void 0:!1,custom:O?void 0:t,presenceAffectsLayout:i,mode:o,onExitComplete:O?void 0:E,children:S},N)})})},Wr=e=>e;let OB=Wr;function HN(e){let t;return()=>(t===void 0&&(t=e()),t)}const su=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Ho=e=>e*1e3,Vo=e=>e/1e3,ste={useManualTiming:!1};function lte(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(d){o.has(d)&&(c.schedule(d),e()),d(a)}const c={schedule:(d,p=!1,f=!1)=>{const g=f&&r?t:n;return p&&o.add(d),g.has(d)||g.add(d),d},cancel:d=>{n.delete(d),o.delete(d)},process:d=>{if(a=d,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(l),t.clear(),r=!1,i&&(i=!1,c.process(d))}};return c}const Rm=["read","resolveKeyframes","update","preRender","render","postRender"],cte=40;function EB(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=Rm.reduce((x,_)=>(x[_]=lte(o),x),{}),{read:l,resolveKeyframes:c,update:d,preRender:p,render:f,postRender:m}=a,g=()=>{const x=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(x-i.timestamp,cte),1),i.timestamp=x,i.isProcessing=!0,l.process(i),c.process(i),d.process(i),p.process(i),f.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},b=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:Rm.reduce((x,_)=>{const j=a[_];return x[_]=(S,N=!1,O=!1)=>(n||b(),j.schedule(S,N,O)),x},{}),cancel:x=>{for(let _=0;_<Rm.length;_++)a[Rm[_]].cancel(x)},state:i,steps:a}}const{schedule:Gt,cancel:as,state:Un,steps:t0}=EB(typeof requestAnimationFrame<"u"?requestAnimationFrame:Wr,!0),PB=P.createContext({strict:!1}),$T={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},lu={};for(const e in $T)lu[e]={isEnabled:t=>$T[e].some(n=>!!t[n])};function ute(e){for(const t in e)lu[t]={...lu[t],...e[t]}}const dte=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Og(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||dte.has(e)}let AB=e=>!Og(e);function fte(e){e&&(AB=t=>t.startsWith("on")?!Og(t):e(t))}try{fte(require("@emotion/is-prop-valid").default)}catch{}function hte(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(AB(i)||n===!0&&Og(i)||!t&&!Og(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function pte(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const tv=P.createContext({});function Wf(e){return typeof e=="string"||Array.isArray(e)}function nv(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const VN=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],WN=["initial",...VN];function rv(e){return nv(e.animate)||WN.some(t=>Wf(e[t]))}function TB(e){return!!(rv(e)||e.variants)}function mte(e,t){if(rv(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Wf(n)?n:void 0,animate:Wf(r)?r:void 0}}return e.inherit!==!1?t:{}}function gte(e){const{initial:t,animate:n}=mte(e,P.useContext(tv));return P.useMemo(()=>({initial:t,animate:n}),[FT(t),FT(n)])}function FT(e){return Array.isArray(e)?e.join(" "):e}const yte=Symbol.for("motionComponentSymbol");function Cc(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function vte(e,t,n){return P.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Cc(n)&&(n.current=r))},[t])}const GN=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),xte="framerAppearId",CB="data-"+GN(xte),{schedule:KN}=EB(queueMicrotask,!1),RB=P.createContext({});function bte(e,t,n,r,i){var o,a;const{visualElement:l}=P.useContext(tv),c=P.useContext(PB),d=P.useContext(ev),p=P.useContext(zN).reducedMotion,f=P.useRef(null);r=r||c.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:l,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:p}));const m=f.current,g=P.useContext(RB);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&wte(f.current,n,i,g);const b=P.useRef(!1);P.useInsertionEffect(()=>{m&&b.current&&m.update(n,d)});const y=n[CB],v=P.useRef(!!y&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,y))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,y)));return kB(()=>{m&&(b.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),KN.render(m.render),v.current&&m.animationState&&m.animationState.animateChanges())}),P.useEffect(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var x;(x=window.MotionHandoffMarkAsComplete)===null||x===void 0||x.call(window,y)}),v.current=!1))}),m}function wte(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:l,layoutScroll:c,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:MB(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||l&&Cc(l),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:d})}function MB(e){if(e)return e.options.allowProjection!==!1?e.projection:MB(e.parent)}function _te({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&ute(e);function l(d,p){let f;const m={...P.useContext(zN),...d,layoutId:Ste(d)},{isStatic:g}=m,b=gte(d),y=r(d,g);if(!g&&UN){jte();const v=Nte(m);f=v.MeasureLayout,b.visualElement=bte(i,y,m,t,v.ProjectionNode)}return s.jsxs(tv.Provider,{value:b,children:[f&&b.visualElement?s.jsx(f,{visualElement:b.visualElement,...m}):null,n(i,d,vte(y,b.visualElement,p),y,g,b.visualElement)]})}l.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const c=P.forwardRef(l);return c[yte]=i,c}function Ste({layoutId:e}){const t=P.useContext(FN).id;return t&&e!==void 0?t+"-"+e:e}function jte(e,t){P.useContext(PB).strict}function Nte(e){const{drag:t,layout:n}=lu;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const kte=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function YN(e){return typeof e!="string"||e.includes("-")?!1:!!(kte.indexOf(e)>-1||/[A-Z]/u.test(e))}function qT(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function XN(e,t,n,r){if(typeof t=="function"){const[i,o]=qT(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=qT(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const pS=e=>Array.isArray(e),Ote=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Ete=e=>pS(e)?e[e.length-1]||0:e,ar=e=>!!(e&&e.getVelocity);function pg(e){const t=ar(e)?e.get():e;return Ote(t)?t.toValue():t}function Pte({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:Ate(r,i,o,e),renderState:t()};return n&&(a.onMount=l=>n({props:r,current:l,...a}),a.onUpdate=l=>n(l)),a}const IB=e=>(t,n)=>{const r=P.useContext(tv),i=P.useContext(ev),o=()=>Pte(e,t,r,i);return n?o():qN(o)};function Ate(e,t,n,r){const i={},o=r(e,{});for(const m in o)i[m]=pg(o[m]);let{initial:a,animate:l}=e;const c=rv(e),d=TB(e);t&&d&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),l===void 0&&(l=t.animate));let p=n?n.initial===!1:!1;p=p||a===!1;const f=p?l:a;if(f&&typeof f!="boolean"&&!nv(f)){const m=Array.isArray(f)?f:[f];for(let g=0;g<m.length;g++){const b=XN(e,m[g]);if(b){const{transitionEnd:y,transition:v,...x}=b;for(const _ in x){let j=x[_];if(Array.isArray(j)){const S=p?j.length-1:0;j=j[S]}j!==null&&(i[_]=j)}for(const _ in y)i[_]=y[_]}}}return i}const Fu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Dl=new Set(Fu),DB=e=>t=>typeof t=="string"&&t.startsWith(e),LB=DB("--"),Tte=DB("var(--"),QN=e=>Tte(e)?Cte.test(e.split("/*")[0].trim()):!1,Cte=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,BB=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Zo=(e,t,n)=>n>t?t:n<e?e:n,qu={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Gf={...qu,transform:e=>Zo(0,1,e)},Mm={...qu,default:1},ep=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),La=ep("deg"),so=ep("%"),nt=ep("px"),Rte=ep("vh"),Mte=ep("vw"),zT={...so,parse:e=>so.parse(e)/100,transform:e=>so.transform(e*100)},Ite={borderWidth:nt,borderTopWidth:nt,borderRightWidth:nt,borderBottomWidth:nt,borderLeftWidth:nt,borderRadius:nt,radius:nt,borderTopLeftRadius:nt,borderTopRightRadius:nt,borderBottomRightRadius:nt,borderBottomLeftRadius:nt,width:nt,maxWidth:nt,height:nt,maxHeight:nt,top:nt,right:nt,bottom:nt,left:nt,padding:nt,paddingTop:nt,paddingRight:nt,paddingBottom:nt,paddingLeft:nt,margin:nt,marginTop:nt,marginRight:nt,marginBottom:nt,marginLeft:nt,backgroundPositionX:nt,backgroundPositionY:nt},Dte={rotate:La,rotateX:La,rotateY:La,rotateZ:La,scale:Mm,scaleX:Mm,scaleY:Mm,scaleZ:Mm,skew:La,skewX:La,skewY:La,distance:nt,translateX:nt,translateY:nt,translateZ:nt,x:nt,y:nt,z:nt,perspective:nt,transformPerspective:nt,opacity:Gf,originX:zT,originY:zT,originZ:nt},UT={...qu,transform:Math.round},ZN={...Ite,...Dte,zIndex:UT,size:nt,fillOpacity:Gf,strokeOpacity:Gf,numOctaves:UT},Lte={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Bte=Fu.length;function $te(e,t,n){let r="",i=!0;for(let o=0;o<Bte;o++){const a=Fu[o],l=e[a];if(l===void 0)continue;let c=!0;if(typeof l=="number"?c=l===(a.startsWith("scale")?1:0):c=parseFloat(l)===0,!c||n){const d=BB(l,ZN[a]);if(!c){i=!1;const p=Lte[a]||a;r+=`${p}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function JN(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,l=!1;for(const c in t){const d=t[c];if(Dl.has(c)){a=!0;continue}else if(LB(c)){i[c]=d;continue}else{const p=BB(d,ZN[c]);c.startsWith("origin")?(l=!0,o[c]=p):r[c]=p}}if(t.transform||(a||n?r.transform=$te(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:c="50%",originY:d="50%",originZ:p=0}=o;r.transformOrigin=`${c} ${d} ${p}`}}const Fte={offset:"stroke-dashoffset",array:"stroke-dasharray"},qte={offset:"strokeDashoffset",array:"strokeDasharray"};function zte(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?Fte:qte;e[o.offset]=nt.transform(-r);const a=nt.transform(t),l=nt.transform(n);e[o.array]=`${a} ${l}`}function HT(e,t,n){return typeof e=="string"?e:nt.transform(t+n*e)}function Ute(e,t,n){const r=HT(t,e.x,e.width),i=HT(n,e.y,e.height);return`${r} ${i}`}function ek(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:l=1,pathOffset:c=0,...d},p,f){if(JN(e,d,f),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g,dimensions:b}=e;m.transform&&(b&&(g.transform=m.transform),delete m.transform),b&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=Ute(b,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),a!==void 0&&zte(m,a,l,c,!1)}const tk=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),$B=()=>({...tk(),attrs:{}}),nk=e=>typeof e=="string"&&e.toLowerCase()==="svg";function FB(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const qB=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function zB(e,t,n,r){FB(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(qB.has(i)?i:GN(i),t.attrs[i])}const Eg={};function Hte(e){Object.assign(Eg,e)}function UB(e,{layout:t,layoutId:n}){return Dl.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Eg[e]||e==="opacity")}function rk(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(ar(i[a])||t.style&&ar(t.style[a])||UB(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function HB(e,t,n){const r=rk(e,t,n);for(const i in e)if(ar(e[i])||ar(t[i])){const o=Fu.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function Vte(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const VT=["x","y","width","height","cx","cy","r"],Wte={useVisualState:IB({scrapeMotionValuesFromProps:HB,createRenderState:$B,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const l in i)if(Dl.has(l)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let l=0;l<VT.length;l++){const c=VT[l];e[c]!==t[c]&&(a=!0)}a&&Gt.read(()=>{Vte(n,r),Gt.render(()=>{ek(r,i,nk(n.tagName),e.transformTemplate),zB(n,r)})})}})},Gte={useVisualState:IB({scrapeMotionValuesFromProps:rk,createRenderState:tk})};function VB(e,t,n){for(const r in t)!ar(t[r])&&!UB(r,n)&&(e[r]=t[r])}function Kte({transformTemplate:e},t){return P.useMemo(()=>{const n=tk();return JN(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Yte(e,t){const n=e.style||{},r={};return VB(r,n,e),Object.assign(r,Kte(e,t)),r}function Xte(e,t){const n={},r=Yte(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function Qte(e,t,n,r){const i=P.useMemo(()=>{const o=$B();return ek(o,t,nk(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};VB(o,e.style,e),i.style={...o,...i.style}}return i}function Zte(e=!1){return(n,r,i,{latestValues:o},a)=>{const c=(YN(n)?Qte:Xte)(r,o,a,n),d=hte(r,typeof n=="string",e),p=n!==P.Fragment?{...d,...c,ref:i}:{},{children:f}=r,m=P.useMemo(()=>ar(f)?f.get():f,[f]);return P.createElement(n,{...p,children:m})}}function Jte(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...YN(r)?Wte:Gte,preloadedFeatures:e,useRender:Zte(i),createVisualElement:t,Component:r};return _te(a)}}function WB(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function iv(e,t,n){const r=e.getProps();return XN(r,t,n!==void 0?n:r.custom,e)}const ene=HN(()=>window.ScrollTimeline!==void 0);class tne{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(ene()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class nne extends tne{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function ik(e,t){return e?e[t]||e.default||e:void 0}const mS=2e4;function GB(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<mS;)t+=n,r=e.next(t);return t>=mS?1/0:t}function ok(e){return typeof e=="function"}function WT(e,t){e.timeline=t,e.onfinish=null}const ak=e=>Array.isArray(e)&&typeof e[0]=="number",rne={linearEasing:void 0};function ine(e,t){const n=HN(e);return()=>{var r;return(r=rne[t])!==null&&r!==void 0?r:n()}}const Pg=ine(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),KB=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(su(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function YB(e){return!!(typeof e=="function"&&Pg()||!e||typeof e=="string"&&(e in gS||Pg())||ak(e)||Array.isArray(e)&&e.every(YB))}const vf=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,gS={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:vf([0,.65,.55,1]),circOut:vf([.55,0,1,.45]),backIn:vf([.31,.01,.66,-.59]),backOut:vf([.33,1.53,.69,.99])};function XB(e,t){if(e)return typeof e=="function"&&Pg()?KB(e,t):ak(e)?vf(e):Array.isArray(e)?e.map(n=>XB(n,t)||gS.easeOut):gS[e]}const Pi={x:!1,y:!1};function QB(){return Pi.x||Pi.y}function one(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function ZB(e,t){const n=one(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function GT(e){return t=>{t.pointerType==="touch"||QB()||e(t)}}function ane(e,t,n={}){const[r,i,o]=ZB(e,n),a=GT(l=>{const{target:c}=l,d=t(l);if(typeof d!="function"||!c)return;const p=GT(f=>{d(f),c.removeEventListener("pointerleave",p)});c.addEventListener("pointerleave",p,i)});return r.forEach(l=>{l.addEventListener("pointerenter",a,i)}),o}const JB=(e,t)=>t?e===t?!0:JB(e,t.parentElement):!1,sk=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,sne=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function lne(e){return sne.has(e.tagName)||e.tabIndex!==-1}const xf=new WeakSet;function KT(e){return t=>{t.key==="Enter"&&e(t)}}function n0(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const cne=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=KT(()=>{if(xf.has(n))return;n0(n,"down");const i=KT(()=>{n0(n,"up")}),o=()=>n0(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function YT(e){return sk(e)&&!QB()}function une(e,t,n={}){const[r,i,o]=ZB(e,n),a=l=>{const c=l.currentTarget;if(!YT(l)||xf.has(c))return;xf.add(c);const d=t(l),p=(g,b)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",m),!(!YT(g)||!xf.has(c))&&(xf.delete(c),typeof d=="function"&&d(g,{success:b}))},f=g=>{p(g,n.useGlobalTarget||JB(c,g.target))},m=g=>{p(g,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",m,i)};return r.forEach(l=>{!lne(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(n.useGlobalTarget?window:l).addEventListener("pointerdown",a,i),l.addEventListener("focus",d=>cne(d,i),i)}),o}function dne(e){return e==="x"||e==="y"?Pi[e]?null:(Pi[e]=!0,()=>{Pi[e]=!1}):Pi.x||Pi.y?null:(Pi.x=Pi.y=!0,()=>{Pi.x=Pi.y=!1})}const e$=new Set(["width","height","top","left","right","bottom",...Fu]);let mg;function fne(){mg=void 0}const lo={now:()=>(mg===void 0&&lo.set(Un.isProcessing||ste.useManualTiming?Un.timestamp:performance.now()),mg),set:e=>{mg=e,queueMicrotask(fne)}};function lk(e,t){e.indexOf(t)===-1&&e.push(t)}function ck(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class uk{constructor(){this.subscriptions=[]}add(t){return lk(this.subscriptions,t),()=>ck(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function t$(e,t){return t?e*(1e3/t):0}const XT=30,hne=e=>!isNaN(parseFloat(e));class pne{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=lo.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=lo.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=hne(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new uk);const r=this.events[t].add(n);return t==="change"?()=>{r(),Gt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=lo.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>XT)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,XT);return t$(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Kf(e,t){return new pne(e,t)}function mne(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Kf(n))}function gne(e,t){const n=iv(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const l=Ete(o[a]);mne(e,a,l)}}function yne(e){return!!(ar(e)&&e.add)}function yS(e,t){const n=e.getValue("willChange");if(yne(n))return n.add(t)}function n$(e){return e.props[CB]}const r$=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,vne=1e-7,xne=12;function bne(e,t,n,r,i){let o,a,l=0;do a=t+(n-t)/2,o=r$(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>vne&&++l<xne);return a}function tp(e,t,n,r){if(e===t&&n===r)return Wr;const i=o=>bne(o,0,1,e,n);return o=>o===0||o===1?o:r$(i(o),t,r)}const i$=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,o$=e=>t=>1-e(1-t),a$=tp(.33,1.53,.69,.99),dk=o$(a$),s$=i$(dk),l$=e=>(e*=2)<1?.5*dk(e):.5*(2-Math.pow(2,-10*(e-1))),fk=e=>1-Math.sin(Math.acos(e)),c$=o$(fk),u$=i$(fk),d$=e=>/^0[^.\s]+$/u.test(e);function wne(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||d$(e):!0}const Af=e=>Math.round(e*1e5)/1e5,hk=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function _ne(e){return e==null}const Sne=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,pk=(e,t)=>n=>!!(typeof n=="string"&&Sne.test(n)&&n.startsWith(e)||t&&!_ne(n)&&Object.prototype.hasOwnProperty.call(n,t)),f$=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,l]=r.match(hk);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},jne=e=>Zo(0,255,e),r0={...qu,transform:e=>Math.round(jne(e))},nl={test:pk("rgb","red"),parse:f$("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+r0.transform(e)+", "+r0.transform(t)+", "+r0.transform(n)+", "+Af(Gf.transform(r))+")"};function Nne(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const vS={test:pk("#"),parse:Nne,transform:nl.transform},Rc={test:pk("hsl","hue"),parse:f$("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+so.transform(Af(t))+", "+so.transform(Af(n))+", "+Af(Gf.transform(r))+")"},nr={test:e=>nl.test(e)||vS.test(e)||Rc.test(e),parse:e=>nl.test(e)?nl.parse(e):Rc.test(e)?Rc.parse(e):vS.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?nl.transform(e):Rc.transform(e)},kne=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function One(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(hk))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(kne))===null||n===void 0?void 0:n.length)||0)>0}const h$="number",p$="color",Ene="var",Pne="var(",QT="${}",Ane=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Yf(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const l=t.replace(Ane,c=>(nr.test(c)?(r.color.push(o),i.push(p$),n.push(nr.parse(c))):c.startsWith(Pne)?(r.var.push(o),i.push(Ene),n.push(c)):(r.number.push(o),i.push(h$),n.push(parseFloat(c))),++o,QT)).split(QT);return{values:n,split:l,indexes:r,types:i}}function m$(e){return Yf(e).values}function g$(e){const{split:t,types:n}=Yf(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const l=n[a];l===h$?o+=Af(i[a]):l===p$?o+=nr.transform(i[a]):o+=i[a]}return o}}const Tne=e=>typeof e=="number"?0:e;function Cne(e){const t=m$(e);return g$(e)(t.map(Tne))}const ss={test:One,parse:m$,createTransformer:g$,getAnimatableNone:Cne},Rne=new Set(["brightness","contrast","saturate","opacity"]);function Mne(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(hk)||[];if(!r)return e;const i=n.replace(r,"");let o=Rne.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const Ine=/\b([a-z-]*)\(.*?\)/gu,xS={...ss,getAnimatableNone:e=>{const t=e.match(Ine);return t?t.map(Mne).join(" "):e}},Dne={...ZN,color:nr,backgroundColor:nr,outlineColor:nr,fill:nr,stroke:nr,borderColor:nr,borderTopColor:nr,borderRightColor:nr,borderBottomColor:nr,borderLeftColor:nr,filter:xS,WebkitFilter:xS},mk=e=>Dne[e];function y$(e,t){let n=mk(e);return n!==xS&&(n=ss),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Lne=new Set(["auto","none","0"]);function Bne(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!Lne.has(o)&&Yf(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=y$(n,i)}const ZT=e=>e===qu||e===nt,JT=(e,t)=>parseFloat(e.split(", ")[t]),eC=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return JT(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?JT(o[1],e):0}},$ne=new Set(["x","y","z"]),Fne=Fu.filter(e=>!$ne.has(e));function qne(e){const t=[];return Fne.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const cu={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:eC(4,13),y:eC(5,14)};cu.translateX=cu.x;cu.translateY=cu.y;const vl=new Set;let bS=!1,wS=!1;
vendor: 15,490 bytes, line 540
540function v$(){if(wS){const e=Array.from(vl).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=qne(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var l;(l=r.getValue(o))===null||l===void 0||l.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}wS=!1,bS=!1,vl.forEach(e=>e.complete()),vl.clear()}function x$(){vl.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(wS=!0)})}function zne(){x$(),v$()}class gk{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(vl.add(this),bS||(bS=!0,Gt.read(x$),Gt.resolveKeyframes(v$))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),l=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const c=r.readValue(n,l);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=l),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),vl.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,vl.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const b$=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Une=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Hne(e){const t=Une.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function w$(e,t,n=1){const[r,i]=Hne(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return b$(a)?parseFloat(a):a}return QN(i)?w$(i,t,n+1):i}const _$=e=>t=>t.test(e),Vne={test:e=>e==="auto",parse:e=>e},S$=[qu,nt,so,La,Mte,Rte,Vne],tC=e=>S$.find(_$(e));class j$ extends gk{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),QN(d))){const p=w$(d,n.current);p!==void 0&&(t[c]=p),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!e$.has(r)||t.length!==2)return;const[i,o]=t,a=tC(i),l=tC(o);if(a!==l)if(ZT(a)&&ZT(l))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)wne(t[i])&&r.push(i);r.length&&Bne(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=cu[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,l=i[a];i[a]=cu[r](n.measureViewportBox(),window.getComputedStyle(n.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([c,d])=>{n.getValue(c).set(d)}),this.resolveNoneKeyframes()}}const nC=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ss.test(e)||e==="0")&&!e.startsWith("url("));function Wne(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Gne(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=nC(i,t),l=nC(o,t);return!a||!l?!1:Wne(e)||(n==="spring"||ok(n))&&r}const Kne=e=>e!==null;function ov(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Kne),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const Yne=40;class N${constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=lo.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Yne?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&zne(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=lo.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:l,onUpdate:c,isGenerator:d}=this.options;if(!d&&!Gne(t,r,i,o))if(a)this.options.duration=0;else{c&&c(ov(t,this.options,n)),l&&l(),this.resolveFinishedPromise();return}const p=this.initPlayback(t,n);p!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...p},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const en=(e,t,n)=>e+(t-e)*n;function i0(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Xne({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;i=i0(c,l,e+1/3),o=i0(c,l,e),a=i0(c,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Ag(e,t){return n=>n>0?t:e}const o0=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Qne=[vS,nl,Rc],Zne=e=>Qne.find(t=>t.test(e));function rC(e){const t=Zne(e);if(!t)return!1;let n=t.parse(e);return t===Rc&&(n=Xne(n)),n}const iC=(e,t)=>{const n=rC(e),r=rC(t);if(!n||!r)return Ag(e,t);const i={...n};return o=>(i.red=o0(n.red,r.red,o),i.green=o0(n.green,r.green,o),i.blue=o0(n.blue,r.blue,o),i.alpha=en(n.alpha,r.alpha,o),nl.transform(i))},Jne=(e,t)=>n=>t(e(n)),np=(...e)=>e.reduce(Jne),_S=new Set(["none","hidden"]);function ere(e,t){return _S.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function tre(e,t){return n=>en(e,t,n)}function yk(e){return typeof e=="number"?tre:typeof e=="string"?QN(e)?Ag:nr.test(e)?iC:ire:Array.isArray(e)?k$:typeof e=="object"?nr.test(e)?iC:nre:Ag}function k$(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>yk(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function nre(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=yk(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function rre(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],l=e.indexes[a][i[a]],c=(n=e.values[l])!==null&&n!==void 0?n:0;r[o]=c,i[a]++}return r}const ire=(e,t)=>{const n=ss.createTransformer(t),r=Yf(e),i=Yf(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?_S.has(e)&&!i.values.length||_S.has(t)&&!r.values.length?ere(e,t):np(k$(rre(r,i),i.values),n):Ag(e,t)};function O$(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?en(e,t,n):yk(e)(e,t)}const ore=5;function E$(e,t,n){const r=Math.max(t-ore,0);return t$(n-e(r),t-r)}const rn={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},a0=.001;function are({duration:e=rn.duration,bounce:t=rn.bounce,velocity:n=rn.velocity,mass:r=rn.mass}){let i,o,a=1-t;a=Zo(rn.minDamping,rn.maxDamping,a),e=Zo(rn.minDuration,rn.maxDuration,Vo(e)),a<1?(i=d=>{const p=d*a,f=p*e,m=p-n,g=SS(d,a),b=Math.exp(-f);return a0-m/g*b},o=d=>{const f=d*a*e,m=f*n+n,g=Math.pow(a,2)*Math.pow(d,2)*e,b=Math.exp(-f),y=SS(Math.pow(d,2),a);return(-i(d)+a0>0?-1:1)*((m-g)*b)/y}):(i=d=>{const p=Math.exp(-d*e),f=(d-n)*e+1;return-a0+p*f},o=d=>{const p=Math.exp(-d*e),f=(n-d)*(e*e);return p*f});const l=5/e,c=lre(i,o,l);if(e=Ho(e),isNaN(c))return{stiffness:rn.stiffness,damping:rn.damping,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const sre=12;function lre(e,t,n){let r=n;for(let i=1;i<sre;i++)r=r-e(r)/t(r);return r}function SS(e,t){return e*Math.sqrt(1-t*t)}const cre=["duration","bounce"],ure=["stiffness","damping","mass"];function oC(e,t){return t.some(n=>e[n]!==void 0)}function dre(e){let t={velocity:rn.velocity,stiffness:rn.stiffness,damping:rn.damping,mass:rn.mass,isResolvedFromDuration:!1,...e};if(!oC(e,ure)&&oC(e,cre))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Zo(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:rn.mass,stiffness:i,damping:o}}else{const n=are(e);t={...t,...n,mass:rn.mass},t.isResolvedFromDuration=!0}return t}function P$(e=rn.visualDuration,t=rn.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:c,damping:d,mass:p,duration:f,velocity:m,isResolvedFromDuration:g}=dre({...n,velocity:-Vo(n.velocity||0)}),b=m||0,y=d/(2*Math.sqrt(c*p)),v=a-o,x=Vo(Math.sqrt(c/p)),_=Math.abs(v)<5;r||(r=_?rn.restSpeed.granular:rn.restSpeed.default),i||(i=_?rn.restDelta.granular:rn.restDelta.default);let j;if(y<1){const N=SS(x,y);j=O=>{const E=Math.exp(-y*x*O);return a-E*((b+y*x*v)/N*Math.sin(N*O)+v*Math.cos(N*O))}}else if(y===1)j=N=>a-Math.exp(-x*N)*(v+(b+x*v)*N);else{const N=x*Math.sqrt(y*y-1);j=O=>{const E=Math.exp(-y*x*O),A=Math.min(N*O,300);return a-E*((b+y*x*v)*Math.sinh(A)+N*v*Math.cosh(A))/N}}const S={calculatedDuration:g&&f||null,next:N=>{const O=j(N);if(g)l.done=N>=f;else{let E=0;y<1&&(E=N===0?Ho(b):E$(j,N,O));const A=Math.abs(E)<=r,I=Math.abs(a-O)<=i;l.done=A&&I}return l.value=l.done?a:O,l},toString:()=>{const N=Math.min(GB(S),mS),O=KB(E=>S.next(N*E).value,N,30);return N+"ms "+O}};return S}function aC({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:l,max:c,restDelta:d=.5,restSpeed:p}){const f=e[0],m={done:!1,value:f},g=A=>l!==void 0&&A<l||c!==void 0&&A>c,b=A=>l===void 0?c:c===void 0||Math.abs(l-A)<Math.abs(c-A)?l:c;let y=n*t;const v=f+y,x=a===void 0?v:a(v);x!==v&&(y=x-f);const _=A=>-y*Math.exp(-A/r),j=A=>x+_(A),S=A=>{const I=_(A),M=j(A);m.done=Math.abs(I)<=d,m.value=m.done?x:M};let N,O;const E=A=>{g(m.value)&&(N=A,O=P$({keyframes:[m.value,b(m.value)],velocity:E$(j,A,m.value),damping:i,stiffness:o,restDelta:d,restSpeed:p}))};return E(0),{calculatedDuration:null,next:A=>{let I=!1;return!O&&N===void 0&&(I=!0,S(A),E(A)),N!==void 0&&A>=N?O.next(A-N):(!I&&S(A),m)}}}const fre=tp(.42,0,1,1),hre=tp(0,0,.58,1),A$=tp(.42,0,.58,1),pre=e=>Array.isArray(e)&&typeof e[0]!="number",mre={linear:Wr,easeIn:fre,easeInOut:A$,easeOut:hre,circIn:fk,circInOut:u$,circOut:c$,backIn:dk,backInOut:s$,backOut:a$,anticipate:l$},sC=e=>{if(ak(e)){OB(e.length===4);const[t,n,r,i]=e;return tp(t,n,r,i)}else if(typeof e=="string")return mre[e];return e};function gre(e,t,n){const r=[],i=n||O$,o=e.length-1;for(let a=0;a<o;a++){let l=i(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||Wr:t;l=np(c,l)}r.push(l)}return r}function yre(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(OB(o===t.length),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=gre(t,r,i),c=l.length,d=p=>{if(a&&p<e[0])return t[0];let f=0;if(c>1)for(;f<e.length-2&&!(p<e[f+1]);f++);const m=su(e[f],e[f+1],p);return l[f](m)};return n?p=>d(Zo(e[0],e[o-1],p)):d}function vre(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=su(0,t,r);e.push(en(n,1,i))}}function xre(e){const t=[0];return vre(t,e.length-1),t}function bre(e,t){return e.map(n=>n*t)}function wre(e,t){return e.map(()=>t||A$).splice(0,e.length-1)}function Tg({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=pre(r)?r.map(sC):sC(r),o={done:!1,value:t[0]},a=bre(n&&n.length===t.length?n:xre(t),e),l=yre(a,t,{ease:Array.isArray(i)?i:wre(t,i)});return{calculatedDuration:e,next:c=>(o.value=l(c),o.done=c>=e,o)}}const _re=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Gt.update(t,!0),stop:()=>as(t),now:()=>Un.isProcessing?Un.timestamp:lo.now()}},Sre={decay:aC,inertia:aC,tween:Tg,keyframes:Tg,spring:P$},jre=e=>e/100;class vk extends N${constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||gk,l=(c,d)=>this.onKeyframesResolved(c,d);this.resolver=new a(o,l,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,l=ok(n)?n:Sre[n]||Tg;let c,d;l!==Tg&&typeof t[0]!="number"&&(c=np(jre,O$(t[0],t[1])),t=[0,100]);const p=l({...this.options,keyframes:t});o==="mirror"&&(d=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),p.calculatedDuration===null&&(p.calculatedDuration=GB(p));const{calculatedDuration:f}=p,m=f+i,g=m*(r+1)-i;return{generator:p,mirroredGenerator:d,mapPercentToKeyframes:c,calculatedDuration:f,resolvedDuration:m,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:A}=this.options;return{done:!0,value:A[A.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:l,keyframes:c,calculatedDuration:d,totalDuration:p,resolvedDuration:f}=r;if(this.startTime===null)return o.next(0);const{delay:m,repeat:g,repeatType:b,repeatDelay:y,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-p/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const x=this.currentTime-m*(this.speed>=0?1:-1),_=this.speed>=0?x<0:x>p;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=p);let j=this.currentTime,S=o;if(g){const A=Math.min(this.currentTime,p)/f;let I=Math.floor(A),M=A%1;!M&&A>=1&&(M=1),M===1&&I--,I=Math.min(I,g+1),!!(I%2)&&(b==="reverse"?(M=1-M,y&&(M-=y/f)):b==="mirror"&&(S=a)),j=Zo(0,1,M)*f}const N=_?{done:!1,value:c[0]}:S.next(j);l&&(N.value=l(N.value));let{done:O}=N;!_&&d!==null&&(O=this.speed>=0?this.currentTime>=p:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&O);return E&&i!==void 0&&(N.value=ov(c,this.options,i)),v&&v(N.value),E&&this.finish(),N}get duration(){const{resolved:t}=this;return t?Vo(t.calculatedDuration):0}
vendor: 54,577 bytes, line 540
540get time(){return Vo(this.currentTime)}set time(t){t=Ho(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Vo(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=_re,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const Nre=new Set(["opacity","clipPath","filter","transform"]);function kre(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:l="easeInOut",times:c}={}){const d={[t]:n};c&&(d.offset=c);const p=XB(l,i);return Array.isArray(p)&&(d.easing=p),e.animate(d,{delay:r,duration:i,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const Ore=HN(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Cg=10,Ere=2e4;function Pre(e){return ok(e.type)||e.type==="spring"||!YB(e.ease)}function Are(e,t){const n=new vk({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<Ere;)r=n.sample(o),i.push(r.value),o+=Cg;return{times:void 0,keyframes:i,duration:o-Cg,ease:"linear"}}const T$={anticipate:l$,backInOut:s$,circInOut:u$};function Tre(e){return e in T$}class lC extends N${constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new j$(o,(a,l)=>this.onKeyframesResolved(a,l),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:a,motionValue:l,name:c,startTime:d}=this.options;if(!l.owner||!l.owner.current)return!1;if(typeof o=="string"&&Pg()&&Tre(o)&&(o=T$[o]),Pre(this.options)){const{onComplete:f,onUpdate:m,motionValue:g,element:b,...y}=this.options,v=Are(t,y);t=v.keyframes,t.length===1&&(t[1]=t[0]),r=v.duration,i=v.times,o=v.ease,a="keyframes"}const p=kre(l.owner.current,c,t,{...this.options,duration:r,times:i,ease:o});return p.startTime=d??this.calcStartTime(),this.pendingTimeline?(WT(p,this.pendingTimeline),this.pendingTimeline=void 0):p.onfinish=()=>{const{onComplete:f}=this.options;l.set(ov(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:p,duration:r,times:i,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Vo(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Vo(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Ho(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Wr;const{animation:r}=n;WT(r,t)}return Wr}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:l}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:p,onComplete:f,element:m,...g}=this.options,b=new vk({...g,keyframes:r,duration:i,type:o,ease:a,times:l,isGenerator:!0}),y=Ho(this.time);d.setWithVelocity(b.sample(y-Cg).value,b.sample(y).value,Cg)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:l}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:d}=n.owner.getProps();return Ore()&&r&&Nre.has(r)&&!c&&!d&&!i&&o!=="mirror"&&a!==0&&l!=="inertia"}}const Cre={type:"spring",stiffness:500,damping:25,restSpeed:10},Rre=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Mre={type:"keyframes",duration:.8},Ire={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Dre=(e,{keyframes:t})=>t.length>2?Mre:Dl.has(e)?e.startsWith("scale")?Rre(t[1]):Cre:Ire;function Lre({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:l,from:c,elapsed:d,...p}){return!!Object.keys(p).length}const xk=(e,t,n,r={},i,o)=>a=>{const l=ik(r,e)||{},c=l.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Ho(c);let p={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-d,onUpdate:m=>{t.set(m),l.onUpdate&&l.onUpdate(m)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:o?void 0:i};Lre(l)||(p={...p,...Dre(e,p)}),p.duration&&(p.duration=Ho(p.duration)),p.repeatDelay&&(p.repeatDelay=Ho(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let f=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(p.duration=0,p.delay===0&&(f=!0)),f&&!o&&t.get()!==void 0){const m=ov(p.keyframes,l);if(m!==void 0)return Gt.update(()=>{p.onUpdate(m),p.onComplete()}),new nne([])}return!o&&lC.supports(p)?new lC(p):new vk(p)};function Bre({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function C$(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:l,...c}=t;r&&(a=r);const d=[],p=i&&e.animationState&&e.animationState.getState()[i];for(const f in c){const m=e.getValue(f,(o=e.latestValues[f])!==null&&o!==void 0?o:null),g=c[f];if(g===void 0||p&&Bre(p,f))continue;const b={delay:n,...ik(a||{},f)};let y=!1;if(window.MotionHandoffAnimation){const x=n$(e);if(x){const _=window.MotionHandoffAnimation(x,f,Gt);_!==null&&(b.startTime=_,y=!0)}}yS(e,f),m.start(xk(f,m,g,e.shouldReduceMotion&&e$.has(f)?{type:!1}:b,e,y));const v=m.animation;v&&d.push(v)}return l&&Promise.all(d).then(()=>{Gt.update(()=>{l&&gne(e,l)})}),d}function jS(e,t,n={}){var r;const i=iv(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(C$(e,i,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:p=0,staggerChildren:f,staggerDirection:m}=o;return $re(e,t,p+d,f,m,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[d,p]=c==="beforeChildren"?[a,l]:[l,a];return d().then(()=>p())}else return Promise.all([a(),l(n.delay)])}function $re(e,t,n=0,r=0,i=1,o){const a=[],l=(e.variantChildren.size-1)*r,c=i===1?(d=0)=>d*r:(d=0)=>l-d*r;return Array.from(e.variantChildren).sort(Fre).forEach((d,p)=>{d.notify("AnimationStart",t),a.push(jS(d,t,{...o,delay:n+c(p)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function Fre(e,t){return e.sortNodePosition(t)}function qre(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>jS(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=jS(e,t,n);else{const i=typeof t=="function"?iv(e,t,n.custom):t;r=Promise.all(C$(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const zre=WN.length;function R$(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?R$(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<zre;n++){const r=WN[n],i=e.props[r];(Wf(i)||i===!1)&&(t[r]=i)}return t}const Ure=[...VN].reverse(),Hre=VN.length;function Vre(e){return t=>Promise.all(t.map(({animation:n,options:r})=>qre(e,n,r)))}function Wre(e){let t=Vre(e),n=cC(),r=!0;const i=c=>(d,p)=>{var f;const m=iv(e,p,c==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(m){const{transition:g,transitionEnd:b,...y}=m;d={...d,...y,...b}}return d};function o(c){t=c(e)}function a(c){const{props:d}=e,p=R$(e.parent)||{},f=[],m=new Set;let g={},b=1/0;for(let v=0;v<Hre;v++){const x=Ure[v],_=n[x],j=d[x]!==void 0?d[x]:p[x],S=Wf(j),N=x===c?_.isActive:null;N===!1&&(b=v);let O=j===p[x]&&j!==d[x]&&S;if(O&&r&&e.manuallyAnimateOnMount&&(O=!1),_.protectedKeys={...g},!_.isActive&&N===null||!j&&!_.prevProp||nv(j)||typeof j=="boolean")continue;const E=Gre(_.prevProp,j);let A=E||x===c&&_.isActive&&!O&&S||v>b&&S,I=!1;const M=Array.isArray(j)?j:[j];let C=M.reduce(i(x),{});N===!1&&(C={});const{prevResolvedValues:R={}}=_,B={...R,...C},$=V=>{A=!0,m.has(V)&&(I=!0,m.delete(V)),_.needsAnimating[V]=!0;const Y=e.getValue(V);Y&&(Y.liveStyle=!1)};for(const V in B){const Y=C[V],W=R[V];if(g.hasOwnProperty(V))continue;let q=!1;pS(Y)&&pS(W)?q=!WB(Y,W):q=Y!==W,q?Y!=null?$(V):m.add(V):Y!==void 0&&m.has(V)?$(V):_.protectedKeys[V]=!0}_.prevProp=j,_.prevResolvedValues=C,_.isActive&&(g={...g,...C}),r&&e.blockInitialAnimation&&(A=!1),A&&(!(O&&E)||I)&&f.push(...M.map(V=>({animation:V,options:{type:x}})))}if(m.size){const v={};m.forEach(x=>{const _=e.getBaseTarget(x),j=e.getValue(x);j&&(j.liveStyle=!0),v[x]=_??null}),f.push({animation:v})}let y=!!f.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(f):Promise.resolve()}function l(c,d){var p;if(n[c].isActive===d)return Promise.resolve();(p=e.variantChildren)===null||p===void 0||p.forEach(m=>{var g;return(g=m.animationState)===null||g===void 0?void 0:g.setActive(c,d)}),n[c].isActive=d;const f=a(c);for(const m in n)n[m].protectedKeys={};return f}return{animateChanges:a,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=cC(),r=!0}}}function Gre(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!WB(t,e):!1}function Hs(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function cC(){return{animate:Hs(!0),whileInView:Hs(),whileHover:Hs(),whileTap:Hs(),whileDrag:Hs(),whileFocus:Hs(),exit:Hs()}}class hs{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Kre extends hs{constructor(t){super(t),t.animationState||(t.animationState=Wre(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();nv(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let Yre=0;class Xre extends hs{constructor(){super(...arguments),this.id=Yre++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const Qre={animation:{Feature:Kre},exit:{Feature:Xre}};function Xf(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function rp(e){return{point:{x:e.pageX,y:e.pageY}}}const Zre=e=>t=>sk(t)&&e(t,rp(t));function Tf(e,t,n,r){return Xf(e,t,Zre(n),r)}const uC=(e,t)=>Math.abs(e-t);function Jre(e,t){const n=uC(e.x,t.x),r=uC(e.y,t.y);return Math.sqrt(n**2+r**2)}class M${constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=l0(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=Jre(f.offset,{x:0,y:0})>=3;if(!m&&!g)return;const{point:b}=f,{timestamp:y}=Un;this.history.push({...b,timestamp:y});const{onStart:v,onMove:x}=this.handlers;m||(v&&v(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,f)},this.handlePointerMove=(f,m)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=s0(m,this.transformPagePoint),Gt.update(this.updatePoint,!0)},this.handlePointerUp=(f,m)=>{this.end();const{onEnd:g,onSessionEnd:b,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=l0(f.type==="pointercancel"?this.lastMoveEventInfo:s0(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(f,v),b&&b(f,v)},!sk(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=rp(t),l=s0(a,this.transformPagePoint),{point:c}=l,{timestamp:d}=Un;this.history=[{...c,timestamp:d}];const{onSessionStart:p}=n;p&&p(t,l0(l,this.history)),this.removeListeners=np(Tf(this.contextWindow,"pointermove",this.handlePointerMove),Tf(this.contextWindow,"pointerup",this.handlePointerUp),Tf(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),as(this.updatePoint)}}function s0(e,t){return t?{point:t(e.point)}:e}function dC(e,t){return{x:e.x-t.x,y:e.y-t.y}}function l0({point:e},t){return{point:e,delta:dC(e,I$(t)),offset:dC(e,eie(t)),velocity:tie(t,.1)}}function eie(e){return e[0]}function I$(e){return e[e.length-1]}function tie(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=I$(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Ho(t)));)n--;if(!r)return{x:0,y:0};const o=Vo(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const D$=1e-4,nie=1-D$,rie=1+D$,L$=.01,iie=0-L$,oie=0+L$;function Kr(e){return e.max-e.min}function aie(e,t,n){return Math.abs(e-t)<=n}function fC(e,t,n,r=.5){e.origin=r,e.originPoint=en(t.min,t.max,e.origin),e.scale=Kr(n)/Kr(t),e.translate=en(n.min,n.max,e.origin)-e.originPoint,(e.scale>=nie&&e.scale<=rie||isNaN(e.scale))&&(e.scale=1),(e.translate>=iie&&e.translate<=oie||isNaN(e.translate))&&(e.translate=0)}function Cf(e,t,n,r){fC(e.x,t.x,n.x,r?r.originX:void 0),fC(e.y,t.y,n.y,r?r.originY:void 0)}function hC(e,t,n){e.min=n.min+t.min,e.max=e.min+Kr(t)}function sie(e,t,n){hC(e.x,t.x,n.x),hC(e.y,t.y,n.y)}function pC(e,t,n){e.min=t.min-n.min,e.max=e.min+Kr(t)}function Rf(e,t,n){pC(e.x,t.x,n.x),pC(e.y,t.y,n.y)}function lie(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?en(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?en(n,e,r.max):Math.min(e,n)),e}function mC(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function cie(e,{top:t,left:n,bottom:r,right:i}){return{x:mC(e.x,n,i),y:mC(e.y,t,r)}}function gC(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function uie(e,t){return{x:gC(e.x,t.x),y:gC(e.y,t.y)}}function die(e,t){let n=.5;const r=Kr(e),i=Kr(t);return i>r?n=su(t.min,t.max-r,e.min):r>i&&(n=su(e.min,e.max-i,t.min)),Zo(0,1,n)}function fie(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const NS=.35;function hie(e=NS){return e===!1?e=0:e===!0&&(e=NS),{x:yC(e,"left","right"),y:yC(e,"top","bottom")}}function yC(e,t,n){return{min:vC(e,t),max:vC(e,n)}}function vC(e,t){return typeof e=="number"?e:e[t]||0}const xC=()=>({translate:0,scale:1,origin:0,originPoint:0}),Mc=()=>({x:xC(),y:xC()}),bC=()=>({min:0,max:0}),ln=()=>({x:bC(),y:bC()});function si(e){return[e("x"),e("y")]}function B$({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function pie({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function mie(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function c0(e){return e===void 0||e===1}function kS({scale:e,scaleX:t,scaleY:n}){return!c0(e)||!c0(t)||!c0(n)}function Ys(e){return kS(e)||$$(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function $$(e){return wC(e.x)||wC(e.y)}function wC(e){return e&&e!=="0%"}function Rg(e,t,n){const r=e-n,i=t*r;return n+i}function _C(e,t,n,r,i){return i!==void 0&&(e=Rg(e,i,r)),Rg(e,n,r)+t}function OS(e,t=0,n=1,r,i){e.min=_C(e.min,t,n,r,i),e.max=_C(e.max,t,n,r,i)}function F$(e,{x:t,y:n}){OS(e.x,t.translate,t.scale,t.originPoint),OS(e.y,n.translate,n.scale,n.originPoint)}const SC=.999999999999,jC=1.0000000000001;function gie(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let l=0;l<i;l++){o=n[l],a=o.projectionDelta;const{visualElement:c}=o.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Dc(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,F$(e,a)),r&&Ys(o.latestValues)&&Dc(e,o.latestValues))}t.x<jC&&t.x>SC&&(t.x=1),t.y<jC&&t.y>SC&&(t.y=1)}function Ic(e,t){e.min=e.min+t,e.max=e.max+t}function NC(e,t,n,r,i=.5){const o=en(e.min,e.max,i);OS(e,t,n,o,r)}function Dc(e,t){NC(e.x,t.x,t.scaleX,t.scale,t.originX),NC(e.y,t.y,t.scaleY,t.scale,t.originY)}function q$(e,t){return B$(mie(e.getBoundingClientRect(),t))}function yie(e,t,n){const r=q$(e,n),{scroll:i}=t;return i&&(Ic(r.x,i.offset.x),Ic(r.y,i.offset.y)),r}const z$=({current:e})=>e?e.ownerDocument.defaultView:null,vie=new WeakMap;class xie{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ln(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=p=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(rp(p).point)},o=(p,f)=>{const{drag:m,dragPropagation:g,onDragStart:b}=this.getProps();if(m&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=dne(m),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),si(v=>{let x=this.getAxisMotionValue(v).get()||0;if(so.test(x)){const{projection:_}=this.visualElement;if(_&&_.layout){const j=_.layout.layoutBox[v];j&&(x=Kr(j)*(parseFloat(x)/100))}}this.originPoint[v]=x}),b&&Gt.postRender(()=>b(p,f)),yS(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},a=(p,f)=>{const{dragPropagation:m,dragDirectionLock:g,onDirectionLock:b,onDrag:y}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:v}=f;if(g&&this.currentDirection===null){this.currentDirection=bie(v),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",f.point,v),this.updateAxis("y",f.point,v),this.visualElement.render(),y&&y(p,f)},l=(p,f)=>this.stop(p,f),c=()=>si(p=>{var f;return this.getAnimationState(p)==="paused"&&((f=this.getAxisMotionValue(p).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new M$(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:z$(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Gt.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Im(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=lie(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Cc(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=cie(i.layoutBox,n):this.constraints=!1,this.elastic=hie(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&si(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=fie(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Cc(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=yie(r,i.root,this.visualElement.getTransformPagePoint());let a=uie(i.layout.layoutBox,o);if(n){const l=n(pie(a));this.hasMutatedConstraints=!!l,l&&(a=B$(l))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},d=si(p=>{if(!Im(p,n,this.currentDirection))return;let f=c&&c[p]||{};a&&(f={min:0,max:0});const m=i?200:1e6,g=i?40:1e7,b={type:"inertia",velocity:r?t[p]:0,bounceStiffness:m,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(p,b)});return Promise.all(d).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return yS(this.visualElement,t),r.start(xk(t,r,0,n,this.visualElement,!1))}stopAnimation(){si(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){si(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){si(n=>{const{drag:r}=this.getProps();if(!Im(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:l}=i.layout.layoutBox[n];o.set(t[n]-en(a,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Cc(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};si(a=>{const l=this.getAxisMotionValue(a);if(l&&this.constraints!==!1){const c=l.get();i[a]=die({min:c,max:c},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),si(a=>{if(!Im(a,t,null))return;const l=this.getAxisMotionValue(a),{min:c,max:d}=this.constraints[a];l.set(en(c,d,i[a]))})}addListeners(){if(!this.visualElement.current)return;vie.set(this.visualElement,this);const t=this.visualElement.current,n=Tf(t,"pointerdown",c=>{const{drag:d,dragListener:p=!0}=this.getProps();d&&p&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Cc(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Gt.read(r);const a=Xf(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(si(p=>{const f=this.getAxisMotionValue(p);f&&(this.originPoint[p]+=c[p].translate,f.set(f.get()+c[p].translate))}),this.visualElement.render())}));return()=>{a(),n(),o(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=NS,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:l}}}function Im(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function bie(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class wie extends hs{constructor(t){super(t),this.removeGroupControls=Wr,this.removeListeners=Wr,this.controls=new xie(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Wr}unmount(){this.removeGroupControls(),this.removeListeners()}}const kC=e=>(t,n)=>{e&&Gt.postRender(()=>e(t,n))};class _ie extends hs{constructor(){super(...arguments),this.removePointerDownListener=Wr}onPointerDown(t){this.session=new M$(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:z$(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:kC(t),onStart:kC(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Gt.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=Tf(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const gg={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function OC(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Qd={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(nt.test(e))e=parseFloat(e);else return e;const n=OC(e,t.target.x),r=OC(e,t.target.y);return`${n}% ${r}%`}},Sie={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=ss.parse(e);if(i.length>5)return r;const o=ss.createTransformer(e),a=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;i[0+a]/=l,i[1+a]/=c;const d=en(l,c,.5);return typeof i[2+a]=="number"&&(i[2+a]/=d),typeof i[3+a]=="number"&&(i[3+a]/=d),o(i)}};class jie extends P.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;Hte(Nie),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),gg.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||Gt.postRender(()=>{const l=a.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),KN.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function U$(e){const[t,n]=NB(),r=P.useContext(FN);return s.jsx(jie,{...e,layoutGroup:r,switchLayoutGroup:P.useContext(RB),isPresent:t,safeToRemove:n})}const Nie={borderRadius:{...Qd,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Qd,borderTopRightRadius:Qd,borderBottomLeftRadius:Qd,borderBottomRightRadius:Qd,boxShadow:Sie};function kie(e,t,n){const r=ar(e)?e:Kf(e);return r.start(xk("",r,t,n)),r.animation}function Oie(e){return e instanceof SVGElement&&e.tagName!=="svg"}const Eie=(e,t)=>e.depth-t.depth;class Pie{constructor(){this.children=[],this.isDirty=!1}add(t){lk(this.children,t),this.isDirty=!0}remove(t){ck(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Eie),this.isDirty=!1,this.children.forEach(t)}}function Aie(e,t){const n=lo.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(as(r),e(o-t))};return Gt.read(r,!0),()=>as(r)}const H$=["TopLeft","TopRight","BottomLeft","BottomRight"],Tie=H$.length,EC=e=>typeof e=="string"?parseFloat(e):e,PC=e=>typeof e=="number"||nt.test(e);function Cie(e,t,n,r,i,o){i?(e.opacity=en(0,n.opacity!==void 0?n.opacity:1,Rie(r)),e.opacityExit=en(t.opacity!==void 0?t.opacity:1,0,Mie(r))):o&&(e.opacity=en(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<Tie;a++){const l=`border${H$[a]}Radius`;let c=AC(t,l),d=AC(n,l);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||PC(c)===PC(d)?(e[l]=Math.max(en(EC(c),EC(d),r),0),(so.test(d)||so.test(c))&&(e[l]+="%")):e[l]=d}(t.rotate||n.rotate)&&(e.rotate=en(t.rotate||0,n.rotate||0,r))}function AC(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Rie=V$(0,.5,c$),Mie=V$(.5,.95,Wr);function V$(e,t,n){return r=>r<e?0:r>t?1:n(su(e,t,r))}function TC(e,t){e.min=t.min,e.max=t.max}function ri(e,t){TC(e.x,t.x),TC(e.y,t.y)}function CC(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function RC(e,t,n,r,i){return e-=t,e=Rg(e,1/n,r),i!==void 0&&(e=Rg(e,1/i,r)),e}function Iie(e,t=0,n=1,r=.5,i,o=e,a=e){if(so.test(t)&&(t=parseFloat(t),t=en(a.min,a.max,t/100)-a.min),typeof t!="number")return;let l=en(o.min,o.max,r);e===o&&(l-=t),e.min=RC(e.min,t,n,l,i),e.max=RC(e.max,t,n,l,i)}function MC(e,t,[n,r,i],o,a){Iie(e,t[n],t[r],t[i],t.scale,o,a)}const Die=["x","scaleX","originX"],Lie=["y","scaleY","originY"];function IC(e,t,n,r){MC(e.x,t,Die,n?n.x:void 0,r?r.x:void 0),MC(e.y,t,Lie,n?n.y:void 0,r?r.y:void 0)}function DC(e){return e.translate===0&&e.scale===1}function W$(e){return DC(e.x)&&DC(e.y)}function LC(e,t){return e.min===t.min&&e.max===t.max}function Bie(e,t){return LC(e.x,t.x)&&LC(e.y,t.y)}function BC(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function G$(e,t){return BC(e.x,t.x)&&BC(e.y,t.y)}function $C(e){return Kr(e.x)/Kr(e.y)}function FC(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class $ie{constructor(){this.members=[]}add(t){lk(this.members,t),t.scheduleRender()}remove(t){if(ck(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Fie(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:p,rotateX:f,rotateY:m,skewX:g,skewY:b}=n;d&&(r=`perspective(${d}px) ${r}`),p&&(r+=`rotate(${p}deg) `),f&&(r+=`rotateX(${f}deg) `),m&&(r+=`rotateY(${m}deg) `),g&&(r+=`skewX(${g}deg) `),b&&(r+=`skewY(${b}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(r+=`scale(${l}, ${c})`),r||"none"}const Xs={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},bf=typeof window<"u"&&window.MotionDebug!==void 0,u0=["","X","Y","Z"],qie={visibility:"hidden"},qC=1e3;let zie=0;function d0(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function K$(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=n$(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Gt,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&K$(r)}function Y$({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},l=t==null?void 0:t()){this.id=zie++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,bf&&(Xs.totalNodes=Xs.resolvedTargetDeltas=Xs.recalculatedProjection=0),this.nodes.forEach(Vie),this.nodes.forEach(Xie),this.nodes.forEach(Qie),this.nodes.forEach(Wie),bf&&window.MotionDebug.record(Xs)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new Pie)}addEventListener(a,l){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new uk),this.eventHandlers.get(a).add(l)}notifyListeners(a,...l){const c=this.eventHandlers.get(a);c&&c.notify(...l)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Oie(a),this.instance=a;const{layoutId:c,layout:d,visualElement:p}=this.options;if(p&&!p.current&&p.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(d||c)&&(this.isLayoutDirty=!0),e){let f;const m=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=Aie(m,250),gg.hasAnimatedSinceResize&&(gg.hasAnimatedSinceResize=!1,this.nodes.forEach(UC))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&p&&(c||d)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:m,hasRelativeTargetChanged:g,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||p.getDefaultTransition()||noe,{onLayoutAnimationStart:v,onLayoutAnimationComplete:x}=p.getProps(),_=!this.targetLayout||!G$(this.targetLayout,b)||g,j=!m&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||j||m&&(_||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,j);const S={...ik(y,"layout"),onPlay:v,onComplete:x};(p.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else m||UC(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,as(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Zie),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&K$(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){const f=this.path[p];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(zC);return}this.isUpdating||this.nodes.forEach(Kie),this.isUpdating=!1,this.nodes.forEach(Yie),this.nodes.forEach(Uie),this.nodes.forEach(Hie),this.clearAllSnapshots();const l=lo.now();Un.delta=Zo(0,1e3/60,l-Un.timestamp),Un.timestamp=l,Un.isProcessing=!0,t0.update.process(Un),t0.preRender.process(Un),t0.render.process(Un),Un.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,KN.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Gie),this.sharedNodes.forEach(Jie)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ln(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(l=!1),l){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!W$(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,p=d!==this.prevTransformTemplateValue;a&&(l||Ys(this.latestValues)||p)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return a&&(c=this.removeTransform(c)),roe(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:l}=this.options;if(!l)return ln();const c=l.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(ioe))){const{scroll:p}=this.root;p&&(Ic(c.x,p.offset.x),Ic(c.y,p.offset.y))}return c}removeElementScroll(a){var l;const c=ln();if(ri(c,a),!((l=this.scroll)===null||l===void 0)&&l.wasRoot)return c;for(let d=0;d<this.path.length;d++){const p=this.path[d],{scroll:f,options:m}=p;p!==this.root&&f&&m.layoutScroll&&(f.wasRoot&&ri(c,a),Ic(c.x,f.offset.x),Ic(c.y,f.offset.y))}return c}applyTransform(a,l=!1){const c=ln();ri(c,a);for(let d=0;d<this.path.length;d++){const p=this.path[d];!l&&p.options.layoutScroll&&p.scroll&&p!==p.root&&Dc(c,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),Ys(p.latestValues)&&Dc(c,p.latestValues)}return Ys(this.latestValues)&&Dc(c,this.latestValues),c}removeTransform(a){const l=ln();ri(l,a);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!Ys(d.latestValues))continue;kS(d.latestValues)&&d.updateSnapshot();const p=ln(),f=d.measurePageBox();ri(p,f),IC(l,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,p)}return Ys(this.latestValues)&&IC(l,this.latestValues),l}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Un.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var l;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==c;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:f,layoutId:m}=this.options;if(!(!this.layout||!(f||m))){if(this.resolvedRelativeTargetAt=Un.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ln(),this.relativeTargetOrigin=ln(),Rf(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),ri(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=ln(),this.targetWithTransforms=ln()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),sie(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ri(this.target,this.layout.layoutBox),F$(this.target,this.targetDelta)):ri(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ln(),this.relativeTargetOrigin=ln(),Rf(this.relativeTargetOrigin,this.target,g.target),ri(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}bf&&Xs.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||kS(this.parent.latestValues)||$$(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const l=this.getLead(),c=!!this.resumingFrom||this!==l;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===Un.timestamp&&(d=!1),d)return;const{layout:p,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||f))return;ri(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,g=this.treeScale.y;gie(this.layoutCorrected,this.treeScale,this.path,c),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=ln());const{target:b}=l;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(CC(this.prevProjectionDelta.x,this.projectionDelta.x),CC(this.prevProjectionDelta.y,this.projectionDelta.y)),Cf(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==g||!FC(this.projectionDelta.x,this.prevProjectionDelta.x)||!FC(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b)),bf&&Xs.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var l;if((l=this.options.visualElement)===null||l===void 0||l.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Mc(),this.projectionDelta=Mc(),this.projectionDeltaWithTransform=Mc()}setAnimationOrigin(a,l=!1){const c=this.snapshot,d=c?c.latestValues:{},p={...this.latestValues},f=Mc();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const m=ln(),g=c?c.source:void 0,b=this.layout?this.layout.source:void 0,y=g!==b,v=this.getStack(),x=!v||v.members.length<=1,_=!!(y&&!x&&this.options.crossfade===!0&&!this.path.some(toe));this.animationProgress=0;let j;this.mixTargetDelta=S=>{const N=S/1e3;HC(f.x,a.x,N),HC(f.y,a.y,N),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Rf(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),eoe(this.relativeTarget,this.relativeTargetOrigin,m,N),j&&Bie(this.relativeTarget,j)&&(this.isProjectionDirty=!1),j||(j=ln()),ri(j,this.relativeTarget)),y&&(this.animationValues=p,Cie(p,d,this.latestValues,N,_,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=N},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(as(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Gt.update(()=>{gg.hasAnimatedSinceResize=!0,this.currentAnimation=kie(0,qC,{...a,onUpdate:l=>{this.mixTargetDelta(l),a.onUpdate&&a.onUpdate(l)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(qC),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:l,target:c,layout:d,latestValues:p}=a;if(!(!l||!c||!d)){if(this!==a&&this.layout&&d&&X$(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||ln();const f=Kr(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+f;const m=Kr(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+m}ri(l,c),Dc(l,p),Cf(this.projectionDeltaWithTransform,this.layoutCorrected,l,p)}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new $ie),this.sharedNodes.get(a).add(l);const d=l.options.initialPromotionConfig;l.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(l):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:l}=this.options;return l?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:l}=this.options;return l?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:l,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let l=!1;const{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const d={};c.z&&d0("z",a,d,this.animationValues);for(let p=0;p<u0.length;p++)d0(`rotate${u0[p]}`,a,d,this.animationValues),d0(`skew${u0[p]}`,a,d,this.animationValues);a.render();for(const p in d)a.setStaticValue(p,d[p]),this.animationValues&&(this.animationValues[p]=d[p]);a.scheduleRender()}getProjectionStyles(a){var l,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return qie;const d={visibility:""},p=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=pg(a==null?void 0:a.pointerEvents)||"",d.transform=p?p(this.latestValues,""):"none",d;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const y={};return this.options.layoutId&&(y.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,y.pointerEvents=pg(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Ys(this.latestValues)&&(y.transform=p?p({},""):"none",this.hasProjected=!1),y}const m=f.animationValues||f.latestValues;this.applyTransformsToTarget(),d.transform=Fie(this.projectionDeltaWithTransform,this.treeScale,m),p&&(d.transform=p(m,d.transform));const{x:g,y:b}=this.projectionDelta;d.transformOrigin=`${g.origin*100}% ${b.origin*100}% 0`,f.animationValues?d.opacity=f===this?(c=(l=m.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:d.opacity=f===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const y in Eg){if(m[y]===void 0)continue;const{correct:v,applyTo:x}=Eg[y],_=d.transform==="none"?m[y]:v(m[y],f);if(x){const j=x.length;for(let S=0;S<j;S++)d[x[S]]=_}else d[y]=_}return this.options.layoutId&&(d.pointerEvents=f===this?pg(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var l;return(l=a.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(zC),this.root.sharedNodes.clear()}}}function Uie(e){e.updateLayout()}function Hie(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?si(f=>{const m=a?n.measuredBox[f]:n.layoutBox[f],g=Kr(m);m.min=r[f].min,m.max=m.min+g}):X$(o,n.layoutBox,r)&&si(f=>{const m=a?n.measuredBox[f]:n.layoutBox[f],g=Kr(r[f]);m.max=m.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+g)});const l=Mc();Cf(l,r,n.layoutBox);const c=Mc();a?Cf(c,e.applyTransform(i,!0),n.measuredBox):Cf(c,r,n.layoutBox);const d=!W$(l);let p=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:m,layout:g}=f;if(m&&g){const b=ln();Rf(b,n.layoutBox,m.layoutBox);const y=ln();Rf(y,r,g.layoutBox),G$(b,y)||(p=!0),f.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=b,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:l,hasLayoutChanged:d,hasRelativeTargetChanged:p})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Vie(e){bf&&Xs.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Wie(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Gie(e){e.clearSnapshot()}function zC(e){e.clearMeasurements()}function Kie(e){e.isLayoutDirty=!1}function Yie(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function UC(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Xie(e){e.resolveTargetDelta()}function Qie(e){e.calcProjection()}
vendor: 5,780 bytes, line 540
540function Zie(e){e.resetSkewAndRotation()}function Jie(e){e.removeLeadSnapshot()}function HC(e,t,n){e.translate=en(t.translate,0,n),e.scale=en(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function VC(e,t,n,r){e.min=en(t.min,n.min,r),e.max=en(t.max,n.max,r)}function eoe(e,t,n,r){VC(e.x,t.x,n.x,r),VC(e.y,t.y,n.y,r)}function toe(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const noe={duration:.45,ease:[.4,0,.1,1]},WC=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),GC=WC("applewebkit/")&&!WC("chrome/")?Math.round:Wr;function KC(e){e.min=GC(e.min),e.max=GC(e.max)}function roe(e){KC(e.x),KC(e.y)}function X$(e,t,n){return e==="position"||e==="preserve-aspect"&&!aie($C(t),$C(n),.2)}function ioe(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const ooe=Y$({attachResizeListener:(e,t)=>Xf(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),f0={current:void 0},Q$=Y$({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!f0.current){const e=new ooe({});e.mount(window),e.setOptions({layoutScroll:!0}),f0.current=e}return f0.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),aoe={pan:{Feature:_ie},drag:{Feature:wie,ProjectionNode:Q$,MeasureLayout:U$}};function YC(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Gt.postRender(()=>o(t,rp(t)))}class soe extends hs{mount(){const{current:t}=this.node;t&&(this.unmount=ane(t,n=>(YC(this.node,n,"Start"),r=>YC(this.node,r,"End"))))}unmount(){}}class loe extends hs{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=np(Xf(this.node.current,"focus",()=>this.onFocus()),Xf(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function XC(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Gt.postRender(()=>o(t,rp(t)))}class coe extends hs{mount(){const{current:t}=this.node;t&&(this.unmount=une(t,n=>(XC(this.node,n,"Start"),(r,{success:i})=>XC(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ES=new WeakMap,h0=new WeakMap,uoe=e=>{const t=ES.get(e.target);t&&t(e)},doe=e=>{e.forEach(uoe)};function foe({root:e,...t}){const n=e||document;h0.has(n)||h0.set(n,{});const r=h0.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(doe,{root:e,...t})),r[i]}function hoe(e,t,n){const r=foe(t);return ES.set(e,n),r.observe(e),()=>{ES.delete(e),r.unobserve(e)}}const poe={some:0,all:1};class moe extends hs{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:poe[i]},l=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:p,onViewportLeave:f}=this.node.getProps(),m=d?p:f;m&&m(c)};return hoe(this.node.current,a,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(goe(t,n))&&this.startObserver()}unmount(){}}function goe({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const yoe={inView:{Feature:moe},tap:{Feature:coe},focus:{Feature:loe},hover:{Feature:soe}},voe={layout:{ProjectionNode:Q$,MeasureLayout:U$}},Mg={current:null},bk={current:!1};function Z$(){if(bk.current=!0,!!UN)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Mg.current=e.matches;e.addListener(t),t()}else Mg.current=!1}const xoe=[...S$,nr,ss],boe=e=>xoe.find(_$(e)),QC=new WeakMap;function woe(e,t,n){for(const r in t){const i=t[r],o=n[r];if(ar(i))e.addValue(r,i);else if(ar(o))e.addValue(r,Kf(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,Kf(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const ZC=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class _oe{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=gk,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const g=lo.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Gt.render(this.render,!1,!0))};
vendor: 10,836 bytes, line 540
540const{latestValues:c,renderState:d,onUpdate:p}=a;this.onUpdate=p,this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=rv(n),this.isVariantNode=TB(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in m){const b=m[g];c[g]!==void 0&&ar(b)&&b.set(c[g],!1)}}mount(t){this.current=t,QC.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),bk.current||Z$(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Mg.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){QC.delete(this.current),this.projection&&this.projection.unmount(),as(this.notifyUpdate),as(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Dl.has(t),i=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&Gt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in lu){const n=lu[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ln()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<ZC.length;r++){const i=ZC[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=woe(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Kf(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(b$(i)||d$(i))?i=parseFloat(i):!boe(i)&&ss.test(n)&&(i=y$(t,n)),this.setBaseTarget(t,ar(i)?i.get():i)),ar(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=XN(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!ar(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new uk),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class J$ extends _oe{constructor(){super(...arguments),this.KeyframeResolver=j$}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ar(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Soe(e){return window.getComputedStyle(e)}class joe extends J${constructor(){super(...arguments),this.type="html",this.renderInstance=FB}readValueFromInstance(t,n){if(Dl.has(n)){const r=mk(n);return r&&r.default||0}else{const r=Soe(t),i=(LB(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return q$(t,n)}build(t,n,r){JN(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return rk(t,n,r)}}class Noe extends J${constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ln}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Dl.has(n)){const r=mk(n);return r&&r.default||0}return n=qB.has(n)?n:GN(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return HB(t,n,r)}build(t,n,r){ek(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){zB(t,n,r,i)}mount(t){this.isSVGTag=nk(t.tagName),super.mount(t)}}const koe=(e,t)=>YN(e)?new Noe(t):new joe(t,{allowProjection:e!==P.Fragment}),Ooe=Jte({...Qre,...yoe,...aoe,...voe},koe),lt=pte(Ooe);function eF(){!bk.current&&Z$();const[e]=P.useState(Mg.current);return e}function Eoe(){const[e,t]=P.useState(0);return P.useEffect(()=>{const n=()=>t(window.scrollY);return window.addEventListener("scroll",n,{passive:!0}),()=>window.removeEventListener("scroll",n)},[]),e}const wk="https://portal.performlab.com/practitioner/login",wf="https://portal.performlab.com/practitioner/login",Nn="https://portal.performlab.com/practitioner/register/signup/",lr={whiteLogo:"https://media.base44.com/images/public/user_6a139c59999d030d4c8adedb/0253b2d3f_iOrthoticsRebrandLeaf2026_WhitePrimaryLogo.png",darkLogo:"https://media.base44.com/images/public/user_6a139c59999d030d4c8adedb/3357429fe_iOrthoticsRebrandLeaf2026_DarkPrimaryLogo.png",leafIcon:"https://media.base44.com/images/public/user_6a139c59999d030d4c8adedb/123da581d_iOrthoticsRebrandLeaf2026_LeafIcon.png",hpLogo:"https://commons.wikimedia.org/wiki/Special:FilePath/HP_logo_630x630.png",enviroFoamDark:"https://media.base44.com/images/public/user_6a139c59999d030d4c8adedb/1c4959aad_iOrthoticsRebrandLeaf2026_DarkEnviroFoam.png",enviroFoamLight:"https://media.base44.com/images/public/user_6a139c59999d030d4c8adedb/3925ab205_iOrthoticsRebrandLeaf2026_LightEnviroFoam.png",labDesignScreen:"https://media.base44.com/images/public/user_6a139c59999d030d4c8adedb/011631df0_2025-01-13iOrthoticsLabDesignPreviewHighRes_1.jpg",labQC:"https://media.base44.com/images/public/user_6a139c59999d030d4c8adedb/3a4f55454_2025-01-13iOrthoticsLabQCHighRes_2.jpg",enviroFoamTealPair:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/b29b82215_generated_image.png"},PS={printRoom:"https://media.base44.com/videos/public/6a3e0189c262d2ccdbdde315/7f788b016_NewPrintRoomVideo.mp4",whyIo:"https://media.base44.com/videos/public/user_6a139c59999d030d4c8adedb/5ec86d3fa_2022Whyi-Orthotics_HD540p.mp4"},JC=[{label:"Home",path:"/"},{label:"About Us",path:"/about",children:[{label:"The iOrthotics Way",path:"/about/our-way"},{label:"Our Impact",path:"/about/our-impact"},{label:"Our Technology",path:"/about/our-technology"},{label:"Our Clinical Team",path:"/about/our-clinical-team"},{label:"Meet the Team",path:"/about/meet-the-team"},{label:"Our Distributors",path:"/about/our-distributors"}]},{label:"Our Products",path:"/products",children:[{label:"Custom Orthotics",path:"/products#orthotics"},{label:"iO Braces",path:"/products#braces"},{label:"Shell Only",path:"/products#shell-only"}]},{label:"Resources",path:"/news"},{label:"Print Only Service",path:"/print-only-service"},{label:"Contact Us",path:"/contact"}],eR=[{id:1,name:"Manhattan Podiatry Associates",lat:40.744,lng:-73.994,state:"NY",postcode:"10001"},{id:2,name:"Brooklyn Foot & Ankle Clinic",lat:40.694,lng:-73.99,state:"NY",postcode:"11201"},{id:3,name:"Queens Orthotic Centre",lat:40.74,lng:-73.94,state:"NY",postcode:"11101"},{id:4,name:"Long Island FootCare",lat:40.725,lng:-73.633,state:"NY",postcode:"11530"},{id:5,name:"Westchester Podiatry",lat:41.03,lng:-73.766,state:"NY",postcode:"10601"},{id:6,name:"Jersey City Podiatry",lat:40.718,lng:-74.05,state:"NJ",postcode:"07302"},{id:7,name:"Stamford Foot Clinic",lat:41.052,lng:-73.539,state:"CT",postcode:"06901"},{id:8,name:"Boston Orthotic Partners",lat:42.36,lng:-71.06,state:"MA",postcode:"02108"},{id:9,name:"Philadelphia Podiatry Group",lat:39.952,lng:-75.165,state:"PA",postcode:"19102"},{id:10,name:"Newark Foot & Ankle",lat:40.737,lng:-74.18,state:"NJ",postcode:"07102"}];function $i(e,t={}){try{typeof window<"u"&&typeof window.gtag=="function"&&window.gtag("event",e,t)}catch{}}function zu(e){const t=P.useRef(!1);return()=>{t.current||(t.current=!0,$i("form_start",{form_name:e}))}}function Poe(){const e=t=>{t.preventDefault();const n=document.getElementById("main-content")||document.querySelector("h1");n&&(n.setAttribute("tabindex","-1"),n.focus({preventScroll:!1}))};return s.jsx("a",{href:"#main-content",onClick:e,className:"sr-only focu
540s:not-sr-only focus:fixed focus:top-3 focus:left-3 focus:z-[100] focus:px-4 focus:py-2.5 focus:rounded-lg focus:bg-pistachio focus:text-dark-blue focus:font-inter focus:font-bold focus:shadow-lg",children:"Skip to content"})}const p0=[{label:"Leads Inbox",path:"/admin/leads"},{label:"News Manager",path:"/admin/news"},{label:"Analytics",path:"/admin/analytics"},{label:"AI Content",path:"/ai-content-generator"}];function At(){const e=Eoe(),[t,n]=P.useState(!1),[r,i]=P.useState(null),o=vr(),a=e>60||t,l=o.pathname==="/",c=P.useRef(null),{user:d}=$N(),p=(d==null?void 0:d.role)==="admin",f=(b,y)=>$i("click_partner_portal",{link_url:b,link_text:y,page_path:window.location.pathname}),m=l?a?"bg-white shadow-sm":"bg-dark-blue/60 backdrop-blur-sm":"bg-dark-blue";P.useEffect(()=>{n(!1),i(null)},[o.pathname]),P.useEffect(()=>(document.body.style.overflow=t?"hidden":"",()=>{document.body.style.overflow=""}),[t]),P.useEffect(()=>{const b=y=>{c.current&&!c.current.contains(y.target)&&i(null)};return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[]);const g=b=>o.pathname===b.path?!0:b.children?b.children.some(y=>o.pathname===y.path):!1;return s.jsxs(s.Fragment,{children:[s.jsx(Poe,{}),s.jsx(Toe,{}),s.jsx("nav",{ref:c,className:`fixed top-0 left-0 right-0 z-50 transition-all duration-400 border-b border-white/10 ${m}`,children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsxs("div",{className:"flex items-center justify-between h-16 lg:h-[68px]",children:[s.jsx(Ie,{to:"/",className:"flex-shrink-0 z-10",children:s.jsx("img",{src:a&&l?lr.darkLogo:lr.whiteLogo,alt:"iOrthotics",className:"h-8 lg:h-9 w-auto transition-all duration-300",loading:"eager"})}),s.jsxs("div",{className:"hidden lg:flex items-center gap-1",children:[JC.map(b=>b.children?s.jsx(tR,{link:b,isActive:g(b),open:r===b.label,onToggle:()=>i(r===b.label?null:b.label),scrolledOnHome:a&&l},b.label):s.jsx(Ie,{to:b.path,className:`px-3.5 py-2 text-sm font-inter font-medium rounded-lg transition-colors duration-200 focus:outline-none ${g(b)?"text-pistachio":a&&l?"text-dark-blue/70 hover:text-dark-blue":"text-white/80 hover:text-white"}`,children:b.label},b.path)),p&&s.jsx(tR,{link:{label:"Admin",children:p0},isActive:p0.some(b=>o.pathname===b.path),open:r==="Admin",onToggle:()=>i(r==="Admin"?null:"Admin"),scrolledOnHome:a&&l})]}),s.jsxs("div",{className:"hidden lg:flex items-center gap-3",children:[s.jsx(Ie,{to:"/patients",className:`px-5 py-2 text-sm font-inter font-medium rounded-full transition-colors duration-200 focus:outline-none ${o.pathname==="/patients"?"text-pistachio":a&&l?"text-dark-blue/70 hover:text-dark-blue":"text-white/80 hover:text-white"}`,children:"For Patients"}),s.jsx("a",{href:wf,target:"_blank",rel:"noopener noreferrer",onClick:()=>f(wf,"Login"),className:`px-5 py-2 text-sm font-inter font-medium rounded-full transition-colors duration-200 focus:outline-none ${a&&l?"text-dark-blue border border-dark-blue/30 hover:bg-dark-blue/5":"text-white border border-white/30 hover:bg-white/10"}`,children:"Login"}),s.jsx("a",{href:Nn,target:"_blank",rel:"noopener noreferrer",onClick:()=>f(Nn,"Partner with Us"),className:"px-5 py-2 text-sm font-inter font-semibold bg-pistachio text-dark-blue rounded-full hover:bg-pistachio/90 transition-colors duration-200 focus:outline-none",children:"Partner with Us"})]}),s.jsx("button",{onClick:()=>n(!t),className:"lg:hidden p-2 text-white rounded-lg focus:outline-none min-w-[44px] min-h-[44px] flex items-center justify-center","aria-label":t?"Close menu":"Open menu",children:t?s.jsx(zi,{size:24}):s.jsx(zW,{size:24})})]})})}),s.jsx(yr,{children:t&&s.jsxs(lt.div,{initial:{opacity:0,x:"100%"},animate:{opacity:1,x:0},exit:{opacity:0,x:"100%"},transition:{duration:.3,ease:[.22,1,.36,1]},className:"fixed inset-0 z-40 bg-dark-blue flex flex-col pt-20 px-8 pb-8 overflow-y-auto",children:[s.jsx(Aoe,{links:JC,currentPath:o.pathname}),p&&s.jsxs("div",{className:"mt-6 pt-6 border-t border-white/10",children:[s.jsxs("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-widest mb-3 flex items-center gap-1.5",children:[s.jsx(OG,{size:14})," Admin"]}),s.jsx("nav",{className:"flex flex-col gap-1",children:p0.map(b=>s.jsx(Ie,{to:b.path,className:`py-3 text-base font-inter font-medium border-b border-white/5 transition-colors ${o.pathname===b.path?"text-pistachio":"text-white/70"}`,children:b.label},b.path))})]}),s.jsxs("div",{className:"mt-8 flex flex-col gap-4",children:[s.jsx(Ie,{to:"/patients",className:"w-full py-3.5 text-center text-base font-inter font-medium text-white border border-white/30 rounded-full",children:"For Patients"}),s.jsx("a",{href:wf,target:"_blank",rel:"noopener noreferrer",onClick:()=>f(wf,"Login"),className:"w-full py-3.5 text-center text-base font-inter font-medium text-white border border-white/30 rounded-full",children:"Login"}),s.jsx("a",{href:Nn,target:"_blank",rel:"noopener noreferrer",onClick:()=>f(Nn,"Partner with Us"),className:"w-full py-3.5 text-center text-base font-inter font-semibold bg-pistachio text-dark-blue rounded-full",children:"Partner with Us"})]})]})})]})}function tR({link:e,isActive:t,open:n,onToggle:r,scrolledOnHome:i=!1}){return s.jsxs("div",{className:"relative",children:[s.jsxs("button",{onClick:r,className:`flex items-center gap-1 px-3.5 py-2 text-sm font-inter font-medium rounded-lg transition-colors duration-200 focus:outline-none ${t?"text-pistachio":n?i?"text-dark-blue":"text-white":i?"text-dark-blue/70 hover:text-dark-blue":"text-white/80 hover:text-white"}`,children:[e.label,s.jsx(us,{size:14,className:`transition-transform duration-200 ${n?"rotate-180":""}`})]}),s.jsx(yr,{children:n&&s.jsx(lt.div,{initial:{opacity:0,y:8,scale:.97}
540,animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:8,scale:.97},transition:{duration:.18,ease:[.22,1,.36,1]},className:"absolute top-full left-0 mt-2 w-52 bg-white rounded-xl shadow-2xl border border-dark-blue/8 overflow-hidden py-1.5",children:e.children.map(o=>s.jsx(Ie,{to:o.path,className:"flex items-center px-4 py-2.5 text-sm font-inter font-medium text-dark-blue hover:bg-pale-blue hover:text-dark-blue transition-colors duration-150",children:o.label},o.path))})})]})}function Aoe({links:e,currentPath:t}){const[n,r]=P.useState(null);return s.jsx("nav",{className:"flex flex-col gap-1",children:e.map(i=>i.children?s.jsxs("div",{children:[s.jsxs("button",{onClick:()=>r(n===i.label?null:i.label),className:`w-full flex items-center justify-between py-4 text-lg font-inter font-medium border-b border-white/10 transition-colors focus:outline-none ${t===i.path||i.children.some(o=>t===o.path)?"text-pistachio":"text-white"}`,children:[i.label,s.jsx(us,{size:18,className:`transition-transform duration-200 ${n===i.label?"rotate-180":""}`})]}),s.jsx(yr,{children:n===i.label&&s.jsx(lt.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},className:"overflow-hidden",children:i.children.map(o=>s.jsx(Ie,{to:o.path,className:`block py-3 pl-5 text-base font-inter border-b border-white/5 transition-colors ${t===o.path?"text-pistachio":"text-white/70"}`,children:o.label},o.path))})})]},i.label):s.jsx(Ie,{to:i.path,className:`py-4 text-lg font-inter font-medium border-b border-white/10 transition-colors duration-200 flex items-center focus:outline-none ${t===i.path?"text-pistachio":"text-white"}`,children:i.label},i.path))})}function Toe(){const[e,t]=P.useState(0);return P.useEffect(()=>{const n=()=>{const r=document.documentElement,i=r.scrollTop,o=r.scrollHeight-r.clientHeight;t(o>0?i/o*100:0)};return window.addEventListener("scroll",n,{passive:!0}),()=>window.removeEventListener("scroll",n)},[]),s.jsx("div",{className:"fixed top-0 left-0 right-0 z-[60] h-[2px] bg-transparent",children:s.jsx("div",{className:"h-full bg-pistachio transition-all duration-75",style:{width:`${e}%`}})})}function Coe(){const e=vr(),[t,n]=P.useState(""),[r,i]=P.useState(!1),[o,a]=P.useState(!1),[l,c]=P.useState(""),d=zu("newsletter_signup"),p=async f=>{if(f.preventDefault(),!!t){a(!0),c("");try{const m=await st.functions.invoke("subscribeNewsletter",{email:t,source:"footer",page:e.pathname});if(m&&m.error)throw new Error(m.error);i(!0),$i("generate_lead",{lead_source:"newsletter",form_name:"newsletter_signup",page_path:window.location.pathname,currency:"USD"}),$i("sign_up",{method:"newsletter_footer"})}catch{c("Something went wrong. Please try again.")}finally{a(!1)}}};return r?s.jsxs("p",{className:"text-pistachio text-sm font-inter flex items-center gap-2",children:[s.jsx(oa,{size:16})," Thanks — you're on the list."]}):s.jsxs("form",{onSubmit:p,onFocusCapture:d,className:"flex flex-col sm:flex-row gap-3 max-w-md",children:[s.jsx("input",{type:"email",required:!0,value:t,onChange:f=>n(f.target.value),placeholder:"Your email address","aria-label":"Email address",className:"flex-grow px-4 py-3 rounded-lg bg-white/10 text-white placeholder:text-white/40 text-sm font-inter border border-white/15 focus:outline-none focus:border-pistachio"}),s.jsx("button",{type:"submit",disabled:o,className:"inline-flex items-center justify-center gap-1.5 px-5 py-3 rounded-lg bg-pistachio text-dark-blue font-inter font-semibold text-sm hover:bg-pistachio/90 transition-colors disabled:opacity-60",children:o?"Subscribing…":s.jsxs(s.Fragment,{children:["Subscribe ",s.jsx(ot,{size:15})]})}),l&&s.jsx("p",{className:"text-red-300 text-xs font-inter",children:l})]})}function Tt(){const t=vr().pathname==="/patients";return s.jsxs("footer",{className:"bg-dark-blue text-white",children:[s.jsxs("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10 py-16 lg:py-20",children:[s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-12",children:[s.jsxs("div",{className:"lg:col-span-1",children:[s.jsx("img",{src:lr.whiteLogo,alt:"iOrthotics",className:"h-9 w-auto mb-4"}),s.jsx("p",{className:"text-white/60 text-sm font-inter leading-relaxed mb-6",children:"One of the world's most advanced orthotic labs — clinician-led, research-driven, and sustainably manufactured at scale."}),s.jsxs("div",{className:"flex gap-3",children:[s.jsx("a",{href:"https://www.linkedin.com/company/iorthotics",target:"_blank",rel:"noopener noreferrer","aria-label":"LinkedIn",className:"w-10 h-10 rounded-lg bg-white/10 flex items-center justify-center hover:bg-pistachio hover:text-dark-blue transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-pistachio",children:s.jsx(MW,{size:18})}),s.jsx("a",{href:"https://www.facebook.com/iorthotics",target:"_blank",rel:"noopener noreferrer","aria-label":"Facebook",className:"w-10 h-10 rounded-lg bg-white/10 flex items-center justify-center hover:bg-pistachio hover:text-dark-blue transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-pistachio",children:s.jsx(hW,{size:18})})]})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-widest mb-6",children:"Navigation"}),s.jsxs("ul",{className:"space-y-3",children:[s.jsx("li",{children:s.jsx(Ie,{to:"/",className:"text-white/60 text-sm font-inter hover:text-pistachio transition-colors duration-200",children:"Home"})}),s.jsx("li",{children:s.jsx(Ie,{to:"/about",className:"text-white/60 text-sm font-inter hover:text-pistachio transition-colors duration-200",children:"About Us"})}),s.jsx("li",{children:s.jsx(Ie,{to:"/practitioners",className:"text-white/60 text-sm font-inter hover:text-pistachio transition-colors duration-200",children:"Our Practitioners"})}),s.jsx("li",{children:s.jsx(Ie,{to:"/distributors",className:"text-white/60 text-sm font-inter hover:text-pistachio transition-colors duration-200",children:"Our Distributors"})}),s.jsx("li",{children:s.jsx(Ie,{to:"/products",className:"text-white/60 text-sm font-inter hover:text-pistachio transition-colors duration-200",children:"Our Products"})}),s.jsx("li",{children:s.jsx(Ie,{to:"/print-only-service",className:"text-white/60 text-sm font-inter hover:text-pistachio transition-colors duration-200",children:"Print Only Service"})})]})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-widest mb-6",children:"Resources"}),s.jsxs("ul",{className:"space-y-3",children:[s.jsx("li",{children:s.jsx(Ie,{to:"/news",className:"text-white/60 text-sm font-inter hover:text-pistachio transition-colors duration-200",children:"Articles & News"})}),s.jsx("li",{children:s.jsx(Ie,{to:"/contact",className:"text-white/60 text-sm font-inter hover:text-pistachio transition-colors duration-200",children:"Contact Us"})}),s.jsx("li",{children:s.jsx("a",{href:wk,target:"_blank",rel:"noopener noreferrer",className:"text-white/60 text-sm font-inter hover:text-pistachio transition-colors duration-200",children:"Login"})})]})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-widest mb-6",children:"Contact"}),s.jsxs("ul",{className:"space-y-4",children:[s.jsxs("li",{className:"flex gap-3",children:[s.jsx(Vh,{size:16,className:"text-pistachio mt-0.5 flex-shrink-0"}),s.jsx("a",{href:"https://maps.google.com/?q=38-38+Crescent+Street+Long+Island+City+New+York+11101",target:"_blank",rel:"noopener noreferrer",className:"text-white/60 text-sm font-inter hover:text-pistachio transition-colors",children:"38-38 Crescent Street, Long Island City, New York 11101"})]}),s.jsxs("li",{className:"flex gap-3",children:[s.jsx(Qo,{size:16,className:"text-pistachio mt-0.5 flex-shrink-0"}),s.jsx("a",{href:"mailto:[email protected]",className:"text-white/60 text-sm font-inter hover:text-pistachio transition-colors",children:"[email protected]"})]}),s.jsxs("li",{className:"flex gap-3",children:[s.jsx(Wh,{size:16,className:"text-pistachio mt-0.5 flex-shrink-0"}),s.jsx("a",{href:"tel:9294780204",className:"text-white/60 text-sm font-inter hover:text-pistachio transition-colors",children:"929 478 0204"})]})]})]})]}),!t&&s.jsxs("div",{className:"mt-14 pt-10 border-t border-white/12",children:[s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-widest mb-2",children:"Stay in the loop"}),s.jsx("p",{className:"text-white/70 text-sm font-inter mb-5 max-w-md leading-relaxed",children:"Clinical updates, product launches and sustainability news — straight from the lab."}),s.jsx(Coe,{})]}),s.jsxs("div",{className:"mt-16 pt-10 border-t border-white/10",children:[s.jsx("p",{className:"text-xs font-inter text-white/40 uppercase tracking-widest mb-8",children:"Our Brands"}),s.jsx("div",{className:"grid grid-cols-3 gap-6 items-center",children:[{src:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/d288ae378_Asset99.png",alt:"EnviroFoam"},{src:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/fa95b526f_Asset100.png",alt:"iO Kids"},{src:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/884f2ab64_Asset109.png",alt:"iO Brace"}].map(({src:n,alt:r})=>s.jsx("div",{className:"flex items-center justify-center px-4 py-3 rounded-xl border border-white/12 bg-white/8 hover:bg-white/12 hover:border-white/15 transition-all duration-300",children:s.jsx("img",{src:n,alt:r,className:"h-10 w-auto object-contain opacity-70 hover:opacity-100 transition-opacity duration-300"})},r))})]})]}),s.jsx("div",{className:"border-t border-white/10",children:s.jsxs("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10 py-6 flex flex-col md:flex-row items-center justify-between gap-4",children:[s.jsxs("p",{className:"text-white/40 text-xs font-inter",children:["© ",new Date().getFullYear()," iOrthotics. All rights reserved. Designed with a clinician. Made in the USA."]}),s.jsxs("div",{className:"flex gap-6",children:[s.jsx(Ie,{to:"/legal/privacy",className:"text-white/40 text-xs font-inter hover:text-white/70 transition-colors",children:"Privacy Policy"}),s.jsx(Ie,{to:"/legal/terms",className:"text-white/40 text-xs font-inter hover:text-white/70 transition-colors",children:"Terms of Use"}),s.jsx(Ie,{to:"/admin/leads",className:"text-white/40 text-xs font-inter hover:text-white/70 transition-colors",children:"Staff Login"})]})]})})]})}function av({className:e="",opacity:t=1,variant:n="dark"}){const r=n==="light";return s.jsxs("div",{"aria-hidden":"true",className:`pointer-events-none absolute inset-0 overflow-hidden ${e}`,style:{opacity:t},children:[!r&&s.jsx("div",{className:"absolute inset-0 wave-base"}),s.jsx("div",{className:`absolute inset-0 ${r?"wave-a-light":"wave-a"}`}),s.jsx("div",{className:`absolute inset-0 ${r?"wave-b-light":"wave-b"}`}),s.jsx("div",{className:"absolute inset-0",style:{background:r?"radial-gradient(120% 120% at 50% 50%, transparent 52%, rgba(255,255,255,0.65) 100%)":"radial-gradient(120% 120% at 50% 50%, transparent 52%, rgba(8,16,40,0.55) 100%)"}})]})}const Roe=[{quote:"The quick turnaround time and the ability to reproduce the same device make it seamless for me and my patients.",name:"Dr Michael J. Chin, DPM, FACFAS",title:"Podiatric Physician & Surgeon · The Running Institute, Chicago",img:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/8abaece22_Dr-Chin-Landscape.webp",accent:"#A4D17E"},{quote:"iOrthotics delivers the consistency and quality my patients deserve, every single time.",name:"Dr Robert M. Conenello, DPM",title:"Podiatric Sports Medicine · Orangetown Podiatry, NY · Past President AAPSM",img:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/760e374bb_DrRobertConenello.webp",accent:"#A4D17E"}],Moe=[{quote:"At The Running Institute, my athletes are very discerning patients with orthotics an integral part of their care pathway. iOrthotics Lab's 3D printed Envirosoft device has been a game changer! Their quick turnaround time and the ability to reproduce the same device makes it seamless for me and my patients.",name:"Michael J. Chin, DPM, FACFAS, ABFAS Certified",title:"Co-Lead Podiatry Section, Chicago Marathon · Medical Director, The Running Institute & Windy City Foot & Ankle Physicians",img:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/8abaece22_Dr-Chin-Landscape.webp",accent:"#A4D17E"},{quote:"The iOrthotics brace range is an innovative new solution for complex lower limb cases — 
540clinical precision without compromise.",name:"Dr Robert M. Conenello, DPM",title:"Podiatric Sports Medicine · Orangetown Podiatry, NY · Past President AAPSM",img:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/760e374bb_DrRobertConenello.webp",accent:"#A4D17E"},{quote:"The development and evolution of 3D-printed orthotics has allowed me to expand my treatment options for patients whose footwear requirements may not be suitable for traditional EVA orthotics. This has given me the confidence to manage the full spectrum of musculoskeletal conditions without being limited by footwear constraints, ensuring more patients have access to effective, customised orthotic therapy.",name:"Andrew Pratt | B.Hlth.Sc (Pod)",title:"Podiatrist · Clinic Partner · Regional Partner",img:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/718d8a6eb_AndrewPratt.jpeg",accent:"#A4D17E"}];function tF({dark:e=!1,variant:t="home",flowing:n=!1}){const r=t==="products"?Moe:Roe,o=e?"bg-dark-blue":"bg-white",a="text-dark-blue",l=e?"text-white":"text-dark-blue",c=e?"text-white":"text-dark-blue",d=e?"text-white/40":"text-dark-blue/40",p=e?"bg-white/4 border-white/8":"bg-pale-blue/60 border-dark-blue/6";return s.jsxs("section",{className:`${o} ${t==="products"?"py-14 lg:py-20":"py-20 lg:py-28"} relative overflow-hidden`,children:[n&&s.jsx(av,{variant:e?"dark":"light"}),s.jsxs("div",{className:"relative max-w-screen-2xl mx-auto px-6 lg:px-10",children:[s.jsx("p",{className:`${a} text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-10 lg:mb-12 text-center`,children:"Clinical Endorsements"}),s.jsx("div",{className:`grid grid-cols-1 ${t==="products"?"sm:grid-cols-2 lg:grid-cols-3 gap-5":"lg:grid-cols-2 gap-6 lg:gap-8"}`,children:r.map((f,m)=>s.jsxs(lt.div,{initial:{opacity:0,y:40,filter:"blur(4px)"},whileInView:{opacity:1,y:0,filter:"blur(0px)"},viewport:{once:!0,margin:"-60px"},transition:{duration:.7,delay:m*.18,ease:[.16,1,.3,1]},whileHover:{y:-5,transition:{duration:.3,ease:"easeOut"}},className:`group relative rounded-2xl border overflow-hidden ${t==="products"?"flex flex-col items-center justify-start text-center pt-7 pb-6 px-5 lg:px-6":"flex flex-col sm:flex-row p-7 lg:p-8"} ${p} transition-shadow duration-500 hover:shadow-2xl`,children:[t==="products"?s.jsx("div",{className:"relative w-20 h-20 lg:w-24 lg:h-24 rounded-full overflow-hidden ring-4 ring-white/90 shadow-md shrink-0 mb-4",children:s.jsx("img",{src:f.img,alt:f.name,className:"w-full h-full object-cover object-top group-hover:scale-105 transition-transform duration-700"})}):s.jsxs("div",{className:"relative w-full flex-shrink-0 overflow-hidden sm:w-48 lg:w-56",style:{minHeight:"260px"},children:[s.jsx("img",{src:f.img,alt:f.name,className:"w-full h-full object-cover object-top absolute inset-0 group-hover:scale-105 transition-transform duration-700",style:{minHeight:"260px"}}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-dark-blue/40 via-transparent to-transparent"})]}),s.jsxs("div",{className:`flex flex-col justify-between ${t==="products"?"":"flex-grow"}`,children:[s.jsxs("div",{children:[s.jsx(pN,{size:t==="products"?22:32,className:`text-pistachio mb-4 opacity-80 ${t==="products"?"mx-auto":"mx-auto sm:mx-0"}`}),s.jsxs("p",{className:`${t==="home"?"text-gradient-shimmer-dark font-inter font-light text-lg lg:text-xl text-center sm:text-left":`${l} ${t==="products"?"font-inter font-light text-sm lg:text-[15px]":"font-cal text-lg lg:text-xl"}`} leading-snug mb-6`,children:['"',f.quote,'"']})]}),s.jsxs("div",{className:t==="products"?"flex flex-col items-center":"flex flex-col items-center sm:items-start",children:[s.jsx("div",{className:`${t==="products"?"w-8":"w-10 mx-auto sm:mx-0"} h-[2px] bg-pistachio mb-4 lg:mb-5 rounded-full`}),s.jsx("p",{className:`${c} font-inter font-bold text-sm tracking-wide ${t==="home"?"text-center sm:text-left":""}`,children:f.name}),s.jsx("p",{className:`${d} font-inter text-xs mt-0.5 leading-snug ${t==="home"?"text-center sm:text-left":""}`,children:f.title})]})]}),s.jsx("div",{className:"absolute inset-0 rounded-2xl border border-pistachio/0 group-hover:border-pistachio/30 transition-colors duration-500 pointer-events-none"})]},f.name))})]})]})}function vo(){const[e,t]=P.useState(!1);return P.useEffect(()=>{const n=window.matchMedia("(prefers-reduced-motion: reduce)");t(n.matches);const r=i=>t(i.matches);return n.addEventListener("change",r),()=>n.removeEventListener("change",r)},[]),e}const Ioe=[18,32,72],nR=[90,125,158],Doe=[164,209,126],m0=(e,t,n)=>e+(t-e)*n,rR=(e,t,n)=>
540[Math.round(m0(e[0],t[0],n)),Math.round(m0(e[1],t[1],n)),Math.round(m0(e[2],t[2],n))];function Loe(e){return e<.5?rR(Doe,nR,e/.5):rR(nR,Ioe,(e-.5)/.5)}function ip({variant:e="dark",lines:t=60,opacity:n=1,className:r=""}){const i=P.useRef(null),o=vo();return P.useEffect(()=>{const a=i.current;if(!a)return;const l=a.getContext("2d"),c=e!=="light";let d,p=null,f=!0;function m(){const _=Math.min(window.devicePixelRatio||1,2);a.width=a.offsetWidth*_,a.height=a.offsetHeight*_,l.setTransform(_,0,0,_,0,0)}function g(_,j){return Math.sin(_*3.1+j*.6)*.5+Math.sin(_*1.7-j*.9+1.3)*.32+Math.sin(_*5.3+j*1.4+2.1)*.14}function b(_){const j=a.offsetWidth,S=a.offsetHeight;l.clearRect(0,0,j,S),l.globalCompositeOperation=c?"lighter":"source-over";const N=S*.42,O=S*.52,E=-S*.1,A=90;for(let I=0;I<t;I++){const M=I/(t-1),C=(M-.5)*N,R=M*.6,B=S*.16*(.6+.4*Math.sin(M*Math.PI));l.beginPath();for(let V=0;V<=A;V++){const Y=V/A,W=Y*j,q=O+C+E*(Y-.5)+g(Y+R*.15,_+R)*B;V===0?l.moveTo(W,q):l.lineTo(W,q)}const $=Loe(M),z=(c?.42:.3)*(.55+.45*Math.sin(M*Math.PI)),H=l.createLinearGradient(0,0,j,0);H.addColorStop(0,`rgba(${$[0]},${$[1]},${$[2]},0)`),H.addColorStop(.18,`rgba(${$[0]},${$[1]},${$[2]},${z})`),H.addColorStop(.82,`rgba(${$[0]},${$[1]},${$[2]},${z})`),H.addColorStop(1,`rgba(${$[0]},${$[1]},${$[2]},0)`),l.strokeStyle=H,l.lineWidth=c?1.4:1.2,l.stroke()}l.globalCompositeOperation="source-over"}function y(_){p===null&&(p=_),f&&b((_-p)/1e3*.5),d=requestAnimationFrame(y)}m(),o?b(0):d=requestAnimationFrame(y);const v=new ResizeObserver(()=>{m(),o&&b(0)});v.observe(a);const x=new IntersectionObserver(([_])=>{f=_.isIntersecting},{threshold:0});return x.observe(a),()=>{cancelAnimationFrame(d),v.disconnect(),x.disconnect()}},[e,t,o]),s.jsx("canvas",{ref:i,className:`absolute inset-0 w-full h-full pointer-events-none ${r}`,style:{opacity:n},"aria-hidden":"true"})}function Boe(){const e=vo(),[t]=k8(),n=t.get("hero"),r=n==="left"||n==="remove",i=n==="remove"?"hidden lg:flex items-center gap-4 mb-8":n==="center"?"flex items-center justify-center lg:justify-start gap-4 mb-8":"flex items-center gap-4 mb-8",o=n==="center"?"text-center lg:text-left font-cal leading-tight tracking-tight mb-6":"font-cal leading-tight tracking-tight mb-6",a=n==="center"?"text-center lg:text-left text-white font-inter font-light leading-snug mb-10 max-w-md mx-auto lg:mx-0 text-xl lg:text-[clamp(28px,2.4vw,40px)]":"text-white font-inter font-light leading-snug mb-10 max-w-md text-xl lg:text-[clamp(28px,2.4vw,40px)]",l=r?"flex flex-col sm:flex-row gap-4 items-start justify-start lg:justify-start mb-6":"flex flex-col sm:flex-row gap-4 items-start justify-center lg:justify-start mb-6",c=r?"flex items-center gap-6 justify-start lg:justify-start":"flex items-center gap-6 justify-center lg:justify-start",d=n==="center"?"hidden lg:block w-12 h-px bg-pistachio/60":"w-12 h-px bg-pistachio/60";return s.jsxs("section",{className:"w-full min-h-screen flex flex-col lg:flex-row overflow-hidden",children:[s.jsxs("div",{className:"relative overflow-hidden w-full lg:w-[42%] bg-dark-blue flex flex-col justify-center px-6 lg:px-16 xl:px-24 pt-24 pb-28 lg:py-0",children:[s.jsx(ip,{variant:"dark"}),s.jsxs(lt.div,{initial:{opacity:0,y:32},animate:{opacity:1,y:0},transition:{duration:.9,delay:.1,ease:[.22,1,.36,1]},className:"relative z-10 flex flex-col",children:[s.jsxs("div",{className:i,children:[s.jsx("div",{className:d}),s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em]",children:"Est. 2009 · Australia"}),s.jsx("div",{className:d})]}),s.jsxs("h1",{className:o,style:{fontSize:"clamp(36px, 4.5vw, 76px)"},children:[s.jsx("span",{className:"text-white",children:"Innovative "}),s.jsx("span",{className:"text-pistachio",children:"Custom Foot Orthotics"}),s.jsx("span",{className:"text-white",children:" and "}),s.jsx("span",{className:"text-pistachio",children:"Braces"})]}),s.jsxs("p",{className:a,children:["Clinically precise. Responsibly made.",s.jsx("br",{}),s.jsx("span",{className:"text-gradient-shimmer",children:"Delivered when it matters most."})]}),s.jsxs("div",{className:l,children:[s.jsxs("a",{href:wf,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-2 px-8 py-3.5 bg-pistachio text-dark-blue font-inter font-bold text-base rounded-full hover:bg-pistachio/90 transition-all duration-200 w-full sm:w-56",children:["Login ",s.jsx(ot,{size:18})]}),s.jsx("a",{href:Nn,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-2 px-8 py-3.5 bg-white/10 border border-white/30 text-white font-inter font-semibold text-base rounded-full hover:bg-white/20 transition-all duration-200 w-full sm:w-56",children:"Partner with Us"})]}),s.jsxs("div",{className:c,children:[s.jsxs(Ie,{to:"/practitioners",className:"text-white/50 font-inter text-sm hover:text-white transition-colors duration-200 inline-flex items-center gap-1.5",children:["For Clinicians ",s.jsx(ot,{size:14})]}),s.jsx("div",{className:"w-px h-4 bg-white/20"}),s.jsxs(Ie,{to:"/patients",className:"text-white/50 font-inter text-sm hover:text-white transition-colors duration-200 inline-flex items-center gap-1.5",children:["For Patients ",s.jsx(ot,{size:14})]})]})]}),!e&&s.jsxs(lt.div,{className:"absolute bottom-8 left-1/2 -translate-x-1/2 flex flex-col items-center gap-2 text-white/30",initial:{opacity:0}
540,animate:{opacity:1},transition:{delay:1.5,duration:.8},children:[s.jsx("span",{className:"font-inter text-xs uppercase tracking-[0.3em]",children:"Scroll"}),s.jsx(lt.div,{animate:{y:[0,6,0]},transition:{duration:2,repeat:1/0,ease:"easeInOut"},children:s.jsx(us,{size:20})})]})]}),s.jsxs(lt.div,{className:"relative w-full lg:w-[58%] min-h-[50vh] lg:min-h-screen overflow-hidden bg-[#f8f8f8]",initial:{opacity:0,x:40},animate:{opacity:1,x:0},transition:{duration:1,delay:.3,ease:[.22,1,.36,1]},children:[s.jsx("img",{src:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/241bb1577_HeroImageHomePage_V3.png",alt:"iOrthotics clinician with a range of custom 3D-printed orthotic devices and braces",className:"absolute inset-0 w-full h-full object-cover object-center lg:object-left"}),s.jsx("div",{className:"absolute inset-0 bg-dark-blue/20 mix-blend-multiply pointer-events-none"})]})]})}function _k(e,t=2e3){const[n,r]=P.useState(0),[i,o]=P.useState(!1),a=P.useRef(null);return P.useEffect(()=>{const l=new IntersectionObserver(([c])=>{c.isIntersecting&&o(!0)},{threshold:.3});return a.current&&l.observe(a.current),()=>l.disconnect()},[]),P.useEffect(()=>{if(!i)return;const l=typeof e=="number"?e:parseInt(e.replace(/\D/g,""))||0;if(l===0){r(e);return}let c=0;const d=performance.now(),p=f=>{const m=f-d,g=Math.min(m/t,1),b=1-Math.pow(1-g,3);c=Math.floor(b*l),r(c),g<1?requestAnimationFrame(p):r(l)};requestAnimationFrame(p)},[i,e,t]),{count:n,ref:a}}function _e({children:e,className:t="",delay:n=0,y:r=24,once:i=!0}){return vo()?s.jsx("div",{className:t,children:e}):s.jsx(lt.div,{className:t,initial:{opacity:0,y:r},whileInView:{opacity:1,y:0},viewport:{once:i},transition:{duration:.6,delay:n,ease:[.22,1,.36,1]},children:e})}function Dn({children:e,className:t="",stagger:n=.08}){return vo()?s.jsx("div",{className:t,children:e}):s.jsx(lt.div,{className:t,initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:{hidden:{},visible:{transition:{staggerChildren:n}}},children:e})}function Ln({children:e,className:t=""}){return vo()?s.jsx("div",{className:t,children:e}):s.jsx(lt.div,{className:t,variants:{hidden:{opacity:0,y:24},visible:{opacity:1,y:0,transition:{duration:.6,ease:[.22,1,.36,1]}}},children:e})}function $oe(e=5){const[t,n]=P.useState(e),[r,i]=P.useState(!1);return P.useEffect(()=>{st.functions.invoke("getLiveTurnaround",{}).then(o=>{var a;(a=o.data)!=null&&a.days&&(n(o.data.days),i(!0))}).catch(()=>{})},[]),{days:t,isLive:r}}function g0({number:e,prefix:t="",suffix:n="",label:r,sublabel:i}){const{count:o,ref:a}=_k(e,2e3);return s.jsx(Ln,{children:s.jsxs("div",{ref:a,className:"group flex flex-col items-center text-center px-8 py-10 cursor-default relative pl-10",children:[s.jsx("div",{className:"absolute left-0 top-1/2 -translate-y-1/2 w-[3px] h-12 bg-pistachio rounded-full hidden sm:block"}),s.jsxs("span",{className:"text-dark-blue font-cal leading-none mb-3 group-hover:text-mid-blue transition-colors duration-300 whitespace-nowrap",style:{fontSize:"clamp(28px, 3.4vw, 48px)"},children:[t,o.toLocaleString(),n]}),s.jsx("span",{className:"text-dark-blue font-inter text-sm font-semibold mb-1",children:r}),i&&s.jsx("span",{className:"text-mid-blue font-inter text-xs",children:i})]})})}function Foe(){const{days:e,isLive:t}=$oe(5);return s.jsx("section",{className:"bg-white border-b border-dark-blue/8",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsxs(Dn,{className:"grid grid-cols-1 sm:grid-cols-3 divide-y divide-pistachio sm:divide-y-0 sm:divide-x sm:divide-dark-blue/8",children:[s.jsx(g0,{number:1e6,suffix:"+",label:"Devices Printed",sublabel:"And counting"}),s.jsx(g0,{number:220,prefix:"~",suffix:" tons",label:"Landfill Saved Per Year",sublabel:"And growing"}),s.jsx(g0,{number:e,suffix:" Days",label:"Avg. Turnaround",sublabel:t?"Live from our ERP":"And improving"})]})})})}function qoe(){const e=P.useRef(null),[t,n]=P.useState(!1);return P.useEffect(()=>{const r=new IntersectionObserver(([i])=>{i.isIntersecting&&(setTimeout(()=>n(!0),400),r.disconnect())},{threshold:.3});return e.current&&r.observe(e.current),()=>r.disconnect()},[]),s.jsx("section",{className:"bg-white border-b border-dark-blue/8",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsx(Dn,{className:"flex justify-center",children:s.jsx(Ln,{children:s.jsxs("div",{className:"flex flex-col items-center sm:flex-row sm:items-center gap-4 sm:gap-8 py-10 relative sm:pl-6 max-w-xl justify-center",children:[s.jsx("div",{className:"absolute left-0 top-1/2 -translate-y-1/2 w-[3px] h-12 bg-pistachio rounded-full hidden sm:block"}),s.jsxs("div",{ref:e,className:"relative flex-shrink-0",style:{isolation:"isolate"},children:[s.jsx("img",{src:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/25bf53d7a_EA2026_Seals_Winner_Innovation-in-Health-Technology.png",alt:"Endeavour Awards 2026 — Winner, Innovation in Health Technology",className:"h-24 w-auto object-contain"}),s.jsx("div",{className:"absolute inset-0 pointer-events-none overflow-hidden rounded-full",children:s.jsx("div",{style:{position:"absolute",top:"-10%",left:t?"130%":"-70%",width:"45%",height:"120%",background:"linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.55) 50%, transparent 80%)",transform:"skewX(-20deg)",transition:t?"left 0.65s cubic-bezier(0.4,0,0.2,1)":"none"}})})]}),s.jsx("div",{className:"w-12 h-[3px] bg-pistachio rounded-full sm:hidden"}),s.jsxs("div",{children:[s.jsx("p",{className:"text-pistachio font-inter text-xs font-semibold uppercase tracking-[0.25em] mb-2",children:"Endeavour Awards · 202
5406"}),s.jsx("h3",{className:"text-dark-blue font-cal leading-tight mb-1.5",style:{fontSize:"clamp(17px, 1.8vw, 24px)"},children:"Innovation in Health Technology"}),s.jsx("p",{className:"text-mid-blue font-inter text-sm leading-relaxed max-w-xs",children:"Recognized as Australia’s leading innovator in health technology manufacturing."})]})]})})})})})}const iR=[{id:1,img:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/253001b64_EA25socialFINALISTSInternationalHealth.jpg",alt:"Premier of Queensland's Export Awards 2025 — Finalist, International Health",award:"Premier of Queensland's Export Awards",category:"Finalist · International Health",year:"2025"},{id:2,img:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/b6ad2660c_INTERNATIONALLMBA_2025E-signatureFINALIST7.png",alt:"Lord Mayor's Business Awards 2025 — Finalist, International Business",award:"Lord Mayor's Business Awards",category:"Finalist · International Business Award",year:"2025"},{id:3,img:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/4ab2ee868_EA26InternationalHealthemailsignature.jpg",alt:"Premier of Queensland's Export Awards 2026 — Finalist, International Health",award:"Premier of Queensland's Export Awards",category:"Finalist · International Health",year:"2026"}];function zoe(){return s.jsxs("section",{className:"relative overflow-hidden bg-white py-10 border-t border-dark-blue/8",children:[s.jsx(ip,{variant:"light"}),s.jsx("div",{className:"relative z-10 max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsxs(_e,{children:[s.jsx("p",{className:"text-center text-mid-blue text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-8",children:"Also Recognized"}),s.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6 max-w-4xl mx-auto",children:iR.map((e,t)=>{const n=t===iR.length-1;return s.jsxs("div",{className:`flex flex-col items-center gap-4 p-6 rounded-2xl border border-dark-blue/10 bg-pale-blue/50 hover:border-dark-blue/20 hover:bg-pale-blue transition-all duration-200 ${n?"sm:col-span-2 sm:max-w-[calc(50%-12px)] sm:mx-auto lg:col-span-1 lg:max-w-none lg:mx-0":""}`,children:[s.jsx("div",{className:"h-28 flex items-center justify-center",children:s.jsx("img",{src:e.img,alt:e.alt,className:"max-h-28 max-w-full w-auto object-contain"})}),s.jsxs("div",{className:"text-center",children:[s.jsx("p",{className:"text-dark-blue font-inter font-semibold text-sm leading-snug",children:e.award}),s.jsx("p",{className:"text-mid-blue font-inter text-xs mt-1",children:e.category})]})]},e.id)})})]})})]})}const Uoe=[{label:"Custom Foot Orthotics",desc:"Our 3D-printed orthotics are lighter, stronger, and have greater flexibility than traditional polypropylene milled orthotics — with superior reproducibility and customisation like never before.",heroImage:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/eda3b99f8_ProductHeroes-02.png",to:"/products#orthotics"},{label:"iO Brace Range",desc:"Custom ankle-foot orthoses engineered through a fully digital, 3D-printed workflow. Lighter, lower-profile and matched to each patient's specific pathology — perfectly reproducible, every time. AFOs, SMOs, UCBLs and more.",heroImage:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/244b31a12_ProductHeroes-03.png",to:"/products#braces"},{label:"Shell Only",desc:"Send your own design files for 3D-printing or EVA milling. Fully control your designs, save time and cost, with 1–3 day turnaround. Talk to us about recommended design software for your practice.",heroImage:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/b4b695ae9_ProductHeroes-01.png",to:"/products#shell-only"}];function Hoe(){return s.jsx("section",{className:"bg-dark-blue py-16 lg:py-20 pb-10 lg:pb-12",children:s.jsxs("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:[s.jsxs(_e,{className:"flex flex-col items-center text-center sm:flex-row sm:items-end sm:justify-between sm:text-left mb-10 gap-4",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-3",children:"Product Range"}),s.jsx("h2",{className:"text-white font-cal leading-tight",style:{fontSize:"clamp(26px, 3vw, 42px)"},children:"Innovative Custom Foot Orthotics and Braces."})]}),s.jsxs(Ie,{to:"/products",className:"inline-flex items-center gap-2 text-white/60 font-inter font-semibold text-sm hover:text-pistachio transition-colors",children:["View all products ",s.jsx(ot,{size:14})]})]}),s.jsx(Dn,{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:Uoe.map(e=>s.jsx(Ln,{children:s.jsxs(Ie,{to:e.to||"/products",className:"group h-full flex flex-col bg-white rounded-2xl overflow-hidden border border-dark-blue/8 transition-all duration-500 ease-[
540cubic-bezier(0.22,1,0.36,1)] hover:-translate-y-3 shadow-[0_4px_24px_rgba(18,32,72,0.13)] hover:shadow-[0_28px_60px_rgba(18,32,72,0.26)] hover:border-pistachio/30",children:[s.jsx("div",{className:"flex items-center justify-center p-1 h-[240px] sm:h-[300px] lg:h-[340px]",children:s.jsx("img",{src:e.heroImage,alt:e.label,className:"w-full h-full object-contain scale-125 transition-transform duration-500 group-hover:scale-[1.35]",style:{filter:"drop-shadow(0 8px 20px rgba(0,0,0,0.15))"}})}),s.jsxs("div",{className:"px-6 pb-6 border-t border-dark-blue/6 pt-4 flex-grow flex flex-col",children:[s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.25em] mb-1",children:e.label}),s.jsx("p",{className:"text-dark-blue/55 font-inter text-xs leading-relaxed mb-3",children:e.desc}),s.jsxs("span",{className:"mt-auto inline-flex items-center gap-1.5 text-dark-blue font-inter font-semibold text-xs group-hover:text-pistachio transition-colors",children:["View range ",s.jsx(ot,{size:12})]})]})]})},e.label))})]})})}const Voe="https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/d7df28f67_generated_image.png",xc=[{id:"scan",label:"01 — Scan",title:"Capture the perfect scan, every time.",desc:"Use our dedicated scanning app to capture a precise 3D digital scan of your patient's foot — from any clinic, on any iPhone or iPad Pro. No plaster, no mess, no shipping. All of this means faster turnaround times for your patients.",bullets:["Purpose built iOrthotics scanning app","Integrates seamlessly with laser scanners, iPhones & iPads","Uploads instantly to your personal iOrthotics dashboard ready to prescribe","Eliminates manual back-up scans & paper prescriptions","All data available any time in the iOrder platform"],device:"none",contextImg:Voe,slides:[]},{id:"order",label:"02 — Order",title:"Place prescriptions in seconds.",desc:"Your scans upload automatically from the app to your patient's file, ready for you to select materials, specify clinical requirements, mark up your scans, add photos or make any other notes the lab might need — all within the iOrder platform. Digital workflows end to end for clinics that want precision and quality for their patients.",bullets:["Intuitive digital prescription builder","Material, density and additions selection","Prescription guides built into script","A scripting workflow designed by clinicians for clinicians"],device:"none",contextImg:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/cc124aa72_HeroImageOctoberArticle.jpg",brightness:1.25,overlay:"bg-dark-blue/10",slides:[]},{id:"design",label:"03 — Approve",title:"Clinician-led CAD review and approval.",desc:"Our in-house design team works with your prescription intent. Review 3D proofs, request adjustments and approve devices before manufacturing begins.",bullets:["3D model viewer","Design revision requests","Clinician sign-off workflow"],device:"none",contextImg:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/a26a974b0_ElishaDesignPreview.png",slides:[]},{id:"track",label:"04 — Track",title:"Full visibility from lab to patient.",desc:"Know exactly where every device is at every stage. Live production status and automated dispatch notifications keep your clinic and patients informed.",bullets:["Live production status","Automated email updates","Delivery confirmation"],device:"none",contextImg:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/70e4aba06_ScottwithPhone.png",slides:[]}];function Woe({children:e}){return s.jsxs("div",{className:"w-full rounded-2xl overflow-hidden shadow-2xl border border-dark-blue/15 bg-white",children:[s.jsxs("div",{className:"bg-[#f0f0f0] px-4 py-2.5 flex items-center gap-2 border-b border-gray-200",children:[s.jsxs("div",{className:"flex gap-1.5",children:[s.jsx("div",{className:"w-3 h-3 rounded-full bg-[#FF5F57]"}),s.jsx("div",{className:"w-3 h-3 rounded-full bg-[#FFBD2E]"}),s.jsx("div",{className:"w-3 h-3 rounded-full bg-[#28C840]"})]}),s.jsx("div",{className:"flex-1 mx-3 bg-white rounded-md px-3 py-1 text-[10px] text-gray-400 font-inter border border-gray-200 truncate",children:"accounts.iorthotics.com.au"})]}),s.jsx("div",{className:"overflow-hidden",style:{aspectRatio:"16/10"},children:e})]})}function Goe({slides:e,device:t}){const[n,r]=P.useState(0);P.useEffect(()=>{if(e.length<=1)return;const o=setInterval(()=>r(a=>(a+1)%e.length),3e3);return()=>clearInterval(o)},[e.length]);const i=s.jsx(yr,{mode:"wait",children:s.jsx(lt.img,{src:e[n],alt:"",initial:{opacity:0}
540,animate:{opacity:1},exit:{opacity:0},transition:{duration:.5},className:"w-full h-full object-cover object-top"},n)});return t==="none"||e.length===0?null:s.jsx(Woe,{children:i})}function Sk(){const[e,t]=P.useState(0),[n,r]=P.useState(!1),i=P.useRef(null),o=P.useRef(!1),a=xc[e];P.useEffect(()=>{const c=window.matchMedia("(min-width: 1024px)"),d=()=>r(c.matches);return d(),c.addEventListener("change",d),()=>c.removeEventListener("change",d)},[]),P.useEffect(()=>{xc.forEach(c=>{if(c.contextImg){const d=new Image;d.src=c.contextImg}})},[]),P.useEffect(()=>{if(!n)return;const c=()=>{if(o.current)return;const d=i.current;if(!d)return;const p=d.getBoundingClientRect(),f=d.offsetHeight-window.innerHeight;if(f<=0)return;const m=Math.max(0,-p.top),g=Math.min(1,m/f),b=Math.min(xc.length-1,Math.max(0,Math.floor(g*xc.length)));t(b)};return window.addEventListener("scroll",c,{passive:!0}),c(),()=>window.removeEventListener("scroll",c)},[n]);const l=c=>{t(c);const d=i.current;if(d&&n){const f=(d.offsetHeight-window.innerHeight)/xc.length,m=d.getBoundingClientRect().top+window.scrollY;o.current=!0,window.scrollTo({top:m+c*f,behavior:"smooth"}),setTimeout(()=>{o.current=!1},700)}};return s.jsx("section",{className:"bg-white pt-10 pb-20 lg:pt-12 lg:pb-28",children:s.jsxs("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:[s.jsxs(_e,{className:"mb-16 text-center lg:text-left",children:[s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-4",children:"Clinician-Led Technology"}),s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 items-end",children:[s.jsxs("h2",{className:"text-dark-blue font-cal leading-tight",style:{fontSize:"clamp(28px, 3.5vw, 52px)"},children:["Built by clinicians,",s.jsx("br",{}),"for clinicians."]}),s.jsxs("p",{className:"text-dark-blue font-inter font-light leading-snug",style:{fontSize:"clamp(20px, 1.8vw, 30px)"},children:[s.jsx("span",{className:"text-gradient-shimmer-dark",children:"Scan, order, approve and track"})," — all in one custom built order platform designed by podiatrists and built by a team of in-house developers."]})]})]}),s.jsx("div",{ref:i,className:"relative lg:h-[400vh]",children:s.jsx("div",{className:"lg:sticky lg:top-20",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-0 rounded-2xl overflow-hidden border border-dark-blue/10 bg-pale-blue lg:w-full",children:[s.jsxs("div",{className:"order-2 p-6 lg:p-14 flex flex-col justify-between",children:[s.jsxs("div",{children:[s.jsx("div",{className:"grid grid-cols-2 gap-3 mb-10",children:xc.map((c,d)=>{const p=e===d,f=c.label.replace(/^\d+ — /,"");return s.jsxs("button",{onClick:()=>l(d),className:`text-left p-3 rounded-xl transition-all duration-200 focus:outline-none flex flex-col justify-between gap-1 ${p?"bg-dark-blue shadow-lg":"bg-white hover:bg-white/80 border border-dark-blue/10"}`,children:[s.jsx("span",{className:`font-cal text-2xl font-bold leading-none ${p?"text-white/50":"text-dark-blue/30"}`,children:String(d+1).padStart(2,"0")}),s.jsxs("div",{className:"flex items-end justify-between",children:[s.jsx("span",{className:`font-cal text-sm leading-tight ${p?"text-white":"text-dark-blue"}`,children:f}),s.jsx(ot,{size:14,className:p?"text-pistachio":"text-dark-blue/30"})]})]},c.id)})}),s.jsx(yr,{mode:"wait",children:s.jsxs(lt.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.3,ease:[.22,1,.36,1]},children:[s.jsx("h3",{className:"text-dark-blue font-cal leading-tight mb-3",style:{fontSize:"clamp(20px, 2vw, 30px)"},children:a.title}),s.jsx("p",{className:"text-dark-blue/60 font-inter text-sm leading-relaxed mb-6",children:a.desc}),s.jsx("ul",{className:"space-y-2",children:a.bullets.map(c=>s.jsxs("li",{className:"flex items-center gap-2.5 text-dark-blue/70 font-inter text-sm",children:[s.jsx(oa,{size:15,className:"text-pistachio flex-shrink-0"}),c]},c))})]},a.id)})]}),s.jsxs("div",{className:"flex flex-wrap gap-4 mt-10 justify-center lg:justify-start",children:[s.jsxs("a",{href:wk,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-6 py-3 bg-dark-blue text-white font-inter font-semibold text-sm rounded-full hover:bg-dark-blue/90 transition-colors",children:["Login to iOrder Platform ",s.jsx(ot,{size:16})]}),s.jsx("a",{href:Nn,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-6 py-3 border border-dark-blue/20 text-dark-blue font-inter font-semibold text-sm rounded-full hover:bg-dark-blue/5 transition-colors",children:"Create an Account"})]})]}),s.jsxs("div",{className:"order-1 relative overflow-hidden min-h-[480px] lg:min-h-[60vh]",children:[s.jsx(yr,{mode:"wait",children:a.contextImg&&s.jsx(lt.img,{src:a.c
540ontextImg,alt:"",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.5},className:`absolute inset-0 w-full h-full ${a.contextFit==="contain"?"object-contain":"object-cover"}`,style:a.brightness?{filter:`brightness(${a.brightness})`}:void 0,loading:"eager",decoding:"async"},a.id+"-ctx")}),!a.contextImg&&s.jsx("div",{className:"absolute inset-0 bg-dark-blue/60"}),s.jsx("div",{className:`absolute inset-0 ${a.overlay||"bg-dark-blue/30"}`}),s.jsx("div",{className:"relative z-10 flex items-center justify-center h-full p-8 lg:p-10",children:s.jsx(yr,{mode:"wait",children:s.jsxs(lt.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.4,ease:[.22,1,.36,1]},className:"w-full",children:[s.jsx(Goe,{slides:a.slides,device:a.device}),a.slides.length>1&&s.jsx("div",{className:"flex justify-center gap-1.5 mt-4",children:a.slides.map((c,d)=>s.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-white/40"},d))})]},a.id)})})]})]})})})]})})}const Koe=[{icon:null,imgIcon:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/e5583ac75_Asset1142x.png",label:"Shoe-ready device",desc:"Minimal to no fitting required — straight into clinical workflow."},{icon:null,imgIcon:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/3a96d7ed2_Leaf.png",label:"Near-zero waste manufacturing",desc:"More sustainable than traditional EVA. Additive, not subtractive."},{icon:null,imgIcon:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/3bdbb4d7
540d_Top-DownOrthoticIcon_V3.png",label:"6 density options",desc:"Very soft to firm — matched precisely to your clinical prescription."},{icon:CL,label:"Multi-density zoning",desc:"Customize density zones within a single device for complex presentations."}];function Yoe(){return s.jsx("section",{children:s.jsx("div",{className:"bg-dark-blue pt-10 lg:pt-14 pb-20 lg:pb-28",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 lg:gap-20 items-center",children:[s.jsxs(_e,{className:"order-2 lg:order-1 text-center lg:text-left",children:[s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-5",children:"EnviroFoam · Sustainable Orthotics"}),s.jsxs("h2",{className:"text-white font-cal leading-tight mb-4",style:{fontSize:"clamp(28px, 3.5vw, 52px)"},children:[s.jsx("span",{className:"text-gradient-shimmer",children:"Better"})," for the planet.",s.jsx("br",{}),"Better for your ",s.jsx("span",{className:"text-gradient-shimmer",children:"patients."})]}),s.jsxs("p",{className:"text-white/70 font-inter font-light text-lg lg:text-xl leading-relaxed mb-8 max-w-xl",children:["Durable, lightweight insoles produced through ",s.jsx("span",{className:"text-gradient-shimmer font-normal",children:"near-zero-waste"})," additive manufacturing. A more ",s.jsx("span",{className:"text-gradient-shimmer font-normal",children:"sustainable"})," alternative to traditional EVA — designed to fit seamlessly into your ",s.jsx("span",{className:"text-gradient-shimmer font-normal",children:"clinical workflow"}),"."]}),s.jsx("ul",{className:"space-y-4 mb-8 text-center lg:text-left",children:Koe.map(({icon:e,imgIcon:t,imgSize:n,label:r,desc:i})=>s.jsxs("li",{className:"flex items-start gap-3 justify-center lg:justify-start",children:[s.jsx("div",{className:"shrink-0 mt-0.5 w-8 h-8 rounded-lg bg-white/10 border border-white/20 flex items-center justify-center text-white",children:t?s.jsx("img",{src:t,alt:r,className:`${n||"w-4 h-4"} object-contain brightness-0 invert`}):s.jsx(e,{size:15})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-white font-inter font-semibold text-sm",children:r}),s.jsx("p",{className:"text-white/50 font-inter text-xs leading-relaxed",children:i})]})]},r))}),s.jsx("div",{className:"flex flex-wrap gap-4 justify-center lg:justify-start",children:s.jsx(Ie,{to:"/products#envirofoam",className:"inline-flex items-center gap-2 px-6 py-3 border border-white/20 text-white font-inter font-semibold text-sm rounded-full hover:bg-white/10 transition-colors",children:"View EnviroFoam"})})]}),s.jsx(_e,{delay:.1,className:"order-1 lg:order-2",children:s.jsxs("div",{className:"relative rounded-2xl overflow-hidden shadow-xl border border-dark-blue/8",style:{aspectRatio:"4/3"},children:[s.jsx("img",{src:lr.enviroFoamTealPair,alt:"iOrthotics EnviroFoam — near-zero-waste 3D-printed insoles",className:"w-full h-full object-cover"}),s.jsx("div",{className:"absolute bottom-4 left-4 flex items-center gap-2 bg-dark-blue/60 backdrop-blur-sm border border-white/20 px-3 py-1.5 rounded-full",children:s.jsx("img",{src:lr.enviroFoamLight,alt:"EnviroFoam",className:"h-5 object-contain"})})]})})]})})})})}function Wt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function oR(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Uu(...e){return t=>{let n=!1;const r=e.map(i=>{const o=oR(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():oR(e[i],null)}}}}function fn(...e){return P.useCallback(Uu(...e),e)}function Xoe(e,t){const n=P.createContext(t),r=o=>{const{children:a,...l}=o,c=P.useMemo(()=>l,Object.values(l));return s.jsx(n.Provider,{value:c,children:a})};r.displayName=e+"Provider";function i(o){const a=P.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[r,i]}function sv(e,t=[]){let n=[];function r(o,a){const l=P.createContext(a),c=n.length;n=[...n,a];const d=f=>{var x;const{scope:m,children:g,...b}=f,y=((x=m==null?void 0:m[e])==null?void 0:x[c])||l,v=P.useMemo(()=>b,Object.values(b));return s.jsx(y.Provider,{value:v,children:g})};d.displayName=o+"Provider";function p(f,m){var y;const g=((y=m==null?void 0:m[e])==null?void 0:y[c])||l,b=P.useContext(g);if(b)return b;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${o}\``)}
vendor: 14,965 bytes, line 540
540return[d,p]}const i=()=>{const o=n.map(a=>P.createContext(a));return function(l){const c=(l==null?void 0:l[e])||o;return P.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return i.scopeName=e,[r,Qoe(i,...t)]}function Qoe(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const a=r.reduce((l,{useScope:c,scopeName:d})=>{const f=c(o)[`__scope${d}`];return{...l,...f}},{});return P.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var cr=globalThis!=null&&globalThis.document?P.useLayoutEffect:()=>{},Zoe=Wy[" useId ".trim().toString()]||(()=>{}),Joe=0;function Fc(e){const[t,n]=P.useState(Zoe());return cr(()=>{n(r=>r??String(Joe++))},[e]),t?`radix-${t}`:""}var eae=Wy[" useInsertionEffect ".trim().toString()]||cr;function AS({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,o,a]=tae({defaultProp:t,onChange:n}),l=e!==void 0,c=l?e:i;{const p=P.useRef(e!==void 0);P.useEffect(()=>{const f=p.current;f!==l&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. 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.`),p.current=l},[l,r])}const d=P.useCallback(p=>{var f;if(l){const m=nae(p)?p(e):p;m!==e&&((f=a.current)==null||f.call(a,m))}else o(p)},[l,e,o,a]);return[c,d]}function tae({defaultProp:e,onChange:t}){const[n,r]=P.useState(e),i=P.useRef(n),o=P.useRef(t);return eae(()=>{o.current=t},[t]),P.useEffect(()=>{var a;i.current!==n&&((a=o.current)==null||a.call(o,n),i.current=n)},[n,i]),[n,r,o]}function nae(e){return typeof e=="function"}function rae(e){const t=iae(e),n=P.forwardRef((r,i)=>{const{children:o,...a}=r,l=P.Children.toArray(o),c=l.find(aae);if(c){const d=c.props.children,p=l.map(f=>f===c?P.Children.count(d)>1?P.Children.only(null):P.isValidElement(d)?d.props.children:null:f);return s.jsx(t,{...a,ref:i,children:P.isValidElement(d)?P.cloneElement(d,void 0,p):null})}return s.jsx(t,{...a,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}function iae(e){const t=P.forwardRef((n,r)=>{const{children:i,...o}=n;if(P.isValidElement(i)){const a=lae(i),l=sae(o,i.props);return i.type!==P.Fragment&&(l.ref=r?Uu(r,a):a),P.cloneElement(i,l)}return P.Children.count(i)>1?P.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var oae=Symbol("radix.slottable");function aae(e){return P.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===oae}function sae(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...l)=>{const c=o(...l);return i(...l),c}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function lae(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var cae=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$t=cae.reduce((e,t)=>{const n=rae(`Primitive.${t}`),r=P.forwardRef((i,o)=>{const{asChild:a,...l}=i,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(c,{...l,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function uae(e,t){e&&Kh.flushSync(()=>e.dispatchEvent(t))}function Nl(e){const t=P.useRef(e);return P.useEffect(()=>{t.current=e}),P.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function dae(e,t=globalThis==null?void 0:globalThis.document){const n=Nl(e);P.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var fae="DismissableLayer",TS="dismissableLayer.update",hae="dismissableLayer.pointerDownOutside",pae="dismissableLayer.focusOutside",aR,nF=P.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),jk=P.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:a,onDismiss:l,...c}=e,d=P.useContext(nF),[p,f]=P.useState(null),m=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=P.useState({}),b=fn(t,E=>f(E)),y=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=y.indexOf(v),_=p?y.indexOf(p):-1,j=d.layersWithOutsidePointerEventsDisabled.size>0,S=_>=x,N=yae(E=>{const A=E.target,I=[...d.branches].some(M=>M.contains(A));!S||I||(i==null||i(E),a==null||a(E),E.defaultPrevented||l==null||l())},m),O=vae(E=>{const A=E.target;[...d.branches].some(M=>M.contains(A))||(o==null||o(E),a==null||a(E),E.defaultPrevented||l==null||l())},m);return dae(E=>{_===d.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&l&&(E.preventDefault(),l()))},m),P.useEffect(()=>{if(p)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(aR=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(p)),d.layers.add(p),sR(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=aR)}},[p,m,n,d]),P.useEffect(()=>()=>{p&&(d.layers.delete(p),d.layersWithOutsidePointerEventsDisabled.delete(p),sR())},[p,d]),P.useEffect(()=>{const E=()=>g({});return document.addEventListener(TS,E),()=>document.removeEventListener(TS,E)},[]),s.jsx($t.div,{...c,ref:b,style:{pointerEvents:j?S?"auto":"none":void 0,...e.style},onFocusCapture:Wt(e.onFocusCapture,O.onFocusCapture),onBlurCapture:Wt(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:Wt(e.onPointerDownCapture,N.onPointerDownCapture)})});jk.displayName=fae;var mae="DismissableLayerBranch",gae=P.forwardRef((e,t)=>{const n=P.useContext(nF),r=P.useRef(null),i=fn(t,r);return P.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),s.jsx($t.div,{...e,ref:i})});gae.displayName=mae;function yae(e,t=globalThis==null?void 0:globalThis.document){const n=Nl(e),r=P.useRef(!1),i=P.useRef(()=>{});return P.useEffect(()=>{const o=l=>{if(l.target&&!r.current){let c=function(){rF(hae,n,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=c,t.addEventListener("click",i.current,{once:!0})):c()}else t.removeEventListener("click",i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function vae(e,t=globalThis==null?void 0:globalThis.document){const n=Nl(e),r=P.useRef(!1);return P.useEffect(()=>{const i=o=>{o.target&&!r.current&&rF(pae,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function sR(){const e=new CustomEvent(TS);document.dispatchEvent(e)}function rF(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?uae(i,o):i.dispatchEvent(o)}var y0="focusScope.autoFocusOnMount",v0="focusScope.autoFocusOnUnmount",lR={bubbles:!1,cancelable:!0},xae="FocusScope",Nk=P.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...a}=e,[l,c]=P.useState(null),d=Nl(i),p=Nl(o),f=P.useRef(null),m=fn(t,y=>c(y)),g=P.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;P.useEffect(()=>{if(r){let y=function(j){if(g.paused||!l)return;const S=j.target;l.contains(S)?f.current=S:Ba(f.current,{select:!0})},v=function(j){if(g.paused||!l)return;const S=j.relatedTarget;S!==null&&(l.contains(S)||Ba(f.current,{select:!0}))},x=function(j){if(document.activeElement===document.body)for(const N of j)N.removedNodes.length>0&&Ba(l)};document.addEventListener("focusin",y),document.addEventListener("focusout",v);const _=new MutationObserver(x);return l&&_.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",v),_.disconnect()}}},[r,l,g.paused]),P.useEffect(()=>{if(l){uR.add(g);const y=document.activeElement;if(!l.contains(y)){const x=new CustomEvent(y0,lR);l.addEventListener(y0,d),l.dispatchEvent(x),x.defaultPrevented||(bae(Nae(iF(l)),{select:!0}),document.activeElement===y&&Ba(l))}return()=>{l.removeEventListener(y0,d),setTimeout(()=>{const x=new CustomEvent(v0,lR);l.addEventListener(v0,p),l.dispatchEvent(x),x.defaultPrevented||Ba(y??document.body,{select:!0}),l.removeEventListener(v0,p),uR.remove(g)},0)}}},[l,d,p,g]);const b=P.useCallback(y=>{if(!n&&!r||g.paused)return;const v=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,x=document.activeElement;if(v&&x){const _=y.currentTarget,[j,S]=wae(_);j&&S?!y.shiftKey&&x===S?(y.preventDefault(),n&&Ba(j,{select:!0})):y.shiftKey&&x===j&&(y.preventDefault(),n&&Ba(S,{select:!0})):x===_&&y.preventDefault()}},[n,r,g.paused]);return s.jsx($t.div,{tabIndex:-1,...a,ref:m,onKeyDown:b})});Nk.displayName=xae;function bae(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ba(r,{select:t}),document.activeElement!==n)return}function wae(e){const t=iF(e),n=cR(t,e),r=cR(t.reverse(),e);return[n,r]}function iF(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function cR(e,t){for(const n of e)if(!_ae(n,{upTo:t}))return n}function _ae(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Sae(e){return e instanceof HTMLInputElement&&"select"in e}function Ba(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Sae(e)&&t&&e.select()}}var uR=jae();function jae(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=dR(e,t),e.unshift(t)},remove(t){var n;e=dR(e,t),(n=e[0])==null||n.resume()}}}function dR(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Nae(e){return e.filter(t=>t.tagName!=="A")}var kae="Portal",kk=P.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[i,o]=P.useState(!1);cr(()=>o(!0),[]);const a=n||i&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return a?kY.createPortal(s.jsx($t.div,{...r,ref:t}),a):null});kk.displayName=kae;function Oae(e,t){return P.useReducer((n,r)=>t[n][r]??n,e)}var lv=e=>{const{present:t,children:n}=e,r=Eae(t),i=typeof n=="function"?n({present:r.isPresent}):P.Children.only(n),o=fn(r.ref,Pae(i));return typeof n=="function"||r.isPresent?P.cloneElement(i,{ref:o}):null};lv.displayName="Presence";function Eae(e){const[t,n]=P.useState(),r=P.useRef(null),i=P.useRef(e),o=P.useRef("none"),a=e?"mounted":"unmounted",[l,c]=Oae(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return P.useEffect(()=>{const d=Dm(r.current);o.current=l==="mounted"?d:"none"},[l]),cr(()=>{const d=r.current,p=i.current;if(p!==e){const m=o.current,g=Dm(d);e?c("MOUNT"):g==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(p&&m!==g?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,c]),cr(()=>{if(t){let d;const p=t.ownerDocument.defaultView??window,f=g=>{const y=Dm(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&y&&(c("ANIMATION_END"),!i.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",d=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},m=g=>{g.target===t&&(o.current=Dm(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{p.clearTimeout(d),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:P.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function Dm(e){return(e==null?void 0:e.animationName)||"none"}function Pae(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var x0=0;function oF(){P.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??fR()),document.body.insertAdjacentElement("beforeend",e[1]??fR()),x0++,()=>{x0===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),x0--}},[])}function fR(){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 ro=function(){return ro=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},ro.apply(this,arguments)};function aF(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Aae(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var yg="right-scroll-bar-position",vg="width-before-scroll-bar",Tae="with-scroll-bars-hidden",Cae="--removed-body-scroll-bar-size";function b0(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Rae(e,t){var n=P.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var Mae=typeof window<"u"?P.useLayoutEffect:P.useEffect,hR=new WeakMap;function Iae(e,t){var n=Rae(null,function(r){return e.forEach(function(i){return b0(i,r)})});return Mae(function(){var r=hR.get(n);if(r){var i=new Set(r),o=new Set(e),a=n.current;
vendor: 4,224 bytes, lines 540-555
540i.forEach(function(l){o.has(l)||b0(l,null)}),o.forEach(function(l){i.has(l)||b0(l,a)})}hR.set(n,e)},[e]),n}function Dae(e){return e}function Lae(e,t){t===void 0&&(t=Dae);var n=[],r=!1,i={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(o){var a=t(o,r);return n.push(a),function(){n=n.filter(function(l){return l!==a})}},assignSyncMedium:function(o){for(r=!0;n.length;){var a=n;n=[],a.forEach(o)}n={push:function(l){return o(l)},filter:function(){return n}}},assignMedium:function(o){r=!0;var a=[];if(n.length){var l=n;n=[],l.forEach(o),a=n}var c=function(){var p=a;a=[],p.forEach(o)},d=function(){return Promise.resolve().then(c)};d(),n={push:function(p){a.push(p),d()},filter:function(p){return a=a.filter(p),n}}}};return i}function Bae(e){e===void 0&&(e={});var t=Lae(null);return t.options=ro({async:!0,ssr:!1},e),t}var sF=function(e){var t=e.sideCar,n=aF(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 P.createElement(r,ro({},n))};sF.isSideCarExport=!0;function $ae(e,t){return e.useMedium(t),sF}var lF=Bae(),w0=function(){},cv=P.forwardRef(function(e,t){var n=P.useRef(null),r=P.useState({onScrollCapture:w0,onWheelCapture:w0,onTouchMoveCapture:w0}),i=r[0],o=r[1],a=e.forwardProps,l=e.children,c=e.className,d=e.removeScrollBar,p=e.enabled,f=e.shards,m=e.sideCar,g=e.noRelative,b=e.noIsolation,y=e.inert,v=e.allowPinchZoom,x=e.as,_=x===void 0?"div":x,j=e.gapMode,S=aF(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),N=m,O=Iae([n,t]),E=ro(ro({},S),i);return P.createElement(P.Fragment,null,p&&P.createElement(N,{sideCar:lF,removeScrollBar:d,shards:f,noRelative:g,noIsolation:b,inert:y,setCallbacks:o,allowPinchZoom:!!v,lockRef:n,gapMode:j}),a?P.cloneElement(P.Children.only(l),ro(ro({},E),{ref:O})):P.createElement(_,ro({},E,{className:c,ref:O}),l))});cv.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};cv.classNames={fullWidth:vg,zeroRight:yg};var Fae=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function qae(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Fae();return t&&e.setAttribute("nonce",t),e}function zae(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Uae(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Hae=function(){var e=0,t=null;return{add:function(n){e==0&&(t=qae())&&(zae(t,n),Uae(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Vae=function(){var e=Hae();return function(t,n){P.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},cF=function(){var e=Vae(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},Wae={left:0,top:0,right:0,gap:0},_0=function(e){return parseInt(e||"",10)||0},Gae=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[_0(n),_0(r),_0(i)]},Kae=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Wae;var t=Gae(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])}},Yae=cF(),qc="data-scroll-locked",Xae=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,l=e.gap;return n===void 0&&(n="margin"),`
541  .`.concat(Tae,` {
542   overflow: hidden `).concat(r,`;
543   padding-right: `).concat(l,"px ").concat(r,`;
544  }
545  body[`).concat(qc,`] {
546    overflow: hidden `).concat(r,`;
547    overscroll-behavior: contain;
548    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
549    padding-left: `.concat(i,`px;
550    padding-top: `).concat(o,`px;
551    padding-right: `).concat(a,`px;
552    margin-left:0;
553    margin-top:0;
554    margin-right: `).concat(l,"px ").concat(r,`;
555    `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";
555")].filter(Boolean).join(""),`
556  }
557  
558  .`).concat(yg,` {
559    right: `).concat(l,"px ").concat(r,`;
560  }
561  
562  .`).concat(vg,` {
563    margin-right: `).concat(l,"px ").concat(r,`;
564  }
565  
566  .`).concat(yg," .").concat(yg,` {
567    right: 0 `).concat(r,`;
568  }
569  
570  .`).concat(vg," .").concat(vg,` {
571    margin-right: 0 `).concat(r,`;
572  }
573  
574  body[`).concat(qc,`] {
575    `).concat(Cae,": ").concat(l,`px;
576  }
577`)},pR=function(){var e=parseInt(document.body.getAttribute(qc)||"0",10);return isFinite(e)?e:0},Qae=function(){P.useEffect(function(){return document.body.setAttribute(qc,(pR()+1).toString()),function(){var e=pR()-1;e<=0?document.body.removeAttribute(qc):document.body.setAttribute(qc,e.toString())}},[])},Zae=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;Qae();var o=P.useMemo(function(){return Kae(i)},[i]);return P.createElement(Yae,{styles:Xae(o,!t,i,n?"":"!important")})},CS=!1;if(typeof window<"u")try{var Lm=Object.defineProperty({},"passive",{get:function(){return CS=!0,!0}});window.addEventListener("test",Lm,Lm),window.removeEventListener("test",Lm,Lm)}catch{CS=!1}var bc=CS?{passive:!1}:!1,Jae=function(e){return e.tagName==="TEXTAREA"},uF=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Jae(e)&&n[t]==="visible")},ese=function(e){return uF(e,"overflowY")},tse=function(e){return uF(e,"overflowX")},mR=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=dF(e,r);if(i){var o=fF(e,r),a=o[1],l=o[2];if(a>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},nse=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},rse=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},dF=function(e,t){return e==="v"?ese(t):tse(t)},fF=function(e,t){return e==="v"?nse(t):rse(t)},ise=function(e,t){return e==="h"&&t==="rtl"?-1:1},ose=function(e,t,n,r,i){var o=ise(e,window.getComputedStyle(t).direction),a=o*r,l=n.target,c=t.contains(l),d=!1,p=a>0,f=0,m=0;do{if(!l)break;var g=fF(e,l),b=g[0],y=g[1],v=g[2],x=y-v-o*b;(b||x)&&dF(e,l)&&(f+=x,m+=b);var _=l.parentNode;l=_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE?_.host:_}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(p&&Math.abs(f)<1||!p&&Math.abs(m)<1)&&(d=!0),d},Bm=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},gR=function(e){return[e.deltaX,e.deltaY]},yR=function(e){return e&&"current"in e?e.current:e},ase=function(e,t){return e[0]===t[0]&&e[1]===t[1]},sse=function(e){return`
578  .block-interactivity-`.concat(e,` {pointer-events: none;}
579  .allow-interactivity-`).concat(e,` {pointer-events: all;}
580`)},lse=0,wc=[];function cse(e){var t=P.useRef([]),n=P.useRef([0,0]),r=P.useRef(),i=P.useState(lse++)[0],o=P.useState(cF)[0],a=P.useRef(e);P.useEffect(function(){a.current=e},[e]),P.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var y=Aae([e.lockRef.current],(e.shards||[]).map(yR),!0).filter(Boolean);return y.forEach(function(v){return v.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),y.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=P.useCallback(function(y,v){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!a.current.allowPinchZoom;var x=Bm(y),_=n.current,j="deltaX"in y?y.deltaX:_[0]-x[0],S="deltaY"in y?y.deltaY:_[1]-x[1],N,O=y.target,E=Math.abs(j)>Math.abs(S)?"h":"v";if("touches"in y&&E==="h"&&O.type==="range")return!1;var A=window.getSelection(),I=A&&A.anchorNode,M=I?I===O||I.contains(O):!1;if(M)return!1;var C=mR(E,O);if(!C)return!0;if(C?N=E:(N=E==="v"?"h":"v",C=mR(E,O)),!C)return!1;if(!r.current&&"changedTouches"in y&&(j||S)&&(r.current=N),!N)return!0;var R=r.current||N;return ose(R,v,y,R==="h"?j:S)},[]),c=P.useCallback(function(y){var v=y;if(!(!wc.length||wc[wc.length-1]!==o)){var x="deltaY"in v?gR(v):Bm(v),_=t.current.filter(function(N){return N.name===v.type&&(N.target===v.target||v.target===N.shadowParent)&&ase(N.delta,x)})[0];if(_&&_.should){v.cancelable&&v.preventDefault();return}
vendor: 10,440 bytes, lines 580-584
580if(!_){var j=(a.current.shards||[]).map(yR).filter(Boolean).filter(function(N){return N.contains(v.target)}),S=j.length>0?l(v,j[0]):!a.current.noIsolation;S&&v.cancelable&&v.preventDefault()}}},[]),d=P.useCallback(function(y,v,x,_){var j={name:y,delta:v,target:x,should:_,shadowParent:use(x)};t.current.push(j),setTimeout(function(){t.current=t.current.filter(function(S){return S!==j})},1)},[]),p=P.useCallback(function(y){n.current=Bm(y),r.current=void 0},[]),f=P.useCallback(function(y){d(y.type,gR(y),y.target,l(y,e.lockRef.current))},[]),m=P.useCallback(function(y){d(y.type,Bm(y),y.target,l(y,e.lockRef.current))},[]);P.useEffect(function(){return wc.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:m}),document.addEventListener("wheel",c,bc),document.addEventListener("touchmove",c,bc),document.addEventListener("touchstart",p,bc),function(){wc=wc.filter(function(y){return y!==o}),document.removeEventListener("wheel",c,bc),document.removeEventListener("touchmove",c,bc),document.removeEventListener("touchstart",p,bc)}},[]);var g=e.removeScrollBar,b=e.inert;return P.createElement(P.Fragment,null,b?P.createElement(o,{styles:sse(i)}):null,g?P.createElement(Zae,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function use(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const dse=$ae(lF,cse);var Ok=P.forwardRef(function(e,t){return P.createElement(cv,ro({},e,{ref:t,sideCar:dse}))});Ok.classNames=cv.classNames;var fse=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},_c=new WeakMap,$m=new WeakMap,Fm={},S0=0,hF=function(e){return e&&(e.host||hF(e.parentNode))},hse=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=hF(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},pse=function(e,t,n,r){var i=hse(t,Array.isArray(e)?e:[e]);Fm[n]||(Fm[n]=new WeakMap);var o=Fm[n],a=[],l=new Set,c=new Set(i),d=function(f){!f||l.has(f)||(l.add(f),d(f.parentNode))};i.forEach(d);var p=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(m){if(l.has(m))p(m);else try{var g=m.getAttribute(r),b=g!==null&&g!=="false",y=(_c.get(m)||0)+1,v=(o.get(m)||0)+1;_c.set(m,y),o.set(m,v),a.push(m),y===1&&b&&$m.set(m,!0),v===1&&m.setAttribute(n,"true"),b||m.setAttribute(r,"true")}catch(x){console.error("aria-hidden: cannot operate on ",m,x)}})};return p(t),l.clear(),S0++,function(){a.forEach(function(f){var m=_c.get(f)-1,g=o.get(f)-1;_c.set(f,m),o.set(f,g),m||($m.has(f)||f.removeAttribute(r),$m.delete(f)),g||f.removeAttribute(n)}),S0--,S0||(_c=new WeakMap,_c=new WeakMap,$m=new WeakMap,Fm={})}},pF=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=fse(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),pse(r,i,n,"aria-hidden")):function(){return null}};function mse(e){const t=gse(e),n=P.forwardRef((r,i)=>{const{children:o,...a}=r,l=P.Children.toArray(o),c=l.find(vse);if(c){const d=c.props.children,p=l.map(f=>f===c?P.Children.count(d)>1?P.Children.only(null):P.isValidElement(d)?d.props.children:null:f);return s.jsx(t,{...a,ref:i,children:P.isValidElement(d)?P.cloneElement(d,void 0,p):null})}return s.jsx(t,{...a,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}function gse(e){const t=P.forwardRef((n,r)=>{const{children:i,...o}=n;if(P.isValidElement(i)){const a=bse(i),l=xse(o,i.props);return i.type!==P.Fragment&&(l.ref=r?Uu(r,a):a),P.cloneElement(i,l)}return P.Children.count(i)>1?P.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var yse=Symbol("radix.slottable");function vse(e){return P.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===yse}function xse(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...l)=>{const c=o(...l);return i(...l),c}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function bse(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var uv="Dialog",[mF]=sv(uv),[wse,Ui]=mF(uv),gF=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:a=!0}=e,l=P.useRef(null),c=P.useRef(null),[d,p]=AS({prop:r,defaultProp:i??!1,onChange:o,caller:uv});return s.jsx(wse,{scope:t,triggerRef:l,contentRef:c,contentId:Fc(),titleId:Fc(),descriptionId:Fc(),open:d,onOpenChange:p,onOpenToggle:P.useCallback(()=>p(f=>!f),[p]),modal:a,children:n})};gF.displayName=uv;var yF="DialogTrigger",_se=P.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Ui(yF,n),o=fn(t,i.triggerRef);return s.jsx($t.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Ak(i.open),...r,ref:o,onClick:Wt(e.onClick,i.onOpenToggle)})});_se.displayName=yF;var Ek="DialogPortal",[Sse,vF]=mF(Ek,{forceMount:void 0}),xF=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,o=Ui(Ek,t);return s.jsx(Sse,{scope:t,forceMount:n,children:P.Children.map(r,a=>s.jsx(lv,{present:n||o.open,children:s.jsx(kk,{asChild:!0,container:i,children:a})}))})};xF.displayName=Ek;var Ig="DialogOverlay",bF=P.forwardRef((e,t)=>{const n=vF(Ig,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=Ui(Ig,e.__scopeDialog);return o.modal?s.jsx(lv,{present:r||o.open,children:s.jsx(Nse,{...i,ref:t})}):null});bF.displayName=Ig;var jse=mse("DialogOverlay.RemoveScroll"),Nse=P.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Ui(Ig,n);return s.jsx(Ok,{as:jse,allowPinchZoom:!0,shards:[i.contentRef],children:s.jsx($t.div,{"data-state":Ak(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),kl="DialogContent",wF=P.forwardRef((e,t)=>{const n=vF(kl,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=Ui(kl,e.__scopeDialog);return s.jsx(lv,{present:r||o.open,children:o.modal?s.jsx(kse,{...i,ref:t}):s.jsx(Ose,{...i,ref:t})})});wF.displayName=kl;var kse=P.forwardRef((e,t)=>{const n=Ui(kl,e.__scopeDialog),r=P.useRef(null),i=fn(t,n.contentRef,r);return P.useEffect(()=>{const o=r.current;if(o)return pF(o)},[]),s.jsx(_F,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Wt(e.onCloseAutoFocus,o=>{var a;o.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Wt(e.onPointerDownOutside,o=>{const a=o.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0;(a.button===2||l)&&o.preventDefault()}),onFocusOutside:Wt(e.onFocusOutside,o=>o.preventDefault())})}),Ose=P.forwardRef((e,t)=>{const n=Ui(kl,e.__scopeDialog),r=P.useRef(!1),i=P.useRef(!1);return s.jsx(_F,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var a,l;(a=e.onCloseAutoFocus)==null||a.call(e,o),o.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),o.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:o=>{var c,d;(c=e.onInteractOutside)==null||c.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const a=o.target;((d=n.triggerRef.current)==null?void 0:d.contains(a))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),_F=P.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...a}=e,l=Ui(kl,n),c=P.useRef(null),d=fn(t,c);return oF(),s.jsxs(s.Fragment,{children:[s.jsx(Nk,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:s.jsx(jk,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Ak(l.open),...a,ref:d,onDismiss:()=>l.onOpenChange(!1)})}),s.jsxs(s.Fragment,{children:[s.jsx(Ese,{titleId:l.titleId}),s.jsx(Ase,{contentRef:c,descriptionId:l.descriptionId})]})]})}),Pk="DialogTitle",SF=P.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Ui(Pk,n);return s.jsx($t.h2,{id:i.titleId,...r,ref:t})});SF.displayName=Pk;var jF="DialogDescription",NF=P.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Ui(jF,n);return s.jsx($t.p,{id:i.descriptionId,...r,ref:t})});NF.displayName=jF;var kF="DialogClose",OF=P.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Ui(kF,n);return s.jsx($t.button,{type:"button",...r,ref:t,onClick:Wt(e.onClick,()=>i.onOpenChange(!1))})});OF.displayName=kF;function Ak(e){return e?"open":"closed"}var EF="DialogTitleWarning",[hPe,PF]=Xoe(EF,{contentName:kl,titleName:Pk,docsSlug:"dialog"}),Ese=({titleId:e})=>{const t=PF(EF),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
581
582If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
583
584For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return P.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Pse="DialogDescriptionWarning",Ase=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${PF(Pse).contentName}}.`;return P.useEffect(()=>{var o;const i=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Tse=gF,Cse=xF,AF=bF,TF=wF,CF=SF,RF=NF,Rse=OF;const Dg=Tse,Mse=Cse,MF=P.forwardRef(({className:e,...t},n)=>s.jsx(AF,{ref:n,className:St("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));MF.displayName=AF.displayName;const Qf=P.forwardRef(({className:e,children:t,...n},r)=>s.jsxs(Mse,{children:[s.jsx(MF,{}),s.jsxs(TF,{ref:r,className:St("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rou
584nded-lg",e),...n,children:[t,s.jsxs(Rse,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[s.jsx(zi,{className:"h-4 w-4"}),s.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Qf.displayName=TF.displayName;const Zf=({className:e,...t})=>s.jsx("div",{className:St("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Zf.displayName="DialogHeader";const Jf=P.forwardRef(({className:e,...t},n)=>s.jsx(CF,{ref:n,className:St("text-lg font-semibold leading-none tracking-tight",e),...t}));Jf.displayName=CF.displayName;const Ise=P.forwardRef(({className:e,...t},n)=>s.jsx(RF,{ref:n,className:St("text-sm text-muted-foreground",e),...t}));Ise.displayName=RF.displayName;function vR(e,[t,n]){return Math.min(n,Math.max(t,e))}function xR(e){const t=Dse(e),n=P.forwardRef((r,i)=>{const{children:o,...a}=r,l=P.Children.toArray(o),c=l.find(Bse);if(c){const d=c.props.children,p=l.map(f=>f===c?P.Children.count(d)>1?P.Children.only(null):P.isValidElement(d)?d.props.children:null:f);return s.jsx(t,{...a,ref:i,children:P.isValidElement(d)?P.cloneElement(d,void 0,p):null})}return s.jsx(t,{...a,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}function Dse(e){const t=P.forwardRef((n,r)=>{const{children:i,...o}=n;if(P.isValidElement(i)){const a=Fse(i),l=$se(o,i.props);return i.type!==P.Fragment&&(l.ref=r?Uu(r,a):a),P.cloneElement(i,l)}return P.Children.count(i)>1?P.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Lse=Symbol("radix.slottable");function Bse(e){return P.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Lse}function $se(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...l)=>{const c=o(...l);return i(...l),c}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function Fse(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function qse(e){const t=e+"CollectionProvider",[n,r]=sv(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=y=>{const{scope:v,children:x}=y,_=ue.useRef(null),j=ue.useRef(new Map).current;return s.jsx(i,{scope:v,itemMap:j,collectionRef:_,children:x})};a.displayName=t;const l=e+"CollectionSlot",c=xR(l),d=ue.forwardRef((y,v)=>{const{scope:x,children:_}=y,j=o(l,x),S=fn(v,j.collectionRef);return s.jsx(c,{ref:S,children:_})});d.displayName=l;const p=e+"CollectionItemSlot",f="data-radix-collection-item",m=xR(p),g=ue.forwardRef((y,v)=>{const{scope:x,children:_,...j}=y,S=ue.useRef(null),N=fn(v,S),O=o(p,x);return ue.useEffect(()=>(O.itemMap.set(S,{ref:S,...j}),()=>void O.itemMap.delete(S))),s.jsx(m,{[f]:"",ref:N,children:_})});g.displayName=p;function b(y){const v=o(e+"CollectionConsumer",y);return ue.useCallback(()=>{const _=v.collectionRef.current;if(!_)return[];const j=Array.from(_.querySelectorAll(`[${f}]`));return Array.from(v.itemMap.values()).sort((O,E)=>j.indexOf(O.ref.current)-j.indexOf(E.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:a,Slot:d,ItemSlot:g},b,r]}var zse=P.createContext(void 0);function Use(e){const t=P.useContext(zse);return e||t||"ltr"}const Hse=["top","right","bottom","left"],ls=Math.min,Hr=Math.max,Lg=Math.round,qm=Math.floor,co=e=>({x:e,y:e}),Vse={left:"right",right:"left",bottom:"top",top:"bottom"},Wse={start:"end",end:"start"};function RS(e,t,n){return Hr(e,ls(t,n))}function Jo(e,t){return typeof e=="function"?e(t):e}function ea(e){return e.split("-")[0]}function Hu(e){return e.split("-")[1]}function Tk(e){return e==="x"?"y":"x"}function Ck(e){return e==="y"?"height":"width"}const Gse=new Set(["top","bottom"]);function io(e){return Gse.has(ea(e))?"y":"x"}function Rk(e){return Tk(io(e))}function Kse(e,t,n){n===void 0&&(n=!1);const r=Hu(e),i=Rk(e),o=Ck(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Bg(a)),[a,Bg(a)]}function Yse(e){const t=Bg(e);return[MS(e),t,MS(t)]}function MS(e){return e.replace(/start|end/g,t=>Wse[t])}const bR=["left","right"],wR=["right","left"],Xse=["top","bottom"],Qse=["bottom","top"];function Zse(e,t,n){switch(e){case"top":case"bottom":return n?t?wR:bR:t?bR:wR;case"left":case"right":return t?Xse:Qse;default:return[]}}function Jse(e,t,n,r){const i=Hu(e);let o=Zse(ea(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(MS)))),o}function Bg(e){return e.replace(/left|right|bottom|top/g,t=>Vse[t])}function ele(e){return{top:0,right:0,bottom:0,left:0,...e}}function IF(e){return typeof e!="number"?ele(e):{top:e,right:e,bottom:e,left:e}}function $g(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function _R(e,t,n){let{reference:r,floating:i}=e;const o=io(t),a=Rk(t),l=Ck(a),c=ea(t),d=o==="y",p=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,m=r[l]/2-i[l]/2;let g;switch(c){case"top":g={x:p,y:r.y-i.height};break;case"bottom":g={x:p,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:f};break;case"left":g={x:r.x-i.width,y:f};break;default:g={x:r.x,y:r.y}}switch(Hu(t)){case"start":g[a]-=m*(n&&d?-1:1);break;case"end":g[a]+=m*(n&&d?-1:1);break}return g}async function tle(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:l,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:m=!1,padding:g=0}=Jo(t,e),b=IF(g),v=l[m?f==="floating"?"reference":"floating":f],x=$g(await o.getClippingRect
vendor: 9,085 bytes, line 584
584({element:(n=await(o.isElement==null?void 0:o.isElement(v)))==null||n?v:v.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:d,rootBoundary:p,strategy:c})),_=f==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,j=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),S=await(o.isElement==null?void 0:o.isElement(j))?await(o.getScale==null?void 0:o.getScale(j))||{x:1,y:1}:{x:1,y:1},N=$g(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:_,offsetParent:j,strategy:c}):_);return{top:(x.top-N.top+b.top)/S.y,bottom:(N.bottom-x.bottom+b.bottom)/S.y,left:(x.left-N.left+b.left)/S.x,right:(N.right-x.right+b.right)/S.x}}const nle=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,l=o.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:p,y:f}=_R(d,r,c),m=r,g={},b=0;for(let v=0;v<l.length;v++){var y;const{name:x,fn:_}=l[v],{x:j,y:S,data:N,reset:O}=await _({x:p,y:f,initialPlacement:r,placement:m,strategy:i,middlewareData:g,rects:d,platform:{...a,detectOverflow:(y=a.detectOverflow)!=null?y:tle},elements:{reference:e,floating:t}});p=j??p,f=S??f,g={...g,[x]:{...g[x],...N}},O&&b<=50&&(b++,typeof O=="object"&&(O.placement&&(m=O.placement),O.rects&&(d=O.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):O.rects),{x:p,y:f}=_R(d,m,c)),v=-1)}return{x:p,y:f,placement:m,strategy:i,middlewareData:g}},rle=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:l,middlewareData:c}=t,{element:d,padding:p=0}=Jo(e,t)||{};if(d==null)return{};const f=IF(p),m={x:n,y:r},g=Rk(i),b=Ck(g),y=await a.getDimensions(d),v=g==="y",x=v?"top":"left",_=v?"bottom":"right",j=v?"clientHeight":"clientWidth",S=o.reference[b]+o.reference[g]-m[g]-o.floating[b],N=m[g]-o.reference[g],O=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let E=O?O[j]:0;(!E||!await(a.isElement==null?void 0:a.isElement(O)))&&(E=l.floating[j]||o.floating[b]);const A=S/2-N/2,I=E/2-y[b]/2-1,M=ls(f[x],I),C=ls(f[_],I),R=M,B=E-y[b]-C,$=E/2-y[b]/2+A,z=RS(R,$,B),H=!c.arrow&&Hu(i)!=null&&$!==z&&o.reference[b]/2-($<R?M:C)-y[b]/2<0,V=H?$<R?$-R:$-B:0;return{[g]:m[g]+V,data:{[g]:z,centerOffset:$-z-V,...H&&{alignmentOffset:V}},reset:H}}}),ile=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:l,platform:c,elements:d}=t,{mainAxis:p=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:y=!0,...v}=Jo(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const x=ea(i),_=io(l),j=ea(l)===l,S=await(c.isRTL==null?void 0:c.isRTL(d.floating)),N=m||(j||!y?[Bg(l)]:Yse(l)),O=b!=="none";!m&&O&&N.push(...Jse(l,y,b,S));const E=[l,...N],A=await c.detectOverflow(t,v),I=[];let M=((r=o.flip)==null?void 0:r.overflows)||[];if(p&&I.push(A[x]),f){const $=Kse(i,a,S);I.push(A[$[0]],A[$[1]])}if(M=[...M,{placement:i,overflows:I}],!I.every($=>$<=0)){var C,R;const $=(((C=o.flip)==null?void 0:C.index)||0)+1,z=E[$];if(z&&(!(f==="alignment"?_!==io(z):!1)||M.every(Y=>io(Y.placement)===_?Y.overflows[0]>0:!0)))return{data:{index:$,overflows:M},reset:{placement:z}};let H=(R=M.filter(V=>V.overflows[0]<=0).sort((V,Y)=>V.overflows[1]-Y.overflows[1])[0])==null?void 0:R.placement;if(!H)switch(g){case"bestFit":{var B;const V=(B=M.filter(Y=>{if(O){const W=io(Y.placement);return W===_||W==="y"}return!0}).map(Y=>[Y.placement,Y.overflows.filter(W=>W>0).reduce((W,q)=>W+q,0)]).sort((Y,W)=>Y[1]-W[1])[0])==null?void 0:B[0];V&&(H=V);break}case"initialPlacement":H=l;break}if(i!==H)return{reset:{placement:H}}}return{}}}};function SR(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function jR(e){return Hse.some(t=>e[t]>=0)}const ole=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:i="referenceHidden",...o}=Jo(e,t);switch(i){case"referenceHidden":{const a=await r.detectOverflow(t,{...o,elementContext:"reference"}),l=SR(a,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:jR(l)}}}case"escaped":{const a=await r.detectOverflow(t,{...o,altBoundary:!0}),l=SR(a,n.floating);return{data:{escapedOffsets:l,escaped:jR(l)}}}default:return{}}}}},DF=new Set(["left","top"]);async function ale(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=ea(n),l=Hu(n),c=io(n)==="y",d=DF.has(a)?-1:1,p=o&&c?-1:1,f=Jo(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:b}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof b=="number"&&(g=l==="end"?b*-1:b),c?{x:g*p,y:m*d}:{x:m*d,y:g*p}}const sle=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:l}=t,c=await ale(t,e);return a===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:o+c.y,data:{...c,placement:a}}}}},lle=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i,platform:o}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:c={fn:x=>{let{x:_,y:j}=x;return{x:_,y:j}}},...d}=Jo(e,t),p={x:n,y:r},f=await o.detectOverflow(t,d),m=io(ea(i)),g=Tk(m);let b=p[g],y=p[m];if(a){const x=g==="y"?"top":"left",_=g==="y"?"bottom":"right",j=b+f[x],S=b-f[_];b=RS(j,b,S)}if(l){const x=m==="y"?"top":"left",_=m==="y"?"bottom":"right",j=y+f[x],S=y-f[_];y=RS(j,y,S)}const v=c.fn({...t,[g]:b,[m]:y});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[g]:a,[m]:l}}}}}},cle=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:a}=t,{offset:l=0,mainAxis:c=!0,crossAxis:d=!0}=Jo(e,t),p={x:n,y:r},f=io(i),m=Tk(f);let g=p[m],b=p[f];const y=Jo(l,t),v=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(c){const j=m==="y"?"height":"width",S=o.reference[m]-o.floating[j]+v.mainAxis,N=o.reference[m]+o.reference[j]-v.mainAxis;g<S?g=S:g>N&&(g=N)}if(d){var x,_;const j=m==="y"?"width":"height",S=DF.has(ea(i)),N=o.reference[f]-o.floating[j]+(S&&((x=a.offset)==null?void 0:x[f])||0)+(S?0:v.crossAxis),O=o.reference[f]+o.reference[j]+(S?0:((_=a.offset)==null?void 0:_[f])||0)-(S?v.crossAxis:0);b<N?b=N:b>O&&(b=O)}return{[m]:g,[f]:b}}}},ule=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:a,elements:l}=t,{apply:c=()=>{},...d}=Jo(e,t),p=await a.detectOverflow(t,d),f=ea(i),m=Hu(i),g=io(i)==="y",{width:b,height:y}=o.floating;let v,x;f==="top"||f==="bottom"?(v=f,x=m===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(x=f,v=m==="end"?"top":"bottom");const _=y-p.top-p.bottom,j=b-p.left-p.right,S=ls(y-p[v],_),N=ls(b-p[x],j),O=!t.middlewareData.shift;let E=S,A=N;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=j),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=_),O&&!m){const M=Hr(p.left,0),C=Hr(p.right,0),R=Hr(p.top,0),B=Hr(p.bottom,0);g?A=b-2*(M!==0||C!==0?M+C:Hr(p.left,p.right)):E=y-2*(R!==0||B!==0?R+B:Hr(p.top,p.bottom))}await c({...t,availableWidth:A,availableHeight:E});const I=await a.getDimensions(l.floating);return b!==I.width||y!==I.height?{reset:{rects:!0}}:{}}}};function dv(){return typeof window<"u"}function Vu(e){return LF(e)?(e.nodeName||"").toLowerCase():"#document"}function Gr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function xo(e){var t;return(t=(LF(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function LF(e){return dv()?e instanceof Node||e instanceof Gr(e).Node:!1}function Fi(e){return dv()?e instanceof Element||e instanceof Gr(e).Element:!1}function mo(e){return dv()?e instanceof HTMLElement||e instanceof Gr(e).HTMLElement:!1}function NR(e){return!dv()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Gr(e).ShadowRoot}const dle=new Set(["inline","contents"]);function op(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=qi(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!dle.has(i)}const fle=new Set(["table","td","th"]);function hle(e){return fle.has(Vu(e))}const ple=[":popover-open",":modal"];function fv(e){return ple.some(t=>{try{return e.matches(t)}catch{return!1}})}const mle=["transform","translate","scale","rotate","perspective"],gle=["transform","translate","scale","rotate","perspective","filter"],yle=["paint","layout","strict","content"];function Mk(e){const t=Ik(),n=Fi(e)?qi(e):e;return mle.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||gle.some(r=>(n.willChange||"").includes(r))||yle.some(r=>(n.contain||"").includes(r))}function vle(e){let t=cs(e);for(;
vendor: 34,802 bytes, line 584
584mo(t)&&!uu(t);){if(Mk(t))return t;if(fv(t))return null;t=cs(t)}return null}function Ik(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const xle=new Set(["html","body","#document"]);function uu(e){return xle.has(Vu(e))}function qi(e){return Gr(e).getComputedStyle(e)}function hv(e){return Fi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function cs(e){if(Vu(e)==="html")return e;const t=e.assignedSlot||e.parentNode||NR(e)&&e.host||xo(e);return NR(t)?t.host:t}function BF(e){const t=cs(e);return uu(t)?e.ownerDocument?e.ownerDocument.body:e.body:mo(t)&&op(t)?t:BF(t)}function eh(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=BF(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=Gr(i);if(o){const l=IS(a);return t.concat(a,a.visualViewport||[],op(i)?i:[],l&&n?eh(l):[])}return t.concat(i,eh(i,[],n))}function IS(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function $F(e){const t=qi(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=mo(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,l=Lg(n)!==o||Lg(r)!==a;return l&&(n=o,r=a),{width:n,height:r,$:l}}function Dk(e){return Fi(e)?e:e.contextElement}function zc(e){const t=Dk(e);if(!mo(t))return co(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=$F(t);let a=(o?Lg(n.width):n.width)/r,l=(o?Lg(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const ble=co(0);function FF(e){const t=Gr(e);return!Ik()||!t.visualViewport?ble:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wle(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Gr(e)?!1:t}function Ol(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Dk(e);let a=co(1);t&&(r?Fi(r)&&(a=zc(r)):a=zc(e));const l=wle(o,n,r)?FF(o):co(0);let c=(i.left+l.x)/a.x,d=(i.top+l.y)/a.y,p=i.width/a.x,f=i.height/a.y;if(o){const m=Gr(o),g=r&&Fi(r)?Gr(r):r;let b=m,y=IS(b);for(;y&&r&&g!==b;){const v=zc(y),x=y.getBoundingClientRect(),_=qi(y),j=x.left+(y.clientLeft+parseFloat(_.paddingLeft))*v.x,S=x.top+(y.clientTop+parseFloat(_.paddingTop))*v.y;c*=v.x,d*=v.y,p*=v.x,f*=v.y,c+=j,d+=S,b=Gr(y),y=IS(b)}}return $g({width:p,height:f,x:c,y:d})}function pv(e,t){const n=hv(e).scrollLeft;return t?t.left+n:Ol(xo(e)).left+n}function qF(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-pv(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function _le(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=xo(r),l=t?fv(t.floating):!1;if(r===a||l&&o)return n;let c={scrollLeft:0,scrollTop:0},d=co(1);const p=co(0),f=mo(r);if((f||!f&&!o)&&((Vu(r)!=="body"||op(a))&&(c=hv(r)),mo(r))){const g=Ol(r);d=zc(r),p.x=g.x+r.clientLeft,p.y=g.y+r.clientTop}const m=a&&!f&&!o?qF(a,c):co(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+p.x+m.x,y:n.y*d.y-c.scrollTop*d.y+p.y+m.y}}function Sle(e){return Array.from(e.getClientRects())}function jle(e){const t=xo(e),n=hv(e),r=e.ownerDocument.body,i=Hr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Hr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+pv(e);const l=-n.scrollTop;return qi(r).direction==="rtl"&&(a+=Hr(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:l}}const kR=25;function Nle(e,t){const n=Gr(e),r=xo(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,l=0,c=0;if(i){o=i.width,a=i.height;const p=Ik();(!p||p&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}const d=pv(r);if(d<=0){const p=r.ownerDocument,f=p.body,m=getComputedStyle(f),g=p.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,b=Math.abs(r.clientWidth-f.clientWidth-g);b<=kR&&(o-=b)}else d<=kR&&(o+=d);return{width:o,height:a,x:l,y:c}}const kle=new Set(["absolute","fixed"]);function Ole(e,t){const n=Ol(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=mo(e)?zc(e):co(1),a=e.clientWidth*o.x,l=e.clientHeight*o.y,c=i*o.x,d=r*o.y;return{width:a,height:l,x:c,y:d}}function OR(e,t,n){let r;if(t==="viewport")r=Nle(e,n);else if(t==="document")r=jle(xo(e));else if(Fi(t))r=Ole(t,n);else{const i=FF(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return $g(r)}function zF(e,t){const n=cs(e);return n===t||!Fi(n)||uu(n)?!1:qi(n).position==="fixed"||zF(n,t)}function Ele(e,t){const n=t.get(e);if(n)return n;let r=eh(e,[],!1).filter(l=>Fi(l)&&Vu(l)!=="body"),i=null;const o=qi(e).position==="fixed";let a=o?cs(e):e;for(;Fi(a)&&!uu(a);){const l=qi(a),c=Mk(a);!c&&l.position==="fixed"&&(i=null),(o?!c&&!i:!c&&l.position==="static"&&!!i&&kle.has(i.position)||op(a)&&!c&&zF(e,a))?r=r.filter(p=>p!==a):i=l,a=cs(a)}return t.set(e,r),r}function Ple(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?fv(t)?[]:Ele(t,this._c):[].concat(n),r],l=a[0],c=a.reduce((d,p)=>{const f=OR(t,p,i);return d.top=Hr(f.top,d.top),d.right=ls(f.right,d.right),d.bottom=ls(f.bottom,d.bottom),d.left=Hr(f.left,d.left),d},OR(t,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Ale(e){const{width:t,height:n}=$F(e);return{width:t,height:n}}function Tle(e,t,n){const r=mo(t),i=xo(t),o=n==="fixed",a=Ol(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const c=co(0);function d(){c.x=pv(i)}if(r||!r&&!o)if((Vu(t)!=="body"||op(i))&&(l=hv(t)),r){const g=Ol(t,!0,o,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else i&&d();o&&!r&&i&&d();const p=i&&!r&&!o?qF(i,l):co(0),f=a.left+l.scrollLeft-c.x-p.x,m=a.top+l.scrollTop-c.y-p.y;return{x:f,y:m,width:a.width,height:a.height}}function j0(e){return qi(e).position==="static"}function ER(e,t){if(!mo(e)||qi(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return xo(e)===n&&(n=n.ownerDocument.body),n}function UF(e,t){const n=Gr(e);if(fv(e))return n;if(!mo(e)){let i=cs(e);for(;i&&!uu(i);){if(Fi(i)&&!j0(i))return i;i=cs(i)}return n}let r=ER(e,t);for(;r&&hle(r)&&j0(r);)r=ER(r,t);return r&&uu(r)&&j0(r)&&!Mk(r)?n:r||vle(e)||n}const Cle=async function(e){const t=this.getOffsetParent||UF,n=this.getDimensions,r=await n(e.floating);return{reference:Tle(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Rle(e){return qi(e).direction==="rtl"}const Mle={convertOffsetParentRelativeRectToViewportRelativeRect:_le,getDocumentElement:xo,getClippingRect:Ple,getOffsetParent:UF,getElementRects:Cle,getClientRects:Sle,getDimensions:Ale,getScale:zc,isElement:Fi,isRTL:Rle};function HF(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ile(e,t){let n=null,r;const i=xo(e);function o(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),o();const d=e.getBoundingClientRect(),{left:p,top:f,width:m,height:g}=d;if(l||t(),!m||!g)return;const b=qm(f),y=qm(i.clientWidth-(p+m)),v=qm(i.clientHeight-(f+g)),x=qm(p),j={rootMargin:-b+"px "+-y+"px "+-v+"px "+-x+"px",threshold:Hr(0,ls(1,c))||1};let S=!0;function N(O){const E=O[0].intersectionRatio;if(E!==c){if(!S)return a();E?a(!1,E):r=setTimeout(()=>{a(!1,1e-7)},1e3)}E===1&&!HF(d,e.getBoundingClientRect())&&a(),S=!1}try{n=new IntersectionObserver(N,{...j,root:i.ownerDocument})}catch{n=new IntersectionObserver(N,j)}n.observe(e)}return a(!0),o}function Dle(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,d=Dk(e),p=i||o?[...d?eh(d):[],...eh(t)]:[];p.forEach(x=>{i&&x.addEventListener("scroll",n,{passive:!0}),o&&x.addEventListener("resize",n)});const f=d&&l?Ile(d,n):null;let m=-1,g=null;a&&(g=new ResizeObserver(x=>{let[_]=x;_&&_.target===d&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var j;(j=g)==null||j.observe(t)})),n()}),d&&!c&&g.observe(d),g.observe(t));let b,y=c?Ol(e):null;c&&v();function v(){const x=Ol(e);y&&!HF(y,x)&&n(),y=x,b=requestAnimationFrame(v)}return n(),()=>{var x;p.forEach(_=>{i&&_.removeEventListener("scroll",n),o&&_.removeEventListener("resize",n)}),f==null||f(),(x=g)==null||x.disconnect(),g=null,c&&cancelAnimationFrame(b)}}const Lle=sle,Ble=lle,$le=ile,Fle=ule,qle=ole,PR=rle,zle=cle,Ule=(e,t,n)=>{const r=new Map,i={platform:Mle,...n},o={...i.platform,_c:r};return nle(e,t,{...i,platform:o})};var Hle=typeof document<"u",Vle=function(){},xg=Hle?P.useLayoutEffect:Vle;function Fg(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Fg(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!Fg(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function VF(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function AR(e,t){const n=VF(e);return Math.round(t*n)/n}function N0(e){const t=P.useRef(e);return xg(()=>{t.current=e}),t}function Wle(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:l=!0,whileElementsMounted:c,open:d}=e,[p,f]=P.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=P.useState(r);Fg(m,r)||g(r);const[b,y]=P.useState(null),[v,x]=P.useState(null),_=P.useCallback(Y=>{Y!==O.current&&(O.current=Y,y(Y))},[]),j=P.useCallback(Y=>{Y!==E.current&&(E.current=Y,x(Y))},[]),S=o||b,N=a||v,O=P.useRef(null),E=P.useRef(null),A=P.useRef(p),I=c!=null,M=N0(c),C=N0(i),R=N0(d),B=P.useCallback(()=>{if(!O.current||!E.current)return;const Y={placement:t,strategy:n,middleware:m};C.current&&(Y.platform=C.current),Ule(O.current,E.current,Y).then(W=>{const q={...W,isPositioned:R.current!==!1};$.current&&!Fg(A.current,q)&&(A.current=q,Kh.flushSync(()=>{f(q)}))})},[m,t,n,C,R]);xg(()=>{d===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,f(Y=>({...Y,isPositioned:!1})))},[d]);const $=P.useRef(!1);xg(()=>($.current=!0,()=>{$.current=!1}),[]),xg(()=>{if(S&&(O.current=S),N&&(E.current=N),S&&N){if(M.current)return M.current(S,N,B);B()}},[S,N,B,M,I]);const z=P.useMemo(()=>({reference:O,floating:E,setReference:_,setFloating:j}),[_,j]),H=P.useMemo(()=>({reference:S,floating:N}),[S,N]),V=P.useMemo(()=>{const Y={position:n,left:0,top:0};if(!H.floating)return Y;const W=AR(H.floating,p.x),q=AR(H.floating,p.y);return l?{...Y,transform:"translate("+W+"px, "+q+"px)",...VF(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:W,top:q}},[n,l,H.floating,p.x,p.y]);return P.useMemo(()=>({...p,update:B,refs:z,elements:H,floatingStyles:V}),[p,B,z,H,V])}const Gle=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?PR({element:r.current,padding:i}).fn(n):{}:r?PR({element:r,padding:i}).fn(n):{}}}},Kle=(e,t)=>({...Lle(e),options:[e,t]}),Yle=(e,t)=>({...Ble(e),options:[e,t]}),Xle=(e,t)=>({...zle(e),options:[e,t]}),Qle=(e,t)=>({...$le(e),options:[e,t]}),Zle=(e,t)=>({...Fle(e),options:[e,t]}),Jle=(e,t)=>({...qle(e),options:[e,t]}),ece=(e,t)=>({...Gle(e),options:[e,t]});var tce="Arrow",WF=P.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...o}=e;return s.jsx($t.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:s.jsx("polygon",{points:"0,0 30,0 15,10"})})});WF.displayName=tce;var nce=WF;function rce(e){const[t,n]=P.useState(void 0);return cr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let a,l;if("borderBoxSize"in o){const c=o.borderBoxSize,d=Array.isArray(c)?c[0]:c;a=d.inlineSize,l=d.blockSize}else a=e.offsetWidth,l=e.offsetHeight;n({width:a,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Lk="Popper",[GF,KF]=sv(Lk),[ice,YF]=GF(Lk),XF=e=>{const{__scopePopper:t,children:n}=e,[r,i]=P.useState(null);return s.jsx(ice,{scope:t,anchor:r,onAnchorChange:i,children:n})};XF.displayName=Lk;var QF="PopperAnchor",ZF=P.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=YF(QF,n),a=P.useRef(null),l=fn(t,a),c=P.useRef(null);return P.useEffect(()=>{const d=c.current;c.current=(r==null?void 0:r.current)||a.current,d!==c.current&&o.onAnchorChange(c.current)}),r?null:s.jsx($t.div,{...i,ref:l})});ZF.displayName=QF;var Bk="PopperContent",[oce,ace]=GF(Bk),JF=P.forwardRef((e,t)=>{var X,ne,Z,se,fe,le;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:o="center",alignOffset:a=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:p=0,sticky:f="partial",hideWhenDetached:m=!1,updatePositionStrategy:g="optimized",onPlaced:b,...y}=e,v=YF(Bk,n),[x,_]=P.useState(null),j=fn(t,we=>_(we)),[S,N]=P.useState(null),O=rce(S),E=(O==null?void 0:O.width)??0,A=(O==null?void 0:O.height)??0,I=r+(o!=="center"?"-"+o:""),M=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},C=Array.isArray(d)?d:[d],R=C.length>0,B={padding:M,boundary:C.filter(lce),altBoundary:R},{refs:$,floatingStyles:z,placement:H,isPositioned:V,middlewareData:Y}=Wle({strategy:"fixed",placement:I,whileElementsMounted:(...we)=>Dle(...we,{animationFrame:g==="always"}),elements:{reference:v.anchor},middleware:[Kle({mainAxis:i+A,alignmentAxis:a}),c&&Yle({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?Xle():void 0,...B}),c&&Qle({...B}),Zle({...B,apply:({elements:we,rects:ge,availableWidth:be,availableHeight:Be})=>{const{width:De,height:oe}=ge.reference,de=we.floating.style;de.setProperty("--radix-popper-available-width",`${be}px`),de.setProperty("--radix-popper-available-height",`${Be}px`),de.setProperty("--radix-popper-anchor-width",`${De}px`),de.setProperty("--radix-popper-anchor-height",`${oe}px`)}}),S&&ece({element:S,padding:l}),cce({arrowWidth:E,arrowHeight:A}),m&&Jle({strategy:"referenceHidden",...B})]}),[W,q]=nq(H),D=Nl(b);cr(()=>{V&&(D==null||D())},[V,D]);const F=(X=Y.arrow)==null?void 0:X.x,K=(ne=Y.arrow)==null?void 0:ne.y,ee=((Z=Y.arrow)==null?void 0:Z.centerOffset)!==0,[J,G]=P.useState();return cr(()=>{x&&G(window.getComputedStyle(x).zIndex)},[x]),s.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:V?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[(se=Y.transformOrigin)==null?void 0:se.x,(fe=Y.transformOrigin)==null?void 0:fe.y].join(" "),...((le=Y.hide)==null?void 0:le.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:s.jsx(oce,{scope:n,placedSide:W,onArrowChange:N,arrowX:F,arrowY:K,shouldHideArrow:ee,children:s.jsx($t.div,{"data-side":W,"data-align":q,...y,ref:j,style:{...y.style,animation:V?void 0:"none"}})})})});JF.displayName=Bk;var eq="PopperArrow",sce={top:"bottom",right:"left",bottom:"top",left:"right"},tq=P.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,o=ace(eq,r),a=sce[o.placedSide];return s.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]: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:s.jsx(nce,{...i,ref:n,style:{...i.style,display:"block"}})})});tq.displayName=eq;function lce(e){return e!==null}var cce=e=>({name:"transformOrigin",options:e,fn(t){var v,x,_;const{placement:n,rects:r,middlewareData:i}=t,a=((v=i.arrow)==null?void 0:v.centerOffset)!==0,l=a?0:e.arrowWidth,c=a?0:e.arrowHeight,[d,p]=nq(n),f={start:"0%",center:"50%",end:"100%"}[p],m=(((x=i.arrow)==null?void 0:x.x)??0)+l/2,g=(((_=i.arrow)==null?void 0:_.y)??0)+c/2;let b="",y="";return d==="bottom"?(b=a?f:`${m}px`,y=`${-c}px`):d==="top"?(b=a?f:`${m}px`,y=`${r.floating.height+c}px`):d==="right"?(b=`${-c}px`,y=a?f:`${g}px`):d==="left"&&(b=`${r.floating.width+c}px`,y=a?f:`${g}px`),{data:{x:b,y}}}});function nq(e){const[t,n="center"]=e.split("-");return[t,n]}var uce=XF,dce=ZF,fce=JF,hce=tq;function pce(e){const t=mce(e),n=P.forwardRef((r,i)=>{const{children:o,...a}=r,l=P.Children.toArray(o),c=l.find(yce);if(c){const d=c.props.children,p=l.map(f=>f===c?P.Children.count(d)>1?P.Children.only(null):P.isValidElement(d)?d.props.children:null:f);return s.jsx(t,{...a,ref:i,children:P.isValidElement(d)?P.cloneElement(d,void 0,p):null})}return s.jsx(t,{...a,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}function mce(e){const t=P.forwardRef((n,r)=>{const{children:i,...o}=n;if(P.isValidElement(i)){const a=xce(i),l=vce(o,i.props);return i.type!==P.Fragment&&(l.ref=r?Uu(r,a):a),P.cloneElement(i,l)}return P.Children.count(i)>1?P.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var gce=Symbol("radix.slottable");function yce(e){return P.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===gce}function vce(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...l)=>{const c=o(...l);return i(...l),c}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function xce(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function bce(e){const t=P.useRef({value:e,previous:e});return P.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var rq=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"}),wce="VisuallyHidden",_ce=P.forwardRef((e,t)=>s.jsx($t.span,{...e,ref:t,style:{...rq,...e.style}}));_ce.displayName=wce;var Sce=[" ","Enter","ArrowUp","ArrowDown"],jce=[" ","Enter"],El="Select",[mv,gv,Nce]=qse(El),[Wu]=sv(El,[Nce,KF]),yv=KF(),[kce,ps]=Wu(El),[Oce,Ece]=Wu(El),iq=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:o,value:a,defaultValue:l,onValueChange:c,dir:d,name:p,autoComplete:f,disabled:m,required:g,form:b}=e,y=yv(t),[v,x]=P.useState(null),[_,j]=P.useState(null),[S,N]=P.useState(!1),O=Use(d),[E,A]=AS({prop:r,defaultProp:i??!1,onChange:o,caller:El}),[I,M]=AS({prop:a,defaultProp:l,onChange:c,caller:El}),C=P.useRef(null),R=v?b||!!v.closest("form"):!0,[B,$]=P.useState(new Set),z=Array.from(B).map(H=>H.props.value).join(";");return s.jsx(uce,{...y,children:s.jsxs(kce,{required:g,scope:t,trigger:v,onTriggerChange:x,valueNode:_,onValueNodeChange:j,valueNodeHasChildren:S,onValueNodeHasChildrenChange:N,contentId:Fc(),value:I,onValueChange:M,open:E,onOpenChange:A,dir:O,triggerPointerDownPosRef:C,disabled:m,children:[s.jsx(mv.Provider,{scope:t,children:s.jsx(Oce,{scope:e.__scopeSelect,onNativeOptionAdd:P.useCallback(H=>{$(V=>new Set(V).add(H))},[]),onNativeOptionRemove:P.useCallback(H=>{$(V=>{const Y=new Set(V);return Y.delete(H),Y})},[]),children:n})}),R?s.jsxs(Eq,{"aria-hidden":!0,required:g,tabIndex:-1,name:p,autoComplete:f,value:I,onChange:H=>M(H.target.value),disabled:m,form:b,children:[I===void 0?s.jsx("option",{value:""}):null,Array.from(B)]},z):null]})})};iq.displayName=El;var oq="SelectTrigger",aq=P.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...i}=e,o=yv(n),a=ps(oq,n),l=a.disabled||r,c=fn(t,a.onTriggerChange),d=gv(n),p=P.useRef("touch"),[f,m,g]=Aq(y=>{const v=d().filter(j=>!j.disabled),x=v.find(j=>j.value===a.value),_=Tq(v,y,x);_!==void 0&&a.onValueChange(_.value)}),b=y=>{l||(a.onOpenChange(!0),g()),y&&(a.triggerPointerDownPosRef.current={x:Math.round(y.pageX),y:Math.round(y.pageY)})};return s.jsx(dce,{asChild:!0,...o,children:s.jsx($t.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Pq(a.value)?"":void 0,...i,ref:c,onClick:Wt(i.onClick,y=>{y.currentTarget.focus(),p.current!=="mouse"&&b(y)}),onPointerDown:Wt(i.onPointerDown,y=>{p.current=y.pointerType;const v=y.target;v.hasPointerCapture(y.pointerId)&&v.releasePointerCapture(y.pointerId),y.button===0&&y.ctrlKey===!1&&y.pointerType==="mouse"&&(b(y),y.preventDefault())}),onKeyDown:Wt(i.onKeyDown,y=>{const v=f.current!=="";!(y.ctrlKey||y.altKey||y.metaKey)&&y.key.length===1&&m(y.key),!(v&&y.key===" ")&&Sce.includes(y.key)&&(b(),y.preventDefault())})})})});aq.displayName=oq;var sq="SelectValue",lq=P.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,children:o,placeholder:a="",...l}=e,c=ps(sq,n),{onValueNodeHasChildrenChange:d}=c,p=o!==void 0,f=fn(t,c.onValueNodeChange);return cr(()=>{d(p)},[d,p]),s.jsx($t.span,{...l,ref:f,style:{pointerEvents:"none"},children:Pq(c.value)?s.jsx(s.Fragment,{children:a}):o})});lq.displayName=sq;var Pce="SelectIcon",cq=P.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...i}=e;return s.jsx($t.span,{"aria-hidden":!0,...i,ref:t,children:r||"▼"})});cq.displayName=Pce;var Ace="SelectPortal",uq=e=>s.jsx(kk,{asChild:!0,...e});uq.displayName=Ace;var Pl="SelectContent",dq=P.forwardRef((e,t)=>{const n=ps(Pl,e.__scopeSelect),[r,i]=P.useState();if(cr(()=>{i(new DocumentFragment)},[]),!n.open){const o=r;return o?Kh.createPortal(s.jsx(fq,{scope:e.__scopeSelect,children:s.jsx(mv.Slot,{scope:e.__scopeSelect,children:s.jsx("div",{children:e.children})})}),o):null}return s.jsx(hq,{...e,ref:t})});dq.displayName=Pl;var Ai=10,[fq,ms]=Wu(Pl),Tce="SelectContentImpl",Cce=pce("SelectContent.RemoveScroll"),hq=P.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:o,onPointerDownOutside:a,side:l,sideOffset:c,align:d,alignOffset:p,arrowPadding:f,collisionBoundary:m,collisionPadding:g,sticky:b,hideWhenDetached:y,avoidCollisions:v,...x}=e,_=ps(Pl,n),[j,S]=P.useState(null),[N,O]=P.useState(null),E=fn(t,X=>S(X)),[A,I]=P.useState(null),[M,C]=P.useState(null),R=gv(n),[B,$]=P.useState(!1),z=P.useRef(!1);P.useEffect(()=>{if(j)return pF(j)},[j]),oF();const H=P.useCallback(X=>{const[ne,...Z]=R().map(le=>le.ref.current),[se]=Z.slice(-1),fe=document.activeElement;for(const le of X)if(le===fe||(le==null||le.scrollIntoView({block:"nearest"}),le===ne&&N&&(N.scrollTop=0),le===se&&N&&(N.scrollTop=N.scrollHeight),le==null||le.focus(),document.activeElement!==fe))return},[R,N]),V=P.useCallback(()=>H([A,j]),[H,A,j]);P.useEffect(()=>{B&&V()},[B,V]);const{onOpenChange:Y,triggerPointerDownPosRef:W}=_;P.useEffect(()=>{if(j){let X={x:0,y:0};const ne=se=>{var fe,le;X={x:Math.abs(Math.round(se.pageX)-(((fe=W.current)==null?void 0:fe.x)??0)),y:Math.abs(Math.round(se.pageY)-(((le=W.current)==null?void 0:le.y)??0))}},Z=se=>{X.x<=10&&X.y<=10?se.preventDefault():j.contains(se.target)||Y(!1),document.removeEventListener("pointermove",ne),W.current=null};return W.current!==null&&(document.addEventListener("pointermove",ne),document.addEventListener("pointerup",Z,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ne),document.removeEventListener("pointerup",Z,{capture:!0})}}},[j,Y,W]),P.useEffect(()=>{const X=()=>Y(!1);return window.addEventListener("blur",X),window.addEventListener("resize",X),()=>{window.removeEventListener("blur",X),window.removeEventListener("resize",X)}},[Y]);const[q,D]=Aq(X=>{const ne=R().filter(fe=>!fe.disabled),Z=ne.find(fe=>fe.ref.current===document.activeElement),se=Tq(ne,X,Z);se&&setTimeout(()=>se.ref.current.focus())}),F=P.useCallback((X,ne,Z)=>{const se=!z.current&&!Z;(_.value!==void 0&&_.value===ne||se)&&(I(X),se&&(z.current=!0))},[_.value]),K=P.useCallback(()=>j==null?void 0:j.focus(),[j]),ee=P.useCallback((X,ne,Z)=>{const se=!z.current&&!Z;(_.value!==void 0&&_.value===ne||se)&&C(X)},[_.value]),J=r==="popper"?DS:pq,G=J===DS?{side:l,sideOffset:c,align:d,alignOffset:p,arrowPadding:f,collisionBoundary:m,collisionPadding:g,sticky:b,hideWhenDetached:y,avoidCollisions:v}:{};return s.jsx(fq,{scope:n,content:j,viewport:N,onViewportChange:O,itemRefCallback:F,selectedItem:A,onItemLeave:K,itemTextRefCallback:ee,focusSelectedItem:V,selectedItemText:M,position:r,isPositioned:B,searchRef:q,children:s.jsx(Ok,{as:Cce,allowPinchZoom:!0,children:s.jsx(Nk,{asChild:!0,trapped:_.open,onMountAutoFocus:X=>{X.preventDefault()},onUnmountAutoFocus:Wt(i,X=>{var ne;(ne=_.trigger)==null||ne.focus({preventScroll:!0}),X.preventDefault()}),children:s.jsx(jk,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:X=>X.preventDefault(),onDismiss:()=>_.onOpenChange(!1),children:s.jsx(J,{role:"listbox",id:_.contentId,"data-state":_.open?"open":"closed",dir:_.dir,onContextMenu:X=>X.preventDefault(),...x,...G,onPlaced:()=>$(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:Wt(x.onKeyDown,X=>{const ne=X.ctrlKey||X.altKey||X.metaKey;if(X.key==="Tab"&&X.preventDefault(),!ne&&X.key.length===1&&D(X.key),["ArrowUp","ArrowDown","Home","End"].includes(X.key)){let se=R().filter(fe=>!fe.disabled).map(fe=>fe.ref.current);if(["ArrowUp","End"].includes(X.key)&&(se=se.slice().reverse()),["ArrowUp","ArrowDown"].includes(X.key)){const fe=X.target,le=se.indexOf(fe);se=se.slice(le+1)}setTimeout(()=>H(se)),X.preventDefault()}})})})})})})});hq.displayName=Tce;var Rce="SelectItemAlignedPosition",pq=P.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...i}=e,o=ps(Pl,n),a=ms(Pl,n),[l,c]=P.useState(null),[d,p]=P.useState(null),f=fn(t,E=>p(E)),m=gv(n),g=P.useRef(!1),b=P.useRef(!0),{viewport:y,selectedItem:v,selectedItemText:x,focusSelectedItem:_}=a,j=P.useCallback(()=>{if(o.trigger&&o.valueNode&&l&&d&&y&&v&&x){const E=o.trigger.getBoundingClientRect(),A=d.getBoundingClientRect(),I=o.valueNode.getBoundingClientRect(),M=x.getBoundingClientRect();if(o.dir!=="rtl"){const fe=M.left-A.left,le=I.left-fe,we=E.left-le,ge=E.width+we,be=Math.max(ge,A.width),Be=window.innerWidth-Ai,De=vR(le,[Ai,Math.max(Ai,Be-be)]);l.style.minWidth=ge+"px",l.style.left=De+"px"}else{const fe=A.right-M.right,le=window.innerWidth-I.right-fe,we=window.innerWidth-E.right-le,ge=E.width+we,be=Math.max(ge,A.width),Be=window.innerWidth-Ai,De=vR(le,[Ai,Math.max(Ai,Be-be)]);l.style.minWidth=ge+"px",l.style.right=De+"px"}const C=m(),R=window.innerHeight-Ai*2,B=y.scrollHeight,$=window.getComputedStyle(d),z=parseInt($.borderTopWidth,10),H=parseInt($.paddingTop,10),V=parseInt($.borderBottomWidth,10),Y=parseInt($.paddingBottom,10),W=z+H+B+Y+V,q=Math.min(v.offsetHeight*5,W),D=window.getComputedStyle(y),F=parseInt(D.paddingTop,10),K=parseInt(D.paddingBottom,10),ee=E.top+E.height/2-Ai,J=R-ee,G=v.offsetHeight/2,X=v.offsetTop+G,ne=z+H+X,Z=W-ne;if(ne<=ee){const fe=C.length>0&&v===C[C.length-1].ref.current;l.style.bottom="0px";const le=d.clientHeight-y.offsetTop-y.offsetHeight,we=Math.max(J,G+(fe?K:0)+le+V),ge=ne+we;l.style.height=ge+"px"}else{const fe=C.length>0&&v===C[0].ref.current;l.style.top="0px";const we=Math.max(ee,z+y.offsetTop+(fe?F:0)+G)+Z;l.style.height=we+"px",y.scrollTop=ne-ee+y.offsetTop}l.style.margin=`${Ai}px 0`,l.style.minHeight=q+"px",l.style.maxHeight=R+"px",r==null||r(),requestAnimationFrame(()=>g.current=!0)}},[m,o.trigger,o.valueNode,l,d,y,v,x,o.dir,r]);cr(()=>j(),[j]);const[S,N]=P.useState();cr(()=>{d&&N(window.getComputedStyle(d).zIndex)},[d]);const O=P.useCallback(E=>{E&&b.current===!0&&(j(),_==null||_(),b.current=!1)},[j,_]);return s.jsx(Ice,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:g,onScrollButtonChange:O,children:s.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:s.jsx($t.div,{...i,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});pq.displayName=Rce;var Mce="SelectPopperPosition",DS=P.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:i=Ai,...o}=e,a=yv(n);return s.jsx(fce,{...a,...o,ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});DS.displayName=Mce;var[Ice,$k]=Wu(Pl,{}),LS="SelectViewport",mq=P.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...i}=e,o=ms(LS,n),a=$k(LS,n),l=fn(t,o.onViewportChange),c=P.useRef(0);return s.jsxs(s.Fragment,{children:[s.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),s.jsx(mv.Slot,{scope:n,children:s.jsx($t.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:Wt(i.onScroll,d=>{const p=d.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:m}=a;if(m!=null&&m.current&&f){const g=Math.abs(c.current-p.scrollTop);if(g>0){const b=window.innerHeight-Ai*2,y=parseFloat(f.style.minHeight),v=parseFloat(f.style.height),x=Math.max(y,v);if(x<b){const _=x+g,j=Math.min(b,_),S=_-j;f.style.height=j+"px",f.style.bottom==="0px"&&(p.scrollTop=S>0?S:0,f.style.justifyContent="flex-end")}}}c.current=p.scrollTop})})})]})});mq.displayName=LS;var gq="SelectGroup",[Dce,Lce]=Wu(gq),Bce=P.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=Fc();return s.jsx(Dce,{scope:n,id:i,children:s.jsx($t.div,{role:"group","aria-labelledby":i,...r,ref:t})})});Bce.displayName=gq;var yq="SelectLabel",vq=P.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=Lce(yq,n);return s.jsx($t.div,{id:i.id,...r,ref:t})});vq.displayName=yq;var qg="SelectItem",[$ce,xq]=Wu(qg),bq=P.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:o,...a}=e,l=ps(qg,n),c=ms(qg,n),d=l.value===r,[p,f]=P.useState(o??""),[m,g]=P.useState(!1),b=fn(t,_=>{var j;return(j=c.itemRefCallback)==null?void 0:j.call(c,_,r,i)}),y=Fc(),v=P.useRef("touch"),x=()=>{i||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return s.jsx($ce,{scope:n,value:r,disabled:i,textId:y,isSelected:d,onItemTextChange:P.useCallback(_=>{f(j=>j||((_==null?void 0:_.textContent)??"").trim())},[]),children:s.jsx(mv.ItemSlot,{scope:n,value:r,disabled:i,textValue:p,children:s.jsx($t.div,{role:"option","aria-labelledby":y,"data-highlighted":m?"":void 0,"aria-selected":d&&m,"data-state":d?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...a,ref:b,onFocus:Wt(a.onFocus,()=>g(!0)),onBlur:Wt(a.onBlur,()=>g(!1)),onClick:Wt(a.onClick,()=>{v.current!=="mouse"&&x()}),onPointerUp:Wt(a.onPointerUp,()=>{v.current==="mouse"&&x()}),onPointerDown:Wt(a.onPointerDown,_=>{v.current=_.pointerType}),onPointerMove:Wt(a.onPointerMove,_=>{var j;v.current=_.pointerType,i?(j=c.onItemLeave)==null||j.call(c):v.current==="mouse"&&_.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Wt(a.onPointerLeave,_=>{var j;_.currentTarget===document.activeElement&&((j=c.onItemLeave)==null||j.call(c))}),onKeyDown:Wt(a.onKeyDown,_=>{var S;((S=c.searchRef)==null?void 0:S.current)!==""&&_.key===" "||(jce.includes(_.key)&&x(),_.key===" "&&_.preventDefault())})})})})});bq.displayName=qg;var _f="SelectItemText",wq=P.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,...o}=e,a=ps(_f,n),l=ms(_f,n),c=xq(_f,n),d=Ece(_f,n),[p,f]=P.useState(null),m=fn(t,x=>f(x),c.onItemTextChange,x=>{var _;return(_=l.itemTextRefCallback)==null?void 0:_.call(l,x,c.value,c.disabled)}),g=p==null?void 0:p.textContent,b=P.useMemo(()=>s.jsx("option",{value:c.value,disabled:c.disabled,children:g},c.value),[c.disabled,c.value,g]),{onNativeOptionAdd:y,onNativeOptionRemove:v}=d;return cr(()=>(y(b),()=>v(b)),[y,v,b]),s.jsxs(s.Fragment,{children:[s.jsx($t.span,{id:c.textId,...o,ref:m}),c.isSelected&&a.valueNode&&!a.valueNodeHasChildren?Kh.createPortal(o.children,a.valueNode):null]})});wq.displayName=_f;var _q="SelectItemIndicator",Sq=P.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return xq(_q,n).isSelected?s.jsx($t.span,{"aria-hidden":!0,...r,ref:t}):null});Sq.displayName=_q;var BS="SelectScrollUpButton",jq=P.forwardRef((e,t)=>{const n=ms(BS,e.__scopeSelect),r=$k(BS,e.__scopeSelect),[i,o]=P.useState(!1),a=fn(t,r.onScrollButtonChange);return cr(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=c.scrollTop>0;o(d)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),i?s.jsx(kq,{...e,ref:a,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null});jq.displayName=BS;var $S="SelectScrollDownButton",Nq=P.forwardRef((e,t)=>{const n=ms($S,e.__scopeSelect),r=$k($S,e.__scopeSelect),[i,o]=P.useState(!1),a=fn(t,r.onScrollButtonChange);return cr(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=c.scrollHeight-c.clientHeight,p=Math.ceil(c.scrollTop)<d;o(p)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),i?s.jsx(kq,{...e,ref:a,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null});Nq.displayName=$S;var kq=P.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=e,o=ms("SelectScrollButton",n),a=P.useRef(null),l=gv(n),c=P.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return P.useEffect(()=>()=>c(),[c]),cr(()=>{var p;const d=l().find(f=>f.ref.current===document.activeElement);(p=d==null?void 0:d.ref.current)==null||p.scrollIntoView({block:"nearest"})},[l]),s.jsx($t.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:Wt(i.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:Wt(i.onPointerMove,()=>{var d;(d=o.onItemLeave)==null||d.call(o),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:Wt(i.onPointerLeave,()=>{c()})})}),Fce="SelectSeparator",Oq=P.forwardRef((e,t)=>
vendor: 4,347 bytes, line 584
584{const{__scopeSelect:n,...r}=e;return s.jsx($t.div,{"aria-hidden":!0,...r,ref:t})});Oq.displayName=Fce;var FS="SelectArrow",qce=P.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=yv(n),o=ps(FS,n),a=ms(FS,n);return o.open&&a.position==="popper"?s.jsx(hce,{...i,...r,ref:t}):null});qce.displayName=FS;var zce="SelectBubbleInput",Eq=P.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const i=P.useRef(null),o=fn(r,i),a=bce(t);return P.useEffect(()=>{const l=i.current;if(!l)return;const c=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(c,"value").set;if(a!==t&&p){const f=new Event("change",{bubbles:!0});p.call(l,t),l.dispatchEvent(f)}},[a,t]),s.jsx($t.select,{...n,style:{...rq,...n.style},ref:o,defaultValue:t})});Eq.displayName=zce;function Pq(e){return e===""||e===void 0}function Aq(e){const t=Nl(e),n=P.useRef(""),r=P.useRef(0),i=P.useCallback(a=>{const l=n.current+a;t(l),(function c(d){n.current=d,window.clearTimeout(r.current),d!==""&&(r.current=window.setTimeout(()=>c(""),1e3))})(l)},[t]),o=P.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return P.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,o]}function Tq(e,t,n){const i=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let a=Uce(e,Math.max(o,0));i.length===1&&(a=a.filter(d=>d!==n));const c=a.find(d=>d.textValue.toLowerCase().startsWith(i.toLowerCase()));return c!==n?c:void 0}function Uce(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Hce=iq,Cq=aq,Vce=lq,Wce=cq,Gce=uq,Rq=dq,Kce=mq,Mq=vq,Iq=bq,Yce=wq,Xce=Sq,Dq=jq,Lq=Nq,Bq=Oq;const zg=Hce,Ug=Vce,th=P.forwardRef(({className:e,children:t,...n},r)=>s.jsxs(Cq,{ref:r,className:St("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,s.jsx(Wce,{asChild:!0,children:s.jsx(us,{className:"h-4 w-4 opacity-50"})})]}));th.displayName=Cq.displayName;const $q=P.forwardRef(({className:e,...t},n)=>s.jsx(Dq,{ref:n,className:St("flex cursor-default items-center justify-center py-1",e),...t,children:s.jsx(qV,{className:"h-4 w-4"})}));$q.displayName=Dq.displayName;const Fq=P.forwardRef(({className:e,...t},n)=>s.jsx(Lq,{ref:n,className:St("flex cursor-default items-center justify-center py-1",e),...t,children:s.jsx(us,{className:"h-4 w-4"})}));Fq.displayName=Lq.displayName;const nh=P.forwardRef(({className:e,children:t,position:n="popper",...r},i)=>s.jsx(Gce,{children:s.jsxs(Rq,{ref:i,className:St("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[s.jsx($q,{}),s.jsx(Kce,{className:St("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),s.jsx(Fq,{})]})}));nh.displayName=Rq.displayName;const Qce=P.forwardRef(({className:e,...t},n)=>s.jsx(Mq,{ref:n,className:St("px-2 py-1.5 text-sm font-semibold",e),...t}));Qce.displayName=Mq.displayName;const rh=P.forwardRef(({className:e,children:t,...n},r)=>s.jsxs(Iq,{ref:r,className:St("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[s.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:s.jsx(Xce,{children:s.jsx(Gy,{className:"h-4 w-4"})})}),s.jsx(Yce,{children:t})]}));rh.displayName=Iq.displayName;const Zce=P.forwardRef(({className:e,...t},n)=>s.jsx(Bq,{ref:n,className:St("-mx-1 my-1 h-px bg-muted",e),...t}));Zce.displayName=Bq.displayName;
584function Jce(e){try{typeof window<"u"&&typeof window.gtag=="function"&&window.gtag("event","generate_lead",{form_type:e})}catch{}}const eue=["Google","Podiatry Management Magazine","Podiatry Pulse","The O & P Edge","LER Expo","Event","Referral","Other"],qq=["Podiatry Management Magazine","The O & P Edge"],tue=["Website","Print"],zq="Other",nue=[...qq,zq],rue={sources:[],referral_name:"",event_name:""};function Gu({value:e,onChange:t,required:n=!1}){const r=e||rue,i=p=>qq.includes(p),o=p=>nue.includes(p),a=p=>o(p)?r.sources.some(f=>f.startsWith(p+" (")):r.sources.includes(p),l=p=>{const f=r.sources.find(g=>g.startsWith(p+" (")),m=f&&f.match(/\(([^)]*)\)/);return m?m[1]:i(p)?"Website":""},c=p=>{const f=a(p);let m;if(o(p)){if(m=r.sources.filter(g=>!g.startsWith(p+" (")),!f){const g=i(p)?"Website":"";m=[...m,`${p} (${g})`]}}else m=f?r.sources.filter(g=>g!==p):[...r.sources,p];t({...r,sources:m})},d=(p,f)=>{const m=r.sources.map(g=>g.startsWith(p+" (")?`${p} (${f})`:g);t({...r,sources:m})};return s.jsxs("fieldset",{className:"space-y-3",children:[s.jsxs("legend",{className:"block text-dark-blue font-inter font-semibold text-sm mb-1",children:["How did you hear about us?",n&&s.jsx("span",{className:"text-pistachio ml-0.5",children:"*"}),s.jsx("span",{className:"text-dark-blue/40 text-xs font-normal ml-2",children:"(tick all that apply)"})]}),s.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2.5",children:eue.map(p=>{const f=a(p);return s.jsxs("div",{className:"space-y-2",children:[s.jsxs("label",{className:`flex items-center gap-3 px-4 py-3 rounded-xl border cursor-pointer transition-colors ${f?"border-pistachio bg-pistachio/8":"border-dark-blue/10 bg-pale-blue hover:border-pistachio/60"}`,children:[s.jsx("input",{type:"checkbox",checked:f,onChange:()=>c(p),className:"w-4 h-4 rounded border-dark-blue/30 text-pistachio focus:ring-pistachio accent-pistachio"}),s.jsx("span",{className:"text-sm font-inter text-dark-blue",children:p})]}),i(p)&&f&&s.jsx("div",{className:"flex gap-2 pl-7",children:tue.map(m=>{const g=l(p)===m;return s.jsx("button",{type:"button",onClick:()=>d(p,m),className:`px-3 py-1.5 rounded-lg text-xs font-inter font-medium transition-colors ${g?"bg-pistachio text-dark-blue":"bg-white text-dark-blue/60 border border-dark-blue/10 hover:border-pistachio/60"}`,children:m},m)})}),p===zq&&f&&s.jsx("div",{className:"pl-7",children:s.jsx("input",{type:"text",value:l(p),onChange:m=>d(p,m.target.value),placeholder:"Tell us where you heard about us",required:!0,className:"w-full px-4 py-2.5 rounded-lg border border-dark-blue/10 bg-pale-blue font-inter text-sm text-dark-blue placeholder:text-dark-blue/40 focus:outline-none focus:ring-2 focus:ring-pistachio focus:border-transparent transition-colors"})})]},p)})}),r.sources.includes("Referral")&&s.jsx("input",{type:"text",value:r.referral_name,onChange:p=>t({...r,referral_name:p.target.value}),placeholder:"Tell us who referred you so we can thank them",className:"w-full px-4 py-3 rounded-xl border border-dark-blue/10 bg-pale-blue font-inter text-sm text-dark-blue placeholder:text-dark-blue/40 focus:outline-none focus:ring-2 focus:ring-pistachio focus:border-transparent transition-colors"}),r.sources.includes("Event")&&s.jsx("input",{type:"text",value:r.event_name,onChange:p=>t({...r,event_name:p.target.value}),placeholder:"Tell us the name of the conference or workshop where we met you",className:"w-full px-4 py-3 rounded-xl border border-dark-blue/10 bg-pale-blue font-inter text-sm text-dark-blue placeholder:text-dark-blue/40 focus:outline-none focus:ring-2 focus:ring-pistachio focus:border-transparent transition-colors"})]})}const Ma="w-full px-4 py-3 rounded-lg border border-dark-blue/15 bg-white text-dark-blue placeholder:text-dark-blue/40 text-sm font-inter focus:outline-none focus:border-pistachio focus:ring-1 focus:ring-pistachio",Io="block text-dark-blue font-inter font-semibold text-xs uppercase tracking-wider mb-1.5",iue=["Scanning Assistance","Onboarding Session","Clinical advice","Product information","iOrder platform","Other help"],oue={"Dean Hartley":{days:[1,2,3,4,5]},"Scott Morrison":{days:[2,4]}
584,"Elisha Kynaston":{days:[2,4]},"Lauren King":{days:[3]},"Patrick Morrison":{days:[1,2,3,4,5]},"Nidhi Solanki":{byRequest:!0}};function aue(e){const t=new Intl.DateTimeFormat("en-US",{timeZone:"Australia/Brisbane",weekday:"short",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hour12:!1}),n=Object.fromEntries(t.formatToParts(new Date(e)).map(i=>[i.type,i.value]));return{weekday:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"].indexOf(n.weekday),year:+n.year,month:+n.month,day:+n.day}}function sue(e,t=16){if(!e||!e.length)return[];const n=Date.now(),r=n+7*864e5,i=[];for(let o=0;o<75&&i.length<t;o++){const a=aue(n+o*864e5);if(e.includes(a.weekday))for(const l of[7,8]){const c=Date.UTC(a.year,a.month-1,a.day,l,0)-36e6;c<r||i.push({epoch:c,label:new Intl.DateTimeFormat(void 0,{weekday:"short",month:"short",day:"numeric",hour:"numeric",minute:"2-digit",hour12:!0,timeZoneName:"short"}).format(new Date(c))})}}return i}function lue({clinicianName:e,trigger:t}){const[n,r]=P.useState(!1),[i,o]=P.useState("idle"),[a,l]=P.useState(""),[c,d]=P.useState({name:"",clinic:"",phone:"",email:"",contact_method:"Phone call",reason:"Scanning Assistance",preferred_time:"",message:"",other_help:""}),[p,f]=P.useState({sources:[],referral_name:"",event_name:""}),m=_=>j=>d(S=>({...S,[_]:j.target.value})),g=oue[e]||{},b=!!g.byRequest,y=P.useMemo(()=>b?[]:sue(g.days),[b,g.days]),v=()=>{d({name:"",clinic:"",phone:"",email:"",contact_method:"Phone call",reason:"Scanning Assistance",preferred_time:"",message:"",other_help:""}),f({sources:[],referral_name:"",event_name:""}),o("idle"),l("")},x=async _=>{var j,S;if(_.preventDefault(),!c.name||!c.phone||!c.email){l("Please enter your name, a contact number, and an email.");return}if(!p.sources.length){l("Please tell us how you heard about us.");return}o("submitting"),l("");try{const N=`Contact method: ${c.contact_method}`,O=c.reason?`Reason: ${c.reason}`:"",E=c.reason==="Other help"&&c.other_help?`Other help details: ${c.other_help}`:"",A=c.preferred_time?`Preferred time: ${c.preferred_time}`:"",I=`Email: ${c.email}`,M=[N,O,E,A,I,c.message].filter(Boolean).join(`
585`),C=`Consultation request — ${e}
586${M}`.trim();await st.functions.invoke("requestCallback",{name:c.name,clinic:c.clinic,phone:c.phone,preferred_time:b?"By request":c.preferred_time||"To be confirmed",message:C,sources:p.sources,referral_name:p.referral_name,event_name:p.event_name}),o("success"),Jce("consultation")}catch(N){o("error"),l(((S=(j=N==null?void 0:N.response)==null?void 0:j.data)==null?void 0:S.error)||(N==null?void 0:N.message)||"Something went wrong. Please try again.")}};return s.jsxs(s.Fragment,{children:[t||s.jsxs("button",{onClick:()=>r(!0),className:"mt-3 inline-flex items-center justify-center gap-2 w-full py-3 px-5 bg-dark-blue text-white font-inter font-semibold text-sm rounded-full hover:bg-pistachio hover:text-dark-blue transition-colors duration-200",children:[s.jsx(wA,{size:13})," Book a Consultation"]}),s.jsx(Dg,{open:n,onOpenChange:_=>{r(_),_||v()},children:s.jsxs(Qf,{className:"sm:max-w-xl max-h-[92vh] overflow-y-auto bg-white",children:[s.jsxs(Zf,{children:[s.jsxs(Jf,{className:"text-dark-blue font-cal text-2xl flex items-center gap-2",children:[s.jsx(wA,{size:22,className:"text-pistachio"})," Book a Consultation"]}),s.jsxs("p",{className:"text-dark-blue/60 font-inter text-sm mt-1",children:["Request a call with ",s.jsx("span",{className:"font-semibold text-dark-blue",children:e}),". We’ll be in touch to arrange a time."]})]}),i==="success"?s.jsxs("div",{className:"py-10 text-center",children:[s.jsx("div",{className:"w-14 h-14 rounded-full bg-pistachio/15 flex items-center justify-center mx-auto mb-4",children:s.jsx(oa,{size:28,className:"text-pistachio"})}),s.jsx("h3",{className:"text-dark-blue font-cal text-xl mb-2",children:"Request received"}),s.jsxs("p",{className:"text-dark-blue/60 font-inter text-sm max-w-sm mx-auto",children:[e," has been alerted and will reach out to arrange a time."]}),s.jsx("button",{onClick:()=>{r(!1),v()},className:"mt-6 px-6 py-3 bg-dark-blue text-white font-inter font-semibold text-sm rounded-lg hover:bg-dark-blue/90",children:"Close"})]}):s.jsxs("form",{onSubmit:x,className:"space-y-4 pt-2",children:[s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:Io,children:"Name *"}),s.jsx("input",{className:Ma,value:c.name,onChange:m("name"),required:!0})]}),s.jsxs("div",{children:[s.jsx("label",{className:Io,children:"Clinic Name"}),s.jsx("input",{className:Ma,value:c.clinic,onChange:m("clinic")})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:Io,children:"What are you booking for? *"}),s.jsxs(zg,{value:c.reason,onValueChange:_=>d(j=>({...j,reason:_})),children:[s.jsx(th,{className:`${Ma} h-auto`,children:s.jsx(Ug,{placeholder:"Select a reason…"})}),s.jsx(nh,{children:iue.map(_=>s.jsx(rh,{value:_,children:_},_))})]})]}),c.reason==="Other help"&&s.jsxs("div",{children:[s.jsx("label",{className:Io,children:"Please describe what you need help with *"}),s.jsx("textarea",{className:Ma,rows:3,value:c.other_help,onChange:m("other_help"),placeholder:"Tell us what you'd like help with",required:!0})]}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:Io,children:"Phone *"}),s.jsx("input",{className:Ma,value:c.phone,onChange:m("phone"),required:!0})]}),s.jsxs("div",{children:[s.jsx("label",{className:Io,children:"Email *"}),s.jsx("input",{type:"email",className:Ma,value:c.email,onChange:m("email"),required:!0})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:Io,children:"How would you like to connect? *"}),s.jsx("div",{className:"flex flex-wrap gap-2",children:["Phone call","Teams call"].map(_=>s.jsxs("button",{type:"button",onClick:()=>d(j=>({...j,contact_method:_})),className:`inline-flex items-center gap-2 px-4 py-3 rounded-lg border text-sm font-inter font-medium transition-colors ${c.contact_method===_?"border-pistachio bg-pistachio/15 text-dark-blue":"border-dark-blue/15 bg-white text-dark-blue/60 hover:border-dark-blue/30"}`,children:[s.jsx("span",{className:`w-4 h-4 rounded-full border flex items-center justify-center ${c.contact_method===_?"border-pistachio":"border-dark-blue/30"}`,children:c.contact_method===_&&s.jsx("span",{className:"w-2 h-2 rounded-full bg-pistachio"})}),_]},_))})]}),b?s.jsx("div",{className:"rounded-lg border border-pistachio/30 bg-pistachio/10 px-4 py-3",children:s.jsxs("p",{className:"text-dark-blue font-inter text-sm",children:[s.jsx("span",{className:"font-semibold",children:e})," is available by request — submit your details and we’ll arrange a time that works for you."]})}):s.jsxs("div",{children:[s.jsx("label",{className:Io,children:"Preferred time"}),y.length?s.jsxs(s.Fragment,{children:[s.jsxs(zg,{value:c.preferred_time||void 0,onValueChange:_=>d(j=>({...j,preferred_time:_})),children:[s.jsx(th,{className:`${Ma} h-auto`,children:s.jsx(Ug,{placeholder:"Select a slot…"})}),s.jsx(nh,{children:y.map(_=>s.jsx(rh,{value:_.label,children:_.label},_.epoch))})]}),s.jsx("p",{className:"text-dark-blue/45 font-inter text-[11px] mt-1 leading-relaxed",children:"Slots shown in your local time."}),s.jsx("p",{className:"text-dark-blue/60 font-inter text-xs mt-2 leading-relaxed",children:"Our team will c
586ontact you to confirm this appointment time is available, as our practitioners work around patient appointments."})]}):s.jsx("p",{className:"text-dark-blue/60 font-inter text-sm",children:"No upcoming slots could be generated — please email us and we’ll arrange a time."})]}),s.jsxs("div",{children:[s.jsxs("label",{className:Io,children:["Notes for ",e]}),s.jsx("textarea",{className:Ma,rows:3,value:c.message,onChange:m("message"),placeholder:"Anything you'd like to discuss"})]}),s.jsx(Gu,{value:p,onChange:f,required:!0}),a&&s.jsxs("div",{className:"flex items-start gap-2.5 p-3 rounded-lg bg-red-50 border border-red-200 text-red-700 font-inter text-sm",children:[s.jsx(Ky,{size:16,className:"flex-shrink-0 mt-0.5"}),s.jsx("span",{children:a})]}),s.jsxs("div",{className:"flex items-center justify-end gap-3 pt-1",children:[s.jsx("button",{type:"button",onClick:()=>{r(!1),v()},className:"px-5 py-2.5 text-dark-blue/60 font-inter text-sm hover:text-dark-blue",children:"Cancel"}),s.jsx("button",{type:"submit",disabled:i==="submitting",className:"inline-flex items-center gap-2 px-7 py-3 bg-pistachio text-dark-blue font-inter font-bold text-sm rounded-lg hover:bg-pistachio/90 disabled:opacity-60",children:i==="submitting"?s.jsxs(s.Fragment,{children:[s.jsx(pi,{size:16,className:"animate-spin"})," Sending…"]}):s.jsxs(s.Fragment,{children:[c.contact_method==="Teams call"?"Request Meeting":"Request Call"," ",s.jsx(ot,{size:16})]})})]})]})]})})]})}const cue=[{name:"Dean Hartley",title:"Director / Founder",role:"Podiatrist",img:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/04b918208_Dean.png",cover:!0,bio:"A Podiatrist of over 15 years, Dean co-founded iOrthotics and Healthia Limited. He collaborates with UQ and QUT on research and development projects spanning innovative materials and technologies and is an industry leader in the field of 3D printing and digital workflows.  He also holds an Adjunct Fellow position at the University of Queensland."},{name:"Scott Morrison",title:"General Manager",role:"Podiatrist",img:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/608957488_ScottMorrison.png",cover:!0,bio:"Scott has managed iOrthotics Australia since 2018. With a clinical background in podiatry and specializing in biomechanics, Scott has taught for several years at QUT, leads our global product development, clinical training, and R&D initiatives including smart orthotics research.  As a contributor to several published research projects, Scott excels at investing in the next generation of podiatrists. He is also the founder of AllSports Podiatry."},{name:"Elisha Kynaston",title:"Operations Manager & Education Podiatrist",role:"Podiatrist",img:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/88184a9d2_Elisha.png",flip:!0,cover:!0,bio:"Elisha joined iOrthotics in 2024 and is our Operations Manager whilst still engaging in clinic . She specialises in custom AFO and footwear prescriptions, and is the go-to for scanning support, onboarding, and the iOrder platform.  Increasingly, Elisha plays a key role in educating fellow podiatrists and developing clinical training through our annual workshop roadshows."},{name:"Lauren King",title:"Podiatrist",role:"Podiatrist",img:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/ff1dc5549_MeetTheTeam-LaurenKing.png",cover:!0,bio:"Lauren joined iOrthotics in 2022 whilst still studying Podiatry at QUT.  Now a new graduate, Lauren consults across two Brisbane sports clinics whilst working at the lab a few days a week. She is a familiar face at workshops and conferences, helping practitioners leverage innovative manufacturing solutions for better patient outcomes. Lauren has also been involved in recent studies relating to sustainable orthotic materials."},{name:"Nidhi Solanki",title:"Orthotist & Prosthetist",role:"Orthotist & Prosthetist",img:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/c800572d7_NidhiSolanki2025EmailSignatures.png",cover:!0,bio:"Nidhi has been part of the iOrthotics team since 2021 and practicing within Healthia clinics for over a decade. An AOPA member, she specialises in lower limb orthosis and has developed a reputation within the industry as a leader in the O & P space. She leads 3D-printed AFO design, Sure Step paediatric braces, and custom medical-grade footwear — and is the go-to specialist for complex lower limb bracing. Nidhi is a keen contributor to our education events teaching on de
586sign, scanning & solutions to complex clinical presentations."},{name:"Patrick Morrison",title:"Podiatrist / Business Development",role:"Podiatrist",img:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/9c24ad883_FB_MeetTheTeam-PatMorrison.png",flip:!0,cover:!0,bio:"Pat joined the team in early 2026, bringing both clinical practice as a Podiatrist and a Bachelor of Business (Finance). Patrick has a passion for business development and is leveraging his skills in this area to expand our business in the US, Australia and beyond. Patrick is our key contact for iOrthotics USA and is currently working on transitioning an acquired brand into our Long Island facility and improving our business processes to ensure we provide excellent patient first outcomes."}],uue={"Dean Hartley":"A podiatrist with 15+ years' experience and co-founder of iOrthotics and Healthia Limited. An industry leader in 3D printing and digital workflows, Dean collaborates with UQ and QUT on R&D projects in innovative materials and technologies, and is an Adjunct Fellow at the University of Queensland.","Scott Morrison":"Scott Morrison has managed iOrthotics Australia since 2018 with a clinical background in podiatry, specializing in biomechanics. He leads global product development, clinical training and R&D (incl. smart orthotics research), and is the founder of AllSports Podiatry.","Elisha Kynaston":"Elisha Kynaston joined iOrthotics in 2024 as Operations Manager while continuing clinical practice. She specialises in custom AFO and footwear prescriptions, supports scanning, onboarding and the iOrder platform, and helps deliver clinical training through our workshop roadshows.","Lauren King":"Lauren King joined iOrthotics in 2022 while studying Podiatry at QUT and now consults across two Brisbane sports clinics. A familiar face at workshops and conferences, Lauren helps practitioners adopt innovative manufacturing solutions and contributes to research on sustainable orthotic materials.","Nidhi Solanki":"Nidhi Solanki has been part of the iOrthotics team since 2021 with over a decade of practice in Healthia clinics. An AOPA member and O&P leader, she specialises in lower limb orthoses — 3D-printed AFOs, Surestep paediatric braces and custom medical-grade footwear — and is a key educator on design, scanning and complex cases.","Patrick Morrison":"Patrick Morrison joined iOrthotics in 2026, bringing clinical experience as a Podiatrist and a Bachelor of Business (Finance). Focused on business development, he is expanding iOrthotics across Australia, the US and international markets, and is the primary contact for iOrthotics USA and the Long Island facility integration."};function Fk({compact:e=!1}){const[t,n]=P.useState(null);return s.jsx("section",{className:`bg-dark-blue ${e?"py-14 lg:py-20":"py-20 lg:py-28"}`,children:s.jsxs("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:[!e&&s.jsxs("div",{className:"text-center mb-12 lg:mb-16",children:[s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-4",children:"Our People"}),s.jsx("h2",{className:"text-white font-cal leading-tight",style:{fontSize:"clamp(32px, 4vw, 56px)"},children:"Our Clinical Team"})]}),s.jsx(Dn,{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-4",children:cue.map((r,i)=>s.jsx(Ln,{children:s.jsxs("div",{className:"flex flex-col rounded-2xl overflow-hidden bg-white border border-dark-blue/8 h-full",children:[s.jsxs("button",{type:"button",onClick:()=>n(t===i?null:i),className:"relative overflow-hidden group block w-full text-left lg:cursor-default",style:{aspectRatio:"3/4"},children:[s.jsx("div",{className:"absolute inset-0 bg-white"}),s.jsx("img",{src:r.img,alt:r.name,className:`absolute inset-0 w-full h-full ${r.cover?"object-cover object-top":"object-contain object-top"} transition-transform duration-500 group-hover:scale-105`,style:{zIndex:1,...r.flip?{transform:"scaleX(-1)"}:{}}}),s.jsx("div",{className:"absolute inset-0",style:{zIndex:2,background:"linear-gradient(to top, rgba(18,32,72,0.92) 0%, rgba(18,32,72,0.55) 38%, rgba(18,32,72,0) 65%)"}}),s.jsxs("div",{className:"absolute bottom-0 left-0 right-0 p-4",style:{zIndex:3},children:[s.jsx("p",{className:"text-white font-cal leading-tight text-lg min-h-[1.35em]",children:r.name}),s.jsx("p",{className:"text-white/80 font-inter text-xs mt-0.5 min-h-[2.6em] leading-snug",children:r.title}),r.role&&s.jsx("p",{className:"text-pistachio/90 font-inter text-xs mt-0.5 font-semibold uppercase tracking-wide min-h-[1.3em]",children:r.role})]}),s.jsx("span",{className:"lg:hidden absolute top-3 right-3 z-[4] flex items-center justify-center w-7 h-7 rounded-full bg-dark-blue/60 backdrop-blur-sm text-white",children:s.jsx(us,{size:16,className:`transition-transform duration-300 ${t===i?"rotate-180":""}`})})]}),s.jsxs("div",{className:"flex-grow flex flex-col p-3",children:[s.jsx("p",{className:`text-dark-blue/60 leading-relaxed flex-grow [font-family:'Inter',_ui-sans-serif,_system-ui,_sans-serif] font-light ${e?"text-[11px]":"text-xs"} ${t===i?"block":"hidden"} lg:block`,children:e?uue[r.name]:r.bio}),s.jsx(lue,{clinicianName:r.name})]})]})},r.name))})]})})}const due="https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/72013eef3_Asset107.png",fue="https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/cc124aa72_HeroImageOctoberArticle.jpg";function hue(){return s.jsx("section",{className:"bg-dark-blue py-12 lg:py-16",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsx(_e,{children:s.jsxs("div",{className:"rounded-2xl overflow-hidden border border-white/10 grid grid-cols-1 lg:grid-cols-2",children:[s.jsxs("div",{className:"relative overflow-hidden min-h-[320px] lg:min-h-0",children:[s.jsx("img",{src:fue,alt:"Podiatrist scanning a patient's foot in clinic",className:"absolute inset-0 w-full h-full object-cover object-center"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-dark-blue/40 via-mid-blue/20 to-transparent"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-tr from-dark-blue/25 via-trans
586parent to-dark-blue/10"})]}),s.jsxs("div",{className:"bg-white/5 backdrop-blur-sm p-8 lg:p-12 flex flex-col justify-center text-center lg:text-left",children:[s.jsxs("div",{className:"flex items-center gap-4 mb-5 justify-center lg:justify-start",children:[s.jsx("img",{src:due,alt:"iO Scanner App",className:"w-14 h-14 rounded-2xl shadow-lg flex-shrink-0"}),s.jsxs("div",{children:[s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-0.5",children:"Mobile App"}),s.jsx("h3",{className:"text-white font-cal leading-tight text-2xl lg:text-3xl",children:"iO Scanner"})]})]}),s.jsx("p",{className:"text-white/60 font-inter text-sm leading-relaxed mb-6",children:"Capture precise 3D foot scans directly from your iPhone or iPad Pro. Scans upload instantly to your iOrder dashboard — ready to prescribe, no plaster or manual backups needed."}),s.jsx("ul",{className:"space-y-2 mb-8 text-center lg:text-left",children:["iPhone & iPad Pro compatible","Instant upload to iOrder dashboard","Replaces plaster casting & manual backup scans","Purpose-built for podiatry clinics"].map(e=>s.jsxs("li",{className:"flex items-center gap-2.5 justify-center lg:justify-start text-white/70 font-inter text-sm",children:[s.jsx(oa,{size:14,className:"text-pistachio flex-shrink-0"}),e]},e))}),s.jsxs("a",{href:"https://apps.apple.com/au/app/io-scanner/id1501635888",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-3 self-center lg:self-start px-6 py-3 bg-white text-dark-blue font-inter font-semibold text-sm rounded-full hover:bg-pistachio transition-colors duration-200",children:[s.jsx("svg",{viewBox:"0 0 24 24",className:"w-4 h-4 fill-current flex-shrink-0",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.8-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"})}),"Download on the App Store"]})]})]})})})})}const pue=["Pilot Stride","Flex Control","Superflex","Dress Precision","Fashion Fit","Cleat Force","Pediatric Control","EnviroFoam"],Zd="w-full px-4 py-3 rounded-lg border border-dark-blue/15 bg-white text-dark-blue placeholder:text-dark-blue/40 text-sm font-inter focus:outline-none focus:border-pistachio focus:ring-1 focus:ring-pistachio",Vs="block text-dark-blue font-inter font-semibold text-xs uppercase tracking-wider mb-1.5",TR=e=>"px-3.5 py-2.5 rounded-full text-sm font-inter font-medium border transition-colors "+(e?"bg-pistachio text-dark-blue border-pistachio":"bg-white text-dark-blue/70 border-dark-blue/15 hover:border-pistachio");function Uq({onClose:e}){const[t,n]=P.useState(!1),[r,i]=P.useState(!1),[o,a]=P.useState(""),[l,c]=P.useState({name:"",clinic:"",email:"",phone:"",contact_method:"Email",sample_types:[],message:""}),[d,p]=P.useState({sources:[],referral_name:"",event_name:""}),f=zu("request_sample"),m=v=>x=>c(_=>({..._,[v]:x.target.value})),g=v=>c(x=>({...x,sample_types:x.sample_types.includes(v)?x.sample_types.filter(_=>_!==v):[...x.sample_types,v]})),b=l.contact_method==="Phone call"||l.contact_method==="SMS/WhatsApp",y=async v=>{var x,_;if(v.preventDefault(),!l.name||!l.clinic||l.sample_types.length===0){a("Please enter your name and clinic, and select at least one sample type.");return}if(l.contact_method==="Email"&&!l.email){a("Please enter your email so we can contact you.");return}if(b&&!l.phone){a("Please enter your phone number so we can contact you.");return}if(!d.sources.length){a("Please tell us how you heard about us.");return}i(!0),a("");try{const j=await st.functions.invoke("requestSample",{name:l.name,clinic:l.clinic,email:l.email,phone:l.phone,contact_method:l.contact_method,sample_types:l.sample_types,message:l.message,sources:d.sources,referral_name:d.referral_name,event_name:d.event_name}),S=(j==null?void 0:j.data)||{};S.ok?(n(!0),$i("generate_lead",{lead_source:"sample_box",form_name:"request_sample",page_path:window.location.pathname,currency:"USD"})):a(S.error||"Something went wrong. Please try again.")}catch(j){a(((_=(x=j==null?void 0:j.response)==null?void 0:x.data)==null?void 0:_.error)||"Something went wrong. Please try again.")}finally{i(!1)}};return t?s.jsxs("div",{className:"py-10 text-center",children:[s.jsx("div",{className:"w-14 h-14 roun
586ded-full bg-pistachio/15 flex items-center justify-center mx-auto mb-4",children:s.jsx(oa,{size:28,className:"text-pistachio"})}),s.jsx("h3",{className:"text-dark-blue font-cal text-xl mb-2",children:"Request received"}),s.jsx("p",{className:"text-dark-blue/60 font-inter text-sm max-w-sm mx-auto",children:"We will contact you about your sample. Our team will be in touch to arrange the right devices for your clinic."}),e&&s.jsx("button",{onClick:e,className:"mt-6 px-6 py-2.5 bg-dark-blue text-white font-inter font-semibold text-sm rounded-lg hover:bg-dark-blue/90",children:"Close"})]}):s.jsxs("form",{onSubmit:y,onFocusCapture:f,className:"space-y-5 pt-2",children:[s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:Vs,children:"Name *"}),s.jsx("input",{className:Zd,value:l.name,onChange:m("name"),required:!0})]}),s.jsxs("div",{children:[s.jsx("label",{className:Vs,children:"Clinic Name *"}),s.jsx("input",{className:Zd,value:l.clinic,onChange:m("clinic"),required:!0})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:Vs,children:"Preferred contact method *"}),s.jsx("div",{className:"flex flex-wrap gap-2",children:["Email","Phone call","SMS/WhatsApp"].map(v=>s.jsx("button",{type:"button",onClick:()=>c(x=>({...x,contact_method:v})),className:TR(l.contact_method===v),children:v},v))}),s.jsx("p",{className:"text-dark-blue/50 font-inter text-xs mt-2",children:"We will contact you about your sample."})]}),l.contact_method==="Email"?s.jsxs("div",{children:[s.jsx("label",{className:Vs,children:"Email *"}),s.jsx("input",{type:"email",className:Zd,value:l.email,onChange:m("email"),required:!0})]}):s.jsxs("div",{children:[s.jsx("label",{className:Vs,children:"Phone *"}),s.jsx("input",{className:Zd,value:l.phone,onChange:m("phone"),required:!0})]}),s.jsxs("div",{children:[s.jsx("label",{className:Vs,children:"Type of sample *"}),s.jsx("div",{className:"flex flex-wrap gap-2",children:pue.map(v=>s.jsx("button",{type:"button",onClick:()=>g(v),className:TR(l.sample_types.includes(v)),children:v},v))})]}),s.jsxs("div",{children:[s.jsx("label",{className:Vs,children:"Notes"}),s.jsx("textarea",{className:Zd,rows:3,value:l.message,onChange:m("message"),placeholder:"Anything you'd like us to know"})]}),s.jsx(Gu,{value:d,onChange:p,required:!0}),o&&s.jsx("p",{className:"text-red-600 text-sm font-inter",children:o}),s.jsxs("div",{className:"flex items-center justify-end gap-3 pt-1",children:[e&&s.jsx("button",{type:"button",onClick:e,className:"px-5 py-2.5 text-dark-blue/60 font-inter text-sm hover:text-dark-blue",children:"Cancel"}),s.jsx("button",{type:"submit",disabled:r||l.sample_types.length===0,className:"inline-flex items-center gap-2 px-7 py-3 bg-pistachio text-dark-blue font-inter font-bold text-sm rounded-lg hover:bg-pistachio/90 disabled:opacity-60",children:r?"Submitting…":s.jsxs(s.Fragment,{children:["Submit Request ",s.jsx(ot,{size:16})]})})]})]})}function ap({variant:e="card"}){const[t,n]=P.useState(!1);return s.jsxs(s.Fragment,{children:[e==="button"?s.jsxs("button",{onClick:()=>n(!0),className:"inline-flex items-center gap-2 px-8 py-3.5 border border-white/30 text-white font-inter font-bold text-base rounded-full hover:bg-white/10 transition-colors",children:["Get a Sample ",s.jsx(ot,{size:18})]}):s.jsxs("div",{className:"rounded-2xl border border-dark-blue/12 bg-pale-blue px-8 py-7 flex flex-col sm:flex-row items-center justify-between gap-5",children:[s.jsxs("div",{className:"text-center sm:text-left",children:[s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.22em] mb-1.5",children:"Try before you prescribe"}),s.jsx("h3",{className:"text-dark-blue font-cal text-xl leading-tight",children:"Request a Sample"}),s.jsx("p",{className:"text-dark-blue/60 font-inter text-sm mt-1 max-w-md mx-auto sm:mx-0",children:"Hold our devices in your hands — free samples for your clinic, with a team follow-up to find the right fit."})]}),s.jsxs("button",{onClick:()=>n(!0),className:"inline-flex items-center gap-2 px-7 py-3.5 bg-pistachio text-dark-blue font-inter font-bold text-base rounded-xl hover:bg-pistachio/90 transition-colors flex-shrink-0",children:["Get a Sample ",s.jsx(ot,{size:18})]})]}),s.jsx(Dg,{open:t,onOpenChange:n,children:s.jsxs(Qf,{className:"sm:max-w-2xl max-h-[92vh] overflow-y-auto bg-white",children:[s.jsx(Zf,{children:s.jsxs(Jf,{className:"text-dark-blue font-cal text-2xl flex items-center gap-2",children:[s.jsx($f,{size:22,className:"text-pistachio"})," Request a Sample"]})}),s.jsx(Uq,{onClose:()=>n(!1)})]})})]})}function mue(){return s.jsxs("main",{children:[s.jsx(At,{}),s.jsx(Boe,{}),s.jsx(Foe,{}),s.jsx(qoe,{}),s.jsx(Hoe,{}),s.jsx("section",{className:"bg-white py-12",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsx(ap,{})})}),s.jsx(Yoe,{}),s.jsx(Sk,{}),s.jsx(Fk,{}),s.jsx(tF,{flowing:!0}),s.jsx(hue,{}),s.jsx(zoe,{}),s.jsx(Tt,{})]})}const gue=[{year:"2009",event:"Founded in Mackay, Queensland — a small regional lab driven by clinical insight."},{year:"2013",event:"Moved operations to Brisbane. Began scaling manufacturing capacity."},{year:"2016",event:"Adopted HP MultiJet Fusion technology — first in orthotic manufacturing at scale."},{year:"2019",event:"ISO 9001:2015 and ISO 13485:2016 certifications achieved."},{year:"2022",event:"Expanded to the United States. Launched EnviroPoly and EnviroFoam product lines."},{year:"2024",event:"Named official HP Case Study — Australia's largest HP MJF fleet."}
586,{year:"2025",event:"100,000+ devices printed. ~180 tonnes of waste saved in a single year."},{year:"2026",event:"Shaping the future of clinical innovation — globally."}];function yue(){return s.jsxs("div",{className:"bg-white",children:[s.jsx(At,{}),s.jsx("section",{className:"bg-dark-blue pt-40 pb-24",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsxs(_e,{className:"text-center lg:text-left",children:[s.jsx("p",{className:"text-pistachio text-sm font-inter font-semibold uppercase tracking-[0.3em] mb-4",children:"About iOrthotics"}),s.jsxs("h1",{className:"text-white font-cal leading-tight mb-6",style:{fontSize:"clamp(30px, 4vw, 56px)"},children:["The Digital Manufacturing",s.jsx("br",{}),"Partner Behind Better",s.jsx("br",{}),"Orthotic Care."]}),s.jsxs("p",{className:"text-white font-inter font-light max-w-2xl",style:{fontSize:"clamp(22px, 1.9vw, 32px)"},children:["Established 2009. Brisbane HQ. Labs across Australia and the United States. ",s.jsx("span",{className:"text-gradient-shimmer",children:"The world's most advanced orthotic manufacturing ecosystem."})]})]})})}),s.jsx("section",{className:"bg-white py-20 lg:py-28",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 items-center",children:[s.jsxs(_e,{className:"text-center lg:text-left",children:[s.jsx("h2",{className:"text-dark-blue font-cal leading-tight mb-6",style:{fontSize:"clamp(26px, 3vw, 44px)"},children:"From a Regional Lab to a Global Brand."}),s.jsxs("div",{className:"space-y-5 text-dark-blue/70 font-inter text-base leading-relaxed text-left",children:[s.jsx("p",{children:"What began as a small regional lab driven by clinical insight and a passion for innovation has evolved into a global brand recognized for precision, quality, and technological leadership."}),s.jsx("p",{children:"Today, iOrthotics operates from its headquarters in Brisbane and a growing network of advanced manufacturing labs across Australia and the United States. Together, these locations form a unified international ecosystem — combining world-class engineering, clinician-driven design, and cutting-edge additive manufacturing to deliver consistent, premium orthotic solutions at scale."}),s.jsx("p",{children:"Our purpose is clear: to support clinicians, empower patients, and continuously push the boundaries of what modern orthotic manufacturing can achieve."})]}),s.jsx("div",{className:"mt-10 flex flex-wrap gap-3 justify-center lg:justify-start",children:["ISO 9001:2015","ISO 13485:2016","HP Case Study","UQ CADPM Partner"].map(e=>s.jsx("span",{className:"px-4 py-2 bg-pale-blue text-dark-blue font-inter text-sm font-semibold rounded-lg border border-dark-blue/10",children:e},e))})]}),s.jsx(_e,{delay:.2,children:s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsx("img",{src:lr.labDesignScreen,alt:"iOrthotics design software",loading:"lazy",className:"rounded-2xl w-full aspect-[3/4] object-cover"}),s.jsx("img",{src:lr.labQC,alt:"iOrthotics quality control lab",loading:"lazy",className:"rounded-2xl w-full aspect-[3/4] object-cover mt-8"})]})})]})})}),s.jsx("section",{className:"bg-dark-blue py-20 lg:py-28",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[{label:"Our Vision",text:"A world where every patient has access to orthotic care that is clinically precise, responsibly made and sustainably delivered — when it matters most."},{label:"Our Mission",text:"We equip practitioners with innovative, research-driven orthotic solutions — combining clinical precision with responsible design to deliver better patient care."}].map(e=>s.jsx(_e,{children:s.jsxs("div",{className:"bg-white/5 border border-white/10 rounded-2xl p-10 text-center md:text-left",children:[s.jsx("div",{className:"w-10 h-10 rounded-xl bg-pistachio/20 flex items-center justify-center mb-6 mx-auto md:mx-0",children:s.jsx("div",{className:"w-3 h-3 rounded-full bg-pistachio"})}),s.jsx("p",{className:"text-pistachio text-sm font-inter font-semibold uppercase tracking-widest mb-4",children:e.label}),s.jsxs("p",{className:"text-white font-inter text-xl leading-relaxed italic",children:['"',e.text,'"']})]})},e.label))})})}),s.jsx("section",{className:"bg-pale-blue py-20 lg:py-28",children:s.jsxs("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:[s.jsx(_e,{className:"text-center mb-16",children:s.jsx("h2",{className:"text-dark-blue font-cal leading-tight",style:{fontSize:"clamp(26px, 3vw, 44px)"},children:"Our Journey"})}),s.jsxs("div",{className:"relative",children:[s.jsx("div",{className:"absolute left-8 md:left-1/2 top-0 bottom-0 w-px bg-dark-blue/10 transform md:-translate-x-1/2"}),s.jsx(Dn,{className:"space-y-10",children:gue.map((e,t)=>s.jsx(Ln,{children:s.jsxs("div",{className:`relative flex gap-8 items-start ${t%2===0?"md:flex-row":"md:flex-row-reverse"} pl-20 md:pl-0`,children:[s.jsx("div",{className:"absolute left-6 md:left-1/2 w-4 h-4 rounded-full bg-pistachio border-2 border-dark-blue transform md:-translate-x-1/2 mt-1.5 flex-shrink-0"}),s.jsxs("div",{className:`md:w-1/2 ${t%2===0?"md:pr-12 md:text-right":"md:pl-12"}`,children:[s.jsx("span",{className:"text-pistachio font-cal text-3xl",children:e.year}),s.jsx("p",{className:"text-dark-blue/70 font-inter text-base leading-relaxed mt-2",children:e.event})]}),s.jsx("div",{className:"hidden md:block md:w-1/2"})]})},e.year))})]})]})}),s.jsx("div",{className:"bg-dark-blue py-16 text-center",children:s.jsx("a",{href:Nn,target:"_blank",rel:"noopener noreferrer",className:"px-10 py-4 bg-pistachio text-dark-blue font-inter font-bold text-lg rounded-full hover:bg-pistachio/90 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-pistachio",children:"Partner with Us"})}),s.jsx(Tt,{})]})}const vue="+1 973-523-8610",xue="+19735238610";function Hq({variant:e="podiatrist"}){const t=e==="team",[n,r]=P.useState(!1),[i,o]=P.useState({name:"",clinic:"",phone:"",preferred_time:"",message:""}),[a,l]=P.useState("idle"),[c,d]=P.useState(""),[p,f]=P.useState({sources:[],referral_name:"",event_name:""}
586),m=zu("request_callback"),g=async b=>{var y,v;if(b.preventDefault(),!i.name.trim()||!i.phone.trim()){l("error"),d("Your name and a contact number are required.");return}if(!p.sources.length){l("error"),d("Please tell us how you heard about us.");return}l("submitting"),d("");try{await st.functions.invoke("requestCallback",{...i,sources:p.sources,referral_name:p.referral_name,event_name:p.event_name}),l("success"),$i("generate_lead",{lead_source:"callback_consultation",form_name:"request_callback",page_path:window.location.pathname,currency:"USD"})}catch(x){l("error"),d(((v=(y=x==null?void 0:x.response)==null?void 0:y.data)==null?void 0:v.error)||(x==null?void 0:x.message)||"Something went wrong. Please try calling the lab instead.")}};return a==="success"?s.jsxs("div",{className:"rounded-2xl border border-pistachio/40 bg-pistachio/10 p-6 text-center max-w-xl",children:[s.jsx(au,{className:"mx-auto mb-2 text-pistachio",size:28}),s.jsx("p",{className:"text-dark-blue font-inter font-semibold text-sm mb-1",children:"Request received"}),s.jsx("p",{className:"text-dark-blue/60 font-inter text-xs leading-relaxed",children:t?"Our team has been alerted and will call you back.":"A podiatrist has been alerted and will call you back."})]}):s.jsxs("div",{className:"space-y-5 max-w-xl",children:[s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsxs("a",{href:`tel:${xue}`,className:"inline-flex items-center justify-center gap-2 px-6 py-3 bg-dark-blue text-white font-inter font-semibold text-sm rounded-full hover:bg-pistachio hover:text-dark-blue transition-colors w-full sm:w-fit",children:[s.jsx(Wh,{size:16})," Call the Lab · ",vue]}),s.jsx("p",{className:"text-dark-blue/45 font-inter text-xs leading-relaxed max-w-md",children:t?"You'll reach our US lab and front-of-house team — they'll arrange for the right person to call you back.":"You'll reach the lab, not a clinician. The team there will arrange for a podiatrist to call you back."})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"h-px bg-dark-blue/10 flex-grow"}),s.jsx("span",{className:"text-dark-blue/40 font-inter text-[11px] uppercase tracking-[0.2em]",children:"or"}),s.jsx("div",{className:"h-px bg-dark-blue/10 flex-grow"})]}),n?s.jsxs("form",{onSubmit:g,onFocusCapture:m,className:"rounded-2xl border border-dark-blue/12 bg-pale-blue/40 p-5 space-y-4",children:[s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[s.jsx("input",{required:!0,placeholder:"Your name *",value:i.name,onChange:b=>o({...i,name:b.target.value}),className:"w-full px-3.5 py-3 text-sm rounded-lg border border-dark-blue/12 bg-white text-dark-blue placeholder:text-dark-blue/40 focus:outline-none focus:ring-2 focus:ring-pistachio font-inter"}),s.jsx("input",{placeholder:"Clinic / practice",value:i.clinic,onChange:b=>o({...i,clinic:b.target.value}),className:"w-full px-3.5 py-3 text-sm rounded-lg border border-dark-blue/12 bg-white text-dark-blue placeholder:text-dark-blue/40 focus:outline-none focus:ring-2 focus:ring-pistachio font-inter"})]}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[s.jsx("input",{required:!0,placeholder:"Best number to reach you *",value:i.phone,onChange:b=>o({...i,phone:b.target.value}),className:"w-full px-3.5 py-3 text-sm rounded-lg border border-dark-blue/12 bg-white text-dark-blue placeholder:text-dark-blue/40 focus:outline-none focus:ring-2 focus:ring-pistachio font-inter"}),s.jsx("input",{placeholder:"Best time to call",value:i.preferred_time,onChange:b=>o({...i,preferred_time:b.target.value}),className:"w-full px-3.5 py-3 text-sm rounded-lg border border-dark-blue/12 bg-white text-dark-blue placeholder:text-dark-blue/40 focus:outline-none focus:ring-2 focus:ring-pistachio font-inter"})]}),s.jsx("textarea",{placeholder:t?"Brief context for the team (optional)":"Brief context for the podiatrist (optional)",value:i.message,onChange:b=>o({...i,message:b.target.value}),rows:3,className:"w-full px-3.5 py-3 text-sm rounded-lg border border-dark-blue/12 bg-white text-dark-blue placeholder:text-dark-blue/40 focus:outline-none focus:ring-2 focus:ring-pistachio font-inter"}),s.jsx(Gu,{value:p,onChange:f,required:!0}),a==="error"&&s.jsxs("div",{className:"flex items-start gap-2 text-sm text-red-700 bg-red-50 p-3 rounded-lg",children:[s.jsx(Ky,{size:16,className:"mt-0.5 shrink-0"}),s.jsx("span",{className:"font-inter",children:c})]}),s.jsx("button",{type:"submit",disabled:a==="submitting",className:"inline-flex items-center justify-center gap-2 w-full py-3 px-5 bg-dark-blue text-white font-inter font-semibold text-sm rounded-full hover:bg-pistachio hover:text-dark-blue transition-colors disabled:opacity-60",children:a==="submitting"?s.jsxs(s.Fragment,{children:[s.jsx(pi,{size:15,className:"animate-spin"})," Sending…"]}):s.jsxs(s.Fragment,{children:["Send request ",s.jsx(ot,{size:15})]})})]}):s.jsxs("button",{type:"button",onClick:()=>r(!0),className:"inline-flex items-center justify-center gap-2 px-6 py-3 border-2 border-pistachio text-dark-blue font-inter font-semibold text-sm rounded-full hover:bg-pistachio/15 transition-colors w-full sm:w-fit",children:[t?"Request a callback from our team":"Request a callback from a podiatrist"," ",s.jsx(ot,{size:16})]})]})}const Vq=[{q:"How do I open an account with iOrthotics?",a:"Create a new account on our iOrder platform using the button below. You will receive an email that activates your account. Once your account is active, book a live onboarding session and we will get you moving.",hasOptions:!0},{q:"Can I talk to a podiatrist about a complex prescription?",a:"That’s what we’re here for! To make it as easy as possible for you so that you can focus on providing excellent patient care. Our in-house podiatrists are available to discu
586ss any script — an unusual presentation, device selection, or a patient who has not responded to a previous orthosis. You are speaking with a clinician who understands both the biomechanics and what our manufacturing can actually do.",hasCallback:!0},{q:"What do I need to send you — a scan, a cast, or a foam box?",a:"Whilst we accept all casting methods, we will scan your foam box impressions and plaster casts once we receive them in the lab. To improve your patient’s turnaround times and to reduce shipping costs, we would be happy to help you learn how to digitise your process end to end. Simply book a call with Patrick Morrison, Podiatrist & Business Development lead to learn how we can help you.",hasPatrickBook:!0},{q:"Do you make custom AFOs and bracing?",a:"We sure do — in fact it’s one of the things that we’re best known for in Australia, and now we’re bringing that to the States. Our orthotists design, manufacture and hand finish all of our iO Brace range. Because orthotists and podiatrists sit in the same team, a complex bracing script gets both perspectives — biomechanical intent and engineering feasibility — before anything is manufactured."},{q:"How long will my patient wait?",a:"You can see our live lead times on our home page. These times are calculated from the moment we receive your digital scan until the moment they leave our lab all hand finished and packaged ready for your patient. You can request express service which reduces lead times to ~3 days for our orthotics. If you need a device quickly, put a note on your order. We’re here to help! We want to see your patient back on their feet as much as you do."},{q:"What happens if a device needs adjusting?",a:"Talk to us. We want to help you solve the issue as quickly as we can for your patient. Because every device is manufactured from a digital file, we can revisit the original design rather than start again — and a podiatrist will work through the adjustment with you. Tell us what you are seeing in the patient and we will tell you what we can change."}],bue={"@context":"https://schema.org","@type":"FAQPage",mainEntity:Vq.map(e=>({"@type":"Question",name:e.q,acceptedAnswer:{"@type":"Answer",text:e.a}}))};function wue({faq:e,isOpen:t,onToggle:n,id:r}){const i=eF();return s.jsxs("div",{className:"border-b border-dark-blue/10",children:[s.jsx("h3",{children:s.jsxs("button",{type:"button",onClick:n,"aria-expanded":t,"aria-controls":`faq-panel-${r}`,id:`faq-trigger-${r}`,className:"group w-full flex items-start justify-between gap-6 py-6 px-5 -mx-5 text-left rounded-xl transition-all duration-200 hover:bg-pale-blue/40 hover:-translate-y-0.5 focus:outline-none focus-visible:ring-2 focus-visible:ring-dark-blue focus-visible:ring-offset-4 focus-visible:ring-offset-white",children:[s.jsxs("span",{className:"flex items-start gap-3",children:[s.jsx("span",{className:"inline-flex items-center justify-center w-7 h-7 rounded-full bg-pistachio/20 text-pistachio shrink-0 mt-0.5 transition-colors duration-200 group-hover:bg-pistachio/30",children:s.jsx(WV,{size:16,strokeWidth:2.25})}),s.jsx("span",{className:`font-inter font-semibold text-lg lg:text-xl leading-snug transition-colors duration-200 ${t?"text-dark-blue":"text-dark-blue/75 group-hover:text-dark-blue"}`,children:e.q})]}),s.jsxs("span",{className:"relative mt-2 w-4 h-4 shrink-0","aria-hidden":"true",children:[s.jsx("span",{className:"absolute top-1/2 left-0 w-4 h-px bg-dark-blue group-hover:bg-pistachio -translate-y-1/2 transition-colors duration-200"}),s.jsx("span",{className:`absolute top-1/2 left-0 w-4 h-px bg-dark-blue group-hover:bg-pistachio -translate-y-1/2 transition-all duration-300 ease-out ${t?"rotate-0":"rotate-90"}`})]})]})}),s.jsx(yr,{initial:!1,children:t&&s.jsxs(lt.div,{id:`faq-panel-${r}`,role:"region","aria-labelledby":`faq-trigger-${r}`,initial:i?!1:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:i?{opacity:0}:{height:0,opacity:0},transition:{duration:.28,ease:[.22,1,.36,1]},className:"overflow-hidden",children:[s.jsx("p",{className:"text-dark-blue font-inter font-light text-base leading-relaxed pb-6 pr-10 max-w-2xl",children:e.a}),e.hasCallback&&s.jsx("div",{className:"pb-7 pr-2",children:s.jsx(Hq,{})}),e.hasPatrickBook&&s.jsx("div",{className:"pb-7 pr-2",children:s.jsxs("a",{href:"https://calendly.com/iorthotics",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-3 pl-1.5 pr-5 py-1.5 rounded-full bg-dark-blue text-white font-inter font-semibold text-sm hover:bg-pistachio hover:text-dark-blue transition-colors",children:[s.jsx("img",{src:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/9c24ad883_FB_MeetTheTeam-PatMorrison.png",alt:"Patrick Morrison",className:"w-10 h-10 rounded-full object-cover object-top"}),"Book with Patrick ",s.jsx(ot,{size:16})]})}),e.hasOptions&&s.jsxs("div",{className:"pb-7 pr-2 max-w-3xl",children:[s.jsxs("a",{href:Nn,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-2 px-6 py-3 bg-pistachio text-dark-blue font-inter font-bold text-sm rounded-full hover:bg-pistachio/90 transition-colors",children:["Create an Account ",s.jsx(ot,{size:16})]}),s.jsx("p",{className:"mt-7 mb-3 text-dark-blue/60 font-inter text-sm",children:s.jsx("span",{className:"font-semibold text-dark-blue/80",children:"The best way to begin:"})}),s.jsx("div",{className:"max-w-md",children:s.jsxs("div",{className:"flex flex-col rounded-2xl border border-dark-blue/12 bg-pale-blue/40 p-5 hover:border-pistachio transition-colors",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[s.jsx("img",{src:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/9c24ad883_FB_MeetTheTeam-PatMorrison.png",alt:"Patrick Morrison",className:"w-10 h-10 rounded-full object-cover object-top"}),s.jsx("span",{className:"text-pistachio text-[11px] font-inter font-semibold uppercase tracking-[0.2em]",children:"Guided onboarding"})]}),s.jsx("p",{className:"text-dark-blue font-cal text-lg leading-tight mb-1",children:"Book a live online onboarding session"}),s.jsx("p",{className:"text-dark-blue/50 font-inter text-xs leading-snug mb-3",children:"Patrick Morrison · Podiatrist, Business Development"}),s.jsx("p",{className:"text-dark-blue/60 font-inter text-sm leading-relaxed mb-4 flex-grow",children:"A guided 1-on-1 where Patrick takes you through onboarding, scanning, ordering a custom pair of orthotics and your first few prescriptions."}),s.jsxs("a",{href:"https://calendly.com/iorthotics",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-2 self
586-start px-5 py-2.5 bg-dark-blue text-white font-inter font-semibold text-sm rounded-full hover:bg-pistachio hover:text-dark-blue transition-colors",children:["Book a meeting ",s.jsx(ot,{size:15})]})]})})]})]},"panel")})]})}function _ue(){const[e,t]=P.useState(0);return s.jsxs("section",{className:"bg-white py-20 lg:py-28",children:[s.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(bue)}}),s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-12 lg:gap-16",children:[s.jsx(_e,{className:"lg:col-span-4",children:s.jsxs("div",{className:"lg:sticky lg:top-28",children:[s.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[s.jsx("div",{className:"w-12 h-px bg-pistachio"}),s.jsx("p",{className:"text-dark-blue/50 font-inter text-xs font-semibold uppercase tracking-[0.3em]",children:"Practitioner FAQ"})]}),s.jsx("h2",{className:"text-dark-blue font-cal leading-tight mb-5",style:{fontSize:"clamp(26px, 3vw, 44px)"},children:"Working with us."}),s.jsx("p",{className:"text-gradient-shimmer-dark font-inter font-light text-base leading-relaxed mb-8 max-w-sm",children:"The questions clinicians ask us most, answered plainly. If yours isn't here, a podiatrist will take the call."}),s.jsxs("a",{href:Nn,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-dark-blue font-inter font-bold text-base border-b-2 border-pistachio pb-1 hover:gap-3 transition-all duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-dark-blue focus-visible:ring-offset-4",children:["Talk to our clinical team ",s.jsx(ot,{size:18})]}),s.jsx("div",{className:"mt-10 rounded-2xl overflow-hidden shadow-lg aspect-[4/5]",children:s.jsx("img",{src:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/1d907f82d_TeamsCall.png",alt:"An iOrthotics podiatrist joining an onboarding consultation call",loading:"lazy",className:"w-full h-full object-cover object-top"})})]})}),s.jsx("div",{className:"lg:col-span-8 lg:pt-2",children:s.jsx("div",{className:"border-t border-dark-blue/10",children:Vq.map((n,r)=>s.jsx(wue,{id:r,faq:n,isOpen:e===r,onToggle:()=>t(e===r?-1:r)},n.q))})})]})})]})}const Sue=[{n:1,title:"Does Scanner Choice Matter for the Design of Foot Orthosis?",authors:[{name:"Chhikara K"},{name:"Suresh S"},{name:"Morrison S",io:!0},{name:"Hartley D",io:!0},{name:"Evans K"},{name:"et al."}],venue:"Sensors (Basel), 2025; 25(3):869",badges:["Peer-reviewed","Open Access"],url:"https://pubmed.ncbi.nlm.nih.gov/39943509/"},{n:2,title:"Multimodal Feature-Level Fusion CBAM U-Net for Static Plantar Pressure Prediction Using Plantar Geometry and Sparse Anatomical Landmarks",authors:[{name:"Wang C"},{name:"Evans K"},{name:"Hartley D",io:!0},{name:"Morrison S",io:!0},{name:"McDonald S"},{name:"et al."}],venue:"Sensors, 2026; 26(13):4143",badges:["Peer-reviewed","Open Access"],url:"https://www.mdpi.com/1424-8220/26/13/4143"},{n:3,title:"Is palpation essential in the digital era of orthotic designing?",authors:[{name:"Chhikara K"},{name:"Morrison S",io:!0},{name:"Hartley D",io:!0},{name:"et al."}],venue:"Frontiers in Bioengineering and Biotechnology, 2026",badges:["Peer-reviewed","Open Access"],url:"https://pubmed.ncbi.nlm.nih.gov/41800176/"},{n:4,title:"A Review of Gait Analysis Using Gyroscopes and Inertial Measurement Units",authors:[{name:"Lin S"},{name:"Evans K"},{name:"Hartley D",io:!0},{name:"Morrison S",io:!0},{name:"McDonald S"},{name:"Veidt M"},{name:"Wang G"}],venue:"Sensors (Basel), 2025; 25(11):3481",badges:["Peer-reviewed","Open Access"],url:"https://www.mdpi.com/1424-8220/25/11/3481"}],jue={"Open Access":"bg-pistachio/15 text-pistachio border-pistachio/30","Peer-reviewed":"bg-mid-blue/15 text-mid-blue border-mid-blue/30",Preprint:"bg-dark-blue/10 text-dark-blue/60 border-dark-blue/20"};function Nue(){return s.jsx(_e,{delay:.1,children:s.jsxs("div",{className:"mt-10 pt-8 border-t border-dark-blue/10",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-5",children:[s.jsx(CV,{size:18,className:"text-pistachio"}),s.jsx("p",{className:"text-dark-blue/80 text-xs font-inter font-semibold uppercase tracking-[0.2em]",children:"Peer-reviewed research, sponsored by iOrthotics"})]}),s.jsx("p",{className:"text-dark-blue/50 text-sm leading-relaxed mb-6 [font-family:'Inter',_ui-sans-serif,_system-ui,_sans-serif] font-light",children:"iOrthotics sponsors PhD research in partnership with QUT. iOrthotics clinicians Dean Hartley and Scott Morrison are named authors. Click any title to read the full paper."}),s.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:Sue.map(e=>s.jsxs("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"group flex flex-col bg-[#e0ebf1] hover:bg-[#d6e6ee] rounded-xl px-4 py-3 border border-[#708a99]/60 hover:border-pistachio transition-all duration-200",children:[s.jsxs("div",{className:"flex items-center justify-between gap-2 mb-2.5",children:[s.jsx("span",{className:"flex items-center justify-center w-7 h-7 text-xs font-bold rounded-full bg-dark-blue text-white shrink-0",children:e.n}),s.jsx("div",{className:"flex flex-wrap gap-1.5 justify-end",children:e.badges.map(t=>s.jsx("span",{className:`text-[10px] font-inter font-semibold uppercase tracking-wider px-2 py-0.5 rounded-full border ${jue[t]}`,children:t},t))})]}),s.jsx("h4",{className:"text-[#000000] font-inter font-bold text-[13px] leading-snug mb-1.5",children:e.title}),s.jsx("p",{className:"text-[#7f7f7f] text-xs font-inter italic mb-1.5",children:e.venue}),s.jsx("p",{className:"text-[#7f7f7f] text-[11px] font-inter leading-snug line-clamp-2 mb-3",children:e.authors.map((t,n)=>s.jsxs("span",{children:[n>0&&", ",s.jsx("span",{className:t.io?"text-dark-blue font-semibold":"",children:t.name})]},n))}),s.jsx("span",{className:"mt-auto inline-flex items-center gap-1 text-[#82914d] text-xs font-inter font-semibold group-hover:gap-1.5 transition-all",children:"Read paper →"})]},e.n))})]})})}function kue({src:e,className:t=""}){const n=P.useRef(null);return s.jsx("div",{className:`relative rounded-2xl overflow-hidden border border-white/10 shadow-2xl ${t}`,children:s.jsx("video",{ref:n,src:e,autoPlay:!0,muted:!0,loop:!0,playsInl
586ine:!0,controls:!0,preload:"auto",className:"w-full"})})}const Oue=[{c1:"#A4D17E",c2:"#CDE9B5",size:520,x:"-12%",y:"-30%",d:16,delay:0,o:.5},{c1:"#5A7D9E",c2:"#9FB9D2",size:460,x:"62%",y:"-10%",d:20,delay:-4,o:.45},{c1:"#A4D17E",c2:"#ECECF3",size:480,x:"18%",y:"20%",d:24,delay:-8,o:.4},{c1:"#5A7D9E",c2:"#122048",size:540,x:"70%",y:"40%",d:18,delay:-6,o:.3}];function Eue(){const e=eF();return s.jsxs("div",{className:"relative overflow-hidden bg-white border-t border-dark-blue/10 py-20 lg:py-24 text-center px-6",children:[s.jsx("div",{className:"absolute inset-0",children:Oue.map((t,n)=>s.jsx(lt.div,{className:"absolute rounded-full blur-3xl",style:{width:t.size,height:t.size,left:t.x,top:t.y,opacity:t.o,background:`radial-gradient(circle at 30% 30%, ${t.c1}, ${t.c2} 70%)`},animate:e?void 0:{x:[0,80,-50,0],y:[0,-60,50,0],scale:[1,1.2,.9,1]},transition:{duration:t.d,repeat:1/0,ease:"easeInOut",delay:t.delay}},n))}),s.jsx("div",{className:"absolute inset-0 opacity-[0.05]",style:{backgroundImage:"linear-gradient(#122048 1px, transparent 1px), linear-gradient(90deg, #122048 1px, transparent 1px)",backgroundSize:"48px 48px"}}),s.jsx("div",{className:"relative z-10 max-w-2xl mx-auto",children:s.jsxs(lt.div,{initial:e?{}:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,ease:[.22,1,.36,1]},children:[s.jsxs("a",{href:Nn,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-10 py-4 bg-dark-blue text-white font-inter font-bold text-lg rounded-full hover:bg-pistachio hover:text-dark-blue transition-colors focus:outline-none focus:ring-2 focus:ring-dark-blue focus:ring-offset-2 shadow-lg shadow-dark-blue/20",children:["Partner with Us ",s.jsx(ot,{size:18})]}),s.jsx("p",{className:"text-dark-blue/60 text-sm mt-6 [font-family:'Inter',_ui-sans-serif,_system-ui,_sans-serif] font-light",children:"By Clinicians. For Clinicians. Patient First Outcomes is our Priority. Delivered in 5 days."})]})})]})}const CR=[{quote:"The quick turnaround time and the ability to reproduce the same device make it seamless for me and my patients.",name:"Dr Michael J. Chin, DPM, FACFAS",title:"Podiatric Physician & Surgeon · The Running Institute, Chicago",img:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/8abaece22_Dr-Chin-Landscape.webp"},{quote:"iOrthotics delivers the consistency and quality my patients deserve, every single time.",name:"Dr Robert M. Conenello, DPM",title:"Podiatric Sports Medicine · Orangetown Podiatry, NY · Past President AAPSM",img:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/760e374bb_DrRobertConenello.webp"},{quote:"The development and evolution of 3D-printed orthotics has allowed me to expand my treatment options for patients whose footwear requirements may not be suitable for traditional EVA orthotics. This has given me the confidence to manage the full spectrum of musculoskeletal conditions without being limited by footwear constraints, ensuring more patients have access to effective, customised orthotic therapy.",name:"Andrew Pratt | B.Hlth.Sc (Pod)",title:"Podiatrist · Clinic Partner · Regional Partner",img:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/718d8a6eb_AndrewPratt.jpeg"},{quote:"The iOrthotics brace range is an innovative new solution for complex lower limb cases — clinical precision without compromise.",name:"Dr Robert M. Conenello, DPM",title:"Podiatric Sports Medicine · Orangetown Podiatry, NY · Past President AAPSM",img:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/760e374bb_DrRobertConenello.webp"},{quote:"We have already made several thousand pairs through iOrthotics' Brisbane hub, so we know the amazing quality and substantial savings 3D printing delivers to our lab.",name:"Séamus Kennedy, BEng (Mech), CPed, FAAOP(A)",title:"Hersco Ortho Labs",img:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/85be47900_SeamusHighQuality.jpeg"}],Pue=[...CR,...CR];function Aue({e}){return s.jsxs("div",{className:"flex-shrink-0 w-[300px] sm:w-[380px] rounded-2xl border border-white/15 bg-white/5 p-6 flex flex-col mx-3",children:[s.jsx(pN,{size:24,className:"text-pistachio mb-3 opacity-80"}),s.jsxs("p",{className:"text-white/90 font-inter text-sm leading-relaxed flex-grow",children:["“",e.quote,"”"]}),s.jsxs("div",{className:"flex items-center gap-3 mt-5 pt-4 border-t border-white/15",children:[s.jsx("img",{src:e.img,alt:e.name,loading:"lazy",className:"w-11 h-11 rounded-full object-cover object-top shrink-0"}),s.jsxs("div",{children:[s.jsx("p",{className:"text-white font-inter font-bold text-xs tracking-wide leading-tight",children:e.name}),s.jsx("p",{className:"text-white/50 font-inter text-[11px] leading-tight mt-0.5",children:e.title})]})]})]})}function Tue(){return s.jsxs("section",{className:"bg-dark-blue py-6 lg:py-8 overflow-hidden",children:[s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsxs(_e,{className:"text-center mb-6",children:[s.jsxs("div",{className:"flex items-center justify-center gap-4 mb-4",children:[s.jsx("div",{className:"w-10 h-px bg-pistachio/60"}),s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em]",children:"In their words"}),s.jsx("div",{className:"w-10 h-px bg-pistachio/60"})]}),s.jsx("h2",{className:"text-white font-cal leading-tight",style:{fontSize:"clamp(22px, 2.4vw, 34px)"},children:"Trusted by clinicians."})]})}),s.jsxs("div",{className:"relative",children:[s.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 w-16 sm:w-32 bg-gradient-to-r from-dark-blue to-transparent z-10"}),s.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 w-16 sm:w-32 bg-gradient-to-l from-dark-blue to-transparent z-10"}),s.jsx("div",{className:"flex w-max animate-[marquee_32s_linear_infinite] hover:[animation-play-state:paused]",children:Pue.map((e,t)=>s.jsx(Aue,{e},t))})]})]})}const Cue=[{icon:Vh,lead:"Printed in Long Island City"},{icon:BL,lead:"An in-house multidisciplinary team"},{icon:PL,lead:"End-to-end digital manufacturing"},{icon:vW,lead:"Materials we own and test"},{icon:WW,lead:"Research-backed practice"},{icon:EL,lead:"Reliable 5-day turnaround"}];function Rue(){return s.jsxs("div",{className:"bg-white",children:[s.jsx(At,{}),s.jsxs("section",{className:"w-full min-h-[90vh] flex flex-col lg:flex-row overflow-hidden",children:[s.jsx("div",{className:"relative w-full lg:w-[42%] bg-mid-blue flex flex-col justify-center px-10 lg:px-16 xl:px-24 py-32 lg:py-0",children:s.jsxs(_e,{delay:.1,className:"text-center lg:text-left",children:[s.jsxs("div",{className:"flex items-center gap-4 mb-8 justify-center lg:justify-start",children:[s.jsx("div",{className:"w-12 h-px bg-pistachio/60"}),s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em]",children:"Our Clinical Team"}),s.jsx("div",{className:"w-12 h-px bg-pistachio/60"})]}),s.jsxs("h1",{className:"text-white font-cal leading-tight mb-6",style:{fontSize:"clamp(36px, 4.5vw, 64px)"},children:["By Clinicians.",s.jsx("br",{}),"For Clinicians."]}),s.jsxs("p",{className:"text-white font-light mb-10 max-w-md leading-relaxed font-inter",style:{fontSize:"clamp(20px, 1.7vw, 28px)"},children:["Podiatrists, orthotists, engineers and designers under one roof — so your prescription is shaped by ",s.jsx("span",{className:"text-gradient-shimmer",children:"clinical judgment and engineering precision"})," in the same conversation, never handed between vendors."]}),s.jsxs("a",{href:"https://portal.performlab.com/practitioner/register/signup",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-2 px-8 py-3.5 bg-pistachio text-dark-blue font-inter font-bold text-base rounded-full hover:bg-pistachio/90 transition-all duration-200",children:["Partner with Us ",s.jsx(ot,{size:18})]})]})}),s.jsx(_e,{delay:.3,className:"relative w-full lg:w-[58%] min-h-[50vh] lg:min-h-[90vh] overflow-hidden bg-[#f5f7f9]",children:s.jsx("img",{src:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/9028930b0_CliniciansHeroBlock.png",alt:"iOrthotics clinical team standing in the print room",className:"absolute inset-0 w-full h-full object-cover",style:{objectPosition:"top center"}})})]}),s.jsx(Tue,{}),s.jsx("section",{className:"bg-white pt-10 lg:pt-14 pb-20 lg:pb-28",children:s.jsxs("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:[s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 items-center",children:[s.jsxs(_e,{className:"text-center lg:text-left",children:[s.jsx("h2",{className:"text-dark-blue font-cal leading-tight mb-6",style:{fontSize:"clamp(26px, 3vw, 44px)"},children:"Podiatrists, orthotists, engineers and designers under one roof."}),s.jsxs("p",{className:"text-dark-blue text-xl lg:text-[22px] leading-relaxed mb-6 font-inter font-light text-left",children:["Every iOrthotics prescription passes through an ",s.jsx("span",{className:"text-gradient-shimmer-dark",children:"in-house multidisciplinary team"}),". With podiatrists available to review the clinical intent, orthotists to design lower
586-limb devices, and designers who help translate the script into a ",s.jsx("span",{className:"text-gradient-shimmer-dark",children:"manufacturable digital design"}),". You get ",s.jsx("span",{className:"text-gradient-shimmer-dark",children:"clinical reasoning and engineering precision"}),s.jsx("sup",{children:"1"})," from one team."]}),s.jsxs("p",{className:"text-dark-blue text-xl lg:text-[22px] leading-relaxed font-inter font-light text-left",children:["That team is backed by both in-house engineers and developers as well as ",s.jsx("span",{className:"text-gradient-shimmer-dark",children:"research and development partnerships"}),". Alongside the University of Queensland, HP and the Queensland University of Technology, we have developed ",s.jsx("span",{className:"text-gradient-shimmer-dark",children:"industry leading, pressure tested materials"}),s.jsx("sup",{children:"2"})," and are continually innovating in new ways — from the straps on our AFOs to ",s.jsx("span",{className:"text-gradient-shimmer-dark",children:"more sustainable materials"})," that stand up to applications of heat for those in-clinic adjustments — what we recommend to you is ",s.jsx("span",{className:"text-gradient-shimmer-dark",children:"grounded in evidence, not assumption"}),"."]})]}),s.jsx(_e,{delay:.2,className:"lg:order-first",children:s.jsx("div",{className:"rounded-3xl overflow-hidden shadow-2xl",children:s.jsxs("div",{className:"relative",children:[s.jsx("img",{src:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/a724bd539_DeanElishaLookingatScreen.png",alt:"An iOrthotics podiatrist and a partner practitioner reviewing a 3D foot scan together",loading:"lazy",className:"w-full object-cover",style:{filter:"saturate(0.82) brightness(1.04) contrast(1.04) hue-rotate(-6deg)"}}),s.jsx("div",{className:"absolute inset-0 bg-[#9fc4e8] mix-blend-soft-light opacity-40 pointer-events-none"})]})})})]}),s.jsx("div",{className:"mt-16",children:s.jsx(Nue,{})})]})}),s.jsx(Fk,{}),s.jsx(_ue,{}),s.jsx("section",{className:"bg-mid-blue py-20 lg:py-28",children:s.jsxs("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:[s.jsxs(_e,{className:"text-center mb-12",children:[s.jsx("h2",{className:"text-white font-cal leading-tight mb-5",style:{fontSize:"clamp(26px, 3vw, 44px)"},children:"Why iOrthotics?"}),s.jsx("p",{className:"text-gradient-shimmer font-inter font-light max-w-3xl mx-auto leading-snug",style:{fontSize:"clamp(28px, 2.6vw, 44px)"},children:"Together, we can lead the way."})]}),s.jsx(_e,{className:"mb-16",children:s.jsx("div",{className:"max-w-4xl mx-auto",children:s.jsx(kue,{src:"https://media.base44.com/videos/public/6a3e0189c262d2ccdbdde315/bd6537c5c_20222i-OrthoticsTotaltransparencyV4240p.mp4",poster:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/ea180b752_generated_image.png"})})}),s.jsx(Dn,{className:"grid grid-cols-2 md:grid-cols-3 gap-x-6 gap-y-10 max-w-4xl mx-auto",children:Cue.map(e=>{const t=e.icon;return s.jsx(Ln,{children:s.jsxs("div",{className:"flex flex-col items-center text-center",children:[s.jsx("span",{className:"inline-flex items-center justify-center w-14 h-14 rounded-full bg-white/10 text-pistachio mb-4",children:s.jsx(t,{size:26,strokeWidth:1.75})}),s.jsx("p",{className:"text-white text-base leading-tight max-w-[14rem] font-inter font-light",children:e.lead})]})},e.lead)})})]})}),s.jsx("section",{className:"bg-white pt-4 pb-10",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsx(ap,{})})}),s.jsx(Eue,{}),s.jsx(Tt,{})]})}const Mue="modulepreload",Iue=function(e){return"/"+e},RR={},Due=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let a=function(d){return Promise.all(d.map(p=>Promise.resolve(p).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),c=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));i=a(n.map(d=>{if(d=Iue(d),d in RR)return;RR[d]=!0;const p=d.endsWith(".css"),f=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${f}`))return;
586const m=document.createElement("link");if(m.rel=p?"stylesheet":Mue,p||(m.as="script"),m.crossOrigin="",m.href=d,c&&m.setAttribute("nonce",c),document.head.appendChild(m),p)return new Promise((g,b)=>{m.addEventListener("load",g),m.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${d}`)))})}))}function o(a){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=a,window.dispatchEvent(l),!l.defaultPrevented)throw a}return i.then(a=>{for(const l of a||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})},MR=[{name:"Partner 1",src:null},{name:"Partner 2",src:null},{name:"Partner 3",src:null},{name:"Partner 4",src:null},{name:"Partner 5",src:null},{name:"Partner 6",src:null},{name:"Partner 7",src:null},{name:"Partner 8",src:null}],Lue=[...MR,...MR];function Bue({title:e="Trusted by leading clinics across Australia"}){return s.jsxs("section",{className:"py-14 bg-white border-t border-b border-dark-blue/8 overflow-hidden",children:[s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10 mb-8",children:s.jsx("p",{className:"text-center text-dark-blue/40 font-inter text-sm font-medium uppercase tracking-[0.2em]",children:e})}),s.jsxs("div",{className:"relative",children:[s.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-24 bg-gradient-to-r from-white to-transparent z-10 pointer-events-none"}),s.jsx("div",{className:"absolute right-0 top-0 bottom-0 w-24 bg-gradient-to-l from-white to-transparent z-10 pointer-events-none"}),s.jsx(lt.div,{className:"flex items-center gap-12",animate:{x:["0%","-50%"]},transition:{duration:28,repeat:1/0,ease:"linear"},style:{width:"max-content"},children:Lue.map((t,n)=>s.jsx("div",{className:"flex-shrink-0 w-36 h-16 flex items-center justify-center",children:t.src?s.jsx("img",{src:t.src,alt:t.name,className:"max-h-12 max-w-full w-auto object-contain grayscale hover:grayscale-0 opacity-50 hover:opacity-100 transition-all duration-300"}):s.jsx("div",{className:"w-28 h-10 rounded-lg bg-dark-blue/8 flex items-center justify-center",children:s.jsx("span",{className:"text-dark-blue/30 font-inter text-xs font-semibold",children:t.name})})},n))})]})]})}function $ue(){const[e,t]=P.useState(null),[n,r]=P.useState(""),i=n.length>=3?eR.filter(o=>o.postcode.startsWith(n)||o.state.toLowerCase().includes(n.toLowerCase())):eR;return P.useEffect(()=>{Due(()=>import("./DistributorMapLeaflet-CyE2JaBh.js"),__vite__mapDeps([0,1])).then(o=>t(()=>o.default))},[]),s.jsxs("div",{className:"bg-white",children:[s.jsx(At,{}),s.jsx("section",{className:"bg-dark-blue pt-40 pb-24",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsxs(_e,{className:"text-center lg:text-left",children:[s.jsx("p",{className:"text-pistachio text-sm font-inter font-semibold uppercase tracking-[0.3em] mb-4",children:"Find a Partner"}),s.jsxs("h1",{className:"text-white font-cal leading-tight mb-6",style:{fontSize:"clamp(30px, 4vw, 56px)"},children:["Partners Across",s.jsx("br",{}),"Australia."]}),s.jsx("p",{className:"text-gradient-shimmer font-inter font-light max-w-2xl",style:{fontSize:"clamp(22px, 1.9vw, 32px)"},children:"Find your nearest iOrthotics partner clinic and get access to Australia's most advanced orthotic devices."})]})})}),s.jsx("section",{className:"bg-white py-20 lg:py-28",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-8",children:[s.jsx("div",{className:"lg:col-span-1",children:s.jsxs("div",{className:"bg-pale-blue rounded-2xl p-6 sticky top-28",children:[s.jsx("h2",{className:"text-dark-blue font-inter font-bold text-lg mb-4",children:"Find a Clinic"}),s.jsxs("div",{className:"relative mb-6",children:[s.jsx(NG,{size:18,className:"absolute left-3 top-1/2 -translate-y-1/2 text-dark-blue/40"}),s.jsx("input",{type:"text",placeholder:"Postcode or state...",value:n,onChange:o=>r(o.target.value),className:"w-full pl-10 pr-4 py-3 rounded-xl border border-dark-blue/10 bg-white font-inter text-dark-blue text-sm focus:outline-none focus:ring-2 focus:ring-pistachio"})]}),s.jsxs("p",{className:"text-dark-blue/50 font-inter text-xs mb-4",children:[i.length," partner",i.length!==1?"s":""," found"]}
586),s.jsxs("div",{className:"space-y-3 max-h-[60vh] overflow-y-auto",children:[i.map(o=>s.jsxs("div",{className:"flex items-start gap-3 p-3 bg-white rounded-xl border border-dark-blue/5 hover:border-pistachio/40 transition-colors cursor-pointer",children:[s.jsx(Vh,{size:16,className:"text-pistachio mt-0.5 flex-shrink-0"}),s.jsxs("div",{children:[s.jsx("p",{className:"text-dark-blue font-inter font-semibold text-sm",children:o.name}),s.jsxs("p",{className:"text-dark-blue/50 font-inter text-xs",children:[o.state," · ",o.postcode]})]})]},o.id)),i.length===0&&s.jsx("p",{className:"text-dark-blue/50 font-inter text-sm text-center py-8",children:"No partners found. Try a different postcode."})]})]})}),s.jsx("div",{className:"lg:col-span-3 h-[600px] rounded-2xl overflow-hidden border border-dark-blue/10 shadow-xl",children:e?s.jsx(e,{markers:i}):s.jsx("div",{className:"w-full h-full bg-pale-blue flex items-center justify-center",children:s.jsx("div",{className:"w-10 h-10 border-4 border-mid-blue border-t-pistachio rounded-full animate-spin"})})})]})})}),s.jsx(Bue,{title:"Our partner clinics across Australia"}),s.jsx(Tt,{})]})}function Fue(e,t){switch(e.type){case"intro":return s.jsxs("div",{className:"mb-4",children:[e.heading&&s.jsx("p",{className:"text-dark-blue font-inter font-semibold text-sm mb-2",children:e.heading}),e.body&&s.jsx("p",{className:"text-dark-blue/70 font-inter text-sm leading-relaxed",children:e.body})]},t);case"specs":return s.jsxs("div",{className:"mb-4",children:[e.heading&&s.jsxs("p",{className:"text-dark-blue font-inter font-semibold text-sm mb-2",children:[e.heading,":"]}),s.jsx("ul",{className:"space-y-1",children:e.rows.map((n,r)=>s.jsxs("li",{className:"flex items-start gap-2 text-dark-blue/70 font-inter text-sm",children:[s.jsx("span",{className:"mt-1.5 w-1.5 h-1.5 rounded-sm bg-dark-blue/50 flex-shrink-0"}),s.jsx("span",{children:n.label!==n.value?s.jsxs(s.Fragment,{children:[s.jsxs("strong",{children:[n.label,":"]})," ",n.value]}):n.value})]},r))})]},t);default:return null}}function que({product:e,images:t=[],onClose:n,darkImageBg:r=!1}){const i=(e==null?void 0:e.modalImages)||t;return P.useEffect(()=>{const o=a=>{a.key==="Escape"&&n()};return document.addEventListener("keydown",o),document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",o),document.body.style.overflow=""}},[n]),e?s.jsx(yr,{children:s.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[s.jsx(lt.div,{className:"absolute inset-0 bg-black/50",initial:{opacity:0}
586,animate:{opacity:1},exit:{opacity:0},onClick:n}),s.jsxs(lt.div,{className:"relative bg-white rounded-2xl shadow-2xl w-full max-w-3xl max-h-[90vh] overflow-y-auto z-10",initial:{opacity:0,scale:.95,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:20},transition:{duration:.25,ease:[.22,1,.36,1]},children:[s.jsxs("div",{className:"flex items-center justify-between px-6 py-4 sticky top-0 bg-dark-blue z-10",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("img",{src:lr.leafIcon,alt:"",className:"w-7 h-7 object-contain"}),s.jsx("h2",{className:"text-white font-cal text-xl",children:e.name}),e.badge&&s.jsx("span",{className:"px-2 py-0.5 bg-pistachio text-dark-blue font-inter font-bold text-[10px] rounded-full",children:e.badge})]}),s.jsx("button",{onClick:n,className:"w-8 h-8 rounded-full bg-white/15 flex items-center justify-center hover:bg-white/25 transition-colors",children:s.jsx(zi,{size:15,className:"text-white"})})]}),s.jsxs("div",{className:"px-6 py-5",children:[s.jsx("p",{className:"text-dark-blue/70 font-inter text-sm leading-relaxed mb-5",children:e.tagline}),i.length>0&&(e.modalImageSmall&&i.length===1?s.jsx("div",{className:"mb-5 flex justify-center",children:s.jsx("div",{className:`${r?"bg-dark-blue":"bg-pale-blue"} rounded-xl overflow-hidden flex items-center justify-center p-4 w-40 h-40`,children:s.jsx("img",{src:i[0],alt:e.name,className:"w-full h-full object-contain"})})}):s.jsx("div",{className:`grid gap-3 mb-5 ${i.length===1?"grid-cols-1":"grid-cols-3"}`,children:i.map((o,a)=>s.jsx("div",{className:`${r?"bg-dark-blue":"bg-pale-blue"} aspect-square rounded-xl overflow-hidden flex items-center justify-center p-3`,children:s.jsx("img",{src:o,alt:e.name,className:"w-full h-full object-contain",style:e.flipX&&a===0?{transform:"scaleX(-1)"}:void 0})},a))})),e.sections.length===0?s.jsx("p",{className:"text-dark-blue/40 font-inter text-sm italic",children:"Full product details coming soon."}):e.sections.map((o,a)=>Fue(o,a))]}),s.jsxs("div",{className:"mx-6 mb-5 rounded-xl bg-dark-blue/5 border border-dark-blue/10 px-5 py-4 flex items-center gap-4",children:[s.jsx("div",{className:"w-10 h-10 rounded-lg bg-pistachio/20 flex items-center justify-center flex-shrink-0",children:s.jsx(KV,{size:20,className:"text-dark-blue"})}),s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx("p",{className:"text-dark-blue font-inter text-xs leading-snug",children:"Not sure which orthotic to choose? Talk to one of our clinical team to find the right device for your patient's specific pathology."})}),s.jsx(Ie,{to:"/contact",onClick:n,className:"flex-shrink-0 px-4 py-2 bg-pistachio text-dark-blue font-inter font-bold text-xs rounded-full hover:bg-pistachio/90 transition-colors whitespace-nowrap",children:"Find out More"})]}),s.jsx("div",{className:"px-6 py-4 border-t border-dark-blue/8 flex justify-end",children:s.jsx("button",{onClick:n,className:"text-dark-blue/40 font-inter text-sm hover:text-dark-blue/60 transition-colors",children:"Close"})})]})]})}):null}const k0=[{slug:"io-brace-standard",name:"iO Brace",tag:"3D-Printed AFO"},{slug:"io-brace-premium",name:"iO Brace Premium",tag:"Polypropylene AFO"},{slug:"io-brace-premium-plus",name:"iO Brace Premium+",tag:"Polypropylene AFO+"}],IR=[{label:"Scan Type",cells:[{value:"Foot or Lower Leg"},{value:"Lower Leg"},{value:"Lower Leg"}]},{label:"2–4mm PP Shell",cells:[{included:!0},{included:!0},{included:!0}]},{label:"3 Premium Hinge Types",cells:[{included:!0},{included:!0},{included:!0}]},{label:"Upper side struts 3D-printed & sized to scan",cells:[{included:!0},{included:!0},{included:!0}]},{label:"Custom Medial & Lateral Uppers",cells:[{included:!1},{included:!0},{included:!0}]},{label:"Custom Malleoli Wraps",cells:[{included:!1},{included:!0},{included:!0}]},{label:"Foot plate extended to UCBL style",cells:[{included:!1},{included:!0},{included:!0}]},{label:"Uppers with Posterior Calf Enclosure",cells:[{included:!1},{included:!1},{included:!0}]}];function DR(){return s.jsx("span",{className:"inline-flex w-6 h-6 items-center justify-center rounded-full bg-pistachio/15","aria-label":"Included",children:s.jsx(Gy,{size:"14",strokeWidth:"3",className:"text-pistachio"})})}function LR(){return s.jsx("span",{className:"inline-flex w-6 h-6 items-center justify-center rounded-full bg-red-500/10","aria-label":"Not included",children:s.jsx(zi,{size:"14",strokeWidth:"3",className:"text-red-500"})})}function zue(){return s.jsxs(_e,{children:[s.jsx(zS,{dark:!0,label:"Feature Comparison",title:"iO Brace Range",subt
586itle:"Compare features across the iO Brace family to match the right AFO to your patient's presentation."}),s.jsx("div",{className:"sm:hidden space-y-4",children:k0.map((e,t)=>s.jsxs("div",{className:"rounded-2xl border border-dark-blue/10 bg-white overflow-hidden",children:[s.jsx("div",{className:"px-5 py-4 border-b border-dark-blue/10 bg-pale-blue/40",children:s.jsxs(Ie,{to:`/products/${e.slug}`,className:"block",children:[s.jsx("span",{className:"block font-cal text-dark-blue text-lg leading-tight",children:e.name}),s.jsx("span",{className:"block text-dark-blue/45 font-inter text-[11px] mt-0.5",children:e.tag})]})}),s.jsx("ul",{className:"divide-y divide-dark-blue/5",children:IR.map(n=>{const r=n.cells[t];return s.jsxs("li",{className:"flex items-center justify-between gap-3 px-5 py-3",children:[s.jsx("span",{className:"text-dark-blue font-inter font-semibold text-sm leading-snug",children:n.label}),s.jsx("span",{className:"flex-shrink-0",children:r.value?s.jsx("span",{className:"text-dark-blue/70 font-inter text-sm",children:r.value}):r.included?s.jsx(DR,{}):s.jsx(LR,{})})]},n.label)})}),s.jsx("div",{className:"px-5 py-4 border-t border-dark-blue/10",children:s.jsxs(Ie,{to:`/products/${e.slug}`,className:"inline-flex items-center gap-1.5 px-4 py-2 rounded-full bg-dark-blue/[0.05] text-dark-blue font-inter font-semibold text-xs hover:bg-pistachio hover:text-dark-blue transition-colors group",children:["View details",s.jsx(ot,{size:"12",className:"transition-transform duration-300 group-hover:translate-x-0.5"})]})})]},e.slug))}),s.jsx("div",{className:"hidden sm:block rounded-3xl border border-dark-blue/10 overflow-hidden bg-white shadow-[0_2px_18px_-8px_rgba(18,32,72,0.12)]",children:s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full border-collapse min-w-[680px]",children:[s.jsx("caption",{className:"sr-only",children:"iO Brace range feature comparison"}),s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsxs("th",{scope:"col",className:"sticky left-0 z-20 bg-pale-blue/60 backdrop-blur-sm px-5 py-5 text-left align-bottom min-w-[220px] border-b border-dark-blue/10",children:[s.jsx("span",{className:"block text-pistachio text-[10px] font-inter font-bold uppercase tracking-[0.22em] mb-1",children:"Feature Guide"}),s.jsx("span",{className:"text-dark-blue/40 font-inter text-xs",children:"Compare models"})]}),k0.map(e=>s.jsx("th",{scope:"col",className:"px-5 py-5 text-left align-bottom border-b border-dark-blue/10 bg-white",children:s.jsxs(Ie,{to:`/products/${e.slug}`,className:"block group focus:outline-none",children:[s.jsx("span",{className:"block font-cal text-dark-blue text-lg leading-tight group-hover:text-pistachio transition-colors",children:e.name}),s.jsx("span",{className:"block text-dark-blue/45 font-inter text-[11px] mt-0.5",children:e.tag})]})},e.slug))]})}),s.jsxs("tbody",{children:[IR.map((e,t)=>s.jsxs("tr",{className:t%2===0?"bg-white":"bg-pale-blue/30",children:[s.jsx("th",{scope:"row",className:"sticky left-0 z-10 px-5 py-4 text-left font-inter font-semibold text-dark-blue text-sm align-middle min-w-[220px] border-b border-dark-blue/5 bg-inherit",children:e.label}),e.cells.map((n,r)=>s.jsx("td",{className:"px-5 py-4 text-center align-middle border-b border-dark-blue/5",children:n.value?s.jsx("span",{className:"text-dark-blue/70 font-inter text-sm",children:n.value}):n.included?s.jsx("span",{className:"inline-flex justify-center",children:s.jsx(DR,{})}):s.jsx("span",{className:"inline-flex justify-center",children:s.jsx(LR,{})})},r))]},e.label)),s.jsxs("tr",{className:"bg-white",children:[s.jsx("th",{scope:"row",className:"sticky left-0 z-10 px-5 py-5 text-left bg-inherit"}),k0.map(e=>s.jsx("td",{className:"px-5 py-5 text-center",children:s.jsxs(Ie,{to:`/products/${e.slug}`,className:"inline-flex items-center gap-1.5 px-4 py-2 rounded-full bg-dark-blue/[0.05] text-dark-blue font-inter font-semibold text-xs hover:bg-pistachio hover:text-dark-blue transition-colors group",children:["View details",s.jsx(ot,{size:"12",className:"transition-transform duration-300 group-hover:translate-x-0.5"})]})},e.slug))]})]})]})})})]})}const BR=[{hex:"#122048",w:.44},{hex:"#5A7D9E",w:.4},{hex:"#A4D17E",w:.11},{hex:"#7FE7E7",w:.05}],zm="#A4D17E",Uue="#122048",Hg=1280,qS=320,Fr=Hg/2,qr=312,$R=400,Hue=240,FR=34,Vue=26,Wue=6;function Gue(e){let t=e>>>0;return()=>{t|=0,t=t+1831565813|0;let n=Math.imul(t^t>>>15,1|t);return n=n+Math.imul(n^n>>>7,61|n)^n,((n^n>>>14)>>>0)/4294967296}}function Kue(e){let t=0;for(const n of BR)if(t+=n.w,e<=t)return n.hex;return BR[0].hex}function Wq(e,t,n){let r=e;return t>1e-6?r=Math.min(r,(Hg-FR-Fr)/t):t<-1e-6&&(r=Math.min(r,(FR-Fr)/t)),n>1e-6?r=Math.min(r,(qS-Wue-qr)/n):n<-1e-6&&(r=Math.min(r,(Vue-qr)/n)),Math.max(0,Math.min(e,r))}const O0=(()=>{const e=Gue(20260717),t=[];for(let n=0;n<Hue;n++){const r=e(),i=e(),o=e(),a=e(),l=(r-.5)*2,c=-90+Math.sign(l)*Math.pow(Math.abs(l),.72)*82,d=c*Math.PI/180,p=Math.cos(d),f=Math.sin(d),m=50+Math.pow(i,.78)*$R,g=Wq(m,p,f),b=Fr+g*p,y=qr+g*f,v=Kue(o),x=g/$R,_=.16+.42*(1-x)*(.6+.4*a),j=.24+.5*(1-x),S=.9+(1-x)*1.8,N=.03+a*.06;t.push({baseAngle:c,normLen:m,len:g,ex:b,ey:y,color:v,lineOp:_,nodeOp:j,nodeR:S,lag:N,curAngle:c})}return t})();function qR(e){for(;e>Math.PI;)e-=2*Math.PI;for(;e<-Math.PI;)e+=2*Math.PI;return e}
586function vv({asBackground:e=!1,heading:t}){const n=vo(),r=n?"":"ray-radiate",i=P.useRef(null),o=P.useRef([]),a=P.useRef([]),l=P.useRef(!1),c=P.useRef({cx:Fr,cy:qr}),d=P.useRef({cx:Fr,cy:qr}),p=P.useRef(0);P.useEffect(()=>{if(n)return;const y=()=>{d.current.cx+=(c.current.cx-d.current.cx)*.08,d.current.cy+=(c.current.cy-d.current.cy)*.08;const v=Math.atan2(d.current.cy-qr,d.current.cx-Fr),x=o.current,_=a.current;for(let j=0;j<O0.length;j++){const S=O0[j],N=l.current?S.baseAngle+qR(v-S.baseAngle)*.16:S.baseAngle;S.curAngle+=qR(N-S.curAngle)*S.lag;const O=S.curAngle,E=Math.cos(O),A=Math.sin(O),I=Wq(S.normLen,E,A),M=Fr+I*E,C=qr+I*A,R=x[j];R&&(R.setAttribute("x2",M.toFixed(2)),R.setAttribute("y2",C.toFixed(2)));const B=_[j];B&&(B.setAttribute("cx",M.toFixed(2)),B.setAttribute("cy",C.toFixed(2)))}p.current=requestAnimationFrame(y)};return p.current=requestAnimationFrame(y),()=>cancelAnimationFrame(p.current)},[n]);const f=y=>{if(n||!i.current)return;const v=i.current.getBoundingClientRect();c.current={cx:(y.clientX-v.left)/v.width*Hg,cy:(y.clientY-v.top)/v.height*qS},l.current=!0},m=()=>{l.current=!1},g=s.jsxs("svg",{viewBox:`0 0 ${Hg} ${qS}`,preserveAspectRatio:"xMidYMid slice",className:"absolute inset-0 w-full h-full",role:"img","aria-label":"Straight light rays rising from a focal origin, each leaning gently toward your cursor",children:[s.jsxs("defs",{children:[s.jsxs("filter",{id:"rayGlow",x:"-20%",y:"-20%",width:"140%",height:"140%",children:[s.jsx("feGaussianBlur",{stdDeviation:"0.9",result:"blur"}),s.jsxs("feMerge",{children:[s.jsx("feMergeNode",{in:"blur"}),s.jsx("feMergeNode",{in:"SourceGraphic"})]})]}),s.jsxs("radialGradient",{id:"focalGlow",cx:"50%",cy:"50%",r:"50%",children:[s.jsx("stop",{offset:"0%",stopColor:zm,stopOpacity:"0.28"}),s.jsx("stop",{offset:"45%",stopColor:zm,stopOpacity:"0.09"}),s.jsx("stop",{offset:"100%",stopColor:"#ffffff",stopOpacity:"0"})]})]}),s.jsx("circle",{cx:Fr,cy:qr,r:"200",fill:"url(#focalGlow)"}),!n&&s.jsxs("circle",{cx:Fr,cy:qr,r:"30",fill:"none",stroke:zm,strokeWidth:"0.8",opacity:"0.16",children:[s.jsx("animate",{attributeName:"r",values:"20;250",dur:"10s",repeatCount:"indefinite"}),s.jsx("animate",{attributeName:"opacity",values:"0.16;0",dur:"10s",repeatCount:"indefinite"})]}),s.jsx("g",{filter:"url(#rayGlow)",className:r,style:{transformBox:"view-box",transformOrigin:`${Fr}px ${qr}px`},children:O0.map((y,v)=>s.jsxs("g",{children:[s.jsx("line",{ref:x=>{o.current[v]=x},x1:Fr,y1:qr,x2:y.ex,y2:y.ey,stroke:y.color,strokeWidth:"0.7",strokeLinecap:"round",opacity:y.lineOp}),s.jsx("circle",{ref:x=>{a.current[v]=x},cx:y.ex,cy:y.ey,r:y.nodeR,fill:y.color,opacity:y.nodeOp})]},v))}),s.jsx("circle",{cx:Fr,cy:qr,r:"5",fill:zm}),s.jsx("circle",{cx:Fr,cy:qr,r:"2",fill:Uue})]}),b=s.jsx("div",{ref:i,onMouseMove:f,onMouseLeave:m,className:e?"absolute inset-0 w-full h-full":"relative w-full",style:e?void 0:{aspectRatio:"1280 / 320"},children:g});return e?s.jsxs("div",{className:"absolute inset-0 pointer-events-auto",children:[s.jsx("div",{className:"absolute inset-0 opacity-[0.05] pointer-events-none",style:{backgroundImage:"radial-gradient(rgba(18,32,72,0.45) 1px, transparent 1px)",backgroundSize:"34px 34px"},"aria-hidden":"true"}),b]}):s.jsxs("section",{className:"culture-rays relative overflow-hidden pt-4 lg:pt-6 pb-0 bg-white",children:[s.jsx("div",{className:"absolute inset-0 opacity-[0.06] pointer-events-none",style:{backgroundImage:"radial-gradient(rgba(18,32,72,0.45) 1px, transparent 1px)",backgroundSize:"34px 34px"},"aria-hidden":"true"}),s.jsxs("div",{className:"relative z-10 max-w-screen-2xl mx-auto px-6 lg:px-10",children:[s.jsx("div",{className:"text-center mb-6 lg:mb-8",children:s.jsx("h3",{className:"text-dark-blue font-cal leading-tight",style:{fontSize:"clamp(22px, 2.4vw, 36px)"},children:t})}),b]})]})}const Yue="https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/b4b695ae9_ProductHeroes-01.png",Xue=[{title:"Highest Quality",desc:"100% accurate & repeatable — every single time."},{title:"Fast Turnaround",desc:"1–3 day turnaround on your design files."},{title:"No Shell Finishing Required",desc:"Shoes-ready prints straight off the build bed."},{title:"Limitless Branding Options",desc:"Lab & customer branding applied to every shell."}],Que=["Rigid, Semi-rigid & Flexible","Deep Heel Cups","Forefoot Posts","Depressions","Morton's Extensions","Extrinsic Posts","UCBL","Heel Skives","Medial & Lateral Flanges","Cut Outs"];function Zue(){return s.jsxs("div",{id:"shell-only",className:"scroll-mt-24",children:[s.jsx(_e,{children:s.jsx("div",{className:"flex items-end justify-between mb-10 flex-wrap gap-4",children:s.jsxs("div",{children:[s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-2",children:"Shell Only"}),s.jsx("h2",{className:"text-dark-blue font-cal leading-tight",style:{fontSize:"clamp(24px, 2.8vw, 40px)"},children:"3D Printed Shells"}),s.jsx("p",{className:"text-dark-blue/55 font-inter text-sm mt-2 max-w-xl",children:"A 3D-printing service for podiatrists and orthotic labs who prefer to design in-house. Submit your own files and we'll take care of the rest."})]})})}),s.jsx(_e,{children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 lg:gap-12 items-center mb-12",children:[s.jsxs("div",{className:"order-2 lg:order-1",children:[s.jsx("p",{className:"text-dark-blue/65 font-inter text-lg leading-relaxed mb-6",children:"Send your own design files for 3D-
586printing or EVA milling. Fully control your designs, save time and cost, with 1–3 day turnaround. Talk to us about recommended design software for your practice."}),s.jsxs(Ie,{to:"/contact",className:"inline-flex items-center gap-2 px-8 py-3.5 bg-pistachio text-dark-blue font-inter font-bold text-base rounded-full hover:bg-pistachio/90 transition-all duration-200",children:["Enquire ",s.jsx(ot,{size:18})]})]}),s.jsx("div",{className:"order-1 lg:order-2 rounded-2xl overflow-hidden bg-gradient-to-b from-[#f5f7f9] to-[#e8ecf1] flex items-center justify-center p-8 min-h-[440px]",children:s.jsx("img",{src:Yue,alt:"3D printed orthotic shells",className:"w-full h-full object-contain max-h-[480px]",style:{filter:"drop-shadow(0 12px 28px rgba(18,32,72,0.18))"}})})]})}),s.jsx(Dn,{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mb-12",children:Xue.map(e=>s.jsx(Ln,{children:s.jsxs("div",{className:"h-full p-6 rounded-2xl border border-dark-blue/10 bg-pale-blue/40 hover:bg-pale-blue transition-colors duration-200",children:[s.jsx("div",{className:"w-10 h-10 rounded-xl bg-pistachio/15 border border-pistachio/20 flex items-center justify-center mb-4",children:s.jsx(oa,{size:18,className:"text-pistachio"})}),s.jsx("h3",{className:"text-dark-blue font-cal text-base leading-tight mb-1.5",children:e.title}),s.jsx("p",{className:"text-dark-blue/55 font-inter text-xs leading-relaxed",children:e.desc})]})},e.title))}),s.jsx(_e,{children:s.jsx("div",{className:"rounded-2xl bg-dark-blue px-8 lg:px-10 py-10",children:s.jsxs("div",{className:"flex flex-col lg:flex-row gap-10",children:[s.jsxs("div",{className:"lg:w-1/3",children:[s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-3",children:"Design Options"}),s.jsx("h3",{className:"text-white font-cal text-2xl leading-tight mb-3",children:"Shell Design Options Include…"}),s.jsx("p",{className:"text-white/55 font-inter text-sm leading-relaxed",children:"Every shell is printed to your exact prescription — choose from the full range of modifications below."})]}),s.jsx("div",{className:"lg:w-2/3 grid grid-cols-1 sm:grid-cols-2 gap-x-8 gap-y-3",children:Que.map(e=>s.jsxs("div",{className:"flex items-center gap-3 py-1.5 border-b border-white/8",children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-pistachio flex-shrink-0"}),s.jsx("span",{className:"text-white/85 font-inter text-sm",children:e})]},e))})]})})})]})}function Jue({images:e,name:t}){return!e||e.length===0?null:s.jsxs(_e,{children:[s.jsx("h3",{className:"text-dark-blue font-cal text-2xl mb-6",children:"Gallery"}),s.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:e.map((n,r)=>s.jsx("div",{className:"rounded-2xl overflow-hidden bg-pale-blue border border-dark-blue/8 aspect-[4/3] group",children:s.jsx("img",{src:n,alt:`${t} — view ${r+1}`,loading:"lazy",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})},r))})]})}function ede({current:e}){const t=xv.filter(n=>n.category===e.category&&n.slug!==e.slug).slice(0,3);return t.length===0?null:s.jsx("section",{className:"py-16 lg:py-20 bg-pale-blue/50 border-t border-dark-blue/8",children:s.jsxs("div",{className:"max-w-screen-xl mx-auto px-6 lg:px-10",children:[s.jsx(_e,{children:s.jsxs("div",{className:"flex items-end justify-between mb-8 gap-4",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-1",children:"More from this range"}),s.jsx("h3",{className:"text-dark-blue font-cal text-2xl sm:text-3xl",children:e.category})]}),s.jsxs(Ie,{to:"/products",className:"inline-flex items-center gap-1.5 text-dark-blue/60 font-inter font-semibold text-sm hover:text-pistachio transition-colors flex-shrink-0",children:["View all ",s.jsx(ot,{size:14})]})]})}),s.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:t.map(n=>s.jsxs(Ie,{to:`/products/${n.slug}`,className:"group flex flex-col bg-white rounded-xl overflow-hidden border border-dark-blue/8 hover:border-pistachio/40 hover:shadow-lg transition-all duration-300",children:[s.jsx("div",{className:"h-40 bg-transparent flex items-center justify-center overflow-hidden p-4",children:s.jsx("img",{src:n.img,alt:n.name,loading:"lazy",className:"max-w-full max-h-full object-contain group-hover:scale-105 transition-transform duration-500",style:n.flipX?{transform:"scaleX(-1)"}:void 0})}),s.jsxs("div",{className:"p-4",children:[s.jsx("h4",{className:"text-dark-blue font-cal text-base leading-tight mb-1",children:n.name}),s.jsx("p",{className:"text-dark-blue/50 font-inter text-xs leading-relaxed",children:n.tagline})]})]},n.slug))})]})})}function tde({name:e}){return s.jsx(_e,{children:s.jsxs("div",{className:"rounded-2xl bg-dark-blue px-8 sm:px-12 py-12 sm:py-14 text-center",children:[s.jsxs("h3",{className:"text-white font-cal text-2xl sm:text-3xl mb-3",children:["Ready to prescribe ",e,"?"]}),s.jsx("p",{className:"text-white/60 font-inter text-base mb-8 max-w-lg mx-auto",children:"Partner with iOrthotics to access our full custom device range, clinical support and fast local turnaround."}),s.jsxs(Ie,{to:"/contact",className:"inline-flex items-center gap-2 px-8 py-3.5 bg-pistachio text-dark-blue font-inter font-bold text-base rounded-full hover:bg-pistachio/90 transition-all",children:["Enquire About ",e," ",s.jsx(ot,{size:16})]})]})})}
586function nde({product:e}){const[t,n]=P.useState(!1);return P.useEffect(()=>{const r=()=>{const i=window.scrollY,o=document.documentElement,a=i+window.innerHeight>o.scrollHeight-340;n(i>520&&!a)};return window.addEventListener("scroll",r,{passive:!0}),r(),()=>window.removeEventListener("scroll",r)},[]),s.jsx(yr,{children:t&&s.jsx(lt.div,{initial:{y:90,opacity:0},animate:{y:0,opacity:1},exit:{y:90,opacity:0},transition:{duration:.3,ease:[.22,1,.36,1]},className:"fixed bottom-0 left-0 right-0 z-40 bg-dark-blue/95 backdrop-blur-md border-t border-white/10",children:s.jsxs("div",{className:"max-w-screen-xl mx-auto px-5 sm:px-10 py-3 flex items-center justify-between gap-4",children:[s.jsxs("div",{className:"min-w-0",children:[s.jsx("p",{className:"text-pistachio font-inter text-[10px] uppercase tracking-widest font-semibold",children:e.category}),s.jsx("p",{className:"text-white font-cal text-base sm:text-lg leading-tight truncate",children:e.name})]}),s.jsxs(Ie,{to:"/contact",className:"inline-flex items-center gap-2 px-5 sm:px-7 py-2.5 bg-pistachio text-dark-blue font-inter font-bold text-sm rounded-full hover:bg-pistachio/90 transition-colors flex-shrink-0 whitespace-nowrap",children:["Enquire ",s.jsx(ot,{size:16})]})]})})})}const zR="iOrthotics";function rde(e,t){if(!e)return"";const n=String(e);return n.length>t?n.slice(0,t-1).trimEnd()+"…":n}function ki(e,t,n){if(n==null||n==="")return null;let r=document.querySelector(`meta[${e}="${t}"]`);return r||(r=document.createElement("meta"),r.setAttribute(e,t),document.head.appendChild(r)),r.setAttribute("content",n),r}function gs({title:e,description:t,descLimit:n=160,image:r,noindex:i=!1,type:o="website",jsonLd:a}){return P.useEffect(()=>{const l=!!(e||t),c=e||zR,d=document.title;if(l){document.title=c;const y=rde(t,n);ki("name","description",y),ki("property","og:title",c),ki("property","og:description",y),ki("property","og:site_name",zR),ki("property","og:type",o),ki("property","og:url",window.location.href),r&&ki("property","og:image",r),ki("name","twitter:card","summary_large_image"),ki("name","twitter:title",c),ki("name","twitter:description",y),r&&ki("name","twitter:image",r)}let p=document.querySelector('meta[name="robots"]');const f=!!p,m=(p==null?void 0:p.getAttribute("content"))||null;i&&(p||(p=document.createElement("meta"),p.setAttribute("name","robots"),document.head.appendChild(p)),p.setAttribute("content","noindex, nofollow"));const g=a?JSON.stringify(a):"";let b=null;if(g){const y=document.getElementById("seo-jsonld");y&&y.remove(),b=document.createElement("script"),b.id="seo-jsonld",b.type="application/ld+json",b.text=g,document.head.appendChild(b)}return()=>{if(l&&(document.title=d),i){const y=document.querySelector('meta[name="robots"]');y&&(f&&m!=null?y.setAttribute("content",m):y.remove())}b&&b.remove()}},[e,t,n,r,i,o,a]),null}const ke="https://iorthotics.com",UR={"pilot-stride":{"@context":"https://schema.org","@graph":[{"@type":"Product","@id":`${ke}/products/pilot-stride#product`,additionalType:"https://schema.org/MedicalDevice",name:"Pilot Stride",description:"Prescription custom foot orthosis engineered for all-day comfort.",category:"Custom foot orthosis",url:`${ke}/products/pilot-stride`,brand:{"@type":"Brand",name:"iOrthotics"},manufacturer:{"@id":`${ke}/#organization`},isRelatedTo:{"@type":"Product",name:"Custom Orthotic Range"}},{"@type":"BreadcrumbList","@id":`${ke}/products/pilot-stride#breadcrumb`,itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:`${ke}/`},{"@type":"ListItem",position:2,name:"Products",item:`${ke}/products`},{"@type":"ListItem",position:3,name:"Pilot Stride"}]}]},"flex-control":{"@context":"https://schema.org","@graph":[{"@type":"Product","@id":`${ke}/products/flex-control#product`,additionalType:"https://schema.org/MedicalDevice",name:"Flex Control",description:"Prescription custom foot orthosis with optimised flexibility and comfort for active movement.",category:"Custom foot orthosis",url:`${ke}/products/flex-control`,brand:{"@type":"Brand",name:"iOrthotics"},manufacturer:{"@id":`${ke}/#organization`},isRelatedTo:{"@type":"Product",name:"Custom Orthotic Range"}},{"@type":"BreadcrumbList","@id":`${ke}/products/flex-control#breadcrumb`,itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:`${ke}/`},{"@type":"ListItem",position:2,name:"Products",item:`${ke}/products`},{"@type":"ListItem",position:3,name:"Flex Control"}]}]},superflex:{"@context":"https://schema.org","@graph":[{"@type":"Product","@id":`${ke}/products/superflex#product`,additionalType:"https://schema.org/MedicalDevice",name:"Superflex",description:"Flexible shell with a combination EVA and solid post, plus a flexible arch for enhanced mobility and compliance.",category:"Custom foot orthosis",url:`${ke}/products/superflex`,brand:{"@type":"Brand",name:"iOrthotics"},manufacturer:{"@id":`${ke}/#organization`},isRelatedTo:{"@type":"Product",name:"Custom Orthotic Range"}},{"@type":"BreadcrumbList","@id":`${ke}/products/superflex#breadcrumb`,itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:`${ke}/`},{"@type":"ListItem",position:2,name:"Products",item:`${ke}/products`},{"@type":"ListItem",position:3,name:"Superflex"}]}]},"dress-precision":{"@context":"https://schema.org","@graph":[{"@type":"Product","@id":`${ke}/products/dress-precision#product`,additionalType:"https://schema.org/MedicalDevice",name:"Dress Precision",description:"Minimal-bulk orthosis for dress shoes, with an intrinsic post, low heel cup and narrow shell for discreet support.",category:"Custom foot orthosis",url:`${ke}/products/dress-precision`,brand:{"@type":"Brand",name:"iOrthotics"},manufacturer:{"@id":`${ke}/#organization`},isRelatedTo:{"@type":"Product",name:"Custom Orthotic Range"}},{"@type":"BreadcrumbList","@id":`${ke}/products/dress-precision#breadcrumb`,itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:`${ke}/`},{"@type":"ListItem",position:2,name:"Products",item:`${ke}/products`},{"@type":"ListItem",position:3,name:"Dress Precision"}]}]},"fashion-fit":{"@context":"https://schema.org","@graph":[{"@type":"Product","@id":`${ke}/products/fashion-fit#product`,additionalType:"https://schema.org/MedicalDevice",name:"Fashion Fit",description:"Narrow-profile orthosis for dress shoes, with a tear-drop shell providing medial longitudinal arch support at minimal bulk.",category:"Custom foot orthosis",url:`${ke}/products/fashion-fit`,brand:{"@type":"Brand",name:"iOrthotics"},manufacturer:{"@id":`${ke}/#organization`},isRelatedTo:{"@type":"Product",name:"Custom Orthotic Range"}},{"@type":"BreadcrumbList","@id":`${ke}/products/fashion-fit#breadcrumb`,itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:`${ke}/`},{"@type":"ListItem",position:2,name:"Products",item:`${ke}/products`},{"@type":"ListItem",position:3,name:"Fashion Fit"}]}]},"cleat-force":{"@context":"https://schema.org","@graph":[{"@type":"Product","@id":`${ke}/products/cleat-force#product`,additionalType:"https://schema.org/MedicalDevice",name:"Cleat Force",description:"High-performance orthosis engineered for cleated footwear, with a low-profile design for active and normal feet.",category:"Custom foot orthosis",url:`${ke}/products/cleat-force`,brand:{"@type":"Brand",name:"iOrthotics"},manufacturer:{"@id":`${ke}/#organization`},isRelatedTo:{"@type":"Product",name:"Custom Orthotic Range"}},{"@type":"BreadcrumbList","@id":`${ke}/products/cleat-force#breadcrumb`,itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:`${ke}/`},{"@type":"ListItem",position:2,name:"Products",item:`${ke}/products`},{"@type":"ListItem",position:3,name:"Cleat Force"}]}]},"pediatric-control":{"@context":"https://schema.org","@graph":[{"@type":"Product","@id":`${ke}/products/pediatric-control#product`,additionalType:"https://schema.org/MedicalDevice",name:"Pediatric Control",description:"Paediatric orthosis providing stable support for flexible children's feet, with a post, deep heel cup and wide profile for growing feet.",category:"Paediatric custom foot orthosis",url:`${ke}/products/pediatric-control`,brand:{"@type":"Brand",name:"iOrthotics"},manufacturer:{"@id":`${ke}/#organization`},isRelatedTo:{"@type":"Product",name:"Custom Orthotic Range"},audience:{"@type":"PeopleAudience",suggestedMinAge:0,suggestedMaxAge:16}},{"@type":"BreadcrumbList","@id":`${ke}/products/pediatric-control#breadcrumb`,itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:`${ke}/`},{"@type":"ListItem",position:2,name:"Products",item:`${ke}/products`},{"@type":"ListItem",position:3,name:"Pediatric Control"}]}]},envirofoam:{"@context":"https://schema.org","@graph":[{"@type":"Product","@id":`${ke}/products/envirofoam#product`,additionalType:"https://schema.org/MedicalDevice",name:"EnviroFoam",description:"Light, durable 3D-printed TPU insole made with near-zero manufacturing waste, available in six density options and shoe-ready out of the box.",category:"3D-printed insole",url:`${ke}/products/envirofoam`,brand:{"@type":"Brand",name:"EnviroFoam"},manufacturer:{"@id":`${ke}/#organization`},isRelatedTo:{"@type":"Product",name:"Custom Orthotic Range"},material:"Thermoplastic polyurethane (TPU)"},{"@type":"BreadcrumbList","@id":`${ke}/products/envirofoam#breadcrumb`,itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:`${ke}/`},{"@type":"ListItem",position:2,name:"Products",item:`${ke}/products`},{"@type":"ListItem",position:3,name:"EnviroFoam"}]}]},ucbl:{"@context":"https://schema.org","@graph":[{"@type":"Product","@id":`${ke}/products/ucbl#product`,additionalType:"https://schema.org/MedicalDevice",name:"UCBL",description:"University of California Biomechanics Laboratory orthosis, custom made to cast or scan.",category:"Custom foot orthosis",url:`${ke}/products/ucbl`,brand:{"@type":"Brand",name:"iOrthotics"},manufacturer:{"@id":`${ke}/#organization`},isRelatedTo:{"@type":"Product",name:"iO Brace Range"}},{"@type":"BreadcrumbList","@id":`${ke}/products/ucbl#breadcrumb`,itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:`${ke}/`},{"@type":"ListItem",position:2,name:"Products",item:`${ke}/products`},{"@type":"ListItem",position:3,name:"UCBL"}]}]},"io-smo":{"@context":"https://schema.org","@graph":[{"@type":"Product","@id":`${ke}/products/io-smo#product`,additionalType:"https://schema.org/MedicalDevice",name:"iO SMO",description:"Supramalleolar orthosis, available with or without heel, made to clinician prescription.",category:"Supramalleolar orthosis",url:`${ke}/products/io-smo`,brand:{"@type":"Brand",name:"iOrthotics"},manufacturer:{"@id":`${ke}/#organization`},isRelatedTo:{"@type":"Product",name:"iO Brace Range"}},{"@type":"BreadcrumbList","@id":`${ke}/products/io-smo#breadcrumb`,itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:`${ke}/`},{"@type":"ListItem",position:2,name:"Products",item:`${ke}/products`},{"@type":"ListItem",position:3,name:"iO SMO"}]}]},"io-brace-standard":{"@context":"https://schema.org","@graph":[{"@type":"Product","@id":`${ke}/products/io-brace-standard#product`,additionalType:"https://schema.org/MedicalDevice",name:"iO Brace Standard",description:"3D-printed AFO with precision-to-prescription fit from a foot or lower leg scan.",category:"Ankle foot orthosis",url:`${ke}/products/io-brace-standard`,brand:{"@type":"Brand",name:"iOrthotics"},manufacturer:{"@id":`${ke}/#organization`},isRelatedTo:{"@type":"Product",name:"iO Brace Range"}},{"@type":"BreadcrumbList","@id":`${ke}/products/io-brace-standard#breadcrumb`,itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:`${ke}/`},{"@type":"ListItem",position:2,name:"Products",item:`${ke}/products`},{"@type":"ListItem",position:3,name:"iO Brace Standard"}]}]},"io-brace-premium":{"@context":"https://schema.org","@graph":[{"@type":"Product","@id":`${ke}/products/io-brace-premium#product`,additionalType:"https://schema.org/MedicalDevice",name:"iO Brace Premium",description:"Polypropylene AFO with a 3-4mm shell, three premium hinge options and a UCBL-style extended foot plate.",category:"Ankle foot orthosis",url:`${ke}/products/io-brace-premium`,brand:{"@type":"Brand",name:"iOrthotics"},manufacturer:{"@id":`${ke}/#organization`},isRelatedTo:{"@type":"Product",name:"iO Brace Range"}},{"@type":"BreadcrumbList","@id":`${ke}/products/io-brace-premium#breadcrumb`,itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:`${ke}/`},{"@type":"ListItem",position:2,name:"Products",item:`${ke}/products`},{"@type":"ListItem",position:3,name:"iO Brace Premium"}]}]},"io-brace-premium-plus":{"@context":"https://schema.org","@graph":[{"@type":"Product","@id":`${ke}/products/io-brace-premium-plus#product`,additionalType:"https://schema.org/MedicalDevice",name:"iO Brace Premium+",description:"Polypropylene AFO with custom medial and lateral uppers, malleoli wraps and posterior calf enclosure.",category:"Ankle foot orthosis",url:`${ke}/products/io-brace-premium-plus`,brand:{"@type":"Brand",name:"iOrthotics"},manufacturer:{"@id":`${ke}/#organization`},isRelatedTo:{"@type":"Product",name:"iO Brace Range"}},{"@type":"BreadcrumbList","@id":`${ke}/products/io-brace-premium-plus#breadcrumb`,itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:`${ke}/`},{"@type":"ListItem",position:2,name:"Products",item:`${ke}/products`},{"@type":"ListItem",position:3,name:"iO Brace Premium+"}]}]},"balance-brace":{"@context":"https://schema.org","@graph":[{"@type":"Product","@id":`${ke}/products/balance-brace#product`,additionalType:"https://schema.org/MedicalDevice",name:"Balance Brace",description:"Custom bracing solution manufactured to clinician prescription.",category:"Ankle foot orthosis",url:`${ke}/products/balance-brace`,brand:{"@type":"Brand",name:"iOrthotics"},manufacturer:{"@id":`${ke}/#organization`},isRelatedTo:{"@type":"Product",name:"iO Brace Range"}},{"@type":"BreadcrumbList","@id":`${ke}/products/balance-brace#breadcrumb`,itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:`${ke}/`},{"@type":"ListItem",position:2,name:"Products",item:`${ke}/products`},{"@type":"ListItem",position:3,name:"Balance Brace"}]}]}};function ide(e){if(UR[e.slug])return UR[e.slug];const t=`${ke}/products/${e.slug}`,n=e.category==="iO Brace Range";return{"@context":"https://schema.org","@graph":[{"@type":"Product","@id":`${t}#product`,additionalType:"https://schema.org/MedicalDevice",name:e.name,description:e.tagline,category:n?"Ankle foot orthosis":"Custom foot orthotics",url:t,brand:{"@type":"Brand",name:"iOrthotics"},manufacturer:{"@id":`${ke}/#organization`},isRelatedTo:{"@type":"Product",name:e.category}},{"@type":"BreadcrumbList","@id":`${t}#breadcrumb`,itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:`${ke}/`},{"@type":"ListItem",position:2,name:"Products",item:`${ke}/products`},{"@type":"ListItem",position:3,name:e.name}]}]}}const ode={"Peer-Reviewed Research":"ScholarlyArticle","Case Study":"Article","Clinical Article":"Article","Tips & Tricks":"Article","Opinion Piece":"OpinionNewsArticle"};function Jd(e){if(!e)return"";const t=new Date(e);return Number.isNaN(t.getTime())?"":t.toISOString()}function ade(e){const t=`${ke}/news/${e.id}`,r={"@type":ode[e.category]||"Article","@id":`${t}
586#article`,headline:e.title,description:e.excerpt||"",datePublished:Jd(e.published_date)||Jd(e.created_date),dateModified:Jd(e.updated_date)||Jd(e.published_date)||Jd(e.created_date),author:{"@type":"Person",name:e.author||"iOrthotics"},publisher:{"@id":`${ke}/#organization`},mainEntityOfPage:{"@type":"WebPage","@id":t},articleSection:e.category||"",inLanguage:"en-US"};return e.cover_image_url&&(r.image=[e.cover_image_url]),{"@context":"https://schema.org","@graph":[r,{"@type":"BreadcrumbList","@id":`${t}#breadcrumb`,itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:`${ke}/`},{"@type":"ListItem",position:2,name:"News",item:`${ke}/news`},{"@type":"ListItem",position:3,name:e.title}]}]}}const sde={"@context":"https://schema.org","@graph":[{"@type":"Service","@id":`${ke}/print-only-service#service`,name:"Print Only Service",serviceType:"3D printing and EVA milling for orthotic labs",description:"A 3D-printing and EVA milling service for podiatrists and orthotic labs who design in-house. Submit your own design files and iOrthotics prints and finishes them, with a 1 to 3 day turnaround.",provider:{"@id":`${ke}/#organization`},areaServed:[{"@type":"Country",name:"United States"},{"@type":"Country",name:"Australia"}],audience:{"@type":"Audience",audienceType:"Podiatrists and orthotic laboratories"},url:`${ke}/print-only-service`}]},lde={"@context":"https://schema.org","@graph":[{"@type":"Service","@id":`${ke}/iorder#service`,name:"iOrder",serviceType:"Online orthotic prescription and ordering",description:"Order custom orthotics online. Upload scans, set prescriptions and track every device from clinic to delivery.",provider:{"@id":`${ke}/#organization`},audience:{"@type":"Audience",audienceType:"Clinicians and podiatry practices"},url:`${ke}/iorder`}]},cde={"@context":"https://schema.org","@graph":[{"@type":"ContactPage","@id":`${ke}/contact#contactpage`,url:`${ke}/contact`,name:"Contact iOrthotics",about:{"@id":`${ke}/#organization`},isPartOf:{"@id":`${ke}/#website`}}]},E0={"io-brace-premium-plus":{summary:"A fully customisable articulated AFO engineered for complex foot and ankle conditions, delivering superior support, stability and durable comfort.",items:[{name:"Posterior Tibial Tendon Dysfunction (PTTD)",note:"A common indication for articulated AFO support of the failing posterior tibial tendon."}]},"balance-brace":{summary:"A low-profile, light and flexible custom AFO for patients requiring dynamic stabilisation without the bulk of traditional rigid AFOs.",items:[{name:"Foot Drop",note:"Helps lift the foot due to dorsiflexion weakness."},{name:"Mild to Moderate Ankle Instability",note:"Provides support for weak or unstable ankles."},{name:"Post-Surgical Rehabilitation",note:"Stabilizes the ankle and foot during recovery."},{name:"Cerebral Palsy",note:"Assists walking in patients with mild spasticity or weakness."},{name:"Muscle Weakness from Neurological Conditions",note:"Aids in conditions like Charcot-Marie-Tooth disease to improve gait."}]}},xv=[{slug:"pilot-stride",name:"Pilot Stride",tagline:"Engineered for all-day comfort.",img:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/f446bdbd6_PilotStrideEdited.png",modalImages:["https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/0a8668771_1.png","https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/2128cefda_2.png","https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/8fe55edfe_3.png"],category:"Custom Orthotics",sections:[{type:"intro",label:"Pilot Stride",heading:"Engineered for all-day comfort.",body:"Delivers exceptional weight-bearing support without adding bulk or increasing cost."},{type:"specs",heading:"Materials",rows:[{label:"Shell",value:"Polypropylene with adjustable thickness"},{label:"Top Cover Length",value:"Mets"},{label:"Top Cover Material",value:"2mm EVA"},{label:"Padding Material",value:"High Rebound EVA"},{label:"Rearfoot Post",value:"Non-compressible. Power Rod (optional)"}]}]},{slug:"flex-control",name:"Flex Control",tagline:"Optimized flexibility and comfort for active movement.",img:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/ab19b0bcb_FlexControlEdited.png",modalImages:["https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/74c188c88_14.png","https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/1aa013da3_15.png","https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/5d5953529_16.png"],category:"Custom Orthotics",sections:[{type:"intro",label:"Flex Control",heading:"Optimized flexibility and comfort for active movement.",body:"Increase post stability through the midfoot."},{type:"specs",heading:"Materials",rows:[{label:"Shell",value:"Polypropylene with Post Control Rods"},{label:"Top Cover Length",value:"Full length extension"},{label:"Top Cover Material",value:"2mm EVA"},{label:"Padding Material",value:"High Rebound EVA"},{label:"Rearfoot Post",value:"Non-compressible with shock absorbing post cap. Post Control Rods (optional)"}]}]},{slug:"superflex",name:"Superflex",tagline:"Flexible shell with combination EVA-solid post. Includes a flexible arch for enhanced mobility and compliance.",img:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/b9fed5da4_SuperflexEdited.png",modalImages:["https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/a13e1d73c_5.png","https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/992540f21_6.png","https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/02f1a5c4c_7.png"],category:"Custom Orthotics",sections:[{type:"intro",label:"Superflex",heading:"Flexible shell with combination EVA-solid post.",body:"Provides targeted flexibility exactly where it’s needed—without sacrificing control."},{type:"specs",heading:"Materials",rows:[{label:"Shell",value:"Polypropylene with Negative Cavity"},{label:"Top Cover Length",value:"Mets"},{label:"Top Cover Material",value:"2mm EVA"},{label:"Padding Material",value:"High Rebound EVA"},{label:"Rearfoot Post",value:"Non-compressible with shock absorbing post cap. Negative Cavity (optional)"}]}]}
586,{slug:"dress-precision",name:"Dress Precision",tagline:"Minimal bulk designed for dress shoes. Intrinsic post, low heel cup and narrow shell for discreet support.",img:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/f74c28684_DressPrecisionHero.png",modalImages:["https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/821678146_8.png","https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/6fef192eb_9.png","https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/36afb0e84_10.png"],category:"Custom Orthotics",sections:[{type:"intro",label:"Dress Precision",heading:"Minimal bulk designed for dress shoes.",body:"Intrinsic post, low heel cup and narrow shell for discreet support."},{type:"specs",heading:"Materials",rows:[{label:"Shell",value:"Polypropylene"},{label:"Top Cover Length",value:"Sulcus"},{label:"Top Cover Material",value:"Vinyl"},{label:"Padding Material",value:"High Rebound EVA"},{label:"Rearfoot Post",value:"Intrinsic"}]}]},{slug:"fashion-fit",name:"Fashion Fit",tagline:"Narrow-profile design for dress shoes. Features a tear-drop shell for MLA support with minimal bulk.",img:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/ea62bb934_FashionFitEdited.png",modalImages:["https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/d7f2e994b_11.png","https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/da25e106f_12.png","https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/a2519e111_13.png"],category:"Custom Orthotics",sections:[{type:"intro",label:"Fashion Fit",heading:"Narrow-profile design for dress shoes.",body:"Features a tear-drop shell for MLA support with minimal bulk."},{type:"specs",heading:"Materials",rows:[{label:"Shell",value:"Polypropylene tear drop shell"},{label:"Top Cover Length",value:"Sulcus"},{label:"Top Cover Material",value:"Vinyl"},{label:"Padding Material",value:"High Rebound EVA"},{label:"Rearfoot Post",value:"Intrinsic"}]}]},{slug:"cleat-force",name:"Cleat Force",tagline:"High-performance support engineered for cleated footwear. Low profile solution for active and normal feet.",img:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/0e298e37c_CleatForceEdited.png",modalImages:["https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/941d12d9f_17.png","https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/23b2d6cf4_18.png","https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/5a72f81a9_19.png"],category:"Custom Orthotics",sections:[{type:"intro",label:"Cleat Force",heading:"High-performance support engineered for cleated footwear.",body:"Low profile solution for active and normal feet. Unique triangular post makes shoe fit easy. Bridging the gap between extrinsic and intrinsic posting, and providing low-profile rearfoot posting."},{type:"specs",heading:"Materials",rows:[{label:"Shell",value:"Polypropylene with low profile design for cleats"},{label:"Top Cover Length",value:"Mets"},{label:"Top Cover Material",value:"2mm EVA"},{label:"Padding Material",value:"High Rebound EVA"},{label:"Rearfoot Post",value:"Non-compressible. Tri-Post. Tri-Post (optional)"}]}]},{slug:"pediatric-control",name:"Pediatric Control",tagline:"Stable support for flexible pediatric feet. Includes a post, deep heel cup and wide profile for growing feet.",img:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/d880201cc_PediatricEdited.png",badge:"Kids",modalImages:["https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/3f4794224_20.png","https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/1dd85f7cb_21.png","https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/6d37c4e61_22.png"],category:"Custom Orthotics",sections:[{type:"intro",label:"Pediatric Control",heading:"Stable support for flexible pediatric feet.",body:"Includes a post, deep heel cup and wide profile for growing feet."},{type:"specs",heading:"Materials",rows:[{label:"Shell",value:"Polypropylene with deep heel and wide profile"},{label:"Top Cover Length",value:"Mets"},{label:"Top Cover Material",value:"2mm EVA"},{label:"Padding Material",value:"High Rebound EVA"},{label:"Rearfoot Post",value:"Non-compressible"}]}]},{slug:"envirofoam",name:"EnviroFoam",tagline:"Light, durable 3D-printed TPU insoles with near-zero manufacturing waste.",img:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/65746acd2_EnviroFoam_NoBackgroun
586d.png",modalImages:["https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/65746acd2_EnviroFoam_NoBackground.png"],modalImageSmall:!0,category:"Custom Orthotics",sections:[{type:"intro",label:"EnviroFoam",heading:"EnviroFoam (TPU) Orthotics are a very light and durable 3D-printed orthotic with almost zero waste produced during manufacture."},{type:"features",heading:"Key Features",items:[{label:"Shoe ready device",desc:"Minimal to no fitting required"},{label:"Sustainable alternative to traditional EVA orthoses",desc:""},{label:"Choice of 6 densities from very soft to firm",desc:""},{label:"Multiple density option allows customization of density zones within the device",desc:""}]}]},{slug:"ucbl",name:"UCBL",tagline:"University of California Biomechanics Laboratory orthosis.",img:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/13b1bf471_UCBLwithoutBackground.png",flipX:!0,imgScale:.75,modalImages:["https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/df26e43b3_ProductHeroes_UCBL.png"],category:"iO Brace Range",sections:[{type:"specs",heading:"Materials & Construction",rows:[{label:"Shell",value:"2–5mm Polypropylene (determined by body weight)"},{label:"Heel Cup",value:"Anatomical heel cup and side walls"},{label:"Flanges",value:"Medial and Lateral Flange"}]}]},{slug:"io-smo",name:"iO SMO",tagline:"Supramalleolar Orthosis. Available with or without heel.",img:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/387499973_SMOSquare.png",modalImages:["https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/8aa00e5ae_ProductHeroes_SMO.png"],category:"iO Brace Range",sections:[{type:"specs",heading:"Materials & Construction",rows:[{label:"Shell",value:"2.5mm Polypropylene"},{label:"Height",value:"Extended above the malleoli"},{label:"Closure",value:"Dorsal strap enclosure"},{label:"Heel",value:"Available with or without heel"}]}]},{slug:"io-brace-standard",name:"iO Brace Standard",tagline:"3D-printed AFO — precision to prescription.",img:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/7325528a6_iOBraceSquare.png",imgFit:"contain",badge:"Flagship",modalImages:["https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/87fbf0ddb_ProductHeroes_iOBraceStandard.png"],category:"iO Brace Range",sections:[{type:"specs",heading:"Construction",rows:[{label:"Foot Plate",value:"Custom foot plate only"},{label:"Struts",value:"Upper side struts 3D printed & sized according to scan"},{label:"Prescription",value:"Standard foot orthotic prescription variables"},{label:"Hinges",value:"3 premium hinge types"},{label:"Lining",value:"EVA or Plastazote"}]},{type:"features",heading:"Premium Hinge Options",items:[{label:"Standard Tamarack",desc:"Reliable, flexible hinge for everyday use."},{label:"Dorsiflexion Assist Tamarack",desc:"Provides active dorsiflexion assistance during gait."},{label:"Premium Free Motion Hinge",desc:"Maximum articulation for natural ankle movement."}]}]},{slug:"io-brace-premium",name:"iO Brace Premium",tagline:"3–4mm Polypropylene Shell.",img:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/3c5b83ad4_iOBracePremiumSquare.png",modalImages:["https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/b8c8efdcb_ProductHeroes_iOBracePremium.png"],category:"iO Brace Range",sections:[{type:"specs",heading:"Construction",rows:[{label:"Shell",value:"3–4mm Polypropylene"},{label:"Components",value:"Custom upper and foot plate"},{label:"Foot Plate",value:"Extended to UCBL style"},{label:"Hinges",value:"3 premium hinge types"},{label:"Lining",value:"EVA or Plastazote"}]},{type:"features",heading:"Premium Hinge Options",items:[{label:"Standard Tamarack",desc:"Reliable, flexible hinge for everyday use."},{label:"Dorsiflexion Assist Tamarack",desc:"Provides active dorsiflexion assistance during gait."},{label:"Premium Free Motion Hinge",desc:"Maximum articulation for natural ankle movement."}]}]},{slug:"io-brace-premium-plus",name:"iO Brace Premium+",tagline:"Enhanced articulation and customisation.",img:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/ed1697ed5_PremiumPlusSquare.png",modalImages:["https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/0d67e3d4f_ProductHeroes_iOBracePremiumPlus.png"],category:"iO Brace Range",sections:[{type:"intro",label:"iO Brace Premium+",heading:"Superior articulated ankle-foot orthotic",body:"This superior product is a fully customisable articulated ankle foot orthotic (AAFO) that is engineered to deliver exceptional support and stability for complex foot and ankle c
586onditions. Designed for durability and comfort, it offers clinicians a reliable solution for managing biomechanical challenges."},{type:"specs",heading:"Construction",rows:[{label:"Shell",value:"3–4mm Polypropylene"},{label:"Components",value:"Custom upper & foot plate"},{label:"Foot Plate",value:"Extended to UCBL style"},{label:"Uppers",value:"With posterior calf enclosure"},{label:"Hinges",value:"3 premium hinge types"},{label:"Lining",value:"EVA or Plastazote"}]},{type:"features",heading:"Premium Hinge Options",items:[{label:"Standard Tamarack",desc:"Reliable, flexible hinge for everyday use."},{label:"Dorsiflexion Assist Tamarack",desc:"Provides active dorsiflexion assistance during gait."},{label:"Premium Free Motion Hinge",desc:"Maximum articulation for natural ankle movement."}]}]},{slug:"balance-brace",name:"Balance Brace",tagline:"Dynamic stabilisation for functional ankle instability.",img:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/97a809e0d_BalanceBrace.png",modalImages:["https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/36c8b4e93_ProductHeroes_BalanceBrace.png"],category:"iO Brace Range",sections:[{type:"intro",label:"Balance Brace",heading:"Low Profile, Light & Flexible AFO.",body:"A fully custom, anatomically contoured ankle-foot orthosis designed for patients requiring dynamic stabilisation without the bulk of traditional rigid AFOs."},{type:"specs",heading:"Construction",rows:[{label:"Shell",value:"Thin Polypropylene anatomical shell"},{label:"Design",value:"Fully Custom Design"},{label:"Lining",value:"EVA or Plastazote"}]}]}];function ude({product:e}){return s.jsxs("div",{className:"min-h-[50vh] flex flex-col items-center justify-center text-center px-6 py-24",children:[s.jsx("div",{className:"w-16 h-16 rounded-2xl bg-pistachio/15 border border-pistachio/20 flex items-center justify-center mb-6",children:s.jsx("span",{className:"text-pistachio text-2xl",children:"✦"})}),s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-3",children:"Coming Soon"}),s.jsx("h2",{className:"text-dark-blue font-cal text-3xl mb-3",children:e.name}),s.jsx("p",{className:"text-dark-blue/50 font-inter text-base max-w-md mb-10",children:e.tagline}),s.jsxs(Ie,{to:"/contact",className:"inline-flex items-center gap-2 px-8 py-3.5 bg-pistachio text-dark-blue font-inter font-bold text-base rounded-full hover:bg-pistachio/90 transition-all",children:["Enquire About This Product ",s.jsx(ot,{size:16})]})]})}function dde(e,t){switch(e.type){case"intro":return s.jsxs(_e,{className:"max-w-3xl text-center lg:text-left",children:[e.label&&s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-3",children:e.label}),e.heading&&s.jsx("h2",{className:"text-dark-blue font-cal leading-tight mb-4",style:{fontSize:"clamp(24px, 3vw, 40px)"},children:e.heading}),e.body&&s.jsx("p",{className:"text-dark-blue/65 font-inter text-lg leading-relaxed text-left",children:e.body})]},t);case"features":return s.jsxs(_e,{children:[e.heading&&s.jsx("h3",{className:"text-dark-blue font-cal text-2xl mb-6",children:e.heading}),s.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:e.items.map((n,r)=>s.jsxs("div",{className:"flex items-start gap-3 p-5 rounded-xl bg-pale-blue/60 border border-dark-blue/6",children:[s.jsx("div",{className:"w-2 h-2 rounded-full bg-pistachio mt-2 flex-shrink-0"}),s.jsxs("div",{children:[n.label&&s.jsx("p",{className:"text-dark-blue font-inter font-semibold text-sm mb-0.5",children:n.label}),n.desc&&s.jsx("p",{className:"text-dark-blue/55 font-inter text-xs leading-relaxed",children:n.desc})]})]},r))})]},t);case"specs":return s.jsxs(_e,{children:[e.heading&&s.jsx("h3",{className:"text-dark-blue font-cal text-2xl mb-6",children:e.heading}),s.jsx("div",{className:"rounded-2xl border border-dark-blue/8 overflow-hidden",children:e.rows.map((n,r)=>s.jsxs("div",{className:`flex items-start px-6 py-4 gap-6 ${r%2===0?"bg-white":"bg-pale-blue/40"}`,children:[s.jsx("p",{className:"text-dark-blue font-inter font-semibold text-sm w-40 flex-shrink-0",children:n.label}),s.jsx("p",{className:"text-dark-blue/60 font-inter text-sm",children:n.value})]},r))})]},t);case"image-text":return s.jsx(_e,{children:s.jsxs("div",{className:`flex flex-col lg:flex-row gap-12 items-center ${e.reverse?"lg:flex-row-reverse":""}`,children:[s.jsx("div",{className:"flex-1",children:s.jsx("img",{src:e.img,alt:e.alt||"",className:"w-full rounded-2xl object-cover"})}),s.jsxs("div",{className:"flex-1 text-center lg:text-left",children:[e.label&&s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-3",children:e.label}),e.heading&&s.jsx("h3",{className:"text-dark-blue font-cal text-2xl mb-4",children:e.heading}),e.body&&s.jsx("p",{className:"text-dark-blue/65 font-inter text-base leading-relaxed",children:e.body})]})]})},t);case"cta":return s.jsx(_e,{children:s.jsxs("div",{className:"rounded-2xl bg-dark-blue px-10 py-12 text-center",children:[e.heading&&s.jsx("h3",{className:"text-white font-cal text-2xl mb-3",children:e.heading}),e.body&&s.jsx("p",{className:"text-white/60 font-inter text-base mb-8 max-w-lg mx-auto",children:e.body}),s.jsxs(Ie,{to:"/contact",className:"inline-flex items-center gap-2 px-8 py-3.5 bg-pistachio text-dark-blue font-inter font-bold text-base rounded-full hover:bg-pistachio/90 transition-all",children:[e.buttonLabel||"Enquire Now"," ",s.jsx(ot,{size:16})]})]})},t);default:return null}}function fde(){const{slug:e}=w8(),t=xv.find(n=>n.slug===e);return P.useEffect(()=>{t&&$i("view_item",{item_id:t.slug,item_name:t.name,item_category:t.category})},[t==null?void 0:t.slug]),t?s.jsxs("div",{className:"bg-white",children:[s.jsx(At,{}),s.jsx(gs,{title:`${t.name} | iOrthotics`,description:`${t.tagline} Custom made by iOrthotics using precision digital manufacturing.`,descLimit:160,image:t.img,jsonLd:ide(t)}),s.jsxs("section",{className:"w-full min-h-[60vh] flex flex-col lg:flex-row overflow-hidden",children:[s.jsx("div",{className:"relative flex-1 bg-dark-blue flex flex-col justify-center px-10 lg:px-16 xl:px-24 py-32 lg:py-0",children:s.jsxs(lt.div,{initial:{opacity:0,y:32}
586,animate:{opacity:1,y:0},transition:{duration:.9,delay:.1,ease:[.22,1,.36,1]},className:"relative z-10 text-center lg:text-left",children:[s.jsxs(Ie,{to:"/products",className:"inline-flex items-center gap-2 text-white/40 font-inter text-sm hover:text-pistachio transition-colors mb-8",children:[s.jsx(Hh,{size:14})," Back to Products"]}),s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-4",children:t.category}),s.jsx("h1",{className:"font-cal leading-tight tracking-tight mb-4 text-white",style:{fontSize:"clamp(32px, 4vw, 64px)"},children:t.name}),t.badge&&s.jsx("span",{className:"inline-block px-3 py-1 bg-pistachio text-dark-blue font-inter font-bold text-xs rounded-full mb-4",children:t.badge}),s.jsx("p",{className:"text-white/70 font-inter text-lg leading-relaxed mb-10 max-w-md",children:t.tagline}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 items-center sm:items-start",children:[s.jsxs(Ie,{to:"/contact",className:"inline-flex items-center gap-2 px-8 py-3.5 bg-pistachio text-dark-blue font-inter font-bold text-base rounded-full hover:bg-pistachio/90 transition-all duration-200",children:["Enquire ",s.jsx(ot,{size:18})]}),t.category!=="iO Brace Range"&&s.jsx(ap,{variant:"button"})]})]})}),s.jsx(lt.div,{className:"relative flex-1 min-h-[50vh] lg:min-h-[60vh] overflow-hidden bg-pale-blue flex items-center justify-center p-12",initial:{opacity:0,x:40},animate:{opacity:1,x:0},transition:{duration:1,delay:.3,ease:[.22,1,.36,1]},children:s.jsx("img",{src:t.img,alt:t.name,className:"max-w-full max-h-full object-contain",style:{mixBlendMode:"multiply",filter:"drop-shadow(0 20px 40px rgba(18,32,72,0.18))"}})})]}),s.jsx("section",{className:"py-16 lg:py-24 bg-white",children:s.jsxs("div",{className:"max-w-screen-xl mx-auto px-6 lg:px-10 space-y-16",children:[t.sections.length===0?s.jsx(ude,{product:t}):t.sections.map((n,r)=>dde(n,r)),E0[t.slug]&&s.jsxs(_e,{children:[s.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[s.jsx("div",{className:"w-10 h-10 rounded-xl bg-pistachio/15 border border-pistachio/20 flex items-center justify-center flex-shrink-0",children:s.jsx(jV,{size:18,className:"text-pistachio"})}),s.jsx("h3",{className:"text-dark-blue font-cal text-2xl",children:"Common Applications"})]}),s.jsx("p",{className:"text-dark-blue/65 font-inter text-base leading-relaxed mb-6 max-w-3xl",children:E0[t.slug].summary}),s.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:E0[t.slug].items.map((n,r)=>s.jsxs("div",{className:"flex items-start gap-3 p-5 rounded-xl bg-pale-blue/60 border border-dark-blue/6",children:[s.jsx("div",{className:"w-2 h-2 rounded-full bg-pistachio mt-2 flex-shrink-0"}),s.jsxs("div",{children:[s.jsx("p",{className:"text-dark-blue font-inter font-semibold text-sm mb-0.5",children:n.name}),n.note&&s.jsx("p",{className:"text-dark-blue/55 font-inter text-xs leading-relaxed",children:n.note})]})]},r))})]}),s.jsx(Jue,{images:t.modalImages,name:t.name})]})}),s.jsx(ede,{current:t}),s.jsx("section",{className:"pb-20 bg-white",children:s.jsx("div",{className:"max-w-screen-xl mx-auto px-6 lg:px-10",children:s.jsx(tde,{name:t.name})})}),s.jsx(Tt,{}),s.jsx(nde,{product:t})]}):s.jsxs("div",{className:"bg-white",children:[s.jsx(At,{}),s.jsxs("div",{className:"min-h-screen flex flex-col items-center justify-center text-center px-6",children:[s.jsx("p",{className:"text-dark-blue/40 font-inter text-lg mb-4",children:"Product not found."}),s.jsx(Ie,{to:"/products",className:"text-pistachio font-inter font-semibold hover:underline",children:"← Back to Products"})]}),s.jsx(Tt,{})]})}const HR=xv.filter(e=>e.category==="Custom Orthotics"),hde=xv.filter(e=>e.category==="iO Brace Range");function VR({product:e,onClick:t,to:n,imgHeight:r=210}){const i=e.category==="iO Brace Range"?"iO Brace":"Custom Orthotic",o=n?"Vie
586w details":"Quick view",a="relative flex flex-col w-full h-full text-left rounded-2xl overflow-hidden bg-white ring-1 ring-dark-blue/[0.06] shadow-[0_1px_3px_rgba(18,32,72,0.05)] transition-all duration-300 ease-out hover:-translate-y-1 hover:ring-dark-blue/10 hover:shadow-[0_22px_45px_-18px_rgba(18,32,72,0.28)] focus:outline-none focus-visible:ring-2 focus-visible:ring-pistachio",l=s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"relative overflow-hidden bg-gradient-to-b from-[#f5f7f9] to-[#e8ecf1]",style:{height:`${r}px`},children:[s.jsx("img",{src:e.img,alt:e.name,loading:"lazy",className:"relative z-10 w-full h-full object-contain p-4 sm:p-6 mix-blend-multiply transition-transform duration-[650ms] ease-out scale-[1.15] group-hover:scale-[1.3]",style:e.flipX?{transform:`scaleX(-1) scale(${(e.imgScale||1)*1.15})`}:e.imgScale?{transform:`scale(${e.imgScale*1.15})`}:void 0}),e.badge&&s.jsx("span",{className:"absolute top-3 left-3 z-20 px-2.5 py-1 bg-pistachio text-dark-blue font-inter font-bold text-[10px] uppercase tracking-wider rounded-full shadow-sm",children:e.badge})]}),s.jsxs("div",{className:"relative flex flex-col flex-grow p-5 border-t border-dark-blue/[0.05]",children:[!e.hideKicker&&s.jsx("p",{className:"text-pistachio font-inter font-semibold text-[10px] uppercase tracking-[0.22em] mb-2",children:i}),s.jsx("h3",{className:"text-dark-blue font-cal text-lg leading-tight mb-1.5",children:e.name}),s.jsx("p",{className:"text-dark-blue/50 font-inter text-xs leading-relaxed flex-grow line-clamp-2",children:e.tagline}),s.jsxs("div",{className:"mt-4 flex items-center justify-between",children:[s.jsx("span",{className:"text-dark-blue/70 font-inter font-semibold text-xs group-hover:text-dark-blue transition-colors duration-300",children:o}),s.jsx("span",{className:"flex items-center justify-center w-8 h-8 rounded-full bg-dark-blue/[0.06] text-dark-blue transition-all duration-300 group-hover:bg-pistachio",children:s.jsx(ot,{size:14,className:"transition-transform duration-300 group-hover:translate-x-0.5"})})]})]})]});return n&&t?s.jsxs("div",{className:"relative w-full h-full group",children:[s.jsx(Ie,{to:n,className:a,children:l}),s.jsxs("button",{type:"button",onClick:c=>{c.stopPropagation(),t()},"aria-label":`Quick view ${e.name}`,className:"absolute top-3 right-3 z-30 inline-flex items-center gap-1.5 px-3 py-1.5 bg-white/90 backdrop-blur-sm text-dark-blue font-inter font-semibold text-[10px] uppercase tracking-wider rounded-full shadow-sm ring-1 ring-dark-blue/10 hover:bg-pistachio transition-colors duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-pistachio",children:[s.jsx(AL,{size:12}),"Quick view"]})]}):n?s.jsx(Ie,{to:n,className:`group ${a}`,children:l}):s.jsx("button",{onClick:t,className:`group ${a}`,children:l})}function pde(){const[e,t]=P.useState(!1),{count:n,ref:r}=_k(220,2200);return s.jsx(_e,{children:s.jsxs("div",{className:"overflow-hidden",children:[s.jsxs("button",{onClick:()=>t(!e),className:"w-full flex flex-col sm:flex-row items-center gap-6 px-8 py-7 text-left group focus:outline-none",children:[s.jsx("div",{className:"flex-shrink-0 w-14 h-14 rounded-2xl bg-pistachio/15 border border-pistachio/20 flex items-center justify-center",children:s.jsx("img",{src:lr.leafIcon,alt:"EnviroFoam",className:"w-8 h-8 object-contain"})}),s.jsxs("div",{ref:r,className:"flex-grow flex flex-col sm:flex-row sm:items-center gap-2 sm:gap-6",children:[s.jsxs("div",{className:"flex items-baseline gap-2 relative pl-5",children:[s.jsx("div",{className:"absolute left-0 top-1/2 -translate-y-1/2 w-[3px] h-10 bg-pistachio rounded-full"}),s.jsx("span",{className:"font-cal text-pistachio leading-none",style:{fontSize:"clamp(42px, 5vw, 64px)"},children:n}),s.jsx("span",{className:"text-white font-cal",style:{fontSize:"clamp(20px, 2vw, 28px)"},children:"tons"})]}),s.jsxs("div",{children:[s.jsx("p",{className:"text-pistachio font-inter font-semibold text-xs uppercase tracking-widest mb-0.5",children:"Sustainability"}),s.jsx("p",{className:"text-white font-cal text-lg leading-tight",children:"EnviroFoam — Landfill Saved Annually"}),s.jsx("p",{className:"text-white/50 font-inter text-sm mt-0.5 hidden sm:block",children:"Our near-zero-waste orthotic material — additive, not subtractive. Diverted from US landfills each year."})]})]}),s.jsx(us,{size:20,className:`text-pistachio flex-shrink-0 transition-transform duration-300 ${e?"rotate-180":""}`})]}),s.jsx("div",{className:`overflow-hidden transition-all duration-500 ease-in-out ${e?"max-h-96":"max-h-0"}`,children:s.jsx("div",{className:"px-8 pb-8 border-t border-white/8 pt-6 grid grid-cols-1 sm:grid-cols-3 gap-6",children:[{stat:"~2,200 lbs",label:"Less waste vs milled polypropylene",sub:"Per 1,000 devices"},{stat:"6",label:"Density options",sub:"Very soft to firm"}
586,{stat:"100%",label:"Shoe-ready out of the box",sub:"Minimal fitting required"}].map(({stat:i,label:o,sub:a})=>s.jsxs("div",{className:"flex items-start gap-4",children:[s.jsx(oa,{size:16,className:"text-pistachio mt-0.5 flex-shrink-0"}),s.jsxs("div",{children:[s.jsxs("p",{className:"text-white font-inter font-bold text-sm",children:[i," — ",o]}),s.jsx("p",{className:"text-white/40 font-inter text-xs mt-0.5",children:a})]})]},o))})})]})})}function zS({label:e,title:t,subtitle:n,dark:r=!1}){return s.jsxs("div",{className:"flex flex-col items-center text-center sm:flex-row sm:items-center sm:text-left gap-6 mb-10",children:[s.jsxs("div",{className:"flex-shrink-0",children:[s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-1",children:e}),s.jsx("h2",{className:`font-cal leading-tight ${r?"text-white":"text-dark-blue"}`,style:{fontSize:"clamp(22px, 2.5vw, 36px)"},children:t}),n&&s.jsx("p",{className:`font-inter text-sm mt-1 ${r?"text-white/50":"text-dark-blue/50"}`,children:n})]}),s.jsx("div",{className:`flex-1 h-px hidden sm:block ${r?"bg-white/10":"bg-dark-blue/8"}`})]})}function mde(){const[e,t]=P.useState(null),n=vr();return P.useEffect(()=>{if(n.hash==="#envirofoam"){const r=HR.find(i=>i.slug==="envirofoam");r&&t(r),requestAnimationFrame(()=>{var i;(i=document.getElementById("orthotics"))==null||i.scrollIntoView({behavior:"smooth",block:"start"})})}},[n.hash]),s.jsxs("div",{className:"bg-white",children:[s.jsx(At,{}),e&&s.jsx(que,{product:e,images:[e.img],onClose:()=>t(null),darkImageBg:e.category==="iO Brace Range"}),s.jsxs("section",{className:"w-full min-h-[90vh] flex flex-col lg:flex-row overflow-hidden",children:[s.jsx("div",{className:"relative flex-1 bg-dark-blue flex flex-col justify-center px-10 lg:px-16 xl:px-24 py-32 lg:py-0",children:s.jsxs(lt.div,{initial:{opacity:0,y:32},animate:{opacity:1,y:0},transition:{duration:.9,delay:.1,ease:[.22,1,.36,1]},className:"relative z-10 flex flex-col text-center lg:text-left items-center lg:items-start",children:[s.jsxs("div",{className:"flex items-center gap-4 mb-8 justify-center lg:justify-start",children:[s.jsx("div",{className:"w-12 h-px bg-pistachio/60"}),s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em]",children:"Our Products"}),s.jsx("div",{className:"w-12 h-px bg-pistachio/60"})]}),s.jsxs("h1",{className:"font-cal leading-tight tracking-tight mb-6",style:{fontSize:"clamp(36px, 4.5vw, 72px)"},children:[s.jsxs("span",{className:"text-white",children:["Precision.",s.jsx("br",{}),"Personalised.",s.jsx("br",{})]}),s.jsx("span",{className:"text-pistachio",children:"Unmatched."})]}),s.jsx("p",{className:"text-gradient-shimmer font-inter font-light mb-10 max-w-md",style:{fontSize:"clamp(22px, 1.9vw, 32px)"},children:"Every device engineered around your patient — never a template. Sustainably manufactured and hand-finished to clinician specification."}),s.jsx("div",{className:"flex flex-col sm:flex-row gap-4 items-center sm:items-start",children:s.jsxs("a",{href:Nn,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-2 px-8 py-3.5 bg-pistachio text-dark-blue font-inter font-bold text-base rounded-full hover:bg-pistachio/90 transition-all duration-200",children:["Partner with Us ",s.jsx(ot,{size:18})]})})]})}),s.jsx(lt.div,{className:"relative flex-1 min-h-[50vh] lg:min-h-screen overflow-hidden bg-[#f5f3f0]",initial:{opacity:0,x:40},animate:{opacity:1,x:0},transition:{duration:1,delay:.3,ease:[.22,1,.36,1]},children:s.jsx("img",{src:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/7ad16cf7a_Designer.png",alt:"Patient fitting a custom iOrthotics insole",className:"absolute inset-0 w-full h-full object-cover",style:{objectPosition:"center center"}})})]}),s.jsx("section",{className:"py-16 lg:py-24 bg-white",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsxs("div",{id:"orthotics",className:"scroll-mt-24",children:[s.jsx(_e,{children:s.jsx(zS,{label:"Custom Orthotics",title:"Custom Orthotic Range",subt
586itle:"Prescription custom orthotics for every foot type, footwear, and activity level."})}),s.jsx(Dn,{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-5 items-stretch",children:HR.map(r=>s.jsx(Ln,{className:"h-full",children:s.jsx(VR,{product:r,to:`/products/${r.slug}`,onClick:()=>t(r),imgHeight:260})},r.name))})]})})}),s.jsx("section",{className:"py-16 lg:py-24 bg-dark-blue",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsx(pde,{})})}),s.jsx("section",{className:"py-16 lg:py-24 bg-white",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsx(ap,{})})}),s.jsx("section",{className:"py-16 lg:py-24 bg-dark-blue",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsxs("div",{id:"braces",className:"scroll-mt-24 space-y-16",children:[s.jsx(_e,{children:s.jsx(zS,{dark:!0,label:"Ankle-Foot Orthoses & Bracing",title:"iO Brace Range",subtitle:"3D-printed and polypropylene AFOs for complex lower-limb presentations."})}),s.jsx(Dn,{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-3 gap-5 items-stretch",children:hde.map(r=>s.jsx(Ln,{className:"h-full",children:s.jsx(VR,{product:r,to:`/products/${r.slug}`,imgHeight:320})},r.name))}),s.jsx(zue,{})]})})}),s.jsx("section",{className:"py-16 lg:py-24 bg-white",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsx(Zue,{})})}),s.jsx(tF,{dark:!0,variant:"products"}),s.jsxs("div",{className:"relative bg-white py-20 lg:py-24 text-center overflow-hidden",children:[s.jsx(vv,{asBackground:!0}),s.jsxs("div",{className:"relative z-10 max-w-screen-2xl mx-auto px-6 lg:px-10",children:[s.jsx("h2",{className:"text-dark-blue font-cal leading-tight mb-4",style:{fontSize:"clamp(26px, 3vw, 44px)"},children:"Ready to prescribe?"}),s.jsx("p",{className:"text-dark-blue font-inter font-light text-xl lg:text-2xl mb-8 max-w-xl mx-auto",children:"Partner with iOrthotics to access our full product range."}),s.jsxs("a",{href:Nn,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-10 py-4 bg-dark-blue text-white font-inter font-bold text-base rounded-full hover:bg-dark-blue/90 transition-colors",children:["Partner with Us ",s.jsx(ot,{size:18})]})]})]}),s.jsx(Tt,{})]})}const P0=["Request a sample","Send us a design file","Schedule an online demo","Tour Our Facility"];function Gq({open:e,onClose:t}){const[n,r]=P.useState(""),[i,o]=P.useState(""),[a,l]=P.useState(""),[c,d]=P.useState(P0[0]),[p,f]=P.useState(""),[m,g]=P.useState(!1),[b,y]=P.useState(!1),[v,x]=P.useState(""),[_,j]=P.useState({sources:[],referral_name:"",event_name:""}),S=zu("request_quote");P.useEffect(()=>(document.body.style.overflow=e?"hidden":"",()=>{document.body.style.overflow=""}),[e]),P.useEffect(()=>{e&&(y(!1),x(""))},[e]);const N=async E=>{var A,I,M,C;if(E.preventDefault(),x(""),!_.sources.length){x("Please tell us how you heard about us.");return}g(!0);try{const R=await st.functions.invoke("requestQuote",{first_name:n,last_name:i,email:a,inquiry_type:c,message:p,sources:_.sources,referral_name:_.referral_name,event_name:_.event_name});(A=R==null?void 0:R.data)!=null&&A.ok?(y(!0),$i("generate_lead",{lead_source:"print_quote",form_name:"request_quote",page_path:window.location.pathname,currency:"USD"})):x(((I=R==null?void 0:R.data)==null?void 0:I.error)||"Something went wrong. Please try again.")}catch(R){x(((C=(M=R==null?void 0:R.response)==null?void 0:M.data)==null?void 0:C.error)||R.message||"Submission failed.")}finally{g(!1)}},O=()=>{b&&(r(""),o(""),l(""),d(P0[0]),f(""),j({sources:[],referral_name:"",event_name:""})),t()};return s.jsx(yr,{children:e&&s.jsxs(lt.div,{className:"fixed inset-0 z-[100] flex items-center justify-center p-4",initial:{opacity:0}
586,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},children:[s.jsx("div",{className:"absolute inset-0 bg-dark-blue/80 backdrop-blur-sm",onClick:O}),s.jsxs(lt.div,{className:"relative w-full max-w-lg bg-white rounded-3xl shadow-2xl overflow-hidden",initial:{opacity:0,y:24,scale:.97},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:24,scale:.97},transition:{duration:.28,ease:[.22,1,.36,1]},children:[s.jsxs("div",{className:"bg-dark-blue px-7 py-6 flex items-center justify-between",children:[s.jsx("img",{src:lr.whiteLogo,alt:"iOrthotics",className:"h-12 w-auto"}),s.jsx("button",{onClick:O,className:"text-white/70 hover:text-white p-2 rounded-lg transition-colors","aria-label":"Close",children:s.jsx(zi,{size:20})})]}),b?s.jsxs("div",{className:"px-7 py-12 text-center",children:[s.jsx("div",{className:"w-16 h-16 rounded-full bg-pistachio/20 flex items-center justify-center mx-auto mb-5",children:s.jsx(au,{size:32,className:"text-pistachio"})}),s.jsx("h3",{className:"text-dark-blue font-cal text-2xl mb-3",children:"Thanks — we'll be in touch."}),s.jsx("p",{className:"text-dark-blue/60 font-inter text-sm leading-relaxed max-w-sm mx-auto",children:"Your request has been sent to our team. One of our specialists will contact you."}),s.jsxs("button",{onClick:O,className:"mt-7 inline-flex items-center gap-2 px-6 py-3 bg-pistachio text-dark-blue font-inter font-bold text-sm rounded-full hover:bg-pistachio/90 transition-colors",children:["Close ",s.jsx(ot,{size:16})]})]}):s.jsxs("form",{onSubmit:N,onFocusCapture:S,className:"px-7 py-7",children:[s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-2",children:"Get a Quote"}),s.jsx("p",{className:"text-dark-blue/60 font-inter text-sm mb-6",children:"Just fill out the form below and we will be in contact."}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 mb-4",children:[s.jsx(ef,{label:"First Name",required:!0,children:s.jsx("input",{value:n,onChange:E=>r(E.target.value),required:!0,className:"w-full px-4 py-3 bg-pale-blue border border-dark-blue/10 rounded-lg text-dark-blue font-inter text-sm focus:outline-none focus:border-pistachio transition-colors",placeholder:"Jane"})}),s.jsx(ef,{label:"Last Name",required:!0,children:s.jsx("input",{value:i,onChange:E=>o(E.target.value),required:!0,className:"w-full px-4 py-3 bg-pale-blue border border-dark-blue/10 rounded-lg text-dark-blue font-inter text-sm focus:outline-none focus:border-pistachio transition-colors",placeholder:"Smith"})})]}),s.jsx(ef,{label:"Email",required:!0,children:s.jsx("input",{type:"email",value:a,onChange:E=>l(E.target.value),required:!0,className:"w-full px-4 py-3 bg-pale-blue border border-dark-blue/10 rounded-lg text-dark-blue font-inter text-sm focus:outline-none focus:border-pistachio transition-colors",placeholder:"[email protected]"})}),s.jsx("div",{className:"mt-4 mb-4",children:s.jsx(ef,{label:"Choose one",required:!0,children:s.jsx("select",{value:c,onChange:E=>d(E.target.value),required:!0,className:"w-full px-4 py-3 bg-pale-blue border border-dark-blue/10 rounded-lg text-dark-blue font-inter text-sm focus:outline-none focus:border-pistachio transition-colors",children:P0.map(E=>s.jsx("option",{value:E,children:E},E))})})}),s.jsx("div",{className:"mb-6",children:s.jsx(ef,{label:"Message",children:s.jsx("textarea",{value:p,onChange:E=>f(E.target.value),rows:4,className:"w-full px-3.5 py-2.5 bg-pale-blue border border-dark-blue/10 rounded-lg text-dark-blue font-inter text-sm resize-none focus:outline-none focus:border-pistachio transition-colors",placeholder:"Tell us about your project…"})})}),s.jsx("div",{className:"mb-6",children:s.jsx(Gu,{value:_,onChange:j,required:!0})}),v&&s.jsx("p",{className:"text-red-600 font-inter text-sm mb-4",children:v}),s.jsx("button",{type:"submit",disabled:m,className:"w-full py-3.5 bg-pistachio text-dark-blue font-inter font-bold text-sm rounded-full hover:bg-pistachio/90 transition-colors flex items-center justify-center gap-2 disabled:opacity-60 disabled:cursor-not-allowed",children:m?s.jsxs(s.Fragment,{children:[s.jsx(pi,{size:18,className:"animate-spin"})," Submitting…"]}):s.jsxs(s.Fragment,{children:["Submit ",s.jsx(ot,{size:16})]})})]})]})]})})}function ef({label:e,required:t,children:n}){return s.jsxs("div",{children:[s.jsxs("label",{className:"block text-dark-blue/70 font-inter font-medium text-xs mb-1.5",children:[e,t&&s.jsx("span",{className:"text-pistachio ml-0.5",children:"*"})]}),n]})}const gde=[{icon:QV,title:"Upload Your Model",body:"Send us your 3D file in STL or OBJ format — drag, drop, done.",image:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/4fc08e243_DSC04731.jpg",action:{type:"quote"}},{icon:mG,title:"Get a Quote",body:"Your uploaded model is analysed and quoted instantly.",image:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/ba25887c8_Biome
586chanical.jpg",action:{type:"quote"}},{icon:uG,title:"We Print",body:"Parts are produced on HP Multi Jet Fusion technology.",image:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/0eaee4918_DSC04689.jpg",action:{type:"link",to:"/capabilities"}},{icon:ML,title:"Delivered to You",body:"Shipped to your door or ready for pickup at our facility.",image:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/35f991758_generated_image.png",action:null}];function yde({onQuote:e}){const t=vo();return s.jsxs("section",{className:"bg-white py-20 lg:py-28 relative overflow-hidden",children:[s.jsx("div",{className:"pointer-events-none absolute -top-20 left-1/2 -translate-x-1/2 w-[700px] h-[340px] bg-pistachio/8 blur-3xl rounded-full","aria-hidden":"true"}),s.jsxs("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10 relative",children:[s.jsxs(_e,{className:"text-center mb-16 lg:mb-20",children:[s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.32em] mb-4",children:"How It Works"}),s.jsx("h2",{className:"text-dark-blue font-cal leading-[1.05]",style:{fontSize:"clamp(34px, 4.4vw, 64px)"},children:"From File to Finished Part."})]}),s.jsxs("div",{className:"relative",children:[s.jsx("div",{className:"hidden lg:block absolute left-[12.5%] right-[12.5%] top-16 h-[2px] bg-dark-blue/8 overflow-hidden",children:!t&&s.jsx(lt.div,{className:"h-full w-full bg-gradient-to-r from-pistachio/10 via-pistachio to-pistachio/10 origin-left",initial:{scaleX:0},whileInView:{scaleX:1},viewport:{once:!0},transition:{duration:1.1,ease:"easeInOut",delay:.35}})}),s.jsx(Dn,{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 lg:gap-8",stagger:.12,children:gde.map((n,r)=>s.jsx(Ln,{children:s.jsx(vde,{step:n,index:r,reduced:t,onQuote:e})},n.title))})]})]})]})}function vde({step:e,index:t,reduced:n,onQuote:r}){var p,f;const i=e.icon,o=String(t+1).padStart(2,"0"),a=((p=e.action)==null?void 0:p.type)==="link",l=((f=e.action)==null?void 0:f.type)==="quote",c=a||l,d=s.jsxs(lt.div,{whileHover:n?void 0:{y:-8},transition:{type:"spring",stiffness:300,damping:22},className:`group relative bg-pale-blue rounded-2xl p-8 h-full overflow-hidden border border-dark-blue/5 hover:border-pistachio/40 hover:shadow-[0_18px_48px_-18px_rgba(18,32,72,0.28)] transition-[border,box-shadow] duration-300 ${c?"cursor-pointer":""}`,children:[!e.image&&s.jsx("span",{className:"pointer-events-none absolute -bottom-5 -right-2 font-cal leading-none text-dark-blue/[0.06] group-hover:text-pistachio/25 transition-colors duration-500 select-none",style:{fontSize:"clamp(96px, 8vw, 132px)"},children:o}),e.image&&s.jsxs("div",{className:"relative mb-6 -mx-8 -mt-8 overflow-hidden",children:[s.jsx("img",{src:e.image,alt:e.title,loading:"lazy",className:"w-full h-44 object-cover group-hover:scale-105 transition-transform duration-500"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-pale-blue via-transparent to-transparent"})]}),s.jsx("div",{className:"relative mb-7",children:s.jsxs(lt.div,{initial:n?!1:{scale:.7,opacity:0},whileInView:{scale:1,opacity:1},viewport:{once:!0},transition:{type:"spring",stiffness:260,damping:18,delay:.15+t*.12},className:"relative w-16 h-16 rounded-2xl bg-gradient-to-br from-dark-blue to-[#0a1230] flex items-center justify-center shadow-lg ring-1 ring-white/10 group-hover:scale-110 group-hover:shadow-[0_10px_32px_-6px_rgba(164,209,126,0.45)] transition-all duration-300",children:[s.jsx(i,{size:28,strokeWidth:1.75,className:"text-pistachio group-hover:text-white transition-colors duration-300"}),s.jsxs("span",{className:"absolute -top-1.5 -right-1.5 flex h-3 w-3",children:[s.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-pistachio/60"}),s.jsx("span",{className:"relative inline-flex rounded-full h-3 w-3 bg-pistachio ring-2 ring-pale-blue"})]})]})}),s.jsxs("div",{className:"relative",children:[s.jsxs("span",{className:"inline-block text-pistachio font-cal text-sm mb-1.5 tracking-wide",children:["Step ",o]}),s.jsxs("h3",{className:"text-dark-blue font-inter font-bold text-lg leading-snug mb-2.5 inline-flex items-center gap-2",children:[e.title,c&&s.jsx(AV,{size:16,className:"text-pistachio/60 group-hover:text-pistachio transition-all duration-300 group-hover:translate-x-0.5 group-hover:-translate-y-0.5"})]}),s.jsx("p",{className:"text-dark-blue/60 font-inter text-sm leading-relaxed",children:e.body})]})]});return a?s.jsx(Ie,{to:e.action.to,className:"block h-full focus:outline-none focus-visible:ring-2 focus-visible:ring-pistachio rounded-2xl",children:d}):l?s.jsx("button",{type:"button",onClick:r,className:"block h-full w-full text-left focus:outline-none focus-visible:ring-2 focus-visible:ring-pistachio rounded-2xl",children:d}):d}const WR=["HP Multi Jet Fusion Technology","Rapid Lead-Times","Volume Discounts","Outstanding Surface Finish & Tolerances","Small Batch to Full Production Runs","Advanced Prototyping"];function xde(){const e=[...WR,...WR];return s.jsx("div",{className:"bg-pistachio text-dark-blue border-y border-dark-blue/10 overflow-hidden",children:s.jsx("div",{className:"flex whitespace-nowrap",style:{animation:"marquee 32s linear infinite"},children:e.map((t,n)=>s.jsxs("div",{className:"flex items-center py-3 px-6 font-inter font-semibold text-sm tracking-wide",children:[t,s.jsx("span",{className:"ml-6 text-dark-blue/30",children:"•"})]},n))})})}const Sc=[{src:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/6ce592dbc_ShellOnlyPair.jpg",alt:"Pair of bare 3D-printed orthotic shells on white"},{src:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/1b66319ff_ShellOnlySingle.jpg",alt:"Single 3D-printed orthotic shell showing medial arch lattice"},{src:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/96ee00c80_ShellOnly.png",alt:"Pile of finished 3D-printed orthotic shells from the print floor"},{src:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/d4096c12f_generated_image.png",alt:"3D-printed lattice orthopedic wrist brace"},{src:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/d183c678a_generated_image.png",alt:"3D-printed eyeglass frames"},{src:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/7413c06e6_generated_image.png",alt:"3D-printed knurled threaded knobs"},{src:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/0b7363d30_generated_image.png",alt:"3D-printed chainmail on prosthetic hand"},{src:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/1db7a778f_generated_image.png",alt:"3D-printed side-release buckles with HP logo"}],bde=4200;function wde(){const[e,t]=P.useState(0),[n,r]=P.useState(!1),i=P.useCallback(o=>{t(a=>(o+Sc.length)%Sc.length)},[]);return P.useEffect(()=>{if(n)return;const o=setInterval(()=>t(a=>(a+1)%Sc.length),bde);return()=>clearInterval(o)},[n]),s.jsxs("section",{className:"bg-white py-20 lg:py-28 relative overflow-hidden",children:[s.jsx(av,{variant:"light"}),s.jsxs("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10 relative z-10",children:[s.jsxs(_e,{className:"text-center mb-12 lg:mb-16",children:[s.jsx("p",{className:"text-dark-blue text-xs font-inter font-semibold uppercase tracking-[0.32em] mb-4",children:"From Our Print Floor"}),s.jsx("h2",{className:"text-dark-blue font-cal leading-[1.05]",style:{fontSize:"clamp(30px, 3.8vw, 52px)"},children:"Proven Results."})]}),s.jsxs("div",{className:"relative mx-auto max-w-xl",onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:[s.jsx("div",{className:"relative rounded-3xl overflow-hidden border border-dark-blue/10 shadow-[0_24px_60px_-24px_rgba(18,32,72,0.35)] bg-white",children:s.jsx("div",{className:"relative aspect-[16/11]",children:s.jsx(yr,{mode:"wait",children:s.jsx(lt.img,{src:Sc[e].src,alt:Sc[e].alt,initial:{opacity:0,scale:1.04}
586,animate:{opacity:1,scale:1},exit:{opacity:0,scale:.98},transition:{duration:.6,ease:[.22,1,.36,1]},style:{mixBlendMode:"multiply"},className:"absolute inset-0 w-full h-full object-contain p-6"},e)})})}),s.jsx("div",{className:"flex items-center justify-center gap-2.5 mt-7",children:Sc.map((o,a)=>s.jsx("button",{onClick:()=>i(a),"aria-label":`Go to slide ${a+1}`,className:`h-2 rounded-full transition-all duration-300 focus:outline-none ${a===e?"w-7 bg-pistachio":"w-2 bg-dark-blue/20 hover:bg-dark-blue/40"}`},a))})]})]})]})}function _de(){const[e,t]=P.useState(!1);return s.jsxs("div",{className:"bg-white",children:[s.jsx(At,{}),s.jsx(gs,{jsonLd:sde}),s.jsxs("section",{className:"relative h-screen min-h-[600px] flex items-center justify-center overflow-hidden",children:[s.jsx("video",{src:PS.printRoom,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,className:"absolute inset-0 w-full h-full object-cover","aria-hidden":"true"}),s.jsx("div",{className:"absolute inset-0 bg-dark-blue/65","aria-hidden":"true"}),s.jsxs("div",{className:"relative z-10 text-center px-6 max-w-4xl mx-auto",children:[s.jsx("img",{src:lr.whiteLogo,alt:"iOrthotics",className:"h-20 w-auto mx-auto mb-8"}),s.jsxs("h1",{className:"text-white font-cal leading-tight mb-6",style:{fontSize:"clamp(40px, 6vw, 100px)"},children:["Professional 3D Printing",s.jsx("br",{}),"That Delivers."]}),s.jsx("p",{className:"text-gradient-shimmer font-inter font-light mb-8 max-w-2xl mx-auto",style:{fontSize:"clamp(22px, 1.9vw, 32px)"},children:"Fast turnaround. Produced with HP Multi Jet Fusion technology."}),s.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4",children:[s.jsx("button",{onClick:()=>t(!0),className:"px-7 py-3.5 bg-pistachio text-dark-blue font-inter font-bold text-sm rounded-full hover:bg-pistachio/90 transition-colors",children:"Get a Quote"}),s.jsx(Ie,{to:"/print-only-service/materials",className:"px-7 py-3.5 bg-white/10 border border-white/30 text-white font-inter font-semibold text-sm rounded-full hover:bg-white/20 transition-colors",children:"Explore Materials"})]}),s.jsx(Ie,{to:"/news/6a5eefdd1666b3bfe0f8ab82",className:"inline-flex items-center gap-2 px-5 py-2.5 bg-white/10 border border-pistachio/40 text-white font-inter font-semibold rounded-xl text-sm mt-6 hover:bg-white/15 hover:border-pistachio/70 transition-colors duration-200",children:"🏆 Official HP Case Study Partner"})]})]}),s.jsx(xde,{}),s.jsx("div",{className:"bg-white border-b border-dark-blue/10",children:s.jsxs("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10 py-5 flex flex-wrap items-center justify-center gap-x-8 gap-y-3 text-sm font-inter",children:[s.jsxs(Ie,{to:"/capabilities",className:"inline-flex items-center gap-1.5 text-dark-blue/70 hover:text-dark-blue transition-colors",children:["Our Capabilities ",s.jsx("span",{"aria-hidden":!0,children:"→"})]}),s.jsx("span",{className:"hidden sm:inline-block w-px h-4 bg-dark-blue/15"}),s.jsxs(Ie,{to:"/print-only-service/materials",className:"inline-flex items-center gap-1.5 text-dark-blue/70 hover:text-dark-blue transition-colors",children:["Explore Materials ",s.jsx("span",{"aria-hidden":!0,children:"→"})]}),s.jsx("span",{className:"hidden sm:inline-block w-px h-4 bg-dark-blue/15"}),s.jsxs(Ie,{to:"/contact",className:"inline-flex items-center gap-1.5 text-dark-blue/70 hover:text-dark-blue transition-colors",children:["Contact Our US Team ",s.jsx("span",{"aria-hidden":!0,children:"→"})]})]})}),s.jsx("div",{id:"how-it-works",children:s.jsx(yde,{onQuote:()=>t(!0)})}),s.jsx("section",{className:"bg-white pt-6 lg:pt-10 pb-20 lg:pb-28",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 items-center",children:[s.jsxs(_e,{className:"text-center lg:text-left",children:[s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-4",children:"Who We Are"}),s.jsx("h2",{className:"text-dark-blue font-cal leading-tight mb-6",style:{fontSize:"clamp(32px, 4vw, 56px)"},children:"Specialists in Plastics Printing & Manufacturing."}),s.jsxs("div",{className:"space-y-7 text-dark-blue/70 font-inter font-light leading-[1.9] text-left",style:{fontSize:"clamp(18px, 1.4vw, 24px)"},children:[s.jsxs("p",{children:["Our print service is a specialized division built by one of the"," ",s.jsx("span",{className:"text-gradient-shimmer-dark font-normal",children:"longest-standing experts in 3D printing"}),". As part of the iOrthotics group, we have been operating from our Long Island City, New York facility for more than eight years, evolving into the"," ",s.jsx("span",{className:"text-gradient-shimmer-dark font-normal",children:"largest operator of HP MJF printers"}),"."]}),s.jsxs("p",{children:["We are recognized as"," ",s.jsx("span",{className:"text-gradient-shimmer-dark font-normal",children:"specialists in plastics printing and manufacturing"})," ","— ensuring every product meets the"," ",s.jsx("span",{className:"text-gradient-shimmer-dark font-normal",children:"highest standards of quality and compliance"}),"."]})]})]}),s.jsx(_e,{delay:.2,children:s.jsxs("div",{className:"relative rounded-3xl overflow-hidden border-2 border-dark-blue/10 shadow-[0_24px_60px_-24px_rgba(18,32,72,0.35)] aspect-[4/3]",children:[s.jsx("video",{src:PS.printRoom,autoPlay:!0,muted:!0,loop:!0,playsInl
586ine:!0,className:"absolute inset-0 w-full h-full object-cover","aria-hidden":"true"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-dark-blue/40 to-transparent","aria-hidden":"true"})]})})]})})}),s.jsx(wde,{}),s.jsx("div",{className:"relative bg-white py-20 lg:py-24 text-center overflow-hidden",children:s.jsxs("div",{className:"relative z-10 max-w-screen-2xl mx-auto px-6 lg:px-10",children:[s.jsx("h2",{className:"text-dark-blue font-cal leading-tight mb-6",style:{fontSize:"clamp(28px, 3.5vw, 48px)"},children:"Ready to print?"}),s.jsxs("p",{className:"text-dark-blue/70 font-inter font-light leading-[1.9] mb-8 max-w-3xl mx-auto",style:{fontSize:"clamp(18px, 1.4vw, 24px)"},children:["Every part is printed and shipped from our"," ",s.jsx("span",{className:"text-gradient-shimmer-dark font-normal",children:"Long Island City facility in New York"})," ","— a"," ",s.jsx("span",{className:"text-gradient-shimmer-dark font-normal",children:"US-based lab serving American partners directly"}),", with ",s.jsx("span",{className:"text-gradient-shimmer-dark font-normal",children:"Australian engineering behind every build"}),"."]}),s.jsx("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4",children:s.jsx("button",{onClick:()=>t(!0),className:"px-8 py-4 bg-pistachio text-dark-blue font-inter font-bold text-base rounded-full hover:bg-pistachio/90 transition-colors",children:"Get a Quote"})})]})}),s.jsx(Tt,{}),s.jsx(Gq,{open:e,onClose:()=>t(!1)})]})}const Sde="https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/bb7b87ff6_DSC04689.jpg";function jde(){return s.jsx("section",{className:"bg-dark-blue pt-28 lg:pt-36 pb-16 lg:pb-24",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 lg:gap-16 items-center",children:[s.jsxs(_e,{className:"text-center lg:text-left",children:[s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-4",children:"Capabilities"}),s.jsxs("h1",{className:"text-white font-cal leading-tight mb-6",style:{fontSize:"clamp(36px, 5vw, 72px)"},children:["High-performance"," ",s.jsx("span",{className:"text-pistachio",children:"3D printing"}),", engineered for repeatability."]}),s.jsxs("p",{className:"text-white/70 font-inter font-light leading-[1.9] max-w-2xl",style:{fontSize:"clamp(18px, 1.4vw, 24px)"},children:["At our print bureau, we combine"," ",s.jsx("span",{className:"text-gradient-shimmer font-normal",children:"HP Multi Jet Fusion technology"}),","," ",s.jsx("span",{className:"text-gradient-shimmer font-normal",children:"advanced materials and deep expertise"})," ","to deliver"," ",s.jsx("span",{className:"text-gradient-shimmer font-normal",children:"high-performance parts with speed, accuracy, and repeatability"})," ","— from our"," ",s.jsx("span",{className:"text-gradient-shimmer font-normal",children:"Long Island City facility"}),","," ",s.jsx("span",{className:"text-gradient-shimmer font-normal",children:"serving US partners directly"}),"."]})]}),s.jsx(_e,{delay:.15,children:s.jsx("div",{className:"relative rounded-2xl overflow-hidden border border-white/10 shadow-[0_24px_60px_-24px_rgba(0,0,0,0.5)] aspect-[4/3]",children:s.jsx("img",{src:Sde,alt:"Technician operating an HP Multi Jet Fusion 3D printer at the Long Island City print bureau",className:"absolute inset-0 w-full h-full object-cover",loading:"eager"})})})]})})})}const Nde="https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/05da743d9_image.png";function kde(){return s.jsxs("section",{className:"relative bg-white py-20 lg:py-28 overflow-hidden",children:[s.jsx(av,{variant:"light",opacity:.9}),s.jsxs("div",{className:"relative z-10 max-w-screen-2xl mx-auto px-6 lg:px-10 grid grid-cols-1 lg:grid-cols-2 gap-12 lg:gap-20",children:[s.jsxs(_e,{className:"text-center lg:text-left",children:[s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-4",children:"Technology"}),s.jsx("h2",{className:"text-dark-blue font-cal leading-tight mb-6",style:{fontSize:"clamp(28px, 3.4vw, 44px)"},children:"HP Multi Jet Fusion"}),s.jsx("p",{className:"text-dark-blue/70 font-inter leading-[1.9] mb-6 text-left",style:{fontSize:"clamp(16px, 1.2vw, 19px)"},children:"HP Multi Jet Fusion technology builds on decades of HP innovation in inkjet printing, jettable materials, precision mechanics, material science and imaging. With custom materials and rapid printing and curing capabilities across large build areas, it delivers exceptional speed and precise control over part and material properties beyond other 3D printing processes. By jetting functional agents through HP printheads, material can be fused, detailed and transformed point-by-point."}),s.jsx("p",{className:"text-dark-blue/70 font-inter leading-[1.9] text-left",style:{fontSize:"clamp(16px, 1.2vw, 19px)"},children:"Utilising HP's core strengths in precision mechanics, agent placement, high-volume manufacturing and material science, Multi Jet Fusion sets new benchmarks for part quality and functionality — producing parts up to ten times faster and at lower cost than other commercial 3D printing technologies."})]}),s.jsxs(_e,{delay:.15,className:"text-center lg:text-left",children:[s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-4",children:"What is MJF"}),s.jsx("h2",{className:"text-dark-blue font-cal leading-tight mb-6",style:{fontSize:"clamp(28px, 3.4vw, 44px)"},children:"A powder-bed process, layer by layer."}),s.jsx("p",{className:"text-dark-blue/70 font-inter leading-[1.9] text-left",style:{fontSize:"clamp(16px, 1.2vw, 19px)"},children:"Multi Jet Fusion (MJF) is a powder-bed 3D printing process that uses heat, fusing agents, and detailing agents to selectively melt material layer-by-layer and produce complex, high-resolution parts. The innovative capabilities of MJF technology offer a combination of speed, quality, and cost efficiency within the 3D printing industry."}),s.jsx("p",{className:"text-dark-blue/70 font-inter leading-[1.9] mt-6 text-left",style:{fontSize:"clamp(16px, 1.2vw, 19px)"},children:"A defining feature of Multi Jet Fusion is its voxel-level control, which enables tailored mechanical and physical properties within a single part — unlocking design possibilities not achievable with traditional manufacturing or other additive processes."})]})]}),s.jsx(_e,{delay:.1,className:"relative z-10",children:s.jsxs("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10 mt-14 lg:mt-20",children:[s.jsx("div",{className:"rounded-2xl overflow-hidden bg-white border border-dark-blue/5 shadow-[0_24px_60px_-30px_rgba(18,32,72,0.25)] p-6 lg:p-10",children:s.jsx("img",{src:Nde,alt:"HP Multi Jet Fusion 3D printing system — printer, processing station and build unit",className:"w-full h-auto object-contain",loading:"lazy"})}),s.jsxs(Ie,{to:"/news/6a5eefdd1666b3bfe0f8ab82",className:"mt-6 inline-flex items-center gap-3 px-5 py-3 rounded-full bg-white border border-dark-blue/10 shadow-[0_18px_40px_-24px_rgba(18,32,72,0.3)] hover:border-pistachio/60 hover:shadow-[0_18px_40px_-20px_rgba(164,209,126,0.35)] transition-all duration-200",children:[s.jsx("img",{src:lr.hpLogo,alt:"HP",className:"h-7 w-auto object-contain"}),s.jsx("span",{className:"text-dark-blue/70 font-inter text-sm font-medium",children:"Official HP Multi Jet Fusion Partner"})]})]})})]})}const Ode=[{icon:CL,title:"Powder Layering",points:["A thin layer of powdered material is spread across the build platform.","This forms the base for each new layer of the part."]},{icon:iW,title:"Selective Agent Application",points:["Printer deposits fusing agent and detailing agent only where the part geometry exists in the XY plane.","These agents define which powder areas will melt (fuse) and which will remain loose."]},{icon:gW,title:"Energy & Fusion",points:["Heat and infrared energy are applied to the layer.","Powder + fusing agent melts to form solid material.","Detailing agent sharpens edges and improves resolution."]},{icon:wG,title:"Layer-by-Layer Build",points:["The process repeats for every layer until the full 3D part is formed.","This voxel-based approach enables high precision and complex geometry."]},{icon:TG,title:"Cooling",points:["After printing, the entire build unit (parts + surrounding powder) is cooled in a controlled manner to maintain dimensional accuracy.","We cool print builds for a minimum of 24 hours."]},{icon:GG,title:"Powder Excavation",points:["Loose powder is removed from around and inside the parts.","Unfused powder is recycled and mixed with fresh material for future builds."]},{icon:MV,title:"Design Freedom",points:["Because the part is supported by surrounding powder, MJF allows internal 
586channels and cavities, undercuts, negative draft, and complex geometries difficult or impossible with traditional manufacturing."]}];function Ede(){return s.jsx("section",{className:"bg-dark-blue py-20 lg:py-28",children:s.jsxs("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:[s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-10 lg:gap-16 items-center mb-14",children:[s.jsxs(_e,{className:"text-center lg:text-left",children:[s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-4",children:"The Process"}),s.jsx("h2",{className:"text-white font-cal leading-tight",style:{fontSize:"clamp(28px, 3.4vw, 44px)"},children:"From powder bed to finished part."})]}),s.jsx(_e,{delay:.15,children:s.jsx("div",{className:"relative rounded-2xl overflow-hidden border border-white/10 shadow-[0_24px_60px_-24px_rgba(0,0,0,0.6)] aspect-[4/3]",children:s.jsx("img",{src:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/32f3257b3_DSC04706.jpg",alt:"Technician excavating a printed part from the powder bed",className:"absolute inset-0 w-full h-full object-cover",loading:"lazy"})})})]}),s.jsx(Dn,{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5",children:Ode.map((e,t)=>{const n=e.icon;return s.jsx(Ln,{children:s.jsxs("div",{className:"h-full rounded-2xl border border-white/10 bg-white/[0.04] p-6 hover:bg-white/[0.07] transition-colors duration-300",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[s.jsx("div",{className:"w-10 h-10 rounded-xl bg-pistachio/15 text-pistachio flex items-center justify-center",children:s.jsx(n,{size:20})}),s.jsx("span",{className:"text-pistachio/80 font-mono text-sm",children:String(t+1).padStart(2,"0")})]}),s.jsx("h3",{className:"text-white font-inter font-semibold text-lg mb-3",children:e.title}),s.jsx("ul",{className:"space-y-2",children:e.points.map((r,i)=>s.jsxs("li",{className:"text-white/60 font-inter text-sm leading-relaxed flex gap-2",children:[s.jsx("span",{className:"text-pistachio mt-1.5 w-1 h-1 rounded-full bg-pistachio flex-shrink-0"}),s.jsx("span",{children:r})]},i))})]})},e.title)})})]})})}const Pde=[{name:"PA11 (Nylon)",overall:"Flexible, ductile, bio-based nylon with good accuracy but slightly higher warpage risk than PA12.",img:"https://static.wixstatic.com/media/525bba_0e2e5a4f29954527ae8cecaee9802328~mv2.png/v1/fill/w_107,h_92,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/model3.png",accuracy:["Typical accuracy: ±0.3mm or ±0.3% part length","Small features: accurate down to 0.5mm","Wall thickness: 0.7mm recommended, 0.5mm possible with care","Surface: matte, slightly grainy"],design:["Clearance for assemblies: 0.5–0.7mm","Maintain uniform wall thickness to reduce distortion","Avoid large flat surfaces; add ribs to minimise warping","More flexible than PA12 → slightly more prone to deformation on large geometries"]},{name:"PA12 (Nylon)",overall:"High-accuracy, general-purpose nylon with excellent dimensional stability and fine feature capability.",img:"https://static.wixstatic.com/media/525bba_08ef8b5caebb499cb648b32e4d9b6d97~mv2.png/v1/fill/w_107,h_92,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/model2.png",accuracy:["Typical accuracy: ±0.2–0.3mm","HP 5200 optimized: ±0.17–0.23mm (XY), ±0.25–0.37mm (Z) for <80mm parts","Dimensional accuracy: ±0.2mm or ±0.2%","Minimum feature size: 0.1–0.2mm","Wall thickness: 0.5mm minimum, 0.75mm recommended","Surface: fine matte grain; bead blasting softens edges"],design:["XY plane holds tightest tolerances","Expect shrinkage; long flat parts may distort","Bead blasting reduces sharp detail","Large parts (>100mm): add ribs/curvature to reduce warping","Text/logos: 0.2mm height, 0.05mm depth"]},{name:"PP (Polypropylene)",overall:"Lightweight, chemically resistant, low-moisture-absorption material with stable long-term accuracy.",img:"https://static.wixstatic.com/media/525bba_f8478cb6c08643aca58cff4970554e5f~mv2.png/v1/fill/w_107,h_92,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/buckles.png",accuracy:["Typical accuracy: ±0.3mm or ±0.3%","Optimized small/medium parts: ±0.2mm","XY more accurate than Z","Moisture absorption <0.03% → excellent dimensional stability","Minimum feature size: 0.5–0.6mm, 0.7mm+ preferred","Wall thickness: 0.7mm recommended, 0.6mm possible"],design:["Clearance: 0.4mm for assemblies, 0.7mm for moving parts","Can warp → orient long/flat surfaces parallel to XY plane","Add ribs in thin, flat areas if needed"]}];function Ade(){return s.jsx("section",{className:"bg-white py-20 lg:py-28",children:s.jsxs("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:[s.jsxs(_e,{className:"max-w-2xl mb-14 text-center lg:text-left",children:[s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-4",children:"Accuracy & Tolerances"}),s.jsx("h2",{className:"text-dark-blue font-cal leading-tight",style:{fontSize:"clamp(28px, 3.4vw, 44px)"},children:"Material guides for repeatable, production-grade parts."})]}),s.jsx(Dn,{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:Pde.map(e=>s.jsx(Ln,{children:s.jsxs("div",{className:"h-full rounded-2xl border border-dark-blue/10 bg-pale-blue/40 overflow-hidden flex flex-col",children:[s.jsx("div",{className:"bg-white p-8 flex items-center justify-center border-b border-dark-blue/8",children:s.jsx("img",{src:e.img,alt:e.name,className:"h-24 w-auto object-contain"})}),s.jsxs("div",{className:"p-6 flex flex-col flex-1",children:[s.jsx("h3",{className:"text-dark-blue font-inter font-bold text-lg mb-2",children:e.name}),s.jsx("p",{className:"text-dark-blue/60 font-inter text-sm mb-5 leading-relaxed",children:e.overall}),s.jsxs("div",{className:"mb-5",children:[s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-widest mb-2.5",children:"Accuracy & Tolerances"}),s.jsx("ul",{className:"space-y-1.5",children:e.accuracy.map((t,n)=>s.jsxs("li",{className:"text-dark-blue/70 font-inter text-sm leading-relaxed flex gap-2",children:[s.jsx("span",{className:"text-pistachio mt-1.5 w-1 h-1 rounded-full bg-pistachio flex-shrink-0"}),s.jsx("span",{children:t})]},n))})]}),s.jsxs("div",{className:"mt-auto",children:[s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-widest mb-2.5",children:"Design Notes"}),s.jsx("ul",{className:"space-y-1.5",children:e.design.map((t,n)=>s.jsxs("li",{className:"text-dark-blue/70 font-inter text-sm leading-relaxed flex gap-2",children:[s.jsx("span",{className:"text-pistachio mt-1.5 w-1 h-1 rounded-full bg-pistachio flex-shrink-0"}),s.jsx("span",{children:t})]},n))})]})]})]})},e.name))})]})})}const Tde="https://static.wixstatic.com/media/525bba_3965900042344cee9a671a41438707bb~mv2.png/v1/fill/w_600,h_354,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/iO%20Portal.png",Cde="https://www.io3d.com.au/_files/ugd/525bba_d995ebb029f142c88a40faae722f1b3c.pdf",Rde=[{icon:SG,title:"Repeat Builds",desc:"Repeat builds are available for large volumes and production parts — contact us to discu
586ss lead times and scheduling."},{icon:ML,title:"Quality Control & Packaging",desc:"Parts are counted, bundled and packaged, with print quality control all included."},{icon:IL,title:"Finishing Services",desc:"Part dyeing, express services, and specific print quality control may be performed on request."},{icon:hG,title:"Live Order Tracking",desc:"All orders are tracked throughout production with live updates provided via our custom ERP user portal."}];function Mde(){return s.jsx("section",{className:"bg-dark-blue py-20 lg:py-28",children:s.jsxs("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10 grid grid-cols-1 lg:grid-cols-2 gap-12 lg:gap-16 items-center",children:[s.jsxs("div",{children:[s.jsxs(_e,{className:"text-center lg:text-left",children:[s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-4",children:"Production Services"}),s.jsx("h2",{className:"text-white font-cal leading-tight mb-10",style:{fontSize:"clamp(28px, 3.4vw, 44px)"},children:"Built for volume, finished with care."})]}),s.jsx(Dn,{className:"space-y-4",children:Rde.map(e=>{const t=e.icon;return s.jsx(Ln,{children:s.jsxs("div",{className:"flex gap-4 p-5 rounded-2xl border border-white/10 bg-white/[0.04] hover:bg-white/[0.07] transition-colors duration-300",children:[s.jsx("div",{className:"w-11 h-11 rounded-xl bg-pistachio/15 text-pistachio flex items-center justify-center flex-shrink-0",children:s.jsx(t,{size:20})}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-white font-inter font-semibold mb-1",children:e.title}),s.jsx("p",{className:"text-white/60 font-inter text-sm leading-relaxed",children:e.desc})]})]})},e.title)})})]}),s.jsx(_e,{delay:.15,children:s.jsxs("div",{className:"rounded-2xl overflow-hidden border border-white/10 bg-white p-8 lg:p-10",children:[s.jsx("img",{src:Tde,alt:"ERP production portal",className:"w-full h-auto object-contain rounded-lg"}),s.jsxs("div",{className:"mt-6 flex flex-wrap items-center justify-between gap-4",children:[s.jsx("p",{className:"text-dark-blue/70 font-inter text-sm max-w-xs",children:"Track every part from scan to shipment through our production portal."}),s.jsxs("a",{href:Cde,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-5 py-2.5 bg-pistachio text-dark-blue font-inter font-semibold text-sm rounded-full hover:bg-pistachio/90 transition-colors",children:[s.jsx($_,{size:16})," Learn More"]})]}),s.jsx(Ie,{to:"/contact",className:"mt-4 block text-center text-dark-blue/60 hover:text-dark-blue font-inter text-sm transition-colors",children:"Contact our US team to discuss lead times →"})]})})]})})}function Ide(){const[e,t]=P.useState(!1);return s.jsxs("section",{className:"relative bg-white py-20 lg:py-28 overflow-hidden",children:[s.jsxs("div",{className:"relative z-10 max-w-screen-2xl mx-auto px-6 lg:px-10",children:[s.jsxs(_e,{className:"max-w-3xl mx-auto text-center mb-10 lg:mb-14",children:[s.jsx("p",{className:"text-dark-blue text-xs font-inter font-semibold uppercase tracking-[0.32em] mb-4",children:"Ready to build"}),s.jsxs("h2",{className:"text-dark-blue font-cal leading-tight mb-5",style:{fontSize:"clamp(28px, 3.6vw, 48px)"},children:["Built on"," ",s.jsx("span",{className:"text-gradient-shimmer-dark",children:"precision"}),"."]}),s.jsx("p",{className:"text-dark-blue/70 font-inter font-light leading-[1.9] max-w-2xl mx-auto",style:{fontSize:"clamp(17px, 1.3vw, 22px)"},children:"Every part is printed, cooled, excavated and inspected in our Long Island City facility."})]}),s.jsx("div",{className:"relative w-full h-[300px] lg:h-[420px]",children:s.jsx(vv,{asBackground:!0})}),s.jsx(_e,{delay:.1,className:"text-center mt-12 lg:mt-16",children:s.jsx("button",{onClick:()=>t(!0),className:"px-8 py-4 bg-pistachio text-dark-blue font-inter font-bold text-base rounded-full hover:bg-pistachio/90 transition-colors",children:"Get a Quote"})})]}),s.jsx(Gq,{open:e,onClose:()=>t(!1)})]})}function Dde(){return s.jsxs("div",{className:"bg-white",children:[s.jsx(At,{}),s.jsx(jde,{}),s.jsx(kde,{}),s.jsx(Ede,{}),s.jsx(Ade,{}),s.jsx(Mde,{}),s.jsx(Ide,{}),s.jsx(Tt,{})]})}const Lde="https://static.wixstatic.com/media/525bba_f8478cb6c08643aca58cff4970554e5f~mv2.png/v1/fill/w_332,h_265,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/buckles.png",Bde=[{name:"PA 11",sub:"Nylon · Bio-based",img:"https://static.wixstatic.com/media/525bba_20c7edcc0dd54c8a83e6e50d495da8d9~mv2.png/v1/fill/w_219,h_100,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/hand%20brace.png",badge:null,datasheet:"https://www.io3d.com.au/_files/ugd/525bba_9af8a32187e84b399f6afdf34ad9e187.pdf",bullets:["Bio-based polyamide derived from castor oil","Excellent chemical resistance and high impact strength","Low moisture absorption","Highly flexible and durable for harsh environments","Strong UV resistance","Ideal for prosthetics, insoles, sports gear, hinges, snap fits, and critical components"],specs:[["Heat deflection temperature","180°C"],["Tensile Strength","~50 MPa / 7250 psi (XY & Z-axis)"],["Melting Point","202°C"],["Part Density","1.04 – 1.05 g/cm³"],["Elongation at Break",">50% in Z-axis"]]},{name:"PA 12",sub:"Nylon · Engineering grade",img:"https://static.wixstatic.com/media/525bba_62c6fafb307148199f2085614b9f6d3d~mv2.png/v1/fill/w_219,h_100,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/eyeglass.png",badge:"Coming soon",datasheet:null,bullets:["Engineering-grade thermoplastic with low moisture absorption","Superior dimensional stability","Excellent resistance to chemicals, oils, and fuels","High strength-to-weight ratio","Exceptional toughness for precision applications","Ideal for complex assemblies, housings, enclosures, clips, and watertight designs"],specs:[["Temperature resistance","Stable up to ~175°C for thick parts"],["Glass transition","~40–50°C"]]},{name:"PP",sub:"Polypropylene",img:"https://static.wixstatic.com/media/525bba_e1e17a6d2f054e8faa950e97f27d4ad7~mv2.png/v1/fill/w_219,h_100,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/screws.png",badge:null,datasheet:"https://www.io3d.com.au/_files/ugd/525bba_1c68321581604cc49383dfa78b8258a2.pdf",bullets:["Lightweight, versatile thermoplastic","High chemical resistance","Excellent fatigue resistance (ideal for living hinges)","Strong heat tolerance","Durable, semi-rigid, and non-polar","Very low moisture absorption","Ideal for piping, reservoirs, fluid systems, automotive, and consumer goods"],specs:[["Heat deflection temperature","100°C"],["Tensile Strength","~20 MPa"],["Part Density","~0.9 g/cm³"],["Elongation at Break","~20%"]]}],$de="https://static.wixstatic.com/media/525bba_87d9ca0692a64c75a2fbec27876e2afc~mv2.jpg/v1/fill/w_295,h_246,al_c,q_80,usm_0.66_1.00_0.01,enc_avif,quality_auto/IMG_1821_JPG.jpg";function Fde(){return s.jsxs("div",{className:"bg-white",children:[s.jsx(At,{}),s.jsx("section",{className:"bg-dark-blue pt-32 lg:pt-40 pb-16 lg:pb-20",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10 text-center",children:s.jsxs(_e,{children:[s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-4",children:"Materials"}),s.jsxs("h1",{className:"text-white font-cal leading-tight mb-5",style:{fontSize:"clamp(36px, 5vw, 72px)"},children:["Engineered for strength,",s.jsx("br",{}),"flexibility & the real world."]}),s.jsx("p",{className:"text-gradient-shimmer font-inter font-light max-w-2xl mx-auto",style:{fontSize:"clamp(22px, 1.9vw, 32px)"},children:"Explore our range of HP Multi Jet Fusion materials engineered for strength, flexibility, and real-world applications."})]})})}),s.jsx("section",{className:"bg-white py-20 lg:py-28",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_1.6fr] gap-12 lg:gap-16 items-center",children:[s.jsx(_e,{children:s.jsx("div",{className:"rounded-3xl bg-pale-blue border border-dark-blue/5 p-10 flex items-center justify-center",children:s.jsx("img",{src:Lde,alt:"HP Multi Jet Fusion printed buckles",className:"w-full max-w-xs object-contain"})})}),s.jsxs(_e,{delay:.15,className:"text-center lg:text-left",children:[s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-4",children:"Material Overview"}),s.jsx("h2",{className:"text-dark-blue font-cal leading-tight mb-5",style:{fontSize:"clamp(28px, 3.5vw, 48px)"},children:"Functional parts with excellent mechanical properties."}),s.jsx("p",{className:"text-dark-blue/70 font-inter text-base lg:text-lg leading-relaxed text-left",children:"We use HP Multi Jet Fusion technology to deliver high-quality, functional parts with excellent mechanical properties and consistency. Our carefully selected materials suit a wide range of industries and applications."})]})]})})}),s.jsx("section",{className:"bg-pale-blue py-20 lg:py-28",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsx(Dn,{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:Bde.map(e=>s.jsx(Ln,{children:s.jsxs("div",{className:"bg-white rounded-3xl border border-dark-blue/10 h-full flex flex-col overflow-hidden hover:border-pistachio/40 transition-colors duration-300",children:[s.jsxs("div",{className:"bg-dark-blue p-8 flex items-center justify-center relative",children:[e.badge&&s.jsx("span",{className:"absolute top-4 right-4 px-3 py-1 bg-pistachio text-dark-blue font-inter font-semibold text-xs rounded-full",children:e.badge}),s.jsx("img",{src:e.img,alt:`${e.name}
586 sample part`,className:"max-h-24 object-contain"})]}),s.jsxs("div",{className:"p-8 flex flex-col flex-grow",children:[s.jsx("h3",{className:"text-dark-blue font-cal text-3xl",children:e.name}),s.jsx("p",{className:"text-mid-blue font-inter text-sm mt-1 mb-5",children:e.sub}),s.jsx("ul",{className:"space-y-2.5 mb-6",children:e.bullets.map(t=>s.jsxs("li",{className:"flex items-start gap-2.5 text-dark-blue/70 font-inter text-sm leading-relaxed",children:[s.jsx(au,{size:16,className:"text-pistachio mt-0.5 flex-shrink-0"}),s.jsx("span",{children:t})]},t))}),s.jsxs("div",{className:"mt-auto",children:[s.jsxs("div",{className:"bg-pale-blue rounded-2xl p-5 mb-5 border border-dark-blue/5",children:[s.jsx("p",{className:"text-pistachio font-inter font-semibold text-xs uppercase tracking-[0.2em] mb-3",children:"Technical Specs"}),s.jsx("dl",{className:"space-y-2",children:e.specs.map(([t,n])=>s.jsxs("div",{className:"flex justify-between gap-4 text-xs",children:[s.jsx("dt",{className:"text-dark-blue/60 font-inter",children:t}),s.jsx("dd",{className:"text-dark-blue font-inter font-semibold text-right",children:n})]},t))})]}),e.datasheet?s.jsxs("a",{href:e.datasheet,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-dark-blue font-inter font-semibold text-sm hover:text-pistachio transition-colors",children:[s.jsx($_,{size:16})," Download Datasheet"]}):s.jsxs("span",{className:"inline-flex items-center gap-2 text-dark-blue/40 font-inter font-medium text-sm",children:[s.jsx($_,{size:16})," Datasheet coming soon"]})]})]})]})},e.name))})})}),s.jsx("section",{className:"bg-white py-20 lg:py-28",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 lg:gap-16 items-center",children:[s.jsx(_e,{children:s.jsx("div",{className:"rounded-3xl overflow-hidden border border-dark-blue/10 shadow-xl",children:s.jsx("img",{src:$de,alt:"Mesh printed on nylon and a painted mechanical arm sample",className:"w-full h-full object-cover",loading:"lazy"})})}),s.jsxs(_e,{delay:.15,className:"text-center lg:text-left",children:[s.jsxs("div",{className:"inline-flex items-center gap-2 text-pistachio mb-4 justify-center lg:justify-start",children:[s.jsx(IL,{size:20}),s.jsx("span",{className:"font-inter font-semibold text-xs uppercase tracking-[0.3em]",children:"Color & Finishing"})]}),s.jsx("h2",{className:"text-dark-blue font-cal leading-tight mb-6",style:{fontSize:"clamp(28px, 3.5vw, 48px)"},children:"A finish engineered to your spec."}),s.jsxs("div",{className:"space-y-4 text-dark-blue/70 font-inter text-base leading-relaxed text-left",children:[s.jsx("p",{children:"Featured: mesh printed on nylon material in the standard color, along with a mechanical arm sample showcasing the high-quality finish and paint standard that can be achieved."}),s.jsx("p",{children:"All parts built with Multi Jet Fusion come in a shade of grey or off-white due to the black fusing agent used in the process."}),s.jsx("p",{children:"We offer to dye parts to create a consistent black finish rather than the default grey, using synthetic nylon dye. Painting is an option — however, dyeing best preserves dimensional accuracy."}),s.jsx("p",{children:"As with other 3D printing processes, cosmetic finishing is achievable in parts built with Multi Jet Fusion: paint, primer, texture matching, smoothing, and more. The average surface finish of Multi Jet Fusion is 3.18–6.35 micrometres RA — surfaces can be hand-sanded or tumbled for an even smoother finish."})]})]})]})})}),s.jsx(Tt,{})]})}function qde(){return s.jsxs("div",{className:"bg-white",children:[s.jsx(At,{}),s.jsx(gs,{jsonLd:lde}),s.jsx("section",{className:"bg-dark-blue pt-40 pb-24",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsxs(_e,{className:"text-center lg:text-left",children:[s.jsx("p",{className:"text-pistachio text-sm font-inter font-semibold uppercase tracking-[0.3em] mb-4",children:"The iOrder Platform"}),s.jsxs("h1",{className:"text-white font-cal leading-tight mb-6",style:{fontSize:"clamp(40px, 6vw, 96px)"},children:["Your Practice.",s.jsx("br",{}),"Fully Digital."]}),s.jsxs("p",{className:"text-white font-inter font-light max-w-2xl mb-10",style:{fontSize:"clamp(22px, 1.9vw, 32px)"},children:["iOrder is ",s.jsx("span",{className:"text-gradient-shimmer",children:"iOrthotics' proprietary digital ERP"})," — purpose-built for clinicians who demand precision, transparency, and speed."]}),s.jsxs("a",{href:wk,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-8 py-4 bg-pistachio text-dark-blue font-inter font-bold text-lg rounded-xl hover:bg-pistachio/90 transition-colors focus:outline-none focus:ring-2 focus:ring-pistachio",children:["Login ",s.jsx(ot,{size:20})]})]})})}),s.jsx("section",{className:"bg-white pt-20 lg:pt-28",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 items-center mb-4",children:[s.jsxs(_e,{className:"text-center lg:text-left",children:[s.jsx("h2",{className:"text-dark-blue font-cal leading-tight mb-6",style:{fontSize:"clamp(32px, 4vw, 60px)"},children:"One Digital Ecosystem, from Scan to Dispatch."}),s.jsx("p",{className:"text-dark-blue/70 font-inter text-lg leading-relaxed text-left",children:"iOrder connects your clinical prescription directly to our ISO-accredited HP MJF manufacturing floor — digitally, accurately, and in real time. No paper. No phone calls. No guesswork."})]}),s.jsx(_e,{delay:.2,children:s.jsx("div",{className:"rounded-2xl overflow-hidden border-2 border-dark-blue/10 shadow-2xl",children:s.jsx("img",{src:lr.labDesignScreen,alt:"iOrder platform — 3D design preview",loading:"lazy",className:"w-full object-cover"})})})]})})}),s.jsx(Sk,{}),s.jsx("section",{className:"bg-dark-blue py-20 text-center",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsxs(_e,{children:[s.jsx("h2",{className:"text-white font-cal text-4xl mb-6",children:"Not yet a partner?"}),s.jsx("p",{className:"text-white/60 font-inter text-lg mb-8",children:"Open an account to access iOrder and the world's most advanced orthotic manufacturing platform."}),s.jsx("a",{href:Nn,target:"_blank",rel:"noopener noreferrer",className:"px-10 py-4 bg-pistachio text-dark-blue font-inter font-bold text-lg rounded-xl hover:bg-pistachio/90 transition-colors focus:outline-none focus:ring-2 focus:ring-pistachio",children:"Partner with iOrthotics"})]})})}),s.jsx(Tt,{})]})}function zde(e){return e?new Date(e).toLocaleDateString("en-AU",{month:"long",year:"numeric"}):""}function Ude({article:e}){return e?s.jsx(_e,{children:s.jsxs("div",{className:"relative overflow-hidden rounded-3xl border border-dark-blue/10 bg-white shadow-[0_20px_60px_-30px_rgba(18,32,72,0.35)]",children:[s.jsx("div",{"aria-hidden":"true",className:"pointer-events-none absolute -top-24 -right-24 w-[60%] h-[180%] opacity-30 blur-3xl rotate-6",style:{background:"linear-gradient(135deg, #A4D17E 0%, #7FE7E7 45%, #5A7D9E 100%)"}}),s.jsxs("div",{className:"relative grid grid-cols-1 lg:grid-cols-2",children:[s.jsxs("div",{className:"p-8 sm:p-12 lg:p-16 flex flex-col justify-center order-2 lg:order-1",children:[e.category&&s.jsx(Ie,{to:"/news",className:"text-pistachio font-inter font-semibold text-xs uppercase tracking-[0.25em] mb-5 hover:underline",children:e.category}),s.jsx("h2",{className:"text-dark-blue font-cal leading-tight mb-6",style:{fontSize:"clamp(26px, 3vw, 44px)"},children:e.title}),s.jsx("div",{className:"flex items-center gap-3 mb-6",children:s.jsx("span",{className:"text-dark-blue/40 font-inter text-sm",children:zde(e.published_date)})}),e.excerpt&&s.jsx("p",{className:"text-dark-blue/60 font-inter text-base leading-relaxed mb-8 max-w-lg",children:e.excerpt}),s.jsxs(Ie,{to:`/news/${e.slug}`,className:"inline-flex items-center gap-2 text-dark-blue font-inter font-semibold text-sm hover:gap-3 transition-all duration-200",children:["Read more ",s.jsx(ot,{size:16,className:"text-pistachio"})]})]}),s.jsx("div",{className:"relative order-1 lg:order-2 min-h-[280px] lg:min-h-full bg-pale-blue",children:e.cover_image_url?s.jsx("img",{src:e.cover_image_url,alt:e.title,className:"absolute inset-0 w-full h-full object-cover"}):s.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:s.jsx("span",{className:"text-dark-blue/20 font-cal text-6xl",children:"iO"})})})]})]})}):null}function Hde({categories:e,active:t,onSelect:n}){const r=["All",...e];return s.jsx("div",{className:"flex flex-wrap gap-2",children:r.map(i=>{const o=i==="All"&&t==="all"||i===t;return s.jsxs("button",{onClick:()=>n(i==="All"?"all":i),className:`relative px-5 py-2 rounded-full font-inter text-sm font-semibold transition-colors duration-200 focus:outline-none ${o?"text-white":"text-dark-blue/60 hover:text-dark-blue"}`,children:[o&&s.jsx(lt.span,{layoutId:"news-filter-pill",className:"absolute inset-0 rounded-full bg-dark-blue",transition:{type:"spring",stiffness:380,damping:32}}),s.jsx("span",{className:"relative z-10",children:i})]},i)})})}function Vde(e){return e?new Date(e).toLocaleDateString("en-AU",{month:"short",day:"numeric",year:"numeric"}):""}function Wde({article:e}){return s.jsxs(Ie,{to:`/news/${e.slug}`,className:"group grid grid-cols-1 sm:grid-cols-[200px_1fr] gap-6 sm:gap-10 py-8 border-t border-dark-blue/10 hover:bg-pale-blue/40 transition-colors duration-200",children:[s.jsx("div",{className:"relative aspect-[4/3] sm:aspect-[5/4] rounded-2xl overflow-hidden bg-pale-blue border border-dark-blue/5",children:e.cover_image_url?s.jsx("img",{src:e.cover_image_url,alt:e.title,loading:"lazy",className:"absolute inset-0 w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}):s.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:s.jsx("span",{className:"text-dark-blue/20 font-cal text-3xl",children:"iO"})})}),s.jsxs("div",{className:"flex flex-col justify-center",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[e.category&&s.jsx("span",{className:"text-pistachio font-inter font-semibold text-xs uppercase tracking-[0.25em]",children:e.category}),s.jsx("span",{className:"text-dark-blue/40 font-inter text-xs",children:Vde(e.published_date)})]}),s.jsx("h3",{className:"text-dark-blue font-cal leading-tight mb-3 group-hover:text-mid-blue transition-colors duration-200",style:{fontSize:"clamp(20px, 2vw, 28px)"},children:e.title}),e.excerpt&&s.jsx("p",{className:"text-dark-blue/60 font-inter text-sm leading-relaxed mb-4 line-clamp-2",children:e.excerpt}),s.jsxs("span",{className:"inline-flex items-center gap-2 text-dark-blue font-inter font-semibold text-sm group-hover:gap-3 transition-all duration-200",children:["Read more ",s.jsx(ot,{size:15,className:"text-pistachio"})]})]})]})}const A0="iorthotics_dismissed_new_article",Gde=7;function Kde({article:e}){const[t,n]=P.useState(!0);if(P.useEffect(()=>{if(e)try{localStorage.getItem(A0)===e.id?n(!0):(localStorage.setItem(A0,e.id),n(!1))}catch{n(!1)}},[e]),!e||t||(e.published_date?Date.now()-new Date(e.published_date).getTime():1/0)>Gde*24*60*60*1e3)return null;const i=()=>{try{localStorage.setItem(A0,e.id)}catch{}n(!0)};return s.jsx("div",{className:"bg-pistachio/15 border-b border-pistachio/30",children:s.jsxs("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10 py-3 flex items-center gap-3",children:[s.jsx($f,{size:16,className:"text-pistachio flex-shrink-0"}),s.jsxs("p",{className:"text-dark-blue font-inter text-sm flex-1 min-w-0 truncate",children:[s.jsx("span",{className:"font-semibold",children:"New article:"})," ",s.jsx(Ie,{to:`/news/${e.slug}`,className:"font-semibold hover:underline",children:e.title})]}),s.jsxs(Ie,{to:`/news/${e.slug}`,className:"hidden sm:inline-flex items-center gap-1.5 text-dark-blue font-inter font-semibold text-sm hover:gap-2.5 transition-all flex-shrink-0",children:["Read it ",s.jsx(ot,{size:7})]}),s.jsx("button",{onClick:i,"aria-label":"Dismiss",className:"p-1.5 rounded-lg text-dark-blue/50 hover:text-dark-blue hover:bg-pistachio/20 transition-colors flex-shrink-0",children:s.jsx(zi,{size:16})})]})})}function Yde(){const[e,t]=P.useState([]),[n,r]=P.useState(!0),[i,o]=P.useState("all");P.useEffect(()=>{st.entities.NewsArticle.filter({is_published:!0},"-published_date").then(p=>{t(p),r(!1)})},[]);const a=P.useMemo(()=>Array.from(new Set(e.map(p=>
586p.category).filter(Boolean))),[e]),l=e.length?[...e].sort((p,f)=>new Date(f.created_date||0)-new Date(p.created_date||0))[0]:null,c=e.filter(p=>p.id!==(l==null?void 0:l.id)),d=P.useMemo(()=>i==="all"?c:c.filter(p=>p.category===i),[c,i]);return s.jsxs("div",{className:"bg-white",children:[s.jsx(At,{}),s.jsx("header",{className:"bg-white pt-32 lg:pt-36 pb-12 border-b border-dark-blue/10",children:s.jsxs("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10 flex items-center justify-center sm:justify-between",children:[s.jsx("h1",{className:"text-dark-blue font-cal",style:{fontSize:"clamp(32px, 4vw, 56px)"},children:"Articles & News"}),s.jsx(Ie,{to:"/news",className:"hidden sm:inline-flex items-center gap-2 text-mid-blue font-inter font-semibold text-sm hover:text-pistachio transition-colors",children:"Innovation in Action"})]})}),!n&&e[0]&&s.jsx(Kde,{article:e[0]}),s.jsx("section",{className:"bg-white py-12 lg:py-16",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:n?s.jsx("div",{className:"h-[340px] rounded-3xl bg-pale-blue animate-pulse"}):l?s.jsx(Ude,{article:l}):null})}),s.jsx("section",{className:"bg-white pb-24",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:n?s.jsx("div",{className:"text-center py-20 text-mid-blue font-inter",children:"Loading…"}):e.length===0?s.jsx("div",{className:"text-center py-20 text-mid-blue font-inter",children:"No articles published yet. Check back soon."}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"mb-10",children:s.jsx(Hde,{categories:a,active:i,onSelect:o})}),s.jsx(_e,{children:s.jsx("div",{className:"divide-y divide-dark-blue/10",children:d.length===0?s.jsx("p",{className:"text-center py-16 text-mid-blue font-inter",children:"No articles in this category yet."}):d.map(p=>s.jsx(Wde,{article:p},p.id))})})]})})}),s.jsx(Tt,{})]})}const Xde=["See new products","Learn scanning","Learn more about bracing","Meet the team","Sign up"],Qde=()=>{try{return new URLSearchParams(window.location.search).get("conference")||""}catch{return""}};function Zde(){const[e,t]=P.useState({name:"",email:"",conference:Qde(),clinic:"",interests:[],message:""}),[n,r]=P.useState({sources:[],referral_name:"",event_name:""}),[i,o]=P.useState("idle"),[a,l]=P.useState(""),c=zu("conference_appointment"),d=f=>{t(m=>({...m,interests:m.interests.includes(f)?m.interests.filter(g=>g!==f):[...m.interests,f]}))},p=async f=>{var m,g;if(f.preventDefault(),!e.name.trim()||!e.email.trim()){o("error"),l("Your name and email are required.");return}if(!e.conference.trim()){o("error"),l("Please tell us which conference you want to meet us at.");return}if(!n.sources.length){o("error"),l("Please tell us how you heard about us.");return}o("submitting"),l("");try{await st.functions.invoke("bookConferenceAppointment",{name:e.name,email:e.email,conference:e.conference,clinic:e.clinic,interests:e.interests,message:e.message,sources:n.sources,referral_name:n.referral_name,event_name:n.event_name}),o("success"),$i("generate_lead",{lead_source:"conference_booking",form_name:"conference_appointment",page_path:window.location.pathname,currency:"USD"})}catch(b){o("error"),l(((g=(m=b==null?void 0:b.response)==null?void 0:m.data)==null?void 0:g.error)||(b==null?void 0:b.message)||"Something went wrong. Please try again or contact us directly.")}};return s.jsxs("div",{className:"bg-white min-h-screen",children:[s.jsx(At,{}),s.jsx("section",{className:"w-full pt-28 lg:pt-32 pb-12 lg:pb-16 bg-pale-blue",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsxs(_e,{className:"max-w-3xl text-center lg:text-left",children:[s.jsxs(Ie,{to:"/",className:"inline-flex items-center gap-1.5 text-mid-blue font-inter text-sm hover:text-dark-blue transition-colors mb-6",children:[s.jsx(Hh,{size:16})," Back to home"]}),s.jsx("span",{className:"text-xs font-inter font-semibold uppercase tracking-widest text-pistachio bg-dark-blue/5 px-3 py-1 rounded-full mb-5 inline-block",children:"Conferences · Workshops · Expos"}),s.jsxs("h1",{className:"text-dark-blue font-cal font-bold leading-[1.05] mb-5",style:{fontSize:"clamp(32px, 5vw, 56px)"},children:["Meet us at your next ",s.jsx("span",{className:"text-gradient-shimmer-dark",children:"conference"})]}),s.jsx("p",{className:"text-dark-blue/60 font-inter text-lg leading-relaxed",children:"Tell us which event you'll be attending and our clinical team will arrange a dedicated time to meet — see new products, talk scanning, or learn how to integrate our bracing into your practice."}),s.jsxs("div",{className:"flex flex-wrap items-center justify-center lg:justify-start gap-6 mt-8 text-dark-blue/70 font-inter text-sm",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(kL,{size:16,className:"text-pistachio"})," Any upcoming event"]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Vh,{size:16,className:"text-mid-blue"})," US & international"]})]})]})})}),s.jsx("section",{className:"py-16 lg:py-24",children:s.jsx("div",{className:"max-w-2xl mx-auto px-6 lg:px-10",children:i==="success"?s.jsxs("div",{className:"rounded-2xl border border-pistachio/40 bg-pistachio/10 p-8 text-center",children:[s.jsx(au,{className:"mx-auto mb-3 text-pistachio",size:36}),s.jsx("h2",{className:"text-dark-blue font-inter font-bold text-xl mb-2",children:"Appointment request received"}),s.jsxs("p",{className:"text-dark-blue/60 font-inter text-sm leading-relaxed",children:["Thanks",e.name?`, ${e.name.split(" ")[0]}`:"",". Our team will be in touch by email to confirm a time to meet you at ",e.conference||"the conference","."]}),s.jsxs(Ie,{to:"/",className:"inline-flex items-center gap-2 px-6 py-3 bg-dark-blue text-white font-inter font-semibold text-sm rounded-full hover:bg-pistachio hover:text-dark-blue transition-colors",children:["Back to home ",s.jsx(ot,{size:16})]})]}):s.jsxs("form",{onSubmit:p,onFocusCapture:c,className:"rounded-2xl border border-dark-blue/12 bg-pale-blue/30 p-6 lg:p-8 space-y-5",children:[s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-inter font-semibold uppercase tracking-widest text-dark-blue/60 mb-2",children:"Your name *"}),s.jsx("input",{required:!0,value:e.name,onChange:f=>t({...e,name:f.target.value}),className:"w-full px-3.5 py-3 text-sm rounded-lg border border-dark-blue/12 bg-white text-dark-blue placeholder:text-dark-blue/40 focus:outline-none focus:ring-2 focus:ring-pistachio font-inter",placeholder:"Dr Jane Smith"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-inter font-semibold uppercase tracking-widest text-dark-blue/60 mb-2",children:"Email *"}),s.jsx("input",{required:!0,type:"email",value:e.email,onChange:f=>t({...e,email:f.target.value}),className:"w-full px-3.5 py-3 text-sm rounded-lg border border-dark-blue/12 bg-white text-dark-blue placeholder:text-dark-blue/40 focus:outline-none focus:ring-2 focus:ring-pistachio font-inter",placeholder:"[email protected]"})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-inter font-semibold uppercase tracking-widest text-dark-blue/60 mb-2",children:"Which conference? *"}),s.jsx("input",{required:!0,value:e.conference,onChange:f=>t({...e,conference:f.target.value}),className:"w-full px-3.5 py-3 text-sm rounded-lg border border-dark-blue/12 bg-white text-dark-blue placeholder:text-dark-blue/40 focus:outline-none focus:ring-2 focus:ring-pistachio font-inter",placeholder:"e.g. APMA National 2026"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-inter font-semibold uppercase tracking-widest text-dark-blue/60 mb-2",children:"Clinic / practice"}),s.jsx("input",{value:e.clinic,onChange:f=>t({...e,clinic:f.target.value}),className:"w-full px-3.5 py-3 text-sm rounded-lg border border-dark-blue/12 bg-white text-dark-blue placeholder:text-dark-blue/40 focus:outline-none focus:ring-2 focus:ring-pistachio font-inter",placeholder:"Clinic name (optional)"})]}),s.jsxs("div",{children:[s.jsxs("label",{className:"block text-xs font-inter font-semibold uppercase tracking-widest text-dark-blue/60 mb-3",children:["What would you like to cover? ",s.jsx("span",{className:"text-dark-blue/30 normal-case tracking-normal",children:"(select any)"})]}),s.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2.5",children:Xde.map(f=>{const m=e.interests.includes(f);return s.jsxs("button",{type:"button",onClick:()=>d(f),className:`flex items-center gap-3 px-4 py-3 rounded-xl border text-sm font-inter transition-all duration-200 text-left ${m?"border-pistachio bg-pistachio/15 text-dark-blue":"border-dark-blue/12 bg-white text-dark-blue/70 hover:border-pistachio/40"}`,children:[s.jsx("span",{className:`w-5 h-5 rounded-md border flex items-center justify-center flex-shrink-0 transition-colors ${m?"bg-pistachio border-pistachio":"border-dark-blue/20"}`,children:m&&s.jsx(au,{size:14,className:"text-dark-blue"})}),f]},f)})})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-inter font-semibold uppercase tracking-widest text-dark-blue/60 mb-2",children:"Message"}),s.jsx("textarea",{value:e.message,onChange:f=>t({...e,message:f.target.value}),rows:3,className:"w-full px-3.5 py-3 text-sm rounded-lg border border-dark-blue/12 bg-white text-dark-blue placeholder:text-dark-blue/40 focus:outline-none focus:ring-2 focus:ring-pistachio font-inter",placeholder:"Anything specific you'd like to discu
586ss (optional)"})]}),s.jsx(Gu,{value:n,onChange:r,required:!0}),i==="error"&&s.jsxs("div",{className:"flex items-start gap-2 text-sm text-red-700 bg-red-50 p-3 rounded-lg",children:[s.jsx(Ky,{size:16,className:"mt-0.5 shrink-0"}),s.jsx("span",{className:"font-inter",children:a})]}),s.jsx("button",{type:"submit",disabled:i==="submitting",className:"inline-flex items-center justify-center gap-2 w-full py-3.5 px-5 bg-dark-blue text-white font-inter font-semibold text-sm rounded-full hover:bg-pistachio hover:text-dark-blue transition-colors disabled:opacity-60",children:i==="submitting"?s.jsxs(s.Fragment,{children:[s.jsx(pi,{size:16,className:"animate-spin"})," Sending…"]}):s.jsxs(s.Fragment,{children:["Request appointment ",s.jsx(ot,{size:16})]})})]})})}),s.jsx(Tt,{})]})}function Jde(){const[e,t]=P.useState({name:"",clinic:"",email:"",phone:"",message:""}),[n,r]=P.useState({sources:[],referral_name:"",event_name:""}),i=zu("partner_with_us"),[o,a]=P.useState(!1),[l,c]=P.useState(!1),[d,p]=P.useState(""),f=g=>t(b=>({...b,[g.target.name]:g.target.value})),m=async g=>{if(g.preventDefault(),!n.sources.length){p("Please tell us how you heard about us.");return}c(!0),p("");try{const b=e.name.trim().split(/\s+/),y=b[0]||"",v=b.slice(1).join(" "),x=await st.functions.invoke("submitContact",{first_name:y,last_name:v,email:e.email,clinic:e.clinic,phone:e.phone,message:e.message,sources:n.sources,referral_name:n.referral_name,event_name:n.event_name});if(x.data&&x.data.ok===!1)throw new Error("Unable to send your enquiry right now. Please try again or email us directly.");a(!0),$i("generate_lead",{lead_source:"contact_form",form_name:"partner_with_us",page_path:window.location.pathname,currency:"USD"})}catch{p("Unable to send your enquiry right now. Please email [email protected] directly, or try again shortly.")}finally{c(!1)}};return s.jsxs("div",{className:"bg-white",children:[s.jsx(At,{}),s.jsx(gs,{jsonLd:cde}),s.jsx("section",{className:"bg-dark-blue pt-28 pb-16 lg:pt-40 lg:pb-24",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsxs(_e,{className:"text-center lg:text-left",children:[s.jsx("p",{className:"text-pistachio text-sm font-inter font-semibold uppercase tracking-[0.3em] mb-4",children:"Get in Touch"}),s.jsxs("h1",{className:"text-white font-cal leading-tight mb-6",style:{fontSize:"clamp(30px, 4vw, 56px)"},children:["Partner with",s.jsx("br",{}),"iOrthotics."]}),s.jsxs("p",{className:"text-white font-inter font-light max-w-2xl",style:{fontSize:"clamp(22px, 1.9vw, 32px)"},children:["Join ",s.jsx("span",{className:"text-gradient-shimmer",children:"the world's most advanced orthotic lab"}),". Fill in the form and our clinical team will be in touch."]})]})})}),s.jsx("section",{className:"bg-white py-20 lg:py-28",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-12 lg:gap-20",children:[s.jsx("div",{children:s.jsxs(_e,{children:[s.jsx("h2",{className:"text-dark-blue font-inter font-bold text-2xl mb-8",children:"Contact Details"}),s.jsx("div",{className:"space-y-6",children:[{icon:Vh,label:"Address",value:"38-38 Crescent Street, Long Island City, New York 11101",href:"https://maps.google.com/?q=38-38+Crescent+Street+Long+Island+City+New+York+11101"},{icon:Qo,label:"Email",value:"[email protected]",href:"mailto:[email protected]"},{icon:Wh,label:"Phone",value:"929 478 0204",href:"tel:9294780204"}].map(g=>s.jsxs("div",{className:"flex gap-4",children:[s.jsx("div",{className:"w-10 h-10 rounded-xl bg-pale-blue flex items-center justify-center flex-shrink-0",children:s.jsx(g.icon,{size:18,className:"text-dark-blue"})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-dark-blue/50 font-inter text-xs font-semibold uppercase tracking-wide mb-1",children:g.label}),g.href?s.jsx("a",{href:g.href,className:"text-dark-blue font-inter font-semibold hover:text-pistachio transition-colors",children:g.value}):s.jsx("p",{className:"text-dark-blue font-inter font-semibold",children:g.value})]})]},g.label))}),s.jsxs("div",{className:"mt-12 overflow-hidden rounded-2xl border border-dark-blue/10 relative",children:[s.jsx("img",{src:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/90d404864_DeanHartleyiOrthoticsPrintingRoom-20250625-114857.jpg",alt:"Dean Hartley, Director, with 3D-printed iOrthotics devices",className:"w-full h-52 object-cover object-top lg:object-center",loading:"lazy",style:{filter:"brightness(1.18) contrast(0.94) saturate(1.
58602)"}}),s.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{background:"linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.04) 38%, rgba(255,255,255,0) 60%)"}}),s.jsxs("div",{className:"p-5 bg-pale-blue",children:[s.jsx("p",{className:"text-pistachio text-[11px] font-inter font-semibold uppercase tracking-[0.25em] mb-2",children:"Dean Hartley · Director"}),s.jsx("p",{className:"text-dark-blue/70 font-inter text-sm leading-relaxed italic",children:"“We were overwhelmed with work from labs around the world and were nearing capacity in our Brisbane hub — opening the East Coast facility is simply responding to market demand.”"})]})]})]})}),s.jsx("div",{className:"lg:col-span-2",children:s.jsx(_e,{delay:.2,children:o?s.jsxs("div",{className:"flex flex-col items-center justify-center py-20 text-center",children:[s.jsx(oa,{size:56,className:"text-pistachio mb-6"}),s.jsx("h3",{className:"text-dark-blue font-cal text-4xl mb-4",children:"Thank You!"}),s.jsx("p",{className:"text-dark-blue/60 font-inter text-lg max-w-md",children:"Your enquiry has been sent. Our clinical team will be in touch."})]}):s.jsxs("form",{onSubmit:m,onFocusCapture:i,className:"space-y-6",children:[s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[{name:"name",label:"Your Name",type:"text",required:!0},{name:"clinic",label:"Clinic / Practice Name",type:"text",required:!1},{name:"email",label:"Email Address",type:"email",required:!0},{name:"phone",label:"Phone Number",type:"tel",required:!1}].map(g=>s.jsxs("div",{children:[s.jsxs("label",{htmlFor:g.name,className:"block text-dark-blue font-inter font-semibold text-sm mb-2",children:[g.label," ",g.required&&s.jsx("span",{className:"text-pistachio",children:"*"})]}),s.jsx("input",{id:g.name,name:g.name,type:g.type,required:g.required,value:e[g.name],onChange:f,className:"w-full px-4 py-3 rounded-xl border border-dark-blue/10 bg-pale-blue font-inter text-dark-blue text-sm focus:outline-none focus:ring-2 focus:ring-pistachio focus:border-transparent transition-colors"})]},g.name))}),s.jsxs("div",{children:[s.jsxs("label",{htmlFor:"message",className:"block text-dark-blue font-inter font-semibold text-sm mb-2",children:["Message ",s.jsx("span",{className:"text-pistachio",children:"*"})]}),s.jsx("textarea",{id:"message",name:"message",required:!0,rows:5,value:e.message,onChange:f,placeholder:"Tell us about your practice, current orthotic volumes, and what you're looking for...",className:"w-full px-4 py-3 rounded-xl border border-dark-blue/10 bg-pale-blue font-inter text-dark-blue text-sm focus:outline-none focus:ring-2 focus:ring-pistachio focus:border-transparent transition-colors resize-none"})]}),s.jsx(Gu,{value:n,onChange:r,required:!0}),d&&s.jsxs("div",{className:"flex items-start gap-2.5 p-4 rounded-xl bg-red-50 border border-red-200 text-red-700 font-inter text-sm",children:[s.jsx(Ky,{size:18,className:"flex-shrink-0 mt-0.5"}),s.jsx("span",{children:d})]}),s.jsx("button",{type:"submit",disabled:l,className:"w-full py-4 bg-pistachio text-dark-blue font-inter font-bold text-base rounded-full hover:bg-pistachio/90 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-pistachio focus:ring-offset-2 min-h-[44px] disabled:opacity-60 disabled:cursor-not-allowed flex items-center justify-center gap-2",children:l?s.jsxs(s.Fragment,{children:[s.jsx(pi,{size:18,className:"animate-spin"})," Sending…"]}):"Send Enquiry — Partner with Us"}),s.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-3 pt-1",children:[s.jsx("span",{className:"text-dark-blue/55 font-inter text-sm",children:"Ready to get started?"}),s.jsxs("a",{href:Nn,target:"_blank",rel:"noopener noreferrer",onClick:()=>$i("click_partner_portal",{link_url:Nn,link_text:"Create an account now",page_path:window.location.pathname}),className:"inline-flex items-center gap-2 px-6 py-3 bg-dark-blue text-white font-inter font-semibold text-sm rounded-full hover:bg-mid-blue transition-colors duration-200",children:[s.jsx(LL,{size:16})," Create an account now ",s.jsx(ot,{size:16})]})]}),s.jsx("p",{className:"text-dark-blue/40 font-inter text-xs text-center",children:"Designed with a clinician. Made in the USA. Delivered in 5 days."})]})})})]})})}),s.jsx(Tt,{})]})}var efe=Symbol.for("react.lazy"),Vg=Wy[" use ".trim().toString()];function tfe(e){return typeof e=="object"&&e!==null&&"then"in e}function Kq(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===efe&&"_payload"in e&&tfe(e._payload)}function Yq(e){const t=rfe(e),n=P.forwardRef((r,i)=>{let{children:o,...a}=r;Kq(o)&&typeof Vg=="function"&&(o=Vg(o._payload));const l=P.Children.toArray(o),c=l.find(ofe);if(c){const d=c.props.children,p=l.map(f=>f===c?P.Children.count(d)>1?P.Children.only(null):P.isValidElement(d)?d.props.children:null:f);return s.jsx(t,{...a,ref:i,children:P.isValidElement(d)?P.cloneElement(d,void 0,p):null})}return s.jsx(t,{...a,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}var nfe=Yq("Slot");function rfe(e){const t=P.forwardRef((n,r)=>{let{children:i,...o}=n;if(Kq(i)&&typeof Vg=="function"&&(i=Vg(i._payload)),P.isValidElement(i)){const a=sfe(i),l=afe(o,i.props);return i.type!==P.Fragment&&(l.ref=r?Uu(r,a):a),P.cloneElement(i,l)}return P.Children.count(i)>1?P.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ife=Symbol("radix.slottable");function ofe(e){return P.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ife}function afe(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...l)=>{const c=o(...l);return i(...l),c}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}
586:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function sfe(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const lfe=hN("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-full text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-full px-3 text-xs",lg:"h-10 rounded-full px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),uo=P.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},o)=>{const a=r?nfe:"button";return s.jsx(a,{className:St(lfe({variant:t,size:n,className:e})),ref:o,...i})});uo.displayName="Button";const Xq=P.forwardRef(({className:e,...t},n)=>s.jsx("textarea",{className:St("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));Xq.displayName="Textarea";const Qq=P.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:St("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Qq.displayName="Card";const Zq=P.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:St("flex flex-col space-y-1.5 p-6",e),...t}));Zq.displayName="CardHeader";const Jq=P.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:St("font-semibold leading-none tracking-tight",e),...t}));Jq.displayName="CardTitle";const e9=P.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:St("text-sm text-muted-foreground",e),...t}));e9.displayName="CardDescription";const t9=P.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:St("p-6 pt-0",e),...t}));t9.displayName="CardContent";const cfe=P.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:St("flex items-center p-6 pt-0",e),...t}));cfe.displayName="CardFooter";const ufe=[{value:"general",label:"General Writing"},{value:"marketing",label:"Marketing Copy"},{value:"product_description",label:"Product Description"},{value:"design_feedback",label:"Design Feedback"},{value:"structured",label:"Structured Content"}],dfe=[{value:"claude_sonnet_4_6",label:"Claude Sonnet (Fast)"},{value:"claude_opus_4_6",label:"Claude Opus (Advanced)"},{value:"claude_opus_4_7",label:"Claude Opus 4.7 (Latest)"},{value:"claude_opus_4_8",label:"Claude Opus 4.8 (Best)"}];function ffe(){const[e,t]=P.useState(""),[n,r]=P.useState("general"),[i,o]=P.useState("claude_sonnet_4_6"),[a,l]=P.useState(!1),[c,d]=P.useState(null),[p,f]=P.useState(!1),m=async()=>{if(e.trim()){l(!0),d(null);try{const b=await st.functions.invoke("generateContent",{prompt:e,taskType:n,model:i});d(b.data)}catch(b){console.error("Generation failed:",b)}finally{l(!1)}}},g=()=>{c!=null&&c.content&&(navigator.clipboard.writeText(typeof c.content=="string"?c.content:JSON.stringify(c.content,null,2)),f(!0),setTimeout(()=>f(!1),2e3))};return s.jsxs(Qq,{className:"w-full max-w-4xl mx-auto",children:[s.jsxs(Zq,{children:[s.jsxs(Jq,{className:"flex items-center gap-2",children:[s.jsx($f,{className:"w-5 h-5 text-pistachio"}),"AI Content Generator (Claude)"]}),s.jsx(e9,{children:"Generate marketing copy, product descriptions, and design feedback using Claude AI"})]}),s.jsxs(t9,{className:"space-y-4",children:[s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-sm font-inter font-semibold text-dark-blue mb-2 block",children:"Task Type"}),s.jsxs(zg,{value:n,onValueChange:r,children:[s.jsx(th,{className:"w-full",children:s.jsx(Ug,{})}),s.jsx(nh,{children:ufe.map(b=>s.jsx(rh,{value:b.value,children:b.label},b.value))})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-sm font-inter font-semibold text-dark-blue mb-2 block",children:"Model"}),s.jsxs(zg,{value:i,onValueChange:o,children:[s.jsx(th,{className:"w-full",children:s.jsx(Ug,{})}),s.jsx(nh,{children:dfe.map(b=>s.jsx(rh,{value:b.value,children:b.label},b.value))})]})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-sm font-inter font-semibold text-dark-blue mb-2 block",children:"Your Request"}
586),s.jsx(Xq,{value:e,onChange:b=>t(b.target.value),placeholder:"Describe what you'd like Claude to create... e.g., 'Write a product description for our new EnviroFoam orthotic'",className:"min-h-[120px] resize-none"})]}),s.jsx(uo,{onClick:m,disabled:a||!e.trim(),className:"w-full bg-pistachio text-dark-blue font-inter font-semibold hover:bg-pistachio/90",children:a?s.jsxs(s.Fragment,{children:[s.jsx(pi,{className:"w-4 h-4 mr-2 animate-spin"}),"Generating..."]}):s.jsxs(s.Fragment,{children:[s.jsx($f,{className:"w-4 h-4 mr-2"}),"Generate with Claude"]})}),c&&s.jsxs("div",{className:"mt-6 p-4 bg-pale-blue rounded-xl border border-dark-blue/10",children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsx("h4",{className:"text-sm font-inter font-semibold text-dark-blue",children:"Generated Content"}),s.jsxs(uo,{variant:"ghost",size:"sm",onClick:g,className:"h-8 text-xs",children:[p?s.jsx(Gy,{className:"w-3 h-3 mr-1"}):s.jsx(tW,{className:"w-3 h-3 mr-1"}),p?"Copied":"Copy"]})]}),s.jsx("div",{className:"text-dark-blue font-inter text-sm whitespace-pre-wrap",children:typeof c.content=="string"?c.content:JSON.stringify(c.content,null,2)}),c.model&&s.jsxs("p",{className:"text-xs text-dark-blue/40 mt-3 font-inter",children:["Generated using ",c.model]})]})]})]})}function hfe(){return s.jsxs("div",{className:"bg-white min-h-screen",children:[s.jsx(At,{}),s.jsx("section",{className:"bg-sand pt-32 pb-16",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsxs(_e,{children:[s.jsx("p",{className:"text-mid-blue text-sm font-inter font-semibold uppercase tracking-[0.3em] mb-4",children:"AI-Powered Tools"}),s.jsx("h1",{className:"text-dark-blue font-cal leading-tight mb-6",style:{fontSize:"clamp(36px, 5vw, 64px)"},children:"Content Generator"}),s.jsx("p",{className:"text-dark-blue/70 font-inter text-lg max-w-3xl",children:"Leverage Claude AI to create compelling marketing copy, product descriptions, and design feedback for your orthotic practice."})]})})}),s.jsx("section",{className:"py-16 lg:py-24 bg-white",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsx(ffe,{})})}),s.jsx(Tt,{})]})}var T0,GR;function pfe(){if(GR)return T0;GR=1;function e(){this.__data__=[],this.size=0}return T0=e,T0}var C0,KR;
vendor: 9,428 bytes, line 586
586function qk(){if(KR)return C0;KR=1;function e(t,n){return t===n||t!==t&&n!==n}return C0=e,C0}var R0,YR;function bv(){if(YR)return R0;YR=1;var e=qk();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return R0=t,R0}var M0,XR;function mfe(){if(XR)return M0;XR=1;var e=bv(),t=Array.prototype,n=t.splice;function r(i){var o=this.__data__,a=e(o,i);if(a<0)return!1;var l=o.length-1;return a==l?o.pop():n.call(o,a,1),--this.size,!0}return M0=r,M0}var I0,QR;function gfe(){if(QR)return I0;QR=1;var e=bv();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return I0=t,I0}var D0,ZR;function yfe(){if(ZR)return D0;ZR=1;var e=bv();function t(n){return e(this.__data__,n)>-1}return D0=t,D0}var L0,JR;function vfe(){if(JR)return L0;JR=1;var e=bv();function t(n,r){var i=this.__data__,o=e(i,n);return o<0?(++this.size,i.push([n,r])):i[o][1]=r,this}return L0=t,L0}var B0,e4;function wv(){if(e4)return B0;e4=1;var e=pfe(),t=mfe(),n=gfe(),r=yfe(),i=vfe();function o(a){var l=-1,c=a==null?0:a.length;for(this.clear();++l<c;){var d=a[l];this.set(d[0],d[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,B0=o,B0}var $0,t4;function xfe(){if(t4)return $0;t4=1;var e=wv();function t(){this.__data__=new e,this.size=0}return $0=t,$0}var F0,n4;function bfe(){if(n4)return F0;n4=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return F0=e,F0}var q0,r4;function wfe(){if(r4)return q0;r4=1;function e(t){return this.__data__.get(t)}return q0=e,q0}var z0,i4;function _fe(){if(i4)return z0;i4=1;function e(t){return this.__data__.has(t)}return z0=e,z0}var U0,o4;function n9(){if(o4)return U0;o4=1;var e=typeof Sm=="object"&&Sm&&Sm.Object===Object&&Sm;return U0=e,U0}var H0,a4;function bo(){if(a4)return H0;a4=1;var e=n9(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return H0=n,H0}var V0,s4;function sp(){if(s4)return V0;s4=1;var e=bo(),t=e.Symbol;return V0=t,V0}var W0,l4;function Sfe(){if(l4)return W0;l4=1;var e=sp(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function o(a){var l=n.call(a,i),c=a[i];try{a[i]=void 0;var d=!0}catch{}var p=r.call(a);return d&&(l?a[i]=c:delete a[i]),p}return W0=o,W0}var G0,c4;function jfe(){if(c4)return G0;c4=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return G0=n,G0}var K0,u4;function aa(){if(u4)return K0;u4=1;var e=sp(),t=Sfe(),n=jfe(),r="[object Null]",i="[object Undefined]",o=e?e.toStringTag:void 0;function a(l){return l==null?l===void 0?i:r:o&&o in Object(l)?t(l):n(l)}return K0=a,K0}var Y0,d4;function ys(){if(d4)return Y0;d4=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return Y0=e,Y0}var X0,f4;function zk(){if(f4)return X0;f4=1;var e=aa(),t=ys(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",o="[object Proxy]";function a(l){if(!t(l))return!1;var c=e(l);return c==r||c==i||c==n||c==o}return X0=a,X0}var Q0,h4;function Nfe(){if(h4)return Q0;h4=1;var e=bo(),t=e["__core-js_shared__"];return Q0=t,Q0}var Z0,p4;function kfe(){if(p4)return Z0;p4=1;var e=Nfe(),t=(function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!t&&t in r}return Z0=n,Z0}var J0,m4;function r9(){if(m4)return J0;m4=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return J0=n,J0}var e1,g4;function Ofe(){if(g4)return e1;g4=1;var e=zk(),t=kfe(),n=ys(),r=r9(),i=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,a=Function.prototype,l=Object.prototype,c=a.toString,d=l.hasOwnProperty,p=RegExp("^"+c.call(d).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(m){if(!n(m)||t(m))return!1;var g=e(m)?p:o;return g.test(r(m))}return e1=f,e1}var t1,y4;function Efe(){if(y4)return t1;y4=1;function e(t,n){return t==null?void 0:t[n]}return t1=e,t1}var n1,v4;function Ll(){if(v4)return n1;v4=1;var e=Ofe(),t=Efe();function n(r,i){var o=t(r,i);return e(o)?o:void 0}return n1=n,n1}var r1,x4;function Uk(){if(x4)return r1;x4=1;var e=Ll(),t=bo(),n=e(t,"Map");return r1=n,r1}var i1,b4;function _v(){if(b4)return i1;b4=1;var e=Ll(),t=e(Object,"create");return i1=t,i1}var o1,w4;function Pfe(){if(w4)return o1;w4=1;var e=_v();function t(){this.__data__=e?e(null):{},this.size=0}return o1=t,o1}var a1,_4;function Afe(){if(_4)return a1;_4=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return a1=e,a1}var s1,S4;function Tfe(){if(S4)return s1;S4=1;var e=_v(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(o){var a=this.__data__;if(e){var l=a[o];return l===t?void 0:l}return r.call(a,o)?a[o]:void 0}return s1=i,s1}var l1,j4;function Cfe(){if(j4)return l1;j4=1;var e=_v(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var o=this.__data__;return e?o[i]!==void 0:n.call(o,i)}return l1=r,l1}var c1,N4;function Rfe(){if(N4)return c1;N4=1;var e=_v(),t="__lodash_hash_undefined__";function n(r,i){var o=this.__data__;return this.size+=this.has(r)?0:1,o[r]=e&&i===void 0?t:i,this}return c1=n,c1}var u1,k4;function Mfe(){if(k4)return u1;k4=1;var e=Pfe(),t=Afe(),n=Tfe(),r=Cfe(),i=Rfe();function o(a){var l=-1,c=a==null?0:a.length;for(this.clear();++l<c;){var d=a[l];this.set(d[0],d[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,u1=o,u1}var d1,O4;function Ife(){if(O4)return d1;O4=1;var e=Mfe(),t=wv(),n=Uk();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return d1=r,d1}var f1,E4;function Dfe(){if(E4)return f1;E4=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return f1=e,f1}var h1,P4;function Sv(){if(P4)return h1;P4=1;var e=Dfe();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return h1=t,h1}var p1,A4;function Lfe(){if(A4)return p1;A4=1;var e=Sv();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return p1=t,p1}var m1,T4;function Bfe(){if(T4)return m1;T4=1;var e=Sv();function t(n){return e(this,n).get(n)}return m1=t,m1}var g1,C4;function $fe(){if(C4)return g1;C4=1;var e=Sv();function t(n){return e(this,n).has(n)}return g1=t,g1}var y1,R4;function Ffe(){if(R4)return y1;R4=1;var e=Sv();function t(n,r){var i=e(this,n),o=i.size;return i.set(n,r),this.size+=i.size==o?0:1,this}return y1=t,y1}var v1,M4;function Hk(){if(M4)return v1;M4=1;var e=Ife(),t=Lfe(),n=Bfe(),r=$fe(),i=Ffe();function o(a){var l=-1,c=a==null?0:a.length;for(this.clear();++l<c;){var d=a[l];this.set(d[0],d[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,v1=o,v1}var x1,I4;function qfe(){if(I4)return x1;I4=1;var e=wv(),t=Uk(),n=Hk(),r=200;function i(o,a){var l=this.__data__;if(l instanceof e){var c=l.__data__;if(!t||c.length<r-1)return c.push([o,a]),this.size=++l.size,this;l=this.__data__=new n(c)}return l.set(o,a),this.size=l.size,this}return x1=i,x1}var b1,D4;function i9(){if(D4)return b1;D4=1;var e=wv(),t=xfe(),n=bfe(),r=wfe(),i=_fe(),o=qfe();function a(l){var c=this.__data__=new e(l);this.size=c.size}return a.prototype.clear=t,a.prototype.delete=n,a.prototype.get=r,a.prototype.has=i,a.prototype.set=o,b1=a,b1}var w1,L4;function zfe(){if(L4)return w1;L4=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return w1=t,w1}var _1,B4;function Ufe(){if(B4)return _1;B4=1;function e(t){return this.__data__.has(t)}return _1=e,_1}var S1,$4;function o9(){if($4)return S1;$4=1;var e=Hk(),t=zfe(),n=Ufe();function r(i){var o=-1,a=i==null?0:i.length;for(this.__data__=new e;++o<a;)this.add(i[o])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,S1=r,S1}var j1,F4;function a9(){if(F4)return j1;F4=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(t[r],r,t))return!0;return!1}return j1=e,j1}var N1,q4;function s9(){if(q4)return N1;q4=1;function e(t,n){return t.has(n)}return N1=e,N1}var k1,z4;function l9(){if(z4)return k1;z4=1;var e=o9(),t=a9(),n=s9(),r=1,i=2;function o(a,l,c,d,p,f){var m=c&r,g=a.length,b=l.length;if(g!=b&&!(m&&b>g))return!1;var y=f.get(a),v=f.get(l);if(y&&v)return y==l&&v==a;var x=-1,_=!0,j=c&i?new e:void 0;for(f.set(a,l),f.set(l,a);++x<g;){var S=a[x],N=l[x];if(d)var O=m?d(N,S,x,l,a,f):d(S,N,x,a,l,f);if(O!==void 0){if(O)continue;_=!1;break}if(j){if(!t(l,function(E,A){if(!n(j,A)&&(S===E||p(S,E,c,d,f)))return j.push(A)})){_=!1;break}}else if(!(S===N||p(S,N,c,d,f))){_=!1;break}}return f.delete(a),f.delete(l),_}return k1=o,k1}var O1,U4;function Hfe(){if(U4)return O1;U4=1;var e=bo(),t=e.Uint8Array;return O1=t,O1}var E1,H4;function Vfe(){if(H4)return E1;H4=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,o){r[++n]=[o,i]}),r}return E1=e,E1}var P1,V4;function Vk(){if(V4)return P1;V4=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return P1=e,P1}var A1,W4;function Wfe(){if(W4)return A1;W4=1;var e=sp(),t=Hfe(),n=qk(),r=l9(),i=Vfe(),o=Vk(),a=1,l=2,c="[object Boolean]",d="[object Date]",p="[object Error]",f="[object Map]",m="[object Number]",g="[object RegExp]",b="[object Set]",y="[object String]",v="[object Symbol]",x="[object ArrayBuffer]",_="[object DataView]",j=e?e.prototype:void 0,S=j?j.valueOf
vendor: 4,085 bytes, line 586
586:void 0;function N(O,E,A,I,M,C,R){switch(A){case _:if(O.byteLength!=E.byteLength||O.byteOffset!=E.byteOffset)return!1;O=O.buffer,E=E.buffer;case x:return!(O.byteLength!=E.byteLength||!C(new t(O),new t(E)));case c:case d:case m:return n(+O,+E);case p:return O.name==E.name&&O.message==E.message;case g:case y:return O==E+"";case f:var B=i;case b:var $=I&a;if(B||(B=o),O.size!=E.size&&!$)return!1;var z=R.get(O);if(z)return z==E;I|=l,R.set(O,E);var H=r(B(O),B(E),I,M,C,R);return R.delete(O),H;case v:if(S)return S.call(O)==S.call(E)}return!1}return A1=N,A1}var T1,G4;function c9(){if(G4)return T1;G4=1;function e(t,n){for(var r=-1,i=n.length,o=t.length;++r<i;)t[o+r]=n[r];return t}return T1=e,T1}var C1,K4;function Tr(){if(K4)return C1;K4=1;var e=Array.isArray;return C1=e,C1}var R1,Y4;function Gfe(){if(Y4)return R1;Y4=1;var e=c9(),t=Tr();function n(r,i,o){var a=i(r);return t(r)?a:e(a,o(r))}return R1=n,R1}var M1,X4;function Kfe(){if(X4)return M1;X4=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,o=0,a=[];++r<i;){var l=t[r];n(l,r,t)&&(a[o++]=l)}return a}return M1=e,M1}var I1,Q4;function Yfe(){if(Q4)return I1;Q4=1;function e(){return[]}return I1=e,I1}var D1,Z4;function Xfe(){if(Z4)return D1;Z4=1;var e=Kfe(),t=Yfe(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,o=i?function(a){return a==null?[]:(a=Object(a),e(i(a),function(l){return r.call(a,l)}))}:t;return D1=o,D1}var L1,J4;function Qfe(){if(J4)return L1;J4=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return L1=e,L1}var B1,e3;function sa(){if(e3)return B1;e3=1;function e(t){return t!=null&&typeof t=="object"}return B1=e,B1}var $1,t3;function Zfe(){if(t3)return $1;t3=1;var e=aa(),t=sa(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return $1=r,$1}var F1,n3;function Wk(){if(n3)return F1;n3=1;var e=Zfe(),t=sa(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,o=e((function(){return arguments})())?e:function(a){return t(a)&&r.call(a,"callee")&&!i.call(a,"callee")};return F1=o,F1}var Sf={exports:{}},q1,r3;function Jfe(){if(r3)return q1;r3=1;function e(){return!1}return q1=e,q1}Sf.exports;var i3;function u9(){return i3||(i3=1,(function(e,t){var n=bo(),r=Jfe(),i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,l=a?n.Buffer:void 0,c=l?l.isBuffer:void 0,d=c||r;e.exports=d})(Sf,Sf.exports)),Sf.exports}var z1,o3;function Gk(){if(o3)return z1;o3=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,i){var o=typeof r;return i=i??e,!!i&&(o=="number"||o!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<i}return z1=n,z1}var U1,a3;function Kk(){if(a3)return U1;a3=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return U1=t,U1}var H1,s3;function ehe(){if(s3)return H1;s3=1;var e=aa(),t=Kk(),n=sa(),r="[object Arguments]",i="[object Array]",o="[object Boolean]",a="[object Date]",l="[object Error]",c="[object Function]",d="[object Map]",p="[object Number]",f="[object Object]",m="[object RegExp]",g="[object Set]",b="[object String]",y="[object WeakMap]",v="[object ArrayBuffer]",x="[object DataView]",_="[object Float32Array]",j="[object Float64Array]",S="[object Int8Array]",N="[object Int16Array]",O="[object Int32Array]",E="[object Uint8Array]",A="[object Uint8ClampedArray]",I="[object Uint16Array]",M="[object Uint32Array]",C={};C[_]=C[j]=C[S]=C[N]=C[O]=C[E]=C[A]=C[I]=C[M]=!0,C[r]=C[i]=C[v]=C[o]=C[x]=C[a]=C[l]=C[c]=C[d]=C[p]=C[f]=C[m]=C[g]=C[b]=C[y]=!1;function R(B){return n(B)&&t(B.length)&&!!C[e(B)]}return H1=R,H1}var V1,l3;function d9(){if(l3)return V1;l3=1;function e(t){return function(n){return t(n)}}return V1=e,V1}var jf={exports:{}};jf.exports;var c3;function the(){return c3||(c3=1,(function(e,t){var n=n9(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o&&n.process,l=(function(){try{var c=i&&i.require&&i.require("util").types;return c||a&&a.binding&&a.binding("util")}catch{}})();e.exports=l})(jf,jf.exports)),jf.exports}var W1,u3;function f9(){if(u3)return W1;u3=1;var e=ehe(),t=d9(),n=the(),r=n&&n.isTypedArray,i=r?t(r):e;return W1=i,W1}var G1,d3;
vendor: 3,571 bytes, line 586
586function nhe(){if(d3)return G1;d3=1;var e=Qfe(),t=Wk(),n=Tr(),r=u9(),i=Gk(),o=f9(),a=Object.prototype,l=a.hasOwnProperty;function c(d,p){var f=n(d),m=!f&&t(d),g=!f&&!m&&r(d),b=!f&&!m&&!g&&o(d),y=f||m||g||b,v=y?e(d.length,String):[],x=v.length;for(var _ in d)(p||l.call(d,_))&&!(y&&(_=="length"||g&&(_=="offset"||_=="parent")||b&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||i(_,x)))&&v.push(_);return v}return G1=c,G1}var K1,f3;function rhe(){if(f3)return K1;f3=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return K1=t,K1}var Y1,h3;function h9(){if(h3)return Y1;h3=1;function e(t,n){return function(r){return t(n(r))}}return Y1=e,Y1}var X1,p3;function ihe(){if(p3)return X1;p3=1;var e=h9(),t=e(Object.keys,Object);return X1=t,X1}var Q1,m3;function ohe(){if(m3)return Q1;m3=1;var e=rhe(),t=ihe(),n=Object.prototype,r=n.hasOwnProperty;function i(o){if(!e(o))return t(o);var a=[];for(var l in Object(o))r.call(o,l)&&l!="constructor"&&a.push(l);return a}return Q1=i,Q1}var Z1,g3;function lp(){if(g3)return Z1;g3=1;var e=zk(),t=Kk();function n(r){return r!=null&&t(r.length)&&!e(r)}return Z1=n,Z1}var J1,y3;function jv(){if(y3)return J1;y3=1;var e=nhe(),t=ohe(),n=lp();function r(i){return n(i)?e(i):t(i)}return J1=r,J1}var ew,v3;function ahe(){if(v3)return ew;v3=1;var e=Gfe(),t=Xfe(),n=jv();function r(i){return e(i,n,t)}return ew=r,ew}var tw,x3;function she(){if(x3)return tw;x3=1;var e=ahe(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(o,a,l,c,d,p){var f=l&t,m=e(o),g=m.length,b=e(a),y=b.length;if(g!=y&&!f)return!1;for(var v=g;v--;){var x=m[v];if(!(f?x in a:r.call(a,x)))return!1}var _=p.get(o),j=p.get(a);if(_&&j)return _==a&&j==o;var S=!0;p.set(o,a),p.set(a,o);for(var N=f;++v<g;){x=m[v];var O=o[x],E=a[x];if(c)var A=f?c(E,O,x,a,o,p):c(O,E,x,o,a,p);if(!(A===void 0?O===E||d(O,E,l,c,p):A)){S=!1;break}N||(N=x=="constructor")}if(S&&!N){var I=o.constructor,M=a.constructor;I!=M&&"constructor"in o&&"constructor"in a&&!(typeof I=="function"&&I instanceof I&&typeof M=="function"&&M instanceof M)&&(S=!1)}return p.delete(o),p.delete(a),S}return tw=i,tw}var nw,b3;function lhe(){if(b3)return nw;b3=1;var e=Ll(),t=bo(),n=e(t,"DataView");return nw=n,nw}var rw,w3;function che(){if(w3)return rw;w3=1;var e=Ll(),t=bo(),n=e(t,"Promise");return rw=n,rw}var iw,_3;function p9(){if(_3)return iw;_3=1;var e=Ll(),t=bo(),n=e(t,"Set");return iw=n,iw}var ow,S3;function uhe(){if(S3)return ow;S3=1;var e=Ll(),t=bo(),n=e(t,"WeakMap");return ow=n,ow}var aw,j3;function dhe(){if(j3)return aw;j3=1;var e=lhe(),t=Uk(),n=che(),r=p9(),i=uhe(),o=aa(),a=r9(),l="[object Map]",c="[object Object]",d="[object Promise]",p="[object Set]",f="[object WeakMap]",m="[object DataView]",g=a(e),b=a(t),y=a(n),v=a(r),x=a(i),_=o;return(e&&_(new e(new ArrayBuffer(1)))!=m||t&&_(new t)!=l||n&&_(n.resolve())!=d||r&&_(new r)!=p||i&&_(new i)!=f)&&(_=function(j){var S=o(j),N=S==c?j.constructor:void 0,O=N?a(N):"";if(O)switch(O){case g:return m;case b:return l;case y:return d;case v:return p;case x:return f}return S}),aw=_,aw}var sw,N3;function fhe(){if(N3)return sw;N3=1;var e=i9(),t=l9(),n=Wfe(),r=she(),i=dhe(),o=Tr(),a=u9(),l=f9(),c=1,d="[object Arguments]",p="[object Array]",f="[object Object]",m=Object.prototype,g=m.hasOwnProperty;function b(y,v,x,_,j,S){var N=o(y),O=o(v),E=N?p:i(y),A=O?p:i(v);E=E==d?f:E,A=A==d?f:A;var I=E==f,M=A==f,C=E==A;if(C&&a(y)){if(!a(v))return!1;N=!0,I=!1}if(C&&!I)return S||(S=new e),N||l(y)?t(y,v,x,_,j,S):n(y,v,E,x,_,j,S);if(!(x&c)){var R=I&&g.call(y,"__wrapped__"),B=M&&g.call(v,"__wrapped__");
vendor: 105,759 bytes, lines 586-616
586if(R||B){var $=R?y.value():y,z=B?v.value():v;return S||(S=new e),j($,z,x,_,S)}}return C?(S||(S=new e),r(y,v,x,_,j,S)):!1}return sw=b,sw}var lw,k3;function Yk(){if(k3)return lw;k3=1;var e=fhe(),t=sa();function n(r,i,o,a,l){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,o,a,n,l)}return lw=n,lw}var cw,O3;function m9(){if(O3)return cw;O3=1;var e=Yk();function t(n,r){return e(n,r)}return cw=t,cw}var bg={exports:{}};/*!
587 * Quill Editor v1.3.7
588 * https://quilljs.com/
589 * Copyright (c) 2014, Jason Chen
590 * Copyright (c) 2013, salesforce.com
591 */var hhe=bg.exports,E3;function phe(){return E3||(E3=1,(function(e,t){(function(r,i){e.exports=i()})(typeof self<"u"?self:hhe,function(){return(function(n){var r={};function i(o){if(r[o])return r[o].exports;var a=r[o]={i:o,l:!1,exports:{}};return n[o].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=n,i.c=r,i.d=function(o,a,l){i.o(o,a)||Object.defineProperty(o,a,{configurable:!1,enumerable:!0,get:l})},i.n=function(o){var a=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(a,"a",a),a},i.o=function(o,a){return Object.prototype.hasOwnProperty.call(o,a)},i.p="",i(i.s=109)})([(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(17),a=i(18),l=i(19),c=i(45),d=i(46),p=i(47),f=i(48),m=i(49),g=i(12),b=i(32),y=i(33),v=i(31),x=i(1),_={Scope:x.Scope,create:x.create,find:x.find,query:x.query,register:x.register,Container:o.default,Format:a.default,Leaf:l.default,Embed:f.default,Scroll:c.default,Block:p.default,Inline:d.default,Text:m.default,Attributor:{Attribute:g.default,Class:b.default,Style:y.default,Store:v.default}};r.default=_}),(function(n,r,i){var o=this&&this.__extends||(function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,_){x.__proto__=_}||function(x,_){for(var j in _)_.hasOwnProperty(j)&&(x[j]=_[j])};return function(x,_){v(x,_);function j(){this.constructor=x}x.prototype=_===null?Object.create(_):(j.prototype=_.prototype,new j)}})();Object.defineProperty(r,"__esModule",{value:!0});var a=(function(v){o(x,v);function x(_){var j=this;return _="[Parchment] "+_,j=v.call(this,_)||this,j.message=_,j.name=j.constructor.name,j}return x})(Error);r.ParchmentError=a;var l={},c={},d={},p={};r.DATA_KEY="__blot";var f;(function(v){v[v.TYPE=3]="TYPE",v[v.LEVEL=12]="LEVEL",v[v.ATTRIBUTE=13]="ATTRIBUTE",v[v.BLOT=14]="BLOT",v[v.INLINE=7]="INLINE",v[v.BLOCK=11]="BLOCK",v[v.BLOCK_BLOT=10]="BLOCK_BLOT",v[v.INLINE_BLOT=6]="INLINE_BLOT",v[v.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",v[v.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",v[v.ANY=15]="ANY"})(f=r.Scope||(r.Scope={}));function m(v,x){var _=b(v);if(_==null)throw new a("Unable to create "+v+" blot");var j=_,S=v instanceof Node||v.nodeType===Node.TEXT_NODE?v:j.create(x);return new j(S,x)}r.create=m;function g(v,x){return x===void 0&&(x=!1),v==null?null:v[r.DATA_KEY]!=null?v[r.DATA_KEY].blot:x?g(v.parentNode,x):null}r.find=g;function b(v,x){x===void 0&&(x=f.ANY);var _;if(typeof v=="string")_=p[v]||l[v];else if(v instanceof Text||v.nodeType===Node.TEXT_NODE)_=p.text;else if(typeof v=="number")v&f.LEVEL&f.BLOCK?_=p.block:v&f.LEVEL&f.INLINE&&(_=p.inline);else if(v instanceof HTMLElement){var j=(v.getAttribute("class")||"").split(/\s+/);for(var S in j)if(_=c[j[S]],_)break;_=_||d[v.tagName]}return _==null?null:x&f.LEVEL&_.scope&&x&f.TYPE&_.scope?_:null}r.query=b;function y(){for(var v=[],x=0;x<arguments.length;x++)v[x]=arguments[x];if(v.length>1)return v.map(function(S){return y(S)});var _=v[0];if(typeof _.blotName!="string"&&typeof _.attrName!="string")throw new a("Invalid definition");if(_.blotName==="abstract")throw new a("Cannot register abstract class");if(p[_.blotName||_.attrName]=_,typeof _.keyName=="string")l[_.keyName]=_;else if(_.className!=null&&(c[_.className]=_),_.tagName!=null){Array.isArray(_.tagName)?_.tagName=_.tagName.map(function(S){return S.toUpperCase()}):_.tagName=_.tagName.toUpperCase();var j=Array.isArray(_.tagName)?_.tagName:[_.tagName];j.forEach(function(S){(d[S]==null||_.className==null)&&(d[S]=_)})}return _}r.register=y}),(function(n,r,i){var o=i(51),a=i(11),l=i(3),c=i(20),d="\0",p=function(f){Array.isArray(f)?this.ops=f:f!=null&&Array.isArray(f.ops)?this.ops=f.ops:this.ops=[]};p.prototype.insert=function(f,m){var g={};return f.length===0?this:(g.insert=f,m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(g.attributes=m),this.push(g))},p.prototype.delete=function(f){return f<=0?this:this.push({delete:f})},p.prototype.retain=function(f,m){if(f<=0)return this;var g={retain:f};return m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(g.attributes=m),this.push(g)},p.prototype.push=function(f){var m=this.ops.length,g=this.ops[m-1];if(f=l(!0,{},f),typeof g=="object"){if(typeof f.delete=="number"&&typeof g.delete=="number")return this.ops[m-1]={delete:g.delete+f.delete},this;if(typeof g.delete=="number"&&f.insert!=null&&(m-=1,g=this.ops[m-1],typeof g!="object"))return this.ops.unshift(f),this;if(a(f.attributes,g.attributes)){if(typeof f.insert=="string"&&typeof g.insert=="string")return this.ops[m-1]={insert:g.insert+f.insert},typeof f.attributes=="object"&&(this.ops[m-1].attributes=f.attributes),this;if(typeof f.retain=="number"&&typeof g.retain=="number")return this.ops[m-1]={retain:g.retain+f.retain},typeof f.attributes=="object"&&(this.ops[m-1].attributes=f.attributes),this}}return m===this.ops.length?this.ops.push(f):this.ops.splice(m,0,f),this},p.prototype.chop=function(){var f=this.ops[this.ops.length-1];return f&&f.retain&&!f.attributes&&this.ops.pop(),this},p.prototype.filter=function(f){return this.ops.filter(f)},p.prototype.forEach=function(f){this.ops.forEach(f)},p.prototype.map=function(f){return this.ops.map(f)},p.prototype.partition=function(f){var m=[],g=[];return this.forEach(function(b){var y=f(b)?m:g;y.push(b)}),[m,g]},p.prototype.reduce=function(f,m){return this.ops.reduce(f,m)},p.prototype.changeLength=function(){return this.reduce(function(f,m){return m.insert?f+c.length(m):m.delete?f-m.delete:f},0)},p.prototype.length=function(){return this.reduce(function(f,m){return f+c.length(m)},0)},p.prototype.slice=function(f,m){f=f||0,typeof m!="number"&&(m=1/0);for(var g=[],b=c.iterator(this.ops),y=0;y<m&&b.hasNext();){var v;y<f?v=b.next(f-y):(v=b.next(m-y),g.push(v)),y+=c.length(v)}return new p(g)},p.prototype.compose=function(f){var m=c.iterator(this.ops),g=c.iterator(f.ops),b=[],y=g.peek();if(y!=null&&typeof y.retain=="number"&&y.attributes==null){for(var v=y.retain;m.peekType()==="insert"&&m.peekLength()<=v;)v-=m.peekLength(),b.push(m.next());y.retain-v>0&&g.next(y.retain-v)}for(var x=new p(b);m.hasNext()||g.hasNext();)if(g.peekType()==="insert")x.push(g.next());else if(m.peekType()==="delete")x.push(m.next());else{var _=Math.min(m.peekLength(),g.peekLength()),j=m.next(_),S=g.next(_);if(typeof S.retain=="number"){var N={};typeof j.retain=="number"?N.retain=_:N.insert=j.insert;var O=c.attributes.compose(j.attributes,S.attributes,typeof j.retain=="number");if(O&&(N.attributes=O),x.push(N),!g.hasNext()&&a(x.ops[x.ops.length-1],N)){var E=new p(m.rest());return x.concat(E).chop()}}else typeof S.delete=="number"&&typeof j.retain=="number"&&x.push(S)}return x.chop()},p.prototype.concat=function(f){var m=new p(this.ops.slice());return f.ops.length>0&&(m.push(f.ops[0]),m.ops=m.ops.concat(f.ops.slice(1))),m},p.prototype.diff=function(f,m){if(this.ops===f.ops)return new p;var g=[this,f].map(function(_){return _.map(function(j){if(j.insert!=null)return typeof j.insert=="string"?j.insert:d;var S=_===f?"on":"with";throw new Error("diff() called "+S+" non-document")}).join("")}),b=new p,y=o(g[0],g[1],m),v=c.iterator(this.ops),x=c.iterator(f.ops);return y.forEach(function(_){for(var j=_[1].length;j>0;){var S=0;switch(_[0]){case o.INSERT:S=Math.min(x.peekLength(),j),b.push(x.next(S));break;case o.DELETE:S=Math.min(j,v.peekLength()),v.next(S),b.delete(S);break;case o.EQUAL:S=Math.min(v.peekLength(),x.peekLength(),j);var N=v.next(S),O=x.next(S);a(N.insert,O.insert)?b.retain(S,c.attributes.diff(N.attributes,O.attributes)):b.push(O).delete(S);break}j-=S}}),b.chop()},p.prototype.eachLine=function(f,m){m=m||`
592`;for(var g=c.iterator(this.ops),b=new p,y=0;g.hasNext();){if(g.peekType()!=="insert")return;var v=g.peek(),x=c.length(v)-g.peekLength(),_=typeof v.insert=="string"?v.insert.indexOf(m,x)-x:-1;if(_<0)b.push(g.next());else if(_>0)b.push(g.next(_));else{if(f(b,g.next(1).attributes||{},y)===!1)return;y+=1,b=new p}}b.length()>0&&f(b,{},y)},p.prototype.transform=function(f,m){if(m=!!m,typeof f=="number")return this.transformPosition(f,m);for(var g=c.iterator(this.ops),b=c.iterator(f.ops),y=new p;g.hasNext()||b.hasNext();)if(g.peekType()==="insert"&&(m||b.peekType()!=="insert"))y.retain(c.length(g.next()));else if(b.peekType()==="insert")y.push(b.next());else{var v=Math.min(g.peekLength(),b.peekLength()),x=g.next(v),_=b.next(v);if(x.delete)continue;_.delete?y.push(_):y.retain(v,c.attributes.transform(x.attributes,_.attributes,m))}return y.chop()},p.prototype.transformPosition=function(f,m){m=!!m;for(var g=c.iterator(this.ops),b=0;g.hasNext()&&b<=f;){var y=g.peekLength(),v=g.peekType();if(g.next(),v==="delete"){f-=Math.min(y,f-b);continue}else v==="insert"&&(b<f||!m)&&(f+=y);b+=y}return f},n.exports=p}),(function(n,r){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=function(g){return typeof Array.isArray=="function"?Array.isArray(g):o.call(g)==="[object Array]"},d=function(g){if(!g||o.call(g)!=="[object Object]")return!1;var b=i.call(g,"constructor"),y=g.constructor&&g.constructor.prototype&&i.call(g.constructor.prototype,"isPrototypeOf");if(g.constructor&&!b&&!y)return!1;var v;for(v in g);return typeof v>"u"||i.call(g,v)},p=function(g,b){a&&b.name==="__proto__"?a(g,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0}):g[b.name]=b.newValue},f=function(g,b){if(b==="__proto__")if(i.call(g,b)){if(l)return l(g,b).value}else return;return g[b]};n.exports=function m(){var g,b,y,v,x,_,j=arguments[0],S=1,N=arguments.length,O=!1;for(typeof j=="boolean"&&(O=j,j=arguments[1]||{},S=2),(j==null||typeof j!="object"&&typeof j!="function")&&(j={});S<N;++S)if(g=arguments[S],g!=null)for(b in g)y=f(j,b),v=f(g,b),j!==v&&(O&&v&&(d(v)||(x=c(v)))?(x?(x=!1,_=y&&c(y)?y:[]):_=y&&d(y)?y:{},p(j,{name:b,newValue:m(O,_,v)})):typeof v<"u"&&p(j,{name:b,newValue:v}));return j}}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BlockEmbed=r.bubbleFormats=void 0;var o=(function(){function C(R,B){for(var $=0;$<B.length;$++){var z=B[$];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(R,z.key,z)}}return function(R,B,$){return B&&C(R.prototype,B),$&&C(R,$),R}})(),a=function C(R,B,$){R===null&&(R=Function.prototype);var z=Object.getOwnPropertyDescriptor(R,B);if(z===void 0){var H=Object.getPrototypeOf(R);return H===null?void 0:C(H,B,$)}else{if("value"in z)return z.value;var V=z.get;return V===void 0?void 0:V.call($)}},l=i(3),c=j(l),d=i(2),p=j(d),f=i(0),m=j(f),g=i(16),b=j(g),y=i(6),v=j(y),x=i(7),_=j(x);function j(C){return C&&C.__esModule?C:{default:C}}function S(C,R){if(!(C instanceof R))throw new TypeError("Cannot call a class as a function")}function N(C,R){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R&&(typeof R=="object"||typeof R=="function")?R:C}function O(C,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof R);C.prototype=Object.create(R&&R.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),R&&(Object.setPrototypeOf?Object.setPrototypeOf(C,R):C.__proto__=R)}var E=1,A=(function(C){O(R,C);function R(){return S(this,R),N(this,(R.__proto__||Object.getPrototypeOf(R)).apply(this,arguments))}return o(R,[{key:"attach",value:function(){a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"attach",this).call(this),this.attributes=new m.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new p.default().insert(this.value(),(0,c.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function($,z){var H=m.default.query($,m.default.Scope.BLOCK_ATTRIBUTE);H!=null&&this.attributes.attribute(H,z)}},{key:"formatAt",value:function($,z,H,V){this.format(H,V)}},{key:"insertAt",value:function($,z,H){if(typeof z=="string"&&z.endsWith(`
593`)){var V=m.default.create(I.blotName);this.parent.insertBefore(V,$===0?this:this.next),V.insertAt(0,z.slice(0,-1))}else a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertAt",this).call(this,$,z,H)}}]),R})(m.default.Embed);A.scope=m.default.Scope.BLOCK_BLOT;var I=(function(C){O(R,C);function R(B){S(this,R);var $=N(this,(R.__proto__||Object.getPrototypeOf(R)).call(this,B));return $.cache={},$}return o(R,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(m.default.Leaf).reduce(function($,z){return z.length()===0?$:$.insert(z.value(),M(z))},new p.default).insert(`
594`,M(this))),this.cache.delta}},{key:"deleteAt",value:function($,z){a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"deleteAt",this).call(this,$,z),this.cache={}}},{key:"formatAt",value:function($,z,H,V){z<=0||(m.default.query(H,m.default.Scope.BLOCK)?$+z===this.length()&&this.format(H,V):a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"formatAt",this).call(this,$,Math.min(z,this.length()-$-1),H,V),this.cache={})}},{key:"insertAt",value:function($,z,H){if(H!=null)return a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertAt",this).call(this,$,z,H);if(z.length!==0){var V=z.split(`
595`),Y=V.shift();Y.length>0&&($<this.length()-1||this.children.tail==null?a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertAt",this).call(this,Math.min($,this.length()-1),Y):this.children.tail.insertAt(this.children.tail.length(),Y),this.cache={});var W=this;V.reduce(function(q,D){return W=W.split(q,!0),W.insertAt(0,D),D.length},$+Y.length)}}},{key:"insertBefore",value:function($,z){var H=this.children.head;a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertBefore",this).call(this,$,z),H instanceof b.default&&H.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"length",this).call(this)+E),this.cache.length}},{key:"moveChildren",value:function($,z){a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"moveChildren",this).call(this,$,z),this.cache={}}},{key:"optimize",value:function($){a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"optimize",this).call(this,$),this.cache={}}},{key:"path",value:function($){return a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"path",this).call(this,$,!0)}},{key:"removeChild",value:function($){a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"removeChild",this).call(this,$),this.cache={}}},{key:"split",value:function($){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(z&&($===0||$>=this.length()-E)){var H=this.clone();return $===0?(this.parent.insertBefore(H,this),this):(this.parent.insertBefore(H,this.next),H)}else{var V=a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"split",this).call(this,$,z);return this.cache={},V}}}]),R})(m.default.Block);I.blotName="block",I.tagName="P",I.defaultChild="break",I.allowedChildren=[v.default,m.default.Embed,_.default];function M(C){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return C==null||(typeof C.formats=="function"&&(R=(0,c.default)(R,C.formats())),C.parent==null||C.parent.blotName=="scroll"||C.parent.statics.scope!==C.statics.scope)?R:M(C.parent,R)}r.bubbleFormats=M,r.BlockEmbed=A,r.default=I}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.overload=r.expandConfig=void 0;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},a=(function(){function W(q,D){var F=[],K=!0,ee=!1,J=void 0;try{for(var G=q[Symbol.iterator](),X;!(K=(X=G.next()).done)&&(F.push(X.value),!(D&&F.length===D));K=!0);}catch(ne){ee=!0,J=ne}finally{try{!K&&G.return&&G.return()}finally{if(ee)throw J}}return F}return function(q,D){if(Array.isArray(q))return q;if(Symbol.iterator in Object(q))return W(q,D);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),l=(function(){function W(q,D){for(var F=0;F<D.length;F++){var K=D[F];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(q,K.key,K)}}return function(q,D,F){return D&&W(q.prototype,D),F&&W(q,F),q}})();i(50);var c=i(2),d=M(c),p=i(14),f=M(p),m=i(8),g=M(m),b=i(9),y=M(b),v=i(0),x=M(v),_=i(15),j=M(_),S=i(3),N=M(S),O=i(10),E=M(O),A=i(34),I=M(A);function M(W){return W&&W.__esModule?W:{default:W}}function C(W,q,D){return q in W?Object.defineProperty(W,q,{value:D,enumerable:!0,configurable:!0,writable:!0}):W[q]=D,W}function R(W,q){if(!(W instanceof q))throw new TypeError("Cannot call a class as a function")}var B=(0,E.default)("quill"),$=(function(){l(W,null,[{key:"debug",value:function(D){D===!0&&(D="log"),E.default.level(D)}},{key:"find",value:function(D){return D.__quill||x.default.find(D)}},{key:"import",value:function(D){return this.imports[D]==null&&B.error("Cannot import "+D+". Are you sure it was registered?"),this.imports[D]}},{key:"register",value:function(D,F){var K=this,ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof D!="string"){var J=D.attrName||D.blotName;typeof J=="string"?this.register("formats/"+J,D,F):Object.keys(D).forEach(function(G){K.register(G,D[G],F)})}else this.imports[D]!=null&&!ee&&B.warn("Overwriting "+D+" with",F),this.imports[D]=F,(D.startsWith("blots/")||D.startsWith("formats/"))&&F.blotName!=="abstract"?x.default.register(F):D.startsWith("modules")&&typeof F.register=="function"&&F.register()}}]);function W(q){var D=this,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(R(this,W),this.options=z(q,F),this.container=this.options.container,this.container==null)return B.error("Invalid Quill container",q);this.options.debug&&W.debug(this.options.debug);var K=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new g.default,this.scroll=x.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new f.default(this.scroll),this.selection=new j.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(g.default.events.EDITOR_CHANGE,function(J){J===g.default.events.TEXT_CHANGE&&D.root.classList.toggle("ql-blank",D.editor.isBlank())}),this.emitter.on(g.default.events.SCROLL_UPDATE,function(J,G){var X=D.selection.lastRange,ne=X&&X.length===0?X.index:void 0;H.call(D,function(){return D.editor.update(null,G,ne)},J)});var ee=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+K+"<p><br></p></div>");this.setContents(ee),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return l(W,[{key:"addContainer",value:function(D){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof D=="string"){var K=D;D=document.createElement("div"),D.classList.add(K)}return this.container.insertBefore(D,F),D}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(D,F,K){var ee=this,J=V(D,F,K),G=a(J,4);return D=G[0],F=G[1],K=G[3],H.call(this,function(){return ee.editor.deleteText(D,F)},K,D,-1*F)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(D),this.container.classList.toggle("ql-disabled",!D)}},{key:"focus",value:function(){var D=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=D,this.scrollIntoView()}},{key:"format",value:function(D,F){var K=this,ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:g.default.sources.API;return H.call(this,function(){var J=K.getSelection(!0),G=new d.default;if(J==null)return G;if(x.default.query(D,x.default.Scope.BLOCK))G=K.editor.formatLine(J.index,J.length,C({},D,F));else{if(J.length===0)return K.selection.format(D,F),G;G=K.editor.formatText(J.index,J.length,C({},D,F))}return K.setSelection(J,g.default.sources.SILENT),G},ee)}},{key:"formatLine",value:function(D,F,K,ee,J){var G=this,X=void 0,ne=V(D,F,K,ee,J),Z=a(ne,4);return D=Z[0],F=Z[1],X=Z[2],J=Z[3],H.call(this,function(){return G.editor.formatLine(D,F,X)},J,D,0)}},{key:"formatText",value:function(D,F,K,ee,J){var G=this,X=void 0,ne=V(D,F,K,ee,J),Z=a(ne,4);return D=Z[0],F=Z[1],X=Z[2],J=Z[3],H.call(this,function(){return G.editor.formatText(D,F,X)},J,D,0)}},{key:"getBounds",value:function(D){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,K=void 0;typeof D=="number"?K=this.selection.getBounds(D,F):K=this.selection.getBounds(D.index,D.length);var ee=this.container.getBoundingClientRect();return{bottom:K.bottom-ee.top,height:K.height,left:K.left-ee.left,right:K.right-ee.left,top:K.top-ee.top,width:K.width}}},{key:"getContents",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-D,K=V(D,F),ee=a(K,2);return D=ee[0],F=ee[1],this.editor.getContents(D,F)}},{key:"getFormat",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof D=="number"?this.editor.getFormat(D,F):this.editor.getFormat(D.index,D.length)}},{key:"getIndex",value:function(D){return D.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(D){return this.scroll.leaf(D)}},{key:"getLine",value:function(D){return this.scroll.line(D)}},{key:"getLines",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof D!="number"?this.scroll.lines(D.index,D.length):this.scroll.lines(D,F)}},{key:"getModule",value:function(D){return this.theme.modules[D]}},{key:"getSelection",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return D&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-D,K=V(D,F),ee=a(K,2);return D=ee[0],F=ee[1],this.editor.getText(D,F)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(D,F,K){var ee=this,J=arguments.length>3&&arguments[3]!==void 0?arguments[3]:W.sources.API;return H.call(this,function(){return ee.editor.insertEmbed(D,F,K)},J,D)}},{key:"insertText",value:function(D,F,K,ee,J){var G=this,X=void 0,ne=V(D,0,K,ee,J),Z=a(ne,4);return D=Z[0],X=Z[2],J=Z[3],H.call(this,function(){return G.editor.insertText(D,F,X)},J,D,F.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(D,F,K){this.clipboard.dangerouslyPasteHTML(D,F,K)}},{key:"removeFormat",value:function(D,F,K){var ee=this,J=V(D,F,K),G=a(J,4);return D=G[0],F=G[1],K=G[3],H.call(this,function(){return ee.editor.removeFormat(D,F)},K,D)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(D){var F=this,K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g.default.sources.API;return H.call(this,function(){D=new d.default(D);var ee=F.getLength(),J=F.editor.deleteText(0,ee),G=F.editor.applyDelta(D),X=G.ops[G.ops.length-1];X!=null&&typeof X.insert=="string"&&X.insert[X.insert.length-1]===`
596`&&(F.editor.deleteText(F.getLength()-1,1),G.delete(1));var ne=J.compose(G);return ne},K)}},{key:"setSelection",value:function(D,F,K){if(D==null)this.selection.setRange(null,F||W.sources.API);else{var ee=V(D,F,K),J=a(ee,4);D=J[0],F=J[1],K=J[3],this.selection.setRange(new _.Range(D,F),K),K!==g.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(D){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g.default.sources.API,K=new d.default().insert(D);return this.setContents(K,F)}},{key:"update",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:g.default.sources.USER,F=this.scroll.update(D);return this.selection.update(D),F}},{key:"updateContents",value:function(D){var F=this,K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g.default.sources.API;return H.call(this,function(){return D=new d.default(D),F.editor.applyDelta(D,K)},K,!0)}}]),W})();$.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},$.events=g.default.events,$.sources=g.default.sources,$.version="1.3.7",$.imports={delta:d.default,parchment:x.default,"core/module":y.default,"core/theme":I.default};function z(W,q){if(q=(0,N.default)(!0,{container:W,modules:{clipboard:!0,keyboard:!0,history:!0}},q),!q.theme||q.theme===$.DEFAULTS.theme)q.theme=I.default;else if(q.theme=$.import("themes/"+q.theme),q.theme==null)throw new Error("Invalid theme "+q.theme+". Did you register it?");var D=(0,N.default)(!0,{},q.theme.DEFAULTS);[D,q].forEach(function(ee){ee.modules=ee.modules||{},Object.keys(ee.modules).forEach(function(J){ee.modules[J]===!0&&(ee.modules[J]={})})});var F=Object.keys(D.modules).concat(Object.keys(q.modules)),K=F.reduce(function(ee,J){var G=$.import("modules/"+J);return G==null?B.error("Cannot load "+J+" module. Are you sure you registered it?"):ee[J]=G.DEFAULTS||{},ee},{});return q.modules!=null&&q.modules.toolbar&&q.modules.toolbar.constructor!==Object&&(q.modules.toolbar={container:q.modules.toolbar}),q=(0,N.default)(!0,{},$.DEFAULTS,{modules:K},D,q),["bounds","container","scrollingContainer"].forEach(function(ee){typeof q[ee]=="string"&&(q[ee]=document.querySelector(q[ee]))}),q.modules=Object.keys(q.modules).reduce(function(ee,J){return q.modules[J]&&(ee[J]=q.modules[J]),ee},{}),q}function H(W,q,D,F){if(this.options.strict&&!this.isEnabled()&&q===g.default.sources.USER)return new d.default;var K=D==null?null:this.getSelection(),ee=this.editor.delta,J=W();if(K!=null&&(D===!0&&(D=K.index),F==null?K=Y(K,J,q):F!==0&&(K=Y(K,D,F,q)),this.setSelection(K,g.default.sources.SILENT)),J.length()>0){var G,X=[g.default.events.TEXT_CHANGE,J,ee,q];if((G=this.emitter).emit.apply(G,[g.default.events.EDITOR_CHANGE].concat(X)),q!==g.default.sources.SILENT){var ne;(ne=this.emitter).emit.apply(ne,X)}}return J}function V(W,q,D,F,K){var ee={};return typeof W.index=="number"&&typeof W.length=="number"?typeof q!="number"?(K=F,F=D,D=q,q=W.length,W=W.index):(q=W.length,W=W.index):typeof q!="number"&&(K=F,F=D,D=q,q=0),(typeof D>"u"?"undefined":o(D))==="object"?(ee=D,K=F):typeof D=="string"&&(F!=null?ee[D]=F:K=D),K=K||g.default.sources.API,[W,q,ee,K]}function Y(W,q,D,F){if(W==null)return null;var K=void 0,ee=void 0;if(q instanceof d.default){var J=[W.index,W.index+W.length].map(function(Z){return q.transformPosition(Z,F!==g.default.sources.USER)}),G=a(J,2);K=G[0],ee=G[1]}else{var X=[W.index,W.index+W.length].map(function(Z){return Z<q||Z===q&&F===g.default.sources.USER?Z:D>=0?Z+D:Math.max(q,Z+D)}),ne=a(X,2);K=ne[0],ee=ne[1]}return new _.Range(K,ee-K)}r.expandConfig=z,r.overload=V,r.default=$}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=(function(){function v(x,_){for(var j=0;j<_.length;j++){var S=_[j];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(x,S.key,S)}}return function(x,_,j){return _&&v(x.prototype,_),j&&v(x,j),x}})(),a=function v(x,_,j){x===null&&(x=Function.prototype);var S=Object.getOwnPropertyDescriptor(x,_);if(S===void 0){var N=Object.getPrototypeOf(x);return N===null?void 0:v(N,_,j)}else{if("value"in S)return S.value;var O=S.get;return O===void 0?void 0:O.call(j)}},l=i(7),c=f(l),d=i(0),p=f(d);function f(v){return v&&v.__esModule?v:{default:v}}function m(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}function g(v,x){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:v}function b(v,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);v.prototype=Object.create(x&&x.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(v,x):v.__proto__=x)}var y=(function(v){b(x,v);function x(){return m(this,x),g(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return o(x,[{key:"formatAt",value:function(j,S,N,O){if(x.compare(this.statics.blotName,N)<0&&p.default.query(N,p.default.Scope.BLOT)){var E=this.isolate(j,S);O&&E.wrap(N,O)}else a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"formatAt",this).call(this,j,S,N,O)}},{key:"optimize",value:function(j){if(a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"optimize",this).call(this,j),this.parent instanceof x&&x.compare(this.statics.blotName,this.parent.statics.blotName)>0){var S=this.parent.isolate(this.offset(),this.length());this.moveChildren(S),S.wrap(this)}}}],[{key:"compare",value:function(j,S){var N=x.order.indexOf(j),O=x.order.indexOf(S);return N>=0||O>=0?N-O:j===S?0:j<S?-1:1}}]),x})(p.default.Inline);y.allowedChildren=[y,p.default.Embed,c.default],y.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],r.default=y}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(0),a=l(o);function l(m){return m&&m.__esModule?m:{default:m}}function c(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function d(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function p(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var f=(function(m){p(g,m);function g(){return c(this,g),d(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g})(a.default.Text);r.default=f}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=(function(){function _(j,S){for(var N=0;N<S.length;N++){var O=S[N];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(j,O.key,O)}}return function(j,S,N){return S&&_(j.prototype,S),N&&_(j,N),j}})(),a=function _(j,S,N){j===null&&(j=Function.prototype);var O=Object.getOwnPropertyDescriptor(j,S);if(O===void 0){var E=Object.getPrototypeOf(j);return E===null?void 0:_(E,S,N)}else{if("value"in O)return O.value;var A=O.get;return A===void 0?void 0:A.call(N)}},l=i(54),c=f(l),d=i(10),p=f(d);function f(_){return _&&_.__esModule?_:{default:_}}function m(_,j){if(!(_ instanceof j))throw new TypeError("Cannot call a class as a function")}function g(_,j){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:_}function b(_,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);_.prototype=Object.create(j&&j.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(_,j):_.__proto__=j)}var y=(0,p.default)("quill:events"),v=["selectionchange","mousedown","mouseup","click"];v.forEach(function(_){document.addEventListener(_,function(){for(var j=arguments.length,S=Array(j),N=0;N<j;N++)S[N]=arguments[N];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(O){if(O.__quill&&O.__quill.emitter){var E;(E=O.__quill.emitter).handleDOM.apply(E,S)}})})});var x=(function(_){b(j,_);function j(){m(this,j);var S=g(this,(j.__proto__||Object.getPrototypeOf(j)).call(this));return S.listeners={},S.on("error",y.error),S}return o(j,[{key:"emit",value:function(){y.log.apply(y,arguments),a(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(N){for(var O=arguments.length,E=Array(O>1?O-1:0),A=1;A<O;A++)E[A-1]=arguments[A];(this.listeners[N.type]||[]).forEach(function(I){var M=I.node,C=I.handler;(N.target===M||M.contains(N.target))&&C.apply(void 0,[N].concat(E))})}},{key:"listenDOM",value:function(N,O,E){this.listeners[N]||(this.listeners[N]=[]),this.listeners[N].push({node:O,handler:E})}}]),j})(c.default);x.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},x.sources={API:"api",SILENT:"silent",USER:"user"},r.default=x}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});function o(l,c){if(!(l instanceof c))throw new TypeError("Cannot call a class as a function")}var a=function l(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};o(this,l),this.quill=c,this.options=d};a.DEFAULTS={},r.default=a}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=["error","warn","log","info"],a="warn";function l(d){if(o.indexOf(d)<=o.indexOf(a)){for(var p,f=arguments.length,m=Array(f>1?f-1:0),g=1;g<f;g++)m[g-1]=arguments[g];(p=console)[d].apply(p,m)}}function c(d){return o.reduce(function(p,f){return p[f]=l.bind(console,f,d),p},{})}l.level=c.level=function(d){a=d},r.default=c}),(function(n,r,i){var o=Array.prototype.slice,a=i(52),l=i(53),c=n.exports=function(m,g,b){return b||(b={}),m===g?!0:m instanceof Date&&g instanceof Date?m.getTime()===g.getTime():!m||!g||typeof m!="object"&&typeof g!="object"?b.strict?m===g:m==g:f(m,g,b)};function d(m){return m==null}function p(m){return!(!m||typeof m!="object"||typeof m.length!="number"||typeof m.copy!="function"||typeof m.slice!="function"||m.length>0&&typeof m[0]!="number")}function f(m,g,b){var y,v;if(d(m)||d(g)||m.prototype!==g.prototype)return!1;if(l(m))return l(g)?(m=o.call(m),g=o.call(g),c(m,g,b)):!1;if(p(m)){if(!p(g)||m.length!==g.length)return!1;for(y=0;y<m.length;y++)if(m[y]!==g[y])return!1;return!0}try{var x=a(m),_=a(g)}catch{return!1}if(x.length!=_.length)return!1;for(x.sort(),_.sort(),y=x.length-1;y>=0;y--)if(x[y]!=_[y])return!1;for(y=x.length-1;y>=0;y--)if(v=x[y],!c(m[v],g[v],b))return!1;return typeof m==typeof g}}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(1),a=(function(){function l(c,d,p){p===void 0&&(p={}),this.attrName=c,this.keyName=d;var f=o.Scope.TYPE&o.Scope.ATTRIBUTE;p.scope!=null?this.scope=p.scope&o.Scope.LEVEL|f:this.scope=o.Scope.ATTRIBUTE,p.whitelist!=null&&(this.whitelist=p.whitelist)}return l.keys=function(c){return[].map.call(c.attributes,function(d){return d.name})},l.prototype.add=function(c,d){return this.canAdd(c,d)?(c.setAttribute(this.keyName,d),!0):!1},l.prototype.canAdd=function(c,d){var p=o.query(c,o.Scope.BLOT&(this.scope|o.Scope.TYPE));return p==null?!1:this.whitelist==null?!0:typeof d=="string"?this.whitelist.indexOf(d.replace(/["']/g,""))>-1:this.whitelist.indexOf(d)>-1},l.prototype.remove=function(c){c.removeAttribute(this.keyName)},l.prototype.value=function(c){var d=c.getAttribute(this.keyName);return this.canAdd(c,d)&&d?d:""},l})();r.default=a}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.Code=void 0;var o=(function(){function A(I,M){var C=[],R=!0,B=!1,$=void 0;try{for(var z=I[Symbol.iterator](),H;!(R=(H=z.next()).done)&&(C.push(H.value),!(M&&C.length===M));R=!0);}catch(V){B=!0,$=V}finally{try{!R&&z.return&&z.return()}finally{if(B)throw $}}return C}return function(I,M){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return A(I,M);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function A(I,M){for(var C=0;C<M.length;C++){var R=M[C];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(I,R.key,R)}}return function(I,M,C){return M&&A(I.prototype,M),C&&A(I,C),I}})(),l=function A(I,M,C){I===null&&(I=Function.prototype);var R=Object.getOwnPropertyDescriptor(I,M);if(R===void 0){var B=Object.getPrototypeOf(I);return B===null?void 0:A(B,M,C)}else{if("value"in R)return R.value;var $=R.get;return $===void 0?void 0:$.call(C)}},c=i(2),d=_(c),p=i(0),f=_(p),m=i(4),g=_(m),b=i(6),y=_(b),v=i(7),x=_(v);function _(A){return A&&A.__esModule?A:{default:A}}function j(A,I){if(!(A instanceof I))throw new TypeError("Cannot call a class as a function")}function S(A,I){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:A}function N(A,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);A.prototype=Object.create(I&&I.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(A,I):A.__proto__=I)}var O=(function(A){N(I,A);function I(){return j(this,I),S(this,(I.__proto__||Object.getPrototypeOf(I)).apply(this,arguments))}return I})(y.default);O.blotName="code",O.tagName="CODE";var E=(function(A){N(I,A);function I(){return j(this,I),S(this,(I.__proto__||Object.getPrototypeOf(I)).apply(this,arguments))}return a(I,[{key:"delta",value:function(){var C=this,R=this.domNode.textContent;return R.endsWith(`
597`)&&(R=R.slice(0,-1)),R.split(`
598`).reduce(function(B,$){return B.insert($).insert(`
599`,C.formats())},new d.default)}},{key:"format",value:function(C,R){if(!(C===this.statics.blotName&&R)){var B=this.descendant(x.default,this.length()-1),$=o(B,1),z=$[0];z!=null&&z.deleteAt(z.length()-1,1),l(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"format",this).call(this,C,R)}}},{key:"formatAt",value:function(C,R,B,$){if(R!==0&&!(f.default.query(B,f.default.Scope.BLOCK)==null||B===this.statics.blotName&&$===this.statics.formats(this.domNode))){var z=this.newlineIndex(C);if(!(z<0||z>=C+R)){var H=this.newlineIndex(C,!0)+1,V=z-H+1,Y=this.isolate(H,V),W=Y.next;Y.format(B,$),W instanceof I&&W.formatAt(0,C-H+R-V,B,$)}}}},{key:"insertAt",value:function(C,R,B){if(B==null){var $=this.descendant(x.default,C),z=o($,2),H=z[0],V=z[1];H.insertAt(V,R)}}},{key:"length",value:function(){var C=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
600`)?C:C+1}},{key:"newlineIndex",value:function(C){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(R)return this.domNode.textContent.slice(0,C).lastIndexOf(`
601`);var B=this.domNode.textContent.slice(C).indexOf(`
602`);return B>-1?C+B:-1}},{key:"optimize",value:function(C){this.domNode.textContent.endsWith(`
603`)||this.appendChild(f.default.create("text",`
604`)),l(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"optimize",this).call(this,C);var R=this.next;R!=null&&R.prev===this&&R.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===R.statics.formats(R.domNode)&&(R.optimize(C),R.moveChildren(this),R.remove())}},{key:"replace",value:function(C){l(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"replace",this).call(this,C),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(R){var B=f.default.find(R);B==null?R.parentNode.removeChild(R):B instanceof f.default.Embed?B.remove():B.unwrap()})}}],[{key:"create",value:function(C){var R=l(I.__proto__||Object.getPrototypeOf(I),"create",this).call(this,C);return R.setAttribute("spellcheck",!1),R}},{key:"formats",value:function(){return!0}}]),I})(g.default);E.blotName="code-block",E.tagName="PRE",E.TAB="  ",r.Code=O,r.default=E}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},a=(function(){function W(q,D){var F=[],K=!0,ee=!1,J=void 0;try{for(var G=q[Symbol.iterator](),X;!(K=(X=G.next()).done)&&(F.push(X.value),!(D&&F.length===D));K=!0);}catch(ne){ee=!0,J=ne}finally{try{!K&&G.return&&G.return()}finally{if(ee)throw J}}return F}return function(q,D){if(Array.isArray(q))return q;if(Symbol.iterator in Object(q))return W(q,D);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),l=(function(){function W(q,D){for(var F=0;F<D.length;F++){var K=D[F];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(q,K.key,K)}}return function(q,D,F){return D&&W(q.prototype,D),F&&W(q,F),q}})(),c=i(2),d=R(c),p=i(20),f=R(p),m=i(0),g=R(m),b=i(13),y=R(b),v=i(24),x=R(v),_=i(4),j=R(_),S=i(16),N=R(S),O=i(21),E=R(O),A=i(11),I=R(A),M=i(3),C=R(M);function R(W){return W&&W.__esModule?W:{default:W}}function B(W,q,D){return q in W?Object.defineProperty(W,q,{value:D,enumerable:!0,configurable:!0,writable:!0}):W[q]=D,W}function $(W,q){if(!(W instanceof q))throw new TypeError("Cannot call a class as a function")}var z=/^[ -~]*$/,H=(function(){function W(q){$(this,W),this.scroll=q,this.delta=this.getDelta()}return l(W,[{key:"applyDelta",value:function(D){var F=this,K=!1;this.scroll.update();var ee=this.scroll.length();return this.scroll.batchStart(),D=Y(D),D.reduce(function(J,G){var X=G.retain||G.delete||G.insert.length||1,ne=G.attributes||{};if(G.insert!=null){if(typeof G.insert=="string"){var Z=G.insert;Z.endsWith(`
605`)&&K&&(K=!1,Z=Z.slice(0,-1)),J>=ee&&!Z.endsWith(`
606`)&&(K=!0),F.scroll.insertAt(J,Z);var se=F.scroll.line(J),fe=a(se,2),le=fe[0],we=fe[1],ge=(0,C.default)({},(0,_.bubbleFormats)(le));if(le instanceof j.default){var be=le.descendant(g.default.Leaf,we),Be=a(be,1),De=Be[0];ge=(0,C.default)(ge,(0,_.bubbleFormats)(De))}ne=f.default.attributes.diff(ge,ne)||{}}else if(o(G.insert)==="object"){var oe=Object.keys(G.insert)[0];if(oe==null)return J;F.scroll.insertAt(J,oe,G.insert[oe])}ee+=X}return Object.keys(ne).forEach(function(de){F.scroll.formatAt(J,X,de,ne[de])}),J+X},0),D.reduce(function(J,G){return typeof G.delete=="number"?(F.scroll.deleteAt(J,G.delete),J):J+(G.retain||G.insert.length||1)},0),this.scroll.batchEnd(),this.update(D)}},{key:"deleteText",value:function(D,F){return this.scroll.deleteAt(D,F),this.update(new d.default().retain(D).delete(F))}},{key:"formatLine",value:function(D,F){var K=this,ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(ee).forEach(function(J){if(!(K.scroll.whitelist!=null&&!K.scroll.whitelist[J])){var G=K.scroll.lines(D,Math.max(F,1)),X=F;G.forEach(function(ne){var Z=ne.length();if(!(ne instanceof y.default))ne.format(J,ee[J]);else{var se=D-ne.offset(K.scroll),fe=ne.newlineIndex(se+X)-se+1;ne.formatAt(se,fe,J,ee[J])}X-=Z})}}),this.scroll.optimize(),this.update(new d.default().retain(D).retain(F,(0,E.default)(ee)))}},{key:"formatText",value:function(D,F){var K=this,ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(ee).forEach(function(J){K.scroll.formatAt(D,F,J,ee[J])}),this.update(new d.default().retain(D).retain(F,(0,E.default)(ee)))}},{key:"getContents",value:function(D,F){return this.delta.slice(D,D+F)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(D,F){return D.concat(F.delta())},new d.default)}},{key:"getFormat",value:function(D){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,K=[],ee=[];F===0?this.scroll.path(D).forEach(function(G){var X=a(G,1),ne=X[0];ne instanceof j.default?K.push(ne):ne instanceof g.default.Leaf&&ee.push(ne)}):(K=this.scroll.lines(D,F),ee=this.scroll.descendants(g.default.Leaf,D,F));var J=[K,ee].map(function(G){if(G.length===0)return{};for(var X=(0,_.bubbleFormats)(G.shift());Object.keys(X).length>0;){var ne=G.shift();if(ne==null)return X;X=V((0,_.bubbleFormats)(ne),X)}return X});return C.default.apply(C.default,J)}},{key:"getText",value:function(D,F){return this.getContents(D,F).filter(function(K){return typeof K.insert=="string"}).map(function(K){return K.insert}).join("")}},{key:"insertEmbed",value:function(D,F,K){return this.scroll.insertAt(D,F,K),this.update(new d.default().retain(D).insert(B({},F,K)))}},{key:"insertText",value:function(D,F){var K=this,ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return F=F.replace(/\r\n/g,`
607`).replace(/\r/g,`
608`),this.scroll.insertAt(D,F),Object.keys(ee).forEach(function(J){K.scroll.formatAt(D,F.length,J,ee[J])}),this.update(new d.default().retain(D).insert(F,(0,E.default)(ee)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var D=this.scroll.children.head;return D.statics.blotName!==j.default.blotName||D.children.length>1?!1:D.children.head instanceof N.default}},{key:"removeFormat",value:function(D,F){var K=this.getText(D,F),ee=this.scroll.line(D+F),J=a(ee,2),G=J[0],X=J[1],ne=0,Z=new d.default;G!=null&&(G instanceof y.default?ne=G.newlineIndex(X)-X+1:ne=G.length()-X,Z=G.delta().slice(X,X+ne-1).insert(`
609`));var se=this.getContents(D,F+ne),fe=se.diff(new d.default().insert(K).concat(Z)),le=new d.default().retain(D).concat(fe);return this.applyDelta(le)}},{key:"update",value:function(D){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,ee=this.delta;if(F.length===1&&F[0].type==="characterData"&&F[0].target.data.match(z)&&g.default.find(F[0].target)){var J=g.default.find(F[0].target),G=(0,_.bubbleFormats)(J),X=J.offset(this.scroll),ne=F[0].oldValue.replace(x.default.CONTENTS,""),Z=new d.default().insert(ne),se=new d.default().insert(J.value()),fe=new d.default().retain(X).concat(Z.diff(se,K));D=fe.reduce(function(le,we){return we.insert?le.insert(we.insert,G):le.push(we)},new d.default),this.delta=ee.compose(D)}else this.delta=this.getDelta(),(!D||!(0,I.default)(ee.compose(D),this.delta))&&(D=ee.diff(this.delta,K));return D}}]),W})();function V(W,q){return Object.keys(q).reduce(function(D,F){return W[F]==null||(q[F]===W[F]?D[F]=q[F]:Array.isArray(q[F])?q[F].indexOf(W[F])<0&&(D[F]=q[F].concat([W[F]])):D[F]=[q[F],W[F]]),D},{})}function Y(W){return W.reduce(function(q,D){if(D.insert===1){var F=(0,E.default)(D.attributes);return delete F.image,q.insert({image:D.attributes.image},F)}if(D.attributes!=null&&(D.attributes.list===!0||D.attributes.bullet===!0)&&(D=(0,E.default)(D),D.attributes.list?D.attributes.list="ordered":(D.attributes.list="bullet",delete D.attributes.bullet)),typeof D.insert=="string"){var K=D.insert.replace(/\r\n/g,`
610`).replace(/\r/g,`
611`);return q.insert(K,D.attributes)}return q.push(D)},new d.default)}r.default=H}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.Range=void 0;var o=(function(){function A(I,M){var C=[],R=!0,B=!1,$=void 0;try{for(var z=I[Symbol.iterator](),H;!(R=(H=z.next()).done)&&(C.push(H.value),!(M&&C.length===M));R=!0);}catch(V){B=!0,$=V}finally{try{!R&&z.return&&z.return()}finally{if(B)throw $}}return C}return function(I,M){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return A(I,M);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function A(I,M){for(var C=0;C<M.length;C++){var R=M[C];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(I,R.key,R)}}return function(I,M,C){return M&&A(I.prototype,M),C&&A(I,C),I}})(),l=i(0),c=x(l),d=i(21),p=x(d),f=i(11),m=x(f),g=i(8),b=x(g),y=i(10),v=x(y);function x(A){return A&&A.__esModule?A:{default:A}}function _(A){if(Array.isArray(A)){for(var I=0,M=Array(A.length);I<A.length;I++)M[I]=A[I];return M}else return Array.from(A)}function j(A,I){if(!(A instanceof I))throw new TypeError("Cannot call a class as a function")}var S=(0,v.default)("quill:selection"),N=function A(I){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;j(this,A),this.index=I,this.length=M},O=(function(){function A(I,M){var C=this;j(this,A),this.emitter=M,this.scroll=I,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=c.default.create("cursor",this),this.lastRange=this.savedRange=new N(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){C.mouseDown||setTimeout(C.update.bind(C,b.default.sources.USER),1)}),this.emitter.on(b.default.events.EDITOR_CHANGE,function(R,B){R===b.default.events.TEXT_CHANGE&&B.length()>0&&C.update(b.default.sources.SILENT)}),this.emitter.on(b.default.events.SCROLL_BEFORE_UPDATE,function(){if(C.hasFocus()){var R=C.getNativeRange();R!=null&&R.start.node!==C.cursor.textNode&&C.emitter.once(b.default.events.SCROLL_UPDATE,function(){try{C.setNativeRange(R.start.node,R.start.offset,R.end.node,R.end.offset)}catch{}})}}),this.emitter.on(b.default.events.SCROLL_OPTIMIZE,function(R,B){if(B.range){var $=B.range,z=$.startNode,H=$.startOffset,V=$.endNode,Y=$.endOffset;C.setNativeRange(z,H,V,Y)}}),this.update(b.default.sources.SILENT)}return a(A,[{key:"handleComposition",value:function(){var M=this;this.root.addEventListener("compositionstart",function(){M.composing=!0}),this.root.addEventListener("compositionend",function(){if(M.composing=!1,M.cursor.parent){var C=M.cursor.restore();if(!C)return;setTimeout(function(){M.setNativeRange(C.startNode,C.startOffset,C.endNode,C.endOffset)},1)}})}},{key:"handleDragging",value:function(){var M=this;this.emitter.listenDOM("mousedown",document.body,function(){M.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){M.mouseDown=!1,M.update(b.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(M,C){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[M])){this.scroll.update();var R=this.getNativeRange();if(!(R==null||!R.native.collapsed||c.default.query(M,c.default.Scope.BLOCK))){if(R.start.node!==this.cursor.textNode){var B=c.default.find(R.start.node,!1);if(B==null)return;if(B instanceof c.default.Leaf){var $=B.split(R.start.offset);B.parent.insertBefore(this.cursor,$)}else B.insertBefore(this.cursor,R.start.node);this.cursor.attach()}this.cursor.format(M,C),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(M){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,R=this.scroll.length();M=Math.min(M,R-1),C=Math.min(M+C,R-1)-M;var B=void 0,$=this.scroll.leaf(M),z=o($,2),H=z[0],V=z[1];if(H==null)return null;var Y=H.position(V,!0),W=o(Y,2);B=W[0],V=W[1];var q=document.createRange();if(C>0){q.setStart(B,V);var D=this.scroll.leaf(M+C),F=o(D,2);if(H=F[0],V=F[1],H==null)return null;var K=H.position(V,!0),ee=o(K,2);return B=ee[0],V=ee[1],q.setEnd(B,V),q.getBoundingClientRect()}else{var J="left",G=void 0;return B instanceof Text?(V<B.data.length?(q.setStart(B,V),q.setEnd(B,V+1)):(q.setStart(B,V-1),q.setEnd(B,V),J="right"),G=q.getBoundingClientRect()):(G=H.domNode.getBoundingClientRect(),V>0&&(J="right")),{bottom:G.top+G.height,height:G.height,left:G[J],right:G[J],top:G.top,width:0}}}},{key:"getNativeRange",value:function(){var M=document.getSelection();if(M==null||M.rangeCount<=0)return null;var C=M.getRangeAt(0);if(C==null)return null;var R=this.normalizeNative(C);return S.info("getNativeRange",R),R}},{key:"getRange",value:function(){var M=this.getNativeRange();if(M==null)return[null,null];var C=this.normalizedToRange(M);return[C,M]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(M){var C=this,R=[[M.start.node,M.start.offset]];M.native.collapsed||R.push([M.end.node,M.end.offset]);var B=R.map(function(H){var V=o(H,2),Y=V[0],W=V[1],q=c.default.find(Y,!0),D=q.offset(C.scroll);return W===0?D:q instanceof c.default.Container?D+q.length():D+q.index(Y,W)}),$=Math.min(Math.max.apply(Math,_(B)),this.scroll.length()-1),z=Math.min.apply(Math,[$].concat(_(B)));return new N(z,$-z)}},{key:"normalizeNative",value:function(M){if(!E(this.root,M.startContainer)||!M.collapsed&&!E(this.root,M.endContainer))return null;var C={start:{node:M.startContainer,offset:M.startOffset},end:{node:M.endContainer,offset:M.endOffset},native:M};return[C.start,C.end].forEach(function(R){for(var B=R.node,$=R.offset;!(B instanceof Text)&&B.childNodes.length>0;)if(B.childNodes.length>$)B=B.childNodes[$],$=0;else if(B.childNodes.length===$)B=B.lastChild,$=B instanceof Text?B.data.length:B.childNodes.length+1;else break;R.node=B,R.offset=$}),C}},{key:"rangeToNative",value:function(M){var C=this,R=M.collapsed?[M.index]:[M.index,M.index+M.length],B=[],$=this.scroll.length();return R.forEach(function(z,H){z=Math.min($-1,z);var V=void 0,Y=C.scroll.leaf(z),W=o(Y,2),q=W[0],D=W[1],F=q.position(D,H!==0),K=o(F,2);V=K[0],D=K[1],B.push(V,D)}),B.length<2&&(B=B.concat(B)),B}},{key:"scrollIntoView",value:function(M){var C=this.lastRange;if(C!=null){var R=this.getBounds(C.index,C.length);if(R!=null){var B=this.scroll.length()-1,$=this.scroll.line(Math.min(C.index,B)),z=o($,1),H=z[0],V=H;if(C.length>0){var Y=this.scroll.line(Math.min(C.index+C.length,B)),W=o(Y,1);V=W[0]}if(!(H==null||V==null)){var q=M.getBoundingClientRect();R.top<q.top?M.scrollTop-=q.top-R.top:R.bottom>q.bottom&&(M.scrollTop+=R.bottom-q.bottom)}}}}},{key:"setNativeRange",value:function(M,C){var R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:M,B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:C,$=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(S.info("setNativeRange",M,C,R,B),!(M!=null&&(this.root.parentNode==null||M.parentNode==null||R.parentNode==null))){var z=document.getSelection();if(z!=null)if(M!=null){this.hasFocus()||this.root.focus();var H=(this.getNativeRange()||{}).native;if(H==null||$||M!==H.startContainer||C!==H.startOffset||R!==H.endContainer||B!==H.endOffset){M.tagName=="BR"&&(C=[].indexOf.call(M.parentNode.childNodes,M),M=M.parentNode),R.tagName=="BR"&&(B=[].indexOf.call(R.parentNode.childNodes,R),R=R.parentNode);var V=document.createRange();V.setStart(M,C),V.setEnd(R,B),z.removeAllRanges(),z.addRange(V)}}else z.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(M){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:b.default.sources.API;if(typeof C=="string"&&(R=C,C=!1),S.info("setRange",M),M!=null){var B=this.rangeToNative(M);this.setNativeRange.apply(this,_(B).concat([C]))}else this.setNativeRange(null);this.update(R)}},{key:"update",value:function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:b.default.sources.USER,C=this.lastRange,R=this.getRange(),B=o(R,2),$=B[0],z=B[1];if(this.lastRange=$,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,m.default)(C,this.lastRange)){var H;!this.composing&&z!=null&&z.native.collapsed&&z.start.node!==this.cursor.textNode&&this.cursor.restore();var V=[b.default.events.SELECTION_CHANGE,(0,p.default)(this.lastRange),(0,p.default)(C),M];if((H=this.emitter).emit.apply(H,[b.default.events.EDITOR_CHANGE].concat(V)),M!==b.default.sources.SILENT){var Y;(Y=this.emitter).emit.apply(Y,V)}}}}]),A})();function E(A,I){try{I.parentNode}catch{return!1}return I instanceof Text&&(I=I.parentNode),A.contains(I)}r.Range=N,r.default=O}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=(function(){function b(y,v){for(var x=0;x<v.length;x++){var _=v[x];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(y,_.key,_)}}return function(y,v,x){return v&&b(y.prototype,v),x&&b(y,x),y}})(),a=function b(y,v,x){y===null&&(y=Function.prototype);var _=Object.getOwnPropertyDescriptor(y,v);if(_===void 0){var j=Object.getPrototypeOf(y);return j===null?void 0:b(j,v,x)}else{if("value"in _)return _.value;var S=_.get;return S===void 0?void 0:S.call(x)}},l=i(0),c=d(l);function d(b){return b&&b.__esModule?b:{default:b}}function p(b,y){if(!(b instanceof y))throw new TypeError("Cannot call a class as a function")}function f(b,y){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:b}function m(b,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);b.prototype=Object.create(y&&y.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(b,y):b.__proto__=y)}var g=(function(b){m(y,b);function y(){return p(this,y),f(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return o(y,[{key:"insertInto",value:function(x,_){x.children.length===0?a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"insertInto",this).call(this,x,_):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),y})(c.default.Embed);g.blotName="break",g.tagName="BR",r.default=g}),(function(n,r,i){var o=this&&this.__extends||(function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,g){m.__proto__=g}||function(m,g){for(var b in g)g.hasOwnProperty(b)&&(m[b]=g[b])};return function(m,g){f(m,g);function b(){this.constructor=m}m.prototype=g===null?Object.create(g):(b.prototype=g.prototype,new b)}})();Object.defineProperty(r,"__esModule",{value:!0});var a=i(44),l=i(30),c=i(1),d=(function(f){o(m,f);function m(g){var b=f.call(this,g)||this;return b.build(),b}return m.prototype.appendChild=function(g){this.insertBefore(g)},m.prototype.attach=function(){f.prototype.attach.call(this),this.children.forEach(function(g){g.attach()})},m.prototype.build=function(){var g=this;this.children=new a.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(b){try{var y=p(b);g.insertBefore(y,g.children.head||void 0)}catch(v){if(v instanceof c.ParchmentError)return;throw v}})},m.prototype.deleteAt=function(g,b){if(g===0&&b===this.length())return this.remove();this.children.forEachAt(g,b,function(y,v,x){y.deleteAt(v,x)})},m.prototype.descendant=function(g,b){var y=this.children.find(b),v=y[0],x=y[1];return g.blotName==null&&g(v)||g.blotName!=null&&v instanceof g?[v,x]:v instanceof m?v.descendant(g,x):[null,-1]},m.prototype.descendants=function(g,b,y){b===void 0&&(b=0),y===void 0&&(y=Number.MAX_VALUE);var v=[],x=y;return this.children.forEachAt(b,y,function(_,j,S){(g.blotName==null&&g(_)||g.blotName!=null&&_ instanceof g)&&v.push(_),_ instanceof m&&(v=v.concat(_.descendants(g,j,x))),x-=S}),v},m.prototype.detach=function(){this.children.forEach(function(g){g.detach()}),f.prototype.detach.call(this)},m.prototype.formatAt=function(g,b,y,v){this.children.forEachAt(g,b,function(x,_,j){x.formatAt(_,j,y,v)})},m.prototype.insertAt=function(g,b,y){var v=this.children.find(g),x=v[0],_=v[1];if(x)x.insertAt(_,b,y);else{var j=y==null?c.create("text",b):c.create(b,y);this.appendChild(j)}},m.prototype.insertBefore=function(g,b){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(y){return g instanceof y}))throw new c.ParchmentError("Cannot insert "+g.statics.blotName+" into "+this.statics.blotName);g.insertInto(this,b)},m.prototype.length=function(){return this.children.reduce(function(g,b){return g+b.length()},0)},m.prototype.moveChildren=function(g,b){this.children.forEach(function(y){g.insertBefore(y,b)})},m.prototype.optimize=function(g){if(f.prototype.optimize.call(this,g),this.children.length===0)if(this.statics.defaultChild!=null){var b=c.create(this.statics.defaultChild);this.appendChild(b),b.optimize(g)}else this.remove()},m.prototype.path=function(g,b){b===void 0&&(b=!1);var y=this.children.find(g,b),v=y[0],x=y[1],_=[[this,g]];return v instanceof m?_.concat(v.path(x,b)):(v!=null&&_.push([v,x]),_)},m.prototype.removeChild=function(g){this.children.remove(g)},m.prototype.replace=function(g){g instanceof m&&g.moveChildren(this),f.prototype.replace.call(this,g)},m.prototype.split=function(g,b){if(b===void 0&&(b=!1),!b){if(g===0)return this;if(g===this.length())return this.next}var y=this.clone();return this.parent.insertBefore(y,this.next),this.children.forEachAt(g,this.length(),function(v,x,_){v=v.split(x,b),y.appendChild(v)}),y},m.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},m.prototype.update=function(g,b){var y=this,v=[],x=[];g.forEach(function(_){_.target===y.domNode&&_.type==="childList"&&(v.push.apply(v,_.addedNodes),x.push.apply(x,_.removedNodes))}),x.forEach(function(_){if(!(_.parentNode!=null&&_.tagName!=="IFRAME"&&document.body.compareDocumentPosition(_)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var j=c.find(_);j!=null&&(j.domNode.parentNode==null||j.domNode.parentNode===y.domNode)&&j.detach()}}),v.filter(function(_){return _.parentNode==y.domNode}).sort(function(_,j){return _===j?0:_.compareDocumentPosition(j)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(_){var j=null;_.nextSibling!=null&&(j=c.find(_.nextSibling));var S=p(_);(S.next!=j||S.next==null)&&(S.parent!=null&&S.parent.removeChild(y),y.insertBefore(S,j||void 0))})},m})(l.default);function p(f){var m=c.find(f);if(m==null)try{m=c.create(f)}catch{m=c.create(c.Scope.INLINE),[].slice.call(f.childNodes).forEach(function(b){m.domNode.appendChild(b)}),f.parentNode&&f.parentNode.replaceChild(m.domNode,f),m.attach()}return m}r.default=d}),(function(n,r,i){var o=this&&this.__extends||(function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,g){m.__proto__=g}||function(m,g){for(var b in g)g.hasOwnProperty(b)&&(m[b]=g[b])};return function(m,g){f(m,g);function b(){this.constructor=m}m.prototype=g===null?Object.create(g):(b.prototype=g.prototype,new b)}})();Object.defineProperty(r,"__esModule",{value:!0});var a=i(12),l=i(31),c=i(17),d=i(1),p=(function(f){o(m,f);function m(g){var b=f.call(this,g)||this;return b.attributes=new l.default(b.domNode),b}return m.formats=function(g){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return g.tagName.toLowerCase()},m.prototype.format=function(g,b){var y=d.query(g);y instanceof a.default?this.attributes.attribute(y,b):b&&y!=null&&(g!==this.statics.blotName||this.formats()[g]!==b)&&this.replaceWith(g,b)},m.prototype.formats=function(){var g=this.attributes.values(),b=this.statics.formats(this.domNode);return b!=null&&(g[this.statics.blotName]=b),g},m.prototype.replaceWith=function(g,b){var y=f.prototype.replaceWith.call(this,g,b);return this.attributes.copy(y),y},m.prototype.update=function(g,b){var y=this;f.prototype.update.call(this,g,b),g.some(function(v){return v.target===y.domNode&&v.type==="attributes"})&&this.attributes.build()},m.prototype.wrap=function(g,b){var y=f.prototype.wrap.call(this,g,b);return y instanceof m&&y.statics.scope===this.statics.scope&&this.attributes.move(y),y},m})(c.default);r.default=p}),(function(n,r,i){var o=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,f){p.__proto__=f}||function(p,f){for(var m in f)f.hasOwnProperty(m)&&(p[m]=f[m])};return function(p,f){d(p,f);function m(){this.constructor=p}p.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}})();Object.defineProperty(r,"__esModule",{value:!0});var a=i(30),l=i(1),c=(function(d){o(p,d);function p(){return d!==null&&d.apply(this,arguments)||this}return p.value=function(f){return!0},p.prototype.index=function(f,m){return this.domNode===f||this.domNode.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(m,1):-1},p.prototype.position=function(f,m){var g=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return f>0&&(g+=1),[this.parent.domNode,g]},p.prototype.value=function(){var f;return f={},f[this.statics.blotName]=this.statics.value(this.domNode)||!0,f},p.scope=l.Scope.INLINE_BLOT,p})(a.default);r.default=c}),(function(n,r,i){var o=i(11),a=i(3),l={attributes:{compose:function(d,p,f){typeof d!="object"&&(d={}),typeof p!="object"&&(p={});var m=a(!0,{},p);f||(m=Object.keys(m).reduce(function(b,y){return m[y]!=null&&(b[y]=m[y]),b},{}));for(var g in d)d[g]!==void 0&&p[g]===void 0&&(m[g]=d[g]);return Object.keys(m).length>0?m:void 0},diff:function(d,p){typeof d!="object"&&(d={}),typeof p!="object"&&(p={});var f=Object.keys(d).concat(Object.keys(p)).reduce(function(m,g){return o(d[g],p[g])||(m[g]=p[g]===void 0?null:p[g]),m},{});return Object.keys(f).length>0?f:void 0},transform:function(d,p,f){if(typeof d!="object")return p;if(typeof p=="object"){if(!f)return p;var m=Object.keys(p).reduce(function(g,b){return d[b]===void 0&&(g[b]=p[b]),g},{});return Object.keys(m).length>0?m:void 0}}},iterator:function(d){return new c(d)},length:function(d){return typeof d.delete=="number"?d.delete:typeof d.retain=="number"?d.retain:typeof d.insert=="string"?d.insert.length:1}};function c(d){this.ops=d,this.index=0,this.offset=0}c.prototype.hasNext=function(){return this.peekLength()<1/0},c.prototype.next=function(d){d||(d=1/0);var p=this.ops[this.index];if(p){var f=this.offset,m=l.length(p);if(d>=m-f?(d=m-f,this.index+=1,this.offset=0):this.offset+=d,typeof p.delete=="number")return{delete:d};var g={};return p.attributes&&(g.attributes=p.attributes),typeof p.retain=="number"?g.retain=d:typeof p.insert=="string"?g.insert=p.insert.substr(f,d):g.insert=p.insert,g}else return{retain:1/0}},c.prototype.peek=function(){return this.ops[this.index]},c.prototype.peekLength=function(){return this.ops[this.index]?l.length(this.ops[this.index])-this.offset:1/0},c.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},c.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var d=this.offset,p=this.index,f=this.next(),m=this.ops.slice(this.index);return this.offset=d,this.index=p,[f].concat(m)}else return[]},n.exports=l}),(function(n,r){var i=(function(){function o(y,v){return v!=null&&y instanceof v}var a;try{a=Map}catch{a=function(){}}var l;try{l=Set}catch{l=function(){}}var c;try{c=Promise}catch{c=function(){}}function d(y,v,x,_,j){typeof v=="object"&&(x=v.depth,_=v.prototype,j=v.includeNonEnumerable,v=v.circular);var S=[],N=[],O=typeof Buffer<"u";typeof v>"u"&&(v=!0),typeof x>"u"&&(x=1/0);function E(A,I){if(A===null)return null;if(I===0)return A;var M,C;if(typeof A!="object")return A;if(o(A,a))M=new a;else if(o(A,l))M=new l;else if(o(A,c))M=new c(function(q,D){A.then(function(F){q(E(F,I-1))},function(F){D(E(F,I-1))})});else if(d.__isArray(A))M=[];else if(d.__isRegExp(A))M=new RegExp(A.source,b(A)),A.lastIndex&&(M.lastIndex=A.lastIndex);else if(d.__isDate(A))M=new Date(A.getTime());else{if(O&&Buffer.isBuffer(A))return Buffer.allocUnsafe?M=Buffer.allocUnsafe(A.length):M=new Buffer(A.length),A.copy(M),M;o(A,Error)?M=Object.create(A):typeof _>"u"?(C=Object.getPrototypeOf(A),M=Object.create(C)):(M=Object.create(_),C=_)}if(v){var R=S.indexOf(A);if(R!=-1)return N[R];S.push(A),N.push(M)}o(A,a)&&A.forEach(function(q,D){var F=E(D,I-1),K=E(q,I-1);M.set(F,K)}),o(A,l)&&A.forEach(function(q){var D=E(q,I-1);M.add(D)});for(var B in A){var $;C&&($=Object.getOwnPropertyDescriptor(C,B)),!($&&$.set==null)&&(M[B]=E(A[B],I-1))}if(Object.getOwnPropertySymbols)for(var z=Object.getOwnPropertySymbols(A),B=0;B<z.length;B++){var H=z[B],V=Object.getOwnPropertyDescriptor(A,H);V&&!V.enumerable&&!j||(M[H]=E(A[H],I-1),V.enumerable||Object.defineProperty(M,H,{enumerable:!1}))}if(j)for(var Y=Object.getOwnPropertyNames(A),B=0;B<Y.length;B++){var W=Y[B],V=Object.getOwnPropertyDescriptor(A,W);V&&V.enumerable||(M[W]=E(A[W],I-1),Object.defineProperty(M,W,{enumerable:!1}))}return M}return E(y,x)}d.clonePrototype=function(v){if(v===null)return null;var x=function(){};return x.prototype=v,new x};function p(y){return Object.prototype.toString.call(y)}d.__objToStr=p;function f(y){return typeof y=="object"&&p(y)==="[object Date]"}d.__isDate=f;function m(y){return typeof y=="object"&&p(y)==="[object Array]"}d.__isArray=m;function g(y){return typeof y=="object"&&p(y)==="[object RegExp]"}d.__isRegExp=g;function b(y){var v="";return y.global&&(v+="g"),y.ignoreCase&&(v+="i"),y.multiline&&(v+="m"),v}return d.__getRegExpFlags=b,d})();typeof n=="object"&&n.exports&&(n.exports=i)}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=(function(){function M(C,R){var B=[],$=!0,z=!1,H=void 0;try{for(var V=C[Symbol.iterator](),Y;!($=(Y=V.next()).done)&&(B.push(Y.value),!(R&&B.length===R));$=!0);}catch(W){z=!0,H=W}finally{try{!$&&V.return&&V.return()}finally{if(z)throw H}}return B}return function(C,R){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return M(C,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function M(C,R){for(var B=0;B<R.length;B++){var $=R[B];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(C,$.key,$)}}return function(C,R,B){return R&&M(C.prototype,R),B&&M(C,B),C}})(),l=function M(C,R,B){C===null&&(C=Function.prototype);var $=Object.getOwnPropertyDescriptor(C,R);if($===void 0){var z=Object.getPrototypeOf(C);return z===null?void 0:M(z,R,B)}else{if("value"in $)return $.value;var H=$.get;return H===void 0?void 0:H.call(B)}},c=i(0),d=S(c),p=i(8),f=S(p),m=i(4),g=S(m),b=i(16),y=S(b),v=i(13),x=S(v),_=i(25),j=S(_);function S(M){return M&&M.__esModule?M:{default:M}}function N(M,C){if(!(M instanceof C))throw new TypeError("Cannot call a class as a function")}function O(M,C){if(!M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:M}function E(M,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);M.prototype=Object.create(C&&C.prototype,{constructor:{value:M,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(M,C):M.__proto__=C)}function A(M){return M instanceof g.default||M instanceof m.BlockEmbed}var I=(function(M){E(C,M);function C(R,B){N(this,C);var $=O(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,R));return $.emitter=B.emitter,Array.isArray(B.whitelist)&&($.whitelist=B.whitelist.reduce(function(z,H){return z[H]=!0,z},{})),$.domNode.addEventListener("DOMNodeInserted",function(){}),$.optimize(),$.enable(),$}return a(C,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(B,$){var z=this.line(B),H=o(z,2),V=H[0],Y=H[1],W=this.line(B+$),q=o(W,1),D=q[0];if(l(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"deleteAt",this).call(this,B,$),D!=null&&V!==D&&Y>0){if(V instanceof m.BlockEmbed||D instanceof m.BlockEmbed){this.optimize();return}if(V instanceof x.default){var F=V.newlineIndex(V.length(),!0);if(F>-1&&(V=V.split(F+1),V===D)){this.optimize();return}}else if(D instanceof x.default){var K=D.newlineIndex(0);K>-1&&D.split(K+1)}var ee=D.children.head instanceof y.default?null:D.children.head;V.moveChildren(D,ee),V.remove()}this.optimize()}},{key:"enable",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",B)}},{key:"formatAt",value:function(B,$,z,H){this.whitelist!=null&&!this.whitelist[z]||(l(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"formatAt",this).call(this,B,$,z,H),this.optimize())}},{key:"insertAt",value:function(B,$,z){if(!(z!=null&&this.whitelist!=null&&!this.whitelist[$])){if(B>=this.length())if(z==null||d.default.query($,d.default.Scope.BLOCK)==null){var H=d.default.create(this.statics.defaultChild);this.appendChild(H),z==null&&$.endsWith(`
612`)&&($=$.slice(0,-1)),H.insertAt(0,$,z)}else{var V=d.default.create($,z);this.appendChild(V)}else l(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"insertAt",this).call(this,B,$,z);this.optimize()}}},{key:"insertBefore",value:function(B,$){if(B.statics.scope===d.default.Scope.INLINE_BLOT){var z=d.default.create(this.statics.defaultChild);z.appendChild(B),B=z}l(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"insertBefore",this).call(this,B,$)}},{key:"leaf",value:function(B){return this.path(B).pop()||[null,-1]}},{key:"line",value:function(B){return B===this.length()?this.line(B-1):this.descendant(A,B)}},{key:"lines",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,z=function H(V,Y,W){var q=[],D=W;return V.children.forEachAt(Y,W,function(F,K,ee){A(F)?q.push(F):F instanceof d.default.Container&&(q=q.concat(H(F,K,D))),D-=ee}),q};return z(this,B,$)}},{key:"optimize",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(l(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"optimize",this).call(this,B,$),B.length>0&&this.emitter.emit(f.default.events.SCROLL_OPTIMIZE,B,$))}},{key:"path",value:function(B){return l(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"path",this).call(this,B).slice(1)}},{key:"update",value:function(B){if(this.batch!==!0){var $=f.default.sources.USER;typeof B=="string"&&($=B),Array.isArray(B)||(B=this.observer.takeRecords()),B.length>0&&this.emitter.emit(f.default.events.SCROLL_BEFORE_UPDATE,$,B),l(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"update",this).call(this,B.concat([])),B.length>0&&this.emitter.emit(f.default.events.SCROLL_UPDATE,$,B)}}}]),C})(d.default.Scroll);I.blotName="scroll",I.className="ql-editor",I.tagName="DIV",I.defaultChild="block",I.allowedChildren=[g.default,m.BlockEmbed,j.default],r.default=I}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SHORTKEY=r.default=void 0;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(G){return typeof G}:function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},a=(function(){function G(X,ne){var Z=[],se=!0,fe=!1,le=void 0;try{for(var we=X[Symbol.iterator](),ge;!(se=(ge=we.next()).done)&&(Z.push(ge.value),!(ne&&Z.length===ne));se=!0);}catch(be){fe=!0,le=be}finally{try{!se&&we.return&&we.return()}finally{if(fe)throw le}}return Z}return function(X,ne){if(Array.isArray(X))return X;if(Symbol.iterator in Object(X))return G(X,ne);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),l=(function(){function G(X,ne){for(var Z=0;Z<ne.length;Z++){var se=ne[Z];se.enumerable=se.enumerable||!1,se.configurable=!0,"value"in se&&(se.writable=!0),Object.defineProperty(X,se.key,se)}}return function(X,ne,Z){return ne&&G(X.prototype,ne),Z&&G(X,Z),X}})(),c=i(21),d=M(c),p=i(11),f=M(p),m=i(3),g=M(m),b=i(2),y=M(b),v=i(20),x=M(v),_=i(0),j=M(_),S=i(5),N=M(S),O=i(10),E=M(O),A=i(9),I=M(A);function M(G){return G&&G.__esModule?G:{default:G}}function C(G,X,ne){return X in G?Object.defineProperty(G,X,{value:ne,enumerable:!0,configurable:!0,writable:!0}):G[X]=ne,G}function R(G,X){if(!(G instanceof X))throw new TypeError("Cannot call a class as a function")}function B(G,X){if(!G)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return X&&(typeof X=="object"||typeof X=="function")?X:G}function $(G,X){if(typeof X!="function"&&X!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof X);G.prototype=Object.create(X&&X.prototype,{constructor:{value:G,enumerable:!1,writable:!0,configurable:!0}}),X&&(Object.setPrototypeOf?Object.setPrototypeOf(G,X):G.__proto__=X)}var z=(0,E.default)("quill:keyboard"),H=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",V=(function(G){$(X,G),l(X,null,[{key:"match",value:function(Z,se){return se=J(se),["altKey","ctrlKey","metaKey","shiftKey"].some(function(fe){return!!se[fe]!==Z[fe]&&se[fe]!==null})?!1:se.key===(Z.which||Z.keyCode)}}]);function X(ne,Z){R(this,X);var se=B(this,(X.__proto__||Object.getPrototypeOf(X)).call(this,ne,Z));return se.bindings={},Object.keys(se.options.bindings).forEach(function(fe){fe==="list autofill"&&ne.scroll.whitelist!=null&&!ne.scroll.whitelist.list||se.options.bindings[fe]&&se.addBinding(se.options.bindings[fe])}),se.addBinding({key:X.keys.ENTER,shiftKey:null},F),se.addBinding({key:X.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(se.addBinding({key:X.keys.BACKSPACE},{collapsed:!0},W),se.addBinding({key:X.keys.DELETE},{collapsed:!0},q)):(se.addBinding({key:X.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},W),se.addBinding({key:X.keys.DELETE},{collapsed:!0,suffix:/^.?$/},q)),se.addBinding({key:X.keys.BACKSPACE},{collapsed:!1},D),se.addBinding({key:X.keys.DELETE},{collapsed:!1},D),se.addBinding({key:X.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},W),se.listen(),se}return l(X,[{key:"addBinding",value:function(Z){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},le=J(Z);if(le==null||le.key==null)return z.warn("Attempted to add invalid keyboard binding",le);typeof se=="function"&&(se={handler:se}),typeof fe=="function"&&(fe={handler:fe}),le=(0,g.default)(le,se,fe),this.bindings[le.key]=this.bindings[le.key]||[],this.bindings[le.key].push(le)}},{key:"listen",value:function(){var Z=this;this.quill.root.addEventListener("keydown",function(se){if(!se.defaultPrevented){var fe=se.which||se.keyCode,le=(Z.bindings[fe]||[]).filter(function(pt){return X.match(se,pt)});if(le.length!==0){var we=Z.quill.getSelection();if(!(we==null||!Z.quill.hasFocus())){var ge=Z.quill.getLine(we.index),be=a(ge,2),Be=be[0],De=be[1],oe=Z.quill.getLeaf(we.index),de=a(oe,2),Se=de[0],Ee=de[1],ve=we.length===0?[Se,Ee]:Z.quill.getLeaf(we.index+we.length),He=a(ve,2),$e=He[0],Ye=He[1],Rt=Se instanceof j.default.Text?Se.value().slice(0,Ee):"",Ft=$e instanceof j.default.Text?$e.value().slice(Ye):"",ht={collapsed:we.length===0,empty:we.length===0&&Be.length()<=1,format:Z.quill.getFormat(we),offset:De,prefix:Rt,suffix:Ft},vi=le.some(function(pt){if(pt.collapsed!=null&&pt.collapsed!==ht.collapsed||pt.empty!=null&&pt.empty!==ht.empty||pt.offset!=null&&pt.offset!==ht.offset)return!1;if(Array.isArray(pt.format)){if(pt.format.every(function(an){return ht.format[an]==null}))return!1}else if(o(pt.format)==="object"&&!Object.keys(pt.format).every(function(an){return pt.format[an]===!0?ht.format[an]!=null:pt.format[an]===!1?ht.format[an]==null:(0,f.default)(pt.format[an],ht.format[an])}))return!1;return pt.prefix!=null&&!pt.prefix.test(ht.prefix)||pt.suffix!=null&&!pt.suffix.test(ht.suffix)?!1:pt.handler.call(Z,we,ht)!==!0});vi&&se.preventDefault()}}}})}}]),X})(I.default);V.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},V.DEFAULTS={bindings:{bold:ee("bold"),italic:ee("italic"),underline:ee("underline"),indent:{key:V.keys.TAB,format:["blockquote","indent","list"],handler:function(X,ne){if(ne.collapsed&&ne.offset!==0)return!0;this.quill.format("indent","+1",N.default.sources.USER)}},outdent:{key:V.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(X,ne){if(ne.collapsed&&ne.offset!==0)return!0;this.quill.format("indent","-1",N.default.sources.USER)}},"outdent backspace":{key:V.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(X,ne){ne.format.indent!=null?this.quill.format("indent","-1",N.default.sources.USER):ne.format.list!=null&&this.quill.format("list",!1,N.default.sources.USER)}},"indent code-block":K(!0),"outdent code-block":K(!1),"remove tab":{key:V.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(X){this.quill.deleteText(X.index-1,1,N.default.sources.USER)}},tab:{key:V.keys.TAB,handler:function(X){this.quill.history.cutoff();var ne=new y.default().retain(X.index).delete(X.length).insert("	");this.quill.updateContents(ne,N.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(X.index+1,N.default.sources.SILENT)}},"list empty enter":{key:V.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(X,ne){this.quill.format("list",!1,N.default.sources.USER),ne.format.indent&&this.quill.format("indent",!1,N.default.sources.USER)}},"checklist enter":{key:V.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(X){var ne=this.quill.getLine(X.index),Z=a(ne,2),se=Z[0],fe=Z[1],le=(0,g.default)({},se.formats(),{list:"checked"}),we=new y.default().retain(X.index).insert(`
613`,le).retain(se.length()-fe-1).retain(1,{list:"unchecked"});this.quill.updateContents(we,N.default.sources.USER),this.quill.setSelection(X.index+1,N.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:V.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(X,ne){var Z=this.quill.getLine(X.index),se=a(Z,2),fe=se[0],le=se[1],we=new y.default().retain(X.index).insert(`
614`,ne.format).retain(fe.length()-le-1).retain(1,{header:null});this.quill.updateContents(we,N.default.sources.USER),this.quill.setSelection(X.index+1,N.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(X,ne){var Z=ne.prefix.length,se=this.quill.getLine(X.index),fe=a(se,2),le=fe[0],we=fe[1];if(we>Z)return!0;var ge=void 0;switch(ne.prefix.trim()){case"[]":case"[ ]":ge="unchecked";break;case"[x]":ge="checked";break;case"-":case"*":ge="bullet";break;default:ge="ordered"}this.quill.insertText(X.index," ",N.default.sources.USER),this.quill.history.cutoff();var be=new y.default().retain(X.index-we).delete(Z+1).retain(le.length()-2-we).retain(1,{list:ge});this.quill.updateContents(be,N.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(X.index-Z,N.default.sources.SILENT)}},"code exit":{key:V.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(X){var ne=this.quill.getLine(X.index),Z=a(ne,2),se=Z[0],fe=Z[1],le=new y.default().retain(X.index+se.length()-fe-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(le,N.default.sources.USER)}},"embed left":Y(V.keys.LEFT,!1),"embed left shift":Y(V.keys.LEFT,!0),"embed right":Y(V.keys.RIGHT,!1),"embed right shift":Y(V.keys.RIGHT,!0)}};function Y(G,X){var ne,Z=G===V.keys.LEFT?"prefix":"suffix";return ne={key:G,shiftKey:X,altKey:null},C(ne,Z,/^$/),C(ne,"handler",function(fe){var le=fe.index;G===V.keys.RIGHT&&(le+=fe.length+1);var we=this.quill.getLeaf(le),ge=a(we,1),be=ge[0];return be instanceof j.default.Embed?(G===V.keys.LEFT?X?this.quill.setSelection(fe.index-1,fe.length+1,N.default.sources.USER):this.quill.setSelection(fe.index-1,N.default.sources.USER):X?this.quill.setSelection(fe.index,fe.length+1,N.default.sources.USER):this.quill.setSelection(fe.index+fe.length+1,N.default.sources.USER),!1):!0}),ne}function W(G,X){if(!(G.index===0||this.quill.getLength()<=1)){var ne=this.quill.getLine(G.index),Z=a(ne,1),se=Z[0],fe={};if(X.offset===0){var le=this.quill.getLine(G.index-1),we=a(le,1),ge=we[0];if(ge!=null&&ge.length()>1){var be=se.formats(),Be=this.quill.getFormat(G.index-1,1);fe=x.default.attributes.diff(be,Be)||{}}}var De=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(X.prefix)?2:1;this.quill.deleteText(G.index-De,De,N.default.sources.USER),Object.keys(fe).length>0&&this.quill.formatLine(G.index-De,De,fe,N.default.sources.USER),this.quill.focus()}}function q(G,X){var ne=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(X.suffix)?2:1;if(!(G.index>=this.quill.getLength()-ne)){var Z={},se=0,fe=this.quill.getLine(G.index),le=a(fe,1),we=le[0];if(X.offset>=we.length()-1){var ge=this.quill.getLine(G.index+1),be=a(ge,1),Be=be[0];if(Be){var De=we.formats(),oe=this.quill.getFormat(G.index,1);Z=x.default.attributes.diff(De,oe)||{},se=Be.length()}}this.quill.deleteText(G.index,ne,N.default.sources.USER),Object.keys(Z).length>0&&this.quill.formatLine(G.index+se-1,ne,Z,N.default.sources.USER)}}function D(G){var X=this.quill.getLines(G),ne={};if(X.length>1){var Z=X[0].formats(),se=X[X.length-1].formats();ne=x.default.attributes.diff(se,Z)||{}}this.quill.deleteText(G,N.default.sources.USER),Object.keys(ne).length>0&&this.quill.formatLine(G.index,1,ne,N.default.sources.USER),this.quill.setSelection(G.index,N.default.sources.SILENT),this.quill.focus()}function F(G,X){var ne=this;G.length>0&&this.quill.scroll.deleteAt(G.index,G.length);var Z=Object.keys(X.format).reduce(function(se,fe){return j.default.query(fe,j.default.Scope.BLOCK)&&!Array.isArray(X.format[fe])&&(se[fe]=X.format[fe]),se},{});this.quill.insertText(G.index,`
615`,Z,N.default.sources.USER),this.quill.setSelection(G.index+1,N.default.sources.SILENT),this.quill.focus(),Object.keys(X.format).forEach(function(se){Z[se]==null&&(Array.isArray(X.format[se])||se!=="link"&&ne.quill.format(se,X.format[se],N.default.sources.USER))})}function K(G){return{key:V.keys.TAB,shiftKey:!G,format:{"code-block":!0},handler:function(ne){var Z=j.default.query("code-block"),se=ne.index,fe=ne.length,le=this.quill.scroll.descendant(Z,se),we=a(le,2),ge=we[0],be=we[1];if(ge!=null){var Be=this.quill.getIndex(ge),De=ge.newlineIndex(be,!0)+1,oe=ge.newlineIndex(Be+be+fe),de=ge.domNode.textContent.slice(De,oe).split(`
616`);be=0,de.forEach(function(Se,Ee){G?(ge.insertAt(De+be,Z.TAB),be+=Z.TAB.length,Ee===0?se+=Z.TAB.length:fe+=Z.TAB.length):Se.startsWith(Z.TAB)&&(ge.deleteAt(De+be,Z.TAB.length),be-=Z.TAB.length,Ee===0?se-=Z.TAB.length:fe-=Z.TAB.length),be+=Se.length+1}),this.quill.update(N.default.sources.USER),this.quill.setSelection(se,fe,N.default.sources.SILENT)}}}}function ee(G){return{key:G[0].toUpperCase(),shortKey:!0,handler:function(ne,Z){this.quill.format(G,!Z.format[G],N.default.sources.USER)}}}function J(G){if(typeof G=="string"||typeof G=="number")return J({key:G});if((typeof G>"u"?"undefined":o(G))==="object"&&(G=(0,d.default)(G,!1)),typeof G.key=="string")if(V.keys[G.key.toUpperCase()]!=null)G.key=V.keys[G.key.toUpperCase()];else if(G.key.length===1)G.key=G.key.toUpperCase().charCodeAt(0);else return null;return G.shortKey&&(G[H]=G.shortKey,delete G.shortKey),G}r.default=V,r.SHORTKEY=H}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=(function(){function x(_,j){var S=[],N=!0,O=!1,E=void 0;try{for(var A=_[Symbol.iterator](),I;!(N=(I=A.next()).done)&&(S.push(I.value),!(j&&S.length===j));N=!0);}catch(M){O=!0,E=M}finally{try{!N&&A.return&&A.return()}finally{if(O)throw E}}return S}return function(_,j){if(Array.isArray(_))return _;if(Symbol.iterator in Object(_))return x(_,j);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=function x(_,j,S){_===null&&(_=Function.prototype);var N=Object.getOwnPropertyDescriptor(_,j);if(N===void 0){var O=Object.getPrototypeOf(_);return O===null?void 0:x(O,j,S)}else{if("value"in N)return N.value;var E=N.get;return E===void 0?void 0:E.call(S)}},l=(function(){function x(_,j){for(var S=0;S<j.length;S++){var N=j[S];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(_,N.key,N)}}return function(_,j,S){return j&&x(_.prototype,j),S&&x(_,S),_}})(),c=i(0),d=m(c),p=i(7),f=m(p);function m(x){return x&&x.__esModule?x:{default:x}}function g(x,_){if(!(x instanceof _))throw new TypeError("Cannot call a class as a function")}function b(x,_){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:x}function y(x,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);x.prototype=Object.create(_&&_.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(x,_):x.__proto__=_)}var v=(function(x){y(_,x),l(_,null,[{key:"value",value:function(){}}]);function _(j,S){g(this,_);var N=b(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,j));return N.selection=S,N.textNode=document.createTextNode(_.CONTENTS),N.domNode.appendChild(N.textNode),N._length=0,N}return l(_,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(S,N){if(this._length!==0)return a(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"format",this).call(this,S,N);for(var O=this,E=0;O!=null&&O.statics.scope!==d.default.Scope.BLOCK_BLOT;)E+=O.offset(O.parent),O=O.parent;O!=null&&(this._length=_.CONTENTS.length,O.optimize(),O.formatAt(E,_.CONTENTS.length,S,N),this._length=0)}},{key:"index",value:function(S,N){return S===this.textNode?0:a(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"index",this).call(this,S,N)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){a(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var S=this.textNode,N=this.selection.getNativeRange(),O=void 0,E=void 0,A=void 0;if(N!=null&&N.start.node===S&&N.end.node===S){var I=[S,N.start.offset,N.end.offset];O=I[0],E=I[1],A=I[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==_.CONTENTS){var M=this.textNode.data.split(_.CONTENTS).join("");this.next instanceof f.default?(O=this.next.domNode,this.next.insertAt(0,M),this.textNode.data=_.CONTENTS):(this.textNode.data=M,this.parent.insertBefore(d.default.create(this.textNode),this),this.textNode=document.createTextNode(_.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),E!=null){var C=[E,A].map(function(B){return Math.max(0,Math.min(O.data.length,B-1))}),R=o(C,2);return E=R[0],A=R[1],{startNode:O,startOffset:E,endNode:O,endOffset:A}}}}},{key:"update",value:function(S,N){var O=this;if(S.some(function(A){return A.type==="characterData"&&A.target===O.textNode})){var E=this.restore();E&&(N.range=E)}}},{key:"value",value:function(){return""}}]),_})(d.default.Embed);v.blotName="cursor",v.className="ql-cursor",v.tagName="span",v.CONTENTS="\uFEFF",r.default=v}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(0),a=d(o),l=i(4),c=d(l);function d(b){return b&&b.__esModule?b:{default:b}}function p(b,y){if(!(b instanceof y))throw new TypeError("Cannot call a class as a function")}function f(b,y){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:b}function m(b,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);b.prototype=Object.create(y&&y.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(b,y):b.__proto__=y)}var g=(function(b){m(y,b);function y(){return p(this,y),f(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return y})(a.default.Container);g.allowedChildren=[c.default,l.BlockEmbed,g],r.default=g}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ColorStyle=r.ColorClass=r.ColorAttributor=void 0;var o=(function(){function v(x,_){for(var j=0;j<_.length;j++){var S=_[j];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(x,S.key,S)}}return function(x,_,j){return _&&v(x.prototype,_),j&&v(x,j),x}})(),a=function v(x,_,j){x===null&&(x=Function.prototype);var S=Object.getOwnPropertyDescriptor(x,_);if(S===void 0){var N=Object.getPrototypeOf(x);return N===null?void 0:v(N,_,j)}else{if("value"in S)return S.value;var O=S.get;return O===void 0?void 0:O.call(j)}},l=i(0),c=d(l);function d(v){return v&&v.__esModule?v:{default:v}}function p(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}function f(v,x){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:v}function m(v,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);v.prototype=Object.create(x&&x.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(v,x):v.__proto__=x)}var g=(function(v){m(x,v);function x(){return p(this,x),f(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return o(x,[{key:"value",value:function(j){var S=a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"value",this).call(this,j);return S.startsWith("rgb(")?(S=S.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+S.split(",").map(function(N){return("00"+parseInt(N).toString(16)).slice(-2)}).join("")):S}}]),x})(c.default.Attributor.Style),b=new c.default.Attributor.Class("color","ql-color",{scope:c.default.Scope.INLINE}),y=new g("color","color",{scope:c.default.Scope.INLINE});r.ColorAttributor=g,r.ColorClass=b,r.ColorStyle=y}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.sanitize=r.default=void 0;var o=(function(){function y(v,x){for(var _=0;_<x.length;_++){var j=x[_];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(v,j.key,j)}}return function(v,x,_){return x&&y(v.prototype,x),_&&y(v,_),v}})(),a=function y(v,x,_){v===null&&(v=Function.prototype);var j=Object.getOwnPropertyDescriptor(v,x);if(j===void 0){var S=Object.getPrototypeOf(v);return S===null?void 0:y(S,x,_)}else{if("value"in j)return j.value;var N=j.get;return N===void 0?void 0:N.call(_)}},l=i(6),c=d(l);function d(y){return y&&y.__esModule?y:{default:y}}function p(y,v){if(!(y instanceof v))throw new TypeError("Cannot call a class as a function")}function f(y,v){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:y}function m(y,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);y.prototype=Object.create(v&&v.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(y,v):y.__proto__=v)}var g=(function(y){m(v,y);function v(){return p(this,v),f(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return o(v,[{key:"format",value:function(_,j){if(_!==this.statics.blotName||!j)return a(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"format",this).call(this,_,j);j=this.constructor.sanitize(j),this.domNode.setAttribute("href",j)}}],[{key:"create",value:function(_){var j=a(v.__proto__||Object.getPrototypeOf(v),"create",this).call(this,_);return _=this.sanitize(_),j.setAttribute("href",_),j.setAttribute("rel","noopener noreferrer"),j.setAttribute("target","_blank"),j}},{key:"formats",value:function(_){return _.getAttribute("href")}},{key:"sanitize",value:function(_){return b(_,this.PROTOCOL_WHITELIST)?_:this.SANITIZED_URL}}]),v})(c.default);g.blotName="link",g.tagName="A",g.SANITIZED_URL="about:blank",g.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function b(y,v){var x=document.createElement("a");x.href=y;var _=x.href.slice(0,x.href.indexOf(":"));return v.indexOf(_)>-1}r.default=g,r.sanitize=b}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},a=(function(){function v(x,_){for(var j=0;j<_.length;j++){var S=_[j];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(x,S.key,S)}}return function(x,_,j){return _&&v(x.prototype,_),j&&v(x,j),x}})(),l=i(23),c=f(l),d=i(107),p=f(d);function f(v){return v&&v.__esModule?v:{default:v}}function m(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}var g=0;function b(v,x){v.setAttribute(x,v.getAttribute(x)!=="true")}var y=(function(){function v(x){var _=this;m(this,v),this.select=x,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){_.togglePicker()}),this.label.addEventListener("keydown",function(j){switch(j.keyCode){case c.default.keys.ENTER:_.togglePicker();break;case c.default.keys.ESCAPE:_.escape(),j.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return a(v,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),b(this.label,"aria-expanded"),b(this.options,"aria-hidden")}},{key:"buildItem",value:function(_){var j=this,S=document.createElement("span");return S.tabIndex="0",S.setAttribute("role","button"),S.classList.add("ql-picker-item"),_.hasAttribute("value")&&S.setAttribute("data-value",_.getAttribute("value")),_.textContent&&S.setAttribute("data-label",_.textContent),S.addEventListener("click",function(){j.selectItem(S,!0)}),S.addEventListener("keydown",function(N){switch(N.keyCode){case c.default.keys.ENTER:j.selectItem(S,!0),N.preventDefault();break;case c.default.keys.ESCAPE:j.escape(),N.preventDefault();break}}),S}},{key:"buildLabel",value:function(){var _=document.createElement("span");return _.classList.add("ql-picker-label"),_.innerHTML=p.default,_.tabIndex="0",_.setAttribute("role","button"),_.setAttribute("aria-expanded","false"),this.container.appendChild(_),_}},{key:"buildOptions",value:function(){var _=this,j=document.createElement("span");j.classList.add("ql-picker-options"),j.setAttribute("aria-hidden","true"),j.tabIndex="-1",j.id="ql-picker-options-"+g,g+=1,this.label.setAttribute("aria-controls",j.id),this.options=j,[].slice.call(this.select.options).forEach(function(S){var N=_.buildItem(S);j.appendChild(N),S.selected===!0&&_.selectItem(N)}),this.container.appendChild(j)}},{key:"buildPicker",value:function(){var _=this;[].slice.call(this.select.attributes).forEach(function(j){_.container.setAttribute(j.name,j.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var _=this;this.close(),setTimeout(function(){return _.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(_){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,S=this.container.querySelector(".ql-selected");if(_!==S&&(S!=null&&S.classList.remove("ql-selected"),_!=null&&(_.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(_.parentNode.children,_),_.hasAttribute("data-value")?this.label.setAttribute("data-value",_.getAttribute("data-value")):this.label.removeAttribute("data-value"),_.hasAttribute("data-label")?this.label.setAttribute("data-label",_.getAttribute("data-label")):this.label.removeAttribute("data-label"),j))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":o(Event))==="object"){var N=document.createEvent("Event");N.initEvent("change",!0,!0),this.select.dispatchEvent(N)}this.close()}}},{key:"update",value:function(){var _=void 0;if(this.select.selectedIndex>-1){var j=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];_=this.select.options[this.select.selectedIndex],this.selectItem(j)}else this.selectItem(null);var S=_!=null&&_!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",S)}}]),v})();r.default=y}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(0),a=z(o),l=i(5),c=z(l),d=i(4),p=z(d),f=i(16),m=z(f),g=i(25),b=z(g),y=i(24),v=z(y),x=i(35),_=z(x),j=i(6),S=z(j),N=i(22),O=z(N),E=i(7),A=z(E),I=i(55),M=z(I),C=i(42),R=z(C),B=i(23),$=z(B);function z(H){return H&&H.__esModule?H:{default:H}}c.default.register({"blots/block":p.default,"blots/block/embed":d.BlockEmbed,"blots/break":m.default,"blots/container":b.default,"blots/cursor":v.default,"blots/embed":_.default,"blots/inline":S.default,"blots/scroll":O.default,"blots/text":A.default,"modules/clipboard":M.default,"modules/history":R.default,"modules/keyboard":$.default}),a.default.register(p.default,m.default,v.default,S.default,O.default,A.default),r.default=c.default}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(1),a=(function(){function l(c){this.domNode=c,this.domNode[o.DATA_KEY]={blot:this}}return Object.defineProperty(l.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),l.create=function(c){if(this.tagName==null)throw new o.ParchmentError("Blot definition missing tagName");var d;return Array.isArray(this.tagName)?(typeof c=="string"&&(c=c.toUpperCase(),parseInt(c).toString()===c&&(c=parseInt(c))),typeof c=="number"?d=document.createElement(this.tagName[c-1]):this.tagName.indexOf(c)>-1?d=document.createElement(c):d=document.createElement(this.tagName[0])):d=document.createElement(this.tagName),this.className&&d.classList.add(this.className),d},l.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},l.prototype.clone=function(){var c=this.domNode.cloneNode(!1);return o.create(c)},l.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[o.DATA_KEY]},l.prototype.deleteAt=function(c,d){var p=this.isolate(c,d);p.remove()},l.prototype.formatAt=function(c,d,p,f){var m=this.isolate(c,d);if(o.query(p,o.Scope.BLOT)!=null&&f)m.wrap(p,f);else if(o.query(p,o.Scope.ATTRIBUTE)!=null){var g=o.create(this.statics.scope);m.wrap(g),g.format(p,f)}},l.prototype.insertAt=function(c,d,p){var f=p==null?o.create("text",d):o.create(d,p),m=this.split(c);this.parent.insertBefore(f,m)},l.prototype.insertInto=function(c,d){d===void 0&&(d=null),this.parent!=null&&this.parent.children.remove(this);var p=null;c.children.insertBefore(this,d),d!=null&&(p=d.domNode),(this.domNode.parentNode!=c.domNode||this.domNode.nextSibling!=p)&&c.domNode.insertBefore(this.domNode,p),this.parent=c,this.attach()},l.prototype.isolate=function(c,d){var p=this.split(c);return p.split(d),p},l.prototype.length=function(){return 1},l.prototype.offset=function(c){return c===void 0&&(c=this.parent),this.parent==null||this==c?0:this.parent.children.offset(this)+this.parent.offset(c)},l.prototype.optimize=function(c){this.domNode[o.DATA_KEY]!=null&&delete this.domNode[o.DATA_KEY].mutations},l.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},l.prototype.replace=function(c){c.parent!=null&&(c.parent.insertBefore(this,c.next),c.remove())},l.prototype.replaceWith=function(c,d){var p=typeof c=="string"?o.create(c,d):c;return p.replace(this),p},l.prototype.split=function(c,d){return c===0?this:this.next},l.prototype.update=function(c,d){},l.prototype.wrap=function(c,d){var p=typeof c=="string"?o.create(c,d):c;return this.parent!=null&&this.parent.insertBefore(p,this.next),p.appendChild(this),p},l.blotName="abstract",l})();r.default=a}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(12),a=i(32),l=i(33),c=i(1),d=(function(){function p(f){this.attributes={},this.domNode=f,this.build()}return p.prototype.attribute=function(f,m){m?f.add(this.domNode,m)&&(f.value(this.domNode)!=null?this.attributes[f.attrName]=f:delete this.attributes[f.attrName]):(f.remove(this.domNode),delete this.attributes[f.attrName])},p.prototype.build=function(){var f=this;this.attributes={};var m=o.default.keys(this.domNode),g=a.default.keys(this.domNode),b=l.default.keys(this.domNode);m.concat(g).concat(b).forEach(function(y){var v=c.query(y,c.Scope.ATTRIBUTE);v instanceof o.default&&(f.attributes[v.attrName]=v)})},p.prototype.copy=function(f){var m=this;
616Object.keys(this.attributes).forEach(function(g){var b=m.attributes[g].value(m.domNode);f.format(g,b)})},p.prototype.move=function(f){var m=this;this.copy(f),Object.keys(this.attributes).forEach(function(g){m.attributes[g].remove(m.domNode)}),this.attributes={}},p.prototype.values=function(){var f=this;return Object.keys(this.attributes).reduce(function(m,g){return m[g]=f.attributes[g].value(f.domNode),m},{})},p})();r.default=d}),(function(n,r,i){var o=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,f){p.__proto__=f}||function(p,f){for(var m in f)f.hasOwnProperty(m)&&(p[m]=f[m])};return function(p,f){d(p,f);function m(){this.constructor=p}p.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}})();Object.defineProperty(r,"__esModule",{value:!0});var a=i(12);function l(d,p){var f=d.getAttribute("class")||"";return f.split(/\s+/).filter(function(m){return m.indexOf(p+"-")===0})}var c=(function(d){o(p,d);function p(){return d!==null&&d.apply(this,arguments)||this}return p.keys=function(f){return(f.getAttribute("class")||"").split(/\s+/).map(function(m){return m.split("-").slice(0,-1).join("-")})},p.prototype.add=function(f,m){return this.canAdd(f,m)?(this.remove(f),f.classList.add(this.keyName+"-"+m),!0):!1},p.prototype.remove=function(f){var m=l(f,this.keyName);m.forEach(function(g){f.classList.remove(g)}),f.classList.length===0&&f.removeAttribute("class")},p.prototype.value=function(f){var m=l(f,this.keyName)[0]||"",g=m.slice(this.keyName.length+1);return this.canAdd(f,g)?g:""},p})(a.default);r.default=c}),(function(n,r,i){var o=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,f){p.__proto__=f}||function(p,f){for(var m in f)f.hasOwnProperty(m)&&(p[m]=f[m])};return function(p,f){d(p,f);function m(){this.constructor=p}p.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}})();Object.defineProperty(r,"__esModule",{value:!0});var a=i(12);function l(d){var p=d.split("-"),f=p.slice(1).map(function(m){return m[0].toUpperCase()+m.slice(1)}).join("");return p[0]+f}var c=(function(d){o(p,d);function p(){return d!==null&&d.apply(this,arguments)||this}return p.keys=function(f){return(f.getAttribute("style")||"").split(";").map(function(m){var g=m.split(":");return g[0].trim()})},p.prototype.add=function(f,m){return this.canAdd(f,m)?(f.style[l(this.keyName)]=m,!0):!1},p.prototype.remove=function(f){f.style[l(this.keyName)]="",f.getAttribute("style")||f.removeAttribute("style")},p.prototype.value=function(f){var m=f.style[l(this.keyName)];return this.canAdd(f,m)?m:""},p})(a.default);r.default=c}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=(function(){function c(d,p){for(var f=0;f<p.length;f++){var m=p[f];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(d,m.key,m)}}
vendor: 90,027 bytes, lines 616-626
616return function(d,p,f){return p&&c(d.prototype,p),f&&c(d,f),d}})();function a(c,d){if(!(c instanceof d))throw new TypeError("Cannot call a class as a function")}var l=(function(){function c(d,p){a(this,c),this.quill=d,this.options=p,this.modules={}}return o(c,[{key:"init",value:function(){var p=this;Object.keys(this.options.modules).forEach(function(f){p.modules[f]==null&&p.addModule(f)})}},{key:"addModule",value:function(p){var f=this.quill.constructor.import("modules/"+p);return this.modules[p]=new f(this.quill,this.options.modules[p]||{}),this.modules[p]}}]),c})();l.DEFAULTS={modules:{}},l.themes={default:l},r.default=l}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=(function(){function x(_,j){for(var S=0;S<j.length;S++){var N=j[S];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(_,N.key,N)}}return function(_,j,S){return j&&x(_.prototype,j),S&&x(_,S),_}})(),a=function x(_,j,S){_===null&&(_=Function.prototype);var N=Object.getOwnPropertyDescriptor(_,j);if(N===void 0){var O=Object.getPrototypeOf(_);return O===null?void 0:x(O,j,S)}else{if("value"in N)return N.value;var E=N.get;return E===void 0?void 0:E.call(S)}},l=i(0),c=f(l),d=i(7),p=f(d);function f(x){return x&&x.__esModule?x:{default:x}}function m(x,_){if(!(x instanceof _))throw new TypeError("Cannot call a class as a function")}function g(x,_){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:x}function b(x,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);x.prototype=Object.create(_&&_.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(x,_):x.__proto__=_)}var y="\uFEFF",v=(function(x){b(_,x);function _(j){m(this,_);var S=g(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,j));return S.contentNode=document.createElement("span"),S.contentNode.setAttribute("contenteditable",!1),[].slice.call(S.domNode.childNodes).forEach(function(N){S.contentNode.appendChild(N)}),S.leftGuard=document.createTextNode(y),S.rightGuard=document.createTextNode(y),S.domNode.appendChild(S.leftGuard),S.domNode.appendChild(S.contentNode),S.domNode.appendChild(S.rightGuard),S}return o(_,[{key:"index",value:function(S,N){return S===this.leftGuard?0:S===this.rightGuard?1:a(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"index",this).call(this,S,N)}},{key:"restore",value:function(S){var N=void 0,O=void 0,E=S.data.split(y).join("");if(S===this.leftGuard)if(this.prev instanceof p.default){var A=this.prev.length();this.prev.insertAt(A,E),N={startNode:this.prev.domNode,startOffset:A+E.length}}else O=document.createTextNode(E),this.parent.insertBefore(c.default.create(O),this),N={startNode:O,startOffset:E.length};else S===this.rightGuard&&(this.next instanceof p.default?(this.next.insertAt(0,E),N={startNode:this.next.domNode,startOffset:E.length}):(O=document.createTextNode(E),this.parent.insertBefore(c.default.create(O),this.next),N={startNode:O,startOffset:E.length}));return S.data=y,N}},{key:"update",value:function(S,N){var O=this;S.forEach(function(E){if(E.type==="characterData"&&(E.target===O.leftGuard||E.target===O.rightGuard)){var A=O.restore(E.target);A&&(N.range=A)}})}}]),_})(c.default.Embed);r.default=v}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.AlignStyle=r.AlignClass=r.AlignAttribute=void 0;var o=i(0),a=l(o);function l(m){return m&&m.__esModule?m:{default:m}}var c={scope:a.default.Scope.BLOCK,whitelist:["right","center","justify"]},d=new a.default.Attributor.Attribute("align","align",c),p=new a.default.Attributor.Class("align","ql-align",c),f=new a.default.Attributor.Style("align","text-align",c);r.AlignAttribute=d,r.AlignClass=p,r.AlignStyle=f}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.BackgroundStyle=r.BackgroundClass=void 0;var o=i(0),a=c(o),l=i(26);function c(f){return f&&f.__esModule?f:{default:f}}var d=new a.default.Attributor.Class("background","ql-bg",{scope:a.default.Scope.INLINE}),p=new l.ColorAttributor("background","background-color",{scope:a.default.Scope.INLINE});r.BackgroundClass=d,r.BackgroundStyle=p}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.DirectionStyle=r.DirectionClass=r.DirectionAttribute=void 0;var o=i(0),a=l(o);function l(m){return m&&m.__esModule?m:{default:m}}var c={scope:a.default.Scope.BLOCK,whitelist:["rtl"]},d=new a.default.Attributor.Attribute("direction","dir",c),p=new a.default.Attributor.Class("direction","ql-direction",c),f=new a.default.Attributor.Style("direction","direction",c);r.DirectionAttribute=d,r.DirectionClass=p,r.DirectionStyle=f}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.FontClass=r.FontStyle=void 0;var o=(function(){function x(_,j){for(var S=0;S<j.length;S++){var N=j[S];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(_,N.key,N)}}return function(_,j,S){return j&&x(_.prototype,j),S&&x(_,S),_}})(),a=function x(_,j,S){_===null&&(_=Function.prototype);var N=Object.getOwnPropertyDescriptor(_,j);if(N===void 0){var O=Object.getPrototypeOf(_);return O===null?void 0:x(O,j,S)}else{if("value"in N)return N.value;var E=N.get;return E===void 0?void 0:E.call(S)}},l=i(0),c=d(l);function d(x){return x&&x.__esModule?x:{default:x}}function p(x,_){if(!(x instanceof _))throw new TypeError("Cannot call a class as a function")}function f(x,_){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:x}function m(x,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);x.prototype=Object.create(_&&_.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(x,_):x.__proto__=_)}var g={scope:c.default.Scope.INLINE,whitelist:["serif","monospace"]},b=new c.default.Attributor.Class("font","ql-font",g),y=(function(x){m(_,x);function _(){return p(this,_),f(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return o(_,[{key:"value",value:function(S){return a(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"value",this).call(this,S).replace(/["']/g,"")}}]),_})(c.default.Attributor.Style),v=new y("font","font-family",g);r.FontStyle=v,r.FontClass=b}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SizeStyle=r.SizeClass=void 0;var o=i(0),a=l(o);function l(p){return p&&p.__esModule?p:{default:p}}var c=new a.default.Attributor.Class("size","ql-size",{scope:a.default.Scope.INLINE,whitelist:["small","large","huge"]}),d=new a.default.Attributor.Style("size","font-size",{scope:a.default.Scope.INLINE,whitelist:["10px","18px","32px"]});r.SizeClass=c,r.SizeStyle=d}),(function(n,r,i){n.exports={align:{"":i(76),center:i(77),right:i(78),justify:i(79)},background:i(80),blockquote:i(81),bold:i(82),clean:i(83),code:i(58),"code-block":i(58),color:i(84),direction:{"":i(85),rtl:i(86)},float:{center:i(87),full:i(88),left:i(89),right:i(90)},formula:i(91),header:{1:i(92),2:i(93)},italic:i(94),image:i(95),indent:{"+1":i(96),"-1":i(97)},link:i(98),list:{ordered:i(99),bullet:i(100),check:i(101)},script:{sub:i(102),super:i(103)},strike:i(104),underline:i(105),video:i(106)}}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.getLastChangeIndex=r.default=void 0;var o=(function(){function j(S,N){for(var O=0;O<N.length;O++){var E=N[O];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(S,E.key,E)}}return function(S,N,O){return N&&j(S.prototype,N),O&&j(S,O),S}})(),a=i(0),l=m(a),c=i(5),d=m(c),p=i(9),f=m(p);function m(j){return j&&j.__esModule?j:{default:j}}function g(j,S){if(!(j instanceof S))throw new TypeError("Cannot call a class as a function")}function b(j,S){if(!j)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:j}function y(j,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);j.prototype=Object.create(S&&S.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(j,S):j.__proto__=S)}var v=(function(j){y(S,j);function S(N,O){g(this,S);var E=b(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,N,O));return E.lastRecorded=0,E.ignoreChange=!1,E.clear(),E.quill.on(d.default.events.EDITOR_CHANGE,function(A,I,M,C){A!==d.default.events.TEXT_CHANGE||E.ignoreChange||(!E.options.userOnly||C===d.default.sources.USER?E.record(I,M):E.transform(I))}),E.quill.keyboard.addBinding({key:"Z",shortKey:!0},E.undo.bind(E)),E.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},E.redo.bind(E)),/Win/i.test(navigator.platform)&&E.quill.keyboard.addBinding({key:"Y",shortKey:!0},E.redo.bind(E)),E}return o(S,[{key:"change",value:function(O,E){if(this.stack[O].length!==0){var A=this.stack[O].pop();this.stack[E].push(A),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(A[O],d.default.sources.USER),this.ignoreChange=!1;var I=_(A[O]);this.quill.setSelection(I)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(O,E){if(O.ops.length!==0){this.stack.redo=[];var A=this.quill.getContents().diff(E),I=Date.now();if(this.lastRecorded+this.options.delay>I&&this.stack.undo.length>0){var M=this.stack.undo.pop();A=A.compose(M.undo),O=M.redo.compose(O)}else this.lastRecorded=I;this.stack.undo.push({redo:O,undo:A}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(O){this.stack.undo.forEach(function(E){E.undo=O.transform(E.undo,!0),E.redo=O.transform(E.redo,!0)}),this.stack.redo.forEach(function(E){E.undo=O.transform(E.undo,!0),E.redo=O.transform(E.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),S})(f.default);v.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function x(j){var S=j.ops[j.ops.length-1];return S==null?!1:S.insert!=null?typeof S.insert=="string"&&S.insert.endsWith(`
617`):S.attributes!=null?Object.keys(S.attributes).some(function(N){return l.default.query(N,l.default.Scope.BLOCK)!=null}):!1}function _(j){var S=j.reduce(function(O,E){return O+=E.delete||0,O},0),N=j.length()-S;return x(j)&&(N-=1),N}r.default=v,r.getLastChangeIndex=_}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BaseTooltip=void 0;var o=(function(){function F(K,ee){for(var J=0;J<ee.length;J++){var G=ee[J];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(K,G.key,G)}}return function(K,ee,J){return ee&&F(K.prototype,ee),J&&F(K,J),K}})(),a=function F(K,ee,J){K===null&&(K=Function.prototype);var G=Object.getOwnPropertyDescriptor(K,ee);if(G===void 0){var X=Object.getPrototypeOf(K);return X===null?void 0:F(X,ee,J)}else{if("value"in G)return G.value;var ne=G.get;return ne===void 0?void 0:ne.call(J)}},l=i(3),c=I(l),d=i(2),p=I(d),f=i(8),m=I(f),g=i(23),b=I(g),y=i(34),v=I(y),x=i(59),_=I(x),j=i(60),S=I(j),N=i(28),O=I(N),E=i(61),A=I(E);function I(F){return F&&F.__esModule?F:{default:F}}function M(F,K){if(!(F instanceof K))throw new TypeError("Cannot call a class as a function")}function C(F,K){if(!F)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K&&(typeof K=="object"||typeof K=="function")?K:F}function R(F,K){if(typeof K!="function"&&K!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof K);F.prototype=Object.create(K&&K.prototype,{constructor:{value:F,enumerable:!1,writable:!0,configurable:!0}}),K&&(Object.setPrototypeOf?Object.setPrototypeOf(F,K):F.__proto__=K)}var B=[!1,"center","right","justify"],$=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],z=[!1,"serif","monospace"],H=["1","2","3",!1],V=["small",!1,"large","huge"],Y=(function(F){R(K,F);function K(ee,J){M(this,K);var G=C(this,(K.__proto__||Object.getPrototypeOf(K)).call(this,ee,J)),X=function ne(Z){if(!document.body.contains(ee.root))return document.body.removeEventListener("click",ne);G.tooltip!=null&&!G.tooltip.root.contains(Z.target)&&document.activeElement!==G.tooltip.textbox&&!G.quill.hasFocus()&&G.tooltip.hide(),G.pickers!=null&&G.pickers.forEach(function(se){se.container.contains(Z.target)||se.close()})};return ee.emitter.listenDOM("click",document.body,X),G}return o(K,[{key:"addModule",value:function(J){var G=a(K.prototype.__proto__||Object.getPrototypeOf(K.prototype),"addModule",this).call(this,J);return J==="toolbar"&&this.extendToolbar(G),G}},{key:"buildButtons",value:function(J,G){J.forEach(function(X){var ne=X.getAttribute("class")||"";ne.split(/\s+/).forEach(function(Z){if(Z.startsWith("ql-")&&(Z=Z.slice(3),G[Z]!=null))if(Z==="direction")X.innerHTML=G[Z][""]+G[Z].rtl;else if(typeof G[Z]=="string")X.innerHTML=G[Z];else{var se=X.value||"";se!=null&&G[Z][se]&&(X.innerHTML=G[Z][se])}})})}},{key:"buildPickers",value:function(J,G){var X=this;this.pickers=J.map(function(Z){if(Z.classList.contains("ql-align"))return Z.querySelector("option")==null&&D(Z,B),new S.default(Z,G.align);if(Z.classList.contains("ql-background")||Z.classList.contains("ql-color")){var se=Z.classList.contains("ql-background")?"background":"color";return Z.querySelector("option")==null&&D(Z,$,se==="background"?"#ffffff":"#000000"),new _.default(Z,G[se])}else return Z.querySelector("option")==null&&(Z.classList.contains("ql-font")?D(Z,z):Z.classList.contains("ql-header")?D(Z,H):Z.classList.contains("ql-size")&&D(Z,V)),new O.default(Z)});var ne=function(){X.pickers.forEach(function(se){se.update()})};this.quill.on(m.default.events.EDITOR_CHANGE,ne)}}]),K})(v.default);Y.DEFAULTS=(0,c.default)(!0,{},v.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var K=this,ee=this.container.querySelector("input.ql-image[type=file]");ee==null&&(ee=document.createElement("input"),ee.setAttribute("type","file"),ee.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),ee.classList.add("ql-image"),ee.addEventListener("change",function(){if(ee.files!=null&&ee.files[0]!=null){var J=new FileReader;J.onload=function(G){var X=K.quill.getSelection(!0);K.quill.updateContents(new p.default().retain(X.index).delete(X.length).insert({image:G.target.result}),m.default.sources.USER),K.quill.setSelection(X.index+1,m.default.sources.SILENT),ee.value=""},J.readAsDataURL(ee.files[0])}}),this.container.appendChild(ee)),ee.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var W=(function(F){R(K,F);function K(ee,J){M(this,K);var G=C(this,(K.__proto__||Object.getPrototypeOf(K)).call(this,ee,J));return G.textbox=G.root.querySelector('input[type="text"]'),G.listen(),G}return o(K,[{key:"listen",value:function(){var J=this;this.textbox.addEventListener("keydown",function(G){b.default.match(G,"enter")?(J.save(),G.preventDefault()):b.default.match(G,"escape")&&(J.cancel(),G.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),G!=null?this.textbox.value=G:J!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+J)||""),this.root.setAttribute("data-mode",J)}},{key:"restoreFocus",value:function(){var J=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=J}},{key:"save",value:function(){var J=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var G=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",J,m.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",J,m.default.sources.USER)),this.quill.root.scrollTop=G;break}case"video":J=q(J);case"formula":{if(!J)break;var X=this.quill.getSelection(!0);if(X!=null){var ne=X.index+X.length;this.quill.insertEmbed(ne,this.root.getAttribute("data-mode"),J,m.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(ne+1," ",m.default.sources.USER),this.quill.setSelection(ne+2,m.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),K})(A.default);function q(F){var K=F.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||F.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return K?(K[1]||"https")+"://www.youtube.com/embed/"+K[2]+"?showinfo=0":(K=F.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(K[1]||"https")+"://player.vimeo.com/video/"+K[2]+"/":F}function D(F,K){var ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;K.forEach(function(J){var G=document.createElement("option");J===ee?G.setAttribute("selected","selected"):G.setAttribute("value",J),F.appendChild(G)})}r.BaseTooltip=W,r.default=Y}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=(function(){function a(){this.head=this.tail=null,this.length=0}return a.prototype.append=function(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];this.insertBefore(l[0],null),l.length>1&&this.append.apply(this,l.slice(1))},a.prototype.contains=function(l){for(var c,d=this.iterator();c=d();)if(c===l)return!0;return!1},a.prototype.insertBefore=function(l,c){l&&(l.next=c,c!=null?(l.prev=c.prev,c.prev!=null&&(c.prev.next=l),c.prev=l,c===this.head&&(this.head=l)):this.tail!=null?(this.tail.next=l,l.prev=this.tail,this.tail=l):(l.prev=null,this.head=this.tail=l),this.length+=1)},a.prototype.offset=function(l){for(var c=0,d=this.head;d!=null;){if(d===l)return c;c+=d.length(),d=d.next}return-1},a.prototype.remove=function(l){this.contains(l)&&(l.prev!=null&&(l.prev.next=l.next),l.next!=null&&(l.next.prev=l.prev),l===this.head&&(this.head=l.next),l===this.tail&&(this.tail=l.prev),this.length-=1)},a.prototype.iterator=function(l){return l===void 0&&(l=this.head),function(){var c=l;return l!=null&&(l=l.next),c}},a.prototype.find=function(l,c){c===void 0&&(c=!1);for(var d,p=this.iterator();d=p();){var f=d.length();if(l<f||c&&l===f&&(d.next==null||d.next.length()!==0))return[d,l];l-=f}return[null,0]},a.prototype.forEach=function(l){for(var c,d=this.iterator();c=d();)l(c)},a.prototype.forEachAt=function(l,c,d){if(!(c<=0))for(var p=this.find(l),f=p[0],m=p[1],g,b=l-m,y=this.iterator(f);(g=y())&&b<l+c;){var v=g.length();l>b?d(g,l-b,Math.min(c,b+v-l)):d(g,0,Math.min(v,l+c-b)),b+=v}},a.prototype.map=function(l){return this.reduce(function(c,d){return c.push(l(d)),c},[])},a.prototype.reduce=function(l,c){for(var d,p=this.iterator();d=p();)c=l(c,d);return c},a})();r.default=o}),(function(n,r,i){var o=this&&this.__extends||(function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,g){m.__proto__=g}||function(m,g){for(var b in g)g.hasOwnProperty(b)&&(m[b]=g[b])};return function(m,g){f(m,g);function b(){this.constructor=m}m.prototype=g===null?Object.create(g):(b.prototype=g.prototype,new b)}})();Object.defineProperty(r,"__esModule",{value:!0});var a=i(17),l=i(1),c={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},d=100,p=(function(f){o(m,f);function m(g){var b=f.call(this,g)||this;return b.scroll=b,b.observer=new MutationObserver(function(y){b.update(y)}),b.observer.observe(b.domNode,c),b.attach(),b}return m.prototype.detach=function(){f.prototype.detach.call(this),this.observer.disconnect()},m.prototype.deleteAt=function(g,b){this.update(),g===0&&b===this.length()?this.children.forEach(function(y){y.remove()}):f.prototype.deleteAt.call(this,g,b)},m.prototype.formatAt=function(g,b,y,v){this.update(),f.prototype.formatAt.call(this,g,b,y,v)},m.prototype.insertAt=function(g,b,y){this.update(),f.prototype.insertAt.call(this,g,b,y)},m.prototype.optimize=function(g,b){var y=this;g===void 0&&(g=[]),b===void 0&&(b={}),f.prototype.optimize.call(this,b);for(var v=[].slice.call(this.observer.takeRecords());v.length>0;)g.push(v.pop());for(var x=function(N,O){O===void 0&&(O=!0),!(N==null||N===y)&&N.domNode.parentNode!=null&&(N.domNode[l.DATA_KEY].mutations==null&&(N.domNode[l.DATA_KEY].mutations=[]),O&&x(N.parent))},_=function(N){N.domNode[l.DATA_KEY]==null||N.domNode[l.DATA_KEY].mutations==null||(N instanceof a.default&&N.children.forEach(_),N.optimize(b))},j=g,S=0;j.length>0;S+=1){if(S>=d)throw new Error("[Parchment] Maximum optimize iterations reached");for(j.forEach(function(N){var O=l.find(N.target,!0);O!=null&&(O.domNode===N.target&&(N.type==="childList"?(x(l.find(N.previousSibling,!1)),[].forEach.call(N.addedNodes,function(E){var A=l.find(E,!1);x(A,!1),A instanceof a.default&&A.children.forEach(function(I){x(I,!1)})})):N.type==="attributes"&&x(O.prev)),x(O))}),this.children.forEach(_),j=[].slice.call(this.observer.takeRecords()),v=j.slice();v.length>0;)g.push(v.pop())}},m.prototype.update=function(g,b){var y=this;b===void 0&&(b={}),g=g||this.observer.takeRecords(),g.map(function(v){var x=l.find(v.target,!0);return x==null?null:x.domNode[l.DATA_KEY].mutations==null?(x.domNode[l.DATA_KEY].mutations=[v],x):(x.domNode[l.DATA_KEY].mutations.push(v),null)}).forEach(function(v){v==null||v===y||v.domNode[l.DATA_KEY]==null||v.update(v.domNode[l.DATA_KEY].mutations||[],b)}),this.domNode[l.DATA_KEY].mutations!=null&&f.prototype.update.call(this,this.domNode[l.DATA_KEY].mutations,b),this.optimize(g,b)},m.blotName="scroll",m.defaultChild="block",m.scope=l.Scope.BLOCK_BLOT,m.tagName="DIV",m})(a.default);r.default=p}),(function(n,r,i){var o=this&&this.__extends||(function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var g in m)m.hasOwnProperty(g)&&(f[g]=m[g])};return function(f,m){p(f,m);function g(){this.constructor=f}f.prototype=m===null?Object.create(m):(g.prototype=m.prototype,new g)}})();Object.defineProperty(r,"__esModule",{value:!0});var a=i(18),l=i(1);function c(p,f){if(Object.keys(p).length!==Object.keys(f).length)return!1;for(var m in p)if(p[m]!==f[m])return!1;return!0}var d=(function(p){o(f,p);function f(){return p!==null&&p.apply(this,arguments)||this}return f.formats=function(m){if(m.tagName!==f.tagName)return p.formats.call(this,m)},f.prototype.format=function(m,g){var b=this;m===this.statics.blotName&&!g?(this.children.forEach(function(y){y instanceof a.default||(y=y.wrap(f.blotName,!0)),b.attributes.copy(y)}),this.unwrap()):p.prototype.format.call(this,m,g)},f.prototype.formatAt=function(m,g,b,y){if(this.formats()[b]!=null||l.query(b,l.Scope.ATTRIBUTE)){var v=this.isolate(m,g);v.format(b,y)}else p.prototype.formatAt.call(this,m,g,b,y)},f.prototype.optimize=function(m){p.prototype.optimize.call(this,m);var g=this.formats();if(Object.keys(g).length===0)return this.unwrap();var b=this.next;b instanceof f&&b.prev===this&&c(g,b.formats())&&(b.moveChildren(this),b.remove())},f.blotName="inline",f.scope=l.Scope.INLINE_BLOT,f.tagName="SPAN",f})(a.default);r.default=d}),(function(n,r,i){var o=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,f){p.__proto__=f}||function(p,f){for(var m in f)f.hasOwnProperty(m)&&(p[m]=f[m])};return function(p,f){d(p,f);function m(){this.constructor=p}p.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}})();Object.defineProperty(r,"__esModule",{value:!0});var a=i(18),l=i(1),c=(function(d){o(p,d);function p(){return d!==null&&d.apply(this,arguments)||this}return p.formats=function(f){var m=l.query(p.blotName).tagName;if(f.tagName!==m)return d.formats.call(this,f)},p.prototype.format=function(f,m){l.query(f,l.Scope.BLOCK)!=null&&(f===this.statics.blotName&&!m?this.replaceWith(p.blotName):d.prototype.format.call(this,f,m))},p.prototype.formatAt=function(f,m,g,b){l.query(g,l.Scope.BLOCK)!=null?this.format(g,b):d.prototype.formatAt.call(this,f,m,g,b)},p.prototype.insertAt=function(f,m,g){if(g==null||l.query(m,l.Scope.INLINE)!=null)d.prototype.insertAt.call(this,f,m,g);else{var b=this.split(f),y=l.create(m,g);b.parent.insertBefore(y,b)}},p.prototype.update=function(f,m){navigator.userAgent.match(/Trident/)?this.build():d.prototype.update.call(this,f,m)},p.blotName="block",p.scope=l.Scope.BLOCK_BLOT,p.tagName="P",p})(a.default);r.default=c}),(function(n,r,i){var o=this&&this.__extends||(function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var f in p)p.hasOwnProperty(f)&&(d[f]=p[f])};return function(d,p){c(d,p);function f(){this.constructor=d}d.prototype=p===null?Object.create(p):(f.prototype=p.prototype,new f)}})();Object.defineProperty(r,"__esModule",{value:!0});var a=i(19),l=(function(c){o(d,c);function d(){return c!==null&&c.apply(this,arguments)||this}return d.formats=function(p){},d.prototype.format=function(p,f){c.prototype.formatAt.call(this,0,this.length(),p,f)},d.prototype.formatAt=function(p,f,m,g){p===0&&f===this.length()?this.format(m,g):c.prototype.formatAt.call(this,p,f,m,g)},d.prototype.formats=function(){return this.statics.formats(this.domNode)},d})(a.default);r.default=l}),(function(n,r,i){var o=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,f){p.__proto__=f}||function(p,f){for(var m in f)f.hasOwnProperty(m)&&(p[m]=f[m])};return function(p,f){d(p,f);function m(){this.constructor=p}p.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}})();Object.defineProperty(r,"__esModule",{value:!0});var a=i(19),l=i(1),c=(function(d){o(p,d);function p(f){var m=d.call(this,f)||this;return m.text=m.statics.value(m.domNode),m}return p.create=function(f){return document.createTextNode(f)},p.value=function(f){var m=f.data;return m.normalize&&(m=m.normalize()),m},p.prototype.deleteAt=function(f,m){this.domNode.data=this.text=this.text.slice(0,f)+this.text.slice(f+m)},p.prototype.index=function(f,m){return this.domNode===f?m:-1},p.prototype.insertAt=function(f,m,g){g==null?(this.text=this.text.slice(0,f)+m+this.text.slice(f),this.domNode.data=this.text):d.prototype.insertAt.call(this,f,m,g)},p.prototype.length=function(){return this.text.length},p.prototype.optimize=function(f){d.prototype.optimize.call(this,f),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof p&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},p.prototype.position=function(f,m){return[this.domNode,f]},p.prototype.split=function(f,m){if(m===void 0&&(m=!1),!m){if(f===0)return this;if(f===this.length())return this.next}var g=l.create(this.domNode.splitText(f));return this.parent.insertBefore(g,this.next),this.text=this.statics.value(this.domNode),g},p.prototype.update=function(f,m){var g=this;f.some(function(b){return b.type==="characterData"&&b.target===g.domNode})&&(this.text=this.statics.value(this.domNode))},p.prototype.value=function(){return this.text},p.blotName="text",p.scope=l.Scope.INLINE_BLOT,p})(a.default);r.default=c}),(function(n,r,i){var o=document.createElement("div");if(o.classList.toggle("test-class",!1),o.classList.contains("test-class")){var a=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(l,c){return arguments.length>1&&!this.contains(l)==!c?c:a.call(this,l)}}String.prototype.startsWith||(String.prototype.startsWith=function(l,c){return c=c||0,this.substr(c,l.length)===l}),String.prototype.endsWith||(String.prototype.endsWith=function(l,c){var d=this.toString();(typeof c!="number"||!isFinite(c)||Math.floor(c)!==c||c>d.length)&&(c=d.length),c-=l.length;var p=d.indexOf(l,c);return p!==-1&&p===c}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(c){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof c!="function")throw new TypeError("predicate must be a function");for(var d=Object(this),p=d.length>>>0,f=arguments[1],m,g=0;g<p;g++)if(m=d[g],c.call(f,m,g,d))return m}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})}),(function(n,r){var i=-1,o=1,a=0;function l(S,N,O){if(S==N)return S?[[a,S]]:[];(O<0||S.length<O)&&(O=null);var E=f(S,N),A=S.substring(0,E);S=S.substring(E),N=N.substring(E),E=m(S,N);var I=S.substring(S.length-E);S=S.substring(0,S.length-E),N=N.substring(0,N.length-E);var M=c(S,N);return A&&M.unshift([a,A]),I&&M.push([a,I]),b(M),O!=null&&(M=x(M,O)),M=_(M),M}function c(S,N){var O;if(!S)return[[o,N]];if(!N)return[[i,S]];var E=S.length>N.length?S:N,A=S.length>N.length?N:S,I=E.indexOf(A);if(I!=-1)return O=[[o,E.substring(0,I)],[a,A],[o,E.substring(I+A.length)]],S.length>N.length&&(O[0][0]=O[2][0]=i),O;if(A.length==1)return[[i,S],[o,N]];var M=g(S,N);if(M){var C=M[0],R=M[1],B=M[2],$=M[3],z=M[4],H=l(C,B),V=l(R,$);return H.concat([[a,z]],V)}return d(S,N)}function d(S,N){for(var O=S.length,E=N.length,A=Math.ceil((O+E)/2),I=A,M=2*A,C=new Array(M),R=new Array(M),B=0;B<M;B++)C[B]=-1,R[B]=-1;C[I+1]=0,R[I+1]=0;for(var $=O-E,z=$%2!=0,H=0,V=0,Y=0,W=0,q=0;q<A;q++){for(var D=-q+H;D<=q-V;D+=2){var F=I+D,K;D==-q||D!=q&&C[F-1]<C[F+1]?K=C[F+1]:K=C[F-1]+1;for(var ee=K-D;K<O&&ee<E&&S.charAt(K)==N.charAt(ee);)K++,ee++;if(C[F]=K,K>O)V+=2;else if(ee>E)H+=2;else if(z){var J=I+$-D;if(J>=0&&J<M&&R[J]!=-1){var G=O-R[J];if(K>=G)return p(S,N,K,ee)}}}for(var X=-q+Y;X<=q-W;X+=2){var J=I+X,G;X==-q||X!=q&&R[J-1]<R[J+1]?G=R[J+1]:G=R[J-1]+1;for(var ne=G-X;G<O&&ne<E&&S.charAt(O-G-1)==N.charAt(E-ne-1);)G++,ne++;if(R[J]=G,G>O)W+=2;else if(ne>E)Y+=2;else if(!z){var F=I+$-X;if(F>=0&&F<M&&C[F]!=-1){var K=C[F],ee=I+K-F;if(G=O-G,K>=G)return p(S,N,K,ee)}}}}return[[i,S],[o,N]]}function p(S,N,O,E){var A=S.substring(0,O),I=N.substring(0,E),M=S.substring(O),C=N.substring(E),R=l(A,I),B=l(M,C);return R.concat(B)}function f(S,N){if(!S||!N||S.charAt(0)!=N.charAt(0))return 0;for(var O=0,E=Math.min(S.length,N.length),A=E,I=0;O<A;)S.substring(I,A)==N.substring(I,A)?(O=A,I=O):E=A,A=Math.floor((E-O)/2+O);return A}function m(S,N){if(!S||!N||S.charAt(S.length-1)!=N.charAt(N.length-1))return 0;for(var O=0,E=Math.min(S.length,N.length),A=E,I=0;O<A;)S.substring(S.length-A,S.length-I)==N.substring(N.length-A,N.length-I)?(O=A,I=O):E=A,A=Math.floor((E-O)/2+O);return A}function g(S,N){var O=S.length>N.length?S:N,E=S.length>N.length?N:S;if(O.length<4||E.length*2<O.length)return null;function A(V,Y,W){for(var q=V.substring(W,W+Math.floor(V.length/4)),D=-1,F="",K,ee,J,G;(D=Y.indexOf(q,D+1))!=-1;){var X=f(V.substring(W),Y.substring(D)),ne=m(V.substring(0,W),Y.substring(0,D));F.length<ne+X&&(F=Y.substring(D-ne,D)+Y.substring(D,D+X),K=V.substring(0,W-ne),ee=V.substring(W+X),J=Y.substring(0,D-ne),G=Y.substring(D+X))}return F.length*2>=V.length?[K,ee,J,G,F]:null}var I=A(O,E,Math.ceil(O.length/4)),M=A(O,E,Math.ceil(O.length/2)),C;if(!I&&!M)return null;M?I?C=I[4].length>M[4].length?I:M:C=M:C=I;var R,B,$,z;S.length>N.length?(R=C[0],B=C[1],$=C[2],z=C[3]):($=C[0],z=C[1],R=C[2],B=C[3]);var H=C[4];return[R,B,$,z,H]}function b(S){S.push([a,""]);for(var N=0,O=0,E=0,A="",I="",M;N<S.length;)switch(S[N][0]){case o:E++,I+=S[N][1],N++;break;case i:O++,A+=S[N][1],N++;break;case a:O+E>1?(O!==0&&E!==0&&(M=f(I,A),M!==0&&(N-O-E>0&&S[N-O-E-1][0]==a?S[N-O-E-1][1]+=I.substring(0,M):(S.splice(0,0,[a,I.substring(0,M)]),N++),I=I.substring(M),A=A.substring(M)),M=m(I,A),M!==0&&(S[N][1]=I.substring(I.length-M)+S[N][1],I=I.substring(0,I.length-M),A=A.substring(0,A.length-M))),O===0?S.splice(N-E,O+E,[o,I]):E===0?S.splice(N-O,O+E,[i,A]):S.splice(N-O-E,O+E,[i,A],[o,I]),N=N-O-E+(O?1:0)+(E?1:0)+1):N!==0&&S[N-1][0]==a?(S[N-1][1]+=S[N][1],S.splice(N,1)):N++,E=0,O=0,A="",I="";break}S[S.length-1][1]===""&&S.pop();var C=!1;for(N=1;N<S.length-1;)S[N-1][0]==a&&S[N+1][0]==a&&(S[N][1].substring(S[N][1].length-S[N-1][1].length)==S[N-1][1]?(S[N][1]=S[N-1][1]+S[N][1].substring(0,S[N][1].length-S[N-1][1].length),S[N+1][1]=S[N-1][1]+S[N+1][1],S.splice(N-1,1),C=!0):S[N][1].substring(0,S[N+1][1].length)==S[N+1][1]&&(S[N-1][1]+=S[N+1][1],S[N][1]=S[N][1].substring(S[N+1][1].length)+S[N+1][1],S.splice(N+1,1),C=!0)),N++;C&&b(S)}var y=l;y.INSERT=o,y.DELETE=i,y.EQUAL=a,n.exports=y;function v(S,N){if(N===0)return[a,S];for(var O=0,E=0;E<S.length;E++){var A=S[E];if(A[0]===i||A[0]===a){var I=O+A[1].length;if(N===I)return[E+1,S];if(N<I){S=S.slice();var M=N-O,C=[A[0],A[1].slice(0,M)],R=[A[0],A[1].slice(M)];return S.splice(E,1,C,R),[E+1,S]}else O=I}}throw new Error("cursor_pos is out of bounds!")}function x(S,N){var O=v(S,N),E=O[1],A=O[0],I=E[A],M=E[A+1];if(I==null)return S;if(I[0]!==a)return S;if(M!=null&&I[1]+M[1]===M[1]+I[1])return E.splice(A,2,M,I),j(E,A,2);if(M!=null&&M[1].indexOf(I[1])===0){E.splice(A,2,[M[0],I[1]],[0,I[1]]);var C=M[1].slice(I[1].length);return C.length>0&&E.splice(A+2,0,[M[0],C]),j(E,A,3)}else return S}function _(S){for(var N=!1,O=function(M){return M.charCodeAt(0)>=56320&&M.charCodeAt(0)<=57343},E=function(M){return M.charCodeAt(M.length-1)>=55296&&M.charCodeAt(M.length-1)<=56319},A=2;A<S.length;A+=1)S[A-2][0]===a&&E(S[A-2][1])&&S[A-1][0]===i&&O(S[A-1][1])&&S[A][0]===o&&O(S[A][1])&&(N=!0,S[A-1][1]=S[A-2][1].slice(-1)+S[A-1][1],S[A][1]=S[A-2][1].slice(-1)+S[A][1],S[A-2][1]=S[A-2][1].slice(0,-1));if(!N)return S;for(var I=[],A=0;A<S.length;A+=1)S[A][1].length>0&&I.push(S[A]);return I}function j(S,N,O){for(var E=N+O-1;E>=0&&E>=N-1;E--)if(E+1<S.length){var A=S[E],I=S[E+1];A[0]===I[1]&&S.splice(E,2,[A[0],A[1]+I[1]])}return S}}),(function(n,r){r=n.exports=typeof Object.keys=="function"?Object.keys:i,r.shim=i;function i(o){var a=[];for(var l in o)a.push(l);return a}}),(function(n,r){var i=(function(){return Object.prototype.toString.call(arguments)})()=="[object Arguments]";r=n.exports=i?o:a,r.supported=o;function o(l){return Object.prototype.toString.call(l)=="[object Arguments]"}r.unsupported=a;function a(l){return l&&typeof l=="object"&&typeof l.length=="number"&&Object.prototype.hasOwnProperty.call(l,"callee")&&!Object.prototype.propertyIsEnumerable.call(l,"callee")||!1}}),(function(n,r){var i=Object.prototype.hasOwnProperty,o="~";function a(){}Object.create&&(a.prototype=Object.create(null),new a().__proto__||(o=!1));function l(d,p,f){this.fn=d,this.context=p,this.once=f||!1}function c(){this._events=new a,this._eventsCount=0}c.prototype.eventNames=function(){var p=[],f,m;if(this._eventsCount===0)return p;for(m in f=this._events)i.call(f,m)&&p.push(o?m.slice(1):m);return Object.getOwnPropertySymbols?p.concat(Object.getOwnPropertySymbols(f)):p},c.prototype.listeners=function(p,f){var m=o?o+p:p,g=this._events[m];if(f)return!!g;if(!g)return[];if(g.fn)return[g.fn];for(var b=0,y=g.length,v=new Array(y);b<y;b++)v[b]=g[b].fn;return v},c.prototype.emit=function(p,f,m,g,b,y){var v=o?o+p:p;if(!this._events[v])return!1;var x=this._events[v],_=arguments.length,j,S;if(x.fn){switch(x.once&&this.removeListener(p,x.fn,void 0,!0),_){case 1:return x.fn.call(x.context),!0;case 2:return x.fn.call(x.context,f),!0;case 3:return x.fn.call(x.context,f,m),!0;case 4:return x.fn.call(x.context,f,m,g),!0;case 5:return x.fn.call(x.context,f,m,g,b),!0;case 6:return x.fn.call(x.context,f,m,g,b,y),!0}for(S=1,j=new Array(_-1);S<_;S++)j[S-1]=arguments[S];x.fn.apply(x.context,j)}else{var N=x.length,O;for(S=0;S<N;S++)switch(x[S].once&&this.removeListener(p,x[S].fn,void 0,!0),_){case 1:x[S].fn.call(x[S].context);break;case 2:x[S].fn.call(x[S].context,f);break;case 3:x[S].fn.call(x[S].context,f,m);break;case 4:x[S].fn.call(x[S].context,f,m,g);break;default:if(!j)for(O=1,j=new Array(_-1);O<_;O++)j[O-1]=arguments[O];x[S].fn.apply(x[S].context,j)}}return!0},c.prototype.on=function(p,f,m){var g=new l(f,m||this),b=o?o+p:p;return this._events[b]?this._events[b].fn?this._events[b]=[this._events[b],g]:this._events[b].push(g):(this._events[b]=g,this._eventsCount++),this},c.prototype.once=function(p,f,m){var g=new l(f,m||this,!0),b=o?o+p:p;return this._events[b]?this._events[b].fn?this._events[b]=[this._events[b],g]:this._events[b].push(g):(this._events[b]=g,this._eventsCount++),this},c.prototype.removeListener=function(p,f,m,g){var b=o?o+p:p;if(!this._events[b])return this;if(!f)return--this._eventsCount===0?this._events=new a:delete this._events[b],this;var y=this._events[b];if(y.fn)y.fn===f&&(!g||y.once)&&(!m||y.context===m)&&(--this._eventsCount===0?this._events=new a:delete this._events[b]);else{for(var v=0,x=[],_=y.length;v<_;v++)(y[v].fn!==f||g&&!y[v].once||m&&y[v].context!==m)&&x.push(y[v]);x.length?this._events[b]=x.length===1?x[0]:x:--this._eventsCount===0?this._events=new a:delete this._events[b]}return this},c.prototype.removeAllListeners=function(p){var f;return p?(f=o?o+p:p,this._events[f]&&(--this._eventsCount===0?this._events=new a:delete this._events[f])):(this._events=new a,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prototype.setMaxListeners=function(){return this},c.prefixed=o,c.EventEmitter=c,typeof n<"u"&&(n.exports=c)}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.matchText=r.matchSpacing=r.matchNewline=r.matchBlot=r.matchAttributor=r.default=void 0;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(oe){return typeof oe}:function(oe){return oe&&typeof Symbol=="function"&&oe.constructor===Symbol&&oe!==Symbol.prototype?"symbol":typeof oe},a=(function(){function oe(de,Se){var Ee=[],ve=!0,He=!1,$e=void 0;try{for(var Ye=de[Symbol.iterator](),Rt;!(ve=(Rt=Ye.next()).done)&&(Ee.push(Rt.value),!(Se&&Ee.length===Se));ve=!0);}catch(Ft){He=!0,$e=Ft}finally{try{!ve&&Ye.return&&Ye.return()}finally{if(He)throw $e}}return Ee}return function(de,Se){if(Array.isArray(de))return de;if(Symbol.iterator in Object(de))return oe(de,Se);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),l=(function(){function oe(de,Se){for(var Ee=0;Ee<Se.length;Ee++){var ve=Se[Ee];ve.enumerable=ve.enumerable||!1,ve.configurable=!0,"value"in ve&&(ve.writable=!0),Object.defineProperty(de,ve.key,ve)}}return function(de,Se,Ee){return Se&&oe(de.prototype,Se),Ee&&oe(de,Ee),de}})(),c=i(3),d=R(c),p=i(2),f=R(p),m=i(0),g=R(m),b=i(5),y=R(b),v=i(10),x=R(v),_=i(9),j=R(_),S=i(36),N=i(37),O=i(13),E=R(O),A=i(26),I=i(38),M=i(39),C=i(40);function R(oe){return oe&&oe.__esModule?oe:{default:oe}}function B(oe,de,Se){return de in oe?Object.defineProperty(oe,de,{value:Se,enumerable:!0,configurable:!0,writable:!0}):oe[de]=Se,oe}function $(oe,de){if(!(oe instanceof de))throw new TypeError("Cannot call a class as a function")}function z(oe,de){if(!oe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return de&&(typeof de=="object"||typeof de=="function")?de:oe}function H(oe,de){if(typeof de!="function"&&de!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof de);oe.prototype=Object.create(de&&de.prototype,{constructor:{value:oe,enumerable:!1,writable:!0,configurable:!0}}),de&&(Object.setPrototypeOf?Object.setPrototypeOf(oe,de):oe.__proto__=de)}var V=(0,x.default)("quill:clipboard"),Y="__ql-matcher",W=[[Node.TEXT_NODE,De],[Node.TEXT_NODE,ge],["br",fe],[Node.ELEMENT_NODE,ge],[Node.ELEMENT_NODE,se],[Node.ELEMENT_NODE,be],[Node.ELEMENT_NODE,Z],[Node.ELEMENT_NODE,Be],["li",we],["b",ne.bind(ne,"bold")],["i",ne.bind(ne,"italic")],["style",le]],q=[S.AlignAttribute,I.DirectionAttribute].reduce(function(oe,de){return oe[de.keyName]=de,oe},{}),D=[S.AlignStyle,N.BackgroundStyle,A.ColorStyle,I.DirectionStyle,M.FontStyle,C.SizeStyle].reduce(function(oe,de){return oe[de.keyName]=de,oe},{}),F=(function(oe){H(de,oe);function de(Se,Ee){$(this,de);var ve=z(this,(de.__proto__||Object.getPrototypeOf(de)).call(this,Se,Ee));return ve.quill.root.addEventListener("paste",ve.onPaste.bind(ve)),ve.container=ve.quill.addContainer("ql-clipboard"),ve.container.setAttribute("contenteditable",!0),ve.container.setAttribute("tabindex",-1),ve.matchers=[],W.concat(ve.options.matchers).forEach(function(He){var $e=a(He,2),Ye=$e[0],Rt=$e[1];!Ee.matchVisual&&Rt===be||ve.addMatcher(Ye,Rt)}),ve}return l(de,[{key:"addMatcher",value:function(Ee,ve){this.matchers.push([Ee,ve])}},{key:"convert",value:function(Ee){if(typeof Ee=="string")return this.container.innerHTML=Ee.replace(/\>\r?\n +\</g,"><"),this.convert();var ve=this.quill.getFormat(this.quill.selection.savedRange.index);if(ve[E.default.blotName]){var He=this.container.innerText;return this.container.innerHTML="",new f.default().insert(He,B({},E.default.blotName,ve[E.default.blotName]))}var $e=this.prepareMatching(),Ye=a($e,2),Rt=Ye[0],Ft=Ye[1],ht=X(this.container,Rt,Ft);return J(ht,`
618`)&&ht.ops[ht.ops.length-1].attributes==null&&(ht=ht.compose(new f.default().retain(ht.length()-1).delete(1))),V.log("convert",this.container.innerHTML,ht),this.container.innerHTML="",ht}},{key:"dangerouslyPasteHTML",value:function(Ee,ve){var He=arguments.length>2&&arguments[2]!==void 0?arguments[2]:y.default.sources.API;if(typeof Ee=="string")this.quill.setContents(this.convert(Ee),ve),this.quill.setSelection(0,y.default.sources.SILENT);else{var $e=this.convert(ve);this.quill.updateContents(new f.default().retain(Ee).concat($e),He),this.quill.setSelection(Ee+$e.length(),y.default.sources.SILENT)}}},{key:"onPaste",value:function(Ee){var ve=this;if(!(Ee.defaultPrevented||!this.quill.isEnabled())){var He=this.quill.getSelection(),$e=new f.default().retain(He.index),Ye=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(y.default.sources.SILENT),setTimeout(function(){$e=$e.concat(ve.convert()).delete(He.length),ve.quill.updateContents($e,y.default.sources.USER),ve.quill.setSelection($e.length()-He.length,y.default.sources.SILENT),ve.quill.scrollingContainer.scrollTop=Ye,ve.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var Ee=this,ve=[],He=[];return this.matchers.forEach(function($e){var Ye=a($e,2),Rt=Ye[0],Ft=Ye[1];switch(Rt){case Node.TEXT_NODE:He.push(Ft);break;case Node.ELEMENT_NODE:ve.push(Ft);break;default:[].forEach.call(Ee.container.querySelectorAll(Rt),function(ht){ht[Y]=ht[Y]||[],ht[Y].push(Ft)});break}}),[ve,He]}}]),de})(j.default);F.DEFAULTS={matchers:[],matchVisual:!0};function K(oe,de,Se){return(typeof de>"u"?"undefined":o(de))==="object"?Object.keys(de).reduce(function(Ee,ve){return K(Ee,ve,de[ve])},oe):oe.reduce(function(Ee,ve){return ve.attributes&&ve.attributes[de]?Ee.push(ve):Ee.insert(ve.insert,(0,d.default)({},B({},de,Se),ve.attributes))},new f.default)}function ee(oe){if(oe.nodeType!==Node.ELEMENT_NODE)return{};var de="__ql-computed-style";return oe[de]||(oe[de]=window.getComputedStyle(oe))}function J(oe,de){for(var Se="",Ee=oe.ops.length-1;Ee>=0&&Se.length<de.length;--Ee){var ve=oe.ops[Ee];if(typeof ve.insert!="string")break;Se=ve.insert+Se}return Se.slice(-1*de.length)===de}function G(oe){if(oe.childNodes.length===0)return!1;var de=ee(oe);return["block","list-item"].indexOf(de.display)>-1}function X(oe,de,Se){return oe.nodeType===oe.TEXT_NODE?Se.reduce(function(Ee,ve){return ve(oe,Ee)},new f.default):oe.nodeType===oe.ELEMENT_NODE?[].reduce.call(oe.childNodes||[],function(Ee,ve){var He=X(ve,de,Se);return ve.nodeType===oe.ELEMENT_NODE&&(He=de.reduce(function($e,Ye){return Ye(ve,$e)},He),He=(ve[Y]||[]).reduce(function($e,Ye){return Ye(ve,$e)},He)),Ee.concat(He)},new f.default):new f.default}function ne(oe,de,Se){return K(Se,oe,!0)}function Z(oe,de){var Se=g.default.Attributor.Attribute.keys(oe),Ee=g.default.Attributor.Class.keys(oe),ve=g.default.Attributor.Style.keys(oe),He={};return Se.concat(Ee).concat(ve).forEach(function($e){var Ye=g.default.query($e,g.default.Scope.ATTRIBUTE);Ye!=null&&(He[Ye.attrName]=Ye.value(oe),He[Ye.attrName])||(Ye=q[$e],Ye!=null&&(Ye.attrName===$e||Ye.keyName===$e)&&(He[Ye.attrName]=Ye.value(oe)||void 0),Ye=D[$e],Ye!=null&&(Ye.attrName===$e||Ye.keyName===$e)&&(Ye=D[$e],He[Ye.attrName]=Ye.value(oe)||void 0))}),Object.keys(He).length>0&&(de=K(de,He)),de}function se(oe,de){var Se=g.default.query(oe);if(Se==null)return de;if(Se.prototype instanceof g.default.Embed){var Ee={},ve=Se.value(oe);ve!=null&&(Ee[Se.blotName]=ve,de=new f.default().insert(Ee,Se.formats(oe)))}else typeof Se.formats=="function"&&(de=K(de,Se.blotName,Se.formats(oe)));return de}function fe(oe,de){return J(de,`
619`)||de.insert(`
620`),de}function le(){return new f.default}function we(oe,de){var Se=g.default.query(oe);if(Se==null||Se.blotName!=="list-item"||!J(de,`
621`))return de;for(var Ee=-1,ve=oe.parentNode;!ve.classList.contains("ql-clipboard");)(g.default.query(ve)||{}).blotName==="list"&&(Ee+=1),ve=ve.parentNode;return Ee<=0?de:de.compose(new f.default().retain(de.length()-1).retain(1,{indent:Ee}))}function ge(oe,de){return J(de,`
622`)||(G(oe)||de.length()>0&&oe.nextSibling&&G(oe.nextSibling))&&de.insert(`
623`),de}function be(oe,de){if(G(oe)&&oe.nextElementSibling!=null&&!J(de,`
624
625`)){var Se=oe.offsetHeight+parseFloat(ee(oe).marginTop)+parseFloat(ee(oe).marginBottom);oe.nextElementSibling.offsetTop>oe.offsetTop+Se*1.5&&de.insert(`
626`)}return de}function Be(oe,de){var Se={},Ee=oe.style||{};return Ee.fontStyle&&ee(oe).fontStyle==="italic"&&(Se.italic=!0),Ee.fontWeight&&(ee(oe).fontWeight.startsWith("bold")||parseInt(ee(oe).fontWeight)>=700)&&(Se.bold=!0),Object.keys(Se).length>0&&(de=K(de,Se)),parseFloat(Ee.textIndent||0)>0&&(de=new f.default().insert("	").concat(de)),de}function De(oe,de){var Se=oe.data;if(oe.parentNode.tagName==="O:P")return de.insert(Se.trim());if(Se.trim().length===0&&oe.parentNode.classList.contains("ql-clipboard"))return de;if(!ee(oe.parentNode).whiteSpace.startsWith("pre")){var Ee=function(He,$e){return $e=$e.replace(/[^\u00a0]/g,""),$e.length<1&&He?" ":$e};Se=Se.replace(/\r\n/g," ").replace(/\n/g," "),Se=Se.replace(/\s\s+/g,Ee.bind(Ee,!0)),(oe.previousSibling==null&&G(oe.parentNode)||oe.previousSibling!=null&&G(oe.previousSibling))&&(Se=Se.replace(/^\s+/,Ee.bind(Ee,!1))),(oe.nextSibling==null&&G(oe.parentNode)||oe.nextSibling!=null&&G(oe.nextSibling))&&(Se=Se.replace(/\s+$/,Ee.bind(Ee,!1)))}return de.insert(Se)}r.default=F,r.matchAttributor=Z,r.matchBlot=se,r.matchNewline=ge,r.matchSpacing=be,r.matchText=De}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=(function(){function b(y,v){for(var x=0;x<v.length;x++){var _=v[x];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(y,_.key,_)}}return function(y,v,x){return v&&b(y.prototype,v),x&&b(y,x),y}})(),a=function b(y,v,x){y===null&&(y=Function.prototype);var _=Object.getOwnPropertyDescriptor(y,v);if(_===void 0){var j=Object.getPrototypeOf(y);return j===null?void 0:b(j,v,x)}else{if("value"in _)return _.value;var S=_.get;return S===void 0?void 0:S.call(x)}},l=i(6),c=d(l);function d(b){return b&&b.__esModule?b:{default:b}}function p(b,y){if(!(b instanceof y))throw new TypeError("Cannot call a class as a function")}function f(b,y){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:b}function m(b,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);b.prototype=Object.create(y&&y.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(b,y):b.__proto__=y)}var g=(function(b){m(y,b);function y(){return p(this,y),f(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return o(y,[{key:"optimize",value:function(x){a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"optimize",this).call(this,x),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return a(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),y})(c.default);g.blotName="bold",g.tagName=["STRONG","B"],r.default=g}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.addControls=r.default=void 0;var o=(function(){function C(R,B){var $=[],z=!0,H=!1,V=void 0;try{for(var Y=R[Symbol.iterator](),W;!(z=(W=Y.next()).done)&&($.push(W.value),!(B&&$.length===B));z=!0);}catch(q){H=!0,V=q}finally{try{!z&&Y.return&&Y.return()}finally{if(H)throw V}}return $}return function(R,B){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return C(R,B);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function C(R,B){for(var $=0;$<B.length;$++){var z=B[$];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(R,z.key,z)}}return function(R,B,$){return B&&C(R.prototype,B),$&&C(R,$),R}})(),l=i(2),c=x(l),d=i(0),p=x(d),f=i(5),m=x(f),g=i(10),b=x(g),y=i(9),v=x(y);function x(C){return C&&C.__esModule?C:{default:C}}function _(C,R,B){return R in C?Object.defineProperty(C,R,{value:B,enumerable:!0,configurable:!0,writable:!0}):C[R]=B,C}function j(C,R){if(!(C instanceof R))throw new TypeError("Cannot call a class as a function")}function S(C,R){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R&&(typeof R=="object"||typeof R=="function")?R:C}function N(C,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof R);C.prototype=Object.create(R&&R.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),R&&(Object.setPrototypeOf?Object.setPrototypeOf(C,R):C.__proto__=R)}var O=(0,b.default)("quill:toolbar"),E=(function(C){N(R,C);function R(B,$){j(this,R);var z=S(this,(R.__proto__||Object.getPrototypeOf(R)).call(this,B,$));if(Array.isArray(z.options.container)){var H=document.createElement("div");I(H,z.options.container),B.container.parentNode.insertBefore(H,B.container),z.container=H}else typeof z.options.container=="string"?z.container=document.querySelector(z.options.container):z.container=z.options.container;if(!(z.container instanceof HTMLElement)){var V;return V=O.error("Container required for toolbar",z.options),S(z,V)}return z.container.classList.add("ql-toolbar"),z.controls=[],z.handlers={},Object.keys(z.options.handlers).forEach(function(Y){z.addHandler(Y,z.options.handlers[Y])}),[].forEach.call(z.container.querySelectorAll("button, select"),function(Y){z.attach(Y)}),z.quill.on(m.default.events.EDITOR_CHANGE,function(Y,W){Y===m.default.events.SELECTION_CHANGE&&z.update(W)}),z.quill.on(m.default.events.SCROLL_OPTIMIZE,function(){var Y=z.quill.selection.getRange(),W=o(Y,1),q=W[0];z.update(q)}),z}return a(R,[{key:"addHandler",value:function($,z){this.handlers[$]=z}},{key:"attach",value:function($){var z=this,H=[].find.call($.classList,function(Y){return Y.indexOf("ql-")===0});if(H){if(H=H.slice(3),$.tagName==="BUTTON"&&$.setAttribute("type","button"),this.handlers[H]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[H]==null){O.warn("ignoring attaching to disabled format",H,$);return}if(p.default.query(H)==null){O.warn("ignoring attaching to nonexistent format",H,$);return}}var V=$.tagName==="SELECT"?"change":"click";$.addEventListener(V,function(Y){var W=void 0;if($.tagName==="SELECT"){if($.selectedIndex<0)return;var q=$.options[$.selectedIndex];q.hasAttribute("selected")?W=!1:W=q.value||!1}else $.classList.contains("ql-active")?W=!1:W=$.value||!$.hasAttribute("value"),Y.preventDefault();z.quill.focus();var D=z.quill.selection.getRange(),F=o(D,1),K=F[0];if(z.handlers[H]!=null)z.handlers[H].call(z,W);else if(p.default.query(H).prototype instanceof p.default.Embed){if(W=prompt("Enter "+H),!W)return;z.quill.updateContents(new c.default().retain(K.index).delete(K.length).insert(_({},H,W)),m.default.sources.USER)}else z.quill.format(H,W,m.default.sources.USER);z.update(K)}),this.controls.push([H,$])}}},{key:"update",value:function($){var z=$==null?{}:this.quill.getFormat($);this.controls.forEach(function(H){var V=o(H,2),Y=V[0],W=V[1];if(W.tagName==="SELECT"){var q=void 0;if($==null)q=null;else if(z[Y]==null)q=W.querySelector("option[selected]");else if(!Array.isArray(z[Y])){var D=z[Y];typeof D=="string"&&(D=D.replace(/\"/g,'\\"')),q=W.querySelector('option[value="'+D+'"]')}q==null?(W.value="",W.selectedIndex=-1):q.selected=!0}else if($==null)W.classList.remove("ql-active");else if(W.hasAttribute("value")){var F=z[Y]===W.getAttribute("value")||z[Y]!=null&&z[Y].toString()===W.getAttribute("value")||z[Y]==null&&!W.getAttribute("value");W.classList.toggle("ql-active",F)}else W.classList.toggle("ql-active",z[Y]!=null)})}}]),R})(v.default);E.DEFAULTS={};function A(C,R,B){var $=document.createElement("button");$.setAttribute("type","button"),$.classList.add("ql-"+R),B!=null&&($.value=B),C.appendChild($)}function I(C,R){Array.isArray(R[0])||(R=[R]),R.forEach(function(B){var $=document.createElement("span");$.classList.add("ql-formats"),B.forEach(function(z){if(typeof z=="string")A($,z);else{var H=Object.keys(z)[0],V=z[H];Array.isArray(V)?M($,H,V):A($,H,V)}}),C.appendChild($)})}function M(C,R,B){var $=document.createElement("select");$.classList.add("ql-"+R),B.forEach(function(z){var H=document.createElement("option");z!==!1?H.setAttribute("value",z):H.setAttribute("selected","selected"),$.appendChild(H)}),C.appendChild($)}E.DEFAULTS={container:null,handlers:{clean:function(){var R=this,B=this.quill.getSelection();if(B!=null)if(B.length==0){var $=this.quill.getFormat();Object.keys($).forEach(function(z){p.default.query(z,p.default.Scope.INLINE)!=null&&R.quill.format(z,!1)})}else this.quill.removeFormat(B,m.default.sources.USER)},direction:function(R){var B=this.quill.getFormat().align;R==="rtl"&&B==null?this.quill.format("align","right",m.default.sources.USER):!R&&B==="right"&&this.quill.format("align",!1,m.default.sources.USER),this.quill.format("direction",R,m.default.sources.USER)},indent:function(R){var B=this.quill.getSelection(),$=this.quill.getFormat(B),z=parseInt($.indent||0);if(R==="+1"||R==="-1"){var H=R==="+1"?1:-1;$.direction==="rtl"&&(H*=-1),this.quill.format("indent",z+H,m.default.sources.USER)}},link:function(R){R===!0&&(R=prompt("Enter link URL:")),this.quill.format("link",R,m.default.sources.USER)},list:function(R){var B=this.quill.getSelection(),$=this.quill.getFormat(B);R==="check"?$.list==="checked"||$.list==="unchecked"?this.quill.format("list",!1,m.default.sources.USER):this.quill.format("list","unchecked",m.default.sources.USER):this.quill.format("list",R,m.default.sources.USER)}}},r.default=E,r.addControls=I}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=(function(){function b(y,v){for(var x=0;x<v.length;x++){var _=v[x];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(y,_.key,_)}}return function(y,v,x){return v&&b(y.prototype,v),x&&b(y,x),y}})(),a=function b(y,v,x){y===null&&(y=Function.prototype);var _=Object.getOwnPropertyDescriptor(y,v);if(_===void 0){var j=Object.getPrototypeOf(y);return j===null?void 0:b(j,v,x)}else{if("value"in _)return _.value;var S=_.get;return S===void 0?void 0:S.call(x)}},l=i(28),c=d(l);function d(b){return b&&b.__esModule?b:{default:b}}function p(b,y){if(!(b instanceof y))throw new TypeError("Cannot call a class as a function")}function f(b,y){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:b}function m(b,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);b.prototype=Object.create(y&&y.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(b,y):b.__proto__=y)}var g=(function(b){m(y,b);function y(v,x){p(this,y);var _=f(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,v));return _.label.innerHTML=x,_.container.classList.add("ql-color-picker"),[].slice.call(_.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(j){j.classList.add("ql-primary")}),_}return o(y,[{key:"buildItem",value:function(x){var _=a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"buildItem",this).call(this,x);return _.style.backgroundColor=x.getAttribute("value")||"",_}},{key:"selectItem",value:function(x,_){a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"selectItem",this).call(this,x,_);var j=this.label.querySelector(".ql-color-label"),S=x&&x.getAttribute("data-value")||"";j&&(j.tagName==="line"?j.style.stroke=S:j.style.fill=S)}}]),y})(c.default);r.default=g}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=(function(){function b(y,v){for(var x=0;x<v.length;x++){var _=v[x];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(y,_.key,_)}}return function(y,v,x){return v&&b(y.prototype,v),x&&b(y,x),y}})(),a=function b(y,v,x){y===null&&(y=Function.prototype);var _=Object.getOwnPropertyDescriptor(y,v);if(_===void 0){var j=Object.getPrototypeOf(y);return j===null?void 0:b(j,v,x)}else{if("value"in _)return _.value;var S=_.get;return S===void 0?void 0:S.call(x)}},l=i(28),c=d(l);function d(b){return b&&b.__esModule?b:{default:b}}function p(b,y){if(!(b instanceof y))throw new TypeError("Cannot call a class as a function")}function f(b,y){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:b}function m(b,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);b.prototype=Object.create(y&&y.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(b,y):b.__proto__=y)}var g=(function(b){m(y,b);function y(v,x){p(this,y);var _=f(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,v));return _.container.classList.add("ql-icon-picker"),[].forEach.call(_.container.querySelectorAll(".ql-picker-item"),function(j){j.innerHTML=x[j.getAttribute("data-value")||""]}),_.defaultItem=_.container.querySelector(".ql-selected"),_.selectItem(_.defaultItem),_}return o(y,[{key:"selectItem",value:function(x,_){a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"selectItem",this).call(this,x,_),x=x||this.defaultItem,this.label.innerHTML=x.innerHTML}}]),y})(c.default);r.default=g}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=(function(){function c(d,p){for(var f=0;f<p.length;f++){var m=p[f];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(d,m.key,m)}}return function(d,p,f){return p&&c(d.prototype,p),f&&c(d,f),d}})();function a(c,d){if(!(c instanceof d))throw new TypeError("Cannot call a class as a function")}var l=(function(){function c(d,p){var f=this;a(this,c),this.quill=d,this.boundsContainer=p||document.body,this.root=d.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){f.root.style.marginTop=-1*f.quill.root.scrollTop+"px"}),this.hide()}return o(c,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(p){var f=p.left+p.width/2-this.root.offsetWidth/2,m=p.bottom+this.quill.root.scrollTop;this.root.style.left=f+"px",this.root.style.top=m+"px",this.root.classList.remove("ql-flip");var g=this.boundsContainer.getBoundingClientRect(),b=this.root.getBoundingClientRect(),y=0;if(b.right>g.right&&(y=g.right-b.right,this.root.style.left=f+y+"px"),b.left<g.left&&(y=g.left-b.left,this.root.style.left=f+y+"px"),b.bottom>g.bottom){var v=b.bottom-b.top,x=p.bottom-p.top+v;this.root.style.top=m-x+"px",this.root.classList.add("ql-flip")}return y}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),c})();r.default=l}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=(function(){function M(C,R){var B=[],$=!0,z=!1,H=void 0;try{for(var V=C[Symbol.iterator](),Y;!($=(Y=V.next()).done)&&(B.push(Y.value),!(R&&B.length===R));$=!0);}catch(W){z=!0,H=W}finally{try{!$&&V.return&&V.return()}finally{if(z)throw H}}return B}return function(C,R){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return M(C,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=function M(C,R,B){C===null&&(C=Function.prototype);var $=Object.getOwnPropertyDescriptor(C,R);if($===void 0){var z=Object.getPrototypeOf(C);return z===null?void 0:M(z,R,B)}else{if("value"in $)return $.value;var H=$.get;return H===void 0?void 0:H.call(B)}},l=(function(){function M(C,R){for(var B=0;B<R.length;B++){var $=R[B];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(C,$.key,$)}}return function(C,R,B){return R&&M(C.prototype,R),B&&M(C,B),C}})(),c=i(3),d=j(c),p=i(8),f=j(p),m=i(43),g=j(m),b=i(27),y=j(b),v=i(15),x=i(41),_=j(x);function j(M){return M&&M.__esModule?M:{default:M}}function S(M,C){if(!(M instanceof C))throw new TypeError("Cannot call a class as a function")}function N(M,C){if(!M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:M}function O(M,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);M.prototype=Object.create(C&&C.prototype,{constructor:{value:M,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(M,C):M.__proto__=C)}var E=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],A=(function(M){O(C,M);function C(R,B){S(this,C),B.modules.toolbar!=null&&B.modules.toolbar.container==null&&(B.modules.toolbar.container=E);var $=N(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,R,B));return $.quill.container.classList.add("ql-snow"),$}return l(C,[{key:"extendToolbar",value:function(B){B.container.classList.add("ql-snow"),this.buildButtons([].slice.call(B.container.querySelectorAll("button")),_.default),this.buildPickers([].slice.call(B.container.querySelectorAll("select")),_.default),this.tooltip=new I(this.quill,this.options.bounds),B.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function($,z){B.handlers.link.call(B,!z.format.link)})}}]),C})(g.default);A.DEFAULTS=(0,d.default)(!0,{},g.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(C){if(C){var R=this.quill.getSelection();if(R==null||R.length==0)return;var B=this.quill.getText(R);/^\S+@\S+\.\S+$/.test(B)&&B.indexOf("mailto:")!==0&&(B="mailto:"+B);var $=this.quill.theme.tooltip;$.edit("link",B)}else this.quill.format("link",!1)}}}}});var I=(function(M){O(C,M);function C(R,B){S(this,C);var $=N(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,R,B));return $.preview=$.root.querySelector("a.ql-preview"),$}return l(C,[{key:"listen",value:function(){var B=this;a(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function($){B.root.classList.contains("ql-editing")?B.save():B.edit("link",B.preview.textContent),$.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function($){if(B.linkRange!=null){var z=B.linkRange;B.restoreFocus(),B.quill.formatText(z,"link",!1,f.default.sources.USER),delete B.linkRange}$.preventDefault(),B.hide()}),this.quill.on(f.default.events.SELECTION_CHANGE,function($,z,H){if($!=null){if($.length===0&&H===f.default.sources.USER){var V=B.quill.scroll.descendant(y.default,$.index),Y=o(V,2),W=Y[0],q=Y[1];if(W!=null){B.linkRange=new v.Range($.index-q,W.length());var D=y.default.formats(W.domNode);B.preview.textContent=D,B.preview.setAttribute("href",D),B.show(),B.position(B.quill.getBounds(B.linkRange));return}}else delete B.linkRange;B.hide()}})}},{key:"show",value:function(){a(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),C})(m.BaseTooltip);I.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),r.default=A}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(29),a=ve(o),l=i(36),c=i(38),d=i(64),p=i(65),f=ve(p),m=i(66),g=ve(m),b=i(67),y=ve(b),v=i(37),x=i(26),_=i(39),j=i(40),S=i(56),N=ve(S),O=i(68),E=ve(O),A=i(27),I=ve(A),M=i(69),C=ve(M),R=i(70),B=ve(R),$=i(71),z=ve($),H=i(72),V=ve(H),Y=i(73),W=ve(Y),q=i(13),D=ve(q),F=i(74),K=ve(F),ee=i(75),J=ve(ee),G=i(57),X=ve(G),ne=i(41),Z=ve(ne),se=i(28),fe=ve(se),le=i(59),we=ve(le),ge=i(60),be=ve(ge),Be=i(61),De=ve(Be),oe=i(108),de=ve(oe),Se=i(62),Ee=ve(Se);function ve(He){return He&&He.__esModule?He:{default:He}}a.default.register({"attributors/attribute/direction":c.DirectionAttribute,"attributors/class/align":l.AlignClass,"attributors/class/background":v.BackgroundClass,"attributors/class/color":x.ColorClass,"attributors/class/direction":c.DirectionClass,"attributors/class/font":_.FontClass,"attributors/class/size":j.SizeClass,"attributors/style/align":l.AlignStyle,"attributors/style/background":v.BackgroundStyle,"attributors/style/color":x.ColorStyle,"attributors/style/direction":c.DirectionStyle,"attributors/style/font":_.FontStyle,"attributors/style/size":j.SizeStyle},!0),a.default.register({"formats/align":l.AlignClass,"formats/direction":c.DirectionClass,"formats/indent":d.IndentClass,"formats/background":v.BackgroundStyle,"formats/color":x.ColorStyle,"formats/font":_.FontClass,"formats/size":j.SizeClass,"formats/blockquote":f.default,"formats/code-block":D.default,"formats/header":g.default,"formats/list":y.default,"formats/bold":N.default,"formats/code":q.Code,"formats/italic":E.default,"formats/link":I.default,"formats/script":C.default,"formats/strike":B.default,"formats/underline":z.default,"formats/image":V.default,"formats/video":W.default,"formats/list/item":b.ListItem,"modules/formula":K.default,"modules/syntax":J.default,"modules/toolbar":X.default,"themes/bubble":de.default,"themes/snow":Ee.default,"ui/icons":Z.default,"ui/picker":fe.default,"ui/icon-picker":be.default,"ui/color-picker":we.default,"ui/tooltip":De.default},!0),r.default=a.default}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.IndentClass=void 0;var o=(function(){function y(v,x){for(var _=0;_<x.length;_++){var j=x[_];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(v,j.key,j)}}return function(v,x,_){return x&&y(v.prototype,x),_&&y(v,_),v}})(),a=function y(v,x,_){v===null&&(v=Function.prototype);var j=Object.getOwnPropertyDescriptor(v,x);if(j===void 0){var S=Object.getPrototypeOf(v);return S===null?void 0:y(S,x,_)}else{if("value"in j)return j.value;var N=j.get;return N===void 0?void 0:N.call(_)}},l=i(0),c=d(l);function d(y){return y&&y.__esModule?y:{default:y}}function p(y,v){if(!(y instanceof v))throw new TypeError("Cannot call a class as a function")}function f(y,v){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:y}function m(y,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);y.prototype=Object.create(v&&v.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(y,v):y.__proto__=v)}var g=(function(y){m(v,y);function v(){return p(this,v),f(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return o(v,[{key:"add",value:function(_,j){if(j==="+1"||j==="-1"){var S=this.value(_)||0;j=j==="+1"?S+1:S-1}return j===0?(this.remove(_),!0):a(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"add",this).call(this,_,j)}},{key:"canAdd",value:function(_,j){return a(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"canAdd",this).call(this,_,j)||a(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"canAdd",this).call(this,_,parseInt(j))}},{key:"value",value:function(_){return parseInt(a(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"value",this).call(this,_))||void 0}}]),v})(c.default.Attributor.Class),b=new g("indent","ql-indent",{scope:c.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});r.IndentClass=b}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(4),a=l(o);function l(m){return m&&m.__esModule?m:{default:m}}function c(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function d(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function p(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var f=(function(m){p(g,m);function g(){return c(this,g),d(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g})(a.default);f.blotName="blockquote",f.tagName="blockquote",r.default=f}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=(function(){function g(b,y){for(var v=0;v<y.length;v++){var x=y[v];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(b,x.key,x)}}return function(b,y,v){return y&&g(b.prototype,y),v&&g(b,v),b}})(),a=i(4),l=c(a);function c(g){return g&&g.__esModule?g:{default:g}}function d(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}function p(g,b){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:g}function f(g,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);g.prototype=Object.create(b&&b.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(g,b):g.__proto__=b)}var m=(function(g){f(b,g);function b(){return d(this,b),p(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return o(b,null,[{key:"formats",value:function(v){return this.tagName.indexOf(v.tagName)+1}}]),b})(l.default);m.blotName="header",m.tagName=["H1","H2","H3","H4","H5","H6"],r.default=m}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.ListItem=void 0;var o=(function(){function S(N,O){for(var E=0;E<O.length;E++){var A=O[E];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(N,A.key,A)}}return function(N,O,E){return O&&S(N.prototype,O),E&&S(N,E),N}})(),a=function S(N,O,E){N===null&&(N=Function.prototype);var A=Object.getOwnPropertyDescriptor(N,O);if(A===void 0){var I=Object.getPrototypeOf(N);return I===null?void 0:S(I,O,E)}else{if("value"in A)return A.value;var M=A.get;return M===void 0?void 0:M.call(E)}},l=i(0),c=g(l),d=i(4),p=g(d),f=i(25),m=g(f);function g(S){return S&&S.__esModule?S:{default:S}}function b(S,N,O){return N in S?Object.defineProperty(S,N,{value:O,enumerable:!0,configurable:!0,writable:!0}):S[N]=O,S}function y(S,N){if(!(S instanceof N))throw new TypeError("Cannot call a class as a function")}function v(S,N){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:S}function x(S,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);S.prototype=Object.create(N&&N.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(S,N):S.__proto__=N)}var _=(function(S){x(N,S);function N(){return y(this,N),v(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return o(N,[{key:"format",value:function(E,A){E===j.blotName&&!A?this.replaceWith(c.default.create(this.statics.scope)):a(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"format",this).call(this,E,A)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():a(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(E,A){return this.parent.isolate(this.offset(this.parent),this.length()),E===this.parent.statics.blotName?(this.parent.replaceWith(E,A),this):(this.parent.unwrap(),a(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"replaceWith",this).call(this,E,A))}}],[{key:"formats",value:function(E){return E.tagName===this.tagName?void 0:a(N.__proto__||Object.getPrototypeOf(N),"formats",this).call(this,E)}}]),N})(p.default);_.blotName="list-item",_.tagName="LI";var j=(function(S){x(N,S),o(N,null,[{key:"create",value:function(E){var A=E==="ordered"?"OL":"UL",I=a(N.__proto__||Object.getPrototypeOf(N),"create",this).call(this,A);return(E==="checked"||E==="unchecked")&&I.setAttribute("data-checked",E==="checked"),I}},{key:"formats",value:function(E){if(E.tagName==="OL")return"ordered";if(E.tagName==="UL")return E.hasAttribute("data-checked")?E.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function N(O){y(this,N);var E=v(this,(N.__proto__||Object.getPrototypeOf(N)).call(this,O)),A=function(M){if(M.target.parentNode===O){var C=E.statics.formats(O),R=c.default.find(M.target);C==="checked"?R.format("list","unchecked"):C==="unchecked"&&R.format("list","checked")}};return O.addEventListener("touchstart",A),O.addEventListener("mousedown",A),E}return o(N,[{key:"format",value:function(E,A){this.children.length>0&&this.children.tail.format(E,A)}},{key:"formats",value:function(){return b({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(E,A){if(E instanceof _)a(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"insertBefore",this).call(this,E,A);else{var I=A==null?this.length():A.offset(this),M=this.split(I);M.parent.insertBefore(E,M)}}},{key:"optimize",value:function(E){a(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"optimize",this).call(this,E);var A=this.next;A!=null&&A.prev===this&&A.statics.blotName===this.statics.blotName&&A.domNode.tagName===this.domNode.tagName&&A.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(A.moveChildren(this),A.remove())}},{key:"replace",value:function(E){if(E.statics.blotName!==this.statics.blotName){var A=c.default.create(this.statics.defaultChild);E.moveChildren(A),this.appendChild(A)}a(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"replace",this).call(this,E)}}]),N})(m.default);j.blotName="list",j.scope=c.default.Scope.BLOCK_BLOT,j.tagName=["OL","UL"],j.defaultChild="list-item",j.allowedChildren=[_],r.ListItem=_,r.default=j}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(56),a=l(o);function l(m){return m&&m.__esModule?m:{default:m}}function c(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function d(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function p(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var f=(function(m){p(g,m);function g(){return c(this,g),d(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g})(a.default);f.blotName="italic",f.tagName=["EM","I"],r.default=f}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=(function(){function b(y,v){for(var x=0;x<v.length;x++){var _=v[x];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(y,_.key,_)}}return function(y,v,x){return v&&b(y.prototype,v),x&&b(y,x),y}})(),a=function b(y,v,x){y===null&&(y=Function.prototype);var _=Object.getOwnPropertyDescriptor(y,v);if(_===void 0){var j=Object.getPrototypeOf(y);return j===null?void 0:b(j,v,x)}else{if("value"in _)return _.value;var S=_.get;return S===void 0?void 0:S.call(x)}},l=i(6),c=d(l);function d(b){return b&&b.__esModule?b:{default:b}}function p(b,y){if(!(b instanceof y))throw new TypeError("Cannot call a class as a function")}function f(b,y){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:b}function m(b,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);b.prototype=Object.create(y&&y.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(b,y):b.__proto__=y)}var g=(function(b){m(y,b);function y(){return p(this,y),f(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return o(y,null,[{key:"create",value:function(x){return x==="super"?document.createElement("sup"):x==="sub"?document.createElement("sub"):a(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,x)}},{key:"formats",value:function(x){if(x.tagName==="SUB")return"sub";if(x.tagName==="SUP")return"super"}}]),y})(c.default);g.blotName="script",g.tagName=["SUB","SUP"],r.default=g}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(6),a=l(o);function l(m){return m&&m.__esModule?m:{default:m}}function c(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function d(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function p(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var f=(function(m){p(g,m);function g(){return c(this,g),d(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g})(a.default);f.blotName="strike",f.tagName="S",r.default=f}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(6),a=l(o);function l(m){return m&&m.__esModule?m:{default:m}}function c(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function d(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function p(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var f=(function(m){p(g,m);function g(){return c(this,g),d(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g})(a.default);f.blotName="underline",f.tagName="U",r.default=f}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=(function(){function v(x,_){for(var j=0;j<_.length;j++){var S=_[j];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(x,S.key,S)}}return function(x,_,j){return _&&v(x.prototype,_),j&&v(x,j),x}})(),a=function v(x,_,j){x===null&&(x=Function.prototype);var S=Object.getOwnPropertyDescriptor(x,_);if(S===void 0){var N=Object.getPrototypeOf(x);return N===null?void 0:v(N,_,j)}else{if("value"in S)return S.value;var O=S.get;return O===void 0?void 0:O.call(j)}},l=i(0),c=p(l),d=i(27);function p(v){return v&&v.__esModule?v:{default:v}}function f(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}function m(v,x){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:v}function g(v,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);v.prototype=Object.create(x&&x.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(v,x):v.__proto__=x)}var b=["alt","height","width"],y=(function(v){g(x,v);function x(){return f(this,x),m(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return o(x,[{key:"format",value:function(j,S){b.indexOf(j)>-1?S?this.domNode.setAttribute(j,S):this.domNode.removeAttribute(j):a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"format",this).call(this,j,S)}}],[{key:"create",value:function(j){var S=a(x.__proto__||Object.getPrototypeOf(x),"create",this).call(this,j);return typeof j=="string"&&S.setAttribute("src",this.sanitize(j)),S}},{key:"formats",value:function(j){return b.reduce(function(S,N){return j.hasAttribute(N)&&(S[N]=j.getAttribute(N)),S},{})}},{key:"match",value:function(j){return/\.(jpe?g|gif|png)$/.test(j)||/^data:image\/.+;base64/.test(j)}},{key:"sanitize",value:function(j){return(0,d.sanitize)(j,["http","https","data"])?j:"//:0"}},{key:"value",value:function(j){return j.getAttribute("src")}}]),x})(c.default.Embed);y.blotName="image",y.tagName="IMG",r.default=y}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=(function(){function v(x,_){for(var j=0;j<_.length;j++){var S=_[j];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(x,S.key,S)}}return function(x,_,j){return _&&v(x.prototype,_),j&&v(x,j),x}})(),a=function v(x,_,j){x===null&&(x=Function.prototype);var S=Object.getOwnPropertyDescriptor(x,_);if(S===void 0){var N=Object.getPrototypeOf(x);return N===null?void 0:v(N,_,j)}else{if("value"in S)return S.value;var O=S.get;return O===void 0?void 0:O.call(j)}},l=i(4),c=i(27),d=p(c);function p(v){return v&&v.__esModule?v:{default:v}}function f(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}function m(v,x){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:v}function g(v,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);v.prototype=Object.create(x&&x.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(v,x):v.__proto__=x)}var b=["height","width"],y=(function(v){g(x,v);function x(){return f(this,x),m(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return o(x,[{key:"format",value:function(j,S){b.indexOf(j)>-1?S?this.domNode.setAttribute(j,S):this.domNode.removeAttribute(j):a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"format",this).call(this,j,S)}}],[{key:"create",value:function(j){var S=a(x.__proto__||Object.getPrototypeOf(x),"create",this).call(this,j);return S.setAttribute("frameborder","0"),S.setAttribute("allowfullscreen",!0),S.setAttribute("src",this.sanitize(j)),S}},{key:"formats",value:function(j){return b.reduce(function(S,N){return j.hasAttribute(N)&&(S[N]=j.getAttribute(N)),S},{})}},{key:"sanitize",value:function(j){return d.default.sanitize(j)}},{key:"value",value:function(j){return j.getAttribute("src")}}]),x})(l.BlockEmbed);y.blotName="video",y.className="ql-video",y.tagName="IFRAME",r.default=y}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.FormulaBlot=void 0;var o=(function(){function j(S,N){for(var O=0;O<N.length;O++){var E=N[O];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(S,E.key,E)}}return function(S,N,O){return N&&j(S.prototype,N),O&&j(S,O),S}})(),a=function j(S,N,O){S===null&&(S=Function.prototype);var E=Object.getOwnPropertyDescriptor(S,N);if(E===void 0){var A=Object.getPrototypeOf(S);return A===null?void 0:j(A,N,O)}else{if("value"in E)return E.value;var I=E.get;return I===void 0?void 0:I.call(O)}},l=i(35),c=g(l),d=i(5),p=g(d),f=i(9),m=g(f);function g(j){return j&&j.__esModule?j:{default:j}}function b(j,S){if(!(j instanceof S))throw new TypeError("Cannot call a class as a function")}function y(j,S){if(!j)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:j}function v(j,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);j.prototype=Object.create(S&&S.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(j,S):j.__proto__=S)}var x=(function(j){v(S,j);function S(){return b(this,S),y(this,(S.__proto__||Object.getPrototypeOf(S)).apply(this,arguments))}return o(S,null,[{key:"create",value:function(O){var E=a(S.__proto__||Object.getPrototypeOf(S),"create",this).call(this,O);return typeof O=="string"&&(window.katex.render(O,E,{throwOnError:!1,errorColor:"#f00"}),E.setAttribute("data-value",O)),E}},{key:"value",value:function(O){return O.getAttribute("data-value")}}]),S})(c.default);x.blotName="formula",x.className="ql-formula",x.tagName="SPAN";var _=(function(j){v(S,j),o(S,null,[{key:"register",value:function(){p.default.register(x,!0)}}]);function S(){b(this,S);var N=y(this,(S.__proto__||Object.getPrototypeOf(S)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return N}return S})(m.default);r.FormulaBlot=x,r.default=_}),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.CodeToken=r.CodeBlock=void 0;var o=(function(){function O(E,A){for(var I=0;I<A.length;I++){var M=A[I];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(E,M.key,M)}}return function(E,A,I){return A&&O(E.prototype,A),I&&O(E,I),E}})(),a=function O(E,A,I){E===null&&(E=Function.prototype);var M=Object.getOwnPropertyDescriptor(E,A);if(M===void 0){var C=Object.getPrototypeOf(E);return C===null?void 0:O(C,A,I)}else{if("value"in M)return M.value;var R=M.get;return R===void 0?void 0:R.call(I)}},l=i(0),c=y(l),d=i(5),p=y(d),f=i(9),m=y(f),g=i(13),b=y(g);function y(O){return O&&O.__esModule?O:{default:O}}function v(O,E){if(!(O instanceof E))throw new TypeError("Cannot call a class as a function")}function x(O,E){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:O}function _(O,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);O.prototype=Object.create(E&&E.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(O,E):O.__proto__=E)}var j=(function(O){_(E,O);function E(){return v(this,E),x(this,(E.__proto__||Object.getPrototypeOf(E)).apply(this,arguments))}return o(E,[{key:"replaceWith",value:function(I){this.domNode.textContent=this.domNode.textContent,this.attach(),a(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"replaceWith",this).call(this,I)}},{key:"highlight",value:function(I){var M=this.domNode.textContent;this.cachedText!==M&&((M.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=I(M),this.domNode.normalize(),this.attach()),this.cachedText=M)}}]),E})(b.default);j.className="ql-syntax";var S=new c.default.Attributor.Class("token","hljs",{scope:c.default.Scope.INLINE}),N=(function(O){_(E,O),o(E,null,[{key:"register",value:function(){p.default.register(S,!0),p.default.register(j,!0)}}]);function E(A,I){v(this,E);var M=x(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,A,I));if(typeof M.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var C=null;return M.quill.on(p.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(C),C=setTimeout(function(){M.highlight(),C=null},M.options.interval)}),M.highlight(),M}return o(E,[{key:"highlight",value:function(){var I=this;if(!this.quill.selection.composing){this.quill.update(p.default.sources.USER);var M=this.quill.getSelection();
626this.quill.scroll.descendants(j).forEach(function(C){C.highlight(I.options.highlight)}),this.quill.update(p.default.sources.SILENT),M!=null&&this.quill.setSelection(M,p.default.sources.SILENT)}}}]),E})(m.default);N.DEFAULTS={highlight:(function(){return window.hljs==null?null:function(O){var E=window.hljs.highlightAuto(O);return E.value}})(),interval:1e3},r.CodeBlock=j,r.CodeToken=S,r.default=N}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'}),(function(n,r){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line>
626 <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'}),(function(n,r){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'}),(function(n,r){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'}),(function(n,r){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'}
vendor: 9,131 bytes, line 626
626),(function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BubbleTooltip=void 0;var o=function E(A,I,M){A===null&&(A=Function.prototype);var C=Object.getOwnPropertyDescriptor(A,I);if(C===void 0){var R=Object.getPrototypeOf(A);return R===null?void 0:E(R,I,M)}else{if("value"in C)return C.value;var B=C.get;return B===void 0?void 0:B.call(M)}},a=(function(){function E(A,I){for(var M=0;M<I.length;M++){var C=I[M];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(A,C.key,C)}}return function(A,I,M){return I&&E(A.prototype,I),M&&E(A,M),A}})(),l=i(3),c=v(l),d=i(8),p=v(d),f=i(43),m=v(f),g=i(15),b=i(41),y=v(b);function v(E){return E&&E.__esModule?E:{default:E}}function x(E,A){if(!(E instanceof A))throw new TypeError("Cannot call a class as a function")}function _(E,A){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:E}function j(E,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);E.prototype=Object.create(A&&A.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(E,A):E.__proto__=A)}var S=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],N=(function(E){j(A,E);function A(I,M){x(this,A),M.modules.toolbar!=null&&M.modules.toolbar.container==null&&(M.modules.toolbar.container=S);var C=_(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,I,M));return C.quill.container.classList.add("ql-bubble"),C}return a(A,[{key:"extendToolbar",value:function(M){this.tooltip=new O(this.quill,this.options.bounds),this.tooltip.root.appendChild(M.container),this.buildButtons([].slice.call(M.container.querySelectorAll("button")),y.default),this.buildPickers([].slice.call(M.container.querySelectorAll("select")),y.default)}}]),A})(m.default);N.DEFAULTS=(0,c.default)(!0,{},m.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(A){A?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var O=(function(E){j(A,E);function A(I,M){x(this,A);var C=_(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,I,M));return C.quill.on(p.default.events.EDITOR_CHANGE,function(R,B,$,z){if(R===p.default.events.SELECTION_CHANGE)if(B!=null&&B.length>0&&z===p.default.sources.USER){C.show(),C.root.style.left="0px",C.root.style.width="",C.root.style.width=C.root.offsetWidth+"px";var H=C.quill.getLines(B.index,B.length);if(H.length===1)C.position(C.quill.getBounds(B));else{var V=H[H.length-1],Y=C.quill.getIndex(V),W=Math.min(V.length()-1,B.index+B.length-Y),q=C.quill.getBounds(new g.Range(Y,W));C.position(q)}}else document.activeElement!==C.textbox&&C.quill.hasFocus()&&C.hide()}),C}return a(A,[{key:"listen",value:function(){var M=this;o(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){M.root.classList.remove("ql-editing")}),this.quill.on(p.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!M.root.classList.contains("ql-hidden")){var C=M.quill.getSelection();C!=null&&M.position(M.quill.getBounds(C))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(M){var C=o(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"position",this).call(this,M),R=this.root.querySelector(".ql-tooltip-arrow");if(R.style.marginLeft="",C===0)return C;R.style.marginLeft=-1*C-R.offsetWidth/2+"px"}}]),A})(f.BaseTooltip);O.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),r.BubbleTooltip=O,r.default=N}),(function(n,r,i){n.exports=i(63)})]).default})})(bg)),bg.exports}var Oi,P3;function mhe(){if(P3)return Oi;P3=1;var e=Oi&&Oi.__extends||(function(){var p=function(f,m){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var y in b)b.hasOwnProperty(y)&&(g[y]=b[y])},p(f,m)};return function(f,m){p(f,m);function g(){this.constructor=f}f.prototype=m===null?Object.create(m):(g.prototype=m.prototype,new g)}})(),t=Oi&&Oi.__assign||function(){return t=Object.assign||function(p){for(var f,m=1,g=arguments.length;m<g;m++){f=arguments[m];for(var b in f)Object.prototype.hasOwnProperty.call(f,b)&&(p[b]=f[b])}return p},t.apply(this,arguments)},n=Oi&&Oi.__spreadArrays||function(){for(var p=0,f=0,m=arguments.length;f<m;f++)p+=arguments[f].length;for(var g=Array(p),b=0,f=0;f<m;f++)for(var y=arguments[f],v=0,x=y.length;v<x;v++,b++)g[b]=y[v];return g},r=Oi&&Oi.__importDefault||function(p){return p&&p.__esModule?p:{default:p}},i=r(Vy()),o=r(fN()),a=r(m9()),l=r(phe()),c=(function(p){e(f,p);function f(m){var g=p.call(this,m)||this;g.dirtyProps=["modules","formats","bounds","theme","children"],g.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],g.state={generation:0},g.selection=null,g.onEditorChange=function(y,v,x,_){var j,S,N,O;y==="text-change"?(S=(j=g).onEditorChangeText)===null||S===void 0||S.call(j,g.editor.root.innerHTML,v,_,g.unprivilegedEditor):y==="selection-change"&&((O=(N=g).onEditorChangeSelection)===null||O===void 0||O.call(N,v,_,g.unprivilegedEditor))};var b=g.isControlled()?m.value:m.defaultValue;return g.value=b??"",g}return f.prototype.validateProps=function(m){var g;if(i.default.Children.count(m.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(i.default.Children.count(m.children)){var b=i.default.Children.only(m.children);if(((g=b)===null||g===void 0?void 0:g.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&m.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},f.prototype.shouldComponentUpdate=function(m,g){var b=this,y;if(this.validateProps(m),!this.editor||this.state.generation!==g.generation)return!0;if("value"in m){var v=this.getEditorContents(),x=(y=m.value,y??"");this.isEqualValue(x,v)||this.setEditorContents(this.editor,x)}return m.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,m.readOnly),n(this.cleanProps,this.dirtyProps).some(function(_){return!a.default(m[_],b.props[_])})},f.prototype.shouldComponentRegenerate=function(m){var g=this;return this.dirtyProps.some(function(b){return!a.default(m[b],g.props[b])})},f.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},f.prototype.componentWillUnmount=function(){this.destroyEditor()},f.prototype.componentDidUpdate=function(m,g){var b=this;if(this.editor&&this.shouldComponentRegenerate(m)){var y=this.editor.getContents(),v=this.editor.getSelection();this.regenerationSnapshot={delta:y,selection:v},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==g.generation){var x=this.regenerationSnapshot,y=x.delta,_=x.selection;delete this.regenerationSnapshot,this.instantiateEditor();var j=this.editor;j.setContents(y),d(function(){return b.setEditorSelection(j,_)})}},f.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},f.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},f.prototype.isControlled=function(){return"value"in this.props},f.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},f.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},f.prototype.createEditor=function(m,g){var b=new l.default(m,g);return g.tabIndex!=null&&this.setEditorTabIndex(b,g.tabIndex),this.hookEditor(b),b},f.prototype.hookEditor=function(m){this.unprivilegedEditor=this.makeUnprivilegedEditor(m),m.on("editor-change",this.onEditorChange)},f.prototype.unhookEditor=function(m){m.off("editor-change",this.onEditorChange)},f.prototype.getEditorContents=function(){return this.value},f.prototype.getEditorSelection=function(){return this.selection},f.prototype.isDelta=function(m){return m&&m.ops},f.prototype.isEqualValue=function(m,g){return this.isDelta(m)&&this.isDelta(g)?a.default(m.ops,g.ops):a.default(m,g)},f.prototype.setEditorContents=function(m,g){var b=this;this.value=g;var y=this.getEditorSelection();typeof g=="string"?m.setContents(m.clipboard.convert(g)):m.setContents(g),d(function(){return b.setE
626ditorSelection(m,y)})},f.prototype.setEditorSelection=function(m,g){if(this.selection=g,g){var b=m.getLength();g.index=Math.max(0,Math.min(g.index,b-1)),g.length=Math.max(0,Math.min(g.length,b-1-g.index)),m.setSelection(g)}},f.prototype.setEditorTabIndex=function(m,g){var b,y;!((y=(b=m)===null||b===void 0?void 0:b.scroll)===null||y===void 0)&&y.domNode&&(m.scroll.domNode.tabIndex=g)},f.prototype.setEditorReadOnly=function(m,g){g?m.disable():m.enable()},f.prototype.makeUnprivilegedEditor=function(m){var g=m;return{getHTML:function(){return g.root.innerHTML},getLength:g.getLength.bind(g),getText:g.getText.bind(g),getContents:g.getContents.bind(g),getSelection:g.getSelection.bind(g),getBounds:g.getBounds.bind(g)}},f.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var m=o.default.findDOMNode(this.editingArea);if(!m)throw new Error("Cannot find element for editing area");if(m.nodeType===3)throw new Error("Editing area cannot be a text node");return m},f.prototype.renderEditingArea=function(){var m=this,g=this.props,b=g.children,y=g.preserveWhitespace,v=this.state.generation,x={key:v,ref:function(_){m.editingArea=_}};return i.default.Children.count(b)?i.default.cloneElement(i.default.Children.only(b),x):y?i.default.createElement("pre",t({},x)):i.default.createElement("div",t({},x))},f.prototype.render=function(){var m;return i.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(m=this.props.className,m??""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},f.prototype.onEditorChangeText=function(m,g,b,y){var v,x;if(this.editor){var _=this.isDelta(this.value)?y.getContents():y.getHTML();_!==this.getEditorContents()&&(this.lastDeltaChangeSet=g,this.value=_,(x=(v=this.props).onChange)===null||x===void 0||x.call(v,m,g,b,y))}},f.prototype.onEditorChangeSelection=function(m,g,b){var y,v,x,_,j,S;if(this.editor){var N=this.getEditorSelection(),O=!N&&m,E=N&&!m;a.default(m,N)||(this.selection=m,(v=(y=this.props).onChangeSelection)===null||v===void 0||v.call(y,m,g,b),O?(_=(x=this.props).onFocus)===null||_===void 0||_.call(x,m,g,b):E&&((S=(j=this.props).onBlur)===null||S===void 0||S.call(j,N,g,b)))}},f.prototype.focus=function(){this.editor&&this.editor.focus()},f.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},f.displayName="React Quill",f.Quill=l.default,f.defaultProps={theme:"snow",modules:{},readOnly:!1},f})(i.default.Component);function d(p){Promise.resolve().then(p)}return Oi=c,Oi}var ghe=mhe();const yhe=Ct(ghe),vhe=new Set(["a","an","the","and","or","for","of","in","on","to","is","are","does","do","with","that","using","from"]);function A3(e){let t=String(e||"").toLowerCase().trim().replace(/[''""`]/g,"").replace(/&/g,"and").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"");t=t.replace(/^peer-reviewed-research-/,"");const n=t.split("-").filter(i=>i&&!vhe.has(i));let r="";for(const i of n){const o=r?r+"-"+i:i;if(o.length>60)break;r=o}return r}const xhe=["Innovation","Sustainability","Research","Product","Partnership","Milestones","Events","News"],T3={title:"",slug:"",category:"",excerpt:"",content:"",cover_image_url:"",published_date:new Date().toISOString().split("T")[0],is_published:!1};function bhe(){const[e,t]=P.useState([]),[n,r]=P.useState(!0),[i,o]=P.useState(null),[a,l]=P.useState(T3),[c,d]=P.useState(!1),[p,f]=P.useState(!1),[m,g]=P.useState("");P.useEffect(()=>{b()},[]);async function b(){r(!0);const O=await st.entities.NewsArticle.list("-published_date");t(O),r(!1)}function y(){l(T3),f(!1),g(""),o("new")}function v(O){l({...O}),f(!0),g(O.slug||""),o(O.id)}function x(){o(null)}async function _(){var A;d(!0);const O=((A=a.slug)==null?void 0:A.trim())||A3(a.title),E={...a,slug:O};i==="new"?await st.entities.NewsArticle.create(E):await st.entities.NewsArticle.update(i,E),d(!1),o(null),await b()}async function j(O){confirm("Delete this article?")&&(await st.entities.NewsArticle.delete(O),await b())}async function S(O){await st.entities.NewsArticle.update(O.id,{is_published:!O.is_published}),await b()}const N=i!==null;return s.jsxs("div",{className:"bg-pale-blue min-h-screen",children:[s.jsx(At,{}),s.jsxs("div",{className:"max-w-screen-xl mx-auto px-6 lg:px-10 pt-36 pb-24",children:[s.jsxs("div",{className:"flex items-center justify-between mb-10",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-mid-blue text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-1",children:"Admin"}),s.jsx("h1",{className:"text-dark-blue font-cal text-4xl",children:"News & Articles"})]}),!N&&s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs(Ie,{to:"/admin/leads",className:"inline-flex items-center gap-2 px-5 py-3 border border-dark-blue/20 text-dark-blue font-inter font-semibold text-sm rounded-full hover:bg-dark-blue/5 transition-colors",children:[s.jsx(TL,{size:16})," Leads"]}),s.jsxs(Ie,{to:"/admin/analytics",className:"inline-flex items-center gap-2 px-5 py-3 border border-dark-blue/20 text-dark-blue font-inter font-semibold text-sm rounded-full hover:bg-dark-blue/5 transition-colors",children:[s.jsx(OL,{size:16})," Analytics"]}),s.jsxs("button",{onClick:y,className:"inline-flex items-center gap-2 px-5 py-3 bg-dark-blue text-white font-inter font-semibold text-sm rounded-full hover:bg-dark-blue/90 transition-colors",children:[s.jsx(lG,{size:16}
626)," New Article"]})]})]}),N?s.jsxs("div",{className:"bg-white rounded-2xl shadow-sm border border-dark-blue/10 p-8 lg:p-12",children:[s.jsx("h2",{className:"text-dark-blue font-cal text-2xl mb-8",children:i==="new"?"New Article":"Edit Article"}),s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6",children:[s.jsxs("div",{className:"lg:col-span-2",children:[s.jsx("label",{className:"block text-dark-blue font-inter font-semibold text-sm mb-2",children:"Title *"}),s.jsx("input",{type:"text",value:a.title,onChange:O=>{const E=O.target.value;l(A=>({...A,title:E,slug:p?A.slug:A3(E)}))},className:"w-full border border-dark-blue/20 rounded-xl px-4 py-3 font-inter text-dark-blue text-sm focus:outline-none focus:ring-2 focus:ring-mid-blue/30",placeholder:"Article title"})]}),s.jsxs("div",{className:"lg:col-span-2",children:[s.jsx("label",{className:"block text-dark-blue font-inter font-semibold text-sm mb-2",children:"URL Slug"}),s.jsx("input",{type:"text",value:a.slug||"",onChange:O=>{f(!0),l(E=>({...E,slug:O.target.value}))},className:"w-full border border-dark-blue/20 rounded-xl px-4 py-3 font-inter text-dark-blue text-sm focus:outline-none focus:ring-2 focus:ring-mid-blue/30",placeholder:"auto-generated-from-title"}),s.jsxs("p",{className:"text-dark-blue/40 font-inter text-xs mt-1.5",children:["Live URL: /news/",a.slug||"…",a.slug?"":" (auto)"]}),i!=="new"&&a.is_published&&a.slug!==m&&s.jsx("p",{className:"text-amber-600 font-inter text-xs mt-2",children:"⚠ Changing the slug on a published article changes its live URL and will break any indexed links to the old URL."})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-dark-blue font-inter font-semibold text-sm mb-2",children:"Category"}),s.jsxs("select",{value:a.category,onChange:O=>l(E=>({...E,category:O.target.value})),className:"w-full border border-dark-blue/20 rounded-xl px-4 py-3 font-inter text-dark-blue text-sm focus:outline-none focus:ring-2 focus:ring-mid-blue/30",children:[s.jsx("option",{value:"",children:"Select category"}),xhe.map(O=>s.jsx("option",{value:O,children:O},O))]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-dark-blue font-inter font-semibold text-sm mb-2",children:"Published Date"}),s.jsx("input",{type:"date",value:a.published_date,onChange:O=>l(E=>({...E,published_date:O.target.value})),className:"w-full border border-dark-blue/20 rounded-xl px-4 py-3 font-inter text-dark-blue text-sm focus:outline-none focus:ring-2 focus:ring-mid-blue/30"})]}),s.jsxs("div",{className:"lg:col-span-2",children:[s.jsx("label",{className:"block text-dark-blue font-inter font-semibold text-sm mb-2",children:"Cover Image URL"}),s.jsx("input",{type:"url",value:a.cover_image_url,onChange:O=>l(E=>({...E,cover_image_url:O.target.value})),className:"w-full border border-dark-blue/20 rounded-xl px-4 py-3 font-inter text-dark-blue text-sm focus:outline-none focus:ring-2 focus:ring-mid-blue/30",placeholder:"https://..."})]}),s.jsxs("div",{className:"lg:col-span-2",children:[s.jsx("label",{className:"block text-dark-blue font-inter font-semibold text-sm mb-2",children:"Excerpt / Summary"}),s.jsx("textarea",{value:a.excerpt,onChange:O=>l(E=>({...E,excerpt:O.target.value})),rows:3,className:"w-full border border-dark-blue/20 rounded-xl px-4 py-3 font-inter text-dark-blue text-sm focus:outline-none focus:ring-2 focus:ring-mid-blue/30 resize-none",placeholder:"Short summary shown on the news listing page..."})]})]}),s.jsxs("div",{className:"mb-8",children:[s.jsx("label",{className:"block text-dark-blue font-inter font-semibold text-sm mb-2",children:"Full Article Content"}),s.jsx("div",{className:"border border-dark-blue/20 rounded-xl overflow-hidden",children:s.jsx(yhe,{theme:"snow",value:a.content,onChange:O=>l(E=>({...E,content:O})),style:{minHeight:"300px"}})})]}),s.jsx("div",{className:"flex items-center gap-4 mb-8",children:s.jsxs("label",{className:"flex items-center gap-3 cursor-pointer",children:[s.jsx("div",{onClick:()=>l(O=>({...O,is_published:!O.is_published})),className:`w-12 h-6 rounded-full transition-colors ${a.is_published?"bg-pistachio":"bg-dark-blue/20"} relative`,children:s.jsx("div",{className:`absolute top-1 w-4 h-4 bg-white rounded-full shadow transition-transform ${a.is_published?"translate-x-7":"translate-x-1"}`})}),s.jsx("span",{className:"font-inter text-sm text-dark-blue font-semibold",children:a.is_published?"Published (visible on site)":"Draft (hidden from site)"})]})}),s.jsxs("div",{className:"flex gap-4",children:[s.jsxs("button",{onClick:_,disabled:c||!a.title,className:"inline-flex items-center gap-2 px-6 py-3 bg-dark-blue text-white font-inter font-semibold text-sm rounded-full hover:bg-dark-blue/90 transition-colors disabled:opacity-50",children:[s.jsx(Gy,{size:16})," ",c?"Saving...":"Save Article"]}),s.jsxs("button",{onClick:x,className:"inline-flex items-center gap-2 px-6 py-3 border border-dark-blue/20 text-dark-blue font-inter font-semibold text-sm rounded-full hover:bg-dark-blue/5 transition-colors",children:[s.jsx(zi,{size:16})," Cancel"]})]})]}):n?s.jsx("div",{className:"text-center py-20 text-mid-blue font-inter",children:"Loading articles..."}):e.length===0?s.jsx("div",{className:"text-center py-20 text-mid-blue font-inter",children:"No articles yet. Create your first one."}):s.jsx("div",{className:"space-y-4",children:e.map(O=>s.jsxs("div",{className:"bg-white rounded-2xl border border-dark-blue/10 px-6 py-5 flex items-center justify-between gap-4 hover:shadow-sm transition-shadow",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[O.category&&s.jsx("span",{className:"text-xs font-inter font-semibold uppercase tracking-widest text-mid-blue bg-pale-blue px-2 py-0.5 rounded-full",children:O.category}),s.jsx("span",{className:`text-xs font-inter font-semibold px-2 py-0.5 rounded-full ${O.is_published?"bg-pistachio/20 text-dark-blue":"bg-dark-blue/10 text-mid-blue"}`,children:O.is_published?"Published":"Draft"}),O.published_date&&s.jsx("span",{className:"text-dark-blue/40 font-inter text-xs",children:O.published_date})]}),s.jsx("h3",{className:"text-dark-blue font-inter font-semibold text-base truncate",children:O.title}),O.excerpt&&s.jsx("p",{className:"text-dark-blue/50 font-inter text-sm mt-1 line-clamp-1",children:O.excerpt})]}),s.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[s.jsx("button",{onClick:()=>S(O),title:O.is_published?"Unpublish":"Publish",className:"p-2 rounded-lg hover:bg-pale-blue transition-colors text-mid-blue",children:O.is_published?s.jsx(uW,{size:16}):s.jsx(AL,{size:16})}),s.jsx("button",{onClick:()=>v(O),className:"p-2 rounded-lg hover:bg-pale-blue transition-colors text-mid-blue",children:s.jsx(rG,{size:16})}),s.jsx("button",{onClick:()=>j(O.id),className:"p-2 rounded-lg hover:bg-red-50 transition-colors text-red-400",children:s.jsx(DL,{size:16})})]})]},O.id))})]}),s.jsx(Tt,{})]})}function mr(e){return e==null||e===""||isNaN(e)?"—":Number(e).toLocaleStr
626ing("en-AU")}function US(e){return e==null||e===""||isNaN(e)?"—":(Number(e)*100).toFixed(1)+"%"}function g9(e){if(e==null||e===""||isNaN(e))return"—";const t=Math.round(Number(e)),n=Math.floor(t/60),r=t%60;return`${n}m ${r}s`}function C3(e){const t=new Date(e);return isNaN(t.getTime())?String(e):t.toLocaleDateString("en-AU",{day:"numeric",month:"short"})}function whe(e){if(e==null||isNaN(e))return{text:"—",cls:"bg-pale-blue text-dark-blue/30"};const t=e>=0;return{text:`${t?"▲":"▼"} ${Math.abs(e).toFixed(1)}%`,cls:t?"bg-pistachio/15 text-emerald-700":"bg-red-50 text-red-600"}}function _he({label:e,value:t,format:n,delta:r}){const i=n||mr,o=whe(r);return s.jsxs("div",{className:"bg-white rounded-xl border border-dark-blue/8 p-5",children:[s.jsxs("div",{className:"flex items-start justify-between mb-2",children:[s.jsx("p",{className:"text-dark-blue/50 text-xs font-inter font-semibold uppercase tracking-wider",children:e}),s.jsx("span",{className:`text-xs font-inter font-semibold px-2 py-0.5 rounded-full ${o.cls}`,children:o.text})]}),s.jsx("p",{className:"text-dark-blue font-cal text-2xl lg:text-3xl",children:i(t)})]})}function She({loginStats:e}){const{sessions:t=0,views:n=0,share:r}=e||{};return s.jsxs("div",{className:"bg-white rounded-2xl border border-dark-blue/8 p-6 flex flex-col sm:flex-row sm:items-center gap-6",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-10 h-10 rounded-lg bg-pale-blue flex items-center justify-center text-mid-blue flex-shrink-0",children:s.jsx(gl,{size:18})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-dark-blue/50 text-xs font-inter font-semibold uppercase tracking-wider",children:"Practitioner portal logins"}),s.jsx("p",{className:"text-dark-blue/70 font-inter text-sm",children:"Reported separately — excluded from marketing stats below"})]})]}),s.jsxs("div",{className:"sm:ml-auto flex gap-8",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-dark-blue font-cal text-2xl",children:mr(t)}),s.jsx("p",{className:"text-dark-blue/50 text-xs font-inter",children:"Login sessions"})]}),s.jsxs("div",{children:[s.jsx("p",{className:"text-dark-blue font-cal text-2xl",children:mr(n)}),s.jsx("p",{className:"text-dark-blue/50 text-xs font-inter",children:"Login pageviews"})]}),s.jsxs("div",{children:[s.jsx("p",{className:"text-dark-blue font-cal text-2xl",children:r==null?"—":`${r}%`}),s.jsx("p",{className:"text-dark-blue/50 text-xs font-inter",children:"Share of all views"})]})]})]})}const jhe=["podiatry management","o & p edge","the o & p edge","ler expo","podiatry pulse"];function Nhe(e){const t=String(e||"").toLowerCase();return jhe.some(n=>t.includes(n))}function khe({channels:e=[],sources:t=[]}){const n=Math.max(1,...e.map(r=>r.sessions));return s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[s.jsxs("div",{className:"bg-white rounded-2xl border border-dark-blue/8 p-6",children:[s.jsx("h3",{className:"text-dark-blue font-cal text-xl mb-1",children:"Traffic by channel"}),s.jsx("p",{className:"text-dark-blue/50 font-inter text-sm mb-5",children:"How visitors arrived at the site"}),s.jsxs("div",{className:"space-y-3",children:[e.map((r,i)=>s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-1",children:[s.jsx("span",{className:"text-dark-blue font-inter text-sm font-medium",children:r.channel}),s.jsx("span",{className:"text-dark-blue/60 font-inter text-sm",children:mr(r.sessions)})]}),s.jsx("div",{className:"h-2 rounded-full bg-pale-blue overflow-hidden",children:s.jsx("div",{className:"h-full bg-mid-blue rounded-full",style:{width:`${r.sessions/n*100}%`}})})]},i)),e.length===0&&s.jsx("p",{className:"text-dark-blue/40 font-inter text-sm",children:"No channel data for this period."})]})]}),s.jsxs("div",{className:"bg-white rounded-2xl border border-dark-blue/8 overflow-hidden",children:[s.jsxs("div",{className:"px-6 py-5 border-b border-dark-blue/8",children:[s.jsx("h3",{className:"text-dark-blue font-cal text-xl",children:"Referral sources"}),s.jsx("p",{className:"text-dark-blue/50 font-inter text-sm",children:"Your trade-publication campaigns are flagged"})]}),s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left",children:[s.jsx("thead",{className:"bg-pale-blue/60 text-dark-blue/50 text-xs font-inter font-semibold uppercase tracking-wider",children:s.jsxs("tr",{children:[s.jsx("th",{className:"px-6 py-3",children:"Source"}),s.jsx("th",{className:"px-4 py-3",children:"Medium"}),s.jsx("th",{className:"px-6 py-3 text-right",children:"Sessions"}),s.jsx("th",{className:"px-6 py-3 text-right",children:"Users"})]})}),s.jsxs("tbody",{children:[t.map((r,i)=>s.jsxs("tr",{className:"border-t border-dark-blue/6 hover:bg-pale-blue/40",children:[s.jsx("td",{className:"px-6 py-3",children:s.jsxs("span",{className:"text-dark-blue font-inter text-sm font-medium flex items-center gap-1.5",children:[r.source,Nhe(r.source)&&s.jsx("span",{className:"text-[10px] font-inter font-semibold uppercase tracking-wider text-emerald-700 bg-pistachio/20 px-1.5 py-0.5 rounded",children:"Ad"})]})}),s.jsx("td",{className:"px-4 py-3 text-dark-blue/60 font-inter text-sm",children:r.medium||"—"}),s.jsx("td",{className:"px-6 py-3 text-right text-dark-blue font-inter text-sm font-semibold",children:mr(r.sessions)}),s.jsx("td",{className:"px-6 py-3 text-right text-dark-blue/70 font-inter text-sm",children:mr(r.users)})]},i)),t.length===0&&s.jsx("tr",{children:s.jsx("td",{colSpan:4,className:"px-6 py-8 text-center text-dark-blue/40 font-inter text-sm",children:"No referral data yet — this will populate as your ads go live."})})]})]})})]})]})}function Ohe({landingPages:e=[]}){return s.jsxs("div",{className:"bg-white rounded-2xl border border-dark-blue/8 overflow-hidden",children:[s.jsxs("div",{className:"px-6 lg:px-8 py-5 border-b border-dark-blue/8",children:[s.jsx("h3",{className:"text-dark-blue font-cal text-xl",children:"Landing pages"}),s.jsx("p",{className:"text-dark-blue/50 font-inter text-sm",children:"Where visitors first arrived this period"})]}),s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left",children:[s.jsx("thead",{className:"bg-pale-blue/60 text-dark-blue/50 text-xs font-inter font-semibold uppercase tracking-wider",children:s.jsxs("tr",{children:[s.jsx("th",{className:"px-6 lg:px-8 py-3",children:"Entry page"}),s.jsx("th",{className:"px-4 py-3 text-right",children:"Entrances"}),s.jsx("th",{className:"px-4 py-3 text-right",children:"Engaged"}),s.jsx("th",{className:"px-4 py-3 text-right",children:"Pages / Session"}),s.jsx("th",{className:"px-6 lg:px-8 py-3 text-right",children:"Bounce"})]})}),s.jsxs("tbody",{children:[e.map((t,n)=>s.jsxs("tr",{className:"border-t border-dark-blue/6 hover:bg-pale-blue/40",children:[s.jsx("td",{className:"px-6 lg:px-8 py-3.5 text-dark-blue font-inter text-sm font-medium truncate max-w-xs",children:t.path}),s.jsx("td",{className:"px-4 py-3.5 text-right text-dark-blue font-inter text-sm font-semibold",children:mr(t.sessions)}),s.jsx("td",{className:"px-4 py-3.5 text-right text-dark-blue/70 font-inter text-sm",children:mr(t.engagedSessions)}),s.jsx("td",{className:"px-4 py-3.5 text-right text-dark-blue/70 font-inter text-sm",children:t.pagesPerSession==null?"—":Number(t.pagesPerSession).toFixed(2)}),s.jsx("td",{className:"px-6 lg:px-8 py-3.5 text-right text-dark-blue/70 font-inter text-sm",children:US(t.bounceRate)})]},n)),e.length===0&&s.jsx("tr",{children:s.jsx("td",{colSpan:5,className:"px-6 py-8 text-center text-dark-blue/40 font-inter text-sm",children:"No landing-page data yet."})})]})]})})]})}function Ehe({geo:e=[]}){const t=Math.max(1,...e.map(n=>n.sessions));return s.jsxs("div",{className:"bg-white rounded-2xl border border-dark-blue/8 p-6",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx(bW,{size:16,className:"text-mid-blue"}),s.jsx("h3",{className:"text-dark-blue font-cal text-xl",children:"Where they are"})]}),s.jsx("p",{className:"text-dark-blue/50 font-inter text-sm mb-5",children:"Top countries by sessions"}),s.jsxs("div",{className:"space-y-3",children:[e.map((n,r)=>s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-1",children:[s.jsx("span",{className:"text-dark-blue font-inter text-sm",children:n.country||"Unknown"}),s.jsx("span",{className:"text-dark-blue/60 font-inter text-sm",children:mr(n.sessions)})]}),s.jsx("div",{className:"h-2 rounded-full bg-pale-blue overflow-hidden",children:s.jsx("div",{className:"h-full bg-pistachio rounded-full",style:{width:`${n.sessions/t*100}%`}})})]},r)),e.length===0&&s.jsx("p",{className:"text-dark-blue/40 font-inter text-sm",children:"No geo data yet."})]})]})}const Phe={Mobile:PG,Desktop:RL,Tablet:DG};function Ahe({devices:e=[]}){const t=e.reduce((n,r)=>n+r.sessions,0);return s.jsxs("div",{className:"bg-white rounded-2xl border border-dark-blue/8 p-6",children:[s.jsx("h3",{className:"text-dark-blue font-cal text-xl mb-1",children:"Devices"}),s.jsx("p",{className:"text-dark-blue/50 font-inter text-sm mb-5",children:"How visitors browse the site"}),s.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[e.map((n,r)=>{const i=Phe[n.device]||RL,o=t>0?Math.round(n.sessions/t*1e3)/10:0;return s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"w-12 h-12 rounded-xl bg-pale-blue flex items-center justify-center text-mid-blue mx-auto mb-2",children:s.jsx(i,{size:20})}),s.jsxs("p",{className:"text-dark-blue font-cal text-lg",children:[o,"%"]}),s.jsx("p",{className:"text-dark-blue/50 font-inter text-xs",children:n.device}),s.jsxs("p",{className:"text-dark-blue/40 font-inter text-xs mt-0.5",children:[mr(n.sessions)," sess."]})]},r)}),e.length===0&&s.jsx("p",{className:"col-span-3 text-dark-blue/40 font-inter text-sm text-center py-4",children:"No device data."})]})]})}const R3=["bg-pistachio/20 text-dark-blue","bg-pale-blue text-dark-blue","bg-pale-blue text-dark-blue","bg-pale-blue/70 text-dark-blue"];function The({events:e=[]}){return s.jsxs("div",{className:"bg-white rounded-2xl border border-dark-blue/8 p-6",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx(QW,{size:16,className:"text-mid-blue"}),s.jsx("h3",{className:"text-dark-blue font-cal text-xl",children:"Engagement events"})]}),s.jsx("p",{className:"text-dark-blue/50 font-inter text-sm mb-5",children:"What visitors do on the site — clicks, scrolls, video plays, downloads"}),s.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-3",children:[e.map((t,n)=>s.jsxs("div",{className:`rounded-lg px-4 py-3 ${R3[Math.min(n,R3.length-1)]}`,children:[s.jsx("p",{className:"font-cal text-lg leading-tight",children:mr(t.count)}),s.jsx("p",{className:"font-inter text-xs truncate opacity-70",title:t.name,children:t.name})]},n)),e.length===0&&s.jsx("p",{className:"col-span-3 text-dark-blue/40 font-inter text-sm text-center py-4",children:"No event data yet — follows the site measurement tag going live."})]})]})}var uw,M3;
vendor: 11,279 bytes, lines 626-634
626function Ku(){if(M3)return uw;M3=1;var e=aa(),t=sa(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return uw=r,uw}var dw,I3;function Xk(){if(I3)return dw;I3=1;var e=Tr(),t=Ku(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(o,a){if(e(o))return!1;var l=typeof o;return l=="number"||l=="symbol"||l=="boolean"||o==null||t(o)?!0:r.test(o)||!n.test(o)||a!=null&&o in Object(a)}return dw=i,dw}var fw,D3;function y9(){if(D3)return fw;D3=1;var e=Hk(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var o=function(){var a=arguments,l=i?i.apply(this,a):a[0],c=o.cache;if(c.has(l))return c.get(l);var d=r.apply(this,a);return o.cache=c.set(l,d)||c,d};return o.cache=new(n.Cache||e),o}return n.Cache=e,fw=n,fw}var hw,L3;function Che(){if(L3)return hw;L3=1;var e=y9(),t=500;function n(r){var i=e(r,function(a){return o.size===t&&o.clear(),a}),o=i.cache;return i}return hw=n,hw}var pw,B3;function Rhe(){if(B3)return pw;B3=1;var e=Che(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var o=[];return i.charCodeAt(0)===46&&o.push(""),i.replace(t,function(a,l,c,d){o.push(c?d.replace(n,"$1"):l||a)}),o});return pw=r,pw}var mw,$3;function Qk(){if($3)return mw;$3=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,o=Array(i);++r<i;)o[r]=n(t[r],r,t);return o}return mw=e,mw}var gw,F3;function Mhe(){if(F3)return gw;F3=1;var e=sp(),t=Qk(),n=Tr(),r=Ku(),i=e?e.prototype:void 0,o=i?i.toString:void 0;function a(l){if(typeof l=="string")return l;if(n(l))return t(l,a)+"";if(r(l))return o?o.call(l):"";var c=l+"";return c=="0"&&1/l==-1/0?"-0":c}return gw=a,gw}var yw,q3;function v9(){if(q3)return yw;q3=1;var e=Mhe();function t(n){return n==null?"":e(n)}return yw=t,yw}var vw,z3;function x9(){if(z3)return vw;z3=1;var e=Tr(),t=Xk(),n=Rhe(),r=v9();function i(o,a){return e(o)?o:t(o,a)?[o]:n(r(o))}return vw=i,vw}var xw,U3;function Nv(){if(U3)return xw;U3=1;var e=Ku();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return xw=t,xw}var bw,H3;function Zk(){if(H3)return bw;H3=1;var e=x9(),t=Nv();function n(r,i){i=e(i,r);for(var o=0,a=i.length;r!=null&&o<a;)r=r[t(i[o++])];return o&&o==a?r:void 0}return bw=n,bw}var ww,V3;function b9(){if(V3)return ww;V3=1;var e=Zk();function t(n,r,i){var o=n==null?void 0:e(n,r);return o===void 0?i:o}return ww=t,ww}var Ihe=b9();const fi=Ct(Ihe);var _w,W3;function Dhe(){if(W3)return _w;W3=1;function e(t){return t==null}return _w=e,_w}var Lhe=Dhe();const ft=Ct(Lhe);var Sw,G3;function Bhe(){if(G3)return Sw;G3=1;var e=aa(),t=Tr(),n=sa(),r="[object String]";function i(o){return typeof o=="string"||!t(o)&&n(o)&&e(o)==r}return Sw=i,Sw}var $he=Bhe();const Al=Ct($he);var Fhe=zk();const ut=Ct(Fhe);var qhe=ys();const Yu=Ct(qhe);var jw={exports:{}},kt={};/**
627 * @license React
628 * react-is.production.min.js
629 *
630 * Copyright (c) Facebook, Inc. and its affiliates.
631 *
632 * This source code is licensed under the MIT license found in the
633 * LICENSE file in the root directory of this source tree.
634 */var K3;function zhe(){if(K3)return kt;K3=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function y(v){if(typeof v=="object"&&v!==null){var x=v.$$typeof;switch(x){case e:switch(v=v.type,v){case n:case i:case r:case d:case p:return v;default:switch(v=v&&v.$$typeof,v){case l:case a:case c:case m:case f:case o:return v;default:return x}}case t:return x}}}return kt.ContextConsumer=a,kt.ContextProvider=o,kt.Element=e,kt.ForwardRef=c,kt.Fragment=n,kt.Lazy=m,kt.Memo=f,kt.Portal=t,kt.Profiler=i,kt.StrictMode=r,kt.Suspense=d,kt.SuspenseList=p,kt.isAsyncMode=function(){return!1},kt.isConcurrentMode=function(){return!1},kt.isContextConsumer=function(v){return y(v)===a},kt.isContextProvider=function(v){return y(v)===o},kt.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},kt.isForwardRef=function(v){return y(v)===c},kt.isFragment=function(v){return y(v)===n},kt.isLazy=function(v){return y(v)===m},kt.isMemo=function(v){return y(v)===f},kt.isPortal=function(v){return y(v)===t},kt.isProfiler=function(v){return y(v)===i},kt.isStrictMode=function(v){return y(v)===r},kt.isSuspense=function(v){return y(v)===d},kt.isSuspenseList=function(v){return y(v)===p},kt.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===i||v===r||v===d||v===p||v===g||typeof v=="object"&&v!==null&&(v.$$typeof===m||v.$$typeof===f||v.$$typeof===o||v.$$typeof===a||v.$$typeof===c||v.$$typeof===b||v.getModuleId!==void 0)},kt.typeOf=y,kt}var Y3;function Uhe(){return Y3||(Y3=1,jw.exports=zhe()),jw.exports}var Hhe=Uhe(),Nw,X3;function w9(){if(X3)return Nw;X3=1;var e=aa(),t=sa(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return Nw=r,Nw}var kw,Q3;function Vhe(){if(Q3)return kw;Q3=1;var e=w9();function t(n){return e(n)&&n!=+n}return kw=t,kw}var Whe=Vhe();const cp=Ct(Whe);var Ghe=w9();const Khe=Ct(Ghe);var Bi=function(t){return t===0?0:t>0?1:-1},rl=function(t){return Al(t)&&t.indexOf("%")===t.length-1},Re=function(t){return Khe(t)&&!cp(t)},Yhe=function(t){return ft(t)},kn=function(t){return Re(t)||Al(t)},Xhe=0,up=function(t){var n=++Xhe;return"".concat(t||"").concat(n)},Tl=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Re(t)&&!Al(t))return r;var o;if(rl(t)){var a=t.indexOf("%");o=n*parseFloat(t.slice(0,a))/100}else o=+t;return cp(o)&&(o=r),i&&o>n&&(o=n),o},qa=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},Qhe=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},i=0;i<n;i++)if(!r[t[i]])r[t[i]]=!0;else return!0;return!1},Di=function(t,n){return Re(t)&&Re(n)?function(r){return t+r*(n-t)}:function(){return n}};function Wg(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):fi(r,t))===n})}var Zhe=function(t,n){return Re(t)&&Re(n)?t-n:Al(t)&&Al(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function Uc(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function HS(e){"@babel/helpers - typeof";return HS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},HS(e)}var Jhe=["viewBox","children"],epe=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Z3=["points","pathLength"],Ow={svg:Jhe,polygon:Z3,polyline:Z3},Jk=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onF
634ocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Gg=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(P.isValidElement(t)&&(r=t.props),!Yu(r))return null;var i={};return Object.keys(r).forEach(function(o){Jk.includes(o)&&(i[o]=n||function(a){return r[o](r,a)})}),i},tpe=function(t,n,r){return function(i){return t(n,r,i),null}},Kg=function(t,n,r){if(!Yu(t)||HS(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(o){var a=t[o];Jk.includes(o)&&typeof a=="function"&&(i||(i={}),i[o]=tpe(a,n,r))}),i},npe=["children"],rpe=["children"];function J3(e,t){if(e==null)return{};var n=ipe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ipe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function VS(e){"@babel/helpers - typeof";return VS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},VS(e)}var eM={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"}
vendor: 6,263 bytes, line 634
634,Wo=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},tM=null,Ew=null,eO=function e(t){if(t===tM&&Array.isArray(Ew))return Ew;var n=[];return P.Children.forEach(t,function(r){ft(r)||(Hhe.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),Ew=n,tM=t,n};function hi(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return Wo(i)}):r=[Wo(t)],eO(e).forEach(function(i){var o=fi(i,"type.displayName")||fi(i,"type.name");r.indexOf(o)!==-1&&n.push(i)}),n}function Ur(e,t){var n=hi(e,t);return n&&n[0]}var nM=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!Re(r)||r<=0||!Re(i)||i<=0)},ope=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],ape=function(t){return t&&t.type&&Al(t.type)&&ope.indexOf(t.type)>=0},spe=function(t){return t&&VS(t)==="object"&&"clipDot"in t},lpe=function(t,n,r,i){var o,a=(o=Ow==null?void 0:Ow[i])!==null&&o!==void 0?o:[];return n.startsWith("data-")||!ut(t)&&(i&&a.includes(n)||epe.includes(n))||r&&Jk.includes(n)},vt=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(P.isValidElement(t)&&(i=t.props),!Yu(i))return null;var o={};return Object.keys(i).forEach(function(a){var l;lpe((l=i)===null||l===void 0?void 0:l[a],a,n,r)&&(o[a]=i[a])}),o},WS=function e(t,n){if(t===n)return!0;var r=P.Children.count(t);if(r!==P.Children.count(n))return!1;if(r===0)return!0;if(r===1)return rM(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var o=t[i],a=n[i];if(Array.isArray(o)||Array.isArray(a)){if(!e(o,a))return!1}else if(!rM(o,a))return!1}return!0},rM=function(t,n){if(ft(t)&&ft(n))return!0;if(!ft(t)&&!ft(n)){var r=t.props||{},i=r.children,o=J3(r,npe),a=n.props||{},l=a.children,c=J3(a,rpe);return i&&l?Uc(o,c)&&WS(i,l):!i&&!l?Uc(o,c):!1}return!1},iM=function(t,n){var r=[],i={};return eO(t).forEach(function(o,a){if(ape(o))r.push(o);else if(o){var l=Wo(o.type),c=n[l]||{},d=c.handler,p=c.once;if(d&&(!p||!i[l])){var f=d(o,l,a);r.push(f),i[l]=!0}}}),r},cpe=function(t){var n=t&&t.type;return n&&eM[n]?eM[n]:null},upe=function(t,n){return eO(n).indexOf(t)},dpe=["children","width","height","viewBox","className","style","title","desc"];function GS(){return GS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GS.apply(this,arguments)}function fpe(e,t){if(e==null)return{};var n=hpe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hpe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function KS(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,o=e.className,a=e.style,l=e.title,c=e.desc,d=fpe(e,dpe),p=i||{width:n,height:r,x:0,y:0},f=xt("recharts-surface",o);return ue.createElement("svg",GS({},vt(d,!0,"svg"),{className:f,width:n,height:r,style:a,viewBox:"".concat(p.x," ").concat(p.y," ").concat(p.width," ").concat(p.height)}),ue.createElement("title",null,l),ue.createElement("desc",null,c),t)}var ppe=["children","className"];function YS(){return YS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YS.apply(this,arguments)}function mpe(e,t){if(e==null)return{};var n=gpe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gpe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var cn=ue.forwardRef(function(e,t){var n=e.children,r=e.className,i=mpe(e,ppe),o=xt("recharts-layer",r);return ue.createElement("g",YS({className:o},vt(i,!0),{ref:t}),n)}),Go=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o]},Pw,oM;function ype(){if(oM)return Pw;oM=1;function e(t,n,r){var i=-1,o=t.length;n<0&&(n=-n>o?0:o+n),r=r>o?o:r,r<0&&(r+=o),o=n>r?0:r-n>>>0,n>>>=0;for(var a=Array(o);++i<o;)a[i]=t[i+n];return a}return Pw=e,Pw}var Aw,aM;function vpe(){if(aM)return Aw;aM=1;var e=ype();function t(n,r,i){var o=n.length;return i=i===void 0?o:i,!r&&i>=o?n:e(n,r,i)}return Aw=t,Aw}var Tw,sM;function _9(){if(sM)return Tw;sM=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,o="\\ufe0e\\ufe0f",a="\\u200d",l=RegExp("["+a+e+i+o+"]");function c(d){return l.test(d)}return Tw=c,Tw}var Cw,lM;function xpe(){if(lM)return Cw;lM=1;function e(t){return t.split("")}return Cw=e,Cw}var Rw,cM;function bpe(){if(cM)return Rw;cM=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,o="\\ufe0e\\ufe0f",a="["+e+"]",l="["+i+"]",c="\\ud83c[\\udffb-\\udfff]",d="(?:"+l+"|"+c+")",p="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",g="\\u200d",b=d+"?",y="["+o+"]?",v="(?:"+g+"(?:"+[p,f,m].join("|")+")"+y+b+")*",x=y+b+v,_="(?:"+[p+l+"?",l,f,m,a].join("|")+")",j=RegExp(c+"(?="+c+")|"+_+x,"g");function S(N){return N.match(j)||[]}return Rw=S,Rw}var Mw,uM;
vendor: 5,990 bytes, line 634
634function wpe(){if(uM)return Mw;uM=1;var e=xpe(),t=_9(),n=bpe();function r(i){return t(i)?n(i):e(i)}return Mw=r,Mw}var Iw,dM;function _pe(){if(dM)return Iw;dM=1;var e=vpe(),t=_9(),n=wpe(),r=v9();function i(o){return function(a){a=r(a);var l=t(a)?n(a):void 0,c=l?l[0]:a.charAt(0),d=l?e(l,1).join(""):a.slice(1);return c[o]()+d}}return Iw=i,Iw}var Dw,fM;function Spe(){if(fM)return Dw;fM=1;var e=_pe(),t=e("toUpperCase");return Dw=t,Dw}var jpe=Spe();const kv=Ct(jpe);function Bt(e){return function(){return e}}const S9=Math.cos,Yg=Math.sin,Hi=Math.sqrt,Xg=Math.PI,Ov=2*Xg,XS=Math.PI,QS=2*XS,Qs=1e-6,Npe=QS-Qs;function j9(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function kpe(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return j9;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class Ope{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?j9:kpe(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,o,a){this._append`C${+t},${+n},${+r},${+i},${this._x1=+o},${this._y1=+a}`}arcTo(t,n,r,i,o){if(t=+t,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,l=this._y1,c=r-t,d=i-n,p=a-t,f=l-n,m=p*p+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(m>Qs)if(!(Math.abs(f*c-d*p)>Qs)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let g=r-a,b=i-l,y=c*c+d*d,v=g*g+b*b,x=Math.sqrt(y),_=Math.sqrt(m),j=o*Math.tan((XS-Math.acos((y+m-v)/(2*x*_)))/2),S=j/_,N=j/x;Math.abs(S-1)>Qs&&this._append`L${t+S*p},${n+S*f}`,this._append`A${o},${o},0,0,${+(f*g>p*b)},${this._x1=t+N*c},${this._y1=n+N*d}`}}arc(t,n,r,i,o,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(i),c=r*Math.sin(i),d=t+l,p=n+c,f=1^a,m=a?i-o:o-i;this._x1===null?this._append`M${d},${p}`:(Math.abs(this._x1-d)>Qs||Math.abs(this._y1-p)>Qs)&&this._append`L${d},${p}`,r&&(m<0&&(m=m%QS+QS),m>Npe?this._append`A${r},${r},0,1,${f},${t-l},${n-c}A${r},${r},0,1,${f},${this._x1=d},${this._y1=p}`:m>Qs&&this._append`A${r},${r},0,${+(m>=XS)},${f},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function tO(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new Ope(t)}function nO(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function N9(e){this._context=e}N9.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Ev(e){return new N9(e)}function k9(e){return e[0]}function O9(e){return e[1]}function E9(e,t){var n=Bt(!0),r=null,i=Ev,o=null,a=tO(l);e=typeof e=="function"?e:e===void 0?k9:Bt(e),t=typeof t=="function"?t:t===void 0?O9:Bt(t);function l(c){var d,p=(c=nO(c)).length,f,m=!1,g;for(r==null&&(o=i(g=a())),d=0;d<=p;++d)!(d<p&&n(f=c[d],d,c))===m&&((m=!m)?o.lineStart():o.lineEnd()),m&&o.point(+e(f,d,c),+t(f,d,c));if(g)return o=null,g+""||null}return l.x=function(c){return arguments.length?(e=typeof c=="function"?c:Bt(+c),l):e},l.y=function(c){return arguments.length?(t=typeof c=="function"?c:Bt(+c),l):t},l.defined=function(c){return arguments.length?(n=typeof c=="function"?c:Bt(!!c),l):n},l.curve=function(c){return arguments.length?(i=c,r!=null&&(o=i(r)),l):i},l.context=function(c){return arguments.length?(c==null?r=o=null:o=i(r=c),l):r},l}function Um(e,t,n){var r=null,i=Bt(!0),o=null,a=Ev,l=null,c=tO(d);e=typeof e=="function"?e:e===void 0?k9:Bt(+e),t=typeof t=="function"?t:Bt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?O9:Bt(+n);function d(f){var m,g,b,y=(f=nO(f)).length,v,x=!1,_,j=new Array(y),S=new Array(y);for(o==null&&(l=a(_=c())),m=0;m<=y;++m){if(!(m<y&&i(v=f[m],m,f))===x)if(x=!x)g=m,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),b=m-1;b>=g;--b)l.point(j[b],S[b]);l.lineEnd(),l.areaEnd()}x&&(j[m]=+e(v,m,f),S[m]=+t(v,m,f),l.point(r?+r(v,m,f):j[m],n?+n(v,m,f):S[m]))}if(_)return l=null,_+""||null}function p(){return E9().defined(i).curve(a).context(o)}return d.x=function(f){return arguments.length?(e=typeof f=="function"?f:Bt(+f),r=null,d):e},d.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Bt(+f),d):e},d.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Bt(+f),d):r},d.y=function(f){return arguments.length?(t=typeof f=="function"?f:Bt(+f),n=null,d):t},d.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Bt(+f),d):t},d.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Bt(+f),d):n},d.lineX0=d.lineY0=function(){return p().x(e).y(t)},d.lineY1=function(){return p().x(e).y(n)},d.lineX1=function(){return p().x(r).y(t)},d.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Bt(!!f),d):i},d.curve=function(f){return arguments.length?(a=f,o!=null&&(l=a(o)),d):a},d.context=function(f){return arguments.length?(f==null?o=l=null:l=a(o=f),d):o},d}class P9{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}
634point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function Epe(e){return new P9(e,!0)}function Ppe(e){return new P9(e,!1)}const rO={draw(e,t){const n=Hi(t/Xg);e.moveTo(n,0),e.arc(0,0,n,0,Ov)}},Ape={draw(e,t){const n=Hi(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},A9=Hi(1/3),Tpe=A9*2,Cpe={draw(e,t){const n=Hi(t/Tpe),r=n*A9;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Rpe={draw(e,t){const n=Hi(t),r=-n/2;e.rect(r,r,n,n)}},Mpe=.8908130915292852,T9=Yg(Xg/10)/Yg(7*Xg/10),Ipe=Yg(Ov/10)*T9,Dpe=-S9(Ov/10)*T9,Lpe={draw(e,t){const n=Hi(t*Mpe),r=Ipe*n,i=Dpe*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const a=Ov*o/5,l=S9(a),c=Yg(a);e.lineTo(c*n,-l*n),e.lineTo(l*r-c*i,c*r+l*i)}e.closePath()}},Lw=Hi(3),Bpe={draw(e,t){const n=-Hi(t/(Lw*3));e.moveTo(0,n*2),e.lineTo(-Lw*n,-n),e.lineTo(Lw*n,-n),e.closePath()}},ii=-.5,oi=Hi(3)/2,ZS=1/Hi(12),$pe=(ZS/2+1)*3,Fpe={draw(e,t){const n=Hi(t/$pe),r=n/2,i=n*ZS,o=r,a=n*ZS+n,l=-o,c=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(l,c),e.lineTo(ii*r-oi*i,oi*r+ii*i),e.lineTo(ii*o-oi*a,oi*o+ii*a),e.lineTo(ii*l-oi*c,oi*l+ii*c),e.lineTo(ii*r+oi*i,ii*i-oi*r),e.lineTo(ii*o+oi*a,ii*a-oi*o),e.lineTo(ii*l+oi*c,ii*c-oi*l),e.closePath()}};function qpe(e,t){let n=null,r=tO(i);e=typeof e=="function"?e:Bt(e||rO),t=typeof t=="function"?t:Bt(t===void 0?64:+t);function i(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:Bt(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:Bt(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function Qg(){}function Zg(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function C9(e){this._context=e}C9.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Zg(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Zg(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function zpe(e){return new C9(e)}function R9(e){this._context=e}R9.prototype={areaStart:Qg,areaEnd:Qg,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Zg(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Upe(e){return new R9(e)}function M9(e){this._context=e}M9.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Zg(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Hpe(e){return new M9(e)}function I9(e){this._context=e}I9.prototype={areaStart:Qg,areaEnd:Qg,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Vpe(e){return new I9(e)}function hM(e){return e<0?-1:1}
vendor: 4,121 bytes, line 634
634function pM(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),l=(o*i+a*r)/(r+i);return(hM(o)+hM(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(l))||0}function mM(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Bw(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,l=(o-r)/3;e._context.bezierCurveTo(r+l,i+l*t,o-l,a-l*n,o,a)}function Jg(e){this._context=e}Jg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Bw(this,this._t0,mM(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Bw(this,mM(this,n=pM(this,e,t)),n);break;default:Bw(this,this._t0,n=pM(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function D9(e){this._context=new L9(e)}(D9.prototype=Object.create(Jg.prototype)).point=function(e,t){Jg.prototype.point.call(this,t,e)};function L9(e){this._context=e}L9.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function Wpe(e){return new Jg(e)}function Gpe(e){return new D9(e)}function B9(e){this._context=e}B9.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=gM(e),i=gM(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function gM(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function Kpe(e){return new B9(e)}function Pv(e,t){this._context=e,this._t=t}Pv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function Ype(e){return new Pv(e,.5)}function Xpe(e){return new Pv(e,0)}function Qpe(e){return new Pv(e,1)}function du(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,l=o.length;n<a;++n)for(i=o,o=e[t[n]],r=0;r<l;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function JS(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Zpe(e,t){return e[t]}function Jpe(e){const t=[];return t.key=e,t}function eme(){var e=Bt([]),t=JS,n=du,r=Zpe;function i(o){var a=Array.from(e.apply(this,arguments),Jpe),l,c=a.length,d=-1,p;for(const f of o)for(l=0,++d;l<c;++l)(a[l][d]=[0,+r(f,a[l].key,d,o)]).data=f;
vendor: 54,068 bytes, lines 634-644
634for(l=0,p=nO(t(a));l<c;++l)a[p[l]].index=l;return n(a,p),a}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:Bt(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:Bt(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?JS:typeof o=="function"?o:Bt(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??du,i):n},i}function tme(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,a;i<o;++i){for(a=n=0;n<r;++n)a+=e[n][i][1]||0;if(a)for(n=0;n<r;++n)e[n][i][1]/=a}du(e,t)}}function nme(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var a=0,l=0;a<i;++a)l+=e[a][n][1]||0;r[n][1]+=r[n][0]=-l/2}du(e,t)}}function rme(e,t){if(!(!((a=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,a;r<o;++r){for(var l=0,c=0,d=0;l<a;++l){for(var p=e[t[l]],f=p[r][1]||0,m=p[r-1][1]||0,g=(f-m)/2,b=0;b<l;++b){var y=e[t[b]],v=y[r][1]||0,x=y[r-1][1]||0;g+=v-x}c+=f,d+=g*f}i[r-1][1]+=i[r-1][0]=n,c&&(n-=d/c)}i[r-1][1]+=i[r-1][0]=n,du(e,t)}}function ih(e){"@babel/helpers - typeof";return ih=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ih(e)}var ime=["type","size","sizeType"];function ej(){return ej=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ej.apply(this,arguments)}function yM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yM(Object(n),!0).forEach(function(r){ome(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ome(e,t,n){return t=ame(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ame(e){var t=sme(e,"string");return ih(t)=="symbol"?t:t+""}function sme(e,t){if(ih(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ih(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lme(e,t){if(e==null)return{};var n=cme(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cme(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var $9={symbolCircle:rO,symbolCross:Ape,symbolDiamond:Cpe,symbolSquare:Rpe,symbolStar:Lpe,symbolTriangle:Bpe,symbolWye:Fpe},ume=Math.PI/180,dme=function(t){var n="symbol".concat(kv(t));return $9[n]||rO},fme=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*ume;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},hme=function(t,n){$9["symbol".concat(kv(t))]=n},iO=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,o=i===void 0?64:i,a=t.sizeType,l=a===void 0?"area":a,c=lme(t,ime),d=vM(vM({},c),{},{type:r,size:o,sizeType:l}),p=function(){var v=dme(r),x=qpe().type(v).size(fme(o,l,r));return x()},f=d.className,m=d.cx,g=d.cy,b=vt(d,!0);return m===+m&&g===+g&&o===+o?ue.createElement("path",ej({},b,{className:xt("recharts-symbols",f),transform:"translate(".concat(m,", ").concat(g,")"),d:p()})):null};iO.registerSymbol=hme;function fu(e){"@babel/helpers - typeof";return fu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fu(e)}function tj(){return tj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tj.apply(this,arguments)}function xM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function pme(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xM(Object(n),!0).forEach(function(r){oh(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mme(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gme(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,q9(r.key),r)}}function yme(e,t,n){return t&&gme(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vme(e,t,n){return t=ey(t),xme(e,F9()?Reflect.construct(t,n||[],ey(e).constructor):t.apply(e,n))}function xme(e,t){if(t&&(fu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bme(e)}function bme(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(F9=function(){return!!e})()}function ey(e){return ey=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ey(e)}function wme(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nj(e,t)}function nj(e,t){return nj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},nj(e,t)}function oh(e,t,n){return t=q9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q9(e){var t=_me(e,"string");return fu(t)=="symbol"?t:t+""}function _me(e,t){if(fu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ai=32,oO=(function(e){function t(){return mme(this,t),vme(this,t,arguments)}return wme(t,e),yme(t,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,o=ai/2,a=ai/6,l=ai/3,c=r.inactive?i:r.color;if(r.type==="plainline")return ue.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:o,x2:ai,y2:o,className:"recharts-legend-icon"});if(r.type==="line")return ue.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(o,"h").concat(l,`
635            A`).concat(a,",").concat(a,",0,1,1,").concat(2*l,",").concat(o,`
636            H`).concat(ai,"M").concat(2*l,",").concat(o,`
637            A`).concat(a,",").concat(a,",0,1,1,").concat(l,",").concat(o),className:"recharts-legend-icon"});if(r.type==="rect")return ue.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(ai/8,"h").concat(ai,"v").concat(ai*3/4,"h").concat(-ai,"z"),className:"recharts-legend-icon"});if(ue.isValidElement(r.legendIcon)){var d=pme({},r);return delete d.legendIcon,ue.cloneElement(r.legendIcon,d)}return ue.createElement(iO,{fill:c,cx:o,cy:o,size:ai,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,i=this.props,o=i.payload,a=i.iconSize,l=i.layout,c=i.formatter,d=i.inactiveColor,p={x:0,y:0,width:ai,height:ai},f={display:l==="horizontal"?"inline-block":"block",marginRight:10},m={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(g,b){var y=g.formatter||c,v=xt(oh(oh({"recharts-legend-item":!0},"legend-item-".concat(b),!0),"inactive",g.inactive));if(g.type==="none")return null;var x=ut(g.value)?null:g.value;Go(!ut(g.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var _=g.inactive?d:g.color;return ue.createElement("li",tj({className:v,style:f,key:"legend-item-".concat(b)},Kg(r.props,g,b)),ue.createElement(KS,{width:a,height:a,viewBox:p,style:m},r.renderIcon(g)),ue.createElement("span",{className:"recharts-legend-item-text",style:{color:_}},y?y(x,g,b):x))})}},{key:"render",value:function(){var r=this.props,i=r.payload,o=r.layout,a=r.align;if(!i||!i.length)return null;var l={padding:0,margin:0,textAlign:o==="horizontal"?a:"left"};return ue.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])})(P.PureComponent);oh(oO,"displayName","Legend");oh(oO,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var $w,bM;function Sme(){if(bM)return $w;bM=1;var e=i9(),t=Yk(),n=1,r=2;function i(o,a,l,c){var d=l.length,p=d,f=!c;if(o==null)return!p;for(o=Object(o);d--;){var m=l[d];if(f&&m[2]?m[1]!==o[m[0]]:!(m[0]in o))return!1}for(;++d<p;){m=l[d];var g=m[0],b=o[g],y=m[1];if(f&&m[2]){if(b===void 0&&!(g in o))return!1}else{var v=new e;if(c)var x=c(b,y,g,o,a,v);if(!(x===void 0?t(y,b,n|r,c,v):x))return!1}}return!0}return $w=i,$w}var Fw,wM;function z9(){if(wM)return Fw;wM=1;var e=ys();function t(n){return n===n&&!e(n)}return Fw=t,Fw}var qw,_M;function jme(){if(_M)return qw;_M=1;var e=z9(),t=jv();function n(r){for(var i=t(r),o=i.length;o--;){var a=i[o],l=r[a];i[o]=[a,l,e(l)]}return i}return qw=n,qw}var zw,SM;function U9(){if(SM)return zw;SM=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return zw=e,zw}var Uw,jM;function Nme(){if(jM)return Uw;jM=1;var e=Sme(),t=jme(),n=U9();function r(i){var o=t(i);return o.length==1&&o[0][2]?n(o[0][0],o[0][1]):function(a){return a===i||e(a,i,o)}}return Uw=r,Uw}var Hw,NM;function kme(){if(NM)return Hw;NM=1;function e(t,n){return t!=null&&n in Object(t)}return Hw=e,Hw}var Vw,kM;function Ome(){if(kM)return Vw;kM=1;var e=x9(),t=Wk(),n=Tr(),r=Gk(),i=Kk(),o=Nv();function a(l,c,d){c=e(c,l);for(var p=-1,f=c.length,m=!1;++p<f;){var g=o(c[p]);if(!(m=l!=null&&d(l,g)))break;l=l[g]}return m||++p!=f?m:(f=l==null?0:l.length,!!f&&i(f)&&r(g,f)&&(n(l)||t(l)))}return Vw=a,Vw}var Ww,OM;function Eme(){if(OM)return Ww;OM=1;var e=kme(),t=Ome();function n(r,i){return r!=null&&t(r,i,e)}return Ww=n,Ww}var Gw,EM;function Pme(){if(EM)return Gw;EM=1;var e=Yk(),t=b9(),n=Eme(),r=Xk(),i=z9(),o=U9(),a=Nv(),l=1,c=2;function d(p,f){return r(p)&&i(f)?o(a(p),f):function(m){var g=t(m,p);return g===void 0&&g===f?n(m,p):e(f,g,l|c)}}return Gw=d,Gw}var Kw,PM;function Xu(){if(PM)return Kw;PM=1;function e(t){return t}return Kw=e,Kw}var Yw,AM;function Ame(){if(AM)return Yw;AM=1;function e(t){return function(n){return n==null?void 0:n[t]}}return Yw=e,Yw}var Xw,TM;function Tme(){if(TM)return Xw;TM=1;var e=Zk();function t(n){return function(r){return e(r,n)}}return Xw=t,Xw}var Qw,CM;function Cme(){if(CM)return Qw;CM=1;var e=Ame(),t=Tme(),n=Xk(),r=Nv();function i(o){return n(o)?e(r(o)):t(o)}return Qw=i,Qw}var Zw,RM;function vs(){if(RM)return Zw;RM=1;var e=Nme(),t=Pme(),n=Xu(),r=Tr(),i=Cme();function o(a){return typeof a=="function"?a:a==null?n:typeof a=="object"?r(a)?t(a[0],a[1]):e(a):i(a)}return Zw=o,Zw}var Jw,MM;function H9(){if(MM)return Jw;MM=1;function e(t,n,r,i){for(var o=t.length,a=r+(i?1:-1);i?a--:++a<o;)if(n(t[a],a,t))return a;return-1}return Jw=e,Jw}var e2,IM;function Rme(){if(IM)return e2;IM=1;function e(t){return t!==t}return e2=e,e2}var t2,DM;function Mme(){if(DM)return t2;DM=1;function e(t,n,r){for(var i=r-1,o=t.length;++i<o;)if(t[i]===n)return i;return-1}return t2=e,t2}var n2,LM;function Ime(){if(LM)return n2;LM=1;var e=H9(),t=Rme(),n=Mme();function r(i,o,a){return o===o?n(i,o,a):e(i,t,a)}return n2=r,n2}var r2,BM;function Dme(){if(BM)return r2;BM=1;var e=Ime();function t(n,r){var i=n==null?0:n.length;return!!i&&e(n,r,0)>-1}return r2=t,r2}var i2,$M;function Lme(){if($M)return i2;$M=1;function e(t,n,r){for(var i=-1,o=t==null?0:t.length;++i<o;)if(r(n,t[i]))return!0;return!1}return i2=e,i2}var o2,FM;function Bme(){if(FM)return o2;FM=1;function e(){}return o2=e,o2}var a2,qM;function $me(){if(qM)return a2;qM=1;var e=p9(),t=Bme(),n=Vk(),r=1/0,i=e&&1/n(new e([,-0]))[1]==r?function(o){return new e(o)}:t;return a2=i,a2}var s2,zM;function Fme(){if(zM)return s2;zM=1;var e=o9(),t=Dme(),n=Lme(),r=s9(),i=$me(),o=Vk(),a=200;function l(c,d,p){var f=-1,m=t,g=c.length,b=!0,y=[],v=y;if(p)b=!1,m=n;else if(g>=a){var x=d?null:i(c);if(x)return o(x);b=!1,m=r,v=new e}else v=d?[]:y;e:for(;++f<g;){var _=c[f],j=d?d(_):_;if(_=p||_!==0?_:0,b&&j===j){for(var S=v.length;S--;)if(v[S]===j)continue e;d&&v.push(j),y.push(_)}else m(v,j,p)||(v!==y&&v.push(j),y.push(_))}return y}return s2=l,s2}var l2,UM;function qme(){if(UM)return l2;UM=1;var e=vs(),t=Fme();function n(r,i){return r&&r.length?t(r,e(i,2)):[]}return l2=n,l2}var zme=qme();const HM=Ct(zme);function V9(e,t,n){return t===!0?HM(e,n):ut(t)?HM(e,t):e}function hu(e){"@babel/helpers - typeof";return hu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hu(e)}var Ume=["ref"];function VM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Do(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VM(Object(n),!0).forEach(function(r){Av(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hme(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,G9(r.key),r)}}function Vme(e,t,n){return t&&WM(e.prototype,t),n&&WM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wme(e,t,n){return t=ty(t),Gme(e,W9()?Reflect.construct(t,n||[],ty(e).constructor):t.apply(e,n))}function Gme(e,t){if(t&&(hu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Kme(e)}function Kme(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function W9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(W9=function(){return!!e})()}function ty(e){return ty=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ty(e)}function Yme(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rj(e,t)}function rj(e,t){return rj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},rj(e,t)}function Av(e,t,n){return t=G9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G9(e){var t=Xme(e,"string");return hu(t)=="symbol"?t:t+""}function Xme(e,t){if(hu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Qme(e,t){if(e==null)return{};var n=Zme(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Zme(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Jme(e){return e.value}function ege(e,t){if(ue.isValidElement(e))return ue.cloneElement(e,t);if(typeof e=="function")return ue.createElement(e,t);t.ref;var n=Qme(t,Ume);return ue.createElement(oO,n)}var GM=1,Hc=(function(e){function t(){var n;Hme(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=Wme(this,t,[].concat(i)),Av(n,"lastBoundingBox",{width:-1,height:-1}),n}return Yme(t,e),Vme(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>GM||Math.abs(i.height-this.lastBoundingBox.height)>GM)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,r&&r(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Do({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,o=i.layout,a=i.align,l=i.verticalAlign,c=i.margin,d=i.chartWidth,p=i.chartHeight,f,m;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(a==="center"&&o==="vertical"){var g=this.getBBoxSnapshot();f={left:((d||0)-g.width)/2}}else f=a==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(l==="middle"){var b=this.getBBoxSnapshot();m={top:((p||0)-b.height)/2}}else m=l==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return Do(Do({},f),m)}},{key:"render",value:function(){var r=this,i=this.props,o=i.content,a=i.width,l=i.height,c=i.wrapperStyle,d=i.payloadUniqBy,p=i.payload,f=Do(Do({position:"absolute",width:a||"auto",height:l||"auto"},this.getDefaultPosition(c)),c);return ue.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(g){r.wrapperNode=g}},ege(o,Do(Do({},this.props),{},{payload:V9(p,d,Jme)})))}}],[{key:"getWithHeight",value:function(r,i){var o=Do(Do({},this.defaultProps),r.props),a=o.layout;return a==="vertical"&&Re(r.props.height)?{height:r.props.height}:a==="horizontal"?{width:r.props.width||i}:null}}])})(P.PureComponent);Av(Hc,"displayName","Legend");Av(Hc,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var c2,KM;function tge(){if(KM)return c2;KM=1;var e=sp(),t=Wk(),n=Tr(),r=e?e.isConcatSpreadable:void 0;function i(o){return n(o)||t(o)||!!(r&&o&&o[r])}return c2=i,c2}var u2,YM;function K9(){if(YM)return u2;YM=1;var e=c9(),t=tge();function n(r,i,o,a,l){var c=-1,d=r.length;for(o||(o=t),l||(l=[]);++c<d;){var p=r[c];i>0&&o(p)?i>1?n(p,i-1,o,a,l):e(l,p):a||(l[l.length]=p)}return l}return u2=n,u2}var d2,XM;function nge(){if(XM)return d2;XM=1;function e(t){return function(n,r,i){for(var o=-1,a=Object(n),l=i(n),c=l.length;c--;){var d=l[t?c:++o];if(r(a[d],d,a)===!1)break}return n}}return d2=e,d2}var f2,QM;function rge(){if(QM)return f2;QM=1;var e=nge(),t=e();return f2=t,f2}var h2,ZM;function Y9(){if(ZM)return h2;ZM=1;var e=rge(),t=jv();function n(r,i){return r&&e(r,i,t)}return h2=n,h2}var p2,JM;function ige(){if(JM)return p2;JM=1;var e=lp();function t(n,r){return function(i,o){if(i==null)return i;if(!e(i))return n(i,o);for(var a=i.length,l=r?a:-1,c=Object(i);(r?l--:++l<a)&&o(c[l],l,c)!==!1;);return i}}return p2=t,p2}var m2,e5;function aO(){if(e5)return m2;e5=1;var e=Y9(),t=ige(),n=t(e);return m2=n,m2}var g2,t5;function X9(){if(t5)return g2;t5=1;var e=aO(),t=lp();function n(r,i){var o=-1,a=t(r)?Array(r.length):[];return e(r,function(l,c,d){a[++o]=i(l,c,d)}),a}return g2=n,g2}var y2,n5;function oge(){if(n5)return y2;n5=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return y2=e,y2}var v2,r5;function age(){if(r5)return v2;r5=1;var e=Ku();function t(n,r){if(n!==r){var i=n!==void 0,o=n===null,a=n===n,l=e(n),c=r!==void 0,d=r===null,p=r===r,f=e(r);if(!d&&!f&&!l&&n>r||l&&c&&p&&!d&&!f||o&&c&&p||!i&&p||!a)return 1;if(!o&&!l&&!f&&n<r||f&&i&&a&&!o&&!l||d&&i&&a||!c&&a||!p)return-1}return 0}return v2=t,v2}var x2,i5;function sge(){if(i5)return x2;i5=1;var e=age();function t(n,r,i){for(var o=-1,a=n.criteria,l=r.criteria,c=a.length,d=i.length;++o<c;){var p=e(a[o],l[o]);if(p){if(o>=d)return p;var f=i[o];return p*(f=="desc"?-1:1)}}return n.index-r.index}return x2=t,x2}var b2,o5;function lge(){if(o5)return b2;o5=1;var e=Qk(),t=Zk(),n=vs(),r=X9(),i=oge(),o=d9(),a=sge(),l=Xu(),c=Tr();function d(p,f,m){f.length?f=e(f,function(y){return c(y)?function(v){return t(v,y.length===1?y[0]:y)}:y}):f=[l];var g=-1;f=e(f,o(n));var b=r(p,function(y,v,x){var _=e(f,function(j){return j(y)});return{criteria:_,index:++g,value:y}});return i(b,function(y,v){return a(y,v,m)})}return b2=d,b2}var w2,a5;function cge(){if(a5)return w2;a5=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return w2=e,w2}var _2,s5;function uge(){if(s5)return _2;s5=1;var e=cge(),t=Math.max;function n(r,i,o){return i=t(i===void 0?r.length-1:i,0),function(){for(var a=arguments,l=-1,c=t(a.length-i,0),d=Array(c);++l<c;)d[l]=a[i+l];l=-1;for(var p=Array(i+1);++l<i;)p[l]=a[l];return p[i]=o(d),e(r,this,p)}}return _2=n,_2}var S2,l5;function dge(){if(l5)return S2;l5=1;function e(t){return function(){return t}}return S2=e,S2}var j2,c5;function Q9(){if(c5)return j2;c5=1;var e=Ll(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return j2=t,j2}var N2,u5;function fge(){if(u5)return N2;u5=1;var e=dge(),t=Q9(),n=Xu(),r=t?function(i,o){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(o),writable:!0})}:n;return N2=r,N2}var k2,d5;function hge(){if(d5)return k2;d5=1;var e=800,t=16,n=Date.now;function r(i){var o=0,a=0;return function(){var l=n(),c=t-(l-a);if(a=l,c>0){if(++o>=e)return arguments[0]}else o=0;return i.apply(void 0,arguments)}}return k2=r,k2}var O2,f5;function pge(){if(f5)return O2;f5=1;var e=fge(),t=hge(),n=t(e);return O2=n,O2}var E2,h5;function mge(){if(h5)return E2;h5=1;var e=Xu(),t=uge(),n=pge();function r(i,o){return n(t(i,o,e),i+"")}return E2=r,E2}var P2,p5;function Tv(){if(p5)return P2;p5=1;var e=qk(),t=lp(),n=Gk(),r=ys();function i(o,a,l){if(!r(l))return!1;var c=typeof a;return(c=="number"?t(l)&&n(a,l.length):c=="string"&&a in l)?e(l[a],o):!1}return P2=i,P2}var A2,m5;function gge(){if(m5)return A2;m5=1;var e=K9(),t=lge(),n=mge(),r=Tv(),i=n(function(o,a){if(o==null)return[];var l=a.length;return l>1&&r(o,a[0],a[1])?a=[]:l>2&&r(a[0],a[1],a[2])&&(a=[a[0]]),t(o,e(a,1),[])});return A2=i,A2}var yge=gge();const sO=Ct(yge);function ah(e){"@babel/helpers - typeof";return ah=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ah(e)}function ij(){return ij=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ij.apply(this,arguments)}function vge(e,t){return _ge(e)||wge(e,t)||bge(e,t)||xge()}function xge(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
638In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bge(e,t){if(e){if(typeof e=="string")return g5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g5(e,t)}}function g5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wge(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(p){d=!0,i=p}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw i}}return l}}function _ge(e){if(Array.isArray(e))return e}function y5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function T2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?y5(Object(n),!0).forEach(function(r){Sge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Sge(e,t,n){return t=jge(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jge(e){var t=Nge(e,"string");return ah(t)=="symbol"?t:t+""}function Nge(e,t){if(ah(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ah(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kge(e){return Array.isArray(e)&&kn(e[0])&&kn(e[1])?e.join(" ~ "):e}var Oge=function(t){var n=t.separator,r=n===void 0?" : ":n,i=t.contentStyle,o=i===void 0?{}:i,a=t.itemStyle,l=a===void 0?{}:a,c=t.labelStyle,d=c===void 0?{}:c,p=t.payload,f=t.formatter,m=t.itemSorter,g=t.wrapperClassName,b=t.labelClassName,y=t.label,v=t.labelFormatter,x=t.accessibilityLayer,_=x===void 0?!1:x,j=function(){if(p&&p.length){var R={padding:0,margin:0},B=(m?sO(p,m):p).map(function($,z){if($.type==="none")return null;var H=T2({display:"block",paddingTop:4,paddingBottom:4,color:$.color||"#000"},l),V=$.formatter||f||kge,Y=$.value,W=$.name,q=Y,D=W;if(V&&q!=null&&D!=null){var F=V(Y,W,$,z,p);if(Array.isArray(F)){var K=vge(F,2);q=K[0],D=K[1]}else q=F}return ue.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(z),style:H},kn(D)?ue.createElement("span",{className:"recharts-tooltip-item-name"},D):null,kn(D)?ue.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,ue.createElement("span",{className:"recharts-tooltip-item-value"},q),ue.createElement("span",{className:"recharts-tooltip-item-unit"},$.unit||""))});return ue.createElement("ul",{className:"recharts-tooltip-item-list",style:R},B)}return null},S=T2({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),N=T2({margin:0},d),O=!ft(y),E=O?y:"",A=xt("recharts-default-tooltip",g),I=xt("recharts-tooltip-label",b);O&&v&&p!==void 0&&p!==null&&(E=v(y,p));var M=_?{role:"status","aria-live":"assertive"}:{};return ue.createElement("div",ij({className:A,style:S},M),ue.createElement("p",{className:I,style:N},ue.isValidElement(E)?E:"".concat(E)),j())};function sh(e){"@babel/helpers - typeof";return sh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sh(e)}function Hm(e,t,n){return t=Ege(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ege(e){var t=Pge(e,"string");return sh(t)=="symbol"?t:t+""}function Pge(e,t){if(sh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tf="recharts-tooltip-wrapper",Age={visibility:"hidden"};function Tge(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return xt(tf,Hm(Hm(Hm(Hm({},"".concat(tf,"-right"),Re(n)&&t&&Re(t.x)&&n>=t.x),"".concat(tf,"-left"),Re(n)&&t&&Re(t.x)&&n<t.x),"".concat(tf,"-bottom"),Re(r)&&t&&Re(t.y)&&r>=t.y),"".concat(tf,"-top"),Re(r)&&t&&Re(t.y)&&r<t.y))}function v5(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,o=e.position,a=e.reverseDirection,l=e.tooltipDimension,c=e.viewBox,d=e.viewBoxDimension;if(o&&Re(o[r]))return o[r];var p=n[r]-l-i,f=n[r]+i;if(t[r])return a[r]?p:f;if(a[r]){var m=p,g=c[r];return m<g?Math.max(f,c[r]):Math.max(p,c[r])}var b=f+l,y=c[r]+d;return b>y?Math.max(p,c[r]):Math.max(f,c[r])}function Cge(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function Rge(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,o=e.reverseDirection,a=e.tooltipBox,l=e.useTranslate3d,c=e.viewBox,d,p,f;return a.height>0&&a.width>0&&n?(p=v5({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.width,viewBox:c,viewBoxDimension:c.width}),f=v5({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.height,viewBox:c,viewBoxDimension:c.height}),d=Cge({translateX:p,translateY:f,useTranslate3d:l})):d=Age,{cssProperties:d,cssClasses:Tge({translateX:p,translateY:f,coordinate:n})}}function pu(e){"@babel/helpers - typeof";return pu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pu(e)}function x5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function b5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?x5(Object(n),!0).forEach(function(r){aj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ige(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,J9(r.key),r)}}function Dge(e,t,n){return t&&Ige(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lge(e,t,n){return t=ny(t),Bge(e,Z9()?Reflect.construct(t,n||[],ny(e).constructor):t.apply(e,n))}function Bge(e,t){if(t&&(pu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $ge(e)}function $ge(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Z9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Z9=function(){return!!e})()}function ny(e){return ny=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ny(e)}function Fge(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oj(e,t)}function oj(e,t){return oj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},oj(e,t)}function aj(e,t,n){return t=J9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J9(e){var t=qge(e,"string");return pu(t)=="symbol"?t:t+""}function qge(e,t){if(pu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(pu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var w5=1,zge=(function(e){function t(){var n;Mge(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=Lge(this,t,[].concat(i)),aj(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),aj(n,"handleKeyDown",function(a){if(a.key==="Escape"){var l,c,d,p;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(l=(c=n.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&l!==void 0?l:0,y:(d=(p=n.props.coordinate)===null||p===void 0?void 0:p.y)!==null&&d!==void 0?d:0}})}}),n}return Fge(t,e),Dge(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>w5||Math.abs(r.height-this.state.lastBoundingBox.height)>w5)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,i=this.props,o=i.active,a=i.allowEscapeViewBox,l=i.animationDuration,c=i.animationEasing,d=i.children,p=i.coordinate,f=i.hasPayload,m=i.isAnimationActive,g=i.offset,b=i.position,y=i.reverseDirection,v=i.useTranslate3d,x=i.viewBox,_=i.wrapperStyle,j=Rge({allowEscapeViewBox:a,coordinate:p,offsetTopLeft:g,position:b,reverseDirection:y,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:x}),S=j.cssClasses,N=j.cssProperties,O=b5(b5({transition:m&&o?"transform ".concat(l,"ms ").concat(c):void 0},N),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&f?"visible":"hidden",position:"absolute",top:0,left:0},_);return ue.createElement("div",{tabIndex:-1,className:S,style:O,ref:function(A){r.wrapperNode=A}},d)}}])})(P.PureComponent),Uge=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Qu={isSsr:Uge()};function mu(e){"@babel/helpers - typeof";return mu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mu(e)}function _5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function S5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_5(Object(n),!0).forEach(function(r){lO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vge(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tz(r.key),r)}}function Wge(e,t,n){return t&&Vge(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gge(e,t,n){return t=ry(t),Kge(e,ez()?Reflect.construct(t,n||[],ry(e).constructor):t.apply(e,n))}function Kge(e,t){if(t&&(mu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yge(e)}function Yge(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ez(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ez=function(){return!!e})()}function ry(e){return ry=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ry(e)}function Xge(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sj(e,t)}function sj(e,t){return sj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},sj(e,t)}function lO(e,t,n){return t=tz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tz(e){var t=Qge(e,"string");return mu(t)=="symbol"?t:t+""}function Qge(e,t){if(mu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(mu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Zge(e){return e.dataKey}function Jge(e,t){return ue.isValidElement(e)?ue.cloneElement(e,t):typeof e=="function"?ue.createElement(e,t):ue.createElement(Oge,t)}var Ji=(function(e){function t(){return Hge(this,t),Gge(this,t,arguments)}return Xge(t,e),Wge(t,[{key:"render",value:function(){var r=this,i=this.props,o=i.active,a=i.allowEscapeViewBox,l=i.animationDuration,c=i.animationEasing,d=i.content,p=i.coordinate,f=i.filterNull,m=i.isAnimationActive,g=i.offset,b=i.payload,y=i.payloadUniqBy,v=i.position,x=i.reverseDirection,_=i.useTranslate3d,j=i.viewBox,S=i.wrapperStyle,N=b??[];f&&N.length&&(N=V9(b.filter(function(E){return E.value!=null&&(E.hide!==!0||r.props.includeHidden)}),y,Zge));var O=N.length>0;return ue.createElement(zge,{allowEscapeViewBox:a,animationDuration:l,animationEasing:c,isAnimationActive:m,active:o,coordinate:p,hasPayload:O,offset:g,position:v,reverseDirection:x,useTranslate3d:_,viewBox:j,wrapperStyle:S},Jge(d,S5(S5({},this.props),{},{payload:N})))}}])})(P.PureComponent);lO(Ji,"displayName","Tooltip");lO(Ji,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Qu.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var C2,j5;function eye(){if(j5)return C2;j5=1;var e=bo(),t=function(){return e.Date.now()};return C2=t,C2}var R2,N5;function tye(){if(N5)return R2;N5=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return R2=t,R2}var M2,k5;function nye(){if(k5)return M2;k5=1;var e=tye(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return M2=n,M2}var I2,O5;function nz(){if(O5)return I2;O5=1;var e=nye(),t=ys(),n=Ku(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,a=/^0o[0-7]+$/i,l=parseInt;function c(d){if(typeof d=="number")return d;if(n(d))return r;if(t(d)){var p=typeof d.valueOf=="function"?d.valueOf():d;d=t(p)?p+"":p}if(typeof d!="string")return d===0?d:+d;d=e(d);var f=o.test(d);return f||a.test(d)?l(d.slice(2),f?2:8):i.test(d)?r:+d}return I2=c,I2}var D2,E5;function rye(){if(E5)return D2;E5=1;var e=ys(),t=eye(),n=nz(),r="Expected a function",i=Math.max,o=Math.min;function a(l,c,d){var p,f,m,g,b,y,v=0,x=!1,_=!1,j=!0;if(typeof l!="function")throw new TypeError(r);c=n(c)||0,e(d)&&(x=!!d.leading,_="maxWait"in d,m=_?i(n(d.maxWait)||0,c):m,j="trailing"in d?!!d.trailing:j);function S(B){var $=p,z=f;return p=f=void 0,v=B,g=l.apply(z,$),g}function N(B){return v=B,b=setTimeout(A,c),x?S(B):g}function O(B){var $=B-y,z=B-v,H=c-$;return _?o(H,m-z):H}function E(B){var $=B-y,z=B-v;return y===void 0||$>=c||$<0||_&&z>=m}function A(){var B=t();if(E(B))return I(B);b=setTimeout(A,O(B))}function I(B){return b=void 0,j&&p?S(B):(p=f=void 0,g)}function M(){b!==void 0&&clearTimeout(b),v=0,p=y=f=b=void 0}function C(){return b===void 0?g:I(t())}function R(){var B=t(),$=E(B);if(p=arguments,f=this,y=B,$){if(b===void 0)return N(y);if(_)return clearTimeout(b),b=setTimeout(A,c),S(y)}return b===void 0&&(b=setTimeout(A,c)),g}return R.cancel=M,R.flush=C,R}return D2=a,D2}var L2,P5;function iye(){if(P5)return L2;P5=1;var e=rye(),t=ys(),n="Expected a function";function r(i,o,a){var l=!0,c=!0;if(typeof i!="function")throw new TypeError(n);return t(a)&&(l="leading"in a?!!a.leading:l,c="trailing"in a?!!a.trailing:c),e(i,o,{leading:l,maxWait:o,trailing:c})}return L2=r,L2}var oye=iye();const rz=Ct(oye);function lh(e){"@babel/helpers - typeof";return lh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lh(e)}function A5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Vm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?A5(Object(n),!0).forEach(function(r){aye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aye(e,t,n){return t=sye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sye(e){var t=lye(e,"string");return lh(t)=="symbol"?t:t+""}function lye(e,t){if(lh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(lh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cye(e,t){return hye(e)||fye(e,t)||dye(e,t)||uye()}function uye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
639In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dye(e,t){if(e){if(typeof e=="string")return T5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T5(e,t)}}function T5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fye(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(p){d=!0,i=p}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw i}}return l}}function hye(e){if(Array.isArray(e))return e}var pye=P.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,i=r===void 0?{width:-1,height:-1}:r,o=e.width,a=o===void 0?"100%":o,l=e.height,c=l===void 0?"100%":l,d=e.minWidth,p=d===void 0?0:d,f=e.minHeight,m=e.maxHeight,g=e.children,b=e.debounce,y=b===void 0?0:b,v=e.id,x=e.className,_=e.onResize,j=e.style,S=j===void 0?{}:j,N=P.useRef(null),O=P.useRef();O.current=_,P.useImperativeHandle(t,function(){return Object.defineProperty(N.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),N.current},configurable:!0})});var E=P.useState({containerWidth:i.width,containerHeight:i.height}),A=cye(E,2),I=A[0],M=A[1],C=P.useCallback(function(B,$){M(function(z){var H=Math.round(B),V=Math.round($);return z.containerWidth===H&&z.containerHeight===V?z:{containerWidth:H,containerHeight:V}})},[]);P.useEffect(function(){var B=function(W){var q,D=W[0].contentRect,F=D.width,K=D.height;C(F,K),(q=O.current)===null||q===void 0||q.call(O,F,K)};y>0&&(B=rz(B,y,{trailing:!0,leading:!1}));var $=new ResizeObserver(B),z=N.current.getBoundingClientRect(),H=z.width,V=z.height;return C(H,V),$.observe(N.current),function(){$.disconnect()}},[C,y]);var R=P.useMemo(function(){var B=I.containerWidth,$=I.containerHeight;if(B<0||$<0)return null;Go(rl(a)||rl(c),`The width(%s) and height(%s) are both fixed numbers,
640       maybe you don't need to use a ResponsiveContainer.`,a,c),Go(!n||n>0,"The aspect(%s) must be greater than zero.",n);var z=rl(a)?B:a,H=rl(c)?$:c;n&&n>0&&(z?H=z/n:H&&(z=H*n),m&&H>m&&(H=m)),Go(z>0||H>0,`The width(%s) and height(%s) of chart should be greater than 0,
641       please check the style of container, or the props width(%s) and height(%s),
642       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
643       height and width.`,z,H,a,c,p,f,n);var V=!Array.isArray(g)&&Wo(g.type).endsWith("Chart");return ue.Children.map(g,function(Y){return ue.isValidElement(Y)?P.cloneElement(Y,Vm({width:z,height:H},V?{style:Vm({height:"100%",width:"100%",maxHeight:H,maxWidth:z},Y.props.style)}:{})):Y})},[n,g,c,m,f,p,I,a]);return ue.createElement("div",{id:v?"".concat(v):void 0,className:xt("recharts-responsive-container",x),style:Vm(Vm({},S),{},{width:a,height:c,minWidth:p,minHeight:f,maxHeight:m}),ref:N},R)}),iz=function(t){return null};iz.displayName="Cell";function ch(e){"@babel/helpers - typeof";return ch=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ch(e)}function C5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function lj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?C5(Object(n),!0).forEach(function(r){mye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mye(e,t,n){return t=gye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gye(e){var t=yye(e,"string");return ch(t)=="symbol"?t:t+""}function yye(e,t){if(ch(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ch(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jc={widthCache:{},cacheCount:0},vye=2e3,xye={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},R5="recharts_measurement_span";function bye(e){var t=lj({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var Mf=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Qu.isSsr)return{width:0,height:0};var r=bye(n),i=JSON.stringify({text:t,copyStyle:r});if(jc.widthCache[i])return jc.widthCache[i];try{var o=document.getElementById(R5);o||(o=document.createElement("span"),o.setAttribute("id",R5),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=lj(lj({},xye),r);Object.assign(o.style,a),o.textContent="".concat(t);var l=o.getBoundingClientRect(),c={width:l.width,height:l.height};return jc.widthCache[i]=c,++jc.cacheCount>vye&&(jc.cacheCount=0,jc.widthCache={}),c}catch{return{width:0,height:0}}},wye=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function uh(e){"@babel/helpers - typeof";return uh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uh(e)}function iy(e,t){return Nye(e)||jye(e,t)||Sye(e,t)||_ye()}function _ye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
644In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sye(e,t){if(e){if(typeof e=="string")return M5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M5(e,t)}}function M5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jye(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,d=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(p){d=!0,i=p}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw i}}return l}}function Nye(e){if(Array.isArray(e))return e}function kye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I5(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Eye(r.key),r)}}function Oye(e,t,n){return t&&I5(e.prototype,t),n&&I5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Eye(e){var t=Pye(e,"string");return uh(t)=="symbol"?t:t+""}function Pye(e,t){if(uh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(uh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var D5=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,L5=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Aye=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Tye=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,oz={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},Cye=Object.keys(oz),Lc="NaN";function Rye(e,t){return e*oz[t]}var Wm=(function(){function e(t,n){kye(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!Aye.test(n)&&(this.num=NaN,this.unit=""),Cye.includes(n)&&(this.num=Rye(t,n),this.unit="px")}return Oye(e,[{key:"add",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num/n.num,this.unit||n.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(n){var r,i=(r=Tye.exec(n))!==null&&r!==void 0?r:[],o=iy(i,3),a=o[1],l=o[2];return new e(parseFloat(a),l??"")}}])})();function az(e){if(e.includes(Lc))return Lc;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=D5.exec(t))!==null&&n!==void 0?n:[],i=iy(r,4),o=i[1],a=i[2],l=i[3],c=Wm.parse(o??""),d=Wm.parse(l??""),p=a==="*"?c.multiply(d):c.divide(d);if(p.isNaN())return Lc;t=t.replace(D5,p.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,m=(f=L5.exec(t))!==null&&f!==void 0?f:[],g=iy(m,4),b=g[1],y=g[2],v=g[3],x=Wm.parse(b??""),_=Wm.parse(v??""),j=y==="+"?x.add(_):x.subtract(_);if(j.isNaN())return Lc;t=t.replace(L5,j.toString())}return t}var B5=/\(([^()]*)\)/;function Mye(e){for(var t=e;t.includes("(");){var n=B5.exec(t),r=iy(n,2),i=r[1];t=t.replace(B5,az(i))}return t}function Iye(e){var t=e.replace(/\s+/g,"");return t=Mye(t),t=az(t),t}function Dye(e){try{return Iye(e)}catch{return Lc}}function B2(e){var t=Dye(e.slice(5,-1));return t===Lc?"":t}var Lye=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Bye=["dx","dy","angle","className","breakAll"];function cj(){return cj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cj.apply(this,arguments)}function $5(e,t){if(e==null)return{};var n=$ye(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $ye(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function F5(e,t){return Uye(e)||zye(e,t)||qye(e,t)||Fye()}
644function Fye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
645In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qye(e,t){if(e){if(typeof e=="string")return q5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return q5(e,t)}}function q5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zye(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,d=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(p){d=!0,i=p}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw i}}return l}}function Uye(e){if(Array.isArray(e))return e}var sz=/[ \f\n\r\t\v\u2028\u2029]+/,lz=function(t){var n=t.children,r=t.breakAll,i=t.style;try{var o=[];ft(n)||(r?o=n.toString().split(""):o=n.toString().split(sz));var a=o.map(function(c){return{word:c,width:Mf(c,i).width}}),l=r?0:Mf(" ",i).width;return{wordsWithComputedWidth:a,spaceWidth:l}}catch{return null}},Hye=function(t,n,r,i,o){var a=t.maxLines,l=t.children,c=t.style,d=t.breakAll,p=Re(a),f=l,m=function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return z.reduce(function(H,V){var Y=V.word,W=V.width,q=H[H.length-1];if(q&&(i==null||o||q.width+W+r<Number(i)))q.words.push(Y),q.width+=W+r;else{var D={words:[Y],width:W};H.push(D)}return H},[])},g=m(n),b=function(z){return z.reduce(function(H,V){return H.width>V.width?H:V})};if(!p)return g;for(var y="…",v=function(z){var H=f.slice(0,z),V=lz({breakAll:d,style:c,children:H+y}).wordsWithComputedWidth,Y=m(V),W=Y.length>a||b(Y).width>Number(i);return[W,Y]},x=0,_=f.length-1,j=0,S;x<=_&&j<=f.length-1;){var N=Math.floor((x+_)/2),O=N-1,E=v(O),A=F5(E,2),I=A[0],M=A[1],C=v(N),R=F5(C,1),B=R[0];if(!I&&!B&&(x=N+1),I&&B&&(_=N-1),!I&&B){S=M;break}j++}return S||g},z5=function(t){var n=ft(t)?[]:t.toString().split(sz);return[{words:n}]},Vye=function(t){var n=t.width,r=t.scaleToFit,i=t.children,o=t.style,a=t.breakAll,l=t.maxLines;if((n||r)&&!Qu.isSsr){var c,d,p=lz({breakAll:a,children:i,style:o});if(p){var f=p.wordsWithComputedWidth,m=p.spaceWidth;c=f,d=m}else return z5(i);return Hye({breakAll:a,children:i,maxLines:l,style:o},c,d,n,r)}return z5(i)},U5="#808080",oy=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,o=i===void 0?0:i,a=t.lineHeight,l=a===void 0?"1em":a,c=t.capHeight,d=c===void 0?"0.71em":c,p=t.scaleToFit,f=p===void 0?!1:p,m=t.textAnchor,g=m===void 0?"start":m,b=t.verticalAnchor,y=b===void 0?"end":b,v=t.fill,x=v===void 0?U5:v,_=$5(t,Lye),j=P.useMemo(function(){return Vye({breakAll:_.breakAll,children:_.children,maxLines:_.maxLines,scaleToFit:f,style:_.style,width:_.width})},[_.breakAll,_.children,_.maxLines,f,_.style,_.width]),S=_.dx,N=_.dy,O=_.angle,E=_.className,A=_.breakAll,I=$5(_,Bye);if(!kn(r)||!kn(o))return null;var M=r+(Re(S)?S:0),C=o+(Re(N)?N:0),R;switch(y){case"start":R=B2("calc(".concat(d,")"));break;case"middle":R=B2("calc(".concat((j.length-1)/2," * -").concat(l," + (").concat(d," / 2))"));break;default:R=B2("calc(".concat(j.length-1," * -").concat(l,")"));break}var B=[];if(f){var $=j[0].width,z=_.width;B.push("scale(".concat((Re(z)?z/$:1)/$,")"))}return O&&B.push("rotate(".concat(O,", ").concat(M,", ").concat(C,")")),B.length&&(I.transform=B.join(" ")),ue.createElement("text",cj({},vt(I,!0),{x:M,y:C,className:xt("recharts-text",E),textAnchor:g,fill:x.includes("url")?U5:x}),j.map(function(H,V){var Y=H.words.join(A?"":" ");return ue.createElement("tspan",{x:M,dy:V===0?R:l,key:"".concat(Y,"-").concat(V)},Y)}))};function rs(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Wye(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function cO(e){let t,n,r;e.length!==2?(t=rs,n=(l,c)=>rs(e(l),c),r=(l,c)=>e(l)-c):(t=e===rs||e===Wye?e:Gye,n=e,r=e);function i(l,c,d=0,p=l.length){if(d<p){if(t(c,c)!==0)return p;do{const f=d+p>>>1;n(l[f],c)<0?d=f+1:p=f}while(d<p)}return d}function o(l,c,d=0,p=l.length){if(d<p){if(t(c,c)!==0)return p;do{const f=d+p>>>1;n(l[f],c)<=0?d=f+1:p=f}while(d<p)}return d}function a(l,c,d=0,p=l.length){const f=i(l,c,d,p-1);return f>d&&r(l[f-1],c)>-r(l[f],c)?f-1:f}return{left:i,center:a,right:o}}function Gye(){return 0}function cz(e){return e===null?NaN:+e}function*Kye(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const Yye=cO(rs),dp=Yye.right;cO(cz).center;class H5 extends Map{constructor(t,n=Zye){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(V5(this,t))}has(t){return super.has(V5(this,t))}set(t,n){return super.set(Xye(this,t),n)}delete(t){return super.delete(Qye(this,t))}}function V5({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Xye({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Qye({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Zye(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Jye(e=rs){if(e===rs)return uz;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function uz(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const eve=Math.sqrt(50),tve=Math.sqrt(10),nve=Math.sqrt(2);function ay(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=eve?10:o>=tve?5:o>=nve?2:1;let l,c,d;return i<0?(d=Math.pow(10,-i)/a,l=Math.round(e*d),c=Math.round(t*d),l/d<e&&++l,c/d>t&&--c,d=-d):(d=Math.pow(10,i)*a,l=Math.round(e/d),c=Math.round(t/d),l*d<e&&++l,c*d>t&&--c),c<l&&.5<=n&&n<2?ay(e,t,n*2):[l,c,d]}
vendor: 15,490 bytes, line 645
645function uj(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,o,a]=r?ay(t,e,n):ay(e,t,n);if(!(o>=i))return[];const l=o-i+1,c=new Array(l);if(r)if(a<0)for(let d=0;d<l;++d)c[d]=(o-d)/-a;else for(let d=0;d<l;++d)c[d]=(o-d)*a;else if(a<0)for(let d=0;d<l;++d)c[d]=(i+d)/-a;else for(let d=0;d<l;++d)c[d]=(i+d)*a;return c}function dj(e,t,n){return t=+t,e=+e,n=+n,ay(e,t,n)[2]}function fj(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?dj(t,e,n):dj(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function W5(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function G5(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function dz(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?uz:Jye(i);r>n;){if(r-n>600){const c=r-n+1,d=t-n+1,p=Math.log(c),f=.5*Math.exp(2*p/3),m=.5*Math.sqrt(p*f*(c-f)/c)*(d-c/2<0?-1:1),g=Math.max(n,Math.floor(t-d*f/c+m)),b=Math.min(r,Math.floor(t+(c-d)*f/c+m));dz(e,t,g,b,i)}const o=e[t];let a=n,l=r;for(nf(e,n,t),i(e[r],o)>0&&nf(e,n,r);a<l;){for(nf(e,a,l),++a,--l;i(e[a],o)<0;)++a;for(;i(e[l],o)>0;)--l}i(e[n],o)===0?nf(e,n,l):(++l,nf(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function nf(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function rve(e,t,n){if(e=Float64Array.from(Kye(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return G5(e);if(t>=1)return W5(e);var r,i=(r-1)*t,o=Math.floor(i),a=W5(dz(e,o).subarray(0,o+1)),l=G5(e.subarray(o+1));return a+(l-a)*(i-o)}}function ive(e,t,n=cz){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e),l=+n(e[o+1],o+1,e);return a+(l-a)*(i-o)}}function ove(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r<i;)o[r]=e+r*n;return o}function yi(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function la(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const hj=Symbol("implicit");function uO(){var e=new H5,t=[],n=[],r=hj;function i(o){let a=e.get(o);if(a===void 0){if(r!==hj)return r;e.set(o,a=t.push(o)-1)}return n[a%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new H5;for(const a of o)e.has(a)||e.set(a,t.push(a)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return uO(t,n).unknown(r)},yi.apply(i,arguments),i}function dh(){var e=uO().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,a,l=!1,c=0,d=0,p=.5;delete e.unknown;function f(){var m=t().length,g=i<r,b=g?i:r,y=g?r:i;o=(y-b)/Math.max(1,m-c+d*2),l&&(o=Math.floor(o)),b+=(y-b-o*(m-c))*p,a=o*(1-c),l&&(b=Math.round(b),a=Math.round(a));var v=ove(m).map(function(x){return b+o*x});return n(g?v.reverse():v)}return e.domain=function(m){return arguments.length?(t(m),f()):t()},e.range=function(m){return arguments.length?([r,i]=m,r=+r,i=+i,f()):[r,i]},e.rangeRound=function(m){return[r,i]=m,r=+r,i=+i,l=!0,f()},e.bandwidth=function(){return a},e.step=function(){return o},e.round=function(m){return arguments.length?(l=!!m,f()):l},e.padding=function(m){return arguments.length?(c=Math.min(1,d=+m),f()):c},e.paddingInner=function(m){return arguments.length?(c=Math.min(1,m),f()):c},e.paddingOuter=function(m){return arguments.length?(d=+m,f()):d},e.align=function(m){return arguments.length?(p=Math.max(0,Math.min(1,m)),f()):p},e.copy=function(){return dh(t(),[r,i]).round(l).paddingInner(c).paddingOuter(d).align(p)},yi.apply(f(),arguments)}function fz(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return fz(t())},e}function If(){return fz(dh.apply(null,arguments).paddingInner(1))}function dO(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function hz(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function fp(){}var fh=.7,sy=1/fh,Vc="\\s*([+-]?\\d+)\\s*",hh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",fo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ave=/^#([0-9a-f]{3,8})$/,sve=new RegExp(`^rgb\\(${Vc},${Vc},${Vc}\\)$`),lve=new RegExp(`^rgb\\(${fo},${fo},${fo}\\)$`),cve=new RegExp(`^rgba\\(${Vc},${Vc},${Vc},${hh}\\)$`),uve=new RegExp(`^rgba\\(${fo},${fo},${fo},${hh}\\)$`),dve=new RegExp(`^hsl\\(${hh},${fo},${fo}\\)$`),fve=new RegExp(`^hsla\\(${hh},${fo},${fo},${hh}\\)$`),K5={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};dO(fp,ph,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Y5,formatHex:Y5,formatHex8:hve,formatHsl:pve,formatRgb:X5,toString:X5});function Y5(){return this.rgb().formatHex()}function hve(){return this.rgb().formatHex8()}function pve(){return pz(this).formatHsl()}function X5(){return this.rgb().formatRgb()}function ph(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ave.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Q5(t):n===3?new Pr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Gm(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Gm(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=sve.exec(e))?new Pr(t[1],t[2],t[3],1):(t=lve.exec(e))?new Pr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=cve.exec(e))?Gm(t[1],t[2],t[3],t[4]):(t=uve.exec(e))?Gm(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=dve.exec(e))?eI(t[1],t[2]/100,t[3]/100,1):(t=fve.exec(e))?eI(t[1],t[2]/100,t[3]/100,t[4]):K5.hasOwnProperty(e)?Q5(K5[e]):e==="transparent"?new Pr(NaN,NaN,NaN,0):null}function Q5(e){return new Pr(e>>16&255,e>>8&255,e&255,1)}function Gm(e,t,n,r){return r<=0&&(e=t=n=NaN),new Pr(e,t,n,r)}function mve(e){return e instanceof fp||(e=ph(e)),e?(e=e.rgb(),new Pr(e.r,e.g,e.b,e.opacity)):new Pr}function pj(e,t,n,r){return arguments.length===1?mve(e):new Pr(e,t,n,r??1)}function Pr(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}dO(Pr,pj,hz(fp,{brighter(e){return e=e==null?sy:Math.pow(sy,e),new Pr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?fh:Math.pow(fh,e),new Pr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Pr(xl(this.r),xl(this.g),xl(this.b),ly(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Z5,formatHex:Z5,formatHex8:gve,formatRgb:J5,toString:J5}));function Z5(){return`#${il(this.r)}${il(this.g)}${il(this.b)}`}function gve(){return`#${il(this.r)}${il(this.g)}${il(this.b)}${il((isNaN(this.opacity)?1:this.opacity)*255)}`}function J5(){const e=ly(this.opacity);return`${e===1?"rgb(":"rgba("}${xl(this.r)}, ${xl(this.g)}, ${xl(this.b)}${e===1?")":`, ${e})`}`}function ly(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function xl(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function il(e){return e=xl(e),(e<16?"0":"")+e.toString(16)}function eI(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Li(e,t,n,r)}function pz(e){if(e instanceof Li)return new Li(e.h,e.s,e.l,e.opacity);if(e instanceof fp||(e=ph(e)),!e)return new Li;if(e instanceof Li)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,l=o-i,c=(o+i)/2;return l?(t===o?a=(n-r)/l+(n<r)*6:n===o?a=(r-t)/l+2:a=(t-n)/l+4,l/=c<.5?o+i:2-o-i,a*=60):l=c>0&&c<1?0:a,new Li(a,l,c,e.opacity)}function yve(e,t,n,r){return arguments.length===1?pz(e):new Li(e,t,n,r??1)}function Li(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}dO(Li,yve,hz(fp,{brighter(e){return e=e==null?sy:Math.pow(sy,e),new Li(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?fh:Math.pow(fh,e),new Li(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Pr($2(e>=240?e-240:e+120,i,r),$2(e,i,r),$2(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Li(tI(this.h),Km(this.s),Km(this.l),ly(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ly(this.opacity);return`${e===1?"hsl(":"hsla("}${tI(this.h)}, ${Km(this.s)*100}%, ${Km(this.l)*100}%${e===1?")":`, ${e})`}`}}));function tI(e){return e=(e||0)%360,e<0?e+360:e}function Km(e){return Math.max(0,Math.min(1,e||0))}function $2(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const fO=e=>()=>e;function vve(e,t){return function(n){return e+n*t}}function xve(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function bve(e){return(e=+e)==1?mz:function(t,n){return n-t?xve(t,n,e):fO(isNaN(t)?n:t)}}function mz(e,t){var n=t-e;return n?vve(e,n):fO(isNaN(e)?t:e)}const nI=(function e(t){var n=bve(t);function r(i,o){var a=n((i=pj(i)).r,(o=pj(o)).r),l=n(i.g,o.g),c=n(i.b,o.b),d=mz(i.opacity,o.opacity);return function(p){return i.r=a(p),i.g=l(p),i.b=c(p),i.opacity=d(p),i+""}}return r.gamma=e,r})(1);function wve(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function _ve(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Sve(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),a;for(a=0;a<r;++a)i[a]=Zu(e[a],t[a]);for(;a<n;++a)o[a]=t[a];return function(l){for(a=0;a<r;++a)o[a]=i[a](l);return o}}function jve(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function cy(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Nve(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Zu(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var mj=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,F2=new RegExp(mj.source,"g");function kve(e){return function(){return e}}function Ove(e){return function(t){return e(t)+""}}function Eve(e,t){var n=mj.lastIndex=F2.lastIndex=0,r,i,o,a=-1,l=[],c=[];for(e=e+"",t=t+"";(r=mj.exec(e))&&(i=F2.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),l[a]?l[a]+=o:l[++a]=o),(r=r[0])===(i=i[0])?l[a]?l[a]+=i:l[++a]=i:(l[++a]=null,c.push({i:a,x:cy(r,i)})),n=F2.lastIndex;return n<t.length&&(o=t.slice(n),l[a]?l[a]+=o:l[++a]=o),l.length<2?c[0]?Ove(c[0].x):kve(t):(t=c.length,function(d){for(var p=0,f;p<t;++p)l[(f=c[p]).i]=f.x(d);return l.join("")})}function Zu(e,t){var n=typeof t,r;return t==null||n==="boolean"?fO(t):(n==="number"?cy:n==="string"?(r=ph(t))?(t=r,nI):Eve:t instanceof ph?nI:t instanceof Date?jve:_ve(t)?wve:Array.isArray(t)?Sve:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Nve:cy)(e,t)}function hO(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Pve(e,t){t===void 0&&(t=e,e=Zu);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(a){var l=Math.max(0,Math.min(r-1,Math.floor(a*=r)));return o[l](a-l)}}function Ave(e){return function(){return e}}function uy(e){return+e}var rI=[0,1];function gr(e){return e}function gj(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Ave(isNaN(t)?NaN:.5)}function Tve(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Cve(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=gj(i,r),o=n(a,o)):(r=gj(r,i),o=n(o,a)),function(l){return o(r(l))}}function Rve(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=gj(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(l){var c=dp(e,l,1,r)-1;return o[c](i[c](l))}}function hp(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Cv(){var e=rI,t=rI,n=Zu,r,i,o,a=gr,l,c,d;function p(){var m=Math.min(e.length,t.length);return a!==gr&&(a=Tve(e[0],e[m-1])),l=m>2?Rve:Cve,c=d=null,f}function f(m){return m==null||isNaN(m=+m)?o:(c||(c=l(e.map(r),t,n)))(r(a(m)))}return f.invert=function(m){return a(i((d||(d=l(t,e.map(r),cy)))(m)))},f.domain=function(m){return arguments.length?(e=Array.from(m,uy),p()):e.slice()},f.range=function(m){return arguments.length?(t=Array.from(m),p()):t.slice()},f.rangeRound=function(m){return t=Array.from(m),n=hO,p()},f.clamp=function(m){return arguments.length?(a=m?!0:gr,p()):a!==gr},f.interpolate=function(m){return arguments.length?(n=m,p()):n},f.unknown=function(m){return arguments.length?(o=m,f):o},function(m,g){return r=m,i=g,p()}}function pO(){return Cv()(gr,gr)}
vendor: 4,516 bytes, line 645
645function Mve(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function dy(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function gu(e){return e=dy(Math.abs(e)),e?e[1]:NaN}function Ive(e,t){return function(n,r){for(var i=n.length,o=[],a=0,l=e[0],c=0;i>0&&l>0&&(c+l+1>r&&(l=Math.max(1,r-c)),o.push(n.substring(i-=l,i+l)),!((c+=l+1)>r));)l=e[a=(a+1)%e.length];return o.reverse().join(t)}}function Dve(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Lve=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function mh(e){if(!(t=Lve.exec(e)))throw new Error("invalid format: "+e);var t;return new mO({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}mh.prototype=mO.prototype;function mO(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}mO.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Bve(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var fy;function $ve(e,t){var n=dy(e,t);if(!n)return fy=void 0,e.toPrecision(t);var r=n[0],i=n[1],o=i-(fy=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+dy(e,Math.max(0,t+o-1))[0]}function iI(e,t){var n=dy(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const oI={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Mve,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>iI(e*100,t),r:iI,s:$ve,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function aI(e){return e}var sI=Array.prototype.map,lI=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Fve(e){var t=e.grouping===void 0||e.thousands===void 0?aI:Ive(sI.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?aI:Dve(sI.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function d(f,m){f=mh(f);var g=f.fill,b=f.align,y=f.sign,v=f.symbol,x=f.zero,_=f.width,j=f.comma,S=f.precision,N=f.trim,O=f.type;O==="n"?(j=!0,O="g"):oI[O]||(S===void 0&&(S=12),N=!0,O="g"),(x||g==="0"&&b==="=")&&(x=!0,g="0",b="=");var E=(m&&m.prefix!==void 0?m.prefix:"")+(v==="$"?n:v==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():""),A=(v==="$"?r:/[%p]/.test(O)?a:"")+(m&&m.suffix!==void 0?m.suffix:""),I=oI[O],M=/[defgprs%]/.test(O);S=S===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function C(R){var B=E,$=A,z,H,V;if(O==="c")$=I(R)+$,R="";else{R=+R;var Y=R<0||1/R<0;if(R=isNaN(R)?c:I(Math.abs(R),S),N&&(R=Bve(R)),Y&&+R==0&&y!=="+"&&(Y=!1),B=(Y?y==="("?y:l:y==="-"||y==="("?"":y)+B,$=(O==="s"&&!isNaN(R)&&fy!==void 0?lI[8+fy/3]:"")+$+(Y&&y==="("?")":""),M){for(z=-1,H=R.length;++z<H;)if(V=R.charCodeAt(z),48>V||V>57){$=(V===46?i+R.slice(z+1):R.slice(z))+$,R=R.slice(0,z);break}}}j&&!x&&(R=t(R,1/0));var W=B.length+R.length+$.length,q=W<_?new Array(_-W+1).join(g):"";switch(j&&x&&(R=t(q+R,q.length?_-$.length:1/0),q=""),b){case"<":R=B+R+$+q;break;case"=":R=B+q+R+$;break;case"^":R=q.slice(0,W=q.length>>1)+B+R+$+q.slice(W);break;default:R=q+B+R+$;break}return o(R)}return C.toString=function(){return f+""},C}function p(f,m){var g=Math.max(-8,Math.min(8,Math.floor(gu(m)/3)))*3,b=Math.pow(10,-g),y=d((f=mh(f),f.type="f",f),{suffix:lI[8+g/3]}
645);return function(v){return y(b*v)}}return{format:d,formatPrefix:p}}var Ym,gO,gz;qve({thousands:",",grouping:[3],currency:["$",""]});function qve(e){return Ym=Fve(e),gO=Ym.format,gz=Ym.formatPrefix,Ym}function zve(e){return Math.max(0,-gu(Math.abs(e)))}function Uve(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(gu(t)/3)))*3-gu(Math.abs(e)))}function Hve(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,gu(t)-gu(e))+1}function yz(e,t,n,r){var i=fj(e,t,n),o;switch(r=mh(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=Uve(i,a))&&(r.precision=o),gz(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=Hve(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=zve(i))&&(r.precision=o-(r.type==="%")*2);break}}return gO(r)}function xs(e){var t=e.domain;return e.ticks=function(n){var r=t();return uj(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return yz(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,a=r[i],l=r[o],c,d,p=10;for(l<a&&(d=a,a=l,l=d,d=i,i=o,o=d);p-- >0;){if(d=dj(a,l,n),d===c)return r[i]=a,r[o]=l,t(r);if(d>0)a=Math.floor(a/d)*d,l=Math.ceil(l/d)*d;else if(d<0)a=Math.ceil(a*d)/d,l=Math.floor(l*d)/d;else break;c=d}return e},e}function hy(){var e=pO();return e.copy=function(){return hp(e,hy())},yi.apply(e,arguments),xs(e)}function vz(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,uy),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return vz(e).unknown(t)},e=arguments.length?Array.from(e,uy):[0,1],xs(n)}function xz(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],a;return o<i&&(a=n,n=r,r=a,a=i,i=o,o=a),e[n]=t.floor(i),e[r]=t.ceil(o),e}function cI(e){return Math.log(e)}function uI(e){return Math.exp(e)}function Vve(e){return-Math.log(-e)}function Wve(e){return-Math.exp(-e)}function Gve(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Kve(e){return e===10?Gve:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Yve(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function dI(e){return(t,n)=>-e(-t,n)}function yO(e){const t=e(cI,uI),n=t.domain;let r=10,i,o;function a(){return i=Yve(r),o=Kve(r),n()[0]<0?(i=dI(i),o=dI(o),e(Vve,Wve)):e(cI,uI),t}return t.base=function(l){return arguments.length?(r=+l,a()):r},t.domain=function(l){return arguments.length?(n(l),a()):n()},t.ticks=l=>{const c=n();let d=c[0],p=c[c.length-1];const f=p<d;f&&([d,p]=[p,d]);let m=i(d),g=i(p),b,y;const v=l==null?10:+l;let x=[];if(!(r%1)&&g-m<v){if(m=Math.floor(m),g=Math.ceil(g),d>0){for(;m<=g;++m)for(b=1;b<r;++b)if(y=m<0?b/o(-m):b*o(m),!(y<d)){if(y>p)break;x.push(y)}}else for(;m<=g;++m)for(b=r-1;b>=1;--b)if(y=m>0?b/o(-m):b*o(m),!(y<d)){if(y>p)break;x.push(y)}x.length*2<v&&(x=uj(d,p,v))}else x=uj(m,g,Math.min(g-m,v)).map(o);return f?x.reverse():x},t.tickFormat=(l,c)=>{if(l==null&&(l=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=mh(c)).precision==null&&(c.trim=!0),c=gO(c)),l===1/0)return c;const d=Math.max(1,r*l/t.ticks().length);return p=>{let f=p/o(Math.round(i(p)));return f*r<r-.5&&(f*=r),f<=d?c(p):""}},t.nice=()=>n(xz(n(),{floor:l=>o(Math.floor(i(l))),ceil:l=>o(Math.ceil(i(l)))})),t}function bz(){const e=yO(Cv()).domain([1,10]);return e.copy=()=>hp(e,bz()).base(e.base()),yi.apply(e,arguments),e}function fI(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function hI(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function vO(e){var t=1,n=e(fI(t),hI(t));return n.constant=function(r){return arguments.length?e(fI(t=+r),hI(t)):t},xs(n)}function wz(){var e=vO(Cv());return e.copy=function(){return hp(e,wz()).constant(e.constant())},yi.apply(e,arguments)}function pI(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Xve(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Qve(e){return e<0?-e*e:e*e}function xO(e){var t=e(gr,gr),n=1;function r(){return n===1?e(gr,gr):n===.5?e(Xve,Qve):e(pI(n),pI(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},xs(t)}function bO(){var e=xO(Cv());return e.copy=function(){return hp(e,bO()).exponent(e.exponent())},yi.apply(e,arguments),e}function Zve(){return bO.apply(null,arguments).exponent(.5)}function mI(e){return Math.sign(e)*e*e}function Jve(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function _z(){var e=pO(),t=[0,1],n=!1,r;function i(o){var a=Jve(e(o));return isNaN(a)?r:n?Math.round(a):a}return i.invert=function(o){return e.invert(mI(o))},i.domain=function(o){return arguments.length?(e.domain(o),i):e.domain()},i.range=function(o){return arguments.length?(e.range((t=Array.from(o,uy)).map(mI)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(n=!!o,i):n},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return _z(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},yi.apply(i,arguments),xs(i)}function Sz(){var e=[],t=[],n=[],r;function i(){var a=0,l=Math.max(1,t.length);for(n=new Array(l-1);++a<l;)n[a-1]=ive(e,a/l);return o}function o(a){return a==null||isNaN(a=+a)?r:t[dp(n,a)]}return o.invertExtent=function(a){var l=t.indexOf(a);return l<0?[NaN,NaN]:[l>0?n[l-1]:e[0],l<n.length?n[l]:e[e.length-1]]}
645,o.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let l of a)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(rs),i()},o.range=function(a){return arguments.length?(t=Array.from(a),i()):t.slice()},o.unknown=function(a){return arguments.length?(r=a,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return Sz().domain(e).range(t).unknown(r)},yi.apply(o,arguments)}function jz(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function a(c){return c!=null&&c<=c?i[dp(r,c,0,n)]:o}function l(){var c=-1;for(r=new Array(n);++c<n;)r[c]=((c+1)*t-(c-n)*e)/(n+1);return a}return a.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,l()):[e,t]},a.range=function(c){return arguments.length?(n=(i=Array.from(c)).length-1,l()):i.slice()},a.invertExtent=function(c){var d=i.indexOf(c);return d<0?[NaN,NaN]:d<1?[e,r[0]]:d>=n?[r[n-1],t]:[r[d-1],r[d]]},a.unknown=function(c){return arguments.length&&(o=c),a},a.thresholds=function(){return r.slice()},a.copy=function(){return jz().domain([e,t]).range(i).unknown(o)},yi.apply(xs(a),arguments)}function Nz(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[dp(e,o,0,r)]:n}return i.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var a=t.indexOf(o);return[e[a-1],e[a]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return Nz().domain(e).range(t).unknown(n)},yi.apply(i,arguments)}const q2=new Date,z2=new Date;function On(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const a=i(o),l=i.ceil(o);return o-a<l-o?a:l},i.offset=(o,a)=>(t(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,l)=>{const c=[];if(o=i.ceil(o),l=l==null?1:Math.floor(l),!(o<a)||!(l>0))return c;let d;do c.push(d=new Date(+o)),t(o,l),e(o);while(d<o&&o<a);return c},i.filter=o=>On(a=>{if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},(a,l)=>{if(a>=a)if(l<0)for(;++l<=0;)for(;t(a,-1),!o(a););else for(;--l>=0;)for(;t(a,1),!o(a););}),n&&(i.count=(o,a)=>(q2.setTime(+o),z2.setTime(+a),e(q2),e(z2),Math.floor(n(q2,z2))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?a=>r(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const py=On(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);py.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?On(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):py);py.range;const qo=1e3,di=qo*60,zo=di*60,ta=zo*24,wO=ta*7,gI=ta*30,U2=ta*365,ol=On(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*qo)},(e,t)=>(t-e)/qo,e=>e.getUTCSeconds());ol.range;const _O=On(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*qo)},(e,t)=>{e.setTime(+e+t*di)},(e,t)=>(t-e)/di,e=>e.getMinutes());_O.range;const SO=On(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*di)},(e,t)=>(t-e)/di,e=>e.getUTCMinutes());SO.range;const jO=On(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*qo-e.getMinutes()*di)},(e,t)=>{e.setTime(+e+t*zo)},(e,t)=>(t-e)/zo,e=>e.getHours());jO.range;const NO=On(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*zo)},(e,t)=>(t-e)/zo,e=>e.getUTCHours());NO.range;const pp=On(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*di)/ta,e=>e.getDate()-1);pp.range;const Rv=On(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ta,e=>e.getUTCDate()-1);Rv.range;const kz=On(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ta,e=>Math.floor(e/ta));kz.range;function Bl(e){return On(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*di)/wO)}const Mv=Bl(0),my=Bl(1),exe=Bl(2),txe=Bl(3),yu=Bl(4),nxe=Bl(5),rxe=Bl(6);Mv.range;my.range;exe.range;txe.range;yu.range;nxe.range;rxe.range;function $l(e){return On(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/wO)}
vendor: 6,823 bytes, line 645
645const Iv=$l(0),gy=$l(1),ixe=$l(2),oxe=$l(3),vu=$l(4),axe=$l(5),sxe=$l(6);Iv.range;gy.range;ixe.range;oxe.range;vu.range;axe.range;sxe.range;const kO=On(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());kO.range;const OO=On(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());OO.range;const na=On(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());na.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:On(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});na.range;const ra=On(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());ra.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:On(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});ra.range;function Oz(e,t,n,r,i,o){const a=[[ol,1,qo],[ol,5,5*qo],[ol,15,15*qo],[ol,30,30*qo],[o,1,di],[o,5,5*di],[o,15,15*di],[o,30,30*di],[i,1,zo],[i,3,3*zo],[i,6,6*zo],[i,12,12*zo],[r,1,ta],[r,2,2*ta],[n,1,wO],[t,1,gI],[t,3,3*gI],[e,1,U2]];function l(d,p,f){const m=p<d;m&&([d,p]=[p,d]);const g=f&&typeof f.range=="function"?f:c(d,p,f),b=g?g.range(d,+p+1):[];return m?b.reverse():b}function c(d,p,f){const m=Math.abs(p-d)/f,g=cO(([,,v])=>v).right(a,m);if(g===a.length)return e.every(fj(d/U2,p/U2,f));if(g===0)return py.every(Math.max(fj(d,p,f),1));const[b,y]=a[m/a[g-1][2]<a[g][2]/m?g-1:g];return b.every(y)}return[l,c]}const[lxe,cxe]=Oz(ra,OO,Iv,kz,NO,SO),[uxe,dxe]=Oz(na,kO,Mv,pp,jO,_O);function H2(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function V2(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function rf(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function fxe(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,l=e.months,c=e.shortMonths,d=of(i),p=af(i),f=of(o),m=af(o),g=of(a),b=af(a),y=of(l),v=af(l),x=of(c),_=af(c),j={a:V,A:Y,b:W,B:q,c:null,d:_I,e:_I,f:Ixe,g:Vxe,G:Gxe,H:Cxe,I:Rxe,j:Mxe,L:Ez,m:Dxe,M:Lxe,p:D,q:F,Q:NI,s:kI,S:Bxe,u:$xe,U:Fxe,V:qxe,w:zxe,W:Uxe,x:null,X:null,y:Hxe,Y:Wxe,Z:Kxe,"%":jI},S={a:K,A:ee,b:J,B:G,c:null,d:SI,e:SI,f:Zxe,g:lbe,G:ube,H:Yxe,I:Xxe,j:Qxe,L:Az,m:Jxe,M:ebe,p:X,q:ne,Q:NI,s:kI,S:tbe,u:nbe,U:rbe,V:ibe,w:obe,W:abe,x:null,X:null,y:sbe,Y:cbe,Z:dbe,"%":jI},N={a:M,A:C,b:R,B,c:$,d:bI,e:bI,f:Exe,g:xI,G:vI,H:wI,I:wI,j:jxe,L:Oxe,m:Sxe,M:Nxe,p:I,q:_xe,Q:Axe,s:Txe,S:kxe,u:yxe,U:vxe,V:xxe,w:gxe,W:bxe,x:z,X:H,y:xI,Y:vI,Z:wxe,"%":Pxe};j.x=O(n,j),j.X=O(r,j),j.c=O(t,j),S.x=O(n,S),S.X=O(r,S),S.c=O(t,S);function O(Z,se){return function(fe){var le=[],we=-1,ge=0,be=Z.length,Be,De,oe;for(fe instanceof Date||(fe=new Date(+fe));++we<be;)Z.charCodeAt(we)===37&&(le.push(Z.slice(ge,we)),(De=yI[Be=Z.charAt(++we)])!=null?Be=Z.charAt(++we):De=Be==="e"?" ":"0",(oe=se[Be])&&(Be=oe(fe,De)),le.push(Be),ge=we+1);return le.push(Z.slice(ge,we)),le.join("")}}function E(Z,se){return function(fe){var le=rf(1900,void 0,1),we=A(le,Z,fe+="",0),ge,be;if(we!=fe.length)return null;if("Q"in le)return new Date(le.Q);if("s"in le)return new Date(le.s*1e3+("L"in le?le.L:0));if(se&&!("Z"in le)&&(le.Z=0),"p"in le&&(le.H=le.H%12+le.p*12),le.m===void 0&&(le.m="q"in le?le.q:0),"V"in le){if(le.V<1||le.V>53)return null;"w"in le||(le.w=1),"Z"in le?(ge=V2(rf(le.y,0,1)),be=ge.getUTCDay(),ge=be>4||be===0?gy.ceil(ge):gy(ge),ge=Rv.offset(ge,(le.V-1)*7),le.y=ge.getUTCFullYear(),le.m=ge.getUTCMonth(),le.d=ge.getUTCDate()+(le.w+6)%7):(ge=H2(rf(le.y,0,1)),be=ge.getDay(),ge=be>4||be===0?my.ceil(ge):my(ge),ge=pp.offset(ge,(le.V-1)*7),le.y=ge.getFullYear(),le.m=ge.getMonth(),le.d=ge.getDate()+(le.w+6)%7)}else("W"in le||"U"in le)&&("w"in le||(le.w="u"in le?le.u%7:"W"in le?1:0),be="Z"in le?V2(rf(le.y,0,1)).getUTCDay():H2(rf(le.y,0,1)).getDay(),le.m=0,le.d="W"in le?(le.w+6)%7+le.W*7-(be+5)%7:le.w+le.U*7-(be+6)%7);return"Z"in le?(le.H+=le.Z/100|0,le.M+=le.Z%100,V2(le)):H2(le)}}function A(Z,se,fe,le){for(var we=0,ge=se.length,be=fe.length,Be,De;we<ge;){if(le>=be)return-1;if(Be=se.charCodeAt(we++),Be===37){if(Be=se.charAt(we++),De=N[Be in yI?se.charAt(we++):Be],!De||(le=De(Z,fe,le))<0)return-1}else if(Be!=fe.charCodeAt(le++))return-1}return le}function I(Z,se,fe){var le=d.exec(se.slice(fe));return le?(Z.p=p.get(le[0].toLowerCase()),fe+le[0].length):-1}function M(Z,se,fe){var le=g.exec(se.slice(fe));return le?(Z.w=b.get(le[0].toLowerCase()),fe+le[0].length):-1}function C(Z,se,fe){var le=f.exec(se.slice(fe));return le?(Z.w=m.get(le[0].toLowerCase()),fe+le[0].length):-1}function R(Z,se,fe){var le=x.exec(se.slice(fe));return le?(Z.m=_.get(le[0].toLowerCase()),fe+le[0].length):-1}function B(Z,se,fe){var le=y.exec(se.slice(fe));return le?(Z.m=v.get(le[0].toLowerCase()),fe+le[0].length):-1}function $(Z,se,fe){return A(Z,t,se,fe)}function z(Z,se,fe){return A(Z,n,se,fe)}function H(Z,se,fe){return A(Z,r,se,fe)}function V(Z){return a[Z.getDay()]}function Y(Z){return o[Z.getDay()]}function W(Z){return c[Z.getMonth()]}function q(Z){return l[Z.getMonth()]}function D(Z){return i[+(Z.getHours()>=12)]}function F(Z){return 1+~~(Z.getMonth()/3)}function K(Z){return a[Z.getUTCDay()]}function ee(Z){return o[Z.getUTCDay()]}function J(Z){return c[Z.getUTCMonth()]}function G(Z){return l[Z.getUTCMonth()]}function X(Z){return i[+(Z.getUTCHours()>=12)]}function ne(Z){return 1+~~(Z.getUTCMonth()/3)}return{format:function(Z){var se=O(Z+="",j);return se.toString=function(){return Z},se},parse:function(Z){var se=E(Z+="",!1);return se.toString=function(){return Z},se},utcFormat:function(Z){var se=O(Z+="",S);return se.toString=function(){return Z},se},utcParse:function(Z){var se=E(Z+="",!0);return se.toString=function(){return Z},se}}}var yI={"-":"",_:" ",0:"0"},Bn=/^\s*\d+/,hxe=/^%/,pxe=/[\\^$*+?|[\]().{}]/g;function jt(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function mxe(e){return e.replace(pxe,"\\$&")}function of(e){return new RegExp("^(?:"+e.map(mxe).join("|")+")","i")}function af(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function gxe(e,t,n){var r=Bn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function yxe(e,t,n){var r=Bn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function vxe(e,t,n){var r=Bn.exec(t.slice(n,n+2));
vendor: 4,106 bytes, line 645
645return r?(e.U=+r[0],n+r[0].length):-1}function xxe(e,t,n){var r=Bn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function bxe(e,t,n){var r=Bn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function vI(e,t,n){var r=Bn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function xI(e,t,n){var r=Bn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function wxe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function _xe(e,t,n){var r=Bn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Sxe(e,t,n){var r=Bn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function bI(e,t,n){var r=Bn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function jxe(e,t,n){var r=Bn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function wI(e,t,n){var r=Bn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Nxe(e,t,n){var r=Bn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function kxe(e,t,n){var r=Bn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Oxe(e,t,n){var r=Bn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Exe(e,t,n){var r=Bn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Pxe(e,t,n){var r=hxe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Axe(e,t,n){var r=Bn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Txe(e,t,n){var r=Bn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function _I(e,t){return jt(e.getDate(),t,2)}function Cxe(e,t){return jt(e.getHours(),t,2)}function Rxe(e,t){return jt(e.getHours()%12||12,t,2)}function Mxe(e,t){return jt(1+pp.count(na(e),e),t,3)}function Ez(e,t){return jt(e.getMilliseconds(),t,3)}function Ixe(e,t){return Ez(e,t)+"000"}function Dxe(e,t){return jt(e.getMonth()+1,t,2)}function Lxe(e,t){return jt(e.getMinutes(),t,2)}function Bxe(e,t){return jt(e.getSeconds(),t,2)}function $xe(e){var t=e.getDay();return t===0?7:t}function Fxe(e,t){return jt(Mv.count(na(e)-1,e),t,2)}function Pz(e){var t=e.getDay();return t>=4||t===0?yu(e):yu.ceil(e)}function qxe(e,t){return e=Pz(e),jt(yu.count(na(e),e)+(na(e).getDay()===4),t,2)}function zxe(e){return e.getDay()}function Uxe(e,t){return jt(my.count(na(e)-1,e),t,2)}function Hxe(e,t){return jt(e.getFullYear()%100,t,2)}function Vxe(e,t){return e=Pz(e),jt(e.getFullYear()%100,t,2)}function Wxe(e,t){return jt(e.getFullYear()%1e4,t,4)}function Gxe(e,t){var n=e.getDay();return e=n>=4||n===0?yu(e):yu.ceil(e),jt(e.getFullYear()%1e4,t,4)}function Kxe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+jt(t/60|0,"0",2)+jt(t%60,"0",2)}function SI(e,t){return jt(e.getUTCDate(),t,2)}function Yxe(e,t){return jt(e.getUTCHours(),t,2)}function Xxe(e,t){return jt(e.getUTCHours()%12||12,t,2)}function Qxe(e,t){return jt(1+Rv.count(ra(e),e),t,3)}function Az(e,t){return jt(e.getUTCMilliseconds(),t,3)}function Zxe(e,t){return Az(e,t)+"000"}function Jxe(e,t){return jt(e.getUTCMonth()+1,t,2)}function ebe(e,t){return jt(e.getUTCMinutes(),t,2)}function tbe(e,t){return jt(e.getUTCSeconds(),t,2)}function nbe(e){var t=e.getUTCDay();return t===0?7:t}function rbe(e,t){return jt(Iv.count(ra(e)-1,e),t,2)}function Tz(e){var t=e.getUTCDay();return t>=4||t===0?vu(e):vu.ceil(e)}function ibe(e,t){return e=Tz(e),jt(vu.count(ra(e),e)+(ra(e).getUTCDay()===4),t,2)}function obe(e){return e.getUTCDay()}function abe(e,t){return jt(gy.count(ra(e)-1,e),t,2)}function sbe(e,t){return jt(e.getUTCFullYear()%100,t,2)}function lbe(e,t){return e=Tz(e),jt(e.getUTCFullYear()%100,t,2)}function cbe(e,t){return jt(e.getUTCFullYear()%1e4,t,4)}function ube(e,t){var n=e.getUTCDay();return e=n>=4||n===0?vu(e):vu.ceil(e),jt(e.getUTCFullYear()%1e4,t,4)}function dbe(){return"+0000"}function jI(){return"%"}function NI(e){return+e}function kI(e){return Math.floor(+e/1e3)}var Nc,Cz,Rz;fbe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
645ay","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function fbe(e){return Nc=fxe(e),Cz=Nc.format,Nc.parse,Rz=Nc.utcFormat,Nc.utcParse,Nc}function hbe(e){return new Date(e)}function pbe(e){return e instanceof Date?+e:+new Date(+e)}function EO(e,t,n,r,i,o,a,l,c,d){var p=pO(),f=p.invert,m=p.domain,g=d(".%L"),b=d(":%S"),y=d("%I:%M"),v=d("%I %p"),x=d("%a %d"),_=d("%b %d"),j=d("%B"),S=d("%Y");function N(O){return(c(O)<O?g:l(O)<O?b:a(O)<O?y:o(O)<O?v:r(O)<O?i(O)<O?x:_:n(O)<O?j:S)(O)}return p.invert=function(O){return new Date(f(O))},p.domain=function(O){return arguments.length?m(Array.from(O,pbe)):m().map(hbe)},p.ticks=function(O){var E=m();return e(E[0],E[E.length-1],O??10)},p.tickFormat=function(O,E){return E==null?N:d(E)},p.nice=function(O){var E=m();return(!O||typeof O.range!="function")&&(O=t(E[0],E[E.length-1],O??10)),O?m(xz(E,O)):p},p.copy=function(){return hp(p,EO(e,t,n,r,i,o,a,l,c,d))},p}function mbe(){return yi.apply(EO(uxe,dxe,na,kO,Mv,pp,jO,_O,ol,Cz).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function gbe(){return yi.apply(EO(lxe,cxe,ra,OO,Iv,Rv,NO,SO,ol,Rz).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Dv(){var e=0,t=1,n,r,i,o,a=gr,l=!1,c;function d(f){return f==null||isNaN(f=+f)?c:a(i===0?.5:(f=(o(f)-n)*i,l?Math.max(0,Math.min(1,f)):f))}d.domain=function(f){return arguments.length?([e,t]=f,n=o(e=+e),r=o(t=+t),i=n===r?0:1/(r-n),d):[e,t]},d.clamp=function(f){return arguments.length?(l=!!f,d):l},d.interpolator=function(f){return arguments.length?(a=f,d):a};function p(f){return function(m){var g,b;return arguments.length?([g,b]=m,a=f(g,b),d):[a(0),a(1)]}}return d.range=p(Zu),d.rangeRound=p(hO),d.unknown=function(f){return arguments.length?(c=f,d):c},function(f){return o=f,n=f(e),r=f(t),i=n===r?0:1/(r-n),d}}function bs(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Mz(){var e=xs(Dv()(gr));return e.copy=function(){return bs(e,Mz())},la.apply(e,arguments)}function Iz(){var e=yO(Dv()).domain([1,10]);return e.copy=function(){return bs(e,Iz()).base(e.base())},la.apply(e,arguments)}function Dz(){var e=vO(Dv());return e.copy=function(){return bs(e,Dz()).constant(e.constant())},la.apply(e,arguments)}function PO(){var e=xO(Dv());return e.copy=function(){return bs(e,PO()).exponent(e.exponent())},la.apply(e,arguments)}function ybe(){return PO.apply(null,arguments).exponent(.5)}function Lz(){var e=[],t=gr;function n(r){if(r!=null&&!isNaN(r=+r))return t((dp(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(rs),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,o)=>rve(e,o/r))},n.copy=function(){return Lz(t).domain(e)},la.apply(n,arguments)}function Lv(){var e=0,t=.5,n=1,r=1,i,o,a,l,c,d=gr,p,f=!1,m;function g(y){return isNaN(y=+y)?m:(y=.5+((y=+p(y))-o)*(r*y<r*o?l:c),d(f?Math.max(0,Math.min(1,y)):y))}g.domain=function(y){return arguments.length?([e,t,n]=y,i=p(e=+e),o=p(t=+t),a=p(n=+n),l=i===o?0:.5/(o-i),c=o===a?0:.5/(a-o),r=o<i?-1:1,g):[e,t,n]},g.clamp=function(y){return arguments.length?(f=!!y,g):f},g.interpolator=function(y){return arguments.length?(d=y,g):d};function b(y){return function(v){var x,_,j;return arguments.length?([x,_,j]=v,d=Pve(y,[x,_,j]),g):[d(0),d(.5),d(1)]}}return g.range=b(Zu),g.rangeRound=b(hO),g.unknown=function(y){return arguments.length?(m=y,g):m},function(y){return p=y,i=y(e),o=y(t),a=y(n),l=i===o?0:.5/(o-i),c=o===a?0:.5/(a-o),r=o<i?-1:1,g}}function Bz(){var e=xs(Lv()(gr));return e.copy=function(){return bs(e,Bz())},la.apply(e,arguments)}function $z(){var e=yO(Lv()).domain([.1,1,10]);return e.copy=function(){return bs(e,$z()).base(e.base())},la.apply(e,arguments)}function Fz(){var e=vO(Lv());return e.copy=function(){return bs(e,Fz()).constant(e.constant())},la.apply(e,arguments)}function AO(){var e=xO(Lv());return e.copy=function(){return bs(e,AO()).exponent(e.exponent())},la.apply(e,arguments)}function vbe(){return AO.apply(null,arguments).exponent(.5)}const OI=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:dh,scaleDiverging:Bz,scaleDivergingLog:$z,scaleDivergingPow:AO,scaleDivergingSqrt:vbe,scaleDivergingSymlog:Fz,scaleIdentity:vz,scaleImplicit:hj,scaleLinear:hy,scaleLog:bz,scaleOrdinal:uO,scalePoint:If,scalePow:bO,scaleQuantile:Sz,
vendor: 231,895 bytes, lines 645-694
645scaleQuantize:jz,scaleRadial:_z,scaleSequential:Mz,scaleSequentialLog:Iz,scaleSequentialPow:PO,scaleSequentialQuantile:Lz,scaleSequentialSqrt:ybe,scaleSequentialSymlog:Dz,scaleSqrt:Zve,scaleSymlog:wz,scaleThreshold:Nz,scaleTime:mbe,scaleUtc:gbe,tickFormat:yz},Symbol.toStringTag,{value:"Module"}));var W2,EI;function qz(){if(EI)return W2;EI=1;var e=Ku();function t(n,r,i){for(var o=-1,a=n.length;++o<a;){var l=n[o],c=r(l);if(c!=null&&(d===void 0?c===c&&!e(c):i(c,d)))var d=c,p=l}return p}return W2=t,W2}var G2,PI;function xbe(){if(PI)return G2;PI=1;function e(t,n){return t>n}return G2=e,G2}var K2,AI;function bbe(){if(AI)return K2;AI=1;var e=qz(),t=xbe(),n=Xu();function r(i){return i&&i.length?e(i,n,t):void 0}return K2=r,K2}var wbe=bbe();const Bv=Ct(wbe);var Y2,TI;function _be(){if(TI)return Y2;TI=1;function e(t,n){return t<n}return Y2=e,Y2}var X2,CI;function Sbe(){if(CI)return X2;CI=1;var e=qz(),t=_be(),n=Xu();function r(i){return i&&i.length?e(i,n,t):void 0}return X2=r,X2}var jbe=Sbe();const $v=Ct(jbe);var Q2,RI;function Nbe(){if(RI)return Q2;RI=1;var e=Qk(),t=vs(),n=X9(),r=Tr();function i(o,a){var l=r(o)?e:n;return l(o,t(a,3))}return Q2=i,Q2}var Z2,MI;function kbe(){if(MI)return Z2;MI=1;var e=K9(),t=Nbe();function n(r,i){return e(t(r,i),1)}return Z2=n,Z2}var Obe=kbe();const Ebe=Ct(Obe);var Pbe=m9();const Fv=Ct(Pbe);var Ju=1e9,Abe={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},CO,Xt=!0,mi="[DecimalError] ",bl=mi+"Invalid argument: ",TO=mi+"Exponent out of range: ",ed=Math.floor,Zs=Math.pow,Tbe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Vr,Mn=1e7,Vt=7,zz=9007199254740991,yy=ed(zz/Vt),Ue={};Ue.absoluteValue=Ue.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Ue.comparedTo=Ue.cmp=function(e){var t,n,r,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(r=o.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1};Ue.decimalPlaces=Ue.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Vt;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};Ue.dividedBy=Ue.div=function(e){return Ko(this,new this.constructor(e))};Ue.dividedToIntegerBy=Ue.idiv=function(e){var t=this,n=t.constructor;return It(Ko(t,new n(e),0,1),n.precision)};Ue.equals=Ue.eq=function(e){return!this.cmp(e)};Ue.exponent=function(){return vn(this)};Ue.greaterThan=Ue.gt=function(e){return this.cmp(e)>0};Ue.greaterThanOrEqualTo=Ue.gte=function(e){return this.cmp(e)>=0};Ue.isInteger=Ue.isint=function(){return this.e>this.d.length-2};Ue.isNegative=Ue.isneg=function(){return this.s<0};Ue.isPositive=Ue.ispos=function(){return this.s>0};Ue.isZero=function(){return this.s===0};Ue.lessThan=Ue.lt=function(e){return this.cmp(e)<0};Ue.lessThanOrEqualTo=Ue.lte=function(e){return this.cmp(e)<1};Ue.logarithm=Ue.log=function(e){var t,n=this,r=n.constructor,i=r.precision,o=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Vr))throw Error(mi+"NaN");if(n.s<1)throw Error(mi+(n.s?"NaN":"-Infinity"));return n.eq(Vr)?new r(0):(Xt=!1,t=Ko(gh(n,o),gh(e,o),o),Xt=!0,It(t,i))};Ue.minus=Ue.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Vz(t,e):Uz(t,(e.s=-e.s,e))};Ue.modulo=Ue.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(mi+"NaN");return n.s?(Xt=!1,t=Ko(n,e,0,1).times(e),Xt=!0,n.minus(t)):It(new r(n),i)};Ue.naturalExponential=Ue.exp=function(){return Hz(this)};Ue.naturalLogarithm=Ue.ln=function(){return gh(this)};Ue.negated=Ue.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Ue.plus=Ue.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Uz(t,e):Vz(t,(e.s=-e.s,e))};Ue.precision=Ue.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(bl+e);if(t=vn(i)+1,r=i.d.length-1,n=r*Vt+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};Ue.squareRoot=Ue.sqrt=function(){var e,t,n,r,i,o,a,l=this,c=l.constructor;if(l.s<1){if(!l.s)return new c(0);throw Error(mi+"NaN")}for(e=vn(l),Xt=!1,i=Math.sqrt(+l),i==0||i==1/0?(t=oo(l.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=ed((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new c(t)):r=new c(i.toString()),n=c.precision,i=a=n+3;;)if(o=r,r=o.plus(Ko(l,o,a+2)).times(.5),oo(o.d).slice(0,a)===(t=oo(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&t=="4999"){if(It(o,n+1,0),o.times(o).eq(l)){r=o;break}}else if(t!="9999")break;a+=4}return Xt=!0,It(r,n)};Ue.times=Ue.mul=function(e){var t,n,r,i,o,a,l,c,d,p=this,f=p.constructor,m=p.d,g=(e=new f(e)).d;if(!p.s||!e.s)return new f(0);for(e.s*=p.s,n=p.e+e.e,c=m.length,d=g.length,c<d&&(o=m,m=g,g=o,a=c,c=d,d=a),o=[],a=c+d,r=a;r--;)o.push(0);for(r=d;--r>=0;){for(t=0,i=c+r;i>r;)l=o[i]+g[r]*m[i-r-1]+t,o[i--]=l%Mn|0,t=l/Mn|0;o[i]=(o[i]+t)%Mn|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,Xt?It(e,f.precision):e};Ue.toDecimalPlaces=Ue.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(go(e,0,Ju),t===void 0?t=r.rounding:go(t,0,8),It(n,e+vn(n)+1,t))};Ue.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=Cl(r,!0):(go(e,0,Ju),t===void 0?t=i.rounding:go(t,0,8),r=It(new i(r),e+1,t),n=Cl(r,!0,e+1)),n};Ue.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?Cl(i):(go(e,0,Ju),t===void 0?t=o.rounding:go(t,0,8),r=It(new o(i),e+vn(i)+1,t),n=Cl(r.abs(),!1,e+vn(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};Ue.toInteger=Ue.toint=function(){var e=this,t=e.constructor;return It(new t(e),vn(e)+1,t.rounding)};Ue.toNumber=function(){return+this};Ue.toPower=Ue.pow=function(e){var t,n,r,i,o,a,l=this,c=l.constructor,d=12,p=+(e=new c(e));if(!e.s)return new c(Vr);if(l=new c(l),!l.s){if(e.s<1)throw Error(mi+"Infinity");return l}if(l.eq(Vr))return l;if(r=c.precision,e.eq(Vr))return It(l,r);if(t=e.e,n=e.d.length-1,a=t>=n,o=l.s,a){if((n=p<0?-p:p)<=zz){for(i=new c(Vr),t=Math.ceil(r/Vt+4),Xt=!1;n%2&&(i=i.times(l),DI(i.d,t)),n=ed(n/2),n!==0;)l=l.times(l),DI(l.d,t);return Xt=!0,e.s<0?new c(Vr).div(i):It(i,r)}}else if(o<0)throw Error(mi+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,l.s=1,Xt=!1,i=e.times(gh(l,r+d)),Xt=!0,i=Hz(i),i.s=o,i};Ue.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?(n=vn(i),r=Cl(i,n<=o.toExpNeg||n>=o.toExpPos)):(go(e,1,Ju),t===void 0?t=o.rounding:go(t,0,8),i=It(new o(i),e,t),n=vn(i),r=Cl(i,e<=n||n<=o.toExpNeg,e)),r};Ue.toSignificantDigits=Ue.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(go(e,1,Ju),t===void 0?t=r.rounding:go(t,0,8)),It(new r(n),e,t)};Ue.toString=Ue.valueOf=Ue.val=Ue.toJSON=Ue[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=vn(e),n=e.constructor;return Cl(e,t<=n.toExpNeg||t>=n.toExpPos)};function Uz(e,t){var n,r,i,o,a,l,c,d,p=e.constructor,f=p.precision;if(!e.s||!t.s)return t.s||(t=new p(e)),Xt?It(t,f):t;if(c=e.d,d=t.d,a=e.e,i=t.e,c=c.slice(),o=a-i,o){for(o<0?(r=c,o=-o,l=d.length):(r=d,i=a,l=c.length),a=Math.ceil(f/Vt),l=a>l?a+1:l+1,o>l&&(o=l,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(l=c.length,o=d.length,l-o<0&&(o=l,r=d,d=c,c=r),n=0;o;)n=(c[--o]=c[o]+d[o]+n)/Mn|0,c[o]%=Mn;for(n&&(c.unshift(n),++i),l=c.length;c[--l]==0;)c.pop();return t.d=c,t.e=i,Xt?It(t,f):t}function go(e,t,n){if(e!==~~e||e<t||e>n)throw Error(bl+e)}function oo(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)r=e[t]+"",n=Vt-r.length,n&&(o+=Fa(n)),o+=r;a=e[t],r=a+"",n=Vt-r.length,n&&(o+=Fa(n))}else if(a===0)return"0";for(;a%10===0;)a/=10;return o+a}var Ko=(function(){function e(r,i){var o,a=0,l=r.length;for(r=r.slice();l--;)o=r[l]*i+a,r[l]=o%Mn|0,a=o/Mn|0;return a&&r.unshift(a),r}function t(r,i,o,a){var l,c;if(o!=a)c=o>a?1:-1;else for(l=c=0;l<o;l++)if(r[l]!=i[l]){c=r[l]>i[l]?1:-1;break}return c}function n(r,i,o){for(var a=0;o--;)r[o]-=a,a=r[o]<i[o]?1:0,r[o]=a*Mn+r[o]-i[o];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,o,a){var l,c,d,p,f,m,g,b,y,v,x,_,j,S,N,O,E,A,I=r.constructor,M=r.s==i.s?1:-1,C=r.d,R=i.d;if(!r.s)return new I(r);if(!i.s)throw Error(mi+"Division by zero");for(c=r.e-i.e,E=R.length,N=C.length,g=new I(M),b=g.d=[],d=0;R[d]==(C[d]||0);)++d;if(R[d]>(C[d]||0)&&--c,o==null?_=o=I.precision:a?_=o+(vn(r)-vn(i))+1:_=o,_<0)return new I(0);if(_=_/Vt+2|0,d=0,E==1)for(p=0,R=R[0],_++;(d<N||p)&&_--;d++)j=p*Mn+(C[d]||0),b[d]=j/R|0,p=j%R|0;else{for(p=Mn/(R[0]+1)|0,p>1&&(R=e(R,p),C=e(C,p),E=R.length,N=C.length),S=E,y=C.slice(0,E),v=y.length;v<E;)y[v++]=0;A=R.slice(),A.unshift(0),O=R[0],R[1]>=Mn/2&&++O;do p=0,l=t(R,y,E,v),l<0?(x=y[0],E!=v&&(x=x*Mn+(y[1]||0)),p=x/O|0,p>1?(p>=Mn&&(p=Mn-1),f=e(R,p),m=f.length,v=y.length,l=t(f,y,m,v),l==1&&(p--,n(f,E<m?A:R,m))):(p==0&&(l=p=1),f=R.slice()),m=f.length,m<v&&f.unshift(0),n(y,f,v),l==-1&&(v=y.length,l=t(R,y,E,v),l<1&&(p++,n(y,E<v?A:R,v))),v=y.length):l===0&&(p++,y=[0]),b[d++]=p,l&&y[0]?y[v++]=C[S]||0:(y=[C[S]],v=1);while((S++<N||y[0]!==void 0)&&_--)}return b[0]||b.shift(),g.e=c,It(g,a?o+vn(g)+1:o)}})();function Hz(e,t){var n,r,i,o,a,l,c=0,d=0,p=e.constructor,f=p.precision;if(vn(e)>16)throw Error(TO+vn(e));if(!e.s)return new p(Vr);for(Xt=!1,l=f,a=new p(.03125);e.abs().gte(.1);)e=e.times(a),d+=5;for(r=Math.log(Zs(2,d))/Math.LN10*2+5|0,l+=r,n=i=o=new p(Vr),p.precision=l;;){if(i=It(i.times(e),l),n=n.times(++c),a=o.plus(Ko(i,n,l)),oo(a.d).slice(0,l)===oo(o.d).slice(0,l)){for(;d--;)o=It(o.times(o),l);return p.precision=f,t==null?(Xt=!0,It(o,f)):o}o=a}}function vn(e){for(var t=e.e*Vt,n=e.d[0];n>=10;n/=10)t++;return t}function J2(e,t,n){if(t>e.LN10.sd())throw Xt=!0,n&&(e.precision=n),Error(mi+"LN10 precision limit exceeded");return It(new e(e.LN10),t)}function Fa(e){for(var t="";e--;)t+="0";return t}function gh(e,t){var n,r,i,o,a,l,c,d,p,f=1,m=10,g=e,b=g.d,y=g.constructor,v=y.precision;if(g.s<1)throw Error(mi+(g.s?"NaN":"-Infinity"));if(g.eq(Vr))return new y(0);if(t==null?(Xt=!1,d=v):d=t,g.eq(10))return t==null&&(Xt=!0),J2(y,d);if(d+=m,y.precision=d,n=oo(b),r=n.charAt(0),o=vn(g),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)g=g.times(e),n=oo(g.d),r=n.charAt(0),f++;o=vn(g),r>1?(g=new y("0."+n),o++):g=new y(r+"."+n.slice(1))}else return c=J2(y,d+2,v).times(o+""),g=gh(new y(r+"."+n.slice(1)),d-m).plus(c),y.precision=v,t==null?(Xt=!0,It(g,v)):g;for(l=a=g=Ko(g.minus(Vr),g.plus(Vr),d),p=It(g.times(g),d),i=3;;){if(a=It(a.times(p),d),c=l.plus(Ko(a,new y(i),d)),oo(c.d).slice(0,d)===oo(l.d).slice(0,d))return l=l.times(2),o!==0&&(l=l.plus(J2(y,d+2,v).times(o+""))),l=Ko(l,new y(f),d),y.precision=v,t==null?(Xt=!0,It(l,v)):l;l=c,i+=2}}function II(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=ed(n/Vt),e.d=[],r=(n+1)%Vt,n<0&&(r+=Vt),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=Vt;r<i;)e.d.push(+t.slice(r,r+=Vt));t=t.slice(r),r=Vt-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),Xt&&(e.e>yy||e.e<-yy))throw Error(TO+n)}else e.s=0,e.e=0,e.d=[0];return e}function It(e,t,n){var r,i,o,a,l,c,d,p,f=e.d;for(a=1,o=f[0];o>=10;o/=10)a++;if(r=t-a,r<0)r+=Vt,i=t,d=f[p=0];else{if(p=Math.ceil((r+1)/Vt),o=f.length,p>=o)return e;for(d=o=f[p],a=1;o>=10;o/=10)a++;r%=Vt,i=r-Vt+a}if(n!==void 0&&(o=Zs(10,a-i-1),l=d/o%10|0,c=t<0||f[p+1]!==void 0||d%o,c=n<4?(l||c)&&(n==0||n==(e.s<0?3:2)):l>5||l==5&&(n==4||c||n==6&&(r>0?i>0?d/Zs(10,a-i):0:f[p-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return c?(o=vn(e),f.length=1,t=t-o-1,f[0]=Zs(10,(Vt-t%Vt)%Vt),e.e=ed(-t/Vt)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(r==0?(f.length=p,o=1,p--):(f.length=p+1,o=Zs(10,Vt-r),f[p]=i>0?(d/Zs(10,a-i)%Zs(10,i)|0)*o:0),c)for(;;)if(p==0){(f[0]+=o)==Mn&&(f[0]=1,++e.e);break}else{if(f[p]+=o,f[p]!=Mn)break;f[p--]=0,o=1}for(r=f.length;f[--r]===0;)f.pop();if(Xt&&(e.e>yy||e.e<-yy))throw Error(TO+vn(e));return e}function Vz(e,t){var n,r,i,o,a,l,c,d,p,f,m=e.constructor,g=m.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new m(e),Xt?It(t,g):t;if(c=e.d,f=t.d,r=t.e,d=e.e,c=c.slice(),a=d-r,a){for(p=a<0,p?(n=c,a=-a,l=f.length):(n=f,r=d,l=c.length),i=Math.max(Math.ceil(g/Vt),l)+2,a>i&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for(i=c.length,l=f.length,p=i<l,p&&(l=i),i=0;i<l;i++)if(c[i]!=f[i]){p=c[i]<f[i];break}a=0}for(p&&(n=c,c=f,f=n,t.s=-t.s),l=c.length,i=f.length-l;i>0;--i)c[l++]=0;for(i=f.length;i>a;){if(c[--i]<f[i]){for(o=i;o&&c[--o]===0;)c[o]=Mn-1;--c[o],c[i]+=Mn}c[i]-=f[i]}for(;c[--l]===0;)c.pop();for(;c[0]===0;c.shift())--r;return c[0]?(t.d=c,t.e=r,Xt?It(t,g):t):new m(0)}function Cl(e,t,n){var r,i=vn(e),o=oo(e.d),a=o.length;return t?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+Fa(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+Fa(-i-1)+o,n&&(r=n-a)>0&&(o+=Fa(r))):i>=a?(o+=Fa(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+Fa(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=Fa(r))),e.s<0?"-"+o:o}function DI(e,t){if(e.length>t)return e.length=t,!0}function Wz(e){var t,n,r;function i(o){var a=this;if(!(a instanceof i))return new i(o);if(a.constructor=i,o instanceof i){a.s=o.s,a.e=o.e,a.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(bl+o);if(o>0)a.s=1;else if(o<0)o=-o,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(o===~~o&&o<1e7){a.e=0,a.d=[o];return}return II(a,o.toString())}else if(typeof o!="string")throw Error(bl+o);if(o.charCodeAt(0)===45?(o=o.slice(1),a.s=-1):a.s=1,Tbe.test(o))II(a,o);else throw Error(bl+o)}if(i.prototype=Ue,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=Wz,i.config=i.set=Cbe,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function Cbe(e){if(!e||typeof e!="object")throw Error(mi+"Object expected");var t,n,r,i=["precision",1,Ju,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((r=e[n=i[t]])!==void 0)if(ed(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(bl+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(bl+n+": "+r);return this}var CO=Wz(Abe);Vr=new CO(1);const Mt=CO;function Rbe(e){return Lbe(e)||Dbe(e)||Ibe(e)||Mbe()}function Mbe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
646In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ibe(e,t){if(e){if(typeof e=="string")return yj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yj(e,t)}}function Dbe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Lbe(e){if(Array.isArray(e))return yj(e)}function yj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Bbe=function(t){return t},Gz={},Kz=function(t){return t===Gz},LI=function(t){return function n(){return arguments.length===0||arguments.length===1&&Kz(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},$be=function e(t,n){return t===1?n:LI(function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i.filter(function(l){return l!==Gz}).length;return a>=t?n.apply(void 0,i):e(t-a,LI(function(){for(var l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];var p=i.map(function(f){return Kz(f)?c.shift():f});return n.apply(void 0,Rbe(p).concat(c))}))})},qv=function(t){return $be(t.length,t)},vj=function(t,n){for(var r=[],i=t;i<n;++i)r[i-t]=i;return r},Fbe=qv(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),qbe=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return Bbe;var i=n.reverse(),o=i[0],a=i.slice(1);return function(){return a.reduce(function(l,c){return c(l)},o.apply(void 0,arguments))}},xj=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Yz=function(t){var n=null,r=null;return function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n&&o.every(function(l,c){return l===n[c]})||(n=o,r=t.apply(void 0,o)),r}};function zbe(e){var t;return e===0?t=1:t=Math.floor(new Mt(e).abs().log(10).toNumber())+1,t}function Ube(e,t,n){for(var r=new Mt(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o}var Hbe=qv(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),Vbe=qv(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),Wbe=qv(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const zv={rangeStep:Ube,getDigitCount:zbe,interpolateNumber:Hbe,uninterpolateNumber:Vbe,uninterpolateTruncation:Wbe};function bj(e){return Ybe(e)||Kbe(e)||Xz(e)||Gbe()}function Gbe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
647In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kbe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Ybe(e){if(Array.isArray(e))return wj(e)}function yh(e,t){return Zbe(e)||Qbe(e,t)||Xz(e,t)||Xbe()}function Xbe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
648In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xz(e,t){if(e){if(typeof e=="string")return wj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wj(e,t)}}function wj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Qbe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,o=void 0;try{for(var a=e[Symbol.iterator](),l;!(r=(l=a.next()).done)&&(n.push(l.value),!(t&&n.length===t));r=!0);}catch(c){i=!0,o=c}finally{try{!r&&a.return!=null&&a.return()}finally{if(i)throw o}}return n}}function Zbe(e){if(Array.isArray(e))return e}function Qz(e){var t=yh(e,2),n=t[0],r=t[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function Zz(e,t,n){if(e.lte(0))return new Mt(0);var r=zv.getDigitCount(e.toNumber()),i=new Mt(10).pow(r),o=e.div(i),a=r!==1?.05:.1,l=new Mt(Math.ceil(o.div(a).toNumber())).add(n).mul(a),c=l.mul(i);return t?c:new Mt(Math.ceil(c))}function Jbe(e,t,n){var r=1,i=new Mt(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new Mt(10).pow(zv.getDigitCount(e)-1),i=new Mt(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new Mt(Math.floor(e)))}else e===0?i=new Mt(Math.floor((t-1)/2)):n||(i=new Mt(Math.floor(e)));var a=Math.floor((t-1)/2),l=qbe(Fbe(function(c){return i.add(new Mt(c-a).mul(r)).toNumber()}),vj);return l(0,t)}function Jz(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new Mt(0),tickMin:new Mt(0),tickMax:new Mt(0)};var o=Zz(new Mt(t).sub(e).div(n-1),r,i),a;e<=0&&t>=0?a=new Mt(0):(a=new Mt(e).add(t).div(2),a=a.sub(new Mt(a).mod(o)));var l=Math.ceil(a.sub(e).div(o).toNumber()),c=Math.ceil(new Mt(t).sub(a).div(o).toNumber()),d=l+c+1;return d>n?Jz(e,t,n,r,i+1):(d<n&&(c=t>0?c+(n-d):c,l=t>0?l:l+(n-d)),{step:o,tickMin:a.sub(new Mt(l).mul(o)),tickMax:a.add(new Mt(c).mul(o))})}function e0e(e){var t=yh(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(i,2),l=Qz([n,r]),c=yh(l,2),d=c[0],p=c[1];if(d===-1/0||p===1/0){var f=p===1/0?[d].concat(bj(vj(0,i-1).map(function(){return 1/0}))):[].concat(bj(vj(0,i-1).map(function(){return-1/0})),[p]);return n>r?xj(f):f}if(d===p)return Jbe(d,i,o);var m=Jz(d,p,a,o),g=m.step,b=m.tickMin,y=m.tickMax,v=zv.rangeStep(b,y.add(new Mt(.1).mul(g)),g);return n>r?xj(v):v}function t0e(e,t){var n=yh(e,2),r=n[0],i=n[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Qz([r,i]),l=yh(a,2),c=l[0],d=l[1];if(c===-1/0||d===1/0)return[r,i];if(c===d)return[c];var p=Math.max(t,2),f=Zz(new Mt(d).sub(c).div(p-1),o,0),m=[].concat(bj(zv.rangeStep(new Mt(c),new Mt(d).sub(new Mt(.99).mul(f)),f)),[d]);return r>i?xj(m):m}var n0e=Yz(e0e),r0e=Yz(t0e),i0e="Invariant failed";function Rl(e,t){throw new Error(i0e)}var o0e=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function xu(e){"@babel/helpers - typeof";return xu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xu(e)}function vy(){return vy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vy.apply(this,arguments)}function a0e(e,t){return u0e(e)||c0e(e,t)||l0e(e,t)||s0e()}function s0e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
649In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function l0e(e,t){if(e){if(typeof e=="string")return BI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return BI(e,t)}}function BI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c0e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(p){d=!0,i=p}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw i}}return l}}function u0e(e){if(Array.isArray(e))return e}function d0e(e,t){if(e==null)return{};var n=f0e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function f0e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function h0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p0e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,n7(r.key),r)}}function m0e(e,t,n){return t&&p0e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function g0e(e,t,n){return t=xy(t),y0e(e,e7()?Reflect.construct(t,n||[],xy(e).constructor):t.apply(e,n))}function y0e(e,t){if(t&&(xu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v0e(e)}function v0e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function e7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(e7=function(){return!!e})()}function xy(e){return xy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xy(e)}function x0e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_j(e,t)}function _j(e,t){return _j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},_j(e,t)}function t7(e,t,n){return t=n7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n7(e){var t=b0e(e,"string");return xu(t)=="symbol"?t:t+""}function b0e(e,t){if(xu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var mp=(function(e){function t(){return h0e(this,t),g0e(this,t,arguments)}return x0e(t,e),m0e(t,[{key:"render",value:function(){var r=this.props,i=r.offset,o=r.layout,a=r.width,l=r.dataKey,c=r.data,d=r.dataPointFormatter,p=r.xAxis,f=r.yAxis,m=d0e(r,o0e),g=vt(m,!1);this.props.direction==="x"&&p.type!=="number"&&Rl();var b=c.map(function(y){var v=d(y,l),x=v.x,_=v.y,j=v.value,S=v.errorVal;if(!S)return null;var N=[],O,E;if(Array.isArray(S)){var A=a0e(S,2);O=A[0],E=A[1]}else O=E=S;if(o==="vertical"){var I=p.scale,M=_+i,C=M+a,R=M-a,B=I(j-O),$=I(j+E);N.push({x1:$,y1:C,x2:$,y2:R}),N.push({x1:B,y1:M,x2:$,y2:M}),N.push({x1:B,y1:C,x2:B,y2:R})}else if(o==="horizontal"){var z=f.scale,H=x+i,V=H-a,Y=H+a,W=z(j-O),q=z(j+E);N.push({x1:V,y1:q,x2:Y,y2:q}),N.push({x1:H,y1:W,x2:H,y2:q}),N.push({x1:V,y1:W,x2:Y,y2:W})}return ue.createElement(cn,vy({className:"recharts-errorBar",key:"bar-".concat(N.map(function(D){return"".concat(D.x1,"-").concat(D.x2,"-").concat(D.y1,"-").concat(D.y2)}))},g),N.map(function(D){return ue.createElement("line",vy({},D,{key:"line-".concat(D.x1,"-").concat(D.x2,"-").concat(D.y1,"-").concat(D.y2)}))}))});return ue.createElement(cn,{className:"recharts-errorBars"},b)}}])})(ue.Component);t7(mp,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});t7(mp,"displayName","ErrorBar");function vh(e){"@babel/helpers - typeof";return vh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vh(e)}function $I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ws(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$I(Object(n),!0).forEach(function(r){w0e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$I(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function w0e(e,t,n){return t=_0e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _0e(e){var t=S0e(e,"string");return vh(t)=="symbol"?t:t+""}function S0e(e,t){if(vh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var r7=function(t){var n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,o=t.legendContent,a=Ur(n,Hc);if(!a)return null;var l=Hc.defaultProps,c=l!==void 0?Ws(Ws({},l),a.props):{},d;return a.props&&a.props.payload?d=a.props&&a.props.payload:o==="children"?d=(r||[]).reduce(function(p,f){var m=f.item,g=f.props,b=g.sectors||g.data||[];return p.concat(b.map(function(y){return{type:a.props.iconType||m.props.legendType,value:y.name,color:y.fill,payload:y}}))},[]):d=(r||[]).map(function(p){var f=p.item,m=f.type.defaultProps,g=m!==void 0?Ws(Ws({},m),f.props):{},b=g.dataKey,y=g.name,v=g.legendType,x=g.hide;return{inactive:x,dataKey:b,type:c.iconType||v||"square",color:RO(f),value:y||b,payload:g}}),Ws(Ws(Ws({},c),Hc.getWithHeight(a,i)),{},{payload:d,item:a})};function xh(e){"@babel/helpers - typeof";return xh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xh(e)}function FI(e){return O0e(e)||k0e(e)||N0e(e)||j0e()}function j0e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
650In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function N0e(e,t){if(e){if(typeof e=="string")return Sj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Sj(e,t)}}function k0e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function O0e(e){if(Array.isArray(e))return Sj(e)}function Sj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function on(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qI(Object(n),!0).forEach(function(r){Wc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wc(e,t,n){return t=E0e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E0e(e){var t=P0e(e,"string");return xh(t)=="symbol"?t:t+""}function P0e(e,t){if(xh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yr(e,t,n){return ft(e)||ft(t)?n:kn(t)?fi(e,t,n):ut(t)?t(e):n}function Df(e,t,n,r){var i=Ebe(e,function(l){return Yr(l,t)});if(n==="number"){var o=i.filter(function(l){return Re(l)||parseFloat(l)});return o.length?[$v(o),Bv(o)]:[1/0,-1/0]}var a=r?i.filter(function(l){return!ft(l)}):i;return a.map(function(l){return kn(l)||l instanceof Date?l:""})}var A0e=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,a=-1,l=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(l<=1)return 0;if(o&&o.axisType==="angleAxis"&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var c=o.range,d=0;d<l;d++){var p=d>0?i[d-1].coordinate:i[l-1].coordinate,f=i[d].coordinate,m=d>=l-1?i[0].coordinate:i[d+1].coordinate,g=void 0;if(Bi(f-p)!==Bi(m-f)){var b=[];if(Bi(m-f)===Bi(c[1]-c[0])){g=m;var y=f+c[1]-c[0];b[0]=Math.min(y,(y+p)/2),b[1]=Math.max(y,(y+p)/2)}else{g=p;var v=m+c[1]-c[0];b[0]=Math.min(f,(v+f)/2),b[1]=Math.max(f,(v+f)/2)}var x=[Math.min(f,(g+f)/2),Math.max(f,(g+f)/2)];if(t>x[0]&&t<=x[1]||t>=b[0]&&t<=b[1]){a=i[d].index;break}}else{var _=Math.min(p,m),j=Math.max(p,m);if(t>(_+f)/2&&t<=(j+f)/2){a=i[d].index;break}}}else for(var S=0;S<l;S++)if(S===0&&t<=(r[S].coordinate+r[S+1].coordinate)/2||S>0&&S<l-1&&t>(r[S].coordinate+r[S-1].coordinate)/2&&t<=(r[S].coordinate+r[S+1].coordinate)/2||S===l-1&&t>(r[S].coordinate+r[S-1].coordinate)/2){a=r[S].index;break}return a},RO=function(t){var n,r=t,i=r.type.displayName,o=(n=t.type)!==null&&n!==void 0&&n.defaultProps?on(on({},t.type.defaultProps),t.props):t.props,a=o.stroke,l=o.fill,c;switch(i){case"Line":c=a;break;case"Area":case"Radar":c=a&&a!=="none"?a:l;break;default:c=l;break}return c},T0e=function(t){var n=t.barSize,r=t.totalSize,i=t.stackGroups,o=i===void 0?{}:i;if(!o)return{};for(var a={},l=Object.keys(o),c=0,d=l.length;c<d;c++)for(var p=o[l[c]].stackGroups,f=Object.keys(p),m=0,g=f.length;m<g;m++){var b=p[f[m]],y=b.items,v=b.cateAxisId,x=y.filter(function(E){return Wo(E.type).indexOf("Bar")>=0});if(x&&x.length){var _=x[0].type.defaultProps,j=_!==void 0?on(on({},_),x[0].props):x[0].props,S=j.barSize,N=j[v];a[N]||(a[N]=[]);var O=ft(S)?n:S;a[N].push({item:x[0],stackList:x.slice(1),barSize:ft(O)?void 0:Tl(O,r,0)})}}return a},C0e=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,o=t.sizeList,a=o===void 0?[]:o,l=t.maxBarSize,c=a.length;if(c<1)return null;var d=Tl(n,i,0,!0),p,f=[];if(a[0].barSize===+a[0].barSize){var m=!1,g=i/c,b=a.reduce(function(S,N){return S+N.barSize||0},0);b+=(c-1)*d,b>=i&&(b-=(c-1)*d,d=0),b>=i&&g>0&&(m=!0,g*=.9,b=c*g);var y=(i-b)/2>>0,v={offset:y-d,size:0};p=a.reduce(function(S,N){var O={item:N.item,position:{offset:v.offset+v.size+d,size:m?g:N.barSize}},E=[].concat(FI(S),[O]);return v=E[E.length-1].position,N.stackList&&N.stackList.length&&N.stackList.forEach(function(A){E.push({item:A,position:v})}),E},f)}else{var x=Tl(r,i,0,!0);i-2*x-(c-1)*d<=0&&(d=0);var _=(i-2*x-(c-1)*d)/c;_>1&&(_>>=0);var j=l===+l?Math.min(_,l):_;p=a.reduce(function(S,N,O){var E=[].concat(FI(S),[{item:N.item,position:{offset:x+(_+d)*O+(_-j)/2,size:j}}]);return N.stackList&&N.stackList.length&&N.stackList.forEach(function(A){E.push({item:A,position:E[E.length-1].position})}),E},f)}return p},R0e=function(t,n,r,i){var o=r.children,a=r.width,l=r.margin,c=a-(l.left||0)-(l.right||0),d=r7({children:o,legendWidth:c});if(d){var p=i||{},f=p.width,m=p.height,g=d.align,b=d.verticalAlign,y=d.layout;if((y==="vertical"||y==="horizontal"&&b==="middle")&&g!=="center"&&Re(t[g]))return on(on({},t),{},Wc({},g,t[g]+(f||0)));if((y==="horizontal"||y==="vertical"&&g==="center")&&b!=="middle"&&Re(t[b]))return on(on({},t),{},Wc({},b,t[b]+(m||0)))}return t},M0e=function(t,n,r){return ft(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},i7=function(t,n,r,i,o){var a=n.props.children,l=hi(a,mp).filter(function(d){return M0e(i,o,d.props.direction)});if(l&&l.length){var c=l.map(function(d){return d.props.dataKey});return t.reduce(function(d,p){var f=Yr(p,r);if(ft(f))return d;var m=Array.isArray(f)?[$v(f),Bv(f)]:[f,f],g=c.reduce(function(b,y){var v=Yr(p,y,0),x=m[0]-Math.abs(Array.isArray(v)?v[0]:v),_=m[1]+Math.abs(Array.isArray(v)?v[1]:v);return[Math.min(x,b[0]),Math.max(_,b[1])]},[1/0,-1/0]);return[Math.min(g[0],d[0]),Math.max(g[1],d[1])]},[1/0,-1/0])}return null},I0e=function(t,n,r,i,o){var a=n.map(function(l){return i7(t,l,r,o,i)}).filter(function(l){return!ft(l)});return a&&a.length?a.reduce(function(l,c){return[Math.min(l[0],c[0]),Math.max(l[1],c[1])]},[1/0,-1/0]):null},o7=function(t,n,r,i,o){var a=n.map(function(c){var d=c.props.dataKey;return r==="number"&&d&&i7(t,c,d,i)||Df(t,d,r,o)});if(r==="number")return a.reduce(function(c,d){return[Math.min(c[0],d[0]),Math.max(c[1],d[1])]},[1/0,-1/0]);var l={};return a.reduce(function(c,d){for(var p=0,f=d.length;p<f;p++)l[d[p]]||(l[d[p]]=!0,c.push(d[p]));return c},[])},a7=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},s7=function(t,n,r,i){if(i)return t.map(function(c){return c.coordinate});var o,a,l=t.map(function(c){return c.coordinate===n&&(o=!0),c.coordinate===r&&(a=!0),c.coordinate});return o||l.push(n),a||l.push(r),l},Uo=function(t,n,r){if(!t)return null;var i=t.scale,o=t.duplicateDomain,a=t.type,l=t.range,c=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,d=(n||r)&&a==="category"&&i.bandwidth?i.bandwidth()/c:0;if(d=t.axisType==="angleAxis"&&(l==null?void 0:l.length)>=2?Bi(l[0]-l[1])*2*d:d,n&&(t.ticks||t.niceTicks)){var p=(t.ticks||t.niceTicks).map(function(f){var m=o?o.indexOf(f):f;return{coordinate:i(m)+d,value:f,offset:d}});return p.filter(function(f){return!cp(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,m){return{coordinate:i(f)+d,value:f,index:m,offset:d}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(f){return{coordinate:i(f)+d,value:f,offset:d}}):i.domain().map(function(f,m){return{coordinate:i(f)+d,value:o?o[f]:f,index:m,offset:d}})},e_=new WeakMap,Xm=function(t,n){if(typeof n!="function")return t;e_.has(t)||e_.set(t,new WeakMap);var r=e_.get(t);if(r.has(n))return r.get(n);var i=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,i),i},D0e=function(t,n,r){var i=t.scale,o=t.type,a=t.layout,l=t.axisType;if(i==="auto")return a==="radial"&&l==="radiusAxis"?{scale:dh(),realScaleType:"band"}:a==="radial"&&l==="angleAxis"?{scale:hy(),realScaleType:"linear"}:o==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:If(),realScaleType:"point"}:o==="category"?{scale:dh(),realScaleType:"band"}:{scale:hy(),realScaleType:"linear"};if(Al(i)){var c="scale".concat(kv(i));return{scale:(OI[c]||If)(),realScaleType:OI[c]?c:"point"}}return ut(i)?{scale:i}:{scale:If(),realScaleType:"point"}},zI=1e-4,L0e=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,i=t.range(),o=Math.min(i[0],i[1])-zI,a=Math.max(i[0],i[1])+zI,l=t(n[0]),c=t(n[r-1]);(l<o||l>a||c<o||c>a)&&t.domain([n[0],n[r-1]])}},B0e=function(t,n){if(!t)return null;for(var r=0,i=t.length;r<i;r++)if(t[r].item===n)return t[r].position;return null},$0e=function(t,n){if(!n||n.length!==2||!Re(n[0])||!Re(n[1]))return t;var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]),o=[t[0],t[1]];return(!Re(t[0])||t[0]<r)&&(o[0]=r),(!Re(t[1])||t[1]>i)&&(o[1]=i),o[0]>i&&(o[0]=i),o[1]<r&&(o[1]=r),o},F0e=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var o=0,a=0,l=0;l<n;++l){var c=cp(t[l][r][1])?t[l][r][0]:t[l][r][1];c>=0?(t[l][r][0]=o,t[l][r][1]=o+c,o=t[l][r][1]):(t[l][r][0]=a,t[l][r][1]=a+c,a=t[l][r][1])}},q0e=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var o=0,a=0;a<n;++a){var l=cp(t[a][r][1])?t[a][r][0]:t[a][r][1];l>=0?(t[a][r][0]=o,t[a][r][1]=o+l,o=t[a][r][1]):(t[a][r][0]=0,t[a][r][1]=0)}},z0e={sign:F0e,expand:tme,none:du,silhouette:nme,wiggle:rme,positive:q0e},U0e=function(t,n,r){var i=n.map(function(l){return l.props.dataKey}),o=z0e[r],a=eme().keys(i).value(function(l,c){return+Yr(l,c,0)}).order(JS).offset(o);return a(t)},H0e=function(t,n,r,i,o,a){if(!t)return null;var l=a?n.reverse():n,c={},d=l.reduce(function(f,m){var g,b=(g=m.type)!==null&&g!==void 0&&g.defaultProps?on(on({},m.type.defaultProps),m.props):m.props,y=b.stackId,v=b.hide;if(v)return f;var x=b[r],_=f[x]||{hasStack:!1,stackGroups:{}};if(kn(y)){var j=_.stackGroups[y]||{numericAxisId:r,cateAxisId:i,items:[]};j.items.push(m),_.hasStack=!0,_.stackGroups[y]=j}else _.stackGroups[up("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[m]};return on(on({},f),{},Wc({},x,_))},c),p={};return Object.keys(d).reduce(function(f,m){var g=d[m];if(g.hasStack){var b={};g.stackGroups=Object.keys(g.stackGroups).reduce(function(y,v){var x=g.stackGroups[v];return on(on({},y),{},Wc({},v,{numericAxisId:r,cateAxisId:i,items:x.items,stackedData:U0e(t,x.items,o)}))},b)}return on(on({},f),{},Wc({},m,g))},p)},V0e=function(t,n){var r=n.realScaleType,i=n.type,o=n.tickCount,a=n.originalDomain,l=n.allowDecimals,c=r||n.scale;if(c!=="auto"&&c!=="linear")return null;if(o&&i==="number"&&a&&(a[0]==="auto"||a[1]==="auto")){var d=t.domain();if(!d.length)return null;var p=n0e(d,o,l);return t.domain([$v(p),Bv(p)]),{niceTicks:p}}if(o&&i==="number"){var f=t.domain(),m=r0e(f,o,l);return{niceTicks:m}}return null};function UI(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,o=e.index,a=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!ft(i[t.dataKey])){var l=Wg(n,"value",i[t.dataKey]);if(l)return l.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var c=Yr(i,ft(a)?t.dataKey:a);return ft(c)?null:t.scale(c)}var HI=function(t){var n=t.axis,r=t.ticks,i=t.offset,o=t.bandSize,a=t.entry,l=t.index;if(n.type==="category")return r[l]?r[l].coordinate+i:null;var c=Yr(a,n.dataKey,n.domain[l]);return ft(c)?null:n.scale(c)-o/2+i},W0e=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var i=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return i<=0&&o>=0?0:o<0?o:i}return r[0]},G0e=function(t,n){var r,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?on(on({},t.type.defaultProps),t.props):t.props,o=i.stackId;if(kn(o)){var a=n[o];if(a){var l=a.items.indexOf(t);return l>=0?a.stackedData[l]:null}}return null},K0e=function(t){return t.reduce(function(n,r){return[$v(r.concat([n[0]]).filter(Re)),Bv(r.concat([n[1]]).filter(Re))]},[1/0,-1/0])},l7=function(t,n,r){return Object.keys(t).reduce(function(i,o){var a=t[o],l=a.stackedData,c=l.reduce(function(d,p){var f=K0e(p.slice(n,r+1));return[Math.min(d[0],f[0]),Math.max(d[1],f[1])]},[1/0,-1/0]);return[Math.min(c[0],i[0]),Math.max(c[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},VI=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,WI=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,jj=function(t,n,r){if(ut(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(Re(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(VI.test(t[0])){var o=+VI.exec(t[0])[1];i[0]=n[0]-o}else ut(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(Re(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(WI.test(t[1])){var a=+WI.exec(t[1])[1];i[1]=n[1]+a}else ut(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},by=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!r||i>0)return i}if(t&&n&&n.length>=2){for(var o=sO(n,function(f){return f.coordinate}),a=1/0,l=1,c=o.length;l<c;l++){var d=o[l],p=o[l-1];a=Math.min((d.coordinate||0)-(p.coordinate||0),a)}return a===1/0?0:a}return r?void 0:0},GI=function(t,n,r){return!t||!t.length||Fv(t,fi(r,"type.defaultProps.domain"))?n:t},c7=function(t,n){var r=t.type.defaultProps?on(on({},t.type.defaultProps),t.props):t.props,i=r.dataKey,o=r.name,a=r.unit,l=r.formatter,c=r.tooltipType,d=r.chartType,p=r.hide;return on(on({},vt(t,!1)),{},{dataKey:i,unit:a,formatter:l,name:o||i,color:RO(t),value:Yr(n,i),type:c,payload:n,chartType:d,hide:p})};function bh(e){"@babel/helpers - typeof";return bh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bh(e)}function KI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function YI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KI(Object(n),!0).forEach(function(r){Y0e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Y0e(e,t,n){return t=X0e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X0e(e){var t=Q0e(e,"string");return bh(t)=="symbol"?t:t+""}function Q0e(e,t){if(bh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wy=Math.PI/180,Z0e=function(t){return t*180/Math.PI},Vn=function(t,n,r,i){return{x:t+Math.cos(-wy*i)*r,y:n+Math.sin(-wy*i)*r}},J0e=function(t,n){var r=t.x,i=t.y,o=n.x,a=n.y;return Math.sqrt(Math.pow(r-o,2)+Math.pow(i-a,2))},e1e=function(t,n){var r=t.x,i=t.y,o=n.cx,a=n.cy,l=J0e({x:r,y:i},{x:o,y:a});if(l<=0)return{radius:l};var c=(r-o)/l,d=Math.acos(c);return i>a&&(d=2*Math.PI-d),{radius:l,angle:Z0e(d),angleInRadian:d}},t1e=function(t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),o=Math.floor(r/360),a=Math.min(i,o);return{startAngle:n-a*360,endAngle:r-a*360}},n1e=function(t,n){var r=n.startAngle,i=n.endAngle,o=Math.floor(r/360),a=Math.floor(i/360),l=Math.min(o,a);return t+l*360},XI=function(t,n){var r=t.x,i=t.y,o=e1e({x:r,y:i},n),a=o.radius,l=o.angle,c=n.innerRadius,d=n.outerRadius;if(a<c||a>d)return!1;if(a===0)return!0;var p=t1e(n),f=p.startAngle,m=p.endAngle,g=l,b;if(f<=m){for(;g>m;)g-=360;for(;g<f;)g+=360;b=g>=f&&g<=m}else{for(;g>f;)g-=360;for(;g<m;)g+=360;b=g>=m&&g<=f}return b?YI(YI({},n),{},{radius:a,angle:n1e(g,n)}):null};function wh(e){"@babel/helpers - typeof";return wh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wh(e)}var r1e=["offset"];function i1e(e){return l1e(e)||s1e(e)||a1e(e)||o1e()}function o1e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
651In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a1e(e,t){if(e){if(typeof e=="string")return Nj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nj(e,t)}}function s1e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function l1e(e){if(Array.isArray(e))return Nj(e)}function Nj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c1e(e,t){if(e==null)return{};var n=u1e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function u1e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function QI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QI(Object(n),!0).forEach(function(r){d1e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function d1e(e,t,n){return t=f1e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f1e(e){var t=h1e(e,"string");return wh(t)=="symbol"?t:t+""}function h1e(e,t){if(wh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(wh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _h(){return _h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_h.apply(this,arguments)}var p1e=function(t){var n=t.value,r=t.formatter,i=ft(t.children)?n:t.children;return ut(r)?r(i):i},m1e=function(t,n){var r=Bi(n-t),i=Math.min(Math.abs(n-t),360);return r*i},g1e=function(t,n,r){var i=t.position,o=t.viewBox,a=t.offset,l=t.className,c=o,d=c.cx,p=c.cy,f=c.innerRadius,m=c.outerRadius,g=c.startAngle,b=c.endAngle,y=c.clockWise,v=(f+m)/2,x=m1e(g,b),_=x>=0?1:-1,j,S;i==="insideStart"?(j=g+_*a,S=y):i==="insideEnd"?(j=b-_*a,S=!y):i==="end"&&(j=b+_*a,S=y),S=x<=0?S:!S;var N=Vn(d,p,v,j),O=Vn(d,p,v,j+(S?1:-1)*359),E="M".concat(N.x,",").concat(N.y,`
652    A`).concat(v,",").concat(v,",0,1,").concat(S?0:1,`,
653    `).concat(O.x,",").concat(O.y),A=ft(t.id)?up("recharts-radial-line-"):t.id;return ue.createElement("text",_h({},r,{dominantBaseline:"central",className:xt("recharts-radial-bar-label",l)}),ue.createElement("defs",null,ue.createElement("path",{id:A,d:E})),ue.createElement("textPath",{xlinkHref:"#".concat(A)},n))},y1e=function(t){var n=t.viewBox,r=t.offset,i=t.position,o=n,a=o.cx,l=o.cy,c=o.innerRadius,d=o.outerRadius,p=o.startAngle,f=o.endAngle,m=(p+f)/2;if(i==="outside"){var g=Vn(a,l,d+r,m),b=g.x,y=g.y;return{x:b,y,textAnchor:b>=a?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:a,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:a,y:l,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:a,y:l,textAnchor:"middle",verticalAnchor:"end"};var v=(c+d)/2,x=Vn(a,l,v,m),_=x.x,j=x.y;return{x:_,y:j,textAnchor:"middle",verticalAnchor:"middle"}},v1e=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,o=t.position,a=n,l=a.x,c=a.y,d=a.width,p=a.height,f=p>=0?1:-1,m=f*i,g=f>0?"end":"start",b=f>0?"start":"end",y=d>=0?1:-1,v=y*i,x=y>0?"end":"start",_=y>0?"start":"end";if(o==="top"){var j={x:l+d/2,y:c-f*i,textAnchor:"middle",verticalAnchor:g};return jn(jn({},j),r?{height:Math.max(c-r.y,0),width:d}:{})}if(o==="bottom"){var S={x:l+d/2,y:c+p+m,textAnchor:"middle",verticalAnchor:b};return jn(jn({},S),r?{height:Math.max(r.y+r.height-(c+p),0),width:d}:{})}if(o==="left"){var N={x:l-v,y:c+p/2,textAnchor:x,verticalAnchor:"middle"};return jn(jn({},N),r?{width:Math.max(N.x-r.x,0),height:p}:{})}if(o==="right"){var O={x:l+d+v,y:c+p/2,textAnchor:_,verticalAnchor:"middle"};return jn(jn({},O),r?{width:Math.max(r.x+r.width-O.x,0),height:p}:{})}var E=r?{width:d,height:p}:{};return o==="insideLeft"?jn({x:l+v,y:c+p/2,textAnchor:_,verticalAnchor:"middle"},E):o==="insideRight"?jn({x:l+d-v,y:c+p/2,textAnchor:x,verticalAnchor:"middle"},E):o==="insideTop"?jn({x:l+d/2,y:c+m,textAnchor:"middle",verticalAnchor:b},E):o==="insideBottom"?jn({x:l+d/2,y:c+p-m,textAnchor:"middle",verticalAnchor:g},E):o==="insideTopLeft"?jn({x:l+v,y:c+m,textAnchor:_,verticalAnchor:b},E):o==="insideTopRight"?jn({x:l+d-v,y:c+m,textAnchor:x,verticalAnchor:b},E):o==="insideBottomLeft"?jn({x:l+v,y:c+p-m,textAnchor:_,verticalAnchor:g},E):o==="insideBottomRight"?jn({x:l+d-v,y:c+p-m,textAnchor:x,verticalAnchor:g},E):Yu(o)&&(Re(o.x)||rl(o.x))&&(Re(o.y)||rl(o.y))?jn({x:l+Tl(o.x,d),y:c+Tl(o.y,p),textAnchor:"end",verticalAnchor:"end"},E):jn({x:l+d/2,y:c+p/2,textAnchor:"middle",verticalAnchor:"middle"},E)},x1e=function(t){return"cx"in t&&Re(t.cx)};function ir(e){var t=e.offset,n=t===void 0?5:t,r=c1e(e,r1e),i=jn({offset:n},r),o=i.viewBox,a=i.position,l=i.value,c=i.children,d=i.content,p=i.className,f=p===void 0?"":p,m=i.textBreakAll;if(!o||ft(l)&&ft(c)&&!P.isValidElement(d)&&!ut(d))return null;if(P.isValidElement(d))return P.cloneElement(d,i);var g;if(ut(d)){if(g=P.createElement(d,i),P.isValidElement(g))return g}else g=p1e(i);var b=x1e(o),y=vt(i,!0);if(b&&(a==="insideStart"||a==="insideEnd"||a==="end"))return g1e(i,g,y);var v=b?y1e(i):v1e(i);return ue.createElement(oy,_h({className:xt("recharts-label",f)},y,v,{breakAll:m}),g)}ir.displayName="Label";var u7=function(t){var n=t.cx,r=t.cy,i=t.angle,o=t.startAngle,a=t.endAngle,l=t.r,c=t.radius,d=t.innerRadius,p=t.outerRadius,f=t.x,m=t.y,g=t.top,b=t.left,y=t.width,v=t.height,x=t.clockWise,_=t.labelViewBox;if(_)return _;if(Re(y)&&Re(v)){if(Re(f)&&Re(m))return{x:f,y:m,width:y,height:v};if(Re(g)&&Re(b))return{x:g,y:b,width:y,height:v}}return Re(f)&&Re(m)?{x:f,y:m,width:0,height:0}:Re(n)&&Re(r)?{cx:n,cy:r,startAngle:o||i||0,endAngle:a||i||0,innerRadius:d||0,outerRadius:p||c||l||0,clockWise:x}:t.viewBox?t.viewBox:{}},b1e=function(t,n){return t?t===!0?ue.createElement(ir,{key:"label-implicit",viewBox:n}):kn(t)?ue.createElement(ir,{key:"label-implicit",viewBox:n,value:t}):P.isValidElement(t)?t.type===ir?P.cloneElement(t,{key:"label-implicit",viewBox:n}):ue.createElement(ir,{key:"label-implicit",content:t,viewBox:n}):ut(t)?ue.createElement(ir,{key:"label-implicit",content:t,viewBox:n}):Yu(t)?ue.createElement(ir,_h({viewBox:n},t,{key:"label-implicit"})):null:null},w1e=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var i=t.children,o=u7(t),a=hi(i,ir).map(function(c,d){return P.cloneElement(c,{viewBox:n||o,key:"label-".concat(d)})});if(!r)return a;var l=b1e(t.label,n||o);return[l].concat(i1e(a))};ir.parseViewBox=u7;ir.renderCallByParent=w1e;var t_,ZI;function _1e(){if(ZI)return t_;ZI=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return t_=e,t_}var S1e=_1e();const j1e=Ct(S1e);function Sh(e){"@babel/helpers - typeof";return Sh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sh(e)}var N1e=["valueAccessor"],k1e=["data","dataKey","clockWise","id","textBreakAll"];function O1e(e){return T1e(e)||A1e(e)||P1e(e)||E1e()}function E1e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
654In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function P1e(e,t){if(e){if(typeof e=="string")return kj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kj(e,t)}}function A1e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function T1e(e){if(Array.isArray(e))return kj(e)}function kj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _y(){return _y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_y.apply(this,arguments)}function JI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function eD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JI(Object(n),!0).forEach(function(r){C1e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function C1e(e,t,n){return t=R1e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R1e(e){var t=M1e(e,"string");return Sh(t)=="symbol"?t:t+""}function M1e(e,t){if(Sh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Sh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tD(e,t){if(e==null)return{};var n=I1e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function I1e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var D1e=function(t){return Array.isArray(t.value)?j1e(t.value):t.value};function is(e){var t=e.valueAccessor,n=t===void 0?D1e:t,r=tD(e,N1e),i=r.data,o=r.dataKey,a=r.clockWise,l=r.id,c=r.textBreakAll,d=tD(r,k1e);return!i||!i.length?null:ue.createElement(cn,{className:"recharts-label-list"},i.map(function(p,f){var m=ft(o)?n(p,f):Yr(p&&p.payload,o),g=ft(l)?{}:{id:"".concat(l,"-").concat(f)};return ue.createElement(ir,_y({},vt(p,!0),d,g,{parentViewBox:p.parentViewBox,value:m,textBreakAll:c,viewBox:ir.parseViewBox(ft(a)?p:eD(eD({},p),{},{clockWise:a})),key:"label-".concat(f),index:f}))}))}is.displayName="LabelList";function L1e(e,t){return e?e===!0?ue.createElement(is,{key:"labelList-implicit",data:t}):ue.isValidElement(e)||ut(e)?ue.createElement(is,{key:"labelList-implicit",data:t,content:e}):Yu(e)?ue.createElement(is,_y({data:t},e,{key:"labelList-implicit"})):null:null}function B1e(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=hi(r,is).map(function(a,l){return P.cloneElement(a,{data:t,key:"labelList-".concat(l)})});if(!n)return i;var o=L1e(e.label,t);return[o].concat(O1e(i))}is.renderCallByParent=B1e;function jh(e){"@babel/helpers - typeof";return jh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jh(e)}function Oj(){return Oj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oj.apply(this,arguments)}function nD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function rD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nD(Object(n),!0).forEach(function(r){$1e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $1e(e,t,n){return t=F1e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F1e(e){var t=q1e(e,"string");return jh(t)=="symbol"?t:t+""}function q1e(e,t){if(jh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(jh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var z1e=function(t,n){var r=Bi(n-t),i=Math.min(Math.abs(n-t),359.999);return r*i},Qm=function(t){var n=t.cx,r=t.cy,i=t.radius,o=t.angle,a=t.sign,l=t.isExternal,c=t.cornerRadius,d=t.cornerIsExternal,p=c*(l?1:-1)+i,f=Math.asin(c/p)/wy,m=d?o:o+a*f,g=Vn(n,r,p,m),b=Vn(n,r,i,m),y=d?o-a*f:o,v=Vn(n,r,p*Math.cos(f*wy),y);return{center:g,circleTangency:b,lineTangency:v,theta:f}},d7=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.startAngle,l=t.endAngle,c=z1e(a,l),d=a+c,p=Vn(n,r,o,a),f=Vn(n,r,o,d),m="M ".concat(p.x,",").concat(p.y,`
655    A `).concat(o,",").concat(o,`,0,
656    `).concat(+(Math.abs(c)>180),",").concat(+(a>d),`,
657    `).concat(f.x,",").concat(f.y,`
658  `);if(i>0){var g=Vn(n,r,i,a),b=Vn(n,r,i,d);m+="L ".concat(b.x,",").concat(b.y,`
659            A `).concat(i,",").concat(i,`,0,
660            `).concat(+(Math.abs(c)>180),",").concat(+(a<=d),`,
661            `).concat(g.x,",").concat(g.y," Z")}else m+="L ".concat(n,",").concat(r," Z");return m},U1e=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.cornerRadius,l=t.forceCornerRadius,c=t.cornerIsExternal,d=t.startAngle,p=t.endAngle,f=Bi(p-d),m=Qm({cx:n,cy:r,radius:o,angle:d,sign:f,cornerRadius:a,cornerIsExternal:c}),g=m.circleTangency,b=m.lineTangency,y=m.theta,v=Qm({cx:n,cy:r,radius:o,angle:p,sign:-f,cornerRadius:a,cornerIsExternal:c}),x=v.circleTangency,_=v.lineTangency,j=v.theta,S=c?Math.abs(d-p):Math.abs(d-p)-y-j;if(S<0)return l?"M ".concat(b.x,",").concat(b.y,`
662        a`).concat(a,",").concat(a,",0,0,1,").concat(a*2,`,0
663        a`).concat(a,",").concat(a,",0,0,1,").concat(-a*2,`,0
664      `):d7({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:d,endAngle:p});var N="M ".concat(b.x,",").concat(b.y,`
665    A`).concat(a,",").concat(a,",0,0,").concat(+(f<0),",").concat(g.x,",").concat(g.y,`
666    A`).concat(o,",").concat(o,",0,").concat(+(S>180),",").concat(+(f<0),",").concat(x.x,",").concat(x.y,`
667    A`).concat(a,",").concat(a,",0,0,").concat(+(f<0),",").concat(_.x,",").concat(_.y,`
668  `);if(i>0){var O=Qm({cx:n,cy:r,radius:i,angle:d,sign:f,isExternal:!0,cornerRadius:a,cornerIsExternal:c}),E=O.circleTangency,A=O.lineTangency,I=O.theta,M=Qm({cx:n,cy:r,radius:i,angle:p,sign:-f,isExternal:!0,cornerRadius:a,cornerIsExternal:c}),C=M.circleTangency,R=M.lineTangency,B=M.theta,$=c?Math.abs(d-p):Math.abs(d-p)-I-B;if($<0&&a===0)return"".concat(N,"L").concat(n,",").concat(r,"Z");N+="L".concat(R.x,",").concat(R.y,`
669      A`).concat(a,",").concat(a,",0,0,").concat(+(f<0),",").concat(C.x,",").concat(C.y,`
670      A`).concat(i,",").concat(i,",0,").concat(+($>180),",").concat(+(f>0),",").concat(E.x,",").concat(E.y,`
671      A`).concat(a,",").concat(a,",0,0,").concat(+(f<0),",").concat(A.x,",").concat(A.y,"Z")}else N+="L".concat(n,",").concat(r,"Z");return N},H1e={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},f7=function(t){var n=rD(rD({},H1e),t),r=n.cx,i=n.cy,o=n.innerRadius,a=n.outerRadius,l=n.cornerRadius,c=n.forceCornerRadius,d=n.cornerIsExternal,p=n.startAngle,f=n.endAngle,m=n.className;if(a<o||p===f)return null;var g=xt("recharts-sector",m),b=a-o,y=Tl(l,b,0,!0),v;return y>0&&Math.abs(p-f)<360?v=U1e({cx:r,cy:i,innerRadius:o,outerRadius:a,cornerRadius:Math.min(y,b/2),forceCornerRadius:c,cornerIsExternal:d,startAngle:p,endAngle:f}):v=d7({cx:r,cy:i,innerRadius:o,outerRadius:a,startAngle:p,endAngle:f}),ue.createElement("path",Oj({},vt(n,!0),{className:g,d:v,role:"img"}))};function Nh(e){"@babel/helpers - typeof";return Nh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nh(e)}function Ej(){return Ej=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ej.apply(this,arguments)}function iD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function oD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iD(Object(n),!0).forEach(function(r){V1e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function V1e(e,t,n){return t=W1e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W1e(e){var t=G1e(e,"string");return Nh(t)=="symbol"?t:t+""}function G1e(e,t){if(Nh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Nh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var aD={curveBasisClosed:Upe,curveBasisOpen:Hpe,curveBasis:zpe,curveBumpX:Epe,curveBumpY:Ppe,curveLinearClosed:Vpe,curveLinear:Ev,curveMonotoneX:Wpe,curveMonotoneY:Gpe,curveNatural:Kpe,curveStep:Ype,curveStepAfter:Qpe,curveStepBefore:Xpe},Zm=function(t){return t.x===+t.x&&t.y===+t.y},sf=function(t){return t.x},lf=function(t){return t.y},K1e=function(t,n){if(ut(t))return t;var r="curve".concat(kv(t));return(r==="curveMonotone"||r==="curveBump")&&n?aD["".concat(r).concat(n==="vertical"?"Y":"X")]:aD[r]||Ev},Y1e=function(t){var n=t.type,r=n===void 0?"linear":n,i=t.points,o=i===void 0?[]:i,a=t.baseLine,l=t.layout,c=t.connectNulls,d=c===void 0?!1:c,p=K1e(r,l),f=d?o.filter(function(y){return Zm(y)}):o,m;if(Array.isArray(a)){var g=d?a.filter(function(y){return Zm(y)}):a,b=f.map(function(y,v){return oD(oD({},y),{},{base:g[v]})});return l==="vertical"?m=Um().y(lf).x1(sf).x0(function(y){return y.base.x}):m=Um().x(sf).y1(lf).y0(function(y){return y.base.y}),m.defined(Zm).curve(p),m(b)}return l==="vertical"&&Re(a)?m=Um().y(lf).x1(sf).x0(a):Re(a)?m=Um().x(sf).y1(lf).y0(a):m=E9().x(sf).y(lf),m.defined(Zm).curve(p),m(f)},Pj=function(t){var n=t.className,r=t.points,i=t.path,o=t.pathRef;if((!r||!r.length)&&!i)return null;var a=r&&r.length?Y1e(t):i;return P.createElement("path",Ej({},vt(t,!1),Gg(t),{className:xt("recharts-curve",n),d:a,ref:o}))},n_={exports:{}},r_,sD;function X1e(){if(sD)return r_;sD=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return r_=e,r_}var i_,lD;function Q1e(){if(lD)return i_;lD=1;var e=X1e();function t(){}function n(){}return n.resetWarningCache=t,i_=function(){function r(a,l,c,d,p,f){if(f!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},i_}var cD;function Z1e(){return cD||(cD=1,n_.exports=Q1e()()),n_.exports}var J1e=Z1e();const Ot=Ct(J1e),{getOwnPropertyNames:ewe,getOwnPropertySymbols:twe}=Object,{hasOwnProperty:nwe}=Object.prototype;function o_(e,t){return function(r,i,o){return e(r,i,o)&&t(r,i,o)}}function Jm(e){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,i);const{cache:o}=i,a=o.get(n),l=o.get(r);if(a&&l)return a===r&&l===n;o.set(n,r),o.set(r,n);const c=e(n,r,i);return o.delete(n),o.delete(r),c}}function rwe(e){return e!=null?e[Symbol.toStringTag]:void 0}function uD(e){return ewe(e).concat(twe(e))}const iwe=Object.hasOwn||((e,t)=>nwe.call(e,t));function Fl(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const owe="__v",awe="__o",swe="_owner",{getOwnPropertyDescriptor:dD,keys:fD}=Object;function lwe(e,t){return e.byteLength===t.byteLength&&Sy(new Uint8Array(e),new Uint8Array(t))}function cwe(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function uwe(e,t){return e.byteLength===t.byteLength&&Sy(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function dwe(e,t){return Fl(e.getTime(),t.getTime())}function fwe(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function hwe(e,t){return e===t}function hD(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const i=new Array(r),o=e.entries();let a,l,c=0;for(;(a=o.next())&&!a.done;){const d=t.entries();let p=!1,f=0;for(;(l=d.next())&&!l.done;){if(i[f]){f++;continue}const m=a.value,g=l.value;if(n.equals(m[0],g[0],c,f,e,t,n)&&n.equals(m[1],g[1],m[0],g[0],e,t,n)){p=i[f]=!0;break}f++}if(!p)return!1;c++}return!0}const pwe=Fl;function mwe(e,t,n){const r=fD(e);let i=r.length;if(fD(t).length!==i)return!1;for(;i-- >0;)if(!h7(e,t,n,r[i]))return!1;return!0}function cf(e,t,n){const r=uD(e);let i=r.length;if(uD(t).length!==i)return!1;let o,a,l;for(;i-- >0;)if(o=r[i],!h7(e,t,n,o)||(a=dD(e,o),l=dD(t,o),(a||l)&&(!a||!l||a.configurable!==l.configurable||a.enumerable!==l.enumerable||a.writable!==l.writable)))return!1;return!0}function gwe(e,t){return Fl(e.valueOf(),t.valueOf())}function ywe(e,t){return e.source===t.source&&e.flags===t.flags}function pD(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const i=new Array(r),o=e.values();let a,l;for(;(a=o.next())&&!a.done;){const c=t.values();let d=!1,p=0;for(;(l=c.next())&&!l.done;){if(!i[p]&&n.equals(a.value,l.value,a.value,l.value,e,t,n)){d=i[p]=!0;break}p++}if(!d)return!1}return!0}function Sy(e,t){let n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function vwe(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function h7(e,t,n,r){return(r===swe||r===awe||r===owe)&&(e.$$typeof||t.$$typeof)?!0:iwe(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const xwe="[object ArrayBuffer]",bwe="[object Arguments]",wwe="[object Boolean]",_we="[object DataView]",Swe="[object Date]",jwe="[object Error]",Nwe="[object Map]",kwe="[object Number]",Owe="[object Object]",Ewe="[object RegExp]",Pwe="[object Set]",Awe="[object String]",Twe={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},Cwe="[object URL]",Rwe=Object.prototype.toString;function Mwe({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:i,areFunctionsEqual:o,areMapsEqual:a,areNumbersEqual:l,areObjectsEqual:c,arePrimitiveWrappersEqual:d,areRegExpsEqual:p,areSetsEqual:f,areTypedArraysEqual:m,areUrlsEqual:g,unknownTagComparators:b}){return function(v,x,_){if(v===x)return!0;if(v==null||x==null)return!1;const j=typeof v;if(j!==typeof x)return!1;if(j!=="object")return j==="number"?l(v,x,_):j==="function"?o(v,x,_):!1;const S=v.constructor;if(S!==x.constructor)return!1;if(S===Object)return c(v,x,_);if(Array.isArray(v))return t(v,x,_);if(S===Date)return r(v,x,_);if(S===RegExp)return p(v,x,_);if(S===Map)return a(v,x,_);if(S===Set)return f(v,x,_);const N=Rwe.call(v);if(N===Swe)return r(v,x,_);if(N===Ewe)return p(v,x,_);if(N===Nwe)return a(v,x,_);if(N===Pwe)return f(v,x,_);if(N===Owe)return typeof v.then!="function"&&typeof x.then!="function"&&c(v,x,_);if(N===Cwe)return g(v,x,_);if(N===jwe)return i(v,x,_);if(N===bwe)return c(v,x,_);if(Twe[N])return m(v,x,_);if(N===xwe)return e(v,x,_);if(N===_we)return n(v,x,_);if(N===wwe||N===kwe||N===Awe)return d(v,x,_);if(b){let O=b[N];if(!O){const E=rwe(v);E&&(O=b[E])}if(O)return O(v,x,_)}return!1}}function Iwe({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:lwe,areArraysEqual:n?cf:cwe,areDataViewsEqual:uwe,areDatesEqual:dwe,areErrorsEqual:fwe,areFunctionsEqual:hwe,areMapsEqual:n?o_(hD,cf):hD,areNumbersEqual:pwe,areObjectsEqual:n?cf:mwe,arePrimitiveWrappersEqual:gwe,areRegExpsEqual:ywe,areSetsEqual:n?o_(pD,cf):pD,areTypedArraysEqual:n?o_(Sy,cf):Sy,areUrlsEqual:vwe,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const i=Jm(r.areArraysEqual),o=Jm(r.areMapsEqual),a=Jm(r.areObjectsEqual),l=Jm(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:i,areMapsEqual:o,areObjectsEqual:a,areSetsEqual:l})}return r}function Dwe(e){return function(t,n,r,i,o,a,l){return e(t,n,l)}}function Lwe({circular:e,comparator:t,createState:n,equals:r,strict:i}){if(n)return function(l,c){const{cache:d=e?new WeakMap:void 0,meta:p}=n();return t(l,c,{cache:d,equals:r,meta:p,strict:i})};if(e)return function(l,c){return t(l,c,{cache:new WeakMap,equals:r,meta:void 0,strict:i})};const o={cache:void 0,equals:r,meta:void 0,strict:i};return function(l,c){return t(l,c,o)}}const Bwe=ws();ws({strict:!0});ws({circular:!0});ws({circular:!0,strict:!0});ws({createInternalComparator:()=>Fl});ws({strict:!0,createInternalComparator:()=>Fl});ws({circular:!0,createInternalComparator:()=>Fl});ws({circular:!0,createInternalComparator:()=>Fl,strict:!0});function ws(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:i=!1}=e,o=Iwe(e),a=Mwe(o),l=n?n(a):Dwe(a);return Lwe({circular:t,comparator:a,createState:r,equals:l,strict:i})}function $we(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function mD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(o){n<0&&(n=o),o-n>t?(e(o),n=-1):$we(i)};requestAnimationFrame(r)}function Aj(e){"@babel/helpers - typeof";return Aj=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Aj(e)}function Fwe(e){return Hwe(e)||Uwe(e)||zwe(e)||qwe()}function qwe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
672In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zwe(e,t){if(e){if(typeof e=="string")return gD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gD(e,t)}}function gD(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Uwe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Hwe(e){if(Array.isArray(e))return e}function Vwe(){var e={},t=function(){return null},n=!1,r=function i(o){if(!n){if(Array.isArray(o)){if(!o.length)return;var a=o,l=Fwe(a),c=l[0],d=l.slice(1);if(typeof c=="number"){mD(i.bind(null,d),c);return}i(c),mD(i.bind(null,d));return}Aj(o)==="object"&&(e=o,t(e)),typeof o=="function"&&o()}};return{stop:function(){n=!0},start:function(o){n=!1,r(o)},subscribe:function(o){return t=o,function(){t=function(){return null}}}}}function kh(e){"@babel/helpers - typeof";return kh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kh(e)}function yD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yD(Object(n),!0).forEach(function(r){p7(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function p7(e,t,n){return t=Wwe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wwe(e){var t=Gwe(e,"string");return kh(t)==="symbol"?t:String(t)}function Gwe(e,t){if(kh(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(kh(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Kwe=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,i){return r.filter(function(o){return i.includes(o)})})},Ywe=function(t){return t},Xwe=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},Lf=function(t,n){return Object.keys(n).reduce(function(r,i){return vD(vD({},r),{},p7({},i,t(i,n[i])))},{})},xD=function(t,n,r){return t.map(function(i){return"".concat(Xwe(i)," ").concat(n,"ms ").concat(r)}).join(",")};function Qwe(e,t){return e2e(e)||Jwe(e,t)||m7(e,t)||Zwe()}function Zwe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
673In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jwe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(p){d=!0,i=p}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw i}}return l}}function e2e(e){if(Array.isArray(e))return e}function t2e(e){return i2e(e)||r2e(e)||m7(e)||n2e()}function n2e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
674In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m7(e,t){if(e){if(typeof e=="string")return Tj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tj(e,t)}}function r2e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function i2e(e){if(Array.isArray(e))return Tj(e)}function Tj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var jy=1e-4,g7=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},y7=function(t,n){return t.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},bD=function(t,n){return function(r){var i=g7(t,n);return y7(i,r)}},o2e=function(t,n){return function(r){var i=g7(t,n),o=[].concat(t2e(i.map(function(a,l){return a*l}).slice(1)),[0]);return y7(o,r)}},wD=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],o=n[1],a=n[2],l=n[3];if(n.length===1)switch(n[0]){case"linear":i=0,o=0,a=1,l=1;break;case"ease":i=.25,o=.1,a=.25,l=1;break;case"ease-in":i=.42,o=0,a=1,l=1;break;case"ease-out":i=.42,o=0,a=.58,l=1;break;case"ease-in-out":i=0,o=0,a=.58,l=1;break;default:{var c=n[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var d=c[1].split(")")[0].split(",").map(function(v){return parseFloat(v)}),p=Qwe(d,4);i=p[0],o=p[1],a=p[2],l=p[3]}}}var f=bD(i,a),m=bD(o,l),g=o2e(i,a),b=function(x){return x>1?1:x<0?0:x},y=function(x){for(var _=x>1?1:x,j=_,S=0;S<8;++S){var N=f(j)-_,O=g(j);if(Math.abs(N-_)<jy||O<jy)return m(j);j=b(j-N/O)}return m(j)};return y.isStepper=!1,y},a2e=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,i=t.damping,o=i===void 0?8:i,a=t.dt,l=a===void 0?17:a,c=function(p,f,m){var g=-(p-f)*r,b=m*o,y=m+(g-b)*l/1e3,v=m*l/1e3+p;return Math.abs(v-f)<jy&&Math.abs(y)<jy?[f,0]:[v,y]};return c.isStepper=!0,c.dt=l,c},s2e=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return wD(i);case"spring":return a2e();default:if(i.split("(")[0]==="cubic-bezier")return wD(i)}return typeof i=="function"?i:null};function Oh(e){"@babel/helpers - typeof";return Oh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oh(e)}function _D(e){return u2e(e)||c2e(e)||v7(e)||l2e()}function l2e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
675In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c2e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function u2e(e){if(Array.isArray(e))return Rj(e)}function SD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SD(Object(n),!0).forEach(function(r){Cj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cj(e,t,n){return t=d2e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d2e(e){var t=f2e(e,"string");return Oh(t)==="symbol"?t:String(t)}function f2e(e,t){if(Oh(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Oh(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function h2e(e,t){return g2e(e)||m2e(e,t)||v7(e,t)||p2e()}function p2e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
676In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v7(e,t){if(e){if(typeof e=="string")return Rj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rj(e,t)}}function Rj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m2e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(p){d=!0,i=p}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw i}}return l}}function g2e(e){if(Array.isArray(e))return e}var Ny=function(t,n,r){return t+(n-t)*r},Mj=function(t){var n=t.from,r=t.to;return n!==r},y2e=function e(t,n,r){var i=Lf(function(o,a){if(Mj(a)){var l=t(a.from,a.to,a.velocity),c=h2e(l,2),d=c[0],p=c[1];return zn(zn({},a),{},{from:d,velocity:p})}return a},n);return r<1?Lf(function(o,a){return Mj(a)?zn(zn({},a),{},{velocity:Ny(a.velocity,i[o].velocity,r),from:Ny(a.from,i[o].from,r)}):a},n):e(t,i,r-1)};const v2e=(function(e,t,n,r,i){var o=Kwe(e,t),a=o.reduce(function(v,x){return zn(zn({},v),{},Cj({},x,[e[x],t[x]]))},{}),l=o.reduce(function(v,x){return zn(zn({},v),{},Cj({},x,{from:e[x],velocity:0,to:t[x]}))},{}),c=-1,d,p,f=function(){return null},m=function(){return Lf(function(x,_){return _.from},l)},g=function(){return!Object.values(l).filter(Mj).length},b=function(x){d||(d=x);var _=x-d,j=_/n.dt;l=y2e(n,l,j),i(zn(zn(zn({},e),t),m())),d=x,g()||(c=requestAnimationFrame(f))},y=function(x){p||(p=x);var _=(x-p)/r,j=Lf(function(N,O){return Ny.apply(void 0,_D(O).concat([n(_)]))},a);if(i(zn(zn(zn({},e),t),j)),_<1)c=requestAnimationFrame(f);else{var S=Lf(function(N,O){return Ny.apply(void 0,_D(O).concat([n(1)]))},a);i(zn(zn(zn({},e),t),S))}};return f=n.isStepper?b:y,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(c)}}});function bu(e){"@babel/helpers - typeof";return bu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bu(e)}var x2e=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function b2e(e,t){if(e==null)return{};var n=w2e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function w2e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function a_(e){return N2e(e)||j2e(e)||S2e(e)||_2e()}function _2e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
677In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S2e(e,t){if(e){if(typeof e=="string")return Ij(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ij(e,t)}}function j2e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function N2e(e){if(Array.isArray(e))return Ij(e)}function Ij(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ei(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jD(Object(n),!0).forEach(function(r){Nf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nf(e,t,n){return t=x7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O2e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,x7(r.key),r)}}function E2e(e,t,n){return t&&O2e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function x7(e){var t=P2e(e,"string");return bu(t)==="symbol"?t:String(t)}function P2e(e,t){if(bu(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bu(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function A2e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dj(e,t)}function Dj(e,t){return Dj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Dj(e,t)}function T2e(e){var t=C2e();return function(){var r=ky(e),i;if(t){var o=ky(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Lj(this,i)}}function Lj(e,t){if(t&&(bu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bj(e)}function Bj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C2e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ky(e){return ky=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ky(e)}var ia=(function(e){A2e(n,e);var t=T2e(n);function n(r,i){var o;k2e(this,n),o=t.call(this,r,i);var a=o.props,l=a.isActive,c=a.attributeName,d=a.from,p=a.to,f=a.steps,m=a.children,g=a.duration;if(o.handleStyleChange=o.handleStyleChange.bind(Bj(o)),o.changeStyle=o.changeStyle.bind(Bj(o)),!l||g<=0)return o.state={style:{}},typeof m=="function"&&(o.state={style:p}),Lj(o);if(f&&f.length)o.state={style:f[0].style};else if(d){if(typeof m=="function")return o.state={style:d},Lj(o);o.state={style:c?Nf({},c,d):d}}else o.state={style:{}};return o}return E2e(n,[{key:"componentDidMount",value:function(){var i=this.props,o=i.isActive,a=i.canBegin;this.mounted=!0,!(!o||!a)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var o=this.props,a=o.isActive,l=o.canBegin,c=o.attributeName,d=o.shouldReAnimate,p=o.to,f=o.from,m=this.state.style;if(l){if(!a){var g={style:c?Nf({},c,p):p};this.state&&m&&(c&&m[c]!==p||!c&&m!==p)&&this.setState(g);return}if(!(Bwe(i.to,p)&&i.canBegin&&i.isActive)){var b=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var y=b||d?f:i.to;if(this.state&&m){var v={style:c?Nf({},c,y):y};(c&&m[c]!==y||!c&&m!==y)&&this.setState(v)}this.runAnimation(Ei(Ei({},this.props),{},{from:y,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var o=this,a=i.from,l=i.to,c=i.duration,d=i.easing,p=i.begin,f=i.onAnimationEnd,m=i.onAnimationStart,g=v2e(a,l,s2e(d),c,this.changeStyle),b=function(){o.stopJSAnimation=g()};this.manager.start([m,p,b,c,f])}},{key:"runStepAnimation",value:function(i){var o=this,a=i.steps,l=i.begin,c=i.onAnimationStart,d=a[0],p=d.style,f=d.duration,m=f===void 0?0:f,g=function(y,v,x){if(x===0)return y;var _=v.duration,j=v.easing,S=j===void 0?"ease":j,N=v.style,O=v.properties,E=v.onAnimationEnd,A=x>0?a[x-1]:v,I=O||Object.keys(N);if(typeof S=="function"||S==="spring")return[].concat(a_(y),[o.runJSAnimation.bind(o,{from:A.style,to:N,duration:_,easing:S}),_]);var M=xD(I,_,S),C=Ei(Ei(Ei({},A.style),N),{},{transition:M});return[].concat(a_(y),[C,_,E]).filter(Ywe)};return this.manager.start([c].concat(a_(a.reduce(g,[p,Math.max(m,l)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=Vwe());var o=i.begin,a=i.duration,l=i.attributeName,c=i.to,d=i.easing,p=i.onAnimationStart,f=i.onAnimationEnd,m=i.steps,g=i.children,b=this.manager;if(this.unSubscribe=b.subscribe(this.handleStyleChange),typeof d=="function"||typeof g=="function"||d==="spring"){this.runJSAnimation(i);return}if(m.length>1){this.runStepAnimation(i);return}var y=l?Nf({},l,c):c,v=xD(Object.keys(y),a,d);b.start([p,o,Ei(Ei({},y),{},{transition:v}),a,f])}},{key:"render",value:function(){var i=this.props,o=i.children;i.begin;var a=i.duration;i.attributeName,i.easing;var l=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var c=b2e(i,x2e),d=P.Children.count(o),p=this.state.style;if(typeof o=="function")return o(p);if(!l||d===0||a<=0)return o;var f=function(g){var b=g.props,y=b.style,v=y===void 0?{}:y,x=b.className,_=P.cloneElement(g,Ei(Ei({},c),{},{style:Ei(Ei({},v),p),className:x}));return _};return d===1?f(P.Children.only(o)):ue.createElement("div",null,P.Children.map(o,function(m){return f(m)}))}}]),n})(P.PureComponent);ia.displayName="Animate";ia.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};ia.propTypes={from:Ot.oneOfType([Ot.object,Ot.string]),to:Ot.oneOfType([Ot.object,Ot.string]),attributeName:Ot.string,duration:Ot.number,begin:Ot.number,easing:Ot.oneOfType([Ot.string,Ot.func]),steps:Ot.arrayOf(Ot.shape({duration:Ot.number.isRequired,style:Ot.object.isRequired,easing:Ot.oneOfType([Ot.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Ot.func]),properties:Ot.arrayOf("string"),onAnimationEnd:Ot.func})),children:Ot.oneOfType([Ot.node,Ot.func]),isActive:Ot.bool,canBegin:Ot.bool,onAnimationEnd:Ot.func,shouldReAnimate:Ot.bool,onAnimationStart:Ot.func,onAnimationReStart:Ot.func};function Eh(e){"@babel/helpers - typeof";return Eh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Eh(e)}function Oy(){return Oy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oy.apply(this,arguments)}function R2e(e,t){return L2e(e)||D2e(e,t)||I2e(e,t)||M2e()}function M2e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
678In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function I2e(e,t){if(e){if(typeof e=="string")return ND(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ND(e,t)}}function ND(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function D2e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(p){d=!0,i=p}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw i}}return l}}function L2e(e){if(Array.isArray(e))return e}function kD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function OD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kD(Object(n),!0).forEach(function(r){B2e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function B2e(e,t,n){return t=$2e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $2e(e){var t=F2e(e,"string");return Eh(t)=="symbol"?t:t+""}function F2e(e,t){if(Eh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Eh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ED=function(t,n,r,i,o){var a=Math.min(Math.abs(r)/2,Math.abs(i)/2),l=i>=0?1:-1,c=r>=0?1:-1,d=i>=0&&r>=0||i<0&&r<0?1:0,p;if(a>0&&o instanceof Array){for(var f=[0,0,0,0],m=0,g=4;m<g;m++)f[m]=o[m]>a?a:o[m];p="M".concat(t,",").concat(n+l*f[0]),f[0]>0&&(p+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(d,",").concat(t+c*f[0],",").concat(n)),p+="L ".concat(t+r-c*f[1],",").concat(n),f[1]>0&&(p+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(d,`,
679        `).concat(t+r,",").concat(n+l*f[1])),p+="L ".concat(t+r,",").concat(n+i-l*f[2]),f[2]>0&&(p+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(d,`,
680        `).concat(t+r-c*f[2],",").concat(n+i)),p+="L ".concat(t+c*f[3],",").concat(n+i),f[3]>0&&(p+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(d,`,
681        `).concat(t,",").concat(n+i-l*f[3])),p+="Z"}else if(a>0&&o===+o&&o>0){var b=Math.min(a,o);p="M ".concat(t,",").concat(n+l*b,`
682            A `).concat(b,",").concat(b,",0,0,").concat(d,",").concat(t+c*b,",").concat(n,`
683            L `).concat(t+r-c*b,",").concat(n,`
684            A `).concat(b,",").concat(b,",0,0,").concat(d,",").concat(t+r,",").concat(n+l*b,`
685            L `).concat(t+r,",").concat(n+i-l*b,`
686            A `).concat(b,",").concat(b,",0,0,").concat(d,",").concat(t+r-c*b,",").concat(n+i,`
687            L `).concat(t+c*b,",").concat(n+i,`
688            A `).concat(b,",").concat(b,",0,0,").concat(d,",").concat(t,",").concat(n+i-l*b," Z")}else p="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return p},q2e=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,o=n.x,a=n.y,l=n.width,c=n.height;if(Math.abs(l)>0&&Math.abs(c)>0){var d=Math.min(o,o+l),p=Math.max(o,o+l),f=Math.min(a,a+c),m=Math.max(a,a+c);return r>=d&&r<=p&&i>=f&&i<=m}return!1},z2e={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},MO=function(t){var n=OD(OD({},z2e),t),r=P.useRef(),i=P.useState(-1),o=R2e(i,2),a=o[0],l=o[1];P.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var S=r.current.getTotalLength();S&&l(S)}catch{}},[]);var c=n.x,d=n.y,p=n.width,f=n.height,m=n.radius,g=n.className,b=n.animationEasing,y=n.animationDuration,v=n.animationBegin,x=n.isAnimationActive,_=n.isUpdateAnimationActive;if(c!==+c||d!==+d||p!==+p||f!==+f||p===0||f===0)return null;var j=xt("recharts-rectangle",g);return _?ue.createElement(ia,{canBegin:a>0,from:{width:p,height:f,x:c,y:d},to:{width:p,height:f,x:c,y:d},duration:y,animationEasing:b,isActive:_},function(S){var N=S.width,O=S.height,E=S.x,A=S.y;return ue.createElement(ia,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:y,isActive:x,easing:b},ue.createElement("path",Oy({},vt(n,!0),{className:j,d:ED(E,A,N,O,m),ref:r})))}):ue.createElement("path",Oy({},vt(n,!0),{className:j,d:ED(c,d,p,f,m)}))};function $j(){return $j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$j.apply(this,arguments)}var IO=function(t){var n=t.cx,r=t.cy,i=t.r,o=t.className,a=xt("recharts-dot",o);return n===+n&&r===+r&&i===+i?P.createElement("circle",$j({},vt(t,!1),Gg(t),{className:a,cx:n,cy:r,r:i})):null};function Ph(e){"@babel/helpers - typeof";return Ph=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ph(e)}var U2e=["x","y","top","left","width","height","className"];function Fj(){return Fj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fj.apply(this,arguments)}function PD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function H2e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PD(Object(n),!0).forEach(function(r){V2e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function V2e(e,t,n){return t=W2e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W2e(e){var t=G2e(e,"string");return Ph(t)=="symbol"?t:t+""}function G2e(e,t){if(Ph(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ph(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function K2e(e,t){if(e==null)return{};var n=Y2e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Y2e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var X2e=function(t,n,r,i,o,a){return"M".concat(t,",").concat(o,"v").concat(i,"M").concat(a,",").concat(n,"h").concat(r)},Q2e=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,o=i===void 0?0:i,a=t.top,l=a===void 0?0:a,c=t.left,d=c===void 0?0:c,p=t.width,f=p===void 0?0:p,m=t.height,g=m===void 0?0:m,b=t.className,y=K2e(t,U2e),v=H2e({x:r,y:o,top:l,left:d,width:f,height:g},y);return!Re(r)||!Re(o)||!Re(f)||!Re(g)||!Re(l)||!Re(d)?null:ue.createElement("path",Fj({},vt(v,!0),{className:xt("recharts-cross",b),d:X2e(r,o,f,g,l,d)}))},s_,AD;function Z2e(){if(AD)return s_;AD=1;var e=h9(),t=e(Object.getPrototypeOf,Object);return s_=t,s_}var l_,TD;function J2e(){if(TD)return l_;TD=1;var e=aa(),t=Z2e(),n=sa(),r="[object Object]",i=Function.prototype,o=Object.prototype,a=i.toString,l=o.hasOwnProperty,c=a.call(Object);function d(p){if(!n(p)||e(p)!=r)return!1;var f=t(p);if(f===null)return!0;var m=l.call(f,"constructor")&&f.constructor;return typeof m=="function"&&m instanceof m&&a.call(m)==c}return l_=d,l_}var e_e=J2e();const t_e=Ct(e_e);var c_,CD;function n_e(){if(CD)return c_;CD=1;var e=aa(),t=sa(),n="[object Boolean]";function r(i){return i===!0||i===!1||t(i)&&e(i)==n}return c_=r,c_}var r_e=n_e();const i_e=Ct(r_e);function Ah(e){"@babel/helpers - typeof";return Ah=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ah(e)}function Ey(){return Ey=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ey.apply(this,arguments)}function o_e(e,t){return c_e(e)||l_e(e,t)||s_e(e,t)||a_e()}function a_e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
689In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s_e(e,t){if(e){if(typeof e=="string")return RD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return RD(e,t)}}function RD(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l_e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(p){d=!0,i=p}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw i}}return l}}function c_e(e){if(Array.isArray(e))return e}function MD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ID(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MD(Object(n),!0).forEach(function(r){u_e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function u_e(e,t,n){return t=d_e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d_e(e){var t=f_e(e,"string");return Ah(t)=="symbol"?t:t+""}function f_e(e,t){if(Ah(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ah(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var DD=function(t,n,r,i,o){var a=r-i,l;return l="M ".concat(t,",").concat(n),l+="L ".concat(t+r,",").concat(n),l+="L ".concat(t+r-a/2,",").concat(n+o),l+="L ".concat(t+r-a/2-i,",").concat(n+o),l+="L ".concat(t,",").concat(n," Z"),l},h_e={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},p_e=function(t){var n=ID(ID({},h_e),t),r=P.useRef(),i=P.useState(-1),o=o_e(i,2),a=o[0],l=o[1];P.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var j=r.current.getTotalLength();j&&l(j)}catch{}},[]);var c=n.x,d=n.y,p=n.upperWidth,f=n.lowerWidth,m=n.height,g=n.className,b=n.animationEasing,y=n.animationDuration,v=n.animationBegin,x=n.isUpdateAnimationActive;if(c!==+c||d!==+d||p!==+p||f!==+f||m!==+m||p===0&&f===0||m===0)return null;var _=xt("recharts-trapezoid",g);return x?ue.createElement(ia,{canBegin:a>0,from:{upperWidth:0,lowerWidth:0,height:m,x:c,y:d},to:{upperWidth:p,lowerWidth:f,height:m,x:c,y:d},duration:y,animationEasing:b,isActive:x},function(j){var S=j.upperWidth,N=j.lowerWidth,O=j.height,E=j.x,A=j.y;return ue.createElement(ia,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:y,easing:b},ue.createElement("path",Ey({},vt(n,!0),{className:_,d:DD(E,A,S,N,O),ref:r})))}):ue.createElement("g",null,ue.createElement("path",Ey({},vt(n,!0),{className:_,d:DD(c,d,p,f,m)})))},m_e=["option","shapeType","propTransformer","activeClassName","isActive"];function Th(e){"@babel/helpers - typeof";return Th=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Th(e)}function g_e(e,t){if(e==null)return{};var n=y_e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function y_e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function LD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Py(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LD(Object(n),!0).forEach(function(r){v_e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function v_e(e,t,n){return t=x_e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x_e(e){var t=b_e(e,"string");return Th(t)=="symbol"?t:t+""}function b_e(e,t){if(Th(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Th(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function w_e(e,t){return Py(Py({},t),e)}function __e(e,t){return e==="symbols"}function BD(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return ue.createElement(MO,n);case"trapezoid":return ue.createElement(p_e,n);case"sector":return ue.createElement(f7,n);case"symbols":if(__e(t))return ue.createElement(iO,n);break;default:return null}}function S_e(e){return P.isValidElement(e)?e.props:e}function j_e(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?w_e:r,o=e.activeClassName,a=o===void 0?"recharts-active-shape":o,l=e.isActive,c=g_e(e,m_e),d;if(P.isValidElement(t))d=P.cloneElement(t,Py(Py({},c),S_e(t)));else if(ut(t))d=t(c);else if(t_e(t)&&!i_e(t)){var p=i(t,c);d=ue.createElement(BD,{shapeType:n,elementProps:p})}else{var f=c;d=ue.createElement(BD,{shapeType:n,elementProps:f})}return l?ue.createElement(cn,{className:a},d):d}function Uv(e,t){return t!=null&&"trapezoids"in e.props}function Hv(e,t){return t!=null&&"sectors"in e.props}function Ch(e,t){return t!=null&&"points"in e.props}function N_e(e,t){var n,r,i=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,o=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return i&&o}function k_e(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function O_e(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function E_e(e,t){var n;return Uv(e,t)?n=N_e:Hv(e,t)?n=k_e:Ch(e,t)&&(n=O_e),n}function P_e(e,t){var n;return Uv(e,t)?n="trapezoids":Hv(e,t)?n="sectors":Ch(e,t)&&(n="points"),n}function A_e(e,t){if(Uv(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}if(Hv(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}return Ch(e,t)?t.payload:{}}function T_e(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=P_e(n,t),o=A_e(n,t),a=r.filter(function(c,d){var p=Fv(o,c),f=n.props[i].filter(function(b){var y=E_e(n,t);return y(b,t)}),m=n.props[i].indexOf(f[f.length-1]),g=d===m;return p&&g}),l=r.indexOf(a[a.length-1]);return l}var u_,$D;function C_e(){if($D)return u_;$D=1;var e=Math.ceil,t=Math.max;function n(r,i,o,a){for(var l=-1,c=t(e((i-r)/(o||1)),0),d=Array(c);c--;)d[a?c:++l]=r,r+=o;return d}return u_=n,u_}var d_,FD;function b7(){if(FD)return d_;FD=1;var e=nz(),t=1/0,n=17976931348623157e292;function r(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var o=i<0?-1:1;return o*n}return i===i?i:0}return d_=r,d_}var f_,qD;function R_e(){if(qD)return f_;qD=1;var e=C_e(),t=Tv(),n=b7();function r(i){return function(o,a,l){return l&&typeof l!="number"&&t(o,a,l)&&(a=l=void 0),o=n(o),a===void 0?(a=o,o=0):a=n(a),l=l===void 0?o<a?1:-1:n(l),e(o,a,l,i)}}return f_=r,f_}var h_,zD;function M_e(){if(zD)return h_;zD=1;var e=R_e(),t=e();return h_=t,h_}var I_e=M_e();const Ay=Ct(I_e);function Rh(e){"@babel/helpers - typeof";return Rh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rh(e)}function UD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function HD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UD(Object(n),!0).forEach(function(r){w7(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function w7(e,t,n){return t=D_e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D_e(e){var t=L_e(e,"string");return Rh(t)=="symbol"?t:t+""}function L_e(e,t){if(Rh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Rh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var B_e=["Webkit","Moz","O","ms"],$_e=function(t,n){var r=t.replace(/(\w)/,function(o){return o.toUpperCase()}),i=B_e.reduce(function(o,a){return HD(HD({},o),{},w7({},a+r,n))},{});return i[t]=n,i};function wu(e){"@babel/helpers - typeof";return wu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wu(e)}function Ty(){return Ty=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ty.apply(this,arguments)}function VD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function p_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VD(Object(n),!0).forEach(function(r){zr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function F_e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,S7(r.key),r)}}function q_e(e,t,n){return t&&WD(e.prototype,t),n&&WD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function z_e(e,t,n){return t=Cy(t),U_e(e,_7()?Reflect.construct(t,n||[],Cy(e).constructor):t.apply(e,n))}function U_e(e,t){if(t&&(wu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return H_e(e)}function H_e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_7=function(){return!!e})()}function Cy(e){return Cy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Cy(e)}function V_e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qj(e,t)}function qj(e,t){return qj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},qj(e,t)}function zr(e,t,n){return t=S7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S7(e){var t=W_e(e,"string");return wu(t)=="symbol"?t:t+""}function W_e(e,t){if(wu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(wu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var G_e=function(t){var n=t.data,r=t.startIndex,i=t.endIndex,o=t.x,a=t.width,l=t.travellerWidth;if(!n||!n.length)return{};var c=n.length,d=If().domain(Ay(0,c)).range([o,o+a-l]),p=d.domain().map(function(f){return d(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:d(r),endX:d(i),scale:d,scaleValues:p}},GD=function(t){return t.changedTouches&&!!t.changedTouches.length},_u=(function(e){function t(n){var r;return F_e(this,t),r=z_e(this,t,[n]),zr(r,"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),zr(r,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),zr(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=r.props,o=i.endIndex,a=i.onDragEnd,l=i.startIndex;a==null||a({endIndex:o,startIndex:l})}),r.detachDragEndListener()}),zr(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),zr(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),zr(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),zr(r,"handleSlideDragStart",function(i){var o=GD(i)?i.changedTouches[0]:i;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return V_e(t,e),q_e(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var i=r.startX,o=r.endX,a=this.state.scaleValues,l=this.props,c=l.gap,d=l.data,p=d.length-1,f=Math.min(i,o),m=Math.max(i,o),g=t.getIndexInRange(a,f),b=t.getIndexInRange(a,m);return{startIndex:g-g%c,endIndex:b===p?p:b-b%c}}},{key:"getTextOfTick",value:function(r){var i=this.props,o=i.data,a=i.tickFormatter,l=i.dataKey,c=Yr(o[r],l,r);return ut(a)?a(c,r):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(r){var i=this.state,o=i.slideMoveStartX,a=i.startX,l=i.endX,c=this.props,d=c.x,p=c.width,f=c.travellerWidth,m=c.startIndex,g=c.endIndex,b=c.onChange,y=r.pageX-o;y>0?y=Math.min(y,d+p-f-l,d+p-f-a):y<0&&(y=Math.max(y,d-a,d-l));var v=this.getIndex({startX:a+y,endX:l+y});(v.startIndex!==m||v.endIndex!==g)&&b&&b(v),this.setState({startX:a+y,endX:l+y,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var o=GD(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var i=this.state,o=i.brushMoveStartX,a=i.movingTravellerId,l=i.endX,c=i.startX,d=this.state[a],p=this.props,f=p.x,m=p.width,g=p.travellerWidth,b=p.onChange,y=p.gap,v=p.data,x={startX:this.state.startX,endX:this.state.endX},_=r.pageX-o;_>0?_=Math.min(_,f+m-g-d):_<0&&(_=Math.max(_,f-d)),x[a]=d+_;var j=this.getIndex(x),S=j.startIndex,N=j.endIndex,O=function(){var A=v.length-1;return a==="startX"&&(l>c?S%y===0:N%y===0)||l<c&&N===A||a==="endX"&&(l>c?N%y===0:S%y===0)||l>c&&N===A};this.setState(zr(zr({},a,d+_),"brushMoveStartX",r.pageX),function(){b&&O()&&b(j)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var o=this,a=this.state,l=a.scaleValues,c=a.startX,d=a.endX,p=this.state[i],f=l.indexOf(p);if(f!==-1){var m=f+r;if(!(m===-1||m>=l.length)){var g=l[m];i==="startX"&&g>=d||i==="endX"&&g<=c||this.setState(zr({},i,g),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,i=r.x,o=r.y,a=r.width,l=r.height,c=r.fill,d=r.stroke;return ue.createElement("rect",{stroke:d,fill:c,x:i,y:o,width:a,height:l})}},{key:"renderPanorama",value:function(){var r=this.props,i=r.x,o=r.y,a=r.width,l=r.height,c=r.data,d=r.children,p=r.padding,f=P.Children.only(d);return f?ue.cloneElement(f,{x:i,y:o,width:a,height:l,margin:p,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(r,i){var o,a,l=this,c=this.props,d=c.y,p=c.travellerWidth,f=c.height,m=c.traveller,g=c.ariaLabel,b=c.data,y=c.startIndex,v=c.endIndex,x=Math.max(r,this.props.x),_=p_(p_({},vt(this.props,!1)),{},{x,y:d,width:p,height:f}),j=g||"Min value: ".concat((o=b[y])===null||o===void 0?void 0:o.name,", Max value: ").concat((a=b[v])===null||a===void 0?void 0:a.name);return ue.createElement(cn,{tabIndex:0,role:"slider","aria-label":j,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(N){["ArrowLeft","ArrowRight"].includes(N.key)&&(N.preventDefault(),N.stopPropagation(),l.handleTravellerMoveKeyboard(N.key==="ArrowRight"?1:-1,i))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(m,_))}},{key:"renderSlide",value:function(r,i){var o=this.props,a=o.y,l=o.height,c=o.stroke,d=o.travellerWidth,p=Math.min(r,i)+d,f=Math.max(Math.abs(i-r)-d,0);return ue.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:p,y:a,width:f,height:l})}},{key:"renderText",value:function(){var r=this.props,i=r.startIndex,o=r.endIndex,a=r.y,l=r.height,c=r.travellerWidth,d=r.stroke,p=this.state,f=p.startX,m=p.endX,g=5,b={pointerEvents:"none",fill:d};return ue.createElement(cn,{className:"recharts-brush-texts"},ue.createElement(oy,Ty({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,m)-g,y:a+l/2},b),this.getTextOfTick(i)),ue.createElement(oy,Ty({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,m)+c+g,y:a+l/2},b),this.getTextOfTick(o)))}},{key:"render",value:function(){var r=this.props,i=r.data,o=r.className,a=r.children,l=r.x,c=r.y,d=r.width,p=r.height,f=r.alwaysShowText,m=this.state,g=m.startX,b=m.endX,y=m.isTextActive,v=m.isSlideMoving,x=m.isTravellerMoving,_=m.isTravellerFocused;if(!i||!i.length||!Re(l)||!Re(c)||!Re(d)||!Re(p)||d<=0||p<=0)return null;var j=xt("recharts-brush",o),S=ue.Children.count(a)===1,N=$_e("userSelect","none");return ue.createElement(cn,{className:j,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:N},this.renderBackground(),S&&this.renderPanorama(),this.renderSlide(g,b),this.renderTravellerLayer(g,"startX"),this.renderTravellerLayer(b,"endX"),(y||v||x||_||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,o=r.y,a=r.width,l=r.height,c=r.stroke,d=Math.floor(o+l/2)-1;return ue.createElement(ue.Fragment,null,ue.createElement("rect",{x:i,y:o,width:a,height:l,fill:c,stroke:"none"}),ue.createElement("line",{x1:i+1,y1:d,x2:i+a-1,y2:d,fill:"none",stroke:"#fff"}),ue.createElement("line",{x1:i+1,y1:d+2,x2:i+a-1,y2:d+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var o;return ue.isValidElement(r)?o=ue.cloneElement(r,i):ut(r)?o=r(i):o=t.renderDefaultTraveller(i),o}},{key:"getDerivedStateFromProps",value:function(r,i){var o=r.data,a=r.width,l=r.x,c=r.travellerWidth,d=r.updateId,p=r.startIndex,f=r.endIndex;if(o!==i.prevData||d!==i.prevUpdateId)return p_({prevData:o,prevTravellerWidth:c,prevUpdateId:d,prevX:l,prevWidth:a},o&&o.length?G_e({data:o,width:a,x:l,travellerWidth:c,startIndex:p,endIndex:f}):{scale:null,scaleValues:null});if(i.scale&&(a!==i.prevWidth||l!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([l,l+a-c]);var m=i.scale.domain().map(function(g){return i.scale(g)});return{prevData:o,prevTravellerWidth:c,prevUpdateId:d,prevX:l,prevWidth:a,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:m}}return null}},{key:"getIndexInRange",value:function(r,i){for(var o=r.length,a=0,l=o-1;l-a>1;){var c=Math.floor((a+l)/2);r[c]>i?l=c:a=c}return i>=r[l]?l:a}}])})(P.PureComponent);zr(_u,"displayName","Brush");zr(_u,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var m_,KD;function K_e(){if(KD)return m_;KD=1;var e=aO();function t(n,r){var i;return e(n,function(o,a,l){return i=r(o,a,l),!i}),!!i}return m_=t,m_}var g_,YD;function Y_e(){if(YD)return g_;YD=1;var e=a9(),t=vs(),n=K_e(),r=Tr(),i=Tv();function o(a,l,c){var d=r(a)?e:n;return c&&i(a,l,c)&&(l=void 0),d(a,t(l,3))}return g_=o,g_}var X_e=Y_e();const Q_e=Ct(X_e);var ho=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},y_,XD;function Z_e(){if(XD)return y_;XD=1;var e=Q9();function t(n,r,i){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):n[r]=i}return y_=t,y_}var v_,QD;function J_e(){if(QD)return v_;QD=1;var e=Z_e(),t=Y9(),n=vs();function r(i,o){var a={};return o=n(o,3),t(i,function(l,c,d){e(a,c,o(l,c,d))}),a}return v_=r,v_}var eSe=J_e();const tSe=Ct(eSe);var x_,ZD;function nSe(){if(ZD)return x_;ZD=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(!n(t[r],r,t))return!1;return!0}return x_=e,x_}var b_,JD;function rSe(){if(JD)return b_;JD=1;var e=aO();function t(n,r){var i=!0;return e(n,function(o,a,l){return i=!!r(o,a,l),i}),i}return b_=t,b_}var w_,e6;function iSe(){if(e6)return w_;e6=1;var e=nSe(),t=rSe(),n=vs(),r=Tr(),i=Tv();function o(a,l,c){var d=r(a)?e:t;return c&&i(a,l,c)&&(l=void 0),d(a,n(l,3))}return w_=o,w_}var oSe=iSe();const j7=Ct(oSe);var aSe=["x","y"];function Mh(e){"@babel/helpers - typeof";return Mh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mh(e)}function zj(){return zj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zj.apply(this,arguments)}function t6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function uf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?t6(Object(n),!0).forEach(function(r){sSe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sSe(e,t,n){return t=lSe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lSe(e){var t=cSe(e,"string");return Mh(t)=="symbol"?t:t+""}function cSe(e,t){if(Mh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Mh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uSe(e,t){if(e==null)return{};var n=dSe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function dSe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function fSe(e,t){var n=e.x,r=e.y,i=uSe(e,aSe),o="".concat(n),a=parseInt(o,10),l="".concat(r),c=parseInt(l,10),d="".concat(t.height||i.height),p=parseInt(d,10),f="".concat(t.width||i.width),m=parseInt(f,10);return uf(uf(uf(uf(uf({},t),i),a?{x:a}:{}),c?{y:c}:{}),{},{height:p,width:m,name:t.name,radius:t.radius})}function n6(e){return ue.createElement(j_e,zj({shapeType:"rectangle",propTransformer:fSe,activeClassName:"recharts-active-bar"},e))}var hSe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,i){if(typeof t=="number")return t;var o=Re(r)||Yhe(r);return o?t(r,i):(o||Rl(),n)}},pSe=["value","background"],N7;function Su(e){"@babel/helpers - typeof";return Su=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Su(e)}function mSe(e,t){if(e==null)return{};var n=gSe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gSe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Ry(){return Ry=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ry.apply(this,arguments)}function r6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function gn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?r6(Object(n),!0).forEach(function(r){Ja(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ySe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i6(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,O7(r.key),r)}}function vSe(e,t,n){return t&&i6(e.prototype,t),n&&i6(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function xSe(e,t,n){return t=My(t),bSe(e,k7()?Reflect.construct(t,n||[],My(e).constructor):t.apply(e,n))}function bSe(e,t){if(t&&(Su(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wSe(e)}function wSe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(k7=function(){return!!e})()}function My(e){return My=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},My(e)}function _Se(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Uj(e,t)}function Uj(e,t){return Uj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Uj(e,t)}function Ja(e,t,n){return t=O7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O7(e){var t=SSe(e,"string");return Su(t)=="symbol"?t:t+""}function SSe(e,t){if(Su(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Su(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var gp=(function(e){function t(){var n;ySe(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=xSe(this,t,[].concat(i)),Ja(n,"state",{isAnimationFinished:!1}),Ja(n,"id",up("recharts-bar-")),Ja(n,"handleAnimationEnd",function(){var a=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),a&&a()}),Ja(n,"handleAnimationStart",function(){var a=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),a&&a()}),n}return _Se(t,e),vSe(t,[{key:"renderRectanglesStatically",value:function(r){var i=this,o=this.props,a=o.shape,l=o.dataKey,c=o.activeIndex,d=o.activeBar,p=vt(this.props,!1);return r&&r.map(function(f,m){var g=m===c,b=g?d:a,y=gn(gn(gn({},p),f),{},{isActive:g,option:b,index:m,dataKey:l,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return ue.createElement(cn,Ry({className:"recharts-bar-rectangle"},Kg(i.props,f,m),{key:"rectangle-".concat(f==null?void 0:f.x,"-").concat(f==null?void 0:f.y,"-").concat(f==null?void 0:f.value,"-").concat(m)}),ue.createElement(n6,y))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,i=this.props,o=i.data,a=i.layout,l=i.isAnimationActive,c=i.animationBegin,d=i.animationDuration,p=i.animationEasing,f=i.animationId,m=this.state.prevData;return ue.createElement(ia,{begin:c,duration:d,isActive:l,easing:p,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(g){var b=g.t,y=o.map(function(v,x){var _=m&&m[x];if(_){var j=Di(_.x,v.x),S=Di(_.y,v.y),N=Di(_.width,v.width),O=Di(_.height,v.height);return gn(gn({},v),{},{x:j(b),y:S(b),width:N(b),height:O(b)})}if(a==="horizontal"){var E=Di(0,v.height),A=E(b);return gn(gn({},v),{},{y:v.y+v.height-A,height:A})}var I=Di(0,v.width),M=I(b);return gn(gn({},v),{},{width:M})});return ue.createElement(cn,null,r.renderRectanglesStatically(y))})}},{key:"renderRectangles",value:function(){var r=this.props,i=r.data,o=r.isAnimationActive,a=this.state.prevData;return o&&i&&i.length&&(!a||!Fv(a,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var r=this,i=this.props,o=i.data,a=i.dataKey,l=i.activeIndex,c=vt(this.props.background,!1);return o.map(function(d,p){d.value;var f=d.background,m=mSe(d,pSe);if(!f)return null;var g=gn(gn(gn(gn(gn({},m),{},{fill:"#eee"},f),c),Kg(r.props,d,p)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:a,index:p,className:"recharts-bar-background-rectangle"});return ue.createElement(n6,Ry({key:"background-bar-".concat(p),option:r.props.background,isActive:p===l},g))})}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.data,l=o.xAxis,c=o.yAxis,d=o.layout,p=o.children,f=hi(p,mp);if(!f)return null;var m=d==="vertical"?a[0].height/2:a[0].width/2,g=function(v,x){var _=Array.isArray(v.value)?v.value[1]:v.value;return{x:v.x,y:v.y,value:_,errorVal:Yr(v,x)}},b={clipPath:r?"url(#clipPath-".concat(i,")"):null};return ue.createElement(cn,b,f.map(function(y){return ue.cloneElement(y,{key:"error-bar-".concat(i,"-").concat(y.props.dataKey),data:a,xAxis:l,yAxis:c,layout:d,offset:m,dataPointFormatter:g})}))}},{key:"render",value:function(){var r=this.props,i=r.hide,o=r.data,a=r.className,l=r.xAxis,c=r.yAxis,d=r.left,p=r.top,f=r.width,m=r.height,g=r.isAnimationActive,b=r.background,y=r.id;if(i||!o||!o.length)return null;var v=this.state.isAnimationFinished,x=xt("recharts-bar",a),_=l&&l.allowDataOverflow,j=c&&c.allowDataOverflow,S=_||j,N=ft(y)?this.id:y;return ue.createElement(cn,{className:x},_||j?ue.createElement("defs",null,ue.createElement("clipPath",{id:"clipPath-".concat(N)},ue.createElement("rect",{x:_?d:d-f/2,y:j?p:p-m/2,width:_?f:f*2,height:j?m:m*2}))):null,ue.createElement(cn,{className:"recharts-bar-rectangles",clipPath:S?"url(#clipPath-".concat(N,")"):null},b?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(S,N),(!g||v)&&is.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:i.curData}:r.data!==i.curData?{curData:r.data}:null}}])})(P.PureComponent);N7=gp;Ja(gp,"displayName","Bar");Ja(gp,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Qu.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Ja(gp,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,i=e.bandSize,o=e.xAxis,a=e.yAxis,l=e.xAxisTicks,c=e.yAxisTicks,d=e.stackedData,p=e.dataStartIndex,f=e.displayedData,m=e.offset,g=B0e(r,n);if(!g)return null;var b=t.layout,y=n.type.defaultProps,v=y!==void 0?gn(gn({},y),n.props):n.props,x=v.dataKey,_=v.children,j=v.minPointSize,S=b==="horizontal"?a:o,N=d?S.scale.domain():null,O=W0e({numericAxis:S}),E=hi(_,iz),A=f.map(function(I,M){var C,R,B,$,z,H;d?C=$0e(d[p+M],N):(C=Yr(I,x),Array.isArray(C)||(C=[O,C]));var V=hSe(j,N7.defaultProps.minPointSize)(C[1],M);if(b==="horizontal"){var Y,W=[a.scale(C[0]),a.scale(C[1])],q=W[0],D=W[1];R=HI({axis:o,ticks:l,bandSize:i,offset:g.offset,entry:I,index:M}),B=(Y=D??q)!==null&&Y!==void 0?Y:void 0,$=g.size;var F=q-D;if(z=Number.isNaN(F)?0:F,H={x:R,y:a.y,width:$,height:a.height},Math.abs(V)>0&&Math.abs(z)<Math.abs(V)){var K=Bi(z||V)*(Math.abs(V)-Math.abs(z));B-=K,z+=K}}else{var ee=[o.scale(C[0]),o.scale(C[1])],J=ee[0],G=ee[1];if(R=J,B=HI({axis:a,ticks:c,bandSize:i,offset:g.offset,entry:I,index:M}),$=G-J,z=g.size,H={x:o.x,y:B,width:o.width,height:z},Math.abs(V)>0&&Math.abs($)<Math.abs(V)){var X=Bi($||V)*(Math.abs(V)-Math.abs($));$+=X}}return gn(gn(gn({},I),{},{x:R,y:B,width:$,height:z,value:d?C:C[1],payload:I,background:H},E&&E[M]&&E[M].props),{},{tooltipPayload:[c7(n,I)],tooltipPosition:{x:R+$/2,y:B+z/2}})});return gn({data:A,layout:b},m)});function Ih(e){"@babel/helpers - typeof";return Ih=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ih(e)}function jSe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o6(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,E7(r.key),r)}}function NSe(e,t,n){return t&&o6(e.prototype,t),n&&o6(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function a6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Mi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?a6(Object(n),!0).forEach(function(r){Vv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vv(e,t,n){return t=E7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E7(e){var t=kSe(e,"string");return Ih(t)=="symbol"?t:t+""}function kSe(e,t){if(Ih(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ih(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var OSe=function(t,n,r,i,o){var a=t.width,l=t.height,c=t.layout,d=t.children,p=Object.keys(n),f={left:r.left,leftMirror:r.left,right:a-r.right,rightMirror:a-r.right,top:r.top,topMirror:r.top,bottom:l-r.bottom,bottomMirror:l-r.bottom},m=!!Ur(d,gp);return p.reduce(function(g,b){var y=n[b],v=y.orientation,x=y.domain,_=y.padding,j=_===void 0?{}:_,S=y.mirror,N=y.reversed,O="".concat(v).concat(S?"Mirror":""),E,A,I,M,C;if(y.type==="number"&&(y.padding==="gap"||y.padding==="no-gap")){var R=x[1]-x[0],B=1/0,$=y.categoricalDomain.sort(Zhe);if($.forEach(function(ee,J){J>0&&(B=Math.min((ee||0)-($[J-1]||0),B))}),Number.isFinite(B)){var z=B/R,H=y.layout==="vertical"?r.height:r.width;if(y.padding==="gap"&&(E=z*H/2),y.padding==="no-gap"){var V=Tl(t.barCategoryGap,z*H),Y=z*H/2;E=Y-V-(Y-V)/H*V}}}i==="xAxis"?A=[r.left+(j.left||0)+(E||0),r.left+r.width-(j.right||0)-(E||0)]:i==="yAxis"?A=c==="horizontal"?[r.top+r.height-(j.bottom||0),r.top+(j.top||0)]:[r.top+(j.top||0)+(E||0),r.top+r.height-(j.bottom||0)-(E||0)]:A=y.range,N&&(A=[A[1],A[0]]);var W=D0e(y,o,m),q=W.scale,D=W.realScaleType;q.domain(x).range(A),L0e(q);var F=V0e(q,Mi(Mi({},y),{},{realScaleType:D}));i==="xAxis"?(C=v==="top"&&!S||v==="bottom"&&S,I=r.left,M=f[O]-C*y.height):i==="yAxis"&&(C=v==="left"&&!S||v==="right"&&S,I=f[O]-C*y.width,M=r.top);var K=Mi(Mi(Mi({},y),F),{},{realScaleType:D,x:I,y:M,scale:q,width:i==="xAxis"?r.width:y.width,height:i==="yAxis"?r.height:y.height});return K.bandSize=by(K,F),!y.hide&&i==="xAxis"?f[O]+=(C?-1:1)*K.height:y.hide||(f[O]+=(C?-1:1)*K.width),Mi(Mi({},g),{},Vv({},b,K))},{})},P7=function(t,n){var r=t.x,i=t.y,o=n.x,a=n.y;return{x:Math.min(r,o),y:Math.min(i,a),width:Math.abs(o-r),height:Math.abs(a-i)}},ESe=function(t){var n=t.x1,r=t.y1,i=t.x2,o=t.y2;return P7({x:n,y:r},{x:i,y:o})},A7=(function(){function e(t){jSe(this,e),this.scale=t}return NSe(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.bandAware,o=r.position;if(n!==void 0){if(o)switch(o){case"start":return this.scale(n);case"middle":{var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+a}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(n)+l}default:return this.scale(n)}if(i){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+c}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),i=r[0],o=r[r.length-1];return i<=o?n>=i&&n<=o:n>=o&&n<=i}}],[{key:"create",value:function(n){return new e(n)}}])})();Vv(A7,"EPS",1e-4);var DO=function(t){var n=Object.keys(t).reduce(function(r,i){return Mi(Mi({},r),{},Vv({},i,A7.create(t[i])))},{});return Mi(Mi({},n),{},{apply:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=o.bandAware,l=o.position;return tSe(i,function(c,d){return n[d].apply(c,{bandAware:a,position:l})})},isInRange:function(i){return j7(i,function(o,a){return n[a].isInRange(o)})}})};function PSe(e){return(e%180+180)%180}var ASe=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=PSe(i),a=o*Math.PI/180,l=Math.atan(r/n),c=a>l&&a<Math.PI-l?r/Math.sin(a):n/Math.cos(a);return Math.abs(c)},__,s6;function TSe(){if(s6)return __;s6=1;var e=vs(),t=lp(),n=jv();function r(i){return function(o,a,l){var c=Object(o);if(!t(o)){var d=e(a,3);o=n(o),a=function(f){return d(c[f],f,c)}}var p=i(o,a,l);return p>-1?c[d?o[p]:p]:void 0}}return __=r,__}var S_,l6;function CSe(){if(l6)return S_;l6=1;var e=b7();function t(n){var r=e(n),i=r%1;return r===r?i?r-i:r:0}return S_=t,S_}var j_,c6;function RSe(){if(c6)return j_;c6=1;var e=H9(),t=vs(),n=CSe(),r=Math.max;function i(o,a,l){var c=o==null?0:o.length;if(!c)return-1;var d=l==null?0:n(l);return d<0&&(d=r(c+d,0)),e(o,t(a,3),d)}return j_=i,j_}var N_,u6;function MSe(){if(u6)return N_;u6=1;var e=TSe(),t=RSe(),n=e(t);return N_=n,N_}var ISe=MSe();const DSe=Ct(ISe);var LSe=y9();const BSe=Ct(LSe);var $Se=BSe(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),LO=P.createContext(void 0),BO=P.createContext(void 0),T7=P.createContext(void 0),C7=P.createContext({}),R7=P.createContext(void 0),M7=P.createContext(0),I7=P.createContext(0),d6=function(t){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,o=n.offset,a=t.clipPathId,l=t.children,c=t.width,d=t.height,p=$Se(o);return ue.createElement(LO.Provider,{value:r},ue.createElement(BO.Provider,{value:i},ue.createElement(C7.Provider,{value:o},ue.createElement(T7.Provider,{value:p},ue.createElement(R7.Provider,{value:a},ue.createElement(M7.Provider,{value:d},ue.createElement(I7.Provider,{value:c},l)))))))},FSe=function(){return P.useContext(R7)},D7=function(t){var n=P.useContext(LO);n==null&&Rl();var r=n[t];return r==null&&Rl(),r},qSe=function(){var t=P.useContext(LO);return qa(t)},zSe=function(){var t=P.useContext(BO),n=DSe(t,function(r){return j7(r.domain,Number.isFinite)});return n||qa(t)},L7=function(t){var n=P.useContext(BO);n==null&&Rl();var r=n[t];return r==null&&Rl(),r},USe=function(){var t=P.useContext(T7);return t},HSe=function(){return P.useContext(C7)},$O=function(){return P.useContext(I7)},FO=function(){return P.useContext(M7)};function ju(e){"@babel/helpers - typeof";return ju=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ju(e)}function VSe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WSe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$7(r.key),r)}}function GSe(e,t,n){return t&&WSe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function KSe(e,t,n){return t=Iy(t),YSe(e,B7()?Reflect.construct(t,n||[],Iy(e).constructor):t.apply(e,n))}function YSe(e,t){if(t&&(ju(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return XSe(e)}function XSe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(B7=function(){return!!e})()}function Iy(e){return Iy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Iy(e)}function QSe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Hj(e,t)}function Hj(e,t){return Hj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Hj(e,t)}function f6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function h6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?f6(Object(n),!0).forEach(function(r){qO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qO(e,t,n){return t=$7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $7(e){var t=ZSe(e,"string");return ju(t)=="symbol"?t:t+""}function ZSe(e,t){if(ju(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ju(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function JSe(e,t){return rje(e)||nje(e,t)||tje(e,t)||eje()}function eje(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
690In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tje(e,t){if(e){if(typeof e=="string")return p6(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p6(e,t)}}function p6(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function nje(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(p){d=!0,i=p}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw i}}return l}}function rje(e){if(Array.isArray(e))return e}function Vj(){return Vj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vj.apply(this,arguments)}var ije=function(t,n){var r;return ue.isValidElement(t)?r=ue.cloneElement(t,n):ut(t)?r=t(n):r=ue.createElement("line",Vj({},n,{className:"recharts-reference-line-line"})),r},oje=function(t,n,r,i,o,a,l,c,d){var p=o.x,f=o.y,m=o.width,g=o.height;if(r){var b=d.y,y=t.y.apply(b,{position:a});if(ho(d,"discard")&&!t.y.isInRange(y))return null;var v=[{x:p+m,y},{x:p,y}];return c==="left"?v.reverse():v}if(n){var x=d.x,_=t.x.apply(x,{position:a});if(ho(d,"discard")&&!t.x.isInRange(_))return null;var j=[{x:_,y:f+g},{x:_,y:f}];return l==="top"?j.reverse():j}if(i){var S=d.segment,N=S.map(function(O){return t.apply(O,{position:a})});return ho(d,"discard")&&Q_e(N,function(O){return!t.isInRange(O)})?null:N}return null};function aje(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,o=e.yAxisId,a=e.shape,l=e.className,c=e.alwaysShow,d=FSe(),p=D7(i),f=L7(o),m=USe();if(!d||!m)return null;Go(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var g=DO({x:p.scale,y:f.scale}),b=kn(t),y=kn(n),v=r&&r.length===2,x=oje(g,b,y,v,m,e.position,p.orientation,f.orientation,e);if(!x)return null;var _=JSe(x,2),j=_[0],S=j.x,N=j.y,O=_[1],E=O.x,A=O.y,I=ho(e,"hidden")?"url(#".concat(d,")"):void 0,M=h6(h6({clipPath:I},vt(e,!0)),{},{x1:S,y1:N,x2:E,y2:A});return ue.createElement(cn,{className:xt("recharts-reference-line",l)},ije(a,M),ir.renderCallByParent(e,ESe({x1:S,y1:N,x2:E,y2:A})))}var zO=(function(e){function t(){return VSe(this,t),KSe(this,t,arguments)}return QSe(t,e),GSe(t,[{key:"render",value:function(){return ue.createElement(aje,this.props)}}])})(ue.Component);qO(zO,"displayName","ReferenceLine");qO(zO,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Wj(){return Wj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wj.apply(this,arguments)}function Nu(e){"@babel/helpers - typeof";return Nu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nu(e)}function m6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function g6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?m6(Object(n),!0).forEach(function(r){Wv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lje(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,q7(r.key),r)}}function cje(e,t,n){return t&&lje(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function uje(e,t,n){return t=Dy(t),dje(e,F7()?Reflect.construct(t,n||[],Dy(e).constructor):t.apply(e,n))}function dje(e,t){if(t&&(Nu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fje(e)}function fje(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(F7=function(){return!!e})()}function Dy(e){return Dy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Dy(e)}function hje(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gj(e,t)}function Gj(e,t){return Gj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Gj(e,t)}function Wv(e,t,n){return t=q7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q7(e){var t=pje(e,"string");return Nu(t)=="symbol"?t:t+""}function pje(e,t){if(Nu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Nu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var mje=function(t){var n=t.x,r=t.y,i=t.xAxis,o=t.yAxis,a=DO({x:i.scale,y:o.scale}),l=a.apply({x:n,y:r},{bandAware:!0});return ho(t,"discard")&&!a.isInRange(l)?null:l},Gv=(function(e){function t(){return sje(this,t),uje(this,t,arguments)}return hje(t,e),cje(t,[{key:"render",value:function(){var r=this.props,i=r.x,o=r.y,a=r.r,l=r.alwaysShow,c=r.clipPathId,d=kn(i),p=kn(o);if(Go(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!d||!p)return null;var f=mje(this.props);if(!f)return null;var m=f.x,g=f.y,b=this.props,y=b.shape,v=b.className,x=ho(this.props,"hidden")?"url(#".concat(c,")"):void 0,_=g6(g6({clipPath:x},vt(this.props,!0)),{},{cx:m,cy:g});return ue.createElement(cn,{className:xt("recharts-reference-dot",v)},t.renderDot(y,_),ir.renderCallByParent(this.props,{x:m-a,y:g-a,width:2*a,height:2*a}))}}])})(ue.Component);Wv(Gv,"displayName","ReferenceDot");Wv(Gv,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Wv(Gv,"renderDot",function(e,t){var n;return ue.isValidElement(e)?n=ue.cloneElement(e,t):ut(e)?n=e(t):n=ue.createElement(IO,Wj({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function Kj(){return Kj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kj.apply(this,arguments)}function ku(e){"@babel/helpers - typeof";return ku=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ku(e)}function y6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function v6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?y6(Object(n),!0).forEach(function(r){Kv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yje(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,U7(r.key),r)}}function vje(e,t,n){return t&&yje(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function xje(e,t,n){return t=Ly(t),bje(e,z7()?Reflect.construct(t,n||[],Ly(e).constructor):t.apply(e,n))}function bje(e,t){if(t&&(ku(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wje(e)}function wje(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(z7=function(){return!!e})()}function Ly(e){return Ly=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ly(e)}function _je(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yj(e,t)}function Yj(e,t){return Yj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Yj(e,t)}function Kv(e,t,n){return t=U7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U7(e){var t=Sje(e,"string");return ku(t)=="symbol"?t:t+""}function Sje(e,t){if(ku(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ku(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var jje=function(t,n,r,i,o){var a=o.x1,l=o.x2,c=o.y1,d=o.y2,p=o.xAxis,f=o.yAxis;if(!p||!f)return null;var m=DO({x:p.scale,y:f.scale}),g={x:t?m.x.apply(a,{position:"start"}):m.x.rangeMin,y:r?m.y.apply(c,{position:"start"}):m.y.rangeMin},b={x:n?m.x.apply(l,{position:"end"}):m.x.rangeMax,y:i?m.y.apply(d,{position:"end"}):m.y.rangeMax};return ho(o,"discard")&&(!m.isInRange(g)||!m.isInRange(b))?null:P7(g,b)},Yv=(function(e){function t(){return gje(this,t),xje(this,t,arguments)}return _je(t,e),vje(t,[{key:"render",value:function(){var r=this.props,i=r.x1,o=r.x2,a=r.y1,l=r.y2,c=r.className,d=r.alwaysShow,p=r.clipPathId;Go(d===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=kn(i),m=kn(o),g=kn(a),b=kn(l),y=this.props.shape;if(!f&&!m&&!g&&!b&&!y)return null;var v=jje(f,m,g,b,this.props);if(!v&&!y)return null;var x=ho(this.props,"hidden")?"url(#".concat(p,")"):void 0;return ue.createElement(cn,{className:xt("recharts-reference-area",c)},t.renderRect(y,v6(v6({clipPath:x},vt(this.props,!0)),v)),ir.renderCallByParent(this.props,v))}}])})(ue.Component);Kv(Yv,"displayName","ReferenceArea");Kv(Yv,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Kv(Yv,"renderRect",function(e,t){var n;return ue.isValidElement(e)?n=ue.cloneElement(e,t):ut(e)?n=e(t):n=ue.createElement(MO,Kj({},t,{className:"recharts-reference-area-rect"})),n});function H7(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],i=0;i<e.length;i+=t)r.push(e[i]);return r}function Nje(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return ASe(r,n)}function kje(e,t,n){var r=n==="width",i=e.x,o=e.y,a=e.width,l=e.height;return t===1?{start:r?i:o,end:r?i+a:o+l}:{start:r?i+a:o+l,end:r?i:o}}function By(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var o=n();return e*(t-e*o/2-r)>=0&&e*(t+e*o/2-i)<=0}function Oje(e,t){return H7(e,t+1)}function Eje(e,t,n,r,i){for(var o=(r||[]).slice(),a=t.start,l=t.end,c=0,d=1,p=a,f=function(){var b=r==null?void 0:r[c];if(b===void 0)return{v:H7(r,d)};var y=c,v,x=function(){return v===void 0&&(v=n(b,y)),v},_=b.coordinate,j=c===0||By(e,_,x,p,l);j||(c=0,p=a,d+=1),j&&(p=_+e*(x()/2+i),c+=d)},m;d<=o.length;)if(m=f(),m)return m.v;return[]}function Dh(e){"@babel/helpers - typeof";return Dh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dh(e)}function x6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function rr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?x6(Object(n),!0).forEach(function(r){Pje(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pje(e,t,n){return t=Aje(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Aje(e){var t=Tje(e,"string");return Dh(t)=="symbol"?t:t+""}function Tje(e,t){if(Dh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Dh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cje(e,t,n,r,i){for(var o=(r||[]).slice(),a=o.length,l=t.start,c=t.end,d=function(m){var g=o[m],b,y=function(){return b===void 0&&(b=n(g,m)),b};if(m===a-1){var v=e*(g.coordinate+e*y()/2-c);o[m]=g=rr(rr({},g),{},{tickCoord:v>0?g.coordinate-v*e:g.coordinate})}else o[m]=g=rr(rr({},g),{},{tickCoord:g.coordinate});var x=By(e,g.tickCoord,y,l,c);x&&(c=g.tickCoord-e*(y()/2+i),o[m]=rr(rr({},g),{},{isShow:!0}))},p=a-1;p>=0;p--)d(p);return o}function Rje(e,t,n,r,i,o){var a=(r||[]).slice(),l=a.length,c=t.start,d=t.end;if(o){var p=r[l-1],f=n(p,l-1),m=e*(p.coordinate+e*f/2-d);a[l-1]=p=rr(rr({},p),{},{tickCoord:m>0?p.coordinate-m*e:p.coordinate});var g=By(e,p.tickCoord,function(){return f},c,d);g&&(d=p.tickCoord-e*(f/2+i),a[l-1]=rr(rr({},p),{},{isShow:!0}))}for(var b=o?l-1:l,y=function(_){var j=a[_],S,N=function(){return S===void 0&&(S=n(j,_)),S};if(_===0){var O=e*(j.coordinate-e*N()/2-c);a[_]=j=rr(rr({},j),{},{tickCoord:O<0?j.coordinate-O*e:j.coordinate})}else a[_]=j=rr(rr({},j),{},{tickCoord:j.coordinate});var E=By(e,j.tickCoord,N,c,d);E&&(c=j.tickCoord+e*(N()/2+i),a[_]=rr(rr({},j),{},{isShow:!0}))},v=0;v<b;v++)y(v);return a}function UO(e,t,n){var r=e.tick,i=e.ticks,o=e.viewBox,a=e.minTickGap,l=e.orientation,c=e.interval,d=e.tickFormatter,p=e.unit,f=e.angle;if(!i||!i.length||!r)return[];if(Re(c)||Qu.isSsr)return Oje(i,typeof c=="number"&&Re(c)?c:0);var m=[],g=l==="top"||l==="bottom"?"width":"height",b=p&&g==="width"?Mf(p,{fontSize:t,letterSpacing:n}):{width:0,height:0},y=function(j,S){var N=ut(d)?d(j.value,S):j.value;return g==="width"?Nje(Mf(N,{fontSize:t,letterSpacing:n}),b,f):Mf(N,{fontSize:t,letterSpacing:n})[g]},v=i.length>=2?Bi(i[1].coordinate-i[0].coordinate):1,x=kje(o,v,g);return c==="equidistantPreserveStart"?Eje(v,x,y,i,a):(c==="preserveStart"||c==="preserveStartEnd"?m=Rje(v,x,y,i,a,c==="preserveStartEnd"):m=Cje(v,x,y,i,a),m.filter(function(_){return _.isShow}))}var Mje=["viewBox"],Ije=["viewBox"],Dje=["ticks"];function Ou(e){"@babel/helpers - typeof";return Ou=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ou(e)}function Bc(){return Bc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bc.apply(this,arguments)}function b6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Sn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?b6(Object(n),!0).forEach(function(r){HO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function k_(e,t){if(e==null)return{};var n=Lje(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Lje(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Bje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w6(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,W7(r.key),r)}}function $je(e,t,n){return t&&w6(e.prototype,t),n&&w6(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fje(e,t,n){return t=$y(t),qje(e,V7()?Reflect.construct(t,n||[],$y(e).constructor):t.apply(e,n))}function qje(e,t){if(t&&(Ou(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zje(e)}function zje(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(V7=function(){return!!e})()}function $y(e){return $y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},$y(e)}function Uje(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xj(e,t)}function Xj(e,t){return Xj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Xj(e,t)}function HO(e,t,n){return t=W7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W7(e){var t=Hje(e,"string");return Ou(t)=="symbol"?t:t+""}function Hje(e,t){if(Ou(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ou(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var td=(function(e){function t(n){var r;return Bje(this,t),r=Fje(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return Uje(t,e),$je(t,[{key:"shouldComponentUpdate",value:function(r,i){var o=r.viewBox,a=k_(r,Mje),l=this.props,c=l.viewBox,d=k_(l,Ije);return!Uc(o,c)||!Uc(a,d)||!Uc(i,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var i=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var i=this.props,o=i.x,a=i.y,l=i.width,c=i.height,d=i.orientation,p=i.tickSize,f=i.mirror,m=i.tickMargin,g,b,y,v,x,_,j=f?-1:1,S=r.tickSize||p,N=Re(r.tickCoord)?r.tickCoord:r.coordinate;switch(d){case"top":g=b=r.coordinate,v=a+ +!f*c,y=v-j*S,_=y-j*m,x=N;break;case"left":y=v=r.coordinate,b=o+ +!f*l,g=b-j*S,x=g-j*m,_=N;break;case"right":y=v=r.coordinate,b=o+ +f*l,g=b+j*S,x=g+j*m,_=N;break;default:g=b=r.coordinate,v=a+ +f*c,y=v+j*S,_=y+j*m,x=N;break}return{line:{x1:g,y1:y,x2:b,y2:v},tick:{x,y:_}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,i=r.orientation,o=r.mirror,a;switch(i){case"left":a=o?"start":"end";break;case"right":a=o?"end":"start";break;default:a="middle";break}return a}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,i=r.orientation,o=r.mirror,a="end";switch(i){case"left":case"right":a="middle";break;case"top":a=o?"start":"end";break;default:a=o?"end":"start";break}return a}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.x,o=r.y,a=r.width,l=r.height,c=r.orientation,d=r.mirror,p=r.axisLine,f=Sn(Sn(Sn({},vt(this.props,!1)),vt(p,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var m=+(c==="top"&&!d||c==="bottom"&&d);f=Sn(Sn({},f),{},{x1:i,y1:o+m*l,x2:i+a,y2:o+m*l})}else{var g=+(c==="left"&&!d||c==="right"&&d);f=Sn(Sn({},f),{},{x1:i+g*a,y1:o,x2:i+g*a,y2:o+l})}return ue.createElement("line",Bc({},f,{className:xt("recharts-cartesian-axis-line",fi(p,"className"))}))}},{key:"renderTicks",value:function(r,i,o){var a=this,l=this.props,c=l.tickLine,d=l.stroke,p=l.tick,f=l.tickFormatter,m=l.unit,g=UO(Sn(Sn({},this.props),{},{ticks:r}),i,o),b=this.getTickTextAnchor(),y=this.getTickVerticalAnchor(),v=vt(this.props,!1),x=vt(p,!1),_=Sn(Sn({},v),{},{fill:"none"},vt(c,!1)),j=g.map(function(S,N){var O=a.getTickLineCoord(S),E=O.line,A=O.tick,I=Sn(Sn(Sn(Sn({textAnchor:b,verticalAnchor:y},v),{},{stroke:"none",fill:d},x),A),{},{index:N,payload:S,visibleTicksCount:g.length,tickFormatter:f});return ue.createElement(cn,Bc({className:"recharts-cartesian-axis-tick",key:"tick-".concat(S.value,"-").concat(S.coordinate,"-").concat(S.tickCoord)},Kg(a.props,S,N)),c&&ue.createElement("line",Bc({},_,E,{className:xt("recharts-cartesian-axis-tick-line",fi(c,"className"))})),p&&t.renderTickItem(p,I,"".concat(ut(f)?f(S.value,N):S.value).concat(m||"")))});return ue.createElement("g",{className:"recharts-cartesian-axis-ticks"},j)}},{key:"render",value:function(){var r=this,i=this.props,o=i.axisLine,a=i.width,l=i.height,c=i.ticksGenerator,d=i.className,p=i.hide;if(p)return null;var f=this.props,m=f.ticks,g=k_(f,Dje),b=m;return ut(c)&&(b=m&&m.length>0?c(this.props):c(g)),a<=0||l<=0||!b||!b.length?null:ue.createElement(cn,{className:xt("recharts-cartesian-axis",d),ref:function(v){r.layerReference=v}},o&&this.renderAxisLine(),this.renderTicks(b,this.state.fontSize,this.state.letterSpacing),ir.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,i,o){var a,l=xt(i.className,"recharts-cartesian-axis-tick-value");return ue.isValidElement(r)?a=ue.cloneElement(r,Sn(Sn({},i),{},{className:l})):ut(r)?a=r(Sn(Sn({},i),{},{className:l})):a=ue.createElement(oy,Bc({},i,{className:"recharts-cartesian-axis-tick-value"}),o),a}}])})(P.Component);HO(td,"displayName","CartesianAxis");HO(td,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var Vje=["x1","y1","x2","y2","key"],Wje=["offset"];function Ml(e){"@babel/helpers - typeof";return Ml=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ml(e)}function _6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function or(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_6(Object(n),!0).forEach(function(r){Gje(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gje(e,t,n){return t=Kje(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kje(e){var t=Yje(e,"string");return Ml(t)=="symbol"?t:t+""}function Yje(e,t){if(Ml(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ml(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function al(){return al=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},al.apply(this,arguments)}function S6(e,t){if(e==null)return{};var n=Xje(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Xje(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Qje=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,i=t.x,o=t.y,a=t.width,l=t.height,c=t.ry;return ue.createElement("rect",{x:i,y:o,ry:c,width:a,height:l,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function G7(e,t){var n;if(ue.isValidElement(e))n=ue.cloneElement(e,t);else if(ut(e))n=e(t);else{var r=t.x1,i=t.y1,o=t.x2,a=t.y2,l=t.key,c=S6(t,Vje),d=vt(c,!1);d.offset;var p=S6(d,Wje);n=ue.createElement("line",al({},p,{x1:r,y1:i,x2:o,y2:a,fill:"none",key:l}))}return n}function Zje(e){var t=e.x,n=e.width,r=e.horizontal,i=r===void 0?!0:r,o=e.horizontalPoints;if(!i||!o||!o.length)return null;var a=o.map(function(l,c){var d=or(or({},e),{},{x1:t,y1:l,x2:t+n,y2:l,key:"line-".concat(c),index:c});return G7(i,d)});return ue.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}function Jje(e){var t=e.y,n=e.height,r=e.vertical,i=r===void 0?!0:r,o=e.verticalPoints;if(!i||!o||!o.length)return null;var a=o.map(function(l,c){var d=or(or({},e),{},{x1:l,y1:t,x2:l,y2:t+n,key:"line-".concat(c),index:c});return G7(i,d)});return ue.createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}function eNe(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,o=e.width,a=e.height,l=e.horizontalPoints,c=e.horizontal,d=c===void 0?!0:c;if(!d||!t||!t.length)return null;var p=l.map(function(m){return Math.round(m+i-i)}).sort(function(m,g){return m-g});i!==p[0]&&p.unshift(0);var f=p.map(function(m,g){var b=!p[g+1],y=b?i+a-m:p[g+1]-m;if(y<=0)return null;var v=g%t.length;return ue.createElement("rect",{key:"react-".concat(g),y:m,x:r,height:y,width:o,stroke:"none",fill:t[v],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return ue.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function tNe(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,i=e.fillOpacity,o=e.x,a=e.y,l=e.width,c=e.height,d=e.verticalPoints;if(!n||!r||!r.length)return null;var p=d.map(function(m){return Math.round(m+o-o)}).sort(function(m,g){return m-g});o!==p[0]&&p.unshift(0);var f=p.map(function(m,g){var b=!p[g+1],y=b?o+l-m:p[g+1]-m;if(y<=0)return null;var v=g%r.length;return ue.createElement("rect",{key:"react-".concat(g),x:m,y:a,width:y,height:c,stroke:"none",fill:r[v],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return ue.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var nNe=function(t,n){var r=t.xAxis,i=t.width,o=t.height,a=t.offset;return s7(UO(or(or(or({},td.defaultProps),r),{},{ticks:Uo(r,!0),viewBox:{x:0,y:0,width:i,height:o}})),a.left,a.left+a.width,n)},rNe=function(t,n){var r=t.yAxis,i=t.width,o=t.height,a=t.offset;return s7(UO(or(or(or({},td.defaultProps),r),{},{ticks:Uo(r,!0),viewBox:{x:0,y:0,width:i,height:o}})),a.top,a.top+a.height,n)},kc={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function K7(e){var t,n,r,i,o,a,l=$O(),c=FO(),d=HSe(),p=or(or({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:kc.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:kc.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:kc.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:kc.horizontalFill,vertical:(o=e.vertical)!==null&&o!==void 0?o:kc.vertical,verticalFill:(a=e.verticalFill)!==null&&a!==void 0?a:kc.verticalFill,x:Re(e.x)?e.x:d.left,y:Re(e.y)?e.y:d.top,width:Re(e.width)?e.width:d.width,height:Re(e.height)?e.height:d.height}),f=p.x,m=p.y,g=p.width,b=p.height,y=p.syncWithTicks,v=p.horizontalValues,x=p.verticalValues,_=qSe(),j=zSe();if(!Re(g)||g<=0||!Re(b)||b<=0||!Re(f)||f!==+f||!Re(m)||m!==+m)return null;var S=p.verticalCoordinatesGenerator||nNe,N=p.horizontalCoordinatesGenerator||rNe,O=p.horizontalPoints,E=p.verticalPoints;if((!O||!O.length)&&ut(N)){var A=v&&v.length,I=N({yAxis:j?or(or({},j),{},{ticks:A?v:j.ticks}):void 0,width:l,height:c,offset:d},A?!0:y);Go(Array.isArray(I),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Ml(I),"]")),Array.isArray(I)&&(O=I)}if((!E||!E.length)&&ut(S)){var M=x&&x.length,C=S({xAxis:_?or(or({},_),{},{ticks:M?x:_.ticks}):void 0,width:l,height:c,offset:d},M?!0:y);Go(Array.isArray(C),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Ml(C),"]")),Array.isArray(C)&&(E=C)}return ue.createElement("g",{className:"recharts-cartesian-grid"},ue.createElement(Qje,{fill:p.fill,fillOpacity:p.fillOpacity,x:p.x,y:p.y,width:p.width,height:p.height,ry:p.ry}),ue.createElement(Zje,al({},p,{offset:d,horizontalPoints:O,xAxis:_,yAxis:j})),ue.createElement(Jje,al({},p,{offset:d,verticalPoints:E,xAxis:_,yAxis:j})),ue.createElement(eNe,al({},p,{horizontalPoints:O})),ue.createElement(tNe,al({},p,{verticalPoints:E})))}K7.displayName="CartesianGrid";var iNe=["type","layout","connectNulls","ref"],oNe=["key"];function Eu(e){"@babel/helpers - typeof";return Eu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Eu(e)}function j6(e,t){if(e==null)return{};var n=aNe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function aNe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Bf(){return Bf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bf.apply(this,arguments)}function N6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $r(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?N6(Object(n),!0).forEach(function(r){Ii(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Oc(e){return uNe(e)||cNe(e)||lNe(e)||sNe()}function sNe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
691In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lNe(e,t){if(e){if(typeof e=="string")return Qj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qj(e,t)}}function cNe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uNe(e){if(Array.isArray(e))return Qj(e)}function Qj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function dNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k6(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,X7(r.key),r)}}function fNe(e,t,n){return t&&k6(e.prototype,t),n&&k6(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function hNe(e,t,n){return t=Fy(t),pNe(e,Y7()?Reflect.construct(t,n||[],Fy(e).constructor):t.apply(e,n))}function pNe(e,t){if(t&&(Eu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mNe(e)}function mNe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Y7=function(){return!!e})()}function Fy(e){return Fy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Fy(e)}function gNe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zj(e,t)}function Zj(e,t){return Zj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Zj(e,t)}function Ii(e,t,n){return t=X7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X7(e){var t=yNe(e,"string");return Eu(t)=="symbol"?t:t+""}function yNe(e,t){if(Eu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Eu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Pu=(function(e){function t(){var n;dNe(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=hNe(this,t,[].concat(i)),Ii(n,"state",{isAnimationFinished:!0,totalLength:0}),Ii(n,"generateSimpleStrokeDasharray",function(a,l){return"".concat(l,"px ").concat(a-l,"px")}),Ii(n,"getStrokeDasharray",function(a,l,c){var d=c.reduce(function(x,_){return x+_});if(!d)return n.generateSimpleStrokeDasharray(l,a);for(var p=Math.floor(a/d),f=a%d,m=l-a,g=[],b=0,y=0;b<c.length;y+=c[b],++b)if(y+c[b]>f){g=[].concat(Oc(c.slice(0,b)),[f-y]);break}var v=g.length%2===0?[0,m]:[m];return[].concat(Oc(t.repeat(c,p)),Oc(g),v).map(function(x){return"".concat(x,"px")}).join(", ")}),Ii(n,"id",up("recharts-line-")),Ii(n,"pathRef",function(a){n.mainCurve=a}),Ii(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),Ii(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return gNe(t,e),fNe(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();this.setState({totalLength:r})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();r!==this.state.totalLength&&this.setState({totalLength:r})}}},{key:"getTotalLength",value:function(){var r=this.mainCurve;try{return r&&r.getTotalLength&&r.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.points,l=o.xAxis,c=o.yAxis,d=o.layout,p=o.children,f=hi(p,mp);if(!f)return null;var m=function(y,v){return{x:y.x,y:y.y,value:y.value,errorVal:Yr(y.payload,v)}},g={clipPath:r?"url(#clipPath-".concat(i,")"):null};return ue.createElement(cn,g,f.map(function(b){return ue.cloneElement(b,{key:"bar-".concat(b.props.dataKey),data:a,xAxis:l,yAxis:c,layout:d,dataPointFormatter:m})}))}},{key:"renderDots",value:function(r,i,o){var a=this.props.isAnimationActive;if(a&&!this.state.isAnimationFinished)return null;var l=this.props,c=l.dot,d=l.points,p=l.dataKey,f=vt(this.props,!1),m=vt(c,!0),g=d.map(function(y,v){var x=$r($r($r({key:"dot-".concat(v),r:3},f),m),{},{index:v,cx:y.x,cy:y.y,value:y.value,dataKey:p,payload:y.payload,points:d});return t.renderDotItem(c,x)}),b={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(o,")"):null};return ue.createElement(cn,Bf({className:"recharts-line-dots",key:"dots"},b),g)}},{key:"renderCurveStatically",value:function(r,i,o,a){var l=this.props,c=l.type,d=l.layout,p=l.connectNulls;l.ref;var f=j6(l,iNe),m=$r($r($r({},vt(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(o,")"):null,points:r},a),{},{type:c,layout:d,connectNulls:p});return ue.createElement(Pj,Bf({},m,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,i){var o=this,a=this.props,l=a.points,c=a.strokeDasharray,d=a.isAnimationActive,p=a.animationBegin,f=a.animationDuration,m=a.animationEasing,g=a.animationId,b=a.animateNewValues,y=a.width,v=a.height,x=this.state,_=x.prevPoints,j=x.totalLength;return ue.createElement(ia,{begin:p,duration:f,isActive:d,easing:m,from:{t:0},to:{t:1},key:"line-".concat(g),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(S){var N=S.t;if(_){var O=_.length/l.length,E=l.map(function(R,B){var $=Math.floor(B*O);if(_[$]){var z=_[$],H=Di(z.x,R.x),V=Di(z.y,R.y);return $r($r({},R),{},{x:H(N),y:V(N)})}if(b){var Y=Di(y*2,R.x),W=Di(v/2,R.y);return $r($r({},R),{},{x:Y(N),y:W(N)})}return $r($r({},R),{},{x:R.x,y:R.y})});return o.renderCurveStatically(E,r,i)}var A=Di(0,j),I=A(N),M;if(c){var C="".concat(c).split(/[,\s]+/gim).map(function(R){return parseFloat(R)});M=o.getStrokeDasharray(I,j,C)}else M=o.generateSimpleStrokeDasharray(j,I);return o.renderCurveStatically(l,r,i,{strokeDasharray:M})})}},{key:"renderCurve",value:function(r,i){var o=this.props,a=o.points,l=o.isAnimationActive,c=this.state,d=c.prevPoints,p=c.totalLength;return l&&a&&a.length&&(!d&&p>0||!Fv(d,a))?this.renderCurveWithAnimation(r,i):this.renderCurveStatically(a,r,i)}},{key:"render",value:function(){var r,i=this.props,o=i.hide,a=i.dot,l=i.points,c=i.className,d=i.xAxis,p=i.yAxis,f=i.top,m=i.left,g=i.width,b=i.height,y=i.isAnimationActive,v=i.id;if(o||!l||!l.length)return null;var x=this.state.isAnimationFinished,_=l.length===1,j=xt("recharts-line",c),S=d&&d.allowDataOverflow,N=p&&p.allowDataOverflow,O=S||N,E=ft(v)?this.id:v,A=(r=vt(a,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},I=A.r,M=I===void 0?3:I,C=A.strokeWidth,R=C===void 0?2:C,B=spe(a)?a:{},$=B.clipDot,z=$===void 0?!0:$,H=M*2+R;return ue.createElement(cn,{className:j},S||N?ue.createElement("defs",null,ue.createElement("clipPath",{id:"clipPath-".concat(E)},ue.createElement("rect",{x:S?m:m-g/2,y:N?f:f-b/2,width:S?g:g*2,height:N?b:b*2})),!z&&ue.createElement("clipPath",{id:"clipPath-dots-".concat(E)},ue.createElement("rect",{x:m-H/2,y:f-H/2,width:g+H,height:b+H}))):null,!_&&this.renderCurve(O,E),this.renderErrorBar(O,E),(_||a)&&this.renderDots(O,z,E),(!y||x)&&is.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:i.curPoints}:r.points!==i.curPoints?{curPoints:r.points}:null}},{key:"repeat",value:function(r,i){for(var o=r.length%2!==0?[].concat(Oc(r),[0]):r,a=[],l=0;l<i;++l)a=[].concat(Oc(a),Oc(o));return a}},{key:"renderDotItem",value:function(r,i){var o;if(ue.isValidElement(r))o=ue.cloneElement(r,i);else if(ut(r))o=r(i);else{var a=i.key,l=j6(i,oNe),c=xt("recharts-line-dot",typeof r!="boolean"?r.className:"");o=ue.createElement(IO,Bf({key:a},l,{className:c}))}return o}}])})(P.PureComponent);Ii(Pu,"displayName","Line");Ii(Pu,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Qu.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Ii(Pu,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,i=e.xAxisTicks,o=e.yAxisTicks,a=e.dataKey,l=e.bandSize,c=e.displayedData,d=e.offset,p=t.layout,f=c.map(function(m,g){var b=Yr(m,a);return p==="horizontal"?{x:UI({axis:n,ticks:i,bandSize:l,entry:m,index:g}),y:ft(b)?null:r.scale(b),value:b,payload:m}:{x:ft(b)?null:n.scale(b),y:UI({axis:r,ticks:o,bandSize:l,entry:m,index:g}),value:b,payload:m}});return $r({points:f,layout:p},d)});function Au(e){"@babel/helpers - typeof";return Au=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Au(e)}function vNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xNe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,J7(r.key),r)}}function bNe(e,t,n){return t&&xNe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wNe(e,t,n){return t=qy(t),_Ne(e,Q7()?Reflect.construct(t,n||[],qy(e).constructor):t.apply(e,n))}function _Ne(e,t){if(t&&(Au(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return SNe(e)}function SNe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Q7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Q7=function(){return!!e})()}function qy(e){return qy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qy(e)}function jNe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jj(e,t)}function Jj(e,t){return Jj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Jj(e,t)}function Z7(e,t,n){return t=J7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J7(e){var t=NNe(e,"string");return Au(t)=="symbol"?t:t+""}function NNe(e,t){if(Au(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Au(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function eN(){return eN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eN.apply(this,arguments)}function kNe(e){var t=e.xAxisId,n=$O(),r=FO(),i=D7(t);return i==null?null:P.createElement(td,eN({},i,{className:xt("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(a){return Uo(a,!0)}}))}var Xv=(function(e){function t(){return vNe(this,t),wNe(this,t,arguments)}return jNe(t,e),bNe(t,[{key:"render",value:function(){return P.createElement(kNe,this.props)}}])})(P.Component);Z7(Xv,"displayName","XAxis");Z7(Xv,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function Tu(e){"@babel/helpers - typeof";return Tu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tu(e)}function ONe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ENe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nU(r.key),r)}}function PNe(e,t,n){return t&&ENe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ANe(e,t,n){return t=zy(t),TNe(e,eU()?Reflect.construct(t,n||[],zy(e).constructor):t.apply(e,n))}function TNe(e,t){if(t&&(Tu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return CNe(e)}function CNe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(eU=function(){return!!e})()}function zy(e){return zy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},zy(e)}function RNe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tN(e,t)}function tN(e,t){return tN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},tN(e,t)}function tU(e,t,n){return t=nU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nU(e){var t=MNe(e,"string");return Tu(t)=="symbol"?t:t+""}function MNe(e,t){if(Tu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Tu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function nN(){return nN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nN.apply(this,arguments)}var INe=function(t){var n=t.yAxisId,r=$O(),i=FO(),o=L7(n);return o==null?null:P.createElement(td,nN({},o,{className:xt("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:i},ticksGenerator:function(l){return Uo(l,!0)}}))},Qv=(function(e){function t(){return ONe(this,t),ANe(this,t,arguments)}return RNe(t,e),PNe(t,[{key:"render",value:function(){return P.createElement(INe,this.props)}}])})(P.Component);tU(Qv,"displayName","YAxis");tU(Qv,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function O6(e){return $Ne(e)||BNe(e)||LNe(e)||DNe()}function DNe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
692In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LNe(e,t){if(e){if(typeof e=="string")return rN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rN(e,t)}}function BNe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $Ne(e){if(Array.isArray(e))return rN(e)}function rN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var iN=function(t,n,r,i,o){var a=hi(t,zO),l=hi(t,Gv),c=[].concat(O6(a),O6(l)),d=hi(t,Yv),p="".concat(i,"Id"),f=i[0],m=n;if(c.length&&(m=c.reduce(function(y,v){if(v.props[p]===r&&ho(v.props,"extendDomain")&&Re(v.props[f])){var x=v.props[f];return[Math.min(y[0],x),Math.max(y[1],x)]}return y},m)),d.length){var g="".concat(f,"1"),b="".concat(f,"2");m=d.reduce(function(y,v){if(v.props[p]===r&&ho(v.props,"extendDomain")&&Re(v.props[g])&&Re(v.props[b])){var x=v.props[g],_=v.props[b];return[Math.min(y[0],x,_),Math.max(y[1],x,_)]}return y},m)}return o&&o.length&&(m=o.reduce(function(y,v){return Re(v)?[Math.min(y[0],v),Math.max(y[1],v)]:y},m)),m},O_={exports:{}},E6;function FNe(){return E6||(E6=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(c,d,p){this.fn=c,this.context=d,this.once=p||!1}function o(c,d,p,f,m){if(typeof p!="function")throw new TypeError("The listener must be a function");var g=new i(p,f||c,m),b=n?n+d:d;return c._events[b]?c._events[b].fn?c._events[b]=[c._events[b],g]:c._events[b].push(g):(c._events[b]=g,c._eventsCount++),c}function a(c,d){--c._eventsCount===0?c._events=new r:delete c._events[d]}function l(){this._events=new r,this._eventsCount=0}l.prototype.eventNames=function(){var d=[],p,f;if(this._eventsCount===0)return d;for(f in p=this._events)t.call(p,f)&&d.push(n?f.slice(1):f);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(p)):d},l.prototype.listeners=function(d){var p=n?n+d:d,f=this._events[p];if(!f)return[];if(f.fn)return[f.fn];for(var m=0,g=f.length,b=new Array(g);m<g;m++)b[m]=f[m].fn;return b},l.prototype.listenerCount=function(d){var p=n?n+d:d,f=this._events[p];return f?f.fn?1:f.length:0},l.prototype.emit=function(d,p,f,m,g,b){var y=n?n+d:d;if(!this._events[y])return!1;var v=this._events[y],x=arguments.length,_,j;if(v.fn){switch(v.once&&this.removeListener(d,v.fn,void 0,!0),x){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,p),!0;case 3:return v.fn.call(v.context,p,f),!0;case 4:return v.fn.call(v.context,p,f,m),!0;case 5:return v.fn.call(v.context,p,f,m,g),!0;case 6:return v.fn.call(v.context,p,f,m,g,b),!0}for(j=1,_=new Array(x-1);j<x;j++)_[j-1]=arguments[j];v.fn.apply(v.context,_)}else{var S=v.length,N;for(j=0;j<S;j++)switch(v[j].once&&this.removeListener(d,v[j].fn,void 0,!0),x){case 1:v[j].fn.call(v[j].context);break;case 2:v[j].fn.call(v[j].context,p);break;case 3:v[j].fn.call(v[j].context,p,f);break;case 4:v[j].fn.call(v[j].context,p,f,m);break;default:if(!_)for(N=1,_=new Array(x-1);N<x;N++)_[N-1]=arguments[N];v[j].fn.apply(v[j].context,_)}}return!0},l.prototype.on=function(d,p,f){return o(this,d,p,f,!1)},l.prototype.once=function(d,p,f){return o(this,d,p,f,!0)},l.prototype.removeListener=function(d,p,f,m){var g=n?n+d:d;if(!this._events[g])return this;if(!p)return a(this,g),this;var b=this._events[g];if(b.fn)b.fn===p&&(!m||b.once)&&(!f||b.context===f)&&a(this,g);else{for(var y=0,v=[],x=b.length;y<x;y++)(b[y].fn!==p||m&&!b[y].once||f&&b[y].context!==f)&&v.push(b[y]);v.length?this._events[g]=v.length===1?v[0]:v:a(this,g)}return this},l.prototype.removeAllListeners=function(d){var p;return d?(p=n?n+d:d,this._events[p]&&a(this,p)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,e.exports=l})(O_)),O_.exports}var qNe=FNe();const zNe=Ct(qNe);var E_=new zNe,P_="recharts.syncMouseEvents";function Lh(e){"@babel/helpers - typeof";return Lh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lh(e)}function UNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HNe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rU(r.key),r)}}function VNe(e,t,n){return t&&HNe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function A_(e,t,n){return t=rU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rU(e){var t=WNe(e,"string");return Lh(t)=="symbol"?t:t+""}function WNe(e,t){if(Lh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Lh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var GNe=(function(){function e(){UNe(this,e),A_(this,"activeIndex",0),A_(this,"coordinateList",[]),A_(this,"layout","horizontal")}return VNe(e,[{key:"setDetails",value:function(n){var r,i=n.coordinateList,o=i===void 0?null:i,a=n.container,l=a===void 0?null:a,c=n.layout,d=c===void 0?null:c,p=n.offset,f=p===void 0?null:p,m=n.mouseHandlerCallback,g=m===void 0?null:m;this.coordinateList=(r=o??this.coordinateList)!==null&&r!==void 0?r:[],this.container=l??this.container,this.layout=d??this.layout,this.offset=f??this.offset,this.mouseHandlerCallback=g??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(n){if(this.coordinateList.length!==0)switch(n.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),o=i.x,a=i.y,l=i.height,c=this.coordinateList[this.activeIndex].coordinate,d=((n=window)===null||n===void 0?void 0:n.scrollX)||0,p=((r=window)===null||r===void 0?void 0:r.scrollY)||0,f=o+c+d,m=a+this.offset.top+l/2+p;this.mouseHandlerCallback({pageX:f,pageY:m})}}}])})();function KNe(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],i=e==null?void 0:e[1];if(r&&i&&Re(r)&&Re(i))return!0}return!1}function YNe(e,t,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-i,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function iU(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,o=e.endAngle,a=Vn(t,n,r,i),l=Vn(t,n,r,o);return{points:[a,l],cx:t,cy:n,radius:r,startAngle:i,endAngle:o}}function XNe(e,t,n){var r,i,o,a;if(e==="horizontal")r=t.x,o=r,i=n.top,a=n.top+n.height;else if(e==="vertical")i=t.y,a=i,r=n.left,o=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var l=t.cx,c=t.cy,d=t.innerRadius,p=t.outerRadius,f=t.angle,m=Vn(l,c,d,f),g=Vn(l,c,p,f);r=m.x,i=m.y,o=g.x,a=g.y}else return iU(t);return[{x:r,y:i},{x:o,y:a}]}function Bh(e){"@babel/helpers - typeof";return Bh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bh(e)}function P6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function eg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?P6(Object(n),!0).forEach(function(r){QNe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function QNe(e,t,n){return t=ZNe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZNe(e){var t=JNe(e,"string");return Bh(t)=="symbol"?t:t+""}function JNe(e,t){if(Bh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eke(e){var t,n,r=e.element,i=e.tooltipEventType,o=e.isActive,a=e.activeCoordinate,l=e.activePayload,c=e.offset,d=e.activeTooltipIndex,p=e.tooltipAxisBandSize,f=e.layout,m=e.chartName,g=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!g||!o||!a||m!=="ScatterChart"&&i!=="axis")return null;var b,y=Pj;if(m==="ScatterChart")b=a,y=Q2e;else if(m==="BarChart")b=YNe(f,a,c,p),y=MO;else if(f==="radial"){var v=iU(a),x=v.cx,_=v.cy,j=v.radius,S=v.startAngle,N=v.endAngle;b={cx:x,cy:_,startAngle:S,endAngle:N,innerRadius:j,outerRadius:j},y=f7}else b={points:XNe(f,a,c)},y=Pj;var O=eg(eg(eg(eg({stroke:"#ccc",pointerEvents:"none"},c),b),vt(g,!1)),{},{payload:l,payloadIndex:d,className:xt("recharts-tooltip-cursor",g.className)});return P.isValidElement(g)?P.cloneElement(g,O):P.createElement(y,O)}var tke=["item"],nke=["children","className","width","height","style","compact","title","desc"];function Cu(e){"@babel/helpers - typeof";return Cu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cu(e)}function $c(){return $c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$c.apply(this,arguments)}function A6(e,t){return oke(e)||ike(e,t)||aU(e,t)||rke()}function rke(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
693In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ike(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(p){d=!0,i=p}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw i}}return l}}function oke(e){if(Array.isArray(e))return e}function T6(e,t){if(e==null)return{};var n=ake(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ake(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ske(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lke(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sU(r.key),r)}}function cke(e,t,n){return t&&lke(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function uke(e,t,n){return t=Uy(t),dke(e,oU()?Reflect.construct(t,n||[],Uy(e).constructor):t.apply(e,n))}function dke(e,t){if(t&&(Cu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fke(e)}function fke(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(oU=function(){return!!e})()}function Uy(e){return Uy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Uy(e)}function hke(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oN(e,t)}function oN(e,t){return oN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},oN(e,t)}function Ru(e){return gke(e)||mke(e)||aU(e)||pke()}function pke(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
694In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aU(e,t){if(e){if(typeof e=="string")return aN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aN(e,t)}}function mke(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gke(e){if(Array.isArray(e))return aN(e)}function aN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function C6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?C6(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tt(e,t,n){return t=sU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sU(e){var t=yke(e,"string");return Cu(t)=="symbol"?t:t+""}function yke(e,t){if(Cu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Cu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vke={xAxis:["bottom","top"],yAxis:["left","right"]},xke={width:"100%",height:"100%"},lU={x:0,y:0};function tg(e){return e}var bke=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},wke=function(t,n,r,i){var o=n.find(function(p){return p&&p.index===r});if(o){if(t==="horizontal")return{x:o.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:o.coordinate};if(t==="centric"){var a=o.coordinate,l=i.radius;return xe(xe(xe({},i),Vn(i.cx,i.cy,l,a)),{},{angle:a,radius:l})}var c=o.coordinate,d=i.angle;return xe(xe(xe({},i),Vn(i.cx,i.cy,c,d)),{},{angle:d,radius:c})}return lU},Zv=function(t,n){var r=n.graphicalItems,i=n.dataStartIndex,o=n.dataEndIndex,a=(r??[]).reduce(function(l,c){var d=c.props.data;return d&&d.length?[].concat(Ru(l),Ru(d)):l},[]);return a.length>0?a:t&&t.length&&Re(i)&&Re(o)?t.slice(i,o+1):[]};function cU(e){return e==="number"?[0,"auto"]:void 0}var sN=function(t,n,r,i){var o=t.graphicalItems,a=t.tooltipAxis,l=Zv(n,t);return r<0||!o||!o.length||r>=l.length?null:o.reduce(function(c,d){var p,f=(p=d.props.data)!==null&&p!==void 0?p:n;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var m;if(a.dataKey&&!a.allowDuplicatedCategory){var g=f===void 0?l:f;m=Wg(g,a.dataKey,i)}else m=f&&f[r]||l[r];return m?[].concat(Ru(c),[c7(d,m)]):c},[])},R6=function(t,n,r,i){var o=i||{x:t.chartX,y:t.chartY},a=bke(o,r),l=t.orderedTooltipTicks,c=t.tooltipAxis,d=t.tooltipTicks,p=A0e(a,l,d,c);if(p>=0&&d){var f=d[p]&&d[p].value,m=sN(t,n,p,f),g=wke(r,l,p,o);return{activeTooltipIndex:p,activeLabel:f,activePayload:m,activeCoordinate:g}}return null},_ke=function(t,n){var r=n.axes,i=n.graphicalItems,o=n.axisType,a=n.axisIdKey,l=n.stackGroups,c=n.dataStartIndex,d=n.dataEndIndex,p=t.layout,f=t.children,m=t.stackOffset,g=a7(p,o);return r.reduce(function(b,y){var v,x=y.type.defaultProps!==void 0?xe(xe({},y.type.defaultProps),y.props):y.props,_=x.type,j=x.dataKey,S=x.allowDataOverflow,N=x.allowDuplicatedCategory,O=x.scale,E=x.ticks,A=x.includeHidden,I=x[a];if(b[I])return b;var M=Zv(t.data,{graphicalItems:i.filter(function(F){var K,ee=a in F.props?F.props[a]:(K=F.type.defaultProps)===null||K===void 0?void 0:K[a];return ee===I}),dataStartIndex:c,dataEndIndex:d}),C=M.length,R,B,$;KNe(x.domain,S,_)&&(R=jj(x.domain,null,S),g&&(_==="number"||O!=="auto")&&($=Df(M,j,"category")));var z=cU(_);if(!R||R.length===0){var H,V=(H=x.domain)!==null&&H!==void 0?H:z;if(j){if(R=Df(M,j,_),_==="category"&&g){var Y=Qhe(R);N&&Y?(B=R,R=Ay(0,C)):N||(R=GI(V,R,y).reduce(function(F,K){return F.indexOf(K)>=0?F:[].concat(Ru(F),[K])},[]))}else if(_==="category")N?R=R.filter(function(F){return F!==""&&!ft(F)}):R=GI(V,R,y).reduce(function(F,K){return F.indexOf(K)>=0||K===""||ft(K)?F:[].concat(Ru(F),[K])},[]);else if(_==="number"){var W=I0e(M,i.filter(function(F){var K,ee,J=a in F.props?F.props[a]:(K=F.type.defaultProps)===null||K===void 0?void 0:K[a],G="hide"in F.props?F.props.hide:(ee=F.type.defaultProps)===null||ee===void 0?void 0:ee.hide;return J===I&&(A||!G)}),j,o,p);W&&(R=W)}g&&(_==="number"||O!=="auto")&&($=Df(M,j,"category"))}else g?R=Ay(0,C):l&&l[I]&&l[I].hasStack&&_==="number"?R=m==="expand"?[0,1]:l7(l[I].stackGroups,c,d):R=o7(M,i.filter(function(F){var K=a in F.props?F.props[a]:F.type.defaultProps[a],ee="hide"in F.props?F.props.hide:F.type.defaultProps.hide;return K===I&&(A||!ee)}),_,p,!0);if(_==="number")R=iN(f,R,I,o,E),V&&(R=jj(V,R,S));else if(_==="category"&&V){var q=V,D=R.every(function(F){return q.indexOf(F)>=0});D&&(R=q)}}return xe(xe({},b),{},tt({},I,xe(xe({},x),{},{axisType:o,domain:R,categoricalDomain:$,duplicateDomain:B,originalDomain:(v=x.domain)!==null&&v!==void 0?v:z,isCategorical:g,layout:p})))},{})},Ske=function(t,n){var r=n.graphicalItems,i=n.Axis,o=n.axisType,a=n.axisIdKey,l=n.stackGroups,c=n.dataStartIndex,d=n.dataEndIndex,p=t.layout,f=t.children,m=Zv(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:d}),g=m.length,b=a7(p,o),y=-1;return r.reduce(function(v,x){var _=x.type.defaultProps!==void 0?xe(xe({},x.type.defaultProps),x.props):x.props,j=_[a],S=cU("number");if(!v[j]){y++;var N;return b?N=Ay(0,g):l&&l[j]&&l[j].hasStack?(N=l7(l[j].stackGroups,c,d),N=iN(f,N,j,o)):(N=jj(S,o7(m,r.filter(function(O){var E,A,I=a in O.props?O.props[a]:(E=O.type.defaultProps)===null||E===void 0?void 0:E[a],M="hide"in O.props?O.props.hide:(A=O.type.defaultProps)===null||A===void 0?void 0:A.hide;return I===j&&!M}),"number",p),i.defaultProps.allowDataOverflow),N=iN(f,N,j,o)),xe(xe({},v),{},tt({},j,xe(xe({axisType:o},i.defaultProps),{},{hide:!0,orientation:fi(vke,"".concat(o,".").concat(y%2),null),domain:N,originalDomain:S,isCategorical:b,layout:p})))}return v},{})},jke=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,o=n.AxisComp,a=n.graphicalItems,l=n.stackGroups,c=n.dataStartIndex,d=n.dataEndIndex,p=t.children,f="".concat(i,"Id"),m=hi(p,o),g={};return m&&m.length?g=_ke(t,{axes:m,graphicalItems:a,axisType:i,axisIdKey:f,stackGroups:l,dataStartIndex:c,dataEndIndex:d}):a&&a.length&&(g=Ske(t,{Axis:o,graphicalItems:a,axisType:i,axisIdKey:f,stackGroups:l,dataStartIndex:c,dataEndIndex:d})),g},Nke=function(t){var n=qa(t),r=Uo(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:sO(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:by(n,r)}},M6=function(t){var n=t.children,r=t.defaultShowTooltip,i=Ur(n,_u),o=0,a=0;return t.data&&t.data.length!==0&&(a=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(o=i.props.startIndex),i.props.endIndex>=0&&(a=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:!!r}},kke=function(t){return!t||!t.length?!1:t.some(function(n){var r=Wo(n&&n.type);return r&&r.indexOf("Bar")>=0})},I6=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},Oke=function(t,n){var r=t.props,i=t.graphicalItems,o=t.xAxisMap,a=o===void 0?{}:o,l=t.yAxisMap,c=l===void 0?{}:l,d=r.width,p=r.height,f=r.children,m=r.margin||{},g=Ur(f,_u),b=Ur(f,Hc),y=Object.keys(c).reduce(function(N,O){var E=c[O],A=E.orientation;return!E.mirror&&!E.hide?xe(xe({},N),{},tt({},A,N[A]+E.width)):N},{left:m.left||0,right:m.right||0}),v=Object.keys(a).reduce(function(N,O){var E=a[O],A=E.orientation;return!E.mirror&&!E.hide?xe(xe({},N),{},tt({},A,fi(N,"".concat(A))+E.height)):N},{top:m.top||0,bottom:m.bottom||0}),x=xe(xe({},v),y),_=x.bottom;g&&(x.bottom+=g.props.height||_u.defaultProps.height),b&&n&&(x=R0e(x,i,r,n));var j=d-x.left-x.right,S=p-x.top-x.bottom;return xe(xe({brushBottom:_},x),{},{width:Math.max(j,0),height:Math.max(S,0)})},Eke=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},Pke=function(t){var n=t.chartName,r=t.GraphicalChild,i=t.defaultTooltipEventType,o=i===void 0?"axis":i,a=t.validateTooltipEventTypes,l=a===void 0?["axis"]:a,c=t.axisComponents,d=t.legendContent,p=t.formatAxisMap,f=t.defaultProps,m=function(x,_){var j=_.graphicalItems,S=_.stackGroups,N=_.offset,O=_.updateId,E=_.dataStartIndex,A=_.dataEndIndex,I=x.barSize,M=x.layout,C=x.barGap,R=x.barCategoryGap,B=x.maxBarSize,$=I6(M),z=$.numericAxisName,H=$.cateAxisName,V=kke(j),Y=[];return j.forEach(function(W,q){var D=Zv(x.data,{graphicalItems:[W],dataStartIndex:E,dataEndIndex:A}),F=W.type.defaultProps!==void 0?xe(xe({},W.type.defaultProps),W.props):W.props,K=F.dataKey,ee=F.maxBarSize,J=F["".concat(z,"Id")],G=F["".concat(H,"Id")],X={},ne=c.reduce(function(Ee,ve){var He=_["".concat(ve.axisType,"Map")],$e=F["".concat(ve.axisType,"Id")];He&&He[$e]||ve.axisType==="zAxis"||Rl();var Ye=He[$e];return xe(xe({},Ee),{},tt(tt({},ve.axisType,Ye),"".concat(ve.axisType,"Ticks"),Uo(Ye)))},X),Z=ne[H],se=ne["".concat(H,"Ticks")],fe=S&&S[J]&&S[J].hasStack&&G0e(W,S[J].stackGroups),le=Wo(W.type).indexOf("Bar")>=0,we=by(Z,se),ge=[],be=V&&T0e({barSize:I,stackGroups:S,totalSize:Eke(ne,H)});if(le){var Be,De,oe=ft(ee)?B:ee,de=(Be=(De=by(Z,se,!0))!==null&&De!==void 0?De:oe)!==null&&Be!==void 0?Be:0;ge=C0e({barGap:C,barCategoryGap:R,bandSize:de!==we?de:we,sizeList:be[G],maxBarSize:oe}),de!==we&&(ge=ge.map(function(Ee){return xe(xe({},Ee),{},{position:xe(xe({},Ee.position),{},{offset:Ee.position.offset-de/2})})}))}var Se=W&&W.type&&W.type.getComposedData;Se&&Y.push({props:xe(xe({},Se(xe(xe({},ne),{},{displayedData:D,props:x,dataKey:K,item:W,bandSize:we,barPosition:ge,offset:N,stackedData:fe,layout:M,dataStartIndex:E,dataEndIndex:A}))),{},tt(tt(tt({key:W.key||"item-".concat(q)},z,ne[z]),H,ne[H]),"animationId",O)),childIndex:upe(W,x.children),item:W})}),Y},g=function(x,_){var j=x.props,S=x.dataStartIndex,N=x.dataEndIndex,O=x.updateId;if(!nM({props:j}))return null;var E=j.children,A=j.layout,I=j.stackOffset,M=j.data,C=j.reverseStackOrder,R=I6(A),B=R.numericAxisName,$=R.cateAxisName,z=hi(E,r),H=H0e(M,z,"".concat(B,"Id"),"".concat($,"Id"),I,C),V=c.reduce(function(F,K){var ee="".concat(K.axisType,"Map");return xe(xe({},F),{},tt({},ee,jke(j,xe(xe({},K),{},{graphicalItems:z,stackGroups:K.axisType===B&&H,dataStartIndex:S,dataEndIndex:N}))))},{}),Y=Oke(xe(xe({},V),{},{props:j,graphicalItems:z}),_==null?void 0:_.legendBBox);Object.keys(V).forEach(function(F){V[F]=p(j,V[F],Y,F.replace("Map",""),n)});var W=V["".concat($,"Map")],q=Nke(W),D=m(j,xe(xe({},V),{},{dataStartIndex:S,dataEndIndex:N,updateId:O,graphicalItems:z,stackGroups:H,offset:Y}));return xe(xe({formattedGraphicalItems:D,graphicalItems:z,offset:Y,stackGroups:H},q),V)},b=(function(v){function x(_){var j,S,N;return ske(this,x),N=uke(this,x,[_]),tt(N,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),tt(N,"accessibilityManager",new GNe),tt(N,"handleLegendBBoxUpdate",function(O){if(O){var E=N.state,A=E.dataStartIndex,I=E.dataEndIndex,M=E.updateId;N.setState(xe({legendBBox:O},g({props:N.props,dataStartIndex:A,dataEndIndex:I,updateId:M},xe(xe({},N.state),{},{legendBBox:O}))))}}),tt(N,"handleReceiveSyncEvent",function(O,E,A){if(N.props.syncId===O){if(A===N.eventEmitterSymbol&&typeof N.props.syncMethod!="function")return;N.applySyncEvent(E)}}),tt(N,"handleBrushChange",function(O){var E=O.startIndex,A=O.endIndex;if(E!==N.state.dataStartIndex||A!==N.state.dataEndIndex){var I=N.state.updateId;N.setState(function(){return xe({dataStartIndex:E,dataEndIndex:A},g({props:N.props,dataStartIndex:E,dataEndIndex:A,updateId:I},N.state))}),N.triggerSyncEvent({dataStartIndex:E,dataEndIndex:A})}}),tt(N,"handleMouseEnter",function(O){var E=N.getMouseInfo(O);if(E){var A=xe(xe({},E),{},{isTooltipActive:!0});N.setState(A),N.triggerSyncEvent(A);var I=N.props.onMouseEnter;ut(I)&&I(A,O)}}),tt(N,"triggeredAfterMouseMove",function(O){var E=N.getMouseInfo(O),A=E?xe(xe({},E),{},{isTooltipActive:!0}):{isTooltipActive:!1};N.setState(A),N.triggerSyncEvent(A);var I=N.props.onMouseMove;ut(I)&&I(A,O)}),tt(N,"handleItemMouseEnter",function(O){N.setState(function(){return{isTooltipActive:!0,activeItem:O,activePayload:O.tooltipPayload,activeCoordinate:O.tooltipPosition||{x:O.cx,y:O.cy}}})}),tt(N,"handleItemMouseLeave",function(){N.setState(function(){return{isTooltipActive:!1}})}),tt(N,"handleMouseMove",function(O){O.persist(),N.throttleTriggeredAfterMouseMove(O)}),tt(N,"handleMouseLeave",function(O){N.throttleTriggeredAfterMouseMove.cancel();var E={isTooltipActive:!1};N.setState(E),N.triggerSyncEvent(E);var A=N.props.onMouseLeave;ut(A)&&A(E,O)}),tt(N,"handleOuterEvent",function(O){var E=cpe(O),A=fi(N.props,"".concat(E));if(E&&ut(A)){var I,M;/.*touch.*/i.test(E)?M=N.getMouseInfo(O.changedTouches[0]):M=N.getMouseInfo(O),A((I=M)!==null&&I!==void 0?I:{},O)}}),tt(N,"handleClick",function(O){var E=N.getMouseInfo(O);if(E){var A=xe(xe({},E),{},{isTooltipActive:!0});N.setState(A),N.triggerSyncEvent(A);var I=N.props.onClick;ut(I)&&I(A,O)}}),tt(N,"handleMouseDown",function(O){var E=N.props.onMouseDown;if(ut(E)){var A=N.getMouseInfo(O);E(A,O)}}),tt(N,"handleMouseUp",function(O){var E=N.props.onMouseUp;if(ut(E)){var A=N.getMouseInfo(O);E(A,O)}}),tt(N,"handleTouchMove",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&N.throttleTriggeredAfterMouseMove(O.changedTouches[0])}),tt(N,"handleTouchStart",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&N.handleMouseDown(O.changedTouches[0])}),tt(N,"handleTouchEnd",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&N.handleMouseUp(O.changedTouches[0])}),tt(N,"handleDoubleClick",function(O){var E=N.props.onDoubleClick;if(ut(E)){var A=N.getMouseInfo(O);E(A,O)}}),tt(N,"handleContextMenu",function(O){var E=N.props.onContextMenu;if(ut(E)){var A=N.getMouseInfo(O);E(A,O)}}),tt(N,"triggerSyncEvent",function(O){N.props.syncId!==void 0&&E_.emit(P_,N.props.syncId,O,N.eventEmitterSymbol)}),tt(N,"applySyncEvent",function(O){var E=N.props,A=E.layout,I=E.syncMethod,M=N.state.updateId,C=O.dataStartIndex,R=O.dataEndIndex;if(O.dataStartIndex!==void 0||O.dataEndIndex!==void 0)N.setState(xe({dataStartIndex:C,dataEndIndex:R},g({props:N.props,dataStartIndex:C,dataEndIndex:R,updateId:M},N.state)));else if(O.activeTooltipIndex!==void 0){var B=O.chartX,$=O.chartY,z=O.activeTooltipIndex,H=N.state,V=H.offset,Y=H.tooltipTicks;if(!V)return;if(typeof I=="function")z=I(Y,O);else if(I==="value"){z=-1;for(var W=0;W<Y.length;W++)if(Y[W].value===O.activeLabel){z=W;break}}var q=xe(xe({},V),{},{x:V.left,y:V.top}),D=Math.min(B,q.x+q.width),F=Math.min($,q.y+q.height),K=Y[z]&&Y[z].value,ee=sN(N.state,N.props.data,z),J=Y[z]?{x:A==="horizontal"?Y[z].coordinate:D,y:A==="horizontal"?F:Y[z].coordinate}:lU;N.setState(xe(xe({},O),{},{activeLabel:K,activeCoordinate:J,activePayload:ee,activeTooltipIndex:z}))}else N.setState(O)}),tt(N,"renderCursor",function(O){var E,A=N.state,I=A.isTooltipActive,M=A.activeCoordinate,C=A.activePayload,R=A.offset,B=A.activeTooltipIndex,$=A.tooltipAxisBandSize,z=N.getTooltipEventType(),H=(E=O.props.active)!==null&&E!==void 0?E:I,V=N.props.layout,Y=O.key||"_recharts-cursor";return ue.createElement(eke,{key:Y,activeCoordinate:M,activePayload:C,activeTooltipIndex:B,chartName:n,element:O,isActive:H,layout:V,offset:R,tooltipAxisBandSize:$,tooltipEventType:z})}),tt(N,"renderPolarAxis",function(O,E,A){var I=fi(O,"type.axisType"),M=fi(N.state,"".concat(I,"Map")),C=O.type.defaultProps,R=C!==void 0?xe(xe({},C),O.props):O.props,B=M&&M[R["".concat(I,"Id")]];return P.cloneElement(O,xe(xe({},B),{},{className:xt(I,B.className),key:O.key||"".concat(E,"-").concat(A),ticks:Uo(B,!0)}))}),tt(N,"renderPolarGrid",function(O){var E=O.props,A=E.radialLines,I=E.polarAngles,M=E.polarRadius,C=N.state,R=C.radiusAxisMap,B=C.angleAxisMap,$=qa(R),z=qa(B),H=z.cx,V=z.cy,Y=z.innerRadius,W=z.outerRadius;return P.cloneElement(O,{polarAngles:Array.isArray(I)?I:Uo(z,!0).map(function(q){return q.coordinate}),polarRadius:Array.isArray(M)?M:Uo($,!0).map(function(q){return q.coordinate}),cx:H,cy:V,innerRadius:Y,outerRadius:W,key:O.key||"polar-grid",radialLines:A})}),tt(N,"renderLegend",function(){var O=N.state.formattedGraphicalItems,E=N.props,A=E.children,I=E.width,M=E.height,C=N.props.margin||{},R=I-(C.left||0)-(C.right||0),B=r7({children:A,formattedGraphicalItems:O,legendWidth:R,legendContent:d});if(!B)return null;var $=B.item,z=T6(B,tke);return P.cloneElement($,xe(xe({},z),{},{chartWidth:I,chartHeight:M,margin:C,onBBoxUpdate:N.handleLegendBBoxUpdate}))}),tt(N,"renderTooltip",function(){var O,E=N.props,A=E.children,I=E.accessibilityLayer,M=Ur(A,Ji);if(!M)return null;var C=N.state,R=C.isTooltipActive,B=C.activeCoordinate,$=C.activePayload,z=C.activeLabel,H=C.offset,V=(O=M.props.active)!==null&&O!==void 0?O:R;return P.cloneElement(M,{viewBox:xe(xe({},H),{},{x:H.left,y:H.top}),active:V,label:z,payload:V?$:[],coordinate:B,accessibilityLayer:I})}),tt(N,"renderBrush",function(O){var E=N.props,A=E.margin,I=E.data,M=N.state,C=M.offset,R=M.dataStartIndex,B=M.dataEndIndex,$=M.updateId;return P.cloneElement(O,{key:O.key||"_recharts-brush",onChange:Xm(N.handleBrushChange,O.props.onChange),data:I,x:Re(O.props.x)?O.props.x:C.left,y:Re(O.props.y)?O.props.y:C.top+C.height+C.brushBottom-(A.bottom||0),width:Re(O.props.width)?O.props.width:C.width,startIndex:R,endIndex:B,updateId:"brush-".concat($)})}),tt(N,"renderReferenceElement",function(O,E,A){if(!O)return null;var I=N,M=I.clipPathId,C=N.state,R=C.xAxisMap,B=C.yAxisMap,$=C.offset,z=O.type.defaultProps||{},H=O.props,V=H.xAxisId,Y=V===void 0?z.xAxisId:V,W=H.yAxisId,q=W===void 0?z.yAxisId:W;return P.cloneElement(O,{key:O.key||"".concat(E,"-").concat(A),xAxis:R[Y],yAxis:B[q],viewBox:{x:$.left,y:$.top,width:$.width,height:$.height},clipPathId:M})}),tt(N,"renderActivePoints",function(O){var E=O.item,A=O.activePoint,I=O.basePoint,M=O.childIndex,C=O.isRange,R=[],B=E.props.key,$=E.item.type.defaultProps!==void 0?xe(xe({},E.item.type.defaultProps),E.item.props):E.item.props,z=$.activeDot,H=$.dataKey,V=xe(xe({index:M,dataKey:H,cx:A.x,cy:A.y,r:4,fill:RO(E.item),strokeWidth:2,stroke:"#fff",payload:A.payload,value:A.value},vt(z,!1)),Gg(z));return R.push(x.renderActiveDot(z,V,"".concat(B,"-activePoint-").concat(M))),I?R.push(x.renderActiveDot(z,xe(xe({},V),{},{cx:I.x,cy:I.y}),"".concat(B,"-basePoint-").concat(M))):C&&R.push(null),R}),tt(N,"renderGraphicChild",function(O,E,A){var I=N.filterFormatItem(O,E,A);if(!I)return null;var M=N.getTooltipEventType(),C=N.state,R=C.isTooltipActive,B=C.tooltipAxis,$=C.activeTooltipIndex,z=C.activeLabel,H=N.props.children,V=Ur(H,Ji),Y=I.props,W=Y.points,q=Y.isRange,D=Y.baseLine,F=I.item.type.defaultProps!==void 0?xe(xe({},I.item.type.defaultProps),I.item.props):I.item.props,K=F.activeDot,ee=F.hide,J=F.activeBar,G=F.activeShape,X=!!(!ee&&R&&V&&(K||J||G)),ne={};M!=="axis"&&V&&V.props.trigger==="click"?ne={onClick:Xm(N.handleItemMouseEnter,O.props.onClick)}:M!=="axis"&&(ne={onMouseLeave:Xm(N.handleItemMouseLeave,O.props.onMouseLeave),onMouseEnter:Xm(N.handleItemMouseEnter,O.props.onMouseEnter)});var Z=P.cloneElement(O,xe(xe({},I.props),ne));function se(ve){return typeof B.dataKey=="function"?B.dataKey(ve.payload):null}if(X)if($>=0){var fe,le;if(B.dataKey&&!B.allowDuplicatedCategory){var we=typeof B.dataKey=="function"?se:"payload.".concat(B.dataKey.toString());fe=Wg(W,we,z),le=q&&D&&Wg(D,we,z)}else fe=W==null?void 0:W[$],le=q&&D&&D[$];if(G||J){var ge=O.props.activeIndex!==void 0?O.props.activeIndex:$;return[P.cloneElement(O,xe(xe(xe({},I.props),ne),{},{activeIndex:ge})),null,null]}if(!ft(fe))return[Z].concat(Ru(N.renderActivePoints({item:I,activePoint:fe,basePoint:le,childIndex:$,isRange:q})))}else{var be,Be=(be=N.getItemByXY(N.state.activeCoordinate))!==null&&be!==void 0?be:{graphicalItem:Z},De=Be.graphicalItem,oe=De.item,de=oe===void 0?O:oe,Se=De.childIndex,Ee=xe(xe(xe({},I.props),ne),{},{activeIndex:Se});return[P.cloneElement(de,Ee),null,null]}return q?[Z,null,null]:[Z,null]}),tt(N,"renderCustomized",function(O,E,A){return P.cloneElement(O,xe(xe({key:"recharts-customized-".concat(A)},N.props),N.state))}),tt(N,"renderMap",{CartesianGrid:{handler:tg,once:!0},ReferenceArea:{handler:N.renderReferenceElement},ReferenceLine:{handler:tg},ReferenceDot:{handler:N.renderReferenceElement},XAxis:{handler:tg},YAxis:{handler:tg},Brush:{handler:N.renderBrush,once:!0},Bar:{handler:N.renderGraphicChild},Line:{handler:N.renderGraphicChild},Area:{handler:N.renderGraphicChild},Radar:{handler:N.renderGraphicChild},RadialBar:{handler:N.renderGraphicChild},Scatter:{handler:N.renderGraphicChild},Pie:{handler:N.renderGraphicChild},Funnel:{handler:N.renderGraphicChild},Tooltip:{handler:N.renderCursor,once:!0},PolarGrid:{handler:N.renderPolarGrid,once:!0},PolarAngleAxis:{handler:N.renderPolarAxis},PolarRadiusAxis:{handler:N.renderPolarAxis},Customized:{handler:N.renderCustomized}}),N.clipPathId="".concat((j=_.id)!==null&&j!==void 0?j:up("recharts"),"-clip"),N.throttleTriggeredAfterMouseMove=rz(N.triggeredAfterMouseMove,(S=_.throttleDelay)!==null&&S!==void 0?S:1e3/60),N.state={},N}return hke(x,v),cke(x,[{key:"componentDidMount",value:function(){var j,S;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(j=this.props.margin.left)!==null&&j!==void 0?j:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var j=this.props,S=j.children,N=j.data,O=j.height,E=j.layout,A=Ur(S,Ji);if(A){var I=A.props.defaultIndex;if(!(typeof I!="number"||I<0||I>this.state.tooltipTicks.length-1)){var M=this.state.tooltipTicks[I]&&this.state.tooltipTicks[I].value,C=sN(this.state,N,I,M),R=this.state.tooltipTicks[I].coordinate,B=(this.state.offset.top+O)/2,$=E==="horizontal",z=$?{x:R,y:B}:{y:R,x:B},H=this.state.formattedGraphicalItems.find(function(Y){var W=Y.item;return W.type.name==="Scatter"});H&&(z=xe(xe({},z),H.props.points[I].tooltipPosition),C=H.props.points[I].tooltipPayload);var V={activeTooltipIndex:I,isTooltipActive:!0,activeLabel:M,activePayload:C,activeCoordinate:z};this.setState(V),this.renderCursor(A),this.accessibilityManager.setIndex(I)}}}},{key:"getSnapshotBeforeUpdate",value:function(j,S){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==S.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==j.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==j.margin){var N,O;this.accessibilityManager.setDetails({offset:{left:(N=this.props.margin.left)!==null&&N!==void 0?N:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0}})}return null}},{key:"componentDidUpdate",value:function(j){WS([Ur(j.children,Ji)],[Ur(this.props.children,Ji)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var j=Ur(this.props.children,Ji);if(j&&typeof j.props.shared=="boolean"){var S=j.props.shared?"axis":"item";return l.indexOf(S)>=0?S:o}return o}},{key:"getMouseInfo",value:function(j){if(!this.container)return null;var S=this.container,N=S.getBoundingClientRect(),O=wye(N),E={chartX:Math.round(j.pageX-O.left),chartY:Math.round(j.pageY-O.top)},A=N.width/S.offsetWidth||1,I=this.inRange(E.chartX,E.chartY,A);if(!I)return null;var M=this.state,C=M.xAxisMap,R=M.yAxisMap,B=this.getTooltipEventType(),$=R6(this.state,this.props.data,this.props.layout,I);if(B!=="axis"&&C&&R){var z=qa(C).scale,H=qa(R).scale,V=z&&z.invert?z.invert(E.chartX):null,Y=H&&H.invert?H.invert(E.chartY):null;return xe(xe({},E),{},{xValue:V,yValue:Y},$)}return $?xe(xe({},E),$):null}},{key:"inRange",value:function(j,S){var N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,O=this.props.layout,E=j/N,A=S/N;if(O==="horizontal"||O==="vertical"){var I=this.state.offset,M=E>=I.left&&E<=I.left+I.width&&A>=I.top&&A<=I.top+I.height;return M?{x:E,y:A}:null}var C=this.state,R=C.angleAxisMap,B=C.radiusAxisMap;if(R&&B){var $=qa(R);return XI({x:E,y:A},$)}return null}},{key:"parseEventsOfWrapper",value:function(){var j=this.props.children,S=this.getTooltipEventType(),N=Ur(j,Ji),O={};N&&S==="axis"&&(N.props.trigger==="click"?O={onClick:this.handleClick}:O={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var E=Gg(this.props,this.handleOuterEvent);return xe(xe({},E),O)}},{key:"addListener",value:function(){E_.on(P_,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){E_.removeListener(P_,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(j,S,N){for(var O=this.state.formattedGraphicalItems,E=0,A=O.length;E<A;E++){var I=O[E];if(I.item===j||I.props.key===j.key||S===Wo(I.item.type)&&N===I.childIndex)return I}return null}},{key:"renderClipPath",value:function(){var j=this.clipPathId,S=this.state.offset,N=S.left,O=S.top,E=S.height,A=S.width;return ue.createElement("defs",null,ue.createElement("clipPath",{id:j},ue.createElement("rect",{x:N,y:O,height:E,width:A})))}},{key:"getXScales",value:function(){var j=this.state.xAxisMap;return j?Object.entries(j).reduce(function(S,N){var O=A6(N,2),E=O[0],A=O[1];return xe(xe({},S),{},tt({},E,A.scale))},{}):null}},{key:"getYScales",value:function(){var j=this.state.yAxisMap;return j?Object.entries(j).reduce(function(S,N){var O=A6(N,2),E=O[0],A=O[1];return xe(xe({},S),{},tt({},E,A.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(j){var S;return(S=this.state.xAxisMap)===null||S===void 0||(S=S[j])===null||S===void 0?void 0:S.scale}},{key:"getYScaleByAxisId",value:function(j){var S;return(S=this.state.yAxisMap)===null||S===void 0||(S=S[j])===null||S===void 0?void 0:S.scale}},{key:"getItemByXY",value:function(j){var S=this.state,N=S.formattedGraphicalItems,O=S.activeItem;if(N&&N.length)for(var E=0,A=N.length;E<A;E++){var I=N[E],M=I.props,C=I.item,R=C.type.defaultProps!==void 0?xe(xe({},C.type.defaultProps),C.props):C.props,B=Wo(C.type);if(B==="Bar"){var $=(M.data||[]).find(function(Y){return q2e(j,Y)});
694if($)return{graphicalItem:I,payload:$}}else if(B==="RadialBar"){var z=(M.data||[]).find(function(Y){return XI(j,Y)});if(z)return{graphicalItem:I,payload:z}}else if(Uv(I,O)||Hv(I,O)||Ch(I,O)){var H=T_e({graphicalItem:I,activeTooltipItem:O,itemData:R.data}),V=R.activeIndex===void 0?H:R.activeIndex;return{graphicalItem:xe(xe({},I),{},{childIndex:V}),payload:Ch(I,O)?R.data[H]:I.props.data[H]}}}return null}},{key:"render",value:function(){var j=this;if(!nM(this))return null;var S=this.props,N=S.children,O=S.className,E=S.width,A=S.height,I=S.style,M=S.compact,C=S.title,R=S.desc,B=T6(S,nke),$=vt(B,!1);if(M)return ue.createElement(d6,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},ue.createElement(KS,$c({},$,{width:E,height:A,title:C,desc:R}),this.renderClipPath(),iM(N,this.renderMap)));if(this.props.accessibilityLayer){var z,H;$.tabIndex=(z=this.props.tabIndex)!==null&&z!==void 0?z:0,$.role=(H=this.props.role)!==null&&H!==void 0?H:"application",$.onKeyDown=function(Y){j.accessibilityManager.keyboardEvent(Y)},$.onFocus=function(){j.accessibilityManager.focus()}}var V=this.parseEventsOfWrapper();return ue.createElement(d6,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},ue.createElement("div",$c({className:xt("recharts-wrapper",O),style:xe({position:"relative",cursor:"default",width:E,height:A},I)},V,{ref:function(W){j.container=W}}),ue.createElement(KS,$c({},$,{width:E,height:A,title:C,desc:R,style:xke}),this.renderClipPath(),iM(N,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(P.Component);tt(b,"displayName",n),tt(b,"defaultProps",xe({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),tt(b,"getDerivedStateFromProps",function(v,x){var _=v.dataKey,j=v.data,S=v.children,N=v.width,O=v.height,E=v.layout,A=v.stackOffset,I=v.margin,M=x.dataStartIndex,C=x.dataEndIndex;if(x.updateId===void 0){var R=M6(v);return xe(xe(xe({},R),{},{updateId:0},g(xe(xe({props:v},R),{},{updateId:0}),x)),{},{prevDataKey:_,prevData:j,prevWidth:N,prevHeight:O,prevLayout:E,prevStackOffset:A,prevMargin:I,prevChildren:S})}if(_!==x.prevDataKey||j!==x.prevData||N!==x.prevWidth||O!==x.prevHeight||E!==x.prevLayout||A!==x.prevStackOffset||!Uc(I,x.prevMargin)){var B=M6(v),$={chartX:x.chartX,chartY:x.chartY,isTooltipActive:x.isTooltipActive},z=xe(xe({},R6(x,j,E)),{},{updateId:x.updateId+1}),H=xe(xe(xe({},B),$),z);return xe(xe(xe({},H),g(xe({props:v},H),x)),{},{prevDataKey:_,prevData:j,prevWidth:N,prevHeight:O,prevLayout:E,prevStackOffset:A,prevMargin:I,prevChildren:S})}if(!WS(S,x.prevChildren)){var V,Y,W,q,D=Ur(S,_u),F=D&&(V=(Y=D.props)===null||Y===void 0?void 0:Y.startIndex)!==null&&V!==void 0?V:M,K=D&&(W=(q=D.props)===null||q===void 0?void 0:q.endIndex)!==null&&W!==void 0?W:C,ee=F!==M||K!==C,J=!ft(j),G=J&&!ee?x.updateId:x.updateId+1;return xe(xe({updateId:G},g(xe(xe({props:v},x),{},{updateId:G,dataStartIndex:F,dataEndIndex:K}),x)),{},{prevChildren:S,dataStartIndex:F,dataEndIndex:K})}return null}),tt(b,"renderActiveDot",function(v,x,_){var j;return P.isValidElement(v)?j=P.cloneElement(v,x):ut(v)?j=v(x):j=ue.createElement(IO,x),ue.createElement(cn,{className:"recharts-active-dot",key:_},j)});var y=P.forwardRef(function(x,_){return ue.createElement(b,$c({},x,{ref:_}))});return y.displayName=b.displayName,y},Ake=Pke({chartName:"LineChart",GraphicalChild:Pu,axisComponents:[{axisType:"xAxis",AxisComp:Xv},{axisType:"yAxis",AxisComp:Qv}],formatAxisMap:OSe});const Tke=[{days:7,label:"Last 7 days"},{days:30,label:"Last 30 days"},{days:90,label:"Last 90 days"}],Cke=[{key:"sessions",label:"Sessions"},{key:"totalUsers",label:"Total Users"},{key:"newUsers",label:"New Users"},{key:"screenPageViews",label:"Pageviews"},{key:"averageSessionDuration",label:"Avg. Session",format:g9},{key:"engagementRate",label:"Engagement Rate",format:US},{key:"bounceRate",label:"Bounce Rate",format:US},{key:"eventsPerSession",label:"Events / Session",format:e=>e==null?"—":Number(e).toFixed(2)}];function Rke(){const[e,t]=P.useState(30),[n,r]=P.useState(null),[i,o]=P.useState([]),[a,l]=P.useState(null),[c,d]=P.useState(!0),[p,f]=P.useState(""),m=async(v,x)=>{d(!0),f("");try{const _=await st.functions.invoke("getAnalyticsReport",{days:v,propertyId:x}),j=_&&_.data?_.data:_;j!=null&&j.error?(f(j.error),l(null)):l(j),j!=null&&j.availableProperties&&o(j.availableProperties),j!=null&&j.propertyId&&!x&&r(j.propertyId)}
694catch{f("Unable to load analytics. The connector may not be connected or no property has data."),l(null)}finally{d(!1)}};P.useEffect(()=>{m(e,n)},[e,n]);const g=(a==null?void 0:a.totals)||{},b=(a==null?void 0:a.deltas)||{},y=(a==null?void 0:a.daily)||[];return s.jsxs("div",{className:"bg-pale-blue min-h-screen",children:[s.jsx(At,{}),s.jsx("section",{className:"bg-dark-blue pt-28 pb-12",children:s.jsxs("div",{className:"max-w-screen-xl mx-auto px-6 lg:px-10",children:[s.jsxs(_e,{children:[s.jsxs("div",{className:"flex items-center gap-2 text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.25em] mb-4",children:[s.jsx(OL,{size:14})," Admin Dashboard"]}),s.jsx("h1",{className:"text-white font-cal text-4xl lg:text-5xl mb-3",children:"Marketing Analytics"}),s.jsx("p",{className:"text-white/60 font-inter font-light text-lg max-w-2xl",children:"Public marketing traffic, acquisition and engagement — pulled live from your GA4 property. Practitioner-portal logins are reported separately below."})]}),s.jsxs("div",{className:"mt-8 flex flex-wrap items-center gap-2",children:[Tke.map(v=>s.jsx("button",{onClick:()=>t(v.days),className:`px-5 py-2 rounded-full text-sm font-inter font-medium transition-colors ${e===v.days?"bg-pistachio text-dark-blue":"bg-white/10 text-white/70 hover:bg-white/20"}`,children:v.label},v.days)),i.length>1&&s.jsx("select",{value:n||"",onChange:v=>r(v.target.value),className:"ml-auto px-4 py-2 rounded-full text-sm font-inter font-medium bg-white/10 text-white border border-white/20 focus:outline-none focus:border-pistachio max-w-xs",children:i.map(v=>s.jsx("option",{value:v.propertyId,className:"text-dark-blue",children:v.name},v.propertyId))}),i.length<=1&&(a==null?void 0:a.propertyName)&&s.jsxs("span",{className:"ml-auto text-white/40 text-xs font-inter",children:["Property: ",a.propertyName]})]})]})}),s.jsxs("section",{className:"max-w-screen-xl mx-auto px-6 lg:px-10 py-10 lg:py-14 space-y-10",children:[c&&s.jsx("div",{className:"py-24 text-center text-dark-blue/50 font-inter",children:"Loading analytics…"}),!c&&p&&s.jsxs("div",{className:"rounded-2xl bg-white border border-red-200 p-8 text-center",children:[s.jsx("h3",{className:"text-dark-blue font-cal text-xl mb-2",children:"Couldn't load analytics"}),s.jsx("p",{className:"text-dark-blue/60 font-inter text-sm max-w-md mx-auto",children:p}),s.jsx("button",{onClick:()=>m(e),className:"mt-6 px-6 py-2.5 bg-dark-blue text-white rounded-lg text-sm font-inter font-semibold hover:bg-dark-blue/90",children:"Retry"})]}),!c&&!p&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:Cke.map(v=>s.jsx(_he,{label:v.label,value:g[v.key],format:v.format,delta:b[v.key]},v.key))}),(a==null?void 0:a.loginStats)&&s.jsx(She,{loginStats:a.loginStats}),y.length>0&&s.jsxs("div",{className:"bg-white rounded-2xl border border-dark-blue/8 p-6 lg:p-8",children:[s.jsx("h3",{className:"text-dark-blue font-cal text-xl mb-1",children:"Sessions & Pageviews"}),s.jsx("p",{className:"text-dark-blue/50 font-inter text-sm mb-6",children:"Daily trend over the selected period."}),s.jsx("div",{className:"w-full",style:{height:300},children:s.jsx(pye,{width:"100%",height:"100%",children:s.jsxs(Ake,{data:y,margin:{top:5,right:10,left:-10,bottom:0},children:[s.jsx(K7,{strokeDasharray:"3 3",stroke:"#ECECF3"}),s.jsx(Xv,{dataKey:"date",tickFormatter:C3,tick:{fontSize:11,fill:"#5A7D9E"},interval:"preserveStartEnd",minTickGap:24}),s.jsx(Qv,{tick:{fontSize:11,fill:"#5A7D9E"}}),s.jsx(Ji,{labelFormatter:v=>C3(v),contentStyle:{borderRadius:12,border:"1px solid #ECECF3",fontFamily:"Inter, sans-serif",fontSize:12}}),s.jsx(Pu,{type:"monotone",dataKey:"sessions",stroke:"#122048",strokeWidth:2.5,dot:!1,name:"Sessions"}),s.jsx(Pu,{type:"monotone",dataKey:"views",stroke:"#A4D17E",strokeWidth:2.5,dot:!1,name:"Pageviews"})]})})})]}),s.jsx(khe,{channels:(a==null?void 0:a.channels)||[],sources:(a==null?void 0:a.sources)||[]}),s.jsx(Ohe,{landingPages:(a==null?void 0:a.landingPages)||[]}),s.jsxs("div",{className:"bg-white rounded-2xl border border-dark-blue/8 overflow-hidden",children:[s.jsxs("div",{className:"flex items-center justify-between px-6 lg:px-8 py-5 border-b border-dark-blue/8",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-dark-blue font-cal text-xl",children:"Top pages"}),s.jsx("p",{className:"text-dark-blue/50 font-inter text-sm",children:"Most viewed public pages (logins excluded)."})]}),s.jsxs("span",{className:"text-dark-blue/40 font-inter text-xs",children:[((a==null?void 0:a.topPages)||[]).length," pages"]})]}),s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left",children:[s.jsx("thead",{className:"bg-pale-blue/60",children:s.jsxs("tr",{className:"text-dark-blue/50 text-xs font-inter font-semibold uppercase tracking-wider",children:[s.jsx("th",{className:"px-6 lg:px-8 py-3",children:"Page"}),s.jsx("th",{className:"px-4 py-3 text-right",children:"Views"}),s.jsx("th",{className:"px-4 py-3 text-right",children:"Sessions"}),s.jsx("th",{className:"px-4 py-3 text-right",children:"Engaged"}),s.jsx("th",{className:"px-4 py-3 text-right",children:"Avg. Time"}),s.jsx("th",{className:"px-6 lg:px-8 py-3 text-right",children:"Events"})]})}),s.jsxs("tbody",{children:[((a==null?void 0:a.topPages)||[]).map((v,x)=>s.jsxs("tr",{className:"border-t border-dark-blue/6 hover:bg-pale-blue/40",children:[s.jsxs("td",{className:"px-6 lg:px-8 py-4",children:[s.jsx("p",{className:"text-dark-blue font-inter font-medium text-sm leading-tight",children:v.title||v.path}),s.jsx("p",{className:"text-dark-blue/40 font-inter text-xs truncate max-w-xs",children:v.path})]}),s.jsx("td",{className:"px-4 py-4 text-right text-dark-blue font-inter text-sm font-semibold",children:mr(v.views)}),s.jsx("td",{className:"px-4 py-4 text-right text-dark-blue/70 font-inter text-sm",children:mr(v.sessions)}),s.jsx("td",{className:"px-4 py-4 text-right text-dark-blue/70 font-inter text-sm",children:mr(v.engagedSessions)}),s.jsx("td",{className:"px-4 py-4 text-right text-dark-blue/70 font-inter text-sm",children:g9(v.engagementTime)}),s.jsx("td",{className:"px-6 lg:px-8 py-4 text-right text-dark-blue/70 font-inter text-sm",children:mr(v.events)})]},x)),((a==null?void 0:a.topPages)||[]).length===0&&s.jsx("tr",{children:s.jsx("td",{colSpan:6,className:"px-6 py-10 text-center text-dark-blue/40 font-inter text-sm",children:"No page data for this period."})})]})]})})]}),s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[s.jsx(E
694he,{geo:(a==null?void 0:a.geo)||[]}),s.jsx(Ahe,{devices:(a==null?void 0:a.devices)||[]})]}),s.jsx(The,{events:(a==null?void 0:a.events)||[]})]})]}),s.jsx(Tt,{})]})}const D6=[{key:"pending",label:"Pending"},{key:"claimed",label:"Claimed"},{key:"completed",label:"Completed"}],Mke={callback:{label:"Callback",badge:"bg-mid-blue/15 text-mid-blue"},quote:{label:"Quote",badge:"bg-pistachio/20 text-dark-blue"},sample:{label:"Sample",badge:"bg-[#8fb4d6]/25 text-dark-blue"},conference:{label:"Conference",badge:"bg-purple-100 text-purple-700"},contact:{label:"Contact",badge:"bg-amber-100 text-amber-700"}},L6={callback:"CallbackRequest",quote:"QuoteRequest",sample:"SampleBoxRequest",conference:"ConferenceAppointment",contact:"ContactMessage"},Ike=["Patrick","Gabe","Kim"];function Dke(e){const t=Date.now()-new Date(e).getTime(),n=Math.floor(t/6e4);if(n<1)return"just now";if(n<60)return`${n}m ago`;const r=Math.floor(n/60);return r<24?`${r}h ago`:`${Math.floor(r/24)}d ago`}function Lke(){const[e,t]=P.useState([]),[n,r]=P.useState(!0),[i,o]=P.useState("pending"),[a,l]=P.useState(null),c=P.useCallback(async()=>{r(!0);try{const[g,b,y,v,x]=await Promise.all([st.entities.CallbackRequest.list("-created_date",200),st.entities.QuoteRequest.list("-created_date",200),st.entities.SampleBoxRequest.list("-created_date",200),st.entities.ConferenceAppointment.list("-created_date",200),st.entities.ContactMessage.list("-created_date",200)]),_=(j,S)=>j.map(N=>({...N,_type:S}));t([..._(g,"callback"),..._(b,"quote"),..._(y,"sample"),..._(v,"conference"),..._(x,"contact")])}catch(g){console.error("Failed to load leads",g)}finally{r(!1)}},[]);P.useEffect(()=>{c()},[c]);async function d(g,b){l(g.id);try{await st.entities[L6[g._type]].update(g.id,{status:b}),t(y=>y.map(v=>v.id===g.id?{...v,status:b}:v))}catch(y){console.error(y)}finally{l(null)}}async function p(g,b){l(g.id);try{await st.entities[L6[g._type]].update(g.id,{owner:b}),t(y=>y.map(v=>v.id===g.id?{...v,owner:b}:v))}catch(y){console.error(y)}finally{l(null)}}const f=D6.reduce((g,b)=>(g[b.key]=e.filter(y=>y.status===b.key).length,g),{}),m=e.filter(g=>g.status===i).sort((g,b)=>i==="pending"?new Date(g.created_date)-new Date(b.created_date):new Date(b.created_date)-new Date(g.created_date));return s.jsxs("div",{className:"bg-pale-blue min-h-screen",children:[s.jsx(At,{}),s.jsxs("div",{className:"max-w-screen-xl mx-auto px-6 lg:px-10 pt-36 pb-24",children:[s.jsxs("div",{className:"flex items-center justify-between mb-8 flex-wrap gap-4",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-mid-blue text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-1",children:"Admin"}),s.jsx("h1",{className:"text-dark-blue font-cal text-4xl",children:"Leads Inbox"}),s.jsx("p",{className:"text-dark-blue/50 font-inter text-sm mt-1",children:"Every form submission in one place — oldest pending on top."})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs(Ie,{to:"/admin/news",className:"inline-flex items-center gap-2 px-5 py-3 border border-dark-blue/20 text-dark-blue font-inter font-semibold text-sm rounded-full hover:bg-dark-blue/5 transition-colors",children:[s.jsx(Hh,{size:16})," News"]}),s.jsxs("button",{onClick:c,className:"inline-flex items-center gap-2 px-5 py-3 bg-dark-blue text-white font-inter font-semibold text-sm rounded-full hover:bg-dark-blue/90 transition-colors",children:[s.jsx(xG,{size:16,className:n?"animate-spin":""})," Refresh"]})]})]}),s.jsx("div",{className:"grid grid-cols-3 gap-4 mb-8",children:D6.map(g=>s.jsxs("button",{onClick:()=>o(g.key),className:`text-left rounded-2xl border px-5 py-4 transition-colors ${i===g.key?"bg-white border-dark-blue/20 shadow-sm":"bg-white/50 border-dark-blue/8 hover:bg-white"}`,children:[s.jsx("p",{className:"text-dark-blue/50 font-inter text-xs uppercase tracking-wider mb-1",children:g.label}),s.jsx("p",{className:"text-dark-blue font-cal text-3xl",children:f[g.key]||0})]},g.key))}),n?s.jsxs("div",{className:"text-center py-20 text-mid-blue font-inter flex items-center justify-center gap-2",children:[s.jsx(pi,{className:"animate-spin",size:18})," Loading leads…"]}):m.length===0?s.jsxs("div",{className:"text-center py-20 text-dark-blue/50 font-inter",children:[s.jsx(TL,{className:"mx-auto mb-3 text-dark-blue/20",size:32}),"No ",i," leads right now."]}):s.jsx("div",{className:"space-y-3",children:m.map(g=>s.jsx(Bke,{lead:g,updating:a===g.id,onStatus:d,onOwner:p},`${g._type}-${g.id}`))})]}),s.jsx(Tt,{})]})}function Bke({lead:e,updating:t,onStatus:n,onOwner:r}){var d;const i=Mke[e._type],o=e._type==="quote"||e._type==="contact"?`${e.first_name||""} ${e.last_name||""}`.trim():e.name||"—",a=e.clinic||e.conference||e.inquiry_type||"",l=(d=e.sample_types)!=null&&d.length?`Samples: ${e.sample_types.join(", ")}`:"",c=e.message?e.message:"";return s.jsx("div",{className:"bg-white rounded-2xl border border-dark-blue/10 px-6 py-5",children:s.jsxs("div",{className:"flex items-start justify-between gap-4 flex-wrap",children:[s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-1.5 flex-wrap",children:[s.jsx("span",{className:`text-[11px] font-inter font-semibold uppercase tracking-wider px-2.5 py-0.5 rounded-full ${i.badge}`,children:i.label}),s.jsxs("span",{className:"text-dark-blue/40 font-inter text-xs flex items-center gap-1",children:[s.jsx(EL,{size:12})," ",Dke(e.created_date)]}),s.jsx("span",{className:"text-dark-blue/30 font-inter text-xs",children:new Date(e.created_date).toLocaleStr
694ing()})]}),s.jsx("h3",{className:"text-dark-blue font-inter font-semibold text-base",children:o}),a&&s.jsx("p",{className:"text-dark-blue/60 font-inter text-sm",children:a}),s.jsxs("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1 mt-1.5",children:[e.email&&s.jsxs("a",{href:`mailto:${e.email}`,className:"text-mid-blue font-inter text-xs flex items-center gap-1 hover:underline",children:[s.jsx(Qo,{size:12})," ",e.email]}),e.phone&&s.jsxs("a",{href:`tel:${e.phone}`,className:"text-mid-blue font-inter text-xs flex items-center gap-1 hover:underline",children:[s.jsx(Wh,{size:12})," ",e.phone]}),e.contact_method&&s.jsxs("span",{className:"text-dark-blue/50 font-inter text-xs",children:["via ",e.contact_method]})]}),l&&s.jsx("p",{className:"text-dark-blue/60 font-inter text-xs mt-1",children:l}),c&&s.jsxs("p",{className:"text-dark-blue/50 font-inter text-sm mt-2 line-clamp-2 flex items-start gap-1.5",children:[s.jsx(HW,{size:13,className:"mt-0.5 shrink-0 text-dark-blue/30"})," ",c]})]}),s.jsxs("div",{className:"flex flex-col items-end gap-3 flex-shrink-0",children:[s.jsxs("div",{className:"flex flex-col items-end gap-1",children:[s.jsx("label",{className:"text-[10px] uppercase tracking-wider text-dark-blue/40 font-inter font-semibold",children:"Owner"}),s.jsxs("select",{value:e.owner||"",onChange:p=>r(e,p.target.value),disabled:t,className:"px-3 py-2 rounded-full border border-dark-blue/20 text-dark-blue font-inter text-xs font-medium bg-white disabled:opacity-50 focus:outline-none focus:border-pistachio",children:[s.jsx("option",{value:"",disabled:!0,children:"Assign…"}),Ike.map(p=>s.jsx("option",{value:p,children:p},p))]})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[e.status==="pending"&&s.jsxs("button",{onClick:()=>n(e,"claimed"),disabled:t,className:"inline-flex items-center gap-1.5 px-3.5 py-2 border border-dark-blue/20 text-dark-blue font-inter font-semibold text-xs rounded-full hover:bg-dark-blue/5 transition-colors disabled:opacity-50",children:[s.jsx(UG,{size:14})," Claim"]}),e.status!=="completed"&&s.jsxs("button",{onClick:()=>n(e,"completed"),disabled:t,className:"inline-flex items-center gap-1.5 px-3.5 py-2 bg-pistachio text-dark-blue font-inter font-semibold text-xs rounded-full hover:bg-pistachio/90 transition-colors disabled:opacity-50",children:[s.jsx(au,{size:14})," Done"]}),e.status!=="pending"&&s.jsx("button",{onClick:()=>n(e,"pending"),disabled:t,className:"inline-flex items-center gap-1.5 px-3.5 py-2 border border-dark-blue/15 text-dark-blue/50 font-inter font-semibold text-xs rounded-full hover:bg-pale-blue transition-colors disabled:opacity-50",children:"Reopen"})]})]})]})})}/*! @license DOMPurify 3.4.12 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.12/LICENSE */function B6(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $ke(e){if(Array.isArray(e))return e}function Fke(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(p){d=!0,i=p}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw i}}return l}}function qke(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
695In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zke(e,t){return $ke(e)||Fke(e,t)||Uke(e,t)||qke()}function Uke(e,t){if(e){if(typeof e=="string")return B6(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B6(e,t):void 0}}const uU=Object.entries,$6=Object.setPrototypeOf,Hke=Object.isFrozen,Vke=Object.getPrototypeOf,Wke=Object.getOwnPropertyDescriptor;let Wn=Object.freeze,Gn=Object.seal,Tc=Object.create,dU=typeof Reflect<"u"&&Reflect,lN=dU.apply,cN=dU.construct;Wn||(Wn=function(t){return t});Gn||(Gn=function(t){return t});lN||(lN=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return t.apply(n,i)});cN||(cN=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return new t(...r)});const Ec=xn(Array.prototype.forEach),Gke=xn(Array.prototype.lastIndexOf),F6=xn(Array.prototype.pop),Pc=xn(Array.prototype.push),Kke=xn(Array.prototype.splice),za=Array.isArray,kf=xn(String.prototype.toLowerCase),T_=xn(String.prototype.toString),q6=xn(String.prototype.match),df=xn(String.prototype.replace),z6=xn(String.prototype.indexOf),Yke=xn(String.prototype.trim),Xke=xn(Number.prototype.toString),Qke=xn(Boolean.prototype.toString),U6=typeof BigInt>"u"?null:xn(BigInt.prototype.toString),H6=typeof Symbol>"u"?null:xn(Symbol.prototype.toString),Cn=xn(Object.prototype.hasOwnProperty),ff=xn(Object.prototype.toString),Tn=xn(RegExp.prototype.test),Gs=Zke(TypeError);function xn(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return lN(e,t,r)}}function Zke(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return cN(e,n)}}function bt(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:kf;if($6&&$6(e,null),!za(t))return e;let r=t.length;for(;r--;){let i=t[r];
vendor: 4,418 bytes, line 695
695if(typeof i=="string"){const o=n(i);o!==i&&(Hke(t)||(t[r]=o),i=o)}e[i]=!0}return e}function Jke(e){for(let t=0;t<e.length;t++)Cn(e,t)||(e[t]=null);return e}function hr(e){const t=Tc(null);for(const r of uU(e)){var n=zke(r,2);const i=n[0],o=n[1];Cn(e,i)&&(za(o)?t[i]=Jke(o):o&&typeof o=="object"&&o.constructor===Object?t[i]=hr(o):t[i]=o)}return t}function eOe(e){switch(typeof e){case"string":return e;case"number":return Xke(e);case"boolean":return Qke(e);case"bigint":return U6?U6(e):"0";case"symbol":return H6?H6(e):"Symbol()";case"undefined":return ff(e);case"function":case"object":{if(e===null)return ff(e);const t=e,n=Zi(t,"toString");if(typeof n=="function"){const r=n(t);return typeof r=="string"?r:ff(r)}return ff(e)}default:return ff(e)}}function Zi(e,t){for(;e!==null;){const r=Wke(e,t);if(r){if(r.get)return xn(r.get);if(typeof r.value=="function")return xn(r.value)}e=Vke(e)}function n(){return null}return n}function tOe(e){try{return Tn(e,""),!0}catch{return!1}}const V6=Wn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),C_=Wn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),R_=Wn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),nOe=Wn(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),M_=Wn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),rOe=Wn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),W6=Wn(["#text"]),G6=Wn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
695spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),I_=Wn(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),K6=Wn(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ng=Wn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),iOe=Gn(/{{[\w\W]*|^[\w\W]*}}/g),oOe=Gn(/<%[\w\W]*|^[\w\W]*%>/g),aOe=Gn(/\${[\w\W]*/g),sOe=Gn(/^data-[\-\w.\u00B7-\uFFFF]+$/),lOe=Gn(/^aria-[\-\w]+$/),Y6=Gn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),cOe=Gn(/^(?:\w+script|data):/i),uOe=Gn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),dOe=Gn(/^html$/i),fOe=Gn(/^[a-z][.\w]*(-[.\w]+)+$/i),X6=Gn(/<[/\w!]/g),Q6=Gn(/<[/\w]/g),hOe=Gn(/<\/no(script|embed|frames)/i),pOe=Gn(/\/>/i),Br={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},mOe=function(){return typeof window>"u"?null:window},gOe=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;
vendor: 11,668 bytes, line 695
695const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},Z6=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Ia=function(t,n,r,i){return Cn(t,n)&&za(t[n])?bt(i.base?hr(i.base):{},t[n],i.transform):r};function fU(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:mOe();const t=Ae=>fU(Ae);if(t.version="3.4.12",t.removed=[],!e||!e.document||e.document.nodeType!==Br.document||!e.Element)return t.isSupported=!1,t;let n=e.document;const r=n,i=r.currentScript;e.DocumentFragment;const o=e.HTMLTemplateElement,a=e.Node,l=e.Element,c=e.NodeFilter,d=e.NamedNodeMap;d===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const p=e.DOMParser,f=e.trustedTypes,m=l.prototype,g=Zi(m,"cloneNode"),b=Zi(m,"remove"),y=Zi(m,"nextSibling"),v=Zi(m,"childNodes"),x=Zi(m,"parentNode"),_=Zi(m,"shadowRoot"),j=Zi(m,"attributes"),S=a&&a.prototype?Zi(a.prototype,"nodeType"):null,N=a&&a.prototype?Zi(a.prototype,"nodeName"):null;if(typeof o=="function"){const Ae=n.createElement("template");Ae.content&&Ae.content.ownerDocument&&(n=Ae.content.ownerDocument)}let O,E="",A,I=!1,M=0;const C=function(){if(M>0)throw Gs('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},R=function(Q){C(),M++;try{return O.createHTML(Q)}finally{M--}},B=function(Q){C(),M++;try{return O.createScriptURL(Q)}finally{M--}},$=function(){return I||(A=gOe(f,i),I=!0),A},z=n,H=z.implementation,V=z.createNodeIterator,Y=z.createDocumentFragment,W=z.getElementsByTagName,q=r.importNode;let D=Z6();t.isSupported=typeof uU=="function"&&typeof x=="function"&&H&&H.createHTMLDocument!==void 0;const F=iOe,K=oOe,ee=aOe,J=sOe,G=lOe,X=cOe,ne=uOe,Z=fOe;let se=Y6,fe=null;const le=bt({},[...V6,...C_,...R_,...M_,...W6]);let we=null;const ge=bt({},[...G6,...I_,...K6,...ng]);let be=Object.seal(Tc(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Be=null,De=null;const oe=Object.seal(Tc(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let de=!0,Se=!0,Ee=!1,ve=!0,He=!1,$e=!0,Ye=!1,Rt=!1,Ft=null,ht=null,vi=!1,pt=!1,an=!1,ca=!1,Cr=!0,wo=!1;const ql="user-content-";let _s=!0,Ss=!1,Vi={},xr=null;const js=bt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let _o=null;const So=bt({},["audio","video","img","source","image","track"]);let zl=null;const nd=bt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ns="http://www.w3.org/1998/Math/MathML",ks="http://www.w3.org/2000/svg",Rr="http://www.w3.org/1999/xhtml";let Wi=Rr,Ul=!1,jo=null;const rd=bt({},[Ns,ks,Rr],T_),ua=Wn(["mi","mo","mn","ms","mtext"]);let id=bt({},ua);const da=Wn(["annotation-xml"]);let fa=bt({},da);const Hl=bt({},["title","style","font","a","script"]);let No=null;const Jv=["application/xhtml+xml","text/html"],ex="text/html";let qt=null,br=null;const yp=n.createElement("form"),od=function(Q){return Q instanceof RegExp||Q instanceof Function},ad=function(){let Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(br&&br===Q)return;(!Q||typeof Q!="object")&&(Q={}),Q=hr(Q),No=Jv.indexOf(Q.PARSER_MEDIA_TYPE)===-1?ex:Q.PARSER_MEDIA_TYPE,qt=No==="application/xhtml+xml"?T_:kf,fe=Ia(Q,"ALLOWED_TAGS",le,{transform:qt}),we=Ia(Q,"ALLOWED_ATTR",ge,{transform:qt}),jo=Ia(Q,"ALLOWED_NAMESPACES",rd,{transform:T_}),zl=Ia(Q,"ADD_URI_SAFE_ATTR",nd,{transform:qt,base:nd}),_o=Ia(Q,"ADD_DATA_URI_TAGS",So,{transform:qt,base:So}),xr=Ia(Q,"FORBID_CONTENTS",js,{transform:qt}),Be=Ia(Q,"FORBID_TAGS",hr({}),{transform:qt}),De=Ia(Q,"FORBID_ATTR",hr({}),{transform:qt}),Vi=Cn(Q,"USE_PROFILES")?Q.USE_PROFILES&&typeof Q.USE_PROFILES=="object"?hr(Q.USE_PROFILES):Q.USE_PROFILES:!1,de=Q.ALLOW_ARIA_ATTR!==!1,Se=Q.ALLOW_DATA_ATTR!==!1,Ee=Q.ALLOW_UNKNOWN_PROTOCOLS||!1,ve=Q.ALLOW_SELF_CLOSE_IN_ATTR!==!1,He=Q.SAFE_FOR_TEMPLATES||!1,$e=Q.SAFE_FOR_XML!==!1,Ye=Q.WHOLE_DOCUMENT||!1,pt=Q.RETURN_DOM||!1,an=Q.RETURN_DOM_FRAGMENT||!1,ca=Q.RETURN_TRUSTED_TYPE||!1,vi=Q.FORCE_BODY||!1,Cr=Q.SANITIZE_DOM!==!1,wo=Q.SANITIZE_NAMED_PROPS||!1,_s=Q.KEEP_CONTENT!==!1,Ss=Q.IN_PLACE||!1,se=tOe(Q.ALLOWED_URI_REGEXP)?Q.ALLOWED_URI_REGEXP:Y6,Wi=typeof Q.NAMESPACE=="string"?Q.NAMESPACE:Rr,id=Cn(Q,"MATHML_TEXT_INTEGRATION_POINTS")&&Q.MATHML_TEXT_INTEGRATION_POINTS&&typeof Q.MATHML_TEXT_INTEGRATION_POINTS=="object"?hr(Q.MATHML_TEXT_INTEGRATION_POINTS):bt({},ua),fa=Cn(Q,"HTML_INTEGRATION_POINTS")&&Q.HTML_INTEGRATION_POINTS&&typeof Q.HTML_INTEGRATION_POINTS=="object"?hr(Q.HTML_INTEGRATION_POINTS):bt({},da);const me=Cn(Q,"CUSTOM_ELEMENT_HANDLING")&&Q.CUSTOM_ELEMENT_HANDLING&&typeof Q.CUSTOM_ELEMENT_HANDLING=="object"?hr(Q.CUSTOM_ELEMENT_HANDLING):Tc(null);if(be=Tc(null),Cn(me,"tagNameCheck")&&od(me.tagNameCheck)&&(be.tagNameCheck=me.tagNameCheck),Cn(me,"attributeNameCheck")&&od(me.attributeNameCheck)&&(be.attributeNameCheck=me.attributeNameCheck),Cn(me,"allowCustomizedBuiltInElements")&&typeof me.allowCustomizedBuiltInElements=="boolean"&&(be.allowCustomizedBuiltInElements=me.allowCustomizedBuiltInElements),Gn(be),He&&(Se=!1),an&&(pt=!0),Vi&&(fe=bt({},W6),we=Tc(null),Vi.html===!0&&(bt(fe,V6),bt(we,G6)),Vi.svg===!0&&(bt(fe,C_),bt(we,I_),bt(we,ng)),Vi.svgFilters===!0&&(bt(fe,R_),bt(we,I_),bt(we,ng)),Vi.mathMl===!0&&(bt(fe,M_),bt(we,K6),bt(we,ng))),oe.tagCheck=null,oe.attributeCheck=null,Cn(Q,"ADD_TAGS")&&(typeof Q.ADD_TAGS=="function"?oe.tagCheck=Q.ADD_TAGS:za(Q.ADD_TAGS)&&(fe===le&&(fe=hr(fe)),bt(fe,Q.ADD_TAGS,qt))),Cn(Q,"ADD_ATTR")&&(typeof Q.ADD_ATTR=="function"?oe.attributeCheck=Q.ADD_ATTR:za(Q.ADD_ATTR)&&(we===ge&&(we=hr(we)),bt(we,Q.ADD_ATTR,qt))),Cn(Q,"ADD_URI_SAFE_ATTR")&&za(Q.ADD_URI_SAFE_ATTR)&&bt(zl,Q.ADD_URI_SAFE_ATTR,qt),Cn(Q,"FORBID_CONTENTS")&&za(Q.FORBID_CONTENTS)&&(xr===js&&(xr=hr(xr)),bt(xr,Q.FORBID_CONTENTS,qt)),Cn(Q,"ADD_FORBID_CONTENTS")&&za(Q.ADD_FORBID_CONTENTS)&&(xr===js&&(xr=hr(xr)),bt(xr,Q.ADD_FORBID_CONTENTS,qt)),_s&&(fe["#text"]=!0),Ye&&bt(fe,["html","head","body"]),fe.table&&(bt(fe,["tbody"]),delete Be.tbody),Q.TRUSTED_TYPES_POLICY){if(typeof Q.TRUSTED_TYPES_POLICY.createHTML!="function")throw Gs('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Q.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Gs('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const je=O;O=Q.TRUSTED_TYPES_POLICY;try{E=R("")}catch(qe){throw O=je,qe}}else Q.TRUSTED_TYPES_POLICY===null?(O=void 0,E=""):(O===void 0&&(O=$()),O&&typeof E=="string"&&(E=R("")));Wn&&Wn(Q),br=Q},sd=bt({},[...C_,...R_,...nOe]),ld=bt({},[...M_,...rOe]),vp=function(Q,me,je){return me.namespaceURI===Rr?Q==="svg":me.namespaceURI===Ns?Q==="svg"&&(je==="annotation-xml"||id[je]):!!sd[Q]},xp=function(Q,me,je){return me.namespaceURI===Rr?Q==="math":me.namespaceURI===ks?Q==="math"&&fa[je]:!!ld[Q]},tx=function(Q,me,je){return me.namespaceURI===ks&&!fa[je]||me.namespaceURI===Ns&&!id[je]?!1:!ld[Q]&&(Hl[Q]||!sd[Q])},nx=function(Q){let me=x(Q);(!me||!me.tagName)&&(me={namespaceURI:Wi,tagName:"template"});const je=kf(Q.tagName),qe=kf(me.tagName);return jo[Q.namespaceURI]?Q.namespaceURI===ks?vp(je,me,qe):Q.namespaceURI===Ns?xp(je,me,qe):Q.namespaceURI===Rr?tx(je,me,qe):!!(No==="application/xhtml+xml"&&jo[Q.namespaceURI]):!1},Nt=function(Q){Pc(t.removed,{element:Q});try{x(Q).removeChild(Q)}catch{if(b(Q),!x(Q))throw Gs("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Vl=function(Q){ha(Q);const me=v(Q);if(me){const qe=[];Ec(me,Qe=>{Pc(qe,Qe)}),Ec(qe,Qe=>{try{b(Qe)}catch{}})}const je=j(Q);if(je)for(let qe=je.length-1;qe>=0;--qe){const Qe=je[qe],rt=Qe&&Qe.name;if(typeof rt=="string")try{Q.removeAttribute(rt)}catch{}}},xi=function(Q,me){try{Pc(t.removed,{attribute:me.getAttributeNode(Q),from:me})}catch{Pc(t.removed,{attribute:null,from:me})}if(me.removeAttribute(Q),Q==="is")if(pt||an)try{Nt(me)}catch{}else try{me.setAttribute(Q,"")}catch{}},bp=function(Q){const me=j(Q);if(me)for(let je=me.length-1;je>=0;--je){const qe=me[je],Qe=qe&&qe.name;if(!(typeof Qe!="string"||we[qt(Qe)]))try{Q.removeAttribute(Qe)}catch{}}},ha=function(Q){const me=[Q];for(;me.length>0;){const je=me.pop();(S?S(je):je.nodeType)===Br.element&&bp(je);const Qe=v(je);if(Qe)for(let rt=Qe.length-1;rt>=0;--rt)me.push(Qe[rt])}},rx=function(Q){if(!$e)return;const me=[Q];for(;me.length>0;){const je=me.pop(),qe=S?S(je):je.nodeType;if(qe===Br.processingInstruction||qe===Br.comment&&Tn(Q6,je.data)){try{b(je)}catch{}continue}if(qe===Br.element){const rt=je,zt=qt(N?N(je):je.nodeName);try{rt.hasAttribute&&rt.hasAttribute("patchsrc")&&rt.removeAttribute("patchsrc"),rt.hasAttribute&&rt.hasAttribute("for")&&zt!=="label"&&zt!=="output"&&rt.removeAttribute("for")}catch{}}const Qe=v(je);if(Qe)for(let rt=Qe.length-1;rt>=0;--rt)me.push(Qe[rt])}},cd=function(Q){let me=null,je=null;if(vi)Q="<remove></remove>"+Q;else{const rt=q6(Q,/^[\r\n\t ]+/);je=rt&&rt[0]}No==="application/xhtml+xml"&&Wi===Rr&&(Q='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Q+"</body></html>");const qe=O?R(Q):Q;if(Wi===Rr)try{me=new p().parseFromString(qe,No)}catch{}if(!me||!me.documentElement){me=H.createDocument(Wi,"template",null);try{me.documentElement.innerHTML=Ul?E:qe}catch{}}const Qe=me.body||me.documentElement;return Q&&je&&Qe.insertBefore(n.createTextNode(je),Qe.childNodes[0]||null),Wi===Rr?W.call(me,Ye?"html":"body")[0]:Ye?me.documentElement:Qe},Os=function(Q){return V.call(Q.ownerDocument||Q,Q,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},ur=function(Q){return Q=df(Q,F," "),Q=df(Q,K," "),Q=df(Q,ee," "),Q},ud=function(Q){var me;Q.normalize();const je=V.call(Q.ownerDocument||Q,Q,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let qe=je.nextNode();for(;qe;)qe.data=ur(qe.data),qe=je.nextNode();const Qe=(me=Q.querySelectorAll)===null||me===void 0?void 0:me.call(Q,"template");Qe&&Ec(Qe,rt=>{pa(rt.content)&&ud(rt.content)})},Kn=function(Q){const me=N?N(Q):null;return typeof me!="string"||qt(me)!=="form"?!1:typeof Q.nodeName!="string"||typeof Q.textContent!="string"||typeof Q.removeChild!="function"||Q.attributes!==j(Q)||typeof Q.removeAttribute!="function"||typeof Q.setAttribute!="function"||typeof Q.namespaceURI!="string"||typeof Q.insertBefore!="function"||typeof Q.hasChildNodes!="function"||Q.nodeType!==S(Q)||Q.childNodes!==v(Q)},pa=function(Q){if(!S||typeof Q!="object"||Q===null)return!1;try{return S(Q)===Br.documentFragment}catch{return!1}},Es=function(Q){if(!S||typeof Q!="object"||Q===null)return!1;try{return typeof S(Q)=="number"}catch{return!1}};function Xr(Ae,Q,me){Ae.length!==0&&Ec(Ae,je=>{je.call(t,Q,me,br)}
695)}const Wl=function(Q,me){return!!($e&&Q.hasChildNodes()&&!Es(Q.firstElementChild)&&Tn(X6,Q.textContent)&&Tn(X6,Q.innerHTML)||$e&&Q.namespaceURI===Rr&&me==="style"&&Es(Q.firstElementChild)||Q.nodeType===Br.processingInstruction||$e&&Q.nodeType===Br.comment&&Tn(Q6,Q.data))},Gl=function(Q,me){if(!Be[me]&&wp(me)&&(be.tagNameCheck instanceof RegExp&&Tn(be.tagNameCheck,me)||be.tagNameCheck instanceof Function&&be.tagNameCheck(me)))return!1;if(_s&&!xr[me]){const je=x(Q),qe=v(Q);if(qe&&je){const Qe=qe.length;for(let rt=Qe-1;rt>=0;--rt){const zt=Ss?qe[rt]:g(qe[rt],!0);je.insertBefore(zt,y(Q))}}}return Nt(Q),!0},ma=function(Q,me){if(Xr(D.beforeSanitizeElements,Q,null),Q!==me&&x(Q)===null)return!0;if(Kn(Q))return Nt(Q),!0;const je=qt(N?N(Q):Q.nodeName);if(Xr(D.uponSanitizeElement,Q,{tagName:je,allowedTags:fe}),Q!==me&&x(Q)===null)return!0;if(Wl(Q,je))return Nt(Q),!0;if(Be[je]||!(oe.tagCheck instanceof Function&&oe.tagCheck(je))&&!fe[je]){const Qe=Gl(Q,je);return Qe===!1&&Xr(D.afterSanitizeElements,Q,null),Qe}if((S?S(Q):Q.nodeType)===Br.element&&!nx(Q)||(je==="noscript"||je==="noembed"||je==="noframes")&&Tn(hOe,Q.innerHTML))return Nt(Q),!0;if(He&&Q.nodeType===Br.text){const Qe=ur(Q.textContent);Q.textContent!==Qe&&(Pc(t.removed,{element:Q.cloneNode()}),Q.textContent=Qe)}return Xr(D.afterSanitizeElements,Q,null),!1},Ps=function(Q,me,je){if(De[me]||$e&&me==="patchsrc"||$e&&me==="for"&&Q!=="label"&&Q!=="output"||Cr&&(me==="id"||me==="name")&&(je in n||je in yp))return!1;const qe=we[me]||oe.attributeCheck instanceof Function&&oe.attributeCheck(me,Q);if(!(Se&&Tn(J,me))){if(!(de&&Tn(G,me))){if(qe){if(!zl[me]){if(!Tn(se,df(je,ne,""))){if(!((me==="src"||me==="xlink:href"||me==="href")&&Q!=="script"&&z6(je,"data:")===0&&_o[Q])){if(!(Ee&&!Tn(X,df(je,ne,"")))){if(je)return!1}}}}}else if(!(wp(Q)&&(be.tagNameCheck instanceof RegExp&&Tn(be.tagNameCheck,Q)||be.tagNameCheck instanceof Function&&be.tagNameCheck(Q))&&(be.attributeNameCheck instanceof RegExp&&Tn(be.attributeNameCheck,me)||be.attributeNameCheck instanceof Function&&be.attributeNameCheck(me,Q))||me==="is"&&be.allowCustomizedBuiltInElements&&(be.tagNameCheck instanceof RegExp&&Tn(be.tagNameCheck,je)||be.tagNameCheck instanceof Function&&be.tagNameCheck(je))))return!1}}return!0},ix=bt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),wp=function(Q){return!ix[kf(Q)]&&Tn(Z,Q)},dd=function(Q,me,je,qe){if(O&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!je)switch(f.getAttributeType(Q,me)){case"TrustedHTML":return R(qe);case"TrustedScriptURL":return B(qe)}return qe},_p=function(Q,me,je,qe){try{je?Q.setAttributeNS(je,me,qe):Q.setAttribute(me,qe),Kn(Q)?Nt(Q):F6(t.removed)}catch{xi(me,Q)}},Kl=function(Q){Xr(D.beforeSanitizeAttributes,Q,null);const me=Q.attributes;if(!me||Kn(Q))return;const je={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:we,forceKeepAttr:void 0};let qe=me.length;const Qe=qt(Q.nodeName);for(;qe--;){const rt=me[qe],zt=rt.name,hn=rt.namespaceURI,Yn=rt.value,Qt=qt(zt),pn=Yn;let Kt=zt==="value"?pn:Yke(pn);if(je.attrName=Qt,je.attrValue=Kt,je.keepAttr=!0,je.forceKeepAttr=void 0,Xr(D.uponSanitizeAttribute,Q,je),Kt=je.attrValue,wo&&(Qt==="id"||Qt==="name")&&z6(Kt,ql)!==0&&(xi(zt,Q),Kt=ql+Kt),$e&&Tn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Kt)){xi(zt,Q);continue}if(Qt==="attributename"&&q6(Kt,"href")){xi(zt,Q);continue}if(!je.forceKeepAttr){if(!je.keepAttr){xi(zt,Q);continue}if(!ve&&Tn(pOe,Kt)){xi(zt,Q);continue}if(He&&(Kt=ur(Kt)),!Ps(Qe,Qt,Kt)){xi(zt,Q);continue}Kt=dd(Qe,Qt,hn,Kt),Kt!==pn&&_p(Q,zt,hn,Kt)}}Xr(D.afterSanitizeAttributes,Q,null)},Gi=function(Q){let me=null;const je=Os(Q);for(Xr(D.beforeSanitizeShadowDOM,Q,null);me=je.nextNode();)if(Xr(D.uponSanitizeShadowNode,me,null),ma(me,Q),Kl(me),pa(me.content)&&Gi(me.content),(S?S(me):me.nodeType)===Br.element){const Qe=_(me);pa(Qe)&&(fd(Qe),Gi(Qe))}Xr(D.afterSanitizeShadowDOM,Q,null)},fd=function(Q){const me=[{node:Q,shadow:null}];for(;me.length>0;){const je=me.pop();if(je.shadow){Gi(je.shadow);continue}const qe=je.node,rt=(S?S(qe):qe.nodeType)===Br.element,zt=v(qe);if(zt)for(let hn=zt.length-1;hn>=0;--hn)me.push({node:zt[hn],shadow:null});if(rt){const hn=N?N(qe):null;if(typeof hn=="string"&&qt(hn)==="template"){const Yn=qe.content;pa(Yn)&&me.push({node:Yn,shadow:null})}}if(rt){const hn=_(qe);pa(hn)&&me.push({node:null,shadow:hn},{node:hn,shadow:null})}}};return t.sanitize=function(Ae){let Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},me=null,je=null,qe=null,Qe=null;if(Ul=!Ae,Ul&&(Ae="<!-->"),typeof Ae!="string"&&!Es(Ae)&&(Ae=eOe(Ae),typeof Ae!="string"))throw Gs("dirty is not a string, aborting");if(!t.isSupported)return Ae;Rt?(fe=Ft,we=ht):ad(Q),(D.uponSanitizeElement.length>0||D.uponSanitizeAttribute.length>0)&&(fe=hr(fe)),D.uponSanitizeAttribute.length>0&&(we=hr(we)),t.removed=[];const rt=Ss&&typeof Ae!="string"&&Es(Ae);if(rt){rx(Ae);const Qt=N?N(Ae):Ae.nodeName;if(typeof Qt=="string"){const pn=qt(Qt);if(!fe[pn]||Be[pn])throw Vl(Ae),Gs("root node is forbidden and cannot be sanitized in-place")}if(Kn(Ae))throw Vl(Ae),Gs("root node is clobbered and cannot be sanitized in-place");try{fd(Ae)}catch(pn){throw Vl(Ae),pn}}else if(Es(Ae))me=cd("<!---->"),je=me.ownerDocument.importNode(Ae,!0),je.nodeType===Br.element&&je.nodeName==="BODY"||je.nodeName==="HTML"?me=je:me.appendChild(je),fd(je);else{if(!pt&&!He&&!Ye&&Ae.indexOf("<")===-1)return O&&ca?R(Ae):Ae;if(me=cd(Ae),!me)return pt?null:ca?E:""}me&&vi&&Nt(me.firstChild);
695const zt=rt?Ae:me,hn=Os(zt);try{for(;qe=hn.nextNode();)ma(qe,zt),Kl(qe),pa(qe.content)&&Gi(qe.content)}catch(Qt){throw rt&&(Vl(Ae),Ec(t.removed,pn=>{pn.element&&ha(pn.element)})),Qt}if(rt)return Ec(t.removed,Qt=>{Qt.element&&ha(Qt.element)}),He&&ud(Ae),Ae;if(pt){if(He&&ud(me),an)for(Qe=Y.call(me.ownerDocument);me.firstChild;)Qe.appendChild(me.firstChild);else Qe=me;return(we.shadowroot||we.shadowrootmode)&&(Qe=q.call(r,Qe,!0)),Qe}let Yn=Ye?me.outerHTML:me.innerHTML;return Ye&&fe["!doctype"]&&me.ownerDocument&&me.ownerDocument.doctype&&me.ownerDocument.doctype.name&&Tn(dOe,me.ownerDocument.doctype.name)&&(Yn="<!DOCTYPE "+me.ownerDocument.doctype.name+`>
696`+Yn),He&&(Yn=ur(Yn)),O&&ca?R(Yn):Yn},t.setConfig=function(){let Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ad(Ae),Rt=!0,Ft=fe,ht=we},t.clearConfig=function(){br=null,Rt=!1,Ft=null,ht=null,O=A,E=""},t.isValidAttribute=function(Ae,Q,me){br||ad({});const je=qt(Ae),qe=qt(Q);return Ps(je,qe,me)},t.addHook=function(Ae,Q){typeof Q=="function"&&Cn(D,Ae)&&Pc(D[Ae],Q)},t.removeHook=function(Ae,Q){if(Cn(D,Ae)){if(Q!==void 0){const me=Gke(D[Ae],Q);return me===-1?void 0:Kke(D[Ae],me,1)[0]}return F6(D[Ae])}},t.removeHooks=function(Ae){Cn(D,Ae)&&(D[Ae]=[])},t.removeAllHooks=function(){D=Z6()},t}var hU=fU();const yOe={USE_PROFILES:{html:!0},FORBID_TAGS:["style","script","iframe","object","embed","form","input","button","textarea","noscript","template"],FORBID_ATTR:["onerror","onload","onclick","onmouseover","style","srcdoc"],ALLOWED_URI_REGEXP:/^(?!(?:javascript|vbscript|data:text\/html|file):)(?:[a-zA-Z][a-zA-Z0-9+.\-]*:|\/|#|mailto:|tel:)/i,ADD_ATTR:["target","rel"]};hU.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&(e.setAttribute("rel","noopener noreferrer nofollow"),e.getAttribute("target")!=="_self"&&e.setAttribute("target","_blank"))});function vOe(e){return!e||typeof e!="string"?"":hU.sanitize(e,yOe)}function xOe(e){return e?new Date(e).toLocaleDateString("en-AU",{day:"numeric",month:"long",year:"numeric"}):""}function bOe(){const{slug:e}=w8(),[t,n]=P.useState(null),[r,i]=P.useState(!0);return P.useEffect(()=>{if(/^[0-9a-f]{24}$/i.test(e)){st.entities.NewsArticle.get(e).then(o=>{o&&o.slug?window.location.replace(`/news/${o.slug}`):(n(null),i(!1))}).catch(()=>{n(null),i(!1)});return}st.entities.NewsArticle.filter({slug:e}).then(o=>{n(o[0]||null),i(!1)})},[e]),s.jsxs("div",{className:"bg-white",children:[s.jsx(At,{}),r?s.jsx("div",{className:"pt-40 pb-24 text-center text-mid-blue font-inter",children:"Loading…"}):t?s.jsxs(s.Fragment,{children:[s.jsx(gs,{title:`${t.title} | iOrthotics`,description:t.excerpt,descLimit:155,image:t.cover_image_url,type:"article",jsonLd:ade(t)}),s.jsx("section",{className:"bg-dark-blue pt-40 pb-16",children:s.jsx("div",{className:"max-w-screen-lg mx-auto px-6 lg:px-10",children:s.jsxs(_e,{className:"text-center lg:text-left",children:[s.jsxs(Ie,{to:"/news",className:"inline-flex items-center gap-2 text-white/50 hover:text-white font-inter text-sm mb-8 transition-colors",children:[s.jsx(Hh,{size:14})," Back to News & Articles"]}),s.jsxs("div",{className:"flex flex-wrap items-center justify-center lg:justify-start gap-3 mb-5",children:[t.category&&s.jsxs("span",{className:"inline-flex items-center gap-1.5 text-xs font-inter font-semibold uppercase tracking-widest text-pistachio bg-white/10 px-3 py-1 rounded-full",children:[s.jsx(BG,{size:11})," ",t.category]}),t.published_date&&s.jsxs("span",{className:"inline-flex items-center gap-1.5 text-white/40 font-inter text-xs",children:[s.jsx(kL,{size:11})," ",xOe(t.published_date)]})]}),s.jsx("h1",{className:"text-white font-cal leading-tight mb-4",style:{fontSize:"clamp(28px, 4vw, 60px)"},children:t.title}),t.excerpt&&s.jsx("p",{className:"text-white/60 font-inter text-base leading-relaxed max-w-2xl mt-4 border-l-2 border-pistachio/50 pl-4",children:t.excerpt})]})})}),t.cover_image_url&&s.jsx("div",{className:"max-w-screen-lg mx-auto px-6 lg:px-10 -mt-8 mb-4",children:s.jsx("img",{src:t.cover_image_url,alt:t.title,className:"w-full h-80 object-cover rounded-2xl shadow-xl"})}),s.jsx("section",{className:"py-16 lg:py-20",children:s.jsxs("div",{className:"max-w-screen-lg mx-auto px-6 lg:px-10",children:[t.author==="Dr Robert C
696onenello"&&s.jsxs("div",{className:"flex items-center gap-4 mb-10 pb-8 border-b border-dark-blue/10",children:[s.jsx("img",{src:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/70e780184_DrRobertConenello.webp",alt:"Dr Robert Conenello",className:"w-16 h-16 rounded-full object-cover object-top bg-pale-blue flex-shrink-0"}),s.jsxs("div",{children:[s.jsx("p",{className:"text-dark-blue font-inter font-semibold text-sm",children:"Dr Robert Conenello, DPM"}),s.jsxs("p",{className:"text-dark-blue/50 font-inter text-xs leading-relaxed",children:["Founder, Orangetown Podiatry · Clinical Partner, iOrthotics",s.jsx("br",{}),"Past President, American Academy of Podiatric Sports Medicine"]})]})]}),s.jsx("div",{className:"article-body",dangerouslySetInnerHTML:{__html:vOe(t.content)}}),t.author==="Dr Robert Conenello"&&s.jsxs("div",{className:"mt-14 p-6 bg-pale-blue rounded-2xl flex gap-6 items-start",children:[s.jsx("img",{src:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/70e780184_DrRobertConenello.webp",alt:"Dr Robert C
696onenello",className:"w-20 h-24 rounded-xl object-cover object-top bg-white flex-shrink-0"}),s.jsxs("div",{children:[s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.25em] mb-1",children:"About the Author"}),s.jsx("p",{className:"text-dark-blue font-cal text-lg leading-tight mb-2",children:"Dr Robert Conenello, DPM"}),s.jsx("p",{className:"text-dark-blue/60 font-inter text-sm leading-relaxed",children:"Founder of Orangetown Podiatry in the New York metro area, Clinical Director of Special Olympics New Jersey Healthy Athletes, and Past President of the American Academy of Podiatric Sports Medicine. With 30 years' experience in sports medicine and biomechanics, Dr Conenello is a clinical partner of iOrthotics."})]})]})]})}),s.jsx("section",{className:"bg-dark-blue py-14",children:s.jsxs("div",{className:"max-w-screen-lg mx-auto px-6 lg:px-10 text-center",children:[s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-3",children:"Partner with iOrthotics"}),s.jsx("h2",{className:"text-white font-cal mb-4",style:{fontSize:"clamp(22px, 2.5vw, 36px)"},children:"Talk to our team, or try our devices firsthand."}),s.jsx("p",{className:"text-white/60 font-inter text-base mb-8 max-w-xl mx-auto",children:"Our clinical team can walk you through custom orthotics, the iO Brace range and the iOrder platform — or request a sample box shipped straight to your clinic."}),s.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-4",children:[s.jsx(Ie,{to:"/contact",className:"inline-flex items-center gap-2 px-8 py-3.5 bg-pistachio text-dark-blue font-inter font-bold text-sm rounded-full hover:bg-pistachio/90 transition-colors",children:"Talk to our Team"}),s.jsx(ap,{variant:"button"})]})]})})]}):s.jsx("div",{className:"pt-40 pb-24 text-center text-mid-blue font-inter",children:"Article not found."}),s.jsx(Tt,{})]})}const wOe=[{icon:BL,tag:"Team",headline:"We partner with the profession, not just supply it.",body:"Working alongside clinicians, universities and industry, we build solutions, share knowledge and advance podiatry and O&P together",placeholderImage:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/85df21cea_DeanElishaLookingatScreen.png",iconImage:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/77329de05_team-white-navy.png",iconSvg:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/7d4540683_iOValues_Team02.svg",animateIcon:"team",video:"https://media.base44.com/videos/public/6a3e0189c262d2ccdbdde315/b3bd28468_20222i-OrthoticsTotaltransparencyV4_HD1080p.mp4"},{icon:kW,tag:"Care",headline:"Patient-first care is our priority, always.",body:"From the first scan to the device in your hand, a multidisciplinary clinical team supports your decisions and follows through on every commitment—so your patient gets the device they need, when they need it.",placeholderImage:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/f9010e083_FeetGlove.png",iconImage:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/dec4053ae_care-20.png",iconSvg:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/d94e8b9aa_iOValues_Care02.svg",animateIcon:"heart",video:"https://media.base44.com/videos/public/6a3e0189c262d2ccdbdde315/ceec616ae_20223Workingwithi-OrthoticsV4HD720p.mp4"},{icon:CW,tag:"Innovation",headline:"Research-driven innovation so your practice leads too.",body:"Research-driven design, advanced software and additive manufacturing mean your prescriptions benefit from the latest thinking in materials, engineering and orthotic performance.",placeholderImage:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/72fc90b7a_DSC04630.jpg",iconImage:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/0d91b9672_innovation-20.png",iconSvg:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/cacd21316_iOValues_Innovation02.svg",animateIcon:"innovation",imgFilter:"brightness(1.6) contrast(0.92) saturate(1.1)",video:"https://media.base44.com/videos/public/6a3e0189c262d2ccdbdde315/73df4a73b_20225i-OrthoticsInnovationV2_240p.mp4"},{icon:AW,tag:"Sustainability",headline:"Making sustainable choices today that shape tomorrow.",body:"Our materials and near-zero-waste 3D printing deliver lighter, stronger devices with a dramatically smaller environmental footprint—sustainability you can prescribe with confidence.",placeholderImage:"https://images.unsplash.com/photo-1542601906990-b4d3fb778b09?w=800&h=1000&fit=crop&crop=faces,center",iconImage:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/c8a9f6f21_sustainability-20.png",iconSvg:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/369015d72_iOValues_Sustainability02.svg",animateIcon:"sustainability",imgFilter:"brightness(1.15) contrast(0.95) saturate(1.
69605)",video:"https://media.base44.com/videos/public/6a3e0189c262d2ccdbdde315/75bba5faf_20224i-OrthoticsZeroWasteV3_HD1080p.mp4"}];function _Oe(){const[e,t]=P.useState(null);return s.jsxs("section",{className:"py-12 lg:py-16 relative",children:[s.jsxs("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10 relative z-10",children:[s.jsxs(_e,{className:"mb-14",children:[s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-4",children:"Our Values"}),s.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-end lg:justify-between gap-8",children:[s.jsx("h2",{className:"text-dark-blue font-cal leading-tight",style:{fontSize:"clamp(28px, 3.5vw, 48px)"},children:"The iOrthotics Way"}),s.jsxs("div",{className:"lg:max-w-2xl lg:text-right",children:[s.jsx("p",{className:"text-mid-blue text-xs font-inter font-semibold uppercase tracking-[0.25em] mb-3",children:"Our Mission"}),s.jsxs("p",{className:"text-dark-blue font-cal leading-[1.15]",style:{fontSize:"clamp(22px, 2.1vw, 34px)"},children:["We equip practitioners with ",s.jsx("span",{className:"text-gradient-shimmer-dark",children:"innovative, research-driven"})," orthotic solutions — combining clinical precision with responsible design to deliver better patient care."]})]})]})]}),s.jsx(Dn,{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-
6965 relative z-10",stagger:.15,children:wOe.map(n=>s.jsx(Ln,{children:s.jsxs("div",{className:"group bg-white rounded-2xl p-6 h-full flex flex-col border border-dark-blue/5 hover:border-dark-blue/10 hover:shadow-[0_18px_50px_-20px_rgba(18,32,72,0.25)] hover:-translate-y-1 transition-all duration-300",children:[s.jsxs("div",{className:`relative w-full aspect-[4/5] rounded-xl overflow-hidden mb-4 ${n.fit==="contain"?"bg-pale-blue":""}`,children:[s.jsx("img",{src:n.placeholderImage,alt:"",className:`w-full h-full ${n.fit==="contain"?"object-contain p-2":"object-cover"}`,style:n.imgFilter?{filter:n.imgFilter}:void 0}),n.fit!=="contain"&&s.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to bottom, transparent 0%, rgba(26,43,92,0.85) 100%)"}})]}),s.jsx("div",{className:"mb-2.5",children:s.jsx("div",{className:`w-[92px] h-[92px] rounded-2xl flex items-center justify-center ${n.iconSvg?"":"bg-pale-blue ring-1 ring-dark-blue/10"}`,children:n.iconSvg?s.jsx("img",{src:n.iconSvg,alt:n.tag,className:`w-full h-full object-contain p-3 ${n.animateIcon?n.animateIcon:""}`}):s.jsx(n.icon,{size:44,strokeWidth:1.75,className:"text-dark-blue"})})}),s.jsx("span",{className:"text-pistachio text-[11px] font-inter font-semibold uppercase tracking-[0.25em] mb-1.5 block",children:n.tag}),s.jsx("h3",{className:"text-dark-blue font-inter font-semibold text-lg leading-snug mb-3",children:n.headline}),s.jsx("p",{className:"text-dark-blue/50 font-inter text-sm leading-relaxed flex-grow",children:n.body}),n.video?s.jsxs("button",{type:"button",onClick:()=>t(n.video),className:"mt-6 relative w-full aspect-video rounded-xl overflow-hidden bg-dark-blue group/vid focus:outline-none focus:ring-2 focus:ring-pistachio","aria-label":`Play ${n.tag} video`,children:[s.jsx("video",{src:n.video,muted:!0,loop:!0,autoPlay:!0,playsInline:!0,className:"absolute inset-0 w-full h-full object-cover transition-transform duration-500 group-hover/vid:scale-105"}),s.jsx("div",{className:"absolute inset-0 bg-dark-blue/20 group-hover/vid:bg-dark-blue/10 transition-colors duration-300"}),s.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:s.jsx("span",{className:"w-12 h-12 rounded-full bg-white/95 flex items-center justify-center shadow-lg group-hover/vid:bg-pistachio group-hover/vid:scale-110 transition-all duration-300",children:s.jsx(aG,{size:18,className:"ml-0.5 text-dark-blue",fill:"currentColor"})})})]}):null]})},n.tag))})]}),s.jsx("div",{className:"w-full h-px bg-gradient-to-r from-transparent via-dark-blue/30 to-transparent mt-8 lg:mt-10","aria-hidden":"true"}),s.jsx(yr,{children:e&&s.jsxs(lt.div,{initial:{opacity:0}
696,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"fixed inset-0 z-[100] bg-dark-blue/90 backdrop-blur-sm flex items-center justify-center p-4 sm:p-8",onClick:()=>t(null),children:[s.jsx("button",{type:"button",onClick:()=>t(null),className:"absolute top-5 right-5 w-11 h-11 rounded-full bg-white/10 hover:bg-white/20 flex items-center justify-center text-white transition-colors","aria-label":"Close video",children:s.jsx(zi,{size:22})}),s.jsx(lt.div,{initial:{scale:.94,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.94,opacity:0},transition:{duration:.25,ease:[.22,1,.36,1]},className:"relative w-full max-w-5xl aspect-video rounded-2xl overflow-hidden shadow-2xl bg-black",onClick:n=>n.stopPropagation(),children:s.jsx("video",{src:e,autoPlay:!0,controls:!0,playsInline:!0,className:"w-full h-full object-contain bg-black"})})]})})]})}function SOe(){return s.jsxs("div",{className:"bg-white",children:[s.jsx(At,{}),s.jsxs("section",{className:"w-full min-h-screen flex flex-col lg:flex-row overflow-hidden",children:[s.jsx("div",{className:"relative flex-1 bg-dark-blue flex flex-col justify-center px-10 lg:px-16 xl:px-24 py-28 lg:py-0",children:s.jsxs(_e,{className:"relative z-10 flex flex-col text-center lg:text-left items-center lg:items-start",children:[s.jsxs("div",{className:"flex items-center gap-4 mb-8 justify-center lg:justify-start",children:[s.jsx("div",{className:"w-12 h-px bg-pistachio/60"}),s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em]",children:"About Us"}),s.jsx("div",{className:"w-12 h-px bg-pistachio/60"})]}),s.jsx("h1",{className:"text-white font-cal leading-tight mb-6",style:{fontSize:"clamp(30px, 4vw, 56px)"},children:"The iOrthotics Way."}),s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-4",children:"Our Vision"}),s.jsxs("p",{className:"text-white font-inter font-light max-w-xl",style:{fontSize:"clamp(22px, 1.9vw, 32px)"},children:["A world where every patient has access to orthotic care that is clinically precise, responsibly made and sustainably delivered — ",s.jsx("span",{className:"text-gradient-shimmer",children:"when it matters most."})]})]})}),s.jsx("div",{className:"relative flex-1 min-h-[50vh] lg:min-h-screen overflow-hidden bg-[#f8f8f8]",children:s.jsx("img",{src:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/70db3035a_DSC04812.jpg",alt:"iOrthotics team member preparing orthotic devices with care",className:"absolute inset-0 w-full h-full object-cover",style:{objectPosition:"center center",filter:"brightness(1.35) contrast(0.92) saturate(0.85)"}})})]}),s.jsx(_Oe,{}),s.jsx("section",{className:"bg-white pt-10 lg:pt-12 pb-2 lg:pb-3",children:s.jsx("div",{className:"max-w-4xl mx-auto px-6 lg:px-10",children:s.jsxs(_e,{children:[s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-8 text-center",children:"Our Culture"}),s.jsxs("div",{className:"space-y-8 text-dark-blue font-cal leading-[1.2] text-left max-w-3xl mx-auto",style:{fontSize:"clamp(22px, 2.4vw, 38px)"},children:[s.jsxs("p",{children:["At iOrthotics, we operate like a great team. Every great team has talented individuals — but what separates good from great is never individual brilliance alone. It's the ",s.jsx("span",{className:"text-gradient-shimmer-dark",children:"culture"}),". The way people show up for each other. The accountability. The shared belief that when the team wins, everyone wins."]}),s.jsx("p",{children:"At iOrthotics, that's exactly how we operate. Our values aren't just words on a wall — they're the behaviours we expect from every team member, every day. They're how we hold each other accountable, how we grow, and how we'll achieve something none of us could do alone."})]})]})})}),s.jsx(vv,{}),s.jsx("div",{className:"bg-dark-blue pt-16 lg:pt-24 pb-10 lg:pb-14 text-center",children:s.jsx("a",{href:Nn,target:"_blank",rel:"noopener noreferrer",className:"inline-flex px-10 py-4 bg-white/10 backdrop-blur-md text-white font-inter font-semibold text-lg rounded-xl border border-white/25 hover:bg-white/20 hover:border-white/40 transition-all duration-300 shadow-[0_8px_32px_-8px_rgba(164,209,126,0.3)]",children:"Partner with iOrthotics"})}),s.jsx(Tt,{})]})}const uN=4.6,jOe=.2,J6=uN-jOe,NOe=[10,50,100,250,500,1e3],eL=1,tL=5e3;function nL(e){if(e>=2e3){const t=e/2e3;return`${t%1===0?t.toFixed(0):t.toFixed(1)} t`}return`${Math.round(e)} lb`}function kOe(){const[e,t]=P.useState("100"),n=Math.max(eL,Math.min(tL,parseInt(e,10)||0)),r=P.useMemo(()=>n*uN,[n]),i=P.useMemo(()=>n*J6,[n]),o=Math.round(J6/uN*100);return s.jsx("div",{className:"relative max-w-screen-2xl mx-auto px-6 lg:px-10 pb-14 lg:pb-20",children:s.jsx(_e,{children:s.jsxs("div",{className:"relative overflow-hidden rounded-3xl bg-dark-blue border border-white/10 shadow-[0_24px_60px_-24px_rgba(18,32,72,0.45)]",children:[s.jsx("div",{className:"pointer-events-none absolute -top-24 -right-24 w-72 h-72 rounded-full bg-pistachio/15 blur-3xl"}),s.jsx("div",{className:"pointer-events-none absolute -bottom-24 -left-24 w-72 h-72 rounded-full bg-pistachio/10 blur-3xl"}),s.jsxs("div",{className:"relative p-8 lg:p-14",children:[s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-5 ga
696p-10 lg:gap-12 items-center mb-10",children:[s.jsxs("div",{className:"lg:col-span-3 max-w-2xl",children:[s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-5",children:"Plastic Waste Calculator"}),s.jsx("h2",{className:"text-white font-cal leading-tight mb-4",style:{fontSize:"clamp(30px, 3.4vw, 52px)"},children:"Your Impact"}),s.jsxs("p",{className:"text-white/70 font-inter font-light leading-relaxed",style:{fontSize:"clamp(18px, 1.6vw, 24px)"},children:["Your choices today as a ",s.jsx("span",{className:"text-gradient-shimmer",children:"practitioner"})," will help shape our ",s.jsx("span",{className:"text-gradient-shimmer",children:"tomorrow."})]})]}),s.jsx("div",{className:"lg:col-span-2 flex justify-center lg:justify-end",children:s.jsxs("div",{className:"relative rounded-2xl overflow-hidden border border-white/15 shadow-2xl w-full max-w-sm",style:{aspectRatio:"4/3"},children:[s.jsx("img",{src:lr.enviroFoamTealPair,alt:"iOrthotics EnviroFoam — near-zero-waste 3D-printed insoles",className:"w-full h-full object-cover"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-dark-blue/50 to-transparent"}),s.jsx("div",{className:"absolute bottom-3 left-3 flex items-center gap-2 bg-dark-blue/60 backdrop-blur-sm border border-white/20 px-3 py-1.5 rounded-full",children:s.jsx("img",{src:lr.enviroFoamLight,alt:"EnviroFoam",className:"h-5 object-contain"})})]})})]}),s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8 lg:gap-12 items-start",children:[s.jsxs("div",{className:"lg:col-span-1",children:[s.jsx("label",{htmlFor:"pairs",className:"block text-white/60 font-inter text-xs uppercase tracking-[0.2em] mb-3",children:"Enter number of pairs"}),s.jsx("div",{className:"flex items-center gap-3",children:s.jsx("input",{id:"pairs",type:"text",inputMode:"numeric",pattern:"[0-9]*",placeholder:"0",autoComplete:"off",value:e,onChange:a=>{const l=a.target.value.replace(/[^0-9]/g,"");t(l)},className:"w-full bg-white/15 border border-white/30 rounded-xl px-5 py-4 text-white text-3xl lg:text-5xl font-inter font-semibold tracking-tight caret-pistachio focus:outline-none focus:border-pistachio focus:ring-2 focus:ring-pistachio/50 transition-colors"})}),s.jsx("input",{type:"range",min:eL,max:tL,step:"1",value:n,onChange:a=>t(a.target.value),className:"w-full mt-4 accent-pistachio cursor-pointer","aria-label":"Adjust number of pairs"}),s.jsx("div",{className:"flex flex-wrap gap-2 mt-4",children:NOe.map(a=>s.jsx("button",{type:"button",onClick:()=>t(String(a)),className:`px-3 py-1.5 rounded-full text-xs font-inter font-medium transition-colors ${n===a?"bg-pistachio text-dark-blue":"bg-white/8 text-white/70 hover:bg-white/15 hover:text-white border border-white/15"}`,children:a},a))})]}),s.jsxs("div",{className:"lg:col-span-2 grid grid-cols-1 sm:grid-cols-2 gap-5",children:[s.jsx(rL,{icon:s.jsx(DL,{size:20}),label:"Total plastic used with traditional methods",value:nL(r),tone:"muted"}),s.jsx(rL,{icon:s.jsx(yG,{size:20}),label:"Total landfill saved using iOrthotics",value:nL(i),tone:"accent"})]})]}),s.jsxs("div",{className:"mt-10 pt-6 border-t border-white/10 flex flex-col sm:flex-row sm:items-center gap-3 sm:gap-6",children:[s.jsxs("div",{className:"flex items-center gap-2 text-pistachio font-inter text-sm font-medium",children:[s.jsx(kV,{size:16}),s.jsxs("span",{children:[o,"% reduction in plastic waste"]})]}),s.jsx("p",{className:"text-white/40 font-inter text-xs leading-relaxed",children:"Based on ~4.4 lb of polypropylene waste avoided per pair versus traditional subtractive manufacturing. Additive 3D-printing delivers near-zero-waste production."})]})]})]})})})}function rL({icon:e,label:t,value:n,tone:r="muted"}){const i=r==="accent";return s.jsxs("div",{className:`rounded-2xl p-6 border transition-colors ${i?"bg-pistachio/10 border-pistachio/30":"bg-white/5 border-white/15"}`,children:[s.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[s.jsx("div",{className:`w-10 h-10 rounded-lg flex items-center justify-center ${i?"bg-pistachio text-dark-blue":"bg-white/10 text-white/80"}`,children:e}),s.jsx("p",{className:`text-xs font-inter font-semibold uppercase tracking-[0.18em] ${i?"text-pistachio":"text-white/60"}`,children:t})]}),s.jsx("p",{className:`font-cal leading-none ${i?"text-white":"text-white/90"}`,style:{fontSize:"clamp(34px, 3.2vw, 52px)"},children:n})]})}const OOe="https://media.base44.com/videos/public/6a3e0189c262d2ccdbdde315/d531d76fb_20224i-OrthoticsZeroWasteV3_HD1080p.mp4",EOe="https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/e20e09238_CleanPrintRoom.png",POe="https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/f68beacc3_iOrthoticsRebrandLeaf2026_LeafIcononNavyShape.png",AOe=[{text:"~99% less waste vs milled polypropylene manufacturing."},{text:"~220 tons of landfill diverted from manufacture in 2025."}
696,{text:"~4.4 lb less waste per pair versus traditional orthotic methods."},{text:"100% digital workflow reduces paper across every order."}];function TOe(){const[e,t]=P.useState(!1);return P.useEffect(()=>(document.body.style.overflow=e?"hidden":"",()=>{document.body.style.overflow=""}),[e]),s.jsxs("section",{className:"bg-white overflow-hidden relative",children:[s.jsx("div",{className:"relative max-w-screen-2xl mx-auto px-10 py-12 lg:py-16",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 lg:gap-20 items-center",children:[s.jsx("div",{className:"relative lg:pr-12 order-2 lg:order-2",children:s.jsx("div",{className:"relative z-10 max-w-xl",children:s.jsxs(_e,{children:[s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-5",children:"Sustainability Impact"}),s.jsxs("h2",{className:"text-dark-blue font-cal leading-tight mb-6",style:{fontSize:"clamp(32px, 4vw, 60px)"},children:["We are choosing today",s.jsx("br",{}),"to shape tomorrow."]}),s.jsxs("p",{className:"text-dark-blue font-inter font-light leading-relaxed mb-8",style:{fontSize:"clamp(22px, 1.9vw, 32px)"},children:["From ",s.jsx("span",{className:"text-gradient-shimmer-dark",children:"near-zero-waste"})," 3D printing to fully digital workflows, every decision we make actively ",s.jsx("span",{className:"text-gradient-shimmer-dark",children:"reduces our environmental footprint"})," — without compromising clinical precision."]}),s.jsxs("button",{type:"button",onClick:()=>t(!0),className:"inline-flex items-center gap-2 text-pistachio font-inter font-semibold text-sm hover:gap-3 transition-all duration-200",children:["Explore our sustainability story ",s.jsx(ot,{size:16})]})]})})}),s.jsx(_e,{delay:.15,className:"flex items-center justify-center lg:justify-start lg:pt-0 order-1 lg:order-1",children:s.jsx("img",{src:EOe,alt:"Inside the iOrthotics 3D print bureau, rows of HP Multi Jet Fusion systems producing orthotic devices",className:"w-full max-w-md rounded-2xl shadow-2xl"})})]})}),s.jsx(yr,{children:e&&s.jsx(lt.div,{initial:{opacity:0}
696,animate:{opacity:1},exit:{opacity:0},transition:{duration:.25},className:"fixed inset-0 z-[100] bg-dark-blue/90 backdrop-blur-sm flex items-center justify-center p-4 lg:p-10",onClick:()=>t(!1),children:s.jsxs(lt.div,{initial:{scale:.95,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.95,opacity:0},transition:{duration:.25,ease:[.22,1,.36,1]},className:"relative w-full max-w-4xl aspect-video rounded-2xl overflow-hidden shadow-2xl bg-black",onClick:n=>n.stopPropagation(),children:[s.jsx("button",{type:"button",onClick:()=>t(!1),"aria-label":"Close video",className:"absolute -top-1 -right-1 lg:top-3 lg:right-3 z-10 w-10 h-10 rounded-full bg-white/90 text-dark-blue flex items-center justify-center hover:bg-white transition-colors",children:s.jsx(zi,{size:20,strokeWidth:2.5})}),s.jsx("video",{src:OOe,controls:!0,autoPlay:!0,className:"w-full h-full object-contain"})]})})}),s.jsx(kOe,{}),s.jsxs("div",{className:"relative max-w-screen-2xl mx-auto px-10 pb-6 lg:pb-10",children:[s.jsx(_e,{children:s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-6",children:"How we reduce our footprint"})}),s.jsx("div",{className:"border-t border-dashed border-dark-blue/15",children:AOe.map((n,r)=>s.jsxs("div",{className:"group flex items-center gap-5 lg:gap-8 border-b border-dashed border-dark-blue/15 py-5 lg:py-6",children:[s.jsx("div",{className:"w-10 h-10 lg:w-12 lg:h-12 flex-shrink-0 rounded-lg overflow-hidden",children:s.jsx("img",{src:POe,alt:"",className:"w-full h-full object-cover"})}),s.jsx("p",{className:"flex-1 text-dark-blue font-inter font-light leading-tight",style:{fontSize:"clamp(16px, 1.7vw, 24px)"},children:n.text})]},r))})]})]})}function D_({number:e,prefix:t="",suffix:n="",label:r,sublabel:i}){const{count:o,ref:a}=_k(e,2e3);return s.jsx(Ln,{children:s.jsxs("div",{ref:a,className:"group flex flex-col items-center text-center px-8 py-10 cursor-default relative pl-10",children:[s.jsx("div",{className:"absolute left-0 top-1/2 -translate-y-1/2 w-[3px] h-12 bg-pistachio rounded-full"}),s.jsxs("span",{className:"text-dark-blue font-cal leading-none mb-3 group-hover:text-mid-blue transition-colors duration-300 whitespace-nowrap",style:{fontSize:"clamp(28px, 3.4vw, 48px)"},children:[t,o.toLocaleString(),n]}),s.jsx("span",{className:"text-dark-blue font-inter text-sm font-semibold mb-1",children:r}),i&&s.jsx("span",{className:"text-mid-blue font-inter text-xs",children:i})]})})}function COe(){return s.jsx("section",{className:"bg-white border-y border-dark-blue/8",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsxs(Dn,{className:"grid grid-cols-1 sm:grid-cols-3 divide-y sm:divide-y-0 sm:divide-x divide-dark-blue/8",children:[s.jsx(D_,{number:1e6,suffix:"+",label:"Devices Printed",sublabel:"And counting"}),s.jsx(D_,{number:220,prefix:"~",suffix:" tons",label:"Landfill Diverted / Year",sublabel:"And growing"}),s.jsx(D_,{number:4,prefix:"~",suffix:" lb",label:"Waste Saved Per Pair",sublabel:"vs traditional methods"})]})})})}const ROe="https://www.podiatry.org.au/advocacy/resources/stepping-up-podiatry-2030-report";function MOe(){return s.jsx("section",{className:"bg-white py-14 lg:py-20",children:s.jsx("div",{className:"max-w-4xl mx-auto px-8 lg:px-10",children:s.jsx(_e,{children:s.jsxs("div",{className:"relative rounded-2xl bg-dark-blue px-8 lg:px-14 py-12 lg:py-16 overflow-hidden",children:[s.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-1 bg-pistachio"}),s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-6",children:"The patient of 2030"}),s.jsxs("blockquote",{className:"text-white font-inter font-light leading-snug mb-8",style:{fontSize:"clamp(22px, 2.4vw, 34px)"},children:["A growing awareness of ",s.jsx("span",{className:"text-gradient-shimmer",children:"sustainability issues"}),", particularly among younger generations, will see ",s.jsx("span",{className:"text-gradient-shimmer",children:"the patient of 2030 expect environmentally friendly care & sustainable practices."})]}),s.jsxs("a",{href:ROe,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-white/70 font-inter text-sm hover:text-pistachio transition-colors",children:[s.jsx("span",{children:"Source — Stepping Up: Podiatry 2030 Report, Australian Podiatry Association"}),s.jsx(lW,{size:14})]})]})})})})}const IOe="https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/6f62a6892_Dean.png";function DOe(){return s.jsxs("div",{className:"bg-white",children:[s.jsx(At,{}),s.jsxs("section",{className:"w-full min-h-screen flex flex-col lg:flex-row overflow-hidden",children:[s.jsxs("div",{className:"relative flex-1 bg-dark-blue flex flex-col justify-center px-10 lg:px-16 xl:px-24 py-28 lg:py-0",children:[s.jsx(ip,{variant:"dark",lines:120}),s.jsxs(_e,{className:"relative z-10 flex flex-col text-center lg:text-left items-center lg:items-start",children:[s.jsxs("div",{className:"flex items-center gap-4 mb-8 justify-center lg:justify-start",children:[s.jsx("div",{className:"w-12 h-px bg-pistachio/60"}),s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em]",children:"Our Impact"}),s.jsx("div",{className:"w-12 h-px bg-pistachio/60"})]}),s.jsxs("h1",{className:"text-white font-cal leading-tight mb-6",style:{fontSize:"clamp(30px, 4vw, 56px)"},children:["Choosing today",s.jsx("br",{}),"to shape tomorrow."]}),s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-4",children:"Our Mission"}),s.jsxs("p",{className:"text-white font-inter font-light max-w-xl",style:{fontSize:"clamp(22px, 1.9vw, 32px)"},children:["Sustainability isn't a byproduct of how we work — ",s.jsx("span",{className:"text-gradient-shimmer",children:"it's a core design principle"})," behind ",s.jsx("span",{className:"text-gradient-shimmer",children:"every device, process and decision."})]})]})]}),s.jsx("div",{className:"relative flex-1 min-h-[50vh] lg:min-h-screen overflow-hidden bg-white",children:s.jsx("img",{src:IOe,alt:"Inside the iOrthotics 3D print bureau, rows of HP Multi Jet Fusion systems producing sustainable orthotic devices",className:"absolute inset-0 w-full h-full object-cover",style:{objectPosition:"center center"}})})]}),s.jsx(TOe,{}),s.jsx(COe,{}),s.jsx(MOe,{}),s.jsx("div",{className:"bg-dark-blue pt-16 lg:pt-24 pb-10 lg:pb-14 text-center",children:s.jsx("a",{href:Nn,target:"_blank",rel:"noopener noreferrer",className:"inline-flex px-10 py-4 bg-white/10 backdrop-blur-md text-white font-inter font-semibold text-lg rounded-full border border-white/25 hover:bg-white/20 hover:border-white/40 transition-all duration-300 shadow-[0_8px_32px_-8px_rgba(164,209,126,0.3)]",children:"Partner with Us"})}),s.jsx(Tt,{})]})}const LOe="https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/d7df28f67_generated_image.png",BOe=["No double-handling — scans upload instantly to the iOrder platform","Sign in to your clinic account directly from the app","Search existing patients or create a new one in seconds","Patient details auto-populate into the prescription","Works with laser scanners, iPhone & iPad Pro"];function $Oe(){return s.jsx("section",{className:"bg-white py-20 lg:py-28",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsx(_e,{children:s.jsxs("div",{className:"rounded-3xl overflow-hidden border border-dark-blue/10 bg-pale-blue/40 grid grid-cols-1 lg:grid-cols-2 gap-0",children:[s.jsx("div",{className:"relative min-h-[300px] lg:min-h-[480px] overflow-hidden order-1",children:s.jsx("img",{src:LOe,alt:"The iOrthotics scanning application in use on an iPad",className:"absolute inset-0 w-full h-full object-cover"})}),s.jsxs("div",{className:"p-10 lg:p-14 flex flex-col justify-center order-2",children:[s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-4",children:"Scanning Application"}),s.jsx("h3",{className:"text-dark-blue font-cal leading-tight mb-5",style:{fontSize:"clamp(22px, 2.4vw, 34px)"},children:"Scan, prescribe and upload — entirely in-app."}),s.jsxs("p",{className:"text-dark-blue font-inter font-light text-base leading-relaxed mb-8",children:["The ",s.jsx("span",{className:"tech-glimmer-dark",children:"purpose-built"})," iOrthotics ",s.jsx("span",{className:"tech-glimmer-dark",children:"scanning application"})," integrates seamlessly with our 3D laser scanner, iPhones and iPads to upload scans and patient details ",s.jsx("span",{className:"tech-glimmer-dark",children:"instantly"})," to your ",s.jsx("span",{className:"tech-glimmer-dark",children:"personal iOrthotics dashboard"})," — eliminating manual back-ups and paper prescriptions."]}),s.jsx("ul",{className:"space-y-3",children:BOe.map(e=>s.jsxs("li",{className:"flex items-start gap-3 text-dark-blue/75 font-inter text-sm",children:[s.jsx(oa,{size:16,className:"text-pistachio flex-shrink-0 mt-0.5"}),e]},e))})]})]})})})})}const FOe=(()=>{const e=[{latMin:25,latMax:72,lngMin:-168,lngMax:-52,density:.5},{latMin:7,latMax:25,lngMin:-92,lngMax:-77,density:.55},{latMin:-55,latMax:12,lngMin:-82,lngMax:-34,density:.55},{latMin:36,latMax:71,lngMin:-10,lngMax:40,density:.6},{latMin:-35,latMax:37,lngMin:-18,lngMax:52,density:.55},{latMin:10,latMax:78,lngMin:26,lngMax:100,density:.5},{latMin:10,latMax:78,lngMin:100,lngMax:145,density:.55},{latMin:-10,latMax:20,lngMin:95,lngMax:141,density:.4},{latMin:-43,latMax:-10,lngMin:114,lngMax:154,density:.68},{latMin:-47,latMax:-34,lngMin:166,lngMax:178,density:.7},{latMin:60,latMax:83,lngMin:-58,lngMax:-18,density:.5},{latMin:31,latMax:45,lngMin:130,lngMax:146,density:.6},{latMin:50,latMax:61,lngMin:-8,lngMax:2,density:.72},{latMin:55,latMax:71,lngMin:4,lngMax:30,density:.55}],t=(()=>{let r=42;return()=>(r=r*1664525+1013904223&4294967295,(r>>>0)/4294967295)})(),n=[];for(const r of e){const i=Math.ceil((r.latMax-r.latMin)/1.4),o=Math.ceil((r.lngMax-r.lngMin)/1.4);for(let a=0;a<=i;a++)for(let l=0;l<=o;l++){if(t()>r.density)continue;const c=r.latMin+a/i*(r.latMax-r.latMin)+(t()-.5)*1.3,d=r.lngMin+l/o*(r.lngMax-r.lngMin)+(t()-.5)*1.3;n.push([c,d])}}return n})(),Of=[{name:"Brisbane",lat:-27.47,lng:153.02},{name:"Adelaide",lat:-34.93,lng:138.6},{name:"Sydney",lat:-33.87,lng:151.21},{name:"New York",lat:40.71,lng:-74.01},{name:"London",lat:51.51,lng:-.13}],qOe=[[0,3],[0,2],[0,1],[0,4],[3,4],[3,2],[3,1]],zOe=[18,32,72],iL=[90,125,158],oL=[164,209,126],L_=(e,t,n)=>e+(t-e)*n,rg=(e,t,n)=>[L_(e[0],t[0],n),L_(e[1],t[1],n),L_(e[2],t[2],n)];function UOe(e,t,n=1){const r=(90-e)*(Math.PI/180),i=(t+180)*(Math.PI/180);return{x:-n*Math.sin(r)*Math.cos(i),y:n*Math.cos(r),z:n*Math.sin(r)*Math.sin(i)}}function HOe(e,t){const n=Math.cos(t),r=Math.sin(t);return{x:e.x*n+e.z*r,y:e.y,z:-e.x*r+e.z*n}}function VOe(e,t,n,r,i=60){const o=m=>m*Math.PI/180,a=o(e),l=o(t),c=o(n),d=o(r),p=2*Math.asin(Math.sqrt(Math.sin((c-a)/2)**2+Math.cos(a)*Math.cos(c)*Math.sin((d-l)/2)**2)),f=[];for(let m=0;m<=i;m++){const g=m/i,b=Math.sin((1-g)*p)/Math.sin(p),y=Math.sin(g*p)/Math.sin(p),v=b*Math.cos(a)*Math.cos(l)+y*Math.cos(c)*Math.cos(d),x=b*Math.cos(a)*Math.sin(l)+y*Math.cos(c)*Math.sin(d),_=b*Math.sin(a)+y*Math.sin(c),j=Math.atan2(_,Math.sqrt(v*v+x*x))*180/Math.PI,S=Math.atan2(x,v)*180/Math.PI;f.push([j,S])}return f}const aL=qOe.map(([e,t])=>VOe(Of[e].lat,Of[e].lng,Of[t].lat,Of[t].lng)),B_=(()=>{const e={x:.35,y:.45,z:.82},t=Math.hypot(e.x,e.y,e.z);return{x:e.x/t,y:e.y/t,z:e.z/t}})();function pU({variant:e="light",labels:t=!1}){const n=P.useRef(null),r=vo();return P.useEffect(()=>{const i=n.current;if(!i)return;const o=i.getContext("2d"),a=e==="dark";let l,c=r?.5:0,d=0,p=!0;const f=_=>a?_<.6?rg([70,100,140],[150,180,205],_/.6):rg([150,180,205],oL,(_-.6)/.4):_<.6?rg(zOe,iL,_/.6):rg(iL,oL,(_-.6)/.4),m=()=>{const _=Math.min(window.devicePixelRatio||1,2);i.width=i.offsetWidth*_,i.height=i.offsetHeight*_,o.setTransform(_,0,0,_,0,0)},g=(_,j,S,N,O)=>{const E=HOe(UOe(_,j,1),c);return{...E,sx:N+E.x*S,sy:O-E.y*S}},b=()=>{const _=i.offsetWidth,j=i.offsetHeight;o.clearRect(0,0,_,j);const S=Math.min(_,j)*.4,N=_*.5,O=j*.5;for(const[I,M]of FOe){const C=g(I,M,S,N,O);if(C.z<0)continue;const R=(C.z+1)/2,B=Math.max(0,C.x*B_.x+C.y*B_.y+C.z*B_.z),[$,z,H]=f(Math.min(1,.12+.95*B)),V=(a?.22:.18)+R*.62,Y=.6+R*.95;
696o.beginPath(),o.arc(C.sx,C.sy,Y,0,Math.PI*2),o.fillStyle=`rgba(${$|0},${z|0},${H|0},${V})`,o.fill()}const E=d%1;aL.forEach((I,M)=>{const C=(E+M/aL.length)%1,R=Math.floor(C*I.length);o.beginPath();let B=!0;for(let $=0;$<R;$++){const[z,H]=I[$],V=g(z,H,S*1.02,N,O);if(V.z<-.1){B=!0;continue}B?o.moveTo(V.sx,V.sy):o.lineTo(V.sx,V.sy),B=!1}if(o.strokeStyle=a?"rgba(164,209,126,0.75)":"rgba(90,125,158,0.7)",o.lineWidth=1.5,o.stroke(),R>0&&R<I.length){const[$,z]=I[R-1],H=g($,z,S*1.02,N,O);H.z>=0&&(o.beginPath(),o.arc(H.sx,H.sy,2.6,0,Math.PI*2),o.fillStyle="rgba(164,209,126,1)",o.fill())}}),Of.forEach(I=>{const M=g(I.lat,I.lng,S,N,O);if(M.z<0)return;const C=(M.z+1)/2;o.beginPath(),o.arc(M.sx,M.sy,5.5,0,Math.PI*2),o.strokeStyle=`rgba(90,125,158,${.5*C})`,o.lineWidth=1,o.stroke(),o.beginPath(),o.arc(M.sx,M.sy,2.6,0,Math.PI*2),o.fillStyle=`rgba(164,209,126,${.95*C})`,o.fill(),t&&(o.font="500 11px Inter, sans-serif",o.fillStyle=a?`rgba(255,255,255,${.85*C})`:`rgba(18,32,72,${.85*C})`,o.fillText(I.name,M.sx+9,M.sy+3.5))});const A=o.createRadialGradient(N,O,S*.92,N,O,S*1.18);A.addColorStop(0,"rgba(90,125,158,0)"),A.addColorStop(.6,a?"rgba(164,209,126,0.06)":"rgba(90,125,158,0.07)"),A.addColorStop(1,"rgba(90,125,158,0)"),o.beginPath(),o.arc(N,O,S*1.18,0,Math.PI*2),o.fillStyle=A,o.fill()},y=()=>{c+=.0035,d+=.003,p&&b(),l=requestAnimationFrame(y)};m(),r?b():l=requestAnimationFrame(y);const v=new ResizeObserver(()=>{m(),r&&b()});v.observe(i);const x=new IntersectionObserver(([_])=>{p=_.isIntersecting},{threshold:0});return x.observe(i),()=>{cancelAnimationFrame(l),v.disconnect(),x.disconnect()}},[e,t,r]),s.jsx("canvas",{ref:n,className:"absolute inset-0 w-full h-full",style:{pointerEvents:"none"},"aria-hidden":"true"})}const WOe=[{c:[18,32,72],w:4},{c:[90,125,158],w:5},{c:[164,209,126],w:1.6}],GOe=[{c:[150,180,205],w:4},{c:[90,125,158],w:4},{c:[164,209,126],w:2}];function KOe(e,t){const n=e.reduce((i,o)=>i+o.w,0);let r=t*n;for(const i of e)if((r-=i.w)<=0)return i.c;return e[0].c}function YOe({variant:e="light",density:t=1,links:n=!0}){const r=P.useRef(null),i=vo();return P.useEffect(()=>{const o=r.current;if(!o)return;const a=o.getContext("2d"),l=e==="dark",c=l?GOe:WOe,d=l?"164,209,126":"90,125,158";let p,f=[],m=!0;const g=()=>{const j=Math.min(window.devicePixelRatio||1,2);o.width=o.offsetWidth*j,o.height=o.offsetHeight*j,a.setTransform(j,0,0,j,0,0)},b=()=>{const j=o.offsetWidth,S=o.offsetHeight,N=Math.round(Math.min(70,Math.max(24,j*S/14e3))*t);f=[];for(let O=0;O<N;O++){const E=Math.random()<.18;f.push({x:Math.random()*j,y:Math.random()*S,r:E?6+Math.random()*8:1.1+Math.random()*2.2,big:E,c:KOe(c,Math.random()),vx:(Math.random()-.5)*.28,vy:(Math.random()-.5)*.22,bobA:4+Math.random()*8,bobS:.4+Math.random()*.7,phase:Math.random()*Math.PI*2,alpha:E?.1+Math.random()*.12:.18+Math.random()*.34})}},y=j=>{const S=o.offsetWidth,N=o.offsetHeight;if(a.clearRect(0,0,S,N),n){for(let O=0;O<f.length;O++)if(!f[O].big)for(let E=O+1;E<f.length;E++){if(f[E].big)continue;const A=f[O].x-f[E].x,I=f[O].y-f[E].y,M=Math.hypot(A,I);M<115&&(a.beginPath(),a.moveTo(f[O].x,f[O].y),a.lineTo(f[E].x,f[E].y),a.strokeStyle=`rgba(${d},${.07*(1-M/115)})`,a.lineWidth=.7,a.stroke())}}for(const O of f){const E=O.y+Math.sin(j*O.bobS+O.phase)*O.bobA,[A,I,M]=O.c;if(O.big){const C=a.createRadialGradient(O.x,E,0,O.x,E,O.r);C.addColorStop(0,`rgba(${A},${I},${M},${O.alpha})`),C.addColorStop(1,`rgba(${A},${I},${M},0)`),a.fillStyle=C,a.beginPath(),a.arc(O.x,E,O.r,0,Math.PI*2),a.fill()}else a.beginPath(),a.arc(O.x,E,O.r,0,Math.PI*2),a.fillStyle=`rgba(${A},${I},${M},${O.alpha})`,a.fill()}},v=j=>{const S=o.offsetWidth,N=o.offsetHeight,O=j/1e3;for(const E of f)E.x+=E.vx,E.y+=E.vy,E.x<-20?E.x=S+20:E.x>S+20&&(E.x=-20),E.y<-20?E.y=N+20:E.y>N+20&&(E.y=-20);m&&y(O),p=requestAnimationFrame(v)};g(),b(),i?y(0):p=requestAnimationFrame(v);const x=new ResizeObserver(()=>{g(),b(),i&&y(0)});x.observe(o);const _=new IntersectionObserver(([j])=>{m=j.isIntersecting},{threshold:0});return _.observe(o),()=>{cancelAnimationFrame(p),x.disconnect(),_.disconnect()}},[e,t,n,i]),s.jsx("canvas",{ref:r,className:"absolute inset-0 w-full h-full",style:{pointerEvents:"none"},"aria-hidden":"true"})}function XOe(){return s.jsxs("div",{className:"bg-white",children:[s.jsx(At,{}),s.jsxs("section",{className:"w-full min-h-[90vh] flex flex-col lg:flex-row overflow-hidden",children:[s.jsx("div",{className:"relative lg:w-[38%] bg-dark-blue flex flex-col justify-center px-10 lg:px-14 py-32 lg:py-0",children:s.jsxs(_e,{delay:.1,className:"text-center lg:text-left",children:[s.jsx("p",{className:"text-pistachio text-sm font-inter font-semibold uppercase tracking-[0.3em] mb-4",children:"Our Technology"}),s.jsx("h1",{className:"text-white font-cal leading-tight mb-6",style:{fontSize:"clamp(36px, 4.5vw, 64px)"},children:"One of the world's most advanced orthotic manufacturing fleets."}),s.jsxs("p",{className:"text-white font-inter font-light max-w-md leading-snug",style:{fontSize:"clamp(22px, 1.9vw, 32px)"},children:["From proprietary ",s.jsx("span",{className:"text-gradient-shimmer",children:"scanning"})," software to the world's most advanced orthotic ",s.jsx("span",{className:"text-gradient-shimmer",children:"manufacturing fleet"})," — our technology is purpose-built for ",s.jsx("span",{className:"text-gradient-shimmer",children:"clinical precision"}),"."]})]})}),s.jsx(_e,{delay:.3,className:"relative lg:w-[62%] min-h-[50vh] lg:min-h-[90vh] overflow-hidden bg-[#f5f7f9]",children:s.jsx("img",{src:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/6c9eede97_OurTechnologyhero.png",alt:"A clinician using the iOrthotics iOrder dashboard on a laptop",className:"absolute inset-0 w-full h-full object-cover",style:{objectPosition:"center center",filter:"brightness(0.82) contrast(1.08) saturate(0.95)"}})})]}),s.jsx(Sk,{}),s.jsx("section",{className:"bg-white pt-6 lg:pt-10 pb-12 lg:pb-16",children:s.jsxs("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:[s.jsxs(_e,{className:"mb-6 lg:mb-8 text-center",children:[s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-4",children:"Manufacturing Technology"}),s.jsx("h2",{className:"text-dark-blue font-cal leading-tight",style:{fontSize:"clamp(26px, 3vw, 44px)"},children:"Australia's largest HP MultiJet Fusion fleet."})]}),s.jsx(_e,{children:s.jsx("div",{className:"rounded-3xl overflow-hidden border border-dark-blue/10 bg-pale-blue/40",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-0",children:[s.jsxs("div",{className:"relative min-h-[300px] lg:min-h-[520px] overflow-hidden order-1 lg:order-1",children:[s.jsx("img",{src:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/7d163a043_Dean.png",alt:"An iOrthotics technician operating an HP Multi Jet Fusion 3D printer",className:"absolute inset-0 w-full h-full object-cover"}),s.jsx("div",{className:"absolute top-6 left-6 bg-white rounded-xl p-2 shadow-lg",children:s.jsx("img",{src:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/1200fd024_image.png",alt:"HP",className:"w-10 h-10 object-contain"})})]}),s.jsxs("div",{className:"p-10 lg:p-14 flex flex-col justify-center order-2 lg:order-2 text-center lg:text-left",children:[s.jsx("h3",{className:"text-dark-blue font-cal leading-tight mb-5",style:{fontSize:"clamp(22px, 2.4vw, 34px)"},children:"HP MultiJet Fusion"}),s.jsxs("p",{className:"text-dark-blue font-inter font-light text-base leading-relaxed mb-8 text-left",children:["Our facility houses Australia's largest HP MultiJet Fusion fleet — purpose-built for clinical-grade orthotic manufacturing at scale. Sub-millimetre ",s.jsx("span",{className:"tech-glimmer-dark",children:"precision"}),", batch after batch, with ",s.jsx("span",{className:"tech-glimmer-dark",children:"near-zero-waste"})," additive production replacing messy subtractive milling."]}),s.jsx("p",{className:"text-dark-blue/50 text-xs font-inter font-semibold uppercase tracking-[0.2em] mb-3",children:"Technology Overview"}),s.jsx("div",{className:"rounded-2xl overflow-hidden border border-dark-blue/10 shadow-lg bg-white mb-8",children:s.jsx("div",{className:"relative w-full",style:{aspectRatio:"16/9"},children:s.jsx("iframe",{className:"absolute inset-0 w-full h-full",src:"https://www.youtube.com/embed/QXzZOqI1E-8?feature=oembed",title:"HP Multi Jet Fusion Technology For iOrthotics | HP 3D Printing | HP",referrerPolicy:"str
696ict-origin-when-cross-origin",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0})})}),s.jsx("p",{className:"text-dark-blue/50 text-xs font-inter font-semibold uppercase tracking-[0.2em] mb-3",children:"Business Impact"}),s.jsx("div",{className:"rounded-2xl overflow-hidden border border-dark-blue/10 shadow-lg bg-white mb-8",children:s.jsx("div",{className:"relative w-full",style:{aspectRatio:"16/9"},children:s.jsx("iframe",{className:"absolute inset-0 w-full h-full",src:"https://www.youtube.com/embed/BQVMKgx6l48?feature=oembed",title:"HP Jet Fusion 3D Solution Services Helps iOrthotics Grow Their Business | 3D Printing | HP",referrerPolicy:"strict-origin-when-cross-origin",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0})})}),s.jsx("a",{href:"https://media.base44.com/files/public/6a3e0189c262d2ccdbdde315/f095d9661_HPCaseStudy.pdf",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-dark-blue font-inter font-semibold text-sm hover:text-pistachio transition-colors",children:"Download the HP case study (PDF) →"})]})]})})})]})}),s.jsx("section",{className:"relative overflow-hidden bg-dark-blue py-20 lg:py-28",children:s.jsx("div",{className:"relative z-10 max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-center",children:[s.jsxs(_e,{className:"relative mb-16 lg:mb-0 text-center lg:text-left",children:[s.jsx("div",{className:"pointer-events-none absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-52 h-52 lg:w-[26rem] lg:h-[26rem]",style:{opacity:.55},"aria-hidden":"true",children:s.jsx(pU,{variant:"dark"})}),s.jsxs("h2",{className:"relative z-10 text-white font-cal leading-tight mb-6",style:{fontSize:"clamp(26px, 3vw, 44px)"},children:["Inside one of the ",s.jsx("span",{className:"text-gradient-shimmer",children:"world's most advanced"})," orthotic print rooms"]})]}),s.jsx(_e,{delay:.2,children:s.jsx("div",{className:"rounded-2xl overflow-hidden shadow-2xl border border-white/10",children:s.jsx("video",{src:"https://media.base44.com/videos/public/6a3e0189c262d2ccdbdde315/7f788b016_NewPrintRoomVideo.mp4",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,className:"w-full"})})})]})})}),s.jsx($Oe,{}),s.jsxs("div",{className:"relative overflow-hidden bg-mid-blue border-t border-white/10 py-20 lg:py-28 text-center",children:[s.jsx(YOe,{variant:"dark"}),s.jsx("div",{className:"relative z-10",children:s.jsx("a",{href:Nn,target:"_blank",rel:"noopener noreferrer",className:"inline-flex px-10 py-4 bg-white/15 backdrop-blur-md border border-white/40 text-white font-inter font-bold text-lg rounded-xl hover:bg-white/25 hover:border-white/60 transition-colors",children:"Partner with iOrthotics"})})]}),s.jsx(Tt,{})]})}const QOe=[{quote:"We have already made several thousand pairs through iOrthotics' Brisbane hub, so we know the amazing quality and substantial savings 3D printing delivers to our lab.",name:"Séamus Kennedy, BEng (Mech), CPed, FAAOP(A)",title:"Hersco Ortho Labs",img:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/85be47900_SeamusHighQuality.jpeg"},{quote:"The quick turnaround time and the ability to reproduce the same device make it seamless for me and my patients.",name:"Dr Michael J. Chin, DPM, FACFAS",title:"Podiatric Physician & Surgeon · The Running Institute, Chicago",img:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/8abaece22_Dr-Chin-Landscape.webp"},{quote:"iOrthotics delivers the consistency and quality my patients deserve, every single time.",name:"Dr Robert M. Conenello, DPM",title:"Podiatric Sports Medicine · Orangetown Podiatry, NY · Past President AAPSM",img:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/760e374bb_DrRobertConenello.webp"},{quote:"The development and evolution of 3D-printed orthotics has allowed me to expand my treatment options for patients whose footwear requirements may not be suitable for traditional EVA orthotics. This has given me the confidence to manage the full spectrum of musculoskeletal conditions without being limited by footwear constraints, ensuring more patients have access to effective, customised orthotic therapy.",name:"Andrew Pratt | B.Hlth.Sc (Pod)",title:"Podiatrist · Clinic Partner · Regional Partner",img:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/718d8a6eb_AndrewPratt.jpeg",cssFilter:"brightness(1.06) contrast(1.02) saturate(0.95)"}];function ZOe(){const e=vo();return s.jsxs("section",{className:"relative overflow-hidden bg-white pt-4 lg:pt-6 pb-12 lg:pb-16",children:[s.jsx(av,{variant:"light"}),s.jsxs("div",{className:"relative z-10 max-w-screen-2xl mx-auto px-6 lg:px-10",children:[s.jsx("p",{className:"text-dark-blue text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-14 text-center",children:"Clinical Endorsements"}),s.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 lg:gap-8 max-w-6xl mx-auto",children:QOe.map((t,n)=>s.jsxs(lt.div,{initial:{opacity:0,y:40,filter:"blur(4px)"},whileInView:{opacity:1,y:0,filter:"blur(0px)"},viewport:{once:!0,margin:"-60px"},transition:{duration:.7,delay:n*.18,ease:[.16,1,.3,1]},className:`group relative rounded-2xl border overflow-hidden flex flex-col sm:flex-row bg-pale-blue/80 backdrop-blur-sm border-dark-blue/6 transition-shadow duration-500 hover:shadow-2xl ${e?"":"testimonial-float"}`,style:{animationDelay:`${n*1.2}s`},children:[s.jsx("div",{className:"relative w-full sm:w-44 lg:w-52 flex-shrink-0 flex items-center justify-center p-6 bg-dark-blue/5",children:s.jsx("div",{className:"relative w-32 h-32 lg:w-36 lg:h-36 rounded-full overflow-hidden ring-4 ring-white/90 shadow-md",children:s.jsx("img",{src:t.img,alt:t.name,loading:"lazy",className:"w-full h-full object-cover object-top group-hover:scale-105 transition-transform duration-700",style:t.cssFilter?{filter:t.cssFilter}:void 0})})}),s.jsxs("div",{className:"flex flex-col justify-between p-6 lg:p-7 flex-grow",children:[s.jsxs("div",{children:[s.jsx(pN,{size:26,className:"text-pistachio mb-4 opacity-80"}),s.jsxs("p",{className:"text-gradient-shimmer-dark font-inter font-light text-base lg:text-lg leading-snug mb-5",children:['"',t.quote,'"']})]}),s.jsxs("div",{children:[s.jsx("div",{className:"w-8 h-[2px] bg-pistachio mb-4 rounded-full"}),s.jsx("p",{className:"text-dark-blue font-inter font-bold text-sm tracking-wide",children:t.name}),s.jsx("p",{className:"text-dark-blue/40 font-inter text-xs mt-0.5",children:t.title})]})]}),s.jsx("div",{className:"absolute inset-0 rounded-2xl border border-pistachio/0 group-hover:border-pistachio/30 transition-colors duration-500 pointer-events-none"})]},t.name))})]})]})}const sL=[{title:"Podiatrists & Orthotists",desc:"Clinicians pairing biomechanics expertise with advanced manufacturing to deliver custom orthoses, bracing, and AFOs — and to support your prescribing decisions.",icon:MG,image:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/d7df28f67_generated_image.png"},{title:"Industrial Designers",desc:"Turning clinical concepts into manufacturable devices — from 3D modeling and prototyping through to products that improve fit, function, and patient outcomes.",icon:aW,image:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/cb6814f97_DeanDesigningLandscape.jpg"},{title:"Biomedical Engineers",desc:"Bridging healthcare and technology to develop smart orthotic devices, digital workflows, and validated products that improve patient outcomes.",icon:PL,image:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/773b4de14_Biomechanical.jpg"},{title:"Web Developers",desc:"Building and evolving the iOrder platform, ERP, and clinician tools — turning real-world feedback into faster, smoother workflows.",icon:JV,image:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/e544bafe3_iOrthoticsphoto.png"}
696,{title:"Orthotic Artisans",desc:"Skilled hands and meticulous finishing that turn every printed design into a refined, clinically effective device practitioners and patients can trust.",icon:_W,image:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/0c4bfaabc_A7404404.jpg"}];function JOe(){return s.jsxs("div",{className:"bg-white",children:[s.jsx(At,{}),s.jsxs("section",{className:"w-full min-h-[60vh] lg:min-h-[88vh] flex flex-col lg:flex-row overflow-hidden",children:[s.jsxs("div",{className:"relative flex-1 bg-dark-blue flex flex-col justify-center px-8 lg:px-16 xl:px-24 pt-32 pb-20 lg:py-0",children:[s.jsx(ip,{variant:"dark"}),s.jsxs(_e,{delay:.1,className:"relative z-10 text-center lg:text-left",children:[s.jsx("p",{className:"text-pistachio text-sm font-inter font-semibold uppercase tracking-[0.3em] mb-4",children:"Our Clinical Team"}),s.jsxs("h1",{className:"text-white font-cal leading-tight mb-6",style:{fontSize:"clamp(36px, 4.5vw, 64px)"},children:["By Clinicians.",s.jsx("br",{}),"For Clinicians."]}),s.jsxs("p",{className:"text-white font-inter max-w-md leading-snug",style:{fontSize:"clamp(22px, 1.9vw, 32px)"},children:["Our ",s.jsx("span",{className:"text-gradient-shimmer",children:"multidisciplinary team"})," doesn't just manufacture — they ",s.jsx("span",{className:"text-gradient-shimmer",children:"partner with you"})," at every step of the clinical workflow."]})]})]}),s.jsx("div",{className:"relative overflow-hidden bg-pale-blue lg:flex-1 lg:min-h-[88vh]",children:s.jsx("img",{src:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/4e322af45_OurClinicalTeam.png",alt:"The iOrthotics clinical team standing in the print room",className:"w-full h-auto object-top lg:absolute lg:inset-0 lg:w-full lg:h-full lg:object-cover lg:object-center"})})]}),s.jsx("section",{className:"bg-white py-20 lg:py-28",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 items-center",children:[s.jsx(_e,{delay:.2,children:s.jsx("div",{className:"rounded-3xl overflow-hidden shadow-2xl",children:s.jsx("video",{src:"https://media.base44.com/videos/public/6a3e0189c262d2ccdbdde315/bf2c2f133_DeanDesigning.mp4",poster:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/9df262ce9_DeanDesigning.png",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,className:"w-full object-cover"})})}),s.jsxs(_e,{className:"text-center lg:text-left",children:[s.jsx("h2",{className:"text-dark-blue font-cal leading-tight mb-6",style:{fontSize:"clamp(26px, 3vw, 44px)"},children:"A Clinical Team Beside You at Every Step."}),s.jsxs("p",{className:"text-dark-blue/70 font-inter font-light text-lg leading-relaxed mb-6 text-left",children:["From the ",s.jsx("span",{className:"tech-glimmer-dark",children:"first scan to the finished device"}),", iOrthotics practitioners are available to support your prescriptions, clarify design decisions, and ",s.jsx("span",{className:"tech-glimmer-dark",children:"ensure every patient receives the precise device they need."})]}),s.jsx("p",{className:"text-dark-blue/70 font-inter font-light text-base leading-relaxed text-left",children:"In partnership with the University of Queensland's CADPM research group, we actively contribute to advancing podiatric biomechanics and 3D-printed orthotic research — bringing the latest clinical evidence directly to your practice."})]})]})})}),s.jsx("section",{className:"bg-white pb-20 lg:pb-28",children:s.jsxs("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:[s.jsx(_e,{className:"mb-12 text-center",children:s.jsx("h2",{className:"text-dark-blue font-cal leading-tight",style:{fontSize:"clamp(26px, 3vw, 44px)"},children:"Meet Our Clinical Team"})}),s.jsx(Fk,{compact:!0})]})}),s.jsx(ZOe,{}),s.jsx("section",{className:"bg-pale-blue py-20 lg:py-28",children:s.jsxs("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:[s.jsx(_e,{className:"text-center mb-16",children:s.jsx("h2",{className:"text-dark-blue font-cal leading-tight",style:{fontSize:"clamp(26px, 3vw, 44px)"},children:"Our Multidisciplinary Team"})}),s.jsx(Dn,{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 ga
696p-6",children:sL.map((e,t)=>{const n=t===sL.length-1;return s.jsx(Ln,{className:n?"md:col-span-2 lg:col-span-1":"",children:s.jsxs("div",{className:`bg-white rounded-2xl overflow-hidden h-full flex flex-col ${n?"md:max-w-[calc(50%-12px)] md:mx-auto lg:max-w-none lg:mx-0":""}`,children:[e.image?s.jsxs("div",{className:"relative w-full overflow-hidden",style:{aspectRatio:"16/9"},children:[s.jsx("img",{src:e.image,alt:e.title,className:"absolute inset-0 w-full h-full object-cover"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-dark-blue/30 via-transparent to-transparent"})]}):s.jsx("div",{className:"px-8 pt-8",children:s.jsx("div",{className:"w-12 h-12 rounded-xl bg-dark-blue flex items-center justify-center",children:s.jsx(e.icon,{size:22,className:"text-pistachio"})})}),s.jsxs("div",{className:"p-8 pt-6 flex-grow",children:[s.jsx("h3",{className:"text-dark-blue font-inter font-bold text-xl mb-4 min-h-[2.75rem] flex items-start",children:e.title}),s.jsx("p",{className:"text-dark-blue/60 font-inter text-base leading-relaxed",children:e.desc})]})]})},e.title)})})]})}),s.jsx("section",{className:"bg-dark-blue py-20 lg:py-28",children:s.jsxs("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10 text-center",children:[s.jsxs(_e,{className:"mb-10",children:[s.jsx("h2",{className:"text-white font-cal leading-tight mb-4",style:{fontSize:"clamp(26px, 3vw, 44px)"},children:"Why iOrthotics?"}),s.jsx("p",{className:"text-white/60 font-inter text-lg",children:"Hear it from the team."})]}),s.jsx("div",{className:"max-w-2xl mx-auto rounded-2xl overflow-hidden border border-white/10 shadow-2xl",children:s.jsx("video",{src:PS.whyIo,controls:!0,loop:!0,playsInline:!0,className:"w-full aspect-video object-cover"})})]})}),s.jsx("div",{className:"bg-dark-blue border-t border-white/10 py-16 text-center",children:s.jsx("a",{href:Nn,target:"_blank",rel:"noopener noreferrer",className:"px-10 py-4 bg-pistachio text-dark-blue font-inter font-bold text-lg rounded-xl hover:bg-pistachio/90 transition-colors focus:outline-none focus:ring-2 focus:ring-pistachio",children:"Partner with Our Clinical Team"})}),s.jsx(Tt,{})]})}function eEe(){return s.jsxs("div",{className:"bg-white",children:[s.jsx(At,{}),s.jsx("section",{className:"relative overflow-hidden bg-dark-blue pt-40 pb-24",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-10 lg:gap-16 items-center",children:[s.jsxs(_e,{className:"text-center lg:text-left",children:[s.jsx("p",{className:"text-pistachio text-sm font-inter font-semibold uppercase tracking-[0.3em] mb-4",children:"East Coast Partner Network"}),s.jsxs("h1",{className:"text-white font-cal leading-tight mb-6",style:{fontSize:"clamp(30px, 4vw, 56px)"},children:["Precision orthotics,",s.jsx("br",{}),"coast to coast."]}),s.jsx("p",{className:"text-gradient-shimmer font-inter font-light max-w-2xl",style:{fontSize:"clamp(22px, 1.9vw, 32px)"},children:"iOrthotics partner with clinics right across the United States, bringing 3D-printed precision to the East Coast and beyond."})]}),s.jsx("div",{className:"relative h-[360px] lg:h-[480px] w-full opacity-80",children:s.jsx(pU,{})})]})})}),s.jsx("section",{className:"relative bg-white py-20 lg:py-28",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsxs("div",{className:"max-w-2xl mx-auto text-center",children:[s.jsx("h2",{className:"text-dark-blue font-cal leading-tight mb-5",style:{fontSize:"clamp(24px, 2.6vw, 40px)"},children:"Find a distributor near you."}),s.jsx("p",{className:"text-dark-blue/60 font-inter text-lg leading-relaxed mb-7",children:"Our partner network is growing. Contact the lab and we’ll connect you with your nearest iOrthotics distributor."}),s.jsx(Ie,{to:"/contact",className:"inline-flex items-center px-6 py-3 rounded-full bg-pistachio text-dark-blue font-inter font-semibold text-sm hover:bg-pistachio/90 transition-colors",children:"Contact the lab"})]})})}),s.jsx(Tt,{})]})}const lL=[{name:"Dean Hartley",title:"Podiatrist & Founder",photo:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/ab0240c4e_1.png",bio:"Our Aussie founder and innovator. With a background in podiatry and strength in innovation and technology, Dean has led the charge in all things 3D Printing across our industry. If you'd like to learn more about scanning, our tech or a clinical issue, Dean's your man."},{name:"Patrick Morrison",title:"Podiatrist",photo:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/e3fd07030_5.png",bio:"Our Business and Operations Guru. As a Podiatrist with a Bachelor of Business (Finance), it only makes sense that Patty head up all things business development and operations for our Long Island facility. If you'd like to partner with us and learn more about how our lab works, Patty is your go-to."},{name:"Kim Prunty",title:"Customer Service",photo:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/e94b8e157_3.png",bio:"Our customer expert who knows just about everyone in the industry. With vast knowledge about the key players and the little things that really make a difference to your clinic, Kim is our 
696champion. From sample boxes to onboarding, Kim is available to help you out."},{name:"Gabe Cavelluci Landi",title:"Customer Service",photo:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/b6e3aaac1_2.png",bio:"Knows our products inside out and loves making things operate smoothly. Experienced in our lab environment and all of our processes, Gabe is available to help you with your ordering, your onboarding and anything else you might need."},{name:"Shrenik Jain",title:"Engineer",photo:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/4982f5e9f_4.png",bio:"Our resident printing genius. With a background in engineering, he loves knowing how things work - including all of your print jobs. Shrenik oversees all of our print bureau jobs as well as the fleet of printers in our Long Island City lab. He's your man if you want to talk about bespoke print jobs that need that extra level of expertise."}];function tEe(){const[e,t]=P.useState(!1),[n,r]=P.useState(!1),[i,o]=P.useState(null);return s.jsxs("div",{className:"bg-white",children:[s.jsx(At,{}),s.jsx("section",{className:"w-full min-h-[65vh] flex overflow-hidden",children:s.jsxs("div",{className:"relative w-full bg-dark-blue flex flex-col justify-center px-10 lg:px-16 xl:px-24 py-32 lg:py-40 overflow-hidden",children:[s.jsx(ip,{variant:"dark",lines:120,opacity:.9}),s.jsxs(_e,{delay:.1,className:"relative z-10 max-w-4xl text-center lg:text-left",children:[s.jsxs("div",{className:"flex items-center gap-4 mb-8 justify-center lg:justify-start",children:[s.jsx("div",{className:"w-12 h-px bg-pistachio/60"}),s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em]",children:"Our People"}),s.jsx("div",{className:"w-12 h-px bg-pistachio/60"})]}),s.jsxs("h1",{className:"text-white font-cal leading-tight mb-6",style:{fontSize:"clamp(36px, 4.5vw, 64px)"},children:["The Team Behind",s.jsx("br",{}),"the Team."]}),s.jsxs("p",{className:"text-white/70 font-inter font-light leading-[1.9] max-w-2xl",style:{fontSize:"clamp(22px, 1.9vw, 32px)"},children:["Behind every clinician is a wider group of ",s.jsx("span",{className:"text-gradient-shimmer font-normal",children:"people who keep iOrthotics moving"})," - in operations, partnership, quality, and care."]})]})]})}),s.jsx("section",{className:"bg-white py-20 lg:py-28",children:s.jsxs("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:[s.jsxs(_e,{className:"mb-14 max-w-2xl text-center lg:text-left",children:[s.jsx("h2",{className:"text-dark-blue font-cal leading-tight mb-4",style:{fontSize:"clamp(26px, 3vw, 44px)"},children:"Meet the Team"}),s.jsxs("p",{className:"text-dark-blue/70 font-inter font-light text-2xl leading-relaxed text-left",children:["If you need anything, ",s.jsx("span",{className:"text-gradient-shimmer-dark font-normal",children:"our team"})," is here to help."]}),s.jsxs("p",{className:"text-dark-blue/60 font-inter font-light text-xl leading-relaxed mt-4 max-w-3xl text-left",children:["Supported by a multidisciplinary team of engineers, industrial designers, education and industry partners and clinicians in Australia, we all work to ",s.jsx(Ie,{to:"/about/our-way",className:"text-mid-blue hover:text-dark-blue font-medium underline underline-offset-2 hover:no-underline transition-colors",children:"The iOrthotics Way"}),". We all have one goal - the best possible patient outcomes."]})]}),s.jsx(Dn,{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-5 gap-6 items-stretch",children:lL.map((a,l)=>{const c=l===lL.length-1;return s.jsx(Ln,{className:`h-full ${c?"sm:col-span-2 lg:col-span-1":""}`,children:s.jsxs("div",{className:`bg-white rounded-2xl border border-dark-blue/10 hover:border-pistachio/40 hover:shadow-md transition-all duration-300 overflow-hidden h-full flex flex-col ${c?"sm:max-w-[calc(50%-12px)] sm:mx-auto lg:max-w-none lg:mx-0":""}`,children:[s.jsxs("div",{className:"relative w-full aspect-square overflow-hidden bg-gradient-to-br from-dark-blue via-mid-blue to-pistachio",children:[s.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_30%_15%,rgba(255,255,255,0.18),transparent_65%)]"}),s.jsx("div",{className:"relative w-full h-full p-3",children:s.jsx("div",{className:"w-full h-full overflow-hidden rounded-xl shadow-lg ring-1 ring-white/10",children:s.jsx("img",{src:a.photo,alt:a.name,loading:"lazy",className:"w-full h-full object-cover",style:{objectPosition:a.focus||"center top",transform:`scale(${a.zoom||1})`,transformOrigin:"center top"}})})})]}),s.jsxs("div",{className:"p-6 flex flex-col items-center text-center flex-grow justify-start pt-6",children:[s.jsxs("button",{type:"button",onClick:()=>o(i===l?null:l),className:"lg:cursor-default inline-flex items-center gap-1.5",children:[s.jsx("h3",{className:"text-dark-blue font-inter font-bold text-lg leading-tight",children:a.name}),s.jsx(us,{size:18,className:`lg:hidden text-dark-blue/50 transition-transform duration-300 ${i===l?"rotate-180":""}`})]}),s.jsx("p",{className:"text-dark-blue/55 font-inter text-sm leading-relaxed mb-4 mt-2",children:a.title}),a.bio&&s.jsx("p",{className:`text-dark-blue/60 font-inter font-light text-sm leading-relaxed ${i===l?"block":"hidden"} lg:block`,children:a.bio})]})]})},a.name)})}),s.jsxs("div",{className:"mt-14 flex flex-col sm:flex-row items-center justify-center gap-4",children:[s.jsx("button",{onClick:()=>r(!0),className:"px-10 py-4 bg-pistachio text-dark-blue font-inter font-bold text-lg rounded-xl hover:bg-pistachio/90 transition-colors focus:outline-none focus:ring-2 focus:ring-pistachio",children:"Get in Touch"}),s.jsx("button",{onClick:()=>t(!0),className:"px-10 py-4 border border-dark-blue/30 text-dark-blue font-inter font-bold text-lg rounded-xl hover:bg-dark-blue/5 transition-colors focus:outline-none focus:ring-2 focus:ring-dark-blue/30",children:"Book a Call Back"})]})]})}),s.jsx(Dg,{open:e,onOpenChange:t,children:s.jsxs(Qf,{className:"sm:max-w-lg",children:[s.jsx(Zf,{children:s.jsx(Jf,{className:"text-dark-blue font-cal text-2xl",children:"Book a Call Back"})}),s.jsx(Hq,{variant:"team"})]})}),s.jsx(Dg,{open:n,onOpenChange:r,children:s.jsxs(Qf,{className:"sm:max-w-md",children:[s.jsx(Zf,{children:s.jsx(Jf,{className:"text-dark-blue font-cal text-2xl",children:"Get in Touch"})}),s.jsxs("div",{className:"space-y-5 py-2",children:[s.jsx("p",{className:"text-dark-blue/65 font-inter text-base leading-relaxed",children:"Reach the iOrthotics lab directly — we're here to help with any enquiry."}),s.jsxs("a",{href:"tel:9294780204",className:"flex items-center gap-4 p-4 rounded-xl border border-dark-blue/10 hover:border-pistachio/40 hover:bg-pale-blue/40 transition-colors group",children:[s.jsx("span",{className:"w-11 h-11 rounded-full bg-pistachio/15 flex items-center justify-center flex-shrink-0",children:s.jsx(Wh,{size:20,className:"text-pistachio"})}),s.jsxs("span",{className:"flex flex-col",children:[s.jsx("span",{className:"text-dark-blue/45 font-inter text-xs uppercase tracking-widest",children:"Phone"}),s.jsx("span",{className:"text-dark-blue font-inter font-semibold text-lg group-hover:text-pistachio transition-colors",children:"929 478 0204"})]})]}),s.jsxs("a",{href:"mailto:[email protected]",className:"flex items-center gap-4 p-4 rounded-xl border border-dark-blue/10 hover:border-pistachio/40 hover:bg-pale-blue/40 transition-colors group",children:[s.jsx("span",{className:"w-11 h-11 rounded-full bg-pistachio/15 flex items-center justify-center flex-shrink-0",children:s.jsx(Qo,{size:20,className:"text-pistachio"})}),s.jsxs("span",{className:"flex flex-col",children:[s.jsx("span",{className:"text-dark-blue/45 font-inter text-xs uppercase tracking-widest",children:"Email"}),s.jsx("span",{className:"text-dark-blue font-inter font-semibold text-lg group-hover:text-pistachio transition-colors break-all",children:"[email protected]"})]})]})]})]})}),s.jsx(Tt,{})]})}const nEe=[{h:"Why We Collect Personal Information",p:["We collect personal information from you when it is reasonably necessary for a business purpose. That means we collect it to supply you with the products you have asked for and to provide you with the best possible service.","Other reasons we collect personal information are to:"],list:["Understand you, and how we 
696can meet your needs now and in the future.","Develop or evaluate products.","Make ads more relevant to you, whether they’re about our products.","Manage our business.","Comply with our legal obligations."]},{h:"The Type Of Information We Collect",p:["iOrthotics collects personal information like your name, address, business information, occupation, interests, location, contact details, and information about the products you collect.","In addition, we collect and store patient details including patient names, date of birth, medical scans and information.","There are a few different ways we collect this information."],sub:[{h:"What we collect straight from you",p:"We collect most personal information directly from you. For example, you might fill out a form online or give it to one of our representatives on the phone. You can choose not to provide your personal information or may just want to deal with us anonymously. If this happens, we may not be able to provide you with the product you’ve asked for or give you the level of service you expect."},{h:"What we collect while you are partnered with us",p:"We also collect personal information during our relationship with you. For example, we may collect personal information when you pay your bill or purchase products, and when you use our self-service order form."},{h:"What we collect from your online activity",p:"iOrthotics websites use cookies and other digital identifiers. These include site performance identifiers (how our websites or apps are used), analytics cookies (statistics about our site and apps), and advertising cookies (to improve relevance). We use cookies or digital identifiers so relevant advertising from iOrthotics can be displayed to your aggregated segment. You can clear cookies or digital identifiers from your device and disable future use of them by changing your browser security settings, though parts of our website may not work as intended."},{h:"What we collect from others",p:"Other people might give us personal information about you. For example, we might be given personal information by your employer if you use our business products. We will take reasonable steps to make sure you know we have your personal information, how we got it and how we’ll handle it."},{h:"Insights from statistics and research",p:"We aggregate and process personal information to generate new insights about our network, products and customers, so we can provide you with the best possible service."},{h:"Sensitive personal information",p:"Generally speaking, we don’t need sensitive information about you or your patients. There may be times when you choose to tell us about your patient’s health. If there is medical need to disclose any sensitive personal information, we handle this information with due care. This kind of information will only be collected with your permission, and we will only use it for the purpose for which you provided it."},{h:"Others",p:"We will only disclose personal information to others if you’ve given us permission, or if the disclosure relates to the main reason we collected the information and you’d reasonably expect us to do so."}]},{h:"Advertising",p:["iOrthotics advertises by mail, phone, email, text, and online via the internet."],sub:[{h:"Opting out",p:"We’ll make sure that any marketing emails, texts and letters we send you clearly tell you how to opt out, or you can tell our phone staff. When you opt out, you will be removed from all direct marketing. There are some types of marketing we can’t control on an individual basis, like general letterbox drops or online ads that are not targeted specifically to you."}]},{h:"Security",p:["Security is serious. We’re committed to protecting your personal information. Some of the security measures we use include:"],list:["Firewalls and access logging tools that protect against unauthorised access to your data and our network.","Secure work environments and workflow systems that prevent unauthorised access and copying of your personal information.","Secure server and closed network environments.","Encryption of data in transit.","Virus scanning tools.","Management of access privileges, to ensure that only those who really need it can see your personal information.","Ongoing training and security reviews."],pEnd:"These measures are robust, but security risks do change. We will remain vigilant in our efforts to protect your personal information."},{h:"How To Access Your Personal Information",p:["If you ask us, we will usually give you access to the personal information we hold about you. We will always confirm your identity before giving access to your personal information.","There are circumstances under applicable privacy laws where we may 
696not give you access to the personal information we hold about you. For example, we can’t give you access if it would unreasonably affect someone else’s privacy or if giving you access poses a serious threat to someone’s life, health or safety.","We aim to keep the personal and business information we hold about you accurate, up-to-date and complete. If you think our records need to be corrected, please get in touch."]},{h:"Getting In Touch",p:["We recognize that your personal information is important to you, so please let us know if you have any questions or concerns about this policy or our practices."],list:["Phone: 929 478 0204","Email: [email protected]"],pEnd:"We will amend this policy in line with applicable privacy requirements. Details of recent amendments and the date they were made will be detailed below."}];function rEe(){return s.jsxs("div",{className:"bg-white min-h-screen",children:[s.jsx(At,{}),s.jsx("section",{className:"bg-dark-blue pt-32 pb-20 lg:pt-40 lg:pb-24",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsxs(_e,{className:"text-center lg:text-left",children:[s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-4",children:"Legal"}),s.jsx("h1",{className:"text-white font-cal leading-tight mb-4",style:{fontSize:"clamp(34px, 4vw, 56px)"},children:"Privacy Policy"}),s.jsx("p",{className:"text-white/70 font-inter font-light text-xl max-w-2xl",children:"How iOrthotics collects, uses and protects your personal and business information."})]})})}),s.jsx("section",{className:"py-16 lg:py-24 bg-white",children:s.jsx("div",{className:"max-w-4xl mx-auto px-6 lg:px-10",children:s.jsx(_e,{children:s.jsx("div",{className:"article-body",children:nEe.map(e=>{var t,n;return s.jsxs("section",{children:[s.jsx("h2",{children:e.h}),(t=e.p)==null?void 0:t.map((r,i)=>s.jsx("p",{children:r},i)),e.list&&s.jsx("ul",{children:e.list.map((r,i)=>s.jsx("li",{children:r},i))}),e.pEnd&&s.jsx("p",{children:e.pEnd}),(n=e.sub)==null?void 0:n.map(r=>s.jsxs("section",{children:[s.jsx("h3",{children:r.h}),s.jsx("p",{children:r.p})]},r.h))]},e.h)})})})})}),s.jsx(Tt,{})]})}const iEe=[{h:"Acceptance of Terms",p:"By accessing or using the iOrthotics website, our iOrder platform, and the services we provide (together, the “Services”), you agree to be bound by these Terms of Use. If you do not agree with these terms, please do not use the Services. These terms apply in addition to any separate agreement you have entered into with iOrthotics for the supply of products."},{h:"Use of the Services",p:"You may use our website to learn about our products and to submit enquiries, quote requests, sample requests and appointment bookings. The iOrder platform and any partner portals are available only to authorised, registered clinicians and partner accounts. You agree to use the Services only for lawful purposes and in a manner that does not infringe the rights of, or restrict the use of, any other party."},{h:"Intellectual Property",p:"All content on this website — including text, graphics, logos, images, product designs, the iOrthotics, iO3D, iO Brace, EnviroFoam, EnviroPoly and iO Kids marks, and software — is the property of iOrthotics or its licensors and is protected by applicable intellectual property laws. You may not reproduce, distribute, or create derivative works from any content without our prior written consent."},{h:"Orders, Pricing and Quotes",p:"Quotes and estimated turnaround times provided through the Services are indicative only and are confirmed in writing before manufacture begins. Pricing, specifications and availability may change without notice. Acceptance of an order by iOrthotics constitutes a separate supply agreement between you and iOrthotics, and in the event of any inconsistency, the terms of that agreement prevail over these Terms of Use."},{h:"Product Information and Warranties",p:"We take care to ensure product information is accurate. However, devices are prescription items manufactured to clinician specification; suitability for a particular patient is a clinical judgment for which iOrthotics accepts no responsibility. Our products carry the warranties set out in your supply agreement and as required by law. To the extent permitted by law, all other warranties are excluded."},{h:"Limitation of Liability",p:"To the maximum extent permitted by law, iOrthotics, its directors, employees and affiliates are not liable for any indirect, incidental or consequential loss or damage arising out of your use of, or inability to use, the Services, including any loss arising from reliance on information, quotes or advice provided through the website. Our liability for any claim is limited to resupplying the affected product or, at our option, the amount paid for the relevant order."},{h:"Third-Party Links",p:"This website may contain links to third-party websites. iOrthotics is not responsible for the content, privacy practices or availability of those sites and does not endorse them."},{h:"Changes to These Terms",p:"We may update these Terms of Use from time to time. The current version is always the one published on this page. C
696ontinued use of the Services after a change constitutes acceptance of the updated terms."},{h:"Governing Law",p:"These Terms of Use are governed by the laws applicable to the iOrthotics entity that supplies you. Disputes are subject to the exclusive jurisdiction of the courts of that jurisdiction."},{h:"Contact",p:"For questions about these Terms of Use, please contact iOrthotics at [email protected] or 929 478 0204."}];function oEe(){return s.jsxs("div",{className:"bg-white min-h-screen",children:[s.jsx(At,{}),s.jsx("section",{className:"bg-dark-blue pt-32 pb-20 lg:pt-40 lg:pb-24",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsxs(_e,{className:"text-center lg:text-left",children:[s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-4",children:"Legal"}),s.jsx("h1",{className:"text-white font-cal leading-tight mb-4",style:{fontSize:"clamp(34px, 4vw, 56px)"},children:"Terms of Use"}),s.jsx("p",{className:"text-white/70 font-inter font-light text-xl max-w-2xl",children:"The terms that govern your use of the iOrthotics website, iOrder platform and services."}),s.jsx("p",{className:"text-pistachio/80 font-inter text-sm mt-6 max-w-2xl",children:"Draft — please review with your legal counsel before publishing."})]})})}),s.jsx("section",{className:"py-16 lg:py-24 bg-white",children:s.jsx("div",{className:"max-w-4xl mx-auto px-6 lg:px-10",children:s.jsx(_e,{children:s.jsx("div",{className:"article-body",children:iEe.map(e=>s.jsxs("section",{children:[s.jsx("h2",{children:e.h}),s.jsx("p",{children:e.p})]},e.h))})})})}),s.jsx(Tt,{})]})}const aEe="https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/dc822b09c_generated_image.png";function sEe(){return s.jsxs("section",{className:"relative w-full min-h-[88vh] flex items-center overflow-hidden bg-dark-blue",children:[s.jsxs(_e,{className:"absolute inset-0",children:[s.jsx("img",{src:aEe,alt:"A man and woman running along a forest trail at sunrise",className:"w-full h-full object-cover object-center"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-dark-blue/85 via-dark-blue/55 to-dark-blue/20"})]}),s.jsx("div",{className:"relative max-w-screen-2xl mx-auto px-6 lg:px-10 w-full",children:s.jsxs(_e,{delay:.1,className:"max-w-xl text-center lg:text-left",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-6 justify-center lg:justify-start",children:[s.jsx(jW,{size:16,className:"text-pistachio"}),s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em]",children:"For Patients"})]}),s.jsxs("h1",{className:"text-white font-cal leading-tight mb-6",style:{fontSize:"clamp(36px, 5vw, 64px)"},children:["Put your feet in",s.jsx("br",{}),"good hands."]}),s.jsx("p",{className:"text-gradient-shimmer font-inter font-light mb-10 max-w-md",style:{fontSize:"clamp(22px, 1.9vw, 32px)"},children:"We design and 3D-print custom orthotics and braces trusted by podiatrists worldwide — helping you get back to moving the way you want to."})]})})]})}const cL=["Over 100 million sustainable devices printed","World-leading manufacturing processes","~220 tons of plastic waste saved annually through our industry-leading processes","Reproduce your favorite pair of orthotics exactly","Multiple top cover options to suit your vibe","Industry-leading turnaround times","Printed and hand-finished in the US, reducing lead times"];function lEe(){const e=[...cL,...cL];return s.jsxs("div",{className:"bg-dark-blue overflow-hidden",children:[s.jsx("div",{className:"h-px w-full bg-gradient-to-r from-transparent via-pistachio/70 to-transparent"}),s.jsx("div",{className:"relative py-6 overflow-hidden",children:s.jsx("div",{className:"flex w-max whitespace-nowrap",style:{animation:"marquee 38s linear infinite"},children:e.map((t,n)=>s.jsxs("div",{className:"flex items-center gap-x-8 flex-shrink-0",children:[s.jsx("span",{className:"text-white/90 text-sm lg:text-[15px] tracking-wide [font-family:'Inter',_ui-sans-serif,_system-ui,_sans-serif] font-light px-8",children:t}),s.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-pistachio/80 flex-shrink-0","aria-hidden":"true"})]},n))})}),s.jsx("div",{className:"h-px w-full bg-gradient-to-r from-transparent via-pistachio/70 to-transparent"})]})}function cEe(){return s.jsx("section",{className:"bg-dark-blue pt-12 lg:pt-16 pb-20 lg:pb-28",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-10 lg:gap-16 items-center",children:[s.jsx(_e,{delay:.1,className:"order-1",children:s.jsxs("div",{className:"grid gap-5",children:[s.jsxs("div",{className:"relative rounded-2xl overflow-hidden shadow-xl border border-dark-blue/8",style:{aspectRatio:"4 / 3"},children:[s.jsx("img",{src:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/689c1bed0_generated_image.png",alt:"A person holding a charcoal EnviroFoam orthotic and sliding it into a running shoe, foot visible",className:"w-full h-full object-cover"}),s.jsx("div",{className:"absolute bottom-4 left-4 flex items-center gap-2 bg-white/80 backdrop-blur-sm border border-dark-blue/10 px-3 py-1.5 rounded-full",children:s.jsx("img",{src:lr.enviroFoamDark,alt:"EnviroFoam",className:"h-5 object-contain"})})]}),s.jsxs("div",{className:"relative rounded-2xl overflow-hidden border border-white/10",children:[s.jsx("img",{src:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/4b8dadf86_generated_image.png",alt:"A person standing knee-deep in stacked colourful EVA foam blocks covering a bright arena floor",className:"w-full h-full object-cover",style:{aspectRatio:"16 / 9"},loading:"lazy"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-dark-blue/85 via-dark-blue/30 to-dark-blue/40"}),s.jsxs("div",{className:"absolute inset-0 flex flex-col",children:[s.jsx("div",{className:"p-5 lg:p-6",children:s.jsx("h3",{className:"text-white font-cal leading-tight max-w-md drop-shadow-lg",style:{fontSize:"clamp(20px, 2.4vw, 32px)"},children:"That's enough to bury the floor of Madison Square Garden knee-deep."})}),s.jsx("div",{className:"mt-auto p-5 lg:p-6",children:s.jsxs("div",{className:"flex items-end gap-6",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-pistachio font-cal leading-none",style:{fontSize:"clamp(26px, 2.6vw, 38px)"},children:"4.4 lb"}),s.jsx("p",{className:"text-white/80 font-inter text-xs mt-1.5",children:"saved on your pair"})]}),s.jsx("div",{className:"w-px self-stretch bg-white/30"}),s.jsxs("div",{children:[s.jsx("div",{className:"text-pistachio font-cal leading-none",style:{fontSize:"clamp(26px, 2.6vw, 38px)"},children:"440,000 lb"}),s.jsx("p",{className:"text-white/80 font-inter text-xs mt-1.5",children:"kept out of landfill worldwide"})]})]})})]})]})]})}),s.jsxs(_e,{className:"order-2 text-center lg:text-left",children:[s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-5",children:"EnviroFoam · Our sustainable orthotic"}),s.jsxs("h2",{className:"text-white font-cal leading-tight mb-5",style:{fontSize:"clamp(28px, 3.5vw, 52px)"},children:["Better for your feet.",s.jsx("br",{}),"Better for the planet."]}),s.jsx("p",{className:"text-white/70 text-base leading-relaxed mb-7 max-w-lg [font-family:'Inter',_ui-sans-serif,_system-ui,_sans-serif] font-light text-left",children:"Your orthotics start as a digital scan, not a block of foam. Because we only make what your feet need, each pair made with EnviroFoam leaves around 4.4 pounds of waste behind — waste that used to be milled away and thrown out."}),s.jsxs("p",{className:"text-white font-inter font-semibold text-lg",children:["The same precise fit. ",s.jsx("span",{className:"text-pistachio",children:"A lighter footprint."})]})]})]})})})}function uEe(){return s.jsx("section",{className:"relative bg-white py-20 lg:py-28",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsx("div",{className:"max-w-2xl mx-auto text-center",children:s.jsxs(_e,{children:[s.jsx("h2",{className:"text-dark-blue font-cal leading-tight mb-5",style:{fontSize:"clamp(24px, 2.6vw, 40px)"},children:"Find a distributor near you."}),s.jsx("p",{className:"text-dark-blue/60 font-inter text-lg leading-relaxed mb-7",children:"Our partner network is growing. Contact the lab and we’ll connect you with your nearest iOrthotics distributor."}),s.jsx(Ie,{to:"/contact",className:"inline-flex items-center px-6 py-3 rounded-full bg-pistachio text-dark-blue font-inter font-semibold text-sm hover:bg-pistachio/90 transition-colors",children:"Contact the lab"})]})})})})}const dEe="https://media.base44.com/videos/public/6a3e0189c262d2ccdbdde315/d531d76fb_20224i-OrthoticsZeroWasteV3_HD1080p.mp4";function fEe({lightbox:e=!1}){const[t,n]=P.useState(!1);return P.useEffect(()=>(document.body.style.overflow=t?"hidden":"",()=>{document.body.style.overflow=""}),[t]),s.jsxs("section",{className:"bg-white overflow-hidden relative",children:[s.jsx("div",{className:"relative max-w-screen-2xl mx-auto px-10 py-12 lg:py-16",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 lg:gap-20 items-center",children:[s.jsx("div",{className:"relative lg:pr-12 order-2 lg:order-1",children:s.jsx("div",{className:"relative z-10 max-w-xl",children:s.jsxs(_e,{className:"text-center lg:text-left",children:[s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-5",children:"Sustainability Impact"}),s.jsxs("h2",{className:"text-dark-blue font-cal leading-tight mb-6",style:{fontSize:"clamp(32px, 4vw, 60px)"}
696,children:["We are choosing today",s.jsx("br",{}),"to shape tomorrow."]}),s.jsx("p",{className:"text-gradient-shimmer-dark font-inter font-light leading-relaxed mb-8 text-left",style:{fontSize:"clamp(22px, 1.9vw, 32px)"},children:"From near-zero-waste 3D printing to fully digital workflows, every decision we make actively reduces our environmental footprint — without compromising clinical precision. Ask your podiatrist about iOrthotics next time you're in clinic."}),e?s.jsxs("button",{type:"button",onClick:()=>n(!0),className:"inline-flex items-center gap-2 text-pistachio font-inter font-semibold text-sm hover:gap-3 transition-all duration-200",children:["Explore our sustainability story ",s.jsx(ot,{size:16})]}):s.jsxs(Ie,{to:"/about/our-impact",className:"inline-flex items-center gap-2 text-pistachio font-inter font-semibold text-sm hover:gap-3 transition-all duration-200",children:["Explore our sustainability story ",s.jsx(ot,{size:16})]})]})})}),s.jsx(_e,{delay:.15,className:"flex items-center justify-center lg:justify-end lg:pt-0 order-1 lg:order-2",children:s.jsx("img",{src:"https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/0a948be26_generated_image.png",alt:"A runner in activewear slipping an EnviroPoly orthotic into their running shoe before a morning run",className:"w-full max-w-md rounded-2xl shadow-2xl"})})]})}),s.jsx(yr,{children:e&&t&&s.jsx(lt.div,{initial:{opacity:0}
696,animate:{opacity:1},exit:{opacity:0},transition:{duration:.25},className:"fixed inset-0 z-[100] bg-dark-blue/90 backdrop-blur-sm flex items-center justify-center p-4 lg:p-10",onClick:()=>n(!1),children:s.jsxs(lt.div,{initial:{scale:.95,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.95,opacity:0},transition:{duration:.25,ease:[.22,1,.36,1]},className:"relative w-full max-w-4xl aspect-video rounded-2xl overflow-hidden shadow-2xl bg-black",onClick:r=>r.stopPropagation(),children:[s.jsx("button",{type:"button",onClick:()=>n(!1),"aria-label":"Close video",className:"absolute -top-1 -right-1 lg:top-3 lg:right-3 z-10 w-10 h-10 rounded-full bg-white/90 text-dark-blue flex items-center justify-center hover:bg-white transition-colors",children:s.jsx(zi,{size:20,strokeWidth:2.5})}),s.jsx("video",{src:dEe,controls:!0,autoPlay:!0,className:"w-full h-full object-contain"})]})})})]})}function hEe(){return s.jsxs("div",{className:"bg-white",children:[s.jsx(At,{}),s.jsx(sEe,{}),s.jsx(lEe,{}),s.jsx(fEe,{lightbox:!0}),s.jsx(cEe,{}),s.jsx(uEe,{}),s.jsx(Tt,{})]})}function pEe(){return s.jsxs("div",{className:"bg-white",children:[s.jsx(At,{}),s.jsx(gs,{title:"Request a Free Sample Box | iOrthotics",description:"Request a free sample box of iOrthotics 3D-printed devices for your clinic. Choose the devices you want to try and our clinical team will follow up."}),s.jsx("section",{className:"bg-dark-blue pt-28 pb-16 lg:pt-40 lg:pb-20",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsxs(_e,{className:"text-center lg:text-left",children:[s.jsx("p",{className:"text-pistachio text-sm font-inter font-semibold uppercase tracking-[0.3em] mb-4",children:"Free Samples"}),s.jsx("h1",{className:"text-white font-cal leading-tight mb-6",style:{fontSize:"clamp(30px, 4vw, 56px)"},children:"Request a Sample Box."}),s.jsx("p",{className:"text-white font-inter font-light max-w-2xl",style:{fontSize:"clamp(20px, 1.7vw, 30px)"},children:"Hold our devices in your hands before you prescribe. Tell us what your clinic wants to try and our clinical team will follow up."})]})})}),s.jsx("section",{className:"bg-pale-blue py-16 lg:py-24",children:s.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 lg:px-10",children:s.jsxs(_e,{className:"max-w-2xl mx-auto bg-white rounded-2xl border border-dark-blue/10 shadow-sm p-7 sm:p-10",children:[s.jsxs("h2",{className:"text-dark-blue font-cal text-2xl flex items-center gap-2 mb-1",children:[s.jsx($f,{size:22,className:"text-pistachio"})," Request a Sample"]}),s.jsx("p",{className:"text-dark-blue/60 font-inter text-sm mb-2",children:"Fill in your details below — samples are free for your clinic."}),s.jsx(Uq,{})]})})}),s.jsx(Tt,{})]})}function mEe({}){var i;const t=vr().pathname.substring(1),{data:n,isFetched:r}=jY({queryKey:["user"],queryFn:async()=>{try{return{user:await st.auth.me(),isAuthenticated:!0}}catch{return{user:null,isAuthenticated:!1}}}});return s.jsx("div",{className:"min-h-screen flex items-center justify-center p-6 bg-slate-50",children:s.jsxs("div",{className:"max-w-md w-full",children:[s.jsx(gs,{title:"Page Not Found | iOrthotics",noindex:!0}),s.jsxs("div",{className:"text-center space-y-6",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx("h1",{className:"text-7xl font-light text-slate-300",children:"404"}),s.jsx("div",{className:"h-0.5 w-16 bg-slate-200 mx-auto"})]}),s.jsxs("div",{className:"space-y-3",children:[s.jsx("h2",{className:"text-2xl font-medium text-slate-800",children:"Page Not Found"}),s.jsxs("p",{className:"text-slate-600 leading-relaxed",children:["The page ",s.jsxs("span",{className:"font-medium text-slate-700",children:['"',t,'"']})," could not be found in this application."]})]}),r&&n.isAuthenticated&&((i=n.user)==null?void 0:i.role)==="admin"&&s.jsx("div",{className:"mt-8 p-4 bg-slate-100 rounded-lg border border-slate-200",children:s.jsxs("div",{className:"flex items-start space-x-3",children:[s.jsx("div",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-orange-100 flex items-center justify-center mt-0.5",children:s.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-400"})}),s.jsxs("div",{className:"text-left space-y-1",children:[s.jsx("p",{className:"text-sm font-medium text-slate-700",children:"Admin Note"}),s.jsx("p",{className:"text-sm text-slate-600 leading-relaxed",children:"This could mean that the AI hasn't implemented this page yet. Ask it to implement it in the chat."})]})]})}),s.jsx("div",{className:"pt-6",children:s.jsxs("button",{onClick:()=>window.location.href="/",className:"inline-flex items-center px-4 py-2 text-sm font-medium text-slate-700 bg-white border border-slate-200 rounded-lg hover:bg-slate-50 hover:border-slate-300 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500",children:[s.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),"Go Home"]})})]})]})})}const uL="https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/31b0ab36b_generated_image.png",gEe="https://media.base44.com/images/public/6a3e0189c262d2ccdbdde315/ecd19b0d6_Designer4.png",yEe=[{title:"Position them correctly",body:"Place the orthotic into your shoe as far toward the back as possible."},{title:"Ease into wearing them",body:"Wear your orthotics for up to one hour the first day and increase wearing by an hour or two each day."},{title:"Listen to your feet",body:"If uncomfortable, take the orthotics out of your shoes and wear them the next day. The break-in period may be easier for some people and more difficult for others. Use common sense and listen to your feet during this period."},{title:"Expect an adjustment period",body:"Orthotics change the way you walk and the way your muscles work. You may start to use muscles you have not used in a long time. Foot and leg muscle fatigue as well as discomfort can occur during the first four weeks."},{title:"Silence the squeak",body:"If your orthotics squeak while walking, place a light layer of talcum powder in your shoe under the orthotic."}
696,{title:"Choose the right shoes",body:"Discuss the type of dress shoes and sport shoes that are best for you with your doctor. Orthotics work better in certain styles and types of shoes."},{title:"Bring them when shoe shopping",body:"When purchasing new shoes, bring your orthotics. When purchasing sport shoes it may be necessary to remove their insoles."},{title:"Keep them clean",body:"Clean only with a damp cloth and mild soap. Never wash your orthotics in hot water or leave them in your shoes when your shoes are wet."}],vEe=[{label:"Swimming & the pool",desc:"Toss your goggles, swim cap and earplugs in before you hit the water."},{label:"Gym gear",desc:"Keep small accessories like resistance bands, earbuds or a lock together in your bag."},{label:"Toiletries & travel",desc:"Perfect for organizing chargers, lip balm, sunscreen or travel-size toiletries in your luggage."},{label:"Makeup & beauty",desc:"A clean, compact pouch for brushes, bobby pins or hair ties."},{label:"Your orthotics",desc:"Whenever you swap shoes, your orthotics travel safely in their bag rather than loose in your gear."}];function xEe(){return s.jsxs("div",{className:"bg-white",children:[s.jsx(At,{}),s.jsx(gs,{title:"Caring for Your Orthotics | iOrthotics",description:"How to wear, break in and care for your custom iOrthotics orthotics — plus clever ways to reuse your iOrthotics bag.",descLimit:160,image:uL}),s.jsxs("section",{className:"w-full min-h-[70vh] flex flex-col lg:flex-row overflow-hidden",children:[s.jsx("div",{className:"relative flex-1 bg-dark-blue flex flex-col justify-center px-10 lg:px-16 xl:px-24 py-24 lg:py-0",children:s.jsxs(_e,{delay:.1,className:"relative z-10 text-center lg:text-left",children:[s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em] mb-6",children:"Patient Care Guide"}),s.jsxs("h1",{className:"text-white font-cal leading-tight mb-6",style:{fontSize:"clamp(36px, 5vw, 64px)"},children:["Caring for your",s.jsx("br",{}),"custom orthotics."]}),s.jsx("p",{className:"text-gradient-shimmer font-inter font-light max-w-md",style:{fontSize:"clamp(20px, 1.7vw, 28px)"},children:"A few simple habits to keep your orthotics comfortable, clean and working the way they should."})]})}),s.jsx(_e,{delay:.2,className:"relative flex-1 min-h-[50vh] lg:min-h-[70vh] bg-dark-blue flex items-center justify-center overflow-hidden",children:s.jsx("img",{src:uL,alt:"A woman jogging in athletic wear",className:"w-full h-full object-contain object-center"})})]}),s.jsx("section",{className:"py-20 lg:py-28 bg-white",children:s.jsxs("div",{className:"max-w-screen-xl mx-auto px-6 lg:px-10",children:[s.jsx(_e,{className:"max-w-3xl mb-14",children:s.jsx("p",{className:"text-dark-blue/65 font-inter text-lg leading-relaxed",children:"Your foot orthotics were prescribed by your doctor and are individually designed to relieve your specific foot problem or meet your particular athletic need. It is important that you read and follow these instructions to get the best results from your orthotics."})}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5",children:yEe.map((e,t)=>s.jsx(_e,{delay:t*.04,children:s.jsxs("div",{className:"flex items-start gap-5 p-7 rounded-2xl bg-pale-blue/50 border border-dark-blue/6 h-full",children:[s.jsx("div",{className:"w-10 h-10 rounded-xl bg-pistachio text-dark-blue font-cal text-lg flex items-center justify-center flex-shrink-0",children:t+1}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-dark-blue font-cal text-lg mb-1.5",children:e.title}),s.jsx("p",{className:"text-dark-blue/60 font-inter text-sm leading-relaxed",children:e.body})]})]})},t))}),s.jsx(_e,{delay:.1,children:s.jsx("div",{className:"mt-10 p-7 rounded-2xl border border-pistachio/30 bg-pistachio/8",children:s.jsxs("p",{className:"text-dark-blue font-inter text-sm leading-relaxed",children:[s.jsx("strong",{className:"font-semibold",children:"If your orthotics are uncomfortable after the break-in period,"})," ","please discuss this with your doctor. If your orthotics pinch or cause blisters, please stop wearing them and consult your doctor."]})})})]})}),s.jsx("section",{className:"py-20 lg:py-28 bg-dark-blue",children:s.jsxs("div",{className:"max-w-screen-xl mx-auto px-6 lg:px-10",children:[s.jsxs(_e,{className:"flex items-center gap-3 mb-4",children:[s.jsx("div",{className:"w-10 h-10 rounded-xl bg-pistachio/15 border border-pistachio/20 flex items-center justify-center flex-shrink-0",children:s.jsx(eG,{size:18,className:"text-pistachio"})}),s.jsx("p",{className:"text-pistachio text-xs font-inter font-semibold uppercase tracking-[0.3em]",children:"Your iOrthotics Bag"})]}),s.jsxs("div",{className:"flex flex-col lg:flex-row gap-12 items-start",children:[s.jsxs(_e,{className:"flex-1 lg:max-w-md",children:[s.jsx("h2",{className:"text-white font-cal leading-tight mb-5",style:{fontSize:"clamp(28px, 3vw, 40px)"},children:"More than just storage."}),s.jsx("p",{className:"text-white/65 font-inter text-base leading-relaxed mb-8",children:"Your orthotics come in a quality iOrthotics ziplock bag, designed to keep them safe and protected when not in use. But it's far too handy to leave in the drawer — here are a few ways our patients put theirs to work:"}),s.jsx("div",{className:"space-y-4",children:vEe.map((e,t)=>s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx("div",{className:"w-2 h-2 rounded-full bg-pistachio mt-2 flex-shrink-0"}),s.jsxs("div",{children:[s.jsx("p",{className:"text-white font-inter font-semibold text-sm",children:e.label}),s.jsx("p",{className:"text-white/55 font-inter text-sm leading-relaxed",children:e.desc})]})]},t))}),s.jsx("p",{className:"text-white/50 font-inter text-sm italic mt-8",children:"Tough, lightweight and washable — it earns its keep wherever you go."})]}),s.jsx(_e,{delay:.15,className:"flex-1 w-full",children:s.jsx("img",{src:gEe,alt:"The iOrthotics bag with orthotics inside",className:"w-full rounded-2xl object-cover shadow-2xl shadow-black/20"})})]})]})}),s.jsx("div",{className:"relative bg-white py-24 lg:py-32 overflow-hidden",children:s.jsx(vv,{asBackgroun
696d:!0})}),s.jsx(Tt,{})]})}const Yo=P.forwardRef(({className:e,type:t,...n},r)=>s.jsx("input",{type:t,className:St("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));Yo.displayName="Input";var bEe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],wEe=bEe.reduce((e,t)=>{const n=Yq(`Primitive.${t}`),r=P.forwardRef((i,o)=>{const{asChild:a,...l}=i,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(c,{...l,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),_Ee="Label",mU=P.forwardRef((e,t)=>s.jsx(wEe.label,{...e,ref:t,onMouseDown:n=>{var i;n.target.closest("button, input, select, textarea")||((i=e.onMouseDown)==null||i.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));mU.displayName=_Ee;var gU=mU;const SEe=hN("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Xo=P.forwardRef(({className:e,...t},n)=>s.jsx(gU,{ref:n,className:St(SEe(),e),...t}));Xo.displayName=gU.displayName;function Mu({icon:e,title:t,subtitle:n,footer:r,children:i}){return s.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background px-4",children:s.jsxs("div",{className:"w-full max-w-md",children:[s.jsxs("div",{className:"text-center mb-10",children:[s.jsx("div",{className:"inline-flex items-center justify-center w-14 h-14 rounded-2xl bg-primary mb-4",children:s.jsx(e,{className:"w-7 h-7 text-primary-foreground","aria-hidden":"true"})}),s.jsx("h1",{className:"text-3xl font-bold tracking-tight text-foreground",children:t}),n&&s.jsx("p",{className:"text-muted-foreground mt-2",children:n})]}),s.jsx("div",{className:"bg-card rounded-2xl shadow-sm border border-border p-8",children:i}),r&&s.jsx("p",{className:"text-center text-sm text-muted-foreground mt-6",children:r})]})})}function yU({className:e="w-5 h-5"}){return s.jsxs("svg",{className:e,viewBox:"0 0 24 24","aria-hidden":"true",children:[s.jsx("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 01-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z",fill:"#4285F4"}),s.jsx("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),s.jsx("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"#FBBC05"}),s.jsx("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"})]})}function Gc(e="/"){const t=new URLSearchParams(window.location.search).get("returnTo");if(!t)return e;try{const n=new URL(t,window.location.origin);if(n.origin!==window.location.origin)return"/";for(const i of["access_token","clear_access_token","app_id","app_base_url","functions_version","from_url"])n.searchParams.delete(i);const r=n.pathname+n.search;return!r.startsWith("/")||r.startsWith("//")||r.includes("\\")?"/":r}catch{return"/"}}function jEe(){const[e,t]=P.useState(""),[n,r]=P.useState(""),[i,o]=P.useState(""),[a,l]=P.useState(!1),c=async p=>{p.preventDefault(),o(""),l(!0);try{await st.auth.loginViaEmailPassword(e,n);const f=await st.auth.me();window.location.href=Gc(f.role==="admin"?"/admin/leads":"/")}catch(f){o(f.message||"Invalid email or password")}finally{l(!1)}},d=()=>{st.auth.loginWithProvider("google",Gc("/admin/leads"))};return s.jsxs(Mu,{icon:BW,title:"Welcome back",subtitle:"Log in to your account",footer:s.jsxs(s.Fragment,{children:["Don't have an account?"," ",s.jsx(Ie,{to:`/register?returnTo=${encodeURIComponent(Gc("/admin/leads"))}`,className:"text-primary font-medium hover:underline",children:"Create one"})]}),children:[s.jsxs(uo,{variant:"outline",className:"w-full h-12 text-sm font-medium mb-6",onClick:d,children:[s.jsx(yU,{className:"w-5 h-5 mr-2"}),"Continue with Google"]}),s.jsxs("div",{className:"relative mb-6",children:[s.jsx("div",{className:"absolute inset-0 flex items-center",children:s.jsx("div",{className:"w-full border-t border-border"})}),s.jsx("div",{className:"relative flex justify-center text-xs uppercase",children:s.jsx("span",{className:"bg-card px-3 text-muted-foreground",children:"or"})})]}),i&&s.jsx("div",{className:"mb-4 p-3 rounded-lg bg-destructive/10 text-destructive text-sm",children:i}),s.jsxs("form",{onSubmit:c,className:"space-y-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(Xo,{htmlFor:"email",children:"Email"}),s.jsxs("div",{className:"relative",children:[s.jsx(Qo,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground","aria-hidden":"true"}),s.jsx(Yo,{id:"email",type:"email",autoComplete:"email",autoFocus:!0,placeholder:"[email protected]",value:e,onCh
696ange:p=>t(p.target.value),className:"pl-10 h-12",required:!0})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx(Xo,{htmlFor:"password",children:"Password"}),s.jsx(Ie,{to:"/forgot-password",className:"text-xs text-primary hover:underline",children:"Forgot password?"})]}),s.jsxs("div",{className:"relative",children:[s.jsx(gl,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground","aria-hidden":"true"}),s.jsx(Yo,{id:"password",type:"password",autoComplete:"current-password",placeholder:"••••••••",value:n,onChange:p=>r(p.target.value),className:"pl-10 h-12",required:!0})]})]}),s.jsx(uo,{type:"submit",className:"w-full h-12 font-medium",disabled:a,children:a?s.jsxs(s.Fragment,{children:[s.jsx(pi,{className:"w-4 h-4 mr-2 animate-spin"}),"Logging in..."]}):"Log in"})]})]})}var NEe=Object.defineProperty,kEe=Object.defineProperties,OEe=Object.getOwnPropertyDescriptors,Hy=Object.getOwnPropertySymbols,vU=Object.prototype.hasOwnProperty,xU=Object.prototype.propertyIsEnumerable,dL=(e,t,n)=>t in e?NEe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,EEe=(e,t)=>{for(var n in t||(t={}))vU.call(t,n)&&dL(e,n,t[n]);if(Hy)for(var n of Hy(t))xU.call(t,n)&&dL(e,n,t[n]);return e},PEe=(e,t)=>kEe(e,OEe(t)),AEe=(e,t)=>{var n={};for(var r in e)vU.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Hy)for(var r of Hy(e))t.indexOf(r)<0&&xU.call(e,r)&&(n[r]=e[r]);return n};function TEe(e){let t=setTimeout(e,0),n=setTimeout(e,10),r=setTimeout(e,50);return[t,n,r]}function CEe(e){let t=P.useRef();return P.useEffect(()=>{t.current=e}),t.current}var REe=18,bU=40,MEe=`${bU}px`,IEe=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");function DEe({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r}){let[i,o]=P.useState(!1),[a,l]=P.useState(!1),[c,d]=P.useState(!1),p=P.useMemo(()=>n==="none"?!1:(n==="increase-width"||n==="experimental-no-flickering")&&i&&a,[i,a,n]),f=P.useCallback(()=>{let m=e.current,g=t.current;if(!m||!g||c||n==="none")return;let b=m,y=b.getBoundingClientRect().left+b.offsetWidth,v=b.getBoundingClientRect().top+b.offsetHeight/2,x=y-REe,_=v;document.querySelectorAll(IEe).length===0&&document.elementFromPoint(x,_)===m||(o(!0),d(!0))},[e,t,c,n]);return P.useEffect(()=>{let m=e.current;if(!m||n==="none")return;function g(){let y=window.innerWidth-m.getBoundingClientRect().right;l(y>=bU)}g();let b=setInterval(g,1e3);return()=>{clearInterval(b)}},[e,n]),P.useEffect(()=>{let m=r||document.activeElement===t.current;if(n==="none"||!m)return;let g=setTimeout(f,0),b=setTimeout(f,2e3),y=setTimeout(f,5e3),v=setTimeout(()=>{d(!0)},6e3);return()=>{clearTimeout(g),clearTimeout(b),clearTimeout(y),clearTimeout(v)}},[t,r,n,f]),{hasPWMBadge:i,willPushPWMBadge:p,PWM_BADGE_SPACE_WIDTH:MEe}}var wU=P.createContext({}),_U=P.forwardRef((e,t)=>{var n=e,{value:r,onChange:i,maxLength:o,textAlign:a="left",pattern:l,placeholder:c,inputMode:d="numeric",onComplete:p,pushPasswordManagerStrategy:f="increase-width",pasteTransformer:m,containerClassName:g,noScriptCSSFallback:b=LEe,render:y,children:v}=n,x=AEe(n,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]),_,j,S,N,O;let[E,A]=P.useState(typeof x.defaultValue=="string"?x.defaultValue:""),I=r??E,M=CEe(I),C=P.useCallback(ge=>{i==null||i(ge),A(ge)},[i]),R=P.useMemo(()=>l?typeof l=="string"?new RegExp(l):l:null,[l]),B=P.useRef(null),$=P.useRef(null),z=P.useRef({value:I,onChange:C,isIOS:typeof window<"u"&&((j=(_=window==null?void 0:window.CSS)==null?void 0:_.supports)==null?void 0:j.call(_,"-webkit-touch-callout","none"))}),H=P.useRef({prev:[(S=B.current)==null?void 0:S.selectionStart,(N=B.current)==null?void 0:N.selectionEnd,(O=B.current)==null?void 0:O.selectionDirection]});P.useImperativeHandle(t,()=>B.current,[]),P.useEffect(()=>{let ge=B.current,be=$.current;if(!ge||!be)return;z.current.value!==ge.value&&z.current.onChange(ge.value),H.current.prev=[ge.selectionStart,ge.selectionEnd,ge.selectionDirection];function Be(){if(document.activeElement!==ge){F(null),ee(null);return}let de=ge.selectionStart,Se=ge.selectionEnd,Ee=ge.selectionDirection,ve=ge.maxLength,He=ge.value,$e=H.current.prev,Ye=-1,Rt=-1,Ft;if(He.length!==0&&de!==null&&Se!==null){let an=de===Se,ca=de===He.length&&He.length<ve;if(an&&!ca){let Cr=de;if(Cr===0)Ye=0,Rt=1,Ft="forward";else if(Cr===ve)Ye=Cr-1,Rt=Cr,Ft="backward";else if(ve>1&&He.length>1){let wo=0;if($e[0]!==null&&$e[1]!==null){Ft=Cr<$e[1]?"backward":"forward";let ql=$e[0]===$e[1]&&$e[0]<ve;Ft==="backward"&&!ql&&(wo=-1)}Ye=wo+Cr,Rt=wo+Cr+1}}Ye!==-1&&Rt!==-1&&Ye!==Rt&&B.current.setSelectionRange(Ye,Rt,Ft)}let ht=Ye!==-1?Ye:de,vi=Rt!==-1?Rt:Se,pt=Ft??Ee;F(ht),ee(vi),H.current.prev=[ht,vi,pt]}if(document.addEventListener("selectionchange",Be,{capture:!0}),Be(),document.activeElement===ge&&q(!0),!document.getElementById("input-otp-style")){let de=document.createElement("style");if(de.id="input-otp-style",document.head.appendChild(de),de.sheet){let Se="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";hf(de.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),hf(de.sheet,`[data-input-otp]:autofill { ${Se} }`),hf(de.sheet,`[data-input-otp]:-webkit-autofill { ${Se} }
696`),hf(de.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),hf(de.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let De=()=>{be&&be.style.setProperty("--root-height",`${ge.clientHeight}px`)};De();let oe=new ResizeObserver(De);return oe.observe(ge),()=>{document.removeEventListener("selectionchange",Be,{capture:!0}),oe.disconnect()}},[]);let[V,Y]=P.useState(!1),[W,q]=P.useState(!1),[D,F]=P.useState(null),[K,ee]=P.useState(null);P.useEffect(()=>{TEe(()=>{var ge,be,Be,De;(ge=B.current)==null||ge.dispatchEvent(new Event("input"));let oe=(be=B.current)==null?void 0:be.selectionStart,de=(Be=B.current)==null?void 0:Be.selectionEnd,Se=(De=B.current)==null?void 0:De.selectionDirection;oe!==null&&de!==null&&(F(oe),ee(de),H.current.prev=[oe,de,Se])})},[I,W]),P.useEffect(()=>{M!==void 0&&I!==M&&M.length<o&&I.length===o&&(p==null||p(I))},[o,p,M,I]);let J=DEe({containerRef:$,inputRef:B,pushPasswordManagerStrategy:f,isFocused:W}),G=P.useCallback(ge=>{let be=ge.currentTarget.value.slice(0,o);if(be.length>0&&R&&!R.test(be)){ge.preventDefault();return}typeof M=="string"&&be.length<M.length&&document.dispatchEvent(new Event("selectionchange")),C(be)},[o,C,M,R]),X=P.useCallback(()=>{var ge;if(B.current){let be=Math.min(B.current.value.length,o-1),Be=B.current.value.length;(ge=B.current)==null||ge.setSelectionRange(be,Be),F(be),ee(Be)}q(!0)},[o]),ne=P.useCallback(ge=>{var be,Be;let De=B.current;if(!m&&(!z.current.isIOS||!ge.clipboardData||!De))return;let oe=ge.clipboardData.getData("text/plain"),de=m?m(oe):oe;ge.preventDefault();let Se=(be=B.current)==null?void 0:be.selectionStart,Ee=(Be=B.current)==null?void 0:Be.selectionEnd,ve=(Se!==Ee?I.slice(0,Se)+de+I.slice(Ee):I.slice(0,Se)+de+I.slice(Se)).slice(0,o);if(ve.length>0&&R&&!R.test(ve))return;De.value=ve,C(ve);let He=Math.min(ve.length,o-1),$e=ve.length;De.setSelectionRange(He,$e),F(He),ee($e)},[o,C,R,I]),Z=P.useMemo(()=>({position:"relative",cursor:x.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[x.disabled]),se=P.useMemo(()=>({position:"absolute",inset:0,width:J.willPushPWMBadge?`calc(100% + ${J.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:J.willPushPWMBadge?`inset(0 ${J.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:a,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[J.PWM_BADGE_SPACE_WIDTH,J.willPushPWMBadge,a]),fe=P.useMemo(()=>P.createElement("input",PEe(EEe({autoComplete:x.autoComplete||"one-time-code"},x),{"data-input-otp":!0,"data-input-otp-placeholder-shown":I.length===0||void 0,"data-input-otp-mss":D,"data-input-otp-mse":K,inputMode:d,pattern:R==null?void 0:R.source,"aria-placeholder":c,style:se,maxLength:o,value:I,ref:B,onPaste:ge=>{var be;ne(ge),(be=x.onPaste)==null||be.call(x,ge)},onChange:G,onMouseOver:ge=>{var be;Y(!0),(be=x.onMouseOver)==null||be.call(x,ge)},onMouseLeave:ge=>{var be;Y(!1),(be=x.onMouseLeave)==null||be.call(x,ge)},onFocus:ge=>{var be;X(),(be=x.onFocus)==null||be.call(x,ge)},onBlur:ge=>{var be;q(!1),(be=x.onBlur)==null||be.call(x,ge)}})),[G,X,ne,d,se,o,K,D,x,R==null?void 0:R.source,I]),le=P.useMemo(()=>({slots:Array.from({length:o}).map((ge,be)=>{var Be;let De=W&&D!==null&&K!==null&&(D===K&&be===D||be>=D&&be<K),oe=I[be]!==void 0?I[be]:null,de=I[0]!==void 0?null:(Be=c==null?void 0:c[be])!=null?Be:null;return{char:oe,placeholderChar:de,isActive:De,hasFakeCaret:De&&oe===null}}),isFocused:W,isHovering:!x.disabled&&V}),[W,V,o,K,D,x.disabled,I]),we=P.useMemo(()=>y?y(le):P.createElement(wU.Provider,{value:le},v),[v,le,y]);return P.createElement(P.Fragment,null,b!==null&&P.createElement("noscript",null,P.createElement("style",null,b)),P.createElement("div",{ref:$,"data-input-otp-container":!0,style:Z,className:g},we,P.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},fe)))});_U.displayName="Input";function hf(e,t){try{e.insertRule(t)}catch{console.error("input-otp could not insert CSS rule:",t)}}var LEe=`
697[data-input-otp] {
698  --nojs-bg: white !important;
699  --nojs-fg: black !important;
700
701  background-color: var(--nojs-bg) !important;
702  color: var(--nojs-fg) !important;
703  caret-color: var(--nojs-fg) !important;
704  letter-spacing: .25em !important;
705  text-align: center !important;
706  border: 1px solid var(--nojs-fg) !important;
707  border-radius: 4px !important;
708  width: 100% !important;
709}
710@media (prefers-color-scheme: dark) {
711  [data-input-otp] {
712    --nojs-bg: black !important;
713    --nojs-fg: white !important;
714  }
715}`;const SU=P.forwardRef(({className:e,containerClassName:t,...n},r)=>s.jsx(_U,{ref:r,containerClassName:St("flex items-center gap-2 has-[:disabled]:opacity-50",t),className:St("disabled:cursor-not-allowed",e),...n}));SU.displayName="InputOTP";const jU=P.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:St("flex items-center",e),...t}));jU.displayName="InputOTPGroup";const Js=P.forwardRef(({index:e,className:t,...n},r)=>{const i=P.useContext(wU),{char:o,hasFakeCaret:a,isActive:l}=i.slots[e];return s.jsxs("div",{ref:r,className:St("relative flex h-9 w-9 items-center justify-center border-y border-r border-input text-sm shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",l&&"z-10 ring-1 ring-ring",t),...n,children:[o,a&&s.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:s.jsx("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})});Js.displayName="InputOTPSlot";const BEe=P.forwardRef(({...e},t)=>s.jsx("div",{ref:t,role:"separator",...e,children:s.jsx(KW,{})}));BEe.displayName="InputOTPSeparator";function $Ee(){const[e,t]=P.useState(""),[n,r]=P.useState(""),[i,o]=P.useState(""),[a,l]=P.useState(""),[c,d]=P.useState(!1),[p,f]=P.useState(!1),[m,g]=P.useState(""),b=async _=>{if(_.preventDefault(),l(""),n!==i){l("Passwords do not match");return}d(!0);try{await st.auth.register({email:e,password:n}),f(!0)}catch(j){l(j.message||"Registration failed")}finally{d(!1)}},y=async()=>
715{l(""),d(!0);try{const _=await st.auth.verifyOtp({email:e,otpCode:m});_!=null&&_.access_token&&st.auth.setToken(_.access_token),window.location.href=Gc("/admin/leads")}catch(_){l(_.message||"Invalid verification code")}finally{d(!1)}},v=async()=>{l("");try{await st.auth.resendOtp(e),SL({title:"Code sent",description:"Check your email for the new code."})}catch(_){l(_.message||"Failed to resend code")}},x=()=>{st.auth.loginWithProvider("google",Gc("/admin/leads"))};return p?s.jsxs(Mu,{icon:Qo,title:"Verify your email",subtitle:`We sent a code to ${e}`,children:[a&&s.jsx("div",{className:"mb-4 p-3 rounded-lg bg-destructive/10 text-destructive text-sm",children:a}),s.jsx("div",{className:"flex justify-center mb-6",children:s.jsx(SU,{maxLength:6,value:m,onChange:g,autoFocus:!0,autoComplete:"one-time-code",children:s.jsxs(jU,{children:[s.jsx(Js,{index:0}),s.jsx(Js,{index:1}),s.jsx(Js,{index:2}),s.jsx(Js,{index:3}),s.jsx(Js,{index:4}),s.jsx(Js,{index:5})]})})}),s.jsx(uo,{className:"w-full h-12 font-medium",onClick:y,disabled:c||m.length<6,children:c?s.jsxs(s.Fragment,{children:[s.jsx(pi,{className:"w-4 h-4 mr-2 animate-spin"}),"Verifying..."]}):"Verify"}),s.jsxs("p",{className:"text-center text-sm text-muted-foreground mt-4",children:["Didn't receive the code?"," ",s.jsx("button",{onClick:v,className:"text-primary font-medium hover:underline",children:"Resend"})]})]}):s.jsxs(Mu,{icon:LL,title:"Create your account",subtitle:"Sign up to get started",footer:s.jsxs(s.Fragment,{children:["Already have an account?"," ",s.jsx(Ie,{to:`/login?returnTo=${encodeURIComponent(Gc("/admin/leads"))}`,className:"text-primary font-medium hover:underline",children:"Log in"})]}),children:[s.jsxs(uo,{variant:"outline",className:"w-full h-12 text-sm font-medium mb-6",onClick:x,children:[s.jsx(yU,{className:"w-5 h-5 mr-2"}),"Continue with Google"]}),s.jsxs("div",{className:"relative mb-6",children:[s.jsx("div",{className:"absolute inset-0 flex items-center",children:s.jsx("div",{className:"w-full border-t border-border"})}),s.jsx("div",{className:"relative flex justify-center text-xs uppercase",children:s.jsx("span",{className:"bg-card px-3 text-muted-foreground",children:"or"})})]}),a&&s.jsx("div",{className:"mb-4 p-3 rounded-lg bg-destructive/10 text-destructive text-sm",children:a}),s.jsxs("form",{onSubmit:b,className:"space-y-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(Xo,{htmlFor:"email",children:"Email"}),s.jsxs("div",{className:"relative",children:[s.jsx(Qo,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground","aria-hidden":"true"}),s.jsx(Yo,{id:"email",type:"email",autoComplete:"email",autoFocus:!0,placeholder:"[email protected]",value:e,onChange:_=>t(_.target.value),className:"pl-10 h-12",required:!0})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Xo,{htmlFor:"password",children:"Password"}),s.jsxs("div",{className:"relative",children:[s.jsx(gl,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground","aria-hidden":"true"}),s.jsx(Yo,{id:"password",type:"password",autoComplete:"new-password",placeholder:"••••••••",value:n,onChange:_=>r(_.target.value),className:"pl-10 h-12",required:!0})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Xo,{htmlFor:"confirm",children:"Confirm Password"}),s.jsxs("div",{className:"relative",children:[s.jsx(gl,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground","aria-hidden":"true"}),s.jsx(Yo,{id:"confirm",type:"password",autoComplete:"new-password",placeholder:"••••••••",value:i,onChange:_=>o(_.target.value),className:"pl-10 h-12",required:!0})]})]}),s.jsx(uo,{type:"submit",className:"w-full h-12 font-medium",disabled:c,children:c?s.jsxs(s.Fragment,{children:[s.jsx(pi,{className:"w-4 h-4 mr-2 animate-spin"}),"Creating account..."]}):"Create account"})]})]})}function FEe(){const[e,t]=P.useState(""),[n,r]=P.useState(!1),[i,o]=P.useState(!1),a=async l=>{l.preventDefault(),r(!0);try{await st.auth.resetPasswordRequest(e)}catch{}finally{r(!1),o(!0)}};return s.jsx(Mu,{icon:Qo,title:"Reset password",subtitle:"We'll send you a link to reset it",footer:s.jsxs(Ie,{to:"/login",className:"text-primary font-medium hover:underline",children:[s.jsx(Hh,{className:"w-3 h-3 inline mr-1"}),"Back to log in"]}),children:i?s.jsx("p",{className:"text-sm text-foreground text-center",children:"If an account exists with that email, you'll receive a password reset link shortly."}):s.jsxs("form",{onSubmit:a,className:"space-y-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(Xo,{htmlFor:"email",children:"Email address"}),s.jsxs("div",{className:"relative",children:[s.jsx(Qo,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground","aria-hidden":"true"}),s.jsx(Yo,{id:"email",type:"email",autoComplete:"email",autoFocus:!0,placeholder:"[email protected]",value:e,onCh
715ange:l=>t(l.target.value),className:"pl-10 h-12",required:!0})]})]}),s.jsx(uo,{type:"submit",className:"w-full h-12 font-medium",disabled:n,children:n?s.jsxs(s.Fragment,{children:[s.jsx(pi,{className:"w-4 h-4 mr-2 animate-spin"}),"Sending..."]}):"Send reset link"})]})})}function qEe(){const[e]=k8(),t=e.get("token"),[n,r]=P.useState(""),[i,o]=P.useState(""),[a,l]=P.useState(""),[c,d]=P.useState(!1),p=async f=>{if(f.preventDefault(),l(""),n!==i){l("Passwords do not match");return}d(!0);try{await st.auth.resetPassword({resetToken:t,newPassword:n}),window.location.href="/login"}catch(m){l(m.message||"Failed to reset password")}finally{d(!1)}};return t?s.jsxs(Mu,{icon:gl,title:"New password",subtitle:"Enter your new password below",children:[a&&s.jsx("div",{className:"mb-4 p-3 rounded-lg bg-destructive/10 text-destructive text-sm",children:a}),s.jsxs("form",{onSubmit:p,className:"space-y-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(Xo,{htmlFor:"password",children:"New Password"}),s.jsxs("div",{className:"relative",children:[s.jsx(gl,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground","aria-hidden":"true"}),s.jsx(Yo,{id:"password",type:"password",autoComplete:"new-password",autoFocus:!0,placeholder:"••••••••",value:n,onChange:f=>r(f.target.value),className:"pl-10 h-12",required:!0})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Xo,{htmlFor:"confirm",children:"Confirm Password"}),s.jsxs("div",{className:"relative",children:[s.jsx(gl,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground","aria-hidden":"true"}),s.jsx(Yo,{id:"confirm",type:"password",autoComplete:"new-password",placeholder:"••••••••",value:i,onChange:f=>o(f.target.value),className:"pl-10 h-12",required:!0})]})]}),s.jsx(uo,{type:"submit",className:"w-full h-12 font-medium",disabled:c,children:c?s.jsxs(s.Fragment,{children:[s.jsx(pi,{className:"w-4 h-4 mr-2 animate-spin"}),"Resetting..."]}):"Reset password"})]})]}):s.jsx(Mu,{icon:qG,title:"Invalid reset link",subtitle:"This password reset link is missing or invalid",footer:s.jsx(Ie,{to:"/forgot-password",className:"text-primary font-medium hover:underline",children:"Request a new link"}),children:s.jsx("p",{className:"text-sm text-foreground text-center",children:"The link you used appears to be incomplete. Please request a new password reset email."})})}const zEe=()=>{const{isLoadingAuth:e,isLoadingPublicSettings:t,authError:n}=$N();return t||e?s.jsx("div",{className:"fixed inset-0 flex items-center justify-center bg-dark-blue",children:s.jsx("div",{className:"w-8 h-8 border-4 border-white/20 border-t-pistachio rounded-full animate-spin"})}):(n==null?void 0:n.type)==="user_not_registered"?s.jsx(jB,{}):s.jsxs(_X,{children:[s.jsx(at,{path:"/",element:s.jsx(mue,{})}),s.jsx(at,{path:"/patients",element:s.jsx(hEe,{})}),s.jsx(at,{path:"/sample-request",element:s.jsx(pEe,{})}),s.jsx(at,{path:"/orthotic-care",element:s.jsx(xEe,{})}),s.jsx(at,{path:"/about",element:s.jsx(yue,{})}),s.jsx(at,{path:"/practitioners",element:s.jsx(Rue,{})}),s.jsx(at,{path:"/distributors",element:s.jsx($ue,{})}),s.jsx(at,{path:"/products",element:s.jsx(mde,{})}),s.jsx(at,{path:"/print-only-service",element:s.jsx(_de,{})}),s.jsx(at,{path:"/capabilities",element:s.jsx(Dde,{})}),s.jsx(at,{path:"/print-only-service/materials",element:s.jsx(Fde,{})}),s.jsx(at,{path:"/iorder",element:s.jsx(qde,{})}),s.jsx(at,{path:"/news",element:s.jsx(Yde,{})}),s.jsx(at,{path:"/conference-appointment",element:s.jsx(Zde,{})}),s.jsx(at,{path:"/contact",element:s.jsx(Jde,{})}),s.jsx(at,{path:"/login",element:s.jsx(jEe,{})}),s.jsx(at,{path:"/register",element:s.jsx($Ee,{})}),s.jsx(at,{path:"/forgot-password",element:s.jsx(FEe,{})}),s.jsx(at,{path:"/reset-password",element:s.jsx(qEe,{})}),s.jsxs(at,{element:s.jsx(nte,{}),children:[s.jsx(at,{path:"/ai-content-generator",element:s.jsx(hfe,{})}),s.jsx(at,{path:"/admin/news",element:s.jsx(bhe,{})}),s.jsx(at,{path:"/admin/analytics",element:s.jsx(Rke,{})}),s.jsx(at,{path:"/admin/leads",element:s.jsx(Lke,{})}),s.jsx(at,{path:"/AdminLeads",element:s.jsx($a,{to:"/admin/leads",replace:!0})}),s.jsx(at,{path:"/AdminNews",element:s.jsx($a,{to:"/admin/news",replace:!0})}),s.jsx(at,{path:"/AdminAnalytics",element:s.jsx($a,{to:"/admin/analytics",replace:!0})}),s.jsx(at,{path:"/AIContentGenerator",element:s.jsx($a,{to:"/ai-content-generator",replace:!0})})]}),s.jsx(at,{path:"/news/:slug",element:s.jsx(bOe,{})}),s.jsx(at,{path:"/about/our-way",element:s.jsx(SOe,{})}),s.jsx(at,{path:"/about/our-impact",element:s.jsx(DOe,{})}),s.jsx(at,{path:"/about/our-technology",element:s.jsx(XOe,{})}),s.jsx(at,{path:"/about/our-clinical-team",element:s.jsx(JOe,{})}),s.jsx(at,{path:"/about/our-distributors",element:s.jsx(eEe,{})}),s.jsx(at,{path:"/about/meet-the-team",element:s.jsx(tEe,{})}),s.jsx(at,{path:"/products/:slug",element:s.jsx(fde,{})}),s.jsx(at,{path:"/legal/privacy",element:s.jsx(rEe,{})}),s.jsx(at,{path:"/legal/terms",element:s.jsx(oEe,{})}),s.jsx(at,{path:"/ConferenceAppointment",element:s.jsx($a,{to:"/conference-appointment",replace:!0})}),s.jsx(at,{path:"/OurClinicalTeam",element:s.jsx($a,{to:"/about/our-clinical-team",replace:!0})}
715),s.jsx(at,{path:"*",element:s.jsx(mEe,{})})]})};function UEe(){return s.jsx(Yee,{children:s.jsxs(fY,{client:NY,children:[s.jsxs(AX,{children:[s.jsx(Qee,{}),s.jsx(Jee,{}),s.jsx(tte,{}),s.jsx(zEe,{})]}),s.jsx(FK,{})]})})}pV.createRoot(document.getElementById("root")).render(s.jsx(UEe,{}));export{ue as R,Kh as a,s as j,P as r};

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.